ai-client-sdk 3.0.9 → 4.0.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,97 +1,426 @@
1
- (function($e,on){typeof exports=="object"&&typeof module<"u"?on(exports):typeof define=="function"&&define.amd?define(["exports"],on):($e=typeof globalThis<"u"?globalThis:$e||self,on($e.AIClientSDK={}))})(this,(function($e){"use strict";function on(e){if(e)throw e}function er(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Gi,Fa;function qf(){if(Fa)return Gi;Fa=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(u){return typeof Array.isArray=="function"?Array.isArray(u):t.call(u)==="[object Array]"},s=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 h;for(h in u);return typeof h>"u"||e.call(u,h)},a=function(u,c){n&&c.name==="__proto__"?n(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(r)return r(u,c).value}else return;return u[c]};return Gi=function l(){var u,c,f,h,d,g,T=arguments[0],y=1,m=arguments.length,p=!1;for(typeof T=="boolean"&&(p=T,T=arguments[1]||{},y=2),(T==null||typeof T!="object"&&typeof T!="function")&&(T={});y<m;++y)if(u=arguments[y],u!=null)for(c in u)f=o(T,c),h=o(u,c),T!==h&&(p&&h&&(s(h)||(d=i(h)))?(d?(d=!1,g=f&&i(f)?f:[]):g=f&&s(f)?f:{},a(T,{name:c,newValue:l(p,g,h)})):typeof h<"u"&&a(T,{name:c,newValue:h}));return T},Gi}var Hf=qf();const Ki=er(Hf);function bk(){}function Zi(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 Bf(){const e=[],t={run:n,use:r};return t;function n(...i){let s=-1;const a=i.pop();if(typeof a!="function")throw new TypeError("Expected function as last argument, not "+a);o(null,...i);function o(l,...u){const c=e[++s];let f=-1;if(l){a(l);return}for(;++f<i.length;)(u[f]===null||u[f]===void 0)&&(u[f]=i[f]);i=u,c?Vf(c,o)(...u):a(null,...u)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function Vf(e,t){let n;return r;function r(...a){const o=e.length>a.length;let l;o&&a.push(i);try{l=e.apply(this,a)}catch(u){const c=u;if(o&&n)throw c;return i(c)}o||(l&&l.then&&typeof l.then=="function"?l.then(s,i):l instanceof Error?i(l):s(l))}function i(a,...o){n||(n=!0,t(a,...o))}function s(a){i(null,a)}}function An(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?ja(e.position):"start"in e||"end"in e?ja(e):"line"in e||"column"in e?Ji(e):""}function Ji(e){return za(e&&e.line)+":"+za(e&&e.column)}function ja(e){return Ji(e&&e.start)+"-"+Ji(e&&e.end)}function za(e){return e&&typeof e=="number"?e:1}class Qe extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",s={},a=!1;if(n&&("line"in n&&"column"in n?s={place:n}:"start"in n&&"end"in n?s={place:n}:"type"in n?s={ancestors:[n],place:n.position}:s={...n}),typeof t=="string"?i=t:!s.cause&&t&&(a=!0,i=t.message,s.cause=t),!s.ruleId&&!s.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?s.ruleId=r:(s.source=r.slice(0,l),s.ruleId=r.slice(l+1))}if(!s.place&&s.ancestors&&s.ancestors){const l=s.ancestors[s.ancestors.length-1];l&&(s.place=l.position)}const o=s.place&&"start"in s.place?s.place.start:s.place;this.ancestors=s.ancestors||void 0,this.cause=s.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=o?o.line:void 0,this.name=An(s.place)||"1:1",this.place=s.place||void 0,this.reason=this.message,this.ruleId=s.ruleId||void 0,this.source=s.source||void 0,this.stack=a&&s.cause&&typeof s.cause.stack=="string"?s.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Qe.prototype.file="",Qe.prototype.name="",Qe.prototype.reason="",Qe.prototype.message="",Qe.prototype.stack="",Qe.prototype.column=void 0,Qe.prototype.line=void 0,Qe.prototype.ancestors=void 0,Qe.prototype.cause=void 0,Qe.prototype.fatal=void 0,Qe.prototype.place=void 0,Qe.prototype.ruleId=void 0,Qe.prototype.source=void 0;const kt={basename:Wf,dirname:Yf,extname:Gf,join:Kf,sep:"/"};function Wf(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Dn(e);let n=0,r=-1,i=e.length,s;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(s){n=i+1;break}}else r<0&&(s=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let a=-1,o=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(s){n=i+1;break}}else a<0&&(s=!0,a=i+1),o>-1&&(e.codePointAt(i)===t.codePointAt(o--)?o<0&&(r=i):(o=-1,r=a));return n===r?r=a:r<0&&(r=e.length),e.slice(n,r)}function Yf(e){if(Dn(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function Gf(e){Dn(e);let t=e.length,n=-1,r=0,i=-1,s=0,a;for(;t--;){const o=e.codePointAt(t);if(o===47){if(a){r=t+1;break}continue}n<0&&(a=!0,n=t+1),o===46?i<0?i=t:s!==1&&(s=1):i>-1&&(s=-1)}return i<0||n<0||s===0||s===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function Kf(...e){let t=-1,n;for(;++t<e.length;)Dn(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":Zf(n)}function Zf(e){Dn(e);const t=e.codePointAt(0)===47;let n=Jf(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function Jf(e,t){let n="",r=0,i=-1,s=0,a=-1,o,l;for(;++a<=e.length;){if(a<e.length)o=e.codePointAt(a);else{if(o===47)break;o=47}if(o===47){if(!(i===a-1||s===1))if(i!==a-1&&s===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),i=a,s=0;continue}}else if(n.length>0){n="",r=0,i=a,s=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,a):n=e.slice(i+1,a),r=a-i-1;i=a,s=0}else o===46&&s>-1?s++:s=-1}return n}function Dn(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Xf={cwd:Qf};function Qf(){return"/"}function Xi(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function ed(e){if(typeof e=="string")e=new URL(e);else if(!Xi(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 td(e)}function td(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const Qi=["history","path","basename","stem","extname","dirname"];class nd{constructor(t){let n;t?Xi(t)?n={path:t}:typeof t=="string"||rd(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":Xf.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Qi.length;){const s=Qi[r];s in n&&n[s]!==void 0&&n[s]!==null&&(this[s]=s==="history"?[...n[s]]:n[s])}let i;for(i in n)Qi.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?kt.basename(this.path):void 0}set basename(t){ts(t,"basename"),es(t,"basename"),this.path=kt.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?kt.dirname(this.path):void 0}set dirname(t){Ua(this.basename,"dirname"),this.path=kt.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?kt.extname(this.path):void 0}set extname(t){if(es(t,"extname"),Ua(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=kt.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Xi(t)&&(t=ed(t)),ts(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?kt.basename(this.path,this.extname):void 0}set stem(t){ts(t,"stem"),es(t,"stem"),this.path=kt.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=void 0,i}message(t,n,r){const i=new Qe(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function es(e,t){if(e&&e.includes(kt.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+kt.sep+"`")}function ts(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Ua(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function rd(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const id=(function(e){const r=this.constructor.prototype,i=r[e],s=function(){return i.apply(s,arguments)};return Object.setPrototypeOf(s,r),s}),sd={}.hasOwnProperty;class ns extends id{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=Bf()}copy(){const t=new ns;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(Ki(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(ss("data",this.frozen),this.namespace[t]=n,this):sd.call(this.namespace,t)&&this.namespace[t]||void 0:t?(ss("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[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=n.call(t,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=tr(t),r=this.parser||this.Parser;return rs("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),rs("process",this.parser||this.Parser),is("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(s,a){const o=tr(t),l=r.parse(o);r.run(l,o,function(c,f,h){if(c||!f||!h)return u(c);const d=f,g=r.stringify(d,h);ld(g)?h.value=g:h.result=g,u(c,h)});function u(c,f){c||!f?a(c):s?s(f):n(void 0,f)}}}processSync(t){let n=!1,r;return this.freeze(),rs("processSync",this.parser||this.Parser),is("processSync",this.compiler||this.Compiler),this.process(t,i),Ha("processSync","process",n),r;function i(s,a){n=!0,on(s),r=a}}run(t,n,r){qa(t),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?s(void 0,r):new Promise(s);function s(a,o){const l=tr(n);i.run(t,l,u);function u(c,f,h){const d=f||t;c?o(c):a?a(d):r(void 0,d,h)}}}runSync(t,n){let r=!1,i;return this.run(t,n,s),Ha("runSync","run",r),i;function s(a,o){on(a),i=o,r=!0}}stringify(t,n){this.freeze();const r=tr(n),i=this.compiler||this.Compiler;return is("stringify",i),qa(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if(ss("use",this.frozen),t!=null)if(typeof t=="function")l(t,n);else if(typeof t=="object")Array.isArray(t)?o(t):a(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function s(u){if(typeof u=="function")l(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[c,...f]=u;l(c,f)}else a(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function a(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&&(i.settings=Ki(!0,i.settings,u.settings))}function o(u){let c=-1;if(u!=null)if(Array.isArray(u))for(;++c<u.length;){const f=u[c];s(f)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function l(u,c){let f=-1,h=-1;for(;++f<r.length;)if(r[f][0]===u){h=f;break}if(h===-1)r.push([u,...c]);else if(c.length>0){let[d,...g]=c;const T=r[h][1];Zi(T)&&Zi(d)&&(d=Ki(!0,T,d)),r[h]=[u,d,...g]}}}}const ad=new ns().freeze();function rs(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function is(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function ss(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 qa(e){if(!Zi(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Ha(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function tr(e){return od(e)?e:new nd(e)}function od(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function ld(e){return typeof e=="string"||ud(e)}function ud(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const cd={};function as(e,t){const n=cd,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return Ba(e,r,i)}function Ba(e,t,n){if(fd(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Va(e.children,t,n)}return Array.isArray(e)?Va(e,t,n):""}function Va(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=Ba(e[i],t,n);return r.join("")}function fd(e){return!!(e&&typeof e=="object")}const Wa=document.createElement("i");function os(e){const t="&"+e+";";Wa.innerHTML=t;const n=Wa.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function it(e,t,n,r){const i=e.length;let s=0,a;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)a=Array.from(r),a.unshift(t,n),e.splice(...a);else for(n&&e.splice(t,n);s<r.length;)a=r.slice(s,s+1e4),a.unshift(t,0),e.splice(...a),s+=1e4,t+=1e4}function ct(e,t){return e.length>0?(it(e,e.length,0,t),e):t}const Ya={}.hasOwnProperty;function Ga(e){const t={};let n=-1;for(;++n<e.length;)dd(t,e[n]);return t}function dd(e,t){let n;for(n in t){const i=(Ya.call(e,n)?e[n]:void 0)||(e[n]={}),s=t[n];let a;if(s)for(a in s){Ya.call(i,a)||(i[a]=[]);const o=s[a];hd(i[a],Array.isArray(o)?o:o?[o]:[])}}}function hd(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);it(e,0,0,r)}function Ka(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function mt(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Be=jt(/[A-Za-z]/),ze=jt(/[\dA-Za-z]/),pd=jt(/[#-'*+\--9=?A-Z^-~]/);function nr(e){return e!==null&&(e<32||e===127)}const ls=jt(/\d/),md=jt(/[\dA-Fa-f]/),gd=jt(/[!-/:-@[-`{-~]/);function ie(e){return e!==null&&e<-2}function we(e){return e!==null&&(e<0||e===32)}function de(e){return e===-2||e===-1||e===32}const rr=jt(new RegExp("\\p{P}|\\p{S}","u")),Yt=jt(/\s/);function jt(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function ln(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const s=e.charCodeAt(n);let a="";if(s===37&&ze(e.charCodeAt(n+1))&&ze(e.charCodeAt(n+2)))i=2;else if(s<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(s))||(a=String.fromCharCode(s));else if(s>55295&&s<57344){const o=e.charCodeAt(n+1);s<56320&&o>56319&&o<57344?(a=String.fromCharCode(s,o),i=1):a="�"}else a=String.fromCharCode(s);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+i+1,a=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function pe(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let s=0;return a;function a(l){return de(l)?(e.enter(n),o(l)):t(l)}function o(l){return de(l)&&s++<i?(e.consume(l),o):(e.exit(n),t(l))}}const yd={tokenize:bd};function bd(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),pe(e,t,"linePrefix")}function i(o){return e.enter("paragraph"),s(o)}function s(o){const l=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=l),n=l,a(o)}function a(o){if(o===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(o);return}return ie(o)?(e.consume(o),e.exit("chunkText"),s):(e.consume(o),a)}}const wd={tokenize:_d},Za={tokenize:vd};function _d(e){const t=this,n=[];let r=0,i,s,a;return o;function o(b){if(r<n.length){const S=n[r];return t.containerState=S[1],e.attempt(S[0].continuation,l,u)(b)}return u(b)}function l(b){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&p();const S=t.events.length;let v=S,w;for(;v--;)if(t.events[v][0]==="exit"&&t.events[v][1].type==="chunkFlow"){w=t.events[v][1].end;break}m(r);let x=S;for(;x<t.events.length;)t.events[x][1].end={...w},x++;return it(t.events,v+1,0,t.events.slice(S)),t.events.length=x,u(b)}return o(b)}function u(b){if(r===n.length){if(!i)return h(b);if(i.currentConstruct&&i.currentConstruct.concrete)return g(b);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Za,c,f)(b)}function c(b){return i&&p(),m(r),h(b)}function f(b){return t.parser.lazy[t.now().line]=r!==n.length,a=t.now().offset,g(b)}function h(b){return t.containerState={},e.attempt(Za,d,g)(b)}function d(b){return r++,n.push([t.currentConstruct,t.containerState]),h(b)}function g(b){if(b===null){i&&p(),m(0),e.consume(b);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:s}),T(b)}function T(b){if(b===null){y(e.exit("chunkFlow"),!0),m(0),e.consume(b);return}return ie(b)?(e.consume(b),y(e.exit("chunkFlow")),r=0,t.interrupt=void 0,o):(e.consume(b),T)}function y(b,S){const v=t.sliceStream(b);if(S&&v.push(null),b.previous=s,s&&(s.next=b),s=b,i.defineSkip(b.start),i.write(v),t.parser.lazy[b.start.line]){let w=i.events.length;for(;w--;)if(i.events[w][1].start.offset<a&&(!i.events[w][1].end||i.events[w][1].end.offset>a))return;const x=t.events.length;let N=x,F,A;for(;N--;)if(t.events[N][0]==="exit"&&t.events[N][1].type==="chunkFlow"){if(F){A=t.events[N][1].end;break}F=!0}for(m(r),w=x;w<t.events.length;)t.events[w][1].end={...A},w++;it(t.events,N+1,0,t.events.slice(x)),t.events.length=w}}function m(b){let S=n.length;for(;S-- >b;){const v=n[S];t.containerState=v[1],v[0].exit.call(t,e)}n.length=b}function p(){i.write([null]),s=void 0,i=void 0,t.containerState._closeFlow=void 0}}function vd(e,t,n){return pe(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function un(e){if(e===null||we(e)||Yt(e))return 1;if(rr(e))return 2}function ir(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const s=e[i].resolveAll;s&&!r.includes(s)&&(t=s(t,n),r.push(s))}return t}const us={name:"attention",resolveAll:Td,tokenize:kd};function Td(e,t){let n=-1,r,i,s,a,o,l,u,c;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;l=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const f={...e[r][1].end},h={...e[n][1].start};Ja(f,-l),Ja(h,l),a={type:l>1?"strongSequence":"emphasisSequence",start:f,end:{...e[r][1].end}},o={type:l>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:h},s={type:l>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:l>1?"strong":"emphasis",start:{...a.start},end:{...o.end}},e[r][1].end={...a.start},e[n][1].start={...o.end},u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=ct(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=ct(u,[["enter",i,t],["enter",a,t],["exit",a,t],["enter",s,t]]),u=ct(u,ir(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=ct(u,[["exit",s,t],["enter",o,t],["exit",o,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(c=2,u=ct(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,it(e,r-1,n-r+3,u),n=r+u.length-c-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function kd(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=un(r);let s;return a;function a(l){return s=l,e.enter("attentionSequence"),o(l)}function o(l){if(l===s)return e.consume(l),o;const u=e.exit("attentionSequence"),c=un(l),f=!c||c===2&&i||n.includes(l),h=!i||i===2&&c||n.includes(r);return u._open=!!(s===42?f:f&&(i||!h)),u._close=!!(s===42?h:h&&(c||!f)),t(l)}}function Ja(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Ed={name:"autolink",tokenize:Sd};function Sd(e,t,n){let r=0;return i;function i(d){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),s}function s(d){return Be(d)?(e.consume(d),a):d===64?n(d):u(d)}function a(d){return d===43||d===45||d===46||ze(d)?(r=1,o(d)):u(d)}function o(d){return d===58?(e.consume(d),r=0,l):(d===43||d===45||d===46||ze(d))&&r++<32?(e.consume(d),o):(r=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||nr(d)?n(d):(e.consume(d),l)}function u(d){return d===64?(e.consume(d),c):pd(d)?(e.consume(d),u):n(d)}function c(d){return ze(d)?f(d):n(d)}function f(d){return d===46?(e.consume(d),r=0,c):d===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.exit("autolink"),t):h(d)}function h(d){if((d===45||ze(d))&&r++<63){const g=d===45?h:f;return e.consume(d),g}return n(d)}}const $n={partial:!0,tokenize:xd};function xd(e,t,n){return r;function r(s){return de(s)?pe(e,i,"linePrefix")(s):i(s)}function i(s){return s===null||ie(s)?t(s):n(s)}}const Xa={continuation:{tokenize:Ad},exit:Dd,name:"blockQuote",tokenize:Pd};function Pd(e,t,n){const r=this;return i;function i(a){if(a===62){const o=r.containerState;return o.open||(e.enter("blockQuote",{_container:!0}),o.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(a),e.exit("blockQuoteMarker"),s}return n(a)}function s(a){return de(a)?(e.enter("blockQuotePrefixWhitespace"),e.consume(a),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(a))}}function Ad(e,t,n){const r=this;return i;function i(a){return de(a)?pe(e,s,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a):s(a)}function s(a){return e.attempt(Xa,t,n)(a)}}function Dd(e){e.exit("blockQuote")}const Qa={name:"characterEscape",tokenize:$d};function $d(e,t,n){return r;function r(s){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(s),e.exit("escapeMarker"),i}function i(s){return gd(s)?(e.enter("characterEscapeValue"),e.consume(s),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(s)}}const eo={name:"characterReference",tokenize:Cd};function Cd(e,t,n){const r=this;let i=0,s,a;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"),s=31,a=ze,c(f))}function u(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),s=6,a=md,c):(e.enter("characterReferenceValue"),s=7,a=ls,c(f))}function c(f){if(f===59&&i){const h=e.exit("characterReferenceValue");return a===ze&&!os(r.sliceSerialize(h))?n(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return a(f)&&i++<s?(e.consume(f),c):n(f)}}const to={partial:!0,tokenize:Rd},no={concrete:!0,name:"codeFenced",tokenize:Od};function Od(e,t,n){const r=this,i={partial:!0,tokenize:v};let s=0,a=0,o;return l;function l(w){return u(w)}function u(w){const x=r.events[r.events.length-1];return s=x&&x[1].type==="linePrefix"?x[2].sliceSerialize(x[1],!0).length:0,o=w,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(w)}function c(w){return w===o?(a++,e.consume(w),c):a<3?n(w):(e.exit("codeFencedFenceSequence"),de(w)?pe(e,f,"whitespace")(w):f(w))}function f(w){return w===null||ie(w)?(e.exit("codeFencedFence"),r.interrupt?t(w):e.check(to,T,S)(w)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),h(w))}function h(w){return w===null||ie(w)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(w)):de(w)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),pe(e,d,"whitespace")(w)):w===96&&w===o?n(w):(e.consume(w),h)}function d(w){return w===null||ie(w)?f(w):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),g(w))}function g(w){return w===null||ie(w)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(w)):w===96&&w===o?n(w):(e.consume(w),g)}function T(w){return e.attempt(i,S,y)(w)}function y(w){return e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),m}function m(w){return s>0&&de(w)?pe(e,p,"linePrefix",s+1)(w):p(w)}function p(w){return w===null||ie(w)?e.check(to,T,S)(w):(e.enter("codeFlowValue"),b(w))}function b(w){return w===null||ie(w)?(e.exit("codeFlowValue"),p(w)):(e.consume(w),b)}function S(w){return e.exit("codeFenced"),t(w)}function v(w,x,N){let F=0;return A;function A(j){return w.enter("lineEnding"),w.consume(j),w.exit("lineEnding"),O}function O(j){return w.enter("codeFencedFence"),de(j)?pe(w,U,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(j):U(j)}function U(j){return j===o?(w.enter("codeFencedFenceSequence"),K(j)):N(j)}function K(j){return j===o?(F++,w.consume(j),K):F>=a?(w.exit("codeFencedFenceSequence"),de(j)?pe(w,H,"whitespace")(j):H(j)):N(j)}function H(j){return j===null||ie(j)?(w.exit("codeFencedFence"),x(j)):N(j)}}}function Rd(e,t,n){const r=this;return i;function i(a){return a===null?n(a):(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),s)}function s(a){return r.parser.lazy[r.now().line]?n(a):t(a)}}const cs={name:"codeIndented",tokenize:Md},Nd={partial:!0,tokenize:Id};function Md(e,t,n){const r=this;return i;function i(u){return e.enter("codeIndented"),pe(e,s,"linePrefix",5)(u)}function s(u){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?a(u):n(u)}function a(u){return u===null?l(u):ie(u)?e.attempt(Nd,a,l)(u):(e.enter("codeFlowValue"),o(u))}function o(u){return u===null||ie(u)?(e.exit("codeFlowValue"),a(u)):(e.consume(u),o)}function l(u){return e.exit("codeIndented"),t(u)}}function Id(e,t,n){const r=this;return i;function i(a){return r.parser.lazy[r.now().line]?n(a):ie(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),i):pe(e,s,"linePrefix",5)(a)}function s(a){const o=r.events[r.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(a):ie(a)?i(a):n(a)}}const Ld={name:"codeText",previous:jd,resolve:Fd,tokenize:zd};function Fd(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function jd(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function zd(e,t,n){let r=0,i,s;return a;function a(f){return e.enter("codeText"),e.enter("codeTextSequence"),o(f)}function o(f){return f===96?(e.consume(f),r++,o):(e.exit("codeTextSequence"),l(f))}function l(f){return f===null?n(f):f===32?(e.enter("space"),e.consume(f),e.exit("space"),l):f===96?(s=e.enter("codeTextSequence"),i=0,c(f)):ie(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||ie(f)?(e.exit("codeTextData"),l(f)):(e.consume(f),u)}function c(f){return f===96?(e.consume(f),i++,c):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(f)):(s.type="codeTextData",u(f))}}class Ud{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,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const s=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&Cn(this.left,r),s.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),Cn(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Cn(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 n=this.left.splice(t,Number.POSITIVE_INFINITY);Cn(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Cn(this.left,n.reverse())}}}function Cn(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function ro(e){const t={};let n=-1,r,i,s,a,o,l,u;const c=new Ud(e);for(;++n<c.length;){for(;n in t;)n=t[n];if(r=c.get(n),n&&r[1].type==="chunkFlow"&&c.get(n-1)[1].type==="listItemPrefix"&&(l=r[1]._tokenizer.events,s=0,s<l.length&&l[s][1].type==="lineEndingBlank"&&(s+=2),s<l.length&&l[s][1].type==="content"))for(;++s<l.length&&l[s][1].type!=="content";)l[s][1].type==="chunkText"&&(l[s][1]._isInFirstContentOfListItem=!0,s++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,qd(c,n)),n=t[n],u=!0);else if(r[1]._container){for(s=n,i=void 0;s--;)if(a=c.get(s),a[1].type==="lineEnding"||a[1].type==="lineEndingBlank")a[0]==="enter"&&(i&&(c.get(i)[1].type="lineEndingBlank"),a[1].type="lineEnding",i=s);else if(!(a[1].type==="linePrefix"||a[1].type==="listItemIndent"))break;i&&(r[1].end={...c.get(i)[1].start},o=c.slice(i,n),o.unshift(r),c.splice(i,n-i+1,o))}}return it(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!u}function qd(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const s=[];let a=n._tokenizer;a||(a=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(a._contentTypeTextTrailing=!0));const o=a.events,l=[],u={};let c,f,h=-1,d=n,g=0,T=0;const y=[T];for(;d;){for(;e.get(++i)[1]!==d;);s.push(i),d._tokenizer||(c=r.sliceStream(d),d.next||c.push(null),f&&a.defineSkip(d.start),d._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(c),d._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),f=d,d=d.next}for(d=n;++h<o.length;)o[h][0]==="exit"&&o[h-1][0]==="enter"&&o[h][1].type===o[h-1][1].type&&o[h][1].start.line!==o[h][1].end.line&&(T=h+1,y.push(T),d._tokenizer=void 0,d.previous=void 0,d=d.next);for(a.events=[],d?(d._tokenizer=void 0,d.previous=void 0):y.pop(),h=y.length;h--;){const m=o.slice(y[h],y[h+1]),p=s.pop();l.push([p,p+m.length-1]),e.splice(p,2,m)}for(l.reverse(),h=-1;++h<l.length;)u[g+l[h][0]]=g+l[h][1],g+=l[h][1]-l[h][0]-1;return u}const Hd={resolve:Vd,tokenize:Wd},Bd={partial:!0,tokenize:Yd};function Vd(e){return ro(e),e}function Wd(e,t){let n;return r;function r(o){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(o)}function i(o){return o===null?s(o):ie(o)?e.check(Bd,a,s)(o):(e.consume(o),i)}function s(o){return e.exit("chunkContent"),e.exit("content"),t(o)}function a(o){return e.consume(o),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function Yd(e,t,n){const r=this;return i;function i(a){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),pe(e,s,"linePrefix")}function s(a){if(a===null||ie(a))return n(a);const o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(a):e.interrupt(r.parser.constructs.flow,n,t)(a)}}function io(e,t,n,r,i,s,a,o,l){const u=l||Number.POSITIVE_INFINITY;let c=0;return f;function f(m){return m===60?(e.enter(r),e.enter(i),e.enter(s),e.consume(m),e.exit(s),h):m===null||m===32||m===41||nr(m)?n(m):(e.enter(r),e.enter(a),e.enter(o),e.enter("chunkString",{contentType:"string"}),T(m))}function h(m){return m===62?(e.enter(s),e.consume(m),e.exit(s),e.exit(i),e.exit(r),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),d(m))}function d(m){return m===62?(e.exit("chunkString"),e.exit(o),h(m)):m===null||m===60||ie(m)?n(m):(e.consume(m),m===92?g:d)}function g(m){return m===60||m===62||m===92?(e.consume(m),d):d(m)}function T(m){return!c&&(m===null||m===41||we(m))?(e.exit("chunkString"),e.exit(o),e.exit(a),e.exit(r),t(m)):c<u&&m===40?(e.consume(m),c++,T):m===41?(e.consume(m),c--,T):m===null||m===32||m===40||nr(m)?n(m):(e.consume(m),m===92?y:T)}function y(m){return m===40||m===41||m===92?(e.consume(m),T):T(m)}}function so(e,t,n,r,i,s){const a=this;let o=0,l;return u;function u(d){return e.enter(r),e.enter(i),e.consume(d),e.exit(i),e.enter(s),c}function c(d){return o>999||d===null||d===91||d===93&&!l||d===94&&!o&&"_hiddenFootnoteSupport"in a.parser.constructs?n(d):d===93?(e.exit(s),e.enter(i),e.consume(d),e.exit(i),e.exit(r),t):ie(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||ie(d)||o++>999?(e.exit("chunkString"),c(d)):(e.consume(d),l||(l=!de(d)),d===92?h:f)}function h(d){return d===91||d===92||d===93?(e.consume(d),o++,f):f(d)}}function ao(e,t,n,r,i,s){let a;return o;function o(h){return h===34||h===39||h===40?(e.enter(r),e.enter(i),e.consume(h),e.exit(i),a=h===40?41:h,l):n(h)}function l(h){return h===a?(e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):(e.enter(s),u(h))}function u(h){return h===a?(e.exit(s),l(a)):h===null?n(h):ie(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),pe(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(h))}function c(h){return h===a||h===null||ie(h)?(e.exit("chunkString"),u(h)):(e.consume(h),h===92?f:c)}function f(h){return h===a||h===92?(e.consume(h),c):c(h)}}function On(e,t){let n;return r;function r(i){return ie(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):de(i)?pe(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const Gd={name:"definition",tokenize:Zd},Kd={partial:!0,tokenize:Jd};function Zd(e,t,n){const r=this;let i;return s;function s(d){return e.enter("definition"),a(d)}function a(d){return so.call(r,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(d)}function o(d){return i=mt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),d===58?(e.enter("definitionMarker"),e.consume(d),e.exit("definitionMarker"),l):n(d)}function l(d){return we(d)?On(e,u)(d):u(d)}function u(d){return io(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(d)}function c(d){return e.attempt(Kd,f,f)(d)}function f(d){return de(d)?pe(e,h,"whitespace")(d):h(d)}function h(d){return d===null||ie(d)?(e.exit("definition"),r.parser.defined.push(i),t(d)):n(d)}}function Jd(e,t,n){return r;function r(o){return we(o)?On(e,i)(o):n(o)}function i(o){return ao(e,s,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function s(o){return de(o)?pe(e,a,"whitespace")(o):a(o)}function a(o){return o===null||ie(o)?t(o):n(o)}}const Xd={name:"hardBreakEscape",tokenize:Qd};function Qd(e,t,n){return r;function r(s){return e.enter("hardBreakEscape"),e.consume(s),i}function i(s){return ie(s)?(e.exit("hardBreakEscape"),t(s)):n(s)}}const eh={name:"headingAtx",resolve:th,tokenize:nh};function th(e,t){let n=e.length-2,r=3,i,s;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},s={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},it(e,r,n-r+1,[["enter",i,t],["enter",s,t],["exit",s,t],["exit",i,t]])),e}function nh(e,t,n){let r=0;return i;function i(c){return e.enter("atxHeading"),s(c)}function s(c){return e.enter("atxHeadingSequence"),a(c)}function a(c){return c===35&&r++<6?(e.consume(c),a):c===null||we(c)?(e.exit("atxHeadingSequence"),o(c)):n(c)}function o(c){return c===35?(e.enter("atxHeadingSequence"),l(c)):c===null||ie(c)?(e.exit("atxHeading"),t(c)):de(c)?pe(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||we(c)?(e.exit("atxHeadingText"),o(c)):(e.consume(c),u)}}const rh=["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"],oo=["pre","script","style","textarea"],ih={concrete:!0,name:"htmlFlow",resolveTo:oh,tokenize:lh},sh={partial:!0,tokenize:ch},ah={partial:!0,tokenize:uh};function oh(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 lh(e,t,n){const r=this;let i,s,a,o,l;return u;function u(_){return c(_)}function c(_){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(_),f}function f(_){return _===33?(e.consume(_),h):_===47?(e.consume(_),s=!0,T):_===63?(e.consume(_),i=3,r.interrupt?t:k):Be(_)?(e.consume(_),a=String.fromCharCode(_),y):n(_)}function h(_){return _===45?(e.consume(_),i=2,d):_===91?(e.consume(_),i=5,o=0,g):Be(_)?(e.consume(_),i=4,r.interrupt?t:k):n(_)}function d(_){return _===45?(e.consume(_),r.interrupt?t:k):n(_)}function g(_){const E="CDATA[";return _===E.charCodeAt(o++)?(e.consume(_),o===E.length?r.interrupt?t:U:g):n(_)}function T(_){return Be(_)?(e.consume(_),a=String.fromCharCode(_),y):n(_)}function y(_){if(_===null||_===47||_===62||we(_)){const E=_===47,P=a.toLowerCase();return!E&&!s&&oo.includes(P)?(i=1,r.interrupt?t(_):U(_)):rh.includes(a.toLowerCase())?(i=6,E?(e.consume(_),m):r.interrupt?t(_):U(_)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(_):s?p(_):b(_))}return _===45||ze(_)?(e.consume(_),a+=String.fromCharCode(_),y):n(_)}function m(_){return _===62?(e.consume(_),r.interrupt?t:U):n(_)}function p(_){return de(_)?(e.consume(_),p):A(_)}function b(_){return _===47?(e.consume(_),A):_===58||_===95||Be(_)?(e.consume(_),S):de(_)?(e.consume(_),b):A(_)}function S(_){return _===45||_===46||_===58||_===95||ze(_)?(e.consume(_),S):v(_)}function v(_){return _===61?(e.consume(_),w):de(_)?(e.consume(_),v):b(_)}function w(_){return _===null||_===60||_===61||_===62||_===96?n(_):_===34||_===39?(e.consume(_),l=_,x):de(_)?(e.consume(_),w):N(_)}function x(_){return _===l?(e.consume(_),l=null,F):_===null||ie(_)?n(_):(e.consume(_),x)}function N(_){return _===null||_===34||_===39||_===47||_===60||_===61||_===62||_===96||we(_)?v(_):(e.consume(_),N)}function F(_){return _===47||_===62||de(_)?b(_):n(_)}function A(_){return _===62?(e.consume(_),O):n(_)}function O(_){return _===null||ie(_)?U(_):de(_)?(e.consume(_),O):n(_)}function U(_){return _===45&&i===2?(e.consume(_),B):_===60&&i===1?(e.consume(_),Z):_===62&&i===4?(e.consume(_),D):_===63&&i===3?(e.consume(_),k):_===93&&i===5?(e.consume(_),ee):ie(_)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(sh,I,K)(_)):_===null||ie(_)?(e.exit("htmlFlowData"),K(_)):(e.consume(_),U)}function K(_){return e.check(ah,H,I)(_)}function H(_){return e.enter("lineEnding"),e.consume(_),e.exit("lineEnding"),j}function j(_){return _===null||ie(_)?K(_):(e.enter("htmlFlowData"),U(_))}function B(_){return _===45?(e.consume(_),k):U(_)}function Z(_){return _===47?(e.consume(_),a="",q):U(_)}function q(_){if(_===62){const E=a.toLowerCase();return oo.includes(E)?(e.consume(_),D):U(_)}return Be(_)&&a.length<8?(e.consume(_),a+=String.fromCharCode(_),q):U(_)}function ee(_){return _===93?(e.consume(_),k):U(_)}function k(_){return _===62?(e.consume(_),D):_===45&&i===2?(e.consume(_),k):U(_)}function D(_){return _===null||ie(_)?(e.exit("htmlFlowData"),I(_)):(e.consume(_),D)}function I(_){return e.exit("htmlFlow"),t(_)}}function uh(e,t,n){const r=this;return i;function i(a){return ie(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),s):n(a)}function s(a){return r.parser.lazy[r.now().line]?n(a):t(a)}}function ch(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt($n,t,n)}}const fh={name:"htmlText",tokenize:dh};function dh(e,t,n){const r=this;let i,s,a;return o;function o(k){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(k),l}function l(k){return k===33?(e.consume(k),u):k===47?(e.consume(k),v):k===63?(e.consume(k),b):Be(k)?(e.consume(k),N):n(k)}function u(k){return k===45?(e.consume(k),c):k===91?(e.consume(k),s=0,g):Be(k)?(e.consume(k),p):n(k)}function c(k){return k===45?(e.consume(k),d):n(k)}function f(k){return k===null?n(k):k===45?(e.consume(k),h):ie(k)?(a=f,Z(k)):(e.consume(k),f)}function h(k){return k===45?(e.consume(k),d):f(k)}function d(k){return k===62?B(k):k===45?h(k):f(k)}function g(k){const D="CDATA[";return k===D.charCodeAt(s++)?(e.consume(k),s===D.length?T:g):n(k)}function T(k){return k===null?n(k):k===93?(e.consume(k),y):ie(k)?(a=T,Z(k)):(e.consume(k),T)}function y(k){return k===93?(e.consume(k),m):T(k)}function m(k){return k===62?B(k):k===93?(e.consume(k),m):T(k)}function p(k){return k===null||k===62?B(k):ie(k)?(a=p,Z(k)):(e.consume(k),p)}function b(k){return k===null?n(k):k===63?(e.consume(k),S):ie(k)?(a=b,Z(k)):(e.consume(k),b)}function S(k){return k===62?B(k):b(k)}function v(k){return Be(k)?(e.consume(k),w):n(k)}function w(k){return k===45||ze(k)?(e.consume(k),w):x(k)}function x(k){return ie(k)?(a=x,Z(k)):de(k)?(e.consume(k),x):B(k)}function N(k){return k===45||ze(k)?(e.consume(k),N):k===47||k===62||we(k)?F(k):n(k)}function F(k){return k===47?(e.consume(k),B):k===58||k===95||Be(k)?(e.consume(k),A):ie(k)?(a=F,Z(k)):de(k)?(e.consume(k),F):B(k)}function A(k){return k===45||k===46||k===58||k===95||ze(k)?(e.consume(k),A):O(k)}function O(k){return k===61?(e.consume(k),U):ie(k)?(a=O,Z(k)):de(k)?(e.consume(k),O):F(k)}function U(k){return k===null||k===60||k===61||k===62||k===96?n(k):k===34||k===39?(e.consume(k),i=k,K):ie(k)?(a=U,Z(k)):de(k)?(e.consume(k),U):(e.consume(k),H)}function K(k){return k===i?(e.consume(k),i=void 0,j):k===null?n(k):ie(k)?(a=K,Z(k)):(e.consume(k),K)}function H(k){return k===null||k===34||k===39||k===60||k===61||k===96?n(k):k===47||k===62||we(k)?F(k):(e.consume(k),H)}function j(k){return k===47||k===62||we(k)?F(k):n(k)}function B(k){return k===62?(e.consume(k),e.exit("htmlTextData"),e.exit("htmlText"),t):n(k)}function Z(k){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),q}function q(k){return de(k)?pe(e,ee,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(k):ee(k)}function ee(k){return e.enter("htmlTextData"),a(k)}}const fs={name:"labelEnd",resolveAll:gh,resolveTo:yh,tokenize:bh},hh={tokenize:wh},ph={tokenize:_h},mh={tokenize:vh};function gh(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",t+=i}}return e.length!==n.length&&it(e,0,e.length,n),e}function yh(e,t){let n=e.length,r=0,i,s,a,o;for(;n--;)if(i=e[n][1],s){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(a){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(s=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(a=n);const l={type:e[s][1].type==="labelLink"?"link":"image",start:{...e[s][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[s][1].start},end:{...e[a][1].end}},c={type:"labelText",start:{...e[s+r+2][1].end},end:{...e[a-2][1].start}};return o=[["enter",l,t],["enter",u,t]],o=ct(o,e.slice(s+1,s+r+3)),o=ct(o,[["enter",c,t]]),o=ct(o,ir(t.parser.constructs.insideSpan.null,e.slice(s+r+4,a-3),t)),o=ct(o,[["exit",c,t],e[a-2],e[a-1],["exit",u,t]]),o=ct(o,e.slice(a+1)),o=ct(o,[["exit",l,t]]),it(e,s,e.length,o),e}function bh(e,t,n){const r=this;let i=r.events.length,s,a;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){s=r.events[i][1];break}return o;function o(h){return s?s._inactive?f(h):(a=r.parser.defined.includes(mt(r.sliceSerialize({start:s.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(h),e.exit("labelMarker"),e.exit("labelEnd"),l):n(h)}function l(h){return h===40?e.attempt(hh,c,a?c:f)(h):h===91?e.attempt(ph,c,a?u:f)(h):a?c(h):f(h)}function u(h){return e.attempt(mh,c,f)(h)}function c(h){return t(h)}function f(h){return s._balanced=!0,n(h)}}function wh(e,t,n){return r;function r(f){return e.enter("resource"),e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),i}function i(f){return we(f)?On(e,s)(f):s(f)}function s(f){return f===41?c(f):io(e,a,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function a(f){return we(f)?On(e,l)(f):c(f)}function o(f){return n(f)}function l(f){return f===34||f===39||f===40?ao(e,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):c(f)}function u(f){return we(f)?On(e,c)(f):c(f)}function c(f){return f===41?(e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),e.exit("resource"),t):n(f)}}function _h(e,t,n){const r=this;return i;function i(o){return so.call(r,e,s,a,"reference","referenceMarker","referenceString")(o)}function s(o){return r.parser.defined.includes(mt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(o):n(o)}function a(o){return n(o)}}function vh(e,t,n){return r;function r(s){return e.enter("reference"),e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),i}function i(s){return s===93?(e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),e.exit("reference"),t):n(s)}}const Th={name:"labelStartImage",resolveAll:fs.resolveAll,tokenize:kh};function kh(e,t,n){const r=this;return i;function i(o){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(o),e.exit("labelImageMarker"),s}function s(o){return o===91?(e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelImage"),a):n(o)}function a(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(o):t(o)}}const Eh={name:"labelStartLink",resolveAll:fs.resolveAll,tokenize:Sh};function Sh(e,t,n){const r=this;return i;function i(a){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelLink"),s}function s(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(a):t(a)}}const ds={name:"lineEnding",tokenize:xh};function xh(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),pe(e,t,"linePrefix")}}const sr={name:"thematicBreak",tokenize:Ph};function Ph(e,t,n){let r=0,i;return s;function s(u){return e.enter("thematicBreak"),a(u)}function a(u){return i=u,o(u)}function o(u){return u===i?(e.enter("thematicBreakSequence"),l(u)):r>=3&&(u===null||ie(u))?(e.exit("thematicBreak"),t(u)):n(u)}function l(u){return u===i?(e.consume(u),r++,l):(e.exit("thematicBreakSequence"),de(u)?pe(e,o,"whitespace")(u):o(u))}}const et={continuation:{tokenize:Ch},exit:Rh,name:"list",tokenize:$h},Ah={partial:!0,tokenize:Nh},Dh={partial:!0,tokenize:Oh};function $h(e,t,n){const r=this,i=r.events[r.events.length-1];let s=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,a=0;return o;function o(d){const g=r.containerState.type||(d===42||d===43||d===45?"listUnordered":"listOrdered");if(g==="listUnordered"?!r.containerState.marker||d===r.containerState.marker:ls(d)){if(r.containerState.type||(r.containerState.type=g,e.enter(g,{_container:!0})),g==="listUnordered")return e.enter("listItemPrefix"),d===42||d===45?e.check(sr,n,u)(d):u(d);if(!r.interrupt||d===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(d)}return n(d)}function l(d){return ls(d)&&++a<10?(e.consume(d),l):(!r.interrupt||a<2)&&(r.containerState.marker?d===r.containerState.marker:d===41||d===46)?(e.exit("listItemValue"),u(d)):n(d)}function u(d){return e.enter("listItemMarker"),e.consume(d),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||d,e.check($n,r.interrupt?n:c,e.attempt(Ah,h,f))}function c(d){return r.containerState.initialBlankLine=!0,s++,h(d)}function f(d){return de(d)?(e.enter("listItemPrefixWhitespace"),e.consume(d),e.exit("listItemPrefixWhitespace"),h):n(d)}function h(d){return r.containerState.size=s+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(d)}}function Ch(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check($n,i,s);function i(o){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,pe(e,t,"listItemIndent",r.containerState.size+1)(o)}function s(o){return r.containerState.furtherBlankLines||!de(o)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,a(o)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Dh,t,a)(o))}function a(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,pe(e,e.attempt(et,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function Oh(e,t,n){const r=this;return pe(e,i,"listItemIndent",r.containerState.size+1);function i(s){const a=r.events[r.events.length-1];return a&&a[1].type==="listItemIndent"&&a[2].sliceSerialize(a[1],!0).length===r.containerState.size?t(s):n(s)}}function Rh(e){e.exit(this.containerState.type)}function Nh(e,t,n){const r=this;return pe(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(s){const a=r.events[r.events.length-1];return!de(s)&&a&&a[1].type==="listItemPrefixWhitespace"?t(s):n(s)}}const lo={name:"setextUnderline",resolveTo:Mh,tokenize:Ih};function Mh(e,t){let n=e.length,r,i,s;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!s&&e[n][1].type==="definition"&&(s=n);const a={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",s?(e.splice(i,0,["enter",a,t]),e.splice(s+1,0,["exit",e[r][1],t]),e[r][1].end={...e[s][1].end}):e[r][1]=a,e.push(["exit",a,t]),e}function Ih(e,t,n){const r=this;let i;return s;function s(u){let c=r.events.length,f;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){f=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(e.enter("setextHeadingLine"),i=u,a(u)):n(u)}function a(u){return e.enter("setextHeadingLineSequence"),o(u)}function o(u){return u===i?(e.consume(u),o):(e.exit("setextHeadingLineSequence"),de(u)?pe(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||ie(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const Lh={tokenize:Fh};function Fh(e){const t=this,n=e.attempt($n,r,e.attempt(this.parser.constructs.flowInitial,i,pe(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Hd,i)),"linePrefix")));return n;function r(s){if(s===null){e.consume(s);return}return e.enter("lineEndingBlank"),e.consume(s),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const jh={resolveAll:co()},zh=uo("string"),Uh=uo("text");function uo(e){return{resolveAll:co(e==="text"?qh:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],s=n.attempt(i,a,o);return a;function a(c){return u(c)?s(c):o(c)}function o(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),l}function l(c){return u(c)?(n.exit("data"),s(c)):(n.consume(c),l)}function u(c){if(c===null)return!0;const f=i[c];let h=-1;if(f)for(;++h<f.length;){const d=f[h];if(!d.previous||d.previous.call(r,r.previous))return!0}return!1}}}function co(e){return t;function t(n,r){let i=-1,s;for(;++i<=n.length;)s===void 0?n[i]&&n[i][1].type==="data"&&(s=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==s+2&&(n[s][1].end=n[i-1][1].end,n.splice(s+2,i-s-2),i=s+2),s=void 0);return e?e(n,r):n}}function qh(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],i=t.sliceStream(r);let s=i.length,a=-1,o=0,l;for(;s--;){const u=i[s];if(typeof u=="string"){for(a=u.length;u.charCodeAt(a-1)===32;)o++,a--;if(a)break;a=-1}else if(u===-2)l=!0,o++;else if(u!==-1){s++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(o=0),o){const u={type:n===e.length||l||o<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:s?a:r.start._bufferIndex+a,_index:r.start._index+s,line:r.end.line,column:r.end.column-o,offset:r.end.offset-o},end:{...r.end}};r.end={...u.start},r.start.offset===r.end.offset?Object.assign(r,u):(e.splice(n,0,["enter",u,t],["exit",u,t]),n+=2)}n++}return e}const Hh=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:Gd},disable:{null:[]},document:{42:et,43:et,45:et,48:et,49:et,50:et,51:et,52:et,53:et,54:et,55:et,56:et,57:et,62:Xa},flow:{35:eh,42:sr,45:[lo,sr],60:ih,61:lo,95:sr,96:no,126:no},flowInitial:{[-2]:cs,[-1]:cs,32:cs},insideSpan:{null:[us,jh]},string:{38:eo,92:Qa},text:{[-5]:ds,[-4]:ds,[-3]:ds,33:Th,38:eo,42:us,60:[Ed,fh],91:Eh,92:[Xd,Qa],93:fs,95:us,96:Ld}},Symbol.toStringTag,{value:"Module"}));function Bh(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},s=[];let a=[],o=[];const l={attempt:x(v),check:x(w),consume:p,enter:b,exit:S,interrupt:x(w,{interrupt:!0})},u={code:null,containerState:{},defineSkip:T,events:[],now:g,parser:e,previous:null,sliceSerialize:h,sliceStream:d,write:f};let c=t.tokenize.call(u,l);return t.resolveAll&&s.push(t),u;function f(O){return a=ct(a,O),y(),a[a.length-1]!==null?[]:(N(t,0),u.events=ir(s,u.events,u),u.events)}function h(O,U){return Wh(d(O),U)}function d(O){return Vh(a,O)}function g(){const{_bufferIndex:O,_index:U,line:K,column:H,offset:j}=r;return{_bufferIndex:O,_index:U,line:K,column:H,offset:j}}function T(O){i[O.line]=O.column,A()}function y(){let O;for(;r._index<a.length;){const U=a[r._index];if(typeof U=="string")for(O=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===O&&r._bufferIndex<U.length;)m(U.charCodeAt(r._bufferIndex));else m(U)}}function m(O){c=c(O)}function p(O){ie(O)?(r.line++,r.column=1,r.offset+=O===-3?2:1,A()):O!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=O}function b(O,U){const K=U||{};return K.type=O,K.start=g(),u.events.push(["enter",K,u]),o.push(K),K}function S(O){const U=o.pop();return U.end=g(),u.events.push(["exit",U,u]),U}function v(O,U){N(O,U.from)}function w(O,U){U.restore()}function x(O,U){return K;function K(H,j,B){let Z,q,ee,k;return Array.isArray(H)?I(H):"tokenize"in H?I([H]):D(H);function D(M){return X;function X(J){const ae=J!==null&&M[J],ne=J!==null&&M.null,C=[...Array.isArray(ae)?ae:ae?[ae]:[],...Array.isArray(ne)?ne:ne?[ne]:[]];return I(C)(J)}}function I(M){return Z=M,q=0,M.length===0?B:_(M[q])}function _(M){return X;function X(J){return k=F(),ee=M,M.partial||(u.currentConstruct=M),M.name&&u.parser.constructs.disable.null.includes(M.name)?P():M.tokenize.call(U?Object.assign(Object.create(u),U):u,l,E,P)(J)}}function E(M){return O(ee,k),j}function P(M){return k.restore(),++q<Z.length?_(Z[q]):B}}}function N(O,U){O.resolveAll&&!s.includes(O)&&s.push(O),O.resolve&&it(u.events,U,u.events.length-U,O.resolve(u.events.slice(U),u)),O.resolveTo&&(u.events=O.resolveTo(u.events,u))}function F(){const O=g(),U=u.previous,K=u.currentConstruct,H=u.events.length,j=Array.from(o);return{from:H,restore:B};function B(){r=O,u.previous=U,u.currentConstruct=K,u.events.length=H,o=j,A()}}function A(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function Vh(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,s=t.end._bufferIndex;let a;if(n===i)a=[e[n].slice(r,s)];else{if(a=e.slice(n,i),r>-1){const o=a[0];typeof o=="string"?a[0]=o.slice(r):a.shift()}s>0&&a.push(e[i].slice(0,s))}return a}function Wh(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const s=e[n];let a;if(typeof s=="string")a=s;else switch(s){case-5:{a="\r";break}case-4:{a=`
2
- `;break}case-3:{a=`\r
3
- `;break}case-2:{a=t?" ":" ";break}case-1:{if(!t&&i)continue;a=" ";break}default:a=String.fromCharCode(s)}i=s===-2,r.push(a)}return r.join("")}function Yh(e){const r={constructs:Ga([Hh,...(e||{}).extensions||[]]),content:i(yd),defined:[],document:i(wd),flow:i(Lh),lazy:{},string:i(zh),text:i(Uh)};return r;function i(s){return a;function a(o){return Bh(r,s,o)}}}function Gh(e){for(;!ro(e););return e}const fo=/[\0\t\n\r]/g;function Kh(){let e=1,t="",n=!0,r;return i;function i(s,a,o){const l=[];let u,c,f,h,d;for(s=t+(typeof s=="string"?s.toString():new TextDecoder(a||void 0).decode(s)),f=0,t="",n&&(s.charCodeAt(0)===65279&&f++,n=void 0);f<s.length;){if(fo.lastIndex=f,u=fo.exec(s),h=u&&u.index!==void 0?u.index:s.length,d=s.charCodeAt(h),!u){t=s.slice(f);break}if(d===10&&f===h&&r)l.push(-3),r=void 0;else switch(r&&(l.push(-5),r=void 0),f<h&&(l.push(s.slice(f,h)),e+=h-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:r=!0,e=1}f=h+1}return o&&(r&&l.push(-5),t&&l.push(t),l.push(null)),l}}const Zh=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Jh(e){return e.replace(Zh,Xh)}function Xh(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),s=i===120||i===88;return Ka(n.slice(s?2:1),s?16:10)}return os(n)||e}const ho={}.hasOwnProperty;function Qh(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),ep(n)(Gh(Yh(n).document().write(Kh()(e,t,!0))))}function ep(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(Pe),autolinkProtocol:F,autolinkEmail:F,atxHeading:s(Q),blockQuote:s(ne),characterEscape:F,characterReference:F,codeFenced:s(C),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:s(C,a),codeText:s(R,a),codeTextData:F,data:F,codeFlowValue:F,definition:s(z),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:s(G),hardBreakEscape:s(oe),hardBreakTrailing:s(oe),htmlFlow:s(Se,a),htmlFlowData:F,htmlText:s(Se,a),htmlTextData:F,image:s(Oe),label:a,link:s(Pe),listItem:s(De),listItemValue:h,listOrdered:s(Ae,f),listUnordered:s(Ae),paragraph:s(_t),reference:_,referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:s(Q),strong:s(Ue),thematicBreak:s(vt)},exit:{atxHeading:l(),atxHeadingSequence:v,autolink:l(),autolinkEmail:ae,autolinkProtocol:J,blockQuote:l(),characterEscapeValue:A,characterReferenceMarkerHexadecimal:P,characterReferenceMarkerNumeric:P,characterReferenceValue:M,characterReference:X,codeFenced:l(y),codeFencedFence:T,codeFencedFenceInfo:d,codeFencedFenceMeta:g,codeFlowValue:A,codeIndented:l(m),codeText:l(j),codeTextData:A,data:A,definition:l(),definitionDestinationString:S,definitionLabelString:p,definitionTitleString:b,emphasis:l(),hardBreakEscape:l(U),hardBreakTrailing:l(U),htmlFlow:l(K),htmlFlowData:A,htmlText:l(H),htmlTextData:A,image:l(Z),label:ee,labelText:q,lineEnding:O,link:l(B),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:E,resourceDestinationString:k,resourceTitleString:D,resource:I,setextHeading:l(N),setextHeadingLineSequence:x,setextHeadingText:w,strong:l(),thematicBreak:l()}};po(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(L){let V={type:"root",children:[]};const se={stack:[V],tokenStack:[],config:t,enter:o,exit:u,buffer:a,resume:c,data:n},ue=[];let ge=-1;for(;++ge<L.length;)if(L[ge][1].type==="listOrdered"||L[ge][1].type==="listUnordered")if(L[ge][0]==="enter")ue.push(ge);else{const Xe=ue.pop();ge=i(L,Xe,ge)}for(ge=-1;++ge<L.length;){const Xe=t[L[ge][0]];ho.call(Xe,L[ge][1].type)&&Xe[L[ge][1].type].call(Object.assign({sliceSerialize:L[ge][2].sliceSerialize},se),L[ge][1])}if(se.tokenStack.length>0){const Xe=se.tokenStack[se.tokenStack.length-1];(Xe[1]||mo).call(se,void 0,Xe[0])}for(V.position={start:zt(L.length>0?L[0][1].start:{line:1,column:1,offset:0}),end:zt(L.length>0?L[L.length-2][1].end:{line:1,column:1,offset:0})},ge=-1;++ge<t.transforms.length;)V=t.transforms[ge](V)||V;return V}function i(L,V,se){let ue=V-1,ge=-1,Xe=!1,Pt,nt,At,qe;for(;++ue<=se;){const Re=L[ue];switch(Re[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Re[0]==="enter"?ge++:ge--,qe=void 0;break}case"lineEndingBlank":{Re[0]==="enter"&&(Pt&&!qe&&!ge&&!At&&(At=ue),qe=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:qe=void 0}if(!ge&&Re[0]==="enter"&&Re[1].type==="listItemPrefix"||ge===-1&&Re[0]==="exit"&&(Re[1].type==="listUnordered"||Re[1].type==="listOrdered")){if(Pt){let Dt=ue;for(nt=void 0;Dt--;){const lt=L[Dt];if(lt[1].type==="lineEnding"||lt[1].type==="lineEndingBlank"){if(lt[0]==="exit")continue;nt&&(L[nt][1].type="lineEndingBlank",Xe=!0),lt[1].type="lineEnding",nt=Dt}else if(!(lt[1].type==="linePrefix"||lt[1].type==="blockQuotePrefix"||lt[1].type==="blockQuotePrefixWhitespace"||lt[1].type==="blockQuoteMarker"||lt[1].type==="listItemIndent"))break}At&&(!nt||At<nt)&&(Pt._spread=!0),Pt.end=Object.assign({},nt?L[nt][1].start:Re[1].end),L.splice(nt||ue,0,["exit",Pt,Re[2]]),ue++,se++}if(Re[1].type==="listItemPrefix"){const Dt={type:"listItem",_spread:!1,start:Object.assign({},Re[1].start),end:void 0};Pt=Dt,L.splice(ue,0,["enter",Dt,Re[2]]),ue++,se++,At=void 0,qe=!0}}}return L[V][1]._spread=Xe,se}function s(L,V){return se;function se(ue){o.call(this,L(ue),ue),V&&V.call(this,ue)}}function a(){this.stack.push({type:"fragment",children:[]})}function o(L,V,se){this.stack[this.stack.length-1].children.push(L),this.stack.push(L),this.tokenStack.push([V,se||void 0]),L.position={start:zt(V.start),end:void 0}}function l(L){return V;function V(se){L&&L.call(this,se),u.call(this,se)}}function u(L,V){const se=this.stack.pop(),ue=this.tokenStack.pop();if(ue)ue[0].type!==L.type&&(V?V.call(this,L,ue[0]):(ue[1]||mo).call(this,L,ue[0]));else throw new Error("Cannot close `"+L.type+"` ("+An({start:L.start,end:L.end})+"): it’s not open");se.position.end=zt(L.end)}function c(){return as(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function h(L){if(this.data.expectingFirstListItemValue){const V=this.stack[this.stack.length-2];V.start=Number.parseInt(this.sliceSerialize(L),10),this.data.expectingFirstListItemValue=void 0}}function d(){const L=this.resume(),V=this.stack[this.stack.length-1];V.lang=L}function g(){const L=this.resume(),V=this.stack[this.stack.length-1];V.meta=L}function T(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function y(){const L=this.resume(),V=this.stack[this.stack.length-1];V.value=L.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function m(){const L=this.resume(),V=this.stack[this.stack.length-1];V.value=L.replace(/(\r?\n|\r)$/g,"")}function p(L){const V=this.resume(),se=this.stack[this.stack.length-1];se.label=V,se.identifier=mt(this.sliceSerialize(L)).toLowerCase()}function b(){const L=this.resume(),V=this.stack[this.stack.length-1];V.title=L}function S(){const L=this.resume(),V=this.stack[this.stack.length-1];V.url=L}function v(L){const V=this.stack[this.stack.length-1];if(!V.depth){const se=this.sliceSerialize(L).length;V.depth=se}}function w(){this.data.setextHeadingSlurpLineEnding=!0}function x(L){const V=this.stack[this.stack.length-1];V.depth=this.sliceSerialize(L).codePointAt(0)===61?1:2}function N(){this.data.setextHeadingSlurpLineEnding=void 0}function F(L){const se=this.stack[this.stack.length-1].children;let ue=se[se.length-1];(!ue||ue.type!=="text")&&(ue=Lt(),ue.position={start:zt(L.start),end:void 0},se.push(ue)),this.stack.push(ue)}function A(L){const V=this.stack.pop();V.value+=this.sliceSerialize(L),V.position.end=zt(L.end)}function O(L){const V=this.stack[this.stack.length-1];if(this.data.atHardBreak){const se=V.children[V.children.length-1];se.position.end=zt(L.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(V.type)&&(F.call(this,L),A.call(this,L))}function U(){this.data.atHardBreak=!0}function K(){const L=this.resume(),V=this.stack[this.stack.length-1];V.value=L}function H(){const L=this.resume(),V=this.stack[this.stack.length-1];V.value=L}function j(){const L=this.resume(),V=this.stack[this.stack.length-1];V.value=L}function B(){const L=this.stack[this.stack.length-1];if(this.data.inReference){const V=this.data.referenceType||"shortcut";L.type+="Reference",L.referenceType=V,delete L.url,delete L.title}else delete L.identifier,delete L.label;this.data.referenceType=void 0}function Z(){const L=this.stack[this.stack.length-1];if(this.data.inReference){const V=this.data.referenceType||"shortcut";L.type+="Reference",L.referenceType=V,delete L.url,delete L.title}else delete L.identifier,delete L.label;this.data.referenceType=void 0}function q(L){const V=this.sliceSerialize(L),se=this.stack[this.stack.length-2];se.label=Jh(V),se.identifier=mt(V).toLowerCase()}function ee(){const L=this.stack[this.stack.length-1],V=this.resume(),se=this.stack[this.stack.length-1];if(this.data.inReference=!0,se.type==="link"){const ue=L.children;se.children=ue}else se.alt=V}function k(){const L=this.resume(),V=this.stack[this.stack.length-1];V.url=L}function D(){const L=this.resume(),V=this.stack[this.stack.length-1];V.title=L}function I(){this.data.inReference=void 0}function _(){this.data.referenceType="collapsed"}function E(L){const V=this.resume(),se=this.stack[this.stack.length-1];se.label=V,se.identifier=mt(this.sliceSerialize(L)).toLowerCase(),this.data.referenceType="full"}function P(L){this.data.characterReferenceType=L.type}function M(L){const V=this.sliceSerialize(L),se=this.data.characterReferenceType;let ue;se?(ue=Ka(V,se==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):ue=os(V);const ge=this.stack[this.stack.length-1];ge.value+=ue}function X(L){const V=this.stack.pop();V.position.end=zt(L.end)}function J(L){A.call(this,L);const V=this.stack[this.stack.length-1];V.url=this.sliceSerialize(L)}function ae(L){A.call(this,L);const V=this.stack[this.stack.length-1];V.url="mailto:"+this.sliceSerialize(L)}function ne(){return{type:"blockquote",children:[]}}function C(){return{type:"code",lang:null,meta:null,value:""}}function R(){return{type:"inlineCode",value:""}}function z(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function G(){return{type:"emphasis",children:[]}}function Q(){return{type:"heading",depth:0,children:[]}}function oe(){return{type:"break"}}function Se(){return{type:"html",value:""}}function Oe(){return{type:"image",title:null,url:"",alt:null}}function Pe(){return{type:"link",title:null,url:"",children:[]}}function Ae(L){return{type:"list",ordered:L.type==="listOrdered",start:null,spread:L._spread,children:[]}}function De(L){return{type:"listItem",spread:L._spread,checked:null,children:[]}}function _t(){return{type:"paragraph",children:[]}}function Ue(){return{type:"strong",children:[]}}function Lt(){return{type:"text",value:""}}function vt(){return{type:"thematicBreak"}}}function zt(e){return{line:e.line,column:e.column,offset:e.offset}}function po(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?po(e,r):tp(e,r)}}function tp(e,t){let n;for(n in t)if(ho.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function mo(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+An({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+An({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+An({start:t.start,end:t.end})+") is still open")}function np(e){const t=this;t.parser=n;function n(r){return Qh(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function ar(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function rp(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const or=(function(e){if(e==null)return op;if(typeof e=="function")return lr(e);if(typeof e=="object")return Array.isArray(e)?ip(e):sp(e);if(typeof e=="string")return ap(e);throw new Error("Expected function, string, or object as test")});function ip(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=or(e[n]);return lr(r);function r(...i){let s=-1;for(;++s<t.length;)if(t[s].apply(this,i))return!0;return!1}}function sp(e){const t=e;return lr(n);function n(r){const i=r;let s;for(s in e)if(i[s]!==t[s])return!1;return!0}}function ap(e){return lr(t);function t(n){return n&&n.type===e}}function lr(e){return t;function t(n,r,i){return!!(lp(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function op(){return!0}function lp(e){return e!==null&&typeof e=="object"&&"type"in e}function Ak(e){return e}const go=[],up=!0,hs=!1,cp="skip";function yo(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const s=or(i),a=r?-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(h,"name",{value:"node ("+(l.type+(d?"<"+d+">":""))+")"})}return h;function h(){let d=go,g,T,y;if((!t||s(l,u,c[c.length-1]||void 0))&&(d=fp(n(l,c)),d[0]===hs))return d;if("children"in l&&l.children){const m=l;if(m.children&&d[0]!==cp)for(T=(r?m.children.length:-1)+a,y=c.concat(m);T>-1&&T<m.children.length;){const p=m.children[T];if(g=o(p,T,y)(),g[0]===hs)return g;T=typeof g[1]=="number"?g[1]:T+a}}return d}}}function fp(e){return Array.isArray(e)?e:typeof e=="number"?[up,e]:e==null?go:[e]}function dp(e,t,n){const i=or((n||{}).ignore||[]),s=hp(t);let a=-1;for(;++a<s.length;)yo(e,"text",o);function o(u,c){let f=-1,h;for(;++f<c.length;){const d=c[f],g=h?h.children:void 0;if(i(d,g?g.indexOf(d):void 0,h))return;h=d}if(h)return l(u,c)}function l(u,c){const f=c[c.length-1],h=s[a][0],d=s[a][1];let g=0;const y=f.children.indexOf(u);let m=!1,p=[];h.lastIndex=0;let b=h.exec(u.value);for(;b;){const S=b.index,v={index:b.index,input:b.input,stack:[...c,u]};let w=d(...b,v);if(typeof w=="string"&&(w=w.length>0?{type:"text",value:w}:void 0),w===!1?h.lastIndex=S+1:(g!==S&&p.push({type:"text",value:u.value.slice(g,S)}),Array.isArray(w)?p.push(...w):w&&p.push(w),g=S+b[0].length,m=!0),!h.global)break;b=h.exec(u.value)}return m?(g<u.value.length&&p.push({type:"text",value:u.value.slice(g)}),f.children.splice(y,1,...p)):p=[u],y+p.length}}function hp(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const i=n[r];t.push([pp(i[0]),mp(i[1])])}return t}function pp(e){return typeof e=="string"?new RegExp(rp(e),"g"):e}function mp(e){return typeof e=="function"?e:function(){return e}}const ps="phrasing",ms=["autolink","link","image","label"];function gp(){return{transforms:[kp],enter:{literalAutolink:bp,literalAutolinkEmail:gs,literalAutolinkHttp:gs,literalAutolinkWww:gs},exit:{literalAutolink:Tp,literalAutolinkEmail:vp,literalAutolinkHttp:wp,literalAutolinkWww:_p}}}function yp(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:ps,notInConstruct:ms},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:ps,notInConstruct:ms},{character:":",before:"[ps]",after:"\\/",inConstruct:ps,notInConstruct:ms}]}}function bp(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function gs(e){this.config.enter.autolinkProtocol.call(this,e)}function wp(e){this.config.exit.autolinkProtocol.call(this,e)}function _p(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 vp(e){this.config.exit.autolinkEmail.call(this,e)}function Tp(e){this.exit(e)}function kp(e){dp(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Ep],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),Sp]],{ignore:["link","linkReference"]})}function Ep(e,t,n,r,i){let s="";if(!bo(i)||(/^w/i.test(t)&&(n=t+n,t="",s="http://"),!xp(n)))return!1;const a=Pp(n+r);if(!a[0])return!1;const o={type:"link",title:null,url:s+t+a[0],children:[{type:"text",value:t+a[0]}]};return a[1]?[o,{type:"text",value:a[1]}]:o}function Sp(e,t,n,r){return!bo(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function xp(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 Pp(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=ar(e,"(");let s=ar(e,")");for(;r!==-1&&i>s;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),s++;return[e,n]}function bo(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Yt(n)||rr(n))&&(!t||n!==47)}wo.peek=Ip;function Ap(){this.buffer()}function Dp(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function $p(){this.buffer()}function Cp(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Op(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=mt(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Rp(e){this.exit(e)}function Np(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=mt(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Mp(e){this.exit(e)}function Ip(){return"["}function wo(e,t,n,r){const i=n.createTracker(r);let s=i.move("[^");const a=n.enter("footnoteReference"),o=n.enter("reference");return s+=i.move(n.safe(n.associationId(e),{after:"]",before:s})),o(),a(),s+=i.move("]"),s}function Lp(){return{enter:{gfmFootnoteCallString:Ap,gfmFootnoteCall:Dp,gfmFootnoteDefinitionLabelString:$p,gfmFootnoteDefinition:Cp},exit:{gfmFootnoteCallString:Op,gfmFootnoteCall:Rp,gfmFootnoteDefinitionLabelString:Np,gfmFootnoteDefinition:Mp}}}function Fp(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:wo},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,i,s,a){const o=s.createTracker(a);let l=o.move("[^");const u=s.enter("footnoteDefinition"),c=s.enter("label");return l+=o.move(s.safe(s.associationId(r),{before:l,after:"]"})),c(),l+=o.move("]:"),r.children&&r.children.length>0&&(o.shift(4),l+=o.move((t?`
4
- `:" ")+s.indentLines(s.containerFlow(r,o.current()),t?_o:jp))),u(),l}}function jp(e,t,n){return t===0?e:_o(e,t,n)}function _o(e,t,n){return(n?"":" ")+e}const zp=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];vo.peek=Vp;function Up(){return{canContainEols:["delete"],enter:{strikethrough:Hp},exit:{strikethrough:Bp}}}function qp(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:zp}],handlers:{delete:vo}}}function Hp(e){this.enter({type:"delete",children:[]},e)}function Bp(e){this.exit(e)}function vo(e,t,n,r){const i=n.createTracker(r),s=n.enter("strikethrough");let a=i.move("~~");return a+=n.containerPhrasing(e,{...i.current(),before:a,after:"~"}),a+=i.move("~~"),s(),a}function Vp(){return"~"}function Wp(e){return e.length}function Yp(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||Wp,s=[],a=[],o=[],l=[];let u=0,c=-1;for(;++c<e.length;){const T=[],y=[];let m=-1;for(e[c].length>u&&(u=e[c].length);++m<e[c].length;){const p=Gp(e[c][m]);if(n.alignDelimiters!==!1){const b=i(p);y[m]=b,(l[m]===void 0||b>l[m])&&(l[m]=b)}T.push(p)}a[c]=T,o[c]=y}let f=-1;if(typeof r=="object"&&"length"in r)for(;++f<u;)s[f]=To(r[f]);else{const T=To(r);for(;++f<u;)s[f]=T}f=-1;const h=[],d=[];for(;++f<u;){const T=s[f];let y="",m="";T===99?(y=":",m=":"):T===108?y=":":T===114&&(m=":");let p=n.alignDelimiters===!1?1:Math.max(1,l[f]-y.length-m.length);const b=y+"-".repeat(p)+m;n.alignDelimiters!==!1&&(p=y.length+p+m.length,p>l[f]&&(l[f]=p),d[f]=p),h[f]=b}a.splice(1,0,h),o.splice(1,0,d),c=-1;const g=[];for(;++c<a.length;){const T=a[c],y=o[c];f=-1;const m=[];for(;++f<u;){const p=T[f]||"";let b="",S="";if(n.alignDelimiters!==!1){const v=l[f]-(y[f]||0),w=s[f];w===114?b=" ".repeat(v):w===99?v%2?(b=" ".repeat(v/2+.5),S=" ".repeat(v/2-.5)):(b=" ".repeat(v/2),S=b):S=" ".repeat(v)}n.delimiterStart!==!1&&!f&&m.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&p==="")&&(n.delimiterStart!==!1||f)&&m.push(" "),n.alignDelimiters!==!1&&m.push(b),m.push(p),n.alignDelimiters!==!1&&m.push(S),n.padding!==!1&&m.push(" "),(n.delimiterEnd!==!1||f!==u-1)&&m.push("|")}g.push(n.delimiterEnd===!1?m.join("").replace(/ +$/,""):m.join(""))}return g.join(`
5
- `)}function Gp(e){return e==null?"":String(e)}function To(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}const ko={}.hasOwnProperty;function Kp(e,t){const n=t||{};function r(i,...s){let a=r.invalid;const o=r.handlers;if(i&&ko.call(i,e)){const l=String(i[e]);a=ko.call(o,l)?o[l]:r.unknown}if(a)return a.call(this,i,...s)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}function Zp(e,t,n,r){const i=n.enter("blockquote"),s=n.createTracker(r);s.move("> "),s.shift(2);const a=n.indentLines(n.containerFlow(e,s.current()),Jp);return i(),a}function Jp(e,t,n){return">"+(n?"":" ")+e}function Xp(e,t){return Eo(e,t.inConstruct,!0)&&!Eo(e,t.notInConstruct,!1)}function Eo(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function So(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===`
6
- `&&Xp(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\
7
- `}function Qp(e,t){const n=String(e);let r=n.indexOf(t),i=r,s=0,a=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++s>a&&(a=s):s=1,i=r+t.length,r=n.indexOf(t,i);return a}function em(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 tm(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 nm(e,t,n,r){const i=tm(n),s=e.value||"",a=i==="`"?"GraveAccent":"Tilde";if(em(e,n)){const f=n.enter("codeIndented"),h=n.indentLines(s,rm);return f(),h}const o=n.createTracker(r),l=i.repeat(Math.max(Qp(s,i)+1,3)),u=n.enter("codeFenced");let c=o.move(l);if(e.lang){const f=n.enter(`codeFencedLang${a}`);c+=o.move(n.safe(e.lang,{before:c,after:" ",encode:["`"],...o.current()})),f()}if(e.lang&&e.meta){const f=n.enter(`codeFencedMeta${a}`);c+=o.move(" "),c+=o.move(n.safe(e.meta,{before:c,after:`
8
- `,encode:["`"],...o.current()})),f()}return c+=o.move(`
9
- `),s&&(c+=o.move(s+`
10
- `)),c+=o.move(l),u(),c}function rm(e,t,n){return(n?"":" ")+e}function ys(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 im(e,t,n,r){const i=ys(n),s=i==='"'?"Quote":"Apostrophe",a=n.enter("definition");let o=n.enter("label");const l=n.createTracker(r);let u=l.move("[");return u+=l.move(n.safe(n.associationId(e),{before:u,after:"]",...l.current()})),u+=l.move("]: "),o(),!e.url||/[\0- \u007F]/.test(e.url)?(o=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(o=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,{before:u,after:e.title?" ":`
11
- `,...l.current()}))),o(),e.title&&(o=n.enter(`title${s}`),u+=l.move(" "+i),u+=l.move(n.safe(e.title,{before:u,after:i,...l.current()})),u+=l.move(i),o()),a(),u}function sm(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 Rn(e){return"&#x"+e.toString(16).toUpperCase()+";"}function ur(e,t,n){const r=un(e),i=un(t);return r===void 0?i===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}xo.peek=am;function xo(e,t,n,r){const i=sm(n),s=n.enter("emphasis"),a=n.createTracker(r),o=a.move(i);let l=a.move(n.containerPhrasing(e,{after:i,before:o,...a.current()}));const u=l.charCodeAt(0),c=ur(r.before.charCodeAt(r.before.length-1),u,i);c.inside&&(l=Rn(u)+l.slice(1));const f=l.charCodeAt(l.length-1),h=ur(r.after.charCodeAt(0),f,i);h.inside&&(l=l.slice(0,-1)+Rn(f));const d=a.move(i);return s(),n.attentionEncodeSurroundingInfo={after:h.outside,before:c.outside},o+l+d}function am(e,t,n){return n.options.emphasis||"*"}function Po(e,t,n,r){let i,s,a;typeof t=="function"&&typeof n!="function"?(s=void 0,a=t,i=n):(s=t,a=n,i=r),yo(e,s,o,i);function o(l,u){const c=u[u.length-1],f=c?c.children.indexOf(l):void 0;return a(l,f,c)}}function om(e,t){let n=!1;return Po(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,hs}),!!((!e.depth||e.depth<3)&&as(e)&&(t.options.setext||n))}function lm(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),s=n.createTracker(r);if(om(e,n)){const c=n.enter("headingSetext"),f=n.enter("phrasing"),h=n.containerPhrasing(e,{...s.current(),before:`
1
+ (function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports):typeof define==`function`&&define.amd?define([`exports`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e.AIClientSDK={}))})(this,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Object.create,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.getPrototypeOf,o=Object.prototype.hasOwnProperty,s=(e,t)=>()=>(e&&(t=e(e=0)),t),c=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),l=(e,t)=>{let r={};for(var i in e)n(r,i,{get:e[i],enumerable:!0});return t||n(r,Symbol.toStringTag,{value:`Module`}),r},u=(e,t,a,s)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var c=i(t),l=0,u=c.length,d;l<u;l++)d=c[l],!o.call(e,d)&&d!==a&&n(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(s=r(t,d))||s.enumerable});return e},d=(e,r,i)=>(i=e==null?{}:t(a(e)),u(r||!e||!e.__esModule?n(i,`default`,{value:e,enumerable:!0}):i,e)),f=e=>o.call(e,`module.exports`)?e[`module.exports`]:u(n({},`__esModule`,{value:!0}),e),p=new class{events={send:[],create:[]};on=(e,t)=>{this.events[e].push(t)};emit=async(e,...t)=>{for(let n of this.events[e])try{await n(...t)}catch(t){console.error(`Error in event listener for ${e}:`,t)}}},m=c((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var S=Array.isArray;function C(){}var w={H:null,A:null,T:null,S:null},T=Object.prototype.hasOwnProperty;function E(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function D(e,t){return E(e.type,t,e.props)}function O(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function k(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var A=/\/+/g;function j(e,t){return typeof e==`object`&&e&&e.key!=null?k(``+e.key):t.toString(36)}function M(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(C,C):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function N(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,N(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+j(e,0):a,S(o)?(i=``,c!=null&&(i=c.replace(A,`$&/`)+`/`),N(o,r,i,``,function(e){return e})):o!=null&&(O(o)&&(o=D(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(A,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(S(e))for(var u=0;u<e.length;u++)a=e[u],s=l+j(a,u),c+=N(a,r,i,s,o);else if(u=m(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+j(a,u++),c+=N(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return N(M(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function ee(e,t,n){if(e==null)return e;var r=[],i=0;return N(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function te(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var P=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},F={map:ee,forEach:function(e,t,n){ee(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return ee(e,function(){t++}),t},toArray:function(e){return ee(e,function(e){return e})||[]},only:function(e){if(!O(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=F,e.Component=v,e.Fragment=r,e.Profiler=a,e.PureComponent=b,e.StrictMode=i,e.Suspense=l,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=w,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return w.H.useMemoCache(e)}},e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=g({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!T.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return E(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)T.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return E(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=O,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:te}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=function(e){var t=w.T,n={};w.T=n;try{var r=e(),i=w.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(C,P)}catch(e){P(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),w.T=t}},e.unstable_useCacheRefresh=function(){return w.H.useCacheRefresh()},e.use=function(e){return w.H.use(e)},e.useActionState=function(e,t,n){return w.H.useActionState(e,t,n)},e.useCallback=function(e,t){return w.H.useCallback(e,t)},e.useContext=function(e){return w.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return w.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return w.H.useEffect(e,t)},e.useEffectEvent=function(e){return w.H.useEffectEvent(e)},e.useId=function(){return w.H.useId()},e.useImperativeHandle=function(e,t,n){return w.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return w.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return w.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return w.H.useMemo(e,t)},e.useOptimistic=function(e,t){return w.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return w.H.useReducer(e,t,n)},e.useRef=function(e){return w.H.useRef(e)},e.useState=function(e){return w.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return w.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return w.H.useTransition()},e.version=`19.2.6`})),h=c(((e,t)=>{process.env.NODE_ENV!==`production`&&(function(){function n(e,t){Object.defineProperty(a.prototype,e,{get:function(){console.warn(`%s(...) is deprecated in plain JavaScript React classes. %s`,t[0],t[1])}})}function r(e){return typeof e!=`object`||!e?null:(e=ue&&e[ue]||e[`@@iterator`],typeof e==`function`?e:null)}function i(e,t){e=(e=e.constructor)&&(e.displayName||e.name)||`ReactClass`;var n=e+`.`+t;de[n]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",t,e),de[n]=!0)}function a(e,t,n){this.props=e,this.context=t,this.refs=z,this.updater=n||fe}function o(){}function s(e,t,n){this.props=e,this.context=t,this.refs=z,this.updater=n||fe}function c(){}function l(e){return``+e}function u(e){try{l(e);var t=!1}catch{t=!0}if(t){t=console;var n=t.error,r=typeof Symbol==`function`&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||`Object`;return n.call(t,`The provided key is an unsupported type %s. This value must be coerced to a string before using it here.`,r),l(e)}}function d(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===he?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case F:return`Fragment`;case re:return`Profiler`;case ne:return`StrictMode`;case L:return`Suspense`;case oe:return`SuspenseList`;case le:return`Activity`}if(typeof e==`object`)switch(typeof e.tag==`number`&&console.error(`Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.`),e.$$typeof){case P:return`Portal`;case I:return e.displayName||`Context`;case ie:return(e._context.displayName||`Context`)+`.Consumer`;case ae:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case se:return t=e.displayName||null,t===null?d(e.type)||`Memo`:t;case ce:t=e._payload,e=e._init;try{return d(e(t))}catch{}}return null}function f(e){if(e===F)return`<>`;if(typeof e==`object`&&e&&e.$$typeof===ce)return`<...>`;try{var t=d(e);return t?`<`+t+`>`:`<...>`}catch{return`<...>`}}function p(){var e=B.A;return e===null?null:e.getOwner()}function m(){return Error(`react-stack-top-frame`)}function h(e){if(ge.call(e,`key`)){var t=Object.getOwnPropertyDescriptor(e,`key`).get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function g(e,t){function n(){ve||(ve=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",t))}n.isReactWarning=!0,Object.defineProperty(e,`key`,{get:n,configurable:!0})}function _(){var e=d(this.type);return ye[e]||(ye[e]=!0,console.error(`Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.`)),e=this.props.ref,e===void 0?null:e}function v(e,t,n,r,i,a){var o=n.ref;return e={$$typeof:te,type:e,key:t,props:n,_owner:r},(o===void 0?null:o)===null?Object.defineProperty(e,`ref`,{enumerable:!1,value:null}):Object.defineProperty(e,`ref`,{enumerable:!1,get:_}),e._store={},Object.defineProperty(e._store,`validated`,{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,`_debugInfo`,{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,`_debugStack`,{configurable:!1,enumerable:!1,writable:!0,value:i}),Object.defineProperty(e,`_debugTask`,{configurable:!1,enumerable:!1,writable:!0,value:a}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function y(e,t){return t=v(e.type,t,e.props,e._owner,e._debugStack,e._debugTask),e._store&&(t._store.validated=e._store.validated),t}function b(e){x(e)?e._store&&(e._store.validated=1):typeof e==`object`&&e&&e.$$typeof===ce&&(e._payload.status===`fulfilled`?x(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function x(e){return typeof e==`object`&&!!e&&e.$$typeof===te}function S(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}function C(e,t){return typeof e==`object`&&e&&e.key!=null?(u(e.key),S(``+e.key)):t.toString(36)}function w(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(c,c):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function T(e,t,n,i,a){var o=typeof e;(o===`undefined`||o===`boolean`)&&(e=null);var s=!1;if(e===null)s=!0;else switch(o){case`bigint`:case`string`:case`number`:s=!0;break;case`object`:switch(e.$$typeof){case te:case P:s=!0;break;case ce:return s=e._init,T(s(e._payload),t,n,i,a)}}if(s){s=e,a=a(s);var c=i===``?`.`+C(s,0):i;return me(a)?(n=``,c!=null&&(n=c.replace(Se,`$&/`)+`/`),T(a,t,n,``,function(e){return e})):a!=null&&(x(a)&&(a.key!=null&&(s&&s.key===a.key||u(a.key)),n=y(a,n+(a.key==null||s&&s.key===a.key?``:(``+a.key).replace(Se,`$&/`)+`/`)+c),i!==``&&s!=null&&x(s)&&s.key==null&&s._store&&!s._store.validated&&(n._store.validated=2),a=n),t.push(a)),1}if(s=0,c=i===``?`.`:i+`:`,me(e))for(var l=0;l<e.length;l++)i=e[l],o=c+C(i,l),s+=T(i,t,n,o,a);else if(l=r(e),typeof l==`function`)for(l===e.entries&&(H||console.warn(`Using Maps as children is not supported. Use an array of keyed ReactElements instead.`),H=!0),e=l.call(e),l=0;!(i=e.next()).done;)i=i.value,o=c+C(i,l++),s+=T(i,t,n,o,a);else if(o===`object`){if(typeof e.then==`function`)return T(w(e),t,n,i,a);throw t=String(e),Error(`Objects are not valid as a React child (found: `+(t===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:t)+`). If you meant to render a collection of children, use an array instead.`)}return s}function E(e,t,n){if(e==null)return e;var r=[],i=0;return T(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function D(e){if(e._status===-1){var t=e._ioInfo;t!=null&&(t.start=t.end=performance.now()),t=e._result;var n=t();if(n.then(function(t){if(e._status===0||e._status===-1){e._status=1,e._result=t;var r=e._ioInfo;r!=null&&(r.end=performance.now()),n.status===void 0&&(n.status=`fulfilled`,n.value=t)}},function(t){if(e._status===0||e._status===-1){e._status=2,e._result=t;var r=e._ioInfo;r!=null&&(r.end=performance.now()),n.status===void 0&&(n.status=`rejected`,n.reason=t)}}),t=e._ioInfo,t!=null){t.value=n;var r=n.displayName;typeof r==`string`&&(t.name=r)}e._status===-1&&(e._status=0,e._result=n)}if(e._status===1)return t=e._result,t===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
2
+
3
+ Your code should look like:
4
+ const MyComponent = lazy(() => import('./MyComponent'))
5
+
6
+ Did you accidentally put curly braces around the import?`,t),`default`in t||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
7
+
8
+ Your code should look like:
9
+ const MyComponent = lazy(() => import('./MyComponent'))`,t),t.default;throw e._result}function O(){var e=B.H;return e===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
10
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
11
+ 2. You might be breaking the Rules of Hooks
12
+ 3. You might have more than one copy of React in the same app
13
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),e}function k(){B.asyncTransitions--}function A(e){if(Te===null)try{var n=(`require`+Math.random()).slice(0,7);Te=(t&&t[n]).call(t,`timers`).setImmediate}catch{Te=function(e){!1===we&&(we=!0,typeof MessageChannel>`u`&&console.error(`This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning.`));var t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(void 0)}}return Te(e)}function j(e){return 1<e.length&&typeof AggregateError==`function`?AggregateError(e):e[0]}function M(e,t){t!==Ee-1&&console.error(`You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. `),Ee=t}function N(e,t,n){var r=B.actQueue;if(r!==null)if(r.length!==0)try{ee(r),A(function(){return N(e,t,n)});return}catch(e){B.thrownErrors.push(e)}else B.actQueue=null;0<B.thrownErrors.length?(r=j(B.thrownErrors),B.thrownErrors.length=0,n(r)):t(e)}function ee(e){if(!Oe){Oe=!0;var t=0;try{for(;t<e.length;t++){var n=e[t];do{B.didUsePromise=!1;var r=n(!1);if(r!==null){if(B.didUsePromise){e[t]=n,e.splice(0,t);return}n=r}else break}while(1)}e.length=0}catch(n){e.splice(0,t+1),B.thrownErrors.push(n)}finally{Oe=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var te=Symbol.for(`react.transitional.element`),P=Symbol.for(`react.portal`),F=Symbol.for(`react.fragment`),ne=Symbol.for(`react.strict_mode`),re=Symbol.for(`react.profiler`),ie=Symbol.for(`react.consumer`),I=Symbol.for(`react.context`),ae=Symbol.for(`react.forward_ref`),L=Symbol.for(`react.suspense`),oe=Symbol.for(`react.suspense_list`),se=Symbol.for(`react.memo`),ce=Symbol.for(`react.lazy`),le=Symbol.for(`react.activity`),ue=Symbol.iterator,de={},fe={isMounted:function(){return!1},enqueueForceUpdate:function(e){i(e,`forceUpdate`)},enqueueReplaceState:function(e){i(e,`replaceState`)},enqueueSetState:function(e){i(e,`setState`)}},R=Object.assign,z={};Object.freeze(z),a.prototype.isReactComponent={},a.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},a.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};var pe={isMounted:[`isMounted`,`Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks.`],replaceState:[`replaceState`,`Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236).`]};for(Ae in pe)pe.hasOwnProperty(Ae)&&n(Ae,pe[Ae]);o.prototype=a.prototype,pe=s.prototype=new o,pe.constructor=s,R(pe,a.prototype),pe.isPureReactComponent=!0;var me=Array.isArray,he=Symbol.for(`react.client.reference`),B={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},ge=Object.prototype.hasOwnProperty,_e=console.createTask?console.createTask:function(){return null};pe={react_stack_bottom_frame:function(e){return e()}};var ve,V,ye={},be=pe.react_stack_bottom_frame.bind(pe,m)(),xe=_e(f(m)),H=!1,Se=/\/+/g,Ce=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},we=!1,Te=null,Ee=0,De=!1,Oe=!1,ke=typeof queueMicrotask==`function`?function(e){queueMicrotask(function(){return queueMicrotask(e)})}:A;pe=Object.freeze({__proto__:null,c:function(e){return O().useMemoCache(e)}});var Ae={map:E,forEach:function(e,t,n){E(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return E(e,function(){t++}),t},toArray:function(e){return E(e,function(e){return e})||[]},only:function(e){if(!x(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=le,e.Children=Ae,e.Component=a,e.Fragment=F,e.Profiler=re,e.PureComponent=s,e.StrictMode=ne,e.Suspense=L,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=B,e.__COMPILER_RUNTIME=pe,e.act=function(e){var t=B.actQueue,n=Ee;Ee++;var r=B.actQueue=t===null?[]:t,i=!1;try{var a=e()}catch(e){B.thrownErrors.push(e)}if(0<B.thrownErrors.length)throw M(t,n),e=j(B.thrownErrors),B.thrownErrors.length=0,e;if(typeof a==`object`&&a&&typeof a.then==`function`){var o=a;return ke(function(){i||De||(De=!0,console.error(`You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);`))}),{then:function(e,a){i=!0,o.then(function(i){if(M(t,n),n===0){try{ee(r),A(function(){return N(i,e,a)})}catch(e){B.thrownErrors.push(e)}if(0<B.thrownErrors.length){var o=j(B.thrownErrors);B.thrownErrors.length=0,a(o)}}else e(i)},function(e){M(t,n),0<B.thrownErrors.length?(e=j(B.thrownErrors),B.thrownErrors.length=0,a(e)):a(e)})}}}var s=a;if(M(t,n),n===0&&(ee(r),r.length!==0&&ke(function(){i||De||(De=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),B.actQueue=null),0<B.thrownErrors.length)throw e=j(B.thrownErrors),B.thrownErrors.length=0,e;return{then:function(e,t){i=!0,n===0?(B.actQueue=r,A(function(){return N(s,e,t)})):e(s)}}},e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.captureOwnerStack=function(){var e=B.getCurrentStack;return e===null?null:e()},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=R({},e.props),i=e.key,a=e._owner;if(t!=null){var o;a:{if(ge.call(t,`ref`)&&(o=Object.getOwnPropertyDescriptor(t,`ref`).get)&&o.isReactWarning){o=!1;break a}o=t.ref!==void 0}for(s in o&&(a=p()),h(t)&&(u(t.key),i=``+t.key),t)!ge.call(t,s)||s===`key`||s===`__self`||s===`__source`||s===`ref`&&t.ref===void 0||(r[s]=t[s])}var s=arguments.length-2;if(s===1)r.children=n;else if(1<s){o=Array(s);for(var c=0;c<s;c++)o[c]=arguments[c+2];r.children=o}for(r=v(e.type,i,r,a,e._debugStack,e._debugTask),i=2;i<arguments.length;i++)b(arguments[i]);return r},e.createContext=function(e){return e={$$typeof:I,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:ie,_context:e},e._currentRenderer=null,e._currentRenderer2=null,e},e.createElement=function(e,t,n){for(var r=2;r<arguments.length;r++)b(arguments[r]);r={};var i=null;if(t!=null)for(c in V||!(`__self`in t)||`key`in t||(V=!0,console.warn(`Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform`)),h(t)&&(u(t.key),i=``+t.key),t)ge.call(t,c)&&c!==`key`&&c!==`__self`&&c!==`__source`&&(r[c]=t[c]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];Object.freeze&&Object.freeze(o),r.children=o}if(e&&e.defaultProps)for(c in a=e.defaultProps,a)r[c]===void 0&&(r[c]=a[c]);i&&g(r,typeof e==`function`?e.displayName||e.name||`Unknown`:e);var c=1e4>B.recentlyCreatedOwnerStacks++;return v(e,i,r,p(),c?Error(`react-stack-top-frame`):be,c?_e(f(e)):xe)},e.createRef=function(){var e={current:null};return Object.seal(e),e},e.forwardRef=function(e){e!=null&&e.$$typeof===se?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof e==`function`?e.length!==0&&e.length!==2&&console.error(`forwardRef render functions accept exactly two parameters: props and ref. %s`,e.length===1?`Did you forget to use the ref parameter?`:`Any additional parameter will be undefined.`):console.error(`forwardRef requires a render function but was given %s.`,e===null?`null`:typeof e),e!=null&&e.defaultProps!=null&&console.error(`forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?`);var t={$$typeof:ae,render:e},n;return Object.defineProperty(t,`displayName`,{enumerable:!1,configurable:!0,get:function(){return n},set:function(t){n=t,e.name||e.displayName||(Object.defineProperty(e,`name`,{value:t}),e.displayName=t)}}),t},e.isValidElement=x,e.lazy=function(e){e={_status:-1,_result:e};var t={$$typeof:ce,_payload:e,_init:D},n={name:`lazy`,start:-1,end:-1,value:null,owner:null,debugStack:Error(`react-stack-top-frame`),debugTask:console.createTask?console.createTask(`lazy()`):null};return e._ioInfo=n,t._debugInfo=[{awaited:n}],t},e.memo=function(e,t){e??console.error(`memo: The first argument must be a component. Instead received: %s`,e===null?`null`:typeof e),t={$$typeof:se,type:e,compare:t===void 0?null:t};var n;return Object.defineProperty(t,`displayName`,{enumerable:!1,configurable:!0,get:function(){return n},set:function(t){n=t,e.name||e.displayName||(Object.defineProperty(e,`name`,{value:t}),e.displayName=t)}}),t},e.startTransition=function(e){var t=B.T,n={};n._updatedFibers=new Set,B.T=n;try{var r=e(),i=B.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&(B.asyncTransitions++,r.then(k,k),r.then(c,Ce))}catch(e){Ce(e)}finally{t===null&&n._updatedFibers&&(e=n._updatedFibers.size,n._updatedFibers.clear(),10<e&&console.warn(`Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.`)),t!==null&&n.types!==null&&(t.types!==null&&t.types!==n.types&&console.error(`We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React.`),t.types=n.types),B.T=t}},e.unstable_useCacheRefresh=function(){return O().useCacheRefresh()},e.use=function(e){return O().use(e)},e.useActionState=function(e,t,n){return O().useActionState(e,t,n)},e.useCallback=function(e,t){return O().useCallback(e,t)},e.useContext=function(e){var t=O();return e.$$typeof===ie&&console.error(`Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?`),t.useContext(e)},e.useDebugValue=function(e,t){return O().useDebugValue(e,t)},e.useDeferredValue=function(e,t){return O().useDeferredValue(e,t)},e.useEffect=function(e,t){return e??console.warn(`React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?`),O().useEffect(e,t)},e.useEffectEvent=function(e){return O().useEffectEvent(e)},e.useId=function(){return O().useId()},e.useImperativeHandle=function(e,t,n){return O().useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return e??console.warn(`React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?`),O().useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return e??console.warn(`React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?`),O().useLayoutEffect(e,t)},e.useMemo=function(e,t){return O().useMemo(e,t)},e.useOptimistic=function(e,t){return O().useOptimistic(e,t)},e.useReducer=function(e,t,n){return O().useReducer(e,t,n)},e.useRef=function(e){return O().useRef(e)},e.useState=function(e){return O().useState(e)},e.useSyncExternalStore=function(e,t,n){return O().useSyncExternalStore(e,t,n)},e.useTransition=function(){return O().useTransition()},e.version=`19.2.6`,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})),g=c(((e,t)=>{process.env.NODE_ENV===`production`?t.exports=m():t.exports=h()})),_=c((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,S||(S=!0,O());else{var t=n(l);t!==null&&j(x,t.startTime-e)}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-T<w)}function D(){if(g=!1,S){var t=e.unstable_now();T=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&j(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?O():S=!1}}}var O;if(typeof y==`function`)O=function(){y(D)};else if(typeof MessageChannel<`u`){var k=new MessageChannel,A=k.port2;k.port1.onmessage=D,O=function(){A.postMessage(null)}}else O=function(){_(D,0)};function j(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):w=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,j(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,O()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),v=c((e=>{process.env.NODE_ENV!==`production`&&(function(){function t(){if(x=!1,T){var t=e.unstable_now();O=t;var n=!0;try{a:{y=!1,b&&(b=!1,C(E),E=-1),v=!0;var a=_;try{b:{for(o(t),g=r(p);g!==null&&!(g.expirationTime>t&&c());){var u=g.callback;if(typeof u==`function`){g.callback=null,_=g.priorityLevel;var d=u(g.expirationTime<=t);if(t=e.unstable_now(),typeof d==`function`){g.callback=d,o(t),n=!0;break b}g===r(p)&&i(p),o(t)}else i(p);g=r(p)}if(g!==null)n=!0;else{var f=r(m);f!==null&&l(s,f.startTime-t),n=!1}}break a}finally{g=null,_=a,v=!1}n=void 0}}finally{n?k():T=!1}}}function n(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,i=e[r];if(0<a(i,t))e[r]=t,e[n]=i,n=r;else break a}}function r(e){return e.length===0?null:e[0]}function i(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,i=e.length,o=i>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>a(c,n))l<i&&0>a(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<i&&0>a(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function a(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}function o(e){for(var t=r(m);t!==null;){if(t.callback===null)i(m);else if(t.startTime<=e)i(m),t.sortIndex=t.expirationTime,n(p,t);else break;t=r(m)}}function s(e){if(b=!1,o(e),!y)if(r(p)!==null)y=!0,T||(T=!0,k());else{var t=r(m);t!==null&&l(s,t.startTime-e)}}function c(){return x?!0:!(e.unstable_now()-O<D)}function l(t,n){E=S(function(){t(e.unstable_now())},n)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var u=performance;e.unstable_now=function(){return u.now()}}else{var d=Date,f=d.now();e.unstable_now=function(){return d.now()-f}}var p=[],m=[],h=1,g=null,_=3,v=!1,y=!1,b=!1,x=!1,S=typeof setTimeout==`function`?setTimeout:null,C=typeof clearTimeout==`function`?clearTimeout:null,w=typeof setImmediate<`u`?setImmediate:null,T=!1,E=-1,D=5,O=-1;if(typeof w==`function`)var k=function(){w(t)};else if(typeof MessageChannel<`u`){var A=new MessageChannel,j=A.port2;A.port1.onmessage=t,k=function(){j.postMessage(null)}}else k=function(){S(t,0)};e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):D=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return _},e.unstable_next=function(e){switch(_){case 1:case 2:case 3:var t=3;break;default:t=_}var n=_;_=t;try{return e()}finally{_=n}},e.unstable_requestPaint=function(){x=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=_;_=e;try{return t()}finally{_=n}},e.unstable_scheduleCallback=function(t,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,t){case 1:var c=-1;break;case 2:c=250;break;case 5:c=1073741823;break;case 4:c=1e4;break;default:c=5e3}return c=a+c,t={id:h++,callback:i,priorityLevel:t,startTime:a,expirationTime:c,sortIndex:-1},a>o?(t.sortIndex=a,n(m,t),r(p)===null&&t===r(m)&&(b?(C(E),E=-1):b=!0,l(s,a-o))):(t.sortIndex=c,n(p,t),y||v||(y=!0,T||(T=!0,k()))),t},e.unstable_shouldYield=c,e.unstable_wrapCallback=function(e){var t=_;return function(){var n=_;_=t;try{return e.apply(this,arguments)}finally{_=n}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})),y=c(((e,t)=>{process.env.NODE_ENV===`production`?t.exports=_():t.exports=v()})),b=c((e=>{var t=g();function n(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function r(){}var i={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},a=Symbol.for(`react.portal`);function o(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}var s=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,e.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(n(299));return o(e,t,null,r)},e.flushSync=function(e){var t=s.T,n=i.p;try{if(s.T=null,i.p=2,e)return e()}finally{s.T=t,i.p=n,i.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,i.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&i.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=c(n,t.crossOrigin),a=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?i.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:o}):n===`script`&&i.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`)if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=c(t.as,t.crossOrigin);i.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0})}}else t??i.d.M(e)},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=c(n,t.crossOrigin);i.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`)if(t){var n=c(t.as,t.crossOrigin);i.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0})}else i.d.m(e)},e.requestFormReset=function(e){i.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return s.H.useFormState(e,t,n)},e.useFormStatus=function(){return s.H.useHostTransitionStatus()},e.version=`19.2.6`})),x=c((e=>{process.env.NODE_ENV!==`production`&&(function(){function t(){}function n(e){return``+e}function r(e,t,r){var i=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{n(i);var a=!1}catch{a=!0}return a&&(console.error(`The provided key is an unsupported type %s. This value must be coerced to a string before using it here.`,typeof Symbol==`function`&&Symbol.toStringTag&&i[Symbol.toStringTag]||i.constructor.name||`Object`),n(i)),{$$typeof:u,key:i==null?null:``+i,children:e,containerInfo:t,implementation:r}}function i(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}function a(e){return e===null?"`null`":e===void 0?"`undefined`":e===``?`an empty string`:`something with type "`+typeof e+`"`}function o(e){return e===null?"`null`":e===void 0?"`undefined`":e===``?`an empty string`:typeof e==`string`?JSON.stringify(e):typeof e==`number`?"`"+e+"`":`something with type "`+typeof e+`"`}function s(){var e=d.H;return e===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
14
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
15
+ 2. You might be breaking the Rules of Hooks
16
+ 3. You might have more than one copy of React in the same app
17
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),e}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var c=g(),l={d:{f:t,r:function(){throw Error(`Invalid form element. requestFormReset must be passed a form that was rendered by React.`)},D:t,C:t,L:t,m:t,X:t,S:t,M:t},p:0,findDOMNode:null},u=Symbol.for(`react.portal`),d=c.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;typeof Map==`function`&&Map.prototype!=null&&typeof Map.prototype.forEach==`function`&&typeof Set==`function`&&Set.prototype!=null&&typeof Set.prototype.clear==`function`&&typeof Set.prototype.forEach==`function`||console.error(`React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills`),e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=l,e.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(`Target container is not a DOM element.`);return r(e,t,null,n)},e.flushSync=function(e){var t=d.T,n=l.p;try{if(d.T=null,l.p=2,e)return e()}finally{d.T=t,l.p=n,l.d.f()&&console.error(`flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.`)}},e.preconnect=function(e,t){typeof e==`string`&&e?t!=null&&typeof t!=`object`?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",o(t)):t!=null&&typeof t.crossOrigin!=`string`&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",a(t.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",a(e)),typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,l.d.C(e,t))},e.prefetchDNS=function(e){if(typeof e!=`string`||!e)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",a(e));else if(1<arguments.length){var t=arguments[1];typeof t==`object`&&t.hasOwnProperty(`crossOrigin`)?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",o(t)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",o(t))}typeof e==`string`&&l.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&e?typeof t!=`object`||!t?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",o(t)):t.as!==`style`&&t.as!==`script`&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',o(t.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",a(e)),typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=i(n,t.crossOrigin),s=typeof t.integrity==`string`?t.integrity:void 0,c=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?l.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:s,fetchPriority:c}):n===`script`&&l.d.X(e,{crossOrigin:r,integrity:s,fetchPriority:c,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){var n=``;if(typeof e==`string`&&e||(n+=" The `href` argument encountered was "+a(e)+`.`),t!==void 0&&typeof t!=`object`?n+=" The `options` argument encountered was "+a(t)+`.`:t&&`as`in t&&t.as!==`script`&&(n+=" The `as` option encountered was "+o(t.as)+`.`),n)console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",n);else switch(n=t&&typeof t.as==`string`?t.as:`script`,n){case`script`:break;default:n=o(n),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',n,e)}typeof e==`string`&&(typeof t==`object`&&t?(t.as==null||t.as===`script`)&&(n=i(t.as,t.crossOrigin),l.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0})):t??l.d.M(e))},e.preload=function(e,t){var n=``;if(typeof e==`string`&&e||(n+=" The `href` argument encountered was "+a(e)+`.`),typeof t!=`object`||!t?n+=" The `options` argument encountered was "+a(t)+`.`:typeof t.as==`string`&&t.as||(n+=" The `as` option encountered was "+a(t.as)+`.`),n&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',n),typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){n=t.as;var r=i(n,t.crossOrigin);l.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){var n=``;typeof e==`string`&&e||(n+=" The `href` argument encountered was "+a(e)+`.`),t!==void 0&&typeof t!=`object`?n+=" The `options` argument encountered was "+a(t)+`.`:t&&`as`in t&&typeof t.as!=`string`&&(n+=" The `as` option encountered was "+a(t.as)+`.`),n&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',n),typeof e==`string`&&(t?(n=i(t.as,t.crossOrigin),l.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0})):l.d.m(e))},e.requestFormReset=function(e){l.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return s().useFormState(e,t,n)},e.useFormStatus=function(){return s().useHostTransitionStatus()},e.version=`19.2.6`,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})),S=c(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`)){if(process.env.NODE_ENV!==`production`)throw Error(`^_^`);try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}}process.env.NODE_ENV===`production`?(n(),t.exports=b()):t.exports=x()})),C=c((e=>{var t=y(),n=g(),r=S();function i(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function a(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function s(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function c(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function l(e){if(o(e)!==e)throw Error(i(188))}function u(e){var t=e.alternate;if(!t){if(t=o(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var s=a.alternate;if(s===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return l(a),e;if(s===r)return l(a),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=s;else{for(var c=!1,u=a.child;u;){if(u===n){c=!0,n=a,r=s;break}if(u===r){c=!0,r=a,n=s;break}u=u.sibling}if(!c){for(u=s.child;u;){if(u===n){c=!0,n=s,r=a;break}if(u===r){c=!0,r=s,n=a;break}u=u.sibling}if(!c)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function d(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=d(e),t!==null)return t;e=e.sibling}return null}var f=Object.assign,p=Symbol.for(`react.element`),m=Symbol.for(`react.transitional.element`),h=Symbol.for(`react.portal`),_=Symbol.for(`react.fragment`),v=Symbol.for(`react.strict_mode`),b=Symbol.for(`react.profiler`),x=Symbol.for(`react.consumer`),C=Symbol.for(`react.context`),w=Symbol.for(`react.forward_ref`),T=Symbol.for(`react.suspense`),E=Symbol.for(`react.suspense_list`),D=Symbol.for(`react.memo`),O=Symbol.for(`react.lazy`),k=Symbol.for(`react.activity`),A=Symbol.for(`react.memo_cache_sentinel`),j=Symbol.iterator;function M(e){return typeof e!=`object`||!e?null:(e=j&&e[j]||e[`@@iterator`],typeof e==`function`?e:null)}var N=Symbol.for(`react.client.reference`);function ee(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===N?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case _:return`Fragment`;case b:return`Profiler`;case v:return`StrictMode`;case T:return`Suspense`;case E:return`SuspenseList`;case k:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case h:return`Portal`;case C:return e.displayName||`Context`;case x:return(e._context.displayName||`Context`)+`.Consumer`;case w:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case D:return t=e.displayName||null,t===null?ee(e.type)||`Memo`:t;case O:t=e._payload,e=e._init;try{return ee(e(t))}catch{}}return null}var te=Array.isArray,P=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ne={pending:!1,data:null,method:null,action:null},re=[],ie=-1;function I(e){return{current:e}}function ae(e){0>ie||(e.current=re[ie],re[ie]=null,ie--)}function L(e,t){ie++,re[ie]=e.current,e.current=t}var oe=I(null),se=I(null),ce=I(null),le=I(null);function ue(e,t){switch(L(ce,t),L(se,e),L(oe,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Yd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Yd(t),e=Xd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}ae(oe),L(oe,e)}function de(){ae(oe),ae(se),ae(ce)}function fe(e){e.memoizedState!==null&&L(le,e);var t=oe.current,n=Xd(t,e.type);t!==n&&(L(se,e),L(oe,n))}function R(e){se.current===e&&(ae(oe),ae(se)),le.current===e&&(ae(le),ap._currentValue=ne)}var z,pe;function me(e){if(z===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);z=t&&t[1]||``,pe=-1<e.stack.indexOf(`
18
+ at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
19
+ `+z+e+pe}var he=!1;function B(e,t){if(!e||he)return``;he=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,`props`,{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,`name`,{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
20
+ `),l=s.split(`
21
+ `);for(i=r=0;r<c.length&&!c[r].includes(`DetermineComponentFrameRoot`);)r++;for(;i<l.length&&!l[i].includes(`DetermineComponentFrameRoot`);)i++;if(r===c.length||i===l.length)for(r=c.length-1,i=l.length-1;1<=r&&0<=i&&c[r]!==l[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==l[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==l[i]){var u=`
22
+ `+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{he=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?me(n):``}function ge(e,t){switch(e.tag){case 26:case 27:case 5:return me(e.type);case 16:return me(`Lazy`);case 13:return e.child!==t&&t!==null?me(`Suspense Fallback`):me(`Suspense`);case 19:return me(`SuspenseList`);case 0:case 15:return B(e.type,!1);case 11:return B(e.type.render,!1);case 1:return B(e.type,!0);case 31:return me(`Activity`);default:return``}}function _e(e){try{var t=``,n=null;do t+=ge(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
23
+ Error generating stack: `+e.message+`
24
+ `+e.stack}}var ve=Object.prototype.hasOwnProperty,V=t.unstable_scheduleCallback,ye=t.unstable_cancelCallback,be=t.unstable_shouldYield,xe=t.unstable_requestPaint,H=t.unstable_now,Se=t.unstable_getCurrentPriorityLevel,Ce=t.unstable_ImmediatePriority,we=t.unstable_UserBlockingPriority,Te=t.unstable_NormalPriority,Ee=t.unstable_LowPriority,De=t.unstable_IdlePriority,Oe=t.log,ke=t.unstable_setDisableYieldValue,Ae=null,je=null;function Me(e){if(typeof Oe==`function`&&ke(e),je&&typeof je.setStrictMode==`function`)try{je.setStrictMode(Ae,e)}catch{}}var Ne=Math.clz32?Math.clz32:Ie,Pe=Math.log,Fe=Math.LN2;function Ie(e){return e>>>=0,e===0?32:31-(Pe(e)/Fe|0)|0}var Le=256,Re=262144,ze=4194304;function Be(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ve(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=Be(n))):i=Be(o):i=Be(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=Be(n))):i=Be(o)):i=Be(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function He(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Ue(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function We(){var e=ze;return ze<<=1,!(ze&62914560)&&(ze=4194304),e}function Ge(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ke(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function qe(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-Ne(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&Je(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function Je(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Ne(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function Ye(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ne(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function Xe(e,t){var n=t&-t;return n=n&42?1:Ze(n),(n&(e.suspendedLanes|t))===0?n:0}function Ze(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Qe(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function $e(){var e=F.p;return e===0?(e=window.event,e===void 0?32:xp(e.type)):e}function et(e,t){var n=F.p;try{return F.p=e,t()}finally{F.p=n}}var tt=Math.random().toString(36).slice(2),nt=`__reactFiber$`+tt,rt=`__reactProps$`+tt,it=`__reactContainer$`+tt,at=`__reactEvents$`+tt,ot=`__reactListeners$`+tt,st=`__reactHandles$`+tt,ct=`__reactResources$`+tt,lt=`__reactMarker$`+tt;function ut(e){delete e[nt],delete e[rt],delete e[at],delete e[ot],delete e[st]}function dt(e){var t=e[nt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[it]||n[nt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=yf(e);e!==null;){if(n=e[nt])return n;e=yf(e)}return t}e=n,n=e.parentNode}return null}function ft(e){if(e=e[nt]||e[it]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function pt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function mt(e){var t=e[ct];return t||=e[ct]={hoistableStyles:new Map,hoistableScripts:new Map},t}function ht(e){e[lt]=!0}var gt=new Set,_t={};function vt(e,t){yt(e,t),yt(e+`Capture`,t)}function yt(e,t){for(_t[e]=t,e=0;e<t.length;e++)gt.add(t[e])}var bt=RegExp(`^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$`),xt={},St={};function Ct(e){return ve.call(St,e)?!0:ve.call(xt,e)?!1:bt.test(e)?St[e]=!0:(xt[e]=!0,!1)}function wt(e,t,n){if(Ct(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}e.setAttribute(t,``+n)}}function Tt(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(t);return}e.setAttribute(t,``+n)}}function Et(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}e.setAttributeNS(t,n,``+r)}}function Dt(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function Ot(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function kt(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function At(e){if(!e._valueTracker){var t=Ot(e)?`checked`:`value`;e._valueTracker=kt(e,t,``+e[t])}}function jt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=Ot(e)?e.checked?`true`:`false`:e.value),e=r,e===n?!1:(t.setValue(e),!0)}function Mt(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}var Nt=/[\n"\\]/g;function Pt(e){return e.replace(Nt,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function Ft(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?e.type=o:e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+Dt(t)):e.value!==``+Dt(t)&&(e.value=``+Dt(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):Lt(e,o,Dt(n)):Lt(e,o,Dt(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?e.name=``+Dt(s):e.removeAttribute(`name`)}function It(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){At(e);return}n=n==null?``:``+Dt(n),t=t==null?n:``+Dt(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(e.name=o),At(e)}function Lt(e,t,n){t===`number`&&Mt(e.ownerDocument)===e||e.defaultValue===``+n||(e.defaultValue=``+n)}function Rt(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+Dt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function zt(e,t,n){if(t!=null&&(t=``+Dt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n==null?``:``+Dt(n)}function Bt(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(te(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??=``,t=n}n=Dt(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),At(e)}function Vt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ht=new Set(`animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp`.split(` `));function Ut(e,t,n){var r=t.indexOf(`--`)===0;n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||Ht.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function Wt(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(i(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(`--`)===0?e.setProperty(r,``):r===`float`?e.cssFloat=``:e[r]=``);for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&Ut(e,a,r)}else for(var o in t)t.hasOwnProperty(o)&&Ut(e,o,t[o])}function Gt(e){if(e.indexOf(`-`)===-1)return!1;switch(e){case`annotation-xml`:case`color-profile`:case`font-face`:case`font-face-src`:case`font-face-uri`:case`font-face-format`:case`font-face-name`:case`missing-glyph`:return!1;default:return!0}}var Kt=new Map([[`acceptCharset`,`accept-charset`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`],[`crossOrigin`,`crossorigin`],[`accentHeight`,`accent-height`],[`alignmentBaseline`,`alignment-baseline`],[`arabicForm`,`arabic-form`],[`baselineShift`,`baseline-shift`],[`capHeight`,`cap-height`],[`clipPath`,`clip-path`],[`clipRule`,`clip-rule`],[`colorInterpolation`,`color-interpolation`],[`colorInterpolationFilters`,`color-interpolation-filters`],[`colorProfile`,`color-profile`],[`colorRendering`,`color-rendering`],[`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`],[`horizAdvX`,`horiz-adv-x`],[`horizOriginX`,`horiz-origin-x`],[`imageRendering`,`image-rendering`],[`letterSpacing`,`letter-spacing`],[`lightingColor`,`lighting-color`],[`markerEnd`,`marker-end`],[`markerMid`,`marker-mid`],[`markerStart`,`marker-start`],[`overlinePosition`,`overline-position`],[`overlineThickness`,`overline-thickness`],[`paintOrder`,`paint-order`],[`panose-1`,`panose-1`],[`pointerEvents`,`pointer-events`],[`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`],[`textAnchor`,`text-anchor`],[`textDecoration`,`text-decoration`],[`textRendering`,`text-rendering`],[`transformOrigin`,`transform-origin`],[`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`],[`xmlnsXlink`,`xmlns:xlink`],[`xHeight`,`x-height`]]),qt=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Jt(e){return qt.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function Yt(){}var Xt=null;function Zt(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Qt=null,$t=null;function en(e){var t=ft(e);if(t&&(e=t.stateNode)){var n=e[rt]||null;a:switch(e=t.stateNode,t.type){case`input`:if(Ft(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name="`+Pt(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[rt]||null;if(!a)throw Error(i(90));Ft(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&jt(r)}break a;case`textarea`:zt(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&Rt(e,!!n.multiple,t,!1)}}}var tn=!1;function nn(e,t,n){if(tn)return e(t,n);tn=!0;try{return e(t)}finally{if(tn=!1,(Qt!==null||$t!==null)&&(Tu(),Qt&&(t=Qt,e=$t,$t=Qt=null,en(t),e)))for(t=0;t<e.length;t++)en(e[t])}}function rn(e,t){var n=e.stateNode;if(n===null)return null;var r=n[rt]||null;if(r===null)return null;n=r[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(r=!r.disabled)||(e=e.type,r=!(e===`button`||e===`input`||e===`select`||e===`textarea`)),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(i(231,t,typeof n));return n}var an=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),on=!1;if(an)try{var sn={};Object.defineProperty(sn,`passive`,{get:function(){on=!0}}),window.addEventListener(`test`,sn,sn),window.removeEventListener(`test`,sn,sn)}catch{on=!1}var cn=null,ln=null,un=null;function dn(){if(un)return un;var e,t=ln,n=t.length,r,i=`value`in cn?cn.value:cn.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return un=i.slice(e,1<r?1-r:void 0)}function fn(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function pn(){return!0}function mn(){return!1}function hn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?pn:mn,this.isPropagationStopped=mn,this}return f(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=pn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=pn)},persist:function(){},isPersistent:pn}),t}var gn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},_n=hn(gn),vn=f({},gn,{view:0,detail:0}),yn=hn(vn),bn,xn,Sn,Cn=f({},vn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Pn,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==Sn&&(Sn&&e.type===`mousemove`?(bn=e.screenX-Sn.screenX,xn=e.screenY-Sn.screenY):xn=bn=0,Sn=e),bn)},movementY:function(e){return`movementY`in e?e.movementY:xn}}),wn=hn(Cn),Tn=hn(f({},Cn,{dataTransfer:0})),En=hn(f({},vn,{relatedTarget:0})),Dn=hn(f({},gn,{animationName:0,elapsedTime:0,pseudoElement:0})),On=hn(f({},gn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),kn=hn(f({},gn,{data:0})),An={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},jn={8:`Backspace`,9:`Tab`,12:`Clear`,13:`Enter`,16:`Shift`,17:`Control`,18:`Alt`,19:`Pause`,20:`CapsLock`,27:`Escape`,32:` `,33:`PageUp`,34:`PageDown`,35:`End`,36:`Home`,37:`ArrowLeft`,38:`ArrowUp`,39:`ArrowRight`,40:`ArrowDown`,45:`Insert`,46:`Delete`,112:`F1`,113:`F2`,114:`F3`,115:`F4`,116:`F5`,117:`F6`,118:`F7`,119:`F8`,120:`F9`,121:`F10`,122:`F11`,123:`F12`,144:`NumLock`,145:`ScrollLock`,224:`Meta`},Mn={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function Nn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Mn[e])?!!t[e]:!1}function Pn(){return Nn}var Fn=hn(f({},vn,{key:function(e){if(e.key){var t=An[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=fn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?jn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Pn,charCode:function(e){return e.type===`keypress`?fn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?fn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),In=hn(f({},Cn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Ln=hn(f({},vn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Pn})),Rn=hn(f({},gn,{propertyName:0,elapsedTime:0,pseudoElement:0})),zn=hn(f({},Cn,{deltaX:function(e){return`deltaX`in e?e.deltaX:`wheelDeltaX`in e?-e.wheelDeltaX:0},deltaY:function(e){return`deltaY`in e?e.deltaY:`wheelDeltaY`in e?-e.wheelDeltaY:`wheelDelta`in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),Bn=hn(f({},gn,{newState:0,oldState:0})),Vn=[9,13,27,32],Hn=an&&`CompositionEvent`in window,Un=null;an&&`documentMode`in document&&(Un=document.documentMode);var Wn=an&&`TextEvent`in window&&!Un,Gn=an&&(!Hn||Un&&8<Un&&11>=Un),Kn=` `,qn=!1;function Jn(e,t){switch(e){case`keyup`:return Vn.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function Yn(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var Xn=!1;function Zn(e,t){switch(e){case`compositionend`:return Yn(t);case`keypress`:return t.which===32?(qn=!0,Kn):null;case`textInput`:return e=t.data,e===Kn&&qn?null:e;default:return null}}function Qn(e,t){if(Xn)return e===`compositionend`||!Hn&&Jn(e,t)?(e=dn(),un=ln=cn=null,Xn=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return Gn&&t.locale!==`ko`?null:t.data;default:return null}}var $n={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function er(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!$n[e.type]:t===`textarea`}function tr(e,t,n,r){Qt?$t?$t.push(r):$t=[r]:Qt=r,t=Nd(t,`onChange`),0<t.length&&(n=new _n(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var nr=null,rr=null;function ir(e){Td(e,0)}function ar(e){if(jt(pt(e)))return e}function or(e,t){if(e===`change`)return t}var sr=!1;if(an){var cr;if(an){var lr=`oninput`in document;if(!lr){var ur=document.createElement(`div`);ur.setAttribute(`oninput`,`return;`),lr=typeof ur.oninput==`function`}cr=lr}else cr=!1;sr=cr&&(!document.documentMode||9<document.documentMode)}function dr(){nr&&(nr.detachEvent(`onpropertychange`,fr),rr=nr=null)}function fr(e){if(e.propertyName===`value`&&ar(rr)){var t=[];tr(t,rr,e,Zt(e)),nn(ir,t)}}function pr(e,t,n){e===`focusin`?(dr(),nr=t,rr=n,nr.attachEvent(`onpropertychange`,fr)):e===`focusout`&&dr()}function mr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return ar(rr)}function hr(e,t){if(e===`click`)return ar(t)}function gr(e,t){if(e===`input`||e===`change`)return ar(t)}function _r(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var vr=typeof Object.is==`function`?Object.is:_r;function yr(e,t){if(vr(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!ve.call(t,i)||!vr(e[i],t[i]))return!1}return!0}function br(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function xr(e,t){var n=br(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=br(n)}}function Sr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Sr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Cr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Mt(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=Mt(e.document)}return t}function wr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var Tr=an&&`documentMode`in document&&11>=document.documentMode,Er=null,Dr=null,Or=null,kr=!1;function Ar(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;kr||Er==null||Er!==Mt(r)||(r=Er,`selectionStart`in r&&wr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Or&&yr(Or,r)||(Or=r,r=Nd(Dr,`onSelect`),0<r.length&&(t=new _n(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Er)))}function jr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Mr={animationend:jr(`Animation`,`AnimationEnd`),animationiteration:jr(`Animation`,`AnimationIteration`),animationstart:jr(`Animation`,`AnimationStart`),transitionrun:jr(`Transition`,`TransitionRun`),transitionstart:jr(`Transition`,`TransitionStart`),transitioncancel:jr(`Transition`,`TransitionCancel`),transitionend:jr(`Transition`,`TransitionEnd`)},Nr={},Pr={};an&&(Pr=document.createElement(`div`).style,`AnimationEvent`in window||(delete Mr.animationend.animation,delete Mr.animationiteration.animation,delete Mr.animationstart.animation),`TransitionEvent`in window||delete Mr.transitionend.transition);function Fr(e){if(Nr[e])return Nr[e];if(!Mr[e])return e;var t=Mr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Pr)return Nr[e]=t[n];return e}var Ir=Fr(`animationend`),Lr=Fr(`animationiteration`),Rr=Fr(`animationstart`),zr=Fr(`transitionrun`),Br=Fr(`transitionstart`),Vr=Fr(`transitioncancel`),Hr=Fr(`transitionend`),Ur=new Map,Wr=`abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel`.split(` `);Wr.push(`scrollEnd`);function Gr(e,t){Ur.set(e,t),vt(t,[e])}var Kr=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},qr=[],Jr=0,Yr=0;function Xr(){for(var e=Jr,t=Yr=Jr=0;t<e;){var n=qr[t];qr[t++]=null;var r=qr[t];qr[t++]=null;var i=qr[t];qr[t++]=null;var a=qr[t];if(qr[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&ei(n,i,a)}}function Zr(e,t,n,r){qr[Jr++]=e,qr[Jr++]=t,qr[Jr++]=n,qr[Jr++]=r,Yr|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function Qr(e,t,n,r){return Zr(e,t,n,r),ti(e)}function $r(e,t){return Zr(e,null,null,t),ti(e)}function ei(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-Ne(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function ti(e){if(50<gu)throw gu=0,_u=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ni={};function ri(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ii(e,t,n,r){return new ri(e,t,n,r)}function ai(e){return e=e.prototype,!(!e||!e.isReactComponent)}function oi(e,t){var n=e.alternate;return n===null?(n=ii(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function si(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function ci(e,t,n,r,a,o){var s=0;if(r=e,typeof e==`function`)ai(e)&&(s=1);else if(typeof e==`string`)s=Xf(e,n,oe.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(e){case k:return e=ii(31,n,t,a),e.elementType=k,e.lanes=o,e;case _:return li(n.children,a,o,t);case v:s=8,a|=24;break;case b:return e=ii(12,n,t,a|2),e.elementType=b,e.lanes=o,e;case T:return e=ii(13,n,t,a),e.elementType=T,e.lanes=o,e;case E:return e=ii(19,n,t,a),e.elementType=E,e.lanes=o,e;default:if(typeof e==`object`&&e)switch(e.$$typeof){case C:s=10;break a;case x:s=9;break a;case w:s=11;break a;case D:s=14;break a;case O:s=16,r=null;break a}s=29,n=Error(i(130,e===null?`null`:typeof e,``)),r=null}return t=ii(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function li(e,t,n,r){return e=ii(7,e,r,t),e.lanes=n,e}function ui(e,t,n){return e=ii(6,e,null,t),e.lanes=n,e}function di(e){var t=ii(18,null,null,0);return t.stateNode=e,t}function fi(e,t,n){return t=ii(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var pi=new WeakMap;function mi(e,t){if(typeof e==`object`&&e){var n=pi.get(e);return n===void 0?(t={value:e,source:t,stack:_e(t)},pi.set(e,t),t):n}return{value:e,source:t,stack:_e(t)}}var hi=[],gi=0,_i=null,vi=0,yi=[],bi=0,xi=null,Si=1,Ci=``;function wi(e,t){hi[gi++]=vi,hi[gi++]=_i,_i=e,vi=t}function Ti(e,t,n){yi[bi++]=Si,yi[bi++]=Ci,yi[bi++]=xi,xi=e;var r=Si;e=Ci;var i=32-Ne(r)-1;r&=~(1<<i),n+=1;var a=32-Ne(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Si=1<<32-Ne(t)+i|n<<i|r,Ci=a+e}else Si=1<<a|n<<i|r,Ci=e}function Ei(e){e.return!==null&&(wi(e,1),Ti(e,1,0))}function Di(e){for(;e===_i;)_i=hi[--gi],hi[gi]=null,vi=hi[--gi],hi[gi]=null;for(;e===xi;)xi=yi[--bi],yi[bi]=null,Ci=yi[--bi],yi[bi]=null,Si=yi[--bi],yi[bi]=null}function Oi(e,t){yi[bi++]=Si,yi[bi++]=Ci,yi[bi++]=xi,Si=t.id,Ci=t.overflow,xi=e}var ki=null,Ai=null,ji=!1,U=null,Mi=!1,Ni=Error(i(519));function Pi(e){throw Bi(mi(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),Ni}function Fi(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[nt]=e,t[rt]=r,n){case`dialog`:Ed(`cancel`,t),Ed(`close`,t);break;case`iframe`:case`object`:case`embed`:Ed(`load`,t);break;case`video`:case`audio`:for(n=0;n<Cd.length;n++)Ed(Cd[n],t);break;case`source`:Ed(`error`,t);break;case`img`:case`image`:case`link`:Ed(`error`,t),Ed(`load`,t);break;case`details`:Ed(`toggle`,t);break;case`input`:Ed(`invalid`,t),It(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:Ed(`invalid`,t);break;case`textarea`:Ed(`invalid`,t),Bt(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||zd(t.textContent,n)?(r.popover!=null&&(Ed(`beforetoggle`,t),Ed(`toggle`,t)),r.onScroll!=null&&Ed(`scroll`,t),r.onScrollEnd!=null&&Ed(`scrollend`,t),r.onClick!=null&&(t.onclick=Yt),t=!0):t=!1,t||Pi(e,!0)}function Ii(e){for(ki=e.return;ki;)switch(ki.tag){case 5:case 31:case 13:Mi=!1;return;case 27:case 3:Mi=!0;return;default:ki=ki.return}}function Li(e){if(e!==ki)return!1;if(!ji)return Ii(e),ji=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!==`form`&&n!==`button`)||Zd(e.type,e.memoizedProps)),n=!n),n&&Ai&&Pi(e),Ii(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Ai=vf(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Ai=vf(e)}else t===27?(t=Ai,of(e.type)?(e=_f,_f=null,Ai=e):Ai=t):Ai=ki?gf(e.stateNode.nextSibling):null;return!0}function Ri(){Ai=ki=null,ji=!1}function zi(){var e=U;return e!==null&&(nu===null?nu=e:nu.push.apply(nu,e),U=null),e}function Bi(e){U===null?U=[e]:U.push(e)}var Vi=I(null),Hi=null,Ui=null;function Wi(e,t,n){L(Vi,t._currentValue),t._currentValue=n}function Gi(e){e._currentValue=Vi.current,ae(Vi)}function Ki(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function qi(e,t,n,r){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var o=a.dependencies;if(o!==null){var s=a.child;o=o.firstContext;a:for(;o!==null;){var c=o;o=a;for(var l=0;l<t.length;l++)if(c.context===t[l]){o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),Ki(o.return,n,e),r||(s=null);break a}o=c.next}}else if(a.tag===18){if(s=a.return,s===null)throw Error(i(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),Ki(s,n,e),s=null}else s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function Ji(e,t,n,r){e=null;for(var a=t,o=!1;a!==null;){if(!o){if(a.flags&524288)o=!0;else if(a.flags&262144)break}if(a.tag===10){var s=a.alternate;if(s===null)throw Error(i(387));if(s=s.memoizedProps,s!==null){var c=a.type;vr(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===le.current){if(s=a.alternate,s===null)throw Error(i(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e===null?e=[ap]:e.push(ap))}a=a.return}e!==null&&qi(t,e,n,r),t.flags|=262144}function Yi(e){for(e=e.firstContext;e!==null;){if(!vr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Xi(e){Hi=e,Ui=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Zi(e){return $i(Hi,e)}function Qi(e,t){return Hi===null&&Xi(e),$i(e,t)}function $i(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Ui===null){if(e===null)throw Error(i(308));Ui=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Ui=Ui.next=t;return n}var ea=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},ta=t.unstable_scheduleCallback,na=t.unstable_NormalPriority,ra={$$typeof:C,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ia(){return{controller:new ea,data:new Map,refCount:0}}function aa(e){e.refCount--,e.refCount===0&&ta(na,function(){e.controller.abort()})}var oa=null,sa=0,W=0,ca=null;function la(e,t){if(oa===null){var n=oa=[];sa=0,W=_d(),ca={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return sa++,t.then(ua,ua),t}function ua(){if(--sa===0&&oa!==null){ca!==null&&(ca.status=`fulfilled`);var e=oa;oa=null,W=0,ca=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function da(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}var fa=P.S;P.S=function(e,t){au=H(),typeof t==`object`&&t&&typeof t.then==`function`&&la(e,t),fa!==null&&fa(e,t)};var pa=I(null);function ma(){var e=pa.current;return e===null?Bl.pooledCache:e}function ha(e,t){t===null?L(pa,pa.current):L(pa,t.pool)}function ga(){var e=ma();return e===null?null:{parent:ra._currentValue,pool:e}}var _a=Error(i(460)),va=Error(i(474)),ya=Error(i(542)),ba={then:function(){}};function xa(e){return e=e.status,e===`fulfilled`||e===`rejected`}function Sa(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Yt,Yt),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Ea(e),e;default:if(typeof t.status==`string`)t.then(Yt,Yt);else{if(e=Bl,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Ea(e),e}throw wa=t,_a}}function Ca(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(wa=e,_a):e}}var wa=null;function Ta(){if(wa===null)throw Error(i(459));var e=wa;return wa=null,e}function Ea(e){if(e===_a||e===ya)throw Error(i(483))}var Da=null,Oa=0;function ka(e){var t=Oa;return Oa+=1,Da===null&&(Da=[]),Sa(Da,e,t)}function Aa(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function ja(e,t){throw t.$$typeof===p?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function Ma(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function a(e,t){return e=oi(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=67108866,n):(r=r.index,r<n?(t.flags|=67108866,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=67108866),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=ui(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===_?d(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===O&&Ca(i)===t.type)?(t=a(t,n.props),Aa(t,n),t.return=e,t):(t=ci(n.type,n.key,n.props,null,e.mode,r),Aa(t,n),t.return=e,t)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=fi(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=li(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=ui(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case m:return n=ci(t.type,t.key,t.props,null,e.mode,n),Aa(n,t),n.return=e,n;case h:return t=fi(t,e.mode,n),t.return=e,t;case O:return t=Ca(t),f(e,t,n)}if(te(t)||M(t))return t=li(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,ka(t),n);if(t.$$typeof===C)return f(e,Qi(e,t),n);ja(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case m:return n.key===i?l(e,t,n,r):null;case h:return n.key===i?u(e,t,n,r):null;case O:return n=Ca(n),p(e,t,n,r)}if(te(n)||M(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,ka(n),r);if(n.$$typeof===C)return p(e,t,Qi(e,n),r);ja(e,n)}return null}function g(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case m:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case h:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case O:return r=Ca(r),g(e,t,n,r,i)}if(te(r)||M(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return g(e,t,n,ka(r),i);if(r.$$typeof===C)return g(e,t,n,Qi(t,r),i);ja(t,r)}return null}function v(i,a,s,c){for(var l=null,u=null,d=a,m=a=0,h=null;d!==null&&m<s.length;m++){d.index>m?(h=d,d=null):h=d.sibling;var _=p(i,d,s[m],c);if(_===null){d===null&&(d=h);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,m),u===null?l=_:u.sibling=_,u=_,d=h}if(m===s.length)return n(i,d),ji&&wi(i,m),l;if(d===null){for(;m<s.length;m++)d=f(i,s[m],c),d!==null&&(a=o(d,a,m),u===null?l=d:u.sibling=d,u=d);return ji&&wi(i,m),l}for(d=r(d);m<s.length;m++)h=g(d,i,m,s[m],c),h!==null&&(e&&h.alternate!==null&&d.delete(h.key===null?m:h.key),a=o(h,a,m),u===null?l=h:u.sibling=h,u=h);return e&&d.forEach(function(e){return t(i,e)}),ji&&wi(i,m),l}function y(a,s,c,l){if(c==null)throw Error(i(151));for(var u=null,d=null,m=s,h=s=0,_=null,v=c.next();m!==null&&!v.done;h++,v=c.next()){m.index>h?(_=m,m=null):_=m.sibling;var y=p(a,m,v.value,l);if(y===null){m===null&&(m=_);break}e&&m&&y.alternate===null&&t(a,m),s=o(y,s,h),d===null?u=y:d.sibling=y,d=y,m=_}if(v.done)return n(a,m),ji&&wi(a,h),u;if(m===null){for(;!v.done;h++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,h),d===null?u=v:d.sibling=v,d=v);return ji&&wi(a,h),u}for(m=r(m);!v.done;h++,v=c.next())v=g(m,a,h,v.value,l),v!==null&&(e&&v.alternate!==null&&m.delete(v.key===null?h:v.key),s=o(v,s,h),d===null?u=v:d.sibling=v,d=v);return e&&m.forEach(function(e){return t(a,e)}),ji&&wi(a,h),u}function b(e,r,o,c){if(typeof o==`object`&&o&&o.type===_&&o.key===null&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case m:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===_){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===O&&Ca(l)===r.type){n(e,r.sibling),c=a(r,o.props),Aa(c,o),c.return=e,e=c;break a}n(e,r);break}else t(e,r);r=r.sibling}o.type===_?(c=li(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=ci(o.type,o.key,o.props,null,e.mode,c),Aa(c,o),c.return=e,e=c)}return s(e);case h:a:{for(l=o.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}else{n(e,r);break}else t(e,r);r=r.sibling}c=fi(o,e.mode,c),c.return=e,e=c}return s(e);case O:return o=Ca(o),b(e,r,o,c)}if(te(o))return v(e,r,o,c);if(M(o)){if(l=M(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),y(e,r,o,c)}if(typeof o.then==`function`)return b(e,r,ka(o),c);if(o.$$typeof===C)return b(e,r,Qi(e,o),c);ja(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=ui(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{Oa=0;var i=b(e,t,n,r);return Da=null,i}catch(t){if(t===_a||t===ya)throw t;var a=ii(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var Na=Ma(!0),Pa=Ma(!1),Fa=!1;function Ia(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function La(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Ra(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function za(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,zl&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=ti(e),ei(e,null,n),t}return Zr(e,r,t,n),ti(e)}function Ba(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ye(e,n)}}function Va(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Ha=!1;function Ua(){if(Ha){var e=ca;if(e!==null)throw e}}function Wa(e,t,n,r){Ha=!1;var i=e.updateQueue;Fa=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var p=s.lane&-536870913,m=p!==s.lane;if(m?(Hl&p)===p:(r&p)===p){p!==0&&p===W&&(Ha=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var h=e,g=s;p=t;var _=n;switch(g.tag){case 1:if(h=g.payload,typeof h==`function`){d=h.call(_,d,p);break a}d=h;break a;case 3:h.flags=h.flags&-65537|128;case 0:if(h=g.payload,p=typeof h==`function`?h.call(_,d,p):h,p==null)break a;d=f({},d,p);break a;case 2:Fa=!0}}p=s.callback,p!==null&&(e.flags|=64,m&&(e.flags|=8192),m=i.callbacks,m===null?i.callbacks=[p]:m.push(p))}else m={lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=m,c=d):u=u.next=m,o|=p;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;m=s,s=m.next,m.next=null,i.lastBaseUpdate=m,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),Xl|=o,e.lanes=o,e.memoizedState=d}}function Ga(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function Ka(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Ga(n[e],t)}var qa=I(null),Ja=I(0);function Ya(e,t){e=Jl,L(Ja,e),L(qa,t),Jl=e|t.baseLanes}function Xa(){L(Ja,Jl),L(qa,qa.current)}function Za(){Jl=Ja.current,ae(qa),ae(Ja)}var Qa=I(null),$a=null;function eo(e){var t=e.alternate;L(ao,ao.current&1),L(Qa,e),$a===null&&(t===null||qa.current!==null||t.memoizedState!==null)&&($a=e)}function to(e){L(ao,ao.current),L(Qa,e),$a===null&&($a=e)}function no(e){e.tag===22?(L(ao,ao.current),L(Qa,e),$a===null&&($a=e)):ro(e)}function ro(){L(ao,ao.current),L(Qa,Qa.current)}function io(e){ae(Qa),$a===e&&($a=null),ae(ao)}var ao=I(0);function oo(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||pf(n)||mf(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder===`forwards`||t.memoizedProps.revealOrder===`backwards`||t.memoizedProps.revealOrder===`unstable_legacy-backwards`||t.memoizedProps.revealOrder===`together`)){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var so=0,co=null,lo=null,uo=null,fo=!1,po=!1,mo=!1,ho=0,go=0,_o=null,vo=0;function yo(){throw Error(i(321))}function bo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!vr(e[n],t[n]))return!1;return!0}function xo(e,t,n,r,i,a){return so=a,co=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,P.H=e===null||e.memoizedState===null?Ls:Rs,mo=!1,a=n(r,i),mo=!1,po&&(a=Co(t,n,r,i)),So(e),a}function So(e){P.H=Is;var t=lo!==null&&lo.next!==null;if(so=0,uo=lo=co=null,fo=!1,go=0,_o=null,t)throw Error(i(300));e===null||tc||(e=e.dependencies,e!==null&&Yi(e)&&(tc=!0))}function Co(e,t,n,r){co=e;var a=0;do{if(po&&(_o=null),go=0,po=!1,25<=a)throw Error(i(301));if(a+=1,uo=lo=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}P.H=zs,o=t(n,r)}while(po);return o}function wo(){var e=P.H,t=e.useState()[0];return t=typeof t.then==`function`?jo(t):t,e=e.useState()[0],(lo===null?null:lo.memoizedState)!==e&&(co.flags|=1024),t}function To(){var e=ho!==0;return ho=0,e}function Eo(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Do(e){if(fo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}fo=!1}so=0,uo=lo=co=null,po=!1,go=ho=0,_o=null}function Oo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return uo===null?co.memoizedState=uo=e:uo=uo.next=e,uo}function ko(){if(lo===null){var e=co.alternate;e=e===null?null:e.memoizedState}else e=lo.next;var t=uo===null?co.memoizedState:uo.next;if(t!==null)uo=t,lo=e;else{if(e===null)throw co.alternate===null?Error(i(467)):Error(i(310));lo=e,e={memoizedState:lo.memoizedState,baseState:lo.baseState,baseQueue:lo.baseQueue,queue:lo.queue,next:null},uo===null?co.memoizedState=uo=e:uo=uo.next=e}return uo}function Ao(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function jo(e){var t=go;return go+=1,_o===null&&(_o=[]),e=Sa(_o,e,t),t=co,(uo===null?t.memoizedState:uo.next)===null&&(t=t.alternate,P.H=t===null||t.memoizedState===null?Ls:Rs),e}function Mo(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return jo(e);if(e.$$typeof===C)return Zi(e)}throw Error(i(438,String(e)))}function No(e){var t=null,n=co.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=co.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=Ao(),co.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=A;return t.index++,n}function Po(e,t){return typeof t==`function`?t(e):t}function G(e){return Fo(ko(),lo,e)}function Fo(e,t,n){var r=e.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=n;var a=e.baseQueue,o=r.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}t.baseQueue=a=o,r.pending=null}if(o=e.baseState,a===null)e.memoizedState=o;else{t=a.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(so&f)===f:(Hl&f)===f){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===W&&(d=!0);else if((so&p)===p){u=u.next,p===W&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=f,s=o):l=l.next=f,co.lanes|=p,Xl|=p;f=u.action,mo&&n(o,f),o=u.hasEagerState?u.eagerState:n(o,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,s=o):l=l.next=p,co.lanes|=f,Xl|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!vr(o,e.memoizedState)&&(tc=!0,d&&(n=ca,n!==null)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=l,r.lastRenderedState=o}return a===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function Io(e){var t=ko(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);vr(o,t.memoizedState)||(tc=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Lo(e,t,n){var r=co,a=ko(),o=ji;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!vr((lo||a).memoizedState,n);if(s&&(a.memoizedState=n,tc=!0),a=a.queue,cs(Bo.bind(null,r,a,e),[e]),a.getSnapshot!==t||s||uo!==null&&uo.memoizedState.tag&1){if(r.flags|=2048,rs(9,{destroy:void 0},zo.bind(null,r,a,n,t),null),Bl===null)throw Error(i(349));o||so&127||Ro(r,t,n)}return n}function Ro(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=co.updateQueue,t===null?(t=Ao(),co.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function zo(e,t,n,r){t.value=n,t.getSnapshot=r,Vo(t)&&Ho(e)}function Bo(e,t,n){return n(function(){Vo(t)&&Ho(e)})}function Vo(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!vr(e,n)}catch{return!0}}function Ho(e){var t=$r(e,2);t!==null&&bu(t,e,2)}function Uo(e){var t=Oo();if(typeof e==`function`){var n=e;if(e=n(),mo){Me(!0);try{n()}finally{Me(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Po,lastRenderedState:e},t}function Wo(e,t,n,r){return e.baseState=n,Fo(e,lo,typeof r==`function`?r:Po)}function Go(e,t,n,r,a){if(Ns(e))throw Error(i(485));if(e=t.action,e!==null){var o={payload:a,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};P.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,Ko(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Ko(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=P.T,o={};P.T=o;try{var s=n(i,r),c=P.S;c!==null&&c(o,s),qo(e,t,s)}catch(n){Yo(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),P.T=a}}else try{a=n(i,r),qo(e,t,a)}catch(n){Yo(e,t,n)}}function qo(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){Jo(e,t,n)},function(n){return Yo(e,t,n)}):Jo(e,t,n)}function Jo(e,t,n){t.status=`fulfilled`,t.value=n,Xo(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Ko(e,n)))}function Yo(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,Xo(t),t=t.next;while(t!==r)}e.action=null}function Xo(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Zo(e,t){return t}function Qo(e,t){if(ji){var n=Bl.formState;if(n!==null){a:{var r=co;if(ji){if(Ai){b:{for(var i=Ai,a=Mi;i.nodeType!==8;){if(!a){i=null;break b}if(i=gf(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){Ai=gf(i.nextSibling),r=i.data===`F!`;break a}}Pi(r)}r=!1}r&&(t=n[0])}}return n=Oo(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Zo,lastRenderedState:t},n.queue=r,n=As.bind(null,co,r),r.dispatch=n,r=Uo(!1),a=Ms.bind(null,co,!1,r.queue),r=Oo(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Go.bind(null,co,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function $o(e){return es(ko(),lo,e)}function es(e,t,n){if(t=Fo(e,t,Zo)[0],e=G(Po)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=jo(t)}catch(e){throw e===_a?ya:e}else r=t;t=ko();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(co.flags|=2048,rs(9,{destroy:void 0},ts.bind(null,i,n),null)),[r,a,e]}function ts(e,t){e.action=t}function ns(e){var t=ko(),n=lo;if(n!==null)return es(t,n,e);ko(),t=t.memoizedState,n=ko();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function rs(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=co.updateQueue,t===null&&(t=Ao(),co.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function is(){return ko().memoizedState}function as(e,t,n,r){var i=Oo();co.flags|=e,i.memoizedState=rs(1|t,{destroy:void 0},n,r===void 0?null:r)}function os(e,t,n,r){var i=ko();r=r===void 0?null:r;var a=i.memoizedState.inst;lo!==null&&r!==null&&bo(r,lo.memoizedState.deps)?i.memoizedState=rs(t,a,n,r):(co.flags|=e,i.memoizedState=rs(1|t,a,n,r))}function ss(e,t){as(8390656,8,e,t)}function cs(e,t){os(2048,8,e,t)}function ls(e){co.flags|=4;var t=co.updateQueue;if(t===null)t=Ao(),co.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function us(e){var t=ko().memoizedState;return ls({ref:t,nextImpl:e}),function(){if(zl&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function ds(e,t){return os(4,2,e,t)}function fs(e,t){return os(4,4,e,t)}function ps(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function ms(e,t,n){n=n==null?null:n.concat([e]),os(4,4,ps.bind(null,t,e),n)}function hs(){}function gs(e,t){var n=ko();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&bo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function _s(e,t){var n=ko();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&bo(t,r[1]))return r[0];if(r=e(),mo){Me(!0);try{e()}finally{Me(!1)}}return n.memoizedState=[r,t],r}function vs(e,t,n){return n===void 0||so&1073741824&&!(Hl&261930)?e.memoizedState=t:(e.memoizedState=n,e=yu(),co.lanes|=e,Xl|=e,n)}function ys(e,t,n,r){return vr(n,t)?n:qa.current===null?!(so&42)||so&1073741824&&!(Hl&261930)?(tc=!0,e.memoizedState=n):(e=yu(),co.lanes|=e,Xl|=e,t):(e=vs(e,n,r),vr(e,t)||(tc=!0),e)}function bs(e,t,n,r,i){var a=F.p;F.p=a!==0&&8>a?a:8;var o=P.T,s={};P.T=s,Ms(e,!1,t,n);try{var c=i(),l=P.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?js(e,t,da(c,r),vu(e)):js(e,t,r,vu(e))}catch(n){js(e,t,{then:function(){},status:`rejected`,reason:n},vu())}finally{F.p=a,o!==null&&s.types!==null&&(o.types=s.types),P.T=o}}function xs(){}function Ss(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=Cs(e).queue;bs(e,a,t,ne,n===null?xs:function(){return ws(e),n(r)})}function Cs(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ne,baseState:ne,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Po,lastRenderedState:ne},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Po,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function ws(e){var t=Cs(e);t.next===null&&(t=e.alternate.memoizedState),js(e,t.next.queue,{},vu())}function Ts(){return Zi(ap)}function Es(){return ko().memoizedState}function Ds(){return ko().memoizedState}function Os(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=vu();e=Ra(n);var r=za(t,e,n);r!==null&&(bu(r,t,n),Ba(r,t,n)),t={cache:ia()},e.payload=t;return}t=t.return}}function ks(e,t,n){var r=vu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Ns(e)?Ps(t,n):(n=Qr(e,t,n,r),n!==null&&(bu(n,e,r),Fs(n,t,r)))}function As(e,t,n){js(e,t,n,vu())}function js(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ns(e))Ps(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,vr(s,o))return Zr(e,t,i,0),Bl===null&&Xr(),!1}catch{}if(n=Qr(e,t,i,r),n!==null)return bu(n,e,r),Fs(n,t,r),!0}return!1}function Ms(e,t,n,r){if(r={lane:2,revertLane:_d(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Ns(e)){if(t)throw Error(i(479))}else t=Qr(e,n,r,2),t!==null&&bu(t,e,2)}function Ns(e){var t=e.alternate;return e===co||t!==null&&t===co}function Ps(e,t){po=fo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Fs(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ye(e,n)}}var Is={readContext:Zi,use:Mo,useCallback:yo,useContext:yo,useEffect:yo,useImperativeHandle:yo,useLayoutEffect:yo,useInsertionEffect:yo,useMemo:yo,useReducer:yo,useRef:yo,useState:yo,useDebugValue:yo,useDeferredValue:yo,useTransition:yo,useSyncExternalStore:yo,useId:yo,useHostTransitionStatus:yo,useFormState:yo,useActionState:yo,useOptimistic:yo,useMemoCache:yo,useCacheRefresh:yo};Is.useEffectEvent=yo;var Ls={readContext:Zi,use:Mo,useCallback:function(e,t){return Oo().memoizedState=[e,t===void 0?null:t],e},useContext:Zi,useEffect:ss,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),as(4194308,4,ps.bind(null,t,e),n)},useLayoutEffect:function(e,t){return as(4194308,4,e,t)},useInsertionEffect:function(e,t){as(4,2,e,t)},useMemo:function(e,t){var n=Oo();t=t===void 0?null:t;var r=e();if(mo){Me(!0);try{e()}finally{Me(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Oo();if(n!==void 0){var i=n(t);if(mo){Me(!0);try{n(t)}finally{Me(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=ks.bind(null,co,e),[r.memoizedState,e]},useRef:function(e){var t=Oo();return e={current:e},t.memoizedState=e},useState:function(e){e=Uo(e);var t=e.queue,n=As.bind(null,co,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:hs,useDeferredValue:function(e,t){return vs(Oo(),e,t)},useTransition:function(){var e=Uo(!1);return e=bs.bind(null,co,e.queue,!0,!1),Oo().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=co,a=Oo();if(ji){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),Bl===null)throw Error(i(349));Hl&127||Ro(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,ss(Bo.bind(null,r,o,e),[e]),r.flags|=2048,rs(9,{destroy:void 0},zo.bind(null,r,o,n,t),null),n},useId:function(){var e=Oo(),t=Bl.identifierPrefix;if(ji){var n=Ci,r=Si;n=(r&~(1<<32-Ne(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=ho++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=vo++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:Ts,useFormState:Qo,useActionState:Qo,useOptimistic:function(e){var t=Oo();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Ms.bind(null,co,!0,n),n.dispatch=t,[e,t]},useMemoCache:No,useCacheRefresh:function(){return Oo().memoizedState=Os.bind(null,co)},useEffectEvent:function(e){var t=Oo(),n={impl:e};return t.memoizedState=n,function(){if(zl&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},Rs={readContext:Zi,use:Mo,useCallback:gs,useContext:Zi,useEffect:cs,useImperativeHandle:ms,useInsertionEffect:ds,useLayoutEffect:fs,useMemo:_s,useReducer:G,useRef:is,useState:function(){return G(Po)},useDebugValue:hs,useDeferredValue:function(e,t){return ys(ko(),lo.memoizedState,e,t)},useTransition:function(){var e=G(Po)[0],t=ko().memoizedState;return[typeof e==`boolean`?e:jo(e),t]},useSyncExternalStore:Lo,useId:Es,useHostTransitionStatus:Ts,useFormState:$o,useActionState:$o,useOptimistic:function(e,t){return Wo(ko(),lo,e,t)},useMemoCache:No,useCacheRefresh:Ds};Rs.useEffectEvent=us;var zs={readContext:Zi,use:Mo,useCallback:gs,useContext:Zi,useEffect:cs,useImperativeHandle:ms,useInsertionEffect:ds,useLayoutEffect:fs,useMemo:_s,useReducer:Io,useRef:is,useState:function(){return Io(Po)},useDebugValue:hs,useDeferredValue:function(e,t){var n=ko();return lo===null?vs(n,e,t):ys(n,lo.memoizedState,e,t)},useTransition:function(){var e=Io(Po)[0],t=ko().memoizedState;return[typeof e==`boolean`?e:jo(e),t]},useSyncExternalStore:Lo,useId:Es,useHostTransitionStatus:Ts,useFormState:ns,useActionState:ns,useOptimistic:function(e,t){var n=ko();return lo===null?(n.baseState=e,[e,n.queue.dispatch]):Wo(n,lo,e,t)},useMemoCache:No,useCacheRefresh:Ds};zs.useEffectEvent=us;function Bs(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:f({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Vs={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=vu(),i=Ra(r);i.payload=t,n!=null&&(i.callback=n),t=za(e,i,r),t!==null&&(bu(t,e,r),Ba(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=vu(),i=Ra(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=za(e,i,r),t!==null&&(bu(t,e,r),Ba(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=vu(),r=Ra(n);r.tag=2,t!=null&&(r.callback=t),t=za(e,r,n),t!==null&&(bu(t,e,n),Ba(t,e,n))}};function Hs(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!yr(n,r)||!yr(i,a):!0}function Us(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Vs.enqueueReplaceState(t,t.state,null)}function Ws(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=f({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function Gs(e){Kr(e)}function Ks(e){console.error(e)}function qs(e){Kr(e)}function Js(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Ys(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function Xs(e,t,n){return n=Ra(n),n.tag=3,n.payload={element:null},n.callback=function(){Js(e,t)},n}function Zs(e){return e=Ra(e),e.tag=3,e}function Qs(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){Ys(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){Ys(t,n,r),typeof i!=`function`&&(cu===null?cu=new Set([this]):cu.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function $s(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&Ji(t,n,a,!0),n=Qa.current,n!==null){switch(n.tag){case 31:case 13:return $a===null?Mu():n.alternate===null&&Yl===0&&(Yl=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===ba?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),Zu(e,r,a)),!1;case 22:return n.flags|=65536,r===ba?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),Zu(e,r,a)),!1}throw Error(i(435,n.tag))}return Zu(e,r,a),Mu(),!1}if(ji)return t=Qa.current,t===null?(r!==Ni&&(t=Error(i(423),{cause:r}),Bi(mi(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=mi(r,n),a=Xs(e.stateNode,r,a),Va(e,a),Yl!==4&&(Yl=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==Ni&&(e=Error(i(422),{cause:r}),Bi(mi(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=mi(o,n),tu===null?tu=[o]:tu.push(o),Yl!==4&&(Yl=2),t===null)return!0;r=mi(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=Xs(n.stateNode,r,e),Va(n,e),!1;case 1:if(t=n.type,o=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||o!==null&&typeof o.componentDidCatch==`function`&&(cu===null||!cu.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=Zs(a),Qs(a,e,n,r),Va(n,a),!1}n=n.return}while(n!==null);return!1}var ec=Error(i(461)),tc=!1;function nc(e,t,n,r){t.child=e===null?Pa(t,null,n,r):Na(t,e.child,n,r)}function rc(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return Xi(t),r=xo(e,t,n,o,a,i),s=To(),e!==null&&!tc?(Eo(e,t,i),Dc(e,t,i)):(ji&&s&&Ei(t),t.flags|=1,nc(e,t,r,i),t.child)}function ic(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!ai(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,ac(e,t,a,r,i)):(e=ci(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!Oc(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?yr:n,n(o,r)&&e.ref===t.ref)return Dc(e,t,i)}return t.flags|=1,e=oi(a,r),e.ref=t.ref,e.return=t,t.child=e}function ac(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(yr(a,r)&&e.ref===t.ref)if(tc=!1,t.pendingProps=r=a,Oc(e,i))e.flags&131072&&(tc=!0);else return t.lanes=e.lanes,Dc(e,t,i)}return pc(e,t,n,r,i)}function oc(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return cc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ha(t,a===null?null:a.cachePool),a===null?Xa():Ya(t,a),no(t);else return r=t.lanes=536870912,cc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&ha(t,null),Xa(),ro(t)):(ha(t,a.cachePool),Ya(t,a),ro(t),t.memoizedState=null);return nc(e,t,i,n),t.child}function sc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function cc(e,t,n,r,i){var a=ma();return a=a===null?null:{parent:ra._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&ha(t,null),Xa(),no(t),e!==null&&Ji(e,t,r,!0),t.childLanes=i,null}function lc(e,t){return t=Sc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function uc(e,t,n){return Na(t,e.child,null,n),e=lc(t,t.pendingProps),e.flags|=2,io(t),t.memoizedState=null,e}function dc(e,t,n){var r=t.pendingProps,a=(t.flags&128)!=0;if(t.flags&=-129,e===null){if(ji){if(r.mode===`hidden`)return e=lc(t,r),t.lanes=536870912,sc(null,e);if(to(t),(e=Ai)?(e=ff(e,Mi),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:xi===null?null:{id:Si,overflow:Ci},retryLane:536870912,hydrationErrors:null},n=di(e),n.return=t,t.child=n,ki=t,Ai=null)):e=null,e===null)throw Pi(t);return t.lanes=536870912,null}return lc(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(to(t),a)if(t.flags&256)t.flags&=-257,t=uc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558));else if(tc||Ji(e,t,n,!1),a=(n&e.childLanes)!==0,tc||a){if(r=Bl,r!==null&&(s=Xe(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,$r(e,s),bu(r,e,s),ec;Mu(),t=uc(e,t,n)}else e=o.treeContext,Ai=gf(s.nextSibling),ki=t,ji=!0,U=null,Mi=!1,e!==null&&Oi(t,e),t=lc(t,r),t.flags|=4096;return t}return e=oi(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function fc(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(i(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function pc(e,t,n,r,i){return Xi(t),n=xo(e,t,n,r,void 0,i),r=To(),e!==null&&!tc?(Eo(e,t,i),Dc(e,t,i)):(ji&&r&&Ei(t),t.flags|=1,nc(e,t,n,i),t.child)}function mc(e,t,n,r,i,a){return Xi(t),t.updateQueue=null,n=Co(t,r,n,i),So(e),r=To(),e!==null&&!tc?(Eo(e,t,a),Dc(e,t,a)):(ji&&r&&Ei(t),t.flags|=1,nc(e,t,n,a),t.child)}function hc(e,t,n,r,i){if(Xi(t),t.stateNode===null){var a=ni,o=n.contextType;typeof o==`object`&&o&&(a=Zi(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=Vs,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},Ia(t),o=n.contextType,a.context=typeof o==`object`&&o?Zi(o):ni,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(Bs(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&Vs.enqueueReplaceState(a,a.state,null),Wa(t,r,a,i),Ua(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=Ws(n,s);a.props=c;var l=a.context,u=n.contextType;o=ni,typeof u==`object`&&u&&(o=Zi(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&Us(t,a,r,o),Fa=!1;var f=t.memoizedState;a.state=f,Wa(t,r,a,i),Ua(),l=t.memoizedState,s||f!==l||Fa?(typeof d==`function`&&(Bs(t,n,d,r),l=t.memoizedState),(c=Fa||Hs(t,n,c,r,f,l,o))?(u||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,La(e,t),o=t.memoizedProps,u=Ws(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=ni,typeof l==`object`&&l&&(c=Zi(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&Us(t,a,r,c),Fa=!1,f=t.memoizedState,a.state=f,Wa(t,r,a,i),Ua();var p=t.memoizedState;o!==d||f!==p||Fa||e!==null&&e.dependencies!==null&&Yi(e.dependencies)?(typeof s==`function`&&(Bs(t,n,s,r),p=t.memoizedState),(u=Fa||Hs(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&Yi(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,fc(e,t),r=(t.flags&128)!=0,a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=Na(t,e.child,null,i),t.child=Na(t,null,n,i)):nc(e,t,n,i),t.memoizedState=a.state,e=t.child):e=Dc(e,t,i),e}function gc(e,t,n,r){return Ri(),t.flags|=256,nc(e,t,n,r),t.child}var _c={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function vc(e){return{baseLanes:e,cachePool:ga()}}function yc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=$l),e}function bc(e,t,n){var r=t.pendingProps,a=!1,o=(t.flags&128)!=0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(ao.current&2)!=0),s&&(a=!0,t.flags&=-129),s=(t.flags&32)!=0,t.flags&=-33,e===null){if(ji){if(a?eo(t):ro(t),(e=Ai)?(e=ff(e,Mi),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:xi===null?null:{id:Si,overflow:Ci},retryLane:536870912,hydrationErrors:null},n=di(e),n.return=t,t.child=n,ki=t,Ai=null)):e=null,e===null)throw Pi(t);return mf(e)?t.lanes=32:t.lanes=536870912,null}var c=r.children;return r=r.fallback,a?(ro(t),a=t.mode,c=Sc({mode:`hidden`,children:c},a),r=li(r,a,n,null),c.return=t,r.return=t,c.sibling=r,t.child=c,r=t.child,r.memoizedState=vc(n),r.childLanes=yc(e,s,n),t.memoizedState=_c,sc(null,r)):(eo(t),xc(t,c))}var l=e.memoizedState;if(l!==null&&(c=l.dehydrated,c!==null)){if(o)t.flags&256?(eo(t),t.flags&=-257,t=Cc(e,t,n)):t.memoizedState===null?(ro(t),c=r.fallback,a=t.mode,r=Sc({mode:`visible`,children:r.children},a),c=li(c,a,n,null),c.flags|=2,r.return=t,c.return=t,r.sibling=c,t.child=r,Na(t,e.child,null,n),r=t.child,r.memoizedState=vc(n),r.childLanes=yc(e,s,n),t.memoizedState=_c,t=sc(null,r)):(ro(t),t.child=e.child,t.flags|=128,t=null);else if(eo(t),mf(c)){if(s=c.nextSibling&&c.nextSibling.dataset,s)var u=s.dgst;s=u,r=Error(i(419)),r.stack=``,r.digest=s,Bi({value:r,source:null,stack:null}),t=Cc(e,t,n)}else if(tc||Ji(e,t,n,!1),s=(n&e.childLanes)!==0,tc||s){if(s=Bl,s!==null&&(r=Xe(s,n),r!==0&&r!==l.retryLane))throw l.retryLane=r,$r(e,r),bu(s,e,r),ec;pf(c)||Mu(),t=Cc(e,t,n)}else pf(c)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,Ai=gf(c.nextSibling),ki=t,ji=!0,U=null,Mi=!1,e!==null&&Oi(t,e),t=xc(t,r.children),t.flags|=4096);return t}return a?(ro(t),c=r.fallback,a=t.mode,l=e.child,u=l.sibling,r=oi(l,{mode:`hidden`,children:r.children}),r.subtreeFlags=l.subtreeFlags&65011712,u===null?(c=li(c,a,n,null),c.flags|=2):c=oi(u,c),c.return=t,r.return=t,r.sibling=c,t.child=r,sc(null,r),r=t.child,c=e.child.memoizedState,c===null?c=vc(n):(a=c.cachePool,a===null?a=ga():(l=ra._currentValue,a=a.parent===l?a:{parent:l,pool:l}),c={baseLanes:c.baseLanes|n,cachePool:a}),r.memoizedState=c,r.childLanes=yc(e,s,n),t.memoizedState=_c,sc(e.child,r)):(eo(t),n=e.child,e=n.sibling,n=oi(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=n,t.memoizedState=null,n)}function xc(e,t){return t=Sc({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function Sc(e,t){return e=ii(22,e,null,t),e.lanes=0,e}function Cc(e,t,n){return Na(t,e.child,null,n),e=xc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function wc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Ki(e.return,t,n)}function Tc(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function Ec(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=ao.current,s=(o&2)!=0;if(s?(o=o&1|2,t.flags|=128):o&=1,L(ao,o),nc(e,t,r,n),r=ji?vi:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&wc(e,n,t);else if(e.tag===19)wc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&oo(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Tc(t,!1,i,n,a,r);break;case`backwards`:case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&oo(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Tc(t,!0,n,null,a,r);break;case`together`:Tc(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function Dc(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Xl|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Ji(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=oi(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=oi(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Oc(e,t){return(e.lanes&t)===0?(e=e.dependencies,!!(e!==null&&Yi(e))):!0}function kc(e,t,n){switch(t.tag){case 3:ue(t,t.stateNode.containerInfo),Wi(t,ra,e.memoizedState.cache),Ri();break;case 27:case 5:fe(t);break;case 4:ue(t,t.stateNode.containerInfo);break;case 10:Wi(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,to(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(eo(t),e=Dc(e,t,n),e===null?null:e.sibling):bc(e,t,n):(eo(t),t.flags|=128,null);eo(t);break;case 19:var i=(e.flags&128)!=0;if(r=(n&t.childLanes)!==0,r||=(Ji(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return Ec(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),L(ao,ao.current),r)break;return null;case 22:return t.lanes=0,oc(e,t,n,t.pendingProps);case 24:Wi(t,ra,e.memoizedState.cache)}return Dc(e,t,n)}function Ac(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)tc=!0;else{if(!Oc(e,n)&&!(t.flags&128))return tc=!1,kc(e,t,n);tc=!!(e.flags&131072)}else tc=!1,ji&&t.flags&1048576&&Ti(t,vi,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=Ca(t.elementType),t.type=e,typeof e==`function`)ai(e)?(r=Ws(e,r),t.tag=1,t=hc(null,t,e,r,n)):(t.tag=0,t=pc(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===w){t.tag=11,t=rc(null,t,e,r,n);break a}else if(a===D){t.tag=14,t=ic(null,t,e,r,n);break a}}throw t=ee(e)||e,Error(i(306,t,``))}}return t;case 0:return pc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=Ws(r,t.pendingProps),hc(e,t,r,a,n);case 3:a:{if(ue(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,La(e,t),Wa(t,r,null,n);var s=t.memoizedState;if(r=s.cache,Wi(t,ra,r),r!==o.cache&&qi(t,[ra],n,!0),Ua(),r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=gc(e,t,r,n);break a}else if(r!==a){a=mi(Error(i(424)),t),Bi(a),t=gc(e,t,r,n);break a}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(Ai=gf(e.firstChild),ki=t,ji=!0,U=null,Mi=!0,n=Pa(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Ri(),r===a){t=Dc(e,t,n);break a}nc(e,t,r,n)}t=t.child}return t;case 26:return fc(e,t),e===null?(n=Lf(t.type,null,t.pendingProps,null))?t.memoizedState=n:ji||(n=t.type,e=t.pendingProps,r=Jd(ce.current).createElement(n),r[nt]=t,r[rt]=e,Hd(r,n,e),ht(r),t.stateNode=r):t.memoizedState=Lf(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return fe(t),e===null&&ji&&(r=t.stateNode=bf(t.type,t.pendingProps,ce.current),ki=t,Mi=!0,a=Ai,of(t.type)?(_f=a,Ai=gf(r.firstChild)):Ai=a),nc(e,t,t.pendingProps.children,n),fc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ji&&((a=r=Ai)&&(r=uf(r,t.type,t.pendingProps,Mi),r===null?a=!1:(t.stateNode=r,ki=t,Ai=gf(r.firstChild),Mi=!1,a=!0)),a||Pi(t)),fe(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,Zd(a,o)?r=null:s!==null&&Zd(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=xo(e,t,wo,null,null,n),ap._currentValue=a),fc(e,t),nc(e,t,r,n),t.child;case 6:return e===null&&ji&&((e=n=Ai)&&(n=df(n,t.pendingProps,Mi),n===null?e=!1:(t.stateNode=n,ki=t,Ai=null,e=!0)),e||Pi(t)),null;case 13:return bc(e,t,n);case 4:return ue(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Na(t,null,r,n):nc(e,t,r,n),t.child;case 11:return rc(e,t,t.type,t.pendingProps,n);case 7:return nc(e,t,t.pendingProps,n),t.child;case 8:return nc(e,t,t.pendingProps.children,n),t.child;case 12:return nc(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,Wi(t,t.type,r.value),nc(e,t,r.children,n),t.child;case 9:return a=t.type._context,r=t.pendingProps.children,Xi(t),a=Zi(a),r=r(a),t.flags|=1,nc(e,t,r,n),t.child;case 14:return ic(e,t,t.type,t.pendingProps,n);case 15:return ac(e,t,t.type,t.pendingProps,n);case 19:return Ec(e,t,n);case 31:return dc(e,t,n);case 22:return oc(e,t,n,t.pendingProps);case 24:return Xi(t),r=Zi(ra),e===null?(a=ma(),a===null&&(a=Bl,o=ia(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},Ia(t),Wi(t,ra,a)):((e.lanes&n)!==0&&(La(e,t),Wa(t,null,null,n),Ua()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,Wi(t,ra,r),r!==a.cache&&qi(t,[ra],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),Wi(t,ra,r))),nc(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function jc(e){e.flags|=4}function Mc(e,t,n,r,i){if((t=(e.mode&32)!=0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(ku())e.flags|=8192;else throw wa=ba,va}else e.flags&=-16777217}function Nc(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!Zf(t))if(ku())e.flags|=8192;else throw wa=ba,va}function Pc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:We(),e.lanes|=t,eu|=t)}function Fc(e,t){if(!ji)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ic(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&65011712,r|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Lc(e,t,n){var r=t.pendingProps;switch(Di(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ic(t),null;case 1:return Ic(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Gi(ra),de(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Li(t)?jc(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,zi())),Ic(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(jc(t),o===null?(Ic(t),Mc(t,a,null,r,n)):(Ic(t),Nc(t,o))):o?o===e.memoizedState?(Ic(t),t.flags&=-16777217):(jc(t),Ic(t),Nc(t,o)):(e=e.memoizedProps,e!==r&&jc(t),Ic(t),Mc(t,a,e,r,n)),null;case 27:if(R(t),n=ce.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&jc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Ic(t),null}e=oe.current,Li(t)?Fi(t,e):(e=bf(a,r,n),t.stateNode=e,jc(t))}return Ic(t),null;case 5:if(R(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&jc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Ic(t),null}if(o=oe.current,Li(t))Fi(t,o);else{var s=Jd(ce.current);switch(o){case 1:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case 2:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;default:switch(a){case`svg`:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case`math`:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;case`script`:o=s.createElement(`div`),o.innerHTML=`<script><\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[nt]=t,o[rt]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(Hd(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&jc(t)}}return Ic(t),Mc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&jc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=ce.current,Li(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=ki,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[nt]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||zd(e.nodeValue,n)),e||Pi(t,!0)}else e=Jd(e).createTextNode(r),e[nt]=t,t.stateNode=e}return Ic(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Li(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[nt]=t}else Ri(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ic(t),e=!1}else n=zi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(io(t),t):(io(t),null);if(t.flags&128)throw Error(i(558))}return Ic(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=Li(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[nt]=t}else Ri(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ic(t),a=!1}else a=zi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(io(t),t):(io(t),null)}return io(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Pc(t,t.updateQueue),Ic(t),null);case 4:return de(),e===null&&kd(t.stateNode.containerInfo),Ic(t),null;case 10:return Gi(t.type),Ic(t),null;case 19:if(ae(ao),r=t.memoizedState,r===null)return Ic(t),null;if(a=(t.flags&128)!=0,o=r.rendering,o===null)if(a)Fc(r,!1);else{if(Yl!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=oo(e),o!==null){for(t.flags|=128,Fc(r,!1),e=o.updateQueue,t.updateQueue=e,Pc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)si(n,e),n=n.sibling;return L(ao,ao.current&1|2),ji&&wi(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&H()>ou&&(t.flags|=128,a=!0,Fc(r,!1),t.lanes=4194304)}else{if(!a)if(e=oo(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,Pc(t,e),Fc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!ji)return Ic(t),null}else 2*H()-r.renderingStartTime>ou&&n!==536870912&&(t.flags|=128,a=!0,Fc(r,!1),t.lanes=4194304);r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}return r.tail===null?(Ic(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=H(),e.sibling=null,n=ao.current,L(ao,a?n&1|2:n&1),ji&&wi(t,r.treeForkCount),e);case 22:case 23:return io(t),Za(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Ic(t),t.subtreeFlags&6&&(t.flags|=8192)):Ic(t),n=t.updateQueue,n!==null&&Pc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&ae(pa),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Gi(ra),Ic(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function Rc(e,t){switch(Di(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Gi(ra),de(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return R(t),null;case 31:if(t.memoizedState!==null){if(io(t),t.alternate===null)throw Error(i(340));Ri()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(io(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));Ri()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ae(ao),null;case 4:return de(),null;case 10:return Gi(t.type),null;case 22:case 23:return io(t),Za(),e!==null&&ae(pa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Gi(ra),null;case 25:return null;default:return null}}function zc(e,t){switch(Di(t),t.tag){case 3:Gi(ra),de();break;case 26:case 27:case 5:R(t);break;case 4:de();break;case 31:t.memoizedState!==null&&io(t);break;case 13:io(t);break;case 19:ae(ao);break;case 10:Gi(t.type);break;case 22:case 23:io(t),Za(),e!==null&&ae(pa);break;case 24:Gi(ra)}}function Bc(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){Xu(t,t.return,e)}}function Vc(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){Xu(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Xu(t,t.return,e)}}function Hc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Ka(t,n)}catch(t){Xu(e,e.return,t)}}}function Uc(e,t,n){n.props=Ws(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Xu(e,t,n)}}function Wc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){Xu(e,t,n)}}function Gc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){Xu(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){Xu(e,t,n)}else n.current=null}function Kc(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){Xu(e,e.return,t)}}function qc(e,t,n){try{var r=e.stateNode;Ud(r,e.type,n,t),r[rt]=t}catch(t){Xu(e,e.return,t)}}function Jc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&of(e.type)||e.tag===4}function Yc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Jc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&of(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Xc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Yt));else if(r!==4&&(r===27&&of(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Xc(e,t,n),e=e.sibling;e!==null;)Xc(e,t,n),e=e.sibling}function Zc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&of(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Zc(e,t,n),e=e.sibling;e!==null;)Zc(e,t,n),e=e.sibling}function Qc(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Hd(t,r,n),t[nt]=e,t[rt]=n}catch(t){Xu(e,e.return,t)}}var $c=!1,el=!1,tl=!1,nl=typeof WeakSet==`function`?WeakSet:Set,rl=null;function il(e,t){if(e=e.containerInfo,Kd=mp,e=Cr(e),wr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||a!==0&&f.nodeType!==3||(c=s+a),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===a&&(c=s),p===o&&++d===r&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(qd={focusedElem:e,selectionRange:n},mp=!1,rl=t;rl!==null;)if(t=rl,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,rl=e;else for(;rl!==null;){switch(t=rl,o=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n<e.length;n++)a=e[n],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&o!==null){e=void 0,n=t,a=o.memoizedProps,o=o.memoizedState,r=n.stateNode;try{var h=Ws(n.type,a);e=r.getSnapshotBeforeUpdate(h,o),r.__reactInternalSnapshotBeforeUpdate=e}catch(e){Xu(n,n.return,e)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)lf(e);else if(n===1)switch(e.nodeName){case`HEAD`:case`HTML`:case`BODY`:lf(e);break;default:e.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(i(163))}if(e=t.sibling,e!==null){e.return=t.return,rl=e;break}rl=t.return}}function al(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:bl(e,n),r&4&&Bc(5,n);break;case 1:if(bl(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){Xu(n,n.return,e)}else{var i=Ws(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){Xu(n,n.return,e)}}r&64&&Hc(n),r&512&&Wc(n,n.return);break;case 3:if(bl(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Ka(e,t)}catch(e){Xu(n,n.return,e)}}break;case 27:t===null&&r&4&&Qc(n);case 26:case 5:bl(e,n),t===null&&r&4&&Kc(n),r&512&&Wc(n,n.return);break;case 12:bl(e,n);break;case 31:bl(e,n),r&4&&dl(e,n);break;case 13:bl(e,n),r&4&&fl(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=ed.bind(null,n),hf(e,n))));break;case 22:if(r=n.memoizedState!==null||$c,!r){t=t!==null&&t.memoizedState!==null||el,i=$c;var a=el;$c=r,(el=t)&&!a?Sl(e,n,(n.subtreeFlags&8772)!=0):bl(e,n),$c=i,el=a}break;case 30:break;default:bl(e,n)}}function ol(e){var t=e.alternate;t!==null&&(e.alternate=null,ol(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&ut(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var sl=null,cl=!1;function ll(e,t,n){for(n=n.child;n!==null;)ul(e,t,n),n=n.sibling}function ul(e,t,n){if(je&&typeof je.onCommitFiberUnmount==`function`)try{je.onCommitFiberUnmount(Ae,n)}catch{}switch(n.tag){case 26:el||Gc(n,t),ll(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:el||Gc(n,t);var r=sl,i=cl;of(n.type)&&(sl=n.stateNode,cl=!1),ll(e,t,n),xf(n.stateNode),sl=r,cl=i;break;case 5:el||Gc(n,t);case 6:if(r=sl,i=cl,sl=null,ll(e,t,n),sl=r,cl=i,sl!==null)if(cl)try{(sl.nodeType===9?sl.body:sl.nodeName===`HTML`?sl.ownerDocument.body:sl).removeChild(n.stateNode)}catch(e){Xu(n,t,e)}else try{sl.removeChild(n.stateNode)}catch(e){Xu(n,t,e)}break;case 18:sl!==null&&(cl?(e=sl,sf(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Bp(e)):sf(sl,n.stateNode));break;case 4:r=sl,i=cl,sl=n.stateNode.containerInfo,cl=!0,ll(e,t,n),sl=r,cl=i;break;case 0:case 11:case 14:case 15:Vc(2,n,t),el||Vc(4,n,t),ll(e,t,n);break;case 1:el||(Gc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&Uc(n,t,r)),ll(e,t,n);break;case 21:ll(e,t,n);break;case 22:el=(r=el)||n.memoizedState!==null,ll(e,t,n),el=r;break;default:ll(e,t,n)}}function dl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Bp(e)}catch(e){Xu(t,t.return,e)}}}function fl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Bp(e)}catch(e){Xu(t,t.return,e)}}function pl(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new nl),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new nl),t;default:throw Error(i(435,e.tag))}}function ml(e,t){var n=pl(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=td.bind(null,e,t);t.then(r,r)}})}function hl(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var a=n[r],o=e,s=t,c=s;a:for(;c!==null;){switch(c.tag){case 27:if(of(c.type)){sl=c.stateNode,cl=!1;break a}break;case 5:sl=c.stateNode,cl=!1;break a;case 3:case 4:sl=c.stateNode.containerInfo,cl=!0;break a}c=c.return}if(sl===null)throw Error(i(160));ul(o,s,a),sl=null,cl=!1,o=a.alternate,o!==null&&(o.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)_l(t,e),t=t.sibling}var gl=null;function _l(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:hl(t,e),vl(e),r&4&&(Vc(3,e,e.return),Bc(3,e),Vc(5,e,e.return));break;case 1:hl(t,e),vl(e),r&512&&(el||n===null||Gc(n,n.return)),r&64&&$c&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?r:n.concat(r))));break;case 26:var a=gl;if(hl(t,e),vl(e),r&512&&(el||n===null||Gc(n,n.return)),r&4){var o=n===null?null:n.memoizedState;if(r=e.memoizedState,n===null)if(r===null)if(e.stateNode===null){a:{r=e.type,n=e.memoizedProps,a=a.ownerDocument||a;b:switch(r){case`title`:o=a.getElementsByTagName(`title`)[0],(!o||o[lt]||o[nt]||o.namespaceURI===`http://www.w3.org/2000/svg`||o.hasAttribute(`itemprop`))&&(o=a.createElement(r),a.head.insertBefore(o,a.querySelector(`head > title`))),Hd(o,r,n),o[nt]=e,ht(o),r=o;break a;case`link`:var s=Jf(`link`,`href`,a).get(r+(n.href||``));if(s){for(var c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&o.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&o.getAttribute(`title`)===(n.title==null?null:n.title)&&o.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){s.splice(c,1);break b}}o=a.createElement(r),Hd(o,r,n),a.head.appendChild(o);break;case`meta`:if(s=Jf(`meta`,`content`,a).get(r+(n.content||``))){for(c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`content`)===(n.content==null?null:``+n.content)&&o.getAttribute(`name`)===(n.name==null?null:n.name)&&o.getAttribute(`property`)===(n.property==null?null:n.property)&&o.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){s.splice(c,1);break b}}o=a.createElement(r),Hd(o,r,n),a.head.appendChild(o);break;default:throw Error(i(468,r))}o[nt]=e,ht(o),r=o}e.stateNode=r}else Yf(a,e.type,e.stateNode);else e.stateNode=Uf(a,r,e.memoizedProps);else o===r?r===null&&e.stateNode!==null&&qc(e,e.memoizedProps,n.memoizedProps):(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,r===null?Yf(a,e.type,e.stateNode):Uf(a,r,e.memoizedProps))}break;case 27:hl(t,e),vl(e),r&512&&(el||n===null||Gc(n,n.return)),n!==null&&r&4&&qc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(hl(t,e),vl(e),r&512&&(el||n===null||Gc(n,n.return)),e.flags&32){a=e.stateNode;try{Vt(a,``)}catch(t){Xu(e,e.return,t)}}r&4&&e.stateNode!=null&&(a=e.memoizedProps,qc(e,a,n===null?a:n.memoizedProps)),r&1024&&(tl=!0);break;case 6:if(hl(t,e),vl(e),r&4){if(e.stateNode===null)throw Error(i(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(t){Xu(e,e.return,t)}}break;case 3:if(qf=null,a=gl,gl=wf(t.containerInfo),hl(t,e),gl=a,vl(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Bp(t.containerInfo)}catch(t){Xu(e,e.return,t)}tl&&(tl=!1,yl(e));break;case 4:r=gl,gl=wf(e.stateNode.containerInfo),hl(t,e),vl(e),gl=r;break;case 12:hl(t,e),vl(e);break;case 31:hl(t,e),vl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,ml(e,r)));break;case 13:hl(t,e),vl(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(iu=H()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,ml(e,r)));break;case 22:a=e.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,u=$c,d=el;if($c=u||a,el=d||l,hl(t,e),el=d,$c=u,vl(e),r&8192)a:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(n===null||l||$c||el||xl(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){l=n=t;try{if(o=l.stateNode,a)s=o.style,typeof s.setProperty==`function`?s.setProperty(`display`,`none`,`important`):s.display=`none`;else{c=l.stateNode;var f=l.memoizedProps.style,p=f!=null&&f.hasOwnProperty(`display`)?f.display:null;c.style.display=p==null||typeof p==`boolean`?``:(``+p).trim()}}catch(e){Xu(l,l.return,e)}}}else if(t.tag===6){if(n===null){l=t;try{l.stateNode.nodeValue=a?``:l.memoizedProps}catch(e){Xu(l,l.return,e)}}}else if(t.tag===18){if(n===null){l=t;try{var m=l.stateNode;a?cf(m,!0):cf(l.stateNode,!1)}catch(e){Xu(l,l.return,e)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break a;for(;t.sibling===null;){if(t.return===null||t.return===e)break a;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(n=r.retryQueue,n!==null&&(r.retryQueue=null,ml(e,n))));break;case 19:hl(t,e),vl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,ml(e,r)));break;case 30:break;case 21:break;default:hl(t,e),vl(e)}}function vl(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Jc(r)){n=r;break}r=r.return}if(n==null)throw Error(i(160));switch(n.tag){case 27:var a=n.stateNode;Zc(e,Yc(e),a);break;case 5:var o=n.stateNode;n.flags&32&&(Vt(o,``),n.flags&=-33),Zc(e,Yc(e),o);break;case 3:case 4:var s=n.stateNode.containerInfo;Xc(e,Yc(e),s);break;default:throw Error(i(161))}}catch(t){Xu(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function yl(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;yl(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function bl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)al(e,t.alternate,t),t=t.sibling}function xl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Vc(4,t,t.return),xl(t);break;case 1:Gc(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount==`function`&&Uc(t,t.return,n),xl(t);break;case 27:xf(t.stateNode);case 26:case 5:Gc(t,t.return),xl(t);break;case 22:t.memoizedState===null&&xl(t);break;case 30:xl(t);break;default:xl(t)}e=e.sibling}}function Sl(e,t,n){for(n&&=(t.subtreeFlags&8772)!=0,t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags;switch(a.tag){case 0:case 11:case 15:Sl(i,a,n),Bc(4,a);break;case 1:if(Sl(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){Xu(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var s=r.stateNode;try{var c=i.shared.hiddenCallbacks;if(c!==null)for(i.shared.hiddenCallbacks=null,i=0;i<c.length;i++)Ga(c[i],s)}catch(e){Xu(r,r.return,e)}}n&&o&64&&Hc(a),Wc(a,a.return);break;case 27:Qc(a);case 26:case 5:Sl(i,a,n),n&&r===null&&o&4&&Kc(a),Wc(a,a.return);break;case 12:Sl(i,a,n);break;case 31:Sl(i,a,n),n&&o&4&&dl(i,a);break;case 13:Sl(i,a,n),n&&o&4&&fl(i,a);break;case 22:a.memoizedState===null&&Sl(i,a,n),Wc(a,a.return);break;case 30:break;default:Sl(i,a,n)}t=t.sibling}}function Cl(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&aa(n))}function wl(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&aa(e))}function Tl(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)El(e,t,n,r),t=t.sibling}function El(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:Tl(e,t,n,r),i&2048&&Bc(9,t);break;case 1:Tl(e,t,n,r);break;case 3:Tl(e,t,n,r),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&aa(e)));break;case 12:if(i&2048){Tl(e,t,n,r),e=t.stateNode;try{var a=t.memoizedProps,o=a.id,s=a.onPostCommit;typeof s==`function`&&s(o,t.alternate===null?`mount`:`update`,e.passiveEffectDuration,-0)}catch(e){Xu(t,t.return,e)}}else Tl(e,t,n,r);break;case 31:Tl(e,t,n,r);break;case 13:Tl(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,o=t.alternate,t.memoizedState===null?a._visibility&2?Tl(e,t,n,r):(a._visibility|=2,Dl(e,t,n,r,(t.subtreeFlags&10256)!=0||!1)):a._visibility&2?Tl(e,t,n,r):Ol(e,t),i&2048&&Cl(o,t);break;case 24:Tl(e,t,n,r),i&2048&&wl(t.alternate,t);break;default:Tl(e,t,n,r)}}function Dl(e,t,n,r,i){for(i&&=(t.subtreeFlags&10256)!=0||!1,t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:Dl(a,o,s,c,i),Bc(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,Dl(a,o,s,c,i)):u._visibility&2?Dl(a,o,s,c,i):Ol(a,o),i&&l&2048&&Cl(o.alternate,o);break;case 24:Dl(a,o,s,c,i),i&&l&2048&&wl(o.alternate,o);break;default:Dl(a,o,s,c,i)}t=t.sibling}}function Ol(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:Ol(n,r),i&2048&&Cl(r.alternate,r);break;case 24:Ol(n,r),i&2048&&wl(r.alternate,r);break;default:Ol(n,r)}t=t.sibling}}var kl=8192;function Al(e,t,n){if(e.subtreeFlags&kl)for(e=e.child;e!==null;)jl(e,t,n),e=e.sibling}function jl(e,t,n){switch(e.tag){case 26:Al(e,t,n),e.flags&kl&&e.memoizedState!==null&&Qf(n,gl,e.memoizedState,e.memoizedProps);break;case 5:Al(e,t,n);break;case 3:case 4:var r=gl;gl=wf(e.stateNode.containerInfo),Al(e,t,n),gl=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=kl,kl=16777216,Al(e,t,n),kl=r):Al(e,t,n));break;default:Al(e,t,n)}}function Ml(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Nl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];rl=r,Il(r,e)}Ml(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Pl(e),e=e.sibling}function Pl(e){switch(e.tag){case 0:case 11:case 15:Nl(e),e.flags&2048&&Vc(9,e,e.return);break;case 3:Nl(e);break;case 12:Nl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Fl(e)):Nl(e);break;default:Nl(e)}}function Fl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];rl=r,Il(r,e)}Ml(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Vc(8,t,t.return),Fl(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Fl(t));break;default:Fl(t)}e=e.sibling}}function Il(e,t){for(;rl!==null;){var n=rl;switch(n.tag){case 0:case 11:case 15:Vc(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:aa(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,rl=r;else a:for(n=e;rl!==null;){r=rl;var i=r.sibling,a=r.return;if(ol(r),r===n){rl=null;break a}if(i!==null){i.return=a,rl=i;break a}rl=a}}}var Ll={getCacheForType:function(e){var t=Zi(ra),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Zi(ra).controller.signal}},Rl=typeof WeakMap==`function`?WeakMap:Map,zl=0,Bl=null,Vl=null,Hl=0,Ul=0,Wl=null,Gl=!1,Kl=!1,ql=!1,Jl=0,Yl=0,Xl=0,Zl=0,Ql=0,$l=0,eu=0,tu=null,nu=null,ru=!1,iu=0,au=0,ou=1/0,su=null,cu=null,lu=0,uu=null,du=null,fu=0,pu=0,mu=null,hu=null,gu=0,_u=null;function vu(){return zl&2&&Hl!==0?Hl&-Hl:P.T===null?$e():_d()}function yu(){if($l===0)if(!(Hl&536870912)||ji){var e=Re;Re<<=1,!(Re&3932160)&&(Re=262144),$l=e}else $l=536870912;return e=Qa.current,e!==null&&(e.flags|=32),$l}function bu(e,t,n){(e===Bl&&(Ul===2||Ul===9)||e.cancelPendingCommit!==null)&&(Du(e,0),wu(e,Hl,$l,!1)),Ke(e,n),(!(zl&2)||e!==Bl)&&(e===Bl&&(!(zl&2)&&(Zl|=n),Yl===4&&wu(e,Hl,$l,!1)),ld(e))}function xu(e,t,n){if(zl&6)throw Error(i(327));var r=!n&&(t&127)==0&&(t&e.expiredLanes)===0||He(e,t),a=r?Fu(e,t):Nu(e,t,!0),o=r;do{if(a===0){Kl&&!r&&wu(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!Cu(n)){a=Nu(e,t,!1),o=!1;continue}if(a===2){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){t=s;a:{var c=e;a=tu;var l=c.current.memoizedState.isDehydrated;if(l&&(Du(c,s).flags|=256),s=Nu(c,s,!1),s!==2){if(ql&&!l){c.errorRecoveryDisabledLanes|=o,Zl|=o,a=4;break a}o=nu,nu=a,o!==null&&(nu===null?nu=o:nu.push.apply(nu,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){Du(e,0),wu(e,t,0,!0);break}a:{switch(r=e,o=a,o){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t)break;case 6:wu(r,t,$l,!Gl);break a;case 2:nu=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=iu+300-H(),10<a)){if(wu(r,t,$l,!Gl),Ve(r,0,!0)!==0)break a;fu=t,r.timeoutHandle=ef(Su.bind(null,r,n,nu,su,ru,t,$l,Zl,eu,Gl,o,`Throttled`,-0,0),a);break a}Su(r,n,nu,su,ru,t,$l,Zl,eu,Gl,o,null,-0,0)}}break}while(1);ld(e)}function Su(e,t,n,r,i,a,o,s,c,l,u,d,f,p){if(e.timeoutHandle=-1,d=t.subtreeFlags,d&8192||(d&16785408)==16785408){d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Yt},jl(t,a,d);var m=(a&62914560)===a?iu-H():(a&4194048)===a?au-H():0;if(m=ep(d,m),m!==null){fu=a,e.cancelPendingCommit=m(Hu.bind(null,e,t,a,n,r,i,o,s,c,u,d,null,f,p)),wu(e,a,o,!l);return}}Hu(e,t,a,n,r,i,o,s,c)}function Cu(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!vr(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function wu(e,t,n,r){t&=~Ql,t&=~Zl,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-Ne(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&Je(e,n,t)}function Tu(){return zl&6?!0:(ud(0,!1),!1)}function Eu(){if(Vl!==null){if(Ul===0)var e=Vl.return;else e=Vl,Ui=Hi=null,Do(e),Da=null,Oa=0,e=Vl;for(;e!==null;)zc(e.alternate,e),e=e.return;Vl=null}}function Du(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,tf(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),fu=0,Eu(),Bl=e,Vl=n=oi(e.current,null),Hl=t,Ul=0,Wl=null,Gl=!1,Kl=He(e,t),ql=!1,eu=$l=Ql=Zl=Xl=Yl=0,nu=tu=null,ru=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var i=31-Ne(r),a=1<<i;t|=e[i],r&=~a}return Jl=t,Xr(),n}function Ou(e,t){co=null,P.H=Is,t===_a||t===ya?(t=Ta(),Ul=3):t===va?(t=Ta(),Ul=4):Ul=t===ec?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,Wl=t,Vl===null&&(Yl=1,Js(e,mi(t,e.current)))}function ku(){var e=Qa.current;return e===null?!0:(Hl&4194048)===Hl?$a===null:(Hl&62914560)===Hl||Hl&536870912?e===$a:!1}function Au(){var e=P.H;return P.H=Is,e===null?Is:e}function ju(){var e=P.A;return P.A=Ll,e}function Mu(){Yl=4,Gl||(Hl&4194048)!==Hl&&Qa.current!==null||(Kl=!0),!(Xl&134217727)&&!(Zl&134217727)||Bl===null||wu(Bl,Hl,$l,!1)}function Nu(e,t,n){var r=zl;zl|=2;var i=Au(),a=ju();(Bl!==e||Hl!==t)&&(su=null,Du(e,t)),t=!1;var o=Yl;a:do try{if(Ul!==0&&Vl!==null){var s=Vl,c=Wl;switch(Ul){case 8:Eu(),o=6;break a;case 3:case 2:case 9:case 6:Qa.current===null&&(t=!0);var l=Ul;if(Ul=0,Wl=null,zu(e,s,c,l),n&&Kl){o=0;break a}break;default:l=Ul,Ul=0,Wl=null,zu(e,s,c,l)}}Pu(),o=Yl;break}catch(t){Ou(e,t)}while(1);return t&&e.shellSuspendCounter++,Ui=Hi=null,zl=r,P.H=i,P.A=a,Vl===null&&(Bl=null,Hl=0,Xr()),o}function Pu(){for(;Vl!==null;)Lu(Vl)}function Fu(e,t){var n=zl;zl|=2;var r=Au(),a=ju();Bl!==e||Hl!==t?(su=null,ou=H()+500,Du(e,t)):Kl=He(e,t);a:do try{if(Ul!==0&&Vl!==null){t=Vl;var o=Wl;b:switch(Ul){case 1:Ul=0,Wl=null,zu(e,t,o,1);break;case 2:case 9:if(xa(o)){Ul=0,Wl=null,Ru(t);break}t=function(){Ul!==2&&Ul!==9||Bl!==e||(Ul=7),ld(e)},o.then(t,t);break a;case 3:Ul=7;break a;case 4:Ul=5;break a;case 7:xa(o)?(Ul=0,Wl=null,Ru(t)):(Ul=0,Wl=null,zu(e,t,o,7));break;case 5:var s=null;switch(Vl.tag){case 26:s=Vl.memoizedState;case 5:case 27:var c=Vl;if(s?Zf(s):c.stateNode.complete){Ul=0,Wl=null;var l=c.sibling;if(l!==null)Vl=l;else{var u=c.return;u===null?Vl=null:(Vl=u,Bu(u))}break b}}Ul=0,Wl=null,zu(e,t,o,5);break;case 6:Ul=0,Wl=null,zu(e,t,o,6);break;case 8:Eu(),Yl=6;break a;default:throw Error(i(462))}}Iu();break}catch(t){Ou(e,t)}while(1);return Ui=Hi=null,P.H=r,P.A=a,zl=n,Vl===null?(Bl=null,Hl=0,Xr(),Yl):0}function Iu(){for(;Vl!==null&&!be();)Lu(Vl)}function Lu(e){var t=Ac(e.alternate,e,Jl);e.memoizedProps=e.pendingProps,t===null?Bu(e):Vl=t}function Ru(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=mc(n,t,t.pendingProps,t.type,void 0,Hl);break;case 11:t=mc(n,t,t.pendingProps,t.type.render,t.ref,Hl);break;case 5:Do(t);default:zc(n,t),t=Vl=si(t,Jl),t=Ac(n,t,Jl)}e.memoizedProps=e.pendingProps,t===null?Bu(e):Vl=t}function zu(e,t,n,r){Ui=Hi=null,Do(t),Da=null,Oa=0;var i=t.return;try{if($s(e,i,t,n,Hl)){Yl=1,Js(e,mi(n,e.current)),Vl=null;return}}catch(t){if(i!==null)throw Vl=i,t;Yl=1,Js(e,mi(n,e.current)),Vl=null;return}t.flags&32768?(ji||r===1?e=!0:Kl||Hl&536870912?e=!1:(Gl=e=!0,(r===2||r===9||r===3||r===6)&&(r=Qa.current,r!==null&&r.tag===13&&(r.flags|=16384))),Vu(t,e)):Bu(t)}function Bu(e){var t=e;do{if(t.flags&32768){Vu(t,Gl);return}e=t.return;var n=Lc(t.alternate,t,Jl);if(n!==null){Vl=n;return}if(t=t.sibling,t!==null){Vl=t;return}Vl=t=e}while(t!==null);Yl===0&&(Yl=5)}function Vu(e,t){do{var n=Rc(e.alternate,e);if(n!==null){n.flags&=32767,Vl=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Vl=e;return}Vl=e=n}while(e!==null);Yl=6,Vl=null}function Hu(e,t,n,r,a,o,s,c,l){e.cancelPendingCommit=null;do qu();while(lu!==0);if(zl&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(o=t.lanes|t.childLanes,o|=Yr,qe(e,n,o,s,c,l),e===Bl&&(Vl=Bl=null,Hl=0),du=t,uu=e,fu=n,pu=o,mu=a,hu=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,nd(Te,function(){return Ju(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!=0,t.subtreeFlags&13878||r){r=P.T,P.T=null,a=F.p,F.p=2,s=zl,zl|=4;try{il(e,t,n)}finally{zl=s,F.p=a,P.T=r}}lu=1,Uu(),Wu(),Gu()}}function Uu(){if(lu===1){lu=0;var e=uu,t=du,n=(t.flags&13878)!=0;if(t.subtreeFlags&13878||n){n=P.T,P.T=null;var r=F.p;F.p=2;var i=zl;zl|=4;try{_l(t,e);var a=qd,o=Cr(e.containerInfo),s=a.focusedElem,c=a.selectionRange;if(o!==s&&s&&s.ownerDocument&&Sr(s.ownerDocument.documentElement,s)){if(c!==null&&wr(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=xr(s,h),v=xr(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}mp=!!Kd,qd=Kd=null}finally{zl=i,F.p=r,P.T=n}}e.current=t,lu=2}}function Wu(){if(lu===2){lu=0;var e=uu,t=du,n=(t.flags&8772)!=0;if(t.subtreeFlags&8772||n){n=P.T,P.T=null;var r=F.p;F.p=2;var i=zl;zl|=4;try{al(e,t.alternate,t)}finally{zl=i,F.p=r,P.T=n}}lu=3}}function Gu(){if(lu===4||lu===3){lu=0,xe();var e=uu,t=du,n=fu,r=hu;t.subtreeFlags&10256||t.flags&10256?lu=5:(lu=0,du=uu=null,Ku(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(cu=null),Qe(n),t=t.stateNode,je&&typeof je.onCommitFiberRoot==`function`)try{je.onCommitFiberRoot(Ae,t,void 0,(t.current.flags&128)==128)}catch{}if(r!==null){t=P.T,i=F.p,F.p=2,P.T=null;try{for(var a=e.onRecoverableError,o=0;o<r.length;o++){var s=r[o];a(s.value,{componentStack:s.stack})}}finally{P.T=t,F.p=i}}fu&3&&qu(),ld(e),i=e.pendingLanes,n&261930&&i&42?e===_u?gu++:(gu=0,_u=e):gu=0,ud(0,!1)}}function Ku(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,aa(t)))}function qu(){return Uu(),Wu(),Gu(),Ju()}function Ju(){if(lu!==5)return!1;var e=uu,t=pu;pu=0;var n=Qe(fu),r=P.T,a=F.p;try{F.p=32>n?32:n,P.T=null,n=mu,mu=null;var o=uu,s=fu;if(lu=0,du=uu=null,fu=0,zl&6)throw Error(i(331));var c=zl;if(zl|=4,Pl(o.current),El(o,o.current,s,n),zl=c,ud(0,!1),je&&typeof je.onPostCommitFiberRoot==`function`)try{je.onPostCommitFiberRoot(Ae,o)}catch{}return!0}finally{F.p=a,P.T=r,Ku(e,t)}}function Yu(e,t,n){t=mi(n,t),t=Xs(e.stateNode,t,2),e=za(e,t,2),e!==null&&(Ke(e,2),ld(e))}function Xu(e,t,n){if(e.tag===3)Yu(e,e,n);else for(;t!==null;){if(t.tag===3){Yu(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(cu===null||!cu.has(r))){e=mi(n,e),n=Zs(2),r=za(t,n,2),r!==null&&(Qs(n,r,t,e),Ke(r,2),ld(r));break}}t=t.return}}function Zu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Rl;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(ql=!0,i.add(n),e=Qu.bind(null,e,t,n),t.then(e,e))}function Qu(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Bl===e&&(Hl&n)===n&&(Yl===4||Yl===3&&(Hl&62914560)===Hl&&300>H()-iu?!(zl&2)&&Du(e,0):Ql|=n,eu===Hl&&(eu=0)),ld(e)}function $u(e,t){t===0&&(t=We()),e=$r(e,t),e!==null&&(Ke(e,t),ld(e))}function ed(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),$u(e,n)}function td(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),$u(e,n)}function nd(e,t){return V(e,t)}var rd=null,id=null,ad=!1,od=!1,sd=!1,cd=0;function ld(e){e!==id&&e.next===null&&(id===null?rd=id=e:id=id.next=e),od=!0,ad||(ad=!0,gd())}function ud(e,t){if(!sd&&od){sd=!0;do for(var n=!1,r=rd;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-Ne(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,hd(r,a))}else a=Hl,a=Ve(r,r===Bl?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||He(r,a)||(n=!0,hd(r,a));r=r.next}while(n);sd=!1}}function dd(){fd()}function fd(){od=ad=!1;var e=0;cd!==0&&$d()&&(e=cd);for(var t=H(),n=null,r=rd;r!==null;){var i=r.next,a=pd(r,t);a===0?(r.next=null,n===null?rd=i:n.next=i,i===null&&(id=n)):(n=r,(e!==0||a&3)&&(od=!0)),r=i}lu!==0&&lu!==5||ud(e,!1),cd!==0&&(cd=0)}function pd(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-Ne(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=Ue(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=Bl,n=Hl,n=Ve(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(Ul===2||Ul===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&ye(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||He(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&ye(r),Qe(n)){case 2:case 8:n=we;break;case 32:n=Te;break;case 268435456:n=De;break;default:n=Te}return r=md.bind(null,e),n=V(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&ye(r),e.callbackPriority=2,e.callbackNode=null,2}function md(e,t){if(lu!==0&&lu!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(qu()&&e.callbackNode!==n)return null;var r=Hl;return r=Ve(e,e===Bl?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(xu(e,r,t),pd(e,H()),e.callbackNode!=null&&e.callbackNode===n?md.bind(null,e):null)}function hd(e,t){if(qu())return null;xu(e,t,!0)}function gd(){rf(function(){zl&6?V(Ce,dd):fd()})}function _d(){if(cd===0){var e=W;e===0&&(e=Le,Le<<=1,!(Le&261888)&&(Le=256)),cd=e}return cd}function vd(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:Jt(``+e)}function yd(e,t){var n=t.ownerDocument.createElement(`input`);return n.name=t.name,n.value=t.value,e.id&&n.setAttribute(`form`,e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function bd(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=vd((i[rt]||null).action),o=r.submitter;o&&(t=(t=o[rt]||null)?vd(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new _n(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(cd!==0){var e=o?yd(i,o):new FormData(i);Ss(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=o?yd(i,o):new FormData(i),Ss(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var xd=0;xd<Wr.length;xd++){var Sd=Wr[xd];Gr(Sd.toLowerCase(),`on`+(Sd[0].toUpperCase()+Sd.slice(1)))}Gr(Ir,`onAnimationEnd`),Gr(Lr,`onAnimationIteration`),Gr(Rr,`onAnimationStart`),Gr(`dblclick`,`onDoubleClick`),Gr(`focusin`,`onFocus`),Gr(`focusout`,`onBlur`),Gr(zr,`onTransitionRun`),Gr(Br,`onTransitionStart`),Gr(Vr,`onTransitionCancel`),Gr(Hr,`onTransitionEnd`),yt(`onMouseEnter`,[`mouseout`,`mouseover`]),yt(`onMouseLeave`,[`mouseout`,`mouseover`]),yt(`onPointerEnter`,[`pointerout`,`pointerover`]),yt(`onPointerLeave`,[`pointerout`,`pointerover`]),vt(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),vt(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),vt(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),vt(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),vt(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),vt(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var Cd=`abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting`.split(` `),wd=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(Cd));function Td(e,t){t=(t&4)!=0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){Kr(e)}i.currentTarget=null,a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){Kr(e)}i.currentTarget=null,a=c}}}}function Ed(e,t){var n=t[at];n===void 0&&(n=t[at]=new Set);var r=e+`__bubble`;n.has(r)||(Ad(t,e,2,!1),n.add(r))}function Dd(e,t,n){var r=0;t&&(r|=4),Ad(n,e,r,t)}var Od=`_reactListening`+Math.random().toString(36).slice(2);function kd(e){if(!e[Od]){e[Od]=!0,gt.forEach(function(t){t!==`selectionchange`&&(wd.has(t)||Dd(t,!1,e),Dd(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Od]||(t[Od]=!0,Dd(`selectionchange`,!1,t))}}function Ad(e,t,n,r){switch(xp(t)){case 2:var i=hp;break;case 8:i=gp;break;default:i=_p}n=i.bind(null,t,n,e),i=void 0,!on||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function jd(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var c=r.stateNode.containerInfo;if(c===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&s.stateNode.containerInfo===i)return;s=s.return}for(;c!==null;){if(s=dt(c),s===null)return;if(l=s.tag,l===5||l===6||l===26||l===27){r=a=s;continue a}c=c.parentNode}}r=r.return}nn(function(){var r=a,i=Zt(n),s=[];a:{var c=Ur.get(e);if(c!==void 0){var l=_n,u=e;switch(e){case`keypress`:if(fn(n)===0)break a;case`keydown`:case`keyup`:l=Fn;break;case`focusin`:u=`focus`,l=En;break;case`focusout`:u=`blur`,l=En;break;case`beforeblur`:case`afterblur`:l=En;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:l=wn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=Tn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=Ln;break;case Ir:case Lr:case Rr:l=Dn;break;case Hr:l=Rn;break;case`scroll`:case`scrollend`:l=yn;break;case`wheel`:l=zn;break;case`copy`:case`cut`:case`paste`:l=On;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=In;break;case`toggle`:case`beforetoggle`:l=Bn}var d=(t&4)!=0,f=!d&&(e===`scroll`||e===`scrollend`),p=d?c===null?null:c+`Capture`:c;d=[];for(var m=r,h;m!==null;){var g=m;if(h=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||h===null||p===null||(g=rn(m,p),g!=null&&d.push(Md(m,g,h))),f)break;m=m.return}0<d.length&&(c=new l(c,u,null,n,i),s.push({event:c,listeners:d}))}}if(!(t&7)){a:{if(c=e===`mouseover`||e===`pointerover`,l=e===`mouseout`||e===`pointerout`,c&&n!==Xt&&(u=n.relatedTarget||n.fromElement)&&(dt(u)||u[it]))break a;if((l||c)&&(c=i.window===i?i:(c=i.ownerDocument)?c.defaultView||c.parentWindow:window,l?(u=n.relatedTarget||n.toElement,l=r,u=u?dt(u):null,u!==null&&(f=o(u),d=u.tag,u!==f||d!==5&&d!==27&&d!==6)&&(u=null)):(l=null,u=r),l!==u)){if(d=wn,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=In,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=l==null?c:pt(l),h=u==null?c:pt(u),c=new d(g,m+`leave`,l,n,i),c.target=f,c.relatedTarget=h,g=null,dt(i)===r&&(d=new d(p,m+`enter`,u,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,l&&u)b:{for(d=Pd,p=l,m=u,h=0,g=p;g;g=d(g))h++;g=0;for(var _=m;_;_=d(_))g++;for(;0<h-g;)p=d(p),h--;for(;0<g-h;)m=d(m),g--;for(;h--;){if(p===m||m!==null&&p===m.alternate){d=p;break b}p=d(p),m=d(m)}d=null}else d=null;l!==null&&Fd(s,c,l,d,!1),u!==null&&f!==null&&Fd(s,f,u,d,!0)}}a:{if(c=r?pt(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var v=or;else if(er(c))if(sr)v=gr;else{v=mr;var y=pr}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&Gt(r.elementType)&&(v=or):v=hr;if(v&&=v(e,r)){tr(s,v,n,i);break a}y&&y(e,c,r),e===`focusout`&&r&&c.type===`number`&&r.memoizedProps.value!=null&&Lt(c,`number`,c.value)}switch(y=r?pt(r):window,e){case`focusin`:(er(y)||y.contentEditable===`true`)&&(Er=y,Dr=r,Or=null);break;case`focusout`:Or=Dr=Er=null;break;case`mousedown`:kr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:kr=!1,Ar(s,n,i);break;case`selectionchange`:if(Tr)break;case`keydown`:case`keyup`:Ar(s,n,i)}var b;if(Hn)b:{switch(e){case`compositionstart`:var x=`onCompositionStart`;break b;case`compositionend`:x=`onCompositionEnd`;break b;case`compositionupdate`:x=`onCompositionUpdate`;break b}x=void 0}else Xn?Jn(e,n)&&(x=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(x=`onCompositionStart`);x&&(Gn&&n.locale!==`ko`&&(Xn||x!==`onCompositionStart`?x===`onCompositionEnd`&&Xn&&(b=dn()):(cn=i,ln=`value`in cn?cn.value:cn.textContent,Xn=!0)),y=Nd(r,x),0<y.length&&(x=new kn(x,e,null,n,i),s.push({event:x,listeners:y}),b?x.data=b:(b=Yn(n),b!==null&&(x.data=b)))),(b=Wn?Zn(e,n):Qn(e,n))&&(x=Nd(r,`onBeforeInput`),0<x.length&&(y=new kn(`onBeforeInput`,`beforeinput`,null,n,i),s.push({event:y,listeners:x}),y.data=b)),bd(s,e,r,n,i)}Td(s,t)})}function Md(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Nd(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=rn(e,n),i!=null&&r.unshift(Md(e,i,a)),i=rn(e,t),i!=null&&r.push(Md(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Pd(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Fd(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=rn(n,a),l!=null&&o.unshift(Md(n,l,c))):i||(l=rn(n,a),l!=null&&o.push(Md(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Id=/\r\n?/g,Ld=/\u0000|\uFFFD/g;function Rd(e){return(typeof e==`string`?e:``+e).replace(Id,`
25
+ `).replace(Ld,``)}function zd(e,t){return t=Rd(t),Rd(e)===t}function Bd(e,t,n,r,a,o){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||Vt(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&Vt(e,``+r);break;case`className`:Tt(e,`class`,r);break;case`tabIndex`:Tt(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:Tt(e,n,r);break;case`style`:Wt(e,r,o);break;case`data`:if(t!==`object`){Tt(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=Jt(``+r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')`);break}else typeof o==`function`&&(n===`formAction`?(t!==`input`&&Bd(e,t,`name`,a.name,a,null),Bd(e,t,`formEncType`,a.formEncType,a,null),Bd(e,t,`formMethod`,a.formMethod,a,null),Bd(e,t,`formTarget`,a.formTarget,a,null)):(Bd(e,t,`encType`,a.encType,a,null),Bd(e,t,`method`,a.method,a,null),Bd(e,t,`target`,a.target,a,null)));if(r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=Jt(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=Yt);break;case`onScroll`:r!=null&&Ed(`scroll`,e);break;case`onScrollEnd`:r!=null&&Ed(`scrollend`,e);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=Jt(``+r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``+r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:Ed(`beforetoggle`,e),Ed(`toggle`,e),wt(e,`popover`,r);break;case`xlinkActuate`:Et(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:Et(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:Et(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:Et(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:Et(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:Et(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:Et(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:Et(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:Et(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:wt(e,`is`,r);break;case`innerText`:case`textContent`:break;default:(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)&&(n=Kt.get(n)||n,wt(e,n,r))}}function Vd(e,t,n,r,a,o){switch(n){case`style`:Wt(e,r,o);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`children`:typeof r==`string`?Vt(e,r):(typeof r==`number`||typeof r==`bigint`)&&Vt(e,``+r);break;case`onScroll`:r!=null&&Ed(`scroll`,e);break;case`onScrollEnd`:r!=null&&Ed(`scrollend`,e);break;case`onClick`:r!=null&&(e.onclick=Yt);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if(!_t.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(a=n.endsWith(`Capture`),t=n.slice(2,a?n.length-7:void 0),o=e[rt]||null,o=o==null?null:o[n],typeof o==`function`&&e.removeEventListener(t,o,a),typeof r==`function`)){typeof o!=`function`&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,a);break a}n in e?e[n]=r:!0===r?e.setAttribute(n,``):wt(e,n,r)}}}function Hd(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:Ed(`error`,e),Ed(`load`,e);var r=!1,a=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case`src`:r=!0;break;case`srcSet`:a=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:Bd(e,t,o,s,n,null)}}a&&Bd(e,t,`srcSet`,n.srcSet,n,null),r&&Bd(e,t,`src`,n.src,n,null);return;case`input`:Ed(`invalid`,e);var c=o=s=a=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:a=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:o=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(i(137,t));break;default:Bd(e,t,r,d,n,null)}}It(e,o,c,l,u,s,a,!1);return;case`select`:for(a in Ed(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(a)&&(c=n[a],c!=null))switch(a){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:Bd(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&Rt(e,!!r,n,!0):Rt(e,!!r,t,!1);return;case`textarea`:for(s in Ed(`invalid`,e),o=a=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:a=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(i(91));break;default:Bd(e,t,s,c,n,null)}Bt(e,r,a,o);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:Bd(e,t,l,r,n,null)}return;case`dialog`:Ed(`beforetoggle`,e),Ed(`toggle`,e),Ed(`cancel`,e),Ed(`close`,e);break;case`iframe`:case`object`:Ed(`load`,e);break;case`video`:case`audio`:for(r=0;r<Cd.length;r++)Ed(Cd[r],e);break;case`image`:Ed(`error`,e),Ed(`load`,e);break;case`details`:Ed(`toggle`,e);break;case`embed`:case`source`:case`link`:Ed(`error`,e),Ed(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:Bd(e,t,u,r,n,null)}return;default:if(Gt(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&Vd(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&Bd(e,t,c,r,n,null))}function Ud(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var a=null,o=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||Bd(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:o=m;break;case`name`:a=m;break;case`checked`:u=m;break;case`defaultChecked`:d=m;break;case`value`:s=m;break;case`defaultValue`:c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&Bd(e,t,p,m,r,f)}}Ft(e,s,c,l,u,d,o,a);return;case`select`:for(o in m=s=c=p=null,n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(o)||Bd(e,t,o,null,r,l)}for(a in r)if(o=r[a],l=n[a],r.hasOwnProperty(a)&&(o!=null||l!=null))switch(a){case`value`:p=o;break;case`defaultValue`:c=o;break;case`multiple`:s=o;default:o!==l&&Bd(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?Rt(e,!!n,n?[]:``,!1):Rt(e,!!n,t,!0)):Rt(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(a=n[c],n.hasOwnProperty(c)&&a!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:Bd(e,t,c,null,r,a)}for(s in r)if(a=r[s],o=n[s],r.hasOwnProperty(s)&&(a!=null||o!=null))switch(s){case`value`:p=a;break;case`defaultValue`:m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&Bd(e,t,s,a,r,o)}zt(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:Bd(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:Bd(e,t,l,p,r,m)}return;case`img`:case`link`:case`area`:case`base`:case`br`:case`col`:case`embed`:case`hr`:case`keygen`:case`meta`:case`param`:case`source`:case`track`:case`wbr`:case`menuitem`:for(var g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&Bd(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(i(137,t));break;default:Bd(e,t,u,p,r,m)}return;default:if(Gt(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&Vd(e,t,_,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||Vd(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&Bd(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||Bd(e,t,f,p,r,m)}function Wd(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function Gd(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&Wd(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&Wd(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var Kd=null,qd=null;function Jd(e){return e.nodeType===9?e:e.ownerDocument}function Yd(e){switch(e){case`http://www.w3.org/2000/svg`:return 1;case`http://www.w3.org/1998/Math/MathML`:return 2;default:return 0}}function Xd(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function Zd(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Qd=null;function $d(){var e=window.event;return e&&e.type===`popstate`?e===Qd?!1:(Qd=e,!0):(Qd=null,!1)}var ef=typeof setTimeout==`function`?setTimeout:void 0,tf=typeof clearTimeout==`function`?clearTimeout:void 0,nf=typeof Promise==`function`?Promise:void 0,rf=typeof queueMicrotask==`function`?queueMicrotask:nf===void 0?ef:function(e){return nf.resolve(null).then(e).catch(af)};function af(e){setTimeout(function(){throw e})}function of(e){return e===`head`}function sf(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),Bp(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)xf(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,xf(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[lt]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&xf(e.ownerDocument.body);n=i}while(n);Bp(t)}function cf(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8)if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++;n=r}while(n)}function lf(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:lf(n),ut(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function uf(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r)if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e;else if(!e[lt])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=gf(e.nextSibling),e===null)break}return null}function df(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=gf(e.nextSibling),e===null))return null;return e}function ff(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=gf(e.nextSibling),e===null))return null;return e}function pf(e){return e.data===`$?`||e.data===`$~`}function mf(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function hf(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function gf(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var _f=null;function vf(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return gf(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function yf(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function bf(e,t,n){switch(t=Jd(n),e){case`html`:if(e=t.documentElement,!e)throw Error(i(452));return e;case`head`:if(e=t.head,!e)throw Error(i(453));return e;case`body`:if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function xf(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);ut(e)}var Sf=new Map,Cf=new Set;function wf(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Tf=F.d;F.d={f:Ef,r:Df,D:Af,C:jf,L:Mf,m:Nf,X:Ff,S:Pf,M:If};function Ef(){var e=Tf.f(),t=Tu();return e||t}function Df(e){var t=ft(e);t!==null&&t.tag===5&&t.type===`form`?ws(t):Tf.r(e)}var Of=typeof document>`u`?null:document;function kf(e,t,n){var r=Of;if(r&&typeof t==`string`&&t){var i=Pt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),Cf.has(i)||(Cf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Hd(t,`link`,e),ht(t),r.head.appendChild(t)))}}function Af(e){Tf.D(e),kf(`dns-prefetch`,e,null)}function jf(e,t){Tf.C(e,t),kf(`preconnect`,e,t)}function Mf(e,t,n){Tf.L(e,t,n);var r=Of;if(r&&e&&t){var i=`link[rel="preload"][as="`+Pt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Pt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Pt(n.imageSizes)+`"]`)):i+=`[href="`+Pt(e)+`"]`;var a=i;switch(t){case`style`:a=Rf(e);break;case`script`:a=Hf(e)}Sf.has(a)||(e=f({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),Sf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(zf(a))||t===`script`&&r.querySelector(K(a))||(t=r.createElement(`link`),Hd(t,`link`,e),ht(t),r.head.appendChild(t)))}}function Nf(e,t){Tf.m(e,t);var n=Of;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+Pt(r)+`"][href="`+Pt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Hf(e)}if(!Sf.has(a)&&(e=f({rel:`modulepreload`,href:e},t),Sf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(K(a)))return}r=n.createElement(`link`),Hd(r,`link`,e),ht(r),n.head.appendChild(r)}}}function Pf(e,t,n){Tf.S(e,t,n);var r=Of;if(r&&e){var i=mt(r).hoistableStyles,a=Rf(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(zf(a)))s.loading=5;else{e=f({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=Sf.get(a))&&Gf(e,n);var c=o=r.createElement(`link`);ht(c),Hd(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Wf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Ff(e,t){Tf.X(e,t);var n=Of;if(n&&e){var r=mt(n).hoistableScripts,i=Hf(e),a=r.get(i);a||(a=n.querySelector(K(i)),a||(e=f({src:e,async:!0},t),(t=Sf.get(i))&&Kf(e,t),a=n.createElement(`script`),ht(a),Hd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function If(e,t){Tf.M(e,t);var n=Of;if(n&&e){var r=mt(n).hoistableScripts,i=Hf(e),a=r.get(i);a||(a=n.querySelector(K(i)),a||(e=f({src:e,async:!0,type:`module`},t),(t=Sf.get(i))&&Kf(e,t),a=n.createElement(`script`),ht(a),Hd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Lf(e,t,n,r){var a=(a=ce.current)?wf(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=Rf(n.href),n=mt(a).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Rf(n.href);var o=mt(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(zf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),Sf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Sf.set(e,n),o||Vf(a,e,n,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Hf(n),n=mt(a).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Rf(e){return`href="`+Pt(e)+`"`}function zf(e){return`link[rel="stylesheet"][`+e+`]`}function Bf(e){return f({},e,{"data-precedence":e.precedence,precedence:null})}function Vf(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Hd(t,`link`,n),ht(t),e.head.appendChild(t))}function Hf(e){return`[src="`+Pt(e)+`"]`}function K(e){return`script[async]`+e}function Uf(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+Pt(n.href)+`"]`);if(r)return t.instance=r,ht(r),r;var a=f({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),ht(r),Hd(r,`style`,a),Wf(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Rf(n.href);var o=e.querySelector(zf(a));if(o)return t.state.loading|=4,t.instance=o,ht(o),o;r=Bf(n),(a=Sf.get(a))&&Gf(r,a),o=(e.ownerDocument||e).createElement(`link`),ht(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Hd(o,`link`,r),t.state.loading|=4,Wf(o,n.precedence,e),t.instance=o;case`script`:return o=Hf(n.src),(a=e.querySelector(K(o)))?(t.instance=a,ht(a),a):(r=n,(a=Sf.get(o))&&(r=f({},n),Kf(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),ht(a),Hd(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Wf(r,n.precedence,e));return t.instance}function Wf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Gf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Kf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var qf=null;function Jf(e,t,n){if(qf===null){var r=new Map,i=qf=new Map;i.set(n,r)}else i=qf,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[lt]||a[nt]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function Yf(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Xf(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Zf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Qf(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Rf(r.href),a=t.querySelector(zf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=tp.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,ht(a);return}a=t.ownerDocument||t,r=Bf(r),(i=Sf.get(i))&&Gf(r,i),a=a.createElement(`link`),ht(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Hd(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=tp.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var $f=0;function ep(e,t){return e.stylesheets&&e.count===0&&rp(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&rp(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&$f===0&&($f=62500*Gd());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&rp(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>$f?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function tp(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)rp(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var np=null;function rp(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,np=new Map,t.forEach(ip,e),np=null,tp.call(e))}function ip(e,t){if(!(t.state.loading&4)){var n=np.get(e);if(n)var r=n.get(null);else{n=new Map,np.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=tp.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var ap={$$typeof:C,Provider:null,Consumer:null,_currentValue:ne,_currentValue2:ne,_threadCount:0};function op(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ge(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ge(0),this.hiddenUpdates=Ge(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function sp(e,t,n,r,i,a,o,s,c,l,u,d){return e=new op(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=ii(3,null,null,t),e.current=a,a.stateNode=e,t=ia(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},Ia(a),e}function cp(e){return e?(e=ni,e):ni}function lp(e,t,n,r,i,a){i=cp(i),r.context===null?r.context=i:r.pendingContext=i,r=Ra(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=za(e,r,t),n!==null&&(bu(n,e,t),Ba(n,e,t))}function up(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function dp(e,t){up(e,t),(e=e.alternate)&&up(e,t)}function fp(e){if(e.tag===13||e.tag===31){var t=$r(e,67108864);t!==null&&bu(t,e,67108864),dp(e,67108864)}}function pp(e){if(e.tag===13||e.tag===31){var t=vu();t=Ze(t);var n=$r(e,t);n!==null&&bu(n,e,t),dp(e,t)}}var mp=!0;function hp(e,t,n,r){var i=P.T;P.T=null;var a=F.p;try{F.p=2,_p(e,t,n,r)}finally{F.p=a,P.T=i}}function gp(e,t,n,r){var i=P.T;P.T=null;var a=F.p;try{F.p=8,_p(e,t,n,r)}finally{F.p=a,P.T=i}}function _p(e,t,n,r){if(mp){var i=vp(r);if(i===null)jd(e,t,r,yp,n),Ap(e,r);else if(Mp(i,e,t,n,r))r.stopPropagation();else if(Ap(e,r),t&4&&-1<kp.indexOf(e)){for(;i!==null;){var a=ft(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=Be(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-Ne(o);s.entanglements[1]|=c,o&=~c}ld(a),!(zl&6)&&(ou=H()+500,ud(0,!1))}}break;case 31:case 13:s=$r(a,2),s!==null&&bu(s,a,2),Tu(),dp(a,2)}if(a=vp(r),a===null&&jd(e,t,r,yp,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else jd(e,t,r,null,n)}}function vp(e){return e=Zt(e),bp(e)}var yp=null;function bp(e){if(yp=null,e=dt(e),e!==null){var t=o(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=s(t),e!==null)return e;e=null}else if(n===31){if(e=c(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return yp=e,null}function xp(e){switch(e){case`beforetoggle`:case`cancel`:case`click`:case`close`:case`contextmenu`:case`copy`:case`cut`:case`auxclick`:case`dblclick`:case`dragend`:case`dragstart`:case`drop`:case`focusin`:case`focusout`:case`input`:case`invalid`:case`keydown`:case`keypress`:case`keyup`:case`mousedown`:case`mouseup`:case`paste`:case`pause`:case`play`:case`pointercancel`:case`pointerdown`:case`pointerup`:case`ratechange`:case`reset`:case`resize`:case`seeked`:case`submit`:case`toggle`:case`touchcancel`:case`touchend`:case`touchstart`:case`volumechange`:case`change`:case`selectionchange`:case`textInput`:case`compositionstart`:case`compositionend`:case`compositionupdate`:case`beforeblur`:case`afterblur`:case`beforeinput`:case`blur`:case`fullscreenchange`:case`focus`:case`hashchange`:case`popstate`:case`select`:case`selectstart`:return 2;case`drag`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`mousemove`:case`mouseout`:case`mouseover`:case`pointermove`:case`pointerout`:case`pointerover`:case`scroll`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(Se()){case Ce:return 2;case we:return 8;case Te:case Ee:return 32;case De:return 268435456;default:return 32}default:return 32}}var Sp=!1,Cp=null,wp=null,Tp=null,Ep=new Map,Dp=new Map,Op=[],kp=`mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset`.split(` `);function Ap(e,t){switch(e){case`focusin`:case`focusout`:Cp=null;break;case`dragenter`:case`dragleave`:wp=null;break;case`mouseover`:case`mouseout`:Tp=null;break;case`pointerover`:case`pointerout`:Ep.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:Dp.delete(t.pointerId)}}function jp(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=ft(t),t!==null&&fp(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Mp(e,t,n,r,i){switch(t){case`focusin`:return Cp=jp(Cp,e,t,n,r,i),!0;case`dragenter`:return wp=jp(wp,e,t,n,r,i),!0;case`mouseover`:return Tp=jp(Tp,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return Ep.set(a,jp(Ep.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,Dp.set(a,jp(Dp.get(a)||null,e,t,n,r,i)),!0}return!1}function Np(e){var t=dt(e.target);if(t!==null){var n=o(t);if(n!==null){if(t=n.tag,t===13){if(t=s(n),t!==null){e.blockedOn=t,et(e.priority,function(){pp(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,et(e.priority,function(){pp(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Pp(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=vp(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Xt=r,n.target.dispatchEvent(r),Xt=null}else return t=ft(n),t!==null&&fp(t),e.blockedOn=n,!1;t.shift()}return!0}function Fp(e,t,n){Pp(e)&&n.delete(t)}function Ip(){Sp=!1,Cp!==null&&Pp(Cp)&&(Cp=null),wp!==null&&Pp(wp)&&(wp=null),Tp!==null&&Pp(Tp)&&(Tp=null),Ep.forEach(Fp),Dp.forEach(Fp)}function Lp(e,n){e.blockedOn===n&&(e.blockedOn=null,Sp||(Sp=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Ip)))}var Rp=null;function zp(e){Rp!==e&&(Rp=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Rp===e&&(Rp=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(bp(r||n)===null)continue;break}var a=ft(n);a!==null&&(e.splice(t,3),t-=3,Ss(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Bp(e){function t(t){return Lp(t,e)}Cp!==null&&Lp(Cp,e),wp!==null&&Lp(wp,e),Tp!==null&&Lp(Tp,e),Ep.forEach(t),Dp.forEach(t);for(var n=0;n<Op.length;n++){var r=Op[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Op.length&&(n=Op[0],n.blockedOn===null);)Np(n),n.blockedOn===null&&Op.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[rt]||null;if(typeof a==`function`)o||zp(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[rt]||null)s=o.formAction;else if(bp(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),zp(n)}}}function Vp(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function Hp(e){this._internalRoot=e}Up.prototype.render=Hp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;lp(n,vu(),e,t,null,null)},Up.prototype.unmount=Hp.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;lp(e.current,2,null,e,null,null),Tu(),t[it]=null}};function Up(e){this._internalRoot=e}Up.prototype.unstable_scheduleHydration=function(e){if(e){var t=$e();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Op.length&&t!==0&&t<Op[n].priority;n++);Op.splice(n,0,e),n===0&&Np(e)}};var Wp=n.version;if(Wp!==`19.2.6`)throw Error(i(527,Wp,`19.2.6`));F.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(i(188)):(e=Object.keys(e).join(`,`),Error(i(268,e)));return e=u(t),e=e===null?null:d(e),e=e===null?null:e.stateNode,e};var Gp={bundleType:0,version:`19.2.6`,rendererPackageName:`react-dom`,currentDispatcherRef:P,reconcilerVersion:`19.2.6`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Kp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Kp.isDisabled&&Kp.supportsFiber)try{Ae=Kp.inject(Gp),je=Kp}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=Gs,s=Ks,c=qs;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=sp(e,1,!1,null,null,n,r,null,o,s,c,Vp),e[it]=t.current,kd(e),new Hp(t)},e.hydrateRoot=function(e,t,n){if(!a(e))throw Error(i(299));var r=!1,o=``,s=Gs,c=Ks,l=qs,u=null;return n!=null&&(!0===n.unstable_strictMode&&(r=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onUncaughtError!==void 0&&(s=n.onUncaughtError),n.onCaughtError!==void 0&&(c=n.onCaughtError),n.onRecoverableError!==void 0&&(l=n.onRecoverableError),n.formState!==void 0&&(u=n.formState)),t=sp(e,1,!0,t,n??null,r,o,u,s,c,l,Vp),t.context=cp(null),n=t.current,r=vu(),r=Ze(r),o=Ra(r),o.callback=null,za(n,o,r),n=r,t.current.lanes=n,Ke(t,n),ld(t),e[it]=t.current,kd(e),new Up(t)},e.version=`19.2.6`})),w=c((e=>{process.env.NODE_ENV!==`production`&&(function(){function t(e,t){for(e=e.memoizedState;e!==null&&0<t;)e=e.next,t--;return e}function n(e,t,r,i){if(r>=t.length)return i;var a=t[r],o=Hf(e)?e.slice():wf({},e);return o[a]=n(e[a],t,r+1,i),o}function r(e,t,n){if(t.length!==n.length)console.warn(`copyWithRename() expects paths of the same length`);else{for(var r=0;r<n.length-1;r++)if(t[r]!==n[r]){console.warn(`copyWithRename() expects paths to be the same except for the deepest key`);return}return i(e,t,n,0)}}function i(e,t,n,r){var a=t[r],o=Hf(e)?e.slice():wf({},e);return r+1===t.length?(o[n[r]]=o[a],Hf(o)?o.splice(a,1):delete o[a]):o[a]=i(e[a],t,n,r+1),o}function a(e,t,n){var r=t[n],i=Hf(e)?e.slice():wf({},e);return n+1===t.length?(Hf(i)?i.splice(r,1):delete i[r],i):(i[r]=a(e[r],t,n+1),i)}function o(){return!1}function s(){return null}function c(){console.error(`Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks`)}function l(){console.error(`Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().`)}function u(){}function d(){}function f(e){var t=[];return e.forEach(function(e){t.push(e)}),t.sort().join(`, `)}function p(e,t,n,r){return new lr(e,t,n,r)}function m(e,t){e.context===jg&&(Jd(e.current,2,t,e,null,null),Qc())}function h(e,t){if(Mg!==null){var n=t.staleFamilies;t=t.updatedFamilies,wl(),cr(e.current,t,n),Qc()}}function _(e){Mg=e}function v(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function b(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function x(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function C(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function w(e){if(b(e)!==e)throw Error(`Unable to find node on an unmounted component.`)}function T(e){var t=e.alternate;if(!t){if(t=b(e),t===null)throw Error(`Unable to find node on an unmounted component.`);return t===e?e:null}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var a=i.alternate;if(a===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return w(i),e;if(a===r)return w(i),t;a=a.sibling}throw Error(`Unable to find node on an unmounted component.`)}if(n.return!==r.return)n=i,r=a;else{for(var o=!1,s=i.child;s;){if(s===n){o=!0,n=i,r=a;break}if(s===r){o=!0,r=i,n=a;break}s=s.sibling}if(!o){for(s=a.child;s;){if(s===n){o=!0,n=a,r=i;break}if(s===r){o=!0,r=a,n=i;break}s=s.sibling}if(!o)throw Error(`Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.`)}}if(n.alternate!==r)throw Error(`Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.`)}if(n.tag!==3)throw Error(`Unable to find node on an unmounted component.`);return n.stateNode.current===n?e:t}function E(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=E(e),t!==null)return t;e=e.sibling}return null}function D(e){return typeof e!=`object`||!e?null:(e=Bf&&e[Bf]||e[`@@iterator`],typeof e==`function`?e:null)}function O(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===Vf?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case Of:return`Fragment`;case Af:return`Profiler`;case kf:return`StrictMode`;case Pf:return`Suspense`;case Ff:return`SuspenseList`;case Rf:return`Activity`}if(typeof e==`object`)switch(typeof e.tag==`number`&&console.error(`Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.`),e.$$typeof){case Df:return`Portal`;case Mf:return e.displayName||`Context`;case jf:return(e._context.displayName||`Context`)+`.Consumer`;case Nf:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case If:return t=e.displayName||null,t===null?O(e.type)||`Memo`:t;case Lf:t=e._payload,e=e._init;try{return O(e(t))}catch{}}return null}function k(e){return typeof e.tag==`number`?A(e):typeof e.name==`string`?e.name:null}function A(e){var t=e.type;switch(e.tag){case 31:return`Activity`;case 24:return`Cache`;case 9:return(t._context.displayName||`Context`)+`.Consumer`;case 10:return t.displayName||`Context`;case 18:return`DehydratedFragment`;case 11:return e=t.render,e=e.displayName||e.name||``,t.displayName||(e===``?`ForwardRef`:`ForwardRef(`+e+`)`);case 7:return`Fragment`;case 26:case 27:case 5:return t;case 4:return`Portal`;case 3:return`Root`;case 6:return`Text`;case 16:return O(t);case 8:return t===kf?`StrictMode`:`Mode`;case 22:return`Offscreen`;case 12:return`Profiler`;case 21:return`Scope`;case 13:return`Suspense`;case 19:return`SuspenseList`;case 25:return`TracingMarker`;case 1:case 0:case 14:case 15:if(typeof t==`function`)return t.displayName||t.name||null;if(typeof t==`string`)return t;break;case 29:if(t=e._debugInfo,t!=null){for(var n=t.length-1;0<=n;n--)if(typeof t[n].name==`string`)return t[n].name}if(e.return!==null)return A(e.return)}return null}function j(e){return{current:e}}function M(e,t){0>qf?console.error(`Unexpected pop.`):(t!==Kf[qf]&&console.error(`Unexpected Fiber popped.`),e.current=Gf[qf],Gf[qf]=null,Kf[qf]=null,qf--)}function N(e,t,n){qf++,Gf[qf]=e.current,Kf[qf]=n,e.current=t}function ee(e){return e===null&&console.error(`Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.`),e}function te(e,t){N(Xf,t,e),N(Yf,e,e),N(Jf,null,e);var n=t.nodeType;switch(n){case 9:case 11:n=n===9?`#document`:`#fragment`,t=(t=t.documentElement)&&(t=t.namespaceURI)?Pu(t):GS;break;default:if(n=t.tagName,t=t.namespaceURI)t=Pu(t),t=Fu(t,n);else switch(n){case`svg`:t=KS;break;case`math`:t=qS;break;default:t=GS}}n=n.toLowerCase(),n=jt(null,n),n={context:t,ancestorInfo:n},M(Jf,e),N(Jf,n,e)}function P(e){M(Jf,e),M(Yf,e),M(Xf,e)}function F(){return ee(Jf.current)}function ne(e){e.memoizedState!==null&&N(Zf,e,e);var t=ee(Jf.current),n=e.type,r=Fu(t.context,n);n=jt(t.ancestorInfo,n),r={context:r,ancestorInfo:n},t!==r&&(N(Yf,e,e),N(Jf,r,e))}function re(e){Yf.current===e&&(M(Jf,e),M(Yf,e)),Zf.current===e&&(M(Zf,e),SC._currentValue=xC)}function ie(){}function I(){if(Qf===0){$f=console.log,ep=console.info,tp=console.warn,np=console.error,rp=console.group,ip=console.groupCollapsed,ap=console.groupEnd;var e={configurable:!0,enumerable:!0,value:ie,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Qf++}function ae(){if(Qf--,Qf===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:wf({},e,{value:$f}),info:wf({},e,{value:ep}),warn:wf({},e,{value:tp}),error:wf({},e,{value:np}),group:wf({},e,{value:rp}),groupCollapsed:wf({},e,{value:ip}),groupEnd:wf({},e,{value:ap})})}0>Qf&&console.error(`disabledDepth fell below zero. This is a bug in React. Please file an issue.`)}function L(e){var t=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,e=e.stack,Error.prepareStackTrace=t,e.startsWith(`Error: react-stack-top-frame
26
+ `)&&(e=e.slice(29)),t=e.indexOf(`
27
+ `),t!==-1&&(e=e.slice(t+1)),t=e.indexOf(`react_stack_bottom_frame`),t!==-1&&(t=e.lastIndexOf(`
28
+ `,t)),t!==-1)e=e.slice(0,t);else return``;return e}function oe(e){if(op===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);op=t&&t[1]||``,sp=-1<e.stack.indexOf(`
29
+ at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
30
+ `+op+e+sp}function se(e,t){if(!e||cp)return``;var n=lp.get(e);if(n!==void 0)return n;cp=!0,n=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var r=null;r=K.H,K.H=null,I();try{var i={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,`props`,{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var a=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,`name`);a&&a.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,`name`,{value:`DetermineComponentFrameRoot`});var o=i.DetermineComponentFrameRoot(),s=o[0],c=o[1];if(s&&c){var l=s.split(`
31
+ `),u=c.split(`
32
+ `);for(o=a=0;a<l.length&&!l[a].includes(`DetermineComponentFrameRoot`);)a++;for(;o<u.length&&!u[o].includes(`DetermineComponentFrameRoot`);)o++;if(a===l.length||o===u.length)for(a=l.length-1,o=u.length-1;1<=a&&0<=o&&l[a]!==u[o];)o--;for(;1<=a&&0<=o;a--,o--)if(l[a]!==u[o]){if(a!==1||o!==1)do if(a--,o--,0>o||l[a]!==u[o]){var d=`
33
+ `+l[a].replace(` at new `,` at `);return e.displayName&&d.includes(`<anonymous>`)&&(d=d.replace(`<anonymous>`,e.displayName)),typeof e==`function`&&lp.set(e,d),d}while(1<=a&&0<=o);break}}}finally{cp=!1,K.H=r,ae(),Error.prepareStackTrace=n}return l=(l=e?e.displayName||e.name:``)?oe(l):``,typeof e==`function`&&lp.set(e,l),l}function ce(e,t){switch(e.tag){case 26:case 27:case 5:return oe(e.type);case 16:return oe(`Lazy`);case 13:return e.child!==t&&t!==null?oe(`Suspense Fallback`):oe(`Suspense`);case 19:return oe(`SuspenseList`);case 0:case 15:return se(e.type,!1);case 11:return se(e.type.render,!1);case 1:return se(e.type,!0);case 31:return oe(`Activity`);default:return``}}function le(e){try{var t=``,n=null;do{t+=ce(e,n);var r=e._debugInfo;if(r)for(var i=r.length-1;0<=i;i--){var a=r[i];if(typeof a.name==`string`){var o=t;a:{var s=a.name,c=a.env,l=a.debugLocation;if(l!=null){var u=L(l),d=u.lastIndexOf(`
34
+ `),f=d===-1?u:u.slice(d+1);if(f.indexOf(s)!==-1){var p=`
35
+ `+f;break a}}p=oe(s+(c?` [`+c+`]`:``))}t=o+p}}n=e,e=e.return}while(e);return t}catch(e){return`
36
+ Error generating stack: `+e.message+`
37
+ `+e.stack}}function ue(e){return(e=e?e.displayName||e.name:``)?oe(e):``}function de(){if(up===null)return null;var e=up._debugOwner;return e==null?null:k(e)}function fe(){if(up===null)return``;var e=up;try{var t=``;switch(e.tag===6&&(e=e.return),e.tag){case 26:case 27:case 5:t+=oe(e.type);break;case 13:t+=oe(`Suspense`);break;case 19:t+=oe(`SuspenseList`);break;case 31:t+=oe(`Activity`);break;case 30:case 0:case 15:case 1:e._debugOwner||t!==``||(t+=ue(e.type));break;case 11:e._debugOwner||t!==``||(t+=ue(e.type.render))}for(;e;)if(typeof e.tag==`number`){var n=e;e=n._debugOwner;var r=n._debugStack;if(e&&r){var i=L(r);i!==``&&(t+=`
38
+ `+i)}}else if(e.debugStack!=null){var a=e.debugStack;(e=e.owner)&&a&&(t+=`
39
+ `+L(a))}else break;var o=t}catch(e){o=`
40
+ Error generating stack: `+e.message+`
41
+ `+e.stack}return o}function R(e,t,n,r,i,a,o){var s=up;z(e);try{return e!==null&&e._debugTask?e._debugTask.run(t.bind(null,n,r,i,a,o)):t(n,r,i,a,o)}finally{z(s)}throw Error(`runWithFiberInDEV should never be called in production. This is a bug in React.`)}function z(e){K.getCurrentStack=e===null?null:fe,dp=!1,up=e}function pe(e){return typeof Symbol==`function`&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||`Object`}function me(e){try{return he(e),!1}catch{return!0}}function he(e){return``+e}function B(e,t){if(me(e))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",t,pe(e)),he(e)}function ge(e,t){if(me(e))return console.error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",t,pe(e)),he(e)}function _e(e){if(me(e))return console.error(`Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.`,pe(e)),he(e)}function ve(e){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled)return!0;if(!t.supportsFiber)return console.error(`The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools`),!0;try{Ep=t.inject(e),Dp=t}catch(e){console.error(`React instrumentation encountered an error: %o.`,e)}return!!t.checkDCE}function V(e){if(typeof wp==`function`&&Tp(e),Dp&&typeof Dp.setStrictMode==`function`)try{Dp.setStrictMode(Ep,e)}catch(e){Op||(Op=!0,console.error(`React instrumentation encountered an error: %o`,e))}}function ye(e){return e>>>=0,e===0?32:31-(jp(e)/Mp|0)|0}function be(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return console.error(`Should have found matching lanes. This is a bug in React.`),e}}function xe(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=be(n))):i=be(o):i=be(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=be(n))):i=be(o)):i=be(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function H(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Se(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return console.error(`Should have found matching lanes. This is a bug in React.`),-1}}function Ce(){var e=Fp;return Fp<<=1,!(Fp&62914560)&&(Fp=4194304),e}function we(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Te(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ee(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-Ap(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&De(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function De(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Ap(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function Oe(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ap(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function ke(e,t){var n=t&-t;return n=n&42?1:Ae(n),(n&(e.suspendedLanes|t))===0?n:0}function Ae(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function je(e,t,n){if(kp)for(e=e.pendingUpdatersLaneMap;0<n;){var r=31-Ap(n),i=1<<r;e[r].add(t),n&=~i}}function Me(e,t){if(kp)for(var n=e.pendingUpdatersLaneMap,r=e.memoizedUpdaters;0<t;){var i=31-Ap(t);e=1<<i,i=n[i],0<i.size&&(i.forEach(function(e){var t=e.alternate;t!==null&&r.has(t)||r.add(e)}),i.clear()),t&=~e}}function Ne(e){return e&=-e,Ip!==0&&Ip<e?Lp!==0&&Lp<e?e&134217727?Rp:zp:Lp:Ip}function Pe(){var e=Uf.p;return e===0?(e=window.event,e===void 0?Rp:of(e.type)):e}function Fe(e,t){var n=Uf.p;try{return Uf.p=e,t()}finally{Uf.p=n}}function Ie(e){delete e[Vp],delete e[Hp],delete e[Wp],delete e[Gp],delete e[Kp]}function Le(e){var t=e[Vp];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Up]||n[Vp]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=hd(e);e!==null;){if(n=e[Vp])return n;e=hd(e)}return t}e=n,n=e.parentNode}return null}function Re(e){if(e=e[Vp]||e[Up]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function ze(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(`getNodeFromInstance: Invalid argument.`)}function Be(e){var t=e[qp];return t||=e[qp]={hoistableStyles:new Map,hoistableScripts:new Map},t}function Ve(e){e[Jp]=!0}function He(e,t){Ue(e,t),Ue(e+`Capture`,t)}function Ue(e,t){Xp[e]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),Xp[e]=t;var n=e.toLowerCase();for(Zp[n]=e,e===`onDoubleClick`&&(Zp.ondblclick=e),e=0;e<t.length;e++)Yp.add(t[e])}function We(e,t){Qp[t.type]||t.onChange||t.onInput||t.readOnly||t.disabled||t.value==null||console.error(e===`select`?"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`.":"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),t.onChange||t.readOnly||t.disabled||t.checked==null||console.error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function Ge(e){return fp.call(tm,e)?!0:fp.call(em,e)?!1:$p.test(e)?tm[e]=!0:(em[e]=!0,console.error("Invalid attribute name: `%s`",e),!1)}function Ke(e,t,n){if(Ge(t)){if(!e.hasAttribute(t)){switch(typeof n){case`symbol`:case`object`:return n;case`function`:return n;case`boolean`:if(!1===n)return n}return n===void 0?void 0:null}return e=e.getAttribute(t),e===``&&!0===n?!0:(B(n,t),e===``+n?n:e)}}function qe(e,t,n){if(Ge(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}B(n,t),e.setAttribute(t,``+n)}}function Je(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(t);return}B(n,t),e.setAttribute(t,``+n)}}function Ye(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}B(r,n),e.setAttributeNS(t,n,``+r)}}function Xe(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return _e(e),e;default:return``}}function Ze(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function Qe(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){_e(e),n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){_e(e),n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function $e(e){if(!e._valueTracker){var t=Ze(e)?`checked`:`value`;e._valueTracker=Qe(e,t,``+e[t])}}function et(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=Ze(e)?e.checked?`true`:`false`:e.value),e=r,e===n?!1:(t.setValue(e),!0)}function tt(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}function nt(e){return e.replace(nm,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function rt(e,t){t.checked===void 0||t.defaultChecked===void 0||im||(console.error(`%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components`,de()||`A component`,t.type),im=!0),t.value===void 0||t.defaultValue===void 0||rm||(console.error(`%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components`,de()||`A component`,t.type),rm=!0)}function it(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?(B(o,`type`),e.type=o):e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+Xe(t)):e.value!==``+Xe(t)&&(e.value=``+Xe(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):ot(e,o,Xe(n)):ot(e,o,Xe(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?(B(s,`name`),e.name=``+Xe(s)):e.removeAttribute(`name`)}function at(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(B(a,`type`),e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){$e(e);return}n=n==null?``:``+Xe(n),t=t==null?n:``+Xe(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(B(o,`name`),e.name=o),$e(e)}function ot(e,t,n){t===`number`&&tt(e.ownerDocument)===e||e.defaultValue===``+n||(e.defaultValue=``+n)}function st(e,t){t.value??(typeof t.children==`object`&&t.children!==null?Sf.Children.forEach(t.children,function(e){e==null||typeof e==`string`||typeof e==`number`||typeof e==`bigint`||om||(om=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."))}):t.dangerouslySetInnerHTML==null||sm||(sm=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),t.selected==null||am||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),am=!0)}function ct(){var e=de();return e?`
42
+
43
+ Check the render method of \``+e+"`.":``}function lt(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+Xe(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function ut(e,t){for(e=0;e<lm.length;e++){var n=lm[e];if(t[n]!=null){var r=Hf(t[n]);t.multiple&&!r?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",n,ct()):!t.multiple&&r&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",n,ct())}}t.value===void 0||t.defaultValue===void 0||cm||(console.error(`Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://react.dev/link/controlled-components`),cm=!0)}function dt(e,t){t.value===void 0||t.defaultValue===void 0||um||(console.error(`%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://react.dev/link/controlled-components`,de()||`A component`),um=!0),t.children!=null&&t.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function ft(e,t,n){if(t!=null&&(t=``+Xe(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n==null?``:``+Xe(n)}function pt(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Hf(r)){if(1<r.length)throw Error(`<textarea> can only have at most one child.`);r=r[0]}n=r}n??=``,t=n}n=Xe(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),$e(e)}function mt(e,t){return e.serverProps===void 0&&e.serverTail.length===0&&e.children.length===1&&3<e.distanceFromLeaf&&e.distanceFromLeaf>15-t?mt(e.children[0],t):e}function ht(e){return` `+` `.repeat(e)}function gt(e){return`+ `+` `.repeat(e)}function _t(e){return`- `+` `.repeat(e)}function vt(e){switch(e.tag){case 26:case 27:case 5:return e.type;case 16:return`Lazy`;case 31:return`Activity`;case 13:return`Suspense`;case 19:return`SuspenseList`;case 0:case 15:return e=e.type,e.displayName||e.name||null;case 11:return e=e.type.render,e.displayName||e.name||null;case 1:return e=e.type,e.displayName||e.name||null;default:return null}}function yt(e,t){return dm.test(e)?(e=JSON.stringify(e),e.length>t-2?8>t?`{"..."}`:`{`+e.slice(0,t-7)+`..."}`:`{`+e+`}`):e.length>t?5>t?`{"..."}`:e.slice(0,t-3)+`...`:e}function bt(e,t,n){var r=120-2*n;if(t===null)return gt(n)+yt(e,r)+`
44
+ `;if(typeof t==`string`){for(var i=0;i<t.length&&i<e.length&&t.charCodeAt(i)===e.charCodeAt(i);i++);return i>r-8&&10<i&&(e=`...`+e.slice(i-8),t=`...`+t.slice(i-8)),gt(n)+yt(e,r)+`
45
+ `+_t(n)+yt(t,r)+`
46
+ `}return ht(n)+yt(e,r)+`
47
+ `}function xt(e){return Object.prototype.toString.call(e).replace(/^\[object (.*)\]$/,function(e,t){return t})}function St(e,t){switch(typeof e){case`string`:return e=JSON.stringify(e),e.length>t?5>t?`"..."`:e.slice(0,t-4)+`..."`:e;case`object`:if(e===null)return`null`;if(Hf(e))return`[...]`;if(e.$$typeof===Ef)return(t=O(e.type))?`<`+t+`>`:`<...>`;var n=xt(e);if(n===`Object`){for(var r in n=``,t-=2,e)if(e.hasOwnProperty(r)){var i=JSON.stringify(r);if(i!==`"`+r+`"`&&(r=i),t-=r.length-2,i=St(e[r],15>t?t:15),t-=i.length,0>t){n+=n===``?`...`:`, ...`;break}n+=(n===``?``:`,`)+r+`:`+i}return`{`+n+`}`}return n;case`function`:return(t=e.displayName||e.name)?`function `+t:`function`;default:return String(e)}}function Ct(e,t){return typeof e!=`string`||dm.test(e)?`{`+St(e,t-2)+`}`:e.length>t-2?5>t?`"..."`:`"`+e.slice(0,t-5)+`..."`:`"`+e+`"`}function wt(e,t,n){var r=120-n.length-e.length,i=[],a;for(a in t)if(t.hasOwnProperty(a)&&a!==`children`){var o=Ct(t[a],120-n.length-a.length-1);r-=a.length+o.length+2,i.push(a+`=`+o)}return i.length===0?n+`<`+e+`>
48
+ `:0<r?n+`<`+e+` `+i.join(` `)+`>
49
+ `:n+`<`+e+`
50
+ `+n+` `+i.join(`
51
+ `+n+` `)+`
52
+ `+n+`>
53
+ `}function Tt(e,t,n){var r=``,i=wf({},t),a;for(a in e)if(e.hasOwnProperty(a)){delete i[a];var o=120-2*n-a.length-2,s=St(e[a],o);t.hasOwnProperty(a)?(o=St(t[a],o),r+=gt(n)+a+`: `+s+`
54
+ `,r+=_t(n)+a+`: `+o+`
55
+ `):r+=gt(n)+a+`: `+s+`
56
+ `}for(var c in i)i.hasOwnProperty(c)&&(e=St(i[c],120-2*n-c.length-2),r+=_t(n)+c+`: `+e+`
57
+ `);return r}function Et(e,t,n,r){var i=``,a=new Map;for(l in n)n.hasOwnProperty(l)&&a.set(l.toLowerCase(),l);if(a.size===1&&a.has(`children`))i+=wt(e,t,ht(r));else{for(var o in t)if(t.hasOwnProperty(o)&&o!==`children`){var s=120-2*(r+1)-o.length-1,c=a.get(o.toLowerCase());if(c!==void 0){a.delete(o.toLowerCase());var l=t[o];c=n[c];var u=Ct(l,s);s=Ct(c,s),typeof l==`object`&&l&&typeof c==`object`&&c&&xt(l)===`Object`&&xt(c)===`Object`&&(2<Object.keys(l).length||2<Object.keys(c).length||-1<u.indexOf(`...`)||-1<s.indexOf(`...`))?i+=ht(r+1)+o+`={{
58
+ `+Tt(l,c,r+2)+ht(r+1)+`}}
59
+ `:(i+=gt(r+1)+o+`=`+u+`
60
+ `,i+=_t(r+1)+o+`=`+s+`
61
+ `)}else i+=ht(r+1)+o+`=`+Ct(t[o],s)+`
62
+ `}a.forEach(function(e){if(e!==`children`){var t=120-2*(r+1)-e.length-1;i+=_t(r+1)+e+`=`+Ct(n[e],t)+`
63
+ `}}),i=i===``?ht(r)+`<`+e+`>
64
+ `:ht(r)+`<`+e+`
65
+ `+i+ht(r)+`>
66
+ `}return e=n.children,t=t.children,typeof e==`string`||typeof e==`number`||typeof e==`bigint`?(a=``,(typeof t==`string`||typeof t==`number`||typeof t==`bigint`)&&(a=``+t),i+=bt(a,``+e,r+1)):(typeof t==`string`||typeof t==`number`||typeof t==`bigint`)&&(i=e==null?i+bt(``+t,null,r+1):i+bt(``+t,void 0,r+1)),i}function Dt(e,t){var n=vt(e);if(n===null){for(n=``,e=e.child;e;)n+=Dt(e,t),e=e.sibling;return n}return ht(t)+`<`+n+`>
67
+ `}function Ot(e,t){var n=mt(e,t);if(n!==e&&(e.children.length!==1||e.children[0]!==n))return ht(t)+`...
68
+ `+Ot(n,t+1);n=``;var r=e.fiber._debugInfo;if(r)for(var i=0;i<r.length;i++){var a=r[i].name;typeof a==`string`&&(n+=ht(t)+`<`+a+`>
69
+ `,t++)}if(r=``,i=e.fiber.pendingProps,e.fiber.tag===6)r=bt(i,e.serverProps,t),t++;else if(a=vt(e.fiber),a!==null)if(e.serverProps===void 0){r=t;var o=120-2*r-a.length-2,s=``;for(l in i)if(i.hasOwnProperty(l)&&l!==`children`){var c=Ct(i[l],15);if(o-=l.length+c.length+2,0>o){s+=` ...`;break}s+=` `+l+`=`+c}r=ht(r)+`<`+a+s+`>
70
+ `,t++}else e.serverProps===null?(r=wt(a,i,gt(t)),t++):typeof e.serverProps==`string`?console.error(`Should not have matched a non HostText fiber to a Text node. This is a bug in React.`):(r=Et(a,i,e.serverProps,t),t++);var l=``;for(i=e.fiber.child,a=0;i&&a<e.children.length;)o=e.children[a],o.fiber===i?(l+=Ot(o,t),a++):l+=Dt(i,t),i=i.sibling;for(i&&0<e.children.length&&(l+=ht(t)+`...
71
+ `),i=e.serverTail,e.serverProps===null&&t--,e=0;e<i.length;e++)a=i[e],l=typeof a==`string`?l+(_t(t)+yt(a,120-2*t)+`
72
+ `):l+wt(a.type,a.props,_t(t));return n+r+l}function kt(e){try{return`
73
+
74
+ `+Ot(e,0)}catch{return``}}function At(e,t,n){for(var r=t,i=null,a=0;r;)r===e&&(a=0),i={fiber:r,children:i===null?[]:[i],serverProps:r===t?n:r===e?null:void 0,serverTail:[],distanceFromLeaf:a},a++,r=r.return;return i===null?``:kt(i).replaceAll(/^[+-]/gm,`>`)}function jt(e,t){var n=wf({},e||gm),r={tag:t};return pm.indexOf(t)!==-1&&(n.aTagInScope=null,n.buttonTagInScope=null,n.nobrTagInScope=null),mm.indexOf(t)!==-1&&(n.pTagInButtonScope=null),fm.indexOf(t)!==-1&&t!==`address`&&t!==`div`&&t!==`p`&&(n.listItemTagAutoclosing=null,n.dlItemTagAutoclosing=null),n.current=r,t===`form`&&(n.formTag=r),t===`a`&&(n.aTagInScope=r),t===`button`&&(n.buttonTagInScope=r),t===`nobr`&&(n.nobrTagInScope=r),t===`p`&&(n.pTagInButtonScope=r),t===`li`&&(n.listItemTagAutoclosing=r),(t===`dd`||t===`dt`)&&(n.dlItemTagAutoclosing=r),t===`#document`||t===`html`?n.containerTagInScope=null:n.containerTagInScope||=r,e!==null||t!==`#document`&&t!==`html`&&t!==`body`?!0===n.implicitRootScope&&(n.implicitRootScope=!1):n.implicitRootScope=!0,n}function Mt(e,t,n){switch(t){case`select`:return e===`hr`||e===`option`||e===`optgroup`||e===`script`||e===`template`||e===`#text`;case`optgroup`:return e===`option`||e===`#text`;case`option`:return e===`#text`;case`tr`:return e===`th`||e===`td`||e===`style`||e===`script`||e===`template`;case`tbody`:case`thead`:case`tfoot`:return e===`tr`||e===`style`||e===`script`||e===`template`;case`colgroup`:return e===`col`||e===`template`;case`table`:return e===`caption`||e===`colgroup`||e===`tbody`||e===`tfoot`||e===`thead`||e===`style`||e===`script`||e===`template`;case`head`:return e===`base`||e===`basefont`||e===`bgsound`||e===`link`||e===`meta`||e===`title`||e===`noscript`||e===`noframes`||e===`style`||e===`script`||e===`template`;case`html`:if(n)break;return e===`head`||e===`body`||e===`frameset`;case`frameset`:return e===`frame`;case`#document`:if(!n)return e===`html`}switch(e){case`h1`:case`h2`:case`h3`:case`h4`:case`h5`:case`h6`:return t!==`h1`&&t!==`h2`&&t!==`h3`&&t!==`h4`&&t!==`h5`&&t!==`h6`;case`rp`:case`rt`:return hm.indexOf(t)===-1;case`caption`:case`col`:case`colgroup`:case`frameset`:case`frame`:case`tbody`:case`td`:case`tfoot`:case`th`:case`thead`:case`tr`:return t==null;case`head`:return n||t===null;case`html`:return n&&t===`#document`||t===null;case`body`:return n&&(t===`#document`||t===`html`)||t===null}return!0}function Nt(e,t){switch(e){case`address`:case`article`:case`aside`:case`blockquote`:case`center`:case`details`:case`dialog`:case`dir`:case`div`:case`dl`:case`fieldset`:case`figcaption`:case`figure`:case`footer`:case`header`:case`hgroup`:case`main`:case`menu`:case`nav`:case`ol`:case`p`:case`section`:case`summary`:case`ul`:case`pre`:case`listing`:case`table`:case`hr`:case`xmp`:case`h1`:case`h2`:case`h3`:case`h4`:case`h5`:case`h6`:return t.pTagInButtonScope;case`form`:return t.formTag||t.pTagInButtonScope;case`li`:return t.listItemTagAutoclosing;case`dd`:case`dt`:return t.dlItemTagAutoclosing;case`button`:return t.buttonTagInScope;case`a`:return t.aTagInScope;case`nobr`:return t.nobrTagInScope}return null}function Pt(e,t){for(;e;){switch(e.tag){case 5:case 26:case 27:if(e.type===t)return e}e=e.return}return null}function Ft(e,t){t||=gm;var n=t.current;if(t=(n=Mt(e,n&&n.tag,t.implicitRootScope)?null:n)?null:Nt(e,t),t=n||t,!t)return!0;var r=t.tag;if(t=String(!!n)+`|`+e+`|`+r,_m[t])return!1;_m[t]=!0;var i=(t=up)?Pt(t.return,r):null,a=t!==null&&i!==null?At(i,t,null):``,o=`<`+e+`>`;return n?(n=``,r===`table`&&e===`tr`&&(n+=` Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser.`),console.error(`In HTML, %s cannot be a child of <%s>.%s
75
+ This will cause a hydration error.%s`,o,r,n,a)):console.error(`In HTML, %s cannot be a descendant of <%s>.
76
+ This will cause a hydration error.%s`,o,r,a),t&&(e=t.return,i===null||e===null||i===e&&e._debugOwner===t._debugOwner||R(i,function(){console.error(`<%s> cannot contain a nested %s.
77
+ See this log for the ancestor stack trace.`,r,o)})),!1}function It(e,t,n){if(n||Mt(`#text`,t,!1))return!0;if(n=`#text|`+t,_m[n])return!1;_m[n]=!0;var r=(n=up)?Pt(n,t):null;return n=n!==null&&r!==null?At(r,n,n.tag===6?null:{children:null}):``,/\S/.test(e)?console.error(`In HTML, text nodes cannot be a child of <%s>.
78
+ This will cause a hydration error.%s`,t,n):console.error(`In HTML, whitespace text nodes cannot be a child of <%s>. Make sure you don't have any extra whitespace between tags on each line of your source code.
79
+ This will cause a hydration error.%s`,t,n),!1}function Lt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}function Rt(e){return e.replace(Cm,function(e,t){return t.toUpperCase()})}function zt(e,t,n){var r=t.indexOf(`--`)===0;r||(-1<t.indexOf(`-`)?Tm.hasOwnProperty(t)&&Tm[t]||(Tm[t]=!0,console.error(`Unsupported style property %s. Did you mean %s?`,t,Rt(t.replace(Sm,`ms-`)))):xm.test(t)?Tm.hasOwnProperty(t)&&Tm[t]||(Tm[t]=!0,console.error(`Unsupported vendor-prefixed style property %s. Did you mean %s?`,t,t.charAt(0).toUpperCase()+t.slice(1))):!wm.test(n)||Em.hasOwnProperty(n)&&Em[n]||(Em[n]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,t,n.replace(wm,``))),typeof n==`number`&&(isNaN(n)?Dm||(Dm=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",t)):isFinite(n)||Om||(Om=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",t)))),n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||km.has(t)?t===`float`?e.cssFloat=n:(ge(n,t),e[t]=(``+n).trim()):e[t]=n+`px`}function Bt(e,t,n){if(t!=null&&typeof t!=`object`)throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");if(t&&Object.freeze(t),e=e.style,n!=null){if(t){var r={};if(n){for(var i in n)if(n.hasOwnProperty(i)&&!t.hasOwnProperty(i))for(var a=vm[i]||[i],o=0;o<a.length;o++)r[a[o]]=i}for(var s in t)if(t.hasOwnProperty(s)&&(!n||n[s]!==t[s]))for(i=vm[s]||[s],a=0;a<i.length;a++)r[i[a]]=s;for(var c in s={},t)for(i=vm[c]||[c],a=0;a<i.length;a++)s[i[a]]=c;for(var l in c={},r)if(i=r[l],(a=s[l])&&i!==a&&(o=i+`,`+a,!c[o])){c[o]=!0,o=console;var u=t[i];o.error.call(o,`%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.`,u==null||typeof u==`boolean`||u===``?`Removing`:`Updating`,i,a)}}for(var d in n)!n.hasOwnProperty(d)||t!=null&&t.hasOwnProperty(d)||(d.indexOf(`--`)===0?e.setProperty(d,``):d===`float`?e.cssFloat=``:e[d]=``);for(var f in t)l=t[f],t.hasOwnProperty(f)&&n[f]!==l&&zt(e,f,l)}else for(r in t)t.hasOwnProperty(r)&&zt(e,r,t[r])}function Vt(e){if(e.indexOf(`-`)===-1)return!1;switch(e){case`annotation-xml`:case`color-profile`:case`font-face`:case`font-face-src`:case`font-face-uri`:case`font-face-format`:case`font-face-name`:case`missing-glyph`:return!1;default:return!0}}function Ht(e){return Mm.get(e)||e}function Ut(e,t){if(fp.call(Fm,t)&&Fm[t])return!0;if(Lm.test(t)){if(e=`aria-`+t.slice(4).toLowerCase(),e=Pm.hasOwnProperty(e)?e:null,e==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",t),Fm[t]=!0;if(t!==e)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,e),Fm[t]=!0}if(Im.test(t)){if(e=t.toLowerCase(),e=Pm.hasOwnProperty(e)?e:null,e==null)return Fm[t]=!0,!1;t!==e&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,e),Fm[t]=!0)}return!0}function Wt(e,t){var n=[],r;for(r in t)Ut(e,r)||n.push(r);t=n.map(function(e){return"`"+e+"`"}).join(`, `),n.length===1?console.error(`Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props`,t,e):1<n.length&&console.error(`Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props`,t,e)}function Gt(e,t,n,r){if(fp.call(zm,t)&&zm[t])return!0;var i=t.toLowerCase();if(i===`onfocusin`||i===`onfocusout`)return console.error(`React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React.`),zm[t]=!0;if(typeof n==`function`&&(e===`form`&&t===`action`||e===`input`&&t===`formAction`||e===`button`&&t===`formAction`))return!0;if(r!=null){if(e=r.possibleRegistrationNames,r.registrationNameDependencies.hasOwnProperty(t))return!0;if(r=e.hasOwnProperty(i)?e[i]:null,r!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",t,r),zm[t]=!0;if(Bm.test(t))return console.error("Unknown event handler property `%s`. It will be ignored.",t),zm[t]=!0}else if(Bm.test(t))return Vm.test(t)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),zm[t]=!0;if(Hm.test(t)||Um.test(t))return!0;if(i===`innerhtml`)return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),zm[t]=!0;if(i===`aria`)return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),zm[t]=!0;if(i===`is`&&n!=null&&typeof n!=`string`)return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof n),zm[t]=!0;if(typeof n==`number`&&isNaN(n))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",t),zm[t]=!0;if(Nm.hasOwnProperty(i)){if(i=Nm[i],i!==t)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",t,i),zm[t]=!0}else if(t!==i)return console.error("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",t,i),zm[t]=!0;switch(t){case`dangerouslySetInnerHTML`:case`children`:case`style`:case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:return!0;case`innerText`:case`textContent`:return!0}switch(typeof n){case`boolean`:switch(t){case`autoFocus`:case`checked`:case`multiple`:case`muted`:case`selected`:case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:case`capture`:case`download`:case`inert`:return!0;default:return i=t.toLowerCase().slice(0,5),i===`data-`||i===`aria-`?!0:(n?console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',n,t,t,n,t):console.error(`Received \`%s\` for a non-boolean attribute \`%s\`.
80
+
81
+ If you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.
82
+
83
+ If you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.`,n,t,t,n,t,t,t),zm[t]=!0)}case`function`:case`symbol`:return zm[t]=!0,!1;case`string`:if(n===`false`||n===`true`){switch(t){case`checked`:case`selected`:case`multiple`:case`muted`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:case`inert`:break;default:return!0}console.error("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",n,t,n===`false`?`The browser will interpret it as a truthy value.`:`Although this works, it will not work as expected if you pass the string "false".`,t,n),zm[t]=!0}}return!0}function Kt(e,t,n){var r=[],i;for(i in t)Gt(e,i,t[i],n)||r.push(i);t=r.map(function(e){return"`"+e+"`"}).join(`, `),r.length===1?console.error(`Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior `,t,e):1<r.length&&console.error(`Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior `,t,e)}function qt(e){return Wm.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function Jt(){}function Yt(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}function Xt(e){var t=Re(e);if(t&&(e=t.stateNode)){var n=e[Hp]||null;a:switch(e=t.stateNode,t.type){case`input`:if(it(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(B(t,`name`),n=n.querySelectorAll(`input[name="`+nt(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=r[Hp]||null;if(!i)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");it(r,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&et(r)}break a;case`textarea`:ft(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&lt(e,!!n.multiple,t,!1)}}}function Zt(e,t,n){if(Jm)return e(t,n);Jm=!0;try{return e(t)}finally{if(Jm=!1,(Km!==null||qm!==null)&&(Qc(),Km&&(t=Km,e=qm,qm=Km=null,Xt(t),e)))for(t=0;t<e.length;t++)Xt(e[t])}}function Qt(e,t){var n=e.stateNode;if(n===null)return null;var r=n[Hp]||null;if(r===null)return null;n=r[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(r=!r.disabled)||(e=e.type,r=!(e===`button`||e===`input`||e===`select`||e===`textarea`)),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error("Expected `"+t+"` listener to be a function, instead got a value of `"+typeof n+"` type.");return n}function $t(){if(eh)return eh;var e,t=$m,n=t.length,r,i=`value`in Qm?Qm.value:Qm.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return eh=i.slice(e,1<r?1-r:void 0)}function en(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function tn(){return!0}function nn(){return!1}function rn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?tn:nn,this.isPropagationStopped=nn,this}return wf(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=tn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=tn)},persist:function(){},isPersistent:tn}),t}function an(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=vh[e])?!!t[e]:!1}function on(){return an}function sn(e,t){switch(e){case`keyup`:return Th.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==Eh;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function cn(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}function ln(e,t){switch(e){case`compositionend`:return cn(t);case`keypress`:return t.which===jh?(Nh=!0,Mh):null;case`textInput`:return e=t.data,e===Mh&&Nh?null:e;default:return null}}function un(e,t){if(Ph)return e===`compositionend`||!Dh&&sn(e,t)?(e=$t(),eh=$m=Qm=null,Ph=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return Ah&&t.locale!==`ko`?null:t.data;default:return null}}function dn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!Fh[e.type]:t===`textarea`}function fn(e){if(!Ym)return!1;e=`on`+e;var t=e in document;return t||=(t=document.createElement(`div`),t.setAttribute(e,`return;`),typeof t[e]==`function`),t}function pn(e,t,n,r){Km?qm?qm.push(r):qm=[r]:Km=r,t=su(t,`onChange`),0<t.length&&(n=new nh(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}function mn(e){eu(e,0)}function hn(e){if(et(ze(e)))return e}function gn(e,t){if(e===`change`)return t}function _n(){Ih&&(Ih.detachEvent(`onpropertychange`,vn),Lh=Ih=null)}function vn(e){if(e.propertyName===`value`&&hn(Lh)){var t=[];pn(t,Lh,e,Yt(e)),Zt(mn,t)}}function yn(e,t,n){e===`focusin`?(_n(),Ih=t,Lh=n,Ih.attachEvent(`onpropertychange`,vn)):e===`focusout`&&_n()}function bn(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return hn(Lh)}function xn(e,t){if(e===`click`)return hn(t)}function Sn(e,t){if(e===`input`||e===`change`)return hn(t)}function Cn(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}function wn(e,t){if(zh(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!fp.call(t,i)||!zh(e[i],t[i]))return!1}return!0}function Tn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function En(e,t){var n=Tn(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=Tn(n)}}function Dn(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Dn(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function On(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=tt(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=tt(e.document)}return t}function kn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}function An(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Wh||Vh==null||Vh!==tt(r)||(r=Vh,`selectionStart`in r&&kn(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Uh&&wn(Uh,r)||(Uh=r,r=su(Hh,`onSelect`),0<r.length&&(t=new nh(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Vh)))}function jn(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}function Mn(e){if(Kh[e])return Kh[e];if(!Gh[e])return e;var t=Gh[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in qh)return Kh[e]=t[n];return e}function Nn(e,t){tg.set(e,t),He(t,[e])}function Pn(e){for(var t=lg,n=0;n<e.length;n++){var r=e[n];if(typeof r==`object`&&r)if(Hf(r)&&r.length===2&&typeof r[0]==`string`){if(t!==lg&&t!==fg)return ug;t=fg}else return ug;else{if(typeof r==`function`||typeof r==`string`&&50<r.length||t!==lg&&t!==dg)return ug;t=dg}}return t}function Fn(e,t,n,r){for(var i in e)fp.call(e,i)&&i[0]!==`_`&&In(i,e[i],t,n,r)}function In(e,t,n,r,i){switch(typeof t){case`object`:if(t===null){t=`null`;break}else{if(t.$$typeof===Ef){var a=O(t.type)||`…`,o=t.key;t=t.props;var s=Object.keys(t),c=s.length;if(o==null&&c===0){t=`<`+a+` />`;break}if(3>r||c===1&&s[0]===`children`&&o==null){t=`<`+a+` … />`;break}for(var l in n.push([i+`\xA0\xA0`.repeat(r)+e,`<`+a]),o!==null&&In(`key`,o,n,r+1,i),e=!1,t)l===`children`?t.children!=null&&(!Hf(t.children)||0<t.children.length)&&(e=!0):fp.call(t,l)&&l[0]!==`_`&&In(l,t[l],n,r+1,i);n.push([``,e?`>…</`+a+`>`:`/>`]);return}if(a=Object.prototype.toString.call(t),a=a.slice(8,a.length-1),a===`Array`){if(l=Pn(t),l===dg||l===lg){t=JSON.stringify(t);break}else if(l===fg){for(n.push([i+`\xA0\xA0`.repeat(r)+e,``]),e=0;e<t.length;e++)a=t[e],In(a[0],a[1],n,r+1,i);return}}if(a===`Promise`){if(t.status===`fulfilled`){if(a=n.length,In(e,t.value,n,r,i),n.length>a){n=n[a],n[1]=`Promise<`+(n[1]||`Object`)+`>`;return}}else if(t.status===`rejected`&&(a=n.length,In(e,t.reason,n,r,i),n.length>a)){n=n[a],n[1]=`Rejected Promise<`+n[1]+`>`;return}n.push([`\xA0\xA0`.repeat(r)+e,`Promise`]);return}a===`Object`&&(l=Object.getPrototypeOf(t))&&typeof l.constructor==`function`&&(a=l.constructor.name),n.push([i+`\xA0\xA0`.repeat(r)+e,a===`Object`?3>r?``:`…`:a]),3>r&&Fn(t,n,r+1,i);return}case`function`:t=t.name===``?`() => {}`:t.name+`() {}`;break;case`string`:t=t===cg?`…`:JSON.stringify(t);break;case`undefined`:t=`undefined`;break;case`boolean`:t=t?`true`:`false`;break;default:t=String(t)}n.push([i+`\xA0\xA0`.repeat(r)+e,t])}function Ln(e,t,n,r){var i=!0;for(o in e)o in t||(n.push([pg+`\xA0\xA0`.repeat(r)+o,`…`]),i=!1);for(var a in t)if(a in e){var o=e[a],s=t[a];if(o!==s){if(r===0&&a===`children`)i=`\xA0\xA0`.repeat(r)+a,n.push([pg+i,`…`],[mg+i,`…`]);else{if(!(3<=r)){if(typeof o==`object`&&typeof s==`object`&&o!==null&&s!==null&&o.$$typeof===s.$$typeof)if(s.$$typeof===Ef){if(o.type===s.type&&o.key===s.key){o=O(s.type)||`…`,i=`\xA0\xA0`.repeat(r)+a,o=`<`+o+` … />`,n.push([pg+i,o],[mg+i,o]),i=!1;continue}}else{var c=Object.prototype.toString.call(o),l=Object.prototype.toString.call(s);if(c===l&&(l===`[object Object]`||l===`[object Array]`)){c=[hg+`\xA0\xA0`.repeat(r)+a,l===`[object Array]`?`Array`:``],n.push(c),l=n.length,Ln(o,s,n,r+1)?l===n.length&&(c[1]=`Referentially unequal but deeply equal objects. Consider memoization.`):i=!1;continue}}else if(typeof o==`function`&&typeof s==`function`&&o.name===s.name&&o.length===s.length&&(c=Function.prototype.toString.call(o),l=Function.prototype.toString.call(s),c===l)){o=s.name===``?`() => {}`:s.name+`() {}`,n.push([hg+`\xA0\xA0`.repeat(r)+a,o+` Referentially unequal function closure. Consider memoization.`]);continue}}In(a,o,n,r,pg),In(a,s,n,r,mg)}i=!1}}else n.push([mg+`\xA0\xA0`.repeat(r)+a,`…`]),i=!1;return i}function Rn(e){yg=e&63?`Blocking`:e&64?`Gesture`:e&4194176?`Transition`:e&62914560?`Suspense`:e&2080374784?`Idle`:`Other`}function zn(e,t,n,r){gg&&(Sg.start=t,Sg.end=n,xg.color=`warning`,xg.tooltipText=r,xg.properties=null,(e=e._debugTask)?e.run(performance.measure.bind(performance,r,Sg)):performance.measure(r,Sg))}function Bn(e,t,n){zn(e,t,n,`Reconnect`)}function Vn(e,t,n,r,i){var a=A(e);if(a!==null&&gg){var o=e.alternate,s=e.actualDuration;if(o===null||o.child!==e.child)for(var c=e.child;c!==null;c=c.sibling)s-=c.actualDuration;r=.5>s?r?`tertiary-light`:`primary-light`:10>s?r?`tertiary`:`primary`:100>s?r?`tertiary-dark`:`primary-dark`:`error`;var l=e.memoizedProps;s=e._debugTask,l!==null&&o!==null&&o.memoizedProps!==l?(c=[Cg],l=Ln(o.memoizedProps,l,c,0),1<c.length&&(l&&!bg&&(o.lanes&i)===0&&100<e.actualDuration?(bg=!0,c[0]=Tg,xg.color=`warning`,xg.tooltipText=wg):(xg.color=r,xg.tooltipText=a),xg.properties=c,Sg.start=t,Sg.end=n,s==null?performance.measure(`​`+a,Sg):s.run(performance.measure.bind(performance,`​`+a,Sg)))):s==null?console.timeStamp(a,t,n,_g,void 0,r):s.run(console.timeStamp.bind(console,a,t,n,_g,void 0,r))}}function Hn(e,t,n,r){if(gg){var i=A(e);if(i!==null){for(var a=null,o=[],s=0;s<r.length;s++){var c=r[s];a==null&&c.source!==null&&(a=c.source._debugTask),c=c.value,o.push([`Error`,typeof c==`object`&&c&&typeof c.message==`string`?String(c.message):String(c)])}e.key!==null&&In(`key`,e.key,o,0,``),e.memoizedProps!==null&&Fn(e.memoizedProps,o,0,``),a??=e._debugTask,e={start:t,end:n,detail:{devtools:{color:`error`,track:_g,tooltipText:e.tag===13?`Hydration failed`:`Error boundary caught an error`,properties:o}}},a?a.run(performance.measure.bind(performance,`​`+i,e)):performance.measure(`​`+i,e)}}}function Un(e,t,n,r,i){if(i!==null){if(gg){var a=A(e);if(a!==null){r=[];for(var o=0;o<i.length;o++){var s=i[o].value;r.push([`Error`,typeof s==`object`&&s&&typeof s.message==`string`?String(s.message):String(s)])}e.key!==null&&In(`key`,e.key,r,0,``),e.memoizedProps!==null&&Fn(e.memoizedProps,r,0,``),t={start:t,end:n,detail:{devtools:{color:`error`,track:_g,tooltipText:`A lifecycle or effect errored`,properties:r}}},(e=e._debugTask)?e.run(performance.measure.bind(performance,`​`+a,t)):performance.measure(`​`+a,t)}}}else a=A(e),a!==null&&gg&&(i=1>r?`secondary-light`:100>r?`secondary`:500>r?`secondary-dark`:`error`,(e=e._debugTask)?e.run(console.timeStamp.bind(console,a,t,n,_g,void 0,i)):console.timeStamp(a,t,n,_g,void 0,i))}function Wn(e,t,n,r){if(gg&&!(t<=e)){var i=(n&738197653)===n?`tertiary-dark`:`primary-dark`;n=(n&536870912)===n?`Prepared`:(n&201326741)===n?`Hydrated`:`Render`,r?r.run(console.timeStamp.bind(console,n,e,t,yg,vg,i)):console.timeStamp(n,e,t,yg,vg,i)}}function Gn(e,t,n,r){!gg||t<=e||(n=(n&738197653)===n?`tertiary-dark`:`primary-dark`,r?r.run(console.timeStamp.bind(console,`Prewarm`,e,t,yg,vg,n)):console.timeStamp(`Prewarm`,e,t,yg,vg,n))}function Kn(e,t,n,r){!gg||t<=e||(n=(n&738197653)===n?`tertiary-dark`:`primary-dark`,r?r.run(console.timeStamp.bind(console,`Suspended`,e,t,yg,vg,n)):console.timeStamp(`Suspended`,e,t,yg,vg,n))}function qn(e,t,n,r,i,a){if(gg&&!(t<=e)){n=[];for(var o=0;o<r.length;o++){var s=r[o].value;n.push([`Recoverable Error`,typeof s==`object`&&s&&typeof s.message==`string`?String(s.message):String(s)])}e={start:e,end:t,detail:{devtools:{color:`primary-dark`,track:yg,trackGroup:vg,tooltipText:i?`Hydration Failed`:`Recovered after Error`,properties:n}}},a?a.run(performance.measure.bind(performance,`Recovered`,e)):performance.measure(`Recovered`,e)}}function Jn(e,t,n,r){!gg||t<=e||(r?r.run(console.timeStamp.bind(console,`Errored`,e,t,yg,vg,`error`)):console.timeStamp(`Errored`,e,t,yg,vg,`error`))}function Yn(e,t,n,r){!gg||t<=e||(r?r.run(console.timeStamp.bind(console,n,e,t,yg,vg,`secondary-light`)):console.timeStamp(n,e,t,yg,vg,`secondary-light`))}function Xn(e,t,n,r,i){if(gg&&!(t<=e)){for(var a=[],o=0;o<n.length;o++){var s=n[o].value;a.push([`Error`,typeof s==`object`&&s&&typeof s.message==`string`?String(s.message):String(s)])}e={start:e,end:t,detail:{devtools:{color:`error`,track:yg,trackGroup:vg,tooltipText:r?`Remaining Effects Errored`:`Commit Errored`,properties:a}}},i?i.run(performance.measure.bind(performance,`Errored`,e)):performance.measure(`Errored`,e)}}function Zn(e,t,n){!gg||t<=e||(n?n.run(console.timeStamp.bind(console,`Animating`,e,t,yg,vg,`secondary-dark`)):console.timeStamp(`Animating`,e,t,yg,vg,`secondary-dark`))}function Qn(){for(var e=kg,t=Ag=kg=0;t<e;){var n=Og[t];Og[t++]=null;var r=Og[t];Og[t++]=null;var i=Og[t];Og[t++]=null;var a=Og[t];if(Og[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&nr(n,i,a)}}function $n(e,t,n,r){Og[kg++]=e,Og[kg++]=t,Og[kg++]=n,Og[kg++]=r,Ag|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function er(e,t,n,r){return $n(e,t,n,r),rr(e)}function tr(e,t){return $n(e,null,null,t),rr(e)}function nr(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&Eg||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-Ap(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function rr(e){if(Jx>qx)throw $x=Jx=0,eS=Yx=null,Error(`Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.`);$x>Qx&&($x=0,eS=null,console.error(`Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.`)),e.alternate===null&&e.flags&4098&&Il(e);for(var t=e,n=t.return;n!==null;)t.alternate===null&&t.flags&4098&&Il(e),t=n,n=t.return;return t.tag===3?t.stateNode:null}function ir(e){if(Mg===null)return e;var t=Mg(e);return t===void 0?e:t.current}function ar(e){if(Mg===null)return e;var t=Mg(e);return t===void 0?e!=null&&typeof e.render==`function`&&(t=ir(e.render),e.render!==t)?(t={$$typeof:Nf,render:t},e.displayName!==void 0&&(t.displayName=e.displayName),t):e:t.current}function or(e,t){if(Mg===null)return!1;var n=e.elementType;t=t.type;var r=!1,i=typeof t==`object`&&t?t.$$typeof:null;switch(e.tag){case 1:typeof t==`function`&&(r=!0);break;case 0:(typeof t==`function`||i===Lf)&&(r=!0);break;case 11:(i===Nf||i===Lf)&&(r=!0);break;case 14:case 15:(i===If||i===Lf)&&(r=!0);break;default:return!1}return!!(r&&(e=Mg(n),e!==void 0&&e===Mg(t)))}function sr(e){Mg!==null&&typeof WeakSet==`function`&&(Ng===null&&(Ng=new WeakSet),Ng.add(e))}function cr(e,t,n){do{var r=e,i=r.alternate,a=r.child,o=r.sibling,s=r.tag;r=r.type;var c=null;switch(s){case 0:case 15:case 1:c=r;break;case 11:c=r.render}if(Mg===null)throw Error(`Expected resolveFamily to be set during hot reload.`);var l=!1;if(r=!1,c!==null&&(c=Mg(c),c!==void 0&&(n.has(c)?r=!0:t.has(c)&&(s===1?r=!0:l=!0))),Ng!==null&&(Ng.has(e)||i!==null&&Ng.has(i))&&(r=!0),r&&(e._debugNeedsRemount=!0),(r||l)&&(i=tr(e,2),i!==null&&qc(i,e,2)),a===null||r||cr(a,t,n),o===null)break;e=o}while(1)}function lr(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null,this.actualDuration=-0,this.actualStartTime=-1.1,this.treeBaseDuration=this.selfBaseDuration=-0,this._debugTask=this._debugStack=this._debugOwner=this._debugInfo=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,zg||typeof Object.preventExtensions!=`function`||Object.preventExtensions(this)}function ur(e){return e=e.prototype,!(!e||!e.isReactComponent)}function dr(e,t){var n=e.alternate;switch(n===null?(n=p(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n._debugOwner=e._debugOwner,n._debugStack=e._debugStack,n._debugTask=e._debugTask,n._debugHookTypes=e._debugHookTypes,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null,n.actualDuration=-0,n.actualStartTime=-1.1),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext,_debugThenableState:t._debugThenableState},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n.selfBaseDuration=e.selfBaseDuration,n.treeBaseDuration=e.treeBaseDuration,n._debugInfo=e._debugInfo,n._debugNeedsRemount=e._debugNeedsRemount,n.tag){case 0:case 15:n.type=ir(e.type);break;case 1:n.type=ir(e.type);break;case 11:n.type=ar(e.type)}return n}function fr(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null,e.selfBaseDuration=0,e.treeBaseDuration=0):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext,_debugThenableState:t._debugThenableState},e.selfBaseDuration=n.selfBaseDuration,e.treeBaseDuration=n.treeBaseDuration),e}function pr(e,t,n,r,i,a){var o=0,s=e;if(typeof e==`function`)ur(e)&&(o=1),s=ir(s);else if(typeof e==`string`)o=F(),o=Rd(e,n,o)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(e){case Rf:return t=p(31,n,t,i),t.elementType=Rf,t.lanes=a,t;case Of:return hr(n.children,i,a,t);case kf:o=8,i|=Ig,i|=Lg;break;case Af:return e=n,r=i,typeof e.id!=`string`&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof e.id),t=p(12,e,t,r|Fg),t.elementType=Af,t.lanes=a,t.stateNode={effectDuration:0,passiveEffectDuration:0},t;case Pf:return t=p(13,n,t,i),t.elementType=Pf,t.lanes=a,t;case Ff:return t=p(19,n,t,i),t.elementType=Ff,t.lanes=a,t;default:if(typeof e==`object`&&e)switch(e.$$typeof){case Mf:o=10;break a;case jf:o=9;break a;case Nf:o=11,s=ar(s);break a;case If:o=14;break a;case Lf:o=16,s=null;break a}s=``,(e===void 0||typeof e==`object`&&e&&Object.keys(e).length===0)&&(s+=` You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.`),e===null?n=`null`:Hf(e)?n=`array`:e!==void 0&&e.$$typeof===Ef?(n=`<`+(O(e.type)||`Unknown`)+` />`,s=` Did you accidentally export a JSX literal instead of a component?`):n=typeof e,(o=r?k(r):null)&&(s+=`
84
+
85
+ Check the render method of \``+o+"`."),o=29,n=Error(`Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: `+(n+`.`+s)),s=null}return t=p(o,n,t,i),t.elementType=e,t.type=s,t.lanes=a,t._debugOwner=r,t}function mr(e,t,n){return t=pr(e.type,e.key,e.props,e._owner,t,n),t._debugOwner=e._owner,t._debugStack=e._debugStack,t._debugTask=e._debugTask,t}function hr(e,t,n,r){return e=p(7,e,r,t),e.lanes=n,e}function gr(e,t,n){return e=p(6,e,null,t),e.lanes=n,e}function _r(e){var t=p(18,null,null,q);return t.stateNode=e,t}function vr(e,t,n){return t=p(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function yr(e,t){if(typeof e==`object`&&e){var n=Vg.get(e);return n===void 0?(t={value:e,source:t,stack:le(t)},Vg.set(e,t),t):n}return{value:e,source:t,stack:le(t)}}function br(e,t){Er(),Hg[Ug++]=Gg,Hg[Ug++]=Wg,Wg=e,Gg=t}function xr(e,t,n){Er(),Kg[qg++]=Yg,Kg[qg++]=Xg,Kg[qg++]=Jg,Jg=e;var r=Yg;e=Xg;var i=32-Ap(r)-1;r&=~(1<<i),n+=1;var a=32-Ap(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Yg=1<<32-Ap(t)+i|n<<i|r,Xg=a+e}else Yg=1<<a|n<<i|r,Xg=e}function Sr(e){Er(),e.return!==null&&(br(e,1),xr(e,1,0))}function Cr(e){for(;e===Wg;)Wg=Hg[--Ug],Hg[Ug]=null,Gg=Hg[--Ug],Hg[Ug]=null;for(;e===Jg;)Jg=Kg[--qg],Kg[qg]=null,Xg=Kg[--qg],Kg[qg]=null,Yg=Kg[--qg],Kg[qg]=null}function wr(){return Er(),Jg===null?null:{id:Yg,overflow:Xg}}function Tr(e,t){Er(),Kg[qg++]=Yg,Kg[qg++]=Xg,Kg[qg++]=Jg,Yg=t.id,Xg=t.overflow,Jg=e}function Er(){$g||console.error(`Expected to be hydrating. This is a bug in React. Please file an issue.`)}function Dr(e,t){if(e.return===null){if(t_===null)t_={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t};else{if(t_.fiber!==e)throw Error(`Saw multiple hydration diff roots in a pass. This is a bug in React.`);t_.distanceFromLeaf>t&&(t_.distanceFromLeaf=t)}return t_}var n=Dr(e.return,t+1).children;return 0<n.length&&n[n.length-1].fiber===e?(n=n[n.length-1],n.distanceFromLeaf>t&&(n.distanceFromLeaf=t),n):(t={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t},n.push(t),t)}function Or(){$g&&console.error(`We should not be hydrating here. This is a bug in React. Please file a bug.`)}function kr(e,t){e_||(e=Dr(e,0),e.serverProps=null,t!==null&&(t=fd(t),e.serverTail.push(t)))}function Ar(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,n=``,r=t_;throw r!==null&&(t_=null,n=kt(r)),Ir(yr(Error(`Hydration failed because the server rendered `+(t?`text`:`HTML`)+` didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:
86
+
87
+ - A server/client branch \`if (typeof window !== 'undefined')\`.
88
+ - Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
89
+ - Date formatting in a user's locale which doesn't match the server.
90
+ - External changing data without sending a snapshot of it along with the HTML.
91
+ - Invalid HTML tag nesting.
92
+
93
+ It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
94
+
95
+ https://react.dev/link/hydration-mismatch`+n),e)),i_}function jr(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[Vp]=e,t[Hp]=r,uu(n,r),n){case`dialog`:tu(`cancel`,t),tu(`close`,t);break;case`iframe`:case`object`:case`embed`:tu(`load`,t);break;case`video`:case`audio`:for(n=0;n<mS.length;n++)tu(mS[n],t);break;case`source`:tu(`error`,t);break;case`img`:case`image`:case`link`:tu(`error`,t),tu(`load`,t);break;case`details`:tu(`toggle`,t);break;case`input`:We(`input`,r),tu(`invalid`,t),rt(t,r),at(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`option`:st(t,r);break;case`select`:We(`select`,r),tu(`invalid`,t),ut(t,r);break;case`textarea`:We(`textarea`,r),tu(`invalid`,t),dt(t,r),pt(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||gu(t.textContent,n)?(r.popover!=null&&(tu(`beforetoggle`,t),tu(`toggle`,t)),r.onScroll!=null&&tu(`scroll`,t),r.onScrollEnd!=null&&tu(`scrollend`,t),r.onClick!=null&&(t.onclick=Jt),t=!0):t=!1,t||Ar(e,!0)}function Mr(e){for(Zg=e.return;Zg;)switch(Zg.tag){case 5:case 31:case 13:r_=!1;return;case 27:case 3:r_=!0;return;default:Zg=Zg.return}}function Nr(e){if(e!==Zg)return!1;if(!$g)return Mr(e),$g=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!==`form`&&n!==`button`)||Iu(e.type,e.memoizedProps)),n=!n),n&&Qg){for(n=Qg;n;){var r=Dr(e,0),i=fd(n);r.serverTail.push(i),n=i.type===`Suspense`?md(n):dd(n.nextSibling)}Ar(e)}if(Mr(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(`Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.`);Qg=md(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(`Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.`);Qg=md(e)}else t===27?(t=Qg,qu(e.type)?(e=iC,iC=null,Qg=e):Qg=t):Qg=Zg?dd(e.stateNode.nextSibling):null;return!0}function Pr(){Qg=Zg=null,e_=$g=!1}function Fr(){var e=n_;return e!==null&&(vx===null?vx=e:vx.push.apply(vx,e),n_=null),e}function Ir(e){n_===null?n_=[e]:n_.push(e)}function Lr(){var e=t_;if(e!==null){t_=null;for(var t=kt(e);0<e.children.length;)e=e.children[0];R(e.fiber,function(){console.error(`A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used:
96
+
97
+ - A server/client branch \`if (typeof window !== 'undefined')\`.
98
+ - Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
99
+ - Date formatting in a user's locale which doesn't match the server.
100
+ - External changing data without sending a snapshot of it along with the HTML.
101
+ - Invalid HTML tag nesting.
102
+
103
+ It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
104
+
105
+ %s%s`,`https://react.dev/link/hydration-mismatch`,t)})}}function Rr(){l_=c_=null,u_=!1}function zr(e,t,n){N(a_,t._currentValue,e),t._currentValue=n,N(o_,t._currentRenderer,e),t._currentRenderer!==void 0&&t._currentRenderer!==null&&t._currentRenderer!==s_&&console.error(`Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported.`),t._currentRenderer=s_}function Br(e,t){e._currentValue=a_.current;var n=o_.current;M(o_,t),e._currentRenderer=n,M(a_,t)}function Vr(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}e!==n&&console.error(`Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.`)}function Hr(e,t,n,r){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var a=i.dependencies;if(a!==null){var o=i.child;a=a.firstContext;a:for(;a!==null;){var s=a;a=i;for(var c=0;c<t.length;c++)if(s.context===t[c]){a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),Vr(a.return,n,e),r||(o=null);break a}a=s.next}}else if(i.tag===18){if(o=i.return,o===null)throw Error(`We just came from a parent so we must have had a parent. This is a bug in React.`);o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Vr(o,n,e),o=null}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===e){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}}function Ur(e,t,n,r){e=null;for(var i=t,a=!1;i!==null;){if(!a){if(i.flags&524288)a=!0;else if(i.flags&262144)break}if(i.tag===10){var o=i.alternate;if(o===null)throw Error(`Should have a current fiber. This is a bug in React.`);if(o=o.memoizedProps,o!==null){var s=i.type;zh(i.pendingProps.value,o.value)||(e===null?e=[s]:e.push(s))}}else if(i===Zf.current){if(o=i.alternate,o===null)throw Error(`Should have a current fiber. This is a bug in React.`);o.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e===null?e=[SC]:e.push(SC))}i=i.return}e!==null&&Hr(t,e,n,r),t.flags|=262144}function Wr(e){for(e=e.firstContext;e!==null;){if(!zh(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Gr(e){c_=e,l_=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Kr(e){return u_&&console.error(`Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().`),Jr(c_,e)}function qr(e,t){return c_===null&&Gr(e),Jr(e,t)}function Jr(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},l_===null){if(e===null)throw Error(`Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().`);l_=t,e.dependencies={lanes:0,firstContext:t,_debugThenableState:null},e.flags|=524288}else l_=l_.next=t;return n}function Yr(){return{controller:new d_,data:new Map,refCount:0}}function Xr(e){e.controller.signal.aborted&&console.warn(`A cache instance was retained after it was already freed. This likely indicates a bug in React.`),e.refCount++}function Zr(e){e.refCount--,0>e.refCount&&console.warn(`A cache instance was released after it was already freed. This likely indicates a bug in React.`),e.refCount===0&&f_(p_,function(){e.controller.abort()})}function Qr(e,t,n){e&127?0>k_&&(k_=h_(),A_=g_(t),M_=t,n!=null&&(N_=A(n)),(Gb&(Ib|Lb))!==Fb&&(D_=!0,j_=__),e=zu(),t=Ru(),e!==I_||t!==F_?I_=-1.1:t!==null&&(j_=__),P_=e,F_=t):e&4194048&&0>B_&&(B_=h_(),H_=g_(t),U_=t,n!=null&&(W_=A(n)),0>z_)&&(e=zu(),t=Ru(),(e!==q_||t!==K_)&&(q_=-1.1),G_=e,K_=t)}function $r(e){if(0>k_){k_=h_(),A_=e._debugTask==null?null:e._debugTask,(Gb&(Ib|Lb))!==Fb&&(j_=__);var t=zu(),n=Ru();t!==I_||n!==F_?I_=-1.1:n!==null&&(j_=__),P_=t,F_=n}0>B_&&(B_=h_(),H_=e._debugTask==null?null:e._debugTask,0>z_)&&(e=zu(),t=Ru(),(e!==q_||t!==K_)&&(q_=-1.1),G_=e,K_=t)}function ei(){var e=w_;return w_=0,e}function ti(e){var t=w_;return w_=e,t}function ni(e){var t=w_;return w_+=e,t}function ri(){Y=J=-1.1}function ii(){var e=J;return J=-1.1,e}function ai(e){0<=e&&(J=e)}function oi(){var e=T_;return T_=-0,e}function si(e){0<=e&&(T_=e)}function ci(){var e=E_;return E_=null,e}function li(){var e=D_;return D_=!1,e}function ui(e){C_=h_(),0>e.actualStartTime&&(e.actualStartTime=C_)}function di(e){if(0<=C_){var t=h_()-C_;e.actualDuration+=t,e.selfBaseDuration=t,C_=-1}}function fi(e){if(0<=C_){var t=h_()-C_;e.actualDuration+=t,C_=-1}}function pi(){if(0<=C_){var e=h_(),t=e-C_;C_=-1,w_+=t,T_+=t,Y=e}}function mi(e){E_===null&&(E_=[]),E_.push(e),S_===null&&(S_=[]),S_.push(e)}function hi(){C_=h_(),0>J&&(J=C_)}function gi(e){for(var t=e.child;t;)e.actualDuration+=t.actualDuration,t=t.sibling}function _i(e,t){if(rv===null){var n=rv=[];iv=0,av=Yl(),ov={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return iv++,t.then(vi,vi),t}function vi(){if(--iv===0&&(-1<B_||(z_=-1.1),rv!==null)){ov!==null&&(ov.status=`fulfilled`);var e=rv;rv=null,av=0,ov=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function yi(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}function bi(){var e=cv.current;return e===null?Kb.pooledCache:e}function xi(e,t){t===null?N(cv,cv.current,e):N(cv,t.pool,e)}function Si(){var e=bi();return e===null?null:{parent:m_._currentValue,pool:e}}function Ci(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function wi(e){return e=e.status,e===`fulfilled`||e===`rejected`}function Ti(e,t,n){K.actQueue!==null&&(K.didUsePromise=!0);var r=e.thenables;if(n=r[n],n===void 0?r.push(t):n!==t&&(e.didWarnAboutUncachedPromise||(e.didWarnAboutUncachedPromise=!0,console.error(`A component was suspended by an uncached promise. Creating promises inside a Client Component or hook is not yet supported, except via a Suspense-compatible library or framework.`)),t.then(Jt,Jt),t=n),t._debugInfo===void 0){e=performance.now(),r=t.displayName;var i={name:typeof r==`string`?r:`Promise`,start:e,end:e,value:t};t._debugInfo=[{awaited:i}],t.status!==`fulfilled`&&t.status!==`rejected`&&(e=function(){i.end=performance.now()},t.then(e,e))}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Oi(e),e;default:if(typeof t.status==`string`)t.then(Jt,Jt);else{if(e=Kb,e!==null&&100<e.shellSuspendCounter)throw Error("An unknown Component is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.");e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Oi(e),e}throw Vv=t,Hv=!0,Lv}}function Ei(e){try{return Iv(e)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(Vv=e,Hv=!0,Lv):e}}function Di(){if(Vv===null)throw Error(`Expected a suspended thenable. This is a bug in React. Please file an issue.`);var e=Vv;return Vv=null,Hv=!1,e}function Oi(e){if(e===Lv||e===zv)throw Error("Hooks are not supported inside an async component. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.")}function ki(e){var t=Gv;return e!=null&&(Gv=t===null?e:t.concat(e)),t}function Ai(){var e=Gv;if(e!=null){for(var t=e.length-1;0<=t;t--)if(e[t].name!=null){var n=e[t].debugTask;if(n!=null)return n}}return null}function ji(e,t,n){for(var r=Object.keys(e.props),i=0;i<r.length;i++){var a=r[i];if(a!==`children`&&a!==`key`){t===null&&(t=mr(e,n.mode,0),t._debugInfo=Gv,t.return=n),R(t,function(e){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",e)},a);break}}}function U(e){var t=Wv;return Wv+=1,Uv===null&&(Uv=Ci()),Ti(Uv,e,t)}function Mi(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function Ni(e,t){throw t.$$typeof===Tf?Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
106
+ - Multiple copies of the "react" package is used.
107
+ - A library pre-bundled an old copy of "react" or "react/jsx-runtime".
108
+ - A compiler tries to "inline" JSX instead of using the runtime.`):(e=Object.prototype.toString.call(t),Error(`Objects are not valid as a React child (found: `+(e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)+`). If you meant to render a collection of children, use an array instead.`))}function Pi(e,t){var n=Ai();n===null?Ni(e,t):n.run(Ni.bind(null,e,t))}function Fi(e,t){var n=A(e)||`Component`;Yv[n]||(Yv[n]=!0,t=t.displayName||t.name||`Component`,e.tag===3?console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
109
+ root.render(%s)`,t,t,t):console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
110
+ <%s>{%s}</%s>`,t,t,n,t,n))}function Ii(e,t){var n=Ai();n===null?Fi(e,t):n.run(Fi.bind(null,e,t))}function Li(e,t){var n=A(e)||`Component`;Xv[n]||(Xv[n]=!0,t=String(t),e.tag===3?console.error(`Symbols are not valid as a React child.
111
+ root.render(%s)`,t):console.error(`Symbols are not valid as a React child.
112
+ <%s>%s</%s>`,n,t,n))}function Ri(e,t){var n=Ai();n===null?Li(e,t):n.run(Li.bind(null,e,t))}function zi(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function i(e,t){return e=dr(e,t),e.index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=67108866,n):(r=r.index,r<n?(t.flags|=67108866,n):r)):(t.flags|=1048576,n)}function o(t){return e&&t.alternate===null&&(t.flags|=67108866),t}function s(e,t,n,r){return t===null||t.tag!==6?(t=gr(n,e.mode,r),t.return=e,t._debugOwner=e,t._debugTask=e._debugTask,t._debugInfo=Gv,t):(t=i(t,n),t.return=e,t._debugInfo=Gv,t)}function c(e,t,n,r){var a=n.type;return a===Of?(t=u(e,t,n.props.children,r,n.key),ji(n,t,e),t):t!==null&&(t.elementType===a||or(t,n)||typeof a==`object`&&a&&a.$$typeof===Lf&&Ei(a)===t.type)?(t=i(t,n.props),Mi(t,n),t.return=e,t._debugOwner=n._owner,t._debugInfo=Gv,t):(t=mr(n,e.mode,r),Mi(t,n),t.return=e,t._debugInfo=Gv,t)}function l(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=vr(n,e.mode,r),t.return=e,t._debugInfo=Gv,t):(t=i(t,n.children||[]),t.return=e,t._debugInfo=Gv,t)}function u(e,t,n,r,a){return t===null||t.tag!==7?(t=hr(n,e.mode,r,a),t.return=e,t._debugOwner=e,t._debugTask=e._debugTask,t._debugInfo=Gv,t):(t=i(t,n),t.return=e,t._debugInfo=Gv,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=gr(``+t,e.mode,n),t.return=e,t._debugOwner=e,t._debugTask=e._debugTask,t._debugInfo=Gv,t;if(typeof t==`object`&&t){switch(t.$$typeof){case Ef:return n=mr(t,e.mode,n),Mi(n,t),n.return=e,e=ki(t._debugInfo),n._debugInfo=Gv,Gv=e,n;case Df:return t=vr(t,e.mode,n),t.return=e,t._debugInfo=Gv,t;case Lf:var r=ki(t._debugInfo);return t=Ei(t),e=f(e,t,n),Gv=r,e}if(Hf(t)||D(t))return n=hr(t,e.mode,n,null),n.return=e,n._debugOwner=e,n._debugTask=e._debugTask,e=ki(t._debugInfo),n._debugInfo=Gv,Gv=e,n;if(typeof t.then==`function`)return r=ki(t._debugInfo),e=f(e,U(t),n),Gv=r,e;if(t.$$typeof===Mf)return f(e,qr(e,t),n);Pi(e,t)}return typeof t==`function`&&Ii(e,t),typeof t==`symbol`&&Ri(e,t),null}function m(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?s(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case Ef:return n.key===i?(i=ki(n._debugInfo),e=c(e,t,n,r),Gv=i,e):null;case Df:return n.key===i?l(e,t,n,r):null;case Lf:return i=ki(n._debugInfo),n=Ei(n),e=m(e,t,n,r),Gv=i,e}if(Hf(n)||D(n))return i===null?(i=ki(n._debugInfo),e=u(e,t,n,r,null),Gv=i,e):null;if(typeof n.then==`function`)return i=ki(n._debugInfo),e=m(e,t,U(n),r),Gv=i,e;if(n.$$typeof===Mf)return m(e,t,qr(e,n),r);Pi(e,n)}return typeof n==`function`&&Ii(e,n),typeof n==`symbol`&&Ri(e,n),null}function h(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,s(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case Ef:return n=e.get(r.key===null?n:r.key)||null,e=ki(r._debugInfo),t=c(t,n,r,i),Gv=e,t;case Df:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case Lf:var a=ki(r._debugInfo);return r=Ei(r),t=h(e,t,n,r,i),Gv=a,t}if(Hf(r)||D(r))return n=e.get(n)||null,e=ki(r._debugInfo),t=u(t,n,r,i,null),Gv=e,t;if(typeof r.then==`function`)return a=ki(r._debugInfo),t=h(e,t,n,U(r),i),Gv=a,t;if(r.$$typeof===Mf)return h(e,t,n,qr(t,r),i);Pi(t,r)}return typeof r==`function`&&Ii(t,r),typeof r==`symbol`&&Ri(t,r),null}function g(e,t,n,r){if(typeof n!=`object`||!n)return r;switch(n.$$typeof){case Ef:case Df:d(e,t,n);var i=n.key;if(typeof i!=`string`)break;if(r===null){r=new Set,r.add(i);break}if(!r.has(i)){r.add(i);break}R(t,function(){console.error("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",i)});break;case Lf:n=Ei(n),g(e,t,n,r)}return r}function _(i,o,s,c){for(var l=null,u=null,d=null,p=o,_=o=0,v=null;p!==null&&_<s.length;_++){p.index>_?(v=p,p=null):v=p.sibling;var y=m(i,p,s[_],c);if(y===null){p===null&&(p=v);break}l=g(i,y,s[_],l),e&&p&&y.alternate===null&&t(i,p),o=a(y,o,_),d===null?u=y:d.sibling=y,d=y,p=v}if(_===s.length)return n(i,p),$g&&br(i,_),u;if(p===null){for(;_<s.length;_++)p=f(i,s[_],c),p!==null&&(l=g(i,p,s[_],l),o=a(p,o,_),d===null?u=p:d.sibling=p,d=p);return $g&&br(i,_),u}for(p=r(p);_<s.length;_++)v=h(p,i,_,s[_],c),v!==null&&(l=g(i,v,s[_],l),e&&v.alternate!==null&&p.delete(v.key===null?_:v.key),o=a(v,o,_),d===null?u=v:d.sibling=v,d=v);return e&&p.forEach(function(e){return t(i,e)}),$g&&br(i,_),u}function v(i,o,s,c){if(s==null)throw Error(`An iterable object provided no iterator.`);for(var l=null,u=null,d=o,p=o=0,_=null,v=null,y=s.next();d!==null&&!y.done;p++,y=s.next()){d.index>p?(_=d,d=null):_=d.sibling;var b=m(i,d,y.value,c);if(b===null){d===null&&(d=_);break}v=g(i,b,y.value,v),e&&d&&b.alternate===null&&t(i,d),o=a(b,o,p),u===null?l=b:u.sibling=b,u=b,d=_}if(y.done)return n(i,d),$g&&br(i,p),l;if(d===null){for(;!y.done;p++,y=s.next())d=f(i,y.value,c),d!==null&&(v=g(i,d,y.value,v),o=a(d,o,p),u===null?l=d:u.sibling=d,u=d);return $g&&br(i,p),l}for(d=r(d);!y.done;p++,y=s.next())_=h(d,i,p,y.value,c),_!==null&&(v=g(i,_,y.value,v),e&&_.alternate!==null&&d.delete(_.key===null?p:_.key),o=a(_,o,p),u===null?l=_:u.sibling=_,u=_);return e&&d.forEach(function(e){return t(i,e)}),$g&&br(i,p),l}function y(e,r,a,s){if(typeof a==`object`&&a&&a.type===Of&&a.key===null&&(ji(a,null,e),a=a.props.children),typeof a==`object`&&a){switch(a.$$typeof){case Ef:var c=ki(a._debugInfo);a:{for(var l=a.key;r!==null;){if(r.key===l){if(l=a.type,l===Of){if(r.tag===7){n(e,r.sibling),s=i(r,a.props.children),s.return=e,s._debugOwner=a._owner,s._debugInfo=Gv,ji(a,s,e),e=s;break a}}else if(r.elementType===l||or(r,a)||typeof l==`object`&&l&&l.$$typeof===Lf&&Ei(l)===r.type){n(e,r.sibling),s=i(r,a.props),Mi(s,a),s.return=e,s._debugOwner=a._owner,s._debugInfo=Gv,e=s;break a}n(e,r);break}else t(e,r);r=r.sibling}a.type===Of?(s=hr(a.props.children,e.mode,s,a.key),s.return=e,s._debugOwner=e,s._debugTask=e._debugTask,s._debugInfo=Gv,ji(a,s,e),e=s):(s=mr(a,e.mode,s),Mi(s,a),s.return=e,s._debugInfo=Gv,e=s)}return e=o(e),Gv=c,e;case Df:a:{for(c=a,a=c.key;r!==null;){if(r.key===a)if(r.tag===4&&r.stateNode.containerInfo===c.containerInfo&&r.stateNode.implementation===c.implementation){n(e,r.sibling),s=i(r,c.children||[]),s.return=e,e=s;break a}else{n(e,r);break}else t(e,r);r=r.sibling}s=vr(c,e.mode,s),s.return=e,e=s}return o(e);case Lf:return c=ki(a._debugInfo),a=Ei(a),e=y(e,r,a,s),Gv=c,e}if(Hf(a))return c=ki(a._debugInfo),e=_(e,r,a,s),Gv=c,e;if(D(a)){if(c=ki(a._debugInfo),l=D(a),typeof l!=`function`)throw Error(`An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.`);var u=l.call(a);return u===a?(e.tag!==0||Object.prototype.toString.call(e.type)!==`[object GeneratorFunction]`||Object.prototype.toString.call(u)!==`[object Generator]`)&&(qv||console.error("Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."),qv=!0):a.entries!==l||Kv||(console.error(`Using Maps as children is not supported. Use an array of keyed ReactElements instead.`),Kv=!0),e=v(e,r,u,s),Gv=c,e}if(typeof a.then==`function`)return c=ki(a._debugInfo),e=y(e,r,U(a),s),Gv=c,e;if(a.$$typeof===Mf)return y(e,r,qr(e,a),s);Pi(e,a)}return typeof a==`string`&&a!==``||typeof a==`number`||typeof a==`bigint`?(c=``+a,r!==null&&r.tag===6?(n(e,r.sibling),s=i(r,c),s.return=e,e=s):(n(e,r),s=gr(c,e.mode,s),s.return=e,s._debugOwner=e,s._debugTask=e._debugTask,s._debugInfo=Gv,e=s),o(e)):(typeof a==`function`&&Ii(e,a),typeof a==`symbol`&&Ri(e,a),n(e,r))}return function(e,t,n,r){var i=Gv;Gv=null;try{Wv=0;var a=y(e,t,n,r);return Uv=null,a}catch(t){if(t===Lv||t===zv)throw t;var o=p(29,t,null,e.mode);o.lanes=r,o.return=e;var s=o._debugInfo=Gv;if(o._debugOwner=e._debugOwner,o._debugTask=e._debugTask,s!=null){for(var c=s.length-1;0<=c;c--)if(typeof s[c].stack==`string`){o._debugOwner=s[c],o._debugTask=s[c].debugTask;break}}return o}finally{Gv=i}}}function Bi(e,t){var n=Hf(e);return e=!n&&typeof D(e)==`function`,n||e?(n=n?`array`:`iterable`,console.error(`A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>`,n,t,n),!1):!0}function Vi(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Hi(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Ui(e){return{lane:e,tag:$v,payload:null,callback:null,next:null}}function Wi(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ay===r&&!iy){var i=A(e);console.error(`An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback.
113
+
114
+ Please update the following component: %s`,i),iy=!0}return(Gb&Ib)===Fb?($n(e,r,t,n),rr(e)):(i=r.pending,i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=rr(e),nr(e,null,n),t)}function Gi(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Oe(e,n)}}function Ki(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function qi(){if(oy){var e=ov;if(e!==null)throw e}}function Ji(e,t,n,r){oy=!1;var i=e.updateQueue;ry=!1,ay=i.shared;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?(Jb&f)===f:(r&f)===f){f!==0&&f===av&&(oy=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{f=e;var m=s,h=t,g=n;switch(m.tag){case ey:if(m=m.payload,typeof m==`function`){u_=!0;var _=m.call(g,d,h);if(f.mode&Ig){V(!0);try{m.call(g,d,h)}finally{V(!1)}}u_=!1,d=_;break a}d=m;break a;case ny:f.flags=f.flags&-65537|128;case $v:if(_=m.payload,typeof _==`function`){if(u_=!0,m=_.call(g,d,h),f.mode&Ig){V(!0);try{_.call(g,d,h)}finally{V(!1)}}u_=!1}else m=_;if(m==null)break a;d=wf({},d,m);break a;case ty:ry=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),fx|=o,e.lanes=o,e.memoizedState=d}ay=null}function Yi(e,t){if(typeof e!=`function`)throw Error(`Invalid argument passed as callback. Expected a function. Instead received: `+e);e.call(t)}function Xi(e,t){var n=e.shared.hiddenCallbacks;if(n!==null)for(e.shared.hiddenCallbacks=null,e=0;e<n.length;e++)Yi(n[e],t)}function Zi(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Yi(n[e],t)}function Qi(e,t){var n=ux;N(cy,n,e),N(sy,t,e),ux=n|t.baseLanes}function $i(e){N(cy,ux,e),N(sy,sy.current,e)}function ea(e){ux=cy.current,M(sy,e),M(cy,e)}function ta(e){var t=e.alternate;N(py,py.current&dy,e),N(ly,e,e),uy===null&&(t===null||sy.current!==null||t.memoizedState!==null)&&(uy=e)}function na(e){N(py,py.current,e),N(ly,e,e),uy===null&&(uy=e)}function ra(e){e.tag===22?(N(py,py.current,e),N(ly,e,e),uy===null&&(uy=e)):ia(e)}function ia(e){N(py,py.current,e),N(ly,ly.current,e)}function aa(e){M(ly,e),uy===e&&(uy=null),M(py,e)}function oa(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||cd(n)||ld(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder===`forwards`||t.memoizedProps.revealOrder===`backwards`||t.memoizedProps.revealOrder===`unstable_legacy-backwards`||t.memoizedProps.revealOrder===`together`)){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function sa(){var e=X;Iy===null?Iy=[e]:Iy.push(e)}function W(){var e=X;if(Iy!==null&&(Ly++,Iy[Ly]!==e)){var t=A(Ty);if(!by.has(t)&&(by.add(t),Iy!==null)){for(var n=``,r=0;r<=Ly;r++){var i=Iy[r],a=r===Ly?e:i;for(i=r+1+`. `+i;30>i.length;)i+=` `;i+=a+`
115
+ `,n+=i}console.error(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://react.dev/link/rules-of-hooks
116
+
117
+ Previous render Next render
118
+ ------------------------------------------------------
119
+ %s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
120
+ `,t,n)}}}function ca(e){e==null||Hf(e)||console.error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",X,typeof e)}function la(){var e=A(Ty);Cy.has(e)||(Cy.add(e),console.error(`ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.`,e))}function ua(){throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
121
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
122
+ 2. You might be breaking the Rules of Hooks
123
+ 3. You might have more than one copy of React in the same app
124
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function da(e,t){if(Ry)return!1;if(t===null)return console.error(`%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.`,X),!1;e.length!==t.length&&console.error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
125
+
126
+ Previous: %s
127
+ Incoming: %s`,X,`[`+t.join(`, `)+`]`,`[`+e.join(`, `)+`]`);for(var n=0;n<t.length&&n<e.length;n++)if(!zh(e[n],t[n]))return!1;return!0}function fa(e,t,n,r,i,a){wy=a,Ty=t,Iy=e===null?null:e._debugHookTypes,Ly=-1,Ry=e!==null&&e.type!==t.type,(Object.prototype.toString.call(n)===`[object AsyncFunction]`||Object.prototype.toString.call(n)===`[object AsyncGeneratorFunction]`)&&(a=A(Ty),Sy.has(a)||(Sy.add(a),console.error("%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.",a===null?`An unknown Component`:`<`+a+`>`))),t.memoizedState=null,t.updateQueue=null,t.lanes=0,K.H=e!==null&&e.memoizedState!==null?Hy:Iy===null?By:Vy,Ay=a=(t.mode&Ig)!==q;var o=bv(n,r,i);if(Ay=!1,ky&&(o=ma(t,n,r,i)),a){V(!0);try{o=ma(t,n,r,i)}finally{V(!1)}}return pa(e,t),o}function pa(e,t){t._debugHookTypes=Iy,t.dependencies===null?Ny!==null&&(t.dependencies={lanes:0,firstContext:null,_debugThenableState:Ny}):t.dependencies._debugThenableState=Ny,K.H=zy;var n=Ey!==null&&Ey.next!==null;if(wy=0,Iy=X=Dy=Ey=Ty=null,Ly=-1,e!==null&&(e.flags&65011712)!=(t.flags&65011712)&&console.error(`Internal React error: Expected static flag was missing. Please notify the React team.`),Oy=!1,My=0,Ny=null,n)throw Error(`Rendered fewer hooks than expected. This may be caused by an accidental early return statement.`);e===null||cb||(e=e.dependencies,e!==null&&Wr(e)&&(cb=!0)),Hv?(Hv=!1,e=!0):e=!1,e&&(t=A(t)||`Unknown`,xy.has(t)||Sy.has(t)||(xy.add(t),console.error("`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary.")))}function ma(e,t,n,r){Ty=e;var i=0;do{if(ky&&(Ny=null),My=0,ky=!1,i>=Fy)throw Error(`Too many re-renders. React limits the number of renders to prevent an infinite loop.`);if(i+=1,Ry=!1,Dy=Ey=null,e.updateQueue!=null){var a=e.updateQueue;a.lastEffect=null,a.events=null,a.stores=null,a.memoCache!=null&&(a.memoCache.index=0)}Ly=-1,K.H=Uy,a=bv(t,n,r)}while(ky);return a}function ha(){var e=K.H,t=e.useState()[0];return t=typeof t.then==`function`?Sa(t):t,e=e.useState()[0],(Ey===null?null:Ey.memoizedState)!==e&&(Ty.flags|=1024),t}function ga(){var e=jy!==0;return jy=0,e}function _a(e,t,n){t.updateQueue=e.updateQueue,t.flags=(t.mode&Lg)===q?t.flags&-2053:t.flags&-402655237,e.lanes&=~n}function va(e){if(Oy){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Oy=!1}wy=0,Iy=Dy=Ey=Ty=null,Ly=-1,X=null,ky=!1,My=jy=0,Ny=null}function ya(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Dy===null?Ty.memoizedState=Dy=e:Dy=Dy.next=e,Dy}function ba(){if(Ey===null){var e=Ty.alternate;e=e===null?null:e.memoizedState}else e=Ey.next;var t=Dy===null?Ty.memoizedState:Dy.next;if(t!==null)Dy=t,Ey=e;else{if(e===null)throw Ty.alternate===null?Error(`Update hook called on initial render. This is likely a bug in React. Please file an issue.`):Error(`Rendered more hooks than during the previous render.`);Ey=e,e={memoizedState:Ey.memoizedState,baseState:Ey.baseState,baseQueue:Ey.baseQueue,queue:Ey.queue,next:null},Dy===null?Ty.memoizedState=Dy=e:Dy=Dy.next=e}return Dy}function xa(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Sa(e){var t=My;return My+=1,Ny===null&&(Ny=Ci()),e=Ti(Ny,e,t),t=Ty,(Dy===null?t.memoizedState:Dy.next)===null&&(t=t.alternate,K.H=t!==null&&t.memoizedState!==null?Hy:By),e}function Ca(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return Sa(e);if(e.$$typeof===Mf)return Kr(e)}throw Error(`An unsupported type was passed to use(): `+String(e))}function wa(e){var t=null,n=Ty.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=Ty.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=xa(),Ty.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0||Ry)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=zf;else n.length!==e&&console.error(`Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.`,n.length,e);return t.index++,n}function Ta(e,t){return typeof t==`function`?t(e):t}function Ea(e,t,n){var r=ya();if(n!==void 0){var i=n(t);if(Ay){V(!0);try{n(t)}finally{V(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=G.bind(null,Ty,e),[r.memoizedState,e]}function Da(e){return Oa(ba(),Ey,e)}function Oa(e,t,n){var r=e.queue;if(r===null)throw Error(`Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)`);r.lastRenderedReducer=n;var i=e.baseQueue,a=r.pending;if(a!==null){if(i!==null){var o=i.next;i.next=a.next,a.next=o}t.baseQueue!==i&&console.error(`Internal error: Expected work-in-progress queue to be a clone. This is a bug in React.`),t.baseQueue=i=a,r.pending=null}if(a=e.baseState,i===null)e.memoizedState=a;else{t=i.next;var s=o=null,c=null,l=t,u=!1;do{var d=l.lane&-536870913;if(d===l.lane?(wy&d)===d:(Jb&d)===d){var f=l.revertLane;if(f===0)c!==null&&(c=c.next={lane:0,revertLane:0,gesture:null,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null}),d===av&&(u=!0);else if((wy&f)===f){l=l.next,f===av&&(u=!0);continue}else d={lane:0,revertLane:l.revertLane,gesture:null,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null},c===null?(s=c=d,o=a):c=c.next=d,Ty.lanes|=f,fx|=f;d=l.action,Ay&&n(a,d),a=l.hasEagerState?l.eagerState:n(a,d)}else f={lane:d,revertLane:l.revertLane,gesture:l.gesture,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null},c===null?(s=c=f,o=a):c=c.next=f,Ty.lanes|=d,fx|=d;l=l.next}while(l!==null&&l!==t);if(c===null?o=a:c.next=s,!zh(a,e.memoizedState)&&(cb=!0,u&&(n=ov,n!==null)))throw n;e.memoizedState=a,e.baseState=o,e.baseQueue=c,r.lastRenderedState=a}return i===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function ka(e){var t=ba(),n=t.queue;if(n===null)throw Error(`Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)`);n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(i!==null){n.pending=null;var o=i=i.next;do a=e(a,o.action),o=o.next;while(o!==i);zh(a,t.memoizedState)||(cb=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function Aa(e,t,n){var r=Ty,i=ya();if($g){if(n===void 0)throw Error(`Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.`);var a=n();yy||a===n()||(console.error(`The result of getServerSnapshot should be cached to avoid an infinite loop`),yy=!0)}else{if(a=t(),yy||(n=t(),zh(a,n)||(console.error(`The result of getSnapshot should be cached to avoid an infinite loop`),yy=!0)),Kb===null)throw Error(`Expected a work-in-progress root. This is a bug in React. Please file an issue.`);Jb&127||Ma(r,t,a)}return i.memoizedState=a,n={value:a,getSnapshot:t},i.queue=n,ao(Pa.bind(null,r,n,e),[e]),r.flags|=2048,to(hy|vy,{destroy:void 0},Na.bind(null,r,n,a,t),null),a}function ja(e,t,n){var r=Ty,i=ba(),a=$g;if(a){if(n===void 0)throw Error(`Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.`);n=n()}else if(n=t(),!yy){var o=t();zh(n,o)||(console.error(`The result of getSnapshot should be cached to avoid an infinite loop`),yy=!0)}if((o=!zh((Ey||i).memoizedState,n))&&(i.memoizedState=n,cb=!0),i=i.queue,io(2048,vy,Pa.bind(null,r,i,e),[e]),i.getSnapshot!==t||o||Dy!==null&&Dy.memoizedState.tag&hy){if(r.flags|=2048,to(hy|vy,{destroy:void 0},Na.bind(null,r,i,n,t),null),Kb===null)throw Error(`Expected a work-in-progress root. This is a bug in React. Please file an issue.`);a||wy&127||Ma(r,t,n)}return n}function Ma(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ty.updateQueue,t===null?(t=xa(),Ty.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Na(e,t,n,r){t.value=n,t.getSnapshot=r,Fa(t)&&Ia(e)}function Pa(e,t,n){return n(function(){Fa(t)&&(Qr(2,`updateSyncExternalStore()`,e),Ia(e))})}function Fa(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!zh(e,n)}catch{return!0}}function Ia(e){var t=tr(e,2);t!==null&&qc(t,e,2)}function La(e){var t=ya();if(typeof e==`function`){var n=e;if(e=n(),Ay){V(!0);try{n()}finally{V(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ta,lastRenderedState:e},t}function Ra(e){e=La(e);var t=e.queue,n=Fo.bind(null,Ty,t);return t.dispatch=n,[e.memoizedState,n]}function za(e){var t=ya();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Lo.bind(null,Ty,!0,n),n.dispatch=t,[e,t]}function Ba(e,t){return Va(ba(),Ey,e,t)}function Va(e,t,n,r){return e.baseState=n,Oa(e,Ey,typeof r==`function`?r:Ta)}function Ha(e,t){var n=ba();return Ey===null?(n.baseState=e,[e,n.queue.dispatch]):Va(n,Ey,e,t)}function Ua(e,t,n,r,i){if(Ro(e))throw Error(`Cannot update form state while rendering.`);if(e=t.action,e!==null){var a={payload:i,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){a.listeners.push(e)}};K.T===null?a.isTransition=!1:n(!0),r(a),n=t.pending,n===null?(a.next=t.pending=a,Wa(t,a)):(a.next=n.next,t.pending=n.next=a)}}function Wa(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=K.T,o={};o._updatedFibers=new Set,K.T=o;try{var s=n(i,r),c=K.S;c!==null&&c(o,s),Ga(e,t,s)}catch(n){qa(e,t,n)}finally{a!==null&&o.types!==null&&(a.types!==null&&a.types!==o.types&&console.error(`We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React.`),a.types=o.types),K.T=a,a===null&&o._updatedFibers&&(e=o._updatedFibers.size,o._updatedFibers.clear(),10<e&&console.warn(`Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.`))}}else try{o=n(i,r),Ga(e,t,o)}catch(n){qa(e,t,n)}}function Ga(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?(K.asyncTransitions++,n.then(Co,Co),n.then(function(n){Ka(e,t,n)},function(n){return qa(e,t,n)}),t.isTransition||console.error("An async function with useActionState was called outside of a transition. This is likely not what you intended (for example, isPending will not update correctly). Either call the returned function inside startTransition, or pass it to an `action` or `formAction` prop.")):Ka(e,t,n)}function Ka(e,t,n){t.status=`fulfilled`,t.value=n,Ja(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Wa(e,n)))}function qa(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,Ja(t),t=t.next;while(t!==r)}e.action=null}function Ja(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Ya(e,t){return t}function Xa(e,t){if($g){var n=Kb.formState;if(n!==null){a:{var r=Ty;if($g){if(Qg){b:{for(var i=Qg,a=r_;i.nodeType!==8;){if(!a){i=null;break b}if(i=dd(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===VS||a===HS?i:null}if(i){Qg=dd(i.nextSibling),r=i.data===VS;break a}}Ar(r)}r=!1}r&&(t=n[0])}}return n=ya(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ya,lastRenderedState:t},n.queue=r,n=Fo.bind(null,Ty,r),r.dispatch=n,r=La(!1),a=Lo.bind(null,Ty,!1,r.queue),r=ya(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Ua.bind(null,Ty,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function Za(e){return Qa(ba(),Ey,e)}function Qa(e,t,n){if(t=Oa(e,t,Ya)[0],e=Da(Ta)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=Sa(t)}catch(e){throw e===Lv?zv:e}else r=t;t=ba();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(Ty.flags|=2048,to(hy|vy,{destroy:void 0},$a.bind(null,i,n),null)),[r,a,e]}function $a(e,t){e.action=t}function eo(e){var t=ba(),n=Ey;if(n!==null)return Qa(t,n,e);ba(),t=t.memoizedState,n=ba();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function to(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=Ty.updateQueue,t===null&&(t=xa(),Ty.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function no(e){var t=ya();return e={current:e},t.memoizedState=e}function ro(e,t,n,r){var i=ya();Ty.flags|=e,i.memoizedState=to(hy|t,{destroy:void 0},n,r===void 0?null:r)}function io(e,t,n,r){var i=ba();r=r===void 0?null:r;var a=i.memoizedState.inst;Ey!==null&&r!==null&&da(r,Ey.memoizedState.deps)?i.memoizedState=to(t,a,n,r):(Ty.flags|=e,i.memoizedState=to(hy|t,a,n,r))}function ao(e,t){(Ty.mode&Lg)===q?ro(8390656,vy,e,t):ro(276826112,vy,e,t)}function oo(e){Ty.flags|=4;var t=Ty.updateQueue;if(t===null)t=xa(),Ty.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function so(e){var t=ya(),n={impl:e};return t.memoizedState=n,function(){if((Gb&Ib)!==Fb)throw Error(`A function wrapped in useEffectEvent can't be called during rendering.`);return n.impl.apply(void 0,arguments)}}function co(e){var t=ba().memoizedState;return oo({ref:t,nextImpl:e}),function(){if((Gb&Ib)!==Fb)throw Error(`A function wrapped in useEffectEvent can't be called during rendering.`);return t.impl.apply(void 0,arguments)}}function lo(e,t){var n=4194308;return(Ty.mode&Lg)!==q&&(n|=134217728),ro(n,_y,e,t)}function uo(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return t.hasOwnProperty(`current`)||console.error(`Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.`,`an object with keys {`+Object.keys(t).join(`, `)+`}`),e=e(),t.current=e,function(){t.current=null}}function fo(e,t,n){typeof t!=`function`&&console.error(`Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.`,t===null?`null`:typeof t),n=n==null?null:n.concat([e]);var r=4194308;(Ty.mode&Lg)!==q&&(r|=134217728),ro(r,_y,uo.bind(null,t,e),n)}function po(e,t,n){typeof t!=`function`&&console.error(`Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.`,t===null?`null`:typeof t),n=n==null?null:n.concat([e]),io(4,_y,uo.bind(null,t,e),n)}function mo(e,t){return ya().memoizedState=[e,t===void 0?null:t],e}function ho(e,t){var n=ba();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&da(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function go(e,t){var n=ya();t=t===void 0?null:t;var r=e();if(Ay){V(!0);try{e()}finally{V(!1)}}return n.memoizedState=[r,t],r}function _o(e,t){var n=ba();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&da(t,r[1]))return r[0];if(r=e(),Ay){V(!0);try{e()}finally{V(!1)}}return n.memoizedState=[r,t],r}function vo(e,t){return xo(ya(),e,t)}function yo(e,t){return So(ba(),Ey.memoizedState,e,t)}function bo(e,t){var n=ba();return Ey===null?xo(n,e,t):So(n,Ey.memoizedState,e,t)}function xo(e,t,n){return n===void 0||wy&1073741824&&!(Jb&261930)?e.memoizedState=t:(e.memoizedState=n,e=Kc(),Ty.lanes|=e,fx|=e,n)}function So(e,t,n,r){return zh(n,t)?n:sy.current===null?!(wy&42)||wy&1073741824&&!(Jb&261930)?(cb=!0,e.memoizedState=n):(e=Kc(),Ty.lanes|=e,fx|=e,t):(e=xo(e,n,r),zh(e,t)||(cb=!0),e)}function Co(){K.asyncTransitions--}function wo(e,t,n,r,i){var a=Uf.p;Uf.p=a!==0&&a<Lp?a:Lp;var o=K.T,s={};s._updatedFibers=new Set,K.T=s,Lo(e,!1,t,n);try{var c=i(),l=K.S;if(l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`){K.asyncTransitions++,c.then(Co,Co);var u=yi(c,r);Io(e,t,u,Gc(e))}else Io(e,t,r,Gc(e))}catch(n){Io(e,t,{then:function(){},status:`rejected`,reason:n},Gc(e))}finally{Uf.p=a,o!==null&&s.types!==null&&(o.types!==null&&o.types!==s.types&&console.error(`We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React.`),o.types=s.types),K.T=o,o===null&&s._updatedFibers&&(e=s._updatedFibers.size,s._updatedFibers.clear(),10<e&&console.warn(`Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.`))}}function To(e,t,n,r){if(e.tag!==5)throw Error(`Expected the form instance to be a HostComponent. This is a bug in React.`);var i=Eo(e).queue;$r(e),wo(e,i,t,xC,n===null?u:function(){return Do(e),n(r)})}function Eo(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:xC,baseState:xC,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ta,lastRenderedState:xC},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ta,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Do(e){K.T===null&&console.error(`requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.`);var t=Eo(e);t.next===null&&(t=e.alternate.memoizedState),Io(e,t.next.queue,{},Gc(e))}function Oo(){var e=La(!1);return e=wo.bind(null,Ty,e.queue,!0,!1),ya().memoizedState=e,[!1,e]}function ko(){var e=Da(Ta)[0],t=ba().memoizedState;return[typeof e==`boolean`?e:Sa(e),t]}function Ao(){var e=ka(Ta)[0],t=ba().memoizedState;return[typeof e==`boolean`?e:Sa(e),t]}function jo(){return Kr(SC)}function Mo(){var e=ya(),t=Kb.identifierPrefix;if($g){var n=Xg,r=Yg;n=(r&~(1<<32-Ap(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=jy++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=Py++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t}function No(){return ya().memoizedState=Po.bind(null,Ty)}function Po(e,t){for(var n=e.return;n!==null;){switch(n.tag){case 24:case 3:var r=Gc(n),i=Ui(r),a=Wi(n,i,r);a!==null&&(Qr(r,`refresh()`,e),qc(a,n,r),Gi(a,n,r)),e=Yr(),t!=null&&a!==null&&console.error(`The seed argument is not enabled outside experimental channels.`),i.payload={cache:e};return}n=n.return}}function G(e,t,n){var r=arguments;typeof r[3]==`function`&&console.error(`State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().`),r=Gc(e);var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};Ro(e)?zo(t,i):(i=er(e,t,i,r),i!==null&&(Qr(r,`dispatch()`,e),qc(i,e,r),Bo(i,t,r)))}function Fo(e,t,n){var r=arguments;typeof r[3]==`function`&&console.error(`State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().`),r=Gc(e),Io(e,t,n,r)&&Qr(r,`setState()`,e)}function Io(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ro(e))zo(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null)){var o=K.H;K.H=Gy;try{var s=t.lastRenderedState,c=a(s,n);if(i.hasEagerState=!0,i.eagerState=c,zh(c,s))return $n(e,t,i,0),Kb===null&&Qn(),!1}catch{}finally{K.H=o}}if(n=er(e,t,i,r),n!==null)return qc(n,e,r),Bo(n,t,r),!0}return!1}function Lo(e,t,n,r){if(K.T===null&&av===0&&console.error(`An optimistic state update occurred outside a transition or action. To fix, move the update to an action, or wrap with startTransition.`),r={lane:2,revertLane:Yl(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Ro(e)){if(t)throw Error(`Cannot update optimistic state while rendering.`);console.error(`Cannot call startTransition while rendering.`)}else t=er(e,n,r,2),t!==null&&(Qr(2,`setOptimistic()`,e),qc(t,e,2))}function Ro(e){var t=e.alternate;return e===Ty||t!==null&&t===Ty}function zo(e,t){ky=Oy=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Bo(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Oe(e,n)}}function Vo(e){if(e!==null&&typeof e!=`function`){var t=String(e);rb.has(t)||(rb.add(t),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",e))}}function Ho(e,t,n,r){var i=e.memoizedState,a=n(r,i);if(e.mode&Ig){V(!0);try{a=n(r,i)}finally{V(!1)}}a===void 0&&(t=O(t)||`Component`,$y.has(t)||($y.add(t),console.error(`%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.`,t))),i=a==null?i:wf({},i,a),e.memoizedState=i,e.lanes===0&&(e.updateQueue.baseState=i)}function Uo(e,t,n,r,i,a,o){var s=e.stateNode;if(typeof s.shouldComponentUpdate==`function`){if(n=s.shouldComponentUpdate(r,a,o),e.mode&Ig){V(!0);try{n=s.shouldComponentUpdate(r,a,o)}finally{V(!1)}}return n===void 0&&console.error(`%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.`,O(t)||`Component`),n}return t.prototype&&t.prototype.isPureReactComponent?!wn(n,r)||!wn(i,a):!0}function Wo(e,t,n,r){var i=t.state;typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==i&&(e=A(e)||`Component`,Jy.has(e)||(Jy.add(e),console.error(`%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.`,e)),ib.enqueueReplaceState(t,t.state,null))}function Go(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=wf({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function Ko(e){sg(e),console.warn(`%s
128
+
129
+ %s
130
+ `,ab?`An error occurred in the <`+ab+`> component.`:`An error occurred in one of your React components.`,`Consider adding an error boundary to your tree to customize error handling behavior.
131
+ Visit https://react.dev/link/error-boundaries to learn more about error boundaries.`)}function qo(e){var t=ab?`The above error occurred in the <`+ab+`> component.`:`The above error occurred in one of your React components.`,n=`React will try to recreate this component tree from scratch using the error boundary you provided, `+((ob||`Anonymous`)+`.`);if(typeof e==`object`&&e&&typeof e.environmentName==`string`){var r=e.environmentName;e=[`%o
132
+
133
+ %s
134
+
135
+ %s
136
+ `,e,t,n].slice(0),typeof e[0]==`string`?e.splice(0,1,CC+` `+e[0],wC,EC+r+EC,TC):e.splice(0,0,CC,wC,EC+r+EC,TC),e.unshift(console),r=DC.apply(console.error,e),r()}else console.error(`%o
137
+
138
+ %s
139
+
140
+ %s
141
+ `,e,t,n)}function Jo(e){sg(e)}function Yo(e,t){try{ab=t.source?A(t.source):null,ob=null;var n=t.value;if(K.actQueue!==null)K.thrownErrors.push(n);else{var r=e.onUncaughtError;r(n,{componentStack:t.stack})}}catch(e){setTimeout(function(){throw e})}}function Xo(e,t,n){try{ab=n.source?A(n.source):null,ob=A(t);var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function Zo(e,t,n){return n=Ui(n),n.tag=ny,n.payload={element:null},n.callback=function(){R(t.source,Yo,e,t)},n}function Qo(e){return e=Ui(e),e.tag=ny,e}function $o(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){sr(n),R(r.source,Xo,t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){sr(n),R(r.source,Xo,t,n,r),typeof i!=`function`&&(Dx===null?Dx=new Set([this]):Dx.add(this)),Ov(this,r),typeof i==`function`||!(n.lanes&2)&&console.error(`%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.`,A(n)||`Unknown`)})}function es(e,t,n,r,i){if(n.flags|=32768,kp&&Ll(e,i),typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&Ur(t,n,i,!0),$g&&(e_=!0),n=ly.current,n!==null){switch(n.tag){case 31:case 13:return uy===null?sl():n.alternate===null&&dx===Rb&&(dx=Vb),n.flags&=-257,n.flags|=65536,n.lanes=i,r===Bv?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),Ol(e,r,i)),!1;case 22:return n.flags|=65536,r===Bv?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),Ol(e,r,i)),!1}throw Error(`Unexpected Suspense handler tag (`+n.tag+`). This is a bug in React.`)}return Ol(e,r,i),sl(),!1}if($g)return e_=!0,t=ly.current,t===null?(r!==i_&&Ir(yr(Error(`There was an error while hydrating but React was able to recover by instead client rendering the entire root.`,{cause:r}),n)),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,r=yr(r,n),i=Zo(e.stateNode,r,i),Ki(e,i),dx!==Hb&&(dx=Bb)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=i,r!==i_&&Ir(yr(Error(`There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.`,{cause:r}),n))),!1;var a=yr(Error(`There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.`,{cause:r}),n);if(_x===null?_x=[a]:_x.push(a),dx!==Hb&&(dx=Bb),t===null)return!0;r=yr(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=i&-i,n.lanes|=e,e=Zo(n.stateNode,r,e),Ki(n,e),!1;case 1:if(t=n.type,a=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||a!==null&&typeof a.componentDidCatch==`function`&&(Dx===null||!Dx.has(a))))return n.flags|=65536,i&=-i,n.lanes|=i,i=Qo(i),$o(i,e,n,r),Ki(n,i),!1}n=n.return}while(n!==null);return!1}function ts(e,t,n,r){t.child=e===null?Qv(t,null,n,r):Zv(t,e.child,n,r)}function ns(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return Gr(t),r=fa(e,t,n,o,a,i),s=ga(),e!==null&&!cb?(_a(e,t,i),Es(e,t,i)):($g&&s&&Sr(t),t.flags|=1,ts(e,t,r,i),t.child)}function rs(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!ur(a)&&a.defaultProps===void 0&&n.compare===null?(n=ir(a),t.tag=15,t.type=n,gs(t,a),is(e,t,n,r,i)):(e=pr(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!Ds(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?wn:n,n(o,r)&&e.ref===t.ref)return Es(e,t,i)}return t.flags|=1,e=dr(a,r),e.ref=t.ref,e.return=t,t.child=e}function is(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(wn(a,r)&&e.ref===t.ref&&t.type===e.type)if(cb=!1,t.pendingProps=r=a,Ds(e,i))e.flags&131072&&(cb=!0);else return t.lanes=e.lanes,Es(e,t,i)}return fs(e,t,n,r,i)}function as(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:Eg,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return ss(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&xi(t,a===null?null:a.cachePool),a===null?$i(t):Qi(t,a),ra(t);else return r=t.lanes=536870912,ss(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&xi(t,null),$i(t),ia(t)):(xi(t,a.cachePool),Qi(t,a),ia(t),t.memoizedState=null);return ts(e,t,i,n),t.child}function os(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:Eg,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function ss(e,t,n,r,i){var a=bi();return a=a===null?null:{parent:m_._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&xi(t,null),$i(t),ra(t),e!==null&&Ur(e,t,r,!0),t.childLanes=i,null}function cs(e,t){var n=t.hidden;return n!==void 0&&console.error(`<Activity> doesn't accept a hidden prop. Use mode="hidden" instead.
142
+ - <Activity %s>
143
+ + <Activity %s>`,!0===n?`hidden`:!1===n?`hidden={false}`:`hidden={...}`,n?`mode="hidden"`:`mode="visible"`),t=xs({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function ls(e,t,n){return Zv(t,e.child,null,n),e=cs(t,t.pendingProps),e.flags|=2,aa(t),t.memoizedState=null,e}function us(e,t,n){var r=t.pendingProps,i=(t.flags&128)!=0;if(t.flags&=-129,e===null){if($g){if(r.mode===`hidden`)return e=cs(t,r),t.lanes=536870912,os(null,e);if(na(t),(e=Qg)?(n=sd(e,r_),n=n!==null&&n.data===jS?n:null,n!==null&&(r={dehydrated:n,treeContext:wr(),retryLane:536870912,hydrationErrors:null},t.memoizedState=r,r=_r(n),r.return=t,t.child=r,Zg=t,Qg=null)):n=null,n===null)throw kr(t,e),Ar(t);return t.lanes=536870912,null}return cs(t,r)}var a=e.memoizedState;if(a!==null){var o=a.dehydrated;if(na(t),i)if(t.flags&256)t.flags&=-257,t=ls(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(`Client rendering an Activity suspended it again. This is a bug in React.`);else if(Or(),n&536870912&&ol(t),cb||Ur(e,t,n,!1),i=(n&e.childLanes)!==0,cb||i){if(r=Kb,r!==null&&(o=ke(r,n),o!==0&&o!==a.retryLane))throw a.retryLane=o,tr(e,o),qc(r,e,o),sb;sl(),t=ls(e,t,n)}else e=a.treeContext,Qg=dd(o.nextSibling),Zg=t,$g=!0,n_=null,e_=!1,t_=null,r_=!1,e!==null&&Tr(t,e),t=cs(t,r),t.flags|=4096;return t}return a=e.child,r={mode:r.mode,children:r.children},n&536870912&&(n&e.lanes)!==0&&ol(t),e=dr(a,r),e.ref=t.ref,t.child=e,e.return=t,e}function ds(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(`Expected ref to be a function, an object returned by React.createRef(), or undefined/null.`);(e===null||e.ref!==n)&&(t.flags|=4194816)}}function fs(e,t,n,r,i){if(n.prototype&&typeof n.prototype.render==`function`){var a=O(n)||`Unknown`;lb[a]||(console.error(`The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.`,a,a),lb[a]=!0)}return t.mode&Ig&&lv.recordLegacyContextWarning(t,null),e===null&&(gs(t,t.type),n.contextTypes&&(a=O(n)||`Unknown`,db[a]||(db[a]=!0,console.error(`%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)`,a)))),Gr(t),n=fa(e,t,n,r,void 0,i),r=ga(),e!==null&&!cb?(_a(e,t,i),Es(e,t,i)):($g&&r&&Sr(t),t.flags|=1,ts(e,t,n,i),t.child)}function ps(e,t,n,r,i,a){return Gr(t),Ly=-1,Ry=e!==null&&e.type!==t.type,t.updateQueue=null,n=ma(t,r,n,i),pa(e,t),r=ga(),e!==null&&!cb?(_a(e,t,a),Es(e,t,a)):($g&&r&&Sr(t),t.flags|=1,ts(e,t,n,a),t.child)}function ms(e,t,n,r,i){switch(s(t)){case!1:var a=t.stateNode,o=new t.type(t.memoizedProps,a.context).state;a.updater.enqueueSetState(a,o,null);break;case!0:t.flags|=128,t.flags|=65536,a=Error(`Simulated error coming from DevTools`);var c=i&-i;if(t.lanes|=c,o=Kb,o===null)throw Error(`Expected a work-in-progress root. This is a bug in React. Please file an issue.`);c=Qo(c),$o(c,o,t,yr(a,t)),Ki(t,c)}if(Gr(t),t.stateNode===null){if(o=jg,a=n.contextType,`contextType`in n&&a!==null&&(a===void 0||a.$$typeof!==Mf)&&!nb.has(n)&&(nb.add(n),c=a===void 0?` However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.`:typeof a==`object`?a.$$typeof===jf?` Did you accidentally pass the Context.Consumer instead?`:` However, it is set to an object with keys {`+Object.keys(a).join(`, `)+`}.`:` However, it is set to a `+typeof a+`.`,console.error(`%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s`,O(n)||`Component`,c)),typeof a==`object`&&a&&(o=Kr(a)),a=new n(r,o),t.mode&Ig){V(!0);try{a=new n(r,o)}finally{V(!1)}}if(o=t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=ib,t.stateNode=a,a._reactInternals=t,a._reactInternalInstance=qy,typeof n.getDerivedStateFromProps==`function`&&o===null&&(o=O(n)||`Component`,Yy.has(o)||(Yy.add(o),console.error("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",o,a.state===null?`null`:`undefined`,o))),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`){var l=c=o=null;if(typeof a.componentWillMount==`function`&&!0!==a.componentWillMount.__suppressDeprecationWarning?o=`componentWillMount`:typeof a.UNSAFE_componentWillMount==`function`&&(o=`UNSAFE_componentWillMount`),typeof a.componentWillReceiveProps==`function`&&!0!==a.componentWillReceiveProps.__suppressDeprecationWarning?c=`componentWillReceiveProps`:typeof a.UNSAFE_componentWillReceiveProps==`function`&&(c=`UNSAFE_componentWillReceiveProps`),typeof a.componentWillUpdate==`function`&&!0!==a.componentWillUpdate.__suppressDeprecationWarning?l=`componentWillUpdate`:typeof a.UNSAFE_componentWillUpdate==`function`&&(l=`UNSAFE_componentWillUpdate`),o!==null||c!==null||l!==null){a=O(n)||`Component`;var u=typeof n.getDerivedStateFromProps==`function`?`getDerivedStateFromProps()`:`getSnapshotBeforeUpdate()`;Zy.has(a)||(Zy.add(a),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
144
+
145
+ %s uses %s but also contains the following legacy lifecycles:%s%s%s
146
+
147
+ The above lifecycles should be removed. Learn more about this warning here:
148
+ https://react.dev/link/unsafe-component-lifecycles`,a,u,o===null?``:`
149
+ `+o,c===null?``:`
150
+ `+c,l===null?``:`
151
+ `+l))}}a=t.stateNode,o=O(n)||`Component`,a.render||(n.prototype&&typeof n.prototype.render==`function`?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",o):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",o)),!a.getInitialState||a.getInitialState.isReactClassApproved||a.state||console.error(`getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?`,o),a.getDefaultProps&&!a.getDefaultProps.isReactClassApproved&&console.error(`getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.`,o),a.contextType&&console.error(`contextType was defined as an instance property on %s. Use a static property to define contextType instead.`,o),n.childContextTypes&&!tb.has(n)&&(tb.add(n),console.error(`%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)`,o)),n.contextTypes&&!eb.has(n)&&(eb.add(n),console.error(`%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)`,o)),typeof a.componentShouldUpdate==`function`&&console.error(`%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.`,o),n.prototype&&n.prototype.isPureReactComponent&&a.shouldComponentUpdate!==void 0&&console.error(`%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.`,O(n)||`A pure component`),typeof a.componentDidUnmount==`function`&&console.error(`%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?`,o),typeof a.componentDidReceiveProps==`function`&&console.error(`%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().`,o),typeof a.componentWillRecieveProps==`function`&&console.error(`%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?`,o),typeof a.UNSAFE_componentWillRecieveProps==`function`&&console.error(`%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?`,o),c=a.props!==r,a.props!==void 0&&c&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",o),a.defaultProps&&console.error(`Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.`,o,o),typeof a.getSnapshotBeforeUpdate!=`function`||typeof a.componentDidUpdate==`function`||Xy.has(n)||(Xy.add(n),console.error(`%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.`,O(n))),typeof a.getDerivedStateFromProps==`function`&&console.error(`%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.`,o),typeof a.getDerivedStateFromError==`function`&&console.error(`%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.`,o),typeof n.getSnapshotBeforeUpdate==`function`&&console.error(`%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.`,o),(c=a.state)&&(typeof c!=`object`||Hf(c))&&console.error(`%s.state: must be set to an object or null`,o),typeof a.getChildContext==`function`&&typeof n.childContextTypes!=`object`&&console.error(`%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().`,o),a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},Vi(t),o=n.contextType,a.context=typeof o==`object`&&o?Kr(o):jg,a.state===r&&(o=O(n)||`Component`,Qy.has(o)||(Qy.add(o),console.error(`%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.`,o))),t.mode&Ig&&lv.recordLegacyContextWarning(t,a),lv.recordUnsafeLifecycleWarnings(t,a),a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(Ho(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&(console.error(`%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.`,A(t)||`Component`),ib.enqueueReplaceState(a,a.state,null)),Ji(t,r,a,i),qi(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),(t.mode&Lg)!==q&&(t.flags|=134217728),a=!0}else if(e===null){a=t.stateNode;var d=t.memoizedProps;c=Go(n,d),a.props=c;var f=a.context;l=n.contextType,o=jg,typeof l==`object`&&l&&(o=Kr(l)),u=n.getDerivedStateFromProps,l=typeof u==`function`||typeof a.getSnapshotBeforeUpdate==`function`,d=t.pendingProps!==d,l||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(d||f!==o)&&Wo(t,a,r,o),ry=!1;var p=t.memoizedState;a.state=p,Ji(t,r,a,i),qi(),f=t.memoizedState,d||p!==f||ry?(typeof u==`function`&&(Ho(t,n,u,r),f=t.memoizedState),(c=ry||Uo(t,n,c,r,p,f,o))?(l||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308),(t.mode&Lg)!==q&&(t.flags|=134217728)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),(t.mode&Lg)!==q&&(t.flags|=134217728),t.memoizedProps=r,t.memoizedState=f),a.props=r,a.state=f,a.context=o,a=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),(t.mode&Lg)!==q&&(t.flags|=134217728),a=!1)}else{a=t.stateNode,Hi(e,t),o=t.memoizedProps,l=Go(n,o),a.props=l,u=t.pendingProps,p=a.context,f=n.contextType,c=jg,typeof f==`object`&&f&&(c=Kr(f)),d=n.getDerivedStateFromProps,(f=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==u||p!==c)&&Wo(t,a,r,c),ry=!1,p=t.memoizedState,a.state=p,Ji(t,r,a,i),qi();var m=t.memoizedState;o!==u||p!==m||ry||e!==null&&e.dependencies!==null&&Wr(e.dependencies)?(typeof d==`function`&&(Ho(t,n,d,r),m=t.memoizedState),(l=ry||Uo(t,n,l,r,p,m,c)||e!==null&&e.dependencies!==null&&Wr(e.dependencies))?(f||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,m,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,m,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),a.props=r,a.state=m,a.context=c,a=l):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),a=!1)}if(c=a,ds(e,t),o=(t.flags&128)!=0,c||o){if(c=t.stateNode,z(t),o&&typeof n.getDerivedStateFromError!=`function`)n=null,C_=-1;else if(n=Sv(c),t.mode&Ig){V(!0);try{Sv(c)}finally{V(!1)}}t.flags|=1,e!==null&&o?(t.child=Zv(t,e.child,null,i),t.child=Zv(t,null,n,i)):ts(e,t,n,i),t.memoizedState=c.state,e=t.child}else e=Es(e,t,i);return i=t.stateNode,a&&i.props!==r&&(pb||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",A(t)||`a component`),pb=!0),e}function hs(e,t,n,r){return Pr(),t.flags|=256,ts(e,t,n,r),t.child}function gs(e,t){t&&t.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
152
+ %s.childContextTypes = ...`,t.displayName||t.name||`Component`),typeof t.getDerivedStateFromProps==`function`&&(e=O(t)||`Unknown`,fb[e]||(console.error(`%s: Function components do not support getDerivedStateFromProps.`,e),fb[e]=!0)),typeof t.contextType==`object`&&t.contextType!==null&&(t=O(t)||`Unknown`,ub[t]||(console.error(`%s: Function components do not support contextType.`,t),ub[t]=!0))}function _s(e){return{baseLanes:e,cachePool:Si()}}function vs(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=hx),e}function ys(e,t,n){var r,i=t.pendingProps;o(t)&&(t.flags|=128);var a=!1,s=(t.flags&128)!=0;if((r=s)||(r=e!==null&&e.memoizedState===null?!1:(py.current&fy)!==0),r&&(a=!0,t.flags&=-129),r=(t.flags&32)!=0,t.flags&=-33,e===null){if($g){if(a?ta(t):ia(t),(e=Qg)?(n=sd(e,r_),n=n!==null&&n.data!==jS?n:null,n!==null&&(r={dehydrated:n,treeContext:wr(),retryLane:536870912,hydrationErrors:null},t.memoizedState=r,r=_r(n),r.return=t,t.child=r,Zg=t,Qg=null)):n=null,n===null)throw kr(t,e),Ar(t);return ld(n)?t.lanes=32:t.lanes=536870912,null}var c=i.children;if(i=i.fallback,a){ia(t);var l=t.mode;return c=xs({mode:`hidden`,children:c},l),i=hr(i,l,n,null),c.return=t,i.return=t,c.sibling=i,t.child=c,i=t.child,i.memoizedState=_s(n),i.childLanes=vs(e,r,n),t.memoizedState=gb,os(null,i)}return ta(t),bs(t,c)}var u=e.memoizedState;if(u!==null){var d=u.dehydrated;if(d!==null){if(s)t.flags&256?(ta(t),t.flags&=-257,t=Ss(e,t,n)):t.memoizedState===null?(ia(t),c=i.fallback,l=t.mode,i=xs({mode:`visible`,children:i.children},l),c=hr(c,l,n,null),c.flags|=2,i.return=t,c.return=t,i.sibling=c,t.child=i,Zv(t,e.child,null,n),i=t.child,i.memoizedState=_s(n),i.childLanes=vs(e,r,n),t.memoizedState=gb,t=os(null,i)):(ia(t),t.child=e.child,t.flags|=128,t=null);else if(ta(t),Or(),n&536870912&&ol(t),ld(d)){if(r=d.nextSibling&&d.nextSibling.dataset,r){c=r.dgst;var f=r.msg;l=r.stck;var p=r.cstck}a=f,r=c,i=l,d=p,c=a,l=d,c=Error(c||`The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.`),c.stack=i||``,c.digest=r,r=l===void 0?null:l,i={value:c,source:null,stack:r},typeof r==`string`&&Vg.set(c,i),Ir(i),t=Ss(e,t,n)}else if(cb||Ur(e,t,n,!1),r=(n&e.childLanes)!==0,cb||r){if(r=Kb,r!==null&&(i=ke(r,n),i!==0&&i!==u.retryLane))throw u.retryLane=i,tr(e,i),qc(r,e,i),sb;cd(d)||sl(),t=Ss(e,t,n)}else cd(d)?(t.flags|=192,t.child=e.child,t=null):(e=u.treeContext,Qg=dd(d.nextSibling),Zg=t,$g=!0,n_=null,e_=!1,t_=null,r_=!1,e!==null&&Tr(t,e),t=bs(t,i.children),t.flags|=4096);return t}}return a?(ia(t),c=i.fallback,l=t.mode,p=e.child,d=p.sibling,i=dr(p,{mode:`hidden`,children:i.children}),i.subtreeFlags=p.subtreeFlags&65011712,d===null?(c=hr(c,l,n,null),c.flags|=2):c=dr(d,c),c.return=t,i.return=t,i.sibling=c,t.child=i,os(null,i),i=t.child,c=e.child.memoizedState,c===null?c=_s(n):(l=c.cachePool,l===null?l=Si():(p=m_._currentValue,l=l.parent===p?l:{parent:p,pool:p}),c={baseLanes:c.baseLanes|n,cachePool:l}),i.memoizedState=c,i.childLanes=vs(e,r,n),t.memoizedState=gb,os(e.child,i)):(u!==null&&(n&62914560)===n&&(n&e.lanes)!==0&&ol(t),ta(t),n=e.child,e=n.sibling,n=dr(n,{mode:`visible`,children:i.children}),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n)}function bs(e,t){return t=xs({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function xs(e,t){return e=p(22,e,null,t),e.lanes=0,e}function Ss(e,t,n){return Zv(t,e.child,null,n),e=bs(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Cs(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Vr(e.return,t,n)}function ws(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function Ts(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail,o=r.children,s=py.current;if((r=(s&fy)!==0)?(s=s&dy|fy,t.flags|=128):s&=dy,N(py,s,t),s=i??`null`,i!==`forwards`&&i!==`unstable_legacy-backwards`&&i!==`together`&&i!==`independent`&&!mb[s])if(mb[s]=!0,i==null)console.error(`The default for the <SuspenseList revealOrder="..."> prop is changing. To be future compatible you must explictly specify either "independent" (the current default), "together", "forwards" or "legacy_unstable-backwards".`);else if(i===`backwards`)console.error(`The rendering order of <SuspenseList revealOrder="backwards"> is changing. To be future compatible you must specify revealOrder="legacy_unstable-backwards" instead.`);else if(typeof i==`string`)switch(i.toLowerCase()){case`together`:case`forwards`:case`backwards`:case`independent`:console.error(`"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.`,i,i.toLowerCase());break;case`forward`:case`backward`:console.error(`"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.`,i,i.toLowerCase());break;default:console.error(`"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?`,i)}else console.error(`%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?`,i);s=a??`null`,hb[s]||(a==null?(i===`forwards`||i===`backwards`||i===`unstable_legacy-backwards`)&&(hb[s]=!0,console.error(`The default for the <SuspenseList tail="..."> prop is changing. To be future compatible you must explictly specify either "visible" (the current default), "collapsed" or "hidden".`)):a!==`visible`&&a!==`collapsed`&&a!==`hidden`?(hb[s]=!0,console.error(`"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?`,a)):i!==`forwards`&&i!==`backwards`&&i!==`unstable_legacy-backwards`&&(hb[s]=!0,console.error(`<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?`,a)));a:if((i===`forwards`||i===`backwards`||i===`unstable_legacy-backwards`)&&o!=null&&!1!==o)if(Hf(o)){for(s=0;s<o.length;s++)if(!Bi(o[s],s))break a}else if(s=D(o),typeof s==`function`){if(s=s.call(o))for(var c=s.next(),l=0;!c.done;c=s.next()){if(!Bi(c.value,l))break a;l++}}else console.error(`A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?`,i);if(ts(e,t,o,n),$g?(Er(),o=Gg):o=0,!r&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Cs(e,n,t);else if(e.tag===19)Cs(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&oa(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),ws(t,!1,i,n,a,o);break;case`backwards`:case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&oa(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}ws(t,!0,n,null,a,o);break;case`together`:ws(t,!1,null,null,void 0,o);break;default:t.memoizedState=null}return t.child}function Es(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),C_=-1,fx|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Ur(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(`Resuming work not yet implemented.`);if(t.child!==null){for(e=t.child,n=dr(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=dr(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Ds(e,t){return(e.lanes&t)===0?(e=e.dependencies,!!(e!==null&&Wr(e))):!0}function Os(e,t,n){switch(t.tag){case 3:te(t,t.stateNode.containerInfo),zr(t,m_,e.memoizedState.cache),Pr();break;case 27:case 5:ne(t);break;case 4:te(t,t.stateNode.containerInfo);break;case 10:zr(t,t.type,t.memoizedProps.value);break;case 12:(n&t.childLanes)!==0&&(t.flags|=4),t.flags|=2048;var r=t.stateNode;r.effectDuration=-0,r.passiveEffectDuration=-0;break;case 31:if(t.memoizedState!==null)return t.flags|=128,na(t),null;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(ta(t),e=Es(e,t,n),e===null?null:e.sibling):ys(e,t,n):(ta(t),t.flags|=128,null);ta(t);break;case 19:var i=(e.flags&128)!=0;if(r=(n&t.childLanes)!==0,r||=(Ur(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return Ts(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),N(py,py.current,t),r)break;return null;case 22:return t.lanes=0,as(e,t,n,t.pendingProps);case 24:zr(t,m_,e.memoizedState.cache)}return Es(e,t,n)}function ks(e,t,n){if(t._debugNeedsRemount&&e!==null){n=pr(t.type,t.key,t.pendingProps,t._debugOwner||null,t.mode,t.lanes),n._debugStack=t._debugStack,n._debugTask=t._debugTask;var r=t.return;if(r===null)throw Error(`Cannot swap the root fiber.`);if(e.alternate=null,t.alternate=null,n.index=t.index,n.sibling=t.sibling,n.return=t.return,n.ref=t.ref,n._debugInfo=t._debugInfo,t===r.child)r.child=n;else{var i=r.child;if(i===null)throw Error(`Expected parent to have a child.`);for(;i.sibling!==t;)if(i=i.sibling,i===null)throw Error(`Expected to find the previous sibling.`);i.sibling=n}return t=r.deletions,t===null?(r.deletions=[e],r.flags|=16):t.push(e),n.flags|=2,n}if(e!==null)if(e.memoizedProps!==t.pendingProps||t.type!==e.type)cb=!0;else{if(!Ds(e,n)&&!(t.flags&128))return cb=!1,Os(e,t,n);cb=!!(e.flags&131072)}else cb=!1,(r=$g)&&(Er(),r=(t.flags&1048576)!=0),r&&(r=t.index,Er(),xr(t,Gg,r));switch(t.lanes=0,t.tag){case 16:a:if(r=t.pendingProps,e=Ei(t.elementType),t.type=e,typeof e==`function`)ur(e)?(r=Go(e,r),t.tag=1,t.type=e=ir(e),t=ms(null,t,e,r,n)):(t.tag=0,gs(t,e),t.type=e=ir(e),t=fs(null,t,e,r,n));else{if(e!=null){if(i=e.$$typeof,i===Nf){t.tag=11,t.type=e=ar(e),t=ns(null,t,e,r,n);break a}else if(i===If){t.tag=14,t=rs(null,t,e,r,n);break a}}throw t=``,typeof e==`object`&&e&&e.$$typeof===Lf&&(t=` Did you wrap a component in React.lazy() more than once?`),n=O(e)||e,Error(`Element type is invalid. Received a promise that resolves to: `+n+`. Lazy element type must resolve to a class or function.`+t)}return t;case 0:return fs(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,i=Go(r,t.pendingProps),ms(e,t,r,i,n);case 3:a:{if(te(t,t.stateNode.containerInfo),e===null)throw Error(`Should have a current fiber. This is a bug in React.`);r=t.pendingProps;var a=t.memoizedState;i=a.element,Hi(e,t),Ji(t,r,null,n);var o=t.memoizedState;if(r=o.cache,zr(t,m_,r),r!==a.cache&&Hr(t,[m_],n,!0),qi(),r=o.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:o.cache},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){t=hs(e,t,r,n);break a}else if(r!==i){i=yr(Error(`This root received an early update, before anything was able hydrate. Switched the entire root to client rendering.`),t),Ir(i),t=hs(e,t,r,n);break a}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(Qg=dd(e.firstChild),Zg=t,$g=!0,n_=null,e_=!1,t_=null,r_=!0,n=Qv(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Pr(),r===i){t=Es(e,t,n);break a}ts(e,t,r,n)}t=t.child}return t;case 26:return ds(e,t),e===null?(n=wd(t.type,null,t.pendingProps,null))?t.memoizedState=n:$g||(n=t.type,e=t.pendingProps,r=ee(Xf.current),r=Nu(r).createElement(n),r[Vp]=t,r[Hp]=e,yu(r,n,e),Ve(r),t.stateNode=r):t.memoizedState=wd(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ne(t),e===null&&$g&&(r=ee(Xf.current),i=F(),r=t.stateNode=yd(t.type,t.pendingProps,r,i,!1),e_||(i=ku(r,t.type,t.pendingProps,i),i!==null&&(Dr(t,0).serverProps=i)),Zg=t,r_=!0,i=Qg,qu(t.type)?(iC=i,Qg=dd(r.firstChild)):Qg=i),ts(e,t,t.pendingProps.children,n),ds(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&$g&&(a=F(),r=Ft(t.type,a.ancestorInfo),i=Qg,(o=!i)||(o=ad(i,t.type,t.pendingProps,r_),o===null?a=!1:(t.stateNode=o,e_||(a=ku(o,t.type,t.pendingProps,a),a!==null&&(Dr(t,0).serverProps=a)),Zg=t,Qg=dd(o.firstChild),r_=!1,a=!0),o=!a),o&&(r&&kr(t,i),Ar(t))),ne(t),i=t.type,a=t.pendingProps,o=e===null?null:e.memoizedProps,r=a.children,Iu(i,a)?r=null:o!==null&&Iu(i,o)&&(t.flags|=32),t.memoizedState!==null&&(i=fa(e,t,ha,null,null,n),SC._currentValue=i),ds(e,t),ts(e,t,r,n),t.child;case 6:return e===null&&$g&&(n=t.pendingProps,e=F(),r=e.ancestorInfo.current,n=r==null?!0:It(n,r.tag,e.ancestorInfo.implicitRootScope),e=Qg,(r=!e)||(r=od(e,t.pendingProps,r_),r===null?r=!1:(t.stateNode=r,Zg=t,Qg=null,r=!0),r=!r),r&&(n&&kr(t,e),Ar(t))),null;case 13:return ys(e,t,n);case 4:return te(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Zv(t,null,r,n):ts(e,t,r,n),t.child;case 11:return ns(e,t,t.type,t.pendingProps,n);case 7:return ts(e,t,t.pendingProps,n),t.child;case 8:return ts(e,t,t.pendingProps.children,n),t.child;case 12:return t.flags|=4,t.flags|=2048,r=t.stateNode,r.effectDuration=-0,r.passiveEffectDuration=-0,ts(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.type,i=t.pendingProps,a=i.value,`value`in i||_b||(_b=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),zr(t,r,a),ts(e,t,i.children,n),t.child;case 9:return i=t.type._context,r=t.pendingProps.children,typeof r!=`function`&&console.error(`A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it.`),Gr(t),i=Kr(i),r=bv(r,i,void 0),t.flags|=1,ts(e,t,r,n),t.child;case 14:return rs(e,t,t.type,t.pendingProps,n);case 15:return is(e,t,t.type,t.pendingProps,n);case 19:return Ts(e,t,n);case 31:return us(e,t,n);case 22:return as(e,t,n,t.pendingProps);case 24:return Gr(t),r=Kr(m_),e===null?(i=bi(),i===null&&(i=Kb,a=Yr(),i.pooledCache=a,Xr(a),a!==null&&(i.pooledCacheLanes|=n),i=a),t.memoizedState={parent:r,cache:i},Vi(t),zr(t,m_,i)):((e.lanes&n)!==0&&(Hi(e,t),Ji(t,null,null,n),qi()),i=e.memoizedState,a=t.memoizedState,i.parent===r?(r=a.cache,zr(t,m_,r),r!==i.cache&&Hr(t,[m_],n,!0)):(i={parent:r,cache:r},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),zr(t,m_,r))),ts(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(`Unknown unit of work tag (`+t.tag+`). This error is likely caused by a bug in React. Please file an issue.`)}function As(e){e.flags|=4}function js(e,t,n,r,i){if((t=(e.mode&Rg)!==q)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(rl())e.flags|=8192;else throw Vv=Bv,Rv}else e.flags&=-16777217}function Ms(e,t){if(t.type!==`stylesheet`||(t.state.loading&lC)!==aC)e.flags&=-16777217;else if(e.flags|=16777216,!zd(t))if(rl())e.flags|=8192;else throw Vv=Bv,Rv}function Ns(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:Ce(),e.lanes|=t,gx|=t)}function Ps(e,t){if(!$g)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Fs(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)if((e.mode&Fg)!==q){for(var i=e.selfBaseDuration,a=e.child;a!==null;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags&65011712,r|=a.flags&65011712,i+=a.treeBaseDuration,a=a.sibling;e.treeBaseDuration=i}else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&65011712,r|=i.flags&65011712,i.return=e,i=i.sibling;else if((e.mode&Fg)!==q){i=e.actualDuration,a=e.selfBaseDuration;for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,i+=o.actualDuration,a+=o.treeBaseDuration,o=o.sibling;e.actualDuration=i,e.treeBaseDuration=a}else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Is(e,t,n){var r=t.pendingProps;switch(Cr(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Fs(t),null;case 1:return Fs(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Br(m_,t),P(t),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Nr(t)?(Lr(),As(t)):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Fr())),Fs(t),null;case 26:var i=t.type,a=t.memoizedState;return e===null?(As(t),a===null?(Fs(t),js(t,i,null,r,n)):(Fs(t),Ms(t,a))):a?a===e.memoizedState?(Fs(t),t.flags&=-16777217):(As(t),Fs(t),Ms(t,a)):(e=e.memoizedProps,e!==r&&As(t),Fs(t),js(t,i,e,r,n)),null;case 27:if(re(t),n=ee(Xf.current),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&As(t);else{if(!r){if(t.stateNode===null)throw Error(`We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.`);return Fs(t),null}e=F(),Nr(t)?jr(t,e):(e=yd(i,r,n,e,!0),t.stateNode=e,As(t))}return Fs(t),null;case 5:if(re(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&As(t);else{if(!r){if(t.stateNode===null)throw Error(`We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.`);return Fs(t),null}var o=F();if(Nr(t))jr(t,o);else{switch(a=ee(Xf.current),Ft(i,o.ancestorInfo),o=o.context,a=Nu(a),o){case KS:a=a.createElementNS(jm,i);break;case qS:a=a.createElementNS(Am,i);break;default:switch(i){case`svg`:a=a.createElementNS(jm,i);break;case`math`:a=a.createElementNS(Am,i);break;case`script`:a=a.createElement(`div`),a.innerHTML=`<script><\/script>`,a=a.removeChild(a.firstChild);break;case`select`:a=typeof r.is==`string`?a.createElement(`select`,{is:r.is}):a.createElement(`select`),r.multiple?a.multiple=!0:r.size&&(a.size=r.size);break;default:a=typeof r.is==`string`?a.createElement(i,{is:r.is}):a.createElement(i),i.indexOf(`-`)===-1&&(i!==i.toLowerCase()&&console.error(`<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.`,i),Object.prototype.toString.call(a)!==`[object HTMLUnknownElement]`||fp.call(XS,i)||(XS[i]=!0,console.error(`The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.`,i)))}}a[Vp]=t,a[Hp]=r;a:for(o=t.child;o!==null;){if(o.tag===5||o.tag===6)a.appendChild(o.stateNode);else if(o.tag!==4&&o.tag!==27&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===t)break a;for(;o.sibling===null;){if(o.return===null||o.return===t)break a;o=o.return}o.sibling.return=o.return,o=o.sibling}t.stateNode=a;a:switch(yu(a,i,r),i){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&As(t)}}return Fs(t),js(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&As(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(`We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.`);if(e=ee(Xf.current),n=F(),Nr(t)){if(e=t.stateNode,n=t.memoizedProps,i=!e_,r=null,a=Zg,a!==null)switch(a.tag){case 3:i&&(i=pd(e,n,r),i!==null&&(Dr(t,0).serverProps=i));break;case 27:case 5:r=a.memoizedProps,i&&(i=pd(e,n,r),i!==null&&(Dr(t,0).serverProps=i))}e[Vp]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||gu(e.nodeValue,n)),e||Ar(t,!0)}else i=n.ancestorInfo.current,i!=null&&It(r,i.tag,n.ancestorInfo.implicitRootScope),e=Nu(e).createTextNode(r),e[Vp]=t,t.stateNode=e}return Fs(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Nr(t),n!==null){if(e===null){if(!r)throw Error(`A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.`);if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(`Expected to have a hydrated activity instance. This error is likely caused by a bug in React. Please file an issue.`);e[Vp]=t,Fs(t),(t.mode&Fg)!==q&&n!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration))}else Lr(),Pr(),!(t.flags&128)&&(n=t.memoizedState=null),t.flags|=4,Fs(t),(t.mode&Fg)!==q&&n!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration));e=!1}else n=Fr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(aa(t),t):(aa(t),null);if(t.flags&128)throw Error(`Client rendering an Activity suspended it again. This is a bug in React.`)}return Fs(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=r,a=Nr(t),i!==null&&i.dehydrated!==null){if(e===null){if(!a)throw Error(`A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.`);if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(`Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.`);a[Vp]=t,Fs(t),(t.mode&Fg)!==q&&i!==null&&(i=t.child,i!==null&&(t.treeBaseDuration-=i.treeBaseDuration))}else Lr(),Pr(),!(t.flags&128)&&(i=t.memoizedState=null),t.flags|=4,Fs(t),(t.mode&Fg)!==q&&i!==null&&(i=t.child,i!==null&&(t.treeBaseDuration-=i.treeBaseDuration));i=!1}else i=Fr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(aa(t),t):(aa(t),null)}return aa(t),t.flags&128?(t.lanes=n,(t.mode&Fg)!==q&&gi(t),t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,i=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(i=r.alternate.memoizedState.cachePool.pool),a=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(a=r.memoizedState.cachePool.pool),a!==i&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Ns(t,t.updateQueue),Fs(t),(t.mode&Fg)!==q&&n&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration)),null);case 4:return P(t),e===null&&ru(t.stateNode.containerInfo),Fs(t),null;case 10:return Br(t.type,t),Fs(t),null;case 19:if(M(py,t),r=t.memoizedState,r===null)return Fs(t),null;if(i=(t.flags&128)!=0,a=r.rendering,a===null)if(i)Ps(r,!1);else{if(dx!==Rb||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=oa(e),a!==null){for(t.flags|=128,Ps(r,!1),e=a.updateQueue,t.updateQueue=e,Ns(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)fr(n,e),n=n.sibling;return N(py,py.current&dy|fy,t),$g&&br(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&_p()>Cx&&(t.flags|=128,i=!0,Ps(r,!1),t.lanes=4194304)}else{if(!i)if(e=oa(a),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Ns(t,e),Ps(r,!0),r.tail===null&&r.tailMode===`hidden`&&!a.alternate&&!$g)return Fs(t),null}else 2*_p()-r.renderingStartTime>Cx&&n!==536870912&&(t.flags|=128,i=!0,Ps(r,!1),t.lanes=4194304);r.isBackwards?(a.sibling=t.child,t.child=a):(e=r.last,e===null?t.child=a:e.sibling=a,r.last=a)}return r.tail===null?(Fs(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=_p(),e.sibling=null,n=py.current,n=i?n&dy|fy:n&dy,N(py,n,t),$g&&br(t,r.treeForkCount),e);case 22:case 23:return aa(t),ea(t),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Fs(t),t.subtreeFlags&6&&(t.flags|=8192)):Fs(t),n=t.updateQueue,n!==null&&Ns(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&M(cv,t),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Br(m_,t),Fs(t),null;case 25:return null;case 30:return null}throw Error(`Unknown unit of work tag (`+t.tag+`). This error is likely caused by a bug in React. Please file an issue.`)}function Ls(e,t){switch(Cr(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&Fg)!==q&&gi(t),t):null;case 3:return Br(m_,t),P(t),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return re(t),null;case 31:if(t.memoizedState!==null){if(aa(t),t.alternate===null)throw Error(`Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.`);Pr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&Fg)!==q&&gi(t),t):null;case 13:if(aa(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(`Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.`);Pr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&Fg)!==q&&gi(t),t):null;case 19:return M(py,t),null;case 4:return P(t),null;case 10:return Br(t.type,t),null;case 22:case 23:return aa(t),ea(t),e!==null&&M(cv,t),e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&Fg)!==q&&gi(t),t):null;case 24:return Br(m_,t),null;case 25:return null;default:return null}}function Rs(e,t){switch(Cr(t),t.tag){case 3:Br(m_,t),P(t);break;case 26:case 27:case 5:re(t);break;case 4:P(t);break;case 31:t.memoizedState!==null&&aa(t);break;case 13:aa(t);break;case 19:M(py,t);break;case 10:Br(t.type,t);break;case 22:case 23:aa(t),ea(t),e!==null&&M(cv,t);break;case 24:Br(m_,t)}}function zs(e){return(e.mode&Fg)!==q}function Bs(e,t){zs(e)?(hi(),Hs(t,e),pi()):Hs(t,e)}function Vs(e,t,n){zs(e)?(hi(),Us(n,e,t),pi()):Us(n,e,t)}function Hs(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e&&(r=void 0,(e&gy)!==my&&(tS=!0),r=R(t,Mv,n),(e&gy)!==my&&(tS=!1),r!==void 0&&typeof r!=`function`)){var a=void 0;a=(n.tag&_y)===0?(n.tag&gy)===0?`useEffect`:`useInsertionEffect`:`useLayoutEffect`;var o=void 0;o=r===null?` You returned null. If your effect does not require clean up, return undefined (or nothing).`:typeof r.then==`function`?`
153
+
154
+ It looks like you wrote `+a+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
155
+
156
+ `+a+`(() => {
157
+ async function fetchData() {
158
+ // You can await here
159
+ const response = await MyAPI.getData(someId);
160
+ // ...
161
+ }
162
+ fetchData();
163
+ }, [someId]); // Or [] if effect doesn't need props or state
164
+
165
+ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:` You returned: `+r,R(t,function(e,t){console.error(`%s must not return anything besides a function, which is used for clean-up.%s`,e,t)},a,o)}n=n.next}while(n!==i)}}catch(e){Dl(t,t.return,e)}}function Us(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;s!==void 0&&(o.destroy=void 0,(e&gy)!==my&&(tS=!0),i=t,R(i,Pv,i,n,s),(e&gy)!==my&&(tS=!1))}r=r.next}while(r!==a)}}catch(e){Dl(t,t.return,e)}}function Ws(e,t){zs(e)?(hi(),Hs(t,e),pi()):Hs(t,e)}function Gs(e,t,n){zs(e)?(hi(),Us(n,e,t),pi()):Us(n,e,t)}function Ks(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;e.type.defaultProps||`ref`in e.memoizedProps||pb||(n.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",A(e)||`instance`),n.state!==e.memoizedState&&console.error("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",A(e)||`instance`));try{R(e,Zi,t,n)}catch(t){Dl(e,e.return,t)}}}function qs(e,t,n){return e.getSnapshotBeforeUpdate(t,n)}function Js(e,t){var n=t.memoizedProps,r=t.memoizedState;t=e.stateNode,e.type.defaultProps||`ref`in e.memoizedProps||pb||(t.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",A(e)||`instance`),t.state!==e.memoizedState&&console.error("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",A(e)||`instance`));try{var i=Go(e.type,n),a=R(e,qs,t,i,r);n=vb,a!==void 0||n.has(e.type)||(n.add(e.type),R(e,function(){console.error(`%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.`,A(e))})),t.__reactInternalSnapshotBeforeUpdate=a}catch(t){Dl(e,e.return,t)}}function Ys(e,t,n){n.props=Go(e.type,e.memoizedProps),n.state=e.memoizedState,zs(e)?(hi(),R(e,Av,e,t,n),pi()):R(e,Av,e,t,n)}function Xs(e){var t=e.ref;if(t!==null){switch(e.tag){case 26:case 27:case 5:var n=e.stateNode;break;case 30:n=e.stateNode;break;default:n=e.stateNode}if(typeof t==`function`)if(zs(e))try{hi(),e.refCleanup=t(n)}finally{pi()}else e.refCleanup=t(n);else typeof t==`string`?console.error(`String refs are no longer supported.`):t.hasOwnProperty(`current`)||console.error(`Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().`,A(e)),t.current=n}}function Zs(e,t){try{R(e,Xs,e)}catch(n){Dl(e,t,n)}}function Qs(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{if(zs(e))try{hi(),R(e,r)}finally{pi(e)}else R(e,r)}catch(n){Dl(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{if(zs(e))try{hi(),R(e,n,null)}finally{pi(e)}else R(e,n,null)}catch(n){Dl(e,t,n)}else n.current=null}function $s(e,t,n,r){var i=e.memoizedProps,a=i.id,o=i.onCommit;i=i.onRender,t=t===null?`mount`:`update`,tv&&(t=`nested-update`),typeof i==`function`&&i(a,t,e.actualDuration,e.treeBaseDuration,e.actualStartTime,n),typeof o==`function`&&o(a,t,r,n)}function ec(e,t,n,r){var i=e.memoizedProps;e=i.id,i=i.onPostCommit,t=t===null?`mount`:`update`,tv&&(t=`nested-update`),typeof i==`function`&&i(e,t,r,n)}function tc(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{R(e,Vu,r,t,n,e)}catch(t){Dl(e,e.return,t)}}function nc(e,t,n){try{R(e,Uu,e.stateNode,e.type,n,t,e)}catch(t){Dl(e,e.return,t)}}function rc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&qu(e.type)||e.tag===4}function ic(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||rc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&qu(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function ac(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(Ku(n),(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t)):(Ku(n),t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Jt));else if(r!==4&&(r===27&&qu(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(ac(e,t,n),e=e.sibling;e!==null;)ac(e,t,n),e=e.sibling}function oc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&qu(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(oc(e,t,n),e=e.sibling;e!==null;)oc(e,t,n),e=e.sibling}function sc(e){for(var t,n=e.return;n!==null;){if(rc(n)){t=n;break}n=n.return}if(t==null)throw Error(`Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.`);switch(t.tag){case 27:t=t.stateNode,n=ic(e),oc(e,n,t);break;case 5:n=t.stateNode,t.flags&32&&(Wu(n),t.flags&=-33),t=ic(e),oc(e,t,n);break;case 3:case 4:t=t.stateNode.containerInfo,n=ic(e),ac(e,n,t);break;default:throw Error(`Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.`)}}function cc(e){var t=e.stateNode,n=e.memoizedProps;try{R(e,bd,e.type,n,t,e)}catch(t){Dl(e,e.return,t)}}function lc(e,t){return t.tag===31?(t=t.memoizedState,e.memoizedState!==null&&t===null):t.tag===13?(e=e.memoizedState,t=t.memoizedState,e!==null&&e.dehydrated!==null&&(t===null||t.dehydrated===null)):t.tag===3?e.memoizedState.isDehydrated&&(t.flags&256)==0:!1}function uc(e,t){if(e=e.containerInfo,JS=zC,e=On(e),kn(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break a}var o=0,s=-1,c=-1,l=0,u=0,d=e,f=null;b:for(;;){for(var p;d!==n||i!==0&&d.nodeType!==3||(s=o+i),d!==a||r!==0&&d.nodeType!==3||(c=o+r),d.nodeType===3&&(o+=d.nodeValue.length),(p=d.firstChild)!==null;)f=d,d=p;for(;;){if(d===e)break b;if(f===n&&++l===i&&(s=o),f===a&&++u===r&&(c=o),(p=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=p}n=s===-1||c===-1?null:{start:s,end:c}}else n=null}n||={start:0,end:0}}else n=null;for(YS={focusedElem:e,selectionRange:n},zC=!1,Cb=t;Cb!==null;)if(t=Cb,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,Cb=e;else for(;Cb!==null;){switch(e=t=Cb,n=e.alternate,i=e.flags,e.tag){case 0:if(i&4&&(e=e.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n<e.length;n++)i=e[n],i.ref.impl=i.nextImpl;break;case 11:case 15:break;case 1:i&1024&&n!==null&&Js(e,n);break;case 3:if(i&1024){if(e=e.stateNode.containerInfo,n=e.nodeType,n===9)id(e);else if(n===1)switch(e.nodeName){case`HEAD`:case`HTML`:case`BODY`:id(e);break;default:e.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(i&1024)throw Error(`This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.`)}if(e=t.sibling,e!==null){e.return=t.return,Cb=e;break}Cb=t.return}}function dc(e,t,n){var r=ii(),i=oi(),a=ci(),o=li(),s=n.flags;switch(n.tag){case 0:case 11:case 15:Cc(e,n),s&4&&Bs(n,_y|hy);break;case 1:if(Cc(e,n),s&4)if(e=n.stateNode,t===null)n.type.defaultProps||`ref`in n.memoizedProps||pb||(e.props!==n.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",A(n)||`instance`),e.state!==n.memoizedState&&console.error("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",A(n)||`instance`)),zs(n)?(hi(),R(n,wv,n,e),pi()):R(n,wv,n,e);else{var c=Go(n.type,t.memoizedProps);t=t.memoizedState,n.type.defaultProps||`ref`in n.memoizedProps||pb||(e.props!==n.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",A(n)||`instance`),e.state!==n.memoizedState&&console.error("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",A(n)||`instance`)),zs(n)?(hi(),R(n,Ev,n,e,c,t,e.__reactInternalSnapshotBeforeUpdate),pi()):R(n,Ev,n,e,c,t,e.__reactInternalSnapshotBeforeUpdate)}s&64&&Ks(n),s&512&&Zs(n,n.return);break;case 3:if(t=ei(),Cc(e,n),s&64&&(s=n.updateQueue,s!==null)){if(c=null,n.child!==null)switch(n.child.tag){case 27:case 5:c=n.child.stateNode;break;case 1:c=n.child.stateNode}try{R(n,Zi,s,c)}catch(e){Dl(n,n.return,e)}}e.effectDuration+=ti(t);break;case 27:t===null&&s&4&&cc(n);case 26:case 5:if(Cc(e,n),t===null){if(s&4)tc(n);else if(s&64){e=n.type,t=n.memoizedProps,c=n.stateNode;try{R(n,Hu,c,e,t,n)}catch(e){Dl(n,n.return,e)}}}s&512&&Zs(n,n.return);break;case 12:if(s&4){s=ei(),Cc(e,n),e=n.stateNode,e.effectDuration+=ni(s);try{R(n,$s,n,t,b_,e.effectDuration)}catch(e){Dl(n,n.return,e)}}else Cc(e,n);break;case 31:Cc(e,n),s&4&&hc(e,n);break;case 13:Cc(e,n),s&4&&gc(e,n),s&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(s=jl.bind(null,n),ud(e,s))));break;case 22:if(s=n.memoizedState!==null||yb,!s){t=t!==null&&t.memoizedState!==null||bb,c=yb;var l=bb;yb=s,(bb=t)&&!l?(Dc(e,n,(n.subtreeFlags&8772)!=0),(n.mode&Fg)!==q&&0<=J&&0<=Y&&.05<Y-J&&Bn(n,J,Y)):Cc(e,n),yb=c,bb=l}break;case 30:break;default:Cc(e,n)}(n.mode&Fg)!==q&&0<=J&&0<=Y&&((D_||.05<T_)&&Un(n,J,Y,T_,E_),n.alternate===null&&n.return!==null&&n.return.alternate!==null&&.05<Y-J&&(lc(n.return.alternate,n.return)||zn(n,J,Y,`Mount`))),ai(r),si(i),E_=a,D_=o}function fc(e){var t=e.alternate;t!==null&&(e.alternate=null,fc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Ie(t)),e.stateNode=null,e._debugOwner=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function pc(e,t,n){for(n=n.child;n!==null;)mc(e,t,n),n=n.sibling}function mc(e,t,n){if(Dp&&typeof Dp.onCommitFiberUnmount==`function`)try{Dp.onCommitFiberUnmount(Ep,n)}catch(e){Op||(Op=!0,console.error(`React instrumentation encountered an error: %o`,e))}var r=ii(),i=oi(),a=ci(),o=li();switch(n.tag){case 26:bb||Qs(n,t),pc(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(e=n.stateNode,e.parentNode.removeChild(e));break;case 27:bb||Qs(n,t);var s=Eb,c=Db;qu(n.type)&&(Eb=n.stateNode,Db=!1),pc(e,t,n),R(n,xd,n.stateNode),Eb=s,Db=c;break;case 5:bb||Qs(n,t);case 6:if(s=Eb,c=Db,Eb=null,pc(e,t,n),Eb=s,Db=c,Eb!==null)if(Db)try{R(n,Yu,Eb,n.stateNode)}catch(e){Dl(n,t,e)}else try{R(n,Ju,Eb,n.stateNode)}catch(e){Dl(n,t,e)}break;case 18:Eb!==null&&(Db?(e=Eb,Xu(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),gf(e)):Xu(Eb,n.stateNode));break;case 4:s=Eb,c=Db,Eb=n.stateNode.containerInfo,Db=!0,pc(e,t,n),Eb=s,Db=c;break;case 0:case 11:case 14:case 15:Us(gy,n,t),bb||Vs(n,t,_y),pc(e,t,n);break;case 1:bb||(Qs(n,t),s=n.stateNode,typeof s.componentWillUnmount==`function`&&Ys(n,t,s)),pc(e,t,n);break;case 21:pc(e,t,n);break;case 22:bb=(s=bb)||n.memoizedState!==null,pc(e,t,n),bb=s;break;default:pc(e,t,n)}(n.mode&Fg)!==q&&0<=J&&0<=Y&&(D_||.05<T_)&&Un(n,J,Y,T_,E_),ai(r),si(i),E_=a,D_=o}function hc(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{R(t,_d,e)}catch(e){Dl(t,t.return,e)}}}function gc(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{R(t,vd,e)}catch(e){Dl(t,t.return,e)}}function _c(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Sb),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Sb),t;default:throw Error(`Unexpected Suspense handler tag (`+e.tag+`). This is a bug in React.`)}}function vc(e,t){var n=_c(e);t.forEach(function(t){if(!n.has(t)){if(n.add(t),kp)if(wb!==null&&Tb!==null)Ll(Tb,wb);else throw Error(`Expected finished root and lanes to be set. This is a bug in React.`);var r=Ml.bind(null,e,t);t.then(r,r)}})}function yc(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=e,a=t,o=n[r],s=ii(),c=a;a:for(;c!==null;){switch(c.tag){case 27:if(qu(c.type)){Eb=c.stateNode,Db=!1;break a}break;case 5:Eb=c.stateNode,Db=!1;break a;case 3:case 4:Eb=c.stateNode.containerInfo,Db=!0;break a}c=c.return}if(Eb===null)throw Error(`Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.`);mc(i,a,o),Eb=null,Db=!1,(o.mode&Fg)!==q&&0<=J&&0<=Y&&.05<Y-J&&zn(o,J,Y,`Unmount`),ai(s),i=o,a=i.alternate,a!==null&&(a.return=null),i.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)bc(t,e),t=t.sibling}function bc(e,t){var n=ii(),r=oi(),i=ci(),a=li(),o=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:yc(t,e),xc(e),s&4&&(Us(gy|hy,e,e.return),Hs(gy|hy,e),Vs(e,e.return,_y|hy));break;case 1:if(yc(t,e),xc(e),s&512&&(bb||o===null||Qs(o,o.return)),s&64&&yb&&(s=e.updateQueue,s!==null&&(o=s.callbacks,o!==null))){var c=s.shared.hiddenCallbacks;s.shared.hiddenCallbacks=c===null?o:c.concat(o)}break;case 26:if(c=Ob,yc(t,e),xc(e),s&512&&(bb||o===null||Qs(o,o.return)),s&4){var l=o===null?null:o.memoizedState;if(s=e.memoizedState,o===null)if(s===null)if(e.stateNode===null){a:{s=e.type,o=e.memoizedProps,c=c.ownerDocument||c;b:switch(s){case`title`:l=c.getElementsByTagName(`title`)[0],(!l||l[Jp]||l[Vp]||l.namespaceURI===jm||l.hasAttribute(`itemprop`))&&(l=c.createElement(s),c.head.insertBefore(l,c.querySelector(`head > title`))),yu(l,s,o),l[Vp]=e,Ve(l),s=l;break a;case`link`:var u=Id(`link`,`href`,c).get(s+(o.href||``));if(u){for(var d=0;d<u.length;d++)if(l=u[d],l.getAttribute(`href`)===(o.href==null||o.href===``?null:o.href)&&l.getAttribute(`rel`)===(o.rel==null?null:o.rel)&&l.getAttribute(`title`)===(o.title==null?null:o.title)&&l.getAttribute(`crossorigin`)===(o.crossOrigin==null?null:o.crossOrigin)){u.splice(d,1);break b}}l=c.createElement(s),yu(l,s,o),c.head.appendChild(l);break;case`meta`:if(u=Id(`meta`,`content`,c).get(s+(o.content||``))){for(d=0;d<u.length;d++)if(l=u[d],B(o.content,`content`),l.getAttribute(`content`)===(o.content==null?null:``+o.content)&&l.getAttribute(`name`)===(o.name==null?null:o.name)&&l.getAttribute(`property`)===(o.property==null?null:o.property)&&l.getAttribute(`http-equiv`)===(o.httpEquiv==null?null:o.httpEquiv)&&l.getAttribute(`charset`)===(o.charSet==null?null:o.charSet)){u.splice(d,1);break b}}l=c.createElement(s),yu(l,s,o),c.head.appendChild(l);break;default:throw Error(`getNodesForType encountered a type it did not expect: "`+s+`". This is a bug in React.`)}l[Vp]=e,Ve(l),s=l}e.stateNode=s}else Ld(c,e.type,e.stateNode);else e.stateNode=Md(c,s,e.memoizedProps);else l===s?s===null&&e.stateNode!==null&&nc(e,e.memoizedProps,o.memoizedProps):(l===null?o.stateNode!==null&&(o=o.stateNode,o.parentNode.removeChild(o)):l.count--,s===null?Ld(c,e.type,e.stateNode):Md(c,s,e.memoizedProps))}break;case 27:yc(t,e),xc(e),s&512&&(bb||o===null||Qs(o,o.return)),o!==null&&s&4&&nc(e,e.memoizedProps,o.memoizedProps);break;case 5:if(yc(t,e),xc(e),s&512&&(bb||o===null||Qs(o,o.return)),e.flags&32){c=e.stateNode;try{R(e,Wu,c)}catch(t){Dl(e,e.return,t)}}s&4&&e.stateNode!=null&&(c=e.memoizedProps,nc(e,c,o===null?c:o.memoizedProps)),s&1024&&(xb=!0,e.type!==`form`&&console.error(`Unexpected host component type. Expected a form. This is a bug in React.`));break;case 6:if(yc(t,e),xc(e),s&4){if(e.stateNode===null)throw Error(`This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.`);s=e.memoizedProps,o=o===null?s:o.memoizedProps,c=e.stateNode;try{R(e,Gu,c,o,s)}catch(t){Dl(e,e.return,t)}}break;case 3:if(c=ei(),mC=null,l=Ob,Ob=Sd(t.containerInfo),yc(t,e),Ob=l,xc(e),s&4&&o!==null&&o.memoizedState.isDehydrated)try{R(e,gd,t.containerInfo)}catch(t){Dl(e,e.return,t)}xb&&(xb=!1,Sc(e)),t.effectDuration+=ti(c);break;case 4:s=Ob,Ob=Sd(e.stateNode.containerInfo),yc(t,e),xc(e),Ob=s;break;case 12:s=ei(),yc(t,e),xc(e),e.stateNode.effectDuration+=ni(s);break;case 31:yc(t,e),xc(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,vc(e,s)));break;case 13:yc(t,e),xc(e),e.child.flags&8192&&e.memoizedState!==null!=(o!==null&&o.memoizedState!==null)&&(bx=_p()),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,vc(e,s)));break;case 22:c=e.memoizedState!==null;var f=o!==null&&o.memoizedState!==null,p=yb,m=bb;if(yb=p||c,bb=m||f,yc(t,e),bb=m,yb=p,f&&!c&&!p&&!m&&(e.mode&Fg)!==q&&0<=J&&0<=Y&&.05<Y-J&&Bn(e,J,Y),xc(e),s&8192)a:for(t=e.stateNode,t._visibility=c?t._visibility&~Eg:t._visibility|Eg,!c||o===null||f||yb||bb||(Tc(e),(e.mode&Fg)!==q&&0<=J&&0<=Y&&.05<Y-J&&zn(e,J,Y,`Disconnect`)),o=null,t=e;;){if(t.tag===5||t.tag===26){if(o===null){f=o=t;try{l=f.stateNode,c?R(f,$u,l):R(f,nd,f.stateNode,f.memoizedProps)}catch(e){Dl(f,f.return,e)}}}else if(t.tag===6){if(o===null){f=t;try{u=f.stateNode,c?R(f,ed,u):R(f,rd,u,f.memoizedProps)}catch(e){Dl(f,f.return,e)}}}else if(t.tag===18){if(o===null){f=t;try{d=f.stateNode,c?R(f,Qu,d):R(f,td,f.stateNode)}catch(e){Dl(f,f.return,e)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break a;for(;t.sibling===null;){if(t.return===null||t.return===e)break a;o===t&&(o=null),t=t.return}o===t&&(o=null),t.sibling.return=t.return,t=t.sibling}s&4&&(s=e.updateQueue,s!==null&&(o=s.retryQueue,o!==null&&(s.retryQueue=null,vc(e,o))));break;case 19:yc(t,e),xc(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,vc(e,s)));break;case 30:break;case 21:break;default:yc(t,e),xc(e)}(e.mode&Fg)!==q&&0<=J&&0<=Y&&((D_||.05<T_)&&Un(e,J,Y,T_,E_),e.alternate===null&&e.return!==null&&e.return.alternate!==null&&.05<Y-J&&(lc(e.return.alternate,e.return)||zn(e,J,Y,`Mount`))),ai(n),si(r),E_=i,D_=a}function xc(e){var t=e.flags;if(t&2){try{R(e,sc,e)}catch(t){Dl(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Sc(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Sc(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Cc(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)dc(e,t.alternate,t),t=t.sibling}function wc(e){var t=ii(),n=oi(),r=ci(),i=li();switch(e.tag){case 0:case 11:case 14:case 15:Vs(e,e.return,_y),Tc(e);break;case 1:Qs(e,e.return);var a=e.stateNode;typeof a.componentWillUnmount==`function`&&Ys(e,e.return,a),Tc(e);break;case 27:R(e,xd,e.stateNode);case 26:case 5:Qs(e,e.return),Tc(e);break;case 22:e.memoizedState===null&&Tc(e);break;case 30:Tc(e);break;default:Tc(e)}(e.mode&Fg)!==q&&0<=J&&0<=Y&&(D_||.05<T_)&&Un(e,J,Y,T_,E_),ai(t),si(n),E_=r,D_=i}function Tc(e){for(e=e.child;e!==null;)wc(e),e=e.sibling}function Ec(e,t,n,r){var i=ii(),a=oi(),o=ci(),s=li(),c=n.flags;switch(n.tag){case 0:case 11:case 15:Dc(e,n,r),Bs(n,_y);break;case 1:if(Dc(e,n,r),t=n.stateNode,typeof t.componentDidMount==`function`&&R(n,wv,n,t),t=n.updateQueue,t!==null){e=n.stateNode;try{R(n,Xi,t,e)}catch(e){Dl(n,n.return,e)}}r&&c&64&&Ks(n),Zs(n,n.return);break;case 27:cc(n);case 26:case 5:Dc(e,n,r),r&&t===null&&c&4&&tc(n),Zs(n,n.return);break;case 12:if(r&&c&4){c=ei(),Dc(e,n,r),r=n.stateNode,r.effectDuration+=ni(c);try{R(n,$s,n,t,b_,r.effectDuration)}catch(e){Dl(n,n.return,e)}}else Dc(e,n,r);break;case 31:Dc(e,n,r),r&&c&4&&hc(e,n);break;case 13:Dc(e,n,r),r&&c&4&&gc(e,n);break;case 22:n.memoizedState===null&&Dc(e,n,r),Zs(n,n.return);break;case 30:break;default:Dc(e,n,r)}(n.mode&Fg)!==q&&0<=J&&0<=Y&&(D_||.05<T_)&&Un(n,J,Y,T_,E_),ai(i),si(a),E_=o,D_=s}function Dc(e,t,n){for(n&&=(t.subtreeFlags&8772)!=0,t=t.child;t!==null;)Ec(e,t.alternate,t,n),t=t.sibling}function Oc(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&Xr(e),n!=null&&Zr(n))}function kc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(Xr(t),e!=null&&Zr(e))}function Ac(e,t,n,r,i){if(t.subtreeFlags&10256||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(t=t.child;t!==null;){var a=t.sibling;jc(e,t,n,r,a===null?i:a.actualStartTime),t=a}}function jc(e,t,n,r,i){var a=ii(),o=oi(),s=ci(),c=li(),l=bg,u=t.flags;switch(t.tag){case 0:case 11:case 15:(t.mode&Fg)!==q&&0<t.actualStartTime&&t.flags&1&&Vn(t,t.actualStartTime,i,kb,n),Ac(e,t,n,r,i),u&2048&&Ws(t,vy|hy);break;case 1:(t.mode&Fg)!==q&&0<t.actualStartTime&&(t.flags&128?Hn(t,t.actualStartTime,i,[]):t.flags&1&&Vn(t,t.actualStartTime,i,kb,n)),Ac(e,t,n,r,i);break;case 3:var d=ei(),f=kb;kb=t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)==0,Ac(e,t,n,r,i),kb=f,u&2048&&(n=null,t.alternate!==null&&(n=t.alternate.memoizedState.cache),r=t.memoizedState.cache,r!==n&&(Xr(r),n!=null&&Zr(n))),e.passiveEffectDuration+=ti(d);break;case 12:if(u&2048){u=ei(),Ac(e,t,n,r,i),e=t.stateNode,e.passiveEffectDuration+=ni(u);try{R(t,ec,t,t.alternate,b_,e.passiveEffectDuration)}catch(e){Dl(t,t.return,e)}}else Ac(e,t,n,r,i);break;case 31:u=kb,d=t.alternate===null?null:t.alternate.memoizedState,f=t.memoizedState,d!==null&&f===null?(f=t.deletions,f!==null&&0<f.length&&f[0].tag===18?(kb=!1,d=d.hydrationErrors,d!==null&&Hn(t,t.actualStartTime,i,d)):kb=!0):kb=!1,Ac(e,t,n,r,i),kb=u;break;case 13:u=kb,d=t.alternate===null?null:t.alternate.memoizedState,f=t.memoizedState,d===null||d.dehydrated===null||f!==null&&f.dehydrated!==null?kb=!1:(f=t.deletions,f!==null&&0<f.length&&f[0].tag===18?(kb=!1,d=d.hydrationErrors,d!==null&&Hn(t,t.actualStartTime,i,d)):kb=!0),Ac(e,t,n,r,i),kb=u;break;case 23:break;case 22:f=t.stateNode,d=t.alternate,t.memoizedState===null?f._visibility&Dg?Ac(e,t,n,r,i):(f._visibility|=Dg,Mc(e,t,n,r,(t.subtreeFlags&10256)!=0||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child),i),(t.mode&Fg)===q||kb||(e=t.actualStartTime,0<=e&&.05<i-e&&Bn(t,e,i),0<=J&&0<=Y&&.05<Y-J&&Bn(t,J,Y))):f._visibility&Dg?Ac(e,t,n,r,i):Pc(e,t,n,r,i),u&2048&&Oc(d,t);break;case 24:Ac(e,t,n,r,i),u&2048&&kc(t.alternate,t);break;default:Ac(e,t,n,r,i)}(t.mode&Fg)!==q&&((e=!kb&&t.alternate===null&&t.return!==null&&t.return.alternate!==null)&&(n=t.actualStartTime,0<=n&&.05<i-n&&zn(t,n,i,`Mount`)),0<=J&&0<=Y&&((D_||.05<T_)&&Un(t,J,Y,T_,E_),e&&.05<Y-J&&zn(t,J,Y,`Mount`))),ai(a),si(o),E_=s,D_=c,bg=l}function Mc(e,t,n,r,i,a){for(i&&=(t.subtreeFlags&10256)!=0||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child),t=t.child;t!==null;){var o=t.sibling;Nc(e,t,n,r,i,o===null?a:o.actualStartTime),t=o}}function Nc(e,t,n,r,i,a){var o=ii(),s=oi(),c=ci(),l=li(),u=bg;i&&(t.mode&Fg)!==q&&0<t.actualStartTime&&t.flags&1&&Vn(t,t.actualStartTime,a,kb,n);var d=t.flags;switch(t.tag){case 0:case 11:case 15:Mc(e,t,n,r,i,a),Ws(t,vy);break;case 23:break;case 22:var f=t.stateNode;t.memoizedState===null?(f._visibility|=Dg,Mc(e,t,n,r,i,a)):f._visibility&Dg?Mc(e,t,n,r,i,a):Pc(e,t,n,r,a),i&&d&2048&&Oc(t.alternate,t);break;case 24:Mc(e,t,n,r,i,a),i&&d&2048&&kc(t.alternate,t);break;default:Mc(e,t,n,r,i,a)}(t.mode&Fg)!==q&&0<=J&&0<=Y&&(D_||.05<T_)&&Un(t,J,Y,T_,E_),ai(o),si(s),E_=c,D_=l,bg=u}function Pc(e,t,n,r,i){if(t.subtreeFlags&10256||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(var a=t.child;a!==null;){t=a.sibling;var o=e,s=n,c=r,l=t===null?i:t.actualStartTime,u=bg;(a.mode&Fg)!==q&&0<a.actualStartTime&&a.flags&1&&Vn(a,a.actualStartTime,l,kb,s);var d=a.flags;switch(a.tag){case 22:Pc(o,a,s,c,l),d&2048&&Oc(a.alternate,a);break;case 24:Pc(o,a,s,c,l),d&2048&&kc(a.alternate,a);break;default:Pc(o,a,s,c,l)}bg=u,a=t}}function Fc(e,t,n){if(e.subtreeFlags&Ab)for(e=e.child;e!==null;)Ic(e,t,n),e=e.sibling}function Ic(e,t,n){switch(e.tag){case 26:Fc(e,t,n),e.flags&Ab&&e.memoizedState!==null&&Bd(n,Ob,e.memoizedState,e.memoizedProps);break;case 5:Fc(e,t,n);break;case 3:case 4:var r=Ob;Ob=Sd(e.stateNode.containerInfo),Fc(e,t,n),Ob=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Ab,Ab=16777216,Fc(e,t,n),Ab=r):Fc(e,t,n));break;default:Fc(e,t,n)}}function Lc(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Rc(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n],i=ii();Cb=r,Hc(r,e),(r.mode&Fg)!==q&&0<=J&&0<=Y&&.05<Y-J&&zn(r,J,Y,`Unmount`),ai(i)}Lc(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)zc(e),e=e.sibling}function zc(e){var t=ii(),n=oi(),r=ci(),i=li();switch(e.tag){case 0:case 11:case 15:Rc(e),e.flags&2048&&Gs(e,e.return,vy|hy);break;case 3:var a=ei();Rc(e),e.stateNode.passiveEffectDuration+=ti(a);break;case 12:a=ei(),Rc(e),e.stateNode.passiveEffectDuration+=ni(a);break;case 22:a=e.stateNode,e.memoizedState!==null&&a._visibility&Dg&&(e.return===null||e.return.tag!==13)?(a._visibility&=~Dg,Bc(e),(e.mode&Fg)!==q&&0<=J&&0<=Y&&.05<Y-J&&zn(e,J,Y,`Disconnect`)):Rc(e);break;default:Rc(e)}(e.mode&Fg)!==q&&0<=J&&0<=Y&&(D_||.05<T_)&&Un(e,J,Y,T_,E_),ai(t),si(n),D_=i,E_=r}function Bc(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n],i=ii();Cb=r,Hc(r,e),(r.mode&Fg)!==q&&0<=J&&0<=Y&&.05<Y-J&&zn(r,J,Y,`Unmount`),ai(i)}Lc(e)}for(e=e.child;e!==null;)Vc(e),e=e.sibling}function Vc(e){var t=ii(),n=oi(),r=ci(),i=li();switch(e.tag){case 0:case 11:case 15:Gs(e,e.return,vy),Bc(e);break;case 22:var a=e.stateNode;a._visibility&Dg&&(a._visibility&=~Dg,Bc(e));break;default:Bc(e)}(e.mode&Fg)!==q&&0<=J&&0<=Y&&(D_||.05<T_)&&Un(e,J,Y,T_,E_),ai(t),si(n),D_=i,E_=r}function Hc(e,t){for(;Cb!==null;){var n=Cb,r=n,i=t,a=ii(),o=oi(),s=ci(),c=li();switch(r.tag){case 0:case 11:case 15:Gs(r,i,vy);break;case 23:case 22:r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(i=r.memoizedState.cachePool.pool,i!=null&&Xr(i));break;case 24:Zr(r.memoizedState.cache)}if((r.mode&Fg)!==q&&0<=J&&0<=Y&&(D_||.05<T_)&&Un(r,J,Y,T_,E_),ai(a),si(o),D_=c,E_=s,r=n.child,r!==null)r.return=n,Cb=r;else a:for(n=e;Cb!==null;){if(r=Cb,a=r.sibling,o=r.return,fc(r),r===n){Cb=null;break a}if(a!==null){a.return=o,Cb=a;break a}Cb=o}}}function Uc(){Nb.forEach(function(e){return e()})}function Wc(){var e=typeof IS_REACT_ACT_ENVIRONMENT<`u`?IS_REACT_ACT_ENVIRONMENT:void 0;return e||K.actQueue===null||console.error(`The current testing environment is not configured to support act(...)`),e}function Gc(e){if((Gb&Ib)!==Fb&&Jb!==0)return Jb&-Jb;var t=K.T;return t===null?Pe():(t._updatedFibers||=new Set,t._updatedFibers.add(e),Yl())}function Kc(){if(hx===0)if(!(Jb&536870912)||$g){var e=Pp;Pp<<=1,!(Pp&3932160)&&(Pp=262144),hx=e}else hx=536870912;return e=ly.current,e!==null&&(e.flags|=32),hx}function qc(e,t,n){if(tS&&console.error(`useInsertionEffect must not schedule updates.`),Xx&&(Zx=!0),(e===Kb&&(ax===Zb||ax===ix)||e.cancelPendingCommit!==null)&&(tl(e,0),Zc(e,Jb,hx,!1)),Te(e,n),(Gb&Ib)!==Fb&&e===Kb){if(dp)switch(t.tag){case 0:case 11:case 15:e=qb&&A(qb)||`Unknown`,iS.has(e)||(iS.add(e),t=A(t)||`Unknown`,console.error("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render",t,e,e));break;case 1:rS||=(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),!0)}}else kp&&je(e,t,n),zl(t),e===Kb&&((Gb&Ib)===Fb&&(px|=n),dx===Hb&&Zc(e,Jb,hx,!1)),Bl(e)}function Jc(e,t,n){if((Gb&(Ib|Lb))!==Fb)throw Error(`Should not already be working.`);if(Jb!==0&&qb!==null){var r=qb,i=_p();switch($_){case Qb:case Zb:var a=ev;gg&&((r=r._debugTask)?r.run(console.timeStamp.bind(console,`Suspended`,a,i,_g,void 0,`primary-light`)):console.timeStamp(`Suspended`,a,i,_g,void 0,`primary-light`));break;case ix:a=ev,gg&&((r=r._debugTask)?r.run(console.timeStamp.bind(console,`Action`,a,i,_g,void 0,`primary-light`)):console.timeStamp(`Action`,a,i,_g,void 0,`primary-light`));break;default:gg&&(r=i-ev,3>r||console.timeStamp(`Blocked`,ev,i,_g,void 0,5>r?`primary-light`:10>r?`primary`:100>r?`primary-dark`:`error`))}}a=(n=!n&&(t&127)==0&&(t&e.expiredLanes)===0||H(e,t))?ul(e,t):cl(e,t,!0);var o=n;do{if(a===Rb){cx&&!n&&Zc(e,t,0,!1),t=ax,ev=h_(),$_=t;break}else{if(r=_p(),i=e.current.alternate,o&&!Xc(i)){Rn(t),i=y_,a=r,!gg||a<=i||(Ex?Ex.run(console.timeStamp.bind(console,`Teared Render`,i,a,yg,vg,`error`)):console.timeStamp(`Teared Render`,i,a,yg,vg,`error`)),el(t,r),a=cl(e,t,!1),o=!1;continue}if(a===Bb){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){Rn(t),Jn(y_,r,t,Ex),el(t,r),t=s;a:{r=e,a=o,o=_x;var c=r.current.memoizedState.isDehydrated;if(c&&(tl(r,s).flags|=256),s=cl(r,s,!1),s!==Bb){if(lx&&!c){r.errorRecoveryDisabledLanes|=a,px|=a,a=Hb;break a}r=vx,vx=o,r!==null&&(vx===null?vx=r:vx.push.apply(vx,r))}a=s}if(o=!1,a!==Bb)continue;r=_p()}}if(a===zb){Rn(t),Jn(y_,r,t,Ex),el(t,r),tl(e,0),Zc(e,t,0,!0);break}a:{switch(n=e,a){case Rb:case zb:throw Error(`Root did not complete. This is a bug in React.`);case Hb:if((t&4194048)!==t)break;case Ub:Rn(t),Gn(y_,r,t,Ex),el(t,r),i=t,i&127?L_=r:i&4194048&&(J_=r),Zc(n,t,hx,!sx);break a;case Bb:vx=null;break;case Vb:case Wb:break;default:throw Error(`Unknown root exit status.`)}if(K.actQueue!==null)vl(n,i,t,vx,Tx,yx,hx,px,gx,a,null,null,y_,r);else{if((t&62914560)===t&&(o=bx+Sx-_p(),10<o)){if(Zc(n,t,hx,!sx),xe(n,0,!0)!==0)break a;zx=t,n.timeoutHandle=$S(Yc.bind(null,n,i,vx,Tx,yx,t,hx,px,gx,sx,a,`Throttled`,y_,r),o);break a}Yc(n,i,vx,Tx,yx,t,hx,px,gx,sx,a,null,y_,r)}}}break}while(1);Bl(e)}function Yc(e,t,n,r,i,a,o,s,c,l,u,d,f,p){e.timeoutHandle=tC;var m=t.subtreeFlags,h=null;if((m&8192||(m&16785408)==16785408)&&(h={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Jt},Ic(t,a,h),m=(a&62914560)===a?bx-_p():(a&4194048)===a?xx-_p():0,m=Vd(h,m),m!==null)){zx=a,e.cancelPendingCommit=m(vl.bind(null,e,t,a,n,r,i,o,s,c,u,h,h.waitingForViewTransition?`Waiting for the previous Animation`:0<h.count?0<h.imgCount?`Suspended on CSS and Images`:`Suspended on CSS`:h.imgCount===1?`Suspended on an Image`:0<h.imgCount?`Suspended on Images`:null,f,p)),Zc(e,a,o,!l);return}vl(e,t,a,n,r,i,o,s,c,u,h,d,f,p)}function Xc(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!zh(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Zc(e,t,n,r){t&=~mx,t&=~px,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-Ap(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&De(e,n,t)}function Qc(){return(Gb&(Ib|Lb))===Fb?(Vl(0,!1),!1):!0}function $c(){if(qb!==null){if(ax===Yb)var e=qb.return;else e=qb,Rr(),va(e),Uv=null,Wv=0,e=qb;for(;e!==null;)Rs(e.alternate,e),e=e.return;qb=null}}function el(e,t){e&127&&(O_=t),e&4194048&&(R_=t),e&62914560&&(Y_=t),e&2080374784&&(X_=t)}function tl(e,t){gg&&(console.timeStamp(`Blocking Track`,.003,.003,`Blocking`,vg,`primary-light`),console.timeStamp(`Transition Track`,.003,.003,`Transition`,vg,`primary-light`),console.timeStamp(`Suspense Track`,.003,.003,`Suspense`,vg,`primary-light`),console.timeStamp(`Idle Track`,.003,.003,`Idle`,vg,`primary-light`));var n=y_;if(y_=h_(),Jb!==0&&0<n){if(Rn(Jb),dx===Vb||dx===Hb)Gn(n,y_,t,Ex);else{var r=y_,i=Ex;if(gg&&!(r<=n)){var a=(t&738197653)===t?`tertiary-dark`:`primary-dark`,o=(t&536870912)===t?`Prewarm`:(t&201326741)===t?`Interrupted Hydration`:`Interrupted Render`;i?i.run(console.timeStamp.bind(console,o,n,r,yg,vg,a)):console.timeStamp(o,n,r,yg,vg,a)}}el(Jb,y_)}if(n=Ex,Ex=null,t&127){Ex=A_,i=0<=k_&&k_<O_?O_:k_,r=0<=P_&&P_<O_?O_:P_,a=0<=r?r:0<=i?i:y_,0<=L_?(Rn(2),Kn(L_,a,t,n)):Z_&127&&(Rn(2),Zn(O_,a,Q_)),n=i;var s=r,c=F_,l=0<I_,u=j_===__,d=j_===v_;if(i=y_,r=A_,a=M_,o=N_,gg){if(yg=`Blocking`,0<n?n>i&&(n=i):n=i,0<s?s>n&&(s=n):s=n,c!==null&&n>s){var f=l?`secondary-light`:`warning`;r?r.run(console.timeStamp.bind(console,l?`Consecutive`:`Event: `+c,s,n,yg,vg,f)):console.timeStamp(l?`Consecutive`:`Event: `+c,s,n,yg,vg,f)}i>n&&(s=u?`error`:(t&738197653)===t?`tertiary-light`:`primary-light`,u=d?`Promise Resolved`:u?`Cascading Update`:5<i-n?`Update Blocked`:`Update`,d=[],o!=null&&d.push([`Component name`,o]),a!=null&&d.push([`Method name`,a]),n={start:n,end:i,detail:{devtools:{properties:d,track:yg,trackGroup:vg,color:s}}},r?r.run(performance.measure.bind(performance,u,n)):performance.measure(u,n))}k_=-1.1,j_=0,N_=M_=null,L_=-1.1,I_=P_,P_=-1.1,O_=h_()}if(t&4194048&&(Ex=H_,i=0<=z_&&z_<R_?R_:z_,n=0<=B_&&B_<R_?R_:B_,r=0<=G_&&G_<R_?R_:G_,a=0<=r?r:0<=n?n:y_,0<=J_?(Rn(256),Kn(J_,a,t,Ex)):Z_&4194048&&(Rn(256),Zn(R_,a,Q_)),d=r,s=K_,c=0<q_,l=V_===v_,a=y_,r=H_,o=U_,u=W_,gg&&(yg=`Transition`,0<n?n>a&&(n=a):n=a,0<i?i>n&&(i=n):i=n,0<d?d>i&&(d=i):d=i,i>d&&s!==null&&(f=c?`secondary-light`:`warning`,r?r.run(console.timeStamp.bind(console,c?`Consecutive`:`Event: `+s,d,i,yg,vg,f)):console.timeStamp(c?`Consecutive`:`Event: `+s,d,i,yg,vg,f)),n>i&&(r?r.run(console.timeStamp.bind(console,`Action`,i,n,yg,vg,`primary-dark`)):console.timeStamp(`Action`,i,n,yg,vg,`primary-dark`)),a>n&&(i=l?`Promise Resolved`:5<a-n?`Update Blocked`:`Update`,d=[],u!=null&&d.push([`Component name`,u]),o!=null&&d.push([`Method name`,o]),n={start:n,end:a,detail:{devtools:{properties:d,track:yg,trackGroup:vg,color:`primary-light`}}},r?r.run(performance.measure.bind(performance,i,n)):performance.measure(i,n))),B_=z_=-1.1,V_=0,J_=-1.1,q_=G_,G_=-1.1,R_=h_()),t&62914560&&Z_&62914560&&(Rn(4194304),Zn(Y_,y_,Q_)),t&2080374784&&Z_&2080374784&&(Rn(268435456),Zn(X_,y_,Q_)),n=e.timeoutHandle,n!==tC&&(e.timeoutHandle=tC,eC(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),zx=0,$c(),Kb=e,qb=n=dr(e.current,null),Jb=t,ax=Yb,ox=null,sx=!1,cx=H(e,t),lx=!1,dx=Rb,gx=hx=mx=px=fx=0,vx=_x=null,yx=!1,t&8&&(t|=t&32),r=e.entangledLanes,r!==0)for(e=e.entanglements,r&=t;0<r;)i=31-Ap(r),a=1<<i,t|=e[i],r&=~a;return ux=t,Qn(),e=ag(),1e3<e-rg&&(K.recentlyCreatedOwnerStacks=0,rg=e),lv.discardPendingWarnings(),n}function nl(e,t){Ty=null,K.H=zy,K.getCurrentStack=null,dp=!1,up=null,t===Lv||t===zv?(t=Di(),ax=Qb):t===Rv?(t=Di(),ax=$b):ax=t===sb?rx:typeof t==`object`&&t&&typeof t.then==`function`?tx:Xb,ox=t;var n=qb;n===null?(dx=zb,Yo(e,yr(t,e.current))):n.mode&Fg&&di(n)}function rl(){var e=ly.current;return e===null?!0:(Jb&4194048)===Jb?uy===null:(Jb&62914560)===Jb||Jb&536870912?e===uy:!1}function il(){var e=K.H;return K.H=zy,e===null?zy:e}function al(){var e=K.A;return K.A=jb,e}function ol(e){Ex===null&&(Ex=e._debugTask==null?null:e._debugTask)}function sl(){dx=Hb,sx||(Jb&4194048)!==Jb&&ly.current!==null||(cx=!0),!(fx&134217727)&&!(px&134217727)||Kb===null||Zc(Kb,Jb,hx,!1)}function cl(e,t,n){var r=Gb;Gb|=Ib;var i=il(),a=al();if(Kb!==e||Jb!==t){if(kp){var o=e.memoizedUpdaters;0<o.size&&(Ll(e,Jb),o.clear()),Me(e,t)}Tx=null,tl(e,t)}t=!1,o=dx;a:do try{if(ax!==Yb&&qb!==null){var s=qb,c=ox;switch(ax){case rx:$c(),o=Ub;break a;case Qb:case Zb:case ix:case tx:ly.current===null&&(t=!0);var l=ax;if(ax=Yb,ox=null,hl(e,s,c,l),n&&cx){o=Rb;break a}break;default:l=ax,ax=Yb,ox=null,hl(e,s,c,l)}}ll(),o=dx;break}catch(t){nl(e,t)}while(1);return t&&e.shellSuspendCounter++,Rr(),Gb=r,K.H=i,K.A=a,qb===null&&(Kb=null,Jb=0,Qn()),o}function ll(){for(;qb!==null;)fl(qb)}function ul(e,t){var n=Gb;Gb|=Ib;var r=il(),i=al();if(Kb!==e||Jb!==t){if(kp){var a=e.memoizedUpdaters;0<a.size&&(Ll(e,Jb),a.clear()),Me(e,t)}Tx=null,Cx=_p()+wx,tl(e,t)}else cx=H(e,t);a:do try{if(ax!==Yb&&qb!==null)b:switch(t=qb,a=ox,ax){case Xb:ax=Yb,ox=null,hl(e,t,a,Xb);break;case Zb:case ix:if(wi(a)){ax=Yb,ox=null,pl(t);break}t=function(){ax!==Zb&&ax!==ix||Kb!==e||(ax=nx),Bl(e)},a.then(t,t);break a;case Qb:ax=nx;break a;case $b:ax=ex;break a;case nx:wi(a)?(ax=Yb,ox=null,pl(t)):(ax=Yb,ox=null,hl(e,t,a,nx));break;case ex:var o=null;switch(qb.tag){case 26:o=qb.memoizedState;case 5:case 27:var s=qb;if(o?zd(o):s.stateNode.complete){ax=Yb,ox=null;var c=s.sibling;if(c!==null)qb=c;else{var l=s.return;l===null?qb=null:(qb=l,gl(l))}break b}break;default:console.error(`Unexpected type of fiber triggered a suspensey commit. This is a bug in React.`)}ax=Yb,ox=null,hl(e,t,a,ex);break;case tx:ax=Yb,ox=null,hl(e,t,a,tx);break;case rx:$c(),dx=Ub;break a;default:throw Error(`Unexpected SuspendedReason. This is a bug in React.`)}K.actQueue===null?dl():ll();break}catch(t){nl(e,t)}while(1);return Rr(),K.H=r,K.A=i,Gb=n,qb===null?(Kb=null,Jb=0,Qn(),dx):Rb}function dl(){for(;qb!==null&&!hp();)fl(qb)}function fl(e){var t=e.alternate;(e.mode&Fg)===q?t=R(e,ks,t,e,ux):(ui(e),t=R(e,ks,t,e,ux),di(e)),e.memoizedProps=e.pendingProps,t===null?gl(e):qb=t}function pl(e){var t=R(e,ml,e);e.memoizedProps=e.pendingProps,t===null?gl(e):qb=t}function ml(e){var t=e.alternate,n=(e.mode&Fg)!==q;switch(n&&ui(e),e.tag){case 15:case 0:t=ps(t,e,e.pendingProps,e.type,void 0,Jb);break;case 11:t=ps(t,e,e.pendingProps,e.type.render,e.ref,Jb);break;case 5:va(e);default:Rs(t,e),e=qb=fr(e,ux),t=ks(t,e,ux)}return n&&di(e),t}function hl(e,t,n,r){Rr(),va(t),Uv=null,Wv=0;var i=t.return;try{if(es(e,i,t,n,Jb)){dx=zb,Yo(e,yr(n,e.current)),qb=null;return}}catch(t){if(i!==null)throw qb=i,t;dx=zb,Yo(e,yr(n,e.current)),qb=null;return}t.flags&32768?($g||r===Xb?e=!0:cx||Jb&536870912?e=!1:(sx=e=!0,(r===Zb||r===ix||r===Qb||r===tx)&&(r=ly.current,r!==null&&r.tag===13&&(r.flags|=16384))),_l(t,e)):gl(t)}function gl(e){var t=e;do{if(t.flags&32768){_l(t,sx);return}var n=t.alternate;if(e=t.return,ui(t),n=R(t,Is,n,t,ux),(t.mode&Fg)!==q&&fi(t),n!==null){qb=n;return}if(t=t.sibling,t!==null){qb=t;return}qb=t=e}while(t!==null);dx===Rb&&(dx=Wb)}function _l(e,t){do{var n=Ls(e.alternate,e);if(n!==null){n.flags&=32767,qb=n;return}if((e.mode&Fg)!==q){fi(e),n=e.actualDuration;for(var r=e.child;r!==null;)n+=r.actualDuration,r=r.sibling;e.actualDuration=n}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){qb=e;return}qb=e=n}while(e!==null);dx=Ub,qb=null}function vl(e,t,n,r,i,a,o,s,c,l,u,d,f,p){e.cancelPendingCommit=null;do wl();while(Q!==jx);if(lv.flushLegacyContextWarning(),lv.flushPendingUnsafeLifecycleWarnings(),(Gb&(Ib|Lb))!==Fb)throw Error(`Should not already be working.`);if(Rn(n),l===Bb?Jn(f,p,n,Ex):r===null?Wn(f,p,n,Ex):qn(f,p,n,r,t!==null&&t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)!=0,Ex),t!==null){if(n===0&&console.error(`finishedLanes should not be empty during a commit. This is a bug in React.`),t===e.current)throw Error(`Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.`);if(a=t.lanes|t.childLanes,a|=Ag,Ee(e,n,a,o,s,c),e===Kb&&(qb=Kb=null,Jb=0),Rx=t,Lx=e,zx=n,Bx=a,Hx=i,Ux=r,Vx=p,Wx=d,Gx=Ox,Kx=null,t.actualDuration!==0||t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,Rl(xp,function(){return QS=window.event,Gx===Ox&&(Gx=Ax),Tl(),null})):(e.callbackNode=null,e.callbackPriority=0),S_=null,b_=h_(),d!==null&&Yn(p,b_,d,Ex),r=(t.flags&13878)!=0,t.subtreeFlags&13878||r){r=K.T,K.T=null,i=Uf.p,Uf.p=Ip,o=Gb,Gb|=Lb;try{uc(e,t,n)}finally{Gb=o,Uf.p=i,K.T=r}}Q=Mx,yl(),bl(),xl()}}function yl(){if(Q===Mx){Q=jx;var e=Lx,t=Rx,n=zx,r=(t.flags&13878)!=0;if(t.subtreeFlags&13878||r){r=K.T,K.T=null;var i=Uf.p;Uf.p=Ip;var a=Gb;Gb|=Lb;try{wb=n,Tb=e,ri(),bc(t,e),Tb=wb=null,n=YS;var o=On(e.containerInfo),s=n.focusedElem,c=n.selectionRange;if(o!==s&&s&&s.ownerDocument&&Dn(s.ownerDocument.documentElement,s)){if(c!==null&&kn(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=En(s,h),v=En(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}zC=!!JS,YS=JS=null}finally{Gb=a,Uf.p=i,K.T=r}}e.current=t,Q=Nx}}function bl(){if(Q===Nx){Q=jx;var e=Kx;if(e!==null){b_=h_();var t=x_,n=b_;!gg||n<=t||(Q_?Q_.run(console.timeStamp.bind(console,e,t,n,yg,vg,`secondary-light`)):console.timeStamp(e,t,n,yg,vg,`secondary-light`))}e=Lx,t=Rx,n=zx;var r=(t.flags&8772)!=0;if(t.subtreeFlags&8772||r){r=K.T,K.T=null;var i=Uf.p;Uf.p=Ip;var a=Gb;Gb|=Lb;try{wb=n,Tb=e,ri(),dc(e,t.alternate,t),Tb=wb=null}finally{Gb=a,Uf.p=i,K.T=r}}e=Vx,t=Wx,x_=h_(),e=t===null?e:b_,t=x_,n=Gx===kx,r=Ex,S_===null?!gg||t<=e||(r?r.run(console.timeStamp.bind(console,n?`Commit Interrupted View Transition`:`Commit`,e,t,yg,vg,n?`error`:`secondary-dark`)):console.timeStamp(n?`Commit Interrupted View Transition`:`Commit`,e,t,yg,vg,n?`error`:`secondary-dark`)):Xn(e,t,S_,!1,r),Q=Px}}function xl(){if(Q===Fx||Q===Px){if(Q===Fx){var e=x_;x_=h_();var t=x_,n=Gx===kx;!gg||t<=e||(Q_?Q_.run(console.timeStamp.bind(console,n?`Interrupted View Transition`:`Starting Animation`,e,t,yg,vg,n?`error`:`secondary-light`)):console.timeStamp(n?`Interrupted View Transition`:`Starting Animation`,e,t,yg,vg,n?` error`:`secondary-light`)),Gx!==kx&&(Gx=Z)}Q=jx,gp(),e=Lx;var r=Rx;t=zx,n=Ux;var i=r.actualDuration!==0||(r.subtreeFlags&10256)!=0||(r.flags&10256)!=0;i?Q=Ix:(Q=jx,Rx=Lx=null,Cl(e,e.pendingLanes),$x=0,eS=null);var a=e.pendingLanes;if(a===0&&(Dx=null),i||Fl(e),a=Ne(t),r=r.stateNode,Dp&&typeof Dp.onCommitFiberRoot==`function`)try{var o=(r.current.flags&128)==128;switch(a){case Ip:var s=yp;break;case Lp:s=bp;break;case Rp:s=xp;break;case zp:s=Cp;break;default:s=xp}Dp.onCommitFiberRoot(Ep,r,s,o)}catch(e){Op||(Op=!0,console.error(`React instrumentation encountered an error: %o`,e))}if(kp&&e.memoizedUpdaters.clear(),Uc(),n!==null){o=K.T,s=Uf.p,Uf.p=Ip,K.T=null;try{var c=e.onRecoverableError;for(r=0;r<n.length;r++){var l=n[r],u=Sl(l.stack);R(l.source,c,l.value,u)}}finally{K.T=o,Uf.p=s}}zx&3&&wl(),Bl(e),a=e.pendingLanes,t&261930&&a&42?(nv=!0,e===Yx?Jx++:(Jx=0,Yx=e)):Jx=0,i||el(t,x_),Vl(0,!1)}}function Sl(e){return e={componentStack:e},Object.defineProperty(e,`digest`,{get:function(){console.error(`You are accessing "digest" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.`)}}),e}function Cl(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Zr(t)))}function wl(){return yl(),bl(),xl(),Tl()}function Tl(){if(Q!==Ix)return!1;var e=Lx,t=Bx;Bx=0;var n=Ne(zx),r=Rp===0||Rp>n?Rp:n;n=K.T;var i=Uf.p;try{Uf.p=r,K.T=null;var a=Hx;Hx=null,r=Lx;var o=zx;if(Q=jx,Rx=Lx=null,zx=0,(Gb&(Ib|Lb))!==Fb)throw Error(`Cannot flush passive effects while already rendering.`);Rn(o),Xx=!0,Zx=!1;var s=0;if(S_=null,s=_p(),Gx===Z)Zn(x_,s,Q_);else{var c=x_,l=s,u=Gx===Ax;!gg||l<=c||(Ex?Ex.run(console.timeStamp.bind(console,u?`Waiting for Paint`:`Waiting`,c,l,yg,vg,`secondary-light`)):console.timeStamp(u?`Waiting for Paint`:`Waiting`,c,l,yg,vg,`secondary-light`))}c=Gb,Gb|=Lb;var d=r.current;ri(),zc(d);var f=r.current;d=Vx,ri(),jc(r,f,o,a,d),Fl(r),Gb=c;var p=_p();if(f=s,d=Ex,S_===null?!gg||p<=f||(d?d.run(console.timeStamp.bind(console,`Remaining Effects`,f,p,yg,vg,`secondary-dark`)):console.timeStamp(`Remaining Effects`,f,p,yg,vg,`secondary-dark`)):Xn(f,p,S_,!0,d),el(o,p),Vl(0,!1),Zx?r===eS?$x++:($x=0,eS=r):$x=0,Zx=Xx=!1,Dp&&typeof Dp.onPostCommitFiberRoot==`function`)try{Dp.onPostCommitFiberRoot(Ep,r)}catch(e){Op||(Op=!0,console.error(`React instrumentation encountered an error: %o`,e))}var m=r.current.stateNode;return m.effectDuration=0,m.passiveEffectDuration=0,!0}finally{Uf.p=i,K.T=n,Cl(e,t)}}function El(e,t,n){t=yr(n,t),mi(t),t=Zo(e.stateNode,t,2),e=Wi(e,t,2),e!==null&&(Te(e,2),Bl(e))}function Dl(e,t,n){if(tS=!1,e.tag===3)El(e,e,n);else{for(;t!==null;){if(t.tag===3){El(t,e,n);return}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(Dx===null||!Dx.has(r))){e=yr(n,e),mi(e),n=Qo(2),r=Wi(t,n,2),r!==null&&($o(n,r,t,e),Te(r,2),Bl(r));return}}t=t.return}console.error(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
166
+
167
+ Error message:
168
+
169
+ %s`,n)}}function Ol(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Pb;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(lx=!0,i.add(n),r=kl.bind(null,e,t,n),kp&&Ll(e,n),t.then(r,r))}function kl(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,n&127?0>k_&&(O_=k_=h_(),A_=g_(`Promise Resolved`),j_=v_):n&4194048&&0>B_&&(R_=B_=h_(),H_=g_(`Promise Resolved`),V_=v_),Wc()&&K.actQueue===null&&console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
170
+
171
+ When testing, code that resolves suspended data should be wrapped into act(...):
172
+
173
+ act(() => {
174
+ /* finish loading suspended data */
175
+ });
176
+ /* assert on the output */
177
+
178
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`),Kb===e&&(Jb&n)===n&&(dx===Hb||dx===Vb&&(Jb&62914560)===Jb&&_p()-bx<Sx?(Gb&Ib)===Fb&&tl(e,0):mx|=n,gx===Jb&&(gx=0)),Bl(e)}function Al(e,t){t===0&&(t=Ce()),e=tr(e,t),e!==null&&(Te(e,t),Bl(e))}function jl(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Al(e,n)}function Ml(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(`Pinged unknown suspense boundary type. This is probably a bug in React.`)}r!==null&&r.delete(t),Al(e,n)}function Nl(e,t,n){if(t.subtreeFlags&67117056)for(t=t.child;t!==null;){var r=e,i=t,a=i.type===kf;a=n||a,i.tag===22?i.memoizedState===null&&(a&&i.flags&8192?R(i,Pl,r,i):i.subtreeFlags&67108864&&R(i,Nl,r,i,a)):i.flags&67108864?a&&R(i,Pl,r,i):Nl(r,i,a),t=t.sibling}}function Pl(e,t){V(!0);try{wc(t),Vc(t),Ec(e,t.alternate,t,!1),Nc(e,t,0,null,!1,0)}finally{V(!1)}}function Fl(e){var t=!0;e.current.mode&(Ig|Lg)||(t=!1),Nl(e,e.current,t)}function Il(e){if((Gb&Ib)===Fb){var t=e.tag;if(t===3||t===1||t===0||t===11||t===14||t===15){if(t=A(e)||`ReactComponent`,nS!==null){if(nS.has(t))return;nS.add(t)}else nS=new Set([t]);R(e,function(){console.error(`Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously tries to update the component. Move this work to useEffect instead.`)})}}}function Ll(e,t){kp&&e.memoizedUpdaters.forEach(function(n){je(e,n,t)})}function Rl(e,t){var n=K.actQueue;return n===null?pp(e,t):(n.push(t),aS)}function zl(e){Wc()&&K.actQueue===null&&R(e,function(){console.error(`An update to %s inside a test was not wrapped in act(...).
179
+
180
+ When testing, code that causes React state updates should be wrapped into act(...):
181
+
182
+ act(() => {
183
+ /* fire events that update state */
184
+ });
185
+ /* assert on the output */
186
+
187
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`,A(e))})}function Bl(e){e!==sS&&e.next===null&&(sS===null?oS=sS=e:sS=sS.next=e),uS=!0,K.actQueue===null?cS||(cS=!0,Jl()):lS||(lS=!0,Jl())}function Vl(e,t){if(!dS&&uS){dS=!0;do for(var n=!1,r=oS;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-Ap(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,Kl(r,a))}else a=Jb,a=xe(r,r===Kb?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==tC),!(a&3)||H(r,a)||(n=!0,Kl(r,a));r=r.next}while(n);dS=!1}}function Hl(){QS=window.event,Ul()}function Ul(){uS=lS=cS=!1;var e=0;fS!==0&&Lu()&&(e=fS);for(var t=_p(),n=null,r=oS;r!==null;){var i=r.next,a=Wl(r,t);a===0?(r.next=null,n===null?oS=i:n.next=i,i===null&&(sS=n)):(n=r,(e!==0||a&3)&&(uS=!0)),r=i}Q!==jx&&Q!==Ix||Vl(e,!1),fS!==0&&(fS=0)}function Wl(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-Ap(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=Se(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=Kb,n=Jb,n=xe(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==tC),r=e.callbackNode,n===0||e===t&&(ax===Zb||ax===ix)||e.cancelPendingCommit!==null)return r!==null&&ql(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||H(e,n)){if(t=n&-n,t!==e.callbackPriority||K.actQueue!==null&&r!==pS)ql(r);else return t;switch(Ne(n)){case Ip:case Lp:n=bp;break;case Rp:n=xp;break;case zp:n=Cp;break;default:n=xp}return r=Gl.bind(null,e),K.actQueue===null?n=pp(n,r):(K.actQueue.push(r),n=pS),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&ql(r),e.callbackPriority=2,e.callbackNode=null,2}function Gl(e,t){if(nv=tv=!1,QS=window.event,Q!==jx&&Q!==Ix)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Gx===Ox&&(Gx=Ax),wl()&&e.callbackNode!==n)return null;var r=Jb;return r=xe(e,e===Kb?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==tC),r===0?null:(Jc(e,r,t),Wl(e,_p()),e.callbackNode!=null&&e.callbackNode===n?Gl.bind(null,e):null)}function Kl(e,t){if(wl())return null;tv=nv,nv=!1,Jc(e,t,!0)}function ql(e){e!==pS&&e!==null&&mp(e)}function Jl(){K.actQueue!==null&&K.actQueue.push(function(){return Ul(),null}),rC(function(){(Gb&(Ib|Lb))===Fb?Ul():pp(yp,Hl)})}function Yl(){if(fS===0){var e=av;e===0&&(e=Np,Np<<=1,!(Np&261888)&&(Np=256)),fS=e}return fS}function Xl(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:(B(e,`action`),qt(``+e))}function Zl(e,t){var n=t.ownerDocument.createElement(`input`);return n.name=t.name,n.value=t.value,e.id&&n.setAttribute(`form`,e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function Ql(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=Xl((i[Hp]||null).action),o=r.submitter;o&&(t=(t=o[Hp]||null)?Xl(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new nh(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(fS!==0){var e=o?Zl(i,o):new FormData(i),t={pending:!0,data:e,method:i.method,action:a};Object.freeze(t),To(n,t,null,e)}}else typeof a==`function`&&(s.preventDefault(),e=o?Zl(i,o):new FormData(i),t={pending:!0,data:e,method:i.method,action:a},Object.freeze(t),To(n,t,a,e))},currentTarget:i}]})}}function $l(e,t,n){e.currentTarget=n;try{t(e)}catch(e){sg(e)}e.currentTarget=null}function eu(e,t){t=(t&4)!=0;for(var n=0;n<e.length;n++){var r=e[n];a:{var i=void 0,a=r.event;if(r=r.listeners,t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==i&&a.isPropagationStopped())break a;c===null?$l(a,s,l):R(c,$l,a,s,l),i=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==i&&a.isPropagationStopped())break a;c===null?$l(a,s,l):R(c,$l,a,s,l),i=c}}}}function tu(e,t){hS.has(e)||console.error(`Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.`,e);var n=t[Wp];n===void 0&&(n=t[Wp]=new Set);var r=e+`__bubble`;n.has(r)||(iu(t,e,2,!1),n.add(r))}function nu(e,t,n){hS.has(e)&&!t&&console.error(`Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.`,e);var r=0;t&&(r|=4),iu(n,e,r,t)}function ru(e){if(!e[gS]){e[gS]=!0,Yp.forEach(function(t){t!==`selectionchange`&&(hS.has(t)||nu(t,!1,e),nu(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[gS]||(t[gS]=!0,nu(`selectionchange`,!1,t))}}function iu(e,t,n,r){switch(of(t)){case Ip:var i=ef;break;case Lp:i=tf;break;default:i=nf}n=i.bind(null,t,n,e),i=void 0,!Xm||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function au(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var s=r.stateNode.containerInfo;if(s===i)break;if(o===4)for(o=r.return;o!==null;){var c=o.tag;if((c===3||c===4)&&o.stateNode.containerInfo===i)return;o=o.return}for(;s!==null;){if(o=Le(s),o===null)return;if(c=o.tag,c===5||c===6||c===26||c===27){r=a=o;continue a}s=s.parentNode}}r=r.return}Zt(function(){var r=a,i=Yt(n),o=[];a:{var s=tg.get(e);if(s!==void 0){var c=nh,l=e;switch(e){case`keypress`:if(en(n)===0)break a;case`keydown`:case`keyup`:c=yh;break;case`focusin`:l=`focus`,c=dh;break;case`focusout`:l=`blur`,c=dh;break;case`beforeblur`:case`afterblur`:c=dh;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:c=lh;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:c=uh;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:c=xh;break;case Jh:case Yh:case Xh:c=fh;break;case eg:c=Sh;break;case`scroll`:case`scrollend`:c=ih;break;case`wheel`:c=Ch;break;case`copy`:case`cut`:case`paste`:c=ph;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:c=bh;break;case`toggle`:case`beforetoggle`:c=wh}var u=(t&4)!=0,d=!u&&(e===`scroll`||e===`scrollend`),f=u?s===null?null:s+`Capture`:s;u=[];for(var p=r,m;p!==null;){var h=p;if(m=h.stateNode,h=h.tag,h!==5&&h!==26&&h!==27||m===null||f===null||(h=Qt(p,f),h!=null&&u.push(ou(p,h,m))),d)break;p=p.return}0<u.length&&(s=new c(s,l,null,n,i),o.push({event:s,listeners:u}))}}if(!(t&7)){a:{if(s=e===`mouseover`||e===`pointerover`,c=e===`mouseout`||e===`pointerout`,s&&n!==Gm&&(l=n.relatedTarget||n.fromElement)&&(Le(l)||l[Up]))break a;if((c||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,c?(l=n.relatedTarget||n.toElement,c=r,l=l?Le(l):null,l!==null&&(d=b(l),u=l.tag,l!==d||u!==5&&u!==27&&u!==6)&&(l=null)):(c=null,l=r),c!==l)){if(u=lh,h=`onMouseLeave`,f=`onMouseEnter`,p=`mouse`,(e===`pointerout`||e===`pointerover`)&&(u=bh,h=`onPointerLeave`,f=`onPointerEnter`,p=`pointer`),d=c==null?s:ze(c),m=l==null?s:ze(l),s=new u(h,p+`leave`,c,n,i),s.target=d,s.relatedTarget=m,h=null,Le(i)===r&&(u=new u(f,p+`enter`,l,n,i),u.target=m,u.relatedTarget=d,h=u),d=h,c&&l)b:{for(u=cu,f=c,p=l,m=0,h=f;h;h=u(h))m++;h=0;for(var g=p;g;g=u(g))h++;for(;0<m-h;)f=u(f),m--;for(;0<h-m;)p=u(p),h--;for(;m--;){if(f===p||p!==null&&f===p.alternate){u=f;break b}f=u(f),p=u(p)}u=null}else u=null;c!==null&&lu(o,s,c,u,!1),l!==null&&d!==null&&lu(o,d,l,u,!0)}}a:{if(s=r?ze(r):window,c=s.nodeName&&s.nodeName.toLowerCase(),c===`select`||c===`input`&&s.type===`file`)var _=gn;else if(dn(s))if(Rh)_=Sn;else{_=bn;var v=yn}else c=s.nodeName,!c||c.toLowerCase()!==`input`||s.type!==`checkbox`&&s.type!==`radio`?r&&Vt(r.elementType)&&(_=gn):_=xn;if(_&&=_(e,r)){pn(o,_,n,i);break a}v&&v(e,s,r),e===`focusout`&&r&&s.type===`number`&&r.memoizedProps.value!=null&&ot(s,`number`,s.value)}switch(v=r?ze(r):window,e){case`focusin`:(dn(v)||v.contentEditable===`true`)&&(Vh=v,Hh=r,Uh=null);break;case`focusout`:Uh=Hh=Vh=null;break;case`mousedown`:Wh=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Wh=!1,An(o,n,i);break;case`selectionchange`:if(Bh)break;case`keydown`:case`keyup`:An(o,n,i)}var y;if(Dh)b:{switch(e){case`compositionstart`:var x=`onCompositionStart`;break b;case`compositionend`:x=`onCompositionEnd`;break b;case`compositionupdate`:x=`onCompositionUpdate`;break b}x=void 0}else Ph?sn(e,n)&&(x=`onCompositionEnd`):e===`keydown`&&n.keyCode===Eh&&(x=`onCompositionStart`);x&&(Ah&&n.locale!==`ko`&&(Ph||x!==`onCompositionStart`?x===`onCompositionEnd`&&Ph&&(y=$t()):(Qm=i,$m=`value`in Qm?Qm.value:Qm.textContent,Ph=!0)),v=su(r,x),0<v.length&&(x=new mh(x,e,null,n,i),o.push({event:x,listeners:v}),y?x.data=y:(y=cn(n),y!==null&&(x.data=y)))),(y=kh?ln(e,n):un(e,n))&&(x=su(r,`onBeforeInput`),0<x.length&&(v=new hh(`onBeforeInput`,`beforeinput`,null,n,i),o.push({event:v,listeners:x}),v.data=y)),Ql(o,e,r,n,i)}eu(o,t)})}function ou(e,t,n){return{instance:e,listener:t,currentTarget:n}}function su(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=Qt(e,n),i!=null&&r.unshift(ou(e,i,a)),i=Qt(e,t),i!=null&&r.push(ou(e,i,a))),e.tag===3)return r;e=e.return}return[]}function cu(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function lu(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=Qt(n,a),l!=null&&o.unshift(ou(n,l,c))):i||(l=Qt(n,a),l!=null&&o.push(ou(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}function uu(e,t){Wt(e,t),e!==`input`&&e!==`textarea`&&e!==`select`||t==null||t.value!==null||Rm||(Rm=!0,e===`select`&&t.multiple?console.error("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",e):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",e));var n={registrationNameDependencies:Xp,possibleRegistrationNames:Zp};Vt(e)||typeof t.is==`string`||Kt(e,t,n),t.contentEditable&&!t.suppressContentEditableWarning&&t.children!=null&&console.error("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.")}function du(e,t,n,r){t!==n&&(n=hu(n),hu(t)!==n&&(r[e]=t))}function fu(e,t,n){t.forEach(function(t){n[xu(t)]=t===`style`?Su(e):e.getAttribute(t)})}function pu(e,t){!1===t?console.error("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",e,e,e):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",e,typeof t)}function mu(e,t){return e=e.namespaceURI===Am||e.namespaceURI===jm?e.ownerDocument.createElementNS(e.namespaceURI,e.tagName):e.ownerDocument.createElement(e.tagName),e.innerHTML=t,e.innerHTML}function hu(e){return me(e)&&(console.error(`The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.`,pe(e)),he(e)),(typeof e==`string`?e:``+e).replace(TS,`
188
+ `).replace(ES,``)}function gu(e,t){return t=hu(t),hu(e)===t}function _u(e,t,n,r,i,a){switch(n){case`children`:typeof r==`string`?(It(r,t,!1),t===`body`||t===`textarea`&&r===``||Lt(e,r)):(typeof r==`number`||typeof r==`bigint`)&&(It(``+r,t,!1),t!==`body`&&Lt(e,``+r));break;case`className`:Je(e,`class`,r);break;case`tabIndex`:Je(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:Je(e,n,r);break;case`style`:Bt(e,r,a);break;case`data`:if(t!==`object`){Je(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){console.error(n===`src`?`An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.`:`An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.`,n,n),e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}B(r,n),r=qt(``+r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(r!=null&&(t===`form`?n===`formAction`?console.error(`You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>.`):typeof r==`function`&&(i.encType==null&&i.method==null||SS||(SS=!0,console.error(`Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.`)),i.target==null||xS||(xS=!0,console.error(`Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window.`))):t===`input`||t===`button`?n===`action`?console.error(`You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>.`):t!==`input`||i.type===`submit`||i.type===`image`||yS?t!==`button`||i.type==null||i.type===`submit`||yS?typeof r==`function`&&(i.name==null||bS||(bS=!0,console.error(`Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.`)),i.formEncType==null&&i.formMethod==null||SS||(SS=!0,console.error(`Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.`)),i.formTarget==null||xS||(xS=!0,console.error(`Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window.`))):(yS=!0,console.error(`A button can only specify a formAction along with type="submit" or no type.`)):(yS=!0,console.error(`An input can only specify a formAction along with type="submit" or type="image".`)):console.error(n===`action`?`You can only pass the action prop to <form>.`:`You can only pass the formAction prop to <input> or <button>.`)),typeof r==`function`){e.setAttribute(n,`javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')`);break}else typeof a==`function`&&(n===`formAction`?(t!==`input`&&_u(e,t,`name`,i.name,i,null),_u(e,t,`formEncType`,i.formEncType,i,null),_u(e,t,`formMethod`,i.formMethod,i,null),_u(e,t,`formTarget`,i.formTarget,i,null)):(_u(e,t,`encType`,i.encType,i,null),_u(e,t,`method`,i.method,i,null),_u(e,t,`target`,i.target,i,null)));if(r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}B(r,n),r=qt(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(typeof r!=`function`&&pu(n,r),e.onclick=Jt);break;case`onScroll`:r!=null&&(typeof r!=`function`&&pu(n,r),tu(`scroll`,e));break;case`onScrollEnd`:r!=null&&(typeof r!=`function`&&pu(n,r),tu(`scrollend`,e));break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(n=r.__html,n!=null){if(i.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=n}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}B(r,n),n=qt(``+r),e.setAttributeNS(DS,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?(B(r,n),e.setAttribute(n,``+r)):e.removeAttribute(n);break;case`inert`:r!==``||wS[n]||(wS[n]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",n));case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?(B(r,n),e.setAttribute(n,r)):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?(B(r,n),e.setAttribute(n,r)):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):(B(r,n),e.setAttribute(n,r));break;case`popover`:tu(`beforetoggle`,e),tu(`toggle`,e),qe(e,`popover`,r);break;case`xlinkActuate`:Ye(e,DS,`xlink:actuate`,r);break;case`xlinkArcrole`:Ye(e,DS,`xlink:arcrole`,r);break;case`xlinkRole`:Ye(e,DS,`xlink:role`,r);break;case`xlinkShow`:Ye(e,DS,`xlink:show`,r);break;case`xlinkTitle`:Ye(e,DS,`xlink:title`,r);break;case`xlinkType`:Ye(e,DS,`xlink:type`,r);break;case`xmlBase`:Ye(e,OS,`xml:base`,r);break;case`xmlLang`:Ye(e,OS,`xml:lang`,r);break;case`xmlSpace`:Ye(e,OS,`xml:space`,r);break;case`is`:a!=null&&console.error(`Cannot update the "is" prop after it has been initialized.`),qe(e,`is`,r);break;case`innerText`:case`textContent`:break;case`popoverTarget`:CS||typeof r!=`object`||!r||(CS=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",r));default:!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`?(n=Ht(n),qe(e,n,r)):Xp.hasOwnProperty(n)&&r!=null&&typeof r!=`function`&&pu(n,r)}}function vu(e,t,n,r,i,a){switch(n){case`style`:Bt(e,r,a);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(n=r.__html,n!=null){if(i.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=n}}break;case`children`:typeof r==`string`?Lt(e,r):(typeof r==`number`||typeof r==`bigint`)&&Lt(e,``+r);break;case`onScroll`:r!=null&&(typeof r!=`function`&&pu(n,r),tu(`scroll`,e));break;case`onScrollEnd`:r!=null&&(typeof r!=`function`&&pu(n,r),tu(`scrollend`,e));break;case`onClick`:r!=null&&(typeof r!=`function`&&pu(n,r),e.onclick=Jt);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if(Xp.hasOwnProperty(n))r!=null&&typeof r!=`function`&&pu(n,r);else a:{if(n[0]===`o`&&n[1]===`n`&&(i=n.endsWith(`Capture`),t=n.slice(2,i?n.length-7:void 0),a=e[Hp]||null,a=a==null?null:a[n],typeof a==`function`&&e.removeEventListener(t,a,i),typeof r==`function`)){typeof a!=`function`&&a!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,i);break a}n in e?e[n]=r:!0===r?e.setAttribute(n,``):qe(e,n,r)}}}function yu(e,t,n){switch(uu(t,n),t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:tu(`error`,e),tu(`load`,e);var r=!1,i=!1,a;for(a in n)if(n.hasOwnProperty(a)){var o=n[a];if(o!=null)switch(a){case`src`:r=!0;break;case`srcSet`:i=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:_u(e,t,a,o,n,null)}}i&&_u(e,t,`srcSet`,n.srcSet,n,null),r&&_u(e,t,`src`,n.src,n,null);return;case`input`:We(`input`,n),tu(`invalid`,e);var s=a=o=i=null,c=null,l=null;for(r in n)if(n.hasOwnProperty(r)){var u=n[r];if(u!=null)switch(r){case`name`:i=u;break;case`type`:o=u;break;case`checked`:c=u;break;case`defaultChecked`:l=u;break;case`value`:a=u;break;case`defaultValue`:s=u;break;case`children`:case`dangerouslySetInnerHTML`:if(u!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:_u(e,t,r,u,n,null)}}rt(e,n),at(e,a,s,c,l,o,i,!1);return;case`select`:for(i in We(`select`,n),tu(`invalid`,e),r=o=a=null,n)if(n.hasOwnProperty(i)&&(s=n[i],s!=null))switch(i){case`value`:a=s;break;case`defaultValue`:o=s;break;case`multiple`:r=s;default:_u(e,t,i,s,n,null)}ut(e,n),t=a,n=o,e.multiple=!!r,t==null?n!=null&&lt(e,!!r,n,!0):lt(e,!!r,t,!1);return;case`textarea`:for(o in We(`textarea`,n),tu(`invalid`,e),a=i=r=null,n)if(n.hasOwnProperty(o)&&(s=n[o],s!=null))switch(o){case`value`:r=s;break;case`defaultValue`:i=s;break;case`children`:a=s;break;case`dangerouslySetInnerHTML`:if(s!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:_u(e,t,o,s,n,null)}dt(e,n),pt(e,r,i,a);return;case`option`:for(c in st(e,n),n)if(n.hasOwnProperty(c)&&(r=n[c],r!=null))switch(c){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:_u(e,t,c,r,n,null)}return;case`dialog`:tu(`beforetoggle`,e),tu(`toggle`,e),tu(`cancel`,e),tu(`close`,e);break;case`iframe`:case`object`:tu(`load`,e);break;case`video`:case`audio`:for(r=0;r<mS.length;r++)tu(mS[r],e);break;case`image`:tu(`error`,e),tu(`load`,e);break;case`details`:tu(`toggle`,e);break;case`embed`:case`source`:case`link`:tu(`error`,e),tu(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`children`:case`dangerouslySetInnerHTML`:throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:_u(e,t,l,r,n,null)}return;default:if(Vt(t)){for(u in n)n.hasOwnProperty(u)&&(r=n[u],r!==void 0&&vu(e,t,u,r,n,void 0));return}}for(s in n)n.hasOwnProperty(s)&&(r=n[s],r!=null&&_u(e,t,s,r,n,null))}function bu(e,t,n,r){switch(uu(t,r),t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var i=null,a=null,o=null,s=null,c=null,l=null,u=null;for(p in n){var d=n[p];if(n.hasOwnProperty(p)&&d!=null)switch(p){case`checked`:break;case`value`:break;case`defaultValue`:c=d;default:r.hasOwnProperty(p)||_u(e,t,p,null,r,d)}}for(var f in r){var p=r[f];if(d=n[f],r.hasOwnProperty(f)&&(p!=null||d!=null))switch(f){case`type`:a=p;break;case`name`:i=p;break;case`checked`:l=p;break;case`defaultChecked`:u=p;break;case`value`:o=p;break;case`defaultValue`:s=p;break;case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:p!==d&&_u(e,t,f,p,r,d)}}t=n.type===`checkbox`||n.type===`radio`?n.checked!=null:n.value!=null,r=r.type===`checkbox`||r.type===`radio`?r.checked!=null:r.value!=null,t||!r||vS||(console.error(`A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components`),vS=!0),!t||r||_S||(console.error(`A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components`),_S=!0),it(e,o,s,c,l,u,a,i);return;case`select`:for(a in p=o=s=f=null,n)if(c=n[a],n.hasOwnProperty(a)&&c!=null)switch(a){case`value`:break;case`multiple`:p=c;default:r.hasOwnProperty(a)||_u(e,t,a,null,r,c)}for(i in r)if(a=r[i],c=n[i],r.hasOwnProperty(i)&&(a!=null||c!=null))switch(i){case`value`:f=a;break;case`defaultValue`:s=a;break;case`multiple`:o=a;default:a!==c&&_u(e,t,i,a,r,c)}r=s,t=o,n=p,f==null?!!n!=!!t&&(r==null?lt(e,!!t,t?[]:``,!1):lt(e,!!t,r,!0)):lt(e,!!t,f,!1);return;case`textarea`:for(s in p=f=null,n)if(i=n[s],n.hasOwnProperty(s)&&i!=null&&!r.hasOwnProperty(s))switch(s){case`value`:break;case`children`:break;default:_u(e,t,s,null,r,i)}for(o in r)if(i=r[o],a=n[o],r.hasOwnProperty(o)&&(i!=null||a!=null))switch(o){case`value`:f=i;break;case`defaultValue`:p=i;break;case`children`:break;case`dangerouslySetInnerHTML`:if(i!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:i!==a&&_u(e,t,o,i,r,a)}ft(e,f,p);return;case`option`:for(var m in n)if(f=n[m],n.hasOwnProperty(m)&&f!=null&&!r.hasOwnProperty(m))switch(m){case`selected`:e.selected=!1;break;default:_u(e,t,m,null,r,f)}for(c in r)if(f=r[c],p=n[c],r.hasOwnProperty(c)&&f!==p&&(f!=null||p!=null))switch(c){case`selected`:e.selected=f&&typeof f!=`function`&&typeof f!=`symbol`;break;default:_u(e,t,c,f,r,p)}return;case`img`:case`link`:case`area`:case`base`:case`br`:case`col`:case`embed`:case`hr`:case`keygen`:case`meta`:case`param`:case`source`:case`track`:case`wbr`:case`menuitem`:for(var h in n)f=n[h],n.hasOwnProperty(h)&&f!=null&&!r.hasOwnProperty(h)&&_u(e,t,h,null,r,f);for(l in r)if(f=r[l],p=n[l],r.hasOwnProperty(l)&&f!==p&&(f!=null||p!=null))switch(l){case`children`:case`dangerouslySetInnerHTML`:if(f!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:_u(e,t,l,f,r,p)}return;default:if(Vt(t)){for(var g in n)f=n[g],n.hasOwnProperty(g)&&f!==void 0&&!r.hasOwnProperty(g)&&vu(e,t,g,void 0,r,f);for(u in r)f=r[u],p=n[u],!r.hasOwnProperty(u)||f===p||f===void 0&&p===void 0||vu(e,t,u,f,r,p);return}}for(var _ in n)f=n[_],n.hasOwnProperty(_)&&f!=null&&!r.hasOwnProperty(_)&&_u(e,t,_,null,r,f);for(d in r)f=r[d],p=n[d],!r.hasOwnProperty(d)||f===p||f==null&&p==null||_u(e,t,d,f,r,p)}function xu(e){switch(e){case`class`:return`className`;case`for`:return`htmlFor`;default:return e}}function Su(e){var t={};e=e.style;for(var n=0;n<e.length;n++){var r=e[n];t[r]=e.getPropertyValue(r)}return t}function Cu(e,t,n){if(t!=null&&typeof t!=`object`)console.error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");else{var r,i=r=``,a;for(a in t)if(t.hasOwnProperty(a)){var o=t[a];o!=null&&typeof o!=`boolean`&&o!==``&&(a.indexOf(`--`)===0?(ge(o,a),r+=i+a+`:`+(``+o).trim()):typeof o!=`number`||o===0||km.has(a)?(ge(o,a),r+=i+a.replace(ym,`-$1`).toLowerCase().replace(bm,`-ms-`)+`:`+(``+o).trim()):r+=i+a.replace(ym,`-$1`).toLowerCase().replace(bm,`-ms-`)+`:`+o+`px`,i=`;`)}r||=null,t=e.getAttribute(`style`),t!==r&&(r=hu(r),hu(t)!==r&&(n.style=Su(e)))}}function wu(e,t,n,r,i,a){if(i.delete(n),e=e.getAttribute(n),e===null)switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:return}else if(r!=null)switch(typeof r){case`function`:case`symbol`:case`boolean`:break;default:if(B(r,t),e===``+r)return}du(t,e,r,a)}function Tu(e,t,n,r,i,a){if(i.delete(n),e=e.getAttribute(n),e===null){switch(typeof r){case`function`:case`symbol`:return}if(!r)return}else switch(typeof r){case`function`:case`symbol`:break;default:if(r)return}du(t,e,r,a)}function Eu(e,t,n,r,i,a){if(i.delete(n),e=e.getAttribute(n),e===null)switch(typeof r){case`undefined`:case`function`:case`symbol`:return}else if(r!=null)switch(typeof r){case`function`:case`symbol`:break;default:if(B(r,n),e===``+r)return}du(t,e,r,a)}function Du(e,t,n,r,i,a){if(i.delete(n),e=e.getAttribute(n),e===null)switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:return;default:if(isNaN(r))return}else if(r!=null)switch(typeof r){case`function`:case`symbol`:case`boolean`:break;default:if(!isNaN(r)&&(B(r,t),e===``+r))return}du(t,e,r,a)}function Ou(e,t,n,r,i,a){if(i.delete(n),e=e.getAttribute(n),e===null)switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:return}else if(r!=null)switch(typeof r){case`function`:case`symbol`:case`boolean`:break;default:if(B(r,t),n=qt(``+r),e===n)return}du(t,e,r,a)}function ku(e,t,n,r){for(var i={},a=new Set,o=e.attributes,s=0;s<o.length;s++)switch(o[s].name.toLowerCase()){case`value`:break;case`checked`:break;case`selected`:break;default:a.add(o[s].name)}if(Vt(t)){for(var c in n)if(n.hasOwnProperty(c)){var l=n[c];if(l!=null){if(Xp.hasOwnProperty(c))typeof l!=`function`&&pu(c,l);else if(!0!==n.suppressHydrationWarning)switch(c){case`children`:typeof l!=`string`&&typeof l!=`number`||du(`children`,e.textContent,l,i);continue;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:continue;case`dangerouslySetInnerHTML`:o=e.innerHTML,l=l?l.__html:void 0,l!=null&&(l=mu(e,l),du(c,o,l,i));continue;case`style`:a.delete(c),Cu(e,l,i);continue;case`offsetParent`:case`offsetTop`:case`offsetLeft`:case`offsetWidth`:case`offsetHeight`:case`isContentEditable`:case`outerText`:case`outerHTML`:a.delete(c.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",c);continue;case`className`:a.delete(`class`),o=Ke(e,`class`,l),du(`className`,o,l,i);continue;default:r.context===GS&&t!==`svg`&&t!==`math`?a.delete(c.toLowerCase()):a.delete(c),o=Ke(e,c,l),du(c,o,l,i)}}}}else for(l in n)if(n.hasOwnProperty(l)&&(c=n[l],c!=null)){if(Xp.hasOwnProperty(l))typeof c!=`function`&&pu(l,c);else if(!0!==n.suppressHydrationWarning)switch(l){case`children`:typeof c!=`string`&&typeof c!=`number`||du(`children`,e.textContent,c,i);continue;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`value`:case`checked`:case`selected`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:continue;case`dangerouslySetInnerHTML`:o=e.innerHTML,c=c?c.__html:void 0,c!=null&&(c=mu(e,c),o!==c&&(i[l]={__html:o}));continue;case`className`:wu(e,l,`class`,c,a,i);continue;case`tabIndex`:wu(e,l,`tabindex`,c,a,i);continue;case`style`:a.delete(l),Cu(e,c,i);continue;case`multiple`:a.delete(l),du(l,e.multiple,c,i);continue;case`muted`:a.delete(l),du(l,e.muted,c,i);continue;case`autoFocus`:a.delete(`autofocus`),du(l,e.autofocus,c,i);continue;case`data`:if(t!==`object`){a.delete(l),o=e.getAttribute(`data`),du(l,o,c,i);continue}case`src`:case`href`:if(!(c!==``||t===`a`&&l===`href`||t===`object`&&l===`data`)){console.error(l===`src`?`An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.`:`An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.`,l,l);continue}Ou(e,l,l,c,a,i);continue;case`action`:case`formAction`:if(o=e.getAttribute(l),typeof c==`function`){a.delete(l.toLowerCase()),l===`formAction`?(a.delete(`name`),a.delete(`formenctype`),a.delete(`formmethod`),a.delete(`formtarget`)):(a.delete(`enctype`),a.delete(`method`),a.delete(`target`));continue}else if(o===kS){a.delete(l.toLowerCase()),du(l,`function`,c,i);continue}Ou(e,l,l.toLowerCase(),c,a,i);continue;case`xlinkHref`:Ou(e,l,`xlink:href`,c,a,i);continue;case`contentEditable`:Eu(e,l,`contenteditable`,c,a,i);continue;case`spellCheck`:Eu(e,l,`spellcheck`,c,a,i);continue;case`draggable`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:Eu(e,l,l,c,a,i);continue;case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:Tu(e,l,l.toLowerCase(),c,a,i);continue;case`capture`:case`download`:a:{s=e;var u=o=l,d=i;if(a.delete(u),s=s.getAttribute(u),s===null)switch(typeof c){case`undefined`:case`function`:case`symbol`:break a;default:if(!1===c)break a}else if(c!=null)switch(typeof c){case`function`:case`symbol`:break;case`boolean`:if(!0===c&&s===``)break a;break;default:if(B(c,o),s===``+c)break a}du(o,s,c,d)}continue;case`cols`:case`rows`:case`size`:case`span`:a:{if(s=e,u=o=l,d=i,a.delete(u),s=s.getAttribute(u),s===null)switch(typeof c){case`undefined`:case`function`:case`symbol`:case`boolean`:break a;default:if(isNaN(c)||1>c)break a}else if(c!=null)switch(typeof c){case`function`:case`symbol`:case`boolean`:break;default:if(!(isNaN(c)||1>c)&&(B(c,o),s===``+c))break a}du(o,s,c,d)}continue;case`rowSpan`:Du(e,l,`rowspan`,c,a,i);continue;case`start`:Du(e,l,l,c,a,i);continue;case`xHeight`:wu(e,l,`x-height`,c,a,i);continue;case`xlinkActuate`:wu(e,l,`xlink:actuate`,c,a,i);continue;case`xlinkArcrole`:wu(e,l,`xlink:arcrole`,c,a,i);continue;case`xlinkRole`:wu(e,l,`xlink:role`,c,a,i);continue;case`xlinkShow`:wu(e,l,`xlink:show`,c,a,i);continue;case`xlinkTitle`:wu(e,l,`xlink:title`,c,a,i);continue;case`xlinkType`:wu(e,l,`xlink:type`,c,a,i);continue;case`xmlBase`:wu(e,l,`xml:base`,c,a,i);continue;case`xmlLang`:wu(e,l,`xml:lang`,c,a,i);continue;case`xmlSpace`:wu(e,l,`xml:space`,c,a,i);continue;case`inert`:c!==``||wS[l]||(wS[l]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",l)),Tu(e,l,l,c,a,i);continue;default:if(!(2<l.length)||l[0]!==`o`&&l[0]!==`O`||l[1]!==`n`&&l[1]!==`N`){s=Ht(l),o=!1,r.context===GS&&t!==`svg`&&t!==`math`?a.delete(s.toLowerCase()):(u=l.toLowerCase(),u=Nm.hasOwnProperty(u)&&Nm[u]||null,u!==null&&u!==l&&(o=!0,a.delete(u)),a.delete(s));a:if(u=e,d=s,s=c,Ge(d))if(u.hasAttribute(d))u=u.getAttribute(d),B(s,d),s=u===``+s?s:u;else{switch(typeof s){case`function`:case`symbol`:break a;case`boolean`:if(u=d.toLowerCase().slice(0,5),u!==`data-`&&u!==`aria-`)break a}s=s===void 0?void 0:null}else s=void 0;o||du(l,s,c,i)}}}return 0<a.size&&!0!==n.suppressHydrationWarning&&fu(e,a,i),Object.keys(i).length===0?null:i}function Au(e,t){switch(e.length){case 0:return``;case 1:return e[0];case 2:return e[0]+` `+t+` `+e[1];default:return e.slice(0,-1).join(`, `)+`, `+t+` `+e[e.length-1]}}function ju(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function Mu(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&ju(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&ju(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}function Nu(e){return e.nodeType===9?e:e.ownerDocument}function Pu(e){switch(e){case jm:return KS;case Am:return qS;default:return GS}}function Fu(e,t){if(e===GS)switch(t){case`svg`:return KS;case`math`:return qS;default:return GS}return e===KS&&t===`foreignObject`?GS:e}function Iu(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}function Lu(){var e=window.event;return e&&e.type===`popstate`?e===ZS?!1:(ZS=e,!0):(ZS=null,!1)}function Ru(){var e=window.event;return e&&e!==QS?e.type:null}function zu(){var e=window.event;return e&&e!==QS?e.timeStamp:-1.1}function Bu(e){setTimeout(function(){throw e})}function Vu(e,t,n){switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&e.focus();break;case`img`:n.src?e.src=n.src:n.srcSet&&(e.srcset=n.srcSet)}}function Hu(){}function Uu(e,t,n,r){bu(e,t,n,r),e[Hp]=r}function Wu(e){Lt(e,``)}function Gu(e,t,n){e.nodeValue=n}function Ku(e){if(!e.__reactWarnedAboutChildrenConflict){var t=e[Hp]||null;if(t!==null){var n=Re(e);n!==null&&(typeof t.children==`string`||typeof t.children==`number`?(e.__reactWarnedAboutChildrenConflict=!0,R(n,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "children" text content using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})):t.dangerouslySetInnerHTML!=null&&(e.__reactWarnedAboutChildrenConflict=!0,R(n,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "dangerouslySetInnerHTML" using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})))}}}function qu(e){return e===`head`}function Ju(e,t){e.removeChild(t)}function Yu(e,t){(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e).removeChild(t)}function Xu(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n===PS||n===MS){if(r===0){e.removeChild(i),gf(t);return}r--}else if(n===NS||n===FS||n===IS||n===LS||n===jS)r++;else if(n===RS)xd(e.ownerDocument.documentElement);else if(n===BS){n=e.ownerDocument.head,xd(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[Jp]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===zS&&xd(e.ownerDocument.body);n=i}while(n);gf(t)}function Zu(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8)if(n=r.data,n===PS){if(e===0)break;e--}else n!==NS&&n!==FS&&n!==IS&&n!==LS||e++;n=r}while(n)}function Qu(e){Zu(e,!0)}function $u(e){e=e.style,typeof e.setProperty==`function`?e.setProperty(`display`,`none`,`important`):e.display=`none`}function ed(e){e.nodeValue=``}function td(e){Zu(e,!1)}function nd(e,t){t=t[WS],t=t!=null&&t.hasOwnProperty(`display`)?t.display:null,e.style.display=t==null||typeof t==`boolean`?``:(``+t).trim()}function rd(e,t){e.nodeValue=t}function id(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:id(n),Ie(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function ad(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r)if(t===`input`&&e.type===`hidden`){B(i.name,`name`);var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e;else if(!e[Jp])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=dd(e.nextSibling),e===null)break}return null}function od(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=dd(e.nextSibling),e===null))return null;return e}function sd(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=dd(e.nextSibling),e===null))return null;return e}function cd(e){return e.data===FS||e.data===IS}function ld(e){return e.data===LS||e.data===FS&&e.ownerDocument.readyState!==US}function ud(e,t){var n=e.ownerDocument;if(e.data===IS)e._reactRetry=t;else if(e.data!==FS||n.readyState!==US)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function dd(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===NS||t===LS||t===FS||t===IS||t===jS||t===VS||t===HS)break;if(t===PS||t===MS)return null}}return e}function fd(e){if(e.nodeType===1){for(var t=e.nodeName.toLowerCase(),n={},r=e.attributes,i=0;i<r.length;i++){var a=r[i];n[xu(a.name)]=a.name.toLowerCase()===`style`?Su(e):a.value}return{type:t,props:n}}return e.nodeType===8?e.data===jS?{type:`Activity`,props:{}}:{type:`Suspense`,props:{}}:e.nodeValue}function pd(e,t,n){return n===null||!0!==n[AS]?(e.nodeValue===t?e=null:(t=hu(t),e=hu(e.nodeValue)===t?null:e.nodeValue),e):null}function md(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===PS||n===MS){if(t===0)return dd(e.nextSibling);t--}else n!==NS&&n!==LS&&n!==FS&&n!==IS&&n!==jS||t++}e=e.nextSibling}return null}function hd(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===NS||n===LS||n===FS||n===IS||n===jS){if(t===0)return e;t--}else n!==PS&&n!==MS||t++}e=e.previousSibling}return null}function gd(e){gf(e)}function _d(e){gf(e)}function vd(e){gf(e)}function yd(e,t,n,r,i){switch(i&&Ft(e,r.ancestorInfo),t=Nu(n),e){case`html`:if(e=t.documentElement,!e)throw Error(`React expected an <html> element (document.documentElement) to exist in the Document but one was not found. React never removes the documentElement for any Document it renders into so the cause is likely in some other script running on this page.`);return e;case`head`:if(e=t.head,!e)throw Error(`React expected a <head> element (document.head) to exist in the Document but one was not found. React never removes the head for any Document it renders into so the cause is likely in some other script running on this page.`);return e;case`body`:if(e=t.body,!e)throw Error(`React expected a <body> element (document.body) to exist in the Document but one was not found. React never removes the body for any Document it renders into so the cause is likely in some other script running on this page.`);return e;default:throw Error(`resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.`)}}function bd(e,t,n,r){if(!n[Up]&&Re(n)){var i=n.tagName.toLowerCase();console.error(`You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.`,i,i,i)}switch(e){case`html`:case`head`:case`body`:break;default:console.error(`acquireSingletonInstance was called with an element type that is not supported. This is a bug in React.`)}for(i=n.attributes;i.length;)n.removeAttributeNode(i[0]);yu(n,e,t),n[Vp]=r,n[Hp]=t}function xd(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ie(e)}function Sd(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}function Cd(e,t,n){var r=pC;if(r&&typeof t==`string`&&t){var i=nt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),dC.has(i)||(dC.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),yu(t,`link`,e),Ve(t),r.head.appendChild(t)))}}function wd(e,t,n,r){var i=(i=Xf.current)?Sd(i):null;if(!i)throw Error(`"resourceRoot" was expected to exist. This is a bug in React.`);switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(n=Ed(n.href),t=Be(i).hoistableStyles,r=t.get(n),r||(r={type:`style`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Ed(n.href);var a=Be(i).hoistableStyles,o=a.get(e);if(!o&&(i=i.ownerDocument||i,o={type:`stylesheet`,instance:null,count:0,state:{loading:aC,preload:null}},a.set(e,o),(a=i.querySelector(Dd(e)))&&!a._p&&(o.instance=a,o.state.loading=oC|lC),!uC.has(e))){var s={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy};uC.set(e,s),a||kd(i,e,s,o.state)}if(t&&r===null)throw n=`
189
+
190
+ - `+Td(t)+`
191
+ + `+Td(n),Error("Expected <link> not to update to be updated to a stylesheet with precedence. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+n);return o}if(t&&r!==null)throw n=`
192
+
193
+ - `+Td(t)+`
194
+ + `+Td(n),Error("Expected stylesheet with precedence to not be updated to a different kind of <link>. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+n);return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(n=Ad(n),t=Be(i).hoistableScripts,r=t.get(n),r||(r={type:`script`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(`getResource encountered a type it did not expect: "`+e+`". this is a bug in React.`)}}function Td(e){var t=0,n=`<link`;return typeof e.rel==`string`?(t++,n+=` rel="`+e.rel+`"`):fp.call(e,`rel`)&&(t++,n+=` rel="`+(e.rel===null?`null`:`invalid type `+typeof e.rel)+`"`),typeof e.href==`string`?(t++,n+=` href="`+e.href+`"`):fp.call(e,`href`)&&(t++,n+=` href="`+(e.href===null?`null`:`invalid type `+typeof e.href)+`"`),typeof e.precedence==`string`?(t++,n+=` precedence="`+e.precedence+`"`):fp.call(e,`precedence`)&&(t++,n+=` precedence={`+(e.precedence===null?`null`:`invalid type `+typeof e.precedence)+`}`),Object.getOwnPropertyNames(e).length>t&&(n+=` ...`),n+` />`}function Ed(e){return`href="`+nt(e)+`"`}function Dd(e){return`link[rel="stylesheet"][`+e+`]`}function Od(e){return wf({},e,{"data-precedence":e.precedence,precedence:null})}function kd(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=oC:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=oC}),t.addEventListener(`error`,function(){return r.loading|=sC}),yu(t,`link`,n),Ve(t),e.head.appendChild(t))}function Ad(e){return`[src="`+nt(e)+`"]`}function jd(e){return`script[async]`+e}function Md(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+nt(n.href)+`"]`);if(r)return t.instance=r,Ve(r),r;var i=wf({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),Ve(r),yu(r,`style`,i),Nd(r,n.precedence,e),t.instance=r;case`stylesheet`:i=Ed(n.href);var a=e.querySelector(Dd(i));if(a)return t.state.loading|=lC,t.instance=a,Ve(a),a;r=Od(n),(i=uC.get(i))&&Pd(r,i),a=(e.ownerDocument||e).createElement(`link`),Ve(a);var o=a;return o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),yu(a,`link`,r),t.state.loading|=lC,Nd(a,n.precedence,e),t.instance=a;case`script`:return a=Ad(n.src),(i=e.querySelector(jd(a)))?(t.instance=i,Ve(i),i):(r=n,(i=uC.get(a))&&(r=wf({},n),Fd(r,i)),e=e.ownerDocument||e,i=e.createElement(`script`),Ve(i),yu(i,`link`,r),e.head.appendChild(i),t.instance=i);case`void`:return null;default:throw Error(`acquireResource encountered a resource type it did not expect: "`+t.type+`". this is a bug in React.`)}else t.type===`stylesheet`&&(t.state.loading&lC)===aC&&(r=t.instance,t.state.loading|=lC,Nd(r,n.precedence,e));return t.instance}function Nd(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Pd(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Fd(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}function Id(e,t,n){if(mC===null){var r=new Map,i=mC=new Map;i.set(n,r)}else i=mC,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[Jp]||a[Vp]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==jm){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function Ld(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Rd(e,t,n){var r=!n.ancestorInfo.containerTagInScope;if(n.context===KS||t.itemProp!=null)return!r||t.itemProp==null||e!==`meta`&&e!==`title`&&e!==`style`&&e!==`link`&&e!==`script`||console.error("Cannot render a <%s> outside the main document if it has an `itemProp` prop. `itemProp` suggests the tag belongs to an `itemScope` which can appear anywhere in the DOM. If you were intending for React to hoist this <%s> remove the `itemProp` prop. Otherwise, try moving this tag into the <head> or <body> of the Document.",e,e),!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``){r&&console.error('Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a `precedence` prop along with an `href` prop that does not conflict with the `href` values used in any other hoisted <style> or <link rel="stylesheet" ...> tags. Note that hoisting <style> tags is considered an advanced feature that most will not use directly. Consider moving the <style> tag to the <head> or consider adding a `precedence="default"` and `href="some unique resource identifier"`.');break}return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError){if(t.rel===`stylesheet`&&typeof t.precedence==`string`){e=t.href;var i=t.onError,a=t.disabled;n=[],t.onLoad&&n.push("`onLoad`"),i&&n.push("`onError`"),a!=null&&n.push("`disabled`"),i=Au(n,`and`),i+=n.length===1?` prop`:` props`,a=n.length===1?`an `+i:`the `+i,n.length&&console.error('React encountered a <link rel="stylesheet" href="%s" ... /> with a `precedence` prop that also included %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',e,a,i)}r&&(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``?console.error("Cannot render a <link> outside the main document without a `rel` and `href` prop. Try adding a `rel` and/or `href` prop to this <link> or moving the link into the <head> tag"):(t.onError||t.onLoad)&&console.error(`Cannot render a <link> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>.`));break}switch(t.rel){case`stylesheet`:return e=t.precedence,t=t.disabled,typeof e!=`string`&&r&&console.error(`Cannot render a <link rel="stylesheet" /> outside the main document without knowing its precedence. Consider adding precedence="default" or moving it into the root <head> tag.`),typeof e==`string`&&t==null;default:return!0}case`script`:if(e=t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`,!e||t.onLoad||t.onError||!t.src||typeof t.src!=`string`){r&&(e?t.onLoad||t.onError?console.error(`Cannot render a <script> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>.`):console.error("Cannot render a <script> outside the main document without `async={true}` and a non-empty `src` prop. Ensure there is a valid `src` and either make the script async or move it into the root <head> tag or somewhere in the <body>."):console.error(`Cannot render a sync or defer <script> outside the main document without knowing its order. Try adding async="" or moving it into the root <head> tag.`));break}return!0;case`noscript`:case`template`:r&&console.error(`Cannot render <%s> outside the main document. Try moving it into the root <head> tag.`,e)}return!1}function zd(e){return!(e.type===`stylesheet`&&(e.state.loading&cC)===aC)}function Bd(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&(n.state.loading&lC)===aC){if(n.instance===null){var i=Ed(r.href),a=t.querySelector(Dd(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=Hd.bind(e),t.then(e,e)),n.state.loading|=lC,n.instance=a,Ve(a);return}a=t.ownerDocument||t,r=Od(r),(i=uC.get(i))&&Pd(r,i),a=a.createElement(`link`),Ve(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),yu(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&cC)===aC&&(e.count++,n=Hd.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}function Vd(e,t){return e.stylesheets&&e.count===0&&Ud(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&Ud(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},hC+t);0<e.imgBytes&&vC===0&&(vC=125*Mu()*_C);var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Ud(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>vC?50:gC)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function Hd(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Ud(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}function Ud(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,bC=new Map,t.forEach(Wd,e),bC=null,Hd.call(e))}function Wd(e,t){if(!(t.state.loading&lC)){var n=bC.get(e);if(n)var r=n.get(yC);else{n=new Map,bC.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(yC,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(yC,i),n.set(o,i),this.count++,r=Hd.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=lC}}function Gd(e,t,n,r,i,a,o,s,c){for(this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=tC,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=we(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=we(0),this.hiddenUpdates=we(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,e=this.pendingUpdatersLaneMap=[],t=0;31>t;t++)e.push(new Set);this._debugRootType=n?`hydrateRoot()`:`createRoot()`}function Kd(e,t,n,r,i,a,o,s,c,l,u,d){return e=new Gd(e,t,n,o,c,l,u,d,s),t=Pg,!0===a&&(t|=Ig|Lg),t|=Fg,a=p(3,null,null,t),e.current=a,a.stateNode=e,t=Yr(),Xr(t),e.pooledCache=t,Xr(t),a.memoizedState={element:r,isDehydrated:n,cache:t},Vi(a),e}function qd(e){return e?(e=jg,e):jg}function Jd(e,t,n,r,i,a){if(Dp&&typeof Dp.onScheduleFiberRoot==`function`)try{Dp.onScheduleFiberRoot(Ep,r,n)}catch(e){Op||(Op=!0,console.error(`React instrumentation encountered an error: %o`,e))}i=qd(i),r.context===null?r.context=i:r.pendingContext=i,dp&&up!==null&&!OC&&(OC=!0,console.error(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
195
+
196
+ Check the render method of %s.`,A(up)||`Unknown`)),r=Ui(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(typeof a!=`function`&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",a),r.callback=a),n=Wi(e,r,t),n!==null&&(Qr(t,`root.render()`,null),qc(n,e,t),Gi(n,e,t))}function Yd(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Xd(e,t){Yd(e,t),(e=e.alternate)&&Yd(e,t)}function Zd(e){if(e.tag===13||e.tag===31){var t=tr(e,67108864);t!==null&&qc(t,e,67108864),Xd(e,67108864)}}function Qd(e){if(e.tag===13||e.tag===31){var t=Gc(e);t=Ae(t);var n=tr(e,t);n!==null&&qc(n,e,t),Xd(e,t)}}function $d(){return up}function ef(e,t,n,r){var i=K.T;K.T=null;var a=Uf.p;try{Uf.p=Ip,nf(e,t,n,r)}finally{Uf.p=a,K.T=i}}function tf(e,t,n,r){var i=K.T;K.T=null;var a=Uf.p;try{Uf.p=Lp,nf(e,t,n,r)}finally{Uf.p=a,K.T=i}}function nf(e,t,n,r){if(zC){var i=rf(r);if(i===null)au(e,t,r,BC,n),sf(e,r);else if(lf(i,e,t,n,r))r.stopPropagation();else if(sf(e,r),t&4&&-1<JC.indexOf(e)){for(;i!==null;){var a=Re(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=be(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-Ap(o);s.entanglements[1]|=c,o&=~c}Bl(a),(Gb&(Ib|Lb))===Fb&&(Cx=_p()+wx,Vl(0,!1))}}break;case 31:case 13:s=tr(a,2),s!==null&&qc(s,a,2),Qc(),Xd(a,2)}if(a=rf(r),a===null&&au(e,t,r,BC,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else au(e,t,r,null,n)}}function rf(e){return e=Yt(e),af(e)}function af(e){if(BC=null,e=Le(e),e!==null){var t=b(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=x(t),e!==null)return e;e=null}else if(n===31){if(e=C(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return BC=e,null}function of(e){switch(e){case`beforetoggle`:case`cancel`:case`click`:case`close`:case`contextmenu`:case`copy`:case`cut`:case`auxclick`:case`dblclick`:case`dragend`:case`dragstart`:case`drop`:case`focusin`:case`focusout`:case`input`:case`invalid`:case`keydown`:case`keypress`:case`keyup`:case`mousedown`:case`mouseup`:case`paste`:case`pause`:case`play`:case`pointercancel`:case`pointerdown`:case`pointerup`:case`ratechange`:case`reset`:case`resize`:case`seeked`:case`submit`:case`toggle`:case`touchcancel`:case`touchend`:case`touchstart`:case`volumechange`:case`change`:case`selectionchange`:case`textInput`:case`compositionstart`:case`compositionend`:case`compositionupdate`:case`beforeblur`:case`afterblur`:case`beforeinput`:case`blur`:case`fullscreenchange`:case`focus`:case`hashchange`:case`popstate`:case`select`:case`selectstart`:return Ip;case`drag`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`mousemove`:case`mouseout`:case`mouseover`:case`pointermove`:case`pointerout`:case`pointerover`:case`scroll`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return Lp;case`message`:switch(vp()){case yp:return Ip;case bp:return Lp;case xp:case Sp:return Rp;case Cp:return zp;default:return Rp}default:return Rp}}function sf(e,t){switch(e){case`focusin`:case`focusout`:HC=null;break;case`dragenter`:case`dragleave`:UC=null;break;case`mouseover`:case`mouseout`:WC=null;break;case`pointerover`:case`pointerout`:GC.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:KC.delete(t.pointerId)}}function cf(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=Re(t),t!==null&&Zd(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function lf(e,t,n,r,i){switch(t){case`focusin`:return HC=cf(HC,e,t,n,r,i),!0;case`dragenter`:return UC=cf(UC,e,t,n,r,i),!0;case`mouseover`:return WC=cf(WC,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return GC.set(a,cf(GC.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,KC.set(a,cf(KC.get(a)||null,e,t,n,r,i)),!0}return!1}function uf(e){var t=Le(e.target);if(t!==null){var n=b(t);if(n!==null){if(t=n.tag,t===13){if(t=x(n),t!==null){e.blockedOn=t,Fe(e.priority,function(){Qd(n)});return}}else if(t===31){if(t=C(n),t!==null){e.blockedOn=t,Fe(e.priority,function(){Qd(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function df(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=rf(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n),i=r;Gm!==null&&console.error(`Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue.`),Gm=i,n.target.dispatchEvent(r),Gm===null&&console.error(`Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue.`),Gm=null}else return t=Re(n),t!==null&&Zd(t),e.blockedOn=n,!1;t.shift()}return!0}function ff(e,t,n){df(e)&&n.delete(t)}function pf(){VC=!1,HC!==null&&df(HC)&&(HC=null),UC!==null&&df(UC)&&(UC=null),WC!==null&&df(WC)&&(WC=null),GC.forEach(ff),KC.forEach(ff)}function mf(e,t){e.blockedOn===t&&(e.blockedOn=null,VC||(VC=!0,xf.unstable_scheduleCallback(xf.unstable_NormalPriority,pf)))}function hf(e){YC!==e&&(YC=e,xf.unstable_scheduleCallback(xf.unstable_NormalPriority,function(){YC===e&&(YC=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(af(r||n)===null)continue;break}var a=Re(n);a!==null&&(e.splice(t,3),t-=3,n={pending:!0,data:i,method:n.method,action:r},Object.freeze(n),To(a,n,r,i))}}))}function gf(e){function t(t){return mf(t,e)}HC!==null&&mf(HC,e),UC!==null&&mf(UC,e),WC!==null&&mf(WC,e),GC.forEach(t),KC.forEach(t);for(var n=0;n<qC.length;n++){var r=qC[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<qC.length&&(n=qC[0],n.blockedOn===null);)uf(n),n.blockedOn===null&&qC.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[Hp]||null;if(typeof a==`function`)o||hf(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[Hp]||null)s=o.formAction;else if(af(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),hf(n)}}}function _f(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function vf(e){this._internalRoot=e}function yf(e){this._internalRoot=e}function bf(e){e[Up]&&(e._reactRootContainer?console.error(`You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported.`):console.error(`You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it.`))}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var xf=y(),Sf=g(),Cf=S(),wf=Object.assign,Tf=Symbol.for(`react.element`),Ef=Symbol.for(`react.transitional.element`),Df=Symbol.for(`react.portal`),Of=Symbol.for(`react.fragment`),kf=Symbol.for(`react.strict_mode`),Af=Symbol.for(`react.profiler`),jf=Symbol.for(`react.consumer`),Mf=Symbol.for(`react.context`),Nf=Symbol.for(`react.forward_ref`),Pf=Symbol.for(`react.suspense`),Ff=Symbol.for(`react.suspense_list`),If=Symbol.for(`react.memo`),Lf=Symbol.for(`react.lazy`),Rf=Symbol.for(`react.activity`),zf=Symbol.for(`react.memo_cache_sentinel`),Bf=Symbol.iterator,Vf=Symbol.for(`react.client.reference`),Hf=Array.isArray,K=Sf.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Uf=Cf.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Wf=Object.freeze({pending:!1,data:null,method:null,action:null}),Gf=[],Kf=[],qf=-1,Jf=j(null),Yf=j(null),Xf=j(null),Zf=j(null),Qf=0,$f,ep,tp,np,rp,ip,ap;ie.__reactDisabledLog=!0;var op,sp,cp=!1,lp=new(typeof WeakMap==`function`?WeakMap:Map),up=null,dp=!1,fp=Object.prototype.hasOwnProperty,pp=xf.unstable_scheduleCallback,mp=xf.unstable_cancelCallback,hp=xf.unstable_shouldYield,gp=xf.unstable_requestPaint,_p=xf.unstable_now,vp=xf.unstable_getCurrentPriorityLevel,yp=xf.unstable_ImmediatePriority,bp=xf.unstable_UserBlockingPriority,xp=xf.unstable_NormalPriority,Sp=xf.unstable_LowPriority,Cp=xf.unstable_IdlePriority,wp=xf.log,Tp=xf.unstable_setDisableYieldValue,Ep=null,Dp=null,Op=!1,kp=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`,Ap=Math.clz32?Math.clz32:ye,jp=Math.log,Mp=Math.LN2,Np=256,Pp=262144,Fp=4194304,Ip=2,Lp=8,Rp=32,zp=268435456,Bp=Math.random().toString(36).slice(2),Vp=`__reactFiber$`+Bp,Hp=`__reactProps$`+Bp,Up=`__reactContainer$`+Bp,Wp=`__reactEvents$`+Bp,Gp=`__reactListeners$`+Bp,Kp=`__reactHandles$`+Bp,qp=`__reactResources$`+Bp,Jp=`__reactMarker$`+Bp,Yp=new Set,Xp={},Zp={},Qp={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},$p=RegExp(`^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$`),em={},tm={},nm=/[\n"\\]/g,rm=!1,im=!1,am=!1,om=!1,sm=!1,cm=!1,lm=[`value`,`defaultValue`],um=!1,dm=/["'&<>\n\t]|^\s|\s$/,fm=`address applet area article aside base basefont bgsound blockquote body br button caption center col colgroup dd details dir div dl dt embed fieldset figcaption figure footer form frame frameset h1 h2 h3 h4 h5 h6 head header hgroup hr html iframe img input isindex li link listing main marquee menu menuitem meta nav noembed noframes noscript object ol p param plaintext pre script section select source style summary table tbody td template textarea tfoot th thead title tr track ul wbr xmp`.split(` `),pm=`applet caption html table td th marquee object template foreignObject desc title`.split(` `),mm=pm.concat([`button`]),hm=`dd dt li option optgroup p rp rt`.split(` `),gm={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},_m={},vm={animation:`animationDelay animationDirection animationDuration animationFillMode animationIterationCount animationName animationPlayState animationTimingFunction`.split(` `),background:`backgroundAttachment backgroundClip backgroundColor backgroundImage backgroundOrigin backgroundPositionX backgroundPositionY backgroundRepeat backgroundSize`.split(` `),backgroundPosition:[`backgroundPositionX`,`backgroundPositionY`],border:`borderBottomColor borderBottomStyle borderBottomWidth borderImageOutset borderImageRepeat borderImageSlice borderImageSource borderImageWidth borderLeftColor borderLeftStyle borderLeftWidth borderRightColor borderRightStyle borderRightWidth borderTopColor borderTopStyle borderTopWidth`.split(` `),borderBlockEnd:[`borderBlockEndColor`,`borderBlockEndStyle`,`borderBlockEndWidth`],borderBlockStart:[`borderBlockStartColor`,`borderBlockStartStyle`,`borderBlockStartWidth`],borderBottom:[`borderBottomColor`,`borderBottomStyle`,`borderBottomWidth`],borderColor:[`borderBottomColor`,`borderLeftColor`,`borderRightColor`,`borderTopColor`],borderImage:[`borderImageOutset`,`borderImageRepeat`,`borderImageSlice`,`borderImageSource`,`borderImageWidth`],borderInlineEnd:[`borderInlineEndColor`,`borderInlineEndStyle`,`borderInlineEndWidth`],borderInlineStart:[`borderInlineStartColor`,`borderInlineStartStyle`,`borderInlineStartWidth`],borderLeft:[`borderLeftColor`,`borderLeftStyle`,`borderLeftWidth`],borderRadius:[`borderBottomLeftRadius`,`borderBottomRightRadius`,`borderTopLeftRadius`,`borderTopRightRadius`],borderRight:[`borderRightColor`,`borderRightStyle`,`borderRightWidth`],borderStyle:[`borderBottomStyle`,`borderLeftStyle`,`borderRightStyle`,`borderTopStyle`],borderTop:[`borderTopColor`,`borderTopStyle`,`borderTopWidth`],borderWidth:[`borderBottomWidth`,`borderLeftWidth`,`borderRightWidth`,`borderTopWidth`],columnRule:[`columnRuleColor`,`columnRuleStyle`,`columnRuleWidth`],columns:[`columnCount`,`columnWidth`],flex:[`flexBasis`,`flexGrow`,`flexShrink`],flexFlow:[`flexDirection`,`flexWrap`],font:`fontFamily fontFeatureSettings fontKerning fontLanguageOverride fontSize fontSizeAdjust fontStretch fontStyle fontVariant fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition fontWeight lineHeight`.split(` `),fontVariant:`fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition`.split(` `),gap:[`columnGap`,`rowGap`],grid:`gridAutoColumns gridAutoFlow gridAutoRows gridTemplateAreas gridTemplateColumns gridTemplateRows`.split(` `),gridArea:[`gridColumnEnd`,`gridColumnStart`,`gridRowEnd`,`gridRowStart`],gridColumn:[`gridColumnEnd`,`gridColumnStart`],gridColumnGap:[`columnGap`],gridGap:[`columnGap`,`rowGap`],gridRow:[`gridRowEnd`,`gridRowStart`],gridRowGap:[`rowGap`],gridTemplate:[`gridTemplateAreas`,`gridTemplateColumns`,`gridTemplateRows`],listStyle:[`listStyleImage`,`listStylePosition`,`listStyleType`],margin:[`marginBottom`,`marginLeft`,`marginRight`,`marginTop`],marker:[`markerEnd`,`markerMid`,`markerStart`],mask:`maskClip maskComposite maskImage maskMode maskOrigin maskPositionX maskPositionY maskRepeat maskSize`.split(` `),maskPosition:[`maskPositionX`,`maskPositionY`],outline:[`outlineColor`,`outlineStyle`,`outlineWidth`],overflow:[`overflowX`,`overflowY`],padding:[`paddingBottom`,`paddingLeft`,`paddingRight`,`paddingTop`],placeContent:[`alignContent`,`justifyContent`],placeItems:[`alignItems`,`justifyItems`],placeSelf:[`alignSelf`,`justifySelf`],textDecoration:[`textDecorationColor`,`textDecorationLine`,`textDecorationStyle`],textEmphasis:[`textEmphasisColor`,`textEmphasisStyle`],transition:[`transitionDelay`,`transitionDuration`,`transitionProperty`,`transitionTimingFunction`],wordWrap:[`overflowWrap`]},ym=/([A-Z])/g,bm=/^ms-/,xm=/^(?:webkit|moz|o)[A-Z]/,Sm=/^-ms-/,Cm=/-(.)/g,wm=/;\s*$/,Tm={},Em={},Dm=!1,Om=!1,km=new Set(`animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp`.split(` `)),Am=`http://www.w3.org/1998/Math/MathML`,jm=`http://www.w3.org/2000/svg`,Mm=new Map([[`acceptCharset`,`accept-charset`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`],[`crossOrigin`,`crossorigin`],[`accentHeight`,`accent-height`],[`alignmentBaseline`,`alignment-baseline`],[`arabicForm`,`arabic-form`],[`baselineShift`,`baseline-shift`],[`capHeight`,`cap-height`],[`clipPath`,`clip-path`],[`clipRule`,`clip-rule`],[`colorInterpolation`,`color-interpolation`],[`colorInterpolationFilters`,`color-interpolation-filters`],[`colorProfile`,`color-profile`],[`colorRendering`,`color-rendering`],[`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`],[`horizAdvX`,`horiz-adv-x`],[`horizOriginX`,`horiz-origin-x`],[`imageRendering`,`image-rendering`],[`letterSpacing`,`letter-spacing`],[`lightingColor`,`lighting-color`],[`markerEnd`,`marker-end`],[`markerMid`,`marker-mid`],[`markerStart`,`marker-start`],[`overlinePosition`,`overline-position`],[`overlineThickness`,`overline-thickness`],[`paintOrder`,`paint-order`],[`panose-1`,`panose-1`],[`pointerEvents`,`pointer-events`],[`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`],[`textAnchor`,`text-anchor`],[`textDecoration`,`text-decoration`],[`textRendering`,`text-rendering`],[`transformOrigin`,`transform-origin`],[`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`],[`xmlnsXlink`,`xmlns:xlink`],[`xHeight`,`x-height`]]),Nm={accept:`accept`,acceptcharset:`acceptCharset`,"accept-charset":`acceptCharset`,accesskey:`accessKey`,action:`action`,allowfullscreen:`allowFullScreen`,alt:`alt`,as:`as`,async:`async`,autocapitalize:`autoCapitalize`,autocomplete:`autoComplete`,autocorrect:`autoCorrect`,autofocus:`autoFocus`,autoplay:`autoPlay`,autosave:`autoSave`,capture:`capture`,cellpadding:`cellPadding`,cellspacing:`cellSpacing`,challenge:`challenge`,charset:`charSet`,checked:`checked`,children:`children`,cite:`cite`,class:`className`,classid:`classID`,classname:`className`,cols:`cols`,colspan:`colSpan`,content:`content`,contenteditable:`contentEditable`,contextmenu:`contextMenu`,controls:`controls`,controlslist:`controlsList`,coords:`coords`,crossorigin:`crossOrigin`,dangerouslysetinnerhtml:`dangerouslySetInnerHTML`,data:`data`,datetime:`dateTime`,default:`default`,defaultchecked:`defaultChecked`,defaultvalue:`defaultValue`,defer:`defer`,dir:`dir`,disabled:`disabled`,disablepictureinpicture:`disablePictureInPicture`,disableremoteplayback:`disableRemotePlayback`,download:`download`,draggable:`draggable`,enctype:`encType`,enterkeyhint:`enterKeyHint`,fetchpriority:`fetchPriority`,for:`htmlFor`,form:`form`,formmethod:`formMethod`,formaction:`formAction`,formenctype:`formEncType`,formnovalidate:`formNoValidate`,formtarget:`formTarget`,frameborder:`frameBorder`,headers:`headers`,height:`height`,hidden:`hidden`,high:`high`,href:`href`,hreflang:`hrefLang`,htmlfor:`htmlFor`,httpequiv:`httpEquiv`,"http-equiv":`httpEquiv`,icon:`icon`,id:`id`,imagesizes:`imageSizes`,imagesrcset:`imageSrcSet`,inert:`inert`,innerhtml:`innerHTML`,inputmode:`inputMode`,integrity:`integrity`,is:`is`,itemid:`itemID`,itemprop:`itemProp`,itemref:`itemRef`,itemscope:`itemScope`,itemtype:`itemType`,keyparams:`keyParams`,keytype:`keyType`,kind:`kind`,label:`label`,lang:`lang`,list:`list`,loop:`loop`,low:`low`,manifest:`manifest`,marginwidth:`marginWidth`,marginheight:`marginHeight`,max:`max`,maxlength:`maxLength`,media:`media`,mediagroup:`mediaGroup`,method:`method`,min:`min`,minlength:`minLength`,multiple:`multiple`,muted:`muted`,name:`name`,nomodule:`noModule`,nonce:`nonce`,novalidate:`noValidate`,open:`open`,optimum:`optimum`,pattern:`pattern`,placeholder:`placeholder`,playsinline:`playsInline`,poster:`poster`,preload:`preload`,profile:`profile`,radiogroup:`radioGroup`,readonly:`readOnly`,referrerpolicy:`referrerPolicy`,rel:`rel`,required:`required`,reversed:`reversed`,role:`role`,rows:`rows`,rowspan:`rowSpan`,sandbox:`sandbox`,scope:`scope`,scoped:`scoped`,scrolling:`scrolling`,seamless:`seamless`,selected:`selected`,shape:`shape`,size:`size`,sizes:`sizes`,span:`span`,spellcheck:`spellCheck`,src:`src`,srcdoc:`srcDoc`,srclang:`srcLang`,srcset:`srcSet`,start:`start`,step:`step`,style:`style`,summary:`summary`,tabindex:`tabIndex`,target:`target`,title:`title`,type:`type`,usemap:`useMap`,value:`value`,width:`width`,wmode:`wmode`,wrap:`wrap`,about:`about`,accentheight:`accentHeight`,"accent-height":`accentHeight`,accumulate:`accumulate`,additive:`additive`,alignmentbaseline:`alignmentBaseline`,"alignment-baseline":`alignmentBaseline`,allowreorder:`allowReorder`,alphabetic:`alphabetic`,amplitude:`amplitude`,arabicform:`arabicForm`,"arabic-form":`arabicForm`,ascent:`ascent`,attributename:`attributeName`,attributetype:`attributeType`,autoreverse:`autoReverse`,azimuth:`azimuth`,basefrequency:`baseFrequency`,baselineshift:`baselineShift`,"baseline-shift":`baselineShift`,baseprofile:`baseProfile`,bbox:`bbox`,begin:`begin`,bias:`bias`,by:`by`,calcmode:`calcMode`,capheight:`capHeight`,"cap-height":`capHeight`,clip:`clip`,clippath:`clipPath`,"clip-path":`clipPath`,clippathunits:`clipPathUnits`,cliprule:`clipRule`,"clip-rule":`clipRule`,color:`color`,colorinterpolation:`colorInterpolation`,"color-interpolation":`colorInterpolation`,colorinterpolationfilters:`colorInterpolationFilters`,"color-interpolation-filters":`colorInterpolationFilters`,colorprofile:`colorProfile`,"color-profile":`colorProfile`,colorrendering:`colorRendering`,"color-rendering":`colorRendering`,contentscripttype:`contentScriptType`,contentstyletype:`contentStyleType`,cursor:`cursor`,cx:`cx`,cy:`cy`,d:`d`,datatype:`datatype`,decelerate:`decelerate`,descent:`descent`,diffuseconstant:`diffuseConstant`,direction:`direction`,display:`display`,divisor:`divisor`,dominantbaseline:`dominantBaseline`,"dominant-baseline":`dominantBaseline`,dur:`dur`,dx:`dx`,dy:`dy`,edgemode:`edgeMode`,elevation:`elevation`,enablebackground:`enableBackground`,"enable-background":`enableBackground`,end:`end`,exponent:`exponent`,externalresourcesrequired:`externalResourcesRequired`,fill:`fill`,fillopacity:`fillOpacity`,"fill-opacity":`fillOpacity`,fillrule:`fillRule`,"fill-rule":`fillRule`,filter:`filter`,filterres:`filterRes`,filterunits:`filterUnits`,floodopacity:`floodOpacity`,"flood-opacity":`floodOpacity`,floodcolor:`floodColor`,"flood-color":`floodColor`,focusable:`focusable`,fontfamily:`fontFamily`,"font-family":`fontFamily`,fontsize:`fontSize`,"font-size":`fontSize`,fontsizeadjust:`fontSizeAdjust`,"font-size-adjust":`fontSizeAdjust`,fontstretch:`fontStretch`,"font-stretch":`fontStretch`,fontstyle:`fontStyle`,"font-style":`fontStyle`,fontvariant:`fontVariant`,"font-variant":`fontVariant`,fontweight:`fontWeight`,"font-weight":`fontWeight`,format:`format`,from:`from`,fx:`fx`,fy:`fy`,g1:`g1`,g2:`g2`,glyphname:`glyphName`,"glyph-name":`glyphName`,glyphorientationhorizontal:`glyphOrientationHorizontal`,"glyph-orientation-horizontal":`glyphOrientationHorizontal`,glyphorientationvertical:`glyphOrientationVertical`,"glyph-orientation-vertical":`glyphOrientationVertical`,glyphref:`glyphRef`,gradienttransform:`gradientTransform`,gradientunits:`gradientUnits`,hanging:`hanging`,horizadvx:`horizAdvX`,"horiz-adv-x":`horizAdvX`,horizoriginx:`horizOriginX`,"horiz-origin-x":`horizOriginX`,ideographic:`ideographic`,imagerendering:`imageRendering`,"image-rendering":`imageRendering`,in2:`in2`,in:`in`,inlist:`inlist`,intercept:`intercept`,k1:`k1`,k2:`k2`,k3:`k3`,k4:`k4`,k:`k`,kernelmatrix:`kernelMatrix`,kernelunitlength:`kernelUnitLength`,kerning:`kerning`,keypoints:`keyPoints`,keysplines:`keySplines`,keytimes:`keyTimes`,lengthadjust:`lengthAdjust`,letterspacing:`letterSpacing`,"letter-spacing":`letterSpacing`,lightingcolor:`lightingColor`,"lighting-color":`lightingColor`,limitingconeangle:`limitingConeAngle`,local:`local`,markerend:`markerEnd`,"marker-end":`markerEnd`,markerheight:`markerHeight`,markermid:`markerMid`,"marker-mid":`markerMid`,markerstart:`markerStart`,"marker-start":`markerStart`,markerunits:`markerUnits`,markerwidth:`markerWidth`,mask:`mask`,maskcontentunits:`maskContentUnits`,maskunits:`maskUnits`,mathematical:`mathematical`,mode:`mode`,numoctaves:`numOctaves`,offset:`offset`,opacity:`opacity`,operator:`operator`,order:`order`,orient:`orient`,orientation:`orientation`,origin:`origin`,overflow:`overflow`,overlineposition:`overlinePosition`,"overline-position":`overlinePosition`,overlinethickness:`overlineThickness`,"overline-thickness":`overlineThickness`,paintorder:`paintOrder`,"paint-order":`paintOrder`,panose1:`panose1`,"panose-1":`panose1`,pathlength:`pathLength`,patterncontentunits:`patternContentUnits`,patterntransform:`patternTransform`,patternunits:`patternUnits`,pointerevents:`pointerEvents`,"pointer-events":`pointerEvents`,points:`points`,pointsatx:`pointsAtX`,pointsaty:`pointsAtY`,pointsatz:`pointsAtZ`,popover:`popover`,popovertarget:`popoverTarget`,popovertargetaction:`popoverTargetAction`,prefix:`prefix`,preservealpha:`preserveAlpha`,preserveaspectratio:`preserveAspectRatio`,primitiveunits:`primitiveUnits`,property:`property`,r:`r`,radius:`radius`,refx:`refX`,refy:`refY`,renderingintent:`renderingIntent`,"rendering-intent":`renderingIntent`,repeatcount:`repeatCount`,repeatdur:`repeatDur`,requiredextensions:`requiredExtensions`,requiredfeatures:`requiredFeatures`,resource:`resource`,restart:`restart`,result:`result`,results:`results`,rotate:`rotate`,rx:`rx`,ry:`ry`,scale:`scale`,security:`security`,seed:`seed`,shaperendering:`shapeRendering`,"shape-rendering":`shapeRendering`,slope:`slope`,spacing:`spacing`,specularconstant:`specularConstant`,specularexponent:`specularExponent`,speed:`speed`,spreadmethod:`spreadMethod`,startoffset:`startOffset`,stddeviation:`stdDeviation`,stemh:`stemh`,stemv:`stemv`,stitchtiles:`stitchTiles`,stopcolor:`stopColor`,"stop-color":`stopColor`,stopopacity:`stopOpacity`,"stop-opacity":`stopOpacity`,strikethroughposition:`strikethroughPosition`,"strikethrough-position":`strikethroughPosition`,strikethroughthickness:`strikethroughThickness`,"strikethrough-thickness":`strikethroughThickness`,string:`string`,stroke:`stroke`,strokedasharray:`strokeDasharray`,"stroke-dasharray":`strokeDasharray`,strokedashoffset:`strokeDashoffset`,"stroke-dashoffset":`strokeDashoffset`,strokelinecap:`strokeLinecap`,"stroke-linecap":`strokeLinecap`,strokelinejoin:`strokeLinejoin`,"stroke-linejoin":`strokeLinejoin`,strokemiterlimit:`strokeMiterlimit`,"stroke-miterlimit":`strokeMiterlimit`,strokewidth:`strokeWidth`,"stroke-width":`strokeWidth`,strokeopacity:`strokeOpacity`,"stroke-opacity":`strokeOpacity`,suppresscontenteditablewarning:`suppressContentEditableWarning`,suppresshydrationwarning:`suppressHydrationWarning`,surfacescale:`surfaceScale`,systemlanguage:`systemLanguage`,tablevalues:`tableValues`,targetx:`targetX`,targety:`targetY`,textanchor:`textAnchor`,"text-anchor":`textAnchor`,textdecoration:`textDecoration`,"text-decoration":`textDecoration`,textlength:`textLength`,textrendering:`textRendering`,"text-rendering":`textRendering`,to:`to`,transform:`transform`,transformorigin:`transformOrigin`,"transform-origin":`transformOrigin`,typeof:`typeof`,u1:`u1`,u2:`u2`,underlineposition:`underlinePosition`,"underline-position":`underlinePosition`,underlinethickness:`underlineThickness`,"underline-thickness":`underlineThickness`,unicode:`unicode`,unicodebidi:`unicodeBidi`,"unicode-bidi":`unicodeBidi`,unicoderange:`unicodeRange`,"unicode-range":`unicodeRange`,unitsperem:`unitsPerEm`,"units-per-em":`unitsPerEm`,unselectable:`unselectable`,valphabetic:`vAlphabetic`,"v-alphabetic":`vAlphabetic`,values:`values`,vectoreffect:`vectorEffect`,"vector-effect":`vectorEffect`,version:`version`,vertadvy:`vertAdvY`,"vert-adv-y":`vertAdvY`,vertoriginx:`vertOriginX`,"vert-origin-x":`vertOriginX`,vertoriginy:`vertOriginY`,"vert-origin-y":`vertOriginY`,vhanging:`vHanging`,"v-hanging":`vHanging`,videographic:`vIdeographic`,"v-ideographic":`vIdeographic`,viewbox:`viewBox`,viewtarget:`viewTarget`,visibility:`visibility`,vmathematical:`vMathematical`,"v-mathematical":`vMathematical`,vocab:`vocab`,widths:`widths`,wordspacing:`wordSpacing`,"word-spacing":`wordSpacing`,writingmode:`writingMode`,"writing-mode":`writingMode`,x1:`x1`,x2:`x2`,x:`x`,xchannelselector:`xChannelSelector`,xheight:`xHeight`,"x-height":`xHeight`,xlinkactuate:`xlinkActuate`,"xlink:actuate":`xlinkActuate`,xlinkarcrole:`xlinkArcrole`,"xlink:arcrole":`xlinkArcrole`,xlinkhref:`xlinkHref`,"xlink:href":`xlinkHref`,xlinkrole:`xlinkRole`,"xlink:role":`xlinkRole`,xlinkshow:`xlinkShow`,"xlink:show":`xlinkShow`,xlinktitle:`xlinkTitle`,"xlink:title":`xlinkTitle`,xlinktype:`xlinkType`,"xlink:type":`xlinkType`,xmlbase:`xmlBase`,"xml:base":`xmlBase`,xmllang:`xmlLang`,"xml:lang":`xmlLang`,xmlns:`xmlns`,"xml:space":`xmlSpace`,xmlnsxlink:`xmlnsXlink`,"xmlns:xlink":`xmlnsXlink`,xmlspace:`xmlSpace`,y1:`y1`,y2:`y2`,y:`y`,ychannelselector:`yChannelSelector`,z:`z`,zoomandpan:`zoomAndPan`},Pm={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0,"aria-braillelabel":0,"aria-brailleroledescription":0,"aria-colindextext":0,"aria-rowindextext":0},Fm={},Im=RegExp(`^(aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$`),Lm=RegExp(`^(aria)[A-Z][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$`),Rm=!1,zm={},Bm=/^on./,Vm=/^on[^A-Z]/,Hm=RegExp(`^(aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$`),Um=RegExp(`^(aria)[A-Z][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$`),Wm=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i,Gm=null,Km=null,qm=null,Jm=!1,Ym=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),Xm=!1;if(Ym)try{var Zm={};Object.defineProperty(Zm,`passive`,{get:function(){Xm=!0}}),window.addEventListener(`test`,Zm,Zm),window.removeEventListener(`test`,Zm,Zm)}catch{Xm=!1}var Qm=null,$m=null,eh=null,th={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},nh=rn(th),rh=wf({},th,{view:0,detail:0}),ih=rn(rh),ah,oh,sh,ch=wf({},rh,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:on,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==sh&&(sh&&e.type===`mousemove`?(ah=e.screenX-sh.screenX,oh=e.screenY-sh.screenY):oh=ah=0,sh=e),ah)},movementY:function(e){return`movementY`in e?e.movementY:oh}}),lh=rn(ch),uh=rn(wf({},ch,{dataTransfer:0})),dh=rn(wf({},rh,{relatedTarget:0})),fh=rn(wf({},th,{animationName:0,elapsedTime:0,pseudoElement:0})),ph=rn(wf({},th,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),mh=rn(wf({},th,{data:0})),hh=mh,gh={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},_h={8:`Backspace`,9:`Tab`,12:`Clear`,13:`Enter`,16:`Shift`,17:`Control`,18:`Alt`,19:`Pause`,20:`CapsLock`,27:`Escape`,32:` `,33:`PageUp`,34:`PageDown`,35:`End`,36:`Home`,37:`ArrowLeft`,38:`ArrowUp`,39:`ArrowRight`,40:`ArrowDown`,45:`Insert`,46:`Delete`,112:`F1`,113:`F2`,114:`F3`,115:`F4`,116:`F5`,117:`F6`,118:`F7`,119:`F8`,120:`F9`,121:`F10`,122:`F11`,123:`F12`,144:`NumLock`,145:`ScrollLock`,224:`Meta`},vh={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`},yh=rn(wf({},rh,{key:function(e){if(e.key){var t=gh[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=en(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?_h[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:on,charCode:function(e){return e.type===`keypress`?en(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?en(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),bh=rn(wf({},ch,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),xh=rn(wf({},rh,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:on})),Sh=rn(wf({},th,{propertyName:0,elapsedTime:0,pseudoElement:0})),Ch=rn(wf({},ch,{deltaX:function(e){return`deltaX`in e?e.deltaX:`wheelDeltaX`in e?-e.wheelDeltaX:0},deltaY:function(e){return`deltaY`in e?e.deltaY:`wheelDeltaY`in e?-e.wheelDeltaY:`wheelDelta`in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),wh=rn(wf({},th,{newState:0,oldState:0})),Th=[9,13,27,32],Eh=229,Dh=Ym&&`CompositionEvent`in window,Oh=null;Ym&&`documentMode`in document&&(Oh=document.documentMode);var kh=Ym&&`TextEvent`in window&&!Oh,Ah=Ym&&(!Dh||Oh&&8<Oh&&11>=Oh),jh=32,Mh=String.fromCharCode(jh),Nh=!1,Ph=!1,Fh={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0},Ih=null,Lh=null,Rh=!1;Ym&&(Rh=fn(`input`)&&(!document.documentMode||9<document.documentMode));var zh=typeof Object.is==`function`?Object.is:Cn,Bh=Ym&&`documentMode`in document&&11>=document.documentMode,Vh=null,Hh=null,Uh=null,Wh=!1,Gh={animationend:jn(`Animation`,`AnimationEnd`),animationiteration:jn(`Animation`,`AnimationIteration`),animationstart:jn(`Animation`,`AnimationStart`),transitionrun:jn(`Transition`,`TransitionRun`),transitionstart:jn(`Transition`,`TransitionStart`),transitioncancel:jn(`Transition`,`TransitionCancel`),transitionend:jn(`Transition`,`TransitionEnd`)},Kh={},qh={};Ym&&(qh=document.createElement(`div`).style,`AnimationEvent`in window||(delete Gh.animationend.animation,delete Gh.animationiteration.animation,delete Gh.animationstart.animation),`TransitionEvent`in window||delete Gh.transitionend.transition);var Jh=Mn(`animationend`),Yh=Mn(`animationiteration`),Xh=Mn(`animationstart`),Zh=Mn(`transitionrun`),Qh=Mn(`transitionstart`),$h=Mn(`transitioncancel`),eg=Mn(`transitionend`),tg=new Map,ng=`abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel`.split(` `);ng.push(`scrollEnd`);var rg=0;if(typeof performance==`object`&&typeof performance.now==`function`)var ig=performance,ag=function(){return ig.now()};else{var og=Date;ag=function(){return og.now()}}var sg=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},cg=`This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects.`,lg=0,ug=1,dg=2,fg=3,pg=`–\xA0`,mg=`+\xA0`,hg=` \xA0`,gg=typeof console<`u`&&typeof console.timeStamp==`function`&&typeof performance<`u`&&typeof performance.measure==`function`,_g=`Components ⚛`,vg=`Scheduler ⚛`,yg=`Blocking`,bg=!1,xg={color:`primary`,properties:null,tooltipText:``,track:_g},Sg={start:-0,end:-0,detail:{devtools:xg}},Cg=[`Changed Props`,``],wg=`This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.`,Tg=[`Changed Props`,wg],Eg=1,Dg=2,Og=[],kg=0,Ag=0,jg={};Object.freeze(jg);var Mg=null,Ng=null,q=0,Pg=1,Fg=2,Ig=8,Lg=16,Rg=32,zg=!1;try{var Bg=Object.preventExtensions({});new Map([[Bg,null]]),new Set([Bg])}catch{zg=!0}var Vg=new WeakMap,Hg=[],Ug=0,Wg=null,Gg=0,Kg=[],qg=0,Jg=null,Yg=1,Xg=``,Zg=null,Qg=null,$g=!1,e_=!1,t_=null,n_=null,r_=!1,i_=Error(`Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React.`),a_=j(null),o_=j(null),s_={},c_=null,l_=null,u_=!1,d_=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},f_=xf.unstable_scheduleCallback,p_=xf.unstable_NormalPriority,m_={$$typeof:Mf,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},h_=xf.unstable_now,g_=console.createTask?console.createTask:function(){return null},__=1,v_=2,y_=-0,b_=-0,x_=-0,S_=null,C_=-1.1,w_=-0,T_=-0,J=-1.1,Y=-1.1,E_=null,D_=!1,O_=-0,k_=-1.1,A_=null,j_=0,M_=null,N_=null,P_=-1.1,F_=null,I_=-1.1,L_=-1.1,R_=-0,z_=-1.1,B_=-1.1,V_=0,H_=null,U_=null,W_=null,G_=-1.1,K_=null,q_=-1.1,J_=-1.1,Y_=-0,X_=-0,Z_=0,Q_=null,$_=0,ev=-1.1,tv=!1,nv=!1,rv=null,iv=0,av=0,ov=null,sv=K.S;K.S=function(e,t){if(xx=_p(),typeof t==`object`&&t&&typeof t.then==`function`){if(0>z_&&0>B_){z_=h_();var n=zu(),r=Ru();(n!==q_||r!==K_)&&(q_=-1.1),G_=n,K_=r}_i(e,t)}sv!==null&&sv(e,t)};var cv=j(null),lv={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},uv=[],dv=[],fv=[],pv=[],mv=[],hv=[],gv=new Set;lv.recordUnsafeLifecycleWarnings=function(e,t){gv.has(e.type)||(typeof t.componentWillMount==`function`&&!0!==t.componentWillMount.__suppressDeprecationWarning&&uv.push(e),e.mode&Ig&&typeof t.UNSAFE_componentWillMount==`function`&&dv.push(e),typeof t.componentWillReceiveProps==`function`&&!0!==t.componentWillReceiveProps.__suppressDeprecationWarning&&fv.push(e),e.mode&Ig&&typeof t.UNSAFE_componentWillReceiveProps==`function`&&pv.push(e),typeof t.componentWillUpdate==`function`&&!0!==t.componentWillUpdate.__suppressDeprecationWarning&&mv.push(e),e.mode&Ig&&typeof t.UNSAFE_componentWillUpdate==`function`&&hv.push(e))},lv.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;0<uv.length&&(uv.forEach(function(t){e.add(A(t)||`Component`),gv.add(t.type)}),uv=[]);var t=new Set;0<dv.length&&(dv.forEach(function(e){t.add(A(e)||`Component`),gv.add(e.type)}),dv=[]);var n=new Set;0<fv.length&&(fv.forEach(function(e){n.add(A(e)||`Component`),gv.add(e.type)}),fv=[]);var r=new Set;0<pv.length&&(pv.forEach(function(e){r.add(A(e)||`Component`),gv.add(e.type)}),pv=[]);var i=new Set;0<mv.length&&(mv.forEach(function(e){i.add(A(e)||`Component`),gv.add(e.type)}),mv=[]);var a=new Set;if(0<hv.length&&(hv.forEach(function(e){a.add(A(e)||`Component`),gv.add(e.type)}),hv=[]),0<t.size){var o=f(t);console.error(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
197
+
198
+ * Move code with side effects to componentDidMount, and set initial state in the constructor.
199
+
200
+ Please update the following components: %s`,o)}0<r.size&&(o=f(r),console.error(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
201
+
202
+ * Move data fetching code or side effects to componentDidUpdate.
203
+ * If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
204
+
205
+ Please update the following components: %s`,o)),0<a.size&&(o=f(a),console.error(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
206
+
207
+ * Move data fetching code or side effects to componentDidUpdate.
208
+
209
+ Please update the following components: %s`,o)),0<e.size&&(o=f(e),console.warn(`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
210
+
211
+ * Move code with side effects to componentDidMount, and set initial state in the constructor.
212
+ * Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
213
+
214
+ Please update the following components: %s`,o)),0<n.size&&(o=f(n),console.warn(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
215
+
216
+ * Move data fetching code or side effects to componentDidUpdate.
217
+ * If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
218
+ * Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
219
+
220
+ Please update the following components: %s`,o)),0<i.size&&(o=f(i),console.warn(`componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
221
+
222
+ * Move data fetching code or side effects to componentDidUpdate.
223
+ * Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
224
+
225
+ Please update the following components: %s`,o))};var _v=new Map,vv=new Set;lv.recordLegacyContextWarning=function(e,t){for(var n=null,r=e;r!==null;)r.mode&Ig&&(n=r),r=r.return;n===null?console.error(`Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue.`):!vv.has(e.type)&&(r=_v.get(n),e.type.contextTypes!=null||e.type.childContextTypes!=null||t!==null&&typeof t.getChildContext==`function`)&&(r===void 0&&(r=[],_v.set(n,r)),r.push(e))},lv.flushLegacyContextWarning=function(){_v.forEach(function(e){if(e.length!==0){var t=e[0],n=new Set;e.forEach(function(e){n.add(A(e)||`Component`),vv.add(e.type)});var r=f(n);R(t,function(){console.error(`Legacy context API has been detected within a strict-mode tree.
226
+
227
+ The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
228
+
229
+ Please update the following components: %s
230
+
231
+ Learn more about this warning here: https://react.dev/link/legacy-context`,r)})}})},lv.discardPendingWarnings=function(){uv=[],dv=[],fv=[],pv=[],mv=[],hv=[],_v=new Map};var yv={react_stack_bottom_frame:function(e,t,n){var r=dp;dp=!0;try{return e(t,n)}finally{dp=r}}},bv=yv.react_stack_bottom_frame.bind(yv),xv={react_stack_bottom_frame:function(e){var t=dp;dp=!0;try{return e.render()}finally{dp=t}}},Sv=xv.react_stack_bottom_frame.bind(xv),Cv={react_stack_bottom_frame:function(e,t){try{t.componentDidMount()}catch(t){Dl(e,e.return,t)}}},wv=Cv.react_stack_bottom_frame.bind(Cv),Tv={react_stack_bottom_frame:function(e,t,n,r,i){try{t.componentDidUpdate(n,r,i)}catch(t){Dl(e,e.return,t)}}},Ev=Tv.react_stack_bottom_frame.bind(Tv),Dv={react_stack_bottom_frame:function(e,t){var n=t.stack;e.componentDidCatch(t.value,{componentStack:n===null?``:n})}},Ov=Dv.react_stack_bottom_frame.bind(Dv),kv={react_stack_bottom_frame:function(e,t,n){try{n.componentWillUnmount()}catch(n){Dl(e,t,n)}}},Av=kv.react_stack_bottom_frame.bind(kv),jv={react_stack_bottom_frame:function(e){var t=e.create;return e=e.inst,t=t(),e.destroy=t}},Mv=jv.react_stack_bottom_frame.bind(jv),Nv={react_stack_bottom_frame:function(e,t,n){try{n()}catch(n){Dl(e,t,n)}}},Pv=Nv.react_stack_bottom_frame.bind(Nv),Fv={react_stack_bottom_frame:function(e){var t=e._init;return t(e._payload)}},Iv=Fv.react_stack_bottom_frame.bind(Fv),Lv=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."),Rv=Error(`Suspense Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React.`),zv=Error("Suspense Exception: This is not a real error! It's an implementation detail of `useActionState` to interrupt the current render. You must either rethrow it immediately, or move the `useActionState` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary."),Bv={then:function(){console.error(`Internal React error: A listener was unexpectedly attached to a "noop" thenable. This is a bug in React. Please file an issue.`)}},Vv=null,Hv=!1,Uv=null,Wv=0,Gv=null,Kv,qv=Kv=!1,Jv={},Yv={},Xv={};d=function(e,t,n){if(typeof n==`object`&&n&&n._store&&(!n._store.validated&&n.key==null||n._store.validated===2)){if(typeof n._store!=`object`)throw Error(`React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.`);n._store.validated=1;var r=A(e),i=r||`null`;if(!Jv[i]){Jv[i]=!0,n=n._owner,e=e._debugOwner;var a=``;e&&typeof e.tag==`number`&&(i=A(e))&&(a=`
232
+
233
+ Check the render method of \``+i+"`."),a||r&&(a=`
234
+
235
+ Check the top-level render call using <`+r+`>.`);var o=``;n!=null&&e!==n&&(r=null,typeof n.tag==`number`?r=A(n):typeof n.name==`string`&&(r=n.name),r&&(o=` It was passed a child from `+r+`.`)),R(t,function(){console.error(`Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.`,a,o)})}}};var Zv=zi(!0),Qv=zi(!1),$v=0,ey=1,ty=2,ny=3,ry=!1,iy=!1,ay=null,oy=!1,sy=j(null),cy=j(0),ly=j(null),uy=null,dy=1,fy=2,py=j(0),my=0,hy=1,gy=2,_y=4,vy=8,yy,by=new Set,xy=new Set,Sy=new Set,Cy=new Set,wy=0,Ty=null,Ey=null,Dy=null,Oy=!1,ky=!1,Ay=!1,jy=0,My=0,Ny=null,Py=0,Fy=25,X=null,Iy=null,Ly=-1,Ry=!1,zy={readContext:Kr,use:Ca,useCallback:ua,useContext:ua,useEffect:ua,useImperativeHandle:ua,useLayoutEffect:ua,useInsertionEffect:ua,useMemo:ua,useReducer:ua,useRef:ua,useState:ua,useDebugValue:ua,useDeferredValue:ua,useTransition:ua,useSyncExternalStore:ua,useId:ua,useHostTransitionStatus:ua,useFormState:ua,useActionState:ua,useOptimistic:ua,useMemoCache:ua,useCacheRefresh:ua};zy.useEffectEvent=ua;var By=null,Vy=null,Hy=null,Uy=null,Wy=null,Gy=null,Ky=null;By={readContext:function(e){return Kr(e)},use:Ca,useCallback:function(e,t){return X=`useCallback`,sa(),ca(t),mo(e,t)},useContext:function(e){return X=`useContext`,sa(),Kr(e)},useEffect:function(e,t){return X=`useEffect`,sa(),ca(t),ao(e,t)},useImperativeHandle:function(e,t,n){return X=`useImperativeHandle`,sa(),ca(n),fo(e,t,n)},useInsertionEffect:function(e,t){X=`useInsertionEffect`,sa(),ca(t),ro(4,gy,e,t)},useLayoutEffect:function(e,t){return X=`useLayoutEffect`,sa(),ca(t),lo(e,t)},useMemo:function(e,t){X=`useMemo`,sa(),ca(t);var n=K.H;K.H=Wy;try{return go(e,t)}finally{K.H=n}},useReducer:function(e,t,n){X=`useReducer`,sa();var r=K.H;K.H=Wy;try{return Ea(e,t,n)}finally{K.H=r}},useRef:function(e){return X=`useRef`,sa(),no(e)},useState:function(e){X=`useState`,sa();var t=K.H;K.H=Wy;try{return Ra(e)}finally{K.H=t}},useDebugValue:function(){X=`useDebugValue`,sa()},useDeferredValue:function(e,t){return X=`useDeferredValue`,sa(),vo(e,t)},useTransition:function(){return X=`useTransition`,sa(),Oo()},useSyncExternalStore:function(e,t,n){return X=`useSyncExternalStore`,sa(),Aa(e,t,n)},useId:function(){return X=`useId`,sa(),Mo()},useFormState:function(e,t){return X=`useFormState`,sa(),la(),Xa(e,t)},useActionState:function(e,t){return X=`useActionState`,sa(),Xa(e,t)},useOptimistic:function(e){return X=`useOptimistic`,sa(),za(e)},useHostTransitionStatus:jo,useMemoCache:wa,useCacheRefresh:function(){return X=`useCacheRefresh`,sa(),No()},useEffectEvent:function(e){return X=`useEffectEvent`,sa(),so(e)}},Vy={readContext:function(e){return Kr(e)},use:Ca,useCallback:function(e,t){return X=`useCallback`,W(),mo(e,t)},useContext:function(e){return X=`useContext`,W(),Kr(e)},useEffect:function(e,t){return X=`useEffect`,W(),ao(e,t)},useImperativeHandle:function(e,t,n){return X=`useImperativeHandle`,W(),fo(e,t,n)},useInsertionEffect:function(e,t){X=`useInsertionEffect`,W(),ro(4,gy,e,t)},useLayoutEffect:function(e,t){return X=`useLayoutEffect`,W(),lo(e,t)},useMemo:function(e,t){X=`useMemo`,W();var n=K.H;K.H=Wy;try{return go(e,t)}finally{K.H=n}},useReducer:function(e,t,n){X=`useReducer`,W();var r=K.H;K.H=Wy;try{return Ea(e,t,n)}finally{K.H=r}},useRef:function(e){return X=`useRef`,W(),no(e)},useState:function(e){X=`useState`,W();var t=K.H;K.H=Wy;try{return Ra(e)}finally{K.H=t}},useDebugValue:function(){X=`useDebugValue`,W()},useDeferredValue:function(e,t){return X=`useDeferredValue`,W(),vo(e,t)},useTransition:function(){return X=`useTransition`,W(),Oo()},useSyncExternalStore:function(e,t,n){return X=`useSyncExternalStore`,W(),Aa(e,t,n)},useId:function(){return X=`useId`,W(),Mo()},useActionState:function(e,t){return X=`useActionState`,W(),Xa(e,t)},useFormState:function(e,t){return X=`useFormState`,W(),la(),Xa(e,t)},useOptimistic:function(e){return X=`useOptimistic`,W(),za(e)},useHostTransitionStatus:jo,useMemoCache:wa,useCacheRefresh:function(){return X=`useCacheRefresh`,W(),No()},useEffectEvent:function(e){return X=`useEffectEvent`,W(),so(e)}},Hy={readContext:function(e){return Kr(e)},use:Ca,useCallback:function(e,t){return X=`useCallback`,W(),ho(e,t)},useContext:function(e){return X=`useContext`,W(),Kr(e)},useEffect:function(e,t){X=`useEffect`,W(),io(2048,vy,e,t)},useImperativeHandle:function(e,t,n){return X=`useImperativeHandle`,W(),po(e,t,n)},useInsertionEffect:function(e,t){return X=`useInsertionEffect`,W(),io(4,gy,e,t)},useLayoutEffect:function(e,t){return X=`useLayoutEffect`,W(),io(4,_y,e,t)},useMemo:function(e,t){X=`useMemo`,W();var n=K.H;K.H=Gy;try{return _o(e,t)}finally{K.H=n}},useReducer:function(e,t,n){X=`useReducer`,W();var r=K.H;K.H=Gy;try{return Da(e,t,n)}finally{K.H=r}},useRef:function(){return X=`useRef`,W(),ba().memoizedState},useState:function(){X=`useState`,W();var e=K.H;K.H=Gy;try{return Da(Ta)}finally{K.H=e}},useDebugValue:function(){X=`useDebugValue`,W()},useDeferredValue:function(e,t){return X=`useDeferredValue`,W(),yo(e,t)},useTransition:function(){return X=`useTransition`,W(),ko()},useSyncExternalStore:function(e,t,n){return X=`useSyncExternalStore`,W(),ja(e,t,n)},useId:function(){return X=`useId`,W(),ba().memoizedState},useFormState:function(e){return X=`useFormState`,W(),la(),Za(e)},useActionState:function(e){return X=`useActionState`,W(),Za(e)},useOptimistic:function(e,t){return X=`useOptimistic`,W(),Ba(e,t)},useHostTransitionStatus:jo,useMemoCache:wa,useCacheRefresh:function(){return X=`useCacheRefresh`,W(),ba().memoizedState},useEffectEvent:function(e){return X=`useEffectEvent`,W(),co(e)}},Uy={readContext:function(e){return Kr(e)},use:Ca,useCallback:function(e,t){return X=`useCallback`,W(),ho(e,t)},useContext:function(e){return X=`useContext`,W(),Kr(e)},useEffect:function(e,t){X=`useEffect`,W(),io(2048,vy,e,t)},useImperativeHandle:function(e,t,n){return X=`useImperativeHandle`,W(),po(e,t,n)},useInsertionEffect:function(e,t){return X=`useInsertionEffect`,W(),io(4,gy,e,t)},useLayoutEffect:function(e,t){return X=`useLayoutEffect`,W(),io(4,_y,e,t)},useMemo:function(e,t){X=`useMemo`,W();var n=K.H;K.H=Ky;try{return _o(e,t)}finally{K.H=n}},useReducer:function(e,t,n){X=`useReducer`,W();var r=K.H;K.H=Ky;try{return ka(e,t,n)}finally{K.H=r}},useRef:function(){return X=`useRef`,W(),ba().memoizedState},useState:function(){X=`useState`,W();var e=K.H;K.H=Ky;try{return ka(Ta)}finally{K.H=e}},useDebugValue:function(){X=`useDebugValue`,W()},useDeferredValue:function(e,t){return X=`useDeferredValue`,W(),bo(e,t)},useTransition:function(){return X=`useTransition`,W(),Ao()},useSyncExternalStore:function(e,t,n){return X=`useSyncExternalStore`,W(),ja(e,t,n)},useId:function(){return X=`useId`,W(),ba().memoizedState},useFormState:function(e){return X=`useFormState`,W(),la(),eo(e)},useActionState:function(e){return X=`useActionState`,W(),eo(e)},useOptimistic:function(e,t){return X=`useOptimistic`,W(),Ha(e,t)},useHostTransitionStatus:jo,useMemoCache:wa,useCacheRefresh:function(){return X=`useCacheRefresh`,W(),ba().memoizedState},useEffectEvent:function(e){return X=`useEffectEvent`,W(),co(e)}},Wy={readContext:function(e){return l(),Kr(e)},use:function(e){return c(),Ca(e)},useCallback:function(e,t){return X=`useCallback`,c(),sa(),mo(e,t)},useContext:function(e){return X=`useContext`,c(),sa(),Kr(e)},useEffect:function(e,t){return X=`useEffect`,c(),sa(),ao(e,t)},useImperativeHandle:function(e,t,n){return X=`useImperativeHandle`,c(),sa(),fo(e,t,n)},useInsertionEffect:function(e,t){X=`useInsertionEffect`,c(),sa(),ro(4,gy,e,t)},useLayoutEffect:function(e,t){return X=`useLayoutEffect`,c(),sa(),lo(e,t)},useMemo:function(e,t){X=`useMemo`,c(),sa();var n=K.H;K.H=Wy;try{return go(e,t)}finally{K.H=n}},useReducer:function(e,t,n){X=`useReducer`,c(),sa();var r=K.H;K.H=Wy;try{return Ea(e,t,n)}finally{K.H=r}},useRef:function(e){return X=`useRef`,c(),sa(),no(e)},useState:function(e){X=`useState`,c(),sa();var t=K.H;K.H=Wy;try{return Ra(e)}finally{K.H=t}},useDebugValue:function(){X=`useDebugValue`,c(),sa()},useDeferredValue:function(e,t){return X=`useDeferredValue`,c(),sa(),vo(e,t)},useTransition:function(){return X=`useTransition`,c(),sa(),Oo()},useSyncExternalStore:function(e,t,n){return X=`useSyncExternalStore`,c(),sa(),Aa(e,t,n)},useId:function(){return X=`useId`,c(),sa(),Mo()},useFormState:function(e,t){return X=`useFormState`,c(),sa(),Xa(e,t)},useActionState:function(e,t){return X=`useActionState`,c(),sa(),Xa(e,t)},useOptimistic:function(e){return X=`useOptimistic`,c(),sa(),za(e)},useMemoCache:function(e){return c(),wa(e)},useHostTransitionStatus:jo,useCacheRefresh:function(){return X=`useCacheRefresh`,sa(),No()},useEffectEvent:function(e){return X=`useEffectEvent`,c(),sa(),so(e)}},Gy={readContext:function(e){return l(),Kr(e)},use:function(e){return c(),Ca(e)},useCallback:function(e,t){return X=`useCallback`,c(),W(),ho(e,t)},useContext:function(e){return X=`useContext`,c(),W(),Kr(e)},useEffect:function(e,t){X=`useEffect`,c(),W(),io(2048,vy,e,t)},useImperativeHandle:function(e,t,n){return X=`useImperativeHandle`,c(),W(),po(e,t,n)},useInsertionEffect:function(e,t){return X=`useInsertionEffect`,c(),W(),io(4,gy,e,t)},useLayoutEffect:function(e,t){return X=`useLayoutEffect`,c(),W(),io(4,_y,e,t)},useMemo:function(e,t){X=`useMemo`,c(),W();var n=K.H;K.H=Gy;try{return _o(e,t)}finally{K.H=n}},useReducer:function(e,t,n){X=`useReducer`,c(),W();var r=K.H;K.H=Gy;try{return Da(e,t,n)}finally{K.H=r}},useRef:function(){return X=`useRef`,c(),W(),ba().memoizedState},useState:function(){X=`useState`,c(),W();var e=K.H;K.H=Gy;try{return Da(Ta)}finally{K.H=e}},useDebugValue:function(){X=`useDebugValue`,c(),W()},useDeferredValue:function(e,t){return X=`useDeferredValue`,c(),W(),yo(e,t)},useTransition:function(){return X=`useTransition`,c(),W(),ko()},useSyncExternalStore:function(e,t,n){return X=`useSyncExternalStore`,c(),W(),ja(e,t,n)},useId:function(){return X=`useId`,c(),W(),ba().memoizedState},useFormState:function(e){return X=`useFormState`,c(),W(),Za(e)},useActionState:function(e){return X=`useActionState`,c(),W(),Za(e)},useOptimistic:function(e,t){return X=`useOptimistic`,c(),W(),Ba(e,t)},useMemoCache:function(e){return c(),wa(e)},useHostTransitionStatus:jo,useCacheRefresh:function(){return X=`useCacheRefresh`,W(),ba().memoizedState},useEffectEvent:function(e){return X=`useEffectEvent`,c(),W(),co(e)}},Ky={readContext:function(e){return l(),Kr(e)},use:function(e){return c(),Ca(e)},useCallback:function(e,t){return X=`useCallback`,c(),W(),ho(e,t)},useContext:function(e){return X=`useContext`,c(),W(),Kr(e)},useEffect:function(e,t){X=`useEffect`,c(),W(),io(2048,vy,e,t)},useImperativeHandle:function(e,t,n){return X=`useImperativeHandle`,c(),W(),po(e,t,n)},useInsertionEffect:function(e,t){return X=`useInsertionEffect`,c(),W(),io(4,gy,e,t)},useLayoutEffect:function(e,t){return X=`useLayoutEffect`,c(),W(),io(4,_y,e,t)},useMemo:function(e,t){X=`useMemo`,c(),W();var n=K.H;K.H=Gy;try{return _o(e,t)}finally{K.H=n}},useReducer:function(e,t,n){X=`useReducer`,c(),W();var r=K.H;K.H=Gy;try{return ka(e,t,n)}finally{K.H=r}},useRef:function(){return X=`useRef`,c(),W(),ba().memoizedState},useState:function(){X=`useState`,c(),W();var e=K.H;K.H=Gy;try{return ka(Ta)}finally{K.H=e}},useDebugValue:function(){X=`useDebugValue`,c(),W()},useDeferredValue:function(e,t){return X=`useDeferredValue`,c(),W(),bo(e,t)},useTransition:function(){return X=`useTransition`,c(),W(),Ao()},useSyncExternalStore:function(e,t,n){return X=`useSyncExternalStore`,c(),W(),ja(e,t,n)},useId:function(){return X=`useId`,c(),W(),ba().memoizedState},useFormState:function(e){return X=`useFormState`,c(),W(),eo(e)},useActionState:function(e){return X=`useActionState`,c(),W(),eo(e)},useOptimistic:function(e,t){return X=`useOptimistic`,c(),W(),Ha(e,t)},useMemoCache:function(e){return c(),wa(e)},useHostTransitionStatus:jo,useCacheRefresh:function(){return X=`useCacheRefresh`,W(),ba().memoizedState},useEffectEvent:function(e){return X=`useEffectEvent`,c(),W(),co(e)}};var qy={},Jy=new Set,Yy=new Set,Xy=new Set,Zy=new Set,Qy=new Set,$y=new Set,eb=new Set,tb=new Set,nb=new Set,rb=new Set;Object.freeze(qy);var ib={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Gc(e),i=Ui(r);i.payload=t,n!=null&&(Vo(n),i.callback=n),t=Wi(e,i,r),t!==null&&(Qr(r,`this.setState()`,e),qc(t,e,r),Gi(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Gc(e),i=Ui(r);i.tag=ey,i.payload=t,n!=null&&(Vo(n),i.callback=n),t=Wi(e,i,r),t!==null&&(Qr(r,`this.replaceState()`,e),qc(t,e,r),Gi(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Gc(e),r=Ui(n);r.tag=ty,t!=null&&(Vo(t),r.callback=t),t=Wi(e,r,n),t!==null&&(Qr(n,`this.forceUpdate()`,e),qc(t,e,n),Gi(t,e,n))}},ab=null,ob=null,sb=Error(`This is not a real error. It's an implementation detail of React's selective hydration feature. If this leaks into userspace, it's a bug in React. Please file an issue.`),cb=!1,lb={},ub={},db={},fb={},pb=!1,mb={},hb={},gb={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},_b=!1,vb=null;vb=new Set;var yb=!1,bb=!1,xb=!1,Sb=typeof WeakSet==`function`?WeakSet:Set,Cb=null,wb=null,Tb=null,Eb=null,Db=!1,Ob=null,kb=!1,Ab=8192,jb={getCacheForType:function(e){var t=Kr(m_),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Kr(m_).controller.signal},getOwner:function(){return up}};if(typeof Symbol==`function`&&Symbol.for){var Mb=Symbol.for;Mb(`selector.component`),Mb(`selector.has_pseudo_class`),Mb(`selector.role`),Mb(`selector.test_id`),Mb(`selector.text`)}var Nb=[],Pb=typeof WeakMap==`function`?WeakMap:Map,Fb=0,Ib=2,Lb=4,Rb=0,zb=1,Bb=2,Vb=3,Hb=4,Ub=6,Wb=5,Gb=Fb,Kb=null,qb=null,Jb=0,Yb=0,Xb=1,Zb=2,Qb=3,$b=4,ex=5,tx=6,nx=7,rx=8,ix=9,ax=Yb,ox=null,sx=!1,cx=!1,lx=!1,ux=0,dx=Rb,fx=0,px=0,mx=0,hx=0,gx=0,_x=null,vx=null,yx=!1,bx=0,xx=0,Sx=300,Cx=1/0,wx=500,Tx=null,Ex=null,Dx=null,Ox=0,kx=1,Ax=2,Z=3,jx=0,Mx=1,Nx=2,Px=3,Fx=4,Ix=5,Q=0,Lx=null,Rx=null,zx=0,Bx=0,Vx=-0,Hx=null,Ux=null,Wx=null,Gx=Ox,Kx=null,qx=50,Jx=0,Yx=null,Xx=!1,Zx=!1,Qx=50,$x=0,eS=null,tS=!1,nS=null,rS=!1,iS=new Set,aS={},oS=null,sS=null,cS=!1,lS=!1,uS=!1,dS=!1,fS=0,pS={};(function(){for(var e=0;e<ng.length;e++){var t=ng[e],n=t.toLowerCase();t=t[0].toUpperCase()+t.slice(1),Nn(n,`on`+t)}Nn(Jh,`onAnimationEnd`),Nn(Yh,`onAnimationIteration`),Nn(Xh,`onAnimationStart`),Nn(`dblclick`,`onDoubleClick`),Nn(`focusin`,`onFocus`),Nn(`focusout`,`onBlur`),Nn(Zh,`onTransitionRun`),Nn(Qh,`onTransitionStart`),Nn($h,`onTransitionCancel`),Nn(eg,`onTransitionEnd`)})(),Ue(`onMouseEnter`,[`mouseout`,`mouseover`]),Ue(`onMouseLeave`,[`mouseout`,`mouseover`]),Ue(`onPointerEnter`,[`pointerout`,`pointerover`]),Ue(`onPointerLeave`,[`pointerout`,`pointerover`]),He(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),He(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),He(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),He(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),He(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),He(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var mS=`abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting`.split(` `),hS=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(mS)),gS=`_reactListening`+Math.random().toString(36).slice(2),_S=!1,vS=!1,yS=!1,bS=!1,xS=!1,SS=!1,CS=!1,wS={},TS=/\r\n?/g,ES=/\u0000|\uFFFD/g,DS=`http://www.w3.org/1999/xlink`,OS=`http://www.w3.org/XML/1998/namespace`,kS=`javascript:throw new Error('React form unexpectedly submitted.')`,AS=`suppressHydrationWarning`,jS=`&`,MS=`/&`,NS=`$`,PS=`/$`,FS=`$?`,IS=`$~`,LS=`$!`,RS=`html`,zS=`body`,BS=`head`,VS=`F!`,HS=`F`,US=`loading`,WS=`style`,GS=0,KS=1,qS=2,JS=null,YS=null,XS={dialog:!0,webview:!0},ZS=null,QS=void 0,$S=typeof setTimeout==`function`?setTimeout:void 0,eC=typeof clearTimeout==`function`?clearTimeout:void 0,tC=-1,nC=typeof Promise==`function`?Promise:void 0,rC=typeof queueMicrotask==`function`?queueMicrotask:nC===void 0?$S:function(e){return nC.resolve(null).then(e).catch(Bu)},iC=null,aC=0,oC=1,sC=2,cC=3,lC=4,uC=new Map,dC=new Set,fC=Uf.d;Uf.d={f:function(){var e=fC.f(),t=Qc();return e||t},r:function(e){var t=Re(e);t!==null&&t.tag===5&&t.type===`form`?Do(t):fC.r(e)},D:function(e){fC.D(e),Cd(`dns-prefetch`,e,null)},C:function(e,t){fC.C(e,t),Cd(`preconnect`,e,t)},L:function(e,t,n){fC.L(e,t,n);var r=pC;if(r&&e&&t){var i=`link[rel="preload"][as="`+nt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+nt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+nt(n.imageSizes)+`"]`)):i+=`[href="`+nt(e)+`"]`;var a=i;switch(t){case`style`:a=Ed(e);break;case`script`:a=Ad(e)}uC.has(a)||(e=wf({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),uC.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Dd(a))||t===`script`&&r.querySelector(jd(a))||(t=r.createElement(`link`),yu(t,`link`,e),Ve(t),r.head.appendChild(t)))}},m:function(e,t){fC.m(e,t);var n=pC;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+nt(r)+`"][href="`+nt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Ad(e)}if(!uC.has(a)&&(e=wf({rel:`modulepreload`,href:e},t),uC.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(jd(a)))return}r=n.createElement(`link`),yu(r,`link`,e),Ve(r),n.head.appendChild(r)}}},X:function(e,t){fC.X(e,t);var n=pC;if(n&&e){var r=Be(n).hoistableScripts,i=Ad(e),a=r.get(i);a||(a=n.querySelector(jd(i)),a||(e=wf({src:e,async:!0},t),(t=uC.get(i))&&Fd(e,t),a=n.createElement(`script`),Ve(a),yu(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}},S:function(e,t,n){fC.S(e,t,n);var r=pC;if(r&&e){var i=Be(r).hoistableStyles,a=Ed(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:aC,preload:null};if(o=r.querySelector(Dd(a)))s.loading=oC|lC;else{e=wf({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=uC.get(a))&&Pd(e,n);var c=o=r.createElement(`link`);Ve(c),yu(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=oC}),c.addEventListener(`error`,function(){s.loading|=sC}),s.loading|=lC,Nd(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}},M:function(e,t){fC.M(e,t);var n=pC;if(n&&e){var r=Be(n).hoistableScripts,i=Ad(e),a=r.get(i);a||(a=n.querySelector(jd(i)),a||(e=wf({src:e,async:!0,type:`module`},t),(t=uC.get(i))&&Fd(e,t),a=n.createElement(`script`),Ve(a),yu(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}};var pC=typeof document>`u`?null:document,mC=null,hC=6e4,gC=800,_C=500,vC=0,yC=null,bC=null,xC=Wf,SC={$$typeof:Mf,Provider:null,Consumer:null,_currentValue:xC,_currentValue2:xC,_threadCount:0},CC=`%c%s%c`,wC=`background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px`,TC=``,EC=` `,DC=Function.prototype.bind,OC=!1,kC=null,AC=null,jC=null,MC=null,NC=null,PC=null,FC=null,IC=null,LC=null,RC=null;kC=function(e,r,i,a){r=t(e,r),r!==null&&(i=n(r.memoizedState,i,0,a),r.memoizedState=i,r.baseState=i,e.memoizedProps=wf({},e.memoizedProps),i=tr(e,2),i!==null&&qc(i,e,2))},AC=function(e,n,r){n=t(e,n),n!==null&&(r=a(n.memoizedState,r,0),n.memoizedState=r,n.baseState=r,e.memoizedProps=wf({},e.memoizedProps),r=tr(e,2),r!==null&&qc(r,e,2))},jC=function(e,n,i,a){n=t(e,n),n!==null&&(i=r(n.memoizedState,i,a),n.memoizedState=i,n.baseState=i,e.memoizedProps=wf({},e.memoizedProps),i=tr(e,2),i!==null&&qc(i,e,2))},MC=function(e,t,r){e.pendingProps=n(e.memoizedProps,t,0,r),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=tr(e,2),t!==null&&qc(t,e,2)},NC=function(e,t){e.pendingProps=a(e.memoizedProps,t,0),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=tr(e,2),t!==null&&qc(t,e,2)},PC=function(e,t,n){e.pendingProps=r(e.memoizedProps,t,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=tr(e,2),t!==null&&qc(t,e,2)},FC=function(e){var t=tr(e,2);t!==null&&qc(t,e,2)},IC=function(e){var t=Ce(),n=tr(e,t);n!==null&&qc(n,e,t)},LC=function(e){s=e},RC=function(e){o=e};var zC=!0,BC=null,VC=!1,HC=null,UC=null,WC=null,GC=new Map,KC=new Map,qC=[],JC=`mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset`.split(` `),YC=null;if(yf.prototype.render=vf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(`Cannot update an unmounted root.`);var n=arguments;typeof n[1]==`function`?console.error(`does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect().`):v(n[1])?console.error(`You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root.`):n[1]!==void 0&&console.error(`You passed a second argument to root.render(...) but it only accepts one argument.`),n=e;var r=t.current;Jd(r,Gc(r),n,t,null,null)},yf.prototype.unmount=vf.prototype.unmount=function(){var e=arguments;if(typeof e[0]==`function`&&console.error(`does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect().`),e=this._internalRoot,e!==null){this._internalRoot=null;var t=e.containerInfo;(Gb&(Ib|Lb))!==Fb&&console.error(`Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition.`),Jd(e.current,2,null,e,null,null),Qc(),t[Up]=null}},yf.prototype.unstable_scheduleHydration=function(e){if(e){var t=Pe();e={blockedOn:null,target:e,priority:t};for(var n=0;n<qC.length&&t!==0&&t<qC[n].priority;n++);qC.splice(n,0,e),n===0&&uf(e)}},(function(){var e=Sf.version;if(e!==`19.2.6`)throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
236
+ - react: `+(e+`
237
+ - react-dom: 19.2.6
238
+ Learn more: https://react.dev/warnings/version-mismatch`))})(),typeof Map==`function`&&Map.prototype!=null&&typeof Map.prototype.forEach==`function`&&typeof Set==`function`&&Set.prototype!=null&&typeof Set.prototype.clear==`function`&&typeof Set.prototype.forEach==`function`||console.error(`React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://react.dev/link/react-polyfills`),Uf.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(`Unable to find node on an unmounted component.`):(e=Object.keys(e).join(`,`),Error(`Argument appears to not be a ReactComponent. Keys: `+e));return e=T(t),e=e===null?null:E(e),e=e===null?null:e.stateNode,e},!(function(){var e={bundleType:1,version:`19.2.6`,rendererPackageName:`react-dom`,currentDispatcherRef:K,reconcilerVersion:`19.2.6`};return e.overrideHookState=kC,e.overrideHookStateDeletePath=AC,e.overrideHookStateRenamePath=jC,e.overrideProps=MC,e.overridePropsDeletePath=NC,e.overridePropsRenamePath=PC,e.scheduleUpdate=FC,e.scheduleRetry=IC,e.setErrorHandler=LC,e.setSuspenseHandler=RC,e.scheduleRefresh=h,e.scheduleRoot=m,e.setRefreshHandler=_,e.getCurrentFiber=$d,ve(e)})()&&Ym&&window.top===window.self&&(-1<navigator.userAgent.indexOf(`Chrome`)&&navigator.userAgent.indexOf(`Edge`)===-1||-1<navigator.userAgent.indexOf(`Firefox`))){var XC=window.location.protocol;/^(https?|file):$/.test(XC)&&console.info(`%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools`+(XC===`file:`?`
239
+ You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:``),`font-weight:bold`)}e.createRoot=function(e,t){if(!v(e))throw Error(`Target container is not a DOM element.`);bf(e);var n=!1,r=``,i=Ko,a=qo,o=Jo;return t!=null&&(t.hydrate?console.warn(`hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead.`):typeof t==`object`&&t&&t.$$typeof===Ef&&console.error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
240
+
241
+ let root = createRoot(domContainer);
242
+ root.render(<App />);`),!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(i=t.onUncaughtError),t.onCaughtError!==void 0&&(a=t.onCaughtError),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=Kd(e,1,!1,null,null,n,r,null,i,a,o,_f),e[Up]=t.current,ru(e),new vf(t)},e.hydrateRoot=function(e,t,n){if(!v(e))throw Error(`Target container is not a DOM element.`);bf(e),t===void 0&&console.error(`Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)`);var r=!1,i=``,a=Ko,o=qo,s=Jo,c=null;return n!=null&&(!0===n.unstable_strictMode&&(r=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onUncaughtError!==void 0&&(a=n.onUncaughtError),n.onCaughtError!==void 0&&(o=n.onCaughtError),n.onRecoverableError!==void 0&&(s=n.onRecoverableError),n.formState!==void 0&&(c=n.formState)),t=Kd(e,1,!0,t,n??null,r,i,c,a,o,s,_f),t.context=qd(null),n=t.current,r=Gc(n),r=Ae(r),i=Ui(r),i.callback=null,Wi(n,i,r),Qr(r,`hydrateRoot()`,null),n=r,t.current.lanes=n,Te(t,n),Bl(t),e[Up]=t.current,ru(e),new yf(t)},e.version=`19.2.6`,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})),T=c(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`)){if(process.env.NODE_ENV!==`production`)throw Error(`^_^`);try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}}process.env.NODE_ENV===`production`?(n(),t.exports=C()):t.exports=w()})),E=c((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;var t=class{};e._CodeOrName=t,e.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var n=class extends t{constructor(t){if(super(),!e.IDENTIFIER.test(t))throw Error(`CodeGen: name must be a valid identifier`);this.str=t}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};e.Name=n;var r=class extends t{constructor(e){super(),this._items=typeof e==`string`?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let e=this._items[0];return e===``||e===`""`}get str(){return this._str??=this._items.reduce((e,t)=>`${e}${t}`,``)}get names(){return this._names??=this._items.reduce((e,t)=>(t instanceof n&&(e[t.str]=(e[t.str]||0)+1),e),{})}};e._Code=r,e.nil=new r(``);function i(e,...t){let n=[e[0]],i=0;for(;i<t.length;)s(n,t[i]),n.push(e[++i]);return new r(n)}e._=i;var a=new r(`+`);function o(e,...t){let n=[p(e[0])],i=0;for(;i<t.length;)n.push(a),s(n,t[i]),n.push(a,p(e[++i]));return c(n),new r(n)}e.str=o;function s(e,t){t instanceof r?e.push(...t._items):t instanceof n?e.push(t):e.push(d(t))}e.addCodeArg=s;function c(e){let t=1;for(;t<e.length-1;){if(e[t]===a){let n=l(e[t-1],e[t+1]);if(n!==void 0){e.splice(t-1,3,n);continue}e[t++]=`+`}t++}}function l(e,t){if(t===`""`)return e;if(e===`""`)return t;if(typeof e==`string`)return t instanceof n||e[e.length-1]!==`"`?void 0:typeof t==`string`?t[0]===`"`?e.slice(0,-1)+t.slice(1):void 0:`${e.slice(0,-1)}${t}"`;if(typeof t==`string`&&t[0]===`"`&&!(e instanceof n))return`"${e}${t.slice(1)}`}function u(e,t){return t.emptyStr()?e:e.emptyStr()?t:o`${e}${t}`}e.strConcat=u;function d(e){return typeof e==`number`||typeof e==`boolean`||e===null?e:p(Array.isArray(e)?e.join(`,`):e)}function f(e){return new r(p(e))}e.stringify=f;function p(e){return JSON.stringify(e).replace(/\u2028/g,`\\u2028`).replace(/\u2029/g,`\\u2029`)}e.safeStringify=p;function m(t){return typeof t==`string`&&e.IDENTIFIER.test(t)?new r(`.${t}`):i`[${t}]`}e.getProperty=m;function h(t){if(typeof t==`string`&&e.IDENTIFIER.test(t))return new r(`${t}`);throw Error(`CodeGen: invalid export name: ${t}, use explicit $id name mapping`)}e.getEsmExportName=h;function g(e){return new r(e.toString())}e.regexpCode=g})),D=c((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;var t=E(),n=class extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}},r;(function(e){e[e.Started=0]=`Started`,e[e.Completed=1]=`Completed`})(r||(e.UsedValueState=r={})),e.varKinds={const:new t.Name(`const`),let:new t.Name(`let`),var:new t.Name(`var`)};var i=class{constructor({prefixes:e,parent:t}={}){this._names={},this._prefixes=e,this._parent=t}toName(e){return e instanceof t.Name?e:this.name(e)}name(e){return new t.Name(this._newName(e))}_newName(e){let t=this._names[e]||this._nameGroup(e);return`${e}${t.index++}`}_nameGroup(e){if((this._parent?._prefixes)?.has(e)||this._prefixes&&!this._prefixes.has(e))throw Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}};e.Scope=i;var a=class extends t.Name{constructor(e,t){super(t),this.prefix=e}setValue(e,{property:n,itemIndex:r}){this.value=e,this.scopePath=(0,t._)`.${new t.Name(n)}[${r}]`}};e.ValueScopeName=a;var o=(0,t._)`\n`;e.ValueScope=class extends i{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?o:t.nil}}get(){return this._scope}name(e){return new a(e,this._newName(e))}value(e,t){if(t.ref===void 0)throw Error(`CodeGen: ref must be passed in value`);let n=this.toName(e),{prefix:r}=n,i=t.key??t.ref,a=this._values[r];if(a){let e=a.get(i);if(e)return e}else a=this._values[r]=new Map;a.set(i,n);let o=this._scope[r]||(this._scope[r]=[]),s=o.length;return o[s]=t.ref,n.setValue(t,{property:r,itemIndex:s}),n}getValue(e,t){let n=this._values[e];if(n)return n.get(t)}scopeRefs(e,n=this._values){return this._reduceValues(n,n=>{if(n.scopePath===void 0)throw Error(`CodeGen: name "${n}" has no value`);return(0,t._)`${e}${n.scopePath}`})}scopeCode(e=this._values,t,n){return this._reduceValues(e,e=>{if(e.value===void 0)throw Error(`CodeGen: name "${e}" has no value`);return e.value.code},t,n)}_reduceValues(i,a,o={},s){let c=t.nil;for(let l in i){let u=i[l];if(!u)continue;let d=o[l]=o[l]||new Map;u.forEach(i=>{if(d.has(i))return;d.set(i,r.Started);let o=a(i);if(o){let n=this.opts.es5?e.varKinds.var:e.varKinds.const;c=(0,t._)`${c}${n} ${i} = ${o};${this.opts._n}`}else if(o=s?.(i))c=(0,t._)`${c}${o}${this.opts._n}`;else throw new n(i);d.set(i,r.Completed)})}return c}}})),O=c((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;var t=E(),n=D(),r=E();Object.defineProperty(e,`_`,{enumerable:!0,get:function(){return r._}}),Object.defineProperty(e,`str`,{enumerable:!0,get:function(){return r.str}}),Object.defineProperty(e,`strConcat`,{enumerable:!0,get:function(){return r.strConcat}}),Object.defineProperty(e,`nil`,{enumerable:!0,get:function(){return r.nil}}),Object.defineProperty(e,`getProperty`,{enumerable:!0,get:function(){return r.getProperty}}),Object.defineProperty(e,`stringify`,{enumerable:!0,get:function(){return r.stringify}}),Object.defineProperty(e,`regexpCode`,{enumerable:!0,get:function(){return r.regexpCode}}),Object.defineProperty(e,`Name`,{enumerable:!0,get:function(){return r.Name}});var i=D();Object.defineProperty(e,`Scope`,{enumerable:!0,get:function(){return i.Scope}}),Object.defineProperty(e,`ValueScope`,{enumerable:!0,get:function(){return i.ValueScope}}),Object.defineProperty(e,`ValueScopeName`,{enumerable:!0,get:function(){return i.ValueScopeName}}),Object.defineProperty(e,`varKinds`,{enumerable:!0,get:function(){return i.varKinds}}),e.operators={GT:new t._Code(`>`),GTE:new t._Code(`>=`),LT:new t._Code(`<`),LTE:new t._Code(`<=`),EQ:new t._Code(`===`),NEQ:new t._Code(`!==`),NOT:new t._Code(`!`),OR:new t._Code(`||`),AND:new t._Code(`&&`),ADD:new t._Code(`+`)};var a=class{optimizeNodes(){return this}optimizeNames(e,t){return this}},o=class extends a{constructor(e,t,n){super(),this.varKind=e,this.name=t,this.rhs=n}render({es5:e,_n:t}){let r=e?n.varKinds.var:this.varKind,i=this.rhs===void 0?``:` = ${this.rhs}`;return`${r} ${this.name}${i};`+t}optimizeNames(e,t){if(e[this.name.str])return this.rhs&&=j(this.rhs,e,t),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}},s=class extends a{constructor(e,t,n){super(),this.lhs=e,this.rhs=t,this.sideEffects=n}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,n){if(!(this.lhs instanceof t.Name&&!e[this.lhs.str]&&!this.sideEffects))return this.rhs=j(this.rhs,e,n),this}get names(){return A(this.lhs instanceof t.Name?{}:{...this.lhs.names},this.rhs)}},c=class extends s{constructor(e,t,n,r){super(e,n,r),this.op=t}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}},l=class extends a{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}},u=class extends a{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:``};`+e}},d=class extends a{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}},f=class extends a{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,t){return this.code=j(this.code,e,t),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}},p=class extends a{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce((t,n)=>t+n.render(e),``)}optimizeNodes(){let{nodes:e}=this,t=e.length;for(;t--;){let n=e[t].optimizeNodes();Array.isArray(n)?e.splice(t,1,...n):n?e[t]=n:e.splice(t,1)}return e.length>0?this:void 0}optimizeNames(e,t){let{nodes:n}=this,r=n.length;for(;r--;){let i=n[r];i.optimizeNames(e,t)||(M(e,i.names),n.splice(r,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((e,t)=>k(e,t.names),{})}},m=class extends p{render(e){return`{`+e._n+super.render(e)+`}`+e._n}},h=class extends p{},g=class extends m{};g.kind=`else`;var _=class e extends m{constructor(e,t){super(t),this.condition=e}render(e){let t=`if(${this.condition})`+super.render(e);return this.else&&(t+=`else `+this.else.render(e)),t}optimizeNodes(){super.optimizeNodes();let t=this.condition;if(t===!0)return this.nodes;let n=this.else;if(n){let e=n.optimizeNodes();n=this.else=Array.isArray(e)?new g(e):e}if(n)return t===!1?n instanceof e?n:n.nodes:this.nodes.length?this:new e(N(t),n instanceof e?[n]:n.nodes);if(!(t===!1||!this.nodes.length))return this}optimizeNames(e,t){if(this.else=this.else?.optimizeNames(e,t),super.optimizeNames(e,t)||this.else)return this.condition=j(this.condition,e,t),this}get names(){let e=super.names;return A(e,this.condition),this.else&&k(e,this.else.names),e}};_.kind=`if`;var v=class extends m{};v.kind=`for`;var y=class extends v{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iteration=j(this.iteration,e,t),this}get names(){return k(super.names,this.iteration.names)}},b=class extends v{constructor(e,t,n,r){super(),this.varKind=e,this.name=t,this.from=n,this.to=r}render(e){let t=e.es5?n.varKinds.var:this.varKind,{name:r,from:i,to:a}=this;return`for(${t} ${r}=${i}; ${r}<${a}; ${r}++)`+super.render(e)}get names(){return A(A(super.names,this.from),this.to)}},x=class extends v{constructor(e,t,n,r){super(),this.loop=e,this.varKind=t,this.name=n,this.iterable=r}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iterable=j(this.iterable,e,t),this}get names(){return k(super.names,this.iterable.names)}},S=class extends m{constructor(e,t,n){super(),this.name=e,this.args=t,this.async=n}render(e){return`${this.async?`async `:``}function ${this.name}(${this.args})`+super.render(e)}};S.kind=`func`;var C=class extends p{render(e){return`return `+super.render(e)}};C.kind=`return`;var w=class extends m{render(e){let t=`try`+super.render(e);return this.catch&&(t+=this.catch.render(e)),this.finally&&(t+=this.finally.render(e)),t}optimizeNodes(){var e,t;return super.optimizeNodes(),(e=this.catch)==null||e.optimizeNodes(),(t=this.finally)==null||t.optimizeNodes(),this}optimizeNames(e,t){var n,r;return super.optimizeNames(e,t),(n=this.catch)==null||n.optimizeNames(e,t),(r=this.finally)==null||r.optimizeNames(e,t),this}get names(){let e=super.names;return this.catch&&k(e,this.catch.names),this.finally&&k(e,this.finally.names),e}},T=class extends m{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}};T.kind=`catch`;var O=class extends m{render(e){return`finally`+super.render(e)}};O.kind=`finally`,e.CodeGen=class{constructor(e,t={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...t,_n:t.lines?`
243
+ `:``},this._extScope=e,this._scope=new n.Scope({parent:e}),this._nodes=[new h]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,t){let n=this._extScope.value(e,t);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(e,t){return this._extScope.getValue(e,t)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,t,n,r){let i=this._scope.toName(t);return n!==void 0&&r&&(this._constants[i.str]=n),this._leafNode(new o(e,i,n)),i}const(e,t,r){return this._def(n.varKinds.const,e,t,r)}let(e,t,r){return this._def(n.varKinds.let,e,t,r)}var(e,t,r){return this._def(n.varKinds.var,e,t,r)}assign(e,t,n){return this._leafNode(new s(e,t,n))}add(t,n){return this._leafNode(new c(t,e.operators.ADD,n))}code(e){return typeof e==`function`?e():e!==t.nil&&this._leafNode(new f(e)),this}object(...e){let n=[`{`];for(let[r,i]of e)n.length>1&&n.push(`,`),n.push(r),(r!==i||this.opts.es5)&&(n.push(`:`),(0,t.addCodeArg)(n,i));return n.push(`}`),new t._Code(n)}if(e,t,n){if(this._blockNode(new _(e)),t&&n)this.code(t).else().code(n).endIf();else if(t)this.code(t).endIf();else if(n)throw Error(`CodeGen: "else" body without "then" body`);return this}elseIf(e){return this._elseNode(new _(e))}else(){return this._elseNode(new g)}endIf(){return this._endBlockNode(_,g)}_for(e,t){return this._blockNode(e),t&&this.code(t).endFor(),this}for(e,t){return this._for(new y(e),t)}forRange(e,t,r,i,a=this.opts.es5?n.varKinds.var:n.varKinds.let){let o=this._scope.toName(e);return this._for(new b(a,o,t,r),()=>i(o))}forOf(e,r,i,a=n.varKinds.const){let o=this._scope.toName(e);if(this.opts.es5){let e=r instanceof t.Name?r:this.var(`_arr`,r);return this.forRange(`_i`,0,(0,t._)`${e}.length`,n=>{this.var(o,(0,t._)`${e}[${n}]`),i(o)})}return this._for(new x(`of`,a,o,r),()=>i(o))}forIn(e,r,i,a=this.opts.es5?n.varKinds.var:n.varKinds.const){if(this.opts.ownProperties)return this.forOf(e,(0,t._)`Object.keys(${r})`,i);let o=this._scope.toName(e);return this._for(new x(`in`,a,o,r),()=>i(o))}endFor(){return this._endBlockNode(v)}label(e){return this._leafNode(new l(e))}break(e){return this._leafNode(new u(e))}return(e){let t=new C;if(this._blockNode(t),this.code(e),t.nodes.length!==1)throw Error(`CodeGen: "return" should have one node`);return this._endBlockNode(C)}try(e,t,n){if(!t&&!n)throw Error(`CodeGen: "try" without "catch" and "finally"`);let r=new w;if(this._blockNode(r),this.code(e),t){let e=this.name(`e`);this._currNode=r.catch=new T(e),t(e)}return n&&(this._currNode=r.finally=new O,this.code(n)),this._endBlockNode(T,O)}throw(e){return this._leafNode(new d(e))}block(e,t){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(t),this}endBlock(e){let t=this._blockStarts.pop();if(t===void 0)throw Error(`CodeGen: not in self-balancing block`);let n=this._nodes.length-t;if(n<0||e!==void 0&&n!==e)throw Error(`CodeGen: wrong number of nodes: ${n} vs ${e} expected`);return this._nodes.length=t,this}func(e,n=t.nil,r,i){return this._blockNode(new S(e,n,r)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(S)}optimize(e=1){for(;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,t){let n=this._currNode;if(n instanceof e||t&&n instanceof t)return this._nodes.pop(),this;throw Error(`CodeGen: not in block "${t?`${e.kind}/${t.kind}`:e.kind}"`)}_elseNode(e){let t=this._currNode;if(!(t instanceof _))throw Error(`CodeGen: "else" without "if"`);return this._currNode=t.else=e,this}get _root(){return this._nodes[0]}get _currNode(){let e=this._nodes;return e[e.length-1]}set _currNode(e){let t=this._nodes;t[t.length-1]=e}};function k(e,t){for(let n in t)e[n]=(e[n]||0)+(t[n]||0);return e}function A(e,n){return n instanceof t._CodeOrName?k(e,n.names):e}function j(e,n,r){if(e instanceof t.Name)return i(e);if(!a(e))return e;return new t._Code(e._items.reduce((e,n)=>(n instanceof t.Name&&(n=i(n)),n instanceof t._Code?e.push(...n._items):e.push(n),e),[]));function i(e){let t=r[e.str];return t===void 0||n[e.str]!==1?e:(delete n[e.str],t)}function a(e){return e instanceof t._Code&&e._items.some(e=>e instanceof t.Name&&n[e.str]===1&&r[e.str]!==void 0)}}function M(e,t){for(let n in t)e[n]=(e[n]||0)-(t[n]||0)}function N(e){return typeof e==`boolean`||typeof e==`number`||e===null?!e:(0,t._)`!${re(e)}`}e.not=N;var ee=ne(e.operators.AND);function te(...e){return e.reduce(ee)}e.and=te;var P=ne(e.operators.OR);function F(...e){return e.reduce(P)}e.or=F;function ne(e){return(n,r)=>n===t.nil?r:r===t.nil?n:(0,t._)`${re(n)} ${e} ${re(r)}`}function re(e){return e instanceof t.Name?e:(0,t._)`(${e})`}})),k=c((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.checkStrictMode=e.getErrorPath=e.Type=e.useFunc=e.setEvaluated=e.evaluatedPropsToName=e.mergeEvaluated=e.eachItem=e.unescapeJsonPointer=e.escapeJsonPointer=e.escapeFragment=e.unescapeFragment=e.schemaRefOrVal=e.schemaHasRulesButRef=e.schemaHasRules=e.checkUnknownRules=e.alwaysValidSchema=e.toHash=void 0;var t=O(),n=E();function r(e){let t={};for(let n of e)t[n]=!0;return t}e.toHash=r;function i(e,t){return typeof t==`boolean`?t:Object.keys(t).length===0?!0:(a(e,t),!o(t,e.self.RULES.all))}e.alwaysValidSchema=i;function a(e,t=e.schema){let{opts:n,self:r}=e;if(!n.strictSchema||typeof t==`boolean`)return;let i=r.RULES.keywords;for(let n in t)i[n]||x(e,`unknown keyword: "${n}"`)}e.checkUnknownRules=a;function o(e,t){if(typeof e==`boolean`)return!e;for(let n in e)if(t[n])return!0;return!1}e.schemaHasRules=o;function s(e,t){if(typeof e==`boolean`)return!e;for(let n in e)if(n!==`$ref`&&t.all[n])return!0;return!1}e.schemaHasRulesButRef=s;function c({topSchemaRef:e,schemaPath:n},r,i,a){if(!a){if(typeof r==`number`||typeof r==`boolean`)return r;if(typeof r==`string`)return(0,t._)`${r}`}return(0,t._)`${e}${n}${(0,t.getProperty)(i)}`}e.schemaRefOrVal=c;function l(e){return f(decodeURIComponent(e))}e.unescapeFragment=l;function u(e){return encodeURIComponent(d(e))}e.escapeFragment=u;function d(e){return typeof e==`number`?`${e}`:e.replace(/~/g,`~0`).replace(/\//g,`~1`)}e.escapeJsonPointer=d;function f(e){return e.replace(/~1/g,`/`).replace(/~0/g,`~`)}e.unescapeJsonPointer=f;function p(e,t){if(Array.isArray(e))for(let n of e)t(n);else t(e)}e.eachItem=p;function m({mergeNames:e,mergeToName:n,mergeValues:r,resultToName:i}){return(a,o,s,c)=>{let l=s===void 0?o:s instanceof t.Name?(o instanceof t.Name?e(a,o,s):n(a,o,s),s):o instanceof t.Name?(n(a,s,o),o):r(o,s);return c===t.Name&&!(l instanceof t.Name)?i(a,l):l}}e.mergeEvaluated={props:m({mergeNames:(e,n,r)=>e.if((0,t._)`${r} !== true && ${n} !== undefined`,()=>{e.if((0,t._)`${n} === true`,()=>e.assign(r,!0),()=>e.assign(r,(0,t._)`${r} || {}`).code((0,t._)`Object.assign(${r}, ${n})`))}),mergeToName:(e,n,r)=>e.if((0,t._)`${r} !== true`,()=>{n===!0?e.assign(r,!0):(e.assign(r,(0,t._)`${r} || {}`),g(e,r,n))}),mergeValues:(e,t)=>e===!0?!0:{...e,...t},resultToName:h}),items:m({mergeNames:(e,n,r)=>e.if((0,t._)`${r} !== true && ${n} !== undefined`,()=>e.assign(r,(0,t._)`${n} === true ? true : ${r} > ${n} ? ${r} : ${n}`)),mergeToName:(e,n,r)=>e.if((0,t._)`${r} !== true`,()=>e.assign(r,n===!0?!0:(0,t._)`${r} > ${n} ? ${r} : ${n}`)),mergeValues:(e,t)=>e===!0?!0:Math.max(e,t),resultToName:(e,t)=>e.var(`items`,t)})};function h(e,n){if(n===!0)return e.var(`props`,!0);let r=e.var(`props`,(0,t._)`{}`);return n!==void 0&&g(e,r,n),r}e.evaluatedPropsToName=h;function g(e,n,r){Object.keys(r).forEach(r=>e.assign((0,t._)`${n}${(0,t.getProperty)(r)}`,!0))}e.setEvaluated=g;var _={};function v(e,t){return e.scopeValue(`func`,{ref:t,code:_[t.code]||(_[t.code]=new n._Code(t.code))})}e.useFunc=v;var y;(function(e){e[e.Num=0]=`Num`,e[e.Str=1]=`Str`})(y||(e.Type=y={}));function b(e,n,r){if(e instanceof t.Name){let i=n===y.Num;return r?i?(0,t._)`"[" + ${e} + "]"`:(0,t._)`"['" + ${e} + "']"`:i?(0,t._)`"/" + ${e}`:(0,t._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,t.getProperty)(e).toString():`/`+d(e)}e.getErrorPath=b;function x(e,t,n=e.opts.strictSchema){if(n){if(t=`strict mode: ${t}`,n===!0)throw Error(t);e.self.logger.warn(t)}}e.checkStrictMode=x})),A=c((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=O();e.default={data:new t.Name(`data`),valCxt:new t.Name(`valCxt`),instancePath:new t.Name(`instancePath`),parentData:new t.Name(`parentData`),parentDataProperty:new t.Name(`parentDataProperty`),rootData:new t.Name(`rootData`),dynamicAnchors:new t.Name(`dynamicAnchors`),vErrors:new t.Name(`vErrors`),errors:new t.Name(`errors`),this:new t.Name(`this`),self:new t.Name(`self`),scope:new t.Name(`scope`),json:new t.Name(`json`),jsonPos:new t.Name(`jsonPos`),jsonLen:new t.Name(`jsonLen`),jsonPart:new t.Name(`jsonPart`)}})),j=c((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.extendErrors=e.resetErrorsCount=e.reportExtraError=e.reportError=e.keyword$DataError=e.keywordError=void 0;var t=O(),n=k(),r=A();e.keywordError={message:({keyword:e})=>(0,t.str)`must pass "${e}" keyword validation`},e.keyword$DataError={message:({keyword:e,schemaType:n})=>n?(0,t.str)`"${e}" keyword must be ${n} ($data)`:(0,t.str)`"${e}" keyword is invalid ($data)`};function i(n,r=e.keywordError,i,a){let{it:o}=n,{gen:s,compositeRule:u,allErrors:f}=o,p=d(n,r,i);a??(u||f)?c(s,p):l(o,(0,t._)`[${p}]`)}e.reportError=i;function a(t,n=e.keywordError,i){let{it:a}=t,{gen:o,compositeRule:s,allErrors:u}=a;c(o,d(t,n,i)),s||u||l(a,r.default.vErrors)}e.reportExtraError=a;function o(e,n){e.assign(r.default.errors,n),e.if((0,t._)`${r.default.vErrors} !== null`,()=>e.if(n,()=>e.assign((0,t._)`${r.default.vErrors}.length`,n),()=>e.assign(r.default.vErrors,null)))}e.resetErrorsCount=o;function s({gen:e,keyword:n,schemaValue:i,data:a,errsCount:o,it:s}){if(o===void 0)throw Error(`ajv implementation error`);let c=e.name(`err`);e.forRange(`i`,o,r.default.errors,o=>{e.const(c,(0,t._)`${r.default.vErrors}[${o}]`),e.if((0,t._)`${c}.instancePath === undefined`,()=>e.assign((0,t._)`${c}.instancePath`,(0,t.strConcat)(r.default.instancePath,s.errorPath))),e.assign((0,t._)`${c}.schemaPath`,(0,t.str)`${s.errSchemaPath}/${n}`),s.opts.verbose&&(e.assign((0,t._)`${c}.schema`,i),e.assign((0,t._)`${c}.data`,a))})}e.extendErrors=s;function c(e,n){let i=e.const(`err`,n);e.if((0,t._)`${r.default.vErrors} === null`,()=>e.assign(r.default.vErrors,(0,t._)`[${i}]`),(0,t._)`${r.default.vErrors}.push(${i})`),e.code((0,t._)`${r.default.errors}++`)}function l(e,n){let{gen:r,validateName:i,schemaEnv:a}=e;a.$async?r.throw((0,t._)`new ${e.ValidationError}(${n})`):(r.assign((0,t._)`${i}.errors`,n),r.return(!1))}var u={keyword:new t.Name(`keyword`),schemaPath:new t.Name(`schemaPath`),params:new t.Name(`params`),propertyName:new t.Name(`propertyName`),message:new t.Name(`message`),schema:new t.Name(`schema`),parentSchema:new t.Name(`parentSchema`)};function d(e,n,r){let{createErrors:i}=e.it;return i===!1?(0,t._)`{}`:f(e,n,r)}function f(e,t,n={}){let{gen:r,it:i}=e,a=[p(i,n),m(e,n)];return h(e,t,a),r.object(...a)}function p({errorPath:e},{instancePath:i}){let a=i?(0,t.str)`${e}${(0,n.getErrorPath)(i,n.Type.Str)}`:e;return[r.default.instancePath,(0,t.strConcat)(r.default.instancePath,a)]}function m({keyword:e,it:{errSchemaPath:r}},{schemaPath:i,parentSchema:a}){let o=a?r:(0,t.str)`${r}/${e}`;return i&&(o=(0,t.str)`${o}${(0,n.getErrorPath)(i,n.Type.Str)}`),[u.schemaPath,o]}function h(e,{params:n,message:i},a){let{keyword:o,data:s,schemaValue:c,it:l}=e,{opts:d,propertyName:f,topSchemaRef:p,schemaPath:m}=l;a.push([u.keyword,o],[u.params,typeof n==`function`?n(e):n||(0,t._)`{}`]),d.messages&&a.push([u.message,typeof i==`function`?i(e):i]),d.verbose&&a.push([u.schema,c],[u.parentSchema,(0,t._)`${p}${m}`],[r.default.data,s]),f&&a.push([u.propertyName,f])}})),M=c((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.boolOrEmptySchema=e.topBoolOrEmptySchema=void 0;var t=j(),n=O(),r=A(),i={message:`boolean schema is false`};function a(e){let{gen:t,schema:i,validateName:a}=e;i===!1?s(e,!1):typeof i==`object`&&i.$async===!0?t.return(r.default.data):(t.assign((0,n._)`${a}.errors`,null),t.return(!0))}e.topBoolOrEmptySchema=a;function o(e,t){let{gen:n,schema:r}=e;r===!1?(n.var(t,!1),s(e)):n.var(t,!0)}e.boolOrEmptySchema=o;function s(e,n){let{gen:r,data:a}=e,o={gen:r,keyword:`false schema`,data:a,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,t.reportError)(o,i,void 0,n)}})),N=c((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.getRules=e.isJSONType=void 0;var t=new Set([`string`,`number`,`integer`,`boolean`,`null`,`object`,`array`]);function n(e){return typeof e==`string`&&t.has(e)}e.isJSONType=n;function r(){let e={number:{type:`number`,rules:[]},string:{type:`string`,rules:[]},array:{type:`array`,rules:[]},object:{type:`object`,rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}e.getRules=r})),ee=c((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.shouldUseRule=e.shouldUseGroup=e.schemaHasRulesForType=void 0;function t({schema:e,self:t},r){let i=t.RULES.types[r];return i&&i!==!0&&n(e,i)}e.schemaHasRulesForType=t;function n(e,t){return t.rules.some(t=>r(e,t))}e.shouldUseGroup=n;function r(e,t){return e[t.keyword]!==void 0||t.definition.implements?.some(t=>e[t]!==void 0)}e.shouldUseRule=r})),te=c((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.reportTypeError=e.checkDataTypes=e.checkDataType=e.coerceAndCheckDataType=e.getJSONTypes=e.getSchemaTypes=e.DataType=void 0;var t=N(),n=ee(),r=j(),i=O(),a=k(),o;(function(e){e[e.Correct=0]=`Correct`,e[e.Wrong=1]=`Wrong`})(o||(e.DataType=o={}));function s(e){let t=c(e.type);if(t.includes(`null`)){if(e.nullable===!1)throw Error(`type: null contradicts nullable: false`)}else{if(!t.length&&e.nullable!==void 0)throw Error(`"nullable" cannot be used without "type"`);e.nullable===!0&&t.push(`null`)}return t}e.getSchemaTypes=s;function c(e){let n=Array.isArray(e)?e:e?[e]:[];if(n.every(t.isJSONType))return n;throw Error(`type must be JSONType or JSONType[]: `+n.join(`,`))}e.getJSONTypes=c;function l(e,t){let{gen:r,data:i,opts:a}=e,s=d(t,a.coerceTypes),c=t.length>0&&!(s.length===0&&t.length===1&&(0,n.schemaHasRulesForType)(e,t[0]));if(c){let n=h(t,i,a.strictNumbers,o.Wrong);r.if(n,()=>{s.length?f(e,t,s):_(e)})}return c}e.coerceAndCheckDataType=l;var u=new Set([`string`,`number`,`integer`,`boolean`,`null`]);function d(e,t){return t?e.filter(e=>u.has(e)||t===`array`&&e===`array`):[]}function f(e,t,n){let{gen:r,data:a,opts:o}=e,s=r.let(`dataType`,(0,i._)`typeof ${a}`),c=r.let(`coerced`,(0,i._)`undefined`);o.coerceTypes===`array`&&r.if((0,i._)`${s} == 'object' && Array.isArray(${a}) && ${a}.length == 1`,()=>r.assign(a,(0,i._)`${a}[0]`).assign(s,(0,i._)`typeof ${a}`).if(h(t,a,o.strictNumbers),()=>r.assign(c,a))),r.if((0,i._)`${c} !== undefined`);for(let e of n)(u.has(e)||e===`array`&&o.coerceTypes===`array`)&&l(e);r.else(),_(e),r.endIf(),r.if((0,i._)`${c} !== undefined`,()=>{r.assign(a,c),p(e,c)});function l(e){switch(e){case`string`:r.elseIf((0,i._)`${s} == "number" || ${s} == "boolean"`).assign(c,(0,i._)`"" + ${a}`).elseIf((0,i._)`${a} === null`).assign(c,(0,i._)`""`);return;case`number`:r.elseIf((0,i._)`${s} == "boolean" || ${a} === null
244
+ || (${s} == "string" && ${a} && ${a} == +${a})`).assign(c,(0,i._)`+${a}`);return;case`integer`:r.elseIf((0,i._)`${s} === "boolean" || ${a} === null
245
+ || (${s} === "string" && ${a} && ${a} == +${a} && !(${a} % 1))`).assign(c,(0,i._)`+${a}`);return;case`boolean`:r.elseIf((0,i._)`${a} === "false" || ${a} === 0 || ${a} === null`).assign(c,!1).elseIf((0,i._)`${a} === "true" || ${a} === 1`).assign(c,!0);return;case`null`:r.elseIf((0,i._)`${a} === "" || ${a} === 0 || ${a} === false`),r.assign(c,null);return;case`array`:r.elseIf((0,i._)`${s} === "string" || ${s} === "number"
246
+ || ${s} === "boolean" || ${a} === null`).assign(c,(0,i._)`[${a}]`)}}}function p({gen:e,parentData:t,parentDataProperty:n},r){e.if((0,i._)`${t} !== undefined`,()=>e.assign((0,i._)`${t}[${n}]`,r))}function m(e,t,n,r=o.Correct){let a=r===o.Correct?i.operators.EQ:i.operators.NEQ,s;switch(e){case`null`:return(0,i._)`${t} ${a} null`;case`array`:s=(0,i._)`Array.isArray(${t})`;break;case`object`:s=(0,i._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case`integer`:s=c((0,i._)`!(${t} % 1) && !isNaN(${t})`);break;case`number`:s=c();break;default:return(0,i._)`typeof ${t} ${a} ${e}`}return r===o.Correct?s:(0,i.not)(s);function c(e=i.nil){return(0,i.and)((0,i._)`typeof ${t} == "number"`,e,n?(0,i._)`isFinite(${t})`:i.nil)}}e.checkDataType=m;function h(e,t,n,r){if(e.length===1)return m(e[0],t,n,r);let o,s=(0,a.toHash)(e);if(s.array&&s.object){let e=(0,i._)`typeof ${t} != "object"`;o=s.null?e:(0,i._)`!${t} || ${e}`,delete s.null,delete s.array,delete s.object}else o=i.nil;s.number&&delete s.integer;for(let e in s)o=(0,i.and)(o,m(e,t,n,r));return o}e.checkDataTypes=h;var g={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>typeof e==`string`?(0,i._)`{type: ${e}}`:(0,i._)`{type: ${t}}`};function _(e){let t=v(e);(0,r.reportError)(t,g)}e.reportTypeError=_;function v(e){let{gen:t,data:n,schema:r}=e,i=(0,a.schemaRefOrVal)(e,r,`type`);return{gen:t,keyword:`type`,data:n,schema:r.type,schemaCode:i,schemaValue:i,parentSchema:r,params:{},it:e}}})),P=c((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.assignDefaults=void 0;var t=O(),n=k();function r(e,t){let{properties:n,items:r}=e.schema;if(t===`object`&&n)for(let t in n)i(e,t,n[t].default);else t===`array`&&Array.isArray(r)&&r.forEach((t,n)=>i(e,n,t.default))}e.assignDefaults=r;function i(e,r,i){let{gen:a,compositeRule:o,data:s,opts:c}=e;if(i===void 0)return;let l=(0,t._)`${s}${(0,t.getProperty)(r)}`;if(o){(0,n.checkStrictMode)(e,`default is ignored for: ${l}`);return}let u=(0,t._)`${l} === undefined`;c.useDefaults===`empty`&&(u=(0,t._)`${u} || ${l} === null || ${l} === ""`),a.if(u,(0,t._)`${l} = ${(0,t.stringify)(i)}`)}})),F=c((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.validateUnion=e.validateArray=e.usePattern=e.callValidateCode=e.schemaProperties=e.allSchemaProperties=e.noPropertyInData=e.propertyInData=e.isOwnProperty=e.hasPropFunc=e.reportMissingProp=e.checkMissingProp=e.checkReportMissingProp=void 0;var t=O(),n=k(),r=A(),i=k();function a(e,n){let{gen:r,data:i,it:a}=e;r.if(d(r,i,n,a.opts.ownProperties),()=>{e.setParams({missingProperty:(0,t._)`${n}`},!0),e.error()})}e.checkReportMissingProp=a;function o({gen:e,data:n,it:{opts:r}},i,a){return(0,t.or)(...i.map(i=>(0,t.and)(d(e,n,i,r.ownProperties),(0,t._)`${a} = ${i}`)))}e.checkMissingProp=o;function s(e,t){e.setParams({missingProperty:t},!0),e.error()}e.reportMissingProp=s;function c(e){return e.scopeValue(`func`,{ref:Object.prototype.hasOwnProperty,code:(0,t._)`Object.prototype.hasOwnProperty`})}e.hasPropFunc=c;function l(e,n,r){return(0,t._)`${c(e)}.call(${n}, ${r})`}e.isOwnProperty=l;function u(e,n,r,i){let a=(0,t._)`${n}${(0,t.getProperty)(r)} !== undefined`;return i?(0,t._)`${a} && ${l(e,n,r)}`:a}e.propertyInData=u;function d(e,n,r,i){let a=(0,t._)`${n}${(0,t.getProperty)(r)} === undefined`;return i?(0,t.or)(a,(0,t.not)(l(e,n,r))):a}e.noPropertyInData=d;function f(e){return e?Object.keys(e).filter(e=>e!==`__proto__`):[]}e.allSchemaProperties=f;function p(e,t){return f(t).filter(r=>!(0,n.alwaysValidSchema)(e,t[r]))}e.schemaProperties=p;function m({schemaCode:e,data:n,it:{gen:i,topSchemaRef:a,schemaPath:o,errorPath:s},it:c},l,u,d){let f=d?(0,t._)`${e}, ${n}, ${a}${o}`:n,p=[[r.default.instancePath,(0,t.strConcat)(r.default.instancePath,s)],[r.default.parentData,c.parentData],[r.default.parentDataProperty,c.parentDataProperty],[r.default.rootData,r.default.rootData]];c.opts.dynamicRef&&p.push([r.default.dynamicAnchors,r.default.dynamicAnchors]);let m=(0,t._)`${f}, ${i.object(...p)}`;return u===t.nil?(0,t._)`${l}(${m})`:(0,t._)`${l}.call(${u}, ${m})`}e.callValidateCode=m;var h=(0,t._)`new RegExp`;function g({gen:e,it:{opts:n}},r){let a=n.unicodeRegExp?`u`:``,{regExp:o}=n.code,s=o(r,a);return e.scopeValue(`pattern`,{key:s.toString(),ref:s,code:(0,t._)`${o.code===`new RegExp`?h:(0,i.useFunc)(e,o)}(${r}, ${a})`})}e.usePattern=g;function _(e){let{gen:r,data:i,keyword:a,it:o}=e,s=r.name(`valid`);if(o.allErrors){let e=r.let(`valid`,!0);return c(()=>r.assign(e,!1)),e}return r.var(s,!0),c(()=>r.break()),s;function c(o){let c=r.const(`len`,(0,t._)`${i}.length`);r.forRange(`i`,0,c,i=>{e.subschema({keyword:a,dataProp:i,dataPropType:n.Type.Num},s),r.if((0,t.not)(s),o)})}}e.validateArray=_;function v(e){let{gen:r,schema:i,keyword:a,it:o}=e;if(!Array.isArray(i))throw Error(`ajv implementation error`);if(i.some(e=>(0,n.alwaysValidSchema)(o,e))&&!o.opts.unevaluated)return;let s=r.let(`valid`,!1),c=r.name(`_valid`);r.block(()=>i.forEach((n,i)=>{let o=e.subschema({keyword:a,schemaProp:i,compositeRule:!0},c);r.assign(s,(0,t._)`${s} || ${c}`),e.mergeValidEvaluated(o,c)||r.if((0,t.not)(s))})),e.result(s,()=>e.reset(),()=>e.error(!0))}e.validateUnion=v})),ne=c((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.validateKeywordUsage=e.validSchemaType=e.funcKeywordCode=e.macroKeywordCode=void 0;var t=O(),n=A(),r=F(),i=j();function a(e,n){let{gen:r,keyword:i,schema:a,parentSchema:o,it:s}=e,c=n.macro.call(s.self,a,o,s),l=u(r,i,c);s.opts.validateSchema!==!1&&s.self.validateSchema(c,!0);let d=r.name(`valid`);e.subschema({schema:c,schemaPath:t.nil,errSchemaPath:`${s.errSchemaPath}/${i}`,topSchemaRef:l,compositeRule:!0},d),e.pass(d,()=>e.error(!0))}e.macroKeywordCode=a;function o(e,i){let{gen:a,keyword:o,schema:d,parentSchema:f,$data:p,it:m}=e;l(m,i);let h=u(a,o,!p&&i.compile?i.compile.call(m.self,d,f,m):i.validate),g=a.let(`valid`);e.block$data(g,_),e.ok(i.valid??g);function _(){if(i.errors===!1)b(),i.modifying&&s(e),x(()=>e.error());else{let t=i.async?v():y();i.modifying&&s(e),x(()=>c(e,t))}}function v(){let e=a.let(`ruleErrs`,null);return a.try(()=>b((0,t._)`await `),n=>a.assign(g,!1).if((0,t._)`${n} instanceof ${m.ValidationError}`,()=>a.assign(e,(0,t._)`${n}.errors`),()=>a.throw(n))),e}function y(){let e=(0,t._)`${h}.errors`;return a.assign(e,null),b(t.nil),e}function b(o=i.async?(0,t._)`await `:t.nil){let s=m.opts.passContext?n.default.this:n.default.self,c=!(`compile`in i&&!p||i.schema===!1);a.assign(g,(0,t._)`${o}${(0,r.callValidateCode)(e,h,s,c)}`,i.modifying)}function x(e){a.if((0,t.not)(i.valid??g),e)}}e.funcKeywordCode=o;function s(e){let{gen:n,data:r,it:i}=e;n.if(i.parentData,()=>n.assign(r,(0,t._)`${i.parentData}[${i.parentDataProperty}]`))}function c(e,r){let{gen:a}=e;a.if((0,t._)`Array.isArray(${r})`,()=>{a.assign(n.default.vErrors,(0,t._)`${n.default.vErrors} === null ? ${r} : ${n.default.vErrors}.concat(${r})`).assign(n.default.errors,(0,t._)`${n.default.vErrors}.length`),(0,i.extendErrors)(e)},()=>e.error())}function l({schemaEnv:e},t){if(t.async&&!e.$async)throw Error(`async keyword in sync schema`)}function u(e,n,r){if(r===void 0)throw Error(`keyword "${n}" failed to compile`);return e.scopeValue(`keyword`,typeof r==`function`?{ref:r}:{ref:r,code:(0,t.stringify)(r)})}function d(e,t,n=!1){return!t.length||t.some(t=>t===`array`?Array.isArray(e):t===`object`?e&&typeof e==`object`&&!Array.isArray(e):typeof e==t||n&&e===void 0)}e.validSchemaType=d;function f({schema:e,opts:t,self:n,errSchemaPath:r},i,a){if(Array.isArray(i.keyword)?!i.keyword.includes(a):i.keyword!==a)throw Error(`ajv implementation error`);let o=i.dependencies;if(o?.some(t=>!Object.prototype.hasOwnProperty.call(e,t)))throw Error(`parent schema must have dependencies of ${a}: ${o.join(`,`)}`);if(i.validateSchema&&!i.validateSchema(e[a])){let e=`keyword "${a}" value is invalid at path "${r}": `+n.errorsText(i.validateSchema.errors);if(t.validateSchema===`log`)n.logger.error(e);else throw Error(e)}}e.validateKeywordUsage=f})),re=c((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.extendSubschemaMode=e.extendSubschemaData=e.getSubschema=void 0;var t=O(),n=k();function r(e,{keyword:r,schemaProp:i,schema:a,schemaPath:o,errSchemaPath:s,topSchemaRef:c}){if(r!==void 0&&a!==void 0)throw Error(`both "keyword" and "schema" passed, only one allowed`);if(r!==void 0){let a=e.schema[r];return i===void 0?{schema:a,schemaPath:(0,t._)`${e.schemaPath}${(0,t.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${r}`}:{schema:a[i],schemaPath:(0,t._)`${e.schemaPath}${(0,t.getProperty)(r)}${(0,t.getProperty)(i)}`,errSchemaPath:`${e.errSchemaPath}/${r}/${(0,n.escapeFragment)(i)}`}}if(a!==void 0){if(o===void 0||s===void 0||c===void 0)throw Error(`"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"`);return{schema:a,schemaPath:o,topSchemaRef:c,errSchemaPath:s}}throw Error(`either "keyword" or "schema" must be passed`)}e.getSubschema=r;function i(e,r,{dataProp:i,dataPropType:a,data:o,dataTypes:s,propertyName:c}){if(o!==void 0&&i!==void 0)throw Error(`both "data" and "dataProp" passed, only one allowed`);let{gen:l}=r;if(i!==void 0){let{errorPath:o,dataPathArr:s,opts:c}=r;u(l.let(`data`,(0,t._)`${r.data}${(0,t.getProperty)(i)}`,!0)),e.errorPath=(0,t.str)`${o}${(0,n.getErrorPath)(i,a,c.jsPropertySyntax)}`,e.parentDataProperty=(0,t._)`${i}`,e.dataPathArr=[...s,e.parentDataProperty]}o!==void 0&&(u(o instanceof t.Name?o:l.let(`data`,o,!0)),c!==void 0&&(e.propertyName=c)),s&&(e.dataTypes=s);function u(t){e.data=t,e.dataLevel=r.dataLevel+1,e.dataTypes=[],r.definedProperties=new Set,e.parentData=r.data,e.dataNames=[...r.dataNames,t]}}e.extendSubschemaData=i;function a(e,{jtdDiscriminator:t,jtdMetadata:n,compositeRule:r,createErrors:i,allErrors:a}){r!==void 0&&(e.compositeRule=r),i!==void 0&&(e.createErrors=i),a!==void 0&&(e.allErrors=a),e.jtdDiscriminator=t,e.jtdMetadata=n}e.extendSubschemaMode=a})),ie=c(((e,t)=>{t.exports=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t==`object`&&typeof n==`object`){if(t.constructor!==n.constructor)return!1;var r,i,a;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(i=r;i--!==0;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(a=Object.keys(t),r=a.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,a[i]))return!1;for(i=r;i--!==0;){var o=a[i];if(!e(t[o],n[o]))return!1}return!0}return t!==t&&n!==n}})),I=c(((e,t)=>{var n=t.exports=function(e,t,n){typeof t==`function`&&(n=t,t={}),n=t.cb||n;var i=typeof n==`function`?n:n.pre||function(){},a=n.post||function(){};r(t,i,a,e,``,e)};n.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},n.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},n.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},n.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 r(e,t,a,o,s,c,l,u,d,f){if(o&&typeof o==`object`&&!Array.isArray(o)){for(var p in t(o,s,c,l,u,d,f),o){var m=o[p];if(Array.isArray(m)){if(p in n.arrayKeywords)for(var h=0;h<m.length;h++)r(e,t,a,m[h],s+`/`+p+`/`+h,c,s,p,o,h)}else if(p in n.propsKeywords){if(m&&typeof m==`object`)for(var g in m)r(e,t,a,m[g],s+`/`+p+`/`+i(g),c,s,p,o,g)}else (p in n.keywords||e.allKeys&&!(p in n.skipKeywords))&&r(e,t,a,m,s+`/`+p,c,s,p,o)}a(o,s,c,l,u,d,f)}}function i(e){return e.replace(/~/g,`~0`).replace(/\//g,`~1`)}})),ae=c((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.getSchemaRefs=e.resolveUrl=e.normalizeId=e._getFullPath=e.getFullPath=e.inlineRef=void 0;var t=k(),n=ie(),r=I(),i=new Set([`type`,`format`,`pattern`,`maxLength`,`minLength`,`maxProperties`,`minProperties`,`maxItems`,`minItems`,`maximum`,`minimum`,`uniqueItems`,`multipleOf`,`required`,`enum`,`const`]);function a(e,t=!0){return typeof e==`boolean`?!0:t===!0?!s(e):t?c(e)<=t:!1}e.inlineRef=a;var o=new Set([`$ref`,`$recursiveRef`,`$recursiveAnchor`,`$dynamicRef`,`$dynamicAnchor`]);function s(e){for(let t in e){if(o.has(t))return!0;let n=e[t];if(Array.isArray(n)&&n.some(s)||typeof n==`object`&&s(n))return!0}return!1}function c(e){let n=0;for(let r in e)if(r===`$ref`||(n++,!i.has(r)&&(typeof e[r]==`object`&&(0,t.eachItem)(e[r],e=>n+=c(e)),n===1/0)))return 1/0;return n}function l(e,t=``,n){return n!==!1&&(t=f(t)),u(e,e.parse(t))}e.getFullPath=l;function u(e,t){return e.serialize(t).split(`#`)[0]+`#`}e._getFullPath=u;var d=/#\/?$/;function f(e){return e?e.replace(d,``):``}e.normalizeId=f;function p(e,t,n){return n=f(n),e.resolve(t,n)}e.resolveUrl=p;var m=/^[a-z_][-a-z0-9._]*$/i;function h(e,t){if(typeof e==`boolean`)return{};let{schemaId:i,uriResolver:a}=this.opts,o=f(e[i]||t),s={"":o},c=l(a,o,!1),u={},d=new Set;return r(e,{allKeys:!0},(e,t,n,r)=>{if(r===void 0)return;let a=c+t,o=s[r];typeof e[i]==`string`&&(o=l.call(this,e[i])),g.call(this,e.$anchor),g.call(this,e.$dynamicAnchor),s[t]=o;function l(t){let n=this.opts.uriResolver.resolve;if(t=f(o?n(o,t):t),d.has(t))throw h(t);d.add(t);let r=this.refs[t];return typeof r==`string`&&(r=this.refs[r]),typeof r==`object`?p(e,r.schema,t):t!==f(a)&&(t[0]===`#`?(p(e,u[t],t),u[t]=e):this.refs[t]=a),t}function g(e){if(typeof e==`string`){if(!m.test(e))throw Error(`invalid anchor "${e}"`);l.call(this,`#${e}`)}}}),u;function p(e,t,r){if(t!==void 0&&!n(e,t))throw h(r)}function h(e){return Error(`reference "${e}" resolves to more than one schema`)}}e.getSchemaRefs=h})),L=c((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.getData=e.KeywordCxt=e.validateFunctionCode=void 0;var t=M(),n=te(),r=ee(),i=te(),a=P(),o=ne(),s=re(),c=O(),l=A(),u=ae(),d=k(),f=j();function p(e){if(S(e)&&(w(e),x(e))){_(e);return}m(e,()=>(0,t.topBoolOrEmptySchema)(e))}e.validateFunctionCode=p;function m({gen:e,validateName:t,schema:n,schemaEnv:r,opts:i},a){i.code.es5?e.func(t,(0,c._)`${l.default.data}, ${l.default.valCxt}`,r.$async,()=>{e.code((0,c._)`"use strict"; ${y(n,i)}`),g(e,i),e.code(a)}):e.func(t,(0,c._)`${l.default.data}, ${h(i)}`,r.$async,()=>e.code(y(n,i)).code(a))}function h(e){return(0,c._)`{${l.default.instancePath}="", ${l.default.parentData}, ${l.default.parentDataProperty}, ${l.default.rootData}=${l.default.data}${e.dynamicRef?(0,c._)`, ${l.default.dynamicAnchors}={}`:c.nil}}={}`}function g(e,t){e.if(l.default.valCxt,()=>{e.var(l.default.instancePath,(0,c._)`${l.default.valCxt}.${l.default.instancePath}`),e.var(l.default.parentData,(0,c._)`${l.default.valCxt}.${l.default.parentData}`),e.var(l.default.parentDataProperty,(0,c._)`${l.default.valCxt}.${l.default.parentDataProperty}`),e.var(l.default.rootData,(0,c._)`${l.default.valCxt}.${l.default.rootData}`),t.dynamicRef&&e.var(l.default.dynamicAnchors,(0,c._)`${l.default.valCxt}.${l.default.dynamicAnchors}`)},()=>{e.var(l.default.instancePath,(0,c._)`""`),e.var(l.default.parentData,(0,c._)`undefined`),e.var(l.default.parentDataProperty,(0,c._)`undefined`),e.var(l.default.rootData,l.default.data),t.dynamicRef&&e.var(l.default.dynamicAnchors,(0,c._)`{}`)})}function _(e){let{schema:t,opts:n,gen:r}=e;m(e,()=>{n.$comment&&t.$comment&&ie(e),D(e),r.let(l.default.vErrors,null),r.let(l.default.errors,0),n.unevaluated&&v(e),T(e),I(e)})}function v(e){let{gen:t,validateName:n}=e;e.evaluated=t.const(`evaluated`,(0,c._)`${n}.evaluated`),t.if((0,c._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,c._)`${e.evaluated}.props`,(0,c._)`undefined`)),t.if((0,c._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,c._)`${e.evaluated}.items`,(0,c._)`undefined`))}function y(e,t){let n=typeof e==`object`&&e[t.schemaId];return n&&(t.code.source||t.code.process)?(0,c._)`/*# sourceURL=${n} */`:c.nil}function b(e,n){if(S(e)&&(w(e),x(e))){C(e,n);return}(0,t.boolOrEmptySchema)(e,n)}function x({schema:e,self:t}){if(typeof e==`boolean`)return!e;for(let n in e)if(t.RULES.all[n])return!0;return!1}function S(e){return typeof e.schema!=`boolean`}function C(e,t){let{schema:n,gen:r,opts:i}=e;i.$comment&&n.$comment&&ie(e),N(e),F(e);let a=r.const(`_errs`,l.default.errors);T(e,a),r.var(t,(0,c._)`${a} === ${l.default.errors}`)}function w(e){(0,d.checkUnknownRules)(e),E(e)}function T(e,t){if(e.opts.jtd)return oe(e,[],!1,t);let r=(0,n.getSchemaTypes)(e.schema);oe(e,r,!(0,n.coerceAndCheckDataType)(e,r),t)}function E(e){let{schema:t,errSchemaPath:n,opts:r,self:i}=e;t.$ref&&r.ignoreKeywordsWithRef&&(0,d.schemaHasRulesButRef)(t,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${n}"`)}function D(e){let{schema:t,opts:n}=e;t.default!==void 0&&n.useDefaults&&n.strictSchema&&(0,d.checkStrictMode)(e,`default is ignored in the schema root`)}function N(e){let t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,u.resolveUrl)(e.opts.uriResolver,e.baseId,t))}function F(e){if(e.schema.$async&&!e.schemaEnv.$async)throw Error(`async schema in sync schema`)}function ie({gen:e,schemaEnv:t,schema:n,errSchemaPath:r,opts:i}){let a=n.$comment;if(i.$comment===!0)e.code((0,c._)`${l.default.self}.logger.log(${a})`);else if(typeof i.$comment==`function`){let n=(0,c.str)`${r}/$comment`,i=e.scopeValue(`root`,{ref:t.root});e.code((0,c._)`${l.default.self}.opts.$comment(${a}, ${n}, ${i}.schema)`)}}function I(e){let{gen:t,schemaEnv:n,validateName:r,ValidationError:i,opts:a}=e;n.$async?t.if((0,c._)`${l.default.errors} === 0`,()=>t.return(l.default.data),()=>t.throw((0,c._)`new ${i}(${l.default.vErrors})`)):(t.assign((0,c._)`${r}.errors`,l.default.vErrors),a.unevaluated&&L(e),t.return((0,c._)`${l.default.errors} === 0`))}function L({gen:e,evaluated:t,props:n,items:r}){n instanceof c.Name&&e.assign((0,c._)`${t}.props`,n),r instanceof c.Name&&e.assign((0,c._)`${t}.items`,r)}function oe(e,t,n,a){let{gen:o,schema:s,data:u,allErrors:f,opts:p,self:m}=e,{RULES:h}=m;if(s.$ref&&(p.ignoreKeywordsWithRef||!(0,d.schemaHasRulesButRef)(s,h))){o.block(()=>he(e,`$ref`,h.all.$ref.definition));return}p.jtd||ce(e,t),o.block(()=>{for(let e of h.rules)g(e);g(h.post)});function g(d){(0,r.shouldUseGroup)(s,d)&&(d.type?(o.if((0,i.checkDataType)(d.type,u,p.strictNumbers)),se(e,d),t.length===1&&t[0]===d.type&&n&&(o.else(),(0,i.reportTypeError)(e)),o.endIf()):se(e,d),f||o.if((0,c._)`${l.default.errors} === ${a||0}`))}}function se(e,t){let{gen:n,schema:i,opts:{useDefaults:o}}=e;o&&(0,a.assignDefaults)(e,t.type),n.block(()=>{for(let n of t.rules)(0,r.shouldUseRule)(i,n)&&he(e,n.keyword,n.definition,t.type)})}function ce(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(le(e,t),e.opts.allowUnionTypes||ue(e,t),de(e,e.dataTypes))}function le(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(t=>{R(e.dataTypes,t)||pe(e,`type "${t}" not allowed by context "${e.dataTypes.join(`,`)}"`)}),z(e,t)}}function ue(e,t){t.length>1&&!(t.length===2&&t.includes(`null`))&&pe(e,`use allowUnionTypes to allow union type keyword`)}function de(e,t){let n=e.self.RULES.all;for(let i in n){let a=n[i];if(typeof a==`object`&&(0,r.shouldUseRule)(e.schema,a)){let{type:n}=a.definition;n.length&&!n.some(e=>fe(t,e))&&pe(e,`missing type "${n.join(`,`)}" for keyword "${i}"`)}}}function fe(e,t){return e.includes(t)||t===`number`&&e.includes(`integer`)}function R(e,t){return e.includes(t)||t===`integer`&&e.includes(`number`)}function z(e,t){let n=[];for(let r of e.dataTypes)R(t,r)?n.push(r):t.includes(`integer`)&&r===`number`&&n.push(`integer`);e.dataTypes=n}function pe(e,t){let n=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${n}" (strictTypes)`,(0,d.checkStrictMode)(e,t,e.opts.strictTypes)}var me=class{constructor(e,t,n){if((0,o.validateKeywordUsage)(e,t,n),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=n,this.data=e.data,this.schema=e.schema[n],this.$data=t.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,d.schemaRefOrVal)(e,this.schema,n,this.$data),this.schemaType=t.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=t,this.$data)this.schemaCode=e.gen.const(`vSchema`,_e(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,o.validSchemaType)(this.schema,t.schemaType,t.allowUndefined))throw Error(`${n} value must be ${JSON.stringify(t.schemaType)}`);(`code`in t?t.trackErrors:t.errors!==!1)&&(this.errsCount=e.gen.const(`_errs`,l.default.errors))}result(e,t,n){this.failResult((0,c.not)(e),t,n)}failResult(e,t,n){this.gen.if(e),n?n():this.error(),t?(this.gen.else(),t(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,t){this.failResult((0,c.not)(e),void 0,t)}fail(e){if(e===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(e),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);let{schemaCode:t}=this;this.fail((0,c._)`${t} !== undefined && (${(0,c.or)(this.invalid$data(),e)})`)}error(e,t,n){if(t){this.setParams(t),this._error(e,n),this.setParams({});return}this._error(e,n)}_error(e,t){(e?f.reportExtraError:f.reportError)(this,this.def.error,t)}$dataError(){(0,f.reportError)(this,this.def.$dataError||f.keyword$DataError)}reset(){if(this.errsCount===void 0)throw Error(`add "trackErrors" to keyword definition`);(0,f.resetErrorsCount)(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,t){t?Object.assign(this.params,e):this.params=e}block$data(e,t,n=c.nil){this.gen.block(()=>{this.check$data(e,n),t()})}check$data(e=c.nil,t=c.nil){if(!this.$data)return;let{gen:n,schemaCode:r,schemaType:i,def:a}=this;n.if((0,c.or)((0,c._)`${r} === undefined`,t)),e!==c.nil&&n.assign(e,!0),(i.length||a.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),e!==c.nil&&n.assign(e,!1)),n.else()}invalid$data(){let{gen:e,schemaCode:t,schemaType:n,def:r,it:a}=this;return(0,c.or)(o(),s());function o(){if(n.length){if(!(t instanceof c.Name))throw Error(`ajv implementation error`);let e=Array.isArray(n)?n:[n];return(0,c._)`${(0,i.checkDataTypes)(e,t,a.opts.strictNumbers,i.DataType.Wrong)}`}return c.nil}function s(){if(r.validateSchema){let n=e.scopeValue(`validate$data`,{ref:r.validateSchema});return(0,c._)`!${n}(${t})`}return c.nil}}subschema(e,t){let n=(0,s.getSubschema)(this.it,e);(0,s.extendSubschemaData)(n,this.it,e),(0,s.extendSubschemaMode)(n,e);let r={...this.it,...n,items:void 0,props:void 0};return b(r,t),r}mergeEvaluated(e,t){let{it:n,gen:r}=this;n.opts.unevaluated&&(n.props!==!0&&e.props!==void 0&&(n.props=d.mergeEvaluated.props(r,e.props,n.props,t)),n.items!==!0&&e.items!==void 0&&(n.items=d.mergeEvaluated.items(r,e.items,n.items,t)))}mergeValidEvaluated(e,t){let{it:n,gen:r}=this;if(n.opts.unevaluated&&(n.props!==!0||n.items!==!0))return r.if(t,()=>this.mergeEvaluated(e,c.Name)),!0}};e.KeywordCxt=me;function he(e,t,n,r){let i=new me(e,n,t);`code`in n?n.code(i,r):i.$data&&n.validate?(0,o.funcKeywordCode)(i,n):`macro`in n?(0,o.macroKeywordCode)(i,n):(n.compile||n.validate)&&(0,o.funcKeywordCode)(i,n)}var B=/^\/(?:[^~]|~0|~1)*$/,ge=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function _e(e,{dataLevel:t,dataNames:n,dataPathArr:r}){let i,a;if(e===``)return l.default.rootData;if(e[0]===`/`){if(!B.test(e))throw Error(`Invalid JSON-pointer: ${e}`);i=e,a=l.default.rootData}else{let o=ge.exec(e);if(!o)throw Error(`Invalid JSON-pointer: ${e}`);let s=+o[1];if(i=o[2],i===`#`){if(s>=t)throw Error(u(`property/index`,s));return r[t-s]}if(s>t)throw Error(u(`data`,s));if(a=n[t-s],!i)return a}let o=a,s=i.split(`/`);for(let e of s)e&&(a=(0,c._)`${a}${(0,c.getProperty)((0,d.unescapeJsonPointer)(e))}`,o=(0,c._)`${o} && ${a}`);return o;function u(e,n){return`Cannot access ${e} ${n} levels up, current level is ${t}`}}e.getData=_e})),oe=c((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default=class extends Error{constructor(e){super(`validation failed`),this.errors=e,this.ajv=this.validation=!0}}})),se=c((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=ae();e.default=class extends Error{constructor(e,n,r,i){super(i||`can't resolve reference ${r} from id ${n}`),this.missingRef=(0,t.resolveUrl)(e,n,r),this.missingSchema=(0,t.normalizeId)((0,t.getFullPath)(e,this.missingRef))}}})),ce=c((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.resolveSchema=e.getCompilingSchema=e.resolveRef=e.compileSchema=e.SchemaEnv=void 0;var t=O(),n=oe(),r=A(),i=ae(),a=k(),o=L(),s=class{constructor(e){this.refs={},this.dynamicAnchors={};let t;typeof e.schema==`object`&&(t=e.schema),this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=e.baseId??(0,i.normalizeId)(t?.[e.schemaId||`$id`]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=t?.$async,this.refs={}}};e.SchemaEnv=s;function c(e){let a=d.call(this,e);if(a)return a;let s=(0,i.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:c,lines:l}=this.opts.code,{ownProperties:u}=this.opts,f=new t.CodeGen(this.scope,{es5:c,lines:l,ownProperties:u}),p;e.$async&&(p=f.scopeValue(`Error`,{ref:n.default,code:(0,t._)`require("ajv/dist/runtime/validation_error").default`}));let m=f.scopeName(`validate`);e.validateName=m;let h={gen:f,allErrors:this.opts.allErrors,data:r.default.data,parentData:r.default.parentData,parentDataProperty:r.default.parentDataProperty,dataNames:[r.default.data],dataPathArr:[t.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:f.scopeValue(`schema`,this.opts.code.source===!0?{ref:e.schema,code:(0,t.stringify)(e.schema)}:{ref:e.schema}),validateName:m,ValidationError:p,schema:e.schema,schemaEnv:e,rootId:s,baseId:e.baseId||s,schemaPath:t.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?``:`#`),errorPath:(0,t._)`""`,opts:this.opts,self:this},g;try{this._compilations.add(e),(0,o.validateFunctionCode)(h),f.optimize(this.opts.code.optimize);let n=f.toString();g=`${f.scopeRefs(r.default.scope)}return ${n}`,this.opts.code.process&&(g=this.opts.code.process(g,e));let i=Function(`${r.default.self}`,`${r.default.scope}`,g)(this,this.scope.get());if(this.scope.value(m,{ref:i}),i.errors=null,i.schema=e.schema,i.schemaEnv=e,e.$async&&(i.$async=!0),this.opts.code.source===!0&&(i.source={validateName:m,validateCode:n,scopeValues:f._values}),this.opts.unevaluated){let{props:e,items:n}=h;i.evaluated={props:e instanceof t.Name?void 0:e,items:n instanceof t.Name?void 0:n,dynamicProps:e instanceof t.Name,dynamicItems:n instanceof t.Name},i.source&&(i.source.evaluated=(0,t.stringify)(i.evaluated))}return e.validate=i,e}catch(t){throw delete e.validate,delete e.validateName,g&&this.logger.error(`Error compiling schema, function code:`,g),t}finally{this._compilations.delete(e)}}e.compileSchema=c;function l(e,t,n){n=(0,i.resolveUrl)(this.opts.uriResolver,t,n);let r=e.refs[n];if(r)return r;let a=p.call(this,e,n);if(a===void 0){let r=e.localRefs?.[n],{schemaId:i}=this.opts;r&&(a=new s({schema:r,schemaId:i,root:e,baseId:t}))}if(a!==void 0)return e.refs[n]=u.call(this,a)}e.resolveRef=l;function u(e){return(0,i.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:c.call(this,e)}function d(e){for(let t of this._compilations)if(f(t,e))return t}e.getCompilingSchema=d;function f(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function p(e,t){let n;for(;typeof(n=this.refs[t])==`string`;)t=n;return n||this.schemas[t]||m.call(this,e,t)}function m(e,t){let n=this.opts.uriResolver.parse(t),r=(0,i._getFullPath)(this.opts.uriResolver,n),a=(0,i.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&r===a)return g.call(this,n,e);let o=(0,i.normalizeId)(r),l=this.refs[o]||this.schemas[o];if(typeof l==`string`){let t=m.call(this,e,l);return typeof t?.schema==`object`?g.call(this,n,t):void 0}if(typeof l?.schema==`object`){if(l.validate||c.call(this,l),o===(0,i.normalizeId)(t)){let{schema:t}=l,{schemaId:n}=this.opts,r=t[n];return r&&(a=(0,i.resolveUrl)(this.opts.uriResolver,a,r)),new s({schema:t,schemaId:n,root:e,baseId:a})}return g.call(this,n,l)}}e.resolveSchema=m;var h=new Set([`properties`,`patternProperties`,`enum`,`dependencies`,`definitions`]);function g(e,{baseId:t,schema:n,root:r}){if(e.fragment?.[0]!==`/`)return;for(let r of e.fragment.slice(1).split(`/`)){if(typeof n==`boolean`)return;let e=n[(0,a.unescapeFragment)(r)];if(e===void 0)return;n=e;let o=typeof n==`object`&&n[this.opts.schemaId];!h.has(r)&&o&&(t=(0,i.resolveUrl)(this.opts.uriResolver,t,o))}let o;if(typeof n!=`boolean`&&n.$ref&&!(0,a.schemaHasRulesButRef)(n,this.RULES)){let e=(0,i.resolveUrl)(this.opts.uriResolver,t,n.$ref);o=m.call(this,r,e)}let{schemaId:c}=this.opts;if(o||=new s({schema:n,schemaId:c,root:r,baseId:t}),o.schema!==o.root.schema)return o}})),le=l({$id:()=>ue,additionalProperties:()=>!1,default:()=>pe,description:()=>de,properties:()=>z,required:()=>R,type:()=>fe}),ue,de,fe,R,z,pe,me=s((()=>{ue=`https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#`,de=`Meta-schema for $data reference (JSON AnySchema extension proposal)`,fe=`object`,R=[`$data`],z={$data:{type:`string`,anyOf:[{format:`relative-json-pointer`},{format:`json-pointer`}]}},pe={$id:ue,description:de,type:fe,required:R,properties:z,additionalProperties:!1}})),he=c(((e,t)=>{var n=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),r=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),i=RegExp.prototype.test.bind(/^[\da-f]{2}$/iu),a=RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu),o=RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu);function s(e){let t=``,n=0,r=0;for(r=0;r<e.length;r++)if(n=e[r].charCodeAt(0),n!==48){if(!(n>=48&&n<=57||n>=65&&n<=70||n>=97&&n<=102))return``;t+=e[r];break}for(r+=1;r<e.length;r++){if(n=e[r].charCodeAt(0),!(n>=48&&n<=57||n>=65&&n<=70||n>=97&&n<=102))return``;t+=e[r]}return t}var c=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function l(e){return e.length=0,!0}function u(e,t,n){if(e.length){let r=s(e);if(r!==``)t.push(r);else return n.error=!0,!1;e.length=0}return!0}function d(e){let t=0,n={error:!1,address:``,zone:``},r=[],i=[],a=!1,o=!1,c=u;for(let s=0;s<e.length;s++){let u=e[s];if(!(u===`[`||u===`]`))if(u===`:`){if(a===!0&&(o=!0),!c(i,r,n))break;if(++t>7){n.error=!0;break}s>0&&e[s-1]===`:`&&(a=!0),r.push(`:`);continue}else if(u===`%`){if(!c(i,r,n))break;c=l}else{i.push(u);continue}}return i.length&&(c===l?n.zone=i.join(``):o?r.push(i.join(``)):r.push(s(i))),n.address=r.join(``),n}function f(e){if(p(e,`:`)<2)return{host:e,isIPV6:!1};let t=d(e);if(t.error)return{host:e,isIPV6:!1};{let e=t.address,n=t.address;return t.zone&&(e+=`%`+t.zone,n+=`%25`+t.zone),{host:e,isIPV6:!0,escapedHost:n}}}function p(e,t){let n=0;for(let r=0;r<e.length;r++)e[r]===t&&n++;return n}function m(e){let t=e,n=[],r=-1,i=0;for(;i=t.length;){if(i===1){if(t===`.`)break;if(t===`/`){n.push(`/`);break}else{n.push(t);break}}else if(i===2){if(t[0]===`.`){if(t[1]===`.`)break;if(t[1]===`/`){t=t.slice(2);continue}}else if(t[0]===`/`&&(t[1]===`.`||t[1]===`/`)){n.push(`/`);break}}else if(i===3&&t===`/..`){n.length!==0&&n.pop(),n.push(`/`);break}if(t[0]===`.`){if(t[1]===`.`){if(t[2]===`/`){t=t.slice(3);continue}}else if(t[1]===`/`){t=t.slice(2);continue}}else if(t[0]===`/`&&t[1]===`.`){if(t[2]===`/`){t=t.slice(2);continue}else if(t[2]===`.`&&t[3]===`/`){t=t.slice(3),n.length!==0&&n.pop();continue}}if((r=t.indexOf(`/`,1))===-1){n.push(t);break}else n.push(t.slice(0,r)),t=t.slice(r)}return n.join(``)}var h={"@":`%40`,"/":`%2F`,"?":`%3F`,"#":`%23`,":":`%3A`},g=/[@/?#:]/g,_=/[@/?#]/g;function v(e,t){let n=t?_:g;return n.lastIndex=0,e.replace(n,e=>h[e])}function y(e,t=!1){if(e.indexOf(`%`)===-1)return e;let n=``;for(let r=0;r<e.length;r++){if(e[r]===`%`&&r+2<e.length){let o=e.slice(r+1,r+3);if(i(o)){let e=o.toUpperCase(),i=String.fromCharCode(parseInt(e,16));t&&a(i)?n+=i:n+=`%`+e,r+=2;continue}}n+=e[r]}return n}function b(e){let t=``;for(let n=0;n<e.length;n++){if(e[n]===`%`&&n+2<e.length){let r=e.slice(n+1,n+3);if(i(r)){let e=r.toUpperCase(),i=String.fromCharCode(parseInt(e,16));i!==`.`&&a(i)?t+=i:t+=`%`+e,n+=2;continue}}o(e[n])?t+=e[n]:t+=escape(e[n])}return t}function x(e){let t=``;for(let n=0;n<e.length;n++){if(e[n]===`%`&&n+2<e.length){let r=e.slice(n+1,n+3);if(i(r)){t+=`%`+r.toUpperCase(),n+=2;continue}}t+=escape(e[n])}return t}function S(e){let t=[];if(e.userinfo!==void 0&&(t.push(e.userinfo),t.push(`@`)),e.host!==void 0){let n=unescape(e.host);if(!r(n)){let e=f(n);n=e.isIPV6===!0?`[${e.escapedHost}]`:v(n,!1)}t.push(n)}return(typeof e.port==`number`||typeof e.port==`string`)&&(t.push(`:`),t.push(String(e.port))),t.length?t.join(``):void 0}t.exports={nonSimpleDomain:c,recomposeAuthority:S,reescapeHostDelimiters:v,normalizePercentEncoding:y,normalizePathEncoding:b,escapePreservingEscapes:x,removeDotSegments:m,isIPv4:r,isUUID:n,normalizeIPv6:f,stringArrayToHexStripped:s}})),B=c(((e,t)=>{var{isUUID:n}=he(),r=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,i=[`http`,`https`,`ws`,`wss`,`urn`,`urn:uuid`];function a(e){return i.indexOf(e)!==-1}function o(e){return e.secure===!0?!0:e.secure===!1?!1:e.scheme?e.scheme.length===3&&(e.scheme[0]===`w`||e.scheme[0]===`W`)&&(e.scheme[1]===`s`||e.scheme[1]===`S`)&&(e.scheme[2]===`s`||e.scheme[2]===`S`):!1}function s(e){return e.host||(e.error=e.error||`HTTP URIs must have a host.`),e}function c(e){let t=String(e.scheme).toLowerCase()===`https`;return(e.port===(t?443:80)||e.port===``)&&(e.port=void 0),e.path||=`/`,e}function l(e){return e.secure=o(e),e.resourceName=(e.path||`/`)+(e.query?`?`+e.query:``),e.path=void 0,e.query=void 0,e}function u(e){if((e.port===(o(e)?443:80)||e.port===``)&&(e.port=void 0),typeof e.secure==`boolean`&&(e.scheme=e.secure?`wss`:`ws`,e.secure=void 0),e.resourceName){let[t,n]=e.resourceName.split(`?`);e.path=t&&t!==`/`?t:void 0,e.query=n,e.resourceName=void 0}return e.fragment=void 0,e}function d(e,t){if(!e.path)return e.error=`URN can not be parsed`,e;let n=e.path.match(r);if(n){let r=t.scheme||e.scheme||`urn`;e.nid=n[1].toLowerCase(),e.nss=n[2];let i=y(`${r}:${t.nid||e.nid}`);e.path=void 0,i&&(e=i.parse(e,t))}else e.error=e.error||`URN can not be parsed.`;return e}function f(e,t){if(e.nid===void 0)throw Error(`URN without nid cannot be serialized`);let n=t.scheme||e.scheme||`urn`,r=e.nid.toLowerCase(),i=y(`${n}:${t.nid||r}`);i&&(e=i.serialize(e,t));let a=e,o=e.nss;return a.path=`${r||t.nid}:${o}`,t.skipEscape=!0,a}function p(e,t){let r=e;return r.uuid=r.nss,r.nss=void 0,!t.tolerant&&(!r.uuid||!n(r.uuid))&&(r.error=r.error||`UUID is not valid.`),r}function m(e){let t=e;return t.nss=(e.uuid||``).toLowerCase(),t}var h={scheme:`http`,domainHost:!0,parse:s,serialize:c},g={scheme:`https`,domainHost:h.domainHost,parse:s,serialize:c},_={scheme:`ws`,domainHost:!0,parse:l,serialize:u},v={http:h,https:g,ws:_,wss:{scheme:`wss`,domainHost:_.domainHost,parse:_.parse,serialize:_.serialize},urn:{scheme:`urn`,parse:d,serialize:f,skipNormalize:!0},"urn:uuid":{scheme:`urn:uuid`,parse:p,serialize:m,skipNormalize:!0}};Object.setPrototypeOf(v,null);function y(e){return e&&(v[e]||v[e.toLowerCase()])||void 0}t.exports={wsIsSecure:o,SCHEMES:v,isValidSchemeName:a,getSchemeHandler:y}})),ge=c(((e,t)=>{var{normalizeIPv6:n,removeDotSegments:r,recomposeAuthority:i,normalizePercentEncoding:a,normalizePathEncoding:o,escapePreservingEscapes:s,reescapeHostDelimiters:c,isIPv4:l,nonSimpleDomain:u}=he(),{SCHEMES:d,getSchemeHandler:f}=B();function p(e,t){return typeof e==`string`?e=S(e,t):typeof e==`object`&&(e=x(_(e,t),t)),e}function m(e,t,n){let r=n?Object.assign({scheme:`null`},n):{scheme:`null`},i=h(x(e,r),x(t,r),r,!0);return r.skipEscape=!0,_(i,r)}function h(e,t,n,i){let a={};return i||(e=x(_(e,n),n),t=x(_(t,n),n)),n||={},!n.tolerant&&t.scheme?(a.scheme=t.scheme,a.userinfo=t.userinfo,a.host=t.host,a.port=t.port,a.path=r(t.path||``),a.query=t.query):(t.userinfo!==void 0||t.host!==void 0||t.port!==void 0?(a.userinfo=t.userinfo,a.host=t.host,a.port=t.port,a.path=r(t.path||``),a.query=t.query):(t.path?(t.path[0]===`/`?a.path=r(t.path):((e.userinfo!==void 0||e.host!==void 0||e.port!==void 0)&&!e.path?a.path=`/`+t.path:e.path?a.path=e.path.slice(0,e.path.lastIndexOf(`/`)+1)+t.path:a.path=t.path,a.path=r(a.path)),a.query=t.query):(a.path=e.path,t.query===void 0?a.query=e.query:a.query=t.query),a.userinfo=e.userinfo,a.host=e.host,a.port=e.port),a.scheme=e.scheme),a.fragment=t.fragment,a}function g(e,t,n){let r=w(e,n),i=w(t,n);return r!==void 0&&i!==void 0&&r.toLowerCase()===i.toLowerCase()}function _(e,t){let n={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:``},o=Object.assign({},t),c=[],l=f(o.scheme||n.scheme);l&&l.serialize&&l.serialize(n,o),n.path!==void 0&&(o.skipEscape?n.path=a(n.path):(n.path=s(n.path),n.scheme!==void 0&&(n.path=n.path.split(`%3A`).join(`:`)))),o.reference!==`suffix`&&n.scheme&&c.push(n.scheme,`:`);let u=i(n);if(u!==void 0&&(o.reference!==`suffix`&&c.push(`//`),c.push(u),n.path&&n.path[0]!==`/`&&c.push(`/`)),n.path!==void 0){let e=n.path;!o.absolutePath&&(!l||!l.absolutePath)&&(e=r(e)),u===void 0&&e[0]===`/`&&e[1]===`/`&&(e=`/%2F`+e.slice(2)),c.push(e)}return n.query!==void 0&&c.push(`?`,n.query),n.fragment!==void 0&&c.push(`#`,n.fragment),c.join(``)}var v=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function y(e,t){if(t[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 b(e,t){let r=Object.assign({},t),i={scheme:void 0,userinfo:void 0,host:``,port:void 0,path:``,query:void 0,fragment:void 0},a=!1,s=!1;r.reference===`suffix`&&(e=r.scheme?r.scheme+`:`+e:`//`+e);let d=e.match(v);if(d){i.scheme=d[1],i.userinfo=d[3],i.host=d[4],i.port=parseInt(d[5],10),i.path=d[6]||``,i.query=d[7],i.fragment=d[8],isNaN(i.port)&&(i.port=d[5]);let t=y(i,d);if(t!==void 0&&(i.error=i.error||t,a=!0),i.host)if(l(i.host)===!1){let e=n(i.host);i.host=e.host.toLowerCase(),s=e.isIPV6}else s=!0;i.scheme===void 0&&i.userinfo===void 0&&i.host===void 0&&i.port===void 0&&i.query===void 0&&!i.path?i.reference=`same-document`:i.scheme===void 0?i.reference=`relative`:i.fragment===void 0?i.reference=`absolute`:i.reference=`uri`,r.reference&&r.reference!==`suffix`&&r.reference!==i.reference&&(i.error=i.error||`URI is not a `+r.reference+` reference.`);let p=f(r.scheme||i.scheme);if(!r.unicodeSupport&&(!p||!p.unicodeSupport)&&i.host&&(r.domainHost||p&&p.domainHost)&&s===!1&&u(i.host))try{i.host=URL.domainToASCII(i.host.toLowerCase())}catch(e){i.error=i.error||`Host's domain name can not be converted to ASCII: `+e}if((!p||p&&!p.skipNormalize)&&(e.indexOf(`%`)!==-1&&(i.scheme!==void 0&&(i.scheme=unescape(i.scheme)),i.host!==void 0&&(i.host=c(unescape(i.host),s))),i.path&&=o(i.path),i.fragment))try{i.fragment=encodeURI(decodeURIComponent(i.fragment))}catch{i.error=i.error||`URI malformed`}p&&p.parse&&p.parse(i,r)}else i.error=i.error||`URI can not be parsed.`;return{parsed:i,malformedAuthorityOrPort:a}}function x(e,t){return b(e,t).parsed}function S(e,t){return C(e,t).normalized}function C(e,t){let{parsed:n,malformedAuthorityOrPort:r}=b(e,t);return{normalized:r?e:_(n,t),malformedAuthorityOrPort:r}}function w(e,t){if(typeof e==`string`){let{normalized:n,malformedAuthorityOrPort:r}=C(e,t);return r?void 0:n}if(typeof e==`object`)return _(e,t)}var T={SCHEMES:d,normalize:p,resolve:m,resolveComponent:h,equal:g,serialize:_,parse:x};t.exports=T,t.exports.default=T,t.exports.fastUri=T})),_e=c((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=ge();t.code=`require("ajv/dist/runtime/uri").default`,e.default=t})),ve=c((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0;var t=L();Object.defineProperty(e,`KeywordCxt`,{enumerable:!0,get:function(){return t.KeywordCxt}});var n=O();Object.defineProperty(e,`_`,{enumerable:!0,get:function(){return n._}}),Object.defineProperty(e,`str`,{enumerable:!0,get:function(){return n.str}}),Object.defineProperty(e,`stringify`,{enumerable:!0,get:function(){return n.stringify}}),Object.defineProperty(e,`nil`,{enumerable:!0,get:function(){return n.nil}}),Object.defineProperty(e,`Name`,{enumerable:!0,get:function(){return n.Name}}),Object.defineProperty(e,`CodeGen`,{enumerable:!0,get:function(){return n.CodeGen}});var r=oe(),i=se(),a=N(),o=ce(),s=O(),c=ae(),l=te(),u=k(),d=(me(),f(le).default),p=_e(),m=(e,t)=>new RegExp(e,t);m.code=`new RegExp`;var h=[`removeAdditional`,`useDefaults`,`coerceTypes`],g=new Set([`validate`,`serialize`,`parse`,`wrapper`,`root`,`schema`,`keyword`,`pattern`,`formats`,`validate$data`,`func`,`obj`,`Error`]),_={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.`},v={ignoreKeywordsWithRef:``,jsPropertySyntax:``,unicode:`"minLength"/"maxLength" account for unicode characters by default.`},y=200;function b(e){let t=e.strict,n=e.code?.optimize,r=n===!0||n===void 0?1:n||0,i=e.code?.regExp??m,a=e.uriResolver??p.default;return{strictSchema:e.strictSchema??t??!0,strictNumbers:e.strictNumbers??t??!0,strictTypes:e.strictTypes??t??`log`,strictTuples:e.strictTuples??t??`log`,strictRequired:e.strictRequired??t??!1,code:e.code?{...e.code,optimize:r,regExp:i}:{optimize:r,regExp:i},loopRequired:e.loopRequired??y,loopEnum:e.loopEnum??y,meta:e.meta??!0,messages:e.messages??!0,inlineRefs:e.inlineRefs??!0,schemaId:e.schemaId??`$id`,addUsedSchema:e.addUsedSchema??!0,validateSchema:e.validateSchema??!0,validateFormats:e.validateFormats??!0,unicodeRegExp:e.unicodeRegExp??!0,int32range:e.int32range??!0,uriResolver:a}}var x=class{constructor(e={}){this.schemas={},this.refs={},this.formats=Object.create(null),this._compilations=new Set,this._loading={},this._cache=new Map,e=this.opts={...e,...b(e)};let{es5:t,lines:n}=this.opts.code;this.scope=new s.ValueScope({scope:{},prefixes:g,es5:t,lines:n}),this.logger=j(e.logger);let r=e.validateFormats;e.validateFormats=!1,this.RULES=(0,a.getRules)(),S.call(this,_,e,`NOT SUPPORTED`),S.call(this,v,e,`DEPRECATED`,`warn`),this._metaOpts=D.call(this),e.formats&&T.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&E.call(this,e.keywords),typeof e.meta==`object`&&this.addMetaSchema(e.meta),w.call(this),e.validateFormats=r}_addVocabularies(){this.addKeyword(`$async`)}_addDefaultMetaSchema(){let{$data:e,meta:t,schemaId:n}=this.opts,r=d;n===`id`&&(r={...d},r.id=r.$id,delete r.$id),t&&e&&this.addMetaSchema(r,r[n],!1)}defaultMeta(){let{meta:e,schemaId:t}=this.opts;return this.opts.defaultMeta=typeof e==`object`?e[t]||e:void 0}validate(e,t){let n;if(typeof e==`string`){if(n=this.getSchema(e),!n)throw Error(`no schema with key or ref "${e}"`)}else n=this.compile(e);let r=n(t);return`$async`in n||(this.errors=n.errors),r}compile(e,t){let n=this._addSchema(e,t);return n.validate||this._compileSchemaEnv(n)}compileAsync(e,t){if(typeof this.opts.loadSchema!=`function`)throw Error(`options.loadSchema should be a function`);let{loadSchema:n}=this.opts;return r.call(this,e,t);async function r(e,t){await a.call(this,e.$schema);let n=this._addSchema(e,t);return n.validate||o.call(this,n)}async function a(e){e&&!this.getSchema(e)&&await r.call(this,{$ref:e},!0)}async function o(e){try{return this._compileSchemaEnv(e)}catch(t){if(!(t instanceof i.default))throw t;return s.call(this,t),await c.call(this,t.missingSchema),o.call(this,e)}}function s({missingSchema:e,missingRef:t}){if(this.refs[e])throw Error(`AnySchema ${e} is loaded but ${t} cannot be resolved`)}async function c(e){let n=await l.call(this,e);this.refs[e]||await a.call(this,n.$schema),this.refs[e]||this.addSchema(n,e,t)}async function l(e){let t=this._loading[e];if(t)return t;try{return await(this._loading[e]=n(e))}finally{delete this._loading[e]}}}addSchema(e,t,n,r=this.opts.validateSchema){if(Array.isArray(e)){for(let t of e)this.addSchema(t,void 0,n,r);return this}let i;if(typeof e==`object`){let{schemaId:t}=this.opts;if(i=e[t],i!==void 0&&typeof i!=`string`)throw Error(`schema ${t} must be string`)}return t=(0,c.normalizeId)(t||i),this._checkUnique(t),this.schemas[t]=this._addSchema(e,n,t,r,!0),this}addMetaSchema(e,t,n=this.opts.validateSchema){return this.addSchema(e,t,!0,n),this}validateSchema(e,t){if(typeof e==`boolean`)return!0;let n;if(n=e.$schema,n!==void 0&&typeof n!=`string`)throw Error(`$schema must be a string`);if(n=n||this.opts.defaultMeta||this.defaultMeta(),!n)return this.logger.warn(`meta-schema not available`),this.errors=null,!0;let r=this.validate(n,e);if(!r&&t){let e=`schema is invalid: `+this.errorsText();if(this.opts.validateSchema===`log`)this.logger.error(e);else throw Error(e)}return r}getSchema(e){let t;for(;typeof(t=C.call(this,e))==`string`;)e=t;if(t===void 0){let{schemaId:n}=this.opts,r=new o.SchemaEnv({schema:{},schemaId:n});if(t=o.resolveSchema.call(this,r,e),!t)return;this.refs[e]=t}return t.validate||this._compileSchemaEnv(t)}removeSchema(e){if(e instanceof RegExp)return this._removeAllSchemas(this.schemas,e),this._removeAllSchemas(this.refs,e),this;switch(typeof e){case`undefined`:return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case`string`:{let t=C.call(this,e);return typeof t==`object`&&this._cache.delete(t.schema),delete this.schemas[e],delete this.refs[e],this}case`object`:{let t=e;this._cache.delete(t);let n=e[this.opts.schemaId];return n&&(n=(0,c.normalizeId)(n),delete this.schemas[n],delete this.refs[n]),this}default:throw Error(`ajv.removeSchema: invalid parameter`)}}addVocabulary(e){for(let t of e)this.addKeyword(t);return this}addKeyword(e,t){let n;if(typeof e==`string`)n=e,typeof t==`object`&&(this.logger.warn(`these parameters are deprecated, see docs for addKeyword`),t.keyword=n);else if(typeof e==`object`&&t===void 0){if(t=e,n=t.keyword,Array.isArray(n)&&!n.length)throw Error(`addKeywords: keyword must be string or non-empty array`)}else throw Error(`invalid addKeywords parameters`);if(ee.call(this,n,t),!t)return(0,u.eachItem)(n,e=>P.call(this,e)),this;ne.call(this,t);let r={...t,type:(0,l.getJSONTypes)(t.type),schemaType:(0,l.getJSONTypes)(t.schemaType)};return(0,u.eachItem)(n,r.type.length===0?e=>P.call(this,e,r):e=>r.type.forEach(t=>P.call(this,e,r,t))),this}getKeyword(e){let t=this.RULES.all[e];return typeof t==`object`?t.definition:!!t}removeKeyword(e){let{RULES:t}=this;delete t.keywords[e],delete t.all[e];for(let n of t.rules){let t=n.rules.findIndex(t=>t.keyword===e);t>=0&&n.rules.splice(t,1)}return this}addFormat(e,t){return typeof t==`string`&&(t=new RegExp(t)),this.formats[e]=t,this}errorsText(e=this.errors,{separator:t=`, `,dataVar:n=`data`}={}){return!e||e.length===0?`No errors`:e.map(e=>`${n}${e.instancePath} ${e.message}`).reduce((e,n)=>e+t+n)}$dataMetaSchema(e,t){let n=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(let r of t){let t=r.split(`/`).slice(1),i=e;for(let e of t)i=i[e];for(let e in n){let t=n[e];if(typeof t!=`object`)continue;let{$data:r}=t.definition,a=i[e];r&&a&&(i[e]=ie(a))}}return e}_removeAllSchemas(e,t){for(let n in e){let r=e[n];(!t||t.test(n))&&(typeof r==`string`?delete e[n]:r&&!r.meta&&(this._cache.delete(r.schema),delete e[n]))}}_addSchema(e,t,n,r=this.opts.validateSchema,i=this.opts.addUsedSchema){let a,{schemaId:s}=this.opts;if(typeof e==`object`)a=e[s];else if(this.opts.jtd)throw Error(`schema must be object`);else if(typeof e!=`boolean`)throw Error(`schema must be object or boolean`);let l=this._cache.get(e);if(l!==void 0)return l;n=(0,c.normalizeId)(a||n);let u=c.getSchemaRefs.call(this,e,n);return l=new o.SchemaEnv({schema:e,schemaId:s,meta:t,baseId:n,localRefs:u}),this._cache.set(l.schema,l),i&&!n.startsWith(`#`)&&(n&&this._checkUnique(n),this.refs[n]=l),r&&this.validateSchema(e,!0),l}_checkUnique(e){if(this.schemas[e]||this.refs[e])throw Error(`schema with key or id "${e}" already exists`)}_compileSchemaEnv(e){if(e.meta?this._compileMetaSchema(e):o.compileSchema.call(this,e),!e.validate)throw Error(`ajv implementation error`);return e.validate}_compileMetaSchema(e){let t=this.opts;this.opts=this._metaOpts;try{o.compileSchema.call(this,e)}finally{this.opts=t}}};x.ValidationError=r.default,x.MissingRefError=i.default,e.default=x;function S(e,t,n,r=`error`){for(let i in e){let a=i;a in t&&this.logger[r](`${n}: option ${i}. ${e[a]}`)}}function C(e){return e=(0,c.normalizeId)(e),this.schemas[e]||this.refs[e]}function w(){let e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(let t in e)this.addSchema(e[t],t)}function T(){for(let e in this.opts.formats){let t=this.opts.formats[e];t&&this.addFormat(e,t)}}function E(e){if(Array.isArray(e)){this.addVocabulary(e);return}this.logger.warn(`keywords option as map is deprecated, pass array`);for(let t in e){let n=e[t];n.keyword||=t,this.addKeyword(n)}}function D(){let e={...this.opts};for(let t of h)delete e[t];return e}var A={log(){},warn(){},error(){}};function j(e){if(e===!1)return A;if(e===void 0)return console;if(e.log&&e.warn&&e.error)return e;throw Error(`logger must implement log, warn and error methods`)}var M=/^[a-z_$][a-z0-9_$:-]*$/i;function ee(e,t){let{RULES:n}=this;if((0,u.eachItem)(e,e=>{if(n.keywords[e])throw Error(`Keyword ${e} is already defined`);if(!M.test(e))throw Error(`Keyword ${e} has invalid name`)}),t&&t.$data&&!(`code`in t||`validate`in t))throw Error(`$data keyword must have "code" or "validate" function`)}function P(e,t,n){var r;let i=t?.post;if(n&&i)throw Error(`keyword with "post" flag cannot have "type"`);let{RULES:a}=this,o=i?a.post:a.rules.find(({type:e})=>e===n);if(o||(o={type:n,rules:[]},a.rules.push(o)),a.keywords[e]=!0,!t)return;let s={keyword:e,definition:{...t,type:(0,l.getJSONTypes)(t.type),schemaType:(0,l.getJSONTypes)(t.schemaType)}};t.before?F.call(this,o,s,t.before):o.rules.push(s),a.all[e]=s,(r=t.implements)==null||r.forEach(e=>this.addKeyword(e))}function F(e,t,n){let r=e.rules.findIndex(e=>e.keyword===n);r>=0?e.rules.splice(r,0,t):(e.rules.push(t),this.logger.warn(`rule ${n} is not defined`))}function ne(e){let{metaSchema:t}=e;t!==void 0&&(e.$data&&this.opts.$data&&(t=ie(t)),e.validateSchema=this.compile(t,!0))}var re={$ref:`https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#`};function ie(e){return{anyOf:[e,re]}}})),V=c((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={keyword:`id`,code(){throw Error(`NOT SUPPORTED: keyword "id", use "$id" for schema ID`)}}})),ye=c((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.callRef=e.getValidate=void 0;var t=se(),n=F(),r=O(),i=A(),a=ce(),o=k(),s={keyword:`$ref`,schemaType:`string`,code(e){let{gen:n,schema:i,it:o}=e,{baseId:s,schemaEnv:u,validateName:d,opts:f,self:p}=o,{root:m}=u;if((i===`#`||i===`#/`)&&s===m.baseId)return g();let h=a.resolveRef.call(p,m,s,i);if(h===void 0)throw new t.default(o.opts.uriResolver,s,i);if(h instanceof a.SchemaEnv)return _(h);return v(h);function g(){if(u===m)return l(e,d,u,u.$async);let t=n.scopeValue(`root`,{ref:m});return l(e,(0,r._)`${t}.validate`,m,m.$async)}function _(t){l(e,c(e,t),t,t.$async)}function v(t){let a=n.scopeValue(`schema`,f.code.source===!0?{ref:t,code:(0,r.stringify)(t)}:{ref:t}),o=n.name(`valid`),s=e.subschema({schema:t,dataTypes:[],schemaPath:r.nil,topSchemaRef:a,errSchemaPath:i},o);e.mergeEvaluated(s),e.ok(o)}}};function c(e,t){let{gen:n}=e;return t.validate?n.scopeValue(`validate`,{ref:t.validate}):(0,r._)`${n.scopeValue(`wrapper`,{ref:t})}.validate`}e.getValidate=c;function l(e,t,a,s){let{gen:c,it:l}=e,{allErrors:u,schemaEnv:d,opts:f}=l,p=f.passContext?i.default.this:r.nil;s?m():h();function m(){if(!d.$async)throw Error(`async schema referenced by sync schema`);let i=c.let(`valid`);c.try(()=>{c.code((0,r._)`await ${(0,n.callValidateCode)(e,t,p)}`),_(t),u||c.assign(i,!0)},e=>{c.if((0,r._)`!(${e} instanceof ${l.ValidationError})`,()=>c.throw(e)),g(e),u||c.assign(i,!1)}),e.ok(i)}function h(){e.result((0,n.callValidateCode)(e,t,p),()=>_(t),()=>g(t))}function g(e){let t=(0,r._)`${e}.errors`;c.assign(i.default.vErrors,(0,r._)`${i.default.vErrors} === null ? ${t} : ${i.default.vErrors}.concat(${t})`),c.assign(i.default.errors,(0,r._)`${i.default.vErrors}.length`)}function _(e){if(!l.opts.unevaluated)return;let t=a?.validate?.evaluated;if(l.props!==!0)if(t&&!t.dynamicProps)t.props!==void 0&&(l.props=o.mergeEvaluated.props(c,t.props,l.props));else{let t=c.var(`props`,(0,r._)`${e}.evaluated.props`);l.props=o.mergeEvaluated.props(c,t,l.props,r.Name)}if(l.items!==!0)if(t&&!t.dynamicItems)t.items!==void 0&&(l.items=o.mergeEvaluated.items(c,t.items,l.items));else{let t=c.var(`items`,(0,r._)`${e}.evaluated.items`);l.items=o.mergeEvaluated.items(c,t,l.items,r.Name)}}}e.callRef=l,e.default=s})),be=c((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=V(),n=ye();e.default=[`$schema`,`$id`,`$defs`,`$vocabulary`,{keyword:`$comment`},`definitions`,t.default,n.default]})),xe=c((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=O(),n=t.operators,r={maximum:{okStr:`<=`,ok:n.LTE,fail:n.GT},minimum:{okStr:`>=`,ok:n.GTE,fail:n.LT},exclusiveMaximum:{okStr:`<`,ok:n.LT,fail:n.GTE},exclusiveMinimum:{okStr:`>`,ok:n.GT,fail:n.LTE}};e.default={keyword:Object.keys(r),type:`number`,schemaType:`number`,$data:!0,error:{message:({keyword:e,schemaCode:n})=>(0,t.str)`must be ${r[e].okStr} ${n}`,params:({keyword:e,schemaCode:n})=>(0,t._)`{comparison: ${r[e].okStr}, limit: ${n}}`},code(e){let{keyword:n,data:i,schemaCode:a}=e;e.fail$data((0,t._)`${i} ${r[n].fail} ${a} || isNaN(${i})`)}}})),H=c((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=O();e.default={keyword:`multipleOf`,type:`number`,schemaType:`number`,$data:!0,error:{message:({schemaCode:e})=>(0,t.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,t._)`{multipleOf: ${e}}`},code(e){let{gen:n,data:r,schemaCode:i,it:a}=e,o=a.opts.multipleOfPrecision,s=n.let(`res`),c=o?(0,t._)`Math.abs(Math.round(${s}) - ${s}) > 1e-${o}`:(0,t._)`${s} !== parseInt(${s})`;e.fail$data((0,t._)`(${i} === 0 || (${s} = ${r}/${i}, ${c}))`)}}})),Se=c((e=>{Object.defineProperty(e,`__esModule`,{value:!0});function t(e){let t=e.length,n=0,r=0,i;for(;r<t;)n++,i=e.charCodeAt(r++),i>=55296&&i<=56319&&r<t&&(i=e.charCodeAt(r),(i&64512)==56320&&r++);return n}e.default=t,t.code=`require("ajv/dist/runtime/ucs2length").default`})),Ce=c((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=O(),n=k(),r=Se();e.default={keyword:[`maxLength`,`minLength`],type:`string`,schemaType:`number`,$data:!0,error:{message({keyword:e,schemaCode:n}){let r=e===`maxLength`?`more`:`fewer`;return(0,t.str)`must NOT have ${r} than ${n} characters`},params:({schemaCode:e})=>(0,t._)`{limit: ${e}}`},code(e){let{keyword:i,data:a,schemaCode:o,it:s}=e,c=i===`maxLength`?t.operators.GT:t.operators.LT,l=s.opts.unicode===!1?(0,t._)`${a}.length`:(0,t._)`${(0,n.useFunc)(e.gen,r.default)}(${a})`;e.fail$data((0,t._)`${l} ${c} ${o}`)}}})),we=c((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=F(),n=k(),r=O();e.default={keyword:`pattern`,type:`string`,schemaType:`string`,$data:!0,error:{message:({schemaCode:e})=>(0,r.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,r._)`{pattern: ${e}}`},code(e){let{gen:i,data:a,$data:o,schema:s,schemaCode:c,it:l}=e,u=l.opts.unicodeRegExp?`u`:``;if(o){let{regExp:t}=l.opts.code,o=t.code===`new RegExp`?(0,r._)`new RegExp`:(0,n.useFunc)(i,t),s=i.let(`valid`);i.try(()=>i.assign(s,(0,r._)`${o}(${c}, ${u}).test(${a})`),()=>i.assign(s,!1)),e.fail$data((0,r._)`!${s}`)}else{let n=(0,t.usePattern)(e,s);e.fail$data((0,r._)`!${n}.test(${a})`)}}}})),Te=c((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=O();e.default={keyword:[`maxProperties`,`minProperties`],type:`object`,schemaType:`number`,$data:!0,error:{message({keyword:e,schemaCode:n}){let r=e===`maxProperties`?`more`:`fewer`;return(0,t.str)`must NOT have ${r} than ${n} properties`},params:({schemaCode:e})=>(0,t._)`{limit: ${e}}`},code(e){let{keyword:n,data:r,schemaCode:i}=e,a=n===`maxProperties`?t.operators.GT:t.operators.LT;e.fail$data((0,t._)`Object.keys(${r}).length ${a} ${i}`)}}})),Ee=c((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=F(),n=O(),r=k();e.default={keyword:`required`,type:`object`,schemaType:`array`,$data:!0,error:{message:({params:{missingProperty:e}})=>(0,n.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,n._)`{missingProperty: ${e}}`},code(e){let{gen:i,schema:a,schemaCode:o,data:s,$data:c,it:l}=e,{opts:u}=l;if(!c&&a.length===0)return;let d=a.length>=u.loopRequired;if(l.allErrors?f():p(),u.strictRequired){let t=e.parentSchema.properties,{definedProperties:n}=e.it;for(let e of a)if(t?.[e]===void 0&&!n.has(e)){let t=`required property "${e}" is not defined at "${l.schemaEnv.baseId+l.errSchemaPath}" (strictRequired)`;(0,r.checkStrictMode)(l,t,l.opts.strictRequired)}}function f(){if(d||c)e.block$data(n.nil,m);else for(let n of a)(0,t.checkReportMissingProp)(e,n)}function p(){let n=i.let(`missing`);if(d||c){let t=i.let(`valid`,!0);e.block$data(t,()=>h(n,t)),e.ok(t)}else i.if((0,t.checkMissingProp)(e,a,n)),(0,t.reportMissingProp)(e,n),i.else()}function m(){i.forOf(`prop`,o,n=>{e.setParams({missingProperty:n}),i.if((0,t.noPropertyInData)(i,s,n,u.ownProperties),()=>e.error())})}function h(r,a){e.setParams({missingProperty:r}),i.forOf(r,o,()=>{i.assign(a,(0,t.propertyInData)(i,s,r,u.ownProperties)),i.if((0,n.not)(a),()=>{e.error(),i.break()})},n.nil)}}}})),De=c((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=O();e.default={keyword:[`maxItems`,`minItems`],type:`array`,schemaType:`number`,$data:!0,error:{message({keyword:e,schemaCode:n}){let r=e===`maxItems`?`more`:`fewer`;return(0,t.str)`must NOT have ${r} than ${n} items`},params:({schemaCode:e})=>(0,t._)`{limit: ${e}}`},code(e){let{keyword:n,data:r,schemaCode:i}=e,a=n===`maxItems`?t.operators.GT:t.operators.LT;e.fail$data((0,t._)`${r}.length ${a} ${i}`)}}})),Oe=c((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=ie();t.code=`require("ajv/dist/runtime/equal").default`,e.default=t})),ke=c((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=te(),n=O(),r=k(),i=Oe();e.default={keyword:`uniqueItems`,type:`array`,schemaType:`boolean`,$data:!0,error:{message:({params:{i:e,j:t}})=>(0,n.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,n._)`{i: ${e}, j: ${t}}`},code(e){let{gen:a,data:o,$data:s,schema:c,parentSchema:l,schemaCode:u,it:d}=e;if(!s&&!c)return;let f=a.let(`valid`),p=l.items?(0,t.getSchemaTypes)(l.items):[];e.block$data(f,m,(0,n._)`${u} === false`),e.ok(f);function m(){let t=a.let(`i`,(0,n._)`${o}.length`),r=a.let(`j`);e.setParams({i:t,j:r}),a.assign(f,!0),a.if((0,n._)`${t} > 1`,()=>(h()?g:_)(t,r))}function h(){return p.length>0&&!p.some(e=>e===`object`||e===`array`)}function g(r,i){let s=a.name(`item`),c=(0,t.checkDataTypes)(p,s,d.opts.strictNumbers,t.DataType.Wrong),l=a.const(`indices`,(0,n._)`{}`);a.for((0,n._)`;${r}--;`,()=>{a.let(s,(0,n._)`${o}[${r}]`),a.if(c,(0,n._)`continue`),p.length>1&&a.if((0,n._)`typeof ${s} == "string"`,(0,n._)`${s} += "_"`),a.if((0,n._)`typeof ${l}[${s}] == "number"`,()=>{a.assign(i,(0,n._)`${l}[${s}]`),e.error(),a.assign(f,!1).break()}).code((0,n._)`${l}[${s}] = ${r}`)})}function _(t,s){let c=(0,r.useFunc)(a,i.default),l=a.name(`outer`);a.label(l).for((0,n._)`;${t}--;`,()=>a.for((0,n._)`${s} = ${t}; ${s}--;`,()=>a.if((0,n._)`${c}(${o}[${t}], ${o}[${s}])`,()=>{e.error(),a.assign(f,!1).break(l)})))}}}})),Ae=c((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=O(),n=k(),r=Oe();e.default={keyword:`const`,$data:!0,error:{message:`must be equal to constant`,params:({schemaCode:e})=>(0,t._)`{allowedValue: ${e}}`},code(e){let{gen:i,data:a,$data:o,schemaCode:s,schema:c}=e;o||c&&typeof c==`object`?e.fail$data((0,t._)`!${(0,n.useFunc)(i,r.default)}(${a}, ${s})`):e.fail((0,t._)`${c} !== ${a}`)}}})),je=c((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=O(),n=k(),r=Oe();e.default={keyword:`enum`,schemaType:`array`,$data:!0,error:{message:`must be equal to one of the allowed values`,params:({schemaCode:e})=>(0,t._)`{allowedValues: ${e}}`},code(e){let{gen:i,data:a,$data:o,schema:s,schemaCode:c,it:l}=e;if(!o&&s.length===0)throw Error(`enum must have non-empty array`);let u=s.length>=l.opts.loopEnum,d,f=()=>d??=(0,n.useFunc)(i,r.default),p;if(u||o)p=i.let(`valid`),e.block$data(p,m);else{if(!Array.isArray(s))throw Error(`ajv implementation error`);let e=i.const(`vSchema`,c);p=(0,t.or)(...s.map((t,n)=>h(e,n)))}e.pass(p);function m(){i.assign(p,!1),i.forOf(`v`,c,e=>i.if((0,t._)`${f()}(${a}, ${e})`,()=>i.assign(p,!0).break()))}function h(e,n){let r=s[n];return typeof r==`object`&&r?(0,t._)`${f()}(${a}, ${e}[${n}])`:(0,t._)`${a} === ${r}`}}}})),Me=c((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=xe(),n=H(),r=Ce(),i=we(),a=Te(),o=Ee(),s=De(),c=ke(),l=Ae(),u=je();e.default=[t.default,n.default,r.default,i.default,a.default,o.default,s.default,c.default,{keyword:`type`,schemaType:[`string`,`array`]},{keyword:`nullable`,schemaType:`boolean`},l.default,u.default]})),Ne=c((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.validateAdditionalItems=void 0;var t=O(),n=k(),r={keyword:`additionalItems`,type:`array`,schemaType:[`boolean`,`object`],before:`uniqueItems`,error:{message:({params:{len:e}})=>(0,t.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,t._)`{limit: ${e}}`},code(e){let{parentSchema:t,it:r}=e,{items:a}=t;if(!Array.isArray(a)){(0,n.checkStrictMode)(r,`"additionalItems" is ignored when "items" is not an array of schemas`);return}i(e,a)}};function i(e,r){let{gen:i,schema:a,data:o,keyword:s,it:c}=e;c.items=!0;let l=i.const(`len`,(0,t._)`${o}.length`);if(a===!1)e.setParams({len:r.length}),e.pass((0,t._)`${l} <= ${r.length}`);else if(typeof a==`object`&&!(0,n.alwaysValidSchema)(c,a)){let n=i.var(`valid`,(0,t._)`${l} <= ${r.length}`);i.if((0,t.not)(n),()=>u(n)),e.ok(n)}function u(a){i.forRange(`i`,r.length,l,r=>{e.subschema({keyword:s,dataProp:r,dataPropType:n.Type.Num},a),c.allErrors||i.if((0,t.not)(a),()=>i.break())})}}e.validateAdditionalItems=i,e.default=r})),Pe=c((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.validateTuple=void 0;var t=O(),n=k(),r=F(),i={keyword:`items`,type:`array`,schemaType:[`object`,`array`,`boolean`],before:`uniqueItems`,code(e){let{schema:t,it:i}=e;if(Array.isArray(t))return a(e,`additionalItems`,t);i.items=!0,!(0,n.alwaysValidSchema)(i,t)&&e.ok((0,r.validateArray)(e))}};function a(e,r,i=e.schema){let{gen:a,parentSchema:o,data:s,keyword:c,it:l}=e;f(o),l.opts.unevaluated&&i.length&&l.items!==!0&&(l.items=n.mergeEvaluated.items(a,i.length,l.items));let u=a.name(`valid`),d=a.const(`len`,(0,t._)`${s}.length`);i.forEach((r,i)=>{(0,n.alwaysValidSchema)(l,r)||(a.if((0,t._)`${d} > ${i}`,()=>e.subschema({keyword:c,schemaProp:i,dataProp:i},u)),e.ok(u))});function f(e){let{opts:t,errSchemaPath:a}=l,o=i.length,s=o===e.minItems&&(o===e.maxItems||e[r]===!1);if(t.strictTuples&&!s){let e=`"${c}" is ${o}-tuple, but minItems or maxItems/${r} are not specified or different at path "${a}"`;(0,n.checkStrictMode)(l,e,t.strictTuples)}}}e.validateTuple=a,e.default=i})),Fe=c((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=Pe();e.default={keyword:`prefixItems`,type:`array`,schemaType:[`array`],before:`uniqueItems`,code:e=>(0,t.validateTuple)(e,`items`)}})),Ie=c((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=O(),n=k(),r=F(),i=Ne();e.default={keyword:`items`,type:`array`,schemaType:[`object`,`boolean`],before:`uniqueItems`,error:{message:({params:{len:e}})=>(0,t.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,t._)`{limit: ${e}}`},code(e){let{schema:t,parentSchema:a,it:o}=e,{prefixItems:s}=a;o.items=!0,!(0,n.alwaysValidSchema)(o,t)&&(s?(0,i.validateAdditionalItems)(e,s):e.ok((0,r.validateArray)(e)))}}})),Le=c((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=O(),n=k();e.default={keyword:`contains`,type:`array`,schemaType:[`object`,`boolean`],before:`uniqueItems`,trackErrors:!0,error:{message:({params:{min:e,max:n}})=>n===void 0?(0,t.str)`must contain at least ${e} valid item(s)`:(0,t.str)`must contain at least ${e} and no more than ${n} valid item(s)`,params:({params:{min:e,max:n}})=>n===void 0?(0,t._)`{minContains: ${e}}`:(0,t._)`{minContains: ${e}, maxContains: ${n}}`},code(e){let{gen:r,schema:i,parentSchema:a,data:o,it:s}=e,c,l,{minContains:u,maxContains:d}=a;s.opts.next?(c=u===void 0?1:u,l=d):c=1;let f=r.const(`len`,(0,t._)`${o}.length`);if(e.setParams({min:c,max:l}),l===void 0&&c===0){(0,n.checkStrictMode)(s,`"minContains" == 0 without "maxContains": "contains" keyword ignored`);return}if(l!==void 0&&c>l){(0,n.checkStrictMode)(s,`"minContains" > "maxContains" is always invalid`),e.fail();return}if((0,n.alwaysValidSchema)(s,i)){let n=(0,t._)`${f} >= ${c}`;l!==void 0&&(n=(0,t._)`${n} && ${f} <= ${l}`),e.pass(n);return}s.items=!0;let p=r.name(`valid`);l===void 0&&c===1?h(p,()=>r.if(p,()=>r.break())):c===0?(r.let(p,!0),l!==void 0&&r.if((0,t._)`${o}.length > 0`,m)):(r.let(p,!1),m()),e.result(p,()=>e.reset());function m(){let e=r.name(`_valid`),t=r.let(`count`,0);h(e,()=>r.if(e,()=>g(t)))}function h(t,i){r.forRange(`i`,0,f,r=>{e.subschema({keyword:`contains`,dataProp:r,dataPropType:n.Type.Num,compositeRule:!0},t),i()})}function g(e){r.code((0,t._)`${e}++`),l===void 0?r.if((0,t._)`${e} >= ${c}`,()=>r.assign(p,!0).break()):(r.if((0,t._)`${e} > ${l}`,()=>r.assign(p,!1).break()),c===1?r.assign(p,!0):r.if((0,t._)`${e} >= ${c}`,()=>r.assign(p,!0)))}}}})),Re=c((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;var t=O(),n=k(),r=F();e.error={message:({params:{property:e,depsCount:n,deps:r}})=>{let i=n===1?`property`:`properties`;return(0,t.str)`must have ${i} ${r} when property ${e} is present`},params:({params:{property:e,depsCount:n,deps:r,missingProperty:i}})=>(0,t._)`{property: ${e},
247
+ missingProperty: ${i},
248
+ depsCount: ${n},
249
+ deps: ${r}}`};var i={keyword:`dependencies`,type:`object`,schemaType:`object`,error:e.error,code(e){let[t,n]=a(e);o(e,t),s(e,n)}};function a({schema:e}){let t={},n={};for(let r in e){if(r===`__proto__`)continue;let i=Array.isArray(e[r])?t:n;i[r]=e[r]}return[t,n]}function o(e,n=e.schema){let{gen:i,data:a,it:o}=e;if(Object.keys(n).length===0)return;let s=i.let(`missing`);for(let c in n){let l=n[c];if(l.length===0)continue;let u=(0,r.propertyInData)(i,a,c,o.opts.ownProperties);e.setParams({property:c,depsCount:l.length,deps:l.join(`, `)}),o.allErrors?i.if(u,()=>{for(let t of l)(0,r.checkReportMissingProp)(e,t)}):(i.if((0,t._)`${u} && (${(0,r.checkMissingProp)(e,l,s)})`),(0,r.reportMissingProp)(e,s),i.else())}}e.validatePropertyDeps=o;function s(e,t=e.schema){let{gen:i,data:a,keyword:o,it:s}=e,c=i.name(`valid`);for(let l in t)(0,n.alwaysValidSchema)(s,t[l])||(i.if((0,r.propertyInData)(i,a,l,s.opts.ownProperties),()=>{let t=e.subschema({keyword:o,schemaProp:l},c);e.mergeValidEvaluated(t,c)},()=>i.var(c,!0)),e.ok(c))}e.validateSchemaDeps=s,e.default=i})),ze=c((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=O(),n=k();e.default={keyword:`propertyNames`,type:`object`,schemaType:[`object`,`boolean`],error:{message:`property name must be valid`,params:({params:e})=>(0,t._)`{propertyName: ${e.propertyName}}`},code(e){let{gen:r,schema:i,data:a,it:o}=e;if((0,n.alwaysValidSchema)(o,i))return;let s=r.name(`valid`);r.forIn(`key`,a,n=>{e.setParams({propertyName:n}),e.subschema({keyword:`propertyNames`,data:n,dataTypes:[`string`],propertyName:n,compositeRule:!0},s),r.if((0,t.not)(s),()=>{e.error(!0),o.allErrors||r.break()})}),e.ok(s)}}})),Be=c((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=F(),n=O(),r=A(),i=k();e.default={keyword:`additionalProperties`,type:[`object`],schemaType:[`boolean`,`object`],allowUndefined:!0,trackErrors:!0,error:{message:`must NOT have additional properties`,params:({params:e})=>(0,n._)`{additionalProperty: ${e.additionalProperty}}`},code(e){let{gen:a,schema:o,parentSchema:s,data:c,errsCount:l,it:u}=e;if(!l)throw Error(`ajv implementation error`);let{allErrors:d,opts:f}=u;if(u.props=!0,f.removeAdditional!==`all`&&(0,i.alwaysValidSchema)(u,o))return;let p=(0,t.allSchemaProperties)(s.properties),m=(0,t.allSchemaProperties)(s.patternProperties);h(),e.ok((0,n._)`${l} === ${r.default.errors}`);function h(){a.forIn(`key`,c,e=>{!p.length&&!m.length?v(e):a.if(g(e),()=>v(e))})}function g(r){let o;if(p.length>8){let e=(0,i.schemaRefOrVal)(u,s.properties,`properties`);o=(0,t.isOwnProperty)(a,e,r)}else o=p.length?(0,n.or)(...p.map(e=>(0,n._)`${r} === ${e}`)):n.nil;return m.length&&(o=(0,n.or)(o,...m.map(i=>(0,n._)`${(0,t.usePattern)(e,i)}.test(${r})`))),(0,n.not)(o)}function _(e){a.code((0,n._)`delete ${c}[${e}]`)}function v(t){if(f.removeAdditional===`all`||f.removeAdditional&&o===!1){_(t);return}if(o===!1){e.setParams({additionalProperty:t}),e.error(),d||a.break();return}if(typeof o==`object`&&!(0,i.alwaysValidSchema)(u,o)){let r=a.name(`valid`);f.removeAdditional===`failing`?(y(t,r,!1),a.if((0,n.not)(r),()=>{e.reset(),_(t)})):(y(t,r),d||a.if((0,n.not)(r),()=>a.break()))}}function y(t,n,r){let a={keyword:`additionalProperties`,dataProp:t,dataPropType:i.Type.Str};r===!1&&Object.assign(a,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(a,n)}}}})),Ve=c((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=L(),n=F(),r=k(),i=Be();e.default={keyword:`properties`,type:`object`,schemaType:`object`,code(e){let{gen:a,schema:o,parentSchema:s,data:c,it:l}=e;l.opts.removeAdditional===`all`&&s.additionalProperties===void 0&&i.default.code(new t.KeywordCxt(l,i.default,`additionalProperties`));let u=(0,n.allSchemaProperties)(o);for(let e of u)l.definedProperties.add(e);l.opts.unevaluated&&u.length&&l.props!==!0&&(l.props=r.mergeEvaluated.props(a,(0,r.toHash)(u),l.props));let d=u.filter(e=>!(0,r.alwaysValidSchema)(l,o[e]));if(d.length===0)return;let f=a.name(`valid`);for(let t of d)p(t)?m(t):(a.if((0,n.propertyInData)(a,c,t,l.opts.ownProperties)),m(t),l.allErrors||a.else().var(f,!0),a.endIf()),e.it.definedProperties.add(t),e.ok(f);function p(e){return l.opts.useDefaults&&!l.compositeRule&&o[e].default!==void 0}function m(t){e.subschema({keyword:`properties`,schemaProp:t,dataProp:t},f)}}}})),He=c((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=F(),n=O(),r=k(),i=k();e.default={keyword:`patternProperties`,type:`object`,schemaType:`object`,code(e){let{gen:a,schema:o,data:s,parentSchema:c,it:l}=e,{opts:u}=l,d=(0,t.allSchemaProperties)(o),f=d.filter(e=>(0,r.alwaysValidSchema)(l,o[e]));if(d.length===0||f.length===d.length&&(!l.opts.unevaluated||l.props===!0))return;let p=u.strictSchema&&!u.allowMatchingProperties&&c.properties,m=a.name(`valid`);l.props!==!0&&!(l.props instanceof n.Name)&&(l.props=(0,i.evaluatedPropsToName)(a,l.props));let{props:h}=l;g();function g(){for(let e of d)p&&_(e),l.allErrors?v(e):(a.var(m,!0),v(e),a.if(m))}function _(e){for(let t in p)new RegExp(e).test(t)&&(0,r.checkStrictMode)(l,`property ${t} matches pattern ${e} (use allowMatchingProperties)`)}function v(r){a.forIn(`key`,s,o=>{a.if((0,n._)`${(0,t.usePattern)(e,r)}.test(${o})`,()=>{let t=f.includes(r);t||e.subschema({keyword:`patternProperties`,schemaProp:r,dataProp:o,dataPropType:i.Type.Str},m),l.opts.unevaluated&&h!==!0?a.assign((0,n._)`${h}[${o}]`,!0):!t&&!l.allErrors&&a.if((0,n.not)(m),()=>a.break())})})}}}})),Ue=c((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=k();e.default={keyword:`not`,schemaType:[`object`,`boolean`],trackErrors:!0,code(e){let{gen:n,schema:r,it:i}=e;if((0,t.alwaysValidSchema)(i,r)){e.fail();return}let a=n.name(`valid`);e.subschema({keyword:`not`,compositeRule:!0,createErrors:!1,allErrors:!1},a),e.failResult(a,()=>e.reset(),()=>e.error())},error:{message:`must NOT be valid`}}})),We=c((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={keyword:`anyOf`,schemaType:`array`,trackErrors:!0,code:F().validateUnion,error:{message:`must match a schema in anyOf`}}})),Ge=c((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=O(),n=k();e.default={keyword:`oneOf`,schemaType:`array`,trackErrors:!0,error:{message:`must match exactly one schema in oneOf`,params:({params:e})=>(0,t._)`{passingSchemas: ${e.passing}}`},code(e){let{gen:r,schema:i,parentSchema:a,it:o}=e;if(!Array.isArray(i))throw Error(`ajv implementation error`);if(o.opts.discriminator&&a.discriminator)return;let s=i,c=r.let(`valid`,!1),l=r.let(`passing`,null),u=r.name(`_valid`);e.setParams({passing:l}),r.block(d),e.result(c,()=>e.reset(),()=>e.error(!0));function d(){s.forEach((i,a)=>{let s;(0,n.alwaysValidSchema)(o,i)?r.var(u,!0):s=e.subschema({keyword:`oneOf`,schemaProp:a,compositeRule:!0},u),a>0&&r.if((0,t._)`${u} && ${c}`).assign(c,!1).assign(l,(0,t._)`[${l}, ${a}]`).else(),r.if(u,()=>{r.assign(c,!0),r.assign(l,a),s&&e.mergeEvaluated(s,t.Name)})})}}}})),Ke=c((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=k();e.default={keyword:`allOf`,schemaType:`array`,code(e){let{gen:n,schema:r,it:i}=e;if(!Array.isArray(r))throw Error(`ajv implementation error`);let a=n.name(`valid`);r.forEach((n,r)=>{if((0,t.alwaysValidSchema)(i,n))return;let o=e.subschema({keyword:`allOf`,schemaProp:r},a);e.ok(a),e.mergeEvaluated(o)})}}})),qe=c((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=O(),n=k(),r={keyword:`if`,schemaType:[`object`,`boolean`],trackErrors:!0,error:{message:({params:e})=>(0,t.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,t._)`{failingKeyword: ${e.ifClause}}`},code(e){let{gen:r,parentSchema:a,it:o}=e;a.then===void 0&&a.else===void 0&&(0,n.checkStrictMode)(o,`"if" without "then" and "else" is ignored`);let s=i(o,`then`),c=i(o,`else`);if(!s&&!c)return;let l=r.let(`valid`,!0),u=r.name(`_valid`);if(d(),e.reset(),s&&c){let t=r.let(`ifClause`);e.setParams({ifClause:t}),r.if(u,f(`then`,t),f(`else`,t))}else s?r.if(u,f(`then`)):r.if((0,t.not)(u),f(`else`));e.pass(l,()=>e.error(!0));function d(){let t=e.subschema({keyword:`if`,compositeRule:!0,createErrors:!1,allErrors:!1},u);e.mergeEvaluated(t)}function f(n,i){return()=>{let a=e.subschema({keyword:n},u);r.assign(l,u),e.mergeValidEvaluated(a,l),i?r.assign(i,(0,t._)`${n}`):e.setParams({ifClause:n})}}}};function i(e,t){let r=e.schema[t];return r!==void 0&&!(0,n.alwaysValidSchema)(e,r)}e.default=r})),Je=c((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=k();e.default={keyword:[`then`,`else`],schemaType:[`object`,`boolean`],code({keyword:e,parentSchema:n,it:r}){n.if===void 0&&(0,t.checkStrictMode)(r,`"${e}" without "if" is ignored`)}}})),Ye=c((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=Ne(),n=Fe(),r=Pe(),i=Ie(),a=Le(),o=Re(),s=ze(),c=Be(),l=Ve(),u=He(),d=Ue(),f=We(),p=Ge(),m=Ke(),h=qe(),g=Je();function _(e=!1){let _=[d.default,f.default,p.default,m.default,h.default,g.default,s.default,c.default,o.default,l.default,u.default];return e?_.push(n.default,i.default):_.push(t.default,r.default),_.push(a.default),_}e.default=_})),Xe=c((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=O();e.default={keyword:`format`,type:[`number`,`string`],schemaType:`string`,$data:!0,error:{message:({schemaCode:e})=>(0,t.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,t._)`{format: ${e}}`},code(e,n){let{gen:r,data:i,$data:a,schema:o,schemaCode:s,it:c}=e,{opts:l,errSchemaPath:u,schemaEnv:d,self:f}=c;if(!l.validateFormats)return;a?p():m();function p(){let a=r.scopeValue(`formats`,{ref:f.formats,code:l.code.formats}),o=r.const(`fDef`,(0,t._)`${a}[${s}]`),c=r.let(`fType`),u=r.let(`format`);r.if((0,t._)`typeof ${o} == "object" && !(${o} instanceof RegExp)`,()=>r.assign(c,(0,t._)`${o}.type || "string"`).assign(u,(0,t._)`${o}.validate`),()=>r.assign(c,(0,t._)`"string"`).assign(u,o)),e.fail$data((0,t.or)(p(),m()));function p(){return l.strictSchema===!1?t.nil:(0,t._)`${s} && !${u}`}function m(){let e=d.$async?(0,t._)`(${o}.async ? await ${u}(${i}) : ${u}(${i}))`:(0,t._)`${u}(${i})`,r=(0,t._)`(typeof ${u} == "function" ? ${e} : ${u}.test(${i}))`;return(0,t._)`${u} && ${u} !== true && ${c} === ${n} && !${r}`}}function m(){let a=f.formats[o];if(!a){m();return}if(a===!0)return;let[s,c,p]=h(a);s===n&&e.pass(g());function m(){if(l.strictSchema===!1){f.logger.warn(e());return}throw Error(e());function e(){return`unknown format "${o}" ignored in schema at path "${u}"`}}function h(e){let n=e instanceof RegExp?(0,t.regexpCode)(e):l.code.formats?(0,t._)`${l.code.formats}${(0,t.getProperty)(o)}`:void 0,i=r.scopeValue(`formats`,{key:o,ref:e,code:n});return typeof e==`object`&&!(e instanceof RegExp)?[e.type||`string`,e.validate,(0,t._)`${i}.validate`]:[`string`,e,i]}function g(){if(typeof a==`object`&&!(a instanceof RegExp)&&a.async){if(!d.$async)throw Error(`async format in sync schema`);return(0,t._)`await ${p}(${i})`}return typeof c==`function`?(0,t._)`${p}(${i})`:(0,t._)`${p}.test(${i})`}}}}})),Ze=c((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default=[Xe().default]})),Qe=c((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.contentVocabulary=e.metadataVocabulary=void 0,e.metadataVocabulary=[`title`,`description`,`default`,`deprecated`,`readOnly`,`writeOnly`,`examples`],e.contentVocabulary=[`contentMediaType`,`contentEncoding`,`contentSchema`]})),$e=c((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=be(),n=Me(),r=Ye(),i=Ze(),a=Qe();e.default=[t.default,n.default,(0,r.default)(),i.default,a.metadataVocabulary,a.contentVocabulary]})),et=c((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.DiscrError=void 0;var t;(function(e){e.Tag=`tag`,e.Mapping=`mapping`})(t||(e.DiscrError=t={}))})),tt=c((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=O(),n=et(),r=ce(),i=se(),a=k();e.default={keyword:`discriminator`,type:`object`,schemaType:`object`,error:{message:({params:{discrError:e,tagName:t}})=>e===n.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:n,tagName:r}})=>(0,t._)`{error: ${e}, tag: ${r}, tagValue: ${n}}`},code(e){let{gen:o,data:s,schema:c,parentSchema:l,it:u}=e,{oneOf:d}=l;if(!u.opts.discriminator)throw Error(`discriminator: requires discriminator option`);let f=c.propertyName;if(typeof f!=`string`)throw Error(`discriminator: requires propertyName`);if(c.mapping)throw Error(`discriminator: mapping is not supported`);if(!d)throw Error(`discriminator: requires oneOf keyword`);let p=o.let(`valid`,!1),m=o.const(`tag`,(0,t._)`${s}${(0,t.getProperty)(f)}`);o.if((0,t._)`typeof ${m} == "string"`,()=>h(),()=>e.error(!1,{discrError:n.DiscrError.Tag,tag:m,tagName:f})),e.ok(p);function h(){let r=_();o.if(!1);for(let e in r)o.elseIf((0,t._)`${m} === ${e}`),o.assign(p,g(r[e]));o.else(),e.error(!1,{discrError:n.DiscrError.Mapping,tag:m,tagName:f}),o.endIf()}function g(n){let r=o.name(`valid`),i=e.subschema({keyword:`oneOf`,schemaProp:n},r);return e.mergeEvaluated(i,t.Name),r}function _(){let e={},t=o(l),n=!0;for(let e=0;e<d.length;e++){let c=d[e];if(c?.$ref&&!(0,a.schemaHasRulesButRef)(c,u.self.RULES)){let e=c.$ref;if(c=r.resolveRef.call(u.self,u.schemaEnv.root,u.baseId,e),c instanceof r.SchemaEnv&&(c=c.schema),c===void 0)throw new i.default(u.opts.uriResolver,u.baseId,e)}let l=c?.properties?.[f];if(typeof l!=`object`)throw Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${f}"`);n&&=t||o(c),s(l,e)}if(!n)throw Error(`discriminator: "${f}" must be required`);return e;function o({required:e}){return Array.isArray(e)&&e.includes(f)}function s(e,t){if(e.const)c(e.const,t);else if(e.enum)for(let n of e.enum)c(n,t);else throw Error(`discriminator: "properties/${f}" must have "const" or "enum"`)}function c(t,n){if(typeof t!=`string`||t in e)throw Error(`discriminator: "${f}" values must be unique strings`);e[t]=n}}}}})),nt=l({$id:()=>it,$schema:()=>rt,default:()=>lt,definitions:()=>ot,properties:()=>ct,title:()=>at,type:()=>st}),rt,it,at,ot,st,ct,lt,ut=s((()=>{rt=`http://json-schema.org/draft-07/schema#`,it=`http://json-schema.org/draft-07/schema#`,at=`Core schema meta-schema`,ot={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:[]}},st=[`object`,`boolean`],ct={$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:`#`}},lt={$schema:rt,$id:it,title:at,definitions:ot,type:st,properties:ct,default:!0}})),dt=c(((e,t)=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.MissingRefError=e.ValidationError=e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=e.Ajv=void 0;var n=ve(),r=$e(),i=tt(),a=(ut(),f(nt).default),o=[`/properties`],s=`http://json-schema.org/draft-07/schema`,c=class extends n.default{_addVocabularies(){super._addVocabularies(),r.default.forEach(e=>this.addVocabulary(e)),this.opts.discriminator&&this.addKeyword(i.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let e=this.opts.$data?this.$dataMetaSchema(a,o):a;this.addMetaSchema(e,s,!1),this.refs[`http://json-schema.org/schema`]=s}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(s)?s:void 0)}};e.Ajv=c,t.exports=e=c,t.exports.Ajv=c,Object.defineProperty(e,`__esModule`,{value:!0}),e.default=c;var l=L();Object.defineProperty(e,`KeywordCxt`,{enumerable:!0,get:function(){return l.KeywordCxt}});var u=O();Object.defineProperty(e,`_`,{enumerable:!0,get:function(){return u._}}),Object.defineProperty(e,`str`,{enumerable:!0,get:function(){return u.str}}),Object.defineProperty(e,`stringify`,{enumerable:!0,get:function(){return u.stringify}}),Object.defineProperty(e,`nil`,{enumerable:!0,get:function(){return u.nil}}),Object.defineProperty(e,`Name`,{enumerable:!0,get:function(){return u.Name}}),Object.defineProperty(e,`CodeGen`,{enumerable:!0,get:function(){return u.CodeGen}});var d=oe();Object.defineProperty(e,`ValidationError`,{enumerable:!0,get:function(){return d.default}});var p=se();Object.defineProperty(e,`MissingRefError`,{enumerable:!0,get:function(){return p.default}})})),ft=typeof global==`object`&&global&&global.Object===Object&&global,pt=typeof self==`object`&&self&&self.Object===Object&&self,mt=ft||pt||Function(`return this`)(),ht=mt.Symbol,gt=Object.prototype,_t=gt.hasOwnProperty,vt=gt.toString,yt=ht?ht.toStringTag:void 0;function bt(e){var t=_t.call(e,yt),n=e[yt];try{e[yt]=void 0;var r=!0}catch{}var i=vt.call(e);return r&&(t?e[yt]=n:delete e[yt]),i}var xt=Object.prototype.toString;function St(e){return xt.call(e)}var Ct=`[object Null]`,wt=`[object Undefined]`,Tt=ht?ht.toStringTag:void 0;function Et(e){return e==null?e===void 0?wt:Ct:Tt&&Tt in Object(e)?bt(e):St(e)}function Dt(e){return typeof e==`object`&&!!e}var Ot=Array.isArray;function kt(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}function At(e){return e}var jt=`[object AsyncFunction]`,Mt=`[object Function]`,Nt=`[object GeneratorFunction]`,Pt=`[object Proxy]`;function Ft(e){if(!kt(e))return!1;var t=Et(e);return t==Mt||t==Nt||t==jt||t==Pt}var It=mt[`__core-js_shared__`],Lt=function(){var e=/[^.]+$/.exec(It&&It.keys&&It.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}();function Rt(e){return!!Lt&&Lt in e}var zt=Function.prototype.toString;function Bt(e){if(e!=null){try{return zt.call(e)}catch{}try{return e+``}catch{}}return``}var Vt=/[\\^$.*+?()[\]{}|]/g,Ht=/^\[object .+?Constructor\]$/,Ut=Function.prototype,Wt=Object.prototype,Gt=Ut.toString,Kt=Wt.hasOwnProperty,qt=RegExp(`^`+Gt.call(Kt).replace(Vt,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`);function Jt(e){return!kt(e)||Rt(e)?!1:(Ft(e)?qt:Ht).test(Bt(e))}function Yt(e,t){return e?.[t]}function Xt(e,t){var n=Yt(e,t);return Jt(n)?n:void 0}var Zt=Object.create,Qt=function(){function e(){}return function(t){if(!kt(t))return{};if(Zt)return Zt(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function $t(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function en(e,t){var n=-1,r=e.length;for(t||=Array(r);++n<r;)t[n]=e[n];return t}var tn=800,nn=16,rn=Date.now;function an(e){var t=0,n=0;return function(){var r=rn(),i=nn-(r-n);if(n=r,i>0){if(++t>=tn)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function on(e){return function(){return e}}var sn=function(){try{var e=Xt(Object,`defineProperty`);return e({},``,{}),e}catch{}}(),cn=an(sn?function(e,t){return sn(e,`toString`,{configurable:!0,enumerable:!1,value:on(t),writable:!0})}:At),ln=9007199254740991,un=/^(?:0|[1-9]\d*)$/;function dn(e,t){var n=typeof e;return t??=ln,!!t&&(n==`number`||n!=`symbol`&&un.test(e))&&e>-1&&e%1==0&&e<t}function fn(e,t,n){t==`__proto__`&&sn?sn(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function pn(e,t){return e===t||e!==e&&t!==t}var mn=Object.prototype.hasOwnProperty;function hn(e,t,n){var r=e[t];(!(mn.call(e,t)&&pn(r,n))||n===void 0&&!(t in e))&&fn(e,t,n)}function gn(e,t,n,r){var i=!n;n||={};for(var a=-1,o=t.length;++a<o;){var s=t[a],c=r?r(n[s],e[s],s,n,e):void 0;c===void 0&&(c=e[s]),i?fn(n,s,c):hn(n,s,c)}return n}var _n=Math.max;function vn(e,t,n){return t=_n(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=_n(r.length-t,0),o=Array(a);++i<a;)o[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(o),$t(e,this,s)}}function yn(e,t){return cn(vn(e,t,At),e+``)}var bn=9007199254740991;function xn(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=bn}function Sn(e){return e!=null&&xn(e.length)&&!Ft(e)}function Cn(e,t,n){if(!kt(n))return!1;var r=typeof t;return(r==`number`?Sn(n)&&dn(t,n.length):r==`string`&&t in n)?pn(n[t],e):!1}function wn(e){return yn(function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,o=i>2?n[2]:void 0;for(a=e.length>3&&typeof a==`function`?(i--,a):void 0,o&&Cn(n[0],n[1],o)&&(a=i<3?void 0:a,i=1),t=Object(t);++r<i;){var s=n[r];s&&e(t,s,r,a)}return t})}var Tn=Object.prototype;function En(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||Tn)}function Dn(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var On=`[object Arguments]`;function kn(e){return Dt(e)&&Et(e)==On}var An=Object.prototype,jn=An.hasOwnProperty,Mn=An.propertyIsEnumerable,Nn=kn(function(){return arguments}())?kn:function(e){return Dt(e)&&jn.call(e,`callee`)&&!Mn.call(e,`callee`)};function Pn(){return!1}var Fn=typeof e==`object`&&e&&!e.nodeType&&e,In=Fn&&typeof module==`object`&&module&&!module.nodeType&&module,Ln=In&&In.exports===Fn?mt.Buffer:void 0,Rn=(Ln?Ln.isBuffer:void 0)||Pn,zn=`[object Arguments]`,Bn=`[object Array]`,Vn=`[object Boolean]`,Hn=`[object Date]`,Un=`[object Error]`,Wn=`[object Function]`,Gn=`[object Map]`,Kn=`[object Number]`,qn=`[object Object]`,Jn=`[object RegExp]`,Yn=`[object Set]`,Xn=`[object String]`,Zn=`[object WeakMap]`,Qn=`[object ArrayBuffer]`,$n=`[object DataView]`,er=`[object Float32Array]`,tr=`[object Float64Array]`,nr=`[object Int8Array]`,rr=`[object Int16Array]`,ir=`[object Int32Array]`,ar=`[object Uint8Array]`,or=`[object Uint8ClampedArray]`,sr=`[object Uint16Array]`,cr=`[object Uint32Array]`,lr={};lr[er]=lr[tr]=lr[nr]=lr[rr]=lr[ir]=lr[ar]=lr[or]=lr[sr]=lr[cr]=!0,lr[zn]=lr[Bn]=lr[Qn]=lr[Vn]=lr[$n]=lr[Hn]=lr[Un]=lr[Wn]=lr[Gn]=lr[Kn]=lr[qn]=lr[Jn]=lr[Yn]=lr[Xn]=lr[Zn]=!1;function ur(e){return Dt(e)&&xn(e.length)&&!!lr[Et(e)]}function dr(e){return function(t){return e(t)}}var fr=typeof e==`object`&&e&&!e.nodeType&&e,pr=fr&&typeof module==`object`&&module&&!module.nodeType&&module,mr=pr&&pr.exports===fr&&ft.process,hr=function(){try{return pr&&pr.require&&pr.require(`util`).types||mr&&mr.binding&&mr.binding(`util`)}catch{}}(),gr=hr&&hr.isTypedArray,_r=gr?dr(gr):ur,vr=Object.prototype.hasOwnProperty;function yr(e,t){var n=Ot(e),r=!n&&Nn(e),i=!n&&!r&&Rn(e),a=!n&&!r&&!i&&_r(e),o=n||r||i||a,s=o?Dn(e.length,String):[],c=s.length;for(var l in e)(t||vr.call(e,l))&&!(o&&(l==`length`||i&&(l==`offset`||l==`parent`)||a&&(l==`buffer`||l==`byteLength`||l==`byteOffset`)||dn(l,c)))&&s.push(l);return s}function br(e,t){return function(n){return e(t(n))}}function xr(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var Sr=Object.prototype.hasOwnProperty;function Cr(e){if(!kt(e))return xr(e);var t=En(e),n=[];for(var r in e)r==`constructor`&&(t||!Sr.call(e,r))||n.push(r);return n}function wr(e){return Sn(e)?yr(e,!0):Cr(e)}var Tr=Xt(Object,`create`);function Er(){this.__data__=Tr?Tr(null):{},this.size=0}function Dr(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t}var Or=`__lodash_hash_undefined__`,kr=Object.prototype.hasOwnProperty;function Ar(e){var t=this.__data__;if(Tr){var n=t[e];return n===Or?void 0:n}return kr.call(t,e)?t[e]:void 0}var jr=Object.prototype.hasOwnProperty;function Mr(e){var t=this.__data__;return Tr?t[e]!==void 0:jr.call(t,e)}var Nr=`__lodash_hash_undefined__`;function Pr(e,t){var n=this.__data__;return this.size+=+!this.has(e),n[e]=Tr&&t===void 0?Nr:t,this}function Fr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Fr.prototype.clear=Er,Fr.prototype.delete=Dr,Fr.prototype.get=Ar,Fr.prototype.has=Mr,Fr.prototype.set=Pr;function Ir(){this.__data__=[],this.size=0}function Lr(e,t){for(var n=e.length;n--;)if(pn(e[n][0],t))return n;return-1}var Rr=Array.prototype.splice;function zr(e){var t=this.__data__,n=Lr(t,e);return n<0?!1:(n==t.length-1?t.pop():Rr.call(t,n,1),--this.size,!0)}function Br(e){var t=this.__data__,n=Lr(t,e);return n<0?void 0:t[n][1]}function Vr(e){return Lr(this.__data__,e)>-1}function Hr(e,t){var n=this.__data__,r=Lr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Ur(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ur.prototype.clear=Ir,Ur.prototype.delete=zr,Ur.prototype.get=Br,Ur.prototype.has=Vr,Ur.prototype.set=Hr;var Wr=Xt(mt,`Map`);function Gr(){this.size=0,this.__data__={hash:new Fr,map:new(Wr||Ur),string:new Fr}}function Kr(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}function qr(e,t){var n=e.__data__;return Kr(t)?n[typeof t==`string`?`string`:`hash`]:n.map}function Jr(e){var t=qr(this,e).delete(e);return this.size-=+!!t,t}function Yr(e){return qr(this,e).get(e)}function Xr(e){return qr(this,e).has(e)}function Zr(e,t){var n=qr(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function Qr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Qr.prototype.clear=Gr,Qr.prototype.delete=Jr,Qr.prototype.get=Yr,Qr.prototype.has=Xr,Qr.prototype.set=Zr;var $r=br(Object.getPrototypeOf,Object),ei=`[object Object]`,ti=Function.prototype,ni=Object.prototype,ri=ti.toString,ii=ni.hasOwnProperty,ai=ri.call(Object);function oi(e){if(!Dt(e)||Et(e)!=ei)return!1;var t=$r(e);if(t===null)return!0;var n=ii.call(t,`constructor`)&&t.constructor;return typeof n==`function`&&n instanceof n&&ri.call(n)==ai}function si(){this.__data__=new Ur,this.size=0}function ci(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function li(e){return this.__data__.get(e)}function ui(e){return this.__data__.has(e)}var di=200;function fi(e,t){var n=this.__data__;if(n instanceof Ur){var r=n.__data__;if(!Wr||r.length<di-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Qr(r)}return n.set(e,t),this.size=n.size,this}function pi(e){var t=this.__data__=new Ur(e);this.size=t.size}pi.prototype.clear=si,pi.prototype.delete=ci,pi.prototype.get=li,pi.prototype.has=ui,pi.prototype.set=fi;var mi=typeof e==`object`&&e&&!e.nodeType&&e,hi=mi&&typeof module==`object`&&module&&!module.nodeType&&module,gi=hi&&hi.exports===mi?mt.Buffer:void 0,_i=gi?gi.allocUnsafe:void 0;function vi(e,t){if(t)return e.slice();var n=e.length,r=_i?_i(n):new e.constructor(n);return e.copy(r),r}var yi=mt.Uint8Array;function bi(e){var t=new e.constructor(e.byteLength);return new yi(t).set(new yi(e)),t}function xi(e,t){var n=t?bi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Si(e){return typeof e.constructor==`function`&&!En(e)?Qt($r(e)):{}}function Ci(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var c=o[e?s:++i];if(n(a[c],c,a)===!1)break}return t}}var wi=Ci();function Ti(e,t,n){(n!==void 0&&!pn(e[t],n)||n===void 0&&!(t in e))&&fn(e,t,n)}function Ei(e){return Dt(e)&&Sn(e)}function Di(e,t){if(!(t===`constructor`&&typeof e[t]==`function`)&&t!=`__proto__`)return e[t]}function Oi(e){return gn(e,wr(e))}function ki(e,t,n,r,i,a,o){var s=Di(e,n),c=Di(t,n),l=o.get(c);if(l){Ti(e,n,l);return}var u=a?a(s,c,n+``,e,t,o):void 0,d=u===void 0;if(d){var f=Ot(c),p=!f&&Rn(c),m=!f&&!p&&_r(c);u=c,f||p||m?Ot(s)?u=s:Ei(s)?u=en(s):p?(d=!1,u=vi(c,!0)):m?(d=!1,u=xi(c,!0)):u=[]:oi(c)||Nn(c)?(u=s,Nn(s)?u=Oi(s):(!kt(s)||Ft(s))&&(u=Si(c))):d=!1}d&&(o.set(c,u),i(u,c,r,a,o),o.delete(c)),Ti(e,n,u)}function Ai(e,t,n,r,i){e!==t&&wi(t,function(a,o){if(i||=new pi,kt(a))ki(e,t,o,n,Ai,r,i);else{var s=r?r(Di(e,o),a,o+``,e,t,i):void 0;s===void 0&&(s=a),Ti(e,o,s)}},wr)}var ji=wn(function(e,t,n,r){Ai(e,t,n,r)}),U=d(g()),Mi=d(T()),Ni=d(dt()),Pi=null;function Fi(){Pi&&=(Pi.abort(),null)}var Ii=class{tools=Object.create(null);ajv=new Ni.default({allErrors:!0,strict:!1,allowUnionTypes:!0});validatorCache=Object.create(null);register(e,t){if(this.tools[e.function.name])throw Error(`${e.function.name} 已存在`);this.tools[e.function.name]={def:e,handler:t}}getDefinition(e){return this.tools[e]?.def}getHandler(e){return this.tools[e]?.handler}remove(e){delete this.tools[e],delete this.validatorCache[e]}get definitions(){return Object.values(this.tools).map(e=>e.def)}getDefinitions(e){return e.length?e.map(e=>this.getDefinition(e)).filter(e=>!!e):null}getValidator(e,t){return this.validatorCache[e]||(this.validatorCache[e]=this.ajv.compile(t)),this.validatorCache[e]}validate(e,t){let n=this.tools[e];if(!n)throw Error(`${e} 未注册`);let r=n.def.function.parameters,i=this.getValidator(e,r);if(!i(t)){let e=this.ajv.errorsText(i.errors,{separator:`, `});throw Error(`参数验证失败: ${e}`)}return!0}async call(e,t){this.validate(e,t);let n=this.getHandler(e);if(!n)throw Error(`${e} 没有 handler`);return n(t)}},Li=class extends Ii{model=``;url=``;messages=[];maxRounds=4;defaultParams={tools:[],roundsLeft:this.maxRounds};constructor(e){super();let{model:t,url:n,systemMessageContent:r,maxRounds:i}=e;this.model=t,this.url=n,typeof i==`number`&&(this.maxRounds=i),r&&(this.messages[0]={id:crypto.randomUUID(),role:`system`,content:r})}pushMessage(e){e&&(e.id||=crypto.randomUUID(),this.messages.push(e))}pushMessages(e){if(e.length)for(let t of e)this.pushMessage(t)}resetMessages(){let e=this.messages.find(e=>e.role===`system`);this.messages=e?[e]:[]}merge(e,t,n=[]){return ji({},e,t,(e,t,r)=>{if(n.includes(r))return(typeof e==`string`?e:``)+(typeof t==`string`?t:``)})}async invoke(e=this.defaultParams){let{tools:t=[],roundsLeft:n=this.maxRounds,panel:r}=e;Fi(),Pi=new AbortController;try{let e=await fetch(this.url,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({model:this.model,messages:this.messages,tools:this.getDefinitions(t),stream:!1}),signal:Pi.signal});if(Pi.signal.aborted)throw new DOMException(`请求已被取消`,`AbortError`);let i=(await e.json())?.choices?.[0]?.message;if(!i)return;i.role===null&&(i.role=`assistant`);let{content:a,role:o,tool_calls:s}=i;if(!s?.length)return i;a&&r&&(await r.pushLoadingMessage(),await r.updateLoadingMessageContent(a)),this.messages.push({id:crypto.randomUUID(),content:a,role:o,tool_calls:s});let c=s.map(async e=>{let{function:{name:t,arguments:n},id:r}=e,i=await this.call(t,JSON.parse(n));this.messages.push({id:crypto.randomUUID(),content:i,role:`tool`,tool_call_id:r})});if(await Promise.all(c),n-1>0)return r&&await r.pushLoadingMessage(),await this.invoke({tools:[],roundsLeft:n-1,panel:r})}finally{Pi=null}}async*invokeStream(e=this.defaultParams){let{tools:t=[],roundsLeft:n=this.maxRounds}=e;Fi(),Pi=new AbortController;try{let e=await fetch(this.url,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({model:this.model,messages:this.messages,tools:this.getDefinitions(t),stream:!0}),signal:Pi.signal});if(Pi.signal.aborted)throw new DOMException(`请求已被取消`,`AbortError`);let r=e.body?.getReader();if(!r)throw Error(`Failed to get response reader`);let i=null,a=new TextDecoder,o=``;for(;;){let{done:e,value:t}=await r.read();if(e)break;let n=a.decode(t,{stream:!0}).split(`
250
+
251
+ `).filter(e=>e.trim()!==``);for(let e of n){if(e===`data: [DONE]`)break;let t=e.trim().replace(/^data: /,``);try{let e=JSON.parse(o+t);i=this.merge(i,e,[`content`,`arguments`]),yield e,o=``}catch(e){console.log(`JSON 解析失败,等待下一个数据块继续拼接`,{error:e,jsonStr:t}),o+=t}}}let s=i?.choices?.[0]?.delta;if(!s)return;s.role===null&&(s.role=`assistant`);let{content:c,role:l,tool_calls:u}=s;if(!u?.length)return s;this.messages.push({id:crypto.randomUUID(),content:c,role:l,tool_calls:u});let d=u.map(async e=>{let{function:{name:t,arguments:n},id:r}=e,i=await this.call(t,JSON.parse(n));this.messages.push({id:crypto.randomUUID(),content:i,role:`tool`,tool_call_id:r})});if(await Promise.all(d),n-1>0)return this.invokeStream({tools:[],roundsLeft:n-1})}finally{Pi=null}}},Ri=e=>{let t=U.useRef(e);return t.current=e,U.useCallback((...e)=>t.current?.(...e),[])};function zi(){return!!(typeof window<`u`&&window.document&&window.document.createElement)}var Bi=process.env.NODE_ENV!==`test`&&zi()?U.useLayoutEffect:U.useEffect,Vi=(e,t)=>{let n=U.useRef(!0);Bi(()=>e(n.current),t),Bi(()=>(n.current=!1,()=>{n.current=!0}),[])},Hi=e=>{let t=U.useRef(!1),[n,r]=U.useState(e);U.useEffect(()=>(t.current=!1,()=>{t.current=!0}),[]);function i(e,n){n&&t.current||r(e)}return[n,i]};function Ui(e,t){let[n,r]=(0,U.useState)(e),i=t===void 0?n:t;return Vi(e=>{e||r(t)},[t]),[i,r]}function Wi(){return{...U}.useId}var Gi=0,Ki=Wi(),qi=Ki?function(e){let t=Ki();return e||(process.env.NODE_ENV===`test`?`test-id`:t)}:function(e){let[t,n]=U.useState(`ssr-id`);return U.useEffect(()=>{let e=Gi;Gi+=1,n(`rc_unique_${e}`)},[]),e||(process.env.NODE_ENV===`test`?`test-id`:t)};function Ji(e,t,n){let r=U.useRef({});return(!(`value`in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}function Yi(e){let[,t]=U.useReducer(e=>e+1,0),n=U.useRef(e);return[Ri(()=>n.current),Ri(e=>{n.current=typeof e==`function`?e(n.current):e,t()})]}var Xi=c((e=>{var t=Symbol.for(`react.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.provider`),s=Symbol.for(`react.context`),c=Symbol.for(`react.server_context`),l=Symbol.for(`react.forward_ref`),u=Symbol.for(`react.suspense`),d=Symbol.for(`react.suspense_list`),f=Symbol.for(`react.memo`),p=Symbol.for(`react.lazy`),m=Symbol.for(`react.offscreen`),h=Symbol.for(`react.module.reference`);function g(e){if(typeof e==`object`&&e){var m=e.$$typeof;switch(m){case t:switch(e=e.type,e){case r:case a:case i:case u:case d:return e;default:switch(e&&=e.$$typeof,e){case c:case s:case l:case p:case f:case o:return e;default:return m}}case n:return m}}}e.ContextConsumer=s,e.ContextProvider=o,e.Element=t,e.ForwardRef=l,e.Fragment=r,e.Lazy=p,e.Memo=f,e.Portal=n,e.Profiler=a,e.StrictMode=i,e.Suspense=u,e.SuspenseList=d,e.isAsyncMode=function(){return!1},e.isConcurrentMode=function(){return!1},e.isContextConsumer=function(e){return g(e)===s},e.isContextProvider=function(e){return g(e)===o},e.isElement=function(e){return typeof e==`object`&&!!e&&e.$$typeof===t},e.isForwardRef=function(e){return g(e)===l},e.isFragment=function(e){return g(e)===r},e.isLazy=function(e){return g(e)===p},e.isMemo=function(e){return g(e)===f},e.isPortal=function(e){return g(e)===n},e.isProfiler=function(e){return g(e)===a},e.isStrictMode=function(e){return g(e)===i},e.isSuspense=function(e){return g(e)===u},e.isSuspenseList=function(e){return g(e)===d},e.isValidElementType=function(e){return!!(typeof e==`string`||typeof e==`function`||e===r||e===a||e===i||e===u||e===d||e===m||typeof e==`object`&&e&&(e.$$typeof===p||e.$$typeof===f||e.$$typeof===o||e.$$typeof===s||e.$$typeof===l||e.$$typeof===h||e.getModuleId!==void 0))},e.typeOf=g})),Zi=c((e=>{process.env.NODE_ENV!==`production`&&(function(){"use strict";var t=Symbol.for(`react.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.provider`),s=Symbol.for(`react.context`),c=Symbol.for(`react.server_context`),l=Symbol.for(`react.forward_ref`),u=Symbol.for(`react.suspense`),d=Symbol.for(`react.suspense_list`),f=Symbol.for(`react.memo`),p=Symbol.for(`react.lazy`),m=Symbol.for(`react.offscreen`),h=!1,g=!1,_=!1,v=!1,y=!1,b=Symbol.for(`react.module.reference`);function x(e){return!!(typeof e==`string`||typeof e==`function`||e===r||e===a||y||e===i||e===u||e===d||v||e===m||h||g||_||typeof e==`object`&&e&&(e.$$typeof===p||e.$$typeof===f||e.$$typeof===o||e.$$typeof===s||e.$$typeof===l||e.$$typeof===b||e.getModuleId!==void 0))}function S(e){if(typeof e==`object`&&e){var m=e.$$typeof;switch(m){case t:var h=e.type;switch(h){case r:case a:case i:case u:case d:return h;default:var g=h&&h.$$typeof;switch(g){case c:case s:case l:case p:case f:case o:return g;default:return m}}case n:return m}}}var C=s,w=o,T=t,E=l,D=r,O=p,k=f,A=n,j=a,M=i,N=u,ee=d,te=!1,P=!1;function F(e){return te||(te=!0,console.warn(`The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.`)),!1}function ne(e){return P||(P=!0,console.warn(`The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.`)),!1}function re(e){return S(e)===s}function ie(e){return S(e)===o}function I(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function ae(e){return S(e)===l}function L(e){return S(e)===r}function oe(e){return S(e)===p}function se(e){return S(e)===f}function ce(e){return S(e)===n}function le(e){return S(e)===a}function ue(e){return S(e)===i}function de(e){return S(e)===u}function fe(e){return S(e)===d}e.ContextConsumer=C,e.ContextProvider=w,e.Element=T,e.ForwardRef=E,e.Fragment=D,e.Lazy=O,e.Memo=k,e.Portal=A,e.Profiler=j,e.StrictMode=M,e.Suspense=N,e.SuspenseList=ee,e.isAsyncMode=F,e.isConcurrentMode=ne,e.isContextConsumer=re,e.isContextProvider=ie,e.isElement=I,e.isForwardRef=ae,e.isFragment=L,e.isLazy=oe,e.isMemo=se,e.isPortal=ce,e.isProfiler=le,e.isStrictMode=ue,e.isSuspense=de,e.isSuspenseList=fe,e.isValidElementType=x,e.typeOf=S})()})),Qi=c(((e,t)=>{process.env.NODE_ENV===`production`?t.exports=Xi():t.exports=Zi()})),$i=Symbol.for(`react.element`),ea=Symbol.for(`react.transitional.element`),ta=Symbol.for(`react.fragment`);function na(e){return e&&typeof e==`object`&&(e.$$typeof===$i||e.$$typeof===ea)&&e.type===ta}var ra=Qi(),ia=Number(U.version.split(`.`)[0]),aa=(e,t)=>{typeof e==`function`?e(t):typeof e==`object`&&e&&`current`in e&&(e.current=t)},oa=(...e)=>{let t=e.filter(Boolean);return t.length<=1?t[0]:t=>{e.forEach(e=>{aa(e,t)})}},sa=(...e)=>Ji(()=>oa(...e),e,(e,t)=>e.length!==t.length||e.every((e,n)=>e!==t[n])),W=e=>{if(!e)return!1;if(ca(e)&&ia>=19)return!0;let t=(0,ra.isMemo)(e)?e.type.type:e.type;return!(typeof t==`function`&&!t.prototype?.render&&t.$$typeof!==ra.ForwardRef||typeof e==`function`&&!e.prototype?.render&&e.$$typeof!==ra.ForwardRef)};function ca(e){return(0,U.isValidElement)(e)&&!na(e)}var la=e=>ca(e)&&W(e),ua=e=>{if(e&&ca(e)){let t=e;return t.props.propertyIsEnumerable(`ref`)?t.props.ref:t.ref}return null};function da(e,t){if(!e)return!1;if(e.contains)return e.contains(t);let n=t;for(;n;){if(n===e)return!0;n=n.parentNode}return!1}var fa=`data-rc-order`,pa=`data-rc-priority`,ma=`rc-util-key`,ha=new Map;function ga({mark:e}={}){return e?e.startsWith(`data-`)?e:`data-${e}`:ma}function _a(e){return e.attachTo?e.attachTo:document.querySelector(`head`)||document.body}function va(e){return e===`queue`?`prependQueue`:e?`prepend`:`append`}function ya(e){return Array.from((ha.get(e)||e).children).filter(e=>e.tagName===`STYLE`)}function ba(e,t={}){if(!zi())return null;let{csp:n,prepend:r,priority:i=0}=t,a=va(r),o=a===`prependQueue`,s=document.createElement(`style`);s.setAttribute(fa,a),o&&i&&s.setAttribute(pa,`${i}`),n?.nonce&&(s.nonce=n?.nonce),s.innerHTML=e;let c=_a(t),{firstChild:l}=c;if(r){if(o){let e=(t.styles||ya(c)).filter(e=>[`prepend`,`prependQueue`].includes(e.getAttribute(fa))?i>=Number(e.getAttribute(pa)||0):!1);if(e.length)return c.insertBefore(s,e[e.length-1].nextSibling),s}c.insertBefore(s,l)}else c.appendChild(s);return s}function xa(e,t={}){let{styles:n}=t;return n||=ya(_a(t)),n.find(n=>n.getAttribute(ga(t))===e)}function Sa(e,t={}){let n=xa(e,t);n&&_a(t).removeChild(n)}function Ca(e,t){let n=ha.get(e);if(!n||!da(document,n)){let n=ba(``,t),{parentNode:r}=n;ha.set(e,r),e.removeChild(n)}}function wa(e,t,n={}){let r=_a(n),i=ya(r),a={...n,styles:i};Ca(r,a);let o=xa(t,a);if(o)return a.csp?.nonce&&o.nonce!==a.csp?.nonce&&(o.nonce=a.csp?.nonce),o.innerHTML!==e&&(o.innerHTML=e),o;let s=ba(e,a);return s.setAttribute(ga(a),t),s}function Ta(e){return e instanceof HTMLElement||e instanceof SVGElement}function Ea(e){return e&&typeof e==`object`&&Ta(e.nativeElement)?e.nativeElement:Ta(e)?e:null}var Da=(e=>{if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){let{width:t,height:n}=e.getBBox();if(t||n)return!0}if(e.getBoundingClientRect){let{width:t,height:n}=e.getBoundingClientRect();if(t||n)return!0}}return!1});function Oa(e){return e?.getRootNode?.()}function ka(e){return Oa(e)instanceof ShadowRoot}function Aa(e){return ka(e)?Oa(e):null}function ja(e){let t=`rc-scrollbar-measure-${Math.random().toString(36).substring(7)}`,n=document.createElement(`div`);n.id=t;let r=n.style;r.position=`absolute`,r.left=`0`,r.top=`0`,r.width=`100px`,r.height=`100px`,r.overflow=`scroll`;let i,a;if(e){let n=getComputedStyle(e);r.scrollbarColor=n.scrollbarColor,r.scrollbarWidth=n.scrollbarWidth;let o=getComputedStyle(e,`::-webkit-scrollbar`),s=parseInt(o.width,10),c=parseInt(o.height,10);try{wa(`
252
+ #${t}::-webkit-scrollbar {
253
+ ${s?`width: ${o.width};`:``}
254
+ ${c?`height: ${o.height};`:``}
255
+ }`,t)}catch(e){console.error(e),i=s,a=c}}document.body.appendChild(n);let o=e&&i&&!Number.isNaN(i)?i:n.offsetWidth-n.clientWidth,s=e&&a&&!Number.isNaN(a)?a:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),Sa(t),{width:o,height:s}}function Ma(e){return typeof document>`u`||!e||!(e instanceof Element)?{width:0,height:0}:ja(e)}var Na={},Pa=[],Fa=e=>{Pa.push(e)};function Ia(e,t){if(process.env.NODE_ENV!==`production`&&!e&&console!==void 0){let e=Pa.reduce((e,t)=>t(e??``,`warning`),t);e&&console.error(`Warning: ${e}`)}}function La(e,t){if(process.env.NODE_ENV!==`production`&&!e&&console!==void 0){let e=Pa.reduce((e,t)=>t(e??``,`note`),t);e&&console.warn(`Note: ${e}`)}}function Ra(){Na={}}function za(e,t,n){!t&&!Na[n]&&(e(!1,n),Na[n]=!0)}function Ba(e,t){za(Ia,e,t)}function Va(e,t){za(La,e,t)}Ba.preMessage=Fa,Ba.resetWarned=Ra,Ba.noteOnce=Va;function Ha(e,t,n=!1){let r=new Set;function i(e,t,a=1){let o=r.has(e);if(Ba(!o,`Warning: There may be circular references`),o)return!1;if(e===t)return!0;if(n&&a>1)return!1;r.add(e);let s=a+1;if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!i(e[n],t[n],s))return!1;return!0}if(e&&t&&typeof e==`object`&&typeof t==`object`){let n=Object.keys(e);return n.length===Object.keys(t).length?n.every(n=>i(e[n],t[n],s)):!1}return!1}return i(e,t)}c(((e,t)=>{t.exports=a,t.exports.isMobile=a,t.exports.default=a;var n=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|redmi|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,r=/CrOS/,i=/android|ipad|playbook|silk/i;function a(e){e||={};let t=e.ua;if(!t&&typeof navigator<`u`&&(t=navigator.userAgent),t&&t.headers&&typeof t.headers[`user-agent`]==`string`&&(t=t.headers[`user-agent`]),typeof t!=`string`)return!1;let a=n.test(t)&&!r.test(t)||!!e.tablet&&i.test(t);return!a&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&t.indexOf(`Macintosh`)!==-1&&t.indexOf(`Safari`)!==-1&&(a=!0),a}}))();var Ua=`accept acceptCharset accessKey action allowFullScreen allowTransparency
256
+ alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
257
+ charSet checked classID className colSpan cols content contentEditable contextMenu
258
+ controls coords crossOrigin data dateTime default defer dir disabled download draggable
259
+ encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
260
+ headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
261
+ is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
262
+ mediaGroup method min minLength multiple muted name noValidate nonce open
263
+ optimum pattern placeholder poster preload radioGroup readOnly rel required
264
+ reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
265
+ shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
266
+ summary tabIndex target title type useMap value width wmode wrap onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
267
+ onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
268
+ onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
269
+ onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
270
+ onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
271
+ onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
272
+ onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`.split(/[\s\n]+/),Wa=`aria-`,Ga=`data-`;function Ka(e,t){return e.indexOf(t)===0}function qa(e,t=!1){let n;n=t===!1?{aria:!0,data:!0,attr:!0}:t===!0?{aria:!0}:{...t};let r={};return Object.keys(e).forEach(t=>{(n.aria&&(t===`role`||Ka(t,Wa))||n.data&&Ka(t,Ga)||n.attr&&Ua.includes(t))&&(r[t]=e[t])}),r}var Ja=e=>+setTimeout(e,16),Ya=e=>clearTimeout(e);typeof window<`u`&&`requestAnimationFrame`in window&&(Ja=e=>window.requestAnimationFrame(e),Ya=e=>window.cancelAnimationFrame(e));var Xa=0,Za=new Map;function Qa(e){Za.delete(e)}var $a=(e,t=1)=>{Xa+=1;let n=Xa;function r(t){if(t===0)Qa(n),e();else{let e=Ja(()=>{r(t-1)});Za.set(n,e)}}return r(t),n};$a.cancel=e=>{let t=Za.get(e);return Qa(e),Ya(t)},process.env.NODE_ENV!==`production`&&($a.ids=()=>Za);function eo(e,t={}){let n=[];return U.Children.forEach(e,e=>{e==null&&!t.keepEmpty||(Array.isArray(e)?n=n.concat(eo(e)):na(e)&&e.props?n=n.concat(eo(e.props.children,t)):n.push(e))}),n}function to(...e){let t={};for(let n of e)if(n)for(let e of Object.keys(n))n[e]!==void 0&&(t[e]=n[e]);return t}function no(e,t){let n=e;for(let e=0;e<t.length;e+=1){if(n==null)return;n=n[t[e]]}return n}function ro(e,t,n,r){if(!t.length)return n;let[i,...a]=t,o;return o=!e&&typeof i==`number`?[]:Array.isArray(e)?[...e]:{...e},r&&n===void 0&&a.length===1?delete o[i][a[0]]:o[i]=ro(o[i],a,n,r),o}function io(e,t,n,r=!1){return t.length&&r&&n===void 0&&!no(e,t.slice(0,-1))?e:ro(e,t,n,r)}function ao(e){return typeof e==`object`&&!!e&&Object.getPrototypeOf(e)===Object.prototype}function oo(e){return Array.isArray(e)?[]:{}}var so=typeof Reflect>`u`?Object.keys:Reflect.ownKeys;function co(e,t={}){let{prepareArray:n}=t,r=n||(()=>[]),i=oo(e[0]);return e.forEach(e=>{function t(n,a){let o=new Set(a),s=no(e,n),c=Array.isArray(s);if(c||ao(s)){if(!o.has(s)){o.add(s);let e=no(i,n);c?i=io(i,n,r(e,s)):(!e||typeof e!=`object`)&&(i=io(i,n,oo(s))),so(s).forEach(e=>{Object.getOwnPropertyDescriptor(s,e).enumerable&&t([...n,e],o)})}}else i=io(i,n,s)}t([])}),i}function lo(...e){return co(e)}function uo(){}var{resetWarned:fo}=Ba,po=null;function mo(){po=null,fo()}var ho=uo;process.env.NODE_ENV!==`production`&&(ho=(e,t,n)=>{Ba(e,`[antd: ${t}] ${n}`),process.env.NODE_ENV===`test`&&mo()});var go=ho,_o=U.createContext({}),vo=process.env.NODE_ENV===`production`?()=>{let e=()=>{};return e.deprecated=uo,e}:e=>{let{strict:t}=U.useContext(_o),n=(n,r,i)=>{if(!n)if(t===!1&&r===`deprecated`){let t=po;po||={},po[e]=po[e]||[],po[e].includes(i||``)||po[e].push(i||``),t||console.warn(`[antd] There exists deprecated usage in your code:`,po)}else process.env.NODE_ENV!==`production`&&go(n,e,i)};return n.deprecated=(e,t,r,i=``)=>{n(e,`deprecated`,`\`${t}\` is deprecated. Please use \`${r}\` instead.${i?` ${i}`:``}`)},n},yo=U.createContext(null);function bo({children:e,onBatchResize:t}){let n=U.useRef(0),r=U.useRef([]),i=U.useContext(yo),a=U.useCallback((e,a,o)=>{n.current+=1;let s=n.current;r.current.push({size:e,element:a,data:o}),Promise.resolve().then(()=>{s===n.current&&(t?.(r.current),r.current=[])}),i?.(e,a,o)},[t,i]);return U.createElement(yo.Provider,{value:a},e)}var xo=new Map;function So(e){e.forEach(e=>{let{target:t}=e;xo.get(t)?.forEach(e=>e(t))})}var Co;function wo(){return Co||=new ResizeObserver(So),Co}process.env.NODE_ENV,process.env.NODE_ENV;function To(e,t){xo.has(e)||(xo.set(e,new Set),wo().observe(e)),xo.get(e).add(t)}function Eo(e,t){xo.has(e)&&(xo.get(e).delete(t),xo.get(e).size||(wo().unobserve(e),xo.delete(e)))}function Do(e,t,n,r){let i=U.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),a=Ri(e=>{let{width:t,height:a}=e.getBoundingClientRect(),{offsetWidth:o,offsetHeight:s}=e,c=Math.floor(t),l=Math.floor(a);if(i.current.width!==c||i.current.height!==l||i.current.offsetWidth!==o||i.current.offsetHeight!==s){let u={width:c,height:l,offsetWidth:o,offsetHeight:s};i.current=u;let d=o===Math.round(t)?t:o,f=s===Math.round(a)?a:s,p={...u,offsetWidth:d,offsetHeight:f};r?.(p,e),Promise.resolve().then(()=>{n?.(p,e)})}}),o=typeof t==`function`,s=U.useRef(0);U.useEffect(()=>{let n=o?t():t;return n&&e?To(n,a):e&&o&&(s.current+=1),()=>{n&&Eo(n,a)}},[e,o?s.current:t])}function Oo(e,t){let{children:n,disabled:r,onResize:i,data:a}=e,o=U.useRef(null),s=U.useContext(yo),c=typeof n==`function`,l=c?n(o):n,u=!c&&U.isValidElement(l)&&W(l),d=sa(u?ua(l):null,o),f=()=>Ea(o.current);return U.useImperativeHandle(t,()=>f()),Do(!r,f,i,(e,t)=>{s?.(e,t,a)}),u?U.cloneElement(l,{ref:d}):l}var ko=U.forwardRef(Oo);process.env.NODE_ENV!==`production`&&(ko.displayName=`SingleObserver`);function Ao(){return Ao=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ao.apply(this,arguments)}var jo=`rc-observer-key`;function Mo(e,t){let{children:n}=e,r=typeof n==`function`?[n]:eo(n);return process.env.NODE_ENV!==`production`&&(r.length>1?Ia(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):r.length===0&&Ia(!1,"`children` of ResizeObserver is empty. Nothing is in observe.")),r.map((n,r)=>{let i=n?.key||`${jo}-${r}`;return U.createElement(ko,Ao({},e,{key:i,ref:r===0?t:void 0}),n)})}var No=U.forwardRef(Mo);process.env.NODE_ENV!==`production`&&(No.displayName=`ResizeObserver`),No.Collection=bo;function Po(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Po(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function G(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Po(e))&&(r&&(r+=` `),r+=t);return r}function Fo(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Io(e){if(Array.isArray(e))return Fo(e)}function Lo(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function Ro(e,t){if(e){if(typeof e==`string`)return Fo(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Fo(e,t):void 0}}function zo(){throw TypeError(`Invalid attempt to spread non-iterable instance.
273
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Bo(e){return Io(e)||Lo(e)||Ro(e)||zo()}var Vo=U.createContext({getPrefixCls:(e,t)=>t||(e?`ant-${e}`:`ant`),iconPrefixCls:`anticon`}),{Consumer:Ho}=Vo,Uo={};function Wo(e){let t=U.useContext(Vo),{getPrefixCls:n,direction:r,getPopupContainer:i,renderEmpty:a}=t;return{classNames:Uo,styles:Uo,...t[e],getPrefixCls:n,direction:r,getPopupContainer:i,renderEmpty:a}}function Go(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Ko=`%`;function qo(e){return e.join(Ko)}var Jo=0,Yo=class{instanceId;constructor(e){this.instanceId=e}cache=new Map;updateTimes=new Map;extracted=new Set;get(e){return this.opGet(qo(e))}opGet(e){return this.cache.get(e)||null}update(e,t){return this.opUpdate(qo(e),t)}opUpdate(e,t){let n=t(this.cache.get(e));n===null?(this.cache.delete(e),this.updateTimes.delete(e)):(this.cache.set(e,n),this.updateTimes.set(e,Jo),Jo+=1)}},Xo={},Zo=`data-token-hash`,Qo=`data-css-hash`,$o=`data-cache-path`,es=`__cssinjs_instance__`;function ts(){let e=Math.random().toString(12).slice(2);if(typeof document<`u`&&document.head&&document.body){let t=document.body.querySelectorAll(`style[data-css-hash]`)||[],{firstChild:n}=document.head;Array.from(t).forEach(t=>{t[es]||=e,t.__cssinjs_instance__===e&&document.head.insertBefore(t,n)});let r={};Array.from(document.querySelectorAll(`style[${Qo}]`)).forEach(t=>{let n=t.getAttribute(Qo);r[n]?t.__cssinjs_instance__===e&&t.parentNode?.removeChild(t):r[n]=!0})}return new Yo(e)}var ns=U.createContext({hashPriority:`low`,cache:ts(),defaultCache:!0,autoPrefix:!1}),rs=e=>{let{children:t,...n}=e,r=U.useContext(ns),i=Ji(()=>{let e={...r};Object.keys(n).forEach(t=>{let r=n[t];n[t]!==void 0&&(e[t]=r)});let{cache:t,transformers:i=[]}=n;return e.cache=e.cache||ts(),e.defaultCache=!t&&r.defaultCache,i.includes(Xo)&&(e.autoPrefix=!0),e},[r,n],(e,t)=>!Ha(e[0],t[0],!0)||!Ha(e[1],t[1],!0));return U.createElement(ns.Provider,{value:i},t)};function is(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var as=class e{static MAX_CACHE_SIZE=20;static MAX_CACHE_OFFSET=5;cache;keys;cacheCallTimes;constructor(){this.cache=new Map,this.keys=[],this.cacheCallTimes=0}size(){return this.keys.length}internalGet(e,t=!1){let n={map:this.cache};return e.forEach(e=>{n=n?n?.map?.get(e):void 0}),n?.value&&t&&(n.value[1]=this.cacheCallTimes++),n?.value}get(e){return this.internalGet(e,!0)?.[0]}has(e){return!!this.internalGet(e)}set(t,n){if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){let[e]=this.keys.reduce((e,t)=>{let[,n]=e;return this.internalGet(t)[1]<n?[t,this.internalGet(t)[1]]:e},[this.keys[0],this.cacheCallTimes]);this.delete(e)}this.keys.push(t)}let r=this.cache;t.forEach((e,i)=>{if(i===t.length-1)r.set(e,{value:[n,this.cacheCallTimes++]});else{let t=r.get(e);t?t.map||=new Map:r.set(e,{map:new Map}),r=r.get(e).map}})}deleteByPath(e,t){let n=e.get(t[0]);if(t.length===1)return n.map?e.set(t[0],{map:n.map}):e.delete(t[0]),n.value?.[0];let r=this.deleteByPath(n.map,t.slice(1));return(!n.map||n.map.size===0)&&!n.value&&e.delete(t[0]),r}delete(e){if(this.has(e))return this.keys=this.keys.filter(t=>!is(t,e)),this.deleteByPath(this.cache,e)}},os=0,ss=class{derivatives;id;constructor(e){this.derivatives=Array.isArray(e)?e:[e],this.id=os,e.length===0&&Ia(e.length>0,`[Ant Design CSS-in-JS] Theme should have at least one derivative function.`),os+=1}getDerivativeToken(e){return this.derivatives.reduce((t,n)=>n(e,t),void 0)}},cs=new as;function ls(e){let t=Array.isArray(e)?e:[e];return cs.has(t)||cs.set(t,new ss(t)),cs.get(t)}var us=new WeakMap,ds={};function fs(e,t){let n=us;for(let e=0;e<t.length;e+=1){let r=t[e];n.has(r)||n.set(r,new WeakMap),n=n.get(r)}return n.has(ds)||n.set(ds,e()),n.get(ds)}var ps=new WeakMap;function ms(e){let t=ps.get(e)||``;return t||(Object.keys(e).forEach(n=>{let r=e[n];t+=n,r instanceof ss?t+=r.id:r&&typeof r==`object`?t+=ms(r):t+=r}),t=Go(t),ps.set(e,t)),t}function hs(e,t){return Go(`${t}_${ms(e)}`)}`random-${Date.now()}-${Math.random()}`.replace(/\./g,``);var gs=zi();function _s(e){return typeof e==`number`?`${e}px`:e}function vs(e){let{hashCls:t,hashPriority:n=`low`}=e||{};if(!t)return``;let r=`.${t}`;return n===`low`?`:where(${r})`:r}var ys=e=>e!=null;function bs(e,t){let n=typeof t==`function`?t():t;return n?{...e,csp:{...e.csp,nonce:n}}:e}var xs=(e,t=``)=>`--${t?`${t}-`:``}${e}`.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,`$1-$2`).replace(/([a-z])([A-Z0-9])/g,`$1-$2`).toLowerCase(),Ss=(e,t,n)=>{let{hashCls:r,hashPriority:i=`low`,scope:a}=n||{};if(!Object.keys(e).length)return``;let o=`${vs({hashCls:r,hashPriority:i})}.${t}`,s=[a].flat().filter(Boolean);return`${s.length?s.map(e=>`${o}.${e}`).join(`, `):o}{${Object.entries(e).map(([e,t])=>`${e}:${t};`).join(``)}}`},Cs=(e,t,n)=>{let{hashCls:r,hashPriority:i=`low`,prefix:a,unitless:o,ignore:s,preserve:c}=n||{},l={},u={};return Object.entries(e).forEach(([e,t])=>{if(c?.[e])u[e]=t;else if((typeof t==`string`||typeof t==`number`)&&!s?.[e]){let n=xs(e,a);l[n]=typeof t==`number`&&!o?.[e]?`${t}px`:String(t),u[e]=`var(${n})`}}),[u,Ss(l,t,{scope:n?.scope,hashCls:r,hashPriority:i})]};function ws(){return!1}var Ts=!1;function Es(){return Ts}var Ds=process.env.NODE_ENV===`production`?ws:Es;if(process.env.NODE_ENV!==`production`&&typeof module<`u`&&module&&module.hot&&typeof window<`u`){let e=typeof globalThis<`u`?globalThis:typeof window<`u`?window:null;if(e&&typeof e.webpackHotUpdate==`function`){let t=e.webpackHotUpdate;e.webpackHotUpdate=(...e)=>(Ts=!0,setTimeout(()=>{Ts=!1},0),t(...e))}}var Os=new Map;function ks(e,t,n,r,i){let{cache:a}=U.useContext(ns),o=qo([e,...t]),s=Ds(),c=e=>{a.opUpdate(o,t=>{let[i=0,a]=t||[void 0,void 0],o=a;process.env.NODE_ENV!==`production`&&a&&s&&(r?.(o,s),o=null);let c=[i,o||n()];return e?e(c):c})};U.useMemo(()=>{c()},[o]);let l=a.opGet(o);process.env.NODE_ENV!==`production`&&!l&&(c(),l=a.opGet(o));let u=l[1];return(0,U.useInsertionEffect)(()=>(c(([e,t])=>[e+1,t]),Os.has(o)||(i?.(u),Os.set(o,!0),Promise.resolve().then(()=>{Os.delete(o)})),()=>{a.opUpdate(o,e=>{let[t=0,n]=e||[];return t-1==0?(r?.(n,!1),Os.delete(o),null):[t-1,n]})}),[o]),u}var As={},js=process.env.NODE_ENV===`production`?`css`:`css-dev-only-do-not-override`,Ms=new Map;function Ns(e){Ms.set(e,(Ms.get(e)||0)+1)}function Ps(e,t){typeof document<`u`&&document.querySelectorAll(`style[${Zo}="${e}"]`).forEach(e=>{e.__cssinjs_instance__===t&&e.parentNode?.removeChild(e)})}var Fs=-1;function Is(e,t){Ms.set(e,(Ms.get(e)||0)-1);let n=new Set;Ms.forEach((e,t)=>{e<=0&&n.add(t)}),Ms.size-n.size>Fs&&n.forEach(e=>{Ps(e,t),Ms.delete(e)})}var Ls=(e,t,n,r)=>{let i={...n.getDerivativeToken(e),...t};return r&&(i=r(i)),i},Rs=`token`;function zs(e,t,n){let{cache:{instanceId:r},container:i,hashPriority:a}=(0,U.useContext)(ns),{salt:o=``,override:s=As,formatToken:c,getComputedToken:l,cssVar:u,nonce:d}=n,f=fs(()=>Object.assign({},...t),t),p=ms(f),m=ms(s),h=ms(u);return ks(Rs,[o,e.id,p,m,h],()=>{let t=l?l(f,s,e):Ls(f,s,e,c),n={...t},r=`${o}_${u.prefix}`,i=Go(r),d=`${js}-${i}`;n._tokenKey=hs(n,r);let[p,m]=Cs(t,u.key,{prefix:u.prefix,ignore:u.ignore,unitless:u.unitless,preserve:u.preserve,hashPriority:a,hashCls:u.hashed?d:void 0});return p._hashId=i,Ns(u.key),[p,d,n,m,u.key]},([,,,,e])=>{Is(e,r)},([,,,e,t])=>{if(!e)return;let n={mark:Qo,prepend:`queue`,attachTo:i,priority:-999};n=bs(n,d);let a=wa(e,Go(`css-var-${t}`),n);a[es]=r,a.setAttribute(Zo,t)})}var Bs={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Vs=`-ms-`,Hs=`-moz-`,Us=`-webkit-`,Ws=`comm`,Gs=`rule`,Ks=`decl`,qs=`@import`,Js=`@namespace`,Ys=`@keyframes`,Xs=`@layer`,Zs=Math.abs,Qs=String.fromCharCode,$s=Object.assign;function ec(e,t){return ac(e,0)^45?(((t<<2^ac(e,0))<<2^ac(e,1))<<2^ac(e,2))<<2^ac(e,3):0}function tc(e){return e.trim()}function nc(e,t){return(e=t.exec(e))?e[0]:e}function rc(e,t,n){return e.replace(t,n)}function ic(e,t){return e.indexOf(t)}function ac(e,t){return e.charCodeAt(t)|0}function oc(e,t,n){return e.slice(t,n)}function sc(e){return e.length}function cc(e){return e.length}function lc(e,t){return t.push(e),e}function uc(e,t){return e.map(t).join(``)}function dc(e,t){return e.filter(function(e){return!nc(e,t)})}var fc=1,pc=1,mc=0,hc=0,gc=0,_c=``;function vc(e,t,n,r,i,a,o,s){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:fc,column:pc,length:o,return:``,siblings:s}}function yc(e,t){return $s(vc(``,null,null,``,null,null,0,e.siblings),e,{length:-e.length},t)}function bc(e){for(;e.root;)e=yc(e.root,{children:[e]});lc(e,e.siblings)}function xc(){return gc}function Sc(){return gc=hc>0?ac(_c,--hc):0,pc--,gc===10&&(pc=1,fc--),gc}function Cc(){return gc=hc<mc?ac(_c,hc++):0,pc++,gc===10&&(pc=1,fc++),gc}function wc(){return ac(_c,hc)}function Tc(){return hc}function Ec(e,t){return oc(_c,e,t)}function Dc(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Oc(e){return fc=pc=1,mc=sc(_c=e),hc=0,[]}function kc(e){return _c=``,e}function Ac(e){return tc(Ec(hc-1,Nc(e===91?e+2:e===40?e+1:e)))}function jc(e){for(;(gc=wc())&&gc<33;)Cc();return Dc(e)>2||Dc(gc)>3?``:` `}function Mc(e,t){for(;--t&&Cc()&&!(gc<48||gc>102||gc>57&&gc<65||gc>70&&gc<97););return Ec(e,Tc()+(t<6&&wc()==32&&Cc()==32))}function Nc(e){for(;Cc();)switch(gc){case e:return hc;case 34:case 39:e!==34&&e!==39&&Nc(gc);break;case 40:e===41&&Nc(e);break;case 92:Cc();break}return hc}function Pc(e,t){for(;Cc()&&e+gc!==57&&!(e+gc===84&&wc()===47););return`/*`+Ec(t,hc-1)+`*`+Qs(e===47?e:Cc())}function Fc(e){for(;!Dc(wc());)Cc();return Ec(e,hc)}function Ic(e){return kc(Lc(``,null,null,null,[``],e=Oc(e),0,[0],e))}function Lc(e,t,n,r,i,a,o,s,c){for(var l=0,u=0,d=o,f=0,p=0,m=0,h=1,g=1,_=1,v=0,y=0,b=``,x=i,S=a,C=r,w=b;g;)switch(m=y,y=Cc()){case 40:m!=108&&ac(w,d-1)==58?(v++,w+=`(`):w+=Ac(y);break;case 41:v--,w+=`)`;break;case 34:case 39:case 91:w+=Ac(y);break;case 9:case 10:case 13:case 32:if(v>0){w+=Qs(y);break}w+=jc(m);break;case 92:w+=Mc(Tc()-1,7);continue;case 47:switch(wc()){case 42:case 47:lc(zc(Pc(Cc(),Tc()),t,n,c),c),(Dc(m||1)==5||Dc(wc()||1)==5)&&sc(w)&&oc(w,-1,void 0)!==` `&&(w+=` `);break;default:w+=`/`}break;case 123*h:s[l++]=sc(w)*_;case 125*h:case 59:case 0:if(v>0&&y){w+=Qs(y);break}switch(y){case 0:case 125:g=0;case 59+u:_==-1&&(w=rc(w,/\f/g,``)),p>0&&(sc(w)-d||h===0)&&lc(p>32?Bc(w+`;`,r,n,d-1,c):Bc(rc(w,` `,``)+`;`,r,n,d-2,c),c);break;case 59:w+=`;`;default:if(lc(C=Rc(w,t,n,l,u,i,s,b,x=[],S=[],d,a),a),y===123)if(u===0)Lc(w,t,C,C,x,a,d,s,S);else{switch(f){case 99:if(ac(w,3)===110)break;case 108:if(ac(w,2)===97)break;default:u=0;case 100:case 109:case 115:}u?Lc(e,C,C,r&&lc(Rc(e,C,C,0,0,i,s,b,i,x=[],d,S),S),i,S,d,s,r?x:S):Lc(w,C,C,C,[``],S,0,s,S)}}l=u=p=0,h=_=1,b=w=``,d=o;break;case 58:d=1+sc(w),p=m;default:if(h<1){if(y==123)--h;else if(y==125&&h++==0&&Sc()==125)continue}switch(w+=Qs(y),y*h){case 38:_=u>0?1:(w+=`\f`,-1);break;case 44:if(v>0)break;s[l++]=(sc(w)-1)*_,_=1;break;case 64:wc()===45&&(w+=Ac(Cc())),f=wc(),u=d=sc(b=w+=Fc(Tc())),y++;break;case 45:m===45&&sc(w)==2&&(h=0)}}return a}function Rc(e,t,n,r,i,a,o,s,c,l,u,d){for(var f=i-1,p=i===0?a:[``],m=cc(p),h=0,g=0,_=0;h<r;++h)for(var v=0,y=oc(e,f+1,f=Zs(g=o[h])),b=e;v<m;++v)(b=tc(g>0?p[v]+` `+y:rc(y,/&\f/g,p[v])))&&(c[_++]=b);return vc(e,t,n,i===0?Gs:s,c,l,u,d)}function zc(e,t,n,r){return vc(e,t,n,Ws,Qs(xc()),oc(e,2,-2),0,r)}function Bc(e,t,n,r,i){return vc(e,t,n,Ks,oc(e,0,r),oc(e,r+1,-1),r,i)}function Vc(e,t,n){switch(ec(e,t)){case 5103:return Us+`print-`+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return Us+e+e;case 4855:return Us+e.replace(`add`,`source-over`).replace(`substract`,`source-out`).replace(`intersect`,`source-in`).replace(`exclude`,`xor`)+e;case 4789:return Hs+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Us+e+Hs+e+Vs+e+e;case 5936:switch(ac(e,t+11)){case 114:return Us+e+Vs+rc(e,/[svh]\w+-[tblr]{2}/,`tb`)+e;case 108:return Us+e+Vs+rc(e,/[svh]\w+-[tblr]{2}/,`tb-rl`)+e;case 45:return Us+e+Vs+rc(e,/[svh]\w+-[tblr]{2}/,`lr`)+e}case 6828:case 4268:case 2903:return Us+e+Vs+e+e;case 6165:return Us+e+Vs+`flex-`+e+e;case 5187:return Us+e+rc(e,/(\w+).+(:[^]+)/,Us+`box-$1$2`+Vs+`flex-$1$2`)+e;case 5443:return Us+e+Vs+`flex-item-`+rc(e,/flex-|-self/g,``)+(nc(e,/flex-|baseline/)?``:Vs+`grid-row-`+rc(e,/flex-|-self/g,``))+e;case 4675:return Us+e+Vs+`flex-line-pack`+rc(e,/align-content|flex-|-self/g,``)+e;case 5548:return Us+e+Vs+rc(e,`shrink`,`negative`)+e;case 5292:return Us+e+Vs+rc(e,`basis`,`preferred-size`)+e;case 6060:return Us+`box-`+rc(e,`-grow`,``)+Us+e+Vs+rc(e,`grow`,`positive`)+e;case 4554:return Us+rc(e,/([^-])(transform)/g,`$1`+Us+`$2`)+e;case 6187:return rc(rc(rc(e,/(zoom-|grab)/,Us+`$1`),/(image-set)/,Us+`$1`),e,``)+e;case 5495:case 3959:return rc(e,/(image-set\([^]*)/,Us+"$1$`$1");case 4968:return rc(rc(e,/(.+:)(flex-)?(.*)/,Us+`box-pack:$3`+Vs+`flex-pack:$3`),/space-between/,`justify`)+Us+e+e;case 4200:if(!nc(e,/flex-|baseline/))return Vs+`grid-column-align`+oc(e,t)+e;break;case 2592:case 3360:return Vs+rc(e,`template-`,``)+e;case 4384:case 3616:return n&&n.some(function(e,n){return t=n,nc(e.props,/grid-\w+-end/)})?~ic(e+(n=n[t].value),`span`)?e:Vs+rc(e,`-start`,``)+e+Vs+`grid-row-span:`+(~ic(n,`span`)?nc(n,/\d+/):nc(n,/\d+/)-+nc(e,/\d+/))+`;`:Vs+rc(e,`-start`,``)+e;case 4896:case 4128:return n&&n.some(function(e){return nc(e.props,/grid-\w+-start/)})?e:Vs+rc(rc(e,`-end`,`-span`),`span `,``)+e;case 4095:case 3583:case 4068:case 2532:return rc(e,/(.+)-inline(.+)/,Us+`$1$2`)+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(sc(e)-1-t>6)switch(ac(e,t+1)){case 109:if(ac(e,t+4)!==45)break;case 102:return rc(e,/(.+:)(.+)-([^]+)/,`$1`+Us+`$2-$3$1`+Hs+(ac(e,t+3)==108?`$3`:`$2-$3`))+e;case 115:return~ic(e,`stretch`)?Vc(rc(e,`stretch`,`fill-available`),t,n)+e:e}break;case 5152:case 5920:return rc(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(t,n,r,i,a,o,s){return Vs+n+`:`+r+s+(i?Vs+n+`-span:`+(a?o:o-+r)+s:``)+e});case 4949:if(ac(e,t+6)===121)return rc(e,`:`,`:`+Us)+e;break;case 6444:switch(ac(e,ac(e,14)===45?18:11)){case 120:return rc(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,`$1`+Us+(ac(e,14)===45?`inline-`:``)+`box$3$1`+Us+`$2$3$1`+Vs+`$2box$3`)+e;case 100:return rc(e,`:`,`:`+Vs)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return rc(e,`scroll-`,`scroll-snap-`)+e}return e}function Hc(e,t){for(var n=``,r=0;r<e.length;r++)n+=t(e[r],r,e,t)||``;return n}function Uc(e,t,n,r){switch(e.type){case Xs:if(e.children.length)break;case qs:case Js:case Ks:return e.return=e.return||e.value;case Ws:return``;case Ys:return e.return=e.value+`{`+Hc(e.children,r)+`}`;case Gs:if(!sc(e.value=e.props.join(`,`)))return``}return sc(n=Hc(e.children,r))?e.return=e.value+`{`+n+`}`:``}function Wc(e){var t=cc(e);return function(n,r,i,a){for(var o=``,s=0;s<t;s++)o+=e[s](n,r,i,a)||``;return o}}function Gc(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Ks:e.return=Vc(e.value,e.length,n);return;case Ys:return Hc([yc(e,{value:rc(e.value,`@`,`@`+Us)})],r);case Gs:if(e.length)return uc(n=e.props,function(t){switch(nc(t,r=/(::plac\w+|:read-\w+)/)){case`:read-only`:case`:read-write`:bc(yc(e,{props:[rc(t,/:(read-\w+)/,`:`+Hs+`$1`)]})),bc(yc(e,{props:[t]})),$s(e,{props:dc(n,r)});break;case`::placeholder`:bc(yc(e,{props:[rc(t,/:(plac\w+)/,`:`+Us+`input-$1`)]})),bc(yc(e,{props:[rc(t,/:(plac\w+)/,`:`+Hs+`$1`)]})),bc(yc(e,{props:[rc(t,/:(plac\w+)/,Vs+`input-$1`)]})),bc(yc(e,{props:[t]})),$s(e,{props:dc(n,r)});break}return``})}}function Kc(e,t){let{path:n,parentSelectors:r}=t;Ba(!1,`[Ant Design CSS-in-JS] ${n?`Error in ${n}: `:``}${e}${r.length?` Selector: ${r.join(` | `)}`:``}`)}var qc=(e,t,n)=>{e===`content`&&(typeof t!=`string`||[`normal`,`none`,`initial`,`inherit`,`unset`].indexOf(t)===-1&&!/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/.test(t)&&!t.startsWith(`var(`)&&(t.charAt(0)!==t.charAt(t.length-1)||t.charAt(0)!==`"`&&t.charAt(0)!==`'`))&&Kc(`You seem to be using a value for 'content' without quotes, try replacing it with \`content: '"${t}"'\`.`,n)},Jc=(e,t,n)=>{e===`animation`&&n.hashId&&t!==`none`&&Kc(`You seem to be using hashed animation '${t}', in which case 'animationName' with Keyframe as value is recommended.`,n)},Yc=`data-ant-cssinjs-cache-path`,Xc=`_FILE_STYLE__`,Zc,Qc=!0;function $c(){if(!Zc&&(Zc={},zi())){let e=document.createElement(`div`);e.className=Yc,e.style.position=`fixed`,e.style.visibility=`hidden`,e.style.top=`-9999px`,document.body.appendChild(e);let t=getComputedStyle(e).content||``;t=t.replace(/^"/,``).replace(/"$/,``),t.split(`;`).forEach(e=>{let[t,n]=e.split(`:`);Zc[t]=n});let n=document.querySelector(`style[${Yc}]`);n&&(Qc=!1,n.parentNode?.removeChild(n)),document.body.removeChild(e)}}function el(e){return $c(),!!Zc[e]}function tl(e){let t=Zc[e],n=null;if(t&&zi())if(Qc)n=Xc;else{let t=document.querySelector(`style[${Qo}="${Zc[e]}"]`);t?n=t.innerHTML:delete Zc[e]}return[n,t]}var nl=`_skip_check_`,rl=`_multi_value_`;function il(e,t){return(t?Hc(Ic(e),Wc([Gc,Uc])):Hc(Ic(e),Uc)).replace(/\{%%%\:[^;];}/g,`;`)}function al(e){return typeof e==`object`&&e&&(nl in e||rl in e)}function ol(e,t,n=`high`){if(!t)return e;let r=vs({hashCls:t,hashPriority:n});return e.split(`,`).map(e=>{let t=e.trim().split(/\s+/),n=t[0]||``,i=n.match(/^\w+/)?.[0]||``;return n=`${i}${r}${n.slice(i.length)}`,[n,...t.slice(1)].join(` `)}).join(`,`)}var sl=(e,t={},{root:n,injectHash:r,parentSelectors:i}={root:!0,parentSelectors:[]})=>{let{hashId:a,layer:o,path:s,hashPriority:c,transformers:l=[],linters:u=[]}=t,d=``,f={};function p(e){let n=e.getName(a);if(!f[n]){let[r]=sl(e.style,t,{root:!1,parentSelectors:i});f[n]=`@keyframes ${e.getName(a)}${r}`}}function m(e,t=[]){return e.forEach(e=>{Array.isArray(e)?m(e,t):e&&t.push(e)}),t}return m(Array.isArray(e)?e:[e]).forEach(e=>{let o=typeof e==`string`&&!n?{}:e;if(typeof o==`string`)d+=`${o}\n`;else if(o._keyframe)p(o);else{let e=l.reduce((e,t)=>t?.visit?.(e)||e,o);Object.keys(e).forEach(o=>{let l=e[o];if(typeof l==`object`&&l&&(o!==`animationName`||!l._keyframe)&&!al(l)){let e=!1,s=o.trim(),u=!1;(n||r)&&a?s.startsWith(`@`)?e=!0:s=ol(s===`&`?``:o,a,c):n&&!a&&(s===`&`||s===``)&&(s=``,u=!0);let[p,m]=sl(l,t,{root:u,injectHash:e,parentSelectors:[...i,s]});f={...f,...m},d+=`${s}${p}`}else{function m(e,t){process.env.NODE_ENV!==`production`&&(typeof l!=`object`||!l?.[nl])&&[qc,Jc,...u].forEach(n=>n(e,t,{path:s,hashId:a,parentSelectors:i}));let n=e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`),r=t;!Bs[e]&&typeof r==`number`&&r!==0&&(r=`${r}px`),e===`animationName`&&t?._keyframe&&(p(t),r=t.getName(a)),d+=`${n}:${r};`}let e=l?.value??l;typeof l==`object`&&l?.[rl]&&Array.isArray(e)?e.forEach(e=>{m(o,e)}):ys(e)&&m(o,e)}})}}),n?o&&(d&&=`@layer ${o.name} {${d}}`,o.dependencies&&(f[`@layer ${o.name}`]=o.dependencies.map(e=>`@layer ${e}, ${o.name};`).join(`
274
+ `))):d=`{${d}}`,[d,f]};function cl(e,t){return Go(`${e.join(`%`)}${t}`)}var ll=`style`;function ul(e,t){let{path:n,hashId:r,layer:i,nonce:a,clientOnly:o,order:s=0}=e,{mock:c,hashPriority:l,container:u,transformers:d,linters:f,cache:p,layer:m,autoPrefix:h}=U.useContext(ns),g=[r||``];m&&g.push(`layer`),g.push(...n);let _=gs;process.env.NODE_ENV!==`production`&&c!==void 0&&(_=c===`client`),ks(ll,g,()=>{let e=g.join(`|`);if(el(e)){let[t,n]=tl(e);if(t)return[t,n,{},o,s]}let[a,c]=sl(t(),{hashId:r,hashPriority:l,layer:m?i:void 0,path:n.join(`-`),transformers:d,linters:f}),u=il(a,h||!1);return[u,cl(g,u),c,o,s]},(e,t)=>{let[,n]=e;t&&gs&&Sa(n,{mark:Qo,attachTo:u})},e=>{let[t,n,r,,i]=e;if(_&&t!==`_FILE_STYLE__`){let e={mark:Qo,prepend:m?!1:`queue`,attachTo:u,priority:i};e=bs(e,a);let o=[],s=[];Object.keys(r).forEach(e=>{e.startsWith(`@layer`)?o.push(e):s.push(e)}),o.forEach(t=>{wa(il(r[t],h||!1),`_layer-${t}`,{...e,prepend:!0})});let c=wa(t,n,e);c[es]=p.instanceId,process.env.NODE_ENV!==`production`&&c.setAttribute($o,g.join(`|`)),s.forEach(t=>{wa(il(r[t],h||!1),`_effect-${t}`,e)})}})}var dl=`cssVar`,fl=(e,t)=>{let{key:n,prefix:r,unitless:i,ignore:a,token:o,hashId:s,scope:c,nonce:l}=e,{cache:{instanceId:u},container:d,hashPriority:f}=(0,U.useContext)(ns),{_tokenKey:p}=o,m=Array.isArray(c)?c.join(`@@`):c,h=[...e.path,n,m,p];return ks(dl,h,()=>{let[e,o]=Cs(t(),n,{prefix:r,unitless:i,ignore:a,scope:c,hashPriority:f,hashCls:s});return[e,o,cl(h,o),n]},([,,e])=>{gs&&Sa(e,{mark:Qo,attachTo:d})},([,e,t])=>{if(!e)return;let r={mark:Qo,prepend:`queue`,attachTo:d,priority:-999};r=bs(r,l);let i=wa(e,t,r);i[es]=u,i.setAttribute(Zo,n)})},pl=class{name;style;constructor(e,t){this.name=e,this.style=t}getName(e=``){return e?`${e}-${this.name}`:this.name}_keyframe=!0};function ml(e){return e.notSplit=!0,e}ml([`borderTop`,`borderBottom`]),ml([`borderTop`]),ml([`borderBottom`]),ml([`borderLeft`,`borderRight`]),ml([`borderLeft`]),ml([`borderRight`]);function hl(e){"@babel/helpers - typeof";return hl=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},hl(e)}function gl(e){if(Array.isArray(e))return e}function _l(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function vl(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
275
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yl(e,t){return gl(e)||_l(e,t)||Ro(e,t)||vl()}function bl(e,t){if(hl(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(hl(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function xl(e){var t=bl(e,`string`);return hl(t)==`symbol`?t:t+``}function Sl(e,t,n){return(t=xl(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function wl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Cl(Object(n),!0).forEach(function(t){Sl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Tl(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function El(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,xl(r.key),r)}}function Dl(e,t,n){return t&&El(e.prototype,t),n&&El(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function Ol(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function kl(e,t){return kl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},kl(e,t)}function Al(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,`prototype`,{writable:!1}),t&&kl(e,t)}function jl(e){return jl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},jl(e)}function Ml(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ml=function(){return!!e})()}function Nl(e,t){if(t&&(hl(t)==`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return Ol(e)}function Pl(e){var t=Ml();return function(){var n,r=jl(e);if(t){var i=jl(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Nl(this,n)}}var Fl=Dl(function e(){Tl(this,e)}),Il=`CALC_UNIT`,Ll=new RegExp(Il,`g`);function Rl(e){return typeof e==`number`?`${e}${Il}`:e}var zl=function(e){Al(n,e);var t=Pl(n);function n(e,r){var i;Tl(this,n),i=t.call(this),Sl(Ol(i),`result`,``),Sl(Ol(i),`unitlessCssVar`,void 0),Sl(Ol(i),`lowPriority`,void 0);var a=hl(e);return i.unitlessCssVar=r,e instanceof n?i.result=`(${e.result})`:a===`number`?i.result=Rl(e):a===`string`&&(i.result=e),i}return Dl(n,[{key:`add`,value:function(e){return e instanceof n?this.result=`${this.result} + ${e.getResult()}`:(typeof e==`number`||typeof e==`string`)&&(this.result=`${this.result} + ${Rl(e)}`),this.lowPriority=!0,this}},{key:`sub`,value:function(e){return e instanceof n?this.result=`${this.result} - ${e.getResult()}`:(typeof e==`number`||typeof e==`string`)&&(this.result=`${this.result} - ${Rl(e)}`),this.lowPriority=!0,this}},{key:`mul`,value:function(e){return this.lowPriority&&(this.result=`(${this.result})`),e instanceof n?this.result=`${this.result} * ${e.getResult(!0)}`:(typeof e==`number`||typeof e==`string`)&&(this.result=`${this.result} * ${e}`),this.lowPriority=!1,this}},{key:`div`,value:function(e){return this.lowPriority&&(this.result=`(${this.result})`),e instanceof n?this.result=`${this.result} / ${e.getResult(!0)}`:(typeof e==`number`||typeof e==`string`)&&(this.result=`${this.result} / ${e}`),this.lowPriority=!1,this}},{key:`getResult`,value:function(e){return this.lowPriority||e?`(${this.result})`:this.result}},{key:`equal`,value:function(e){var t=this,n=(e||{}).unit,r=!0;return typeof n==`boolean`?r=n:Array.from(this.unitlessCssVar).some(function(e){return t.result.includes(e)})&&(r=!1),this.result=this.result.replace(Ll,r?`px`:``),this.lowPriority===void 0?this.result:`calc(${this.result})`}}]),n}(Fl),Bl=function(e){Al(n,e);var t=Pl(n);function n(e){var r;return Tl(this,n),r=t.call(this),Sl(Ol(r),`result`,0),e instanceof n?r.result=e.result:typeof e==`number`&&(r.result=e),r}return Dl(n,[{key:`add`,value:function(e){return e instanceof n?this.result+=e.result:typeof e==`number`&&(this.result+=e),this}},{key:`sub`,value:function(e){return e instanceof n?this.result-=e.result:typeof e==`number`&&(this.result-=e),this}},{key:`mul`,value:function(e){return e instanceof n?this.result*=e.result:typeof e==`number`&&(this.result*=e),this}},{key:`div`,value:function(e){return e instanceof n?this.result/=e.result:typeof e==`number`&&(this.result/=e),this}},{key:`equal`,value:function(){return this.result}}]),n}(Fl),Vl=function(e,t){var n=e===`css`?zl:Bl;return function(e){return new n(e,t)}},Hl=function(e,t){return`${[t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,`$1-$2`).replace(/([a-z])([A-Z])/g,`$1-$2`)].filter(Boolean).join(`-`)}`};function Ul(e,t,n,r){var i=wl({},t[e]);r!=null&&r.deprecatedTokens&&r.deprecatedTokens.forEach(function(t){var n=yl(t,2),r=n[0],a=n[1];process.env.NODE_ENV!==`production`&&Ba(!(i!=null&&i[r]),`Component Token \`${String(r)}\` of ${String(e)} is deprecated. Please use \`${String(a)}\` instead.`),(i!=null&&i[r]||i!=null&&i[a])&&(i[a]??(i[a]=i?.[r]))});var a=wl(wl({},n),i);return Object.keys(a).forEach(function(e){a[e]===t[e]&&delete a[e]}),a}var Wl=process.env.NODE_ENV!==`production`||typeof CSSINJS_STATISTIC<`u`,Gl=!0;function Kl(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!Wl)return Object.assign.apply(Object,[{}].concat(t));Gl=!1;var r={};return t.forEach(function(e){hl(e)===`object`&&Object.keys(e).forEach(function(t){Object.defineProperty(r,t,{configurable:!0,enumerable:!0,get:function(){return e[t]}})})}),Gl=!0,r}var ql={};function Jl(){}var Yl=function(e){var t,n=e,r=Jl;return Wl&&typeof Proxy<`u`&&(t=new Set,n=new Proxy(e,{get:function(e,n){if(Gl){var r;(r=t)==null||r.add(n)}return e[n]}}),r=function(e,n){ql[e]={global:Array.from(t),component:wl(wl({},ql[e]?.component),n)}}),{token:n,keys:t,flush:r}};function Xl(e,t,n){return typeof n==`function`?n(Kl(t,t[e]??{})):n??{}}function Zl(e){return e===`js`?{max:Math.max,min:Math.min}:{max:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return`max(${t.map(function(e){return _s(e)}).join(`,`)})`},min:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return`min(${t.map(function(e){return _s(e)}).join(`,`)})`}}}var Ql=1e3*60*10,$l=new(function(){function e(){Tl(this,e),Sl(this,`map`,new Map),Sl(this,`objectIDMap`,new WeakMap),Sl(this,`nextID`,0),Sl(this,`lastAccessBeat`,new Map),Sl(this,`accessBeat`,0)}return Dl(e,[{key:`set`,value:function(e,t){this.clear();var n=this.getCompositeKey(e);this.map.set(n,t),this.lastAccessBeat.set(n,Date.now())}},{key:`get`,value:function(e){var t=this.getCompositeKey(e),n=this.map.get(t);return this.lastAccessBeat.set(t,Date.now()),this.accessBeat+=1,n}},{key:`getCompositeKey`,value:function(e){var t=this;return e.map(function(e){return e&&hl(e)===`object`?`obj_${t.getObjectID(e)}`:`${hl(e)}_${e}`}).join(`|`)}},{key:`getObjectID`,value:function(e){if(this.objectIDMap.has(e))return this.objectIDMap.get(e);var t=this.nextID;return this.objectIDMap.set(e,t),this.nextID+=1,t}},{key:`clear`,value:function(){var e=this;if(this.accessBeat>1e4){var t=Date.now();this.lastAccessBeat.forEach(function(n,r){t-n>Ql&&(e.map.delete(r),e.lastAccessBeat.delete(r))}),this.accessBeat=0}}}]),e}());function eu(e,t){return U.useMemo(function(){var n=$l.get(t);if(n)return n;var r=e();return $l.set(t,r),r},t)}var tu=function(){return{}};function nu(e){var t=e.useCSP,n=t===void 0?tu:t,r=e.useToken,i=e.usePrefix,a=e.getResetStyles,o=e.getCommonStyle,s=e.getCompUnitless;function c(e,t,n,r){var i=Array.isArray(e)?e[0]:e;function a(e){return`${String(i)}${e.slice(0,1).toUpperCase()}${e.slice(1)}`}var o=r?.unitless||{},c=wl(wl({},typeof s==`function`?s(e):{}),{},Sl({},a(`zIndexPopup`),!0));Object.keys(o).forEach(function(e){c[a(e)]=o[e]});var d=wl(wl({},r),{},{unitless:c,prefixToken:a}),f=u(e,t,n,d),p=l(i,n,d);return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=f(e,t),i=r?.extraCssVarPrefixCls,a=typeof i==`function`?i({prefixCls:e,rootCls:t}):i;return[n,p(a!=null&&a.length?[t].concat(Bo(a)):t)]}}function l(e,t,i){var a=i.unitless,o=i.prefixToken,s=i.ignore;return function(c){var l=r(),u=l.cssVar,d=l.realToken,f=n();return fl({path:[e],prefix:u.prefix,key:u.key,unitless:a,ignore:s,token:d,scope:c,nonce:function(){return f.nonce}},function(){var n=Xl(e,d,t),r=Ul(e,d,n,{deprecatedTokens:i?.deprecatedTokens});return n&&Object.keys(n).forEach(function(e){r[o(e)]=r[e],delete r[e]}),r}),u?.key}}function u(t,s,c){var l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},u=Array.isArray(t)?t:[t,t],d=yl(u,1)[0],f=u.join(`-`),p=e.layer||{name:`antd`};return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,u=r(),m=u.theme,h=u.realToken,g=u.hashId,_=u.token,v=u.cssVar,y=u.zeroRuntime;if((0,U.useMemo)(function(){return y},[]))return g;var b=i(),x=b.rootPrefixCls,S=b.iconPrefixCls,C=n(),w=`css`,T=eu(function(){var e=new Set;return Object.keys(l.unitless||{}).forEach(function(t){e.add(xs(t,v.prefix)),e.add(xs(t,Hl(d,v.prefix)))}),Vl(w,e)},[w,d,v?.prefix]),E=Zl(w),D=E.max,O=E.min,k={theme:m,token:_,hashId:g,nonce:function(){return C.nonce},clientOnly:l.clientOnly,layer:p,order:l.order||-999};return typeof a==`function`&&ul(wl(wl({},k),{},{clientOnly:!1,path:[`Shared`,x]}),function(){return a(_,{prefix:{rootPrefixCls:x,iconPrefixCls:S},csp:C})}),ul(wl(wl({},k),{},{path:[f,e,S]}),function(){if(l.injectStyle===!1)return[];var n=Yl(_),r=n.token,i=n.flush,a=Xl(d,h,c),u=`.${e}`,f=Ul(d,h,a,{deprecatedTokens:l.deprecatedTokens});a&&hl(a)===`object`&&Object.keys(a).forEach(function(e){a[e]=`var(${xs(e,Hl(d,v.prefix))})`});var p=Kl(r,{componentCls:u,prefixCls:e,iconCls:`.${S}`,antCls:`.${x}`,calc:T,max:D,min:O},a),m=s(p,{hashId:g,prefixCls:e,rootPrefixCls:x,iconPrefixCls:S});i(d,f);var y=typeof o==`function`?o(p,e,t,l.resetFont):null;return[l.resetStyle===!1?null:y,m]}),g}}function d(e,t,n){var r=u(e,t,n,wl({resetStyle:!1,order:-998},arguments.length>3&&arguments[3]!==void 0?arguments[3]:{})),i=function(e){var t=e.prefixCls,n=e.rootCls;return r(t,n===void 0?t:n),null};return process.env.NODE_ENV!==`production`&&(i.displayName=`SubStyle_${String(Array.isArray(e)?e.join(`.`):e)}`),i}return{genStyleHooks:c,genSubStyleComponent:d,genComponentStyleHook:u}}var ru=[`blue`,`purple`,`cyan`,`green`,`magenta`,`pink`,`red`,`orange`,`yellow`,`volcano`,`geekblue`,`lime`,`gold`];function iu(e){return(e+8)/e}function au(e){let t=Array.from({length:10}).map((t,n)=>{let r=n-1,i=e*Math.E**(r/5);return Math.floor((n>1?Math.floor(i):Math.ceil(i))/2)*2});return t[1]=e,t.map(e=>({size:e,lineHeight:iu(e)}))}var ou=`6.4.2`,su={blue:`#1677FF`,purple:`#722ED1`,cyan:`#13C2C2`,green:`#52C41A`,magenta:`#EB2F96`,pink:`#EB2F96`,red:`#F5222D`,orange:`#FA8C16`,yellow:`#FADB14`,volcano:`#FA541C`,geekblue:`#2F54EB`,gold:`#FAAD14`,lime:`#A0D911`},cu={...su,colorPrimary:`#1677ff`,colorSuccess:`#52c41a`,colorWarning:`#faad14`,colorError:`#ff4d4f`,colorInfo:`#1677ff`,colorLink:``,colorTextBase:``,colorBgBase:``,fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
276
+ 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
277
+ 'Noto Color Emoji'`,fontFamilyCode:`'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace`,fontSize:14,lineWidth:1,lineType:`solid`,motionUnit:.1,motionBase:0,motionEaseOutCirc:`cubic-bezier(0.08, 0.82, 0.17, 1)`,motionEaseInOutCirc:`cubic-bezier(0.78, 0.14, 0.15, 0.86)`,motionEaseOut:`cubic-bezier(0.215, 0.61, 0.355, 1)`,motionEaseInOut:`cubic-bezier(0.645, 0.045, 0.355, 1)`,motionEaseOutBack:`cubic-bezier(0.12, 0.4, 0.29, 1.46)`,motionEaseInBack:`cubic-bezier(0.71, -0.46, 0.88, 0.6)`,motionEaseInQuint:`cubic-bezier(0.755, 0.05, 0.855, 0.06)`,motionEaseOutQuint:`cubic-bezier(0.23, 1, 0.32, 1)`,borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0},lu={aliceblue:`9ehhb`,antiquewhite:`9sgk7`,aqua:`1ekf`,aquamarine:`4zsno`,azure:`9eiv3`,beige:`9lhp8`,bisque:`9zg04`,black:`0`,blanchedalmond:`9zhe5`,blue:`73`,blueviolet:`5e31e`,brown:`6g016`,burlywood:`8ouiv`,cadetblue:`3qba8`,chartreuse:`4zshs`,chocolate:`87k0u`,coral:`9yvyo`,cornflowerblue:`3xael`,cornsilk:`9zjz0`,crimson:`8l4xo`,cyan:`1ekf`,darkblue:`3v`,darkcyan:`rkb`,darkgoldenrod:`776yz`,darkgray:`6mbhl`,darkgreen:`jr4`,darkgrey:`6mbhl`,darkkhaki:`7ehkb`,darkmagenta:`5f91n`,darkolivegreen:`3bzfz`,darkorange:`9yygw`,darkorchid:`5z6x8`,darkred:`5f8xs`,darksalmon:`9441m`,darkseagreen:`5lwgf`,darkslateblue:`2th1n`,darkslategray:`1ugcv`,darkslategrey:`1ugcv`,darkturquoise:`14up`,darkviolet:`5rw7n`,deeppink:`9yavn`,deepskyblue:`11xb`,dimgray:`442g9`,dimgrey:`442g9`,dodgerblue:`16xof`,firebrick:`6y7tu`,floralwhite:`9zkds`,forestgreen:`1cisi`,fuchsia:`9y70f`,gainsboro:`8m8kc`,ghostwhite:`9pq0v`,goldenrod:`8j4f4`,gold:`9zda8`,gray:`50i2o`,green:`pa8`,greenyellow:`6senj`,grey:`50i2o`,honeydew:`9eiuo`,hotpink:`9yrp0`,indianred:`80gnw`,indigo:`2xcoy`,ivory:`9zldc`,khaki:`9edu4`,lavenderblush:`9ziet`,lavender:`90c8q`,lawngreen:`4vk74`,lemonchiffon:`9zkct`,lightblue:`6s73a`,lightcoral:`9dtog`,lightcyan:`8s1rz`,lightgoldenrodyellow:`9sjiq`,lightgray:`89jo3`,lightgreen:`5nkwg`,lightgrey:`89jo3`,lightpink:`9z6wx`,lightsalmon:`9z2ii`,lightseagreen:`19xgq`,lightskyblue:`5arju`,lightslategray:`4nwk9`,lightslategrey:`4nwk9`,lightsteelblue:`6wau6`,lightyellow:`9zlcw`,lime:`1edc`,limegreen:`1zcxe`,linen:`9shk6`,magenta:`9y70f`,maroon:`4zsow`,mediumaquamarine:`40eju`,mediumblue:`5p`,mediumorchid:`79qkz`,mediumpurple:`5r3rv`,mediumseagreen:`2d9ip`,mediumslateblue:`4tcku`,mediumspringgreen:`1di2`,mediumturquoise:`2uabw`,mediumvioletred:`7rn9h`,midnightblue:`z980`,mintcream:`9ljp6`,mistyrose:`9zg0x`,moccasin:`9zfzp`,navajowhite:`9zest`,navy:`3k`,oldlace:`9wq92`,olive:`50hz4`,olivedrab:`472ub`,orange:`9z3eo`,orangered:`9ykg0`,orchid:`8iu3a`,palegoldenrod:`9bl4a`,palegreen:`5yw0o`,paleturquoise:`6v4ku`,palevioletred:`8k8lv`,papayawhip:`9zi6t`,peachpuff:`9ze0p`,peru:`80oqn`,pink:`9z8wb`,plum:`8nba5`,powderblue:`6wgdi`,purple:`4zssg`,rebeccapurple:`3zk49`,red:`9y6tc`,rosybrown:`7cv4f`,royalblue:`2jvtt`,saddlebrown:`5fmkz`,salmon:`9rvci`,sandybrown:`9jn1c`,seagreen:`1tdnb`,seashell:`9zje6`,sienna:`6973h`,silver:`7ir40`,skyblue:`5arjf`,slateblue:`45e4t`,slategray:`4e100`,slategrey:`4e100`,snow:`9zke2`,springgreen:`1egv`,steelblue:`2r1kk`,tan:`87yx8`,teal:`pds`,thistle:`8ggk8`,tomato:`9yqfb`,turquoise:`2j4r4`,violet:`9b10u`,wheat:`9ld4j`,white:`9zldr`,whitesmoke:`9lhpx`,yellow:`9zl6o`,yellowgreen:`61fzm`},uu=Math.round;function du(e,t){let n=e.replace(/^[^(]*\((.*)/,`$1`).replace(/\).*/,``).match(/\d*\.?\d+%?/g)||[],r=n.map(e=>parseFloat(e));for(let e=0;e<3;e+=1)r[e]=t(r[e]||0,n[e]||``,e);return n[3]?r[3]=n[3].includes(`%`)?r[3]/100:r[3]:r[3]=1,r}var fu=(e,t,n)=>n===0?e:e/100;function pu(e,t){let n=t||255;return e>n?n:e<0?0:e}var mu=class e{isValid=!0;r=0;g=0;b=0;a=1;_h;_hsl_s;_hsv_s;_l;_v;_max;_min;_brightness;constructor(t){function n(e){return e[0]in t&&e[1]in t&&e[2]in t}if(t)if(typeof t==`string`){let e=t.trim();function n(t){return e.startsWith(t)}if(/^#?[A-F\d]{3,8}$/i.test(e))this.fromHexString(e);else if(n(`rgb`))this.fromRgbString(e);else if(n(`hsl`))this.fromHslString(e);else if(n(`hsv`)||n(`hsb`))this.fromHsvString(e);else{let t=lu[e.toLowerCase()];t&&this.fromHexString(parseInt(t,36).toString(16).padStart(6,`0`))}}else if(t instanceof e)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._hsl_s=t._hsl_s,this._hsv_s=t._hsv_s,this._l=t._l,this._v=t._v;else if(n(`rgb`))this.r=pu(t.r),this.g=pu(t.g),this.b=pu(t.b),this.a=typeof t.a==`number`?pu(t.a,1):1;else if(n(`hsl`))this.fromHsl(t);else if(n(`hsv`))this.fromHsv(t);else throw Error(`@ant-design/fast-color: unsupported input `+JSON.stringify(t))}setR(e){return this._sc(`r`,e)}setG(e){return this._sc(`g`,e)}setB(e){return this._sc(`b`,e)}setA(e){return this._sc(`a`,e,1)}setHue(e){let t=this.toHsv();return t.h=e,this._c(t)}getLuminance(){function e(e){let t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4}let t=e(this.r),n=e(this.g),r=e(this.b);return .2126*t+.7152*n+.0722*r}getHue(){if(this._h===void 0){let e=this.getMax()-this.getMin();e===0?this._h=0:this._h=uu(60*(this.r===this.getMax()?(this.g-this.b)/e+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/e+2:(this.r-this.g)/e+4))}return this._h}getSaturation(){return this.getHSVSaturation()}getHSVSaturation(){if(this._hsv_s===void 0){let e=this.getMax()-this.getMin();e===0?this._hsv_s=0:this._hsv_s=e/this.getMax()}return this._hsv_s}getHSLSaturation(){if(this._hsl_s===void 0){let e=this.getMax()-this.getMin();if(e===0)this._hsl_s=0;else{let t=this.getLightness();this._hsl_s=e/255/(1-Math.abs(2*t-1))}}return this._hsl_s}getLightness(){return this._l===void 0&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return this._v===void 0&&(this._v=this.getMax()/255),this._v}getBrightness(){return this._brightness===void 0&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(e=10){let t=this.getHue(),n=this.getSaturation(),r=this.getLightness()-e/100;return r<0&&(r=0),this._c({h:t,s:n,l:r,a:this.a})}lighten(e=10){let t=this.getHue(),n=this.getSaturation(),r=this.getLightness()+e/100;return r>1&&(r=1),this._c({h:t,s:n,l:r,a:this.a})}mix(e,t=50){let n=this._c(e),r=t/100,i=e=>(n[e]-this[e])*r+this[e],a={r:uu(i(`r`)),g:uu(i(`g`)),b:uu(i(`b`)),a:uu(i(`a`)*100)/100};return this._c(a)}tint(e=10){return this.mix({r:255,g:255,b:255,a:1},e)}shade(e=10){return this.mix({r:0,g:0,b:0,a:1},e)}onBackground(e){let t=this._c(e),n=this.a+t.a*(1-this.a),r=e=>uu((this[e]*this.a+t[e]*t.a*(1-this.a))/n);return this._c({r:r(`r`),g:r(`g`),b:r(`b`),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e=`#`,t=(this.r||0).toString(16);e+=t.length===2?t:`0`+t;let n=(this.g||0).toString(16);e+=n.length===2?n:`0`+n;let r=(this.b||0).toString(16);if(e+=r.length===2?r:`0`+r,typeof this.a==`number`&&this.a>=0&&this.a<1){let t=uu(this.a*255).toString(16);e+=t.length===2?t:`0`+t}return e}toHsl(){return{h:this.getHue(),s:this.getHSLSaturation(),l:this.getLightness(),a:this.a}}toHslString(){let e=this.getHue(),t=uu(this.getHSLSaturation()*100),n=uu(this.getLightness()*100);return this.a===1?`hsl(${e},${t}%,${n}%)`:`hsla(${e},${t}%,${n}%,${this.a})`}toHsv(){return{h:this.getHue(),s:this.getHSVSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a===1?`rgb(${this.r},${this.g},${this.b})`:`rgba(${this.r},${this.g},${this.b},${this.a})`}toString(){return this.toRgbString()}_sc(e,t,n){let r=this.clone();return r[e]=pu(t,n),r}_c(e){return new this.constructor(e)}getMax(){return this._max===void 0&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return this._min===void 0&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){let t=e.replace(`#`,``);function n(e,n){return parseInt(t[e]+t[n||e],16)}t.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=t[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=t[6]?n(6,7)/255:1)}fromHsl({h:e,s:t,l:n,a:r}){let i=(e%360+360)%360;if(this._h=i,this._hsl_s=t,this._l=n,this.a=typeof r==`number`?r:1,t<=0){let e=uu(n*255);this.r=e,this.g=e,this.b=e;return}let a=0,o=0,s=0,c=i/60,l=(1-Math.abs(2*n-1))*t,u=l*(1-Math.abs(c%2-1));c>=0&&c<1?(a=l,o=u):c>=1&&c<2?(a=u,o=l):c>=2&&c<3?(o=l,s=u):c>=3&&c<4?(o=u,s=l):c>=4&&c<5?(a=u,s=l):c>=5&&c<6&&(a=l,s=u);let d=n-l/2;this.r=uu((a+d)*255),this.g=uu((o+d)*255),this.b=uu((s+d)*255)}fromHsv({h:e,s:t,v:n,a:r}){let i=(e%360+360)%360;this._h=i,this._hsv_s=t,this._v=n,this.a=typeof r==`number`?r:1;let a=uu(n*255);if(this.r=a,this.g=a,this.b=a,t<=0)return;let o=i/60,s=Math.floor(o),c=o-s,l=uu(n*(1-t)*255),u=uu(n*(1-t*c)*255),d=uu(n*(1-t*(1-c))*255);switch(s){case 0:this.g=d,this.b=l;break;case 1:this.r=u,this.b=l;break;case 2:this.r=l,this.b=d;break;case 3:this.r=l,this.g=u;break;case 4:this.r=d,this.g=l;break;default:this.g=l,this.b=u;break}}fromHsvString(e){let t=du(e,fu);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(e){let t=du(e,fu);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(e){let t=du(e,(e,t)=>t.includes(`%`)?uu(e/100*255):e);this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}},hu=2,gu=.16,_u=.05,vu=.05,yu=.15,bu=5,xu=4,Su=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function Cu(e,t,n){let r;return r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-hu*t:Math.round(e.h)+hu*t:n?Math.round(e.h)+hu*t:Math.round(e.h)-hu*t,r<0?r+=360:r>=360&&(r-=360),r}function wu(e,t,n){if(e.h===0&&e.s===0)return e.s;let r;return r=n?e.s-gu*t:t===xu?e.s+gu:e.s+_u*t,r>1&&(r=1),n&&t===bu&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function Tu(e,t,n){let r;return r=n?e.v+vu*t:e.v-yu*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function Eu(e,t={}){let n=[],r=new mu(e),i=r.toHsv();for(let e=bu;e>0;--e){let t=new mu({h:Cu(i,e,!0),s:wu(i,e,!0),v:Tu(i,e,!0)});n.push(t)}n.push(r);for(let e=1;e<=xu;e+=1){let t=new mu({h:Cu(i,e),s:wu(i,e),v:Tu(i,e)});n.push(t)}return t.theme===`dark`?Su.map(({index:e,amount:r})=>new mu(t.backgroundColor||`#141414`).mix(n[e],r).toHexString()):n.map(e=>e.toHexString())}var Du={red:`#F5222D`,volcano:`#FA541C`,orange:`#FA8C16`,gold:`#FAAD14`,yellow:`#FADB14`,lime:`#A0D911`,green:`#52C41A`,cyan:`#13C2C2`,blue:`#1677FF`,geekblue:`#2F54EB`,purple:`#722ED1`,magenta:`#EB2F96`,grey:`#666666`},Ou=[`#fff1f0`,`#ffccc7`,`#ffa39e`,`#ff7875`,`#ff4d4f`,`#f5222d`,`#cf1322`,`#a8071a`,`#820014`,`#5c0011`];Ou.primary=Ou[5];var ku=[`#fff2e8`,`#ffd8bf`,`#ffbb96`,`#ff9c6e`,`#ff7a45`,`#fa541c`,`#d4380d`,`#ad2102`,`#871400`,`#610b00`];ku.primary=ku[5];var Au=[`#fff7e6`,`#ffe7ba`,`#ffd591`,`#ffc069`,`#ffa940`,`#fa8c16`,`#d46b08`,`#ad4e00`,`#873800`,`#612500`];Au.primary=Au[5];var ju=[`#fffbe6`,`#fff1b8`,`#ffe58f`,`#ffd666`,`#ffc53d`,`#faad14`,`#d48806`,`#ad6800`,`#874d00`,`#613400`];ju.primary=ju[5];var Mu=[`#feffe6`,`#ffffb8`,`#fffb8f`,`#fff566`,`#ffec3d`,`#fadb14`,`#d4b106`,`#ad8b00`,`#876800`,`#614700`];Mu.primary=Mu[5];var Nu=[`#fcffe6`,`#f4ffb8`,`#eaff8f`,`#d3f261`,`#bae637`,`#a0d911`,`#7cb305`,`#5b8c00`,`#3f6600`,`#254000`];Nu.primary=Nu[5];var Pu=[`#f6ffed`,`#d9f7be`,`#b7eb8f`,`#95de64`,`#73d13d`,`#52c41a`,`#389e0d`,`#237804`,`#135200`,`#092b00`];Pu.primary=Pu[5];var Fu=[`#e6fffb`,`#b5f5ec`,`#87e8de`,`#5cdbd3`,`#36cfc9`,`#13c2c2`,`#08979c`,`#006d75`,`#00474f`,`#002329`];Fu.primary=Fu[5];var Iu=[`#e6f4ff`,`#bae0ff`,`#91caff`,`#69b1ff`,`#4096ff`,`#1677ff`,`#0958d9`,`#003eb3`,`#002c8c`,`#001d66`];Iu.primary=Iu[5];var Lu=[`#f0f5ff`,`#d6e4ff`,`#adc6ff`,`#85a5ff`,`#597ef7`,`#2f54eb`,`#1d39c4`,`#10239e`,`#061178`,`#030852`];Lu.primary=Lu[5];var Ru=[`#f9f0ff`,`#efdbff`,`#d3adf7`,`#b37feb`,`#9254de`,`#722ed1`,`#531dab`,`#391085`,`#22075e`,`#120338`];Ru.primary=Ru[5];var zu=[`#fff0f6`,`#ffd6e7`,`#ffadd2`,`#ff85c0`,`#f759ab`,`#eb2f96`,`#c41d7f`,`#9e1068`,`#780650`,`#520339`];zu.primary=zu[5];var Bu=[`#a6a6a6`,`#999999`,`#8c8c8c`,`#808080`,`#737373`,`#666666`,`#404040`,`#1a1a1a`,`#000000`,`#000000`];Bu.primary=Bu[5];var Vu={red:Ou,volcano:ku,orange:Au,gold:ju,yellow:Mu,lime:Nu,green:Pu,cyan:Fu,blue:Iu,geekblue:Lu,purple:Ru,magenta:zu,grey:Bu},Hu=[`#2a1215`,`#431418`,`#58181c`,`#791a1f`,`#a61d24`,`#d32029`,`#e84749`,`#f37370`,`#f89f9a`,`#fac8c3`];Hu.primary=Hu[5];var Uu=[`#2b1611`,`#441d12`,`#592716`,`#7c3118`,`#aa3e19`,`#d84a1b`,`#e87040`,`#f3956a`,`#f8b692`,`#fad4bc`];Uu.primary=Uu[5];var Wu=[`#2b1d11`,`#442a11`,`#593815`,`#7c4a15`,`#aa6215`,`#d87a16`,`#e89a3c`,`#f3b765`,`#f8cf8d`,`#fae3b7`];Wu.primary=Wu[5];var Gu=[`#2b2111`,`#443111`,`#594214`,`#7c5914`,`#aa7714`,`#d89614`,`#e8b339`,`#f3cc62`,`#f8df8b`,`#faedb5`];Gu.primary=Gu[5];var Ku=[`#2b2611`,`#443b11`,`#595014`,`#7c6e14`,`#aa9514`,`#d8bd14`,`#e8d639`,`#f3ea62`,`#f8f48b`,`#fafab5`];Ku.primary=Ku[5];var qu=[`#1f2611`,`#2e3c10`,`#3e4f13`,`#536d13`,`#6f9412`,`#8bbb11`,`#a9d134`,`#c9e75d`,`#e4f88b`,`#f0fab5`];qu.primary=qu[5];var Ju=[`#162312`,`#1d3712`,`#274916`,`#306317`,`#3c8618`,`#49aa19`,`#6abe39`,`#8fd460`,`#b2e58b`,`#d5f2bb`];Ju.primary=Ju[5];var Yu=[`#112123`,`#113536`,`#144848`,`#146262`,`#138585`,`#13a8a8`,`#33bcb7`,`#58d1c9`,`#84e2d8`,`#b2f1e8`];Yu.primary=Yu[5];var Xu=[`#111a2c`,`#112545`,`#15325b`,`#15417e`,`#1554ad`,`#1668dc`,`#3c89e8`,`#65a9f3`,`#8dc5f8`,`#b7dcfa`];Xu.primary=Xu[5];var Zu=[`#131629`,`#161d40`,`#1c2755`,`#203175`,`#263ea0`,`#2b4acb`,`#5273e0`,`#7f9ef3`,`#a8c1f8`,`#d2e0fa`];Zu.primary=Zu[5];var Qu=[`#1a1325`,`#24163a`,`#301c4d`,`#3e2069`,`#51258f`,`#642ab5`,`#854eca`,`#ab7ae0`,`#cda8f0`,`#ebd7fa`];Qu.primary=Qu[5];var $u=[`#291321`,`#40162f`,`#551c3b`,`#75204f`,`#a02669`,`#cb2b83`,`#e0529c`,`#f37fb7`,`#f8a8cc`,`#fad2e3`];$u.primary=$u[5];var ed=[`#151515`,`#1f1f1f`,`#2d2d2d`,`#393939`,`#494949`,`#5a5a5a`,`#6a6a6a`,`#7b7b7b`,`#888888`,`#969696`];ed.primary=ed[5];function td(e,{generateColorPalettes:t,generateNeutralColorPalettes:n}){let{colorSuccess:r,colorWarning:i,colorError:a,colorInfo:o,colorPrimary:s,colorBgBase:c,colorTextBase:l}=e,u=t(s),d=t(r),f=t(i),p=t(a),m=t(o),h=n(c,l),g=t(e.colorLink||e.colorInfo),_=new mu(p[1]).mix(new mu(p[3]),50).toHexString(),v={};return ru.forEach(n=>{let r=e[n];if(r){let e=t(r);v[`${n}Hover`]=e[5],v[`${n}Active`]=e[7]}}),{...h,colorPrimaryBg:u[1],colorPrimaryBgHover:u[2],colorPrimaryBorder:u[3],colorPrimaryBorderHover:u[4],colorPrimaryHover:u[5],colorPrimary:u[6],colorPrimaryActive:u[7],colorPrimaryTextHover:u[8],colorPrimaryText:u[9],colorPrimaryTextActive:u[10],colorSuccessBg:d[1],colorSuccessBgHover:d[2],colorSuccessBorder:d[3],colorSuccessBorderHover:d[4],colorSuccessHover:d[4],colorSuccess:d[6],colorSuccessActive:d[7],colorSuccessTextHover:d[8],colorSuccessText:d[9],colorSuccessTextActive:d[10],colorErrorBg:p[1],colorErrorBgHover:p[2],colorErrorBgFilledHover:_,colorErrorBgActive:p[3],colorErrorBorder:p[3],colorErrorBorderHover:p[4],colorErrorHover:p[5],colorError:p[6],colorErrorActive:p[7],colorErrorTextHover:p[8],colorErrorText:p[9],colorErrorTextActive:p[10],colorWarningBg:f[1],colorWarningBgHover:f[2],colorWarningBorder:f[3],colorWarningBorderHover:f[4],colorWarningHover:f[4],colorWarning:f[6],colorWarningActive:f[7],colorWarningTextHover:f[8],colorWarningText:f[9],colorWarningTextActive:f[10],colorInfoBg:m[1],colorInfoBgHover:m[2],colorInfoBorder:m[3],colorInfoBorderHover:m[4],colorInfoHover:m[4],colorInfo:m[6],colorInfoActive:m[7],colorInfoTextHover:m[8],colorInfoText:m[9],colorInfoTextActive:m[10],colorLinkHover:g[4],colorLink:g[6],colorLinkActive:g[7],...v,colorBgMask:new mu(`#000`).setA(.45).toRgbString(),colorWhite:`#fff`}}var nd=e=>{let t=e,n=e,r=e,i=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?i=4:e>=8&&(i=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:i}};function rd(e){let{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:i}=e;return{motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:i+1,...nd(r)}}var id=e=>{let{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},ad=e=>{let t=au(e),n=t.map(e=>e.size),r=t.map(e=>e.lineHeight),i=n[1],a=n[0],o=n[2],s=r[1],c=r[0],l=r[2];return{fontSizeSM:a,fontSize:i,fontSizeLG:o,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:s,lineHeightLG:l,lineHeightSM:c,fontHeight:Math.round(s*i),fontHeightLG:Math.round(l*o),fontHeightSM:Math.round(c*a),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function od(e){let{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}var sd=(e,t)=>new mu(e).setA(t).toRgbString(),cd=(e,t)=>new mu(e).darken(t).toHexString(),ld=e=>{let t=Eu(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},ud=(e,t,n)=>{let r=e||`#fff`,i=t||`#000`;return{colorBgBase:r,colorTextBase:i,colorShadow:n||`#000`,colorText:sd(i,.88),colorTextSecondary:sd(i,.65),colorTextTertiary:sd(i,.45),colorTextQuaternary:sd(i,.25),colorFill:sd(i,.15),colorFillSecondary:sd(i,.06),colorFillTertiary:sd(i,.04),colorFillQuaternary:sd(i,.02),colorBgSolid:sd(i,1),colorBgSolidHover:sd(i,.75),colorBgSolidActive:sd(i,.95),colorBgLayout:cd(r,4),colorBgContainer:cd(r,0),colorBgElevated:cd(r,0),colorBgSpotlight:sd(i,.85),colorBgBlur:`transparent`,colorBorder:cd(r,15),colorBorderDisabled:cd(r,15),colorBorderSecondary:cd(r,6)}};function dd(e){Du.pink=Du.magenta,Vu.pink=Vu.magenta;let t=Object.keys(su).map(t=>{let n=e[t]===Du[t]?Vu[t]:Eu(e[t]);return Array.from({length:10},()=>1).reduce((e,r,i)=>(e[`${t}-${i+1}`]=n[i],e[`${t}${i+1}`]=n[i],e),{})}).reduce((e,t)=>(e={...e,...t},e),{});return{...e,...t,...td(e,{generateColorPalettes:ld,generateNeutralColorPalettes:ud}),...ad(e.fontSize),...od(e),...id(e),...rd(e)}}var fd=ls(dd),pd={token:cu,override:{override:cu},hashed:!0},md=U.createContext(pd);function hd(e){return e>=0&&e<=255}function gd(e,t){let{r:n,g:r,b:i,a}=new mu(e).toRgb();if(a<1)return e;let{r:o,g:s,b:c}=new mu(t).toRgb();for(let e=.01;e<=1;e+=.01){let t=Math.round((n-o*(1-e))/e),a=Math.round((r-s*(1-e))/e),l=Math.round((i-c*(1-e))/e);if(hd(t)&&hd(a)&&hd(l))return new mu({r:t,g:a,b:l,a:Math.round(e*100)/100}).toRgbString()}return new mu({r:n,g:r,b:i,a:1}).toRgbString()}function _d(e){let{override:t,...n}=e,r={...t};Object.keys(cu).forEach(e=>{delete r[e]});let i={...n,...r},a=new mu(i.colorShadow),o=a.a,s=e=>a.clone().setA(o*e).toRgbString(),c=1200,l=1600,u=1920;return i.motion===!1&&(i.motionDurationFast=`0s`,i.motionDurationMid=`0s`,i.motionDurationSlow=`0s`),{...i,colorFillContent:i.colorFillSecondary,colorFillContentHover:i.colorFill,colorFillAlter:i.colorFillQuaternary,colorBgContainerDisabled:i.colorFillTertiary,colorBorderBg:i.colorBgContainer,colorSplit:gd(i.colorBorderSecondary,i.colorBgContainer),colorTextPlaceholder:i.colorTextQuaternary,colorTextDisabled:i.colorTextQuaternary,colorTextHeading:i.colorText,colorTextLabel:i.colorTextSecondary,colorTextDescription:i.colorTextTertiary,colorTextLightSolid:i.colorWhite,colorHighlight:i.colorError,colorBgTextHover:i.colorFillSecondary,colorBgTextActive:i.colorFill,colorIcon:i.colorTextTertiary,colorIconHover:i.colorText,colorErrorOutline:gd(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:gd(i.colorWarningBg,i.colorBgContainer),colorErrorAffix:i.colorError,colorWarningAffix:i.colorWarning,fontSizeIcon:i.fontSizeSM,lineWidthFocus:i.lineWidth*3,lineWidth:i.lineWidth,controlOutlineWidth:i.lineWidth*2,controlInteractiveSize:i.controlHeight/2,controlItemBgHover:i.colorFillTertiary,controlItemBgActive:i.colorPrimaryBg,controlItemBgActiveHover:i.colorPrimaryBgHover,controlItemBgActiveDisabled:i.colorFill,controlTmpOutline:i.colorFillQuaternary,controlOutline:gd(i.colorPrimaryBg,i.colorBgContainer),lineType:i.lineType,borderRadius:i.borderRadius,borderRadiusXS:i.borderRadiusXS,borderRadiusSM:i.borderRadiusSM,borderRadiusLG:i.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:`none`,linkHoverDecoration:`none`,linkFocusDecoration:`none`,controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:i.sizeXXS,paddingXS:i.sizeXS,paddingSM:i.sizeSM,padding:i.size,paddingMD:i.sizeMD,paddingLG:i.sizeLG,paddingXL:i.sizeXL,paddingContentHorizontalLG:i.sizeLG,paddingContentVerticalLG:i.sizeMS,paddingContentHorizontal:i.sizeMS,paddingContentVertical:i.sizeSM,paddingContentHorizontalSM:i.size,paddingContentVerticalSM:i.sizeXS,marginXXS:i.sizeXXS,marginXS:i.sizeXS,marginSM:i.sizeSM,margin:i.size,marginMD:i.sizeMD,marginLG:i.sizeLG,marginXL:i.sizeXL,marginXXL:i.sizeXXL,boxShadow:`
278
+ 0 6px 16px 0 ${s(.08)},
279
+ 0 3px 6px -4px ${s(.12)},
280
+ 0 9px 28px 8px ${s(.05)}
281
+ `,boxShadowSecondary:`
282
+ 0 6px 16px 0 ${s(.08)},
283
+ 0 3px 6px -4px ${s(.12)},
284
+ 0 9px 28px 8px ${s(.05)}
285
+ `,boxShadowTertiary:`
286
+ 0 1px 2px 0 ${s(.03)},
287
+ 0 1px 6px -1px ${s(.02)},
288
+ 0 2px 4px 0 ${s(.02)}
289
+ `,screenXS:480,screenXSMin:480,screenXSMax:575,screenSM:576,screenSMMin:576,screenSMMax:767,screenMD:768,screenMDMin:768,screenMDMax:991,screenLG:992,screenLGMin:992,screenLGMax:c-1,screenXL:c,screenXLMin:c,screenXLMax:l-1,screenXXL:l,screenXXLMin:l,screenXXLMax:u-1,screenXXXL:u,screenXXXLMin:u,boxShadowPopoverArrow:`2px 2px 5px ${s(.05)}`,boxShadowCard:`
290
+ 0 1px 2px -2px ${s(.16)},
291
+ 0 3px 6px 0 ${s(.12)},
292
+ 0 5px 12px 4px ${s(.09)}
293
+ `,boxShadowDrawerRight:`
294
+ -6px 0 16px 0 ${s(.08)},
295
+ -3px 0 6px -4px ${s(.12)},
296
+ -9px 0 28px 8px ${s(.05)}
297
+ `,boxShadowDrawerLeft:`
298
+ 6px 0 16px 0 ${s(.08)},
299
+ 3px 0 6px -4px ${s(.12)},
300
+ 9px 0 28px 8px ${s(.05)}
301
+ `,boxShadowDrawerUp:`
302
+ 0 6px 16px 0 ${s(.08)},
303
+ 0 3px 6px -4px ${s(.12)},
304
+ 0 9px 28px 8px ${s(.05)}
305
+ `,boxShadowDrawerDown:`
306
+ 0 -6px 16px 0 ${s(.08)},
307
+ 0 -3px 6px -4px ${s(.12)},
308
+ 0 -9px 28px 8px ${s(.05)}
309
+ `,boxShadowTabsOverflowLeft:`inset 10px 0 8px -8px ${s(.08)}`,boxShadowTabsOverflowRight:`inset -10px 0 8px -8px ${s(.08)}`,boxShadowTabsOverflowTop:`inset 0 10px 8px -8px ${s(.08)}`,boxShadowTabsOverflowBottom:`inset 0 -10px 8px -8px ${s(.08)}`,...r}}var vd={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},yd={motionBase:!0,motionUnit:!0},bd={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0,screenXXLMax:!0,screenXXXL:!0,screenXXXLMin:!0},xd=(e,t,n)=>{let r=n.getDerivativeToken(e),{override:i,...a}=t,o={...r,override:i};return o=_d(o),a&&Object.entries(a).forEach(([e,t])=>{let{theme:n,...r}=t,i=r;n&&(i=xd({...o,...r},{override:r},n)),o[e]=i}),o};function Sd(){let{token:e,hashed:t,theme:n,override:r,cssVar:i,zeroRuntime:a}=U.useContext(md),{csp:o,getPrefixCls:s}=U.useContext(Vo),c={prefix:i?.prefix??s(),key:i?.key??`css-var-root`},l=`${ou}-${t||``}`,u=n||fd,[d,f,p]=zs(u,[cu,e],{salt:l,override:r,getComputedToken:xd,cssVar:{...c,unitless:vd,ignore:yd,preserve:bd},nonce:o?.nonce});return[u,p,t?f:``,d,c,!!a]}var Cd=(e,t=!1)=>({boxSizing:`border-box`,margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:`none`,fontFamily:t?`inherit`:e.fontFamily}),wd=()=>({display:`inline-flex`,alignItems:`center`,color:`inherit`,fontStyle:`normal`,lineHeight:0,textAlign:`center`,textTransform:`none`,verticalAlign:`-0.125em`,textRendering:`optimizeLegibility`,"-webkit-font-smoothing":`antialiased`,"-moz-osx-font-smoothing":`grayscale`,"> *":{lineHeight:1},svg:{display:`inline-block`}}),Td=(e,t)=>({outline:`${_s(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:[`outline-offset`,`outline`].map(e=>`${e} 0s`).join(`, `)}),Ed=(e,t)=>({"&:focus-visible":Td(e,t)}),Dd=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:`transparent`,outline:`none`,cursor:`pointer`,transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":`objects`,"&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},...Ed(e),"&[disabled]":{color:e.colorTextDisabled,cursor:`not-allowed`}}}),Od=(e,t,n,r)=>{let i=`[class^="${t}"], [class*=" ${t}"]`,a=n?`.${n}`:i,o={boxSizing:`border-box`,"&::before, &::after":{boxSizing:`border-box`}},s={};return r!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[a]:{...s,...o,[i]:o}}},kd=e=>({[`.${e}`]:{...wd(),[`.${e} .${e}-icon`]:{display:`block`}}}),{genStyleHooks:Ad,genComponentStyleHook:jd,genSubStyleComponent:Md}=nu({usePrefix:()=>{let{getPrefixCls:e,iconPrefixCls:t}=(0,U.useContext)(Vo);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{let[e,t,n,r,i,a]=Sd();return{theme:e,realToken:t,hashId:n,token:r,cssVar:i,zeroRuntime:a}},useCSP:()=>{let{csp:e}=(0,U.useContext)(Vo);return e??{}},getResetStyles:(e,t)=>{let n=Dd(e);return[n,{"&":n},kd(t?.prefix.iconPrefixCls??`anticon`)]},getCommonStyle:Od,getCompUnitless:()=>vd}),Nd=(e,t)=>{let n=`--${e.replace(/\./g,``)}-${t}-`;return[e=>`${n}${e}`,(e,t)=>t?`var(${n}${e}, ${t})`:`var(${n}${e})`]};function Pd(e,t){return ru.reduce((n,r)=>{let i=e[`${r}1`],a=e[`${r}3`],o=e[`${r}6`],s=e[`${r}7`];return{...n,...t(r,{lightColor:i,lightBorderColor:a,darkColor:o,textColor:s})}},{})}var Fd=(e,t)=>{let[n,r]=Sd();return ul({theme:n,token:r,hashId:``,path:[`ant-design-icons`,e],nonce:()=>t?.nonce,layer:{name:`antd`}},()=>kd(e))},Id={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z`}}]},name:`check-circle`,theme:`filled`},Ld=(0,U.createContext)({});function Rd(e){return e.replace(/-(.)/g,(e,t)=>t.toUpperCase())}function zd(e,t){Ba(e,`[@ant-design/icons] ${t}`)}function Bd(e){return typeof e==`object`&&typeof e.name==`string`&&typeof e.theme==`string`&&(typeof e.icon==`object`||typeof e.icon==`function`)}function Vd(e={}){return Object.keys(e).reduce((t,n)=>{let r=e[n];switch(n){case`class`:t.className=r,delete t.class;break;default:delete t[n],t[Rd(n)]=r}return t},{})}function Hd(e,t,n){return n?U.createElement(e.tag,{key:t,...Vd(e.attrs),...n},(e.children||[]).map((n,r)=>Hd(n,`${t}-${e.tag}-${r}`))):U.createElement(e.tag,{key:t,...Vd(e.attrs)},(e.children||[]).map((n,r)=>Hd(n,`${t}-${e.tag}-${r}`)))}function Ud(e){return Eu(e)[0]}function Wd(e){return e?Array.isArray(e)?e:[e]:[]}var Gd=`
310
+ .anticon {
311
+ display: inline-flex;
312
+ align-items: center;
313
+ color: inherit;
314
+ font-style: normal;
315
+ line-height: 0;
316
+ text-align: center;
317
+ text-transform: none;
318
+ vertical-align: -0.125em;
319
+ text-rendering: optimizeLegibility;
320
+ -webkit-font-smoothing: antialiased;
321
+ -moz-osx-font-smoothing: grayscale;
322
+ }
323
+
324
+ .anticon > * {
325
+ line-height: 1;
326
+ }
327
+
328
+ .anticon svg {
329
+ display: inline-block;
330
+ vertical-align: inherit;
331
+ }
332
+
333
+ .anticon::before {
334
+ display: none;
335
+ }
336
+
337
+ .anticon .anticon-icon {
338
+ display: block;
339
+ }
340
+
341
+ .anticon[tabindex] {
342
+ cursor: pointer;
343
+ }
344
+
345
+ .anticon-spin {
346
+ -webkit-animation: loadingCircle 1s infinite linear;
347
+ animation: loadingCircle 1s infinite linear;
348
+ }
349
+
350
+ @-webkit-keyframes loadingCircle {
351
+ 100% {
352
+ -webkit-transform: rotate(360deg);
353
+ transform: rotate(360deg);
354
+ }
355
+ }
356
+
357
+ @keyframes loadingCircle {
358
+ 100% {
359
+ -webkit-transform: rotate(360deg);
360
+ transform: rotate(360deg);
361
+ }
362
+ }
363
+ `,Kd=e=>{let{csp:t,prefixCls:n,layer:r}=(0,U.useContext)(Ld),i=Gd;n&&(i=i.replace(/anticon/g,n)),r&&(i=`@layer ${r} {\n${i}\n}`),(0,U.useEffect)(()=>{let n=e.current,a=Aa(n);wa(i,`@ant-design-icons`,{prepend:!r,csp:t,attachTo:a})},[])},qd={primaryColor:`#333`,secondaryColor:`#E6E6E6`,calculated:!1};function Jd({primaryColor:e,secondaryColor:t}){qd.primaryColor=e,qd.secondaryColor=t||Ud(e),qd.calculated=!!t}function Yd(){return{...qd}}var Xd=e=>{let{icon:t,className:n,onClick:r,style:i,primaryColor:a,secondaryColor:o,...s}=e,c=U.useRef(null),l=qd;if(a&&(l={primaryColor:a,secondaryColor:o||Ud(a)}),Kd(c),zd(Bd(t),`icon should be icon definiton, but got ${t}`),!Bd(t))return null;let u=t;return u&&typeof u.icon==`function`&&(u={...u,icon:u.icon(l.primaryColor,l.secondaryColor)}),Hd(u.icon,`svg-${u.name}`,{className:n,onClick:r,style:i,"data-icon":u.name,width:`1em`,height:`1em`,fill:`currentColor`,"aria-hidden":`true`,...s,ref:c})};Xd.displayName=`IconReact`,Xd.getTwoToneColors=Yd,Xd.setTwoToneColors=Jd;function Zd(e){let[t,n]=Wd(e);return Xd.setTwoToneColors({primaryColor:t,secondaryColor:n})}function Qd(){let e=Xd.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}function $d(){return $d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$d.apply(this,arguments)}Zd(Iu.primary);var ef=U.forwardRef((e,t)=>{let{className:n,icon:r,spin:i,rotate:a,tabIndex:o,onClick:s,twoToneColor:c,...l}=e,{prefixCls:u=`anticon`,rootClassName:d}=U.useContext(Ld),f=G(d,u,{[`${u}-${r.name}`]:!!r.name,[`${u}-spin`]:!!i||r.name===`loading`},n),p=o;p===void 0&&s&&(p=-1);let m=a?{msTransform:`rotate(${a}deg)`,transform:`rotate(${a}deg)`}:void 0,[h,g]=Wd(c);return U.createElement(`span`,$d({role:`img`,"aria-label":r.name},l,{ref:t,tabIndex:p,onClick:s,className:f}),U.createElement(Xd,{icon:r,primaryColor:h,secondaryColor:g,style:m}))});ef.getTwoToneColor=Qd,ef.setTwoToneColor=Zd,process.env.NODE_ENV!==`production`&&(ef.displayName=`AntdIcon`);function tf(){return tf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tf.apply(this,arguments)}var nf=U.forwardRef((e,t)=>U.createElement(ef,tf({},e,{ref:t,icon:Id})));process.env.NODE_ENV!==`production`&&(nf.displayName=`CheckCircleFilled`);var rf={icon:{tag:`svg`,attrs:{"fill-rule":`evenodd`,viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z`}}]},name:`close-circle`,theme:`filled`};function af(){return af=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},af.apply(this,arguments)}var of=U.forwardRef((e,t)=>U.createElement(ef,af({},e,{ref:t,icon:rf})));process.env.NODE_ENV!==`production`&&(of.displayName=`CloseCircleFilled`);var sf={icon:{tag:`svg`,attrs:{"fill-rule":`evenodd`,viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z`}}]},name:`close`,theme:`outlined`};function cf(){return cf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cf.apply(this,arguments)}var lf=U.forwardRef((e,t)=>U.createElement(ef,cf({},e,{ref:t,icon:sf})));process.env.NODE_ENV!==`production`&&(lf.displayName=`CloseOutlined`);var uf={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z`}}]},name:`exclamation-circle`,theme:`filled`};function df(){return df=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},df.apply(this,arguments)}var ff=U.forwardRef((e,t)=>U.createElement(ef,df({},e,{ref:t,icon:uf})));process.env.NODE_ENV!==`production`&&(ff.displayName=`ExclamationCircleFilled`);var pf={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z`}}]},name:`info-circle`,theme:`filled`};function mf(){return mf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mf.apply(this,arguments)}var hf=U.forwardRef((e,t)=>U.createElement(ef,mf({},e,{ref:t,icon:pf})));process.env.NODE_ENV!==`production`&&(hf.displayName=`InfoCircleFilled`);var gf=U.createContext({}),_f=e=>{let{children:t,...n}=e,r=U.useMemo(()=>({motion:n.motion}),[n.motion]);return U.createElement(gf.Provider,{value:r},t)},vf=`none`,yf=`appear`,bf=`enter`,xf=`leave`,Sf=`none`,Cf=`prepare`,wf=`start`,Tf=`active`,Ef=`prepared`;function Df(e,t){let n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit${e}`]=`webkit${t}`,n[`Moz${e}`]=`moz${t}`,n[`ms${e}`]=`MS${t}`,n[`O${e}`]=`o${t.toLowerCase()}`,n}function Of(e,t){let n={animationend:Df(`Animation`,`AnimationEnd`),transitionend:Df(`Transition`,`TransitionEnd`)};return e&&(`AnimationEvent`in t||delete n.animationend.animation,`TransitionEvent`in t||delete n.transitionend.transition),n}var kf=Of(zi(),typeof window<`u`?window:{}),Af={};zi()&&({style:Af}=document.createElement(`div`));var jf={};function Mf(e){if(jf[e])return jf[e];let t=kf[e];if(t){let n=Object.keys(t),r=n.length;for(let i=0;i<r;i+=1){let r=n[i];if(Object.prototype.hasOwnProperty.call(t,r)&&r in Af)return jf[e]=t[r],jf[e]}}return``}var Nf=Mf(`animationend`),Pf=Mf(`transitionend`),Ff=!!(Nf&&Pf),If=Nf||`animationend`,Lf=Pf||`transitionend`;function Rf(e,t){return e?typeof e==`object`?e[t.replace(/-\w/g,e=>e[1].toUpperCase())]:`${e}-${t}`:null}var zf=(e=>{let t=(0,U.useRef)();function n(t){t&&(t.removeEventListener(Lf,e),t.removeEventListener(If,e))}function r(r){t.current&&t.current!==r&&n(t.current),r&&r!==t.current&&(r.addEventListener(Lf,e),r.addEventListener(If,e),t.current=r)}return U.useEffect(()=>()=>{n(t.current),t.current=null},[]),[r,n]}),Bf=zi()?U.useLayoutEffect:U.useEffect,Vf=(()=>{let e=U.useRef(null);function t(){$a.cancel(e.current)}function n(r,i=2){t();let a=$a(()=>{i<=1?r({isCanceled:()=>a!==e.current}):n(r,i-1)});e.current=a}return U.useEffect(()=>()=>{t()},[]),[n,t]}),Hf=[Cf,wf,Tf,`end`],K=[Cf,Ef];function Uf(e){return e===`active`||e===`end`}var Wf=((e,t,n)=>{let[r,i]=Hi(Sf),[a,o]=Vf();function s(){i(Cf,!0)}let c=t?K:Hf;return Bf(()=>{if(r!==`none`&&r!==`end`){let e=c[c.indexOf(r)+1],t=n(r);t===!1?i(e,!0):e&&a(n=>{function r(){n.isCanceled()||i(e,!0)}t===!0?r():Promise.resolve(t).then(r)})}},[e,r]),U.useEffect(()=>()=>{o()},[]),[s,r]});function Gf(e,t,n,{motionEnter:r=!0,motionAppear:i=!0,motionLeave:a=!0,motionDeadline:o,motionLeaveImmediately:s,onAppearPrepare:c,onEnterPrepare:l,onLeavePrepare:u,onAppearStart:d,onEnterStart:f,onLeaveStart:p,onAppearActive:m,onEnterActive:h,onLeaveActive:g,onAppearEnd:_,onEnterEnd:v,onLeaveEnd:y,onVisibleChanged:b}){let[x,S]=U.useState(),[C,w]=Yi(vf),[T,E]=U.useState([null,null]),D=C(),O=(0,U.useRef)(!1),k=(0,U.useRef)(null);function A(){return n()}let j=(0,U.useRef)(!1);function M(){w(vf),E([null,null])}let N=Ri(e=>{let t=C();if(t===`none`)return;let n=A();if(e&&!e.deadline&&e.target!==n)return;let r=j.current,i;t===`appear`&&r?i=_?.(n,e):t===`enter`&&r?i=v?.(n,e):t===`leave`&&r&&(i=y?.(n,e)),r&&i!==!1&&M()}),[ee]=zf(N),te=e=>{switch(e){case yf:return{[Cf]:c,[wf]:d,[Tf]:m};case bf:return{[Cf]:l,[wf]:f,[Tf]:h};case xf:return{[Cf]:u,[wf]:p,[Tf]:g};default:return{}}},P=U.useMemo(()=>te(D),[D]),[F,ne]=Wf(D,!e,e=>{if(e===`prepare`){let e=P[Cf];return e?e(A()):!1}return e in P&&E([P[e]?.(A(),null)||null,e]),e===`active`&&D!==`none`&&(ee(A()),o>0&&(clearTimeout(k.current),k.current=setTimeout(()=>{N({deadline:!0})},o))),e===`prepared`&&M(),!0});j.current=Uf(ne);let re=(0,U.useRef)(null);Bf(()=>{if(O.current&&re.current===t)return;S(t);let n=O.current;O.current=!0;let o;!n&&t&&i&&(o=yf),n&&t&&r&&(o=bf),(n&&!t&&a||!n&&s&&!t&&a)&&(o=xf);let c=te(o);o&&(e||c.prepare)?(w(o),F()):w(vf),re.current=t},[t]),(0,U.useEffect)(()=>{(D===`appear`&&!i||D===`enter`&&!r||D===`leave`&&!a)&&w(vf)},[i,r,a]),(0,U.useEffect)(()=>()=>{O.current=!1,clearTimeout(k.current)},[]);let ie=U.useRef(!1);(0,U.useEffect)(()=>{x&&(ie.current=!0),x!==void 0&&D===`none`&&((ie.current||x)&&b?.(x),ie.current=!0)},[x,D]);let I=T[0];P.prepare&&ne===`start`&&(I={transition:`none`,...I});let ae=T[1];return[C,ne,I,x??t,!O.current&&D===`none`&&e&&i?`NONE`:ne===`start`||ne===`active`?ae===ne:!0]}function Kf(e){return e?.length<2}function qf(e){let t=e;typeof e==`object`&&({transitionSupport:t}=e);function n(e,n){return!!(e.motionName&&t&&n!==!1)}let r=U.forwardRef((e,t)=>{let{visible:r=!0,removeOnLeave:i=!0,forceRender:a,children:o,motionName:s,leavedClassName:c,eventProps:l}=e,{motion:u}=U.useContext(gf),d=n(e,u),f=(0,U.useRef)();function p(){return Ea(f.current)}let[m,h,g,_,v]=Gf(d,r,p,e),y=m(),b=U.useRef(_);_&&(b.current=!0);let x=U.useMemo(()=>{let e={};return Object.defineProperties(e,{nativeElement:{enumerable:!0,get:p},inMotion:{enumerable:!0,get:()=>()=>m()!==vf},enableMotion:{enumerable:!0,get:()=>()=>d}}),e},[]);U.useImperativeHandle(t,()=>x,[]);let S=U.useRef(0);v&&(S.current+=1);let C=U.useMemo(()=>{if(v===`NONE`)return null;let e,t={...l,visible:r};if(!o)e=null;else if(y===`none`)e=_?o({...t},f):!i&&b.current&&c?o({...t,className:c},f):a||!i&&!c?o({...t,style:{display:`none`}},f):null;else{let n;h===`prepare`?n=`prepare`:Uf(h)?n=`active`:h===`start`&&(n=`start`);let r=Rf(s,`${y}-${n}`);e=o({...t,className:G(Rf(s,y),{[r]:r&&n,[s]:typeof s==`string`}),style:g},f)}return e},[S.current]);if(Kf(o)&&la(C)){let e=ua(C);if(e!==f)return U.cloneElement(C,{ref:oa(e,f)})}return C});return r.displayName=`CSSMotion`,r}var Jf=qf(Ff),Yf=`keep`,Xf=`remove`,Zf=`removed`;function Qf(e){let t;return t=e&&typeof e==`object`&&`key`in e?e:{key:e},{...t,key:String(t.key)}}function $f(e=[]){return e.map(Qf)}function ep(e=[],t=[]){let n=[],r=0,i=t.length,a=$f(e),o=$f(t);a.forEach(e=>{let t=!1;for(let a=r;a<i;a+=1){let i=o[a];if(i.key===e.key){r<a&&(n=n.concat(o.slice(r,a).map(e=>({...e,status:`add`}))),r=a),n.push({...i,status:Yf}),r+=1,t=!0;break}}t||n.push({...e,status:Xf})}),r<i&&(n=n.concat(o.slice(r).map(e=>({...e,status:`add`}))));let s={};return n.forEach(({key:e})=>{s[e]=(s[e]||0)+1}),Object.keys(s).filter(e=>s[e]>1).forEach(e=>{n=n.filter(({key:t,status:n})=>t!==e||n!==`remove`),n.forEach(t=>{t.key===e&&(t.status=Yf)})}),n}function tp(){return tp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tp.apply(this,arguments)}var np=[`eventProps`,`visible`,`children`,`motionName`,`motionAppear`,`motionEnter`,`motionLeave`,`motionLeaveImmediately`,`motionDeadline`,`removeOnLeave`,`leavedClassName`,`onAppearPrepare`,`onAppearStart`,`onAppearActive`,`onAppearEnd`,`onEnterStart`,`onEnterActive`,`onEnterEnd`,`onLeaveStart`,`onLeaveActive`,`onLeaveEnd`];function rp(e,t=Jf){class n extends U.Component{static defaultProps={component:`div`};state={keyEntities:[]};static getDerivedStateFromProps({keys:e},{keyEntities:t}){return{keyEntities:ep(t,$f(e)).filter(e=>{let n=t.find(({key:t})=>e.key===t);return!(n&&n.status===`removed`&&e.status===`remove`)})}}removeKey=e=>{this.setState(t=>({keyEntities:t.keyEntities.map(t=>t.key===e?{...t,status:Zf}:t)}),()=>{let{keyEntities:e}=this.state;e.filter(({status:e})=>e!==`removed`).length===0&&this.props.onAllRemoved&&this.props.onAllRemoved()})};render(){let{keyEntities:e}=this.state,{component:n,children:r,onVisibleChanged:i,onAllRemoved:a,...o}=this.props,s=n||U.Fragment,c={};return np.forEach(e=>{c[e]=o[e],delete o[e]}),delete o.keys,U.createElement(s,o,e.map(({status:e,...n},a)=>{let o=e===`add`||e===`keep`;return U.createElement(t,tp({},c,{key:n.key,visible:o,eventProps:n,onVisibleChanged:e=>{i?.(e,{key:n.key}),e||this.removeKey(n.key)}}),Kf(r)?e=>r({...e,index:a}):(e,t)=>r({...e,index:a},t))}))}}return n}var ip=rp(Ff),ap=Jf,op=e=>e!=null,sp=e=>typeof e==`number`&&!Number.isNaN(e),cp=e=>typeof e==`object`&&!!e,lp=e=>typeof e==`function`,up=(e,t)=>{let n={...e};return Object.keys(t).forEach(e=>{t[e]._default?n[e]||(n[e]={}):n[e]=up(n[e],t[e])}),n},dp=(e={},...t)=>t.filter(e=>!!e).reduce((t,n)=>(Object.keys(n).forEach(r=>{let i=e[r],a=n[r];if(i)if(cp(a))t[r]=dp(i,t[r],a);else{let{_default:e}=i;e&&(t[r]=t[r]||{},t[r][e]=G(t[r][e],a))}else t[r]=G(t[r],a)}),t),{}),fp=(e,...t)=>U.useMemo(()=>dp.apply(void 0,[e].concat(t)),[e].concat(t)),pp=(...e)=>e.filter(e=>!!e).reduce((e,t={})=>(Object.keys(t).forEach(n=>{e[n]={...e[n],...t[n]}}),e),{}),mp=(...e)=>U.useMemo(()=>pp.apply(void 0,e),[].concat(e)),hp=(e,t)=>lp(e)?e(t):e,gp=(e,t,n,r)=>{let i=e.map(e=>e?hp(e,n):void 0),a=t.map(e=>e?hp(e,n):void 0),o=fp.apply(void 0,[r].concat(Bo(i))),s=mp.apply(void 0,Bo(a));return U.useMemo(()=>r?[up(o,r),up(s,r)]:[o,s],[o,s,r])},_p=e=>`${e}-css-var`,vp=(0,U.createContext)(void 0),yp={items_per_page:`/ page`,jump_to:`Go to`,jump_to_confirm:`confirm`,page:`Page`,prev_page:`Previous Page`,next_page:`Next Page`,prev_5:`Previous 5 Pages`,next_5:`Next 5 Pages`,prev_3:`Previous 3 Pages`,next_3:`Next 3 Pages`,page_size:`Page Size`},bp={yearFormat:`YYYY`,dayFormat:`D`,cellMeridiemFormat:`A`,monthBeforeYear:!0};function xp(e){"@babel/helpers - typeof";return xp=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},xp(e)}function Sp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Cp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Sp(Object(n),!0).forEach(function(t){wp(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sp(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function wp(e,t,n){return t=Tp(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Tp(e){var t=Ep(e,`string`);return xp(t)==`symbol`?t:String(t)}function Ep(e,t){if(xp(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(xp(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var Dp=Cp(Cp({},bp),{},{locale:`en_US`,today:`Today`,now:`Now`,backToToday:`Back to today`,ok:`OK`,clear:`Clear`,week:`Week`,month:`Month`,year:`Year`,timeSelect:`select time`,dateSelect:`select date`,weekSelect:`Choose a week`,monthSelect:`Choose a month`,yearSelect:`Choose a year`,decadeSelect:`Choose a decade`,previousMonth:`Previous month (PageUp)`,nextMonth:`Next month (PageDown)`,previousYear:`Last year (Control + left)`,nextYear:`Next year (Control + right)`,previousDecade:`Last decade`,nextDecade:`Next decade`,previousCentury:`Last century`,nextCentury:`Next century`}),Op={placeholder:`Select time`,rangePlaceholder:[`Start time`,`End time`]},kp={lang:{placeholder:`Select date`,yearPlaceholder:`Select year`,quarterPlaceholder:`Select quarter`,monthPlaceholder:`Select month`,weekPlaceholder:`Select week`,rangePlaceholder:[`Start date`,`End date`],rangeYearPlaceholder:[`Start year`,`End year`],rangeQuarterPlaceholder:[`Start quarter`,`End quarter`],rangeMonthPlaceholder:[`Start month`,`End month`],rangeWeekPlaceholder:[`Start week`,`End week`],...Dp},timePickerLocale:{...Op}},Ap=kp,jp="${label} is not a valid ${type}",Mp={locale:`en`,Pagination:yp,DatePicker:kp,TimePicker:Op,Calendar:Ap,global:{placeholder:`Please select`,close:`Close`,sortable:`sortable`,show:`Show`,hide:`Hide`},Table:{filterTitle:`Filter menu`,filterConfirm:`OK`,filterReset:`Reset`,filterEmptyText:`No filters`,filterCheckAll:`Select all items`,filterSearchPlaceholder:`Search in filters`,emptyText:`No data`,selectAll:`Select current page`,selectInvert:`Invert current page`,selectNone:`Clear all data`,selectionAll:`Select all data`,sortTitle:`Sort`,expand:`Expand row`,collapse:`Collapse row`,triggerDesc:`Click to sort descending`,triggerAsc:`Click to sort ascending`,cancelSort:`Click to cancel sorting`},Tour:{Next:`Next`,Previous:`Previous`,Finish:`Finish`},Modal:{okText:`OK`,cancelText:`Cancel`,justOkText:`OK`},Popconfirm:{okText:`OK`,cancelText:`Cancel`},Transfer:{titles:[``,``],searchPlaceholder:`Search here`,itemUnit:`item`,itemsUnit:`items`,remove:`Remove`,selectCurrent:`Select current page`,removeCurrent:`Remove current page`,selectAll:`Select all data`,deselectAll:`Deselect all data`,removeAll:`Remove all data`,selectInvert:`Invert current page`},Upload:{uploading:`Uploading...`,removeFile:`Remove file`,uploadError:`Upload error`,previewFile:`Preview file`,downloadFile:`Download file`},Empty:{description:`No data`},Icon:{icon:`icon`},Text:{edit:`Edit`,copy:`Copy`,copied:`Copied`,expand:`Expand`,collapse:`Collapse`},Form:{optional:`(optional)`,defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:jp,method:jp,array:jp,object:jp,number:jp,date:jp,boolean:jp,integer:jp,float:jp,regexp:jp,email:jp,url:jp,hex:jp},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},QRCode:{expired:`QR code expired`,refresh:`Refresh`,scanned:`Scanned`},ColorPicker:{presetEmpty:`Empty`,transparent:`Transparent`,singleColor:`Single`,gradientColor:`Gradient`}};({...Mp.Modal});var Np=[],Pp=()=>Np.reduce((e,t)=>({...e,...t}),Mp.Modal);function Fp(e){if(e){let t={...e};return Np.push(t),Pp(),()=>{Np=Np.filter(e=>e!==t),Pp()}}({...Mp.Modal})}var Ip=(0,U.createContext)(void 0),Lp=(e,t)=>{let n=U.useContext(Ip);return[U.useMemo(()=>{let r=t||Mp[e],i=n?.[e]??{};return{...lp(r)?r():r,...i||{}}},[e,t,n]),U.useMemo(()=>{let e=n?.locale;return n?.exist&&!e?Mp.locale:e},[n])]},Rp=`internalMark`,zp=e=>{let{locale:t={},children:n,_ANT_MARK__:r}=e;if(process.env.NODE_ENV!==`production`){let e=vo(`LocaleProvider`);process.env.NODE_ENV!==`production`&&e(r===`internalMark`,`deprecated`,"`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale")}U.useEffect(()=>Fp(t?.Modal),[t]);let i=U.useMemo(()=>({...t,exist:!0}),[t]);return U.createElement(Ip.Provider,{value:i},n)};process.env.NODE_ENV!==`production`&&(zp.displayName=`LocaleProvider`);var Bp=U.createContext(null),Vp=!1;function Hp(e){return typeof e==`boolean`&&(Vp=e),Vp}var Up=[];function Wp(e,t){let[n]=U.useState(()=>{if(!zi())return null;let e=document.createElement(`div`);return process.env.NODE_ENV!==`production`&&t&&e.setAttribute(`data-debug`,t),e}),r=U.useRef(!1),i=U.useContext(Bp),[a,o]=U.useState(Up),s=i||(r.current?void 0:e=>{o(t=>[e,...t])});function c(){n.parentElement||document.body.appendChild(n),r.current=!0}function l(){n.parentElement?.removeChild(n),r.current=!1}return Vi(()=>(e?i?i(c):c():l(),l),[e]),Vi(()=>{a.length&&(a.forEach(e=>e()),o(Up))},[a]),[n,s]}function Gp(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var Kp=`rc-util-locker-${Date.now()}`,qp=0;function Jp(e){let t=!!e,[n]=U.useState(()=>(qp+=1,`${Kp}_${qp}`));Vi(()=>{if(t){let e=Ma(document.body).width;wa(`
364
+ html body {
365
+ overflow-y: hidden;
366
+ ${Gp()?`width: calc(100% - ${e}px);`:``}
367
+ }`,n)}else Sa(n);return()=>{Sa(n)}},[t,n])}var Yp=[],Xp=200,Zp=0;process.env.NODE_ENV;var Qp=e=>{if(e.key===`Escape`&&!e.isComposing){if(Date.now()-Zp<Xp)return;let t=Yp.length;for(let n=t-1;n>=0;--n)Yp[n].onEsc({top:n===t-1,event:e})}},$p=()=>{Zp=Date.now()};function em(){window.addEventListener(`keydown`,Qp),window.addEventListener(`compositionend`,$p)}function tm(){Yp.length===0&&(window.removeEventListener(`keydown`,Qp),window.removeEventListener(`compositionend`,$p))}function nm(e,t){let n=qi(),r=Ri(t),i=()=>{Yp.find(e=>e.id===n)||Yp.push({id:n,onEsc:r})},a=()=>{Yp=Yp.filter(e=>e.id!==n)};(0,U.useMemo)(()=>{e?i():e||a()},[e]),(0,U.useEffect)(()=>{if(e)return i(),em(),()=>{a(),tm()}},[e])}var rm=S(),im=e=>e===!1?!1:!zi()||!e?null:typeof e==`string`?document.querySelector(e):typeof e==`function`?e():e,am=U.forwardRef((e,t)=>{let{open:n,autoLock:r,getContainer:i,debug:a,autoDestroy:o=!0,children:s,onEsc:c}=e,[l,u]=U.useState(n),d=l||n;process.env.NODE_ENV!==`production`&&Ba(zi()||!n,`Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR.`),U.useEffect(()=>{(o||n)&&u(n)},[n,o]);let[f,p]=U.useState(()=>im(i));U.useEffect(()=>{let e=im(i);p(()=>e??null)});let[m,h]=Wp(d&&!f,a),g=f??m;Jp(r&&n&&zi()&&(g===m||g===document.body)),nm(n,c);let _=null;s&&W(s)&&t&&(_=ua(s));let v=sa(_,t);if(!d||!zi()||f===void 0)return null;let y=g===!1||Hp(),b=s;return t&&(b=U.cloneElement(s,{ref:v})),U.createElement(Bp.Provider,{value:h},y?b:(0,rm.createPortal)(b,g))});process.env.NODE_ENV!==`production`&&(am.displayName=`Portal`);var om=am;function sm(e){let{prefixCls:t,align:n,arrow:r,arrowPos:i}=e,{className:a,content:o,style:s}=r||{},{x:c=0,y:l=0}=i,u=U.useRef(null);if(!n||!n.points)return null;let d={position:`absolute`};if(n.autoArrow!==!1){let e=n.points[0],t=n.points[1],r=e[0],i=e[1],a=t[0],o=t[1];r===a||![`t`,`b`].includes(r)?d.top=l:r===`t`?d.top=0:d.bottom=0,i===o||![`l`,`r`].includes(i)?d.left=c:i===`l`?d.left=0:d.right=0}return U.createElement(`div`,{ref:u,className:G(`${t}-arrow`,a),style:{...d,...s}},o)}function cm(){return cm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cm.apply(this,arguments)}function lm(e){let{prefixCls:t,open:n,zIndex:r,mask:i,motion:a,mobile:o}=e;return i?U.createElement(ap,cm({},a,{motionAppear:!0,visible:n,removeOnLeave:!0}),({className:e})=>U.createElement(`div`,{style:{zIndex:r},className:G(`${t}-mask`,o&&`${t}-mobile-mask`,e)})):null}var um=U.memo(({children:e})=>e,(e,t)=>t.cache);process.env.NODE_ENV!==`production`&&(um.displayName=`PopupContent`);function dm(e,t,n,r,i,a,o,s){let c=`auto`,l=e?{}:{left:`-1000vw`,top:`-1000vh`,right:c,bottom:c};if(!e&&(t||!n)){let{points:e}=r,t=r.dynamicInset||r._experimental?.dynamicInset,n=t&&e[0][1]===`r`,u=t&&e[0][0]===`b`;n?(l.right=i,l.left=c):(l.left=o,l.right=c),u?(l.bottom=a,l.top=c):(l.top=s,l.bottom=c)}return l}function fm(){return fm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fm.apply(this,arguments)}var pm=U.forwardRef((e,t)=>{let{onEsc:n,popup:r,className:i,prefixCls:a,style:o,target:s,onVisibleChanged:c,open:l,keepDom:u,fresh:d,onClick:f,mask:p,arrow:m,arrowPos:h,align:g,motion:_,maskMotion:v,mobile:y,forceRender:b,getPopupContainer:x,autoDestroy:S,portal:C,children:w,zIndex:T,onMouseEnter:E,onMouseLeave:D,onPointerEnter:O,onPointerDownCapture:k,ready:A,offsetX:j,offsetY:M,offsetR:N,offsetB:ee,onAlign:te,onPrepare:P,onResize:F,stretch:ne,targetWidth:re,targetHeight:ie}=e,I=typeof r==`function`?r():r,ae=l||u,L=!!y,[oe,se,ce]=U.useMemo(()=>y?[y.mask,y.maskMotion,y.motion]:[p,v,_],[y,p,v,_]),le=x?.length>0,[ue,de]=U.useState(!x||!le);Vi(()=>{!ue&&le&&s&&de(!0)},[ue,le,s]);let fe=Ri((e,t)=>{F?.(e,t),te()}),R=dm(L,A,l,g,N,ee,j,M);if(!ue)return null;let z={};return ne&&(ne.includes(`height`)&&ie?z.height=ie:ne.includes(`minHeight`)&&ie&&(z.minHeight=ie),ne.includes(`width`)&&re?z.width=re:ne.includes(`minWidth`)&&re&&(z.minWidth=re)),l||(z.pointerEvents=`none`),U.createElement(C,{open:b||ae,getContainer:x&&(()=>x(s)),autoDestroy:S,onEsc:n},U.createElement(lm,{prefixCls:a,open:l,zIndex:T,mask:oe,motion:se,mobile:L}),U.createElement(No,{onResize:fe,disabled:!l},e=>U.createElement(ap,fm({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:b,leavedClassName:`${a}-hidden`},ce,{onAppearPrepare:P,onEnterPrepare:P,visible:l,onVisibleChanged:e=>{_?.onVisibleChanged?.(e),c(e)}}),({className:n,style:r},s)=>{let c=G(a,n,i,{[`${a}-mobile`]:L});return U.createElement(`div`,{ref:oa(e,t,s),className:c,style:{"--arrow-x":`${h.x||0}px`,"--arrow-y":`${h.y||0}px`,...R,...z,...r,boxSizing:`border-box`,zIndex:T,...o},onMouseEnter:E,onMouseLeave:D,onPointerEnter:O,onClick:f,onPointerDownCapture:k},m&&U.createElement(sm,{prefixCls:a,arrow:m,arrowPos:h,align:g}),U.createElement(um,{cache:!l&&!d},I))})),w)});process.env.NODE_ENV!==`production`&&(pm.displayName=`Popup`);var mm=U.createContext(null),hm=U.createContext(null);function gm(e){return e?Array.isArray(e)?e:[e]:[]}function _m(e,t,n){return U.useMemo(()=>{let r=gm(t??e),i=gm(n??e),a=new Set(r),o=new Set(i);return a.has(`hover`)&&!a.has(`click`)&&a.add(`touch`),o.has(`hover`)&&!o.has(`click`)&&o.add(`touch`),[a,o]},[e,t,n])}function vm(e=[],t=[],n){let r=(e,t)=>e[t]||``;return n?r(e,0)===r(t,0):r(e,0)===r(t,0)&&r(e,1)===r(t,1)}function ym(e,t,n,r){let{points:i}=n,a=Object.keys(e);for(let n=0;n<a.length;n+=1){let o=a[n];if(vm(e[o]?.points,i,r))return`${t}-placement-${o}`}return``}function bm(e){return e.ownerDocument.defaultView}function xm(e){let t=[],n=e?.parentElement,r=[`hidden`,`scroll`,`clip`,`auto`];for(;n;){let{overflowX:e,overflowY:i,overflow:a}=bm(n).getComputedStyle(n);[e,i,a].some(e=>r.includes(e))&&t.push(n),n=n.parentElement}return t}function Sm(e,t=1){return Number.isNaN(e)?t:e}function Cm(e){return Sm(parseFloat(e),0)}function wm(e,t){let n={...e};return(t||[]).forEach(e=>{if(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)return;let{overflow:t,overflowClipMargin:r,borderTopWidth:i,borderBottomWidth:a,borderLeftWidth:o,borderRightWidth:s}=bm(e).getComputedStyle(e),c=e.getBoundingClientRect(),{offsetHeight:l,clientHeight:u,offsetWidth:d,clientWidth:f}=e,p=Cm(i),m=Cm(a),h=Cm(o),g=Cm(s),_=Sm(Math.round(c.width/d*1e3)/1e3),v=Sm(Math.round(c.height/l*1e3)/1e3),y=(d-f-h-g)*_,b=(l-u-p-m)*v,x=p*v,S=m*v,C=h*_,w=g*_,T=0,E=0;if(t===`clip`){let e=Cm(r);T=e*_,E=e*v}let D=c.x+C-T,O=c.y+x-E,k=D+c.width+2*T-C-w-y,A=O+c.height+2*E-x-S-b;n.left=Math.max(n.left,D),n.top=Math.max(n.top,O),n.right=Math.min(n.right,k),n.bottom=Math.min(n.bottom,A)}),n}function Tm(e,t=0){let n=`${t}`,r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function Em(e,t){let[n,r]=t||[];return[Tm(e.width,n),Tm(e.height,r)]}function Dm(e=``){return[e[0],e[1]]}function Om(e,t){let n=t[0],r=t[1],i,a;return a=n===`t`?e.y:n===`b`?e.y+e.height:e.y+e.height/2,i=r===`l`?e.x:r===`r`?e.x+e.width:e.x+e.width/2,{x:i,y:a}}function km(e,t){let n={t:`b`,b:`t`,l:`r`,r:`l`},r=[...e];return r[t]=n[e[t]]||`c`,r}function Am(e){return e.join(``)}function jm(e,t,n,r,i,a,o,s){let[c,l]=U.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[r]||{}}),u=U.useRef(0),d=U.useMemo(()=>!t||s?[]:xm(t),[t]),f=U.useRef({});e||(f.current={});let p=Ri(()=>{if(t&&n&&e&&!s){let e=t,s=e.ownerDocument,p=bm(e),{position:m}=p.getComputedStyle(e),h=e.style.left,g=e.style.top,_=e.style.right,v=e.style.bottom,y=e.style.overflow,b={...i[r],...a},x=s.createElement(`div`);e.parentElement?.appendChild(x),x.style.left=`${e.offsetLeft}px`,x.style.top=`${e.offsetTop}px`,x.style.position=m,x.style.height=`${e.offsetHeight}px`,x.style.width=`${e.offsetWidth}px`,e.style.left=`0`,e.style.top=`0`,e.style.right=`auto`,e.style.bottom=`auto`,e.style.overflow=`hidden`;let S;if(Array.isArray(n))S={x:n[0],y:n[1],width:0,height:0};else{let e=n.getBoundingClientRect();e.x=e.x??e.left,e.y=e.y??e.top,S={x:e.x,y:e.y,width:e.width,height:e.height}}let C=e.getBoundingClientRect(),{height:w,width:T}=p.getComputedStyle(e);C.x=C.x??C.left,C.y=C.y??C.top;let{clientWidth:E,clientHeight:D,scrollWidth:O,scrollHeight:k,scrollTop:A,scrollLeft:j}=s.documentElement,M=C.height,N=C.width,ee=S.height,te=S.width,P={left:0,top:0,right:E,bottom:D},F={left:-j,top:-A,right:O-j,bottom:k-A},{htmlRegion:ne}=b,re=`visible`,ie=`visibleFirst`;ne!==`scroll`&&ne!==ie&&(ne=re);let I=ne===ie,ae=wm(F,d),L=wm(P,d),oe=ne===re?L:ae,se=I?L:oe;e.style.left=`auto`,e.style.top=`auto`,e.style.right=`0`,e.style.bottom=`0`;let ce=e.getBoundingClientRect();e.style.left=h,e.style.top=g,e.style.right=_,e.style.bottom=v,e.style.overflow=y,e.parentElement?.removeChild(x);let le=Sm(Math.round(N/parseFloat(T)*1e3)/1e3),ue=Sm(Math.round(M/parseFloat(w)*1e3)/1e3);if(le===0||ue===0||Ta(n)&&!Da(n))return;let{offset:de,targetOffset:fe}=b,[R,z]=Em(C,de),[pe,me]=Em(S,fe);S.x-=pe,S.y-=me;let[he,B]=b.points||[],ge=Dm(B),_e=Dm(he),ve=Om(S,ge),V=Om(C,_e),ye={...b},be=[_e,ge],xe=ve.x-V.x+R,H=ve.y-V.y+z;function c(e,t,n=oe){let r=C.x+e,i=C.y+t,a=r+N,o=i+M,s=Math.max(r,n.left),c=Math.max(i,n.top),l=Math.min(a,n.right),u=Math.min(o,n.bottom);return Math.max(0,(l-s)*(u-c))}let Se=c(xe,H),Ce=c(xe,H,L),we=Om(S,[`t`,`l`]),Te=Om(C,[`t`,`l`]),Ee=Om(S,[`b`,`r`]),De=Om(C,[`b`,`r`]),{adjustX:Oe,adjustY:ke,shiftX:Ae,shiftY:je}=b.overflow||{},Me=e=>typeof e==`boolean`?e:e>=0,Ne,Pe,Fe,Ie;function u(){Ne=C.y+H,Pe=Ne+M,Fe=C.x+xe,Ie=Fe+N}u();let Le=Me(ke),Re=_e[0]===ge[0];if(Le&&_e[0]===`t`&&(Pe>se.bottom||f.current.bt)){let e=H;Re?e-=M-ee:e=we.y-De.y-z;let t=c(xe,e),n=c(xe,e,L);t>Se||t===Se&&(!I||n>=Ce)?(f.current.bt=!0,H=e,z=-z,be=[km(be[0],0),km(be[1],0)]):f.current.bt=!1}if(Le&&_e[0]===`b`&&(Ne<se.top||f.current.tb)){let e=H;Re?e+=M-ee:e=Ee.y-Te.y-z;let t=c(xe,e),n=c(xe,e,L);t>Se||t===Se&&(!I||n>=Ce)?(f.current.tb=!0,H=e,z=-z,be=[km(be[0],0),km(be[1],0)]):f.current.tb=!1}let ze=Me(Oe),Be=_e[1]===ge[1];if(ze&&_e[1]===`l`&&(Ie>se.right||f.current.rl)){let e=xe;Be?e-=N-te:e=we.x-De.x-R;let t=c(e,H),n=c(e,H,L);t>Se||t===Se&&(!I||n>=Ce)?(f.current.rl=!0,xe=e,R=-R,be=[km(be[0],1),km(be[1],1)]):f.current.rl=!1}if(ze&&_e[1]===`r`&&(Fe<se.left||f.current.lr)){let e=xe;Be?e+=N-te:e=Ee.x-Te.x-R;let t=c(e,H),n=c(e,H,L);t>Se||t===Se&&(!I||n>=Ce)?(f.current.lr=!0,xe=e,R=-R,be=[km(be[0],1),km(be[1],1)]):f.current.lr=!1}ye.points=[Am(be[0]),Am(be[1])],u();let Ve=Ae===!0?0:Ae;typeof Ve==`number`&&(Fe<L.left&&(xe-=Fe-L.left-R,S.x+te<L.left+Ve&&(xe+=S.x-L.left+te-Ve)),Ie>L.right&&(xe-=Ie-L.right-R,S.x>L.right-Ve&&(xe+=S.x-L.right+Ve)));let He=je===!0?0:je;typeof He==`number`&&(Ne<L.top&&(H-=Ne-L.top-z,S.y+ee<L.top+He&&(H+=S.y-L.top+ee-He)),Pe>L.bottom&&(H-=Pe-L.bottom-z,S.y>L.bottom-He&&(H+=S.y-L.bottom+He)));let Ue=C.x+xe,We=Ue+N,Ge=C.y+H,Ke=Ge+M,qe=S.x,Je=qe+te,Ye=S.y,Xe=Ye+ee,Ze=(Math.max(Ue,qe)+Math.min(We,Je))/2-Ue,Qe=(Math.max(Ge,Ye)+Math.min(Ke,Xe))/2-Ge;o?.(t,ye);let $e=ce.right-C.x-(xe+C.width),et=ce.bottom-C.y-(H+C.height);le===1&&(xe=Math.floor(xe),$e=Math.floor($e)),ue===1&&(H=Math.floor(H),et=Math.floor(et)),l({ready:!0,offsetX:xe/le,offsetY:H/ue,offsetR:$e/le,offsetB:et/ue,arrowX:Ze/le,arrowY:Qe/ue,scaleX:le,scaleY:ue,align:ye})}}),m=()=>{u.current+=1;let e=u.current;Promise.resolve().then(()=>{u.current===e&&p()})},h=()=>{l(e=>({...e,ready:!1}))};return Vi(h,[r]),Vi(()=>{e||h()},[e]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,m]}function Mm(){let e=U.useRef(null),t=()=>{e.current&&=(clearTimeout(e.current),null)};return U.useEffect(()=>()=>{t()},[]),(n,r)=>{t(),r===0?n():e.current=setTimeout(()=>{n()},r*1e3)}}function Nm(e,t,n,r,i){Vi(()=>{if(e&&t&&n){let e=t,o=n,s=xm(e),c=xm(o),l=bm(o),u=new Set([l,...s,...c]);function a(){r(),i()}return u.forEach(e=>{e.addEventListener(`scroll`,a,{passive:!0})}),l.addEventListener(`resize`,a,{passive:!0}),r(),()=>{u.forEach(e=>{e.removeEventListener(`scroll`,a),l.removeEventListener(`resize`,a)})}}},[e,t,n])}function Pm(e,t,n,r,i,a,o,s){let c=U.useRef(e);c.current=e;let l=U.useRef(!1);U.useEffect(()=>{if(t&&r&&(!i||a)){let e=()=>{l.current=!1},t=e=>{c.current&&!o(e.composedPath?.()?.[0]||e.target)&&!l.current&&s(!1)},i=bm(r);i.addEventListener(`pointerdown`,e,!0),i.addEventListener(`mousedown`,t,!0),i.addEventListener(`contextmenu`,t,!0);let a=Aa(n);if(a&&(a.addEventListener(`mousedown`,t,!0),a.addEventListener(`contextmenu`,t,!0)),process.env.NODE_ENV!==`production`&&n){let e=n.getRootNode?.(),t=r.getRootNode?.();Ia(e===t,`trigger element and popup element should in same shadow root.`)}return()=>{i.removeEventListener(`pointerdown`,e,!0),i.removeEventListener(`mousedown`,t,!0),i.removeEventListener(`contextmenu`,t,!0),a&&(a.removeEventListener(`mousedown`,t,!0),a.removeEventListener(`contextmenu`,t,!0))}}},[t,n,r,i,a]);function u(){l.current=!0}return u}function Fm(){let[e,t]=U.useState(null),[n,r]=U.useState(!1),[i,a]=U.useState(!1),o=U.useRef(null);return[Ri(e=>{e===!1?(o.current=null,r(!1)):i&&n?o.current=e:(r(!0),t(e),o.current=null,n||a(!0))}),n,e,Ri(e=>{e?(a(!1),o.current&&=(t(o.current),null)):(a(!1),o.current=null)})]}function Im(){return Im=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Im.apply(this,arguments)}var Lm=e=>{let{prefixCls:t,isMobile:n,ready:r,open:i,align:a,offsetR:o,offsetB:s,offsetX:c,offsetY:l,arrowPos:u,popupSize:d,motion:f,uniqueContainerClassName:p,uniqueContainerStyle:m}=e,h=`${t}-unique-container`,[g,_]=U.useState(!1),v=dm(n,r,i,a,o,s,c,l),y=U.useRef(v);r&&(y.current=v);let b={};return d&&(b.width=d.width,b.height=d.height),U.createElement(ap,Im({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,leavedClassName:`${h}-hidden`},f,{visible:i,onVisibleChanged:e=>{_(e)}}),({className:e,style:t})=>{let n=G(h,e,p,{[`${h}-visible`]:g});return U.createElement(`div`,{className:n,style:{"--arrow-x":`${u?.x||0}px`,"--arrow-y":`${u?.y||0}px`,...y.current,...b,...t,...m}})})},Rm=({children:e,postTriggerProps:t})=>{let[n,r,i,a]=Fm(),o=U.useMemo(()=>!i||!t?i:t(i),[i,t]),[s,c]=U.useState(null),[l,u]=U.useState(null),d=U.useRef(null),f=Ri(e=>{d.current=e,Ta(e)&&s!==e&&c(e)}),p=U.useRef(null),m=Mm(),h=Ri((e,t)=>{p.current=t,m(()=>{n(e)},e.delay)}),g=e=>{m(()=>{p.current?.()||n(!1)},e)},_=Ri(e=>{a(e)}),[v,y,b,x,S,C,w,,,T,E]=jm(r,s,o?.target,o?.popupPlacement,o?.builtinPlacements||{},o?.popupAlign,void 0,!1),D=U.useMemo(()=>o?G(ym(o.builtinPlacements||{},o.prefixCls||``,T,!1),o.getPopupClassNameFromAlign?.(T)):``,[T,o?.getPopupClassNameFromAlign,o?.builtinPlacements,o?.prefixCls]),O=U.useMemo(()=>({show:h,hide:g}),[]);U.useEffect(()=>{E()},[o?.target]);let k=Ri(()=>(E(),Promise.resolve())),A=U.useRef({}),j=U.useContext(mm),M=U.useMemo(()=>({registerSubPopup:(e,t)=>{A.current[e]=t,j?.registerSubPopup(e,t)}}),[j]),N=o?.prefixCls;return U.createElement(hm.Provider,{value:O},e,o&&U.createElement(mm.Provider,{value:M},U.createElement(pm,{ref:f,portal:om,onEsc:o.onEsc,prefixCls:N,popup:o.popup,className:G(o.popupClassName,D,`${N}-unique-controlled`),style:o.popupStyle,target:o.target,open:r,keepDom:!0,fresh:!0,autoDestroy:!1,onVisibleChanged:_,ready:v,offsetX:y,offsetY:b,offsetR:x,offsetB:S,onAlign:E,onPrepare:k,onResize:e=>u({width:e.offsetWidth,height:e.offsetHeight}),arrowPos:{x:C,y:w},align:T,zIndex:o.zIndex,mask:o.mask,arrow:o.arrow,motion:o.popupMotion,maskMotion:o.maskMotion,getPopupContainer:o.getPopupContainer},U.createElement(Lm,{prefixCls:N,isMobile:!1,ready:v,open:r,align:T,offsetR:x,offsetB:S,offsetX:y,offsetY:b,arrowPos:{x:C,y:w},popupSize:l,motion:o.popupMotion,uniqueContainerClassName:G(o.uniqueContainerClassName,D),uniqueContainerStyle:o.uniqueContainerStyle}))))};function zm(e=om){let t=U.forwardRef((t,n)=>{let{prefixCls:r=`rc-trigger-popup`,children:i,action:a=`hover`,showAction:o,hideAction:s,popupVisible:c,defaultPopupVisible:l,onOpenChange:u,afterOpenChange:d,onPopupVisibleChange:f,afterPopupVisibleChange:p,mouseEnterDelay:m,mouseLeaveDelay:h=.1,focusDelay:g,blurDelay:_,mask:v,maskClosable:y=!0,getPopupContainer:b,forceRender:x,autoDestroy:S,popup:C,popupClassName:w,uniqueContainerClassName:T,uniqueContainerStyle:E,popupStyle:D,popupPlacement:O,builtinPlacements:k={},popupAlign:A,zIndex:j,stretch:M,getPopupClassNameFromAlign:N,fresh:ee,unique:te,alignPoint:P,onPopupClick:F,onPopupAlign:ne,arrow:re,popupMotion:ie,maskMotion:I,mobile:ae,...L}=t,oe=S||!1,se=c===void 0,ce=!!ae,le=U.useRef({}),ue=U.useContext(mm),de=U.useMemo(()=>({registerSubPopup:(e,t)=>{le.current[e]=t,ue?.registerSubPopup(e,t)}}),[ue]),fe=U.useContext(hm),R=qi(),[z,pe]=U.useState(null),me=U.useRef(null),he=Ri(e=>{me.current=e,Ta(e)&&z!==e&&pe(e),ue?.registerSubPopup(R,e)}),[B,ge]=U.useState(null),_e=U.useRef(null),ve=Ri(e=>{let t=Ea(e);Ta(t)&&B!==t&&(ge(t),_e.current=t)}),V={},ye=Ri(e=>{let t=B;return t?.contains(e)||Aa(t)?.host===e||e===t||z?.contains(e)||Aa(z)?.host===e||e===z||Object.values(le.current).some(t=>t?.contains(e)||e===t)}),be=re?{...re===!0?{}:re}:null,[xe,H]=Ui(l||!1,c),Se=xe||!1,Ce=U.useMemo(()=>{let e=typeof i==`function`?i({open:Se}):i;return U.Children.only(e)},[i,Se]),we=Ce?.props||{},Te=Ri(()=>Se),Ee=Ri((e=0)=>({popup:C,target:B,delay:e,prefixCls:r,popupClassName:w,uniqueContainerClassName:T,uniqueContainerStyle:E,popupStyle:D,popupPlacement:O,builtinPlacements:k,popupAlign:A,zIndex:j,mask:v,maskClosable:y,popupMotion:ie,maskMotion:I,arrow:be,getPopupContainer:b,getPopupClassNameFromAlign:N,id:R,onEsc:je}));Vi(()=>{fe&&te&&B&&!se&&!ue&&(Se?fe.show(Ee(m),Te):fe.hide(h))},[Se,B]);let De=U.useRef(Se);De.current=Se;let Oe=Ri(e=>{(0,rm.flushSync)(()=>{Se!==e&&(H(e),u?.(e),f?.(e))})}),ke=Mm(),Ae=(e,t=0)=>{if(c!==void 0){ke(()=>{Oe(e)},t);return}if(fe&&te&&se&&!ue){e?fe.show(Ee(t),Te):fe.hide(t);return}ke(()=>{Oe(e)},t)};function je({top:e}){e&&Ae(!1)}let[Me,Ne]=U.useState(!1);Vi(e=>{(!e||Se)&&Ne(!0)},[Se]);let[Pe,Fe]=U.useState(null),[Ie,Le]=U.useState(null),Re=e=>{Le([e.clientX,e.clientY])},[ze,Be,Ve,He,Ue,We,Ge,Ke,qe,Je,Ye]=jm(Se,z,P&&Ie!==null?Ie:B,O,k,A,ne,ce),[Xe,Ze]=_m(a,o,s),Qe=Xe.has(`click`),$e=Ze.has(`click`)||Ze.has(`contextMenu`),et=Ri(()=>{Me||Ye()});Nm(Se,B,z,et,()=>{De.current&&P&&$e&&Ae(!1)}),Vi(()=>{et()},[Ie,O]),Vi(()=>{Se&&!k?.[O]&&et()},[JSON.stringify(A)]);let tt=U.useMemo(()=>G(ym(k,r,Je,P),N?.(Je)),[Je,N,k,r,P]);U.useImperativeHandle(n,()=>({nativeElement:_e.current,popupElement:me.current,forceAlign:et}));let[nt,rt]=U.useState(0),[it,at]=U.useState(0),ot=()=>{if(M&&B){let e=B.getBoundingClientRect();rt(e.width),at(e.height)}},st=()=>{ot(),et()},ct=e=>{Ne(!1),Ye(),d?.(e),p?.(e)},lt=()=>new Promise(e=>{ot(),Fe(()=>e)});Vi(()=>{Pe&&(Ye(),Pe(),Fe(null))},[Pe]);function ut(e,t,n,r,i){V[e]=(a,...o)=>{(!i||!i())&&(r?.(a),Ae(t,n)),we[e]?.(a,...o)}}let dt=Xe.has(`touch`),ft=Ze.has(`touch`),pt=U.useRef(!1);(dt||ft)&&(V.onTouchStart=(...e)=>{pt.current=!0,De.current&&ft?Ae(!1):!De.current&&dt&&Ae(!0),we.onTouchStart?.(...e)}),(Qe||$e)&&(V.onClick=(e,...t)=>{De.current&&$e?Ae(!1):!De.current&&Qe&&(Re(e),Ae(!0)),we.onClick?.(e,...t),pt.current=!1});let mt=Pm(Se,$e||ft,B,z,v,y,ye,Ae),ht=Xe.has(`hover`),gt=Ze.has(`hover`),_t,vt,yt=()=>pt.current;if(ht){let e=e=>{Re(e)};ut(`onMouseEnter`,!0,m,e,yt),ut(`onPointerEnter`,!0,m,e,yt),_t=e=>{(Se||Me)&&z?.contains(e.target)&&Ae(!0,m)},P&&(V.onMouseMove=e=>{we.onMouseMove?.(e)})}gt&&(ut(`onMouseLeave`,!1,h,void 0,yt),ut(`onPointerLeave`,!1,h,void 0,yt),vt=()=>{Ae(!1,h)}),Xe.has(`focus`)&&ut(`onFocus`,!0,g),Ze.has(`focus`)&&ut(`onBlur`,!1,_),Xe.has(`contextMenu`)&&(V.onContextMenu=(e,...t)=>{De.current&&Ze.has(`contextMenu`)?Ae(!1):(Re(e),Ae(!0)),e.preventDefault(),we.onContextMenu?.(e,...t)});let bt=U.useRef(!1);bt.current||=x||Se||Me;let xt={...we,...V},St={};[`onContextMenu`,`onClick`,`onMouseDown`,`onTouchStart`,`onMouseEnter`,`onMouseLeave`,`onFocus`,`onBlur`].forEach(e=>{L[e]&&(St[e]=(...t)=>{xt[e]?.(...t),L[e](...t)})});let Ct={x:We,y:Ge};Do(Se,B,st);let wt=sa(ve,ua(Ce)),Tt=U.cloneElement(Ce,{...xt,...St,ref:wt});return U.createElement(U.Fragment,null,Tt,bt.current&&(!fe||!te)&&U.createElement(mm.Provider,{value:de},U.createElement(pm,{portal:e,ref:he,prefixCls:r,popup:C,className:G(w,!ce&&tt),style:D,target:B,onMouseEnter:_t,onMouseLeave:vt,onPointerEnter:_t,zIndex:j,open:Se,keepDom:Me,fresh:ee,onClick:F,onPointerDownCapture:mt,mask:v,motion:ie,maskMotion:I,onVisibleChanged:ct,onPrepare:lt,forceRender:x,autoDestroy:oe,getPopupContainer:b,onEsc:je,align:Je,arrow:be,arrowPos:Ct,ready:ze,offsetX:Be,offsetY:Ve,offsetR:He,offsetB:Ue,onAlign:et,stretch:M,targetWidth:nt/Ke,targetHeight:it/qe,mobile:ae})))});return process.env.NODE_ENV!==`production`&&(t.displayName=`Trigger`),t}var Bm=zm(om);function Vm(e){return e&&U.isValidElement(e)&&e.type===U.Fragment}var Hm=(e,t,n)=>U.isValidElement(e)?U.cloneElement(e,lp(n)?n(e.props||{}):n):t;function Um(e,t){return Hm(e,e,t)}var Wm=({children:e})=>{let{getPrefixCls:t}=U.useContext(Vo),n=t();return U.isValidElement(e)?U.createElement(ap,{visible:!0,motionName:`${n}-fade`,motionAppear:!0,motionEnter:!0,motionLeave:!1,removeOnLeave:!1},({style:t,className:n})=>Um(e,e=>({className:G(e.className,n),style:{...e.style,...t}}))):e},Gm=[null,null];function Km(e){if(Gm[0]!==e){let t={};Object.keys(e).forEach(n=>{t[n]={...e[n],dynamicInset:!1}}),Gm[0]=e,Gm[1]=t}return Gm[1]}var qm=({children:e})=>U.createElement(Rm,{postTriggerProps:e=>{let{id:t,builtinPlacements:n,popup:r}=e,i=lp(r)?r():r,a=Km(n);return{...e,getPopupContainer:null,arrow:!1,popup:U.createElement(Wm,{key:t},i),builtinPlacements:a}}},e),Jm=U.createContext(!1),Ym=({children:e,disabled:t})=>{let n=U.useContext(Jm);return U.createElement(Jm.Provider,{value:t??n},e)},Xm=U.createContext(void 0),Zm=({children:e,size:t})=>{let n=U.useContext(Xm);return U.createElement(Xm.Provider,{value:t||n},e)};function Qm(){return{componentDisabled:(0,U.useContext)(Jm),componentSize:(0,U.useContext)(Xm)}}function $m(e,t,n){let r=vo(`ConfigProvider`),i=e||{},a=i.inherit===!1||!t?{...pd,hashed:t?.hashed??pd.hashed,cssVar:t?.cssVar}:t,o=(0,U.useId)();if(process.env.NODE_ENV!==`production`){let e=i.cssVar||a.cssVar,t=!!(cp(i.cssVar)&&i.cssVar?.key||o);process.env.NODE_ENV!==`production`&&r(!e||t,`breaking`,"Missing key in `cssVar` config. Please upgrade to React 18 or set `cssVar.key` manually in each ConfigProvider inside `cssVar` enabled ConfigProvider.")}return Ji(()=>{if(!e)return t;let r={...a.components};Object.keys(e.components||{}).forEach(t=>{r[t]={...r[t],...e.components[t]}});let s=`css-var-${o.replace(/:/g,``)}`,c={prefix:n?.prefixCls,...a.cssVar,...i.cssVar,key:i.cssVar?.key||s};return{...a,...i,token:{...a.token,...i.token},components:r,cssVar:c}},[i,a],(e,t)=>e.some((e,n)=>{let r=t[n];return!Ha(e,r,!0)}))}var eh=U.createContext(!0);process.env.NODE_ENV!==`production`&&(eh.displayName=`MotionCacheContext`);function th(e){let t=U.useContext(eh),{children:n}=e,[,r]=Sd(),{motion:i}=r,a=U.useRef(!1);return a.current||=t!==i,a.current?U.createElement(eh.Provider,{value:i},U.createElement(_f,{motion:i},n)):n}var nh=U.memo(e=>{let{dropdownMatchSelectWidth:t}=e;return vo(`ConfigProvider`).deprecated(t===void 0,`dropdownMatchSelectWidth`,`popupMatchSelectWidth`),null});process.env.NODE_ENV!==`production`&&(nh.displayName=`PropWarning`);var rh=process.env.NODE_ENV===`production`?()=>null:nh,ih=({iconPrefixCls:e,csp:t})=>(Fd(e,t),null),ah=!1,oh=process.env.NODE_ENV===`production`?null:e=>{process.env.NODE_ENV!==`production`&&go(!ah,e,`Static function can not consume context like dynamic theme. Please use 'App' component instead.`)},sh=[`getTargetContainer`,`getPopupContainer`,`renderEmpty`,`input`,`pagination`,`form`,`select`,`button`],ch,lh,uh,dh;function fh(){return ch||`ant`}function ph(){return lh||`anticon`}var mh=e=>{let{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:i}=e;t!==void 0&&(ch=t),n!==void 0&&(lh=n),`holderRender`in e&&(dh=i),r&&(uh=r)},hh=()=>({getPrefixCls:(e,t)=>t||(e?`${fh()}-${e}`:fh()),getIconPrefixCls:ph,getRootPrefixCls:()=>ch||fh(),getTheme:()=>uh,holderRender:dh}),gh=e=>{let{children:t,csp:n,autoInsertSpaceInButton:r,alert:i,affix:a,anchor:o,app:s,form:c,locale:l,componentSize:u,direction:d,space:f,splitter:p,virtual:m,dropdownMatchSelectWidth:h,popupMatchSelectWidth:g,popupOverflow:_,legacyLocale:v,parentContext:y,iconPrefixCls:b,theme:x,componentDisabled:S,segmented:C,statistic:w,spin:T,calendar:E,carousel:D,cascader:O,collapse:k,typography:A,checkbox:j,descriptions:M,divider:N,drawer:ee,skeleton:te,steps:P,image:F,layout:ne,list:re,mentions:ie,modal:I,progress:ae,result:L,slider:oe,breadcrumb:se,masonry:ce,menu:le,pagination:ue,input:de,inputPassword:fe,inputSearch:R,textArea:z,otp:pe,empty:me,badge:he,borderBeam:B,radio:ge,rate:_e,ribbon:ve,switch:V,transfer:ye,avatar:be,message:xe,tag:H,table:Se,card:Ce,cardMeta:we,tabs:Te,timeline:Ee,timePicker:De,upload:Oe,notification:ke,tree:Ae,colorPicker:je,datePicker:Me,rangePicker:Ne,flex:Pe,wave:Fe,dropdown:Ie,warning:Le,tour:Re,tooltip:ze,popover:Be,popconfirm:Ve,qrcode:He,floatButton:Ue,floatButtonGroup:We,variant:Ge,inputNumber:Ke,treeSelect:qe,watermark:Je}=e,Ye=U.useMemo(()=>cp(l)&&Object.prototype.hasOwnProperty.call(l,`default`)&&l.default?.locale?l.default:l,[l]),Xe=U.useCallback((t,n)=>{let{prefixCls:r}=e;if(n)return n;let i=r||y.getPrefixCls(``);return t?`${i}-${t}`:i},[y.getPrefixCls,e.prefixCls]),Ze=b||y.iconPrefixCls||`anticon`,Qe=n||y.csp,$e=$m(x,y.theme,{prefixCls:Xe(``)});process.env.NODE_ENV!==`production`&&(ah||=!!$e);let et={csp:Qe,autoInsertSpaceInButton:r,alert:i,affix:a,anchor:o,app:s,locale:Ye||v,direction:d,space:f,splitter:p,virtual:m,popupMatchSelectWidth:g??h,popupOverflow:_,getPrefixCls:Xe,iconPrefixCls:Ze,theme:$e,segmented:C,statistic:w,spin:T,calendar:E,carousel:D,cascader:O,collapse:k,typography:A,checkbox:j,descriptions:M,divider:N,drawer:ee,skeleton:te,steps:P,image:F,input:de,inputPassword:fe,inputSearch:R,textArea:z,otp:pe,layout:ne,list:re,mentions:ie,modal:I,progress:ae,result:L,slider:oe,breadcrumb:se,masonry:ce,menu:le,pagination:ue,empty:me,badge:he,borderBeam:B,radio:ge,rate:_e,ribbon:ve,switch:V,transfer:ye,avatar:be,message:xe,tag:H,table:Se,card:Ce,cardMeta:we,tabs:Te,timeline:Ee,timePicker:De,upload:Oe,notification:ke,tree:Ae,colorPicker:je,datePicker:Me,rangePicker:Ne,flex:Pe,wave:Fe,dropdown:Ie,warning:Le,tour:Re,tooltip:ze,popover:Be,popconfirm:Ve,qrcode:He,floatButton:Ue,floatButtonGroup:We,variant:Ge,inputNumber:Ke,treeSelect:qe,watermark:Je};process.env.NODE_ENV!==`production`&&vo(`ConfigProvider`)(!(`autoInsertSpaceInButton`in e),`deprecated`,"`autoInsertSpaceInButton` is deprecated. Please use `{ button: { autoInsertSpace: boolean }}` instead.");let tt={...y};Object.keys(et).forEach(e=>{et[e]!==void 0&&(tt[e]=et[e])}),sh.forEach(t=>{let n=e[t];n&&(tt[t]=n)}),r!==void 0&&(tt.button={autoInsertSpace:r,...tt.button});let nt=Ji(()=>tt,tt,(e,t)=>{let n=Object.keys(e),r=Object.keys(t);return n.length!==r.length||n.some(n=>e[n]!==t[n])}),{layer:rt}=U.useContext(ns),it=U.useMemo(()=>({prefixCls:Ze,csp:Qe,layer:rt?`antd`:void 0}),[Ze,Qe,rt]),at=U.createElement(U.Fragment,null,U.createElement(ih,{iconPrefixCls:Ze,csp:Qe}),U.createElement(rh,{dropdownMatchSelectWidth:h}),t),ot=U.useMemo(()=>lo(Mp.Form?.defaultValidateMessages||{},nt.locale?.Form?.defaultValidateMessages||{},nt.form?.validateMessages||{},c?.validateMessages||{}),[nt,c?.validateMessages]);Object.keys(ot).length>0&&(at=U.createElement(vp.Provider,{value:ot},at)),Ye&&(at=U.createElement(zp,{locale:Ye,_ANT_MARK__:Rp},at)),(Ze||Qe)&&(at=U.createElement(Ld.Provider,{value:it},at)),u&&(at=U.createElement(Zm,{size:u},at)),at=U.createElement(th,null,at),ze?.unique&&(at=U.createElement(qm,null,at));let st=U.useMemo(()=>{let{algorithm:e,token:t,components:n,cssVar:r,...i}=$e||{},a=e&&(!Array.isArray(e)||e.length>0)?ls(e):fd,o={};Object.entries(n||{}).forEach(([e,t])=>{let n={...t};`algorithm`in n&&(n.algorithm===!0?n.theme=a:(Array.isArray(n.algorithm)||lp(n.algorithm))&&(n.theme=ls(n.algorithm)),delete n.algorithm),o[e]=n});let s={...cu,...t};return{...i,theme:a,token:s,components:o,override:{override:s,...o},cssVar:r}},[$e]);return x&&(at=U.createElement(md.Provider,{value:st},at)),nt.warning&&(at=U.createElement(_o.Provider,{value:nt.warning},at)),S!==void 0&&(at=U.createElement(Ym,{disabled:S},at)),U.createElement(Vo.Provider,{value:nt},at)},_h=e=>{let t=U.useContext(Vo),n=U.useContext(Ip);return U.createElement(gh,{parentContext:t,legacyLocale:n,...e})};_h.ConfigContext=Vo,_h.SizeContext=Xm,_h.config=mh,_h.useConfig=Qm,Object.defineProperty(_h,`SizeContext`,{get:()=>(process.env.NODE_ENV!==`production`&&go(!1,`ConfigProvider`,"ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),Xm)}),process.env.NODE_ENV!==`production`&&(_h.displayName=`ConfigProvider`);function vh(){let[e,t]=U.useState({});return[e,U.useCallback((e,n)=>{if(!n){t(t=>{if(!(e in t))return t;let n={...t};return delete n[e],n});return}let r={width:n.offsetWidth,height:n.offsetHeight};t(t=>{let n=t[e];return n&&n.width===r.width&&n.height===r.height?t:{...t,[e]:r}})},[])]}function yh(e,t,n=0){let[r,i]=vh(),[a,o,s,c]=U.useMemo(()=>{let i=0,a=0,o=t?.threshold??0,s=new Map,c,l;return e.slice().reverse().forEach((e,u)=>{let d=String(e.key),f=r[d]?.height??0,p=t&&u>0?i+(t.offset??0)-f:i;s.set(d,p),u===0&&(c=f,l=r[d]?.width??0),(!t||u<o)&&(a=Math.max(a,p+f)),t?i=p+f:i+=f+n}),[s,a,c,l]},[e,n,r,t]);return[a,i,o,s,c]}var bh=8,xh=3,Sh=e=>{let t={offset:bh,threshold:xh};return e&&typeof e==`object`&&(t.offset=e.offset??bh,t.threshold=e.threshold??xh),[!!e,t]};function Ch(e,t,n){let r=Math.max(typeof e==`number`?e:0,0)*1e3,i=Ri(t),a=Ri(n),[o,s]=U.useState(r>0),c=U.useRef(0),l=U.useRef(null);function u(){let e=Date.now(),t=l.current;t!==null&&(c.current+=e-t),l.current=e}let d=U.useCallback(()=>{u(),s(!1)},[]),f=U.useCallback(()=>{r>0?(l.current=Date.now(),s(!0)):a(0)},[r]);return U.useEffect(()=>{c.current=0,s(r>0)},[r]),U.useEffect(()=>{if(!o)return;let e=null;function t(){u(),c.current>=r?(a(1),i()):(a(Math.min(c.current/r,1)),e=$a(t))}return t(),()=>{$a.cancel(e)}},[r,o]),[f,d]}function wh(e){let t=U.useMemo(()=>e===!1?{closeIcon:null,disabled:!0}:typeof e==`object`&&e?e:{},[e]),n=U.useMemo(()=>({...t,closeIcon:`closeIcon`in t?t.closeIcon:`×`,disabled:t.disabled??!1}),[t]),r=U.useMemo(()=>qa(n,!0),[n]);return[!!e,n,r]}var Th=({className:e,style:t,percent:n})=>U.createElement(`progress`,{className:e,max:`100`,value:n,style:t});function Eh(){return Eh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Eh.apply(this,arguments)}var Dh=U.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:i,classNames:a,styles:o,components:s,title:c,description:l,icon:u,actions:d,role:f,closable:p,offset:m,notificationIndex:h,stackInThreshold:g,props:_,duration:v=4.5,showProgress:y,hovering:b,pauseOnHover:x=!0,onClick:S,onMouseEnter:C,onMouseLeave:w,onClose:T}=e,[E,D]=U.useState(0),O=`${n}-notice`,[k,A,j]=wh(p),M=Ri(()=>{A.onClose?.(),T?.()}),[N,ee]=U.useState(!1),[te,P]=Ch(v,M,D),F=100-Math.min(Math.max(E*100,0),100),ne=s?.progress||Th;U.useEffect(()=>{x&&(b?P():N||te())},[b,N,P,te,x]);function re(e){ee(!0),x&&P(),C?.(e)}function ie(e){ee(!1),x&&!b&&te(),w?.(e)}function I(e){e.preventDefault(),e.stopPropagation(),M()}let ae=U.useRef(m);m!==void 0&&(ae.current=m);let L=U.useRef(h);h!==void 0&&(L.current=h);let oe=m??ae.current,se=h??L.current??0,ce=c==null?null:U.createElement(`div`,{className:G(`${O}-title`,a?.title),style:o?.title},c),le=l==null?null:U.createElement(`div`,{className:G(`${O}-description`,a?.description),style:o?.description},l),ue=ce!==null,de=le!==null,fe=null;fe=ue&&de?U.createElement(`div`,{className:G(`${O}-section`,a?.section),style:o?.section},ce,le):ce||le,u!=null&&(fe=U.createElement(`div`,{className:G(`${O}-wrapper`,a?.wrapper),style:o?.wrapper},U.createElement(`div`,{className:G(`${O}-icon`,a?.icon),style:o?.icon},u),fe));let R=d?U.createElement(`div`,{className:G(`${O}-actions`,a?.actions),style:o?.actions},d):null,z={"--notification-index":se,...o?.root,...i};oe!==void 0&&(z[`--notification-y`]=`${oe}px`);let pe=f??_?.role??`alert`;return U.createElement(`div`,Eh({},_,{ref:t,role:pe,"data-notification-index":se,className:G(O,r,a?.root,{[`${O}-closable`]:k,[`${O}-stack-in-threshold`]:g}),style:z,onClick:S,onMouseEnter:re,onMouseLeave:ie}),fe,R,k&&U.createElement(`button`,Eh({className:G(`${O}-close`,a?.close),"aria-label":`Close`},j,{style:o?.close,onClick:I}),A.closeIcon),y&&typeof v==`number`&&v>0&&U.createElement(ne,{className:G(`${O}-progress`,a?.progress),percent:F,style:o?.progress}))});process.env.NODE_ENV!==`production`&&(Dh.displayName=`Notification`);var Oh=U.createContext({}),kh=({children:e,classNames:t})=>{let n=U.useMemo(()=>({classNames:t}),[t]);return U.createElement(Oh.Provider,{value:n},e)};function Ah(){return Ah=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ah.apply(this,arguments)}var jh=U.forwardRef((e,t)=>{let{listPrefixCls:n,height:r,topNoticeHeight:i=0,topNoticeWidth:a=0,className:o,style:s,...c}=e,l=`${n}-content`,u=U.useRef(r),d=r<u.current?`decrease`:`increase`;u.current=r;let f={...s,height:r,"--top-notificiation-height":`${i}px`,"--top-notificiation-width":`${a}px`};return U.createElement(`div`,Ah({},c,{className:G(l,`${l}-${d}`,o),style:f,ref:t}))});process.env.NODE_ENV!==`production`&&(jh.displayName=`NotificationListContent`);function Mh(){return Mh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Mh.apply(this,arguments)}var Nh=[`wrapper`,`root`,`icon`,`section`,`title`,`description`,`actions`,`close`,`progress`];function Ph(e){return Nh.reduce((t,n)=>(t[n]=G(...e.map(e=>e?.[n])),t),{})}function Fh(e){return Nh.reduce((t,n)=>(t[n]=Object.assign({},...e.map(e=>e?.[n])),t),{})}function Ih(e,t){let n=String(t),r=e.findIndex(e=>e.key===n);if(r!==-1)return e.length-r-1}var Lh=e=>{let{config:t,components:n,contextClassNames:r,classNames:i,styles:a,className:o,style:s,nodeRef:c,listHovering:l,stackEnabled:u,pauseOnHover:d,setNodeSize:f,onNoticeClose:p,...m}=e,{key:h,placement:g,..._}=t,v=String(h),y=sa(c,U.useCallback(e=>{f(v,e)},[f,v]));return U.createElement(Dh,Mh({},_,m,{ref:y,className:G(r?.notice,t.className,o),style:{...s,...t.style},classNames:Ph([i,t.classNames]),styles:Fh([a,t.styles]),components:{...n,...t.components},hovering:u&&l,pauseOnHover:t.pauseOnHover??d,onClose:()=>{t.onClose?.(),p?.(h)}}))},Rh=e=>{let{configList:t=[],prefixCls:n=`rc-notification`,pauseOnHover:r,classNames:i,styles:a,components:o,stack:s,motion:c,placement:l,className:u,style:d,onNoticeClose:f,onAllRemoved:p}=e,{classNames:m}=U.useContext(Oh),h=U.useMemo(()=>t.map(e=>({config:e,key:String(e.key)})),[t]),g=typeof c==`function`?c(l):c,[_,{offset:v,threshold:y}]=Sh(s),[b,x]=U.useState(!1),S=_&&(b||h.length<=y),C=U.useMemo(()=>{if(!(!_||S))return{offset:v,threshold:y}},[S,v,_,y]),[w,T]=U.useState(0),E=U.useRef(null),[D,O,k,A,j]=yh(t,C,w),M=!!t.length;U.useEffect(()=>{let e=E.current;if(!e)return;let{gap:t,rowGap:n}=window.getComputedStyle(e),r=parseFloat(n||t)||0;T(e=>e===r?e:r)},[M]);let N=`${n}-list`;return U.createElement(`div`,{className:G(n,N,`${n}-${l}`,m?.list,u,i?.list,{[`${n}-stack`]:_,[`${n}-stack-expanded`]:S,[`${N}-hovered`]:b}),onMouseEnter:()=>{x(!0)},onMouseLeave:()=>{x(!1)},style:{...a?.list,...d}},U.createElement(jh,{listPrefixCls:N,height:k,topNoticeHeight:A,topNoticeWidth:j,className:i?.listContent,style:a?.listContent,ref:E},U.createElement(ip,Mh({component:!1,keys:h,motionAppear:!0},g,{onAllRemoved:()=>{l&&p?.(l)}}),({config:e,className:t,style:s},c)=>{let{key:l}=e,u=String(l),d=Ih(h,l),p=_&&d!==void 0&&d<y;return U.createElement(Lh,{key:l,config:e,components:o,contextClassNames:m,classNames:i,styles:a,className:t,style:s,nodeRef:c,prefixCls:n,offset:D.get(u),notificationIndex:d,stackInThreshold:p,listHovering:b,stackEnabled:_,pauseOnHover:r,setNodeSize:O,onNoticeClose:f})})))},zh=U.forwardRef((e,t)=>{let{prefixCls:n=`rc-notification`,container:r,motion:i,maxCount:a,pauseOnHover:o,classNames:s,styles:c,components:l,className:u,style:d,onAllRemoved:f,stack:p,renderNotifications:m}=e,[h,g]=U.useState([]),[_,v]=U.useState({}),y=U.useRef(!1);U.useImperativeHandle(t,()=>({open:e=>{g(t=>{let n=[...t],r=n.findIndex(t=>t.key===e.key),i={...e};return r>=0?(i.times=(t[r]?.times??0)+1,n[r]=i):(i.times=0,n.push(i)),a&&a>0&&n.length>a&&(n=n.slice(-a)),n})},close:e=>{g(t=>t.filter(t=>t.key!==e))},destroy:()=>{g([])}})),U.useEffect(()=>{let e={};h.forEach(t=>{let n=t.placement??`topRight`;e[n]=e[n]||[],e[n].push(t)}),Object.keys(_).forEach(t=>{e[t]=e[t]||[]}),v(e)},[h]);let b=Ri(e=>{v(t=>{let n={...t};return(n[e]||[]).length||delete n[e],n})});if(U.useEffect(()=>{Object.keys(_).length>0?y.current=!0:y.current&&=(f?.(),!1)},[_,f]),!r)return null;let x=Object.keys(_);return(0,rm.createPortal)(U.createElement(U.Fragment,null,x.map(e=>{let t=U.createElement(Rh,{key:e,configList:_[e],placement:e,prefixCls:n,pauseOnHover:o,classNames:s,styles:c,components:l,className:u?.(e),style:d?.(e),motion:i,stack:p,onNoticeClose:e=>{g(t=>t.filter(t=>t.key!==e))},onAllRemoved:b});return m?U.cloneElement(m(t,{prefixCls:n,key:e}),{key:e}):t})),r)});process.env.NODE_ENV!==`production`&&(zh.displayName=`Notifications`);var Bh=()=>document.body,Vh=0;function Hh(...e){let t={};return e.forEach(e=>{e&&Object.keys(e).forEach(n=>{let r=e[n];r!==void 0&&(t[n]=r)})}),t}function Uh(e={}){let{getContainer:t=Bh,motion:n,prefixCls:r,placement:i,closable:a,duration:o,showProgress:s,pauseOnHover:c,classNames:l,styles:u,components:d,maxCount:f,className:p,style:m,onAllRemoved:h,stack:g,renderNotifications:_}=e,v={placement:i,closable:a,duration:o,showProgress:s},[y,b]=U.useState(),x=U.useRef(null),[S,C]=U.useState([]),w=U.createElement(zh,{container:y,ref:x,prefixCls:r,motion:n,maxCount:f,pauseOnHover:c,classNames:l,styles:u,components:d,className:p,style:m,onAllRemoved:h,stack:g,renderNotifications:_}),T=Ri(e=>{let t=Hh(v,e);(t.key===null||t.key===void 0)&&(t.key=`rc-notification-${Vh}`,Vh+=1),C(e=>[...e,{type:`open`,config:t}])}),E=U.useMemo(()=>({open:T,close:e=>{C(t=>[...t,{type:`close`,key:e}])},destroy:()=>{C(e=>[...e,{type:`destroy`}])}}),[]);return U.useEffect(()=>{b(t())}),U.useEffect(()=>{x.current&&S.length&&(S.forEach(e=>{switch(e.type){case`open`:x.current?.open(e.config);break;case`close`:x.current?.close(e.key);break;case`destroy`:x.current?.destroy();break}}),C(e=>{let t=e.filter(e=>!S.includes(e));return t.length===e.length?e:t}))},[S]),[E,w]}var Wh=(e,t)=>U.useMemo(()=>{let n=e??t;return n?{...cp(t)?t:{},...cp(n)?n:{}}:!1},[e,t]);function Gh(e,t){return{...op(e)&&{"--notification-top":_s(e)},...op(t)&&{"--notification-bottom":_s(t)}}}function Kh(e){return{motionName:`${e}-fade`}}function qh(e,t,n){return e===void 0?t?.closeIcon===void 0?n?.closeIcon:t.closeIcon:e}var Jh={icon:{tag:`svg`,attrs:{viewBox:`0 0 1024 1024`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z`}}]},name:`loading`,theme:`outlined`};function Yh(){return Yh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Yh.apply(this,arguments)}var Xh=U.forwardRef((e,t)=>U.createElement(ef,Yh({},e,{ref:t,icon:Jh})));process.env.NODE_ENV!==`production`&&(Xh.displayName=`LoadingOutlined`);var Zh=e=>{if(!e)return;let{closable:t,closeIcon:n}=e;return{closable:t,closeIcon:n}},Qh={},$h=(e,t)=>{if(!e&&(e===!1||t===!1||t===null))return!1;if(!op(e)&&!op(t))return null;let n={closeIcon:typeof t!=`boolean`&&op(t)?t:void 0};return cp(e)&&(n={...n,...e}),n},eg=(e,t,n)=>e===!1?!1:e?to(n,t,e):t===!1?!1:t?to(n,t):n.closable?n:!1,tg=(e,t,n)=>{let{closeIconRender:r}=t,{closeIcon:i,...a}=e,o=i,s=qa(a,!0);return op(o)&&(r&&(o=r(o)),o=U.isValidElement(o)?U.cloneElement(o,{"aria-label":n,...o.props,...s}):U.createElement(`span`,{"aria-label":n,...s},o)),[o,s]},ng=(e,t,n=Qh,r=`Close`)=>{let i=$h(e?.closable,e?.closeIcon),a=$h(t?.closable,t?.closeIcon),o={closeIcon:U.createElement(lf,null),...n},s=eg(i,a,o),c=typeof s==`boolean`?!1:!!s?.disabled;if(s===!1)return[!1,null,c,{}];let[l,u]=tg(s,o,r);return[!0,l,c,u]},rg=(e,t,n=Qh)=>{let[r]=Lp(`global`,Mp.global);return U.useMemo(()=>ng(e,t,{closeIcon:U.createElement(lf,null),...n},r.close),[e,t,n,r.close])},ig=U.createContext(void 0);process.env.NODE_ENV!==`production`&&(ig.displayName=`ZIndexContext`);var ag=100,og=ag*10,sg=og+ag,cg={Modal:ag,Drawer:ag,Popover:ag,Popconfirm:ag,Tooltip:ag,Tour:ag,FloatButton:ag},lg={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1},ug=e=>e in cg,dg=(e,t)=>{let[,n]=Sd(),r=U.useContext(ig),i=ug(e),a;if(t!==void 0)a=[t,t];else{let o=r??0;i?o+=(r?0:n.zIndexPopupBase)+cg[e]:o+=lg[e],a=[r===void 0?t:o,o]}if(process.env.NODE_ENV!==`production`){let r=vo(e),i=n.zIndexPopupBase+sg,o=a[0]||0;process.env.NODE_ENV!==`production`&&r(t!==void 0||o<=i,`usage`,"`zIndex` is over design token `zIndexPopupBase` too much. It may cause unexpected override.")}return a},fg=e=>{let{motionDurationMid:t,motionEaseInOut:n}=e,r=`${t} ${n}`;return{transform:`scale(var(--notification-scale, 1))`,transition:[`transform`,`inset`,`clip-path`,`opacity`].map(e=>`${e} ${r}`).join(`, `)}},pg=(e,t)=>{let{componentCls:n,antCls:r,colorSuccess:i,colorInfo:a,colorWarning:o,colorError:s,colorTextHeading:c,colorText:l,boxShadow:u,borderRadiusLG:d,fontSize:f,lineHeight:p,notificationBg:m,notificationPadding:h,notificationMarginEdge:g,margin:_,calc:v}=e,y=`${n}-notice`,[b,x]=Nd(r,`notification`);return{[y]:{position:`absolute`,width:t.width,maxWidth:`calc(100vw - ${_s(v(g).mul(2).equal())})`,padding:h,pointerEvents:`auto`,[b(`icon-font-size`)]:t.iconFontSize,[b(`title-font-size`)]:t.titleFontSize,[b(`title-line-height`)]:t.titleLineHeight,boxSizing:`border-box`,color:l,background:m,borderRadius:d,boxShadow:u,fontSize:f,lineHeight:p,wordWrap:`break-word`,overflow:`visible`,...fg(e),...t.noticeStyle,"&::after":{position:`absolute`,insetInline:0,top:v(_).mul(-1).equal(),height:_,content:`""`},...t.typeStyle&&{"&-success":{background:x(`color-success-bg`,m)},"&-error":{background:x(`color-error-bg`,m)},"&-info":{background:x(`color-info-bg`,m)},"&-warning":{background:x(`color-warning-bg`,m)}}},[`${y}-wrapper`]:{display:`flex`,...t.contentStyle},[`${y}-title`]:{color:c,fontSize:x(`title-font-size`),lineHeight:x(`title-line-height`)},[`${y}-icon`]:{flex:`none`,fontSize:x(`icon-font-size`),lineHeight:1,[`&${y}-icon-success`]:{color:i},[`&${y}-icon-info, &${y}-icon-loading`]:{color:a},[`&${y}-icon-warning`]:{color:o},[`&${y}-icon-error`]:{color:s}}}},mg=e=>{let{componentCls:t,progressBg:n,notificationProgressHeight:r,fontSize:i,borderRadiusLG:a,width:o,notificationIconSize:s,colorText:c,motionDurationMid:l,fontSizeLG:u,lineHeightLG:d,marginSM:f,marginXS:p,paddingLG:m,notificationPaddingVertical:h,notificationPaddingHorizontal:g,notificationCloseButtonSize:_,colorIcon:v,borderRadiusSM:y,colorIconHover:b,colorBgTextHover:x,colorBgTextActive:S}=e,C=`${t}-notice`;return{...pg(e,{width:o,iconFontSize:s,titleFontSize:u,titleLineHeight:d,contentStyle:{alignItems:`flex-start`,gap:f},typeStyle:!0}),[`${C}-section`]:{display:`flex`,flexDirection:`column`,flex:`auto`,gap:p,minWidth:0},[`${C}-description`]:{color:c,fontSize:i},[`${C}-closable ${C}-title`]:{paddingInlineEnd:m},[`${C}-close`]:{position:`absolute`,top:h,insetInlineEnd:g,display:`flex`,alignItems:`center`,justifyContent:`center`,width:_,height:_,color:v,background:`none`,border:`none`,borderRadius:y,outline:`none`,transition:[`color`,`background-color`].map(e=>`${e} ${l}`).join(`, `),"&:hover":{color:b,backgroundColor:x},"&:active":{backgroundColor:S},...Ed(e)},[`${C}-progress`]:{position:`absolute`,bottom:0,display:`block`,appearance:`none`,inlineSize:`calc(100% - ${_s(a)} * 2)`,blockSize:r,border:0,left:{_skip_check_:!0,value:a},right:{_skip_check_:!0,value:a},"&, &::-webkit-progress-bar":{borderRadius:a,backgroundColor:`rgba(0, 0, 0, 0.04)`},"&::-moz-progress-bar":{background:n},"&::-webkit-progress-value":{borderRadius:a,background:n}},[`${C}-actions`]:{float:`right`,marginTop:f}}},hg=e=>{let{componentCls:t,width:n}=e,r=`${t}-notice`,i=`${r}-actions`,a=mg(e);return{[`${r}-pure-panel`]:{width:n,maxWidth:`100%`,...a,[r]:{...a[r],position:`relative`,width:`100%`,maxWidth:`100%`},[i]:{...a[i],float:`none`,textAlign:`end`}}}},gg=e=>{let{componentCls:t}=e;return{[t]:mg(e)}},_g=[`top`,`topLeft`,`topRight`,`bottom`,`bottomLeft`,`bottomRight`],vg=`--notification-margin-edge`,yg=(e,t)=>({blockEnd:e===`top`?`bottom`:`top`,inlineEnd:t===`left`?`right`:`left`}),bg=e=>`translate3d(${e?.x??`0`}, ${e?.y??`0`}, 0) scale(var(--notification-scale, 1))`,xg=(e,t)=>{let n=e.startsWith(`bottom`)?`bottom`:`top`,r=e.endsWith(`Right`)?`right`:`left`,{blockEnd:i,inlineEnd:a}=yg(n,r),o=e===`top`||e===`bottom`,s=e===`top`||e.endsWith(`Left`)?`-${t}`:t;return{placement:e,vertical:n,blockEnd:i,horizontal:r,inlineEnd:a,motionOffset:o?{x:`-50%`,y:s}:{x:s},baseMotionOffset:o?{x:`-50%`}:void 0,isCenterPlacement:o}},Sg=e=>e===`bottom`?`column-reverse`:`column`,Cg=e=>{let t=`var(${vg}, 0px)`;return`calc(var(--notification-${e}, ${t}) - ${t})`},wg=e=>e===`bottom`?`center top`:`center bottom`,Tg=e=>_s(e.calc(e.marginXXL).mul(-1).equal()),Eg=e=>{let t=Tg(e);return`inset(${t} ${t} ${t} ${t})`},Dg=(e,t)=>{let n=Tg(e);return t===`bottom`?`inset(${n} ${n} 50% ${n})`:`inset(50% ${n} ${n} ${n})`},Og=(e,t)=>{let{componentCls:n}=e,{placement:r,vertical:i,blockEnd:a,horizontal:o,inlineEnd:s,isCenterPlacement:c}=t,l=`${n}-notice`,u=`${l}${n}-fade`,d=bg(t.motionOffset),f=bg(t.baseMotionOffset),p=wg(i);return{[`&${n}-${r}`]:{[i]:Cg(i),[a]:`auto`,display:`flex`,flexDirection:Sg(i),...c?{marginInline:0,left:`50%`,right:`auto`,transform:`translateX(-50%)`}:{[o]:0,[s]:`auto`},[l]:{[i]:`var(--notification-y, 0)`,...c?{left:`50%`,transform:f}:{[o]:`var(--notification-x, 0)`},transformOrigin:p},[`${u}-appear-prepare, ${u}-enter-prepare`]:{opacity:0,transform:d,transition:`none`},[`${u}-appear-start, ${u}-enter-start`]:{opacity:0,transform:d},[`${u}-appear-active, ${u}-enter-active`]:{opacity:1,transform:f},[`${u}-leave-start`]:{opacity:1,transform:f},[`${u}-leave-active`]:{opacity:0,transform:d},[`&${n}-stack:not(${n}-stack-expanded)`]:{[l]:{clipPath:Dg(e,i)},[`${l}[data-notification-index='0']`]:{clipPath:Eg(e)}}}}},kg=(e,t=_g)=>{let{notificationMotionOffset:n}=e,r=_s(n);return{...t.reduce((t,n)=>({...t,...Og(e,xg(n,r))}),{})}},Ag=e=>{let{componentCls:t}=e;return{[t]:kg(e)}},jg=3,Mg=e=>({zIndexPopup:e.zIndexPopupBase+og+50,width:384,progressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`,colorSuccessBg:void 0,colorErrorBg:void 0,colorInfoBg:void 0,colorWarningBg:void 0}),Ng=e=>{let t=e.paddingMD,n=e.paddingLG;return Kl(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationIconSize:e.calc(e.fontSizeLG).mul(e.lineHeightLG).equal(),notificationCloseButtonSize:e.calc(e.controlHeightLG).mul(.55).equal(),notificationMarginBottom:e.margin,notificationPadding:`${_s(e.paddingMD)} ${_s(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,notificationProgressHeight:2,notificationMotionOffset:64})},q=e=>`inset(${e} ${e} ${e} ${e})`,Pg=e=>{let{componentCls:t,motionDurationMid:n,motionDurationSlow:r,motionEaseInOut:i}=e,a=`${`${t}-list`}-content`;return{[a]:{position:`relative`,display:`flex`,flexShrink:0,flexDirection:`column`,gap:e.notificationMarginBottom,width:`100%`,willChange:`height, transform`,transition:`none`,[`&${a}-decrease`]:{transition:`height calc(${r} * 2) ${i} ${n}`}},[`${t}-fade`]:{backfaceVisibility:`hidden`,willChange:`transform, opacity`}}},Fg=(e,t)=>{let{componentCls:n,notificationMarginEdge:r}=e,i=`--notification-margin-edge`,a=`${n}-notice`,o=`${n}-list`,s=t.listWidthKey?e.calc(e[t.listWidthKey]).add(e.calc(r).mul(2)).equal():`100%`,c=`${a}:nth-last-child(n + ${(t.stackVisibleCount??jg)+1})`,l=q(_s(e.calc(e.marginXXL).mul(-1).equal()));return{[n]:{...Cd(e),[i]:_s(r),position:`fixed`,zIndex:e.zIndexPopup,width:s,maxWidth:`100vw`,height:`100vh`,overflow:`hidden`,overscrollBehavior:`contain`,[`${n}-hook-holder`]:{position:`relative`},[`&${o}`]:{maxHeight:`100vh`,padding:`var(${i})`,overflowX:`hidden`,overflowY:`auto`,overscrollBehavior:`contain`,scrollbarWidth:`none`,msOverflowStyle:`none`,pointerEvents:`none`,"&::-webkit-scrollbar":{display:`none`,width:0,height:0}},...Pg(e),[`&${n}-stack`]:{[a]:{clipPath:l},[`&:not(${n}-stack-expanded)`]:{[a]:{"--notification-scale":`calc(1 - min(var(--notification-index, 0), 2) * 0.06)`},[`${a}:not(${a}-stack-in-threshold)`]:{opacity:0,pointerEvents:`none`},[c]:{opacity:0,pointerEvents:`none`}}},"&-rtl":{direction:`rtl`,[`${a}-actions`]:{float:`left`}}}}},Ig=Md([`Notification`,`PurePanel`],e=>hg(Ng(e)),Mg),Lg=(e,t)=>{let n=t.itemStyle??gg;return[Fg(e,t),n(e),Ag(e)]},Rg=Ad(`Notification`,e=>Lg(Ng(e),{listWidthKey:`width`}),Mg),zg=`__rc_react_root__`;function Bg(e,t){let n=t[zg]||(0,Mi.createRoot)(t);n.render(e),t[zg]=n}var Vg=(e,t,n)=>n===void 0?`${e}-${t}`:n,Hg=U.createContext(null),Ug=e=>{let{children:t}=e;return U.createElement(Hg.Provider,{value:null},t)},Wg=e=>({animationDuration:e,animationFillMode:`both`}),Gg=(e,t,n,r,i=!1)=>{let a=i?`&`:``;return{[`
368
+ ${a}${e}-enter,
369
+ ${a}${e}-appear
370
+ `]:{...Wg(r),animationPlayState:`paused`},[`${a}${e}-leave`]:{...Wg(r),animationPlayState:`paused`},[`
371
+ ${a}${e}-enter${e}-enter-active,
372
+ ${a}${e}-appear${e}-appear-active
373
+ `]:{animationName:t,animationPlayState:`running`},[`${a}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:`running`,pointerEvents:`none`}}},Kg=new pl(`antFadeIn`,{"0%":{opacity:0},"100%":{opacity:1}}),qg=new pl(`antFadeOut`,{"0%":{opacity:1},"100%":{opacity:0}}),Jg=(e,t=!1)=>{let{antCls:n}=e,r=`${n}-fade`,i=t?`&`:``;return[Gg(r,Kg,qg,e.motionDurationMid,t),{[`
374
+ ${i}${r}-enter,
375
+ ${i}${r}-appear
376
+ `]:{opacity:0,animationTimingFunction:`linear`},[`${i}${r}-leave`]:{animationTimingFunction:`linear`}}]},Yg=new pl(`antZoomIn`,{"0%":{transform:`scale(0.2)`,opacity:0},"100%":{transform:`scale(1)`,opacity:1}}),Xg=new pl(`antZoomOut`,{"0%":{transform:`scale(1)`},"100%":{transform:`scale(0.2)`,opacity:0}}),Zg=new pl(`antZoomBigIn`,{"0%":{transform:`scale(0.8)`,opacity:0},"100%":{transform:`scale(1)`,opacity:1}}),Qg=new pl(`antZoomBigOut`,{"0%":{transform:`scale(1)`},"100%":{transform:`scale(0.8)`,opacity:0}}),$g=new pl(`antZoomUpIn`,{"0%":{transform:`scale(0.8)`,transformOrigin:`50% 0%`,opacity:0},"100%":{transform:`scale(1)`,transformOrigin:`50% 0%`}}),e_=new pl(`antZoomUpOut`,{"0%":{transform:`scale(1)`,transformOrigin:`50% 0%`},"100%":{transform:`scale(0.8)`,transformOrigin:`50% 0%`,opacity:0}}),t_=new pl(`antZoomLeftIn`,{"0%":{transform:`scale(0.8)`,transformOrigin:`0% 50%`,opacity:0},"100%":{transform:`scale(1)`,transformOrigin:`0% 50%`}}),n_=new pl(`antZoomLeftOut`,{"0%":{transform:`scale(1)`,transformOrigin:`0% 50%`},"100%":{transform:`scale(0.8)`,transformOrigin:`0% 50%`,opacity:0}}),r_=new pl(`antZoomRightIn`,{"0%":{transform:`scale(0.8)`,transformOrigin:`100% 50%`,opacity:0},"100%":{transform:`scale(1)`,transformOrigin:`100% 50%`}}),i_=new pl(`antZoomRightOut`,{"0%":{transform:`scale(1)`,transformOrigin:`100% 50%`},"100%":{transform:`scale(0.8)`,transformOrigin:`100% 50%`,opacity:0}}),a_=new pl(`antZoomDownIn`,{"0%":{transform:`scale(0.8)`,transformOrigin:`50% 100%`,opacity:0},"100%":{transform:`scale(1)`,transformOrigin:`50% 100%`}}),o_=new pl(`antZoomDownOut`,{"0%":{transform:`scale(1)`,transformOrigin:`50% 100%`},"100%":{transform:`scale(0.8)`,transformOrigin:`50% 100%`,opacity:0}}),s_={zoom:{inKeyframes:Yg,outKeyframes:Xg},"zoom-big":{inKeyframes:Zg,outKeyframes:Qg},"zoom-big-fast":{inKeyframes:Zg,outKeyframes:Qg},"zoom-left":{inKeyframes:t_,outKeyframes:n_},"zoom-right":{inKeyframes:r_,outKeyframes:i_},"zoom-up":{inKeyframes:$g,outKeyframes:e_},"zoom-down":{inKeyframes:a_,outKeyframes:o_}},c_=(e,t)=>{let{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:a}=s_[t];return[Gg(r,i,a,t===`zoom-big-fast`?e.motionDurationFast:e.motionDurationMid),{[`
377
+ ${r}-enter,
378
+ ${r}-appear
379
+ `]:{transform:`scale(0)`,opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:`none`}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},l_=e=>Math.round(Number(e||0)),u_=e=>{if(e instanceof mu)return e;if(e&&typeof e==`object`&&`h`in e&&`b`in e){let{b:t,...n}=e;return{...n,v:t}}return typeof e==`string`&&/hsb/.test(e)?e.replace(/hsb/,`hsv`):e},d_=class extends mu{constructor(e){super(u_(e))}toHsbString(){let e=this.toHsb(),t=l_(e.s*100),n=l_(e.b*100),r=l_(e.h),i=e.a,a=`hsb(${r}, ${t}%, ${n}%)`,o=`hsba(${r}, ${t}%, ${n}%, ${i.toFixed(i===0?0:2)})`;return i===1?a:o}toHsb(){let{v:e,...t}=this.toHsv();return{...t,b:e,a:this.a}}},f_=`rc-color-picker`,p_=e=>e instanceof d_?e:new d_(e),m_=p_(`#1677ff`),h_=e=>{let{offset:t,targetRef:n,containerRef:r,color:i,type:a}=e,{width:o,height:s}=r.current.getBoundingClientRect(),{width:c,height:l}=n.current.getBoundingClientRect(),u=c/2,d=l/2,f=(t.x+u)/o,p=1-(t.y+d)/s,m=i.toHsb(),h=f,g=(t.x+u)/o*360;if(a)switch(a){case`hue`:return p_({...m,h:g<=0?0:g});case`alpha`:return p_({...m,a:h<=0?0:h})}return p_({h:m.h,s:f<=0?0:f,b:p>=1?1:p,a:m.a})},g_=(e,t)=>{let n=e.toHsb();switch(t){case`hue`:return{x:n.h/360*100,y:50};case`alpha`:return{x:e.a*100,y:50};default:return{x:n.s*100,y:(1-n.b)*100}}},__=({color:e,prefixCls:t,className:n,style:r,innerClassName:i,innerStyle:a,onClick:o})=>{let s=`${t}-color-block`;return U.createElement(`div`,{className:G(s,n),style:r,onClick:o},U.createElement(`div`,{className:G(`${s}-inner`,i),style:{background:e,...a}}))};function v_(e){let t=`touches`in e?e.touches[0]:e,n=document.documentElement.scrollLeft||document.body.scrollLeft||window.pageXOffset,r=document.documentElement.scrollTop||document.body.scrollTop||window.pageYOffset;return{pageX:t.pageX-n,pageY:t.pageY-r}}function y_(e){let{targetRef:t,containerRef:n,direction:r,onDragChange:i,onDragChangeComplete:a,calculate:o,color:s,disabledDrag:c}=e,[l,u]=(0,U.useState)({x:0,y:0}),d=(0,U.useRef)(null),f=(0,U.useRef)(null);(0,U.useEffect)(()=>{u(o())},[s]),(0,U.useEffect)(()=>()=>{document.removeEventListener(`mousemove`,d.current),document.removeEventListener(`mouseup`,f.current),document.removeEventListener(`touchmove`,d.current),document.removeEventListener(`touchend`,f.current),d.current=null,f.current=null},[]);let p=e=>{let{pageX:a,pageY:o}=v_(e),{x:s,y:c,width:u,height:d}=n.current.getBoundingClientRect(),{width:f,height:p}=t.current.getBoundingClientRect(),m=f/2,h=p/2,g=Math.max(0,Math.min(a-s,u))-m,_=Math.max(0,Math.min(o-c,d))-h,v={x:g,y:r===`x`?l.y:_};if(f===0&&p===0||f!==p)return!1;i?.(v)},m=e=>{e.preventDefault(),p(e)},h=e=>{e.preventDefault(),document.removeEventListener(`mousemove`,d.current),document.removeEventListener(`mouseup`,f.current),document.removeEventListener(`touchmove`,d.current),document.removeEventListener(`touchend`,f.current),d.current=null,f.current=null,a?.()};return[l,e=>{document.removeEventListener(`mousemove`,d.current),document.removeEventListener(`mouseup`,f.current),!c&&(p(e),document.addEventListener(`mousemove`,m),document.addEventListener(`mouseup`,h),document.addEventListener(`touchmove`,m),document.addEventListener(`touchend`,h),d.current=m,f.current=h)}]}var b_=({size:e=`default`,color:t,prefixCls:n})=>U.createElement(`div`,{className:G(`${n}-handler`,{[`${n}-handler-sm`]:e===`small`}),style:{backgroundColor:t}}),x_=({children:e,style:t,prefixCls:n})=>U.createElement(`div`,{className:`${n}-palette`,style:{position:`relative`,...t}},e),S_=(0,U.forwardRef)((e,t)=>{let{children:n,x:r,y:i}=e;return U.createElement(`div`,{ref:t,style:{position:`absolute`,left:`${r}%`,top:`${i}%`,zIndex:1,transform:`translate(-50%, -50%)`}},n)}),C_=({color:e,onChange:t,prefixCls:n,onChangeComplete:r,disabled:i})=>{let a=(0,U.useRef)(),o=(0,U.useRef)(),s=(0,U.useRef)(e),[c,l]=y_({color:e,containerRef:a,targetRef:o,calculate:()=>g_(e),onDragChange:Ri(n=>{let r=h_({offset:n,targetRef:o,containerRef:a,color:e});s.current=r,t(r)}),onDragChangeComplete:()=>r?.(s.current),disabledDrag:i});return U.createElement(`div`,{ref:a,className:`${n}-select`,onMouseDown:l,onTouchStart:l},U.createElement(x_,{prefixCls:n},U.createElement(S_,{x:c.x,y:c.y,ref:o},U.createElement(b_,{color:e.toRgbString(),prefixCls:n})),U.createElement(`div`,{className:`${n}-saturation`,style:{backgroundColor:`hsl(${e.toHsb().h},100%, 50%)`,backgroundImage:`linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))`}})))},w_=(e,t)=>{let[n,r]=Ui(e,t);return[(0,U.useMemo)(()=>p_(n),[n]),r]},T_=({colors:e,children:t,direction:n=`to right`,type:r,prefixCls:i})=>{let a=(0,U.useMemo)(()=>e.map((t,n)=>{let i=p_(t);return r===`alpha`&&n===e.length-1&&(i=new d_(i.setA(1))),i.toRgbString()}).join(`,`),[e,r]);return U.createElement(`div`,{className:`${i}-gradient`,style:{position:`absolute`,inset:0,background:`linear-gradient(${n}, ${a})`}},t)},J=e=>{let{prefixCls:t,colors:n,disabled:r,onChange:i,onChangeComplete:a,color:o,type:s}=e,c=(0,U.useRef)(null),l=(0,U.useRef)(null),u=(0,U.useRef)(o),d=e=>s===`hue`?e.getHue():e.a*100,[f,p]=y_({color:o,targetRef:l,containerRef:c,calculate:()=>g_(o,s),onDragChange:Ri(e=>{let t=h_({offset:e,targetRef:l,containerRef:c,color:o,type:s});u.current=t,i(d(t))}),onDragChangeComplete(){a(d(u.current))},direction:`x`,disabledDrag:r}),m=U.useMemo(()=>{if(s===`hue`){let e=o.toHsb();return e.s=1,e.b=1,e.a=1,new d_(e)}return o},[o,s]),h=U.useMemo(()=>n.map(e=>`${e.color} ${e.percent}%`),[n]);return U.createElement(`div`,{ref:c,className:G(`${t}-slider`,`${t}-slider-${s}`),onMouseDown:p,onTouchStart:p},U.createElement(x_,{prefixCls:t},U.createElement(S_,{x:f.x,y:f.y,ref:l},U.createElement(b_,{size:`small`,color:m.toHexString(),prefixCls:t})),U.createElement(T_,{colors:h,type:s,prefixCls:t})))};function Y(e){return U.useMemo(()=>{let{slider:t}=e||{};return[t||J]},[e])}function E_(){return E_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},E_.apply(this,arguments)}var D_=[{color:`rgb(255, 0, 0)`,percent:0},{color:`rgb(255, 255, 0)`,percent:17},{color:`rgb(0, 255, 0)`,percent:33},{color:`rgb(0, 255, 255)`,percent:50},{color:`rgb(0, 0, 255)`,percent:67},{color:`rgb(255, 0, 255)`,percent:83},{color:`rgb(255, 0, 0)`,percent:100}],O_=(0,U.forwardRef)((e,t)=>{let{value:n,defaultValue:r,prefixCls:i=f_,onChange:a,onChangeComplete:o,className:s,style:c,panelRender:l,disabledAlpha:u=!1,disabled:d=!1,components:f}=e,[p]=Y(f),[m,h]=w_(r||m_,n),g=(0,U.useMemo)(()=>m.setA(1).toRgbString(),[m]),_=(e,t)=>{n||h(e),a?.(e,t)},v=e=>new d_(m.setHue(e)),y=e=>new d_(m.setA(e/100)),b=e=>{_(v(e),{type:`hue`,value:e})},x=e=>{_(y(e),{type:`alpha`,value:e})},S=e=>{o&&o(v(e))},C=e=>{o&&o(y(e))},w=G(`${i}-panel`,s,{[`${i}-panel-disabled`]:d}),T={prefixCls:i,disabled:d,color:m},E=U.createElement(U.Fragment,null,U.createElement(C_,E_({onChange:_},T,{onChangeComplete:o})),U.createElement(`div`,{className:`${i}-slider-container`},U.createElement(`div`,{className:G(`${i}-slider-group`,{[`${i}-slider-group-disabled-alpha`]:u})},U.createElement(p,E_({},T,{type:`hue`,colors:D_,min:0,max:359,value:m.getHue(),onChange:b,onChangeComplete:S})),!u&&U.createElement(p,E_({},T,{type:`alpha`,colors:[{percent:0,color:`rgba(255, 0, 4, 0)`},{percent:100,color:g}],min:0,max:100,value:m.a*100,onChange:x,onChangeComplete:C}))),U.createElement(__,{color:m.toRgbString(),prefixCls:i})));return U.createElement(`div`,{className:w,style:c,ref:t},typeof l==`function`?l(E):E)});process.env.NODE_ENV!==`production`&&(O_.displayName=`ColorPicker`);var k_=(e,t)=>e?.replace(/[^0-9a-f]/gi,``).slice(0,t?8:6)||``,A_=(e,t)=>e?k_(e,t):``,j_=function(){function e(t){if(Tl(this,e),this.cleared=!1,t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=t.colors?.map(t=>({color:new e(t.color),percent:t.percent})),this.cleared=t.cleared;return}let n=Array.isArray(t);n&&t.length?(this.colors=t.map(({color:t,percent:n})=>({color:new e(t),percent:n})),this.metaColor=new d_(this.colors[0].color.metaColor)):this.metaColor=new d_(n?``:t),(!t||n&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return Dl(e,[{key:`toHsb`,value:function(){return this.metaColor.toHsb()}},{key:`toHsbString`,value:function(){return this.metaColor.toHsbString()}},{key:`toHex`,value:function(){return A_(this.toHexString(),this.metaColor.a<1)}},{key:`toHexString`,value:function(){return this.metaColor.toHexString()}},{key:`toRgb`,value:function(){return this.metaColor.toRgb()}},{key:`toRgbString`,value:function(){return this.metaColor.toRgbString()}},{key:`isGradient`,value:function(){return!!this.colors&&!this.cleared}},{key:`getColors`,value:function(){return this.colors||[{color:this,percent:0}]}},{key:`toCssString`,value:function(){let{colors:e}=this;return e?`linear-gradient(90deg, ${e.map(e=>`${e.color.toRgbString()} ${e.percent}%`).join(`, `)})`:this.metaColor.toRgbString()}},{key:`equals`,value:function(e){return!e||this.isGradient()!==e.isGradient()?!1:this.isGradient()?this.colors.length===e.colors.length&&this.colors.every((t,n)=>{let r=e.colors[n];return t.percent===r.percent&&t.color.equals(r.color)}):this.toHexString()===e.toHexString()}}])}(),M_=e=>e instanceof j_?e:new j_(e),N_=`RC_FORM_INTERNAL_HOOKS`,P_=()=>{Ba(!1,`Can not find FormContext. Please make sure you wrap Field under Form.`)},F_=U.createContext({getFieldValue:P_,getFieldsValue:P_,getFieldError:P_,getFieldWarning:P_,getFieldsError:P_,isFieldsTouched:P_,isFieldTouched:P_,isFieldValidating:P_,isFieldsValidating:P_,resetFields:P_,setFields:P_,setFieldValue:P_,setFieldsValue:P_,validateFields:P_,submit:P_,getInternalHooks:()=>(P_(),{dispatch:P_,initEntityValue:P_,registerField:P_,useSubscribe:P_,setInitialValues:P_,destroyForm:P_,setCallbacks:P_,registerWatch:P_,getFields:P_,setValidateMessages:P_,setPreserve:P_,getInitialValue:P_})}),I_=U.createContext(null);function L_(e){return e==null?[]:Array.isArray(e)?e:[e]}function R_(e){return e&&!!e._init}function z_(){return{default:`Validation error on field %s`,required:`%s is required`,enum:`%s must be one of %s`,whitespace:`%s cannot be empty`,date:{format:`%s date %s is invalid for format %s`,parse:`%s date could not be parsed, %s is invalid `,invalid:`%s date %s is invalid`},types:{string:`%s is not a %s`,method:`%s is not a %s (function)`,array:`%s is not an %s`,object:`%s is not an %s`,number:`%s is not a %s`,date:`%s is not a %s`,boolean:`%s is not a %s`,integer:`%s is not an %s`,float:`%s is not a %s`,regexp:`%s is not a valid %s`,email:`%s is not a valid %s`,tel:`%s is not a valid %s`,url:`%s is not a valid %s`,hex:`%s is not a valid %s`},string:{len:`%s must be exactly %s characters`,min:`%s must be at least %s characters`,max:`%s cannot be longer than %s characters`,range:`%s must be between %s and %s characters`},number:{len:`%s must equal %s`,min:`%s cannot be less than %s`,max:`%s cannot be greater than %s`,range:`%s must be between %s and %s`},array:{len:`%s must be exactly %s in length`,min:`%s cannot be less than %s in length`,max:`%s cannot be greater than %s in length`,range:`%s must be between %s and %s in length`},pattern:{mismatch:`%s value %s does not match pattern %s`},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var B_=z_();function V_(e){try{return Function.toString.call(e).indexOf(`[native code]`)!==-1}catch{return typeof e==`function`}}function H_(e,t,n){if(Ml())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var i=new(e.bind.apply(e,r));return n&&kl(i,n.prototype),i}function U_(e){var t=typeof Map==`function`?new Map:void 0;return U_=function(e){if(e===null||!V_(e))return e;if(typeof e!=`function`)throw TypeError(`Super expression must either be null or a function`);if(t!==void 0){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return H_(e,arguments,jl(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),kl(n,e)},U_(e)}var W_=/%[sdj%]/g,G_=function(){};typeof process<`u`&&process.env&&process.env.NODE_ENV!==`production`&&typeof window<`u`&&typeof document<`u`&&(G_=function(e,t){typeof console<`u`&&console.warn&&typeof ASYNC_VALIDATOR_NO_WARNING>`u`&&t.every(function(e){return typeof e==`string`})&&console.warn(e,t)});function K_(e){if(!e||!e.length)return null;var t={};return e.forEach(function(e){var n=e.field;t[n]=t[n]||[],t[n].push(e)}),t}function q_(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=0,a=n.length;return typeof e==`function`?e.apply(null,n):typeof e==`string`?e.replace(W_,function(e){if(e===`%%`)return`%`;if(i>=a)return e;switch(e){case`%s`:return String(n[i++]);case`%d`:return Number(n[i++]);case`%j`:try{return JSON.stringify(n[i++])}catch{return`[Circular]`}break;default:return e}}):e}function J_(e){return e===`string`||e===`url`||e===`hex`||e===`email`||e===`date`||e===`pattern`||e===`tel`}function Y_(e,t){return!!(e==null||t===`array`&&Array.isArray(e)&&!e.length||J_(t)&&typeof e==`string`&&!e)}function X_(e,t,n){var r=[],i=0,a=e.length;function o(e){r.push.apply(r,Bo(e||[])),i++,i===a&&n(r)}e.forEach(function(e){t(e,o)})}function Z_(e,t,n){var r=0,i=e.length;function a(o){if(o&&o.length){n(o);return}var s=r;r+=1,s<i?t(e[s],a):n([])}a([])}function Q_(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,Bo(e[n]||[]))}),t}var $_=function(e){Al(n,e);var t=Pl(n);function n(e,r){var i;return Tl(this,n),i=t.call(this,`Async Validation Error`),Sl(Ol(i),`errors`,void 0),Sl(Ol(i),`fields`,void 0),i.errors=e,i.fields=r,i}return Dl(n)}(U_(Error));function ev(e,t,n,r,i){if(t.first){var a=new Promise(function(t,a){Z_(Q_(e),n,function(e){return r(e),e.length?a(new $_(e,K_(e))):t(i)})});return a.catch(function(e){return e}),a}var o=t.firstFields===!0?Object.keys(e):t.firstFields||[],s=Object.keys(e),c=s.length,l=0,u=[],d=new Promise(function(t,a){var d=function(e){if(u.push.apply(u,e),l++,l===c)return r(u),u.length?a(new $_(u,K_(u))):t(i)};s.length||(r(u),t(i)),s.forEach(function(t){var r=e[t];o.indexOf(t)===-1?X_(r,n,d):Z_(r,n,d)})});return d.catch(function(e){return e}),d}function tv(e){return!!(e&&e.message!==void 0)}function nv(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function rv(e,t){return function(n){var r=e.fullFields?nv(t,e.fullFields):t[n.field||e.fullField];return tv(n)?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:typeof n==`function`?n():n,fieldValue:r,field:n.field||e.fullField}}}function iv(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];hl(r)===`object`&&hl(e[n])===`object`?e[n]=wl(wl({},e[n]),r):e[n]=r}}return e}var av=`enum`,ov=function(e,t,n,r,i){e[av]=Array.isArray(e[av])?e[av]:[],e[av].indexOf(t)===-1&&r.push(q_(i.messages[av],e.fullField,e[av].join(`, `)))},sv=function(e,t,n,r,i){e.pattern&&(e.pattern instanceof RegExp?(e.pattern.lastIndex=0,e.pattern.test(t)||r.push(q_(i.messages.pattern.mismatch,e.fullField,t,e.pattern))):typeof e.pattern==`string`&&(new RegExp(e.pattern).test(t)||r.push(q_(i.messages.pattern.mismatch,e.fullField,t,e.pattern))))},cv=function(e,t,n,r,i){var a=typeof e.len==`number`,o=typeof e.min==`number`,s=typeof e.max==`number`,c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,l=t,u=null,d=typeof t==`number`,f=typeof t==`string`,p=Array.isArray(t);if(d?u=`number`:f?u=`string`:p&&(u=`array`),!u)return!1;p&&(l=t.length),f&&(l=t.replace(c,`_`).length),a?l!==e.len&&r.push(q_(i.messages[u].len,e.fullField,e.len)):o&&!s&&l<e.min?r.push(q_(i.messages[u].min,e.fullField,e.min)):s&&!o&&l>e.max?r.push(q_(i.messages[u].max,e.fullField,e.max)):o&&s&&(l<e.min||l>e.max)&&r.push(q_(i.messages[u].range,e.fullField,e.min,e.max))},lv=function(e,t,n,r,i,a){e.required&&(!n.hasOwnProperty(e.field)||Y_(t,a||e.type))&&r.push(q_(i.messages.required,e.fullField))},uv,dv=(function(){if(uv)return uv;var e=`[a-fA-F\\d:]`,t=function(t){return t&&t.includeBoundaries?`(?:(?<=\\s|^)(?=${e})|(?<=${e})(?=\\s|\$))`:``},n=`(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}`,r=`[a-fA-F\\d]{1,4}`,i=`(?:${[`(?:${r}:){7}(?:${r}|:)`,`(?:${r}:){6}(?:${n}|:${r}|:)`,`(?:${r}:){5}(?::${n}|(?::${r}){1,2}|:)`,`(?:${r}:){4}(?:(?::${r}){0,1}:${n}|(?::${r}){1,3}|:)`,`(?:${r}:){3}(?:(?::${r}){0,2}:${n}|(?::${r}){1,4}|:)`,`(?:${r}:){2}(?:(?::${r}){0,3}:${n}|(?::${r}){1,5}|:)`,`(?:${r}:){1}(?:(?::${r}){0,4}:${n}|(?::${r}){1,6}|:)`,`(?::(?:(?::${r}){0,5}:${n}|(?::${r}){1,7}|:))`].join(`|`)})(?:%[0-9a-zA-Z]{1,})?`,a=RegExp(`(?:^${n}\$)|(?:^${i}\$)`),o=RegExp(`^${n}\$`),s=RegExp(`^${i}\$`),c=function(e){return e&&e.exact?a:RegExp(`(?:${t(e)}${n}${t(e)})|(?:${t(e)}${i}${t(e)})`,`g`)};c.v4=function(e){return e&&e.exact?o:RegExp(`${t(e)}${n}${t(e)}`,`g`)},c.v6=function(e){return e&&e.exact?s:RegExp(`${t(e)}${i}${t(e)}`,`g`)};var l=`(?:(?:(?:[a-z]+:)?//)|www\\.)(?:\\S+(?::\\S*)?@)?(?:localhost|${c.v4().source}|${c.v6().source}|(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))(?::\\d{2,5})?(?:[/?#][^\\s"]*)?`;return uv=RegExp(`(?:^${l}\$)`,`i`),uv}),fv={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,tel:/^(\+[0-9]{1,3}[-\s\u2011]?)?(\([0-9]{1,4}\)[-\s\u2011]?)?([0-9]+[-\s\u2011]?)*[0-9]+$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},pv={integer:function(e){return pv.number(e)&&parseInt(e,10)===e},float:function(e){return pv.number(e)&&!pv.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch{return!1}},date:function(e){return typeof e.getTime==`function`&&typeof e.getMonth==`function`&&typeof e.getYear==`function`&&!isNaN(e.getTime())},number:function(e){return isNaN(e)?!1:typeof e==`number`},object:function(e){return hl(e)===`object`&&!pv.array(e)},method:function(e){return typeof e==`function`},email:function(e){return typeof e==`string`&&e.length<=320&&!!e.match(fv.email)},tel:function(e){return typeof e==`string`&&e.length<=32&&!!e.match(fv.tel)},url:function(e){return typeof e==`string`&&e.length<=2048&&!!e.match(dv())},hex:function(e){return typeof e==`string`&&!!e.match(fv.hex)}},mv={required:lv,whitespace:function(e,t,n,r,i){(/^\s+$/.test(t)||t===``)&&r.push(q_(i.messages.whitespace,e.fullField))},type:function(e,t,n,r,i){if(e.required&&t===void 0){lv(e,t,n,r,i);return}var a=[`integer`,`float`,`array`,`regexp`,`object`,`method`,`email`,`tel`,`number`,`date`,`url`,`hex`],o=e.type;a.indexOf(o)>-1?pv[o](t)||r.push(q_(i.messages.types[o],e.fullField,e.type)):o&&hl(t)!==e.type&&r.push(q_(i.messages.types[o],e.fullField,e.type))},range:cv,enum:ov,pattern:sv},hv=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Y_(t)&&!e.required)return n();mv.required(e,t,r,a,i)}n(a)},gv=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(t==null&&!e.required)return n();mv.required(e,t,r,a,i,`array`),t!=null&&(mv.type(e,t,r,a,i),mv.range(e,t,r,a,i))}n(a)},_v=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Y_(t)&&!e.required)return n();mv.required(e,t,r,a,i),t!==void 0&&mv.type(e,t,r,a,i)}n(a)},vv=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Y_(t,`date`)&&!e.required)return n();if(mv.required(e,t,r,a,i),!Y_(t,`date`)){var o=t instanceof Date?t:new Date(t);mv.type(e,o,r,a,i),o&&mv.range(e,o.getTime(),r,a,i)}}n(a)},yv=`enum`,bv=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Y_(t)&&!e.required)return n();mv.required(e,t,r,a,i),t!==void 0&&mv[yv](e,t,r,a,i)}n(a)},xv=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Y_(t)&&!e.required)return n();mv.required(e,t,r,a,i),t!==void 0&&(mv.type(e,t,r,a,i),mv.range(e,t,r,a,i))}n(a)},Sv=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Y_(t)&&!e.required)return n();mv.required(e,t,r,a,i),t!==void 0&&(mv.type(e,t,r,a,i),mv.range(e,t,r,a,i))}n(a)},Cv=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Y_(t)&&!e.required)return n();mv.required(e,t,r,a,i),t!==void 0&&mv.type(e,t,r,a,i)}n(a)},wv=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(t===``&&(t=void 0),Y_(t)&&!e.required)return n();mv.required(e,t,r,a,i),t!==void 0&&(mv.type(e,t,r,a,i),mv.range(e,t,r,a,i))}n(a)},Tv=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Y_(t)&&!e.required)return n();mv.required(e,t,r,a,i),t!==void 0&&mv.type(e,t,r,a,i)}n(a)},Ev=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Y_(t,`string`)&&!e.required)return n();mv.required(e,t,r,a,i),Y_(t,`string`)||mv.pattern(e,t,r,a,i)}n(a)},Dv=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Y_(t)&&!e.required)return n();mv.required(e,t,r,a,i),Y_(t)||mv.type(e,t,r,a,i)}n(a)},Ov=function(e,t,n,r,i){var a=[],o=Array.isArray(t)?`array`:hl(t);mv.required(e,t,r,a,i,o),n(a)},kv=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Y_(t,`string`)&&!e.required)return n();mv.required(e,t,r,a,i,`string`),Y_(t,`string`)||(mv.type(e,t,r,a,i),mv.range(e,t,r,a,i),mv.pattern(e,t,r,a,i),e.whitespace===!0&&mv.whitespace(e,t,r,a,i))}n(a)},Av=function(e,t,n,r,i){var a=e.type,o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Y_(t,a)&&!e.required)return n();mv.required(e,t,r,o,i,a),Y_(t,a)||mv.type(e,t,r,o,i)}n(o)},jv={string:kv,method:Cv,number:wv,boolean:_v,regexp:Dv,integer:Sv,float:xv,array:gv,object:Tv,enum:bv,pattern:Ev,date:vv,url:Av,hex:Av,email:Av,tel:Av,required:Ov,any:hv},Mv=function(){function e(t){Tl(this,e),Sl(this,`rules`,null),Sl(this,`_messages`,B_),this.define(t)}return Dl(e,[{key:`define`,value:function(e){var t=this;if(!e)throw Error(`Cannot configure a schema with no rules`);if(hl(e)!==`object`||Array.isArray(e))throw Error(`Rules must be an object`);this.rules={},Object.keys(e).forEach(function(n){var r=e[n];t.rules[n]=Array.isArray(r)?r:[r]})}},{key:`messages`,value:function(e){return e&&(this._messages=iv(z_(),e)),this._messages}},{key:`validate`,value:function(t){var n=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},a=t,o=r,s=i;if(typeof o==`function`&&(s=o,o={}),!this.rules||Object.keys(this.rules).length===0)return s&&s(null,a),Promise.resolve(a);function c(e){var t=[],n={};function r(e){if(Array.isArray(e)){var n;t=(n=t).concat.apply(n,Bo(e))}else t.push(e)}for(var i=0;i<e.length;i++)r(e[i]);t.length?(n=K_(t),s(t,n)):s(null,a)}if(o.messages){var l=this.messages();l===B_&&(l=z_()),iv(l,o.messages),o.messages=l}else o.messages=this.messages();var u={};(o.keys||Object.keys(this.rules)).forEach(function(e){var r=n.rules[e],i=a[e];r.forEach(function(r){var o=r;typeof o.transform==`function`&&(a===t&&(a=wl({},a)),i=a[e]=o.transform(i),i!=null&&(o.type=o.type||(Array.isArray(i)?`array`:hl(i)))),o=typeof o==`function`?{validator:o}:wl({},o),o.validator=n.getValidationMethod(o),o.validator&&(o.field=e,o.fullField=o.fullField||e,o.type=n.getType(o),u[e]=u[e]||[],u[e].push({rule:o,value:i,source:a,field:e}))})});var d={};return ev(u,o,function(t,n){var r=t.rule,i=(r.type===`object`||r.type===`array`)&&(hl(r.fields)===`object`||hl(r.defaultField)===`object`);i&&=r.required||!r.required&&t.value,r.field=t.field;function s(e,t){return wl(wl({},t),{},{fullField:`${r.fullField}.${e}`,fullFields:r.fullFields?[].concat(Bo(r.fullFields),[e]):[e]})}function c(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],l=Array.isArray(c)?c:[c];!o.suppressWarning&&l.length&&e.warning(`async-validator:`,l),l.length&&r.message!==void 0&&r.message!==null&&(l=[].concat(r.message));var u=l.map(rv(r,a));if(o.first&&u.length)return d[r.field]=1,n(u);if(!i)n(u);else{if(r.required&&!t.value)return r.message===void 0?o.error&&(u=[o.error(r,q_(o.messages.required,r.field))]):u=[].concat(r.message).map(rv(r,a)),n(u);var f={};r.defaultField&&Object.keys(t.value).map(function(e){f[e]=r.defaultField}),f=wl(wl({},f),t.rule.fields);var p={};Object.keys(f).forEach(function(e){var t=f[e];p[e]=(Array.isArray(t)?t:[t]).map(s.bind(null,e))});var m=new e(p);m.messages(o.messages),t.rule.options&&(t.rule.options.messages=o.messages,t.rule.options.error=o.error),m.validate(t.value,t.rule.options||o,function(e){var t=[];u&&u.length&&t.push.apply(t,Bo(u)),e&&e.length&&t.push.apply(t,Bo(e)),n(t.length?t:null)})}}var l;if(r.asyncValidator)l=r.asyncValidator(r,t.value,c,t.source,o);else if(r.validator){try{l=r.validator(r,t.value,c,t.source,o)}catch(e){var u,f;(u=(f=console).error)==null||u.call(f,e),o.suppressValidatorError||setTimeout(function(){throw e},0),c(e.message)}l===!0?c():l===!1?c(typeof r.message==`function`?r.message(r.fullField||r.field):r.message||`${r.fullField||r.field} fails`):l instanceof Array?c(l):l instanceof Error&&c(l.message)}l&&l.then&&l.then(function(){return c()},function(e){return c(e)})},function(e){c(e)},a)}},{key:`getType`,value:function(e){if(e.type===void 0&&e.pattern instanceof RegExp&&(e.type=`pattern`),typeof e.validator!=`function`&&e.type&&!jv.hasOwnProperty(e.type))throw Error(q_(`Unknown rule type %s`,e.type));return e.type||`string`}},{key:`getValidationMethod`,value:function(e){if(typeof e.validator==`function`)return e.validator;var t=Object.keys(e),n=t.indexOf(`message`);return n!==-1&&t.splice(n,1),t.length===1&&t[0]===`required`?jv.required:jv[this.getType(e)]||void 0}}]),e}();Sl(Mv,`register`,function(e,t){if(typeof t!=`function`)throw Error(`Cannot register a validator by type, validator is not a function`);jv[e]=t}),Sl(Mv,`warning`,G_),Sl(Mv,`messages`,B_),Sl(Mv,`validators`,jv);var Nv="'${name}' is not a valid ${type}",Pv={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:Nv,method:Nv,array:Nv,object:Nv,number:Nv,date:Nv,boolean:Nv,integer:Nv,float:Nv,regexp:Nv,email:Nv,tel:Nv,url:Nv,hex:Nv},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},Fv=Mv;function Iv(e,t){return e.replace(/\\?\$\{\w+\}/g,e=>e.startsWith(`\\`)?e.slice(1):t[e.slice(2,-1)])}var Lv=`CODE_LOGIC_ERROR`;async function Rv(e,t,n,r,i){let a={...n};if(delete a.ruleIndex,Fv.warning=()=>void 0,a.validator){let e=a.validator;a.validator=(...t)=>{try{return e(...t)}catch(e){return console.error(e),Promise.reject(Lv)}}}let o=null;a&&a.type===`array`&&a.defaultField&&(o=a.defaultField,delete a.defaultField);let s=new Fv({[e]:[a]}),c=lo(Pv,r.validateMessages);s.messages(c);let l=[];try{await Promise.resolve(s.validate({[e]:t},{...r}))}catch(e){e.errors&&(l=e.errors.map(({message:e},t)=>{let n=e===Lv?c.default:e;return U.isValidElement(n)?U.cloneElement(n,{key:`error_${t}`}):n}))}if(!l.length&&o&&Array.isArray(t)&&t.length>0)return(await Promise.all(t.map((t,n)=>Rv(`${e}.${n}`,t,o,r,i)))).reduce((e,t)=>[...e,...t],[]);let u={...n,name:e,enum:(n.enum||[]).join(`, `),...i};return l.map(e=>typeof e==`string`?Iv(e,u):e)}function zv(e,t,n,r,i,a){let o=e.join(`.`),s=n.map((e,t)=>{let n=e.validator,r={...e,ruleIndex:t};return n&&(r.validator=(e,t,r)=>{let i=!1,a=n(e,t,(...e)=>{Promise.resolve().then(()=>{Ba(!i,"Your validator function has already return a promise. `callback` will be ignored."),i||r(...e)})});i=a&&typeof a.then==`function`&&typeof a.catch==`function`,Ba(i,"`callback` is deprecated. Please return a promise instead."),i&&a.then(()=>{r()}).catch(e=>{r(e||` `)})}),r}).sort(({warningOnly:e,ruleIndex:t},{warningOnly:n,ruleIndex:r})=>!!e==!!n?t-r:e?1:-1),c;if(i===!0)c=new Promise(async(e,n)=>{for(let e=0;e<s.length;e+=1){let i=s[e],c=await Rv(o,t,i,r,a);if(c.length){n([{errors:c,rule:i}]);return}}e([])});else{let e=s.map(e=>Rv(o,t,e,r,a).then(t=>({errors:t,rule:e})));c=(i?Vv(e):Bv(e)).then(e=>Promise.reject(e))}return c.catch(e=>e),c}async function Bv(e){return Promise.all(e).then(e=>[].concat(...e))}async function Vv(e){let t=0;return new Promise(n=>{e.forEach(r=>{r.then(r=>{r.errors.length&&n([r]),t+=1,t===e.length&&n([])})})})}function Hv(e){return L_(e)}function Uv(e,t){let n={};return t.forEach(t=>{let r=no(e,t);n=io(n,t,r)}),n}function Wv(e,t,n=!1){return e&&e.some(e=>Gv(t,e,n))}function Gv(e,t,n=!1){return!e||!t||!n&&e.length!==t.length?!1:t.every((t,n)=>e[n]===t)}function Kv(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||typeof e!=`object`||typeof t!=`object`)return!1;let n=Object.keys(e),r=Object.keys(t);return[...new Set([...n,...r])].every(n=>{let r=e[n],i=t[n];return typeof r==`function`&&typeof i==`function`?!0:r===i})}function qv(e,...t){let n=t[0];return n&&n.target&&typeof n.target==`object`&&e in n.target?n.target[e]:n}function Jv(e,t,n){let{length:r}=e;if(t<0||t>=r||n<0||n>=r)return e;let i=e[t],a=t-n;return a>0?[...e.slice(0,n),i,...e.slice(n,t),...e.slice(t+1,r)]:a<0?[...e.slice(0,t),...e.slice(t+1,n+1),i,...e.slice(n+1,r)]:e}var Yv=e=>{let t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(null)},Xv=class{namePathList=[];taskId=0;watcherList=new Set;form;constructor(e){this.form=e}register(e){return this.watcherList.add(e),()=>{this.watcherList.delete(e)}}notify(e){e.forEach(e=>{this.namePathList.every(t=>!Gv(t,e))&&this.namePathList.push(e)}),this.doBatch()}doBatch(){this.taskId+=1;let e=this.taskId;Yv(()=>{if(e===this.taskId&&this.watcherList.size){let e=this.form.getForm(),t=e.getFieldsValue(),n=e.getFieldsValue(!0);this.watcherList.forEach(e=>{e(t,n,this.namePathList)}),this.namePathList=[]}})}};async function Zv(){return new Promise(e=>{Yv(()=>{$a(()=>{e()})})})}function Qv(){return Qv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qv.apply(this,arguments)}var $v=[],ey=[];function ty(e,t,n,r,i,a){return typeof e==`function`?e(t,n,`source`in a?{source:a.source}:{}):r!==i}var ny=class extends U.Component{static contextType=F_;state={resetCount:0};cancelRegisterFunc=null;mounted=!1;touched=!1;dirty=!1;validatePromise;prevValidating;errors=$v;warnings=ey;constructor(e){if(super(e),e.fieldContext){let{getInternalHooks:t}=e.fieldContext,{initEntityValue:n}=t(N_);n(this)}}componentDidMount(){let{shouldUpdate:e,fieldContext:t}=this.props;if(this.mounted=!0,t){let{getInternalHooks:e}=t,{registerField:n}=e(N_);this.cancelRegisterFunc=n(this)}e===!0&&this.reRender()}componentWillUnmount(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}cancelRegister=()=>{let{preserve:e,isListField:t,name:n}=this.props;this.cancelRegisterFunc&&this.cancelRegisterFunc(t,e,Hv(n)),this.cancelRegisterFunc=null};getNamePath=()=>{let{name:e,fieldContext:t}=this.props,{prefixName:n=[]}=t;return e===void 0?[]:[...n,...e]};getRules=()=>{let{rules:e=[],fieldContext:t}=this.props;return e.map(e=>typeof e==`function`?e(t):e)};reRender(){this.mounted&&this.forceUpdate()}refresh=()=>{this.mounted&&this.setState(({resetCount:e})=>({resetCount:e+1}))};metaCache=null;triggerMetaEvent=e=>{let{onMetaChange:t}=this.props;if(t){let n={...this.getMeta(),destroy:e};Ha(this.metaCache,n)||t(n),this.metaCache=n}else this.metaCache=null};onStoreChange=(e,t,n)=>{let{shouldUpdate:r,dependencies:i=[],onReset:a}=this.props,{store:o}=n,s=this.getNamePath(),c=this.getValue(e),l=this.getValue(o),u=t&&Wv(t,s);switch(n.type===`valueUpdate`&&n.source===`external`&&!Ha(c,l)&&(this.touched=!0,this.dirty=!0,this.validatePromise=null,this.errors=$v,this.warnings=ey,this.triggerMetaEvent()),n.type){case`reset`:if(!t||u){this.touched=!1,this.dirty=!1,this.validatePromise=void 0,this.errors=$v,this.warnings=ey,this.triggerMetaEvent(),a?.(),this.refresh();return}break;case`remove`:if(r&&ty(r,e,o,c,l,n)){this.reRender();return}break;case`setField`:{let{data:i}=n;if(u){`touched`in i&&(this.touched=i.touched),`validating`in i&&!(`originRCField`in i)&&(this.validatePromise=i.validating?Promise.resolve([]):null),`errors`in i&&(this.errors=i.errors||$v),`warnings`in i&&(this.warnings=i.warnings||ey),this.dirty=!0,this.triggerMetaEvent(),this.reRender();return}else if(`value`in i&&Wv(t,s,!0)){this.reRender();return}if(r&&!s.length&&ty(r,e,o,c,l,n)){this.reRender();return}break}case`dependenciesUpdate`:if(i.map(Hv).some(e=>Wv(n.relatedFields,e))){this.reRender();return}break;default:if(u||(!i.length||s.length||r)&&ty(r,e,o,c,l,n)){this.reRender();return}break}r===!0&&this.reRender()};validateRules=e=>{let t=this.getNamePath(),n=this.getValue(),{triggerName:r,validateOnly:i=!1,delayFrame:a}=e||{},o=Promise.resolve().then(async()=>{if(!this.mounted)return[];let{validateFirst:i=!1,messageVariables:s,validateDebounce:c}=this.props;a&&await Zv();let l=this.getRules();if(r&&(l=l.filter(e=>e).filter(e=>{let{validateTrigger:t}=e;return t?L_(t).includes(r):!0})),c&&r&&(await new Promise(e=>{setTimeout(e,c)}),this.validatePromise!==o))return[];let u=zv(t,n,l,e,i,s);return u.catch(e=>e).then((e=$v)=>{if(this.validatePromise===o){this.validatePromise=null;let t=[],n=[];e.forEach?.(({rule:{warningOnly:e},errors:r=$v})=>{e?n.push(...r):t.push(...r)}),this.errors=t,this.warnings=n,this.triggerMetaEvent(),this.reRender()}}),u});return i?o:(this.validatePromise=o,this.dirty=!0,this.errors=$v,this.warnings=ey,this.triggerMetaEvent(),this.reRender(),o)};isFieldValidating=()=>!!this.validatePromise;isFieldTouched=()=>this.touched;isFieldDirty=()=>{if(this.dirty||this.props.initialValue!==void 0)return!0;let{fieldContext:e}=this.props,{getInitialValue:t}=e.getInternalHooks(N_);return t(this.getNamePath())!==void 0};getErrors=()=>this.errors;getWarnings=()=>this.warnings;isListField=()=>this.props.isListField;isList=()=>this.props.isList;isPreserve=()=>this.props.preserve;getMeta=()=>(this.prevValidating=this.isFieldValidating(),{touched:this.isFieldTouched(),validating:this.prevValidating,errors:this.errors,warnings:this.warnings,name:this.getNamePath(),validated:this.validatePromise===null});getOnlyChild=e=>{if(typeof e==`function`){let t=this.getMeta();return{...this.getOnlyChild(e(this.getControlled(),t,this.props.fieldContext)),isFunction:!0}}let t=eo(e);return t.length!==1||!U.isValidElement(t[0])?{child:t,isFunction:!1}:{child:t[0],isFunction:!1}};getValue=e=>{let{getFieldsValue:t}=this.props.fieldContext,n=this.getNamePath();return no(e||t(!0),n)};getControlled=(e={})=>{let{name:t,trigger:n=`onChange`,validateTrigger:r,getValueFromEvent:i,normalize:a,valuePropName:o=`value`,getValueProps:s,fieldContext:c}=this.props,l=r===void 0?c.validateTrigger:r,u=this.getNamePath(),{getInternalHooks:d,getFieldsValue:f}=c,{dispatch:p}=d(N_),m=this.getValue(),h=s||(e=>({[o]:e})),g=e[n],_=t===void 0?{}:h(m);process.env.NODE_ENV!==`production`&&_&&Object.keys(_).forEach(e=>{Ba(typeof _[e]!=`function`,`It's not recommended to generate dynamic function prop by \`getValueProps\`. Please pass it to child component directly (prop: ${e})`)});let v={...e,..._};return v[n]=(...e)=>{this.touched=!0,this.dirty=!0,this.triggerMetaEvent();let t;t=i?i(...e):qv(o,...e),a&&(t=a(t,m,f(!0))),t!==m&&p({type:`updateValue`,namePath:u,value:t}),g&&g(...e)},L_(l||[]).forEach(e=>{let t=v[e];v[e]=(...n)=>{t&&t(...n);let{rules:r}=this.props;r&&r.length&&p({type:`validateField`,namePath:u,triggerName:e})}}),v};render(){let{resetCount:e}=this.state,{children:t}=this.props,{child:n,isFunction:r}=this.getOnlyChild(t),i;return r?i=n:U.isValidElement(n)?i=U.cloneElement(n,this.getControlled(n.props)):(Ba(!n,"`children` of Field is not validate ReactElement."),i=n),U.createElement(U.Fragment,{key:e},i)}};function ry({name:e,...t}){let n=U.useContext(F_),r=U.useContext(I_),i=e===void 0?void 0:Hv(e),a=t.isListField??!!r,o=`keep`;return a||(o=`_${(i||[]).join(`_`)}`),process.env.NODE_ENV!==`production`&&t.preserve===!1&&a&&i.length<=1&&Ba(!1,"`preserve` should not apply on Form.List fields."),U.createElement(ny,Qv({key:o,name:i,isListField:a},t,{fieldContext:n}))}function iy({name:e,initialValue:t,children:n,rules:r,validateTrigger:i,isListField:a}){let o=U.useContext(F_),s=U.useContext(I_),c=U.useRef({keys:[],id:0}).current,l=U.useMemo(()=>[...Hv(o.prefixName)||[],...Hv(e)],[o.prefixName,e]),u=U.useMemo(()=>({...o,prefixName:l}),[o,l]),d=U.useMemo(()=>({getKey:e=>{let t=l.length,n=e[t];return[c.keys[n],e.slice(t+1)]}}),[c,l]);return typeof n==`function`?U.createElement(I_.Provider,{value:d},U.createElement(F_.Provider,{value:u},U.createElement(ry,{name:[],shouldUpdate:(e,t,{source:n})=>n===`internal`?!1:e!==t,rules:r,validateTrigger:i,initialValue:t,isList:!0,isListField:a??!!s},({value:e=[],onChange:t},r)=>{let{getFieldValue:i}=o,a=()=>i(l||[])||[],s={add:(e,n)=>{let r=a();n>=0&&n<=r.length?(c.keys=[...c.keys.slice(0,n),c.id,...c.keys.slice(n)],t([...r.slice(0,n),e,...r.slice(n)])):(process.env.NODE_ENV!==`production`&&(n<0||n>r.length)&&Ba(!1,`The second parameter of the add function should be a valid positive number.`),c.keys=[...c.keys,c.id],t([...r,e])),c.id+=1},remove:e=>{let n=a(),r=new Set(Array.isArray(e)?e:[e]);r.size<=0||(c.keys=c.keys.filter((e,t)=>!r.has(t)),t(n.filter((e,t)=>!r.has(t))))},move(e,n){if(e===n)return;let r=a();e<0||e>=r.length||n<0||n>=r.length||(c.keys=Jv(c.keys,e,n),t(Jv(r,e,n)))}},u=e||[];return Array.isArray(u)||(u=[],process.env.NODE_ENV!==`production`&&Ba(!1,`Current value of '${l.join(` > `)}' is not an array type.`)),n(u.map((e,t)=>{let n=c.keys[t];return n===void 0&&(c.keys[t]=c.id,n=c.keys[t],c.id+=1),{name:t,key:n,isListField:!0}}),s,r)}))):(Ba(!1,`Form.List only accepts function as children.`),null)}function ay(e){let t=!1,n=e.length,r=[];return e.length?new Promise((i,a)=>{e.forEach((e,o)=>{e.catch(e=>(t=!0,e)).then(e=>{--n,r[o]=e,!(n>0)&&(t&&a(r),i(r))})})}):Promise.resolve([])}var oy=`__@field_split__`;function sy(e){return e.map(e=>`${typeof e}:${e}`).join(oy)}var cy=class{kvs=new Map;set(e,t){this.kvs.set(sy(e),t)}get(e){return this.kvs.get(sy(e))}getAsPrefix(e){let t=sy(e),n=t+oy,r=[],i=this.kvs.get(t);return i!==void 0&&r.push(i),this.kvs.forEach((e,t)=>{t.startsWith(n)&&r.push(e)}),r}update(e,t){let n=t(this.get(e));n?this.set(e,n):this.delete(e)}delete(e){this.kvs.delete(sy(e))}map(e){return[...this.kvs.entries()].map(([t,n])=>e({key:t.split(oy).map(e=>{let[,t,n]=e.match(/^([^:]*):(.*)$/);return t===`number`?Number(n):n}),value:n}))}toJSON(){let e={};return this.map(({key:t,value:n})=>(e[t.join(`.`)]=n,null)),e}},ly=class{formHooked=!1;forceRootUpdate;subscribable=!0;store={};fieldEntities=[];initialValues={};callbacks={};validateMessages=null;preserve=null;lastValidatePromise=null;watcherCenter=new Xv(this);constructor(e){this.forceRootUpdate=e}getForm=()=>({getFieldValue:this.getFieldValue,getFieldsValue:this.getFieldsValue,getFieldError:this.getFieldError,getFieldWarning:this.getFieldWarning,getFieldsError:this.getFieldsError,isFieldsTouched:this.isFieldsTouched,isFieldTouched:this.isFieldTouched,isFieldValidating:this.isFieldValidating,isFieldsValidating:this.isFieldsValidating,resetFields:this.resetFields,setFields:this.setFields,setFieldValue:this.setFieldValue,setFieldsValue:this.setFieldsValue,validateFields:this.validateFields,submit:this.submit,_init:!0,getInternalHooks:this.getInternalHooks});getInternalHooks=e=>e===`RC_FORM_INTERNAL_HOOKS`?(this.formHooked=!0,{dispatch:this.dispatch,initEntityValue:this.initEntityValue,registerField:this.registerField,useSubscribe:this.useSubscribe,setInitialValues:this.setInitialValues,destroyForm:this.destroyForm,setCallbacks:this.setCallbacks,setValidateMessages:this.setValidateMessages,getFields:this.getFields,setPreserve:this.setPreserve,getInitialValue:this.getInitialValue,registerWatch:this.registerWatch}):(Ba(!1,"`getInternalHooks` is internal usage. Should not call directly."),null);useSubscribe=e=>{this.subscribable=e};prevWithoutPreserves=null;setInitialValues=(e,t)=>{if(this.initialValues=e||{},t){let t=lo(e,this.store);this.prevWithoutPreserves?.map(({key:n})=>{t=io(t,n,no(e,n))}),this.prevWithoutPreserves=null,this.updateStore(t)}};destroyForm=e=>{if(e)this.updateStore({});else{let e=new cy;this.getFieldEntities(!0).forEach(t=>{this.isMergedPreserve(t.isPreserve())||e.set(t.getNamePath(),!0)}),this.prevWithoutPreserves=e}};getInitialValue=e=>{let t=no(this.initialValues,e);return e.length?lo(t):t};setCallbacks=e=>{this.callbacks=e};setValidateMessages=e=>{this.validateMessages=e};setPreserve=e=>{this.preserve=e};registerWatch=e=>this.watcherCenter.register(e);notifyWatch=(e=[])=>{this.watcherCenter.notify(e)};timeoutId=null;warningUnhooked=()=>{process.env.NODE_ENV!==`production`&&!this.timeoutId&&typeof window<`u`&&(this.timeoutId=setTimeout(()=>{this.timeoutId=null,this.formHooked||Ba(!1,"Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?")}))};updateStore=e=>{this.store=e};getFieldEntities=(e=!1)=>e?this.fieldEntities.filter(e=>e.getNamePath().length):this.fieldEntities;getFieldsMap=(e=!1)=>{let t=new cy;return this.getFieldEntities(e).forEach(e=>{let n=e.getNamePath();t.set(n,e)}),t};getFieldEntitiesForNamePathList=(e,t=!1)=>{if(!e)return this.getFieldEntities(!0);let n=this.getFieldsMap(!0);return t?e.flatMap(e=>{let t=Hv(e),r=n.getAsPrefix(t);return r.length?r:[{INVALIDATE_NAME_PATH:t}]}):e.map(e=>{let t=Hv(e);return n.get(t)||{INVALIDATE_NAME_PATH:Hv(e)}})};getFieldsValue=(e,t)=>{this.warningUnhooked();let n,r;if(e===!0||Array.isArray(e)?(n=e,r=t):e&&typeof e==`object`&&(r=e.filter),n===!0&&!r)return this.store;let i=this.getFieldEntitiesForNamePathList(Array.isArray(n)?n:null,!0),a=[],o=[];i.forEach(e=>{let t=e.INVALIDATE_NAME_PATH||e.getNamePath();if(e.isList?.()){o.push(t);return}if(!r)a.push(t);else{let n=`getMeta`in e?e.getMeta():null;r(n)&&a.push(t)}});let s=Uv(this.store,a.map(Hv));return o.forEach(e=>{no(s,e)||(s=io(s,e,[]))}),s};getFieldValue=e=>{this.warningUnhooked();let t=Hv(e);return no(this.store,t)};getFieldsError=e=>(this.warningUnhooked(),this.getFieldEntitiesForNamePathList(e).map((t,n)=>t&&!t.INVALIDATE_NAME_PATH?{name:t.getNamePath(),errors:t.getErrors(),warnings:t.getWarnings()}:{name:Hv(e[n]),errors:[],warnings:[]}));getFieldError=e=>{this.warningUnhooked();let t=Hv(e);return this.getFieldsError([t])[0].errors};getFieldWarning=e=>{this.warningUnhooked();let t=Hv(e);return this.getFieldsError([t])[0].warnings};isFieldsTouched=(...e)=>{this.warningUnhooked();let[t,n]=e,r,i=!1;e.length===0?r=null:e.length===1?Array.isArray(t)?(r=t.map(Hv),i=!1):(r=null,i=t):(r=t.map(Hv),i=n);let a=this.getFieldEntities(!0),o=e=>e.isFieldTouched();if(!r)return i?a.every(e=>o(e)||e.isList()):a.some(o);let s=new cy;r.forEach(e=>{s.set(e,[])}),a.forEach(e=>{let t=e.getNamePath();r.forEach(n=>{n.every((e,n)=>t[n]===e)&&s.update(n,t=>[...t,e])})});let c=e=>e.some(o),l=s.map(({value:e})=>e);return i?l.every(c):l.some(c)};isFieldTouched=e=>(this.warningUnhooked(),this.isFieldsTouched([e]));isFieldsValidating=e=>{this.warningUnhooked();let t=this.getFieldEntities();if(!e)return t.some(e=>e.isFieldValidating());let n=e.map(Hv);return t.some(e=>Wv(n,e.getNamePath())&&e.isFieldValidating())};isFieldValidating=e=>(this.warningUnhooked(),this.isFieldsValidating([e]));resetWithFieldInitialValue=(e={})=>{let t=new cy,n=this.getFieldEntities(!0);n.forEach(e=>{let{initialValue:n}=e.props,r=e.getNamePath();if(n!==void 0){let i=t.get(r)||new Set;i.add({entity:e,value:n}),t.set(r,i)}});let r=n=>{n.forEach(n=>{let{initialValue:r}=n.props;if(r!==void 0){let r=n.getNamePath();if(this.getInitialValue(r)!==void 0)Ba(!1,`Form already set 'initialValues' with path '${r.join(`.`)}'. Field can not overwrite it.`);else{let i=t.get(r);if(i&&i.size>1)Ba(!1,`Multiple Field with path '${r.join(`.`)}' set 'initialValue'. Can not decide which one to pick.`);else if(i){let t=this.getFieldValue(r);!n.isListField()&&(!e.skipExist||t===void 0)&&this.updateStore(io(this.store,r,[...i][0].value))}}}})},i;e.entities?i=e.entities:e.namePathList?(i=[],e.namePathList.forEach(e=>{let n=t.get(e);n&&i.push(...[...n].map(e=>e.entity))})):i=n,r(i)};resetFields=e=>{this.warningUnhooked();let t=this.store;if(!e){this.updateStore(lo(this.initialValues)),this.resetWithFieldInitialValue(),this.notifyObservers(t,null,{type:`reset`}),this.notifyWatch();return}let n=e.map(Hv);n.forEach(e=>{let t=this.getInitialValue(e);this.updateStore(io(this.store,e,t))}),this.resetWithFieldInitialValue({namePathList:n}),this.notifyObservers(t,n,{type:`reset`}),this.notifyWatch(n)};setFields=e=>{this.warningUnhooked();let t=this.store,n=[];e.forEach(e=>{let{name:r,...i}=e,a=Hv(r);n.push(a),`value`in i&&this.updateStore(io(this.store,a,i.value)),this.notifyObservers(t,[a],{type:`setField`,data:e})}),this.notifyWatch(n)};getFields=()=>this.getFieldEntities(!0).map(e=>{let t=e.getNamePath(),n={...e.getMeta(),name:t,value:this.getFieldValue(t)};return Object.defineProperty(n,`originRCField`,{value:!0}),n});initEntityValue=e=>{let{initialValue:t}=e.props;if(t!==void 0){let n=e.getNamePath();no(this.store,n)===void 0&&this.updateStore(io(this.store,n,t))}};isMergedPreserve=e=>(e===void 0?this.preserve:e)??!0;registerField=e=>{this.fieldEntities.push(e);let t=e.getNamePath();if(this.notifyWatch([t]),e.props.initialValue!==void 0){let t=this.store;this.resetWithFieldInitialValue({entities:[e],skipExist:!0}),this.notifyObservers(t,[e.getNamePath()],{type:`valueUpdate`,source:`internal`})}return(n,r,i=[])=>{if(this.fieldEntities=this.fieldEntities.filter(t=>t!==e),!this.isMergedPreserve(r)&&(!n||i.length>1)){let e=n?void 0:this.getInitialValue(t);if(t.length&&this.getFieldValue(t)!==e&&this.fieldEntities.every(e=>!Gv(e.getNamePath(),t))){let n=this.store;this.updateStore(io(n,t,e,!0)),this.notifyObservers(n,[t],{type:`remove`}),this.triggerDependenciesUpdate(n,t)}}this.notifyWatch([t])}};dispatch=e=>{switch(e.type){case`updateValue`:{let{namePath:t,value:n}=e;this.updateValue(t,n);break}case`validateField`:{let{namePath:t,triggerName:n}=e;this.validateFields([t],{triggerName:n});break}default:}};notifyObservers=(e,t,n)=>{if(this.subscribable){let r={...n,store:this.getFieldsValue(!0)};this.getFieldEntities().forEach(({onStoreChange:n})=>{n(e,t,r)})}else this.forceRootUpdate()};triggerDependenciesUpdate=(e,t)=>{let n=this.getDependencyChildrenFields(t);return n.length&&this.validateFields(n,{delayFrame:!0}),this.notifyObservers(e,n,{type:`dependenciesUpdate`,relatedFields:[t,...n]}),n};updateValue=(e,t)=>{let n=Hv(e),r=this.store;this.updateStore(io(this.store,n,t)),this.notifyObservers(r,[n],{type:`valueUpdate`,source:`internal`}),this.notifyWatch([n]);let i=this.triggerDependenciesUpdate(r,n),{onValuesChange:a}=this.callbacks;if(a){let e=Uv(this.store,[n]);a(e,io(this.getFieldsValue(),n,no(e,n)))}this.triggerOnFieldsChange([n,...i])};setFieldsValue=e=>{this.warningUnhooked();let t=this.store;if(e){let t=lo(this.store,e);this.updateStore(t)}this.notifyObservers(t,null,{type:`valueUpdate`,source:`external`}),this.notifyWatch()};setFieldValue=(e,t)=>{this.setFields([{name:e,value:t,errors:[],warnings:[],touched:!0}])};getDependencyChildrenFields=e=>{let t=new Set,n=[],r=new cy;this.getFieldEntities().forEach(e=>{let{dependencies:t}=e.props;(t||[]).forEach(t=>{let n=Hv(t);r.update(n,(t=new Set)=>(t.add(e),t))})});let i=e=>{(r.get(e)||new Set).forEach(e=>{if(!t.has(e)){t.add(e);let r=e.getNamePath();e.isFieldDirty()&&r.length&&(n.push(r),i(r))}})};return i(e),n};triggerOnFieldsChange=(e,t)=>{let{onFieldsChange:n}=this.callbacks;if(n){let r=this.getFields();if(t){let e=new cy;t.forEach(({name:t,errors:n})=>{e.set(t,n)}),r.forEach(t=>{t.errors=e.get(t.name)||t.errors})}let i=r.filter(({name:t})=>Wv(e,t));i.length&&n(i,r)}};validateFields=(e,t)=>{this.warningUnhooked();let n,r;Array.isArray(e)||typeof e==`string`||typeof t==`string`?(n=e,r=t):r=e;let i=!!n,a=i?n.map(Hv):[],o=[...a],s=[],c=String(Date.now()),l=new Set,{recursive:u,dirty:d}=r||{};this.getFieldEntities(!0).forEach(e=>{let t=e.getNamePath();if(i||((!e.isList()||!a.some(e=>Gv(e,t,!0)))&&o.push(t),a.push(t)),!(!e.props.rules||!e.props.rules.length)&&!(d&&!e.isFieldDirty())&&(l.add(t.join(c)),!i||Wv(a,t,u))){let n=e.validateRules({validateMessages:{...Pv,...this.validateMessages},...r});s.push(n.then(()=>({name:t,errors:[],warnings:[]})).catch(e=>{let n=[],r=[];return e.forEach?.(({rule:{warningOnly:e},errors:t})=>{e?r.push(...t):n.push(...t)}),n.length?Promise.reject({name:t,errors:n,warnings:r}):{name:t,errors:n,warnings:r}}))}});let f=ay(s);this.lastValidatePromise=f,f.catch(e=>e).then(e=>{let t=e.map(({name:e})=>e);this.notifyObservers(this.store,t,{type:`validateFinish`}),this.triggerOnFieldsChange(t,e)});let p=f.then(()=>this.lastValidatePromise===f?Promise.resolve(this.getFieldsValue(o)):Promise.reject([])).catch(e=>{let t=e.filter(e=>e&&e.errors.length),n=t[0]?.errors?.[0];return Promise.reject({message:n,values:this.getFieldsValue(a),errorFields:t,outOfDate:this.lastValidatePromise!==f})});p.catch(e=>e);let m=a.filter(e=>l.has(e.join(c)));return this.triggerOnFieldsChange(m),p};submit=()=>{this.warningUnhooked(),this.validateFields().then(e=>{let{onFinish:t}=this.callbacks;if(t)try{t(e)}catch(e){console.error(e)}}).catch(e=>{let{onFinishFailed:t}=this.callbacks;t&&t(e)})}};function uy(e){let t=U.useRef(null),[,n]=U.useState({});return t.current||(e?t.current=e:t.current=new ly(()=>{n({})}).getForm()),[t.current]}var dy=U.createContext({triggerFormChange:()=>{},triggerFormFinish:()=>{},registerForm:()=>{},unregisterForm:()=>{}}),fy=({validateMessages:e,onFormChange:t,onFormFinish:n,children:r})=>{let i=U.useContext(dy),a=U.useRef({});return U.createElement(dy.Provider,{value:{...i,validateMessages:{...i.validateMessages,...e},triggerFormChange:(e,n)=>{t&&t(e,{changedFields:n,forms:a.current}),i.triggerFormChange(e,n)},triggerFormFinish:(e,t)=>{n&&n(e,{values:t,forms:a.current}),i.triggerFormFinish(e,t)},registerForm:(e,t)=>{e&&(a.current={...a.current,[e]:t}),i.registerForm(e,t)},unregisterForm:e=>{let t={...a.current};delete t[e],a.current=t,i.unregisterForm(e)}}},r)};function py(){return py=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},py.apply(this,arguments)}var my=({name:e,initialValues:t,fields:n,form:r,preserve:i,children:a,component:o=`form`,validateMessages:s,validateTrigger:c=`onChange`,onValuesChange:l,onFieldsChange:u,onFinish:d,onFinishFailed:f,clearOnDestroy:p,...m},h)=>{let g=U.useRef(null),_=U.useContext(dy),[v]=uy(r),{useSubscribe:y,setInitialValues:b,setCallbacks:x,setValidateMessages:S,setPreserve:C,destroyForm:w}=v.getInternalHooks(N_);U.useImperativeHandle(h,()=>({...v,nativeElement:g.current})),U.useEffect(()=>(_.registerForm(e,v),()=>{_.unregisterForm(e)}),[_,v,e]),S({..._.validateMessages,...s}),x({onValuesChange:l,onFieldsChange:(t,...n)=>{_.triggerFormChange(e,t),u&&u(t,...n)},onFinish:t=>{_.triggerFormFinish(e,t),d&&d(t)},onFinishFailed:f}),C(i);let T=U.useRef(null);b(t,!T.current),T.current||=!0,U.useEffect(()=>()=>w(p),[]);let E,D=typeof a==`function`;E=D?a(v.getFieldsValue(!0),v):a,y(!D);let O=U.useRef(null);U.useEffect(()=>{Kv(O.current||[],n||[])||v.setFields(n||[]),O.current=n},[n,v]);let k=U.useMemo(()=>({...v,validateTrigger:c}),[v,c]),A=U.createElement(I_.Provider,{value:null},U.createElement(F_.Provider,{value:k},E));return o===!1?A:U.createElement(o,py({},m,{ref:g,onSubmit:e=>{e.preventDefault(),e.stopPropagation(),v.submit()},onReset:e=>{e.preventDefault(),v.resetFields(),m.onReset?.(e)}}),A)};function hy(e){try{return JSON.stringify(e)}catch{return Math.random()}}function gy(...e){let[t,n={}]=e,r=R_(n)?{form:n}:n,i=r.form,[a,o]=(0,U.useState)(()=>typeof t==`function`?t({}):void 0),s=(0,U.useMemo)(()=>hy(a),[a]),c=(0,U.useRef)(s);c.current=s;let l=(0,U.useContext)(F_),u=i||l,d=u&&u._init;process.env.NODE_ENV!==`production`&&Ba(e.length===2?i?d:!0:d,`useWatch requires a form instance since it can not auto detect from context.`);let{getFieldsValue:f,getInternalHooks:p}=u,{registerWatch:m}=p(N_),h=Ri((e,n)=>{let i=r.preserve?n??f(!0):e??f(),s=typeof t==`function`?t(i):no(i,Hv(t));hy(a)!==hy(s)&&o(s)});return(0,U.useEffect)(()=>{d&&h()},[d,typeof t==`function`?t:JSON.stringify(t)]),(0,U.useEffect)(()=>{if(d)return m((e,t)=>{h(e,t)})},[d]),a}var _y=U.forwardRef(my);_y.FormProvider=fy,_y.Field=ry,_y.List=iy,_y.useForm=uy,_y.useWatch=gy;var vy=U.createContext({});process.env.NODE_ENV!==`production`&&(vy.displayName=`FormItemInputContext`);var yy=({children:e,status:t,override:n})=>{let r=U.useContext(vy),i=U.useMemo(()=>{let e={...r};return n&&delete e.isFormItemInput,t&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e},[t,n,r]);return U.createElement(vy.Provider,{value:i},e)},by=e=>{let{space:t,form:n,children:r}=e;if(!op(r))return null;let i=r;return n&&(i=U.createElement(yy,{override:!0,status:!0},i)),t&&(i=U.createElement(Ug,null,i)),i},xy={info:U.createElement(hf,null),success:U.createElement(nf,null),error:U.createElement(of,null),warning:U.createElement(ff,null),loading:U.createElement(Xh,null)};function Sy(e,t){return t===null||t===!1?null:t||U.createElement(lf,{className:`${e}-close-icon`})}var Cy=e=>{let{prefixCls:t,icon:n,type:r,message:i,title:a,description:o,btn:s,actions:c,closeIcon:l,className:u,style:d,styles:f,classNames:p,closable:m,role:h,...g}=e,{getPrefixCls:_,className:v,style:y,classNames:b,styles:x}=Wo(`notification`),[S,C]=gp([b,p],[x,f],{props:e}),{notification:w}=U.useContext(Vo),T=c??s;if(process.env.NODE_ENV!==`production`){let t=vo(`Notification`);[[`btn`,`actions`],[`message`,`title`]].forEach(([n,r])=>{t.deprecated(!(n in e),n,r)})}let E=a??i,D=op(E)&&E!==!1&&E!==``,O=t||_(`notification`),k=`${O}-notice`,A=n||(r?xy[r]:null),j=!n&&r?`${k}-icon-${r}`:void 0,{root:M,...N}=S,{root:ee,...te}=C,P=_p(O),[F,ne]=Rg(O,P),[re,ie,,I]=rg(Zh(e),Zh(w),{closable:!0,closeIcon:U.createElement(lf,{className:`${O}-close-icon`}),closeIconRender:e=>Sy(O,e)}),ae=re?{onClose:cp(m)?m?.onClose:void 0,closeIcon:ie,...I}:!1;return U.createElement(`div`,{className:G(`${k}-pure-panel`,F,u,ne,P,M),style:ee},U.createElement(Ig,{prefixCls:O}),U.createElement(Dh,{style:{...y,...d},...g,prefixCls:O,duration:null,closable:ae,className:v,title:D?E:null,description:o,icon:A,actions:T,role:h,classNames:{...N,icon:G(j,N.icon)},styles:te}))},wy=4.5,Ty=`topRight`,Ey={offset:8},Dy=({children:e,prefixCls:t})=>{let n=_p(t),[r,i]=Rg(t,n);return U.createElement(kh,{classNames:{list:G(r,i,n)}},e)},Oy=(e,{prefixCls:t,key:n})=>U.createElement(Dy,{prefixCls:t,key:n},e),ky=U.forwardRef((e,t)=>{let{top:n,bottom:r,prefixCls:i,getContainer:a,maxCount:o,rtl:s,onAllRemoved:c,stack:l,duration:u=wy,pauseOnHover:d=!0,showProgress:f}=e,{getPrefixCls:p,getPopupContainer:m,direction:h}=Wo(`notification`),{notification:g}=(0,U.useContext)(Vo),_=i||p(`notification`),v=(0,U.useMemo)(()=>sp(u)&&u>0?u:!1,[u]),[y,b]=gp([g?.classNames,e?.classNames],[g?.styles,e?.styles],{props:e}),x=()=>Gh(n,r),S=()=>G({[`${_}-rtl`]:s??h===`rtl`}),C=()=>Kh(_),w=Wh(l,Ey),[T,E]=Uh({prefixCls:_,style:x,className:S,motion:C,closable:{closeIcon:Sy(_)},duration:v,getContainer:()=>a?.()||m?.()||document.body,maxCount:o,pauseOnHover:d,showProgress:f,classNames:y,styles:b,onAllRemoved:c,renderNotifications:Oy,stack:w});return U.useImperativeHandle(t,()=>({...T,prefixCls:_,notification:g})),E});function Ay(e){let t=U.useRef(null),n=vo(`Notification`),{notification:r}=U.useContext(Vo);return[U.useMemo(()=>{let i=i=>{if(!t.current){process.env.NODE_ENV!==`production`&&n(!1,`usage`,`You are calling notice in render which will break in React 18 concurrent mode. Please trigger in effect instead.`);return}let{open:a,prefixCls:o,notification:s}=t.current,c=s?.className||{},l=s?.style||{},u=`${o}-notice`,{title:d,message:f,description:p,icon:m,type:h,btn:g,actions:_,className:v,style:y,role:b=`alert`,closeIcon:x,closable:S,classNames:C={},styles:w={},...T}=i;process.env.NODE_ENV!==`production`&&[[`btn`,`actions`],[`message`,`title`]].forEach(([e,t])=>{n.deprecated(!(e in i),e,t)});let E=d??f,D=_??g,O=Sy(u,qh(x,e,s)),[k,A,,j]=ng(Zh({...e||{},...i}),Zh(r),{closable:!0,closeIcon:O}),M=k?{onClose:cp(S)?S.onClose:void 0,closeIcon:A,...j}:!1,N=hp(C,{props:i}),ee=hp(w,{props:i}),te=m||(h?xy[h]:null),P=!m&&h?`${u}-icon-${h}`:void 0;return a({placement:e?.placement??Ty,...T,title:E,description:p,icon:te,actions:D,role:b,classNames:{...N,icon:G(P,N.icon)},styles:{...ee,root:{...l,...ee.root}},className:G({[`${u}-${h}`]:h},v,c),style:y,closable:M})},a={open:i,destroy:e=>{e===void 0?t.current?.destroy():t.current?.close(e)}};return[`success`,`info`,`warning`,`error`].forEach(e=>{a[e]=t=>i({...t,type:e})}),a},[e,r]),U.createElement(ky,{key:`notification-holder`,...e,ref:t})]}function jy(e){return Ay(e)}var My=U.createContext({}),Ny=e=>{let{children:t,prefixCls:n,id:r,classNames:i,styles:a,className:o,style:s}=e;return U.createElement(`div`,{id:r,className:G(`${n}-container`,i?.container,o),style:{...a?.container,...s},role:`tooltip`},typeof t==`function`?t():t)},Py={shiftX:64,adjustY:1},Fy={adjustX:1,shiftY:!0},X=[0,0],Iy={left:{points:[`cr`,`cl`],overflow:Fy,offset:[-4,0],targetOffset:X},right:{points:[`cl`,`cr`],overflow:Fy,offset:[4,0],targetOffset:X},top:{points:[`bc`,`tc`],overflow:Py,offset:[0,-4],targetOffset:X},bottom:{points:[`tc`,`bc`],overflow:Py,offset:[0,4],targetOffset:X},topLeft:{points:[`bl`,`tl`],overflow:Py,offset:[0,-4],targetOffset:X},leftTop:{points:[`tr`,`tl`],overflow:Fy,offset:[-4,0],targetOffset:X},topRight:{points:[`br`,`tr`],overflow:Py,offset:[0,-4],targetOffset:X},rightTop:{points:[`tl`,`tr`],overflow:Fy,offset:[4,0],targetOffset:X},bottomRight:{points:[`tr`,`br`],overflow:Py,offset:[0,4],targetOffset:X},rightBottom:{points:[`bl`,`br`],overflow:Fy,offset:[4,0],targetOffset:X},bottomLeft:{points:[`tl`,`bl`],overflow:Py,offset:[0,4],targetOffset:X},leftBottom:{points:[`br`,`bl`],overflow:Fy,offset:[-4,0],targetOffset:X}};function Ly(){return Ly=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ly.apply(this,arguments)}var Ry=U.forwardRef((e,t)=>{let{trigger:n=[`hover`],mouseEnterDelay:r=0,mouseLeaveDelay:i=.1,prefixCls:a=`rc-tooltip`,children:o,onVisibleChange:s,afterVisibleChange:c,motion:l,placement:u=`right`,align:d={},destroyOnHidden:f=!1,defaultVisible:p,getTooltipContainer:m,arrowContent:h,overlay:g,id:_,showArrow:v=!0,classNames:y,styles:b,...x}=e,S=qi(_),C=(0,U.useRef)(null);(0,U.useImperativeHandle)(t,()=>C.current);let w={...x};`visible`in e&&(w.popupVisible=e.visible);let T=U.useMemo(()=>{if(!v)return!1;let e=v===!0?{}:v;return{...e,className:G(e.className,y?.arrow),style:{...e.style,...b?.arrow},content:e.content??h}},[v,y?.arrow,b?.arrow,h]);return U.createElement(Bm,Ly({popupClassName:y?.root,prefixCls:a,popup:U.createElement(Ny,{key:`content`,prefixCls:a,id:S,classNames:y,styles:b},g),action:n,builtinPlacements:Iy,popupPlacement:u,ref:C,popupAlign:d,getPopupContainer:m,onOpenChange:s,afterOpenChange:c,popupMotion:l,defaultPopupVisible:p,autoDestroy:f,mouseLeaveDelay:i,popupStyle:b?.root,mouseEnterDelay:r,arrow:T,uniqueContainerClassName:y?.uniqueContainer,uniqueContainerStyle:b?.uniqueContainer},w),({open:e})=>{let t=U.Children.only(o),n={"aria-describedby":g&&e?S:void 0};return U.cloneElement(t,n)})});function zy(e){let{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,i=t/2,a=i,o=r*1/Math.sqrt(2),s=i-r*(1-1/Math.sqrt(2)),c=i-1/Math.sqrt(2)*n,l=r*(Math.sqrt(2)-1)+1/Math.sqrt(2)*n,u=2*i-c,d=l,f=2*i-o,p=s,m=2*i-0,h=a,g=i*Math.sqrt(2)+r*(Math.sqrt(2)-2),_=r*(Math.sqrt(2)-1),v=`polygon(${_}px 100%, 50% ${_}px, ${2*i-_}px 100%, ${_}px 100%)`;return{arrowShadowWidth:g,arrowPath:`path('M 0 ${a} A ${r} ${r} 0 0 0 ${o} ${s} L ${c} ${l} A ${n} ${n} 0 0 1 ${u} ${d} L ${f} ${p} A ${r} ${r} 0 0 0 ${m} ${h} Z')`,arrowPolygon:v}}var By=(e,t,n)=>{let{sizePopupArrow:r,arrowPolygon:i,arrowPath:a,arrowShadowWidth:o,borderRadiusXS:s,calc:c}=e;return{pointerEvents:`none`,width:r,height:r,overflow:`hidden`,"&::before":{position:`absolute`,bottom:0,insetInlineStart:0,width:r,height:c(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[i,a]},content:`""`},"&::after":{content:`""`,position:`absolute`,width:o,height:o,bottom:0,insetInline:0,margin:`auto`,borderRadius:{_skip_check_:!0,value:`0 0 ${_s(s)} 0`},transform:`translateY(50%) rotate(-135deg)`,boxShadow:n,zIndex:0,background:`transparent`}}};function Vy(e){let{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?8:r}}function Hy(e,t){return e?t:{}}var Uy=(e,t,n)=>{let{componentCls:r,boxShadowPopoverArrow:i,arrowOffsetVertical:a,arrowOffsetHorizontal:o,antCls:s}=e,[c]=Nd(s,`tooltip`),{arrowDistance:l=0,arrowPlacement:u={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[r]:{[`${r}-arrow`]:[{position:`absolute`,zIndex:1,display:`block`,...By(e,t,i),"&:before":{background:t}}],...Hy(!!u.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(`,`)]:{bottom:l,transform:`translateY(100%) rotate(180deg)`},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:`50%`},transform:`translateX(-50%) translateY(100%) rotate(180deg)`},"&-placement-topLeft":{[c(`arrow-offset-x`)]:o,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:o}}},"&-placement-topRight":{[c(`arrow-offset-x`)]:`calc(100% - ${_s(o)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:o}}}}),...Hy(!!u.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(`,`)]:{top:l,transform:`translateY(-100%)`},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:`50%`},transform:`translateX(-50%) translateY(-100%)`},"&-placement-bottomLeft":{[c(`arrow-offset-x`)]:o,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:o}}},"&-placement-bottomRight":{[c(`arrow-offset-x`)]:`calc(100% - ${_s(o)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:o}}}}),...Hy(!!u.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(`,`)]:{right:{_skip_check_:!0,value:l},transform:`translateX(100%) rotate(90deg)`},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:`50%`},transform:`translateY(-50%) translateX(100%) rotate(90deg)`},[`&-placement-leftTop > ${r}-arrow`]:{top:a},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:a}}),...Hy(!!u.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(`,`)]:{left:{_skip_check_:!0,value:l},transform:`translateX(-100%) rotate(-90deg)`},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:`50%`},transform:`translateY(-50%) translateX(-100%) rotate(-90deg)`},[`&-placement-rightTop > ${r}-arrow`]:{top:a},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:a}})}}};function Wy(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};let i=cp(r)?r:{},a={};switch(e){case`top`:case`bottom`:a.shiftX=t.arrowOffsetHorizontal*2+n,a.shiftY=!0,a.adjustY=!0;break;case`left`:case`right`:a.shiftY=t.arrowOffsetVertical*2+n,a.shiftX=!0,a.adjustX=!0;break}let o={...a,...i};return o.shiftX||(o.adjustX=!0),o.shiftY||(o.adjustY=!0),o}var Gy={left:{points:[`cr`,`cl`]},right:{points:[`cl`,`cr`]},top:{points:[`bc`,`tc`]},bottom:{points:[`tc`,`bc`]},topLeft:{points:[`bl`,`tl`]},leftTop:{points:[`tr`,`tl`]},topRight:{points:[`br`,`tr`]},rightTop:{points:[`tl`,`tr`]},bottomRight:{points:[`tr`,`br`]},rightBottom:{points:[`bl`,`br`]},bottomLeft:{points:[`tl`,`bl`]},leftBottom:{points:[`br`,`bl`]}},Ky={topLeft:{points:[`bl`,`tc`]},leftTop:{points:[`tr`,`cl`]},topRight:{points:[`br`,`tc`]},rightTop:{points:[`tl`,`cr`]},bottomRight:{points:[`tr`,`bc`]},rightBottom:{points:[`bl`,`cr`]},bottomLeft:{points:[`tl`,`bc`]},leftBottom:{points:[`br`,`cl`]}},qy=new Set([`topLeft`,`topRight`,`bottomLeft`,`bottomRight`,`leftTop`,`leftBottom`,`rightTop`,`rightBottom`]);function Jy(e){let{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:i,borderRadius:a,visibleFirst:o}=e,s=t/2,c={},l=Vy({contentRadius:a,limitVerticalRadius:!0});return Object.keys(Gy).forEach(e=>{let a={...r&&Ky[e]||Gy[e],offset:[0,0],dynamicInset:!0};switch(c[e]=a,qy.has(e)&&(a.autoArrow=!1),e){case`top`:case`topLeft`:case`topRight`:a.offset[1]=-s-i;break;case`bottom`:case`bottomLeft`:case`bottomRight`:a.offset[1]=s+i;break;case`left`:case`leftTop`:case`leftBottom`:a.offset[0]=-s-i;break;case`right`:case`rightTop`:case`rightBottom`:a.offset[0]=s+i;break}if(r)switch(e){case`topLeft`:case`bottomLeft`:a.offset[0]=-l.arrowOffsetHorizontal-s;break;case`topRight`:case`bottomRight`:a.offset[0]=l.arrowOffsetHorizontal+s;break;case`leftTop`:case`rightTop`:a.offset[1]=-l.arrowOffsetHorizontal*2+s;break;case`leftBottom`:case`rightBottom`:a.offset[1]=l.arrowOffsetHorizontal*2-s;break}a.overflow=Wy(e,l,t,n),o&&(a.htmlRegion=`visibleFirst`)}),c}var Yy=U.createContext(!1),Xy=(e,t)=>{let n=e=>typeof e==`boolean`?{show:e}:e||{};return U.useMemo(()=>{let r=n(e),i=n(t);return{...i,...r,show:r.show??i.show??!0}},[e,t])},Zy=`50%`,Qy=e=>{let{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:i,tooltipBg:a,tooltipBorderRadius:o,zIndexPopup:s,controlHeight:c,boxShadowSecondary:l,paddingSM:u,paddingXS:d,arrowOffsetHorizontal:f,sizePopupArrow:p,antCls:m}=e,[h,g]=Nd(m,`tooltip`),_=t(o).add(p).add(f).equal(),v={minWidth:t(o).mul(2).add(p).equal(),minHeight:c,padding:`${_s(e.calc(u).div(2).equal())} ${_s(d)}`,color:g(`overlay-color`,i),textAlign:`start`,textDecoration:`none`,wordWrap:`break-word`,backgroundColor:a,borderRadius:o,boxShadow:l,boxSizing:`border-box`},y={[h(`valid-offset-x`)]:g(`arrow-offset-x`,`var(--arrow-x)`),transformOrigin:[g(`valid-offset-x`,Zy),`var(--arrow-y, ${Zy})`].join(` `)};return[{[n]:{...Cd(e),position:`absolute`,zIndex:s,display:`block`,width:`max-content`,maxWidth:r,visibility:`visible`,...y,"&-hidden":{display:`none`},[h(`arrow-background-color`)]:a,[`${n}-container`]:[v,Jg(e,!0)],[`&:has(~ ${n}-unique-container)`]:{[`${n}-container`]:{border:`none`,background:`transparent`,boxShadow:`none`}},[[`&-placement-topLeft`,`&-placement-topRight`,`&-placement-bottomLeft`,`&-placement-bottomRight`].join(`,`)]:{minWidth:_},[[`&-placement-left`,`&-placement-leftTop`,`&-placement-leftBottom`,`&-placement-right`,`&-placement-rightTop`,`&-placement-rightBottom`].join(`,`)]:{[`${n}-inner`]:{borderRadius:e.min(o,8)}},[`${n}-content`]:{position:`relative`},...Pd(e,(e,{darkColor:t})=>({[`&${n}-${e}`]:{[`${n}-container`]:{backgroundColor:t},[`${n}-arrow`]:{[h(`arrow-background-color`)]:t}}})),"&-rtl":{direction:`rtl`}}},Uy(e,g(`arrow-background-color`)),{[`${n}-pure`]:{position:`relative`,maxWidth:`none`,margin:e.sizePopupArrow}},{[`${n}-unique-container`]:{...v,...y,position:`absolute`,zIndex:t(s).sub(1).equal(),"&-hidden":{display:`none`},"&-visible":{transition:`all ${e.motionDurationSlow}`}}}]},$y=e=>({zIndexPopup:e.zIndexPopupBase+70,maxWidth:250,...Vy({contentRadius:e.borderRadius,limitVerticalRadius:!0}),...zy(Kl(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))}),eb=(e,t,n=!0)=>Ad(`Tooltip`,e=>{let{borderRadius:t,colorTextLightSolid:n,colorBgSpotlight:r,maxWidth:i}=e;return[Qy(Kl(e,{tooltipMaxWidth:i,tooltipColor:n,tooltipBorderRadius:t,tooltipBg:r})),c_(e,`zoom-big-fast`)]},$y,{resetStyle:!1,injectStyle:n})(e,t),tb=ru.map(e=>`${e}-inverse`);function nb(e,t=!0){return t?[].concat(Bo(tb),Bo(ru)).includes(e):ru.includes(e)}var rb=(e,t,n)=>{let r=nb(n),[i]=Nd(e,`tooltip`),a=G({[`${t}-${n}`]:n&&r}),o={},s={},c=M_(n).toRgb(),l=(.299*c.r+.587*c.g+.114*c.b)/255<.5?`#FFF`:`#000`;return n&&!r&&(o.background=n,o[i(`overlay-color`)]=l,s[i(`arrow-background-color`)]=n),{className:a,overlayStyle:o,arrowStyle:s}},ib=e=>{let{prefixCls:t,className:n,placement:r=`top`,title:i,color:a,overlayInnerStyle:o,classNames:s,styles:c}=e,{getPrefixCls:l}=U.useContext(Vo),u=l(`tooltip`,t),d=l(),f=_p(u),[p,m]=eb(u,f),h=rb(d,u,a),g=h.arrowStyle,_=U.useMemo(()=>({container:{...o,...h.overlayStyle}}),[o,h.overlayStyle]),v={...e,placement:r},[y,b]=gp([s],[_,c],{props:v}),x=G(f,p,m,u,`${u}-pure`,`${u}-placement-${r}`,n,h.className);return U.createElement(`div`,{className:x,style:g},U.createElement(`div`,{className:`${u}-arrow`}),U.createElement(Ny,{...e,className:p,prefixCls:u,classNames:y,styles:b},i))},ab=U.forwardRef((e,t)=>{let{prefixCls:n,openClassName:r,getTooltipContainer:i,color:a,children:o,afterOpenChange:s,arrow:c,destroyTooltipOnHide:l,destroyOnHidden:u,title:d,overlay:f,trigger:p,builtinPlacements:m,autoAdjustOverflow:h=!0,motion:g,getPopupContainer:_,placement:v=`top`,mouseEnterDelay:y=.1,mouseLeaveDelay:b=.1,rootClassName:x,styles:S,classNames:C,onOpenChange:w,overlayInnerStyle:T,overlayStyle:E,overlayClassName:D,...O}=e,[,k]=Sd(),A=e[`data-popover-inject`],{getPopupContainer:j,getPrefixCls:M,direction:N,...ee}=Wo(`tooltip`),{className:te,style:P,classNames:F,styles:ne,arrow:re,trigger:ie}=A?{}:ee,I=Xy(c,re),ae=I.show,L=p||ie||`hover`,oe=_||j,se=u??!!l,ce=U.useContext(Yy),le=vo(`Tooltip`),ue=U.useRef(null),de=()=>{ue.current?.forceAlign()};U.useImperativeHandle(t,()=>({forceAlign:de,nativeElement:ue.current?.nativeElement,popupElement:ue.current?.popupElement})),process.env.NODE_ENV!==`production`&&([[`overlayStyle`,`styles.root`],[`overlayInnerStyle`,`styles.container`],[`overlayClassName`,`classNames.root`],[`destroyTooltipOnHide`,`destroyOnHidden`]].forEach(([t,n])=>{le.deprecated(!(t in e),t,n)}),process.env.NODE_ENV!==`production`&&le(!l||typeof l==`boolean`,`usage`,"`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly."));let[fe,R]=Ui(e.defaultOpen??!1,e.open),z=!d&&!f&&d!==0,pe=e=>{R(z?!1:e),!z&&w&&w(e)},me=U.useMemo(()=>m||Jy({arrowPointAtCenter:I?.pointAtCenter??!1,autoAdjustOverflow:h,arrowWidth:ae?k.sizePopupArrow:0,borderRadius:k.borderRadius,offset:k.marginXXS,visibleFirst:!0}),[I,m,k,ae,h]),he=U.useMemo(()=>d===0?d:f||d||``,[f,d]),B=U.createElement(by,{space:!0,form:!0},lp(he)?he():he),ge={...e,trigger:L,builtinPlacements:me,getPopupContainer:oe,destroyOnHidden:se},[_e,ve]=gp([F,C],[ne,S],{props:ge}),V=M(`tooltip`,n),ye=M(),be=fe;(!(`open`in e)&&z||ce)&&(be=!1);let xe=U.isValidElement(o)&&!Vm(o)?o:U.createElement(`span`,null,o),H=xe.props,Se=!H.className||typeof H.className==`string`?G(H.className,r||`${V}-open`):H.className,Ce=_p(V),[we,Te]=eb(V,Ce,!A),Ee=rb(ye,V,a),De=Ee.arrowStyle,Oe=G(Ce,we,Te),ke=G(D,{[`${V}-rtl`]:N===`rtl`},Ee.className,x,Oe,te,_e.root),[Ae,je]=dg(`Tooltip`,O.zIndex),Me={...ve.container,...T,...Ee.overlayStyle},Ne=U.createElement(Ry,{unique:!0,...O,zIndex:Ae,showArrow:ae,placement:v,mouseEnterDelay:y,mouseLeaveDelay:b,prefixCls:V,classNames:{root:ke,container:_e.container,arrow:_e.arrow,uniqueContainer:G(Oe,_e.container)},styles:{root:{...De,...ve.root,...P,...E},container:Me,uniqueContainer:Me,arrow:ve.arrow},ref:ue,overlay:B,visible:be,onVisibleChange:pe,afterVisibleChange:s,arrowContent:U.createElement(`span`,{className:`${V}-arrow-content`}),motion:{motionName:Vg(ye,`zoom-big-fast`,typeof g?.motionName==`string`?g?.motionName:void 0),motionDeadline:1e3},trigger:L,builtinPlacements:me,getTooltipContainer:oe,destroyOnHidden:se},be?Um(xe,{className:Se}):xe);return U.createElement(ig.Provider,{value:je},Ne)});process.env.NODE_ENV!==`production`&&(ab.displayName=`Tooltip`),ab._InternalPanelDoNotUseOrYouWillBeFired=ib,ab.UniqueProvider=qm;var ob=c(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs=r()})(e,(function(){"use strict";var e=1e3,t=6e4,n=36e5,r=`millisecond`,i=`second`,a=`minute`,o=`hour`,s=`day`,c=`week`,l=`month`,u=`quarter`,d=`year`,f=`date`,p=`Invalid Date`,m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:`en`,weekdays:`Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday`.split(`_`),months:`January_February_March_April_May_June_July_August_September_October_November_December`.split(`_`),ordinal:function(e){var t=[`th`,`st`,`nd`,`rd`],n=e%100;return`[`+e+(t[(n-20)%10]||t[n]||t[0])+`]`}},_=function(e,t,n){var r=String(e);return!r||r.length>=t?e:``+Array(t+1-r.length).join(n)+e},v={s:_,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?`+`:`-`)+_(r,2,`0`)+`:`+_(i,2,`0`)},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,l),a=n-i<0,o=t.clone().add(r+(a?-1:1),l);return+(-(r+(n-i)/(a?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:d,w:c,d:s,D:f,h:o,m:a,s:i,ms:r,Q:u}[e]||String(e||``).toLowerCase().replace(/s$/,``)},u:function(e){return e===void 0}},y=`en`,b={};b[y]=g;var x=`$isDayjsObject`,S=function(e){return e instanceof E||!(!e||!e[x])},C=function e(t,n,r){var i;if(!t)return y;if(typeof t==`string`){var a=t.toLowerCase();b[a]&&(i=a),n&&(b[a]=n,i=a);var o=t.split(`-`);if(!i&&o.length>1)return e(o[0])}else{var s=t.name;b[s]=t,i=s}return!r&&i&&(y=i),i||!r&&y},w=function(e,t){if(S(e))return e.clone();var n=typeof t==`object`?t:{};return n.date=e,n.args=arguments,new E(n)},T=v;T.l=C,T.i=S,T.w=function(e,t){return w(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function g(e){this.$L=C(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var _=g.prototype;return _.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(t===null)return new Date(NaN);if(T.u(t))return new Date;if(t instanceof Date)return new Date(t);if(typeof t==`string`&&!/Z$/i.test(t)){var r=t.match(m);if(r){var i=r[2]-1||0,a=(r[7]||`0`).substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},_.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},_.$utils=function(){return T},_.isValid=function(){return this.$d.toString()!==p},_.isSame=function(e,t){var n=w(e);return this.startOf(t)<=n&&n<=this.endOf(t)},_.isAfter=function(e,t){return w(e)<this.startOf(t)},_.isBefore=function(e,t){return this.endOf(t)<w(e)},_.$g=function(e,t,n){return T.u(e)?this[t]:this.set(n,e)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(e,t){var n=this,r=!!T.u(t)||t,u=T.p(e),p=function(e,t){var i=T.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s)},m=function(e,t){return T.w(n.toDate()[e].apply(n.toDate(`s`),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},h=this.$W,g=this.$M,_=this.$D,v=`set`+(this.$u?`UTC`:``);switch(u){case d:return r?p(1,0):p(31,11);case l:return r?p(1,g):p(0,g+1);case c:var y=this.$locale().weekStart||0,b=(h<y?h+7:h)-y;return p(r?_-b:_+(6-b),g);case s:case f:return m(v+`Hours`,0);case o:return m(v+`Minutes`,1);case a:return m(v+`Seconds`,2);case i:return m(v+`Milliseconds`,3);default:return this.clone()}},_.endOf=function(e){return this.startOf(e,!1)},_.$set=function(e,t){var n,c=T.p(e),u=`set`+(this.$u?`UTC`:``),p=(n={},n[s]=u+`Date`,n[f]=u+`Date`,n[l]=u+`Month`,n[d]=u+`FullYear`,n[o]=u+`Hours`,n[a]=u+`Minutes`,n[i]=u+`Seconds`,n[r]=u+`Milliseconds`,n)[c],m=c===s?this.$D+(t-this.$W):t;if(c===l||c===d){var h=this.clone().set(f,1);h.$d[p](m),h.init(),this.$d=h.set(f,Math.min(this.$D,h.daysInMonth())).$d}else p&&this.$d[p](m);return this.init(),this},_.set=function(e,t){return this.clone().$set(e,t)},_.get=function(e){return this[T.p(e)]()},_.add=function(r,u){var f,p=this;r=Number(r);var m=T.p(u),h=function(e){var t=w(p);return T.w(t.date(t.date()+Math.round(e*r)),p)};if(m===l)return this.set(l,this.$M+r);if(m===d)return this.set(d,this.$y+r);if(m===s)return h(1);if(m===c)return h(7);var g=(f={},f[a]=t,f[o]=n,f[i]=e,f)[m]||1,_=this.$d.getTime()+r*g;return T.w(_,this)},_.subtract=function(e,t){return this.add(-1*e,t)},_.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||`YYYY-MM-DDTHH:mm:ssZ`,i=T.z(this),a=this.$H,o=this.$m,s=this.$M,c=n.weekdays,l=n.months,u=n.meridiem,d=function(e,n,i,a){return e&&(e[n]||e(t,r))||i[n].slice(0,a)},f=function(e){return T.s(a%12||12,e,`0`)},m=u||function(e,t,n){var r=e<12?`AM`:`PM`;return n?r.toLowerCase():r};return r.replace(h,(function(e,r){return r||function(e){switch(e){case`YY`:return String(t.$y).slice(-2);case`YYYY`:return T.s(t.$y,4,`0`);case`M`:return s+1;case`MM`:return T.s(s+1,2,`0`);case`MMM`:return d(n.monthsShort,s,l,3);case`MMMM`:return d(l,s);case`D`:return t.$D;case`DD`:return T.s(t.$D,2,`0`);case`d`:return String(t.$W);case`dd`:return d(n.weekdaysMin,t.$W,c,2);case`ddd`:return d(n.weekdaysShort,t.$W,c,3);case`dddd`:return c[t.$W];case`H`:return String(a);case`HH`:return T.s(a,2,`0`);case`h`:return f(1);case`hh`:return f(2);case`a`:return m(a,o,!0);case`A`:return m(a,o,!1);case`m`:return String(o);case`mm`:return T.s(o,2,`0`);case`s`:return String(t.$s);case`ss`:return T.s(t.$s,2,`0`);case`SSS`:return T.s(t.$ms,3,`0`);case`Z`:return i}return null}(e)||i.replace(`:`,``)}))},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(r,f,p){var m,h=this,g=T.p(f),_=w(r),v=(_.utcOffset()-this.utcOffset())*t,y=this-_,b=function(){return T.m(h,_)};switch(g){case d:m=b()/12;break;case l:m=b();break;case u:m=b()/3;break;case c:m=(y-v)/6048e5;break;case s:m=(y-v)/864e5;break;case o:m=y/n;break;case a:m=y/t;break;case i:m=y/e;break;default:m=y}return p?m:T.a(m)},_.daysInMonth=function(){return this.endOf(l).$D},_.$locale=function(){return b[this.$L]},_.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=C(e,t,!0);return r&&(n.$L=r),n},_.clone=function(){return T.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},g}(),D=E.prototype;return w.prototype=D,[[`$ms`,r],[`$s`,i],[`$m`,a],[`$H`,o],[`$W`,s],[`$M`,l],[`$y`,d],[`$D`,f]].forEach((function(e){D[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),w.extend=function(e,t){return e.$i||=(e(t,E,w),!0),w},w.locale=C,w.isDayjs=S,w.unix=function(e){return w(1e3*e)},w.en=b[y],w.Ls=b,w.p={},w}))})),sb=e=>{let{items:t,classNames:n,placement:r=`topRight`,style:i}=e,{getPrefixCls:a}=Wo(`notification`),o=a(`notification`),s=_p(o),[c,l]=Rg(o,s),u=`${o}-notice`,d=t.map(e=>{let{actions:t,description:n,duration:r,key:i,showProgress:a,title:o,type:s}=e,c=`${u}-icon-${s}`;return{key:i,actions:t,closable:{closeIcon:Sy(u)},description:n,duration:r,icon:xy[s],showProgress:a,title:o,className:`${u}-${s}`,classNames:{icon:c}}});return U.createElement(Rh,{prefixCls:o,placement:r,configList:d,className:G(c,l,s),classNames:n,style:i,stack:!1})},cb=null,lb=e=>e(),ub=[],db={};function fb(){let{getContainer:e,rtl:t,maxCount:n,top:r,bottom:i,showProgress:a,pauseOnHover:o}=db,s=e?.()||document.body;return{getContainer:()=>s,rtl:t,maxCount:n,top:r,bottom:i,showProgress:a,pauseOnHover:o}}var pb=U.forwardRef((e,t)=>{let{notificationConfig:n,sync:r}=e,{getPrefixCls:i}=(0,U.useContext)(Vo),a=db.prefixCls||i(`notification`),o=(0,U.useContext)(My),[s,c]=Ay({...n,prefixCls:a,...o.notification});return U.useEffect(r,[]),U.useImperativeHandle(t,()=>{let e={...s};return Object.keys(e).forEach(t=>{e[t]=(...e)=>(r(),s[t].apply(s,e))}),{instance:e,sync:r}}),c}),mb=U.forwardRef((e,t)=>{let[n,r]=U.useState(fb),i=()=>{r(fb)};U.useEffect(i,[]);let a=hh(),o=a.getRootPrefixCls(),s=a.getIconPrefixCls(),c=a.getTheme(),l=U.createElement(pb,{ref:t,sync:i,notificationConfig:n});return U.createElement(_h,{prefixCls:o,iconPrefixCls:s,theme:c},a.holderRender?a.holderRender(l):l)}),hb=()=>{if(!cb){let e=document.createDocumentFragment(),t={fragment:e};cb=t,lb(()=>{Bg(U.createElement(mb,{ref:e=>{let{instance:n,sync:r}=e||{};Promise.resolve().then(()=>{!t.instance&&n&&(t.instance=n,t.sync=r,hb())})}}),e)});return}cb.instance&&(ub.forEach(e=>{switch(e.type){case`open`:lb(()=>{cb.instance.open({...db,...e.config})});break;case`destroy`:lb(()=>{cb?.instance?.destroy(e.key)});break}}),ub=[])};function gb(e){db={...db,...e},lb(()=>{cb?.sync?.()})}function _b(e){let t=hh();process.env.NODE_ENV!==`production`&&!t.holderRender&&oh(`notification`),ub.push({type:`open`,config:e}),hb()}var vb=e=>{ub.push({type:`destroy`,key:e}),hb()},yb=[`success`,`info`,`warning`,`error`],bb={open:_b,destroy:vb,config:gb,useNotification:jy,_InternalPanelDoNotUseOrYouWillBeFired:Cy,_InternalListDoNotUseOrYouWillBeFired:sb};yb.forEach(e=>{bb[e]=t=>_b({...t,type:e})}),process.env.NODE_ENV,process.env.NODE_ENV;function xb(e){if(e)throw e}var Sb=c(((e,t)=>{var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=function(e){return typeof Array.isArray==`function`?Array.isArray(e):r.call(e)===`[object Array]`},s=function(e){if(!e||r.call(e)!==`[object Object]`)return!1;var t=n.call(e,`constructor`),i=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,`isPrototypeOf`);if(e.constructor&&!t&&!i)return!1;for(var a in e);return a===void 0||n.call(e,a)},c=function(e,t){i&&t.name===`__proto__`?i(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,t){if(t===`__proto__`){if(!n.call(e,t))return;if(a)return a(e,t).value}return e[t]};t.exports=function e(){var t,n,r,i,a,u,d=arguments[0],f=1,p=arguments.length,m=!1;for(typeof d==`boolean`&&(m=d,d=arguments[1]||{},f=2),(d==null||typeof d!=`object`&&typeof d!=`function`)&&(d={});f<p;++f)if(t=arguments[f],t!=null)for(n in t)r=l(d,n),i=l(t,n),d!==i&&(m&&i&&(s(i)||(a=o(i)))?(a?(a=!1,u=r&&o(r)?r:[]):u=r&&s(r)?r:{},c(d,{name:n,newValue:e(m,u,i)})):i!==void 0&&c(d,{name:n,newValue:i}));return d}}));function Cb(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function wb(){let e=[],t={run:n,use:r};return t;function n(...t){let n=-1,r=t.pop();if(typeof r!=`function`)throw TypeError(`Expected function as last argument, not `+r);i(null,...t);function i(a,...o){let s=e[++n],c=-1;if(a){r(a);return}for(;++c<t.length;)(o[c]===null||o[c]===void 0)&&(o[c]=t[c]);t=o,s?Tb(s,i)(...o):r(null,...o)}}function r(n){if(typeof n!=`function`)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}}function Tb(e,t){let n;return r;function r(...t){let r=e.length>t.length,o;r&&t.push(i);try{o=e.apply(this,t)}catch(e){let t=e;if(r&&n)throw t;return i(t)}r||(o&&o.then&&typeof o.then==`function`?o.then(a,i):o instanceof Error?i(o):a(o))}function i(e,...r){n||(n=!0,t(e,...r))}function a(e){i(null,e)}}function Eb(e){return!e||typeof e!=`object`?``:`position`in e||`type`in e?Ob(e.position):`start`in e||`end`in e?Ob(e):`line`in e||`column`in e?Db(e):``}function Db(e){return kb(e&&e.line)+`:`+kb(e&&e.column)}function Ob(e){return Db(e&&e.start)+`-`+Db(e&&e.end)}function kb(e){return e&&typeof e==`number`?e:1}var Ab=class extends Error{constructor(e,t,n){super(),typeof t==`string`&&(n=t,t=void 0);let r=``,i={},a=!1;if(t&&(i=`line`in t&&`column`in t||`start`in t&&`end`in t?{place:t}:`type`in t?{ancestors:[t],place:t.position}:{...t}),typeof e==`string`?r=e:!i.cause&&e&&(a=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&typeof n==`string`){let e=n.indexOf(`:`);e===-1?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){let e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}let o=i.place&&`start`in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file=``,this.message=r,this.line=o?o.line:void 0,this.name=Eb(i.place)||`1:1`,this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=a&&i.cause&&typeof i.cause.stack==`string`?i.cause.stack:``,this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};Ab.prototype.file=``,Ab.prototype.name=``,Ab.prototype.reason=``,Ab.prototype.message=``,Ab.prototype.stack=``,Ab.prototype.column=void 0,Ab.prototype.line=void 0,Ab.prototype.ancestors=void 0,Ab.prototype.cause=void 0,Ab.prototype.fatal=void 0,Ab.prototype.place=void 0,Ab.prototype.ruleId=void 0,Ab.prototype.source=void 0;var jb={basename:Mb,dirname:Nb,extname:Pb,join:Fb,sep:`/`};function Mb(e,t){if(t!==void 0&&typeof t!=`string`)throw TypeError(`"ext" argument must be a string`);Rb(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?``:e.slice(n,r)}if(t===e)return``;let o=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else o<0&&(a=!0,o=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(r=i):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function Nb(e){if(Rb(e),e.length===0)return`.`;let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||=!0;return t<0?e.codePointAt(0)===47?`/`:`.`:t===1&&e.codePointAt(0)===47?`//`:e.slice(0,t)}function Pb(e){Rb(e);let t=e.length,n=-1,r=0,i=-1,a=0,o;for(;t--;){let s=e.codePointAt(t);if(s===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),s===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?``:e.slice(i,n)}function Fb(...e){let t=-1,n;for(;++t<e.length;)Rb(e[t]),e[t]&&(n=n===void 0?e[t]:n+`/`+e[t]);return n===void 0?`.`:Ib(n)}function Ib(e){Rb(e);let t=e.codePointAt(0)===47,n=Lb(e,!t);return n.length===0&&!t&&(n=`.`),n.length>0&&e.codePointAt(e.length-1)===47&&(n+=`/`),t?`/`+n:n}function Lb(e,t){let n=``,r=0,i=-1,a=0,o=-1,s,c;for(;++o<=e.length;){if(o<e.length)s=e.codePointAt(o);else if(s===47)break;else s=47;if(s===47){if(!(i===o-1||a===1))if(i!==o-1&&a===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(c=n.lastIndexOf(`/`),c!==n.length-1){c<0?(n=``,r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf(`/`)),i=o,a=0;continue}}else if(n.length>0){n=``,r=0,i=o,a=0;continue}}t&&(n=n.length>0?n+`/..`:`..`,r=2)}else n.length>0?n+=`/`+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1;i=o,a=0}else s===46&&a>-1?a++:a=-1}return n}function Rb(e){if(typeof e!=`string`)throw TypeError(`Path must be a string. Received `+JSON.stringify(e))}var zb={cwd:Bb};function Bb(){return`/`}function Vb(e){return!!(typeof e==`object`&&e&&`href`in e&&e.href&&`protocol`in e&&e.protocol&&e.auth===void 0)}function Hb(e){if(typeof e==`string`)e=new URL(e);else if(!Vb(e)){let t=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:`){let e=TypeError(`The URL must be of scheme file`);throw e.code=`ERR_INVALID_URL_SCHEME`,e}return Ub(e)}function Ub(e){if(e.hostname!==``){let e=TypeError(`File URL host must be "localhost" or empty on darwin`);throw e.code=`ERR_INVALID_FILE_URL_HOST`,e}let t=e.pathname,n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){let e=t.codePointAt(n+2);if(e===70||e===102){let e=TypeError(`File URL path must not include encoded / characters`);throw e.code=`ERR_INVALID_FILE_URL_PATH`,e}}return decodeURIComponent(t)}var Wb=[`history`,`path`,`basename`,`stem`,`extname`,`dirname`],Gb=class{constructor(e){let t;t=e?Vb(e)?{path:e}:typeof e==`string`||Yb(e)?{value:e}:e:{},this.cwd=`cwd`in t?``:zb.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<Wb.length;){let e=Wb[n];e in t&&t[e]!==void 0&&t[e]!==null&&(this[e]=e===`history`?[...t[e]]:t[e])}let r;for(r in t)Wb.includes(r)||(this[r]=t[r])}get basename(){return typeof this.path==`string`?jb.basename(this.path):void 0}set basename(e){qb(e,`basename`),Kb(e,`basename`),this.path=jb.join(this.dirname||``,e)}get dirname(){return typeof this.path==`string`?jb.dirname(this.path):void 0}set dirname(e){Jb(this.basename,`dirname`),this.path=jb.join(e||``,this.basename)}get extname(){return typeof this.path==`string`?jb.extname(this.path):void 0}set extname(e){if(Kb(e,`extname`),Jb(this.dirname,`extname`),e){if(e.codePointAt(0)!==46)throw Error("`extname` must start with `.`");if(e.includes(`.`,1))throw Error("`extname` cannot contain multiple dots")}this.path=jb.join(this.dirname,this.stem+(e||``))}get path(){return this.history[this.history.length-1]}set path(e){Vb(e)&&(e=Hb(e)),qb(e,`path`),this.path!==e&&this.history.push(e)}get stem(){return typeof this.path==`string`?jb.basename(this.path,this.extname):void 0}set stem(e){qb(e,`stem`),Kb(e,`stem`),this.path=jb.join(this.dirname||``,e+(this.extname||``))}fail(e,t,n){let r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){let r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){let r=new Ab(e,t,n);return this.path&&(r.name=this.path+`:`+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return this.value===void 0?``:typeof this.value==`string`?this.value:new TextDecoder(e||void 0).decode(this.value)}};function Kb(e,t){if(e&&e.includes(jb.sep))throw Error("`"+t+"` cannot be a path: did not expect `"+jb.sep+"`")}function qb(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function Jb(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}function Yb(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var Xb=(function(e){let t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r}),Zb=d(Sb(),1),Qb={}.hasOwnProperty,$b=new class e extends Xb{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=wb()}copy(){let t=new e,n=-1;for(;++n<this.attachers.length;){let e=this.attachers[n];t.use(...e)}return t.data((0,Zb.default)(!0,{},this.namespace)),t}data(e,t){return typeof e==`string`?arguments.length===2?(nx(`data`,this.frozen),this.namespace[e]=t,this):Qb.call(this.namespace,e)&&this.namespace[e]||void 0:e?(nx(`data`,this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;let e=this;for(;++this.freezeIndex<this.attachers.length;){let[t,...n]=this.attachers[this.freezeIndex];if(n[0]===!1)continue;n[0]===!0&&(n[0]=void 0);let r=t.call(e,...n);typeof r==`function`&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=1/0,this}parse(e){this.freeze();let t=ax(e),n=this.parser||this.Parser;return ex(`parse`,n),n(String(t),t)}process(e,t){let n=this;return this.freeze(),ex(`process`,this.parser||this.Parser),tx(`process`,this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){let a=ax(e),o=n.parse(a);n.run(o,a,function(e,t,r){if(e||!t||!r)return s(e);let i=t,a=n.stringify(i,r);sx(a)?r.value=a:r.result=a,s(e,r)});function s(e,n){e||!n?i(e):r?r(n):t(void 0,n)}}}processSync(e){let t=!1,n;return this.freeze(),ex(`processSync`,this.parser||this.Parser),tx(`processSync`,this.compiler||this.Compiler),this.process(e,r),ix(`processSync`,`process`,t),n;function r(e,r){t=!0,xb(e),n=r}}run(e,t,n){rx(e),this.freeze();let r=this.transformers;return!n&&typeof t==`function`&&(n=t,t=void 0),n?i(void 0,n):new Promise(i);function i(i,a){let o=ax(t);r.run(e,o,s);function s(t,r,o){let s=r||e;t?a(t):i?i(s):n(void 0,s,o)}}}runSync(e,t){let n=!1,r;return this.run(e,t,i),ix(`runSync`,`run`,n),r;function i(e,t){xb(e),r=t,n=!0}}stringify(e,t){this.freeze();let n=ax(t),r=this.compiler||this.Compiler;return tx(`stringify`,r),rx(e),r(e,n)}use(e,...t){let n=this.attachers,r=this.namespace;if(nx(`use`,this.frozen),e!=null)if(typeof e==`function`)s(e,t);else if(typeof e==`object`)Array.isArray(e)?o(e):a(e);else throw TypeError("Expected usable value, not `"+e+"`");return this;function i(e){if(typeof e==`function`)s(e,[]);else if(typeof e==`object`)if(Array.isArray(e)){let[t,...n]=e;s(t,n)}else a(e);else throw TypeError("Expected usable value, not `"+e+"`")}function a(e){if(!(`plugins`in e)&&!(`settings`in e))throw 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(e.plugins),e.settings&&(r.settings=(0,Zb.default)(!0,r.settings,e.settings))}function o(e){let t=-1;if(e!=null)if(Array.isArray(e))for(;++t<e.length;){let n=e[t];i(n)}else throw TypeError("Expected a list of plugins, not `"+e+"`")}function s(e,t){let r=-1,i=-1;for(;++r<n.length;)if(n[r][0]===e){i=r;break}if(i===-1)n.push([e,...t]);else if(t.length>0){let[r,...a]=t,o=n[i][1];Cb(o)&&Cb(r)&&(r=(0,Zb.default)(!0,o,r)),n[i]=[e,r,...a]}}}}().freeze();function ex(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `parser`")}function tx(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `compiler`")}function nx(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function rx(e){if(!Cb(e)||typeof e.type!=`string`)throw TypeError("Expected node, got `"+e+"`")}function ix(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function ax(e){return ox(e)?e:new Gb(e)}function ox(e){return!!(e&&typeof e==`object`&&`message`in e&&`messages`in e)}function sx(e){return typeof e==`string`||cx(e)}function cx(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var lx={};function ux(e,t){let n=t||lx;return dx(e,typeof n.includeImageAlt==`boolean`?n.includeImageAlt:!0,typeof n.includeHtml==`boolean`?n.includeHtml:!0)}function dx(e,t,n){if(px(e)){if(`value`in e)return e.type===`html`&&!n?``:e.value;if(t&&`alt`in e&&e.alt)return e.alt;if(`children`in e)return fx(e.children,t,n)}return Array.isArray(e)?fx(e,t,n):``}function fx(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=dx(e[i],t,n);return r.join(``)}function px(e){return!!(e&&typeof e==`object`)}var mx=document.createElement(`i`);function hx(e){let t=`&`+e+`;`;mx.innerHTML=t;let n=mx.textContent;return n.charCodeAt(n.length-1)===59&&e!==`semi`||n===t?!1:n}function gx(e,t,n,r){let i=e.length,a=0,o;if(t=t<0?-t>i?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a<r.length;)o=r.slice(a,a+1e4),o.unshift(t,0),e.splice(...o),a+=1e4,t+=1e4}function _x(e,t){return e.length>0?(gx(e,e.length,0,t),e):t}var vx={}.hasOwnProperty;function yx(e){let t={},n=-1;for(;++n<e.length;)bx(t,e[n]);return t}function bx(e,t){let n;for(n in t){let r=(vx.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n],a;if(i)for(a in i){vx.call(r,a)||(r[a]=[]);let e=i[a];xx(r[a],Array.isArray(e)?e:e?[e]:[])}}}function xx(e,t){let n=-1,r=[];for(;++n<t.length;)(t[n].add===`after`?e:r).push(t[n]);gx(e,0,0,r)}function Sx(e,t){let n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)==65535||(n&65535)==65534||n>1114111?`�`:String.fromCodePoint(n)}function Cx(e){return e.replace(/[\t\n\r ]+/g,` `).replace(/^ | $/g,``).toLowerCase().toUpperCase()}var wx=Fx(/[A-Za-z]/),Tx=Fx(/[\dA-Za-z]/),Ex=Fx(/[#-'*+\--9=?A-Z^-~]/);function Dx(e){return e!==null&&(e<32||e===127)}var Ox=Fx(/\d/),kx=Fx(/[\dA-Fa-f]/),Ax=Fx(/[!-/:-@[-`{-~]/);function Z(e){return e!==null&&e<-2}function jx(e){return e!==null&&(e<0||e===32)}function Mx(e){return e===-2||e===-1||e===32}var Nx=Fx(/\p{P}|\p{S}/u),Px=Fx(/\s/);function Fx(e){return t;function t(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function Ix(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let a=e.charCodeAt(n),o=``;if(a===37&&Tx(e.charCodeAt(n+1))&&Tx(e.charCodeAt(n+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(o=String.fromCharCode(a));else if(a>55295&&a<57344){let t=e.charCodeAt(n+1);a<56320&&t>56319&&t<57344?(o=String.fromCharCode(a,t),i=1):o=`�`}else o=String.fromCharCode(a);o&&=(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,``),i&&=(n+=i,0)}return t.join(``)+e.slice(r)}function Q(e,t,n,r){let i=r?r-1:1/0,a=0;return o;function o(r){return Mx(r)?(e.enter(n),s(r)):t(r)}function s(r){return Mx(r)&&a++<i?(e.consume(r),s):(e.exit(n),t(r))}}var Lx={tokenize:Rx};function Rx(e){let t=e.attempt(this.parser.constructs.contentInitial,r,i),n;return t;function r(n){if(n===null){e.consume(n);return}return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),Q(e,t,`linePrefix`)}function i(t){return e.enter(`paragraph`),a(t)}function a(t){let r=e.enter(`chunkText`,{contentType:`text`,previous:n});return n&&(n.next=r),n=r,o(t)}function o(t){if(t===null){e.exit(`chunkText`),e.exit(`paragraph`),e.consume(t);return}return Z(t)?(e.consume(t),e.exit(`chunkText`),a):(e.consume(t),o)}}var zx={tokenize:Vx},Bx={tokenize:Hx};function Vx(e){let t=this,n=[],r=0,i,a,o;return s;function s(i){if(r<n.length){let a=n[r];return t.containerState=a[1],e.attempt(a[0].continuation,c,l)(i)}return l(i)}function c(e){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&v();let n=t.events.length,a=n,o;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){o=t.events[a][1].end;break}_(r);let s=n;for(;s<t.events.length;)t.events[s][1].end={...o},s++;return gx(t.events,a+1,0,t.events.slice(n)),t.events.length=s,l(e)}return s(e)}function l(a){if(r===n.length){if(!i)return f(a);if(i.currentConstruct&&i.currentConstruct.concrete)return m(a);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Bx,u,d)(a)}function u(e){return i&&v(),_(r),f(e)}function d(e){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,m(e)}function f(n){return t.containerState={},e.attempt(Bx,p,m)(n)}function p(e){return r++,n.push([t.currentConstruct,t.containerState]),f(e)}function m(n){if(n===null){i&&v(),_(0),e.consume(n);return}return i||=t.parser.flow(t.now()),e.enter(`chunkFlow`,{_tokenizer:i,contentType:`flow`,previous:a}),h(n)}function h(n){if(n===null){g(e.exit(`chunkFlow`),!0),_(0),e.consume(n);return}return Z(n)?(e.consume(n),g(e.exit(`chunkFlow`)),r=0,t.interrupt=void 0,s):(e.consume(n),h)}function g(e,n){let s=t.sliceStream(e);if(n&&s.push(null),e.previous=a,a&&(a.next=e),a=e,i.defineSkip(e.start),i.write(s),t.parser.lazy[e.start.line]){let e=i.events.length;for(;e--;)if(i.events[e][1].start.offset<o&&(!i.events[e][1].end||i.events[e][1].end.offset>o))return;let n=t.events.length,a=n,s,c;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){if(s){c=t.events[a][1].end;break}s=!0}for(_(r),e=n;e<t.events.length;)t.events[e][1].end={...c},e++;gx(t.events,a+1,0,t.events.slice(n)),t.events.length=e}}function _(r){let i=n.length;for(;i-- >r;){let r=n[i];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function v(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function Hx(e,t,n){return Q(e,e.attempt(this.parser.constructs.document,t,n),`linePrefix`,this.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)}function Ux(e){if(e===null||jx(e)||Px(e))return 1;if(Nx(e))return 2}function Wx(e,t,n){let r=[],i=-1;for(;++i<e.length;){let a=e[i].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}var Gx={name:`attention`,resolveAll:Kx,tokenize:qx};function Kx(e,t){let n=-1,r,i,a,o,s,c,l,u;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`attentionSequence`&&e[n][1]._close){for(r=n;r--;)if(e[r][0]===`exit`&&e[r][1].type===`attentionSequence`&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;c=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;let d={...e[r][1].end},f={...e[n][1].start};Jx(d,-c),Jx(f,c),o={type:c>1?`strongSequence`:`emphasisSequence`,start:d,end:{...e[r][1].end}},s={type:c>1?`strongSequence`:`emphasisSequence`,start:{...e[n][1].start},end:f},a={type:c>1?`strongText`:`emphasisText`,start:{...e[r][1].end},end:{...e[n][1].start}},i={type:c>1?`strong`:`emphasis`,start:{...o.start},end:{...s.end}},e[r][1].end={...o.start},e[n][1].start={...s.end},l=[],e[r][1].end.offset-e[r][1].start.offset&&(l=_x(l,[[`enter`,e[r][1],t],[`exit`,e[r][1],t]])),l=_x(l,[[`enter`,i,t],[`enter`,o,t],[`exit`,o,t],[`enter`,a,t]]),l=_x(l,Wx(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),l=_x(l,[[`exit`,a,t],[`enter`,s,t],[`exit`,s,t],[`exit`,i,t]]),e[n][1].end.offset-e[n][1].start.offset?(u=2,l=_x(l,[[`enter`,e[n][1],t],[`exit`,e[n][1],t]])):u=0,gx(e,r-1,n-r+3,l),n=r+l.length-u-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`attentionSequence`&&(e[n][1].type=`data`);return e}function qx(e,t){let n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Ux(r),a;return o;function o(t){return a=t,e.enter(`attentionSequence`),s(t)}function s(o){if(o===a)return e.consume(o),s;let c=e.exit(`attentionSequence`),l=Ux(o),u=!l||l===2&&i||n.includes(o),d=!i||i===2&&l||n.includes(r);return c._open=!!(a===42?u:u&&(i||!d)),c._close=!!(a===42?d:d&&(l||!u)),t(o)}}function Jx(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var Yx={name:`autolink`,tokenize:Xx};function Xx(e,t,n){let r=0;return i;function i(t){return e.enter(`autolink`),e.enter(`autolinkMarker`),e.consume(t),e.exit(`autolinkMarker`),e.enter(`autolinkProtocol`),a}function a(t){return wx(t)?(e.consume(t),o):t===64?n(t):l(t)}function o(e){return e===43||e===45||e===46||Tx(e)?(r=1,s(e)):l(e)}function s(t){return t===58?(e.consume(t),r=0,c):(t===43||t===45||t===46||Tx(t))&&r++<32?(e.consume(t),s):(r=0,l(t))}function c(r){return r===62?(e.exit(`autolinkProtocol`),e.enter(`autolinkMarker`),e.consume(r),e.exit(`autolinkMarker`),e.exit(`autolink`),t):r===null||r===32||r===60||Dx(r)?n(r):(e.consume(r),c)}function l(t){return t===64?(e.consume(t),u):Ex(t)?(e.consume(t),l):n(t)}function u(e){return Tx(e)?d(e):n(e)}function d(n){return n===46?(e.consume(n),r=0,u):n===62?(e.exit(`autolinkProtocol`).type=`autolinkEmail`,e.enter(`autolinkMarker`),e.consume(n),e.exit(`autolinkMarker`),e.exit(`autolink`),t):f(n)}function f(t){if((t===45||Tx(t))&&r++<63){let n=t===45?f:d;return e.consume(t),n}return n(t)}}var Zx={partial:!0,tokenize:Qx};function Qx(e,t,n){return r;function r(t){return Mx(t)?Q(e,i,`linePrefix`)(t):i(t)}function i(e){return e===null||Z(e)?t(e):n(e)}}var $x={continuation:{tokenize:tS},exit:nS,name:`blockQuote`,tokenize:eS};function eS(e,t,n){let r=this;return i;function i(t){if(t===62){let n=r.containerState;return n.open||=(e.enter(`blockQuote`,{_container:!0}),!0),e.enter(`blockQuotePrefix`),e.enter(`blockQuoteMarker`),e.consume(t),e.exit(`blockQuoteMarker`),a}return n(t)}function a(n){return Mx(n)?(e.enter(`blockQuotePrefixWhitespace`),e.consume(n),e.exit(`blockQuotePrefixWhitespace`),e.exit(`blockQuotePrefix`),t):(e.exit(`blockQuotePrefix`),t(n))}}function tS(e,t,n){let r=this;return i;function i(t){return Mx(t)?Q(e,a,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):a(t)}function a(r){return e.attempt($x,t,n)(r)}}function nS(e){e.exit(`blockQuote`)}var rS={name:`characterEscape`,tokenize:iS};function iS(e,t,n){return r;function r(t){return e.enter(`characterEscape`),e.enter(`escapeMarker`),e.consume(t),e.exit(`escapeMarker`),i}function i(r){return Ax(r)?(e.enter(`characterEscapeValue`),e.consume(r),e.exit(`characterEscapeValue`),e.exit(`characterEscape`),t):n(r)}}var aS={name:`characterReference`,tokenize:oS};function oS(e,t,n){let r=this,i=0,a,o;return s;function s(t){return e.enter(`characterReference`),e.enter(`characterReferenceMarker`),e.consume(t),e.exit(`characterReferenceMarker`),c}function c(t){return t===35?(e.enter(`characterReferenceMarkerNumeric`),e.consume(t),e.exit(`characterReferenceMarkerNumeric`),l):(e.enter(`characterReferenceValue`),a=31,o=Tx,u(t))}function l(t){return t===88||t===120?(e.enter(`characterReferenceMarkerHexadecimal`),e.consume(t),e.exit(`characterReferenceMarkerHexadecimal`),e.enter(`characterReferenceValue`),a=6,o=kx,u):(e.enter(`characterReferenceValue`),a=7,o=Ox,u(t))}function u(s){if(s===59&&i){let i=e.exit(`characterReferenceValue`);return o===Tx&&!hx(r.sliceSerialize(i))?n(s):(e.enter(`characterReferenceMarker`),e.consume(s),e.exit(`characterReferenceMarker`),e.exit(`characterReference`),t)}return o(s)&&i++<a?(e.consume(s),u):n(s)}}var sS={partial:!0,tokenize:uS},cS={concrete:!0,name:`codeFenced`,tokenize:lS};function lS(e,t,n){let r=this,i={partial:!0,tokenize:x},a=0,o=0,s;return c;function c(e){return l(e)}function l(t){let n=r.events[r.events.length-1];return a=n&&n[1].type===`linePrefix`?n[2].sliceSerialize(n[1],!0).length:0,s=t,e.enter(`codeFenced`),e.enter(`codeFencedFence`),e.enter(`codeFencedFenceSequence`),u(t)}function u(t){return t===s?(o++,e.consume(t),u):o<3?n(t):(e.exit(`codeFencedFenceSequence`),Mx(t)?Q(e,d,`whitespace`)(t):d(t))}function d(n){return n===null||Z(n)?(e.exit(`codeFencedFence`),r.interrupt?t(n):e.check(sS,h,b)(n)):(e.enter(`codeFencedFenceInfo`),e.enter(`chunkString`,{contentType:`string`}),f(n))}function f(t){return t===null||Z(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),d(t)):Mx(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),Q(e,p,`whitespace`)(t)):t===96&&t===s?n(t):(e.consume(t),f)}function p(t){return t===null||Z(t)?d(t):(e.enter(`codeFencedFenceMeta`),e.enter(`chunkString`,{contentType:`string`}),m(t))}function m(t){return t===null||Z(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceMeta`),d(t)):t===96&&t===s?n(t):(e.consume(t),m)}function h(t){return e.attempt(i,b,g)(t)}function g(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),_}function _(t){return a>0&&Mx(t)?Q(e,v,`linePrefix`,a+1)(t):v(t)}function v(t){return t===null||Z(t)?e.check(sS,h,b)(t):(e.enter(`codeFlowValue`),y(t))}function y(t){return t===null||Z(t)?(e.exit(`codeFlowValue`),v(t)):(e.consume(t),y)}function b(n){return e.exit(`codeFenced`),t(n)}function x(e,t,n){let i=0;return a;function a(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c}function c(t){return e.enter(`codeFencedFence`),Mx(t)?Q(e,l,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):l(t)}function l(t){return t===s?(e.enter(`codeFencedFenceSequence`),u(t)):n(t)}function u(t){return t===s?(i++,e.consume(t),u):i>=o?(e.exit(`codeFencedFenceSequence`),Mx(t)?Q(e,d,`whitespace`)(t):d(t)):n(t)}function d(r){return r===null||Z(r)?(e.exit(`codeFencedFence`),t(r)):n(r)}}}function uS(e,t,n){let r=this;return i;function i(t){return t===null?n(t):(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),a)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}var dS={name:`codeIndented`,tokenize:pS},fS={partial:!0,tokenize:mS};function pS(e,t,n){let r=this;return i;function i(t){return e.enter(`codeIndented`),Q(e,a,`linePrefix`,5)(t)}function a(e){let t=r.events[r.events.length-1];return t&&t[1].type===`linePrefix`&&t[2].sliceSerialize(t[1],!0).length>=4?o(e):n(e)}function o(t){return t===null?c(t):Z(t)?e.attempt(fS,o,c)(t):(e.enter(`codeFlowValue`),s(t))}function s(t){return t===null||Z(t)?(e.exit(`codeFlowValue`),o(t)):(e.consume(t),s)}function c(n){return e.exit(`codeIndented`),t(n)}}function mS(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):Z(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),i):Q(e,a,`linePrefix`,5)(t)}function a(e){let a=r.events[r.events.length-1];return a&&a[1].type===`linePrefix`&&a[2].sliceSerialize(a[1],!0).length>=4?t(e):Z(e)?i(e):n(e)}}var hS={name:`codeText`,previous:_S,resolve:gS,tokenize:vS};function gS(e){let t=e.length-4,n=3,r,i;if((e[n][1].type===`lineEnding`||e[n][1].type===`space`)&&(e[t][1].type===`lineEnding`||e[t][1].type===`space`)){for(r=n;++r<t;)if(e[r][1].type===`codeTextData`){e[n][1].type=`codeTextPadding`,e[t][1].type=`codeTextPadding`,n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!==`lineEnding`&&(i=r):(r===t||e[r][1].type===`lineEnding`)&&(e[i][1].type=`codeTextData`,r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function _S(e){return e!==96||this.events[this.events.length-1][1].type===`characterEscape`}function vS(e,t,n){let r=0,i,a;return o;function o(t){return e.enter(`codeText`),e.enter(`codeTextSequence`),s(t)}function s(t){return t===96?(e.consume(t),r++,s):(e.exit(`codeTextSequence`),c(t))}function c(t){return t===null?n(t):t===32?(e.enter(`space`),e.consume(t),e.exit(`space`),c):t===96?(a=e.enter(`codeTextSequence`),i=0,u(t)):Z(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c):(e.enter(`codeTextData`),l(t))}function l(t){return t===null||t===32||t===96||Z(t)?(e.exit(`codeTextData`),c(t)):(e.consume(t),l)}function u(n){return n===96?(e.consume(n),i++,u):i===r?(e.exit(`codeTextSequence`),e.exit(`codeText`),t(n)):(a.type=`codeTextData`,l(n))}}var yS=class{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){let n=t??1/0;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){let r=t||0;this.setCursor(Math.trunc(e));let i=this.right.splice(this.right.length-r,1/0);return n&&bS(this.left,n),i.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(e){this.setCursor(1/0),this.left.push(e)}pushMany(e){this.setCursor(1/0),bS(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),bS(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0))if(e<this.left.length){let t=this.left.splice(e,1/0);bS(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);bS(this.left,t.reverse())}}};function bS(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function xS(e){let t={},n=-1,r,i,a,o,s,c,l,u=new yS(e);for(;++n<u.length;){for(;n in t;)n=t[n];if(r=u.get(n),n&&r[1].type===`chunkFlow`&&u.get(n-1)[1].type===`listItemPrefix`&&(c=r[1]._tokenizer.events,a=0,a<c.length&&c[a][1].type===`lineEndingBlank`&&(a+=2),a<c.length&&c[a][1].type===`content`))for(;++a<c.length&&c[a][1].type!==`content`;)c[a][1].type===`chunkText`&&(c[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]===`enter`)r[1].contentType&&(Object.assign(t,SS(u,n)),n=t[n],l=!0);else if(r[1]._container){for(a=n,i=void 0;a--;)if(o=u.get(a),o[1].type===`lineEnding`||o[1].type===`lineEndingBlank`)o[0]===`enter`&&(i&&(u.get(i)[1].type=`lineEndingBlank`),o[1].type=`lineEnding`,i=a);else if(!(o[1].type===`linePrefix`||o[1].type===`listItemIndent`))break;i&&(r[1].end={...u.get(i)[1].start},s=u.slice(i,n),s.unshift(r),u.splice(i,n-i+1,s))}}return gx(e,0,1/0,u.slice(0)),!l}function SS(e,t){let n=e.get(t)[1],r=e.get(t)[2],i=t-1,a=[],o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));let s=o.events,c=[],l={},u,d,f=-1,p=n,m=0,h=0,g=[h];for(;p;){for(;e.get(++i)[1]!==p;);a.push(i),p._tokenizer||(u=r.sliceStream(p),p.next||u.push(null),d&&o.defineSkip(p.start),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(u),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),d=p,p=p.next}for(p=n;++f<s.length;)s[f][0]===`exit`&&s[f-1][0]===`enter`&&s[f][1].type===s[f-1][1].type&&s[f][1].start.line!==s[f][1].end.line&&(h=f+1,g.push(h),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(o.events=[],p?(p._tokenizer=void 0,p.previous=void 0):g.pop(),f=g.length;f--;){let t=s.slice(g[f],g[f+1]),n=a.pop();c.push([n,n+t.length-1]),e.splice(n,2,t)}for(c.reverse(),f=-1;++f<c.length;)l[m+c[f][0]]=m+c[f][1],m+=c[f][1]-c[f][0]-1;return l}var CS={resolve:TS,tokenize:ES},wS={partial:!0,tokenize:DS};function TS(e){return xS(e),e}function ES(e,t){let n;return r;function r(t){return e.enter(`content`),n=e.enter(`chunkContent`,{contentType:`content`}),i(t)}function i(t){return t===null?a(t):Z(t)?e.check(wS,o,a)(t):(e.consume(t),i)}function a(n){return e.exit(`chunkContent`),e.exit(`content`),t(n)}function o(t){return e.consume(t),e.exit(`chunkContent`),n.next=e.enter(`chunkContent`,{contentType:`content`,previous:n}),n=n.next,i}}function DS(e,t,n){let r=this;return i;function i(t){return e.exit(`chunkContent`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),Q(e,a,`linePrefix`)}function a(i){if(i===null||Z(i))return n(i);let a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes(`codeIndented`)&&a&&a[1].type===`linePrefix`&&a[2].sliceSerialize(a[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}function OS(e,t,n,r,i,a,o,s,c){let l=c||1/0,u=0;return d;function d(t){return t===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(t),e.exit(a),f):t===null||t===32||t===41||Dx(t)?n(t):(e.enter(r),e.enter(o),e.enter(s),e.enter(`chunkString`,{contentType:`string`}),h(t))}function f(n){return n===62?(e.enter(a),e.consume(n),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter(`chunkString`,{contentType:`string`}),p(n))}function p(t){return t===62?(e.exit(`chunkString`),e.exit(s),f(t)):t===null||t===60||Z(t)?n(t):(e.consume(t),t===92?m:p)}function m(t){return t===60||t===62||t===92?(e.consume(t),p):p(t)}function h(i){return!u&&(i===null||i===41||jx(i))?(e.exit(`chunkString`),e.exit(s),e.exit(o),e.exit(r),t(i)):u<l&&i===40?(e.consume(i),u++,h):i===41?(e.consume(i),u--,h):i===null||i===32||i===40||Dx(i)?n(i):(e.consume(i),i===92?g:h)}function g(t){return t===40||t===41||t===92?(e.consume(t),h):h(t)}}function kS(e,t,n,r,i,a){let o=this,s=0,c;return l;function l(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(a),u}function u(l){return s>999||l===null||l===91||l===93&&!c||l===94&&!s&&`_hiddenFootnoteSupport`in o.parser.constructs?n(l):l===93?(e.exit(a),e.enter(i),e.consume(l),e.exit(i),e.exit(r),t):Z(l)?(e.enter(`lineEnding`),e.consume(l),e.exit(`lineEnding`),u):(e.enter(`chunkString`,{contentType:`string`}),d(l))}function d(t){return t===null||t===91||t===93||Z(t)||s++>999?(e.exit(`chunkString`),u(t)):(e.consume(t),c||=!Mx(t),t===92?f:d)}function f(t){return t===91||t===92||t===93?(e.consume(t),s++,d):d(t)}}function AS(e,t,n,r,i,a){let o;return s;function s(t){return t===34||t===39||t===40?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),o=t===40?41:t,c):n(t)}function c(n){return n===o?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(a),l(n))}function l(t){return t===o?(e.exit(a),c(o)):t===null?n(t):Z(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),Q(e,l,`linePrefix`)):(e.enter(`chunkString`,{contentType:`string`}),u(t))}function u(t){return t===o||t===null||Z(t)?(e.exit(`chunkString`),l(t)):(e.consume(t),t===92?d:u)}function d(t){return t===o||t===92?(e.consume(t),u):u(t)}}function jS(e,t){let n;return r;function r(i){return Z(i)?(e.enter(`lineEnding`),e.consume(i),e.exit(`lineEnding`),n=!0,r):Mx(i)?Q(e,r,n?`linePrefix`:`lineSuffix`)(i):t(i)}}var MS={name:`definition`,tokenize:PS},NS={partial:!0,tokenize:FS};function PS(e,t,n){let r=this,i;return a;function a(t){return e.enter(`definition`),o(t)}function o(t){return kS.call(r,e,s,n,`definitionLabel`,`definitionLabelMarker`,`definitionLabelString`)(t)}function s(t){return i=Cx(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),c):n(t)}function c(t){return jx(t)?jS(e,l)(t):l(t)}function l(t){return OS(e,u,n,`definitionDestination`,`definitionDestinationLiteral`,`definitionDestinationLiteralMarker`,`definitionDestinationRaw`,`definitionDestinationString`)(t)}function u(t){return e.attempt(NS,d,d)(t)}function d(t){return Mx(t)?Q(e,f,`whitespace`)(t):f(t)}function f(a){return a===null||Z(a)?(e.exit(`definition`),r.parser.defined.push(i),t(a)):n(a)}}function FS(e,t,n){return r;function r(t){return jx(t)?jS(e,i)(t):n(t)}function i(t){return AS(e,a,n,`definitionTitle`,`definitionTitleMarker`,`definitionTitleString`)(t)}function a(t){return Mx(t)?Q(e,o,`whitespace`)(t):o(t)}function o(e){return e===null||Z(e)?t(e):n(e)}}var IS={name:`hardBreakEscape`,tokenize:LS};function LS(e,t,n){return r;function r(t){return e.enter(`hardBreakEscape`),e.consume(t),i}function i(r){return Z(r)?(e.exit(`hardBreakEscape`),t(r)):n(r)}}var RS={name:`headingAtx`,resolve:zS,tokenize:BS};function zS(e,t){let n=e.length-2,r=3,i,a;return e[r][1].type===`whitespace`&&(r+=2),n-2>r&&e[n][1].type===`whitespace`&&(n-=2),e[n][1].type===`atxHeadingSequence`&&(r===n-1||n-4>r&&e[n-2][1].type===`whitespace`)&&(n-=r+1===n?2:4),n>r&&(i={type:`atxHeadingText`,start:e[r][1].start,end:e[n][1].end},a={type:`chunkText`,start:e[r][1].start,end:e[n][1].end,contentType:`text`},gx(e,r,n-r+1,[[`enter`,i,t],[`enter`,a,t],[`exit`,a,t],[`exit`,i,t]])),e}function BS(e,t,n){let r=0;return i;function i(t){return e.enter(`atxHeading`),a(t)}function a(t){return e.enter(`atxHeadingSequence`),o(t)}function o(t){return t===35&&r++<6?(e.consume(t),o):t===null||jx(t)?(e.exit(`atxHeadingSequence`),s(t)):n(t)}function s(n){return n===35?(e.enter(`atxHeadingSequence`),c(n)):n===null||Z(n)?(e.exit(`atxHeading`),t(n)):Mx(n)?Q(e,s,`whitespace`)(n):(e.enter(`atxHeadingText`),l(n))}function c(t){return t===35?(e.consume(t),c):(e.exit(`atxHeadingSequence`),s(t))}function l(t){return t===null||t===35||jx(t)?(e.exit(`atxHeadingText`),s(t)):(e.consume(t),l)}}var VS=`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`.split(`.`),HS=[`pre`,`script`,`style`,`textarea`],US={concrete:!0,name:`htmlFlow`,resolveTo:KS,tokenize:qS},WS={partial:!0,tokenize:YS},GS={partial:!0,tokenize:JS};function KS(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 qS(e,t,n){let r=this,i,a,o,s,c;return l;function l(e){return u(e)}function u(t){return e.enter(`htmlFlow`),e.enter(`htmlFlowData`),e.consume(t),d}function d(s){return s===33?(e.consume(s),f):s===47?(e.consume(s),a=!0,h):s===63?(e.consume(s),i=3,r.interrupt?t:P):wx(s)?(e.consume(s),o=String.fromCharCode(s),g):n(s)}function f(a){return a===45?(e.consume(a),i=2,p):a===91?(e.consume(a),i=5,s=0,m):wx(a)?(e.consume(a),i=4,r.interrupt?t:P):n(a)}function p(i){return i===45?(e.consume(i),r.interrupt?t:P):n(i)}function m(i){return i===`CDATA[`.charCodeAt(s++)?(e.consume(i),s===6?r.interrupt?t:O:m):n(i)}function h(t){return wx(t)?(e.consume(t),o=String.fromCharCode(t),g):n(t)}function g(s){if(s===null||s===47||s===62||jx(s)){let c=s===47,l=o.toLowerCase();return!c&&!a&&HS.includes(l)?(i=1,r.interrupt?t(s):O(s)):VS.includes(o.toLowerCase())?(i=6,c?(e.consume(s),_):r.interrupt?t(s):O(s)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):a?v(s):y(s))}return s===45||Tx(s)?(e.consume(s),o+=String.fromCharCode(s),g):n(s)}function _(i){return i===62?(e.consume(i),r.interrupt?t:O):n(i)}function v(t){return Mx(t)?(e.consume(t),v):E(t)}function y(t){return t===47?(e.consume(t),E):t===58||t===95||wx(t)?(e.consume(t),b):Mx(t)?(e.consume(t),y):E(t)}function b(t){return t===45||t===46||t===58||t===95||Tx(t)?(e.consume(t),b):x(t)}function x(t){return t===61?(e.consume(t),S):Mx(t)?(e.consume(t),x):y(t)}function S(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),c=t,C):Mx(t)?(e.consume(t),S):w(t)}function C(t){return t===c?(e.consume(t),c=null,T):t===null||Z(t)?n(t):(e.consume(t),C)}function w(t){return t===null||t===34||t===39||t===47||t===60||t===61||t===62||t===96||jx(t)?x(t):(e.consume(t),w)}function T(e){return e===47||e===62||Mx(e)?y(e):n(e)}function E(t){return t===62?(e.consume(t),D):n(t)}function D(t){return t===null||Z(t)?O(t):Mx(t)?(e.consume(t),D):n(t)}function O(t){return t===45&&i===2?(e.consume(t),M):t===60&&i===1?(e.consume(t),N):t===62&&i===4?(e.consume(t),F):t===63&&i===3?(e.consume(t),P):t===93&&i===5?(e.consume(t),te):Z(t)&&(i===6||i===7)?(e.exit(`htmlFlowData`),e.check(WS,ne,k)(t)):t===null||Z(t)?(e.exit(`htmlFlowData`),k(t)):(e.consume(t),O)}function k(t){return e.check(GS,A,ne)(t)}function A(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),j}function j(t){return t===null||Z(t)?k(t):(e.enter(`htmlFlowData`),O(t))}function M(t){return t===45?(e.consume(t),P):O(t)}function N(t){return t===47?(e.consume(t),o=``,ee):O(t)}function ee(t){if(t===62){let n=o.toLowerCase();return HS.includes(n)?(e.consume(t),F):O(t)}return wx(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),ee):O(t)}function te(t){return t===93?(e.consume(t),P):O(t)}function P(t){return t===62?(e.consume(t),F):t===45&&i===2?(e.consume(t),P):O(t)}function F(t){return t===null||Z(t)?(e.exit(`htmlFlowData`),ne(t)):(e.consume(t),F)}function ne(n){return e.exit(`htmlFlow`),t(n)}}function JS(e,t,n){let r=this;return i;function i(t){return Z(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),a):n(t)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}function YS(e,t,n){return r;function r(r){return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),e.attempt(Zx,t,n)}}var XS={name:`htmlText`,tokenize:ZS};function ZS(e,t,n){let r=this,i,a,o;return s;function s(t){return e.enter(`htmlText`),e.enter(`htmlTextData`),e.consume(t),c}function c(t){return t===33?(e.consume(t),l):t===47?(e.consume(t),x):t===63?(e.consume(t),y):wx(t)?(e.consume(t),w):n(t)}function l(t){return t===45?(e.consume(t),u):t===91?(e.consume(t),a=0,m):wx(t)?(e.consume(t),v):n(t)}function u(t){return t===45?(e.consume(t),p):n(t)}function d(t){return t===null?n(t):t===45?(e.consume(t),f):Z(t)?(o=d,N(t)):(e.consume(t),d)}function f(t){return t===45?(e.consume(t),p):d(t)}function p(e){return e===62?M(e):e===45?f(e):d(e)}function m(t){return t===`CDATA[`.charCodeAt(a++)?(e.consume(t),a===6?h:m):n(t)}function h(t){return t===null?n(t):t===93?(e.consume(t),g):Z(t)?(o=h,N(t)):(e.consume(t),h)}function g(t){return t===93?(e.consume(t),_):h(t)}function _(t){return t===62?M(t):t===93?(e.consume(t),_):h(t)}function v(t){return t===null||t===62?M(t):Z(t)?(o=v,N(t)):(e.consume(t),v)}function y(t){return t===null?n(t):t===63?(e.consume(t),b):Z(t)?(o=y,N(t)):(e.consume(t),y)}function b(e){return e===62?M(e):y(e)}function x(t){return wx(t)?(e.consume(t),S):n(t)}function S(t){return t===45||Tx(t)?(e.consume(t),S):C(t)}function C(t){return Z(t)?(o=C,N(t)):Mx(t)?(e.consume(t),C):M(t)}function w(t){return t===45||Tx(t)?(e.consume(t),w):t===47||t===62||jx(t)?T(t):n(t)}function T(t){return t===47?(e.consume(t),M):t===58||t===95||wx(t)?(e.consume(t),E):Z(t)?(o=T,N(t)):Mx(t)?(e.consume(t),T):M(t)}function E(t){return t===45||t===46||t===58||t===95||Tx(t)?(e.consume(t),E):D(t)}function D(t){return t===61?(e.consume(t),O):Z(t)?(o=D,N(t)):Mx(t)?(e.consume(t),D):T(t)}function O(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),i=t,k):Z(t)?(o=O,N(t)):Mx(t)?(e.consume(t),O):(e.consume(t),A)}function k(t){return t===i?(e.consume(t),i=void 0,j):t===null?n(t):Z(t)?(o=k,N(t)):(e.consume(t),k)}function A(t){return t===null||t===34||t===39||t===60||t===61||t===96?n(t):t===47||t===62||jx(t)?T(t):(e.consume(t),A)}function j(e){return e===47||e===62||jx(e)?T(e):n(e)}function M(r){return r===62?(e.consume(r),e.exit(`htmlTextData`),e.exit(`htmlText`),t):n(r)}function N(t){return e.exit(`htmlTextData`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),ee}function ee(t){return Mx(t)?Q(e,te,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):te(t)}function te(t){return e.enter(`htmlTextData`),o(t)}}var QS={name:`labelEnd`,resolveAll:nC,resolveTo:rC,tokenize:iC},$S={tokenize:aC},eC={tokenize:oC},tC={tokenize:sC};function nC(e){let t=-1,n=[];for(;++t<e.length;){let r=e[t][1];if(n.push(e[t]),r.type===`labelImage`||r.type===`labelLink`||r.type===`labelEnd`){let e=r.type===`labelImage`?4:2;r.type=`data`,t+=e}}return e.length!==n.length&&gx(e,0,e.length,n),e}function rC(e,t){let n=e.length,r=0,i,a,o,s;for(;n--;)if(i=e[n][1],a){if(i.type===`link`||i.type===`labelLink`&&i._inactive)break;e[n][0]===`enter`&&i.type===`labelLink`&&(i._inactive=!0)}else if(o){if(e[n][0]===`enter`&&(i.type===`labelImage`||i.type===`labelLink`)&&!i._balanced&&(a=n,i.type!==`labelLink`)){r=2;break}}else i.type===`labelEnd`&&(o=n);let c={type:e[a][1].type===`labelLink`?`link`:`image`,start:{...e[a][1].start},end:{...e[e.length-1][1].end}},l={type:`label`,start:{...e[a][1].start},end:{...e[o][1].end}},u={type:`labelText`,start:{...e[a+r+2][1].end},end:{...e[o-2][1].start}};return s=[[`enter`,c,t],[`enter`,l,t]],s=_x(s,e.slice(a+1,a+r+3)),s=_x(s,[[`enter`,u,t]]),s=_x(s,Wx(t.parser.constructs.insideSpan.null,e.slice(a+r+4,o-3),t)),s=_x(s,[[`exit`,u,t],e[o-2],e[o-1],[`exit`,l,t]]),s=_x(s,e.slice(o+1)),s=_x(s,[[`exit`,c,t]]),gx(e,a,e.length,s),e}function iC(e,t,n){let r=this,i=r.events.length,a,o;for(;i--;)if((r.events[i][1].type===`labelImage`||r.events[i][1].type===`labelLink`)&&!r.events[i][1]._balanced){a=r.events[i][1];break}return s;function s(t){return a?a._inactive?d(t):(o=r.parser.defined.includes(Cx(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter(`labelEnd`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelEnd`),c):n(t)}function c(t){return t===40?e.attempt($S,u,o?u:d)(t):t===91?e.attempt(eC,u,o?l:d)(t):o?u(t):d(t)}function l(t){return e.attempt(tC,u,d)(t)}function u(e){return t(e)}function d(e){return a._balanced=!0,n(e)}}function aC(e,t,n){return r;function r(t){return e.enter(`resource`),e.enter(`resourceMarker`),e.consume(t),e.exit(`resourceMarker`),i}function i(t){return jx(t)?jS(e,a)(t):a(t)}function a(t){return t===41?u(t):OS(e,o,s,`resourceDestination`,`resourceDestinationLiteral`,`resourceDestinationLiteralMarker`,`resourceDestinationRaw`,`resourceDestinationString`,32)(t)}function o(t){return jx(t)?jS(e,c)(t):u(t)}function s(e){return n(e)}function c(t){return t===34||t===39||t===40?AS(e,l,n,`resourceTitle`,`resourceTitleMarker`,`resourceTitleString`)(t):u(t)}function l(t){return jx(t)?jS(e,u)(t):u(t)}function u(r){return r===41?(e.enter(`resourceMarker`),e.consume(r),e.exit(`resourceMarker`),e.exit(`resource`),t):n(r)}}function oC(e,t,n){let r=this;return i;function i(t){return kS.call(r,e,a,o,`reference`,`referenceMarker`,`referenceString`)(t)}function a(e){return r.parser.defined.includes(Cx(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}function sC(e,t,n){return r;function r(t){return e.enter(`reference`),e.enter(`referenceMarker`),e.consume(t),e.exit(`referenceMarker`),i}function i(r){return r===93?(e.enter(`referenceMarker`),e.consume(r),e.exit(`referenceMarker`),e.exit(`reference`),t):n(r)}}var cC={name:`labelStartImage`,resolveAll:QS.resolveAll,tokenize:lC};function lC(e,t,n){let r=this;return i;function i(t){return e.enter(`labelImage`),e.enter(`labelImageMarker`),e.consume(t),e.exit(`labelImageMarker`),a}function a(t){return t===91?(e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelImage`),o):n(t)}function o(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):t(e)}}var uC={name:`labelStartLink`,resolveAll:QS.resolveAll,tokenize:dC};function dC(e,t,n){let r=this;return i;function i(t){return e.enter(`labelLink`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelLink`),a}function a(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):t(e)}}var fC={name:`lineEnding`,tokenize:pC};function pC(e,t){return n;function n(n){return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),Q(e,t,`linePrefix`)}}var mC={name:`thematicBreak`,tokenize:hC};function hC(e,t,n){let r=0,i;return a;function a(t){return e.enter(`thematicBreak`),o(t)}function o(e){return i=e,s(e)}function s(a){return a===i?(e.enter(`thematicBreakSequence`),c(a)):r>=3&&(a===null||Z(a))?(e.exit(`thematicBreak`),t(a)):n(a)}function c(t){return t===i?(e.consume(t),r++,c):(e.exit(`thematicBreakSequence`),Mx(t)?Q(e,s,`whitespace`)(t):s(t))}}var gC={continuation:{tokenize:bC},exit:SC,name:`list`,tokenize:yC},_C={partial:!0,tokenize:CC},vC={partial:!0,tokenize:xC};function yC(e,t,n){let r=this,i=r.events[r.events.length-1],a=i&&i[1].type===`linePrefix`?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(t){let i=r.containerState.type||(t===42||t===43||t===45?`listUnordered`:`listOrdered`);if(i===`listUnordered`?!r.containerState.marker||t===r.containerState.marker:Ox(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),i===`listUnordered`)return e.enter(`listItemPrefix`),t===42||t===45?e.check(mC,n,l)(t):l(t);if(!r.interrupt||t===49)return e.enter(`listItemPrefix`),e.enter(`listItemValue`),c(t)}return n(t)}function c(t){return Ox(t)&&++o<10?(e.consume(t),c):(!r.interrupt||o<2)&&(r.containerState.marker?t===r.containerState.marker:t===41||t===46)?(e.exit(`listItemValue`),l(t)):n(t)}function l(t){return e.enter(`listItemMarker`),e.consume(t),e.exit(`listItemMarker`),r.containerState.marker=r.containerState.marker||t,e.check(Zx,r.interrupt?n:u,e.attempt(_C,f,d))}function u(e){return r.containerState.initialBlankLine=!0,a++,f(e)}function d(t){return Mx(t)?(e.enter(`listItemPrefixWhitespace`),e.consume(t),e.exit(`listItemPrefixWhitespace`),f):n(t)}function f(n){return r.containerState.size=a+r.sliceSerialize(e.exit(`listItemPrefix`),!0).length,t(n)}}function bC(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(Zx,i,a);function i(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Q(e,t,`listItemIndent`,r.containerState.size+1)(n)}function a(n){return r.containerState.furtherBlankLines||!Mx(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(vC,t,o)(n))}function o(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,Q(e,e.attempt(gC,t,n),`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(i)}}function xC(e,t,n){let r=this;return Q(e,i,`listItemIndent`,r.containerState.size+1);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`listItemIndent`&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)}}function SC(e){e.exit(this.containerState.type)}function CC(e,t,n){let r=this;return Q(e,i,`listItemPrefixWhitespace`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:5);function i(e){let i=r.events[r.events.length-1];return!Mx(e)&&i&&i[1].type===`listItemPrefixWhitespace`?t(e):n(e)}}var wC={name:`setextUnderline`,resolveTo:TC,tokenize:EC};function TC(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]===`enter`){if(e[n][1].type===`content`){r=n;break}e[n][1].type===`paragraph`&&(i=n)}else e[n][1].type===`content`&&e.splice(n,1),!a&&e[n][1].type===`definition`&&(a=n);let o={type:`setextHeading`,start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type=`setextHeadingText`,a?(e.splice(i,0,[`enter`,o,t]),e.splice(a+1,0,[`exit`,e[r][1],t]),e[r][1].end={...e[a][1].end}):e[r][1]=o,e.push([`exit`,o,t]),e}function EC(e,t,n){let r=this,i;return a;function a(t){let a=r.events.length,s;for(;a--;)if(r.events[a][1].type!==`lineEnding`&&r.events[a][1].type!==`linePrefix`&&r.events[a][1].type!==`content`){s=r.events[a][1].type===`paragraph`;break}return!r.parser.lazy[r.now().line]&&(r.interrupt||s)?(e.enter(`setextHeadingLine`),i=t,o(t)):n(t)}function o(t){return e.enter(`setextHeadingLineSequence`),s(t)}function s(t){return t===i?(e.consume(t),s):(e.exit(`setextHeadingLineSequence`),Mx(t)?Q(e,c,`lineSuffix`)(t):c(t))}function c(r){return r===null||Z(r)?(e.exit(`setextHeadingLine`),t(r)):n(r)}}var DC={tokenize:OC};function OC(e){let t=this,n=e.attempt(Zx,r,e.attempt(this.parser.constructs.flowInitial,i,Q(e,e.attempt(this.parser.constructs.flow,i,e.attempt(CS,i)),`linePrefix`)));return n;function r(r){if(r===null){e.consume(r);return}return e.enter(`lineEndingBlank`),e.consume(r),e.exit(`lineEndingBlank`),t.currentConstruct=void 0,n}function i(r){if(r===null){e.consume(r);return}return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),t.currentConstruct=void 0,n}}var kC={resolveAll:NC()},AC=MC(`string`),jC=MC(`text`);function MC(e){return{resolveAll:NC(e===`text`?PC:void 0),tokenize:t};function t(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,a,o);return a;function a(e){return c(e)?i(e):o(e)}function o(e){if(e===null){t.consume(e);return}return t.enter(`data`),t.consume(e),s}function s(e){return c(e)?(t.exit(`data`),i(e)):(t.consume(e),s)}function c(e){if(e===null)return!0;let t=r[e],i=-1;if(t)for(;++i<t.length;){let e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}function NC(e){return t;function t(t,n){let r=-1,i;for(;++r<=t.length;)i===void 0?t[r]&&t[r][1].type===`data`&&(i=r,r++):(!t[r]||t[r][1].type!==`data`)&&(r!==i+2&&(t[i][1].end=t[r-1][1].end,t.splice(i+2,r-i-2),r=i+2),i=void 0);return e?e(t,n):t}}function PC(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type===`lineEnding`)&&e[n-1][1].type===`data`){let r=e[n-1][1],i=t.sliceStream(r),a=i.length,o=-1,s=0,c;for(;a--;){let e=i[a];if(typeof e==`string`){for(o=e.length;e.charCodeAt(o-1)===32;)s++,o--;if(o)break;o=-1}else if(e===-2)c=!0,s++;else if(e!==-1){a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(s=0),s){let i={type:n===e.length||c||s<2?`lineSuffix`:`hardBreakTrailing`,start:{_bufferIndex:a?o:r.start._bufferIndex+o,_index:r.start._index+a,line:r.end.line,column:r.end.column-s,offset:r.end.offset-s},end:{...r.end}};r.end={...i.start},r.start.offset===r.end.offset?Object.assign(r,i):(e.splice(n,0,[`enter`,i,t],[`exit`,i,t]),n+=2)}n++}return e}var FC=l({attentionMarkers:()=>UC,contentInitial:()=>LC,disable:()=>WC,document:()=>IC,flow:()=>zC,flowInitial:()=>RC,insideSpan:()=>HC,string:()=>BC,text:()=>VC}),IC={42:gC,43:gC,45:gC,48:gC,49:gC,50:gC,51:gC,52:gC,53:gC,54:gC,55:gC,56:gC,57:gC,62:$x},LC={91:MS},RC={[-2]:dS,[-1]:dS,32:dS},zC={35:RS,42:mC,45:[wC,mC],60:US,61:wC,95:mC,96:cS,126:cS},BC={38:aS,92:rS},VC={[-5]:fC,[-4]:fC,[-3]:fC,33:cC,38:aS,42:Gx,60:[Yx,XS],91:uC,92:[IS,rS],93:QS,95:Gx,96:hS},HC={null:[Gx,kC]},UC={null:[42,95]},WC={null:[]};function GC(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0},i={},a=[],o=[],s=[],c={attempt:C(x),check:C(S),consume:v,enter:y,exit:b,interrupt:C(S,{interrupt:!0})},l={code:null,containerState:{},defineSkip:h,events:[],now:m,parser:e,previous:null,sliceSerialize:f,sliceStream:p,write:d},u=t.tokenize.call(l,c);return t.resolveAll&&a.push(t),l;function d(e){return o=_x(o,e),g(),o[o.length-1]===null?(w(t,0),l.events=Wx(a,l.events,l),l.events):[]}function f(e,t){return qC(p(e),t)}function p(e){return KC(o,e)}function m(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:a}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:a}}function h(e){i[e.line]=e.column,E()}function g(){let e;for(;r._index<o.length;){let t=o[r._index];if(typeof t==`string`)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)_(t.charCodeAt(r._bufferIndex));else _(t)}}function _(e){u=u(e)}function v(e){Z(e)?(r.line++,r.column=1,r.offset+=e===-3?2:1,E()):e!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),l.previous=e}function y(e,t){let n=t||{};return n.type=e,n.start=m(),l.events.push([`enter`,n,l]),s.push(n),n}function b(e){let t=s.pop();return t.end=m(),l.events.push([`exit`,t,l]),t}function x(e,t){w(e,t.from)}function S(e,t){t.restore()}function C(e,t){return n;function n(n,r,i){let a,o,s,u;return Array.isArray(n)?f(n):`tokenize`in n?f([n]):d(n);function d(e){return t;function t(t){let n=t!==null&&e[t],r=t!==null&&e.null;return f([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}function f(e){return a=e,o=0,e.length===0?i:p(e[o])}function p(e){return n;function n(n){return u=T(),s=e,e.partial||(l.currentConstruct=e),e.name&&l.parser.constructs.disable.null.includes(e.name)?h(n):e.tokenize.call(t?Object.assign(Object.create(l),t):l,c,m,h)(n)}}function m(t){return e(s,u),r}function h(e){return u.restore(),++o<a.length?p(a[o]):i}}}function w(e,t){e.resolveAll&&!a.includes(e)&&a.push(e),e.resolve&&gx(l.events,t,l.events.length-t,e.resolve(l.events.slice(t),l)),e.resolveTo&&(l.events=e.resolveTo(l.events,l))}function T(){let e=m(),t=l.previous,n=l.currentConstruct,i=l.events.length,a=Array.from(s);return{from:i,restore:o};function o(){r=e,l.previous=t,l.currentConstruct=n,l.events.length=i,s=a,E()}}function E(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function KC(e,t){let n=t.start._index,r=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex,o;if(n===i)o=[e[n].slice(r,a)];else{if(o=e.slice(n,i),r>-1){let e=o[0];typeof e==`string`?o[0]=e.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function qC(e,t){let n=-1,r=[],i;for(;++n<e.length;){let a=e[n],o;if(typeof a==`string`)o=a;else switch(a){case-5:o=`\r`;break;case-4:o=`
380
+ `;break;case-3:o=`\r
381
+ `;break;case-2:o=t?` `:` `;break;case-1:if(!t&&i)continue;o=` `;break;default:o=String.fromCharCode(a)}i=a===-2,r.push(o)}return r.join(``)}function JC(e){let t={constructs:yx([FC,...(e||{}).extensions||[]]),content:n(Lx),defined:[],document:n(zx),flow:n(DC),lazy:{},string:n(AC),text:n(jC)};return t;function n(e){return n;function n(n){return GC(t,e,n)}}}function YC(e){for(;!xS(e););return e}var XC=/[\0\t\n\r]/g;function ZC(){let e=1,t=``,n=!0,r;return i;function i(i,a,o){let s=[],c,l,u,d,f;for(i=t+(typeof i==`string`?i.toString():new TextDecoder(a||void 0).decode(i)),u=0,t=``,n&&=(i.charCodeAt(0)===65279&&u++,void 0);u<i.length;){if(XC.lastIndex=u,c=XC.exec(i),d=c&&c.index!==void 0?c.index:i.length,f=i.charCodeAt(d),!c){t=i.slice(u);break}if(f===10&&u===d&&r)s.push(-3),r=void 0;else switch(r&&=(s.push(-5),void 0),u<d&&(s.push(i.slice(u,d)),e+=d-u),f){case 0:s.push(65533),e++;break;case 9:for(l=Math.ceil(e/4)*4,s.push(-2);e++<l;)s.push(-1);break;case 10:s.push(-4),e=1;break;default:r=!0,e=1}u=d+1}return o&&(r&&s.push(-5),t&&s.push(t),s.push(null)),s}}var QC=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function $C(e){return e.replace(QC,ew)}function ew(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){let e=n.charCodeAt(1),t=e===120||e===88;return Sx(n.slice(t?2:1),t?16:10)}return hx(n)||e}var tw={}.hasOwnProperty;function nw(e,t,n){return t&&typeof t==`object`&&(n=t,t=void 0),rw(n)(YC(JC(n).document().write(ZC()(e,t,!0))))}function rw(e){let t={transforms:[],canContainEols:[`emphasis`,`fragment`,`heading`,`paragraph`,`strong`],enter:{autolink:a(he),autolinkProtocol:T,autolinkEmail:T,atxHeading:a(R),blockQuote:a(ce),characterEscape:T,characterReference:T,codeFenced:a(le),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:a(le,o),codeText:a(ue,o),codeTextData:T,data:T,codeFlowValue:T,definition:a(de),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:a(fe),hardBreakEscape:a(z),hardBreakTrailing:a(z),htmlFlow:a(pe,o),htmlFlowData:T,htmlText:a(pe,o),htmlTextData:T,image:a(me),label:o,link:a(he),listItem:a(ge),listItemValue:f,listOrdered:a(B,d),listUnordered:a(B),paragraph:a(_e),reference:re,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:a(R),strong:a(ve),thematicBreak:a(ye)},exit:{atxHeading:c(),atxHeadingSequence:x,autolink:c(),autolinkEmail:se,autolinkProtocol:oe,blockQuote:c(),characterEscapeValue:E,characterReferenceMarkerHexadecimal:I,characterReferenceMarkerNumeric:I,characterReferenceValue:ae,characterReference:L,codeFenced:c(g),codeFencedFence:h,codeFencedFenceInfo:p,codeFencedFenceMeta:m,codeFlowValue:E,codeIndented:c(_),codeText:c(j),codeTextData:E,data:E,definition:c(),definitionDestinationString:b,definitionLabelString:v,definitionTitleString:y,emphasis:c(),hardBreakEscape:c(O),hardBreakTrailing:c(O),htmlFlow:c(k),htmlFlowData:E,htmlText:c(A),htmlTextData:E,image:c(N),label:te,labelText:ee,lineEnding:D,link:c(M),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:ie,resourceDestinationString:P,resourceTitleString:F,resource:ne,setextHeading:c(w),setextHeadingLineSequence:C,setextHeadingText:S,strong:c(),thematicBreak:c()}};aw(t,(e||{}).mdastExtensions||[]);let n={};return r;function r(e){let r={type:`root`,children:[]},a={stack:[r],tokenStack:[],config:t,enter:s,exit:l,buffer:o,resume:u,data:n},c=[],d=-1;for(;++d<e.length;)(e[d][1].type===`listOrdered`||e[d][1].type===`listUnordered`)&&(e[d][0]===`enter`?c.push(d):d=i(e,c.pop(),d));for(d=-1;++d<e.length;){let n=t[e[d][0]];tw.call(n,e[d][1].type)&&n[e[d][1].type].call(Object.assign({sliceSerialize:e[d][2].sliceSerialize},a),e[d][1])}if(a.tokenStack.length>0){let e=a.tokenStack[a.tokenStack.length-1];(e[1]||sw).call(a,void 0,e[0])}for(r.position={start:iw(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:iw(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d<t.transforms.length;)r=t.transforms[d](r)||r;return r}function i(e,t,n){let r=t-1,i=-1,a=!1,o,s,c,l;for(;++r<=n;){let t=e[r];switch(t[1].type){case`listUnordered`:case`listOrdered`:case`blockQuote`:t[0]===`enter`?i++:i--,l=void 0;break;case`lineEndingBlank`:t[0]===`enter`&&(o&&!l&&!i&&!c&&(c=r),l=void 0);break;case`linePrefix`:case`listItemValue`:case`listItemMarker`:case`listItemPrefix`:case`listItemPrefixWhitespace`:break;default:l=void 0}if(!i&&t[0]===`enter`&&t[1].type===`listItemPrefix`||i===-1&&t[0]===`exit`&&(t[1].type===`listUnordered`||t[1].type===`listOrdered`)){if(o){let i=r;for(s=void 0;i--;){let t=e[i];if(t[1].type===`lineEnding`||t[1].type===`lineEndingBlank`){if(t[0]===`exit`)continue;s&&(e[s][1].type=`lineEndingBlank`,a=!0),t[1].type=`lineEnding`,s=i}else if(!(t[1].type===`linePrefix`||t[1].type===`blockQuotePrefix`||t[1].type===`blockQuotePrefixWhitespace`||t[1].type===`blockQuoteMarker`||t[1].type===`listItemIndent`))break}c&&(!s||c<s)&&(o._spread=!0),o.end=Object.assign({},s?e[s][1].start:t[1].end),e.splice(s||r,0,[`exit`,o,t[2]]),r++,n++}if(t[1].type===`listItemPrefix`){let i={type:`listItem`,_spread:!1,start:Object.assign({},t[1].start),end:void 0};o=i,e.splice(r,0,[`enter`,i,t[2]]),r++,n++,c=void 0,l=!0}}}return e[t][1]._spread=a,n}function a(e,t){return n;function n(n){s.call(this,e(n),n),t&&t.call(this,n)}}function o(){this.stack.push({type:`fragment`,children:[]})}function s(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:iw(t.start),end:void 0}}function c(e){return t;function t(t){e&&e.call(this,t),l.call(this,t)}}function l(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(r)r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||sw).call(this,e,r[0]));else throw Error("Cannot close `"+e.type+"` ("+Eb({start:e.start,end:e.end})+`): it’s not open`);n.position.end=iw(e.end)}function u(){return ux(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function f(e){if(this.data.expectingFirstListItemValue){let t=this.stack[this.stack.length-2];t.start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}}function p(){let e=this.resume(),t=this.stack[this.stack.length-1];t.lang=e}function m(){let e=this.resume(),t=this.stack[this.stack.length-1];t.meta=e}function h(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function g(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,``),this.data.flowCodeInside=void 0}function _(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/(\r?\n|\r)$/g,``)}function v(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Cx(this.sliceSerialize(e)).toLowerCase()}function y(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function b(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function x(e){let t=this.stack[this.stack.length-1];t.depth||=this.sliceSerialize(e).length}function S(){this.data.setextHeadingSlurpLineEnding=!0}function C(e){let t=this.stack[this.stack.length-1];t.depth=this.sliceSerialize(e).codePointAt(0)===61?1:2}function w(){this.data.setextHeadingSlurpLineEnding=void 0}function T(e){let t=this.stack[this.stack.length-1].children,n=t[t.length-1];(!n||n.type!==`text`)&&(n=V(),n.position={start:iw(e.start),end:void 0},t.push(n)),this.stack.push(n)}function E(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=iw(e.end)}function D(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){let t=n.children[n.children.length-1];t.position.end=iw(e.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(T.call(this,e),E.call(this,e))}function O(){this.data.atHardBreak=!0}function k(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function A(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function j(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function M(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function N(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function ee(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=$C(t),n.identifier=Cx(t).toLowerCase()}function te(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];this.data.inReference=!0,n.type===`link`?n.children=e.children:n.alt=t}function P(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function F(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function ne(){this.data.inReference=void 0}function re(){this.data.referenceType=`collapsed`}function ie(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Cx(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType=`full`}function I(e){this.data.characterReferenceType=e.type}function ae(e){let t=this.sliceSerialize(e),n=this.data.characterReferenceType,r;n?(r=Sx(t,n===`characterReferenceMarkerNumeric`?10:16),this.data.characterReferenceType=void 0):r=hx(t);let i=this.stack[this.stack.length-1];i.value+=r}function L(e){let t=this.stack.pop();t.position.end=iw(e.end)}function oe(e){E.call(this,e);let t=this.stack[this.stack.length-1];t.url=this.sliceSerialize(e)}function se(e){E.call(this,e);let t=this.stack[this.stack.length-1];t.url=`mailto:`+this.sliceSerialize(e)}function ce(){return{type:`blockquote`,children:[]}}function le(){return{type:`code`,lang:null,meta:null,value:``}}function ue(){return{type:`inlineCode`,value:``}}function de(){return{type:`definition`,identifier:``,label:null,title:null,url:``}}function fe(){return{type:`emphasis`,children:[]}}function R(){return{type:`heading`,depth:0,children:[]}}function z(){return{type:`break`}}function pe(){return{type:`html`,value:``}}function me(){return{type:`image`,title:null,url:``,alt:null}}function he(){return{type:`link`,title:null,url:``,children:[]}}function B(e){return{type:`list`,ordered:e.type===`listOrdered`,start:null,spread:e._spread,children:[]}}function ge(e){return{type:`listItem`,spread:e._spread,checked:null,children:[]}}function _e(){return{type:`paragraph`,children:[]}}function ve(){return{type:`strong`,children:[]}}function V(){return{type:`text`,value:``}}function ye(){return{type:`thematicBreak`}}}function iw(e){return{line:e.line,column:e.column,offset:e.offset}}function aw(e,t){let n=-1;for(;++n<t.length;){let r=t[n];Array.isArray(r)?aw(e,r):ow(e,r)}}function ow(e,t){let n;for(n in t)if(tw.call(t,n))switch(n){case`canContainEols`:{let r=t[n];r&&e[n].push(...r);break}case`transforms`:{let r=t[n];r&&e[n].push(...r);break}case`enter`:case`exit`:{let r=t[n];r&&Object.assign(e[n],r);break}}}function sw(e,t){throw Error(e?"Cannot close `"+e.type+"` ("+Eb({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Eb({start:t.start,end:t.end})+`) is open`:"Cannot close document, a token (`"+t.type+"`, "+Eb({start:t.start,end:t.end})+`) is still open`)}function cw(e){let t=this;t.parser=n;function n(n){return nw(n,{...t.data(`settings`),...e,extensions:t.data(`micromarkExtensions`)||[],mdastExtensions:t.data(`fromMarkdownExtensions`)||[]})}}function lw(e,t){let n=String(e);if(typeof t!=`string`)throw TypeError(`Expected character`);let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function uw(e){if(typeof e!=`string`)throw TypeError(`Expected a string`);return e.replace(/[|\\{}()[\]^$+*?.]/g,`\\$&`).replace(/-/g,`\\x2d`)}var dw=(function(e){if(e==null)return gw;if(typeof e==`function`)return hw(e);if(typeof e==`object`)return Array.isArray(e)?fw(e):pw(e);if(typeof e==`string`)return mw(e);throw Error(`Expected function, string, or object as test`)});function fw(e){let t=[],n=-1;for(;++n<e.length;)t[n]=dw(e[n]);return hw(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}}function pw(e){let t=e;return hw(n);function n(n){let r=n,i;for(i in e)if(r[i]!==t[i])return!1;return!0}}function mw(e){return hw(t);function t(t){return t&&t.type===e}}function hw(e){return t;function t(t,n,r){return!!(_w(t)&&e.call(this,t,typeof n==`number`?n:void 0,r||void 0))}}function gw(){return!0}function _w(e){return typeof e==`object`&&!!e&&`type`in e}function vw(e){return e}var yw=[];function bw(e,t,n,r){let i;typeof t==`function`&&typeof n!=`function`?(r=n,n=t):i=t;let a=dw(i),o=r?-1:1;s(e,void 0,[])();function s(e,i,c){let l=e&&typeof e==`object`?e:{};if(typeof l.type==`string`){let t=typeof l.tagName==`string`?l.tagName:typeof l.name==`string`?l.name:void 0;Object.defineProperty(u,`name`,{value:`node (`+vw(e.type+(t?`<`+t+`>`:``))+`)`})}return u;function u(){let l=yw,u,d,f;if((!t||a(e,i,c[c.length-1]||void 0))&&(l=xw(n(e,c)),l[0]===!1))return l;if(`children`in e&&e.children){let t=e;if(t.children&&l[0]!==`skip`)for(d=(r?t.children.length:-1)+o,f=c.concat(t);d>-1&&d<t.children.length;){let e=t.children[d];if(u=s(e,d,f)(),u[0]===!1)return u;d=typeof u[1]==`number`?u[1]:d+o}}return l}}}function xw(e){return Array.isArray(e)?e:typeof e==`number`?[!0,e]:e==null?yw:[e]}function Sw(e,t,n){let r=dw((n||{}).ignore||[]),i=Cw(t),a=-1;for(;++a<i.length;)bw(e,`text`,o);function o(e,t){let n=-1,i;for(;++n<t.length;){let e=t[n],a=i?i.children:void 0;if(r(e,a?a.indexOf(e):void 0,i))return;i=e}if(i)return s(e,t)}function s(e,t){let n=t[t.length-1],r=i[a][0],o=i[a][1],s=0,c=n.children.indexOf(e),l=!1,u=[];r.lastIndex=0;let d=r.exec(e.value);for(;d;){let n=d.index,i={index:d.index,input:d.input,stack:[...t,e]},a=o(...d,i);if(typeof a==`string`&&(a=a.length>0?{type:`text`,value:a}:void 0),a===!1?r.lastIndex=n+1:(s!==n&&u.push({type:`text`,value:e.value.slice(s,n)}),Array.isArray(a)?u.push(...a):a&&u.push(a),s=n+d[0].length,l=!0),!r.global)break;d=r.exec(e.value)}return l?(s<e.value.length&&u.push({type:`text`,value:e.value.slice(s)}),n.children.splice(c,1,...u)):u=[e],c+u.length}}function Cw(e){let t=[];if(!Array.isArray(e))throw TypeError(`Expected find and replace tuple or list of tuples`);let n=!e[0]||Array.isArray(e[0])?e:[e],r=-1;for(;++r<n.length;){let e=n[r];t.push([ww(e[0]),Tw(e[1])])}return t}function ww(e){return typeof e==`string`?new RegExp(uw(e),`g`):e}function Tw(e){return typeof e==`function`?e:function(){return e}}var Ew=`phrasing`,Dw=[`autolink`,`link`,`image`,`label`];function Ow(){return{transforms:[Iw],enter:{literalAutolink:Aw,literalAutolinkEmail:jw,literalAutolinkHttp:jw,literalAutolinkWww:jw},exit:{literalAutolink:Fw,literalAutolinkEmail:Pw,literalAutolinkHttp:Mw,literalAutolinkWww:Nw}}}function kw(){return{unsafe:[{character:`@`,before:`[+\\-.\\w]`,after:`[\\-.\\w]`,inConstruct:Ew,notInConstruct:Dw},{character:`.`,before:`[Ww]`,after:`[\\-.\\w]`,inConstruct:Ew,notInConstruct:Dw},{character:`:`,before:`[ps]`,after:`\\/`,inConstruct:Ew,notInConstruct:Dw}]}}function Aw(e){this.enter({type:`link`,title:null,url:``,children:[]},e)}function jw(e){this.config.enter.autolinkProtocol.call(this,e)}function Mw(e){this.config.exit.autolinkProtocol.call(this,e)}function Nw(e){this.config.exit.data.call(this,e);let t=this.stack[this.stack.length-1];t.type,t.url=`http://`+this.sliceSerialize(e)}function Pw(e){this.config.exit.autolinkEmail.call(this,e)}function Fw(e){this.exit(e)}function Iw(e){Sw(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Lw],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,Rw]],{ignore:[`link`,`linkReference`]})}function Lw(e,t,n,r,i){let a=``;if(!Vw(i)||(/^w/i.test(t)&&(n=t+n,t=``,a=`http://`),!zw(n)))return!1;let o=Bw(n+r);if(!o[0])return!1;let s={type:`link`,title:null,url:a+t+o[0],children:[{type:`text`,value:t+o[0]}]};return o[1]?[s,{type:`text`,value:o[1]}]:s}function Rw(e,t,n,r){return!Vw(r,!0)||/[-\d_]$/.test(n)?!1:{type:`link`,title:null,url:`mailto:`+t+`@`+n,children:[{type:`text`,value:t+`@`+n}]}}function zw(e){let 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 Bw(e){let t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(`)`),i=lw(e,`(`),a=lw(e,`)`);for(;r!==-1&&i>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(`)`),a++;return[e,n]}function Vw(e,t){let n=e.input.charCodeAt(e.index-1);return(e.index===0||Px(n)||Nx(n))&&(!t||n!==47)}Zw.peek=Xw;function Hw(){this.buffer()}function Uw(e){this.enter({type:`footnoteReference`,identifier:``,label:``},e)}function Ww(){this.buffer()}function Gw(e){this.enter({type:`footnoteDefinition`,identifier:``,label:``,children:[]},e)}function Kw(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Cx(this.sliceSerialize(e)).toLowerCase(),n.label=t}function qw(e){this.exit(e)}function Jw(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Cx(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Yw(e){this.exit(e)}function Xw(){return`[`}function Zw(e,t,n,r){let i=n.createTracker(r),a=i.move(`[^`),o=n.enter(`footnoteReference`),s=n.enter(`reference`);return a+=i.move(n.safe(n.associationId(e),{after:`]`,before:a})),s(),o(),a+=i.move(`]`),a}function Qw(){return{enter:{gfmFootnoteCallString:Hw,gfmFootnoteCall:Uw,gfmFootnoteDefinitionLabelString:Ww,gfmFootnoteDefinition:Gw},exit:{gfmFootnoteCallString:Kw,gfmFootnoteCall:qw,gfmFootnoteDefinitionLabelString:Jw,gfmFootnoteDefinition:Yw}}}function $w(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:Zw},unsafe:[{character:`[`,inConstruct:[`label`,`phrasing`,`reference`]}]};function n(e,n,r,i){let a=r.createTracker(i),o=a.move(`[^`),s=r.enter(`footnoteDefinition`),c=r.enter(`label`);return o+=a.move(r.safe(r.associationId(e),{before:o,after:`]`})),c(),o+=a.move(`]:`),e.children&&e.children.length>0&&(a.shift(4),o+=a.move((t?`
382
+ `:` `)+r.indentLines(r.containerFlow(e,a.current()),t?tT:eT))),s(),o}}function eT(e,t,n){return t===0?e:tT(e,t,n)}function tT(e,t,n){return(n?``:` `)+e}var nT=[`autolink`,`destinationLiteral`,`destinationRaw`,`reference`,`titleQuote`,`titleApostrophe`];sT.peek=cT;function rT(){return{canContainEols:[`delete`],enter:{strikethrough:aT},exit:{strikethrough:oT}}}function iT(){return{unsafe:[{character:`~`,inConstruct:`phrasing`,notInConstruct:nT}],handlers:{delete:sT}}}function aT(e){this.enter({type:`delete`,children:[]},e)}function oT(e){this.exit(e)}function sT(e,t,n,r){let i=n.createTracker(r),a=n.enter(`strikethrough`),o=i.move(`~~`);return o+=n.containerPhrasing(e,{...i.current(),before:o,after:`~`}),o+=i.move(`~~`),a(),o}function cT(){return`~`}function lT(e){return e.length}function uT(e,t){let n=t||{},r=(n.align||[]).concat(),i=n.stringLength||lT,a=[],o=[],s=[],c=[],l=0,u=-1;for(;++u<e.length;){let t=[],r=[],a=-1;for(e[u].length>l&&(l=e[u].length);++a<e[u].length;){let o=dT(e[u][a]);if(n.alignDelimiters!==!1){let e=i(o);r[a]=e,(c[a]===void 0||e>c[a])&&(c[a]=e)}t.push(o)}o[u]=t,s[u]=r}let d=-1;if(typeof r==`object`&&`length`in r)for(;++d<l;)a[d]=fT(r[d]);else{let e=fT(r);for(;++d<l;)a[d]=e}d=-1;let f=[],p=[];for(;++d<l;){let e=a[d],t=``,r=``;e===99?(t=`:`,r=`:`):e===108?t=`:`:e===114&&(r=`:`);let i=n.alignDelimiters===!1?1:Math.max(1,c[d]-t.length-r.length),o=t+`-`.repeat(i)+r;n.alignDelimiters!==!1&&(i=t.length+i+r.length,i>c[d]&&(c[d]=i),p[d]=i),f[d]=o}o.splice(1,0,f),s.splice(1,0,p),u=-1;let m=[];for(;++u<o.length;){let e=o[u],t=s[u];d=-1;let r=[];for(;++d<l;){let i=e[d]||``,o=``,s=``;if(n.alignDelimiters!==!1){let e=c[d]-(t[d]||0),n=a[d];n===114?o=` `.repeat(e):n===99?e%2?(o=` `.repeat(e/2+.5),s=` `.repeat(e/2-.5)):(o=` `.repeat(e/2),s=o):s=` `.repeat(e)}n.delimiterStart!==!1&&!d&&r.push(`|`),n.padding!==!1&&!(n.alignDelimiters===!1&&i===``)&&(n.delimiterStart!==!1||d)&&r.push(` `),n.alignDelimiters!==!1&&r.push(o),r.push(i),n.alignDelimiters!==!1&&r.push(s),n.padding!==!1&&r.push(` `),(n.delimiterEnd!==!1||d!==l-1)&&r.push(`|`)}m.push(n.delimiterEnd===!1?r.join(``).replace(/ +$/,``):r.join(``))}return m.join(`
383
+ `)}function dT(e){return e==null?``:String(e)}function fT(e){let 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}var pT={}.hasOwnProperty;function mT(e,t){let n=t||{};function r(t,...n){let i=r.invalid,a=r.handlers;if(t&&pT.call(t,e)){let n=String(t[e]);i=pT.call(a,n)?a[n]:r.unknown}if(i)return i.call(this,t,...n)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}function hT(e,t,n,r){let i=n.enter(`blockquote`),a=n.createTracker(r);a.move(`> `),a.shift(2);let o=n.indentLines(n.containerFlow(e,a.current()),gT);return i(),o}function gT(e,t,n){return`>`+(n?``:` `)+e}function _T(e,t){return vT(e,t.inConstruct,!0)&&!vT(e,t.notInConstruct,!1)}function vT(e,t,n){if(typeof t==`string`&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function yT(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===`
384
+ `&&_T(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?``:` `;return`\\
385
+ `}function bT(e,t){let n=String(e),r=n.indexOf(t),i=r,a=0,o=0;if(typeof t!=`string`)throw TypeError(`Expected substring`);for(;r!==-1;)r===i?++a>o&&(o=a):a=1,i=r+t.length,r=n.indexOf(t,i);return o}function xT(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 ST(e){let t=e.options.fence||"`";if(t!=="`"&&t!==`~`)throw Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function CT(e,t,n,r){let i=ST(n),a=e.value||``,o=i==="`"?`GraveAccent`:`Tilde`;if(xT(e,n)){let e=n.enter(`codeIndented`),t=n.indentLines(a,wT);return e(),t}let s=n.createTracker(r),c=i.repeat(Math.max(bT(a,i)+1,3)),l=n.enter(`codeFenced`),u=s.move(c);if(e.lang){let t=n.enter(`codeFencedLang${o}`);u+=s.move(n.safe(e.lang,{before:u,after:` `,encode:["`"],...s.current()})),t()}if(e.lang&&e.meta){let t=n.enter(`codeFencedMeta${o}`);u+=s.move(` `),u+=s.move(n.safe(e.meta,{before:u,after:`
386
+ `,encode:["`"],...s.current()})),t()}return u+=s.move(`
387
+ `),a&&(u+=s.move(a+`
388
+ `)),u+=s.move(c),l(),u}function wT(e,t,n){return(n?``:` `)+e}function TT(e){let t=e.options.quote||`"`;if(t!==`"`&&t!==`'`)throw Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function ET(e,t,n,r){let i=TT(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.enter(`definition`),s=n.enter(`label`),c=n.createTracker(r),l=c.move(`[`);return l+=c.move(n.safe(n.associationId(e),{before:l,after:`]`,...c.current()})),l+=c.move(`]: `),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter(`destinationLiteral`),l+=c.move(`<`),l+=c.move(n.safe(e.url,{before:l,after:`>`,...c.current()})),l+=c.move(`>`)):(s=n.enter(`destinationRaw`),l+=c.move(n.safe(e.url,{before:l,after:e.title?` `:`
389
+ `,...c.current()}))),s(),e.title&&(s=n.enter(`title${a}`),l+=c.move(` `+i),l+=c.move(n.safe(e.title,{before:l,after:i,...c.current()})),l+=c.move(i),s()),o(),l}function DT(e){let t=e.options.emphasis||`*`;if(t!==`*`&&t!==`_`)throw Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function OT(e){return`&#x`+e.toString(16).toUpperCase()+`;`}function kT(e,t,n){let r=Ux(e),i=Ux(t);return r===void 0?i===void 0?n===`_`?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}AT.peek=jT;function AT(e,t,n,r){let i=DT(n),a=n.enter(`emphasis`),o=n.createTracker(r),s=o.move(i),c=o.move(n.containerPhrasing(e,{after:i,before:s,...o.current()})),l=c.charCodeAt(0),u=kT(r.before.charCodeAt(r.before.length-1),l,i);u.inside&&(c=OT(l)+c.slice(1));let d=c.charCodeAt(c.length-1),f=kT(r.after.charCodeAt(0),d,i);f.inside&&(c=c.slice(0,-1)+OT(d));let p=o.move(i);return a(),n.attentionEncodeSurroundingInfo={after:f.outside,before:u.outside},s+c+p}function jT(e,t,n){return n.options.emphasis||`*`}function MT(e,t,n,r){let i,a,o;typeof t==`function`&&typeof n!=`function`?(a=void 0,o=t,i=n):(a=t,o=n,i=r),bw(e,a,s,i);function s(e,t){let n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return o(e,r,n)}}function NT(e,t){let n=!1;return MT(e,function(e){if(`value`in e&&/\r?\n|\r/.test(e.value)||e.type===`break`)return n=!0,!1}),!!((!e.depth||e.depth<3)&&ux(e)&&(t.options.setext||n))}function PT(e,t,n,r){let i=Math.max(Math.min(6,e.depth||1),1),a=n.createTracker(r);if(NT(e,n)){let t=n.enter(`headingSetext`),r=n.enter(`phrasing`),o=n.containerPhrasing(e,{...a.current(),before:`
12
390
  `,after:`
13
- `});return f(),c(),h+`
14
- `+(i===1?"=":"-").repeat(h.length-(Math.max(h.lastIndexOf("\r"),h.lastIndexOf(`
15
- `))+1))}const a="#".repeat(i),o=n.enter("headingAtx"),l=n.enter("phrasing");s.move(a+" ");let u=n.containerPhrasing(e,{before:"# ",after:`
16
- `,...s.current()});return/^[\t ]/.test(u)&&(u=Rn(u.charCodeAt(0))+u.slice(1)),u=u?a+" "+u:a,n.options.closeAtx&&(u+=" "+a),l(),o(),u}Ao.peek=um;function Ao(e){return e.value||""}function um(){return"<"}Do.peek=cm;function Do(e,t,n,r){const i=ys(n),s=i==='"'?"Quote":"Apostrophe",a=n.enter("image");let o=n.enter("label");const l=n.createTracker(r);let u=l.move("![");return u+=l.move(n.safe(e.alt,{before:u,after:"]",...l.current()})),u+=l.move("]("),o(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(o=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(o=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,{before:u,after:e.title?" ":")",...l.current()}))),o(),e.title&&(o=n.enter(`title${s}`),u+=l.move(" "+i),u+=l.move(n.safe(e.title,{before:u,after:i,...l.current()})),u+=l.move(i),o()),u+=l.move(")"),a(),u}function cm(){return"!"}$o.peek=fm;function $o(e,t,n,r){const i=e.referenceType,s=n.enter("imageReference");let a=n.enter("label");const o=n.createTracker(r);let l=o.move("![");const u=n.safe(e.alt,{before:l,after:"]",...o.current()});l+=o.move(u+"]["),a();const c=n.stack;n.stack=[],a=n.enter("reference");const f=n.safe(n.associationId(e),{before:l,after:"]",...o.current()});return a(),n.stack=c,s(),i==="full"||!u||u!==f?l+=o.move(f+"]"):i==="shortcut"?l=l.slice(0,-1):l+=o.move("]"),l}function fm(){return"!"}Co.peek=dm;function Co(e,t,n){let r=e.value||"",i="`",s=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++s<n.unsafe.length;){const a=n.unsafe[s],o=n.compilePattern(a);let l;if(a.atBreak)for(;l=o.exec(r);){let u=l.index;r.charCodeAt(u)===10&&r.charCodeAt(u-1)===13&&u--,r=r.slice(0,u)+" "+r.slice(l.index+1)}}return i+r+i}function dm(){return"`"}function Oo(e,t){const n=as(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}Ro.peek=hm;function Ro(e,t,n,r){const i=ys(n),s=i==='"'?"Quote":"Apostrophe",a=n.createTracker(r);let o,l;if(Oo(e,n)){const c=n.stack;n.stack=[],o=n.enter("autolink");let f=a.move("<");return f+=a.move(n.containerPhrasing(e,{before:f,after:">",...a.current()})),f+=a.move(">"),o(),n.stack=c,f}o=n.enter("link"),l=n.enter("label");let u=a.move("[");return u+=a.move(n.containerPhrasing(e,{before:u,after:"](",...a.current()})),u+=a.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),u+=a.move("<"),u+=a.move(n.safe(e.url,{before:u,after:">",...a.current()})),u+=a.move(">")):(l=n.enter("destinationRaw"),u+=a.move(n.safe(e.url,{before:u,after:e.title?" ":")",...a.current()}))),l(),e.title&&(l=n.enter(`title${s}`),u+=a.move(" "+i),u+=a.move(n.safe(e.title,{before:u,after:i,...a.current()})),u+=a.move(i),l()),u+=a.move(")"),o(),u}function hm(e,t,n){return Oo(e,n)?"<":"["}No.peek=pm;function No(e,t,n,r){const i=e.referenceType,s=n.enter("linkReference");let a=n.enter("label");const o=n.createTracker(r);let l=o.move("[");const u=n.containerPhrasing(e,{before:l,after:"]",...o.current()});l+=o.move(u+"]["),a();const c=n.stack;n.stack=[],a=n.enter("reference");const f=n.safe(n.associationId(e),{before:l,after:"]",...o.current()});return a(),n.stack=c,s(),i==="full"||!u||u!==f?l+=o.move(f+"]"):i==="shortcut"?l=l.slice(0,-1):l+=o.move("]"),l}function pm(){return"["}function bs(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 mm(e){const t=bs(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function gm(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 Mo(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 ym(e,t,n,r){const i=n.enter("list"),s=n.bulletCurrent;let a=e.ordered?gm(n):bs(n);const o=e.ordered?a==="."?")":".":mm(n);let l=t&&n.bulletLastUsed?a===n.bulletLastUsed:!1;if(!e.ordered){const c=e.children?e.children[0]:void 0;if((a==="*"||a==="-")&&c&&(!c.children||!c.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(l=!0),Mo(n)===a&&c){let f=-1;for(;++f<e.children.length;){const h=e.children[f];if(h&&h.type==="listItem"&&h.children&&h.children[0]&&h.children[0].type==="thematicBreak"){l=!0;break}}}}l&&(a=o),n.bulletCurrent=a;const u=n.containerFlow(e,r);return n.bulletLastUsed=a,n.bulletCurrent=s,i(),u}function bm(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 wm(e,t,n,r){const i=bm(n);let s=n.bulletCurrent||bs(n);t&&t.type==="list"&&t.ordered&&(s=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+s);let a=s.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(a=Math.ceil(a/4)*4);const o=n.createTracker(r);o.move(s+" ".repeat(a-s.length)),o.shift(a);const l=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,o.current()),c);return l(),u;function c(f,h,d){return h?(d?"":" ".repeat(a))+f:(d?s:s+" ".repeat(a-s.length))+f}}function _m(e,t,n,r){const i=n.enter("paragraph"),s=n.enter("phrasing"),a=n.containerPhrasing(e,r);return s(),i(),a}const vm=or(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Tm(e,t,n,r){return(e.children.some(function(a){return vm(a)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function km(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}Io.peek=Em;function Io(e,t,n,r){const i=km(n),s=n.enter("strong"),a=n.createTracker(r),o=a.move(i+i);let l=a.move(n.containerPhrasing(e,{after:i,before:o,...a.current()}));const u=l.charCodeAt(0),c=ur(r.before.charCodeAt(r.before.length-1),u,i);c.inside&&(l=Rn(u)+l.slice(1));const f=l.charCodeAt(l.length-1),h=ur(r.after.charCodeAt(0),f,i);h.inside&&(l=l.slice(0,-1)+Rn(f));const d=a.move(i+i);return s(),n.attentionEncodeSurroundingInfo={after:h.outside,before:c.outside},o+l+d}function Em(e,t,n){return n.options.strong||"*"}function Sm(e,t,n,r){return n.safe(e.value,r)}function xm(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 Pm(e,t,n){const r=(Mo(n)+(n.options.ruleSpaces?" ":"")).repeat(xm(n));return n.options.ruleSpaces?r.slice(0,-1):r}const Lo={blockquote:Zp,break:So,code:nm,definition:im,emphasis:xo,hardBreak:So,heading:lm,html:Ao,image:Do,imageReference:$o,inlineCode:Co,link:Ro,linkReference:No,list:ym,listItem:wm,paragraph:_m,root:Tm,strong:Io,text:Sm,thematicBreak:Pm};function Am(){return{enter:{table:Dm,tableData:Fo,tableHeader:Fo,tableRow:Cm},exit:{codeText:Om,table:$m,tableData:ws,tableHeader:ws,tableRow:ws}}}function Dm(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function $m(e){this.exit(e),this.data.inTable=void 0}function Cm(e){this.enter({type:"tableRow",children:[]},e)}function ws(e){this.exit(e)}function Fo(e){this.enter({type:"tableCell",children:[]},e)}function Om(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,Rm));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function Rm(e,t){return t==="|"?t:e}function Nm(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,s=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
17
- `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:h,table:a,tableCell:l,tableRow:o}};function a(d,g,T,y){return u(c(d,T,y),d.align)}function o(d,g,T,y){const m=f(d,T,y),p=u([m]);return p.slice(0,p.indexOf(`
18
- `))}function l(d,g,T,y){const m=T.enter("tableCell"),p=T.enter("phrasing"),b=T.containerPhrasing(d,{...y,before:s,after:s});return p(),m(),b}function u(d,g){return Yp(d,{align:g,alignDelimiters:r,padding:n,stringLength:i})}function c(d,g,T){const y=d.children;let m=-1;const p=[],b=g.enter("table");for(;++m<y.length;)p[m]=f(y[m],g,T);return b(),p}function f(d,g,T){const y=d.children;let m=-1;const p=[],b=g.enter("tableRow");for(;++m<y.length;)p[m]=l(y[m],d,g,T);return b(),p}function h(d,g,T){let y=Lo.inlineCode(d,g,T);return T.stack.includes("tableCell")&&(y=y.replace(/\|/g,"\\$&")),y}}function Mm(){return{exit:{taskListCheckValueChecked:jo,taskListCheckValueUnchecked:jo,paragraph:Lm}}}function Im(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Fm}}}function jo(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function Lm(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const i=t.children;let s=-1,a;for(;++s<i.length;){const o=i[s];if(o.type==="paragraph"){a=o;break}}a===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function Fm(e,t,n,r){const i=e.children[0],s=typeof e.checked=="boolean"&&i&&i.type==="paragraph",a="["+(e.checked?"x":" ")+"] ",o=n.createTracker(r);s&&o.move(a);let l=Lo.listItem(e,t,n,{...r,...o.current()});return s&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),l;function u(c){return c+a}}function jm(){return[gp(),Lp(),Up(),Am(),Mm()]}function zm(e){return{extensions:[yp(),Fp(e),qp(),Nm(e),Im()]}}const Um={tokenize:Ym,partial:!0},zo={tokenize:Gm,partial:!0},Uo={tokenize:Km,partial:!0},qo={tokenize:Zm,partial:!0},qm={tokenize:Jm,partial:!0},Ho={name:"wwwAutolink",tokenize:Vm,previous:Vo},Bo={name:"protocolAutolink",tokenize:Wm,previous:Wo},$t={name:"emailAutolink",tokenize:Bm,previous:Yo},Et={};function Hm(){return{text:Et}}let Gt=48;for(;Gt<123;)Et[Gt]=$t,Gt++,Gt===58?Gt=65:Gt===91&&(Gt=97);Et[43]=$t,Et[45]=$t,Et[46]=$t,Et[95]=$t,Et[72]=[$t,Bo],Et[104]=[$t,Bo],Et[87]=[$t,Ho],Et[119]=[$t,Ho];function Bm(e,t,n){const r=this;let i,s;return a;function a(f){return!_s(f)||!Yo.call(r,r.previous)||vs(r.events)?n(f):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),o(f))}function o(f){return _s(f)?(e.consume(f),o):f===64?(e.consume(f),l):n(f)}function l(f){return f===46?e.check(qm,c,u)(f):f===45||f===95||ze(f)?(s=!0,e.consume(f),l):c(f)}function u(f){return e.consume(f),i=!0,l}function c(f){return s&&i&&Be(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(f)):n(f)}}function Vm(e,t,n){const r=this;return i;function i(a){return a!==87&&a!==119||!Vo.call(r,r.previous)||vs(r.events)?n(a):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Um,e.attempt(zo,e.attempt(Uo,s),n),n)(a))}function s(a){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(a)}}function Wm(e,t,n){const r=this;let i="",s=!1;return a;function a(f){return(f===72||f===104)&&Wo.call(r,r.previous)&&!vs(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(f),e.consume(f),o):n(f)}function o(f){if(Be(f)&&i.length<5)return i+=String.fromCodePoint(f),e.consume(f),o;if(f===58){const h=i.toLowerCase();if(h==="http"||h==="https")return e.consume(f),l}return n(f)}function l(f){return f===47?(e.consume(f),s?u:(s=!0,l)):n(f)}function u(f){return f===null||nr(f)||we(f)||Yt(f)||rr(f)?n(f):e.attempt(zo,e.attempt(Uo,c),n)(f)}function c(f){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(f)}}function Ym(e,t,n){let r=0;return i;function i(a){return(a===87||a===119)&&r<3?(r++,e.consume(a),i):a===46&&r===3?(e.consume(a),s):n(a)}function s(a){return a===null?n(a):t(a)}}function Gm(e,t,n){let r,i,s;return a;function a(u){return u===46||u===95?e.check(qo,l,o)(u):u===null||we(u)||Yt(u)||u!==45&&rr(u)?l(u):(s=!0,e.consume(u),a)}function o(u){return u===95?r=!0:(i=r,r=void 0),e.consume(u),a}function l(u){return i||r||!s?n(u):t(u)}}function Km(e,t){let n=0,r=0;return i;function i(a){return a===40?(n++,e.consume(a),i):a===41&&r<n?s(a):a===33||a===34||a===38||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===60||a===63||a===93||a===95||a===126?e.check(qo,t,s)(a):a===null||we(a)||Yt(a)?t(a):(e.consume(a),i)}function s(a){return a===41&&r++,e.consume(a),i}}function Zm(e,t,n){return r;function r(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),r):o===38?(e.consume(o),s):o===93?(e.consume(o),i):o===60||o===null||we(o)||Yt(o)?t(o):n(o)}function i(o){return o===null||o===40||o===91||we(o)||Yt(o)?t(o):r(o)}function s(o){return Be(o)?a(o):n(o)}function a(o){return o===59?(e.consume(o),r):Be(o)?(e.consume(o),a):n(o)}}function Jm(e,t,n){return r;function r(s){return e.consume(s),i}function i(s){return ze(s)?n(s):t(s)}}function Vo(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||we(e)}function Wo(e){return!Be(e)}function Yo(e){return!(e===47||_s(e))}function _s(e){return e===43||e===45||e===46||e===95||ze(e)}function vs(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const Xm={tokenize:ag,partial:!0};function Qm(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:rg,continuation:{tokenize:ig},exit:sg}},text:{91:{name:"gfmFootnoteCall",tokenize:ng},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:eg,resolveTo:tg}}}}function eg(e,t,n){const r=this;let i=r.events.length;const s=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a;for(;i--;){const l=r.events[i][1];if(l.type==="labelImage"){a=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(!a||!a._balanced)return n(l);const u=mt(r.sliceSerialize({start:a.end,end:r.now()}));return u.codePointAt(0)!==94||!s.includes(u.slice(1))?n(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function tg(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const s={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},s.start),end:Object.assign({},s.end)},o=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",s,t],["enter",a,t],["exit",a,t],["exit",s,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...o),e}function ng(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s=0,a;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?n(f):(e.enter("gfmFootnoteCallMarker"),e.consume(f),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(f){if(s>999||f===93&&!a||f===null||f===91||we(f))return n(f);if(f===93){e.exit("chunkString");const h=e.exit("gfmFootnoteCallString");return i.includes(mt(r.sliceSerialize(h)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(f)}return we(f)||(a=!0),s++,e.consume(f),f===92?c:u}function c(f){return f===91||f===92||f===93?(e.consume(f),s++,u):u(f)}}function rg(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s,a=0,o;return l;function l(g){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(g){return g===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(g)}function c(g){if(a>999||g===93&&!o||g===null||g===91||we(g))return n(g);if(g===93){e.exit("chunkString");const T=e.exit("gfmFootnoteDefinitionLabelString");return s=mt(r.sliceSerialize(T)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),h}return we(g)||(o=!0),a++,e.consume(g),g===92?f:c}function f(g){return g===91||g===92||g===93?(e.consume(g),a++,c):c(g)}function h(g){return g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),i.includes(s)||i.push(s),pe(e,d,"gfmFootnoteDefinitionWhitespace")):n(g)}function d(g){return t(g)}}function ig(e,t,n){return e.check($n,t,e.attempt(Xm,t,n))}function sg(e){e.exit("gfmFootnoteDefinition")}function ag(e,t,n){const r=this;return pe(e,i,"gfmFootnoteDefinitionIndent",5);function i(s){const a=r.events[r.events.length-1];return a&&a[1].type==="gfmFootnoteDefinitionIndent"&&a[2].sliceSerialize(a[1],!0).length===4?t(s):n(s)}}function og(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:s,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(a,o){let l=-1;for(;++l<a.length;)if(a[l][0]==="enter"&&a[l][1].type==="strikethroughSequenceTemporary"&&a[l][1]._close){let u=l;for(;u--;)if(a[u][0]==="exit"&&a[u][1].type==="strikethroughSequenceTemporary"&&a[u][1]._open&&a[l][1].end.offset-a[l][1].start.offset===a[u][1].end.offset-a[u][1].start.offset){a[l][1].type="strikethroughSequence",a[u][1].type="strikethroughSequence";const c={type:"strikethrough",start:Object.assign({},a[u][1].start),end:Object.assign({},a[l][1].end)},f={type:"strikethroughText",start:Object.assign({},a[u][1].end),end:Object.assign({},a[l][1].start)},h=[["enter",c,o],["enter",a[u][1],o],["exit",a[u][1],o],["enter",f,o]],d=o.parser.constructs.insideSpan.null;d&&it(h,h.length,0,ir(d,a.slice(u+1,l),o)),it(h,h.length,0,[["exit",f,o],["enter",a[l][1],o],["exit",a[l][1],o],["exit",c,o]]),it(a,u-1,l-u+3,h),l=u+h.length-2;break}}for(l=-1;++l<a.length;)a[l][1].type==="strikethroughSequenceTemporary"&&(a[l][1].type="data");return a}function s(a,o,l){const u=this.previous,c=this.events;let f=0;return h;function h(g){return u===126&&c[c.length-1][1].type!=="characterEscape"?l(g):(a.enter("strikethroughSequenceTemporary"),d(g))}function d(g){const T=un(u);if(g===126)return f>1?l(g):(a.consume(g),f++,d);if(f<2&&!n)return l(g);const y=a.exit("strikethroughSequenceTemporary"),m=un(g);return y._open=!m||m===2&&!!T,y._close=!T||T===2&&!!m,o(g)}}}class lg{constructor(){this.map=[]}add(t,n,r){ug(this,t,n,r)}consume(t){if(this.map.sort(function(s,a){return s[0]-a[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let i=r.pop();for(;i;){for(const s of i)t.push(s);i=r.pop()}this.map.length=0}}function ug(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function cg(e,t){let n=!1;const r=[];for(;t<e.length;){const i=e[t];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const s=r.length-1;r[s]=r[s]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function fg(){return{flow:{null:{name:"table",tokenize:dg,resolveAll:hg}}}}function dg(e,t,n){const r=this;let i=0,s=0,a;return o;function o(A){let O=r.events.length-1;for(;O>-1;){const H=r.events[O][1].type;if(H==="lineEnding"||H==="linePrefix")O--;else break}const U=O>-1?r.events[O][1].type:null,K=U==="tableHead"||U==="tableRow"?w:l;return K===w&&r.parser.lazy[r.now().line]?n(A):K(A)}function l(A){return e.enter("tableHead"),e.enter("tableRow"),u(A)}function u(A){return A===124||(a=!0,s+=1),c(A)}function c(A){return A===null?n(A):ie(A)?s>1?(s=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),d):n(A):de(A)?pe(e,c,"whitespace")(A):(s+=1,a&&(a=!1,i+=1),A===124?(e.enter("tableCellDivider"),e.consume(A),e.exit("tableCellDivider"),a=!0,c):(e.enter("data"),f(A)))}function f(A){return A===null||A===124||we(A)?(e.exit("data"),c(A)):(e.consume(A),A===92?h:f)}function h(A){return A===92||A===124?(e.consume(A),f):f(A)}function d(A){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(A):(e.enter("tableDelimiterRow"),a=!1,de(A)?pe(e,g,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(A):g(A))}function g(A){return A===45||A===58?y(A):A===124?(a=!0,e.enter("tableCellDivider"),e.consume(A),e.exit("tableCellDivider"),T):v(A)}function T(A){return de(A)?pe(e,y,"whitespace")(A):y(A)}function y(A){return A===58?(s+=1,a=!0,e.enter("tableDelimiterMarker"),e.consume(A),e.exit("tableDelimiterMarker"),m):A===45?(s+=1,m(A)):A===null||ie(A)?S(A):v(A)}function m(A){return A===45?(e.enter("tableDelimiterFiller"),p(A)):v(A)}function p(A){return A===45?(e.consume(A),p):A===58?(a=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(A),e.exit("tableDelimiterMarker"),b):(e.exit("tableDelimiterFiller"),b(A))}function b(A){return de(A)?pe(e,S,"whitespace")(A):S(A)}function S(A){return A===124?g(A):A===null||ie(A)?!a||i!==s?v(A):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(A)):v(A)}function v(A){return n(A)}function w(A){return e.enter("tableRow"),x(A)}function x(A){return A===124?(e.enter("tableCellDivider"),e.consume(A),e.exit("tableCellDivider"),x):A===null||ie(A)?(e.exit("tableRow"),t(A)):de(A)?pe(e,x,"whitespace")(A):(e.enter("data"),N(A))}function N(A){return A===null||A===124||we(A)?(e.exit("data"),x(A)):(e.consume(A),A===92?F:N)}function F(A){return A===92||A===124?(e.consume(A),N):N(A)}}function hg(e,t){let n=-1,r=!0,i=0,s=[0,0,0,0],a=[0,0,0,0],o=!1,l=0,u,c,f;const h=new lg;for(;++n<e.length;){const d=e[n],g=d[1];d[0]==="enter"?g.type==="tableHead"?(o=!1,l!==0&&(Go(h,t,l,u,c),c=void 0,l=0),u={type:"table",start:Object.assign({},g.start),end:Object.assign({},g.end)},h.add(n,0,[["enter",u,t]])):g.type==="tableRow"||g.type==="tableDelimiterRow"?(r=!0,f=void 0,s=[0,0,0,0],a=[0,n+1,0,0],o&&(o=!1,c={type:"tableBody",start:Object.assign({},g.start),end:Object.assign({},g.end)},h.add(n,0,[["enter",c,t]])),i=g.type==="tableDelimiterRow"?2:c?3:1):i&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")?(r=!1,a[2]===0&&(s[1]!==0&&(a[0]=a[1],f=cr(h,t,s,i,void 0,f),s=[0,0,0,0]),a[2]=n)):g.type==="tableCellDivider"&&(r?r=!1:(s[1]!==0&&(a[0]=a[1],f=cr(h,t,s,i,void 0,f)),s=a,a=[s[1],n,0,0])):g.type==="tableHead"?(o=!0,l=n):g.type==="tableRow"||g.type==="tableDelimiterRow"?(l=n,s[1]!==0?(a[0]=a[1],f=cr(h,t,s,i,n,f)):a[1]!==0&&(f=cr(h,t,a,i,n,f)),i=0):i&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")&&(a[3]=n)}for(l!==0&&Go(h,t,l,u,c),h.consume(t.events),n=-1;++n<t.events.length;){const d=t.events[n];d[0]==="enter"&&d[1].type==="table"&&(d[1]._align=cg(t.events,n))}return e}function cr(e,t,n,r,i,s){const a=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",o="tableContent";n[0]!==0&&(s.end=Object.assign({},cn(t.events,n[0])),e.add(n[0],0,[["exit",s,t]]));const l=cn(t.events,n[1]);if(s={type:a,start:Object.assign({},l),end:Object.assign({},l)},e.add(n[1],0,[["enter",s,t]]),n[2]!==0){const u=cn(t.events,n[2]),c=cn(t.events,n[3]),f={type:o,start:Object.assign({},u),end:Object.assign({},c)};if(e.add(n[2],0,[["enter",f,t]]),r!==2){const h=t.events[n[2]],d=t.events[n[3]];if(h[1].end=Object.assign({},d[1].end),h[1].type="chunkText",h[1].contentType="text",n[3]>n[2]+1){const g=n[2]+1,T=n[3]-n[2]-1;e.add(g,T,[])}}e.add(n[3]+1,0,[["exit",f,t]])}return i!==void 0&&(s.end=Object.assign({},cn(t.events,i)),e.add(i,0,[["exit",s,t]]),s=void 0),s}function Go(e,t,n,r,i){const s=[],a=cn(t.events,n);i&&(i.end=Object.assign({},a),s.push(["exit",i,t])),r.end=Object.assign({},a),s.push(["exit",r,t]),e.add(n+1,0,s)}function cn(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const pg={name:"tasklistCheck",tokenize:gg};function mg(){return{text:{91:pg}}}function gg(e,t,n){const r=this;return i;function i(l){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),s)}function s(l){return we(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),a):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),a):n(l)}function a(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),o):n(l)}function o(l){return ie(l)?t(l):de(l)?e.check({tokenize:yg},t,n)(l):n(l)}}function yg(e,t,n){return pe(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function bg(e){return Ga([Hm(),Qm(),og(e),fg(),mg()])}const wg={};function _g(e){const t=this,n=e||wg,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),s=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),a=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(bg(n)),s.push(jm()),a.push(zm(n))}function vg(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function Tg(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
19
- `}]}function kg(e,t){const n=t.value?t.value+`
20
- `:"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let s={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(s.data={meta:t.meta}),e.patch(t,s),s=e.applyData(t,s),s={type:"element",tagName:"pre",properties:{},children:[s]},e.patch(t,s),s}function Eg(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Sg(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function xg(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=ln(r.toLowerCase()),s=e.footnoteOrder.indexOf(r);let a,o=e.footnoteCounts.get(r);o===void 0?(o=0,e.footnoteOrder.push(r),a=e.footnoteOrder.length):a=s+1,o+=1,e.footnoteCounts.set(r,o);const l={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(o>1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};e.patch(t,l);const u={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,u),e.applyData(t,u)}function Pg(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Ag(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function Ko(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),s=i[0];s&&s.type==="text"?s.value="["+s.value:i.unshift({type:"text",value:"["});const a=i[i.length-1];return a&&a.type==="text"?a.value+=r:i.push({type:"text",value:r}),i}function Dg(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Ko(e,t);const i={src:ln(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const s={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,s),e.applyData(t,s)}function $g(e,t){const n={src:ln(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function Cg(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function Og(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Ko(e,t);const i={href:ln(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const s={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,s),e.applyData(t,s)}function Rg(e,t){const n={href:ln(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Ng(e,t,n){const r=e.all(t),i=n?Mg(n):Zo(t),s={},a=[];if(typeof t.checked=="boolean"){const c=r[0];let f;c&&c.type==="element"&&c.tagName==="p"?f=c:(f={type:"element",tagName:"p",properties:{},children:[]},r.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:[]}),s.className=["task-list-item"]}let o=-1;for(;++o<r.length;){const c=r[o];(i||o!==0||c.type!=="element"||c.tagName!=="p")&&a.push({type:"text",value:`
21
- `}),c.type==="element"&&c.tagName==="p"&&!i?a.push(...c.children):a.push(c)}const l=r[r.length-1];l&&(i||l.type!=="element"||l.tagName!=="p")&&a.push({type:"text",value:`
22
- `});const u={type:"element",tagName:"li",properties:s,children:a};return e.patch(t,u),e.applyData(t,u)}function Mg(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=Zo(n[r])}return t}function Zo(e){const t=e.spread;return t??e.children.length>1}function Ig(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<r.length;){const a=r[i];if(a.type==="element"&&a.tagName==="li"&&a.properties&&Array.isArray(a.properties.className)&&a.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const s={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,s),e.applyData(t,s)}function Lg(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Fg(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function jg(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const Jo=Qo("end"),Xo=Qo("start");function Qo(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function zg(e){const t=Xo(e),n=Jo(e);if(t&&n)return{start:t,end:n}}function Ug(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const a={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],a),i.push(a)}if(n.length>0){const a={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},o=Xo(t.children[1]),l=Jo(t.children[t.children.length-1]);o&&l&&(a.position={start:o,end:l}),i.push(a)}const s={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,s),e.applyData(t,s)}function qg(e,t,n){const r=n?n.children:void 0,s=(r?r.indexOf(t):1)===0?"th":"td",a=n&&n.type==="table"?n.align:void 0,o=a?a.length:t.children.length;let l=-1;const u=[];for(;++l<o;){const f=t.children[l],h={},d=a?a[l]:void 0;d&&(h.align=d);let g={type:"element",tagName:s,properties:h,children:[]};f&&(g.children=e.all(f),e.patch(f,g),g=e.applyData(f,g)),u.push(g)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,c),e.applyData(t,c)}function Hg(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const el=9,tl=32;function Bg(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const s=[];for(;r;)s.push(nl(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return s.push(nl(t.slice(i),i>0,!1)),s.join("")}function nl(e,t,n){let r=0,i=e.length;if(t){let s=e.codePointAt(r);for(;s===el||s===tl;)r++,s=e.codePointAt(r)}if(n){let s=e.codePointAt(i-1);for(;s===el||s===tl;)i--,s=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function Vg(e,t){const n={type:"text",value:Bg(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function Wg(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const Yg={blockquote:vg,break:Tg,code:kg,delete:Eg,emphasis:Sg,footnoteReference:xg,heading:Pg,html:Ag,imageReference:Dg,image:$g,inlineCode:Cg,linkReference:Og,link:Rg,listItem:Ng,list:Ig,paragraph:Lg,root:Fg,strong:jg,table:Ug,tableCell:Hg,tableRow:qg,text:Vg,thematicBreak:Wg,toml:fr,yaml:fr,definition:fr,footnoteDefinition:fr};function fr(){}const rl=-1,dr=0,Nn=1,hr=2,Ts=3,ks=4,Es=5,Ss=6,il=7,sl=8,al=typeof self=="object"?self:globalThis,Gg=(e,t)=>{const n=(i,s)=>(e.set(s,i),i),r=i=>{if(e.has(i))return e.get(i);const[s,a]=t[i];switch(s){case dr:case rl:return n(a,i);case Nn:{const o=n([],i);for(const l of a)o.push(r(l));return o}case hr:{const o=n({},i);for(const[l,u]of a)o[r(l)]=r(u);return o}case Ts:return n(new Date(a),i);case ks:{const{source:o,flags:l}=a;return n(new RegExp(o,l),i)}case Es:{const o=n(new Map,i);for(const[l,u]of a)o.set(r(l),r(u));return o}case Ss:{const o=n(new Set,i);for(const l of a)o.add(r(l));return o}case il:{const{name:o,message:l}=a;return n(new al[o](l),i)}case sl:return n(BigInt(a),i);case"BigInt":return n(Object(BigInt(a)),i);case"ArrayBuffer":return n(new Uint8Array(a).buffer,a);case"DataView":{const{buffer:o}=new Uint8Array(a);return n(new DataView(o),a)}}return n(new al[s](a),i)};return r},ol=e=>Gg(new Map,e)(0),fn="",{toString:Kg}={},{keys:Zg}=Object,Mn=e=>{const t=typeof e;if(t!=="object"||!e)return[dr,t];const n=Kg.call(e).slice(8,-1);switch(n){case"Array":return[Nn,fn];case"Object":return[hr,fn];case"Date":return[Ts,fn];case"RegExp":return[ks,fn];case"Map":return[Es,fn];case"Set":return[Ss,fn];case"DataView":return[Nn,n]}return n.includes("Array")?[Nn,n]:n.includes("Error")?[il,n]:[hr,n]},pr=([e,t])=>e===dr&&(t==="function"||t==="symbol"),Jg=(e,t,n,r)=>{const i=(a,o)=>{const l=r.push(a)-1;return n.set(o,l),l},s=a=>{if(n.has(a))return n.get(a);let[o,l]=Mn(a);switch(o){case dr:{let c=a;switch(l){case"bigint":o=sl,c=a.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);c=null;break;case"undefined":return i([rl],a)}return i([o,c],a)}case Nn:{if(l){let h=a;return l==="DataView"?h=new Uint8Array(a.buffer):l==="ArrayBuffer"&&(h=new Uint8Array(a)),i([l,[...h]],a)}const c=[],f=i([o,c],a);for(const h of a)c.push(s(h));return f}case hr:{if(l)switch(l){case"BigInt":return i([l,a.toString()],a);case"Boolean":case"Number":case"String":return i([l,a.valueOf()],a)}if(t&&"toJSON"in a)return s(a.toJSON());const c=[],f=i([o,c],a);for(const h of Zg(a))(e||!pr(Mn(a[h])))&&c.push([s(h),s(a[h])]);return f}case Ts:return i([o,a.toISOString()],a);case ks:{const{source:c,flags:f}=a;return i([o,{source:c,flags:f}],a)}case Es:{const c=[],f=i([o,c],a);for(const[h,d]of a)(e||!(pr(Mn(h))||pr(Mn(d))))&&c.push([s(h),s(d)]);return f}case Ss:{const c=[],f=i([o,c],a);for(const h of a)(e||!pr(Mn(h)))&&c.push(s(h));return f}}const{message:u}=a;return i([o,{name:l,message:u}],a)};return s},ll=(e,{json:t,lossy:n}={})=>{const r=[];return Jg(!(t||n),!!t,new Map,r)(e),r},mr=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?ol(ll(e,t)):structuredClone(e):(e,t)=>ol(ll(e,t));function Xg(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function Qg(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function ey(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||Xg,r=e.options.footnoteBackLabel||Qg,i=e.options.footnoteLabel||"Footnotes",s=e.options.footnoteLabelTagName||"h2",a=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(),h=ln(f.toLowerCase());let d=0;const g=[],T=e.footnoteCounts.get(f);for(;T!==void 0&&++d<=T;){g.length>0&&g.push({type:"text",value:" "});let p=typeof n=="string"?n:n(l,d);typeof p=="string"&&(p={type:"text",value:p}),g.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+h+(d>1?"-"+d:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(l,d),className:["data-footnote-backref"]},children:Array.isArray(p)?p:[p]})}const y=c[c.length-1];if(y&&y.type==="element"&&y.tagName==="p"){const p=y.children[y.children.length-1];p&&p.type==="text"?p.value+=" ":y.children.push({type:"text",value:" "}),y.children.push(...g)}else c.push(...g);const m={type:"element",tagName:"li",properties:{id:t+"fn-"+h},children:e.wrap(c,!0)};e.patch(u,m),o.push(m)}if(o.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:s,properties:{...mr(a),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
23
- `},{type:"element",tagName:"ol",properties:{},children:e.wrap(o,!0)},{type:"text",value:`
24
- `}]}}const xs={}.hasOwnProperty,ty={};function ny(e,t){const n=t||ty,r=new Map,i=new Map,s=new Map,a={...Yg,...n.handlers},o={all:u,applyData:iy,definitionById:r,footnoteById:i,footnoteCounts:s,footnoteOrder:[],handlers:a,one:l,options:n,patch:ry,wrap:ay};return Po(e,function(c){if(c.type==="definition"||c.type==="footnoteDefinition"){const f=c.type==="definition"?r:i,h=String(c.identifier).toUpperCase();f.has(h)||f.set(h,c)}}),o;function l(c,f){const h=c.type,d=o.handlers[h];if(xs.call(o.handlers,h)&&d)return d(o,c,f);if(o.options.passThrough&&o.options.passThrough.includes(h)){if("children"in c){const{children:T,...y}=c,m=mr(y);return m.children=o.all(c),m}return mr(c)}return(o.options.unknownHandler||sy)(o,c,f)}function u(c){const f=[];if("children"in c){const h=c.children;let d=-1;for(;++d<h.length;){const g=o.one(h[d],c);if(g){if(d&&h[d-1].type==="break"&&(!Array.isArray(g)&&g.type==="text"&&(g.value=ul(g.value)),!Array.isArray(g)&&g.type==="element")){const T=g.children[0];T&&T.type==="text"&&(T.value=ul(T.value))}Array.isArray(g)?f.push(...g):f.push(g)}}}return f}}function ry(e,t){e.position&&(t.position=zg(e))}function iy(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,s=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const a="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:a}}n.type==="element"&&s&&Object.assign(n.properties,mr(s)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function sy(e,t){const n=t.data||{},r="value"in t&&!(xs.call(n,"hProperties")||xs.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function ay(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
25
- `});++r<e.length;)r&&n.push({type:"text",value:`
26
- `}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
27
- `}),n}function ul(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function cl(e,t){const n=ny(e,t),r=n.one(e,void 0),i=ey(n),s=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&s.children.push({type:"text",value:`
28
- `},i),s}function oy(e,t){return e&&"run"in e?async function(n,r){const i=cl(n,{file:r,...t});await e.run(i,r)}:function(n,r){return cl(n,{file:r,...e||t})}}const ly=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class In{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}In.prototype.normal={},In.prototype.property={},In.prototype.space=void 0;function fl(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new In(n,r,t)}function Ps(e){return e.toLowerCase()}class tt{constructor(t,n){this.attribute=n,this.property=t}}tt.prototype.attribute="",tt.prototype.booleanish=!1,tt.prototype.boolean=!1,tt.prototype.commaOrSpaceSeparated=!1,tt.prototype.commaSeparated=!1,tt.prototype.defined=!1,tt.prototype.mustUseProperty=!1,tt.prototype.number=!1,tt.prototype.overloadedBoolean=!1,tt.prototype.property="",tt.prototype.spaceSeparated=!1,tt.prototype.space=void 0;let uy=0;const le=Kt(),Ce=Kt(),As=Kt(),Y=Kt(),_e=Kt(),dn=Kt(),st=Kt();function Kt(){return 2**++uy}const Ds=Object.freeze(Object.defineProperty({__proto__:null,boolean:le,booleanish:Ce,commaOrSpaceSeparated:st,commaSeparated:dn,number:Y,overloadedBoolean:As,spaceSeparated:_e},Symbol.toStringTag,{value:"Module"})),$s=Object.keys(Ds);class Cs extends tt{constructor(t,n,r,i){let s=-1;if(super(t,n),dl(this,"space",i),typeof r=="number")for(;++s<$s.length;){const a=$s[s];dl(this,$s[s],(r&Ds[a])===Ds[a])}}}Cs.prototype.defined=!0;function dl(e,t,n){n&&(e[t]=n)}function hn(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const s=new Cs(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(s.mustUseProperty=!0),t[r]=s,n[Ps(r)]=r,n[Ps(s.attribute)]=r}return new In(t,n,e.space)}const hl=hn({properties:{ariaActiveDescendant:null,ariaAtomic:Ce,ariaAutoComplete:null,ariaBusy:Ce,ariaChecked:Ce,ariaColCount:Y,ariaColIndex:Y,ariaColSpan:Y,ariaControls:_e,ariaCurrent:null,ariaDescribedBy:_e,ariaDetails:null,ariaDisabled:Ce,ariaDropEffect:_e,ariaErrorMessage:null,ariaExpanded:Ce,ariaFlowTo:_e,ariaGrabbed:Ce,ariaHasPopup:null,ariaHidden:Ce,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:_e,ariaLevel:Y,ariaLive:null,ariaModal:Ce,ariaMultiLine:Ce,ariaMultiSelectable:Ce,ariaOrientation:null,ariaOwns:_e,ariaPlaceholder:null,ariaPosInSet:Y,ariaPressed:Ce,ariaReadOnly:Ce,ariaRelevant:null,ariaRequired:Ce,ariaRoleDescription:_e,ariaRowCount:Y,ariaRowIndex:Y,ariaRowSpan:Y,ariaSelected:Ce,ariaSetSize:Y,ariaSort:null,ariaValueMax:Y,ariaValueMin:Y,ariaValueNow:Y,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function pl(e,t){return t in e?e[t]:t}function ml(e,t){return pl(e,t.toLowerCase())}const cy=hn({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:dn,acceptCharset:_e,accessKey:_e,action:null,allow:null,allowFullScreen:le,allowPaymentRequest:le,allowUserMedia:le,alt:null,as:null,async:le,autoCapitalize:null,autoComplete:_e,autoFocus:le,autoPlay:le,blocking:_e,capture:null,charSet:null,checked:le,cite:null,className:_e,cols:Y,colSpan:null,content:null,contentEditable:Ce,controls:le,controlsList:_e,coords:Y|dn,crossOrigin:null,data:null,dateTime:null,decoding:null,default:le,defer:le,dir:null,dirName:null,disabled:le,download:As,draggable:Ce,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:le,formTarget:null,headers:_e,height:Y,hidden:As,high:Y,href:null,hrefLang:null,htmlFor:_e,httpEquiv:_e,id:null,imageSizes:null,imageSrcSet:null,inert:le,inputMode:null,integrity:null,is:null,isMap:le,itemId:null,itemProp:_e,itemRef:_e,itemScope:le,itemType:_e,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:le,low:Y,manifest:null,max:null,maxLength:Y,media:null,method:null,min:null,minLength:Y,multiple:le,muted:le,name:null,nonce:null,noModule:le,noValidate:le,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:le,optimum:Y,pattern:null,ping:_e,placeholder:null,playsInline:le,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:le,referrerPolicy:null,rel:_e,required:le,reversed:le,rows:Y,rowSpan:Y,sandbox:_e,scope:null,scoped:le,seamless:le,selected:le,shadowRootClonable:le,shadowRootDelegatesFocus:le,shadowRootMode:null,shape:null,size:Y,sizes:null,slot:null,span:Y,spellCheck:Ce,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Y,step:null,style:null,tabIndex:Y,target:null,title:null,translate:null,type:null,typeMustMatch:le,useMap:null,value:Ce,width:Y,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:_e,axis:null,background:null,bgColor:null,border:Y,borderColor:null,bottomMargin:Y,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:le,declare:le,event:null,face:null,frame:null,frameBorder:null,hSpace:Y,leftMargin:Y,link:null,longDesc:null,lowSrc:null,marginHeight:Y,marginWidth:Y,noResize:le,noHref:le,noShade:le,noWrap:le,object:null,profile:null,prompt:null,rev:null,rightMargin:Y,rules:null,scheme:null,scrolling:Ce,standby:null,summary:null,text:null,topMargin:Y,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Y,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:le,disableRemotePlayback:le,prefix:null,property:null,results:Y,security:null,unselectable:null},space:"html",transform:ml}),fy=hn({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",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:st,accentHeight:Y,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Y,amplitude:Y,arabicForm:null,ascent:Y,attributeName:null,attributeType:null,azimuth:Y,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Y,by:null,calcMode:null,capHeight:Y,className:_e,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:Y,diffuseConstant:Y,direction:null,display:null,dur:null,divisor:Y,dominantBaseline:null,download:le,dx:null,dy:null,edgeMode:null,editable:null,elevation:Y,enableBackground:null,end:null,event:null,exponent:Y,externalResourcesRequired:null,fill:null,fillOpacity:Y,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:dn,g2:dn,glyphName:dn,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Y,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Y,horizOriginX:Y,horizOriginY:Y,id:null,ideographic:Y,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Y,k:Y,k1:Y,k2:Y,k3:Y,k4:Y,kernelMatrix:st,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Y,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Y,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:Y,overlineThickness:Y,paintOrder:null,panose1:null,path:null,pathLength:Y,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:_e,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Y,pointsAtY:Y,pointsAtZ:Y,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:st,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:st,rev:st,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:st,requiredFeatures:st,requiredFonts:st,requiredFormats:st,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:Y,specularExponent:Y,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Y,strikethroughThickness:Y,string:null,stroke:null,strokeDashArray:st,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Y,strokeOpacity:Y,strokeWidth:null,style:null,surfaceScale:Y,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:st,tabIndex:Y,tableValues:null,target:null,targetX:Y,targetY:Y,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:st,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Y,underlineThickness:Y,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Y,values:null,vAlphabetic:Y,vMathematical:Y,vectorEffect:null,vHanging:Y,vIdeographic:Y,version:null,vertAdvY:Y,vertOriginX:Y,vertOriginY:Y,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Y,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:pl}),gl=hn({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()}}),yl=hn({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:ml}),bl=hn({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),dy=/[A-Z]/g,wl=/-[a-z]/g,hy=/^data[-\w.:]+$/i;function py(e,t){const n=Ps(t);let r=t,i=tt;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&hy.test(t)){if(t.charAt(4)==="-"){const s=t.slice(5).replace(wl,gy);r="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=t.slice(4);if(!wl.test(s)){let a=s.replace(dy,my);a.charAt(0)!=="-"&&(a="-"+a),t="data"+a}}i=Cs}return new i(r,t)}function my(e){return"-"+e.toLowerCase()}function gy(e){return e.charAt(1).toUpperCase()}const yy=fl([hl,cy,gl,yl,bl],"html"),_l=fl([hl,fy,gl,yl,bl],"svg"),by=/["&'<>`]/g,wy=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,_y=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,vy=/[|\\{}()[\]^$+*?.]/g,vl=new WeakMap;function Ty(e,t){if(e=e.replace(t.subset?ky(t.subset):by,r),t.subset||t.escapeOnly)return e;return e.replace(wy,n).replace(_y,r);function n(i,s,a){return t.format((i.charCodeAt(0)-55296)*1024+i.charCodeAt(1)-56320+65536,a.charCodeAt(s+2),t)}function r(i,s,a){return t.format(i.charCodeAt(0),a.charCodeAt(s+1),t)}}function ky(e){let t=vl.get(e);return t||(t=Ey(e),vl.set(e,t)),t}function Ey(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(vy,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const Sy=/[\dA-Fa-f]/;function xy(e,t,n){const r="&#x"+e.toString(16).toUpperCase();return n&&t&&!Sy.test(String.fromCharCode(t))?r:r+";"}const Py=/\d/;function Ay(e,t,n){const r="&#"+String(e);return n&&t&&!Py.test(String.fromCharCode(t))?r:r+";"}const Dy=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],Os={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},$y=["cent","copy","divide","gt","lt","not","para","times"],Tl={}.hasOwnProperty,Rs={};let gr;for(gr in Os)Tl.call(Os,gr)&&(Rs[Os[gr]]=gr);const Cy=/[^\dA-Za-z]/;function Oy(e,t,n,r){const i=String.fromCharCode(e);if(Tl.call(Rs,i)){const s=Rs[i],a="&"+s;return n&&Dy.includes(s)&&!$y.includes(s)&&(!r||t&&t!==61&&Cy.test(String.fromCharCode(t)))?a:a+";"}return""}function Ry(e,t,n){let r=xy(e,t,n.omitOptionalSemicolons),i;if((n.useNamedReferences||n.useShortestReferences)&&(i=Oy(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!i)&&n.useShortestReferences){const s=Ay(e,t,n.omitOptionalSemicolons);s.length<r.length&&(r=s)}return i&&(!n.useShortestReferences||i.length<r.length)?i:r}function pn(e,t){return Ty(e,Object.assign({format:Ry},t))}const Ny=/^>|^->|<!--|-->|--!>|<!-$/g,My=[">"],Iy=["<",">"];function Ly(e,t,n,r){return r.settings.bogusComments?"<?"+pn(e.value,Object.assign({},r.settings.characterReferences,{subset:My}))+">":"<!--"+e.value.replace(Ny,i)+"-->";function i(s){return pn(s,Object.assign({},r.settings.characterReferences,{subset:Iy}))}}function Fy(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}function jy(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}function zy(e){return e.join(" ").trim()}const Uy=/[ \t\n\f\r]/g;function Ns(e){return typeof e=="object"?e.type==="text"?kl(e.value):!1:kl(e)}function kl(e){return e.replace(Uy,"")===""}const Me=Sl(1),El=Sl(-1),qy=[];function Sl(e){return t;function t(n,r,i){const s=n?n.children:qy;let a=(r||0)+e,o=s[a];if(!i)for(;o&&Ns(o);)a+=e,o=s[a];return o}}const Hy={}.hasOwnProperty;function xl(e){return t;function t(n,r,i){return Hy.call(e,n.tagName)&&e[n.tagName](n,r,i)}}const Ms=xl({body:Vy,caption:Is,colgroup:Is,dd:Ky,dt:Gy,head:Is,html:By,li:Yy,optgroup:Zy,option:Jy,p:Wy,rp:Pl,rt:Pl,tbody:Qy,td:Al,tfoot:e0,th:Al,thead:Xy,tr:t0});function Is(e,t,n){const r=Me(n,t,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&Ns(r.value.charAt(0)))}function By(e,t,n){const r=Me(n,t);return!r||r.type!=="comment"}function Vy(e,t,n){const r=Me(n,t);return!r||r.type!=="comment"}function Wy(e,t,n){const r=Me(n,t);return r?r.type==="element"&&(r.tagName==="address"||r.tagName==="article"||r.tagName==="aside"||r.tagName==="blockquote"||r.tagName==="details"||r.tagName==="div"||r.tagName==="dl"||r.tagName==="fieldset"||r.tagName==="figcaption"||r.tagName==="figure"||r.tagName==="footer"||r.tagName==="form"||r.tagName==="h1"||r.tagName==="h2"||r.tagName==="h3"||r.tagName==="h4"||r.tagName==="h5"||r.tagName==="h6"||r.tagName==="header"||r.tagName==="hgroup"||r.tagName==="hr"||r.tagName==="main"||r.tagName==="menu"||r.tagName==="nav"||r.tagName==="ol"||r.tagName==="p"||r.tagName==="pre"||r.tagName==="section"||r.tagName==="table"||r.tagName==="ul"):!n||!(n.type==="element"&&(n.tagName==="a"||n.tagName==="audio"||n.tagName==="del"||n.tagName==="ins"||n.tagName==="map"||n.tagName==="noscript"||n.tagName==="video"))}function Yy(e,t,n){const r=Me(n,t);return!r||r.type==="element"&&r.tagName==="li"}function Gy(e,t,n){const r=Me(n,t);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function Ky(e,t,n){const r=Me(n,t);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function Pl(e,t,n){const r=Me(n,t);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function Zy(e,t,n){const r=Me(n,t);return!r||r.type==="element"&&r.tagName==="optgroup"}function Jy(e,t,n){const r=Me(n,t);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function Xy(e,t,n){const r=Me(n,t);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function Qy(e,t,n){const r=Me(n,t);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function e0(e,t,n){return!Me(n,t)}function t0(e,t,n){const r=Me(n,t);return!r||r.type==="element"&&r.tagName==="tr"}function Al(e,t,n){const r=Me(n,t);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const n0=xl({body:s0,colgroup:a0,head:i0,html:r0,tbody:o0});function r0(e){const t=Me(e,-1);return!t||t.type!=="comment"}function i0(e){const t=new Set;for(const r of e.children)if(r.type==="element"&&(r.tagName==="base"||r.tagName==="title")){if(t.has(r.tagName))return!1;t.add(r.tagName)}const n=e.children[0];return!n||n.type==="element"}function s0(e){const t=Me(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&Ns(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function a0(e,t,n){const r=El(n,t),i=Me(e,-1,!0);return n&&r&&r.type==="element"&&r.tagName==="colgroup"&&Ms(r,n.children.indexOf(r),n)?!1:!!(i&&i.type==="element"&&i.tagName==="col")}function o0(e,t,n){const r=El(n,t),i=Me(e,-1);return n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&Ms(r,n.children.indexOf(r),n)?!1:!!(i&&i.type==="element"&&i.tagName==="tr")}const yr={name:[[`
29
- \f\r &/=>`.split(""),`
30
- \f\r "&'/=>\``.split("")],[`\0
31
- \f\r "&'/<=>`.split(""),`\0
32
- \f\r "&'/<=>\``.split("")]],unquoted:[[`
33
- \f\r &>`.split(""),`\0
34
- \f\r "&'<=>\``.split("")],[`\0
35
- \f\r "&'<=>\``.split(""),`\0
36
- \f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function l0(e,t,n,r){const i=r.schema,s=i.space==="svg"?!1:r.settings.omitOptionalTags;let a=i.space==="svg"?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase());const o=[];let l;i.space==="html"&&e.tagName==="svg"&&(r.schema=_l);const u=u0(r,e.properties),c=r.all(i.space==="html"&&e.tagName==="template"?e.content:e);return r.schema=i,c&&(a=!1),(u||!s||!n0(e,t,n))&&(o.push("<",e.tagName,u?" "+u:""),a&&(i.space==="svg"||r.settings.closeSelfClosing)&&(l=u.charAt(u.length-1),(!r.settings.tightSelfClosing||l==="/"||l&&l!=='"'&&l!=="'")&&o.push(" "),o.push("/")),o.push(">")),o.push(c),!a&&(!s||!Ms(e,t,n))&&o.push("</"+e.tagName+">"),o.join("")}function u0(e,t){const n=[];let r=-1,i;if(t){for(i in t)if(t[i]!==null&&t[i]!==void 0){const s=c0(e,i,t[i]);s&&n.push(s)}}for(;++r<n.length;){const s=e.settings.tightAttributes?n[r].charAt(n[r].length-1):void 0;r!==n.length-1&&s!=='"'&&s!=="'"&&(n[r]+=" ")}return n.join("")}function c0(e,t,n){const r=py(e.schema,t),i=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,s=e.settings.allowDangerousCharacters?0:1;let a=e.quote,o;if(r.overloadedBoolean&&(n===r.attribute||n==="")?n=!0:(r.boolean||r.overloadedBoolean)&&(typeof n!="string"||n===r.attribute||n==="")&&(n=!!n),n==null||n===!1||typeof n=="number"&&Number.isNaN(n))return"";const l=pn(r.attribute,Object.assign({},e.settings.characterReferences,{subset:yr.name[i][s]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?jy:zy)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?l:(e.settings.preferUnquoted&&(o=pn(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:yr.unquoted[i][s]}))),o!==n&&(e.settings.quoteSmart&&ar(n,a)>ar(n,e.alternative)&&(a=e.alternative),o=a+pn(n,Object.assign({},e.settings.characterReferences,{subset:(a==="'"?yr.single:yr.double)[i][s],attribute:!0}))+a),l+(o&&"="+o))}const f0=["<","&"];function Dl(e,t,n,r){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?e.value:pn(e.value,Object.assign({},r.settings.characterReferences,{subset:f0}))}function d0(e,t,n,r){return r.settings.allowDangerousHtml?e.value:Dl(e,t,n,r)}function h0(e,t,n,r){return r.all(e)}const p0=Kp("type",{invalid:m0,unknown:g0,handlers:{comment:Ly,doctype:Fy,element:l0,raw:d0,root:h0,text:Dl}});function m0(e){throw new Error("Expected node, not `"+e+"`")}function g0(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const y0={},b0={},w0=[];function _0(e,t){const n=t||y0,r=n.quote||'"',i=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:v0,all:T0,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||ly,characterReferences:n.characterReferences||b0,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?_l:yy,quote:r,alternative:i}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function v0(e,t,n){return p0(e,t,n,this)}function T0(e){const t=[],n=e&&e.children||w0;let r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}function k0(e){const t=this,n={...t.data("settings"),...e};t.compiler=r;function r(i){return _0(i,n)}}const{entries:$l,setPrototypeOf:Cl,isFrozen:E0,getPrototypeOf:S0,getOwnPropertyDescriptor:x0}=Object;let{freeze:Ve,seal:ft,create:Ln}=Object,{apply:Ls,construct:Fs}=typeof Reflect<"u"&&Reflect;Ve||(Ve=function(t){return t}),ft||(ft=function(t){return t}),Ls||(Ls=function(t,n){for(var r=arguments.length,i=new Array(r>2?r-2:0),s=2;s<r;s++)i[s-2]=arguments[s];return t.apply(n,i)}),Fs||(Fs=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return new t(...r)});const Fn=Ye(Array.prototype.forEach),P0=Ye(Array.prototype.lastIndexOf),Ol=Ye(Array.prototype.pop),jn=Ye(Array.prototype.push),A0=Ye(Array.prototype.splice),br=Ye(String.prototype.toLowerCase),js=Ye(String.prototype.toString),zs=Ye(String.prototype.match),mn=Ye(String.prototype.replace),D0=Ye(String.prototype.indexOf),$0=Ye(String.prototype.trim),gt=Ye(Object.prototype.hasOwnProperty),We=Ye(RegExp.prototype.test),zn=C0(TypeError);function Ye(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return Ls(e,t,r)}}function C0(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Fs(e,n)}}function fe(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:br;Cl&&Cl(e,null);let r=t.length;for(;r--;){let i=t[r];if(typeof i=="string"){const s=n(i);s!==i&&(E0(t)||(t[r]=s),i=s)}e[i]=!0}return e}function O0(e){for(let t=0;t<e.length;t++)gt(e,t)||(e[t]=null);return e}function St(e){const t=Ln(null);for(const[n,r]of $l(e))gt(e,n)&&(Array.isArray(r)?t[n]=O0(r):r&&typeof r=="object"&&r.constructor===Object?t[n]=St(r):t[n]=r);return t}function Un(e,t){for(;e!==null;){const r=x0(e,t);if(r){if(r.get)return Ye(r.get);if(typeof r.value=="function")return Ye(r.value)}e=S0(e)}function n(){return null}return n}const Rl=Ve(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Us=Ve(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),qs=Ve(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),R0=Ve(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Hs=Ve(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),N0=Ve(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Nl=Ve(["#text"]),Ml=Ve(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Bs=Ve(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Il=Ve(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),wr=Ve(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),M0=ft(/\{\{[\w\W]*|[\w\W]*\}\}/gm),I0=ft(/<%[\w\W]*|[\w\W]*%>/gm),L0=ft(/\$\{[\w\W]*/gm),F0=ft(/^data-[\-\w.\u00B7-\uFFFF]+$/),j0=ft(/^aria-[\-\w]+$/),Ll=ft(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),z0=ft(/^(?:\w+script|data):/i),U0=ft(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Fl=ft(/^html$/i),q0=ft(/^[a-z][.\w]*(-[.\w]+)+$/i);var jl=Object.freeze({__proto__:null,ARIA_ATTR:j0,ATTR_WHITESPACE:U0,CUSTOM_ELEMENT:q0,DATA_ATTR:F0,DOCTYPE_NAME:Fl,ERB_EXPR:I0,IS_ALLOWED_URI:Ll,IS_SCRIPT_OR_DATA:z0,MUSTACHE_EXPR:M0,TMPLIT_EXPR:L0});const qn={element:1,text:3,progressingInstruction:7,comment:8,document:9},H0=function(){return typeof window>"u"?null:window},B0=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;const i="data-tt-policy-suffix";n&&n.hasAttribute(i)&&(r=n.getAttribute(i));const s="dompurify"+(r?"#"+r:"");try{return t.createPolicy(s,{createHTML(a){return a},createScriptURL(a){return a}})}catch{return console.warn("TrustedTypes policy "+s+" could not be created."),null}},zl=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Ul(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:H0();const t=re=>Ul(re);if(t.version="3.4.0",t.removed=[],!e||!e.document||e.document.nodeType!==qn.document||!e.Element)return t.isSupported=!1,t;let{document:n}=e;const r=n,i=r.currentScript,{DocumentFragment:s,HTMLTemplateElement:a,Node:o,Element:l,NodeFilter:u,NamedNodeMap:c=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:f,DOMParser:h,trustedTypes:d}=e,g=l.prototype,T=Un(g,"cloneNode"),y=Un(g,"remove"),m=Un(g,"nextSibling"),p=Un(g,"childNodes"),b=Un(g,"parentNode");if(typeof a=="function"){const re=n.createElement("template");re.content&&re.content.ownerDocument&&(n=re.content.ownerDocument)}let S,v="";const{implementation:w,createNodeIterator:x,createDocumentFragment:N,getElementsByTagName:F}=n,{importNode:A}=r;let O=zl();t.isSupported=typeof $l=="function"&&typeof b=="function"&&w&&w.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:U,ERB_EXPR:K,TMPLIT_EXPR:H,DATA_ATTR:j,ARIA_ATTR:B,IS_SCRIPT_OR_DATA:Z,ATTR_WHITESPACE:q,CUSTOM_ELEMENT:ee}=jl;let{IS_ALLOWED_URI:k}=jl,D=null;const I=fe({},[...Rl,...Us,...qs,...Hs,...Nl]);let _=null;const E=fe({},[...Ml,...Bs,...Il,...wr]);let P=Object.seal(Ln(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),M=null,X=null;const J=Object.seal(Ln(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let ae=!0,ne=!0,C=!1,R=!0,z=!1,G=!0,Q=!1,oe=!1,Se=!1,Oe=!1,Pe=!1,Ae=!1,De=!0,_t=!1;const Ue="user-content-";let Lt=!0,vt=!1,L={},V=null;const se=fe({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let ue=null;const ge=fe({},["audio","video","img","source","image","track"]);let Xe=null;const Pt=fe({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),nt="http://www.w3.org/1998/Math/MathML",At="http://www.w3.org/2000/svg",qe="http://www.w3.org/1999/xhtml";let Re=qe,Dt=!1,lt=null;const dk=fe({},[nt,At,qe],js);let Wi=fe({},["mi","mo","mn","ms","mtext"]),Yi=fe({},["annotation-xml"]);const hk=fe({},["title","style","font","a","script"]);let Qn=null;const pk=["application/xhtml+xml","text/html"],mk="text/html";let Ie=null,Pn=null;const gk=n.createElement("form"),$f=function($){return $ instanceof RegExp||$ instanceof Function},Na=function(){let $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Pn&&Pn===$)){if((!$||typeof $!="object")&&($={}),$=St($),Qn=pk.indexOf($.PARSER_MEDIA_TYPE)===-1?mk:$.PARSER_MEDIA_TYPE,Ie=Qn==="application/xhtml+xml"?js:br,D=gt($,"ALLOWED_TAGS")?fe({},$.ALLOWED_TAGS,Ie):I,_=gt($,"ALLOWED_ATTR")?fe({},$.ALLOWED_ATTR,Ie):E,lt=gt($,"ALLOWED_NAMESPACES")?fe({},$.ALLOWED_NAMESPACES,js):dk,Xe=gt($,"ADD_URI_SAFE_ATTR")?fe(St(Pt),$.ADD_URI_SAFE_ATTR,Ie):Pt,ue=gt($,"ADD_DATA_URI_TAGS")?fe(St(ge),$.ADD_DATA_URI_TAGS,Ie):ge,V=gt($,"FORBID_CONTENTS")?fe({},$.FORBID_CONTENTS,Ie):se,M=gt($,"FORBID_TAGS")?fe({},$.FORBID_TAGS,Ie):St({}),X=gt($,"FORBID_ATTR")?fe({},$.FORBID_ATTR,Ie):St({}),L=gt($,"USE_PROFILES")?$.USE_PROFILES:!1,ae=$.ALLOW_ARIA_ATTR!==!1,ne=$.ALLOW_DATA_ATTR!==!1,C=$.ALLOW_UNKNOWN_PROTOCOLS||!1,R=$.ALLOW_SELF_CLOSE_IN_ATTR!==!1,z=$.SAFE_FOR_TEMPLATES||!1,G=$.SAFE_FOR_XML!==!1,Q=$.WHOLE_DOCUMENT||!1,Oe=$.RETURN_DOM||!1,Pe=$.RETURN_DOM_FRAGMENT||!1,Ae=$.RETURN_TRUSTED_TYPE||!1,Se=$.FORCE_BODY||!1,De=$.SANITIZE_DOM!==!1,_t=$.SANITIZE_NAMED_PROPS||!1,Lt=$.KEEP_CONTENT!==!1,vt=$.IN_PLACE||!1,k=$.ALLOWED_URI_REGEXP||Ll,Re=$.NAMESPACE||qe,Wi=$.MATHML_TEXT_INTEGRATION_POINTS||Wi,Yi=$.HTML_INTEGRATION_POINTS||Yi,P=$.CUSTOM_ELEMENT_HANDLING||Ln(null),$.CUSTOM_ELEMENT_HANDLING&&$f($.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(P.tagNameCheck=$.CUSTOM_ELEMENT_HANDLING.tagNameCheck),$.CUSTOM_ELEMENT_HANDLING&&$f($.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(P.attributeNameCheck=$.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),$.CUSTOM_ELEMENT_HANDLING&&typeof $.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(P.allowCustomizedBuiltInElements=$.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),z&&(ne=!1),Pe&&(Oe=!0),L&&(D=fe({},Nl),_=Ln(null),L.html===!0&&(fe(D,Rl),fe(_,Ml)),L.svg===!0&&(fe(D,Us),fe(_,Bs),fe(_,wr)),L.svgFilters===!0&&(fe(D,qs),fe(_,Bs),fe(_,wr)),L.mathMl===!0&&(fe(D,Hs),fe(_,Il),fe(_,wr))),J.tagCheck=null,J.attributeCheck=null,$.ADD_TAGS&&(typeof $.ADD_TAGS=="function"?J.tagCheck=$.ADD_TAGS:(D===I&&(D=St(D)),fe(D,$.ADD_TAGS,Ie))),$.ADD_ATTR&&(typeof $.ADD_ATTR=="function"?J.attributeCheck=$.ADD_ATTR:(_===E&&(_=St(_)),fe(_,$.ADD_ATTR,Ie))),$.ADD_URI_SAFE_ATTR&&fe(Xe,$.ADD_URI_SAFE_ATTR,Ie),$.FORBID_CONTENTS&&(V===se&&(V=St(V)),fe(V,$.FORBID_CONTENTS,Ie)),$.ADD_FORBID_CONTENTS&&(V===se&&(V=St(V)),fe(V,$.ADD_FORBID_CONTENTS,Ie)),Lt&&(D["#text"]=!0),Q&&fe(D,["html","head","body"]),D.table&&(fe(D,["tbody"]),delete M.tbody),$.TRUSTED_TYPES_POLICY){if(typeof $.TRUSTED_TYPES_POLICY.createHTML!="function")throw zn('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof $.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw zn('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');S=$.TRUSTED_TYPES_POLICY,v=S.createHTML("")}else S===void 0&&(S=B0(d,i)),S!==null&&typeof v=="string"&&(v=S.createHTML(""));Ve&&Ve($),Pn=$}},Cf=fe({},[...Us,...qs,...R0]),Of=fe({},[...Hs,...N0]),yk=function($){let W=b($);(!W||!W.tagName)&&(W={namespaceURI:Re,tagName:"template"});const te=br($.tagName),xe=br(W.tagName);return lt[$.namespaceURI]?$.namespaceURI===At?W.namespaceURI===qe?te==="svg":W.namespaceURI===nt?te==="svg"&&(xe==="annotation-xml"||Wi[xe]):!!Cf[te]:$.namespaceURI===nt?W.namespaceURI===qe?te==="math":W.namespaceURI===At?te==="math"&&Yi[xe]:!!Of[te]:$.namespaceURI===qe?W.namespaceURI===At&&!Yi[xe]||W.namespaceURI===nt&&!Wi[xe]?!1:!Of[te]&&(hk[te]||!Cf[te]):!!(Qn==="application/xhtml+xml"&&lt[$.namespaceURI]):!1},Tt=function($){jn(t.removed,{element:$});try{b($).removeChild($)}catch{y($)}},an=function($,W){try{jn(t.removed,{attribute:W.getAttributeNode($),from:W})}catch{jn(t.removed,{attribute:null,from:W})}if(W.removeAttribute($),$==="is")if(Oe||Pe)try{Tt(W)}catch{}else try{W.setAttribute($,"")}catch{}},Rf=function($){let W=null,te=null;if(Se)$="<remove></remove>"+$;else{const Ne=zs($,/^[\r\n\t ]+/);te=Ne&&Ne[0]}Qn==="application/xhtml+xml"&&Re===qe&&($='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+$+"</body></html>");const xe=S?S.createHTML($):$;if(Re===qe)try{W=new h().parseFromString(xe,Qn)}catch{}if(!W||!W.documentElement){W=w.createDocument(Re,"template",null);try{W.documentElement.innerHTML=Dt?v:xe}catch{}}const He=W.body||W.documentElement;return $&&te&&He.insertBefore(n.createTextNode(te),He.childNodes[0]||null),Re===qe?F.call(W,Q?"html":"body")[0]:Q?W.documentElement:He},Nf=function($){return x.call($.ownerDocument||$,$,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Ma=function($){return $ instanceof f&&(typeof $.nodeName!="string"||typeof $.textContent!="string"||typeof $.removeChild!="function"||!($.attributes instanceof c)||typeof $.removeAttribute!="function"||typeof $.setAttribute!="function"||typeof $.namespaceURI!="string"||typeof $.insertBefore!="function"||typeof $.hasChildNodes!="function")},Ia=function($){return typeof o=="function"&&$ instanceof o};function Ft(re,$,W){Fn(re,te=>{te.call(t,$,W,Pn)})}const Mf=function($){let W=null;if(Ft(O.beforeSanitizeElements,$,null),Ma($))return Tt($),!0;const te=Ie($.nodeName);if(Ft(O.uponSanitizeElement,$,{tagName:te,allowedTags:D}),G&&$.hasChildNodes()&&!Ia($.firstElementChild)&&We(/<[/\w!]/g,$.innerHTML)&&We(/<[/\w!]/g,$.textContent)||G&&$.namespaceURI===qe&&te==="style"&&Ia($.firstElementChild)||$.nodeType===qn.progressingInstruction||G&&$.nodeType===qn.comment&&We(/<[/\w]/g,$.data))return Tt($),!0;if(M[te]||!(J.tagCheck instanceof Function&&J.tagCheck(te))&&!D[te]){if(!M[te]&&Lf(te)&&(P.tagNameCheck instanceof RegExp&&We(P.tagNameCheck,te)||P.tagNameCheck instanceof Function&&P.tagNameCheck(te)))return!1;if(Lt&&!V[te]){const xe=b($)||$.parentNode,He=p($)||$.childNodes;if(He&&xe){const Ne=He.length;for(let rt=Ne-1;rt>=0;--rt){const ut=T(He[rt],!0);ut.__removalCount=($.__removalCount||0)+1,xe.insertBefore(ut,m($))}}}return Tt($),!0}return $ instanceof l&&!yk($)||(te==="noscript"||te==="noembed"||te==="noframes")&&We(/<\/no(script|embed|frames)/i,$.innerHTML)?(Tt($),!0):(z&&$.nodeType===qn.text&&(W=$.textContent,Fn([U,K,H],xe=>{W=mn(W,xe," ")}),$.textContent!==W&&(jn(t.removed,{element:$.cloneNode()}),$.textContent=W)),Ft(O.afterSanitizeElements,$,null),!1)},If=function($,W,te){if(X[W]||De&&(W==="id"||W==="name")&&(te in n||te in gk))return!1;if(!(ne&&!X[W]&&We(j,W))){if(!(ae&&We(B,W))){if(!(J.attributeCheck instanceof Function&&J.attributeCheck(W,$))){if(!_[W]||X[W]){if(!(Lf($)&&(P.tagNameCheck instanceof RegExp&&We(P.tagNameCheck,$)||P.tagNameCheck instanceof Function&&P.tagNameCheck($))&&(P.attributeNameCheck instanceof RegExp&&We(P.attributeNameCheck,W)||P.attributeNameCheck instanceof Function&&P.attributeNameCheck(W,$))||W==="is"&&P.allowCustomizedBuiltInElements&&(P.tagNameCheck instanceof RegExp&&We(P.tagNameCheck,te)||P.tagNameCheck instanceof Function&&P.tagNameCheck(te))))return!1}else if(!Xe[W]){if(!We(k,mn(te,q,""))){if(!((W==="src"||W==="xlink:href"||W==="href")&&$!=="script"&&D0(te,"data:")===0&&ue[$])){if(!(C&&!We(Z,mn(te,q,"")))){if(te)return!1}}}}}}}return!0},Lf=function($){return $!=="annotation-xml"&&zs($,ee)},Ff=function($){Ft(O.beforeSanitizeAttributes,$,null);const{attributes:W}=$;if(!W||Ma($))return;const te={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:_,forceKeepAttr:void 0};let xe=W.length;for(;xe--;){const He=W[xe],{name:Ne,namespaceURI:rt,value:ut}=He,Wt=Ie(Ne),La=ut;let je=Ne==="value"?La:$0(La);if(te.attrName=Wt,te.attrValue=je,te.keepAttr=!0,te.forceKeepAttr=void 0,Ft(O.uponSanitizeAttribute,$,te),je=te.attrValue,_t&&(Wt==="id"||Wt==="name")&&(an(Ne,$),je=Ue+je),G&&We(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,je)){an(Ne,$);continue}if(Wt==="attributename"&&zs(je,"href")){an(Ne,$);continue}if(te.forceKeepAttr)continue;if(!te.keepAttr){an(Ne,$);continue}if(!R&&We(/\/>/i,je)){an(Ne,$);continue}z&&Fn([U,K,H],Uf=>{je=mn(je,Uf," ")});const zf=Ie($.nodeName);if(!If(zf,Wt,je)){an(Ne,$);continue}if(S&&typeof d=="object"&&typeof d.getAttributeType=="function"&&!rt)switch(d.getAttributeType(zf,Wt)){case"TrustedHTML":{je=S.createHTML(je);break}case"TrustedScriptURL":{je=S.createScriptURL(je);break}}if(je!==La)try{rt?$.setAttributeNS(rt,Ne,je):$.setAttribute(Ne,je),Ma($)?Tt($):Ol(t.removed)}catch{an(Ne,$)}}Ft(O.afterSanitizeAttributes,$,null)},jf=function($){let W=null;const te=Nf($);for(Ft(O.beforeSanitizeShadowDOM,$,null);W=te.nextNode();)Ft(O.uponSanitizeShadowNode,W,null),Mf(W),Ff(W),W.content instanceof s&&jf(W.content);Ft(O.afterSanitizeShadowDOM,$,null)};return t.sanitize=function(re){let $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},W=null,te=null,xe=null,He=null;if(Dt=!re,Dt&&(re="<!-->"),typeof re!="string"&&!Ia(re))if(typeof re.toString=="function"){if(re=re.toString(),typeof re!="string")throw zn("dirty is not a string, aborting")}else throw zn("toString is not a function");if(!t.isSupported)return re;if(oe||Na($),t.removed=[],typeof re=="string"&&(vt=!1),vt){if(re.nodeName){const ut=Ie(re.nodeName);if(!D[ut]||M[ut])throw zn("root node is forbidden and cannot be sanitized in-place")}}else if(re instanceof o)W=Rf("<!---->"),te=W.ownerDocument.importNode(re,!0),te.nodeType===qn.element&&te.nodeName==="BODY"||te.nodeName==="HTML"?W=te:W.appendChild(te);else{if(!Oe&&!z&&!Q&&re.indexOf("<")===-1)return S&&Ae?S.createHTML(re):re;if(W=Rf(re),!W)return Oe?null:Ae?v:""}W&&Se&&Tt(W.firstChild);const Ne=Nf(vt?re:W);for(;xe=Ne.nextNode();)Mf(xe),Ff(xe),xe.content instanceof s&&jf(xe.content);if(vt)return re;if(Oe){if(z){W.normalize();let ut=W.innerHTML;Fn([U,K,H],Wt=>{ut=mn(ut,Wt," ")}),W.innerHTML=ut}if(Pe)for(He=N.call(W.ownerDocument);W.firstChild;)He.appendChild(W.firstChild);else He=W;return(_.shadowroot||_.shadowrootmode)&&(He=A.call(r,He,!0)),He}let rt=Q?W.outerHTML:W.innerHTML;return Q&&D["!doctype"]&&W.ownerDocument&&W.ownerDocument.doctype&&W.ownerDocument.doctype.name&&We(Fl,W.ownerDocument.doctype.name)&&(rt="<!DOCTYPE "+W.ownerDocument.doctype.name+`>
37
- `+rt),z&&Fn([U,K,H],ut=>{rt=mn(rt,ut," ")}),S&&Ae?S.createHTML(rt):rt},t.setConfig=function(){let re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Na(re),oe=!0},t.clearConfig=function(){Pn=null,oe=!1},t.isValidAttribute=function(re,$,W){Pn||Na({});const te=Ie(re),xe=Ie($);return If(te,xe,W)},t.addHook=function(re,$){typeof $=="function"&&jn(O[re],$)},t.removeHook=function(re,$){if($!==void 0){const W=P0(O[re],$);return W===-1?void 0:A0(O[re],W,1)[0]}return Ol(O[re])},t.removeHooks=function(re){O[re]=[]},t.removeAllHooks=function(){O=zl()},t}var V0=Ul();async function ql(e){const t=await ad().use(np).use(_g).use(oy,{allowDangerousHtml:!0}).use(k0,{allowDangerousHtml:!0}).process(e),n=String(t);return V0.sanitize(n)}let Zt=null;const W0={userInputContainer:"user-input-container",userInput:"user-input",submitIcon:"submit-icon",stopIcon:"stop-icon",messagesContainer:"messages-container",createButton:"create-button"};function Y0(e){if(Zt)return Zt;Zt={},Zt.root=e;for(const[t,n]of Object.entries(W0)){const r=e.getElementById(n);r||console.warn(`Element with id '${n}' not found`),Zt[t]=r}return Zt}function Ge(){return Zt}class G0{#n={copyButton:null,initCopyButton(){if(!this.copyButton){const t=document.createElement("template");t.innerHTML=`
38
- <div class="button-container">
39
- <button class="icon square plain tooltip" type="button" data-action="copy" aria-label="复制">
40
- <svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 1024 1024"><path d="M298.667 256V128a42.667 42.667 0 0 1 42.666-42.667h512A42.667 42.667 0 0 1 896 128v597.333A42.667 42.667 0 0 1 853.333 768h-128v128c0 23.552-19.2 42.667-42.965 42.667H170.965A42.71 42.71 0 0 1 128 896l.128-597.333c0-23.552 19.2-42.667 42.923-42.667h127.616zm-85.248 85.333-.086 512H640v-512H213.419zM384 256h341.333v426.667h85.334v-512H384V256z"/></svg>
41
- <span class="copied-text">Copied</span>
42
- <span class="tooltip-text">复制</span>
43
- </button>
44
- </div>
45
- `,this.copyButton=t}return this.copyButton},reasoningContainer:null,initReasoningContainer(){if(!this.reasoningContainer){const t=document.createElement("template");t.innerHTML=`
46
- <div class="reasoning-container collapse">
47
- <div class="reasoning-header">
48
- <svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 1024 1024"><path d="M724.48 521.728c-1.8432 7.7824-5.7344 14.848-11.3664 20.48l-341.9136 342.016c-16.6912 16.6912-43.7248 16.6912-60.3136 0s-16.6912-43.7248 0-60.3136L622.6944 512 310.8864 200.0896c-16.6912-16.6912-16.6912-43.7248 0-60.3136 16.6912-16.6912 43.7248-16.6912 60.3136 0l341.9136 341.9136c10.8544 10.8544 14.6432 26.112 11.3664 40.0384z" fill="currentColor"/></svg>
49
- 思考过程
50
- </div>
51
- <div class="reasoning-content"></div>
52
- </div>
53
- `,this.reasoningContainer=t}return this.reasoningContainer}};#r=0;#t=null;#e=null;createCopyButton(t){const i=this.#n.initCopyButton().content.cloneNode(!0).firstElementChild;if(!i)return null;const s=i.querySelector(".tooltip-text");return s&&s.classList.add(t.role==="user"?"bottom-left":"bottom-right"),i}createMessage(t){const n=document.createElement("div"),r=document.createElement("div");r.className="body-container",n.appendChild(r);const i=document.createElement("div");i.className="content-container",r.appendChild(i);const s=this.createCopyButton(t);return s&&n.appendChild(s),n}updateMessageContent(t,n){const r=t.querySelector(".content-container");r&&requestAnimationFrame(async()=>{const i=await ql(n);r.innerHTML=i})}pushMessage=t=>{if(!t)return;const{messagesContainer:n}=Ge(),{role:r,content:i}=t,s=this.createMessage(t);s.className=`message ${r}`,this.updateMessageContent(s,i),n.appendChild(s),r==="user"&&n.scrollTo({top:s.offsetTop-12,behavior:"smooth"})};pushMessages=t=>{if(t.length)for(const n of t)this.pushMessage(n)};pushLoadingMessage=()=>{const{messagesContainer:t}=Ge();requestAnimationFrame(()=>{if(t.querySelector(".message.assistant.loading"))return;const n=this.createMessage({role:"assistant",content:""});n.className="message assistant loading";const r=n.querySelector(".body-container");if(!r)return;const i=document.createElement("p");i.className="loading-dots",r.appendChild(i),t.appendChild(n)})};finishLoadingMessage=()=>{const{messagesContainer:t}=Ge();requestAnimationFrame(()=>{const n=t.querySelector(".message.assistant.loading");if(!n)return;n.classList.remove("loading"),n.querySelector(".loading-dots")?.remove()})};updateLoadingMessageContent=t=>{const{messagesContainer:n}=Ge(),r=n.querySelector(".message.assistant.loading");r&&this.updateMessageContent(r,t)};updateLoadingMessageReasoningContent=t=>{const{messagesContainer:n}=Ge(),r=n.querySelector(".message.assistant.loading");if(!r)return;if(!r.querySelector(".reasoning-container")){const o=this.#n.initReasoningContainer().content.cloneNode(!0).firstElementChild;if(!o)return;r.prepend(o)}const i=r.querySelector(".reasoning-content");i&&requestAnimationFrame(async()=>{const s=await ql(t);i.innerHTML=s})};clear(){const t=Ge();t.messagesContainer.innerHTML=""}setPaddingBottom(){this.#e&&(this.#e.disconnect(),this.#e=null);const{root:t,messagesContainer:n}=Ge(),r=t.querySelector(".app-container");if(!r)return;const i=12,s=142,a=12;this.#e=new ResizeObserver(o=>{for(const l of o){const{height:u}=l.contentRect;u!==this.#r&&(this.#r=u,this.#t!==null&&cancelAnimationFrame(this.#t),this.#t=requestAnimationFrame(()=>{n.style.paddingBottom=`${u-i-s-a*2}px`,this.#t=null}))}}),this.#e.observe(r)}}const Ut={get value(){return Ge().userInput.value.trim()},setValue(e){const t=Ge();t.userInput.value=e},clear(){const e=Ge();e.userInput.value=""},focus(){Ge().userInput.focus()}},Vs={default(){const{submitIcon:e,stopIcon:t}=Ge();e.style.display="flex",t.style.display="none"},chatting(){const{submitIcon:e,stopIcon:t}=Ge();e.style.display="none",t.style.display="flex"}},K0={show(e){const{root:t}=Ge(),n=t.querySelector(".alert");n&&n.remove();const r=document.createElement("div");r.className="alert",r.textContent=e,t.appendChild(r),r.addEventListener("animationend",()=>{r.remove()})}},at=new G0;var _r={exports:{}},Ws={},Ct={},Jt={},Ys={},Gs={},Ks={},Hl;function vr(){return Hl||(Hl=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 n extends t{constructor(p){if(super(),!e.IDENTIFIER.test(p))throw new Error("CodeGen: name must be a valid identifier");this.str=p}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=n;class r extends t{constructor(p){super(),this._items=typeof p=="string"?[p]:p}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const p=this._items[0];return p===""||p==='""'}get str(){var p;return(p=this._str)!==null&&p!==void 0?p:this._str=this._items.reduce((b,S)=>`${b}${S}`,"")}get names(){var p;return(p=this._names)!==null&&p!==void 0?p:this._names=this._items.reduce((b,S)=>(S instanceof n&&(b[S.str]=(b[S.str]||0)+1),b),{})}}e._Code=r,e.nil=new r("");function i(m,...p){const b=[m[0]];let S=0;for(;S<p.length;)o(b,p[S]),b.push(m[++S]);return new r(b)}e._=i;const s=new r("+");function a(m,...p){const b=[d(m[0])];let S=0;for(;S<p.length;)b.push(s),o(b,p[S]),b.push(s,d(m[++S]));return l(b),new r(b)}e.str=a;function o(m,p){p instanceof r?m.push(...p._items):p instanceof n?m.push(p):m.push(f(p))}e.addCodeArg=o;function l(m){let p=1;for(;p<m.length-1;){if(m[p]===s){const b=u(m[p-1],m[p+1]);if(b!==void 0){m.splice(p-1,3,b);continue}m[p++]="+"}p++}}function u(m,p){if(p==='""')return m;if(m==='""')return p;if(typeof m=="string")return p instanceof n||m[m.length-1]!=='"'?void 0:typeof p!="string"?`${m.slice(0,-1)}${p}"`:p[0]==='"'?m.slice(0,-1)+p.slice(1):void 0;if(typeof p=="string"&&p[0]==='"'&&!(m instanceof n))return`"${m}${p.slice(1)}`}function c(m,p){return p.emptyStr()?m:m.emptyStr()?p:a`${m}${p}`}e.strConcat=c;function f(m){return typeof m=="number"||typeof m=="boolean"||m===null?m:d(Array.isArray(m)?m.join(","):m)}function h(m){return new r(d(m))}e.stringify=h;function d(m){return JSON.stringify(m).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.safeStringify=d;function g(m){return typeof m=="string"&&e.IDENTIFIER.test(m)?new r(`.${m}`):i`[${m}]`}e.getProperty=g;function T(m){if(typeof m=="string"&&e.IDENTIFIER.test(m))return new r(`${m}`);throw new Error(`CodeGen: invalid export name: ${m}, use explicit $id name mapping`)}e.getEsmExportName=T;function y(m){return new r(m.toString())}e.regexpCode=y})(Ks)),Ks}var Zs={},Bl;function Vl(){return Bl||(Bl=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=vr();class n extends Error{constructor(u){super(`CodeGen: "code" for ${u} not defined`),this.value=u.value}}var r;(function(l){l[l.Started=0]="Started",l[l.Completed=1]="Completed"})(r||(e.UsedValueState=r={})),e.varKinds={const:new t.Name("const"),let:new t.Name("let"),var:new t.Name("var")};class i{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=i;class s 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=s;const a=(0,t._)`\n`;class o extends i{constructor(u){super(u),this._values={},this._scope=u.scope,this.opts={...u,_n:u.lines?a:t.nil}}get(){return this._scope}name(u){return new s(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 h=this.toName(u),{prefix:d}=h,g=(f=c.key)!==null&&f!==void 0?f:c.ref;let T=this._values[d];if(T){const p=T.get(g);if(p)return p}else T=this._values[d]=new Map;T.set(g,h);const y=this._scope[d]||(this._scope[d]=[]),m=y.length;return y[m]=c.ref,h.setValue(c,{property:d,itemIndex:m}),h}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,h=>{if(h.value===void 0)throw new Error(`CodeGen: name "${h}" has no value`);return h.value.code},c,f)}_reduceValues(u,c,f={},h){let d=t.nil;for(const g in u){const T=u[g];if(!T)continue;const y=f[g]=f[g]||new Map;T.forEach(m=>{if(y.has(m))return;y.set(m,r.Started);let p=c(m);if(p){const b=this.opts.es5?e.varKinds.var:e.varKinds.const;d=(0,t._)`${d}${b} ${m} = ${p};${this.opts._n}`}else if(p=h?.(m))d=(0,t._)`${d}${p}${this.opts._n}`;else throw new n(m);y.set(m,r.Completed)})}return d}}e.ValueScope=o})(Zs)),Zs}var Wl;function he(){return Wl||(Wl=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=vr(),n=Vl();var r=vr();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return r._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return r.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return r.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return r.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return r.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return r.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return r.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return r.Name}});var i=Vl();Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return i.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return i.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return i.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return i.varKinds}}),e.operators={GT:new t._Code(">"),GTE:new t._Code(">="),LT:new t._Code("<"),LTE:new t._Code("<="),EQ:new t._Code("==="),NEQ:new t._Code("!=="),NOT:new t._Code("!"),OR:new t._Code("||"),AND:new t._Code("&&"),ADD:new t._Code("+")};class s{optimizeNodes(){return this}optimizeNames(E,P){return this}}class a extends s{constructor(E,P,M){super(),this.varKind=E,this.name=P,this.rhs=M}render({es5:E,_n:P}){const M=E?n.varKinds.var:this.varKind,X=this.rhs===void 0?"":` = ${this.rhs}`;return`${M} ${this.name}${X};`+P}optimizeNames(E,P){if(E[this.name.str])return this.rhs&&(this.rhs=H(this.rhs,E,P)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class o extends s{constructor(E,P,M){super(),this.lhs=E,this.rhs=P,this.sideEffects=M}render({_n:E}){return`${this.lhs} = ${this.rhs};`+E}optimizeNames(E,P){if(!(this.lhs instanceof t.Name&&!E[this.lhs.str]&&!this.sideEffects))return this.rhs=H(this.rhs,E,P),this}get names(){const E=this.lhs instanceof t.Name?{}:{...this.lhs.names};return K(E,this.rhs)}}class l extends o{constructor(E,P,M,X){super(E,M,X),this.op=P}render({_n:E}){return`${this.lhs} ${this.op}= ${this.rhs};`+E}}class u extends s{constructor(E){super(),this.label=E,this.names={}}render({_n:E}){return`${this.label}:`+E}}class c extends s{constructor(E){super(),this.label=E,this.names={}}render({_n:E}){return`break${this.label?` ${this.label}`:""};`+E}}class f extends s{constructor(E){super(),this.error=E}render({_n:E}){return`throw ${this.error};`+E}get names(){return this.error.names}}class h extends s{constructor(E){super(),this.code=E}render({_n:E}){return`${this.code};`+E}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(E,P){return this.code=H(this.code,E,P),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class d extends s{constructor(E=[]){super(),this.nodes=E}render(E){return this.nodes.reduce((P,M)=>P+M.render(E),"")}optimizeNodes(){const{nodes:E}=this;let P=E.length;for(;P--;){const M=E[P].optimizeNodes();Array.isArray(M)?E.splice(P,1,...M):M?E[P]=M:E.splice(P,1)}return E.length>0?this:void 0}optimizeNames(E,P){const{nodes:M}=this;let X=M.length;for(;X--;){const J=M[X];J.optimizeNames(E,P)||(j(E,J.names),M.splice(X,1))}return M.length>0?this:void 0}get names(){return this.nodes.reduce((E,P)=>U(E,P.names),{})}}class g extends d{render(E){return"{"+E._n+super.render(E)+"}"+E._n}}class T extends d{}class y extends g{}y.kind="else";class m extends g{constructor(E,P){super(P),this.condition=E}render(E){let P=`if(${this.condition})`+super.render(E);return this.else&&(P+="else "+this.else.render(E)),P}optimizeNodes(){super.optimizeNodes();const E=this.condition;if(E===!0)return this.nodes;let P=this.else;if(P){const M=P.optimizeNodes();P=this.else=Array.isArray(M)?new y(M):M}if(P)return E===!1?P instanceof m?P:P.nodes:this.nodes.length?this:new m(B(E),P instanceof m?[P]:P.nodes);if(!(E===!1||!this.nodes.length))return this}optimizeNames(E,P){var M;if(this.else=(M=this.else)===null||M===void 0?void 0:M.optimizeNames(E,P),!!(super.optimizeNames(E,P)||this.else))return this.condition=H(this.condition,E,P),this}get names(){const E=super.names;return K(E,this.condition),this.else&&U(E,this.else.names),E}}m.kind="if";class p extends g{}p.kind="for";class b extends p{constructor(E){super(),this.iteration=E}render(E){return`for(${this.iteration})`+super.render(E)}optimizeNames(E,P){if(super.optimizeNames(E,P))return this.iteration=H(this.iteration,E,P),this}get names(){return U(super.names,this.iteration.names)}}class S extends p{constructor(E,P,M,X){super(),this.varKind=E,this.name=P,this.from=M,this.to=X}render(E){const P=E.es5?n.varKinds.var:this.varKind,{name:M,from:X,to:J}=this;return`for(${P} ${M}=${X}; ${M}<${J}; ${M}++)`+super.render(E)}get names(){const E=K(super.names,this.from);return K(E,this.to)}}class v extends p{constructor(E,P,M,X){super(),this.loop=E,this.varKind=P,this.name=M,this.iterable=X}render(E){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(E)}optimizeNames(E,P){if(super.optimizeNames(E,P))return this.iterable=H(this.iterable,E,P),this}get names(){return U(super.names,this.iterable.names)}}class w extends g{constructor(E,P,M){super(),this.name=E,this.args=P,this.async=M}render(E){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(E)}}w.kind="func";class x extends d{render(E){return"return "+super.render(E)}}x.kind="return";class N extends g{render(E){let P="try"+super.render(E);return this.catch&&(P+=this.catch.render(E)),this.finally&&(P+=this.finally.render(E)),P}optimizeNodes(){var E,P;return super.optimizeNodes(),(E=this.catch)===null||E===void 0||E.optimizeNodes(),(P=this.finally)===null||P===void 0||P.optimizeNodes(),this}optimizeNames(E,P){var M,X;return super.optimizeNames(E,P),(M=this.catch)===null||M===void 0||M.optimizeNames(E,P),(X=this.finally)===null||X===void 0||X.optimizeNames(E,P),this}get names(){const E=super.names;return this.catch&&U(E,this.catch.names),this.finally&&U(E,this.finally.names),E}}class F extends g{constructor(E){super(),this.error=E}render(E){return`catch(${this.error})`+super.render(E)}}F.kind="catch";class A extends g{render(E){return"finally"+super.render(E)}}A.kind="finally";class O{constructor(E,P={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...P,_n:P.lines?`
54
- `:""},this._extScope=E,this._scope=new n.Scope({parent:E}),this._nodes=[new T]}toString(){return this._root.render(this.opts)}name(E){return this._scope.name(E)}scopeName(E){return this._extScope.name(E)}scopeValue(E,P){const M=this._extScope.value(E,P);return(this._values[M.prefix]||(this._values[M.prefix]=new Set)).add(M),M}getScopeValue(E,P){return this._extScope.getValue(E,P)}scopeRefs(E){return this._extScope.scopeRefs(E,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(E,P,M,X){const J=this._scope.toName(P);return M!==void 0&&X&&(this._constants[J.str]=M),this._leafNode(new a(E,J,M)),J}const(E,P,M){return this._def(n.varKinds.const,E,P,M)}let(E,P,M){return this._def(n.varKinds.let,E,P,M)}var(E,P,M){return this._def(n.varKinds.var,E,P,M)}assign(E,P,M){return this._leafNode(new o(E,P,M))}add(E,P){return this._leafNode(new l(E,e.operators.ADD,P))}code(E){return typeof E=="function"?E():E!==t.nil&&this._leafNode(new h(E)),this}object(...E){const P=["{"];for(const[M,X]of E)P.length>1&&P.push(","),P.push(M),(M!==X||this.opts.es5)&&(P.push(":"),(0,t.addCodeArg)(P,X));return P.push("}"),new t._Code(P)}if(E,P,M){if(this._blockNode(new m(E)),P&&M)this.code(P).else().code(M).endIf();else if(P)this.code(P).endIf();else if(M)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(E){return this._elseNode(new m(E))}else(){return this._elseNode(new y)}endIf(){return this._endBlockNode(m,y)}_for(E,P){return this._blockNode(E),P&&this.code(P).endFor(),this}for(E,P){return this._for(new b(E),P)}forRange(E,P,M,X,J=this.opts.es5?n.varKinds.var:n.varKinds.let){const ae=this._scope.toName(E);return this._for(new S(J,ae,P,M),()=>X(ae))}forOf(E,P,M,X=n.varKinds.const){const J=this._scope.toName(E);if(this.opts.es5){const ae=P instanceof t.Name?P:this.var("_arr",P);return this.forRange("_i",0,(0,t._)`${ae}.length`,ne=>{this.var(J,(0,t._)`${ae}[${ne}]`),M(J)})}return this._for(new v("of",X,J,P),()=>M(J))}forIn(E,P,M,X=this.opts.es5?n.varKinds.var:n.varKinds.const){if(this.opts.ownProperties)return this.forOf(E,(0,t._)`Object.keys(${P})`,M);const J=this._scope.toName(E);return this._for(new v("in",X,J,P),()=>M(J))}endFor(){return this._endBlockNode(p)}label(E){return this._leafNode(new u(E))}break(E){return this._leafNode(new c(E))}return(E){const P=new x;if(this._blockNode(P),this.code(E),P.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(x)}try(E,P,M){if(!P&&!M)throw new Error('CodeGen: "try" without "catch" and "finally"');const X=new N;if(this._blockNode(X),this.code(E),P){const J=this.name("e");this._currNode=X.catch=new F(J),P(J)}return M&&(this._currNode=X.finally=new A,this.code(M)),this._endBlockNode(F,A)}throw(E){return this._leafNode(new f(E))}block(E,P){return this._blockStarts.push(this._nodes.length),E&&this.code(E).endBlock(P),this}endBlock(E){const P=this._blockStarts.pop();if(P===void 0)throw new Error("CodeGen: not in self-balancing block");const M=this._nodes.length-P;if(M<0||E!==void 0&&M!==E)throw new Error(`CodeGen: wrong number of nodes: ${M} vs ${E} expected`);return this._nodes.length=P,this}func(E,P=t.nil,M,X){return this._blockNode(new w(E,P,M)),X&&this.code(X).endFunc(),this}endFunc(){return this._endBlockNode(w)}optimize(E=1){for(;E-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(E){return this._currNode.nodes.push(E),this}_blockNode(E){this._currNode.nodes.push(E),this._nodes.push(E)}_endBlockNode(E,P){const M=this._currNode;if(M instanceof E||P&&M instanceof P)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${P?`${E.kind}/${P.kind}`:E.kind}"`)}_elseNode(E){const P=this._currNode;if(!(P instanceof m))throw new Error('CodeGen: "else" without "if"');return this._currNode=P.else=E,this}get _root(){return this._nodes[0]}get _currNode(){const E=this._nodes;return E[E.length-1]}set _currNode(E){const P=this._nodes;P[P.length-1]=E}}e.CodeGen=O;function U(_,E){for(const P in E)_[P]=(_[P]||0)+(E[P]||0);return _}function K(_,E){return E instanceof t._CodeOrName?U(_,E.names):_}function H(_,E,P){if(_ instanceof t.Name)return M(_);if(!X(_))return _;return new t._Code(_._items.reduce((J,ae)=>(ae instanceof t.Name&&(ae=M(ae)),ae instanceof t._Code?J.push(...ae._items):J.push(ae),J),[]));function M(J){const ae=P[J.str];return ae===void 0||E[J.str]!==1?J:(delete E[J.str],ae)}function X(J){return J instanceof t._Code&&J._items.some(ae=>ae instanceof t.Name&&E[ae.str]===1&&P[ae.str]!==void 0)}}function j(_,E){for(const P in E)_[P]=(_[P]||0)-(E[P]||0)}function B(_){return typeof _=="boolean"||typeof _=="number"||_===null?!_:(0,t._)`!${I(_)}`}e.not=B;const Z=D(e.operators.AND);function q(..._){return _.reduce(Z)}e.and=q;const ee=D(e.operators.OR);function k(..._){return _.reduce(ee)}e.or=k;function D(_){return(E,P)=>E===t.nil?P:P===t.nil?E:(0,t._)`${I(E)} ${_} ${I(P)}`}function I(_){return _ instanceof t.Name?_:(0,t._)`(${_})`}})(Gs)),Gs}var ce={},Yl;function me(){if(Yl)return ce;Yl=1,Object.defineProperty(ce,"__esModule",{value:!0}),ce.checkStrictMode=ce.getErrorPath=ce.Type=ce.useFunc=ce.setEvaluated=ce.evaluatedPropsToName=ce.mergeEvaluated=ce.eachItem=ce.unescapeJsonPointer=ce.escapeJsonPointer=ce.escapeFragment=ce.unescapeFragment=ce.schemaRefOrVal=ce.schemaHasRulesButRef=ce.schemaHasRules=ce.checkUnknownRules=ce.alwaysValidSchema=ce.toHash=void 0;const e=he(),t=vr();function n(v){const w={};for(const x of v)w[x]=!0;return w}ce.toHash=n;function r(v,w){return typeof w=="boolean"?w:Object.keys(w).length===0?!0:(i(v,w),!s(w,v.self.RULES.all))}ce.alwaysValidSchema=r;function i(v,w=v.schema){const{opts:x,self:N}=v;if(!x.strictSchema||typeof w=="boolean")return;const F=N.RULES.keywords;for(const A in w)F[A]||S(v,`unknown keyword: "${A}"`)}ce.checkUnknownRules=i;function s(v,w){if(typeof v=="boolean")return!v;for(const x in v)if(w[x])return!0;return!1}ce.schemaHasRules=s;function a(v,w){if(typeof v=="boolean")return!v;for(const x in v)if(x!=="$ref"&&w.all[x])return!0;return!1}ce.schemaHasRulesButRef=a;function o({topSchemaRef:v,schemaPath:w},x,N,F){if(!F){if(typeof x=="number"||typeof x=="boolean")return x;if(typeof x=="string")return(0,e._)`${x}`}return(0,e._)`${v}${w}${(0,e.getProperty)(N)}`}ce.schemaRefOrVal=o;function l(v){return f(decodeURIComponent(v))}ce.unescapeFragment=l;function u(v){return encodeURIComponent(c(v))}ce.escapeFragment=u;function c(v){return typeof v=="number"?`${v}`:v.replace(/~/g,"~0").replace(/\//g,"~1")}ce.escapeJsonPointer=c;function f(v){return v.replace(/~1/g,"/").replace(/~0/g,"~")}ce.unescapeJsonPointer=f;function h(v,w){if(Array.isArray(v))for(const x of v)w(x);else w(v)}ce.eachItem=h;function d({mergeNames:v,mergeToName:w,mergeValues:x,resultToName:N}){return(F,A,O,U)=>{const K=O===void 0?A:O instanceof e.Name?(A instanceof e.Name?v(F,A,O):w(F,A,O),O):A instanceof e.Name?(w(F,O,A),A):x(A,O);return U===e.Name&&!(K instanceof e.Name)?N(F,K):K}}ce.mergeEvaluated={props:d({mergeNames:(v,w,x)=>v.if((0,e._)`${x} !== true && ${w} !== undefined`,()=>{v.if((0,e._)`${w} === true`,()=>v.assign(x,!0),()=>v.assign(x,(0,e._)`${x} || {}`).code((0,e._)`Object.assign(${x}, ${w})`))}),mergeToName:(v,w,x)=>v.if((0,e._)`${x} !== true`,()=>{w===!0?v.assign(x,!0):(v.assign(x,(0,e._)`${x} || {}`),T(v,x,w))}),mergeValues:(v,w)=>v===!0?!0:{...v,...w},resultToName:g}),items:d({mergeNames:(v,w,x)=>v.if((0,e._)`${x} !== true && ${w} !== undefined`,()=>v.assign(x,(0,e._)`${w} === true ? true : ${x} > ${w} ? ${x} : ${w}`)),mergeToName:(v,w,x)=>v.if((0,e._)`${x} !== true`,()=>v.assign(x,w===!0?!0:(0,e._)`${x} > ${w} ? ${x} : ${w}`)),mergeValues:(v,w)=>v===!0?!0:Math.max(v,w),resultToName:(v,w)=>v.var("items",w)})};function g(v,w){if(w===!0)return v.var("props",!0);const x=v.var("props",(0,e._)`{}`);return w!==void 0&&T(v,x,w),x}ce.evaluatedPropsToName=g;function T(v,w,x){Object.keys(x).forEach(N=>v.assign((0,e._)`${w}${(0,e.getProperty)(N)}`,!0))}ce.setEvaluated=T;const y={};function m(v,w){return v.scopeValue("func",{ref:w,code:y[w.code]||(y[w.code]=new t._Code(w.code))})}ce.useFunc=m;var p;(function(v){v[v.Num=0]="Num",v[v.Str=1]="Str"})(p||(ce.Type=p={}));function b(v,w,x){if(v instanceof e.Name){const N=w===p.Num;return x?N?(0,e._)`"[" + ${v} + "]"`:(0,e._)`"['" + ${v} + "']"`:N?(0,e._)`"/" + ${v}`:(0,e._)`"/" + ${v}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return x?(0,e.getProperty)(v).toString():"/"+c(v)}ce.getErrorPath=b;function S(v,w,x=v.opts.strictSchema){if(x){if(w=`strict mode: ${w}`,x===!0)throw new Error(w);v.self.logger.warn(w)}}return ce.checkStrictMode=S,ce}var Tr={},Gl;function qt(){if(Gl)return Tr;Gl=1,Object.defineProperty(Tr,"__esModule",{value:!0});const e=he(),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 Tr.default=t,Tr}var Kl;function kr(){return Kl||(Kl=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=he(),n=me(),r=qt();e.keywordError={message:({keyword:y})=>(0,t.str)`must pass "${y}" keyword validation`},e.keyword$DataError={message:({keyword:y,schemaType:m})=>m?(0,t.str)`"${y}" keyword must be ${m} ($data)`:(0,t.str)`"${y}" keyword is invalid ($data)`};function i(y,m=e.keywordError,p,b){const{it:S}=y,{gen:v,compositeRule:w,allErrors:x}=S,N=f(y,m,p);b??(w||x)?l(v,N):u(S,(0,t._)`[${N}]`)}e.reportError=i;function s(y,m=e.keywordError,p){const{it:b}=y,{gen:S,compositeRule:v,allErrors:w}=b,x=f(y,m,p);l(S,x),v||w||u(b,r.default.vErrors)}e.reportExtraError=s;function a(y,m){y.assign(r.default.errors,m),y.if((0,t._)`${r.default.vErrors} !== null`,()=>y.if(m,()=>y.assign((0,t._)`${r.default.vErrors}.length`,m),()=>y.assign(r.default.vErrors,null)))}e.resetErrorsCount=a;function o({gen:y,keyword:m,schemaValue:p,data:b,errsCount:S,it:v}){if(S===void 0)throw new Error("ajv implementation error");const w=y.name("err");y.forRange("i",S,r.default.errors,x=>{y.const(w,(0,t._)`${r.default.vErrors}[${x}]`),y.if((0,t._)`${w}.instancePath === undefined`,()=>y.assign((0,t._)`${w}.instancePath`,(0,t.strConcat)(r.default.instancePath,v.errorPath))),y.assign((0,t._)`${w}.schemaPath`,(0,t.str)`${v.errSchemaPath}/${m}`),v.opts.verbose&&(y.assign((0,t._)`${w}.schema`,p),y.assign((0,t._)`${w}.data`,b))})}e.extendErrors=o;function l(y,m){const p=y.const("err",m);y.if((0,t._)`${r.default.vErrors} === null`,()=>y.assign(r.default.vErrors,(0,t._)`[${p}]`),(0,t._)`${r.default.vErrors}.push(${p})`),y.code((0,t._)`${r.default.errors}++`)}function u(y,m){const{gen:p,validateName:b,schemaEnv:S}=y;S.$async?p.throw((0,t._)`new ${y.ValidationError}(${m})`):(p.assign((0,t._)`${b}.errors`,m),p.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(y,m,p){const{createErrors:b}=y.it;return b===!1?(0,t._)`{}`:h(y,m,p)}function h(y,m,p={}){const{gen:b,it:S}=y,v=[d(S,p),g(y,p)];return T(y,m,v),b.object(...v)}function d({errorPath:y},{instancePath:m}){const p=m?(0,t.str)`${y}${(0,n.getErrorPath)(m,n.Type.Str)}`:y;return[r.default.instancePath,(0,t.strConcat)(r.default.instancePath,p)]}function g({keyword:y,it:{errSchemaPath:m}},{schemaPath:p,parentSchema:b}){let S=b?m:(0,t.str)`${m}/${y}`;return p&&(S=(0,t.str)`${S}${(0,n.getErrorPath)(p,n.Type.Str)}`),[c.schemaPath,S]}function T(y,{params:m,message:p},b){const{keyword:S,data:v,schemaValue:w,it:x}=y,{opts:N,propertyName:F,topSchemaRef:A,schemaPath:O}=x;b.push([c.keyword,S],[c.params,typeof m=="function"?m(y):m||(0,t._)`{}`]),N.messages&&b.push([c.message,typeof p=="function"?p(y):p]),N.verbose&&b.push([c.schema,w],[c.parentSchema,(0,t._)`${A}${O}`],[r.default.data,v]),F&&b.push([c.propertyName,F])}})(Ys)),Ys}var Zl;function Z0(){if(Zl)return Jt;Zl=1,Object.defineProperty(Jt,"__esModule",{value:!0}),Jt.boolOrEmptySchema=Jt.topBoolOrEmptySchema=void 0;const e=kr(),t=he(),n=qt(),r={message:"boolean schema is false"};function i(o){const{gen:l,schema:u,validateName:c}=o;u===!1?a(o,!1):typeof u=="object"&&u.$async===!0?l.return(n.default.data):(l.assign((0,t._)`${c}.errors`,null),l.return(!0))}Jt.topBoolOrEmptySchema=i;function s(o,l){const{gen:u,schema:c}=o;c===!1?(u.var(l,!1),a(o)):u.var(l,!0)}Jt.boolOrEmptySchema=s;function a(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,r,void 0,l)}return Jt}var Fe={},Xt={},Jl;function Xl(){if(Jl)return Xt;Jl=1,Object.defineProperty(Xt,"__esModule",{value:!0}),Xt.getRules=Xt.isJSONType=void 0;const e=["string","number","integer","boolean","null","object","array"],t=new Set(e);function n(i){return typeof i=="string"&&t.has(i)}Xt.isJSONType=n;function r(){const i={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...i,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},i.number,i.string,i.array,i.object],post:{rules:[]},all:{},keywords:{}}}return Xt.getRules=r,Xt}var Ot={},Ql;function eu(){if(Ql)return Ot;Ql=1,Object.defineProperty(Ot,"__esModule",{value:!0}),Ot.shouldUseRule=Ot.shouldUseGroup=Ot.schemaHasRulesForType=void 0;function e({schema:r,self:i},s){const a=i.RULES.types[s];return a&&a!==!0&&t(r,a)}Ot.schemaHasRulesForType=e;function t(r,i){return i.rules.some(s=>n(r,s))}Ot.shouldUseGroup=t;function n(r,i){var s;return r[i.keyword]!==void 0||((s=i.definition.implements)===null||s===void 0?void 0:s.some(a=>r[a]!==void 0))}return Ot.shouldUseRule=n,Ot}var tu;function Er(){if(tu)return Fe;tu=1,Object.defineProperty(Fe,"__esModule",{value:!0}),Fe.reportTypeError=Fe.checkDataTypes=Fe.checkDataType=Fe.coerceAndCheckDataType=Fe.getJSONTypes=Fe.getSchemaTypes=Fe.DataType=void 0;const e=Xl(),t=eu(),n=kr(),r=he(),i=me();var s;(function(p){p[p.Correct=0]="Correct",p[p.Wrong=1]="Wrong"})(s||(Fe.DataType=s={}));function a(p){const b=o(p.type);if(b.includes("null")){if(p.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!b.length&&p.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');p.nullable===!0&&b.push("null")}return b}Fe.getSchemaTypes=a;function o(p){const b=Array.isArray(p)?p:p?[p]:[];if(b.every(e.isJSONType))return b;throw new Error("type must be JSONType or JSONType[]: "+b.join(","))}Fe.getJSONTypes=o;function l(p,b){const{gen:S,data:v,opts:w}=p,x=c(b,w.coerceTypes),N=b.length>0&&!(x.length===0&&b.length===1&&(0,t.schemaHasRulesForType)(p,b[0]));if(N){const F=g(b,v,w.strictNumbers,s.Wrong);S.if(F,()=>{x.length?f(p,b,x):y(p)})}return N}Fe.coerceAndCheckDataType=l;const u=new Set(["string","number","integer","boolean","null"]);function c(p,b){return b?p.filter(S=>u.has(S)||b==="array"&&S==="array"):[]}function f(p,b,S){const{gen:v,data:w,opts:x}=p,N=v.let("dataType",(0,r._)`typeof ${w}`),F=v.let("coerced",(0,r._)`undefined`);x.coerceTypes==="array"&&v.if((0,r._)`${N} == 'object' && Array.isArray(${w}) && ${w}.length == 1`,()=>v.assign(w,(0,r._)`${w}[0]`).assign(N,(0,r._)`typeof ${w}`).if(g(b,w,x.strictNumbers),()=>v.assign(F,w))),v.if((0,r._)`${F} !== undefined`);for(const O of S)(u.has(O)||O==="array"&&x.coerceTypes==="array")&&A(O);v.else(),y(p),v.endIf(),v.if((0,r._)`${F} !== undefined`,()=>{v.assign(w,F),h(p,F)});function A(O){switch(O){case"string":v.elseIf((0,r._)`${N} == "number" || ${N} == "boolean"`).assign(F,(0,r._)`"" + ${w}`).elseIf((0,r._)`${w} === null`).assign(F,(0,r._)`""`);return;case"number":v.elseIf((0,r._)`${N} == "boolean" || ${w} === null
55
- || (${N} == "string" && ${w} && ${w} == +${w})`).assign(F,(0,r._)`+${w}`);return;case"integer":v.elseIf((0,r._)`${N} === "boolean" || ${w} === null
56
- || (${N} === "string" && ${w} && ${w} == +${w} && !(${w} % 1))`).assign(F,(0,r._)`+${w}`);return;case"boolean":v.elseIf((0,r._)`${w} === "false" || ${w} === 0 || ${w} === null`).assign(F,!1).elseIf((0,r._)`${w} === "true" || ${w} === 1`).assign(F,!0);return;case"null":v.elseIf((0,r._)`${w} === "" || ${w} === 0 || ${w} === false`),v.assign(F,null);return;case"array":v.elseIf((0,r._)`${N} === "string" || ${N} === "number"
57
- || ${N} === "boolean" || ${w} === null`).assign(F,(0,r._)`[${w}]`)}}}function h({gen:p,parentData:b,parentDataProperty:S},v){p.if((0,r._)`${b} !== undefined`,()=>p.assign((0,r._)`${b}[${S}]`,v))}function d(p,b,S,v=s.Correct){const w=v===s.Correct?r.operators.EQ:r.operators.NEQ;let x;switch(p){case"null":return(0,r._)`${b} ${w} null`;case"array":x=(0,r._)`Array.isArray(${b})`;break;case"object":x=(0,r._)`${b} && typeof ${b} == "object" && !Array.isArray(${b})`;break;case"integer":x=N((0,r._)`!(${b} % 1) && !isNaN(${b})`);break;case"number":x=N();break;default:return(0,r._)`typeof ${b} ${w} ${p}`}return v===s.Correct?x:(0,r.not)(x);function N(F=r.nil){return(0,r.and)((0,r._)`typeof ${b} == "number"`,F,S?(0,r._)`isFinite(${b})`:r.nil)}}Fe.checkDataType=d;function g(p,b,S,v){if(p.length===1)return d(p[0],b,S,v);let w;const x=(0,i.toHash)(p);if(x.array&&x.object){const N=(0,r._)`typeof ${b} != "object"`;w=x.null?N:(0,r._)`!${b} || ${N}`,delete x.null,delete x.array,delete x.object}else w=r.nil;x.number&&delete x.integer;for(const N in x)w=(0,r.and)(w,d(N,b,S,v));return w}Fe.checkDataTypes=g;const T={message:({schema:p})=>`must be ${p}`,params:({schema:p,schemaValue:b})=>typeof p=="string"?(0,r._)`{type: ${p}}`:(0,r._)`{type: ${b}}`};function y(p){const b=m(p);(0,n.reportError)(b,T)}Fe.reportTypeError=y;function m(p){const{gen:b,data:S,schema:v}=p,w=(0,i.schemaRefOrVal)(p,v,"type");return{gen:b,keyword:"type",data:S,schema:v.type,schemaCode:w,schemaValue:w,parentSchema:v,params:{},it:p}}return Fe}var Hn={},nu;function J0(){if(nu)return Hn;nu=1,Object.defineProperty(Hn,"__esModule",{value:!0}),Hn.assignDefaults=void 0;const e=he(),t=me();function n(i,s){const{properties:a,items:o}=i.schema;if(s==="object"&&a)for(const l in a)r(i,l,a[l].default);else s==="array"&&Array.isArray(o)&&o.forEach((l,u)=>r(i,u,l.default))}Hn.assignDefaults=n;function r(i,s,a){const{gen:o,compositeRule:l,data:u,opts:c}=i;if(a===void 0)return;const f=(0,e._)`${u}${(0,e.getProperty)(s)}`;if(l){(0,t.checkStrictMode)(i,`default is ignored for: ${f}`);return}let h=(0,e._)`${f} === undefined`;c.useDefaults==="empty"&&(h=(0,e._)`${h} || ${f} === null || ${f} === ""`),o.if(h,(0,e._)`${f} = ${(0,e.stringify)(a)}`)}return Hn}var yt={},be={},ru;function bt(){if(ru)return be;ru=1,Object.defineProperty(be,"__esModule",{value:!0}),be.validateUnion=be.validateArray=be.usePattern=be.callValidateCode=be.schemaProperties=be.allSchemaProperties=be.noPropertyInData=be.propertyInData=be.isOwnProperty=be.hasPropFunc=be.reportMissingProp=be.checkMissingProp=be.checkReportMissingProp=void 0;const e=he(),t=me(),n=qt(),r=me();function i(p,b){const{gen:S,data:v,it:w}=p;S.if(c(S,v,b,w.opts.ownProperties),()=>{p.setParams({missingProperty:(0,e._)`${b}`},!0),p.error()})}be.checkReportMissingProp=i;function s({gen:p,data:b,it:{opts:S}},v,w){return(0,e.or)(...v.map(x=>(0,e.and)(c(p,b,x,S.ownProperties),(0,e._)`${w} = ${x}`)))}be.checkMissingProp=s;function a(p,b){p.setParams({missingProperty:b},!0),p.error()}be.reportMissingProp=a;function o(p){return p.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,e._)`Object.prototype.hasOwnProperty`})}be.hasPropFunc=o;function l(p,b,S){return(0,e._)`${o(p)}.call(${b}, ${S})`}be.isOwnProperty=l;function u(p,b,S,v){const w=(0,e._)`${b}${(0,e.getProperty)(S)} !== undefined`;return v?(0,e._)`${w} && ${l(p,b,S)}`:w}be.propertyInData=u;function c(p,b,S,v){const w=(0,e._)`${b}${(0,e.getProperty)(S)} === undefined`;return v?(0,e.or)(w,(0,e.not)(l(p,b,S))):w}be.noPropertyInData=c;function f(p){return p?Object.keys(p).filter(b=>b!=="__proto__"):[]}be.allSchemaProperties=f;function h(p,b){return f(b).filter(S=>!(0,t.alwaysValidSchema)(p,b[S]))}be.schemaProperties=h;function d({schemaCode:p,data:b,it:{gen:S,topSchemaRef:v,schemaPath:w,errorPath:x},it:N},F,A,O){const U=O?(0,e._)`${p}, ${b}, ${v}${w}`:b,K=[[n.default.instancePath,(0,e.strConcat)(n.default.instancePath,x)],[n.default.parentData,N.parentData],[n.default.parentDataProperty,N.parentDataProperty],[n.default.rootData,n.default.rootData]];N.opts.dynamicRef&&K.push([n.default.dynamicAnchors,n.default.dynamicAnchors]);const H=(0,e._)`${U}, ${S.object(...K)}`;return A!==e.nil?(0,e._)`${F}.call(${A}, ${H})`:(0,e._)`${F}(${H})`}be.callValidateCode=d;const g=(0,e._)`new RegExp`;function T({gen:p,it:{opts:b}},S){const v=b.unicodeRegExp?"u":"",{regExp:w}=b.code,x=w(S,v);return p.scopeValue("pattern",{key:x.toString(),ref:x,code:(0,e._)`${w.code==="new RegExp"?g:(0,r.useFunc)(p,w)}(${S}, ${v})`})}be.usePattern=T;function y(p){const{gen:b,data:S,keyword:v,it:w}=p,x=b.name("valid");if(w.allErrors){const F=b.let("valid",!0);return N(()=>b.assign(F,!1)),F}return b.var(x,!0),N(()=>b.break()),x;function N(F){const A=b.const("len",(0,e._)`${S}.length`);b.forRange("i",0,A,O=>{p.subschema({keyword:v,dataProp:O,dataPropType:t.Type.Num},x),b.if((0,e.not)(x),F)})}}be.validateArray=y;function m(p){const{gen:b,schema:S,keyword:v,it:w}=p;if(!Array.isArray(S))throw new Error("ajv implementation error");if(S.some(A=>(0,t.alwaysValidSchema)(w,A))&&!w.opts.unevaluated)return;const N=b.let("valid",!1),F=b.name("_valid");b.block(()=>S.forEach((A,O)=>{const U=p.subschema({keyword:v,schemaProp:O,compositeRule:!0},F);b.assign(N,(0,e._)`${N} || ${F}`),p.mergeValidEvaluated(U,F)||b.if((0,e.not)(N))})),p.result(N,()=>p.reset(),()=>p.error(!0))}return be.validateUnion=m,be}var iu;function X0(){if(iu)return yt;iu=1,Object.defineProperty(yt,"__esModule",{value:!0}),yt.validateKeywordUsage=yt.validSchemaType=yt.funcKeywordCode=yt.macroKeywordCode=void 0;const e=he(),t=qt(),n=bt(),r=kr();function i(h,d){const{gen:g,keyword:T,schema:y,parentSchema:m,it:p}=h,b=d.macro.call(p.self,y,m,p),S=u(g,T,b);p.opts.validateSchema!==!1&&p.self.validateSchema(b,!0);const v=g.name("valid");h.subschema({schema:b,schemaPath:e.nil,errSchemaPath:`${p.errSchemaPath}/${T}`,topSchemaRef:S,compositeRule:!0},v),h.pass(v,()=>h.error(!0))}yt.macroKeywordCode=i;function s(h,d){var g;const{gen:T,keyword:y,schema:m,parentSchema:p,$data:b,it:S}=h;l(S,d);const v=!b&&d.compile?d.compile.call(S.self,m,p,S):d.validate,w=u(T,y,v),x=T.let("valid");h.block$data(x,N),h.ok((g=d.valid)!==null&&g!==void 0?g:x);function N(){if(d.errors===!1)O(),d.modifying&&a(h),U(()=>h.error());else{const K=d.async?F():A();d.modifying&&a(h),U(()=>o(h,K))}}function F(){const K=T.let("ruleErrs",null);return T.try(()=>O((0,e._)`await `),H=>T.assign(x,!1).if((0,e._)`${H} instanceof ${S.ValidationError}`,()=>T.assign(K,(0,e._)`${H}.errors`),()=>T.throw(H))),K}function A(){const K=(0,e._)`${w}.errors`;return T.assign(K,null),O(e.nil),K}function O(K=d.async?(0,e._)`await `:e.nil){const H=S.opts.passContext?t.default.this:t.default.self,j=!("compile"in d&&!b||d.schema===!1);T.assign(x,(0,e._)`${K}${(0,n.callValidateCode)(h,w,H,j)}`,d.modifying)}function U(K){var H;T.if((0,e.not)((H=d.valid)!==null&&H!==void 0?H:x),K)}}yt.funcKeywordCode=s;function a(h){const{gen:d,data:g,it:T}=h;d.if(T.parentData,()=>d.assign(g,(0,e._)`${T.parentData}[${T.parentDataProperty}]`))}function o(h,d){const{gen:g}=h;g.if((0,e._)`Array.isArray(${d})`,()=>{g.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,r.extendErrors)(h)},()=>h.error())}function l({schemaEnv:h},d){if(d.async&&!h.$async)throw new Error("async keyword in sync schema")}function u(h,d,g){if(g===void 0)throw new Error(`keyword "${d}" failed to compile`);return h.scopeValue("keyword",typeof g=="function"?{ref:g}:{ref:g,code:(0,e.stringify)(g)})}function c(h,d,g=!1){return!d.length||d.some(T=>T==="array"?Array.isArray(h):T==="object"?h&&typeof h=="object"&&!Array.isArray(h):typeof h==T||g&&typeof h>"u")}yt.validSchemaType=c;function f({schema:h,opts:d,self:g,errSchemaPath:T},y,m){if(Array.isArray(y.keyword)?!y.keyword.includes(m):y.keyword!==m)throw new Error("ajv implementation error");const p=y.dependencies;if(p?.some(b=>!Object.prototype.hasOwnProperty.call(h,b)))throw new Error(`parent schema must have dependencies of ${m}: ${p.join(",")}`);if(y.validateSchema&&!y.validateSchema(h[m])){const S=`keyword "${m}" value is invalid at path "${T}": `+g.errorsText(y.validateSchema.errors);if(d.validateSchema==="log")g.logger.error(S);else throw new Error(S)}}return yt.validateKeywordUsage=f,yt}var Rt={},su;function Q0(){if(su)return Rt;su=1,Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.extendSubschemaMode=Rt.extendSubschemaData=Rt.getSubschema=void 0;const e=he(),t=me();function n(s,{keyword:a,schemaProp:o,schema:l,schemaPath:u,errSchemaPath:c,topSchemaRef:f}){if(a!==void 0&&l!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(a!==void 0){const h=s.schema[a];return o===void 0?{schema:h,schemaPath:(0,e._)`${s.schemaPath}${(0,e.getProperty)(a)}`,errSchemaPath:`${s.errSchemaPath}/${a}`}:{schema:h[o],schemaPath:(0,e._)`${s.schemaPath}${(0,e.getProperty)(a)}${(0,e.getProperty)(o)}`,errSchemaPath:`${s.errSchemaPath}/${a}/${(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')}Rt.getSubschema=n;function r(s,a,{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:h}=a;if(o!==void 0){const{errorPath:g,dataPathArr:T,opts:y}=a,m=h.let("data",(0,e._)`${a.data}${(0,e.getProperty)(o)}`,!0);d(m),s.errorPath=(0,e.str)`${g}${(0,t.getErrorPath)(o,l,y.jsPropertySyntax)}`,s.parentDataProperty=(0,e._)`${o}`,s.dataPathArr=[...T,s.parentDataProperty]}if(u!==void 0){const g=u instanceof e.Name?u:h.let("data",u,!0);d(g),f!==void 0&&(s.propertyName=f)}c&&(s.dataTypes=c);function d(g){s.data=g,s.dataLevel=a.dataLevel+1,s.dataTypes=[],a.definedProperties=new Set,s.parentData=a.data,s.dataNames=[...a.dataNames,g]}}Rt.extendSubschemaData=r;function i(s,{jtdDiscriminator:a,jtdMetadata:o,compositeRule:l,createErrors:u,allErrors:c}){l!==void 0&&(s.compositeRule=l),u!==void 0&&(s.createErrors=u),c!==void 0&&(s.allErrors=c),s.jtdDiscriminator=a,s.jtdMetadata=o}return Rt.extendSubschemaMode=i,Rt}var Ke={},Js,au;function ou(){return au||(au=1,Js=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;var r,i,s;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(i=r;i--!==0;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(s=Object.keys(t),r=s.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,s[i]))return!1;for(i=r;i--!==0;){var a=s[i];if(!e(t[a],n[a]))return!1}return!0}return t!==t&&n!==n}),Js}var Xs={exports:{}},lu;function eb(){if(lu)return Xs.exports;lu=1;var e=Xs.exports=function(r,i,s){typeof i=="function"&&(s=i,i={}),s=i.cb||s;var a=typeof s=="function"?s:s.pre||function(){},o=s.post||function(){};t(i,a,o,r,"",r)};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(r,i,s,a,o,l,u,c,f,h){if(a&&typeof a=="object"&&!Array.isArray(a)){i(a,o,l,u,c,f,h);for(var d in a){var g=a[d];if(Array.isArray(g)){if(d in e.arrayKeywords)for(var T=0;T<g.length;T++)t(r,i,s,g[T],o+"/"+d+"/"+T,l,o,d,a,T)}else if(d in e.propsKeywords){if(g&&typeof g=="object")for(var y in g)t(r,i,s,g[y],o+"/"+d+"/"+n(y),l,o,d,a,y)}else(d in e.keywords||r.allKeys&&!(d in e.skipKeywords))&&t(r,i,s,g,o+"/"+d,l,o,d,a)}s(a,o,l,u,c,f,h)}}function n(r){return r.replace(/~/g,"~0").replace(/\//g,"~1")}return Xs.exports}var uu;function Sr(){if(uu)return Ke;uu=1,Object.defineProperty(Ke,"__esModule",{value:!0}),Ke.getSchemaRefs=Ke.resolveUrl=Ke.normalizeId=Ke._getFullPath=Ke.getFullPath=Ke.inlineRef=void 0;const e=me(),t=ou(),n=eb(),r=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function i(T,y=!0){return typeof T=="boolean"?!0:y===!0?!a(T):y?o(T)<=y:!1}Ke.inlineRef=i;const s=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function a(T){for(const y in T){if(s.has(y))return!0;const m=T[y];if(Array.isArray(m)&&m.some(a)||typeof m=="object"&&a(m))return!0}return!1}function o(T){let y=0;for(const m in T){if(m==="$ref")return 1/0;if(y++,!r.has(m)&&(typeof T[m]=="object"&&(0,e.eachItem)(T[m],p=>y+=o(p)),y===1/0))return 1/0}return y}function l(T,y="",m){m!==!1&&(y=f(y));const p=T.parse(y);return u(T,p)}Ke.getFullPath=l;function u(T,y){return T.serialize(y).split("#")[0]+"#"}Ke._getFullPath=u;const c=/#\/?$/;function f(T){return T?T.replace(c,""):""}Ke.normalizeId=f;function h(T,y,m){return m=f(m),T.resolve(y,m)}Ke.resolveUrl=h;const d=/^[a-z_][-a-z0-9._]*$/i;function g(T,y){if(typeof T=="boolean")return{};const{schemaId:m,uriResolver:p}=this.opts,b=f(T[m]||y),S={"":b},v=l(p,b,!1),w={},x=new Set;return n(T,{allKeys:!0},(A,O,U,K)=>{if(K===void 0)return;const H=v+O;let j=S[K];typeof A[m]=="string"&&(j=B.call(this,A[m])),Z.call(this,A.$anchor),Z.call(this,A.$dynamicAnchor),S[O]=j;function B(q){const ee=this.opts.uriResolver.resolve;if(q=f(j?ee(j,q):q),x.has(q))throw F(q);x.add(q);let k=this.refs[q];return typeof k=="string"&&(k=this.refs[k]),typeof k=="object"?N(A,k.schema,q):q!==f(H)&&(q[0]==="#"?(N(A,w[q],q),w[q]=A):this.refs[q]=H),q}function Z(q){if(typeof q=="string"){if(!d.test(q))throw new Error(`invalid anchor "${q}"`);B.call(this,`#${q}`)}}}),w;function N(A,O,U){if(O!==void 0&&!t(A,O))throw F(U)}function F(A){return new Error(`reference "${A}" resolves to more than one schema`)}}return Ke.getSchemaRefs=g,Ke}var cu;function xr(){if(cu)return Ct;cu=1,Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.getData=Ct.KeywordCxt=Ct.validateFunctionCode=void 0;const e=Z0(),t=Er(),n=eu(),r=Er(),i=J0(),s=X0(),a=Q0(),o=he(),l=qt(),u=Sr(),c=me(),f=kr();function h(C){if(v(C)&&(x(C),S(C))){y(C);return}d(C,()=>(0,e.topBoolOrEmptySchema)(C))}Ct.validateFunctionCode=h;function d({gen:C,validateName:R,schema:z,schemaEnv:G,opts:Q},oe){Q.code.es5?C.func(R,(0,o._)`${l.default.data}, ${l.default.valCxt}`,G.$async,()=>{C.code((0,o._)`"use strict"; ${p(z,Q)}`),T(C,Q),C.code(oe)}):C.func(R,(0,o._)`${l.default.data}, ${g(Q)}`,G.$async,()=>C.code(p(z,Q)).code(oe))}function g(C){return(0,o._)`{${l.default.instancePath}="", ${l.default.parentData}, ${l.default.parentDataProperty}, ${l.default.rootData}=${l.default.data}${C.dynamicRef?(0,o._)`, ${l.default.dynamicAnchors}={}`:o.nil}}={}`}function T(C,R){C.if(l.default.valCxt,()=>{C.var(l.default.instancePath,(0,o._)`${l.default.valCxt}.${l.default.instancePath}`),C.var(l.default.parentData,(0,o._)`${l.default.valCxt}.${l.default.parentData}`),C.var(l.default.parentDataProperty,(0,o._)`${l.default.valCxt}.${l.default.parentDataProperty}`),C.var(l.default.rootData,(0,o._)`${l.default.valCxt}.${l.default.rootData}`),R.dynamicRef&&C.var(l.default.dynamicAnchors,(0,o._)`${l.default.valCxt}.${l.default.dynamicAnchors}`)},()=>{C.var(l.default.instancePath,(0,o._)`""`),C.var(l.default.parentData,(0,o._)`undefined`),C.var(l.default.parentDataProperty,(0,o._)`undefined`),C.var(l.default.rootData,l.default.data),R.dynamicRef&&C.var(l.default.dynamicAnchors,(0,o._)`{}`)})}function y(C){const{schema:R,opts:z,gen:G}=C;d(C,()=>{z.$comment&&R.$comment&&K(C),A(C),G.let(l.default.vErrors,null),G.let(l.default.errors,0),z.unevaluated&&m(C),N(C),H(C)})}function m(C){const{gen:R,validateName:z}=C;C.evaluated=R.const("evaluated",(0,o._)`${z}.evaluated`),R.if((0,o._)`${C.evaluated}.dynamicProps`,()=>R.assign((0,o._)`${C.evaluated}.props`,(0,o._)`undefined`)),R.if((0,o._)`${C.evaluated}.dynamicItems`,()=>R.assign((0,o._)`${C.evaluated}.items`,(0,o._)`undefined`))}function p(C,R){const z=typeof C=="object"&&C[R.schemaId];return z&&(R.code.source||R.code.process)?(0,o._)`/*# sourceURL=${z} */`:o.nil}function b(C,R){if(v(C)&&(x(C),S(C))){w(C,R);return}(0,e.boolOrEmptySchema)(C,R)}function S({schema:C,self:R}){if(typeof C=="boolean")return!C;for(const z in C)if(R.RULES.all[z])return!0;return!1}function v(C){return typeof C.schema!="boolean"}function w(C,R){const{schema:z,gen:G,opts:Q}=C;Q.$comment&&z.$comment&&K(C),O(C),U(C);const oe=G.const("_errs",l.default.errors);N(C,oe),G.var(R,(0,o._)`${oe} === ${l.default.errors}`)}function x(C){(0,c.checkUnknownRules)(C),F(C)}function N(C,R){if(C.opts.jtd)return B(C,[],!1,R);const z=(0,t.getSchemaTypes)(C.schema),G=(0,t.coerceAndCheckDataType)(C,z);B(C,z,!G,R)}function F(C){const{schema:R,errSchemaPath:z,opts:G,self:Q}=C;R.$ref&&G.ignoreKeywordsWithRef&&(0,c.schemaHasRulesButRef)(R,Q.RULES)&&Q.logger.warn(`$ref: keywords ignored in schema at path "${z}"`)}function A(C){const{schema:R,opts:z}=C;R.default!==void 0&&z.useDefaults&&z.strictSchema&&(0,c.checkStrictMode)(C,"default is ignored in the schema root")}function O(C){const R=C.schema[C.opts.schemaId];R&&(C.baseId=(0,u.resolveUrl)(C.opts.uriResolver,C.baseId,R))}function U(C){if(C.schema.$async&&!C.schemaEnv.$async)throw new Error("async schema in sync schema")}function K({gen:C,schemaEnv:R,schema:z,errSchemaPath:G,opts:Q}){const oe=z.$comment;if(Q.$comment===!0)C.code((0,o._)`${l.default.self}.logger.log(${oe})`);else if(typeof Q.$comment=="function"){const Se=(0,o.str)`${G}/$comment`,Oe=C.scopeValue("root",{ref:R.root});C.code((0,o._)`${l.default.self}.opts.$comment(${oe}, ${Se}, ${Oe}.schema)`)}}function H(C){const{gen:R,schemaEnv:z,validateName:G,ValidationError:Q,opts:oe}=C;z.$async?R.if((0,o._)`${l.default.errors} === 0`,()=>R.return(l.default.data),()=>R.throw((0,o._)`new ${Q}(${l.default.vErrors})`)):(R.assign((0,o._)`${G}.errors`,l.default.vErrors),oe.unevaluated&&j(C),R.return((0,o._)`${l.default.errors} === 0`))}function j({gen:C,evaluated:R,props:z,items:G}){z instanceof o.Name&&C.assign((0,o._)`${R}.props`,z),G instanceof o.Name&&C.assign((0,o._)`${R}.items`,G)}function B(C,R,z,G){const{gen:Q,schema:oe,data:Se,allErrors:Oe,opts:Pe,self:Ae}=C,{RULES:De}=Ae;if(oe.$ref&&(Pe.ignoreKeywordsWithRef||!(0,c.schemaHasRulesButRef)(oe,De))){Q.block(()=>X(C,"$ref",De.all.$ref.definition));return}Pe.jtd||q(C,R),Q.block(()=>{for(const Ue of De.rules)_t(Ue);_t(De.post)});function _t(Ue){(0,n.shouldUseGroup)(oe,Ue)&&(Ue.type?(Q.if((0,r.checkDataType)(Ue.type,Se,Pe.strictNumbers)),Z(C,Ue),R.length===1&&R[0]===Ue.type&&z&&(Q.else(),(0,r.reportTypeError)(C)),Q.endIf()):Z(C,Ue),Oe||Q.if((0,o._)`${l.default.errors} === ${G||0}`))}}function Z(C,R){const{gen:z,schema:G,opts:{useDefaults:Q}}=C;Q&&(0,i.assignDefaults)(C,R.type),z.block(()=>{for(const oe of R.rules)(0,n.shouldUseRule)(G,oe)&&X(C,oe.keyword,oe.definition,R.type)})}function q(C,R){C.schemaEnv.meta||!C.opts.strictTypes||(ee(C,R),C.opts.allowUnionTypes||k(C,R),D(C,C.dataTypes))}function ee(C,R){if(R.length){if(!C.dataTypes.length){C.dataTypes=R;return}R.forEach(z=>{_(C.dataTypes,z)||P(C,`type "${z}" not allowed by context "${C.dataTypes.join(",")}"`)}),E(C,R)}}function k(C,R){R.length>1&&!(R.length===2&&R.includes("null"))&&P(C,"use allowUnionTypes to allow union type keyword")}function D(C,R){const z=C.self.RULES.all;for(const G in z){const Q=z[G];if(typeof Q=="object"&&(0,n.shouldUseRule)(C.schema,Q)){const{type:oe}=Q.definition;oe.length&&!oe.some(Se=>I(R,Se))&&P(C,`missing type "${oe.join(",")}" for keyword "${G}"`)}}}function I(C,R){return C.includes(R)||R==="number"&&C.includes("integer")}function _(C,R){return C.includes(R)||R==="integer"&&C.includes("number")}function E(C,R){const z=[];for(const G of C.dataTypes)_(R,G)?z.push(G):R.includes("integer")&&G==="number"&&z.push("integer");C.dataTypes=z}function P(C,R){const z=C.schemaEnv.baseId+C.errSchemaPath;R+=` at "${z}" (strictTypes)`,(0,c.checkStrictMode)(C,R,C.opts.strictTypes)}class M{constructor(R,z,G){if((0,s.validateKeywordUsage)(R,z,G),this.gen=R.gen,this.allErrors=R.allErrors,this.keyword=G,this.data=R.data,this.schema=R.schema[G],this.$data=z.$data&&R.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,c.schemaRefOrVal)(R,this.schema,G,this.$data),this.schemaType=z.schemaType,this.parentSchema=R.schema,this.params={},this.it=R,this.def=z,this.$data)this.schemaCode=R.gen.const("vSchema",ne(this.$data,R));else if(this.schemaCode=this.schemaValue,!(0,s.validSchemaType)(this.schema,z.schemaType,z.allowUndefined))throw new Error(`${G} value must be ${JSON.stringify(z.schemaType)}`);("code"in z?z.trackErrors:z.errors!==!1)&&(this.errsCount=R.gen.const("_errs",l.default.errors))}result(R,z,G){this.failResult((0,o.not)(R),z,G)}failResult(R,z,G){this.gen.if(R),G?G():this.error(),z?(this.gen.else(),z(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(R,z){this.failResult((0,o.not)(R),void 0,z)}fail(R){if(R===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(R),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(R){if(!this.$data)return this.fail(R);const{schemaCode:z}=this;this.fail((0,o._)`${z} !== undefined && (${(0,o.or)(this.invalid$data(),R)})`)}error(R,z,G){if(z){this.setParams(z),this._error(R,G),this.setParams({});return}this._error(R,G)}_error(R,z){(R?f.reportExtraError:f.reportError)(this,this.def.error,z)}$dataError(){(0,f.reportError)(this,this.def.$dataError||f.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,f.resetErrorsCount)(this.gen,this.errsCount)}ok(R){this.allErrors||this.gen.if(R)}setParams(R,z){z?Object.assign(this.params,R):this.params=R}block$data(R,z,G=o.nil){this.gen.block(()=>{this.check$data(R,G),z()})}check$data(R=o.nil,z=o.nil){if(!this.$data)return;const{gen:G,schemaCode:Q,schemaType:oe,def:Se}=this;G.if((0,o.or)((0,o._)`${Q} === undefined`,z)),R!==o.nil&&G.assign(R,!0),(oe.length||Se.validateSchema)&&(G.elseIf(this.invalid$data()),this.$dataError(),R!==o.nil&&G.assign(R,!1)),G.else()}invalid$data(){const{gen:R,schemaCode:z,schemaType:G,def:Q,it:oe}=this;return(0,o.or)(Se(),Oe());function Se(){if(G.length){if(!(z instanceof o.Name))throw new Error("ajv implementation error");const Pe=Array.isArray(G)?G:[G];return(0,o._)`${(0,r.checkDataTypes)(Pe,z,oe.opts.strictNumbers,r.DataType.Wrong)}`}return o.nil}function Oe(){if(Q.validateSchema){const Pe=R.scopeValue("validate$data",{ref:Q.validateSchema});return(0,o._)`!${Pe}(${z})`}return o.nil}}subschema(R,z){const G=(0,a.getSubschema)(this.it,R);(0,a.extendSubschemaData)(G,this.it,R),(0,a.extendSubschemaMode)(G,R);const Q={...this.it,...G,items:void 0,props:void 0};return b(Q,z),Q}mergeEvaluated(R,z){const{it:G,gen:Q}=this;G.opts.unevaluated&&(G.props!==!0&&R.props!==void 0&&(G.props=c.mergeEvaluated.props(Q,R.props,G.props,z)),G.items!==!0&&R.items!==void 0&&(G.items=c.mergeEvaluated.items(Q,R.items,G.items,z)))}mergeValidEvaluated(R,z){const{it:G,gen:Q}=this;if(G.opts.unevaluated&&(G.props!==!0||G.items!==!0))return Q.if(z,()=>this.mergeEvaluated(R,o.Name)),!0}}Ct.KeywordCxt=M;function X(C,R,z,G){const Q=new M(C,z,R);"code"in z?z.code(Q,G):Q.$data&&z.validate?(0,s.funcKeywordCode)(Q,z):"macro"in z?(0,s.macroKeywordCode)(Q,z):(z.compile||z.validate)&&(0,s.funcKeywordCode)(Q,z)}const J=/^\/(?:[^~]|~0|~1)*$/,ae=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function ne(C,{dataLevel:R,dataNames:z,dataPathArr:G}){let Q,oe;if(C==="")return l.default.rootData;if(C[0]==="/"){if(!J.test(C))throw new Error(`Invalid JSON-pointer: ${C}`);Q=C,oe=l.default.rootData}else{const Ae=ae.exec(C);if(!Ae)throw new Error(`Invalid JSON-pointer: ${C}`);const De=+Ae[1];if(Q=Ae[2],Q==="#"){if(De>=R)throw new Error(Pe("property/index",De));return G[R-De]}if(De>R)throw new Error(Pe("data",De));if(oe=z[R-De],!Q)return oe}let Se=oe;const Oe=Q.split("/");for(const Ae of Oe)Ae&&(oe=(0,o._)`${oe}${(0,o.getProperty)((0,c.unescapeJsonPointer)(Ae))}`,Se=(0,o._)`${Se} && ${oe}`);return Se;function Pe(Ae,De){return`Cannot access ${Ae} ${De} levels up, current level is ${R}`}}return Ct.getData=ne,Ct}var Pr={},fu;function Qs(){if(fu)return Pr;fu=1,Object.defineProperty(Pr,"__esModule",{value:!0});class e extends Error{constructor(n){super("validation failed"),this.errors=n,this.ajv=this.validation=!0}}return Pr.default=e,Pr}var Ar={},du;function Dr(){if(du)return Ar;du=1,Object.defineProperty(Ar,"__esModule",{value:!0});const e=Sr();class t extends Error{constructor(r,i,s,a){super(a||`can't resolve reference ${s} from id ${i}`),this.missingRef=(0,e.resolveUrl)(r,i,s),this.missingSchema=(0,e.normalizeId)((0,e.getFullPath)(r,this.missingRef))}}return Ar.default=t,Ar}var ot={},hu;function ea(){if(hu)return ot;hu=1,Object.defineProperty(ot,"__esModule",{value:!0}),ot.resolveSchema=ot.getCompilingSchema=ot.resolveRef=ot.compileSchema=ot.SchemaEnv=void 0;const e=he(),t=Qs(),n=qt(),r=Sr(),i=me(),s=xr();class a{constructor(m){var p;this.refs={},this.dynamicAnchors={};let b;typeof m.schema=="object"&&(b=m.schema),this.schema=m.schema,this.schemaId=m.schemaId,this.root=m.root||this,this.baseId=(p=m.baseId)!==null&&p!==void 0?p:(0,r.normalizeId)(b?.[m.schemaId||"$id"]),this.schemaPath=m.schemaPath,this.localRefs=m.localRefs,this.meta=m.meta,this.$async=b?.$async,this.refs={}}}ot.SchemaEnv=a;function o(y){const m=c.call(this,y);if(m)return m;const p=(0,r.getFullPath)(this.opts.uriResolver,y.root.baseId),{es5:b,lines:S}=this.opts.code,{ownProperties:v}=this.opts,w=new e.CodeGen(this.scope,{es5:b,lines:S,ownProperties:v});let x;y.$async&&(x=w.scopeValue("Error",{ref:t.default,code:(0,e._)`require("ajv/dist/runtime/validation_error").default`}));const N=w.scopeName("validate");y.validateName=N;const F={gen:w,allErrors:this.opts.allErrors,data:n.default.data,parentData:n.default.parentData,parentDataProperty:n.default.parentDataProperty,dataNames:[n.default.data],dataPathArr:[e.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:w.scopeValue("schema",this.opts.code.source===!0?{ref:y.schema,code:(0,e.stringify)(y.schema)}:{ref:y.schema}),validateName:N,ValidationError:x,schema:y.schema,schemaEnv:y,rootId:p,baseId:y.baseId||p,schemaPath:e.nil,errSchemaPath:y.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,e._)`""`,opts:this.opts,self:this};let A;try{this._compilations.add(y),(0,s.validateFunctionCode)(F),w.optimize(this.opts.code.optimize);const O=w.toString();A=`${w.scopeRefs(n.default.scope)}return ${O}`,this.opts.code.process&&(A=this.opts.code.process(A,y));const K=new Function(`${n.default.self}`,`${n.default.scope}`,A)(this,this.scope.get());if(this.scope.value(N,{ref:K}),K.errors=null,K.schema=y.schema,K.schemaEnv=y,y.$async&&(K.$async=!0),this.opts.code.source===!0&&(K.source={validateName:N,validateCode:O,scopeValues:w._values}),this.opts.unevaluated){const{props:H,items:j}=F;K.evaluated={props:H instanceof e.Name?void 0:H,items:j instanceof e.Name?void 0:j,dynamicProps:H instanceof e.Name,dynamicItems:j instanceof e.Name},K.source&&(K.source.evaluated=(0,e.stringify)(K.evaluated))}return y.validate=K,y}catch(O){throw delete y.validate,delete y.validateName,A&&this.logger.error("Error compiling schema, function code:",A),O}finally{this._compilations.delete(y)}}ot.compileSchema=o;function l(y,m,p){var b;p=(0,r.resolveUrl)(this.opts.uriResolver,m,p);const S=y.refs[p];if(S)return S;let v=h.call(this,y,p);if(v===void 0){const w=(b=y.localRefs)===null||b===void 0?void 0:b[p],{schemaId:x}=this.opts;w&&(v=new a({schema:w,schemaId:x,root:y,baseId:m}))}if(v!==void 0)return y.refs[p]=u.call(this,v)}ot.resolveRef=l;function u(y){return(0,r.inlineRef)(y.schema,this.opts.inlineRefs)?y.schema:y.validate?y:o.call(this,y)}function c(y){for(const m of this._compilations)if(f(m,y))return m}ot.getCompilingSchema=c;function f(y,m){return y.schema===m.schema&&y.root===m.root&&y.baseId===m.baseId}function h(y,m){let p;for(;typeof(p=this.refs[m])=="string";)m=p;return p||this.schemas[m]||d.call(this,y,m)}function d(y,m){const p=this.opts.uriResolver.parse(m),b=(0,r._getFullPath)(this.opts.uriResolver,p);let S=(0,r.getFullPath)(this.opts.uriResolver,y.baseId,void 0);if(Object.keys(y.schema).length>0&&b===S)return T.call(this,p,y);const v=(0,r.normalizeId)(b),w=this.refs[v]||this.schemas[v];if(typeof w=="string"){const x=d.call(this,y,w);return typeof x?.schema!="object"?void 0:T.call(this,p,x)}if(typeof w?.schema=="object"){if(w.validate||o.call(this,w),v===(0,r.normalizeId)(m)){const{schema:x}=w,{schemaId:N}=this.opts,F=x[N];return F&&(S=(0,r.resolveUrl)(this.opts.uriResolver,S,F)),new a({schema:x,schemaId:N,root:y,baseId:S})}return T.call(this,p,w)}}ot.resolveSchema=d;const g=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function T(y,{baseId:m,schema:p,root:b}){var S;if(((S=y.fragment)===null||S===void 0?void 0:S[0])!=="/")return;for(const x of y.fragment.slice(1).split("/")){if(typeof p=="boolean")return;const N=p[(0,i.unescapeFragment)(x)];if(N===void 0)return;p=N;const F=typeof p=="object"&&p[this.opts.schemaId];!g.has(x)&&F&&(m=(0,r.resolveUrl)(this.opts.uriResolver,m,F))}let v;if(typeof p!="boolean"&&p.$ref&&!(0,i.schemaHasRulesButRef)(p,this.RULES)){const x=(0,r.resolveUrl)(this.opts.uriResolver,m,p.$ref);v=d.call(this,b,x)}const{schemaId:w}=this.opts;if(v=v||new a({schema:p,schemaId:w,root:b,baseId:m}),v.schema!==v.root.schema)return v}return ot}const tb={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1};var $r={},Bn={exports:{}},ta,pu;function mu(){if(pu)return ta;pu=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);function n(h){let d="",g=0,T=0;for(T=0;T<h.length;T++)if(g=h[T].charCodeAt(0),g!==48){if(!(g>=48&&g<=57||g>=65&&g<=70||g>=97&&g<=102))return"";d+=h[T];break}for(T+=1;T<h.length;T++){if(g=h[T].charCodeAt(0),!(g>=48&&g<=57||g>=65&&g<=70||g>=97&&g<=102))return"";d+=h[T]}return d}const r=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function i(h){return h.length=0,!0}function s(h,d,g){if(h.length){const T=n(h);if(T!=="")d.push(T);else return g.error=!0,!1;h.length=0}return!0}function a(h){let d=0;const g={error:!1,address:"",zone:""},T=[],y=[];let m=!1,p=!1,b=s;for(let S=0;S<h.length;S++){const v=h[S];if(!(v==="["||v==="]"))if(v===":"){if(m===!0&&(p=!0),!b(y,T,g))break;if(++d>7){g.error=!0;break}S>0&&h[S-1]===":"&&(m=!0),T.push(":");continue}else if(v==="%"){if(!b(y,T,g))break;b=i}else{y.push(v);continue}}return y.length&&(b===i?g.zone=y.join(""):p?T.push(y.join("")):T.push(n(y))),g.address=T.join(""),g}function o(h){if(l(h,":")<2)return{host:h,isIPV6:!1};const d=a(h);if(d.error)return{host:h,isIPV6:!1};{let g=d.address,T=d.address;return d.zone&&(g+="%"+d.zone,T+="%25"+d.zone),{host:g,isIPV6:!0,escapedHost:T}}}function l(h,d){let g=0;for(let T=0;T<h.length;T++)h[T]===d&&g++;return g}function u(h){let d=h;const g=[];let T=-1,y=0;for(;y=d.length;){if(y===1){if(d===".")break;if(d==="/"){g.push("/");break}else{g.push(d);break}}else if(y===2){if(d[0]==="."){if(d[1]===".")break;if(d[1]==="/"){d=d.slice(2);continue}}else if(d[0]==="/"&&(d[1]==="."||d[1]==="/")){g.push("/");break}}else if(y===3&&d==="/.."){g.length!==0&&g.pop(),g.push("/");break}if(d[0]==="."){if(d[1]==="."){if(d[2]==="/"){d=d.slice(3);continue}}else if(d[1]==="/"){d=d.slice(2);continue}}else if(d[0]==="/"&&d[1]==="."){if(d[2]==="/"){d=d.slice(2);continue}else if(d[2]==="."&&d[3]==="/"){d=d.slice(3),g.length!==0&&g.pop();continue}}if((T=d.indexOf("/",1))===-1){g.push(d);break}else g.push(d.slice(0,T)),d=d.slice(T)}return g.join("")}function c(h,d){const g=d!==!0?escape:unescape;return h.scheme!==void 0&&(h.scheme=g(h.scheme)),h.userinfo!==void 0&&(h.userinfo=g(h.userinfo)),h.host!==void 0&&(h.host=g(h.host)),h.path!==void 0&&(h.path=g(h.path)),h.query!==void 0&&(h.query=g(h.query)),h.fragment!==void 0&&(h.fragment=g(h.fragment)),h}function f(h){const d=[];if(h.userinfo!==void 0&&(d.push(h.userinfo),d.push("@")),h.host!==void 0){let g=unescape(h.host);if(!t(g)){const T=o(g);T.isIPV6===!0?g=`[${T.escapedHost}]`:g=h.host}d.push(g)}return(typeof h.port=="number"||typeof h.port=="string")&&(d.push(":"),d.push(String(h.port))),d.length?d.join(""):void 0}return ta={nonSimpleDomain:r,recomposeAuthority:f,normalizeComponentEncoding:c,removeDotSegments:u,isIPv4:t,isUUID:e,normalizeIPv6:o,stringArrayToHexStripped:n},ta}var na,gu;function nb(){if(gu)return na;gu=1;const{isUUID:e}=mu(),t=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,n=["http","https","ws","wss","urn","urn:uuid"];function r(v){return n.indexOf(v)!==-1}function i(v){return v.secure===!0?!0:v.secure===!1?!1:v.scheme?v.scheme.length===3&&(v.scheme[0]==="w"||v.scheme[0]==="W")&&(v.scheme[1]==="s"||v.scheme[1]==="S")&&(v.scheme[2]==="s"||v.scheme[2]==="S"):!1}function s(v){return v.host||(v.error=v.error||"HTTP URIs must have a host."),v}function a(v){const w=String(v.scheme).toLowerCase()==="https";return(v.port===(w?443:80)||v.port==="")&&(v.port=void 0),v.path||(v.path="/"),v}function o(v){return v.secure=i(v),v.resourceName=(v.path||"/")+(v.query?"?"+v.query:""),v.path=void 0,v.query=void 0,v}function l(v){if((v.port===(i(v)?443:80)||v.port==="")&&(v.port=void 0),typeof v.secure=="boolean"&&(v.scheme=v.secure?"wss":"ws",v.secure=void 0),v.resourceName){const[w,x]=v.resourceName.split("?");v.path=w&&w!=="/"?w:void 0,v.query=x,v.resourceName=void 0}return v.fragment=void 0,v}function u(v,w){if(!v.path)return v.error="URN can not be parsed",v;const x=v.path.match(t);if(x){const N=w.scheme||v.scheme||"urn";v.nid=x[1].toLowerCase(),v.nss=x[2];const F=`${N}:${w.nid||v.nid}`,A=S(F);v.path=void 0,A&&(v=A.parse(v,w))}else v.error=v.error||"URN can not be parsed.";return v}function c(v,w){if(v.nid===void 0)throw new Error("URN without nid cannot be serialized");const x=w.scheme||v.scheme||"urn",N=v.nid.toLowerCase(),F=`${x}:${w.nid||N}`,A=S(F);A&&(v=A.serialize(v,w));const O=v,U=v.nss;return O.path=`${N||w.nid}:${U}`,w.skipEscape=!0,O}function f(v,w){const x=v;return x.uuid=x.nss,x.nss=void 0,!w.tolerant&&(!x.uuid||!e(x.uuid))&&(x.error=x.error||"UUID is not valid."),x}function h(v){const w=v;return w.nss=(v.uuid||"").toLowerCase(),w}const d={scheme:"http",domainHost:!0,parse:s,serialize:a},g={scheme:"https",domainHost:d.domainHost,parse:s,serialize:a},T={scheme:"ws",domainHost:!0,parse:o,serialize:l},y={scheme:"wss",domainHost:T.domainHost,parse:T.parse,serialize:T.serialize},b={http:d,https:g,ws:T,wss:y,urn:{scheme:"urn",parse:u,serialize:c,skipNormalize:!0},"urn:uuid":{scheme:"urn:uuid",parse:f,serialize:h,skipNormalize:!0}};Object.setPrototypeOf(b,null);function S(v){return v&&(b[v]||b[v.toLowerCase()])||void 0}return na={wsIsSecure:i,SCHEMES:b,isValidSchemeName:r,getSchemeHandler:S},na}var yu;function rb(){if(yu)return Bn.exports;yu=1;const{normalizeIPv6:e,removeDotSegments:t,recomposeAuthority:n,normalizeComponentEncoding:r,isIPv4:i,nonSimpleDomain:s}=mu(),{SCHEMES:a,getSchemeHandler:o}=nb();function l(y,m){return typeof y=="string"?y=h(g(y,m),m):typeof y=="object"&&(y=g(h(y,m),m)),y}function u(y,m,p){const b=p?Object.assign({scheme:"null"},p):{scheme:"null"},S=c(g(y,b),g(m,b),b,!0);return b.skipEscape=!0,h(S,b)}function c(y,m,p,b){const S={};return b||(y=g(h(y,p),p),m=g(h(m,p),p)),p=p||{},!p.tolerant&&m.scheme?(S.scheme=m.scheme,S.userinfo=m.userinfo,S.host=m.host,S.port=m.port,S.path=t(m.path||""),S.query=m.query):(m.userinfo!==void 0||m.host!==void 0||m.port!==void 0?(S.userinfo=m.userinfo,S.host=m.host,S.port=m.port,S.path=t(m.path||""),S.query=m.query):(m.path?(m.path[0]==="/"?S.path=t(m.path):((y.userinfo!==void 0||y.host!==void 0||y.port!==void 0)&&!y.path?S.path="/"+m.path:y.path?S.path=y.path.slice(0,y.path.lastIndexOf("/")+1)+m.path:S.path=m.path,S.path=t(S.path)),S.query=m.query):(S.path=y.path,m.query!==void 0?S.query=m.query:S.query=y.query),S.userinfo=y.userinfo,S.host=y.host,S.port=y.port),S.scheme=y.scheme),S.fragment=m.fragment,S}function f(y,m,p){return typeof y=="string"?(y=unescape(y),y=h(r(g(y,p),!0),{...p,skipEscape:!0})):typeof y=="object"&&(y=h(r(y,!0),{...p,skipEscape:!0})),typeof m=="string"?(m=unescape(m),m=h(r(g(m,p),!0),{...p,skipEscape:!0})):typeof m=="object"&&(m=h(r(m,!0),{...p,skipEscape:!0})),y.toLowerCase()===m.toLowerCase()}function h(y,m){const p={host:y.host,scheme:y.scheme,userinfo:y.userinfo,port:y.port,path:y.path,query:y.query,nid:y.nid,nss:y.nss,uuid:y.uuid,fragment:y.fragment,reference:y.reference,resourceName:y.resourceName,secure:y.secure,error:""},b=Object.assign({},m),S=[],v=o(b.scheme||p.scheme);v&&v.serialize&&v.serialize(p,b),p.path!==void 0&&(b.skipEscape?p.path=unescape(p.path):(p.path=escape(p.path),p.scheme!==void 0&&(p.path=p.path.split("%3A").join(":")))),b.reference!=="suffix"&&p.scheme&&S.push(p.scheme,":");const w=n(p);if(w!==void 0&&(b.reference!=="suffix"&&S.push("//"),S.push(w),p.path&&p.path[0]!=="/"&&S.push("/")),p.path!==void 0){let x=p.path;!b.absolutePath&&(!v||!v.absolutePath)&&(x=t(x)),w===void 0&&x[0]==="/"&&x[1]==="/"&&(x="/%2F"+x.slice(2)),S.push(x)}return p.query!==void 0&&S.push("?",p.query),p.fragment!==void 0&&S.push("#",p.fragment),S.join("")}const d=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function g(y,m){const p=Object.assign({},m),b={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0};let S=!1;p.reference==="suffix"&&(p.scheme?y=p.scheme+":"+y:y="//"+y);const v=y.match(d);if(v){if(b.scheme=v[1],b.userinfo=v[3],b.host=v[4],b.port=parseInt(v[5],10),b.path=v[6]||"",b.query=v[7],b.fragment=v[8],isNaN(b.port)&&(b.port=v[5]),b.host)if(i(b.host)===!1){const N=e(b.host);b.host=N.host.toLowerCase(),S=N.isIPV6}else S=!0;b.scheme===void 0&&b.userinfo===void 0&&b.host===void 0&&b.port===void 0&&b.query===void 0&&!b.path?b.reference="same-document":b.scheme===void 0?b.reference="relative":b.fragment===void 0?b.reference="absolute":b.reference="uri",p.reference&&p.reference!=="suffix"&&p.reference!==b.reference&&(b.error=b.error||"URI is not a "+p.reference+" reference.");const w=o(p.scheme||b.scheme);if(!p.unicodeSupport&&(!w||!w.unicodeSupport)&&b.host&&(p.domainHost||w&&w.domainHost)&&S===!1&&s(b.host))try{b.host=URL.domainToASCII(b.host.toLowerCase())}catch(x){b.error=b.error||"Host's domain name can not be converted to ASCII: "+x}(!w||w&&!w.skipNormalize)&&(y.indexOf("%")!==-1&&(b.scheme!==void 0&&(b.scheme=unescape(b.scheme)),b.host!==void 0&&(b.host=unescape(b.host))),b.path&&(b.path=escape(unescape(b.path))),b.fragment&&(b.fragment=encodeURI(decodeURIComponent(b.fragment)))),w&&w.parse&&w.parse(b,p)}else b.error=b.error||"URI can not be parsed.";return b}const T={SCHEMES:a,normalize:l,resolve:u,resolveComponent:c,equal:f,serialize:h,parse:g};return Bn.exports=T,Bn.exports.default=T,Bn.exports.fastUri=T,Bn.exports}var bu;function ib(){if(bu)return $r;bu=1,Object.defineProperty($r,"__esModule",{value:!0});const e=rb();return e.code='require("ajv/dist/runtime/uri").default',$r.default=e,$r}var wu;function sb(){return wu||(wu=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=xr();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var n=he();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return n._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return n.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return n.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return n.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return n.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return n.CodeGen}});const r=Qs(),i=Dr(),s=Xl(),a=ea(),o=he(),l=Sr(),u=Er(),c=me(),f=tb,h=ib(),d=(k,D)=>new RegExp(k,D);d.code="new RegExp";const g=["removeAdditional","useDefaults","coerceTypes"],T=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),y={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},m={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},p=200;function b(k){var D,I,_,E,P,M,X,J,ae,ne,C,R,z,G,Q,oe,Se,Oe,Pe,Ae,De,_t,Ue,Lt,vt;const L=k.strict,V=(D=k.code)===null||D===void 0?void 0:D.optimize,se=V===!0||V===void 0?1:V||0,ue=(_=(I=k.code)===null||I===void 0?void 0:I.regExp)!==null&&_!==void 0?_:d,ge=(E=k.uriResolver)!==null&&E!==void 0?E:h.default;return{strictSchema:(M=(P=k.strictSchema)!==null&&P!==void 0?P:L)!==null&&M!==void 0?M:!0,strictNumbers:(J=(X=k.strictNumbers)!==null&&X!==void 0?X:L)!==null&&J!==void 0?J:!0,strictTypes:(ne=(ae=k.strictTypes)!==null&&ae!==void 0?ae:L)!==null&&ne!==void 0?ne:"log",strictTuples:(R=(C=k.strictTuples)!==null&&C!==void 0?C:L)!==null&&R!==void 0?R:"log",strictRequired:(G=(z=k.strictRequired)!==null&&z!==void 0?z:L)!==null&&G!==void 0?G:!1,code:k.code?{...k.code,optimize:se,regExp:ue}:{optimize:se,regExp:ue},loopRequired:(Q=k.loopRequired)!==null&&Q!==void 0?Q:p,loopEnum:(oe=k.loopEnum)!==null&&oe!==void 0?oe:p,meta:(Se=k.meta)!==null&&Se!==void 0?Se:!0,messages:(Oe=k.messages)!==null&&Oe!==void 0?Oe:!0,inlineRefs:(Pe=k.inlineRefs)!==null&&Pe!==void 0?Pe:!0,schemaId:(Ae=k.schemaId)!==null&&Ae!==void 0?Ae:"$id",addUsedSchema:(De=k.addUsedSchema)!==null&&De!==void 0?De:!0,validateSchema:(_t=k.validateSchema)!==null&&_t!==void 0?_t:!0,validateFormats:(Ue=k.validateFormats)!==null&&Ue!==void 0?Ue:!0,unicodeRegExp:(Lt=k.unicodeRegExp)!==null&&Lt!==void 0?Lt:!0,int32range:(vt=k.int32range)!==null&&vt!==void 0?vt:!0,uriResolver:ge}}class S{constructor(D={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,D=this.opts={...D,...b(D)};const{es5:I,lines:_}=this.opts.code;this.scope=new o.ValueScope({scope:{},prefixes:T,es5:I,lines:_}),this.logger=U(D.logger);const E=D.validateFormats;D.validateFormats=!1,this.RULES=(0,s.getRules)(),v.call(this,y,D,"NOT SUPPORTED"),v.call(this,m,D,"DEPRECATED","warn"),this._metaOpts=A.call(this),D.formats&&N.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),D.keywords&&F.call(this,D.keywords),typeof D.meta=="object"&&this.addMetaSchema(D.meta),x.call(this),D.validateFormats=E}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:D,meta:I,schemaId:_}=this.opts;let E=f;_==="id"&&(E={...f},E.id=E.$id,delete E.$id),I&&D&&this.addMetaSchema(E,E[_],!1)}defaultMeta(){const{meta:D,schemaId:I}=this.opts;return this.opts.defaultMeta=typeof D=="object"?D[I]||D:void 0}validate(D,I){let _;if(typeof D=="string"){if(_=this.getSchema(D),!_)throw new Error(`no schema with key or ref "${D}"`)}else _=this.compile(D);const E=_(I);return"$async"in _||(this.errors=_.errors),E}compile(D,I){const _=this._addSchema(D,I);return _.validate||this._compileSchemaEnv(_)}compileAsync(D,I){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:_}=this.opts;return E.call(this,D,I);async function E(ne,C){await P.call(this,ne.$schema);const R=this._addSchema(ne,C);return R.validate||M.call(this,R)}async function P(ne){ne&&!this.getSchema(ne)&&await E.call(this,{$ref:ne},!0)}async function M(ne){try{return this._compileSchemaEnv(ne)}catch(C){if(!(C instanceof i.default))throw C;return X.call(this,C),await J.call(this,C.missingSchema),M.call(this,ne)}}function X({missingSchema:ne,missingRef:C}){if(this.refs[ne])throw new Error(`AnySchema ${ne} is loaded but ${C} cannot be resolved`)}async function J(ne){const C=await ae.call(this,ne);this.refs[ne]||await P.call(this,C.$schema),this.refs[ne]||this.addSchema(C,ne,I)}async function ae(ne){const C=this._loading[ne];if(C)return C;try{return await(this._loading[ne]=_(ne))}finally{delete this._loading[ne]}}}addSchema(D,I,_,E=this.opts.validateSchema){if(Array.isArray(D)){for(const M of D)this.addSchema(M,void 0,_,E);return this}let P;if(typeof D=="object"){const{schemaId:M}=this.opts;if(P=D[M],P!==void 0&&typeof P!="string")throw new Error(`schema ${M} must be string`)}return I=(0,l.normalizeId)(I||P),this._checkUnique(I),this.schemas[I]=this._addSchema(D,_,I,E,!0),this}addMetaSchema(D,I,_=this.opts.validateSchema){return this.addSchema(D,I,!0,_),this}validateSchema(D,I){if(typeof D=="boolean")return!0;let _;if(_=D.$schema,_!==void 0&&typeof _!="string")throw new Error("$schema must be a string");if(_=_||this.opts.defaultMeta||this.defaultMeta(),!_)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const E=this.validate(_,D);if(!E&&I){const P="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(P);else throw new Error(P)}return E}getSchema(D){let I;for(;typeof(I=w.call(this,D))=="string";)D=I;if(I===void 0){const{schemaId:_}=this.opts,E=new a.SchemaEnv({schema:{},schemaId:_});if(I=a.resolveSchema.call(this,E,D),!I)return;this.refs[D]=I}return I.validate||this._compileSchemaEnv(I)}removeSchema(D){if(D instanceof RegExp)return this._removeAllSchemas(this.schemas,D),this._removeAllSchemas(this.refs,D),this;switch(typeof D){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const I=w.call(this,D);return typeof I=="object"&&this._cache.delete(I.schema),delete this.schemas[D],delete this.refs[D],this}case"object":{const I=D;this._cache.delete(I);let _=D[this.opts.schemaId];return _&&(_=(0,l.normalizeId)(_),delete this.schemas[_],delete this.refs[_]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(D){for(const I of D)this.addKeyword(I);return this}addKeyword(D,I){let _;if(typeof D=="string")_=D,typeof I=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),I.keyword=_);else if(typeof D=="object"&&I===void 0){if(I=D,_=I.keyword,Array.isArray(_)&&!_.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(H.call(this,_,I),!I)return(0,c.eachItem)(_,P=>j.call(this,P)),this;Z.call(this,I);const E={...I,type:(0,u.getJSONTypes)(I.type),schemaType:(0,u.getJSONTypes)(I.schemaType)};return(0,c.eachItem)(_,E.type.length===0?P=>j.call(this,P,E):P=>E.type.forEach(M=>j.call(this,P,E,M))),this}getKeyword(D){const I=this.RULES.all[D];return typeof I=="object"?I.definition:!!I}removeKeyword(D){const{RULES:I}=this;delete I.keywords[D],delete I.all[D];for(const _ of I.rules){const E=_.rules.findIndex(P=>P.keyword===D);E>=0&&_.rules.splice(E,1)}return this}addFormat(D,I){return typeof I=="string"&&(I=new RegExp(I)),this.formats[D]=I,this}errorsText(D=this.errors,{separator:I=", ",dataVar:_="data"}={}){return!D||D.length===0?"No errors":D.map(E=>`${_}${E.instancePath} ${E.message}`).reduce((E,P)=>E+I+P)}$dataMetaSchema(D,I){const _=this.RULES.all;D=JSON.parse(JSON.stringify(D));for(const E of I){const P=E.split("/").slice(1);let M=D;for(const X of P)M=M[X];for(const X in _){const J=_[X];if(typeof J!="object")continue;const{$data:ae}=J.definition,ne=M[X];ae&&ne&&(M[X]=ee(ne))}}return D}_removeAllSchemas(D,I){for(const _ in D){const E=D[_];(!I||I.test(_))&&(typeof E=="string"?delete D[_]:E&&!E.meta&&(this._cache.delete(E.schema),delete D[_]))}}_addSchema(D,I,_,E=this.opts.validateSchema,P=this.opts.addUsedSchema){let M;const{schemaId:X}=this.opts;if(typeof D=="object")M=D[X];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof D!="boolean")throw new Error("schema must be object or boolean")}let J=this._cache.get(D);if(J!==void 0)return J;_=(0,l.normalizeId)(M||_);const ae=l.getSchemaRefs.call(this,D,_);return J=new a.SchemaEnv({schema:D,schemaId:X,meta:I,baseId:_,localRefs:ae}),this._cache.set(J.schema,J),P&&!_.startsWith("#")&&(_&&this._checkUnique(_),this.refs[_]=J),E&&this.validateSchema(D,!0),J}_checkUnique(D){if(this.schemas[D]||this.refs[D])throw new Error(`schema with key or id "${D}" already exists`)}_compileSchemaEnv(D){if(D.meta?this._compileMetaSchema(D):a.compileSchema.call(this,D),!D.validate)throw new Error("ajv implementation error");return D.validate}_compileMetaSchema(D){const I=this.opts;this.opts=this._metaOpts;try{a.compileSchema.call(this,D)}finally{this.opts=I}}}S.ValidationError=r.default,S.MissingRefError=i.default,e.default=S;function v(k,D,I,_="error"){for(const E in k){const P=E;P in D&&this.logger[_](`${I}: option ${E}. ${k[P]}`)}}function w(k){return k=(0,l.normalizeId)(k),this.schemas[k]||this.refs[k]}function x(){const k=this.opts.schemas;if(k)if(Array.isArray(k))this.addSchema(k);else for(const D in k)this.addSchema(k[D],D)}function N(){for(const k in this.opts.formats){const D=this.opts.formats[k];D&&this.addFormat(k,D)}}function F(k){if(Array.isArray(k)){this.addVocabulary(k);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const D in k){const I=k[D];I.keyword||(I.keyword=D),this.addKeyword(I)}}function A(){const k={...this.opts};for(const D of g)delete k[D];return k}const O={log(){},warn(){},error(){}};function U(k){if(k===!1)return O;if(k===void 0)return console;if(k.log&&k.warn&&k.error)return k;throw new Error("logger must implement log, warn and error methods")}const K=/^[a-z_$][a-z0-9_$:-]*$/i;function H(k,D){const{RULES:I}=this;if((0,c.eachItem)(k,_=>{if(I.keywords[_])throw new Error(`Keyword ${_} is already defined`);if(!K.test(_))throw new Error(`Keyword ${_} has invalid name`)}),!!D&&D.$data&&!("code"in D||"validate"in D))throw new Error('$data keyword must have "code" or "validate" function')}function j(k,D,I){var _;const E=D?.post;if(I&&E)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:P}=this;let M=E?P.post:P.rules.find(({type:J})=>J===I);if(M||(M={type:I,rules:[]},P.rules.push(M)),P.keywords[k]=!0,!D)return;const X={keyword:k,definition:{...D,type:(0,u.getJSONTypes)(D.type),schemaType:(0,u.getJSONTypes)(D.schemaType)}};D.before?B.call(this,M,X,D.before):M.rules.push(X),P.all[k]=X,(_=D.implements)===null||_===void 0||_.forEach(J=>this.addKeyword(J))}function B(k,D,I){const _=k.rules.findIndex(E=>E.keyword===I);_>=0?k.rules.splice(_,0,D):(k.rules.push(D),this.logger.warn(`rule ${I} is not defined`))}function Z(k){let{metaSchema:D}=k;D!==void 0&&(k.$data&&this.opts.$data&&(D=ee(D)),k.validateSchema=this.compile(D,!0))}const q={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function ee(k){return{anyOf:[k,q]}}})(Ws)),Ws}var Cr={},Or={},Rr={},_u;function ab(){if(_u)return Rr;_u=1,Object.defineProperty(Rr,"__esModule",{value:!0});const e={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};return Rr.default=e,Rr}var Ht={},vu;function ob(){if(vu)return Ht;vu=1,Object.defineProperty(Ht,"__esModule",{value:!0}),Ht.callRef=Ht.getValidate=void 0;const e=Dr(),t=bt(),n=he(),r=qt(),i=ea(),s=me(),a={keyword:"$ref",schemaType:"string",code(u){const{gen:c,schema:f,it:h}=u,{baseId:d,schemaEnv:g,validateName:T,opts:y,self:m}=h,{root:p}=g;if((f==="#"||f==="#/")&&d===p.baseId)return S();const b=i.resolveRef.call(m,p,d,f);if(b===void 0)throw new e.default(h.opts.uriResolver,d,f);if(b instanceof i.SchemaEnv)return v(b);return w(b);function S(){if(g===p)return l(u,T,g,g.$async);const x=c.scopeValue("root",{ref:p});return l(u,(0,n._)`${x}.validate`,p,p.$async)}function v(x){const N=o(u,x);l(u,N,x,x.$async)}function w(x){const N=c.scopeValue("schema",y.code.source===!0?{ref:x,code:(0,n.stringify)(x)}:{ref:x}),F=c.name("valid"),A=u.subschema({schema:x,dataTypes:[],schemaPath:n.nil,topSchemaRef:N,errSchemaPath:f},F);u.mergeEvaluated(A),u.ok(F)}}};function o(u,c){const{gen:f}=u;return c.validate?f.scopeValue("validate",{ref:c.validate}):(0,n._)`${f.scopeValue("wrapper",{ref:c})}.validate`}Ht.getValidate=o;function l(u,c,f,h){const{gen:d,it:g}=u,{allErrors:T,schemaEnv:y,opts:m}=g,p=m.passContext?r.default.this:n.nil;h?b():S();function b(){if(!y.$async)throw new Error("async schema referenced by sync schema");const x=d.let("valid");d.try(()=>{d.code((0,n._)`await ${(0,t.callValidateCode)(u,c,p)}`),w(c),T||d.assign(x,!0)},N=>{d.if((0,n._)`!(${N} instanceof ${g.ValidationError})`,()=>d.throw(N)),v(N),T||d.assign(x,!1)}),u.ok(x)}function S(){u.result((0,t.callValidateCode)(u,c,p),()=>w(c),()=>v(c))}function v(x){const N=(0,n._)`${x}.errors`;d.assign(r.default.vErrors,(0,n._)`${r.default.vErrors} === null ? ${N} : ${r.default.vErrors}.concat(${N})`),d.assign(r.default.errors,(0,n._)`${r.default.vErrors}.length`)}function w(x){var N;if(!g.opts.unevaluated)return;const F=(N=f?.validate)===null||N===void 0?void 0:N.evaluated;if(g.props!==!0)if(F&&!F.dynamicProps)F.props!==void 0&&(g.props=s.mergeEvaluated.props(d,F.props,g.props));else{const A=d.var("props",(0,n._)`${x}.evaluated.props`);g.props=s.mergeEvaluated.props(d,A,g.props,n.Name)}if(g.items!==!0)if(F&&!F.dynamicItems)F.items!==void 0&&(g.items=s.mergeEvaluated.items(d,F.items,g.items));else{const A=d.var("items",(0,n._)`${x}.evaluated.items`);g.items=s.mergeEvaluated.items(d,A,g.items,n.Name)}}}return Ht.callRef=l,Ht.default=a,Ht}var Tu;function lb(){if(Tu)return Or;Tu=1,Object.defineProperty(Or,"__esModule",{value:!0});const e=ab(),t=ob(),n=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",e.default,t.default];return Or.default=n,Or}var Nr={},Mr={},ku;function ub(){if(ku)return Mr;ku=1,Object.defineProperty(Mr,"__esModule",{value:!0});const e=he(),t=e.operators,n={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}},r={message:({keyword:s,schemaCode:a})=>(0,e.str)`must be ${n[s].okStr} ${a}`,params:({keyword:s,schemaCode:a})=>(0,e._)`{comparison: ${n[s].okStr}, limit: ${a}}`},i={keyword:Object.keys(n),type:"number",schemaType:"number",$data:!0,error:r,code(s){const{keyword:a,data:o,schemaCode:l}=s;s.fail$data((0,e._)`${o} ${n[a].fail} ${l} || isNaN(${o})`)}};return Mr.default=i,Mr}var Ir={},Eu;function cb(){if(Eu)return Ir;Eu=1,Object.defineProperty(Ir,"__esModule",{value:!0});const e=he(),n={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:r})=>(0,e.str)`must be multiple of ${r}`,params:({schemaCode:r})=>(0,e._)`{multipleOf: ${r}}`},code(r){const{gen:i,data:s,schemaCode:a,it:o}=r,l=o.opts.multipleOfPrecision,u=i.let("res"),c=l?(0,e._)`Math.abs(Math.round(${u}) - ${u}) > 1e-${l}`:(0,e._)`${u} !== parseInt(${u})`;r.fail$data((0,e._)`(${a} === 0 || (${u} = ${s}/${a}, ${c}))`)}};return Ir.default=n,Ir}var Lr={},Fr={},Su;function fb(){if(Su)return Fr;Su=1,Object.defineProperty(Fr,"__esModule",{value:!0});function e(t){const n=t.length;let r=0,i=0,s;for(;i<n;)r++,s=t.charCodeAt(i++),s>=55296&&s<=56319&&i<n&&(s=t.charCodeAt(i),(s&64512)===56320&&i++);return r}return Fr.default=e,e.code='require("ajv/dist/runtime/ucs2length").default',Fr}var xu;function db(){if(xu)return Lr;xu=1,Object.defineProperty(Lr,"__esModule",{value:!0});const e=he(),t=me(),n=fb(),i={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:s,schemaCode:a}){const o=s==="maxLength"?"more":"fewer";return(0,e.str)`must NOT have ${o} than ${a} characters`},params:({schemaCode:s})=>(0,e._)`{limit: ${s}}`},code(s){const{keyword:a,data:o,schemaCode:l,it:u}=s,c=a==="maxLength"?e.operators.GT:e.operators.LT,f=u.opts.unicode===!1?(0,e._)`${o}.length`:(0,e._)`${(0,t.useFunc)(s.gen,n.default)}(${o})`;s.fail$data((0,e._)`${f} ${c} ${l}`)}};return Lr.default=i,Lr}var jr={},Pu;function hb(){if(Pu)return jr;Pu=1,Object.defineProperty(jr,"__esModule",{value:!0});const e=bt(),t=me(),n=he(),i={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:s})=>(0,n.str)`must match pattern "${s}"`,params:({schemaCode:s})=>(0,n._)`{pattern: ${s}}`},code(s){const{gen:a,data:o,$data:l,schema:u,schemaCode:c,it:f}=s,h=f.opts.unicodeRegExp?"u":"";if(l){const{regExp:d}=f.opts.code,g=d.code==="new RegExp"?(0,n._)`new RegExp`:(0,t.useFunc)(a,d),T=a.let("valid");a.try(()=>a.assign(T,(0,n._)`${g}(${c}, ${h}).test(${o})`),()=>a.assign(T,!1)),s.fail$data((0,n._)`!${T}`)}else{const d=(0,e.usePattern)(s,u);s.fail$data((0,n._)`!${d}.test(${o})`)}}};return jr.default=i,jr}var zr={},Au;function pb(){if(Au)return zr;Au=1,Object.defineProperty(zr,"__esModule",{value:!0});const e=he(),n={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:r,schemaCode:i}){const s=r==="maxProperties"?"more":"fewer";return(0,e.str)`must NOT have ${s} than ${i} properties`},params:({schemaCode:r})=>(0,e._)`{limit: ${r}}`},code(r){const{keyword:i,data:s,schemaCode:a}=r,o=i==="maxProperties"?e.operators.GT:e.operators.LT;r.fail$data((0,e._)`Object.keys(${s}).length ${o} ${a}`)}};return zr.default=n,zr}var Ur={},Du;function mb(){if(Du)return Ur;Du=1,Object.defineProperty(Ur,"__esModule",{value:!0});const e=bt(),t=he(),n=me(),i={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:s}})=>(0,t.str)`must have required property '${s}'`,params:({params:{missingProperty:s}})=>(0,t._)`{missingProperty: ${s}}`},code(s){const{gen:a,schema:o,schemaCode:l,data:u,$data:c,it:f}=s,{opts:h}=f;if(!c&&o.length===0)return;const d=o.length>=h.loopRequired;if(f.allErrors?g():T(),h.strictRequired){const p=s.parentSchema.properties,{definedProperties:b}=s.it;for(const S of o)if(p?.[S]===void 0&&!b.has(S)){const v=f.schemaEnv.baseId+f.errSchemaPath,w=`required property "${S}" is not defined at "${v}" (strictRequired)`;(0,n.checkStrictMode)(f,w,f.opts.strictRequired)}}function g(){if(d||c)s.block$data(t.nil,y);else for(const p of o)(0,e.checkReportMissingProp)(s,p)}function T(){const p=a.let("missing");if(d||c){const b=a.let("valid",!0);s.block$data(b,()=>m(p,b)),s.ok(b)}else a.if((0,e.checkMissingProp)(s,o,p)),(0,e.reportMissingProp)(s,p),a.else()}function y(){a.forOf("prop",l,p=>{s.setParams({missingProperty:p}),a.if((0,e.noPropertyInData)(a,u,p,h.ownProperties),()=>s.error())})}function m(p,b){s.setParams({missingProperty:p}),a.forOf(p,l,()=>{a.assign(b,(0,e.propertyInData)(a,u,p,h.ownProperties)),a.if((0,t.not)(b),()=>{s.error(),a.break()})},t.nil)}}};return Ur.default=i,Ur}var qr={},$u;function gb(){if($u)return qr;$u=1,Object.defineProperty(qr,"__esModule",{value:!0});const e=he(),n={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:r,schemaCode:i}){const s=r==="maxItems"?"more":"fewer";return(0,e.str)`must NOT have ${s} than ${i} items`},params:({schemaCode:r})=>(0,e._)`{limit: ${r}}`},code(r){const{keyword:i,data:s,schemaCode:a}=r,o=i==="maxItems"?e.operators.GT:e.operators.LT;r.fail$data((0,e._)`${s}.length ${o} ${a}`)}};return qr.default=n,qr}var Hr={},Br={},Cu;function ra(){if(Cu)return Br;Cu=1,Object.defineProperty(Br,"__esModule",{value:!0});const e=ou();return e.code='require("ajv/dist/runtime/equal").default',Br.default=e,Br}var Ou;function yb(){if(Ou)return Hr;Ou=1,Object.defineProperty(Hr,"__esModule",{value:!0});const e=Er(),t=he(),n=me(),r=ra(),s={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:a,j:o}})=>(0,t.str)`must NOT have duplicate items (items ## ${o} and ${a} are identical)`,params:({params:{i:a,j:o}})=>(0,t._)`{i: ${a}, j: ${o}}`},code(a){const{gen:o,data:l,$data:u,schema:c,parentSchema:f,schemaCode:h,it:d}=a;if(!u&&!c)return;const g=o.let("valid"),T=f.items?(0,e.getSchemaTypes)(f.items):[];a.block$data(g,y,(0,t._)`${h} === false`),a.ok(g);function y(){const S=o.let("i",(0,t._)`${l}.length`),v=o.let("j");a.setParams({i:S,j:v}),o.assign(g,!0),o.if((0,t._)`${S} > 1`,()=>(m()?p:b)(S,v))}function m(){return T.length>0&&!T.some(S=>S==="object"||S==="array")}function p(S,v){const w=o.name("item"),x=(0,e.checkDataTypes)(T,w,d.opts.strictNumbers,e.DataType.Wrong),N=o.const("indices",(0,t._)`{}`);o.for((0,t._)`;${S}--;`,()=>{o.let(w,(0,t._)`${l}[${S}]`),o.if(x,(0,t._)`continue`),T.length>1&&o.if((0,t._)`typeof ${w} == "string"`,(0,t._)`${w} += "_"`),o.if((0,t._)`typeof ${N}[${w}] == "number"`,()=>{o.assign(v,(0,t._)`${N}[${w}]`),a.error(),o.assign(g,!1).break()}).code((0,t._)`${N}[${w}] = ${S}`)})}function b(S,v){const w=(0,n.useFunc)(o,r.default),x=o.name("outer");o.label(x).for((0,t._)`;${S}--;`,()=>o.for((0,t._)`${v} = ${S}; ${v}--;`,()=>o.if((0,t._)`${w}(${l}[${S}], ${l}[${v}])`,()=>{a.error(),o.assign(g,!1).break(x)})))}}};return Hr.default=s,Hr}var Vr={},Ru;function bb(){if(Ru)return Vr;Ru=1,Object.defineProperty(Vr,"__esModule",{value:!0});const e=he(),t=me(),n=ra(),i={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:s})=>(0,e._)`{allowedValue: ${s}}`},code(s){const{gen:a,data:o,$data:l,schemaCode:u,schema:c}=s;l||c&&typeof c=="object"?s.fail$data((0,e._)`!${(0,t.useFunc)(a,n.default)}(${o}, ${u})`):s.fail((0,e._)`${c} !== ${o}`)}};return Vr.default=i,Vr}var Wr={},Nu;function wb(){if(Nu)return Wr;Nu=1,Object.defineProperty(Wr,"__esModule",{value:!0});const e=he(),t=me(),n=ra(),i={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:s})=>(0,e._)`{allowedValues: ${s}}`},code(s){const{gen:a,data:o,$data:l,schema:u,schemaCode:c,it:f}=s;if(!l&&u.length===0)throw new Error("enum must have non-empty array");const h=u.length>=f.opts.loopEnum;let d;const g=()=>d??(d=(0,t.useFunc)(a,n.default));let T;if(h||l)T=a.let("valid"),s.block$data(T,y);else{if(!Array.isArray(u))throw new Error("ajv implementation error");const p=a.const("vSchema",c);T=(0,e.or)(...u.map((b,S)=>m(p,S)))}s.pass(T);function y(){a.assign(T,!1),a.forOf("v",c,p=>a.if((0,e._)`${g()}(${o}, ${p})`,()=>a.assign(T,!0).break()))}function m(p,b){const S=u[b];return typeof S=="object"&&S!==null?(0,e._)`${g()}(${o}, ${p}[${b}])`:(0,e._)`${o} === ${S}`}}};return Wr.default=i,Wr}var Mu;function _b(){if(Mu)return Nr;Mu=1,Object.defineProperty(Nr,"__esModule",{value:!0});const e=ub(),t=cb(),n=db(),r=hb(),i=pb(),s=mb(),a=gb(),o=yb(),l=bb(),u=wb(),c=[e.default,t.default,n.default,r.default,i.default,s.default,a.default,o.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},l.default,u.default];return Nr.default=c,Nr}var Yr={},gn={},Iu;function Lu(){if(Iu)return gn;Iu=1,Object.defineProperty(gn,"__esModule",{value:!0}),gn.validateAdditionalItems=void 0;const e=he(),t=me(),r={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],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{parentSchema:a,it:o}=s,{items:l}=a;if(!Array.isArray(l)){(0,t.checkStrictMode)(o,'"additionalItems" is ignored when "items" is not an array of schemas');return}i(s,l)}};function i(s,a){const{gen:o,schema:l,data:u,keyword:c,it:f}=s;f.items=!0;const h=o.const("len",(0,e._)`${u}.length`);if(l===!1)s.setParams({len:a.length}),s.pass((0,e._)`${h} <= ${a.length}`);else if(typeof l=="object"&&!(0,t.alwaysValidSchema)(f,l)){const g=o.var("valid",(0,e._)`${h} <= ${a.length}`);o.if((0,e.not)(g),()=>d(g)),s.ok(g)}function d(g){o.forRange("i",a.length,h,T=>{s.subschema({keyword:c,dataProp:T,dataPropType:t.Type.Num},g),f.allErrors||o.if((0,e.not)(g),()=>o.break())})}}return gn.validateAdditionalItems=i,gn.default=r,gn}var Gr={},yn={},Fu;function ju(){if(Fu)return yn;Fu=1,Object.defineProperty(yn,"__esModule",{value:!0}),yn.validateTuple=void 0;const e=he(),t=me(),n=bt(),r={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(s){const{schema:a,it:o}=s;if(Array.isArray(a))return i(s,"additionalItems",a);o.items=!0,!(0,t.alwaysValidSchema)(o,a)&&s.ok((0,n.validateArray)(s))}};function i(s,a,o=s.schema){const{gen:l,parentSchema:u,data:c,keyword:f,it:h}=s;T(u),h.opts.unevaluated&&o.length&&h.items!==!0&&(h.items=t.mergeEvaluated.items(l,o.length,h.items));const d=l.name("valid"),g=l.const("len",(0,e._)`${c}.length`);o.forEach((y,m)=>{(0,t.alwaysValidSchema)(h,y)||(l.if((0,e._)`${g} > ${m}`,()=>s.subschema({keyword:f,schemaProp:m,dataProp:m},d)),s.ok(d))});function T(y){const{opts:m,errSchemaPath:p}=h,b=o.length,S=b===y.minItems&&(b===y.maxItems||y[a]===!1);if(m.strictTuples&&!S){const v=`"${f}" is ${b}-tuple, but minItems or maxItems/${a} are not specified or different at path "${p}"`;(0,t.checkStrictMode)(h,v,m.strictTuples)}}}return yn.validateTuple=i,yn.default=r,yn}var zu;function vb(){if(zu)return Gr;zu=1,Object.defineProperty(Gr,"__esModule",{value:!0});const e=ju(),t={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:n=>(0,e.validateTuple)(n,"items")};return Gr.default=t,Gr}var Kr={},Uu;function Tb(){if(Uu)return Kr;Uu=1,Object.defineProperty(Kr,"__esModule",{value:!0});const e=he(),t=me(),n=bt(),r=Lu(),s={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:a}})=>(0,e.str)`must NOT have more than ${a} items`,params:({params:{len:a}})=>(0,e._)`{limit: ${a}}`},code(a){const{schema:o,parentSchema:l,it:u}=a,{prefixItems:c}=l;u.items=!0,!(0,t.alwaysValidSchema)(u,o)&&(c?(0,r.validateAdditionalItems)(a,c):a.ok((0,n.validateArray)(a)))}};return Kr.default=s,Kr}var Zr={},qu;function kb(){if(qu)return Zr;qu=1,Object.defineProperty(Zr,"__esModule",{value:!0});const e=he(),t=me(),r={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:i,max:s}})=>s===void 0?(0,e.str)`must contain at least ${i} valid item(s)`:(0,e.str)`must contain at least ${i} and no more than ${s} valid item(s)`,params:({params:{min:i,max:s}})=>s===void 0?(0,e._)`{minContains: ${i}}`:(0,e._)`{minContains: ${i}, maxContains: ${s}}`},code(i){const{gen:s,schema:a,parentSchema:o,data:l,it:u}=i;let c,f;const{minContains:h,maxContains:d}=o;u.opts.next?(c=h===void 0?1:h,f=d):c=1;const g=s.const("len",(0,e._)`${l}.length`);if(i.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'),i.fail();return}if((0,t.alwaysValidSchema)(u,a)){let b=(0,e._)`${g} >= ${c}`;f!==void 0&&(b=(0,e._)`${b} && ${g} <= ${f}`),i.pass(b);return}u.items=!0;const T=s.name("valid");f===void 0&&c===1?m(T,()=>s.if(T,()=>s.break())):c===0?(s.let(T,!0),f!==void 0&&s.if((0,e._)`${l}.length > 0`,y)):(s.let(T,!1),y()),i.result(T,()=>i.reset());function y(){const b=s.name("_valid"),S=s.let("count",0);m(b,()=>s.if(b,()=>p(S)))}function m(b,S){s.forRange("i",0,g,v=>{i.subschema({keyword:"contains",dataProp:v,dataPropType:t.Type.Num,compositeRule:!0},b),S()})}function p(b){s.code((0,e._)`${b}++`),f===void 0?s.if((0,e._)`${b} >= ${c}`,()=>s.assign(T,!0).break()):(s.if((0,e._)`${b} > ${f}`,()=>s.assign(T,!1).break()),c===1?s.assign(T,!0):s.if((0,e._)`${b} >= ${c}`,()=>s.assign(T,!0)))}}};return Zr.default=r,Zr}var ia={},Hu;function Eb(){return Hu||(Hu=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=he(),n=me(),r=bt();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},
58
- missingProperty: ${f},
59
- depsCount: ${u},
60
- deps: ${c}}`};const i={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(l){const[u,c]=s(l);a(l,u),o(l,c)}};function s({schema:l}){const u={},c={};for(const f in l){if(f==="__proto__")continue;const h=Array.isArray(l[f])?u:c;h[f]=l[f]}return[u,c]}function a(l,u=l.schema){const{gen:c,data:f,it:h}=l;if(Object.keys(u).length===0)return;const d=c.let("missing");for(const g in u){const T=u[g];if(T.length===0)continue;const y=(0,r.propertyInData)(c,f,g,h.opts.ownProperties);l.setParams({property:g,depsCount:T.length,deps:T.join(", ")}),h.allErrors?c.if(y,()=>{for(const m of T)(0,r.checkReportMissingProp)(l,m)}):(c.if((0,t._)`${y} && (${(0,r.checkMissingProp)(l,T,d)})`),(0,r.reportMissingProp)(l,d),c.else())}}e.validatePropertyDeps=a;function o(l,u=l.schema){const{gen:c,data:f,keyword:h,it:d}=l,g=c.name("valid");for(const T in u)(0,n.alwaysValidSchema)(d,u[T])||(c.if((0,r.propertyInData)(c,f,T,d.opts.ownProperties),()=>{const y=l.subschema({keyword:h,schemaProp:T},g);l.mergeValidEvaluated(y,g)},()=>c.var(g,!0)),l.ok(g))}e.validateSchemaDeps=o,e.default=i})(ia)),ia}var Jr={},Bu;function Sb(){if(Bu)return Jr;Bu=1,Object.defineProperty(Jr,"__esModule",{value:!0});const e=he(),t=me(),r={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:i})=>(0,e._)`{propertyName: ${i.propertyName}}`},code(i){const{gen:s,schema:a,data:o,it:l}=i;if((0,t.alwaysValidSchema)(l,a))return;const u=s.name("valid");s.forIn("key",o,c=>{i.setParams({propertyName:c}),i.subschema({keyword:"propertyNames",data:c,dataTypes:["string"],propertyName:c,compositeRule:!0},u),s.if((0,e.not)(u),()=>{i.error(!0),l.allErrors||s.break()})}),i.ok(u)}};return Jr.default=r,Jr}var Xr={},Vu;function Wu(){if(Vu)return Xr;Vu=1,Object.defineProperty(Xr,"__esModule",{value:!0});const e=bt(),t=he(),n=qt(),r=me(),s={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:a})=>(0,t._)`{additionalProperty: ${a.additionalProperty}}`},code(a){const{gen:o,schema:l,parentSchema:u,data:c,errsCount:f,it:h}=a;if(!f)throw new Error("ajv implementation error");const{allErrors:d,opts:g}=h;if(h.props=!0,g.removeAdditional!=="all"&&(0,r.alwaysValidSchema)(h,l))return;const T=(0,e.allSchemaProperties)(u.properties),y=(0,e.allSchemaProperties)(u.patternProperties);m(),a.ok((0,t._)`${f} === ${n.default.errors}`);function m(){o.forIn("key",c,w=>{!T.length&&!y.length?S(w):o.if(p(w),()=>S(w))})}function p(w){let x;if(T.length>8){const N=(0,r.schemaRefOrVal)(h,u.properties,"properties");x=(0,e.isOwnProperty)(o,N,w)}else T.length?x=(0,t.or)(...T.map(N=>(0,t._)`${w} === ${N}`)):x=t.nil;return y.length&&(x=(0,t.or)(x,...y.map(N=>(0,t._)`${(0,e.usePattern)(a,N)}.test(${w})`))),(0,t.not)(x)}function b(w){o.code((0,t._)`delete ${c}[${w}]`)}function S(w){if(g.removeAdditional==="all"||g.removeAdditional&&l===!1){b(w);return}if(l===!1){a.setParams({additionalProperty:w}),a.error(),d||o.break();return}if(typeof l=="object"&&!(0,r.alwaysValidSchema)(h,l)){const x=o.name("valid");g.removeAdditional==="failing"?(v(w,x,!1),o.if((0,t.not)(x),()=>{a.reset(),b(w)})):(v(w,x),d||o.if((0,t.not)(x),()=>o.break()))}}function v(w,x,N){const F={keyword:"additionalProperties",dataProp:w,dataPropType:r.Type.Str};N===!1&&Object.assign(F,{compositeRule:!0,createErrors:!1,allErrors:!1}),a.subschema(F,x)}}};return Xr.default=s,Xr}var Qr={},Yu;function xb(){if(Yu)return Qr;Yu=1,Object.defineProperty(Qr,"__esModule",{value:!0});const e=xr(),t=bt(),n=me(),r=Wu(),i={keyword:"properties",type:"object",schemaType:"object",code(s){const{gen:a,schema:o,parentSchema:l,data:u,it:c}=s;c.opts.removeAdditional==="all"&&l.additionalProperties===void 0&&r.default.code(new e.KeywordCxt(c,r.default,"additionalProperties"));const f=(0,t.allSchemaProperties)(o);for(const y of f)c.definedProperties.add(y);c.opts.unevaluated&&f.length&&c.props!==!0&&(c.props=n.mergeEvaluated.props(a,(0,n.toHash)(f),c.props));const h=f.filter(y=>!(0,n.alwaysValidSchema)(c,o[y]));if(h.length===0)return;const d=a.name("valid");for(const y of h)g(y)?T(y):(a.if((0,t.propertyInData)(a,u,y,c.opts.ownProperties)),T(y),c.allErrors||a.else().var(d,!0),a.endIf()),s.it.definedProperties.add(y),s.ok(d);function g(y){return c.opts.useDefaults&&!c.compositeRule&&o[y].default!==void 0}function T(y){s.subschema({keyword:"properties",schemaProp:y,dataProp:y},d)}}};return Qr.default=i,Qr}var ei={},Gu;function Pb(){if(Gu)return ei;Gu=1,Object.defineProperty(ei,"__esModule",{value:!0});const e=bt(),t=he(),n=me(),r=me(),i={keyword:"patternProperties",type:"object",schemaType:"object",code(s){const{gen:a,schema:o,data:l,parentSchema:u,it:c}=s,{opts:f}=c,h=(0,e.allSchemaProperties)(o),d=h.filter(S=>(0,n.alwaysValidSchema)(c,o[S]));if(h.length===0||d.length===h.length&&(!c.opts.unevaluated||c.props===!0))return;const g=f.strictSchema&&!f.allowMatchingProperties&&u.properties,T=a.name("valid");c.props!==!0&&!(c.props instanceof t.Name)&&(c.props=(0,r.evaluatedPropsToName)(a,c.props));const{props:y}=c;m();function m(){for(const S of h)g&&p(S),c.allErrors?b(S):(a.var(T,!0),b(S),a.if(T))}function p(S){for(const v in g)new RegExp(S).test(v)&&(0,n.checkStrictMode)(c,`property ${v} matches pattern ${S} (use allowMatchingProperties)`)}function b(S){a.forIn("key",l,v=>{a.if((0,t._)`${(0,e.usePattern)(s,S)}.test(${v})`,()=>{const w=d.includes(S);w||s.subschema({keyword:"patternProperties",schemaProp:S,dataProp:v,dataPropType:r.Type.Str},T),c.opts.unevaluated&&y!==!0?a.assign((0,t._)`${y}[${v}]`,!0):!w&&!c.allErrors&&a.if((0,t.not)(T),()=>a.break())})})}}};return ei.default=i,ei}var ti={},Ku;function Ab(){if(Ku)return ti;Ku=1,Object.defineProperty(ti,"__esModule",{value:!0});const e=me(),t={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(n){const{gen:r,schema:i,it:s}=n;if((0,e.alwaysValidSchema)(s,i)){n.fail();return}const a=r.name("valid");n.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},a),n.failResult(a,()=>n.reset(),()=>n.error())},error:{message:"must NOT be valid"}};return ti.default=t,ti}var ni={},Zu;function Db(){if(Zu)return ni;Zu=1,Object.defineProperty(ni,"__esModule",{value:!0});const t={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:bt().validateUnion,error:{message:"must match a schema in anyOf"}};return ni.default=t,ni}var ri={},Ju;function $b(){if(Ju)return ri;Ju=1,Object.defineProperty(ri,"__esModule",{value:!0});const e=he(),t=me(),r={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:i})=>(0,e._)`{passingSchemas: ${i.passing}}`},code(i){const{gen:s,schema:a,parentSchema:o,it:l}=i;if(!Array.isArray(a))throw new Error("ajv implementation error");if(l.opts.discriminator&&o.discriminator)return;const u=a,c=s.let("valid",!1),f=s.let("passing",null),h=s.name("_valid");i.setParams({passing:f}),s.block(d),i.result(c,()=>i.reset(),()=>i.error(!0));function d(){u.forEach((g,T)=>{let y;(0,t.alwaysValidSchema)(l,g)?s.var(h,!0):y=i.subschema({keyword:"oneOf",schemaProp:T,compositeRule:!0},h),T>0&&s.if((0,e._)`${h} && ${c}`).assign(c,!1).assign(f,(0,e._)`[${f}, ${T}]`).else(),s.if(h,()=>{s.assign(c,!0),s.assign(f,T),y&&i.mergeEvaluated(y,e.Name)})})}}};return ri.default=r,ri}var ii={},Xu;function Cb(){if(Xu)return ii;Xu=1,Object.defineProperty(ii,"__esModule",{value:!0});const e=me(),t={keyword:"allOf",schemaType:"array",code(n){const{gen:r,schema:i,it:s}=n;if(!Array.isArray(i))throw new Error("ajv implementation error");const a=r.name("valid");i.forEach((o,l)=>{if((0,e.alwaysValidSchema)(s,o))return;const u=n.subschema({keyword:"allOf",schemaProp:l},a);n.ok(a),n.mergeEvaluated(u)})}};return ii.default=t,ii}var si={},Qu;function Ob(){if(Qu)return si;Qu=1,Object.defineProperty(si,"__esModule",{value:!0});const e=he(),t=me(),r={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:s})=>(0,e.str)`must match "${s.ifClause}" schema`,params:({params:s})=>(0,e._)`{failingKeyword: ${s.ifClause}}`},code(s){const{gen:a,parentSchema:o,it:l}=s;o.then===void 0&&o.else===void 0&&(0,t.checkStrictMode)(l,'"if" without "then" and "else" is ignored');const u=i(l,"then"),c=i(l,"else");if(!u&&!c)return;const f=a.let("valid",!0),h=a.name("_valid");if(d(),s.reset(),u&&c){const T=a.let("ifClause");s.setParams({ifClause:T}),a.if(h,g("then",T),g("else",T))}else u?a.if(h,g("then")):a.if((0,e.not)(h),g("else"));s.pass(f,()=>s.error(!0));function d(){const T=s.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},h);s.mergeEvaluated(T)}function g(T,y){return()=>{const m=s.subschema({keyword:T},h);a.assign(f,h),s.mergeValidEvaluated(m,f),y?a.assign(y,(0,e._)`${T}`):s.setParams({ifClause:T})}}}};function i(s,a){const o=s.schema[a];return o!==void 0&&!(0,t.alwaysValidSchema)(s,o)}return si.default=r,si}var ai={},ec;function Rb(){if(ec)return ai;ec=1,Object.defineProperty(ai,"__esModule",{value:!0});const e=me(),t={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:n,parentSchema:r,it:i}){r.if===void 0&&(0,e.checkStrictMode)(i,`"${n}" without "if" is ignored`)}};return ai.default=t,ai}var tc;function Nb(){if(tc)return Yr;tc=1,Object.defineProperty(Yr,"__esModule",{value:!0});const e=Lu(),t=vb(),n=ju(),r=Tb(),i=kb(),s=Eb(),a=Sb(),o=Wu(),l=xb(),u=Pb(),c=Ab(),f=Db(),h=$b(),d=Cb(),g=Ob(),T=Rb();function y(m=!1){const p=[c.default,f.default,h.default,d.default,g.default,T.default,a.default,o.default,s.default,l.default,u.default];return m?p.push(t.default,r.default):p.push(e.default,n.default),p.push(i.default),p}return Yr.default=y,Yr}var oi={},li={},nc;function Mb(){if(nc)return li;nc=1,Object.defineProperty(li,"__esModule",{value:!0});const e=he(),n={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:r})=>(0,e.str)`must match format "${r}"`,params:({schemaCode:r})=>(0,e._)`{format: ${r}}`},code(r,i){const{gen:s,data:a,$data:o,schema:l,schemaCode:u,it:c}=r,{opts:f,errSchemaPath:h,schemaEnv:d,self:g}=c;if(!f.validateFormats)return;o?T():y();function T(){const m=s.scopeValue("formats",{ref:g.formats,code:f.code.formats}),p=s.const("fDef",(0,e._)`${m}[${u}]`),b=s.let("fType"),S=s.let("format");s.if((0,e._)`typeof ${p} == "object" && !(${p} instanceof RegExp)`,()=>s.assign(b,(0,e._)`${p}.type || "string"`).assign(S,(0,e._)`${p}.validate`),()=>s.assign(b,(0,e._)`"string"`).assign(S,p)),r.fail$data((0,e.or)(v(),w()));function v(){return f.strictSchema===!1?e.nil:(0,e._)`${u} && !${S}`}function w(){const x=d.$async?(0,e._)`(${p}.async ? await ${S}(${a}) : ${S}(${a}))`:(0,e._)`${S}(${a})`,N=(0,e._)`(typeof ${S} == "function" ? ${x} : ${S}.test(${a}))`;return(0,e._)`${S} && ${S} !== true && ${b} === ${i} && !${N}`}}function y(){const m=g.formats[l];if(!m){v();return}if(m===!0)return;const[p,b,S]=w(m);p===i&&r.pass(x());function v(){if(f.strictSchema===!1){g.logger.warn(N());return}throw new Error(N());function N(){return`unknown format "${l}" ignored in schema at path "${h}"`}}function w(N){const F=N instanceof RegExp?(0,e.regexpCode)(N):f.code.formats?(0,e._)`${f.code.formats}${(0,e.getProperty)(l)}`:void 0,A=s.scopeValue("formats",{key:l,ref:N,code:F});return typeof N=="object"&&!(N instanceof RegExp)?[N.type||"string",N.validate,(0,e._)`${A}.validate`]:["string",N,A]}function x(){if(typeof m=="object"&&!(m instanceof RegExp)&&m.async){if(!d.$async)throw new Error("async format in sync schema");return(0,e._)`await ${S}(${a})`}return typeof b=="function"?(0,e._)`${S}(${a})`:(0,e._)`${S}.test(${a})`}}}};return li.default=n,li}var rc;function Ib(){if(rc)return oi;rc=1,Object.defineProperty(oi,"__esModule",{value:!0});const t=[Mb().default];return oi.default=t,oi}var Qt={},ic;function Lb(){return ic||(ic=1,Object.defineProperty(Qt,"__esModule",{value:!0}),Qt.contentVocabulary=Qt.metadataVocabulary=void 0,Qt.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],Qt.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]),Qt}var sc;function Fb(){if(sc)return Cr;sc=1,Object.defineProperty(Cr,"__esModule",{value:!0});const e=lb(),t=_b(),n=Nb(),r=Ib(),i=Lb(),s=[e.default,t.default,(0,n.default)(),r.default,i.metadataVocabulary,i.contentVocabulary];return Cr.default=s,Cr}var ui={},Vn={},ac;function jb(){if(ac)return Vn;ac=1,Object.defineProperty(Vn,"__esModule",{value:!0}),Vn.DiscrError=void 0;var e;return(function(t){t.Tag="tag",t.Mapping="mapping"})(e||(Vn.DiscrError=e={})),Vn}var oc;function zb(){if(oc)return ui;oc=1,Object.defineProperty(ui,"__esModule",{value:!0});const e=he(),t=jb(),n=ea(),r=Dr(),i=me(),a={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:h}=o,{oneOf:d}=f;if(!h.opts.discriminator)throw new Error("discriminator: requires discriminator option");const g=c.propertyName;if(typeof g!="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 T=l.let("valid",!1),y=l.const("tag",(0,e._)`${u}${(0,e.getProperty)(g)}`);l.if((0,e._)`typeof ${y} == "string"`,()=>m(),()=>o.error(!1,{discrError:t.DiscrError.Tag,tag:y,tagName:g})),o.ok(T);function m(){const S=b();l.if(!1);for(const v in S)l.elseIf((0,e._)`${y} === ${v}`),l.assign(T,p(S[v]));l.else(),o.error(!1,{discrError:t.DiscrError.Mapping,tag:y,tagName:g}),l.endIf()}function p(S){const v=l.name("valid"),w=o.subschema({keyword:"oneOf",schemaProp:S},v);return o.mergeEvaluated(w,e.Name),v}function b(){var S;const v={},w=N(f);let x=!0;for(let O=0;O<d.length;O++){let U=d[O];if(U?.$ref&&!(0,i.schemaHasRulesButRef)(U,h.self.RULES)){const H=U.$ref;if(U=n.resolveRef.call(h.self,h.schemaEnv.root,h.baseId,H),U instanceof n.SchemaEnv&&(U=U.schema),U===void 0)throw new r.default(h.opts.uriResolver,h.baseId,H)}const K=(S=U?.properties)===null||S===void 0?void 0:S[g];if(typeof K!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${g}"`);x=x&&(w||N(U)),F(K,O)}if(!x)throw new Error(`discriminator: "${g}" must be required`);return v;function N({required:O}){return Array.isArray(O)&&O.includes(g)}function F(O,U){if(O.const)A(O.const,U);else if(O.enum)for(const K of O.enum)A(K,U);else throw new Error(`discriminator: "properties/${g}" must have "const" or "enum"`)}function A(O,U){if(typeof O!="string"||O in v)throw new Error(`discriminator: "${g}" values must be unique strings`);v[O]=U}}}};return ui.default=a,ui}const Ub={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0};var lc;function qb(){return lc||(lc=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 n=sb(),r=Fb(),i=zb(),s=Ub,a=["/properties"],o="http://json-schema.org/draft-07/schema";class l extends n.default{_addVocabularies(){super._addVocabularies(),r.default.forEach(g=>this.addVocabulary(g)),this.opts.discriminator&&this.addKeyword(i.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const g=this.opts.$data?this.$dataMetaSchema(s,a):s;this.addMetaSchema(g,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=xr();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return u.KeywordCxt}});var c=he();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=Qs();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return f.default}});var h=Dr();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return h.default}})})(_r,_r.exports)),_r.exports}var Hb=qb();const Bb=er(Hb);var uc=typeof global=="object"&&global&&global.Object===Object&&global,Vb=typeof self=="object"&&self&&self.Object===Object&&self,bn=uc||Vb||Function("return this")(),ci=bn.Symbol,cc=Object.prototype,Wb=cc.hasOwnProperty,Yb=cc.toString,Wn=ci?ci.toStringTag:void 0;function Gb(e){var t=Wb.call(e,Wn),n=e[Wn];try{e[Wn]=void 0;var r=!0}catch{}var i=Yb.call(e);return r&&(t?e[Wn]=n:delete e[Wn]),i}var Kb=Object.prototype,Zb=Kb.toString;function Jb(e){return Zb.call(e)}var Xb="[object Null]",Qb="[object Undefined]",fc=ci?ci.toStringTag:void 0;function fi(e){return e==null?e===void 0?Qb:Xb:fc&&fc in Object(e)?Gb(e):Jb(e)}function Yn(e){return e!=null&&typeof e=="object"}var sa=Array.isArray;function en(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function dc(e){return e}var e1="[object AsyncFunction]",t1="[object Function]",n1="[object GeneratorFunction]",r1="[object Proxy]";function aa(e){if(!en(e))return!1;var t=fi(e);return t==t1||t==n1||t==e1||t==r1}var oa=bn["__core-js_shared__"],hc=(function(){var e=/[^.]+$/.exec(oa&&oa.keys&&oa.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function i1(e){return!!hc&&hc in e}var s1=Function.prototype,a1=s1.toString;function o1(e){if(e!=null){try{return a1.call(e)}catch{}try{return e+""}catch{}}return""}var l1=/[\\^$.*+?()[\]{}|]/g,u1=/^\[object .+?Constructor\]$/,c1=Function.prototype,f1=Object.prototype,d1=c1.toString,h1=f1.hasOwnProperty,p1=RegExp("^"+d1.call(h1).replace(l1,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function m1(e){if(!en(e)||i1(e))return!1;var t=aa(e)?p1:u1;return t.test(o1(e))}function g1(e,t){return e?.[t]}function la(e,t){var n=g1(e,t);return m1(n)?n:void 0}var pc=Object.create,y1=(function(){function e(){}return function(t){if(!en(t))return{};if(pc)return pc(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}})();function b1(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function w1(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var _1=800,v1=16,T1=Date.now;function k1(e){var t=0,n=0;return function(){var r=T1(),i=v1-(r-n);if(n=r,i>0){if(++t>=_1)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function E1(e){return function(){return e}}var di=(function(){try{var e=la(Object,"defineProperty");return e({},"",{}),e}catch{}})(),S1=di?function(e,t){return di(e,"toString",{configurable:!0,enumerable:!1,value:E1(t),writable:!0})}:dc,x1=k1(S1),P1=9007199254740991,A1=/^(?:0|[1-9]\d*)$/;function mc(e,t){var n=typeof e;return t=t??P1,!!t&&(n=="number"||n!="symbol"&&A1.test(e))&&e>-1&&e%1==0&&e<t}function ua(e,t,n){t=="__proto__"&&di?di(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function hi(e,t){return e===t||e!==e&&t!==t}var D1=Object.prototype,$1=D1.hasOwnProperty;function C1(e,t,n){var r=e[t];(!($1.call(e,t)&&hi(r,n))||n===void 0&&!(t in e))&&ua(e,t,n)}function O1(e,t,n,r){var i=!n;n||(n={});for(var s=-1,a=t.length;++s<a;){var o=t[s],l=void 0;l===void 0&&(l=e[o]),i?ua(n,o,l):C1(n,o,l)}return n}var gc=Math.max;function R1(e,t,n){return t=gc(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,s=gc(r.length-t,0),a=Array(s);++i<s;)a[i]=r[t+i];i=-1;for(var o=Array(t+1);++i<t;)o[i]=r[i];return o[t]=n(a),b1(e,this,o)}}function N1(e,t){return x1(R1(e,t,dc),e+"")}var M1=9007199254740991;function yc(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=M1}function ca(e){return e!=null&&yc(e.length)&&!aa(e)}function I1(e,t,n){if(!en(n))return!1;var r=typeof t;return(r=="number"?ca(n)&&mc(t,n.length):r=="string"&&t in n)?hi(n[t],e):!1}function L1(e){return N1(function(t,n){var r=-1,i=n.length,s=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(s=e.length>3&&typeof s=="function"?(i--,s):void 0,a&&I1(n[0],n[1],a)&&(s=i<3?void 0:s,i=1),t=Object(t);++r<i;){var o=n[r];o&&e(t,o,r,s)}return t})}var F1=Object.prototype;function bc(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||F1;return e===n}function j1(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var z1="[object Arguments]";function wc(e){return Yn(e)&&fi(e)==z1}var _c=Object.prototype,U1=_c.hasOwnProperty,q1=_c.propertyIsEnumerable,fa=wc((function(){return arguments})())?wc:function(e){return Yn(e)&&U1.call(e,"callee")&&!q1.call(e,"callee")};function H1(){return!1}var vc=typeof $e=="object"&&$e&&!$e.nodeType&&$e,Tc=vc&&typeof module=="object"&&module&&!module.nodeType&&module,B1=Tc&&Tc.exports===vc,kc=B1?bn.Buffer:void 0,V1=kc?kc.isBuffer:void 0,Ec=V1||H1,W1="[object Arguments]",Y1="[object Array]",G1="[object Boolean]",K1="[object Date]",Z1="[object Error]",J1="[object Function]",X1="[object Map]",Q1="[object Number]",ew="[object Object]",tw="[object RegExp]",nw="[object Set]",rw="[object String]",iw="[object WeakMap]",sw="[object ArrayBuffer]",aw="[object DataView]",ow="[object Float32Array]",lw="[object Float64Array]",uw="[object Int8Array]",cw="[object Int16Array]",fw="[object Int32Array]",dw="[object Uint8Array]",hw="[object Uint8ClampedArray]",pw="[object Uint16Array]",mw="[object Uint32Array]",ve={};ve[ow]=ve[lw]=ve[uw]=ve[cw]=ve[fw]=ve[dw]=ve[hw]=ve[pw]=ve[mw]=!0,ve[W1]=ve[Y1]=ve[sw]=ve[G1]=ve[aw]=ve[K1]=ve[Z1]=ve[J1]=ve[X1]=ve[Q1]=ve[ew]=ve[tw]=ve[nw]=ve[rw]=ve[iw]=!1;function gw(e){return Yn(e)&&yc(e.length)&&!!ve[fi(e)]}function yw(e){return function(t){return e(t)}}var Sc=typeof $e=="object"&&$e&&!$e.nodeType&&$e,Gn=Sc&&typeof module=="object"&&module&&!module.nodeType&&module,bw=Gn&&Gn.exports===Sc,da=bw&&uc.process,xc=(function(){try{var e=Gn&&Gn.require&&Gn.require("util").types;return e||da&&da.binding&&da.binding("util")}catch{}})(),Pc=xc&&xc.isTypedArray,Ac=Pc?yw(Pc):gw;function ww(e,t){var n=sa(e),r=!n&&fa(e),i=!n&&!r&&Ec(e),s=!n&&!r&&!i&&Ac(e),a=n||r||i||s,o=a?j1(e.length,String):[],l=o.length;for(var u in e)a&&(u=="length"||i&&(u=="offset"||u=="parent")||s&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||mc(u,l))||o.push(u);return o}function _w(e,t){return function(n){return e(t(n))}}function vw(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var Tw=Object.prototype,kw=Tw.hasOwnProperty;function Ew(e){if(!en(e))return vw(e);var t=bc(e),n=[];for(var r in e)r=="constructor"&&(t||!kw.call(e,r))||n.push(r);return n}function Dc(e){return ca(e)?ww(e):Ew(e)}var Kn=la(Object,"create");function Sw(){this.__data__=Kn?Kn(null):{},this.size=0}function xw(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Pw="__lodash_hash_undefined__",Aw=Object.prototype,Dw=Aw.hasOwnProperty;function $w(e){var t=this.__data__;if(Kn){var n=t[e];return n===Pw?void 0:n}return Dw.call(t,e)?t[e]:void 0}var Cw=Object.prototype,Ow=Cw.hasOwnProperty;function Rw(e){var t=this.__data__;return Kn?t[e]!==void 0:Ow.call(t,e)}var Nw="__lodash_hash_undefined__";function Mw(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Kn&&t===void 0?Nw:t,this}function tn(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}tn.prototype.clear=Sw,tn.prototype.delete=xw,tn.prototype.get=$w,tn.prototype.has=Rw,tn.prototype.set=Mw;function Iw(){this.__data__=[],this.size=0}function pi(e,t){for(var n=e.length;n--;)if(hi(e[n][0],t))return n;return-1}var Lw=Array.prototype,Fw=Lw.splice;function jw(e){var t=this.__data__,n=pi(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():Fw.call(t,n,1),--this.size,!0}function zw(e){var t=this.__data__,n=pi(t,e);return n<0?void 0:t[n][1]}function Uw(e){return pi(this.__data__,e)>-1}function qw(e,t){var n=this.__data__,r=pi(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Nt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Nt.prototype.clear=Iw,Nt.prototype.delete=jw,Nt.prototype.get=zw,Nt.prototype.has=Uw,Nt.prototype.set=qw;var $c=la(bn,"Map");function Hw(){this.size=0,this.__data__={hash:new tn,map:new($c||Nt),string:new tn}}function Bw(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function mi(e,t){var n=e.__data__;return Bw(t)?n[typeof t=="string"?"string":"hash"]:n.map}function Vw(e){var t=mi(this,e).delete(e);return this.size-=t?1:0,t}function Ww(e){return mi(this,e).get(e)}function Yw(e){return mi(this,e).has(e)}function Gw(e,t){var n=mi(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function wn(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}wn.prototype.clear=Hw,wn.prototype.delete=Vw,wn.prototype.get=Ww,wn.prototype.has=Yw,wn.prototype.set=Gw;var Cc=_w(Object.getPrototypeOf,Object),Kw="[object Object]",Zw=Function.prototype,Jw=Object.prototype,Oc=Zw.toString,Xw=Jw.hasOwnProperty,Qw=Oc.call(Object);function e_(e){if(!Yn(e)||fi(e)!=Kw)return!1;var t=Cc(e);if(t===null)return!0;var n=Xw.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Oc.call(n)==Qw}function t_(){this.__data__=new Nt,this.size=0}function n_(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function r_(e){return this.__data__.get(e)}function i_(e){return this.__data__.has(e)}var s_=200;function a_(e,t){var n=this.__data__;if(n instanceof Nt){var r=n.__data__;if(!$c||r.length<s_-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new wn(r)}return n.set(e,t),this.size=n.size,this}function _n(e){var t=this.__data__=new Nt(e);this.size=t.size}_n.prototype.clear=t_,_n.prototype.delete=n_,_n.prototype.get=r_,_n.prototype.has=i_,_n.prototype.set=a_;var Rc=typeof $e=="object"&&$e&&!$e.nodeType&&$e,Nc=Rc&&typeof module=="object"&&module&&!module.nodeType&&module,o_=Nc&&Nc.exports===Rc,Mc=o_?bn.Buffer:void 0;Mc&&Mc.allocUnsafe;function l_(e,t){return e.slice()}var Ic=bn.Uint8Array;function u_(e){var t=new e.constructor(e.byteLength);return new Ic(t).set(new Ic(e)),t}function c_(e,t){var n=u_(e.buffer);return new e.constructor(n,e.byteOffset,e.length)}function f_(e){return typeof e.constructor=="function"&&!bc(e)?y1(Cc(e)):{}}function d_(e){return function(t,n,r){for(var i=-1,s=Object(t),a=r(t),o=a.length;o--;){var l=a[++i];if(n(s[l],l,s)===!1)break}return t}}var h_=d_();function ha(e,t,n){(n!==void 0&&!hi(e[t],n)||n===void 0&&!(t in e))&&ua(e,t,n)}function p_(e){return Yn(e)&&ca(e)}function pa(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function m_(e){return O1(e,Dc(e))}function g_(e,t,n,r,i,s,a){var o=pa(e,n),l=pa(t,n),u=a.get(l);if(u){ha(e,n,u);return}var c=s?s(o,l,n+"",e,t,a):void 0,f=c===void 0;if(f){var h=sa(l),d=!h&&Ec(l),g=!h&&!d&&Ac(l);c=l,h||d||g?sa(o)?c=o:p_(o)?c=w1(o):d?(f=!1,c=l_(l)):g?(f=!1,c=c_(l)):c=[]:e_(l)||fa(l)?(c=o,fa(o)?c=m_(o):(!en(o)||aa(o))&&(c=f_(l))):f=!1}f&&(a.set(l,c),i(c,l,r,s,a),a.delete(l)),ha(e,n,c)}function Lc(e,t,n,r,i){e!==t&&h_(t,function(s,a){if(i||(i=new _n),en(s))g_(e,t,a,n,Lc,r,i);else{var o=r?r(pa(e,a),s,a+"",e,t,i):void 0;o===void 0&&(o=s),ha(e,a,o)}},Dc)}var y_=L1(function(e,t,n,r){Lc(e,t,n,r)});let wt=null;function ma(){wt&&(wt.abort(),wt=null)}class b_{tools=Object.create(null);ajv=new Bb({allErrors:!0,strict:!1,allowUnionTypes:!0});validatorCache=Object.create(null);register(t,n){if(this.tools[t.function.name])throw new Error(`${t.function.name} 已存在`);this.tools[t.function.name]={def:t,handler:n}}getDefinition(t){return this.tools[t]?.def}getHandler(t){return this.tools[t]?.handler}remove(t){delete this.tools[t],delete this.validatorCache[t]}get definitions(){return Object.values(this.tools).map(t=>t.def)}getDefinitions(t){return t.length?t.map(n=>this.getDefinition(n)).filter(n=>!!n):null}getValidator(t,n){return this.validatorCache[t]||(this.validatorCache[t]=this.ajv.compile(n)),this.validatorCache[t]}validate(t,n){const r=this.tools[t];if(!r)throw new Error(`${t} 未注册`);const i=r.def.function.parameters,s=this.getValidator(t,i);if(!s(n)){const a=this.ajv.errorsText(s.errors,{separator:", "});throw new Error(`参数验证失败: ${a}`)}return!0}async call(t,n){this.validate(t,n);const r=this.getHandler(t);if(!r)throw new Error(`${t} 没有 handler`);return r(n)}}class w_ extends b_{model="";url="";messages=[];maxRounds=4;defaultParams={tools:[],roundsLeft:this.maxRounds};constructor(t){super();const{model:n,url:r,systemMessageContent:i,maxRounds:s}=t;this.model=n,this.url=r,typeof s=="number"&&(this.maxRounds=s),i&&(this.messages[0]={role:"system",content:i})}pushMessage(t){t&&this.messages.push(t)}pushMessages(t){if(t.length)for(const n of t)this.pushMessage(n)}resetMessages(){const t=this.messages.find(n=>n.role==="system");this.messages=t?[t]:[]}merge(t,n,r=[]){return y_({},t,n,(i,s,a)=>{if(r.includes(a))return(typeof i=="string"?i:"")+(typeof s=="string"?s:"")})}async invoke(t=this.defaultParams){const{tools:n=[],roundsLeft:r=this.maxRounds}=t;ma(),wt=new AbortController;try{const i=await fetch(this.url,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:this.model,messages:this.messages,tools:this.getDefinitions(n),stream:!1}),signal:wt.signal});if(wt.signal.aborted)throw new DOMException("请求已被取消","AbortError");const a=(await i.json())?.choices?.[0]?.message;if(!a)return;a.role===null&&(a.role="assistant");const{content:o,role:l,tool_calls:u}=a;if(!u?.length)return a;o&&(at.pushLoadingMessage(),requestAnimationFrame(()=>at.updateLoadingMessageContent(o)),at.finishLoadingMessage()),this.messages.push({content:o,role:l,tool_calls:u});const c=u.map(async f=>{const{function:{name:h,arguments:d},id:g}=f,T=await this.call(h,JSON.parse(d));this.messages.push({content:T,role:"tool",tool_call_id:g})});if(await Promise.all(c),r-1>0)return at.pushLoadingMessage(),await this.invoke({tools:[],roundsLeft:r-1})}finally{wt=null}}async*invokeStream(t=this.defaultParams){const{tools:n=[],roundsLeft:r=this.maxRounds}=t;ma(),wt=new AbortController;try{const i=await fetch(this.url,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:this.model,messages:this.messages,tools:this.getDefinitions(n),stream:!0}),signal:wt.signal});if(wt.signal.aborted)throw new DOMException("请求已被取消","AbortError");const s=i.body?.getReader();if(!s)throw new Error("Failed to get response reader");let a=null;const o=new TextDecoder;let l="";for(;;){const{done:g,value:T}=await s.read();if(g)break;const m=o.decode(T,{stream:!0}).split(`
61
-
62
- `).filter(p=>p.trim()!=="");for(const p of m){if(p==="data: [DONE]")break;const b=p.trim().replace(/^data: /,"");try{const S=JSON.parse(l+b);a=this.merge(a,S,["content","arguments"]),yield S,l=""}catch(S){console.log("JSON 解析失败,等待下一个数据块继续拼接",{error:S,jsonStr:b}),l+=b}}}const u=a?.choices?.[0]?.delta;if(!u)return;u.role===null&&(u.role="assistant");const{content:c,role:f,tool_calls:h}=u;if(!h?.length)return u;this.messages.push({content:c,role:f,tool_calls:h});const d=h.map(async g=>{const{function:{name:T,arguments:y},id:m}=g,p=await this.call(T,JSON.parse(y));this.messages.push({content:p,role:"tool",tool_call_id:m})});if(await Promise.all(d),r-1>0)return this.invokeStream({tools:[],roundsLeft:r-1})}finally{wt=null}}}const __=e=>{const t=document.createElement("div");return t.textContent=e,t.innerHTML},Fc=async()=>{if(Ut.value)try{const e=__(Ut.value);Vs.chatting(),Ut.clear();const t={role:"user",content:e};at.pushMessage(t),await ga.emit("send",t)}finally{Vs.default(),Ut.focus()}},v_=()=>{ma(),Vs.default(),Ut.focus()},T_=async()=>{at.clear(),K0.show("新对话已创建"),Ut.focus(),await ga.emit("create")};function k_(){const{submitIcon:e,createButton:t,messagesContainer:n,userInputContainer:r,userInput:i,stopIcon:s}=Ge();r.addEventListener("click",a=>{!e.contains(a.target)&&!s.contains(a.target)&&Ut.focus()}),i.addEventListener("keydown",a=>{a.key==="Enter"&&!a.shiftKey&&(a.preventDefault(),Fc())}),e.addEventListener("click",Fc),s.addEventListener("click",v_),t.addEventListener("click",T_),n.addEventListener("click",function(a){const o=a.target,l=o.closest('[data-action="copy"]'),u=o.closest(".reasoning-header");if(l&&!l.classList.contains("copied")){a.stopPropagation();const c=l.closest(".message");if(!c)return;const f=c.querySelector(".content-container");if(!f)return;const h=f.textContent;if(!h)return;l.classList.add("copied"),navigator.clipboard.writeText(h).catch(d=>{console.error("Failed to copy text: ",d)}).finally(()=>{setTimeout(()=>{l.classList.remove("copied")},1500)})}if(u){const c=u.parentElement;c&&c.classList.toggle("collapse")}})}class E_{events={send:[],create:[]};on=(t,n)=>{this.events[t].push(n)};emit=async(t,...n)=>{for(const r of this.events[t])try{await r(...n)}catch(i){console.error(`Error in event listener for ${t}:`,i)}}}const ga=new E_,S_=e=>{Y0(e),k_(),at.setPaddingBottom()},x_=["button{outline:0;border:0;display:flex;justify-content:center;align-items:center;cursor:pointer}button.icon{padding:4px}button.text{padding:0 12px;height:28px}button.square{border-radius:6px}button.circle{border-radius:50%}button.primary{background-color:#0000000a}button.plain{background-color:transparent}button.error{background-color:#ff4d4f;color:#fff}button.primary:hover{background-color:#0000000f}button.plain:hover{background-color:#0000000a}button.error:hover{background-color:#ff7875}button[data-action=copy] .copied-text{display:none}button[data-action=copy].copied .copied-text{display:block}button[data-action=copy].copied svg{display:none}",".tooltip{position:relative}.tooltip .tooltip-text{visibility:hidden;opacity:0;background-color:#000000b3;color:#fff;border-radius:4px;padding:4px 8px;position:absolute;z-index:1;white-space:nowrap;font-size:12px;transition:opacity .3s}.tooltip .tooltip-text.top-left{bottom:115%;right:0}.tooltip .tooltip-text.top-right{bottom:115%;left:0}.tooltip .tooltip-text.bottom-left{top:115%;right:0}.tooltip .tooltip-text.bottom-right{top:115%;left:0}.tooltip:hover .tooltip-text{visibility:visible;opacity:1}",".alert{position:absolute;left:50%;transform:translate(-50%);background-color:#fff;border-radius:8px;box-shadow:0 6px 16px #00000014,0 3px 6px -4px #0000001f,0 9px 28px 8px #0000000d;z-index:1000;pointer-events:all;padding:9px 12px;animation:slide 3s ease-in-out forwards;font-size:12px;white-space:nowrap}@keyframes slide{0%{top:0;opacity:0}10%{top:50px;opacity:1}75%{top:50px;opacity:1}to{top:0;opacity:0}}",'.loading-dots{font-weight:700;margin-left:3px}.loading-dots:after{content:"";animation:typing 1.5s infinite}@keyframes typing{0%{content:"."}33%{content:".."}66%{content:"..."}to{content:"."}}',".app-container{height:100%;display:flex;flex-direction:column;background:#fff}.bottom-container{margin:12px}.action-bar{margin-bottom:12px;display:flex;align-items:center;gap:12px}.user-input-container{padding:12px;border-radius:16px;border:1px solid rgba(114,118,139,.16);box-shadow:0 10px 30px #0003;display:flex;flex-direction:column}.user-input{border:0;resize:none;width:100%;font-size:14px;line-height:1.5}.button-wrap{display:flex;justify-content:flex-end;align-items:center;gap:12px}.messages-container{flex:1;padding-top:12px;padding-left:12px;padding-right:12px;overflow-x:hidden;overflow-y:auto}.message{max-width:80%;margin-bottom:12px;font-size:14px;line-height:1.5}.body-container{padding:0 14px;border-radius:8px;overflow-x:auto;color:#000}.message.user{margin-left:auto}.message.user .body-container{background:#e3f2fd}.message.assistant{margin-right:auto}.message.assistant .body-container{background:#f1f1f1}.button-container{display:flex;margin-top:4px}.button-container button{height:26px;display:flex;align-items:center}.message.user .button-container{justify-content:flex-end}.message.assistant .button-container{justify-content:flex-start}.submit-icon,.stop-icon{width:28px;height:28px;display:flex;justify-content:center;align-items:center;background-color:#000;border-radius:50%;color:#fff}.content-container{word-wrap:break-word}.message.assistant table{border-collapse:collapse;margin-block-start:1em;margin-block-end:1em}.message.assistant table th,.message.assistant table td{border:1px solid #ccc;padding:8px}.message.assistant table th{background-color:#e0e0e0}.message.assistant .reasoning-container{padding:0 14px;border-radius:8px;overflow-x:auto;color:#6b7280;background-color:#f9fafb;font-size:12px;margin-bottom:8px}.message.assistant .reasoning-container .reasoning-header{display:flex;align-items:center;gap:4px;padding-top:8px;margin-bottom:8px;cursor:pointer}.message.assistant .reasoning-container .reasoning-header svg{transform:rotate(90deg);transition:transform .3s}.message.assistant .reasoning-container.collapse .reasoning-header svg{transform:rotate(0);transition:transform .3s}.message.assistant .reasoning-container.collapse .reasoning-content{height:0;overflow:hidden}","*{box-sizing:border-box}textarea{padding:0}textarea:focus-visible,select:focus-visible{outline:0}.flex{display:flex}:host{position:relative}"].join(`
63
- `),jc=document.createElement("template");jc.innerHTML=`
64
- <style>${x_}</style>
65
- <div class="app-container">
66
- <div class="messages-container" id="messages-container"></div>
67
- <div class="bottom-container">
68
- <div class="action-bar">
69
- <button class="icon square plain tooltip" id="create-button" type="button" aria-label="新对话">
70
- <svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 1024 1024"><path d="M597.333 128v85.333H170.667v571.094l75.221-59.094h607.445V426.667h85.334V768A42.667 42.667 0 0 1 896 810.667H275.413L85.333 960V170.667A42.667 42.667 0 0 1 128 128h469.333zm213.334 0V0H896v128h128v85.333H896v128h-85.333v-128h-128V128h128z"/></svg>
71
- <span class="tooltip-text bottom-right">新对话</span>
72
- </button>
73
- </div>
74
- <div class="user-input-container" id="user-input-container">
75
- <textarea class="user-input" id="user-input" placeholder="发消息..."></textarea>
76
- <div class="button-wrap">
77
- <button class="icon square plain tooltip" id="submit-icon" type="button" aria-label="发送">
78
- <div class="submit-icon">
79
- <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="currentColor"><path d="M9 16V6.414L5.707 9.707a1 1 0 1 1-1.414-1.414l5-5 .076-.068a1 1 0 0 1 1.338.068l5 5 .068.076a1 1 0 0 1-1.406 1.406l-.076-.068L11 6.414V16a1 1 0 1 1-2 0Z"/></svg>
80
- </div>
81
- <span class="tooltip-text top-left">发送 (↵)</span>
82
- </button>
83
- <button style="display: none;" class="icon square plain tooltip" id="stop-icon" type="button" aria-label="停止">
84
- <div class="stop-icon">
85
- <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="currentColor"><path d="M4.5 5.75c0-.69.56-1.25 1.25-1.25h8.5c.69 0 1.25.56 1.25 1.25v8.5c0 .69-.56 1.25-1.25 1.25h-8.5c-.69 0-1.25-.56-1.25-1.25v-8.5Z"/></svg>
86
- </div>
87
- <span class="tooltip-text top-left">停止</span>
88
- </button>
89
- </div>
90
- </div>
91
- </div>
92
- </div>
93
- `;var ye;(function(e){e[e.AM=0]="AM",e[e.PM=1]="PM"})(ye||(ye={}));var Ee;(function(e){e[e.SUNDAY=0]="SUNDAY",e[e.MONDAY=1]="MONDAY",e[e.TUESDAY=2]="TUESDAY",e[e.WEDNESDAY=3]="WEDNESDAY",e[e.THURSDAY=4]="THURSDAY",e[e.FRIDAY=5]="FRIDAY",e[e.SATURDAY=6]="SATURDAY"})(Ee||(Ee={}));var dt;(function(e){e[e.JANUARY=1]="JANUARY",e[e.FEBRUARY=2]="FEBRUARY",e[e.MARCH=3]="MARCH",e[e.APRIL=4]="APRIL",e[e.MAY=5]="MAY",e[e.JUNE=6]="JUNE",e[e.JULY=7]="JULY",e[e.AUGUST=8]="AUGUST",e[e.SEPTEMBER=9]="SEPTEMBER",e[e.OCTOBER=10]="OCTOBER",e[e.NOVEMBER=11]="NOVEMBER",e[e.DECEMBER=12]="DECEMBER"})(dt||(dt={}));function nn(e,t){e.assign("day",t.getDate()),e.assign("month",t.getMonth()+1),e.assign("year",t.getFullYear())}function zc(e,t){e.assign("hour",t.getHours()),e.assign("minute",t.getMinutes()),e.assign("second",t.getSeconds()),e.assign("millisecond",t.getMilliseconds()),e.assign("meridiem",t.getHours()<12?ye.AM:ye.PM)}function vn(e,t){e.imply("day",t.getDate()),e.imply("month",t.getMonth()+1),e.imply("year",t.getFullYear())}function ya(e,t){e.imply("hour",t.getHours()),e.imply("minute",t.getMinutes()),e.imply("second",t.getSeconds()),e.imply("millisecond",t.getMilliseconds()),e.imply("meridiem",t.getHours()<12?ye.AM:ye.PM)}const P_={ACDT:630,ACST:570,ADT:-180,AEDT:660,AEST:600,AFT:270,AKDT:-480,AKST:-540,ALMT:360,AMST:-180,AMT:-240,ANAST:720,ANAT:720,AQTT:300,ART:-180,AST:-240,AWDT:540,AWST:480,AZOST:0,AZOT:-60,AZST:300,AZT:240,BNT:480,BOT:-240,BRST:-120,BRT:-180,BST:60,BTT:360,CAST:480,CAT:120,CCT:390,CDT:-300,CEST:120,CET:{timezoneOffsetDuringDst:120,timezoneOffsetNonDst:60,dstStart:e=>Uc(e,dt.MARCH,Ee.SUNDAY,2),dstEnd:e=>Uc(e,dt.OCTOBER,Ee.SUNDAY,3)},CHADT:825,CHAST:765,CKT:-600,CLST:-180,CLT:-240,COT:-300,CST:-360,CT:{timezoneOffsetDuringDst:-300,timezoneOffsetNonDst:-360,dstStart:e=>Bt(e,dt.MARCH,Ee.SUNDAY,2,2),dstEnd:e=>Bt(e,dt.NOVEMBER,Ee.SUNDAY,1,2)},CVT:-60,CXT:420,ChST:600,DAVT:420,EASST:-300,EAST:-360,EAT:180,ECT:-300,EDT:-240,EEST:180,EET:120,EGST:0,EGT:-60,EST:-300,ET:{timezoneOffsetDuringDst:-240,timezoneOffsetNonDst:-300,dstStart:e=>Bt(e,dt.MARCH,Ee.SUNDAY,2,2),dstEnd:e=>Bt(e,dt.NOVEMBER,Ee.SUNDAY,1,2)},FJST:780,FJT:720,FKST:-180,FKT:-240,FNT:-120,GALT:-360,GAMT:-540,GET:240,GFT:-180,GILT:720,GMT:0,GST:240,GYT:-240,HAA:-180,HAC:-300,HADT:-540,HAE:-240,HAP:-420,HAR:-360,HAST:-600,HAT:-90,HAY:-480,HKT:480,HLV:-210,HNA:-240,HNC:-360,HNE:-300,HNP:-480,HNR:-420,HNT:-150,HNY:-540,HOVT:420,ICT:420,IDT:180,IOT:360,IRDT:270,IRKST:540,IRKT:540,IRST:210,IST:330,JST:540,KGT:360,KRAST:480,KRAT:480,KST:540,KUYT:240,LHDT:660,LHST:630,LINT:840,MAGST:720,MAGT:720,MART:-510,MAWT:300,MDT:-360,MESZ:120,MEZ:60,MHT:720,MMT:390,MSD:240,MSK:180,MST:-420,MT:{timezoneOffsetDuringDst:-360,timezoneOffsetNonDst:-420,dstStart:e=>Bt(e,dt.MARCH,Ee.SUNDAY,2,2),dstEnd:e=>Bt(e,dt.NOVEMBER,Ee.SUNDAY,1,2)},MUT:240,MVT:300,MYT:480,NCT:660,NDT:-90,NFT:690,NOVST:420,NOVT:360,NPT:345,NST:-150,NUT:-660,NZDT:780,NZST:720,OMSST:420,OMST:420,PDT:-420,PET:-300,PETST:720,PETT:720,PGT:600,PHOT:780,PHT:480,PKT:300,PMDT:-120,PMST:-180,PONT:660,PST:-480,PT:{timezoneOffsetDuringDst:-420,timezoneOffsetNonDst:-480,dstStart:e=>Bt(e,dt.MARCH,Ee.SUNDAY,2,2),dstEnd:e=>Bt(e,dt.NOVEMBER,Ee.SUNDAY,1,2)},PWT:540,PYST:-180,PYT:-240,RET:240,SAMT:240,SAST:120,SBT:660,SCT:240,SGT:480,SRT:-180,SST:-660,TAHT:-600,TFT:300,TJT:300,TKT:780,TLT:540,TMT:300,TVT:720,ULAT:480,UTC:0,UYST:-120,UYT:-180,UZT:300,VET:-210,VLAST:660,VLAT:660,VUT:660,WAST:120,WAT:60,WEST:60,WESZ:60,WET:0,WEZ:0,WFT:720,WGST:-120,WGT:-180,WIB:420,WIT:540,WITA:480,WST:780,WT:0,YAKST:600,YAKT:600,YAPT:600,YEKST:360,YEKT:360};function Bt(e,t,n,r,i=0){let s=0,a=0;for(;a<r;)s++,new Date(e,t-1,s).getDay()===n&&a++;return new Date(e,t-1,s,i)}function Uc(e,t,n,r=0){const i=n===0?7:n,s=new Date(e,t-1+1,1,12),a=s.getDay()===0?7:s.getDay();let o;return a===i?o=7:a<i?o=7+a-i:o=a-i,s.setDate(s.getDate()-o),new Date(e,t-1,s.getDate(),r)}function qc(e,t,n={}){if(e==null)return null;if(typeof e=="number")return e;const r=n[e]??P_[e];return r==null?null:typeof r=="number"?r:t==null?null:t>r.dstStart(t.getFullYear())&&!(t>r.dstEnd(t.getFullYear()))?r.timezoneOffsetDuringDst:r.timezoneOffsetNonDst}const A_={day:0,second:0,millisecond:0};function Le(e,t){let n=new Date(e);if(t.y&&(t.year=t.y,delete t.y),t.mo&&(t.month=t.mo,delete t.mo),t.M&&(t.month=t.M,delete t.M),t.w&&(t.week=t.w,delete t.w),t.d&&(t.day=t.d,delete t.d),t.h&&(t.hour=t.h,delete t.h),t.m&&(t.minute=t.m,delete t.m),t.s&&(t.second=t.s,delete t.s),t.ms&&(t.millisecond=t.ms,delete t.ms),"year"in t){const r=Math.floor(t.year);n.setFullYear(n.getFullYear()+r);const i=t.year-r;i>0&&(t.month=t?.month??0,t.month+=i*12)}if("quarter"in t){const r=Math.floor(t.quarter);n.setMonth(n.getMonth()+r*3)}if("month"in t){const r=Math.floor(t.month);n.setMonth(n.getMonth()+r);const i=t.month-r;i>0&&(t.week=t?.week??0,t.week+=i*4)}if("week"in t){const r=Math.floor(t.week);n.setDate(n.getDate()+r*7);const i=t.week-r;i>0&&(t.day=t?.day??0,t.day+=Math.round(i*7))}if("day"in t){const r=Math.floor(t.day);n.setDate(n.getDate()+r);const i=t.day-r;i>0&&(t.hour=t?.hour??0,t.hour+=Math.round(i*24))}if("hour"in t){const r=Math.floor(t.hour);n.setHours(n.getHours()+r);const i=t.hour-r;i>0&&(t.minute=t?.minute??0,t.minute+=Math.round(i*60))}if("minute"in t){const r=Math.floor(t.minute);n.setMinutes(n.getMinutes()+r);const i=t.minute-r;i>0&&(t.second=t?.second??0,t.second+=Math.round(i*60))}if("second"in t){const r=Math.floor(t.second);n.setSeconds(n.getSeconds()+r);const i=t.second-r;i>0&&(t.millisecond=t?.millisecond??0,t.millisecond+=Math.round(i*1e3))}if("millisecond"in t){const r=Math.floor(t.millisecond);n.setMilliseconds(n.getMilliseconds()+r)}return n}function gi(e){const t={};for(const n in e)t[n]=-e[n];return t}class rn{instant;timezoneOffset;constructor(t,n){this.instant=t??new Date,this.timezoneOffset=n??null}static fromDate(t){return new rn(t)}static fromInput(t,n){if(t instanceof Date)return rn.fromDate(t);const r=t?.instant??new Date,i=qc(t?.timezone,r,n);return new rn(r,i)}getDateWithAdjustedTimezone(){const t=new Date(this.instant);return this.timezoneOffset!==null&&t.setMinutes(t.getMinutes()-this.getSystemTimezoneAdjustmentMinute(this.instant)),t}getSystemTimezoneAdjustmentMinute(t,n){(!t||t.getTime()<0)&&(t=new Date);const r=-t.getTimezoneOffset(),i=n??this.timezoneOffset??r;return r-i}getTimezoneOffset(){return this.timezoneOffset??-this.instant.getTimezoneOffset()}}class Te{knownValues;impliedValues;reference;_tags=new Set;constructor(t,n){if(this.reference=t,this.knownValues={},this.impliedValues={},n)for(const i in n)this.knownValues[i]=n[i];const r=t.getDateWithAdjustedTimezone();this.imply("day",r.getDate()),this.imply("month",r.getMonth()+1),this.imply("year",r.getFullYear()),this.imply("hour",12),this.imply("minute",0),this.imply("second",0),this.imply("millisecond",0)}static createRelativeFromReference(t,n=A_){let r=Le(t.getDateWithAdjustedTimezone(),n);const i=new Te(t);return i.addTag("result/relativeDate"),"hour"in n||"minute"in n||"second"in n||"millisecond"in n?(i.addTag("result/relativeDateAndTime"),zc(i,r),nn(i,r),i.assign("timezoneOffset",t.getTimezoneOffset())):(ya(i,r),i.imply("timezoneOffset",t.getTimezoneOffset()),"day"in n?(i.assign("day",r.getDate()),i.assign("month",r.getMonth()+1),i.assign("year",r.getFullYear()),i.assign("weekday",r.getDay())):"week"in n?(i.assign("day",r.getDate()),i.assign("month",r.getMonth()+1),i.assign("year",r.getFullYear()),i.imply("weekday",r.getDay())):(i.imply("day",r.getDate()),"month"in n?(i.assign("month",r.getMonth()+1),i.assign("year",r.getFullYear())):(i.imply("month",r.getMonth()+1),"year"in n?i.assign("year",r.getFullYear()):i.imply("year",r.getFullYear())))),i}get(t){return t in this.knownValues?this.knownValues[t]:t in this.impliedValues?this.impliedValues[t]:null}isCertain(t){return t in this.knownValues}getCertainComponents(){return Object.keys(this.knownValues)}imply(t,n){return t in this.knownValues?this:(this.impliedValues[t]=n,this)}assign(t,n){return this.knownValues[t]=n,delete this.impliedValues[t],this}addDurationAsImplied(t){const n=this.dateWithoutTimezoneAdjustment(),r=Le(n,t);return("day"in t||"week"in t||"month"in t||"year"in t)&&(this.delete(["day","weekday","month","year"]),this.imply("day",r.getDate()),this.imply("weekday",r.getDay()),this.imply("month",r.getMonth()+1),this.imply("year",r.getFullYear())),("second"in t||"minute"in t||"hour"in t)&&(this.delete(["second","minute","hour"]),this.imply("second",r.getSeconds()),this.imply("minute",r.getMinutes()),this.imply("hour",r.getHours())),this}delete(t){typeof t=="string"&&(t=[t]);for(const n of t)delete this.knownValues[n],delete this.impliedValues[n]}clone(){const t=new Te(this.reference);t.knownValues={},t.impliedValues={};for(const n in this.knownValues)t.knownValues[n]=this.knownValues[n];for(const n in this.impliedValues)t.impliedValues[n]=this.impliedValues[n];return t}isOnlyDate(){return!this.isCertain("hour")&&!this.isCertain("minute")&&!this.isCertain("second")}isOnlyTime(){return!this.isCertain("weekday")&&!this.isCertain("day")&&!this.isCertain("month")&&!this.isCertain("year")}isOnlyWeekdayComponent(){return this.isCertain("weekday")&&!this.isCertain("day")&&!this.isCertain("month")}isDateWithUnknownYear(){return this.isCertain("month")&&!this.isCertain("year")}isValidDate(){const t=this.dateWithoutTimezoneAdjustment();return!(t.getFullYear()!==this.get("year")||t.getMonth()!==this.get("month")-1||t.getDate()!==this.get("day")||this.get("hour")!=null&&t.getHours()!=this.get("hour")||this.get("minute")!=null&&t.getMinutes()!=this.get("minute"))}toString(){return`[ParsingComponents {
391
+ `});return r(),t(),o+`
392
+ `+(i===1?`=`:`-`).repeat(o.length-(Math.max(o.lastIndexOf(`\r`),o.lastIndexOf(`
393
+ `))+1))}let o=`#`.repeat(i),s=n.enter(`headingAtx`),c=n.enter(`phrasing`);a.move(o+` `);let l=n.containerPhrasing(e,{before:`# `,after:`
394
+ `,...a.current()});return/^[\t ]/.test(l)&&(l=OT(l.charCodeAt(0))+l.slice(1)),l=l?o+` `+l:o,n.options.closeAtx&&(l+=` `+o),c(),s(),l}FT.peek=IT;function FT(e){return e.value||``}function IT(){return`<`}LT.peek=RT;function LT(e,t,n,r){let i=TT(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.enter(`image`),s=n.enter(`label`),c=n.createTracker(r),l=c.move(`![`);return l+=c.move(n.safe(e.alt,{before:l,after:`]`,...c.current()})),l+=c.move(`](`),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter(`destinationLiteral`),l+=c.move(`<`),l+=c.move(n.safe(e.url,{before:l,after:`>`,...c.current()})),l+=c.move(`>`)):(s=n.enter(`destinationRaw`),l+=c.move(n.safe(e.url,{before:l,after:e.title?` `:`)`,...c.current()}))),s(),e.title&&(s=n.enter(`title${a}`),l+=c.move(` `+i),l+=c.move(n.safe(e.title,{before:l,after:i,...c.current()})),l+=c.move(i),s()),l+=c.move(`)`),o(),l}function RT(){return`!`}zT.peek=BT;function zT(e,t,n,r){let i=e.referenceType,a=n.enter(`imageReference`),o=n.enter(`label`),s=n.createTracker(r),c=s.move(`![`),l=n.safe(e.alt,{before:c,after:`]`,...s.current()});c+=s.move(l+`][`),o();let u=n.stack;n.stack=[],o=n.enter(`reference`);let d=n.safe(n.associationId(e),{before:c,after:`]`,...s.current()});return o(),n.stack=u,a(),i===`full`||!l||l!==d?c+=s.move(d+`]`):i===`shortcut`?c=c.slice(0,-1):c+=s.move(`]`),c}function BT(){return`!`}VT.peek=HT;function VT(e,t,n){let r=e.value||``,i="`",a=-1;for(;RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=` `+r+` `);++a<n.unsafe.length;){let e=n.unsafe[a],t=n.compilePattern(e),i;if(e.atBreak)for(;i=t.exec(r);){let e=i.index;r.charCodeAt(e)===10&&r.charCodeAt(e-1)===13&&e--,r=r.slice(0,e)+` `+r.slice(i.index+1)}}return i+r+i}function HT(){return"`"}function UT(e,t){let n=ux(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type===`text`&&(n===e.url||`mailto:`+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}WT.peek=GT;function WT(e,t,n,r){let i=TT(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.createTracker(r),s,c;if(UT(e,n)){let t=n.stack;n.stack=[],s=n.enter(`autolink`);let r=o.move(`<`);return r+=o.move(n.containerPhrasing(e,{before:r,after:`>`,...o.current()})),r+=o.move(`>`),s(),n.stack=t,r}s=n.enter(`link`),c=n.enter(`label`);let l=o.move(`[`);return l+=o.move(n.containerPhrasing(e,{before:l,after:`](`,...o.current()})),l+=o.move(`](`),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=n.enter(`destinationLiteral`),l+=o.move(`<`),l+=o.move(n.safe(e.url,{before:l,after:`>`,...o.current()})),l+=o.move(`>`)):(c=n.enter(`destinationRaw`),l+=o.move(n.safe(e.url,{before:l,after:e.title?` `:`)`,...o.current()}))),c(),e.title&&(c=n.enter(`title${a}`),l+=o.move(` `+i),l+=o.move(n.safe(e.title,{before:l,after:i,...o.current()})),l+=o.move(i),c()),l+=o.move(`)`),s(),l}function GT(e,t,n){return UT(e,n)?`<`:`[`}KT.peek=qT;function KT(e,t,n,r){let i=e.referenceType,a=n.enter(`linkReference`),o=n.enter(`label`),s=n.createTracker(r),c=s.move(`[`),l=n.containerPhrasing(e,{before:c,after:`]`,...s.current()});c+=s.move(l+`][`),o();let u=n.stack;n.stack=[],o=n.enter(`reference`);let d=n.safe(n.associationId(e),{before:c,after:`]`,...s.current()});return o(),n.stack=u,a(),i===`full`||!l||l!==d?c+=s.move(d+`]`):i===`shortcut`?c=c.slice(0,-1):c+=s.move(`]`),c}function qT(){return`[`}function JT(e){let t=e.options.bullet||`*`;if(t!==`*`&&t!==`+`&&t!==`-`)throw Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function YT(e){let t=JT(e),n=e.options.bulletOther;if(!n)return t===`*`?`-`:`*`;if(n!==`*`&&n!==`+`&&n!==`-`)throw Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function XT(e){let t=e.options.bulletOrdered||`.`;if(t!==`.`&&t!==`)`)throw Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function ZT(e){let t=e.options.rule||`*`;if(t!==`*`&&t!==`-`&&t!==`_`)throw Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function QT(e,t,n,r){let i=n.enter(`list`),a=n.bulletCurrent,o=e.ordered?XT(n):JT(n),s=e.ordered?o===`.`?`)`:`.`:YT(n),c=t&&n.bulletLastUsed?o===n.bulletLastUsed:!1;if(!e.ordered){let t=e.children?e.children[0]:void 0;if((o===`*`||o===`-`)&&t&&(!t.children||!t.children[0])&&n.stack[n.stack.length-1]===`list`&&n.stack[n.stack.length-2]===`listItem`&&n.stack[n.stack.length-3]===`list`&&n.stack[n.stack.length-4]===`listItem`&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(c=!0),ZT(n)===o&&t){let t=-1;for(;++t<e.children.length;){let n=e.children[t];if(n&&n.type===`listItem`&&n.children&&n.children[0]&&n.children[0].type===`thematicBreak`){c=!0;break}}}}c&&(o=s),n.bulletCurrent=o;let l=n.containerFlow(e,r);return n.bulletLastUsed=o,n.bulletCurrent=a,i(),l}function $T(e){let t=e.options.listItemIndent||`one`;if(t!==`tab`&&t!==`one`&&t!==`mixed`)throw Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function eE(e,t,n,r){let i=$T(n),a=n.bulletCurrent||JT(n);t&&t.type===`list`&&t.ordered&&(a=(typeof t.start==`number`&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let o=a.length+1;(i===`tab`||i===`mixed`&&(t&&t.type===`list`&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);let s=n.createTracker(r);s.move(a+` `.repeat(o-a.length)),s.shift(o);let c=n.enter(`listItem`),l=n.indentLines(n.containerFlow(e,s.current()),u);return c(),l;function u(e,t,n){return t?(n?``:` `.repeat(o))+e:(n?a:a+` `.repeat(o-a.length))+e}}function tE(e,t,n,r){let i=n.enter(`paragraph`),a=n.enter(`phrasing`),o=n.containerPhrasing(e,r);return a(),i(),o}var nE=dw([`break`,`delete`,`emphasis`,`footnote`,`footnoteReference`,`image`,`imageReference`,`inlineCode`,`inlineMath`,`link`,`linkReference`,`mdxJsxTextElement`,`mdxTextExpression`,`strong`,`text`,`textDirective`]);function rE(e,t,n,r){return(e.children.some(function(e){return nE(e)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function iE(e){let t=e.options.strong||`*`;if(t!==`*`&&t!==`_`)throw Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}aE.peek=oE;function aE(e,t,n,r){let i=iE(n),a=n.enter(`strong`),o=n.createTracker(r),s=o.move(i+i),c=o.move(n.containerPhrasing(e,{after:i,before:s,...o.current()})),l=c.charCodeAt(0),u=kT(r.before.charCodeAt(r.before.length-1),l,i);u.inside&&(c=OT(l)+c.slice(1));let d=c.charCodeAt(c.length-1),f=kT(r.after.charCodeAt(0),d,i);f.inside&&(c=c.slice(0,-1)+OT(d));let p=o.move(i+i);return a(),n.attentionEncodeSurroundingInfo={after:f.outside,before:u.outside},s+c+p}function oE(e,t,n){return n.options.strong||`*`}function sE(e,t,n,r){return n.safe(e.value,r)}function cE(e){let t=e.options.ruleRepetition||3;if(t<3)throw Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function lE(e,t,n){let r=(ZT(n)+(n.options.ruleSpaces?` `:``)).repeat(cE(n));return n.options.ruleSpaces?r.slice(0,-1):r}var uE={blockquote:hT,break:yT,code:CT,definition:ET,emphasis:AT,hardBreak:yT,heading:PT,html:FT,image:LT,imageReference:zT,inlineCode:VT,link:WT,linkReference:KT,list:QT,listItem:eE,paragraph:tE,root:rE,strong:aE,text:sE,thematicBreak:lE};function dE(){return{enter:{table:fE,tableData:gE,tableHeader:gE,tableRow:mE},exit:{codeText:_E,table:pE,tableData:hE,tableHeader:hE,tableRow:hE}}}function fE(e){let t=e._align;this.enter({type:`table`,align:t.map(function(e){return e===`none`?null:e}),children:[]},e),this.data.inTable=!0}function pE(e){this.exit(e),this.data.inTable=void 0}function mE(e){this.enter({type:`tableRow`,children:[]},e)}function hE(e){this.exit(e)}function gE(e){this.enter({type:`tableCell`,children:[]},e)}function _E(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,vE));let n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function vE(e,t){return t===`|`?t:e}function yE(e){let t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=n?` `:`|`;return{unsafe:[{character:`\r`,inConstruct:`tableCell`},{character:`
395
+ `,inConstruct:`tableCell`},{atBreak:!0,character:`|`,after:`[ :-]`},{character:`|`,inConstruct:`tableCell`},{atBreak:!0,character:`:`,after:`-`},{atBreak:!0,character:`-`,after:`[:|-]`}],handlers:{inlineCode:f,table:o,tableCell:c,tableRow:s}};function o(e,t,n,r){return l(u(e,n,r),e.align)}function s(e,t,n,r){let i=l([d(e,n,r)]);return i.slice(0,i.indexOf(`
396
+ `))}function c(e,t,n,r){let i=n.enter(`tableCell`),o=n.enter(`phrasing`),s=n.containerPhrasing(e,{...r,before:a,after:a});return o(),i(),s}function l(e,t){return uT(e,{align:t,alignDelimiters:r,padding:n,stringLength:i})}function u(e,t,n){let r=e.children,i=-1,a=[],o=t.enter(`table`);for(;++i<r.length;)a[i]=d(r[i],t,n);return o(),a}function d(e,t,n){let r=e.children,i=-1,a=[],o=t.enter(`tableRow`);for(;++i<r.length;)a[i]=c(r[i],e,t,n);return o(),a}function f(e,t,n){let r=uE.inlineCode(e,t,n);return n.stack.includes(`tableCell`)&&(r=r.replace(/\|/g,`\\$&`)),r}}function bE(){return{exit:{taskListCheckValueChecked:SE,taskListCheckValueUnchecked:SE,paragraph:CE}}}function xE(){return{unsafe:[{atBreak:!0,character:`-`,after:`[:|-]`}],handlers:{listItem:wE}}}function SE(e){let t=this.stack[this.stack.length-2];t.type,t.checked=e.type===`taskListCheckValueChecked`}function CE(e){let t=this.stack[this.stack.length-2];if(t&&t.type===`listItem`&&typeof t.checked==`boolean`){let e=this.stack[this.stack.length-1];e.type;let n=e.children[0];if(n&&n.type===`text`){let r=t.children,i=-1,a;for(;++i<r.length;){let e=r[i];if(e.type===`paragraph`){a=e;break}}a===e&&(n.value=n.value.slice(1),n.value.length===0?e.children.shift():e.position&&n.position&&typeof n.position.start.offset==`number`&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function wE(e,t,n,r){let i=e.children[0],a=typeof e.checked==`boolean`&&i&&i.type===`paragraph`,o=`[`+(e.checked?`x`:` `)+`] `,s=n.createTracker(r);a&&s.move(o);let c=uE.listItem(e,t,n,{...r,...s.current()});return a&&(c=c.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,l)),c;function l(e){return e+o}}function TE(){return[Ow(),Qw(),rT(),dE(),bE()]}function EE(e){return{extensions:[kw(),$w(e),iT(),yE(e),xE()]}}var DE={tokenize:VE,partial:!0},OE={tokenize:HE,partial:!0},kE={tokenize:UE,partial:!0},AE={tokenize:WE,partial:!0},jE={tokenize:GE,partial:!0},ME={name:`wwwAutolink`,tokenize:zE,previous:KE},NE={name:`protocolAutolink`,tokenize:BE,previous:qE},PE={name:`emailAutolink`,tokenize:RE,previous:JE},FE={};function IE(){return{text:FE}}for(var LE=48;LE<123;)FE[LE]=PE,LE++,LE===58?LE=65:LE===91&&(LE=97);FE[43]=PE,FE[45]=PE,FE[46]=PE,FE[95]=PE,FE[72]=[PE,NE],FE[104]=[PE,NE],FE[87]=[PE,ME],FE[119]=[PE,ME];function RE(e,t,n){let r=this,i,a;return o;function o(t){return!YE(t)||!JE.call(r,r.previous)||XE(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkEmail`),s(t))}function s(t){return YE(t)?(e.consume(t),s):t===64?(e.consume(t),c):n(t)}function c(t){return t===46?e.check(jE,u,l)(t):t===45||t===95||Tx(t)?(a=!0,e.consume(t),c):u(t)}function l(t){return e.consume(t),i=!0,c}function u(o){return a&&i&&wx(r.previous)?(e.exit(`literalAutolinkEmail`),e.exit(`literalAutolink`),t(o)):n(o)}}function zE(e,t,n){let r=this;return i;function i(t){return t!==87&&t!==119||!KE.call(r,r.previous)||XE(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkWww`),e.check(DE,e.attempt(OE,e.attempt(kE,a),n),n)(t))}function a(n){return e.exit(`literalAutolinkWww`),e.exit(`literalAutolink`),t(n)}}function BE(e,t,n){let r=this,i=``,a=!1;return o;function o(t){return(t===72||t===104)&&qE.call(r,r.previous)&&!XE(r.events)?(e.enter(`literalAutolink`),e.enter(`literalAutolinkHttp`),i+=String.fromCodePoint(t),e.consume(t),s):n(t)}function s(t){if(wx(t)&&i.length<5)return i+=String.fromCodePoint(t),e.consume(t),s;if(t===58){let n=i.toLowerCase();if(n===`http`||n===`https`)return e.consume(t),c}return n(t)}function c(t){return t===47?(e.consume(t),a?l:(a=!0,c)):n(t)}function l(t){return t===null||Dx(t)||jx(t)||Px(t)||Nx(t)?n(t):e.attempt(OE,e.attempt(kE,u),n)(t)}function u(n){return e.exit(`literalAutolinkHttp`),e.exit(`literalAutolink`),t(n)}}function VE(e,t,n){let r=0;return i;function i(t){return(t===87||t===119)&&r<3?(r++,e.consume(t),i):t===46&&r===3?(e.consume(t),a):n(t)}function a(e){return e===null?n(e):t(e)}}function HE(e,t,n){let r,i,a;return o;function o(t){return t===46||t===95?e.check(AE,c,s)(t):t===null||jx(t)||Px(t)||t!==45&&Nx(t)?c(t):(a=!0,e.consume(t),o)}function s(t){return t===95?r=!0:(i=r,r=void 0),e.consume(t),o}function c(e){return i||r||!a?n(e):t(e)}}function UE(e,t){let n=0,r=0;return i;function i(o){return o===40?(n++,e.consume(o),i):o===41&&r<n?a(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(AE,t,a)(o):o===null||jx(o)||Px(o)?t(o):(e.consume(o),i)}function a(t){return t===41&&r++,e.consume(t),i}}function WE(e,t,n){return r;function r(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),r):o===38?(e.consume(o),a):o===93?(e.consume(o),i):o===60||o===null||jx(o)||Px(o)?t(o):n(o)}function i(e){return e===null||e===40||e===91||jx(e)||Px(e)?t(e):r(e)}function a(e){return wx(e)?o(e):n(e)}function o(t){return t===59?(e.consume(t),r):wx(t)?(e.consume(t),o):n(t)}}function GE(e,t,n){return r;function r(t){return e.consume(t),i}function i(e){return Tx(e)?n(e):t(e)}}function KE(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||jx(e)}function qE(e){return!wx(e)}function JE(e){return!(e===47||YE(e))}function YE(e){return e===43||e===45||e===46||e===95||Tx(e)}function XE(e){let t=e.length,n=!1;for(;t--;){let r=e[t][1];if((r.type===`labelLink`||r.type===`labelImage`)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}var ZE={tokenize:aD,partial:!0};function QE(){return{document:{91:{name:`gfmFootnoteDefinition`,tokenize:nD,continuation:{tokenize:rD},exit:iD}},text:{91:{name:`gfmFootnoteCall`,tokenize:tD},93:{name:`gfmPotentialFootnoteCall`,add:`after`,tokenize:$E,resolveTo:eD}}}}function $E(e,t,n){let r=this,i=r.events.length,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),o;for(;i--;){let e=r.events[i][1];if(e.type===`labelImage`){o=e;break}if(e.type===`gfmFootnoteCall`||e.type===`labelLink`||e.type===`label`||e.type===`image`||e.type===`link`)break}return s;function s(i){if(!o||!o._balanced)return n(i);let s=Cx(r.sliceSerialize({start:o.end,end:r.now()}));return s.codePointAt(0)!==94||!a.includes(s.slice(1))?n(i):(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(i),e.exit(`gfmFootnoteCallLabelMarker`),t(i))}}function eD(e,t){let n=e.length;for(;n--;)if(e[n][1].type===`labelImage`&&e[n][0]===`enter`){e[n][1];break}e[n+1][1].type=`data`,e[n+3][1].type=`gfmFootnoteCallLabelMarker`;let r={type:`gfmFootnoteCall`,start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:`gfmFootnoteCallMarker`,start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;let a={type:`gfmFootnoteCallString`,start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:`chunkString`,contentType:`string`,start:Object.assign({},a.start),end:Object.assign({},a.end)},s=[e[n+1],e[n+2],[`enter`,r,t],e[n+3],e[n+4],[`enter`,i,t],[`exit`,i,t],[`enter`,a,t],[`enter`,o,t],[`exit`,o,t],[`exit`,a,t],e[e.length-2],e[e.length-1],[`exit`,r,t]];return e.splice(n,e.length-n+1,...s),e}function tD(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a=0,o;return s;function s(t){return e.enter(`gfmFootnoteCall`),e.enter(`gfmFootnoteCallLabelMarker`),e.consume(t),e.exit(`gfmFootnoteCallLabelMarker`),c}function c(t){return t===94?(e.enter(`gfmFootnoteCallMarker`),e.consume(t),e.exit(`gfmFootnoteCallMarker`),e.enter(`gfmFootnoteCallString`),e.enter(`chunkString`).contentType=`string`,l):n(t)}function l(s){if(a>999||s===93&&!o||s===null||s===91||jx(s))return n(s);if(s===93){e.exit(`chunkString`);let a=e.exit(`gfmFootnoteCallString`);return i.includes(Cx(r.sliceSerialize(a)))?(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(s),e.exit(`gfmFootnoteCallLabelMarker`),e.exit(`gfmFootnoteCall`),t):n(s)}return jx(s)||(o=!0),a++,e.consume(s),s===92?u:l}function u(t){return t===91||t===92||t===93?(e.consume(t),a++,l):l(t)}}function nD(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a,o=0,s;return c;function c(t){return e.enter(`gfmFootnoteDefinition`)._container=!0,e.enter(`gfmFootnoteDefinitionLabel`),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),l}function l(t){return t===94?(e.enter(`gfmFootnoteDefinitionMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionMarker`),e.enter(`gfmFootnoteDefinitionLabelString`),e.enter(`chunkString`).contentType=`string`,u):n(t)}function u(t){if(o>999||t===93&&!s||t===null||t===91||jx(t))return n(t);if(t===93){e.exit(`chunkString`);let n=e.exit(`gfmFootnoteDefinitionLabelString`);return a=Cx(r.sliceSerialize(n)),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),e.exit(`gfmFootnoteDefinitionLabel`),f}return jx(t)||(s=!0),o++,e.consume(t),t===92?d:u}function d(t){return t===91||t===92||t===93?(e.consume(t),o++,u):u(t)}function f(t){return t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),i.includes(a)||i.push(a),Q(e,p,`gfmFootnoteDefinitionWhitespace`)):n(t)}function p(e){return t(e)}}function rD(e,t,n){return e.check(Zx,t,e.attempt(ZE,t,n))}function iD(e){e.exit(`gfmFootnoteDefinition`)}function aD(e,t,n){let r=this;return Q(e,i,`gfmFootnoteDefinitionIndent`,5);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`gfmFootnoteDefinitionIndent`&&i[2].sliceSerialize(i[1],!0).length===4?t(e):n(e)}}function oD(e){let t=(e||{}).singleTilde,n={name:`strikethrough`,tokenize:i,resolveAll:r};return t??=!0,{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function r(e,t){let n=-1;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`strikethroughSequenceTemporary`&&e[n][1]._close){let r=n;for(;r--;)if(e[r][0]===`exit`&&e[r][1].type===`strikethroughSequenceTemporary`&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset===e[r][1].end.offset-e[r][1].start.offset){e[n][1].type=`strikethroughSequence`,e[r][1].type=`strikethroughSequence`;let i={type:`strikethrough`,start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},a={type:`strikethroughText`,start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},o=[[`enter`,i,t],[`enter`,e[r][1],t],[`exit`,e[r][1],t],[`enter`,a,t]],s=t.parser.constructs.insideSpan.null;s&&gx(o,o.length,0,Wx(s,e.slice(r+1,n),t)),gx(o,o.length,0,[[`exit`,a,t],[`enter`,e[n][1],t],[`exit`,e[n][1],t],[`exit`,i,t]]),gx(e,r-1,n-r+3,o),n=r+o.length-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`strikethroughSequenceTemporary`&&(e[n][1].type=`data`);return e}function i(e,n,r){let i=this.previous,a=this.events,o=0;return s;function s(t){return i===126&&a[a.length-1][1].type!==`characterEscape`?r(t):(e.enter(`strikethroughSequenceTemporary`),c(t))}function c(a){let s=Ux(i);if(a===126)return o>1?r(a):(e.consume(a),o++,c);if(o<2&&!t)return r(a);let l=e.exit(`strikethroughSequenceTemporary`),u=Ux(a);return l._open=!u||u===2&&!!s,l._close=!s||s===2&&!!u,n(a)}}}var sD=class{constructor(){this.map=[]}add(e,t,n){cD(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),this.map.length===0)return;let t=this.map.length,n=[];for(;t>0;)--t,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0}};function cD(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function lD(e,t){let n=!1,r=[];for(;t<e.length;){let i=e[t];if(n){if(i[0]===`enter`)i[1].type===`tableContent`&&r.push(e[t+1][1].type===`tableDelimiterMarker`?`left`:`none`);else if(i[1].type===`tableContent`){if(e[t-1][1].type===`tableDelimiterMarker`){let e=r.length-1;r[e]=r[e]===`left`?`center`:`right`}}else if(i[1].type===`tableDelimiterRow`)break}else i[0]===`enter`&&i[1].type===`tableDelimiterRow`&&(n=!0);t+=1}return r}function uD(){return{flow:{null:{name:`table`,tokenize:dD,resolveAll:fD}}}}function dD(e,t,n){let r=this,i=0,a=0,o;return s;function s(e){let t=r.events.length-1;for(;t>-1;){let e=r.events[t][1].type;if(e===`lineEnding`||e===`linePrefix`)t--;else break}let i=t>-1?r.events[t][1].type:null,a=i===`tableHead`||i===`tableRow`?S:c;return a===S&&r.parser.lazy[r.now().line]?n(e):a(e)}function c(t){return e.enter(`tableHead`),e.enter(`tableRow`),l(t)}function l(e){return e===124?u(e):(o=!0,a+=1,u(e))}function u(t){return t===null?n(t):Z(t)?a>1?(a=0,r.interrupt=!0,e.exit(`tableRow`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),p):n(t):Mx(t)?Q(e,u,`whitespace`)(t):(a+=1,o&&(o=!1,i+=1),t===124?(e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),o=!0,u):(e.enter(`data`),d(t)))}function d(t){return t===null||t===124||jx(t)?(e.exit(`data`),u(t)):(e.consume(t),t===92?f:d)}function f(t){return t===92||t===124?(e.consume(t),d):d(t)}function p(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter(`tableDelimiterRow`),o=!1,Mx(t)?Q(e,m,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):m(t))}function m(t){return t===45||t===58?g(t):t===124?(o=!0,e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),h):x(t)}function h(t){return Mx(t)?Q(e,g,`whitespace`)(t):g(t)}function g(t){return t===58?(a+=1,o=!0,e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),_):t===45?(a+=1,_(t)):t===null||Z(t)?b(t):x(t)}function _(t){return t===45?(e.enter(`tableDelimiterFiller`),v(t)):x(t)}function v(t){return t===45?(e.consume(t),v):t===58?(o=!0,e.exit(`tableDelimiterFiller`),e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),y):(e.exit(`tableDelimiterFiller`),y(t))}function y(t){return Mx(t)?Q(e,b,`whitespace`)(t):b(t)}function b(n){return n===124?m(n):n===null||Z(n)?!o||i!==a?x(n):(e.exit(`tableDelimiterRow`),e.exit(`tableHead`),t(n)):x(n)}function x(e){return n(e)}function S(t){return e.enter(`tableRow`),C(t)}function C(n){return n===124?(e.enter(`tableCellDivider`),e.consume(n),e.exit(`tableCellDivider`),C):n===null||Z(n)?(e.exit(`tableRow`),t(n)):Mx(n)?Q(e,C,`whitespace`)(n):(e.enter(`data`),w(n))}function w(t){return t===null||t===124||jx(t)?(e.exit(`data`),C(t)):(e.consume(t),t===92?T:w)}function T(t){return t===92||t===124?(e.consume(t),w):w(t)}}function fD(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],o=[0,0,0,0],s=!1,c=0,l,u,d,f=new sD;for(;++n<e.length;){let p=e[n],m=p[1];p[0]===`enter`?m.type===`tableHead`?(s=!1,c!==0&&(mD(f,t,c,l,u),u=void 0,c=0),l={type:`table`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,l,t]])):m.type===`tableRow`||m.type===`tableDelimiterRow`?(r=!0,d=void 0,a=[0,0,0,0],o=[0,n+1,0,0],s&&(s=!1,u={type:`tableBody`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,u,t]])),i=m.type===`tableDelimiterRow`?2:u?3:1):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)?(r=!1,o[2]===0&&(a[1]!==0&&(o[0]=o[1],d=pD(f,t,a,i,void 0,d),a=[0,0,0,0]),o[2]=n)):m.type===`tableCellDivider`&&(r?r=!1:(a[1]!==0&&(o[0]=o[1],d=pD(f,t,a,i,void 0,d)),a=o,o=[a[1],n,0,0])):m.type===`tableHead`?(s=!0,c=n):m.type===`tableRow`||m.type===`tableDelimiterRow`?(c=n,a[1]===0?o[1]!==0&&(d=pD(f,t,o,i,n,d)):(o[0]=o[1],d=pD(f,t,a,i,n,d)),i=0):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)&&(o[3]=n)}for(c!==0&&mD(f,t,c,l,u),f.consume(t.events),n=-1;++n<t.events.length;){let e=t.events[n];e[0]===`enter`&&e[1].type===`table`&&(e[1]._align=lD(t.events,n))}return e}function pD(e,t,n,r,i,a){let o=r===1?`tableHeader`:r===2?`tableDelimiter`:`tableData`;n[0]!==0&&(a.end=Object.assign({},hD(t.events,n[0])),e.add(n[0],0,[[`exit`,a,t]]));let s=hD(t.events,n[1]);if(a={type:o,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[[`enter`,a,t]]),n[2]!==0){let i=hD(t.events,n[2]),a=hD(t.events,n[3]),o={type:`tableContent`,start:Object.assign({},i),end:Object.assign({},a)};if(e.add(n[2],0,[[`enter`,o,t]]),r!==2){let r=t.events[n[2]],i=t.events[n[3]];if(r[1].end=Object.assign({},i[1].end),r[1].type=`chunkText`,r[1].contentType=`text`,n[3]>n[2]+1){let t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[[`exit`,o,t]])}return i!==void 0&&(a.end=Object.assign({},hD(t.events,i)),e.add(i,0,[[`exit`,a,t]]),a=void 0),a}function mD(e,t,n,r,i){let a=[],o=hD(t.events,n);i&&(i.end=Object.assign({},o),a.push([`exit`,i,t])),r.end=Object.assign({},o),a.push([`exit`,r,t]),e.add(n+1,0,a)}function hD(e,t){let n=e[t],r=n[0]===`enter`?`start`:`end`;return n[1][r]}var gD={name:`tasklistCheck`,tokenize:vD};function _D(){return{text:{91:gD}}}function vD(e,t,n){let r=this;return i;function i(t){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(t):(e.enter(`taskListCheck`),e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),a)}function a(t){return jx(t)?(e.enter(`taskListCheckValueUnchecked`),e.consume(t),e.exit(`taskListCheckValueUnchecked`),o):t===88||t===120?(e.enter(`taskListCheckValueChecked`),e.consume(t),e.exit(`taskListCheckValueChecked`),o):n(t)}function o(t){return t===93?(e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),e.exit(`taskListCheck`),s):n(t)}function s(r){return Z(r)?t(r):Mx(r)?e.check({tokenize:yD},t,n)(r):n(r)}}function yD(e,t,n){return Q(e,r,`whitespace`);function r(e){return e===null?n(e):t(e)}}function bD(e){return yx([IE(),QE(),oD(e),uD(),_D()])}var xD={};function SD(e){let t=this,n=e||xD,r=t.data(),i=r.micromarkExtensions||=[],a=r.fromMarkdownExtensions||=[],o=r.toMarkdownExtensions||=[];i.push(bD(n)),a.push(TE()),o.push(EE(n))}function CD(e,t){let n={type:`element`,tagName:`blockquote`,properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function wD(e,t){let n={type:`element`,tagName:`br`,properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:`text`,value:`
397
+ `}]}function TD(e,t){let n=t.value?t.value+`
398
+ `:``,r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=[`language-`+i[0]]);let a={type:`element`,tagName:`code`,properties:r,children:[{type:`text`,value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:`element`,tagName:`pre`,properties:{},children:[a]},e.patch(t,a),a}function ED(e,t){let n={type:`element`,tagName:`del`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function DD(e,t){let n={type:`element`,tagName:`em`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function OD(e,t){let n=typeof e.options.clobberPrefix==`string`?e.options.clobberPrefix:`user-content-`,r=String(t.identifier).toUpperCase(),i=Ix(r.toLowerCase()),a=e.footnoteOrder.indexOf(r),o,s=e.footnoteCounts.get(r);s===void 0?(s=0,e.footnoteOrder.push(r),o=e.footnoteOrder.length):o=a+1,s+=1,e.footnoteCounts.set(r,s);let c={type:`element`,tagName:`a`,properties:{href:`#`+n+`fn-`+i,id:n+`fnref-`+i+(s>1?`-`+s:``),dataFootnoteRef:!0,ariaDescribedBy:[`footnote-label`]},children:[{type:`text`,value:String(o)}]};e.patch(t,c);let l={type:`element`,tagName:`sup`,properties:{},children:[c]};return e.patch(t,l),e.applyData(t,l)}function kD(e,t){let n={type:`element`,tagName:`h`+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function AD(e,t){if(e.options.allowDangerousHtml){let n={type:`raw`,value:t.value};return e.patch(t,n),e.applyData(t,n)}}function jD(e,t){let n=t.referenceType,r=`]`;if(n===`collapsed`?r+=`[]`:n===`full`&&(r+=`[`+(t.label||t.identifier)+`]`),t.type===`imageReference`)return[{type:`text`,value:`![`+t.alt+r}];let i=e.all(t),a=i[0];a&&a.type===`text`?a.value=`[`+a.value:i.unshift({type:`text`,value:`[`});let o=i[i.length-1];return o&&o.type===`text`?o.value+=r:i.push({type:`text`,value:r}),i}function MD(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return jD(e,t);let i={src:Ix(r.url||``),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);let a={type:`element`,tagName:`img`,properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function ND(e,t){let n={src:Ix(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);let r={type:`element`,tagName:`img`,properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function PD(e,t){let n={type:`text`,value:t.value.replace(/\r?\n|\r/g,` `)};e.patch(t,n);let r={type:`element`,tagName:`code`,properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function FD(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return jD(e,t);let i={href:Ix(r.url||``)};r.title!==null&&r.title!==void 0&&(i.title=r.title);let a={type:`element`,tagName:`a`,properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function ID(e,t){let n={href:Ix(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);let r={type:`element`,tagName:`a`,properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function LD(e,t,n){let r=e.all(t),i=n?RD(n):zD(t),a={},o=[];if(typeof t.checked==`boolean`){let e=r[0],n;e&&e.type===`element`&&e.tagName===`p`?n=e:(n={type:`element`,tagName:`p`,properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:`text`,value:` `}),n.children.unshift({type:`element`,tagName:`input`,properties:{type:`checkbox`,checked:t.checked,disabled:!0},children:[]}),a.className=[`task-list-item`]}let s=-1;for(;++s<r.length;){let e=r[s];(i||s!==0||e.type!==`element`||e.tagName!==`p`)&&o.push({type:`text`,value:`
399
+ `}),e.type===`element`&&e.tagName===`p`&&!i?o.push(...e.children):o.push(e)}let c=r[r.length-1];c&&(i||c.type!==`element`||c.tagName!==`p`)&&o.push({type:`text`,value:`
400
+ `});let l={type:`element`,tagName:`li`,properties:a,children:o};return e.patch(t,l),e.applyData(t,l)}function RD(e){let t=!1;if(e.type===`list`){t=e.spread||!1;let n=e.children,r=-1;for(;!t&&++r<n.length;)t=zD(n[r])}return t}function zD(e){return e.spread??e.children.length>1}function BD(e,t){let n={},r=e.all(t),i=-1;for(typeof t.start==`number`&&t.start!==1&&(n.start=t.start);++i<r.length;){let e=r[i];if(e.type===`element`&&e.tagName===`li`&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes(`task-list-item`)){n.className=[`contains-task-list`];break}}let a={type:`element`,tagName:t.ordered?`ol`:`ul`,properties:n,children:e.wrap(r,!0)};return e.patch(t,a),e.applyData(t,a)}function VD(e,t){let n={type:`element`,tagName:`p`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function HD(e,t){let n={type:`root`,children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function UD(e,t){let n={type:`element`,tagName:`strong`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}var WD=KD(`end`),GD=KD(`start`);function KD(e){return t;function t(t){let n=t&&t.position&&t.position[e]||{};if(typeof n.line==`number`&&n.line>0&&typeof n.column==`number`&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset==`number`&&n.offset>-1?n.offset:void 0}}}function qD(e){let t=GD(e),n=WD(e);if(t&&n)return{start:t,end:n}}function JD(e,t){let n=e.all(t),r=n.shift(),i=[];if(r){let n={type:`element`,tagName:`thead`,properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),i.push(n)}if(n.length>0){let r={type:`element`,tagName:`tbody`,properties:{},children:e.wrap(n,!0)},a=GD(t.children[1]),o=WD(t.children[t.children.length-1]);a&&o&&(r.position={start:a,end:o}),i.push(r)}let a={type:`element`,tagName:`table`,properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function YD(e,t,n){let r=n?n.children:void 0,i=(r?r.indexOf(t):1)===0?`th`:`td`,a=n&&n.type===`table`?n.align:void 0,o=a?a.length:t.children.length,s=-1,c=[];for(;++s<o;){let n=t.children[s],r={},o=a?a[s]:void 0;o&&(r.align=o);let l={type:`element`,tagName:i,properties:r,children:[]};n&&(l.children=e.all(n),e.patch(n,l),l=e.applyData(n,l)),c.push(l)}let l={type:`element`,tagName:`tr`,properties:{},children:e.wrap(c,!0)};return e.patch(t,l),e.applyData(t,l)}function XD(e,t){let n={type:`element`,tagName:`td`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}var ZD=9,QD=32;function $D(e){let t=String(e),n=/\r?\n|\r/g,r=n.exec(t),i=0,a=[];for(;r;)a.push(eO(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(eO(t.slice(i),i>0,!1)),a.join(``)}function eO(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;t===ZD||t===QD;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;t===ZD||t===QD;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):``}function tO(e,t){let n={type:`text`,value:$D(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function nO(e,t){let n={type:`element`,tagName:`hr`,properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}var rO={blockquote:CD,break:wD,code:TD,delete:ED,emphasis:DD,footnoteReference:OD,heading:kD,html:AD,imageReference:MD,image:ND,inlineCode:PD,linkReference:FD,link:ID,listItem:LD,list:BD,paragraph:VD,root:HD,strong:UD,table:JD,tableCell:XD,tableRow:YD,text:tO,thematicBreak:nO,toml:iO,yaml:iO,definition:iO,footnoteDefinition:iO};function iO(){}var aO=typeof self==`object`?self:globalThis,oO=(e,t)=>{switch(e){case`Function`:case`SharedWorker`:case`Worker`:case`eval`:case`setInterval`:case`setTimeout`:throw TypeError(`unable to deserialize `+e)}return new aO[e](t)},sO=(e,t)=>{let n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);let[a,o]=t[i];switch(a){case 0:case-1:return n(o,i);case 1:{let e=n([],i);for(let t of o)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of o)e[r(t)]=r(n);return e}case 3:return n(new Date(o),i);case 4:{let{source:e,flags:t}=o;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of o)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,i);for(let t of o)e.add(r(t));return e}case 7:{let{name:e,message:t}=o;return n(oO(e,t),i)}case 8:return n(BigInt(o),i);case`BigInt`:return n(Object(BigInt(o)),i);case`ArrayBuffer`:return n(new Uint8Array(o).buffer,o);case`DataView`:{let{buffer:e}=new Uint8Array(o);return n(new DataView(e),o)}}return n(oO(a,o),i)};return r},cO=e=>sO(new Map,e)(0),lO=``,{toString:uO}={},{keys:dO}=Object,fO=e=>{let t=typeof e;if(t!==`object`||!e)return[0,t];let n=uO.call(e).slice(8,-1);switch(n){case`Array`:return[1,lO];case`Object`:return[2,lO];case`Date`:return[3,lO];case`RegExp`:return[4,lO];case`Map`:return[5,lO];case`Set`:return[6,lO];case`DataView`:return[1,n]}return n.includes(`Array`)?[1,n]:n.includes(`Error`)?[7,n]:[2,n]},pO=([e,t])=>e===0&&(t===`function`||t===`symbol`),mO=(e,t,n,r)=>{let i=(e,t)=>{let i=r.push(e)-1;return n.set(t,i),i},a=r=>{if(n.has(r))return n.get(r);let[o,s]=fO(r);switch(o){case 0:{let t=r;switch(s){case`bigint`:o=8,t=r.toString();break;case`function`:case`symbol`:if(e)throw TypeError(`unable to serialize `+s);t=null;break;case`undefined`:return i([-1],r)}return i([o,t],r)}case 1:{if(s){let e=r;return s===`DataView`?e=new Uint8Array(r.buffer):s===`ArrayBuffer`&&(e=new Uint8Array(r)),i([s,[...e]],r)}let e=[],t=i([o,e],r);for(let t of r)e.push(a(t));return t}case 2:{if(s)switch(s){case`BigInt`:return i([s,r.toString()],r);case`Boolean`:case`Number`:case`String`:return i([s,r.valueOf()],r)}if(t&&`toJSON`in r)return a(r.toJSON());let n=[],c=i([o,n],r);for(let t of dO(r))(e||!pO(fO(r[t])))&&n.push([a(t),a(r[t])]);return c}case 3:return i([o,r.toISOString()],r);case 4:{let{source:e,flags:t}=r;return i([o,{source:e,flags:t}],r)}case 5:{let t=[],n=i([o,t],r);for(let[n,i]of r)(e||!(pO(fO(n))||pO(fO(i))))&&t.push([a(n),a(i)]);return n}case 6:{let t=[],n=i([o,t],r);for(let n of r)(e||!pO(fO(n)))&&t.push(a(n));return n}}let{message:c}=r;return i([o,{name:s,message:c}],r)};return a},hO=(e,{json:t,lossy:n}={})=>{let r=[];return mO(!(t||n),!!t,new Map,r)(e),r},gO=typeof structuredClone==`function`?(e,t)=>t&&(`json`in t||`lossy`in t)?cO(hO(e,t)):structuredClone(e):(e,t)=>cO(hO(e,t));function _O(e,t){let n=[{type:`text`,value:`↩`}];return t>1&&n.push({type:`element`,tagName:`sup`,properties:{},children:[{type:`text`,value:String(t)}]}),n}function vO(e,t){return`Back to reference `+(e+1)+(t>1?`-`+t:``)}function yO(e){let t=typeof e.options.clobberPrefix==`string`?e.options.clobberPrefix:`user-content-`,n=e.options.footnoteBackContent||_O,r=e.options.footnoteBackLabel||vO,i=e.options.footnoteLabel||`Footnotes`,a=e.options.footnoteLabelTagName||`h2`,o=e.options.footnoteLabelProperties||{className:[`sr-only`]},s=[],c=-1;for(;++c<e.footnoteOrder.length;){let i=e.footnoteById.get(e.footnoteOrder[c]);if(!i)continue;let a=e.all(i),o=String(i.identifier).toUpperCase(),l=Ix(o.toLowerCase()),u=0,d=[],f=e.footnoteCounts.get(o);for(;f!==void 0&&++u<=f;){d.length>0&&d.push({type:`text`,value:` `});let e=typeof n==`string`?n:n(c,u);typeof e==`string`&&(e={type:`text`,value:e}),d.push({type:`element`,tagName:`a`,properties:{href:`#`+t+`fnref-`+l+(u>1?`-`+u:``),dataFootnoteBackref:``,ariaLabel:typeof r==`string`?r:r(c,u),className:[`data-footnote-backref`]},children:Array.isArray(e)?e:[e]})}let p=a[a.length-1];if(p&&p.type===`element`&&p.tagName===`p`){let e=p.children[p.children.length-1];e&&e.type===`text`?e.value+=` `:p.children.push({type:`text`,value:` `}),p.children.push(...d)}else a.push(...d);let m={type:`element`,tagName:`li`,properties:{id:t+`fn-`+l},children:e.wrap(a,!0)};e.patch(i,m),s.push(m)}if(s.length!==0)return{type:`element`,tagName:`section`,properties:{dataFootnotes:!0,className:[`footnotes`]},children:[{type:`element`,tagName:a,properties:{...gO(o),id:`footnote-label`},children:[{type:`text`,value:i}]},{type:`text`,value:`
401
+ `},{type:`element`,tagName:`ol`,properties:{},children:e.wrap(s,!0)},{type:`text`,value:`
402
+ `}]}}var bO={}.hasOwnProperty,xO={};function SO(e,t){let n=t||xO,r=new Map,i=new Map,a={all:s,applyData:wO,definitionById:r,footnoteById:i,footnoteCounts:new Map,footnoteOrder:[],handlers:{...rO,...n.handlers},one:o,options:n,patch:CO,wrap:EO};return MT(e,function(e){if(e.type===`definition`||e.type===`footnoteDefinition`){let t=e.type===`definition`?r:i,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),a;function o(e,t){let n=e.type,r=a.handlers[n];if(bO.call(a.handlers,n)&&r)return r(a,e,t);if(a.options.passThrough&&a.options.passThrough.includes(n)){if(`children`in e){let{children:t,...n}=e,r=gO(n);return r.children=a.all(e),r}return gO(e)}return(a.options.unknownHandler||TO)(a,e,t)}function s(e){let t=[];if(`children`in e){let n=e.children,r=-1;for(;++r<n.length;){let i=a.one(n[r],e);if(i){if(r&&n[r-1].type===`break`&&(!Array.isArray(i)&&i.type===`text`&&(i.value=DO(i.value)),!Array.isArray(i)&&i.type===`element`)){let e=i.children[0];e&&e.type===`text`&&(e.value=DO(e.value))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t}}function CO(e,t){e.position&&(t.position=qD(e))}function wO(e,t){let n=t;if(e&&e.data){let t=e.data.hName,r=e.data.hChildren,i=e.data.hProperties;typeof t==`string`&&(n.type===`element`?n.tagName=t:n={type:`element`,tagName:t,properties:{},children:`children`in n?n.children:[n]}),n.type===`element`&&i&&Object.assign(n.properties,gO(i)),`children`in n&&n.children&&r!=null&&(n.children=r)}return n}function TO(e,t){let n=t.data||{},r=`value`in t&&!(bO.call(n,`hProperties`)||bO.call(n,`hChildren`))?{type:`text`,value:t.value}:{type:`element`,tagName:`div`,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function EO(e,t){let n=[],r=-1;for(t&&n.push({type:`text`,value:`
403
+ `});++r<e.length;)r&&n.push({type:`text`,value:`
404
+ `}),n.push(e[r]);return t&&e.length>0&&n.push({type:`text`,value:`
405
+ `}),n}function DO(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function OO(e,t){let n=SO(e,t),r=n.one(e,void 0),i=yO(n),a=Array.isArray(r)?{type:`root`,children:r}:r||{type:`root`,children:[]};return i&&(`children`in a,a.children.push({type:`text`,value:`
406
+ `},i)),a}function kO(e,t){return e&&`run`in e?async function(n,r){let i=OO(n,{file:r,...t});await e.run(i,r)}:function(n,r){return OO(n,{file:r,...e||t})}}var AO=[`area`,`base`,`basefont`,`bgsound`,`br`,`col`,`command`,`embed`,`frame`,`hr`,`image`,`img`,`input`,`keygen`,`link`,`meta`,`param`,`source`,`track`,`wbr`],jO=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};jO.prototype.normal={},jO.prototype.property={},jO.prototype.space=void 0;function MO(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new jO(n,r,t)}function NO(e){return e.toLowerCase()}var PO=class{constructor(e,t){this.attribute=t,this.property=e}};PO.prototype.attribute=``,PO.prototype.booleanish=!1,PO.prototype.boolean=!1,PO.prototype.commaOrSpaceSeparated=!1,PO.prototype.commaSeparated=!1,PO.prototype.defined=!1,PO.prototype.mustUseProperty=!1,PO.prototype.number=!1,PO.prototype.overloadedBoolean=!1,PO.prototype.property=``,PO.prototype.spaceSeparated=!1,PO.prototype.space=void 0;var FO=l({boolean:()=>LO,booleanish:()=>RO,commaOrSpaceSeparated:()=>HO,commaSeparated:()=>VO,number:()=>$,overloadedBoolean:()=>zO,spaceSeparated:()=>BO}),IO=0,LO=UO(),RO=UO(),zO=UO(),$=UO(),BO=UO(),VO=UO(),HO=UO();function UO(){return 2**++IO}var WO=Object.keys(FO),GO=class extends PO{constructor(e,t,n,r){let i=-1;if(super(e,t),KO(this,`space`,r),typeof n==`number`)for(;++i<WO.length;){let e=WO[i];KO(this,WO[i],(n&FO[e])===FO[e])}}};GO.prototype.defined=!0;function KO(e,t,n){n&&(e[t]=n)}function qO(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new GO(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[NO(r)]=r,n[NO(a.attribute)]=r}return new jO(t,n,e.space)}var JO=qO({properties:{ariaActiveDescendant:null,ariaAtomic:RO,ariaAutoComplete:null,ariaBusy:RO,ariaChecked:RO,ariaColCount:$,ariaColIndex:$,ariaColSpan:$,ariaControls:BO,ariaCurrent:null,ariaDescribedBy:BO,ariaDetails:null,ariaDisabled:RO,ariaDropEffect:BO,ariaErrorMessage:null,ariaExpanded:RO,ariaFlowTo:BO,ariaGrabbed:RO,ariaHasPopup:null,ariaHidden:RO,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:BO,ariaLevel:$,ariaLive:null,ariaModal:RO,ariaMultiLine:RO,ariaMultiSelectable:RO,ariaOrientation:null,ariaOwns:BO,ariaPlaceholder:null,ariaPosInSet:$,ariaPressed:RO,ariaReadOnly:RO,ariaRelevant:null,ariaRequired:RO,ariaRoleDescription:BO,ariaRowCount:$,ariaRowIndex:$,ariaRowSpan:$,ariaSelected:RO,ariaSetSize:$,ariaSort:null,ariaValueMax:$,ariaValueMin:$,ariaValueNow:$,ariaValueText:null,role:null},transform(e,t){return t===`role`?t:`aria-`+t.slice(4).toLowerCase()}});function YO(e,t){return t in e?e[t]:t}function XO(e,t){return YO(e,t.toLowerCase())}var ZO=qO({attributes:{acceptcharset:`accept-charset`,classname:`class`,htmlfor:`for`,httpequiv:`http-equiv`},mustUseProperty:[`checked`,`multiple`,`muted`,`selected`],properties:{abbr:null,accept:VO,acceptCharset:BO,accessKey:BO,action:null,allow:null,allowFullScreen:LO,allowPaymentRequest:LO,allowUserMedia:LO,alt:null,as:null,async:LO,autoCapitalize:null,autoComplete:BO,autoFocus:LO,autoPlay:LO,blocking:BO,capture:null,charSet:null,checked:LO,cite:null,className:BO,cols:$,colSpan:null,content:null,contentEditable:RO,controls:LO,controlsList:BO,coords:$|VO,crossOrigin:null,data:null,dateTime:null,decoding:null,default:LO,defer:LO,dir:null,dirName:null,disabled:LO,download:zO,draggable:RO,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:LO,formTarget:null,headers:BO,height:$,hidden:zO,high:$,href:null,hrefLang:null,htmlFor:BO,httpEquiv:BO,id:null,imageSizes:null,imageSrcSet:null,inert:LO,inputMode:null,integrity:null,is:null,isMap:LO,itemId:null,itemProp:BO,itemRef:BO,itemScope:LO,itemType:BO,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:LO,low:$,manifest:null,max:null,maxLength:$,media:null,method:null,min:null,minLength:$,multiple:LO,muted:LO,name:null,nonce:null,noModule:LO,noValidate:LO,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:LO,optimum:$,pattern:null,ping:BO,placeholder:null,playsInline:LO,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:LO,referrerPolicy:null,rel:BO,required:LO,reversed:LO,rows:$,rowSpan:$,sandbox:BO,scope:null,scoped:LO,seamless:LO,selected:LO,shadowRootClonable:LO,shadowRootDelegatesFocus:LO,shadowRootMode:null,shape:null,size:$,sizes:null,slot:null,span:$,spellCheck:RO,src:null,srcDoc:null,srcLang:null,srcSet:null,start:$,step:null,style:null,tabIndex:$,target:null,title:null,translate:null,type:null,typeMustMatch:LO,useMap:null,value:RO,width:$,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:BO,axis:null,background:null,bgColor:null,border:$,borderColor:null,bottomMargin:$,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:LO,declare:LO,event:null,face:null,frame:null,frameBorder:null,hSpace:$,leftMargin:$,link:null,longDesc:null,lowSrc:null,marginHeight:$,marginWidth:$,noResize:LO,noHref:LO,noShade:LO,noWrap:LO,object:null,profile:null,prompt:null,rev:null,rightMargin:$,rules:null,scheme:null,scrolling:RO,standby:null,summary:null,text:null,topMargin:$,valueType:null,version:null,vAlign:null,vLink:null,vSpace:$,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:LO,disableRemotePlayback:LO,prefix:null,property:null,results:$,security:null,unselectable:null},space:`html`,transform:XO}),QO=qO({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`,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:HO,accentHeight:$,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:$,amplitude:$,arabicForm:null,ascent:$,attributeName:null,attributeType:null,azimuth:$,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:$,by:null,calcMode:null,capHeight:$,className:BO,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:$,diffuseConstant:$,direction:null,display:null,dur:null,divisor:$,dominantBaseline:null,download:LO,dx:null,dy:null,edgeMode:null,editable:null,elevation:$,enableBackground:null,end:null,event:null,exponent:$,externalResourcesRequired:null,fill:null,fillOpacity:$,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:VO,g2:VO,glyphName:VO,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:$,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:$,horizOriginX:$,horizOriginY:$,id:null,ideographic:$,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:$,k:$,k1:$,k2:$,k3:$,k4:$,kernelMatrix:HO,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:$,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:$,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:$,overlineThickness:$,paintOrder:null,panose1:null,path:null,pathLength:$,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:BO,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:$,pointsAtY:$,pointsAtZ:$,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:HO,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:HO,rev:HO,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:HO,requiredFeatures:HO,requiredFonts:HO,requiredFormats:HO,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:$,specularExponent:$,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:$,strikethroughThickness:$,string:null,stroke:null,strokeDashArray:HO,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:$,strokeOpacity:$,strokeWidth:null,style:null,surfaceScale:$,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:HO,tabIndex:$,tableValues:null,target:null,targetX:$,targetY:$,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:HO,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:$,underlineThickness:$,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:$,values:null,vAlphabetic:$,vMathematical:$,vectorEffect:null,vHanging:$,vIdeographic:$,version:null,vertAdvY:$,vertOriginX:$,vertOriginY:$,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:$,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:`svg`,transform:YO}),$O=qO({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()}}),ek=qO({attributes:{xmlnsxlink:`xmlns:xlink`},properties:{xmlnsXLink:null,xmlns:null},space:`xmlns`,transform:XO}),tk=qO({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:`xml`,transform(e,t){return`xml:`+t.slice(3).toLowerCase()}}),nk=/[A-Z]/g,rk=/-[a-z]/g,ik=/^data[-\w.:]+$/i;function ak(e,t){let n=NO(t),r=t,i=PO;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)===`data`&&ik.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(rk,sk);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!rk.test(e)){let n=e.replace(nk,ok);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=GO}return new i(r,t)}function ok(e){return`-`+e.toLowerCase()}function sk(e){return e.charAt(1).toUpperCase()}var ck=MO([JO,ZO,$O,ek,tk],`html`),lk=MO([JO,QO,$O,ek,tk],`svg`),uk=/["&'<>`]/g,dk=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,fk=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,pk=/[|\\{}()[\]^$+*?.]/g,mk=new WeakMap;function hk(e,t){if(e=e.replace(t.subset?gk(t.subset):uk,r),t.subset||t.escapeOnly)return e;return e.replace(dk,n).replace(fk,r);function n(e,n,r){return t.format((e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536,r.charCodeAt(n+2),t)}function r(e,n,r){return t.format(e.charCodeAt(0),r.charCodeAt(n+1),t)}}function gk(e){let t=mk.get(e);return t||(t=_k(e),mk.set(e,t)),t}function _k(e){let t=[],n=-1;for(;++n<e.length;)t.push(e[n].replace(pk,`\\$&`));return RegExp(`(?:`+t.join(`|`)+`)`,`g`)}var vk=/[\dA-Fa-f]/;function yk(e,t,n){let r=`&#x`+e.toString(16).toUpperCase();return n&&t&&!vk.test(String.fromCharCode(t))?r:r+`;`}var bk=/\d/;function xk(e,t,n){let r=`&#`+String(e);return n&&t&&!bk.test(String.fromCharCode(t))?r:r+`;`}var Sk=`AElig.AMP.Aacute.Acirc.Agrave.Aring.Atilde.Auml.COPY.Ccedil.ETH.Eacute.Ecirc.Egrave.Euml.GT.Iacute.Icirc.Igrave.Iuml.LT.Ntilde.Oacute.Ocirc.Ograve.Oslash.Otilde.Ouml.QUOT.REG.THORN.Uacute.Ucirc.Ugrave.Uuml.Yacute.aacute.acirc.acute.aelig.agrave.amp.aring.atilde.auml.brvbar.ccedil.cedil.cent.copy.curren.deg.divide.eacute.ecirc.egrave.eth.euml.frac12.frac14.frac34.gt.iacute.icirc.iexcl.igrave.iquest.iuml.laquo.lt.macr.micro.middot.nbsp.not.ntilde.oacute.ocirc.ograve.ordf.ordm.oslash.otilde.ouml.para.plusmn.pound.quot.raquo.reg.sect.shy.sup1.sup2.sup3.szlig.thorn.times.uacute.ucirc.ugrave.uml.uuml.yacute.yen.yuml`.split(`.`),Ck={nbsp:`\xA0`,iexcl:`¡`,cent:`¢`,pound:`£`,curren:`¤`,yen:`¥`,brvbar:`¦`,sect:`§`,uml:`¨`,copy:`©`,ordf:`ª`,laquo:`«`,not:`¬`,shy:`­`,reg:`®`,macr:`¯`,deg:`°`,plusmn:`±`,sup2:`²`,sup3:`³`,acute:`´`,micro:`µ`,para:`¶`,middot:`·`,cedil:`¸`,sup1:`¹`,ordm:`º`,raquo:`»`,frac14:`¼`,frac12:`½`,frac34:`¾`,iquest:`¿`,Agrave:`À`,Aacute:`Á`,Acirc:`Â`,Atilde:`Ã`,Auml:`Ä`,Aring:`Å`,AElig:`Æ`,Ccedil:`Ç`,Egrave:`È`,Eacute:`É`,Ecirc:`Ê`,Euml:`Ë`,Igrave:`Ì`,Iacute:`Í`,Icirc:`Î`,Iuml:`Ï`,ETH:`Ð`,Ntilde:`Ñ`,Ograve:`Ò`,Oacute:`Ó`,Ocirc:`Ô`,Otilde:`Õ`,Ouml:`Ö`,times:`×`,Oslash:`Ø`,Ugrave:`Ù`,Uacute:`Ú`,Ucirc:`Û`,Uuml:`Ü`,Yacute:`Ý`,THORN:`Þ`,szlig:`ß`,agrave:`à`,aacute:`á`,acirc:`â`,atilde:`ã`,auml:`ä`,aring:`å`,aelig:`æ`,ccedil:`ç`,egrave:`è`,eacute:`é`,ecirc:`ê`,euml:`ë`,igrave:`ì`,iacute:`í`,icirc:`î`,iuml:`ï`,eth:`ð`,ntilde:`ñ`,ograve:`ò`,oacute:`ó`,ocirc:`ô`,otilde:`õ`,ouml:`ö`,divide:`÷`,oslash:`ø`,ugrave:`ù`,uacute:`ú`,ucirc:`û`,uuml:`ü`,yacute:`ý`,thorn:`þ`,yuml:`ÿ`,fnof:`ƒ`,Alpha:`Α`,Beta:`Β`,Gamma:`Γ`,Delta:`Δ`,Epsilon:`Ε`,Zeta:`Ζ`,Eta:`Η`,Theta:`Θ`,Iota:`Ι`,Kappa:`Κ`,Lambda:`Λ`,Mu:`Μ`,Nu:`Ν`,Xi:`Ξ`,Omicron:`Ο`,Pi:`Π`,Rho:`Ρ`,Sigma:`Σ`,Tau:`Τ`,Upsilon:`Υ`,Phi:`Φ`,Chi:`Χ`,Psi:`Ψ`,Omega:`Ω`,alpha:`α`,beta:`β`,gamma:`γ`,delta:`δ`,epsilon:`ε`,zeta:`ζ`,eta:`η`,theta:`θ`,iota:`ι`,kappa:`κ`,lambda:`λ`,mu:`μ`,nu:`ν`,xi:`ξ`,omicron:`ο`,pi:`π`,rho:`ρ`,sigmaf:`ς`,sigma:`σ`,tau:`τ`,upsilon:`υ`,phi:`φ`,chi:`χ`,psi:`ψ`,omega:`ω`,thetasym:`ϑ`,upsih:`ϒ`,piv:`ϖ`,bull:`•`,hellip:`…`,prime:`′`,Prime:`″`,oline:`‾`,frasl:`⁄`,weierp:`℘`,image:`ℑ`,real:`ℜ`,trade:`™`,alefsym:`ℵ`,larr:`←`,uarr:`↑`,rarr:`→`,darr:`↓`,harr:`↔`,crarr:`↵`,lArr:`⇐`,uArr:`⇑`,rArr:`⇒`,dArr:`⇓`,hArr:`⇔`,forall:`∀`,part:`∂`,exist:`∃`,empty:`∅`,nabla:`∇`,isin:`∈`,notin:`∉`,ni:`∋`,prod:`∏`,sum:`∑`,minus:`−`,lowast:`∗`,radic:`√`,prop:`∝`,infin:`∞`,ang:`∠`,and:`∧`,or:`∨`,cap:`∩`,cup:`∪`,int:`∫`,there4:`∴`,sim:`∼`,cong:`≅`,asymp:`≈`,ne:`≠`,equiv:`≡`,le:`≤`,ge:`≥`,sub:`⊂`,sup:`⊃`,nsub:`⊄`,sube:`⊆`,supe:`⊇`,oplus:`⊕`,otimes:`⊗`,perp:`⊥`,sdot:`⋅`,lceil:`⌈`,rceil:`⌉`,lfloor:`⌊`,rfloor:`⌋`,lang:`〈`,rang:`〉`,loz:`◊`,spades:`♠`,clubs:`♣`,hearts:`♥`,diams:`♦`,quot:`"`,amp:`&`,lt:`<`,gt:`>`,OElig:`Œ`,oelig:`œ`,Scaron:`Š`,scaron:`š`,Yuml:`Ÿ`,circ:`ˆ`,tilde:`˜`,ensp:` `,emsp:` `,thinsp:` `,zwnj:`‌`,zwj:`‍`,lrm:`‎`,rlm:`‏`,ndash:`–`,mdash:`—`,lsquo:`‘`,rsquo:`’`,sbquo:`‚`,ldquo:`“`,rdquo:`”`,bdquo:`„`,dagger:`†`,Dagger:`‡`,permil:`‰`,lsaquo:`‹`,rsaquo:`›`,euro:`€`},wk=[`cent`,`copy`,`divide`,`gt`,`lt`,`not`,`para`,`times`],Tk={}.hasOwnProperty,Ek={},Dk;for(Dk in Ck)Tk.call(Ck,Dk)&&(Ek[Ck[Dk]]=Dk);var Ok=/[^\dA-Za-z]/;function kk(e,t,n,r){let i=String.fromCharCode(e);if(Tk.call(Ek,i)){let e=Ek[i],a=`&`+e;return n&&Sk.includes(e)&&!wk.includes(e)&&(!r||t&&t!==61&&Ok.test(String.fromCharCode(t)))?a:a+`;`}return``}function Ak(e,t,n){let r=yk(e,t,n.omitOptionalSemicolons),i;if((n.useNamedReferences||n.useShortestReferences)&&(i=kk(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!i)&&n.useShortestReferences){let i=xk(e,t,n.omitOptionalSemicolons);i.length<r.length&&(r=i)}return i&&(!n.useShortestReferences||i.length<r.length)?i:r}function jk(e,t){return hk(e,Object.assign({format:Ak},t))}var Mk=/^>|^->|<!--|-->|--!>|<!-$/g,Nk=[`>`],Pk=[`<`,`>`];function Fk(e,t,n,r){return r.settings.bogusComments?`<?`+jk(e.value,Object.assign({},r.settings.characterReferences,{subset:Nk}))+`>`:`<!--`+e.value.replace(Mk,i)+`-->`;function i(e){return jk(e,Object.assign({},r.settings.characterReferences,{subset:Pk}))}}function Ik(e,t,n,r){return`<!`+(r.settings.upperDoctype?`DOCTYPE`:`doctype`)+(r.settings.tightDoctype?``:` `)+`html>`}function Lk(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}function Rk(e){return e.join(` `).trim()}var zk=/[ \t\n\f\r]/g;function Bk(e){return typeof e==`object`?e.type===`text`?Vk(e.value):!1:Vk(e)}function Vk(e){return e.replace(zk,``)===``}var Hk=Gk(1),Uk=Gk(-1),Wk=[];function Gk(e){return t;function t(t,n,r){let i=t?t.children:Wk,a=(n||0)+e,o=i[a];if(!r)for(;o&&Bk(o);)a+=e,o=i[a];return o}}var Kk={}.hasOwnProperty;function qk(e){return t;function t(t,n,r){return Kk.call(e,t.tagName)&&e[t.tagName](t,n,r)}}var Jk=qk({body:Zk,caption:Yk,colgroup:Yk,dd:tA,dt:eA,head:Yk,html:Xk,li:$k,optgroup:rA,option:iA,p:Qk,rp:nA,rt:nA,tbody:oA,td:lA,tfoot:sA,th:lA,thead:aA,tr:cA});function Yk(e,t,n){let r=Hk(n,t,!0);return!r||r.type!==`comment`&&!(r.type===`text`&&Bk(r.value.charAt(0)))}function Xk(e,t,n){let r=Hk(n,t);return!r||r.type!==`comment`}function Zk(e,t,n){let r=Hk(n,t);return!r||r.type!==`comment`}function Qk(e,t,n){let r=Hk(n,t);return r?r.type===`element`&&(r.tagName===`address`||r.tagName===`article`||r.tagName===`aside`||r.tagName===`blockquote`||r.tagName===`details`||r.tagName===`div`||r.tagName===`dl`||r.tagName===`fieldset`||r.tagName===`figcaption`||r.tagName===`figure`||r.tagName===`footer`||r.tagName===`form`||r.tagName===`h1`||r.tagName===`h2`||r.tagName===`h3`||r.tagName===`h4`||r.tagName===`h5`||r.tagName===`h6`||r.tagName===`header`||r.tagName===`hgroup`||r.tagName===`hr`||r.tagName===`main`||r.tagName===`menu`||r.tagName===`nav`||r.tagName===`ol`||r.tagName===`p`||r.tagName===`pre`||r.tagName===`section`||r.tagName===`table`||r.tagName===`ul`):!n||!(n.type===`element`&&(n.tagName===`a`||n.tagName===`audio`||n.tagName===`del`||n.tagName===`ins`||n.tagName===`map`||n.tagName===`noscript`||n.tagName===`video`))}function $k(e,t,n){let r=Hk(n,t);return!r||r.type===`element`&&r.tagName===`li`}function eA(e,t,n){let r=Hk(n,t);return!!(r&&r.type===`element`&&(r.tagName===`dt`||r.tagName===`dd`))}function tA(e,t,n){let r=Hk(n,t);return!r||r.type===`element`&&(r.tagName===`dt`||r.tagName===`dd`)}function nA(e,t,n){let r=Hk(n,t);return!r||r.type===`element`&&(r.tagName===`rp`||r.tagName===`rt`)}function rA(e,t,n){let r=Hk(n,t);return!r||r.type===`element`&&r.tagName===`optgroup`}function iA(e,t,n){let r=Hk(n,t);return!r||r.type===`element`&&(r.tagName===`option`||r.tagName===`optgroup`)}function aA(e,t,n){let r=Hk(n,t);return!!(r&&r.type===`element`&&(r.tagName===`tbody`||r.tagName===`tfoot`))}function oA(e,t,n){let r=Hk(n,t);return!r||r.type===`element`&&(r.tagName===`tbody`||r.tagName===`tfoot`)}function sA(e,t,n){return!Hk(n,t)}function cA(e,t,n){let r=Hk(n,t);return!r||r.type===`element`&&r.tagName===`tr`}function lA(e,t,n){let r=Hk(n,t);return!r||r.type===`element`&&(r.tagName===`td`||r.tagName===`th`)}var uA=qk({body:pA,colgroup:mA,head:fA,html:dA,tbody:hA});function dA(e){let t=Hk(e,-1);return!t||t.type!==`comment`}function fA(e){let t=new Set;for(let n of e.children)if(n.type===`element`&&(n.tagName===`base`||n.tagName===`title`)){if(t.has(n.tagName))return!1;t.add(n.tagName)}let n=e.children[0];return!n||n.type===`element`}function pA(e){let t=Hk(e,-1,!0);return!t||t.type!==`comment`&&!(t.type===`text`&&Bk(t.value.charAt(0)))&&!(t.type===`element`&&(t.tagName===`meta`||t.tagName===`link`||t.tagName===`script`||t.tagName===`style`||t.tagName===`template`))}function mA(e,t,n){let r=Uk(n,t),i=Hk(e,-1,!0);return n&&r&&r.type===`element`&&r.tagName===`colgroup`&&Jk(r,n.children.indexOf(r),n)?!1:!!(i&&i.type===`element`&&i.tagName===`col`)}function hA(e,t,n){let r=Uk(n,t),i=Hk(e,-1);return n&&r&&r.type===`element`&&(r.tagName===`thead`||r.tagName===`tbody`)&&Jk(r,n.children.indexOf(r),n)?!1:!!(i&&i.type===`element`&&i.tagName===`tr`)}var gA={name:[[`
407
+ \f\r &/=>`.split(``),`
408
+ \f\r "&'/=>\``.split(``)],[`\0
409
+ \f\r "&'/<=>`.split(``),`\0
410
+ \f\r "&'/<=>\``.split(``)]],unquoted:[[`
411
+ \f\r &>`.split(``),`\0
412
+ \f\r "&'<=>\``.split(``)],[`\0
413
+ \f\r "&'<=>\``.split(``),`\0
414
+ \f\r "&'<=>\``.split(``)]],single:[[`&'`.split(``),`"&'\``.split(``)],[`\0&'`.split(``),`\0"&'\``.split(``)]],double:[[`"&`.split(``),`"&'\``.split(``)],[`\0"&`.split(``),`\0"&'\``.split(``)]]};function _A(e,t,n,r){let i=r.schema,a=i.space===`svg`?!1:r.settings.omitOptionalTags,o=i.space===`svg`?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase()),s=[],c;i.space===`html`&&e.tagName===`svg`&&(r.schema=lk);let l=vA(r,e.properties),u=r.all(i.space===`html`&&e.tagName===`template`?e.content:e);return r.schema=i,u&&(o=!1),(l||!a||!uA(e,t,n))&&(s.push(`<`,e.tagName,l?` `+l:``),o&&(i.space===`svg`||r.settings.closeSelfClosing)&&(c=l.charAt(l.length-1),(!r.settings.tightSelfClosing||c===`/`||c&&c!==`"`&&c!==`'`)&&s.push(` `),s.push(`/`)),s.push(`>`)),s.push(u),!o&&(!a||!Jk(e,t,n))&&s.push(`</`+e.tagName+`>`),s.join(``)}function vA(e,t){let n=[],r=-1,i;if(t){for(i in t)if(t[i]!==null&&t[i]!==void 0){let r=yA(e,i,t[i]);r&&n.push(r)}}for(;++r<n.length;){let t=e.settings.tightAttributes?n[r].charAt(n[r].length-1):void 0;r!==n.length-1&&t!==`"`&&t!==`'`&&(n[r]+=` `)}return n.join(``)}function yA(e,t,n){let r=ak(e.schema,t),i=e.settings.allowParseErrors&&e.schema.space===`html`?0:1,a=+!e.settings.allowDangerousCharacters,o=e.quote,s;if(r.overloadedBoolean&&(n===r.attribute||n===``)?n=!0:(r.boolean||r.overloadedBoolean)&&(typeof n!=`string`||n===r.attribute||n===``)&&(n=!!n),n==null||n===!1||typeof n==`number`&&Number.isNaN(n))return``;let c=jk(r.attribute,Object.assign({},e.settings.characterReferences,{subset:gA.name[i][a]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?Lk:Rk)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?c:(e.settings.preferUnquoted&&(s=jk(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:gA.unquoted[i][a]}))),s!==n&&(e.settings.quoteSmart&&lw(n,o)>lw(n,e.alternative)&&(o=e.alternative),s=o+jk(n,Object.assign({},e.settings.characterReferences,{subset:(o===`'`?gA.single:gA.double)[i][a],attribute:!0}))+o),c+(s&&`=`+s))}var bA=[`<`,`&`];function xA(e,t,n,r){return n&&n.type===`element`&&(n.tagName===`script`||n.tagName===`style`)?e.value:jk(e.value,Object.assign({},r.settings.characterReferences,{subset:bA}))}function SA(e,t,n,r){return r.settings.allowDangerousHtml?e.value:xA(e,t,n,r)}function CA(e,t,n,r){return r.all(e)}var wA=mT(`type`,{invalid:TA,unknown:EA,handlers:{comment:Fk,doctype:Ik,element:_A,raw:SA,root:CA,text:xA}});function TA(e){throw Error("Expected node, not `"+e+"`")}function EA(e){throw Error("Cannot compile unknown node `"+e.type+"`")}var DA={},OA={},kA=[];function AA(e,t){let n=t||DA,r=n.quote||`"`,i=r===`"`?`'`:`"`;if(r!==`"`&&r!==`'`)throw Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:jA,all:MA,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||AO,characterReferences:n.characterReferences||OA,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space===`svg`?lk:ck,quote:r,alternative:i}.one(Array.isArray(e)?{type:`root`,children:e}:e,void 0,void 0)}function jA(e,t,n){return wA(e,t,n,this)}function MA(e){let t=[],n=e&&e.children||kA,r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join(``)}function NA(e){let t=this,n={...t.data(`settings`),...e};t.compiler=r;function r(e){return AA(e,n)}}function PA(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function FA(e){if(Array.isArray(e))return e}function IA(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function LA(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
415
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function RA(e,t){return FA(e)||IA(e,t)||zA(e,t)||LA()}function zA(e,t){if(e){if(typeof e==`string`)return PA(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?PA(e,t):void 0}}var BA=Object.entries,VA=Object.setPrototypeOf,HA=Object.isFrozen,UA=Object.getPrototypeOf,WA=Object.getOwnPropertyDescriptor,GA=Object.freeze,KA=Object.seal,qA=Object.create,JA=typeof Reflect<`u`&&Reflect,YA=JA.apply,XA=JA.construct;GA||=function(e){return e},KA||=function(e){return e},YA||=function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return e.apply(t,r)},XA||=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new e(...n)};var ZA=_j(Array.prototype.forEach),QA=_j(Array.prototype.lastIndexOf),$A=_j(Array.prototype.pop),ej=_j(Array.prototype.push),tj=_j(Array.prototype.splice),nj=Array.isArray,rj=_j(String.prototype.toLowerCase),ij=_j(String.prototype.toString),aj=_j(String.prototype.match),oj=_j(String.prototype.replace),sj=_j(String.prototype.indexOf),cj=_j(String.prototype.trim),lj=_j(Number.prototype.toString),uj=_j(Boolean.prototype.toString),dj=typeof BigInt>`u`?null:_j(BigInt.prototype.toString),fj=typeof Symbol>`u`?null:_j(Symbol.prototype.toString),pj=_j(Object.prototype.hasOwnProperty),mj=_j(Object.prototype.toString),hj=_j(RegExp.prototype.test),gj=vj(TypeError);function _j(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return YA(e,t,r)}}function vj(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return XA(e,n)}}function yj(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:rj;if(VA&&VA(e,null),!nj(t))return e;let r=t.length;for(;r--;){let i=t[r];if(typeof i==`string`){let e=n(i);e!==i&&(HA(t)||(t[r]=e),i=e)}e[i]=!0}return e}function bj(e){for(let t=0;t<e.length;t++)pj(e,t)||(e[t]=null);return e}function xj(e){let t=qA(null);for(let r of BA(e)){var n=RA(r,2);let i=n[0],a=n[1];pj(e,i)&&(nj(a)?t[i]=bj(a):a&&typeof a==`object`&&a.constructor===Object?t[i]=xj(a):t[i]=a)}return t}function Sj(e){switch(typeof e){case`string`:return e;case`number`:return lj(e);case`boolean`:return uj(e);case`bigint`:return dj?dj(e):`0`;case`symbol`:return fj?fj(e):`Symbol()`;case`undefined`:return mj(e);case`function`:case`object`:{if(e===null)return mj(e);let t=e,n=Cj(t,`toString`);if(typeof n==`function`){let e=n(t);return typeof e==`string`?e:mj(e)}return mj(e)}default:return mj(e)}}function Cj(e,t){for(;e!==null;){let n=WA(e,t);if(n){if(n.get)return _j(n.get);if(typeof n.value==`function`)return _j(n.value)}e=UA(e)}function n(){return null}return n}function wj(e){try{return hj(e,``),!0}catch{return!1}}var Tj=GA(`a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr`.split(`.`)),Ej=GA(`svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern`.split(`.`)),Dj=GA([`feBlend`,`feColorMatrix`,`feComponentTransfer`,`feComposite`,`feConvolveMatrix`,`feDiffuseLighting`,`feDisplacementMap`,`feDistantLight`,`feDropShadow`,`feFlood`,`feFuncA`,`feFuncB`,`feFuncG`,`feFuncR`,`feGaussianBlur`,`feImage`,`feMerge`,`feMergeNode`,`feMorphology`,`feOffset`,`fePointLight`,`feSpecularLighting`,`feSpotLight`,`feTile`,`feTurbulence`]),Oj=GA([`animate`,`color-profile`,`cursor`,`discard`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`foreignobject`,`hatch`,`hatchpath`,`mesh`,`meshgradient`,`meshpatch`,`meshrow`,`missing-glyph`,`script`,`set`,`solidcolor`,`unknown`,`use`]),kj=GA(`math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts`.split(`.`)),Aj=GA([`maction`,`maligngroup`,`malignmark`,`mlongdiv`,`mscarries`,`mscarry`,`msgroup`,`mstack`,`msline`,`msrow`,`semantics`,`annotation`,`annotation-xml`,`mprescripts`,`none`]),jj=GA([`#text`]),Mj=GA(`accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns`.split(`.`)),Nj=GA(`accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-rendering.textlength.type.u1.u2.unicode.values.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan`.split(`.`)),Pj=GA(`accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns`.split(`.`)),Fj=GA([`xlink:href`,`xml:id`,`xlink:title`,`xml:space`,`xmlns:xlink`]),Ij=KA(/{{[\w\W]*|^[\w\W]*}}/g),Lj=KA(/<%[\w\W]*|^[\w\W]*%>/g),Rj=KA(/\${[\w\W]*/g),zj=KA(/^data-[\-\w.\u00B7-\uFFFF]+$/),Bj=KA(/^aria-[\-\w]+$/),Vj=KA(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Hj=KA(/^(?:\w+script|data):/i),Uj=KA(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Wj=KA(/^html$/i),Gj=KA(/^[a-z][.\w]*(-[.\w]+)+$/i),Kj={element:1,text:3,progressingInstruction:7,comment:8,document:9},qj=function(){return typeof window>`u`?null:window},Jj=function(e,t){if(typeof e!=`object`||typeof e.createPolicy!=`function`)return null;let n=null,r=`data-tt-policy-suffix`;t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let i=`dompurify`+(n?`#`+n:``);try{return e.createPolicy(i,{createHTML(e){return e},createScriptURL(e){return e}})}catch{return console.warn(`TrustedTypes policy `+i+` could not be created.`),null}},Yj=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Xj(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:qj(),t=e=>Xj(e);if(t.version=`3.4.3`,t.removed=[],!e||!e.document||e.document.nodeType!==Kj.document||!e.Element)return t.isSupported=!1,t;let n=e.document,r=n,i=r.currentScript,a=e.DocumentFragment,o=e.HTMLTemplateElement,s=e.Node,c=e.Element,l=e.NodeFilter,u=e.NamedNodeMap,d=u===void 0?e.NamedNodeMap||e.MozNamedAttrMap:u,f=e.HTMLFormElement,p=e.DOMParser,m=e.trustedTypes,h=c.prototype,g=Cj(h,`cloneNode`),_=Cj(h,`remove`),v=Cj(h,`nextSibling`),y=Cj(h,`childNodes`),b=Cj(h,`parentNode`);if(typeof o==`function`){let e=n.createElement(`template`);e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let x,S=``,C=n,w=C.implementation,T=C.createNodeIterator,E=C.createDocumentFragment,D=C.getElementsByTagName,O=r.importNode,k=Yj();t.isSupported=typeof BA==`function`&&typeof b==`function`&&w&&w.createHTMLDocument!==void 0;let A=Ij,j=Lj,M=Rj,N=zj,ee=Bj,te=Hj,P=Uj,F=Gj,ne=Vj,re=null,ie=yj({},[...Tj,...Ej,...Dj,...kj,...jj]),I=null,ae=yj({},[...Mj,...Nj,...Pj,...Fj]),L=Object.seal(qA(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),oe=null,se=null,ce=Object.seal(qA(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),le=!0,ue=!0,de=!1,fe=!0,R=!1,z=!0,pe=!1,me=!1,he=!1,B=!1,ge=!1,_e=!1,ve=!0,V=!1,ye=`user-content-`,be=!0,xe=!1,H={},Se=null,Ce=yj({},[`annotation-xml`,`audio`,`colgroup`,`desc`,`foreignobject`,`head`,`iframe`,`math`,`mi`,`mn`,`mo`,`ms`,`mtext`,`noembed`,`noframes`,`noscript`,`plaintext`,`script`,`style`,`svg`,`template`,`thead`,`title`,`video`,`xmp`]),we=null,Te=yj({},[`audio`,`video`,`img`,`source`,`image`,`track`]),Ee=null,De=yj({},[`alt`,`class`,`for`,`id`,`label`,`name`,`pattern`,`placeholder`,`role`,`summary`,`title`,`value`,`style`,`xmlns`]),Oe=`http://www.w3.org/1998/Math/MathML`,ke=`http://www.w3.org/2000/svg`,Ae=`http://www.w3.org/1999/xhtml`,je=Ae,Me=!1,Ne=null,Pe=yj({},[Oe,ke,Ae],ij),Fe=yj({},[`mi`,`mo`,`mn`,`ms`,`mtext`]),Ie=yj({},[`annotation-xml`]),Le=yj({},[`title`,`style`,`font`,`a`,`script`]),Re=null,ze=[`application/xhtml+xml`,`text/html`],Be=null,Ve=null,He=n.createElement(`form`),Ue=function(e){return e instanceof RegExp||e instanceof Function},We=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Ve&&Ve===e)return;(!e||typeof e!=`object`)&&(e={}),e=xj(e),Re=ze.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,Be=Re===`application/xhtml+xml`?ij:rj,re=pj(e,`ALLOWED_TAGS`)&&nj(e.ALLOWED_TAGS)?yj({},e.ALLOWED_TAGS,Be):ie,I=pj(e,`ALLOWED_ATTR`)&&nj(e.ALLOWED_ATTR)?yj({},e.ALLOWED_ATTR,Be):ae,Ne=pj(e,`ALLOWED_NAMESPACES`)&&nj(e.ALLOWED_NAMESPACES)?yj({},e.ALLOWED_NAMESPACES,ij):Pe,Ee=pj(e,`ADD_URI_SAFE_ATTR`)&&nj(e.ADD_URI_SAFE_ATTR)?yj(xj(De),e.ADD_URI_SAFE_ATTR,Be):De,we=pj(e,`ADD_DATA_URI_TAGS`)&&nj(e.ADD_DATA_URI_TAGS)?yj(xj(Te),e.ADD_DATA_URI_TAGS,Be):Te,Se=pj(e,`FORBID_CONTENTS`)&&nj(e.FORBID_CONTENTS)?yj({},e.FORBID_CONTENTS,Be):Ce,oe=pj(e,`FORBID_TAGS`)&&nj(e.FORBID_TAGS)?yj({},e.FORBID_TAGS,Be):xj({}),se=pj(e,`FORBID_ATTR`)&&nj(e.FORBID_ATTR)?yj({},e.FORBID_ATTR,Be):xj({}),H=pj(e,`USE_PROFILES`)?e.USE_PROFILES&&typeof e.USE_PROFILES==`object`?xj(e.USE_PROFILES):e.USE_PROFILES:!1,le=e.ALLOW_ARIA_ATTR!==!1,ue=e.ALLOW_DATA_ATTR!==!1,de=e.ALLOW_UNKNOWN_PROTOCOLS||!1,fe=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,R=e.SAFE_FOR_TEMPLATES||!1,z=e.SAFE_FOR_XML!==!1,pe=e.WHOLE_DOCUMENT||!1,B=e.RETURN_DOM||!1,ge=e.RETURN_DOM_FRAGMENT||!1,_e=e.RETURN_TRUSTED_TYPE||!1,he=e.FORCE_BODY||!1,ve=e.SANITIZE_DOM!==!1,V=e.SANITIZE_NAMED_PROPS||!1,be=e.KEEP_CONTENT!==!1,xe=e.IN_PLACE||!1,ne=wj(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:Vj,je=typeof e.NAMESPACE==`string`?e.NAMESPACE:Ae,Fe=pj(e,`MATHML_TEXT_INTEGRATION_POINTS`)&&e.MATHML_TEXT_INTEGRATION_POINTS&&typeof e.MATHML_TEXT_INTEGRATION_POINTS==`object`?xj(e.MATHML_TEXT_INTEGRATION_POINTS):yj({},[`mi`,`mo`,`mn`,`ms`,`mtext`]),Ie=pj(e,`HTML_INTEGRATION_POINTS`)&&e.HTML_INTEGRATION_POINTS&&typeof e.HTML_INTEGRATION_POINTS==`object`?xj(e.HTML_INTEGRATION_POINTS):yj({},[`annotation-xml`]);let t=pj(e,`CUSTOM_ELEMENT_HANDLING`)&&e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING==`object`?xj(e.CUSTOM_ELEMENT_HANDLING):qA(null);if(L=qA(null),pj(t,`tagNameCheck`)&&Ue(t.tagNameCheck)&&(L.tagNameCheck=t.tagNameCheck),pj(t,`attributeNameCheck`)&&Ue(t.attributeNameCheck)&&(L.attributeNameCheck=t.attributeNameCheck),pj(t,`allowCustomizedBuiltInElements`)&&typeof t.allowCustomizedBuiltInElements==`boolean`&&(L.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),R&&(ue=!1),ge&&(B=!0),H&&(re=yj({},jj),I=qA(null),H.html===!0&&(yj(re,Tj),yj(I,Mj)),H.svg===!0&&(yj(re,Ej),yj(I,Nj),yj(I,Fj)),H.svgFilters===!0&&(yj(re,Dj),yj(I,Nj),yj(I,Fj)),H.mathMl===!0&&(yj(re,kj),yj(I,Pj),yj(I,Fj))),ce.tagCheck=null,ce.attributeCheck=null,pj(e,`ADD_TAGS`)&&(typeof e.ADD_TAGS==`function`?ce.tagCheck=e.ADD_TAGS:nj(e.ADD_TAGS)&&(re===ie&&(re=xj(re)),yj(re,e.ADD_TAGS,Be))),pj(e,`ADD_ATTR`)&&(typeof e.ADD_ATTR==`function`?ce.attributeCheck=e.ADD_ATTR:nj(e.ADD_ATTR)&&(I===ae&&(I=xj(I)),yj(I,e.ADD_ATTR,Be))),pj(e,`ADD_URI_SAFE_ATTR`)&&nj(e.ADD_URI_SAFE_ATTR)&&yj(Ee,e.ADD_URI_SAFE_ATTR,Be),pj(e,`FORBID_CONTENTS`)&&nj(e.FORBID_CONTENTS)&&(Se===Ce&&(Se=xj(Se)),yj(Se,e.FORBID_CONTENTS,Be)),pj(e,`ADD_FORBID_CONTENTS`)&&nj(e.ADD_FORBID_CONTENTS)&&(Se===Ce&&(Se=xj(Se)),yj(Se,e.ADD_FORBID_CONTENTS,Be)),be&&(re[`#text`]=!0),pe&&yj(re,[`html`,`head`,`body`]),re.table&&(yj(re,[`tbody`]),delete oe.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw gj(`TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw gj(`TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.`);x=e.TRUSTED_TYPES_POLICY,S=x.createHTML(``)}else x===void 0&&(x=Jj(m,i)),x!==null&&typeof S==`string`&&(S=x.createHTML(``));GA&&GA(e),Ve=e},Ge=yj({},[...Ej,...Dj,...Oj]),Ke=yj({},[...kj,...Aj]),qe=function(e){let t=b(e);(!t||!t.tagName)&&(t={namespaceURI:je,tagName:`template`});let n=rj(e.tagName),r=rj(t.tagName);return Ne[e.namespaceURI]?e.namespaceURI===ke?t.namespaceURI===Ae?n===`svg`:t.namespaceURI===Oe?n===`svg`&&(r===`annotation-xml`||Fe[r]):!!Ge[n]:e.namespaceURI===Oe?t.namespaceURI===Ae?n===`math`:t.namespaceURI===ke?n===`math`&&Ie[r]:!!Ke[n]:e.namespaceURI===Ae?t.namespaceURI===ke&&!Ie[r]||t.namespaceURI===Oe&&!Fe[r]?!1:!Ke[n]&&(Le[n]||!Ge[n]):!!(Re===`application/xhtml+xml`&&Ne[e.namespaceURI]):!1},Je=function(e){ej(t.removed,{element:e});try{b(e).removeChild(e)}catch{_(e)}},Ye=function(e,n){try{ej(t.removed,{attribute:n.getAttributeNode(e),from:n})}catch{ej(t.removed,{attribute:null,from:n})}if(n.removeAttribute(e),e===`is`)if(B||ge)try{Je(n)}catch{}else try{n.setAttribute(e,``)}catch{}},Xe=function(e){let t=null,r=null;if(he)e=`<remove></remove>`+e;else{let t=aj(e,/^[\r\n\t ]+/);r=t&&t[0]}Re===`application/xhtml+xml`&&je===Ae&&(e=`<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>`+e+`</body></html>`);let i=x?x.createHTML(e):e;if(je===Ae)try{t=new p().parseFromString(i,Re)}catch{}if(!t||!t.documentElement){t=w.createDocument(je,`template`,null);try{t.documentElement.innerHTML=Me?S:i}catch{}}let a=t.body||t.documentElement;return e&&r&&a.insertBefore(n.createTextNode(r),a.childNodes[0]||null),je===Ae?D.call(t,pe?`html`:`body`)[0]:pe?t.documentElement:a},Ze=function(e){return T.call(e.ownerDocument||e,e,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT|l.SHOW_PROCESSING_INSTRUCTION|l.SHOW_CDATA_SECTION,null)},Qe=function(e){return e instanceof f&&(typeof e.nodeName!=`string`||typeof e.textContent!=`string`||typeof e.removeChild!=`function`||!(e.attributes instanceof d)||typeof e.removeAttribute!=`function`||typeof e.setAttribute!=`function`||typeof e.namespaceURI!=`string`||typeof e.insertBefore!=`function`||typeof e.hasChildNodes!=`function`)},$e=function(e){return typeof s==`function`&&e instanceof s};function et(e,n,r){ZA(e,e=>{e.call(t,n,r,Ve)})}let tt=function(e){let n=null;if(et(k.beforeSanitizeElements,e,null),Qe(e))return Je(e),!0;let r=Be(e.nodeName);if(et(k.uponSanitizeElement,e,{tagName:r,allowedTags:re}),z&&e.hasChildNodes()&&!$e(e.firstElementChild)&&hj(/<[/\w!]/g,e.innerHTML)&&hj(/<[/\w!]/g,e.textContent)||z&&e.namespaceURI===Ae&&r===`style`&&$e(e.firstElementChild)||e.nodeType===Kj.progressingInstruction||z&&e.nodeType===Kj.comment&&hj(/<[/\w]/g,e.data))return Je(e),!0;if(oe[r]||!(ce.tagCheck instanceof Function&&ce.tagCheck(r))&&!re[r]){if(!oe[r]&&it(r)&&(L.tagNameCheck instanceof RegExp&&hj(L.tagNameCheck,r)||L.tagNameCheck instanceof Function&&L.tagNameCheck(r)))return!1;if(be&&!Se[r]){let t=b(e)||e.parentNode,n=y(e)||e.childNodes;if(n&&t){let r=n.length;for(let i=r-1;i>=0;--i){let r=g(n[i],!0);t.insertBefore(r,v(e))}}}return Je(e),!0}return e instanceof c&&!qe(e)||(r===`noscript`||r===`noembed`||r===`noframes`)&&hj(/<\/no(script|embed|frames)/i,e.innerHTML)?(Je(e),!0):(R&&e.nodeType===Kj.text&&(n=e.textContent,ZA([A,j,M],e=>{n=oj(n,e,` `)}),e.textContent!==n&&(ej(t.removed,{element:e.cloneNode()}),e.textContent=n)),et(k.afterSanitizeElements,e,null),!1)},nt=function(e,t,r){if(se[t]||ve&&(t===`id`||t===`name`)&&(r in n||r in He))return!1;let i=I[t]||ce.attributeCheck instanceof Function&&ce.attributeCheck(t,e);if(!(ue&&!se[t]&&hj(N,t))&&!(le&&hj(ee,t))){if(!i||se[t]){if(!(it(e)&&(L.tagNameCheck instanceof RegExp&&hj(L.tagNameCheck,e)||L.tagNameCheck instanceof Function&&L.tagNameCheck(e))&&(L.attributeNameCheck instanceof RegExp&&hj(L.attributeNameCheck,t)||L.attributeNameCheck instanceof Function&&L.attributeNameCheck(t,e))||t===`is`&&L.allowCustomizedBuiltInElements&&(L.tagNameCheck instanceof RegExp&&hj(L.tagNameCheck,r)||L.tagNameCheck instanceof Function&&L.tagNameCheck(r))))return!1}else if(!Ee[t]&&!hj(ne,oj(r,P,``))&&!((t===`src`||t===`xlink:href`||t===`href`)&&e!==`script`&&sj(r,`data:`)===0&&we[e])&&!(de&&!hj(te,oj(r,P,``)))&&r)return!1}return!0},rt=yj({},[`annotation-xml`,`color-profile`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`missing-glyph`]),it=function(e){return!rt[rj(e)]&&hj(F,e)},at=function(e){et(k.beforeSanitizeAttributes,e,null);let n=e.attributes;if(!n||Qe(e))return;let r={attrName:``,attrValue:``,keepAttr:!0,allowedAttributes:I,forceKeepAttr:void 0},i=n.length;for(;i--;){let a=n[i],o=a.name,s=a.namespaceURI,c=a.value,l=Be(o),u=c,d=o===`value`?u:cj(u);if(r.attrName=l,r.attrValue=d,r.keepAttr=!0,r.forceKeepAttr=void 0,et(k.uponSanitizeAttribute,e,r),d=r.attrValue,V&&(l===`id`||l===`name`)&&sj(d,ye)!==0&&(Ye(o,e),d=ye+d),z&&hj(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,d)){Ye(o,e);continue}if(l===`attributename`&&aj(d,`href`)){Ye(o,e);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){Ye(o,e);continue}if(!fe&&hj(/\/>/i,d)){Ye(o,e);continue}R&&ZA([A,j,M],e=>{d=oj(d,e,` `)});let f=Be(e.nodeName);if(!nt(f,l,d)){Ye(o,e);continue}if(x&&typeof m==`object`&&typeof m.getAttributeType==`function`&&!s)switch(m.getAttributeType(f,l)){case`TrustedHTML`:d=x.createHTML(d);break;case`TrustedScriptURL`:d=x.createScriptURL(d);break}if(d!==u)try{s?e.setAttributeNS(s,o,d):e.setAttribute(o,d),Qe(e)?Je(e):$A(t.removed)}catch{Ye(o,e)}}et(k.afterSanitizeAttributes,e,null)},ot=function(e){let t=null,n=Ze(e);for(et(k.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)et(k.uponSanitizeShadowNode,t,null),tt(t),at(t),t.content instanceof a&&ot(t.content);et(k.afterSanitizeShadowDOM,e,null)},st=function(e){if(e.nodeType===Kj.element&&e.shadowRoot instanceof a){let t=e.shadowRoot;st(t),ot(t)}let t=e.childNodes;if(!t)return;let n=[];ZA(t,e=>{ej(n,e)});for(let e of n)st(e)};return t.sanitize=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=null,o=null,c=null,l=null;if(Me=!e,Me&&(e=`<!-->`),typeof e!=`string`&&!$e(e)&&(e=Sj(e),typeof e!=`string`))throw gj(`dirty is not a string, aborting`);if(!t.isSupported)return e;if(me||We(n),t.removed=[],typeof e==`string`&&(xe=!1),xe){let t=e.nodeName;if(typeof t==`string`){let e=Be(t);if(!re[e]||oe[e])throw gj(`root node is forbidden and cannot be sanitized in-place`)}st(e)}else if(e instanceof s)i=Xe(`<!---->`),o=i.ownerDocument.importNode(e,!0),o.nodeType===Kj.element&&o.nodeName===`BODY`||o.nodeName===`HTML`?i=o:i.appendChild(o),st(o);else{if(!B&&!R&&!pe&&e.indexOf(`<`)===-1)return x&&_e?x.createHTML(e):e;if(i=Xe(e),!i)return B?null:_e?S:``}i&&he&&Je(i.firstChild);let u=Ze(xe?e:i);for(;c=u.nextNode();)tt(c),at(c),c.content instanceof a&&ot(c.content);if(xe)return e;if(B){if(R){i.normalize();let e=i.innerHTML;ZA([A,j,M],t=>{e=oj(e,t,` `)}),i.innerHTML=e}if(ge)for(l=E.call(i.ownerDocument);i.firstChild;)l.appendChild(i.firstChild);else l=i;return(I.shadowroot||I.shadowrootmode)&&(l=O.call(r,l,!0)),l}let d=pe?i.outerHTML:i.innerHTML;return pe&&re[`!doctype`]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&hj(Wj,i.ownerDocument.doctype.name)&&(d=`<!DOCTYPE `+i.ownerDocument.doctype.name+`>
416
+ `+d),R&&ZA([A,j,M],e=>{d=oj(d,e,` `)}),x&&_e?x.createHTML(d):d},t.setConfig=function(){We(arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}),me=!0},t.clearConfig=function(){Ve=null,me=!1},t.isValidAttribute=function(e,t,n){return Ve||We({}),nt(Be(e),Be(t),n)},t.addHook=function(e,t){typeof t==`function`&&ej(k[e],t)},t.removeHook=function(e,t){if(t!==void 0){let n=QA(k[e],t);return n===-1?void 0:tj(k[e],n,1)[0]}return $A(k[e])},t.removeHooks=function(e){k[e]=[]},t.removeAllHooks=function(){k=Yj()},t}var Zj=Xj(),Qj=c((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),$j=c((e=>{process.env.NODE_ENV!==`production`&&(function(){function t(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===k?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case v:return`Fragment`;case b:return`Profiler`;case y:return`StrictMode`;case w:return`Suspense`;case T:return`SuspenseList`;case O:return`Activity`}if(typeof e==`object`)switch(typeof e.tag==`number`&&console.error(`Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.`),e.$$typeof){case _:return`Portal`;case S:return e.displayName||`Context`;case x:return(e._context.displayName||`Context`)+`.Consumer`;case C:var n=e.render;return e=e.displayName,e||=(e=n.displayName||n.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case E:return n=e.displayName||null,n===null?t(e.type)||`Memo`:n;case D:n=e._payload,e=e._init;try{return t(e(n))}catch{}}return null}function n(e){return``+e}function r(e){try{n(e);var t=!1}catch{t=!0}if(t){t=console;var r=t.error,i=typeof Symbol==`function`&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||`Object`;return r.call(t,`The provided key is an unsupported type %s. This value must be coerced to a string before using it here.`,i),n(e)}}function i(e){if(e===v)return`<>`;if(typeof e==`object`&&e&&e.$$typeof===D)return`<...>`;try{var n=t(e);return n?`<`+n+`>`:`<...>`}catch{return`<...>`}}function a(){var e=A.A;return e===null?null:e.getOwner()}function o(){return Error(`react-stack-top-frame`)}function s(e){if(j.call(e,`key`)){var t=Object.getOwnPropertyDescriptor(e,`key`).get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function c(e,t){function n(){ee||(ee=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",t))}n.isReactWarning=!0,Object.defineProperty(e,`key`,{get:n,configurable:!0})}function l(){var e=t(this.type);return te[e]||(te[e]=!0,console.error(`Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.`)),e=this.props.ref,e===void 0?null:e}function u(e,t,n,r,i,a){var o=n.ref;return e={$$typeof:h,type:e,key:t,props:n,_owner:r},(o===void 0?null:o)===null?Object.defineProperty(e,`ref`,{enumerable:!1,value:null}):Object.defineProperty(e,`ref`,{enumerable:!1,get:l}),e._store={},Object.defineProperty(e._store,`validated`,{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,`_debugInfo`,{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,`_debugStack`,{configurable:!1,enumerable:!1,writable:!0,value:i}),Object.defineProperty(e,`_debugTask`,{configurable:!1,enumerable:!1,writable:!0,value:a}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function d(e,n,i,o,l,d){var p=n.children;if(p!==void 0)if(o)if(M(p)){for(o=0;o<p.length;o++)f(p[o]);Object.freeze&&Object.freeze(p)}else console.error(`React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.`);else f(p);if(j.call(n,`key`)){p=t(e);var m=Object.keys(n).filter(function(e){return e!==`key`});o=0<m.length?`{key: someKey, `+m.join(`: ..., `)+`: ...}`:`{key: someKey}`,ne[p+o]||(m=0<m.length?`{`+m.join(`: ..., `)+`: ...}`:`{}`,console.error(`A props object containing a "key" prop is being spread into JSX:
417
+ let props = %s;
418
+ <%s {...props} />
419
+ React keys must be passed directly to JSX without using spread:
420
+ let props = %s;
421
+ <%s key={someKey} {...props} />`,o,p,m,p),ne[p+o]=!0)}if(p=null,i!==void 0&&(r(i),p=``+i),s(n)&&(r(n.key),p=``+n.key),`key`in n)for(var h in i={},n)h!==`key`&&(i[h]=n[h]);else i=n;return p&&c(i,typeof e==`function`?e.displayName||e.name||`Unknown`:e),u(e,p,i,a(),l,d)}function f(e){p(e)?e._store&&(e._store.validated=1):typeof e==`object`&&e&&e.$$typeof===D&&(e._payload.status===`fulfilled`?p(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function p(e){return typeof e==`object`&&!!e&&e.$$typeof===h}var m=g(),h=Symbol.for(`react.transitional.element`),_=Symbol.for(`react.portal`),v=Symbol.for(`react.fragment`),y=Symbol.for(`react.strict_mode`),b=Symbol.for(`react.profiler`),x=Symbol.for(`react.consumer`),S=Symbol.for(`react.context`),C=Symbol.for(`react.forward_ref`),w=Symbol.for(`react.suspense`),T=Symbol.for(`react.suspense_list`),E=Symbol.for(`react.memo`),D=Symbol.for(`react.lazy`),O=Symbol.for(`react.activity`),k=Symbol.for(`react.client.reference`),A=m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,j=Object.prototype.hasOwnProperty,M=Array.isArray,N=console.createTask?console.createTask:function(){return null};m={react_stack_bottom_frame:function(e){return e()}};var ee,te={},P=m.react_stack_bottom_frame.bind(m,o)(),F=N(i(o)),ne={};e.Fragment=v,e.jsx=function(e,t,n){var r=1e4>A.recentlyCreatedOwnerStacks++;return d(e,t,n,!1,r?Error(`react-stack-top-frame`):P,r?N(i(e)):F)},e.jsxs=function(e,t,n){var r=1e4>A.recentlyCreatedOwnerStacks++;return d(e,t,n,!0,r?Error(`react-stack-top-frame`):P,r?N(i(e)):F)}})()})),eM=c(((e,t)=>{process.env.NODE_ENV===`production`?t.exports=Qj():t.exports=$j()}))(),tM=(0,U.forwardRef)(({message:e},t)=>{let[n,r]=(0,U.useState)(!1),[i,a]=(0,U.useState)(``),[o,s]=(0,U.useState)(``),[c,l]=(0,U.useState)(!0),u=(0,U.useRef)(null),d=async e=>{let t=await $b().use(cw).use(SD).use(kO,{allowDangerousHtml:!0}).use(NA,{allowDangerousHtml:!0}).process(e),n=String(t);return Zj.sanitize(n)},f=e=>e.role===`assistant`;(0,U.useEffect)(()=>{e.content?d(e.content).then(s):s(``);let t=f(e)?e.reasoning_content:void 0;t?d(t).then(a):a(``)},[e.content,f(e)?e.reasoning_content:void 0]),(0,U.useEffect)(()=>()=>{u.current&&clearTimeout(u.current)},[]);let p=()=>{l(!c)},m=t=>{t.stopPropagation();let n=e.content;navigator.clipboard.writeText(n).catch(e=>{console.error(`Failed to copy text: `,e)}).finally(()=>{u.current&&clearTimeout(u.current),r(!0),u.current=setTimeout(()=>{r(!1)},1500)})},h=!e.content;return(0,eM.jsxs)(`div`,{ref:t,className:`message ${e.role} ${h?`loading`:``}`,children:[f(e)&&i&&(0,eM.jsxs)(`div`,{className:`reasoning-container ${c?`collapsed`:``}`,children:[(0,eM.jsxs)(`div`,{className:`reasoning-header`,onClick:p,children:[(0,eM.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`14`,height:`14`,viewBox:`0 0 1024 1024`,children:(0,eM.jsx)(`path`,{d:`M724.48 521.728c-1.8432 7.7824-5.7344 14.848-11.3664 20.48l-341.9136 342.016c-16.6912 16.6912-43.7248 16.6912-60.3136 0s-16.6912-43.7248 0-60.3136L622.6944 512 310.8864 200.0896c-16.6912-16.6912-16.6912-43.7248 0-60.3136 16.6912-16.6912 43.7248-16.6912 60.3136 0l341.9136 341.9136c10.8544 10.8544 14.6432 26.112 11.3664 40.0384z`,fill:`currentColor`})}),`思考过程`]}),(0,eM.jsx)(`div`,{className:`reasoning-content`,dangerouslySetInnerHTML:{__html:i}})]}),(0,eM.jsx)(`div`,{className:`body-container`,children:h?(0,eM.jsx)(`p`,{className:`loading-dots`}):(0,eM.jsx)(`div`,{className:`content-container`,dangerouslySetInnerHTML:{__html:o}})}),(0,eM.jsx)(`div`,{className:`button-container`,children:(0,eM.jsx)(ab,{title:`复制`,placement:e.role===`user`?`bottomLeft`:`bottomRight`,children:(0,eM.jsx)(`button`,{className:`icon square plain`,type:`button`,"aria-label":`复制`,onClick:m,children:n?(0,eM.jsx)(`span`,{children:`Copied`}):(0,eM.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`18`,height:`18`,viewBox:`0 0 1024 1024`,children:(0,eM.jsx)(`path`,{d:`M298.667 256V128a42.667 42.667 0 0 1 42.666-42.667h512A42.667 42.667 0 0 1 896 128v597.333A42.667 42.667 0 0 1 853.333 768h-128v128c0 23.552-19.2 42.667-42.965 42.667H170.965A42.71 42.71 0 0 1 128 896l.128-597.333c0-23.552 19.2-42.667 42.923-42.667h127.616zm-85.248 85.333-.086 512H640v-512H213.419zM384 256h341.333v426.667h85.334v-512H384V256z`})})})})})]})}),nM=(0,U.forwardRef)(({onReady:e},t)=>{let[n,r]=(0,U.useState)([]),[i,a]=(0,U.useState)(``),[o,s]=(0,U.useState)(!1),[c,l]=bb.useNotification(),u=(0,U.useRef)(null),d=(0,U.useRef)(null),f=(0,U.useRef)(null),m=(0,U.useRef)(null);(0,U.useEffect)(()=>{let t=0,n=null,r=new ResizeObserver(e=>{for(let r of e){let{height:e}=r.contentRect;e!==t&&(t=e,n!==null&&cancelAnimationFrame(n),n=requestAnimationFrame(()=>{f.current&&(f.current.style.paddingBottom=`${t-12-142-24}px`),n=null}))}});return m.current&&r.observe(m.current),e(),()=>{r.disconnect(),n!==null&&cancelAnimationFrame(n)}},[e]),(0,U.useEffect)(()=>{let e=n.at(-1);if(d.current&&e?.role===`user`){let e=f.current;e&&e.scrollTo({top:d.current.offsetTop-12,behavior:`smooth`})}},[n]);let h=e=>{e&&(e.id||=crypto.randomUUID(),r(t=>[...t,e]))},g=e=>{if(e.length)for(let t of e)h(t)},_=()=>{let e={id:crypto.randomUUID(),role:`assistant`,reasoning_content:``,content:``};r(t=>[...t,e])},v=e=>{r(t=>{let n=[...t];if(n.length>0){let t=n.at(-1);t?.role===`assistant`&&(n[n.length-1]={...t,reasoning_content:e})}return n})},y=e=>{r(t=>{let n=[...t];if(n.length>0){let t=n.at(-1);t?.role===`assistant`&&(n[n.length-1]={...t,content:e})}return n})};(0,U.useImperativeHandle)(t,()=>({pushMessage:h,pushMessages:g,pushLoadingMessage:_,updateLoadingMessageReasoningContent:v,updateLoadingMessageContent:y}));let b=e=>{let t=document.createElement(`div`);return t.textContent=e,t.innerHTML},x=async()=>{if(i.trim())try{s(!0);let e=b(i.trim());a(``);let t={id:crypto.randomUUID(),role:`user`,content:e};r(e=>[...e,t]),await p.emit(`send`,t)}finally{s(!1),u.current?.focus()}};return(0,eM.jsxs)(`div`,{className:`app-container`,ref:m,children:[l,(0,eM.jsx)(`div`,{className:`messages-container`,ref:f,children:n.map((e,t)=>(0,eM.jsx)(tM,{ref:t===n.length-1?d:null,message:e},e.id))}),(0,eM.jsxs)(`div`,{className:`bottom-container`,children:[(0,eM.jsx)(`div`,{className:`action-bar`,children:(0,eM.jsx)(ab,{title:`新对话`,placement:`bottomRight`,children:(0,eM.jsx)(`button`,{className:`icon square plain`,type:`button`,"aria-label":`新对话`,onClick:async()=>{r([]),u.current?.focus(),await p.emit(`create`),c.success({title:`已创建`,description:`新对话已创建`,placement:`top`,closable:!1})},children:(0,eM.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`18`,height:`18`,viewBox:`0 0 1024 1024`,children:(0,eM.jsx)(`path`,{d:`M597.333 128v85.333H170.667v571.094l75.221-59.094h607.445V426.667h85.334V768A42.667 42.667 0 0 1 896 810.667H275.413L85.333 960V170.667A42.667 42.667 0 0 1 128 128h469.333zm213.334 0V0H896v128h128v85.333H896v128h-85.333v-128h-128V128h128z`})})})})}),(0,eM.jsxs)(`div`,{className:`user-input-container`,children:[(0,eM.jsx)(`textarea`,{className:`user-input`,placeholder:`发消息...`,value:i,onChange:e=>a(e.target.value),onKeyDown:e=>{e.key===`Enter`&&!e.shiftKey&&(e.preventDefault(),x())},ref:u}),(0,eM.jsxs)(`div`,{className:`button-wrap`,children:[(0,eM.jsx)(ab,{title:`发送 (↵)`,placement:`topLeft`,children:(0,eM.jsx)(`button`,{className:`icon square plain`,type:`button`,"aria-label":`发送`,onClick:x,style:{display:o?`none`:`flex`},children:(0,eM.jsx)(`div`,{className:`submit-icon`,children:(0,eM.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`20`,height:`20`,fill:`currentColor`,children:(0,eM.jsx)(`path`,{d:`M9 16V6.414L5.707 9.707a1 1 0 1 1-1.414-1.414l5-5 .076-.068a1 1 0 0 1 1.338.068l5 5 .068.076a1 1 0 0 1-1.406 1.406l-.076-.068L11 6.414V16a1 1 0 1 1-2 0Z`})})})})}),(0,eM.jsx)(ab,{title:`停止`,placement:`topLeft`,children:(0,eM.jsx)(`button`,{className:`icon square plain`,type:`button`,"aria-label":`停止`,onClick:()=>{Fi(),s(!1),u.current?.focus(),c.info({title:`已停止`,description:`对话已停止`,placement:`top`,closable:!1})},style:{display:o?`flex`:`none`},children:(0,eM.jsx)(`div`,{className:`stop-icon`,children:(0,eM.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`20`,height:`20`,fill:`currentColor`,children:(0,eM.jsx)(`path`,{d:`M4.5 5.75c0-.69.56-1.25 1.25-1.25h8.5c.69 0 1.25.56 1.25 1.25v8.5c0 .69-.56 1.25-1.25 1.25h-8.5c-.69 0-1.25-.56-1.25-1.25v-8.5Z`})})})})})]})]})]})]})}),rM=[`button{cursor:pointer;border:0;outline:0;justify-content:center;align-items:center;display:flex}button.icon{padding:4px}button.text{height:28px;padding:0 12px}button.square{border-radius:6px}button.circle{border-radius:50%}button.primary{background-color:#0000000a}button.plain{background-color:#0000}button.error{color:#fff;background-color:#ff4d4f}button.primary:hover{background-color:#0000000f}button.plain:hover{background-color:#0000000a}button.error:hover{background-color:#ff7875}`,`.loading-dots{margin-left:3px;font-weight:700}.loading-dots:after{content:"";animation:1.5s infinite typing}@keyframes typing{0%{content:"."}33%{content:".."}66%{content:"..."}to{content:"."}}`,`.app-container{background:#fff;flex-direction:column;height:100%;display:flex}.bottom-container{margin:12px}.action-bar{align-items:center;gap:12px;margin-bottom:12px;display:flex}.user-input-container{border:1px solid #72768b29;border-radius:16px;flex-direction:column;padding:12px;display:flex;box-shadow:0 10px 30px #0003}.user-input{resize:none;border:0;width:100%;font-size:14px;line-height:1.5}.button-wrap{justify-content:flex-end;align-items:center;gap:12px;display:flex}.messages-container{flex:1;padding-top:12px;padding-left:12px;padding-right:12px;overflow:hidden auto}.message{max-width:80%;margin-bottom:12px;font-size:14px;line-height:1.5}.body-container{color:#000;border-radius:8px;padding:0 14px;overflow-x:auto}.message.user{margin-left:auto}.message.user .body-container{background:#e3f2fd}.message.assistant{margin-right:auto}.message.assistant .body-container{background:#f1f1f1}.button-container{margin-top:4px;display:flex}.button-container button{align-items:center;height:26px;display:flex}.message.user .button-container{justify-content:flex-end}.message.assistant .button-container{justify-content:flex-start}.submit-icon,.stop-icon{color:#fff;background-color:#000;border-radius:50%;justify-content:center;align-items:center;width:28px;height:28px;display:flex}.content-container{word-wrap:break-word}.message.assistant table{border-collapse:collapse;margin-block:1em}.message.assistant table th,.message.assistant table td{border:1px solid #ccc;padding:8px}.message.assistant table th{background-color:#e0e0e0}.message.assistant .reasoning-container{color:#6b7280;background-color:#f9fafb;border-radius:8px;margin-bottom:8px;padding:0 14px;font-size:12px;overflow-x:auto}.message.assistant .reasoning-container .reasoning-header{cursor:pointer;align-items:center;gap:4px;margin-bottom:8px;padding-top:8px;display:flex}.message.assistant .reasoning-container .reasoning-header svg{transition:transform .3s;transform:rotate(90deg)}.message.assistant .reasoning-container.collapsed .reasoning-header svg{transition:transform .3s;transform:rotate(0)}.message.assistant .reasoning-container.collapsed .reasoning-content{height:0;overflow:hidden}`,`*{box-sizing:border-box}textarea{padding:0}textarea:focus-visible,select:focus-visible{outline:0}.flex{display:flex}:host{position:relative}`].join(`
422
+ `),iM=({domNode:e,onReady:t})=>{let n=document.createElement(`style`);n.textContent=rM,e.appendChild(n);let r=ts(),i=(0,U.createRef)();return Mi.createRoot(e).render((0,eM.jsx)(U.StrictMode,{children:(0,eM.jsx)(rs,{cache:r,container:e,children:(0,eM.jsx)(_h,{getPopupContainer:()=>e,children:(0,eM.jsx)(nM,{ref:i,onReady:t})})})})),i},aM;(function(e){e[e.AM=0]=`AM`,e[e.PM=1]=`PM`})(aM||={});var oM;(function(e){e[e.SUNDAY=0]=`SUNDAY`,e[e.MONDAY=1]=`MONDAY`,e[e.TUESDAY=2]=`TUESDAY`,e[e.WEDNESDAY=3]=`WEDNESDAY`,e[e.THURSDAY=4]=`THURSDAY`,e[e.FRIDAY=5]=`FRIDAY`,e[e.SATURDAY=6]=`SATURDAY`})(oM||={});var sM;(function(e){e[e.JANUARY=1]=`JANUARY`,e[e.FEBRUARY=2]=`FEBRUARY`,e[e.MARCH=3]=`MARCH`,e[e.APRIL=4]=`APRIL`,e[e.MAY=5]=`MAY`,e[e.JUNE=6]=`JUNE`,e[e.JULY=7]=`JULY`,e[e.AUGUST=8]=`AUGUST`,e[e.SEPTEMBER=9]=`SEPTEMBER`,e[e.OCTOBER=10]=`OCTOBER`,e[e.NOVEMBER=11]=`NOVEMBER`,e[e.DECEMBER=12]=`DECEMBER`})(sM||={});function cM(e,t){e.assign(`day`,t.getDate()),e.assign(`month`,t.getMonth()+1),e.assign(`year`,t.getFullYear())}function lM(e,t){e.assign(`hour`,t.getHours()),e.assign(`minute`,t.getMinutes()),e.assign(`second`,t.getSeconds()),e.assign(`millisecond`,t.getMilliseconds()),e.assign(`meridiem`,t.getHours()<12?aM.AM:aM.PM)}function uM(e,t){e.imply(`day`,t.getDate()),e.imply(`month`,t.getMonth()+1),e.imply(`year`,t.getFullYear())}function dM(e,t){e.imply(`hour`,t.getHours()),e.imply(`minute`,t.getMinutes()),e.imply(`second`,t.getSeconds()),e.imply(`millisecond`,t.getMilliseconds()),e.imply(`meridiem`,t.getHours()<12?aM.AM:aM.PM)}var fM={ACDT:630,ACST:570,ADT:-180,AEDT:660,AEST:600,AFT:270,AKDT:-480,AKST:-540,ALMT:360,AMST:-180,AMT:-240,ANAST:720,ANAT:720,AQTT:300,ART:-180,AST:-240,AWDT:540,AWST:480,AZOST:0,AZOT:-60,AZST:300,AZT:240,BNT:480,BOT:-240,BRST:-120,BRT:-180,BST:60,BTT:360,CAST:480,CAT:120,CCT:390,CDT:-300,CEST:120,CET:{timezoneOffsetDuringDst:120,timezoneOffsetNonDst:60,dstStart:e=>mM(e,sM.MARCH,oM.SUNDAY,2),dstEnd:e=>mM(e,sM.OCTOBER,oM.SUNDAY,3)},CHADT:825,CHAST:765,CKT:-600,CLST:-180,CLT:-240,COT:-300,CST:-360,CT:{timezoneOffsetDuringDst:-300,timezoneOffsetNonDst:-360,dstStart:e=>pM(e,sM.MARCH,oM.SUNDAY,2,2),dstEnd:e=>pM(e,sM.NOVEMBER,oM.SUNDAY,1,2)},CVT:-60,CXT:420,ChST:600,DAVT:420,EASST:-300,EAST:-360,EAT:180,ECT:-300,EDT:-240,EEST:180,EET:120,EGST:0,EGT:-60,EST:-300,ET:{timezoneOffsetDuringDst:-240,timezoneOffsetNonDst:-300,dstStart:e=>pM(e,sM.MARCH,oM.SUNDAY,2,2),dstEnd:e=>pM(e,sM.NOVEMBER,oM.SUNDAY,1,2)},FJST:780,FJT:720,FKST:-180,FKT:-240,FNT:-120,GALT:-360,GAMT:-540,GET:240,GFT:-180,GILT:720,GMT:0,GST:240,GYT:-240,HAA:-180,HAC:-300,HADT:-540,HAE:-240,HAP:-420,HAR:-360,HAST:-600,HAT:-90,HAY:-480,HKT:480,HLV:-210,HNA:-240,HNC:-360,HNE:-300,HNP:-480,HNR:-420,HNT:-150,HNY:-540,HOVT:420,ICT:420,IDT:180,IOT:360,IRDT:270,IRKST:540,IRKT:540,IRST:210,IST:330,JST:540,KGT:360,KRAST:480,KRAT:480,KST:540,KUYT:240,LHDT:660,LHST:630,LINT:840,MAGST:720,MAGT:720,MART:-510,MAWT:300,MDT:-360,MESZ:120,MEZ:60,MHT:720,MMT:390,MSD:240,MSK:180,MST:-420,MT:{timezoneOffsetDuringDst:-360,timezoneOffsetNonDst:-420,dstStart:e=>pM(e,sM.MARCH,oM.SUNDAY,2,2),dstEnd:e=>pM(e,sM.NOVEMBER,oM.SUNDAY,1,2)},MUT:240,MVT:300,MYT:480,NCT:660,NDT:-90,NFT:690,NOVST:420,NOVT:360,NPT:345,NST:-150,NUT:-660,NZDT:780,NZST:720,OMSST:420,OMST:420,PDT:-420,PET:-300,PETST:720,PETT:720,PGT:600,PHOT:780,PHT:480,PKT:300,PMDT:-120,PMST:-180,PONT:660,PST:-480,PT:{timezoneOffsetDuringDst:-420,timezoneOffsetNonDst:-480,dstStart:e=>pM(e,sM.MARCH,oM.SUNDAY,2,2),dstEnd:e=>pM(e,sM.NOVEMBER,oM.SUNDAY,1,2)},PWT:540,PYST:-180,PYT:-240,RET:240,SAMT:240,SAST:120,SBT:660,SCT:240,SGT:480,SRT:-180,SST:-660,TAHT:-600,TFT:300,TJT:300,TKT:780,TLT:540,TMT:300,TVT:720,ULAT:480,UTC:0,UYST:-120,UYT:-180,UZT:300,VET:-210,VLAST:660,VLAT:660,VUT:660,WAST:120,WAT:60,WEST:60,WESZ:60,WET:0,WEZ:0,WFT:720,WGST:-120,WGT:-180,WIB:420,WIT:540,WITA:480,WST:780,WT:0,YAKST:600,YAKT:600,YAPT:600,YEKST:360,YEKT:360};function pM(e,t,n,r,i=0){let a=0,o=0;for(;o<r;)a++,new Date(e,t-1,a).getDay()===n&&o++;return new Date(e,t-1,a,i)}function mM(e,t,n,r=0){let i=n===0?7:n,a=new Date(e,t-1+1,1,12),o=a.getDay()===0?7:a.getDay(),s;return s=o===i?7:o<i?7+o-i:o-i,a.setDate(a.getDate()-s),new Date(e,t-1,a.getDate(),r)}function hM(e,t,n={}){if(e==null)return null;if(typeof e==`number`)return e;let r=n[e]??fM[e];return r==null?null:typeof r==`number`?r:t==null?null:t>r.dstStart(t.getFullYear())&&!(t>r.dstEnd(t.getFullYear()))?r.timezoneOffsetDuringDst:r.timezoneOffsetNonDst}var gM={day:0,second:0,millisecond:0};function _M(e,t){let n=new Date(e);if(t.y&&(t.year=t.y,delete t.y),t.mo&&(t.month=t.mo,delete t.mo),t.M&&(t.month=t.M,delete t.M),t.w&&(t.week=t.w,delete t.w),t.d&&(t.day=t.d,delete t.d),t.h&&(t.hour=t.h,delete t.h),t.m&&(t.minute=t.m,delete t.m),t.s&&(t.second=t.s,delete t.s),t.ms&&(t.millisecond=t.ms,delete t.ms),`year`in t){let e=Math.floor(t.year);n.setFullYear(n.getFullYear()+e);let r=t.year-e;r>0&&(t.month=t?.month??0,t.month+=r*12)}if(`quarter`in t){let e=Math.floor(t.quarter);n.setMonth(n.getMonth()+e*3)}if(`month`in t){let e=Math.floor(t.month);n.setMonth(n.getMonth()+e);let r=t.month-e;r>0&&(t.week=t?.week??0,t.week+=r*4)}if(`week`in t){let e=Math.floor(t.week);n.setDate(n.getDate()+e*7);let r=t.week-e;r>0&&(t.day=t?.day??0,t.day+=Math.round(r*7))}if(`day`in t){let e=Math.floor(t.day);n.setDate(n.getDate()+e);let r=t.day-e;r>0&&(t.hour=t?.hour??0,t.hour+=Math.round(r*24))}if(`hour`in t){let e=Math.floor(t.hour);n.setHours(n.getHours()+e);let r=t.hour-e;r>0&&(t.minute=t?.minute??0,t.minute+=Math.round(r*60))}if(`minute`in t){let e=Math.floor(t.minute);n.setMinutes(n.getMinutes()+e);let r=t.minute-e;r>0&&(t.second=t?.second??0,t.second+=Math.round(r*60))}if(`second`in t){let e=Math.floor(t.second);n.setSeconds(n.getSeconds()+e);let r=t.second-e;r>0&&(t.millisecond=t?.millisecond??0,t.millisecond+=Math.round(r*1e3))}if(`millisecond`in t){let e=Math.floor(t.millisecond);n.setMilliseconds(n.getMilliseconds()+e)}return n}function vM(e){let t={};for(let n in e)t[n]=-e[n];return t}var yM=class e{instant;timezoneOffset;constructor(e,t){this.instant=e??new Date,this.timezoneOffset=t??null}static fromDate(t){return new e(t)}static fromInput(t,n){if(t instanceof Date)return e.fromDate(t);let r=t?.instant??new Date;return new e(r,hM(t?.timezone,r,n))}getDateWithAdjustedTimezone(){let e=new Date(this.instant);return this.timezoneOffset!==null&&e.setMinutes(e.getMinutes()-this.getSystemTimezoneAdjustmentMinute(this.instant)),e}getSystemTimezoneAdjustmentMinute(e,t){e||=new Date;let n=-e.getTimezoneOffset();return n-(t??this.timezoneOffset??n)}getTimezoneOffset(){return this.timezoneOffset??-this.instant.getTimezoneOffset()}},bM=class e{knownValues;impliedValues;reference;_tags=new Set;constructor(e,t){if(this.reference=e,this.knownValues={},this.impliedValues={},t)for(let e in t)this.knownValues[e]=t[e];let n=e.getDateWithAdjustedTimezone();this.imply(`day`,n.getDate()),this.imply(`month`,n.getMonth()+1),this.imply(`year`,n.getFullYear()),this.imply(`hour`,12),this.imply(`minute`,0),this.imply(`second`,0),this.imply(`millisecond`,0)}static createRelativeFromReference(t,n=gM){let r=_M(t.getDateWithAdjustedTimezone(),n),i=new e(t);return i.addTag(`result/relativeDate`),`hour`in n||`minute`in n||`second`in n||`millisecond`in n?(i.addTag(`result/relativeDateAndTime`),lM(i,r),cM(i,r),i.assign(`timezoneOffset`,t.getTimezoneOffset())):(dM(i,r),i.imply(`timezoneOffset`,t.getTimezoneOffset()),`day`in n?(i.assign(`day`,r.getDate()),i.assign(`month`,r.getMonth()+1),i.assign(`year`,r.getFullYear()),i.assign(`weekday`,r.getDay())):`week`in n?(i.assign(`day`,r.getDate()),i.assign(`month`,r.getMonth()+1),i.assign(`year`,r.getFullYear()),i.imply(`weekday`,r.getDay())):(i.imply(`day`,r.getDate()),`month`in n?(i.assign(`month`,r.getMonth()+1),i.assign(`year`,r.getFullYear())):(i.imply(`month`,r.getMonth()+1),`year`in n?i.assign(`year`,r.getFullYear()):i.imply(`year`,r.getFullYear())))),i}get(e){return e in this.knownValues?this.knownValues[e]:e in this.impliedValues?this.impliedValues[e]:null}isCertain(e){return e in this.knownValues}getCertainComponents(){return Object.keys(this.knownValues)}imply(e,t){return e in this.knownValues||(this.impliedValues[e]=t),this}assign(e,t){return this.knownValues[e]=t,delete this.impliedValues[e],this}addDurationAsImplied(e){let t=_M(this.dateWithoutTimezoneAdjustment(),e);return(`day`in e||`week`in e||`month`in e||`year`in e)&&(this.delete([`day`,`weekday`,`month`,`year`]),this.imply(`day`,t.getDate()),this.imply(`weekday`,t.getDay()),this.imply(`month`,t.getMonth()+1),this.imply(`year`,t.getFullYear())),(`second`in e||`minute`in e||`hour`in e)&&(this.delete([`second`,`minute`,`hour`]),this.imply(`second`,t.getSeconds()),this.imply(`minute`,t.getMinutes()),this.imply(`hour`,t.getHours())),this}delete(e){typeof e==`string`&&(e=[e]);for(let t of e)delete this.knownValues[t],delete this.impliedValues[t]}clone(){let t=new e(this.reference);t.knownValues={},t.impliedValues={};for(let e in this.knownValues)t.knownValues[e]=this.knownValues[e];for(let e in this.impliedValues)t.impliedValues[e]=this.impliedValues[e];return t}isOnlyDate(){return!this.isCertain(`hour`)&&!this.isCertain(`minute`)&&!this.isCertain(`second`)}isOnlyTime(){return!this.isCertain(`weekday`)&&!this.isCertain(`day`)&&!this.isCertain(`month`)&&!this.isCertain(`year`)}isOnlyWeekdayComponent(){return this.isCertain(`weekday`)&&!this.isCertain(`day`)&&!this.isCertain(`month`)}isDateWithUnknownYear(){return this.isCertain(`month`)&&!this.isCertain(`year`)}isValidDate(){let e=this.dateWithoutTimezoneAdjustment();return!(e.getFullYear()!==this.get(`year`)||e.getMonth()!==this.get(`month`)-1||e.getDate()!==this.get(`day`)||this.get(`hour`)!=null&&e.getHours()!=this.get(`hour`)||this.get(`minute`)!=null&&e.getMinutes()!=this.get(`minute`))}toString(){return`[ParsingComponents {
94
423
  tags: ${JSON.stringify(Array.from(this._tags).sort())},
95
424
  knownValues: ${JSON.stringify(this.knownValues)},
96
425
  impliedValues: ${JSON.stringify(this.impliedValues)}},
97
- reference: ${JSON.stringify(this.reference)}]`}date(){const t=this.dateWithoutTimezoneAdjustment(),n=this.reference.getSystemTimezoneAdjustmentMinute(t,this.get("timezoneOffset"));return new Date(t.getTime()+n*6e4)}addTag(t){return this._tags.add(t),this}addTags(t){for(const n of t)this._tags.add(n);return this}tags(){return new Set(this._tags)}dateWithoutTimezoneAdjustment(){const t=new Date(this.get("year"),this.get("month")-1,this.get("day"),this.get("hour"),this.get("minute"),this.get("second"),this.get("millisecond"));return t.setFullYear(this.get("year")),t}}class Tn{refDate;index;text;reference;start;end;constructor(t,n,r,i,s){this.reference=t,this.refDate=t.instant,this.index=n,this.text=r,this.start=i||new Te(t),this.end=s}clone(){const t=new Tn(this.reference,this.index,this.text);return t.start=this.start?this.start.clone():null,t.end=this.end?this.end.clone():null,t}date(){return this.start.date()}addTag(t){return this.start.addTag(t),this.end&&this.end.addTag(t),this}addTags(t){return this.start.addTags(t),this.end&&this.end.addTags(t),this}tags(){const t=new Set(this.start.tags());if(this.end)for(const n of this.end.tags())t.add(n);return t}toString(){const t=Array.from(this.tags()).sort();return`[ParsingResult {index: ${this.index}, text: '${this.text}', tags: ${JSON.stringify(t)} ...}]`}}function Hc(e,t,n="\\s{0,5},?\\s{0,5}"){const r=t.replace(/\((?!\?)/g,"(?:");return`${e}${r}(?:${n}${r}){0,10}`}function D_(e){let t;return e instanceof Array?t=[...e]:e instanceof Map?t=Array.from(e.keys()):t=Object.keys(e),t}function xt(e){return`(?:${D_(e).sort((n,r)=>r.length-n.length).join("|").replace(/\./g,"\\.")})`}function Bc(e){return e<100&&(e>50?e=e+1900:e=e+2e3),e}function yi(e,t,n){let r=new Date(e);r.setMonth(n-1),r.setDate(t);const i=Le(r,{year:1}),s=Le(r,{year:-1});return Math.abs(i.getTime()-e.getTime())<Math.abs(r.getTime()-e.getTime())?r=i:Math.abs(s.getTime()-e.getTime())<Math.abs(r.getTime()-e.getTime())&&(r=s),r.getFullYear()}const ba={sunday:0,sun:0,"sun.":0,monday:1,mon:1,"mon.":1,tuesday:2,tue:2,"tue.":2,wednesday:3,wed:3,"wed.":3,thursday:4,thurs:4,"thurs.":4,thur:4,"thur.":4,thu:4,"thu.":4,friday:5,fri:5,"fri.":5,saturday:6,sat:6,"sat.":6},Vc={january:1,february:2,march:3,april:4,may:5,june:6,july:7,august:8,september:9,october:10,november:11,december:12},Vt={...Vc,jan:1,"jan.":1,feb:2,"feb.":2,mar:3,"mar.":3,apr:4,"apr.":4,jun:6,"jun.":6,jul:7,"jul.":7,aug:8,"aug.":8,sep:9,"sep.":9,sept:9,"sept.":9,oct:10,"oct.":10,nov:11,"nov.":11,dec:12,"dec.":12},wa={one:1,two:2,three:3,four:4,five:5,six:6,seven:7,eight:8,nine:9,ten:10,eleven:11,twelve:12},_a={first:1,second:2,third:3,fourth:4,fifth:5,sixth:6,seventh:7,eighth:8,ninth:9,tenth:10,eleventh:11,twelfth:12,thirteenth:13,fourteenth:14,fifteenth:15,sixteenth:16,seventeenth:17,eighteenth:18,nineteenth:19,twentieth:20,"twenty first":21,"twenty-first":21,"twenty second":22,"twenty-second":22,"twenty third":23,"twenty-third":23,"twenty fourth":24,"twenty-fourth":24,"twenty fifth":25,"twenty-fifth":25,"twenty sixth":26,"twenty-sixth":26,"twenty seventh":27,"twenty-seventh":27,"twenty eighth":28,"twenty-eighth":28,"twenty ninth":29,"twenty-ninth":29,thirtieth:30,"thirty first":31,"thirty-first":31},Wc={second:"second",seconds:"second",minute:"minute",minutes:"minute",hour:"hour",hours:"hour",day:"day",days:"day",week:"week",weeks:"week",month:"month",months:"month",quarter:"quarter",quarters:"quarter",year:"year",years:"year"},bi={s:"second",sec:"second",second:"second",seconds:"second",m:"minute",min:"minute",mins:"minute",minute:"minute",minutes:"minute",h:"hour",hr:"hour",hrs:"hour",hour:"hour",hours:"hour",d:"day",day:"day",days:"day",w:"week",week:"week",weeks:"week",mo:"month",mon:"month",mos:"month",month:"month",months:"month",qtr:"quarter",quarter:"quarter",quarters:"quarter",y:"year",yr:"year",year:"year",years:"year",...Wc},Yc=`(?:${xt(wa)}|[0-9]+|[0-9]+\\.[0-9]+|half(?:\\s{0,2}an?)?|an?\\b(?:\\s{0,2}few)?|few|several|the|a?\\s{0,2}couple\\s{0,2}(?:of)?)`;function $_(e){const t=e.toLowerCase();return wa[t]!==void 0?wa[t]:t==="a"||t==="an"||t=="the"?1:t.match(/few/)?3:t.match(/half/)?.5:t.match(/couple/)?2:t.match(/several/)?7:parseFloat(t)}const wi=`(?:${xt(_a)}|[0-9]{1,2}(?:st|nd|rd|th)?)`;function _i(e){let t=e.toLowerCase();return _a[t]!==void 0?_a[t]:(t=t.replace(/(?:st|nd|rd|th)$/i,""),parseInt(t))}const vi="(?:[1-9][0-9]{0,3}\\s{0,2}(?:BE|AD|BC|BCE|CE)|[1-2][0-9]{3}|[5-9][0-9]|2[0-5])";function Ti(e){if(/BE/i.test(e))return e=e.replace(/BE/i,""),parseInt(e)-543;if(/BCE?/i.test(e))return e=e.replace(/BCE?/i,""),-parseInt(e);if(/(AD|CE)/i.test(e))return e=e.replace(/(AD|CE)/i,""),parseInt(e);const t=parseInt(e);return Bc(t)}const Gc=`(${Yc})\\s{0,3}(${xt(bi)})`,Kc=new RegExp(Gc,"i"),C_=`(${Yc})\\s{0,3}(${xt(Wc)})`,Zc="\\s{0,5},?(?:\\s*and)?\\s{0,5}",Zn=Hc("(?:(?:about|around)\\s{0,3})?",Gc,Zc),ki=Hc("(?:(?:about|around)\\s{0,3})?",C_,Zc);function kn(e){const t={};let n=e,r=Kc.exec(n);for(;r;)O_(t,r),n=n.substring(r[0].length).trim(),r=Kc.exec(n);return Object.keys(t).length==0?null:t}function O_(e,t){if(t[0].match(/^[a-zA-Z]+$/))return;const n=$_(t[1]),r=bi[t[2].toLowerCase()];e[r]=n}class ke{innerPatternHasChange(t,n){return this.innerPattern(t)!==n}patternLeftBoundary(){return"(\\W|^)"}cachedInnerPattern=null;cachedPattern=null;pattern(t){return this.cachedInnerPattern&&!this.innerPatternHasChange(t,this.cachedInnerPattern)?this.cachedPattern:(this.cachedInnerPattern=this.innerPattern(t),this.cachedPattern=new RegExp(`${this.patternLeftBoundary()}${this.cachedInnerPattern.source}`,this.cachedInnerPattern.flags),this.cachedPattern)}extract(t,n){const r=n[1]??"";n.index=n.index+r.length,n[0]=n[0].substring(r.length);for(let i=2;i<n.length;i++)n[i-1]=n[i];return this.innerExtract(t,n)}}const R_=new RegExp(`(?:(?:within|in|for)\\s*)?(?:(?:about|around|roughly|approximately|just)\\s*(?:~\\s*)?)?(${Zn})(?=\\W|$)`,"i"),N_=new RegExp(`(?:within|in|for)\\s*(?:(?:about|around|roughly|approximately|just)\\s*(?:~\\s*)?)?(${Zn})(?=\\W|$)`,"i"),M_=new RegExp(`(?:within|in|for)\\s*(?:(?:about|around|roughly|approximately|just)\\s*(?:~\\s*)?)?(${ki})(?=\\W|$)`,"i");class I_ extends ke{strictMode;constructor(t){super(),this.strictMode=t}innerPattern(t){return this.strictMode?M_:t.option.forwardDate?R_:N_}innerExtract(t,n){if(n[0].match(/^for\s*the\s*\w+/))return null;const r=kn(n[1]);return r?Te.createRelativeFromReference(t.reference,r):null}}const L_=new RegExp(`(?:on\\s{0,3})?(${wi})(?:\\s{0,3}(?:to|\\-|\\–|until|through|till)?\\s{0,3}(${wi}))?(?:-|/|\\s{0,3}(?:of)?\\s{0,3})(${xt(Vt)})(?:(?:-|/|,?\\s{0,3})(${vi}(?!\\w)))?(?=\\W|$)`,"i"),Jc=1,Xc=2,F_=3,Qc=4;class j_ extends ke{innerPattern(){return L_}innerExtract(t,n){const r=t.createParsingResult(n.index,n[0]),i=Vt[n[F_].toLowerCase()],s=_i(n[Jc]);if(s>31)return n.index=n.index+n[Jc].length,null;if(r.start.assign("month",i),r.start.assign("day",s),n[Qc]){const a=Ti(n[Qc]);r.start.assign("year",a)}else{const a=yi(t.refDate,s,i);r.start.imply("year",a)}if(n[Xc]){const a=_i(n[Xc]);r.end=r.start.clone(),r.end.assign("day",a)}return r}}const z_=new RegExp(`(${xt(Vt)})(?:-|/|\\s*,?\\s*)(${wi})(?!\\s*(?:am|pm))\\s*(?:(?:to|\\-)\\s*(${wi})\\s*)?(?:(?:-|/|\\s*,\\s*|\\s+)(${vi}))?(?=\\W|$)(?!\\:\\d)`,"i"),U_=1,ef=2,va=3,Ta=4;class q_ extends ke{shouldSkipYearLikeDate;constructor(t){super(),this.shouldSkipYearLikeDate=t}innerPattern(){return z_}innerExtract(t,n){const r=Vt[n[U_].toLowerCase()],i=_i(n[ef]);if(i>31||this.shouldSkipYearLikeDate&&!n[va]&&!n[Ta]&&n[ef].match(/^2[0-5]$/))return null;const s=t.createParsingComponents({day:i,month:r}).addTag("parser/ENMonthNameMiddleEndianParser");if(n[Ta]){const l=Ti(n[Ta]);s.assign("year",l)}else{const l=yi(t.refDate,i,r);s.imply("year",l)}if(!n[va])return s;const a=_i(n[va]),o=t.createParsingResult(n.index,n[0]);return o.start=s,o.end=s.clone(),o.end.assign("day",a),o}}const H_=new RegExp(`((?:in)\\s*)?(${xt(Vt)})\\s*(?:(?:,|-|of)?\\s*(${vi})?)?(?=[^\\s\\w]|\\s+[^0-9]|\\s+$|$)`,"i"),B_=1,V_=2,tf=3;class W_ extends ke{innerPattern(){return H_}innerExtract(t,n){const r=n[V_].toLowerCase();if(n[0].length<=3&&!Vc[r])return null;const i=t.createParsingResult(n.index+(n[B_]||"").length,n.index+n[0].length);i.start.imply("day",1),i.start.addTag("parser/ENMonthNameParser");const s=Vt[r];if(i.start.assign("month",s),n[tf]){const a=Ti(n[tf]);i.start.assign("year",a)}else{const a=yi(t.refDate,1,s);i.start.imply("year",a)}return i}}const Y_=new RegExp(`([0-9]{4})[-\\.\\/\\s](?:(${xt(Vt)})|([0-9]{1,2}))[-\\.\\/\\s]([0-9]{1,2})(?=\\W|$)`,"i"),G_=1,K_=2,nf=3,Z_=4;class J_ extends ke{strictMonthDateOrder;constructor(t){super(),this.strictMonthDateOrder=t}innerPattern(){return Y_}innerExtract(t,n){const r=parseInt(n[G_]);let i=parseInt(n[Z_]),s=n[nf]?parseInt(n[nf]):Vt[n[K_].toLowerCase()];if(s<1||s>12){if(this.strictMonthDateOrder)return null;i>=1&&i<=12&&([s,i]=[i,s])}return i<1||i>31?null:{day:i,month:s,year:r}}}const X_=new RegExp("([0-9]|0[1-9]|1[012])/([0-9]{4})","i"),Q_=1,ev=2;class tv extends ke{innerPattern(){return X_}innerExtract(t,n){const r=parseInt(n[ev]),i=parseInt(n[Q_]);return t.createParsingComponents().imply("day",1).assign("month",i).assign("year",r)}}function nv(e,t,n,r){return new RegExp(`${e}${t}(\\d{1,4})(?:(?:\\.|:|:)(\\d{1,2})(?:(?::|:)(\\d{2})(?:\\.(\\d{1,6}))?)?)?(?:\\s*(a\\.m\\.|p\\.m\\.|am?|pm?))?${n}`,r)}function rv(e,t){return new RegExp(`^(${e})(\\d{1,4})(?:(?:\\.|\\:|\\:)(\\d{1,2})(?:(?:\\.|\\:|\\:)(\\d{1,2})(?:\\.(\\d{1,6}))?)?)?(?:\\s*(a\\.m\\.|p\\.m\\.|am?|pm?))?${t}`,"i")}const ka=2,sn=3,Ei=4,Si=5,En=6;class iv{strictMode;constructor(t=!1){this.strictMode=t}patternFlags(){return"i"}primaryPatternLeftBoundary(){return"(^|\\s|T|\\b)"}primarySuffix(){return"(?!/)(?=\\W|$)"}followingSuffix(){return"(?!/)(?=\\W|$)"}pattern(t){return this.getPrimaryTimePatternThroughCache()}extract(t,n){const r=this.extractPrimaryTimeComponents(t,n);if(!r)return n[0].match(/^\d{4}/)?(n.index+=4,null):(n.index+=n[0].length,null);const i=n.index+n[1].length,s=n[0].substring(n[1].length),a=t.createParsingResult(i,s,r);n.index+=n[0].length;const o=t.text.substring(n.index),u=this.getFollowingTimePatternThroughCache().exec(o);return s.match(/^\d{3,4}/)&&u&&(u[0].match(/^\s*([+-])\s*\d{2,4}$/)||u[0].match(/^\s*([+-])\s*\d{2}\W\d{2}/))?null:!u||u[0].match(/^\s*([+-])\s*\d{3,4}$/)?this.checkAndReturnWithoutFollowingPattern(a):(a.end=this.extractFollowingTimeComponents(t,u,a),a.end&&(a.text+=u[0]),this.checkAndReturnWithFollowingPattern(a))}extractPrimaryTimeComponents(t,n,r=!1){const i=t.createParsingComponents();let s=0,a=null,o=parseInt(n[ka]);if(o>100){if(n[ka].length==4&&n[sn]==null&&!n[En]||this.strictMode||n[sn]!=null)return null;s=o%100,o=Math.floor(o/100)}if(o>24)return null;if(n[sn]!=null){if(n[sn].length==1&&!n[En])return null;s=parseInt(n[sn])}if(s>=60)return null;if(o>12&&(a=ye.PM),n[En]!=null){if(o>12)return null;const l=n[En][0].toLowerCase();l=="a"&&(a=ye.AM,o==12&&(o=0)),l=="p"&&(a=ye.PM,o!=12&&(o+=12))}if(i.assign("hour",o),i.assign("minute",s),a!==null?i.assign("meridiem",a):o<12?i.imply("meridiem",ye.AM):i.imply("meridiem",ye.PM),n[Si]!=null){const l=parseInt(n[Si].substring(0,3));if(l>=1e3)return null;i.assign("millisecond",l)}if(n[Ei]!=null){const l=parseInt(n[Ei]);if(l>=60)return null;i.assign("second",l)}return i}extractFollowingTimeComponents(t,n,r){const i=t.createParsingComponents();if(n[Si]!=null){const l=parseInt(n[Si].substring(0,3));if(l>=1e3)return null;i.assign("millisecond",l)}if(n[Ei]!=null){const l=parseInt(n[Ei]);if(l>=60)return null;i.assign("second",l)}let s=parseInt(n[ka]),a=0,o=-1;if(n[sn]!=null?a=parseInt(n[sn]):s>100&&(a=s%100,s=Math.floor(s/100)),a>=60||s>24)return null;if(s>=12&&(o=ye.PM),n[En]!=null){if(s>12)return null;const l=n[En][0].toLowerCase();l=="a"&&(o=ye.AM,s==12&&(s=0,i.isCertain("day")||i.imply("day",i.get("day")+1))),l=="p"&&(o=ye.PM,s!=12&&(s+=12)),r.start.isCertain("meridiem")||(o==ye.AM?(r.start.imply("meridiem",ye.AM),r.start.get("hour")==12&&r.start.assign("hour",0)):(r.start.imply("meridiem",ye.PM),r.start.get("hour")!=12&&r.start.assign("hour",r.start.get("hour")+12)))}return i.assign("hour",s),i.assign("minute",a),o>=0?i.assign("meridiem",o):r.start.isCertain("meridiem")&&r.start.get("hour")>12?r.start.get("hour")-12>s?i.imply("meridiem",ye.AM):s<=12&&(i.assign("hour",s+12),i.assign("meridiem",ye.PM)):s>12?i.imply("meridiem",ye.PM):s<=12&&i.imply("meridiem",ye.AM),i.date().getTime()<r.start.date().getTime()&&i.imply("day",i.get("day")+1),i}checkAndReturnWithoutFollowingPattern(t){if(t.text.match(/^\d$/)||t.text.match(/^\d\d\d+$/)||t.text.match(/\d[apAP]$/))return null;const n=t.text.match(/[^\d:.](\d[\d.]+)$/);if(n){const r=n[1];if(this.strictMode||r.includes(".")&&!r.match(/\d(\.\d{2})+$/)||parseInt(r)>24)return null}return t}checkAndReturnWithFollowingPattern(t){if(t.text.match(/^\d+-\d+$/))return null;const n=t.text.match(/[^\d:.](\d[\d.]+)\s*-\s*(\d[\d.]+)$/);if(n){if(this.strictMode)return null;const r=n[1],i=n[2];if(i.includes(".")&&!i.match(/\d(\.\d{2})+$/))return null;const s=parseInt(i),a=parseInt(r);if(s>24||a>24)return null}return t}cachedPrimaryPrefix=null;cachedPrimarySuffix=null;cachedPrimaryTimePattern=null;getPrimaryTimePatternThroughCache(){const t=this.primaryPrefix(),n=this.primarySuffix();return this.cachedPrimaryPrefix===t&&this.cachedPrimarySuffix===n?this.cachedPrimaryTimePattern:(this.cachedPrimaryTimePattern=nv(this.primaryPatternLeftBoundary(),t,n,this.patternFlags()),this.cachedPrimaryPrefix=t,this.cachedPrimarySuffix=n,this.cachedPrimaryTimePattern)}cachedFollowingPhase=null;cachedFollowingSuffix=null;cachedFollowingTimePatten=null;getFollowingTimePatternThroughCache(){const t=this.followingPhase(),n=this.followingSuffix();return this.cachedFollowingPhase===t&&this.cachedFollowingSuffix===n?this.cachedFollowingTimePatten:(this.cachedFollowingTimePatten=rv(t,n),this.cachedFollowingPhase=t,this.cachedFollowingSuffix=n,this.cachedFollowingTimePatten)}}class sv extends iv{constructor(t){super(t)}followingPhase(){return"\\s*(?:\\-|\\–|\\~|\\〜|to|until|through|till|\\?)\\s*"}primaryPrefix(){return"(?:(?:at|from)\\s*)??"}primarySuffix(){return"(?:\\s*(?:o\\W*clock|at\\s*night|in\\s*the\\s*(?:morning|afternoon)))?(?!/)(?=\\W|$)"}extractPrimaryTimeComponents(t,n){const r=super.extractPrimaryTimeComponents(t,n);if(!r)return r;if(n[0].endsWith("night")){const i=r.get("hour");i>=6&&i<12?(r.assign("hour",r.get("hour")+12),r.assign("meridiem",ye.PM)):i<6&&r.assign("meridiem",ye.AM)}if(n[0].endsWith("afternoon")){r.assign("meridiem",ye.PM);const i=r.get("hour");i>=0&&i<=6&&r.assign("hour",r.get("hour")+12)}return n[0].endsWith("morning")&&(r.assign("meridiem",ye.AM),r.get("hour")<12&&r.assign("hour",r.get("hour"))),r.addTag("parser/ENTimeExpressionParser")}extractFollowingTimeComponents(t,n,r){const i=super.extractFollowingTimeComponents(t,n,r);return i&&i.addTag("parser/ENTimeExpressionParser"),i}}const av=new RegExp(`(${Zn})\\s{0,5}(?:ago|before|earlier)(?=\\W|$)`,"i"),ov=new RegExp(`(${ki})\\s{0,5}(?:ago|before|earlier)(?=\\W|$)`,"i");class lv extends ke{strictMode;constructor(t){super(),this.strictMode=t}innerPattern(){return this.strictMode?ov:av}innerExtract(t,n){const r=kn(n[1]);return r?Te.createRelativeFromReference(t.reference,gi(r)):null}}const uv=new RegExp(`(${Zn})\\s{0,5}(?:later|after|from now|henceforth|forward|out)(?=(?:\\W|$))`,"i"),cv=new RegExp(`(${ki})\\s{0,5}(later|after|from now)(?=\\W|$)`,"i"),fv=1;class dv extends ke{strictMode;constructor(t){super(),this.strictMode=t}innerPattern(){return this.strictMode?cv:uv}innerExtract(t,n){const r=kn(n[fv]);return r?Te.createRelativeFromReference(t.reference,r):null}}class rf{refine(t,n){return n.filter(r=>this.isValid(t,r))}}class Jn{refine(t,n){if(n.length<2)return n;const r=[];let i=n[0],s=null;for(let a=1;a<n.length;a++){s=n[a];const o=t.text.substring(i.index+i.text.length,s.index);if(!this.shouldMergeResults(o,i,s,t))r.push(i),i=s;else{const l=i,u=s,c=this.mergeResults(o,l,u,t);t.debug(()=>{console.log(`${this.constructor.name} merged ${l} and ${u} into ${c}`)}),i=c}}return i!=null&&r.push(i),r}}class sf extends Jn{shouldMergeResults(t,n,r){return!n.end&&!r.end&&t.match(this.patternBetween())!=null}mergeResults(t,n,r){if(!n.start.isOnlyWeekdayComponent()&&!r.start.isOnlyWeekdayComponent()&&(r.start.getCertainComponents().forEach(s=>{n.start.isCertain(s)||n.start.imply(s,r.start.get(s))}),n.start.getCertainComponents().forEach(s=>{r.start.isCertain(s)||r.start.imply(s,n.start.get(s))})),n.start.date()>r.start.date()){let s=n.start.date(),a=r.start.date();r.start.isOnlyWeekdayComponent()&&Le(a,{day:7})>s?(a=Le(a,{day:7}),r.start.imply("day",a.getDate()),r.start.imply("month",a.getMonth()+1),r.start.imply("year",a.getFullYear())):n.start.isOnlyWeekdayComponent()&&Le(s,{day:-7})<a?(s=Le(s,{day:-7}),n.start.imply("day",s.getDate()),n.start.imply("month",s.getMonth()+1),n.start.imply("year",s.getFullYear())):r.start.isDateWithUnknownYear()&&Le(a,{year:1})>s?(a=Le(a,{year:1}),r.start.imply("year",a.getFullYear())):n.start.isDateWithUnknownYear()&&Le(s,{year:-1})<a?(s=Le(s,{year:-1}),n.start.imply("year",s.getFullYear())):[r,n]=[n,r]}const i=n.clone();return i.start=n.start,i.end=r.start,i.index=Math.min(n.index,r.index),n.index<r.index?i.text=n.text+t+r.text:i.text=r.text+t+n.text,i}}class hv extends sf{patternBetween(){return/^\s*(to|-|–|until|through|till)\s*$/i}}function af(e,t){const n=e.clone(),r=e.start,i=t.start;if(n.start=of(r,i),e.end!=null||t.end!=null){const s=e.end==null?e.start:e.end,a=t.end==null?t.start:t.end,o=of(s,a);if(e.end==null&&o.date().getTime()<n.start.date().getTime()){const l=new Date(o.date().getTime());l.setDate(l.getDate()+1),o.isCertain("day")?nn(o,l):vn(o,l)}n.end=o}return n}function of(e,t){const n=e.clone();return t.isCertain("hour")?(n.assign("hour",t.get("hour")),n.assign("minute",t.get("minute")),t.isCertain("second")?(n.assign("second",t.get("second")),t.isCertain("millisecond")?n.assign("millisecond",t.get("millisecond")):n.imply("millisecond",t.get("millisecond"))):(n.imply("second",t.get("second")),n.imply("millisecond",t.get("millisecond")))):(n.imply("hour",t.get("hour")),n.imply("minute",t.get("minute")),n.imply("second",t.get("second")),n.imply("millisecond",t.get("millisecond"))),t.isCertain("timezoneOffset")&&n.assign("timezoneOffset",t.get("timezoneOffset")),t.isCertain("meridiem")?n.assign("meridiem",t.get("meridiem")):t.get("meridiem")!=null&&n.get("meridiem")==null&&n.imply("meridiem",t.get("meridiem")),n.get("meridiem")==ye.PM&&n.get("hour")<12&&(t.isCertain("hour")?n.assign("hour",n.get("hour")+12):n.imply("hour",n.get("hour")+12)),n.addTags(e.tags()),n.addTags(t.tags()),n}class lf extends Jn{shouldMergeResults(t,n,r){return(n.start.isOnlyDate()&&r.start.isOnlyTime()||r.start.isOnlyDate()&&n.start.isOnlyTime())&&t.match(this.patternBetween())!=null}mergeResults(t,n,r){const i=n.start.isOnlyDate()?af(n,r):af(r,n);return i.index=n.index,i.text=n.text+t+r.text,i}}class uf extends lf{patternBetween(){return new RegExp("^\\s*(T|at|after|before|on|of|,|-|\\.|∙|:)?\\s*$")}}const pv=new RegExp("^\\s*,?\\s*\\(?([A-Z]{2,4})\\)?(?=\\W|$)","i");class mv{timezoneOverrides;constructor(t){this.timezoneOverrides=t}refine(t,n){const r=t.option.timezones??{};return n.forEach(i=>{const s=t.text.substring(i.index+i.text.length),a=pv.exec(s);if(!a)return;const o=a[1].toUpperCase(),l=i.start.date()??i.refDate??new Date,u={...this.timezoneOverrides,...r},c=qc(o,l,u);if(c==null)return;t.debug(()=>{console.log(`Extracting timezone: '${o}' into: ${c} for: ${i.start}`)});const f=i.start.get("timezoneOffset");f!==null&&c!=f&&(i.start.isCertain("timezoneOffset")||o!=a[1])||i.start.isOnlyDate()&&o!=a[1]||(i.text+=a[0],i.start.isCertain("timezoneOffset")||i.start.assign("timezoneOffset",c),i.end!=null&&!i.end.isCertain("timezoneOffset")&&i.end.assign("timezoneOffset",c))}),n}}const gv=new RegExp("^\\s*(?:\\(?(?:GMT|UTC)\\s?)?([+-])(\\d{1,2})(?::?(\\d{2}))?\\)?","i"),yv=1,bv=2,wv=3;class cf{refine(t,n){return n.forEach(function(r){if(r.start.isCertain("timezoneOffset"))return;const i=t.text.substring(r.index+r.text.length),s=gv.exec(i);if(!s)return;t.debug(()=>{console.log(`Extracting timezone: '${s[0]}' into : ${r}`)});const a=parseInt(s[bv]),o=parseInt(s[wv]||"0");let l=a*60+o;l>840||(s[yv]==="-"&&(l=-l),r.end!=null&&r.end.assign("timezoneOffset",l),r.start.assign("timezoneOffset",l),r.text+=s[0])}),n}}class Ea{refine(t,n){if(n.length<2)return n;const r=[];let i=n[0];for(let s=1;s<n.length;s++){const a=n[s];if(a.index>=i.index+i.text.length){r.push(i),i=a;continue}let o=null,l=null;a.text.length>i.text.length?(o=a,l=i):(o=i,l=a),t.debug(()=>{console.log(`${this.constructor.name} remove ${l} by ${o}`)}),i=o}return i!=null&&r.push(i),r}}class _v{refine(t,n){return t.option.forwardDate&&n.forEach(r=>{let i=t.reference.getDateWithAdjustedTimezone();if(r.start.isOnlyTime()&&t.reference.instant>r.start.date()){const s=t.reference.getDateWithAdjustedTimezone(),a=new Date(s);a.setDate(a.getDate()+1),vn(r.start,a),t.debug(()=>{console.log(`${this.constructor.name} adjusted ${r} time from the ref date (${s}) to the following day (${a})`)}),r.end&&r.end.isOnlyTime()&&(vn(r.end,a),r.start.date()>r.end.date()&&(a.setDate(a.getDate()+1),vn(r.end,a)))}if(r.start.isOnlyWeekdayComponent()&&i>r.start.date()){let s=r.start.get("weekday")-i.getDay();if(s<=0&&(s+=7),i=Le(i,{day:s}),vn(r.start,i),t.debug(()=>{console.log(`${this.constructor.name} adjusted ${r} weekday (${r.start})`)}),r.end&&r.end.isOnlyWeekdayComponent()){let a=r.end.get("weekday")-i.getDay();a<=0&&(a+=7),i=Le(i,{day:a}),vn(r.end,i),t.debug(()=>{console.log(`${this.constructor.name} adjusted ${r} weekday (${r.end})`)})}}if(r.start.isDateWithUnknownYear()&&i>r.start.date())for(let s=0;s<3&&i>r.start.date();s++)r.start.imply("year",r.start.get("year")+1),t.debug(()=>{console.log(`${this.constructor.name} adjusted ${r} year (${r.start})`)}),r.end&&!r.end.isCertain("year")&&(r.end.imply("year",r.end.get("year")+1),t.debug(()=>{console.log(`${this.constructor.name} adjusted ${r} month (${r.start})`)}))}),n}}class vv extends rf{strictMode;constructor(t){super(),this.strictMode=t}isValid(t,n){return n.text.replace(" ","").match(/^\d*(\.\d*)?$/)?(t.debug(()=>{console.log(`Removing unlikely result '${n.text}'`)}),!1):n.start.isValidDate()?n.end&&!n.end.isValidDate()?(t.debug(()=>{console.log(`Removing invalid result: ${n} (${n.end})`)}),!1):this.strictMode?this.isStrictModeValid(t,n):!0:(t.debug(()=>{console.log(`Removing invalid result: ${n} (${n.start})`)}),!1)}isStrictModeValid(t,n){return n.start.isOnlyWeekdayComponent()?(t.debug(()=>{console.log(`(Strict) Removing weekday only component: ${n} (${n.end})`)}),!1):!0}}const Tv=new RegExp("([0-9]{4})\\-([0-9]{1,2})\\-([0-9]{1,2})(?:T([0-9]{1,2}):([0-9]{1,2})(?::([0-9]{1,2})(?:\\.(\\d{1,4}))?)?(Z|([+-]\\d{2}):?(\\d{2})?)?)?(?=\\W|$)","i"),kv=1,Ev=2,Sv=3,ff=4,xv=5,df=6,hf=7,Pv=8,pf=9,mf=10;class Av extends ke{innerPattern(){return Tv}innerExtract(t,n){const r=t.createParsingComponents({year:parseInt(n[kv]),month:parseInt(n[Ev]),day:parseInt(n[Sv])});if(n[ff]!=null&&(r.assign("hour",parseInt(n[ff])),r.assign("minute",parseInt(n[xv])),n[df]!=null&&r.assign("second",parseInt(n[df])),n[hf]!=null&&r.assign("millisecond",parseInt(n[hf])),n[Pv]!=null)){let i=0;if(n[pf]){const s=parseInt(n[pf]);let a=0;n[mf]!=null&&(a=parseInt(n[mf])),i=s*60,i<0?i-=a:i+=a}r.assign("timezoneOffset",i)}return r.addTag("parser/ISOFormatParser")}}class Dv extends Jn{mergeResults(t,n,r){const i=r.clone();return i.index=n.index,i.text=n.text+t+i.text,i.start.assign("weekday",n.start.get("weekday")),i.end&&i.end.assign("weekday",n.start.get("weekday")),i}shouldMergeResults(t,n,r){return n.start.isOnlyWeekdayComponent()&&!n.start.isCertain("hour")&&r.start.isCertain("day")&&t.match(/^,?\s*$/)!=null}}function gf(e,t=!1){return e.parsers.unshift(new Av),e.refiners.unshift(new Dv),e.refiners.unshift(new cf),e.refiners.unshift(new Ea),e.refiners.push(new mv),e.refiners.push(new Ea),e.refiners.push(new _v),e.refiners.push(new vv(t)),e}function $v(e){const t=e.getDateWithAdjustedTimezone(),n=new Te(e,{});return nn(n,t),zc(n,t),n.assign("timezoneOffset",e.getTimezoneOffset()),n.addTag("casualReference/now"),n}function Cv(e){const t=e.getDateWithAdjustedTimezone(),n=new Te(e,{});return nn(n,t),ya(n,t),n.delete("meridiem"),n.addTag("casualReference/today"),n}function Ov(e){return Nv(e).addTag("casualReference/yesterday")}function Rv(e){return Sa(e,1).addTag("casualReference/tomorrow")}function Nv(e,t){return Sa(e,-1)}function Sa(e,t){const n=e.getDateWithAdjustedTimezone(),r=new Te(e,{}),i=new Date(n.getTime());return i.setDate(i.getDate()+t),nn(r,i),ya(r,i),r.delete("meridiem"),r}function Mv(e,t=22){const n=e.getDateWithAdjustedTimezone(),r=new Te(e,{});return nn(r,n),r.imply("hour",t),r.imply("meridiem",ye.PM),r.addTag("casualReference/tonight"),r}function Iv(e,t=20){const n=new Te(e,{});return n.imply("meridiem",ye.PM),n.imply("hour",t),n.addTag("casualReference/evening"),n}function Lv(e){const t=new Te(e,{});return e.getDateWithAdjustedTimezone().getHours()>2&&t.addDurationAsImplied({day:1}),t.assign("hour",0),t.imply("minute",0),t.imply("second",0),t.imply("millisecond",0),t.addTag("casualReference/midnight"),t}function Fv(e,t=6){const n=new Te(e,{});return n.imply("meridiem",ye.AM),n.imply("hour",t),n.imply("minute",0),n.imply("second",0),n.imply("millisecond",0),n.addTag("casualReference/morning"),n}function jv(e,t=15){const n=new Te(e,{});return n.imply("meridiem",ye.PM),n.imply("hour",t),n.imply("minute",0),n.imply("second",0),n.imply("millisecond",0),n.addTag("casualReference/afternoon"),n}function zv(e){const t=new Te(e,{});return t.imply("meridiem",ye.AM),t.assign("hour",12),t.imply("minute",0),t.imply("second",0),t.imply("millisecond",0),t.addTag("casualReference/noon"),t}const Uv=/(now|today|tonight|tomorrow|overmorrow|tmr|tmrw|yesterday|last\s*night)(?=\W|$)/i;class qv extends ke{innerPattern(t){return Uv}innerExtract(t,n){let r=t.refDate;const i=n[0].toLowerCase();let s=t.createParsingComponents();switch(i){case"now":s=$v(t.reference);break;case"today":s=Cv(t.reference);break;case"yesterday":s=Ov(t.reference);break;case"tomorrow":case"tmr":case"tmrw":s=Rv(t.reference);break;case"tonight":s=Mv(t.reference);break;case"overmorrow":s=Sa(t.reference,2);break;default:if(i.match(/last\s*night/)){if(r.getHours()>6){const a=new Date(r.getTime());a.setDate(a.getDate()-1),r=a}nn(s,r),s.imply("hour",0)}break}return s.addTag("parser/ENCasualDateParser"),s}}const Hv=/(?:this)?\s{0,3}(morning|afternoon|evening|night|midnight|midday|noon)(?=\W|$)/i;class Bv extends ke{innerPattern(){return Hv}innerExtract(t,n){let r=null;switch(n[1].toLowerCase()){case"afternoon":r=jv(t.reference);break;case"evening":case"night":r=Iv(t.reference);break;case"midnight":r=Lv(t.reference);break;case"morning":r=Fv(t.reference);break;case"noon":case"midday":r=zv(t.reference);break}return r&&r.addTag("parser/ENCasualTimeParser"),r}}function Vv(e,t,n){const r=e.getDateWithAdjustedTimezone(),i=Wv(r,t,n);let s=new Te(e);return s=s.addDurationAsImplied({day:i}),s.assign("weekday",t),s}function Wv(e,t,n){const r=e.getDay();switch(n){case"this":return xi(e,t);case"last":return yf(e,t);case"next":return r==Ee.SUNDAY?t==Ee.SUNDAY?7:t:r==Ee.SATURDAY?t==Ee.SATURDAY?7:t==Ee.SUNDAY?8:1+t:t<r&&t!=Ee.SUNDAY?xi(e,t):xi(e,t)+7}return Yv(e,t)}function Yv(e,t){const n=yf(e,t),r=xi(e,t);return r<-n?r:n}function xi(e,t){const n=e.getDay();let r=t-n;return r<0&&(r+=7),r}function yf(e,t){const n=e.getDay();let r=t-n;return r>=0&&(r-=7),r}const Gv=new RegExp(`(?:(?:\\,|\\(|\\()\\s*)?(?:on\\s*?)?(?:(this|last|past|next)\\s*)?(${xt(ba)}|weekend|weekday)(?:\\s*(?:\\,|\\)|\\)))?(?:\\s*(this|last|past|next)\\s*week)?(?=\\W|$)`,"i"),Kv=1,Zv=2,Jv=3;class Xv extends ke{innerPattern(){return Gv}innerExtract(t,n){const r=n[Kv],i=n[Jv];let s=r||i;s=s||"",s=s.toLowerCase();let a=null;s=="last"||s=="past"?a="last":s=="next"?a="next":s=="this"&&(a="this");const o=n[Zv].toLowerCase();let l;if(ba[o]!==void 0)l=ba[o];else if(o=="weekend")l=a=="last"?Ee.SUNDAY:Ee.SATURDAY;else if(o=="weekday"){const u=t.reference.getDateWithAdjustedTimezone().getDay();u==Ee.SUNDAY||u==Ee.SATURDAY?l=a=="last"?Ee.FRIDAY:Ee.MONDAY:(l=u-1,l=a=="last"?l-1:l+1,l=l%5+1)}else return null;return Vv(t.reference,l,a)}}const Qv=new RegExp(`(this|last|past|next|after\\s*this)\\s*(${xt(bi)})(?=\\s*)(?=\\W|$)`,"i"),eT=1,tT=2;class nT extends ke{innerPattern(){return Qv}innerExtract(t,n){const r=n[eT].toLowerCase(),i=n[tT].toLowerCase(),s=bi[i];if(r=="next"||r.startsWith("after")){const l={};return l[s]=1,Te.createRelativeFromReference(t.reference,l)}if(r=="last"||r=="past"){const l={};return l[s]=-1,Te.createRelativeFromReference(t.reference,l)}const a=t.createParsingComponents();let o=new Date(t.reference.instant.getTime());return i.match(/week/i)?(o.setDate(o.getDate()-o.getDay()),a.imply("day",o.getDate()),a.imply("month",o.getMonth()+1),a.imply("year",o.getFullYear())):i.match(/month/i)?(o.setDate(1),a.imply("day",o.getDate()),a.assign("year",o.getFullYear()),a.assign("month",o.getMonth()+1)):i.match(/year/i)&&(o.setDate(1),o.setMonth(0),a.imply("day",o.getDate()),a.imply("month",o.getMonth()+1),a.assign("year",o.getFullYear())),a}}const rT=new RegExp("([^\\d]|^)([0-3]{0,1}[0-9]{1})[\\/\\.\\-]([0-3]{0,1}[0-9]{1})(?:[\\/\\.\\-]([0-9]{4}|[0-9]{2}))?(\\W|$)","i"),iT=1,sT=5,bf=2,wf=3,xa=4;class aT{groupNumberMonth;groupNumberDay;constructor(t){this.groupNumberMonth=t?wf:bf,this.groupNumberDay=t?bf:wf}pattern(){return rT}extract(t,n){const r=n.index+n[iT].length,i=n.index+n[0].length-n[sT].length;if(r>0&&t.text.substring(0,r).match("\\d/?$")||i<t.text.length&&t.text.substring(i).match("^/?\\d"))return;const s=t.text.substring(r,i);if(s.match(/^\d\.\d$/)||s.match(/^\d\.\d{1,2}\.\d{1,2}\s*$/)||!n[xa]&&s.indexOf("/")<0)return;const a=t.createParsingResult(r,s);let o=parseInt(n[this.groupNumberMonth]),l=parseInt(n[this.groupNumberDay]);if((o<1||o>12)&&o>12)if(l>=1&&l<=12&&o<=31)[l,o]=[o,l];else return null;if(l<1||l>31)return null;if(a.start.assign("day",l),a.start.assign("month",o),n[xa]){const u=parseInt(n[xa]),c=Bc(u);a.start.assign("year",c)}else{const u=yi(t.refDate,l,o);a.start.imply("year",u)}return a.addTag("parser/SlashDateFormatParser")}}const oT=new RegExp(`(this|last|past|next|after|\\+|-)\\s*(${Zn})(?=\\W|$)`,"i"),lT=new RegExp(`(this|last|past|next|after|\\+|-)\\s*(${ki})(?=\\W|$)`,"i");class uT extends ke{allowAbbreviations;constructor(t=!0){super(),this.allowAbbreviations=t}innerPattern(){return this.allowAbbreviations?oT:lT}innerExtract(t,n){const r=n[1].toLowerCase();let i=kn(n[2]);if(!i)return null;switch(r){case"last":case"past":case"-":i=gi(i);break}return Te.createRelativeFromReference(t.reference,i)}}function cT(e){return e.text.match(/^[+-]/i)!=null}function _f(e){return e.text.match(/^-/i)!=null}class fT extends Jn{shouldMergeResults(t,n,r){return t.match(/^\s*$/i)?cT(r)||_f(r):!1}mergeResults(t,n,r,i){let s=kn(r.text);_f(r)&&(s=gi(s));const a=Te.createRelativeFromReference(rn.fromDate(n.start.date()),s);return new Tn(n.reference,n.index,`${n.text}${t}${r.text}`,a)}}function vf(e){return e.text.match(/\s+(before|from)$/i)!=null}function dT(e){return e.text.match(/\s+(after|since)$/i)!=null}class hT extends Jn{patternBetween(){return/^\s*$/i}shouldMergeResults(t,n,r){return!t.match(this.patternBetween())||!vf(n)&&!dT(n)?!1:!!r.start.get("day")&&!!r.start.get("month")&&!!r.start.get("year")}mergeResults(t,n,r){let i=kn(n.text);vf(n)&&(i=gi(i));const s=Te.createRelativeFromReference(rn.fromDate(r.start.date()),i);return new Tn(r.reference,n.index,`${n.text}${t}${r.text}`,s)}}const pT=new RegExp(`^\\s*(${vi})`,"i"),mT=1;class gT{refine(t,n){return n.forEach(function(r){if(!r.start.isDateWithUnknownYear())return;const i=t.text.substring(r.index+r.text.length),s=pT.exec(i);if(!s||s[0].trim().length<=3)return;t.debug(()=>{console.log(`Extracting year: '${s[0]}' into : ${r}`)});const a=Ti(s[mT]);r.end!=null&&r.end.assign("year",a),r.start.assign("year",a),r.text+=s[0]}),n}}class yT extends rf{constructor(){super()}isValid(t,n){const r=n.text.trim();return r===t.text.trim()?!0:r.toLowerCase()==="may"&&!t.text.substring(0,n.index).trim().match(/\b(in)$/i)?(t.debug(()=>{console.log(`Removing unlikely result: ${n}`)}),!1):r.toLowerCase().endsWith("the second")?(t.text.substring(n.index+n.text.length).trim().length>0&&t.debug(()=>{console.log(`Removing unlikely result: ${n}`)}),!1):!0}}class bT{createCasualConfiguration(t=!1){const n=this.createConfiguration(!1,t);return n.parsers.push(new qv),n.parsers.push(new Bv),n.parsers.push(new W_),n.parsers.push(new nT),n.parsers.push(new uT),n.refiners.push(new yT),n}createConfiguration(t=!0,n=!1){const r=gf({parsers:[new aT(n),new I_(t),new j_,new q_(n),new Xv,new tv,new sv(t),new lv(t),new dv(t)],refiners:[new uf]},t);return r.parsers.unshift(new J_(t)),r.refiners.unshift(new hT),r.refiners.unshift(new fT),r.refiners.unshift(new Ea),r.refiners.push(new uf),r.refiners.push(new gT),r.refiners.push(new hv),r}}class Xn{parsers;refiners;defaultConfig=new bT;constructor(t){t=t||this.defaultConfig.createCasualConfiguration(),this.parsers=[...t.parsers],this.refiners=[...t.refiners]}clone(){return new Xn({parsers:[...this.parsers],refiners:[...this.refiners]})}parseDate(t,n,r){const i=this.parse(t,n,r);return i.length>0?i[0].start.date():null}parse(t,n,r){const i=new wT(t,n,r);let s=[];return this.parsers.forEach(a=>{const o=Xn.executeParser(i,a);s=s.concat(o)}),s.sort((a,o)=>a.index-o.index),this.refiners.forEach(function(a){s=a.refine(i,s)}),s}static executeParser(t,n){const r=[],i=n.pattern(t),s=t.text;let a=t.text,o=i.exec(a);for(;o;){const l=o.index+s.length-a.length;o.index=l;const u=n.extract(t,o);if(!u){a=s.substring(o.index+1),o=i.exec(a);continue}let c=null;u instanceof Tn?c=u:u instanceof Te?(c=t.createParsingResult(o.index,o[0]),c.start=u):c=t.createParsingResult(o.index,o[0],u);const f=c.index,h=c.text;t.debug(()=>console.log(`${n.constructor.name} extracted (at index=${f}) '${h}'`)),r.push(c),a=s.substring(f+h.length),o=i.exec(a)}return r}}class wT{text;option;reference;refDate;constructor(t,n,r){this.text=t,this.option=r??{},this.reference=rn.fromInput(n,this.option.timezones),this.refDate=this.reference.instant}createParsingComponents(t){return t instanceof Te?t:new Te(this.reference,t)}createParsingResult(t,n,r,i){const s=typeof n=="string"?n:this.text.substring(t,n),a=r?this.createParsingComponents(r):null,o=i?this.createParsingComponents(i):null;return new Tn(this.reference,t,s,a,o)}debug(t){this.option.debug&&(this.option.debug instanceof Function?this.option.debug(t):this.option.debug.debug(t))}}const Ze={零:0,"〇":0,一:1,二:2,两:2,三:3,四:4,五:5,六:6,七:7,八:8,九:9,十:10},Pi={天:0,日:0,一:1,二:2,三:3,四:4,五:5,六:6};function Mt(e){let t=0;for(let n=0;n<e.length;n++){const r=e[n];r==="十"?t=t===0?Ze[r]:t*Ze[r]:t+=Ze[r]}return t}function _T(e){let t="";for(let n=0;n<e.length;n++){const r=e[n];t=t+Ze[r]}return parseInt(t)}const Pa=1,Tf=2,Aa=3;class vT extends ke{innerPattern(){return new RegExp("(\\d{2,4}|["+Object.keys(Ze).join("")+"]{4}|["+Object.keys(Ze).join("")+"]{2})?(?:\\s*)(?:年)?(?:[\\s|,|,]*)(\\d{1,2}|["+Object.keys(Ze).join("")+"]{1,3})(?:\\s*)(?:月)(?:\\s*)(\\d{1,2}|["+Object.keys(Ze).join("")+"]{1,3})?(?:\\s*)(?:日|号)?")}innerExtract(t,n){const r=t.createParsingResult(n.index,n[0]);let i=parseInt(n[Tf]);if(isNaN(i)&&(i=Mt(n[Tf])),r.start.assign("month",i),n[Aa]){let s=parseInt(n[Aa]);isNaN(s)&&(s=Mt(n[Aa])),r.start.assign("day",s)}else r.start.imply("day",t.refDate.getDate());if(n[Pa]){let s=parseInt(n[Pa]);isNaN(s)&&(s=_T(n[Pa])),r.start.assign("year",s)}else r.start.imply("year",t.refDate.getFullYear());return r}}const TT=new RegExp("(\\d+|["+Object.keys(Ze).join("")+"]+|半|几)(?:\\s*)(?:个)?(秒(?:钟)?|分钟|小时|钟|日|天|星期|礼拜|月|年)(?:(?:之|过)?后|(?:之)?内)","i"),Da=1,kT=2;class ET extends ke{innerPattern(){return TT}innerExtract(t,n){const r=t.createParsingResult(n.index,n[0]);let i=parseInt(n[Da]);if(isNaN(i)&&(i=Mt(n[Da])),isNaN(i)){const u=n[Da];if(u==="几")i=3;else if(u==="半")i=.5;else return null}const s={},o=n[kT][0];if(o.match(/[日天星礼月年]/)){o=="日"||o=="天"?s.day=i:o=="星"||o=="礼"?s.week=i:o=="月"?s.month=i:o=="年"&&(s.year=i);const u=Le(t.refDate,s);return r.start.assign("year",u.getFullYear()),r.start.assign("month",u.getMonth()+1),r.start.assign("day",u.getDate()),r}o=="秒"?s.second=i:o=="分"?s.minute=i:(o=="小"||o=="钟")&&(s.hour=i);const l=Le(t.refDate,s);return r.start.imply("year",l.getFullYear()),r.start.imply("month",l.getMonth()+1),r.start.imply("day",l.getDate()),r.start.assign("hour",l.getHours()),r.start.assign("minute",l.getMinutes()),r.start.assign("second",l.getSeconds()),r}}const ST=new RegExp("(?<prefix>上|下|这)(?:个)?(?:星期|礼拜|周)(?<weekday>"+Object.keys(Pi).join("|")+")");class xT extends ke{innerPattern(){return ST}innerExtract(t,n){const r=t.createParsingResult(n.index,n[0]),i=n.groups.weekday,s=Pi[i];if(s===void 0)return null;let a=null;const o=n.groups.prefix;o=="上"?a="last":o=="下"?a="next":o=="这"&&(a="this");const l=new Date(t.refDate.getTime());let u=!1;const c=l.getDay();if(a=="last"||a=="past")l.setDate(l.getDate()+(s-7-c)),u=!0;else if(a=="next")l.setDate(l.getDate()+(s+7-c)),u=!0;else if(a=="this")l.setDate(l.getDate()+(s-c));else{let f=s-c;Math.abs(f-7)<Math.abs(f)&&(f-=7),Math.abs(f+7)<Math.abs(f)&&(f+=7),l.setDate(l.getDate()+f)}return r.start.assign("weekday",s),u?(r.start.assign("day",l.getDate()),r.start.assign("month",l.getMonth()+1),r.start.assign("year",l.getFullYear())):(r.start.imply("day",l.getDate()),r.start.imply("month",l.getMonth()+1),r.start.imply("year",l.getFullYear())),r}}const PT=new RegExp("(?:从|自)?(?:(今|明|前|大前|后|大后|昨)(早|朝|晚)|(上(?:午)|早(?:上)|下(?:午)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨))|(今|明|前|大前|后|大后|昨)(?:日|天)(?:[\\s,,]*)(?:(上(?:午)|早(?:上)|下(?:午)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨)))?)?(?:[\\s,,]*)(?:(\\d+|["+Object.keys(Ze).join("")+"]+)(?:\\s*)(?:点|时|:|:)(?:\\s*)(\\d+|半|正|整|["+Object.keys(Ze).join("")+"]+)?(?:\\s*)(?:分|:|:)?(?:\\s*)(\\d+|["+Object.keys(Ze).join("")+"]+)?(?:\\s*)(?:秒)?)(?:\\s*(A.M.|P.M.|AM?|PM?))?","i"),AT=new RegExp("(?:^\\s*(?:到|至|\\-|\\–|\\~|\\〜)\\s*)(?:(今|明|前|大前|后|大后|昨)(早|朝|晚)|(上(?:午)|早(?:上)|下(?:午)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨))|(今|明|前|大前|后|大后|昨)(?:日|天)(?:[\\s,,]*)(?:(上(?:午)|早(?:上)|下(?:午)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨)))?)?(?:[\\s,,]*)(?:(\\d+|["+Object.keys(Ze).join("")+"]+)(?:\\s*)(?:点|时|:|:)(?:\\s*)(\\d+|半|正|整|["+Object.keys(Ze).join("")+"]+)?(?:\\s*)(?:分|:|:)?(?:\\s*)(\\d+|["+Object.keys(Ze).join("")+"]+)?(?:\\s*)(?:秒)?)(?:\\s*(A.M.|P.M.|AM?|PM?))?","i"),Ai=1,Di=2,$i=3,Ci=4,Oi=5,Ri=6,ht=7,Sn=8,Ni=9;class DT extends ke{innerPattern(){return PT}innerExtract(t,n){if(n.index>0&&t.text[n.index-1].match(/\w/))return null;const r=t.createParsingResult(n.index,n[0]),i=new Date(t.refDate.getTime());if(n[Ai]){const c=n[Ai];c=="明"?t.refDate.getHours()>1&&i.setDate(i.getDate()+1):c=="昨"?i.setDate(i.getDate()-1):c=="前"?i.setDate(i.getDate()-2):c=="大前"?i.setDate(i.getDate()-3):c=="后"?i.setDate(i.getDate()+2):c=="大后"&&i.setDate(i.getDate()+3),r.start.assign("day",i.getDate()),r.start.assign("month",i.getMonth()+1),r.start.assign("year",i.getFullYear())}else if(n[Ci]){const c=n[Ci];c=="明"?i.setDate(i.getDate()+1):c=="昨"?i.setDate(i.getDate()-1):c=="前"?i.setDate(i.getDate()-2):c=="大前"?i.setDate(i.getDate()-3):c=="后"?i.setDate(i.getDate()+2):c=="大后"&&i.setDate(i.getDate()+3),r.start.assign("day",i.getDate()),r.start.assign("month",i.getMonth()+1),r.start.assign("year",i.getFullYear())}else r.start.imply("day",i.getDate()),r.start.imply("month",i.getMonth()+1),r.start.imply("year",i.getFullYear());let s=0,a=0,o=-1;if(n[Sn]){let c=parseInt(n[Sn]);if(isNaN(c)&&(c=Mt(n[Sn])),c>=60)return null;r.start.assign("second",c)}if(s=parseInt(n[Ri]),isNaN(s)&&(s=Mt(n[Ri])),n[ht]?n[ht]=="半"?a=30:n[ht]=="正"||n[ht]=="整"?a=0:(a=parseInt(n[ht]),isNaN(a)&&(a=Mt(n[ht]))):s>100&&(a=s%100,s=Math.floor(s/100)),a>=60||s>24)return null;if(s>=12&&(o=1),n[Ni]){if(s>12)return null;const c=n[Ni][0].toLowerCase();c=="a"&&(o=0,s==12&&(s=0)),c=="p"&&(o=1,s!=12&&(s+=12))}else if(n[Di]){const f=n[Di][0];f=="早"?(o=0,s==12&&(s=0)):f=="晚"&&(o=1,s!=12&&(s+=12))}else if(n[$i]){const f=n[$i][0];f=="上"||f=="早"||f=="凌"?(o=0,s==12&&(s=0)):(f=="下"||f=="晚")&&(o=1,s!=12&&(s+=12))}else if(n[Oi]){const f=n[Oi][0];f=="上"||f=="早"||f=="凌"?(o=0,s==12&&(s=0)):(f=="下"||f=="晚")&&(o=1,s!=12&&(s+=12))}r.start.assign("hour",s),r.start.assign("minute",a),o>=0?r.start.assign("meridiem",o):s<12?r.start.imply("meridiem",0):r.start.imply("meridiem",1);const l=AT.exec(t.text.substring(r.index+r.text.length));if(!l)return r.text.match(/^\d+$/)?null:r;const u=new Date(i.getTime());if(r.end=t.createParsingComponents(),l[Ai]){const c=l[Ai];c=="明"?t.refDate.getHours()>1&&u.setDate(u.getDate()+1):c=="昨"?u.setDate(u.getDate()-1):c=="前"?u.setDate(u.getDate()-2):c=="大前"?u.setDate(u.getDate()-3):c=="后"?u.setDate(u.getDate()+2):c=="大后"&&u.setDate(u.getDate()+3),r.end.assign("day",u.getDate()),r.end.assign("month",u.getMonth()+1),r.end.assign("year",u.getFullYear())}else if(l[Ci]){const c=l[Ci];c=="明"?u.setDate(u.getDate()+1):c=="昨"?u.setDate(u.getDate()-1):c=="前"?u.setDate(u.getDate()-2):c=="大前"?u.setDate(u.getDate()-3):c=="后"?u.setDate(u.getDate()+2):c=="大后"&&u.setDate(u.getDate()+3),r.end.assign("day",u.getDate()),r.end.assign("month",u.getMonth()+1),r.end.assign("year",u.getFullYear())}else r.end.imply("day",u.getDate()),r.end.imply("month",u.getMonth()+1),r.end.imply("year",u.getFullYear());if(s=0,a=0,o=-1,l[Sn]){let c=parseInt(l[Sn]);if(isNaN(c)&&(c=Mt(l[Sn])),c>=60)return null;r.end.assign("second",c)}if(s=parseInt(l[Ri]),isNaN(s)&&(s=Mt(l[Ri])),l[ht]?l[ht]=="半"?a=30:l[ht]=="正"||l[ht]=="整"?a=0:(a=parseInt(l[ht]),isNaN(a)&&(a=Mt(l[ht]))):s>100&&(a=s%100,s=Math.floor(s/100)),a>=60||s>24)return null;if(s>=12&&(o=1),l[Ni]){if(s>12)return null;const c=l[Ni][0].toLowerCase();c=="a"&&(o=0,s==12&&(s=0)),c=="p"&&(o=1,s!=12&&(s+=12)),r.start.isCertain("meridiem")||(o==0?(r.start.imply("meridiem",0),r.start.get("hour")==12&&r.start.assign("hour",0)):(r.start.imply("meridiem",1),r.start.get("hour")!=12&&r.start.assign("hour",r.start.get("hour")+12)))}else if(l[Di]){const f=l[Di][0];f=="早"?(o=0,s==12&&(s=0)):f=="晚"&&(o=1,s!=12&&(s+=12))}else if(l[$i]){const f=l[$i][0];f=="上"||f=="早"||f=="凌"?(o=0,s==12&&(s=0)):(f=="下"||f=="晚")&&(o=1,s!=12&&(s+=12))}else if(l[Oi]){const f=l[Oi][0];f=="上"||f=="早"||f=="凌"?(o=0,s==12&&(s=0)):(f=="下"||f=="晚")&&(o=1,s!=12&&(s+=12))}return r.text=r.text+l[0],r.end.assign("hour",s),r.end.assign("minute",a),o>=0?r.end.assign("meridiem",o):r.start.isCertain("meridiem")&&r.start.get("meridiem")==1&&r.start.get("hour")>s?r.end.imply("meridiem",0):s>12&&r.end.imply("meridiem",1),r.end.date().getTime()<r.start.date().getTime()&&r.end.imply("day",r.end.get("day")+1),r}}const $T=new RegExp("(?:星期|礼拜|周)(?<weekday>"+Object.keys(Pi).join("|")+")");class CT extends ke{innerPattern(){return $T}innerExtract(t,n){const r=t.createParsingResult(n.index,n[0]),i=n.groups.weekday,s=Pi[i];if(s===void 0)return null;const a=new Date(t.refDate.getTime()),o=a.getDay();let l=s-o;return Math.abs(l-7)<Math.abs(l)&&(l-=7),Math.abs(l+7)<Math.abs(l)&&(l+=7),a.setDate(a.getDate()+l),r.start.assign("weekday",s),r.start.imply("day",a.getDate()),r.start.imply("month",a.getMonth()+1),r.start.imply("year",a.getFullYear()),r}}const OT=1,kf=2,RT=3,Ef=4,Sf=5,NT=6;class MT extends ke{innerPattern(t){return new RegExp("(而家|立(?:刻|即)|即刻)|(今|明|前|大前|後|大後|聽|昨|尋|琴)(早|朝|晚)|(上(?:午|晝)|朝(?:早)|早(?:上)|下(?:午|晝)|晏(?:晝)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨))|(今|明|前|大前|後|大後|聽|昨|尋|琴)(?:日|天)(?:[\\s|,|,]*)(?:(上(?:午|晝)|朝(?:早)|早(?:上)|下(?:午|晝)|晏(?:晝)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨)))?","i")}innerExtract(t,n){const r=n.index,i=t.createParsingResult(r,n[0]),s=t.refDate;let a=new Date(s.getTime());if(n[OT])i.start.imply("hour",s.getHours()),i.start.imply("minute",s.getMinutes()),i.start.imply("second",s.getSeconds()),i.start.imply("millisecond",s.getMilliseconds());else if(n[kf]){const o=n[kf],l=n[RT];o=="明"||o=="聽"?s.getHours()>1&&a.setDate(a.getDate()+1):o=="昨"||o=="尋"||o=="琴"?a.setDate(a.getDate()-1):o=="前"?a.setDate(a.getDate()-2):o=="大前"?a.setDate(a.getDate()-3):o=="後"?a.setDate(a.getDate()+2):o=="大後"&&a.setDate(a.getDate()+3),l=="早"||l=="朝"?i.start.imply("hour",6):l=="晚"&&(i.start.imply("hour",22),i.start.imply("meridiem",1))}else if(n[Ef]){const l=n[Ef][0];l=="早"||l=="朝"||l=="上"?i.start.imply("hour",6):l=="下"||l=="晏"?(i.start.imply("hour",15),i.start.imply("meridiem",1)):l=="中"?(i.start.imply("hour",12),i.start.imply("meridiem",1)):l=="夜"||l=="晚"?(i.start.imply("hour",22),i.start.imply("meridiem",1)):l=="凌"&&i.start.imply("hour",0)}else if(n[Sf]){const o=n[Sf];o=="明"||o=="聽"?s.getHours()>1&&a.setDate(a.getDate()+1):o=="昨"||o=="尋"||o=="琴"?a.setDate(a.getDate()-1):o=="前"?a.setDate(a.getDate()-2):o=="大前"?a.setDate(a.getDate()-3):o=="後"?a.setDate(a.getDate()+2):o=="大後"&&a.setDate(a.getDate()+3);const l=n[NT];if(l){const u=l[0];u=="早"||u=="朝"||u=="上"?i.start.imply("hour",6):u=="下"||u=="晏"?(i.start.imply("hour",15),i.start.imply("meridiem",1)):u=="中"?(i.start.imply("hour",12),i.start.imply("meridiem",1)):u=="夜"||u=="晚"?(i.start.imply("hour",22),i.start.imply("meridiem",1)):u=="凌"&&i.start.imply("hour",0)}}return i.start.assign("day",a.getDate()),i.start.assign("month",a.getMonth()+1),i.start.assign("year",a.getFullYear()),i}}const Je={零:0,一:1,二:2,兩:2,三:3,四:4,五:5,六:6,七:7,八:8,九:9,十:10,廿:20,卅:30},Mi={天:0,日:0,一:1,二:2,三:3,四:4,五:5,六:6};function It(e){let t=0;for(let n=0;n<e.length;n++){const r=e[n];r==="十"?t=t===0?Je[r]:t*Je[r]:t+=Je[r]}return t}function IT(e){let t="";for(let n=0;n<e.length;n++){const r=e[n];t=t+Je[r]}return parseInt(t)}const $a=1,xf=2,Ca=3;class LT extends ke{innerPattern(){return new RegExp("(\\d{2,4}|["+Object.keys(Je).join("")+"]{4}|["+Object.keys(Je).join("")+"]{2})?(?:\\s*)(?:年)?(?:[\\s|,|,]*)(\\d{1,2}|["+Object.keys(Je).join("")+"]{1,2})(?:\\s*)(?:月)(?:\\s*)(\\d{1,2}|["+Object.keys(Je).join("")+"]{1,2})?(?:\\s*)(?:日|號)?")}innerExtract(t,n){const r=t.createParsingResult(n.index,n[0]);let i=parseInt(n[xf]);if(isNaN(i)&&(i=It(n[xf])),r.start.assign("month",i),n[Ca]){let s=parseInt(n[Ca]);isNaN(s)&&(s=It(n[Ca])),r.start.assign("day",s)}else r.start.imply("day",t.refDate.getDate());if(n[$a]){let s=parseInt(n[$a]);isNaN(s)&&(s=IT(n[$a])),r.start.assign("year",s)}else r.start.imply("year",t.refDate.getFullYear());return r}}const FT=new RegExp("(\\d+|["+Object.keys(Je).join("")+"]+|半|幾)(?:\\s*)(?:個)?(秒(?:鐘)?|分鐘|小時|鐘|日|天|星期|禮拜|月|年)(?:(?:之|過)?後|(?:之)?內)","i"),Oa=1,jT=2;class zT extends ke{innerPattern(){return FT}innerExtract(t,n){const r=t.createParsingResult(n.index,n[0]);let i=parseInt(n[Oa]);if(isNaN(i)&&(i=It(n[Oa])),isNaN(i)){const u=n[Oa];if(u==="幾")i=3;else if(u==="半")i=.5;else return null}const s={},o=n[jT][0];if(o.match(/[日天星禮月年]/)){o=="日"||o=="天"?s.day=i:o=="星"||o=="禮"?s.week=i:o=="月"?s.month=i:o=="年"&&(s.year=i);const u=Le(t.refDate,s);return r.start.assign("year",u.getFullYear()),r.start.assign("month",u.getMonth()+1),r.start.assign("day",u.getDate()),r}o=="秒"?s.second=i:o=="分"?s.minute=i:(o=="小"||o=="鐘")&&(s.hour=i);const l=Le(t.refDate,s);return r.start.imply("year",l.getFullYear()),r.start.imply("month",l.getMonth()+1),r.start.imply("day",l.getDate()),r.start.assign("hour",l.getHours()),r.start.assign("minute",l.getMinutes()),r.start.assign("second",l.getSeconds()),r}}const UT=new RegExp("(?<prefix>上|今|下|這|呢)(?:個)?(?:星期|禮拜|週)(?<weekday>"+Object.keys(Mi).join("|")+")");class qT extends ke{innerPattern(){return UT}innerExtract(t,n){const r=t.createParsingResult(n.index,n[0]),i=n.groups.weekday,s=Mi[i];if(s===void 0)return null;let a=null;const o=n.groups.prefix;o=="上"?a="last":o=="下"?a="next":(o=="今"||o=="這"||o=="呢")&&(a="this");const l=new Date(t.refDate.getTime());let u=!1;const c=l.getDay();if(a=="last"||a=="past")l.setDate(l.getDate()+(s-7-c)),u=!0;else if(a=="next")l.setDate(l.getDate()+(s+7-c)),u=!0;else if(a=="this")l.setDate(l.getDate()+(s-c));else{let f=s-c;Math.abs(f-7)<Math.abs(f)&&(f-=7),Math.abs(f+7)<Math.abs(f)&&(f+=7),l.setDate(l.getDate()+f)}return r.start.assign("weekday",s),u?(r.start.assign("day",l.getDate()),r.start.assign("month",l.getMonth()+1),r.start.assign("year",l.getFullYear())):(r.start.imply("day",l.getDate()),r.start.imply("month",l.getMonth()+1),r.start.imply("year",l.getFullYear())),r}}const HT=new RegExp("(?:由|從|自)?(?:(今|明|前|大前|後|大後|聽|昨|尋|琴)(早|朝|晚)|(上(?:午|晝)|朝(?:早)|早(?:上)|下(?:午|晝)|晏(?:晝)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨))|(今|明|前|大前|後|大後|聽|昨|尋|琴)(?:日|天)(?:[\\s,,]*)(?:(上(?:午|晝)|朝(?:早)|早(?:上)|下(?:午|晝)|晏(?:晝)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨)))?)?(?:[\\s,,]*)(?:(\\d+|["+Object.keys(Je).join("")+"]+)(?:\\s*)(?:點|時|:|:)(?:\\s*)(\\d+|半|正|整|["+Object.keys(Je).join("")+"]+)?(?:\\s*)(?:分|:|:)?(?:\\s*)(\\d+|["+Object.keys(Je).join("")+"]+)?(?:\\s*)(?:秒)?)(?:\\s*(A.M.|P.M.|AM?|PM?))?","i"),BT=new RegExp("(?:^\\s*(?:到|至|\\-|\\–|\\~|\\〜)\\s*)(?:(今|明|前|大前|後|大後|聽|昨|尋|琴)(早|朝|晚)|(上(?:午|晝)|朝(?:早)|早(?:上)|下(?:午|晝)|晏(?:晝)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨))|(今|明|前|大前|後|大後|聽|昨|尋|琴)(?:日|天)(?:[\\s,,]*)(?:(上(?:午|晝)|朝(?:早)|早(?:上)|下(?:午|晝)|晏(?:晝)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨)))?)?(?:[\\s,,]*)(?:(\\d+|["+Object.keys(Je).join("")+"]+)(?:\\s*)(?:點|時|:|:)(?:\\s*)(\\d+|半|正|整|["+Object.keys(Je).join("")+"]+)?(?:\\s*)(?:分|:|:)?(?:\\s*)(\\d+|["+Object.keys(Je).join("")+"]+)?(?:\\s*)(?:秒)?)(?:\\s*(A.M.|P.M.|AM?|PM?))?","i"),Ii=1,Li=2,Fi=3,ji=4,zi=5,Ui=6,pt=7,xn=8,qi=9;class VT extends ke{innerPattern(){return HT}innerExtract(t,n){if(n.index>0&&t.text[n.index-1].match(/\w/))return null;const r=t.createParsingResult(n.index,n[0]),i=new Date(t.refDate.getTime());if(n[Ii]){const p=n[Ii];p=="明"||p=="聽"?t.refDate.getHours()>1&&i.setDate(i.getDate()+1):p=="昨"||p=="尋"||p=="琴"?i.setDate(i.getDate()-1):p=="前"?i.setDate(i.getDate()-2):p=="大前"?i.setDate(i.getDate()-3):p=="後"?i.setDate(i.getDate()+2):p=="大後"&&i.setDate(i.getDate()+3),r.start.assign("day",i.getDate()),r.start.assign("month",i.getMonth()+1),r.start.assign("year",i.getFullYear())}else if(n[ji]){const p=n[ji];p=="明"||p=="聽"?i.setDate(i.getDate()+1):p=="昨"||p=="尋"||p=="琴"?i.setDate(i.getDate()-1):p=="前"?i.setDate(i.getDate()-2):p=="大前"?i.setDate(i.getDate()-3):p=="後"?i.setDate(i.getDate()+2):p=="大後"&&i.setDate(i.getDate()+3),r.start.assign("day",i.getDate()),r.start.assign("month",i.getMonth()+1),r.start.assign("year",i.getFullYear())}else r.start.imply("day",i.getDate()),r.start.imply("month",i.getMonth()+1),r.start.imply("year",i.getFullYear());let s=0,a=0,o=-1;if(n[xn]){var l=parseInt(n[xn]);if(isNaN(l)&&(l=It(n[xn])),l>=60)return null;r.start.assign("second",l)}if(s=parseInt(n[Ui]),isNaN(s)&&(s=It(n[Ui])),n[pt]?n[pt]=="半"?a=30:n[pt]=="正"||n[pt]=="整"?a=0:(a=parseInt(n[pt]),isNaN(a)&&(a=It(n[pt]))):s>100&&(a=s%100,s=Math.floor(s/100)),a>=60||s>24)return null;if(s>=12&&(o=1),n[qi]){if(s>12)return null;var u=n[qi][0].toLowerCase();u=="a"&&(o=0,s==12&&(s=0)),u=="p"&&(o=1,s!=12&&(s+=12))}else if(n[Li]){var c=n[Li],f=c[0];f=="朝"||f=="早"?(o=0,s==12&&(s=0)):f=="晚"&&(o=1,s!=12&&(s+=12))}else if(n[Fi]){var h=n[Fi],d=h[0];d=="上"||d=="朝"||d=="早"||d=="凌"?(o=0,s==12&&(s=0)):(d=="下"||d=="晏"||d=="晚")&&(o=1,s!=12&&(s+=12))}else if(n[zi]){var g=n[zi],T=g[0];T=="上"||T=="朝"||T=="早"||T=="凌"?(o=0,s==12&&(s=0)):(T=="下"||T=="晏"||T=="晚")&&(o=1,s!=12&&(s+=12))}r.start.assign("hour",s),r.start.assign("minute",a),o>=0?r.start.assign("meridiem",o):s<12?r.start.imply("meridiem",0):r.start.imply("meridiem",1);const y=BT.exec(t.text.substring(r.index+r.text.length));if(!y)return r.text.match(/^\d+$/)?null:r;const m=new Date(i.getTime());if(r.end=t.createParsingComponents(),y[Ii]){const p=y[Ii];p=="明"||p=="聽"?t.refDate.getHours()>1&&m.setDate(m.getDate()+1):p=="昨"||p=="尋"||p=="琴"?m.setDate(m.getDate()-1):p=="前"?m.setDate(m.getDate()-2):p=="大前"?m.setDate(m.getDate()-3):p=="後"?m.setDate(m.getDate()+2):p=="大後"&&m.setDate(m.getDate()+3),r.end.assign("day",m.getDate()),r.end.assign("month",m.getMonth()+1),r.end.assign("year",m.getFullYear())}else if(y[ji]){const p=y[ji];p=="明"||p=="聽"?m.setDate(m.getDate()+1):p=="昨"||p=="尋"||p=="琴"?m.setDate(m.getDate()-1):p=="前"?m.setDate(m.getDate()-2):p=="大前"?m.setDate(m.getDate()-3):p=="後"?m.setDate(m.getDate()+2):p=="大後"&&m.setDate(m.getDate()+3),r.end.assign("day",m.getDate()),r.end.assign("month",m.getMonth()+1),r.end.assign("year",m.getFullYear())}else r.end.imply("day",m.getDate()),r.end.imply("month",m.getMonth()+1),r.end.imply("year",m.getFullYear());if(s=0,a=0,o=-1,y[xn]){let p=parseInt(y[xn]);if(isNaN(p)&&(p=It(y[xn])),p>=60)return null;r.end.assign("second",p)}if(s=parseInt(y[Ui]),isNaN(s)&&(s=It(y[Ui])),y[pt]?y[pt]=="半"?a=30:y[pt]=="正"||y[pt]=="整"?a=0:(a=parseInt(y[pt]),isNaN(a)&&(a=It(y[pt]))):s>100&&(a=s%100,s=Math.floor(s/100)),a>=60||s>24)return null;if(s>=12&&(o=1),y[qi]){if(s>12)return null;var u=y[qi][0].toLowerCase();u=="a"&&(o=0,s==12&&(s=0)),u=="p"&&(o=1,s!=12&&(s+=12)),r.start.isCertain("meridiem")||(o==0?(r.start.imply("meridiem",0),r.start.get("hour")==12&&r.start.assign("hour",0)):(r.start.imply("meridiem",1),r.start.get("hour")!=12&&r.start.assign("hour",r.start.get("hour")+12)))}else if(y[Li]){var f=y[Li][0];f=="朝"||f=="早"?(o=0,s==12&&(s=0)):f=="晚"&&(o=1,s!=12&&(s+=12))}else if(y[Fi]){var d=y[Fi][0];d=="上"||d=="朝"||d=="早"||d=="凌"?(o=0,s==12&&(s=0)):(d=="下"||d=="晏"||d=="晚")&&(o=1,s!=12&&(s+=12))}else if(y[zi]){var T=y[zi][0];T=="上"||T=="朝"||T=="早"||T=="凌"?(o=0,s==12&&(s=0)):(T=="下"||T=="晏"||T=="晚")&&(o=1,s!=12&&(s+=12))}return r.text=r.text+y[0],r.end.assign("hour",s),r.end.assign("minute",a),o>=0?r.end.assign("meridiem",o):r.start.isCertain("meridiem")&&r.start.get("meridiem")==1&&r.start.get("hour")>s?r.end.imply("meridiem",0):s>12&&r.end.imply("meridiem",1),r.end.date().getTime()<r.start.date().getTime()&&r.end.imply("day",r.end.get("day")+1),r}}const WT=new RegExp("(?:星期|禮拜|週)(?<weekday>"+Object.keys(Mi).join("|")+")");class YT extends ke{innerPattern(){return WT}innerExtract(t,n){const r=t.createParsingResult(n.index,n[0]),i=n.groups.weekday,s=Mi[i];if(s===void 0)return null;const a=new Date(t.refDate.getTime()),o=a.getDay();let l=s-o;return Math.abs(l-7)<Math.abs(l)&&(l-=7),Math.abs(l+7)<Math.abs(l)&&(l+=7),a.setDate(a.getDate()+l),r.start.assign("weekday",s),r.start.imply("day",a.getDate()),r.start.imply("month",a.getMonth()+1),r.start.imply("year",a.getFullYear()),r}}class GT extends sf{patternBetween(){return/^\s*(至|到|\-|\~|~|-|ー)\s*$/i}}class KT extends lf{patternBetween(){return/^\s*$/i}}const ZT=new Xn(XT());new Xn(Pf());function JT(e,t,n){return ZT.parseDate(e,t,n)}function XT(){const e=Pf();return e.parsers.unshift(new MT),e}function Pf(){const e=gf({parsers:[new LT,new vT,new qT,new xT,new YT,new CT,new VT,new DT,new zT,new ET],refiners:[new GT,new KT]});return e.refiners=e.refiners.filter(t=>!(t instanceof cf)),e}var Hi={exports:{}},QT=Hi.exports,Af;function ek(){return Af||(Af=1,(function(e,t){(function(n,r){e.exports=r()})(QT,(function(){var n=1e3,r=6e4,i=36e5,s="millisecond",a="second",o="minute",l="hour",u="day",c="week",f="month",h="quarter",d="year",g="date",T="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,p={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(H){var j=["th","st","nd","rd"],B=H%100;return"["+H+(j[(B-20)%10]||j[B]||j[0])+"]"}},b=function(H,j,B){var Z=String(H);return!Z||Z.length>=j?H:""+Array(j+1-Z.length).join(B)+H},S={s:b,z:function(H){var j=-H.utcOffset(),B=Math.abs(j),Z=Math.floor(B/60),q=B%60;return(j<=0?"+":"-")+b(Z,2,"0")+":"+b(q,2,"0")},m:function H(j,B){if(j.date()<B.date())return-H(B,j);var Z=12*(B.year()-j.year())+(B.month()-j.month()),q=j.clone().add(Z,f),ee=B-q<0,k=j.clone().add(Z+(ee?-1:1),f);return+(-(Z+(B-q)/(ee?q-k:k-q))||0)},a:function(H){return H<0?Math.ceil(H)||0:Math.floor(H)},p:function(H){return{M:f,y:d,w:c,d:u,D:g,h:l,m:o,s:a,ms:s,Q:h}[H]||String(H||"").toLowerCase().replace(/s$/,"")},u:function(H){return H===void 0}},v="en",w={};w[v]=p;var x="$isDayjsObject",N=function(H){return H instanceof U||!(!H||!H[x])},F=function H(j,B,Z){var q;if(!j)return v;if(typeof j=="string"){var ee=j.toLowerCase();w[ee]&&(q=ee),B&&(w[ee]=B,q=ee);var k=j.split("-");if(!q&&k.length>1)return H(k[0])}else{var D=j.name;w[D]=j,q=D}return!Z&&q&&(v=q),q||!Z&&v},A=function(H,j){if(N(H))return H.clone();var B=typeof j=="object"?j:{};return B.date=H,B.args=arguments,new U(B)},O=S;O.l=F,O.i=N,O.w=function(H,j){return A(H,{locale:j.$L,utc:j.$u,x:j.$x,$offset:j.$offset})};var U=(function(){function H(B){this.$L=F(B.locale,null,!0),this.parse(B),this.$x=this.$x||B.x||{},this[x]=!0}var j=H.prototype;return j.parse=function(B){this.$d=(function(Z){var q=Z.date,ee=Z.utc;if(q===null)return new Date(NaN);if(O.u(q))return new Date;if(q instanceof Date)return new Date(q);if(typeof q=="string"&&!/Z$/i.test(q)){var k=q.match(y);if(k){var D=k[2]-1||0,I=(k[7]||"0").substring(0,3);return ee?new Date(Date.UTC(k[1],D,k[3]||1,k[4]||0,k[5]||0,k[6]||0,I)):new Date(k[1],D,k[3]||1,k[4]||0,k[5]||0,k[6]||0,I)}}return new Date(q)})(B),this.init()},j.init=function(){var B=this.$d;this.$y=B.getFullYear(),this.$M=B.getMonth(),this.$D=B.getDate(),this.$W=B.getDay(),this.$H=B.getHours(),this.$m=B.getMinutes(),this.$s=B.getSeconds(),this.$ms=B.getMilliseconds()},j.$utils=function(){return O},j.isValid=function(){return this.$d.toString()!==T},j.isSame=function(B,Z){var q=A(B);return this.startOf(Z)<=q&&q<=this.endOf(Z)},j.isAfter=function(B,Z){return A(B)<this.startOf(Z)},j.isBefore=function(B,Z){return this.endOf(Z)<A(B)},j.$g=function(B,Z,q){return O.u(B)?this[Z]:this.set(q,B)},j.unix=function(){return Math.floor(this.valueOf()/1e3)},j.valueOf=function(){return this.$d.getTime()},j.startOf=function(B,Z){var q=this,ee=!!O.u(Z)||Z,k=O.p(B),D=function(ae,ne){var C=O.w(q.$u?Date.UTC(q.$y,ne,ae):new Date(q.$y,ne,ae),q);return ee?C:C.endOf(u)},I=function(ae,ne){return O.w(q.toDate()[ae].apply(q.toDate("s"),(ee?[0,0,0,0]:[23,59,59,999]).slice(ne)),q)},_=this.$W,E=this.$M,P=this.$D,M="set"+(this.$u?"UTC":"");switch(k){case d:return ee?D(1,0):D(31,11);case f:return ee?D(1,E):D(0,E+1);case c:var X=this.$locale().weekStart||0,J=(_<X?_+7:_)-X;return D(ee?P-J:P+(6-J),E);case u:case g:return I(M+"Hours",0);case l:return I(M+"Minutes",1);case o:return I(M+"Seconds",2);case a:return I(M+"Milliseconds",3);default:return this.clone()}},j.endOf=function(B){return this.startOf(B,!1)},j.$set=function(B,Z){var q,ee=O.p(B),k="set"+(this.$u?"UTC":""),D=(q={},q[u]=k+"Date",q[g]=k+"Date",q[f]=k+"Month",q[d]=k+"FullYear",q[l]=k+"Hours",q[o]=k+"Minutes",q[a]=k+"Seconds",q[s]=k+"Milliseconds",q)[ee],I=ee===u?this.$D+(Z-this.$W):Z;if(ee===f||ee===d){var _=this.clone().set(g,1);_.$d[D](I),_.init(),this.$d=_.set(g,Math.min(this.$D,_.daysInMonth())).$d}else D&&this.$d[D](I);return this.init(),this},j.set=function(B,Z){return this.clone().$set(B,Z)},j.get=function(B){return this[O.p(B)]()},j.add=function(B,Z){var q,ee=this;B=Number(B);var k=O.p(Z),D=function(E){var P=A(ee);return O.w(P.date(P.date()+Math.round(E*B)),ee)};if(k===f)return this.set(f,this.$M+B);if(k===d)return this.set(d,this.$y+B);if(k===u)return D(1);if(k===c)return D(7);var I=(q={},q[o]=r,q[l]=i,q[a]=n,q)[k]||1,_=this.$d.getTime()+B*I;return O.w(_,this)},j.subtract=function(B,Z){return this.add(-1*B,Z)},j.format=function(B){var Z=this,q=this.$locale();if(!this.isValid())return q.invalidDate||T;var ee=B||"YYYY-MM-DDTHH:mm:ssZ",k=O.z(this),D=this.$H,I=this.$m,_=this.$M,E=q.weekdays,P=q.months,M=q.meridiem,X=function(ne,C,R,z){return ne&&(ne[C]||ne(Z,ee))||R[C].slice(0,z)},J=function(ne){return O.s(D%12||12,ne,"0")},ae=M||function(ne,C,R){var z=ne<12?"AM":"PM";return R?z.toLowerCase():z};return ee.replace(m,(function(ne,C){return C||(function(R){switch(R){case"YY":return String(Z.$y).slice(-2);case"YYYY":return O.s(Z.$y,4,"0");case"M":return _+1;case"MM":return O.s(_+1,2,"0");case"MMM":return X(q.monthsShort,_,P,3);case"MMMM":return X(P,_);case"D":return Z.$D;case"DD":return O.s(Z.$D,2,"0");case"d":return String(Z.$W);case"dd":return X(q.weekdaysMin,Z.$W,E,2);case"ddd":return X(q.weekdaysShort,Z.$W,E,3);case"dddd":return E[Z.$W];case"H":return String(D);case"HH":return O.s(D,2,"0");case"h":return J(1);case"hh":return J(2);case"a":return ae(D,I,!0);case"A":return ae(D,I,!1);case"m":return String(I);case"mm":return O.s(I,2,"0");case"s":return String(Z.$s);case"ss":return O.s(Z.$s,2,"0");case"SSS":return O.s(Z.$ms,3,"0");case"Z":return k}return null})(ne)||k.replace(":","")}))},j.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},j.diff=function(B,Z,q){var ee,k=this,D=O.p(Z),I=A(B),_=(I.utcOffset()-this.utcOffset())*r,E=this-I,P=function(){return O.m(k,I)};switch(D){case d:ee=P()/12;break;case f:ee=P();break;case h:ee=P()/3;break;case c:ee=(E-_)/6048e5;break;case u:ee=(E-_)/864e5;break;case l:ee=E/i;break;case o:ee=E/r;break;case a:ee=E/n;break;default:ee=E}return q?ee:O.a(ee)},j.daysInMonth=function(){return this.endOf(f).$D},j.$locale=function(){return w[this.$L]},j.locale=function(B,Z){if(!B)return this.$L;var q=this.clone(),ee=F(B,Z,!0);return ee&&(q.$L=ee),q},j.clone=function(){return O.w(this.$d,this)},j.toDate=function(){return new Date(this.valueOf())},j.toJSON=function(){return this.isValid()?this.toISOString():null},j.toISOString=function(){return this.$d.toISOString()},j.toString=function(){return this.$d.toUTCString()},H})(),K=U.prototype;return A.prototype=K,[["$ms",s],["$s",a],["$m",o],["$H",l],["$W",u],["$M",f],["$y",d],["$D",g]].forEach((function(H){K[H[1]]=function(j){return this.$g(j,H[0],H[1])}})),A.extend=function(H,j){return H.$i||(H(j,U,A),H.$i=!0),A},A.locale=F,A.isDayjs=N,A.unix=function(H){return A(1e3*H)},A.en=w[v],A.Ls=w,A.p={},A}))})(Hi)),Hi.exports}var tk=ek();const Bi=er(tk);var Vi={exports:{}},nk=Vi.exports,Df;function rk(){return Df||(Df=1,(function(e,t){(function(n,r){e.exports=r()})(nk,(function(){var n="day";return function(r,i,s){var a=function(u){return u.add(4-u.isoWeekday(),n)},o=i.prototype;o.isoWeekYear=function(){return a(this).year()},o.isoWeek=function(u){if(!this.$utils().u(u))return this.add(7*(u-this.isoWeek()),n);var c,f,h,d,g=a(this),T=(c=this.isoWeekYear(),f=this.$u,h=(f?s.utc:s)().year(c).startOf("year"),d=4-h.isoWeekday(),h.isoWeekday()>4&&(d+=7),h.add(d,n));return g.diff(T,"week")+1},o.isoWeekday=function(u){return this.$utils().u(u)?this.day()||7:this.day(this.day()%7?u:u-7)};var l=o.startOf;o.startOf=function(u,c){var f=this.$utils(),h=!!f.u(c)||c;return f.p(u)==="isoweek"?h?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):l.bind(this)(u,c)}}}))})(Vi)),Vi.exports}var ik=rk();const sk=er(ik);Bi.extend(sk);function ak(){return Bi().startOf("isoWeek").toDate()}const Ra=/大*后天/g;function ok(e){if(!Ra.test(e))return e;const t=Bi();return Ra.lastIndex=0,e.replace(Ra,n=>{const i=2+(n.length-2);return t.add(i,"day").format("YYYY年MM月DD日")})}function lk(e){const t=ok(e),n=/(?:本|这|上|下)?(?:周|星期)/.test(t),r=JT(t,{instant:n?ak():new Date});return r?Bi(r).format("YYYY-MM-DD HH:mm:ss"):"无法解析,请输入具体时间"}const uk={parse_relative_date:{def:{type:"function",function:{name:"parse_relative_date",description:"把相对时间转成绝对时间",parameters:{type:"object",properties:{input:{type:"string",description:"相对时间"}},required:["input"]}}},handler:e=>lk(e.input)}};class ck extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}),this.shadowRoot&&this.shadowRoot.appendChild(jc.content.cloneNode(!0))}connectedCallback(){this.shadowRoot&&S_(this.shadowRoot)}}customElements.define("ai-chat-panel",ck);class fk{on=ga.on;pushMessage=at.pushMessage;pushMessages=at.pushMessages;pushLoadingMessage=at.pushLoadingMessage;updateLoadingMessageReasoningContent=at.updateLoadingMessageReasoningContent;updateLoadingMessageContent=at.updateLoadingMessageContent;finishLoadingMessage=at.finishLoadingMessage;setUserInputValue=Ut.setValue;constructor(t){const{container:n}=t;if(!n)throw new Error("未提供有效的 container");const r=document.createElement("ai-chat-panel");n.appendChild(r)}}$e.AIChatPanel=fk,$e.Agent=w_,$e.tools=uk,Object.defineProperty($e,Symbol.toStringTag,{value:"Module"})}));
426
+ reference: ${JSON.stringify(this.reference)}]`}date(){let e=this.dateWithoutTimezoneAdjustment(),t=this.reference.getSystemTimezoneAdjustmentMinute(e,this.get(`timezoneOffset`));return new Date(e.getTime()+t*6e4)}addTag(e){return this._tags.add(e),this}addTags(e){for(let t of e)this._tags.add(t);return this}tags(){return new Set(this._tags)}dateWithoutTimezoneAdjustment(){let e=new Date(this.get(`year`),this.get(`month`)-1,this.get(`day`),this.get(`hour`),this.get(`minute`),this.get(`second`),this.get(`millisecond`));return e.setFullYear(this.get(`year`)),e}},xM=class e{refDate;index;text;reference;start;end;constructor(e,t,n,r,i){this.reference=e,this.refDate=e.instant,this.index=t,this.text=n,this.start=r||new bM(e),this.end=i}clone(){let t=new e(this.reference,this.index,this.text);return t.start=this.start?this.start.clone():null,t.end=this.end?this.end.clone():null,t}date(){return this.start.date()}addTag(e){return this.start.addTag(e),this.end&&this.end.addTag(e),this}addTags(e){return this.start.addTags(e),this.end&&this.end.addTags(e),this}tags(){let e=new Set(this.start.tags());if(this.end)for(let t of this.end.tags())e.add(t);return e}toString(){let e=Array.from(this.tags()).sort();return`[ParsingResult {index: ${this.index}, text: '${this.text}', tags: ${JSON.stringify(e)} ...}]`}};function SM(e,t,n=`\\s{0,5},?\\s{0,5}`){let r=t.replace(/\((?!\?)/g,`(?:`);return`${e}${r}(?:${n}${r}){0,10}`}function CM(e){let t;return t=e instanceof Array?[...e]:e instanceof Map?Array.from(e.keys()):Object.keys(e),t}function wM(e){return`(?:${CM(e).sort((e,t)=>t.length-e.length).join(`|`).replace(/\./g,`\\.`)})`}function TM(e){return e<100&&(e>50?e+=1900:e+=2e3),e}function EM(e,t,n){let r=new Date(e);r.setMonth(n-1),r.setDate(t);let i=_M(r,{year:1}),a=_M(r,{year:-1});return Math.abs(i.getTime()-e.getTime())<Math.abs(r.getTime()-e.getTime())?r=i:Math.abs(a.getTime()-e.getTime())<Math.abs(r.getTime()-e.getTime())&&(r=a),r.getFullYear()}var DM={sunday:0,sun:0,"sun.":0,monday:1,mon:1,"mon.":1,tuesday:2,tue:2,"tue.":2,wednesday:3,wed:3,"wed.":3,thursday:4,thurs:4,"thurs.":4,thur:4,"thur.":4,thu:4,"thu.":4,friday:5,fri:5,"fri.":5,saturday:6,sat:6,"sat.":6},OM={january:1,february:2,march:3,april:4,may:5,june:6,july:7,august:8,september:9,october:10,november:11,december:12},kM={...OM,jan:1,"jan.":1,feb:2,"feb.":2,mar:3,"mar.":3,apr:4,"apr.":4,jun:6,"jun.":6,jul:7,"jul.":7,aug:8,"aug.":8,sep:9,"sep.":9,sept:9,"sept.":9,oct:10,"oct.":10,nov:11,"nov.":11,dec:12,"dec.":12},AM={one:1,two:2,three:3,four:4,five:5,six:6,seven:7,eight:8,nine:9,ten:10,eleven:11,twelve:12},jM={first:1,second:2,third:3,fourth:4,fifth:5,sixth:6,seventh:7,eighth:8,ninth:9,tenth:10,eleventh:11,twelfth:12,thirteenth:13,fourteenth:14,fifteenth:15,sixteenth:16,seventeenth:17,eighteenth:18,nineteenth:19,twentieth:20,"twenty first":21,"twenty-first":21,"twenty second":22,"twenty-second":22,"twenty third":23,"twenty-third":23,"twenty fourth":24,"twenty-fourth":24,"twenty fifth":25,"twenty-fifth":25,"twenty sixth":26,"twenty-sixth":26,"twenty seventh":27,"twenty-seventh":27,"twenty eighth":28,"twenty-eighth":28,"twenty ninth":29,"twenty-ninth":29,thirtieth:30,"thirty first":31,"thirty-first":31},MM={second:`second`,seconds:`second`,minute:`minute`,minutes:`minute`,hour:`hour`,hours:`hour`,day:`day`,days:`day`,week:`week`,weeks:`week`,month:`month`,months:`month`,quarter:`quarter`,quarters:`quarter`,year:`year`,years:`year`},NM={s:`second`,sec:`second`,second:`second`,seconds:`second`,m:`minute`,min:`minute`,mins:`minute`,minute:`minute`,minutes:`minute`,h:`hour`,hr:`hour`,hrs:`hour`,hour:`hour`,hours:`hour`,d:`day`,day:`day`,days:`day`,w:`week`,week:`week`,weeks:`week`,mo:`month`,mon:`month`,mos:`month`,month:`month`,months:`month`,qtr:`quarter`,quarter:`quarter`,quarters:`quarter`,y:`year`,yr:`year`,year:`year`,years:`year`,...MM},PM=`(?:${wM(AM)}|[0-9]+|[0-9]+\\.[0-9]+|half(?:\\s{0,2}an?)?|an?\\b(?:\\s{0,2}few)?|few|several|the|a?\\s{0,2}couple\\s{0,2}(?:of)?)`;function FM(e){let t=e.toLowerCase();return AM[t]===void 0?t===`a`||t===`an`||t==`the`?1:t.match(/few/)?3:t.match(/half/)?.5:t.match(/couple/)?2:t.match(/several/)?7:parseFloat(t):AM[t]}var IM=`(?:${wM(jM)}|[0-9]{1,2}(?:st|nd|rd|th)?)`;function LM(e){let t=e.toLowerCase();return jM[t]===void 0?(t=t.replace(/(?:st|nd|rd|th)$/i,``),parseInt(t)):jM[t]}var RM=`(?:[1-9][0-9]{0,3}\\s{0,2}(?:BE|AD|BC|BCE|CE)|[1-9][0-9]{3}|[5-9][0-9]|2[0-5])`;function zM(e){return/BE/i.test(e)?(e=e.replace(/BE/i,``),parseInt(e)-543):/BCE?/i.test(e)?(e=e.replace(/BCE?/i,``),-parseInt(e)):/(AD|CE)/i.test(e)?(e=e.replace(/(AD|CE)/i,``),parseInt(e)):TM(parseInt(e))}var BM=`(${PM})\\s{0,3}(${wM(NM)})`,VM=new RegExp(BM,`i`),HM=`(${PM})\\s{0,3}(${wM(MM)})`,UM=`\\s{0,5},?(?:\\s*and)?\\s{0,5}`,WM=SM(`(?:(?:about|around)\\s{0,3})?`,BM,UM),GM=SM(`(?:(?:about|around)\\s{0,3})?`,HM,UM);function KM(e){let t={},n=e,r=VM.exec(n);for(;r;)qM(t,r),n=n.substring(r[0].length).trim(),r=VM.exec(n);return Object.keys(t).length==0?null:t}function qM(e,t){if(t[0].match(/^[a-zA-Z]+$/))return;let n=FM(t[1]),r=NM[t[2].toLowerCase()];e[r]=n}var JM=class{innerPatternHasChange(e,t){return this.innerPattern(e)!==t}patternLeftBoundary(){return`(\\W|^)`}cachedInnerPattern=null;cachedPattern=null;pattern(e){return this.cachedInnerPattern&&!this.innerPatternHasChange(e,this.cachedInnerPattern)?this.cachedPattern:(this.cachedInnerPattern=this.innerPattern(e),this.cachedPattern=RegExp(`${this.patternLeftBoundary()}${this.cachedInnerPattern.source}`,this.cachedInnerPattern.flags),this.cachedPattern)}extract(e,t){let n=t[1]??``;t.index+=n.length,t[0]=t[0].substring(n.length);for(let e=2;e<t.length;e++)t[e-1]=t[e];return this.innerExtract(e,t)}},YM=RegExp(`(?:(?:within|in|for)\\s*)?(?:(?:about|around|roughly|approximately|just)\\s*(?:~\\s*)?)?(${WM})(?=\\W|$)`,`i`),XM=RegExp(`(?:within|in|for)\\s*(?:(?:about|around|roughly|approximately|just)\\s*(?:~\\s*)?)?(${WM})(?=\\W|$)`,`i`),ZM=RegExp(`(?:within|in|for)\\s*(?:(?:about|around|roughly|approximately|just)\\s*(?:~\\s*)?)?(${GM})(?=\\W|$)`,`i`),QM=class extends JM{strictMode;constructor(e){super(),this.strictMode=e}innerPattern(e){return this.strictMode?ZM:e.option.forwardDate?YM:XM}innerExtract(e,t){if(t[0].match(/^for\s*the\s*\w+/))return null;let n=KM(t[1]);return n?bM.createRelativeFromReference(e.reference,n):null}},$M=RegExp(`(?:on\\s{0,3})?(${IM})(?:\\s{0,3}(?:to|\\-|\\–|until|through|till)?\\s{0,3}(${IM}))?(?:-|/|\\s{0,3}(?:of)?\\s{0,3})(${wM(kM)})(?:(?:-|/|,?\\s{0,3})(${RM}(?!\\w)))?(?=\\W|\$)`,`i`),eN=1,tN=2,nN=3,rN=4,iN=class extends JM{innerPattern(){return $M}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),r=kM[t[nN].toLowerCase()],i=LM(t[eN]);if(i>31)return t.index+=t[eN].length,null;if(n.start.assign(`month`,r),n.start.assign(`day`,i),t[rN]){let e=zM(t[rN]);n.start.assign(`year`,e)}else{let t=EM(e.refDate,i,r);n.start.imply(`year`,t)}if(t[tN]){let e=LM(t[tN]);n.end=n.start.clone(),n.end.assign(`day`,e)}return n}},aN=RegExp(`(${wM(kM)})(?:-|/|\\s*,?\\s*)(${IM})(?!\\s*(?:am|pm))\\s*(?:(?:to|\\-)\\s*(${IM})\\s*)?(?:(?:-|/|\\s*,\\s*|\\s+)(${RM}))?(?=\\W|\$)(?!\\:\\d)`,`i`),oN=1,sN=2,cN=3,lN=4,uN=class extends JM{shouldSkipYearLikeDate;constructor(e){super(),this.shouldSkipYearLikeDate=e}innerPattern(){return aN}innerExtract(e,t){let n=kM[t[oN].toLowerCase()],r=LM(t[sN]);if(r>31||this.shouldSkipYearLikeDate&&!t[cN]&&!t[lN]&&t[sN].match(/^2[0-5]$/))return null;let i=e.createParsingComponents({day:r,month:n}).addTag(`parser/ENMonthNameMiddleEndianParser`);if(t[lN]){let e=zM(t[lN]);i.assign(`year`,e)}else{let t=EM(e.refDate,r,n);i.imply(`year`,t)}if(!t[cN])return i;let a=LM(t[cN]),o=e.createParsingResult(t.index,t[0]);return o.start=i,o.end=i.clone(),o.end.assign(`day`,a),o}},dN=RegExp(`((?:in)\\s*)?(${wM(kM)})\\s*(?:(?:,|-|of)?\\s*(${RM})?)?(?=[^\\s\\w]|\\s+[^0-9]|\\s+\$|\$)`,`i`),fN=1,pN=2,mN=3,hN=class extends JM{innerPattern(){return dN}innerExtract(e,t){let n=t[pN].toLowerCase();if(t[0].length<=3&&!OM[n])return null;let r=e.createParsingResult(t.index+(t[fN]||``).length,t.index+t[0].length);r.start.imply(`day`,1),r.start.addTag(`parser/ENMonthNameParser`);let i=kM[n];if(r.start.assign(`month`,i),t[mN]){let e=zM(t[mN]);r.start.assign(`year`,e)}else{let t=EM(e.refDate,1,i);r.start.imply(`year`,t)}return r}},gN=RegExp(`([0-9]{4})[-\\.\\/\\s](?:(${wM(kM)})|([0-9]{1,2}))[-\\.\\/\\s]([0-9]{1,2})(?=\\W|\$)`,`i`),_N=1,vN=2,yN=3,bN=4,xN=class extends JM{strictMonthDateOrder;constructor(e){super(),this.strictMonthDateOrder=e}innerPattern(){return gN}innerExtract(e,t){let n=parseInt(t[_N]),r=parseInt(t[bN]),i=t[yN]?parseInt(t[yN]):kM[t[vN].toLowerCase()];if(i<1||i>12){if(this.strictMonthDateOrder)return null;r>=1&&r<=12&&([i,r]=[r,i])}return r<1||r>31?null:{day:r,month:i,year:n}}},SN=RegExp(`([0-9]|0[1-9]|1[012])/([0-9]{4})`,`i`),CN=1,wN=2,TN=class extends JM{innerPattern(){return SN}innerExtract(e,t){let n=parseInt(t[wN]),r=parseInt(t[CN]);return e.createParsingComponents().imply(`day`,1).assign(`month`,r).assign(`year`,n)}};function EN(e,t,n,r){return RegExp(`${e}${t}(\\d{1,4})(?:(?:\\.|:|:)(\\d{1,2})(?:(?::|:)(\\d{2})(?:\\.(\\d{1,6}))?)?)?(?:\\s*(a\\.m\\.|p\\.m\\.|am?|pm?))?${n}`,r)}function DN(e,t){return RegExp(`^(${e})(\\d{1,4})(?:(?:\\.|\\:|\\:)(\\d{1,2})(?:(?:\\.|\\:|\\:)(\\d{1,2})(?:\\.(\\d{1,6}))?)?)?(?:\\s*(a\\.m\\.|p\\.m\\.|am?|pm?))?${t}`,`i`)}var ON=2,kN=3,AN=4,jN=5,MN=6,NN=class{strictMode;constructor(e=!1){this.strictMode=e}patternFlags(){return`i`}primaryPatternLeftBoundary(){return`(^|\\s|T|\\b)`}primarySuffix(){return`(?!/)(?=\\W|$)`}followingSuffix(){return`(?!/)(?=\\W|$)`}pattern(e){return this.getPrimaryTimePatternThroughCache()}extract(e,t){let n=this.extractPrimaryTimeComponents(e,t);if(!n)return t[0].match(/^\d{4}/)?(t.index+=4,null):(t.index+=t[0].length,null);let r=t.index+t[1].length,i=t[0].substring(t[1].length),a=e.createParsingResult(r,i,n);t.index+=t[0].length;let o=e.text.substring(t.index),s=this.getFollowingTimePatternThroughCache().exec(o);return i.match(/^\d{3,4}/)&&s&&(s[0].match(/^\s*([+-])\s*\d{2,4}$/)||s[0].match(/^\s*([+-])\s*\d{2}\W\d{2}/))?null:!s||s[0].match(/^\s*([+-])\s*\d{3,4}$/)?this.checkAndReturnWithoutFollowingPattern(a):(a.end=this.extractFollowingTimeComponents(e,s,a),a.end&&(a.text+=s[0]),this.checkAndReturnWithFollowingPattern(a))}extractPrimaryTimeComponents(e,t,n=!1){let r=e.createParsingComponents(),i=0,a=null,o=parseInt(t[ON]);if(o>100){if(t[ON].length==4&&t[kN]==null&&!t[MN]||this.strictMode||t[kN]!=null)return null;i=o%100,o=Math.floor(o/100)}if(o>24)return null;if(t[kN]!=null){if(t[kN].length==1&&!t[MN])return null;i=parseInt(t[kN])}if(i>=60)return null;if(o>12&&(a=aM.PM),t[MN]!=null){if(o>12)return null;let e=t[MN][0].toLowerCase();e==`a`&&(a=aM.AM,o==12&&(o=0)),e==`p`&&(a=aM.PM,o!=12&&(o+=12))}if(r.assign(`hour`,o),r.assign(`minute`,i),a===null?o<12?r.imply(`meridiem`,aM.AM):r.imply(`meridiem`,aM.PM):r.assign(`meridiem`,a),t[jN]!=null){let e=parseInt(t[jN].substring(0,3));if(e>=1e3)return null;r.assign(`millisecond`,e)}if(t[AN]!=null){let e=parseInt(t[AN]);if(e>=60)return null;r.assign(`second`,e)}return r}extractFollowingTimeComponents(e,t,n){let r=e.createParsingComponents();if(t[jN]!=null){let e=parseInt(t[jN].substring(0,3));if(e>=1e3)return null;r.assign(`millisecond`,e)}if(t[AN]!=null){let e=parseInt(t[AN]);if(e>=60)return null;r.assign(`second`,e)}let i=parseInt(t[ON]),a=0,o=-1;if(t[kN]==null?i>100&&(a=i%100,i=Math.floor(i/100)):a=parseInt(t[kN]),a>=60||i>24)return null;if(i>=12&&(o=aM.PM),t[MN]!=null){if(i>12)return null;let e=t[MN][0].toLowerCase();e==`a`&&(o=aM.AM,i==12&&(i=0,r.isCertain(`day`)||r.imply(`day`,r.get(`day`)+1))),e==`p`&&(o=aM.PM,i!=12&&(i+=12)),n.start.isCertain(`meridiem`)||(o==aM.AM?(n.start.imply(`meridiem`,aM.AM),n.start.get(`hour`)==12&&n.start.assign(`hour`,0)):(n.start.imply(`meridiem`,aM.PM),n.start.get(`hour`)!=12&&n.start.assign(`hour`,n.start.get(`hour`)+12)))}return r.assign(`hour`,i),r.assign(`minute`,a),o>=0?r.assign(`meridiem`,o):n.start.isCertain(`meridiem`)&&n.start.get(`hour`)>12?n.start.get(`hour`)-12>i?r.imply(`meridiem`,aM.AM):i<=12&&(r.assign(`hour`,i+12),r.assign(`meridiem`,aM.PM)):i>12?r.imply(`meridiem`,aM.PM):i<=12&&r.imply(`meridiem`,aM.AM),r.date().getTime()<n.start.date().getTime()&&r.imply(`day`,r.get(`day`)+1),r}checkAndReturnWithoutFollowingPattern(e){if(e.text.match(/^\d$/)||e.text.match(/^\d\d\d+$/)||e.text.match(/\d[apAP]$/))return null;let t=e.text.match(/[^\d:.](\d[\d.]+)$/);if(t){let e=t[1];if(this.strictMode||e.includes(`.`)&&!e.match(/\d(\.\d{2})+$/)||parseInt(e)>24)return null}return e}checkAndReturnWithFollowingPattern(e){if(e.text.match(/^\d+-\d+$/))return null;let t=e.text.match(/[^\d:.](\d[\d.]+)\s*-\s*(\d[\d.]+)$/);if(t){if(this.strictMode)return null;let e=t[1],n=t[2];if(n.includes(`.`)&&!n.match(/\d(\.\d{2})+$/)||parseInt(n)>24||parseInt(e)>24)return null}return e}cachedPrimaryPrefix=null;cachedPrimarySuffix=null;cachedPrimaryTimePattern=null;getPrimaryTimePatternThroughCache(){let e=this.primaryPrefix(),t=this.primarySuffix();return this.cachedPrimaryPrefix===e&&this.cachedPrimarySuffix===t?this.cachedPrimaryTimePattern:(this.cachedPrimaryTimePattern=EN(this.primaryPatternLeftBoundary(),e,t,this.patternFlags()),this.cachedPrimaryPrefix=e,this.cachedPrimarySuffix=t,this.cachedPrimaryTimePattern)}cachedFollowingPhase=null;cachedFollowingSuffix=null;cachedFollowingTimePatten=null;getFollowingTimePatternThroughCache(){let e=this.followingPhase(),t=this.followingSuffix();return this.cachedFollowingPhase===e&&this.cachedFollowingSuffix===t?this.cachedFollowingTimePatten:(this.cachedFollowingTimePatten=DN(e,t),this.cachedFollowingPhase=e,this.cachedFollowingSuffix=t,this.cachedFollowingTimePatten)}},PN=class extends NN{constructor(e){super(e)}followingPhase(){return`\\s*(?:\\-|\\–|\\~|\\〜|to|until|through|till|\\?)\\s*`}primaryPrefix(){return`(?:(?:at|from)\\s*)??`}primarySuffix(){return`(?:\\s*(?:o\\W*clock|at\\s*night|in\\s*the\\s*(?:morning|afternoon)))?(?!/)(?=\\W|$)`}extractPrimaryTimeComponents(e,t){let n=super.extractPrimaryTimeComponents(e,t);if(!n)return n;if(t[0].endsWith(`night`)){let e=n.get(`hour`);e>=6&&e<12?(n.assign(`hour`,n.get(`hour`)+12),n.assign(`meridiem`,aM.PM)):e<6&&n.assign(`meridiem`,aM.AM)}if(t[0].endsWith(`afternoon`)){n.assign(`meridiem`,aM.PM);let e=n.get(`hour`);e>=0&&e<=6&&n.assign(`hour`,n.get(`hour`)+12)}return t[0].endsWith(`morning`)&&(n.assign(`meridiem`,aM.AM),n.get(`hour`)<12&&n.assign(`hour`,n.get(`hour`))),n.addTag(`parser/ENTimeExpressionParser`)}extractFollowingTimeComponents(e,t,n){let r=super.extractFollowingTimeComponents(e,t,n);return r&&r.addTag(`parser/ENTimeExpressionParser`),r}},FN=RegExp(`(${WM})\\s{0,5}(?:ago|before|earlier)(?=\\W|$)`,`i`),IN=RegExp(`(${GM})\\s{0,5}(?:ago|before|earlier)(?=\\W|$)`,`i`),LN=class extends JM{strictMode;constructor(e){super(),this.strictMode=e}innerPattern(){return this.strictMode?IN:FN}innerExtract(e,t){let n=KM(t[1]);return n?bM.createRelativeFromReference(e.reference,vM(n)):null}},RN=RegExp(`(${WM})\\s{0,5}(?:later|after|from now|henceforth|forward|out)(?=(?:\\W|\$))`,`i`),zN=RegExp(`(${GM})\\s{0,5}(later|after|from now)(?=\\W|$)`,`i`),BN=1,VN=class extends JM{strictMode;constructor(e){super(),this.strictMode=e}innerPattern(){return this.strictMode?zN:RN}innerExtract(e,t){let n=KM(t[BN]);return n?bM.createRelativeFromReference(e.reference,n):null}},HN=class{refine(e,t){return t.filter(t=>this.isValid(e,t))}},UN=class{refine(e,t){if(t.length<2)return t;let n=[],r=t[0],i=null;for(let a=1;a<t.length;a++){i=t[a];let o=e.text.substring(r.index+r.text.length,i.index);if(!this.shouldMergeResults(o,r,i,e))n.push(r),r=i;else{let t=r,n=i,a=this.mergeResults(o,t,n,e);e.debug(()=>{console.log(`${this.constructor.name} merged ${t} and ${n} into ${a}`)}),r=a}}return r!=null&&n.push(r),n}},WN=class extends UN{shouldMergeResults(e,t,n){return!t.end&&!n.end&&e.match(this.patternBetween())!=null}mergeResults(e,t,n){if(!t.start.isOnlyWeekdayComponent()&&!n.start.isOnlyWeekdayComponent()&&(n.start.getCertainComponents().forEach(e=>{t.start.isCertain(e)||t.start.imply(e,n.start.get(e))}),t.start.getCertainComponents().forEach(e=>{n.start.isCertain(e)||n.start.imply(e,t.start.get(e))})),t.start.date()>n.start.date()){let e=t.start.date(),r=n.start.date();n.start.isOnlyWeekdayComponent()&&_M(r,{day:7})>e?(r=_M(r,{day:7}),n.start.imply(`day`,r.getDate()),n.start.imply(`month`,r.getMonth()+1),n.start.imply(`year`,r.getFullYear())):t.start.isOnlyWeekdayComponent()&&_M(e,{day:-7})<r?(e=_M(e,{day:-7}),t.start.imply(`day`,e.getDate()),t.start.imply(`month`,e.getMonth()+1),t.start.imply(`year`,e.getFullYear())):n.start.isDateWithUnknownYear()&&_M(r,{year:1})>e?(r=_M(r,{year:1}),n.start.imply(`year`,r.getFullYear())):t.start.isDateWithUnknownYear()&&_M(e,{year:-1})<r?(e=_M(e,{year:-1}),t.start.imply(`year`,e.getFullYear())):[n,t]=[t,n]}let r=t.clone();return r.start=t.start,r.end=n.start,r.index=Math.min(t.index,n.index),t.index<n.index?r.text=t.text+e+n.text:r.text=n.text+e+t.text,r}},GN=class extends WN{patternBetween(){return/^\s*(to|-|–|until|through|till)\s*$/i}};function KN(e,t){let n=e.clone(),r=e.start,i=t.start;if(n.start=qN(r,i),e.end!=null||t.end!=null){let r=qN(e.end==null?e.start:e.end,t.end==null?t.start:t.end);if(e.end==null&&r.date().getTime()<n.start.date().getTime()){let e=new Date(r.date().getTime());e.setDate(e.getDate()+1),r.isCertain(`day`)?cM(r,e):uM(r,e)}n.end=r}return n}function qN(e,t){let n=e.clone();t.isCertain(`hour`)?(n.assign(`hour`,t.get(`hour`)),n.assign(`minute`,t.get(`minute`)),t.isCertain(`second`)?(n.assign(`second`,t.get(`second`)),t.isCertain(`millisecond`)?n.assign(`millisecond`,t.get(`millisecond`)):n.imply(`millisecond`,t.get(`millisecond`))):(n.imply(`second`,t.get(`second`)),n.imply(`millisecond`,t.get(`millisecond`)))):(n.imply(`hour`,t.get(`hour`)),n.imply(`minute`,t.get(`minute`)),n.imply(`second`,t.get(`second`)),n.imply(`millisecond`,t.get(`millisecond`))),t.isCertain(`timezoneOffset`)&&n.assign(`timezoneOffset`,t.get(`timezoneOffset`));let r=e.get(`meridiem`)!=null&&(e.isCertain(`meridiem`)||Array.from(e.tags()).some(e=>e.startsWith(`casualReference/`)));return t.isCertain(`meridiem`)?n.assign(`meridiem`,t.get(`meridiem`)):t.get(`meridiem`)!=null&&!r&&n.imply(`meridiem`,t.get(`meridiem`)),n.get(`meridiem`)==aM.PM&&n.get(`hour`)<12&&(t.isCertain(`hour`)?n.assign(`hour`,n.get(`hour`)+12):n.imply(`hour`,n.get(`hour`)+12)),n.addTags(e.tags()),n.addTags(t.tags()),n}var JN=class extends UN{shouldMergeResults(e,t,n){return(t.start.isOnlyDate()&&n.start.isOnlyTime()||n.start.isOnlyDate()&&t.start.isOnlyTime())&&e.match(this.patternBetween())!=null}mergeResults(e,t,n){let r=t.start.isOnlyDate()?KN(t,n):KN(n,t);return r.index=t.index,r.text=t.text+e+n.text,r}},YN=class extends JN{patternBetween(){return RegExp(`^\\s*(T|at|after|before|on|of|,|-|\\.|∙|:)?\\s*$`)}},XN=RegExp(`^\\s*,?\\s*\\(?([A-Z]{2,4})\\)?(?=\\W|$)`,`i`),ZN=class{timezoneOverrides;constructor(e){this.timezoneOverrides=e}refine(e,t){let n=e.option.timezones??{};return t.forEach(t=>{let r=e.text.substring(t.index+t.text.length),i=XN.exec(r);if(!i)return;let a=i[1].toUpperCase(),o=hM(a,t.start.date()??t.refDate??new Date,{...this.timezoneOverrides,...n});if(o==null)return;e.debug(()=>{console.log(`Extracting timezone: '${a}' into: ${o} for: ${t.start}`)});let s=t.start.get(`timezoneOffset`);s!==null&&o!=s&&(t.start.isCertain(`timezoneOffset`)||a!=i[1])||t.start.isOnlyDate()&&a!=i[1]||(t.text+=i[0],t.start.isCertain(`timezoneOffset`)||t.start.assign(`timezoneOffset`,o),t.end!=null&&!t.end.isCertain(`timezoneOffset`)&&t.end.assign(`timezoneOffset`,o))}),t}},QN=RegExp(`^\\s*(?:\\(?(?:GMT|UTC)\\s?)?([+-])(\\d{1,2})(?::?(\\d{2}))?\\)?`,`i`),$N=1,eP=2,tP=3,nP=class{refine(e,t){return t.forEach(function(t){if(t.start.isCertain(`timezoneOffset`))return;let n=e.text.substring(t.index+t.text.length),r=QN.exec(n);if(!r)return;e.debug(()=>{console.log(`Extracting timezone: '${r[0]}' into : ${t}`)});let i=parseInt(r[eP]),a=parseInt(r[tP]||`0`),o=i*60+a;o>840||(r[$N]===`-`&&(o=-o),t.end!=null&&t.end.assign(`timezoneOffset`,o),t.start.assign(`timezoneOffset`,o),t.text+=r[0])}),t}},rP=class{refine(e,t){if(t.length<2)return t;let n=[],r=t[0];for(let i=1;i<t.length;i++){let a=t[i];if(a.index>=r.index+r.text.length){n.push(r),r=a;continue}let o=null,s=null;a.text.length>r.text.length?(o=a,s=r):(o=r,s=a),e.debug(()=>{console.log(`${this.constructor.name} remove ${s} by ${o}`)}),r=o}return r!=null&&n.push(r),n}};function iP(e,t,n){let r=aP(e.getDateWithAdjustedTimezone(),t,n),i=new bM(e);return i=i.addDurationAsImplied({day:r}),i.assign(`weekday`,t),i}function aP(e,t,n){let r=e.getDay();switch(n){case`this`:return sP(e,t);case`last`:return cP(e,t);case`next`:return r==oM.SUNDAY?t==oM.SUNDAY?7:t:r==oM.SATURDAY?t==oM.SATURDAY?7:t==oM.SUNDAY?8:1+t:t<r&&t!=oM.SUNDAY?sP(e,t):sP(e,t)+7}return oP(e,t)}function oP(e,t){let n=cP(e,t),r=sP(e,t);return r<-n?r:n}function sP(e,t){let n=t-e.getDay();return n<0&&(n+=7),n}function cP(e,t){let n=t-e.getDay();return n>=0&&(n-=7),n}var lP=class{refine(e,t){return e.option.forwardDate&&t.forEach(t=>{let n=e.reference.getDateWithAdjustedTimezone();if(t.start.isOnlyTime()&&e.reference.instant>t.start.date()){let n=e.reference.getDateWithAdjustedTimezone(),r=new Date(n);r.setDate(r.getDate()+1),uM(t.start,r),e.debug(()=>{console.log(`${this.constructor.name} adjusted ${t} time from the ref date (${n}) to the following day (${r})`)}),t.end&&t.end.isOnlyTime()&&(uM(t.end,r),t.start.date()>t.end.date()&&(r.setDate(r.getDate()+1),uM(t.end,r)))}if(t.start.isOnlyWeekdayComponent()&&n>t.start.date()){let r=_M(n,{day:sP(n,t.start.get(`weekday`))||7});if(uM(t.start,r),e.debug(()=>{console.log(`${this.constructor.name} adjusted ${t} weekday (${t.start})`)}),t.end&&t.start.date()>t.end.date()){let r=_M(n,{day:sP(n,t.start.get(`weekday`))||7});uM(t.end,r),e.debug(()=>{console.log(`${this.constructor.name} adjusted ${t} weekday (${t.end})`)})}}if(t.start.isDateWithUnknownYear()&&n>t.start.date())for(let r=0;r<3&&n>t.start.date();r++)t.start.imply(`year`,t.start.get(`year`)+1),e.debug(()=>{console.log(`${this.constructor.name} adjusted ${t} year (${t.start})`)}),t.end&&!t.end.isCertain(`year`)&&(t.end.imply(`year`,t.end.get(`year`)+1),e.debug(()=>{console.log(`${this.constructor.name} adjusted ${t} month (${t.start})`)}))}),t}},uP=class extends HN{strictMode;constructor(e){super(),this.strictMode=e}isValid(e,t){return t.text.replace(` `,``).match(/^\d*(\.\d*)?$/)?(e.debug(()=>{console.log(`Removing unlikely result '${t.text}'`)}),!1):t.start.isValidDate()?t.end&&!t.end.isValidDate()?(e.debug(()=>{console.log(`Removing invalid result: ${t} (${t.end})`)}),!1):this.strictMode?this.isStrictModeValid(e,t):!0:(e.debug(()=>{console.log(`Removing invalid result: ${t} (${t.start})`)}),!1)}isStrictModeValid(e,t){return t.start.isOnlyWeekdayComponent()?(e.debug(()=>{console.log(`(Strict) Removing weekday only component: ${t} (${t.end})`)}),!1):!0}},dP=RegExp(`([0-9]{4})\\-([0-9]{1,2})\\-([0-9]{1,2})(?:T([0-9]{1,2}):([0-9]{1,2})(?::([0-9]{1,2})(?:\\.(\\d{1,4}))?)?(Z|([+-]\\d{2}):?(\\d{2})?)?)?(?=\\W|$)`,`i`),fP=1,pP=2,mP=3,hP=4,gP=5,_P=6,vP=7,yP=8,bP=9,xP=10,SP=class extends JM{innerPattern(){return dP}innerExtract(e,t){let n=e.createParsingComponents({year:parseInt(t[fP]),month:parseInt(t[pP]),day:parseInt(t[mP])});if(t[hP]!=null&&(n.assign(`hour`,parseInt(t[hP])),n.assign(`minute`,parseInt(t[gP])),t[_P]!=null&&n.assign(`second`,parseInt(t[_P])),t[vP]!=null&&n.assign(`millisecond`,parseInt(t[vP])),t[yP]!=null)){let e=0;if(t[bP]){let n=parseInt(t[bP]),r=0;t[xP]!=null&&(r=parseInt(t[xP])),e=n*60,e<0?e-=r:e+=r}n.assign(`timezoneOffset`,e)}return n.addTag(`parser/ISOFormatParser`)}},CP=class extends UN{mergeResults(e,t,n){let r=n.clone();return r.index=t.index,r.text=t.text+e+r.text,r.start.assign(`weekday`,t.start.get(`weekday`)),r.end&&r.end.assign(`weekday`,t.start.get(`weekday`)),r}shouldMergeResults(e,t,n){return t.start.isOnlyWeekdayComponent()&&!t.start.isCertain(`hour`)&&n.start.isCertain(`day`)&&e.match(/^,?\s*$/)!=null}};function wP(e,t=!1){return e.parsers.unshift(new SP),e.refiners.unshift(new CP),e.refiners.unshift(new nP),e.refiners.unshift(new rP),e.refiners.push(new ZN),e.refiners.push(new rP),e.refiners.push(new lP),e.refiners.push(new uP(t)),e}function TP(e){let t=e.getDateWithAdjustedTimezone(),n=new bM(e,{});return cM(n,t),lM(n,t),n.assign(`timezoneOffset`,e.getTimezoneOffset()),n.addTag(`casualReference/now`),n}function EP(e){let t=e.getDateWithAdjustedTimezone(),n=new bM(e,{});return cM(n,t),dM(n,t),n.delete(`meridiem`),n.addTag(`casualReference/today`),n}function DP(e){return kP(e,1).addTag(`casualReference/yesterday`)}function OP(e){return AP(e,1).addTag(`casualReference/tomorrow`)}function kP(e,t){return AP(e,-t)}function AP(e,t){let n=e.getDateWithAdjustedTimezone(),r=new bM(e,{}),i=new Date(n.getTime());return i.setDate(i.getDate()+t),cM(r,i),dM(r,i),r.delete(`meridiem`),r}function jP(e,t=22){let n=e.getDateWithAdjustedTimezone(),r=new bM(e,{});return cM(r,n),r.imply(`hour`,t),r.imply(`meridiem`,aM.PM),r.addTag(`casualReference/tonight`),r}function MP(e,t=20){let n=new bM(e,{});return n.imply(`meridiem`,aM.PM),n.imply(`hour`,t),n.addTag(`casualReference/evening`),n}function NP(e){let t=new bM(e,{});return e.getDateWithAdjustedTimezone().getHours()>2&&t.addDurationAsImplied({day:1}),t.assign(`hour`,0),t.imply(`minute`,0),t.imply(`second`,0),t.imply(`millisecond`,0),t.addTag(`casualReference/midnight`),t}function PP(e,t=6){let n=new bM(e,{});return n.imply(`meridiem`,aM.AM),n.imply(`hour`,t),n.imply(`minute`,0),n.imply(`second`,0),n.imply(`millisecond`,0),n.addTag(`casualReference/morning`),n}function FP(e,t=15){let n=new bM(e,{});return n.imply(`meridiem`,aM.PM),n.imply(`hour`,t),n.imply(`minute`,0),n.imply(`second`,0),n.imply(`millisecond`,0),n.addTag(`casualReference/afternoon`),n}function IP(e){let t=new bM(e,{});return t.imply(`meridiem`,aM.AM),t.assign(`hour`,12),t.imply(`minute`,0),t.imply(`second`,0),t.imply(`millisecond`,0),t.addTag(`casualReference/noon`),t}var LP=/(now|today|tonight|tomorrow|overmorrow|tmr|tmrw|yesterday|last\s*night)(?=\W|$)/i,RP=class extends JM{innerPattern(e){return LP}innerExtract(e,t){let n=e.refDate,r=t[0].toLowerCase(),i=e.createParsingComponents();switch(r){case`now`:i=TP(e.reference);break;case`today`:i=EP(e.reference);break;case`yesterday`:i=DP(e.reference);break;case`tomorrow`:case`tmr`:case`tmrw`:i=OP(e.reference);break;case`tonight`:i=jP(e.reference);break;case`overmorrow`:i=AP(e.reference,2);break;default:if(r.match(/last\s*night/)){if(n.getHours()>6){let e=new Date(n.getTime());e.setDate(e.getDate()-1),n=e}cM(i,n),i.imply(`hour`,0)}break}return i.addTag(`parser/ENCasualDateParser`),i}},zP=/(?:this)?\s{0,3}(morning|afternoon|evening|night|midnight|midday|noon)(?=\W|$)/i,BP=class extends JM{innerPattern(){return zP}innerExtract(e,t){let n=null;switch(t[1].toLowerCase()){case`afternoon`:n=FP(e.reference);break;case`evening`:case`night`:n=MP(e.reference);break;case`midnight`:n=NP(e.reference);break;case`morning`:n=PP(e.reference);break;case`noon`:case`midday`:n=IP(e.reference);break}return n&&n.addTag(`parser/ENCasualTimeParser`),n}},VP=RegExp(`(?:(?:\\,|\\(|\\()\\s*)?(?:on\\s*?)?(?:(this|last|past|next)\\s*)?(${wM(DM)}|weekend|weekday)(?:\\s*(?:\\,|\\)|\\)))?(?:\\s*(?:of\\s*)?(this|last|past|next)\\s*week)?(?=\\W|\$)`,`i`),HP=1,UP=2,WP=3,GP=class extends JM{innerPattern(){return VP}innerExtract(e,t){let n=t[HP],r=t[WP],i=n||r;i||=``,i=i.toLowerCase();let a=null;i==`last`||i==`past`?a=`last`:i==`next`?a=`next`:i==`this`&&(a=`this`);let o=t[UP].toLowerCase(),s;if(DM[o]!==void 0)s=DM[o];else if(o==`weekend`)s=a==`last`?oM.SUNDAY:oM.SATURDAY;else if(o==`weekday`){let t=e.reference.getDateWithAdjustedTimezone().getDay();t==oM.SUNDAY||t==oM.SATURDAY?s=a==`last`?oM.FRIDAY:oM.MONDAY:(s=t-1,s=a==`last`?s-1:s+1,s=s%5+1)}else return null;return iP(e.reference,s,a)}},KP=RegExp(`(this|last|past|next|after\\s*this)\\s*(${wM(NM)})(?=\\s*)(?=\\W|\$)`,`i`),qP=1,JP=2,YP=class extends JM{innerPattern(){return KP}innerExtract(e,t){let n=t[qP].toLowerCase(),r=t[JP].toLowerCase(),i=NM[r];if(n==`next`||n.startsWith(`after`)){let t={};return t[i]=1,bM.createRelativeFromReference(e.reference,t)}if(n==`last`||n==`past`){let t={};return t[i]=-1,bM.createRelativeFromReference(e.reference,t)}let a=e.createParsingComponents(),o=new Date(e.reference.instant.getTime());return r.match(/week/i)?(o.setDate(o.getDate()-o.getDay()),a.imply(`day`,o.getDate()),a.imply(`month`,o.getMonth()+1),a.imply(`year`,o.getFullYear())):r.match(/month/i)?(o.setDate(1),a.imply(`day`,o.getDate()),a.assign(`year`,o.getFullYear()),a.assign(`month`,o.getMonth()+1)):r.match(/year/i)&&(o.setDate(1),o.setMonth(0),a.imply(`day`,o.getDate()),a.imply(`month`,o.getMonth()+1),a.assign(`year`,o.getFullYear())),a}},XP=RegExp(`([^\\d]|^)([0-3]{0,1}[0-9]{1})[\\/\\.\\-]([0-3]{0,1}[0-9]{1})(?:[\\/\\.\\-]([0-9]{4}|[0-9]{2}))?(\\W|$)`,`i`),ZP=1,QP=5,$P=2,eF=3,tF=4,nF=class{groupNumberMonth;groupNumberDay;constructor(e){this.groupNumberMonth=e?eF:$P,this.groupNumberDay=e?$P:eF}pattern(){return XP}extract(e,t){let n=t.index+t[ZP].length,r=t.index+t[0].length-t[QP].length;if(n>0&&e.text.substring(0,n).match(`\\d/?$`)||r<e.text.length&&e.text.substring(r).match(`^/?\\d`))return;let i=e.text.substring(n,r);if(i.match(/^\d\.\d$/)||i.match(/^\d\.\d{1,2}\.\d{1,2}\s*$/)||!t[tF]&&i.indexOf(`/`)<0)return;let a=e.createParsingResult(n,i),o=parseInt(t[this.groupNumberMonth]),s=parseInt(t[this.groupNumberDay]);if((o<1||o>12)&&o>12)if(s>=1&&s<=12&&o<=31)[s,o]=[o,s];else return null;if(s<1||s>31)return null;if(a.start.assign(`day`,s),a.start.assign(`month`,o),t[tF]){let e=TM(parseInt(t[tF]));a.start.assign(`year`,e)}else{let t=EM(e.refDate,s,o);a.start.imply(`year`,t)}return a.addTag(`parser/SlashDateFormatParser`)}},rF=RegExp(`(this|last|past|next|after|\\+|-)\\s*(${WM})(?=\\W|$)`,`i`),iF=RegExp(`(this|last|past|next|after|\\+|-)\\s*(${GM})(?=\\W|$)`,`i`),aF=class extends JM{allowAbbreviations;constructor(e=!0){super(),this.allowAbbreviations=e}innerPattern(){return this.allowAbbreviations?rF:iF}innerExtract(e,t){let n=t[1].toLowerCase(),r=KM(t[2]);if(!r)return null;switch(n){case`last`:case`past`:case`-`:r=vM(r);break}return bM.createRelativeFromReference(e.reference,r)}};function oF(e){return e.text.match(/^[+-]/i)!=null}function sF(e){return e.text.match(/^-/i)!=null}var cF=class extends UN{shouldMergeResults(e,t,n){return e.match(/^\s*$/i)?oF(n)||sF(n):!1}mergeResults(e,t,n,r){let i=KM(n.text);sF(n)&&(i=vM(i));let a=bM.createRelativeFromReference(yM.fromDate(t.start.date()),i);return new xM(t.reference,t.index,`${t.text}${e}${n.text}`,a)}};function lF(e){return e.text.match(/\s+(before|from)$/i)!=null}function uF(e){return e.text.match(/\s+(after|since)$/i)!=null}var dF=class extends UN{patternBetween(){return/^\s*$/i}shouldMergeResults(e,t,n){return!e.match(this.patternBetween())||!lF(t)&&!uF(t)?!1:!!n.start.get(`day`)&&!!n.start.get(`month`)&&!!n.start.get(`year`)}mergeResults(e,t,n){let r=KM(t.text);lF(t)&&(r=vM(r));let i=bM.createRelativeFromReference(yM.fromDate(n.start.date()),r);return new xM(n.reference,t.index,`${t.text}${e}${n.text}`,i)}},fF=RegExp(`^\\s*(${RM})`,`i`),pF=1,mF=class{refine(e,t){return t.forEach(function(t){if(!t.start.isDateWithUnknownYear())return;let n=e.text.substring(t.index+t.text.length),r=fF.exec(n);if(!r||r[0].trim().length<=3)return;e.debug(()=>{console.log(`Extracting year: '${r[0]}' into : ${t}`)});let i=zM(r[pF]);t.end!=null&&t.end.assign(`year`,i),t.start.assign(`year`,i),t.text+=r[0]}),t}},hF=class extends HN{constructor(){super()}isValid(e,t){let n=t.text.trim();return n===e.text.trim()?!0:n.toLowerCase()===`may`&&!e.text.substring(0,t.index).trim().match(/\b(in)$/i)?(e.debug(()=>{console.log(`Removing unlikely result: ${t}`)}),!1):n.toLowerCase().endsWith(`the second`)?(e.text.substring(t.index+t.text.length).trim().length>0&&e.debug(()=>{console.log(`Removing unlikely result: ${t}`)}),!1):!0}},gF=class{createCasualConfiguration(e=!1){let t=this.createConfiguration(!1,e);return t.parsers.push(new RP),t.parsers.push(new BP),t.parsers.push(new hN),t.parsers.push(new YP),t.parsers.push(new aF),t.refiners.push(new hF),t}createConfiguration(e=!0,t=!1){let n=wP({parsers:[new nF(t),new QM(e),new iN,new uN(t),new GP,new TN,new PN(e),new LN(e),new VN(e)],refiners:[new YN]},e);return n.parsers.unshift(new xN(e)),n.refiners.unshift(new dF),n.refiners.unshift(new cF),n.refiners.unshift(new rP),n.refiners.push(new YN),n.refiners.push(new mF),n.refiners.push(new GN),n}},_F=class e{parsers;refiners;defaultConfig=new gF;constructor(e){e||=this.defaultConfig.createCasualConfiguration(),this.parsers=[...e.parsers],this.refiners=[...e.refiners]}clone(){return new e({parsers:[...this.parsers],refiners:[...this.refiners]})}parseDate(e,t,n){let r=this.parse(e,t,n);return r.length>0?r[0].start.date():null}parse(t,n,r){let i=new vF(t,n,r),a=[];return this.parsers.forEach(t=>{let n=e.executeParser(i,t);a=a.concat(n)}),a.sort((e,t)=>e.index-t.index),this.refiners.forEach(function(e){a=e.refine(i,a)}),a}static executeParser(e,t){let n=[],r=t.pattern(e),i=e.text,a=e.text,o=r.exec(a);for(;o;){let s=o.index+i.length-a.length;o.index=s;let c=t.extract(e,o);if(!c){a=i.substring(o.index+1),o=r.exec(a);continue}let l=null;c instanceof xM?l=c:c instanceof bM?(l=e.createParsingResult(o.index,o[0]),l.start=c):l=e.createParsingResult(o.index,o[0],c);let u=l.index,d=l.text;e.debug(()=>console.log(`${t.constructor.name} extracted (at index=${u}) '${d}'`)),n.push(l),a=i.substring(u+d.length),o=r.exec(a)}return n}},vF=class{text;option;reference;refDate;constructor(e,t,n){this.text=e,this.option=n??{},this.reference=yM.fromInput(t,this.option.timezones),this.refDate=this.reference.instant}createParsingComponents(e){return e instanceof bM?e:new bM(this.reference,e)}createParsingResult(e,t,n,r){let i=typeof t==`string`?t:this.text.substring(e,t),a=n?this.createParsingComponents(n):null,o=r?this.createParsingComponents(r):null;return new xM(this.reference,e,i,a,o)}debug(e){this.option.debug&&(this.option.debug instanceof Function?this.option.debug(e):this.option.debug.debug(e))}},yF={零:0,〇:0,一:1,二:2,两:2,三:3,四:4,五:5,六:6,七:7,八:8,九:9,十:10},bF={天:0,日:0,一:1,二:2,三:3,四:4,五:5,六:6};function xF(e){let t=0;for(let n=0;n<e.length;n++){let r=e[n];r===`十`?t=t===0?yF[r]:t*yF[r]:t+=yF[r]}return t}function SF(e){let t=``;for(let n=0;n<e.length;n++){let r=e[n];t+=yF[r]}return parseInt(t)}var CF=1,wF=2,TF=3,EF=class extends JM{innerPattern(){return RegExp(`(\\d{2,4}|[`+Object.keys(yF).join(``)+`]{4}|[`+Object.keys(yF).join(``)+`]{2})?(?:\\s*)(?:年)?(?:[\\s|,|,]*)(\\d{1,2}|[`+Object.keys(yF).join(``)+`]{1,3})(?:\\s*)(?:月)(?:\\s*)(\\d{1,2}|[`+Object.keys(yF).join(``)+`]{1,3})?(?:\\s*)(?:日|号)?`)}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),r=parseInt(t[wF]);if(isNaN(r)&&(r=xF(t[wF])),n.start.assign(`month`,r),t[TF]){let e=parseInt(t[TF]);isNaN(e)&&(e=xF(t[TF])),n.start.assign(`day`,e)}else n.start.imply(`day`,e.refDate.getDate());if(t[CF]){let e=parseInt(t[CF]);isNaN(e)&&(e=SF(t[CF])),n.start.assign(`year`,e)}else n.start.imply(`year`,e.refDate.getFullYear());return n}},DF=RegExp(`(\\d+|[`+Object.keys(yF).join(``)+`]+|半|几)(?:\\s*)(?:个)?(秒(?:钟)?|分钟|小时|钟|日|天|星期|礼拜|月|年)(?:(?:之|过)?后|(?:之)?内)`,`i`),OF=1,kF=2,AF=class extends JM{innerPattern(){return DF}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),r=parseInt(t[OF]);if(isNaN(r)&&(r=xF(t[OF])),isNaN(r)){let e=t[OF];if(e===`几`)r=3;else if(e===`半`)r=.5;else return null}let i={},a=t[kF][0];if(a.match(/[日天星礼月年]/)){a==`日`||a==`天`?i.day=r:a==`星`||a==`礼`?i.week=r:a==`月`?i.month=r:a==`年`&&(i.year=r);let t=_M(e.refDate,i);return n.start.assign(`year`,t.getFullYear()),n.start.assign(`month`,t.getMonth()+1),n.start.assign(`day`,t.getDate()),n}a==`秒`?i.second=r:a==`分`?i.minute=r:(a==`小`||a==`钟`)&&(i.hour=r);let o=_M(e.refDate,i);return n.start.imply(`year`,o.getFullYear()),n.start.imply(`month`,o.getMonth()+1),n.start.imply(`day`,o.getDate()),n.start.assign(`hour`,o.getHours()),n.start.assign(`minute`,o.getMinutes()),n.start.assign(`second`,o.getSeconds()),n}},jF=RegExp(`(?<prefix>上|下|这)(?:个)?(?:星期|礼拜|周)(?<weekday>`+Object.keys(bF).join(`|`)+`)`),MF=class extends JM{innerPattern(){return jF}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),r=bF[t.groups.weekday];if(r===void 0)return null;let i=null,a=t.groups.prefix;a==`上`?i=`last`:a==`下`?i=`next`:a==`这`&&(i=`this`);let o=new Date(e.refDate.getTime()),s=!1,c=o.getDay();if(i==`last`||i==`past`)o.setDate(o.getDate()+(r-7-c)),s=!0;else if(i==`next`)o.setDate(o.getDate()+(r+7-c)),s=!0;else if(i==`this`)o.setDate(o.getDate()+(r-c));else{let e=r-c;Math.abs(e-7)<Math.abs(e)&&(e-=7),Math.abs(e+7)<Math.abs(e)&&(e+=7),o.setDate(o.getDate()+e)}return n.start.assign(`weekday`,r),s?(n.start.assign(`day`,o.getDate()),n.start.assign(`month`,o.getMonth()+1),n.start.assign(`year`,o.getFullYear())):(n.start.imply(`day`,o.getDate()),n.start.imply(`month`,o.getMonth()+1),n.start.imply(`year`,o.getFullYear())),n}},NF=RegExp(`(?:从|自)?(?:(今|明|前|大前|后|大后|昨)(早|朝|晚)|(上(?:午)|早(?:上)|下(?:午)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨))|(今|明|前|大前|后|大后|昨)(?:日|天)(?:[\\s,,]*)(?:(上(?:午)|早(?:上)|下(?:午)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨)))?)?(?:[\\s,,]*)(?:(\\d+|[`+Object.keys(yF).join(``)+`]+)(?:\\s*)(?:点|时|:|:)(?:\\s*)(\\d+|半|正|整|[`+Object.keys(yF).join(``)+`]+)?(?:\\s*)(?:分|:|:)?(?:\\s*)(\\d+|[`+Object.keys(yF).join(``)+`]+)?(?:\\s*)(?:秒)?)(?:\\s*(A.M.|P.M.|AM?|PM?))?`,`i`),PF=RegExp(`(?:^\\s*(?:到|至|\\-|\\–|\\~|\\〜)\\s*)(?:(今|明|前|大前|后|大后|昨)(早|朝|晚)|(上(?:午)|早(?:上)|下(?:午)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨))|(今|明|前|大前|后|大后|昨)(?:日|天)(?:[\\s,,]*)(?:(上(?:午)|早(?:上)|下(?:午)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨)))?)?(?:[\\s,,]*)(?:(\\d+|[`+Object.keys(yF).join(``)+`]+)(?:\\s*)(?:点|时|:|:)(?:\\s*)(\\d+|半|正|整|[`+Object.keys(yF).join(``)+`]+)?(?:\\s*)(?:分|:|:)?(?:\\s*)(\\d+|[`+Object.keys(yF).join(``)+`]+)?(?:\\s*)(?:秒)?)(?:\\s*(A.M.|P.M.|AM?|PM?))?`,`i`),FF=1,IF=2,LF=3,RF=4,zF=5,BF=6,VF=7,HF=8,UF=9,WF=class extends JM{patternLeftBoundary(){return`()`}innerPattern(){return NF}innerExtract(e,t){if(t.index>0&&e.text[t.index-1].match(/\w/))return null;let n=e.createParsingResult(t.index,t[0]),r=new Date(e.reference.instant.getTime());if(t[FF]){let i=t[FF];i==`明`?e.reference.instant.getHours()>1&&r.setDate(r.getDate()+1):i==`昨`?r.setDate(r.getDate()-1):i==`前`?r.setDate(r.getDate()-2):i==`大前`?r.setDate(r.getDate()-3):i==`后`?r.setDate(r.getDate()+2):i==`大后`&&r.setDate(r.getDate()+3),n.start.assign(`day`,r.getDate()),n.start.assign(`month`,r.getMonth()+1),n.start.assign(`year`,r.getFullYear())}else if(t[RF]){let e=t[RF];e==`明`?r.setDate(r.getDate()+1):e==`昨`?r.setDate(r.getDate()-1):e==`前`?r.setDate(r.getDate()-2):e==`大前`?r.setDate(r.getDate()-3):e==`后`?r.setDate(r.getDate()+2):e==`大后`&&r.setDate(r.getDate()+3),n.start.assign(`day`,r.getDate()),n.start.assign(`month`,r.getMonth()+1),n.start.assign(`year`,r.getFullYear())}else n.start.imply(`day`,r.getDate()),n.start.imply(`month`,r.getMonth()+1),n.start.imply(`year`,r.getFullYear());let i=0,a=0,o=-1;if(t[HF]){let e=parseInt(t[HF]);if(isNaN(e)&&(e=xF(t[HF])),e>=60)return null;n.start.assign(`second`,e)}if(i=parseInt(t[BF]),isNaN(i)&&(i=xF(t[BF])),t[VF]?t[VF]==`半`?a=30:t[VF]==`正`||t[VF]==`整`?a=0:(a=parseInt(t[VF]),isNaN(a)&&(a=xF(t[VF]))):i>100&&(a=i%100,i=Math.floor(i/100)),a>=60||i>24)return null;if(i>=12&&(o=1),t[UF]){if(i>12)return null;let e=t[UF][0].toLowerCase();e==`a`&&(o=0,i==12&&(i=0)),e==`p`&&(o=1,i!=12&&(i+=12))}else if(t[IF]){let e=t[IF][0];e==`早`?(o=0,i==12&&(i=0)):e==`晚`&&(o=1,i!=12&&(i+=12))}else if(t[LF]){let e=t[LF][0];e==`上`||e==`早`||e==`凌`?(o=0,i==12&&(i=0)):(e==`下`||e==`晚`)&&(o=1,i!=12&&(i+=12))}else if(t[zF]){let e=t[zF][0];e==`上`||e==`早`||e==`凌`?(o=0,i==12&&(i=0)):(e==`下`||e==`晚`)&&(o=1,i!=12&&(i+=12))}n.start.assign(`hour`,i),n.start.assign(`minute`,a),o>=0?n.start.assign(`meridiem`,o):i<12?n.start.imply(`meridiem`,0):n.start.imply(`meridiem`,1);let s=PF.exec(e.text.substring(n.index+n.text.length));if(!s)return n.text.match(/^\d+$/)?null:n;let c=new Date(r.getTime());if((s[FF]||s[RF])&&(c=new Date(e.reference.instant.getTime())),n.end=e.createParsingComponents(),s[FF]){let t=s[FF];t==`明`?e.reference.instant.getHours()>1&&c.setDate(c.getDate()+1):t==`昨`?c.setDate(c.getDate()-1):t==`前`?c.setDate(c.getDate()-2):t==`大前`?c.setDate(c.getDate()-3):t==`后`?c.setDate(c.getDate()+2):t==`大后`&&c.setDate(c.getDate()+3),n.end.assign(`day`,c.getDate()),n.end.assign(`month`,c.getMonth()+1),n.end.assign(`year`,c.getFullYear())}else if(s[RF]){let e=s[RF];e==`明`?c.setDate(c.getDate()+1):e==`昨`?c.setDate(c.getDate()-1):e==`前`?c.setDate(c.getDate()-2):e==`大前`?c.setDate(c.getDate()-3):e==`后`?c.setDate(c.getDate()+2):e==`大后`&&c.setDate(c.getDate()+3),n.end.assign(`day`,c.getDate()),n.end.assign(`month`,c.getMonth()+1),n.end.assign(`year`,c.getFullYear())}else n.end.imply(`day`,c.getDate()),n.end.imply(`month`,c.getMonth()+1),n.end.imply(`year`,c.getFullYear());if(i=0,a=0,o=-1,s[HF]){let e=parseInt(s[HF]);if(isNaN(e)&&(e=xF(s[HF])),e>=60)return null;n.end.assign(`second`,e)}if(i=parseInt(s[BF]),isNaN(i)&&(i=xF(s[BF])),s[VF]?s[VF]==`半`?a=30:s[VF]==`正`||s[VF]==`整`?a=0:(a=parseInt(s[VF]),isNaN(a)&&(a=xF(s[VF]))):i>100&&(a=i%100,i=Math.floor(i/100)),a>=60||i>24)return null;if(i>=12&&(o=1),s[UF]){if(i>12)return null;let e=s[UF][0].toLowerCase();e==`a`&&(o=0,i==12&&(i=0)),e==`p`&&(o=1,i!=12&&(i+=12)),n.start.isCertain(`meridiem`)||(o==0?(n.start.imply(`meridiem`,0),n.start.get(`hour`)==12&&n.start.assign(`hour`,0)):(n.start.imply(`meridiem`,1),n.start.get(`hour`)!=12&&n.start.assign(`hour`,n.start.get(`hour`)+12)))}else if(s[IF]){let e=s[IF][0];e==`早`?(o=0,i==12&&(i=0)):e==`晚`&&(o=1,i!=12&&(i+=12))}else if(s[LF]){let e=s[LF][0];e==`上`||e==`早`||e==`凌`?(o=0,i==12&&(i=0)):(e==`下`||e==`晚`)&&(o=1,i!=12&&(i+=12))}else if(s[zF]){let e=s[zF][0];e==`上`||e==`早`||e==`凌`?(o=0,i==12&&(i=0)):(e==`下`||e==`晚`)&&(o=1,i!=12&&(i+=12))}return n.text+=s[0],n.end.assign(`hour`,i),n.end.assign(`minute`,a),o>=0?n.end.assign(`meridiem`,o):n.start.isCertain(`meridiem`)&&n.start.get(`meridiem`)==1&&n.start.get(`hour`)>i?n.end.imply(`meridiem`,0):i>12&&n.end.imply(`meridiem`,1),n.end.date().getTime()<n.start.date().getTime()&&n.end.imply(`day`,n.end.get(`day`)+1),n}},GF=RegExp(`(?:星期|礼拜|周)(?<weekday>`+Object.keys(bF).join(`|`)+`)`),KF=class extends JM{innerPattern(){return GF}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),r=bF[t.groups.weekday];if(r===void 0)return null;let i=new Date(e.refDate.getTime()),a=r-i.getDay();return Math.abs(a-7)<Math.abs(a)&&(a-=7),Math.abs(a+7)<Math.abs(a)&&(a+=7),i.setDate(i.getDate()+a),n.start.assign(`weekday`,r),n.start.imply(`day`,i.getDate()),n.start.imply(`month`,i.getMonth()+1),n.start.imply(`year`,i.getFullYear()),n}},qF=1,JF=2,YF=3,XF=4,ZF=5,QF=6,$F=class extends JM{innerPattern(e){return RegExp(`(而家|立(?:刻|即)|即刻)|(今|明|前|大前|後|大後|聽|昨|尋|琴)(早|朝|晚)|(上(?:午|晝)|朝(?:早)|早(?:上)|下(?:午|晝)|晏(?:晝)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨))|(今|明|前|大前|後|大後|聽|昨|尋|琴)(?:日|天)(?:[\\s|,|,]*)(?:(上(?:午|晝)|朝(?:早)|早(?:上)|下(?:午|晝)|晏(?:晝)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨)))?`,`i`)}innerExtract(e,t){let n=t.index,r=e.createParsingResult(n,t[0]),i=e.refDate,a=new Date(i.getTime());if(t[qF])r.start.imply(`hour`,i.getHours()),r.start.imply(`minute`,i.getMinutes()),r.start.imply(`second`,i.getSeconds()),r.start.imply(`millisecond`,i.getMilliseconds());else if(t[JF]){let e=t[JF],n=t[YF];e==`明`||e==`聽`?i.getHours()>1&&a.setDate(a.getDate()+1):e==`昨`||e==`尋`||e==`琴`?a.setDate(a.getDate()-1):e==`前`?a.setDate(a.getDate()-2):e==`大前`?a.setDate(a.getDate()-3):e==`後`?a.setDate(a.getDate()+2):e==`大後`&&a.setDate(a.getDate()+3),n==`早`||n==`朝`?r.start.imply(`hour`,6):n==`晚`&&(r.start.imply(`hour`,22),r.start.imply(`meridiem`,1))}else if(t[XF]){let e=t[XF][0];e==`早`||e==`朝`||e==`上`?r.start.imply(`hour`,6):e==`下`||e==`晏`?(r.start.imply(`hour`,15),r.start.imply(`meridiem`,1)):e==`中`?(r.start.imply(`hour`,12),r.start.imply(`meridiem`,1)):e==`夜`||e==`晚`?(r.start.imply(`hour`,22),r.start.imply(`meridiem`,1)):e==`凌`&&r.start.imply(`hour`,0)}else if(t[ZF]){let e=t[ZF];e==`明`||e==`聽`?i.getHours()>1&&a.setDate(a.getDate()+1):e==`昨`||e==`尋`||e==`琴`?a.setDate(a.getDate()-1):e==`前`?a.setDate(a.getDate()-2):e==`大前`?a.setDate(a.getDate()-3):e==`後`?a.setDate(a.getDate()+2):e==`大後`&&a.setDate(a.getDate()+3);let n=t[QF];if(n){let e=n[0];e==`早`||e==`朝`||e==`上`?r.start.imply(`hour`,6):e==`下`||e==`晏`?(r.start.imply(`hour`,15),r.start.imply(`meridiem`,1)):e==`中`?(r.start.imply(`hour`,12),r.start.imply(`meridiem`,1)):e==`夜`||e==`晚`?(r.start.imply(`hour`,22),r.start.imply(`meridiem`,1)):e==`凌`&&r.start.imply(`hour`,0)}}return r.start.assign(`day`,a.getDate()),r.start.assign(`month`,a.getMonth()+1),r.start.assign(`year`,a.getFullYear()),r}},eI={零:0,一:1,二:2,兩:2,三:3,四:4,五:5,六:6,七:7,八:8,九:9,十:10,廿:20,卅:30},tI={天:0,日:0,一:1,二:2,三:3,四:4,五:5,六:6};function nI(e){let t=0;for(let n=0;n<e.length;n++){let r=e[n];r===`十`?t=t===0?eI[r]:t*eI[r]:t+=eI[r]}return t}function rI(e){let t=``;for(let n=0;n<e.length;n++){let r=e[n];t+=eI[r]}return parseInt(t)}var iI=1,aI=2,oI=3,sI=class extends JM{innerPattern(){return RegExp(`(\\d{2,4}|[`+Object.keys(eI).join(``)+`]{4}|[`+Object.keys(eI).join(``)+`]{2})?(?:\\s*)(?:年)?(?:[\\s|,|,]*)(\\d{1,2}|[`+Object.keys(eI).join(``)+`]{1,2})(?:\\s*)(?:月)(?:\\s*)(\\d{1,2}|[`+Object.keys(eI).join(``)+`]{1,2})?(?:\\s*)(?:日|號)?`)}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),r=parseInt(t[aI]);if(isNaN(r)&&(r=nI(t[aI])),n.start.assign(`month`,r),t[oI]){let e=parseInt(t[oI]);isNaN(e)&&(e=nI(t[oI])),n.start.assign(`day`,e)}else n.start.imply(`day`,e.refDate.getDate());if(t[iI]){let e=parseInt(t[iI]);isNaN(e)&&(e=rI(t[iI])),n.start.assign(`year`,e)}else n.start.imply(`year`,e.refDate.getFullYear());return n}},cI=RegExp(`(\\d+|[`+Object.keys(eI).join(``)+`]+|半|幾)(?:\\s*)(?:個)?(秒(?:鐘)?|分鐘|小時|鐘|日|天|星期|禮拜|月|年)(?:(?:之|過)?後|(?:之)?內)`,`i`),lI=1,uI=2,dI=class extends JM{innerPattern(){return cI}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),r=parseInt(t[lI]);if(isNaN(r)&&(r=nI(t[lI])),isNaN(r)){let e=t[lI];if(e===`幾`)r=3;else if(e===`半`)r=.5;else return null}let i={},a=t[uI][0];if(a.match(/[日天星禮月年]/)){a==`日`||a==`天`?i.day=r:a==`星`||a==`禮`?i.week=r:a==`月`?i.month=r:a==`年`&&(i.year=r);let t=_M(e.refDate,i);return n.start.assign(`year`,t.getFullYear()),n.start.assign(`month`,t.getMonth()+1),n.start.assign(`day`,t.getDate()),n}a==`秒`?i.second=r:a==`分`?i.minute=r:(a==`小`||a==`鐘`)&&(i.hour=r);let o=_M(e.refDate,i);return n.start.imply(`year`,o.getFullYear()),n.start.imply(`month`,o.getMonth()+1),n.start.imply(`day`,o.getDate()),n.start.assign(`hour`,o.getHours()),n.start.assign(`minute`,o.getMinutes()),n.start.assign(`second`,o.getSeconds()),n}},fI=RegExp(`(?<prefix>上|今|下|這|呢)(?:個)?(?:星期|禮拜|週)(?<weekday>`+Object.keys(tI).join(`|`)+`)`),pI=class extends JM{innerPattern(){return fI}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),r=tI[t.groups.weekday];if(r===void 0)return null;let i=null,a=t.groups.prefix;a==`上`?i=`last`:a==`下`?i=`next`:(a==`今`||a==`這`||a==`呢`)&&(i=`this`);let o=new Date(e.refDate.getTime()),s=!1,c=o.getDay();if(i==`last`||i==`past`)o.setDate(o.getDate()+(r-7-c)),s=!0;else if(i==`next`)o.setDate(o.getDate()+(r+7-c)),s=!0;else if(i==`this`)o.setDate(o.getDate()+(r-c));else{let e=r-c;Math.abs(e-7)<Math.abs(e)&&(e-=7),Math.abs(e+7)<Math.abs(e)&&(e+=7),o.setDate(o.getDate()+e)}return n.start.assign(`weekday`,r),s?(n.start.assign(`day`,o.getDate()),n.start.assign(`month`,o.getMonth()+1),n.start.assign(`year`,o.getFullYear())):(n.start.imply(`day`,o.getDate()),n.start.imply(`month`,o.getMonth()+1),n.start.imply(`year`,o.getFullYear())),n}},mI=RegExp(`(?:由|從|自)?(?:(今|明|前|大前|後|大後|聽|昨|尋|琴)(早|朝|晚)|(上(?:午|晝)|朝(?:早)|早(?:上)|下(?:午|晝)|晏(?:晝)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨))|(今|明|前|大前|後|大後|聽|昨|尋|琴)(?:日|天)(?:[\\s,,]*)(?:(上(?:午|晝)|朝(?:早)|早(?:上)|下(?:午|晝)|晏(?:晝)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨)))?)?(?:[\\s,,]*)(?:(\\d+|[`+Object.keys(eI).join(``)+`]+)(?:\\s*)(?:點|時|:|:)(?:\\s*)(\\d+|半|正|整|[`+Object.keys(eI).join(``)+`]+)?(?:\\s*)(?:分|:|:)?(?:\\s*)(\\d+|[`+Object.keys(eI).join(``)+`]+)?(?:\\s*)(?:秒)?)(?:\\s*(A.M.|P.M.|AM?|PM?))?`,`i`),hI=RegExp(`(?:^\\s*(?:到|至|\\-|\\–|\\~|\\〜)\\s*)(?:(今|明|前|大前|後|大後|聽|昨|尋|琴)(早|朝|晚)|(上(?:午|晝)|朝(?:早)|早(?:上)|下(?:午|晝)|晏(?:晝)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨))|(今|明|前|大前|後|大後|聽|昨|尋|琴)(?:日|天)(?:[\\s,,]*)(?:(上(?:午|晝)|朝(?:早)|早(?:上)|下(?:午|晝)|晏(?:晝)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨)))?)?(?:[\\s,,]*)(?:(\\d+|[`+Object.keys(eI).join(``)+`]+)(?:\\s*)(?:點|時|:|:)(?:\\s*)(\\d+|半|正|整|[`+Object.keys(eI).join(``)+`]+)?(?:\\s*)(?:分|:|:)?(?:\\s*)(\\d+|[`+Object.keys(eI).join(``)+`]+)?(?:\\s*)(?:秒)?)(?:\\s*(A.M.|P.M.|AM?|PM?))?`,`i`),gI=1,_I=2,vI=3,yI=4,bI=5,xI=6,SI=7,CI=8,wI=9,TI=class extends JM{patternLeftBoundary(){return`()`}innerPattern(){return mI}innerExtract(e,t){if(t.index>0&&e.text[t.index-1].match(/\w/))return null;let n=e.createParsingResult(t.index,t[0]),r=new Date(e.reference.instant.getTime());if(t[gI]){let i=t[gI];i==`明`||i==`聽`?e.refDate.getHours()>1&&r.setDate(r.getDate()+1):i==`昨`||i==`尋`||i==`琴`?r.setDate(r.getDate()-1):i==`前`?r.setDate(r.getDate()-2):i==`大前`?r.setDate(r.getDate()-3):i==`後`?r.setDate(r.getDate()+2):i==`大後`&&r.setDate(r.getDate()+3),n.start.assign(`day`,r.getDate()),n.start.assign(`month`,r.getMonth()+1),n.start.assign(`year`,r.getFullYear())}else if(t[yI]){let e=t[yI];e==`明`||e==`聽`?r.setDate(r.getDate()+1):e==`昨`||e==`尋`||e==`琴`?r.setDate(r.getDate()-1):e==`前`?r.setDate(r.getDate()-2):e==`大前`?r.setDate(r.getDate()-3):e==`後`?r.setDate(r.getDate()+2):e==`大後`&&r.setDate(r.getDate()+3),n.start.assign(`day`,r.getDate()),n.start.assign(`month`,r.getMonth()+1),n.start.assign(`year`,r.getFullYear())}else n.start.imply(`day`,r.getDate()),n.start.imply(`month`,r.getMonth()+1),n.start.imply(`year`,r.getFullYear());let i=0,a=0,o=-1;if(t[CI]){var s=parseInt(t[CI]);if(isNaN(s)&&(s=nI(t[CI])),s>=60)return null;n.start.assign(`second`,s)}if(i=parseInt(t[xI]),isNaN(i)&&(i=nI(t[xI])),t[SI]?t[SI]==`半`?a=30:t[SI]==`正`||t[SI]==`整`?a=0:(a=parseInt(t[SI]),isNaN(a)&&(a=nI(t[SI]))):i>100&&(a=i%100,i=Math.floor(i/100)),a>=60||i>24)return null;if(i>=12&&(o=1),t[wI]){if(i>12)return null;var c=t[wI][0].toLowerCase();c==`a`&&(o=0,i==12&&(i=0)),c==`p`&&(o=1,i!=12&&(i+=12))}else if(t[_I]){var l=t[_I][0];l==`朝`||l==`早`?(o=0,i==12&&(i=0)):l==`晚`&&(o=1,i!=12&&(i+=12))}else if(t[vI]){var u=t[vI][0];u==`上`||u==`朝`||u==`早`||u==`凌`?(o=0,i==12&&(i=0)):(u==`下`||u==`晏`||u==`晚`)&&(o=1,i!=12&&(i+=12))}else if(t[bI]){var d=t[bI][0];d==`上`||d==`朝`||d==`早`||d==`凌`?(o=0,i==12&&(i=0)):(d==`下`||d==`晏`||d==`晚`)&&(o=1,i!=12&&(i+=12))}n.start.assign(`hour`,i),n.start.assign(`minute`,a),o>=0?n.start.assign(`meridiem`,o):i<12?n.start.imply(`meridiem`,0):n.start.imply(`meridiem`,1);let f=hI.exec(e.text.substring(n.index+n.text.length));if(!f)return n.text.match(/^\d+$/)?null:n;let p=new Date(r.getTime());if((f[gI]||f[yI])&&(p=new Date(e.reference.instant.getTime())),n.end=e.createParsingComponents(),f[gI]){let t=f[gI];t==`明`||t==`聽`?e.refDate.getHours()>1&&p.setDate(p.getDate()+1):t==`昨`||t==`尋`||t==`琴`?p.setDate(p.getDate()-1):t==`前`?p.setDate(p.getDate()-2):t==`大前`?p.setDate(p.getDate()-3):t==`後`?p.setDate(p.getDate()+2):t==`大後`&&p.setDate(p.getDate()+3),n.end.assign(`day`,p.getDate()),n.end.assign(`month`,p.getMonth()+1),n.end.assign(`year`,p.getFullYear())}else if(f[yI]){let e=f[yI];e==`明`||e==`聽`?p.setDate(p.getDate()+1):e==`昨`||e==`尋`||e==`琴`?p.setDate(p.getDate()-1):e==`前`?p.setDate(p.getDate()-2):e==`大前`?p.setDate(p.getDate()-3):e==`後`?p.setDate(p.getDate()+2):e==`大後`&&p.setDate(p.getDate()+3),n.end.assign(`day`,p.getDate()),n.end.assign(`month`,p.getMonth()+1),n.end.assign(`year`,p.getFullYear())}else n.end.imply(`day`,p.getDate()),n.end.imply(`month`,p.getMonth()+1),n.end.imply(`year`,p.getFullYear());if(i=0,a=0,o=-1,f[CI]){let e=parseInt(f[CI]);if(isNaN(e)&&(e=nI(f[CI])),e>=60)return null;n.end.assign(`second`,e)}if(i=parseInt(f[xI]),isNaN(i)&&(i=nI(f[xI])),f[SI]?f[SI]==`半`?a=30:f[SI]==`正`||f[SI]==`整`?a=0:(a=parseInt(f[SI]),isNaN(a)&&(a=nI(f[SI]))):i>100&&(a=i%100,i=Math.floor(i/100)),a>=60||i>24)return null;if(i>=12&&(o=1),f[wI]){if(i>12)return null;var c=f[wI][0].toLowerCase();c==`a`&&(o=0,i==12&&(i=0)),c==`p`&&(o=1,i!=12&&(i+=12)),n.start.isCertain(`meridiem`)||(o==0?(n.start.imply(`meridiem`,0),n.start.get(`hour`)==12&&n.start.assign(`hour`,0)):(n.start.imply(`meridiem`,1),n.start.get(`hour`)!=12&&n.start.assign(`hour`,n.start.get(`hour`)+12)))}else if(f[_I]){var l=f[_I][0];l==`朝`||l==`早`?(o=0,i==12&&(i=0)):l==`晚`&&(o=1,i!=12&&(i+=12))}else if(f[vI]){var u=f[vI][0];u==`上`||u==`朝`||u==`早`||u==`凌`?(o=0,i==12&&(i=0)):(u==`下`||u==`晏`||u==`晚`)&&(o=1,i!=12&&(i+=12))}else if(f[bI]){var d=f[bI][0];d==`上`||d==`朝`||d==`早`||d==`凌`?(o=0,i==12&&(i=0)):(d==`下`||d==`晏`||d==`晚`)&&(o=1,i!=12&&(i+=12))}return n.text+=f[0],n.end.assign(`hour`,i),n.end.assign(`minute`,a),o>=0?n.end.assign(`meridiem`,o):n.start.isCertain(`meridiem`)&&n.start.get(`meridiem`)==1&&n.start.get(`hour`)>i?n.end.imply(`meridiem`,0):i>12&&n.end.imply(`meridiem`,1),n.end.date().getTime()<n.start.date().getTime()&&n.end.imply(`day`,n.end.get(`day`)+1),n}},EI=RegExp(`(?:星期|禮拜|週)(?<weekday>`+Object.keys(tI).join(`|`)+`)`),DI=class extends JM{innerPattern(){return EI}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),r=tI[t.groups.weekday];if(r===void 0)return null;let i=new Date(e.refDate.getTime()),a=r-i.getDay();return Math.abs(a-7)<Math.abs(a)&&(a-=7),Math.abs(a+7)<Math.abs(a)&&(a+=7),i.setDate(i.getDate()+a),n.start.assign(`weekday`,r),n.start.imply(`day`,i.getDate()),n.start.imply(`month`,i.getMonth()+1),n.start.imply(`year`,i.getFullYear()),n}},OI=class extends WN{patternBetween(){return/^\s*(至|到|\-|\~|~|-|ー)\s*$/i}},kI=class extends JN{patternBetween(){return/^\s*$/i}},AI=new _F(MI());new _F(NI());function jI(e,t,n){return AI.parseDate(e,t,n)}function MI(){let e=NI();return e.parsers.unshift(new $F),e}function NI(){let e=wP({parsers:[new sI,new EF,new pI,new MF,new DI,new KF,new TI,new WF,new dI,new AF],refiners:[new OI,new kI]});return e.refiners=e.refiners.filter(e=>!(e instanceof nP)),e}var PI=c(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_isoWeek=r()})(e,(function(){"use strict";var e=`day`;return function(t,n,r){var i=function(t){return t.add(4-t.isoWeekday(),e)},a=n.prototype;a.isoWeekYear=function(){return i(this).year()},a.isoWeek=function(t){if(!this.$utils().u(t))return this.add(7*(t-this.isoWeek()),e);var n,a,o,s,c=i(this),l=(n=this.isoWeekYear(),a=this.$u,o=(a?r.utc:r)().year(n).startOf(`year`),s=4-o.isoWeekday(),o.isoWeekday()>4&&(s+=7),o.add(s,e));return c.diff(l,`week`)+1},a.isoWeekday=function(e){return this.$utils().u(e)?this.day()||7:this.day(this.day()%7?e:e-7)};var o=a.startOf;a.startOf=function(e,t){var n=this.$utils(),r=!!n.u(t)||t;return n.p(e)===`isoweek`?r?this.date(this.date()-(this.isoWeekday()-1)).startOf(`day`):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf(`day`):o.bind(this)(e,t)}}}))})),FI=d(ob()),II=d(PI());FI.default.extend(II.default);function LI(){return(0,FI.default)().startOf(`isoWeek`).toDate()}var RI=/大*后天/g;function zI(e){if(!RI.test(e))return e;let t=(0,FI.default)();return RI.lastIndex=0,e.replace(RI,e=>{let n=2+(e.length-2);return t.add(n,`day`).format(`YYYY年MM月DD日`)})}function BI(e){let t=zI(e),n=jI(t,{instant:/(?:本|这|上|下)?(?:周|星期)/.test(t)?LI():new Date});return n?(0,FI.default)(n).format(`YYYY-MM-DD HH:mm:ss`):`无法解析,请输入具体时间`}var VI={parse_relative_date:{def:{type:`function`,function:{name:`parse_relative_date`,description:`把相对时间转成绝对时间`,parameters:{type:`object`,properties:{input:{type:`string`,description:`相对时间`}},required:[`input`]}}},handler:e=>BI(e.input)}},HI=class extends HTMLElement{appRef;promise;resolve;constructor(){super(),this.attachShadow({mode:`open`}),this.promise=new Promise(e=>{this.resolve=e})}connectedCallback(){this.shadowRoot&&(this.appRef=iM({domNode:this.shadowRoot,onReady:()=>this.resolve()}))}ready(){return this.promise}async pushMessage(e){await this.promise,this.appRef?.current?.pushMessage(e)}async pushMessages(e){await this.promise,this.appRef?.current?.pushMessages(e)}async pushLoadingMessage(){await this.promise,this.appRef?.current?.pushLoadingMessage()}async updateLoadingMessageReasoningContent(e){await this.promise,this.appRef?.current?.updateLoadingMessageReasoningContent(e)}async updateLoadingMessageContent(e){await this.promise,this.appRef?.current?.updateLoadingMessageContent(e)}};customElements.define(`ai-chat-panel`,HI),e.AIChatPanel=class{on=p.on;panelElement;constructor(e){let{container:t}=e;if(!t)throw Error(`未提供有效的 container`);this.panelElement=document.createElement(`ai-chat-panel`),t.appendChild(this.panelElement)}ready(){return this.panelElement.ready()}pushMessage(e){return this.panelElement.pushMessage(e)}pushMessages(e){return this.panelElement.pushMessages(e)}pushLoadingMessage(){return this.panelElement.pushLoadingMessage()}updateLoadingMessageReasoningContent(e){return this.panelElement.updateLoadingMessageReasoningContent(e)}updateLoadingMessageContent(e){return this.panelElement.updateLoadingMessageContent(e)}},e.Agent=Li,e.tools=VI});