@muonroi/ui-engine-rule-components 0.1.2 → 0.1.5-alpha.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.
- package/dist/components/decision-table/mu-decision-table.d.ts +8 -1
- package/dist/components/decision-table/mu-decision-table.d.ts.map +1 -1
- package/dist/components/result-panel/MuRuleResultPanel.d.ts +16 -0
- package/dist/components/result-panel/MuRuleResultPanel.d.ts.map +1 -0
- package/dist/components/result-panel/mu-rule-result-panel.d.ts +19 -0
- package/dist/components/result-panel/mu-rule-result-panel.d.ts.map +1 -0
- package/dist/components/rule-flow/CatalogPaletteSection.d.ts +11 -0
- package/dist/components/rule-flow/CatalogPaletteSection.d.ts.map +1 -0
- package/dist/components/rule-flow/MuRuleFlowEditor.d.ts +19 -0
- package/dist/components/rule-flow/MuRuleFlowEditor.d.ts.map +1 -0
- package/dist/components/rule-flow/mu-rule-flow-designer.d.ts +26 -0
- package/dist/components/rule-flow/mu-rule-flow-designer.d.ts.map +1 -1
- package/dist/components/rule-flow/rule-flow-authoring.d.ts +22 -0
- package/dist/components/rule-flow/rule-flow-authoring.d.ts.map +1 -0
- package/dist/components/rule-flow/rule-flow-helpers.d.ts +48 -0
- package/dist/components/rule-flow/rule-flow-helpers.d.ts.map +1 -0
- package/dist/components/rule-flow/rule-flow-inspector.d.ts +102 -0
- package/dist/components/rule-flow/rule-flow-inspector.d.ts.map +1 -0
- package/dist/components/rule-flow/rule-flow-runtime.d.ts +8 -0
- package/dist/components/rule-flow/rule-flow-runtime.d.ts.map +1 -0
- package/dist/components/rule-flow/rule-flow-theme.d.ts +88 -0
- package/dist/components/rule-flow/rule-flow-theme.d.ts.map +1 -0
- package/dist/components/shared/mu-ui-engine-app.d.ts +1 -0
- package/dist/components/shared/mu-ui-engine-app.d.ts.map +1 -1
- package/dist/components/trace-viewer/MuRuleTraceViewer.d.ts +22 -0
- package/dist/components/trace-viewer/MuRuleTraceViewer.d.ts.map +1 -0
- package/dist/components/trace-viewer/mu-rule-trace-viewer.d.ts +33 -0
- package/dist/components/trace-viewer/mu-rule-trace-viewer.d.ts.map +1 -0
- package/dist/hooks/useRuleFlowHistory.d.ts +11 -0
- package/dist/hooks/useRuleFlowHistory.d.ts.map +1 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/models/result-models.d.ts +33 -0
- package/dist/models/result-models.d.ts.map +1 -0
- package/dist/models/rule-flow.d.ts +164 -0
- package/dist/models/rule-flow.d.ts.map +1 -0
- package/dist/models/trace-models.d.ts +57 -0
- package/dist/models/trace-models.d.ts.map +1 -0
- package/dist/models.d.ts +28 -0
- package/dist/models.d.ts.map +1 -1
- package/dist/muonroi-flow-components.css +1 -0
- package/dist/muonroi-flow-components.iife.js +757 -0
- package/dist/muonroi-rule-components.css +1 -1
- package/dist/muonroi-rule-components.esm.js +35241 -2987
- package/dist/muonroi-rule-components.iife.js +1253 -563
- package/dist/muonroi-trace-components.iife.js +459 -0
- package/dist/register-flow.d.ts +9 -0
- package/dist/register-flow.d.ts.map +1 -0
- package/dist/register-trace.d.ts +8 -0
- package/dist/register-trace.d.ts.map +1 -0
- package/dist/registry.d.ts +2 -0
- package/dist/registry.d.ts.map +1 -1
- package/dist/runtime/request-context.d.ts +12 -0
- package/dist/runtime/request-context.d.ts.map +1 -0
- package/dist/services/feel-service.d.ts.map +1 -1
- package/dist/services/rule-catalog-service.d.ts +20 -0
- package/dist/services/rule-catalog-service.d.ts.map +1 -0
- package/dist/services/rule-engine-api.d.ts +2 -0
- package/dist/services/rule-engine-api.d.ts.map +1 -1
- package/dist/services/rule-flow-contract-service.d.ts +40 -0
- package/dist/services/rule-flow-contract-service.d.ts.map +1 -0
- package/dist/services/trace-api.d.ts +28 -0
- package/dist/services/trace-api.d.ts.map +1 -0
- package/dist/utils/m-rule-flow-graph-converter.d.ts +9 -0
- package/dist/utils/m-rule-flow-graph-converter.d.ts.map +1 -0
- package/package.json +9 -2
|
@@ -0,0 +1,757 @@
|
|
|
1
|
+
var k8=Object.defineProperty;var M8=(ll,To,Ys)=>To in ll?k8(ll,To,{enumerable:!0,configurable:!0,writable:!0,value:Ys}):ll[To]=Ys;var IM=(ll,To,Ys)=>M8(ll,typeof To!="symbol"?To+"":To,Ys);(function(){"use strict";/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2019 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
|
+
*/var oR;const ll=globalThis,To=ll.ShadowRoot&&(ll.ShadyCSS===void 0||ll.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ys=Symbol(),q1=new WeakMap;let G1=class{constructor(a,l,c){if(this._$cssResult$=!0,c!==Ys)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=a,this.t=l}get styleSheet(){let a=this.o;const l=this.t;if(To&&a===void 0){const c=l!==void 0&&l.length===1;c&&(a=q1.get(l)),a===void 0&&((this.o=a=new CSSStyleSheet).replaceSync(this.cssText),c&&q1.set(l,a))}return a}toString(){return this.cssText}};const dx=n=>new G1(typeof n=="string"?n:n+"",void 0,Ys),K1=(n,...a)=>{const l=n.length===1?n[0]:a.reduce((c,f,v)=>c+(p=>{if(p._$cssResult$===!0)return p.cssText;if(typeof p=="number")return p;throw Error("Value passed to 'css' function must be a 'css' function result: "+p+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(f)+n[v+1],n[0]);return new G1(l,n,Ys)},BM=(n,a)=>{if(To)n.adoptedStyleSheets=a.map(l=>l instanceof CSSStyleSheet?l:l.styleSheet);else for(const l of a){const c=document.createElement("style"),f=ll.litNonce;f!==void 0&&c.setAttribute("nonce",f),c.textContent=l.cssText,n.appendChild(c)}},X1=To?n=>n:n=>n instanceof CSSStyleSheet?(a=>{let l="";for(const c of a.cssRules)l+=c.cssText;return dx(l)})(n):n;/**
|
|
6
|
+
* @license
|
|
7
|
+
* Copyright 2017 Google LLC
|
|
8
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
9
|
+
*/const{is:HM,defineProperty:VM,getOwnPropertyDescriptor:YM,getOwnPropertyNames:WM,getOwnPropertySymbols:qM,getPrototypeOf:GM}=Object,Ws=globalThis,Q1=Ws.trustedTypes,KM=Q1?Q1.emptyScript:"",px=Ws.reactiveElementPolyfillSupport,Lp=(n,a)=>n,xm={toAttribute(n,a){switch(a){case Boolean:n=n?KM:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,a){let l=n;switch(a){case Boolean:l=n!==null;break;case Number:l=n===null?null:Number(n);break;case Object:case Array:try{l=JSON.parse(n)}catch{l=null}}return l}},hx=(n,a)=>!HM(n,a),J1={attribute:!0,type:String,converter:xm,reflect:!1,useDefault:!1,hasChanged:hx};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),Ws.litPropertyMetadata??(Ws.litPropertyMetadata=new WeakMap);let Mf=class extends HTMLElement{static addInitializer(a){this._$Ei(),(this.l??(this.l=[])).push(a)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(a,l=J1){if(l.state&&(l.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(a)&&((l=Object.create(l)).wrapped=!0),this.elementProperties.set(a,l),!l.noAccessor){const c=Symbol(),f=this.getPropertyDescriptor(a,c,l);f!==void 0&&VM(this.prototype,a,f)}}static getPropertyDescriptor(a,l,c){const{get:f,set:v}=YM(this.prototype,a)??{get(){return this[l]},set(p){this[l]=p}};return{get:f,set(p){const g=f==null?void 0:f.call(this);v==null||v.call(this,p),this.requestUpdate(a,g,c)},configurable:!0,enumerable:!0}}static getPropertyOptions(a){return this.elementProperties.get(a)??J1}static _$Ei(){if(this.hasOwnProperty(Lp("elementProperties")))return;const a=GM(this);a.finalize(),a.l!==void 0&&(this.l=[...a.l]),this.elementProperties=new Map(a.elementProperties)}static finalize(){if(this.hasOwnProperty(Lp("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Lp("properties"))){const l=this.properties,c=[...WM(l),...qM(l)];for(const f of c)this.createProperty(f,l[f])}const a=this[Symbol.metadata];if(a!==null){const l=litPropertyMetadata.get(a);if(l!==void 0)for(const[c,f]of l)this.elementProperties.set(c,f)}this._$Eh=new Map;for(const[l,c]of this.elementProperties){const f=this._$Eu(l,c);f!==void 0&&this._$Eh.set(f,l)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(a){const l=[];if(Array.isArray(a)){const c=new Set(a.flat(1/0).reverse());for(const f of c)l.unshift(X1(f))}else a!==void 0&&l.push(X1(a));return l}static _$Eu(a,l){const c=l.attribute;return c===!1?void 0:typeof c=="string"?c:typeof a=="string"?a.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var a;this._$ES=new Promise(l=>this.enableUpdating=l),this._$AL=new Map,this._$E_(),this.requestUpdate(),(a=this.constructor.l)==null||a.forEach(l=>l(this))}addController(a){var l;(this._$EO??(this._$EO=new Set)).add(a),this.renderRoot!==void 0&&this.isConnected&&((l=a.hostConnected)==null||l.call(a))}removeController(a){var l;(l=this._$EO)==null||l.delete(a)}_$E_(){const a=new Map,l=this.constructor.elementProperties;for(const c of l.keys())this.hasOwnProperty(c)&&(a.set(c,this[c]),delete this[c]);a.size>0&&(this._$Ep=a)}createRenderRoot(){const a=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return BM(a,this.constructor.elementStyles),a}connectedCallback(){var a;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(a=this._$EO)==null||a.forEach(l=>{var c;return(c=l.hostConnected)==null?void 0:c.call(l)})}enableUpdating(a){}disconnectedCallback(){var a;(a=this._$EO)==null||a.forEach(l=>{var c;return(c=l.hostDisconnected)==null?void 0:c.call(l)})}attributeChangedCallback(a,l,c){this._$AK(a,c)}_$ET(a,l){var v;const c=this.constructor.elementProperties.get(a),f=this.constructor._$Eu(a,c);if(f!==void 0&&c.reflect===!0){const p=(((v=c.converter)==null?void 0:v.toAttribute)!==void 0?c.converter:xm).toAttribute(l,c.type);this._$Em=a,p==null?this.removeAttribute(f):this.setAttribute(f,p),this._$Em=null}}_$AK(a,l){var v,p;const c=this.constructor,f=c._$Eh.get(a);if(f!==void 0&&this._$Em!==f){const g=c.getPropertyOptions(f),x=typeof g.converter=="function"?{fromAttribute:g.converter}:((v=g.converter)==null?void 0:v.fromAttribute)!==void 0?g.converter:xm;this._$Em=f;const S=x.fromAttribute(l,g.type);this[f]=S??((p=this._$Ej)==null?void 0:p.get(f))??S,this._$Em=null}}requestUpdate(a,l,c,f=!1,v){var p;if(a!==void 0){const g=this.constructor;if(f===!1&&(v=this[a]),c??(c=g.getPropertyOptions(a)),!((c.hasChanged??hx)(v,l)||c.useDefault&&c.reflect&&v===((p=this._$Ej)==null?void 0:p.get(a))&&!this.hasAttribute(g._$Eu(a,c))))return;this.C(a,l,c)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(a,l,{useDefault:c,reflect:f,wrapped:v},p){c&&!(this._$Ej??(this._$Ej=new Map)).has(a)&&(this._$Ej.set(a,p??l??this[a]),v!==!0||p!==void 0)||(this._$AL.has(a)||(this.hasUpdated||c||(l=void 0),this._$AL.set(a,l)),f===!0&&this._$Em!==a&&(this._$Eq??(this._$Eq=new Set)).add(a))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(l){Promise.reject(l)}const a=this.scheduleUpdate();return a!=null&&await a,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var c;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[v,p]of this._$Ep)this[v]=p;this._$Ep=void 0}const f=this.constructor.elementProperties;if(f.size>0)for(const[v,p]of f){const{wrapped:g}=p,x=this[v];g!==!0||this._$AL.has(v)||x===void 0||this.C(v,void 0,p,x)}}let a=!1;const l=this._$AL;try{a=this.shouldUpdate(l),a?(this.willUpdate(l),(c=this._$EO)==null||c.forEach(f=>{var v;return(v=f.hostUpdate)==null?void 0:v.call(f)}),this.update(l)):this._$EM()}catch(f){throw a=!1,this._$EM(),f}a&&this._$AE(l)}willUpdate(a){}_$AE(a){var l;(l=this._$EO)==null||l.forEach(c=>{var f;return(f=c.hostUpdated)==null?void 0:f.call(c)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(a)),this.updated(a)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(a){return!0}update(a){this._$Eq&&(this._$Eq=this._$Eq.forEach(l=>this._$ET(l,this[l]))),this._$EM()}updated(a){}firstUpdated(a){}};Mf.elementStyles=[],Mf.shadowRootOptions={mode:"open"},Mf[Lp("elementProperties")]=new Map,Mf[Lp("finalized")]=new Map,px==null||px({ReactiveElement:Mf}),(Ws.reactiveElementVersions??(Ws.reactiveElementVersions=[])).push("2.1.2");/**
|
|
10
|
+
* @license
|
|
11
|
+
* Copyright 2017 Google LLC
|
|
12
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
13
|
+
*/const zp=globalThis,Z1=n=>n,bm=zp.trustedTypes,eC=bm?bm.createPolicy("lit-html",{createHTML:n=>n}):void 0,tC="$lit$",qs=`lit$${Math.random().toFixed(9).slice(2)}$`,nC="?"+qs,XM=`<${nC}>`,Qu=document,jp=()=>Qu.createComment(""),Pp=n=>n===null||typeof n!="object"&&typeof n!="function",vx=Array.isArray,QM=n=>vx(n)||typeof(n==null?void 0:n[Symbol.iterator])=="function",mx=`[
|
|
14
|
+
\f\r]`,$p=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,rC=/-->/g,aC=/>/g,Ju=RegExp(`>|${mx}(?:([^\\s"'>=/]+)(${mx}*=${mx}*(?:[^
|
|
15
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),iC=/'/g,oC=/"/g,lC=/^(?:script|style|textarea|title)$/i,JM=n=>(a,...l)=>({_$litType$:n,strings:a,values:l}),er=JM(1),Nf=Symbol.for("lit-noChange"),Bn=Symbol.for("lit-nothing"),sC=new WeakMap,Zu=Qu.createTreeWalker(Qu,129);function uC(n,a){if(!vx(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return eC!==void 0?eC.createHTML(a):a}const ZM=(n,a)=>{const l=n.length-1,c=[];let f,v=a===2?"<svg>":a===3?"<math>":"",p=$p;for(let g=0;g<l;g++){const x=n[g];let S,E,w=-1,_=0;for(;_<x.length&&(p.lastIndex=_,E=p.exec(x),E!==null);)_=p.lastIndex,p===$p?E[1]==="!--"?p=rC:E[1]!==void 0?p=aC:E[2]!==void 0?(lC.test(E[2])&&(f=RegExp("</"+E[2],"g")),p=Ju):E[3]!==void 0&&(p=Ju):p===Ju?E[0]===">"?(p=f??$p,w=-1):E[1]===void 0?w=-2:(w=p.lastIndex-E[2].length,S=E[1],p=E[3]===void 0?Ju:E[3]==='"'?oC:iC):p===oC||p===iC?p=Ju:p===rC||p===aC?p=$p:(p=Ju,f=void 0);const N=p===Ju&&n[g+1].startsWith("/>")?" ":"";v+=p===$p?x+XM:w>=0?(c.push(S),x.slice(0,w)+tC+x.slice(w)+qs+N):x+qs+(w===-2?g:N)}return[uC(n,v+(n[l]||"<?>")+(a===2?"</svg>":a===3?"</math>":"")),c]};class Up{constructor({strings:a,_$litType$:l},c){let f;this.parts=[];let v=0,p=0;const g=a.length-1,x=this.parts,[S,E]=ZM(a,l);if(this.el=Up.createElement(S,c),Zu.currentNode=this.el.content,l===2||l===3){const w=this.el.content.firstChild;w.replaceWith(...w.childNodes)}for(;(f=Zu.nextNode())!==null&&x.length<g;){if(f.nodeType===1){if(f.hasAttributes())for(const w of f.getAttributeNames())if(w.endsWith(tC)){const _=E[p++],N=f.getAttribute(w).split(qs),D=/([.?@])?(.*)/.exec(_);x.push({type:1,index:v,name:D[2],strings:N,ctor:D[1]==="."?tN:D[1]==="?"?nN:D[1]==="@"?rN:wm}),f.removeAttribute(w)}else w.startsWith(qs)&&(x.push({type:6,index:v}),f.removeAttribute(w));if(lC.test(f.tagName)){const w=f.textContent.split(qs),_=w.length-1;if(_>0){f.textContent=bm?bm.emptyScript:"";for(let N=0;N<_;N++)f.append(w[N],jp()),Zu.nextNode(),x.push({type:2,index:++v});f.append(w[_],jp())}}}else if(f.nodeType===8)if(f.data===nC)x.push({type:2,index:v});else{let w=-1;for(;(w=f.data.indexOf(qs,w+1))!==-1;)x.push({type:7,index:v}),w+=qs.length-1}v++}}static createElement(a,l){const c=Qu.createElement("template");return c.innerHTML=a,c}}function Df(n,a,l=n,c){var p,g;if(a===Nf)return a;let f=c!==void 0?(p=l._$Co)==null?void 0:p[c]:l._$Cl;const v=Pp(a)?void 0:a._$litDirective$;return(f==null?void 0:f.constructor)!==v&&((g=f==null?void 0:f._$AO)==null||g.call(f,!1),v===void 0?f=void 0:(f=new v(n),f._$AT(n,l,c)),c!==void 0?(l._$Co??(l._$Co=[]))[c]=f:l._$Cl=f),f!==void 0&&(a=Df(n,f._$AS(n,a.values),f,c)),a}class eN{constructor(a,l){this._$AV=[],this._$AN=void 0,this._$AD=a,this._$AM=l}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(a){const{el:{content:l},parts:c}=this._$AD,f=((a==null?void 0:a.creationScope)??Qu).importNode(l,!0);Zu.currentNode=f;let v=Zu.nextNode(),p=0,g=0,x=c[0];for(;x!==void 0;){if(p===x.index){let S;x.type===2?S=new Fp(v,v.nextSibling,this,a):x.type===1?S=new x.ctor(v,x.name,x.strings,this,a):x.type===6&&(S=new aN(v,this,a)),this._$AV.push(S),x=c[++g]}p!==(x==null?void 0:x.index)&&(v=Zu.nextNode(),p++)}return Zu.currentNode=Qu,f}p(a){let l=0;for(const c of this._$AV)c!==void 0&&(c.strings!==void 0?(c._$AI(a,c,l),l+=c.strings.length-2):c._$AI(a[l])),l++}}class Fp{get _$AU(){var a;return((a=this._$AM)==null?void 0:a._$AU)??this._$Cv}constructor(a,l,c,f){this.type=2,this._$AH=Bn,this._$AN=void 0,this._$AA=a,this._$AB=l,this._$AM=c,this.options=f,this._$Cv=(f==null?void 0:f.isConnected)??!0}get parentNode(){let a=this._$AA.parentNode;const l=this._$AM;return l!==void 0&&(a==null?void 0:a.nodeType)===11&&(a=l.parentNode),a}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(a,l=this){a=Df(this,a,l),Pp(a)?a===Bn||a==null||a===""?(this._$AH!==Bn&&this._$AR(),this._$AH=Bn):a!==this._$AH&&a!==Nf&&this._(a):a._$litType$!==void 0?this.$(a):a.nodeType!==void 0?this.T(a):QM(a)?this.k(a):this._(a)}O(a){return this._$AA.parentNode.insertBefore(a,this._$AB)}T(a){this._$AH!==a&&(this._$AR(),this._$AH=this.O(a))}_(a){this._$AH!==Bn&&Pp(this._$AH)?this._$AA.nextSibling.data=a:this.T(Qu.createTextNode(a)),this._$AH=a}$(a){var v;const{values:l,_$litType$:c}=a,f=typeof c=="number"?this._$AC(a):(c.el===void 0&&(c.el=Up.createElement(uC(c.h,c.h[0]),this.options)),c);if(((v=this._$AH)==null?void 0:v._$AD)===f)this._$AH.p(l);else{const p=new eN(f,this),g=p.u(this.options);p.p(l),this.T(g),this._$AH=p}}_$AC(a){let l=sC.get(a.strings);return l===void 0&&sC.set(a.strings,l=new Up(a)),l}k(a){vx(this._$AH)||(this._$AH=[],this._$AR());const l=this._$AH;let c,f=0;for(const v of a)f===l.length?l.push(c=new Fp(this.O(jp()),this.O(jp()),this,this.options)):c=l[f],c._$AI(v),f++;f<l.length&&(this._$AR(c&&c._$AB.nextSibling,f),l.length=f)}_$AR(a=this._$AA.nextSibling,l){var c;for((c=this._$AP)==null?void 0:c.call(this,!1,!0,l);a!==this._$AB;){const f=Z1(a).nextSibling;Z1(a).remove(),a=f}}setConnected(a){var l;this._$AM===void 0&&(this._$Cv=a,(l=this._$AP)==null||l.call(this,a))}}class wm{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(a,l,c,f,v){this.type=1,this._$AH=Bn,this._$AN=void 0,this.element=a,this.name=l,this._$AM=f,this.options=v,c.length>2||c[0]!==""||c[1]!==""?(this._$AH=Array(c.length-1).fill(new String),this.strings=c):this._$AH=Bn}_$AI(a,l=this,c,f){const v=this.strings;let p=!1;if(v===void 0)a=Df(this,a,l,0),p=!Pp(a)||a!==this._$AH&&a!==Nf,p&&(this._$AH=a);else{const g=a;let x,S;for(a=v[0],x=0;x<v.length-1;x++)S=Df(this,g[c+x],l,x),S===Nf&&(S=this._$AH[x]),p||(p=!Pp(S)||S!==this._$AH[x]),S===Bn?a=Bn:a!==Bn&&(a+=(S??"")+v[x+1]),this._$AH[x]=S}p&&!f&&this.j(a)}j(a){a===Bn?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,a??"")}}class tN extends wm{constructor(){super(...arguments),this.type=3}j(a){this.element[this.name]=a===Bn?void 0:a}}class nN extends wm{constructor(){super(...arguments),this.type=4}j(a){this.element.toggleAttribute(this.name,!!a&&a!==Bn)}}class rN extends wm{constructor(a,l,c,f,v){super(a,l,c,f,v),this.type=5}_$AI(a,l=this){if((a=Df(this,a,l,0)??Bn)===Nf)return;const c=this._$AH,f=a===Bn&&c!==Bn||a.capture!==c.capture||a.once!==c.once||a.passive!==c.passive,v=a!==Bn&&(c===Bn||f);f&&this.element.removeEventListener(this.name,this,c),v&&this.element.addEventListener(this.name,this,a),this._$AH=a}handleEvent(a){var l;typeof this._$AH=="function"?this._$AH.call(((l=this.options)==null?void 0:l.host)??this.element,a):this._$AH.handleEvent(a)}}class aN{constructor(a,l,c){this.element=a,this.type=6,this._$AN=void 0,this._$AM=l,this.options=c}get _$AU(){return this._$AM._$AU}_$AI(a){Df(this,a)}}const gx=zp.litHtmlPolyfillSupport;gx==null||gx(Up,Fp),(zp.litHtmlVersions??(zp.litHtmlVersions=[])).push("3.3.2");const iN=(n,a,l)=>{const c=(l==null?void 0:l.renderBefore)??a;let f=c._$litPart$;if(f===void 0){const v=(l==null?void 0:l.renderBefore)??null;c._$litPart$=f=new Fp(a.insertBefore(jp(),v),v,void 0,l??{})}return f._$AI(n),f};/**
|
|
16
|
+
* @license
|
|
17
|
+
* Copyright 2017 Google LLC
|
|
18
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
19
|
+
*/const ec=globalThis;class tc extends Mf{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var l;const a=super.createRenderRoot();return(l=this.renderOptions).renderBefore??(l.renderBefore=a.firstChild),a}update(a){const l=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(a),this._$Do=iN(l,this.renderRoot,this.renderOptions)}connectedCallback(){var a;super.connectedCallback(),(a=this._$Do)==null||a.setConnected(!0)}disconnectedCallback(){var a;super.disconnectedCallback(),(a=this._$Do)==null||a.setConnected(!1)}render(){return Nf}}tc._$litElement$=!0,tc.finalized=!0,(oR=ec.litElementHydrateSupport)==null||oR.call(ec,{LitElement:tc});const yx=ec.litElementPolyfillSupport;yx==null||yx({LitElement:tc}),(ec.litElementVersions??(ec.litElementVersions=[])).push("4.2.2");/**
|
|
20
|
+
* @license
|
|
21
|
+
* Copyright 2017 Google LLC
|
|
22
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
23
|
+
*/const xx=n=>(a,l)=>{l!==void 0?l.addInitializer(()=>{customElements.define(n,a)}):customElements.define(n,a)};/**
|
|
24
|
+
* @license
|
|
25
|
+
* Copyright 2017 Google LLC
|
|
26
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
27
|
+
*/const oN={attribute:!0,type:String,converter:xm,reflect:!1,hasChanged:hx},lN=(n=oN,a,l)=>{const{kind:c,metadata:f}=l;let v=globalThis.litPropertyMetadata.get(f);if(v===void 0&&globalThis.litPropertyMetadata.set(f,v=new Map),c==="setter"&&((n=Object.create(n)).wrapped=!0),v.set(l.name,n),c==="accessor"){const{name:p}=l;return{set(g){const x=a.get.call(this);a.set.call(this,g),this.requestUpdate(p,x,n,!0,g)},init(g){return g!==void 0&&this.C(p,void 0,n,g),g}}}if(c==="setter"){const{name:p}=l;return function(g){const x=this[p];a.call(this,g),this.requestUpdate(p,x,n,!0,g)}}throw Error("Unsupported decorator location: "+c)};function sa(n){return(a,l)=>typeof l=="object"?lN(n,a,l):((c,f,v)=>{const p=f.hasOwnProperty(v);return f.constructor.createProperty(v,c),p?Object.getOwnPropertyDescriptor(f,v):void 0})(n,a,l)}/**
|
|
28
|
+
* @license
|
|
29
|
+
* Copyright 2017 Google LLC
|
|
30
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
31
|
+
*/function sl(n){return sa({...n,state:!0,attribute:!1})}function cC(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Af={},Sm={exports:{}},ui={},Cm={exports:{}},Wt={};/**
|
|
32
|
+
* @license React
|
|
33
|
+
* react.production.min.js
|
|
34
|
+
*
|
|
35
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
36
|
+
*
|
|
37
|
+
* This source code is licensed under the MIT license found in the
|
|
38
|
+
* LICENSE file in the root directory of this source tree.
|
|
39
|
+
*/var fC;function sN(){if(fC)return Wt;fC=1;var n=Symbol.for("react.element"),a=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),v=Symbol.for("react.provider"),p=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),S=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),w=Symbol.iterator;function _(B){return B===null||typeof B!="object"?null:(B=w&&B[w]||B["@@iterator"],typeof B=="function"?B:null)}var N={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},D=Object.assign,R={};function j(B,K,ke){this.props=B,this.context=K,this.refs=R,this.updater=ke||N}j.prototype.isReactComponent={},j.prototype.setState=function(B,K){if(typeof B!="object"&&typeof B!="function"&&B!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,B,K,"setState")},j.prototype.forceUpdate=function(B){this.updater.enqueueForceUpdate(this,B,"forceUpdate")};function z(){}z.prototype=j.prototype;function U(B,K,ke){this.props=B,this.context=K,this.refs=R,this.updater=ke||N}var L=U.prototype=new z;L.constructor=U,D(L,j.prototype),L.isPureReactComponent=!0;var $=Array.isArray,H=Object.prototype.hasOwnProperty,I={current:null},q={key:!0,ref:!0,__self:!0,__source:!0};function ie(B,K,ke){var Re,Oe={},$e=null,Ie=null;if(K!=null)for(Re in K.ref!==void 0&&(Ie=K.ref),K.key!==void 0&&($e=""+K.key),K)H.call(K,Re)&&!q.hasOwnProperty(Re)&&(Oe[Re]=K[Re]);var Te=arguments.length-2;if(Te===1)Oe.children=ke;else if(1<Te){for(var Ne=Array(Te),Ve=0;Ve<Te;Ve++)Ne[Ve]=arguments[Ve+2];Oe.children=Ne}if(B&&B.defaultProps)for(Re in Te=B.defaultProps,Te)Oe[Re]===void 0&&(Oe[Re]=Te[Re]);return{$$typeof:n,type:B,key:$e,ref:Ie,props:Oe,_owner:I.current}}function fe(B,K){return{$$typeof:n,type:B.type,key:K,ref:B.ref,props:B.props,_owner:B._owner}}function Se(B){return typeof B=="object"&&B!==null&&B.$$typeof===n}function oe(B){var K={"=":"=0",":":"=2"};return"$"+B.replace(/[=:]/g,function(ke){return K[ke]})}var de=/\/+/g;function he(B,K){return typeof B=="object"&&B!==null&&B.key!=null?oe(""+B.key):K.toString(36)}function V(B,K,ke,Re,Oe){var $e=typeof B;($e==="undefined"||$e==="boolean")&&(B=null);var Ie=!1;if(B===null)Ie=!0;else switch($e){case"string":case"number":Ie=!0;break;case"object":switch(B.$$typeof){case n:case a:Ie=!0}}if(Ie)return Ie=B,Oe=Oe(Ie),B=Re===""?"."+he(Ie,0):Re,$(Oe)?(ke="",B!=null&&(ke=B.replace(de,"$&/")+"/"),V(Oe,K,ke,"",function(Ve){return Ve})):Oe!=null&&(Se(Oe)&&(Oe=fe(Oe,ke+(!Oe.key||Ie&&Ie.key===Oe.key?"":(""+Oe.key).replace(de,"$&/")+"/")+B)),K.push(Oe)),1;if(Ie=0,Re=Re===""?".":Re+":",$(B))for(var Te=0;Te<B.length;Te++){$e=B[Te];var Ne=Re+he($e,Te);Ie+=V($e,K,ke,Ne,Oe)}else if(Ne=_(B),typeof Ne=="function")for(B=Ne.call(B),Te=0;!($e=B.next()).done;)$e=$e.value,Ne=Re+he($e,Te++),Ie+=V($e,K,ke,Ne,Oe);else if($e==="object")throw K=String(B),Error("Objects are not valid as a React child (found: "+(K==="[object Object]"?"object with keys {"+Object.keys(B).join(", ")+"}":K)+"). If you meant to render a collection of children, use an array instead.");return Ie}function ce(B,K,ke){if(B==null)return B;var Re=[],Oe=0;return V(B,Re,"","",function($e){return K.call(ke,$e,Oe++)}),Re}function Z(B){if(B._status===-1){var K=B._result;K=K(),K.then(function(ke){(B._status===0||B._status===-1)&&(B._status=1,B._result=ke)},function(ke){(B._status===0||B._status===-1)&&(B._status=2,B._result=ke)}),B._status===-1&&(B._status=0,B._result=K)}if(B._status===1)return B._result.default;throw B._result}var te={current:null},Y={transition:null},J={ReactCurrentDispatcher:te,ReactCurrentBatchConfig:Y,ReactCurrentOwner:I};function ne(){throw Error("act(...) is not supported in production builds of React.")}return Wt.Children={map:ce,forEach:function(B,K,ke){ce(B,function(){K.apply(this,arguments)},ke)},count:function(B){var K=0;return ce(B,function(){K++}),K},toArray:function(B){return ce(B,function(K){return K})||[]},only:function(B){if(!Se(B))throw Error("React.Children.only expected to receive a single React element child.");return B}},Wt.Component=j,Wt.Fragment=l,Wt.Profiler=f,Wt.PureComponent=U,Wt.StrictMode=c,Wt.Suspense=x,Wt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=J,Wt.act=ne,Wt.cloneElement=function(B,K,ke){if(B==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+B+".");var Re=D({},B.props),Oe=B.key,$e=B.ref,Ie=B._owner;if(K!=null){if(K.ref!==void 0&&($e=K.ref,Ie=I.current),K.key!==void 0&&(Oe=""+K.key),B.type&&B.type.defaultProps)var Te=B.type.defaultProps;for(Ne in K)H.call(K,Ne)&&!q.hasOwnProperty(Ne)&&(Re[Ne]=K[Ne]===void 0&&Te!==void 0?Te[Ne]:K[Ne])}var Ne=arguments.length-2;if(Ne===1)Re.children=ke;else if(1<Ne){Te=Array(Ne);for(var Ve=0;Ve<Ne;Ve++)Te[Ve]=arguments[Ve+2];Re.children=Te}return{$$typeof:n,type:B.type,key:Oe,ref:$e,props:Re,_owner:Ie}},Wt.createContext=function(B){return B={$$typeof:p,_currentValue:B,_currentValue2:B,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},B.Provider={$$typeof:v,_context:B},B.Consumer=B},Wt.createElement=ie,Wt.createFactory=function(B){var K=ie.bind(null,B);return K.type=B,K},Wt.createRef=function(){return{current:null}},Wt.forwardRef=function(B){return{$$typeof:g,render:B}},Wt.isValidElement=Se,Wt.lazy=function(B){return{$$typeof:E,_payload:{_status:-1,_result:B},_init:Z}},Wt.memo=function(B,K){return{$$typeof:S,type:B,compare:K===void 0?null:K}},Wt.startTransition=function(B){var K=Y.transition;Y.transition={};try{B()}finally{Y.transition=K}},Wt.unstable_act=ne,Wt.useCallback=function(B,K){return te.current.useCallback(B,K)},Wt.useContext=function(B){return te.current.useContext(B)},Wt.useDebugValue=function(){},Wt.useDeferredValue=function(B){return te.current.useDeferredValue(B)},Wt.useEffect=function(B,K){return te.current.useEffect(B,K)},Wt.useId=function(){return te.current.useId()},Wt.useImperativeHandle=function(B,K,ke){return te.current.useImperativeHandle(B,K,ke)},Wt.useInsertionEffect=function(B,K){return te.current.useInsertionEffect(B,K)},Wt.useLayoutEffect=function(B,K){return te.current.useLayoutEffect(B,K)},Wt.useMemo=function(B,K){return te.current.useMemo(B,K)},Wt.useReducer=function(B,K,ke){return te.current.useReducer(B,K,ke)},Wt.useRef=function(B){return te.current.useRef(B)},Wt.useState=function(B){return te.current.useState(B)},Wt.useSyncExternalStore=function(B,K,ke){return te.current.useSyncExternalStore(B,K,ke)},Wt.useTransition=function(){return te.current.useTransition()},Wt.version="18.3.1",Wt}var Ip={exports:{}};/**
|
|
40
|
+
* @license React
|
|
41
|
+
* react.development.js
|
|
42
|
+
*
|
|
43
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
44
|
+
*
|
|
45
|
+
* This source code is licensed under the MIT license found in the
|
|
46
|
+
* LICENSE file in the root directory of this source tree.
|
|
47
|
+
*/Ip.exports;var dC;function uN(){return dC||(dC=1,(function(n,a){process.env.NODE_ENV!=="production"&&(function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var l="18.3.1",c=Symbol.for("react.element"),f=Symbol.for("react.portal"),v=Symbol.for("react.fragment"),p=Symbol.for("react.strict_mode"),g=Symbol.for("react.profiler"),x=Symbol.for("react.provider"),S=Symbol.for("react.context"),E=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),_=Symbol.for("react.suspense_list"),N=Symbol.for("react.memo"),D=Symbol.for("react.lazy"),R=Symbol.for("react.offscreen"),j=Symbol.iterator,z="@@iterator";function U(A){if(A===null||typeof A!="object")return null;var X=j&&A[j]||A[z];return typeof X=="function"?X:null}var L={current:null},$={transition:null},H={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},I={current:null},q={},ie=null;function fe(A){ie=A}q.setExtraStackFrame=function(A){ie=A},q.getCurrentStack=null,q.getStackAddendum=function(){var A="";ie&&(A+=ie);var X=q.getCurrentStack;return X&&(A+=X()||""),A};var Se=!1,oe=!1,de=!1,he=!1,V=!1,ce={ReactCurrentDispatcher:L,ReactCurrentBatchConfig:$,ReactCurrentOwner:I};ce.ReactDebugCurrentFrame=q,ce.ReactCurrentActQueue=H;function Z(A){{for(var X=arguments.length,xe=new Array(X>1?X-1:0),Ce=1;Ce<X;Ce++)xe[Ce-1]=arguments[Ce];Y("warn",A,xe)}}function te(A){{for(var X=arguments.length,xe=new Array(X>1?X-1:0),Ce=1;Ce<X;Ce++)xe[Ce-1]=arguments[Ce];Y("error",A,xe)}}function Y(A,X,xe){{var Ce=ce.ReactDebugCurrentFrame,Be=Ce.getStackAddendum();Be!==""&&(X+="%s",xe=xe.concat([Be]));var wt=xe.map(function(Ge){return String(Ge)});wt.unshift("Warning: "+X),Function.prototype.apply.call(console[A],console,wt)}}var J={};function ne(A,X){{var xe=A.constructor,Ce=xe&&(xe.displayName||xe.name)||"ReactClass",Be=Ce+"."+X;if(J[Be])return;te("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.",X,Ce),J[Be]=!0}}var B={isMounted:function(A){return!1},enqueueForceUpdate:function(A,X,xe){ne(A,"forceUpdate")},enqueueReplaceState:function(A,X,xe,Ce){ne(A,"replaceState")},enqueueSetState:function(A,X,xe,Ce){ne(A,"setState")}},K=Object.assign,ke={};Object.freeze(ke);function Re(A,X,xe){this.props=A,this.context=X,this.refs=ke,this.updater=xe||B}Re.prototype.isReactComponent={},Re.prototype.setState=function(A,X){if(typeof A!="object"&&typeof A!="function"&&A!=null)throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,A,X,"setState")},Re.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};{var Oe={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)."]},$e=function(A,X){Object.defineProperty(Re.prototype,A,{get:function(){Z("%s(...) is deprecated in plain JavaScript React classes. %s",X[0],X[1])}})};for(var Ie in Oe)Oe.hasOwnProperty(Ie)&&$e(Ie,Oe[Ie])}function Te(){}Te.prototype=Re.prototype;function Ne(A,X,xe){this.props=A,this.context=X,this.refs=ke,this.updater=xe||B}var Ve=Ne.prototype=new Te;Ve.constructor=Ne,K(Ve,Re.prototype),Ve.isPureReactComponent=!0;function Ke(){var A={current:null};return Object.seal(A),A}var Ye=Array.isArray;function Xe(A){return Ye(A)}function ht(A){{var X=typeof Symbol=="function"&&Symbol.toStringTag,xe=X&&A[Symbol.toStringTag]||A.constructor.name||"Object";return xe}}function Nt(A){try{return vt(A),!1}catch{return!0}}function vt(A){return""+A}function Jt(A){if(Nt(A))return te("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ht(A)),vt(A)}function nr(A,X,xe){var Ce=A.displayName;if(Ce)return Ce;var Be=X.displayName||X.name||"";return Be!==""?xe+"("+Be+")":xe}function Dn(A){return A.displayName||"Context"}function qt(A){if(A==null)return null;if(typeof A.tag=="number"&&te("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof A=="function")return A.displayName||A.name||null;if(typeof A=="string")return A;switch(A){case v:return"Fragment";case f:return"Portal";case g:return"Profiler";case p:return"StrictMode";case w:return"Suspense";case _:return"SuspenseList"}if(typeof A=="object")switch(A.$$typeof){case S:var X=A;return Dn(X)+".Consumer";case x:var xe=A;return Dn(xe._context)+".Provider";case E:return nr(A,A.render,"ForwardRef");case N:var Ce=A.displayName||null;return Ce!==null?Ce:qt(A.type)||"Memo";case D:{var Be=A,wt=Be._payload,Ge=Be._init;try{return qt(Ge(wt))}catch{return null}}}return null}var ln=Object.prototype.hasOwnProperty,vn={key:!0,ref:!0,__self:!0,__source:!0},jn,Pr,kn;kn={};function xn(A){if(ln.call(A,"ref")){var X=Object.getOwnPropertyDescriptor(A,"ref").get;if(X&&X.isReactWarning)return!1}return A.ref!==void 0}function qn(A){if(ln.call(A,"key")){var X=Object.getOwnPropertyDescriptor(A,"key").get;if(X&&X.isReactWarning)return!1}return A.key!==void 0}function ea(A,X){var xe=function(){jn||(jn=!0,te("%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://reactjs.org/link/special-props)",X))};xe.isReactWarning=!0,Object.defineProperty(A,"key",{get:xe,configurable:!0})}function Mr(A,X){var xe=function(){Pr||(Pr=!0,te("%s: `ref` 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://reactjs.org/link/special-props)",X))};xe.isReactWarning=!0,Object.defineProperty(A,"ref",{get:xe,configurable:!0})}function He(A){if(typeof A.ref=="string"&&I.current&&A.__self&&I.current.stateNode!==A.__self){var X=qt(I.current.type);kn[X]||(te('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',X,A.ref),kn[X]=!0)}}var lt=function(A,X,xe,Ce,Be,wt,Ge){var Et={$$typeof:c,type:A,key:X,ref:xe,props:Ge,_owner:wt};return Et._store={},Object.defineProperty(Et._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Et,"_self",{configurable:!1,enumerable:!1,writable:!1,value:Ce}),Object.defineProperty(Et,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Be}),Object.freeze&&(Object.freeze(Et.props),Object.freeze(Et)),Et};function Tt(A,X,xe){var Ce,Be={},wt=null,Ge=null,Et=null,Ht=null;if(X!=null){xn(X)&&(Ge=X.ref,He(X)),qn(X)&&(Jt(X.key),wt=""+X.key),Et=X.__self===void 0?null:X.__self,Ht=X.__source===void 0?null:X.__source;for(Ce in X)ln.call(X,Ce)&&!vn.hasOwnProperty(Ce)&&(Be[Ce]=X[Ce])}var nn=arguments.length-2;if(nn===1)Be.children=xe;else if(nn>1){for(var Ln=Array(nn),Cn=0;Cn<nn;Cn++)Ln[Cn]=arguments[Cn+2];Object.freeze&&Object.freeze(Ln),Be.children=Ln}if(A&&A.defaultProps){var Ft=A.defaultProps;for(Ce in Ft)Be[Ce]===void 0&&(Be[Ce]=Ft[Ce])}if(wt||Ge){var En=typeof A=="function"?A.displayName||A.name||"Unknown":A;wt&&ea(Be,En),Ge&&Mr(Be,En)}return lt(A,wt,Ge,Et,Ht,I.current,Be)}function Vt(A,X){var xe=lt(A.type,X,A.ref,A._self,A._source,A._owner,A.props);return xe}function ut(A,X,xe){if(A==null)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+A+".");var Ce,Be=K({},A.props),wt=A.key,Ge=A.ref,Et=A._self,Ht=A._source,nn=A._owner;if(X!=null){xn(X)&&(Ge=X.ref,nn=I.current),qn(X)&&(Jt(X.key),wt=""+X.key);var Ln;A.type&&A.type.defaultProps&&(Ln=A.type.defaultProps);for(Ce in X)ln.call(X,Ce)&&!vn.hasOwnProperty(Ce)&&(X[Ce]===void 0&&Ln!==void 0?Be[Ce]=Ln[Ce]:Be[Ce]=X[Ce])}var Cn=arguments.length-2;if(Cn===1)Be.children=xe;else if(Cn>1){for(var Ft=Array(Cn),En=0;En<Cn;En++)Ft[En]=arguments[En+2];Be.children=Ft}return lt(A.type,wt,Ge,Et,Ht,nn,Be)}function Mn(A){return typeof A=="object"&&A!==null&&A.$$typeof===c}var bn=".",An=":";function Zt(A){var X=/[=:]/g,xe={"=":"=0",":":"=2"},Ce=A.replace(X,function(Be){return xe[Be]});return"$"+Ce}var sn=!1,an=/\/+/g;function Nr(A){return A.replace(an,"$&/")}function On(A,X){return typeof A=="object"&&A!==null&&A.key!=null?(Jt(A.key),Zt(""+A.key)):X.toString(36)}function $r(A,X,xe,Ce,Be){var wt=typeof A;(wt==="undefined"||wt==="boolean")&&(A=null);var Ge=!1;if(A===null)Ge=!0;else switch(wt){case"string":case"number":Ge=!0;break;case"object":switch(A.$$typeof){case c:case f:Ge=!0}}if(Ge){var Et=A,Ht=Be(Et),nn=Ce===""?bn+On(Et,0):Ce;if(Xe(Ht)){var Ln="";nn!=null&&(Ln=Nr(nn)+"/"),$r(Ht,X,Ln,"",function(gh){return gh})}else Ht!=null&&(Mn(Ht)&&(Ht.key&&(!Et||Et.key!==Ht.key)&&Jt(Ht.key),Ht=Vt(Ht,xe+(Ht.key&&(!Et||Et.key!==Ht.key)?Nr(""+Ht.key)+"/":"")+nn)),X.push(Ht));return 1}var Cn,Ft,En=0,Kn=Ce===""?bn:Ce+An;if(Xe(A))for(var wl=0;wl<A.length;wl++)Cn=A[wl],Ft=Kn+On(Cn,wl),En+=$r(Cn,X,xe,Ft,Be);else{var gc=U(A);if(typeof gc=="function"){var jo=A;gc===jo.entries&&(sn||Z("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),sn=!0);for(var yc=gc.call(jo),os,mh=0;!(os=yc.next()).done;)Cn=os.value,Ft=Kn+On(Cn,mh++),En+=$r(Cn,X,xe,Ft,Be)}else if(wt==="object"){var Qf=String(A);throw new Error("Objects are not valid as a React child (found: "+(Qf==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":Qf)+"). If you meant to render a collection of children, use an array instead.")}}return En}function ta(A,X,xe){if(A==null)return A;var Ce=[],Be=0;return $r(A,Ce,"","",function(wt){return X.call(xe,wt,Be++)}),Ce}function Dr(A){var X=0;return ta(A,function(){X++}),X}function Hn(A,X,xe){ta(A,function(){X.apply(this,arguments)},xe)}function Xa(A){return ta(A,function(X){return X})||[]}function Pn(A){if(!Mn(A))throw new Error("React.Children.only expected to receive a single React element child.");return A}function di(A){var X={$$typeof:S,_currentValue:A,_currentValue2:A,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};X.Provider={$$typeof:x,_context:X};var xe=!1,Ce=!1,Be=!1;{var wt={$$typeof:S,_context:X};Object.defineProperties(wt,{Provider:{get:function(){return Ce||(Ce=!0,te("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),X.Provider},set:function(Ge){X.Provider=Ge}},_currentValue:{get:function(){return X._currentValue},set:function(Ge){X._currentValue=Ge}},_currentValue2:{get:function(){return X._currentValue2},set:function(Ge){X._currentValue2=Ge}},_threadCount:{get:function(){return X._threadCount},set:function(Ge){X._threadCount=Ge}},Consumer:{get:function(){return xe||(xe=!0,te("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),X.Consumer}},displayName:{get:function(){return X.displayName},set:function(Ge){Be||(Z("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",Ge),Be=!0)}}}),X.Consumer=wt}return X._currentRenderer=null,X._currentRenderer2=null,X}var fr=-1,wr=0,Gn=1,ca=2;function fa(A){if(A._status===fr){var X=A._result,xe=X();if(xe.then(function(wt){if(A._status===wr||A._status===fr){var Ge=A;Ge._status=Gn,Ge._result=wt}},function(wt){if(A._status===wr||A._status===fr){var Ge=A;Ge._status=ca,Ge._result=wt}}),A._status===fr){var Ce=A;Ce._status=wr,Ce._result=xe}}if(A._status===Gn){var Be=A._result;return Be===void 0&&te(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
48
|
+
|
|
49
|
+
Your code should look like:
|
|
50
|
+
const MyComponent = lazy(() => import('./MyComponent'))
|
|
51
|
+
|
|
52
|
+
Did you accidentally put curly braces around the import?`,Be),"default"in Be||te(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
53
|
+
|
|
54
|
+
Your code should look like:
|
|
55
|
+
const MyComponent = lazy(() => import('./MyComponent'))`,Be),Be.default}else throw A._result}function da(A){var X={_status:fr,_result:A},xe={$$typeof:D,_payload:X,_init:fa};{var Ce,Be;Object.defineProperties(xe,{defaultProps:{configurable:!0,get:function(){return Ce},set:function(wt){te("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),Ce=wt,Object.defineProperty(xe,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return Be},set:function(wt){te("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),Be=wt,Object.defineProperty(xe,"propTypes",{enumerable:!0})}}})}return xe}function pa(A){A!=null&&A.$$typeof===N?te("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof A!="function"?te("forwardRef requires a render function but was given %s.",A===null?"null":typeof A):A.length!==0&&A.length!==2&&te("forwardRef render functions accept exactly two parameters: props and ref. %s",A.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),A!=null&&(A.defaultProps!=null||A.propTypes!=null)&&te("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");var X={$$typeof:E,render:A};{var xe;Object.defineProperty(X,"displayName",{enumerable:!1,configurable:!0,get:function(){return xe},set:function(Ce){xe=Ce,!A.name&&!A.displayName&&(A.displayName=Ce)}})}return X}var Q;Q=Symbol.for("react.module.reference");function De(A){return!!(typeof A=="string"||typeof A=="function"||A===v||A===g||V||A===p||A===w||A===_||he||A===R||Se||oe||de||typeof A=="object"&&A!==null&&(A.$$typeof===D||A.$$typeof===N||A.$$typeof===x||A.$$typeof===S||A.$$typeof===E||A.$$typeof===Q||A.getModuleId!==void 0))}function We(A,X){De(A)||te("memo: The first argument must be a component. Instead received: %s",A===null?"null":typeof A);var xe={$$typeof:N,type:A,compare:X===void 0?null:X};{var Ce;Object.defineProperty(xe,"displayName",{enumerable:!1,configurable:!0,get:function(){return Ce},set:function(Be){Ce=Be,!A.name&&!A.displayName&&(A.displayName=Be)}})}return xe}function nt(){var A=L.current;return A===null&&te(`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:
|
|
56
|
+
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
57
|
+
2. You might be breaking the Rules of Hooks
|
|
58
|
+
3. You might have more than one copy of React in the same app
|
|
59
|
+
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`),A}function Qe(A){var X=nt();if(A._context!==void 0){var xe=A._context;xe.Consumer===A?te("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):xe.Provider===A&&te("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return X.useContext(A)}function Rt(A){var X=nt();return X.useState(A)}function Pt(A,X,xe){var Ce=nt();return Ce.useReducer(A,X,xe)}function $t(A){var X=nt();return X.useRef(A)}function $n(A,X){var xe=nt();return xe.useEffect(A,X)}function mn(A,X){var xe=nt();return xe.useInsertionEffect(A,X)}function wn(A,X){var xe=nt();return xe.useLayoutEffect(A,X)}function rr(A,X){var xe=nt();return xe.useCallback(A,X)}function ha(A,X){var xe=nt();return xe.useMemo(A,X)}function na(A,X,xe){var Ce=nt();return Ce.useImperativeHandle(A,X,xe)}function kt(A,X){{var xe=nt();return xe.useDebugValue(A,X)}}function Ot(){var A=nt();return A.useTransition()}function G(A){var X=nt();return X.useDeferredValue(A)}function re(){var A=nt();return A.useId()}function Ae(A,X,xe){var Ce=nt();return Ce.useSyncExternalStore(A,X,xe)}var st=0,Je,It,en,Un,Sr,Qi,ru;function ml(){}ml.__reactDisabledLog=!0;function Ji(){{if(st===0){Je=console.log,It=console.info,en=console.warn,Un=console.error,Sr=console.group,Qi=console.groupCollapsed,ru=console.groupEnd;var A={configurable:!0,enumerable:!0,value:ml,writable:!0};Object.defineProperties(console,{info:A,log:A,warn:A,error:A,group:A,groupCollapsed:A,groupEnd:A})}st++}}function va(){{if(st--,st===0){var A={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:K({},A,{value:Je}),info:K({},A,{value:It}),warn:K({},A,{value:en}),error:K({},A,{value:Un}),group:K({},A,{value:Sr}),groupCollapsed:K({},A,{value:Qi}),groupEnd:K({},A,{value:ru})})}st<0&&te("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ra=ce.ReactCurrentDispatcher,Qa;function Oo(A,X,xe){{if(Qa===void 0)try{throw Error()}catch(Be){var Ce=Be.stack.trim().match(/\n( *(at )?)/);Qa=Ce&&Ce[1]||""}return`
|
|
60
|
+
`+Qa+A}}var Lo=!1,Zi;{var eo=typeof WeakMap=="function"?WeakMap:Map;Zi=new eo}function gl(A,X){if(!A||Lo)return"";{var xe=Zi.get(A);if(xe!==void 0)return xe}var Ce;Lo=!0;var Be=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var wt;wt=ra.current,ra.current=null,Ji();try{if(X){var Ge=function(){throw Error()};if(Object.defineProperty(Ge.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Ge,[])}catch(Kn){Ce=Kn}Reflect.construct(A,[],Ge)}else{try{Ge.call()}catch(Kn){Ce=Kn}A.call(Ge.prototype)}}else{try{throw Error()}catch(Kn){Ce=Kn}A()}}catch(Kn){if(Kn&&Ce&&typeof Kn.stack=="string"){for(var Et=Kn.stack.split(`
|
|
61
|
+
`),Ht=Ce.stack.split(`
|
|
62
|
+
`),nn=Et.length-1,Ln=Ht.length-1;nn>=1&&Ln>=0&&Et[nn]!==Ht[Ln];)Ln--;for(;nn>=1&&Ln>=0;nn--,Ln--)if(Et[nn]!==Ht[Ln]){if(nn!==1||Ln!==1)do if(nn--,Ln--,Ln<0||Et[nn]!==Ht[Ln]){var Cn=`
|
|
63
|
+
`+Et[nn].replace(" at new "," at ");return A.displayName&&Cn.includes("<anonymous>")&&(Cn=Cn.replace("<anonymous>",A.displayName)),typeof A=="function"&&Zi.set(A,Cn),Cn}while(nn>=1&&Ln>=0);break}}}finally{Lo=!1,ra.current=wt,va(),Error.prepareStackTrace=Be}var Ft=A?A.displayName||A.name:"",En=Ft?Oo(Ft):"";return typeof A=="function"&&Zi.set(A,En),En}function ji(A,X,xe){return gl(A,!1)}function au(A){var X=A.prototype;return!!(X&&X.isReactComponent)}function zo(A,X,xe){if(A==null)return"";if(typeof A=="function")return gl(A,au(A));if(typeof A=="string")return Oo(A);switch(A){case w:return Oo("Suspense");case _:return Oo("SuspenseList")}if(typeof A=="object")switch(A.$$typeof){case E:return ji(A.render);case N:return zo(A.type,X,xe);case D:{var Ce=A,Be=Ce._payload,wt=Ce._init;try{return zo(wt(Be),X,xe)}catch{}}}return""}var un={},iu=ce.ReactDebugCurrentFrame;function tn(A){if(A){var X=A._owner,xe=zo(A.type,A._source,X?X.type:null);iu.setExtraStackFrame(xe)}else iu.setExtraStackFrame(null)}function hc(A,X,xe,Ce,Be){{var wt=Function.call.bind(ln);for(var Ge in A)if(wt(A,Ge)){var Et=void 0;try{if(typeof A[Ge]!="function"){var Ht=Error((Ce||"React class")+": "+xe+" type `"+Ge+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof A[Ge]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Ht.name="Invariant Violation",Ht}Et=A[Ge](X,Ge,Ce,xe,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(nn){Et=nn}Et&&!(Et instanceof Error)&&(tn(Be),te("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",Ce||"React class",xe,Ge,typeof Et),tn(null)),Et instanceof Error&&!(Et.message in un)&&(un[Et.message]=!0,tn(Be),te("Failed %s type: %s",xe,Et.message),tn(null))}}}function to(A){if(A){var X=A._owner,xe=zo(A.type,A._source,X?X.type:null);fe(xe)}else fe(null)}var Lt;Lt=!1;function ou(){if(I.current){var A=qt(I.current.type);if(A)return`
|
|
64
|
+
|
|
65
|
+
Check the render method of \``+A+"`."}return""}function Ur(A){if(A!==void 0){var X=A.fileName.replace(/^.*[\\\/]/,""),xe=A.lineNumber;return`
|
|
66
|
+
|
|
67
|
+
Check your code at `+X+":"+xe+"."}return""}function no(A){return A!=null?Ur(A.__source):""}var ma={};function ro(A){var X=ou();if(!X){var xe=typeof A=="string"?A:A.displayName||A.name;xe&&(X=`
|
|
68
|
+
|
|
69
|
+
Check the top-level render call using <`+xe+">.")}return X}function Fn(A,X){if(!(!A._store||A._store.validated||A.key!=null)){A._store.validated=!0;var xe=ro(X);if(!ma[xe]){ma[xe]=!0;var Ce="";A&&A._owner&&A._owner!==I.current&&(Ce=" It was passed a child from "+qt(A._owner.type)+"."),to(A),te('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',xe,Ce),to(null)}}}function Sn(A,X){if(typeof A=="object"){if(Xe(A))for(var xe=0;xe<A.length;xe++){var Ce=A[xe];Mn(Ce)&&Fn(Ce,X)}else if(Mn(A))A._store&&(A._store.validated=!0);else if(A){var Be=U(A);if(typeof Be=="function"&&Be!==A.entries)for(var wt=Be.call(A),Ge;!(Ge=wt.next()).done;)Mn(Ge.value)&&Fn(Ge.value,X)}}}function yl(A){{var X=A.type;if(X==null||typeof X=="string")return;var xe;if(typeof X=="function")xe=X.propTypes;else if(typeof X=="object"&&(X.$$typeof===E||X.$$typeof===N))xe=X.propTypes;else return;if(xe){var Ce=qt(X);hc(xe,A.props,"prop",Ce,A)}else if(X.PropTypes!==void 0&&!Lt){Lt=!0;var Be=qt(X);te("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Be||"Unknown")}typeof X.getDefaultProps=="function"&&!X.getDefaultProps.isReactClassApproved&&te("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Cr(A){{for(var X=Object.keys(A.props),xe=0;xe<X.length;xe++){var Ce=X[xe];if(Ce!=="children"&&Ce!=="key"){to(A),te("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Ce),to(null);break}}A.ref!==null&&(to(A),te("Invalid attribute `ref` supplied to `React.Fragment`."),to(null))}}function ga(A,X,xe){var Ce=De(A);if(!Ce){var Be="";(A===void 0||typeof A=="object"&&A!==null&&Object.keys(A).length===0)&&(Be+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var wt=no(X);wt?Be+=wt:Be+=ou();var Ge;A===null?Ge="null":Xe(A)?Ge="array":A!==void 0&&A.$$typeof===c?(Ge="<"+(qt(A.type)||"Unknown")+" />",Be=" Did you accidentally export a JSX literal instead of a component?"):Ge=typeof A,te("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Ge,Be)}var Et=Tt.apply(this,arguments);if(Et==null)return Et;if(Ce)for(var Ht=2;Ht<arguments.length;Ht++)Sn(arguments[Ht],A);return A===v?Cr(Et):yl(Et),Et}var pi=!1;function rs(A){var X=ga.bind(null,A);return X.type=A,pi||(pi=!0,Z("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(X,"type",{enumerable:!1,get:function(){return Z("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:A}),A}}),X}function vc(A,X,xe){for(var Ce=ut.apply(this,arguments),Be=2;Be<arguments.length;Be++)Sn(arguments[Be],Ce.type);return yl(Ce),Ce}function mc(A,X){var xe=$.transition;$.transition={};var Ce=$.transition;$.transition._updatedFibers=new Set;try{A()}finally{if($.transition=xe,xe===null&&Ce._updatedFibers){var Be=Ce._updatedFibers.size;Be>10&&Z("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."),Ce._updatedFibers.clear()}}}var xl=!1,as=null;function vh(A){if(as===null)try{var X=("require"+Math.random()).slice(0,7),xe=n&&n[X];as=xe.call(n,"timers").setImmediate}catch{as=function(Be){xl===!1&&(xl=!0,typeof MessageChannel>"u"&&te("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 wt=new MessageChannel;wt.port1.onmessage=Be,wt.port2.postMessage(void 0)}}return as(A)}var hi=0,Pi=!1;function ao(A){{var X=hi;hi++,H.current===null&&(H.current=[]);var xe=H.isBatchingLegacy,Ce;try{if(H.isBatchingLegacy=!0,Ce=A(),!xe&&H.didScheduleLegacyUpdate){var Be=H.current;Be!==null&&(H.didScheduleLegacyUpdate=!1,bl(Be))}}catch(Ft){throw vi(X),Ft}finally{H.isBatchingLegacy=xe}if(Ce!==null&&typeof Ce=="object"&&typeof Ce.then=="function"){var wt=Ce,Ge=!1,Et={then:function(Ft,En){Ge=!0,wt.then(function(Kn){vi(X),hi===0?lu(Kn,Ft,En):Ft(Kn)},function(Kn){vi(X),En(Kn)})}};return!Pi&&typeof Promise<"u"&&Promise.resolve().then(function(){}).then(function(){Ge||(Pi=!0,te("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 () => ...);"))}),Et}else{var Ht=Ce;if(vi(X),hi===0){var nn=H.current;nn!==null&&(bl(nn),H.current=null);var Ln={then:function(Ft,En){H.current===null?(H.current=[],lu(Ht,Ft,En)):Ft(Ht)}};return Ln}else{var Cn={then:function(Ft,En){Ft(Ht)}};return Cn}}}}function vi(A){A!==hi-1&&te("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),hi=A}function lu(A,X,xe){{var Ce=H.current;if(Ce!==null)try{bl(Ce),vh(function(){Ce.length===0?(H.current=null,X(A)):lu(A,X,xe)})}catch(Be){xe(Be)}else X(A)}}var su=!1;function bl(A){if(!su){su=!0;var X=0;try{for(;X<A.length;X++){var xe=A[X];do xe=xe(!0);while(xe!==null)}A.length=0}catch(Ce){throw A=A.slice(X+1),Ce}finally{su=!1}}}var is=ga,uu=vc,cu=rs,$i={map:ta,forEach:Hn,count:Dr,toArray:Xa,only:Pn};a.Children=$i,a.Component=Re,a.Fragment=v,a.Profiler=g,a.PureComponent=Ne,a.StrictMode=p,a.Suspense=w,a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ce,a.act=ao,a.cloneElement=uu,a.createContext=di,a.createElement=is,a.createFactory=cu,a.createRef=Ke,a.forwardRef=pa,a.isValidElement=Mn,a.lazy=da,a.memo=We,a.startTransition=mc,a.unstable_act=ao,a.useCallback=rr,a.useContext=Qe,a.useDebugValue=kt,a.useDeferredValue=G,a.useEffect=$n,a.useId=re,a.useImperativeHandle=na,a.useInsertionEffect=mn,a.useLayoutEffect=wn,a.useMemo=ha,a.useReducer=Pt,a.useRef=$t,a.useState=Rt,a.useSyncExternalStore=Ae,a.useTransition=Ot,a.version=l,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)})()})(Ip,Ip.exports)),Ip.exports}var pC;function Jl(){return pC||(pC=1,process.env.NODE_ENV==="production"?Cm.exports=sN():Cm.exports=uN()),Cm.exports}var Em={exports:{}},bx={};/**
|
|
70
|
+
* @license React
|
|
71
|
+
* scheduler.production.min.js
|
|
72
|
+
*
|
|
73
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
74
|
+
*
|
|
75
|
+
* This source code is licensed under the MIT license found in the
|
|
76
|
+
* LICENSE file in the root directory of this source tree.
|
|
77
|
+
*/var hC;function cN(){return hC||(hC=1,(function(n){function a(Y,J){var ne=Y.length;Y.push(J);e:for(;0<ne;){var B=ne-1>>>1,K=Y[B];if(0<f(K,J))Y[B]=J,Y[ne]=K,ne=B;else break e}}function l(Y){return Y.length===0?null:Y[0]}function c(Y){if(Y.length===0)return null;var J=Y[0],ne=Y.pop();if(ne!==J){Y[0]=ne;e:for(var B=0,K=Y.length,ke=K>>>1;B<ke;){var Re=2*(B+1)-1,Oe=Y[Re],$e=Re+1,Ie=Y[$e];if(0>f(Oe,ne))$e<K&&0>f(Ie,Oe)?(Y[B]=Ie,Y[$e]=ne,B=$e):(Y[B]=Oe,Y[Re]=ne,B=Re);else if($e<K&&0>f(Ie,ne))Y[B]=Ie,Y[$e]=ne,B=$e;else break e}}return J}function f(Y,J){var ne=Y.sortIndex-J.sortIndex;return ne!==0?ne:Y.id-J.id}if(typeof performance=="object"&&typeof performance.now=="function"){var v=performance;n.unstable_now=function(){return v.now()}}else{var p=Date,g=p.now();n.unstable_now=function(){return p.now()-g}}var x=[],S=[],E=1,w=null,_=3,N=!1,D=!1,R=!1,j=typeof setTimeout=="function"?setTimeout:null,z=typeof clearTimeout=="function"?clearTimeout:null,U=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function L(Y){for(var J=l(S);J!==null;){if(J.callback===null)c(S);else if(J.startTime<=Y)c(S),J.sortIndex=J.expirationTime,a(x,J);else break;J=l(S)}}function $(Y){if(R=!1,L(Y),!D)if(l(x)!==null)D=!0,Z(H);else{var J=l(S);J!==null&&te($,J.startTime-Y)}}function H(Y,J){D=!1,R&&(R=!1,z(ie),ie=-1),N=!0;var ne=_;try{for(L(J),w=l(x);w!==null&&(!(w.expirationTime>J)||Y&&!oe());){var B=w.callback;if(typeof B=="function"){w.callback=null,_=w.priorityLevel;var K=B(w.expirationTime<=J);J=n.unstable_now(),typeof K=="function"?w.callback=K:w===l(x)&&c(x),L(J)}else c(x);w=l(x)}if(w!==null)var ke=!0;else{var Re=l(S);Re!==null&&te($,Re.startTime-J),ke=!1}return ke}finally{w=null,_=ne,N=!1}}var I=!1,q=null,ie=-1,fe=5,Se=-1;function oe(){return!(n.unstable_now()-Se<fe)}function de(){if(q!==null){var Y=n.unstable_now();Se=Y;var J=!0;try{J=q(!0,Y)}finally{J?he():(I=!1,q=null)}}else I=!1}var he;if(typeof U=="function")he=function(){U(de)};else if(typeof MessageChannel<"u"){var V=new MessageChannel,ce=V.port2;V.port1.onmessage=de,he=function(){ce.postMessage(null)}}else he=function(){j(de,0)};function Z(Y){q=Y,I||(I=!0,he())}function te(Y,J){ie=j(function(){Y(n.unstable_now())},J)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(Y){Y.callback=null},n.unstable_continueExecution=function(){D||N||(D=!0,Z(H))},n.unstable_forceFrameRate=function(Y){0>Y||125<Y?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):fe=0<Y?Math.floor(1e3/Y):5},n.unstable_getCurrentPriorityLevel=function(){return _},n.unstable_getFirstCallbackNode=function(){return l(x)},n.unstable_next=function(Y){switch(_){case 1:case 2:case 3:var J=3;break;default:J=_}var ne=_;_=J;try{return Y()}finally{_=ne}},n.unstable_pauseExecution=function(){},n.unstable_requestPaint=function(){},n.unstable_runWithPriority=function(Y,J){switch(Y){case 1:case 2:case 3:case 4:case 5:break;default:Y=3}var ne=_;_=Y;try{return J()}finally{_=ne}},n.unstable_scheduleCallback=function(Y,J,ne){var B=n.unstable_now();switch(typeof ne=="object"&&ne!==null?(ne=ne.delay,ne=typeof ne=="number"&&0<ne?B+ne:B):ne=B,Y){case 1:var K=-1;break;case 2:K=250;break;case 5:K=1073741823;break;case 4:K=1e4;break;default:K=5e3}return K=ne+K,Y={id:E++,callback:J,priorityLevel:Y,startTime:ne,expirationTime:K,sortIndex:-1},ne>B?(Y.sortIndex=ne,a(S,Y),l(x)===null&&Y===l(S)&&(R?(z(ie),ie=-1):R=!0,te($,ne-B))):(Y.sortIndex=K,a(x,Y),D||N||(D=!0,Z(H))),Y},n.unstable_shouldYield=oe,n.unstable_wrapCallback=function(Y){var J=_;return function(){var ne=_;_=J;try{return Y.apply(this,arguments)}finally{_=ne}}}})(bx)),bx}var wx={};/**
|
|
78
|
+
* @license React
|
|
79
|
+
* scheduler.development.js
|
|
80
|
+
*
|
|
81
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
82
|
+
*
|
|
83
|
+
* This source code is licensed under the MIT license found in the
|
|
84
|
+
* LICENSE file in the root directory of this source tree.
|
|
85
|
+
*/var vC;function fN(){return vC||(vC=1,(function(n){process.env.NODE_ENV!=="production"&&(function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var a=!1,l=5;function c(He,lt){var Tt=He.length;He.push(lt),p(He,lt,Tt)}function f(He){return He.length===0?null:He[0]}function v(He){if(He.length===0)return null;var lt=He[0],Tt=He.pop();return Tt!==lt&&(He[0]=Tt,g(He,Tt,0)),lt}function p(He,lt,Tt){for(var Vt=Tt;Vt>0;){var ut=Vt-1>>>1,Mn=He[ut];if(x(Mn,lt)>0)He[ut]=lt,He[Vt]=Mn,Vt=ut;else return}}function g(He,lt,Tt){for(var Vt=Tt,ut=He.length,Mn=ut>>>1;Vt<Mn;){var bn=(Vt+1)*2-1,An=He[bn],Zt=bn+1,sn=He[Zt];if(x(An,lt)<0)Zt<ut&&x(sn,An)<0?(He[Vt]=sn,He[Zt]=lt,Vt=Zt):(He[Vt]=An,He[bn]=lt,Vt=bn);else if(Zt<ut&&x(sn,lt)<0)He[Vt]=sn,He[Zt]=lt,Vt=Zt;else return}}function x(He,lt){var Tt=He.sortIndex-lt.sortIndex;return Tt!==0?Tt:He.id-lt.id}var S=1,E=2,w=3,_=4,N=5;function D(He,lt){}var R=typeof performance=="object"&&typeof performance.now=="function";if(R){var j=performance;n.unstable_now=function(){return j.now()}}else{var z=Date,U=z.now();n.unstable_now=function(){return z.now()-U}}var L=1073741823,$=-1,H=250,I=5e3,q=1e4,ie=L,fe=[],Se=[],oe=1,de=null,he=w,V=!1,ce=!1,Z=!1,te=typeof setTimeout=="function"?setTimeout:null,Y=typeof clearTimeout=="function"?clearTimeout:null,J=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function ne(He){for(var lt=f(Se);lt!==null;){if(lt.callback===null)v(Se);else if(lt.startTime<=He)v(Se),lt.sortIndex=lt.expirationTime,c(fe,lt);else return;lt=f(Se)}}function B(He){if(Z=!1,ne(He),!ce)if(f(fe)!==null)ce=!0,kn(K);else{var lt=f(Se);lt!==null&&xn(B,lt.startTime-He)}}function K(He,lt){ce=!1,Z&&(Z=!1,qn()),V=!0;var Tt=he;try{var Vt;if(!a)return ke(He,lt)}finally{de=null,he=Tt,V=!1}}function ke(He,lt){var Tt=lt;for(ne(Tt),de=f(fe);de!==null&&!(de.expirationTime>Tt&&(!He||nr()));){var Vt=de.callback;if(typeof Vt=="function"){de.callback=null,he=de.priorityLevel;var ut=de.expirationTime<=Tt,Mn=Vt(ut);Tt=n.unstable_now(),typeof Mn=="function"?de.callback=Mn:de===f(fe)&&v(fe),ne(Tt)}else v(fe);de=f(fe)}if(de!==null)return!0;var bn=f(Se);return bn!==null&&xn(B,bn.startTime-Tt),!1}function Re(He,lt){switch(He){case S:case E:case w:case _:case N:break;default:He=w}var Tt=he;he=He;try{return lt()}finally{he=Tt}}function Oe(He){var lt;switch(he){case S:case E:case w:lt=w;break;default:lt=he;break}var Tt=he;he=lt;try{return He()}finally{he=Tt}}function $e(He){var lt=he;return function(){var Tt=he;he=lt;try{return He.apply(this,arguments)}finally{he=Tt}}}function Ie(He,lt,Tt){var Vt=n.unstable_now(),ut;if(typeof Tt=="object"&&Tt!==null){var Mn=Tt.delay;typeof Mn=="number"&&Mn>0?ut=Vt+Mn:ut=Vt}else ut=Vt;var bn;switch(He){case S:bn=$;break;case E:bn=H;break;case N:bn=ie;break;case _:bn=q;break;case w:default:bn=I;break}var An=ut+bn,Zt={id:oe++,callback:lt,priorityLevel:He,startTime:ut,expirationTime:An,sortIndex:-1};return ut>Vt?(Zt.sortIndex=ut,c(Se,Zt),f(fe)===null&&Zt===f(Se)&&(Z?qn():Z=!0,xn(B,ut-Vt))):(Zt.sortIndex=An,c(fe,Zt),!ce&&!V&&(ce=!0,kn(K))),Zt}function Te(){}function Ne(){!ce&&!V&&(ce=!0,kn(K))}function Ve(){return f(fe)}function Ke(He){He.callback=null}function Ye(){return he}var Xe=!1,ht=null,Nt=-1,vt=l,Jt=-1;function nr(){var He=n.unstable_now()-Jt;return!(He<vt)}function Dn(){}function qt(He){if(He<0||He>125){console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported");return}He>0?vt=Math.floor(1e3/He):vt=l}var ln=function(){if(ht!==null){var He=n.unstable_now();Jt=He;var lt=!0,Tt=!0;try{Tt=ht(lt,He)}finally{Tt?vn():(Xe=!1,ht=null)}}else Xe=!1},vn;if(typeof J=="function")vn=function(){J(ln)};else if(typeof MessageChannel<"u"){var jn=new MessageChannel,Pr=jn.port2;jn.port1.onmessage=ln,vn=function(){Pr.postMessage(null)}}else vn=function(){te(ln,0)};function kn(He){ht=He,Xe||(Xe=!0,vn())}function xn(He,lt){Nt=te(function(){He(n.unstable_now())},lt)}function qn(){Y(Nt),Nt=-1}var ea=Dn,Mr=null;n.unstable_IdlePriority=N,n.unstable_ImmediatePriority=S,n.unstable_LowPriority=_,n.unstable_NormalPriority=w,n.unstable_Profiling=Mr,n.unstable_UserBlockingPriority=E,n.unstable_cancelCallback=Ke,n.unstable_continueExecution=Ne,n.unstable_forceFrameRate=qt,n.unstable_getCurrentPriorityLevel=Ye,n.unstable_getFirstCallbackNode=Ve,n.unstable_next=Oe,n.unstable_pauseExecution=Te,n.unstable_requestPaint=ea,n.unstable_runWithPriority=Re,n.unstable_scheduleCallback=Ie,n.unstable_shouldYield=nr,n.unstable_wrapCallback=$e,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)})()})(wx)),wx}var mC;function gC(){return mC||(mC=1,process.env.NODE_ENV==="production"?Em.exports=cN():Em.exports=fN()),Em.exports}/**
|
|
86
|
+
* @license React
|
|
87
|
+
* react-dom.production.min.js
|
|
88
|
+
*
|
|
89
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
90
|
+
*
|
|
91
|
+
* This source code is licensed under the MIT license found in the
|
|
92
|
+
* LICENSE file in the root directory of this source tree.
|
|
93
|
+
*/var yC;function dN(){if(yC)return ui;yC=1;var n=Jl(),a=gC();function l(r){for(var i="https://reactjs.org/docs/error-decoder.html?invariant="+r,u=1;u<arguments.length;u++)i+="&args[]="+encodeURIComponent(arguments[u]);return"Minified React error #"+r+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var c=new Set,f={};function v(r,i){p(r,i),p(r+"Capture",i)}function p(r,i){for(f[r]=i,r=0;r<i.length;r++)c.add(i[r])}var g=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),x=Object.prototype.hasOwnProperty,S=/^[: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]*$/,E={},w={};function _(r){return x.call(w,r)?!0:x.call(E,r)?!1:S.test(r)?w[r]=!0:(E[r]=!0,!1)}function N(r,i,u,h){if(u!==null&&u.type===0)return!1;switch(typeof i){case"function":case"symbol":return!0;case"boolean":return h?!1:u!==null?!u.acceptsBooleans:(r=r.toLowerCase().slice(0,5),r!=="data-"&&r!=="aria-");default:return!1}}function D(r,i,u,h){if(i===null||typeof i>"u"||N(r,i,u,h))return!0;if(h)return!1;if(u!==null)switch(u.type){case 3:return!i;case 4:return i===!1;case 5:return isNaN(i);case 6:return isNaN(i)||1>i}return!1}function R(r,i,u,h,y,C,O){this.acceptsBooleans=i===2||i===3||i===4,this.attributeName=h,this.attributeNamespace=y,this.mustUseProperty=u,this.propertyName=r,this.type=i,this.sanitizeURL=C,this.removeEmptyString=O}var j={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(r){j[r]=new R(r,0,!1,r,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(r){var i=r[0];j[i]=new R(i,1,!1,r[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(r){j[r]=new R(r,2,!1,r.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(r){j[r]=new R(r,2,!1,r,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(r){j[r]=new R(r,3,!1,r.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(r){j[r]=new R(r,3,!0,r,null,!1,!1)}),["capture","download"].forEach(function(r){j[r]=new R(r,4,!1,r,null,!1,!1)}),["cols","rows","size","span"].forEach(function(r){j[r]=new R(r,6,!1,r,null,!1,!1)}),["rowSpan","start"].forEach(function(r){j[r]=new R(r,5,!1,r.toLowerCase(),null,!1,!1)});var z=/[\-:]([a-z])/g;function U(r){return r[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(r){var i=r.replace(z,U);j[i]=new R(i,1,!1,r,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(r){var i=r.replace(z,U);j[i]=new R(i,1,!1,r,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(r){var i=r.replace(z,U);j[i]=new R(i,1,!1,r,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(r){j[r]=new R(r,1,!1,r.toLowerCase(),null,!1,!1)}),j.xlinkHref=new R("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(r){j[r]=new R(r,1,!1,r.toLowerCase(),null,!0,!0)});function L(r,i,u,h){var y=j.hasOwnProperty(i)?j[i]:null;(y!==null?y.type!==0:h||!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(D(i,u,y,h)&&(u=null),h||y===null?_(i)&&(u===null?r.removeAttribute(i):r.setAttribute(i,""+u)):y.mustUseProperty?r[y.propertyName]=u===null?y.type===3?!1:"":u:(i=y.attributeName,h=y.attributeNamespace,u===null?r.removeAttribute(i):(y=y.type,u=y===3||y===4&&u===!0?"":""+u,h?r.setAttributeNS(h,i,u):r.setAttribute(i,u))))}var $=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,H=Symbol.for("react.element"),I=Symbol.for("react.portal"),q=Symbol.for("react.fragment"),ie=Symbol.for("react.strict_mode"),fe=Symbol.for("react.profiler"),Se=Symbol.for("react.provider"),oe=Symbol.for("react.context"),de=Symbol.for("react.forward_ref"),he=Symbol.for("react.suspense"),V=Symbol.for("react.suspense_list"),ce=Symbol.for("react.memo"),Z=Symbol.for("react.lazy"),te=Symbol.for("react.offscreen"),Y=Symbol.iterator;function J(r){return r===null||typeof r!="object"?null:(r=Y&&r[Y]||r["@@iterator"],typeof r=="function"?r:null)}var ne=Object.assign,B;function K(r){if(B===void 0)try{throw Error()}catch(u){var i=u.stack.trim().match(/\n( *(at )?)/);B=i&&i[1]||""}return`
|
|
94
|
+
`+B+r}var ke=!1;function Re(r,i){if(!r||ke)return"";ke=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(i)if(i=function(){throw Error()},Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(i,[])}catch(be){var h=be}Reflect.construct(r,[],i)}else{try{i.call()}catch(be){h=be}r.call(i.prototype)}else{try{throw Error()}catch(be){h=be}r()}}catch(be){if(be&&h&&typeof be.stack=="string"){for(var y=be.stack.split(`
|
|
95
|
+
`),C=h.stack.split(`
|
|
96
|
+
`),O=y.length-1,W=C.length-1;1<=O&&0<=W&&y[O]!==C[W];)W--;for(;1<=O&&0<=W;O--,W--)if(y[O]!==C[W]){if(O!==1||W!==1)do if(O--,W--,0>W||y[O]!==C[W]){var ee=`
|
|
97
|
+
`+y[O].replace(" at new "," at ");return r.displayName&&ee.includes("<anonymous>")&&(ee=ee.replace("<anonymous>",r.displayName)),ee}while(1<=O&&0<=W);break}}}finally{ke=!1,Error.prepareStackTrace=u}return(r=r?r.displayName||r.name:"")?K(r):""}function Oe(r){switch(r.tag){case 5:return K(r.type);case 16:return K("Lazy");case 13:return K("Suspense");case 19:return K("SuspenseList");case 0:case 2:case 15:return r=Re(r.type,!1),r;case 11:return r=Re(r.type.render,!1),r;case 1:return r=Re(r.type,!0),r;default:return""}}function $e(r){if(r==null)return null;if(typeof r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case q:return"Fragment";case I:return"Portal";case fe:return"Profiler";case ie:return"StrictMode";case he:return"Suspense";case V:return"SuspenseList"}if(typeof r=="object")switch(r.$$typeof){case oe:return(r.displayName||"Context")+".Consumer";case Se:return(r._context.displayName||"Context")+".Provider";case de:var i=r.render;return r=r.displayName,r||(r=i.displayName||i.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case ce:return i=r.displayName||null,i!==null?i:$e(r.type)||"Memo";case Z:i=r._payload,r=r._init;try{return $e(r(i))}catch{}}return null}function Ie(r){var i=r.type;switch(r.tag){case 24:return"Cache";case 9:return(i.displayName||"Context")+".Consumer";case 10:return(i._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return r=i.render,r=r.displayName||r.name||"",i.displayName||(r!==""?"ForwardRef("+r+")":"ForwardRef");case 7:return"Fragment";case 5:return i;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return $e(i);case 8:return i===ie?"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 17:case 2:case 14:case 15:if(typeof i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i}return null}function Te(r){switch(typeof r){case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function Ne(r){var i=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function Ve(r){var i=Ne(r)?"checked":"value",u=Object.getOwnPropertyDescriptor(r.constructor.prototype,i),h=""+r[i];if(!r.hasOwnProperty(i)&&typeof u<"u"&&typeof u.get=="function"&&typeof u.set=="function"){var y=u.get,C=u.set;return Object.defineProperty(r,i,{configurable:!0,get:function(){return y.call(this)},set:function(O){h=""+O,C.call(this,O)}}),Object.defineProperty(r,i,{enumerable:u.enumerable}),{getValue:function(){return h},setValue:function(O){h=""+O},stopTracking:function(){r._valueTracker=null,delete r[i]}}}}function Ke(r){r._valueTracker||(r._valueTracker=Ve(r))}function Ye(r){if(!r)return!1;var i=r._valueTracker;if(!i)return!0;var u=i.getValue(),h="";return r&&(h=Ne(r)?r.checked?"true":"false":r.value),r=h,r!==u?(i.setValue(r),!0):!1}function Xe(r){if(r=r||(typeof document<"u"?document:void 0),typeof r>"u")return null;try{return r.activeElement||r.body}catch{return r.body}}function ht(r,i){var u=i.checked;return ne({},i,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:u??r._wrapperState.initialChecked})}function Nt(r,i){var u=i.defaultValue==null?"":i.defaultValue,h=i.checked!=null?i.checked:i.defaultChecked;u=Te(i.value!=null?i.value:u),r._wrapperState={initialChecked:h,initialValue:u,controlled:i.type==="checkbox"||i.type==="radio"?i.checked!=null:i.value!=null}}function vt(r,i){i=i.checked,i!=null&&L(r,"checked",i,!1)}function Jt(r,i){vt(r,i);var u=Te(i.value),h=i.type;if(u!=null)h==="number"?(u===0&&r.value===""||r.value!=u)&&(r.value=""+u):r.value!==""+u&&(r.value=""+u);else if(h==="submit"||h==="reset"){r.removeAttribute("value");return}i.hasOwnProperty("value")?Dn(r,i.type,u):i.hasOwnProperty("defaultValue")&&Dn(r,i.type,Te(i.defaultValue)),i.checked==null&&i.defaultChecked!=null&&(r.defaultChecked=!!i.defaultChecked)}function nr(r,i,u){if(i.hasOwnProperty("value")||i.hasOwnProperty("defaultValue")){var h=i.type;if(!(h!=="submit"&&h!=="reset"||i.value!==void 0&&i.value!==null))return;i=""+r._wrapperState.initialValue,u||i===r.value||(r.value=i),r.defaultValue=i}u=r.name,u!==""&&(r.name=""),r.defaultChecked=!!r._wrapperState.initialChecked,u!==""&&(r.name=u)}function Dn(r,i,u){(i!=="number"||Xe(r.ownerDocument)!==r)&&(u==null?r.defaultValue=""+r._wrapperState.initialValue:r.defaultValue!==""+u&&(r.defaultValue=""+u))}var qt=Array.isArray;function ln(r,i,u,h){if(r=r.options,i){i={};for(var y=0;y<u.length;y++)i["$"+u[y]]=!0;for(u=0;u<r.length;u++)y=i.hasOwnProperty("$"+r[u].value),r[u].selected!==y&&(r[u].selected=y),y&&h&&(r[u].defaultSelected=!0)}else{for(u=""+Te(u),i=null,y=0;y<r.length;y++){if(r[y].value===u){r[y].selected=!0,h&&(r[y].defaultSelected=!0);return}i!==null||r[y].disabled||(i=r[y])}i!==null&&(i.selected=!0)}}function vn(r,i){if(i.dangerouslySetInnerHTML!=null)throw Error(l(91));return ne({},i,{value:void 0,defaultValue:void 0,children:""+r._wrapperState.initialValue})}function jn(r,i){var u=i.value;if(u==null){if(u=i.children,i=i.defaultValue,u!=null){if(i!=null)throw Error(l(92));if(qt(u)){if(1<u.length)throw Error(l(93));u=u[0]}i=u}i==null&&(i=""),u=i}r._wrapperState={initialValue:Te(u)}}function Pr(r,i){var u=Te(i.value),h=Te(i.defaultValue);u!=null&&(u=""+u,u!==r.value&&(r.value=u),i.defaultValue==null&&r.defaultValue!==u&&(r.defaultValue=u)),h!=null&&(r.defaultValue=""+h)}function kn(r){var i=r.textContent;i===r._wrapperState.initialValue&&i!==""&&i!==null&&(r.value=i)}function xn(r){switch(r){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function qn(r,i){return r==null||r==="http://www.w3.org/1999/xhtml"?xn(i):r==="http://www.w3.org/2000/svg"&&i==="foreignObject"?"http://www.w3.org/1999/xhtml":r}var ea,Mr=(function(r){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(i,u,h,y){MSApp.execUnsafeLocalFunction(function(){return r(i,u,h,y)})}:r})(function(r,i){if(r.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in r)r.innerHTML=i;else{for(ea=ea||document.createElement("div"),ea.innerHTML="<svg>"+i.valueOf().toString()+"</svg>",i=ea.firstChild;r.firstChild;)r.removeChild(r.firstChild);for(;i.firstChild;)r.appendChild(i.firstChild)}});function He(r,i){if(i){var u=r.firstChild;if(u&&u===r.lastChild&&u.nodeType===3){u.nodeValue=i;return}}r.textContent=i}var lt={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Tt=["Webkit","ms","Moz","O"];Object.keys(lt).forEach(function(r){Tt.forEach(function(i){i=i+r.charAt(0).toUpperCase()+r.substring(1),lt[i]=lt[r]})});function Vt(r,i,u){return i==null||typeof i=="boolean"||i===""?"":u||typeof i!="number"||i===0||lt.hasOwnProperty(r)&<[r]?(""+i).trim():i+"px"}function ut(r,i){r=r.style;for(var u in i)if(i.hasOwnProperty(u)){var h=u.indexOf("--")===0,y=Vt(u,i[u],h);u==="float"&&(u="cssFloat"),h?r.setProperty(u,y):r[u]=y}}var Mn=ne({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function bn(r,i){if(i){if(Mn[r]&&(i.children!=null||i.dangerouslySetInnerHTML!=null))throw Error(l(137,r));if(i.dangerouslySetInnerHTML!=null){if(i.children!=null)throw Error(l(60));if(typeof i.dangerouslySetInnerHTML!="object"||!("__html"in i.dangerouslySetInnerHTML))throw Error(l(61))}if(i.style!=null&&typeof i.style!="object")throw Error(l(62))}}function An(r,i){if(r.indexOf("-")===-1)return typeof i.is=="string";switch(r){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 Zt=null;function sn(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var an=null,Nr=null,On=null;function $r(r){if(r=yt(r)){if(typeof an!="function")throw Error(l(280));var i=r.stateNode;i&&(i=Xn(i),an(r.stateNode,r.type,i))}}function ta(r){Nr?On?On.push(r):On=[r]:Nr=r}function Dr(){if(Nr){var r=Nr,i=On;if(On=Nr=null,$r(r),i)for(r=0;r<i.length;r++)$r(i[r])}}function Hn(r,i){return r(i)}function Xa(){}var Pn=!1;function di(r,i,u){if(Pn)return r(i,u);Pn=!0;try{return Hn(r,i,u)}finally{Pn=!1,(Nr!==null||On!==null)&&(Xa(),Dr())}}function fr(r,i){var u=r.stateNode;if(u===null)return null;var h=Xn(u);if(h===null)return null;u=h[i];e:switch(i){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(h=!h.disabled)||(r=r.type,h=!(r==="button"||r==="input"||r==="select"||r==="textarea")),r=!h;break e;default:r=!1}if(r)return null;if(u&&typeof u!="function")throw Error(l(231,i,typeof u));return u}var wr=!1;if(g)try{var Gn={};Object.defineProperty(Gn,"passive",{get:function(){wr=!0}}),window.addEventListener("test",Gn,Gn),window.removeEventListener("test",Gn,Gn)}catch{wr=!1}function ca(r,i,u,h,y,C,O,W,ee){var be=Array.prototype.slice.call(arguments,3);try{i.apply(u,be)}catch(je){this.onError(je)}}var fa=!1,da=null,pa=!1,Q=null,De={onError:function(r){fa=!0,da=r}};function We(r,i,u,h,y,C,O,W,ee){fa=!1,da=null,ca.apply(De,arguments)}function nt(r,i,u,h,y,C,O,W,ee){if(We.apply(this,arguments),fa){if(fa){var be=da;fa=!1,da=null}else throw Error(l(198));pa||(pa=!0,Q=be)}}function Qe(r){var i=r,u=r;if(r.alternate)for(;i.return;)i=i.return;else{r=i;do i=r,(i.flags&4098)!==0&&(u=i.return),r=i.return;while(r)}return i.tag===3?u:null}function Rt(r){if(r.tag===13){var i=r.memoizedState;if(i===null&&(r=r.alternate,r!==null&&(i=r.memoizedState)),i!==null)return i.dehydrated}return null}function Pt(r){if(Qe(r)!==r)throw Error(l(188))}function $t(r){var i=r.alternate;if(!i){if(i=Qe(r),i===null)throw Error(l(188));return i!==r?null:r}for(var u=r,h=i;;){var y=u.return;if(y===null)break;var C=y.alternate;if(C===null){if(h=y.return,h!==null){u=h;continue}break}if(y.child===C.child){for(C=y.child;C;){if(C===u)return Pt(y),r;if(C===h)return Pt(y),i;C=C.sibling}throw Error(l(188))}if(u.return!==h.return)u=y,h=C;else{for(var O=!1,W=y.child;W;){if(W===u){O=!0,u=y,h=C;break}if(W===h){O=!0,h=y,u=C;break}W=W.sibling}if(!O){for(W=C.child;W;){if(W===u){O=!0,u=C,h=y;break}if(W===h){O=!0,h=C,u=y;break}W=W.sibling}if(!O)throw Error(l(189))}}if(u.alternate!==h)throw Error(l(190))}if(u.tag!==3)throw Error(l(188));return u.stateNode.current===u?r:i}function $n(r){return r=$t(r),r!==null?mn(r):null}function mn(r){if(r.tag===5||r.tag===6)return r;for(r=r.child;r!==null;){var i=mn(r);if(i!==null)return i;r=r.sibling}return null}var wn=a.unstable_scheduleCallback,rr=a.unstable_cancelCallback,ha=a.unstable_shouldYield,na=a.unstable_requestPaint,kt=a.unstable_now,Ot=a.unstable_getCurrentPriorityLevel,G=a.unstable_ImmediatePriority,re=a.unstable_UserBlockingPriority,Ae=a.unstable_NormalPriority,st=a.unstable_LowPriority,Je=a.unstable_IdlePriority,It=null,en=null;function Un(r){if(en&&typeof en.onCommitFiberRoot=="function")try{en.onCommitFiberRoot(It,r,void 0,(r.current.flags&128)===128)}catch{}}var Sr=Math.clz32?Math.clz32:ml,Qi=Math.log,ru=Math.LN2;function ml(r){return r>>>=0,r===0?32:31-(Qi(r)/ru|0)|0}var Ji=64,va=4194304;function ra(r){switch(r&-r){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: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 r&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return r&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return r}}function Qa(r,i){var u=r.pendingLanes;if(u===0)return 0;var h=0,y=r.suspendedLanes,C=r.pingedLanes,O=u&268435455;if(O!==0){var W=O&~y;W!==0?h=ra(W):(C&=O,C!==0&&(h=ra(C)))}else O=u&~y,O!==0?h=ra(O):C!==0&&(h=ra(C));if(h===0)return 0;if(i!==0&&i!==h&&(i&y)===0&&(y=h&-h,C=i&-i,y>=C||y===16&&(C&4194240)!==0))return i;if((h&4)!==0&&(h|=u&16),i=r.entangledLanes,i!==0)for(r=r.entanglements,i&=h;0<i;)u=31-Sr(i),y=1<<u,h|=r[u],i&=~y;return h}function Oo(r,i){switch(r){case 1:case 2:case 4:return i+250;case 8:case 16:case 32:case 64: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 i+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Lo(r,i){for(var u=r.suspendedLanes,h=r.pingedLanes,y=r.expirationTimes,C=r.pendingLanes;0<C;){var O=31-Sr(C),W=1<<O,ee=y[O];ee===-1?((W&u)===0||(W&h)!==0)&&(y[O]=Oo(W,i)):ee<=i&&(r.expiredLanes|=W),C&=~W}}function Zi(r){return r=r.pendingLanes&-1073741825,r!==0?r:r&1073741824?1073741824:0}function eo(){var r=Ji;return Ji<<=1,(Ji&4194240)===0&&(Ji=64),r}function gl(r){for(var i=[],u=0;31>u;u++)i.push(r);return i}function ji(r,i,u){r.pendingLanes|=i,i!==536870912&&(r.suspendedLanes=0,r.pingedLanes=0),r=r.eventTimes,i=31-Sr(i),r[i]=u}function au(r,i){var u=r.pendingLanes&~i;r.pendingLanes=i,r.suspendedLanes=0,r.pingedLanes=0,r.expiredLanes&=i,r.mutableReadLanes&=i,r.entangledLanes&=i,i=r.entanglements;var h=r.eventTimes;for(r=r.expirationTimes;0<u;){var y=31-Sr(u),C=1<<y;i[y]=0,h[y]=-1,r[y]=-1,u&=~C}}function zo(r,i){var u=r.entangledLanes|=i;for(r=r.entanglements;u;){var h=31-Sr(u),y=1<<h;y&i|r[h]&i&&(r[h]|=i),u&=~y}}var un=0;function iu(r){return r&=-r,1<r?4<r?(r&268435455)!==0?16:536870912:4:1}var tn,hc,to,Lt,ou,Ur=!1,no=[],ma=null,ro=null,Fn=null,Sn=new Map,yl=new Map,Cr=[],ga="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 submit".split(" ");function pi(r,i){switch(r){case"focusin":case"focusout":ma=null;break;case"dragenter":case"dragleave":ro=null;break;case"mouseover":case"mouseout":Fn=null;break;case"pointerover":case"pointerout":Sn.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":yl.delete(i.pointerId)}}function rs(r,i,u,h,y,C){return r===null||r.nativeEvent!==C?(r={blockedOn:i,domEventName:u,eventSystemFlags:h,nativeEvent:C,targetContainers:[y]},i!==null&&(i=yt(i),i!==null&&hc(i)),r):(r.eventSystemFlags|=h,i=r.targetContainers,y!==null&&i.indexOf(y)===-1&&i.push(y),r)}function vc(r,i,u,h,y){switch(i){case"focusin":return ma=rs(ma,r,i,u,h,y),!0;case"dragenter":return ro=rs(ro,r,i,u,h,y),!0;case"mouseover":return Fn=rs(Fn,r,i,u,h,y),!0;case"pointerover":var C=y.pointerId;return Sn.set(C,rs(Sn.get(C)||null,r,i,u,h,y)),!0;case"gotpointercapture":return C=y.pointerId,yl.set(C,rs(yl.get(C)||null,r,i,u,h,y)),!0}return!1}function mc(r){var i=ds(r.target);if(i!==null){var u=Qe(i);if(u!==null){if(i=u.tag,i===13){if(i=Rt(u),i!==null){r.blockedOn=i,ou(r.priority,function(){to(u)});return}}else if(i===3&&u.stateNode.current.memoizedState.isDehydrated){r.blockedOn=u.tag===3?u.stateNode.containerInfo:null;return}}}r.blockedOn=null}function xl(r){if(r.blockedOn!==null)return!1;for(var i=r.targetContainers;0<i.length;){var u=uu(r.domEventName,r.eventSystemFlags,i[0],r.nativeEvent);if(u===null){u=r.nativeEvent;var h=new u.constructor(u.type,u);Zt=h,u.target.dispatchEvent(h),Zt=null}else return i=yt(u),i!==null&&hc(i),r.blockedOn=u,!1;i.shift()}return!0}function as(r,i,u){xl(r)&&u.delete(i)}function vh(){Ur=!1,ma!==null&&xl(ma)&&(ma=null),ro!==null&&xl(ro)&&(ro=null),Fn!==null&&xl(Fn)&&(Fn=null),Sn.forEach(as),yl.forEach(as)}function hi(r,i){r.blockedOn===i&&(r.blockedOn=null,Ur||(Ur=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,vh)))}function Pi(r){function i(y){return hi(y,r)}if(0<no.length){hi(no[0],r);for(var u=1;u<no.length;u++){var h=no[u];h.blockedOn===r&&(h.blockedOn=null)}}for(ma!==null&&hi(ma,r),ro!==null&&hi(ro,r),Fn!==null&&hi(Fn,r),Sn.forEach(i),yl.forEach(i),u=0;u<Cr.length;u++)h=Cr[u],h.blockedOn===r&&(h.blockedOn=null);for(;0<Cr.length&&(u=Cr[0],u.blockedOn===null);)mc(u),u.blockedOn===null&&Cr.shift()}var ao=$.ReactCurrentBatchConfig,vi=!0;function lu(r,i,u,h){var y=un,C=ao.transition;ao.transition=null;try{un=1,bl(r,i,u,h)}finally{un=y,ao.transition=C}}function su(r,i,u,h){var y=un,C=ao.transition;ao.transition=null;try{un=4,bl(r,i,u,h)}finally{un=y,ao.transition=C}}function bl(r,i,u,h){if(vi){var y=uu(r,i,u,h);if(y===null)sd(r,i,h,is,u),pi(r,h);else if(vc(y,r,i,u,h))h.stopPropagation();else if(pi(r,h),i&4&&-1<ga.indexOf(r)){for(;y!==null;){var C=yt(y);if(C!==null&&tn(C),C=uu(r,i,u,h),C===null&&sd(r,i,h,is,u),C===y)break;y=C}y!==null&&h.stopPropagation()}else sd(r,i,h,null,u)}}var is=null;function uu(r,i,u,h){if(is=null,r=sn(h),r=ds(r),r!==null)if(i=Qe(r),i===null)r=null;else if(u=i.tag,u===13){if(r=Rt(i),r!==null)return r;r=null}else if(u===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;r=null}else i!==r&&(r=null);return is=r,null}function cu(r){switch(r){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"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 1;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"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Ot()){case G:return 1;case re:return 4;case Ae:case st:return 16;case Je:return 536870912;default:return 16}default:return 16}}var $i=null,A=null,X=null;function xe(){if(X)return X;var r,i=A,u=i.length,h,y="value"in $i?$i.value:$i.textContent,C=y.length;for(r=0;r<u&&i[r]===y[r];r++);var O=u-r;for(h=1;h<=O&&i[u-h]===y[C-h];h++);return X=y.slice(r,1<h?1-h:void 0)}function Ce(r){var i=r.keyCode;return"charCode"in r?(r=r.charCode,r===0&&i===13&&(r=13)):r=i,r===10&&(r=13),32<=r||r===13?r:0}function Be(){return!0}function wt(){return!1}function Ge(r){function i(u,h,y,C,O){this._reactName=u,this._targetInst=y,this.type=h,this.nativeEvent=C,this.target=O,this.currentTarget=null;for(var W in r)r.hasOwnProperty(W)&&(u=r[W],this[W]=u?u(C):C[W]);return this.isDefaultPrevented=(C.defaultPrevented!=null?C.defaultPrevented:C.returnValue===!1)?Be:wt,this.isPropagationStopped=wt,this}return ne(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var u=this.nativeEvent;u&&(u.preventDefault?u.preventDefault():typeof u.returnValue!="unknown"&&(u.returnValue=!1),this.isDefaultPrevented=Be)},stopPropagation:function(){var u=this.nativeEvent;u&&(u.stopPropagation?u.stopPropagation():typeof u.cancelBubble!="unknown"&&(u.cancelBubble=!0),this.isPropagationStopped=Be)},persist:function(){},isPersistent:Be}),i}var Et={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ht=Ge(Et),nn=ne({},Et,{view:0,detail:0}),Ln=Ge(nn),Cn,Ft,En,Kn=ne({},nn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:bh,button:0,buttons:0,relatedTarget:function(r){return r.relatedTarget===void 0?r.fromElement===r.srcElement?r.toElement:r.fromElement:r.relatedTarget},movementX:function(r){return"movementX"in r?r.movementX:(r!==En&&(En&&r.type==="mousemove"?(Cn=r.screenX-En.screenX,Ft=r.screenY-En.screenY):Ft=Cn=0,En=r),Cn)},movementY:function(r){return"movementY"in r?r.movementY:Ft}}),wl=Ge(Kn),gc=ne({},Kn,{dataTransfer:0}),jo=Ge(gc),yc=ne({},nn,{relatedTarget:0}),os=Ge(yc),mh=ne({},Et,{animationName:0,elapsedTime:0,pseudoElement:0}),Qf=Ge(mh),gh=ne({},Et,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),wg=Ge(gh),yh=ne({},Et,{data:0}),xh=Ge(yh),Sg={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Cg={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"},Db={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Po(r){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(r):(r=Db[r])?!!i[r]:!1}function bh(){return Po}var wh=ne({},nn,{key:function(r){if(r.key){var i=Sg[r.key]||r.key;if(i!=="Unidentified")return i}return r.type==="keypress"?(r=Ce(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?Cg[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:bh,charCode:function(r){return r.type==="keypress"?Ce(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?Ce(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),Sh=Ge(wh),Ch=ne({},Kn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Eg=Ge(Ch),Jf=ne({},nn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:bh}),_g=Ge(Jf),Aa=ne({},Et,{propertyName:0,elapsedTime:0,pseudoElement:0}),$o=Ge(Aa),dr=ne({},Kn,{deltaX:function(r){return"deltaX"in r?r.deltaX:"wheelDeltaX"in r?-r.wheelDeltaX:0},deltaY:function(r){return"deltaY"in r?r.deltaY:"wheelDeltaY"in r?-r.wheelDeltaY:"wheelDelta"in r?-r.wheelDelta:0},deltaZ:0,deltaMode:0}),Uo=Ge(dr),Eh=[9,13,27,32],fu=g&&"CompositionEvent"in window,xc=null;g&&"documentMode"in document&&(xc=document.documentMode);var bc=g&&"TextEvent"in window&&!xc,Tg=g&&(!fu||xc&&8<xc&&11>=xc),Rg=" ",Zf=!1;function kg(r,i){switch(r){case"keyup":return Eh.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Mg(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var du=!1;function Ng(r,i){switch(r){case"compositionend":return Mg(i);case"keypress":return i.which!==32?null:(Zf=!0,Rg);case"textInput":return r=i.data,r===Rg&&Zf?null:r;default:return null}}function Ab(r,i){if(du)return r==="compositionend"||!fu&&kg(r,i)?(r=xe(),X=A=$i=null,du=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1<i.char.length)return i.char;if(i.which)return String.fromCharCode(i.which)}return null;case"compositionend":return Tg&&i.locale!=="ko"?null:i.data;default:return null}}var Ob={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 Dg(r){var i=r&&r.nodeName&&r.nodeName.toLowerCase();return i==="input"?!!Ob[r.type]:i==="textarea"}function _h(r,i,u,h){ta(h),i=Tc(i,"onChange"),0<i.length&&(u=new Ht("onChange","change",null,u,h),r.push({event:u,listeners:i}))}var io=null,ls=null;function Ag(r){cs(r,0)}function wc(r){var i=Fi(r);if(Ye(i))return r}function Lb(r,i){if(r==="change")return i}var Og=!1;if(g){var Th;if(g){var Rh="oninput"in document;if(!Rh){var Lg=document.createElement("div");Lg.setAttribute("oninput","return;"),Rh=typeof Lg.oninput=="function"}Th=Rh}else Th=!1;Og=Th&&(!document.documentMode||9<document.documentMode)}function zg(){io&&(io.detachEvent("onpropertychange",jg),ls=io=null)}function jg(r){if(r.propertyName==="value"&&wc(ls)){var i=[];_h(i,ls,r,sn(r)),di(Ag,i)}}function zb(r,i,u){r==="focusin"?(zg(),io=i,ls=u,io.attachEvent("onpropertychange",jg)):r==="focusout"&&zg()}function Pg(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return wc(ls)}function jb(r,i){if(r==="click")return wc(i)}function $g(r,i){if(r==="input"||r==="change")return wc(i)}function Pb(r,i){return r===i&&(r!==0||1/r===1/i)||r!==r&&i!==i}var Ui=typeof Object.is=="function"?Object.is:Pb;function Sc(r,i){if(Ui(r,i))return!0;if(typeof r!="object"||r===null||typeof i!="object"||i===null)return!1;var u=Object.keys(r),h=Object.keys(i);if(u.length!==h.length)return!1;for(h=0;h<u.length;h++){var y=u[h];if(!x.call(i,y)||!Ui(r[y],i[y]))return!1}return!0}function Ug(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function ed(r,i){var u=Ug(r);r=0;for(var h;u;){if(u.nodeType===3){if(h=r+u.textContent.length,r<=i&&h>=i)return{node:u,offset:i-r};r=h}e:{for(;u;){if(u.nextSibling){u=u.nextSibling;break e}u=u.parentNode}u=void 0}u=Ug(u)}}function Sl(r,i){return r&&i?r===i?!0:r&&r.nodeType===3?!1:i&&i.nodeType===3?Sl(r,i.parentNode):"contains"in r?r.contains(i):r.compareDocumentPosition?!!(r.compareDocumentPosition(i)&16):!1:!1}function Cc(){for(var r=window,i=Xe();i instanceof r.HTMLIFrameElement;){try{var u=typeof i.contentWindow.location.href=="string"}catch{u=!1}if(u)r=i.contentWindow;else break;i=Xe(r.document)}return i}function td(r){var i=r&&r.nodeName&&r.nodeName.toLowerCase();return i&&(i==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||i==="textarea"||r.contentEditable==="true")}function pu(r){var i=Cc(),u=r.focusedElem,h=r.selectionRange;if(i!==u&&u&&u.ownerDocument&&Sl(u.ownerDocument.documentElement,u)){if(h!==null&&td(u)){if(i=h.start,r=h.end,r===void 0&&(r=i),"selectionStart"in u)u.selectionStart=i,u.selectionEnd=Math.min(r,u.value.length);else if(r=(i=u.ownerDocument||document)&&i.defaultView||window,r.getSelection){r=r.getSelection();var y=u.textContent.length,C=Math.min(h.start,y);h=h.end===void 0?C:Math.min(h.end,y),!r.extend&&C>h&&(y=h,h=C,C=y),y=ed(u,C);var O=ed(u,h);y&&O&&(r.rangeCount!==1||r.anchorNode!==y.node||r.anchorOffset!==y.offset||r.focusNode!==O.node||r.focusOffset!==O.offset)&&(i=i.createRange(),i.setStart(y.node,y.offset),r.removeAllRanges(),C>h?(r.addRange(i),r.extend(O.node,O.offset)):(i.setEnd(O.node,O.offset),r.addRange(i)))}}for(i=[],r=u;r=r.parentNode;)r.nodeType===1&&i.push({element:r,left:r.scrollLeft,top:r.scrollTop});for(typeof u.focus=="function"&&u.focus(),u=0;u<i.length;u++)r=i[u],r.element.scrollLeft=r.left,r.element.scrollTop=r.top}}var $b=g&&"documentMode"in document&&11>=document.documentMode,hu=null,kh=null,Ec=null,Mh=!1;function Nh(r,i,u){var h=u.window===u?u.document:u.nodeType===9?u:u.ownerDocument;Mh||hu==null||hu!==Xe(h)||(h=hu,"selectionStart"in h&&td(h)?h={start:h.selectionStart,end:h.selectionEnd}:(h=(h.ownerDocument&&h.ownerDocument.defaultView||window).getSelection(),h={anchorNode:h.anchorNode,anchorOffset:h.anchorOffset,focusNode:h.focusNode,focusOffset:h.focusOffset}),Ec&&Sc(Ec,h)||(Ec=h,h=Tc(kh,"onSelect"),0<h.length&&(i=new Ht("onSelect","select",null,i,u),r.push({event:i,listeners:h}),i.target=hu)))}function nd(r,i){var u={};return u[r.toLowerCase()]=i.toLowerCase(),u["Webkit"+r]="webkit"+i,u["Moz"+r]="moz"+i,u}var ss={animationend:nd("Animation","AnimationEnd"),animationiteration:nd("Animation","AnimationIteration"),animationstart:nd("Animation","AnimationStart"),transitionend:nd("Transition","TransitionEnd")},Fr={},Dh={};g&&(Dh=document.createElement("div").style,"AnimationEvent"in window||(delete ss.animationend.animation,delete ss.animationiteration.animation,delete ss.animationstart.animation),"TransitionEvent"in window||delete ss.transitionend.transition);function rd(r){if(Fr[r])return Fr[r];if(!ss[r])return r;var i=ss[r],u;for(u in i)if(i.hasOwnProperty(u)&&u in Dh)return Fr[r]=i[u];return r}var Fg=rd("animationend"),Ig=rd("animationiteration"),Bg=rd("animationstart"),Hg=rd("transitionend"),Ah=new Map,ad="abort auxClick 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(" ");function mi(r,i){Ah.set(r,i),v(i,[r])}for(var Oh=0;Oh<ad.length;Oh++){var us=ad[Oh],Ub=us.toLowerCase(),Fb=us[0].toUpperCase()+us.slice(1);mi(Ub,"on"+Fb)}mi(Fg,"onAnimationEnd"),mi(Ig,"onAnimationIteration"),mi(Bg,"onAnimationStart"),mi("dblclick","onDoubleClick"),mi("focusin","onFocus"),mi("focusout","onBlur"),mi(Hg,"onTransitionEnd"),p("onMouseEnter",["mouseout","mouseover"]),p("onMouseLeave",["mouseout","mouseover"]),p("onPointerEnter",["pointerout","pointerover"]),p("onPointerLeave",["pointerout","pointerover"]),v("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),v("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),v("onBeforeInput",["compositionend","keypress","textInput","paste"]),v("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),v("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),v("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var _c="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(" "),Lh=new Set("cancel close invalid load scroll toggle".split(" ").concat(_c));function id(r,i,u){var h=r.type||"unknown-event";r.currentTarget=u,nt(h,i,void 0,r),r.currentTarget=null}function cs(r,i){i=(i&4)!==0;for(var u=0;u<r.length;u++){var h=r[u],y=h.event;h=h.listeners;e:{var C=void 0;if(i)for(var O=h.length-1;0<=O;O--){var W=h[O],ee=W.instance,be=W.currentTarget;if(W=W.listener,ee!==C&&y.isPropagationStopped())break e;id(y,W,be),C=ee}else for(O=0;O<h.length;O++){if(W=h[O],ee=W.instance,be=W.currentTarget,W=W.listener,ee!==C&&y.isPropagationStopped())break e;id(y,W,be),C=ee}}}if(pa)throw r=Q,pa=!1,Q=null,r}function gn(r,i){var u=i[Mc];u===void 0&&(u=i[Mc]=new Set);var h=r+"__bubble";u.has(h)||(Vg(i,r,2,!1),u.add(h))}function od(r,i,u){var h=0;i&&(h|=4),Vg(u,r,h,i)}var ld="_reactListening"+Math.random().toString(36).slice(2);function vu(r){if(!r[ld]){r[ld]=!0,c.forEach(function(u){u!=="selectionchange"&&(Lh.has(u)||od(u,!1,r),od(u,!0,r))});var i=r.nodeType===9?r:r.ownerDocument;i===null||i[ld]||(i[ld]=!0,od("selectionchange",!1,i))}}function Vg(r,i,u,h){switch(cu(i)){case 1:var y=lu;break;case 4:y=su;break;default:y=bl}u=y.bind(null,i,u,r),y=void 0,!wr||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(y=!0),h?y!==void 0?r.addEventListener(i,u,{capture:!0,passive:y}):r.addEventListener(i,u,!0):y!==void 0?r.addEventListener(i,u,{passive:y}):r.addEventListener(i,u,!1)}function sd(r,i,u,h,y){var C=h;if((i&1)===0&&(i&2)===0&&h!==null)e:for(;;){if(h===null)return;var O=h.tag;if(O===3||O===4){var W=h.stateNode.containerInfo;if(W===y||W.nodeType===8&&W.parentNode===y)break;if(O===4)for(O=h.return;O!==null;){var ee=O.tag;if((ee===3||ee===4)&&(ee=O.stateNode.containerInfo,ee===y||ee.nodeType===8&&ee.parentNode===y))return;O=O.return}for(;W!==null;){if(O=ds(W),O===null)return;if(ee=O.tag,ee===5||ee===6){h=C=O;continue e}W=W.parentNode}}h=h.return}di(function(){var be=C,je=sn(u),Ue=[];e:{var ze=Ah.get(r);if(ze!==void 0){var rt=Ht,ct=r;switch(r){case"keypress":if(Ce(u)===0)break e;case"keydown":case"keyup":rt=Sh;break;case"focusin":ct="focus",rt=os;break;case"focusout":ct="blur",rt=os;break;case"beforeblur":case"afterblur":rt=os;break;case"click":if(u.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":rt=wl;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":rt=jo;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":rt=_g;break;case Fg:case Ig:case Bg:rt=Qf;break;case Hg:rt=$o;break;case"scroll":rt=Ln;break;case"wheel":rt=Uo;break;case"copy":case"cut":case"paste":rt=wg;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":rt=Eg}var pt=(i&4)!==0,ur=!pt&&r==="scroll",pe=pt?ze!==null?ze+"Capture":null:ze;pt=[];for(var le=be,ge;le!==null;){ge=le;var Pe=ge.stateNode;if(ge.tag===5&&Pe!==null&&(ge=Pe,pe!==null&&(Pe=fr(le,pe),Pe!=null&&pt.push(mu(le,Pe,ge)))),ur)break;le=le.return}0<pt.length&&(ze=new rt(ze,ct,null,u,je),Ue.push({event:ze,listeners:pt}))}}if((i&7)===0){e:{if(ze=r==="mouseover"||r==="pointerover",rt=r==="mouseout"||r==="pointerout",ze&&u!==Zt&&(ct=u.relatedTarget||u.fromElement)&&(ds(ct)||ct[Fo]))break e;if((rt||ze)&&(ze=je.window===je?je:(ze=je.ownerDocument)?ze.defaultView||ze.parentWindow:window,rt?(ct=u.relatedTarget||u.toElement,rt=be,ct=ct?ds(ct):null,ct!==null&&(ur=Qe(ct),ct!==ur||ct.tag!==5&&ct.tag!==6)&&(ct=null)):(rt=null,ct=be),rt!==ct)){if(pt=wl,Pe="onMouseLeave",pe="onMouseEnter",le="mouse",(r==="pointerout"||r==="pointerover")&&(pt=Eg,Pe="onPointerLeave",pe="onPointerEnter",le="pointer"),ur=rt==null?ze:Fi(rt),ge=ct==null?ze:Fi(ct),ze=new pt(Pe,le+"leave",rt,u,je),ze.target=ur,ze.relatedTarget=ge,Pe=null,ds(je)===be&&(pt=new pt(pe,le+"enter",ct,u,je),pt.target=ge,pt.relatedTarget=ur,Pe=pt),ur=Pe,rt&&ct)t:{for(pt=rt,pe=ct,le=0,ge=pt;ge;ge=Cl(ge))le++;for(ge=0,Pe=pe;Pe;Pe=Cl(Pe))ge++;for(;0<le-ge;)pt=Cl(pt),le--;for(;0<ge-le;)pe=Cl(pe),ge--;for(;le--;){if(pt===pe||pe!==null&&pt===pe.alternate)break t;pt=Cl(pt),pe=Cl(pe)}pt=null}else pt=null;rt!==null&&Yg(Ue,ze,rt,pt,!1),ct!==null&&ur!==null&&Yg(Ue,ur,ct,pt,!0)}}e:{if(ze=be?Fi(be):window,rt=ze.nodeName&&ze.nodeName.toLowerCase(),rt==="select"||rt==="input"&&ze.type==="file")var ft=Lb;else if(Dg(ze))if(Og)ft=$g;else{ft=Pg;var Ct=zb}else(rt=ze.nodeName)&&rt.toLowerCase()==="input"&&(ze.type==="checkbox"||ze.type==="radio")&&(ft=jb);if(ft&&(ft=ft(r,be))){_h(Ue,ft,u,je);break e}Ct&&Ct(r,ze,be),r==="focusout"&&(Ct=ze._wrapperState)&&Ct.controlled&&ze.type==="number"&&Dn(ze,"number",ze.value)}switch(Ct=be?Fi(be):window,r){case"focusin":(Dg(Ct)||Ct.contentEditable==="true")&&(hu=Ct,kh=be,Ec=null);break;case"focusout":Ec=kh=hu=null;break;case"mousedown":Mh=!0;break;case"contextmenu":case"mouseup":case"dragend":Mh=!1,Nh(Ue,u,je);break;case"selectionchange":if($b)break;case"keydown":case"keyup":Nh(Ue,u,je)}var _t;if(fu)e:{switch(r){case"compositionstart":var At="onCompositionStart";break e;case"compositionend":At="onCompositionEnd";break e;case"compositionupdate":At="onCompositionUpdate";break e}At=void 0}else du?kg(r,u)&&(At="onCompositionEnd"):r==="keydown"&&u.keyCode===229&&(At="onCompositionStart");At&&(Tg&&u.locale!=="ko"&&(du||At!=="onCompositionStart"?At==="onCompositionEnd"&&du&&(_t=xe()):($i=je,A="value"in $i?$i.value:$i.textContent,du=!0)),Ct=Tc(be,At),0<Ct.length&&(At=new xh(At,r,null,u,je),Ue.push({event:At,listeners:Ct}),_t?At.data=_t:(_t=Mg(u),_t!==null&&(At.data=_t)))),(_t=bc?Ng(r,u):Ab(r,u))&&(be=Tc(be,"onBeforeInput"),0<be.length&&(je=new xh("onBeforeInput","beforeinput",null,u,je),Ue.push({event:je,listeners:be}),je.data=_t))}cs(Ue,i)})}function mu(r,i,u){return{instance:r,listener:i,currentTarget:u}}function Tc(r,i){for(var u=i+"Capture",h=[];r!==null;){var y=r,C=y.stateNode;y.tag===5&&C!==null&&(y=C,C=fr(r,u),C!=null&&h.unshift(mu(r,C,y)),C=fr(r,i),C!=null&&h.push(mu(r,C,y))),r=r.return}return h}function Cl(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5);return r||null}function Yg(r,i,u,h,y){for(var C=i._reactName,O=[];u!==null&&u!==h;){var W=u,ee=W.alternate,be=W.stateNode;if(ee!==null&&ee===h)break;W.tag===5&&be!==null&&(W=be,y?(ee=fr(u,C),ee!=null&&O.unshift(mu(u,ee,W))):y||(ee=fr(u,C),ee!=null&&O.push(mu(u,ee,W)))),u=u.return}O.length!==0&&r.push({event:i,listeners:O})}var Wg=/\r\n?/g,Ib=/\u0000|\uFFFD/g;function qg(r){return(typeof r=="string"?r:""+r).replace(Wg,`
|
|
98
|
+
`).replace(Ib,"")}function ud(r,i,u){if(i=qg(i),qg(r)!==i&&u)throw Error(l(425))}function El(){}var Rc=null,fs=null;function cd(r,i){return r==="textarea"||r==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}var fd=typeof setTimeout=="function"?setTimeout:void 0,zh=typeof clearTimeout=="function"?clearTimeout:void 0,Gg=typeof Promise=="function"?Promise:void 0,gu=typeof queueMicrotask=="function"?queueMicrotask:typeof Gg<"u"?function(r){return Gg.resolve(null).then(r).catch(dd)}:fd;function dd(r){setTimeout(function(){throw r})}function yu(r,i){var u=i,h=0;do{var y=u.nextSibling;if(r.removeChild(u),y&&y.nodeType===8)if(u=y.data,u==="/$"){if(h===0){r.removeChild(y),Pi(i);return}h--}else u!=="$"&&u!=="$?"&&u!=="$!"||h++;u=y}while(u);Pi(i)}function oo(r){for(;r!=null;r=r.nextSibling){var i=r.nodeType;if(i===1||i===3)break;if(i===8){if(i=r.data,i==="$"||i==="$!"||i==="$?")break;if(i==="/$")return null}}return r}function Kg(r){r=r.previousSibling;for(var i=0;r;){if(r.nodeType===8){var u=r.data;if(u==="$"||u==="$!"||u==="$?"){if(i===0)return r;i--}else u==="/$"&&i++}r=r.previousSibling}return null}var _l=Math.random().toString(36).slice(2),lo="__reactFiber$"+_l,kc="__reactProps$"+_l,Fo="__reactContainer$"+_l,Mc="__reactEvents$"+_l,xu="__reactListeners$"+_l,Bb="__reactHandles$"+_l;function ds(r){var i=r[lo];if(i)return i;for(var u=r.parentNode;u;){if(i=u[Fo]||u[lo]){if(u=i.alternate,i.child!==null||u!==null&&u.child!==null)for(r=Kg(r);r!==null;){if(u=r[lo])return u;r=Kg(r)}return i}r=u,u=r.parentNode}return null}function yt(r){return r=r[lo]||r[Fo],!r||r.tag!==5&&r.tag!==6&&r.tag!==13&&r.tag!==3?null:r}function Fi(r){if(r.tag===5||r.tag===6)return r.stateNode;throw Error(l(33))}function Xn(r){return r[kc]||null}var Gt=[],gi=-1;function yi(r){return{current:r}}function zn(r){0>gi||(r.current=Gt[gi],Gt[gi]=null,gi--)}function gt(r,i){gi++,Gt[gi]=r.current,r.current=i}var aa={},ar=yi(aa),Er=yi(!1),Oa=aa;function La(r,i){var u=r.type.contextTypes;if(!u)return aa;var h=r.stateNode;if(h&&h.__reactInternalMemoizedUnmaskedChildContext===i)return h.__reactInternalMemoizedMaskedChildContext;var y={},C;for(C in u)y[C]=i[C];return h&&(r=r.stateNode,r.__reactInternalMemoizedUnmaskedChildContext=i,r.__reactInternalMemoizedMaskedChildContext=y),y}function pr(r){return r=r.childContextTypes,r!=null}function bu(){zn(Er),zn(ar)}function Xg(r,i,u){if(ar.current!==aa)throw Error(l(168));gt(ar,i),gt(Er,u)}function Nc(r,i,u){var h=r.stateNode;if(i=i.childContextTypes,typeof h.getChildContext!="function")return u;h=h.getChildContext();for(var y in h)if(!(y in i))throw Error(l(108,Ie(r)||"Unknown",y));return ne({},u,h)}function Ar(r){return r=(r=r.stateNode)&&r.__reactInternalMemoizedMergedChildContext||aa,Oa=ar.current,gt(ar,r),gt(Er,Er.current),!0}function pd(r,i,u){var h=r.stateNode;if(!h)throw Error(l(169));u?(r=Nc(r,i,Oa),h.__reactInternalMemoizedMergedChildContext=r,zn(Er),zn(ar),gt(ar,r)):zn(Er),gt(Er,u)}var so=null,wu=!1,Io=!1;function hd(r){so===null?so=[r]:so.push(r)}function Tl(r){wu=!0,hd(r)}function uo(){if(!Io&&so!==null){Io=!0;var r=0,i=un;try{var u=so;for(un=1;r<u.length;r++){var h=u[r];do h=h(!0);while(h!==null)}so=null,wu=!1}catch(y){throw so!==null&&(so=so.slice(r+1)),wn(G,uo),y}finally{un=i,Io=!1}}return null}var Rl=[],kl=0,Ml=null,Bo=0,hr=[],xi=0,Ja=null,co=1,fo="";function ps(r,i){Rl[kl++]=Bo,Rl[kl++]=Ml,Ml=r,Bo=i}function Qg(r,i,u){hr[xi++]=co,hr[xi++]=fo,hr[xi++]=Ja,Ja=r;var h=co;r=fo;var y=32-Sr(h)-1;h&=~(1<<y),u+=1;var C=32-Sr(i)+y;if(30<C){var O=y-y%5;C=(h&(1<<O)-1).toString(32),h>>=O,y-=O,co=1<<32-Sr(i)+y|u<<y|h,fo=C+r}else co=1<<C|u<<y|h,fo=r}function vd(r){r.return!==null&&(ps(r,1),Qg(r,1,0))}function md(r){for(;r===Ml;)Ml=Rl[--kl],Rl[kl]=null,Bo=Rl[--kl],Rl[kl]=null;for(;r===Ja;)Ja=hr[--xi],hr[xi]=null,fo=hr[--xi],hr[xi]=null,co=hr[--xi],hr[xi]=null}var za=null,ja=null,Vn=!1,bi=null;function jh(r,i){var u=_i(5,null,null,0);u.elementType="DELETED",u.stateNode=i,u.return=r,i=r.deletions,i===null?(r.deletions=[u],r.flags|=16):i.push(u)}function Jg(r,i){switch(r.tag){case 5:var u=r.type;return i=i.nodeType!==1||u.toLowerCase()!==i.nodeName.toLowerCase()?null:i,i!==null?(r.stateNode=i,za=r,ja=oo(i.firstChild),!0):!1;case 6:return i=r.pendingProps===""||i.nodeType!==3?null:i,i!==null?(r.stateNode=i,za=r,ja=null,!0):!1;case 13:return i=i.nodeType!==8?null:i,i!==null?(u=Ja!==null?{id:co,overflow:fo}:null,r.memoizedState={dehydrated:i,treeContext:u,retryLane:1073741824},u=_i(18,null,null,0),u.stateNode=i,u.return=r,r.child=u,za=r,ja=null,!0):!1;default:return!1}}function Ph(r){return(r.mode&1)!==0&&(r.flags&128)===0}function $h(r){if(Vn){var i=ja;if(i){var u=i;if(!Jg(r,i)){if(Ph(r))throw Error(l(418));i=oo(u.nextSibling);var h=za;i&&Jg(r,i)?jh(h,u):(r.flags=r.flags&-4097|2,Vn=!1,za=r)}}else{if(Ph(r))throw Error(l(418));r.flags=r.flags&-4097|2,Vn=!1,za=r}}}function _r(r){for(r=r.return;r!==null&&r.tag!==5&&r.tag!==3&&r.tag!==13;)r=r.return;za=r}function gd(r){if(r!==za)return!1;if(!Vn)return _r(r),Vn=!0,!1;var i;if((i=r.tag!==3)&&!(i=r.tag!==5)&&(i=r.type,i=i!=="head"&&i!=="body"&&!cd(r.type,r.memoizedProps)),i&&(i=ja)){if(Ph(r))throw Dc(),Error(l(418));for(;i;)jh(r,i),i=oo(i.nextSibling)}if(_r(r),r.tag===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(l(317));e:{for(r=r.nextSibling,i=0;r;){if(r.nodeType===8){var u=r.data;if(u==="/$"){if(i===0){ja=oo(r.nextSibling);break e}i--}else u!=="$"&&u!=="$!"&&u!=="$?"||i++}r=r.nextSibling}ja=null}}else ja=za?oo(r.stateNode.nextSibling):null;return!0}function Dc(){for(var r=ja;r;)r=oo(r.nextSibling)}function Nl(){ja=za=null,Vn=!1}function Ho(r){bi===null?bi=[r]:bi.push(r)}var Hb=$.ReactCurrentBatchConfig;function hs(r,i,u){if(r=u.ref,r!==null&&typeof r!="function"&&typeof r!="object"){if(u._owner){if(u=u._owner,u){if(u.tag!==1)throw Error(l(309));var h=u.stateNode}if(!h)throw Error(l(147,r));var y=h,C=""+r;return i!==null&&i.ref!==null&&typeof i.ref=="function"&&i.ref._stringRef===C?i.ref:(i=function(O){var W=y.refs;O===null?delete W[C]:W[C]=O},i._stringRef=C,i)}if(typeof r!="string")throw Error(l(284));if(!u._owner)throw Error(l(290,r))}return r}function yd(r,i){throw r=Object.prototype.toString.call(i),Error(l(31,r==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":r))}function Zg(r){var i=r._init;return i(r._payload)}function vs(r){function i(pe,le){if(r){var ge=pe.deletions;ge===null?(pe.deletions=[le],pe.flags|=16):ge.push(le)}}function u(pe,le){if(!r)return null;for(;le!==null;)i(pe,le),le=le.sibling;return null}function h(pe,le){for(pe=new Map;le!==null;)le.key!==null?pe.set(le.key,le):pe.set(le.index,le),le=le.sibling;return pe}function y(pe,le){return pe=$l(pe,le),pe.index=0,pe.sibling=null,pe}function C(pe,le,ge){return pe.index=ge,r?(ge=pe.alternate,ge!==null?(ge=ge.index,ge<le?(pe.flags|=2,le):ge):(pe.flags|=2,le)):(pe.flags|=1048576,le)}function O(pe){return r&&pe.alternate===null&&(pe.flags|=2),pe}function W(pe,le,ge,Pe){return le===null||le.tag!==6?(le=vv(ge,pe.mode,Pe),le.return=pe,le):(le=y(le,ge),le.return=pe,le)}function ee(pe,le,ge,Pe){var ft=ge.type;return ft===q?je(pe,le,ge.props.children,Pe,ge.key):le!==null&&(le.elementType===ft||typeof ft=="object"&&ft!==null&&ft.$$typeof===Z&&Zg(ft)===le.type)?(Pe=y(le,ge.props),Pe.ref=hs(pe,le,ge),Pe.return=pe,Pe):(Pe=sf(ge.type,ge.key,ge.props,null,pe.mode,Pe),Pe.ref=hs(pe,le,ge),Pe.return=pe,Pe)}function be(pe,le,ge,Pe){return le===null||le.tag!==4||le.stateNode.containerInfo!==ge.containerInfo||le.stateNode.implementation!==ge.implementation?(le=Qd(ge,pe.mode,Pe),le.return=pe,le):(le=y(le,ge.children||[]),le.return=pe,le)}function je(pe,le,ge,Pe,ft){return le===null||le.tag!==7?(le=Ko(ge,pe.mode,Pe,ft),le.return=pe,le):(le=y(le,ge),le.return=pe,le)}function Ue(pe,le,ge){if(typeof le=="string"&&le!==""||typeof le=="number")return le=vv(""+le,pe.mode,ge),le.return=pe,le;if(typeof le=="object"&&le!==null){switch(le.$$typeof){case H:return ge=sf(le.type,le.key,le.props,null,pe.mode,ge),ge.ref=hs(pe,null,le),ge.return=pe,ge;case I:return le=Qd(le,pe.mode,ge),le.return=pe,le;case Z:var Pe=le._init;return Ue(pe,Pe(le._payload),ge)}if(qt(le)||J(le))return le=Ko(le,pe.mode,ge,null),le.return=pe,le;yd(pe,le)}return null}function ze(pe,le,ge,Pe){var ft=le!==null?le.key:null;if(typeof ge=="string"&&ge!==""||typeof ge=="number")return ft!==null?null:W(pe,le,""+ge,Pe);if(typeof ge=="object"&&ge!==null){switch(ge.$$typeof){case H:return ge.key===ft?ee(pe,le,ge,Pe):null;case I:return ge.key===ft?be(pe,le,ge,Pe):null;case Z:return ft=ge._init,ze(pe,le,ft(ge._payload),Pe)}if(qt(ge)||J(ge))return ft!==null?null:je(pe,le,ge,Pe,null);yd(pe,ge)}return null}function rt(pe,le,ge,Pe,ft){if(typeof Pe=="string"&&Pe!==""||typeof Pe=="number")return pe=pe.get(ge)||null,W(le,pe,""+Pe,ft);if(typeof Pe=="object"&&Pe!==null){switch(Pe.$$typeof){case H:return pe=pe.get(Pe.key===null?ge:Pe.key)||null,ee(le,pe,Pe,ft);case I:return pe=pe.get(Pe.key===null?ge:Pe.key)||null,be(le,pe,Pe,ft);case Z:var Ct=Pe._init;return rt(pe,le,ge,Ct(Pe._payload),ft)}if(qt(Pe)||J(Pe))return pe=pe.get(ge)||null,je(le,pe,Pe,ft,null);yd(le,Pe)}return null}function ct(pe,le,ge,Pe){for(var ft=null,Ct=null,_t=le,At=le=0,zr=null;_t!==null&&At<ge.length;At++){_t.index>At?(zr=_t,_t=null):zr=_t.sibling;var dn=ze(pe,_t,ge[At],Pe);if(dn===null){_t===null&&(_t=zr);break}r&&_t&&dn.alternate===null&&i(pe,_t),le=C(dn,le,At),Ct===null?ft=dn:Ct.sibling=dn,Ct=dn,_t=zr}if(At===ge.length)return u(pe,_t),Vn&&ps(pe,At),ft;if(_t===null){for(;At<ge.length;At++)_t=Ue(pe,ge[At],Pe),_t!==null&&(le=C(_t,le,At),Ct===null?ft=_t:Ct.sibling=_t,Ct=_t);return Vn&&ps(pe,At),ft}for(_t=h(pe,_t);At<ge.length;At++)zr=rt(_t,pe,At,ge[At],Pe),zr!==null&&(r&&zr.alternate!==null&&_t.delete(zr.key===null?At:zr.key),le=C(zr,le,At),Ct===null?ft=zr:Ct.sibling=zr,Ct=zr);return r&&_t.forEach(function(Il){return i(pe,Il)}),Vn&&ps(pe,At),ft}function pt(pe,le,ge,Pe){var ft=J(ge);if(typeof ft!="function")throw Error(l(150));if(ge=ft.call(ge),ge==null)throw Error(l(151));for(var Ct=ft=null,_t=le,At=le=0,zr=null,dn=ge.next();_t!==null&&!dn.done;At++,dn=ge.next()){_t.index>At?(zr=_t,_t=null):zr=_t.sibling;var Il=ze(pe,_t,dn.value,Pe);if(Il===null){_t===null&&(_t=zr);break}r&&_t&&Il.alternate===null&&i(pe,_t),le=C(Il,le,At),Ct===null?ft=Il:Ct.sibling=Il,Ct=Il,_t=zr}if(dn.done)return u(pe,_t),Vn&&ps(pe,At),ft;if(_t===null){for(;!dn.done;At++,dn=ge.next())dn=Ue(pe,dn.value,Pe),dn!==null&&(le=C(dn,le,At),Ct===null?ft=dn:Ct.sibling=dn,Ct=dn);return Vn&&ps(pe,At),ft}for(_t=h(pe,_t);!dn.done;At++,dn=ge.next())dn=rt(_t,pe,At,dn.value,Pe),dn!==null&&(r&&dn.alternate!==null&&_t.delete(dn.key===null?At:dn.key),le=C(dn,le,At),Ct===null?ft=dn:Ct.sibling=dn,Ct=dn);return r&&_t.forEach(function(zy){return i(pe,zy)}),Vn&&ps(pe,At),ft}function ur(pe,le,ge,Pe){if(typeof ge=="object"&&ge!==null&&ge.type===q&&ge.key===null&&(ge=ge.props.children),typeof ge=="object"&&ge!==null){switch(ge.$$typeof){case H:e:{for(var ft=ge.key,Ct=le;Ct!==null;){if(Ct.key===ft){if(ft=ge.type,ft===q){if(Ct.tag===7){u(pe,Ct.sibling),le=y(Ct,ge.props.children),le.return=pe,pe=le;break e}}else if(Ct.elementType===ft||typeof ft=="object"&&ft!==null&&ft.$$typeof===Z&&Zg(ft)===Ct.type){u(pe,Ct.sibling),le=y(Ct,ge.props),le.ref=hs(pe,Ct,ge),le.return=pe,pe=le;break e}u(pe,Ct);break}else i(pe,Ct);Ct=Ct.sibling}ge.type===q?(le=Ko(ge.props.children,pe.mode,Pe,ge.key),le.return=pe,pe=le):(Pe=sf(ge.type,ge.key,ge.props,null,pe.mode,Pe),Pe.ref=hs(pe,le,ge),Pe.return=pe,pe=Pe)}return O(pe);case I:e:{for(Ct=ge.key;le!==null;){if(le.key===Ct)if(le.tag===4&&le.stateNode.containerInfo===ge.containerInfo&&le.stateNode.implementation===ge.implementation){u(pe,le.sibling),le=y(le,ge.children||[]),le.return=pe,pe=le;break e}else{u(pe,le);break}else i(pe,le);le=le.sibling}le=Qd(ge,pe.mode,Pe),le.return=pe,pe=le}return O(pe);case Z:return Ct=ge._init,ur(pe,le,Ct(ge._payload),Pe)}if(qt(ge))return ct(pe,le,ge,Pe);if(J(ge))return pt(pe,le,ge,Pe);yd(pe,ge)}return typeof ge=="string"&&ge!==""||typeof ge=="number"?(ge=""+ge,le!==null&&le.tag===6?(u(pe,le.sibling),le=y(le,ge),le.return=pe,pe=le):(u(pe,le),le=vv(ge,pe.mode,Pe),le.return=pe,pe=le),O(pe)):u(pe,le)}return ur}var ir=vs(!0),Ze=vs(!1),Za=yi(null),Pa=null,Su=null,Uh=null;function Fh(){Uh=Su=Pa=null}function Ih(r){var i=Za.current;zn(Za),r._currentValue=i}function Bh(r,i,u){for(;r!==null;){var h=r.alternate;if((r.childLanes&i)!==i?(r.childLanes|=i,h!==null&&(h.childLanes|=i)):h!==null&&(h.childLanes&i)!==i&&(h.childLanes|=i),r===u)break;r=r.return}}function Qn(r,i){Pa=r,Uh=Su=null,r=r.dependencies,r!==null&&r.firstContext!==null&&((r.lanes&i)!==0&&(mr=!0),r.firstContext=null)}function wi(r){var i=r._currentValue;if(Uh!==r)if(r={context:r,memoizedValue:i,next:null},Su===null){if(Pa===null)throw Error(l(308));Su=r,Pa.dependencies={lanes:0,firstContext:r}}else Su=Su.next=r;return i}var ms=null;function Hh(r){ms===null?ms=[r]:ms.push(r)}function Vh(r,i,u,h){var y=i.interleaved;return y===null?(u.next=u,Hh(i)):(u.next=y.next,y.next=u),i.interleaved=u,ei(r,h)}function ei(r,i){r.lanes|=i;var u=r.alternate;for(u!==null&&(u.lanes|=i),u=r,r=r.return;r!==null;)r.childLanes|=i,u=r.alternate,u!==null&&(u.childLanes|=i),u=r,r=r.return;return u.tag===3?u.stateNode:null}var ti=!1;function Yh(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ey(r,i){r=r.updateQueue,i.updateQueue===r&&(i.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,effects:r.effects})}function Vo(r,i){return{eventTime:r,lane:i,tag:0,payload:null,callback:null,next:null}}function Dl(r,i,u){var h=r.updateQueue;if(h===null)return null;if(h=h.shared,(Kt&2)!==0){var y=h.pending;return y===null?i.next=i:(i.next=y.next,y.next=i),h.pending=i,ei(r,u)}return y=h.interleaved,y===null?(i.next=i,Hh(h)):(i.next=y.next,y.next=i),h.interleaved=i,ei(r,u)}function xd(r,i,u){if(i=i.updateQueue,i!==null&&(i=i.shared,(u&4194240)!==0)){var h=i.lanes;h&=r.pendingLanes,u|=h,i.lanes=u,zo(r,u)}}function ty(r,i){var u=r.updateQueue,h=r.alternate;if(h!==null&&(h=h.updateQueue,u===h)){var y=null,C=null;if(u=u.firstBaseUpdate,u!==null){do{var O={eventTime:u.eventTime,lane:u.lane,tag:u.tag,payload:u.payload,callback:u.callback,next:null};C===null?y=C=O:C=C.next=O,u=u.next}while(u!==null);C===null?y=C=i:C=C.next=i}else y=C=i;u={baseState:h.baseState,firstBaseUpdate:y,lastBaseUpdate:C,shared:h.shared,effects:h.effects},r.updateQueue=u;return}r=u.lastBaseUpdate,r===null?u.firstBaseUpdate=i:r.next=i,u.lastBaseUpdate=i}function Ac(r,i,u,h){var y=r.updateQueue;ti=!1;var C=y.firstBaseUpdate,O=y.lastBaseUpdate,W=y.shared.pending;if(W!==null){y.shared.pending=null;var ee=W,be=ee.next;ee.next=null,O===null?C=be:O.next=be,O=ee;var je=r.alternate;je!==null&&(je=je.updateQueue,W=je.lastBaseUpdate,W!==O&&(W===null?je.firstBaseUpdate=be:W.next=be,je.lastBaseUpdate=ee))}if(C!==null){var Ue=y.baseState;O=0,je=be=ee=null,W=C;do{var ze=W.lane,rt=W.eventTime;if((h&ze)===ze){je!==null&&(je=je.next={eventTime:rt,lane:0,tag:W.tag,payload:W.payload,callback:W.callback,next:null});e:{var ct=r,pt=W;switch(ze=i,rt=u,pt.tag){case 1:if(ct=pt.payload,typeof ct=="function"){Ue=ct.call(rt,Ue,ze);break e}Ue=ct;break e;case 3:ct.flags=ct.flags&-65537|128;case 0:if(ct=pt.payload,ze=typeof ct=="function"?ct.call(rt,Ue,ze):ct,ze==null)break e;Ue=ne({},Ue,ze);break e;case 2:ti=!0}}W.callback!==null&&W.lane!==0&&(r.flags|=64,ze=y.effects,ze===null?y.effects=[W]:ze.push(W))}else rt={eventTime:rt,lane:ze,tag:W.tag,payload:W.payload,callback:W.callback,next:null},je===null?(be=je=rt,ee=Ue):je=je.next=rt,O|=ze;if(W=W.next,W===null){if(W=y.shared.pending,W===null)break;ze=W,W=ze.next,ze.next=null,y.lastBaseUpdate=ze,y.shared.pending=null}}while(!0);if(je===null&&(ee=Ue),y.baseState=ee,y.firstBaseUpdate=be,y.lastBaseUpdate=je,i=y.shared.interleaved,i!==null){y=i;do O|=y.lane,y=y.next;while(y!==i)}else C===null&&(y.shared.lanes=0);go|=O,r.lanes=O,r.memoizedState=Ue}}function Wh(r,i,u){if(r=i.effects,i.effects=null,r!==null)for(i=0;i<r.length;i++){var h=r[i],y=h.callback;if(y!==null){if(h.callback=null,h=u,typeof y!="function")throw Error(l(191,y));y.call(h)}}}var Oc={},po=yi(Oc),Lc=yi(Oc),zc=yi(Oc);function gs(r){if(r===Oc)throw Error(l(174));return r}function qh(r,i){switch(gt(zc,i),gt(Lc,r),gt(po,Oc),r=i.nodeType,r){case 9:case 11:i=(i=i.documentElement)?i.namespaceURI:qn(null,"");break;default:r=r===8?i.parentNode:i,i=r.namespaceURI||null,r=r.tagName,i=qn(i,r)}zn(po),gt(po,i)}function ys(){zn(po),zn(Lc),zn(zc)}function ny(r){gs(zc.current);var i=gs(po.current),u=qn(i,r.type);i!==u&&(gt(Lc,r),gt(po,u))}function bd(r){Lc.current===r&&(zn(po),zn(Lc))}var Jn=yi(0);function wd(r){for(var i=r;i!==null;){if(i.tag===13){var u=i.memoizedState;if(u!==null&&(u=u.dehydrated,u===null||u.data==="$?"||u.data==="$!"))return i}else if(i.tag===19&&i.memoizedProps.revealOrder!==void 0){if((i.flags&128)!==0)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===r)break;for(;i.sibling===null;){if(i.return===null||i.return===r)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}var jc=[];function xt(){for(var r=0;r<jc.length;r++)jc[r]._workInProgressVersionPrimary=null;jc.length=0}var Bt=$.ReactCurrentDispatcher,cn=$.ReactCurrentBatchConfig,_n=0,fn=null,vr=null,Or=null,Sd=!1,Pc=!1,xs=0,Le=0;function on(){throw Error(l(321))}function Mt(r,i){if(i===null)return!1;for(var u=0;u<i.length&&u<r.length;u++)if(!Ui(r[u],i[u]))return!1;return!0}function Al(r,i,u,h,y,C){if(_n=C,fn=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,Bt.current=r===null||r.memoizedState===null?Pd:Hc,r=u(h,y),Pc){C=0;do{if(Pc=!1,xs=0,25<=C)throw Error(l(301));C+=1,Or=vr=null,i.updateQueue=null,Bt.current=$d,r=u(h,y)}while(Pc)}if(Bt.current=Es,i=vr!==null&&vr.next!==null,_n=0,Or=vr=fn=null,Sd=!1,i)throw Error(l(300));return r}function Ii(){var r=xs!==0;return xs=0,r}function ia(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Or===null?fn.memoizedState=Or=r:Or=Or.next=r,Or}function or(){if(vr===null){var r=fn.alternate;r=r!==null?r.memoizedState:null}else r=vr.next;var i=Or===null?fn.memoizedState:Or.next;if(i!==null)Or=i,vr=r;else{if(r===null)throw Error(l(310));vr=r,r={memoizedState:vr.memoizedState,baseState:vr.baseState,baseQueue:vr.baseQueue,queue:vr.queue,next:null},Or===null?fn.memoizedState=Or=r:Or=Or.next=r}return Or}function Yo(r,i){return typeof i=="function"?i(r):i}function Ol(r){var i=or(),u=i.queue;if(u===null)throw Error(l(311));u.lastRenderedReducer=r;var h=vr,y=h.baseQueue,C=u.pending;if(C!==null){if(y!==null){var O=y.next;y.next=C.next,C.next=O}h.baseQueue=y=C,u.pending=null}if(y!==null){C=y.next,h=h.baseState;var W=O=null,ee=null,be=C;do{var je=be.lane;if((_n&je)===je)ee!==null&&(ee=ee.next={lane:0,action:be.action,hasEagerState:be.hasEagerState,eagerState:be.eagerState,next:null}),h=be.hasEagerState?be.eagerState:r(h,be.action);else{var Ue={lane:je,action:be.action,hasEagerState:be.hasEagerState,eagerState:be.eagerState,next:null};ee===null?(W=ee=Ue,O=h):ee=ee.next=Ue,fn.lanes|=je,go|=je}be=be.next}while(be!==null&&be!==C);ee===null?O=h:ee.next=W,Ui(h,i.memoizedState)||(mr=!0),i.memoizedState=h,i.baseState=O,i.baseQueue=ee,u.lastRenderedState=h}if(r=u.interleaved,r!==null){y=r;do C=y.lane,fn.lanes|=C,go|=C,y=y.next;while(y!==r)}else y===null&&(u.lanes=0);return[i.memoizedState,u.dispatch]}function bs(r){var i=or(),u=i.queue;if(u===null)throw Error(l(311));u.lastRenderedReducer=r;var h=u.dispatch,y=u.pending,C=i.memoizedState;if(y!==null){u.pending=null;var O=y=y.next;do C=r(C,O.action),O=O.next;while(O!==y);Ui(C,i.memoizedState)||(mr=!0),i.memoizedState=C,i.baseQueue===null&&(i.baseState=C),u.lastRenderedState=C}return[C,h]}function Cd(){}function Ed(r,i){var u=fn,h=or(),y=i(),C=!Ui(h.memoizedState,y);if(C&&(h.memoizedState=y,mr=!0),h=h.queue,$c(Rd.bind(null,u,h,r),[r]),h.getSnapshot!==i||C||Or!==null&&Or.memoizedState.tag&1){if(u.flags|=2048,ws(9,Td.bind(null,u,h,y,i),void 0,null),Tr===null)throw Error(l(349));(_n&30)!==0||_d(u,i,y)}return y}function _d(r,i,u){r.flags|=16384,r={getSnapshot:i,value:u},i=fn.updateQueue,i===null?(i={lastEffect:null,stores:null},fn.updateQueue=i,i.stores=[r]):(u=i.stores,u===null?i.stores=[r]:u.push(r))}function Td(r,i,u,h){i.value=u,i.getSnapshot=h,kd(i)&&Md(r)}function Rd(r,i,u){return u(function(){kd(i)&&Md(r)})}function kd(r){var i=r.getSnapshot;r=r.value;try{var u=i();return!Ui(r,u)}catch{return!0}}function Md(r){var i=ei(r,1);i!==null&&wa(i,r,1,-1)}function Nd(r){var i=ia();return typeof r=="function"&&(r=r()),i.memoizedState=i.baseState=r,r={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Yo,lastRenderedState:r},i.queue=r,r=r.dispatch=Cs.bind(null,fn,r),[i.memoizedState,r]}function ws(r,i,u,h){return r={tag:r,create:i,destroy:u,deps:h,next:null},i=fn.updateQueue,i===null?(i={lastEffect:null,stores:null},fn.updateQueue=i,i.lastEffect=r.next=r):(u=i.lastEffect,u===null?i.lastEffect=r.next=r:(h=u.next,u.next=r,r.next=h,i.lastEffect=r)),r}function Dd(){return or().memoizedState}function Cu(r,i,u,h){var y=ia();fn.flags|=r,y.memoizedState=ws(1|i,u,void 0,h===void 0?null:h)}function Eu(r,i,u,h){var y=or();h=h===void 0?null:h;var C=void 0;if(vr!==null){var O=vr.memoizedState;if(C=O.destroy,h!==null&&Mt(h,O.deps)){y.memoizedState=ws(i,u,C,h);return}}fn.flags|=r,y.memoizedState=ws(1|i,u,C,h)}function Ad(r,i){return Cu(8390656,8,r,i)}function $c(r,i){return Eu(2048,8,r,i)}function Od(r,i){return Eu(4,2,r,i)}function Uc(r,i){return Eu(4,4,r,i)}function Ss(r,i){if(typeof i=="function")return r=r(),i(r),function(){i(null)};if(i!=null)return r=r(),i.current=r,function(){i.current=null}}function Ld(r,i,u){return u=u!=null?u.concat([r]):null,Eu(4,4,Ss.bind(null,i,r),u)}function Fc(){}function zd(r,i){var u=or();i=i===void 0?null:i;var h=u.memoizedState;return h!==null&&i!==null&&Mt(i,h[1])?h[0]:(u.memoizedState=[r,i],r)}function jd(r,i){var u=or();i=i===void 0?null:i;var h=u.memoizedState;return h!==null&&i!==null&&Mt(i,h[1])?h[0]:(r=r(),u.memoizedState=[r,i],r)}function Gh(r,i,u){return(_n&21)===0?(r.baseState&&(r.baseState=!1,mr=!0),r.memoizedState=u):(Ui(u,i)||(u=eo(),fn.lanes|=u,go|=u,r.baseState=!0),i)}function Ic(r,i){var u=un;un=u!==0&&4>u?u:4,r(!0);var h=cn.transition;cn.transition={};try{r(!1),i()}finally{un=u,cn.transition=h}}function Kh(){return or().memoizedState}function Bc(r,i,u){var h=yo(r);if(u={lane:h,action:u,hasEagerState:!1,eagerState:null,next:null},$a(r))ry(i,u);else if(u=Vh(r,i,u,h),u!==null){var y=xr();wa(u,r,h,y),Nn(u,i,h)}}function Cs(r,i,u){var h=yo(r),y={lane:h,action:u,hasEagerState:!1,eagerState:null,next:null};if($a(r))ry(i,y);else{var C=r.alternate;if(r.lanes===0&&(C===null||C.lanes===0)&&(C=i.lastRenderedReducer,C!==null))try{var O=i.lastRenderedState,W=C(O,u);if(y.hasEagerState=!0,y.eagerState=W,Ui(W,O)){var ee=i.interleaved;ee===null?(y.next=y,Hh(i)):(y.next=ee.next,ee.next=y),i.interleaved=y;return}}catch{}finally{}u=Vh(r,i,y,h),u!==null&&(y=xr(),wa(u,r,h,y),Nn(u,i,h))}}function $a(r){var i=r.alternate;return r===fn||i!==null&&i===fn}function ry(r,i){Pc=Sd=!0;var u=r.pending;u===null?i.next=i:(i.next=u.next,u.next=i),r.pending=i}function Nn(r,i,u){if((u&4194240)!==0){var h=i.lanes;h&=r.pendingLanes,u|=h,i.lanes=u,zo(r,u)}}var Es={readContext:wi,useCallback:on,useContext:on,useEffect:on,useImperativeHandle:on,useInsertionEffect:on,useLayoutEffect:on,useMemo:on,useReducer:on,useRef:on,useState:on,useDebugValue:on,useDeferredValue:on,useTransition:on,useMutableSource:on,useSyncExternalStore:on,useId:on,unstable_isNewReconciler:!1},Pd={readContext:wi,useCallback:function(r,i){return ia().memoizedState=[r,i===void 0?null:i],r},useContext:wi,useEffect:Ad,useImperativeHandle:function(r,i,u){return u=u!=null?u.concat([r]):null,Cu(4194308,4,Ss.bind(null,i,r),u)},useLayoutEffect:function(r,i){return Cu(4194308,4,r,i)},useInsertionEffect:function(r,i){return Cu(4,2,r,i)},useMemo:function(r,i){var u=ia();return i=i===void 0?null:i,r=r(),u.memoizedState=[r,i],r},useReducer:function(r,i,u){var h=ia();return i=u!==void 0?u(i):i,h.memoizedState=h.baseState=i,r={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:i},h.queue=r,r=r.dispatch=Bc.bind(null,fn,r),[h.memoizedState,r]},useRef:function(r){var i=ia();return r={current:r},i.memoizedState=r},useState:Nd,useDebugValue:Fc,useDeferredValue:function(r){return ia().memoizedState=r},useTransition:function(){var r=Nd(!1),i=r[0];return r=Ic.bind(null,r[1]),ia().memoizedState=r,[i,r]},useMutableSource:function(){},useSyncExternalStore:function(r,i,u){var h=fn,y=ia();if(Vn){if(u===void 0)throw Error(l(407));u=u()}else{if(u=i(),Tr===null)throw Error(l(349));(_n&30)!==0||_d(h,i,u)}y.memoizedState=u;var C={value:u,getSnapshot:i};return y.queue=C,Ad(Rd.bind(null,h,C,r),[r]),h.flags|=2048,ws(9,Td.bind(null,h,C,u,i),void 0,null),u},useId:function(){var r=ia(),i=Tr.identifierPrefix;if(Vn){var u=fo,h=co;u=(h&~(1<<32-Sr(h)-1)).toString(32)+u,i=":"+i+"R"+u,u=xs++,0<u&&(i+="H"+u.toString(32)),i+=":"}else u=Le++,i=":"+i+"r"+u.toString(32)+":";return r.memoizedState=i},unstable_isNewReconciler:!1},Hc={readContext:wi,useCallback:zd,useContext:wi,useEffect:$c,useImperativeHandle:Ld,useInsertionEffect:Od,useLayoutEffect:Uc,useMemo:jd,useReducer:Ol,useRef:Dd,useState:function(){return Ol(Yo)},useDebugValue:Fc,useDeferredValue:function(r){var i=or();return Gh(i,vr.memoizedState,r)},useTransition:function(){var r=Ol(Yo)[0],i=or().memoizedState;return[r,i]},useMutableSource:Cd,useSyncExternalStore:Ed,useId:Kh,unstable_isNewReconciler:!1},$d={readContext:wi,useCallback:zd,useContext:wi,useEffect:$c,useImperativeHandle:Ld,useInsertionEffect:Od,useLayoutEffect:Uc,useMemo:jd,useReducer:bs,useRef:Dd,useState:function(){return bs(Yo)},useDebugValue:Fc,useDeferredValue:function(r){var i=or();return vr===null?i.memoizedState=r:Gh(i,vr.memoizedState,r)},useTransition:function(){var r=bs(Yo)[0],i=or().memoizedState;return[r,i]},useMutableSource:Cd,useSyncExternalStore:Ed,useId:Kh,unstable_isNewReconciler:!1};function Bi(r,i){if(r&&r.defaultProps){i=ne({},i),r=r.defaultProps;for(var u in r)i[u]===void 0&&(i[u]=r[u]);return i}return i}function Xh(r,i,u,h){i=r.memoizedState,u=u(h,i),u=u==null?i:ne({},i,u),r.memoizedState=u,r.lanes===0&&(r.updateQueue.baseState=u)}var Ud={isMounted:function(r){return(r=r._reactInternals)?Qe(r)===r:!1},enqueueSetState:function(r,i,u){r=r._reactInternals;var h=xr(),y=yo(r),C=Vo(h,y);C.payload=i,u!=null&&(C.callback=u),i=Dl(r,C,y),i!==null&&(wa(i,r,y,h),xd(i,r,y))},enqueueReplaceState:function(r,i,u){r=r._reactInternals;var h=xr(),y=yo(r),C=Vo(h,y);C.tag=1,C.payload=i,u!=null&&(C.callback=u),i=Dl(r,C,y),i!==null&&(wa(i,r,y,h),xd(i,r,y))},enqueueForceUpdate:function(r,i){r=r._reactInternals;var u=xr(),h=yo(r),y=Vo(u,h);y.tag=2,i!=null&&(y.callback=i),i=Dl(r,y,h),i!==null&&(wa(i,r,h,u),xd(i,r,h))}};function ay(r,i,u,h,y,C,O){return r=r.stateNode,typeof r.shouldComponentUpdate=="function"?r.shouldComponentUpdate(h,C,O):i.prototype&&i.prototype.isPureReactComponent?!Sc(u,h)||!Sc(y,C):!0}function Fd(r,i,u){var h=!1,y=aa,C=i.contextType;return typeof C=="object"&&C!==null?C=wi(C):(y=pr(i)?Oa:ar.current,h=i.contextTypes,C=(h=h!=null)?La(r,y):aa),i=new i(u,C),r.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=Ud,r.stateNode=i,i._reactInternals=r,h&&(r=r.stateNode,r.__reactInternalMemoizedUnmaskedChildContext=y,r.__reactInternalMemoizedMaskedChildContext=C),i}function iy(r,i,u,h){r=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(u,h),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(u,h),i.state!==r&&Ud.enqueueReplaceState(i,i.state,null)}function Vc(r,i,u,h){var y=r.stateNode;y.props=u,y.state=r.memoizedState,y.refs={},Yh(r);var C=i.contextType;typeof C=="object"&&C!==null?y.context=wi(C):(C=pr(i)?Oa:ar.current,y.context=La(r,C)),y.state=r.memoizedState,C=i.getDerivedStateFromProps,typeof C=="function"&&(Xh(r,i,C,u),y.state=r.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof y.getSnapshotBeforeUpdate=="function"||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(i=y.state,typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount(),i!==y.state&&Ud.enqueueReplaceState(y,y.state,null),Ac(r,u,y,h),y.state=r.memoizedState),typeof y.componentDidMount=="function"&&(r.flags|=4194308)}function _s(r,i){try{var u="",h=i;do u+=Oe(h),h=h.return;while(h);var y=u}catch(C){y=`
|
|
99
|
+
Error generating stack: `+C.message+`
|
|
100
|
+
`+C.stack}return{value:r,source:i,stack:y,digest:null}}function Qh(r,i,u){return{value:r,source:null,stack:u??null,digest:i??null}}function Jh(r,i){try{console.error(i.value)}catch(u){setTimeout(function(){throw u})}}var Id=typeof WeakMap=="function"?WeakMap:Map;function oy(r,i,u){u=Vo(-1,u),u.tag=3,u.payload={element:null};var h=i.value;return u.callback=function(){Nu||(Nu=!0,ks=h),Jh(r,i)},u}function Zh(r,i,u){u=Vo(-1,u),u.tag=3;var h=r.type.getDerivedStateFromError;if(typeof h=="function"){var y=i.value;u.payload=function(){return h(y)},u.callback=function(){Jh(r,i)}}var C=r.stateNode;return C!==null&&typeof C.componentDidCatch=="function"&&(u.callback=function(){Jh(r,i),typeof h!="function"&&(jl===null?jl=new Set([this]):jl.add(this));var O=i.stack;this.componentDidCatch(i.value,{componentStack:O!==null?O:""})}),u}function ev(r,i,u){var h=r.pingCache;if(h===null){h=r.pingCache=new Id;var y=new Set;h.set(i,y)}else y=h.get(i),y===void 0&&(y=new Set,h.set(i,y));y.has(u)||(y.add(u),r=Xb.bind(null,r,i,u),i.then(r,r))}function ly(r){do{var i;if((i=r.tag===13)&&(i=r.memoizedState,i=i!==null?i.dehydrated!==null:!0),i)return r;r=r.return}while(r!==null);return null}function Ll(r,i,u,h,y){return(r.mode&1)===0?(r===i?r.flags|=65536:(r.flags|=128,u.flags|=131072,u.flags&=-52805,u.tag===1&&(u.alternate===null?u.tag=17:(i=Vo(-1,1),i.tag=2,Dl(u,i,1))),u.lanes|=1),r):(r.flags|=65536,r.lanes=y,r)}var Yc=$.ReactCurrentOwner,mr=!1;function Ir(r,i,u,h){i.child=r===null?Ze(i,null,u,h):ir(i,r.child,u,h)}function Ua(r,i,u,h,y){u=u.render;var C=i.ref;return Qn(i,y),h=Al(r,i,u,h,C,y),u=Ii(),r!==null&&!mr?(i.updateQueue=r.updateQueue,i.flags&=-2053,r.lanes&=~y,Ci(r,i,y)):(Vn&&u&&vd(i),i.flags|=1,Ir(r,i,h,y),i.child)}function Ts(r,i,u,h,y){if(r===null){var C=u.type;return typeof C=="function"&&!hv(C)&&C.defaultProps===void 0&&u.compare===null&&u.defaultProps===void 0?(i.tag=15,i.type=C,Ut(r,i,C,h,y)):(r=sf(u.type,null,h,i,i.mode,y),r.ref=i.ref,r.return=i,i.child=r)}if(C=r.child,(r.lanes&y)===0){var O=C.memoizedProps;if(u=u.compare,u=u!==null?u:Sc,u(O,h)&&r.ref===i.ref)return Ci(r,i,y)}return i.flags|=1,r=$l(C,h),r.ref=i.ref,r.return=i,i.child=r}function Ut(r,i,u,h,y){if(r!==null){var C=r.memoizedProps;if(Sc(C,h)&&r.ref===i.ref)if(mr=!1,i.pendingProps=h=C,(r.lanes&y)!==0)(r.flags&131072)!==0&&(mr=!0);else return i.lanes=r.lanes,Ci(r,i,y)}return sy(r,i,u,h,y)}function Wc(r,i,u){var h=i.pendingProps,y=h.children,C=r!==null?r.memoizedState:null;if(h.mode==="hidden")if((i.mode&1)===0)i.memoizedState={baseLanes:0,cachePool:null,transitions:null},gt(Ru,ni),ni|=u;else{if((u&1073741824)===0)return r=C!==null?C.baseLanes|u:u,i.lanes=i.childLanes=1073741824,i.memoizedState={baseLanes:r,cachePool:null,transitions:null},i.updateQueue=null,gt(Ru,ni),ni|=r,null;i.memoizedState={baseLanes:0,cachePool:null,transitions:null},h=C!==null?C.baseLanes:u,gt(Ru,ni),ni|=h}else C!==null?(h=C.baseLanes|u,i.memoizedState=null):h=u,gt(Ru,ni),ni|=h;return Ir(r,i,y,u),i.child}function tv(r,i){var u=i.ref;(r===null&&u!==null||r!==null&&r.ref!==u)&&(i.flags|=512,i.flags|=2097152)}function sy(r,i,u,h,y){var C=pr(u)?Oa:ar.current;return C=La(i,C),Qn(i,y),u=Al(r,i,u,h,C,y),h=Ii(),r!==null&&!mr?(i.updateQueue=r.updateQueue,i.flags&=-2053,r.lanes&=~y,Ci(r,i,y)):(Vn&&h&&vd(i),i.flags|=1,Ir(r,i,u,y),i.child)}function uy(r,i,u,h,y){if(pr(u)){var C=!0;Ar(i)}else C=!1;if(Qn(i,y),i.stateNode===null)Si(r,i),Fd(i,u,h),Vc(i,u,h,y),h=!0;else if(r===null){var O=i.stateNode,W=i.memoizedProps;O.props=W;var ee=O.context,be=u.contextType;typeof be=="object"&&be!==null?be=wi(be):(be=pr(u)?Oa:ar.current,be=La(i,be));var je=u.getDerivedStateFromProps,Ue=typeof je=="function"||typeof O.getSnapshotBeforeUpdate=="function";Ue||typeof O.UNSAFE_componentWillReceiveProps!="function"&&typeof O.componentWillReceiveProps!="function"||(W!==h||ee!==be)&&iy(i,O,h,be),ti=!1;var ze=i.memoizedState;O.state=ze,Ac(i,h,O,y),ee=i.memoizedState,W!==h||ze!==ee||Er.current||ti?(typeof je=="function"&&(Xh(i,u,je,h),ee=i.memoizedState),(W=ti||ay(i,u,W,h,ze,ee,be))?(Ue||typeof O.UNSAFE_componentWillMount!="function"&&typeof O.componentWillMount!="function"||(typeof O.componentWillMount=="function"&&O.componentWillMount(),typeof O.UNSAFE_componentWillMount=="function"&&O.UNSAFE_componentWillMount()),typeof O.componentDidMount=="function"&&(i.flags|=4194308)):(typeof O.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=h,i.memoizedState=ee),O.props=h,O.state=ee,O.context=be,h=W):(typeof O.componentDidMount=="function"&&(i.flags|=4194308),h=!1)}else{O=i.stateNode,ey(r,i),W=i.memoizedProps,be=i.type===i.elementType?W:Bi(i.type,W),O.props=be,Ue=i.pendingProps,ze=O.context,ee=u.contextType,typeof ee=="object"&&ee!==null?ee=wi(ee):(ee=pr(u)?Oa:ar.current,ee=La(i,ee));var rt=u.getDerivedStateFromProps;(je=typeof rt=="function"||typeof O.getSnapshotBeforeUpdate=="function")||typeof O.UNSAFE_componentWillReceiveProps!="function"&&typeof O.componentWillReceiveProps!="function"||(W!==Ue||ze!==ee)&&iy(i,O,h,ee),ti=!1,ze=i.memoizedState,O.state=ze,Ac(i,h,O,y);var ct=i.memoizedState;W!==Ue||ze!==ct||Er.current||ti?(typeof rt=="function"&&(Xh(i,u,rt,h),ct=i.memoizedState),(be=ti||ay(i,u,be,h,ze,ct,ee)||!1)?(je||typeof O.UNSAFE_componentWillUpdate!="function"&&typeof O.componentWillUpdate!="function"||(typeof O.componentWillUpdate=="function"&&O.componentWillUpdate(h,ct,ee),typeof O.UNSAFE_componentWillUpdate=="function"&&O.UNSAFE_componentWillUpdate(h,ct,ee)),typeof O.componentDidUpdate=="function"&&(i.flags|=4),typeof O.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof O.componentDidUpdate!="function"||W===r.memoizedProps&&ze===r.memoizedState||(i.flags|=4),typeof O.getSnapshotBeforeUpdate!="function"||W===r.memoizedProps&&ze===r.memoizedState||(i.flags|=1024),i.memoizedProps=h,i.memoizedState=ct),O.props=h,O.state=ct,O.context=ee,h=be):(typeof O.componentDidUpdate!="function"||W===r.memoizedProps&&ze===r.memoizedState||(i.flags|=4),typeof O.getSnapshotBeforeUpdate!="function"||W===r.memoizedProps&&ze===r.memoizedState||(i.flags|=1024),h=!1)}return qc(r,i,u,h,C,y)}function qc(r,i,u,h,y,C){tv(r,i);var O=(i.flags&128)!==0;if(!h&&!O)return y&&pd(i,u,!1),Ci(r,i,C);h=i.stateNode,Yc.current=i;var W=O&&typeof u.getDerivedStateFromError!="function"?null:h.render();return i.flags|=1,r!==null&&O?(i.child=ir(i,r.child,null,C),i.child=ir(i,null,W,C)):Ir(r,i,W,C),i.memoizedState=h.state,y&&pd(i,u,!0),i.child}function _u(r){var i=r.stateNode;i.pendingContext?Xg(r,i.pendingContext,i.pendingContext!==i.context):i.context&&Xg(r,i.context,!1),qh(r,i.containerInfo)}function cy(r,i,u,h,y){return Nl(),Ho(y),i.flags|=256,Ir(r,i,u,h),i.child}var Bd={dehydrated:null,treeContext:null,retryLane:0};function nv(r){return{baseLanes:r,cachePool:null,transitions:null}}function Hd(r,i,u){var h=i.pendingProps,y=Jn.current,C=!1,O=(i.flags&128)!==0,W;if((W=O)||(W=r!==null&&r.memoizedState===null?!1:(y&2)!==0),W?(C=!0,i.flags&=-129):(r===null||r.memoizedState!==null)&&(y|=1),gt(Jn,y&1),r===null)return $h(i),r=i.memoizedState,r!==null&&(r=r.dehydrated,r!==null)?((i.mode&1)===0?i.lanes=1:r.data==="$!"?i.lanes=8:i.lanes=1073741824,null):(O=h.children,r=h.fallback,C?(h=i.mode,C=i.child,O={mode:"hidden",children:O},(h&1)===0&&C!==null?(C.childLanes=0,C.pendingProps=O):C=Ul(O,h,0,null),r=Ko(r,h,u,null),C.return=i,r.return=i,C.sibling=r,i.child=C,i.child.memoizedState=nv(u),i.memoizedState=Bd,r):rv(i,O));if(y=r.memoizedState,y!==null&&(W=y.dehydrated,W!==null))return fy(r,i,O,h,W,y,u);if(C){C=h.fallback,O=i.mode,y=r.child,W=y.sibling;var ee={mode:"hidden",children:h.children};return(O&1)===0&&i.child!==y?(h=i.child,h.childLanes=0,h.pendingProps=ee,i.deletions=null):(h=$l(y,ee),h.subtreeFlags=y.subtreeFlags&14680064),W!==null?C=$l(W,C):(C=Ko(C,O,u,null),C.flags|=2),C.return=i,h.return=i,h.sibling=C,i.child=h,h=C,C=i.child,O=r.child.memoizedState,O=O===null?nv(u):{baseLanes:O.baseLanes|u,cachePool:null,transitions:O.transitions},C.memoizedState=O,C.childLanes=r.childLanes&~u,i.memoizedState=Bd,h}return C=r.child,r=C.sibling,h=$l(C,{mode:"visible",children:h.children}),(i.mode&1)===0&&(h.lanes=u),h.return=i,h.sibling=null,r!==null&&(u=i.deletions,u===null?(i.deletions=[r],i.flags|=16):u.push(r)),i.child=h,i.memoizedState=null,h}function rv(r,i){return i=Ul({mode:"visible",children:i},r.mode,0,null),i.return=r,r.child=i}function Gc(r,i,u,h){return h!==null&&Ho(h),ir(i,r.child,null,u),r=rv(i,i.pendingProps.children),r.flags|=2,i.memoizedState=null,r}function fy(r,i,u,h,y,C,O){if(u)return i.flags&256?(i.flags&=-257,h=Qh(Error(l(422))),Gc(r,i,O,h)):i.memoizedState!==null?(i.child=r.child,i.flags|=128,null):(C=h.fallback,y=i.mode,h=Ul({mode:"visible",children:h.children},y,0,null),C=Ko(C,y,O,null),C.flags|=2,h.return=i,C.return=i,h.sibling=C,i.child=h,(i.mode&1)!==0&&ir(i,r.child,null,O),i.child.memoizedState=nv(O),i.memoizedState=Bd,C);if((i.mode&1)===0)return Gc(r,i,O,null);if(y.data==="$!"){if(h=y.nextSibling&&y.nextSibling.dataset,h)var W=h.dgst;return h=W,C=Error(l(419)),h=Qh(C,h,void 0),Gc(r,i,O,h)}if(W=(O&r.childLanes)!==0,mr||W){if(h=Tr,h!==null){switch(O&-O){case 4:y=2;break;case 16:y=8;break;case 64: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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:y=32;break;case 536870912:y=268435456;break;default:y=0}y=(y&(h.suspendedLanes|O))!==0?0:y,y!==0&&y!==C.retryLane&&(C.retryLane=y,ei(r,y),wa(h,r,y,-1))}return pv(),h=Qh(Error(l(421))),Gc(r,i,O,h)}return y.data==="$?"?(i.flags|=128,i.child=r.child,i=Qb.bind(null,r),y._reactRetry=i,null):(r=C.treeContext,ja=oo(y.nextSibling),za=i,Vn=!0,bi=null,r!==null&&(hr[xi++]=co,hr[xi++]=fo,hr[xi++]=Ja,co=r.id,fo=r.overflow,Ja=i),i=rv(i,h.children),i.flags|=4096,i)}function av(r,i,u){r.lanes|=i;var h=r.alternate;h!==null&&(h.lanes|=i),Bh(r.return,i,u)}function ya(r,i,u,h,y){var C=r.memoizedState;C===null?r.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:h,tail:u,tailMode:y}:(C.isBackwards=i,C.rendering=null,C.renderingStartTime=0,C.last=h,C.tail=u,C.tailMode=y)}function ho(r,i,u){var h=i.pendingProps,y=h.revealOrder,C=h.tail;if(Ir(r,i,h.children,u),h=Jn.current,(h&2)!==0)h=h&1|2,i.flags|=128;else{if(r!==null&&(r.flags&128)!==0)e:for(r=i.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&av(r,u,i);else if(r.tag===19)av(r,u,i);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===i)break e;for(;r.sibling===null;){if(r.return===null||r.return===i)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}h&=1}if(gt(Jn,h),(i.mode&1)===0)i.memoizedState=null;else switch(y){case"forwards":for(u=i.child,y=null;u!==null;)r=u.alternate,r!==null&&wd(r)===null&&(y=u),u=u.sibling;u=y,u===null?(y=i.child,i.child=null):(y=u.sibling,u.sibling=null),ya(i,!1,y,u,C);break;case"backwards":for(u=null,y=i.child,i.child=null;y!==null;){if(r=y.alternate,r!==null&&wd(r)===null){i.child=y;break}r=y.sibling,y.sibling=u,u=y,y=r}ya(i,!0,u,null,C);break;case"together":ya(i,!1,null,null,void 0);break;default:i.memoizedState=null}return i.child}function Si(r,i){(i.mode&1)===0&&r!==null&&(r.alternate=null,i.alternate=null,i.flags|=2)}function Ci(r,i,u){if(r!==null&&(i.dependencies=r.dependencies),go|=i.lanes,(u&i.childLanes)===0)return null;if(r!==null&&i.child!==r.child)throw Error(l(153));if(i.child!==null){for(r=i.child,u=$l(r,r.pendingProps),i.child=u,u.return=i;r.sibling!==null;)r=r.sibling,u=u.sibling=$l(r,r.pendingProps),u.return=i;u.sibling=null}return i.child}function Kc(r,i,u){switch(i.tag){case 3:_u(i),Nl();break;case 5:ny(i);break;case 1:pr(i.type)&&Ar(i);break;case 4:qh(i,i.stateNode.containerInfo);break;case 10:var h=i.type._context,y=i.memoizedProps.value;gt(Za,h._currentValue),h._currentValue=y;break;case 13:if(h=i.memoizedState,h!==null)return h.dehydrated!==null?(gt(Jn,Jn.current&1),i.flags|=128,null):(u&i.child.childLanes)!==0?Hd(r,i,u):(gt(Jn,Jn.current&1),r=Ci(r,i,u),r!==null?r.sibling:null);gt(Jn,Jn.current&1);break;case 19:if(h=(u&i.childLanes)!==0,(r.flags&128)!==0){if(h)return ho(r,i,u);i.flags|=128}if(y=i.memoizedState,y!==null&&(y.rendering=null,y.tail=null,y.lastEffect=null),gt(Jn,Jn.current),h)break;return null;case 22:case 23:return i.lanes=0,Wc(r,i,u)}return Ci(r,i,u)}var Ei,gr,dy,py;Ei=function(r,i){for(var u=i.child;u!==null;){if(u.tag===5||u.tag===6)r.appendChild(u.stateNode);else if(u.tag!==4&&u.child!==null){u.child.return=u,u=u.child;continue}if(u===i)break;for(;u.sibling===null;){if(u.return===null||u.return===i)return;u=u.return}u.sibling.return=u.return,u=u.sibling}},gr=function(){},dy=function(r,i,u,h){var y=r.memoizedProps;if(y!==h){r=i.stateNode,gs(po.current);var C=null;switch(u){case"input":y=ht(r,y),h=ht(r,h),C=[];break;case"select":y=ne({},y,{value:void 0}),h=ne({},h,{value:void 0}),C=[];break;case"textarea":y=vn(r,y),h=vn(r,h),C=[];break;default:typeof y.onClick!="function"&&typeof h.onClick=="function"&&(r.onclick=El)}bn(u,h);var O;u=null;for(be in y)if(!h.hasOwnProperty(be)&&y.hasOwnProperty(be)&&y[be]!=null)if(be==="style"){var W=y[be];for(O in W)W.hasOwnProperty(O)&&(u||(u={}),u[O]="")}else be!=="dangerouslySetInnerHTML"&&be!=="children"&&be!=="suppressContentEditableWarning"&&be!=="suppressHydrationWarning"&&be!=="autoFocus"&&(f.hasOwnProperty(be)?C||(C=[]):(C=C||[]).push(be,null));for(be in h){var ee=h[be];if(W=y!=null?y[be]:void 0,h.hasOwnProperty(be)&&ee!==W&&(ee!=null||W!=null))if(be==="style")if(W){for(O in W)!W.hasOwnProperty(O)||ee&&ee.hasOwnProperty(O)||(u||(u={}),u[O]="");for(O in ee)ee.hasOwnProperty(O)&&W[O]!==ee[O]&&(u||(u={}),u[O]=ee[O])}else u||(C||(C=[]),C.push(be,u)),u=ee;else be==="dangerouslySetInnerHTML"?(ee=ee?ee.__html:void 0,W=W?W.__html:void 0,ee!=null&&W!==ee&&(C=C||[]).push(be,ee)):be==="children"?typeof ee!="string"&&typeof ee!="number"||(C=C||[]).push(be,""+ee):be!=="suppressContentEditableWarning"&&be!=="suppressHydrationWarning"&&(f.hasOwnProperty(be)?(ee!=null&&be==="onScroll"&&gn("scroll",r),C||W===ee||(C=[])):(C=C||[]).push(be,ee))}u&&(C=C||[]).push("style",u);var be=C;(i.updateQueue=be)&&(i.flags|=4)}},py=function(r,i,u,h){u!==h&&(i.flags|=4)};function Xc(r,i){if(!Vn)switch(r.tailMode){case"hidden":i=r.tail;for(var u=null;i!==null;)i.alternate!==null&&(u=i),i=i.sibling;u===null?r.tail=null:u.sibling=null;break;case"collapsed":u=r.tail;for(var h=null;u!==null;)u.alternate!==null&&(h=u),u=u.sibling;h===null?i||r.tail===null?r.tail=null:r.tail.sibling=null:h.sibling=null}}function Lr(r){var i=r.alternate!==null&&r.alternate.child===r.child,u=0,h=0;if(i)for(var y=r.child;y!==null;)u|=y.lanes|y.childLanes,h|=y.subtreeFlags&14680064,h|=y.flags&14680064,y.return=r,y=y.sibling;else for(y=r.child;y!==null;)u|=y.lanes|y.childLanes,h|=y.subtreeFlags,h|=y.flags,y.return=r,y=y.sibling;return r.subtreeFlags|=h,r.childLanes=u,i}function hy(r,i,u){var h=i.pendingProps;switch(md(i),i.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Lr(i),null;case 1:return pr(i.type)&&bu(),Lr(i),null;case 3:return h=i.stateNode,ys(),zn(Er),zn(ar),xt(),h.pendingContext&&(h.context=h.pendingContext,h.pendingContext=null),(r===null||r.child===null)&&(gd(i)?i.flags|=4:r===null||r.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,bi!==null&&(Ms(bi),bi=null))),gr(r,i),Lr(i),null;case 5:bd(i);var y=gs(zc.current);if(u=i.type,r!==null&&i.stateNode!=null)dy(r,i,u,h,y),r.ref!==i.ref&&(i.flags|=512,i.flags|=2097152);else{if(!h){if(i.stateNode===null)throw Error(l(166));return Lr(i),null}if(r=gs(po.current),gd(i)){h=i.stateNode,u=i.type;var C=i.memoizedProps;switch(h[lo]=i,h[kc]=C,r=(i.mode&1)!==0,u){case"dialog":gn("cancel",h),gn("close",h);break;case"iframe":case"object":case"embed":gn("load",h);break;case"video":case"audio":for(y=0;y<_c.length;y++)gn(_c[y],h);break;case"source":gn("error",h);break;case"img":case"image":case"link":gn("error",h),gn("load",h);break;case"details":gn("toggle",h);break;case"input":Nt(h,C),gn("invalid",h);break;case"select":h._wrapperState={wasMultiple:!!C.multiple},gn("invalid",h);break;case"textarea":jn(h,C),gn("invalid",h)}bn(u,C),y=null;for(var O in C)if(C.hasOwnProperty(O)){var W=C[O];O==="children"?typeof W=="string"?h.textContent!==W&&(C.suppressHydrationWarning!==!0&&ud(h.textContent,W,r),y=["children",W]):typeof W=="number"&&h.textContent!==""+W&&(C.suppressHydrationWarning!==!0&&ud(h.textContent,W,r),y=["children",""+W]):f.hasOwnProperty(O)&&W!=null&&O==="onScroll"&&gn("scroll",h)}switch(u){case"input":Ke(h),nr(h,C,!0);break;case"textarea":Ke(h),kn(h);break;case"select":case"option":break;default:typeof C.onClick=="function"&&(h.onclick=El)}h=y,i.updateQueue=h,h!==null&&(i.flags|=4)}else{O=y.nodeType===9?y:y.ownerDocument,r==="http://www.w3.org/1999/xhtml"&&(r=xn(u)),r==="http://www.w3.org/1999/xhtml"?u==="script"?(r=O.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild)):typeof h.is=="string"?r=O.createElement(u,{is:h.is}):(r=O.createElement(u),u==="select"&&(O=r,h.multiple?O.multiple=!0:h.size&&(O.size=h.size))):r=O.createElementNS(r,u),r[lo]=i,r[kc]=h,Ei(r,i,!1,!1),i.stateNode=r;e:{switch(O=An(u,h),u){case"dialog":gn("cancel",r),gn("close",r),y=h;break;case"iframe":case"object":case"embed":gn("load",r),y=h;break;case"video":case"audio":for(y=0;y<_c.length;y++)gn(_c[y],r);y=h;break;case"source":gn("error",r),y=h;break;case"img":case"image":case"link":gn("error",r),gn("load",r),y=h;break;case"details":gn("toggle",r),y=h;break;case"input":Nt(r,h),y=ht(r,h),gn("invalid",r);break;case"option":y=h;break;case"select":r._wrapperState={wasMultiple:!!h.multiple},y=ne({},h,{value:void 0}),gn("invalid",r);break;case"textarea":jn(r,h),y=vn(r,h),gn("invalid",r);break;default:y=h}bn(u,y),W=y;for(C in W)if(W.hasOwnProperty(C)){var ee=W[C];C==="style"?ut(r,ee):C==="dangerouslySetInnerHTML"?(ee=ee?ee.__html:void 0,ee!=null&&Mr(r,ee)):C==="children"?typeof ee=="string"?(u!=="textarea"||ee!=="")&&He(r,ee):typeof ee=="number"&&He(r,""+ee):C!=="suppressContentEditableWarning"&&C!=="suppressHydrationWarning"&&C!=="autoFocus"&&(f.hasOwnProperty(C)?ee!=null&&C==="onScroll"&&gn("scroll",r):ee!=null&&L(r,C,ee,O))}switch(u){case"input":Ke(r),nr(r,h,!1);break;case"textarea":Ke(r),kn(r);break;case"option":h.value!=null&&r.setAttribute("value",""+Te(h.value));break;case"select":r.multiple=!!h.multiple,C=h.value,C!=null?ln(r,!!h.multiple,C,!1):h.defaultValue!=null&&ln(r,!!h.multiple,h.defaultValue,!0);break;default:typeof y.onClick=="function"&&(r.onclick=El)}switch(u){case"button":case"input":case"select":case"textarea":h=!!h.autoFocus;break e;case"img":h=!0;break e;default:h=!1}}h&&(i.flags|=4)}i.ref!==null&&(i.flags|=512,i.flags|=2097152)}return Lr(i),null;case 6:if(r&&i.stateNode!=null)py(r,i,r.memoizedProps,h);else{if(typeof h!="string"&&i.stateNode===null)throw Error(l(166));if(u=gs(zc.current),gs(po.current),gd(i)){if(h=i.stateNode,u=i.memoizedProps,h[lo]=i,(C=h.nodeValue!==u)&&(r=za,r!==null))switch(r.tag){case 3:ud(h.nodeValue,u,(r.mode&1)!==0);break;case 5:r.memoizedProps.suppressHydrationWarning!==!0&&ud(h.nodeValue,u,(r.mode&1)!==0)}C&&(i.flags|=4)}else h=(u.nodeType===9?u:u.ownerDocument).createTextNode(h),h[lo]=i,i.stateNode=h}return Lr(i),null;case 13:if(zn(Jn),h=i.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(Vn&&ja!==null&&(i.mode&1)!==0&&(i.flags&128)===0)Dc(),Nl(),i.flags|=98560,C=!1;else if(C=gd(i),h!==null&&h.dehydrated!==null){if(r===null){if(!C)throw Error(l(318));if(C=i.memoizedState,C=C!==null?C.dehydrated:null,!C)throw Error(l(317));C[lo]=i}else Nl(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;Lr(i),C=!1}else bi!==null&&(Ms(bi),bi=null),C=!0;if(!C)return i.flags&65536?i:null}return(i.flags&128)!==0?(i.lanes=u,i):(h=h!==null,h!==(r!==null&&r.memoizedState!==null)&&h&&(i.child.flags|=8192,(i.mode&1)!==0&&(r===null||(Jn.current&1)!==0?sr===0&&(sr=3):pv())),i.updateQueue!==null&&(i.flags|=4),Lr(i),null);case 4:return ys(),gr(r,i),r===null&&vu(i.stateNode.containerInfo),Lr(i),null;case 10:return Ih(i.type._context),Lr(i),null;case 17:return pr(i.type)&&bu(),Lr(i),null;case 19:if(zn(Jn),C=i.memoizedState,C===null)return Lr(i),null;if(h=(i.flags&128)!==0,O=C.rendering,O===null)if(h)Xc(C,!1);else{if(sr!==0||r!==null&&(r.flags&128)!==0)for(r=i.child;r!==null;){if(O=wd(r),O!==null){for(i.flags|=128,Xc(C,!1),h=O.updateQueue,h!==null&&(i.updateQueue=h,i.flags|=4),i.subtreeFlags=0,h=u,u=i.child;u!==null;)C=u,r=h,C.flags&=14680066,O=C.alternate,O===null?(C.childLanes=0,C.lanes=r,C.child=null,C.subtreeFlags=0,C.memoizedProps=null,C.memoizedState=null,C.updateQueue=null,C.dependencies=null,C.stateNode=null):(C.childLanes=O.childLanes,C.lanes=O.lanes,C.child=O.child,C.subtreeFlags=0,C.deletions=null,C.memoizedProps=O.memoizedProps,C.memoizedState=O.memoizedState,C.updateQueue=O.updateQueue,C.type=O.type,r=O.dependencies,C.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext}),u=u.sibling;return gt(Jn,Jn.current&1|2),i.child}r=r.sibling}C.tail!==null&&kt()>Mu&&(i.flags|=128,h=!0,Xc(C,!1),i.lanes=4194304)}else{if(!h)if(r=wd(O),r!==null){if(i.flags|=128,h=!0,u=r.updateQueue,u!==null&&(i.updateQueue=u,i.flags|=4),Xc(C,!0),C.tail===null&&C.tailMode==="hidden"&&!O.alternate&&!Vn)return Lr(i),null}else 2*kt()-C.renderingStartTime>Mu&&u!==1073741824&&(i.flags|=128,h=!0,Xc(C,!1),i.lanes=4194304);C.isBackwards?(O.sibling=i.child,i.child=O):(u=C.last,u!==null?u.sibling=O:i.child=O,C.last=O)}return C.tail!==null?(i=C.tail,C.rendering=i,C.tail=i.sibling,C.renderingStartTime=kt(),i.sibling=null,u=Jn.current,gt(Jn,h?u&1|2:u&1),i):(Lr(i),null);case 22:case 23:return dv(),h=i.memoizedState!==null,r!==null&&r.memoizedState!==null!==h&&(i.flags|=8192),h&&(i.mode&1)!==0?(ni&1073741824)!==0&&(Lr(i),i.subtreeFlags&6&&(i.flags|=8192)):Lr(i),null;case 24:return null;case 25:return null}throw Error(l(156,i.tag))}function Vd(r,i){switch(md(i),i.tag){case 1:return pr(i.type)&&bu(),r=i.flags,r&65536?(i.flags=r&-65537|128,i):null;case 3:return ys(),zn(Er),zn(ar),xt(),r=i.flags,(r&65536)!==0&&(r&128)===0?(i.flags=r&-65537|128,i):null;case 5:return bd(i),null;case 13:if(zn(Jn),r=i.memoizedState,r!==null&&r.dehydrated!==null){if(i.alternate===null)throw Error(l(340));Nl()}return r=i.flags,r&65536?(i.flags=r&-65537|128,i):null;case 19:return zn(Jn),null;case 4:return ys(),null;case 10:return Ih(i.type._context),null;case 22:case 23:return dv(),null;case 24:return null;default:return null}}var Qc=!1,oa=!1,Vb=typeof WeakSet=="function"?WeakSet:Set,ot=null;function Tu(r,i){var u=r.ref;if(u!==null)if(typeof u=="function")try{u(null)}catch(h){Yn(r,i,h)}else u.current=null}function Yd(r,i,u){try{u()}catch(h){Yn(r,i,h)}}var vy=!1;function my(r,i){if(Rc=vi,r=Cc(),td(r)){if("selectionStart"in r)var u={start:r.selectionStart,end:r.selectionEnd};else e:{u=(u=r.ownerDocument)&&u.defaultView||window;var h=u.getSelection&&u.getSelection();if(h&&h.rangeCount!==0){u=h.anchorNode;var y=h.anchorOffset,C=h.focusNode;h=h.focusOffset;try{u.nodeType,C.nodeType}catch{u=null;break e}var O=0,W=-1,ee=-1,be=0,je=0,Ue=r,ze=null;t:for(;;){for(var rt;Ue!==u||y!==0&&Ue.nodeType!==3||(W=O+y),Ue!==C||h!==0&&Ue.nodeType!==3||(ee=O+h),Ue.nodeType===3&&(O+=Ue.nodeValue.length),(rt=Ue.firstChild)!==null;)ze=Ue,Ue=rt;for(;;){if(Ue===r)break t;if(ze===u&&++be===y&&(W=O),ze===C&&++je===h&&(ee=O),(rt=Ue.nextSibling)!==null)break;Ue=ze,ze=Ue.parentNode}Ue=rt}u=W===-1||ee===-1?null:{start:W,end:ee}}else u=null}u=u||{start:0,end:0}}else u=null;for(fs={focusedElem:r,selectionRange:u},vi=!1,ot=i;ot!==null;)if(i=ot,r=i.child,(i.subtreeFlags&1028)!==0&&r!==null)r.return=i,ot=r;else for(;ot!==null;){i=ot;try{var ct=i.alternate;if((i.flags&1024)!==0)switch(i.tag){case 0:case 11:case 15:break;case 1:if(ct!==null){var pt=ct.memoizedProps,ur=ct.memoizedState,pe=i.stateNode,le=pe.getSnapshotBeforeUpdate(i.elementType===i.type?pt:Bi(i.type,pt),ur);pe.__reactInternalSnapshotBeforeUpdate=le}break;case 3:var ge=i.stateNode.containerInfo;ge.nodeType===1?ge.textContent="":ge.nodeType===9&&ge.documentElement&&ge.removeChild(ge.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(l(163))}}catch(Pe){Yn(i,i.return,Pe)}if(r=i.sibling,r!==null){r.return=i.return,ot=r;break}ot=i.return}return ct=vy,vy=!1,ct}function Jc(r,i,u){var h=i.updateQueue;if(h=h!==null?h.lastEffect:null,h!==null){var y=h=h.next;do{if((y.tag&r)===r){var C=y.destroy;y.destroy=void 0,C!==void 0&&Yd(i,u,C)}y=y.next}while(y!==h)}}function Zc(r,i){if(i=i.updateQueue,i=i!==null?i.lastEffect:null,i!==null){var u=i=i.next;do{if((u.tag&r)===r){var h=u.create;u.destroy=h()}u=u.next}while(u!==i)}}function iv(r){var i=r.ref;if(i!==null){var u=r.stateNode;switch(r.tag){case 5:r=u;break;default:r=u}typeof i=="function"?i(r):i.current=r}}function Wd(r){var i=r.alternate;i!==null&&(r.alternate=null,Wd(i)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(i=r.stateNode,i!==null&&(delete i[lo],delete i[kc],delete i[Mc],delete i[xu],delete i[Bb])),r.stateNode=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}function ef(r){return r.tag===5||r.tag===3||r.tag===4}function Wo(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||ef(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.flags&2||r.child===null||r.tag===4)continue e;r.child.return=r,r=r.child}if(!(r.flags&2))return r.stateNode}}function vo(r,i,u){var h=r.tag;if(h===5||h===6)r=r.stateNode,i?u.nodeType===8?u.parentNode.insertBefore(r,i):u.insertBefore(r,i):(u.nodeType===8?(i=u.parentNode,i.insertBefore(r,u)):(i=u,i.appendChild(r)),u=u._reactRootContainer,u!=null||i.onclick!==null||(i.onclick=El));else if(h!==4&&(r=r.child,r!==null))for(vo(r,i,u),r=r.sibling;r!==null;)vo(r,i,u),r=r.sibling}function mo(r,i,u){var h=r.tag;if(h===5||h===6)r=r.stateNode,i?u.insertBefore(r,i):u.appendChild(r);else if(h!==4&&(r=r.child,r!==null))for(mo(r,i,u),r=r.sibling;r!==null;)mo(r,i,u),r=r.sibling}var lr=null,xa=!1;function ba(r,i,u){for(u=u.child;u!==null;)gy(r,i,u),u=u.sibling}function gy(r,i,u){if(en&&typeof en.onCommitFiberUnmount=="function")try{en.onCommitFiberUnmount(It,u)}catch{}switch(u.tag){case 5:oa||Tu(u,i);case 6:var h=lr,y=xa;lr=null,ba(r,i,u),lr=h,xa=y,lr!==null&&(xa?(r=lr,u=u.stateNode,r.nodeType===8?r.parentNode.removeChild(u):r.removeChild(u)):lr.removeChild(u.stateNode));break;case 18:lr!==null&&(xa?(r=lr,u=u.stateNode,r.nodeType===8?yu(r.parentNode,u):r.nodeType===1&&yu(r,u),Pi(r)):yu(lr,u.stateNode));break;case 4:h=lr,y=xa,lr=u.stateNode.containerInfo,xa=!0,ba(r,i,u),lr=h,xa=y;break;case 0:case 11:case 14:case 15:if(!oa&&(h=u.updateQueue,h!==null&&(h=h.lastEffect,h!==null))){y=h=h.next;do{var C=y,O=C.destroy;C=C.tag,O!==void 0&&((C&2)!==0||(C&4)!==0)&&Yd(u,i,O),y=y.next}while(y!==h)}ba(r,i,u);break;case 1:if(!oa&&(Tu(u,i),h=u.stateNode,typeof h.componentWillUnmount=="function"))try{h.props=u.memoizedProps,h.state=u.memoizedState,h.componentWillUnmount()}catch(W){Yn(u,i,W)}ba(r,i,u);break;case 21:ba(r,i,u);break;case 22:u.mode&1?(oa=(h=oa)||u.memoizedState!==null,ba(r,i,u),oa=h):ba(r,i,u);break;default:ba(r,i,u)}}function yy(r){var i=r.updateQueue;if(i!==null){r.updateQueue=null;var u=r.stateNode;u===null&&(u=r.stateNode=new Vb),i.forEach(function(h){var y=Ry.bind(null,r,h);u.has(h)||(u.add(h),h.then(y,y))})}}function Hi(r,i){var u=i.deletions;if(u!==null)for(var h=0;h<u.length;h++){var y=u[h];try{var C=r,O=i,W=O;e:for(;W!==null;){switch(W.tag){case 5:lr=W.stateNode,xa=!1;break e;case 3:lr=W.stateNode.containerInfo,xa=!0;break e;case 4:lr=W.stateNode.containerInfo,xa=!0;break e}W=W.return}if(lr===null)throw Error(l(160));gy(C,O,y),lr=null,xa=!1;var ee=y.alternate;ee!==null&&(ee.return=null),y.return=null}catch(be){Yn(y,i,be)}}if(i.subtreeFlags&12854)for(i=i.child;i!==null;)ov(i,r),i=i.sibling}function ov(r,i){var u=r.alternate,h=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:if(Hi(i,r),Fa(r),h&4){try{Jc(3,r,r.return),Zc(3,r)}catch(pt){Yn(r,r.return,pt)}try{Jc(5,r,r.return)}catch(pt){Yn(r,r.return,pt)}}break;case 1:Hi(i,r),Fa(r),h&512&&u!==null&&Tu(u,u.return);break;case 5:if(Hi(i,r),Fa(r),h&512&&u!==null&&Tu(u,u.return),r.flags&32){var y=r.stateNode;try{He(y,"")}catch(pt){Yn(r,r.return,pt)}}if(h&4&&(y=r.stateNode,y!=null)){var C=r.memoizedProps,O=u!==null?u.memoizedProps:C,W=r.type,ee=r.updateQueue;if(r.updateQueue=null,ee!==null)try{W==="input"&&C.type==="radio"&&C.name!=null&&vt(y,C),An(W,O);var be=An(W,C);for(O=0;O<ee.length;O+=2){var je=ee[O],Ue=ee[O+1];je==="style"?ut(y,Ue):je==="dangerouslySetInnerHTML"?Mr(y,Ue):je==="children"?He(y,Ue):L(y,je,Ue,be)}switch(W){case"input":Jt(y,C);break;case"textarea":Pr(y,C);break;case"select":var ze=y._wrapperState.wasMultiple;y._wrapperState.wasMultiple=!!C.multiple;var rt=C.value;rt!=null?ln(y,!!C.multiple,rt,!1):ze!==!!C.multiple&&(C.defaultValue!=null?ln(y,!!C.multiple,C.defaultValue,!0):ln(y,!!C.multiple,C.multiple?[]:"",!1))}y[kc]=C}catch(pt){Yn(r,r.return,pt)}}break;case 6:if(Hi(i,r),Fa(r),h&4){if(r.stateNode===null)throw Error(l(162));y=r.stateNode,C=r.memoizedProps;try{y.nodeValue=C}catch(pt){Yn(r,r.return,pt)}}break;case 3:if(Hi(i,r),Fa(r),h&4&&u!==null&&u.memoizedState.isDehydrated)try{Pi(i.containerInfo)}catch(pt){Yn(r,r.return,pt)}break;case 4:Hi(i,r),Fa(r);break;case 13:Hi(i,r),Fa(r),y=r.child,y.flags&8192&&(C=y.memoizedState!==null,y.stateNode.isHidden=C,!C||y.alternate!==null&&y.alternate.memoizedState!==null||(uv=kt())),h&4&&yy(r);break;case 22:if(je=u!==null&&u.memoizedState!==null,r.mode&1?(oa=(be=oa)||je,Hi(i,r),oa=be):Hi(i,r),Fa(r),h&8192){if(be=r.memoizedState!==null,(r.stateNode.isHidden=be)&&!je&&(r.mode&1)!==0)for(ot=r,je=r.child;je!==null;){for(Ue=ot=je;ot!==null;){switch(ze=ot,rt=ze.child,ze.tag){case 0:case 11:case 14:case 15:Jc(4,ze,ze.return);break;case 1:Tu(ze,ze.return);var ct=ze.stateNode;if(typeof ct.componentWillUnmount=="function"){h=ze,u=ze.return;try{i=h,ct.props=i.memoizedProps,ct.state=i.memoizedState,ct.componentWillUnmount()}catch(pt){Yn(h,u,pt)}}break;case 5:Tu(ze,ze.return);break;case 22:if(ze.memoizedState!==null){tf(Ue);continue}}rt!==null?(rt.return=ze,ot=rt):tf(Ue)}je=je.sibling}e:for(je=null,Ue=r;;){if(Ue.tag===5){if(je===null){je=Ue;try{y=Ue.stateNode,be?(C=y.style,typeof C.setProperty=="function"?C.setProperty("display","none","important"):C.display="none"):(W=Ue.stateNode,ee=Ue.memoizedProps.style,O=ee!=null&&ee.hasOwnProperty("display")?ee.display:null,W.style.display=Vt("display",O))}catch(pt){Yn(r,r.return,pt)}}}else if(Ue.tag===6){if(je===null)try{Ue.stateNode.nodeValue=be?"":Ue.memoizedProps}catch(pt){Yn(r,r.return,pt)}}else if((Ue.tag!==22&&Ue.tag!==23||Ue.memoizedState===null||Ue===r)&&Ue.child!==null){Ue.child.return=Ue,Ue=Ue.child;continue}if(Ue===r)break e;for(;Ue.sibling===null;){if(Ue.return===null||Ue.return===r)break e;je===Ue&&(je=null),Ue=Ue.return}je===Ue&&(je=null),Ue.sibling.return=Ue.return,Ue=Ue.sibling}}break;case 19:Hi(i,r),Fa(r),h&4&&yy(r);break;case 21:break;default:Hi(i,r),Fa(r)}}function Fa(r){var i=r.flags;if(i&2){try{e:{for(var u=r.return;u!==null;){if(ef(u)){var h=u;break e}u=u.return}throw Error(l(160))}switch(h.tag){case 5:var y=h.stateNode;h.flags&32&&(He(y,""),h.flags&=-33);var C=Wo(r);mo(r,C,y);break;case 3:case 4:var O=h.stateNode.containerInfo,W=Wo(r);vo(r,W,O);break;default:throw Error(l(161))}}catch(ee){Yn(r,r.return,ee)}r.flags&=-3}i&4096&&(r.flags&=-4097)}function Yb(r,i,u){ot=r,lv(r)}function lv(r,i,u){for(var h=(r.mode&1)!==0;ot!==null;){var y=ot,C=y.child;if(y.tag===22&&h){var O=y.memoizedState!==null||Qc;if(!O){var W=y.alternate,ee=W!==null&&W.memoizedState!==null||oa;W=Qc;var be=oa;if(Qc=O,(oa=ee)&&!be)for(ot=y;ot!==null;)O=ot,ee=O.child,O.tag===22&&O.memoizedState!==null?sv(y):ee!==null?(ee.return=O,ot=ee):sv(y);for(;C!==null;)ot=C,lv(C),C=C.sibling;ot=y,Qc=W,oa=be}xy(r)}else(y.subtreeFlags&8772)!==0&&C!==null?(C.return=y,ot=C):xy(r)}}function xy(r){for(;ot!==null;){var i=ot;if((i.flags&8772)!==0){var u=i.alternate;try{if((i.flags&8772)!==0)switch(i.tag){case 0:case 11:case 15:oa||Zc(5,i);break;case 1:var h=i.stateNode;if(i.flags&4&&!oa)if(u===null)h.componentDidMount();else{var y=i.elementType===i.type?u.memoizedProps:Bi(i.type,u.memoizedProps);h.componentDidUpdate(y,u.memoizedState,h.__reactInternalSnapshotBeforeUpdate)}var C=i.updateQueue;C!==null&&Wh(i,C,h);break;case 3:var O=i.updateQueue;if(O!==null){if(u=null,i.child!==null)switch(i.child.tag){case 5:u=i.child.stateNode;break;case 1:u=i.child.stateNode}Wh(i,O,u)}break;case 5:var W=i.stateNode;if(u===null&&i.flags&4){u=W;var ee=i.memoizedProps;switch(i.type){case"button":case"input":case"select":case"textarea":ee.autoFocus&&u.focus();break;case"img":ee.src&&(u.src=ee.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(i.memoizedState===null){var be=i.alternate;if(be!==null){var je=be.memoizedState;if(je!==null){var Ue=je.dehydrated;Ue!==null&&Pi(Ue)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(l(163))}oa||i.flags&512&&iv(i)}catch(ze){Yn(i,i.return,ze)}}if(i===r){ot=null;break}if(u=i.sibling,u!==null){u.return=i.return,ot=u;break}ot=i.return}}function tf(r){for(;ot!==null;){var i=ot;if(i===r){ot=null;break}var u=i.sibling;if(u!==null){u.return=i.return,ot=u;break}ot=i.return}}function sv(r){for(;ot!==null;){var i=ot;try{switch(i.tag){case 0:case 11:case 15:var u=i.return;try{Zc(4,i)}catch(ee){Yn(i,u,ee)}break;case 1:var h=i.stateNode;if(typeof h.componentDidMount=="function"){var y=i.return;try{h.componentDidMount()}catch(ee){Yn(i,y,ee)}}var C=i.return;try{iv(i)}catch(ee){Yn(i,C,ee)}break;case 5:var O=i.return;try{iv(i)}catch(ee){Yn(i,O,ee)}}}catch(ee){Yn(i,i.return,ee)}if(i===r){ot=null;break}var W=i.sibling;if(W!==null){W.return=i.return,ot=W;break}ot=i.return}}var Wb=Math.ceil,zl=$.ReactCurrentDispatcher,Rs=$.ReactCurrentOwner,Br=$.ReactCurrentBatchConfig,Kt=0,Tr=null,yr=null,Hr=0,ni=0,Ru=yi(0),sr=0,nf=null,go=0,ku=0,qd=0,rf=null,Ia=null,uv=0,Mu=1/0,ri=null,Nu=!1,ks=null,jl=null,Gd=!1,qo=null,af=0,Pl=0,Du=null,of=-1,la=0;function xr(){return(Kt&6)!==0?kt():of!==-1?of:of=kt()}function yo(r){return(r.mode&1)===0?1:(Kt&2)!==0&&Hr!==0?Hr&-Hr:Hb.transition!==null?(la===0&&(la=eo()),la):(r=un,r!==0||(r=window.event,r=r===void 0?16:cu(r.type)),r)}function wa(r,i,u,h){if(50<Pl)throw Pl=0,Du=null,Error(l(185));ji(r,u,h),((Kt&2)===0||r!==Tr)&&(r===Tr&&((Kt&2)===0&&(ku|=u),sr===4&&Vi(r,Hr)),Ba(r,h),u===1&&Kt===0&&(i.mode&1)===0&&(Mu=kt()+500,wu&&uo()))}function Ba(r,i){var u=r.callbackNode;Lo(r,i);var h=Qa(r,r===Tr?Hr:0);if(h===0)u!==null&&rr(u),r.callbackNode=null,r.callbackPriority=0;else if(i=h&-h,r.callbackPriority!==i){if(u!=null&&rr(u),i===1)r.tag===0?Tl(cv.bind(null,r)):hd(cv.bind(null,r)),gu(function(){(Kt&6)===0&&uo()}),u=null;else{switch(iu(h)){case 1:u=G;break;case 4:u=re;break;case 16:u=Ae;break;case 536870912:u=Je;break;default:u=Ae}u=My(u,Kd.bind(null,r))}r.callbackPriority=i,r.callbackNode=u}}function Kd(r,i){if(of=-1,la=0,(Kt&6)!==0)throw Error(l(327));var u=r.callbackNode;if(Au()&&r.callbackNode!==u)return null;var h=Qa(r,r===Tr?Hr:0);if(h===0)return null;if((h&30)!==0||(h&r.expiredLanes)!==0||i)i=Xd(r,h);else{i=h;var y=Kt;Kt|=2;var C=wy();(Tr!==r||Hr!==i)&&(ri=null,Mu=kt()+500,Go(r,i));do try{Sy();break}catch(W){by(r,W)}while(!0);Fh(),zl.current=C,Kt=y,yr!==null?i=0:(Tr=null,Hr=0,i=sr)}if(i!==0){if(i===2&&(y=Zi(r),y!==0&&(h=y,i=lf(r,y))),i===1)throw u=nf,Go(r,0),Vi(r,h),Ba(r,kt()),u;if(i===6)Vi(r,h);else{if(y=r.current.alternate,(h&30)===0&&!qb(y)&&(i=Xd(r,h),i===2&&(C=Zi(r),C!==0&&(h=C,i=lf(r,C))),i===1))throw u=nf,Go(r,0),Vi(r,h),Ba(r,kt()),u;switch(r.finishedWork=y,r.finishedLanes=h,i){case 0:case 1:throw Error(l(345));case 2:Ds(r,Ia,ri);break;case 3:if(Vi(r,h),(h&130023424)===h&&(i=uv+500-kt(),10<i)){if(Qa(r,0)!==0)break;if(y=r.suspendedLanes,(y&h)!==h){xr(),r.pingedLanes|=r.suspendedLanes&y;break}r.timeoutHandle=fd(Ds.bind(null,r,Ia,ri),i);break}Ds(r,Ia,ri);break;case 4:if(Vi(r,h),(h&4194240)===h)break;for(i=r.eventTimes,y=-1;0<h;){var O=31-Sr(h);C=1<<O,O=i[O],O>y&&(y=O),h&=~C}if(h=y,h=kt()-h,h=(120>h?120:480>h?480:1080>h?1080:1920>h?1920:3e3>h?3e3:4320>h?4320:1960*Wb(h/1960))-h,10<h){r.timeoutHandle=fd(Ds.bind(null,r,Ia,ri),h);break}Ds(r,Ia,ri);break;case 5:Ds(r,Ia,ri);break;default:throw Error(l(329))}}}return Ba(r,kt()),r.callbackNode===u?Kd.bind(null,r):null}function lf(r,i){var u=rf;return r.current.memoizedState.isDehydrated&&(Go(r,i).flags|=256),r=Xd(r,i),r!==2&&(i=Ia,Ia=u,i!==null&&Ms(i)),r}function Ms(r){Ia===null?Ia=r:Ia.push.apply(Ia,r)}function qb(r){for(var i=r;;){if(i.flags&16384){var u=i.updateQueue;if(u!==null&&(u=u.stores,u!==null))for(var h=0;h<u.length;h++){var y=u[h],C=y.getSnapshot;y=y.value;try{if(!Ui(C(),y))return!1}catch{return!1}}}if(u=i.child,i.subtreeFlags&16384&&u!==null)u.return=i,i=u;else{if(i===r)break;for(;i.sibling===null;){if(i.return===null||i.return===r)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function Vi(r,i){for(i&=~qd,i&=~ku,r.suspendedLanes|=i,r.pingedLanes&=~i,r=r.expirationTimes;0<i;){var u=31-Sr(i),h=1<<u;r[u]=-1,i&=~h}}function cv(r){if((Kt&6)!==0)throw Error(l(327));Au();var i=Qa(r,0);if((i&1)===0)return Ba(r,kt()),null;var u=Xd(r,i);if(r.tag!==0&&u===2){var h=Zi(r);h!==0&&(i=h,u=lf(r,h))}if(u===1)throw u=nf,Go(r,0),Vi(r,i),Ba(r,kt()),u;if(u===6)throw Error(l(345));return r.finishedWork=r.current.alternate,r.finishedLanes=i,Ds(r,Ia,ri),Ba(r,kt()),null}function fv(r,i){var u=Kt;Kt|=1;try{return r(i)}finally{Kt=u,Kt===0&&(Mu=kt()+500,wu&&uo())}}function Ns(r){qo!==null&&qo.tag===0&&(Kt&6)===0&&Au();var i=Kt;Kt|=1;var u=Br.transition,h=un;try{if(Br.transition=null,un=1,r)return r()}finally{un=h,Br.transition=u,Kt=i,(Kt&6)===0&&uo()}}function dv(){ni=Ru.current,zn(Ru)}function Go(r,i){r.finishedWork=null,r.finishedLanes=0;var u=r.timeoutHandle;if(u!==-1&&(r.timeoutHandle=-1,zh(u)),yr!==null)for(u=yr.return;u!==null;){var h=u;switch(md(h),h.tag){case 1:h=h.type.childContextTypes,h!=null&&bu();break;case 3:ys(),zn(Er),zn(ar),xt();break;case 5:bd(h);break;case 4:ys();break;case 13:zn(Jn);break;case 19:zn(Jn);break;case 10:Ih(h.type._context);break;case 22:case 23:dv()}u=u.return}if(Tr=r,yr=r=$l(r.current,null),Hr=ni=i,sr=0,nf=null,qd=ku=go=0,Ia=rf=null,ms!==null){for(i=0;i<ms.length;i++)if(u=ms[i],h=u.interleaved,h!==null){u.interleaved=null;var y=h.next,C=u.pending;if(C!==null){var O=C.next;C.next=y,h.next=O}u.pending=h}ms=null}return r}function by(r,i){do{var u=yr;try{if(Fh(),Bt.current=Es,Sd){for(var h=fn.memoizedState;h!==null;){var y=h.queue;y!==null&&(y.pending=null),h=h.next}Sd=!1}if(_n=0,Or=vr=fn=null,Pc=!1,xs=0,Rs.current=null,u===null||u.return===null){sr=1,nf=i,yr=null;break}e:{var C=r,O=u.return,W=u,ee=i;if(i=Hr,W.flags|=32768,ee!==null&&typeof ee=="object"&&typeof ee.then=="function"){var be=ee,je=W,Ue=je.tag;if((je.mode&1)===0&&(Ue===0||Ue===11||Ue===15)){var ze=je.alternate;ze?(je.updateQueue=ze.updateQueue,je.memoizedState=ze.memoizedState,je.lanes=ze.lanes):(je.updateQueue=null,je.memoizedState=null)}var rt=ly(O);if(rt!==null){rt.flags&=-257,Ll(rt,O,W,C,i),rt.mode&1&&ev(C,be,i),i=rt,ee=be;var ct=i.updateQueue;if(ct===null){var pt=new Set;pt.add(ee),i.updateQueue=pt}else ct.add(ee);break e}else{if((i&1)===0){ev(C,be,i),pv();break e}ee=Error(l(426))}}else if(Vn&&W.mode&1){var ur=ly(O);if(ur!==null){(ur.flags&65536)===0&&(ur.flags|=256),Ll(ur,O,W,C,i),Ho(_s(ee,W));break e}}C=ee=_s(ee,W),sr!==4&&(sr=2),rf===null?rf=[C]:rf.push(C),C=O;do{switch(C.tag){case 3:C.flags|=65536,i&=-i,C.lanes|=i;var pe=oy(C,ee,i);ty(C,pe);break e;case 1:W=ee;var le=C.type,ge=C.stateNode;if((C.flags&128)===0&&(typeof le.getDerivedStateFromError=="function"||ge!==null&&typeof ge.componentDidCatch=="function"&&(jl===null||!jl.has(ge)))){C.flags|=65536,i&=-i,C.lanes|=i;var Pe=Zh(C,W,i);ty(C,Pe);break e}}C=C.return}while(C!==null)}Ey(u)}catch(ft){i=ft,yr===u&&u!==null&&(yr=u=u.return);continue}break}while(!0)}function wy(){var r=zl.current;return zl.current=Es,r===null?Es:r}function pv(){(sr===0||sr===3||sr===2)&&(sr=4),Tr===null||(go&268435455)===0&&(ku&268435455)===0||Vi(Tr,Hr)}function Xd(r,i){var u=Kt;Kt|=2;var h=wy();(Tr!==r||Hr!==i)&&(ri=null,Go(r,i));do try{Gb();break}catch(y){by(r,y)}while(!0);if(Fh(),Kt=u,zl.current=h,yr!==null)throw Error(l(261));return Tr=null,Hr=0,sr}function Gb(){for(;yr!==null;)Cy(yr)}function Sy(){for(;yr!==null&&!ha();)Cy(yr)}function Cy(r){var i=ky(r.alternate,r,ni);r.memoizedProps=r.pendingProps,i===null?Ey(r):yr=i,Rs.current=null}function Ey(r){var i=r;do{var u=i.alternate;if(r=i.return,(i.flags&32768)===0){if(u=hy(u,i,ni),u!==null){yr=u;return}}else{if(u=Vd(u,i),u!==null){u.flags&=32767,yr=u;return}if(r!==null)r.flags|=32768,r.subtreeFlags=0,r.deletions=null;else{sr=6,yr=null;return}}if(i=i.sibling,i!==null){yr=i;return}yr=i=r}while(i!==null);sr===0&&(sr=5)}function Ds(r,i,u){var h=un,y=Br.transition;try{Br.transition=null,un=1,Kb(r,i,u,h)}finally{Br.transition=y,un=h}return null}function Kb(r,i,u,h){do Au();while(qo!==null);if((Kt&6)!==0)throw Error(l(327));u=r.finishedWork;var y=r.finishedLanes;if(u===null)return null;if(r.finishedWork=null,r.finishedLanes=0,u===r.current)throw Error(l(177));r.callbackNode=null,r.callbackPriority=0;var C=u.lanes|u.childLanes;if(au(r,C),r===Tr&&(yr=Tr=null,Hr=0),(u.subtreeFlags&2064)===0&&(u.flags&2064)===0||Gd||(Gd=!0,My(Ae,function(){return Au(),null})),C=(u.flags&15990)!==0,(u.subtreeFlags&15990)!==0||C){C=Br.transition,Br.transition=null;var O=un;un=1;var W=Kt;Kt|=4,Rs.current=null,my(r,u),ov(u,r),pu(fs),vi=!!Rc,fs=Rc=null,r.current=u,Yb(u),na(),Kt=W,un=O,Br.transition=C}else r.current=u;if(Gd&&(Gd=!1,qo=r,af=y),C=r.pendingLanes,C===0&&(jl=null),Un(u.stateNode),Ba(r,kt()),i!==null)for(h=r.onRecoverableError,u=0;u<i.length;u++)y=i[u],h(y.value,{componentStack:y.stack,digest:y.digest});if(Nu)throw Nu=!1,r=ks,ks=null,r;return(af&1)!==0&&r.tag!==0&&Au(),C=r.pendingLanes,(C&1)!==0?r===Du?Pl++:(Pl=0,Du=r):Pl=0,uo(),null}function Au(){if(qo!==null){var r=iu(af),i=Br.transition,u=un;try{if(Br.transition=null,un=16>r?16:r,qo===null)var h=!1;else{if(r=qo,qo=null,af=0,(Kt&6)!==0)throw Error(l(331));var y=Kt;for(Kt|=4,ot=r.current;ot!==null;){var C=ot,O=C.child;if((ot.flags&16)!==0){var W=C.deletions;if(W!==null){for(var ee=0;ee<W.length;ee++){var be=W[ee];for(ot=be;ot!==null;){var je=ot;switch(je.tag){case 0:case 11:case 15:Jc(8,je,C)}var Ue=je.child;if(Ue!==null)Ue.return=je,ot=Ue;else for(;ot!==null;){je=ot;var ze=je.sibling,rt=je.return;if(Wd(je),je===be){ot=null;break}if(ze!==null){ze.return=rt,ot=ze;break}ot=rt}}}var ct=C.alternate;if(ct!==null){var pt=ct.child;if(pt!==null){ct.child=null;do{var ur=pt.sibling;pt.sibling=null,pt=ur}while(pt!==null)}}ot=C}}if((C.subtreeFlags&2064)!==0&&O!==null)O.return=C,ot=O;else e:for(;ot!==null;){if(C=ot,(C.flags&2048)!==0)switch(C.tag){case 0:case 11:case 15:Jc(9,C,C.return)}var pe=C.sibling;if(pe!==null){pe.return=C.return,ot=pe;break e}ot=C.return}}var le=r.current;for(ot=le;ot!==null;){O=ot;var ge=O.child;if((O.subtreeFlags&2064)!==0&&ge!==null)ge.return=O,ot=ge;else e:for(O=le;ot!==null;){if(W=ot,(W.flags&2048)!==0)try{switch(W.tag){case 0:case 11:case 15:Zc(9,W)}}catch(ft){Yn(W,W.return,ft)}if(W===O){ot=null;break e}var Pe=W.sibling;if(Pe!==null){Pe.return=W.return,ot=Pe;break e}ot=W.return}}if(Kt=y,uo(),en&&typeof en.onPostCommitFiberRoot=="function")try{en.onPostCommitFiberRoot(It,r)}catch{}h=!0}return h}finally{un=u,Br.transition=i}}return!1}function _y(r,i,u){i=_s(u,i),i=oy(r,i,1),r=Dl(r,i,1),i=xr(),r!==null&&(ji(r,1,i),Ba(r,i))}function Yn(r,i,u){if(r.tag===3)_y(r,r,u);else for(;i!==null;){if(i.tag===3){_y(i,r,u);break}else if(i.tag===1){var h=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof h.componentDidCatch=="function"&&(jl===null||!jl.has(h))){r=_s(u,r),r=Zh(i,r,1),i=Dl(i,r,1),r=xr(),i!==null&&(ji(i,1,r),Ba(i,r));break}}i=i.return}}function Xb(r,i,u){var h=r.pingCache;h!==null&&h.delete(i),i=xr(),r.pingedLanes|=r.suspendedLanes&u,Tr===r&&(Hr&u)===u&&(sr===4||sr===3&&(Hr&130023424)===Hr&&500>kt()-uv?Go(r,0):qd|=u),Ba(r,i)}function Ty(r,i){i===0&&((r.mode&1)===0?i=1:(i=va,va<<=1,(va&130023424)===0&&(va=4194304)));var u=xr();r=ei(r,i),r!==null&&(ji(r,i,u),Ba(r,u))}function Qb(r){var i=r.memoizedState,u=0;i!==null&&(u=i.retryLane),Ty(r,u)}function Ry(r,i){var u=0;switch(r.tag){case 13:var h=r.stateNode,y=r.memoizedState;y!==null&&(u=y.retryLane);break;case 19:h=r.stateNode;break;default:throw Error(l(314))}h!==null&&h.delete(i),Ty(r,u)}var ky;ky=function(r,i,u){if(r!==null)if(r.memoizedProps!==i.pendingProps||Er.current)mr=!0;else{if((r.lanes&u)===0&&(i.flags&128)===0)return mr=!1,Kc(r,i,u);mr=(r.flags&131072)!==0}else mr=!1,Vn&&(i.flags&1048576)!==0&&Qg(i,Bo,i.index);switch(i.lanes=0,i.tag){case 2:var h=i.type;Si(r,i),r=i.pendingProps;var y=La(i,ar.current);Qn(i,u),y=Al(null,i,h,r,y,u);var C=Ii();return i.flags|=1,typeof y=="object"&&y!==null&&typeof y.render=="function"&&y.$$typeof===void 0?(i.tag=1,i.memoizedState=null,i.updateQueue=null,pr(h)?(C=!0,Ar(i)):C=!1,i.memoizedState=y.state!==null&&y.state!==void 0?y.state:null,Yh(i),y.updater=Ud,i.stateNode=y,y._reactInternals=i,Vc(i,h,r,u),i=qc(null,i,h,!0,C,u)):(i.tag=0,Vn&&C&&vd(i),Ir(null,i,y,u),i=i.child),i;case 16:h=i.elementType;e:{switch(Si(r,i),r=i.pendingProps,y=h._init,h=y(h._payload),i.type=h,y=i.tag=Zb(h),r=Bi(h,r),y){case 0:i=sy(null,i,h,r,u);break e;case 1:i=uy(null,i,h,r,u);break e;case 11:i=Ua(null,i,h,r,u);break e;case 14:i=Ts(null,i,h,Bi(h.type,r),u);break e}throw Error(l(306,h,""))}return i;case 0:return h=i.type,y=i.pendingProps,y=i.elementType===h?y:Bi(h,y),sy(r,i,h,y,u);case 1:return h=i.type,y=i.pendingProps,y=i.elementType===h?y:Bi(h,y),uy(r,i,h,y,u);case 3:e:{if(_u(i),r===null)throw Error(l(387));h=i.pendingProps,C=i.memoizedState,y=C.element,ey(r,i),Ac(i,h,null,u);var O=i.memoizedState;if(h=O.element,C.isDehydrated)if(C={element:h,isDehydrated:!1,cache:O.cache,pendingSuspenseBoundaries:O.pendingSuspenseBoundaries,transitions:O.transitions},i.updateQueue.baseState=C,i.memoizedState=C,i.flags&256){y=_s(Error(l(423)),i),i=cy(r,i,h,u,y);break e}else if(h!==y){y=_s(Error(l(424)),i),i=cy(r,i,h,u,y);break e}else for(ja=oo(i.stateNode.containerInfo.firstChild),za=i,Vn=!0,bi=null,u=Ze(i,null,h,u),i.child=u;u;)u.flags=u.flags&-3|4096,u=u.sibling;else{if(Nl(),h===y){i=Ci(r,i,u);break e}Ir(r,i,h,u)}i=i.child}return i;case 5:return ny(i),r===null&&$h(i),h=i.type,y=i.pendingProps,C=r!==null?r.memoizedProps:null,O=y.children,cd(h,y)?O=null:C!==null&&cd(h,C)&&(i.flags|=32),tv(r,i),Ir(r,i,O,u),i.child;case 6:return r===null&&$h(i),null;case 13:return Hd(r,i,u);case 4:return qh(i,i.stateNode.containerInfo),h=i.pendingProps,r===null?i.child=ir(i,null,h,u):Ir(r,i,h,u),i.child;case 11:return h=i.type,y=i.pendingProps,y=i.elementType===h?y:Bi(h,y),Ua(r,i,h,y,u);case 7:return Ir(r,i,i.pendingProps,u),i.child;case 8:return Ir(r,i,i.pendingProps.children,u),i.child;case 12:return Ir(r,i,i.pendingProps.children,u),i.child;case 10:e:{if(h=i.type._context,y=i.pendingProps,C=i.memoizedProps,O=y.value,gt(Za,h._currentValue),h._currentValue=O,C!==null)if(Ui(C.value,O)){if(C.children===y.children&&!Er.current){i=Ci(r,i,u);break e}}else for(C=i.child,C!==null&&(C.return=i);C!==null;){var W=C.dependencies;if(W!==null){O=C.child;for(var ee=W.firstContext;ee!==null;){if(ee.context===h){if(C.tag===1){ee=Vo(-1,u&-u),ee.tag=2;var be=C.updateQueue;if(be!==null){be=be.shared;var je=be.pending;je===null?ee.next=ee:(ee.next=je.next,je.next=ee),be.pending=ee}}C.lanes|=u,ee=C.alternate,ee!==null&&(ee.lanes|=u),Bh(C.return,u,i),W.lanes|=u;break}ee=ee.next}}else if(C.tag===10)O=C.type===i.type?null:C.child;else if(C.tag===18){if(O=C.return,O===null)throw Error(l(341));O.lanes|=u,W=O.alternate,W!==null&&(W.lanes|=u),Bh(O,u,i),O=C.sibling}else O=C.child;if(O!==null)O.return=C;else for(O=C;O!==null;){if(O===i){O=null;break}if(C=O.sibling,C!==null){C.return=O.return,O=C;break}O=O.return}C=O}Ir(r,i,y.children,u),i=i.child}return i;case 9:return y=i.type,h=i.pendingProps.children,Qn(i,u),y=wi(y),h=h(y),i.flags|=1,Ir(r,i,h,u),i.child;case 14:return h=i.type,y=Bi(h,i.pendingProps),y=Bi(h.type,y),Ts(r,i,h,y,u);case 15:return Ut(r,i,i.type,i.pendingProps,u);case 17:return h=i.type,y=i.pendingProps,y=i.elementType===h?y:Bi(h,y),Si(r,i),i.tag=1,pr(h)?(r=!0,Ar(i)):r=!1,Qn(i,u),Fd(i,h,y),Vc(i,h,y,u),qc(null,i,h,!0,r,u);case 19:return ho(r,i,u);case 22:return Wc(r,i,u)}throw Error(l(156,i.tag))};function My(r,i){return wn(r,i)}function Jb(r,i,u,h){this.tag=r,this.key=u,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=h,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function _i(r,i,u,h){return new Jb(r,i,u,h)}function hv(r){return r=r.prototype,!(!r||!r.isReactComponent)}function Zb(r){if(typeof r=="function")return hv(r)?1:0;if(r!=null){if(r=r.$$typeof,r===de)return 11;if(r===ce)return 14}return 2}function $l(r,i){var u=r.alternate;return u===null?(u=_i(r.tag,i,r.key,r.mode),u.elementType=r.elementType,u.type=r.type,u.stateNode=r.stateNode,u.alternate=r,r.alternate=u):(u.pendingProps=i,u.type=r.type,u.flags=0,u.subtreeFlags=0,u.deletions=null),u.flags=r.flags&14680064,u.childLanes=r.childLanes,u.lanes=r.lanes,u.child=r.child,u.memoizedProps=r.memoizedProps,u.memoizedState=r.memoizedState,u.updateQueue=r.updateQueue,i=r.dependencies,u.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},u.sibling=r.sibling,u.index=r.index,u.ref=r.ref,u}function sf(r,i,u,h,y,C){var O=2;if(h=r,typeof r=="function")hv(r)&&(O=1);else if(typeof r=="string")O=5;else e:switch(r){case q:return Ko(u.children,y,C,i);case ie:O=8,y|=8;break;case fe:return r=_i(12,u,i,y|2),r.elementType=fe,r.lanes=C,r;case he:return r=_i(13,u,i,y),r.elementType=he,r.lanes=C,r;case V:return r=_i(19,u,i,y),r.elementType=V,r.lanes=C,r;case te:return Ul(u,y,C,i);default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case Se:O=10;break e;case oe:O=9;break e;case de:O=11;break e;case ce:O=14;break e;case Z:O=16,h=null;break e}throw Error(l(130,r==null?r:typeof r,""))}return i=_i(O,u,i,y),i.elementType=r,i.type=h,i.lanes=C,i}function Ko(r,i,u,h){return r=_i(7,r,h,i),r.lanes=u,r}function Ul(r,i,u,h){return r=_i(22,r,h,i),r.elementType=te,r.lanes=u,r.stateNode={isHidden:!1},r}function vv(r,i,u){return r=_i(6,r,null,i),r.lanes=u,r}function Qd(r,i,u){return i=_i(4,r.children!==null?r.children:[],r.key,i),i.lanes=u,i.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},i}function Ny(r,i,u,h,y){this.tag=i,this.containerInfo=r,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gl(0),this.expirationTimes=gl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gl(0),this.identifierPrefix=h,this.onRecoverableError=y,this.mutableSourceEagerHydrationData=null}function Jd(r,i,u,h,y,C,O,W,ee){return r=new Ny(r,i,u,W,ee),i===1?(i=1,C===!0&&(i|=8)):i=0,C=_i(3,null,null,i),r.current=C,C.stateNode=r,C.memoizedState={element:h,isDehydrated:u,cache:null,transitions:null,pendingSuspenseBoundaries:null},Yh(C),r}function ew(r,i,u){var h=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:I,key:h==null?null:""+h,children:r,containerInfo:i,implementation:u}}function mv(r){if(!r)return aa;r=r._reactInternals;e:{if(Qe(r)!==r||r.tag!==1)throw Error(l(170));var i=r;do{switch(i.tag){case 3:i=i.stateNode.context;break e;case 1:if(pr(i.type)){i=i.stateNode.__reactInternalMemoizedMergedChildContext;break e}}i=i.return}while(i!==null);throw Error(l(171))}if(r.tag===1){var u=r.type;if(pr(u))return Nc(r,u,i)}return i}function Dy(r,i,u,h,y,C,O,W,ee){return r=Jd(u,h,!0,r,y,C,O,W,ee),r.context=mv(null),u=r.current,h=xr(),y=yo(u),C=Vo(h,y),C.callback=i??null,Dl(u,C,y),r.current.lanes=y,ji(r,y,h),Ba(r,h),r}function Zd(r,i,u,h){var y=i.current,C=xr(),O=yo(y);return u=mv(u),i.context===null?i.context=u:i.pendingContext=u,i=Vo(C,O),i.payload={element:r},h=h===void 0?null:h,h!==null&&(i.callback=h),r=Dl(y,i,O),r!==null&&(wa(r,y,O,C),xd(r,y,O)),O}function ep(r){if(r=r.current,!r.child)return null;switch(r.child.tag){case 5:return r.child.stateNode;default:return r.child.stateNode}}function gv(r,i){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var u=r.retryLane;r.retryLane=u!==0&&u<i?u:i}}function tp(r,i){gv(r,i),(r=r.alternate)&&gv(r,i)}function Ay(){return null}var As=typeof reportError=="function"?reportError:function(r){console.error(r)};function yv(r){this._internalRoot=r}np.prototype.render=yv.prototype.render=function(r){var i=this._internalRoot;if(i===null)throw Error(l(409));Zd(r,i,null,null)},np.prototype.unmount=yv.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var i=r.containerInfo;Ns(function(){Zd(null,r,null,null)}),i[Fo]=null}};function np(r){this._internalRoot=r}np.prototype.unstable_scheduleHydration=function(r){if(r){var i=Lt();r={blockedOn:null,target:r,priority:i};for(var u=0;u<Cr.length&&i!==0&&i<Cr[u].priority;u++);Cr.splice(u,0,r),u===0&&mc(r)}};function xv(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}function rp(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11&&(r.nodeType!==8||r.nodeValue!==" react-mount-point-unstable "))}function Oy(){}function tw(r,i,u,h,y){if(y){if(typeof h=="function"){var C=h;h=function(){var be=ep(O);C.call(be)}}var O=Dy(i,h,r,0,null,!1,!1,"",Oy);return r._reactRootContainer=O,r[Fo]=O.current,vu(r.nodeType===8?r.parentNode:r),Ns(),O}for(;y=r.lastChild;)r.removeChild(y);if(typeof h=="function"){var W=h;h=function(){var be=ep(ee);W.call(be)}}var ee=Jd(r,0,!1,null,null,!1,!1,"",Oy);return r._reactRootContainer=ee,r[Fo]=ee.current,vu(r.nodeType===8?r.parentNode:r),Ns(function(){Zd(i,ee,u,h)}),ee}function uf(r,i,u,h,y){var C=u._reactRootContainer;if(C){var O=C;if(typeof y=="function"){var W=y;y=function(){var ee=ep(O);W.call(ee)}}Zd(i,O,r,y)}else O=tw(u,i,r,y,h);return ep(O)}tn=function(r){switch(r.tag){case 3:var i=r.stateNode;if(i.current.memoizedState.isDehydrated){var u=ra(i.pendingLanes);u!==0&&(zo(i,u|1),Ba(i,kt()),(Kt&6)===0&&(Mu=kt()+500,uo()))}break;case 13:Ns(function(){var h=ei(r,1);if(h!==null){var y=xr();wa(h,r,1,y)}}),tp(r,1)}},hc=function(r){if(r.tag===13){var i=ei(r,134217728);if(i!==null){var u=xr();wa(i,r,134217728,u)}tp(r,134217728)}},to=function(r){if(r.tag===13){var i=yo(r),u=ei(r,i);if(u!==null){var h=xr();wa(u,r,i,h)}tp(r,i)}},Lt=function(){return un},ou=function(r,i){var u=un;try{return un=r,i()}finally{un=u}},an=function(r,i,u){switch(i){case"input":if(Jt(r,u),i=u.name,u.type==="radio"&&i!=null){for(u=r;u.parentNode;)u=u.parentNode;for(u=u.querySelectorAll("input[name="+JSON.stringify(""+i)+'][type="radio"]'),i=0;i<u.length;i++){var h=u[i];if(h!==r&&h.form===r.form){var y=Xn(h);if(!y)throw Error(l(90));Ye(h),Jt(h,y)}}}break;case"textarea":Pr(r,u);break;case"select":i=u.value,i!=null&&ln(r,!!u.multiple,i,!1)}},Hn=fv,Xa=Ns;var nw={usingClientEntryPoint:!1,Events:[yt,Fi,Xn,ta,Dr,fv]},cf={findFiberByHostInstance:ds,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Ly={bundleType:cf.bundleType,version:cf.version,rendererPackageName:cf.rendererPackageName,rendererConfig:cf.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:$.ReactCurrentDispatcher,findHostInstanceByFiber:function(r){return r=$n(r),r===null?null:r.stateNode},findFiberByHostInstance:cf.findFiberByHostInstance||Ay,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Fl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Fl.isDisabled&&Fl.supportsFiber)try{It=Fl.inject(Ly),en=Fl}catch{}}return ui.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=nw,ui.createPortal=function(r,i){var u=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!xv(i))throw Error(l(200));return ew(r,i,null,u)},ui.createRoot=function(r,i){if(!xv(r))throw Error(l(299));var u=!1,h="",y=As;return i!=null&&(i.unstable_strictMode===!0&&(u=!0),i.identifierPrefix!==void 0&&(h=i.identifierPrefix),i.onRecoverableError!==void 0&&(y=i.onRecoverableError)),i=Jd(r,1,!1,null,null,u,!1,h,y),r[Fo]=i.current,vu(r.nodeType===8?r.parentNode:r),new yv(i)},ui.findDOMNode=function(r){if(r==null)return null;if(r.nodeType===1)return r;var i=r._reactInternals;if(i===void 0)throw typeof r.render=="function"?Error(l(188)):(r=Object.keys(r).join(","),Error(l(268,r)));return r=$n(i),r=r===null?null:r.stateNode,r},ui.flushSync=function(r){return Ns(r)},ui.hydrate=function(r,i,u){if(!rp(i))throw Error(l(200));return uf(null,r,i,!0,u)},ui.hydrateRoot=function(r,i,u){if(!xv(r))throw Error(l(405));var h=u!=null&&u.hydratedSources||null,y=!1,C="",O=As;if(u!=null&&(u.unstable_strictMode===!0&&(y=!0),u.identifierPrefix!==void 0&&(C=u.identifierPrefix),u.onRecoverableError!==void 0&&(O=u.onRecoverableError)),i=Dy(i,null,r,1,u??null,y,!1,C,O),r[Fo]=i.current,vu(r),h)for(r=0;r<h.length;r++)u=h[r],y=u._getVersion,y=y(u._source),i.mutableSourceEagerHydrationData==null?i.mutableSourceEagerHydrationData=[u,y]:i.mutableSourceEagerHydrationData.push(u,y);return new np(i)},ui.render=function(r,i,u){if(!rp(i))throw Error(l(200));return uf(null,r,i,!1,u)},ui.unmountComponentAtNode=function(r){if(!rp(r))throw Error(l(40));return r._reactRootContainer?(Ns(function(){uf(null,null,r,!1,function(){r._reactRootContainer=null,r[Fo]=null})}),!0):!1},ui.unstable_batchedUpdates=fv,ui.unstable_renderSubtreeIntoContainer=function(r,i,u,h){if(!rp(u))throw Error(l(200));if(r==null||r._reactInternals===void 0)throw Error(l(38));return uf(r,i,u,!1,h)},ui.version="18.3.1-next-f1338f8080-20240426",ui}var ci={};/**
|
|
101
|
+
* @license React
|
|
102
|
+
* react-dom.development.js
|
|
103
|
+
*
|
|
104
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
105
|
+
*
|
|
106
|
+
* This source code is licensed under the MIT license found in the
|
|
107
|
+
* LICENSE file in the root directory of this source tree.
|
|
108
|
+
*/var xC;function pN(){return xC||(xC=1,process.env.NODE_ENV!=="production"&&(function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var n=Jl(),a=gC(),l=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,c=!1;function f(e){c=e}function v(e){if(!c){for(var t=arguments.length,o=new Array(t>1?t-1:0),s=1;s<t;s++)o[s-1]=arguments[s];g("warn",e,o)}}function p(e){if(!c){for(var t=arguments.length,o=new Array(t>1?t-1:0),s=1;s<t;s++)o[s-1]=arguments[s];g("error",e,o)}}function g(e,t,o){{var s=l.ReactDebugCurrentFrame,d=s.getStackAddendum();d!==""&&(t+="%s",o=o.concat([d]));var m=o.map(function(b){return String(b)});m.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,m)}}var x=0,S=1,E=2,w=3,_=4,N=5,D=6,R=7,j=8,z=9,U=10,L=11,$=12,H=13,I=14,q=15,ie=16,fe=17,Se=18,oe=19,de=21,he=22,V=23,ce=24,Z=25,te=!0,Y=!1,J=!1,ne=!1,B=!1,K=!0,ke=!0,Re=!0,Oe=!0,$e=new Set,Ie={},Te={};function Ne(e,t){Ve(e,t),Ve(e+"Capture",t)}function Ve(e,t){Ie[e]&&p("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),Ie[e]=t;{var o=e.toLowerCase();Te[o]=e,e==="onDoubleClick"&&(Te.ondblclick=e)}for(var s=0;s<t.length;s++)$e.add(t[s])}var Ke=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Ye=Object.prototype.hasOwnProperty;function Xe(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,o=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return o}}function ht(e){try{return Nt(e),!1}catch{return!0}}function Nt(e){return""+e}function vt(e,t){if(ht(e))return p("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",t,Xe(e)),Nt(e)}function Jt(e){if(ht(e))return p("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Xe(e)),Nt(e)}function nr(e,t){if(ht(e))return p("The provided `%s` prop is an unsupported type %s. This value must be coerced to a string before before using it here.",t,Xe(e)),Nt(e)}function Dn(e,t){if(ht(e))return p("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",t,Xe(e)),Nt(e)}function qt(e){if(ht(e))return p("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",Xe(e)),Nt(e)}function ln(e){if(ht(e))return p("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before before using it here.",Xe(e)),Nt(e)}var vn=0,jn=1,Pr=2,kn=3,xn=4,qn=5,ea=6,Mr=":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",He=Mr+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",lt=new RegExp("^["+Mr+"]["+He+"]*$"),Tt={},Vt={};function ut(e){return Ye.call(Vt,e)?!0:Ye.call(Tt,e)?!1:lt.test(e)?(Vt[e]=!0,!0):(Tt[e]=!0,p("Invalid attribute name: `%s`",e),!1)}function Mn(e,t,o){return t!==null?t.type===vn:o?!1:e.length>2&&(e[0]==="o"||e[0]==="O")&&(e[1]==="n"||e[1]==="N")}function bn(e,t,o,s){if(o!==null&&o.type===vn)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":{if(s)return!1;if(o!==null)return!o.acceptsBooleans;var d=e.toLowerCase().slice(0,5);return d!=="data-"&&d!=="aria-"}default:return!1}}function An(e,t,o,s){if(t===null||typeof t>"u"||bn(e,t,o,s))return!0;if(s)return!1;if(o!==null)switch(o.type){case kn:return!t;case xn:return t===!1;case qn:return isNaN(t);case ea:return isNaN(t)||t<1}return!1}function Zt(e){return an.hasOwnProperty(e)?an[e]:null}function sn(e,t,o,s,d,m,b){this.acceptsBooleans=t===Pr||t===kn||t===xn,this.attributeName=s,this.attributeNamespace=d,this.mustUseProperty=o,this.propertyName=e,this.type=t,this.sanitizeURL=m,this.removeEmptyString=b}var an={},Nr=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];Nr.forEach(function(e){an[e]=new sn(e,vn,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0],o=e[1];an[t]=new sn(t,jn,!1,o,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){an[e]=new sn(e,Pr,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){an[e]=new sn(e,Pr,!1,e,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(function(e){an[e]=new sn(e,kn,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){an[e]=new sn(e,kn,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){an[e]=new sn(e,xn,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){an[e]=new sn(e,ea,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){an[e]=new sn(e,qn,!1,e.toLowerCase(),null,!1,!1)});var On=/[\-\:]([a-z])/g,$r=function(e){return e[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(function(e){var t=e.replace(On,$r);an[t]=new sn(t,jn,!1,e,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(e){var t=e.replace(On,$r);an[t]=new sn(t,jn,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(On,$r);an[t]=new sn(t,jn,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){an[e]=new sn(e,jn,!1,e.toLowerCase(),null,!1,!1)});var ta="xlinkHref";an[ta]=new sn("xlinkHref",jn,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){an[e]=new sn(e,jn,!1,e.toLowerCase(),null,!0,!0)});var Dr=/^[\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,Hn=!1;function Xa(e){!Hn&&Dr.test(e)&&(Hn=!0,p("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(e)))}function Pn(e,t,o,s){if(s.mustUseProperty){var d=s.propertyName;return e[d]}else{vt(o,t),s.sanitizeURL&&Xa(""+o);var m=s.attributeName,b=null;if(s.type===xn){if(e.hasAttribute(m)){var T=e.getAttribute(m);return T===""?!0:An(t,o,s,!1)?T:T===""+o?o:T}}else if(e.hasAttribute(m)){if(An(t,o,s,!1))return e.getAttribute(m);if(s.type===kn)return o;b=e.getAttribute(m)}return An(t,o,s,!1)?b===null?o:b:b===""+o?o:b}}function di(e,t,o,s){{if(!ut(t))return;if(!e.hasAttribute(t))return o===void 0?void 0:null;var d=e.getAttribute(t);return vt(o,t),d===""+o?o:d}}function fr(e,t,o,s){var d=Zt(t);if(!Mn(t,d,s)){if(An(t,o,d,s)&&(o=null),s||d===null){if(ut(t)){var m=t;o===null?e.removeAttribute(m):(vt(o,t),e.setAttribute(m,""+o))}return}var b=d.mustUseProperty;if(b){var T=d.propertyName;if(o===null){var M=d.type;e[T]=M===kn?!1:""}else e[T]=o;return}var P=d.attributeName,F=d.attributeNamespace;if(o===null)e.removeAttribute(P);else{var se=d.type,ae;se===kn||se===xn&&o===!0?ae="":(vt(o,P),ae=""+o,d.sanitizeURL&&Xa(ae.toString())),F?e.setAttributeNS(F,P,ae):e.setAttribute(P,ae)}}}var wr=Symbol.for("react.element"),Gn=Symbol.for("react.portal"),ca=Symbol.for("react.fragment"),fa=Symbol.for("react.strict_mode"),da=Symbol.for("react.profiler"),pa=Symbol.for("react.provider"),Q=Symbol.for("react.context"),De=Symbol.for("react.forward_ref"),We=Symbol.for("react.suspense"),nt=Symbol.for("react.suspense_list"),Qe=Symbol.for("react.memo"),Rt=Symbol.for("react.lazy"),Pt=Symbol.for("react.scope"),$t=Symbol.for("react.debug_trace_mode"),$n=Symbol.for("react.offscreen"),mn=Symbol.for("react.legacy_hidden"),wn=Symbol.for("react.cache"),rr=Symbol.for("react.tracing_marker"),ha=Symbol.iterator,na="@@iterator";function kt(e){if(e===null||typeof e!="object")return null;var t=ha&&e[ha]||e[na];return typeof t=="function"?t:null}var Ot=Object.assign,G=0,re,Ae,st,Je,It,en,Un;function Sr(){}Sr.__reactDisabledLog=!0;function Qi(){{if(G===0){re=console.log,Ae=console.info,st=console.warn,Je=console.error,It=console.group,en=console.groupCollapsed,Un=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Sr,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}G++}}function ru(){{if(G--,G===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Ot({},e,{value:re}),info:Ot({},e,{value:Ae}),warn:Ot({},e,{value:st}),error:Ot({},e,{value:Je}),group:Ot({},e,{value:It}),groupCollapsed:Ot({},e,{value:en}),groupEnd:Ot({},e,{value:Un})})}G<0&&p("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ml=l.ReactCurrentDispatcher,Ji;function va(e,t,o){{if(Ji===void 0)try{throw Error()}catch(d){var s=d.stack.trim().match(/\n( *(at )?)/);Ji=s&&s[1]||""}return`
|
|
109
|
+
`+Ji+e}}var ra=!1,Qa;{var Oo=typeof WeakMap=="function"?WeakMap:Map;Qa=new Oo}function Lo(e,t){if(!e||ra)return"";{var o=Qa.get(e);if(o!==void 0)return o}var s;ra=!0;var d=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var m;m=ml.current,ml.current=null,Qi();try{if(t){var b=function(){throw Error()};if(Object.defineProperty(b.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(b,[])}catch(we){s=we}Reflect.construct(e,[],b)}else{try{b.call()}catch(we){s=we}e.call(b.prototype)}}else{try{throw Error()}catch(we){s=we}e()}}catch(we){if(we&&s&&typeof we.stack=="string"){for(var T=we.stack.split(`
|
|
110
|
+
`),M=s.stack.split(`
|
|
111
|
+
`),P=T.length-1,F=M.length-1;P>=1&&F>=0&&T[P]!==M[F];)F--;for(;P>=1&&F>=0;P--,F--)if(T[P]!==M[F]){if(P!==1||F!==1)do if(P--,F--,F<0||T[P]!==M[F]){var se=`
|
|
112
|
+
`+T[P].replace(" at new "," at ");return e.displayName&&se.includes("<anonymous>")&&(se=se.replace("<anonymous>",e.displayName)),typeof e=="function"&&Qa.set(e,se),se}while(P>=1&&F>=0);break}}}finally{ra=!1,ml.current=m,ru(),Error.prepareStackTrace=d}var ae=e?e.displayName||e.name:"",ye=ae?va(ae):"";return typeof e=="function"&&Qa.set(e,ye),ye}function Zi(e,t,o){return Lo(e,!0)}function eo(e,t,o){return Lo(e,!1)}function gl(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function ji(e,t,o){if(e==null)return"";if(typeof e=="function")return Lo(e,gl(e));if(typeof e=="string")return va(e);switch(e){case We:return va("Suspense");case nt:return va("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case De:return eo(e.render);case Qe:return ji(e.type,t,o);case Rt:{var s=e,d=s._payload,m=s._init;try{return ji(m(d),t,o)}catch{}}}return""}function au(e){switch(e._debugOwner&&e._debugOwner.type,e._debugSource,e.tag){case N:return va(e.type);case ie:return va("Lazy");case H:return va("Suspense");case oe:return va("SuspenseList");case x:case E:case q:return eo(e.type);case L:return eo(e.type.render);case S:return Zi(e.type);default:return""}}function zo(e){try{var t="",o=e;do t+=au(o),o=o.return;while(o);return t}catch(s){return`
|
|
113
|
+
Error generating stack: `+s.message+`
|
|
114
|
+
`+s.stack}}function un(e,t,o){var s=e.displayName;if(s)return s;var d=t.displayName||t.name||"";return d!==""?o+"("+d+")":o}function iu(e){return e.displayName||"Context"}function tn(e){if(e==null)return null;if(typeof e.tag=="number"&&p("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ca:return"Fragment";case Gn:return"Portal";case da:return"Profiler";case fa:return"StrictMode";case We:return"Suspense";case nt:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Q:var t=e;return iu(t)+".Consumer";case pa:var o=e;return iu(o._context)+".Provider";case De:return un(e,e.render,"ForwardRef");case Qe:var s=e.displayName||null;return s!==null?s:tn(e.type)||"Memo";case Rt:{var d=e,m=d._payload,b=d._init;try{return tn(b(m))}catch{return null}}}return null}function hc(e,t,o){var s=t.displayName||t.name||"";return e.displayName||(s!==""?o+"("+s+")":o)}function to(e){return e.displayName||"Context"}function Lt(e){var t=e.tag,o=e.type;switch(t){case ce:return"Cache";case z:var s=o;return to(s)+".Consumer";case U:var d=o;return to(d._context)+".Provider";case Se:return"DehydratedFragment";case L:return hc(o,o.render,"ForwardRef");case R:return"Fragment";case N:return o;case _:return"Portal";case w:return"Root";case D:return"Text";case ie:return tn(o);case j:return o===fa?"StrictMode":"Mode";case he:return"Offscreen";case $:return"Profiler";case de:return"Scope";case H:return"Suspense";case oe:return"SuspenseList";case Z:return"TracingMarker";case S:case x:case fe:case E:case I:case q:if(typeof o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o;break}return null}var ou=l.ReactDebugCurrentFrame,Ur=null,no=!1;function ma(){{if(Ur===null)return null;var e=Ur._debugOwner;if(e!==null&&typeof e<"u")return Lt(e)}return null}function ro(){return Ur===null?"":zo(Ur)}function Fn(){ou.getCurrentStack=null,Ur=null,no=!1}function Sn(e){ou.getCurrentStack=e===null?null:ro,Ur=e,no=!1}function yl(){return Ur}function Cr(e){no=e}function ga(e){return""+e}function pi(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return ln(e),e;default:return""}}var rs={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function vc(e,t){rs[t.type]||t.onChange||t.onInput||t.readOnly||t.disabled||t.value==null||p("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||p("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 mc(e){var t=e.type,o=e.nodeName;return o&&o.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function xl(e){return e._valueTracker}function as(e){e._valueTracker=null}function vh(e){var t="";return e&&(mc(e)?t=e.checked?"true":"false":t=e.value),t}function hi(e){var t=mc(e)?"checked":"value",o=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);ln(e[t]);var s=""+e[t];if(!(e.hasOwnProperty(t)||typeof o>"u"||typeof o.get!="function"||typeof o.set!="function")){var d=o.get,m=o.set;Object.defineProperty(e,t,{configurable:!0,get:function(){return d.call(this)},set:function(T){ln(T),s=""+T,m.call(this,T)}}),Object.defineProperty(e,t,{enumerable:o.enumerable});var b={getValue:function(){return s},setValue:function(T){ln(T),s=""+T},stopTracking:function(){as(e),delete e[t]}};return b}}function Pi(e){xl(e)||(e._valueTracker=hi(e))}function ao(e){if(!e)return!1;var t=xl(e);if(!t)return!0;var o=t.getValue(),s=vh(e);return s!==o?(t.setValue(s),!0):!1}function vi(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var lu=!1,su=!1,bl=!1,is=!1;function uu(e){var t=e.type==="checkbox"||e.type==="radio";return t?e.checked!=null:e.value!=null}function cu(e,t){var o=e,s=t.checked,d=Ot({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:s??o._wrapperState.initialChecked});return d}function $i(e,t){vc("input",t),t.checked!==void 0&&t.defaultChecked!==void 0&&!su&&(p("%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://reactjs.org/link/controlled-components",ma()||"A component",t.type),su=!0),t.value!==void 0&&t.defaultValue!==void 0&&!lu&&(p("%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://reactjs.org/link/controlled-components",ma()||"A component",t.type),lu=!0);var o=e,s=t.defaultValue==null?"":t.defaultValue;o._wrapperState={initialChecked:t.checked!=null?t.checked:t.defaultChecked,initialValue:pi(t.value!=null?t.value:s),controlled:uu(t)}}function A(e,t){var o=e,s=t.checked;s!=null&&fr(o,"checked",s,!1)}function X(e,t){var o=e;{var s=uu(t);!o._wrapperState.controlled&&s&&!is&&(p("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://reactjs.org/link/controlled-components"),is=!0),o._wrapperState.controlled&&!s&&!bl&&(p("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://reactjs.org/link/controlled-components"),bl=!0)}A(e,t);var d=pi(t.value),m=t.type;if(d!=null)m==="number"?(d===0&&o.value===""||o.value!=d)&&(o.value=ga(d)):o.value!==ga(d)&&(o.value=ga(d));else if(m==="submit"||m==="reset"){o.removeAttribute("value");return}t.hasOwnProperty("value")?wt(o,t.type,d):t.hasOwnProperty("defaultValue")&&wt(o,t.type,pi(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(o.defaultChecked=!!t.defaultChecked)}function xe(e,t,o){var s=e;if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var d=t.type,m=d==="submit"||d==="reset";if(m&&(t.value===void 0||t.value===null))return;var b=ga(s._wrapperState.initialValue);o||b!==s.value&&(s.value=b),s.defaultValue=b}var T=s.name;T!==""&&(s.name=""),s.defaultChecked=!s.defaultChecked,s.defaultChecked=!!s._wrapperState.initialChecked,T!==""&&(s.name=T)}function Ce(e,t){var o=e;X(o,t),Be(o,t)}function Be(e,t){var o=t.name;if(t.type==="radio"&&o!=null){for(var s=e;s.parentNode;)s=s.parentNode;vt(o,"name");for(var d=s.querySelectorAll("input[name="+JSON.stringify(""+o)+'][type="radio"]'),m=0;m<d.length;m++){var b=d[m];if(!(b===e||b.form!==e.form)){var T=Jy(b);if(!T)throw new Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");ao(b),X(b,T)}}}}function wt(e,t,o){(t!=="number"||vi(e.ownerDocument)!==e)&&(o==null?e.defaultValue=ga(e._wrapperState.initialValue):e.defaultValue!==ga(o)&&(e.defaultValue=ga(o)))}var Ge=!1,Et=!1,Ht=!1;function nn(e,t){t.value==null&&(typeof t.children=="object"&&t.children!==null?n.Children.forEach(t.children,function(o){o!=null&&(typeof o=="string"||typeof o=="number"||Et||(Et=!0,p("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}):t.dangerouslySetInnerHTML!=null&&(Ht||(Ht=!0,p("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected.")))),t.selected!=null&&!Ge&&(p("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Ge=!0)}function Ln(e,t){t.value!=null&&e.setAttribute("value",ga(pi(t.value)))}var Cn=Array.isArray;function Ft(e){return Cn(e)}var En;En=!1;function Kn(){var e=ma();return e?`
|
|
115
|
+
|
|
116
|
+
Check the render method of \``+e+"`.":""}var wl=["value","defaultValue"];function gc(e){{vc("select",e);for(var t=0;t<wl.length;t++){var o=wl[t];if(e[o]!=null){var s=Ft(e[o]);e.multiple&&!s?p("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",o,Kn()):!e.multiple&&s&&p("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",o,Kn())}}}}function jo(e,t,o,s){var d=e.options;if(t){for(var m=o,b={},T=0;T<m.length;T++)b["$"+m[T]]=!0;for(var M=0;M<d.length;M++){var P=b.hasOwnProperty("$"+d[M].value);d[M].selected!==P&&(d[M].selected=P),P&&s&&(d[M].defaultSelected=!0)}}else{for(var F=ga(pi(o)),se=null,ae=0;ae<d.length;ae++){if(d[ae].value===F){d[ae].selected=!0,s&&(d[ae].defaultSelected=!0);return}se===null&&!d[ae].disabled&&(se=d[ae])}se!==null&&(se.selected=!0)}}function yc(e,t){return Ot({},t,{value:void 0})}function os(e,t){var o=e;gc(t),o._wrapperState={wasMultiple:!!t.multiple},t.value!==void 0&&t.defaultValue!==void 0&&!En&&(p("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://reactjs.org/link/controlled-components"),En=!0)}function mh(e,t){var o=e;o.multiple=!!t.multiple;var s=t.value;s!=null?jo(o,!!t.multiple,s,!1):t.defaultValue!=null&&jo(o,!!t.multiple,t.defaultValue,!0)}function Qf(e,t){var o=e,s=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!t.multiple;var d=t.value;d!=null?jo(o,!!t.multiple,d,!1):s!==!!t.multiple&&(t.defaultValue!=null?jo(o,!!t.multiple,t.defaultValue,!0):jo(o,!!t.multiple,t.multiple?[]:"",!1))}function gh(e,t){var o=e,s=t.value;s!=null&&jo(o,!!t.multiple,s,!1)}var wg=!1;function yh(e,t){var o=e;if(t.dangerouslySetInnerHTML!=null)throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");var s=Ot({},t,{value:void 0,defaultValue:void 0,children:ga(o._wrapperState.initialValue)});return s}function xh(e,t){var o=e;vc("textarea",t),t.value!==void 0&&t.defaultValue!==void 0&&!wg&&(p("%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://reactjs.org/link/controlled-components",ma()||"A component"),wg=!0);var s=t.value;if(s==null){var d=t.children,m=t.defaultValue;if(d!=null){p("Use the `defaultValue` or `value` props instead of setting children on <textarea>.");{if(m!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Ft(d)){if(d.length>1)throw new Error("<textarea> can only have at most one child.");d=d[0]}m=d}}m==null&&(m=""),s=m}o._wrapperState={initialValue:pi(s)}}function Sg(e,t){var o=e,s=pi(t.value),d=pi(t.defaultValue);if(s!=null){var m=ga(s);m!==o.value&&(o.value=m),t.defaultValue==null&&o.defaultValue!==m&&(o.defaultValue=m)}d!=null&&(o.defaultValue=ga(d))}function Cg(e,t){var o=e,s=o.textContent;s===o._wrapperState.initialValue&&s!==""&&s!==null&&(o.value=s)}function Db(e,t){Sg(e,t)}var Po="http://www.w3.org/1999/xhtml",bh="http://www.w3.org/1998/Math/MathML",wh="http://www.w3.org/2000/svg";function Sh(e){switch(e){case"svg":return wh;case"math":return bh;default:return Po}}function Ch(e,t){return e==null||e===Po?Sh(t):e===wh&&t==="foreignObject"?Po:e}var Eg=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,o,s,d){MSApp.execUnsafeLocalFunction(function(){return e(t,o,s,d)})}:e},Jf,_g=Eg(function(e,t){if(e.namespaceURI===wh&&!("innerHTML"in e)){Jf=Jf||document.createElement("div"),Jf.innerHTML="<svg>"+t.valueOf().toString()+"</svg>";for(var o=Jf.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;o.firstChild;)e.appendChild(o.firstChild);return}e.innerHTML=t}),Aa=1,$o=3,dr=8,Uo=9,Eh=11,fu=function(e,t){if(t){var o=e.firstChild;if(o&&o===e.lastChild&&o.nodeType===$o){o.nodeValue=t;return}}e.textContent=t},xc={animation:["animationDelay","animationDirection","animationDuration","animationFillMode","animationIterationCount","animationName","animationPlayState","animationTimingFunction"],background:["backgroundAttachment","backgroundClip","backgroundColor","backgroundImage","backgroundOrigin","backgroundPositionX","backgroundPositionY","backgroundRepeat","backgroundSize"],backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:["borderBottomColor","borderBottomStyle","borderBottomWidth","borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRightColor","borderRightStyle","borderRightWidth","borderTopColor","borderTopStyle","borderTopWidth"],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"],fontVariant:["fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantLigatures","fontVariantNumeric","fontVariantPosition"],gap:["columnGap","rowGap"],grid:["gridAutoColumns","gridAutoFlow","gridAutoRows","gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],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"],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"]},bc={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};function Tg(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}var Rg=["Webkit","ms","Moz","O"];Object.keys(bc).forEach(function(e){Rg.forEach(function(t){bc[Tg(t,e)]=bc[e]})});function Zf(e,t,o){var s=t==null||typeof t=="boolean"||t==="";return s?"":!o&&typeof t=="number"&&t!==0&&!(bc.hasOwnProperty(e)&&bc[e])?t+"px":(Dn(t,e),(""+t).trim())}var kg=/([A-Z])/g,Mg=/^ms-/;function du(e){return e.replace(kg,"-$1").toLowerCase().replace(Mg,"-ms-")}var Ng=function(){};{var Ab=/^(?:webkit|moz|o)[A-Z]/,Ob=/^-ms-/,Dg=/-(.)/g,_h=/;\s*$/,io={},ls={},Ag=!1,wc=!1,Lb=function(e){return e.replace(Dg,function(t,o){return o.toUpperCase()})},Og=function(e){io.hasOwnProperty(e)&&io[e]||(io[e]=!0,p("Unsupported style property %s. Did you mean %s?",e,Lb(e.replace(Ob,"ms-"))))},Th=function(e){io.hasOwnProperty(e)&&io[e]||(io[e]=!0,p("Unsupported vendor-prefixed style property %s. Did you mean %s?",e,e.charAt(0).toUpperCase()+e.slice(1)))},Rh=function(e,t){ls.hasOwnProperty(t)&&ls[t]||(ls[t]=!0,p(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,e,t.replace(_h,"")))},Lg=function(e,t){Ag||(Ag=!0,p("`NaN` is an invalid value for the `%s` css style property.",e))},zg=function(e,t){wc||(wc=!0,p("`Infinity` is an invalid value for the `%s` css style property.",e))};Ng=function(e,t){e.indexOf("-")>-1?Og(e):Ab.test(e)?Th(e):_h.test(t)&&Rh(e,t),typeof t=="number"&&(isNaN(t)?Lg(e,t):isFinite(t)||zg(e,t))}}var jg=Ng;function zb(e){{var t="",o="";for(var s in e)if(e.hasOwnProperty(s)){var d=e[s];if(d!=null){var m=s.indexOf("--")===0;t+=o+(m?s:du(s))+":",t+=Zf(s,d,m),o=";"}}return t||null}}function Pg(e,t){var o=e.style;for(var s in t)if(t.hasOwnProperty(s)){var d=s.indexOf("--")===0;d||jg(s,t[s]);var m=Zf(s,t[s],d);s==="float"&&(s="cssFloat"),d?o.setProperty(s,m):o[s]=m}}function jb(e){return e==null||typeof e=="boolean"||e===""}function $g(e){var t={};for(var o in e)for(var s=xc[o]||[o],d=0;d<s.length;d++)t[s[d]]=o;return t}function Pb(e,t){{if(!t)return;var o=$g(e),s=$g(t),d={};for(var m in o){var b=o[m],T=s[m];if(T&&b!==T){var M=b+","+T;if(d[M])continue;d[M]=!0,p("%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.",jb(e[b])?"Removing":"Updating",b,T)}}}}var Ui={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},Sc=Ot({menuitem:!0},Ui),Ug="__html";function ed(e,t){if(t){if(Sc[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw new Error(e+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof t.dangerouslySetInnerHTML!="object"||!(Ug in t.dangerouslySetInnerHTML))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.")}if(!t.suppressContentEditableWarning&&t.contentEditable&&t.children!=null&&p("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."),t.style!=null&&typeof t.style!="object")throw new Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.")}}function Sl(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";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 Cc={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",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",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",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",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"},td={"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},pu={},$b=new RegExp("^(aria)-["+He+"]*$"),hu=new RegExp("^(aria)[A-Z]["+He+"]*$");function kh(e,t){{if(Ye.call(pu,t)&&pu[t])return!0;if(hu.test(t)){var o="aria-"+t.slice(4).toLowerCase(),s=td.hasOwnProperty(o)?o:null;if(s==null)return p("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",t),pu[t]=!0,!0;if(t!==s)return p("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,s),pu[t]=!0,!0}if($b.test(t)){var d=t.toLowerCase(),m=td.hasOwnProperty(d)?d:null;if(m==null)return pu[t]=!0,!1;if(t!==m)return p("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,m),pu[t]=!0,!0}}return!0}function Ec(e,t){{var o=[];for(var s in t){var d=kh(e,s);d||o.push(s)}var m=o.map(function(b){return"`"+b+"`"}).join(", ");o.length===1?p("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",m,e):o.length>1&&p("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",m,e)}}function Mh(e,t){Sl(e,t)||Ec(e,t)}var Nh=!1;function nd(e,t){{if(e!=="input"&&e!=="textarea"&&e!=="select")return;t!=null&&t.value===null&&!Nh&&(Nh=!0,e==="select"&&t.multiple?p("`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):p("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",e))}}var ss=function(){};{var Fr={},Dh=/^on./,rd=/^on[^A-Z]/,Fg=new RegExp("^(aria)-["+He+"]*$"),Ig=new RegExp("^(aria)[A-Z]["+He+"]*$");ss=function(e,t,o,s){if(Ye.call(Fr,t)&&Fr[t])return!0;var d=t.toLowerCase();if(d==="onfocusin"||d==="onfocusout")return p("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."),Fr[t]=!0,!0;if(s!=null){var m=s.registrationNameDependencies,b=s.possibleRegistrationNames;if(m.hasOwnProperty(t))return!0;var T=b.hasOwnProperty(d)?b[d]:null;if(T!=null)return p("Invalid event handler property `%s`. Did you mean `%s`?",t,T),Fr[t]=!0,!0;if(Dh.test(t))return p("Unknown event handler property `%s`. It will be ignored.",t),Fr[t]=!0,!0}else if(Dh.test(t))return rd.test(t)&&p("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),Fr[t]=!0,!0;if(Fg.test(t)||Ig.test(t))return!0;if(d==="innerhtml")return p("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),Fr[t]=!0,!0;if(d==="aria")return p("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),Fr[t]=!0,!0;if(d==="is"&&o!==null&&o!==void 0&&typeof o!="string")return p("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof o),Fr[t]=!0,!0;if(typeof o=="number"&&isNaN(o))return p("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",t),Fr[t]=!0,!0;var M=Zt(t),P=M!==null&&M.type===vn;if(Cc.hasOwnProperty(d)){var F=Cc[d];if(F!==t)return p("Invalid DOM property `%s`. Did you mean `%s`?",t,F),Fr[t]=!0,!0}else if(!P&&t!==d)return p("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,d),Fr[t]=!0,!0;return typeof o=="boolean"&&bn(t,o,M,!1)?(o?p('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()}.',o,t,t,o,t):p('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\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',o,t,t,o,t,t,t),Fr[t]=!0,!0):P?!0:bn(t,o,M,!1)?(Fr[t]=!0,!1):((o==="false"||o==="true")&&M!==null&&M.type===kn&&(p("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",o,t,o==="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,o),Fr[t]=!0),!0)}}var Bg=function(e,t,o){{var s=[];for(var d in t){var m=ss(e,d,t[d],o);m||s.push(d)}var b=s.map(function(T){return"`"+T+"`"}).join(", ");s.length===1?p("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://reactjs.org/link/attribute-behavior ",b,e):s.length>1&&p("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://reactjs.org/link/attribute-behavior ",b,e)}};function Hg(e,t,o){Sl(e,t)||Bg(e,t,o)}var Ah=1,ad=2,mi=4,Oh=Ah|ad|mi,us=null;function Ub(e){us!==null&&p("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),us=e}function Fb(){us===null&&p("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),us=null}function _c(e){return e===us}function Lh(e){var t=e.target||e.srcElement||window;return t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===$o?t.parentNode:t}var id=null,cs=null,gn=null;function od(e){var t=zu(e);if(t){if(typeof id!="function")throw new Error("setRestoreImplementation() needs to be called to handle a target for controlled events. This error is likely caused by a bug in React. Please file an issue.");var o=t.stateNode;if(o){var s=Jy(o);id(t.stateNode,t.type,s)}}}function ld(e){id=e}function vu(e){cs?gn?gn.push(e):gn=[e]:cs=e}function Vg(){return cs!==null||gn!==null}function sd(){if(cs){var e=cs,t=gn;if(cs=null,gn=null,od(e),t)for(var o=0;o<t.length;o++)od(t[o])}}var mu=function(e,t){return e(t)},Tc=function(){},Cl=!1;function Yg(){var e=Vg();e&&(Tc(),sd())}function Wg(e,t,o){if(Cl)return e(t,o);Cl=!0;try{return mu(e,t,o)}finally{Cl=!1,Yg()}}function Ib(e,t,o){mu=e,Tc=o}function qg(e){return e==="button"||e==="input"||e==="select"||e==="textarea"}function ud(e,t,o){switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":return!!(o.disabled&&qg(t));default:return!1}}function El(e,t){var o=e.stateNode;if(o===null)return null;var s=Jy(o);if(s===null)return null;var d=s[t];if(ud(t,e.type,s))return null;if(d&&typeof d!="function")throw new Error("Expected `"+t+"` listener to be a function, instead got a value of `"+typeof d+"` type.");return d}var Rc=!1;if(Ke)try{var fs={};Object.defineProperty(fs,"passive",{get:function(){Rc=!0}}),window.addEventListener("test",fs,fs),window.removeEventListener("test",fs,fs)}catch{Rc=!1}function cd(e,t,o,s,d,m,b,T,M){var P=Array.prototype.slice.call(arguments,3);try{t.apply(o,P)}catch(F){this.onError(F)}}var fd=cd;if(typeof window<"u"&&typeof window.dispatchEvent=="function"&&typeof document<"u"&&typeof document.createEvent=="function"){var zh=document.createElement("react");fd=function(t,o,s,d,m,b,T,M,P){if(typeof document>"u"||document===null)throw new Error("The `document` global was defined when React was initialized, but is not defined anymore. This can happen in a test environment if a component schedules an update from an asynchronous callback, but the test has already finished running. To solve this, you can either unmount the component at the end of your test (and ensure that any asynchronous operations get canceled in `componentWillUnmount`), or you can change the test itself to be asynchronous.");var F=document.createEvent("Event"),se=!1,ae=!0,ye=window.event,we=Object.getOwnPropertyDescriptor(window,"event");function Ee(){zh.removeEventListener(_e,St,!1),typeof window.event<"u"&&window.hasOwnProperty("event")&&(window.event=ye)}var et=Array.prototype.slice.call(arguments,3);function St(){se=!0,Ee(),o.apply(s,et),ae=!1}var mt,Qt=!1,Yt=!1;function ve(me){if(mt=me.error,Qt=!0,mt===null&&me.colno===0&&me.lineno===0&&(Yt=!0),me.defaultPrevented&&mt!=null&&typeof mt=="object")try{mt._suppressLogging=!0}catch{}}var _e="react-"+(t||"invokeguardedcallback");if(window.addEventListener("error",ve),zh.addEventListener(_e,St,!1),F.initEvent(_e,!1,!1),zh.dispatchEvent(F),we&&Object.defineProperty(window,"event",we),se&&ae&&(Qt?Yt&&(mt=new Error("A cross-origin error was thrown. React doesn't have access to the actual error object in development. See https://reactjs.org/link/crossorigin-error for more information.")):mt=new Error(`An error was thrown inside one of your components, but React doesn't know what it was. This is likely due to browser flakiness. React does its best to preserve the "Pause on exceptions" behavior of the DevTools, which requires some DEV-mode only tricks. It's possible that these don't work in your browser. Try triggering the error in production mode, or switching to a modern browser. If you suspect that this is actually an issue with React, please file an issue.`),this.onError(mt)),window.removeEventListener("error",ve),!se)return Ee(),cd.apply(this,arguments)}}var Gg=fd,gu=!1,dd=null,yu=!1,oo=null,Kg={onError:function(e){gu=!0,dd=e}};function _l(e,t,o,s,d,m,b,T,M){gu=!1,dd=null,Gg.apply(Kg,arguments)}function lo(e,t,o,s,d,m,b,T,M){if(_l.apply(this,arguments),gu){var P=Mc();yu||(yu=!0,oo=P)}}function kc(){if(yu){var e=oo;throw yu=!1,oo=null,e}}function Fo(){return gu}function Mc(){if(gu){var e=dd;return gu=!1,dd=null,e}else throw new Error("clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue.")}function xu(e){return e._reactInternals}function Bb(e){return e._reactInternals!==void 0}function ds(e,t){e._reactInternals=t}var yt=0,Fi=1,Xn=2,Gt=4,gi=16,yi=32,zn=64,gt=128,aa=256,ar=512,Er=1024,Oa=2048,La=4096,pr=8192,bu=16384,Xg=32767,Nc=32768,Ar=65536,pd=131072,so=1048576,wu=2097152,Io=4194304,hd=8388608,Tl=16777216,uo=33554432,Rl=Gt|Er|0,kl=Xn|Gt|gi|yi|ar|La|pr,Ml=Gt|zn|ar|pr,Bo=Oa|gi,hr=Io|hd|wu,xi=l.ReactCurrentOwner;function Ja(e){var t=e,o=e;if(e.alternate)for(;t.return;)t=t.return;else{var s=t;do t=s,(t.flags&(Xn|La))!==yt&&(o=t.return),s=t.return;while(s)}return t.tag===w?o:null}function co(e){if(e.tag===H){var t=e.memoizedState;if(t===null){var o=e.alternate;o!==null&&(t=o.memoizedState)}if(t!==null)return t.dehydrated}return null}function fo(e){return e.tag===w?e.stateNode.containerInfo:null}function ps(e){return Ja(e)===e}function Qg(e){{var t=xi.current;if(t!==null&&t.tag===S){var o=t,s=o.stateNode;s._warnedAboutRefsInRender||p("%s is accessing isMounted inside its render() function. render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",Lt(o)||"A component"),s._warnedAboutRefsInRender=!0}}var d=xu(e);return d?Ja(d)===d:!1}function vd(e){if(Ja(e)!==e)throw new Error("Unable to find node on an unmounted component.")}function md(e){var t=e.alternate;if(!t){var o=Ja(e);if(o===null)throw new Error("Unable to find node on an unmounted component.");return o!==e?null:e}for(var s=e,d=t;;){var m=s.return;if(m===null)break;var b=m.alternate;if(b===null){var T=m.return;if(T!==null){s=d=T;continue}break}if(m.child===b.child){for(var M=m.child;M;){if(M===s)return vd(m),e;if(M===d)return vd(m),t;M=M.sibling}throw new Error("Unable to find node on an unmounted component.")}if(s.return!==d.return)s=m,d=b;else{for(var P=!1,F=m.child;F;){if(F===s){P=!0,s=m,d=b;break}if(F===d){P=!0,d=m,s=b;break}F=F.sibling}if(!P){for(F=b.child;F;){if(F===s){P=!0,s=b,d=m;break}if(F===d){P=!0,d=b,s=m;break}F=F.sibling}if(!P)throw new 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(s.alternate!==d)throw new Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(s.tag!==w)throw new Error("Unable to find node on an unmounted component.");return s.stateNode.current===s?e:t}function za(e){var t=md(e);return t!==null?ja(t):null}function ja(e){if(e.tag===N||e.tag===D)return e;for(var t=e.child;t!==null;){var o=ja(t);if(o!==null)return o;t=t.sibling}return null}function Vn(e){var t=md(e);return t!==null?bi(t):null}function bi(e){if(e.tag===N||e.tag===D)return e;for(var t=e.child;t!==null;){if(t.tag!==_){var o=bi(t);if(o!==null)return o}t=t.sibling}return null}var jh=a.unstable_scheduleCallback,Jg=a.unstable_cancelCallback,Ph=a.unstable_shouldYield,$h=a.unstable_requestPaint,_r=a.unstable_now,gd=a.unstable_getCurrentPriorityLevel,Dc=a.unstable_ImmediatePriority,Nl=a.unstable_UserBlockingPriority,Ho=a.unstable_NormalPriority,Hb=a.unstable_LowPriority,hs=a.unstable_IdlePriority,yd=a.unstable_yieldValue,Zg=a.unstable_setDisableYieldValue,vs=null,ir=null,Ze=null,Za=!1,Pa=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u";function Su(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 p("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://reactjs.org/link/react-devtools"),!0;try{ke&&(e=Ot({},e,{getLaneLabelMap:ms,injectProfilingHooks:wi})),vs=t.inject(e),ir=t}catch(o){p("React instrumentation encountered an error: %s.",o)}return!!t.checkDCE}function Uh(e,t){if(ir&&typeof ir.onScheduleFiberRoot=="function")try{ir.onScheduleFiberRoot(vs,e,t)}catch(o){Za||(Za=!0,p("React instrumentation encountered an error: %s",o))}}function Fh(e,t){if(ir&&typeof ir.onCommitFiberRoot=="function")try{var o=(e.current.flags>)===gt;if(Re){var s;switch(t){case ya:s=Dc;break;case ho:s=Nl;break;case Si:s=Ho;break;case Ci:s=hs;break;default:s=Ho;break}ir.onCommitFiberRoot(vs,e,s,o)}}catch(d){Za||(Za=!0,p("React instrumentation encountered an error: %s",d))}}function Ih(e){if(ir&&typeof ir.onPostCommitFiberRoot=="function")try{ir.onPostCommitFiberRoot(vs,e)}catch(t){Za||(Za=!0,p("React instrumentation encountered an error: %s",t))}}function Bh(e){if(ir&&typeof ir.onCommitFiberUnmount=="function")try{ir.onCommitFiberUnmount(vs,e)}catch(t){Za||(Za=!0,p("React instrumentation encountered an error: %s",t))}}function Qn(e){if(typeof yd=="function"&&(Zg(e),f(e)),ir&&typeof ir.setStrictMode=="function")try{ir.setStrictMode(vs,e)}catch(t){Za||(Za=!0,p("React instrumentation encountered an error: %s",t))}}function wi(e){Ze=e}function ms(){{for(var e=new Map,t=1,o=0;o<xs;o++){var s=ry(t);e.set(t,s),t*=2}return e}}function Hh(e){Ze!==null&&typeof Ze.markCommitStarted=="function"&&Ze.markCommitStarted(e)}function Vh(){Ze!==null&&typeof Ze.markCommitStopped=="function"&&Ze.markCommitStopped()}function ei(e){Ze!==null&&typeof Ze.markComponentRenderStarted=="function"&&Ze.markComponentRenderStarted(e)}function ti(){Ze!==null&&typeof Ze.markComponentRenderStopped=="function"&&Ze.markComponentRenderStopped()}function Yh(e){Ze!==null&&typeof Ze.markComponentPassiveEffectMountStarted=="function"&&Ze.markComponentPassiveEffectMountStarted(e)}function ey(){Ze!==null&&typeof Ze.markComponentPassiveEffectMountStopped=="function"&&Ze.markComponentPassiveEffectMountStopped()}function Vo(e){Ze!==null&&typeof Ze.markComponentPassiveEffectUnmountStarted=="function"&&Ze.markComponentPassiveEffectUnmountStarted(e)}function Dl(){Ze!==null&&typeof Ze.markComponentPassiveEffectUnmountStopped=="function"&&Ze.markComponentPassiveEffectUnmountStopped()}function xd(e){Ze!==null&&typeof Ze.markComponentLayoutEffectMountStarted=="function"&&Ze.markComponentLayoutEffectMountStarted(e)}function ty(){Ze!==null&&typeof Ze.markComponentLayoutEffectMountStopped=="function"&&Ze.markComponentLayoutEffectMountStopped()}function Ac(e){Ze!==null&&typeof Ze.markComponentLayoutEffectUnmountStarted=="function"&&Ze.markComponentLayoutEffectUnmountStarted(e)}function Wh(){Ze!==null&&typeof Ze.markComponentLayoutEffectUnmountStopped=="function"&&Ze.markComponentLayoutEffectUnmountStopped()}function Oc(e,t,o){Ze!==null&&typeof Ze.markComponentErrored=="function"&&Ze.markComponentErrored(e,t,o)}function po(e,t,o){Ze!==null&&typeof Ze.markComponentSuspended=="function"&&Ze.markComponentSuspended(e,t,o)}function Lc(e){Ze!==null&&typeof Ze.markLayoutEffectsStarted=="function"&&Ze.markLayoutEffectsStarted(e)}function zc(){Ze!==null&&typeof Ze.markLayoutEffectsStopped=="function"&&Ze.markLayoutEffectsStopped()}function gs(e){Ze!==null&&typeof Ze.markPassiveEffectsStarted=="function"&&Ze.markPassiveEffectsStarted(e)}function qh(){Ze!==null&&typeof Ze.markPassiveEffectsStopped=="function"&&Ze.markPassiveEffectsStopped()}function ys(e){Ze!==null&&typeof Ze.markRenderStarted=="function"&&Ze.markRenderStarted(e)}function ny(){Ze!==null&&typeof Ze.markRenderYielded=="function"&&Ze.markRenderYielded()}function bd(){Ze!==null&&typeof Ze.markRenderStopped=="function"&&Ze.markRenderStopped()}function Jn(e){Ze!==null&&typeof Ze.markRenderScheduled=="function"&&Ze.markRenderScheduled(e)}function wd(e,t){Ze!==null&&typeof Ze.markForceUpdateScheduled=="function"&&Ze.markForceUpdateScheduled(e,t)}function jc(e,t){Ze!==null&&typeof Ze.markStateUpdateScheduled=="function"&&Ze.markStateUpdateScheduled(e,t)}var xt=0,Bt=1,cn=2,_n=8,fn=16,vr=Math.clz32?Math.clz32:Pc,Or=Math.log,Sd=Math.LN2;function Pc(e){var t=e>>>0;return t===0?32:31-(Or(t)/Sd|0)|0}var xs=31,Le=0,on=0,Mt=1,Al=2,Ii=4,ia=8,or=16,Yo=32,Ol=4194240,bs=64,Cd=128,Ed=256,_d=512,Td=1024,Rd=2048,kd=4096,Md=8192,Nd=16384,ws=32768,Dd=65536,Cu=131072,Eu=262144,Ad=524288,$c=1048576,Od=2097152,Uc=130023424,Ss=4194304,Ld=8388608,Fc=16777216,zd=33554432,jd=67108864,Gh=Ss,Ic=134217728,Kh=268435455,Bc=268435456,Cs=536870912,$a=1073741824;function ry(e){{if(e&Mt)return"Sync";if(e&Al)return"InputContinuousHydration";if(e&Ii)return"InputContinuous";if(e&ia)return"DefaultHydration";if(e&or)return"Default";if(e&Yo)return"TransitionHydration";if(e&Ol)return"Transition";if(e&Uc)return"Retry";if(e&Ic)return"SelectiveHydration";if(e&Bc)return"IdleHydration";if(e&Cs)return"Idle";if(e&$a)return"Offscreen"}}var Nn=-1,Es=bs,Pd=Ss;function Hc(e){switch(Ll(e)){case Mt:return Mt;case Al:return Al;case Ii:return Ii;case ia:return ia;case or:return or;case Yo:return Yo;case bs:case Cd:case Ed:case _d:case Td:case Rd:case kd:case Md:case Nd:case ws:case Dd:case Cu:case Eu:case Ad:case $c:case Od:return e&Ol;case Ss:case Ld:case Fc:case zd:case jd:return e&Uc;case Ic:return Ic;case Bc:return Bc;case Cs:return Cs;case $a:return $a;default:return p("Should have found matching lanes. This is a bug in React."),e}}function $d(e,t){var o=e.pendingLanes;if(o===Le)return Le;var s=Le,d=e.suspendedLanes,m=e.pingedLanes,b=o&Kh;if(b!==Le){var T=b&~d;if(T!==Le)s=Hc(T);else{var M=b&m;M!==Le&&(s=Hc(M))}}else{var P=o&~d;P!==Le?s=Hc(P):m!==Le&&(s=Hc(m))}if(s===Le)return Le;if(t!==Le&&t!==s&&(t&d)===Le){var F=Ll(s),se=Ll(t);if(F>=se||F===or&&(se&Ol)!==Le)return t}(s&Ii)!==Le&&(s|=o&or);var ae=e.entangledLanes;if(ae!==Le)for(var ye=e.entanglements,we=s&ae;we>0;){var Ee=mr(we),et=1<<Ee;s|=ye[Ee],we&=~et}return s}function Bi(e,t){for(var o=e.eventTimes,s=Nn;t>0;){var d=mr(t),m=1<<d,b=o[d];b>s&&(s=b),t&=~m}return s}function Xh(e,t){switch(e){case Mt:case Al:case Ii:return t+250;case ia:case or:case Yo:case bs:case Cd:case Ed:case _d:case Td:case Rd:case kd:case Md:case Nd:case ws:case Dd:case Cu:case Eu:case Ad:case $c:case Od:return t+5e3;case Ss:case Ld:case Fc:case zd:case jd:return Nn;case Ic:case Bc:case Cs:case $a:return Nn;default:return p("Should have found matching lanes. This is a bug in React."),Nn}}function Ud(e,t){for(var o=e.pendingLanes,s=e.suspendedLanes,d=e.pingedLanes,m=e.expirationTimes,b=o;b>0;){var T=mr(b),M=1<<T,P=m[T];P===Nn?((M&s)===Le||(M&d)!==Le)&&(m[T]=Xh(M,t)):P<=t&&(e.expiredLanes|=M),b&=~M}}function ay(e){return Hc(e.pendingLanes)}function Fd(e){var t=e.pendingLanes&~$a;return t!==Le?t:t&$a?$a:Le}function iy(e){return(e&Mt)!==Le}function Vc(e){return(e&Kh)!==Le}function _s(e){return(e&Uc)===e}function Qh(e){var t=Mt|Ii|or;return(e&t)===Le}function Jh(e){return(e&Ol)===e}function Id(e,t){var o=Al|Ii|ia|or;return(t&o)!==Le}function oy(e,t){return(t&e.expiredLanes)!==Le}function Zh(e){return(e&Ol)!==Le}function ev(){var e=Es;return Es<<=1,(Es&Ol)===Le&&(Es=bs),e}function ly(){var e=Pd;return Pd<<=1,(Pd&Uc)===Le&&(Pd=Ss),e}function Ll(e){return e&-e}function Yc(e){return Ll(e)}function mr(e){return 31-vr(e)}function Ir(e){return mr(e)}function Ua(e,t){return(e&t)!==Le}function Ts(e,t){return(e&t)===t}function Ut(e,t){return e|t}function Wc(e,t){return e&~t}function tv(e,t){return e&t}function sy(e){return e}function uy(e,t){return e!==on&&e<t?e:t}function qc(e){for(var t=[],o=0;o<xs;o++)t.push(e);return t}function _u(e,t,o){e.pendingLanes|=t,t!==Cs&&(e.suspendedLanes=Le,e.pingedLanes=Le);var s=e.eventTimes,d=Ir(t);s[d]=o}function cy(e,t){e.suspendedLanes|=t,e.pingedLanes&=~t;for(var o=e.expirationTimes,s=t;s>0;){var d=mr(s),m=1<<d;o[d]=Nn,s&=~m}}function Bd(e,t,o){e.pingedLanes|=e.suspendedLanes&t}function nv(e,t){var o=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=Le,e.pingedLanes=Le,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t;for(var s=e.entanglements,d=e.eventTimes,m=e.expirationTimes,b=o;b>0;){var T=mr(b),M=1<<T;s[T]=Le,d[T]=Nn,m[T]=Nn,b&=~M}}function Hd(e,t){for(var o=e.entangledLanes|=t,s=e.entanglements,d=o;d;){var m=mr(d),b=1<<m;b&t|s[m]&t&&(s[m]|=t),d&=~b}}function rv(e,t){var o=Ll(t),s;switch(o){case Ii:s=Al;break;case or:s=ia;break;case bs:case Cd:case Ed:case _d:case Td:case Rd:case kd:case Md:case Nd:case ws:case Dd:case Cu:case Eu:case Ad:case $c:case Od:case Ss:case Ld:case Fc:case zd:case jd:s=Yo;break;case Cs:s=Bc;break;default:s=on;break}return(s&(e.suspendedLanes|t))!==on?on:s}function Gc(e,t,o){if(Pa)for(var s=e.pendingUpdatersLaneMap;o>0;){var d=Ir(o),m=1<<d,b=s[d];b.add(t),o&=~m}}function fy(e,t){if(Pa)for(var o=e.pendingUpdatersLaneMap,s=e.memoizedUpdaters;t>0;){var d=Ir(t),m=1<<d,b=o[d];b.size>0&&(b.forEach(function(T){var M=T.alternate;(M===null||!s.has(M))&&s.add(T)}),b.clear()),t&=~m}}function av(e,t){return null}var ya=Mt,ho=Ii,Si=or,Ci=Cs,Kc=on;function Ei(){return Kc}function gr(e){Kc=e}function dy(e,t){var o=Kc;try{return Kc=e,t()}finally{Kc=o}}function py(e,t){return e!==0&&e<t?e:t}function Xc(e,t){return e>t?e:t}function Lr(e,t){return e!==0&&e<t}function hy(e){var t=Ll(e);return Lr(ya,t)?Lr(ho,t)?Vc(t)?Si:Ci:ho:ya}function Vd(e){var t=e.current.memoizedState;return t.isDehydrated}var Qc;function oa(e){Qc=e}function Vb(e){Qc(e)}var ot;function Tu(e){ot=e}var Yd;function vy(e){Yd=e}var my;function Jc(e){my=e}var Zc;function iv(e){Zc=e}var Wd=!1,ef=[],Wo=null,vo=null,mo=null,lr=new Map,xa=new Map,ba=[],gy=["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","submit"];function yy(e){return gy.indexOf(e)>-1}function Hi(e,t,o,s,d){return{blockedOn:e,domEventName:t,eventSystemFlags:o,nativeEvent:d,targetContainers:[s]}}function ov(e,t){switch(e){case"focusin":case"focusout":Wo=null;break;case"dragenter":case"dragleave":vo=null;break;case"mouseover":case"mouseout":mo=null;break;case"pointerover":case"pointerout":{var o=t.pointerId;lr.delete(o);break}case"gotpointercapture":case"lostpointercapture":{var s=t.pointerId;xa.delete(s);break}}}function Fa(e,t,o,s,d,m){if(e===null||e.nativeEvent!==m){var b=Hi(t,o,s,d,m);if(t!==null){var T=zu(t);T!==null&&ot(T)}return b}e.eventSystemFlags|=s;var M=e.targetContainers;return d!==null&&M.indexOf(d)===-1&&M.push(d),e}function Yb(e,t,o,s,d){switch(t){case"focusin":{var m=d;return Wo=Fa(Wo,e,t,o,s,m),!0}case"dragenter":{var b=d;return vo=Fa(vo,e,t,o,s,b),!0}case"mouseover":{var T=d;return mo=Fa(mo,e,t,o,s,T),!0}case"pointerover":{var M=d,P=M.pointerId;return lr.set(P,Fa(lr.get(P)||null,e,t,o,s,M)),!0}case"gotpointercapture":{var F=d,se=F.pointerId;return xa.set(se,Fa(xa.get(se)||null,e,t,o,s,F)),!0}}return!1}function lv(e){var t=pf(e.target);if(t!==null){var o=Ja(t);if(o!==null){var s=o.tag;if(s===H){var d=co(o);if(d!==null){e.blockedOn=d,Zc(e.priority,function(){Yd(o)});return}}else if(s===w){var m=o.stateNode;if(Vd(m)){e.blockedOn=fo(o);return}}}}e.blockedOn=null}function xy(e){for(var t=my(),o={blockedOn:null,target:e,priority:t},s=0;s<ba.length&&Lr(t,ba[s].priority);s++);ba.splice(s,0,o),s===0&&lv(o)}function tf(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;t.length>0;){var o=t[0],s=ku(e.domEventName,e.eventSystemFlags,o,e.nativeEvent);if(s===null){var d=e.nativeEvent,m=new d.constructor(d.type,d);Ub(m),d.target.dispatchEvent(m),Fb()}else{var b=zu(s);return b!==null&&ot(b),e.blockedOn=s,!1}t.shift()}return!0}function sv(e,t,o){tf(e)&&o.delete(t)}function Wb(){Wd=!1,Wo!==null&&tf(Wo)&&(Wo=null),vo!==null&&tf(vo)&&(vo=null),mo!==null&&tf(mo)&&(mo=null),lr.forEach(sv),xa.forEach(sv)}function zl(e,t){e.blockedOn===t&&(e.blockedOn=null,Wd||(Wd=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,Wb)))}function Rs(e){if(ef.length>0){zl(ef[0],e);for(var t=1;t<ef.length;t++){var o=ef[t];o.blockedOn===e&&(o.blockedOn=null)}}Wo!==null&&zl(Wo,e),vo!==null&&zl(vo,e),mo!==null&&zl(mo,e);var s=function(T){return zl(T,e)};lr.forEach(s),xa.forEach(s);for(var d=0;d<ba.length;d++){var m=ba[d];m.blockedOn===e&&(m.blockedOn=null)}for(;ba.length>0;){var b=ba[0];if(b.blockedOn!==null)break;lv(b),b.blockedOn===null&&ba.shift()}}var Br=l.ReactCurrentBatchConfig,Kt=!0;function Tr(e){Kt=!!e}function yr(){return Kt}function Hr(e,t,o){var s=qd(t),d;switch(s){case ya:d=ni;break;case ho:d=Ru;break;case Si:default:d=sr;break}return d.bind(null,t,o,e)}function ni(e,t,o,s){var d=Ei(),m=Br.transition;Br.transition=null;try{gr(ya),sr(e,t,o,s)}finally{gr(d),Br.transition=m}}function Ru(e,t,o,s){var d=Ei(),m=Br.transition;Br.transition=null;try{gr(ho),sr(e,t,o,s)}finally{gr(d),Br.transition=m}}function sr(e,t,o,s){Kt&&nf(e,t,o,s)}function nf(e,t,o,s){var d=ku(e,t,o,s);if(d===null){uw(e,t,s,go,o),ov(e,s);return}if(Yb(d,e,t,o,s)){s.stopPropagation();return}if(ov(e,s),t&mi&&yy(e)){for(;d!==null;){var m=zu(d);m!==null&&Vb(m);var b=ku(e,t,o,s);if(b===null&&uw(e,t,s,go,o),b===d)break;d=b}d!==null&&s.stopPropagation();return}uw(e,t,s,null,o)}var go=null;function ku(e,t,o,s){go=null;var d=Lh(s),m=pf(d);if(m!==null){var b=Ja(m);if(b===null)m=null;else{var T=b.tag;if(T===H){var M=co(b);if(M!==null)return M;m=null}else if(T===w){var P=b.stateNode;if(Vd(P))return fo(b);m=null}else b!==m&&(m=null)}}return go=m,null}function qd(e){switch(e){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"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 ya;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"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return ho;case"message":{var t=gd();switch(t){case Dc:return ya;case Nl:return ho;case Ho:case Hb:return Si;case hs:return Ci;default:return Si}}default:return Si}}function rf(e,t,o){return e.addEventListener(t,o,!1),o}function Ia(e,t,o){return e.addEventListener(t,o,!0),o}function uv(e,t,o,s){return e.addEventListener(t,o,{capture:!0,passive:s}),o}function Mu(e,t,o,s){return e.addEventListener(t,o,{passive:s}),o}var ri=null,Nu=null,ks=null;function jl(e){return ri=e,Nu=af(),!0}function Gd(){ri=null,Nu=null,ks=null}function qo(){if(ks)return ks;var e,t=Nu,o=t.length,s,d=af(),m=d.length;for(e=0;e<o&&t[e]===d[e];e++);var b=o-e;for(s=1;s<=b&&t[o-s]===d[m-s];s++);var T=s>1?1-s:void 0;return ks=d.slice(e,T),ks}function af(){return"value"in ri?ri.value:ri.textContent}function Pl(e){var t,o=e.keyCode;return"charCode"in e?(t=e.charCode,t===0&&o===13&&(t=13)):t=o,t===10&&(t=13),t>=32||t===13?t:0}function Du(){return!0}function of(){return!1}function la(e){function t(o,s,d,m,b){this._reactName=o,this._targetInst=d,this.type=s,this.nativeEvent=m,this.target=b,this.currentTarget=null;for(var T in e)if(e.hasOwnProperty(T)){var M=e[T];M?this[T]=M(m):this[T]=m[T]}var P=m.defaultPrevented!=null?m.defaultPrevented:m.returnValue===!1;return P?this.isDefaultPrevented=Du:this.isDefaultPrevented=of,this.isPropagationStopped=of,this}return Ot(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=Du)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=Du)},persist:function(){},isPersistent:Du}),t}var xr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},yo=la(xr),wa=Ot({},xr,{view:0,detail:0}),Ba=la(wa),Kd,lf,Ms;function qb(e){e!==Ms&&(Ms&&e.type==="mousemove"?(Kd=e.screenX-Ms.screenX,lf=e.screenY-Ms.screenY):(Kd=0,lf=0),Ms=e)}var Vi=Ot({},wa,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Yn,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:(qb(e),Kd)},movementY:function(e){return"movementY"in e?e.movementY:lf}}),cv=la(Vi),fv=Ot({},Vi,{dataTransfer:0}),Ns=la(fv),dv=Ot({},wa,{relatedTarget:0}),Go=la(dv),by=Ot({},xr,{animationName:0,elapsedTime:0,pseudoElement:0}),wy=la(by),pv=Ot({},xr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Xd=la(pv),Gb=Ot({},xr,{data:0}),Sy=la(Gb),Cy=Sy,Ey={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Ds={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"};function Kb(e){if(e.key){var t=Ey[e.key]||e.key;if(t!=="Unidentified")return t}if(e.type==="keypress"){var o=Pl(e);return o===13?"Enter":String.fromCharCode(o)}return e.type==="keydown"||e.type==="keyup"?Ds[e.keyCode]||"Unidentified":""}var Au={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function _y(e){var t=this,o=t.nativeEvent;if(o.getModifierState)return o.getModifierState(e);var s=Au[e];return s?!!o[s]:!1}function Yn(e){return _y}var Xb=Ot({},wa,{key:Kb,code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Yn,charCode:function(e){return e.type==="keypress"?Pl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Pl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Ty=la(Xb),Qb=Ot({},Vi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ry=la(Qb),ky=Ot({},wa,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Yn}),My=la(ky),Jb=Ot({},xr,{propertyName:0,elapsedTime:0,pseudoElement:0}),_i=la(Jb),hv=Ot({},Vi,{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}),Zb=la(hv),$l=[9,13,27,32],sf=229,Ko=Ke&&"CompositionEvent"in window,Ul=null;Ke&&"documentMode"in document&&(Ul=document.documentMode);var vv=Ke&&"TextEvent"in window&&!Ul,Qd=Ke&&(!Ko||Ul&&Ul>8&&Ul<=11),Ny=32,Jd=String.fromCharCode(Ny);function ew(){Ne("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ne("onCompositionEnd",["compositionend","focusout","keydown","keypress","keyup","mousedown"]),Ne("onCompositionStart",["compositionstart","focusout","keydown","keypress","keyup","mousedown"]),Ne("onCompositionUpdate",["compositionupdate","focusout","keydown","keypress","keyup","mousedown"])}var mv=!1;function Dy(e){return(e.ctrlKey||e.altKey||e.metaKey)&&!(e.ctrlKey&&e.altKey)}function Zd(e){switch(e){case"compositionstart":return"onCompositionStart";case"compositionend":return"onCompositionEnd";case"compositionupdate":return"onCompositionUpdate"}}function ep(e,t){return e==="keydown"&&t.keyCode===sf}function gv(e,t){switch(e){case"keyup":return $l.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==sf;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function tp(e){var t=e.detail;return typeof t=="object"&&"data"in t?t.data:null}function Ay(e){return e.locale==="ko"}var As=!1;function yv(e,t,o,s,d){var m,b;if(Ko?m=Zd(t):As?gv(t,s)&&(m="onCompositionEnd"):ep(t,s)&&(m="onCompositionStart"),!m)return null;Qd&&!Ay(s)&&(!As&&m==="onCompositionStart"?As=jl(d):m==="onCompositionEnd"&&As&&(b=qo()));var T=Uy(o,m);if(T.length>0){var M=new Sy(m,t,null,s,d);if(e.push({event:M,listeners:T}),b)M.data=b;else{var P=tp(s);P!==null&&(M.data=P)}}}function np(e,t){switch(e){case"compositionend":return tp(t);case"keypress":var o=t.which;return o!==Ny?null:(mv=!0,Jd);case"textInput":var s=t.data;return s===Jd&&mv?null:s;default:return null}}function xv(e,t){if(As){if(e==="compositionend"||!Ko&&gv(e,t)){var o=qo();return Gd(),As=!1,o}return null}switch(e){case"paste":return null;case"keypress":if(!Dy(t)){if(t.char&&t.char.length>1)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Qd&&!Ay(t)?null:t.data;default:return null}}function rp(e,t,o,s,d){var m;if(vv?m=np(t,s):m=xv(t,s),!m)return null;var b=Uy(o,"onBeforeInput");if(b.length>0){var T=new Cy("onBeforeInput","beforeinput",null,s,d);e.push({event:T,listeners:b}),T.data=m}}function Oy(e,t,o,s,d,m,b){yv(e,t,o,s,d),rp(e,t,o,s,d)}var tw={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 uf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!tw[e.type]:t==="textarea"}/**
|
|
117
|
+
* Checks if an event is supported in the current execution environment.
|
|
118
|
+
*
|
|
119
|
+
* NOTE: This will not work correctly for non-generic events such as `change`,
|
|
120
|
+
* `reset`, `load`, `error`, and `select`.
|
|
121
|
+
*
|
|
122
|
+
* Borrows from Modernizr.
|
|
123
|
+
*
|
|
124
|
+
* @param {string} eventNameSuffix Event name, e.g. "click".
|
|
125
|
+
* @return {boolean} True if the event is supported.
|
|
126
|
+
* @internal
|
|
127
|
+
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
|
128
|
+
*/function nw(e){if(!Ke)return!1;var t="on"+e,o=t in document;if(!o){var s=document.createElement("div");s.setAttribute(t,"return;"),o=typeof s[t]=="function"}return o}function cf(){Ne("onChange",["change","click","focusin","focusout","input","keydown","keyup","selectionchange"])}function Ly(e,t,o,s){vu(s);var d=Uy(t,"onChange");if(d.length>0){var m=new yo("onChange","change",null,o,s);e.push({event:m,listeners:d})}}var Fl=null,r=null;function i(e){var t=e.nodeName&&e.nodeName.toLowerCase();return t==="select"||t==="input"&&e.type==="file"}function u(e){var t=[];Ly(t,r,e,Lh(e)),Wg(h,t)}function h(e){yR(e,0)}function y(e){var t=up(e);if(ao(t))return e}function C(e,t){if(e==="change")return t}var O=!1;Ke&&(O=nw("input")&&(!document.documentMode||document.documentMode>9));function W(e,t){Fl=e,r=t,Fl.attachEvent("onpropertychange",be)}function ee(){Fl&&(Fl.detachEvent("onpropertychange",be),Fl=null,r=null)}function be(e){e.propertyName==="value"&&y(r)&&u(e)}function je(e,t,o){e==="focusin"?(ee(),W(t,o)):e==="focusout"&&ee()}function Ue(e,t){if(e==="selectionchange"||e==="keyup"||e==="keydown")return y(r)}function ze(e){var t=e.nodeName;return t&&t.toLowerCase()==="input"&&(e.type==="checkbox"||e.type==="radio")}function rt(e,t){if(e==="click")return y(t)}function ct(e,t){if(e==="input"||e==="change")return y(t)}function pt(e){var t=e._wrapperState;!t||!t.controlled||e.type!=="number"||wt(e,"number",e.value)}function ur(e,t,o,s,d,m,b){var T=o?up(o):window,M,P;if(i(T)?M=C:uf(T)?O?M=ct:(M=Ue,P=je):ze(T)&&(M=rt),M){var F=M(t,o);if(F){Ly(e,F,s,d);return}}P&&P(t,T,o),t==="focusout"&&pt(T)}function pe(){Ve("onMouseEnter",["mouseout","mouseover"]),Ve("onMouseLeave",["mouseout","mouseover"]),Ve("onPointerEnter",["pointerout","pointerover"]),Ve("onPointerLeave",["pointerout","pointerover"])}function le(e,t,o,s,d,m,b){var T=t==="mouseover"||t==="pointerover",M=t==="mouseout"||t==="pointerout";if(T&&!_c(s)){var P=s.relatedTarget||s.fromElement;if(P&&(pf(P)||Ov(P)))return}if(!(!M&&!T)){var F;if(d.window===d)F=d;else{var se=d.ownerDocument;se?F=se.defaultView||se.parentWindow:F=window}var ae,ye;if(M){var we=s.relatedTarget||s.toElement;if(ae=o,ye=we?pf(we):null,ye!==null){var Ee=Ja(ye);(ye!==Ee||ye.tag!==N&&ye.tag!==D)&&(ye=null)}}else ae=null,ye=o;if(ae!==ye){var et=cv,St="onMouseLeave",mt="onMouseEnter",Qt="mouse";(t==="pointerout"||t==="pointerover")&&(et=Ry,St="onPointerLeave",mt="onPointerEnter",Qt="pointer");var Yt=ae==null?F:up(ae),ve=ye==null?F:up(ye),_e=new et(St,Qt+"leave",ae,s,d);_e.target=Yt,_e.relatedTarget=ve;var me=null,Fe=pf(d);if(Fe===o){var it=new et(mt,Qt+"enter",ye,s,d);it.target=ve,it.relatedTarget=Yt,me=it}oP(e,_e,me,ae,ye)}}}function ge(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Pe=typeof Object.is=="function"?Object.is:ge;function ft(e,t){if(Pe(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var o=Object.keys(e),s=Object.keys(t);if(o.length!==s.length)return!1;for(var d=0;d<o.length;d++){var m=o[d];if(!Ye.call(t,m)||!Pe(e[m],t[m]))return!1}return!0}function Ct(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function _t(e){for(;e;){if(e.nextSibling)return e.nextSibling;e=e.parentNode}}function At(e,t){for(var o=Ct(e),s=0,d=0;o;){if(o.nodeType===$o){if(d=s+o.textContent.length,s<=t&&d>=t)return{node:o,offset:t-s};s=d}o=Ct(_t(o))}}function zr(e){var t=e.ownerDocument,o=t&&t.defaultView||window,s=o.getSelection&&o.getSelection();if(!s||s.rangeCount===0)return null;var d=s.anchorNode,m=s.anchorOffset,b=s.focusNode,T=s.focusOffset;try{d.nodeType,b.nodeType}catch{return null}return dn(e,d,m,b,T)}function dn(e,t,o,s,d){var m=0,b=-1,T=-1,M=0,P=0,F=e,se=null;e:for(;;){for(var ae=null;F===t&&(o===0||F.nodeType===$o)&&(b=m+o),F===s&&(d===0||F.nodeType===$o)&&(T=m+d),F.nodeType===$o&&(m+=F.nodeValue.length),(ae=F.firstChild)!==null;)se=F,F=ae;for(;;){if(F===e)break e;if(se===t&&++M===o&&(b=m),se===s&&++P===d&&(T=m),(ae=F.nextSibling)!==null)break;F=se,se=F.parentNode}F=ae}return b===-1||T===-1?null:{start:b,end:T}}function Il(e,t){var o=e.ownerDocument||document,s=o&&o.defaultView||window;if(s.getSelection){var d=s.getSelection(),m=e.textContent.length,b=Math.min(t.start,m),T=t.end===void 0?b:Math.min(t.end,m);if(!d.extend&&b>T){var M=T;T=b,b=M}var P=At(e,b),F=At(e,T);if(P&&F){if(d.rangeCount===1&&d.anchorNode===P.node&&d.anchorOffset===P.offset&&d.focusNode===F.node&&d.focusOffset===F.offset)return;var se=o.createRange();se.setStart(P.node,P.offset),d.removeAllRanges(),b>T?(d.addRange(se),d.extend(F.node,F.offset)):(se.setEnd(F.node,F.offset),d.addRange(se))}}}function zy(e){return e&&e.nodeType===$o}function lR(e,t){return!e||!t?!1:e===t?!0:zy(e)?!1:zy(t)?lR(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1}function Bj(e){return e&&e.ownerDocument&&lR(e.ownerDocument.documentElement,e)}function Hj(e){try{return typeof e.contentWindow.location.href=="string"}catch{return!1}}function sR(){for(var e=window,t=vi();t instanceof e.HTMLIFrameElement;){if(Hj(t))e=t.contentWindow;else return t;t=vi(e.document)}return t}function rw(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 Vj(){var e=sR();return{focusedElem:e,selectionRange:rw(e)?Wj(e):null}}function Yj(e){var t=sR(),o=e.focusedElem,s=e.selectionRange;if(t!==o&&Bj(o)){s!==null&&rw(o)&&qj(o,s);for(var d=[],m=o;m=m.parentNode;)m.nodeType===Aa&&d.push({element:m,left:m.scrollLeft,top:m.scrollTop});typeof o.focus=="function"&&o.focus();for(var b=0;b<d.length;b++){var T=d[b];T.element.scrollLeft=T.left,T.element.scrollTop=T.top}}}function Wj(e){var t;return"selectionStart"in e?t={start:e.selectionStart,end:e.selectionEnd}:t=zr(e),t||{start:0,end:0}}function qj(e,t){var o=t.start,s=t.end;s===void 0&&(s=o),"selectionStart"in e?(e.selectionStart=o,e.selectionEnd=Math.min(s,e.value.length)):Il(e,t)}var Gj=Ke&&"documentMode"in document&&document.documentMode<=11;function Kj(){Ne("onSelect",["focusout","contextmenu","dragend","focusin","keydown","keyup","mousedown","mouseup","selectionchange"])}var ap=null,aw=null,bv=null,iw=!1;function Xj(e){if("selectionStart"in e&&rw(e))return{start:e.selectionStart,end:e.selectionEnd};var t=e.ownerDocument&&e.ownerDocument.defaultView||window,o=t.getSelection();return{anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}}function Qj(e){return e.window===e?e.document:e.nodeType===Uo?e:e.ownerDocument}function uR(e,t,o){var s=Qj(o);if(!(iw||ap==null||ap!==vi(s))){var d=Xj(ap);if(!bv||!ft(bv,d)){bv=d;var m=Uy(aw,"onSelect");if(m.length>0){var b=new yo("onSelect","select",null,t,o);e.push({event:b,listeners:m}),b.target=ap}}}}function Jj(e,t,o,s,d,m,b){var T=o?up(o):window;switch(t){case"focusin":(uf(T)||T.contentEditable==="true")&&(ap=T,aw=o,bv=null);break;case"focusout":ap=null,aw=null,bv=null;break;case"mousedown":iw=!0;break;case"contextmenu":case"mouseup":case"dragend":iw=!1,uR(e,s,d);break;case"selectionchange":if(Gj)break;case"keydown":case"keyup":uR(e,s,d)}}function jy(e,t){var o={};return o[e.toLowerCase()]=t.toLowerCase(),o["Webkit"+e]="webkit"+t,o["Moz"+e]="moz"+t,o}var ip={animationend:jy("Animation","AnimationEnd"),animationiteration:jy("Animation","AnimationIteration"),animationstart:jy("Animation","AnimationStart"),transitionend:jy("Transition","TransitionEnd")},ow={},cR={};Ke&&(cR=document.createElement("div").style,"AnimationEvent"in window||(delete ip.animationend.animation,delete ip.animationiteration.animation,delete ip.animationstart.animation),"TransitionEvent"in window||delete ip.transitionend.transition);function Py(e){if(ow[e])return ow[e];if(!ip[e])return e;var t=ip[e];for(var o in t)if(t.hasOwnProperty(o)&&o in cR)return ow[e]=t[o];return e}var fR=Py("animationend"),dR=Py("animationiteration"),pR=Py("animationstart"),hR=Py("transitionend"),vR=new Map,mR=["abort","auxClick","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"];function Ou(e,t){vR.set(e,t),Ne(t,[e])}function Zj(){for(var e=0;e<mR.length;e++){var t=mR[e],o=t.toLowerCase(),s=t[0].toUpperCase()+t.slice(1);Ou(o,"on"+s)}Ou(fR,"onAnimationEnd"),Ou(dR,"onAnimationIteration"),Ou(pR,"onAnimationStart"),Ou("dblclick","onDoubleClick"),Ou("focusin","onFocus"),Ou("focusout","onBlur"),Ou(hR,"onTransitionEnd")}function eP(e,t,o,s,d,m,b){var T=vR.get(t);if(T!==void 0){var M=yo,P=t;switch(t){case"keypress":if(Pl(s)===0)return;case"keydown":case"keyup":M=Ty;break;case"focusin":P="focus",M=Go;break;case"focusout":P="blur",M=Go;break;case"beforeblur":case"afterblur":M=Go;break;case"click":if(s.button===2)return;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":M=cv;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":M=Ns;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":M=My;break;case fR:case dR:case pR:M=wy;break;case hR:M=_i;break;case"scroll":M=Ba;break;case"wheel":M=Zb;break;case"copy":case"cut":case"paste":M=Xd;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":M=Ry;break}var F=(m&mi)!==0;{var se=!F&&t==="scroll",ae=aP(o,T,s.type,F,se);if(ae.length>0){var ye=new M(T,P,null,s,d);e.push({event:ye,listeners:ae})}}}}Zj(),pe(),cf(),Kj(),ew();function tP(e,t,o,s,d,m,b){eP(e,t,o,s,d,m);var T=(m&Oh)===0;T&&(le(e,t,o,s,d),ur(e,t,o,s,d),Jj(e,t,o,s,d),Oy(e,t,o,s,d))}var wv=["abort","canplay","canplaythrough","durationchange","emptied","encrypted","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","resize","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"],lw=new Set(["cancel","close","invalid","load","scroll","toggle"].concat(wv));function gR(e,t,o){var s=e.type||"unknown-event";e.currentTarget=o,lo(s,t,void 0,e),e.currentTarget=null}function nP(e,t,o){var s;if(o)for(var d=t.length-1;d>=0;d--){var m=t[d],b=m.instance,T=m.currentTarget,M=m.listener;if(b!==s&&e.isPropagationStopped())return;gR(e,M,T),s=b}else for(var P=0;P<t.length;P++){var F=t[P],se=F.instance,ae=F.currentTarget,ye=F.listener;if(se!==s&&e.isPropagationStopped())return;gR(e,ye,ae),s=se}}function yR(e,t){for(var o=(t&mi)!==0,s=0;s<e.length;s++){var d=e[s],m=d.event,b=d.listeners;nP(m,b,o)}kc()}function rP(e,t,o,s,d){var m=Lh(o),b=[];tP(b,e,s,o,m,t),yR(b,t)}function Zn(e,t){lw.has(e)||p('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',e);var o=!1,s=O$(t),d=lP(e);s.has(d)||(xR(t,e,ad,o),s.add(d))}function sw(e,t,o){lw.has(e)&&!t&&p('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',e);var s=0;t&&(s|=mi),xR(o,e,s,t)}var $y="_reactListening"+Math.random().toString(36).slice(2);function Sv(e){if(!e[$y]){e[$y]=!0,$e.forEach(function(o){o!=="selectionchange"&&(lw.has(o)||sw(o,!1,e),sw(o,!0,e))});var t=e.nodeType===Uo?e:e.ownerDocument;t!==null&&(t[$y]||(t[$y]=!0,sw("selectionchange",!1,t)))}}function xR(e,t,o,s,d){var m=Hr(e,t,o),b=void 0;Rc&&(t==="touchstart"||t==="touchmove"||t==="wheel")&&(b=!0),e=e,s?b!==void 0?uv(e,t,m,b):Ia(e,t,m):b!==void 0?Mu(e,t,m,b):rf(e,t,m)}function bR(e,t){return e===t||e.nodeType===dr&&e.parentNode===t}function uw(e,t,o,s,d){var m=s;if((t&Ah)===0&&(t&ad)===0){var b=d;if(s!==null){var T=s;e:for(;;){if(T===null)return;var M=T.tag;if(M===w||M===_){var P=T.stateNode.containerInfo;if(bR(P,b))break;if(M===_)for(var F=T.return;F!==null;){var se=F.tag;if(se===w||se===_){var ae=F.stateNode.containerInfo;if(bR(ae,b))return}F=F.return}for(;P!==null;){var ye=pf(P);if(ye===null)return;var we=ye.tag;if(we===N||we===D){T=m=ye;continue e}P=P.parentNode}}T=T.return}}}Wg(function(){return rP(e,t,o,m)})}function Cv(e,t,o){return{instance:e,listener:t,currentTarget:o}}function aP(e,t,o,s,d,m){for(var b=t!==null?t+"Capture":null,T=s?b:t,M=[],P=e,F=null;P!==null;){var se=P,ae=se.stateNode,ye=se.tag;if(ye===N&&ae!==null&&(F=ae,T!==null)){var we=El(P,T);we!=null&&M.push(Cv(P,we,F))}if(d)break;P=P.return}return M}function Uy(e,t){for(var o=t+"Capture",s=[],d=e;d!==null;){var m=d,b=m.stateNode,T=m.tag;if(T===N&&b!==null){var M=b,P=El(d,o);P!=null&&s.unshift(Cv(d,P,M));var F=El(d,t);F!=null&&s.push(Cv(d,F,M))}d=d.return}return s}function op(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==N);return e||null}function iP(e,t){for(var o=e,s=t,d=0,m=o;m;m=op(m))d++;for(var b=0,T=s;T;T=op(T))b++;for(;d-b>0;)o=op(o),d--;for(;b-d>0;)s=op(s),b--;for(var M=d;M--;){if(o===s||s!==null&&o===s.alternate)return o;o=op(o),s=op(s)}return null}function wR(e,t,o,s,d){for(var m=t._reactName,b=[],T=o;T!==null&&T!==s;){var M=T,P=M.alternate,F=M.stateNode,se=M.tag;if(P!==null&&P===s)break;if(se===N&&F!==null){var ae=F;if(d){var ye=El(T,m);ye!=null&&b.unshift(Cv(T,ye,ae))}else if(!d){var we=El(T,m);we!=null&&b.push(Cv(T,we,ae))}}T=T.return}b.length!==0&&e.push({event:t,listeners:b})}function oP(e,t,o,s,d){var m=s&&d?iP(s,d):null;s!==null&&wR(e,t,s,m,!1),d!==null&&o!==null&&wR(e,o,d,m,!0)}function lP(e,t){return e+"__bubble"}var Ti=!1,Ev="dangerouslySetInnerHTML",Fy="suppressContentEditableWarning",Lu="suppressHydrationWarning",SR="autoFocus",ff="children",df="style",Iy="__html",cw,By,_v,CR,Hy,ER,_R;cw={dialog:!0,webview:!0},By=function(e,t){Mh(e,t),nd(e,t),Hg(e,t,{registrationNameDependencies:Ie,possibleRegistrationNames:Te})},ER=Ke&&!document.documentMode,_v=function(e,t,o){if(!Ti){var s=Vy(o),d=Vy(t);d!==s&&(Ti=!0,p("Prop `%s` did not match. Server: %s Client: %s",e,JSON.stringify(d),JSON.stringify(s)))}},CR=function(e){if(!Ti){Ti=!0;var t=[];e.forEach(function(o){t.push(o)}),p("Extra attributes from the server: %s",t)}},Hy=function(e,t){t===!1?p("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):p("Expected `%s` listener to be a function, instead got a value of `%s` type.",e,typeof t)},_R=function(e,t){var o=e.namespaceURI===Po?e.ownerDocument.createElement(e.tagName):e.ownerDocument.createElementNS(e.namespaceURI,e.tagName);return o.innerHTML=t,o.innerHTML};var sP=/\r\n?/g,uP=/\u0000|\uFFFD/g;function Vy(e){qt(e);var t=typeof e=="string"?e:""+e;return t.replace(sP,`
|
|
129
|
+
`).replace(uP,"")}function Yy(e,t,o,s){var d=Vy(t),m=Vy(e);if(m!==d&&(s&&(Ti||(Ti=!0,p('Text content did not match. Server: "%s" Client: "%s"',m,d))),o&&te))throw new Error("Text content does not match server-rendered HTML.")}function TR(e){return e.nodeType===Uo?e:e.ownerDocument}function cP(){}function Wy(e){e.onclick=cP}function fP(e,t,o,s,d){for(var m in s)if(s.hasOwnProperty(m)){var b=s[m];if(m===df)b&&Object.freeze(b),Pg(t,b);else if(m===Ev){var T=b?b[Iy]:void 0;T!=null&&_g(t,T)}else if(m===ff)if(typeof b=="string"){var M=e!=="textarea"||b!=="";M&&fu(t,b)}else typeof b=="number"&&fu(t,""+b);else m===Fy||m===Lu||m===SR||(Ie.hasOwnProperty(m)?b!=null&&(typeof b!="function"&&Hy(m,b),m==="onScroll"&&Zn("scroll",t)):b!=null&&fr(t,m,b,d))}}function dP(e,t,o,s){for(var d=0;d<t.length;d+=2){var m=t[d],b=t[d+1];m===df?Pg(e,b):m===Ev?_g(e,b):m===ff?fu(e,b):fr(e,m,b,s)}}function pP(e,t,o,s){var d,m=TR(o),b,T=s;if(T===Po&&(T=Sh(e)),T===Po){if(d=Sl(e,t),!d&&e!==e.toLowerCase()&&p("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",e),e==="script"){var M=m.createElement("div");M.innerHTML="<script><\/script>";var P=M.firstChild;b=M.removeChild(P)}else if(typeof t.is=="string")b=m.createElement(e,{is:t.is});else if(b=m.createElement(e),e==="select"){var F=b;t.multiple?F.multiple=!0:t.size&&(F.size=t.size)}}else b=m.createElementNS(T,e);return T===Po&&!d&&Object.prototype.toString.call(b)==="[object HTMLUnknownElement]"&&!Ye.call(cw,e)&&(cw[e]=!0,p("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",e)),b}function hP(e,t){return TR(t).createTextNode(e)}function vP(e,t,o,s){var d=Sl(t,o);By(t,o);var m;switch(t){case"dialog":Zn("cancel",e),Zn("close",e),m=o;break;case"iframe":case"object":case"embed":Zn("load",e),m=o;break;case"video":case"audio":for(var b=0;b<wv.length;b++)Zn(wv[b],e);m=o;break;case"source":Zn("error",e),m=o;break;case"img":case"image":case"link":Zn("error",e),Zn("load",e),m=o;break;case"details":Zn("toggle",e),m=o;break;case"input":$i(e,o),m=cu(e,o),Zn("invalid",e);break;case"option":nn(e,o),m=o;break;case"select":os(e,o),m=yc(e,o),Zn("invalid",e);break;case"textarea":xh(e,o),m=yh(e,o),Zn("invalid",e);break;default:m=o}switch(ed(t,m),fP(t,e,s,m,d),t){case"input":Pi(e),xe(e,o,!1);break;case"textarea":Pi(e),Cg(e);break;case"option":Ln(e,o);break;case"select":mh(e,o);break;default:typeof m.onClick=="function"&&Wy(e);break}}function mP(e,t,o,s,d){By(t,s);var m=null,b,T;switch(t){case"input":b=cu(e,o),T=cu(e,s),m=[];break;case"select":b=yc(e,o),T=yc(e,s),m=[];break;case"textarea":b=yh(e,o),T=yh(e,s),m=[];break;default:b=o,T=s,typeof b.onClick!="function"&&typeof T.onClick=="function"&&Wy(e);break}ed(t,T);var M,P,F=null;for(M in b)if(!(T.hasOwnProperty(M)||!b.hasOwnProperty(M)||b[M]==null))if(M===df){var se=b[M];for(P in se)se.hasOwnProperty(P)&&(F||(F={}),F[P]="")}else M===Ev||M===ff||M===Fy||M===Lu||M===SR||(Ie.hasOwnProperty(M)?m||(m=[]):(m=m||[]).push(M,null));for(M in T){var ae=T[M],ye=b!=null?b[M]:void 0;if(!(!T.hasOwnProperty(M)||ae===ye||ae==null&&ye==null))if(M===df)if(ae&&Object.freeze(ae),ye){for(P in ye)ye.hasOwnProperty(P)&&(!ae||!ae.hasOwnProperty(P))&&(F||(F={}),F[P]="");for(P in ae)ae.hasOwnProperty(P)&&ye[P]!==ae[P]&&(F||(F={}),F[P]=ae[P])}else F||(m||(m=[]),m.push(M,F)),F=ae;else if(M===Ev){var we=ae?ae[Iy]:void 0,Ee=ye?ye[Iy]:void 0;we!=null&&Ee!==we&&(m=m||[]).push(M,we)}else M===ff?(typeof ae=="string"||typeof ae=="number")&&(m=m||[]).push(M,""+ae):M===Fy||M===Lu||(Ie.hasOwnProperty(M)?(ae!=null&&(typeof ae!="function"&&Hy(M,ae),M==="onScroll"&&Zn("scroll",e)),!m&&ye!==ae&&(m=[])):(m=m||[]).push(M,ae))}return F&&(Pb(F,T[df]),(m=m||[]).push(df,F)),m}function gP(e,t,o,s,d){o==="input"&&d.type==="radio"&&d.name!=null&&A(e,d);var m=Sl(o,s),b=Sl(o,d);switch(dP(e,t,m,b),o){case"input":X(e,d);break;case"textarea":Sg(e,d);break;case"select":Qf(e,d);break}}function yP(e){{var t=e.toLowerCase();return Cc.hasOwnProperty(t)&&Cc[t]||null}}function xP(e,t,o,s,d,m,b){var T,M;switch(T=Sl(t,o),By(t,o),t){case"dialog":Zn("cancel",e),Zn("close",e);break;case"iframe":case"object":case"embed":Zn("load",e);break;case"video":case"audio":for(var P=0;P<wv.length;P++)Zn(wv[P],e);break;case"source":Zn("error",e);break;case"img":case"image":case"link":Zn("error",e),Zn("load",e);break;case"details":Zn("toggle",e);break;case"input":$i(e,o),Zn("invalid",e);break;case"option":nn(e,o);break;case"select":os(e,o),Zn("invalid",e);break;case"textarea":xh(e,o),Zn("invalid",e);break}ed(t,o);{M=new Set;for(var F=e.attributes,se=0;se<F.length;se++){var ae=F[se].name.toLowerCase();switch(ae){case"value":break;case"checked":break;case"selected":break;default:M.add(F[se].name)}}}var ye=null;for(var we in o)if(o.hasOwnProperty(we)){var Ee=o[we];if(we===ff)typeof Ee=="string"?e.textContent!==Ee&&(o[Lu]!==!0&&Yy(e.textContent,Ee,m,b),ye=[ff,Ee]):typeof Ee=="number"&&e.textContent!==""+Ee&&(o[Lu]!==!0&&Yy(e.textContent,Ee,m,b),ye=[ff,""+Ee]);else if(Ie.hasOwnProperty(we))Ee!=null&&(typeof Ee!="function"&&Hy(we,Ee),we==="onScroll"&&Zn("scroll",e));else if(b&&typeof T=="boolean"){var et=void 0,St=Zt(we);if(o[Lu]!==!0){if(!(we===Fy||we===Lu||we==="value"||we==="checked"||we==="selected")){if(we===Ev){var mt=e.innerHTML,Qt=Ee?Ee[Iy]:void 0;if(Qt!=null){var Yt=_R(e,Qt);Yt!==mt&&_v(we,mt,Yt)}}else if(we===df){if(M.delete(we),ER){var ve=zb(Ee);et=e.getAttribute("style"),ve!==et&&_v(we,et,ve)}}else if(T&&!B)M.delete(we.toLowerCase()),et=di(e,we,Ee),Ee!==et&&_v(we,et,Ee);else if(!Mn(we,St,T)&&!An(we,Ee,St,T)){var _e=!1;if(St!==null)M.delete(St.attributeName),et=Pn(e,we,Ee,St);else{var me=s;if(me===Po&&(me=Sh(t)),me===Po)M.delete(we.toLowerCase());else{var Fe=yP(we);Fe!==null&&Fe!==we&&(_e=!0,M.delete(Fe)),M.delete(we)}et=di(e,we,Ee)}var it=B;!it&&Ee!==et&&!_e&&_v(we,et,Ee)}}}}}switch(b&&M.size>0&&o[Lu]!==!0&&CR(M),t){case"input":Pi(e),xe(e,o,!0);break;case"textarea":Pi(e),Cg(e);break;case"select":case"option":break;default:typeof o.onClick=="function"&&Wy(e);break}return ye}function bP(e,t,o){var s=e.nodeValue!==t;return s}function fw(e,t){{if(Ti)return;Ti=!0,p("Did not expect server HTML to contain a <%s> in <%s>.",t.nodeName.toLowerCase(),e.nodeName.toLowerCase())}}function dw(e,t){{if(Ti)return;Ti=!0,p('Did not expect server HTML to contain the text node "%s" in <%s>.',t.nodeValue,e.nodeName.toLowerCase())}}function pw(e,t,o){{if(Ti)return;Ti=!0,p("Expected server HTML to contain a matching <%s> in <%s>.",t,e.nodeName.toLowerCase())}}function hw(e,t){{if(t===""||Ti)return;Ti=!0,p('Expected server HTML to contain a matching text node for "%s" in <%s>.',t,e.nodeName.toLowerCase())}}function wP(e,t,o){switch(t){case"input":Ce(e,o);return;case"textarea":Db(e,o);return;case"select":gh(e,o);return}}var Tv=function(){},Rv=function(){};{var SP=["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"],RR=["applet","caption","html","table","td","th","marquee","object","template","foreignObject","desc","title"],CP=RR.concat(["button"]),EP=["dd","dt","li","option","optgroup","p","rp","rt"],kR={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null};Rv=function(e,t){var o=Ot({},e||kR),s={tag:t};return RR.indexOf(t)!==-1&&(o.aTagInScope=null,o.buttonTagInScope=null,o.nobrTagInScope=null),CP.indexOf(t)!==-1&&(o.pTagInButtonScope=null),SP.indexOf(t)!==-1&&t!=="address"&&t!=="div"&&t!=="p"&&(o.listItemTagAutoclosing=null,o.dlItemTagAutoclosing=null),o.current=s,t==="form"&&(o.formTag=s),t==="a"&&(o.aTagInScope=s),t==="button"&&(o.buttonTagInScope=s),t==="nobr"&&(o.nobrTagInScope=s),t==="p"&&(o.pTagInButtonScope=s),t==="li"&&(o.listItemTagAutoclosing=s),(t==="dd"||t==="dt")&&(o.dlItemTagAutoclosing=s),o};var _P=function(e,t){switch(t){case"select":return e==="option"||e==="optgroup"||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":return e==="head"||e==="body"||e==="frameset";case"frameset":return e==="frame";case"#document":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 EP.indexOf(t)===-1;case"body":case"caption":case"col":case"colgroup":case"frameset":case"frame":case"head":case"html":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return t==null}return!0},TP=function(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},MR={};Tv=function(e,t,o){o=o||kR;var s=o.current,d=s&&s.tag;t!=null&&(e!=null&&p("validateDOMNesting: when childText is passed, childTag should be null"),e="#text");var m=_P(e,d)?null:s,b=m?null:TP(e,o),T=m||b;if(T){var M=T.tag,P=!!m+"|"+e+"|"+M;if(!MR[P]){MR[P]=!0;var F=e,se="";if(e==="#text"?/\S/.test(t)?F="Text nodes":(F="Whitespace text nodes",se=" Make sure you don't have any extra whitespace between tags on each line of your source code."):F="<"+e+">",m){var ae="";M==="table"&&e==="tr"&&(ae+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),p("validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s",F,M,se,ae)}else p("validateDOMNesting(...): %s cannot appear as a descendant of <%s>.",F,M)}}}}var qy="suppressHydrationWarning",Gy="$",Ky="/$",kv="$?",Mv="$!",RP="style",vw=null,mw=null;function kP(e){var t,o,s=e.nodeType;switch(s){case Uo:case Eh:{t=s===Uo?"#document":"#fragment";var d=e.documentElement;o=d?d.namespaceURI:Ch(null,"");break}default:{var m=s===dr?e.parentNode:e,b=m.namespaceURI||null;t=m.tagName,o=Ch(b,t);break}}{var T=t.toLowerCase(),M=Rv(null,T);return{namespace:o,ancestorInfo:M}}}function MP(e,t,o){{var s=e,d=Ch(s.namespace,t),m=Rv(s.ancestorInfo,t);return{namespace:d,ancestorInfo:m}}}function D8(e){return e}function NP(e){vw=yr(),mw=Vj();var t=null;return Tr(!1),t}function DP(e){Yj(mw),Tr(vw),vw=null,mw=null}function AP(e,t,o,s,d){var m;{var b=s;if(Tv(e,null,b.ancestorInfo),typeof t.children=="string"||typeof t.children=="number"){var T=""+t.children,M=Rv(b.ancestorInfo,e);Tv(null,T,M)}m=b.namespace}var P=pP(e,t,o,m);return Av(d,P),Ew(P,t),P}function OP(e,t){e.appendChild(t)}function LP(e,t,o,s,d){switch(vP(e,t,o,s),t){case"button":case"input":case"select":case"textarea":return!!o.autoFocus;case"img":return!0;default:return!1}}function zP(e,t,o,s,d,m){{var b=m;if(typeof s.children!=typeof o.children&&(typeof s.children=="string"||typeof s.children=="number")){var T=""+s.children,M=Rv(b.ancestorInfo,t);Tv(null,T,M)}}return mP(e,t,o,s)}function gw(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}function jP(e,t,o,s){{var d=o;Tv(null,e,d.ancestorInfo)}var m=hP(e,t);return Av(s,m),m}function PP(){var e=window.event;return e===void 0?Si:qd(e.type)}var yw=typeof setTimeout=="function"?setTimeout:void 0,$P=typeof clearTimeout=="function"?clearTimeout:void 0,xw=-1,NR=typeof Promise=="function"?Promise:void 0,UP=typeof queueMicrotask=="function"?queueMicrotask:typeof NR<"u"?function(e){return NR.resolve(null).then(e).catch(FP)}:yw;function FP(e){setTimeout(function(){throw e})}function IP(e,t,o,s){switch(t){case"button":case"input":case"select":case"textarea":o.autoFocus&&e.focus();return;case"img":{o.src&&(e.src=o.src);return}}}function BP(e,t,o,s,d,m){gP(e,t,o,s,d),Ew(e,d)}function DR(e){fu(e,"")}function HP(e,t,o){e.nodeValue=o}function VP(e,t){e.appendChild(t)}function YP(e,t){var o;e.nodeType===dr?(o=e.parentNode,o.insertBefore(t,e)):(o=e,o.appendChild(t));var s=e._reactRootContainer;s==null&&o.onclick===null&&Wy(o)}function WP(e,t,o){e.insertBefore(t,o)}function qP(e,t,o){e.nodeType===dr?e.parentNode.insertBefore(t,o):e.insertBefore(t,o)}function GP(e,t){e.removeChild(t)}function KP(e,t){e.nodeType===dr?e.parentNode.removeChild(t):e.removeChild(t)}function bw(e,t){var o=t,s=0;do{var d=o.nextSibling;if(e.removeChild(o),d&&d.nodeType===dr){var m=d.data;if(m===Ky)if(s===0){e.removeChild(d),Rs(t);return}else s--;else(m===Gy||m===kv||m===Mv)&&s++}o=d}while(o);Rs(t)}function XP(e,t){e.nodeType===dr?bw(e.parentNode,t):e.nodeType===Aa&&bw(e,t),Rs(e)}function QP(e){e=e;var t=e.style;typeof t.setProperty=="function"?t.setProperty("display","none","important"):t.display="none"}function JP(e){e.nodeValue=""}function ZP(e,t){e=e;var o=t[RP],s=o!=null&&o.hasOwnProperty("display")?o.display:null;e.style.display=Zf("display",s)}function e$(e,t){e.nodeValue=t}function t$(e){e.nodeType===Aa?e.textContent="":e.nodeType===Uo&&e.documentElement&&e.removeChild(e.documentElement)}function n$(e,t,o){return e.nodeType!==Aa||t.toLowerCase()!==e.nodeName.toLowerCase()?null:e}function r$(e,t){return t===""||e.nodeType!==$o?null:e}function a$(e){return e.nodeType!==dr?null:e}function AR(e){return e.data===kv}function ww(e){return e.data===Mv}function i$(e){var t=e.nextSibling&&e.nextSibling.dataset,o,s,d;return t&&(o=t.dgst,s=t.msg,d=t.stck),{message:s,digest:o,stack:d}}function o$(e,t){e._reactRetry=t}function Xy(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===Aa||t===$o)break;if(t===dr){var o=e.data;if(o===Gy||o===Mv||o===kv)break;if(o===Ky)return null}}return e}function Nv(e){return Xy(e.nextSibling)}function l$(e){return Xy(e.firstChild)}function s$(e){return Xy(e.firstChild)}function u$(e){return Xy(e.nextSibling)}function c$(e,t,o,s,d,m,b){Av(m,e),Ew(e,o);var T;{var M=d;T=M.namespace}var P=(m.mode&Bt)!==xt;return xP(e,t,o,T,s,P,b)}function f$(e,t,o,s){return Av(o,e),o.mode&Bt,bP(e,t)}function d$(e,t){Av(t,e)}function p$(e){for(var t=e.nextSibling,o=0;t;){if(t.nodeType===dr){var s=t.data;if(s===Ky){if(o===0)return Nv(t);o--}else(s===Gy||s===Mv||s===kv)&&o++}t=t.nextSibling}return null}function OR(e){for(var t=e.previousSibling,o=0;t;){if(t.nodeType===dr){var s=t.data;if(s===Gy||s===Mv||s===kv){if(o===0)return t;o--}else s===Ky&&o++}t=t.previousSibling}return null}function h$(e){Rs(e)}function v$(e){Rs(e)}function m$(e){return e!=="head"&&e!=="body"}function g$(e,t,o,s){var d=!0;Yy(t.nodeValue,o,s,d)}function y$(e,t,o,s,d,m){if(t[qy]!==!0){var b=!0;Yy(s.nodeValue,d,m,b)}}function x$(e,t){t.nodeType===Aa?fw(e,t):t.nodeType===dr||dw(e,t)}function b$(e,t){{var o=e.parentNode;o!==null&&(t.nodeType===Aa?fw(o,t):t.nodeType===dr||dw(o,t))}}function w$(e,t,o,s,d){(d||t[qy]!==!0)&&(s.nodeType===Aa?fw(o,s):s.nodeType===dr||dw(o,s))}function S$(e,t,o){pw(e,t)}function C$(e,t){hw(e,t)}function E$(e,t,o){{var s=e.parentNode;s!==null&&pw(s,t)}}function _$(e,t){{var o=e.parentNode;o!==null&&hw(o,t)}}function T$(e,t,o,s,d,m){(m||t[qy]!==!0)&&pw(o,s)}function R$(e,t,o,s,d){(d||t[qy]!==!0)&&hw(o,s)}function k$(e){p("An error occurred during hydration. The server HTML was replaced with client content in <%s>.",e.nodeName.toLowerCase())}function M$(e){Sv(e)}var lp=Math.random().toString(36).slice(2),sp="__reactFiber$"+lp,Sw="__reactProps$"+lp,Dv="__reactContainer$"+lp,Cw="__reactEvents$"+lp,N$="__reactListeners$"+lp,D$="__reactHandles$"+lp;function A$(e){delete e[sp],delete e[Sw],delete e[Cw],delete e[N$],delete e[D$]}function Av(e,t){t[sp]=e}function Qy(e,t){t[Dv]=e}function LR(e){e[Dv]=null}function Ov(e){return!!e[Dv]}function pf(e){var t=e[sp];if(t)return t;for(var o=e.parentNode;o;){if(t=o[Dv]||o[sp],t){var s=t.alternate;if(t.child!==null||s!==null&&s.child!==null)for(var d=OR(e);d!==null;){var m=d[sp];if(m)return m;d=OR(d)}return t}e=o,o=e.parentNode}return null}function zu(e){var t=e[sp]||e[Dv];return t&&(t.tag===N||t.tag===D||t.tag===H||t.tag===w)?t:null}function up(e){if(e.tag===N||e.tag===D)return e.stateNode;throw new Error("getNodeFromInstance: Invalid argument.")}function Jy(e){return e[Sw]||null}function Ew(e,t){e[Sw]=t}function O$(e){var t=e[Cw];return t===void 0&&(t=e[Cw]=new Set),t}var zR={},jR=l.ReactDebugCurrentFrame;function Zy(e){if(e){var t=e._owner,o=ji(e.type,e._source,t?t.type:null);jR.setExtraStackFrame(o)}else jR.setExtraStackFrame(null)}function Xo(e,t,o,s,d){{var m=Function.call.bind(Ye);for(var b in e)if(m(e,b)){var T=void 0;try{if(typeof e[b]!="function"){var M=Error((s||"React class")+": "+o+" type `"+b+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[b]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw M.name="Invariant Violation",M}T=e[b](t,b,s,o,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(P){T=P}T&&!(T instanceof Error)&&(Zy(d),p("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",s||"React class",o,b,typeof T),Zy(null)),T instanceof Error&&!(T.message in zR)&&(zR[T.message]=!0,Zy(d),p("Failed %s type: %s",o,T.message),Zy(null))}}}var _w=[],e0;e0=[];var Os=-1;function ju(e){return{current:e}}function Ha(e,t){if(Os<0){p("Unexpected pop.");return}t!==e0[Os]&&p("Unexpected Fiber popped."),e.current=_w[Os],_w[Os]=null,e0[Os]=null,Os--}function Va(e,t,o){Os++,_w[Os]=e.current,e0[Os]=o,e.current=t}var Tw;Tw={};var Yi={};Object.freeze(Yi);var Ls=ju(Yi),Bl=ju(!1),Rw=Yi;function cp(e,t,o){return o&&Hl(t)?Rw:Ls.current}function PR(e,t,o){{var s=e.stateNode;s.__reactInternalMemoizedUnmaskedChildContext=t,s.__reactInternalMemoizedMaskedChildContext=o}}function fp(e,t){{var o=e.type,s=o.contextTypes;if(!s)return Yi;var d=e.stateNode;if(d&&d.__reactInternalMemoizedUnmaskedChildContext===t)return d.__reactInternalMemoizedMaskedChildContext;var m={};for(var b in s)m[b]=t[b];{var T=Lt(e)||"Unknown";Xo(s,m,"context",T)}return d&&PR(e,t,m),m}}function t0(){return Bl.current}function Hl(e){{var t=e.childContextTypes;return t!=null}}function n0(e){Ha(Bl,e),Ha(Ls,e)}function kw(e){Ha(Bl,e),Ha(Ls,e)}function $R(e,t,o){{if(Ls.current!==Yi)throw new Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.");Va(Ls,t,e),Va(Bl,o,e)}}function UR(e,t,o){{var s=e.stateNode,d=t.childContextTypes;if(typeof s.getChildContext!="function"){{var m=Lt(e)||"Unknown";Tw[m]||(Tw[m]=!0,p("%s.childContextTypes is specified but there is no getChildContext() method on the instance. You can either define getChildContext() on %s or remove childContextTypes from it.",m,m))}return o}var b=s.getChildContext();for(var T in b)if(!(T in d))throw new Error((Lt(e)||"Unknown")+'.getChildContext(): key "'+T+'" is not defined in childContextTypes.');{var M=Lt(e)||"Unknown";Xo(d,b,"child context",M)}return Ot({},o,b)}}function r0(e){{var t=e.stateNode,o=t&&t.__reactInternalMemoizedMergedChildContext||Yi;return Rw=Ls.current,Va(Ls,o,e),Va(Bl,Bl.current,e),!0}}function FR(e,t,o){{var s=e.stateNode;if(!s)throw new Error("Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue.");if(o){var d=UR(e,t,Rw);s.__reactInternalMemoizedMergedChildContext=d,Ha(Bl,e),Ha(Ls,e),Va(Ls,d,e),Va(Bl,o,e)}else Ha(Bl,e),Va(Bl,o,e)}}function L$(e){{if(!ps(e)||e.tag!==S)throw new Error("Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue.");var t=e;do{switch(t.tag){case w:return t.stateNode.context;case S:{var o=t.type;if(Hl(o))return t.stateNode.__reactInternalMemoizedMergedChildContext;break}}t=t.return}while(t!==null);throw new Error("Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue.")}}var Pu=0,a0=1,zs=null,Mw=!1,Nw=!1;function IR(e){zs===null?zs=[e]:zs.push(e)}function z$(e){Mw=!0,IR(e)}function BR(){Mw&&$u()}function $u(){if(!Nw&&zs!==null){Nw=!0;var e=0,t=Ei();try{var o=!0,s=zs;for(gr(ya);e<s.length;e++){var d=s[e];do d=d(o);while(d!==null)}zs=null,Mw=!1}catch(m){throw zs!==null&&(zs=zs.slice(e+1)),jh(Dc,$u),m}finally{gr(t),Nw=!1}}return null}var dp=[],pp=0,i0=null,o0=0,xo=[],bo=0,hf=null,js=1,Ps="";function j$(e){return mf(),(e.flags&so)!==yt}function P$(e){return mf(),o0}function $$(){var e=Ps,t=js,o=t&~U$(t);return o.toString(32)+e}function vf(e,t){mf(),dp[pp++]=o0,dp[pp++]=i0,i0=e,o0=t}function HR(e,t,o){mf(),xo[bo++]=js,xo[bo++]=Ps,xo[bo++]=hf,hf=e;var s=js,d=Ps,m=l0(s)-1,b=s&~(1<<m),T=o+1,M=l0(t)+m;if(M>30){var P=m-m%5,F=(1<<P)-1,se=(b&F).toString(32),ae=b>>P,ye=m-P,we=l0(t)+ye,Ee=T<<ye,et=Ee|ae,St=se+d;js=1<<we|et,Ps=St}else{var mt=T<<m,Qt=mt|b,Yt=d;js=1<<M|Qt,Ps=Yt}}function Dw(e){mf();var t=e.return;if(t!==null){var o=1,s=0;vf(e,o),HR(e,o,s)}}function l0(e){return 32-vr(e)}function U$(e){return 1<<l0(e)-1}function Aw(e){for(;e===i0;)i0=dp[--pp],dp[pp]=null,o0=dp[--pp],dp[pp]=null;for(;e===hf;)hf=xo[--bo],xo[bo]=null,Ps=xo[--bo],xo[bo]=null,js=xo[--bo],xo[bo]=null}function F$(){return mf(),hf!==null?{id:js,overflow:Ps}:null}function I$(e,t){mf(),xo[bo++]=js,xo[bo++]=Ps,xo[bo++]=hf,js=t.id,Ps=t.overflow,hf=e}function mf(){Ca()||p("Expected to be hydrating. This is a bug in React. Please file an issue.")}var Sa=null,wo=null,Qo=!1,gf=!1,Uu=null;function B$(){Qo&&p("We should not be hydrating here. This is a bug in React. Please file a bug.")}function VR(){gf=!0}function H$(){return gf}function V$(e){var t=e.stateNode.containerInfo;return wo=s$(t),Sa=e,Qo=!0,Uu=null,gf=!1,!0}function Y$(e,t,o){return wo=u$(t),Sa=e,Qo=!0,Uu=null,gf=!1,o!==null&&I$(e,o),!0}function YR(e,t){switch(e.tag){case w:{x$(e.stateNode.containerInfo,t);break}case N:{var o=(e.mode&Bt)!==xt;w$(e.type,e.memoizedProps,e.stateNode,t,o);break}case H:{var s=e.memoizedState;s.dehydrated!==null&&b$(s.dehydrated,t);break}}}function WR(e,t){YR(e,t);var o=KI();o.stateNode=t,o.return=e;var s=e.deletions;s===null?(e.deletions=[o],e.flags|=gi):s.push(o)}function Ow(e,t){{if(gf)return;switch(e.tag){case w:{var o=e.stateNode.containerInfo;switch(t.tag){case N:var s=t.type;t.pendingProps,S$(o,s);break;case D:var d=t.pendingProps;C$(o,d);break}break}case N:{var m=e.type,b=e.memoizedProps,T=e.stateNode;switch(t.tag){case N:{var M=t.type,P=t.pendingProps,F=(e.mode&Bt)!==xt;T$(m,b,T,M,P,F);break}case D:{var se=t.pendingProps,ae=(e.mode&Bt)!==xt;R$(m,b,T,se,ae);break}}break}case H:{var ye=e.memoizedState,we=ye.dehydrated;if(we!==null)switch(t.tag){case N:var Ee=t.type;t.pendingProps,E$(we,Ee);break;case D:var et=t.pendingProps;_$(we,et);break}break}default:return}}}function qR(e,t){t.flags=t.flags&~La|Xn,Ow(e,t)}function GR(e,t){switch(e.tag){case N:{var o=e.type;e.pendingProps;var s=n$(t,o);return s!==null?(e.stateNode=s,Sa=e,wo=l$(s),!0):!1}case D:{var d=e.pendingProps,m=r$(t,d);return m!==null?(e.stateNode=m,Sa=e,wo=null,!0):!1}case H:{var b=a$(t);if(b!==null){var T={dehydrated:b,treeContext:F$(),retryLane:$a};e.memoizedState=T;var M=XI(b);return M.return=e,e.child=M,Sa=e,wo=null,!0}return!1}default:return!1}}function Lw(e){return(e.mode&Bt)!==xt&&(e.flags>)===yt}function zw(e){throw new Error("Hydration failed because the initial UI does not match what was rendered on the server.")}function jw(e){if(Qo){var t=wo;if(!t){Lw(e)&&(Ow(Sa,e),zw()),qR(Sa,e),Qo=!1,Sa=e;return}var o=t;if(!GR(e,t)){Lw(e)&&(Ow(Sa,e),zw()),t=Nv(o);var s=Sa;if(!t||!GR(e,t)){qR(Sa,e),Qo=!1,Sa=e;return}WR(s,o)}}}function W$(e,t,o){var s=e.stateNode,d=!gf,m=c$(s,e.type,e.memoizedProps,t,o,e,d);return e.updateQueue=m,m!==null}function q$(e){var t=e.stateNode,o=e.memoizedProps,s=f$(t,o,e);if(s){var d=Sa;if(d!==null)switch(d.tag){case w:{var m=d.stateNode.containerInfo,b=(d.mode&Bt)!==xt;g$(m,t,o,b);break}case N:{var T=d.type,M=d.memoizedProps,P=d.stateNode,F=(d.mode&Bt)!==xt;y$(T,M,P,t,o,F);break}}}return s}function G$(e){var t=e.memoizedState,o=t!==null?t.dehydrated:null;if(!o)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");d$(o,e)}function K$(e){var t=e.memoizedState,o=t!==null?t.dehydrated:null;if(!o)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");return p$(o)}function KR(e){for(var t=e.return;t!==null&&t.tag!==N&&t.tag!==w&&t.tag!==H;)t=t.return;Sa=t}function s0(e){if(e!==Sa)return!1;if(!Qo)return KR(e),Qo=!0,!1;if(e.tag!==w&&(e.tag!==N||m$(e.type)&&!gw(e.type,e.memoizedProps))){var t=wo;if(t)if(Lw(e))XR(e),zw();else for(;t;)WR(e,t),t=Nv(t)}return KR(e),e.tag===H?wo=K$(e):wo=Sa?Nv(e.stateNode):null,!0}function X$(){return Qo&&wo!==null}function XR(e){for(var t=wo;t;)YR(e,t),t=Nv(t)}function hp(){Sa=null,wo=null,Qo=!1,gf=!1}function QR(){Uu!==null&&(V2(Uu),Uu=null)}function Ca(){return Qo}function Pw(e){Uu===null?Uu=[e]:Uu.push(e)}var Q$=l.ReactCurrentBatchConfig,J$=null;function Z$(){return Q$.transition}var Jo={recordUnsafeLifecycleWarnings:function(e,t){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(e,t){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}};{var eU=function(e){for(var t=null,o=e;o!==null;)o.mode&_n&&(t=o),o=o.return;return t},yf=function(e){var t=[];return e.forEach(function(o){t.push(o)}),t.sort().join(", ")},Lv=[],zv=[],jv=[],Pv=[],$v=[],Uv=[],xf=new Set;Jo.recordUnsafeLifecycleWarnings=function(e,t){xf.has(e.type)||(typeof t.componentWillMount=="function"&&t.componentWillMount.__suppressDeprecationWarning!==!0&&Lv.push(e),e.mode&_n&&typeof t.UNSAFE_componentWillMount=="function"&&zv.push(e),typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&jv.push(e),e.mode&_n&&typeof t.UNSAFE_componentWillReceiveProps=="function"&&Pv.push(e),typeof t.componentWillUpdate=="function"&&t.componentWillUpdate.__suppressDeprecationWarning!==!0&&$v.push(e),e.mode&_n&&typeof t.UNSAFE_componentWillUpdate=="function"&&Uv.push(e))},Jo.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;Lv.length>0&&(Lv.forEach(function(ae){e.add(Lt(ae)||"Component"),xf.add(ae.type)}),Lv=[]);var t=new Set;zv.length>0&&(zv.forEach(function(ae){t.add(Lt(ae)||"Component"),xf.add(ae.type)}),zv=[]);var o=new Set;jv.length>0&&(jv.forEach(function(ae){o.add(Lt(ae)||"Component"),xf.add(ae.type)}),jv=[]);var s=new Set;Pv.length>0&&(Pv.forEach(function(ae){s.add(Lt(ae)||"Component"),xf.add(ae.type)}),Pv=[]);var d=new Set;$v.length>0&&($v.forEach(function(ae){d.add(Lt(ae)||"Component"),xf.add(ae.type)}),$v=[]);var m=new Set;if(Uv.length>0&&(Uv.forEach(function(ae){m.add(Lt(ae)||"Component"),xf.add(ae.type)}),Uv=[]),t.size>0){var b=yf(t);p(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
|
|
130
|
+
|
|
131
|
+
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
132
|
+
|
|
133
|
+
Please update the following components: %s`,b)}if(s.size>0){var T=yf(s);p(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
|
|
134
|
+
|
|
135
|
+
* Move data fetching code or side effects to componentDidUpdate.
|
|
136
|
+
* 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://reactjs.org/link/derived-state
|
|
137
|
+
|
|
138
|
+
Please update the following components: %s`,T)}if(m.size>0){var M=yf(m);p(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
|
|
139
|
+
|
|
140
|
+
* Move data fetching code or side effects to componentDidUpdate.
|
|
141
|
+
|
|
142
|
+
Please update the following components: %s`,M)}if(e.size>0){var P=yf(e);v(`componentWillMount has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
|
|
143
|
+
|
|
144
|
+
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
145
|
+
* 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.
|
|
146
|
+
|
|
147
|
+
Please update the following components: %s`,P)}if(o.size>0){var F=yf(o);v(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
|
|
148
|
+
|
|
149
|
+
* Move data fetching code or side effects to componentDidUpdate.
|
|
150
|
+
* 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://reactjs.org/link/derived-state
|
|
151
|
+
* 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.
|
|
152
|
+
|
|
153
|
+
Please update the following components: %s`,F)}if(d.size>0){var se=yf(d);v(`componentWillUpdate has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
|
|
154
|
+
|
|
155
|
+
* Move data fetching code or side effects to componentDidUpdate.
|
|
156
|
+
* 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.
|
|
157
|
+
|
|
158
|
+
Please update the following components: %s`,se)}};var u0=new Map,JR=new Set;Jo.recordLegacyContextWarning=function(e,t){var o=eU(e);if(o===null){p("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.");return}if(!JR.has(e.type)){var s=u0.get(o);(e.type.contextTypes!=null||e.type.childContextTypes!=null||t!==null&&typeof t.getChildContext=="function")&&(s===void 0&&(s=[],u0.set(o,s)),s.push(e))}},Jo.flushLegacyContextWarning=function(){u0.forEach(function(e,t){if(e.length!==0){var o=e[0],s=new Set;e.forEach(function(m){s.add(Lt(m)||"Component"),JR.add(m.type)});var d=yf(s);try{Sn(o),p(`Legacy context API has been detected within a strict-mode tree.
|
|
159
|
+
|
|
160
|
+
The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
|
|
161
|
+
|
|
162
|
+
Please update the following components: %s
|
|
163
|
+
|
|
164
|
+
Learn more about this warning here: https://reactjs.org/link/legacy-context`,d)}finally{Fn()}}})},Jo.discardPendingWarnings=function(){Lv=[],zv=[],jv=[],Pv=[],$v=[],Uv=[],u0=new Map}}var $w,Uw,Fw,Iw,Bw,ZR=function(e,t){};$w=!1,Uw=!1,Fw={},Iw={},Bw={},ZR=function(e,t){if(!(e===null||typeof e!="object")&&!(!e._store||e._store.validated||e.key!=null)){if(typeof e._store!="object")throw new Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");e._store.validated=!0;var o=Lt(t)||"Component";Iw[o]||(Iw[o]=!0,p('Each child in a list should have a unique "key" prop. See https://reactjs.org/link/warning-keys for more information.'))}};function tU(e){return e.prototype&&e.prototype.isReactComponent}function Fv(e,t,o){var s=o.ref;if(s!==null&&typeof s!="function"&&typeof s!="object"){if((e.mode&_n||K)&&!(o._owner&&o._self&&o._owner.stateNode!==o._self)&&!(o._owner&&o._owner.tag!==S)&&!(typeof o.type=="function"&&!tU(o.type))&&o._owner){var d=Lt(e)||"Component";Fw[d]||(p('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. We recommend using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',d,s),Fw[d]=!0)}if(o._owner){var m=o._owner,b;if(m){var T=m;if(T.tag!==S)throw new Error("Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref");b=T.stateNode}if(!b)throw new Error("Missing owner for string ref "+s+". This error is likely caused by a bug in React. Please file an issue.");var M=b;nr(s,"ref");var P=""+s;if(t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===P)return t.ref;var F=function(se){var ae=M.refs;se===null?delete ae[P]:ae[P]=se};return F._stringRef=P,F}else{if(typeof s!="string")throw new Error("Expected ref to be a function, a string, an object returned by React.createRef(), or null.");if(!o._owner)throw new Error("Element ref was specified as a string ("+s+`) but no owner was set. This could happen for one of the following reasons:
|
|
165
|
+
1. You may be adding a ref to a function component
|
|
166
|
+
2. You may be adding a ref to a component that was not created inside a component's render method
|
|
167
|
+
3. You have multiple copies of React loaded
|
|
168
|
+
See https://reactjs.org/link/refs-must-have-owner for more information.`)}}return s}function c0(e,t){var o=Object.prototype.toString.call(t);throw new Error("Objects are not valid as a React child (found: "+(o==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":o)+"). If you meant to render a collection of children, use an array instead.")}function f0(e){{var t=Lt(e)||"Component";if(Bw[t])return;Bw[t]=!0,p("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.")}}function ek(e){var t=e._payload,o=e._init;return o(t)}function tk(e){function t(ve,_e){if(e){var me=ve.deletions;me===null?(ve.deletions=[_e],ve.flags|=gi):me.push(_e)}}function o(ve,_e){if(!e)return null;for(var me=_e;me!==null;)t(ve,me),me=me.sibling;return null}function s(ve,_e){for(var me=new Map,Fe=_e;Fe!==null;)Fe.key!==null?me.set(Fe.key,Fe):me.set(Fe.index,Fe),Fe=Fe.sibling;return me}function d(ve,_e){var me=kf(ve,_e);return me.index=0,me.sibling=null,me}function m(ve,_e,me){if(ve.index=me,!e)return ve.flags|=so,_e;var Fe=ve.alternate;if(Fe!==null){var it=Fe.index;return it<_e?(ve.flags|=Xn,_e):it}else return ve.flags|=Xn,_e}function b(ve){return e&&ve.alternate===null&&(ve.flags|=Xn),ve}function T(ve,_e,me,Fe){if(_e===null||_e.tag!==D){var it=P1(me,ve.mode,Fe);return it.return=ve,it}else{var tt=d(_e,me);return tt.return=ve,tt}}function M(ve,_e,me,Fe){var it=me.type;if(it===ca)return F(ve,_e,me.props.children,Fe,me.key);if(_e!==null&&(_e.elementType===it||oM(_e,me)||typeof it=="object"&&it!==null&&it.$$typeof===Rt&&ek(it)===_e.type)){var tt=d(_e,me.props);return tt.ref=Fv(ve,_e,me),tt.return=ve,tt._debugSource=me._source,tt._debugOwner=me._owner,tt}var Dt=j1(me,ve.mode,Fe);return Dt.ref=Fv(ve,_e,me),Dt.return=ve,Dt}function P(ve,_e,me,Fe){if(_e===null||_e.tag!==_||_e.stateNode.containerInfo!==me.containerInfo||_e.stateNode.implementation!==me.implementation){var it=$1(me,ve.mode,Fe);return it.return=ve,it}else{var tt=d(_e,me.children||[]);return tt.return=ve,tt}}function F(ve,_e,me,Fe,it){if(_e===null||_e.tag!==R){var tt=Xu(me,ve.mode,Fe,it);return tt.return=ve,tt}else{var Dt=d(_e,me);return Dt.return=ve,Dt}}function se(ve,_e,me){if(typeof _e=="string"&&_e!==""||typeof _e=="number"){var Fe=P1(""+_e,ve.mode,me);return Fe.return=ve,Fe}if(typeof _e=="object"&&_e!==null){switch(_e.$$typeof){case wr:{var it=j1(_e,ve.mode,me);return it.ref=Fv(ve,null,_e),it.return=ve,it}case Gn:{var tt=$1(_e,ve.mode,me);return tt.return=ve,tt}case Rt:{var Dt=_e._payload,jt=_e._init;return se(ve,jt(Dt),me)}}if(Ft(_e)||kt(_e)){var Rn=Xu(_e,ve.mode,me,null);return Rn.return=ve,Rn}c0(ve,_e)}return typeof _e=="function"&&f0(ve),null}function ae(ve,_e,me,Fe){var it=_e!==null?_e.key:null;if(typeof me=="string"&&me!==""||typeof me=="number")return it!==null?null:T(ve,_e,""+me,Fe);if(typeof me=="object"&&me!==null){switch(me.$$typeof){case wr:return me.key===it?M(ve,_e,me,Fe):null;case Gn:return me.key===it?P(ve,_e,me,Fe):null;case Rt:{var tt=me._payload,Dt=me._init;return ae(ve,_e,Dt(tt),Fe)}}if(Ft(me)||kt(me))return it!==null?null:F(ve,_e,me,Fe,null);c0(ve,me)}return typeof me=="function"&&f0(ve),null}function ye(ve,_e,me,Fe,it){if(typeof Fe=="string"&&Fe!==""||typeof Fe=="number"){var tt=ve.get(me)||null;return T(_e,tt,""+Fe,it)}if(typeof Fe=="object"&&Fe!==null){switch(Fe.$$typeof){case wr:{var Dt=ve.get(Fe.key===null?me:Fe.key)||null;return M(_e,Dt,Fe,it)}case Gn:{var jt=ve.get(Fe.key===null?me:Fe.key)||null;return P(_e,jt,Fe,it)}case Rt:var Rn=Fe._payload,pn=Fe._init;return ye(ve,_e,me,pn(Rn),it)}if(Ft(Fe)||kt(Fe)){var Rr=ve.get(me)||null;return F(_e,Rr,Fe,it,null)}c0(_e,Fe)}return typeof Fe=="function"&&f0(_e),null}function we(ve,_e,me){{if(typeof ve!="object"||ve===null)return _e;switch(ve.$$typeof){case wr:case Gn:ZR(ve,me);var Fe=ve.key;if(typeof Fe!="string")break;if(_e===null){_e=new Set,_e.add(Fe);break}if(!_e.has(Fe)){_e.add(Fe);break}p("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.",Fe);break;case Rt:var it=ve._payload,tt=ve._init;we(tt(it),_e,me);break}}return _e}function Ee(ve,_e,me,Fe){for(var it=null,tt=0;tt<me.length;tt++){var Dt=me[tt];it=we(Dt,it,ve)}for(var jt=null,Rn=null,pn=_e,Rr=0,hn=0,br=null;pn!==null&&hn<me.length;hn++){pn.index>hn?(br=pn,pn=null):br=pn.sibling;var Wa=ae(ve,pn,me[hn],Fe);if(Wa===null){pn===null&&(pn=br);break}e&&pn&&Wa.alternate===null&&t(ve,pn),Rr=m(Wa,Rr,hn),Rn===null?jt=Wa:Rn.sibling=Wa,Rn=Wa,pn=br}if(hn===me.length){if(o(ve,pn),Ca()){var Na=hn;vf(ve,Na)}return jt}if(pn===null){for(;hn<me.length;hn++){var qi=se(ve,me[hn],Fe);qi!==null&&(Rr=m(qi,Rr,hn),Rn===null?jt=qi:Rn.sibling=qi,Rn=qi)}if(Ca()){var li=hn;vf(ve,li)}return jt}for(var si=s(ve,pn);hn<me.length;hn++){var qa=ye(si,ve,hn,me[hn],Fe);qa!==null&&(e&&qa.alternate!==null&&si.delete(qa.key===null?hn:qa.key),Rr=m(qa,Rr,hn),Rn===null?jt=qa:Rn.sibling=qa,Rn=qa)}if(e&&si.forEach(function(Op){return t(ve,Op)}),Ca()){var Vs=hn;vf(ve,Vs)}return jt}function et(ve,_e,me,Fe){var it=kt(me);if(typeof it!="function")throw new Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");{typeof Symbol=="function"&&me[Symbol.toStringTag]==="Generator"&&(Uw||p("Using Generators 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. Keep in mind you might need to polyfill these features for older browsers."),Uw=!0),me.entries===it&&($w||p("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),$w=!0);var tt=it.call(me);if(tt)for(var Dt=null,jt=tt.next();!jt.done;jt=tt.next()){var Rn=jt.value;Dt=we(Rn,Dt,ve)}}var pn=it.call(me);if(pn==null)throw new Error("An iterable object provided no iterator.");for(var Rr=null,hn=null,br=_e,Wa=0,Na=0,qi=null,li=pn.next();br!==null&&!li.done;Na++,li=pn.next()){br.index>Na?(qi=br,br=null):qi=br.sibling;var si=ae(ve,br,li.value,Fe);if(si===null){br===null&&(br=qi);break}e&&br&&si.alternate===null&&t(ve,br),Wa=m(si,Wa,Na),hn===null?Rr=si:hn.sibling=si,hn=si,br=qi}if(li.done){if(o(ve,br),Ca()){var qa=Na;vf(ve,qa)}return Rr}if(br===null){for(;!li.done;Na++,li=pn.next()){var Vs=se(ve,li.value,Fe);Vs!==null&&(Wa=m(Vs,Wa,Na),hn===null?Rr=Vs:hn.sibling=Vs,hn=Vs)}if(Ca()){var Op=Na;vf(ve,Op)}return Rr}for(var ym=s(ve,br);!li.done;Na++,li=pn.next()){var Ql=ye(ym,ve,Na,li.value,Fe);Ql!==null&&(e&&Ql.alternate!==null&&ym.delete(Ql.key===null?Na:Ql.key),Wa=m(Ql,Wa,Na),hn===null?Rr=Ql:hn.sibling=Ql,hn=Ql)}if(e&&ym.forEach(function(R8){return t(ve,R8)}),Ca()){var T8=Na;vf(ve,T8)}return Rr}function St(ve,_e,me,Fe){if(_e!==null&&_e.tag===D){o(ve,_e.sibling);var it=d(_e,me);return it.return=ve,it}o(ve,_e);var tt=P1(me,ve.mode,Fe);return tt.return=ve,tt}function mt(ve,_e,me,Fe){for(var it=me.key,tt=_e;tt!==null;){if(tt.key===it){var Dt=me.type;if(Dt===ca){if(tt.tag===R){o(ve,tt.sibling);var jt=d(tt,me.props.children);return jt.return=ve,jt._debugSource=me._source,jt._debugOwner=me._owner,jt}}else if(tt.elementType===Dt||oM(tt,me)||typeof Dt=="object"&&Dt!==null&&Dt.$$typeof===Rt&&ek(Dt)===tt.type){o(ve,tt.sibling);var Rn=d(tt,me.props);return Rn.ref=Fv(ve,tt,me),Rn.return=ve,Rn._debugSource=me._source,Rn._debugOwner=me._owner,Rn}o(ve,tt);break}else t(ve,tt);tt=tt.sibling}if(me.type===ca){var pn=Xu(me.props.children,ve.mode,Fe,me.key);return pn.return=ve,pn}else{var Rr=j1(me,ve.mode,Fe);return Rr.ref=Fv(ve,_e,me),Rr.return=ve,Rr}}function Qt(ve,_e,me,Fe){for(var it=me.key,tt=_e;tt!==null;){if(tt.key===it)if(tt.tag===_&&tt.stateNode.containerInfo===me.containerInfo&&tt.stateNode.implementation===me.implementation){o(ve,tt.sibling);var Dt=d(tt,me.children||[]);return Dt.return=ve,Dt}else{o(ve,tt);break}else t(ve,tt);tt=tt.sibling}var jt=$1(me,ve.mode,Fe);return jt.return=ve,jt}function Yt(ve,_e,me,Fe){var it=typeof me=="object"&&me!==null&&me.type===ca&&me.key===null;if(it&&(me=me.props.children),typeof me=="object"&&me!==null){switch(me.$$typeof){case wr:return b(mt(ve,_e,me,Fe));case Gn:return b(Qt(ve,_e,me,Fe));case Rt:var tt=me._payload,Dt=me._init;return Yt(ve,_e,Dt(tt),Fe)}if(Ft(me))return Ee(ve,_e,me,Fe);if(kt(me))return et(ve,_e,me,Fe);c0(ve,me)}return typeof me=="string"&&me!==""||typeof me=="number"?b(St(ve,_e,""+me,Fe)):(typeof me=="function"&&f0(ve),o(ve,_e))}return Yt}var vp=tk(!0),nk=tk(!1);function nU(e,t){if(e!==null&&t.child!==e.child)throw new Error("Resuming work not yet implemented.");if(t.child!==null){var o=t.child,s=kf(o,o.pendingProps);for(t.child=s,s.return=t;o.sibling!==null;)o=o.sibling,s=s.sibling=kf(o,o.pendingProps),s.return=t;s.sibling=null}}function rU(e,t){for(var o=e.child;o!==null;)VI(o,t),o=o.sibling}var Hw=ju(null),Vw;Vw={};var d0=null,mp=null,Yw=null,p0=!1;function h0(){d0=null,mp=null,Yw=null,p0=!1}function rk(){p0=!0}function ak(){p0=!1}function ik(e,t,o){Va(Hw,t._currentValue,e),t._currentValue=o,t._currentRenderer!==void 0&&t._currentRenderer!==null&&t._currentRenderer!==Vw&&p("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),t._currentRenderer=Vw}function Ww(e,t){var o=Hw.current;Ha(Hw,t),e._currentValue=o}function qw(e,t,o){for(var s=e;s!==null;){var d=s.alternate;if(Ts(s.childLanes,t)?d!==null&&!Ts(d.childLanes,t)&&(d.childLanes=Ut(d.childLanes,t)):(s.childLanes=Ut(s.childLanes,t),d!==null&&(d.childLanes=Ut(d.childLanes,t))),s===o)break;s=s.return}s!==o&&p("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 aU(e,t,o){iU(e,t,o)}function iU(e,t,o){var s=e.child;for(s!==null&&(s.return=e);s!==null;){var d=void 0,m=s.dependencies;if(m!==null){d=s.child;for(var b=m.firstContext;b!==null;){if(b.context===t){if(s.tag===S){var T=Yc(o),M=$s(Nn,T);M.tag=m0;var P=s.updateQueue;if(P!==null){var F=P.shared,se=F.pending;se===null?M.next=M:(M.next=se.next,se.next=M),F.pending=M}}s.lanes=Ut(s.lanes,o);var ae=s.alternate;ae!==null&&(ae.lanes=Ut(ae.lanes,o)),qw(s.return,o,e),m.lanes=Ut(m.lanes,o);break}b=b.next}}else if(s.tag===U)d=s.type===e.type?null:s.child;else if(s.tag===Se){var ye=s.return;if(ye===null)throw new Error("We just came from a parent so we must have had a parent. This is a bug in React.");ye.lanes=Ut(ye.lanes,o);var we=ye.alternate;we!==null&&(we.lanes=Ut(we.lanes,o)),qw(ye,o,e),d=s.sibling}else d=s.child;if(d!==null)d.return=s;else for(d=s;d!==null;){if(d===e){d=null;break}var Ee=d.sibling;if(Ee!==null){Ee.return=d.return,d=Ee;break}d=d.return}s=d}}function gp(e,t){d0=e,mp=null,Yw=null;var o=e.dependencies;if(o!==null){var s=o.firstContext;s!==null&&(Ua(o.lanes,t)&&tm(),o.firstContext=null)}}function jr(e){p0&&p("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().");var t=e._currentValue;if(Yw!==e){var o={context:e,memoizedValue:t,next:null};if(mp===null){if(d0===null)throw new 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().");mp=o,d0.dependencies={lanes:Le,firstContext:o}}else mp=mp.next=o}return t}var bf=null;function Gw(e){bf===null?bf=[e]:bf.push(e)}function oU(){if(bf!==null){for(var e=0;e<bf.length;e++){var t=bf[e],o=t.interleaved;if(o!==null){t.interleaved=null;var s=o.next,d=t.pending;if(d!==null){var m=d.next;d.next=s,o.next=m}t.pending=o}}bf=null}}function ok(e,t,o,s){var d=t.interleaved;return d===null?(o.next=o,Gw(t)):(o.next=d.next,d.next=o),t.interleaved=o,v0(e,s)}function lU(e,t,o,s){var d=t.interleaved;d===null?(o.next=o,Gw(t)):(o.next=d.next,d.next=o),t.interleaved=o}function sU(e,t,o,s){var d=t.interleaved;return d===null?(o.next=o,Gw(t)):(o.next=d.next,d.next=o),t.interleaved=o,v0(e,s)}function Ri(e,t){return v0(e,t)}var uU=v0;function v0(e,t){e.lanes=Ut(e.lanes,t);var o=e.alternate;o!==null&&(o.lanes=Ut(o.lanes,t)),o===null&&(e.flags&(Xn|La))!==yt&&nM(e);for(var s=e,d=e.return;d!==null;)d.childLanes=Ut(d.childLanes,t),o=d.alternate,o!==null?o.childLanes=Ut(o.childLanes,t):(d.flags&(Xn|La))!==yt&&nM(e),s=d,d=d.return;if(s.tag===w){var m=s.stateNode;return m}else return null}var lk=0,sk=1,m0=2,Kw=3,g0=!1,Xw,y0;Xw=!1,y0=null;function Qw(e){var t={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:Le},effects:null};e.updateQueue=t}function uk(e,t){var o=t.updateQueue,s=e.updateQueue;if(o===s){var d={baseState:s.baseState,firstBaseUpdate:s.firstBaseUpdate,lastBaseUpdate:s.lastBaseUpdate,shared:s.shared,effects:s.effects};t.updateQueue=d}}function $s(e,t){var o={eventTime:e,lane:t,tag:lk,payload:null,callback:null,next:null};return o}function Fu(e,t,o){var s=e.updateQueue;if(s===null)return null;var d=s.shared;if(y0===d&&!Xw&&(p("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."),Xw=!0),lI()){var m=d.pending;return m===null?t.next=t:(t.next=m.next,m.next=t),d.pending=t,uU(e,o)}else return sU(e,d,t,o)}function x0(e,t,o){var s=t.updateQueue;if(s!==null){var d=s.shared;if(Zh(o)){var m=d.lanes;m=tv(m,e.pendingLanes);var b=Ut(m,o);d.lanes=b,Hd(e,b)}}}function Jw(e,t){var o=e.updateQueue,s=e.alternate;if(s!==null){var d=s.updateQueue;if(o===d){var m=null,b=null,T=o.firstBaseUpdate;if(T!==null){var M=T;do{var P={eventTime:M.eventTime,lane:M.lane,tag:M.tag,payload:M.payload,callback:M.callback,next:null};b===null?m=b=P:(b.next=P,b=P),M=M.next}while(M!==null);b===null?m=b=t:(b.next=t,b=t)}else m=b=t;o={baseState:d.baseState,firstBaseUpdate:m,lastBaseUpdate:b,shared:d.shared,effects:d.effects},e.updateQueue=o;return}}var F=o.lastBaseUpdate;F===null?o.firstBaseUpdate=t:F.next=t,o.lastBaseUpdate=t}function cU(e,t,o,s,d,m){switch(o.tag){case sk:{var b=o.payload;if(typeof b=="function"){rk();var T=b.call(m,s,d);{if(e.mode&_n){Qn(!0);try{b.call(m,s,d)}finally{Qn(!1)}}ak()}return T}return b}case Kw:e.flags=e.flags&~Ar|gt;case lk:{var M=o.payload,P;if(typeof M=="function"){rk(),P=M.call(m,s,d);{if(e.mode&_n){Qn(!0);try{M.call(m,s,d)}finally{Qn(!1)}}ak()}}else P=M;return P==null?s:Ot({},s,P)}case m0:return g0=!0,s}return s}function b0(e,t,o,s){var d=e.updateQueue;g0=!1,y0=d.shared;var m=d.firstBaseUpdate,b=d.lastBaseUpdate,T=d.shared.pending;if(T!==null){d.shared.pending=null;var M=T,P=M.next;M.next=null,b===null?m=P:b.next=P,b=M;var F=e.alternate;if(F!==null){var se=F.updateQueue,ae=se.lastBaseUpdate;ae!==b&&(ae===null?se.firstBaseUpdate=P:ae.next=P,se.lastBaseUpdate=M)}}if(m!==null){var ye=d.baseState,we=Le,Ee=null,et=null,St=null,mt=m;do{var Qt=mt.lane,Yt=mt.eventTime;if(Ts(s,Qt)){if(St!==null){var _e={eventTime:Yt,lane:on,tag:mt.tag,payload:mt.payload,callback:mt.callback,next:null};St=St.next=_e}ye=cU(e,d,mt,ye,t,o);var me=mt.callback;if(me!==null&&mt.lane!==on){e.flags|=zn;var Fe=d.effects;Fe===null?d.effects=[mt]:Fe.push(mt)}}else{var ve={eventTime:Yt,lane:Qt,tag:mt.tag,payload:mt.payload,callback:mt.callback,next:null};St===null?(et=St=ve,Ee=ye):St=St.next=ve,we=Ut(we,Qt)}if(mt=mt.next,mt===null){if(T=d.shared.pending,T===null)break;var it=T,tt=it.next;it.next=null,mt=tt,d.lastBaseUpdate=it,d.shared.pending=null}}while(!0);St===null&&(Ee=ye),d.baseState=Ee,d.firstBaseUpdate=et,d.lastBaseUpdate=St;var Dt=d.shared.interleaved;if(Dt!==null){var jt=Dt;do we=Ut(we,jt.lane),jt=jt.next;while(jt!==Dt)}else m===null&&(d.shared.lanes=Le);pm(we),e.lanes=we,e.memoizedState=ye}y0=null}function fU(e,t){if(typeof e!="function")throw new Error("Invalid argument passed as callback. Expected a function. Instead "+("received: "+e));e.call(t)}function ck(){g0=!1}function w0(){return g0}function fk(e,t,o){var s=t.effects;if(t.effects=null,s!==null)for(var d=0;d<s.length;d++){var m=s[d],b=m.callback;b!==null&&(m.callback=null,fU(b,o))}}var Iv={},Iu=ju(Iv),Bv=ju(Iv),S0=ju(Iv);function C0(e){if(e===Iv)throw new Error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.");return e}function dk(){var e=C0(S0.current);return e}function Zw(e,t){Va(S0,t,e),Va(Bv,e,e),Va(Iu,Iv,e);var o=kP(t);Ha(Iu,e),Va(Iu,o,e)}function yp(e){Ha(Iu,e),Ha(Bv,e),Ha(S0,e)}function eS(){var e=C0(Iu.current);return e}function pk(e){C0(S0.current);var t=C0(Iu.current),o=MP(t,e.type);t!==o&&(Va(Bv,e,e),Va(Iu,o,e))}function tS(e){Bv.current===e&&(Ha(Iu,e),Ha(Bv,e))}var dU=0,hk=1,vk=1,Hv=2,Zo=ju(dU);function nS(e,t){return(e&t)!==0}function xp(e){return e&hk}function rS(e,t){return e&hk|t}function pU(e,t){return e|t}function Bu(e,t){Va(Zo,t,e)}function bp(e){Ha(Zo,e)}function hU(e,t){var o=e.memoizedState;return o!==null?o.dehydrated!==null:(e.memoizedProps,!0)}function E0(e){for(var t=e;t!==null;){if(t.tag===H){var o=t.memoizedState;if(o!==null){var s=o.dehydrated;if(s===null||AR(s)||ww(s))return t}}else if(t.tag===oe&&t.memoizedProps.revealOrder!==void 0){var d=(t.flags>)!==yt;if(d)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)return null;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 ki=0,Vr=1,Vl=2,Yr=4,Ea=8,aS=[];function iS(){for(var e=0;e<aS.length;e++){var t=aS[e];t._workInProgressVersionPrimary=null}aS.length=0}function vU(e,t){var o=t._getVersion,s=o(t._source);e.mutableSourceEagerHydrationData==null?e.mutableSourceEagerHydrationData=[t,s]:e.mutableSourceEagerHydrationData.push(t,s)}var at=l.ReactCurrentDispatcher,Vv=l.ReactCurrentBatchConfig,oS,wp;oS=new Set;var wf=Le,Tn=null,Wr=null,qr=null,_0=!1,Yv=!1,Wv=0,mU=0,gU=25,Me=null,So=null,Hu=-1,lS=!1;function yn(){{var e=Me;So===null?So=[e]:So.push(e)}}function qe(){{var e=Me;So!==null&&(Hu++,So[Hu]!==e&&yU(e))}}function Sp(e){e!=null&&!Ft(e)&&p("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",Me,typeof e)}function yU(e){{var t=Lt(Tn);if(!oS.has(t)&&(oS.add(t),So!==null)){for(var o="",s=30,d=0;d<=Hu;d++){for(var m=So[d],b=d===Hu?e:m,T=d+1+". "+m;T.length<s;)T+=" ";T+=b+`
|
|
169
|
+
`,o+=T}p(`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://reactjs.org/link/rules-of-hooks
|
|
170
|
+
|
|
171
|
+
Previous render Next render
|
|
172
|
+
------------------------------------------------------
|
|
173
|
+
%s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
174
|
+
`,t,o)}}}function Ya(){throw new 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:
|
|
175
|
+
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
176
|
+
2. You might be breaking the Rules of Hooks
|
|
177
|
+
3. You might have more than one copy of React in the same app
|
|
178
|
+
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function sS(e,t){if(lS)return!1;if(t===null)return p("%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.",Me),!1;e.length!==t.length&&p(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
|
|
179
|
+
|
|
180
|
+
Previous: %s
|
|
181
|
+
Incoming: %s`,Me,"["+t.join(", ")+"]","["+e.join(", ")+"]");for(var o=0;o<t.length&&o<e.length;o++)if(!Pe(e[o],t[o]))return!1;return!0}function Cp(e,t,o,s,d,m){wf=m,Tn=t,So=e!==null?e._debugHookTypes:null,Hu=-1,lS=e!==null&&e.type!==t.type,t.memoizedState=null,t.updateQueue=null,t.lanes=Le,e!==null&&e.memoizedState!==null?at.current=Pk:So!==null?at.current=jk:at.current=zk;var b=o(s,d);if(Yv){var T=0;do{if(Yv=!1,Wv=0,T>=gU)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");T+=1,lS=!1,Wr=null,qr=null,t.updateQueue=null,Hu=-1,at.current=$k,b=o(s,d)}while(Yv)}at.current=$0,t._debugHookTypes=So;var M=Wr!==null&&Wr.next!==null;if(wf=Le,Tn=null,Wr=null,qr=null,Me=null,So=null,Hu=-1,e!==null&&(e.flags&hr)!==(t.flags&hr)&&(e.mode&Bt)!==xt&&p("Internal React error: Expected static flag was missing. Please notify the React team."),_0=!1,M)throw new Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return b}function Ep(){var e=Wv!==0;return Wv=0,e}function mk(e,t,o){t.updateQueue=e.updateQueue,(t.mode&fn)!==xt?t.flags&=-50333701:t.flags&=-2053,e.lanes=Wc(e.lanes,o)}function gk(){if(at.current=$0,_0){for(var e=Tn.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}_0=!1}wf=Le,Tn=null,Wr=null,qr=null,So=null,Hu=-1,Me=null,Nk=!1,Yv=!1,Wv=0}function Yl(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return qr===null?Tn.memoizedState=qr=e:qr=qr.next=e,qr}function Co(){var e;if(Wr===null){var t=Tn.alternate;t!==null?e=t.memoizedState:e=null}else e=Wr.next;var o;if(qr===null?o=Tn.memoizedState:o=qr.next,o!==null)qr=o,o=qr.next,Wr=e;else{if(e===null)throw new Error("Rendered more hooks than during the previous render.");Wr=e;var s={memoizedState:Wr.memoizedState,baseState:Wr.baseState,baseQueue:Wr.baseQueue,queue:Wr.queue,next:null};qr===null?Tn.memoizedState=qr=s:qr=qr.next=s}return qr}function yk(){return{lastEffect:null,stores:null}}function uS(e,t){return typeof t=="function"?t(e):t}function cS(e,t,o){var s=Yl(),d;o!==void 0?d=o(t):d=t,s.memoizedState=s.baseState=d;var m={pending:null,interleaved:null,lanes:Le,dispatch:null,lastRenderedReducer:e,lastRenderedState:d};s.queue=m;var b=m.dispatch=SU.bind(null,Tn,m);return[s.memoizedState,b]}function fS(e,t,o){var s=Co(),d=s.queue;if(d===null)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");d.lastRenderedReducer=e;var m=Wr,b=m.baseQueue,T=d.pending;if(T!==null){if(b!==null){var M=b.next,P=T.next;b.next=P,T.next=M}m.baseQueue!==b&&p("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),m.baseQueue=b=T,d.pending=null}if(b!==null){var F=b.next,se=m.baseState,ae=null,ye=null,we=null,Ee=F;do{var et=Ee.lane;if(Ts(wf,et)){if(we!==null){var mt={lane:on,action:Ee.action,hasEagerState:Ee.hasEagerState,eagerState:Ee.eagerState,next:null};we=we.next=mt}if(Ee.hasEagerState)se=Ee.eagerState;else{var Qt=Ee.action;se=e(se,Qt)}}else{var St={lane:et,action:Ee.action,hasEagerState:Ee.hasEagerState,eagerState:Ee.eagerState,next:null};we===null?(ye=we=St,ae=se):we=we.next=St,Tn.lanes=Ut(Tn.lanes,et),pm(et)}Ee=Ee.next}while(Ee!==null&&Ee!==F);we===null?ae=se:we.next=ye,Pe(se,s.memoizedState)||tm(),s.memoizedState=se,s.baseState=ae,s.baseQueue=we,d.lastRenderedState=se}var Yt=d.interleaved;if(Yt!==null){var ve=Yt;do{var _e=ve.lane;Tn.lanes=Ut(Tn.lanes,_e),pm(_e),ve=ve.next}while(ve!==Yt)}else b===null&&(d.lanes=Le);var me=d.dispatch;return[s.memoizedState,me]}function dS(e,t,o){var s=Co(),d=s.queue;if(d===null)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");d.lastRenderedReducer=e;var m=d.dispatch,b=d.pending,T=s.memoizedState;if(b!==null){d.pending=null;var M=b.next,P=M;do{var F=P.action;T=e(T,F),P=P.next}while(P!==M);Pe(T,s.memoizedState)||tm(),s.memoizedState=T,s.baseQueue===null&&(s.baseState=T),d.lastRenderedState=T}return[T,m]}function A8(e,t,o){}function O8(e,t,o){}function pS(e,t,o){var s=Tn,d=Yl(),m,b=Ca();if(b){if(o===void 0)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");m=o(),wp||m!==o()&&(p("The result of getServerSnapshot should be cached to avoid an infinite loop"),wp=!0)}else{if(m=t(),!wp){var T=t();Pe(m,T)||(p("The result of getSnapshot should be cached to avoid an infinite loop"),wp=!0)}var M=rx();if(M===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");Id(M,wf)||xk(s,t,m)}d.memoizedState=m;var P={value:m,getSnapshot:t};return d.queue=P,N0(wk.bind(null,s,P,e),[e]),s.flags|=Oa,qv(Vr|Ea,bk.bind(null,s,P,m,t),void 0,null),m}function T0(e,t,o){var s=Tn,d=Co(),m=t();if(!wp){var b=t();Pe(m,b)||(p("The result of getSnapshot should be cached to avoid an infinite loop"),wp=!0)}var T=d.memoizedState,M=!Pe(T,m);M&&(d.memoizedState=m,tm());var P=d.queue;if(Kv(wk.bind(null,s,P,e),[e]),P.getSnapshot!==t||M||qr!==null&&qr.memoizedState.tag&Vr){s.flags|=Oa,qv(Vr|Ea,bk.bind(null,s,P,m,t),void 0,null);var F=rx();if(F===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");Id(F,wf)||xk(s,t,m)}return m}function xk(e,t,o){e.flags|=bu;var s={getSnapshot:t,value:o},d=Tn.updateQueue;if(d===null)d=yk(),Tn.updateQueue=d,d.stores=[s];else{var m=d.stores;m===null?d.stores=[s]:m.push(s)}}function bk(e,t,o,s){t.value=o,t.getSnapshot=s,Sk(t)&&Ck(e)}function wk(e,t,o){var s=function(){Sk(t)&&Ck(e)};return o(s)}function Sk(e){var t=e.getSnapshot,o=e.value;try{var s=t();return!Pe(o,s)}catch{return!0}}function Ck(e){var t=Ri(e,Mt);t!==null&&Qr(t,e,Mt,Nn)}function R0(e){var t=Yl();typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e;var o={pending:null,interleaved:null,lanes:Le,dispatch:null,lastRenderedReducer:uS,lastRenderedState:e};t.queue=o;var s=o.dispatch=CU.bind(null,Tn,o);return[t.memoizedState,s]}function hS(e){return fS(uS)}function vS(e){return dS(uS)}function qv(e,t,o,s){var d={tag:e,create:t,destroy:o,deps:s,next:null},m=Tn.updateQueue;if(m===null)m=yk(),Tn.updateQueue=m,m.lastEffect=d.next=d;else{var b=m.lastEffect;if(b===null)m.lastEffect=d.next=d;else{var T=b.next;b.next=d,d.next=T,m.lastEffect=d}}return d}function mS(e){var t=Yl();{var o={current:e};return t.memoizedState=o,o}}function k0(e){var t=Co();return t.memoizedState}function Gv(e,t,o,s){var d=Yl(),m=s===void 0?null:s;Tn.flags|=e,d.memoizedState=qv(Vr|t,o,void 0,m)}function M0(e,t,o,s){var d=Co(),m=s===void 0?null:s,b=void 0;if(Wr!==null){var T=Wr.memoizedState;if(b=T.destroy,m!==null){var M=T.deps;if(sS(m,M)){d.memoizedState=qv(t,o,b,m);return}}}Tn.flags|=e,d.memoizedState=qv(Vr|t,o,b,m)}function N0(e,t){return(Tn.mode&fn)!==xt?Gv(uo|Oa|hd,Ea,e,t):Gv(Oa|hd,Ea,e,t)}function Kv(e,t){return M0(Oa,Ea,e,t)}function gS(e,t){return Gv(Gt,Vl,e,t)}function D0(e,t){return M0(Gt,Vl,e,t)}function yS(e,t){var o=Gt;return o|=Io,(Tn.mode&fn)!==xt&&(o|=Tl),Gv(o,Yr,e,t)}function A0(e,t){return M0(Gt,Yr,e,t)}function Ek(e,t){if(typeof t=="function"){var o=t,s=e();return o(s),function(){o(null)}}else if(t!=null){var d=t;d.hasOwnProperty("current")||p("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(d).join(", ")+"}");var m=e();return d.current=m,function(){d.current=null}}}function xS(e,t,o){typeof t!="function"&&p("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",t!==null?typeof t:"null");var s=o!=null?o.concat([e]):null,d=Gt;return d|=Io,(Tn.mode&fn)!==xt&&(d|=Tl),Gv(d,Yr,Ek.bind(null,t,e),s)}function O0(e,t,o){typeof t!="function"&&p("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",t!==null?typeof t:"null");var s=o!=null?o.concat([e]):null;return M0(Gt,Yr,Ek.bind(null,t,e),s)}function xU(e,t){}var L0=xU;function bS(e,t){var o=Yl(),s=t===void 0?null:t;return o.memoizedState=[e,s],e}function z0(e,t){var o=Co(),s=t===void 0?null:t,d=o.memoizedState;if(d!==null&&s!==null){var m=d[1];if(sS(s,m))return d[0]}return o.memoizedState=[e,s],e}function wS(e,t){var o=Yl(),s=t===void 0?null:t,d=e();return o.memoizedState=[d,s],d}function j0(e,t){var o=Co(),s=t===void 0?null:t,d=o.memoizedState;if(d!==null&&s!==null){var m=d[1];if(sS(s,m))return d[0]}var b=e();return o.memoizedState=[b,s],b}function SS(e){var t=Yl();return t.memoizedState=e,e}function _k(e){var t=Co(),o=Wr,s=o.memoizedState;return Rk(t,s,e)}function Tk(e){var t=Co();if(Wr===null)return t.memoizedState=e,e;var o=Wr.memoizedState;return Rk(t,o,e)}function Rk(e,t,o){var s=!Qh(wf);if(s){if(!Pe(o,t)){var d=ev();Tn.lanes=Ut(Tn.lanes,d),pm(d),e.baseState=!0}return t}else return e.baseState&&(e.baseState=!1,tm()),e.memoizedState=o,o}function bU(e,t,o){var s=Ei();gr(py(s,ho)),e(!0);var d=Vv.transition;Vv.transition={};var m=Vv.transition;Vv.transition._updatedFibers=new Set;try{e(!1),t()}finally{if(gr(s),Vv.transition=d,d===null&&m._updatedFibers){var b=m._updatedFibers.size;b>10&&v("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."),m._updatedFibers.clear()}}}function CS(){var e=R0(!1),t=e[0],o=e[1],s=bU.bind(null,o),d=Yl();return d.memoizedState=s,[t,s]}function kk(){var e=hS(),t=e[0],o=Co(),s=o.memoizedState;return[t,s]}function Mk(){var e=vS(),t=e[0],o=Co(),s=o.memoizedState;return[t,s]}var Nk=!1;function wU(){return Nk}function ES(){var e=Yl(),t=rx(),o=t.identifierPrefix,s;if(Ca()){var d=$$();s=":"+o+"R"+d;var m=Wv++;m>0&&(s+="H"+m.toString(32)),s+=":"}else{var b=mU++;s=":"+o+"r"+b.toString(32)+":"}return e.memoizedState=s,s}function P0(){var e=Co(),t=e.memoizedState;return t}function SU(e,t,o){typeof arguments[3]=="function"&&p("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().");var s=Gu(e),d={lane:s,action:o,hasEagerState:!1,eagerState:null,next:null};if(Dk(e))Ak(t,d);else{var m=ok(e,t,d,s);if(m!==null){var b=oi();Qr(m,e,s,b),Ok(m,t,s)}}Lk(e,s)}function CU(e,t,o){typeof arguments[3]=="function"&&p("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().");var s=Gu(e),d={lane:s,action:o,hasEagerState:!1,eagerState:null,next:null};if(Dk(e))Ak(t,d);else{var m=e.alternate;if(e.lanes===Le&&(m===null||m.lanes===Le)){var b=t.lastRenderedReducer;if(b!==null){var T;T=at.current,at.current=el;try{var M=t.lastRenderedState,P=b(M,o);if(d.hasEagerState=!0,d.eagerState=P,Pe(P,M)){lU(e,t,d,s);return}}catch{}finally{at.current=T}}}var F=ok(e,t,d,s);if(F!==null){var se=oi();Qr(F,e,s,se),Ok(F,t,s)}}Lk(e,s)}function Dk(e){var t=e.alternate;return e===Tn||t!==null&&t===Tn}function Ak(e,t){Yv=_0=!0;var o=e.pending;o===null?t.next=t:(t.next=o.next,o.next=t),e.pending=t}function Ok(e,t,o){if(Zh(o)){var s=t.lanes;s=tv(s,e.pendingLanes);var d=Ut(s,o);t.lanes=d,Hd(e,d)}}function Lk(e,t,o){jc(e,t)}var $0={readContext:jr,useCallback:Ya,useContext:Ya,useEffect:Ya,useImperativeHandle:Ya,useInsertionEffect:Ya,useLayoutEffect:Ya,useMemo:Ya,useReducer:Ya,useRef:Ya,useState:Ya,useDebugValue:Ya,useDeferredValue:Ya,useTransition:Ya,useMutableSource:Ya,useSyncExternalStore:Ya,useId:Ya,unstable_isNewReconciler:Y},zk=null,jk=null,Pk=null,$k=null,Wl=null,el=null,U0=null;{var _S=function(){p("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().")},zt=function(){p("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://reactjs.org/link/rules-of-hooks")};zk={readContext:function(e){return jr(e)},useCallback:function(e,t){return Me="useCallback",yn(),Sp(t),bS(e,t)},useContext:function(e){return Me="useContext",yn(),jr(e)},useEffect:function(e,t){return Me="useEffect",yn(),Sp(t),N0(e,t)},useImperativeHandle:function(e,t,o){return Me="useImperativeHandle",yn(),Sp(o),xS(e,t,o)},useInsertionEffect:function(e,t){return Me="useInsertionEffect",yn(),Sp(t),gS(e,t)},useLayoutEffect:function(e,t){return Me="useLayoutEffect",yn(),Sp(t),yS(e,t)},useMemo:function(e,t){Me="useMemo",yn(),Sp(t);var o=at.current;at.current=Wl;try{return wS(e,t)}finally{at.current=o}},useReducer:function(e,t,o){Me="useReducer",yn();var s=at.current;at.current=Wl;try{return cS(e,t,o)}finally{at.current=s}},useRef:function(e){return Me="useRef",yn(),mS(e)},useState:function(e){Me="useState",yn();var t=at.current;at.current=Wl;try{return R0(e)}finally{at.current=t}},useDebugValue:function(e,t){return Me="useDebugValue",yn(),void 0},useDeferredValue:function(e){return Me="useDeferredValue",yn(),SS(e)},useTransition:function(){return Me="useTransition",yn(),CS()},useMutableSource:function(e,t,o){return Me="useMutableSource",yn(),void 0},useSyncExternalStore:function(e,t,o){return Me="useSyncExternalStore",yn(),pS(e,t,o)},useId:function(){return Me="useId",yn(),ES()},unstable_isNewReconciler:Y},jk={readContext:function(e){return jr(e)},useCallback:function(e,t){return Me="useCallback",qe(),bS(e,t)},useContext:function(e){return Me="useContext",qe(),jr(e)},useEffect:function(e,t){return Me="useEffect",qe(),N0(e,t)},useImperativeHandle:function(e,t,o){return Me="useImperativeHandle",qe(),xS(e,t,o)},useInsertionEffect:function(e,t){return Me="useInsertionEffect",qe(),gS(e,t)},useLayoutEffect:function(e,t){return Me="useLayoutEffect",qe(),yS(e,t)},useMemo:function(e,t){Me="useMemo",qe();var o=at.current;at.current=Wl;try{return wS(e,t)}finally{at.current=o}},useReducer:function(e,t,o){Me="useReducer",qe();var s=at.current;at.current=Wl;try{return cS(e,t,o)}finally{at.current=s}},useRef:function(e){return Me="useRef",qe(),mS(e)},useState:function(e){Me="useState",qe();var t=at.current;at.current=Wl;try{return R0(e)}finally{at.current=t}},useDebugValue:function(e,t){return Me="useDebugValue",qe(),void 0},useDeferredValue:function(e){return Me="useDeferredValue",qe(),SS(e)},useTransition:function(){return Me="useTransition",qe(),CS()},useMutableSource:function(e,t,o){return Me="useMutableSource",qe(),void 0},useSyncExternalStore:function(e,t,o){return Me="useSyncExternalStore",qe(),pS(e,t,o)},useId:function(){return Me="useId",qe(),ES()},unstable_isNewReconciler:Y},Pk={readContext:function(e){return jr(e)},useCallback:function(e,t){return Me="useCallback",qe(),z0(e,t)},useContext:function(e){return Me="useContext",qe(),jr(e)},useEffect:function(e,t){return Me="useEffect",qe(),Kv(e,t)},useImperativeHandle:function(e,t,o){return Me="useImperativeHandle",qe(),O0(e,t,o)},useInsertionEffect:function(e,t){return Me="useInsertionEffect",qe(),D0(e,t)},useLayoutEffect:function(e,t){return Me="useLayoutEffect",qe(),A0(e,t)},useMemo:function(e,t){Me="useMemo",qe();var o=at.current;at.current=el;try{return j0(e,t)}finally{at.current=o}},useReducer:function(e,t,o){Me="useReducer",qe();var s=at.current;at.current=el;try{return fS(e,t,o)}finally{at.current=s}},useRef:function(e){return Me="useRef",qe(),k0()},useState:function(e){Me="useState",qe();var t=at.current;at.current=el;try{return hS(e)}finally{at.current=t}},useDebugValue:function(e,t){return Me="useDebugValue",qe(),L0()},useDeferredValue:function(e){return Me="useDeferredValue",qe(),_k(e)},useTransition:function(){return Me="useTransition",qe(),kk()},useMutableSource:function(e,t,o){return Me="useMutableSource",qe(),void 0},useSyncExternalStore:function(e,t,o){return Me="useSyncExternalStore",qe(),T0(e,t)},useId:function(){return Me="useId",qe(),P0()},unstable_isNewReconciler:Y},$k={readContext:function(e){return jr(e)},useCallback:function(e,t){return Me="useCallback",qe(),z0(e,t)},useContext:function(e){return Me="useContext",qe(),jr(e)},useEffect:function(e,t){return Me="useEffect",qe(),Kv(e,t)},useImperativeHandle:function(e,t,o){return Me="useImperativeHandle",qe(),O0(e,t,o)},useInsertionEffect:function(e,t){return Me="useInsertionEffect",qe(),D0(e,t)},useLayoutEffect:function(e,t){return Me="useLayoutEffect",qe(),A0(e,t)},useMemo:function(e,t){Me="useMemo",qe();var o=at.current;at.current=U0;try{return j0(e,t)}finally{at.current=o}},useReducer:function(e,t,o){Me="useReducer",qe();var s=at.current;at.current=U0;try{return dS(e,t,o)}finally{at.current=s}},useRef:function(e){return Me="useRef",qe(),k0()},useState:function(e){Me="useState",qe();var t=at.current;at.current=U0;try{return vS(e)}finally{at.current=t}},useDebugValue:function(e,t){return Me="useDebugValue",qe(),L0()},useDeferredValue:function(e){return Me="useDeferredValue",qe(),Tk(e)},useTransition:function(){return Me="useTransition",qe(),Mk()},useMutableSource:function(e,t,o){return Me="useMutableSource",qe(),void 0},useSyncExternalStore:function(e,t,o){return Me="useSyncExternalStore",qe(),T0(e,t)},useId:function(){return Me="useId",qe(),P0()},unstable_isNewReconciler:Y},Wl={readContext:function(e){return _S(),jr(e)},useCallback:function(e,t){return Me="useCallback",zt(),yn(),bS(e,t)},useContext:function(e){return Me="useContext",zt(),yn(),jr(e)},useEffect:function(e,t){return Me="useEffect",zt(),yn(),N0(e,t)},useImperativeHandle:function(e,t,o){return Me="useImperativeHandle",zt(),yn(),xS(e,t,o)},useInsertionEffect:function(e,t){return Me="useInsertionEffect",zt(),yn(),gS(e,t)},useLayoutEffect:function(e,t){return Me="useLayoutEffect",zt(),yn(),yS(e,t)},useMemo:function(e,t){Me="useMemo",zt(),yn();var o=at.current;at.current=Wl;try{return wS(e,t)}finally{at.current=o}},useReducer:function(e,t,o){Me="useReducer",zt(),yn();var s=at.current;at.current=Wl;try{return cS(e,t,o)}finally{at.current=s}},useRef:function(e){return Me="useRef",zt(),yn(),mS(e)},useState:function(e){Me="useState",zt(),yn();var t=at.current;at.current=Wl;try{return R0(e)}finally{at.current=t}},useDebugValue:function(e,t){return Me="useDebugValue",zt(),yn(),void 0},useDeferredValue:function(e){return Me="useDeferredValue",zt(),yn(),SS(e)},useTransition:function(){return Me="useTransition",zt(),yn(),CS()},useMutableSource:function(e,t,o){return Me="useMutableSource",zt(),yn(),void 0},useSyncExternalStore:function(e,t,o){return Me="useSyncExternalStore",zt(),yn(),pS(e,t,o)},useId:function(){return Me="useId",zt(),yn(),ES()},unstable_isNewReconciler:Y},el={readContext:function(e){return _S(),jr(e)},useCallback:function(e,t){return Me="useCallback",zt(),qe(),z0(e,t)},useContext:function(e){return Me="useContext",zt(),qe(),jr(e)},useEffect:function(e,t){return Me="useEffect",zt(),qe(),Kv(e,t)},useImperativeHandle:function(e,t,o){return Me="useImperativeHandle",zt(),qe(),O0(e,t,o)},useInsertionEffect:function(e,t){return Me="useInsertionEffect",zt(),qe(),D0(e,t)},useLayoutEffect:function(e,t){return Me="useLayoutEffect",zt(),qe(),A0(e,t)},useMemo:function(e,t){Me="useMemo",zt(),qe();var o=at.current;at.current=el;try{return j0(e,t)}finally{at.current=o}},useReducer:function(e,t,o){Me="useReducer",zt(),qe();var s=at.current;at.current=el;try{return fS(e,t,o)}finally{at.current=s}},useRef:function(e){return Me="useRef",zt(),qe(),k0()},useState:function(e){Me="useState",zt(),qe();var t=at.current;at.current=el;try{return hS(e)}finally{at.current=t}},useDebugValue:function(e,t){return Me="useDebugValue",zt(),qe(),L0()},useDeferredValue:function(e){return Me="useDeferredValue",zt(),qe(),_k(e)},useTransition:function(){return Me="useTransition",zt(),qe(),kk()},useMutableSource:function(e,t,o){return Me="useMutableSource",zt(),qe(),void 0},useSyncExternalStore:function(e,t,o){return Me="useSyncExternalStore",zt(),qe(),T0(e,t)},useId:function(){return Me="useId",zt(),qe(),P0()},unstable_isNewReconciler:Y},U0={readContext:function(e){return _S(),jr(e)},useCallback:function(e,t){return Me="useCallback",zt(),qe(),z0(e,t)},useContext:function(e){return Me="useContext",zt(),qe(),jr(e)},useEffect:function(e,t){return Me="useEffect",zt(),qe(),Kv(e,t)},useImperativeHandle:function(e,t,o){return Me="useImperativeHandle",zt(),qe(),O0(e,t,o)},useInsertionEffect:function(e,t){return Me="useInsertionEffect",zt(),qe(),D0(e,t)},useLayoutEffect:function(e,t){return Me="useLayoutEffect",zt(),qe(),A0(e,t)},useMemo:function(e,t){Me="useMemo",zt(),qe();var o=at.current;at.current=el;try{return j0(e,t)}finally{at.current=o}},useReducer:function(e,t,o){Me="useReducer",zt(),qe();var s=at.current;at.current=el;try{return dS(e,t,o)}finally{at.current=s}},useRef:function(e){return Me="useRef",zt(),qe(),k0()},useState:function(e){Me="useState",zt(),qe();var t=at.current;at.current=el;try{return vS(e)}finally{at.current=t}},useDebugValue:function(e,t){return Me="useDebugValue",zt(),qe(),L0()},useDeferredValue:function(e){return Me="useDeferredValue",zt(),qe(),Tk(e)},useTransition:function(){return Me="useTransition",zt(),qe(),Mk()},useMutableSource:function(e,t,o){return Me="useMutableSource",zt(),qe(),void 0},useSyncExternalStore:function(e,t,o){return Me="useSyncExternalStore",zt(),qe(),T0(e,t)},useId:function(){return Me="useId",zt(),qe(),P0()},unstable_isNewReconciler:Y}}var Vu=a.unstable_now,Uk=0,F0=-1,Xv=-1,I0=-1,TS=!1,B0=!1;function Fk(){return TS}function EU(){B0=!0}function _U(){TS=!1,B0=!1}function TU(){TS=B0,B0=!1}function Ik(){return Uk}function Bk(){Uk=Vu()}function RS(e){Xv=Vu(),e.actualStartTime<0&&(e.actualStartTime=Vu())}function Hk(e){Xv=-1}function H0(e,t){if(Xv>=0){var o=Vu()-Xv;e.actualDuration+=o,t&&(e.selfBaseDuration=o),Xv=-1}}function ql(e){if(F0>=0){var t=Vu()-F0;F0=-1;for(var o=e.return;o!==null;){switch(o.tag){case w:var s=o.stateNode;s.effectDuration+=t;return;case $:var d=o.stateNode;d.effectDuration+=t;return}o=o.return}}}function kS(e){if(I0>=0){var t=Vu()-I0;I0=-1;for(var o=e.return;o!==null;){switch(o.tag){case w:var s=o.stateNode;s!==null&&(s.passiveEffectDuration+=t);return;case $:var d=o.stateNode;d!==null&&(d.passiveEffectDuration+=t);return}o=o.return}}}function Gl(){F0=Vu()}function MS(){I0=Vu()}function NS(e){for(var t=e.child;t;)e.actualDuration+=t.actualDuration,t=t.sibling}function tl(e,t){if(e&&e.defaultProps){var o=Ot({},t),s=e.defaultProps;for(var d in s)o[d]===void 0&&(o[d]=s[d]);return o}return t}var DS={},AS,OS,LS,zS,jS,Vk,V0,PS,$S,US,Qv;{AS=new Set,OS=new Set,LS=new Set,zS=new Set,PS=new Set,jS=new Set,$S=new Set,US=new Set,Qv=new Set;var Yk=new Set;V0=function(e,t){if(!(e===null||typeof e=="function")){var o=t+"_"+e;Yk.has(o)||(Yk.add(o),p("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",t,e))}},Vk=function(e,t){if(t===void 0){var o=tn(e)||"Component";jS.has(o)||(jS.add(o),p("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",o))}},Object.defineProperty(DS,"_processChildContext",{enumerable:!1,value:function(){throw new Error("_processChildContext is not available in React 16+. This likely means you have multiple copies of React and are attempting to nest a React 15 tree inside a React 16 tree using unstable_renderSubtreeIntoContainer, which isn't supported. Try to make sure you have only one copy of React (and ideally, switch to ReactDOM.createPortal).")}}),Object.freeze(DS)}function FS(e,t,o,s){var d=e.memoizedState,m=o(s,d);{if(e.mode&_n){Qn(!0);try{m=o(s,d)}finally{Qn(!1)}}Vk(t,m)}var b=m==null?d:Ot({},d,m);if(e.memoizedState=b,e.lanes===Le){var T=e.updateQueue;T.baseState=b}}var IS={isMounted:Qg,enqueueSetState:function(e,t,o){var s=xu(e),d=oi(),m=Gu(s),b=$s(d,m);b.payload=t,o!=null&&(V0(o,"setState"),b.callback=o);var T=Fu(s,b,m);T!==null&&(Qr(T,s,m,d),x0(T,s,m)),jc(s,m)},enqueueReplaceState:function(e,t,o){var s=xu(e),d=oi(),m=Gu(s),b=$s(d,m);b.tag=sk,b.payload=t,o!=null&&(V0(o,"replaceState"),b.callback=o);var T=Fu(s,b,m);T!==null&&(Qr(T,s,m,d),x0(T,s,m)),jc(s,m)},enqueueForceUpdate:function(e,t){var o=xu(e),s=oi(),d=Gu(o),m=$s(s,d);m.tag=m0,t!=null&&(V0(t,"forceUpdate"),m.callback=t);var b=Fu(o,m,d);b!==null&&(Qr(b,o,d,s),x0(b,o,d)),wd(o,d)}};function Wk(e,t,o,s,d,m,b){var T=e.stateNode;if(typeof T.shouldComponentUpdate=="function"){var M=T.shouldComponentUpdate(s,m,b);{if(e.mode&_n){Qn(!0);try{M=T.shouldComponentUpdate(s,m,b)}finally{Qn(!1)}}M===void 0&&p("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",tn(t)||"Component")}return M}return t.prototype&&t.prototype.isPureReactComponent?!ft(o,s)||!ft(d,m):!0}function RU(e,t,o){var s=e.stateNode;{var d=tn(t)||"Component",m=s.render;m||(t.prototype&&typeof t.prototype.render=="function"?p("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",d):p("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.",d)),s.getInitialState&&!s.getInitialState.isReactClassApproved&&!s.state&&p("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?",d),s.getDefaultProps&&!s.getDefaultProps.isReactClassApproved&&p("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.",d),s.propTypes&&p("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",d),s.contextType&&p("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",d),t.childContextTypes&&!Qv.has(t)&&(e.mode&_n)===xt&&(Qv.add(t),p(`%s uses the legacy childContextTypes API which is no longer supported and will be removed in the next major release. Use React.createContext() instead
|
|
182
|
+
|
|
183
|
+
.Learn more about this warning here: https://reactjs.org/link/legacy-context`,d)),t.contextTypes&&!Qv.has(t)&&(e.mode&_n)===xt&&(Qv.add(t),p(`%s uses the legacy contextTypes API which is no longer supported and will be removed in the next major release. Use React.createContext() with static contextType instead.
|
|
184
|
+
|
|
185
|
+
Learn more about this warning here: https://reactjs.org/link/legacy-context`,d)),s.contextTypes&&p("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",d),t.contextType&&t.contextTypes&&!$S.has(t)&&($S.add(t),p("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",d)),typeof s.componentShouldUpdate=="function"&&p("%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.",d),t.prototype&&t.prototype.isPureReactComponent&&typeof s.shouldComponentUpdate<"u"&&p("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",tn(t)||"A pure component"),typeof s.componentDidUnmount=="function"&&p("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",d),typeof s.componentDidReceiveProps=="function"&&p("%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().",d),typeof s.componentWillRecieveProps=="function"&&p("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",d),typeof s.UNSAFE_componentWillRecieveProps=="function"&&p("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",d);var b=s.props!==o;s.props!==void 0&&b&&p("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",d,d),s.defaultProps&&p("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",d,d),typeof s.getSnapshotBeforeUpdate=="function"&&typeof s.componentDidUpdate!="function"&&!LS.has(t)&&(LS.add(t),p("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",tn(t))),typeof s.getDerivedStateFromProps=="function"&&p("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",d),typeof s.getDerivedStateFromError=="function"&&p("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",d),typeof t.getSnapshotBeforeUpdate=="function"&&p("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",d);var T=s.state;T&&(typeof T!="object"||Ft(T))&&p("%s.state: must be set to an object or null",d),typeof s.getChildContext=="function"&&typeof t.childContextTypes!="object"&&p("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",d)}}function qk(e,t){t.updater=IS,e.stateNode=t,ds(t,e),t._reactInternalInstance=DS}function Gk(e,t,o){var s=!1,d=Yi,m=Yi,b=t.contextType;if("contextType"in t){var T=b===null||b!==void 0&&b.$$typeof===Q&&b._context===void 0;if(!T&&!US.has(t)){US.add(t);var M="";b===void 0?M=" 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 b!="object"?M=" However, it is set to a "+typeof b+".":b.$$typeof===pa?M=" Did you accidentally pass the Context.Provider instead?":b._context!==void 0?M=" Did you accidentally pass the Context.Consumer instead?":M=" However, it is set to an object with keys {"+Object.keys(b).join(", ")+"}.",p("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",tn(t)||"Component",M)}}if(typeof b=="object"&&b!==null)m=jr(b);else{d=cp(e,t,!0);var P=t.contextTypes;s=P!=null,m=s?fp(e,d):Yi}var F=new t(o,m);if(e.mode&_n){Qn(!0);try{F=new t(o,m)}finally{Qn(!1)}}var se=e.memoizedState=F.state!==null&&F.state!==void 0?F.state:null;qk(e,F);{if(typeof t.getDerivedStateFromProps=="function"&&se===null){var ae=tn(t)||"Component";OS.has(ae)||(OS.add(ae),p("`%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.",ae,F.state===null?"null":"undefined",ae))}if(typeof t.getDerivedStateFromProps=="function"||typeof F.getSnapshotBeforeUpdate=="function"){var ye=null,we=null,Ee=null;if(typeof F.componentWillMount=="function"&&F.componentWillMount.__suppressDeprecationWarning!==!0?ye="componentWillMount":typeof F.UNSAFE_componentWillMount=="function"&&(ye="UNSAFE_componentWillMount"),typeof F.componentWillReceiveProps=="function"&&F.componentWillReceiveProps.__suppressDeprecationWarning!==!0?we="componentWillReceiveProps":typeof F.UNSAFE_componentWillReceiveProps=="function"&&(we="UNSAFE_componentWillReceiveProps"),typeof F.componentWillUpdate=="function"&&F.componentWillUpdate.__suppressDeprecationWarning!==!0?Ee="componentWillUpdate":typeof F.UNSAFE_componentWillUpdate=="function"&&(Ee="UNSAFE_componentWillUpdate"),ye!==null||we!==null||Ee!==null){var et=tn(t)||"Component",St=typeof t.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";zS.has(et)||(zS.add(et),p(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
186
|
+
|
|
187
|
+
%s uses %s but also contains the following legacy lifecycles:%s%s%s
|
|
188
|
+
|
|
189
|
+
The above lifecycles should be removed. Learn more about this warning here:
|
|
190
|
+
https://reactjs.org/link/unsafe-component-lifecycles`,et,St,ye!==null?`
|
|
191
|
+
`+ye:"",we!==null?`
|
|
192
|
+
`+we:"",Ee!==null?`
|
|
193
|
+
`+Ee:""))}}}return s&&PR(e,d,m),F}function kU(e,t){var o=t.state;typeof t.componentWillMount=="function"&&t.componentWillMount(),typeof t.UNSAFE_componentWillMount=="function"&&t.UNSAFE_componentWillMount(),o!==t.state&&(p("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",Lt(e)||"Component"),IS.enqueueReplaceState(t,t.state,null))}function Kk(e,t,o,s){var d=t.state;if(typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(o,s),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(o,s),t.state!==d){{var m=Lt(e)||"Component";AS.has(m)||(AS.add(m),p("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",m))}IS.enqueueReplaceState(t,t.state,null)}}function BS(e,t,o,s){RU(e,t,o);var d=e.stateNode;d.props=o,d.state=e.memoizedState,d.refs={},Qw(e);var m=t.contextType;if(typeof m=="object"&&m!==null)d.context=jr(m);else{var b=cp(e,t,!0);d.context=fp(e,b)}{if(d.state===o){var T=tn(t)||"Component";PS.has(T)||(PS.add(T),p("%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.",T))}e.mode&_n&&Jo.recordLegacyContextWarning(e,d),Jo.recordUnsafeLifecycleWarnings(e,d)}d.state=e.memoizedState;var M=t.getDerivedStateFromProps;if(typeof M=="function"&&(FS(e,t,M,o),d.state=e.memoizedState),typeof t.getDerivedStateFromProps!="function"&&typeof d.getSnapshotBeforeUpdate!="function"&&(typeof d.UNSAFE_componentWillMount=="function"||typeof d.componentWillMount=="function")&&(kU(e,d),b0(e,o,d,s),d.state=e.memoizedState),typeof d.componentDidMount=="function"){var P=Gt;P|=Io,(e.mode&fn)!==xt&&(P|=Tl),e.flags|=P}}function MU(e,t,o,s){var d=e.stateNode,m=e.memoizedProps;d.props=m;var b=d.context,T=t.contextType,M=Yi;if(typeof T=="object"&&T!==null)M=jr(T);else{var P=cp(e,t,!0);M=fp(e,P)}var F=t.getDerivedStateFromProps,se=typeof F=="function"||typeof d.getSnapshotBeforeUpdate=="function";!se&&(typeof d.UNSAFE_componentWillReceiveProps=="function"||typeof d.componentWillReceiveProps=="function")&&(m!==o||b!==M)&&Kk(e,d,o,M),ck();var ae=e.memoizedState,ye=d.state=ae;if(b0(e,o,d,s),ye=e.memoizedState,m===o&&ae===ye&&!t0()&&!w0()){if(typeof d.componentDidMount=="function"){var we=Gt;we|=Io,(e.mode&fn)!==xt&&(we|=Tl),e.flags|=we}return!1}typeof F=="function"&&(FS(e,t,F,o),ye=e.memoizedState);var Ee=w0()||Wk(e,t,m,o,ae,ye,M);if(Ee){if(!se&&(typeof d.UNSAFE_componentWillMount=="function"||typeof d.componentWillMount=="function")&&(typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount()),typeof d.componentDidMount=="function"){var et=Gt;et|=Io,(e.mode&fn)!==xt&&(et|=Tl),e.flags|=et}}else{if(typeof d.componentDidMount=="function"){var St=Gt;St|=Io,(e.mode&fn)!==xt&&(St|=Tl),e.flags|=St}e.memoizedProps=o,e.memoizedState=ye}return d.props=o,d.state=ye,d.context=M,Ee}function NU(e,t,o,s,d){var m=t.stateNode;uk(e,t);var b=t.memoizedProps,T=t.type===t.elementType?b:tl(t.type,b);m.props=T;var M=t.pendingProps,P=m.context,F=o.contextType,se=Yi;if(typeof F=="object"&&F!==null)se=jr(F);else{var ae=cp(t,o,!0);se=fp(t,ae)}var ye=o.getDerivedStateFromProps,we=typeof ye=="function"||typeof m.getSnapshotBeforeUpdate=="function";!we&&(typeof m.UNSAFE_componentWillReceiveProps=="function"||typeof m.componentWillReceiveProps=="function")&&(b!==M||P!==se)&&Kk(t,m,s,se),ck();var Ee=t.memoizedState,et=m.state=Ee;if(b0(t,s,m,d),et=t.memoizedState,b===M&&Ee===et&&!t0()&&!w0()&&!J)return typeof m.componentDidUpdate=="function"&&(b!==e.memoizedProps||Ee!==e.memoizedState)&&(t.flags|=Gt),typeof m.getSnapshotBeforeUpdate=="function"&&(b!==e.memoizedProps||Ee!==e.memoizedState)&&(t.flags|=Er),!1;typeof ye=="function"&&(FS(t,o,ye,s),et=t.memoizedState);var St=w0()||Wk(t,o,T,s,Ee,et,se)||J;return St?(!we&&(typeof m.UNSAFE_componentWillUpdate=="function"||typeof m.componentWillUpdate=="function")&&(typeof m.componentWillUpdate=="function"&&m.componentWillUpdate(s,et,se),typeof m.UNSAFE_componentWillUpdate=="function"&&m.UNSAFE_componentWillUpdate(s,et,se)),typeof m.componentDidUpdate=="function"&&(t.flags|=Gt),typeof m.getSnapshotBeforeUpdate=="function"&&(t.flags|=Er)):(typeof m.componentDidUpdate=="function"&&(b!==e.memoizedProps||Ee!==e.memoizedState)&&(t.flags|=Gt),typeof m.getSnapshotBeforeUpdate=="function"&&(b!==e.memoizedProps||Ee!==e.memoizedState)&&(t.flags|=Er),t.memoizedProps=s,t.memoizedState=et),m.props=s,m.state=et,m.context=se,St}function Sf(e,t){return{value:e,source:t,stack:zo(t),digest:null}}function HS(e,t,o){return{value:e,source:null,stack:o??null,digest:t??null}}function DU(e,t){return!0}function VS(e,t){try{var o=DU(e,t);if(o===!1)return;var s=t.value,d=t.source,m=t.stack,b=m!==null?m:"";if(s!=null&&s._suppressLogging){if(e.tag===S)return;console.error(s)}var T=d?Lt(d):null,M=T?"The above error occurred in the <"+T+"> component:":"The above error occurred in one of your React components:",P;if(e.tag===w)P=`Consider adding an error boundary to your tree to customize error handling behavior.
|
|
194
|
+
Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries.`;else{var F=Lt(e)||"Anonymous";P="React will try to recreate this component tree from scratch "+("using the error boundary you provided, "+F+".")}var se=M+`
|
|
195
|
+
`+b+`
|
|
196
|
+
|
|
197
|
+
`+(""+P);console.error(se)}catch(ae){setTimeout(function(){throw ae})}}var AU=typeof WeakMap=="function"?WeakMap:Map;function Xk(e,t,o){var s=$s(Nn,o);s.tag=Kw,s.payload={element:null};var d=t.value;return s.callback=function(){EI(d),VS(e,t)},s}function YS(e,t,o){var s=$s(Nn,o);s.tag=Kw;var d=e.type.getDerivedStateFromError;if(typeof d=="function"){var m=t.value;s.payload=function(){return d(m)},s.callback=function(){lM(e),VS(e,t)}}var b=e.stateNode;return b!==null&&typeof b.componentDidCatch=="function"&&(s.callback=function(){lM(e),VS(e,t),typeof d!="function"&&SI(this);var M=t.value,P=t.stack;this.componentDidCatch(M,{componentStack:P!==null?P:""}),typeof d!="function"&&(Ua(e.lanes,Mt)||p("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",Lt(e)||"Unknown"))}),s}function Qk(e,t,o){var s=e.pingCache,d;if(s===null?(s=e.pingCache=new AU,d=new Set,s.set(t,d)):(d=s.get(t),d===void 0&&(d=new Set,s.set(t,d))),!d.has(o)){d.add(o);var m=_I.bind(null,e,t,o);Pa&&hm(e,o),t.then(m,m)}}function OU(e,t,o,s){var d=e.updateQueue;if(d===null){var m=new Set;m.add(o),e.updateQueue=m}else d.add(o)}function LU(e,t){var o=e.tag;if((e.mode&Bt)===xt&&(o===x||o===L||o===q)){var s=e.alternate;s?(e.updateQueue=s.updateQueue,e.memoizedState=s.memoizedState,e.lanes=s.lanes):(e.updateQueue=null,e.memoizedState=null)}}function Jk(e){var t=e;do{if(t.tag===H&&hU(t))return t;t=t.return}while(t!==null);return null}function Zk(e,t,o,s,d){if((e.mode&Bt)===xt){if(e===t)e.flags|=Ar;else{if(e.flags|=gt,o.flags|=pd,o.flags&=-52805,o.tag===S){var m=o.alternate;if(m===null)o.tag=fe;else{var b=$s(Nn,Mt);b.tag=m0,Fu(o,b,Mt)}}o.lanes=Ut(o.lanes,Mt)}return e}return e.flags|=Ar,e.lanes=d,e}function zU(e,t,o,s,d){if(o.flags|=Nc,Pa&&hm(e,d),s!==null&&typeof s=="object"&&typeof s.then=="function"){var m=s;LU(o),Ca()&&o.mode&Bt&&VR();var b=Jk(t);if(b!==null){b.flags&=~aa,Zk(b,t,o,e,d),b.mode&Bt&&Qk(e,m,d),OU(b,e,m);return}else{if(!iy(d)){Qk(e,m,d),E1();return}var T=new Error("A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition.");s=T}}else if(Ca()&&o.mode&Bt){VR();var M=Jk(t);if(M!==null){(M.flags&Ar)===yt&&(M.flags|=aa),Zk(M,t,o,e,d),Pw(Sf(s,o));return}}s=Sf(s,o),hI(s);var P=t;do{switch(P.tag){case w:{var F=s;P.flags|=Ar;var se=Yc(d);P.lanes=Ut(P.lanes,se);var ae=Xk(P,F,se);Jw(P,ae);return}case S:var ye=s,we=P.type,Ee=P.stateNode;if((P.flags>)===yt&&(typeof we.getDerivedStateFromError=="function"||Ee!==null&&typeof Ee.componentDidCatch=="function"&&!J2(Ee))){P.flags|=Ar;var et=Yc(d);P.lanes=Ut(P.lanes,et);var St=YS(P,ye,et);Jw(P,St);return}break}P=P.return}while(P!==null)}function jU(){return null}var Jv=l.ReactCurrentOwner,nl=!1,WS,Zv,qS,GS,KS,Cf,XS,Y0,em;WS={},Zv={},qS={},GS={},KS={},Cf=!1,XS={},Y0={},em={};function ai(e,t,o,s){e===null?t.child=nk(t,null,o,s):t.child=vp(t,e.child,o,s)}function PU(e,t,o,s){t.child=vp(t,e.child,null,s),t.child=vp(t,null,o,s)}function e2(e,t,o,s,d){if(t.type!==t.elementType){var m=o.propTypes;m&&Xo(m,s,"prop",tn(o))}var b=o.render,T=t.ref,M,P;gp(t,d),ei(t);{if(Jv.current=t,Cr(!0),M=Cp(e,t,b,s,T,d),P=Ep(),t.mode&_n){Qn(!0);try{M=Cp(e,t,b,s,T,d),P=Ep()}finally{Qn(!1)}}Cr(!1)}return ti(),e!==null&&!nl?(mk(e,t,d),Us(e,t,d)):(Ca()&&P&&Dw(t),t.flags|=Fi,ai(e,t,M,d),t.child)}function t2(e,t,o,s,d){if(e===null){var m=o.type;if(BI(m)&&o.compare===null&&o.defaultProps===void 0){var b=m;return b=Ap(m),t.tag=q,t.type=b,ZS(t,m),n2(e,t,b,s,d)}{var T=m.propTypes;if(T&&Xo(T,s,"prop",tn(m)),o.defaultProps!==void 0){var M=tn(m)||"Unknown";em[M]||(p("%s: Support for defaultProps will be removed from memo components in a future major release. Use JavaScript default parameters instead.",M),em[M]=!0)}}var P=z1(o.type,null,s,t,t.mode,d);return P.ref=t.ref,P.return=t,t.child=P,P}{var F=o.type,se=F.propTypes;se&&Xo(se,s,"prop",tn(F))}var ae=e.child,ye=i1(e,d);if(!ye){var we=ae.memoizedProps,Ee=o.compare;if(Ee=Ee!==null?Ee:ft,Ee(we,s)&&e.ref===t.ref)return Us(e,t,d)}t.flags|=Fi;var et=kf(ae,s);return et.ref=t.ref,et.return=t,t.child=et,et}function n2(e,t,o,s,d){if(t.type!==t.elementType){var m=t.elementType;if(m.$$typeof===Rt){var b=m,T=b._payload,M=b._init;try{m=M(T)}catch{m=null}var P=m&&m.propTypes;P&&Xo(P,s,"prop",tn(m))}}if(e!==null){var F=e.memoizedProps;if(ft(F,s)&&e.ref===t.ref&&t.type===e.type)if(nl=!1,t.pendingProps=s=F,i1(e,d))(e.flags&pd)!==yt&&(nl=!0);else return t.lanes=e.lanes,Us(e,t,d)}return QS(e,t,o,s,d)}function r2(e,t,o){var s=t.pendingProps,d=s.children,m=e!==null?e.memoizedState:null;if(s.mode==="hidden"||ne)if((t.mode&Bt)===xt){var b={baseLanes:Le,cachePool:null,transitions:null};t.memoizedState=b,ax(t,o)}else if(Ua(o,$a)){var se={baseLanes:Le,cachePool:null,transitions:null};t.memoizedState=se;var ae=m!==null?m.baseLanes:o;ax(t,ae)}else{var T=null,M;if(m!==null){var P=m.baseLanes;M=Ut(P,o)}else M=o;t.lanes=t.childLanes=$a;var F={baseLanes:M,cachePool:T,transitions:null};return t.memoizedState=F,t.updateQueue=null,ax(t,M),null}else{var ye;m!==null?(ye=Ut(m.baseLanes,o),t.memoizedState=null):ye=o,ax(t,ye)}return ai(e,t,d,o),t.child}function $U(e,t,o){var s=t.pendingProps;return ai(e,t,s,o),t.child}function UU(e,t,o){var s=t.pendingProps.children;return ai(e,t,s,o),t.child}function FU(e,t,o){{t.flags|=Gt;{var s=t.stateNode;s.effectDuration=0,s.passiveEffectDuration=0}}var d=t.pendingProps,m=d.children;return ai(e,t,m,o),t.child}function a2(e,t){var o=t.ref;(e===null&&o!==null||e!==null&&e.ref!==o)&&(t.flags|=ar,t.flags|=wu)}function QS(e,t,o,s,d){if(t.type!==t.elementType){var m=o.propTypes;m&&Xo(m,s,"prop",tn(o))}var b;{var T=cp(t,o,!0);b=fp(t,T)}var M,P;gp(t,d),ei(t);{if(Jv.current=t,Cr(!0),M=Cp(e,t,o,s,b,d),P=Ep(),t.mode&_n){Qn(!0);try{M=Cp(e,t,o,s,b,d),P=Ep()}finally{Qn(!1)}}Cr(!1)}return ti(),e!==null&&!nl?(mk(e,t,d),Us(e,t,d)):(Ca()&&P&&Dw(t),t.flags|=Fi,ai(e,t,M,d),t.child)}function i2(e,t,o,s,d){{switch(r8(t)){case!1:{var m=t.stateNode,b=t.type,T=new b(t.memoizedProps,m.context),M=T.state;m.updater.enqueueSetState(m,M,null);break}case!0:{t.flags|=gt,t.flags|=Ar;var P=new Error("Simulated error coming from DevTools"),F=Yc(d);t.lanes=Ut(t.lanes,F);var se=YS(t,Sf(P,t),F);Jw(t,se);break}}if(t.type!==t.elementType){var ae=o.propTypes;ae&&Xo(ae,s,"prop",tn(o))}}var ye;Hl(o)?(ye=!0,r0(t)):ye=!1,gp(t,d);var we=t.stateNode,Ee;we===null?(q0(e,t),Gk(t,o,s),BS(t,o,s,d),Ee=!0):e===null?Ee=MU(t,o,s,d):Ee=NU(e,t,o,s,d);var et=JS(e,t,o,Ee,ye,d);{var St=t.stateNode;Ee&&St.props!==s&&(Cf||p("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",Lt(t)||"a component"),Cf=!0)}return et}function JS(e,t,o,s,d,m){a2(e,t);var b=(t.flags>)!==yt;if(!s&&!b)return d&&FR(t,o,!1),Us(e,t,m);var T=t.stateNode;Jv.current=t;var M;if(b&&typeof o.getDerivedStateFromError!="function")M=null,Hk();else{ei(t);{if(Cr(!0),M=T.render(),t.mode&_n){Qn(!0);try{T.render()}finally{Qn(!1)}}Cr(!1)}ti()}return t.flags|=Fi,e!==null&&b?PU(e,t,M,m):ai(e,t,M,m),t.memoizedState=T.state,d&&FR(t,o,!0),t.child}function o2(e){var t=e.stateNode;t.pendingContext?$R(e,t.pendingContext,t.pendingContext!==t.context):t.context&&$R(e,t.context,!1),Zw(e,t.containerInfo)}function IU(e,t,o){if(o2(t),e===null)throw new Error("Should have a current fiber. This is a bug in React.");var s=t.pendingProps,d=t.memoizedState,m=d.element;uk(e,t),b0(t,s,null,o);var b=t.memoizedState;t.stateNode;var T=b.element;if(d.isDehydrated){var M={element:T,isDehydrated:!1,cache:b.cache,pendingSuspenseBoundaries:b.pendingSuspenseBoundaries,transitions:b.transitions},P=t.updateQueue;if(P.baseState=M,t.memoizedState=M,t.flags&aa){var F=Sf(new Error("There was an error while hydrating. Because the error happened outside of a Suspense boundary, the entire root will switch to client rendering."),t);return l2(e,t,T,o,F)}else if(T!==m){var se=Sf(new Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),t);return l2(e,t,T,o,se)}else{V$(t);var ae=nk(t,null,T,o);t.child=ae;for(var ye=ae;ye;)ye.flags=ye.flags&~Xn|La,ye=ye.sibling}}else{if(hp(),T===m)return Us(e,t,o);ai(e,t,T,o)}return t.child}function l2(e,t,o,s,d){return hp(),Pw(d),t.flags|=aa,ai(e,t,o,s),t.child}function BU(e,t,o){pk(t),e===null&&jw(t);var s=t.type,d=t.pendingProps,m=e!==null?e.memoizedProps:null,b=d.children,T=gw(s,d);return T?b=null:m!==null&&gw(s,m)&&(t.flags|=yi),a2(e,t),ai(e,t,b,o),t.child}function HU(e,t){return e===null&&jw(t),null}function VU(e,t,o,s){q0(e,t);var d=t.pendingProps,m=o,b=m._payload,T=m._init,M=T(b);t.type=M;var P=t.tag=HI(M),F=tl(M,d),se;switch(P){case x:return ZS(t,M),t.type=M=Ap(M),se=QS(null,t,M,F,s),se;case S:return t.type=M=M1(M),se=i2(null,t,M,F,s),se;case L:return t.type=M=N1(M),se=e2(null,t,M,F,s),se;case I:{if(t.type!==t.elementType){var ae=M.propTypes;ae&&Xo(ae,F,"prop",tn(M))}return se=t2(null,t,M,tl(M.type,F),s),se}}var ye="";throw M!==null&&typeof M=="object"&&M.$$typeof===Rt&&(ye=" Did you wrap a component in React.lazy() more than once?"),new Error("Element type is invalid. Received a promise that resolves to: "+M+". "+("Lazy element type must resolve to a class or function."+ye))}function YU(e,t,o,s,d){q0(e,t),t.tag=S;var m;return Hl(o)?(m=!0,r0(t)):m=!1,gp(t,d),Gk(t,o,s),BS(t,o,s,d),JS(null,t,o,!0,m,d)}function WU(e,t,o,s){q0(e,t);var d=t.pendingProps,m;{var b=cp(t,o,!1);m=fp(t,b)}gp(t,s);var T,M;ei(t);{if(o.prototype&&typeof o.prototype.render=="function"){var P=tn(o)||"Unknown";WS[P]||(p("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.",P,P),WS[P]=!0)}t.mode&_n&&Jo.recordLegacyContextWarning(t,null),Cr(!0),Jv.current=t,T=Cp(null,t,o,d,m,s),M=Ep(),Cr(!1)}if(ti(),t.flags|=Fi,typeof T=="object"&&T!==null&&typeof T.render=="function"&&T.$$typeof===void 0){var F=tn(o)||"Unknown";Zv[F]||(p("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",F,F,F),Zv[F]=!0)}if(typeof T=="object"&&T!==null&&typeof T.render=="function"&&T.$$typeof===void 0){{var se=tn(o)||"Unknown";Zv[se]||(p("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",se,se,se),Zv[se]=!0)}t.tag=S,t.memoizedState=null,t.updateQueue=null;var ae=!1;return Hl(o)?(ae=!0,r0(t)):ae=!1,t.memoizedState=T.state!==null&&T.state!==void 0?T.state:null,Qw(t),qk(t,T),BS(t,o,d,s),JS(null,t,o,!0,ae,s)}else{if(t.tag=x,t.mode&_n){Qn(!0);try{T=Cp(null,t,o,d,m,s),M=Ep()}finally{Qn(!1)}}return Ca()&&M&&Dw(t),ai(null,t,T,s),ZS(t,o),t.child}}function ZS(e,t){{if(t&&t.childContextTypes&&p("%s(...): childContextTypes cannot be defined on a function component.",t.displayName||t.name||"Component"),e.ref!==null){var o="",s=ma();s&&(o+=`
|
|
198
|
+
|
|
199
|
+
Check the render method of \``+s+"`.");var d=s||"",m=e._debugSource;m&&(d=m.fileName+":"+m.lineNumber),KS[d]||(KS[d]=!0,p("Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?%s",o))}if(t.defaultProps!==void 0){var b=tn(t)||"Unknown";em[b]||(p("%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.",b),em[b]=!0)}if(typeof t.getDerivedStateFromProps=="function"){var T=tn(t)||"Unknown";GS[T]||(p("%s: Function components do not support getDerivedStateFromProps.",T),GS[T]=!0)}if(typeof t.contextType=="object"&&t.contextType!==null){var M=tn(t)||"Unknown";qS[M]||(p("%s: Function components do not support contextType.",M),qS[M]=!0)}}}var e1={dehydrated:null,treeContext:null,retryLane:on};function t1(e){return{baseLanes:e,cachePool:jU(),transitions:null}}function qU(e,t){var o=null;return{baseLanes:Ut(e.baseLanes,t),cachePool:o,transitions:e.transitions}}function GU(e,t,o,s){if(t!==null){var d=t.memoizedState;if(d===null)return!1}return nS(e,Hv)}function KU(e,t){return Wc(e.childLanes,t)}function s2(e,t,o){var s=t.pendingProps;a8(t)&&(t.flags|=gt);var d=Zo.current,m=!1,b=(t.flags>)!==yt;if(b||GU(d,e)?(m=!0,t.flags&=~gt):(e===null||e.memoizedState!==null)&&(d=pU(d,vk)),d=xp(d),Bu(t,d),e===null){jw(t);var T=t.memoizedState;if(T!==null){var M=T.dehydrated;if(M!==null)return eF(t,M)}var P=s.children,F=s.fallback;if(m){var se=XU(t,P,F,o),ae=t.child;return ae.memoizedState=t1(o),t.memoizedState=e1,se}else return n1(t,P)}else{var ye=e.memoizedState;if(ye!==null){var we=ye.dehydrated;if(we!==null)return tF(e,t,b,s,we,ye,o)}if(m){var Ee=s.fallback,et=s.children,St=JU(e,t,et,Ee,o),mt=t.child,Qt=e.child.memoizedState;return mt.memoizedState=Qt===null?t1(o):qU(Qt,o),mt.childLanes=KU(e,o),t.memoizedState=e1,St}else{var Yt=s.children,ve=QU(e,t,Yt,o);return t.memoizedState=null,ve}}}function n1(e,t,o){var s=e.mode,d={mode:"visible",children:t},m=r1(d,s);return m.return=e,e.child=m,m}function XU(e,t,o,s){var d=e.mode,m=e.child,b={mode:"hidden",children:t},T,M;return(d&Bt)===xt&&m!==null?(T=m,T.childLanes=Le,T.pendingProps=b,e.mode&cn&&(T.actualDuration=0,T.actualStartTime=-1,T.selfBaseDuration=0,T.treeBaseDuration=0),M=Xu(o,d,s,null)):(T=r1(b,d),M=Xu(o,d,s,null)),T.return=e,M.return=e,T.sibling=M,e.child=T,M}function r1(e,t,o){return uM(e,t,Le,null)}function u2(e,t){return kf(e,t)}function QU(e,t,o,s){var d=e.child,m=d.sibling,b=u2(d,{mode:"visible",children:o});if((t.mode&Bt)===xt&&(b.lanes=s),b.return=t,b.sibling=null,m!==null){var T=t.deletions;T===null?(t.deletions=[m],t.flags|=gi):T.push(m)}return t.child=b,b}function JU(e,t,o,s,d){var m=t.mode,b=e.child,T=b.sibling,M={mode:"hidden",children:o},P;if((m&Bt)===xt&&t.child!==b){var F=t.child;P=F,P.childLanes=Le,P.pendingProps=M,t.mode&cn&&(P.actualDuration=0,P.actualStartTime=-1,P.selfBaseDuration=b.selfBaseDuration,P.treeBaseDuration=b.treeBaseDuration),t.deletions=null}else P=u2(b,M),P.subtreeFlags=b.subtreeFlags&hr;var se;return T!==null?se=kf(T,s):(se=Xu(s,m,d,null),se.flags|=Xn),se.return=t,P.return=t,P.sibling=se,t.child=P,se}function W0(e,t,o,s){s!==null&&Pw(s),vp(t,e.child,null,o);var d=t.pendingProps,m=d.children,b=n1(t,m);return b.flags|=Xn,t.memoizedState=null,b}function ZU(e,t,o,s,d){var m=t.mode,b={mode:"visible",children:o},T=r1(b,m),M=Xu(s,m,d,null);return M.flags|=Xn,T.return=t,M.return=t,T.sibling=M,t.child=T,(t.mode&Bt)!==xt&&vp(t,e.child,null,d),M}function eF(e,t,o){return(e.mode&Bt)===xt?(p("Cannot hydrate Suspense in legacy mode. Switch from ReactDOM.hydrate(element, container) to ReactDOMClient.hydrateRoot(container, <App />).render(element) or remove the Suspense components from the server rendered components."),e.lanes=Mt):ww(t)?e.lanes=ia:e.lanes=$a,null}function tF(e,t,o,s,d,m,b){if(o)if(t.flags&aa){t.flags&=~aa;var ve=HS(new Error("There was an error while hydrating this Suspense boundary. Switched to client rendering."));return W0(e,t,b,ve)}else{if(t.memoizedState!==null)return t.child=e.child,t.flags|=gt,null;var _e=s.children,me=s.fallback,Fe=ZU(e,t,_e,me,b),it=t.child;return it.memoizedState=t1(b),t.memoizedState=e1,Fe}else{if(B$(),(t.mode&Bt)===xt)return W0(e,t,b,null);if(ww(d)){var T,M,P;{var F=i$(d);T=F.digest,M=F.message,P=F.stack}var se;M?se=new Error(M):se=new Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.");var ae=HS(se,T,P);return W0(e,t,b,ae)}var ye=Ua(b,e.childLanes);if(nl||ye){var we=rx();if(we!==null){var Ee=rv(we,b);if(Ee!==on&&Ee!==m.retryLane){m.retryLane=Ee;var et=Nn;Ri(e,Ee),Qr(we,e,Ee,et)}}E1();var St=HS(new Error("This Suspense boundary received an update before it finished hydrating. This caused the boundary to switch to client rendering. The usual way to fix this is to wrap the original update in startTransition."));return W0(e,t,b,St)}else if(AR(d)){t.flags|=gt,t.child=e.child;var mt=TI.bind(null,e);return o$(d,mt),null}else{Y$(t,d,m.treeContext);var Qt=s.children,Yt=n1(t,Qt);return Yt.flags|=La,Yt}}}function c2(e,t,o){e.lanes=Ut(e.lanes,t);var s=e.alternate;s!==null&&(s.lanes=Ut(s.lanes,t)),qw(e.return,t,o)}function nF(e,t,o){for(var s=t;s!==null;){if(s.tag===H){var d=s.memoizedState;d!==null&&c2(s,o,e)}else if(s.tag===oe)c2(s,o,e);else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===e)return;for(;s.sibling===null;){if(s.return===null||s.return===e)return;s=s.return}s.sibling.return=s.return,s=s.sibling}}function rF(e){for(var t=e,o=null;t!==null;){var s=t.alternate;s!==null&&E0(s)===null&&(o=t),t=t.sibling}return o}function aF(e){if(e!==void 0&&e!=="forwards"&&e!=="backwards"&&e!=="together"&&!XS[e])if(XS[e]=!0,typeof e=="string")switch(e.toLowerCase()){case"together":case"forwards":case"backwards":{p('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',e,e.toLowerCase());break}case"forward":case"backward":{p('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',e,e.toLowerCase());break}default:p('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',e);break}else p('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',e)}function iF(e,t){e!==void 0&&!Y0[e]&&(e!=="collapsed"&&e!=="hidden"?(Y0[e]=!0,p('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',e)):t!=="forwards"&&t!=="backwards"&&(Y0[e]=!0,p('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',e)))}function f2(e,t){{var o=Ft(e),s=!o&&typeof kt(e)=="function";if(o||s){var d=o?"array":"iterable";return p("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>",d,t,d),!1}}return!0}function oF(e,t){if((t==="forwards"||t==="backwards")&&e!==void 0&&e!==null&&e!==!1)if(Ft(e)){for(var o=0;o<e.length;o++)if(!f2(e[o],o))return}else{var s=kt(e);if(typeof s=="function"){var d=s.call(e);if(d)for(var m=d.next(),b=0;!m.done;m=d.next()){if(!f2(m.value,b))return;b++}}else p('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?',t)}}function a1(e,t,o,s,d){var m=e.memoizedState;m===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:s,tail:o,tailMode:d}:(m.isBackwards=t,m.rendering=null,m.renderingStartTime=0,m.last=s,m.tail=o,m.tailMode=d)}function d2(e,t,o){var s=t.pendingProps,d=s.revealOrder,m=s.tail,b=s.children;aF(d),iF(m,d),oF(b,d),ai(e,t,b,o);var T=Zo.current,M=nS(T,Hv);if(M)T=rS(T,Hv),t.flags|=gt;else{var P=e!==null&&(e.flags>)!==yt;P&&nF(t,t.child,o),T=xp(T)}if(Bu(t,T),(t.mode&Bt)===xt)t.memoizedState=null;else switch(d){case"forwards":{var F=rF(t.child),se;F===null?(se=t.child,t.child=null):(se=F.sibling,F.sibling=null),a1(t,!1,se,F,m);break}case"backwards":{var ae=null,ye=t.child;for(t.child=null;ye!==null;){var we=ye.alternate;if(we!==null&&E0(we)===null){t.child=ye;break}var Ee=ye.sibling;ye.sibling=ae,ae=ye,ye=Ee}a1(t,!0,ae,null,m);break}case"together":{a1(t,!1,null,null,void 0);break}default:t.memoizedState=null}return t.child}function lF(e,t,o){Zw(t,t.stateNode.containerInfo);var s=t.pendingProps;return e===null?t.child=vp(t,null,s,o):ai(e,t,s,o),t.child}var p2=!1;function sF(e,t,o){var s=t.type,d=s._context,m=t.pendingProps,b=t.memoizedProps,T=m.value;{"value"in m||p2||(p2=!0,p("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?"));var M=t.type.propTypes;M&&Xo(M,m,"prop","Context.Provider")}if(ik(t,d,T),b!==null){var P=b.value;if(Pe(P,T)){if(b.children===m.children&&!t0())return Us(e,t,o)}else aU(t,d,o)}var F=m.children;return ai(e,t,F,o),t.child}var h2=!1;function uF(e,t,o){var s=t.type;s._context===void 0?s!==s.Consumer&&(h2||(h2=!0,p("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):s=s._context;var d=t.pendingProps,m=d.children;typeof m!="function"&&p("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."),gp(t,o);var b=jr(s);ei(t);var T;return Jv.current=t,Cr(!0),T=m(b),Cr(!1),ti(),t.flags|=Fi,ai(e,t,T,o),t.child}function tm(){nl=!0}function q0(e,t){(t.mode&Bt)===xt&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=Xn)}function Us(e,t,o){return e!==null&&(t.dependencies=e.dependencies),Hk(),pm(t.lanes),Ua(o,t.childLanes)?(nU(e,t),t.child):null}function cF(e,t,o){{var s=t.return;if(s===null)throw new Error("Cannot swap the root fiber.");if(e.alternate=null,t.alternate=null,o.index=t.index,o.sibling=t.sibling,o.return=t.return,o.ref=t.ref,t===s.child)s.child=o;else{var d=s.child;if(d===null)throw new Error("Expected parent to have a child.");for(;d.sibling!==t;)if(d=d.sibling,d===null)throw new Error("Expected to find the previous sibling.");d.sibling=o}var m=s.deletions;return m===null?(s.deletions=[e],s.flags|=gi):m.push(e),o.flags|=Xn,o}}function i1(e,t){var o=e.lanes;return!!Ua(o,t)}function fF(e,t,o){switch(t.tag){case w:o2(t),t.stateNode,hp();break;case N:pk(t);break;case S:{var s=t.type;Hl(s)&&r0(t);break}case _:Zw(t,t.stateNode.containerInfo);break;case U:{var d=t.memoizedProps.value,m=t.type._context;ik(t,m,d);break}case $:{var b=Ua(o,t.childLanes);b&&(t.flags|=Gt);{var T=t.stateNode;T.effectDuration=0,T.passiveEffectDuration=0}}break;case H:{var M=t.memoizedState;if(M!==null){if(M.dehydrated!==null)return Bu(t,xp(Zo.current)),t.flags|=gt,null;var P=t.child,F=P.childLanes;if(Ua(o,F))return s2(e,t,o);Bu(t,xp(Zo.current));var se=Us(e,t,o);return se!==null?se.sibling:null}else Bu(t,xp(Zo.current));break}case oe:{var ae=(e.flags>)!==yt,ye=Ua(o,t.childLanes);if(ae){if(ye)return d2(e,t,o);t.flags|=gt}var we=t.memoizedState;if(we!==null&&(we.rendering=null,we.tail=null,we.lastEffect=null),Bu(t,Zo.current),ye)break;return null}case he:case V:return t.lanes=Le,r2(e,t,o)}return Us(e,t,o)}function v2(e,t,o){if(t._debugNeedsRemount&&e!==null)return cF(e,t,z1(t.type,t.key,t.pendingProps,t._debugOwner||null,t.mode,t.lanes));if(e!==null){var s=e.memoizedProps,d=t.pendingProps;if(s!==d||t0()||t.type!==e.type)nl=!0;else{var m=i1(e,o);if(!m&&(t.flags>)===yt)return nl=!1,fF(e,t,o);(e.flags&pd)!==yt?nl=!0:nl=!1}}else if(nl=!1,Ca()&&j$(t)){var b=t.index,T=P$();HR(t,T,b)}switch(t.lanes=Le,t.tag){case E:return WU(e,t,t.type,o);case ie:{var M=t.elementType;return VU(e,t,M,o)}case x:{var P=t.type,F=t.pendingProps,se=t.elementType===P?F:tl(P,F);return QS(e,t,P,se,o)}case S:{var ae=t.type,ye=t.pendingProps,we=t.elementType===ae?ye:tl(ae,ye);return i2(e,t,ae,we,o)}case w:return IU(e,t,o);case N:return BU(e,t,o);case D:return HU(e,t);case H:return s2(e,t,o);case _:return lF(e,t,o);case L:{var Ee=t.type,et=t.pendingProps,St=t.elementType===Ee?et:tl(Ee,et);return e2(e,t,Ee,St,o)}case R:return $U(e,t,o);case j:return UU(e,t,o);case $:return FU(e,t,o);case U:return sF(e,t,o);case z:return uF(e,t,o);case I:{var mt=t.type,Qt=t.pendingProps,Yt=tl(mt,Qt);if(t.type!==t.elementType){var ve=mt.propTypes;ve&&Xo(ve,Yt,"prop",tn(mt))}return Yt=tl(mt.type,Yt),t2(e,t,mt,Yt,o)}case q:return n2(e,t,t.type,t.pendingProps,o);case fe:{var _e=t.type,me=t.pendingProps,Fe=t.elementType===_e?me:tl(_e,me);return YU(e,t,_e,Fe,o)}case oe:return d2(e,t,o);case de:break;case he:return r2(e,t,o)}throw new Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function _p(e){e.flags|=Gt}function m2(e){e.flags|=ar,e.flags|=wu}var g2,o1,y2,x2;g2=function(e,t,o,s){for(var d=t.child;d!==null;){if(d.tag===N||d.tag===D)OP(e,d.stateNode);else if(d.tag!==_){if(d.child!==null){d.child.return=d,d=d.child;continue}}if(d===t)return;for(;d.sibling===null;){if(d.return===null||d.return===t)return;d=d.return}d.sibling.return=d.return,d=d.sibling}},o1=function(e,t){},y2=function(e,t,o,s,d){var m=e.memoizedProps;if(m!==s){var b=t.stateNode,T=eS(),M=zP(b,o,m,s,d,T);t.updateQueue=M,M&&_p(t)}},x2=function(e,t,o,s){o!==s&&_p(t)};function nm(e,t){if(!Ca())switch(e.tailMode){case"hidden":{for(var o=e.tail,s=null;o!==null;)o.alternate!==null&&(s=o),o=o.sibling;s===null?e.tail=null:s.sibling=null;break}case"collapsed":{for(var d=e.tail,m=null;d!==null;)d.alternate!==null&&(m=d),d=d.sibling;m===null?!t&&e.tail!==null?e.tail.sibling=null:e.tail=null:m.sibling=null;break}}}function _a(e){var t=e.alternate!==null&&e.alternate.child===e.child,o=Le,s=yt;if(t){if((e.mode&cn)!==xt){for(var M=e.selfBaseDuration,P=e.child;P!==null;)o=Ut(o,Ut(P.lanes,P.childLanes)),s|=P.subtreeFlags&hr,s|=P.flags&hr,M+=P.treeBaseDuration,P=P.sibling;e.treeBaseDuration=M}else for(var F=e.child;F!==null;)o=Ut(o,Ut(F.lanes,F.childLanes)),s|=F.subtreeFlags&hr,s|=F.flags&hr,F.return=e,F=F.sibling;e.subtreeFlags|=s}else{if((e.mode&cn)!==xt){for(var d=e.actualDuration,m=e.selfBaseDuration,b=e.child;b!==null;)o=Ut(o,Ut(b.lanes,b.childLanes)),s|=b.subtreeFlags,s|=b.flags,d+=b.actualDuration,m+=b.treeBaseDuration,b=b.sibling;e.actualDuration=d,e.treeBaseDuration=m}else for(var T=e.child;T!==null;)o=Ut(o,Ut(T.lanes,T.childLanes)),s|=T.subtreeFlags,s|=T.flags,T.return=e,T=T.sibling;e.subtreeFlags|=s}return e.childLanes=o,t}function dF(e,t,o){if(X$()&&(t.mode&Bt)!==xt&&(t.flags>)===yt)return XR(t),hp(),t.flags|=aa|Nc|Ar,!1;var s=s0(t);if(o!==null&&o.dehydrated!==null)if(e===null){if(!s)throw new Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(G$(t),_a(t),(t.mode&cn)!==xt){var d=o!==null;if(d){var m=t.child;m!==null&&(t.treeBaseDuration-=m.treeBaseDuration)}}return!1}else{if(hp(),(t.flags>)===yt&&(t.memoizedState=null),t.flags|=Gt,_a(t),(t.mode&cn)!==xt){var b=o!==null;if(b){var T=t.child;T!==null&&(t.treeBaseDuration-=T.treeBaseDuration)}}return!1}else return QR(),!0}function b2(e,t,o){var s=t.pendingProps;switch(Aw(t),t.tag){case E:case ie:case q:case x:case L:case R:case j:case $:case z:case I:return _a(t),null;case S:{var d=t.type;return Hl(d)&&n0(t),_a(t),null}case w:{var m=t.stateNode;if(yp(t),kw(t),iS(),m.pendingContext&&(m.context=m.pendingContext,m.pendingContext=null),e===null||e.child===null){var b=s0(t);if(b)_p(t);else if(e!==null){var T=e.memoizedState;(!T.isDehydrated||(t.flags&aa)!==yt)&&(t.flags|=Er,QR())}}return o1(e,t),_a(t),null}case N:{tS(t);var M=dk(),P=t.type;if(e!==null&&t.stateNode!=null)y2(e,t,P,s,M),e.ref!==t.ref&&m2(t);else{if(!s){if(t.stateNode===null)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return _a(t),null}var F=eS(),se=s0(t);if(se)W$(t,M,F)&&_p(t);else{var ae=AP(P,s,M,F,t);g2(ae,t,!1,!1),t.stateNode=ae,LP(ae,P,s,M)&&_p(t)}t.ref!==null&&m2(t)}return _a(t),null}case D:{var ye=s;if(e&&t.stateNode!=null){var we=e.memoizedProps;x2(e,t,we,ye)}else{if(typeof ye!="string"&&t.stateNode===null)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");var Ee=dk(),et=eS(),St=s0(t);St?q$(t)&&_p(t):t.stateNode=jP(ye,Ee,et,t)}return _a(t),null}case H:{bp(t);var mt=t.memoizedState;if(e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){var Qt=dF(e,t,mt);if(!Qt)return t.flags&Ar?t:null}if((t.flags>)!==yt)return t.lanes=o,(t.mode&cn)!==xt&&NS(t),t;var Yt=mt!==null,ve=e!==null&&e.memoizedState!==null;if(Yt!==ve&&Yt){var _e=t.child;if(_e.flags|=pr,(t.mode&Bt)!==xt){var me=e===null&&(t.memoizedProps.unstable_avoidThisFallback!==!0||!0);me||nS(Zo.current,vk)?pI():E1()}}var Fe=t.updateQueue;if(Fe!==null&&(t.flags|=Gt),_a(t),(t.mode&cn)!==xt&&Yt){var it=t.child;it!==null&&(t.treeBaseDuration-=it.treeBaseDuration)}return null}case _:return yp(t),o1(e,t),e===null&&M$(t.stateNode.containerInfo),_a(t),null;case U:var tt=t.type._context;return Ww(tt,t),_a(t),null;case fe:{var Dt=t.type;return Hl(Dt)&&n0(t),_a(t),null}case oe:{bp(t);var jt=t.memoizedState;if(jt===null)return _a(t),null;var Rn=(t.flags>)!==yt,pn=jt.rendering;if(pn===null)if(Rn)nm(jt,!1);else{var Rr=vI()&&(e===null||(e.flags>)===yt);if(!Rr)for(var hn=t.child;hn!==null;){var br=E0(hn);if(br!==null){Rn=!0,t.flags|=gt,nm(jt,!1);var Wa=br.updateQueue;return Wa!==null&&(t.updateQueue=Wa,t.flags|=Gt),t.subtreeFlags=yt,rU(t,o),Bu(t,rS(Zo.current,Hv)),t.child}hn=hn.sibling}jt.tail!==null&&_r()>I2()&&(t.flags|=gt,Rn=!0,nm(jt,!1),t.lanes=Gh)}else{if(!Rn){var Na=E0(pn);if(Na!==null){t.flags|=gt,Rn=!0;var qi=Na.updateQueue;if(qi!==null&&(t.updateQueue=qi,t.flags|=Gt),nm(jt,!0),jt.tail===null&&jt.tailMode==="hidden"&&!pn.alternate&&!Ca())return _a(t),null}else _r()*2-jt.renderingStartTime>I2()&&o!==$a&&(t.flags|=gt,Rn=!0,nm(jt,!1),t.lanes=Gh)}if(jt.isBackwards)pn.sibling=t.child,t.child=pn;else{var li=jt.last;li!==null?li.sibling=pn:t.child=pn,jt.last=pn}}if(jt.tail!==null){var si=jt.tail;jt.rendering=si,jt.tail=si.sibling,jt.renderingStartTime=_r(),si.sibling=null;var qa=Zo.current;return Rn?qa=rS(qa,Hv):qa=xp(qa),Bu(t,qa),si}return _a(t),null}case de:break;case he:case V:{C1(t);var Vs=t.memoizedState,Op=Vs!==null;if(e!==null){var ym=e.memoizedState,Ql=ym!==null;Ql!==Op&&!ne&&(t.flags|=pr)}return!Op||(t.mode&Bt)===xt?_a(t):Ua(Xl,$a)&&(_a(t),t.subtreeFlags&(Xn|Gt)&&(t.flags|=pr)),null}case ce:return null;case Z:return null}throw new Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function pF(e,t,o){switch(Aw(t),t.tag){case S:{var s=t.type;Hl(s)&&n0(t);var d=t.flags;return d&Ar?(t.flags=d&~Ar|gt,(t.mode&cn)!==xt&&NS(t),t):null}case w:{t.stateNode,yp(t),kw(t),iS();var m=t.flags;return(m&Ar)!==yt&&(m>)===yt?(t.flags=m&~Ar|gt,t):null}case N:return tS(t),null;case H:{bp(t);var b=t.memoizedState;if(b!==null&&b.dehydrated!==null){if(t.alternate===null)throw new Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");hp()}var T=t.flags;return T&Ar?(t.flags=T&~Ar|gt,(t.mode&cn)!==xt&&NS(t),t):null}case oe:return bp(t),null;case _:return yp(t),null;case U:var M=t.type._context;return Ww(M,t),null;case he:case V:return C1(t),null;case ce:return null;default:return null}}function w2(e,t,o){switch(Aw(t),t.tag){case S:{var s=t.type.childContextTypes;s!=null&&n0(t);break}case w:{t.stateNode,yp(t),kw(t),iS();break}case N:{tS(t);break}case _:yp(t);break;case H:bp(t);break;case oe:bp(t);break;case U:var d=t.type._context;Ww(d,t);break;case he:case V:C1(t);break}}var S2=null;S2=new Set;var G0=!1,Ta=!1,hF=typeof WeakSet=="function"?WeakSet:Set,dt=null,Tp=null,Rp=null;function vF(e){_l(null,function(){throw e}),Mc()}var mF=function(e,t){if(t.props=e.memoizedProps,t.state=e.memoizedState,e.mode&cn)try{Gl(),t.componentWillUnmount()}finally{ql(e)}else t.componentWillUnmount()};function C2(e,t){try{Yu(Yr,e)}catch(o){In(e,t,o)}}function l1(e,t,o){try{mF(e,o)}catch(s){In(e,t,s)}}function gF(e,t,o){try{o.componentDidMount()}catch(s){In(e,t,s)}}function E2(e,t){try{T2(e)}catch(o){In(e,t,o)}}function kp(e,t){var o=e.ref;if(o!==null)if(typeof o=="function"){var s;try{if(Re&&Oe&&e.mode&cn)try{Gl(),s=o(null)}finally{ql(e)}else s=o(null)}catch(d){In(e,t,d)}typeof s=="function"&&p("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",Lt(e))}else o.current=null}function K0(e,t,o){try{o()}catch(s){In(e,t,s)}}var _2=!1;function yF(e,t){NP(e.containerInfo),dt=t,xF();var o=_2;return _2=!1,o}function xF(){for(;dt!==null;){var e=dt,t=e.child;(e.subtreeFlags&Rl)!==yt&&t!==null?(t.return=e,dt=t):bF()}}function bF(){for(;dt!==null;){var e=dt;Sn(e);try{wF(e)}catch(o){In(e,e.return,o)}Fn();var t=e.sibling;if(t!==null){t.return=e.return,dt=t;return}dt=e.return}}function wF(e){var t=e.alternate,o=e.flags;if((o&Er)!==yt){switch(Sn(e),e.tag){case x:case L:case q:break;case S:{if(t!==null){var s=t.memoizedProps,d=t.memoizedState,m=e.stateNode;e.type===e.elementType&&!Cf&&(m.props!==e.memoizedProps&&p("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.",Lt(e)||"instance"),m.state!==e.memoizedState&&p("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.",Lt(e)||"instance"));var b=m.getSnapshotBeforeUpdate(e.elementType===e.type?s:tl(e.type,s),d);{var T=S2;b===void 0&&!T.has(e.type)&&(T.add(e.type),p("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",Lt(e)))}m.__reactInternalSnapshotBeforeUpdate=b}break}case w:{{var M=e.stateNode;t$(M.containerInfo)}break}case N:case D:case _:case fe:break;default:throw new 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.")}Fn()}}function rl(e,t,o){var s=t.updateQueue,d=s!==null?s.lastEffect:null;if(d!==null){var m=d.next,b=m;do{if((b.tag&e)===e){var T=b.destroy;b.destroy=void 0,T!==void 0&&((e&Ea)!==ki?Vo(t):(e&Yr)!==ki&&Ac(t),(e&Vl)!==ki&&vm(!0),K0(t,o,T),(e&Vl)!==ki&&vm(!1),(e&Ea)!==ki?Dl():(e&Yr)!==ki&&Wh())}b=b.next}while(b!==m)}}function Yu(e,t){var o=t.updateQueue,s=o!==null?o.lastEffect:null;if(s!==null){var d=s.next,m=d;do{if((m.tag&e)===e){(e&Ea)!==ki?Yh(t):(e&Yr)!==ki&&xd(t);var b=m.create;(e&Vl)!==ki&&vm(!0),m.destroy=b(),(e&Vl)!==ki&&vm(!1),(e&Ea)!==ki?ey():(e&Yr)!==ki&&ty();{var T=m.destroy;if(T!==void 0&&typeof T!="function"){var M=void 0;(m.tag&Yr)!==yt?M="useLayoutEffect":(m.tag&Vl)!==yt?M="useInsertionEffect":M="useEffect";var P=void 0;T===null?P=" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof T.then=="function"?P=`
|
|
200
|
+
|
|
201
|
+
It looks like you wrote `+M+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
|
|
202
|
+
|
|
203
|
+
`+M+`(() => {
|
|
204
|
+
async function fetchData() {
|
|
205
|
+
// You can await here
|
|
206
|
+
const response = await MyAPI.getData(someId);
|
|
207
|
+
// ...
|
|
208
|
+
}
|
|
209
|
+
fetchData();
|
|
210
|
+
}, [someId]); // Or [] if effect doesn't need props or state
|
|
211
|
+
|
|
212
|
+
Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-fetching`:P=" You returned: "+T,p("%s must not return anything besides a function, which is used for clean-up.%s",M,P)}}}m=m.next}while(m!==d)}}function SF(e,t){if((t.flags&Gt)!==yt)switch(t.tag){case $:{var o=t.stateNode.passiveEffectDuration,s=t.memoizedProps,d=s.id,m=s.onPostCommit,b=Ik(),T=t.alternate===null?"mount":"update";Fk()&&(T="nested-update"),typeof m=="function"&&m(d,T,o,b);var M=t.return;e:for(;M!==null;){switch(M.tag){case w:var P=M.stateNode;P.passiveEffectDuration+=o;break e;case $:var F=M.stateNode;F.passiveEffectDuration+=o;break e}M=M.return}break}}}function CF(e,t,o,s){if((o.flags&Ml)!==yt)switch(o.tag){case x:case L:case q:{if(!Ta)if(o.mode&cn)try{Gl(),Yu(Yr|Vr,o)}finally{ql(o)}else Yu(Yr|Vr,o);break}case S:{var d=o.stateNode;if(o.flags&Gt&&!Ta)if(t===null)if(o.type===o.elementType&&!Cf&&(d.props!==o.memoizedProps&&p("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.",Lt(o)||"instance"),d.state!==o.memoizedState&&p("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.",Lt(o)||"instance")),o.mode&cn)try{Gl(),d.componentDidMount()}finally{ql(o)}else d.componentDidMount();else{var m=o.elementType===o.type?t.memoizedProps:tl(o.type,t.memoizedProps),b=t.memoizedState;if(o.type===o.elementType&&!Cf&&(d.props!==o.memoizedProps&&p("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.",Lt(o)||"instance"),d.state!==o.memoizedState&&p("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.",Lt(o)||"instance")),o.mode&cn)try{Gl(),d.componentDidUpdate(m,b,d.__reactInternalSnapshotBeforeUpdate)}finally{ql(o)}else d.componentDidUpdate(m,b,d.__reactInternalSnapshotBeforeUpdate)}var T=o.updateQueue;T!==null&&(o.type===o.elementType&&!Cf&&(d.props!==o.memoizedProps&&p("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.",Lt(o)||"instance"),d.state!==o.memoizedState&&p("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.",Lt(o)||"instance")),fk(o,T,d));break}case w:{var M=o.updateQueue;if(M!==null){var P=null;if(o.child!==null)switch(o.child.tag){case N:P=o.child.stateNode;break;case S:P=o.child.stateNode;break}fk(o,M,P)}break}case N:{var F=o.stateNode;if(t===null&&o.flags&Gt){var se=o.type,ae=o.memoizedProps;IP(F,se,ae)}break}case D:break;case _:break;case $:{{var ye=o.memoizedProps,we=ye.onCommit,Ee=ye.onRender,et=o.stateNode.effectDuration,St=Ik(),mt=t===null?"mount":"update";Fk()&&(mt="nested-update"),typeof Ee=="function"&&Ee(o.memoizedProps.id,mt,o.actualDuration,o.treeBaseDuration,o.actualStartTime,St);{typeof we=="function"&&we(o.memoizedProps.id,mt,et,St),bI(o);var Qt=o.return;e:for(;Qt!==null;){switch(Qt.tag){case w:var Yt=Qt.stateNode;Yt.effectDuration+=et;break e;case $:var ve=Qt.stateNode;ve.effectDuration+=et;break e}Qt=Qt.return}}}break}case H:{DF(e,o);break}case oe:case fe:case de:case he:case V:case Z:break;default:throw new 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.")}Ta||o.flags&ar&&T2(o)}function EF(e){switch(e.tag){case x:case L:case q:{if(e.mode&cn)try{Gl(),C2(e,e.return)}finally{ql(e)}else C2(e,e.return);break}case S:{var t=e.stateNode;typeof t.componentDidMount=="function"&&gF(e,e.return,t),E2(e,e.return);break}case N:{E2(e,e.return);break}}}function _F(e,t){for(var o=null,s=e;;){if(s.tag===N){if(o===null){o=s;try{var d=s.stateNode;t?QP(d):ZP(s.stateNode,s.memoizedProps)}catch(b){In(e,e.return,b)}}}else if(s.tag===D){if(o===null)try{var m=s.stateNode;t?JP(m):e$(m,s.memoizedProps)}catch(b){In(e,e.return,b)}}else if(!((s.tag===he||s.tag===V)&&s.memoizedState!==null&&s!==e)){if(s.child!==null){s.child.return=s,s=s.child;continue}}if(s===e)return;for(;s.sibling===null;){if(s.return===null||s.return===e)return;o===s&&(o=null),s=s.return}o===s&&(o=null),s.sibling.return=s.return,s=s.sibling}}function T2(e){var t=e.ref;if(t!==null){var o=e.stateNode,s;switch(e.tag){case N:s=o;break;default:s=o}if(typeof t=="function"){var d;if(e.mode&cn)try{Gl(),d=t(s)}finally{ql(e)}else d=t(s);typeof d=="function"&&p("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",Lt(e))}else t.hasOwnProperty("current")||p("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",Lt(e)),t.current=s}}function TF(e){var t=e.alternate;t!==null&&(t.return=null),e.return=null}function R2(e){var t=e.alternate;t!==null&&(e.alternate=null,R2(t));{if(e.child=null,e.deletions=null,e.sibling=null,e.tag===N){var o=e.stateNode;o!==null&&A$(o)}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 RF(e){for(var t=e.return;t!==null;){if(k2(t))return t;t=t.return}throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.")}function k2(e){return e.tag===N||e.tag===w||e.tag===_}function M2(e){var t=e;e:for(;;){for(;t.sibling===null;){if(t.return===null||k2(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==N&&t.tag!==D&&t.tag!==Se;){if(t.flags&Xn||t.child===null||t.tag===_)continue e;t.child.return=t,t=t.child}if(!(t.flags&Xn))return t.stateNode}}function kF(e){var t=RF(e);switch(t.tag){case N:{var o=t.stateNode;t.flags&yi&&(DR(o),t.flags&=~yi);var s=M2(e);u1(e,s,o);break}case w:case _:{var d=t.stateNode.containerInfo,m=M2(e);s1(e,m,d);break}default:throw new Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function s1(e,t,o){var s=e.tag,d=s===N||s===D;if(d){var m=e.stateNode;t?qP(o,m,t):YP(o,m)}else if(s!==_){var b=e.child;if(b!==null){s1(b,t,o);for(var T=b.sibling;T!==null;)s1(T,t,o),T=T.sibling}}}function u1(e,t,o){var s=e.tag,d=s===N||s===D;if(d){var m=e.stateNode;t?WP(o,m,t):VP(o,m)}else if(s!==_){var b=e.child;if(b!==null){u1(b,t,o);for(var T=b.sibling;T!==null;)u1(T,t,o),T=T.sibling}}}var Ra=null,al=!1;function MF(e,t,o){{var s=t;e:for(;s!==null;){switch(s.tag){case N:{Ra=s.stateNode,al=!1;break e}case w:{Ra=s.stateNode.containerInfo,al=!0;break e}case _:{Ra=s.stateNode.containerInfo,al=!0;break e}}s=s.return}if(Ra===null)throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");N2(e,t,o),Ra=null,al=!1}TF(o)}function Wu(e,t,o){for(var s=o.child;s!==null;)N2(e,t,s),s=s.sibling}function N2(e,t,o){switch(Bh(o),o.tag){case N:Ta||kp(o,t);case D:{{var s=Ra,d=al;Ra=null,Wu(e,t,o),Ra=s,al=d,Ra!==null&&(al?KP(Ra,o.stateNode):GP(Ra,o.stateNode))}return}case Se:{Ra!==null&&(al?XP(Ra,o.stateNode):bw(Ra,o.stateNode));return}case _:{{var m=Ra,b=al;Ra=o.stateNode.containerInfo,al=!0,Wu(e,t,o),Ra=m,al=b}return}case x:case L:case I:case q:{if(!Ta){var T=o.updateQueue;if(T!==null){var M=T.lastEffect;if(M!==null){var P=M.next,F=P;do{var se=F,ae=se.destroy,ye=se.tag;ae!==void 0&&((ye&Vl)!==ki?K0(o,t,ae):(ye&Yr)!==ki&&(Ac(o),o.mode&cn?(Gl(),K0(o,t,ae),ql(o)):K0(o,t,ae),Wh())),F=F.next}while(F!==P)}}}Wu(e,t,o);return}case S:{if(!Ta){kp(o,t);var we=o.stateNode;typeof we.componentWillUnmount=="function"&&l1(o,t,we)}Wu(e,t,o);return}case de:{Wu(e,t,o);return}case he:{if(o.mode&Bt){var Ee=Ta;Ta=Ee||o.memoizedState!==null,Wu(e,t,o),Ta=Ee}else Wu(e,t,o);break}default:{Wu(e,t,o);return}}}function NF(e){e.memoizedState}function DF(e,t){var o=t.memoizedState;if(o===null){var s=t.alternate;if(s!==null){var d=s.memoizedState;if(d!==null){var m=d.dehydrated;m!==null&&v$(m)}}}}function D2(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var o=e.stateNode;o===null&&(o=e.stateNode=new hF),t.forEach(function(s){var d=RI.bind(null,e,s);if(!o.has(s)){if(o.add(s),Pa)if(Tp!==null&&Rp!==null)hm(Rp,Tp);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");s.then(d,d)}})}}function AF(e,t,o){Tp=o,Rp=e,Sn(t),A2(t,e),Sn(t),Tp=null,Rp=null}function il(e,t,o){var s=t.deletions;if(s!==null)for(var d=0;d<s.length;d++){var m=s[d];try{MF(e,t,m)}catch(M){In(m,t,M)}}var b=yl();if(t.subtreeFlags&kl)for(var T=t.child;T!==null;)Sn(T),A2(T,e),T=T.sibling;Sn(b)}function A2(e,t,o){var s=e.alternate,d=e.flags;switch(e.tag){case x:case L:case I:case q:{if(il(t,e),Kl(e),d&Gt){try{rl(Vl|Vr,e,e.return),Yu(Vl|Vr,e)}catch(Dt){In(e,e.return,Dt)}if(e.mode&cn){try{Gl(),rl(Yr|Vr,e,e.return)}catch(Dt){In(e,e.return,Dt)}ql(e)}else try{rl(Yr|Vr,e,e.return)}catch(Dt){In(e,e.return,Dt)}}return}case S:{il(t,e),Kl(e),d&ar&&s!==null&&kp(s,s.return);return}case N:{il(t,e),Kl(e),d&ar&&s!==null&&kp(s,s.return);{if(e.flags&yi){var m=e.stateNode;try{DR(m)}catch(Dt){In(e,e.return,Dt)}}if(d&Gt){var b=e.stateNode;if(b!=null){var T=e.memoizedProps,M=s!==null?s.memoizedProps:T,P=e.type,F=e.updateQueue;if(e.updateQueue=null,F!==null)try{BP(b,F,P,M,T,e)}catch(Dt){In(e,e.return,Dt)}}}}return}case D:{if(il(t,e),Kl(e),d&Gt){if(e.stateNode===null)throw new Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");var se=e.stateNode,ae=e.memoizedProps,ye=s!==null?s.memoizedProps:ae;try{HP(se,ye,ae)}catch(Dt){In(e,e.return,Dt)}}return}case w:{if(il(t,e),Kl(e),d&Gt&&s!==null){var we=s.memoizedState;if(we.isDehydrated)try{h$(t.containerInfo)}catch(Dt){In(e,e.return,Dt)}}return}case _:{il(t,e),Kl(e);return}case H:{il(t,e),Kl(e);var Ee=e.child;if(Ee.flags&pr){var et=Ee.stateNode,St=Ee.memoizedState,mt=St!==null;if(et.isHidden=mt,mt){var Qt=Ee.alternate!==null&&Ee.alternate.memoizedState!==null;Qt||dI()}}if(d&Gt){try{NF(e)}catch(Dt){In(e,e.return,Dt)}D2(e)}return}case he:{var Yt=s!==null&&s.memoizedState!==null;if(e.mode&Bt){var ve=Ta;Ta=ve||Yt,il(t,e),Ta=ve}else il(t,e);if(Kl(e),d&pr){var _e=e.stateNode,me=e.memoizedState,Fe=me!==null,it=e;if(_e.isHidden=Fe,Fe&&!Yt&&(it.mode&Bt)!==xt){dt=it;for(var tt=it.child;tt!==null;)dt=tt,LF(tt),tt=tt.sibling}_F(it,Fe)}return}case oe:{il(t,e),Kl(e),d&Gt&&D2(e);return}case de:return;default:{il(t,e),Kl(e);return}}}function Kl(e){var t=e.flags;if(t&Xn){try{kF(e)}catch(o){In(e,e.return,o)}e.flags&=~Xn}t&La&&(e.flags&=~La)}function OF(e,t,o){Tp=o,Rp=t,dt=e,O2(e,t,o),Tp=null,Rp=null}function O2(e,t,o){for(var s=(e.mode&Bt)!==xt;dt!==null;){var d=dt,m=d.child;if(d.tag===he&&s){var b=d.memoizedState!==null,T=b||G0;if(T){c1(e,t,o);continue}else{var M=d.alternate,P=M!==null&&M.memoizedState!==null,F=P||Ta,se=G0,ae=Ta;G0=T,Ta=F,Ta&&!ae&&(dt=d,zF(d));for(var ye=m;ye!==null;)dt=ye,O2(ye,t,o),ye=ye.sibling;dt=d,G0=se,Ta=ae,c1(e,t,o);continue}}(d.subtreeFlags&Ml)!==yt&&m!==null?(m.return=d,dt=m):c1(e,t,o)}}function c1(e,t,o){for(;dt!==null;){var s=dt;if((s.flags&Ml)!==yt){var d=s.alternate;Sn(s);try{CF(t,d,s,o)}catch(b){In(s,s.return,b)}Fn()}if(s===e){dt=null;return}var m=s.sibling;if(m!==null){m.return=s.return,dt=m;return}dt=s.return}}function LF(e){for(;dt!==null;){var t=dt,o=t.child;switch(t.tag){case x:case L:case I:case q:{if(t.mode&cn)try{Gl(),rl(Yr,t,t.return)}finally{ql(t)}else rl(Yr,t,t.return);break}case S:{kp(t,t.return);var s=t.stateNode;typeof s.componentWillUnmount=="function"&&l1(t,t.return,s);break}case N:{kp(t,t.return);break}case he:{var d=t.memoizedState!==null;if(d){L2(e);continue}break}}o!==null?(o.return=t,dt=o):L2(e)}}function L2(e){for(;dt!==null;){var t=dt;if(t===e){dt=null;return}var o=t.sibling;if(o!==null){o.return=t.return,dt=o;return}dt=t.return}}function zF(e){for(;dt!==null;){var t=dt,o=t.child;if(t.tag===he){var s=t.memoizedState!==null;if(s){z2(e);continue}}o!==null?(o.return=t,dt=o):z2(e)}}function z2(e){for(;dt!==null;){var t=dt;Sn(t);try{EF(t)}catch(s){In(t,t.return,s)}if(Fn(),t===e){dt=null;return}var o=t.sibling;if(o!==null){o.return=t.return,dt=o;return}dt=t.return}}function jF(e,t,o,s){dt=t,PF(t,e,o,s)}function PF(e,t,o,s){for(;dt!==null;){var d=dt,m=d.child;(d.subtreeFlags&Bo)!==yt&&m!==null?(m.return=d,dt=m):$F(e,t,o,s)}}function $F(e,t,o,s){for(;dt!==null;){var d=dt;if((d.flags&Oa)!==yt){Sn(d);try{UF(t,d,o,s)}catch(b){In(d,d.return,b)}Fn()}if(d===e){dt=null;return}var m=d.sibling;if(m!==null){m.return=d.return,dt=m;return}dt=d.return}}function UF(e,t,o,s){switch(t.tag){case x:case L:case q:{if(t.mode&cn){MS();try{Yu(Ea|Vr,t)}finally{kS(t)}}else Yu(Ea|Vr,t);break}}}function FF(e){dt=e,IF()}function IF(){for(;dt!==null;){var e=dt,t=e.child;if((dt.flags&gi)!==yt){var o=e.deletions;if(o!==null){for(var s=0;s<o.length;s++){var d=o[s];dt=d,VF(d,e)}{var m=e.alternate;if(m!==null){var b=m.child;if(b!==null){m.child=null;do{var T=b.sibling;b.sibling=null,b=T}while(b!==null)}}}dt=e}}(e.subtreeFlags&Bo)!==yt&&t!==null?(t.return=e,dt=t):BF()}}function BF(){for(;dt!==null;){var e=dt;(e.flags&Oa)!==yt&&(Sn(e),HF(e),Fn());var t=e.sibling;if(t!==null){t.return=e.return,dt=t;return}dt=e.return}}function HF(e){switch(e.tag){case x:case L:case q:{e.mode&cn?(MS(),rl(Ea|Vr,e,e.return),kS(e)):rl(Ea|Vr,e,e.return);break}}}function VF(e,t){for(;dt!==null;){var o=dt;Sn(o),WF(o,t),Fn();var s=o.child;s!==null?(s.return=o,dt=s):YF(e)}}function YF(e){for(;dt!==null;){var t=dt,o=t.sibling,s=t.return;if(R2(t),t===e){dt=null;return}if(o!==null){o.return=s,dt=o;return}dt=s}}function WF(e,t){switch(e.tag){case x:case L:case q:{e.mode&cn?(MS(),rl(Ea,e,t),kS(e)):rl(Ea,e,t);break}}}function qF(e){switch(e.tag){case x:case L:case q:{try{Yu(Yr|Vr,e)}catch(o){In(e,e.return,o)}break}case S:{var t=e.stateNode;try{t.componentDidMount()}catch(o){In(e,e.return,o)}break}}}function GF(e){switch(e.tag){case x:case L:case q:{try{Yu(Ea|Vr,e)}catch(t){In(e,e.return,t)}break}}}function KF(e){switch(e.tag){case x:case L:case q:{try{rl(Yr|Vr,e,e.return)}catch(o){In(e,e.return,o)}break}case S:{var t=e.stateNode;typeof t.componentWillUnmount=="function"&&l1(e,e.return,t);break}}}function XF(e){switch(e.tag){case x:case L:case q:try{rl(Ea|Vr,e,e.return)}catch(t){In(e,e.return,t)}}}if(typeof Symbol=="function"&&Symbol.for){var rm=Symbol.for;rm("selector.component"),rm("selector.has_pseudo_class"),rm("selector.role"),rm("selector.test_id"),rm("selector.text")}var QF=[];function JF(){QF.forEach(function(e){return e()})}var ZF=l.ReactCurrentActQueue;function eI(e){{var t=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0,o=typeof jest<"u";return o&&t!==!1}}function j2(){{var e=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return!e&&ZF.current!==null&&p("The current testing environment is not configured to support act(...)"),e}}var tI=Math.ceil,f1=l.ReactCurrentDispatcher,d1=l.ReactCurrentOwner,ka=l.ReactCurrentBatchConfig,ol=l.ReactCurrentActQueue,Gr=0,P2=1,Ma=2,Eo=4,Fs=0,am=1,Ef=2,X0=3,im=4,$2=5,p1=6,Xt=Gr,ii=null,cr=null,Kr=Le,Xl=Le,h1=ju(Le),Xr=Fs,om=null,Q0=Le,lm=Le,J0=Le,sm=null,Mi=null,v1=0,U2=500,F2=1/0,nI=500,Is=null;function um(){F2=_r()+nI}function I2(){return F2}var Z0=!1,m1=null,Mp=null,_f=!1,qu=null,cm=Le,g1=[],y1=null,rI=50,fm=0,x1=null,b1=!1,ex=!1,aI=50,Np=0,tx=null,dm=Nn,nx=Le,B2=!1;function rx(){return ii}function oi(){return(Xt&(Ma|Eo))!==Gr?_r():(dm!==Nn||(dm=_r()),dm)}function Gu(e){var t=e.mode;if((t&Bt)===xt)return Mt;if((Xt&Ma)!==Gr&&Kr!==Le)return Yc(Kr);var o=Z$()!==J$;if(o){if(ka.transition!==null){var s=ka.transition;s._updatedFibers||(s._updatedFibers=new Set),s._updatedFibers.add(e)}return nx===on&&(nx=ev()),nx}var d=Ei();if(d!==on)return d;var m=PP();return m}function iI(e){var t=e.mode;return(t&Bt)===xt?Mt:ly()}function Qr(e,t,o,s){MI(),B2&&p("useInsertionEffect must not schedule updates."),b1&&(ex=!0),_u(e,o,s),(Xt&Ma)!==Le&&e===ii?AI(t):(Pa&&Gc(e,t,o),OI(t),e===ii&&((Xt&Ma)===Gr&&(lm=Ut(lm,o)),Xr===im&&Ku(e,Kr)),Ni(e,s),o===Mt&&Xt===Gr&&(t.mode&Bt)===xt&&!ol.isBatchingLegacy&&(um(),BR()))}function oI(e,t,o){var s=e.current;s.lanes=t,_u(e,t,o),Ni(e,o)}function lI(e){return(Xt&Ma)!==Gr}function Ni(e,t){var o=e.callbackNode;Ud(e,t);var s=$d(e,e===ii?Kr:Le);if(s===Le){o!==null&&aM(o),e.callbackNode=null,e.callbackPriority=on;return}var d=Ll(s),m=e.callbackPriority;if(m===d&&!(ol.current!==null&&o!==R1)){o==null&&m!==Mt&&p("Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue.");return}o!=null&&aM(o);var b;if(d===Mt)e.tag===Pu?(ol.isBatchingLegacy!==null&&(ol.didScheduleLegacyUpdate=!0),z$(Y2.bind(null,e))):IR(Y2.bind(null,e)),ol.current!==null?ol.current.push($u):UP(function(){(Xt&(Ma|Eo))===Gr&&$u()}),b=null;else{var T;switch(hy(s)){case ya:T=Dc;break;case ho:T=Nl;break;case Si:T=Ho;break;case Ci:T=hs;break;default:T=Ho;break}b=k1(T,H2.bind(null,e))}e.callbackPriority=d,e.callbackNode=b}function H2(e,t){if(_U(),dm=Nn,nx=Le,(Xt&(Ma|Eo))!==Gr)throw new Error("Should not already be working.");var o=e.callbackNode,s=Hs();if(s&&e.callbackNode!==o)return null;var d=$d(e,e===ii?Kr:Le);if(d===Le)return null;var m=!Id(e,d)&&!oy(e,d)&&!t,b=m?gI(e,d):ix(e,d);if(b!==Fs){if(b===Ef){var T=Fd(e);T!==Le&&(d=T,b=w1(e,T))}if(b===am){var M=om;throw Tf(e,Le),Ku(e,d),Ni(e,_r()),M}if(b===p1)Ku(e,d);else{var P=!Id(e,d),F=e.current.alternate;if(P&&!uI(F)){if(b=ix(e,d),b===Ef){var se=Fd(e);se!==Le&&(d=se,b=w1(e,se))}if(b===am){var ae=om;throw Tf(e,Le),Ku(e,d),Ni(e,_r()),ae}}e.finishedWork=F,e.finishedLanes=d,sI(e,b,d)}}return Ni(e,_r()),e.callbackNode===o?H2.bind(null,e):null}function w1(e,t){var o=sm;if(Vd(e)){var s=Tf(e,t);s.flags|=aa,k$(e.containerInfo)}var d=ix(e,t);if(d!==Ef){var m=Mi;Mi=o,m!==null&&V2(m)}return d}function V2(e){Mi===null?Mi=e:Mi.push.apply(Mi,e)}function sI(e,t,o){switch(t){case Fs:case am:throw new Error("Root did not complete. This is a bug in React.");case Ef:{Rf(e,Mi,Is);break}case X0:{if(Ku(e,o),_s(o)&&!iM()){var s=v1+U2-_r();if(s>10){var d=$d(e,Le);if(d!==Le)break;var m=e.suspendedLanes;if(!Ts(m,o)){oi(),Bd(e,m);break}e.timeoutHandle=yw(Rf.bind(null,e,Mi,Is),s);break}}Rf(e,Mi,Is);break}case im:{if(Ku(e,o),Jh(o))break;if(!iM()){var b=Bi(e,o),T=b,M=_r()-T,P=kI(M)-M;if(P>10){e.timeoutHandle=yw(Rf.bind(null,e,Mi,Is),P);break}}Rf(e,Mi,Is);break}case $2:{Rf(e,Mi,Is);break}default:throw new Error("Unknown root exit status.")}}function uI(e){for(var t=e;;){if(t.flags&bu){var o=t.updateQueue;if(o!==null){var s=o.stores;if(s!==null)for(var d=0;d<s.length;d++){var m=s[d],b=m.getSnapshot,T=m.value;try{if(!Pe(b(),T))return!1}catch{return!1}}}}var M=t.child;if(t.subtreeFlags&bu&&M!==null){M.return=t,t=M;continue}if(t===e)return!0;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 Ku(e,t){t=Wc(t,J0),t=Wc(t,lm),cy(e,t)}function Y2(e){if(TU(),(Xt&(Ma|Eo))!==Gr)throw new Error("Should not already be working.");Hs();var t=$d(e,Le);if(!Ua(t,Mt))return Ni(e,_r()),null;var o=ix(e,t);if(e.tag!==Pu&&o===Ef){var s=Fd(e);s!==Le&&(t=s,o=w1(e,s))}if(o===am){var d=om;throw Tf(e,Le),Ku(e,t),Ni(e,_r()),d}if(o===p1)throw new Error("Root did not complete. This is a bug in React.");var m=e.current.alternate;return e.finishedWork=m,e.finishedLanes=t,Rf(e,Mi,Is),Ni(e,_r()),null}function cI(e,t){t!==Le&&(Hd(e,Ut(t,Mt)),Ni(e,_r()),(Xt&(Ma|Eo))===Gr&&(um(),$u()))}function S1(e,t){var o=Xt;Xt|=P2;try{return e(t)}finally{Xt=o,Xt===Gr&&!ol.isBatchingLegacy&&(um(),BR())}}function fI(e,t,o,s,d){var m=Ei(),b=ka.transition;try{return ka.transition=null,gr(ya),e(t,o,s,d)}finally{gr(m),ka.transition=b,Xt===Gr&&um()}}function Bs(e){qu!==null&&qu.tag===Pu&&(Xt&(Ma|Eo))===Gr&&Hs();var t=Xt;Xt|=P2;var o=ka.transition,s=Ei();try{return ka.transition=null,gr(ya),e?e():void 0}finally{gr(s),ka.transition=o,Xt=t,(Xt&(Ma|Eo))===Gr&&$u()}}function W2(){return(Xt&(Ma|Eo))!==Gr}function ax(e,t){Va(h1,Xl,e),Xl=Ut(Xl,t)}function C1(e){Xl=h1.current,Ha(h1,e)}function Tf(e,t){e.finishedWork=null,e.finishedLanes=Le;var o=e.timeoutHandle;if(o!==xw&&(e.timeoutHandle=xw,$P(o)),cr!==null)for(var s=cr.return;s!==null;){var d=s.alternate;w2(d,s),s=s.return}ii=e;var m=kf(e.current,null);return cr=m,Kr=Xl=t,Xr=Fs,om=null,Q0=Le,lm=Le,J0=Le,sm=null,Mi=null,oU(),Jo.discardPendingWarnings(),m}function q2(e,t){do{var o=cr;try{if(h0(),gk(),Fn(),d1.current=null,o===null||o.return===null){Xr=am,om=t,cr=null;return}if(Re&&o.mode&cn&&H0(o,!0),ke)if(ti(),t!==null&&typeof t=="object"&&typeof t.then=="function"){var s=t;po(o,s,Kr)}else Oc(o,t,Kr);zU(e,o.return,o,t,Kr),Q2(o)}catch(d){t=d,cr===o&&o!==null?(o=o.return,cr=o):o=cr;continue}return}while(!0)}function G2(){var e=f1.current;return f1.current=$0,e===null?$0:e}function K2(e){f1.current=e}function dI(){v1=_r()}function pm(e){Q0=Ut(e,Q0)}function pI(){Xr===Fs&&(Xr=X0)}function E1(){(Xr===Fs||Xr===X0||Xr===Ef)&&(Xr=im),ii!==null&&(Vc(Q0)||Vc(lm))&&Ku(ii,Kr)}function hI(e){Xr!==im&&(Xr=Ef),sm===null?sm=[e]:sm.push(e)}function vI(){return Xr===Fs}function ix(e,t){var o=Xt;Xt|=Ma;var s=G2();if(ii!==e||Kr!==t){if(Pa){var d=e.memoizedUpdaters;d.size>0&&(hm(e,Kr),d.clear()),fy(e,t)}Is=av(),Tf(e,t)}ys(t);do try{mI();break}catch(m){q2(e,m)}while(!0);if(h0(),Xt=o,K2(s),cr!==null)throw new Error("Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue.");return bd(),ii=null,Kr=Le,Xr}function mI(){for(;cr!==null;)X2(cr)}function gI(e,t){var o=Xt;Xt|=Ma;var s=G2();if(ii!==e||Kr!==t){if(Pa){var d=e.memoizedUpdaters;d.size>0&&(hm(e,Kr),d.clear()),fy(e,t)}Is=av(),um(),Tf(e,t)}ys(t);do try{yI();break}catch(m){q2(e,m)}while(!0);return h0(),K2(s),Xt=o,cr!==null?(ny(),Fs):(bd(),ii=null,Kr=Le,Xr)}function yI(){for(;cr!==null&&!Ph();)X2(cr)}function X2(e){var t=e.alternate;Sn(e);var o;(e.mode&cn)!==xt?(RS(e),o=_1(t,e,Xl),H0(e,!0)):o=_1(t,e,Xl),Fn(),e.memoizedProps=e.pendingProps,o===null?Q2(e):cr=o,d1.current=null}function Q2(e){var t=e;do{var o=t.alternate,s=t.return;if((t.flags&Nc)===yt){Sn(t);var d=void 0;if((t.mode&cn)===xt?d=b2(o,t,Xl):(RS(t),d=b2(o,t,Xl),H0(t,!1)),Fn(),d!==null){cr=d;return}}else{var m=pF(o,t);if(m!==null){m.flags&=Xg,cr=m;return}if((t.mode&cn)!==xt){H0(t,!1);for(var b=t.actualDuration,T=t.child;T!==null;)b+=T.actualDuration,T=T.sibling;t.actualDuration=b}if(s!==null)s.flags|=Nc,s.subtreeFlags=yt,s.deletions=null;else{Xr=p1,cr=null;return}}var M=t.sibling;if(M!==null){cr=M;return}t=s,cr=t}while(t!==null);Xr===Fs&&(Xr=$2)}function Rf(e,t,o){var s=Ei(),d=ka.transition;try{ka.transition=null,gr(ya),xI(e,t,o,s)}finally{ka.transition=d,gr(s)}return null}function xI(e,t,o,s){do Hs();while(qu!==null);if(NI(),(Xt&(Ma|Eo))!==Gr)throw new Error("Should not already be working.");var d=e.finishedWork,m=e.finishedLanes;if(Hh(m),d===null)return Vh(),null;if(m===Le&&p("root.finishedLanes should not be empty during a commit. This is a bug in React."),e.finishedWork=null,e.finishedLanes=Le,d===e.current)throw new Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");e.callbackNode=null,e.callbackPriority=on;var b=Ut(d.lanes,d.childLanes);nv(e,b),e===ii&&(ii=null,cr=null,Kr=Le),((d.subtreeFlags&Bo)!==yt||(d.flags&Bo)!==yt)&&(_f||(_f=!0,y1=o,k1(Ho,function(){return Hs(),null})));var T=(d.subtreeFlags&(Rl|kl|Ml|Bo))!==yt,M=(d.flags&(Rl|kl|Ml|Bo))!==yt;if(T||M){var P=ka.transition;ka.transition=null;var F=Ei();gr(ya);var se=Xt;Xt|=Eo,d1.current=null,yF(e,d),Bk(),AF(e,d,m),DP(e.containerInfo),e.current=d,Lc(m),OF(d,e,m),zc(),$h(),Xt=se,gr(F),ka.transition=P}else e.current=d,Bk();var ae=_f;if(_f?(_f=!1,qu=e,cm=m):(Np=0,tx=null),b=e.pendingLanes,b===Le&&(Mp=null),ae||tM(e.current,!1),Fh(d.stateNode,s),Pa&&e.memoizedUpdaters.clear(),JF(),Ni(e,_r()),t!==null)for(var ye=e.onRecoverableError,we=0;we<t.length;we++){var Ee=t[we],et=Ee.stack,St=Ee.digest;ye(Ee.value,{componentStack:et,digest:St})}if(Z0){Z0=!1;var mt=m1;throw m1=null,mt}return Ua(cm,Mt)&&e.tag!==Pu&&Hs(),b=e.pendingLanes,Ua(b,Mt)?(EU(),e===x1?fm++:(fm=0,x1=e)):fm=0,$u(),Vh(),null}function Hs(){if(qu!==null){var e=hy(cm),t=Xc(Si,e),o=ka.transition,s=Ei();try{return ka.transition=null,gr(t),wI()}finally{gr(s),ka.transition=o}}return!1}function bI(e){g1.push(e),_f||(_f=!0,k1(Ho,function(){return Hs(),null}))}function wI(){if(qu===null)return!1;var e=y1;y1=null;var t=qu,o=cm;if(qu=null,cm=Le,(Xt&(Ma|Eo))!==Gr)throw new Error("Cannot flush passive effects while already rendering.");b1=!0,ex=!1,gs(o);var s=Xt;Xt|=Eo,FF(t.current),jF(t,t.current,o,e);{var d=g1;g1=[];for(var m=0;m<d.length;m++){var b=d[m];SF(t,b)}}qh(),tM(t.current,!0),Xt=s,$u(),ex?t===tx?Np++:(Np=0,tx=t):Np=0,b1=!1,ex=!1,Ih(t);{var T=t.current.stateNode;T.effectDuration=0,T.passiveEffectDuration=0}return!0}function J2(e){return Mp!==null&&Mp.has(e)}function SI(e){Mp===null?Mp=new Set([e]):Mp.add(e)}function CI(e){Z0||(Z0=!0,m1=e)}var EI=CI;function Z2(e,t,o){var s=Sf(o,t),d=Xk(e,s,Mt),m=Fu(e,d,Mt),b=oi();m!==null&&(_u(m,Mt,b),Ni(m,b))}function In(e,t,o){if(vF(o),vm(!1),e.tag===w){Z2(e,e,o);return}var s=null;for(s=t;s!==null;){if(s.tag===w){Z2(s,e,o);return}else if(s.tag===S){var d=s.type,m=s.stateNode;if(typeof d.getDerivedStateFromError=="function"||typeof m.componentDidCatch=="function"&&!J2(m)){var b=Sf(o,e),T=YS(s,b,Mt),M=Fu(s,T,Mt),P=oi();M!==null&&(_u(M,Mt,P),Ni(M,P));return}}s=s.return}p(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Likely causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
|
|
213
|
+
|
|
214
|
+
Error message:
|
|
215
|
+
|
|
216
|
+
%s`,o)}function _I(e,t,o){var s=e.pingCache;s!==null&&s.delete(t);var d=oi();Bd(e,o),LI(e),ii===e&&Ts(Kr,o)&&(Xr===im||Xr===X0&&_s(Kr)&&_r()-v1<U2?Tf(e,Le):J0=Ut(J0,o)),Ni(e,d)}function eM(e,t){t===on&&(t=iI(e));var o=oi(),s=Ri(e,t);s!==null&&(_u(s,t,o),Ni(s,o))}function TI(e){var t=e.memoizedState,o=on;t!==null&&(o=t.retryLane),eM(e,o)}function RI(e,t){var o=on,s;switch(e.tag){case H:s=e.stateNode;var d=e.memoizedState;d!==null&&(o=d.retryLane);break;case oe:s=e.stateNode;break;default:throw new Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}s!==null&&s.delete(t),eM(e,o)}function kI(e){return e<120?120:e<480?480:e<1080?1080:e<1920?1920:e<3e3?3e3:e<4320?4320:tI(e/1960)*1960}function MI(){if(fm>rI)throw fm=0,x1=null,new 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.");Np>aI&&(Np=0,tx=null,p("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."))}function NI(){Jo.flushLegacyContextWarning(),Jo.flushPendingUnsafeLifecycleWarnings()}function tM(e,t){Sn(e),ox(e,Tl,KF),t&&ox(e,uo,XF),ox(e,Tl,qF),t&&ox(e,uo,GF),Fn()}function ox(e,t,o){for(var s=e,d=null;s!==null;){var m=s.subtreeFlags&t;s!==d&&s.child!==null&&m!==yt?s=s.child:((s.flags&t)!==yt&&o(s),s.sibling!==null?s=s.sibling:s=d=s.return)}}var lx=null;function nM(e){{if((Xt&Ma)!==Gr||!(e.mode&Bt))return;var t=e.tag;if(t!==E&&t!==w&&t!==S&&t!==x&&t!==L&&t!==I&&t!==q)return;var o=Lt(e)||"ReactComponent";if(lx!==null){if(lx.has(o))return;lx.add(o)}else lx=new Set([o]);var s=Ur;try{Sn(e),p("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 later calls tries to update the component. Move this work to useEffect instead.")}finally{s?Sn(e):Fn()}}}var _1;{var DI=null;_1=function(e,t,o){var s=cM(DI,t);try{return v2(e,t,o)}catch(m){if(H$()||m!==null&&typeof m=="object"&&typeof m.then=="function")throw m;if(h0(),gk(),w2(e,t),cM(t,s),t.mode&cn&&RS(t),_l(null,v2,null,e,t,o),Fo()){var d=Mc();typeof d=="object"&&d!==null&&d._suppressLogging&&typeof m=="object"&&m!==null&&!m._suppressLogging&&(m._suppressLogging=!0)}throw m}}}var rM=!1,T1;T1=new Set;function AI(e){if(no&&!wU())switch(e.tag){case x:case L:case q:{var t=cr&&Lt(cr)||"Unknown",o=t;if(!T1.has(o)){T1.add(o);var s=Lt(e)||"Unknown";p("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://reactjs.org/link/setstate-in-render",s,t,t)}break}case S:{rM||(p("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),rM=!0);break}}}function hm(e,t){if(Pa){var o=e.memoizedUpdaters;o.forEach(function(s){Gc(e,s,t)})}}var R1={};function k1(e,t){{var o=ol.current;return o!==null?(o.push(t),R1):jh(e,t)}}function aM(e){if(e!==R1)return Jg(e)}function iM(){return ol.current!==null}function OI(e){{if(e.mode&Bt){if(!j2())return}else if(!eI()||Xt!==Gr||e.tag!==x&&e.tag!==L&&e.tag!==q)return;if(ol.current===null){var t=Ur;try{Sn(e),p(`An update to %s inside a test was not wrapped in act(...).
|
|
217
|
+
|
|
218
|
+
When testing, code that causes React state updates should be wrapped into act(...):
|
|
219
|
+
|
|
220
|
+
act(() => {
|
|
221
|
+
/* fire events that update state */
|
|
222
|
+
});
|
|
223
|
+
/* assert on the output */
|
|
224
|
+
|
|
225
|
+
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act`,Lt(e))}finally{t?Sn(e):Fn()}}}}function LI(e){e.tag!==Pu&&j2()&&ol.current===null&&p(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
|
|
226
|
+
|
|
227
|
+
When testing, code that resolves suspended data should be wrapped into act(...):
|
|
228
|
+
|
|
229
|
+
act(() => {
|
|
230
|
+
/* finish loading suspended data */
|
|
231
|
+
});
|
|
232
|
+
/* assert on the output */
|
|
233
|
+
|
|
234
|
+
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act`)}function vm(e){B2=e}var _o=null,Dp=null,zI=function(e){_o=e};function Ap(e){{if(_o===null)return e;var t=_o(e);return t===void 0?e:t.current}}function M1(e){return Ap(e)}function N1(e){{if(_o===null)return e;var t=_o(e);if(t===void 0){if(e!=null&&typeof e.render=="function"){var o=Ap(e.render);if(e.render!==o){var s={$$typeof:De,render:o};return e.displayName!==void 0&&(s.displayName=e.displayName),s}}return e}return t.current}}function oM(e,t){{if(_o===null)return!1;var o=e.elementType,s=t.type,d=!1,m=typeof s=="object"&&s!==null?s.$$typeof:null;switch(e.tag){case S:{typeof s=="function"&&(d=!0);break}case x:{(typeof s=="function"||m===Rt)&&(d=!0);break}case L:{(m===De||m===Rt)&&(d=!0);break}case I:case q:{(m===Qe||m===Rt)&&(d=!0);break}default:return!1}if(d){var b=_o(o);if(b!==void 0&&b===_o(s))return!0}return!1}}function lM(e){{if(_o===null||typeof WeakSet!="function")return;Dp===null&&(Dp=new WeakSet),Dp.add(e)}}var jI=function(e,t){{if(_o===null)return;var o=t.staleFamilies,s=t.updatedFamilies;Hs(),Bs(function(){D1(e.current,s,o)})}},PI=function(e,t){{if(e.context!==Yi)return;Hs(),Bs(function(){mm(t,e,null,null)})}};function D1(e,t,o){{var s=e.alternate,d=e.child,m=e.sibling,b=e.tag,T=e.type,M=null;switch(b){case x:case q:case S:M=T;break;case L:M=T.render;break}if(_o===null)throw new Error("Expected resolveFamily to be set during hot reload.");var P=!1,F=!1;if(M!==null){var se=_o(M);se!==void 0&&(o.has(se)?F=!0:t.has(se)&&(b===S?F=!0:P=!0))}if(Dp!==null&&(Dp.has(e)||s!==null&&Dp.has(s))&&(F=!0),F&&(e._debugNeedsRemount=!0),F||P){var ae=Ri(e,Mt);ae!==null&&Qr(ae,e,Mt,Nn)}d!==null&&!F&&D1(d,t,o),m!==null&&D1(m,t,o)}}var $I=function(e,t){{var o=new Set,s=new Set(t.map(function(d){return d.current}));return A1(e.current,s,o),o}};function A1(e,t,o){{var s=e.child,d=e.sibling,m=e.tag,b=e.type,T=null;switch(m){case x:case q:case S:T=b;break;case L:T=b.render;break}var M=!1;T!==null&&t.has(T)&&(M=!0),M?UI(e,o):s!==null&&A1(s,t,o),d!==null&&A1(d,t,o)}}function UI(e,t){{var o=FI(e,t);if(o)return;for(var s=e;;){switch(s.tag){case N:t.add(s.stateNode);return;case _:t.add(s.stateNode.containerInfo);return;case w:t.add(s.stateNode.containerInfo);return}if(s.return===null)throw new Error("Expected to reach root first.");s=s.return}}}function FI(e,t){for(var o=e,s=!1;;){if(o.tag===N)s=!0,t.add(o.stateNode);else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===e)return s;for(;o.sibling===null;){if(o.return===null||o.return===e)return s;o=o.return}o.sibling.return=o.return,o=o.sibling}return!1}var O1;{O1=!1;try{var sM=Object.preventExtensions({})}catch{O1=!0}}function II(e,t,o,s){this.tag=e,this.key=o,this.elementType=null,this.type=null,this.stateNode=null,this.return=null,this.child=null,this.sibling=null,this.index=0,this.ref=null,this.pendingProps=t,this.memoizedProps=null,this.updateQueue=null,this.memoizedState=null,this.dependencies=null,this.mode=s,this.flags=yt,this.subtreeFlags=yt,this.deletions=null,this.lanes=Le,this.childLanes=Le,this.alternate=null,this.actualDuration=Number.NaN,this.actualStartTime=Number.NaN,this.selfBaseDuration=Number.NaN,this.treeBaseDuration=Number.NaN,this.actualDuration=0,this.actualStartTime=-1,this.selfBaseDuration=0,this.treeBaseDuration=0,this._debugSource=null,this._debugOwner=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,!O1&&typeof Object.preventExtensions=="function"&&Object.preventExtensions(this)}var Wi=function(e,t,o,s){return new II(e,t,o,s)};function L1(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function BI(e){return typeof e=="function"&&!L1(e)&&e.defaultProps===void 0}function HI(e){if(typeof e=="function")return L1(e)?S:x;if(e!=null){var t=e.$$typeof;if(t===De)return L;if(t===Qe)return I}return E}function kf(e,t){var o=e.alternate;o===null?(o=Wi(e.tag,t,e.key,e.mode),o.elementType=e.elementType,o.type=e.type,o.stateNode=e.stateNode,o._debugSource=e._debugSource,o._debugOwner=e._debugOwner,o._debugHookTypes=e._debugHookTypes,o.alternate=e,e.alternate=o):(o.pendingProps=t,o.type=e.type,o.flags=yt,o.subtreeFlags=yt,o.deletions=null,o.actualDuration=0,o.actualStartTime=-1),o.flags=e.flags&hr,o.childLanes=e.childLanes,o.lanes=e.lanes,o.child=e.child,o.memoizedProps=e.memoizedProps,o.memoizedState=e.memoizedState,o.updateQueue=e.updateQueue;var s=e.dependencies;switch(o.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},o.sibling=e.sibling,o.index=e.index,o.ref=e.ref,o.selfBaseDuration=e.selfBaseDuration,o.treeBaseDuration=e.treeBaseDuration,o._debugNeedsRemount=e._debugNeedsRemount,o.tag){case E:case x:case q:o.type=Ap(e.type);break;case S:o.type=M1(e.type);break;case L:o.type=N1(e.type);break}return o}function VI(e,t){e.flags&=hr|Xn;var o=e.alternate;if(o===null)e.childLanes=Le,e.lanes=t,e.child=null,e.subtreeFlags=yt,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null,e.selfBaseDuration=0,e.treeBaseDuration=0;else{e.childLanes=o.childLanes,e.lanes=o.lanes,e.child=o.child,e.subtreeFlags=yt,e.deletions=null,e.memoizedProps=o.memoizedProps,e.memoizedState=o.memoizedState,e.updateQueue=o.updateQueue,e.type=o.type;var s=o.dependencies;e.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},e.selfBaseDuration=o.selfBaseDuration,e.treeBaseDuration=o.treeBaseDuration}return e}function YI(e,t,o){var s;return e===a0?(s=Bt,t===!0&&(s|=_n,s|=fn)):s=xt,Pa&&(s|=cn),Wi(w,null,null,s)}function z1(e,t,o,s,d,m){var b=E,T=e;if(typeof e=="function")L1(e)?(b=S,T=M1(T)):T=Ap(T);else if(typeof e=="string")b=N;else e:switch(e){case ca:return Xu(o.children,d,m,t);case fa:b=j,d|=_n,(d&Bt)!==xt&&(d|=fn);break;case da:return WI(o,d,m,t);case We:return qI(o,d,m,t);case nt:return GI(o,d,m,t);case $n:return uM(o,d,m,t);case mn:case Pt:case wn:case rr:case $t:default:{if(typeof e=="object"&&e!==null)switch(e.$$typeof){case pa:b=U;break e;case Q:b=z;break e;case De:b=L,T=N1(T);break e;case Qe:b=I;break e;case Rt:b=ie,T=null;break e}var M="";{(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(M+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var P=s?Lt(s):null;P&&(M+=`
|
|
235
|
+
|
|
236
|
+
Check the render method of \``+P+"`.")}throw new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(e==null?e:typeof e)+"."+M))}}var F=Wi(b,o,t,d);return F.elementType=e,F.type=T,F.lanes=m,F._debugOwner=s,F}function j1(e,t,o){var s=null;s=e._owner;var d=e.type,m=e.key,b=e.props,T=z1(d,m,b,s,t,o);return T._debugSource=e._source,T._debugOwner=e._owner,T}function Xu(e,t,o,s){var d=Wi(R,e,s,t);return d.lanes=o,d}function WI(e,t,o,s){typeof e.id!="string"&&p('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof e.id);var d=Wi($,e,s,t|cn);return d.elementType=da,d.lanes=o,d.stateNode={effectDuration:0,passiveEffectDuration:0},d}function qI(e,t,o,s){var d=Wi(H,e,s,t);return d.elementType=We,d.lanes=o,d}function GI(e,t,o,s){var d=Wi(oe,e,s,t);return d.elementType=nt,d.lanes=o,d}function uM(e,t,o,s){var d=Wi(he,e,s,t);d.elementType=$n,d.lanes=o;var m={isHidden:!1};return d.stateNode=m,d}function P1(e,t,o){var s=Wi(D,e,null,t);return s.lanes=o,s}function KI(){var e=Wi(N,null,null,xt);return e.elementType="DELETED",e}function XI(e){var t=Wi(Se,null,null,xt);return t.stateNode=e,t}function $1(e,t,o){var s=e.children!==null?e.children:[],d=Wi(_,s,e.key,t);return d.lanes=o,d.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},d}function cM(e,t){return e===null&&(e=Wi(E,null,null,xt)),e.tag=t.tag,e.key=t.key,e.elementType=t.elementType,e.type=t.type,e.stateNode=t.stateNode,e.return=t.return,e.child=t.child,e.sibling=t.sibling,e.index=t.index,e.ref=t.ref,e.pendingProps=t.pendingProps,e.memoizedProps=t.memoizedProps,e.updateQueue=t.updateQueue,e.memoizedState=t.memoizedState,e.dependencies=t.dependencies,e.mode=t.mode,e.flags=t.flags,e.subtreeFlags=t.subtreeFlags,e.deletions=t.deletions,e.lanes=t.lanes,e.childLanes=t.childLanes,e.alternate=t.alternate,e.actualDuration=t.actualDuration,e.actualStartTime=t.actualStartTime,e.selfBaseDuration=t.selfBaseDuration,e.treeBaseDuration=t.treeBaseDuration,e._debugSource=t._debugSource,e._debugOwner=t._debugOwner,e._debugNeedsRemount=t._debugNeedsRemount,e._debugHookTypes=t._debugHookTypes,e}function QI(e,t,o,s,d){this.tag=t,this.containerInfo=e,this.pendingChildren=null,this.current=null,this.pingCache=null,this.finishedWork=null,this.timeoutHandle=xw,this.context=null,this.pendingContext=null,this.callbackNode=null,this.callbackPriority=on,this.eventTimes=qc(Le),this.expirationTimes=qc(Nn),this.pendingLanes=Le,this.suspendedLanes=Le,this.pingedLanes=Le,this.expiredLanes=Le,this.mutableReadLanes=Le,this.finishedLanes=Le,this.entangledLanes=Le,this.entanglements=qc(Le),this.identifierPrefix=s,this.onRecoverableError=d,this.mutableSourceEagerHydrationData=null,this.effectDuration=0,this.passiveEffectDuration=0;{this.memoizedUpdaters=new Set;for(var m=this.pendingUpdatersLaneMap=[],b=0;b<xs;b++)m.push(new Set)}switch(t){case a0:this._debugRootType=o?"hydrateRoot()":"createRoot()";break;case Pu:this._debugRootType=o?"hydrate()":"render()";break}}function fM(e,t,o,s,d,m,b,T,M,P){var F=new QI(e,t,o,T,M),se=YI(t,m);F.current=se,se.stateNode=F;{var ae={element:s,isDehydrated:o,cache:null,transitions:null,pendingSuspenseBoundaries:null};se.memoizedState=ae}return Qw(se),F}var U1="18.3.1";function JI(e,t,o){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;return Jt(s),{$$typeof:Gn,key:s==null?null:""+s,children:e,containerInfo:t,implementation:o}}var F1,I1;F1=!1,I1={};function dM(e){if(!e)return Yi;var t=xu(e),o=L$(t);if(t.tag===S){var s=t.type;if(Hl(s))return UR(t,s,o)}return o}function ZI(e,t){{var o=xu(e);if(o===void 0){if(typeof e.render=="function")throw new Error("Unable to find node on an unmounted component.");var s=Object.keys(e).join(",");throw new Error("Argument appears to not be a ReactComponent. Keys: "+s)}var d=za(o);if(d===null)return null;if(d.mode&_n){var m=Lt(o)||"Component";if(!I1[m]){I1[m]=!0;var b=Ur;try{Sn(d),o.mode&_n?p("%s is deprecated in StrictMode. %s was passed an instance of %s which is inside StrictMode. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node",t,t,m):p("%s is deprecated in StrictMode. %s was passed an instance of %s which renders StrictMode children. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node",t,t,m)}finally{b?Sn(b):Fn()}}}return d.stateNode}}function pM(e,t,o,s,d,m,b,T){var M=!1,P=null;return fM(e,t,M,P,o,s,d,m,b)}function hM(e,t,o,s,d,m,b,T,M,P){var F=!0,se=fM(o,s,F,e,d,m,b,T,M);se.context=dM(null);var ae=se.current,ye=oi(),we=Gu(ae),Ee=$s(ye,we);return Ee.callback=t??null,Fu(ae,Ee,we),oI(se,we,ye),se}function mm(e,t,o,s){Uh(t,e);var d=t.current,m=oi(),b=Gu(d);Jn(b);var T=dM(o);t.context===null?t.context=T:t.pendingContext=T,no&&Ur!==null&&!F1&&(F1=!0,p(`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.
|
|
237
|
+
|
|
238
|
+
Check the render method of %s.`,Lt(Ur)||"Unknown"));var M=$s(m,b);M.payload={element:e},s=s===void 0?null:s,s!==null&&(typeof s!="function"&&p("render(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",s),M.callback=s);var P=Fu(d,M,b);return P!==null&&(Qr(P,d,b,m),x0(P,d,b)),b}function sx(e){var t=e.current;if(!t.child)return null;switch(t.child.tag){case N:return t.child.stateNode;default:return t.child.stateNode}}function e8(e){switch(e.tag){case w:{var t=e.stateNode;if(Vd(t)){var o=ay(t);cI(t,o)}break}case H:{Bs(function(){var d=Ri(e,Mt);if(d!==null){var m=oi();Qr(d,e,Mt,m)}});var s=Mt;B1(e,s);break}}}function vM(e,t){var o=e.memoizedState;o!==null&&o.dehydrated!==null&&(o.retryLane=uy(o.retryLane,t))}function B1(e,t){vM(e,t);var o=e.alternate;o&&vM(o,t)}function t8(e){if(e.tag===H){var t=Ic,o=Ri(e,t);if(o!==null){var s=oi();Qr(o,e,t,s)}B1(e,t)}}function n8(e){if(e.tag===H){var t=Gu(e),o=Ri(e,t);if(o!==null){var s=oi();Qr(o,e,t,s)}B1(e,t)}}function mM(e){var t=Vn(e);return t===null?null:t.stateNode}var gM=function(e){return null};function r8(e){return gM(e)}var yM=function(e){return!1};function a8(e){return yM(e)}var xM=null,bM=null,wM=null,SM=null,CM=null,EM=null,_M=null,TM=null,RM=null;{var kM=function(e,t,o){var s=t[o],d=Ft(e)?e.slice():Ot({},e);return o+1===t.length?(Ft(d)?d.splice(s,1):delete d[s],d):(d[s]=kM(e[s],t,o+1),d)},MM=function(e,t){return kM(e,t,0)},NM=function(e,t,o,s){var d=t[s],m=Ft(e)?e.slice():Ot({},e);if(s+1===t.length){var b=o[s];m[b]=m[d],Ft(m)?m.splice(d,1):delete m[d]}else m[d]=NM(e[d],t,o,s+1);return m},DM=function(e,t,o){if(t.length!==o.length){v("copyWithRename() expects paths of the same length");return}else for(var s=0;s<o.length-1;s++)if(t[s]!==o[s]){v("copyWithRename() expects paths to be the same except for the deepest key");return}return NM(e,t,o,0)},AM=function(e,t,o,s){if(o>=t.length)return s;var d=t[o],m=Ft(e)?e.slice():Ot({},e);return m[d]=AM(e[d],t,o+1,s),m},OM=function(e,t,o){return AM(e,t,0,o)},H1=function(e,t){for(var o=e.memoizedState;o!==null&&t>0;)o=o.next,t--;return o};xM=function(e,t,o,s){var d=H1(e,t);if(d!==null){var m=OM(d.memoizedState,o,s);d.memoizedState=m,d.baseState=m,e.memoizedProps=Ot({},e.memoizedProps);var b=Ri(e,Mt);b!==null&&Qr(b,e,Mt,Nn)}},bM=function(e,t,o){var s=H1(e,t);if(s!==null){var d=MM(s.memoizedState,o);s.memoizedState=d,s.baseState=d,e.memoizedProps=Ot({},e.memoizedProps);var m=Ri(e,Mt);m!==null&&Qr(m,e,Mt,Nn)}},wM=function(e,t,o,s){var d=H1(e,t);if(d!==null){var m=DM(d.memoizedState,o,s);d.memoizedState=m,d.baseState=m,e.memoizedProps=Ot({},e.memoizedProps);var b=Ri(e,Mt);b!==null&&Qr(b,e,Mt,Nn)}},SM=function(e,t,o){e.pendingProps=OM(e.memoizedProps,t,o),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var s=Ri(e,Mt);s!==null&&Qr(s,e,Mt,Nn)},CM=function(e,t){e.pendingProps=MM(e.memoizedProps,t),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var o=Ri(e,Mt);o!==null&&Qr(o,e,Mt,Nn)},EM=function(e,t,o){e.pendingProps=DM(e.memoizedProps,t,o),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var s=Ri(e,Mt);s!==null&&Qr(s,e,Mt,Nn)},_M=function(e){var t=Ri(e,Mt);t!==null&&Qr(t,e,Mt,Nn)},TM=function(e){gM=e},RM=function(e){yM=e}}function i8(e){var t=za(e);return t===null?null:t.stateNode}function o8(e){return null}function l8(){return Ur}function s8(e){var t=e.findFiberByHostInstance,o=l.ReactCurrentDispatcher;return Su({bundleType:e.bundleType,version:e.version,rendererPackageName:e.rendererPackageName,rendererConfig:e.rendererConfig,overrideHookState:xM,overrideHookStateDeletePath:bM,overrideHookStateRenamePath:wM,overrideProps:SM,overridePropsDeletePath:CM,overridePropsRenamePath:EM,setErrorHandler:TM,setSuspenseHandler:RM,scheduleUpdate:_M,currentDispatcherRef:o,findHostInstanceByFiber:i8,findFiberByHostInstance:t||o8,findHostInstancesForRefresh:$I,scheduleRefresh:jI,scheduleRoot:PI,setRefreshHandler:zI,getCurrentFiber:l8,reconcilerVersion:U1})}var LM=typeof reportError=="function"?reportError:function(e){console.error(e)};function V1(e){this._internalRoot=e}ux.prototype.render=V1.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw new Error("Cannot update an unmounted root.");{typeof arguments[1]=="function"?p("render(...): does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):cx(arguments[1])?p("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."):typeof arguments[1]<"u"&&p("You passed a second argument to root.render(...) but it only accepts one argument.");var o=t.containerInfo;if(o.nodeType!==dr){var s=mM(t.current);s&&s.parentNode!==o&&p("render(...): It looks like the React-rendered content of the root container was removed without using React. This is not supported and will cause errors. Instead, call root.unmount() to empty a root's container.")}}mm(e,t,null,null)},ux.prototype.unmount=V1.prototype.unmount=function(){typeof arguments[0]=="function"&&p("unmount(...): does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect().");var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;W2()&&p("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."),Bs(function(){mm(null,e,null,null)}),LR(t)}};function u8(e,t){if(!cx(e))throw new Error("createRoot(...): Target container is not a DOM element.");zM(e);var o=!1,s=!1,d="",m=LM;t!=null&&(t.hydrate?v("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof t=="object"&&t!==null&&t.$$typeof===wr&&p(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
|
|
239
|
+
|
|
240
|
+
let root = createRoot(domContainer);
|
|
241
|
+
root.render(<App />);`),t.unstable_strictMode===!0&&(o=!0),t.identifierPrefix!==void 0&&(d=t.identifierPrefix),t.onRecoverableError!==void 0&&(m=t.onRecoverableError),t.transitionCallbacks!==void 0&&t.transitionCallbacks);var b=pM(e,a0,null,o,s,d,m);Qy(b.current,e);var T=e.nodeType===dr?e.parentNode:e;return Sv(T),new V1(b)}function ux(e){this._internalRoot=e}function c8(e){e&&xy(e)}ux.prototype.unstable_scheduleHydration=c8;function f8(e,t,o){if(!cx(e))throw new Error("hydrateRoot(...): Target container is not a DOM element.");zM(e),t===void 0&&p("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var s=o??null,d=o!=null&&o.hydratedSources||null,m=!1,b=!1,T="",M=LM;o!=null&&(o.unstable_strictMode===!0&&(m=!0),o.identifierPrefix!==void 0&&(T=o.identifierPrefix),o.onRecoverableError!==void 0&&(M=o.onRecoverableError));var P=hM(t,null,e,a0,s,m,b,T,M);if(Qy(P.current,e),Sv(e),d)for(var F=0;F<d.length;F++){var se=d[F];vU(P,se)}return new ux(P)}function cx(e){return!!(e&&(e.nodeType===Aa||e.nodeType===Uo||e.nodeType===Eh))}function gm(e){return!!(e&&(e.nodeType===Aa||e.nodeType===Uo||e.nodeType===Eh||e.nodeType===dr&&e.nodeValue===" react-mount-point-unstable "))}function zM(e){e.nodeType===Aa&&e.tagName&&e.tagName.toUpperCase()==="BODY"&&p("createRoot(): Creating roots directly with document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try using a container element created for your app."),Ov(e)&&(e._reactRootContainer?p("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):p("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."))}var d8=l.ReactCurrentOwner,jM;jM=function(e){if(e._reactRootContainer&&e.nodeType!==dr){var t=mM(e._reactRootContainer.current);t&&t.parentNode!==e&&p("render(...): It looks like the React-rendered content of this container was removed without using React. This is not supported and will cause errors. Instead, call ReactDOM.unmountComponentAtNode to empty a container.")}var o=!!e._reactRootContainer,s=Y1(e),d=!!(s&&zu(s));d&&!o&&p("render(...): Replacing React-rendered children with a new root component. If you intended to update the children of this node, you should instead have the existing children update their state and render the new components instead of calling ReactDOM.render."),e.nodeType===Aa&&e.tagName&&e.tagName.toUpperCase()==="BODY"&&p("render(): Rendering components directly into document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try rendering into a container element created for your app.")};function Y1(e){return e?e.nodeType===Uo?e.documentElement:e.firstChild:null}function PM(){}function p8(e,t,o,s,d){if(d){if(typeof s=="function"){var m=s;s=function(){var ae=sx(b);m.call(ae)}}var b=hM(t,s,e,Pu,null,!1,!1,"",PM);e._reactRootContainer=b,Qy(b.current,e);var T=e.nodeType===dr?e.parentNode:e;return Sv(T),Bs(),b}else{for(var M;M=e.lastChild;)e.removeChild(M);if(typeof s=="function"){var P=s;s=function(){var ae=sx(F);P.call(ae)}}var F=pM(e,Pu,null,!1,!1,"",PM);e._reactRootContainer=F,Qy(F.current,e);var se=e.nodeType===dr?e.parentNode:e;return Sv(se),Bs(function(){mm(t,F,o,s)}),F}}function h8(e,t){e!==null&&typeof e!="function"&&p("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",t,e)}function fx(e,t,o,s,d){jM(o),h8(d===void 0?null:d,"render");var m=o._reactRootContainer,b;if(!m)b=p8(o,t,e,d,s);else{if(b=m,typeof d=="function"){var T=d;d=function(){var M=sx(b);T.call(M)}}mm(t,b,e,d)}return sx(b)}var $M=!1;function v8(e){{$M||($M=!0,p("findDOMNode is deprecated and will be removed in the next major release. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node"));var t=d8.current;if(t!==null&&t.stateNode!==null){var o=t.stateNode._warnedAboutRefsInRender;o||p("%s is accessing findDOMNode inside its render(). render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",tn(t.type)||"A component"),t.stateNode._warnedAboutRefsInRender=!0}}return e==null?null:e.nodeType===Aa?e:ZI(e,"findDOMNode")}function m8(e,t,o){if(p("ReactDOM.hydrate is no longer supported in React 18. Use hydrateRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!gm(t))throw new Error("Target container is not a DOM element.");{var s=Ov(t)&&t._reactRootContainer===void 0;s&&p("You are calling ReactDOM.hydrate() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call hydrateRoot(container, element)?")}return fx(null,e,t,!0,o)}function g8(e,t,o){if(p("ReactDOM.render is no longer supported in React 18. Use createRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!gm(t))throw new Error("Target container is not a DOM element.");{var s=Ov(t)&&t._reactRootContainer===void 0;s&&p("You are calling ReactDOM.render() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.render(element)?")}return fx(null,e,t,!1,o)}function y8(e,t,o,s){if(p("ReactDOM.unstable_renderSubtreeIntoContainer() is no longer supported in React 18. Consider using a portal instead. Until you switch to the createRoot API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!gm(o))throw new Error("Target container is not a DOM element.");if(e==null||!Bb(e))throw new Error("parentComponent must be a valid React Component");return fx(e,t,o,!1,s)}var UM=!1;function x8(e){if(UM||(UM=!0,p("unmountComponentAtNode is deprecated and will be removed in the next major release. Switch to the createRoot API. Learn more: https://reactjs.org/link/switch-to-createroot")),!gm(e))throw new Error("unmountComponentAtNode(...): Target container is not a DOM element.");{var t=Ov(e)&&e._reactRootContainer===void 0;t&&p("You are calling ReactDOM.unmountComponentAtNode() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.unmount()?")}if(e._reactRootContainer){{var o=Y1(e),s=o&&!zu(o);s&&p("unmountComponentAtNode(): The node you're attempting to unmount was rendered by another copy of React.")}return Bs(function(){fx(null,null,e,!1,function(){e._reactRootContainer=null,LR(e)})}),!0}else{{var d=Y1(e),m=!!(d&&zu(d)),b=e.nodeType===Aa&&gm(e.parentNode)&&!!e.parentNode._reactRootContainer;m&&p("unmountComponentAtNode(): The node you're attempting to unmount was rendered by React and is not a top-level container. %s",b?"You may have accidentally passed in a React root node instead of its container.":"Instead, have the parent component update its state and rerender in order to remove this component.")}return!1}}oa(e8),Tu(t8),vy(n8),Jc(Ei),iv(dy),(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")&&p("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"),ld(wP),Ib(S1,fI,Bs);function b8(e,t){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!cx(t))throw new Error("Target container is not a DOM element.");return JI(e,t,null,o)}function w8(e,t,o,s){return y8(e,t,o,s)}var W1={usingClientEntryPoint:!1,Events:[zu,up,Jy,vu,sd,S1]};function S8(e,t){return W1.usingClientEntryPoint||p('You are importing createRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),u8(e,t)}function C8(e,t,o){return W1.usingClientEntryPoint||p('You are importing hydrateRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),f8(e,t,o)}function E8(e){return W2()&&p("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."),Bs(e)}var _8=s8({findFiberByHostInstance:pf,bundleType:1,version:U1,rendererPackageName:"react-dom"});if(!_8&&Ke&&window.top===window.self&&(navigator.userAgent.indexOf("Chrome")>-1&&navigator.userAgent.indexOf("Edge")===-1||navigator.userAgent.indexOf("Firefox")>-1)){var FM=window.location.protocol;/^(https?|file):$/.test(FM)&&console.info("%cDownload the React DevTools for a better development experience: https://reactjs.org/link/react-devtools"+(FM==="file:"?`
|
|
242
|
+
You might need to use a local HTTP server (instead of file://): https://reactjs.org/link/react-devtools-faq`:""),"font-weight:bold")}ci.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=W1,ci.createPortal=b8,ci.createRoot=S8,ci.findDOMNode=v8,ci.flushSync=E8,ci.hydrate=m8,ci.hydrateRoot=C8,ci.render=g8,ci.unmountComponentAtNode=x8,ci.unstable_batchedUpdates=S1,ci.unstable_renderSubtreeIntoContainer=w8,ci.version=U1,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)})()),ci}var bC;function wC(){if(bC)return Sm.exports;bC=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(process.env.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}}return process.env.NODE_ENV==="production"?(n(),Sm.exports=dN()):Sm.exports=pN(),Sm.exports}var SC;function hN(){if(SC)return Af;SC=1;var n=wC();if(process.env.NODE_ENV==="production")Af.createRoot=n.createRoot,Af.hydrateRoot=n.hydrateRoot;else{var a=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;Af.createRoot=function(l,c){a.usingClientEntryPoint=!0;try{return n.createRoot(l,c)}finally{a.usingClientEntryPoint=!1}},Af.hydrateRoot=function(l,c,f){a.usingClientEntryPoint=!0;try{return n.hydrateRoot(l,c,f)}finally{a.usingClientEntryPoint=!1}}}return Af}var vN=hN(),ue=Jl();const mN=cC(ue),gN=`-----BEGIN RSA PUBLIC KEY-----
|
|
243
|
+
MIIBCgKCAQEAmNLajHHSeDOOwkYRjLx6tcr0ajo0nQoPBtRZ1/ngclsO7i5vHONM
|
|
244
|
+
4zFbAIs4Zdt6mbz6/VD7BUzhk10UcX1j8k6eVrxKW7O7V8k3Hb0zHv58Hxc+5wvA
|
|
245
|
+
n6aTtvjGYRvuNxHhWdFqfjjwN0p6F50Q67XYf0o7VMFISv0OfdgAcDy/6NHcu/eM
|
|
246
|
+
l4fOAt5yUKik1fKrdPzjwn0030+nWXDJk9Oxx7sJZ+OAu9g3rc1KRh52XTPsWIp9
|
|
247
|
+
8PNbkieMB++7pp4I3cf7lPJPVRPFu1MV+Lsh1nLkDjmAJdvaZkXkBYwR10hKuRoC
|
|
248
|
+
YvfVXNczsy0yQg+pyS2SAE4ZTrI1Q7XbmQIDAQAB
|
|
249
|
+
-----END RSA PUBLIC KEY-----`,CC={isValid:!1,tier:"Free",features:[],reason:"not_initialized",message:"Activation proof has not been initialized."},Sx="__muonroi_ui_engine_license_store__";class EC{static get current(){const a=Gs();return{...a.state,features:[...a.state.features],expiresAt:a.state.expiresAt?new Date(a.state.expiresAt.getTime()):void 0}}static async initialize(a,l){const c=a.trim();if(!c)throw this.MSetInvalid("invalid_format","Activation proof is empty."),new Error("Activation proof is empty.");try{const f=((l==null?void 0:l.publicKeyPem)??gN).trim();if(!f)throw new Gi("verification_failed","Public key PEM is empty.");const v=await this.MGetOrImportPublicKey(f),p=await this.MVerifyJwt(c,v),g=yN(p,"features","allowedFeatures","capabilities");let x=xN(_m(p,"tier","license_tier","licenseTier"));x==="Free"&&g.length>0&&(x="Licensed");const S=RC(p,"tenantId","tenant_id","tid"),E=Cx(p,"exp"),w=Gs();return w.state={isValid:!0,tier:x,tenantId:S||void 0,features:g,expiresAt:E?new Date(E*1e3):void 0},this.current}catch(f){throw f instanceof Gi?this.MSetInvalid(f.reason,f.message):this.MSetInvalid("verification_failed",f instanceof Error?f.message:"License verification failed."),new Error(Gs().state.message??"License verification failed.")}}static hasFeature(a){const l=Gs().state,c=a.trim().toLowerCase();if(!c||!l.isValid||l.tier==="Free")return!1;const f=l.features.map(v=>v.trim().toLowerCase()).filter(v=>v.length>0);return f.includes("*")||f.length===0?!0:f.includes(c)}static hasAnyFeature(a){for(const l of a)if(this.hasFeature(l))return!0;return!1}static reset(){const a=Gs();a.state={...CC}}static MResetForTests(){this.reset();const a=Gs();a.cachedKeyPem=null,a.cachedCryptoKey=null}static async MGetOrImportPublicKey(a){const l=Gs();return l.cachedKeyPem===a&&l.cachedCryptoKey||(l.cachedKeyPem=a,l.cachedCryptoKey=this.MImportPublicKey(a)),l.cachedCryptoKey}static async MImportPublicKey(a){const l=_C(),c=a.trim();let f;if(c.includes("-----BEGIN PUBLIC KEY-----"))f=kC(c,"PUBLIC KEY");else if(c.includes("-----BEGIN RSA PUBLIC KEY-----")){const v=kC(c,"RSA PUBLIC KEY");f=bN(v)}else throw new Gi("verification_failed","Unsupported public key format.");return await l.subtle.importKey("spki",_x(f),{name:"RSASSA-PKCS1-v1_5",hash:"SHA-256"},!1,["verify"])}static async MVerifyJwt(a,l){const c=a.split(".");if(c.length!==3)throw new Gi("invalid_format","Activation proof is not a valid JWT.");const[f,v,p]=c;if(!f||!v||!p)throw new Gi("invalid_format","Activation proof has an invalid JWT structure.");const g=TC(f),x=RC(g,"alg");if(x.toUpperCase()!=="RS256")throw new Gi("invalid_format",`Unsupported JWT algorithm '${x||"unknown"}'.`);const S=TC(v),E=Math.floor(Date.now()/1e3),w=Cx(S,"nbf");if(w!==null&&w>E)throw new Gi("not_yet_valid","Activation proof is not active yet.");const _=Cx(S,"exp");if(_!==null&&_<=E)throw new Gi("expired","Activation proof has expired.");const N=_C(),D=Ex(p),R=new TextEncoder().encode(`${f}.${v}`);if(!await N.subtle.verify({name:"RSASSA-PKCS1-v1_5",hash:"SHA-256"},l,_x(D),_x(R)))throw new Gi("invalid_signature","Activation proof signature is invalid.");return S}static MSetInvalid(a,l){Gs().state={isValid:!1,tier:"Free",features:[],reason:a,message:l}}}class Gi extends Error{constructor(l,c){super(c);IM(this,"reason");this.reason=l,this.name="MLicenseVerificationError"}}function Gs(){const n=globalThis;return n[Sx]||(n[Sx]={state:{...CC},cachedKeyPem:null,cachedCryptoKey:null}),n[Sx]}function _C(){var n;if(!((n=globalThis.crypto)!=null&&n.subtle))throw new Gi("verification_failed","WebCrypto SubtleCrypto is unavailable.");return globalThis.crypto}function TC(n){try{const a=Ex(n),l=new TextDecoder().decode(a),c=JSON.parse(l);if(!c||typeof c!="object"||Array.isArray(c))throw new Error("JWT section payload must be an object.");return c}catch(a){throw new Gi("invalid_format",a instanceof Error?a.message:"Unable to parse JWT payload.")}}function _m(n,...a){for(const l of a){if(l in n)return n[l];const c=l.toLowerCase();for(const[f,v]of Object.entries(n))if(f.toLowerCase()===c)return v}}function RC(n,...a){const l=_m(n,...a);return typeof l=="string"?l.trim():""}function yN(n,...a){const l=_m(n,...a);if(Array.isArray(l)){const c=l.filter(f=>typeof f=="string").flatMap(f=>f.split(",")).map(f=>f.trim()).filter(f=>f.length>0);return[...new Set(c)]}return typeof l=="string"?[...new Set(l.split(",").map(c=>c.trim()).filter(c=>c.length>0))]:[]}function Cx(n,...a){const l=_m(n,...a);if(typeof l=="number"&&Number.isFinite(l))return Math.floor(l);if(typeof l=="string"&&l.trim().length>0){const c=Number(l);if(Number.isFinite(c))return Math.floor(c)}return null}function xN(n){if(typeof n!="string")return"Free";switch(n.trim().toLowerCase()){case"enterprise":return"Enterprise";case"licensed":case"license":case"professional":case"pro":return"Licensed";default:return"Free"}}function Ex(n){const a=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(Math.ceil(n.length/4)*4,"=");if(typeof atob!="function")throw new Gi("verification_failed","Base64 decoder is unavailable.");const l=atob(a),c=new Uint8Array(l.length);for(let f=0;f<l.length;f++)c[f]=l.charCodeAt(f);return c}function kC(n,a){const l=`-----BEGIN ${a}-----`,c=`-----END ${a}-----`,f=n.replace(l,"").replace(c,"").replace(/\s+/g,"");return Ex(f.replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/g,""))}function bN(n){const a=Uint8Array.from([48,13,6,9,42,134,72,134,247,13,1,1,1,5,0]),l=Tm(Uint8Array.of(0),n),c=Tm(Uint8Array.of(3),MC(l.length),l),f=Tm(a,c);return Tm(Uint8Array.of(48),MC(f.length),f)}function MC(n){if(n<128)return Uint8Array.of(n);const a=[];let l=n;for(;l>0;)a.unshift(l&255),l>>=8;return Uint8Array.of(128|a.length,...a)}function Tm(...n){const a=n.reduce((f,v)=>f+v.length,0),l=new Uint8Array(a);let c=0;for(const f of n)l.set(f,c),c+=f.length;return l}function _x(n){const a=new Uint8Array(n.length);return a.set(n),a.buffer}const wN="https://muonroi.com/pricing",SN=["ui-engine.rule-components","rule-components","rule-engine","rules.runtime"],CN={"decision-table":["rule-components.decision-table"],"decision-table-list":["rule-components.decision-table"],"nrules-editor":["rule-components.nrules-editor"],"cep-window-config":["rule-components.cep-window-config"],"feel-playground":["rule-components.feel-playground"],"rule-flow-designer":["rule-components.rule-flow-designer"],"rule-test-runner":["rule-components.rule-test-runner"],"ui-engine-app":["rule-components.ui-engine-app"]};function EN(n){return EC.hasAnyFeature(_N(n))}function NC(n,a=wN){if(EN(n))return null;const l=EC.current,c=l.reason==="expired";return er`
|
|
250
|
+
<section class="space-y-2 rounded-lg border border-amber-300 bg-amber-50 p-4 text-sm text-amber-900">
|
|
251
|
+
<h3 class="text-base font-semibold">${c?"License expired":"License required"}</h3>
|
|
252
|
+
<p>${c?"Your Muonroi commercial license has expired.":"This component requires a Muonroi commercial license."}</p>
|
|
253
|
+
<p class="text-xs">
|
|
254
|
+
Feature: <code>${n}</code>
|
|
255
|
+
${l.tier?er`<span class="ml-2">Current tier: <strong>${l.tier}</strong></span>`:er``}
|
|
256
|
+
</p>
|
|
257
|
+
${l.expiresAt?er`<p class="text-xs">Expires at: ${l.expiresAt.toISOString()}</p>`:er``}
|
|
258
|
+
<a href=${a} target="_blank" rel="noopener" class="inline-block rounded bg-amber-900 px-3 py-1 text-xs text-white">
|
|
259
|
+
Get a license
|
|
260
|
+
</a>
|
|
261
|
+
</section>
|
|
262
|
+
`}function _N(n){const a=[...SN,n,...CN[n]??[]];return[...new Set(a.map(l=>l.trim()).filter(l=>l.length>0))]}const TN='/*! tailwindcss v4.2.1 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-border-style:solid;--tw-font-weight:initial;--tw-tracking:initial}}}@layer theme{:root,:host{--font-sans:"Inter Variable", system-ui, sans-serif;--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-red-50:oklch(97.1% .013 17.38);--color-red-300:oklch(80.8% .114 19.571);--color-red-400:oklch(70.4% .191 22.216);--color-red-500:oklch(63.7% .237 25.331);--color-red-700:oklch(50.5% .213 27.518);--color-red-900:oklch(39.6% .141 25.723);--color-amber-50:oklch(98.7% .022 95.277);--color-amber-300:oklch(87.9% .169 91.605);--color-amber-400:oklch(82.8% .189 84.429);--color-amber-700:oklch(55.5% .163 48.998);--color-amber-900:oklch(41.4% .112 45.904);--color-emerald-50:oklch(97.9% .021 166.113);--color-emerald-700:oklch(50.8% .118 165.612);--color-blue-50:oklch(97% .014 254.604);--color-zinc-50:oklch(98.5% 0 0);--color-zinc-100:oklch(96.7% .001 286.375);--color-zinc-200:oklch(92% .004 286.32);--color-zinc-400:oklch(70.5% .015 286.067);--color-zinc-500:oklch(55.2% .016 285.938);--color-zinc-600:oklch(44.2% .017 285.786);--color-zinc-900:oklch(21% .006 285.885);--color-black:#000;--color-white:#fff;--spacing:.25rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75 / 1.25);--font-weight-medium:500;--font-weight-semibold:600;--tracking-wide:.025em;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--animate-pulse:pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--color-mu-primary:oklch(55% .2 250);--color-mu-surface:oklch(98% 0 0);--color-mu-border:oklch(85% 0 0);--color-mu-danger:oklch(55% .22 25)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.collapse{visibility:collapse}.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.start{inset-inline-start:var(--spacing)}.end{inset-inline-end:var(--spacing)}.end-1{inset-inline-end:calc(var(--spacing) * 1)}.top-0{top:calc(var(--spacing) * 0)}.left-0{left:calc(var(--spacing) * 0)}.z-10{z-index:10}.z-20{z-index:20}.row-1{grid-row:1}.mx-2{margin-inline:calc(var(--spacing) * 2)}.mt-1{margin-top:calc(var(--spacing) * 1)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mb-1{margin-bottom:calc(var(--spacing) * 1)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.ml-2{margin-left:calc(var(--spacing) * 2)}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.table{display:table}.h-2{height:calc(var(--spacing) * 2)}.h-24{height:calc(var(--spacing) * 24)}.h-full{height:100%}.max-h-48{max-height:calc(var(--spacing) * 48)}.max-h-\\[420px\\]{max-height:420px}.min-h-9{min-height:calc(var(--spacing) * 9)}.min-h-20{min-height:calc(var(--spacing) * 20)}.min-h-24{min-height:calc(var(--spacing) * 24)}.min-h-\\[640px\\]{min-height:640px}.w-full{width:100%}.border-collapse{border-collapse:collapse}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.animate-pulse{animation:var(--animate-pulse)}.cursor-grab{cursor:grab}.cursor-not-allowed{cursor:not-allowed}.resize{resize:both}.list-disc{list-style-type:disc}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 1) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 1) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 2) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 3) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 3) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 4) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-y-reverse)))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.rounded{border-radius:.25rem}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-xl{border-radius:var(--radius-xl)}.border{border-style:var(--tw-border-style);border-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-\\[var\\(--color-mu-border\\)\\]{border-color:var(--color-mu-border)}.border-\\[var\\(--color-mu-primary\\)\\]{border-color:var(--color-mu-primary)}.border-amber-300{border-color:var(--color-amber-300)}.border-amber-400{border-color:var(--color-amber-400)}.border-red-300{border-color:var(--color-red-300)}.border-red-400{border-color:var(--color-red-400)}.border-zinc-200{border-color:var(--color-zinc-200)}.bg-\\[var\\(--color-mu-danger\\)\\]{background-color:var(--color-mu-danger)}.bg-\\[var\\(--color-mu-primary\\)\\]{background-color:var(--color-mu-primary)}.bg-\\[var\\(--color-mu-primary-soft\\)\\]{background-color:var(--color-mu-primary-soft)}.bg-\\[var\\(--color-mu-surface\\)\\]{background-color:var(--color-mu-surface)}.bg-amber-50{background-color:var(--color-amber-50)}.bg-amber-900{background-color:var(--color-amber-900)}.bg-black{background-color:var(--color-black)}.bg-blue-50{background-color:var(--color-blue-50)}.bg-emerald-50{background-color:var(--color-emerald-50)}.bg-red-50{background-color:var(--color-red-50)}.bg-white{background-color:var(--color-white)}.bg-zinc-50{background-color:var(--color-zinc-50)}.bg-zinc-100{background-color:var(--color-zinc-100)}.p-1{padding:calc(var(--spacing) * 1)}.p-2{padding:calc(var(--spacing) * 2)}.p-3{padding:calc(var(--spacing) * 3)}.p-4{padding:calc(var(--spacing) * 4)}.p-6{padding:calc(var(--spacing) * 6)}.px-1{padding-inline:calc(var(--spacing) * 1)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-3{padding-inline:calc(var(--spacing) * 3)}.py-0\\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:calc(var(--spacing) * 1)}.py-2{padding-block:calc(var(--spacing) * 2)}.pb-2{padding-bottom:calc(var(--spacing) * 2)}.pb-3{padding-bottom:calc(var(--spacing) * 3)}.pl-4{padding-left:calc(var(--spacing) * 4)}.pl-5{padding-left:calc(var(--spacing) * 5)}.text-left{text-align:left}.font-mono{font-family:var(--font-mono)}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.break-all{word-break:break-all}.text-\\[var\\(--color-mu-primary\\)\\]{color:var(--color-mu-primary)}.text-amber-700{color:var(--color-amber-700)}.text-amber-900{color:var(--color-amber-900)}.text-emerald-700{color:var(--color-emerald-700)}.text-red-500{color:var(--color-red-500)}.text-red-700{color:var(--color-red-700)}.text-red-900{color:var(--color-red-900)}.text-white{color:var(--color-white)}.text-zinc-400{color:var(--color-zinc-400)}.text-zinc-500{color:var(--color-zinc-500)}.text-zinc-600{color:var(--color-zinc-600)}.text-zinc-900{color:var(--color-zinc-900)}.uppercase{text-transform:uppercase}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}@media(hover:hover){.hover\\:bg-\\[var\\(--color-mu-primary-soft\\)\\]:hover{background-color:var(--color-mu-primary-soft)}}@media(min-width:48rem){.md\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(min-width:64rem){.lg\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\\:grid-cols-\\[320px_1fr\\]{grid-template-columns:320px 1fr}}}:host{font-family:var(--font-sans);color:#10171f}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@keyframes pulse{50%{opacity:.5}}',RN=".react-flow{direction:ltr;--xy-edge-stroke-default: #b1b1b7;--xy-edge-stroke-width-default: 1;--xy-edge-stroke-selected-default: #555;--xy-connectionline-stroke-default: #b1b1b7;--xy-connectionline-stroke-width-default: 1;--xy-attribution-background-color-default: rgba(255, 255, 255, .5);--xy-minimap-background-color-default: #fff;--xy-minimap-mask-background-color-default: rgba(240, 240, 240, .6);--xy-minimap-mask-stroke-color-default: transparent;--xy-minimap-mask-stroke-width-default: 1;--xy-minimap-node-background-color-default: #e2e2e2;--xy-minimap-node-stroke-color-default: transparent;--xy-minimap-node-stroke-width-default: 2;--xy-background-color-default: transparent;--xy-background-pattern-dots-color-default: #91919a;--xy-background-pattern-lines-color-default: #eee;--xy-background-pattern-cross-color-default: #e2e2e2;background-color:var(--xy-background-color, var(--xy-background-color-default));--xy-node-color-default: inherit;--xy-node-border-default: 1px solid #1a192b;--xy-node-background-color-default: #fff;--xy-node-group-background-color-default: rgba(240, 240, 240, .25);--xy-node-boxshadow-hover-default: 0 1px 4px 1px rgba(0, 0, 0, .08);--xy-node-boxshadow-selected-default: 0 0 0 .5px #1a192b;--xy-node-border-radius-default: 3px;--xy-handle-background-color-default: #1a192b;--xy-handle-border-color-default: #fff;--xy-selection-background-color-default: rgba(0, 89, 220, .08);--xy-selection-border-default: 1px dotted rgba(0, 89, 220, .8);--xy-controls-button-background-color-default: #fefefe;--xy-controls-button-background-color-hover-default: #f4f4f4;--xy-controls-button-color-default: inherit;--xy-controls-button-color-hover-default: inherit;--xy-controls-button-border-color-default: #eee;--xy-controls-box-shadow-default: 0 0 2px 1px rgba(0, 0, 0, .08);--xy-edge-label-background-color-default: #ffffff;--xy-edge-label-color-default: inherit;--xy-resize-background-color-default: #3367d9}.react-flow.dark{--xy-edge-stroke-default: #3e3e3e;--xy-edge-stroke-width-default: 1;--xy-edge-stroke-selected-default: #727272;--xy-connectionline-stroke-default: #b1b1b7;--xy-connectionline-stroke-width-default: 1;--xy-attribution-background-color-default: rgba(150, 150, 150, .25);--xy-minimap-background-color-default: #141414;--xy-minimap-mask-background-color-default: rgba(60, 60, 60, .6);--xy-minimap-mask-stroke-color-default: transparent;--xy-minimap-mask-stroke-width-default: 1;--xy-minimap-node-background-color-default: #2b2b2b;--xy-minimap-node-stroke-color-default: transparent;--xy-minimap-node-stroke-width-default: 2;--xy-background-color-default: #141414;--xy-background-pattern-dots-color-default: #777;--xy-background-pattern-lines-color-default: #777;--xy-background-pattern-cross-color-default: #777;--xy-node-color-default: #f8f8f8;--xy-node-border-default: 1px solid #3c3c3c;--xy-node-background-color-default: #1e1e1e;--xy-node-group-background-color-default: rgba(240, 240, 240, .25);--xy-node-boxshadow-hover-default: 0 1px 4px 1px rgba(255, 255, 255, .08);--xy-node-boxshadow-selected-default: 0 0 0 .5px #999;--xy-handle-background-color-default: #bebebe;--xy-handle-border-color-default: #1e1e1e;--xy-selection-background-color-default: rgba(200, 200, 220, .08);--xy-selection-border-default: 1px dotted rgba(200, 200, 220, .8);--xy-controls-button-background-color-default: #2b2b2b;--xy-controls-button-background-color-hover-default: #3e3e3e;--xy-controls-button-color-default: #f8f8f8;--xy-controls-button-color-hover-default: #fff;--xy-controls-button-border-color-default: #5b5b5b;--xy-controls-box-shadow-default: 0 0 2px 1px rgba(0, 0, 0, .08);--xy-edge-label-background-color-default: #141414;--xy-edge-label-color-default: #f8f8f8}.react-flow__background{background-color:var(--xy-background-color-props, var(--xy-background-color, var(--xy-background-color-default)));pointer-events:none;z-index:-1}.react-flow__container{position:absolute;width:100%;height:100%;top:0;left:0}.react-flow__pane{z-index:1}.react-flow__pane.draggable{cursor:grab}.react-flow__pane.dragging{cursor:grabbing}.react-flow__pane.selection{cursor:pointer}.react-flow__viewport{transform-origin:0 0;z-index:2;pointer-events:none}.react-flow__renderer{z-index:4}.react-flow__selection{z-index:6}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible{outline:none}.react-flow__edge-path{stroke:var(--xy-edge-stroke, var(--xy-edge-stroke-default));stroke-width:var(--xy-edge-stroke-width, var(--xy-edge-stroke-width-default));fill:none}.react-flow__connection-path{stroke:var(--xy-connectionline-stroke, var(--xy-connectionline-stroke-default));stroke-width:var(--xy-connectionline-stroke-width, var(--xy-connectionline-stroke-width-default));fill:none}.react-flow .react-flow__edges{position:absolute}.react-flow .react-flow__edges svg{overflow:visible;position:absolute;pointer-events:none}.react-flow__edge{pointer-events:visibleStroke}.react-flow__edge.selectable{cursor:pointer}.react-flow__edge.animated path{stroke-dasharray:5;animation:dashdraw .5s linear infinite}.react-flow__edge.animated path.react-flow__edge-interaction{stroke-dasharray:none;animation:none}.react-flow__edge.inactive{pointer-events:none}.react-flow__edge.selected,.react-flow__edge:focus,.react-flow__edge:focus-visible{outline:none}.react-flow__edge.selected .react-flow__edge-path,.react-flow__edge.selectable:focus .react-flow__edge-path,.react-flow__edge.selectable:focus-visible .react-flow__edge-path{stroke:var(--xy-edge-stroke-selected, var(--xy-edge-stroke-selected-default))}.react-flow__edge-textwrapper{pointer-events:all}.react-flow__edge .react-flow__edge-text{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__arrowhead polyline{stroke:var(--xy-edge-stroke, var(--xy-edge-stroke-default))}.react-flow__arrowhead polyline.arrowclosed{fill:var(--xy-edge-stroke, var(--xy-edge-stroke-default))}.react-flow__connection{pointer-events:none}.react-flow__connection .animated{stroke-dasharray:5;animation:dashdraw .5s linear infinite}svg.react-flow__connectionline{z-index:1001;overflow:visible;position:absolute}.react-flow__nodes{pointer-events:none;transform-origin:0 0}.react-flow__node{position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:all;transform-origin:0 0;box-sizing:border-box;cursor:default}.react-flow__node.selectable{cursor:pointer}.react-flow__node.draggable{cursor:grab;pointer-events:all}.react-flow__node.draggable.dragging{cursor:grabbing}.react-flow__nodesselection{z-index:3;transform-origin:left top;pointer-events:none}.react-flow__nodesselection-rect{position:absolute;pointer-events:all;cursor:grab}.react-flow__handle{position:absolute;pointer-events:none;min-width:5px;min-height:5px;width:6px;height:6px;background-color:var(--xy-handle-background-color, var(--xy-handle-background-color-default));border:1px solid var(--xy-handle-border-color, var(--xy-handle-border-color-default));border-radius:100%}.react-flow__handle.connectingfrom{pointer-events:all}.react-flow__handle.connectionindicator{pointer-events:all;cursor:crosshair}.react-flow__handle-bottom{top:auto;left:50%;bottom:0;transform:translate(-50%,50%)}.react-flow__handle-top{top:0;left:50%;transform:translate(-50%,-50%)}.react-flow__handle-left{top:50%;left:0;transform:translate(-50%,-50%)}.react-flow__handle-right{top:50%;right:0;transform:translate(50%,-50%)}.react-flow__edgeupdater{cursor:move;pointer-events:all}.react-flow__pane.selection .react-flow__panel{pointer-events:none}.react-flow__panel{position:absolute;z-index:5;margin:15px}.react-flow__panel.top{top:0}.react-flow__panel.bottom{bottom:0}.react-flow__panel.top.center,.react-flow__panel.bottom.center{left:50%;transform:translate(-15px) translate(-50%)}.react-flow__panel.left{left:0}.react-flow__panel.right{right:0}.react-flow__panel.left.center,.react-flow__panel.right.center{top:50%;transform:translateY(-15px) translateY(-50%)}.react-flow__attribution{font-size:10px;background:var(--xy-attribution-background-color, var(--xy-attribution-background-color-default));padding:2px 3px;margin:0}.react-flow__attribution a{text-decoration:none;color:#999}@keyframes dashdraw{0%{stroke-dashoffset:10}}.react-flow__edgelabel-renderer{position:absolute;width:100%;height:100%;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;left:0;top:0}.react-flow__viewport-portal{position:absolute;width:100%;height:100%;left:0;top:0;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__minimap{background:var( --xy-minimap-background-color-props, var(--xy-minimap-background-color, var(--xy-minimap-background-color-default)) )}.react-flow__minimap-svg{display:block}.react-flow__minimap-mask{fill:var( --xy-minimap-mask-background-color-props, var(--xy-minimap-mask-background-color, var(--xy-minimap-mask-background-color-default)) );stroke:var( --xy-minimap-mask-stroke-color-props, var(--xy-minimap-mask-stroke-color, var(--xy-minimap-mask-stroke-color-default)) );stroke-width:var( --xy-minimap-mask-stroke-width-props, var(--xy-minimap-mask-stroke-width, var(--xy-minimap-mask-stroke-width-default)) )}.react-flow__minimap-node{fill:var( --xy-minimap-node-background-color-props, var(--xy-minimap-node-background-color, var(--xy-minimap-node-background-color-default)) );stroke:var( --xy-minimap-node-stroke-color-props, var(--xy-minimap-node-stroke-color, var(--xy-minimap-node-stroke-color-default)) );stroke-width:var( --xy-minimap-node-stroke-width-props, var(--xy-minimap-node-stroke-width, var(--xy-minimap-node-stroke-width-default)) )}.react-flow__background-pattern.dots{fill:var( --xy-background-pattern-color-props, var(--xy-background-pattern-color, var(--xy-background-pattern-dots-color-default)) )}.react-flow__background-pattern.lines{stroke:var( --xy-background-pattern-color-props, var(--xy-background-pattern-color, var(--xy-background-pattern-lines-color-default)) )}.react-flow__background-pattern.cross{stroke:var( --xy-background-pattern-color-props, var(--xy-background-pattern-color, var(--xy-background-pattern-cross-color-default)) )}.react-flow__controls{display:flex;flex-direction:column;box-shadow:var(--xy-controls-box-shadow, var(--xy-controls-box-shadow-default))}.react-flow__controls.horizontal{flex-direction:row}.react-flow__controls-button{display:flex;justify-content:center;align-items:center;height:26px;width:26px;padding:4px;border:none;background:var(--xy-controls-button-background-color, var(--xy-controls-button-background-color-default));border-bottom:1px solid var( --xy-controls-button-border-color-props, var(--xy-controls-button-border-color, var(--xy-controls-button-border-color-default)) );color:var( --xy-controls-button-color-props, var(--xy-controls-button-color, var(--xy-controls-button-color-default)) );cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__controls-button svg{width:100%;max-width:12px;max-height:12px;fill:currentColor}.react-flow__edge.updating .react-flow__edge-path{stroke:#777}.react-flow__edge-text{font-size:10px}.react-flow__node.selectable:focus,.react-flow__node.selectable:focus-visible{outline:none}.react-flow__node-input,.react-flow__node-default,.react-flow__node-output,.react-flow__node-group{padding:10px;border-radius:var(--xy-node-border-radius, var(--xy-node-border-radius-default));width:150px;font-size:12px;color:var(--xy-node-color, var(--xy-node-color-default));text-align:center;border:var(--xy-node-border, var(--xy-node-border-default));background-color:var(--xy-node-background-color, var(--xy-node-background-color-default))}.react-flow__node-input.selectable:hover,.react-flow__node-default.selectable:hover,.react-flow__node-output.selectable:hover,.react-flow__node-group.selectable:hover{box-shadow:var(--xy-node-boxshadow-hover, var(--xy-node-boxshadow-hover-default))}.react-flow__node-input.selectable.selected,.react-flow__node-input.selectable:focus,.react-flow__node-input.selectable:focus-visible,.react-flow__node-default.selectable.selected,.react-flow__node-default.selectable:focus,.react-flow__node-default.selectable:focus-visible,.react-flow__node-output.selectable.selected,.react-flow__node-output.selectable:focus,.react-flow__node-output.selectable:focus-visible,.react-flow__node-group.selectable.selected,.react-flow__node-group.selectable:focus,.react-flow__node-group.selectable:focus-visible{box-shadow:var(--xy-node-boxshadow-selected, var(--xy-node-boxshadow-selected-default))}.react-flow__node-group{background-color:var(--xy-node-group-background-color, var(--xy-node-group-background-color-default))}.react-flow__nodesselection-rect,.react-flow__selection{background:var(--xy-selection-background-color, var(--xy-selection-background-color-default));border:var(--xy-selection-border, var(--xy-selection-border-default))}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible,.react-flow__selection:focus,.react-flow__selection:focus-visible{outline:none}.react-flow__controls-button:hover{background:var( --xy-controls-button-background-color-hover-props, var(--xy-controls-button-background-color-hover, var(--xy-controls-button-background-color-hover-default)) );color:var( --xy-controls-button-color-hover-props, var(--xy-controls-button-color-hover, var(--xy-controls-button-color-hover-default)) )}.react-flow__controls-button:disabled{pointer-events:none}.react-flow__controls-button:disabled svg{fill-opacity:.4}.react-flow__controls-button:last-child{border-bottom:none}.react-flow__controls.horizontal .react-flow__controls-button{border-bottom:none;border-right:1px solid var( --xy-controls-button-border-color-props, var(--xy-controls-button-border-color, var(--xy-controls-button-border-color-default)) )}.react-flow__controls.horizontal .react-flow__controls-button:last-child{border-right:none}.react-flow__resize-control{position:absolute}.react-flow__resize-control.left,.react-flow__resize-control.right{cursor:ew-resize}.react-flow__resize-control.top,.react-flow__resize-control.bottom{cursor:ns-resize}.react-flow__resize-control.top.left,.react-flow__resize-control.bottom.right{cursor:nwse-resize}.react-flow__resize-control.bottom.left,.react-flow__resize-control.top.right{cursor:nesw-resize}.react-flow__resize-control.handle{width:5px;height:5px;border:1px solid #fff;border-radius:1px;background-color:var(--xy-resize-background-color, var(--xy-resize-background-color-default));translate:-50% -50%}.react-flow__resize-control.handle.left{left:0;top:50%}.react-flow__resize-control.handle.right{left:100%;top:50%}.react-flow__resize-control.handle.top{left:50%;top:0}.react-flow__resize-control.handle.bottom{left:50%;top:100%}.react-flow__resize-control.handle.top.left,.react-flow__resize-control.handle.bottom.left{left:0}.react-flow__resize-control.handle.top.right,.react-flow__resize-control.handle.bottom.right{left:100%}.react-flow__resize-control.line{border-color:var(--xy-resize-background-color, var(--xy-resize-background-color-default));border-width:0;border-style:solid}.react-flow__resize-control.line.left,.react-flow__resize-control.line.right{width:1px;transform:translate(-50%);top:0;height:100%}.react-flow__resize-control.line.left{left:0;border-left-width:1px}.react-flow__resize-control.line.right{left:100%;border-right-width:1px}.react-flow__resize-control.line.top,.react-flow__resize-control.line.bottom{height:1px;transform:translateY(-50%);left:0;width:100%}.react-flow__resize-control.line.top{top:0;border-top-width:1px}.react-flow__resize-control.line.bottom{border-bottom-width:1px;top:100%}.react-flow__edge-textbg{fill:var(--xy-edge-label-background-color, var(--xy-edge-label-background-color-default))}.react-flow__edge-text{fill:var(--xy-edge-label-color, var(--xy-edge-label-color-default))}";function Tx(){return{nodes:[],edges:[],metadata:{version:1}}}let Ks={};function ul(n,a){var v,p,g,x,S,E,w;const l=new Headers(n??{}),c=((v=Ks.mGetHeaders)==null?void 0:v.call(Ks))??Ks.headers??{};for(const[_,N]of Object.entries(c))N!=null&&N.trim()&&l.set(_,N.trim());const f=((p=a==null?void 0:a.tenantId)==null?void 0:p.trim())||((x=(g=Ks.mGetTenantId)==null?void 0:g.call(Ks))==null?void 0:x.trim())||((S=Ks.tenantId)==null?void 0:S.trim());return f&&l.set("x-tenant-id",f),l.has("X-Correlation-Id")||l.set("X-Correlation-Id",((w=(E=globalThis.crypto)==null?void 0:E.randomUUID)==null?void 0:w.call(E))??`${Date.now()}-${Math.random()}`),l}var Rm={exports:{}},Bp={};/**
|
|
263
|
+
* @license React
|
|
264
|
+
* react-jsx-runtime.production.min.js
|
|
265
|
+
*
|
|
266
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
267
|
+
*
|
|
268
|
+
* This source code is licensed under the MIT license found in the
|
|
269
|
+
* LICENSE file in the root directory of this source tree.
|
|
270
|
+
*/var DC;function kN(){if(DC)return Bp;DC=1;var n=Jl(),a=Symbol.for("react.element"),l=Symbol.for("react.fragment"),c=Object.prototype.hasOwnProperty,f=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,v={key:!0,ref:!0,__self:!0,__source:!0};function p(g,x,S){var E,w={},_=null,N=null;S!==void 0&&(_=""+S),x.key!==void 0&&(_=""+x.key),x.ref!==void 0&&(N=x.ref);for(E in x)c.call(x,E)&&!v.hasOwnProperty(E)&&(w[E]=x[E]);if(g&&g.defaultProps)for(E in x=g.defaultProps,x)w[E]===void 0&&(w[E]=x[E]);return{$$typeof:a,type:g,key:_,ref:N,props:w,_owner:f.current}}return Bp.Fragment=l,Bp.jsx=p,Bp.jsxs=p,Bp}var Hp={};/**
|
|
271
|
+
* @license React
|
|
272
|
+
* react-jsx-runtime.development.js
|
|
273
|
+
*
|
|
274
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
275
|
+
*
|
|
276
|
+
* This source code is licensed under the MIT license found in the
|
|
277
|
+
* LICENSE file in the root directory of this source tree.
|
|
278
|
+
*/var AC;function MN(){return AC||(AC=1,process.env.NODE_ENV!=="production"&&(function(){var n=Jl(),a=Symbol.for("react.element"),l=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),f=Symbol.for("react.strict_mode"),v=Symbol.for("react.profiler"),p=Symbol.for("react.provider"),g=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),E=Symbol.for("react.suspense_list"),w=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),N=Symbol.for("react.offscreen"),D=Symbol.iterator,R="@@iterator";function j(Q){if(Q===null||typeof Q!="object")return null;var De=D&&Q[D]||Q[R];return typeof De=="function"?De:null}var z=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function U(Q){{for(var De=arguments.length,We=new Array(De>1?De-1:0),nt=1;nt<De;nt++)We[nt-1]=arguments[nt];L("error",Q,We)}}function L(Q,De,We){{var nt=z.ReactDebugCurrentFrame,Qe=nt.getStackAddendum();Qe!==""&&(De+="%s",We=We.concat([Qe]));var Rt=We.map(function(Pt){return String(Pt)});Rt.unshift("Warning: "+De),Function.prototype.apply.call(console[Q],console,Rt)}}var $=!1,H=!1,I=!1,q=!1,ie=!1,fe;fe=Symbol.for("react.module.reference");function Se(Q){return!!(typeof Q=="string"||typeof Q=="function"||Q===c||Q===v||ie||Q===f||Q===S||Q===E||q||Q===N||$||H||I||typeof Q=="object"&&Q!==null&&(Q.$$typeof===_||Q.$$typeof===w||Q.$$typeof===p||Q.$$typeof===g||Q.$$typeof===x||Q.$$typeof===fe||Q.getModuleId!==void 0))}function oe(Q,De,We){var nt=Q.displayName;if(nt)return nt;var Qe=De.displayName||De.name||"";return Qe!==""?We+"("+Qe+")":We}function de(Q){return Q.displayName||"Context"}function he(Q){if(Q==null)return null;if(typeof Q.tag=="number"&&U("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof Q=="function")return Q.displayName||Q.name||null;if(typeof Q=="string")return Q;switch(Q){case c:return"Fragment";case l:return"Portal";case v:return"Profiler";case f:return"StrictMode";case S:return"Suspense";case E:return"SuspenseList"}if(typeof Q=="object")switch(Q.$$typeof){case g:var De=Q;return de(De)+".Consumer";case p:var We=Q;return de(We._context)+".Provider";case x:return oe(Q,Q.render,"ForwardRef");case w:var nt=Q.displayName||null;return nt!==null?nt:he(Q.type)||"Memo";case _:{var Qe=Q,Rt=Qe._payload,Pt=Qe._init;try{return he(Pt(Rt))}catch{return null}}}return null}var V=Object.assign,ce=0,Z,te,Y,J,ne,B,K;function ke(){}ke.__reactDisabledLog=!0;function Re(){{if(ce===0){Z=console.log,te=console.info,Y=console.warn,J=console.error,ne=console.group,B=console.groupCollapsed,K=console.groupEnd;var Q={configurable:!0,enumerable:!0,value:ke,writable:!0};Object.defineProperties(console,{info:Q,log:Q,warn:Q,error:Q,group:Q,groupCollapsed:Q,groupEnd:Q})}ce++}}function Oe(){{if(ce--,ce===0){var Q={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:V({},Q,{value:Z}),info:V({},Q,{value:te}),warn:V({},Q,{value:Y}),error:V({},Q,{value:J}),group:V({},Q,{value:ne}),groupCollapsed:V({},Q,{value:B}),groupEnd:V({},Q,{value:K})})}ce<0&&U("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var $e=z.ReactCurrentDispatcher,Ie;function Te(Q,De,We){{if(Ie===void 0)try{throw Error()}catch(Qe){var nt=Qe.stack.trim().match(/\n( *(at )?)/);Ie=nt&&nt[1]||""}return`
|
|
279
|
+
`+Ie+Q}}var Ne=!1,Ve;{var Ke=typeof WeakMap=="function"?WeakMap:Map;Ve=new Ke}function Ye(Q,De){if(!Q||Ne)return"";{var We=Ve.get(Q);if(We!==void 0)return We}var nt;Ne=!0;var Qe=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Rt;Rt=$e.current,$e.current=null,Re();try{if(De){var Pt=function(){throw Error()};if(Object.defineProperty(Pt.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Pt,[])}catch(kt){nt=kt}Reflect.construct(Q,[],Pt)}else{try{Pt.call()}catch(kt){nt=kt}Q.call(Pt.prototype)}}else{try{throw Error()}catch(kt){nt=kt}Q()}}catch(kt){if(kt&&nt&&typeof kt.stack=="string"){for(var $t=kt.stack.split(`
|
|
280
|
+
`),$n=nt.stack.split(`
|
|
281
|
+
`),mn=$t.length-1,wn=$n.length-1;mn>=1&&wn>=0&&$t[mn]!==$n[wn];)wn--;for(;mn>=1&&wn>=0;mn--,wn--)if($t[mn]!==$n[wn]){if(mn!==1||wn!==1)do if(mn--,wn--,wn<0||$t[mn]!==$n[wn]){var rr=`
|
|
282
|
+
`+$t[mn].replace(" at new "," at ");return Q.displayName&&rr.includes("<anonymous>")&&(rr=rr.replace("<anonymous>",Q.displayName)),typeof Q=="function"&&Ve.set(Q,rr),rr}while(mn>=1&&wn>=0);break}}}finally{Ne=!1,$e.current=Rt,Oe(),Error.prepareStackTrace=Qe}var ha=Q?Q.displayName||Q.name:"",na=ha?Te(ha):"";return typeof Q=="function"&&Ve.set(Q,na),na}function Xe(Q,De,We){return Ye(Q,!1)}function ht(Q){var De=Q.prototype;return!!(De&&De.isReactComponent)}function Nt(Q,De,We){if(Q==null)return"";if(typeof Q=="function")return Ye(Q,ht(Q));if(typeof Q=="string")return Te(Q);switch(Q){case S:return Te("Suspense");case E:return Te("SuspenseList")}if(typeof Q=="object")switch(Q.$$typeof){case x:return Xe(Q.render);case w:return Nt(Q.type,De,We);case _:{var nt=Q,Qe=nt._payload,Rt=nt._init;try{return Nt(Rt(Qe),De,We)}catch{}}}return""}var vt=Object.prototype.hasOwnProperty,Jt={},nr=z.ReactDebugCurrentFrame;function Dn(Q){if(Q){var De=Q._owner,We=Nt(Q.type,Q._source,De?De.type:null);nr.setExtraStackFrame(We)}else nr.setExtraStackFrame(null)}function qt(Q,De,We,nt,Qe){{var Rt=Function.call.bind(vt);for(var Pt in Q)if(Rt(Q,Pt)){var $t=void 0;try{if(typeof Q[Pt]!="function"){var $n=Error((nt||"React class")+": "+We+" type `"+Pt+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof Q[Pt]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw $n.name="Invariant Violation",$n}$t=Q[Pt](De,Pt,nt,We,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(mn){$t=mn}$t&&!($t instanceof Error)&&(Dn(Qe),U("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",nt||"React class",We,Pt,typeof $t),Dn(null)),$t instanceof Error&&!($t.message in Jt)&&(Jt[$t.message]=!0,Dn(Qe),U("Failed %s type: %s",We,$t.message),Dn(null))}}}var ln=Array.isArray;function vn(Q){return ln(Q)}function jn(Q){{var De=typeof Symbol=="function"&&Symbol.toStringTag,We=De&&Q[Symbol.toStringTag]||Q.constructor.name||"Object";return We}}function Pr(Q){try{return kn(Q),!1}catch{return!0}}function kn(Q){return""+Q}function xn(Q){if(Pr(Q))return U("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",jn(Q)),kn(Q)}var qn=z.ReactCurrentOwner,ea={key:!0,ref:!0,__self:!0,__source:!0},Mr,He;function lt(Q){if(vt.call(Q,"ref")){var De=Object.getOwnPropertyDescriptor(Q,"ref").get;if(De&&De.isReactWarning)return!1}return Q.ref!==void 0}function Tt(Q){if(vt.call(Q,"key")){var De=Object.getOwnPropertyDescriptor(Q,"key").get;if(De&&De.isReactWarning)return!1}return Q.key!==void 0}function Vt(Q,De){typeof Q.ref=="string"&&qn.current}function ut(Q,De){{var We=function(){Mr||(Mr=!0,U("%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://reactjs.org/link/special-props)",De))};We.isReactWarning=!0,Object.defineProperty(Q,"key",{get:We,configurable:!0})}}function Mn(Q,De){{var We=function(){He||(He=!0,U("%s: `ref` 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://reactjs.org/link/special-props)",De))};We.isReactWarning=!0,Object.defineProperty(Q,"ref",{get:We,configurable:!0})}}var bn=function(Q,De,We,nt,Qe,Rt,Pt){var $t={$$typeof:a,type:Q,key:De,ref:We,props:Pt,_owner:Rt};return $t._store={},Object.defineProperty($t._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty($t,"_self",{configurable:!1,enumerable:!1,writable:!1,value:nt}),Object.defineProperty($t,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Qe}),Object.freeze&&(Object.freeze($t.props),Object.freeze($t)),$t};function An(Q,De,We,nt,Qe){{var Rt,Pt={},$t=null,$n=null;We!==void 0&&(xn(We),$t=""+We),Tt(De)&&(xn(De.key),$t=""+De.key),lt(De)&&($n=De.ref,Vt(De,Qe));for(Rt in De)vt.call(De,Rt)&&!ea.hasOwnProperty(Rt)&&(Pt[Rt]=De[Rt]);if(Q&&Q.defaultProps){var mn=Q.defaultProps;for(Rt in mn)Pt[Rt]===void 0&&(Pt[Rt]=mn[Rt])}if($t||$n){var wn=typeof Q=="function"?Q.displayName||Q.name||"Unknown":Q;$t&&ut(Pt,wn),$n&&Mn(Pt,wn)}return bn(Q,$t,$n,Qe,nt,qn.current,Pt)}}var Zt=z.ReactCurrentOwner,sn=z.ReactDebugCurrentFrame;function an(Q){if(Q){var De=Q._owner,We=Nt(Q.type,Q._source,De?De.type:null);sn.setExtraStackFrame(We)}else sn.setExtraStackFrame(null)}var Nr;Nr=!1;function On(Q){return typeof Q=="object"&&Q!==null&&Q.$$typeof===a}function $r(){{if(Zt.current){var Q=he(Zt.current.type);if(Q)return`
|
|
283
|
+
|
|
284
|
+
Check the render method of \``+Q+"`."}return""}}function ta(Q){return""}var Dr={};function Hn(Q){{var De=$r();if(!De){var We=typeof Q=="string"?Q:Q.displayName||Q.name;We&&(De=`
|
|
285
|
+
|
|
286
|
+
Check the top-level render call using <`+We+">.")}return De}}function Xa(Q,De){{if(!Q._store||Q._store.validated||Q.key!=null)return;Q._store.validated=!0;var We=Hn(De);if(Dr[We])return;Dr[We]=!0;var nt="";Q&&Q._owner&&Q._owner!==Zt.current&&(nt=" It was passed a child from "+he(Q._owner.type)+"."),an(Q),U('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',We,nt),an(null)}}function Pn(Q,De){{if(typeof Q!="object")return;if(vn(Q))for(var We=0;We<Q.length;We++){var nt=Q[We];On(nt)&&Xa(nt,De)}else if(On(Q))Q._store&&(Q._store.validated=!0);else if(Q){var Qe=j(Q);if(typeof Qe=="function"&&Qe!==Q.entries)for(var Rt=Qe.call(Q),Pt;!(Pt=Rt.next()).done;)On(Pt.value)&&Xa(Pt.value,De)}}}function di(Q){{var De=Q.type;if(De==null||typeof De=="string")return;var We;if(typeof De=="function")We=De.propTypes;else if(typeof De=="object"&&(De.$$typeof===x||De.$$typeof===w))We=De.propTypes;else return;if(We){var nt=he(De);qt(We,Q.props,"prop",nt,Q)}else if(De.PropTypes!==void 0&&!Nr){Nr=!0;var Qe=he(De);U("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Qe||"Unknown")}typeof De.getDefaultProps=="function"&&!De.getDefaultProps.isReactClassApproved&&U("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function fr(Q){{for(var De=Object.keys(Q.props),We=0;We<De.length;We++){var nt=De[We];if(nt!=="children"&&nt!=="key"){an(Q),U("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",nt),an(null);break}}Q.ref!==null&&(an(Q),U("Invalid attribute `ref` supplied to `React.Fragment`."),an(null))}}var wr={};function Gn(Q,De,We,nt,Qe,Rt){{var Pt=Se(Q);if(!Pt){var $t="";(Q===void 0||typeof Q=="object"&&Q!==null&&Object.keys(Q).length===0)&&($t+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var $n=ta();$n?$t+=$n:$t+=$r();var mn;Q===null?mn="null":vn(Q)?mn="array":Q!==void 0&&Q.$$typeof===a?(mn="<"+(he(Q.type)||"Unknown")+" />",$t=" Did you accidentally export a JSX literal instead of a component?"):mn=typeof Q,U("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",mn,$t)}var wn=An(Q,De,We,Qe,Rt);if(wn==null)return wn;if(Pt){var rr=De.children;if(rr!==void 0)if(nt)if(vn(rr)){for(var ha=0;ha<rr.length;ha++)Pn(rr[ha],Q);Object.freeze&&Object.freeze(rr)}else U("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 Pn(rr,Q)}if(vt.call(De,"key")){var na=he(Q),kt=Object.keys(De).filter(function(re){return re!=="key"}),Ot=kt.length>0?"{key: someKey, "+kt.join(": ..., ")+": ...}":"{key: someKey}";if(!wr[na+Ot]){var G=kt.length>0?"{"+kt.join(": ..., ")+": ...}":"{}";U(`A props object containing a "key" prop is being spread into JSX:
|
|
287
|
+
let props = %s;
|
|
288
|
+
<%s {...props} />
|
|
289
|
+
React keys must be passed directly to JSX without using spread:
|
|
290
|
+
let props = %s;
|
|
291
|
+
<%s key={someKey} {...props} />`,Ot,na,G,na),wr[na+Ot]=!0}}return Q===c?fr(wn):di(wn),wn}}function ca(Q,De,We){return Gn(Q,De,We,!0)}function fa(Q,De,We){return Gn(Q,De,We,!1)}var da=fa,pa=ca;Hp.Fragment=c,Hp.jsx=da,Hp.jsxs=pa})()),Hp}var OC;function NN(){return OC||(OC=1,process.env.NODE_ENV==="production"?Rm.exports=kN():Rm.exports=MN()),Rm.exports}var k=NN();function kr(n){if(typeof n=="string"||typeof n=="number")return""+n;let a="";if(Array.isArray(n))for(let l=0,c;l<n.length;l++)(c=kr(n[l]))!==""&&(a+=(a&&" ")+c);else for(let l in n)n[l]&&(a+=(a&&" ")+l);return a}var DN={value:()=>{}};function km(){for(var n=0,a=arguments.length,l={},c;n<a;++n){if(!(c=arguments[n]+"")||c in l||/[\s.]/.test(c))throw new Error("illegal type: "+c);l[c]=[]}return new Mm(l)}function Mm(n){this._=n}function AN(n,a){return n.trim().split(/^|\s+/).map(function(l){var c="",f=l.indexOf(".");if(f>=0&&(c=l.slice(f+1),l=l.slice(0,f)),l&&!a.hasOwnProperty(l))throw new Error("unknown type: "+l);return{type:l,name:c}})}Mm.prototype=km.prototype={constructor:Mm,on:function(n,a){var l=this._,c=AN(n+"",l),f,v=-1,p=c.length;if(arguments.length<2){for(;++v<p;)if((f=(n=c[v]).type)&&(f=ON(l[f],n.name)))return f;return}if(a!=null&&typeof a!="function")throw new Error("invalid callback: "+a);for(;++v<p;)if(f=(n=c[v]).type)l[f]=LC(l[f],n.name,a);else if(a==null)for(f in l)l[f]=LC(l[f],n.name,null);return this},copy:function(){var n={},a=this._;for(var l in a)n[l]=a[l].slice();return new Mm(n)},call:function(n,a){if((f=arguments.length-2)>0)for(var l=new Array(f),c=0,f,v;c<f;++c)l[c]=arguments[c+2];if(!this._.hasOwnProperty(n))throw new Error("unknown type: "+n);for(v=this._[n],c=0,f=v.length;c<f;++c)v[c].value.apply(a,l)},apply:function(n,a,l){if(!this._.hasOwnProperty(n))throw new Error("unknown type: "+n);for(var c=this._[n],f=0,v=c.length;f<v;++f)c[f].value.apply(a,l)}};function ON(n,a){for(var l=0,c=n.length,f;l<c;++l)if((f=n[l]).name===a)return f.value}function LC(n,a,l){for(var c=0,f=n.length;c<f;++c)if(n[c].name===a){n[c]=DN,n=n.slice(0,c).concat(n.slice(c+1));break}return l!=null&&n.push({name:a,value:l}),n}var Rx="http://www.w3.org/1999/xhtml";const zC={svg:"http://www.w3.org/2000/svg",xhtml:Rx,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Nm(n){var a=n+="",l=a.indexOf(":");return l>=0&&(a=n.slice(0,l))!=="xmlns"&&(n=n.slice(l+1)),zC.hasOwnProperty(a)?{space:zC[a],local:n}:n}function LN(n){return function(){var a=this.ownerDocument,l=this.namespaceURI;return l===Rx&&a.documentElement.namespaceURI===Rx?a.createElement(n):a.createElementNS(l,n)}}function zN(n){return function(){return this.ownerDocument.createElementNS(n.space,n.local)}}function jC(n){var a=Nm(n);return(a.local?zN:LN)(a)}function jN(){}function kx(n){return n==null?jN:function(){return this.querySelector(n)}}function PN(n){typeof n!="function"&&(n=kx(n));for(var a=this._groups,l=a.length,c=new Array(l),f=0;f<l;++f)for(var v=a[f],p=v.length,g=c[f]=new Array(p),x,S,E=0;E<p;++E)(x=v[E])&&(S=n.call(x,x.__data__,E,v))&&("__data__"in x&&(S.__data__=x.__data__),g[E]=S);return new Di(c,this._parents)}function $N(n){return n==null?[]:Array.isArray(n)?n:Array.from(n)}function UN(){return[]}function PC(n){return n==null?UN:function(){return this.querySelectorAll(n)}}function FN(n){return function(){return $N(n.apply(this,arguments))}}function IN(n){typeof n=="function"?n=FN(n):n=PC(n);for(var a=this._groups,l=a.length,c=[],f=[],v=0;v<l;++v)for(var p=a[v],g=p.length,x,S=0;S<g;++S)(x=p[S])&&(c.push(n.call(x,x.__data__,S,p)),f.push(x));return new Di(c,f)}function $C(n){return function(){return this.matches(n)}}function UC(n){return function(a){return a.matches(n)}}var BN=Array.prototype.find;function HN(n){return function(){return BN.call(this.children,n)}}function VN(){return this.firstElementChild}function YN(n){return this.select(n==null?VN:HN(typeof n=="function"?n:UC(n)))}var WN=Array.prototype.filter;function qN(){return Array.from(this.children)}function GN(n){return function(){return WN.call(this.children,n)}}function KN(n){return this.selectAll(n==null?qN:GN(typeof n=="function"?n:UC(n)))}function XN(n){typeof n!="function"&&(n=$C(n));for(var a=this._groups,l=a.length,c=new Array(l),f=0;f<l;++f)for(var v=a[f],p=v.length,g=c[f]=[],x,S=0;S<p;++S)(x=v[S])&&n.call(x,x.__data__,S,v)&&g.push(x);return new Di(c,this._parents)}function FC(n){return new Array(n.length)}function QN(){return new Di(this._enter||this._groups.map(FC),this._parents)}function Dm(n,a){this.ownerDocument=n.ownerDocument,this.namespaceURI=n.namespaceURI,this._next=null,this._parent=n,this.__data__=a}Dm.prototype={constructor:Dm,appendChild:function(n){return this._parent.insertBefore(n,this._next)},insertBefore:function(n,a){return this._parent.insertBefore(n,a)},querySelector:function(n){return this._parent.querySelector(n)},querySelectorAll:function(n){return this._parent.querySelectorAll(n)}};function JN(n){return function(){return n}}function ZN(n,a,l,c,f,v){for(var p=0,g,x=a.length,S=v.length;p<S;++p)(g=a[p])?(g.__data__=v[p],c[p]=g):l[p]=new Dm(n,v[p]);for(;p<x;++p)(g=a[p])&&(f[p]=g)}function eD(n,a,l,c,f,v,p){var g,x,S=new Map,E=a.length,w=v.length,_=new Array(E),N;for(g=0;g<E;++g)(x=a[g])&&(_[g]=N=p.call(x,x.__data__,g,a)+"",S.has(N)?f[g]=x:S.set(N,x));for(g=0;g<w;++g)N=p.call(n,v[g],g,v)+"",(x=S.get(N))?(c[g]=x,x.__data__=v[g],S.delete(N)):l[g]=new Dm(n,v[g]);for(g=0;g<E;++g)(x=a[g])&&S.get(_[g])===x&&(f[g]=x)}function tD(n){return n.__data__}function nD(n,a){if(!arguments.length)return Array.from(this,tD);var l=a?eD:ZN,c=this._parents,f=this._groups;typeof n!="function"&&(n=JN(n));for(var v=f.length,p=new Array(v),g=new Array(v),x=new Array(v),S=0;S<v;++S){var E=c[S],w=f[S],_=w.length,N=rD(n.call(E,E&&E.__data__,S,c)),D=N.length,R=g[S]=new Array(D),j=p[S]=new Array(D),z=x[S]=new Array(_);l(E,w,R,j,z,N,a);for(var U=0,L=0,$,H;U<D;++U)if($=R[U]){for(U>=L&&(L=U+1);!(H=j[L])&&++L<D;);$._next=H||null}}return p=new Di(p,c),p._enter=g,p._exit=x,p}function rD(n){return typeof n=="object"&&"length"in n?n:Array.from(n)}function aD(){return new Di(this._exit||this._groups.map(FC),this._parents)}function iD(n,a,l){var c=this.enter(),f=this,v=this.exit();return typeof n=="function"?(c=n(c),c&&(c=c.selection())):c=c.append(n+""),a!=null&&(f=a(f),f&&(f=f.selection())),l==null?v.remove():l(v),c&&f?c.merge(f).order():f}function oD(n){for(var a=n.selection?n.selection():n,l=this._groups,c=a._groups,f=l.length,v=c.length,p=Math.min(f,v),g=new Array(f),x=0;x<p;++x)for(var S=l[x],E=c[x],w=S.length,_=g[x]=new Array(w),N,D=0;D<w;++D)(N=S[D]||E[D])&&(_[D]=N);for(;x<f;++x)g[x]=l[x];return new Di(g,this._parents)}function lD(){for(var n=this._groups,a=-1,l=n.length;++a<l;)for(var c=n[a],f=c.length-1,v=c[f],p;--f>=0;)(p=c[f])&&(v&&p.compareDocumentPosition(v)^4&&v.parentNode.insertBefore(p,v),v=p);return this}function sD(n){n||(n=uD);function a(w,_){return w&&_?n(w.__data__,_.__data__):!w-!_}for(var l=this._groups,c=l.length,f=new Array(c),v=0;v<c;++v){for(var p=l[v],g=p.length,x=f[v]=new Array(g),S,E=0;E<g;++E)(S=p[E])&&(x[E]=S);x.sort(a)}return new Di(f,this._parents).order()}function uD(n,a){return n<a?-1:n>a?1:n>=a?0:NaN}function cD(){var n=arguments[0];return arguments[0]=this,n.apply(null,arguments),this}function fD(){return Array.from(this)}function dD(){for(var n=this._groups,a=0,l=n.length;a<l;++a)for(var c=n[a],f=0,v=c.length;f<v;++f){var p=c[f];if(p)return p}return null}function pD(){let n=0;for(const a of this)++n;return n}function hD(){return!this.node()}function vD(n){for(var a=this._groups,l=0,c=a.length;l<c;++l)for(var f=a[l],v=0,p=f.length,g;v<p;++v)(g=f[v])&&n.call(g,g.__data__,v,f);return this}function mD(n){return function(){this.removeAttribute(n)}}function gD(n){return function(){this.removeAttributeNS(n.space,n.local)}}function yD(n,a){return function(){this.setAttribute(n,a)}}function xD(n,a){return function(){this.setAttributeNS(n.space,n.local,a)}}function bD(n,a){return function(){var l=a.apply(this,arguments);l==null?this.removeAttribute(n):this.setAttribute(n,l)}}function wD(n,a){return function(){var l=a.apply(this,arguments);l==null?this.removeAttributeNS(n.space,n.local):this.setAttributeNS(n.space,n.local,l)}}function SD(n,a){var l=Nm(n);if(arguments.length<2){var c=this.node();return l.local?c.getAttributeNS(l.space,l.local):c.getAttribute(l)}return this.each((a==null?l.local?gD:mD:typeof a=="function"?l.local?wD:bD:l.local?xD:yD)(l,a))}function IC(n){return n.ownerDocument&&n.ownerDocument.defaultView||n.document&&n||n.defaultView}function CD(n){return function(){this.style.removeProperty(n)}}function ED(n,a,l){return function(){this.style.setProperty(n,a,l)}}function _D(n,a,l){return function(){var c=a.apply(this,arguments);c==null?this.style.removeProperty(n):this.style.setProperty(n,c,l)}}function TD(n,a,l){return arguments.length>1?this.each((a==null?CD:typeof a=="function"?_D:ED)(n,a,l??"")):Of(this.node(),n)}function Of(n,a){return n.style.getPropertyValue(a)||IC(n).getComputedStyle(n,null).getPropertyValue(a)}function RD(n){return function(){delete this[n]}}function kD(n,a){return function(){this[n]=a}}function MD(n,a){return function(){var l=a.apply(this,arguments);l==null?delete this[n]:this[n]=l}}function ND(n,a){return arguments.length>1?this.each((a==null?RD:typeof a=="function"?MD:kD)(n,a)):this.node()[n]}function BC(n){return n.trim().split(/^|\s+/)}function Mx(n){return n.classList||new HC(n)}function HC(n){this._node=n,this._names=BC(n.getAttribute("class")||"")}HC.prototype={add:function(n){var a=this._names.indexOf(n);a<0&&(this._names.push(n),this._node.setAttribute("class",this._names.join(" ")))},remove:function(n){var a=this._names.indexOf(n);a>=0&&(this._names.splice(a,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(n){return this._names.indexOf(n)>=0}};function VC(n,a){for(var l=Mx(n),c=-1,f=a.length;++c<f;)l.add(a[c])}function YC(n,a){for(var l=Mx(n),c=-1,f=a.length;++c<f;)l.remove(a[c])}function DD(n){return function(){VC(this,n)}}function AD(n){return function(){YC(this,n)}}function OD(n,a){return function(){(a.apply(this,arguments)?VC:YC)(this,n)}}function LD(n,a){var l=BC(n+"");if(arguments.length<2){for(var c=Mx(this.node()),f=-1,v=l.length;++f<v;)if(!c.contains(l[f]))return!1;return!0}return this.each((typeof a=="function"?OD:a?DD:AD)(l,a))}function zD(){this.textContent=""}function jD(n){return function(){this.textContent=n}}function PD(n){return function(){var a=n.apply(this,arguments);this.textContent=a??""}}function $D(n){return arguments.length?this.each(n==null?zD:(typeof n=="function"?PD:jD)(n)):this.node().textContent}function UD(){this.innerHTML=""}function FD(n){return function(){this.innerHTML=n}}function ID(n){return function(){var a=n.apply(this,arguments);this.innerHTML=a??""}}function BD(n){return arguments.length?this.each(n==null?UD:(typeof n=="function"?ID:FD)(n)):this.node().innerHTML}function HD(){this.nextSibling&&this.parentNode.appendChild(this)}function VD(){return this.each(HD)}function YD(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function WD(){return this.each(YD)}function qD(n){var a=typeof n=="function"?n:jC(n);return this.select(function(){return this.appendChild(a.apply(this,arguments))})}function GD(){return null}function KD(n,a){var l=typeof n=="function"?n:jC(n),c=a==null?GD:typeof a=="function"?a:kx(a);return this.select(function(){return this.insertBefore(l.apply(this,arguments),c.apply(this,arguments)||null)})}function XD(){var n=this.parentNode;n&&n.removeChild(this)}function QD(){return this.each(XD)}function JD(){var n=this.cloneNode(!1),a=this.parentNode;return a?a.insertBefore(n,this.nextSibling):n}function ZD(){var n=this.cloneNode(!0),a=this.parentNode;return a?a.insertBefore(n,this.nextSibling):n}function eA(n){return this.select(n?ZD:JD)}function tA(n){return arguments.length?this.property("__data__",n):this.node().__data__}function nA(n){return function(a){n.call(this,a,this.__data__)}}function rA(n){return n.trim().split(/^|\s+/).map(function(a){var l="",c=a.indexOf(".");return c>=0&&(l=a.slice(c+1),a=a.slice(0,c)),{type:a,name:l}})}function aA(n){return function(){var a=this.__on;if(a){for(var l=0,c=-1,f=a.length,v;l<f;++l)v=a[l],(!n.type||v.type===n.type)&&v.name===n.name?this.removeEventListener(v.type,v.listener,v.options):a[++c]=v;++c?a.length=c:delete this.__on}}}function iA(n,a,l){return function(){var c=this.__on,f,v=nA(a);if(c){for(var p=0,g=c.length;p<g;++p)if((f=c[p]).type===n.type&&f.name===n.name){this.removeEventListener(f.type,f.listener,f.options),this.addEventListener(f.type,f.listener=v,f.options=l),f.value=a;return}}this.addEventListener(n.type,v,l),f={type:n.type,name:n.name,value:a,listener:v,options:l},c?c.push(f):this.__on=[f]}}function oA(n,a,l){var c=rA(n+""),f,v=c.length,p;if(arguments.length<2){var g=this.node().__on;if(g){for(var x=0,S=g.length,E;x<S;++x)for(f=0,E=g[x];f<v;++f)if((p=c[f]).type===E.type&&p.name===E.name)return E.value}return}for(g=a?iA:aA,f=0;f<v;++f)this.each(g(c[f],a,l));return this}function WC(n,a,l){var c=IC(n),f=c.CustomEvent;typeof f=="function"?f=new f(a,l):(f=c.document.createEvent("Event"),l?(f.initEvent(a,l.bubbles,l.cancelable),f.detail=l.detail):f.initEvent(a,!1,!1)),n.dispatchEvent(f)}function lA(n,a){return function(){return WC(this,n,a)}}function sA(n,a){return function(){return WC(this,n,a.apply(this,arguments))}}function uA(n,a){return this.each((typeof a=="function"?sA:lA)(n,a))}function*cA(){for(var n=this._groups,a=0,l=n.length;a<l;++a)for(var c=n[a],f=0,v=c.length,p;f<v;++f)(p=c[f])&&(yield p)}var qC=[null];function Di(n,a){this._groups=n,this._parents=a}function Vp(){return new Di([[document.documentElement]],qC)}function fA(){return this}Di.prototype=Vp.prototype={constructor:Di,select:PN,selectAll:IN,selectChild:YN,selectChildren:KN,filter:XN,data:nD,enter:QN,exit:aD,join:iD,merge:oD,selection:fA,order:lD,sort:sD,call:cD,nodes:fD,node:dD,size:pD,empty:hD,each:vD,attr:SD,style:TD,property:ND,classed:LD,text:$D,html:BD,raise:VD,lower:WD,append:qD,insert:KD,remove:QD,clone:eA,datum:tA,on:oA,dispatch:uA,[Symbol.iterator]:cA};function Ai(n){return typeof n=="string"?new Di([[document.querySelector(n)]],[document.documentElement]):new Di([[n]],qC)}function dA(n){let a;for(;a=n.sourceEvent;)n=a;return n}function Ro(n,a){if(n=dA(n),a===void 0&&(a=n.currentTarget),a){var l=a.ownerSVGElement||a;if(l.createSVGPoint){var c=l.createSVGPoint();return c.x=n.clientX,c.y=n.clientY,c=c.matrixTransform(a.getScreenCTM().inverse()),[c.x,c.y]}if(a.getBoundingClientRect){var f=a.getBoundingClientRect();return[n.clientX-f.left-a.clientLeft,n.clientY-f.top-a.clientTop]}}return[n.pageX,n.pageY]}const pA={passive:!1},Yp={capture:!0,passive:!1};function Nx(n){n.stopImmediatePropagation()}function Lf(n){n.preventDefault(),n.stopImmediatePropagation()}function GC(n){var a=n.document.documentElement,l=Ai(n).on("dragstart.drag",Lf,Yp);"onselectstart"in a?l.on("selectstart.drag",Lf,Yp):(a.__noselect=a.style.MozUserSelect,a.style.MozUserSelect="none")}function KC(n,a){var l=n.document.documentElement,c=Ai(n).on("dragstart.drag",null);a&&(c.on("click.drag",Lf,Yp),setTimeout(function(){c.on("click.drag",null)},0)),"onselectstart"in l?c.on("selectstart.drag",null):(l.style.MozUserSelect=l.__noselect,delete l.__noselect)}const Am=n=>()=>n;function Dx(n,{sourceEvent:a,subject:l,target:c,identifier:f,active:v,x:p,y:g,dx:x,dy:S,dispatch:E}){Object.defineProperties(this,{type:{value:n,enumerable:!0,configurable:!0},sourceEvent:{value:a,enumerable:!0,configurable:!0},subject:{value:l,enumerable:!0,configurable:!0},target:{value:c,enumerable:!0,configurable:!0},identifier:{value:f,enumerable:!0,configurable:!0},active:{value:v,enumerable:!0,configurable:!0},x:{value:p,enumerable:!0,configurable:!0},y:{value:g,enumerable:!0,configurable:!0},dx:{value:x,enumerable:!0,configurable:!0},dy:{value:S,enumerable:!0,configurable:!0},_:{value:E}})}Dx.prototype.on=function(){var n=this._.on.apply(this._,arguments);return n===this._?this:n};function hA(n){return!n.ctrlKey&&!n.button}function vA(){return this.parentNode}function mA(n,a){return a??{x:n.x,y:n.y}}function gA(){return navigator.maxTouchPoints||"ontouchstart"in this}function XC(){var n=hA,a=vA,l=mA,c=gA,f={},v=km("start","drag","end"),p=0,g,x,S,E,w=0;function _($){$.on("mousedown.drag",N).filter(c).on("touchstart.drag",j).on("touchmove.drag",z,pA).on("touchend.drag touchcancel.drag",U).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function N($,H){if(!(E||!n.call(this,$,H))){var I=L(this,a.call(this,$,H),$,H,"mouse");I&&(Ai($.view).on("mousemove.drag",D,Yp).on("mouseup.drag",R,Yp),GC($.view),Nx($),S=!1,g=$.clientX,x=$.clientY,I("start",$))}}function D($){if(Lf($),!S){var H=$.clientX-g,I=$.clientY-x;S=H*H+I*I>w}f.mouse("drag",$)}function R($){Ai($.view).on("mousemove.drag mouseup.drag",null),KC($.view,S),Lf($),f.mouse("end",$)}function j($,H){if(n.call(this,$,H)){var I=$.changedTouches,q=a.call(this,$,H),ie=I.length,fe,Se;for(fe=0;fe<ie;++fe)(Se=L(this,q,$,H,I[fe].identifier,I[fe]))&&(Nx($),Se("start",$,I[fe]))}}function z($){var H=$.changedTouches,I=H.length,q,ie;for(q=0;q<I;++q)(ie=f[H[q].identifier])&&(Lf($),ie("drag",$,H[q]))}function U($){var H=$.changedTouches,I=H.length,q,ie;for(E&&clearTimeout(E),E=setTimeout(function(){E=null},500),q=0;q<I;++q)(ie=f[H[q].identifier])&&(Nx($),ie("end",$,H[q]))}function L($,H,I,q,ie,fe){var Se=v.copy(),oe=Ro(fe||I,H),de,he,V;if((V=l.call($,new Dx("beforestart",{sourceEvent:I,target:_,identifier:ie,active:p,x:oe[0],y:oe[1],dx:0,dy:0,dispatch:Se}),q))!=null)return de=V.x-oe[0]||0,he=V.y-oe[1]||0,function ce(Z,te,Y){var J=oe,ne;switch(Z){case"start":f[ie]=ce,ne=p++;break;case"end":delete f[ie],--p;case"drag":oe=Ro(Y||te,H),ne=p;break}Se.call(Z,$,new Dx(Z,{sourceEvent:te,subject:V,target:_,identifier:ie,active:ne,x:oe[0]+de,y:oe[1]+he,dx:oe[0]-J[0],dy:oe[1]-J[1],dispatch:Se}),q)}}return _.filter=function($){return arguments.length?(n=typeof $=="function"?$:Am(!!$),_):n},_.container=function($){return arguments.length?(a=typeof $=="function"?$:Am($),_):a},_.subject=function($){return arguments.length?(l=typeof $=="function"?$:Am($),_):l},_.touchable=function($){return arguments.length?(c=typeof $=="function"?$:Am(!!$),_):c},_.on=function(){var $=v.on.apply(v,arguments);return $===v?_:$},_.clickDistance=function($){return arguments.length?(w=($=+$)*$,_):Math.sqrt(w)},_}function Ax(n,a,l){n.prototype=a.prototype=l,l.constructor=n}function QC(n,a){var l=Object.create(n.prototype);for(var c in a)l[c]=a[c];return l}function Wp(){}var qp=.7,Om=1/qp,zf="\\s*([+-]?\\d+)\\s*",Gp="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",cl="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",yA=/^#([0-9a-f]{3,8})$/,xA=new RegExp(`^rgb\\(${zf},${zf},${zf}\\)$`),bA=new RegExp(`^rgb\\(${cl},${cl},${cl}\\)$`),wA=new RegExp(`^rgba\\(${zf},${zf},${zf},${Gp}\\)$`),SA=new RegExp(`^rgba\\(${cl},${cl},${cl},${Gp}\\)$`),CA=new RegExp(`^hsl\\(${Gp},${cl},${cl}\\)$`),EA=new RegExp(`^hsla\\(${Gp},${cl},${cl},${Gp}\\)$`),JC={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Ax(Wp,nc,{copy(n){return Object.assign(new this.constructor,this,n)},displayable(){return this.rgb().displayable()},hex:ZC,formatHex:ZC,formatHex8:_A,formatHsl:TA,formatRgb:eE,toString:eE});function ZC(){return this.rgb().formatHex()}function _A(){return this.rgb().formatHex8()}function TA(){return iE(this).formatHsl()}function eE(){return this.rgb().formatRgb()}function nc(n){var a,l;return n=(n+"").trim().toLowerCase(),(a=yA.exec(n))?(l=a[1].length,a=parseInt(a[1],16),l===6?tE(a):l===3?new fi(a>>8&15|a>>4&240,a>>4&15|a&240,(a&15)<<4|a&15,1):l===8?Lm(a>>24&255,a>>16&255,a>>8&255,(a&255)/255):l===4?Lm(a>>12&15|a>>8&240,a>>8&15|a>>4&240,a>>4&15|a&240,((a&15)<<4|a&15)/255):null):(a=xA.exec(n))?new fi(a[1],a[2],a[3],1):(a=bA.exec(n))?new fi(a[1]*255/100,a[2]*255/100,a[3]*255/100,1):(a=wA.exec(n))?Lm(a[1],a[2],a[3],a[4]):(a=SA.exec(n))?Lm(a[1]*255/100,a[2]*255/100,a[3]*255/100,a[4]):(a=CA.exec(n))?aE(a[1],a[2]/100,a[3]/100,1):(a=EA.exec(n))?aE(a[1],a[2]/100,a[3]/100,a[4]):JC.hasOwnProperty(n)?tE(JC[n]):n==="transparent"?new fi(NaN,NaN,NaN,0):null}function tE(n){return new fi(n>>16&255,n>>8&255,n&255,1)}function Lm(n,a,l,c){return c<=0&&(n=a=l=NaN),new fi(n,a,l,c)}function RA(n){return n instanceof Wp||(n=nc(n)),n?(n=n.rgb(),new fi(n.r,n.g,n.b,n.opacity)):new fi}function Ox(n,a,l,c){return arguments.length===1?RA(n):new fi(n,a,l,c??1)}function fi(n,a,l,c){this.r=+n,this.g=+a,this.b=+l,this.opacity=+c}Ax(fi,Ox,QC(Wp,{brighter(n){return n=n==null?Om:Math.pow(Om,n),new fi(this.r*n,this.g*n,this.b*n,this.opacity)},darker(n){return n=n==null?qp:Math.pow(qp,n),new fi(this.r*n,this.g*n,this.b*n,this.opacity)},rgb(){return this},clamp(){return new fi(rc(this.r),rc(this.g),rc(this.b),zm(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:nE,formatHex:nE,formatHex8:kA,formatRgb:rE,toString:rE}));function nE(){return`#${ac(this.r)}${ac(this.g)}${ac(this.b)}`}function kA(){return`#${ac(this.r)}${ac(this.g)}${ac(this.b)}${ac((isNaN(this.opacity)?1:this.opacity)*255)}`}function rE(){const n=zm(this.opacity);return`${n===1?"rgb(":"rgba("}${rc(this.r)}, ${rc(this.g)}, ${rc(this.b)}${n===1?")":`, ${n})`}`}function zm(n){return isNaN(n)?1:Math.max(0,Math.min(1,n))}function rc(n){return Math.max(0,Math.min(255,Math.round(n)||0))}function ac(n){return n=rc(n),(n<16?"0":"")+n.toString(16)}function aE(n,a,l,c){return c<=0?n=a=l=NaN:l<=0||l>=1?n=a=NaN:a<=0&&(n=NaN),new ko(n,a,l,c)}function iE(n){if(n instanceof ko)return new ko(n.h,n.s,n.l,n.opacity);if(n instanceof Wp||(n=nc(n)),!n)return new ko;if(n instanceof ko)return n;n=n.rgb();var a=n.r/255,l=n.g/255,c=n.b/255,f=Math.min(a,l,c),v=Math.max(a,l,c),p=NaN,g=v-f,x=(v+f)/2;return g?(a===v?p=(l-c)/g+(l<c)*6:l===v?p=(c-a)/g+2:p=(a-l)/g+4,g/=x<.5?v+f:2-v-f,p*=60):g=x>0&&x<1?0:p,new ko(p,g,x,n.opacity)}function MA(n,a,l,c){return arguments.length===1?iE(n):new ko(n,a,l,c??1)}function ko(n,a,l,c){this.h=+n,this.s=+a,this.l=+l,this.opacity=+c}Ax(ko,MA,QC(Wp,{brighter(n){return n=n==null?Om:Math.pow(Om,n),new ko(this.h,this.s,this.l*n,this.opacity)},darker(n){return n=n==null?qp:Math.pow(qp,n),new ko(this.h,this.s,this.l*n,this.opacity)},rgb(){var n=this.h%360+(this.h<0)*360,a=isNaN(n)||isNaN(this.s)?0:this.s,l=this.l,c=l+(l<.5?l:1-l)*a,f=2*l-c;return new fi(Lx(n>=240?n-240:n+120,f,c),Lx(n,f,c),Lx(n<120?n+240:n-120,f,c),this.opacity)},clamp(){return new ko(oE(this.h),jm(this.s),jm(this.l),zm(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const n=zm(this.opacity);return`${n===1?"hsl(":"hsla("}${oE(this.h)}, ${jm(this.s)*100}%, ${jm(this.l)*100}%${n===1?")":`, ${n})`}`}}));function oE(n){return n=(n||0)%360,n<0?n+360:n}function jm(n){return Math.max(0,Math.min(1,n||0))}function Lx(n,a,l){return(n<60?a+(l-a)*n/60:n<180?l:n<240?a+(l-a)*(240-n)/60:a)*255}const zx=n=>()=>n;function NA(n,a){return function(l){return n+l*a}}function DA(n,a,l){return n=Math.pow(n,l),a=Math.pow(a,l)-n,l=1/l,function(c){return Math.pow(n+c*a,l)}}function AA(n){return(n=+n)==1?lE:function(a,l){return l-a?DA(a,l,n):zx(isNaN(a)?l:a)}}function lE(n,a){var l=a-n;return l?NA(n,l):zx(isNaN(n)?a:n)}const Pm=(function n(a){var l=AA(a);function c(f,v){var p=l((f=Ox(f)).r,(v=Ox(v)).r),g=l(f.g,v.g),x=l(f.b,v.b),S=lE(f.opacity,v.opacity);return function(E){return f.r=p(E),f.g=g(E),f.b=x(E),f.opacity=S(E),f+""}}return c.gamma=n,c})(1);function OA(n,a){a||(a=[]);var l=n?Math.min(a.length,n.length):0,c=a.slice(),f;return function(v){for(f=0;f<l;++f)c[f]=n[f]*(1-v)+a[f]*v;return c}}function LA(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}function zA(n,a){var l=a?a.length:0,c=n?Math.min(l,n.length):0,f=new Array(c),v=new Array(l),p;for(p=0;p<c;++p)f[p]=Kp(n[p],a[p]);for(;p<l;++p)v[p]=a[p];return function(g){for(p=0;p<c;++p)v[p]=f[p](g);return v}}function jA(n,a){var l=new Date;return n=+n,a=+a,function(c){return l.setTime(n*(1-c)+a*c),l}}function fl(n,a){return n=+n,a=+a,function(l){return n*(1-l)+a*l}}function PA(n,a){var l={},c={},f;(n===null||typeof n!="object")&&(n={}),(a===null||typeof a!="object")&&(a={});for(f in a)f in n?l[f]=Kp(n[f],a[f]):c[f]=a[f];return function(v){for(f in l)c[f]=l[f](v);return c}}var jx=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Px=new RegExp(jx.source,"g");function $A(n){return function(){return n}}function UA(n){return function(a){return n(a)+""}}function sE(n,a){var l=jx.lastIndex=Px.lastIndex=0,c,f,v,p=-1,g=[],x=[];for(n=n+"",a=a+"";(c=jx.exec(n))&&(f=Px.exec(a));)(v=f.index)>l&&(v=a.slice(l,v),g[p]?g[p]+=v:g[++p]=v),(c=c[0])===(f=f[0])?g[p]?g[p]+=f:g[++p]=f:(g[++p]=null,x.push({i:p,x:fl(c,f)})),l=Px.lastIndex;return l<a.length&&(v=a.slice(l),g[p]?g[p]+=v:g[++p]=v),g.length<2?x[0]?UA(x[0].x):$A(a):(a=x.length,function(S){for(var E=0,w;E<a;++E)g[(w=x[E]).i]=w.x(S);return g.join("")})}function Kp(n,a){var l=typeof a,c;return a==null||l==="boolean"?zx(a):(l==="number"?fl:l==="string"?(c=nc(a))?(a=c,Pm):sE:a instanceof nc?Pm:a instanceof Date?jA:LA(a)?OA:Array.isArray(a)?zA:typeof a.valueOf!="function"&&typeof a.toString!="function"||isNaN(a)?PA:fl)(n,a)}var uE=180/Math.PI,$x={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function cE(n,a,l,c,f,v){var p,g,x;return(p=Math.sqrt(n*n+a*a))&&(n/=p,a/=p),(x=n*l+a*c)&&(l-=n*x,c-=a*x),(g=Math.sqrt(l*l+c*c))&&(l/=g,c/=g,x/=g),n*c<a*l&&(n=-n,a=-a,x=-x,p=-p),{translateX:f,translateY:v,rotate:Math.atan2(a,n)*uE,skewX:Math.atan(x)*uE,scaleX:p,scaleY:g}}var $m;function FA(n){const a=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(n+"");return a.isIdentity?$x:cE(a.a,a.b,a.c,a.d,a.e,a.f)}function IA(n){return n==null||($m||($m=document.createElementNS("http://www.w3.org/2000/svg","g")),$m.setAttribute("transform",n),!(n=$m.transform.baseVal.consolidate()))?$x:(n=n.matrix,cE(n.a,n.b,n.c,n.d,n.e,n.f))}function fE(n,a,l,c){function f(S){return S.length?S.pop()+" ":""}function v(S,E,w,_,N,D){if(S!==w||E!==_){var R=N.push("translate(",null,a,null,l);D.push({i:R-4,x:fl(S,w)},{i:R-2,x:fl(E,_)})}else(w||_)&&N.push("translate("+w+a+_+l)}function p(S,E,w,_){S!==E?(S-E>180?E+=360:E-S>180&&(S+=360),_.push({i:w.push(f(w)+"rotate(",null,c)-2,x:fl(S,E)})):E&&w.push(f(w)+"rotate("+E+c)}function g(S,E,w,_){S!==E?_.push({i:w.push(f(w)+"skewX(",null,c)-2,x:fl(S,E)}):E&&w.push(f(w)+"skewX("+E+c)}function x(S,E,w,_,N,D){if(S!==w||E!==_){var R=N.push(f(N)+"scale(",null,",",null,")");D.push({i:R-4,x:fl(S,w)},{i:R-2,x:fl(E,_)})}else(w!==1||_!==1)&&N.push(f(N)+"scale("+w+","+_+")")}return function(S,E){var w=[],_=[];return S=n(S),E=n(E),v(S.translateX,S.translateY,E.translateX,E.translateY,w,_),p(S.rotate,E.rotate,w,_),g(S.skewX,E.skewX,w,_),x(S.scaleX,S.scaleY,E.scaleX,E.scaleY,w,_),S=E=null,function(N){for(var D=-1,R=_.length,j;++D<R;)w[(j=_[D]).i]=j.x(N);return w.join("")}}}var BA=fE(FA,"px, ","px)","deg)"),HA=fE(IA,", ",")",")"),VA=1e-12;function dE(n){return((n=Math.exp(n))+1/n)/2}function YA(n){return((n=Math.exp(n))-1/n)/2}function WA(n){return((n=Math.exp(2*n))-1)/(n+1)}const Um=(function n(a,l,c){function f(v,p){var g=v[0],x=v[1],S=v[2],E=p[0],w=p[1],_=p[2],N=E-g,D=w-x,R=N*N+D*D,j,z;if(R<VA)z=Math.log(_/S)/a,j=function(q){return[g+q*N,x+q*D,S*Math.exp(a*q*z)]};else{var U=Math.sqrt(R),L=(_*_-S*S+c*R)/(2*S*l*U),$=(_*_-S*S-c*R)/(2*_*l*U),H=Math.log(Math.sqrt(L*L+1)-L),I=Math.log(Math.sqrt($*$+1)-$);z=(I-H)/a,j=function(q){var ie=q*z,fe=dE(H),Se=S/(l*U)*(fe*WA(a*ie+H)-YA(H));return[g+Se*N,x+Se*D,S*fe/dE(a*ie+H)]}}return j.duration=z*1e3*a/Math.SQRT2,j}return f.rho=function(v){var p=Math.max(.001,+v),g=p*p,x=g*g;return n(p,g,x)},f})(Math.SQRT2,2,4);var jf=0,Xp=0,Qp=0,pE=1e3,Fm,Jp,Im=0,ic=0,Bm=0,Zp=typeof performance=="object"&&performance.now?performance:Date,hE=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(n){setTimeout(n,17)};function Ux(){return ic||(hE(qA),ic=Zp.now()+Bm)}function qA(){ic=0}function Hm(){this._call=this._time=this._next=null}Hm.prototype=vE.prototype={constructor:Hm,restart:function(n,a,l){if(typeof n!="function")throw new TypeError("callback is not a function");l=(l==null?Ux():+l)+(a==null?0:+a),!this._next&&Jp!==this&&(Jp?Jp._next=this:Fm=this,Jp=this),this._call=n,this._time=l,Fx()},stop:function(){this._call&&(this._call=null,this._time=1/0,Fx())}};function vE(n,a,l){var c=new Hm;return c.restart(n,a,l),c}function GA(){Ux(),++jf;for(var n=Fm,a;n;)(a=ic-n._time)>=0&&n._call.call(void 0,a),n=n._next;--jf}function mE(){ic=(Im=Zp.now())+Bm,jf=Xp=0;try{GA()}finally{jf=0,XA(),ic=0}}function KA(){var n=Zp.now(),a=n-Im;a>pE&&(Bm-=a,Im=n)}function XA(){for(var n,a=Fm,l,c=1/0;a;)a._call?(c>a._time&&(c=a._time),n=a,a=a._next):(l=a._next,a._next=null,a=n?n._next=l:Fm=l);Jp=n,Fx(c)}function Fx(n){if(!jf){Xp&&(Xp=clearTimeout(Xp));var a=n-ic;a>24?(n<1/0&&(Xp=setTimeout(mE,n-Zp.now()-Bm)),Qp&&(Qp=clearInterval(Qp))):(Qp||(Im=Zp.now(),Qp=setInterval(KA,pE)),jf=1,hE(mE))}}function gE(n,a,l){var c=new Hm;return a=a==null?0:+a,c.restart(f=>{c.stop(),n(f+a)},a,l),c}var QA=km("start","end","cancel","interrupt"),JA=[],yE=0,xE=1,Ix=2,Vm=3,bE=4,Bx=5,Ym=6;function Wm(n,a,l,c,f,v){var p=n.__transition;if(!p)n.__transition={};else if(l in p)return;ZA(n,l,{name:a,index:c,group:f,on:QA,tween:JA,time:v.time,delay:v.delay,duration:v.duration,ease:v.ease,timer:null,state:yE})}function Hx(n,a){var l=Mo(n,a);if(l.state>yE)throw new Error("too late; already scheduled");return l}function dl(n,a){var l=Mo(n,a);if(l.state>Vm)throw new Error("too late; already running");return l}function Mo(n,a){var l=n.__transition;if(!l||!(l=l[a]))throw new Error("transition not found");return l}function ZA(n,a,l){var c=n.__transition,f;c[a]=l,l.timer=vE(v,0,l.time);function v(S){l.state=xE,l.timer.restart(p,l.delay,l.time),l.delay<=S&&p(S-l.delay)}function p(S){var E,w,_,N;if(l.state!==xE)return x();for(E in c)if(N=c[E],N.name===l.name){if(N.state===Vm)return gE(p);N.state===bE?(N.state=Ym,N.timer.stop(),N.on.call("interrupt",n,n.__data__,N.index,N.group),delete c[E]):+E<a&&(N.state=Ym,N.timer.stop(),N.on.call("cancel",n,n.__data__,N.index,N.group),delete c[E])}if(gE(function(){l.state===Vm&&(l.state=bE,l.timer.restart(g,l.delay,l.time),g(S))}),l.state=Ix,l.on.call("start",n,n.__data__,l.index,l.group),l.state===Ix){for(l.state=Vm,f=new Array(_=l.tween.length),E=0,w=-1;E<_;++E)(N=l.tween[E].value.call(n,n.__data__,l.index,l.group))&&(f[++w]=N);f.length=w+1}}function g(S){for(var E=S<l.duration?l.ease.call(null,S/l.duration):(l.timer.restart(x),l.state=Bx,1),w=-1,_=f.length;++w<_;)f[w].call(n,E);l.state===Bx&&(l.on.call("end",n,n.__data__,l.index,l.group),x())}function x(){l.state=Ym,l.timer.stop(),delete c[a];for(var S in c)return;delete n.__transition}}function qm(n,a){var l=n.__transition,c,f,v=!0,p;if(l){a=a==null?null:a+"";for(p in l){if((c=l[p]).name!==a){v=!1;continue}f=c.state>Ix&&c.state<Bx,c.state=Ym,c.timer.stop(),c.on.call(f?"interrupt":"cancel",n,n.__data__,c.index,c.group),delete l[p]}v&&delete n.__transition}}function eO(n){return this.each(function(){qm(this,n)})}function tO(n,a){var l,c;return function(){var f=dl(this,n),v=f.tween;if(v!==l){c=l=v;for(var p=0,g=c.length;p<g;++p)if(c[p].name===a){c=c.slice(),c.splice(p,1);break}}f.tween=c}}function nO(n,a,l){var c,f;if(typeof l!="function")throw new Error;return function(){var v=dl(this,n),p=v.tween;if(p!==c){f=(c=p).slice();for(var g={name:a,value:l},x=0,S=f.length;x<S;++x)if(f[x].name===a){f[x]=g;break}x===S&&f.push(g)}v.tween=f}}function rO(n,a){var l=this._id;if(n+="",arguments.length<2){for(var c=Mo(this.node(),l).tween,f=0,v=c.length,p;f<v;++f)if((p=c[f]).name===n)return p.value;return null}return this.each((a==null?tO:nO)(l,n,a))}function Vx(n,a,l){var c=n._id;return n.each(function(){var f=dl(this,c);(f.value||(f.value={}))[a]=l.apply(this,arguments)}),function(f){return Mo(f,c).value[a]}}function wE(n,a){var l;return(typeof a=="number"?fl:a instanceof nc?Pm:(l=nc(a))?(a=l,Pm):sE)(n,a)}function aO(n){return function(){this.removeAttribute(n)}}function iO(n){return function(){this.removeAttributeNS(n.space,n.local)}}function oO(n,a,l){var c,f=l+"",v;return function(){var p=this.getAttribute(n);return p===f?null:p===c?v:v=a(c=p,l)}}function lO(n,a,l){var c,f=l+"",v;return function(){var p=this.getAttributeNS(n.space,n.local);return p===f?null:p===c?v:v=a(c=p,l)}}function sO(n,a,l){var c,f,v;return function(){var p,g=l(this),x;return g==null?void this.removeAttribute(n):(p=this.getAttribute(n),x=g+"",p===x?null:p===c&&x===f?v:(f=x,v=a(c=p,g)))}}function uO(n,a,l){var c,f,v;return function(){var p,g=l(this),x;return g==null?void this.removeAttributeNS(n.space,n.local):(p=this.getAttributeNS(n.space,n.local),x=g+"",p===x?null:p===c&&x===f?v:(f=x,v=a(c=p,g)))}}function cO(n,a){var l=Nm(n),c=l==="transform"?HA:wE;return this.attrTween(n,typeof a=="function"?(l.local?uO:sO)(l,c,Vx(this,"attr."+n,a)):a==null?(l.local?iO:aO)(l):(l.local?lO:oO)(l,c,a))}function fO(n,a){return function(l){this.setAttribute(n,a.call(this,l))}}function dO(n,a){return function(l){this.setAttributeNS(n.space,n.local,a.call(this,l))}}function pO(n,a){var l,c;function f(){var v=a.apply(this,arguments);return v!==c&&(l=(c=v)&&dO(n,v)),l}return f._value=a,f}function hO(n,a){var l,c;function f(){var v=a.apply(this,arguments);return v!==c&&(l=(c=v)&&fO(n,v)),l}return f._value=a,f}function vO(n,a){var l="attr."+n;if(arguments.length<2)return(l=this.tween(l))&&l._value;if(a==null)return this.tween(l,null);if(typeof a!="function")throw new Error;var c=Nm(n);return this.tween(l,(c.local?pO:hO)(c,a))}function mO(n,a){return function(){Hx(this,n).delay=+a.apply(this,arguments)}}function gO(n,a){return a=+a,function(){Hx(this,n).delay=a}}function yO(n){var a=this._id;return arguments.length?this.each((typeof n=="function"?mO:gO)(a,n)):Mo(this.node(),a).delay}function xO(n,a){return function(){dl(this,n).duration=+a.apply(this,arguments)}}function bO(n,a){return a=+a,function(){dl(this,n).duration=a}}function wO(n){var a=this._id;return arguments.length?this.each((typeof n=="function"?xO:bO)(a,n)):Mo(this.node(),a).duration}function SO(n,a){if(typeof a!="function")throw new Error;return function(){dl(this,n).ease=a}}function CO(n){var a=this._id;return arguments.length?this.each(SO(a,n)):Mo(this.node(),a).ease}function EO(n,a){return function(){var l=a.apply(this,arguments);if(typeof l!="function")throw new Error;dl(this,n).ease=l}}function _O(n){if(typeof n!="function")throw new Error;return this.each(EO(this._id,n))}function TO(n){typeof n!="function"&&(n=$C(n));for(var a=this._groups,l=a.length,c=new Array(l),f=0;f<l;++f)for(var v=a[f],p=v.length,g=c[f]=[],x,S=0;S<p;++S)(x=v[S])&&n.call(x,x.__data__,S,v)&&g.push(x);return new Zl(c,this._parents,this._name,this._id)}function RO(n){if(n._id!==this._id)throw new Error;for(var a=this._groups,l=n._groups,c=a.length,f=l.length,v=Math.min(c,f),p=new Array(c),g=0;g<v;++g)for(var x=a[g],S=l[g],E=x.length,w=p[g]=new Array(E),_,N=0;N<E;++N)(_=x[N]||S[N])&&(w[N]=_);for(;g<c;++g)p[g]=a[g];return new Zl(p,this._parents,this._name,this._id)}function kO(n){return(n+"").trim().split(/^|\s+/).every(function(a){var l=a.indexOf(".");return l>=0&&(a=a.slice(0,l)),!a||a==="start"})}function MO(n,a,l){var c,f,v=kO(a)?Hx:dl;return function(){var p=v(this,n),g=p.on;g!==c&&(f=(c=g).copy()).on(a,l),p.on=f}}function NO(n,a){var l=this._id;return arguments.length<2?Mo(this.node(),l).on.on(n):this.each(MO(l,n,a))}function DO(n){return function(){var a=this.parentNode;for(var l in this.__transition)if(+l!==n)return;a&&a.removeChild(this)}}function AO(){return this.on("end.remove",DO(this._id))}function OO(n){var a=this._name,l=this._id;typeof n!="function"&&(n=kx(n));for(var c=this._groups,f=c.length,v=new Array(f),p=0;p<f;++p)for(var g=c[p],x=g.length,S=v[p]=new Array(x),E,w,_=0;_<x;++_)(E=g[_])&&(w=n.call(E,E.__data__,_,g))&&("__data__"in E&&(w.__data__=E.__data__),S[_]=w,Wm(S[_],a,l,_,S,Mo(E,l)));return new Zl(v,this._parents,a,l)}function LO(n){var a=this._name,l=this._id;typeof n!="function"&&(n=PC(n));for(var c=this._groups,f=c.length,v=[],p=[],g=0;g<f;++g)for(var x=c[g],S=x.length,E,w=0;w<S;++w)if(E=x[w]){for(var _=n.call(E,E.__data__,w,x),N,D=Mo(E,l),R=0,j=_.length;R<j;++R)(N=_[R])&&Wm(N,a,l,R,_,D);v.push(_),p.push(E)}return new Zl(v,p,a,l)}var zO=Vp.prototype.constructor;function jO(){return new zO(this._groups,this._parents)}function PO(n,a){var l,c,f;return function(){var v=Of(this,n),p=(this.style.removeProperty(n),Of(this,n));return v===p?null:v===l&&p===c?f:f=a(l=v,c=p)}}function SE(n){return function(){this.style.removeProperty(n)}}function $O(n,a,l){var c,f=l+"",v;return function(){var p=Of(this,n);return p===f?null:p===c?v:v=a(c=p,l)}}function UO(n,a,l){var c,f,v;return function(){var p=Of(this,n),g=l(this),x=g+"";return g==null&&(x=g=(this.style.removeProperty(n),Of(this,n))),p===x?null:p===c&&x===f?v:(f=x,v=a(c=p,g))}}function FO(n,a){var l,c,f,v="style."+a,p="end."+v,g;return function(){var x=dl(this,n),S=x.on,E=x.value[v]==null?g||(g=SE(a)):void 0;(S!==l||f!==E)&&(c=(l=S).copy()).on(p,f=E),x.on=c}}function IO(n,a,l){var c=(n+="")=="transform"?BA:wE;return a==null?this.styleTween(n,PO(n,c)).on("end.style."+n,SE(n)):typeof a=="function"?this.styleTween(n,UO(n,c,Vx(this,"style."+n,a))).each(FO(this._id,n)):this.styleTween(n,$O(n,c,a),l).on("end.style."+n,null)}function BO(n,a,l){return function(c){this.style.setProperty(n,a.call(this,c),l)}}function HO(n,a,l){var c,f;function v(){var p=a.apply(this,arguments);return p!==f&&(c=(f=p)&&BO(n,p,l)),c}return v._value=a,v}function VO(n,a,l){var c="style."+(n+="");if(arguments.length<2)return(c=this.tween(c))&&c._value;if(a==null)return this.tween(c,null);if(typeof a!="function")throw new Error;return this.tween(c,HO(n,a,l??""))}function YO(n){return function(){this.textContent=n}}function WO(n){return function(){var a=n(this);this.textContent=a??""}}function qO(n){return this.tween("text",typeof n=="function"?WO(Vx(this,"text",n)):YO(n==null?"":n+""))}function GO(n){return function(a){this.textContent=n.call(this,a)}}function KO(n){var a,l;function c(){var f=n.apply(this,arguments);return f!==l&&(a=(l=f)&&GO(f)),a}return c._value=n,c}function XO(n){var a="text";if(arguments.length<1)return(a=this.tween(a))&&a._value;if(n==null)return this.tween(a,null);if(typeof n!="function")throw new Error;return this.tween(a,KO(n))}function QO(){for(var n=this._name,a=this._id,l=CE(),c=this._groups,f=c.length,v=0;v<f;++v)for(var p=c[v],g=p.length,x,S=0;S<g;++S)if(x=p[S]){var E=Mo(x,a);Wm(x,n,l,S,p,{time:E.time+E.delay+E.duration,delay:0,duration:E.duration,ease:E.ease})}return new Zl(c,this._parents,n,l)}function JO(){var n,a,l=this,c=l._id,f=l.size();return new Promise(function(v,p){var g={value:p},x={value:function(){--f===0&&v()}};l.each(function(){var S=dl(this,c),E=S.on;E!==n&&(a=(n=E).copy(),a._.cancel.push(g),a._.interrupt.push(g),a._.end.push(x)),S.on=a}),f===0&&v()})}var ZO=0;function Zl(n,a,l,c){this._groups=n,this._parents=a,this._name=l,this._id=c}function CE(){return++ZO}var es=Vp.prototype;Zl.prototype={constructor:Zl,select:OO,selectAll:LO,selectChild:es.selectChild,selectChildren:es.selectChildren,filter:TO,merge:RO,selection:jO,transition:QO,call:es.call,nodes:es.nodes,node:es.node,size:es.size,empty:es.empty,each:es.each,on:NO,attr:cO,attrTween:vO,style:IO,styleTween:VO,text:qO,textTween:XO,remove:AO,tween:rO,delay:yO,duration:wO,ease:CO,easeVarying:_O,end:JO,[Symbol.iterator]:es[Symbol.iterator]};function eL(n){return((n*=2)<=1?n*n*n:(n-=2)*n*n+2)/2}var tL={time:null,delay:0,duration:250,ease:eL};function nL(n,a){for(var l;!(l=n.__transition)||!(l=l[a]);)if(!(n=n.parentNode))throw new Error(`transition ${a} not found`);return l}function rL(n){var a,l;n instanceof Zl?(a=n._id,n=n._name):(a=CE(),(l=tL).time=Ux(),n=n==null?null:n+"");for(var c=this._groups,f=c.length,v=0;v<f;++v)for(var p=c[v],g=p.length,x,S=0;S<g;++S)(x=p[S])&&Wm(x,n,a,S,p,l||nL(x,a));return new Zl(c,this._parents,n,a)}Vp.prototype.interrupt=eO,Vp.prototype.transition=rL;const Gm=n=>()=>n;function aL(n,{sourceEvent:a,target:l,transform:c,dispatch:f}){Object.defineProperties(this,{type:{value:n,enumerable:!0,configurable:!0},sourceEvent:{value:a,enumerable:!0,configurable:!0},target:{value:l,enumerable:!0,configurable:!0},transform:{value:c,enumerable:!0,configurable:!0},_:{value:f}})}function ts(n,a,l){this.k=n,this.x=a,this.y=l}ts.prototype={constructor:ts,scale:function(n){return n===1?this:new ts(this.k*n,this.x,this.y)},translate:function(n,a){return n===0&a===0?this:new ts(this.k,this.x+this.k*n,this.y+this.k*a)},apply:function(n){return[n[0]*this.k+this.x,n[1]*this.k+this.y]},applyX:function(n){return n*this.k+this.x},applyY:function(n){return n*this.k+this.y},invert:function(n){return[(n[0]-this.x)/this.k,(n[1]-this.y)/this.k]},invertX:function(n){return(n-this.x)/this.k},invertY:function(n){return(n-this.y)/this.k},rescaleX:function(n){return n.copy().domain(n.range().map(this.invertX,this).map(n.invert,n))},rescaleY:function(n){return n.copy().domain(n.range().map(this.invertY,this).map(n.invert,n))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Km=new ts(1,0,0);EE.prototype=ts.prototype;function EE(n){for(;!n.__zoom;)if(!(n=n.parentNode))return Km;return n.__zoom}function Yx(n){n.stopImmediatePropagation()}function eh(n){n.preventDefault(),n.stopImmediatePropagation()}function iL(n){return(!n.ctrlKey||n.type==="wheel")&&!n.button}function oL(){var n=this;return n instanceof SVGElement?(n=n.ownerSVGElement||n,n.hasAttribute("viewBox")?(n=n.viewBox.baseVal,[[n.x,n.y],[n.x+n.width,n.y+n.height]]):[[0,0],[n.width.baseVal.value,n.height.baseVal.value]]):[[0,0],[n.clientWidth,n.clientHeight]]}function _E(){return this.__zoom||Km}function lL(n){return-n.deltaY*(n.deltaMode===1?.05:n.deltaMode?1:.002)*(n.ctrlKey?10:1)}function sL(){return navigator.maxTouchPoints||"ontouchstart"in this}function uL(n,a,l){var c=n.invertX(a[0][0])-l[0][0],f=n.invertX(a[1][0])-l[1][0],v=n.invertY(a[0][1])-l[0][1],p=n.invertY(a[1][1])-l[1][1];return n.translate(f>c?(c+f)/2:Math.min(0,c)||Math.max(0,f),p>v?(v+p)/2:Math.min(0,v)||Math.max(0,p))}function TE(){var n=iL,a=oL,l=uL,c=lL,f=sL,v=[0,1/0],p=[[-1/0,-1/0],[1/0,1/0]],g=250,x=Um,S=km("start","zoom","end"),E,w,_,N=500,D=150,R=0,j=10;function z(V){V.property("__zoom",_E).on("wheel.zoom",ie,{passive:!1}).on("mousedown.zoom",fe).on("dblclick.zoom",Se).filter(f).on("touchstart.zoom",oe).on("touchmove.zoom",de).on("touchend.zoom touchcancel.zoom",he).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}z.transform=function(V,ce,Z,te){var Y=V.selection?V.selection():V;Y.property("__zoom",_E),V!==Y?H(V,ce,Z,te):Y.interrupt().each(function(){I(this,arguments).event(te).start().zoom(null,typeof ce=="function"?ce.apply(this,arguments):ce).end()})},z.scaleBy=function(V,ce,Z,te){z.scaleTo(V,function(){var Y=this.__zoom.k,J=typeof ce=="function"?ce.apply(this,arguments):ce;return Y*J},Z,te)},z.scaleTo=function(V,ce,Z,te){z.transform(V,function(){var Y=a.apply(this,arguments),J=this.__zoom,ne=Z==null?$(Y):typeof Z=="function"?Z.apply(this,arguments):Z,B=J.invert(ne),K=typeof ce=="function"?ce.apply(this,arguments):ce;return l(L(U(J,K),ne,B),Y,p)},Z,te)},z.translateBy=function(V,ce,Z,te){z.transform(V,function(){return l(this.__zoom.translate(typeof ce=="function"?ce.apply(this,arguments):ce,typeof Z=="function"?Z.apply(this,arguments):Z),a.apply(this,arguments),p)},null,te)},z.translateTo=function(V,ce,Z,te,Y){z.transform(V,function(){var J=a.apply(this,arguments),ne=this.__zoom,B=te==null?$(J):typeof te=="function"?te.apply(this,arguments):te;return l(Km.translate(B[0],B[1]).scale(ne.k).translate(typeof ce=="function"?-ce.apply(this,arguments):-ce,typeof Z=="function"?-Z.apply(this,arguments):-Z),J,p)},te,Y)};function U(V,ce){return ce=Math.max(v[0],Math.min(v[1],ce)),ce===V.k?V:new ts(ce,V.x,V.y)}function L(V,ce,Z){var te=ce[0]-Z[0]*V.k,Y=ce[1]-Z[1]*V.k;return te===V.x&&Y===V.y?V:new ts(V.k,te,Y)}function $(V){return[(+V[0][0]+ +V[1][0])/2,(+V[0][1]+ +V[1][1])/2]}function H(V,ce,Z,te){V.on("start.zoom",function(){I(this,arguments).event(te).start()}).on("interrupt.zoom end.zoom",function(){I(this,arguments).event(te).end()}).tween("zoom",function(){var Y=this,J=arguments,ne=I(Y,J).event(te),B=a.apply(Y,J),K=Z==null?$(B):typeof Z=="function"?Z.apply(Y,J):Z,ke=Math.max(B[1][0]-B[0][0],B[1][1]-B[0][1]),Re=Y.__zoom,Oe=typeof ce=="function"?ce.apply(Y,J):ce,$e=x(Re.invert(K).concat(ke/Re.k),Oe.invert(K).concat(ke/Oe.k));return function(Ie){if(Ie===1)Ie=Oe;else{var Te=$e(Ie),Ne=ke/Te[2];Ie=new ts(Ne,K[0]-Te[0]*Ne,K[1]-Te[1]*Ne)}ne.zoom(null,Ie)}})}function I(V,ce,Z){return!Z&&V.__zooming||new q(V,ce)}function q(V,ce){this.that=V,this.args=ce,this.active=0,this.sourceEvent=null,this.extent=a.apply(V,ce),this.taps=0}q.prototype={event:function(V){return V&&(this.sourceEvent=V),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(V,ce){return this.mouse&&V!=="mouse"&&(this.mouse[1]=ce.invert(this.mouse[0])),this.touch0&&V!=="touch"&&(this.touch0[1]=ce.invert(this.touch0[0])),this.touch1&&V!=="touch"&&(this.touch1[1]=ce.invert(this.touch1[0])),this.that.__zoom=ce,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(V){var ce=Ai(this.that).datum();S.call(V,this.that,new aL(V,{sourceEvent:this.sourceEvent,target:z,transform:this.that.__zoom,dispatch:S}),ce)}};function ie(V,...ce){if(!n.apply(this,arguments))return;var Z=I(this,ce).event(V),te=this.__zoom,Y=Math.max(v[0],Math.min(v[1],te.k*Math.pow(2,c.apply(this,arguments)))),J=Ro(V);if(Z.wheel)(Z.mouse[0][0]!==J[0]||Z.mouse[0][1]!==J[1])&&(Z.mouse[1]=te.invert(Z.mouse[0]=J)),clearTimeout(Z.wheel);else{if(te.k===Y)return;Z.mouse=[J,te.invert(J)],qm(this),Z.start()}eh(V),Z.wheel=setTimeout(ne,D),Z.zoom("mouse",l(L(U(te,Y),Z.mouse[0],Z.mouse[1]),Z.extent,p));function ne(){Z.wheel=null,Z.end()}}function fe(V,...ce){if(_||!n.apply(this,arguments))return;var Z=V.currentTarget,te=I(this,ce,!0).event(V),Y=Ai(V.view).on("mousemove.zoom",K,!0).on("mouseup.zoom",ke,!0),J=Ro(V,Z),ne=V.clientX,B=V.clientY;GC(V.view),Yx(V),te.mouse=[J,this.__zoom.invert(J)],qm(this),te.start();function K(Re){if(eh(Re),!te.moved){var Oe=Re.clientX-ne,$e=Re.clientY-B;te.moved=Oe*Oe+$e*$e>R}te.event(Re).zoom("mouse",l(L(te.that.__zoom,te.mouse[0]=Ro(Re,Z),te.mouse[1]),te.extent,p))}function ke(Re){Y.on("mousemove.zoom mouseup.zoom",null),KC(Re.view,te.moved),eh(Re),te.event(Re).end()}}function Se(V,...ce){if(n.apply(this,arguments)){var Z=this.__zoom,te=Ro(V.changedTouches?V.changedTouches[0]:V,this),Y=Z.invert(te),J=Z.k*(V.shiftKey?.5:2),ne=l(L(U(Z,J),te,Y),a.apply(this,ce),p);eh(V),g>0?Ai(this).transition().duration(g).call(H,ne,te,V):Ai(this).call(z.transform,ne,te,V)}}function oe(V,...ce){if(n.apply(this,arguments)){var Z=V.touches,te=Z.length,Y=I(this,ce,V.changedTouches.length===te).event(V),J,ne,B,K;for(Yx(V),ne=0;ne<te;++ne)B=Z[ne],K=Ro(B,this),K=[K,this.__zoom.invert(K),B.identifier],Y.touch0?!Y.touch1&&Y.touch0[2]!==K[2]&&(Y.touch1=K,Y.taps=0):(Y.touch0=K,J=!0,Y.taps=1+!!E);E&&(E=clearTimeout(E)),J&&(Y.taps<2&&(w=K[0],E=setTimeout(function(){E=null},N)),qm(this),Y.start())}}function de(V,...ce){if(this.__zooming){var Z=I(this,ce).event(V),te=V.changedTouches,Y=te.length,J,ne,B,K;for(eh(V),J=0;J<Y;++J)ne=te[J],B=Ro(ne,this),Z.touch0&&Z.touch0[2]===ne.identifier?Z.touch0[0]=B:Z.touch1&&Z.touch1[2]===ne.identifier&&(Z.touch1[0]=B);if(ne=Z.that.__zoom,Z.touch1){var ke=Z.touch0[0],Re=Z.touch0[1],Oe=Z.touch1[0],$e=Z.touch1[1],Ie=(Ie=Oe[0]-ke[0])*Ie+(Ie=Oe[1]-ke[1])*Ie,Te=(Te=$e[0]-Re[0])*Te+(Te=$e[1]-Re[1])*Te;ne=U(ne,Math.sqrt(Ie/Te)),B=[(ke[0]+Oe[0])/2,(ke[1]+Oe[1])/2],K=[(Re[0]+$e[0])/2,(Re[1]+$e[1])/2]}else if(Z.touch0)B=Z.touch0[0],K=Z.touch0[1];else return;Z.zoom("touch",l(L(ne,B,K),Z.extent,p))}}function he(V,...ce){if(this.__zooming){var Z=I(this,ce).event(V),te=V.changedTouches,Y=te.length,J,ne;for(Yx(V),_&&clearTimeout(_),_=setTimeout(function(){_=null},N),J=0;J<Y;++J)ne=te[J],Z.touch0&&Z.touch0[2]===ne.identifier?delete Z.touch0:Z.touch1&&Z.touch1[2]===ne.identifier&&delete Z.touch1;if(Z.touch1&&!Z.touch0&&(Z.touch0=Z.touch1,delete Z.touch1),Z.touch0)Z.touch0[1]=this.__zoom.invert(Z.touch0[0]);else if(Z.end(),Z.taps===2&&(ne=Ro(ne,this),Math.hypot(w[0]-ne[0],w[1]-ne[1])<j)){var B=Ai(this).on("dblclick.zoom");B&&B.apply(this,arguments)}}}return z.wheelDelta=function(V){return arguments.length?(c=typeof V=="function"?V:Gm(+V),z):c},z.filter=function(V){return arguments.length?(n=typeof V=="function"?V:Gm(!!V),z):n},z.touchable=function(V){return arguments.length?(f=typeof V=="function"?V:Gm(!!V),z):f},z.extent=function(V){return arguments.length?(a=typeof V=="function"?V:Gm([[+V[0][0],+V[0][1]],[+V[1][0],+V[1][1]]]),z):a},z.scaleExtent=function(V){return arguments.length?(v[0]=+V[0],v[1]=+V[1],z):[v[0],v[1]]},z.translateExtent=function(V){return arguments.length?(p[0][0]=+V[0][0],p[1][0]=+V[1][0],p[0][1]=+V[0][1],p[1][1]=+V[1][1],z):[[p[0][0],p[0][1]],[p[1][0],p[1][1]]]},z.constrain=function(V){return arguments.length?(l=V,z):l},z.duration=function(V){return arguments.length?(g=+V,z):g},z.interpolate=function(V){return arguments.length?(x=V,z):x},z.on=function(){var V=S.on.apply(S,arguments);return V===S?z:V},z.clickDistance=function(V){return arguments.length?(R=(V=+V)*V,z):Math.sqrt(R)},z.tapDistance=function(V){return arguments.length?(j=+V,z):j},z}const Oi={error001:()=>"[React Flow]: Seems like you have not used zustand provider as an ancestor. Help: https://reactflow.dev/error#001",error002:()=>"It looks like you've created a new nodeTypes or edgeTypes object. If this wasn't on purpose please define the nodeTypes/edgeTypes outside of the component or memoize them.",error003:n=>`Node type "${n}" not found. Using fallback type "default".`,error004:()=>"The React Flow parent container needs a width and a height to render the graph.",error005:()=>"Only child nodes can use a parent extent.",error006:()=>"Can't create edge. An edge needs a source and a target.",error007:n=>`The old edge with id=${n} does not exist.`,error009:n=>`Marker type "${n}" doesn't exist.`,error008:(n,{id:a,sourceHandle:l,targetHandle:c})=>`Couldn't create edge for ${n} handle id: "${n==="source"?l:c}", edge id: ${a}.`,error010:()=>"Handle: No node id found. Make sure to only use a Handle inside a custom Node.",error011:n=>`Edge type "${n}" not found. Using fallback type "default".`,error012:n=>`Node with id "${n}" does not exist, it may have been removed. This can happen when a node is deleted before the "onNodeClick" handler is called.`,error013:(n="react")=>`It seems that you haven't loaded the styles. Please import '@xyflow/${n}/dist/style.css' or base.css to make sure everything is working properly.`,error014:()=>"useNodeConnections: No node ID found. Call useNodeConnections inside a custom Node or provide a node ID.",error015:()=>"It seems that you are trying to drag a node that is not initialized. Please use onNodesChange as explained in the docs."},th=[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],RE=["Enter"," ","Escape"],kE={"node.a11yDescription.default":"Press enter or space to select a node. Press delete to remove it and escape to cancel.","node.a11yDescription.keyboardDisabled":"Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.","node.a11yDescription.ariaLiveMessage":({direction:n,x:a,y:l})=>`Moved selected node ${n}. New position, x: ${a}, y: ${l}`,"edge.a11yDescription.default":"Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.","controls.ariaLabel":"Control Panel","controls.zoomIn.ariaLabel":"Zoom In","controls.zoomOut.ariaLabel":"Zoom Out","controls.fitView.ariaLabel":"Fit View","controls.interactive.ariaLabel":"Toggle Interactivity","minimap.ariaLabel":"Mini Map","handle.ariaLabel":"Handle"};var Pf;(function(n){n.Strict="strict",n.Loose="loose"})(Pf||(Pf={}));var oc;(function(n){n.Free="free",n.Vertical="vertical",n.Horizontal="horizontal"})(oc||(oc={}));var nh;(function(n){n.Partial="partial",n.Full="full"})(nh||(nh={}));const ME={inProgress:!1,isValid:null,from:null,fromHandle:null,fromPosition:null,fromNode:null,to:null,toHandle:null,toPosition:null,toNode:null,pointer:null};var Xs;(function(n){n.Bezier="default",n.Straight="straight",n.Step="step",n.SmoothStep="smoothstep",n.SimpleBezier="simplebezier"})(Xs||(Xs={}));var Xm;(function(n){n.Arrow="arrow",n.ArrowClosed="arrowclosed"})(Xm||(Xm={}));var bt;(function(n){n.Left="left",n.Top="top",n.Right="right",n.Bottom="bottom"})(bt||(bt={}));const NE={[bt.Left]:bt.Right,[bt.Right]:bt.Left,[bt.Top]:bt.Bottom,[bt.Bottom]:bt.Top};function DE(n){return n===null?null:n?"valid":"invalid"}const AE=n=>"id"in n&&"source"in n&&"target"in n,cL=n=>"id"in n&&"position"in n&&!("source"in n)&&!("target"in n),Wx=n=>"id"in n&&"internals"in n&&!("source"in n)&&!("target"in n),rh=(n,a=[0,0])=>{const{width:l,height:c}=ns(n),f=n.origin??a,v=l*f[0],p=c*f[1];return{x:n.position.x-v,y:n.position.y-p}},fL=(n,a={nodeOrigin:[0,0]})=>{if(process.env.NODE_ENV==="development"&&!a.nodeLookup&&console.warn("Please use `getNodesBounds` from `useReactFlow`/`useSvelteFlow` hook to ensure correct values for sub flows. If not possible, you have to provide a nodeLookup to support sub flows."),n.length===0)return{x:0,y:0,width:0,height:0};const l=n.reduce((c,f)=>{const v=typeof f=="string";let p=!a.nodeLookup&&!v?f:void 0;a.nodeLookup&&(p=v?a.nodeLookup.get(f):Wx(f)?f:a.nodeLookup.get(f.id));const g=p?Zm(p,a.nodeOrigin):{x:0,y:0,x2:0,y2:0};return Qm(c,g)},{x:1/0,y:1/0,x2:-1/0,y2:-1/0});return Jm(l)},ah=(n,a={})=>{let l={x:1/0,y:1/0,x2:-1/0,y2:-1/0},c=!1;return n.forEach(f=>{(a.filter===void 0||a.filter(f))&&(l=Qm(l,Zm(f)),c=!0)}),c?Jm(l):{x:0,y:0,width:0,height:0}},qx=(n,a,[l,c,f]=[0,0,1],v=!1,p=!1)=>{const g={...lh(a,[l,c,f]),width:a.width/f,height:a.height/f},x=[];for(const S of n.values()){const{measured:E,selectable:w=!0,hidden:_=!1}=S;if(p&&!w||_)continue;const N=E.width??S.width??S.initialWidth??null,D=E.height??S.height??S.initialHeight??null,R=ih(g,Uf(S)),j=(N??0)*(D??0),z=v&&R>0;(!S.internals.handleBounds||z||R>=j||S.dragging)&&x.push(S)}return x},dL=(n,a)=>{const l=new Set;return n.forEach(c=>{l.add(c.id)}),a.filter(c=>l.has(c.source)||l.has(c.target))};function pL(n,a){const l=new Map,c=a!=null&&a.nodes?new Set(a.nodes.map(f=>f.id)):null;return n.forEach(f=>{f.measured.width&&f.measured.height&&((a==null?void 0:a.includeHiddenNodes)||!f.hidden)&&(!c||c.has(f.id))&&l.set(f.id,f)}),l}async function hL({nodes:n,width:a,height:l,panZoom:c,minZoom:f,maxZoom:v},p){if(n.size===0)return Promise.resolve(!0);const g=pL(n,p),x=ah(g),S=Kx(x,a,l,(p==null?void 0:p.minZoom)??f,(p==null?void 0:p.maxZoom)??v,(p==null?void 0:p.padding)??.1);return await c.setViewport(S,{duration:p==null?void 0:p.duration,ease:p==null?void 0:p.ease,interpolate:p==null?void 0:p.interpolate}),Promise.resolve(!0)}function OE({nodeId:n,nextPosition:a,nodeLookup:l,nodeOrigin:c=[0,0],nodeExtent:f,onError:v}){const p=l.get(n),g=p.parentId?l.get(p.parentId):void 0,{x,y:S}=g?g.internals.positionAbsolute:{x:0,y:0},E=p.origin??c;let w=p.extent||f;if(p.extent==="parent"&&!p.expandParent)if(!g)v==null||v("005",Oi.error005());else{const N=g.measured.width,D=g.measured.height;N&&D&&(w=[[x,S],[x+N,S+D]])}else g&&If(p.extent)&&(w=[[p.extent[0][0]+x,p.extent[0][1]+S],[p.extent[1][0]+x,p.extent[1][1]+S]]);const _=If(w)?lc(a,w,p.measured):a;return(p.measured.width===void 0||p.measured.height===void 0)&&(v==null||v("015",Oi.error015())),{position:{x:_.x-x+(p.measured.width??0)*E[0],y:_.y-S+(p.measured.height??0)*E[1]},positionAbsolute:_}}async function vL({nodesToRemove:n=[],edgesToRemove:a=[],nodes:l,edges:c,onBeforeDelete:f}){const v=new Set(n.map(_=>_.id)),p=[];for(const _ of l){if(_.deletable===!1)continue;const N=v.has(_.id),D=!N&&_.parentId&&p.find(R=>R.id===_.parentId);(N||D)&&p.push(_)}const g=new Set(a.map(_=>_.id)),x=c.filter(_=>_.deletable!==!1),E=dL(p,x);for(const _ of x)g.has(_.id)&&!E.find(D=>D.id===_.id)&&E.push(_);if(!f)return{edges:E,nodes:p};const w=await f({nodes:p,edges:E});return typeof w=="boolean"?w?{edges:E,nodes:p}:{edges:[],nodes:[]}:w}const $f=(n,a=0,l=1)=>Math.min(Math.max(n,a),l),lc=(n={x:0,y:0},a,l)=>({x:$f(n.x,a[0][0],a[1][0]-((l==null?void 0:l.width)??0)),y:$f(n.y,a[0][1],a[1][1]-((l==null?void 0:l.height)??0))});function LE(n,a,l){const{width:c,height:f}=ns(l),{x:v,y:p}=l.internals.positionAbsolute;return lc(n,[[v,p],[v+c,p+f]],a)}const zE=(n,a,l)=>n<a?$f(Math.abs(n-a),1,a)/a:n>l?-$f(Math.abs(n-l),1,a)/a:0,jE=(n,a,l=15,c=40)=>{const f=zE(n.x,c,a.width-c)*l,v=zE(n.y,c,a.height-c)*l;return[f,v]},Qm=(n,a)=>({x:Math.min(n.x,a.x),y:Math.min(n.y,a.y),x2:Math.max(n.x2,a.x2),y2:Math.max(n.y2,a.y2)}),Gx=({x:n,y:a,width:l,height:c})=>({x:n,y:a,x2:n+l,y2:a+c}),Jm=({x:n,y:a,x2:l,y2:c})=>({x:n,y:a,width:l-n,height:c-a}),Uf=(n,a=[0,0])=>{var f,v;const{x:l,y:c}=Wx(n)?n.internals.positionAbsolute:rh(n,a);return{x:l,y:c,width:((f=n.measured)==null?void 0:f.width)??n.width??n.initialWidth??0,height:((v=n.measured)==null?void 0:v.height)??n.height??n.initialHeight??0}},Zm=(n,a=[0,0])=>{var f,v;const{x:l,y:c}=Wx(n)?n.internals.positionAbsolute:rh(n,a);return{x:l,y:c,x2:l+(((f=n.measured)==null?void 0:f.width)??n.width??n.initialWidth??0),y2:c+(((v=n.measured)==null?void 0:v.height)??n.height??n.initialHeight??0)}},PE=(n,a)=>Jm(Qm(Gx(n),Gx(a))),ih=(n,a)=>{const l=Math.max(0,Math.min(n.x+n.width,a.x+a.width)-Math.max(n.x,a.x)),c=Math.max(0,Math.min(n.y+n.height,a.y+a.height)-Math.max(n.y,a.y));return Math.ceil(l*c)},$E=n=>No(n.width)&&No(n.height)&&No(n.x)&&No(n.y),No=n=>!isNaN(n)&&isFinite(n),UE=(n,a)=>{process.env.NODE_ENV==="development"&&console.warn(`[React Flow]: ${a} Help: https://reactflow.dev/error#${n}`)},oh=(n,a=[1,1])=>({x:a[0]*Math.round(n.x/a[0]),y:a[1]*Math.round(n.y/a[1])}),lh=({x:n,y:a},[l,c,f],v=!1,p=[1,1])=>{const g={x:(n-l)/f,y:(a-c)/f};return v?oh(g,p):g},eg=({x:n,y:a},[l,c,f])=>({x:n*f+l,y:a*f+c});function Ff(n,a){if(typeof n=="number")return Math.floor((a-a/(1+n))*.5);if(typeof n=="string"&&n.endsWith("px")){const l=parseFloat(n);if(!Number.isNaN(l))return Math.floor(l)}if(typeof n=="string"&&n.endsWith("%")){const l=parseFloat(n);if(!Number.isNaN(l))return Math.floor(a*l*.01)}return console.error(`[React Flow] The padding value "${n}" is invalid. Please provide a number or a string with a valid unit (px or %).`),0}function mL(n,a,l){if(typeof n=="string"||typeof n=="number"){const c=Ff(n,l),f=Ff(n,a);return{top:c,right:f,bottom:c,left:f,x:f*2,y:c*2}}if(typeof n=="object"){const c=Ff(n.top??n.y??0,l),f=Ff(n.bottom??n.y??0,l),v=Ff(n.left??n.x??0,a),p=Ff(n.right??n.x??0,a);return{top:c,right:p,bottom:f,left:v,x:v+p,y:c+f}}return{top:0,right:0,bottom:0,left:0,x:0,y:0}}function gL(n,a,l,c,f,v){const{x:p,y:g}=eg(n,[a,l,c]),{x,y:S}=eg({x:n.x+n.width,y:n.y+n.height},[a,l,c]),E=f-x,w=v-S;return{left:Math.floor(p),top:Math.floor(g),right:Math.floor(E),bottom:Math.floor(w)}}const Kx=(n,a,l,c,f,v)=>{const p=mL(v,a,l),g=(a-p.x)/n.width,x=(l-p.y)/n.height,S=Math.min(g,x),E=$f(S,c,f),w=n.x+n.width/2,_=n.y+n.height/2,N=a/2-w*E,D=l/2-_*E,R=gL(n,N,D,E,a,l),j={left:Math.min(R.left-p.left,0),top:Math.min(R.top-p.top,0),right:Math.min(R.right-p.right,0),bottom:Math.min(R.bottom-p.bottom,0)};return{x:N-j.left+j.right,y:D-j.top+j.bottom,zoom:E}},sh=()=>{var n;return typeof navigator<"u"&&((n=navigator==null?void 0:navigator.userAgent)==null?void 0:n.indexOf("Mac"))>=0};function If(n){return n!=null&&n!=="parent"}function ns(n){var a,l;return{width:((a=n.measured)==null?void 0:a.width)??n.width??n.initialWidth??0,height:((l=n.measured)==null?void 0:l.height)??n.height??n.initialHeight??0}}function Xx(n){var a,l;return(((a=n.measured)==null?void 0:a.width)??n.width??n.initialWidth)!==void 0&&(((l=n.measured)==null?void 0:l.height)??n.height??n.initialHeight)!==void 0}function FE(n,a={width:0,height:0},l,c,f){const v={...n},p=c.get(l);if(p){const g=p.origin||f;v.x+=p.internals.positionAbsolute.x-(a.width??0)*g[0],v.y+=p.internals.positionAbsolute.y-(a.height??0)*g[1]}return v}function IE(n,a){if(n.size!==a.size)return!1;for(const l of n)if(!a.has(l))return!1;return!0}function yL(){let n,a;return{promise:new Promise((c,f)=>{n=c,a=f}),resolve:n,reject:a}}function xL(n){return{...kE,...n||{}}}function uh(n,{snapGrid:a=[0,0],snapToGrid:l=!1,transform:c,containerBounds:f}){const{x:v,y:p}=Do(n),g=lh({x:v-((f==null?void 0:f.left)??0),y:p-((f==null?void 0:f.top)??0)},c),{x,y:S}=l?oh(g,a):g;return{xSnapped:x,ySnapped:S,...g}}const Qx=n=>({width:n.offsetWidth,height:n.offsetHeight}),BE=n=>{var a;return((a=n==null?void 0:n.getRootNode)==null?void 0:a.call(n))||(window==null?void 0:window.document)},bL=["INPUT","SELECT","TEXTAREA"];function HE(n){var c,f;const a=((f=(c=n.composedPath)==null?void 0:c.call(n))==null?void 0:f[0])||n.target;return(a==null?void 0:a.nodeType)!==1?!1:bL.includes(a.nodeName)||a.hasAttribute("contenteditable")||!!a.closest(".nokey")}const VE=n=>"clientX"in n,Do=(n,a)=>{var v,p;const l=VE(n),c=l?n.clientX:(v=n.touches)==null?void 0:v[0].clientX,f=l?n.clientY:(p=n.touches)==null?void 0:p[0].clientY;return{x:c-((a==null?void 0:a.left)??0),y:f-((a==null?void 0:a.top)??0)}},YE=(n,a,l,c,f)=>{const v=a.querySelectorAll(`.${n}`);return!v||!v.length?null:Array.from(v).map(p=>{const g=p.getBoundingClientRect();return{id:p.getAttribute("data-handleid"),type:n,nodeId:f,position:p.getAttribute("data-handlepos"),x:(g.left-l.left)/c,y:(g.top-l.top)/c,...Qx(p)}})};function WE({sourceX:n,sourceY:a,targetX:l,targetY:c,sourceControlX:f,sourceControlY:v,targetControlX:p,targetControlY:g}){const x=n*.125+f*.375+p*.375+l*.125,S=a*.125+v*.375+g*.375+c*.125,E=Math.abs(x-n),w=Math.abs(S-a);return[x,S,E,w]}function tg(n,a){return n>=0?.5*n:a*25*Math.sqrt(-n)}function qE({pos:n,x1:a,y1:l,x2:c,y2:f,c:v}){switch(n){case bt.Left:return[a-tg(a-c,v),l];case bt.Right:return[a+tg(c-a,v),l];case bt.Top:return[a,l-tg(l-f,v)];case bt.Bottom:return[a,l+tg(f-l,v)]}}function GE({sourceX:n,sourceY:a,sourcePosition:l=bt.Bottom,targetX:c,targetY:f,targetPosition:v=bt.Top,curvature:p=.25}){const[g,x]=qE({pos:l,x1:n,y1:a,x2:c,y2:f,c:p}),[S,E]=qE({pos:v,x1:c,y1:f,x2:n,y2:a,c:p}),[w,_,N,D]=WE({sourceX:n,sourceY:a,targetX:c,targetY:f,sourceControlX:g,sourceControlY:x,targetControlX:S,targetControlY:E});return[`M${n},${a} C${g},${x} ${S},${E} ${c},${f}`,w,_,N,D]}function KE({sourceX:n,sourceY:a,targetX:l,targetY:c}){const f=Math.abs(l-n)/2,v=l<n?l+f:l-f,p=Math.abs(c-a)/2,g=c<a?c+p:c-p;return[v,g,f,p]}function wL({sourceNode:n,targetNode:a,selected:l=!1,zIndex:c=0,elevateOnSelect:f=!1,zIndexMode:v="basic"}){if(v==="manual")return c;const p=f&&l?c+1e3:c,g=Math.max(n.parentId||f&&n.selected?n.internals.z:0,a.parentId||f&&a.selected?a.internals.z:0);return p+g}function SL({sourceNode:n,targetNode:a,width:l,height:c,transform:f}){const v=Qm(Zm(n),Zm(a));v.x===v.x2&&(v.x2+=1),v.y===v.y2&&(v.y2+=1);const p={x:-f[0]/f[2],y:-f[1]/f[2],width:l/f[2],height:c/f[2]};return ih(p,Jm(v))>0}const CL=({source:n,sourceHandle:a,target:l,targetHandle:c})=>`xy-edge__${n}${a||""}-${l}${c||""}`,EL=(n,a)=>a.some(l=>l.source===n.source&&l.target===n.target&&(l.sourceHandle===n.sourceHandle||!l.sourceHandle&&!n.sourceHandle)&&(l.targetHandle===n.targetHandle||!l.targetHandle&&!n.targetHandle)),XE=(n,a,l={})=>{if(!n.source||!n.target)return UE("006",Oi.error006()),a;const c=l.getEdgeId||CL;let f;return AE(n)?f={...n}:f={...n,id:c(n)},EL(f,a)?a:(f.sourceHandle===null&&delete f.sourceHandle,f.targetHandle===null&&delete f.targetHandle,a.concat(f))};function QE({sourceX:n,sourceY:a,targetX:l,targetY:c}){const[f,v,p,g]=KE({sourceX:n,sourceY:a,targetX:l,targetY:c});return[`M ${n},${a}L ${l},${c}`,f,v,p,g]}const JE={[bt.Left]:{x:-1,y:0},[bt.Right]:{x:1,y:0},[bt.Top]:{x:0,y:-1},[bt.Bottom]:{x:0,y:1}},_L=({source:n,sourcePosition:a=bt.Bottom,target:l})=>a===bt.Left||a===bt.Right?n.x<l.x?{x:1,y:0}:{x:-1,y:0}:n.y<l.y?{x:0,y:1}:{x:0,y:-1},ZE=(n,a)=>Math.sqrt(Math.pow(a.x-n.x,2)+Math.pow(a.y-n.y,2));function TL({source:n,sourcePosition:a=bt.Bottom,target:l,targetPosition:c=bt.Top,center:f,offset:v,stepPosition:p}){const g=JE[a],x=JE[c],S={x:n.x+g.x*v,y:n.y+g.y*v},E={x:l.x+x.x*v,y:l.y+x.y*v},w=_L({source:S,sourcePosition:a,target:E}),_=w.x!==0?"x":"y",N=w[_];let D=[],R,j;const z={x:0,y:0},U={x:0,y:0},[,,L,$]=KE({sourceX:n.x,sourceY:n.y,targetX:l.x,targetY:l.y});if(g[_]*x[_]===-1){_==="x"?(R=f.x??S.x+(E.x-S.x)*p,j=f.y??(S.y+E.y)/2):(R=f.x??(S.x+E.x)/2,j=f.y??S.y+(E.y-S.y)*p);const I=[{x:R,y:S.y},{x:R,y:E.y}],q=[{x:S.x,y:j},{x:E.x,y:j}];g[_]===N?D=_==="x"?I:q:D=_==="x"?q:I}else{const I=[{x:S.x,y:E.y}],q=[{x:E.x,y:S.y}];if(_==="x"?D=g.x===N?q:I:D=g.y===N?I:q,a===c){const de=Math.abs(n[_]-l[_]);if(de<=v){const he=Math.min(v-1,v-de);g[_]===N?z[_]=(S[_]>n[_]?-1:1)*he:U[_]=(E[_]>l[_]?-1:1)*he}}if(a!==c){const de=_==="x"?"y":"x",he=g[_]===x[de],V=S[de]>E[de],ce=S[de]<E[de];(g[_]===1&&(!he&&V||he&&ce)||g[_]!==1&&(!he&&ce||he&&V))&&(D=_==="x"?I:q)}const ie={x:S.x+z.x,y:S.y+z.y},fe={x:E.x+U.x,y:E.y+U.y},Se=Math.max(Math.abs(ie.x-D[0].x),Math.abs(fe.x-D[0].x)),oe=Math.max(Math.abs(ie.y-D[0].y),Math.abs(fe.y-D[0].y));Se>=oe?(R=(ie.x+fe.x)/2,j=D[0].y):(R=D[0].x,j=(ie.y+fe.y)/2)}return[[n,{x:S.x+z.x,y:S.y+z.y},...D,{x:E.x+U.x,y:E.y+U.y},l],R,j,L,$]}function RL(n,a,l,c){const f=Math.min(ZE(n,a)/2,ZE(a,l)/2,c),{x:v,y:p}=a;if(n.x===v&&v===l.x||n.y===p&&p===l.y)return`L${v} ${p}`;if(n.y===p){const S=n.x<l.x?-1:1,E=n.y<l.y?1:-1;return`L ${v+f*S},${p}Q ${v},${p} ${v},${p+f*E}`}const g=n.x<l.x?1:-1,x=n.y<l.y?-1:1;return`L ${v},${p+f*x}Q ${v},${p} ${v+f*g},${p}`}function Jx({sourceX:n,sourceY:a,sourcePosition:l=bt.Bottom,targetX:c,targetY:f,targetPosition:v=bt.Top,borderRadius:p=5,centerX:g,centerY:x,offset:S=20,stepPosition:E=.5}){const[w,_,N,D,R]=TL({source:{x:n,y:a},sourcePosition:l,target:{x:c,y:f},targetPosition:v,center:{x:g,y:x},offset:S,stepPosition:E});return[w.reduce((z,U,L)=>{let $="";return L>0&&L<w.length-1?$=RL(w[L-1],U,w[L+1],p):$=`${L===0?"M":"L"}${U.x} ${U.y}`,z+=$,z},""),_,N,D,R]}function e_(n){var a;return n&&!!(n.internals.handleBounds||(a=n.handles)!=null&&a.length)&&!!(n.measured.width||n.width||n.initialWidth)}function kL(n){var w;const{sourceNode:a,targetNode:l}=n;if(!e_(a)||!e_(l))return null;const c=a.internals.handleBounds||t_(a.handles),f=l.internals.handleBounds||t_(l.handles),v=n_((c==null?void 0:c.source)??[],n.sourceHandle),p=n_(n.connectionMode===Pf.Strict?(f==null?void 0:f.target)??[]:((f==null?void 0:f.target)??[]).concat((f==null?void 0:f.source)??[]),n.targetHandle);if(!v||!p)return(w=n.onError)==null||w.call(n,"008",Oi.error008(v?"target":"source",{id:n.id,sourceHandle:n.sourceHandle,targetHandle:n.targetHandle})),null;const g=(v==null?void 0:v.position)||bt.Bottom,x=(p==null?void 0:p.position)||bt.Top,S=sc(a,v,g),E=sc(l,p,x);return{sourceX:S.x,sourceY:S.y,targetX:E.x,targetY:E.y,sourcePosition:g,targetPosition:x}}function t_(n){if(!n)return null;const a=[],l=[];for(const c of n)c.width=c.width??1,c.height=c.height??1,c.type==="source"?a.push(c):c.type==="target"&&l.push(c);return{source:a,target:l}}function sc(n,a,l=bt.Left,c=!1){const f=((a==null?void 0:a.x)??0)+n.internals.positionAbsolute.x,v=((a==null?void 0:a.y)??0)+n.internals.positionAbsolute.y,{width:p,height:g}=a??ns(n);if(c)return{x:f+p/2,y:v+g/2};switch((a==null?void 0:a.position)??l){case bt.Top:return{x:f+p/2,y:v};case bt.Right:return{x:f+p,y:v+g/2};case bt.Bottom:return{x:f+p/2,y:v+g};case bt.Left:return{x:f,y:v+g/2}}}function n_(n,a){return n&&(a?n.find(l=>l.id===a):n[0])||null}function Zx(n,a){return n?typeof n=="string"?n:`${a?`${a}__`:""}${Object.keys(n).sort().map(c=>`${c}=${n[c]}`).join("&")}`:""}function ML(n,{id:a,defaultColor:l,defaultMarkerStart:c,defaultMarkerEnd:f}){const v=new Set;return n.reduce((p,g)=>([g.markerStart||c,g.markerEnd||f].forEach(x=>{if(x&&typeof x=="object"){const S=Zx(x,a);v.has(S)||(p.push({id:S,color:x.color||l,...x}),v.add(S))}}),p),[]).sort((p,g)=>p.id.localeCompare(g.id))}const r_=1e3,NL=10,eb={nodeOrigin:[0,0],nodeExtent:th,elevateNodesOnSelect:!0,zIndexMode:"basic",defaults:{}},DL={...eb,checkEquality:!0};function tb(n,a){const l={...n};for(const c in a)a[c]!==void 0&&(l[c]=a[c]);return l}function AL(n,a,l){const c=tb(eb,l);for(const f of n.values())if(f.parentId)ab(f,n,a,c);else{const v=rh(f,c.nodeOrigin),p=If(f.extent)?f.extent:c.nodeExtent,g=lc(v,p,ns(f));f.internals.positionAbsolute=g}}function OL(n,a){if(!n.handles)return n.measured?a==null?void 0:a.internals.handleBounds:void 0;const l=[],c=[];for(const f of n.handles){const v={id:f.id,width:f.width??1,height:f.height??1,nodeId:n.id,x:f.x,y:f.y,position:f.position,type:f.type};f.type==="source"?l.push(v):f.type==="target"&&c.push(v)}return{source:l,target:c}}function nb(n){return n==="manual"}function rb(n,a,l,c={}){var S,E;const f=tb(DL,c),v={i:0},p=new Map(a),g=f!=null&&f.elevateNodesOnSelect&&!nb(f.zIndexMode)?r_:0;let x=n.length>0;a.clear(),l.clear();for(const w of n){let _=p.get(w.id);if(f.checkEquality&&w===(_==null?void 0:_.internals.userNode))a.set(w.id,_);else{const N=rh(w,f.nodeOrigin),D=If(w.extent)?w.extent:f.nodeExtent,R=lc(N,D,ns(w));_={...f.defaults,...w,measured:{width:(S=w.measured)==null?void 0:S.width,height:(E=w.measured)==null?void 0:E.height},internals:{positionAbsolute:R,handleBounds:OL(w,_),z:a_(w,g,f.zIndexMode),userNode:w}},a.set(w.id,_)}(_.measured===void 0||_.measured.width===void 0||_.measured.height===void 0)&&!_.hidden&&(x=!1),w.parentId&&ab(_,a,l,c,v)}return x}function LL(n,a){if(!n.parentId)return;const l=a.get(n.parentId);l?l.set(n.id,n):a.set(n.parentId,new Map([[n.id,n]]))}function ab(n,a,l,c,f){const{elevateNodesOnSelect:v,nodeOrigin:p,nodeExtent:g,zIndexMode:x}=tb(eb,c),S=n.parentId,E=a.get(S);if(!E){console.warn(`Parent node ${S} not found. Please make sure that parent nodes are in front of their child nodes in the nodes array.`);return}LL(n,l),f&&!E.parentId&&E.internals.rootParentIndex===void 0&&x==="auto"&&(E.internals.rootParentIndex=++f.i,E.internals.z=E.internals.z+f.i*NL),f&&E.internals.rootParentIndex!==void 0&&(f.i=E.internals.rootParentIndex);const w=v&&!nb(x)?r_:0,{x:_,y:N,z:D}=zL(n,E,p,g,w,x),{positionAbsolute:R}=n.internals,j=_!==R.x||N!==R.y;(j||D!==n.internals.z)&&a.set(n.id,{...n,internals:{...n.internals,positionAbsolute:j?{x:_,y:N}:R,z:D}})}function a_(n,a,l){const c=No(n.zIndex)?n.zIndex:0;return nb(l)?c:c+(n.selected?a:0)}function zL(n,a,l,c,f,v){const{x:p,y:g}=a.internals.positionAbsolute,x=ns(n),S=rh(n,l),E=If(n.extent)?lc(S,n.extent,x):S;let w=lc({x:p+E.x,y:g+E.y},c,x);n.extent==="parent"&&(w=LE(w,x,a));const _=a_(n,f,v),N=a.internals.z??0;return{x:w.x,y:w.y,z:N>=_?N+1:_}}function ib(n,a,l,c=[0,0]){var p;const f=[],v=new Map;for(const g of n){const x=a.get(g.parentId);if(!x)continue;const S=((p=v.get(g.parentId))==null?void 0:p.expandedRect)??Uf(x),E=PE(S,g.rect);v.set(g.parentId,{expandedRect:E,parent:x})}return v.size>0&&v.forEach(({expandedRect:g,parent:x},S)=>{var L;const E=x.internals.positionAbsolute,w=ns(x),_=x.origin??c,N=g.x<E.x?Math.round(Math.abs(E.x-g.x)):0,D=g.y<E.y?Math.round(Math.abs(E.y-g.y)):0,R=Math.max(w.width,Math.round(g.width)),j=Math.max(w.height,Math.round(g.height)),z=(R-w.width)*_[0],U=(j-w.height)*_[1];(N>0||D>0||z||U)&&(f.push({id:S,type:"position",position:{x:x.position.x-N+z,y:x.position.y-D+U}}),(L=l.get(S))==null||L.forEach($=>{n.some(H=>H.id===$.id)||f.push({id:$.id,type:"position",position:{x:$.position.x+N,y:$.position.y+D}})})),(w.width<g.width||w.height<g.height||N||D)&&f.push({id:S,type:"dimensions",setAttributes:!0,dimensions:{width:R+(N?_[0]*N-z:0),height:j+(D?_[1]*D-U:0)}})}),f}function jL(n,a,l,c,f,v,p){const g=c==null?void 0:c.querySelector(".xyflow__viewport");let x=!1;if(!g)return{changes:[],updatedInternals:x};const S=[],E=window.getComputedStyle(g),{m22:w}=new window.DOMMatrixReadOnly(E.transform),_=[];for(const N of n.values()){const D=a.get(N.id);if(!D)continue;if(D.hidden){a.set(D.id,{...D,internals:{...D.internals,handleBounds:void 0}}),x=!0;continue}const R=Qx(N.nodeElement),j=D.measured.width!==R.width||D.measured.height!==R.height;if(!!(R.width&&R.height&&(j||!D.internals.handleBounds||N.force))){const U=N.nodeElement.getBoundingClientRect(),L=If(D.extent)?D.extent:v;let{positionAbsolute:$}=D.internals;D.parentId&&D.extent==="parent"?$=LE($,R,a.get(D.parentId)):L&&($=lc($,L,R));const H={...D,measured:R,internals:{...D.internals,positionAbsolute:$,handleBounds:{source:YE("source",N.nodeElement,U,w,D.id),target:YE("target",N.nodeElement,U,w,D.id)}}};a.set(D.id,H),D.parentId&&ab(H,a,l,{nodeOrigin:f,zIndexMode:p}),x=!0,j&&(S.push({id:D.id,type:"dimensions",dimensions:R}),D.expandParent&&D.parentId&&_.push({id:D.id,parentId:D.parentId,rect:Uf(H,f)}))}}if(_.length>0){const N=ib(_,a,l,f);S.push(...N)}return{changes:S,updatedInternals:x}}async function PL({delta:n,panZoom:a,transform:l,translateExtent:c,width:f,height:v}){if(!a||!n.x&&!n.y)return Promise.resolve(!1);const p=await a.setViewportConstrained({x:l[0]+n.x,y:l[1]+n.y,zoom:l[2]},[[0,0],[f,v]],c),g=!!p&&(p.x!==l[0]||p.y!==l[1]||p.k!==l[2]);return Promise.resolve(g)}function i_(n,a,l,c,f,v){let p=f;const g=c.get(p)||new Map;c.set(p,g.set(l,a)),p=`${f}-${n}`;const x=c.get(p)||new Map;if(c.set(p,x.set(l,a)),v){p=`${f}-${n}-${v}`;const S=c.get(p)||new Map;c.set(p,S.set(l,a))}}function o_(n,a,l){n.clear(),a.clear();for(const c of l){const{source:f,target:v,sourceHandle:p=null,targetHandle:g=null}=c,x={edgeId:c.id,source:f,target:v,sourceHandle:p,targetHandle:g},S=`${f}-${p}--${v}-${g}`,E=`${v}-${g}--${f}-${p}`;i_("source",x,E,n,f,p),i_("target",x,S,n,v,g),a.set(c.id,c)}}function l_(n,a){if(!n.parentId)return!1;const l=a.get(n.parentId);return l?l.selected?!0:l_(l,a):!1}function s_(n,a,l){var f;let c=n;do{if((f=c==null?void 0:c.matches)!=null&&f.call(c,a))return!0;if(c===l)return!1;c=c==null?void 0:c.parentElement}while(c);return!1}function $L(n,a,l,c){const f=new Map;for(const[v,p]of n)if((p.selected||p.id===c)&&(!p.parentId||!l_(p,n))&&(p.draggable||a&&typeof p.draggable>"u")){const g=n.get(v);g&&f.set(v,{id:v,position:g.position||{x:0,y:0},distance:{x:l.x-g.internals.positionAbsolute.x,y:l.y-g.internals.positionAbsolute.y},extent:g.extent,parentId:g.parentId,origin:g.origin,expandParent:g.expandParent,internals:{positionAbsolute:g.internals.positionAbsolute||{x:0,y:0}},measured:{width:g.measured.width??0,height:g.measured.height??0}})}return f}function ob({nodeId:n,dragItems:a,nodeLookup:l,dragging:c=!0}){var p,g,x;const f=[];for(const[S,E]of a){const w=(p=l.get(S))==null?void 0:p.internals.userNode;w&&f.push({...w,position:E.position,dragging:c})}if(!n)return[f[0],f];const v=(g=l.get(n))==null?void 0:g.internals.userNode;return[v?{...v,position:((x=a.get(n))==null?void 0:x.position)||v.position,dragging:c}:f[0],f]}function UL({dragItems:n,snapGrid:a,x:l,y:c}){const f=n.values().next().value;if(!f)return null;const v={x:l-f.distance.x,y:c-f.distance.y},p=oh(v,a);return{x:p.x-v.x,y:p.y-v.y}}function FL({onNodeMouseDown:n,getStoreItems:a,onDragStart:l,onDrag:c,onDragStop:f}){let v={x:null,y:null},p=0,g=new Map,x=!1,S={x:0,y:0},E=null,w=!1,_=null,N=!1,D=!1,R=null;function j({noDragClassName:U,handleSelector:L,domNode:$,isSelectable:H,nodeId:I,nodeClickDistance:q=0}){_=Ai($);function ie({x:de,y:he}){const{nodeLookup:V,nodeExtent:ce,snapGrid:Z,snapToGrid:te,nodeOrigin:Y,onNodeDrag:J,onSelectionDrag:ne,onError:B,updateNodePositions:K}=a();v={x:de,y:he};let ke=!1;const Re=g.size>1,Oe=Re&&ce?Gx(ah(g)):null,$e=Re&&te?UL({dragItems:g,snapGrid:Z,x:de,y:he}):null;for(const[Ie,Te]of g){if(!V.has(Ie))continue;let Ne={x:de-Te.distance.x,y:he-Te.distance.y};te&&(Ne=$e?{x:Math.round(Ne.x+$e.x),y:Math.round(Ne.y+$e.y)}:oh(Ne,Z));let Ve=null;if(Re&&ce&&!Te.extent&&Oe){const{positionAbsolute:Xe}=Te.internals,ht=Xe.x-Oe.x+ce[0][0],Nt=Xe.x+Te.measured.width-Oe.x2+ce[1][0],vt=Xe.y-Oe.y+ce[0][1],Jt=Xe.y+Te.measured.height-Oe.y2+ce[1][1];Ve=[[ht,vt],[Nt,Jt]]}const{position:Ke,positionAbsolute:Ye}=OE({nodeId:Ie,nextPosition:Ne,nodeLookup:V,nodeExtent:Ve||ce,nodeOrigin:Y,onError:B});ke=ke||Te.position.x!==Ke.x||Te.position.y!==Ke.y,Te.position=Ke,Te.internals.positionAbsolute=Ye}if(D=D||ke,!!ke&&(K(g,!0),R&&(c||J||!I&&ne))){const[Ie,Te]=ob({nodeId:I,dragItems:g,nodeLookup:V});c==null||c(R,g,Ie,Te),J==null||J(R,Ie,Te),I||ne==null||ne(R,Te)}}async function fe(){if(!E)return;const{transform:de,panBy:he,autoPanSpeed:V,autoPanOnNodeDrag:ce}=a();if(!ce){x=!1,cancelAnimationFrame(p);return}const[Z,te]=jE(S,E,V);(Z!==0||te!==0)&&(v.x=(v.x??0)-Z/de[2],v.y=(v.y??0)-te/de[2],await he({x:Z,y:te})&&ie(v)),p=requestAnimationFrame(fe)}function Se(de){var Re;const{nodeLookup:he,multiSelectionActive:V,nodesDraggable:ce,transform:Z,snapGrid:te,snapToGrid:Y,selectNodesOnDrag:J,onNodeDragStart:ne,onSelectionDragStart:B,unselectNodesAndEdges:K}=a();w=!0,(!J||!H)&&!V&&I&&((Re=he.get(I))!=null&&Re.selected||K()),H&&J&&I&&(n==null||n(I));const ke=uh(de.sourceEvent,{transform:Z,snapGrid:te,snapToGrid:Y,containerBounds:E});if(v=ke,g=$L(he,ce,ke,I),g.size>0&&(l||ne||!I&&B)){const[Oe,$e]=ob({nodeId:I,dragItems:g,nodeLookup:he});l==null||l(de.sourceEvent,g,Oe,$e),ne==null||ne(de.sourceEvent,Oe,$e),I||B==null||B(de.sourceEvent,$e)}}const oe=XC().clickDistance(q).on("start",de=>{const{domNode:he,nodeDragThreshold:V,transform:ce,snapGrid:Z,snapToGrid:te}=a();E=(he==null?void 0:he.getBoundingClientRect())||null,N=!1,D=!1,R=de.sourceEvent,V===0&&Se(de),v=uh(de.sourceEvent,{transform:ce,snapGrid:Z,snapToGrid:te,containerBounds:E}),S=Do(de.sourceEvent,E)}).on("drag",de=>{const{autoPanOnNodeDrag:he,transform:V,snapGrid:ce,snapToGrid:Z,nodeDragThreshold:te,nodeLookup:Y}=a(),J=uh(de.sourceEvent,{transform:V,snapGrid:ce,snapToGrid:Z,containerBounds:E});if(R=de.sourceEvent,(de.sourceEvent.type==="touchmove"&&de.sourceEvent.touches.length>1||I&&!Y.has(I))&&(N=!0),!N){if(!x&&he&&w&&(x=!0,fe()),!w){const ne=Do(de.sourceEvent,E),B=ne.x-S.x,K=ne.y-S.y;Math.sqrt(B*B+K*K)>te&&Se(de)}(v.x!==J.xSnapped||v.y!==J.ySnapped)&&g&&w&&(S=Do(de.sourceEvent,E),ie(J))}}).on("end",de=>{if(!(!w||N)&&(x=!1,w=!1,cancelAnimationFrame(p),g.size>0)){const{nodeLookup:he,updateNodePositions:V,onNodeDragStop:ce,onSelectionDragStop:Z}=a();if(D&&(V(g,!1),D=!1),f||ce||!I&&Z){const[te,Y]=ob({nodeId:I,dragItems:g,nodeLookup:he,dragging:!1});f==null||f(de.sourceEvent,g,te,Y),ce==null||ce(de.sourceEvent,te,Y),I||Z==null||Z(de.sourceEvent,Y)}}}).filter(de=>{const he=de.target;return!de.button&&(!U||!s_(he,`.${U}`,$))&&(!L||s_(he,L,$))});_.call(oe)}function z(){_==null||_.on(".drag",null)}return{update:j,destroy:z}}function IL(n,a,l){const c=[],f={x:n.x-l,y:n.y-l,width:l*2,height:l*2};for(const v of a.values())ih(f,Uf(v))>0&&c.push(v);return c}const BL=250;function HL(n,a,l,c){var g,x;let f=[],v=1/0;const p=IL(n,l,a+BL);for(const S of p){const E=[...((g=S.internals.handleBounds)==null?void 0:g.source)??[],...((x=S.internals.handleBounds)==null?void 0:x.target)??[]];for(const w of E){if(c.nodeId===w.nodeId&&c.type===w.type&&c.id===w.id)continue;const{x:_,y:N}=sc(S,w,w.position,!0),D=Math.sqrt(Math.pow(_-n.x,2)+Math.pow(N-n.y,2));D>a||(D<v?(f=[{...w,x:_,y:N}],v=D):D===v&&f.push({...w,x:_,y:N}))}}if(!f.length)return null;if(f.length>1){const S=c.type==="source"?"target":"source";return f.find(E=>E.type===S)??f[0]}return f[0]}function u_(n,a,l,c,f,v=!1){var S,E,w;const p=c.get(n);if(!p)return null;const g=f==="strict"?(S=p.internals.handleBounds)==null?void 0:S[a]:[...((E=p.internals.handleBounds)==null?void 0:E.source)??[],...((w=p.internals.handleBounds)==null?void 0:w.target)??[]],x=(l?g==null?void 0:g.find(_=>_.id===l):g==null?void 0:g[0])??null;return x&&v?{...x,...sc(p,x,x.position,!0)}:x}function c_(n,a){return n||(a!=null&&a.classList.contains("target")?"target":a!=null&&a.classList.contains("source")?"source":null)}function VL(n,a){let l=null;return a?l=!0:n&&!a&&(l=!1),l}const f_=()=>!0;function YL(n,{connectionMode:a,connectionRadius:l,handleId:c,nodeId:f,edgeUpdaterType:v,isTarget:p,domNode:g,nodeLookup:x,lib:S,autoPanOnConnect:E,flowId:w,panBy:_,cancelConnection:N,onConnectStart:D,onConnect:R,onConnectEnd:j,isValidConnection:z=f_,onReconnectEnd:U,updateConnection:L,getTransform:$,getFromHandle:H,autoPanSpeed:I,dragThreshold:q=1,handleDomNode:ie}){const fe=BE(n.target);let Se=0,oe;const{x:de,y:he}=Do(n),V=c_(v,ie),ce=g==null?void 0:g.getBoundingClientRect();let Z=!1;if(!ce||!V)return;const te=u_(f,V,c,x,a);if(!te)return;let Y=Do(n,ce),J=!1,ne=null,B=!1,K=null;function ke(){if(!E||!ce)return;const[Ke,Ye]=jE(Y,ce,I);_({x:Ke,y:Ye}),Se=requestAnimationFrame(ke)}const Re={...te,nodeId:f,type:V,position:te.position},Oe=x.get(f);let Ie={inProgress:!0,isValid:null,from:sc(Oe,Re,bt.Left,!0),fromHandle:Re,fromPosition:Re.position,fromNode:Oe,to:Y,toHandle:null,toPosition:NE[Re.position],toNode:null,pointer:Y};function Te(){Z=!0,L(Ie),D==null||D(n,{nodeId:f,handleId:c,handleType:V})}q===0&&Te();function Ne(Ke){if(!Z){const{x:Jt,y:nr}=Do(Ke),Dn=Jt-de,qt=nr-he;if(!(Dn*Dn+qt*qt>q*q))return;Te()}if(!H()||!Re){Ve(Ke);return}const Ye=$();Y=Do(Ke,ce),oe=HL(lh(Y,Ye,!1,[1,1]),l,x,Re),J||(ke(),J=!0);const Xe=d_(Ke,{handle:oe,connectionMode:a,fromNodeId:f,fromHandleId:c,fromType:p?"target":"source",isValidConnection:z,doc:fe,lib:S,flowId:w,nodeLookup:x});K=Xe.handleDomNode,ne=Xe.connection,B=VL(!!oe,Xe.isValid);const ht=x.get(f),Nt=ht?sc(ht,Re,bt.Left,!0):Ie.from,vt={...Ie,from:Nt,isValid:B,to:Xe.toHandle&&B?eg({x:Xe.toHandle.x,y:Xe.toHandle.y},Ye):Y,toHandle:Xe.toHandle,toPosition:B&&Xe.toHandle?Xe.toHandle.position:NE[Re.position],toNode:Xe.toHandle?x.get(Xe.toHandle.nodeId):null,pointer:Y};L(vt),Ie=vt}function Ve(Ke){if(!("touches"in Ke&&Ke.touches.length>0)){if(Z){(oe||K)&&ne&&B&&(R==null||R(ne));const{inProgress:Ye,...Xe}=Ie,ht={...Xe,toPosition:Ie.toHandle?Ie.toPosition:null};j==null||j(Ke,ht),v&&(U==null||U(Ke,ht))}N(),cancelAnimationFrame(Se),J=!1,B=!1,ne=null,K=null,fe.removeEventListener("mousemove",Ne),fe.removeEventListener("mouseup",Ve),fe.removeEventListener("touchmove",Ne),fe.removeEventListener("touchend",Ve)}}fe.addEventListener("mousemove",Ne),fe.addEventListener("mouseup",Ve),fe.addEventListener("touchmove",Ne),fe.addEventListener("touchend",Ve)}function d_(n,{handle:a,connectionMode:l,fromNodeId:c,fromHandleId:f,fromType:v,doc:p,lib:g,flowId:x,isValidConnection:S=f_,nodeLookup:E}){const w=v==="target",_=a?p.querySelector(`.${g}-flow__handle[data-id="${x}-${a==null?void 0:a.nodeId}-${a==null?void 0:a.id}-${a==null?void 0:a.type}"]`):null,{x:N,y:D}=Do(n),R=p.elementFromPoint(N,D),j=R!=null&&R.classList.contains(`${g}-flow__handle`)?R:_,z={handleDomNode:j,isValid:!1,connection:null,toHandle:null};if(j){const U=c_(void 0,j),L=j.getAttribute("data-nodeid"),$=j.getAttribute("data-handleid"),H=j.classList.contains("connectable"),I=j.classList.contains("connectableend");if(!L||!U)return z;const q={source:w?L:c,sourceHandle:w?$:f,target:w?c:L,targetHandle:w?f:$};z.connection=q;const fe=H&&I&&(l===Pf.Strict?w&&U==="source"||!w&&U==="target":L!==c||$!==f);z.isValid=fe&&S(q),z.toHandle=u_(L,U,$,E,l,!0)}return z}const lb={onPointerDown:YL,isValid:d_};function WL({domNode:n,panZoom:a,getTransform:l,getViewScale:c}){const f=Ai(n);function v({translateExtent:g,width:x,height:S,zoomStep:E=1,pannable:w=!0,zoomable:_=!0,inversePan:N=!1}){const D=L=>{if(L.sourceEvent.type!=="wheel"||!a)return;const $=l(),H=L.sourceEvent.ctrlKey&&sh()?10:1,I=-L.sourceEvent.deltaY*(L.sourceEvent.deltaMode===1?.05:L.sourceEvent.deltaMode?1:.002)*E,q=$[2]*Math.pow(2,I*H);a.scaleTo(q)};let R=[0,0];const j=L=>{(L.sourceEvent.type==="mousedown"||L.sourceEvent.type==="touchstart")&&(R=[L.sourceEvent.clientX??L.sourceEvent.touches[0].clientX,L.sourceEvent.clientY??L.sourceEvent.touches[0].clientY])},z=L=>{const $=l();if(L.sourceEvent.type!=="mousemove"&&L.sourceEvent.type!=="touchmove"||!a)return;const H=[L.sourceEvent.clientX??L.sourceEvent.touches[0].clientX,L.sourceEvent.clientY??L.sourceEvent.touches[0].clientY],I=[H[0]-R[0],H[1]-R[1]];R=H;const q=c()*Math.max($[2],Math.log($[2]))*(N?-1:1),ie={x:$[0]-I[0]*q,y:$[1]-I[1]*q},fe=[[0,0],[x,S]];a.setViewportConstrained({x:ie.x,y:ie.y,zoom:$[2]},fe,g)},U=TE().on("start",j).on("zoom",w?z:null).on("zoom.wheel",_?D:null);f.call(U,{})}function p(){f.on("zoom",null)}return{update:v,destroy:p,pointer:Ro}}const ng=n=>({x:n.x,y:n.y,zoom:n.k}),sb=({x:n,y:a,zoom:l})=>Km.translate(n,a).scale(l),Bf=(n,a)=>n.target.closest(`.${a}`),p_=(n,a)=>a===2&&Array.isArray(n)&&n.includes(2),qL=n=>((n*=2)<=1?n*n*n:(n-=2)*n*n+2)/2,ub=(n,a=0,l=qL,c=()=>{})=>{const f=typeof a=="number"&&a>0;return f||c(),f?n.transition().duration(a).ease(l).on("end",c):n},h_=n=>{const a=n.ctrlKey&&sh()?10:1;return-n.deltaY*(n.deltaMode===1?.05:n.deltaMode?1:.002)*a};function GL({zoomPanValues:n,noWheelClassName:a,d3Selection:l,d3Zoom:c,panOnScrollMode:f,panOnScrollSpeed:v,zoomOnPinch:p,onPanZoomStart:g,onPanZoom:x,onPanZoomEnd:S}){return E=>{if(Bf(E,a))return E.ctrlKey&&E.preventDefault(),!1;E.preventDefault(),E.stopImmediatePropagation();const w=l.property("__zoom").k||1;if(E.ctrlKey&&p){const j=Ro(E),z=h_(E),U=w*Math.pow(2,z);c.scaleTo(l,U,j,E);return}const _=E.deltaMode===1?20:1;let N=f===oc.Vertical?0:E.deltaX*_,D=f===oc.Horizontal?0:E.deltaY*_;!sh()&&E.shiftKey&&f!==oc.Vertical&&(N=E.deltaY*_,D=0),c.translateBy(l,-(N/w)*v,-(D/w)*v,{internal:!0});const R=ng(l.property("__zoom"));clearTimeout(n.panScrollTimeout),n.isPanScrolling?(x==null||x(E,R),n.panScrollTimeout=setTimeout(()=>{S==null||S(E,R),n.isPanScrolling=!1},150)):(n.isPanScrolling=!0,g==null||g(E,R))}}function KL({noWheelClassName:n,preventScrolling:a,d3ZoomHandler:l}){return function(c,f){const v=c.type==="wheel",p=!a&&v&&!c.ctrlKey,g=Bf(c,n);if(c.ctrlKey&&v&&g&&c.preventDefault(),p||g)return null;c.preventDefault(),l.call(this,c,f)}}function XL({zoomPanValues:n,onDraggingChange:a,onPanZoomStart:l}){return c=>{var v,p,g;if((v=c.sourceEvent)!=null&&v.internal)return;const f=ng(c.transform);n.mouseButton=((p=c.sourceEvent)==null?void 0:p.button)||0,n.isZoomingOrPanning=!0,n.prevViewport=f,((g=c.sourceEvent)==null?void 0:g.type)==="mousedown"&&a(!0),l&&(l==null||l(c.sourceEvent,f))}}function QL({zoomPanValues:n,panOnDrag:a,onPaneContextMenu:l,onTransformChange:c,onPanZoom:f}){return v=>{var p,g;n.usedRightMouseButton=!!(l&&p_(a,n.mouseButton??0)),(p=v.sourceEvent)!=null&&p.sync||c([v.transform.x,v.transform.y,v.transform.k]),f&&!((g=v.sourceEvent)!=null&&g.internal)&&(f==null||f(v.sourceEvent,ng(v.transform)))}}function JL({zoomPanValues:n,panOnDrag:a,panOnScroll:l,onDraggingChange:c,onPanZoomEnd:f,onPaneContextMenu:v}){return p=>{var g;if(!((g=p.sourceEvent)!=null&&g.internal)&&(n.isZoomingOrPanning=!1,v&&p_(a,n.mouseButton??0)&&!n.usedRightMouseButton&&p.sourceEvent&&v(p.sourceEvent),n.usedRightMouseButton=!1,c(!1),f)){const x=ng(p.transform);n.prevViewport=x,clearTimeout(n.timerId),n.timerId=setTimeout(()=>{f==null||f(p.sourceEvent,x)},l?150:0)}}}function ZL({zoomActivationKeyPressed:n,zoomOnScroll:a,zoomOnPinch:l,panOnDrag:c,panOnScroll:f,zoomOnDoubleClick:v,userSelectionActive:p,noWheelClassName:g,noPanClassName:x,lib:S,connectionInProgress:E}){return w=>{var j;const _=n||a,N=l&&w.ctrlKey,D=w.type==="wheel";if(w.button===1&&w.type==="mousedown"&&(Bf(w,`${S}-flow__node`)||Bf(w,`${S}-flow__edge`)))return!0;if(!c&&!_&&!f&&!v&&!l||p||E&&!D||Bf(w,g)&&D||Bf(w,x)&&(!D||f&&D&&!n)||!l&&w.ctrlKey&&D)return!1;if(!l&&w.type==="touchstart"&&((j=w.touches)==null?void 0:j.length)>1)return w.preventDefault(),!1;if(!_&&!f&&!N&&D||!c&&(w.type==="mousedown"||w.type==="touchstart")||Array.isArray(c)&&!c.includes(w.button)&&w.type==="mousedown")return!1;const R=Array.isArray(c)&&c.includes(w.button)||!w.button||w.button<=1;return(!w.ctrlKey||D)&&R}}function ez({domNode:n,minZoom:a,maxZoom:l,translateExtent:c,viewport:f,onPanZoom:v,onPanZoomStart:p,onPanZoomEnd:g,onDraggingChange:x}){const S={isZoomingOrPanning:!1,usedRightMouseButton:!1,prevViewport:{},mouseButton:0,timerId:void 0,panScrollTimeout:void 0,isPanScrolling:!1},E=n.getBoundingClientRect(),w=TE().scaleExtent([a,l]).translateExtent(c),_=Ai(n).call(w);U({x:f.x,y:f.y,zoom:$f(f.zoom,a,l)},[[0,0],[E.width,E.height]],c);const N=_.on("wheel.zoom"),D=_.on("dblclick.zoom");w.wheelDelta(h_);function R(oe,de){return _?new Promise(he=>{w==null||w.interpolate((de==null?void 0:de.interpolate)==="linear"?Kp:Um).transform(ub(_,de==null?void 0:de.duration,de==null?void 0:de.ease,()=>he(!0)),oe)}):Promise.resolve(!1)}function j({noWheelClassName:oe,noPanClassName:de,onPaneContextMenu:he,userSelectionActive:V,panOnScroll:ce,panOnDrag:Z,panOnScrollMode:te,panOnScrollSpeed:Y,preventScrolling:J,zoomOnPinch:ne,zoomOnScroll:B,zoomOnDoubleClick:K,zoomActivationKeyPressed:ke,lib:Re,onTransformChange:Oe,connectionInProgress:$e,paneClickDistance:Ie,selectionOnDrag:Te}){V&&!S.isZoomingOrPanning&&z();const Ne=ce&&!ke&&!V;w.clickDistance(Te?1/0:!No(Ie)||Ie<0?0:Ie);const Ve=Ne?GL({zoomPanValues:S,noWheelClassName:oe,d3Selection:_,d3Zoom:w,panOnScrollMode:te,panOnScrollSpeed:Y,zoomOnPinch:ne,onPanZoomStart:p,onPanZoom:v,onPanZoomEnd:g}):KL({noWheelClassName:oe,preventScrolling:J,d3ZoomHandler:N});if(_.on("wheel.zoom",Ve,{passive:!1}),!V){const Ye=XL({zoomPanValues:S,onDraggingChange:x,onPanZoomStart:p});w.on("start",Ye);const Xe=QL({zoomPanValues:S,panOnDrag:Z,onPaneContextMenu:!!he,onPanZoom:v,onTransformChange:Oe});w.on("zoom",Xe);const ht=JL({zoomPanValues:S,panOnDrag:Z,panOnScroll:ce,onPaneContextMenu:he,onPanZoomEnd:g,onDraggingChange:x});w.on("end",ht)}const Ke=ZL({zoomActivationKeyPressed:ke,panOnDrag:Z,zoomOnScroll:B,panOnScroll:ce,zoomOnDoubleClick:K,zoomOnPinch:ne,userSelectionActive:V,noPanClassName:de,noWheelClassName:oe,lib:Re,connectionInProgress:$e});w.filter(Ke),K?_.on("dblclick.zoom",D):_.on("dblclick.zoom",null)}function z(){w.on("zoom",null)}async function U(oe,de,he){const V=sb(oe),ce=w==null?void 0:w.constrain()(V,de,he);return ce&&await R(ce),new Promise(Z=>Z(ce))}async function L(oe,de){const he=sb(oe);return await R(he,de),new Promise(V=>V(he))}function $(oe){if(_){const de=sb(oe),he=_.property("__zoom");(he.k!==oe.zoom||he.x!==oe.x||he.y!==oe.y)&&(w==null||w.transform(_,de,null,{sync:!0}))}}function H(){const oe=_?EE(_.node()):{x:0,y:0,k:1};return{x:oe.x,y:oe.y,zoom:oe.k}}function I(oe,de){return _?new Promise(he=>{w==null||w.interpolate((de==null?void 0:de.interpolate)==="linear"?Kp:Um).scaleTo(ub(_,de==null?void 0:de.duration,de==null?void 0:de.ease,()=>he(!0)),oe)}):Promise.resolve(!1)}function q(oe,de){return _?new Promise(he=>{w==null||w.interpolate((de==null?void 0:de.interpolate)==="linear"?Kp:Um).scaleBy(ub(_,de==null?void 0:de.duration,de==null?void 0:de.ease,()=>he(!0)),oe)}):Promise.resolve(!1)}function ie(oe){w==null||w.scaleExtent(oe)}function fe(oe){w==null||w.translateExtent(oe)}function Se(oe){const de=!No(oe)||oe<0?0:oe;w==null||w.clickDistance(de)}return{update:j,destroy:z,setViewport:L,setViewportConstrained:U,getViewport:H,scaleTo:I,scaleBy:q,setScaleExtent:ie,setTranslateExtent:fe,syncViewport:$,setClickDistance:Se}}var Hf;(function(n){n.Line="line",n.Handle="handle"})(Hf||(Hf={}));function tz({width:n,prevWidth:a,height:l,prevHeight:c,affectsX:f,affectsY:v}){const p=n-a,g=l-c,x=[p>0?1:p<0?-1:0,g>0?1:g<0?-1:0];return p&&f&&(x[0]=x[0]*-1),g&&v&&(x[1]=x[1]*-1),x}function v_(n){const a=n.includes("right")||n.includes("left"),l=n.includes("bottom")||n.includes("top"),c=n.includes("left"),f=n.includes("top");return{isHorizontal:a,isVertical:l,affectsX:c,affectsY:f}}function Qs(n,a){return Math.max(0,a-n)}function Js(n,a){return Math.max(0,n-a)}function rg(n,a,l){return Math.max(0,a-n,n-l)}function m_(n,a){return n?!a:a}function nz(n,a,l,c,f,v,p,g){let{affectsX:x,affectsY:S}=a;const{isHorizontal:E,isVertical:w}=a,_=E&&w,{xSnapped:N,ySnapped:D}=l,{minWidth:R,maxWidth:j,minHeight:z,maxHeight:U}=c,{x:L,y:$,width:H,height:I,aspectRatio:q}=n;let ie=Math.floor(E?N-n.pointerX:0),fe=Math.floor(w?D-n.pointerY:0);const Se=H+(x?-ie:ie),oe=I+(S?-fe:fe),de=-v[0]*H,he=-v[1]*I;let V=rg(Se,R,j),ce=rg(oe,z,U);if(p){let Y=0,J=0;x&&ie<0?Y=Qs(L+ie+de,p[0][0]):!x&&ie>0&&(Y=Js(L+Se+de,p[1][0])),S&&fe<0?J=Qs($+fe+he,p[0][1]):!S&&fe>0&&(J=Js($+oe+he,p[1][1])),V=Math.max(V,Y),ce=Math.max(ce,J)}if(g){let Y=0,J=0;x&&ie>0?Y=Js(L+ie,g[0][0]):!x&&ie<0&&(Y=Qs(L+Se,g[1][0])),S&&fe>0?J=Js($+fe,g[0][1]):!S&&fe<0&&(J=Qs($+oe,g[1][1])),V=Math.max(V,Y),ce=Math.max(ce,J)}if(f){if(E){const Y=rg(Se/q,z,U)*q;if(V=Math.max(V,Y),p){let J=0;!x&&!S||x&&!S&&_?J=Js($+he+Se/q,p[1][1])*q:J=Qs($+he+(x?ie:-ie)/q,p[0][1])*q,V=Math.max(V,J)}if(g){let J=0;!x&&!S||x&&!S&&_?J=Qs($+Se/q,g[1][1])*q:J=Js($+(x?ie:-ie)/q,g[0][1])*q,V=Math.max(V,J)}}if(w){const Y=rg(oe*q,R,j)/q;if(ce=Math.max(ce,Y),p){let J=0;!x&&!S||S&&!x&&_?J=Js(L+oe*q+de,p[1][0])/q:J=Qs(L+(S?fe:-fe)*q+de,p[0][0])/q,ce=Math.max(ce,J)}if(g){let J=0;!x&&!S||S&&!x&&_?J=Qs(L+oe*q,g[1][0])/q:J=Js(L+(S?fe:-fe)*q,g[0][0])/q,ce=Math.max(ce,J)}}}fe=fe+(fe<0?ce:-ce),ie=ie+(ie<0?V:-V),f&&(_?Se>oe*q?fe=(m_(x,S)?-ie:ie)/q:ie=(m_(x,S)?-fe:fe)*q:E?(fe=ie/q,S=x):(ie=fe*q,x=S));const Z=x?L+ie:L,te=S?$+fe:$;return{width:H+(x?-ie:ie),height:I+(S?-fe:fe),x:v[0]*ie*(x?-1:1)+Z,y:v[1]*fe*(S?-1:1)+te}}const g_={width:0,height:0,x:0,y:0},rz={...g_,pointerX:0,pointerY:0,aspectRatio:1};function az(n){return[[0,0],[n.measured.width,n.measured.height]]}function iz(n,a,l){const c=a.position.x+n.position.x,f=a.position.y+n.position.y,v=n.measured.width??0,p=n.measured.height??0,g=l[0]*v,x=l[1]*p;return[[c-g,f-x],[c+v-g,f+p-x]]}function oz({domNode:n,nodeId:a,getStoreItems:l,onChange:c,onEnd:f}){const v=Ai(n);let p={controlDirection:v_("bottom-right"),boundaries:{minWidth:0,minHeight:0,maxWidth:Number.MAX_VALUE,maxHeight:Number.MAX_VALUE},resizeDirection:void 0,keepAspectRatio:!1};function g({controlPosition:S,boundaries:E,keepAspectRatio:w,resizeDirection:_,onResizeStart:N,onResize:D,onResizeEnd:R,shouldResize:j}){let z={...g_},U={...rz};p={boundaries:E,resizeDirection:_,keepAspectRatio:w,controlDirection:v_(S)};let L,$=null,H=[],I,q,ie,fe=!1;const Se=XC().on("start",oe=>{const{nodeLookup:de,transform:he,snapGrid:V,snapToGrid:ce,nodeOrigin:Z,paneDomNode:te}=l();if(L=de.get(a),!L)return;$=(te==null?void 0:te.getBoundingClientRect())??null;const{xSnapped:Y,ySnapped:J}=uh(oe.sourceEvent,{transform:he,snapGrid:V,snapToGrid:ce,containerBounds:$});z={width:L.measured.width??0,height:L.measured.height??0,x:L.position.x??0,y:L.position.y??0},U={...z,pointerX:Y,pointerY:J,aspectRatio:z.width/z.height},I=void 0,L.parentId&&(L.extent==="parent"||L.expandParent)&&(I=de.get(L.parentId),q=I&&L.extent==="parent"?az(I):void 0),H=[],ie=void 0;for(const[ne,B]of de)if(B.parentId===a&&(H.push({id:ne,position:{...B.position},extent:B.extent}),B.extent==="parent"||B.expandParent)){const K=iz(B,L,B.origin??Z);ie?ie=[[Math.min(K[0][0],ie[0][0]),Math.min(K[0][1],ie[0][1])],[Math.max(K[1][0],ie[1][0]),Math.max(K[1][1],ie[1][1])]]:ie=K}N==null||N(oe,{...z})}).on("drag",oe=>{const{transform:de,snapGrid:he,snapToGrid:V,nodeOrigin:ce}=l(),Z=uh(oe.sourceEvent,{transform:de,snapGrid:he,snapToGrid:V,containerBounds:$}),te=[];if(!L)return;const{x:Y,y:J,width:ne,height:B}=z,K={},ke=L.origin??ce,{width:Re,height:Oe,x:$e,y:Ie}=nz(U,p.controlDirection,Z,p.boundaries,p.keepAspectRatio,ke,q,ie),Te=Re!==ne,Ne=Oe!==B,Ve=$e!==Y&&Te,Ke=Ie!==J&&Ne;if(!Ve&&!Ke&&!Te&&!Ne)return;if((Ve||Ke||ke[0]===1||ke[1]===1)&&(K.x=Ve?$e:z.x,K.y=Ke?Ie:z.y,z.x=K.x,z.y=K.y,H.length>0)){const Nt=$e-Y,vt=Ie-J;for(const Jt of H)Jt.position={x:Jt.position.x-Nt+ke[0]*(Re-ne),y:Jt.position.y-vt+ke[1]*(Oe-B)},te.push(Jt)}if((Te||Ne)&&(K.width=Te&&(!p.resizeDirection||p.resizeDirection==="horizontal")?Re:z.width,K.height=Ne&&(!p.resizeDirection||p.resizeDirection==="vertical")?Oe:z.height,z.width=K.width,z.height=K.height),I&&L.expandParent){const Nt=ke[0]*(K.width??0);K.x&&K.x<Nt&&(z.x=Nt,U.x=U.x-(K.x-Nt));const vt=ke[1]*(K.height??0);K.y&&K.y<vt&&(z.y=vt,U.y=U.y-(K.y-vt))}const Ye=tz({width:z.width,prevWidth:ne,height:z.height,prevHeight:B,affectsX:p.controlDirection.affectsX,affectsY:p.controlDirection.affectsY}),Xe={...z,direction:Ye};(j==null?void 0:j(oe,Xe))!==!1&&(fe=!0,D==null||D(oe,Xe),c(K,te))}).on("end",oe=>{fe&&(R==null||R(oe,{...z}),f==null||f({...z}),fe=!1)});v.call(Se)}function x(){v.on(".drag",null)}return{update:g,destroy:x}}var ag={exports:{}},cb={},ig={exports:{}},fb={};/**
|
|
292
|
+
* @license React
|
|
293
|
+
* use-sync-external-store-shim.production.js
|
|
294
|
+
*
|
|
295
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
296
|
+
*
|
|
297
|
+
* This source code is licensed under the MIT license found in the
|
|
298
|
+
* LICENSE file in the root directory of this source tree.
|
|
299
|
+
*/var y_;function lz(){if(y_)return fb;y_=1;var n=Jl();function a(w,_){return w===_&&(w!==0||1/w===1/_)||w!==w&&_!==_}var l=typeof Object.is=="function"?Object.is:a,c=n.useState,f=n.useEffect,v=n.useLayoutEffect,p=n.useDebugValue;function g(w,_){var N=_(),D=c({inst:{value:N,getSnapshot:_}}),R=D[0].inst,j=D[1];return v(function(){R.value=N,R.getSnapshot=_,x(R)&&j({inst:R})},[w,N,_]),f(function(){return x(R)&&j({inst:R}),w(function(){x(R)&&j({inst:R})})},[w]),p(N),N}function x(w){var _=w.getSnapshot;w=w.value;try{var N=_();return!l(w,N)}catch{return!0}}function S(w,_){return _()}var E=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?S:g;return fb.useSyncExternalStore=n.useSyncExternalStore!==void 0?n.useSyncExternalStore:E,fb}var db={};/**
|
|
300
|
+
* @license React
|
|
301
|
+
* use-sync-external-store-shim.development.js
|
|
302
|
+
*
|
|
303
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
304
|
+
*
|
|
305
|
+
* This source code is licensed under the MIT license found in the
|
|
306
|
+
* LICENSE file in the root directory of this source tree.
|
|
307
|
+
*/var x_;function sz(){return x_||(x_=1,process.env.NODE_ENV!=="production"&&(function(){function n(N,D){return N===D&&(N!==0||1/N===1/D)||N!==N&&D!==D}function a(N,D){E||f.startTransition===void 0||(E=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var R=D();if(!w){var j=D();v(R,j)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),w=!0)}j=p({inst:{value:R,getSnapshot:D}});var z=j[0].inst,U=j[1];return x(function(){z.value=R,z.getSnapshot=D,l(z)&&U({inst:z})},[N,R,D]),g(function(){return l(z)&&U({inst:z}),N(function(){l(z)&&U({inst:z})})},[N]),S(R),R}function l(N){var D=N.getSnapshot;N=N.value;try{var R=D();return!v(N,R)}catch{return!0}}function c(N,D){return D()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var f=Jl(),v=typeof Object.is=="function"?Object.is:n,p=f.useState,g=f.useEffect,x=f.useLayoutEffect,S=f.useDebugValue,E=!1,w=!1,_=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c:a;db.useSyncExternalStore=f.useSyncExternalStore!==void 0?f.useSyncExternalStore:_,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),db}var b_;function w_(){return b_||(b_=1,process.env.NODE_ENV==="production"?ig.exports=lz():ig.exports=sz()),ig.exports}/**
|
|
308
|
+
* @license React
|
|
309
|
+
* use-sync-external-store-shim/with-selector.production.js
|
|
310
|
+
*
|
|
311
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
312
|
+
*
|
|
313
|
+
* This source code is licensed under the MIT license found in the
|
|
314
|
+
* LICENSE file in the root directory of this source tree.
|
|
315
|
+
*/var S_;function uz(){if(S_)return cb;S_=1;var n=Jl(),a=w_();function l(S,E){return S===E&&(S!==0||1/S===1/E)||S!==S&&E!==E}var c=typeof Object.is=="function"?Object.is:l,f=a.useSyncExternalStore,v=n.useRef,p=n.useEffect,g=n.useMemo,x=n.useDebugValue;return cb.useSyncExternalStoreWithSelector=function(S,E,w,_,N){var D=v(null);if(D.current===null){var R={hasValue:!1,value:null};D.current=R}else R=D.current;D=g(function(){function z(I){if(!U){if(U=!0,L=I,I=_(I),N!==void 0&&R.hasValue){var q=R.value;if(N(q,I))return $=q}return $=I}if(q=$,c(L,I))return q;var ie=_(I);return N!==void 0&&N(q,ie)?(L=I,q):(L=I,$=ie)}var U=!1,L,$,H=w===void 0?null:w;return[function(){return z(E())},H===null?void 0:function(){return z(H())}]},[E,w,_,N]);var j=f(S,D[0],D[1]);return p(function(){R.hasValue=!0,R.value=j},[j]),x(j),j},cb}var pb={};/**
|
|
316
|
+
* @license React
|
|
317
|
+
* use-sync-external-store-shim/with-selector.development.js
|
|
318
|
+
*
|
|
319
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
320
|
+
*
|
|
321
|
+
* This source code is licensed under the MIT license found in the
|
|
322
|
+
* LICENSE file in the root directory of this source tree.
|
|
323
|
+
*/var C_;function cz(){return C_||(C_=1,process.env.NODE_ENV!=="production"&&(function(){function n(S,E){return S===E&&(S!==0||1/S===1/E)||S!==S&&E!==E}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var a=Jl(),l=w_(),c=typeof Object.is=="function"?Object.is:n,f=l.useSyncExternalStore,v=a.useRef,p=a.useEffect,g=a.useMemo,x=a.useDebugValue;pb.useSyncExternalStoreWithSelector=function(S,E,w,_,N){var D=v(null);if(D.current===null){var R={hasValue:!1,value:null};D.current=R}else R=D.current;D=g(function(){function z(I){if(!U){if(U=!0,L=I,I=_(I),N!==void 0&&R.hasValue){var q=R.value;if(N(q,I))return $=q}return $=I}if(q=$,c(L,I))return q;var ie=_(I);return N!==void 0&&N(q,ie)?(L=I,q):(L=I,$=ie)}var U=!1,L,$,H=w===void 0?null:w;return[function(){return z(E())},H===null?void 0:function(){return z(H())}]},[E,w,_,N]);var j=f(S,D[0],D[1]);return p(function(){R.hasValue=!0,R.value=j},[j]),x(j),j},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),pb}var E_;function fz(){return E_||(E_=1,process.env.NODE_ENV==="production"?ag.exports=uz():ag.exports=cz()),ag.exports}var dz=fz();const pz=cC(dz),hz={},__=n=>{let a;const l=new Set,c=(E,w)=>{const _=typeof E=="function"?E(a):E;if(!Object.is(_,a)){const N=a;a=w??(typeof _!="object"||_===null)?_:Object.assign({},a,_),l.forEach(D=>D(a,N))}},f=()=>a,x={setState:c,getState:f,getInitialState:()=>S,subscribe:E=>(l.add(E),()=>l.delete(E)),destroy:()=>{(hz?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),l.clear()}},S=a=n(c,f,x);return x},vz=n=>n?__(n):__,{useDebugValue:mz}=mN,{useSyncExternalStoreWithSelector:gz}=pz,yz=n=>n;function T_(n,a=yz,l){const c=gz(n.subscribe,n.getState,n.getServerState||n.getInitialState,a,l);return mz(c),c}const R_=(n,a)=>{const l=vz(n),c=(f,v=a)=>T_(l,f,v);return Object.assign(c,l),c},xz=(n,a)=>n?R_(n,a):R_;function tr(n,a){if(Object.is(n,a))return!0;if(typeof n!="object"||n===null||typeof a!="object"||a===null)return!1;if(n instanceof Map&&a instanceof Map){if(n.size!==a.size)return!1;for(const[c,f]of n)if(!Object.is(f,a.get(c)))return!1;return!0}if(n instanceof Set&&a instanceof Set){if(n.size!==a.size)return!1;for(const c of n)if(!a.has(c))return!1;return!0}const l=Object.keys(n);if(l.length!==Object.keys(a).length)return!1;for(const c of l)if(!Object.prototype.hasOwnProperty.call(a,c)||!Object.is(n[c],a[c]))return!1;return!0}wC();const og=ue.createContext(null),bz=og.Provider,k_=Oi.error001();function rn(n,a){const l=ue.useContext(og);if(l===null)throw new Error(k_);return T_(l,n,a)}function Wn(){const n=ue.useContext(og);if(n===null)throw new Error(k_);return ue.useMemo(()=>({getState:n.getState,setState:n.setState,subscribe:n.subscribe}),[n])}const M_={display:"none"},wz={position:"absolute",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)",clipPath:"inset(100%)"},N_="react-flow__node-desc",D_="react-flow__edge-desc",Sz="react-flow__aria-live",Cz=n=>n.ariaLiveMessage,Ez=n=>n.ariaLabelConfig;function _z({rfId:n}){const a=rn(Cz);return k.jsx("div",{id:`${Sz}-${n}`,"aria-live":"assertive","aria-atomic":"true",style:wz,children:a})}function Tz({rfId:n,disableKeyboardA11y:a}){const l=rn(Ez);return k.jsxs(k.Fragment,{children:[k.jsx("div",{id:`${N_}-${n}`,style:M_,children:a?l["node.a11yDescription.default"]:l["node.a11yDescription.keyboardDisabled"]}),k.jsx("div",{id:`${D_}-${n}`,style:M_,children:l["edge.a11yDescription.default"]}),!a&&k.jsx(_z,{rfId:n})]})}const lg=ue.forwardRef(({position:n="top-left",children:a,className:l,style:c,...f},v)=>{const p=`${n}`.split("-");return k.jsx("div",{className:kr(["react-flow__panel",l,...p]),style:c,ref:v,...f,children:a})});lg.displayName="Panel";function Rz({proOptions:n,position:a="bottom-right"}){return n!=null&&n.hideAttribution?null:k.jsx(lg,{position:a,className:"react-flow__attribution","data-message":"Please only hide this attribution when you are subscribed to React Flow Pro: https://pro.reactflow.dev",children:k.jsx("a",{href:"https://reactflow.dev",target:"_blank",rel:"noopener noreferrer","aria-label":"React Flow attribution",children:"React Flow"})})}const kz=n=>{const a=[],l=[];for(const[,c]of n.nodeLookup)c.selected&&a.push(c.internals.userNode);for(const[,c]of n.edgeLookup)c.selected&&l.push(c);return{selectedNodes:a,selectedEdges:l}},sg=n=>n.id;function Mz(n,a){return tr(n.selectedNodes.map(sg),a.selectedNodes.map(sg))&&tr(n.selectedEdges.map(sg),a.selectedEdges.map(sg))}function Nz({onSelectionChange:n}){const a=Wn(),{selectedNodes:l,selectedEdges:c}=rn(kz,Mz);return ue.useEffect(()=>{const f={nodes:l,edges:c};n==null||n(f),a.getState().onSelectionChangeHandlers.forEach(v=>v(f))},[l,c,n]),null}const Dz=n=>!!n.onSelectionChangeHandlers;function Az({onSelectionChange:n}){const a=rn(Dz);return n||a?k.jsx(Nz,{onSelectionChange:n}):null}const A_=[0,0],Oz={x:0,y:0,zoom:1},O_=[...["nodes","edges","defaultNodes","defaultEdges","onConnect","onConnectStart","onConnectEnd","onClickConnectStart","onClickConnectEnd","nodesDraggable","autoPanOnNodeFocus","nodesConnectable","nodesFocusable","edgesFocusable","edgesReconnectable","elevateNodesOnSelect","elevateEdgesOnSelect","minZoom","maxZoom","nodeExtent","onNodesChange","onEdgesChange","elementsSelectable","connectionMode","snapGrid","snapToGrid","translateExtent","connectOnClick","defaultEdgeOptions","fitView","fitViewOptions","onNodesDelete","onEdgesDelete","onDelete","onNodeDrag","onNodeDragStart","onNodeDragStop","onSelectionDrag","onSelectionDragStart","onSelectionDragStop","onMoveStart","onMove","onMoveEnd","noPanClassName","nodeOrigin","autoPanOnConnect","autoPanOnNodeDrag","onError","connectionRadius","isValidConnection","selectNodesOnDrag","nodeDragThreshold","connectionDragThreshold","onBeforeDelete","debug","autoPanSpeed","ariaLabelConfig","zIndexMode"],"rfId"],Lz=n=>({setNodes:n.setNodes,setEdges:n.setEdges,setMinZoom:n.setMinZoom,setMaxZoom:n.setMaxZoom,setTranslateExtent:n.setTranslateExtent,setNodeExtent:n.setNodeExtent,reset:n.reset,setDefaultNodesAndEdges:n.setDefaultNodesAndEdges}),L_={translateExtent:th,nodeOrigin:A_,minZoom:.5,maxZoom:2,elementsSelectable:!0,noPanClassName:"nopan",rfId:"1"};function zz(n){const{setNodes:a,setEdges:l,setMinZoom:c,setMaxZoom:f,setTranslateExtent:v,setNodeExtent:p,reset:g,setDefaultNodesAndEdges:x}=rn(Lz,tr),S=Wn();ue.useEffect(()=>(x(n.defaultNodes,n.defaultEdges),()=>{E.current=L_,g()}),[]);const E=ue.useRef(L_);return ue.useEffect(()=>{for(const w of O_){const _=n[w],N=E.current[w];_!==N&&(typeof n[w]>"u"||(w==="nodes"?a(_):w==="edges"?l(_):w==="minZoom"?c(_):w==="maxZoom"?f(_):w==="translateExtent"?v(_):w==="nodeExtent"?p(_):w==="ariaLabelConfig"?S.setState({ariaLabelConfig:xL(_)}):w==="fitView"?S.setState({fitViewQueued:_}):w==="fitViewOptions"?S.setState({fitViewOptions:_}):S.setState({[w]:_})))}E.current=n},O_.map(w=>n[w])),null}function z_(){return typeof window>"u"||!window.matchMedia?null:window.matchMedia("(prefers-color-scheme: dark)")}function jz(n){var c;const[a,l]=ue.useState(n==="system"?null:n);return ue.useEffect(()=>{if(n!=="system"){l(n);return}const f=z_(),v=()=>l(f!=null&&f.matches?"dark":"light");return v(),f==null||f.addEventListener("change",v),()=>{f==null||f.removeEventListener("change",v)}},[n]),a!==null?a:(c=z_())!=null&&c.matches?"dark":"light"}const j_=typeof document<"u"?document:null;function ch(n=null,a={target:j_,actInsideInputWithModifier:!0}){const[l,c]=ue.useState(!1),f=ue.useRef(!1),v=ue.useRef(new Set([])),[p,g]=ue.useMemo(()=>{if(n!==null){const S=(Array.isArray(n)?n:[n]).filter(w=>typeof w=="string").map(w=>w.replace("+",`
|
|
324
|
+
`).replace(`
|
|
325
|
+
|
|
326
|
+
`,`
|
|
327
|
+
+`).split(`
|
|
328
|
+
`)),E=S.reduce((w,_)=>w.concat(..._),[]);return[S,E]}return[[],[]]},[n]);return ue.useEffect(()=>{const x=(a==null?void 0:a.target)??j_,S=(a==null?void 0:a.actInsideInputWithModifier)??!0;if(n!==null){const E=N=>{var j,z;if(f.current=N.ctrlKey||N.metaKey||N.shiftKey||N.altKey,(!f.current||f.current&&!S)&&HE(N))return!1;const R=$_(N.code,g);if(v.current.add(N[R]),P_(p,v.current,!1)){const U=((z=(j=N.composedPath)==null?void 0:j.call(N))==null?void 0:z[0])||N.target,L=(U==null?void 0:U.nodeName)==="BUTTON"||(U==null?void 0:U.nodeName)==="A";a.preventDefault!==!1&&(f.current||!L)&&N.preventDefault(),c(!0)}},w=N=>{const D=$_(N.code,g);P_(p,v.current,!0)?(c(!1),v.current.clear()):v.current.delete(N[D]),N.key==="Meta"&&v.current.clear(),f.current=!1},_=()=>{v.current.clear(),c(!1)};return x==null||x.addEventListener("keydown",E),x==null||x.addEventListener("keyup",w),window.addEventListener("blur",_),window.addEventListener("contextmenu",_),()=>{x==null||x.removeEventListener("keydown",E),x==null||x.removeEventListener("keyup",w),window.removeEventListener("blur",_),window.removeEventListener("contextmenu",_)}}},[n,c]),l}function P_(n,a,l){return n.filter(c=>l||c.length===a.size).some(c=>c.every(f=>a.has(f)))}function $_(n,a){return a.includes(n)?"code":"key"}const Pz=()=>{const n=Wn();return ue.useMemo(()=>({zoomIn:a=>{const{panZoom:l}=n.getState();return l?l.scaleBy(1.2,{duration:a==null?void 0:a.duration}):Promise.resolve(!1)},zoomOut:a=>{const{panZoom:l}=n.getState();return l?l.scaleBy(1/1.2,{duration:a==null?void 0:a.duration}):Promise.resolve(!1)},zoomTo:(a,l)=>{const{panZoom:c}=n.getState();return c?c.scaleTo(a,{duration:l==null?void 0:l.duration}):Promise.resolve(!1)},getZoom:()=>n.getState().transform[2],setViewport:async(a,l)=>{const{transform:[c,f,v],panZoom:p}=n.getState();return p?(await p.setViewport({x:a.x??c,y:a.y??f,zoom:a.zoom??v},l),Promise.resolve(!0)):Promise.resolve(!1)},getViewport:()=>{const[a,l,c]=n.getState().transform;return{x:a,y:l,zoom:c}},setCenter:async(a,l,c)=>n.getState().setCenter(a,l,c),fitBounds:async(a,l)=>{const{width:c,height:f,minZoom:v,maxZoom:p,panZoom:g}=n.getState(),x=Kx(a,c,f,v,p,(l==null?void 0:l.padding)??.1);return g?(await g.setViewport(x,{duration:l==null?void 0:l.duration,ease:l==null?void 0:l.ease,interpolate:l==null?void 0:l.interpolate}),Promise.resolve(!0)):Promise.resolve(!1)},screenToFlowPosition:(a,l={})=>{const{transform:c,snapGrid:f,snapToGrid:v,domNode:p}=n.getState();if(!p)return a;const{x:g,y:x}=p.getBoundingClientRect(),S={x:a.x-g,y:a.y-x},E=l.snapGrid??f,w=l.snapToGrid??v;return lh(S,c,w,E)},flowToScreenPosition:a=>{const{transform:l,domNode:c}=n.getState();if(!c)return a;const{x:f,y:v}=c.getBoundingClientRect(),p=eg(a,l);return{x:p.x+f,y:p.y+v}}}),[])};function U_(n,a){const l=[],c=new Map,f=[];for(const v of n)if(v.type==="add"){f.push(v);continue}else if(v.type==="remove"||v.type==="replace")c.set(v.id,[v]);else{const p=c.get(v.id);p?p.push(v):c.set(v.id,[v])}for(const v of a){const p=c.get(v.id);if(!p){l.push(v);continue}if(p[0].type==="remove")continue;if(p[0].type==="replace"){l.push({...p[0].item});continue}const g={...v};for(const x of p)$z(x,g);l.push(g)}return f.length&&f.forEach(v=>{v.index!==void 0?l.splice(v.index,0,{...v.item}):l.push({...v.item})}),l}function $z(n,a){switch(n.type){case"select":{a.selected=n.selected;break}case"position":{typeof n.position<"u"&&(a.position=n.position),typeof n.dragging<"u"&&(a.dragging=n.dragging);break}case"dimensions":{typeof n.dimensions<"u"&&(a.measured={...n.dimensions},n.setAttributes&&((n.setAttributes===!0||n.setAttributes==="width")&&(a.width=n.dimensions.width),(n.setAttributes===!0||n.setAttributes==="height")&&(a.height=n.dimensions.height))),typeof n.resizing=="boolean"&&(a.resizing=n.resizing);break}}}function F_(n,a){return U_(n,a)}function I_(n,a){return U_(n,a)}function uc(n,a){return{id:n,type:"select",selected:a}}function Vf(n,a=new Set,l=!1){const c=[];for(const[f,v]of n){const p=a.has(f);!(v.selected===void 0&&!p)&&v.selected!==p&&(l&&(v.selected=p),c.push(uc(v.id,p)))}return c}function B_({items:n=[],lookup:a}){var f;const l=[],c=new Map(n.map(v=>[v.id,v]));for(const[v,p]of n.entries()){const g=a.get(p.id),x=((f=g==null?void 0:g.internals)==null?void 0:f.userNode)??g;x!==void 0&&x!==p&&l.push({id:p.id,item:p,type:"replace"}),x===void 0&&l.push({item:p,type:"add",index:v})}for(const[v]of a)c.get(v)===void 0&&l.push({id:v,type:"remove"});return l}function H_(n){return{id:n.id,type:"remove"}}const V_=n=>cL(n),Uz=n=>AE(n);function Y_(n){return ue.forwardRef(n)}const Fz=typeof window<"u"?ue.useLayoutEffect:ue.useEffect;function W_(n){const[a,l]=ue.useState(BigInt(0)),[c]=ue.useState(()=>Iz(()=>l(f=>f+BigInt(1))));return Fz(()=>{const f=c.get();f.length&&(n(f),c.reset())},[a]),c}function Iz(n){let a=[];return{get:()=>a,reset:()=>{a=[]},push:l=>{a.push(l),n()}}}const q_=ue.createContext(null);function Bz({children:n}){const a=Wn(),l=ue.useCallback(g=>{const{nodes:x=[],setNodes:S,hasDefaultNodes:E,onNodesChange:w,nodeLookup:_,fitViewQueued:N,onNodesChangeMiddlewareMap:D}=a.getState();let R=x;for(const z of g)R=typeof z=="function"?z(R):z;let j=B_({items:R,lookup:_});for(const z of D.values())j=z(j);E&&S(R),j.length>0?w==null||w(j):N&&window.requestAnimationFrame(()=>{const{fitViewQueued:z,nodes:U,setNodes:L}=a.getState();z&&L(U)})},[]),c=W_(l),f=ue.useCallback(g=>{const{edges:x=[],setEdges:S,hasDefaultEdges:E,onEdgesChange:w,edgeLookup:_}=a.getState();let N=x;for(const D of g)N=typeof D=="function"?D(N):D;E?S(N):w&&w(B_({items:N,lookup:_}))},[]),v=W_(f),p=ue.useMemo(()=>({nodeQueue:c,edgeQueue:v}),[]);return k.jsx(q_.Provider,{value:p,children:n})}function Hz(){const n=ue.useContext(q_);if(!n)throw new Error("useBatchContext must be used within a BatchProvider");return n}const Vz=n=>!!n.panZoom;function ug(){const n=Pz(),a=Wn(),l=Hz(),c=rn(Vz),f=ue.useMemo(()=>{const v=w=>a.getState().nodeLookup.get(w),p=w=>{l.nodeQueue.push(w)},g=w=>{l.edgeQueue.push(w)},x=w=>{var z,U;const{nodeLookup:_,nodeOrigin:N}=a.getState(),D=V_(w)?w:_.get(w.id),R=D.parentId?FE(D.position,D.measured,D.parentId,_,N):D.position,j={...D,position:R,width:((z=D.measured)==null?void 0:z.width)??D.width,height:((U=D.measured)==null?void 0:U.height)??D.height};return Uf(j)},S=(w,_,N={replace:!1})=>{p(D=>D.map(R=>{if(R.id===w){const j=typeof _=="function"?_(R):_;return N.replace&&V_(j)?j:{...R,...j}}return R}))},E=(w,_,N={replace:!1})=>{g(D=>D.map(R=>{if(R.id===w){const j=typeof _=="function"?_(R):_;return N.replace&&Uz(j)?j:{...R,...j}}return R}))};return{getNodes:()=>a.getState().nodes.map(w=>({...w})),getNode:w=>{var _;return(_=v(w))==null?void 0:_.internals.userNode},getInternalNode:v,getEdges:()=>{const{edges:w=[]}=a.getState();return w.map(_=>({..._}))},getEdge:w=>a.getState().edgeLookup.get(w),setNodes:p,setEdges:g,addNodes:w=>{const _=Array.isArray(w)?w:[w];l.nodeQueue.push(N=>[...N,..._])},addEdges:w=>{const _=Array.isArray(w)?w:[w];l.edgeQueue.push(N=>[...N,..._])},toObject:()=>{const{nodes:w=[],edges:_=[],transform:N}=a.getState(),[D,R,j]=N;return{nodes:w.map(z=>({...z})),edges:_.map(z=>({...z})),viewport:{x:D,y:R,zoom:j}}},deleteElements:async({nodes:w=[],edges:_=[]})=>{const{nodes:N,edges:D,onNodesDelete:R,onEdgesDelete:j,triggerNodeChanges:z,triggerEdgeChanges:U,onDelete:L,onBeforeDelete:$}=a.getState(),{nodes:H,edges:I}=await vL({nodesToRemove:w,edgesToRemove:_,nodes:N,edges:D,onBeforeDelete:$}),q=I.length>0,ie=H.length>0;if(q){const fe=I.map(H_);j==null||j(I),U(fe)}if(ie){const fe=H.map(H_);R==null||R(H),z(fe)}return(ie||q)&&(L==null||L({nodes:H,edges:I})),{deletedNodes:H,deletedEdges:I}},getIntersectingNodes:(w,_=!0,N)=>{const D=$E(w),R=D?w:x(w),j=N!==void 0;return R?(N||a.getState().nodes).filter(z=>{const U=a.getState().nodeLookup.get(z.id);if(U&&!D&&(z.id===w.id||!U.internals.positionAbsolute))return!1;const L=Uf(j?z:U),$=ih(L,R);return _&&$>0||$>=L.width*L.height||$>=R.width*R.height}):[]},isNodeIntersecting:(w,_,N=!0)=>{const R=$E(w)?w:x(w);if(!R)return!1;const j=ih(R,_);return N&&j>0||j>=_.width*_.height||j>=R.width*R.height},updateNode:S,updateNodeData:(w,_,N={replace:!1})=>{S(w,D=>{const R=typeof _=="function"?_(D):_;return N.replace?{...D,data:R}:{...D,data:{...D.data,...R}}},N)},updateEdge:E,updateEdgeData:(w,_,N={replace:!1})=>{E(w,D=>{const R=typeof _=="function"?_(D):_;return N.replace?{...D,data:R}:{...D,data:{...D.data,...R}}},N)},getNodesBounds:w=>{const{nodeLookup:_,nodeOrigin:N}=a.getState();return fL(w,{nodeLookup:_,nodeOrigin:N})},getHandleConnections:({type:w,id:_,nodeId:N})=>{var D;return Array.from(((D=a.getState().connectionLookup.get(`${N}-${w}${_?`-${_}`:""}`))==null?void 0:D.values())??[])},getNodeConnections:({type:w,handleId:_,nodeId:N})=>{var D;return Array.from(((D=a.getState().connectionLookup.get(`${N}${w?_?`-${w}-${_}`:`-${w}`:""}`))==null?void 0:D.values())??[])},fitView:async w=>{const _=a.getState().fitViewResolver??yL();return a.setState({fitViewQueued:!0,fitViewOptions:w,fitViewResolver:_}),l.nodeQueue.push(N=>[...N]),_.promise}}},[]);return ue.useMemo(()=>({...f,...n,viewportInitialized:c}),[c])}const G_=n=>n.selected,Yz=typeof window<"u"?window:void 0;function Wz({deleteKeyCode:n,multiSelectionKeyCode:a}){const l=Wn(),{deleteElements:c}=ug(),f=ch(n,{actInsideInputWithModifier:!1}),v=ch(a,{target:Yz});ue.useEffect(()=>{if(f){const{edges:p,nodes:g}=l.getState();c({nodes:g.filter(G_),edges:p.filter(G_)}),l.setState({nodesSelectionActive:!1})}},[f]),ue.useEffect(()=>{l.setState({multiSelectionActive:v})},[v])}function qz(n){const a=Wn();ue.useEffect(()=>{const l=()=>{var f,v,p,g;if(!n.current||!(((v=(f=n.current).checkVisibility)==null?void 0:v.call(f))??!0))return!1;const c=Qx(n.current);(c.height===0||c.width===0)&&((g=(p=a.getState()).onError)==null||g.call(p,"004",Oi.error004())),a.setState({width:c.width||500,height:c.height||500})};if(n.current){l(),window.addEventListener("resize",l);const c=new ResizeObserver(()=>l());return c.observe(n.current),()=>{window.removeEventListener("resize",l),c&&n.current&&c.unobserve(n.current)}}},[])}const cg={position:"absolute",width:"100%",height:"100%",top:0,left:0},Gz=n=>({userSelectionActive:n.userSelectionActive,lib:n.lib,connectionInProgress:n.connection.inProgress});function Kz({onPaneContextMenu:n,zoomOnScroll:a=!0,zoomOnPinch:l=!0,panOnScroll:c=!1,panOnScrollSpeed:f=.5,panOnScrollMode:v=oc.Free,zoomOnDoubleClick:p=!0,panOnDrag:g=!0,defaultViewport:x,translateExtent:S,minZoom:E,maxZoom:w,zoomActivationKeyCode:_,preventScrolling:N=!0,children:D,noWheelClassName:R,noPanClassName:j,onViewportChange:z,isControlledViewport:U,paneClickDistance:L,selectionOnDrag:$}){const H=Wn(),I=ue.useRef(null),{userSelectionActive:q,lib:ie,connectionInProgress:fe}=rn(Gz,tr),Se=ch(_),oe=ue.useRef();qz(I);const de=ue.useCallback(he=>{z==null||z({x:he[0],y:he[1],zoom:he[2]}),U||H.setState({transform:he})},[z,U]);return ue.useEffect(()=>{if(I.current){oe.current=ez({domNode:I.current,minZoom:E,maxZoom:w,translateExtent:S,viewport:x,onDraggingChange:Z=>H.setState(te=>te.paneDragging===Z?te:{paneDragging:Z}),onPanZoomStart:(Z,te)=>{const{onViewportChangeStart:Y,onMoveStart:J}=H.getState();J==null||J(Z,te),Y==null||Y(te)},onPanZoom:(Z,te)=>{const{onViewportChange:Y,onMove:J}=H.getState();J==null||J(Z,te),Y==null||Y(te)},onPanZoomEnd:(Z,te)=>{const{onViewportChangeEnd:Y,onMoveEnd:J}=H.getState();J==null||J(Z,te),Y==null||Y(te)}});const{x:he,y:V,zoom:ce}=oe.current.getViewport();return H.setState({panZoom:oe.current,transform:[he,V,ce],domNode:I.current.closest(".react-flow")}),()=>{var Z;(Z=oe.current)==null||Z.destroy()}}},[]),ue.useEffect(()=>{var he;(he=oe.current)==null||he.update({onPaneContextMenu:n,zoomOnScroll:a,zoomOnPinch:l,panOnScroll:c,panOnScrollSpeed:f,panOnScrollMode:v,zoomOnDoubleClick:p,panOnDrag:g,zoomActivationKeyPressed:Se,preventScrolling:N,noPanClassName:j,userSelectionActive:q,noWheelClassName:R,lib:ie,onTransformChange:de,connectionInProgress:fe,selectionOnDrag:$,paneClickDistance:L})},[n,a,l,c,f,v,p,g,Se,N,j,q,R,ie,de,fe,$,L]),k.jsx("div",{className:"react-flow__renderer",ref:I,style:cg,children:D})}const Xz=n=>({userSelectionActive:n.userSelectionActive,userSelectionRect:n.userSelectionRect});function Qz(){const{userSelectionActive:n,userSelectionRect:a}=rn(Xz,tr);return n&&a?k.jsx("div",{className:"react-flow__selection react-flow__container",style:{width:a.width,height:a.height,transform:`translate(${a.x}px, ${a.y}px)`}}):null}const hb=(n,a)=>l=>{l.target===a.current&&(n==null||n(l))},Jz=n=>({userSelectionActive:n.userSelectionActive,elementsSelectable:n.elementsSelectable,connectionInProgress:n.connection.inProgress,dragging:n.paneDragging});function Zz({isSelecting:n,selectionKeyPressed:a,selectionMode:l=nh.Full,panOnDrag:c,paneClickDistance:f,selectionOnDrag:v,onSelectionStart:p,onSelectionEnd:g,onPaneClick:x,onPaneContextMenu:S,onPaneScroll:E,onPaneMouseEnter:w,onPaneMouseMove:_,onPaneMouseLeave:N,children:D}){const R=Wn(),{userSelectionActive:j,elementsSelectable:z,dragging:U,connectionInProgress:L}=rn(Jz,tr),$=z&&(n||j),H=ue.useRef(null),I=ue.useRef(),q=ue.useRef(new Set),ie=ue.useRef(new Set),fe=ue.useRef(!1),Se=Y=>{if(fe.current||L){fe.current=!1;return}x==null||x(Y),R.getState().resetSelectedElements(),R.setState({nodesSelectionActive:!1})},oe=Y=>{if(Array.isArray(c)&&(c!=null&&c.includes(2))){Y.preventDefault();return}S==null||S(Y)},de=E?Y=>E(Y):void 0,he=Y=>{fe.current&&(Y.stopPropagation(),fe.current=!1)},V=Y=>{var Oe,$e;const{domNode:J}=R.getState();if(I.current=J==null?void 0:J.getBoundingClientRect(),!I.current)return;const ne=Y.target===H.current;if(!ne&&!!Y.target.closest(".nokey")||!n||!(v&&ne||a)||Y.button!==0||!Y.isPrimary)return;($e=(Oe=Y.target)==null?void 0:Oe.setPointerCapture)==null||$e.call(Oe,Y.pointerId),fe.current=!1;const{x:ke,y:Re}=Do(Y.nativeEvent,I.current);R.setState({userSelectionRect:{width:0,height:0,startX:ke,startY:Re,x:ke,y:Re}}),ne||(Y.stopPropagation(),Y.preventDefault())},ce=Y=>{const{userSelectionRect:J,transform:ne,nodeLookup:B,edgeLookup:K,connectionLookup:ke,triggerNodeChanges:Re,triggerEdgeChanges:Oe,defaultEdgeOptions:$e,resetSelectedElements:Ie}=R.getState();if(!I.current||!J)return;const{x:Te,y:Ne}=Do(Y.nativeEvent,I.current),{startX:Ve,startY:Ke}=J;if(!fe.current){const vt=a?0:f;if(Math.hypot(Te-Ve,Ne-Ke)<=vt)return;Ie(),p==null||p(Y)}fe.current=!0;const Ye={startX:Ve,startY:Ke,x:Te<Ve?Te:Ve,y:Ne<Ke?Ne:Ke,width:Math.abs(Te-Ve),height:Math.abs(Ne-Ke)},Xe=q.current,ht=ie.current;q.current=new Set(qx(B,Ye,ne,l===nh.Partial,!0).map(vt=>vt.id)),ie.current=new Set;const Nt=($e==null?void 0:$e.selectable)??!0;for(const vt of q.current){const Jt=ke.get(vt);if(Jt)for(const{edgeId:nr}of Jt.values()){const Dn=K.get(nr);Dn&&(Dn.selectable??Nt)&&ie.current.add(nr)}}if(!IE(Xe,q.current)){const vt=Vf(B,q.current,!0);Re(vt)}if(!IE(ht,ie.current)){const vt=Vf(K,ie.current);Oe(vt)}R.setState({userSelectionRect:Ye,userSelectionActive:!0,nodesSelectionActive:!1})},Z=Y=>{var J,ne;Y.button===0&&((ne=(J=Y.target)==null?void 0:J.releasePointerCapture)==null||ne.call(J,Y.pointerId),!j&&Y.target===H.current&&R.getState().userSelectionRect&&(Se==null||Se(Y)),R.setState({userSelectionActive:!1,userSelectionRect:null}),fe.current&&(g==null||g(Y),R.setState({nodesSelectionActive:q.current.size>0})))},te=c===!0||Array.isArray(c)&&c.includes(0);return k.jsxs("div",{className:kr(["react-flow__pane",{draggable:te,dragging:U,selection:n}]),onClick:$?void 0:hb(Se,H),onContextMenu:hb(oe,H),onWheel:hb(de,H),onPointerEnter:$?void 0:w,onPointerMove:$?ce:_,onPointerUp:$?Z:void 0,onPointerDownCapture:$?V:void 0,onClickCapture:$?he:void 0,onPointerLeave:N,ref:H,style:cg,children:[D,k.jsx(Qz,{})]})}function vb({id:n,store:a,unselect:l=!1,nodeRef:c}){const{addSelectedNodes:f,unselectNodesAndEdges:v,multiSelectionActive:p,nodeLookup:g,onError:x}=a.getState(),S=g.get(n);if(!S){x==null||x("012",Oi.error012(n));return}a.setState({nodesSelectionActive:!1}),S.selected?(l||S.selected&&p)&&(v({nodes:[S],edges:[]}),requestAnimationFrame(()=>{var E;return(E=c==null?void 0:c.current)==null?void 0:E.blur()})):f([n])}function K_({nodeRef:n,disabled:a=!1,noDragClassName:l,handleSelector:c,nodeId:f,isSelectable:v,nodeClickDistance:p}){const g=Wn(),[x,S]=ue.useState(!1),E=ue.useRef();return ue.useEffect(()=>{E.current=FL({getStoreItems:()=>g.getState(),onNodeMouseDown:w=>{vb({id:w,store:g,nodeRef:n})},onDragStart:()=>{S(!0)},onDragStop:()=>{S(!1)}})},[]),ue.useEffect(()=>{if(!(a||!n.current||!E.current))return E.current.update({noDragClassName:l,handleSelector:c,domNode:n.current,isSelectable:v,nodeId:f,nodeClickDistance:p}),()=>{var w;(w=E.current)==null||w.destroy()}},[l,c,a,v,n,f,p]),x}const e4=n=>a=>a.selected&&(a.draggable||n&&typeof a.draggable>"u");function X_(){const n=Wn();return ue.useCallback(l=>{const{nodeExtent:c,snapToGrid:f,snapGrid:v,nodesDraggable:p,onError:g,updateNodePositions:x,nodeLookup:S,nodeOrigin:E}=n.getState(),w=new Map,_=e4(p),N=f?v[0]:5,D=f?v[1]:5,R=l.direction.x*N*l.factor,j=l.direction.y*D*l.factor;for(const[,z]of S){if(!_(z))continue;let U={x:z.internals.positionAbsolute.x+R,y:z.internals.positionAbsolute.y+j};f&&(U=oh(U,v));const{position:L,positionAbsolute:$}=OE({nodeId:z.id,nextPosition:U,nodeLookup:S,nodeExtent:c,nodeOrigin:E,onError:g});z.position=L,z.internals.positionAbsolute=$,w.set(z.id,z)}x(w)},[])}const mb=ue.createContext(null),t4=mb.Provider;mb.Consumer;const Q_=()=>ue.useContext(mb),n4=n=>({connectOnClick:n.connectOnClick,noPanClassName:n.noPanClassName,rfId:n.rfId}),r4=(n,a,l)=>c=>{const{connectionClickStartHandle:f,connectionMode:v,connection:p}=c,{fromHandle:g,toHandle:x,isValid:S}=p,E=(x==null?void 0:x.nodeId)===n&&(x==null?void 0:x.id)===a&&(x==null?void 0:x.type)===l;return{connectingFrom:(g==null?void 0:g.nodeId)===n&&(g==null?void 0:g.id)===a&&(g==null?void 0:g.type)===l,connectingTo:E,clickConnecting:(f==null?void 0:f.nodeId)===n&&(f==null?void 0:f.id)===a&&(f==null?void 0:f.type)===l,isPossibleEndHandle:v===Pf.Strict?(g==null?void 0:g.type)!==l:n!==(g==null?void 0:g.nodeId)||a!==(g==null?void 0:g.id),connectionInProcess:!!g,clickConnectionInProcess:!!f,valid:E&&S}};function a4({type:n="source",position:a=bt.Top,isValidConnection:l,isConnectable:c=!0,isConnectableStart:f=!0,isConnectableEnd:v=!0,id:p,onConnect:g,children:x,className:S,onMouseDown:E,onTouchStart:w,..._},N){var ce,Z;const D=p||null,R=n==="target",j=Wn(),z=Q_(),{connectOnClick:U,noPanClassName:L,rfId:$}=rn(n4,tr),{connectingFrom:H,connectingTo:I,clickConnecting:q,isPossibleEndHandle:ie,connectionInProcess:fe,clickConnectionInProcess:Se,valid:oe}=rn(r4(z,D,n),tr);z||(Z=(ce=j.getState()).onError)==null||Z.call(ce,"010",Oi.error010());const de=te=>{const{defaultEdgeOptions:Y,onConnect:J,hasDefaultEdges:ne}=j.getState(),B={...Y,...te};if(ne){const{edges:K,setEdges:ke}=j.getState();ke(XE(B,K))}J==null||J(B),g==null||g(B)},he=te=>{if(!z)return;const Y=VE(te.nativeEvent);if(f&&(Y&&te.button===0||!Y)){const J=j.getState();lb.onPointerDown(te.nativeEvent,{handleDomNode:te.currentTarget,autoPanOnConnect:J.autoPanOnConnect,connectionMode:J.connectionMode,connectionRadius:J.connectionRadius,domNode:J.domNode,nodeLookup:J.nodeLookup,lib:J.lib,isTarget:R,handleId:D,nodeId:z,flowId:J.rfId,panBy:J.panBy,cancelConnection:J.cancelConnection,onConnectStart:J.onConnectStart,onConnectEnd:(...ne)=>{var B,K;return(K=(B=j.getState()).onConnectEnd)==null?void 0:K.call(B,...ne)},updateConnection:J.updateConnection,onConnect:de,isValidConnection:l||((...ne)=>{var B,K;return((K=(B=j.getState()).isValidConnection)==null?void 0:K.call(B,...ne))??!0}),getTransform:()=>j.getState().transform,getFromHandle:()=>j.getState().connection.fromHandle,autoPanSpeed:J.autoPanSpeed,dragThreshold:J.connectionDragThreshold})}Y?E==null||E(te):w==null||w(te)},V=te=>{const{onClickConnectStart:Y,onClickConnectEnd:J,connectionClickStartHandle:ne,connectionMode:B,isValidConnection:K,lib:ke,rfId:Re,nodeLookup:Oe,connection:$e}=j.getState();if(!z||!ne&&!f)return;if(!ne){Y==null||Y(te.nativeEvent,{nodeId:z,handleId:D,handleType:n}),j.setState({connectionClickStartHandle:{nodeId:z,type:n,id:D}});return}const Ie=BE(te.target),Te=l||K,{connection:Ne,isValid:Ve}=lb.isValid(te.nativeEvent,{handle:{nodeId:z,id:D,type:n},connectionMode:B,fromNodeId:ne.nodeId,fromHandleId:ne.id||null,fromType:ne.type,isValidConnection:Te,flowId:Re,doc:Ie,lib:ke,nodeLookup:Oe});Ve&&Ne&&de(Ne);const Ke=structuredClone($e);delete Ke.inProgress,Ke.toPosition=Ke.toHandle?Ke.toHandle.position:null,J==null||J(te,Ke),j.setState({connectionClickStartHandle:null})};return k.jsx("div",{"data-handleid":D,"data-nodeid":z,"data-handlepos":a,"data-id":`${$}-${z}-${D}-${n}`,className:kr(["react-flow__handle",`react-flow__handle-${a}`,"nodrag",L,S,{source:!R,target:R,connectable:c,connectablestart:f,connectableend:v,clickconnecting:q,connectingfrom:H,connectingto:I,valid:oe,connectionindicator:c&&(!fe||ie)&&(fe||Se?v:f)}]),onMouseDown:he,onTouchStart:he,onClick:U?V:void 0,ref:N,..._,children:x})}const Yf=ue.memo(Y_(a4));function i4({data:n,isConnectable:a,sourcePosition:l=bt.Bottom}){return k.jsxs(k.Fragment,{children:[n==null?void 0:n.label,k.jsx(Yf,{type:"source",position:l,isConnectable:a})]})}function o4({data:n,isConnectable:a,targetPosition:l=bt.Top,sourcePosition:c=bt.Bottom}){return k.jsxs(k.Fragment,{children:[k.jsx(Yf,{type:"target",position:l,isConnectable:a}),n==null?void 0:n.label,k.jsx(Yf,{type:"source",position:c,isConnectable:a})]})}function l4(){return null}function s4({data:n,isConnectable:a,targetPosition:l=bt.Top}){return k.jsxs(k.Fragment,{children:[k.jsx(Yf,{type:"target",position:l,isConnectable:a}),n==null?void 0:n.label]})}const fg={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}},J_={input:i4,default:o4,output:s4,group:l4};function u4(n){var a,l,c,f;return n.internals.handleBounds===void 0?{width:n.width??n.initialWidth??((a=n.style)==null?void 0:a.width),height:n.height??n.initialHeight??((l=n.style)==null?void 0:l.height)}:{width:n.width??((c=n.style)==null?void 0:c.width),height:n.height??((f=n.style)==null?void 0:f.height)}}const c4=n=>{const{width:a,height:l,x:c,y:f}=ah(n.nodeLookup,{filter:v=>!!v.selected});return{width:No(a)?a:null,height:No(l)?l:null,userSelectionActive:n.userSelectionActive,transformString:`translate(${n.transform[0]}px,${n.transform[1]}px) scale(${n.transform[2]}) translate(${c}px,${f}px)`}};function f4({onSelectionContextMenu:n,noPanClassName:a,disableKeyboardA11y:l}){const c=Wn(),{width:f,height:v,transformString:p,userSelectionActive:g}=rn(c4,tr),x=X_(),S=ue.useRef(null);ue.useEffect(()=>{var N;l||(N=S.current)==null||N.focus({preventScroll:!0})},[l]);const E=!g&&f!==null&&v!==null;if(K_({nodeRef:S,disabled:!E}),!E)return null;const w=n?N=>{const D=c.getState().nodes.filter(R=>R.selected);n(N,D)}:void 0,_=N=>{Object.prototype.hasOwnProperty.call(fg,N.key)&&(N.preventDefault(),x({direction:fg[N.key],factor:N.shiftKey?4:1}))};return k.jsx("div",{className:kr(["react-flow__nodesselection","react-flow__container",a]),style:{transform:p},children:k.jsx("div",{ref:S,className:"react-flow__nodesselection-rect",onContextMenu:w,tabIndex:l?void 0:-1,onKeyDown:l?void 0:_,style:{width:f,height:v}})})}const Z_=typeof window<"u"?window:void 0,d4=n=>({nodesSelectionActive:n.nodesSelectionActive,userSelectionActive:n.userSelectionActive});function eT({children:n,onPaneClick:a,onPaneMouseEnter:l,onPaneMouseMove:c,onPaneMouseLeave:f,onPaneContextMenu:v,onPaneScroll:p,paneClickDistance:g,deleteKeyCode:x,selectionKeyCode:S,selectionOnDrag:E,selectionMode:w,onSelectionStart:_,onSelectionEnd:N,multiSelectionKeyCode:D,panActivationKeyCode:R,zoomActivationKeyCode:j,elementsSelectable:z,zoomOnScroll:U,zoomOnPinch:L,panOnScroll:$,panOnScrollSpeed:H,panOnScrollMode:I,zoomOnDoubleClick:q,panOnDrag:ie,defaultViewport:fe,translateExtent:Se,minZoom:oe,maxZoom:de,preventScrolling:he,onSelectionContextMenu:V,noWheelClassName:ce,noPanClassName:Z,disableKeyboardA11y:te,onViewportChange:Y,isControlledViewport:J}){const{nodesSelectionActive:ne,userSelectionActive:B}=rn(d4,tr),K=ch(S,{target:Z_}),ke=ch(R,{target:Z_}),Re=ke||ie,Oe=ke||$,$e=E&&Re!==!0,Ie=K||B||$e;return Wz({deleteKeyCode:x,multiSelectionKeyCode:D}),k.jsx(Kz,{onPaneContextMenu:v,elementsSelectable:z,zoomOnScroll:U,zoomOnPinch:L,panOnScroll:Oe,panOnScrollSpeed:H,panOnScrollMode:I,zoomOnDoubleClick:q,panOnDrag:!K&&Re,defaultViewport:fe,translateExtent:Se,minZoom:oe,maxZoom:de,zoomActivationKeyCode:j,preventScrolling:he,noWheelClassName:ce,noPanClassName:Z,onViewportChange:Y,isControlledViewport:J,paneClickDistance:g,selectionOnDrag:$e,children:k.jsxs(Zz,{onSelectionStart:_,onSelectionEnd:N,onPaneClick:a,onPaneMouseEnter:l,onPaneMouseMove:c,onPaneMouseLeave:f,onPaneContextMenu:v,onPaneScroll:p,panOnDrag:Re,isSelecting:!!Ie,selectionMode:w,selectionKeyPressed:K,paneClickDistance:g,selectionOnDrag:$e,children:[n,ne&&k.jsx(f4,{onSelectionContextMenu:V,noPanClassName:Z,disableKeyboardA11y:te})]})})}eT.displayName="FlowRenderer";const p4=ue.memo(eT),h4=n=>a=>n?qx(a.nodeLookup,{x:0,y:0,width:a.width,height:a.height},a.transform,!0).map(l=>l.id):Array.from(a.nodeLookup.keys());function v4(n){return rn(ue.useCallback(h4(n),[n]),tr)}const m4=n=>n.updateNodeInternals;function g4(){const n=rn(m4),[a]=ue.useState(()=>typeof ResizeObserver>"u"?null:new ResizeObserver(l=>{const c=new Map;l.forEach(f=>{const v=f.target.getAttribute("data-id");c.set(v,{id:v,nodeElement:f.target,force:!0})}),n(c)}));return ue.useEffect(()=>()=>{a==null||a.disconnect()},[a]),a}function y4({node:n,nodeType:a,hasDimensions:l,resizeObserver:c}){const f=Wn(),v=ue.useRef(null),p=ue.useRef(null),g=ue.useRef(n.sourcePosition),x=ue.useRef(n.targetPosition),S=ue.useRef(a),E=l&&!!n.internals.handleBounds;return ue.useEffect(()=>{v.current&&!n.hidden&&(!E||p.current!==v.current)&&(p.current&&(c==null||c.unobserve(p.current)),c==null||c.observe(v.current),p.current=v.current)},[E,n.hidden]),ue.useEffect(()=>()=>{p.current&&(c==null||c.unobserve(p.current),p.current=null)},[]),ue.useEffect(()=>{if(v.current){const w=S.current!==a,_=g.current!==n.sourcePosition,N=x.current!==n.targetPosition;(w||_||N)&&(S.current=a,g.current=n.sourcePosition,x.current=n.targetPosition,f.getState().updateNodeInternals(new Map([[n.id,{id:n.id,nodeElement:v.current,force:!0}]])))}},[n.id,a,n.sourcePosition,n.targetPosition]),v}function x4({id:n,onClick:a,onMouseEnter:l,onMouseMove:c,onMouseLeave:f,onContextMenu:v,onDoubleClick:p,nodesDraggable:g,elementsSelectable:x,nodesConnectable:S,nodesFocusable:E,resizeObserver:w,noDragClassName:_,noPanClassName:N,disableKeyboardA11y:D,rfId:R,nodeTypes:j,nodeClickDistance:z,onError:U}){const{node:L,internals:$,isParent:H}=rn(Te=>{const Ne=Te.nodeLookup.get(n),Ve=Te.parentLookup.has(n);return{node:Ne,internals:Ne.internals,isParent:Ve}},tr);let I=L.type||"default",q=(j==null?void 0:j[I])||J_[I];q===void 0&&(U==null||U("003",Oi.error003(I)),I="default",q=(j==null?void 0:j.default)||J_.default);const ie=!!(L.draggable||g&&typeof L.draggable>"u"),fe=!!(L.selectable||x&&typeof L.selectable>"u"),Se=!!(L.connectable||S&&typeof L.connectable>"u"),oe=!!(L.focusable||E&&typeof L.focusable>"u"),de=Wn(),he=Xx(L),V=y4({node:L,nodeType:I,hasDimensions:he,resizeObserver:w}),ce=K_({nodeRef:V,disabled:L.hidden||!ie,noDragClassName:_,handleSelector:L.dragHandle,nodeId:n,isSelectable:fe,nodeClickDistance:z}),Z=X_();if(L.hidden)return null;const te=ns(L),Y=u4(L),J=fe||ie||a||l||c||f,ne=l?Te=>l(Te,{...$.userNode}):void 0,B=c?Te=>c(Te,{...$.userNode}):void 0,K=f?Te=>f(Te,{...$.userNode}):void 0,ke=v?Te=>v(Te,{...$.userNode}):void 0,Re=p?Te=>p(Te,{...$.userNode}):void 0,Oe=Te=>{const{selectNodesOnDrag:Ne,nodeDragThreshold:Ve}=de.getState();fe&&(!Ne||!ie||Ve>0)&&vb({id:n,store:de,nodeRef:V}),a&&a(Te,{...$.userNode})},$e=Te=>{if(!(HE(Te.nativeEvent)||D)){if(RE.includes(Te.key)&&fe){const Ne=Te.key==="Escape";vb({id:n,store:de,unselect:Ne,nodeRef:V})}else if(ie&&L.selected&&Object.prototype.hasOwnProperty.call(fg,Te.key)){Te.preventDefault();const{ariaLabelConfig:Ne}=de.getState();de.setState({ariaLiveMessage:Ne["node.a11yDescription.ariaLiveMessage"]({direction:Te.key.replace("Arrow","").toLowerCase(),x:~~$.positionAbsolute.x,y:~~$.positionAbsolute.y})}),Z({direction:fg[Te.key],factor:Te.shiftKey?4:1})}}},Ie=()=>{var ht;if(D||!((ht=V.current)!=null&&ht.matches(":focus-visible")))return;const{transform:Te,width:Ne,height:Ve,autoPanOnNodeFocus:Ke,setCenter:Ye}=de.getState();if(!Ke)return;qx(new Map([[n,L]]),{x:0,y:0,width:Ne,height:Ve},Te,!0).length>0||Ye(L.position.x+te.width/2,L.position.y+te.height/2,{zoom:Te[2]})};return k.jsx("div",{className:kr(["react-flow__node",`react-flow__node-${I}`,{[N]:ie},L.className,{selected:L.selected,selectable:fe,parent:H,draggable:ie,dragging:ce}]),ref:V,style:{zIndex:$.z,transform:`translate(${$.positionAbsolute.x}px,${$.positionAbsolute.y}px)`,pointerEvents:J?"all":"none",visibility:he?"visible":"hidden",...L.style,...Y},"data-id":n,"data-testid":`rf__node-${n}`,onMouseEnter:ne,onMouseMove:B,onMouseLeave:K,onContextMenu:ke,onClick:Oe,onDoubleClick:Re,onKeyDown:oe?$e:void 0,tabIndex:oe?0:void 0,onFocus:oe?Ie:void 0,role:L.ariaRole??(oe?"group":void 0),"aria-roledescription":"node","aria-describedby":D?void 0:`${N_}-${R}`,"aria-label":L.ariaLabel,...L.domAttributes,children:k.jsx(t4,{value:n,children:k.jsx(q,{id:n,data:L.data,type:I,positionAbsoluteX:$.positionAbsolute.x,positionAbsoluteY:$.positionAbsolute.y,selected:L.selected??!1,selectable:fe,draggable:ie,deletable:L.deletable??!0,isConnectable:Se,sourcePosition:L.sourcePosition,targetPosition:L.targetPosition,dragging:ce,dragHandle:L.dragHandle,zIndex:$.z,parentId:L.parentId,...te})})})}var b4=ue.memo(x4);const w4=n=>({nodesDraggable:n.nodesDraggable,nodesConnectable:n.nodesConnectable,nodesFocusable:n.nodesFocusable,elementsSelectable:n.elementsSelectable,onError:n.onError});function tT(n){const{nodesDraggable:a,nodesConnectable:l,nodesFocusable:c,elementsSelectable:f,onError:v}=rn(w4,tr),p=v4(n.onlyRenderVisibleElements),g=g4();return k.jsx("div",{className:"react-flow__nodes",style:cg,children:p.map(x=>k.jsx(b4,{id:x,nodeTypes:n.nodeTypes,nodeExtent:n.nodeExtent,onClick:n.onNodeClick,onMouseEnter:n.onNodeMouseEnter,onMouseMove:n.onNodeMouseMove,onMouseLeave:n.onNodeMouseLeave,onContextMenu:n.onNodeContextMenu,onDoubleClick:n.onNodeDoubleClick,noDragClassName:n.noDragClassName,noPanClassName:n.noPanClassName,rfId:n.rfId,disableKeyboardA11y:n.disableKeyboardA11y,resizeObserver:g,nodesDraggable:a,nodesConnectable:l,nodesFocusable:c,elementsSelectable:f,nodeClickDistance:n.nodeClickDistance,onError:v},x))})}tT.displayName="NodeRenderer";const S4=ue.memo(tT);function C4(n){return rn(ue.useCallback(l=>{if(!n)return l.edges.map(f=>f.id);const c=[];if(l.width&&l.height)for(const f of l.edges){const v=l.nodeLookup.get(f.source),p=l.nodeLookup.get(f.target);v&&p&&SL({sourceNode:v,targetNode:p,width:l.width,height:l.height,transform:l.transform})&&c.push(f.id)}return c},[n]),tr)}const E4=({color:n="none",strokeWidth:a=1})=>{const l={strokeWidth:a,...n&&{stroke:n}};return k.jsx("polyline",{className:"arrow",style:l,strokeLinecap:"round",fill:"none",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4"})},_4=({color:n="none",strokeWidth:a=1})=>{const l={strokeWidth:a,...n&&{stroke:n,fill:n}};return k.jsx("polyline",{className:"arrowclosed",style:l,strokeLinecap:"round",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4 -5,-4"})},nT={[Xm.Arrow]:E4,[Xm.ArrowClosed]:_4};function T4(n){const a=Wn();return ue.useMemo(()=>{var f,v;return Object.prototype.hasOwnProperty.call(nT,n)?nT[n]:((v=(f=a.getState()).onError)==null||v.call(f,"009",Oi.error009(n)),null)},[n])}const R4=({id:n,type:a,color:l,width:c=12.5,height:f=12.5,markerUnits:v="strokeWidth",strokeWidth:p,orient:g="auto-start-reverse"})=>{const x=T4(a);return x?k.jsx("marker",{className:"react-flow__arrowhead",id:n,markerWidth:`${c}`,markerHeight:`${f}`,viewBox:"-10 -10 20 20",markerUnits:v,orient:g,refX:"0",refY:"0",children:k.jsx(x,{color:l,strokeWidth:p})}):null},rT=({defaultColor:n,rfId:a})=>{const l=rn(v=>v.edges),c=rn(v=>v.defaultEdgeOptions),f=ue.useMemo(()=>ML(l,{id:a,defaultColor:n,defaultMarkerStart:c==null?void 0:c.markerStart,defaultMarkerEnd:c==null?void 0:c.markerEnd}),[l,c,a,n]);return f.length?k.jsx("svg",{className:"react-flow__marker","aria-hidden":"true",children:k.jsx("defs",{children:f.map(v=>k.jsx(R4,{id:v.id,type:v.type,color:v.color,width:v.width,height:v.height,markerUnits:v.markerUnits,strokeWidth:v.strokeWidth,orient:v.orient},v.id))})}):null};rT.displayName="MarkerDefinitions";var k4=ue.memo(rT);function aT({x:n,y:a,label:l,labelStyle:c,labelShowBg:f=!0,labelBgStyle:v,labelBgPadding:p=[2,4],labelBgBorderRadius:g=2,children:x,className:S,...E}){const[w,_]=ue.useState({x:1,y:0,width:0,height:0}),N=kr(["react-flow__edge-textwrapper",S]),D=ue.useRef(null);return ue.useEffect(()=>{if(D.current){const R=D.current.getBBox();_({x:R.x,y:R.y,width:R.width,height:R.height})}},[l]),l?k.jsxs("g",{transform:`translate(${n-w.width/2} ${a-w.height/2})`,className:N,visibility:w.width?"visible":"hidden",...E,children:[f&&k.jsx("rect",{width:w.width+2*p[0],x:-p[0],y:-p[1],height:w.height+2*p[1],className:"react-flow__edge-textbg",style:v,rx:g,ry:g}),k.jsx("text",{className:"react-flow__edge-text",y:w.height/2,dy:"0.3em",ref:D,style:c,children:l}),x]}):null}aT.displayName="EdgeText";const M4=ue.memo(aT);function dg({path:n,labelX:a,labelY:l,label:c,labelStyle:f,labelShowBg:v,labelBgStyle:p,labelBgPadding:g,labelBgBorderRadius:x,interactionWidth:S=20,...E}){return k.jsxs(k.Fragment,{children:[k.jsx("path",{...E,d:n,fill:"none",className:kr(["react-flow__edge-path",E.className])}),S?k.jsx("path",{d:n,fill:"none",strokeOpacity:0,strokeWidth:S,className:"react-flow__edge-interaction"}):null,c&&No(a)&&No(l)?k.jsx(M4,{x:a,y:l,label:c,labelStyle:f,labelShowBg:v,labelBgStyle:p,labelBgPadding:g,labelBgBorderRadius:x}):null]})}function iT({pos:n,x1:a,y1:l,x2:c,y2:f}){return n===bt.Left||n===bt.Right?[.5*(a+c),l]:[a,.5*(l+f)]}function oT({sourceX:n,sourceY:a,sourcePosition:l=bt.Bottom,targetX:c,targetY:f,targetPosition:v=bt.Top}){const[p,g]=iT({pos:l,x1:n,y1:a,x2:c,y2:f}),[x,S]=iT({pos:v,x1:c,y1:f,x2:n,y2:a}),[E,w,_,N]=WE({sourceX:n,sourceY:a,targetX:c,targetY:f,sourceControlX:p,sourceControlY:g,targetControlX:x,targetControlY:S});return[`M${n},${a} C${p},${g} ${x},${S} ${c},${f}`,E,w,_,N]}function lT(n){return ue.memo(({id:a,sourceX:l,sourceY:c,targetX:f,targetY:v,sourcePosition:p,targetPosition:g,label:x,labelStyle:S,labelShowBg:E,labelBgStyle:w,labelBgPadding:_,labelBgBorderRadius:N,style:D,markerEnd:R,markerStart:j,interactionWidth:z})=>{const[U,L,$]=oT({sourceX:l,sourceY:c,sourcePosition:p,targetX:f,targetY:v,targetPosition:g}),H=n.isInternal?void 0:a;return k.jsx(dg,{id:H,path:U,labelX:L,labelY:$,label:x,labelStyle:S,labelShowBg:E,labelBgStyle:w,labelBgPadding:_,labelBgBorderRadius:N,style:D,markerEnd:R,markerStart:j,interactionWidth:z})})}const N4=lT({isInternal:!1}),sT=lT({isInternal:!0});N4.displayName="SimpleBezierEdge",sT.displayName="SimpleBezierEdgeInternal";function uT(n){return ue.memo(({id:a,sourceX:l,sourceY:c,targetX:f,targetY:v,label:p,labelStyle:g,labelShowBg:x,labelBgStyle:S,labelBgPadding:E,labelBgBorderRadius:w,style:_,sourcePosition:N=bt.Bottom,targetPosition:D=bt.Top,markerEnd:R,markerStart:j,pathOptions:z,interactionWidth:U})=>{const[L,$,H]=Jx({sourceX:l,sourceY:c,sourcePosition:N,targetX:f,targetY:v,targetPosition:D,borderRadius:z==null?void 0:z.borderRadius,offset:z==null?void 0:z.offset,stepPosition:z==null?void 0:z.stepPosition}),I=n.isInternal?void 0:a;return k.jsx(dg,{id:I,path:L,labelX:$,labelY:H,label:p,labelStyle:g,labelShowBg:x,labelBgStyle:S,labelBgPadding:E,labelBgBorderRadius:w,style:_,markerEnd:R,markerStart:j,interactionWidth:U})})}const cT=uT({isInternal:!1}),fT=uT({isInternal:!0});cT.displayName="SmoothStepEdge",fT.displayName="SmoothStepEdgeInternal";function dT(n){return ue.memo(({id:a,...l})=>{var f;const c=n.isInternal?void 0:a;return k.jsx(cT,{...l,id:c,pathOptions:ue.useMemo(()=>{var v;return{borderRadius:0,offset:(v=l.pathOptions)==null?void 0:v.offset}},[(f=l.pathOptions)==null?void 0:f.offset])})})}const D4=dT({isInternal:!1}),pT=dT({isInternal:!0});D4.displayName="StepEdge",pT.displayName="StepEdgeInternal";function hT(n){return ue.memo(({id:a,sourceX:l,sourceY:c,targetX:f,targetY:v,label:p,labelStyle:g,labelShowBg:x,labelBgStyle:S,labelBgPadding:E,labelBgBorderRadius:w,style:_,markerEnd:N,markerStart:D,interactionWidth:R})=>{const[j,z,U]=QE({sourceX:l,sourceY:c,targetX:f,targetY:v}),L=n.isInternal?void 0:a;return k.jsx(dg,{id:L,path:j,labelX:z,labelY:U,label:p,labelStyle:g,labelShowBg:x,labelBgStyle:S,labelBgPadding:E,labelBgBorderRadius:w,style:_,markerEnd:N,markerStart:D,interactionWidth:R})})}const A4=hT({isInternal:!1}),vT=hT({isInternal:!0});A4.displayName="StraightEdge",vT.displayName="StraightEdgeInternal";function mT(n){return ue.memo(({id:a,sourceX:l,sourceY:c,targetX:f,targetY:v,sourcePosition:p=bt.Bottom,targetPosition:g=bt.Top,label:x,labelStyle:S,labelShowBg:E,labelBgStyle:w,labelBgPadding:_,labelBgBorderRadius:N,style:D,markerEnd:R,markerStart:j,pathOptions:z,interactionWidth:U})=>{const[L,$,H]=GE({sourceX:l,sourceY:c,sourcePosition:p,targetX:f,targetY:v,targetPosition:g,curvature:z==null?void 0:z.curvature}),I=n.isInternal?void 0:a;return k.jsx(dg,{id:I,path:L,labelX:$,labelY:H,label:x,labelStyle:S,labelShowBg:E,labelBgStyle:w,labelBgPadding:_,labelBgBorderRadius:N,style:D,markerEnd:R,markerStart:j,interactionWidth:U})})}const O4=mT({isInternal:!1}),gT=mT({isInternal:!0});O4.displayName="BezierEdge",gT.displayName="BezierEdgeInternal";const yT={default:gT,straight:vT,step:pT,smoothstep:fT,simplebezier:sT},xT={sourceX:null,sourceY:null,targetX:null,targetY:null,sourcePosition:null,targetPosition:null},L4=(n,a,l)=>l===bt.Left?n-a:l===bt.Right?n+a:n,z4=(n,a,l)=>l===bt.Top?n-a:l===bt.Bottom?n+a:n,bT="react-flow__edgeupdater";function wT({position:n,centerX:a,centerY:l,radius:c=10,onMouseDown:f,onMouseEnter:v,onMouseOut:p,type:g}){return k.jsx("circle",{onMouseDown:f,onMouseEnter:v,onMouseOut:p,className:kr([bT,`${bT}-${g}`]),cx:L4(a,c,n),cy:z4(l,c,n),r:c,stroke:"transparent",fill:"transparent"})}function j4({isReconnectable:n,reconnectRadius:a,edge:l,sourceX:c,sourceY:f,targetX:v,targetY:p,sourcePosition:g,targetPosition:x,onReconnect:S,onReconnectStart:E,onReconnectEnd:w,setReconnecting:_,setUpdateHover:N}){const D=Wn(),R=($,H)=>{if($.button!==0)return;const{autoPanOnConnect:I,domNode:q,connectionMode:ie,connectionRadius:fe,lib:Se,onConnectStart:oe,cancelConnection:de,nodeLookup:he,rfId:V,panBy:ce,updateConnection:Z}=D.getState(),te=H.type==="target",Y=(B,K)=>{_(!1),w==null||w(B,l,H.type,K)},J=B=>S==null?void 0:S(l,B),ne=(B,K)=>{_(!0),E==null||E($,l,H.type),oe==null||oe(B,K)};lb.onPointerDown($.nativeEvent,{autoPanOnConnect:I,connectionMode:ie,connectionRadius:fe,domNode:q,handleId:H.id,nodeId:H.nodeId,nodeLookup:he,isTarget:te,edgeUpdaterType:H.type,lib:Se,flowId:V,cancelConnection:de,panBy:ce,isValidConnection:(...B)=>{var K,ke;return((ke=(K=D.getState()).isValidConnection)==null?void 0:ke.call(K,...B))??!0},onConnect:J,onConnectStart:ne,onConnectEnd:(...B)=>{var K,ke;return(ke=(K=D.getState()).onConnectEnd)==null?void 0:ke.call(K,...B)},onReconnectEnd:Y,updateConnection:Z,getTransform:()=>D.getState().transform,getFromHandle:()=>D.getState().connection.fromHandle,dragThreshold:D.getState().connectionDragThreshold,handleDomNode:$.currentTarget})},j=$=>R($,{nodeId:l.target,id:l.targetHandle??null,type:"target"}),z=$=>R($,{nodeId:l.source,id:l.sourceHandle??null,type:"source"}),U=()=>N(!0),L=()=>N(!1);return k.jsxs(k.Fragment,{children:[(n===!0||n==="source")&&k.jsx(wT,{position:g,centerX:c,centerY:f,radius:a,onMouseDown:j,onMouseEnter:U,onMouseOut:L,type:"source"}),(n===!0||n==="target")&&k.jsx(wT,{position:x,centerX:v,centerY:p,radius:a,onMouseDown:z,onMouseEnter:U,onMouseOut:L,type:"target"})]})}function P4({id:n,edgesFocusable:a,edgesReconnectable:l,elementsSelectable:c,onClick:f,onDoubleClick:v,onContextMenu:p,onMouseEnter:g,onMouseMove:x,onMouseLeave:S,reconnectRadius:E,onReconnect:w,onReconnectStart:_,onReconnectEnd:N,rfId:D,edgeTypes:R,noPanClassName:j,onError:z,disableKeyboardA11y:U}){let L=rn(Ye=>Ye.edgeLookup.get(n));const $=rn(Ye=>Ye.defaultEdgeOptions);L=$?{...$,...L}:L;let H=L.type||"default",I=(R==null?void 0:R[H])||yT[H];I===void 0&&(z==null||z("011",Oi.error011(H)),H="default",I=(R==null?void 0:R.default)||yT.default);const q=!!(L.focusable||a&&typeof L.focusable>"u"),ie=typeof w<"u"&&(L.reconnectable||l&&typeof L.reconnectable>"u"),fe=!!(L.selectable||c&&typeof L.selectable>"u"),Se=ue.useRef(null),[oe,de]=ue.useState(!1),[he,V]=ue.useState(!1),ce=Wn(),{zIndex:Z,sourceX:te,sourceY:Y,targetX:J,targetY:ne,sourcePosition:B,targetPosition:K}=rn(ue.useCallback(Ye=>{const Xe=Ye.nodeLookup.get(L.source),ht=Ye.nodeLookup.get(L.target);if(!Xe||!ht)return{zIndex:L.zIndex,...xT};const Nt=kL({id:n,sourceNode:Xe,targetNode:ht,sourceHandle:L.sourceHandle||null,targetHandle:L.targetHandle||null,connectionMode:Ye.connectionMode,onError:z});return{zIndex:wL({selected:L.selected,zIndex:L.zIndex,sourceNode:Xe,targetNode:ht,elevateOnSelect:Ye.elevateEdgesOnSelect,zIndexMode:Ye.zIndexMode}),...Nt||xT}},[L.source,L.target,L.sourceHandle,L.targetHandle,L.selected,L.zIndex]),tr),ke=ue.useMemo(()=>L.markerStart?`url('#${Zx(L.markerStart,D)}')`:void 0,[L.markerStart,D]),Re=ue.useMemo(()=>L.markerEnd?`url('#${Zx(L.markerEnd,D)}')`:void 0,[L.markerEnd,D]);if(L.hidden||te===null||Y===null||J===null||ne===null)return null;const Oe=Ye=>{var vt;const{addSelectedEdges:Xe,unselectNodesAndEdges:ht,multiSelectionActive:Nt}=ce.getState();fe&&(ce.setState({nodesSelectionActive:!1}),L.selected&&Nt?(ht({nodes:[],edges:[L]}),(vt=Se.current)==null||vt.blur()):Xe([n])),f&&f(Ye,L)},$e=v?Ye=>{v(Ye,{...L})}:void 0,Ie=p?Ye=>{p(Ye,{...L})}:void 0,Te=g?Ye=>{g(Ye,{...L})}:void 0,Ne=x?Ye=>{x(Ye,{...L})}:void 0,Ve=S?Ye=>{S(Ye,{...L})}:void 0,Ke=Ye=>{var Xe;if(!U&&RE.includes(Ye.key)&&fe){const{unselectNodesAndEdges:ht,addSelectedEdges:Nt}=ce.getState();Ye.key==="Escape"?((Xe=Se.current)==null||Xe.blur(),ht({edges:[L]})):Nt([n])}};return k.jsx("svg",{style:{zIndex:Z},children:k.jsxs("g",{className:kr(["react-flow__edge",`react-flow__edge-${H}`,L.className,j,{selected:L.selected,animated:L.animated,inactive:!fe&&!f,updating:oe,selectable:fe}]),onClick:Oe,onDoubleClick:$e,onContextMenu:Ie,onMouseEnter:Te,onMouseMove:Ne,onMouseLeave:Ve,onKeyDown:q?Ke:void 0,tabIndex:q?0:void 0,role:L.ariaRole??(q?"group":"img"),"aria-roledescription":"edge","data-id":n,"data-testid":`rf__edge-${n}`,"aria-label":L.ariaLabel===null?void 0:L.ariaLabel||`Edge from ${L.source} to ${L.target}`,"aria-describedby":q?`${D_}-${D}`:void 0,ref:Se,...L.domAttributes,children:[!he&&k.jsx(I,{id:n,source:L.source,target:L.target,type:L.type,selected:L.selected,animated:L.animated,selectable:fe,deletable:L.deletable??!0,label:L.label,labelStyle:L.labelStyle,labelShowBg:L.labelShowBg,labelBgStyle:L.labelBgStyle,labelBgPadding:L.labelBgPadding,labelBgBorderRadius:L.labelBgBorderRadius,sourceX:te,sourceY:Y,targetX:J,targetY:ne,sourcePosition:B,targetPosition:K,data:L.data,style:L.style,sourceHandleId:L.sourceHandle,targetHandleId:L.targetHandle,markerStart:ke,markerEnd:Re,pathOptions:"pathOptions"in L?L.pathOptions:void 0,interactionWidth:L.interactionWidth}),ie&&k.jsx(j4,{edge:L,isReconnectable:ie,reconnectRadius:E,onReconnect:w,onReconnectStart:_,onReconnectEnd:N,sourceX:te,sourceY:Y,targetX:J,targetY:ne,sourcePosition:B,targetPosition:K,setUpdateHover:de,setReconnecting:V})]})})}var $4=ue.memo(P4);const U4=n=>({edgesFocusable:n.edgesFocusable,edgesReconnectable:n.edgesReconnectable,elementsSelectable:n.elementsSelectable,connectionMode:n.connectionMode,onError:n.onError});function ST({defaultMarkerColor:n,onlyRenderVisibleElements:a,rfId:l,edgeTypes:c,noPanClassName:f,onReconnect:v,onEdgeContextMenu:p,onEdgeMouseEnter:g,onEdgeMouseMove:x,onEdgeMouseLeave:S,onEdgeClick:E,reconnectRadius:w,onEdgeDoubleClick:_,onReconnectStart:N,onReconnectEnd:D,disableKeyboardA11y:R}){const{edgesFocusable:j,edgesReconnectable:z,elementsSelectable:U,onError:L}=rn(U4,tr),$=C4(a);return k.jsxs("div",{className:"react-flow__edges",children:[k.jsx(k4,{defaultColor:n,rfId:l}),$.map(H=>k.jsx($4,{id:H,edgesFocusable:j,edgesReconnectable:z,elementsSelectable:U,noPanClassName:f,onReconnect:v,onContextMenu:p,onMouseEnter:g,onMouseMove:x,onMouseLeave:S,onClick:E,reconnectRadius:w,onDoubleClick:_,onReconnectStart:N,onReconnectEnd:D,rfId:l,onError:L,edgeTypes:c,disableKeyboardA11y:R},H))]})}ST.displayName="EdgeRenderer";const F4=ue.memo(ST),I4=n=>`translate(${n.transform[0]}px,${n.transform[1]}px) scale(${n.transform[2]})`;function B4({children:n}){const a=rn(I4);return k.jsx("div",{className:"react-flow__viewport xyflow__viewport react-flow__container",style:{transform:a},children:n})}function H4(n){const a=ug(),l=ue.useRef(!1);ue.useEffect(()=>{!l.current&&a.viewportInitialized&&n&&(setTimeout(()=>n(a),1),l.current=!0)},[n,a.viewportInitialized])}const V4=n=>{var a;return(a=n.panZoom)==null?void 0:a.syncViewport};function Y4(n){const a=rn(V4),l=Wn();return ue.useEffect(()=>{n&&(a==null||a(n),l.setState({transform:[n.x,n.y,n.zoom]}))},[n,a]),null}function W4(n){return n.connection.inProgress?{...n.connection,to:lh(n.connection.to,n.transform)}:{...n.connection}}function q4(n){return W4}function G4(n){const a=q4();return rn(a,tr)}const K4=n=>({nodesConnectable:n.nodesConnectable,isValid:n.connection.isValid,inProgress:n.connection.inProgress,width:n.width,height:n.height});function X4({containerStyle:n,style:a,type:l,component:c}){const{nodesConnectable:f,width:v,height:p,isValid:g,inProgress:x}=rn(K4,tr);return!(v&&f&&x)?null:k.jsx("svg",{style:n,width:v,height:p,className:"react-flow__connectionline react-flow__container",children:k.jsx("g",{className:kr(["react-flow__connection",DE(g)]),children:k.jsx(CT,{style:a,type:l,CustomComponent:c,isValid:g})})})}const CT=({style:n,type:a=Xs.Bezier,CustomComponent:l,isValid:c})=>{const{inProgress:f,from:v,fromNode:p,fromHandle:g,fromPosition:x,to:S,toNode:E,toHandle:w,toPosition:_,pointer:N}=G4();if(!f)return;if(l)return k.jsx(l,{connectionLineType:a,connectionLineStyle:n,fromNode:p,fromHandle:g,fromX:v.x,fromY:v.y,toX:S.x,toY:S.y,fromPosition:x,toPosition:_,connectionStatus:DE(c),toNode:E,toHandle:w,pointer:N});let D="";const R={sourceX:v.x,sourceY:v.y,sourcePosition:x,targetX:S.x,targetY:S.y,targetPosition:_};switch(a){case Xs.Bezier:[D]=GE(R);break;case Xs.SimpleBezier:[D]=oT(R);break;case Xs.Step:[D]=Jx({...R,borderRadius:0});break;case Xs.SmoothStep:[D]=Jx(R);break;default:[D]=QE(R)}return k.jsx("path",{d:D,fill:"none",className:"react-flow__connection-path",style:n})};CT.displayName="ConnectionLine";const Q4={};function ET(n=Q4){const a=ue.useRef(n),l=Wn();ue.useEffect(()=>{var c,f;if(process.env.NODE_ENV==="development"){const v=new Set([...Object.keys(a.current),...Object.keys(n)]);for(const p of v)if(a.current[p]!==n[p]){(f=(c=l.getState()).onError)==null||f.call(c,"002",Oi.error002());break}a.current=n}},[n])}function J4(){const n=Wn(),a=ue.useRef(!1);ue.useEffect(()=>{var l,c;if(process.env.NODE_ENV==="development"&&!a.current){const f=document.querySelector(".react-flow__pane");f&&window.getComputedStyle(f).zIndex!=="1"&&((c=(l=n.getState()).onError)==null||c.call(l,"013",Oi.error013("react"))),a.current=!0}},[])}function _T({nodeTypes:n,edgeTypes:a,onInit:l,onNodeClick:c,onEdgeClick:f,onNodeDoubleClick:v,onEdgeDoubleClick:p,onNodeMouseEnter:g,onNodeMouseMove:x,onNodeMouseLeave:S,onNodeContextMenu:E,onSelectionContextMenu:w,onSelectionStart:_,onSelectionEnd:N,connectionLineType:D,connectionLineStyle:R,connectionLineComponent:j,connectionLineContainerStyle:z,selectionKeyCode:U,selectionOnDrag:L,selectionMode:$,multiSelectionKeyCode:H,panActivationKeyCode:I,zoomActivationKeyCode:q,deleteKeyCode:ie,onlyRenderVisibleElements:fe,elementsSelectable:Se,defaultViewport:oe,translateExtent:de,minZoom:he,maxZoom:V,preventScrolling:ce,defaultMarkerColor:Z,zoomOnScroll:te,zoomOnPinch:Y,panOnScroll:J,panOnScrollSpeed:ne,panOnScrollMode:B,zoomOnDoubleClick:K,panOnDrag:ke,onPaneClick:Re,onPaneMouseEnter:Oe,onPaneMouseMove:$e,onPaneMouseLeave:Ie,onPaneScroll:Te,onPaneContextMenu:Ne,paneClickDistance:Ve,nodeClickDistance:Ke,onEdgeContextMenu:Ye,onEdgeMouseEnter:Xe,onEdgeMouseMove:ht,onEdgeMouseLeave:Nt,reconnectRadius:vt,onReconnect:Jt,onReconnectStart:nr,onReconnectEnd:Dn,noDragClassName:qt,noWheelClassName:ln,noPanClassName:vn,disableKeyboardA11y:jn,nodeExtent:Pr,rfId:kn,viewport:xn,onViewportChange:qn}){return ET(n),ET(a),J4(),H4(l),Y4(xn),k.jsx(p4,{onPaneClick:Re,onPaneMouseEnter:Oe,onPaneMouseMove:$e,onPaneMouseLeave:Ie,onPaneContextMenu:Ne,onPaneScroll:Te,paneClickDistance:Ve,deleteKeyCode:ie,selectionKeyCode:U,selectionOnDrag:L,selectionMode:$,onSelectionStart:_,onSelectionEnd:N,multiSelectionKeyCode:H,panActivationKeyCode:I,zoomActivationKeyCode:q,elementsSelectable:Se,zoomOnScroll:te,zoomOnPinch:Y,zoomOnDoubleClick:K,panOnScroll:J,panOnScrollSpeed:ne,panOnScrollMode:B,panOnDrag:ke,defaultViewport:oe,translateExtent:de,minZoom:he,maxZoom:V,onSelectionContextMenu:w,preventScrolling:ce,noDragClassName:qt,noWheelClassName:ln,noPanClassName:vn,disableKeyboardA11y:jn,onViewportChange:qn,isControlledViewport:!!xn,children:k.jsxs(B4,{children:[k.jsx(F4,{edgeTypes:a,onEdgeClick:f,onEdgeDoubleClick:p,onReconnect:Jt,onReconnectStart:nr,onReconnectEnd:Dn,onlyRenderVisibleElements:fe,onEdgeContextMenu:Ye,onEdgeMouseEnter:Xe,onEdgeMouseMove:ht,onEdgeMouseLeave:Nt,reconnectRadius:vt,defaultMarkerColor:Z,noPanClassName:vn,disableKeyboardA11y:jn,rfId:kn}),k.jsx(X4,{style:R,type:D,component:j,containerStyle:z}),k.jsx("div",{className:"react-flow__edgelabel-renderer"}),k.jsx(S4,{nodeTypes:n,onNodeClick:c,onNodeDoubleClick:v,onNodeMouseEnter:g,onNodeMouseMove:x,onNodeMouseLeave:S,onNodeContextMenu:E,nodeClickDistance:Ke,onlyRenderVisibleElements:fe,noPanClassName:vn,noDragClassName:qt,disableKeyboardA11y:jn,nodeExtent:Pr,rfId:kn}),k.jsx("div",{className:"react-flow__viewport-portal"})]})})}_T.displayName="GraphView";const Z4=ue.memo(_T),TT=({nodes:n,edges:a,defaultNodes:l,defaultEdges:c,width:f,height:v,fitView:p,fitViewOptions:g,minZoom:x=.5,maxZoom:S=2,nodeOrigin:E,nodeExtent:w,zIndexMode:_="basic"}={})=>{const N=new Map,D=new Map,R=new Map,j=new Map,z=c??a??[],U=l??n??[],L=E??[0,0],$=w??th;o_(R,j,z);const H=rb(U,N,D,{nodeOrigin:L,nodeExtent:$,zIndexMode:_});let I=[0,0,1];if(p&&f&&v){const q=ah(N,{filter:oe=>!!((oe.width||oe.initialWidth)&&(oe.height||oe.initialHeight))}),{x:ie,y:fe,zoom:Se}=Kx(q,f,v,x,S,(g==null?void 0:g.padding)??.1);I=[ie,fe,Se]}return{rfId:"1",width:f??0,height:v??0,transform:I,nodes:U,nodesInitialized:H,nodeLookup:N,parentLookup:D,edges:z,edgeLookup:j,connectionLookup:R,onNodesChange:null,onEdgesChange:null,hasDefaultNodes:l!==void 0,hasDefaultEdges:c!==void 0,panZoom:null,minZoom:x,maxZoom:S,translateExtent:th,nodeExtent:$,nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,connectionMode:Pf.Strict,domNode:null,paneDragging:!1,noPanClassName:"nopan",nodeOrigin:L,nodeDragThreshold:1,connectionDragThreshold:1,snapGrid:[15,15],snapToGrid:!1,nodesDraggable:!0,nodesConnectable:!0,nodesFocusable:!0,edgesFocusable:!0,edgesReconnectable:!0,elementsSelectable:!0,elevateNodesOnSelect:!0,elevateEdgesOnSelect:!0,selectNodesOnDrag:!0,multiSelectionActive:!1,fitViewQueued:p??!1,fitViewOptions:g,fitViewResolver:null,connection:{...ME},connectionClickStartHandle:null,connectOnClick:!0,ariaLiveMessage:"",autoPanOnConnect:!0,autoPanOnNodeDrag:!0,autoPanOnNodeFocus:!0,autoPanSpeed:15,connectionRadius:20,onError:UE,isValidConnection:void 0,onSelectionChangeHandlers:[],lib:"react",debug:!1,ariaLabelConfig:kE,zIndexMode:_,onNodesChangeMiddlewareMap:new Map,onEdgesChangeMiddlewareMap:new Map}},e3=({nodes:n,edges:a,defaultNodes:l,defaultEdges:c,width:f,height:v,fitView:p,fitViewOptions:g,minZoom:x,maxZoom:S,nodeOrigin:E,nodeExtent:w,zIndexMode:_})=>xz((N,D)=>{async function R(){const{nodeLookup:j,panZoom:z,fitViewOptions:U,fitViewResolver:L,width:$,height:H,minZoom:I,maxZoom:q}=D();z&&(await hL({nodes:j,width:$,height:H,panZoom:z,minZoom:I,maxZoom:q},U),L==null||L.resolve(!0),N({fitViewResolver:null}))}return{...TT({nodes:n,edges:a,width:f,height:v,fitView:p,fitViewOptions:g,minZoom:x,maxZoom:S,nodeOrigin:E,nodeExtent:w,defaultNodes:l,defaultEdges:c,zIndexMode:_}),setNodes:j=>{const{nodeLookup:z,parentLookup:U,nodeOrigin:L,elevateNodesOnSelect:$,fitViewQueued:H,zIndexMode:I}=D(),q=rb(j,z,U,{nodeOrigin:L,nodeExtent:w,elevateNodesOnSelect:$,checkEquality:!0,zIndexMode:I});H&&q?(R(),N({nodes:j,nodesInitialized:q,fitViewQueued:!1,fitViewOptions:void 0})):N({nodes:j,nodesInitialized:q})},setEdges:j=>{const{connectionLookup:z,edgeLookup:U}=D();o_(z,U,j),N({edges:j})},setDefaultNodesAndEdges:(j,z)=>{if(j){const{setNodes:U}=D();U(j),N({hasDefaultNodes:!0})}if(z){const{setEdges:U}=D();U(z),N({hasDefaultEdges:!0})}},updateNodeInternals:j=>{const{triggerNodeChanges:z,nodeLookup:U,parentLookup:L,domNode:$,nodeOrigin:H,nodeExtent:I,debug:q,fitViewQueued:ie,zIndexMode:fe}=D(),{changes:Se,updatedInternals:oe}=jL(j,U,L,$,H,I,fe);oe&&(AL(U,L,{nodeOrigin:H,nodeExtent:I,zIndexMode:fe}),ie?(R(),N({fitViewQueued:!1,fitViewOptions:void 0})):N({}),(Se==null?void 0:Se.length)>0&&(q&&console.log("React Flow: trigger node changes",Se),z==null||z(Se)))},updateNodePositions:(j,z=!1)=>{const U=[];let L=[];const{nodeLookup:$,triggerNodeChanges:H,connection:I,updateConnection:q,onNodesChangeMiddlewareMap:ie}=D();for(const[fe,Se]of j){const oe=$.get(fe),de=!!(oe!=null&&oe.expandParent&&(oe!=null&&oe.parentId)&&(Se!=null&&Se.position)),he={id:fe,type:"position",position:de?{x:Math.max(0,Se.position.x),y:Math.max(0,Se.position.y)}:Se.position,dragging:z};if(oe&&I.inProgress&&I.fromNode.id===oe.id){const V=sc(oe,I.fromHandle,bt.Left,!0);q({...I,from:V})}de&&oe.parentId&&U.push({id:fe,parentId:oe.parentId,rect:{...Se.internals.positionAbsolute,width:Se.measured.width??0,height:Se.measured.height??0}}),L.push(he)}if(U.length>0){const{parentLookup:fe,nodeOrigin:Se}=D(),oe=ib(U,$,fe,Se);L.push(...oe)}for(const fe of ie.values())L=fe(L);H(L)},triggerNodeChanges:j=>{const{onNodesChange:z,setNodes:U,nodes:L,hasDefaultNodes:$,debug:H}=D();if(j!=null&&j.length){if($){const I=F_(j,L);U(I)}H&&console.log("React Flow: trigger node changes",j),z==null||z(j)}},triggerEdgeChanges:j=>{const{onEdgesChange:z,setEdges:U,edges:L,hasDefaultEdges:$,debug:H}=D();if(j!=null&&j.length){if($){const I=I_(j,L);U(I)}H&&console.log("React Flow: trigger edge changes",j),z==null||z(j)}},addSelectedNodes:j=>{const{multiSelectionActive:z,edgeLookup:U,nodeLookup:L,triggerNodeChanges:$,triggerEdgeChanges:H}=D();if(z){const I=j.map(q=>uc(q,!0));$(I);return}$(Vf(L,new Set([...j]),!0)),H(Vf(U))},addSelectedEdges:j=>{const{multiSelectionActive:z,edgeLookup:U,nodeLookup:L,triggerNodeChanges:$,triggerEdgeChanges:H}=D();if(z){const I=j.map(q=>uc(q,!0));H(I);return}H(Vf(U,new Set([...j]))),$(Vf(L,new Set,!0))},unselectNodesAndEdges:({nodes:j,edges:z}={})=>{const{edges:U,nodes:L,nodeLookup:$,triggerNodeChanges:H,triggerEdgeChanges:I}=D(),q=j||L,ie=z||U,fe=[];for(const oe of q){if(!oe.selected)continue;const de=$.get(oe.id);de&&(de.selected=!1),fe.push(uc(oe.id,!1))}const Se=[];for(const oe of ie)oe.selected&&Se.push(uc(oe.id,!1));H(fe),I(Se)},setMinZoom:j=>{const{panZoom:z,maxZoom:U}=D();z==null||z.setScaleExtent([j,U]),N({minZoom:j})},setMaxZoom:j=>{const{panZoom:z,minZoom:U}=D();z==null||z.setScaleExtent([U,j]),N({maxZoom:j})},setTranslateExtent:j=>{var z;(z=D().panZoom)==null||z.setTranslateExtent(j),N({translateExtent:j})},resetSelectedElements:()=>{const{edges:j,nodes:z,triggerNodeChanges:U,triggerEdgeChanges:L,elementsSelectable:$}=D();if(!$)return;const H=z.reduce((q,ie)=>ie.selected?[...q,uc(ie.id,!1)]:q,[]),I=j.reduce((q,ie)=>ie.selected?[...q,uc(ie.id,!1)]:q,[]);U(H),L(I)},setNodeExtent:j=>{const{nodes:z,nodeLookup:U,parentLookup:L,nodeOrigin:$,elevateNodesOnSelect:H,nodeExtent:I,zIndexMode:q}=D();j[0][0]===I[0][0]&&j[0][1]===I[0][1]&&j[1][0]===I[1][0]&&j[1][1]===I[1][1]||(rb(z,U,L,{nodeOrigin:$,nodeExtent:j,elevateNodesOnSelect:H,checkEquality:!1,zIndexMode:q}),N({nodeExtent:j}))},panBy:j=>{const{transform:z,width:U,height:L,panZoom:$,translateExtent:H}=D();return PL({delta:j,panZoom:$,transform:z,translateExtent:H,width:U,height:L})},setCenter:async(j,z,U)=>{const{width:L,height:$,maxZoom:H,panZoom:I}=D();if(!I)return Promise.resolve(!1);const q=typeof(U==null?void 0:U.zoom)<"u"?U.zoom:H;return await I.setViewport({x:L/2-j*q,y:$/2-z*q,zoom:q},{duration:U==null?void 0:U.duration,ease:U==null?void 0:U.ease,interpolate:U==null?void 0:U.interpolate}),Promise.resolve(!0)},cancelConnection:()=>{N({connection:{...ME}})},updateConnection:j=>{N({connection:j})},reset:()=>N({...TT()})}},Object.is);function RT({initialNodes:n,initialEdges:a,defaultNodes:l,defaultEdges:c,initialWidth:f,initialHeight:v,initialMinZoom:p,initialMaxZoom:g,initialFitViewOptions:x,fitView:S,nodeOrigin:E,nodeExtent:w,zIndexMode:_,children:N}){const[D]=ue.useState(()=>e3({nodes:n,edges:a,defaultNodes:l,defaultEdges:c,width:f,height:v,fitView:S,minZoom:p,maxZoom:g,fitViewOptions:x,nodeOrigin:E,nodeExtent:w,zIndexMode:_}));return k.jsx(bz,{value:D,children:k.jsx(Bz,{children:N})})}function t3({children:n,nodes:a,edges:l,defaultNodes:c,defaultEdges:f,width:v,height:p,fitView:g,fitViewOptions:x,minZoom:S,maxZoom:E,nodeOrigin:w,nodeExtent:_,zIndexMode:N}){return ue.useContext(og)?k.jsx(k.Fragment,{children:n}):k.jsx(RT,{initialNodes:a,initialEdges:l,defaultNodes:c,defaultEdges:f,initialWidth:v,initialHeight:p,fitView:g,initialFitViewOptions:x,initialMinZoom:S,initialMaxZoom:E,nodeOrigin:w,nodeExtent:_,zIndexMode:N,children:n})}const n3={width:"100%",height:"100%",overflow:"hidden",position:"relative",zIndex:0};function r3({nodes:n,edges:a,defaultNodes:l,defaultEdges:c,className:f,nodeTypes:v,edgeTypes:p,onNodeClick:g,onEdgeClick:x,onInit:S,onMove:E,onMoveStart:w,onMoveEnd:_,onConnect:N,onConnectStart:D,onConnectEnd:R,onClickConnectStart:j,onClickConnectEnd:z,onNodeMouseEnter:U,onNodeMouseMove:L,onNodeMouseLeave:$,onNodeContextMenu:H,onNodeDoubleClick:I,onNodeDragStart:q,onNodeDrag:ie,onNodeDragStop:fe,onNodesDelete:Se,onEdgesDelete:oe,onDelete:de,onSelectionChange:he,onSelectionDragStart:V,onSelectionDrag:ce,onSelectionDragStop:Z,onSelectionContextMenu:te,onSelectionStart:Y,onSelectionEnd:J,onBeforeDelete:ne,connectionMode:B,connectionLineType:K=Xs.Bezier,connectionLineStyle:ke,connectionLineComponent:Re,connectionLineContainerStyle:Oe,deleteKeyCode:$e="Backspace",selectionKeyCode:Ie="Shift",selectionOnDrag:Te=!1,selectionMode:Ne=nh.Full,panActivationKeyCode:Ve="Space",multiSelectionKeyCode:Ke=sh()?"Meta":"Control",zoomActivationKeyCode:Ye=sh()?"Meta":"Control",snapToGrid:Xe,snapGrid:ht,onlyRenderVisibleElements:Nt=!1,selectNodesOnDrag:vt,nodesDraggable:Jt,autoPanOnNodeFocus:nr,nodesConnectable:Dn,nodesFocusable:qt,nodeOrigin:ln=A_,edgesFocusable:vn,edgesReconnectable:jn,elementsSelectable:Pr=!0,defaultViewport:kn=Oz,minZoom:xn=.5,maxZoom:qn=2,translateExtent:ea=th,preventScrolling:Mr=!0,nodeExtent:He,defaultMarkerColor:lt="#b1b1b7",zoomOnScroll:Tt=!0,zoomOnPinch:Vt=!0,panOnScroll:ut=!1,panOnScrollSpeed:Mn=.5,panOnScrollMode:bn=oc.Free,zoomOnDoubleClick:An=!0,panOnDrag:Zt=!0,onPaneClick:sn,onPaneMouseEnter:an,onPaneMouseMove:Nr,onPaneMouseLeave:On,onPaneScroll:$r,onPaneContextMenu:ta,paneClickDistance:Dr=1,nodeClickDistance:Hn=0,children:Xa,onReconnect:Pn,onReconnectStart:di,onReconnectEnd:fr,onEdgeContextMenu:wr,onEdgeDoubleClick:Gn,onEdgeMouseEnter:ca,onEdgeMouseMove:fa,onEdgeMouseLeave:da,reconnectRadius:pa=10,onNodesChange:Q,onEdgesChange:De,noDragClassName:We="nodrag",noWheelClassName:nt="nowheel",noPanClassName:Qe="nopan",fitView:Rt,fitViewOptions:Pt,connectOnClick:$t,attributionPosition:$n,proOptions:mn,defaultEdgeOptions:wn,elevateNodesOnSelect:rr=!0,elevateEdgesOnSelect:ha=!1,disableKeyboardA11y:na=!1,autoPanOnConnect:kt,autoPanOnNodeDrag:Ot,autoPanSpeed:G,connectionRadius:re,isValidConnection:Ae,onError:st,style:Je,id:It,nodeDragThreshold:en,connectionDragThreshold:Un,viewport:Sr,onViewportChange:Qi,width:ru,height:ml,colorMode:Ji="light",debug:va,onScroll:ra,ariaLabelConfig:Qa,zIndexMode:Oo="basic",...Lo},Zi){const eo=It||"1",gl=jz(Ji),ji=ue.useCallback(au=>{au.currentTarget.scrollTo({top:0,left:0,behavior:"instant"}),ra==null||ra(au)},[ra]);return k.jsx("div",{"data-testid":"rf__wrapper",...Lo,onScroll:ji,style:{...Je,...n3},ref:Zi,className:kr(["react-flow",f,gl]),id:It,role:"application",children:k.jsxs(t3,{nodes:n,edges:a,width:ru,height:ml,fitView:Rt,fitViewOptions:Pt,minZoom:xn,maxZoom:qn,nodeOrigin:ln,nodeExtent:He,zIndexMode:Oo,children:[k.jsx(Z4,{onInit:S,onNodeClick:g,onEdgeClick:x,onNodeMouseEnter:U,onNodeMouseMove:L,onNodeMouseLeave:$,onNodeContextMenu:H,onNodeDoubleClick:I,nodeTypes:v,edgeTypes:p,connectionLineType:K,connectionLineStyle:ke,connectionLineComponent:Re,connectionLineContainerStyle:Oe,selectionKeyCode:Ie,selectionOnDrag:Te,selectionMode:Ne,deleteKeyCode:$e,multiSelectionKeyCode:Ke,panActivationKeyCode:Ve,zoomActivationKeyCode:Ye,onlyRenderVisibleElements:Nt,defaultViewport:kn,translateExtent:ea,minZoom:xn,maxZoom:qn,preventScrolling:Mr,zoomOnScroll:Tt,zoomOnPinch:Vt,zoomOnDoubleClick:An,panOnScroll:ut,panOnScrollSpeed:Mn,panOnScrollMode:bn,panOnDrag:Zt,onPaneClick:sn,onPaneMouseEnter:an,onPaneMouseMove:Nr,onPaneMouseLeave:On,onPaneScroll:$r,onPaneContextMenu:ta,paneClickDistance:Dr,nodeClickDistance:Hn,onSelectionContextMenu:te,onSelectionStart:Y,onSelectionEnd:J,onReconnect:Pn,onReconnectStart:di,onReconnectEnd:fr,onEdgeContextMenu:wr,onEdgeDoubleClick:Gn,onEdgeMouseEnter:ca,onEdgeMouseMove:fa,onEdgeMouseLeave:da,reconnectRadius:pa,defaultMarkerColor:lt,noDragClassName:We,noWheelClassName:nt,noPanClassName:Qe,rfId:eo,disableKeyboardA11y:na,nodeExtent:He,viewport:Sr,onViewportChange:Qi}),k.jsx(zz,{nodes:n,edges:a,defaultNodes:l,defaultEdges:c,onConnect:N,onConnectStart:D,onConnectEnd:R,onClickConnectStart:j,onClickConnectEnd:z,nodesDraggable:Jt,autoPanOnNodeFocus:nr,nodesConnectable:Dn,nodesFocusable:qt,edgesFocusable:vn,edgesReconnectable:jn,elementsSelectable:Pr,elevateNodesOnSelect:rr,elevateEdgesOnSelect:ha,minZoom:xn,maxZoom:qn,nodeExtent:He,onNodesChange:Q,onEdgesChange:De,snapToGrid:Xe,snapGrid:ht,connectionMode:B,translateExtent:ea,connectOnClick:$t,defaultEdgeOptions:wn,fitView:Rt,fitViewOptions:Pt,onNodesDelete:Se,onEdgesDelete:oe,onDelete:de,onNodeDragStart:q,onNodeDrag:ie,onNodeDragStop:fe,onSelectionDrag:ce,onSelectionDragStart:V,onSelectionDragStop:Z,onMove:E,onMoveStart:w,onMoveEnd:_,noPanClassName:Qe,nodeOrigin:ln,rfId:eo,autoPanOnConnect:kt,autoPanOnNodeDrag:Ot,autoPanSpeed:G,onError:st,connectionRadius:re,isValidConnection:Ae,selectNodesOnDrag:vt,nodeDragThreshold:en,connectionDragThreshold:Un,onBeforeDelete:ne,debug:va,ariaLabelConfig:Qa,zIndexMode:Oo}),k.jsx(Az,{onSelectionChange:he}),Xa,k.jsx(Rz,{proOptions:mn,position:$n}),k.jsx(Tz,{rfId:eo,disableKeyboardA11y:na})]})})}var a3=Y_(r3);function i3(){const n=Wn();return ue.useCallback(a=>{const{domNode:l,updateNodeInternals:c}=n.getState(),f=Array.isArray(a)?a:[a],v=new Map;f.forEach(p=>{const g=l==null?void 0:l.querySelector(`.react-flow__node[data-id="${p}"]`);g&&v.set(p,{id:p,nodeElement:g,force:!0})}),requestAnimationFrame(()=>c(v,{triggerFitView:!1}))},[])}const o3=n=>a=>{if(!n.includeHiddenNodes)return a.nodesInitialized;if(a.nodeLookup.size===0)return!1;for(const[,{internals:l}]of a.nodeLookup)if(l.handleBounds===void 0||!Xx(l.userNode))return!1;return!0};function l3(n={includeHiddenNodes:!1}){return rn(o3(n))}function s3({dimensions:n,lineWidth:a,variant:l,className:c}){return k.jsx("path",{strokeWidth:a,d:`M${n[0]/2} 0 V${n[1]} M0 ${n[1]/2} H${n[0]}`,className:kr(["react-flow__background-pattern",l,c])})}function u3({radius:n,className:a}){return k.jsx("circle",{cx:n,cy:n,r:n,className:kr(["react-flow__background-pattern","dots",a])})}var Zs;(function(n){n.Lines="lines",n.Dots="dots",n.Cross="cross"})(Zs||(Zs={}));const c3={[Zs.Dots]:1,[Zs.Lines]:1,[Zs.Cross]:6},f3=n=>({transform:n.transform,patternId:`pattern-${n.rfId}`});function kT({id:n,variant:a=Zs.Dots,gap:l=20,size:c,lineWidth:f=1,offset:v=0,color:p,bgColor:g,style:x,className:S,patternClassName:E}){const w=ue.useRef(null),{transform:_,patternId:N}=rn(f3,tr),D=c||c3[a],R=a===Zs.Dots,j=a===Zs.Cross,z=Array.isArray(l)?l:[l,l],U=[z[0]*_[2]||1,z[1]*_[2]||1],L=D*_[2],$=Array.isArray(v)?v:[v,v],H=j?[L,L]:U,I=[$[0]*_[2]||1+H[0]/2,$[1]*_[2]||1+H[1]/2],q=`${N}${n||""}`;return k.jsxs("svg",{className:kr(["react-flow__background",S]),style:{...x,...cg,"--xy-background-color-props":g,"--xy-background-pattern-color-props":p},ref:w,"data-testid":"rf__background",children:[k.jsx("pattern",{id:q,x:_[0]%U[0],y:_[1]%U[1],width:U[0],height:U[1],patternUnits:"userSpaceOnUse",patternTransform:`translate(-${I[0]},-${I[1]})`,children:R?k.jsx(u3,{radius:L/2,className:E}):k.jsx(s3,{dimensions:H,lineWidth:f,variant:a,className:E})}),k.jsx("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:`url(#${q})`})]})}kT.displayName="Background";const d3=ue.memo(kT);function p3(){return k.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",children:k.jsx("path",{d:"M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z"})})}function h3(){return k.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 5",children:k.jsx("path",{d:"M0 0h32v4.2H0z"})})}function v3(){return k.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 30",children:k.jsx("path",{d:"M3.692 4.63c0-.53.4-.938.939-.938h5.215V0H4.708C2.13 0 0 2.054 0 4.63v5.216h3.692V4.631zM27.354 0h-5.2v3.692h5.17c.53 0 .984.4.984.939v5.215H32V4.631A4.624 4.624 0 0027.354 0zm.954 24.83c0 .532-.4.94-.939.94h-5.215v3.768h5.215c2.577 0 4.631-2.13 4.631-4.707v-5.139h-3.692v5.139zm-23.677.94c-.531 0-.939-.4-.939-.94v-5.138H0v5.139c0 2.577 2.13 4.707 4.708 4.707h5.138V25.77H4.631z"})})}function m3(){return k.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:k.jsx("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0 8 0 4.571 3.429 4.571 7.619v3.048H3.048A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047zm4.724-13.866H7.467V7.619c0-2.59 2.133-4.724 4.723-4.724 2.591 0 4.724 2.133 4.724 4.724v3.048z"})})}function g3(){return k.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:k.jsx("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0c-4.114 1.828-1.37 2.133.305 2.438 1.676.305 4.42 2.59 4.42 5.181v3.048H3.047A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047z"})})}function pg({children:n,className:a,...l}){return k.jsx("button",{type:"button",className:kr(["react-flow__controls-button",a]),...l,children:n})}const y3=n=>({isInteractive:n.nodesDraggable||n.nodesConnectable||n.elementsSelectable,minZoomReached:n.transform[2]<=n.minZoom,maxZoomReached:n.transform[2]>=n.maxZoom,ariaLabelConfig:n.ariaLabelConfig});function MT({style:n,showZoom:a=!0,showFitView:l=!0,showInteractive:c=!0,fitViewOptions:f,onZoomIn:v,onZoomOut:p,onFitView:g,onInteractiveChange:x,className:S,children:E,position:w="bottom-left",orientation:_="vertical","aria-label":N}){const D=Wn(),{isInteractive:R,minZoomReached:j,maxZoomReached:z,ariaLabelConfig:U}=rn(y3,tr),{zoomIn:L,zoomOut:$,fitView:H}=ug(),I=()=>{L(),v==null||v()},q=()=>{$(),p==null||p()},ie=()=>{H(f),g==null||g()},fe=()=>{D.setState({nodesDraggable:!R,nodesConnectable:!R,elementsSelectable:!R}),x==null||x(!R)},Se=_==="horizontal"?"horizontal":"vertical";return k.jsxs(lg,{className:kr(["react-flow__controls",Se,S]),position:w,style:n,"data-testid":"rf__controls","aria-label":N??U["controls.ariaLabel"],children:[a&&k.jsxs(k.Fragment,{children:[k.jsx(pg,{onClick:I,className:"react-flow__controls-zoomin",title:U["controls.zoomIn.ariaLabel"],"aria-label":U["controls.zoomIn.ariaLabel"],disabled:z,children:k.jsx(p3,{})}),k.jsx(pg,{onClick:q,className:"react-flow__controls-zoomout",title:U["controls.zoomOut.ariaLabel"],"aria-label":U["controls.zoomOut.ariaLabel"],disabled:j,children:k.jsx(h3,{})})]}),l&&k.jsx(pg,{className:"react-flow__controls-fitview",onClick:ie,title:U["controls.fitView.ariaLabel"],"aria-label":U["controls.fitView.ariaLabel"],children:k.jsx(v3,{})}),c&&k.jsx(pg,{className:"react-flow__controls-interactive",onClick:fe,title:U["controls.interactive.ariaLabel"],"aria-label":U["controls.interactive.ariaLabel"],children:R?k.jsx(g3,{}):k.jsx(m3,{})}),E]})}MT.displayName="Controls";const x3=ue.memo(MT);function b3({id:n,x:a,y:l,width:c,height:f,style:v,color:p,strokeColor:g,strokeWidth:x,className:S,borderRadius:E,shapeRendering:w,selected:_,onClick:N}){const{background:D,backgroundColor:R}=v||{},j=p||D||R;return k.jsx("rect",{className:kr(["react-flow__minimap-node",{selected:_},S]),x:a,y:l,rx:E,ry:E,width:c,height:f,style:{fill:j,stroke:g,strokeWidth:x},shapeRendering:w,onClick:N?z=>N(z,n):void 0})}const w3=ue.memo(b3),S3=n=>n.nodes.map(a=>a.id),gb=n=>n instanceof Function?n:()=>n;function C3({nodeStrokeColor:n,nodeColor:a,nodeClassName:l="",nodeBorderRadius:c=5,nodeStrokeWidth:f,nodeComponent:v=w3,onClick:p}){const g=rn(S3,tr),x=gb(a),S=gb(n),E=gb(l),w=typeof window>"u"||window.chrome?"crispEdges":"geometricPrecision";return k.jsx(k.Fragment,{children:g.map(_=>k.jsx(_3,{id:_,nodeColorFunc:x,nodeStrokeColorFunc:S,nodeClassNameFunc:E,nodeBorderRadius:c,nodeStrokeWidth:f,NodeComponent:v,onClick:p,shapeRendering:w},_))})}function E3({id:n,nodeColorFunc:a,nodeStrokeColorFunc:l,nodeClassNameFunc:c,nodeBorderRadius:f,nodeStrokeWidth:v,shapeRendering:p,NodeComponent:g,onClick:x}){const{node:S,x:E,y:w,width:_,height:N}=rn(D=>{const R=D.nodeLookup.get(n);if(!R)return{node:void 0,x:0,y:0,width:0,height:0};const j=R.internals.userNode,{x:z,y:U}=R.internals.positionAbsolute,{width:L,height:$}=ns(j);return{node:j,x:z,y:U,width:L,height:$}},tr);return!S||S.hidden||!Xx(S)?null:k.jsx(g,{x:E,y:w,width:_,height:N,style:S.style,selected:!!S.selected,className:c(S),color:a(S),borderRadius:f,strokeColor:l(S),strokeWidth:v,shapeRendering:p,onClick:x,id:S.id})}const _3=ue.memo(E3);var T3=ue.memo(C3);const R3=200,k3=150,M3=n=>!n.hidden,N3=n=>{const a={x:-n.transform[0]/n.transform[2],y:-n.transform[1]/n.transform[2],width:n.width/n.transform[2],height:n.height/n.transform[2]};return{viewBB:a,boundingRect:n.nodeLookup.size>0?PE(ah(n.nodeLookup,{filter:M3}),a):a,rfId:n.rfId,panZoom:n.panZoom,translateExtent:n.translateExtent,flowWidth:n.width,flowHeight:n.height,ariaLabelConfig:n.ariaLabelConfig}},D3="react-flow__minimap-desc";function NT({style:n,className:a,nodeStrokeColor:l,nodeColor:c,nodeClassName:f="",nodeBorderRadius:v=5,nodeStrokeWidth:p,nodeComponent:g,bgColor:x,maskColor:S,maskStrokeColor:E,maskStrokeWidth:w,position:_="bottom-right",onClick:N,onNodeClick:D,pannable:R=!1,zoomable:j=!1,ariaLabel:z,inversePan:U,zoomStep:L=1,offsetScale:$=5}){const H=Wn(),I=ue.useRef(null),{boundingRect:q,viewBB:ie,rfId:fe,panZoom:Se,translateExtent:oe,flowWidth:de,flowHeight:he,ariaLabelConfig:V}=rn(N3,tr),ce=(n==null?void 0:n.width)??R3,Z=(n==null?void 0:n.height)??k3,te=q.width/ce,Y=q.height/Z,J=Math.max(te,Y),ne=J*ce,B=J*Z,K=$*J,ke=q.x-(ne-q.width)/2-K,Re=q.y-(B-q.height)/2-K,Oe=ne+K*2,$e=B+K*2,Ie=`${D3}-${fe}`,Te=ue.useRef(0),Ne=ue.useRef();Te.current=J,ue.useEffect(()=>{if(I.current&&Se)return Ne.current=WL({domNode:I.current,panZoom:Se,getTransform:()=>H.getState().transform,getViewScale:()=>Te.current}),()=>{var Xe;(Xe=Ne.current)==null||Xe.destroy()}},[Se]),ue.useEffect(()=>{var Xe;(Xe=Ne.current)==null||Xe.update({translateExtent:oe,width:de,height:he,inversePan:U,pannable:R,zoomStep:L,zoomable:j})},[R,j,U,L,oe,de,he]);const Ve=N?Xe=>{var vt;const[ht,Nt]=((vt=Ne.current)==null?void 0:vt.pointer(Xe))||[0,0];N(Xe,{x:ht,y:Nt})}:void 0,Ke=D?ue.useCallback((Xe,ht)=>{const Nt=H.getState().nodeLookup.get(ht).internals.userNode;D(Xe,Nt)},[]):void 0,Ye=z??V["minimap.ariaLabel"];return k.jsx(lg,{position:_,style:{...n,"--xy-minimap-background-color-props":typeof x=="string"?x:void 0,"--xy-minimap-mask-background-color-props":typeof S=="string"?S:void 0,"--xy-minimap-mask-stroke-color-props":typeof E=="string"?E:void 0,"--xy-minimap-mask-stroke-width-props":typeof w=="number"?w*J:void 0,"--xy-minimap-node-background-color-props":typeof c=="string"?c:void 0,"--xy-minimap-node-stroke-color-props":typeof l=="string"?l:void 0,"--xy-minimap-node-stroke-width-props":typeof p=="number"?p:void 0},className:kr(["react-flow__minimap",a]),"data-testid":"rf__minimap",children:k.jsxs("svg",{width:ce,height:Z,viewBox:`${ke} ${Re} ${Oe} ${$e}`,className:"react-flow__minimap-svg",role:"img","aria-labelledby":Ie,ref:I,onClick:Ve,children:[Ye&&k.jsx("title",{id:Ie,children:Ye}),k.jsx(T3,{onClick:Ke,nodeColor:c,nodeStrokeColor:l,nodeBorderRadius:v,nodeClassName:f,nodeStrokeWidth:p,nodeComponent:g}),k.jsx("path",{className:"react-flow__minimap-mask",d:`M${ke-K},${Re-K}h${Oe+K*2}v${$e+K*2}h${-Oe-K*2}z
|
|
329
|
+
M${ie.x},${ie.y}h${ie.width}v${ie.height}h${-ie.width}z`,fillRule:"evenodd",pointerEvents:"none"})]})})}NT.displayName="MiniMap";const A3=ue.memo(NT),O3=n=>a=>n?`${Math.max(1/a.transform[2],1)}`:void 0,L3={[Hf.Line]:"right",[Hf.Handle]:"bottom-right"};function z3({nodeId:n,position:a,variant:l=Hf.Handle,className:c,style:f=void 0,children:v,color:p,minWidth:g=10,minHeight:x=10,maxWidth:S=Number.MAX_VALUE,maxHeight:E=Number.MAX_VALUE,keepAspectRatio:w=!1,resizeDirection:_,autoScale:N=!0,shouldResize:D,onResizeStart:R,onResize:j,onResizeEnd:z}){const U=Q_(),L=typeof n=="string"?n:U,$=Wn(),H=ue.useRef(null),I=l===Hf.Handle,q=rn(ue.useCallback(O3(I&&N),[I,N]),tr),ie=ue.useRef(null),fe=a??L3[l];ue.useEffect(()=>{if(!(!H.current||!L))return ie.current||(ie.current=oz({domNode:H.current,nodeId:L,getStoreItems:()=>{const{nodeLookup:oe,transform:de,snapGrid:he,snapToGrid:V,nodeOrigin:ce,domNode:Z}=$.getState();return{nodeLookup:oe,transform:de,snapGrid:he,snapToGrid:V,nodeOrigin:ce,paneDomNode:Z}},onChange:(oe,de)=>{const{triggerNodeChanges:he,nodeLookup:V,parentLookup:ce,nodeOrigin:Z}=$.getState(),te=[],Y={x:oe.x,y:oe.y},J=V.get(L);if(J&&J.expandParent&&J.parentId){const ne=J.origin??Z,B=oe.width??J.measured.width??0,K=oe.height??J.measured.height??0,ke={id:J.id,parentId:J.parentId,rect:{width:B,height:K,...FE({x:oe.x??J.position.x,y:oe.y??J.position.y},{width:B,height:K},J.parentId,V,ne)}},Re=ib([ke],V,ce,Z);te.push(...Re),Y.x=oe.x?Math.max(ne[0]*B,oe.x):void 0,Y.y=oe.y?Math.max(ne[1]*K,oe.y):void 0}if(Y.x!==void 0&&Y.y!==void 0){const ne={id:L,type:"position",position:{...Y}};te.push(ne)}if(oe.width!==void 0&&oe.height!==void 0){const B={id:L,type:"dimensions",resizing:!0,setAttributes:_?_==="horizontal"?"width":"height":!0,dimensions:{width:oe.width,height:oe.height}};te.push(B)}for(const ne of de){const B={...ne,type:"position"};te.push(B)}he(te)},onEnd:({width:oe,height:de})=>{const he={id:L,type:"dimensions",resizing:!1,dimensions:{width:oe,height:de}};$.getState().triggerNodeChanges([he])}})),ie.current.update({controlPosition:fe,boundaries:{minWidth:g,minHeight:x,maxWidth:S,maxHeight:E},keepAspectRatio:w,resizeDirection:_,onResizeStart:R,onResize:j,onResizeEnd:z,shouldResize:D}),()=>{var oe;(oe=ie.current)==null||oe.destroy()}},[fe,g,x,S,E,w,R,j,z,D]);const Se=fe.split("-");return k.jsx("div",{className:kr(["react-flow__resize-control","nodrag",...Se,l,c]),ref:H,style:{...f,scale:q,...p&&{[I?"backgroundColor":"borderColor"]:p}},children:v})}ue.memo(z3);class j3{constructor(a){var c;const l=(a.fetchImpl??globalThis.fetch).bind(globalThis);this.mBaseUrl=a.baseUrl.replace(/\/$/,""),this.mFetch=(f,v)=>l(f,v),this.mTenantId=((c=a.tenantId)==null?void 0:c.trim())??""}async MGetByReference(a){const l=a.sourceType.trim(),c=a.sourceCode.trim();if(!l||!c)throw new Error("Contract reference requires sourceType and sourceCode.");const f=await this.mFetch(`${this.mBaseUrl}/rule-contracts/${encodeURIComponent(l)}/${encodeURIComponent(c)}`,{headers:ul(void 0,{tenantId:this.mTenantId})});if(!f.ok)throw new Error(`Rule-flow contract request failed: ${f.status}`);return await f.json()}async MGetFlowContract(a){const l=a.trim();if(!l)throw new Error("Flow code is required.");const c=await this.mFetch(`${this.mBaseUrl}/flow-contracts/${encodeURIComponent(l)}`,{headers:ul(void 0,{tenantId:this.mTenantId})});if(!c.ok)throw new Error(`Flow contract request failed: ${c.status}`);return await c.json()}async MGetNodeAuthoringContract(a,l){const c=a.trim(),f=l.trim();if(!c||!f)throw new Error("Flow code and node id are required.");const v=await this.mFetch(`${this.mBaseUrl}/rule-flow/${encodeURIComponent(c)}/nodes/${encodeURIComponent(f)}/authoring-contract`,{headers:ul(void 0,{tenantId:this.mTenantId})});if(!v.ok)throw new Error(`Node authoring contract request failed: ${v.status}`);return await v.json()}async MListFlows(){const a=await this.mFetch(`${this.mBaseUrl}/rulesets`,{headers:ul(void 0,{tenantId:this.mTenantId})});if(!a.ok)throw new Error(`Ruleset list request failed: ${a.status}`);return await a.json()}}class P3{constructor(a){var c;const l=(a.fetchImpl??globalThis.fetch).bind(globalThis);this.mBaseUrl=a.baseUrl.replace(/\/$/,""),this.mFetch=(f,v)=>l(f,v),this.mTenantId=((c=a.tenantId)==null?void 0:c.trim())??""}async MListCatalog(a){var v,p;const l=new URLSearchParams;(v=a==null?void 0:a.category)!=null&&v.trim()&&l.set("category",a.category.trim()),(p=a==null?void 0:a.search)!=null&&p.trim()&&l.set("search",a.search.trim()),a!=null&&a.includeHidden&&l.set("includeHidden","true");const c=l.size>0?`${this.mBaseUrl}?${l.toString()}`:this.mBaseUrl,f=await this.mFetch(c,{headers:ul(void 0,{tenantId:this.mTenantId})});if(!f.ok)throw new Error(`Rule catalog request failed: ${f.status}`);return await f.json()}async MGetItem(a,l=!1){const c=a.trim();if(!c)throw new Error("Rule catalog item code is required.");const f=l?"?includeHidden=true":"",v=await this.mFetch(`${this.mBaseUrl}/${encodeURIComponent(c)}${f}`,{headers:ul(void 0,{tenantId:this.mTenantId})});if(!v.ok)throw new Error(`Rule catalog item request failed: ${v.status}`);return await v.json()}}class $3{constructor(a){var c;this.mBaseUrl=U3(a.baseUrl);const l=(a.fetchImpl??globalThis.fetch).bind(globalThis);this.mFetch=(f,v)=>l(f,v),this.mGetAccessToken=a.getAccessToken,this.mTenantId=((c=a.tenantId)==null?void 0:c.trim())??""}async MListDecisionTables(){return(await this.MRequest("/decision-tables")).items??[]}async MGetDecisionTable(a){return await this.MRequest(`/decision-tables/${a}`)}async MSaveDecisionTable(a,l){return await this.MRequest(`/decision-tables/${a}`,{method:"PUT",body:JSON.stringify(l)})}async MValidateDecisionTable(a){return await this.MRequest(`/decision-tables/${a}/validate`,{method:"POST"})}async MExportDecisionTable(a,l){return await this.MRequestBlob(`/decision-tables/${a}/export/${l}`)}async MListDecisionTableVersions(a){return await this.MRequest(`/decision-tables/${a}/versions`)}async MGetDecisionTableVersion(a,l){return await this.MRequest(`/decision-tables/${a}/versions/${l}`)}async MListNRules(){return await this.MRequest("/rule-engine/nrules")}async MSaveNRules(a,l){return await this.MRequest(`/rule-engine/nrules/${a}`,{method:"PUT",body:JSON.stringify(l)})}async MTestNRules(a,l){return await this.MRequest("/rule-engine/test",{method:"POST",body:JSON.stringify({ruleId:a,facts:l})})}async MListCepConfigs(){return await this.MRequest("/rule-engine/cep")}async MSaveCepConfig(a,l){return await this.MRequest(`/rule-engine/cep/${a}`,{method:"PUT",body:JSON.stringify(l)})}async MSimulateCep(a,l){return await this.MRequest(`/rule-engine/cep/${a}/simulate`,{method:"POST",body:JSON.stringify({events:l})})}async MRequest(a,l={}){const c=await this.mFetch(`${this.mBaseUrl}${a}`,this.MBuildInit(l));if(!c.ok)throw new Error(`RuleEngine API error: ${c.status} ${c.statusText}`);return await c.json()}async MRequestBlob(a,l={}){const c=await this.mFetch(`${this.mBaseUrl}${a}`,this.MBuildInit(l));if(!c.ok)throw new Error(`RuleEngine API error: ${c.status} ${c.statusText}`);return await c.blob()}MBuildInit(a){var f;const l=ul(a.headers,{tenantId:this.mTenantId}),c=(f=this.mGetAccessToken)==null?void 0:f.call(this);return c&&l.set("Authorization",`Bearer ${c}`),!l.has("Content-Type")&&a.body&&l.set("Content-Type","application/json"),{...a,headers:l}}}function U3(n){const a=n.replace(/\/$/,"");return a.endsWith("/api/v1/control-plane")?a.slice(0,-14):a}const hg={trigger:"Trigger",condition:"Condition",action:"Action","decision-table":"Decision Table","sub-flow":"Sub Flow",liquid:"Liquid",end:"End"},Wf={trigger:"#16a34a",condition:"#7c3aed",action:"#2563eb","decision-table":"#ea580c","sub-flow":"#0891b2",liquid:"#0f766e",end:"#dc2626"},DT={trigger:"Create request",condition:"New Condition",action:"New Action","decision-table":"Decision Table","sub-flow":"Sub Flow",liquid:"Liquid Transform",end:"End"},F3={minWidth:188,borderRadius:18,border:"1px solid rgba(15, 23, 42, 0.12)",background:"#ffffff",boxShadow:"0 14px 30px rgba(15, 23, 42, 0.10)",padding:"12px 14px"};function Jr(n){var l,c,f,v,p,g;if(!n||typeof n!="object")return Tx();const a=n;return{nodes:Array.isArray(a.nodes)?a.nodes.map((x,S)=>H3(x,S)):[],edges:Array.isArray(a.edges)?a.edges.filter(x=>!!x&&typeof x.source=="string"&&typeof x.target=="string").map((x,S)=>({id:typeof x.id=="string"&&x.id?x.id:`edge-${S+1}`,source:x.source,target:x.target,label:typeof x.label=="string"?x.label:void 0,edgeType:mg(x.edgeType)})):[],metadata:{version:Math.max(1,((l=a.metadata)==null?void 0:l.version)??1),tenantId:(c=a.metadata)==null?void 0:c.tenantId,ruleSetCode:(f=a.metadata)==null?void 0:f.ruleSetCode,workflowName:(v=a.metadata)==null?void 0:v.workflowName,lastModifiedAt:(p=a.metadata)==null?void 0:p.lastModifiedAt,lastModifiedBy:(g=a.metadata)==null?void 0:g.lastModifiedBy}}}function I3(n){return JSON.stringify(Jr(n),null,2)}function B3(n){let a;try{a=JSON.parse(n)}catch(p){throw new Error(`Invalid rule flow JSON: ${p.message}`)}const l=Jr(a),c=l.nodes.filter(p=>p.type==="trigger").length,f=l.nodes.filter(p=>p.type==="end").length;if(c!==1)throw new Error("Imported flow must contain exactly one trigger node.");if(f<1)throw new Error("Imported flow must contain at least one end node.");const v=new Set(l.nodes.map(p=>p.id));if(v.size!==l.nodes.length)throw new Error("Imported flow contains duplicate node ids.");for(const p of l.edges)if(!v.has(p.source)||!v.has(p.target))throw new Error(`Imported flow edge '${p.id}' references missing nodes.`);return l}function ua(n){const a=Jr(n);return JSON.stringify({nodes:a.nodes.map(l=>({id:l.id,type:l.type,label:l.label,ruleCode:l.ruleCode??"",feelExpression:l.feelExpression??"",position:l.position,data:yb(l.data)})).sort((l,c)=>l.id.localeCompare(c.id)),edges:a.edges.map(l=>({id:l.id,source:l.source,target:l.target,label:l.label??"",edgeType:l.edgeType})).sort((l,c)=>l.id.localeCompare(c.id)),metadata:{version:a.metadata.version,tenantId:a.metadata.tenantId??"",ruleSetCode:a.metadata.ruleSetCode??"",workflowName:a.metadata.workflowName??""}})}function H3(n,a){const l=Cb(n.type),c=yb(n.data),f=xb(c.expression,n.feelExpression,l),v=n.position??{x:Number.NaN,y:Number.NaN};return{id:typeof n.id=="string"&&n.id?n.id:`node-${a+1}`,type:l,label:typeof n.label=="string"&&n.label?n.label:DT[l],feelExpression:f.language==="feel"?f.body:void 0,ruleCode:typeof n.ruleCode=="string"?n.ruleCode:void 0,position:{x:Number.isFinite(v==null?void 0:v.x)?v.x:40+a*48,y:Number.isFinite(v==null?void 0:v.y)?v.y:60+a%4*88},data:{...c,expression:f}}}function yb(n){var v;const a=n&&typeof n=="object"?n:{},l=Array.isArray(a.outputFields)?a.outputFields.map(qf).filter(Boolean):[],c=V3(a.contractOverride),f=(v=c==null?void 0:c.responseFields)!=null&&v.length?c.responseFields:l.length?l:void 0;return{...a,description:typeof a.description=="string"?a.description:void 0,expression:xb(a.expression,typeof a.feelExpression=="string"?a.feelExpression:void 0),contractRef:Y3(a.contractRef),requestContract:fh(a.requestContract),responseContract:fh(a.responseContract),contractOverride:c||f?{...c,responseFields:f}:void 0,inputMappings:Array.isArray(a.inputMappings)?a.inputMappings.map(vg).filter(Boolean):void 0,contractLayer:J3(a.contractLayer),dependsOn:Array.isArray(a.dependsOn)?a.dependsOn.filter(p=>typeof p=="string"&&p.trim().length>0).map(p=>p.trim()):void 0,order:typeof a.order=="number"&&Number.isFinite(a.order)?a.order:void 0,conditionConfig:W3(a.conditionConfig),subFlowConfig:q3(a.subFlowConfig),liquidConfig:G3(a.liquidConfig)}}function V3(n){if(!n||typeof n!="object")return;const a=n;return{requestFields:Array.isArray(a.requestFields)?a.requestFields.map(qf).filter(Boolean):void 0,responseFields:Array.isArray(a.responseFields)?a.responseFields.map(qf).filter(Boolean):void 0}}function Y3(n){if(!n||typeof n!="object")return;const a=n,l=a.sourceType,c=a.sourceCode;if(!(typeof l!="string"||typeof c!="string"||!c.trim()))return{sourceType:t5(l),sourceCode:c.trim(),label:typeof a.label=="string"?a.label:void 0}}function fh(n){if(!n||typeof n!="object")return;const a=n,l=typeof a.contractName=="string"&&a.contractName.trim()?a.contractName.trim():"";if(l)return{contractName:l,title:typeof a.title=="string"?a.title:void 0,description:typeof a.description=="string"?a.description:void 0,rootType:typeof a.rootType=="string"?a.rootType:void 0,fields:Array.isArray(a.fields)?a.fields.map(qf).filter(Boolean):[]}}function qf(n){if(!n||typeof n!="object")return null;const a=n,l=typeof a.path=="string"&&a.path.trim()?a.path.trim():"",c=typeof a.label=="string"&&a.label.trim()?a.label.trim():l,f=typeof a.dataType=="string"&&a.dataType.trim()?a.dataType.trim():"unknown";return l?{path:l,label:c,dataType:f,valueExpression:typeof a.valueExpression=="string"?a.valueExpression:void 0,runtimeWritten:a.runtimeWritten===!0?!0:void 0,required:!!a.required,description:typeof a.description=="string"?a.description:void 0,example:typeof a.example=="string"?a.example:void 0,exposeToParent:a.exposeToParent===!1?!1:void 0,isResultPayload:a.isResultPayload===!0?!0:void 0,sourceNodeId:typeof a.sourceNodeId=="string"?a.sourceNodeId:void 0,sourceNodeLabel:typeof a.sourceNodeLabel=="string"?a.sourceNodeLabel:void 0,sourceNodeType:typeof a.sourceNodeType=="string"&&Sb(a.sourceNodeType)?a.sourceNodeType:void 0,sourceKind:a.sourceKind==="flow-input"||a.sourceKind==="node-output"||a.sourceKind==="result-payload"||a.sourceKind==="sub-flow-output"||a.sourceKind==="inline"?a.sourceKind:void 0,children:Array.isArray(a.children)?a.children.map(qf).filter(Boolean):void 0}:null}function xb(n,a,l="action"){if(n&&typeof n=="object"){const c=n;if(typeof c.language=="string"&&typeof c.body=="string")return{language:zT(c.language),body:c.body}}return typeof a=="string"&&a.trim()?{language:"feel",body:a}:wb(l)}function W3(n){if(!n||typeof n!="object")return;const a=n;return{successLabel:typeof a.successLabel=="string"?a.successLabel:void 0,failureLabel:typeof a.failureLabel=="string"?a.failureLabel:void 0,failureMessage:typeof a.failureMessage=="string"?a.failureMessage:void 0}}function q3(n){if(!n||typeof n!="object")return;const a=n;return{targetFlowCode:typeof a.targetFlowCode=="string"?a.targetFlowCode:void 0,childTriggerSchema:fh(a.childTriggerSchema),inputMappings:Array.isArray(a.inputMappings)?a.inputMappings.map(vg).filter(Boolean):[],outputMappings:Array.isArray(a.outputMappings)?a.outputMappings.map(vg).filter(Boolean):[]}}function G3(n){if(!n||typeof n!="object")return;const a=n;return{template:typeof a.template=="string"?a.template:void 0,outputFormat:a.outputFormat==="json"||a.outputFormat==="text"||a.outputFormat==="object"?a.outputFormat:void 0}}function vg(n){if(!n||typeof n!="object")return null;const a=n;return{id:typeof a.id=="string"&&a.id?a.id:`map-${Math.random().toString(36).slice(2,9)}`,sourcePath:typeof a.sourcePath=="string"?a.sourcePath:"",targetPath:typeof a.targetPath=="string"?a.targetPath:"",transform:typeof a.transform=="string"?a.transform:void 0,language:typeof a.language=="string"?zT(a.language):void 0}}function K3(n){const a=vg(n);if(!a||!n||typeof n!="object")return a;const l=n;return{...a,targetField:typeof l.targetField=="string"?l.targetField:void 0,sourceDataType:typeof l.sourceDataType=="string"?l.sourceDataType:void 0,targetDataType:typeof l.targetDataType=="string"?l.targetDataType:void 0,sourceNodeId:typeof l.sourceNodeId=="string"?l.sourceNodeId:void 0,sourceNodeLabel:typeof l.sourceNodeLabel=="string"?l.sourceNodeLabel:void 0,required:l.required===!0?!0:void 0,status:l.status==="mapped"||l.status==="missing"||l.status==="type-mismatch"||l.status==="suggested"?l.status:void 0,transformSuggestion:typeof l.transformSuggestion=="string"?l.transformSuggestion:void 0}}function X3(n){if(!n||typeof n!="object")return null;const a=n,l=typeof a.code=="string"&&a.code.trim()?a.code.trim():"",c=typeof a.message=="string"&&a.message.trim()?a.message.trim():"";return!l||!c?null:{code:l,message:c,severity:a.severity==="warning"||a.severity==="info"?a.severity:"error",nodeId:typeof a.nodeId=="string"?a.nodeId:void 0,fieldPath:typeof a.fieldPath=="string"?a.fieldPath:void 0,sourcePath:typeof a.sourcePath=="string"?a.sourcePath:void 0,targetPath:typeof a.targetPath=="string"?a.targetPath:void 0,relatedNodeId:typeof a.relatedNodeId=="string"?a.relatedNodeId:void 0}}function Q3(n){if(!n||typeof n!="object")return;const a=n,l=typeof a.contractName=="string"&&a.contractName.trim()?a.contractName.trim():"";if(l)return{contractName:l,title:typeof a.title=="string"?a.title:void 0,description:typeof a.description=="string"?a.description:void 0,mode:a.mode==="auto"||a.mode==="manual"||a.mode==="expression"||a.mode==="decision-table"||a.mode==="sub-flow"?a.mode:void 0,fields:Array.isArray(a.fields)?a.fields.map(qf).filter(Boolean):[],mappings:Array.isArray(a.mappings)?a.mappings.map(K3).filter(Boolean):[]}}function J3(n){if(!n||typeof n!="object")return;const a=n;return{upstreamScope:fh(a.upstreamScope),effectiveInput:Q3(a.effectiveInput),outputContract:fh(a.outputContract),validationIssues:Array.isArray(a.validationIssues)?a.validationIssues.map(X3).filter(Boolean):void 0}}function pl(n){const a=typeof n.feelExpression=="string"?n.feelExpression:void 0;return xb(n.expression,a,n.nodeType??"action")}function Ao(n){return n??{targetFlowCode:"",childTriggerSchema:void 0,inputMappings:[],outputMappings:[]}}function AT(n){return n??{outputFormat:"json"}}function Ki(n,a=[]){var l;for(const c of n)a.push(c),(l=c.children)!=null&&l.length&&Ki(c.children,a);return a}function OT(n,a,l){const c=a.trim();return c?{sourceType:(l==null?void 0:l.sourceType)??bb(n),sourceCode:c,label:l==null?void 0:l.label}:l}function LT(n){return n==="trigger"?"input-scope":n==="condition"||n==="action"||n==="decision-table"||n==="sub-flow"||n==="liquid"?"effective-input":"general"}function bb(n){return n==="sub-flow"?"flow":n==="decision-table"?"decision-table":n==="liquid"?"api":"rule"}function Z3(n){const a=["general","input-scope","effective-input","output-contract"];return n!=="trigger"&&n!=="end"&&a.push("expression"),a}function e5(n){return n==="general"?"General":n==="input-scope"?"Input Scope":n==="effective-input"?"Effective Input":n==="output-contract"?"Output Contract":"Expression"}function wb(n){return{language:n==="liquid"?"liquid":"feel",body:""}}function Sb(n){return n==="trigger"||n==="condition"||n==="action"||n==="decision-table"||n==="sub-flow"||n==="liquid"||n==="end"}function Cb(n){return typeof n=="string"&&Sb(n)?n:"action"}function mg(n){return n==="always"||n==="on-true"||n==="on-false"||n==="on-error"?n:"always"}function zT(n){return n==="feel"||n==="liquid"||n==="plain-text"?n:"feel"}function t5(n){return n==="rule"||n==="flow"||n==="decision-table"||n==="api"||n==="inline"?n:"rule"}function dh(n){return Jr(n).nodes.map(l=>({id:l.id,type:l.type,position:l.position,data:{label:l.label,ruleCode:l.ruleCode,nodeType:Cb(l.type),...l.data}}))}function jT(n){return Jr(n).edges.map(l=>({id:l.id,source:l.source,target:l.target,label:l.label??l.edgeType,data:{edgeType:l.edgeType}}))}function n5(n,a){switch(a.type){case"commit":{const l=Jr(a.graph);return ua(l)===ua(n.present)?n:{past:[...n.past,n.present].slice(-50),present:l,future:[]}}case"undo":{if(n.past.length===0)return n;const l=n.past[n.past.length-1];return{past:n.past.slice(0,-1),present:l,future:[n.present,...n.future]}}case"redo":{if(n.future.length===0)return n;const[l,...c]=n.future;return{past:[...n.past,n.present].slice(-50),present:l,future:c}}case"reset":return{past:[],present:Jr(a.graph),future:[]};default:return n}}function r5(n){const a=ue.useMemo(()=>Jr(n),[n]),[l,c]=ue.useReducer(n5,{past:[],present:a,future:[]}),f=ue.useCallback(x=>{c({type:"commit",graph:x})},[]),v=ue.useCallback(()=>{c({type:"undo"})},[]),p=ue.useCallback(()=>{c({type:"redo"})},[]),g=ue.useCallback(x=>{c({type:"reset",graph:x})},[]);return ue.useMemo(()=>({present:l.present,canUndo:l.past.length>0,canRedo:l.future.length>0,commit:f,undo:v,redo:p,reset:g}),[f,p,g,l.future.length,l.past.length,l.present,v])}function a5(n){var x,S,E,w,_,N;const{selectedNode:a,contractLoadState:l,readOnly:c,inspectorTab:f,setInspectorTab:v,showSectionHeader:p=!0}=n,g=a==null?void 0:a.data.contractLayer;return k.jsxs("div",{style:d5,children:[p?k.jsxs("div",{style:Gf,children:[k.jsx("strong",{children:"Inspector"}),k.jsx("span",{children:a?`Editing ${hg[a.data.nodeType]}`:"Select a node to edit it."})]}):null,a?k.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:12,minHeight:0},children:[k.jsx("div",{style:p5,children:Z3(a.data.nodeType).map(D=>k.jsx("button",{type:"button",style:x5(D===f),onClick:()=>v(D),children:e5(D)},D))}),f==="general"?k.jsx(i5,{...n}):null,f==="input-scope"?k.jsx(u5,{title:"Input Scope",subtitle:((x=g==null?void 0:g.upstreamScope)==null?void 0:x.title)??"Everything available before this node executes.",contract:g==null?void 0:g.upstreamScope,loadState:l,readOnly:c,onInsert:n.onInsertExpressionToken,groupBySource:!0}):null,f==="effective-input"?k.jsx(c5,{nodeType:a.data.nodeType,readOnly:c,upstreamFields:Ki(((S=g==null?void 0:g.upstreamScope)==null?void 0:S.fields)??[]),targetFields:((E=g==null?void 0:g.effectiveInput)==null?void 0:E.fields)??[],rows:((w=g==null?void 0:g.effectiveInput)==null?void 0:w.mappings)??[],onInsert:n.onInsertExpressionToken,onChangeTargetFields:n.onChangeInputContract,onChange:n.onChangeEffectiveMappings}):null,f==="output-contract"?k.jsx(f5,{nodeType:a.data.nodeType,contract:g==null?void 0:g.outputContract,upstreamScope:g==null?void 0:g.upstreamScope,issues:(g==null?void 0:g.validationIssues)??[],readOnly:c,onInsert:n.onInsertExpressionToken,onChange:n.onChangeOutputContract}):null,f==="expression"?k.jsx(o5,{nodeType:a.data.nodeType,expression:n.selectedExpression,upstreamScope:g==null?void 0:g.upstreamScope,liquidOutput:(_=a.data.liquidConfig)==null?void 0:_.outputFormat,readOnly:c,apiBaseUrl:n.apiBaseUrl,onChangeLanguage:n.onUpdateExpressionLanguage,onChangeBody:n.onUpdateExpressionBody}):null,(N=g==null?void 0:g.validationIssues)!=null&&N.length?k.jsx($T,{issues:g.validationIssues}):null,l.status==="error"?k.jsx("div",{style:UT,children:l.message}):null,c?null:k.jsx("button",{type:"button",style:v5,onClick:n.onDeleteNode,children:"Delete Node"})]}):k.jsx("div",{style:{color:"#64748b",fontSize:13,lineHeight:1.5},children:"Use the palette to add a node, then inspect available input scope, effective mappings, and output contract before publishing."})]})}function i5(n){var x,S,E;const{selectedNode:a,readOnly:l,flowOptions:c,decisionTableOptions:f,selectedDecisionTable:v,decisionTableLoadState:p}=n;if(!a)return k.jsx(k.Fragment,{});const g=a.data.dependsOn??[];return k.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:10},children:[k.jsxs("label",{style:Li,children:["Label",k.jsx("input",{style:Zr,value:a.data.label,disabled:l,onChange:w=>n.onUpdateLabel(w.target.value)})]}),k.jsxs("label",{style:Li,children:["Rule Code",k.jsx("input",{style:Zr,value:a.data.ruleCode??"",disabled:l,onChange:w=>n.onUpdateRuleCode(w.target.value)})]}),k.jsxs("label",{style:Li,children:["Description",k.jsx("textarea",{style:Eb,value:String(a.data.description??""),disabled:l,onChange:w=>n.onUpdateDescription(w.target.value)})]}),k.jsxs("div",{style:h5,children:[k.jsxs("label",{style:Li,children:["Contract Source",k.jsxs("select",{style:Zr,value:((x=a.data.contractRef)==null?void 0:x.sourceType)??bb(a.data.nodeType),disabled:l,onChange:w=>{var _,N;return n.onUpdateContractRef({sourceType:w.target.value,sourceCode:((_=a.data.contractRef)==null?void 0:_.sourceCode)??a.data.ruleCode??"",label:(N=a.data.contractRef)==null?void 0:N.label})},children:[k.jsx("option",{value:"rule",children:"rule"}),k.jsx("option",{value:"flow",children:"flow"}),k.jsx("option",{value:"decision-table",children:"decision-table"}),k.jsx("option",{value:"api",children:"api"}),k.jsx("option",{value:"inline",children:"inline"})]})]}),k.jsxs("label",{style:Li,children:["Contract Code",k.jsx("input",{style:Zr,value:((S=a.data.contractRef)==null?void 0:S.sourceCode)??"",disabled:l,onChange:w=>{var _,N;return n.onUpdateContractRef({sourceType:((_=a.data.contractRef)==null?void 0:_.sourceType)??bb(a.data.nodeType),sourceCode:w.target.value,label:(N=a.data.contractRef)==null?void 0:N.label})}})]})]}),k.jsxs("div",{style:IT,children:[k.jsxs("div",{children:[k.jsx("strong",{children:"Order:"})," ",a.data.order??"n/a"]}),k.jsxs("div",{style:{display:"flex",gap:6,flexWrap:"wrap",alignItems:"center"},children:[k.jsx("strong",{children:"Depends On:"}),g.length===0?k.jsx("span",{children:"none"}):g.map(w=>k.jsx("button",{type:"button","data-testid":`depends-chip-${w}`,style:m5,onClick:()=>n.onSelectNodeByRuleCode(w),children:w},w))]})]}),a.data.nodeType==="condition"?k.jsx(l5,{readOnly:l,value:a.data.conditionConfig,onChange:n.onUpdateConditionConfig}):null,a.data.nodeType==="decision-table"?k.jsxs(k.Fragment,{children:[k.jsxs("label",{style:Li,children:["Decision Table",k.jsxs("select",{style:Zr,value:((E=a.data.contractRef)==null?void 0:E.sourceCode)??"",disabled:l,onChange:w=>n.onUpdateDecisionTableCode(w.target.value),children:[k.jsx("option",{value:"",children:"Select decision table"}),f.map(w=>k.jsx("option",{value:w.code,children:w.label},w.code))]})]}),k.jsx(s5,{table:v,loadState:p})]}):null,a.data.nodeType==="sub-flow"?k.jsxs("label",{style:Li,children:["Target Flow Code",k.jsxs("select",{style:Zr,value:Ao(a.data.subFlowConfig).targetFlowCode??"",disabled:l,onChange:w=>n.onUpdateTargetFlowCode(w.target.value),children:[k.jsx("option",{value:"",children:"Select target flow"}),c.map(w=>k.jsx("option",{value:w.code,children:w.label},w.code))]})]}):null,a.data.nodeType==="liquid"?k.jsxs("label",{style:Li,children:["Liquid Output",k.jsxs("select",{style:Zr,value:AT(a.data.liquidConfig).outputFormat??"json",disabled:l,onChange:w=>n.onUpdateLiquidOutput(w.target.value),children:[k.jsx("option",{value:"json",children:"json"}),k.jsx("option",{value:"object",children:"object"}),k.jsx("option",{value:"text",children:"text"})]})]}):null]})}function o5({nodeType:n,expression:a,upstreamScope:l,liquidOutput:c,readOnly:f,apiBaseUrl:v,onChangeLanguage:p,onChangeBody:g}){const x=n==="liquid"||a.language==="liquid"?y5(a.body,(l==null?void 0:l.fields)??[],c??"json"):"";return k.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:10},children:[k.jsxs("label",{style:Li,children:["Expression Language",k.jsxs("select",{style:Zr,value:a.language,disabled:f,onChange:S=>p(S.target.value),children:[k.jsx("option",{value:"feel",children:"FEEL"}),k.jsx("option",{value:"liquid",children:"Liquid"}),k.jsx("option",{value:"plain-text",children:"Plain Text"})]})]}),k.jsxs("label",{style:Li,children:[a.language==="liquid"?"Liquid Template":"Expression",k.jsx("textarea",{style:{...Eb,minHeight:180},value:a.body,disabled:f,onChange:S=>g(S.target.value)})]}),k.jsxs("div",{style:gg,children:[k.jsx("strong",{children:"Authoring hints"}),k.jsx("span",{children:"Click any field in Input Scope or Output Contract to insert its path into the current FEEL/Liquid expression."}),v?k.jsxs("span",{children:["Contract API: ",v]}):null]}),n==="liquid"||a.language==="liquid"?k.jsxs("div",{style:gg,children:[k.jsx("strong",{children:"Liquid Preview"}),k.jsx("pre",{style:g5,children:x||"Preview is empty."})]}):null]})}function l5({readOnly:n,value:a,onChange:l}){const c={successLabel:(a==null?void 0:a.successLabel)??"Valid",failureLabel:(a==null?void 0:a.failureLabel)??"Rejected",failureMessage:(a==null?void 0:a.failureMessage)??""};return k.jsxs("div",{style:{display:"grid",gap:10},children:[k.jsxs("label",{style:Li,children:["Success Label",k.jsx("input",{style:Zr,value:c.successLabel,disabled:n,onChange:f=>l({...c,successLabel:f.target.value})})]}),k.jsxs("label",{style:Li,children:["Failure Label",k.jsx("input",{style:Zr,value:c.failureLabel,disabled:n,onChange:f=>l({...c,failureLabel:f.target.value})})]}),k.jsxs("label",{style:Li,children:["Failure Message",k.jsx("textarea",{style:Eb,value:c.failureMessage,disabled:n,onChange:f=>l({...c,failureMessage:f.target.value})})]})]})}function s5({table:n,loadState:a}){return k.jsxs("div",{style:IT,"data-testid":"decision-table-overview",children:[k.jsxs("div",{style:Gf,children:[k.jsx("strong",{children:"Decision Table Schema"}),k.jsx("span",{children:(a==null?void 0:a.status)==="loading"?"Loading decision table columns...":(a==null?void 0:a.status)==="error"?a.message:"Input and output columns drive node contracts and FEEL cell authoring."})]}),n?k.jsxs(k.Fragment,{children:[k.jsxs("div",{children:[k.jsx("strong",{children:n.name})," · v",n.version," · hit policy ",n.hitPolicy]}),n.description?k.jsx("div",{children:n.description}):null,k.jsxs("div",{style:{display:"grid",gap:8},children:[k.jsxs("div",{children:[k.jsx("strong",{children:"Input Columns"}),k.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:6,marginTop:6},children:n.inputColumns.map(l=>k.jsxs("span",{style:Rb,children:[l.label," (",l.dataType,")"]},l.id))})]}),k.jsxs("div",{children:[k.jsx("strong",{children:"Output Columns"}),k.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:6,marginTop:6},children:n.outputColumns.map(l=>k.jsxs("span",{style:Rb,children:[l.label," (",l.dataType,")"]},l.id))})]})]}),k.jsxs("div",{style:gg,children:[k.jsx("strong",{children:"FEEL cell hints"}),k.jsx("span",{children:"Input columns become the effective input contract for this node. Output columns are emitted downstream after the table evaluates."}),k.jsx("span",{children:"Use FEEL row expressions against the input column names exactly as defined here."})]})]}):(a==null?void 0:a.status)==="idle"?k.jsx("span",{children:"Select a decision table to preview its column schema."}):null]})}function u5({title:n,subtitle:a,contract:l,loadState:c,readOnly:f,onInsert:v,groupBySource:p}){const g=Ki((l==null?void 0:l.fields)??[]),x=new Map;for(const S of g){const E=p?S.sourceNodeLabel??(S.sourceKind==="flow-input"?"Flow Input":"Current Scope"):"All Fields",w=x.get(E)??[];w.push(S),x.set(E,w)}return k.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:10},children:[k.jsxs("div",{style:Gf,children:[k.jsx("strong",{children:n}),k.jsx("span",{children:c.status==="loading"?"Loading contract...":a})]}),g.length===0?k.jsx("div",{style:{color:"#64748b",fontSize:13},children:c.status==="loading"?"Fetching contract metadata...":"No scope metadata available for this node."}):[...x.entries()].map(([S,E])=>k.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[p?k.jsx("div",{style:{fontSize:12,fontWeight:700,color:"#475569"},children:S}):null,k.jsx(PT,{fields:E,readOnly:f,onInsert:v})]},S))]})}function c5({nodeType:n,readOnly:a,upstreamFields:l,targetFields:c,rows:f,onInsert:v,onChangeTargetFields:p,onChange:g}){const x=n==="action"||n==="sub-flow",S=n==="action";function E(D,R){g(f.map(j=>j.id===D?R(j):j))}function w(){const D=`input.${c.length+1}`;p([...c,{path:D,label:D,dataType:"string",required:!1}])}function _(D,R){const j=c.find(U=>U.path===D);if(!j)return;const z=R(j);p(c.map(U=>U.path===D?z:U)),g(f.map(U=>(U.targetField??U.targetPath)===D?{...U,targetField:z.path,targetPath:z.path,targetDataType:z.dataType,required:z.required}:U))}function N(D){p(c.filter(R=>R.path!==D)),g(f.filter(R=>(R.targetField??R.targetPath)!==D))}return k.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:10},children:[k.jsxs("div",{style:{display:"flex",justifyContent:"space-between",gap:12,alignItems:"center"},children:[k.jsxs("div",{style:Gf,children:[k.jsx("strong",{children:"Effective Input"}),k.jsx("span",{children:x?"Map upstream fields into this node's input slots.":"References inferred from current FEEL/Liquid and available inputs."})]}),!a&&S?k.jsx("button",{type:"button",style:hl(!1),onClick:w,children:"Add Input Slot"}):null]}),k.jsx("div",{style:_b,children:k.jsxs("table",{style:Tb,children:[k.jsx("thead",{children:k.jsxs("tr",{children:[k.jsx("th",{style:Ga,children:"Source"}),k.jsx("th",{style:Ga,children:"Target"}),k.jsx("th",{style:Ga,children:"Type"}),k.jsx("th",{style:Ga,children:"Status"}),k.jsx("th",{style:Ga,children:"Transform"}),S?k.jsx("th",{style:Ga,children:"Actions"}):null]})}),k.jsx("tbody",{children:f.length===0?k.jsx("tr",{children:k.jsx("td",{style:Da,colSpan:S?6:5,children:"No effective input mapping available yet."})}):f.map(D=>k.jsxs("tr",{children:[k.jsx("td",{style:Da,children:x?k.jsx("input",{list:"upstream-scope-fields",style:Zr,value:D.sourcePath,disabled:a,onChange:R=>E(D.id,j=>({...j,sourcePath:R.target.value}))}):k.jsx("button",{type:"button",style:ph,onClick:()=>v(D.sourcePath),disabled:a||!D.sourcePath,children:D.sourcePath||"unmapped"})}),k.jsx("td",{style:Da,children:S?k.jsx("input",{style:Zr,value:D.targetField??D.targetPath,disabled:a,onChange:R=>_(D.targetField??D.targetPath,j=>({...j,path:R.target.value,label:R.target.value}))}):D.targetField??D.targetPath}),k.jsx("td",{style:Da,children:S?k.jsx("input",{style:Zr,value:D.targetDataType??"string",disabled:a,onChange:R=>_(D.targetField??D.targetPath,j=>({...j,dataType:R.target.value}))}):k.jsxs(k.Fragment,{children:[D.sourceDataType??"unknown"," → ",D.targetDataType??"unknown"]})}),k.jsxs("td",{style:Da,children:[D.status??"mapped",D.required?" / required":""]}),k.jsx("td",{style:Da,children:x?k.jsx("input",{style:Zr,value:D.transform??D.transformSuggestion??"",disabled:a,onChange:R=>E(D.id,j=>({...j,transform:R.target.value}))}):D.transformSuggestion??D.transform??"—"}),S?k.jsx("td",{style:Da,children:k.jsx("button",{type:"button",style:ph,disabled:a,onClick:()=>N(D.targetField??D.targetPath),children:"Remove"})}):null]},D.id))})]})}),k.jsx("datalist",{id:"upstream-scope-fields",children:l.map(D=>k.jsx("option",{value:D.path},D.path))}),c.length?k.jsxs("div",{style:gg,children:[k.jsx("strong",{children:"Required input slots"}),k.jsx("span",{children:c.filter(D=>D.required).map(D=>D.path).join(", ")||"No required fields declared."})]}):null]})}function f5({nodeType:n,contract:a,upstreamScope:l,issues:c,readOnly:f,onInsert:v,onChange:p}){if(n==="end")return k.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:10},children:[k.jsxs("div",{style:Gf,children:[k.jsx("strong",{children:"Final Scope"}),k.jsx("span",{children:"Everything guaranteed to be available when the flow reaches this end node."})]}),k.jsx(PT,{fields:Ki((l==null?void 0:l.fields)??[]),readOnly:f,onInsert:v})]});const g=n==="condition"||n==="action",x=Ki((a==null?void 0:a.fields)??[]),S=n==="condition",E=S?"Output Facts (on pass)":"Output Contract",w=S?"These facts are written only when the condition passes.":g?"Edit the fields this node guarantees for downstream nodes.":"Auto-composed contract for downstream validation.";function _(R,j){p(x.map((z,U)=>U===R?j(z):z))}function N(R){p(x.filter((j,z)=>z!==R))}function D(){const R=`custom.${x.length+1}`;p([...x,{path:R,label:R,dataType:"string",required:!1}])}return k.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:10},children:[k.jsxs("div",{style:{display:"flex",justifyContent:"space-between",gap:12,alignItems:"center"},children:[k.jsxs("div",{style:Gf,children:[k.jsx("strong",{children:E}),k.jsx("span",{children:w})]}),!f&&g?k.jsx("button",{type:"button",style:hl(!1),onClick:D,children:"Add Field"}):null]}),x.length===0?k.jsx("div",{style:{color:"#64748b",fontSize:13},children:"This node currently produces no downstream fields."}):k.jsx("div",{style:_b,children:k.jsxs("table",{style:Tb,children:[k.jsx("thead",{children:k.jsxs("tr",{children:[k.jsx("th",{style:Ga,children:"Path"}),k.jsx("th",{style:Ga,children:"Type"}),S?k.jsx("th",{style:Ga,children:"Value Expression"}):null,k.jsx("th",{style:Ga,children:"Use"}),k.jsx("th",{style:Ga,children:"Expose"})]})}),k.jsx("tbody",{children:x.map((R,j)=>k.jsxs("tr",{children:[k.jsx("td",{style:Da,children:g&&!R.isResultPayload?k.jsx("input",{style:Zr,value:R.path,disabled:f,onChange:z=>_(j,U=>({...U,path:z.target.value,label:z.target.value}))}):k.jsx("button",{type:"button",style:ph,onClick:()=>v(R.path),disabled:f,children:R.path})}),k.jsx("td",{style:Da,children:g&&!R.isResultPayload?k.jsx("input",{style:Zr,value:R.dataType,disabled:f,onChange:z=>_(j,U=>({...U,dataType:z.target.value}))}):R.dataType}),S?k.jsx("td",{style:Da,children:R.isResultPayload?k.jsx("span",{style:{color:"#64748b"},children:"Auto"}):g?k.jsx("input",{style:Zr,value:R.valueExpression??"",disabled:f,onChange:z=>_(j,U=>({...U,valueExpression:z.target.value,runtimeWritten:z.target.value.trim().length>0}))}):R.valueExpression??"—"}):null,k.jsx("td",{style:Da,children:R.isResultPayload?"result payload":S?R.runtimeWritten?"runtime fact":"metadata only":R.required?"required":"optional"}),k.jsx("td",{style:Da,children:k.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,flexWrap:"wrap"},children:[k.jsxs("label",{style:{display:"flex",alignItems:"center",gap:6},children:[k.jsx("input",{type:"checkbox",checked:R.exposeToParent!==!1,disabled:f||R.isResultPayload,onChange:z=>_(j,U=>({...U,exposeToParent:z.target.checked}))}),"parent"]}),!f&&g&&!R.isResultPayload?k.jsx("button",{type:"button",style:ph,onClick:()=>N(j),children:"delete"}):null]})})]},`output-contract-${j}`))})]})}),c.length?k.jsx($T,{issues:c.filter(R=>R.severity!=="info")}):null]})}function PT({fields:n,readOnly:a,onInsert:l}){return k.jsx("div",{style:_b,children:k.jsxs("table",{style:Tb,children:[k.jsx("thead",{children:k.jsxs("tr",{children:[k.jsx("th",{style:Ga,children:"Path"}),k.jsx("th",{style:Ga,children:"Type"}),k.jsx("th",{style:Ga,children:"Description"}),k.jsx("th",{style:Ga,children:"Use"})]})}),k.jsx("tbody",{children:n.map(c=>k.jsxs("tr",{children:[k.jsx("td",{style:Da,children:k.jsx("button",{type:"button",style:ph,onClick:()=>l(c.path),disabled:a,children:c.path})}),k.jsx("td",{style:Da,children:c.dataType}),k.jsx("td",{style:Da,children:c.description??c.label}),k.jsx("td",{style:Da,children:c.required?"required":"optional"})]},`${c.sourceNodeId??"scope"}:${c.path}`))})]})})}function $T({issues:n}){return k.jsx("div",{style:{display:"flex",flexDirection:"column",gap:6},children:n.map(a=>k.jsxs("div",{style:a.severity==="error"?UT:FT,children:[k.jsx("strong",{children:a.code})," ",a.message]},`${a.code}:${a.message}:${a.fieldPath??""}`))})}const Gf={display:"flex",flexDirection:"column",gap:4,fontSize:13,color:"#64748b"},d5={display:"flex",flexDirection:"column",gap:12,padding:18,width:"100%",minWidth:0,borderRadius:18,background:"rgba(248, 250, 252, 0.9)",border:"1px solid rgba(148, 163, 184, 0.18)"},p5={display:"flex",flexWrap:"wrap",gap:6,paddingBottom:8,borderBottom:"1px solid rgba(148, 163, 184, 0.2)"},Li={display:"flex",flexDirection:"column",gap:6,fontSize:13,color:"#334155"},Zr={borderRadius:12,border:"1px solid rgba(148, 163, 184, 0.35)",padding:"11px 13px",fontSize:14,width:"100%"},Eb={...Zr,minHeight:116,resize:"vertical"},_b={borderRadius:16,border:"1px solid rgba(148, 163, 184, 0.18)",overflow:"auto",maxHeight:420,minWidth:0,background:"#ffffff"},Tb={width:"100%",minWidth:520,borderCollapse:"collapse"},Ga={position:"sticky",top:0,background:"#f8fafc",textAlign:"left",padding:"10px 12px",fontSize:12,color:"#475569",borderBottom:"1px solid rgba(148, 163, 184, 0.18)"},Da={padding:"10px 12px",fontSize:12,color:"#0f172a",borderBottom:"1px solid rgba(226, 232, 240, 0.85)",verticalAlign:"top"},ph={border:"none",background:"transparent",color:"#2563eb",padding:0,cursor:"pointer",fontFamily:"inherit",fontSize:12,textAlign:"left"},h5={display:"grid",gridTemplateColumns:"repeat(2, minmax(0, 1fr))",gap:10},v5={borderRadius:12,border:"1px solid rgba(220, 38, 38, 0.24)",background:"rgba(254, 242, 242, 0.95)",color:"#b91c1c",padding:"12px 14px",fontWeight:600},gg={display:"flex",flexDirection:"column",gap:4,padding:12,borderRadius:14,background:"rgba(241, 245, 249, 0.9)",color:"#475569",fontSize:12,lineHeight:1.5},UT={borderRadius:12,border:"1px solid rgba(220, 38, 38, 0.18)",background:"rgba(254, 242, 242, 0.9)",color:"#b91c1c",padding:"10px 12px",fontSize:12},FT={borderRadius:12,border:"1px solid rgba(245, 158, 11, 0.18)",background:"rgba(255, 251, 235, 0.9)",color:"#92400e",padding:"10px 12px",fontSize:12},IT={borderRadius:14,border:"1px solid rgba(148, 163, 184, 0.18)",background:"rgba(255,255,255,0.9)",padding:12,display:"flex",flexDirection:"column",gap:8,fontSize:12,color:"#334155"},Rb={borderRadius:999,padding:"4px 8px",background:"rgba(15, 23, 42, 0.08)",color:"#0f172a",fontSize:11,fontWeight:600},m5={...Rb,border:"none",cursor:"pointer"},g5={margin:0,whiteSpace:"pre-wrap",wordBreak:"break-word",fontFamily:"ui-monospace, SFMono-Regular, Menlo, Consolas, monospace",fontSize:12};function y5(n,a,l){const c=Ki(a),f=new Map(c.map(p=>[p.path,p.example??`<${p.path}>`])),v=n.replace(/\{\{\s*([a-zA-Z_][a-zA-Z0-9_.]*)\s*\}\}/g,(p,g)=>String(f.get(g)??`<${g}>`));return v}function hl(n){return{borderRadius:12,border:n?"1px solid rgba(37, 99, 235, 0.28)":"1px solid rgba(148, 163, 184, 0.35)",background:n?"rgba(37, 99, 235, 0.14)":"rgba(255, 255, 255, 0.9)",color:"#0f172a",padding:"10px 12px",fontWeight:600}}function x5(n){return{borderRadius:999,border:n?`1px solid ${Wf.condition}40`:"1px solid rgba(148, 163, 184, 0.24)",background:n?`${Wf.condition}14`:"#ffffff",color:"#0f172a",fontSize:13,padding:"10px 14px",fontWeight:600}}function b5({groups:n,loading:a,readOnly:l,onAddRule:c,onDragStart:f}){const[v,p]=ue.useState(""),g=v.trim().toLowerCase(),x=ue.useMemo(()=>[...n].sort((E,w)=>E.category.localeCompare(w.category)).map(E=>({...E,items:[...E.items].filter(w=>w5(w,g)).sort((w,_)=>w.displayName.localeCompare(_.displayName))})).filter(E=>E.items.length>0),[n,g]);return k.jsxs("div",{style:S5,children:[k.jsxs("div",{style:C5,children:[k.jsx("strong",{children:"Rule Catalog"}),k.jsx("span",{children:"Load reusable rule templates from the control plane and drop them into the flow."})]}),k.jsxs("label",{style:E5,children:["Search rules",k.jsx("input",{"data-testid":"catalog-search-input",style:_5,value:v,onChange:S=>p(S.target.value),placeholder:"Search by name, code, tag or description",disabled:a})]}),a?k.jsx("div",{"data-testid":"catalog-loading-state",style:BT,children:"Loading rule catalog..."}):null,!a&&x.length===0?k.jsx("div",{"data-testid":"catalog-empty-state",style:BT,children:g?"No rules match the current search.":"No rules available."}):null,a?null:x.map(S=>k.jsxs("div",{"data-testid":`catalog-group-${S.category}`,style:T5,children:[k.jsx("span",{style:R5,children:S.category}),S.items.map(E=>k.jsx("button",{type:"button",style:k5,"data-testid":`palette-rule-${E.code}`,draggable:!l,onClick:()=>c(E),onDragStart:w=>f(w,E),disabled:l,children:k.jsxs("span",{style:M5,children:[k.jsx("strong",{children:E.displayName}),k.jsx("span",{style:N5,children:E.code}),E.description?k.jsx("span",{style:D5,children:E.description}):null,E.tags.length>0?k.jsx("span",{style:A5,children:E.tags.join(" · ")}):null]})},E.code))]},S.category))]})}function w5(n,a){return a?[n.code,n.displayName,n.description??"",...n.tags??[]].join(" ").toLowerCase().includes(a):!0}const S5={display:"flex",flexDirection:"column",gap:10},C5={display:"flex",flexDirection:"column",gap:4,fontSize:13,color:"#64748b"},E5={display:"flex",flexDirection:"column",gap:6,fontSize:12,color:"#475569",fontWeight:600},_5={borderRadius:12,border:"1px solid rgba(148, 163, 184, 0.32)",background:"#ffffff",color:"#0f172a",minHeight:40,padding:"10px 12px",fontSize:13},BT={borderRadius:14,border:"1px dashed rgba(148, 163, 184, 0.35)",background:"rgba(248, 250, 252, 0.9)",color:"#64748b",padding:"12px 14px",fontSize:13,lineHeight:1.5},T5={display:"flex",flexDirection:"column",gap:8},R5={fontSize:12,fontWeight:700,letterSpacing:"0.04em",textTransform:"uppercase",color:"#475569"},k5={borderRadius:14,border:"1px solid rgba(124, 58, 237, 0.14)",background:"rgba(124, 58, 237, 0.08)",color:"#0f172a",padding:"11px 12px",textAlign:"left",fontWeight:600},M5={display:"flex",flexDirection:"column",gap:4},N5={fontSize:12,fontWeight:500,color:"#475569"},D5={fontSize:12,fontWeight:500,color:"#64748b"},A5={fontSize:11,color:"#7c3aed"},O5={canvasGradient:"radial-gradient(circle at top left, rgba(37,99,235,0.12), transparent 38%), linear-gradient(180deg, rgba(248,250,252,0.96), rgba(241,245,249,0.92))",sidebarBg:"rgba(248,250,252,0.92)",sidebarBorder:"1px solid rgba(148,163,184,0.18)",sidebarOpenBg:"rgba(255,255,255,0.94)",sidebarOpenBorder:"1px solid rgba(148,163,184,0.28)",sidebarOpenShadow:"0 12px 30px rgba(15,23,42,0.06)",sidebarHeaderColor:"#0f172a",nodeBg:"#ffffff",nodeBorder:"1px solid rgba(15,23,42,0.12)",nodeShadow:"0 14px 30px rgba(15,23,42,0.10)",nodeText:"#0f172a",nodeSubtext:"#475569",nodeMutedText:"#64748b",inspectorBg:"rgba(248,250,252,0.9)",inspectorBorder:"1px solid rgba(148,163,184,0.18)",inputBg:"#ffffff",inputBorder:"1px solid rgba(148,163,184,0.35)",inputText:"#0f172a",labelColor:"#334155",overlayBg:"rgba(255,255,255,0.95)",overlayBorder:"1px solid rgba(148,163,184,0.28)",overlayShadow:"0 18px 40px rgba(15,23,42,0.12)",overlayItemBg:"rgba(248,250,252,0.94)",overlayItemBorder:"1px solid rgba(148,163,184,0.2)",overlayItemSelectedBg:"rgba(219,234,254,0.92)",overlayItemSelectedBorder:"1px solid rgba(37,99,235,0.26)",backdropBg:"rgba(15,23,42,0.38)",dialogBg:"#ffffff",dialogBorder:"1px solid rgba(148,163,184,0.28)",dialogShadow:"0 24px 60px rgba(15,23,42,0.22)",textPrimary:"#0f172a",textSecondary:"#475569",textMuted:"#64748b",paletteBtnBorderAlpha:"22",paletteBtnBgAlpha:"10",chevronBg:"rgba(148,163,184,0.12)",chevronColor:"#475569",sectionDescColor:"#64748b",tabActiveAlphaBorder:"40",tabActiveAlphaBg:"14",tabInactiveBorder:"1px solid rgba(148,163,184,0.24)",tabInactiveBg:"#ffffff",hintBg:"rgba(248,250,252,0.96)",hintBorder:"1px solid rgba(148,163,184,0.24)",hintText:"#334155",errorBg:"rgba(254,242,242,0.9)",errorBorder:"1px solid rgba(220,38,38,0.18)",errorText:"#b91c1c",warningBg:"rgba(255,251,235,0.9)",warningBorder:"1px solid rgba(245,158,11,0.18)",warningText:"#92400e",deleteBg:"rgba(254,242,242,0.96)",deleteBorder:"1px solid rgba(220,38,38,0.2)",deleteText:"#b91c1c",actionPrimaryBorder:"1px solid rgba(37,99,235,0.28)",actionPrimaryBg:"rgba(37,99,235,0.14)",actionSecondaryBorder:"1px solid rgba(148,163,184,0.35)",actionSecondaryBg:"rgba(255,255,255,0.9)",validationErrorBg:"rgba(254,242,242,0.95)",validationErrorBorder:"1px solid rgba(220,38,38,0.24)",validationErrorText:"#b91c1c",validationWarnBg:"rgba(255,251,235,0.95)",validationWarnBorder:"1px solid rgba(245,158,11,0.24)",validationWarnText:"#92400e",licenseBg:"rgba(255,251,235,0.95)",licenseBorder:"1px solid rgba(245,158,11,0.35)",licenseText:"#92400e",edgeLabelBg:"#ffffff"},L5={canvasGradient:"radial-gradient(circle at top left, rgba(37,99,235,0.16), transparent 38%), linear-gradient(180deg, #1e293b, #0f172a)",sidebarBg:"rgba(30,41,59,0.92)",sidebarBorder:"1px solid rgba(71,85,105,0.32)",sidebarOpenBg:"rgba(30,41,59,0.96)",sidebarOpenBorder:"1px solid rgba(71,85,105,0.45)",sidebarOpenShadow:"0 12px 30px rgba(0,0,0,0.25)",sidebarHeaderColor:"#e2e8f0",nodeBg:"#1e293b",nodeBorder:"1px solid rgba(71,85,105,0.38)",nodeShadow:"0 14px 30px rgba(0,0,0,0.25)",nodeText:"#e2e8f0",nodeSubtext:"#94a3b8",nodeMutedText:"#64748b",inspectorBg:"rgba(15,23,42,0.9)",inspectorBorder:"1px solid rgba(71,85,105,0.32)",inputBg:"#0f172a",inputBorder:"1px solid rgba(71,85,105,0.45)",inputText:"#e2e8f0",labelColor:"#cbd5e1",overlayBg:"rgba(30,41,59,0.95)",overlayBorder:"1px solid rgba(71,85,105,0.38)",overlayShadow:"0 18px 40px rgba(0,0,0,0.30)",overlayItemBg:"rgba(15,23,42,0.7)",overlayItemBorder:"1px solid rgba(71,85,105,0.3)",overlayItemSelectedBg:"rgba(37,99,235,0.2)",overlayItemSelectedBorder:"1px solid rgba(37,99,235,0.45)",backdropBg:"rgba(0,0,0,0.55)",dialogBg:"#1e293b",dialogBorder:"1px solid rgba(71,85,105,0.45)",dialogShadow:"0 24px 60px rgba(0,0,0,0.40)",textPrimary:"#e2e8f0",textSecondary:"#94a3b8",textMuted:"#64748b",paletteBtnBorderAlpha:"30",paletteBtnBgAlpha:"18",chevronBg:"rgba(71,85,105,0.24)",chevronColor:"#94a3b8",sectionDescColor:"#94a3b8",tabActiveAlphaBorder:"55",tabActiveAlphaBg:"22",tabInactiveBorder:"1px solid rgba(71,85,105,0.32)",tabInactiveBg:"#1e293b",hintBg:"rgba(15,23,42,0.85)",hintBorder:"1px solid rgba(71,85,105,0.32)",hintText:"#94a3b8",errorBg:"rgba(127,29,29,0.25)",errorBorder:"1px solid rgba(220,38,38,0.35)",errorText:"#fca5a5",warningBg:"rgba(120,53,15,0.25)",warningBorder:"1px solid rgba(245,158,11,0.35)",warningText:"#fcd34d",deleteBg:"rgba(127,29,29,0.3)",deleteBorder:"1px solid rgba(220,38,38,0.35)",deleteText:"#fca5a5",actionPrimaryBorder:"1px solid rgba(59,130,246,0.45)",actionPrimaryBg:"rgba(59,130,246,0.2)",actionSecondaryBorder:"1px solid rgba(71,85,105,0.45)",actionSecondaryBg:"rgba(30,41,59,0.8)",validationErrorBg:"rgba(127,29,29,0.25)",validationErrorBorder:"1px solid rgba(220,38,38,0.35)",validationErrorText:"#fca5a5",validationWarnBg:"rgba(120,53,15,0.25)",validationWarnBorder:"1px solid rgba(245,158,11,0.35)",validationWarnText:"#fcd34d",licenseBg:"rgba(120,53,15,0.25)",licenseBorder:"1px solid rgba(245,158,11,0.35)",licenseText:"#fcd34d",edgeLabelBg:"#1e293b"};function yg(n){return n==="dark"?L5:O5}const HT={trigger:"M6 2.5v11l5.5-5.5z",condition:"M8 1L15 8 8 15 1 8zm0 2.83L3.83 8 8 12.17 12.17 8z",action:"M7 2v5H2v2h5v5h2V9h5V7H9V2z","decision-table":"M2 3h12v1.5H2zm0 3.5h12V8H2zm0 3.5h12V11.5H2zm0 3.5h12V15H2z","sub-flow":"M3 3h4v4H3zm6 0h4v4H9zM5 7v2h6V7M8 9v3M5 12h6",liquid:"M8 1C5.8 5.3 3 7.4 3 10.5 3 13 5.2 15 8 15s5-2 5-4.5C13 7.4 10.2 5.3 8 1z",end:"M8 2a6 6 0 100 12A6 6 0 008 2zm0 3a3 3 0 110 6 3 3 0 010-6z"},z5={trigger:"Entry point for the rule flow",condition:"Evaluate a rule with pass/fail routing",action:"Execute side effects or transformations","decision-table":"Evaluate a FEEL decision table","sub-flow":"Delegate to another rule flow",liquid:"Transform data with Liquid templates",end:"Terminal node — flow completes here"},j5={always:"#64748b","on-true":"#16a34a","on-false":"#dc2626","on-error":"#d97706"},P5={always:"#94a3b8","on-true":"#4ade80","on-false":"#f87171","on-error":"#fbbf24"};function VT(n,a){const l=Jr(n),c=$5(l,a);return{...l,nodes:l.nodes.map(f=>{var v,p,g,x;return{...f,data:{...f.data,contractLayer:c.get(f.id),dependsOn:f.data.dependsOn??((p=(v=a.nodeContractsById)==null?void 0:v.get(f.id))==null?void 0:p.dependsOn)??[],order:f.data.order??((x=(g=a.nodeContractsById)==null?void 0:g.get(f.id))==null?void 0:x.order)}}})}}function YT(n,a){const l=Kf(n,a),c=VT(l.graph,a),f=c.nodes.flatMap(v=>{var p;return((p=v.data.contractLayer)==null?void 0:p.validationIssues)??[]});return{graph:c,issues:[...l.issues,...f],isValid:l.isValid&&f.every(v=>v.severity!=="error")}}function Kf(n,a){var N,D;const l=Jr(n),c=l.nodes.filter(R=>R.type!=="trigger"&&R.type!=="end"),f=new Set(c.map(R=>R.id)),v=new Map(c.filter(R=>R.ruleCode).map(R=>[R.ruleCode,R.id])),p=new Map,g=new Map,x=R=>{p.has(R)||p.set(R,new Set),g.has(R)||g.set(R,0)},S=(R,j)=>{if(R===j||!f.has(R)||!f.has(j))return;x(R),x(j);const z=p.get(R);z.has(j)||(z.add(j),g.set(j,(g.get(j)??0)+1))};for(const R of c){x(R.id);const j=R.data.dependsOn??((D=(N=a.nodeContractsById)==null?void 0:N.get(R.id))==null?void 0:D.dependsOn)??[];for(const z of j){const U=v.get(z);U&&S(U,R.id)}}for(const R of l.edges)S(R.source,R.target);const E=[...c].sort((R,j)=>{var L,$,H,I;const z=R.data.order??(($=(L=a.nodeContractsById)==null?void 0:L.get(R.id))==null?void 0:$.order)??Number.MAX_SAFE_INTEGER,U=j.data.order??((I=(H=a.nodeContractsById)==null?void 0:H.get(j.id))==null?void 0:I.order)??Number.MAX_SAFE_INTEGER;return z!==U?z-U:R.label.localeCompare(j.label)}).filter(R=>(g.get(R.id)??0)===0).map(R=>R.id),w=[];for(;E.length>0;){const R=E.shift();w.push(R);const j=[...p.get(R)??[]].sort((z,U)=>z.localeCompare(U));for(const z of j){const U=(g.get(z)??0)-1;g.set(z,U),U===0&&E.push(z)}}if(w.length!==c.length)return{graph:l,issues:[{code:"MRF008",severity:"error",message:"Rule flow contains a dependency cycle or invalid ordering edge."}],isValid:!1};const _=new Map(w.map((R,j)=>[R,j+1]));return{graph:{...l,nodes:l.nodes.map(R=>{var j,z;return f.has(R.id)?{...R,data:{...R.data,order:_.get(R.id)??R.data.order,dependsOn:R.data.dependsOn??((z=(j=a.nodeContractsById)==null?void 0:j.get(R.id))==null?void 0:z.dependsOn)??[]}}:R})},issues:[],isValid:!0}}function $5(n,a){const l=new Map(n.nodes.map(R=>[R.id,R])),c=new Map;for(const R of n.edges){const j=c.get(R.target)??[];j.push(R),c.set(R.target,j)}const f=new Map,v=new Set,p=R=>R.type,g=U5(n,a),x=(R,j)=>{var I,q;const z=l.get(R);if(!z)return[];const U=D(z),L=eu(((I=U.upstreamScope)==null?void 0:I.fields)??[]),$=eu(((q=U.outputContract)==null?void 0:q.fields)??[]);if(p(z)!=="condition")return fc([...L,...qT($)]);const H=j==="on-false"?$.filter(ie=>ie.isResultPayload):$;return fc([...L,...qT(H)])},S=R=>{var L,$,H,I;const j=R.data.dependsOn??(($=(L=a.nodeContractsById)==null?void 0:L.get(R.id))==null?void 0:$.dependsOn)??[];if(j.length>0){const q=n.nodes.filter(ie=>ie.ruleCode&&j.includes(ie.ruleCode));return fc(q.flatMap(ie=>x(ie.id,"always")))}const z=R.data.order??((I=(H=a.nodeContractsById)==null?void 0:H.get(R.id))==null?void 0:I.order)??Number.MAX_SAFE_INTEGER,U=n.nodes.filter(q=>{var fe,Se;const ie=q.data.order??((Se=(fe=a.nodeContractsById)==null?void 0:fe.get(q.id))==null?void 0:Se.order)??Number.MAX_SAFE_INTEGER;return q.id!==R.id&&ie<z});return fc(U.flatMap(q=>x(q.id,"always")))},E=R=>{if(R.type==="trigger")return{contractName:`${a.flowCode??"flow"}_trigger_input`,title:"Input Scope",fields:g.map(U=>cc(U,{sourceKind:"flow-input"}))};const j=c.get(R.id)??[],z=j.length>0?j.flatMap(U=>x(U.source,U.edgeType)):S(R);return z.length===0&&z.push(...g.map(U=>cc(U,{sourceKind:"flow-input"}))),{contractName:`${R.ruleCode??R.id}_input_scope`,title:"Input Scope",fields:fc(z)}},w=(R,j)=>{var q,ie,fe,Se,oe,de,he,V,ce;const z=(q=a.nodeContractsById)==null?void 0:q.get(R.id),U=R.type==="sub-flow"?(ie=a.flowContractsByCode)==null?void 0:ie.get(Ao(R.data.subFlowConfig).targetFlowCode??""):void 0,L=((fe=R.data.contractOverride)==null?void 0:fe.responseFields)??[],H=(L.length>0?I5(((Se=U==null?void 0:U.responseContract)==null?void 0:Se.fields)??((oe=R.data.responseContract)==null?void 0:oe.fields)??((de=z==null?void 0:z.responseDelta)==null?void 0:de.fields)??[],L):eu(((he=U==null?void 0:U.responseContract)==null?void 0:he.fields)??((V=R.data.responseContract)==null?void 0:V.fields)??((ce=z==null?void 0:z.responseDelta)==null?void 0:ce.fields)??[])).map(Z=>{var te;return cc(Z,{sourceNodeId:R.id,sourceNodeLabel:R.label,sourceNodeType:R.type,sourceKind:R.type==="sub-flow"?"sub-flow-output":"node-output",runtimeWritten:R.type==="condition"?!!(Z.runtimeWritten??((te=Z.valueExpression)==null?void 0:te.trim())):Z.runtimeWritten??!0})});if(R.type!=="condition")return{contractName:`${R.ruleCode??R.id}_output_contract`,title:"Output Contract",fields:fc(F5(R,H))};const I=[cc({path:"result.isPass",label:"isPass",dataType:"boolean",required:!0},{sourceNodeId:R.id,sourceNodeLabel:R.label,sourceNodeType:R.type,sourceKind:"result-payload",isResultPayload:!0,runtimeWritten:!0}),cc({path:"result.message",label:"message",dataType:"string"},{sourceNodeId:R.id,sourceNodeLabel:R.label,sourceNodeType:R.type,sourceKind:"result-payload",isResultPayload:!0,runtimeWritten:!0}),cc({path:"result.errorCode",label:"errorCode",dataType:"string"},{sourceNodeId:R.id,sourceNodeLabel:R.label,sourceNodeType:R.type,sourceKind:"result-payload",isResultPayload:!0,runtimeWritten:!0})];return{contractName:`${R.ruleCode??R.id}_output_contract`,title:"Output Contract",fields:fc([...I,...H])}},_=(R,j)=>{var H,I,q,ie,fe;const z=Ki(j.fields),U=R.type==="sub-flow"?Ao(R.data.subFlowConfig).inputMappings:R.data.inputMappings??[];if(R.type==="sub-flow"){const Se=Ao(R.data.subFlowConfig).childTriggerSchema,oe=Ki((Se==null?void 0:Se.fields)??[]);return{contractName:`${R.ruleCode??R.id}_effective_input`,title:"Effective Input",mode:"sub-flow",fields:oe,mappings:WT(z,oe,U)}}if(R.type==="condition"||R.type==="liquid"){const Se=B5(pl(R.data).body,z);return{contractName:`${R.ruleCode??R.id}_effective_input`,title:"Effective Input",mode:R.type==="liquid"?"expression":"auto",fields:Se,mappings:Se.map(oe=>({id:`auto-${oe.path}`,sourcePath:oe.path,targetPath:oe.path,targetField:oe.path,sourceDataType:oe.dataType,targetDataType:oe.dataType,sourceNodeId:oe.sourceNodeId,sourceNodeLabel:oe.sourceNodeLabel,status:"mapped",required:oe.required}))}}const L=Ki(((H=R.data.contractOverride)==null?void 0:H.requestFields)??((I=R.data.requestContract)==null?void 0:I.fields)??((fe=(ie=(q=a.nodeContractsById)==null?void 0:q.get(R.id))==null?void 0:ie.requestScope)==null?void 0:fe.fields)??[]),$=R.type==="end"?[]:L;return{contractName:`${R.ruleCode??R.id}_effective_input`,title:"Effective Input",mode:R.type==="decision-table"?"decision-table":R.type==="action"?"manual":"auto",fields:$,mappings:WT(z,$,U)}},N=(R,j,z,U)=>{var H;const L=Ki(j.fields),$=[];for(const I of z.mappings){if(I.required&&!I.sourcePath.trim()){$.push({code:"MRF001",severity:"error",message:`Required input '${I.targetField??I.targetPath}' is not mapped.`,nodeId:R.id,targetPath:I.targetField??I.targetPath});continue}if(!I.sourcePath.trim())continue;if(!L.find(ie=>ie.path===I.sourcePath)){$.push({code:"MRF002",severity:"error",message:`Source field '${I.sourcePath}' is not available in upstream scope.`,nodeId:R.id,sourcePath:I.sourcePath,targetPath:I.targetField??I.targetPath});continue}I.targetDataType&&I.sourceDataType&&I.targetDataType!==I.sourceDataType&&!(I.transform??"").trim()&&$.push({code:"MRF003",severity:"warning",message:`Mapping '${I.sourcePath}' -> '${I.targetField??I.targetPath}' has type mismatch (${I.sourceDataType} -> ${I.targetDataType}).`,nodeId:R.id,sourcePath:I.sourcePath,targetPath:I.targetField??I.targetPath})}if(R.type==="sub-flow"){const I=Ao(R.data.subFlowConfig).childTriggerSchema;for(const q of Ki((I==null?void 0:I.fields)??[]).filter(ie=>ie.required))z.mappings.some(fe=>(fe.targetField??fe.targetPath)===q.path&&fe.sourcePath.trim().length>0)||$.push({code:"MRF004",severity:"error",message:`Sub-flow input '${q.path}' is required but not mapped.`,nodeId:R.id,fieldPath:q.path})}if(R.type==="condition"||R.type==="liquid"){const I=pl(R.data).body,q=GT(I);for(const ie of q)L.some(fe=>fe.path===ie)||$.push({code:"MRF005",severity:"error",message:`Expression references '${ie}' but that field is not available in input scope.`,nodeId:R.id,fieldPath:ie})}if(R.type==="condition")for(const I of Ki(U.fields).filter(q=>!q.isResultPayload))(H=I.valueExpression)!=null&&H.trim()||$.push({code:"MRF009",severity:"warning",message:`Condition output '${I.path}' is metadata-only until a Value Expression is configured.`,nodeId:R.id,fieldPath:I.path});return R.type==="end"&&U.fields.length>0&&$.push({code:"MRF006",severity:"warning",message:"End nodes should not define additional output fields.",nodeId:R.id}),$},D=R=>{const j=f.get(R.id);if(j)return j;if(v.has(R.id))return{upstreamScope:{contractName:`${R.id}_input_scope`,title:"Input Scope",fields:[]},effectiveInput:{contractName:`${R.id}_effective_input`,title:"Effective Input",fields:[],mappings:[]},outputContract:{contractName:`${R.id}_output_contract`,title:"Output Contract",fields:[]},validationIssues:[{code:"MRF007",severity:"error",message:"Cycle detected in rule flow graph.",nodeId:R.id}]};v.add(R.id);const z=E(R),U=_(R,z),L=w(R),$=N(R,z,U,L),H={upstreamScope:z,effectiveInput:U,outputContract:L,validationIssues:$};return f.set(R.id,H),v.delete(R.id),H};for(const R of n.nodes)D(R);return f}function U5(n,a){var p,g,x,S,E;const l=eu(((g=(p=a.currentFlowContract)==null?void 0:p.requestContract)==null?void 0:g.fields)??[]);if(l.length>0)return l;const c=[...n.nodes].filter(w=>w.type!=="trigger"&&w.type!=="end").sort((w,_)=>{var R,j,z,U;const N=w.data.order??((j=(R=a.nodeContractsById)==null?void 0:R.get(w.id))==null?void 0:j.order)??Number.MAX_SAFE_INTEGER,D=_.data.order??((U=(z=a.nodeContractsById)==null?void 0:z.get(_.id))==null?void 0:U.order)??Number.MAX_SAFE_INTEGER;return N!==D?N-D:w.label.localeCompare(_.label)})[0];if(!c)return[];const f=(x=a.nodeContractsById)==null?void 0:x.get(c.id),v=((S=f==null?void 0:f.requestScope)==null?void 0:S.fields)??((E=c.data.requestContract)==null?void 0:E.fields)??[];return eu(v)}function WT(n,a,l){const c=new Map;for(const f of l){const v=n.find(g=>g.path===f.sourcePath),p=a.find(g=>g.path===f.targetPath);c.set(f.id,{...f,targetField:(p==null?void 0:p.path)??f.targetPath,sourceDataType:v==null?void 0:v.dataType,targetDataType:p==null?void 0:p.dataType,sourceNodeId:v==null?void 0:v.sourceNodeId,sourceNodeLabel:v==null?void 0:v.sourceNodeLabel,required:p==null?void 0:p.required,status:v?p!=null&&p.dataType&&v.dataType!==p.dataType&&!(f.transform??"").trim()?"type-mismatch":"mapped":"missing"})}for(const f of a){if([...c.values()].find(g=>(g.targetField??g.targetPath)===f.path))continue;const p=n.find(g=>g.path===f.path)??n.find(g=>KT(g.path)===KT(f.path)&&g.dataType===f.dataType);c.set(`suggested-${f.path}`,{id:`suggested-${f.path}`,sourcePath:(p==null?void 0:p.path)??"",targetPath:f.path,targetField:f.path,sourceDataType:p==null?void 0:p.dataType,targetDataType:f.dataType,sourceNodeId:p==null?void 0:p.sourceNodeId,sourceNodeLabel:p==null?void 0:p.sourceNodeLabel,required:f.required,status:p?"suggested":f.required?"missing":"suggested",transformSuggestion:p&&p.dataType!==f.dataType?`to_${f.dataType}(${p.path})`:void 0})}return[...c.values()]}function F5(n,a){if(n.type!=="sub-flow")return a;const l=Ao(n.data.subFlowConfig).outputMappings;return l.length===0?a:a.map(c=>{const f=l.find(v=>v.sourcePath===c.path&&v.targetPath.trim().length>0);return f?{...c,path:f.targetPath,label:f.targetPath,exposeToParent:c.exposeToParent}:c})}function cc(n,a){var l;return{...n,...a,children:(l=n.children)==null?void 0:l.map(c=>cc(c,a))}}function fc(n){const a=new Map;for(const l of n)a.has(l.path)||a.set(l.path,l);return[...a.values()].sort((l,c)=>l.path.localeCompare(c.path))}function eu(n){return n.map(a=>({...a,children:a.children?eu(a.children):void 0}))}function I5(n,a){const l=new Map;for(const c of n)l.set(c.path,{...c,children:c.children?eu(c.children):void 0});for(const c of a)l.set(c.path,{...c,children:c.children?eu(c.children):void 0});return[...l.values()]}function qT(n){return n.filter(a=>a.exposeToParent!==!1)}function B5(n,a){const l=new Set(GT(n));return a.filter(c=>l.has(c.path))}function GT(n){if(!n.trim())return[];const a=new Set,l=/\b[a-zA-Z_][a-zA-Z0-9_.]*\b/g;let c=l.exec(n);for(;c;){const v=c[0];v.includes(".")&&a.add(v),c=l.exec(n)}const f=/\{\{\s*([a-zA-Z_][a-zA-Z0-9_.]*)/g;for(c=f.exec(n);c;)a.add(c[1]),c=f.exec(n);return[...a]}function KT(n){const a=n.split(".");return a[a.length-1]??n}const kb="application/muonroi-rule-flow-node-type",XT="application/muonroi-rule-flow-rule-template",H5={duration:0,padding:.22,minZoom:.18,maxZoom:1.1},V5=860,QT={always:"Always","on-true":"On Pass","on-false":"On Fail","on-error":"On Error"},Y5={always:"Always continue to the next node when the source node executed.","on-true":"Continue only when the source node passed.","on-false":"Continue only when the source node failed without throwing.","on-error":"Continue only when the source node threw an exception."};function dc({data:n,selected:a}){var x,S,E;const l=Wf[n.nodeType],c=yg(n._theme??"light"),f=pl(n),v=((x=n.requestContract)==null?void 0:x.fields.length)??0,p=((S=n.responseContract)==null?void 0:S.fields.length)??0,g=HT[n.nodeType];return k.jsxs("div",{style:{...F3,background:c.nodeBg,boxShadow:c.nodeShadow,borderTop:a?`2px solid ${l}`:c.nodeBorder,borderRight:a?`2px solid ${l}`:c.nodeBorder,borderBottom:a?`2px solid ${l}`:c.nodeBorder,borderLeft:`8px solid ${l}`,borderRadius:n.nodeType==="end"?999:n.nodeType==="condition"?24:18},children:[k.jsx(Yf,{type:"target",position:bt.Left}),k.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:6},children:[k.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6},children:[k.jsx("svg",{width:14,height:14,viewBox:"0 0 16 16",fill:l,style:{flexShrink:0},children:k.jsx("path",{d:g})}),k.jsx("span",{style:{color:l,fontSize:11,fontWeight:700,letterSpacing:"0.08em",textTransform:"uppercase"},children:hg[n.nodeType]})]}),k.jsx("strong",{style:{fontSize:14,color:c.nodeText},children:n.label}),n.ruleCode?k.jsxs("span",{style:{fontSize:12,color:c.nodeSubtext},children:["Rule: ",n.ruleCode]}):null,(E=n.contractRef)!=null&&E.sourceCode?k.jsxs("span",{style:{fontSize:11,color:c.nodeMutedText},children:["Contract: ",n.contractRef.sourceType,"/",n.contractRef.sourceCode]}):null,f.body?k.jsxs("span",{style:{display:"inline-block",maxWidth:220,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontSize:12,color:c.nodeSubtext},children:[f.language.toUpperCase(),": ",f.body]}):null,v>0||p>0?k.jsxs("span",{style:{fontSize:11,color:c.nodeMutedText},children:["Inline contracts ",v,"/",p]}):null]}),k.jsx(Yf,{type:"source",position:bt.Right})]})}const W5={trigger:dc,condition:dc,action:dc,"decision-table":dc,"sub-flow":dc,liquid:dc,end:dc};function q5({nodeIds:n,syncToken:a,hostElement:l}){const c=i3(),f=ug(),v=l3({includeHiddenNodes:!0}),p=ue.useRef(""),g=ue.useRef(null);function x(){!v||n.length===0||(n.forEach(E=>c(E)),f.fitView(H5))}function S(E=0){return window.setTimeout(()=>{g.current!==null&&cancelAnimationFrame(g.current),g.current=requestAnimationFrame(()=>{g.current=null,x()})},E)}return ue.useEffect(()=>{const E=String(a);if(!v||n.length===0||p.current===E)return;p.current=E;const w=S(),_=S(150),N=S(350);return()=>{window.clearTimeout(w),window.clearTimeout(_),window.clearTimeout(N),g.current!==null&&(cancelAnimationFrame(g.current),g.current=null)}},[n,v,f,a,c]),ue.useEffect(()=>{if(!l)return;const E=new ResizeObserver(()=>{x()});E.observe(l);const w=()=>x();return window.addEventListener("resize",w),()=>{E.disconnect(),window.removeEventListener("resize",w)}},[l,v,f,c,n]),null}function G5({graph:n,onGraphChange:a,readOnly:l=!1,theme:c="light",height:f=640,apiBaseUrl:v,catalogApiBase:p,tenantId:g,workflowCode:x,onPublish:S,licenseStatus:E="licensed"}){var Ot;const w=ue.useMemo(()=>Jr(n),[n]),_=r5(w);function N(G){return G.map(re=>({...re,data:{...re.data,_theme:c}}))}function D(G){const re=c==="dark"?P5:j5;return G.map(Ae=>{var It;const st=((It=Ae.data)==null?void 0:It.edgeType)??"always",Je=re[st]??re.always;return{...Ae,style:{stroke:Je,strokeWidth:2},labelStyle:{fill:Je,fontWeight:600,fontSize:11},labelBgStyle:{fill:yg(c).edgeLabelBg,fillOpacity:.92},labelBgPadding:[6,4],labelBgBorderRadius:8}})}const[R,j]=ue.useState(()=>N(dh(_.present))),[z,U]=ue.useState(()=>D(jT(_.present))),[L,$]=ue.useState(""),[H,I]=ue.useState(""),[q,ie]=ue.useState("general"),[fe,Se]=ue.useState({status:"idle"}),[oe,de]=ue.useState([]),[he,V]=ue.useState([]),[ce,Z]=ue.useState(null),[te,Y]=ue.useState({status:"idle"}),[J,ne]=ue.useState([]),[B,K]=ue.useState(!1),[ke,Re]=ue.useState(null),Oe=ue.useRef(_.present.metadata),$e=ue.useRef(ua(_.present)),[Ie,Te]=ue.useState(0),Ne=ue.useRef(R),Ve=ue.useRef(z),Ke=ue.useRef(new Map),Ye=ue.useRef(new Map),Xe=ue.useRef(new Map),ht=ue.useMemo(()=>v?new j3({baseUrl:v,tenantId:g}):null,[v,g]),Nt=ue.useMemo(()=>p?new P3({baseUrl:p,tenantId:g}):null,[p,g]),vt=ue.useMemo(()=>v?new $3({baseUrl:v,tenantId:g}):null,[v,g]),Jt=ue.useRef(null),nr=ue.useRef(null),Dn=ue.useRef(null),qt=ue.useRef(!0),ln=ue.useRef(!1),vn=ue.useRef(null),[jn,Pr]=ue.useState(0),[kn,xn]=ue.useState("inspector"),[qn,ea]=ue.useState(!0),Mr=ue.useRef(null);ue.useEffect(()=>{Ne.current=R},[R]),ue.useEffect(()=>{Ve.current=z},[z]),ue.useEffect(()=>()=>{On(),$r()},[]),ue.useEffect(()=>{j(G=>N(G)),U(G=>D(G))},[c]),ue.useEffect(()=>{const G=Jr(n),re=ua(G);re!==$e.current&&(Oe.current=G.metadata,_.reset(G),$e.current=re,qt.current=!0,Te(Ae=>Ae+1),$(""),I(""),ie("general"),ta(G))},[n,_.reset]),ue.useEffect(()=>{const G=_.present,re=ua(G),Ae=ua(Hn(Ne.current,Ve.current,!1));re!==Ae&&(Oe.current=G.metadata,$e.current=re,ta(G))},[_.present]),ue.useEffect(()=>{const G=re=>{const Ae=re.target,st=Ae.tagName==="INPUT"||Ae.tagName==="TEXTAREA"||Ae.tagName==="SELECT"||Ae.isContentEditable;if((re.ctrlKey||re.metaKey)&&re.key==="z"&&!re.shiftKey){re.preventDefault(),On(),_.undo();return}if((re.ctrlKey||re.metaKey)&&(re.key==="y"||re.key==="z"&&re.shiftKey)){re.preventDefault(),On(),_.redo();return}if(re.key==="Escape"){$(""),I(""),ie("general");return}if(!(l||st)&&(re.key==="Delete"||re.key==="Backspace")){if(L){di();return}H&&fr()}};return window.addEventListener("keydown",G),()=>window.removeEventListener("keydown",G)},[l,L,H]),ue.useEffect(()=>{const G=Jt.current;if(!G)return;const re=()=>{var Je;const st=((Je=G.parentElement)==null?void 0:Je.getBoundingClientRect().width)??G.getBoundingClientRect().width;Pr(st)};re();const Ae=new ResizeObserver(()=>re());return Ae.observe(G),()=>Ae.disconnect()},[]);const[He,lt]=ue.useState(0),Tt=ue.useMemo(()=>Hn(R,z,!1),[R,z]),Vt=ue.useMemo(()=>VT(Tt,{flowCode:x,currentFlowContract:x?Ye.current.get(x):void 0,flowContractsByCode:Ye.current,nodeContractsById:Ke.current}),[He,Tt,x]),ut=ue.useMemo(()=>L?N(dh(Vt)).find(G=>G.id===L)??null:null,[Vt,L,c]),Mn=ue.useMemo(()=>H?z.find(G=>G.id===H)??null:null,[z,H]),bn=ut?pl(ut.data):{language:"feel",body:""},An=ue.useMemo(()=>YT(Tt,{flowCode:x,currentFlowContract:x?Ye.current.get(x):void 0,flowContractsByCode:Ye.current,nodeContractsById:Ke.current}),[He,Tt,x]),Zt=ue.useMemo(()=>An.issues.filter(G=>G.severity==="error"),[An.issues]),sn=ue.useMemo(()=>An.issues.filter(G=>G.severity==="warning"),[An.issues]),an=!l&&!!S&&Zt.length===0,Nr=ue.useMemo(()=>J5(Vt),[Vt]);if(ue.useEffect(()=>{if(!ht)return;let G=!1;return(async()=>{try{const re=await ht.MListFlows();G||de(re.map(Ae=>({code:Ae.workflowName,label:Ae.workflowName})))}catch{}})(),()=>{G=!0}},[ht]),ue.useEffect(()=>{if(!vt)return;let G=!1;return(async()=>{try{const re=await vt.MListDecisionTables();if(!G){for(const Ae of re)Xe.current.set(Ae.id,Ae);V(re.map(Ae=>({code:Ae.id,label:Ae.name})))}}catch{}})(),()=>{G=!0}},[vt]),ue.useEffect(()=>{var st,Je,It;if((ut==null?void 0:ut.data.nodeType)!=="decision-table"){Z(null),Y({status:"idle"});return}if(!vt){Z(null),Y({status:"error",message:"No decision table API configured for this editor."});return}const G=((Je=(st=ut.data.contractRef)==null?void 0:st.sourceCode)==null?void 0:Je.trim())??((It=ut.data.ruleCode)==null?void 0:It.trim())??"";if(!G){Z(null),Y({status:"idle"});return}const re=Xe.current.get(G);if(re){Z(re),Y({status:"ready"}),ca(ut.id,re);return}let Ae=!1;return Y({status:"loading"}),(async()=>{try{const en=await vt.MGetDecisionTable(G);if(Ae)return;Xe.current.set(G,en),Z(en),Y({status:"ready"}),ca(ut.id,en)}catch(en){Ae||(Z(null),Y({status:"error",message:en instanceof Error?en.message:"Failed to load decision table metadata."}))}})(),()=>{Ae=!0}},[vt,ut==null?void 0:ut.id,ut==null?void 0:ut.data.nodeType,(Ot=ut==null?void 0:ut.data.contractRef)==null?void 0:Ot.sourceCode,ut==null?void 0:ut.data.ruleCode]),ue.useEffect(()=>{if(!Nt){ne([]),K(!1);return}let G=!1;return(async()=>{K(!0);try{const re=await Nt.MListCatalog();G||(ne(re),K(!1))}catch{G||(ne([]),K(!1))}})(),()=>{G=!0}},[Nt]),ue.useEffect(()=>{if(!ht||!x)return;let G=!1;return(async()=>{var re,Ae;await JT(ht,Ye.current,x);for(const st of Tt.nodes){if(st.type==="trigger"||st.type==="end"||Ke.current.has(st.id))continue;const Je=await K5(ht,x,st);Je&&Ke.current.set(st.id,Je)}for(const st of Tt.nodes.filter(Je=>Je.type==="sub-flow")){const Je=(re=Ao(st.data.subFlowConfig).targetFlowCode)==null?void 0:re.trim();if(!Je)continue;const It=await JT(ht,Ye.current,Je);if(G)return;const en=await ZT(ht,Je,"trigger"),Un=(en==null?void 0:en.requestScope)??(It==null?void 0:It.requestContract),Sr=(Ae=Ao(st.data.subFlowConfig).childTriggerSchema)==null?void 0:Ae.contractName;Un!=null&&Un.contractName&&Sr!==Un.contractName&&Xa(st.id,Qi=>({...Qi,data:{...Qi.data,subFlowConfig:{...Ao(Qi.data.subFlowConfig),childTriggerSchema:Un}}}),!1)}G||lt(st=>st+1)})(),()=>{G=!0}},[ht,Tt.nodes,x]),ue.useEffect(()=>{var re,Ae;if(!ut){Se({status:"idle"});return}xn("inspector");const G=ut&&Ke.current.get(ut.id);if(G||(re=ut.data.contractLayer)!=null&&re.upstreamScope||ut.type==="trigger"||ut.type==="end"){Se({status:"ready",title:(G==null?void 0:G.ruleCode)??((Ae=ut.data.contractRef)==null?void 0:Ae.label)??ut.data.label});return}Se(ht?{status:"loading"}:{status:"error",message:"No contract API configured for this editor."})},[ht,ut,He]),E==="unlicensed"){const G=yg(c);return k.jsxs("section",{style:{...sj,background:G.licenseBg,border:G.licenseBorder,color:G.licenseText},children:[k.jsx("strong",{children:"Rule Flow Designer requires a Muonroi commercial license."}),k.jsx("span",{children:"Load an activation proof before rendering this editor."})]})}function On(){Mr.current!==null&&(window.clearTimeout(Mr.current),Mr.current=null)}function $r(){vn.current!==null&&(window.clearTimeout(vn.current),vn.current=null)}function ta(G){$r(),ln.current=!0,j(N(dh(G))),U(D(jT(G))),vn.current=window.setTimeout(()=>{ln.current=!1,vn.current=null},0)}function Dr(G,re){var It;On();const Ae=Kf(G,{currentFlowContract:x?Ye.current.get(x):void 0,flowContractsByCode:Ye.current,nodeContractsById:Ke.current}),st=Jr(Ae.graph),Je=ua(st);if(Oe.current=st.metadata,$e.current=Je,ta(st),re!=null&&re.syncViewport&&(qt.current=!0,Te(en=>en+1)),Ae.issues.length>0){const en=((It=Ae.issues[0])==null?void 0:It.message)??"Rule flow ordering is invalid.";Se({status:"error",message:en})}(re==null?void 0:re.pushHistory)!==!1&&_.commit(st),(re==null?void 0:re.notify)!==!1&&(a==null||a(st))}function Hn(G,re,Ae=!0){return{nodes:G.map(X5),edges:re.map(Q5),metadata:{...Oe.current,version:Math.max(1,Oe.current.version??1),lastModifiedAt:Ae?new Date().toISOString():Oe.current.lastModifiedAt}}}function Xa(G,re,Ae=!0){const st=Ne.current.map(It=>It.id===G?re(It):It),Je=Kf(Hn(st,Ve.current),{currentFlowContract:x?Ye.current.get(x):void 0,flowContractsByCode:Ye.current,nodeContractsById:Ke.current}).graph;Oe.current=Je.metadata,$e.current=ua(Je),j(N(dh(Je))),Ae&&(a==null||a(Je))}function Pn(G,re="debounced"){if(l||!L)return;const Ae=Ne.current.map(Je=>Je.id===L?G(Je):Je),st=Kf(Hn(Ae,Ve.current),{currentFlowContract:x?Ye.current.get(x):void 0,flowContractsByCode:Ye.current,nodeContractsById:Ke.current}).graph;if(Oe.current=st.metadata,$e.current=ua(st),j(N(dh(st))),a==null||a(st),re==="immediate"){_.commit(st);return}On(),Mr.current=window.setTimeout(()=>{Mr.current=null,_.commit(st)},300)}function di(){l||!L||($(""),ie("general"),Dr(Hn(Ne.current.filter(G=>G.id!==L),Ve.current.filter(G=>G.source!==L&&G.target!==L))))}function fr(){l||!H||(I(""),Dr(Hn(Ne.current,Ve.current.filter(G=>G.id!==H))))}function wr(G){if(l||!H)return;const re=Ve.current.map(Ae=>Ae.id===H?G(Ae):Ae);Dr(Hn(Ne.current,re),{syncViewport:!1})}function Gn(G){$(G),I("");const re=Ne.current.find(Ae=>Ae.id===G);re&&ie(LT(re.data.nodeType)),xn("inspector")}function ca(G,re){const Ae=eR(re,"input"),st=eR(re,"output");Xa(G,Je=>{var It;return{...Je,data:{...Je.data,description:(It=Je.data.description)!=null&&It.trim()?Je.data.description:re.description,requestContract:Ae,responseContract:st,contractRef:{sourceType:"decision-table",sourceCode:re.id,label:re.name}}}},!1),lt(Je=>Je+1)}function fa(){const G=Mb(Hn(Ne.current,Ve.current));qt.current=!0,Dr(G,{syncViewport:!0})}function da(G){const re=[...Ve.current];if(L){const Ae=`${L}-${G.id}`;re.push({id:Ae,source:L,target:G.id,label:"always",data:{edgeType:"always"}}),I(Ae)}$(G.id),I(""),ie(LT(G.data.nodeType)),Dr(Mb(Hn([...Ne.current,G],re)),{syncViewport:!0})}function pa(G,re){if(l)return;const Ae={id:`node-${G}-${Math.random().toString(36).slice(2,10)}`,type:G,position:re??{x:60+Ne.current.length*36,y:80+Ne.current.length%4*90},data:{label:DT[G],nodeType:G,expression:wb(G),conditionConfig:G==="condition"?{successLabel:"Valid",failureLabel:"Rejected"}:void 0,subFlowConfig:G==="sub-flow"?{targetFlowCode:"",inputMappings:[],outputMappings:[]}:void 0,liquidConfig:G==="liquid"?{outputFormat:"json"}:void 0}};da(Ae)}function Q(G,re){if(l)return;const Ae={id:`node-rule-${Math.random().toString(36).slice(2,10)}`,type:"condition",position:re??{x:60+Ne.current.length*36,y:80+Ne.current.length%4*90},data:{label:G.displayName,nodeType:"condition",ruleCode:G.code,description:G.description,expression:wb("condition"),contractRef:{sourceType:"rule",sourceCode:G.code,label:G.displayName},requestContract:G.inputSchema,responseContract:G.outputSchema}};da(Ae)}const De=typeof f=="number"?`${f}px`:f,We=jn>0&&jn<V5,nt=We?"min(52vh, 520px)":De,Qe=yg(c),Rt={color:Qe.textPrimary},Pt=k.jsxs("div",{"data-testid":"rule-flow-sidebar-palette",style:{...Nb,...aj,...gj()},children:[k.jsxs("div",{style:{...xg,color:Qe.sectionDescColor},children:[k.jsx("strong",{style:{color:Qe.textPrimary},children:"Palette"}),k.jsx("span",{children:"Add nodes to compose a publishable rule flow."})]}),["trigger","condition","action","decision-table","sub-flow","liquid","end"].map(G=>k.jsxs("button",{type:"button",style:pj(G,Qe),"data-testid":`palette-${G}`,draggable:!l,onClick:()=>pa(G),onDragStart:re=>rr(re,G),disabled:l,children:[k.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[k.jsx("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:Wf[G],style:{flexShrink:0},children:k.jsx("path",{d:HT[G]})}),k.jsx("span",{style:{fontWeight:600},children:hg[G]})]}),k.jsx("span",{style:{fontSize:11,color:Qe.textMuted,fontWeight:400},children:z5[G]})]},G)),p?k.jsx(b5,{groups:J,loading:B,readOnly:l,onAddRule:Q,onDragStart:(G,re)=>rr(G,"condition",re)}):null]}),$t=k.jsxs("div",{"data-testid":"rule-flow-sidebar-actions",style:{...Nb,...ij,...xj()},children:[k.jsxs("div",{style:{...xg,color:Qe.sectionDescColor},children:[k.jsx("strong",{style:{color:Qe.textPrimary},children:"Actions"}),k.jsx("span",{children:"Undo, publish and export without leaving the flow canvas."})]}),An.issues.length>0?k.jsxs("div",{style:uj(Zt.length>0),children:[k.jsx("strong",{children:Zt.length>0?"Publish blocked":"Publish warnings"}),k.jsxs("span",{children:[Zt.length," error(s) / ",sn.length," warning(s)"]})]}):null,k.jsxs("div",{style:{display:"flex",flexWrap:"wrap",gap:8},children:[k.jsx("button",{type:"button",style:{...hl(!1),flex:"1 1 auto",minWidth:64},onClick:()=>{On(),_.undo()},disabled:!_.canUndo,children:"Undo"}),k.jsx("button",{type:"button",style:{...hl(!1),flex:"1 1 auto",minWidth:64},onClick:()=>{On(),_.redo()},disabled:!_.canRedo,children:"Redo"}),k.jsx("button",{type:"button",style:{...hl(!1),flex:"1 1 auto",minWidth:96},onClick:fa,disabled:l,children:"Auto Layout"}),k.jsx("button",{type:"button",style:{...hl(!0),flex:"1 1 auto",minWidth:80},onClick:()=>{const G=YT(Hn(Ne.current,Ve.current),{flowCode:x,currentFlowContract:x?Ye.current.get(x):void 0,flowContractsByCode:Ye.current,nodeContractsById:Ke.current});if(lt(re=>re+1),!G.isValid){Se({status:"error",message:"Publish blocked because one or more nodes still have contract validation errors."});return}Re({graph:G.graph,warnings:G.issues.filter(re=>re.severity==="warning")})},disabled:!an,title:S?Zt.length>0?"Fix validation errors before publishing.":void 0:"No publish handler configured.","aria-disabled":!an,children:"Publish"}),k.jsx("button",{type:"button",style:{...hl(!1),flex:"1 1 auto",minWidth:64},onClick:()=>{var G;return(G=Dn.current)==null?void 0:G.click()},disabled:l,children:"Import"}),k.jsx("button",{type:"button",style:{...hl(!1),flex:"1 1 auto",minWidth:64},onClick:()=>ej(Hn(Ne.current,Ve.current),Oe.current.ruleSetCode),children:"Export"})]}),k.jsx("input",{ref:Dn,type:"file",accept:"application/json,.json",style:{display:"none"},onChange:G=>{var Ae;const re=(Ae=G.target.files)==null?void 0:Ae[0];G.currentTarget.value="",re&&(async()=>{try{const st=await re.text(),Je=Kf(B3(st),{flowCode:x,currentFlowContract:x?Ye.current.get(x):void 0,flowContractsByCode:Ye.current,nodeContractsById:Ke.current}).graph;Oe.current=Je.metadata,$e.current=ua(Je),_.reset(Je),ta(Je),$(""),I(""),ie("general"),qt.current=!0,Te(It=>It+1),a==null||a(Je),Se({status:"ready",title:Je.metadata.ruleSetCode??"Imported flow"})}catch(st){Se({status:"error",message:st.message})}})()}})]}),$n=k.jsx("div",{"data-testid":"rule-flow-sidebar-inspector",style:{...Nb,...oj,...yj()},children:ut?k.jsx(a5,{selectedNode:{id:ut.id,data:ut.data},selectedExpression:bn,contractLoadState:fe,selectedDecisionTable:ce,decisionTableLoadState:te,readOnly:l,apiBaseUrl:v,inspectorTab:q,flowOptions:oe,decisionTableOptions:he,setInspectorTab:ie,onSelectNodeByRuleCode:G=>{const re=Ne.current.find(Ae=>Ae.data.ruleCode===G);re&&Gn(re.id)},onUpdateLabel:G=>Pn(re=>({...re,data:{...re.data,label:G}})),onUpdateRuleCode:G=>Pn(re=>({...re,data:{...re.data,ruleCode:G,contractRef:OT(re.data.nodeType,G,re.data.contractRef)}})),onUpdateDescription:G=>Pn(re=>({...re,data:{...re.data,description:G}})),onUpdateContractRef:G=>Pn(re=>({...re,data:{...re.data,contractRef:G,requestContract:void 0,responseContract:void 0}})),onUpdateDecisionTableCode:G=>Pn(re=>{var Ae;return{...re,data:{...re.data,ruleCode:G,requestContract:void 0,responseContract:void 0,contractRef:G.trim()?{sourceType:"decision-table",sourceCode:G.trim(),label:((Ae=he.find(st=>st.code===G.trim()))==null?void 0:Ae.label)??G.trim()}:re.data.contractRef}}}),onUpdateConditionConfig:G=>Pn(re=>({...re,data:{...re.data,conditionConfig:G}})),onUpdateTargetFlowCode:G=>Pn(re=>({...re,data:{...re.data,contractRef:G.trim()?{sourceType:"flow",sourceCode:G.trim(),label:G.trim()}:re.data.contractRef,subFlowConfig:{...Ao(re.data.subFlowConfig),targetFlowCode:G}}})),onUpdateLiquidOutput:G=>Pn(re=>({...re,data:{...re.data,liquidConfig:{...AT(re.data.liquidConfig),outputFormat:G}}})),onUpdateExpressionLanguage:G=>Pn(re=>({...re,data:{...re.data,expression:{...pl(re.data),language:G}}})),onUpdateExpressionBody:G=>Pn(re=>({...re,data:{...re.data,expression:{...pl(re.data),body:G}}})),onInsertExpressionToken:G=>Pn(re=>({...re,data:{...re.data,expression:{...pl(re.data),body:`${pl(re.data).body}${pl(re.data).body.trim()?" ":""}${G}`}}})),onChangeInputContract:G=>Pn(re=>({...re,data:{...re.data,contractOverride:{...re.data.contractOverride,requestFields:G}}})),onChangeEffectiveMappings:G=>Pn(re=>({...re,data:{...re.data,inputMappings:re.data.nodeType==="action"?G.map(Ae=>({id:Ae.id,sourcePath:Ae.sourcePath,targetPath:Ae.targetField??Ae.targetPath,transform:Ae.transform,language:Ae.language})):re.data.inputMappings,subFlowConfig:re.data.nodeType==="sub-flow"?{...Ao(re.data.subFlowConfig),inputMappings:G.map(Ae=>({id:Ae.id,sourcePath:Ae.sourcePath,targetPath:Ae.targetField??Ae.targetPath,transform:Ae.transform,language:Ae.language}))}:re.data.subFlowConfig,contractLayer:re.data.contractLayer}})),onChangeOutputContract:G=>Pn(re=>({...re,data:{...re.data,contractOverride:{...re.data.contractOverride,responseFields:G.filter(Ae=>!Ae.isResultPayload)}}}),"immediate"),onDeleteNode:di,showSectionHeader:!1}):k.jsx(tj,{selectedEdge:Mn,readOnly:l,onUpdateEdgeType:G=>wr(re=>({...re,label:G,data:{...re.data??{},edgeType:G}})),onDeleteEdge:fr})});return k.jsxs(RT,{children:[k.jsxs("section",{ref:Jt,style:{...nj,...hj(We),...Rt},children:[k.jsxs("aside",{style:{...rj,...mj(),background:Qe.sidebarBg,border:Qe.sidebarBorder},children:[kt("palette","Palette","Compose and add nodes from the library of rule blocks.",Pt),kt("actions","Actions","Undo, import, export and publish the current flow.",$t),kt("inspector","Inspector",ut?`Editing ${hg[ut.data.nodeType]}`:"Open this section to define conditions, mappings and contracts.",$n)]}),k.jsxs("div",{ref:nr,style:{...lj,...vj(We),height:nt,background:Qe.canvasGradient},"data-testid":"rule-flow-canvas","data-node-count":R.length,"data-edge-count":z.length,onDragOver:ha,onDrop:na,children:[k.jsxs(a3,{style:{width:"100%",height:"100%"},colorMode:c==="dark"?"dark":"light",nodes:R,edges:z,nodeTypes:W5,onMoveStart:()=>{qt.current=!1},onNodeDragStart:()=>{qt.current=!1},onNodesChange:G=>mn(G),onEdgesChange:G=>wn(G),onConnect:G=>{var st;if(l)return;const re=Kf(Hn(Ne.current,XE({...G,label:"always",data:{edgeType:"always"}},Ve.current)),{currentFlowContract:x?Ye.current.get(x):void 0,flowContractsByCode:Ye.current,nodeContractsById:Ke.current});if(!re.isValid){Se({status:"error",message:((st=re.issues[0])==null?void 0:st.message)??"Cannot connect nodes because the new order violates dependencies."});return}const Ae=`${G.source}-${G.target}-${Ve.current.length+1}`;I(Ae),$(""),xn("inspector"),Dr(Mb(re.graph),{syncViewport:!0})},onNodeClick:(G,re)=>{Gn(re.id)},onEdgeClick:(G,re)=>{I(re.id),$(""),ie("general"),xn("inspector")},onPaneClick:()=>{$(""),I(""),ie("general")},nodesConnectable:!l,nodesDraggable:!l,elementsSelectable:!0,children:[k.jsx(q5,{nodeIds:R.map(G=>G.id),syncToken:Ie,hostElement:qt.current?nr.current:null}),k.jsx(A3,{}),k.jsx(x3,{}),k.jsx(d3,{})]}),Nr.length>0?k.jsxs("aside",{"data-testid":"rule-flow-dependency-overlay",style:{...Ej,background:Qe.overlayBg,border:Qe.overlayBorder,boxShadow:Qe.overlayShadow},children:[k.jsxs("button",{type:"button",style:{..._j,cursor:"pointer",background:"transparent",border:"none",width:"100%",textAlign:"left",display:"flex",alignItems:"center",justifyContent:"space-between"},onClick:()=>ea(G=>!G),"aria-expanded":qn,children:[k.jsxs("span",{style:{display:"flex",flexDirection:"column",gap:4},children:[k.jsx("strong",{children:"Dependency Overlay"}),k.jsx("span",{style:{fontSize:12,color:Qe.textMuted},children:"Execution order, prerequisites, and downstream dependents."})]}),k.jsx("span",{style:{...tR(qn),width:22,height:22,fontSize:12},children:"▾"})]}),qn?k.jsx("div",{style:Tj,children:Nr.map(G=>k.jsxs("button",{type:"button","data-testid":`dependency-overlay-${G.ruleCode}`,style:Rj(G.nodeId===L,Qe),onClick:()=>Gn(G.nodeId),children:[k.jsxs("span",{style:{fontWeight:700,color:Qe.textPrimary},children:["#",G.order," ",G.label]}),k.jsx("span",{style:{fontSize:11,color:Qe.textSecondary},children:G.ruleCode}),k.jsxs("span",{style:{fontSize:11,color:Qe.textMuted},children:["Depends on: ",G.dependsOn.length>0?G.dependsOn.join(", "):"none"]}),k.jsxs("span",{style:{fontSize:11,color:Qe.textMuted},children:["Unlocks: ",G.dependents.length>0?G.dependents.join(", "):"none"]})]},G.nodeId))}):null]}):null]})]}),ke?k.jsx(Z5,{warnings:ke.warnings,onCancel:()=>Re(null),onConfirm:()=>{(async()=>{try{Se({status:"loading"}),await(S==null?void 0:S(ke.graph)),Re(null),Se({status:"ready",title:"Published"})}catch(G){Re(null),Se({status:"error",message:G.message||"Rule Studio publish failed."})}})()}}):null]});function mn(G){if(l)return;const re=F_(G,Ne.current);if(ln.current){j(re);return}const Ae=re.filter(Un=>Un.selected).map(Un=>Un.id);$(Ae[0]??L);const st=G.some(Un=>Un.type==="add"||Un.type==="remove"||Un.type==="replace"),Je=G.filter(Un=>Un.type==="position"),It=Je.some(Un=>Un.dragging),en=Je.length>0&&!It;if(!st&&!en){j(re);return}en&&(qt.current=!1),Dr(Hn(re,Ve.current))}function wn(G){if(l)return;const re=I_(G,Ve.current);if(ln.current){U(re);return}const Ae=re.filter(Je=>Je.selected).map(Je=>Je.id);if(I(Ae[0]??H),!G.some(Je=>Je.type==="add"||Je.type==="remove"||Je.type==="replace")){U(re);return}Dr(Hn(Ne.current,re))}function rr(G,re,Ae){l||(G.dataTransfer.setData(kb,re),G.dataTransfer.setData("text/plain",re),Ae&&G.dataTransfer.setData(XT,JSON.stringify(Ae)),G.dataTransfer.effectAllowed="move")}function ha(G){l||!G.dataTransfer.types.includes(kb)||(G.preventDefault(),G.dataTransfer.dropEffect="move")}function na(G){if(l)return;const re=G.dataTransfer.getData(kb),Ae=G.dataTransfer.getData(XT);if(!Sb(re))return;G.preventDefault();const st=G.currentTarget.getBoundingClientRect(),Je={x:Math.max(32,G.clientX-st.left-84),y:Math.max(32,G.clientY-st.top-24)};if(Ae)try{const It=JSON.parse(Ae);if(It.code){Q(It,Je);return}}catch{}pa(re,Je)}function kt(G,re,Ae,st){const Je=kn===G;return k.jsxs("section",{"data-sidebar-section":G,"data-sidebar-open":Je?"true":"false",style:{...cj(Je),border:Je?Qe.sidebarOpenBorder:Qe.sidebarBorder,background:Je?Qe.sidebarOpenBg:Qe.sidebarBg,boxShadow:Je?Qe.sidebarOpenShadow:"none"},children:[k.jsxs("button",{type:"button",style:{...fj(Je),color:Qe.sidebarHeaderColor},onClick:()=>xn(It=>It===G?null:G),"aria-expanded":Je,children:[k.jsxs("span",{style:{display:"flex",flexDirection:"column",gap:4,minWidth:0,textAlign:"left"},children:[k.jsx("strong",{children:re}),k.jsx("span",{style:{fontSize:12,color:Qe.textMuted,fontWeight:500},children:Ae})]}),k.jsx("span",{style:{...tR(Je),background:Qe.chevronBg,color:Qe.chevronColor},children:"▾"})]}),Je?k.jsx("div",{style:dj,children:st}):null]},G)}}async function JT(n,a,l){if(a.has(l))return a.get(l)??null;try{const c=await n.MGetFlowContract(l);return a.set(l,c),c}catch{return null}}async function ZT(n,a,l){try{return await n.MGetNodeAuthoringContract(a,l)}catch{return null}}async function K5(n,a,l){var v;const c=await ZT(n,a,l.id);if(c)return c;const f=l.ruleCode?OT(l.type,l.ruleCode,l.data.contractRef):l.data.contractRef;if(!((v=f==null?void 0:f.sourceCode)!=null&&v.trim()))return null;try{const p=await n.MGetByReference(f);return{flowCode:a,nodeId:l.id,nodeType:l.type,ruleCode:l.ruleCode,order:l.data.order,dependsOn:l.data.dependsOn??[],requestScope:p.requestContract,responseDelta:p.responseContract}}catch{return null}}function X5(n){const a=pl(n.data);return{id:n.id,type:Cb(n.type),label:n.data.label,ruleCode:n.data.ruleCode,feelExpression:a.language==="feel"?a.body:void 0,position:{x:n.position.x,y:n.position.y},data:yb(n.data)}}function Q5(n){var a;return{id:n.id,source:n.source,target:n.target,label:typeof n.label=="string"?n.label:void 0,edgeType:mg((a=n.data)==null?void 0:a.edgeType)}}function Mb(n){const a=Jr(n);if(a.nodes.length===0)return a;const l=new Map;for(const x of a.nodes)l.set(x.id,[]);for(const x of a.edges){const S=l.get(x.target)??[];S.push(x.source),l.set(x.target,S)}const c=new Map,f=new Set,v=x=>{const S=c.get(x);if(S!==void 0)return S;if(f.has(x))return 0;f.add(x);const E=l.get(x)??[],w=E.length===0?0:Math.max(...E.map(_=>v(_)))+1;return f.delete(x),c.set(x,w),w},p=new Map;for(const x of a.nodes){const S=x.type==="trigger"?0:v(x.id),E=p.get(S)??[];E.push(x),p.set(S,E)}const g=a.nodes.map(x=>({...x}));for(const[x,S]of p)S.sort((E,w)=>{const _=E.data.order??Number.MAX_SAFE_INTEGER,N=w.data.order??Number.MAX_SAFE_INTEGER;return _!==N?_-N:E.label.localeCompare(w.label)}).forEach((E,w)=>{const _=g.find(N=>N.id===E.id);_&&(_.position={x:80+x*260,y:120+w*150})});return{...a,nodes:g}}function J5(n){const a=n.nodes.filter(f=>f.type!=="trigger"&&f.type!=="end"&&(f.ruleCode??"").trim().length>0),l=new Map(a.map(f=>[f.ruleCode??f.id,f])),c=new Map;for(const f of a)for(const v of f.data.dependsOn??[]){const p=c.get(v)??[];p.push(f.ruleCode??f.id),c.set(v,p)}return a.map(f=>{const v=f.ruleCode??f.id,p=(c.get(v)??[]).filter(g=>l.has(g)).sort((g,x)=>g.localeCompare(x));return{nodeId:f.id,label:f.label,ruleCode:v,order:f.data.order??0,dependsOn:[...f.data.dependsOn??[]].sort((g,x)=>g.localeCompare(x)),dependents:p}}).sort((f,v)=>f.order!==v.order?f.order-v.order:f.label.localeCompare(v.label))}function eR(n,a){const l=a==="input"?n.inputColumns:n.outputColumns;return{contractName:`${n.id}_${a}`,title:a==="input"?"Decision Table Inputs":"Decision Table Outputs",description:n.description,rootType:"object",fields:l.map(c=>({path:c.name,label:c.label,dataType:c.dataType,required:a==="input",runtimeWritten:a==="output",description:`${a==="input"?"Input":"Output"} column from decision table '${n.name}'.`}))}}function Z5({warnings:n,onCancel:a,onConfirm:l}){return k.jsx("div",{style:kj,children:k.jsxs("div",{role:"dialog","aria-modal":"true","aria-labelledby":"rule-flow-publish-confirm-title",style:Mj,children:[k.jsxs("div",{style:xg,children:[k.jsx("strong",{id:"rule-flow-publish-confirm-title",children:"Confirm Publish"}),k.jsx("span",{children:n.length>0?"This flow can publish, but warnings still exist. Review them before continuing.":"This will hand the current validated graph to the host publish handler."})]}),n.length>0?k.jsx("div",{style:{display:"flex",flexDirection:"column",gap:8},children:n.map((c,f)=>k.jsxs("div",{style:FT,children:[k.jsx("strong",{children:c.code})," ",c.message]},`${c.code}-${c.message}-${f}`))}):null,k.jsxs("div",{style:{display:"flex",justifyContent:"flex-end",gap:10},children:[k.jsx("button",{type:"button",style:hl(!1),onClick:a,children:"Cancel"}),k.jsx("button",{type:"button",style:hl(!0),onClick:l,children:n.length>0?"Publish With Warnings":"Confirm Publish"})]})]})})}function ej(n,a){const l=I3(n),c=new Blob([l],{type:"application/json"}),f=URL.createObjectURL(c),v=document.createElement("a");v.href=f,v.download=`${a??"rule-flow"}.json`,v.click(),URL.revokeObjectURL(f)}function tj({selectedEdge:n,readOnly:a,onUpdateEdgeType:l,onDeleteEdge:c}){var v;if(!n)return k.jsx("div",{style:{color:"#64748b",fontSize:13,lineHeight:1.5},children:"Select a node or edge to edit it. Use edge routing to decide whether downstream nodes run `always`, `on pass`, `on fail`, or `on error`."});const f=mg((v=n.data)==null?void 0:v.edgeType);return k.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:14,minHeight:0},children:[k.jsxs("div",{style:xg,children:[k.jsx("strong",{children:"Edge Routing"}),k.jsxs("span",{children:[n.source," → ",n.target]})]}),k.jsxs("label",{style:bj,children:["Edge Type",k.jsx("select",{style:wj,value:f,disabled:a,onChange:p=>l(mg(p.target.value)),children:["always","on-true","on-false","on-error"].map(p=>k.jsx("option",{value:p,children:QT[p]},p))})]}),k.jsxs("div",{style:Sj,children:[k.jsx("strong",{children:QT[f]}),k.jsx("span",{children:Y5[f]})]}),a?null:k.jsx("button",{type:"button",style:Cj,onClick:c,children:"Delete Edge"})]})}const nj={display:"grid",gap:12,minHeight:0,height:"100%",width:"100%",minWidth:0,overflow:"auto"},rj={display:"flex",flexDirection:"column",gap:12,padding:16,borderRadius:22,border:"1px solid rgba(148, 163, 184, 0.25)",minHeight:0,overflow:"hidden"},aj={display:"flex",flexDirection:"column",gap:12},ij={display:"flex",flexDirection:"column",gap:10,minHeight:0},oj={display:"flex",flex:"1 1 auto",minHeight:0},lj={position:"relative",minWidth:0,borderRadius:24,overflow:"hidden",border:"1px solid rgba(148, 163, 184, 0.25)",background:"radial-gradient(circle at top left, rgba(37,99,235,0.12), transparent 38%), linear-gradient(180deg, rgba(248,250,252,0.96), rgba(241,245,249,0.92))"},xg={display:"flex",flexDirection:"column",gap:4,fontSize:13,color:"#64748b"},sj={display:"flex",flexDirection:"column",gap:6,padding:20,borderRadius:18,border:"1px solid rgba(245, 158, 11, 0.35)",background:"rgba(255, 251, 235, 0.95)",color:"#92400e"},uj=n=>({display:"flex",flexDirection:"column",gap:4,padding:"10px 12px",borderRadius:14,border:n?"1px solid rgba(220, 38, 38, 0.24)":"1px solid rgba(245, 158, 11, 0.24)",background:n?"rgba(254, 242, 242, 0.95)":"rgba(255, 251, 235, 0.95)",color:n?"#b91c1c":"#92400e",fontSize:12}),Nb={display:"flex",flexDirection:"column",gap:12,minHeight:0,height:"100%",overflow:"auto",paddingRight:4};function cj(n){return{display:"flex",flexDirection:"column",gap:12,minHeight:0,flex:n?"1 1 auto":"0 0 auto",borderRadius:20,border:n?"1px solid rgba(148, 163, 184, 0.28)":"1px solid rgba(148, 163, 184, 0.18)",background:n?"rgba(255, 255, 255, 0.94)":"rgba(248, 250, 252, 0.92)",boxShadow:n?"0 12px 30px rgba(15, 23, 42, 0.06)":"none",overflow:"hidden"}}function fj(n){return{display:"flex",alignItems:"center",justifyContent:"space-between",gap:12,width:"100%",border:"none",background:"transparent",padding:n?"14px 16px 0":"14px 16px",color:"#0f172a",cursor:"pointer"}}const dj={display:"flex",flex:"1 1 auto",minHeight:0,padding:"0 16px 16px"};function tR(n){return{display:"inline-flex",alignItems:"center",justifyContent:"center",width:28,height:28,borderRadius:999,background:"rgba(148, 163, 184, 0.12)",color:"#475569",fontSize:14,transform:n?"rotate(180deg)":"rotate(0deg)",transition:"transform 160ms ease"}}function pj(n,a){const l=(a==null?void 0:a.paletteBtnBorderAlpha)??"22",c=(a==null?void 0:a.paletteBtnBgAlpha)??"10";return{display:"flex",flexDirection:"column",gap:4,borderRadius:14,border:`1px solid ${Wf[n]}${l}`,background:`${Wf[n]}${c}`,color:(a==null?void 0:a.textPrimary)??"#0f172a",padding:"11px 12px",textAlign:"left",fontWeight:600,cursor:"grab"}}function hj(n){return{gridTemplateColumns:n?"minmax(0, 1fr)":"minmax(420px, 540px) minmax(0, 1fr)",alignContent:n?"start":"stretch"}}function vj(n){return{minHeight:n?420:640,order:n?-1:0}}function mj(n){return{overflow:"auto"}}function gj(n){return{}}function yj(n){return{}}function xj(n){return{}}const bj={display:"flex",flexDirection:"column",gap:6,fontSize:12,color:"#475569",fontWeight:600},wj={width:"100%",borderRadius:12,border:"1px solid rgba(148, 163, 184, 0.32)",background:"#ffffff",color:"#0f172a",minHeight:42,padding:"10px 12px",fontSize:14},Sj={display:"flex",flexDirection:"column",gap:6,padding:"12px 14px",borderRadius:14,border:"1px solid rgba(148, 163, 184, 0.24)",background:"rgba(248, 250, 252, 0.96)",color:"#334155",fontSize:12,lineHeight:1.5},Cj={borderRadius:14,border:"1px solid rgba(220, 38, 38, 0.2)",background:"rgba(254, 242, 242, 0.96)",color:"#b91c1c",padding:"11px 14px",fontWeight:700},Ej={position:"absolute",top:16,right:16,zIndex:2,display:"flex",flexDirection:"column",gap:10,width:"min(320px, calc(100% - 32px))",maxHeight:"calc(100% - 32px)",padding:14,borderRadius:18,border:"1px solid rgba(148, 163, 184, 0.28)",background:"rgba(255, 255, 255, 0.95)",boxShadow:"0 18px 40px rgba(15, 23, 42, 0.12)",overflow:"auto"},_j={display:"flex",flexDirection:"column",gap:4,fontSize:12,color:"#64748b"},Tj={display:"flex",flexDirection:"column",gap:8};function Rj(n,a){return{display:"flex",flexDirection:"column",gap:4,width:"100%",textAlign:"left",padding:"10px 12px",borderRadius:14,border:n?(a==null?void 0:a.overlayItemSelectedBorder)??"1px solid rgba(37, 99, 235, 0.26)":(a==null?void 0:a.overlayItemBorder)??"1px solid rgba(148, 163, 184, 0.2)",background:n?(a==null?void 0:a.overlayItemSelectedBg)??"rgba(219, 234, 254, 0.92)":(a==null?void 0:a.overlayItemBg)??"rgba(248, 250, 252, 0.94)",color:(a==null?void 0:a.textPrimary)??"#0f172a",cursor:"pointer"}}const kj={position:"fixed",inset:0,zIndex:20,display:"flex",alignItems:"center",justifyContent:"center",padding:24,background:"rgba(15, 23, 42, 0.38)"},Mj={display:"flex",flexDirection:"column",gap:16,width:"min(560px, 100%)",padding:20,borderRadius:22,border:"1px solid rgba(148, 163, 184, 0.28)",background:"#ffffff",boxShadow:"0 24px 60px rgba(15, 23, 42, 0.22)"},nR={nodes:[hh("trigger",{x:80,y:180},{label:"Start"}),hh("end",{x:760,y:180},{label:"End"})],edges:[{id:"edge-trigger-end",source:"trigger-1",target:"end-1",edgeType:"always"}],metadata:{version:1}};class rR{static fromRuleSet(a){const l=tu(a),c=l.flowGraph;if(Oj(c))return bg({...c,metadata:{...c.metadata,workflowName:pc(l.workflowName)??c.metadata.workflowName}});const f=pc(l.workflowName)??pc(l.WorkflowName)??"wf.new",v=Dj(l);if(v.length===0)return{...nR,metadata:{...nR.metadata,workflowName:f}};const p=[hh("trigger",{x:80,y:180},{label:"Start"})],g=[];let x="trigger-1";for(let E=0;E<v.length;E+=1){const w=v[E],_=hh("condition",{x:220+E*220,y:180},{label:w,ruleCode:w,nodeId:w});p.push(_),g.push({id:`edge-${x}-${_.id}`,source:x,target:_.id,edgeType:"always"}),x=_.id}const S=hh("end",{x:220+v.length*220,y:180},{label:"End"});return p.push(S),g.push({id:`edge-${x}-${S.id}`,source:x,target:S.id,edgeType:"always"}),{nodes:p,edges:g,metadata:{version:1,workflowName:f}}}static toRuleSet(a,l){const c=tu(l),f=Nj(bg(a)),v=a.metadata.workflowName??a.metadata.ruleSetCode??pc(c.workflowName)??pc(c.WorkflowName)??"wf.new";return{...c,workflowName:v,rules:f,flowGraph:bg(a)}}static serialize(a){return JSON.stringify(bg(a),null,2)}}function Nj(n){var p,g,x;const a=new Map(n.nodes.map(S=>[S.id,S])),l=new Map;for(const S of n.edges){const E=l.get(S.source)??[];E.push(S),l.set(S.source,E)}const c=new Set,f=[];let v=((p=n.nodes.find(S=>S.type==="trigger"))==null?void 0:p.id)??((g=n.nodes[0])==null?void 0:g.id);for(;v&&!c.has(v);){c.add(v);const S=a.get(v);if(S&&S.type!=="trigger"&&S.type!=="end"){const w=((x=S.ruleCode)==null?void 0:x.trim())||S.label.trim();w.length>0&&!f.includes(w)&&f.push(w)}const E=(l.get(v)??[]).slice().sort((w,_)=>w.target.localeCompare(_.target))[0];v=E==null?void 0:E.target}return f.length>0?f:n.nodes.filter(S=>S.type!=="trigger"&&S.type!=="end").map(S=>{var E;return((E=S.ruleCode)==null?void 0:E.trim())||S.label.trim()}).filter(S=>S.length>0)}function Dj(n){return(Array.isArray(n.rules)?n.rules:Array.isArray(n.Rules)?n.Rules:[]).map(l=>typeof l=="string"?l:tu(l).RuleName&&typeof tu(l).RuleName=="string"?tu(l).RuleName:pc(tu(l).ruleCode)??pc(tu(l).code)??"").map(l=>l.trim()).filter(l=>l.length>0)}function bg(n){var a,l,c;return{nodes:n.nodes.map((f,v)=>{var p,g,x,S,E,w;return{...f,id:f.id||`${f.type}-${v+1}`,label:f.label.trim()||`${Aj(f.type)} ${v+1}`,position:{x:Number.isFinite((p=f.position)==null?void 0:p.x)?f.position.x:v*220,y:Number.isFinite((g=f.position)==null?void 0:g.y)?f.position.y:180},data:{...f.data??{},outputFields:f.type==="condition"?(((S=(x=f.data)==null?void 0:x.contractOverride)==null?void 0:S.responseFields)??[]).filter(_=>!_.isResultPayload&&typeof _.valueExpression=="string"&&_.valueExpression.trim().length>0).map(_=>({path:_.path,valueExpression:_.valueExpression,dataType:_.dataType,runtimeWritten:!0})):(E=f.data)==null?void 0:E.outputFields,contractRef:f.type!=="trigger"&&f.type!=="end"&&f.ruleCode?{sourceType:f.type==="decision-table"?"decision-table":f.type==="sub-flow"?"flow":"rule",sourceCode:f.ruleCode}:((w=f.data)==null?void 0:w.contractRef)??void 0}}}),edges:n.edges.map((f,v)=>({...f,id:f.id||`edge-${v+1}`,edgeType:f.edgeType??"always"})),metadata:{version:((a=n.metadata)==null?void 0:a.version)??1,workflowName:((l=n.metadata)==null?void 0:l.workflowName)??((c=n.metadata)==null?void 0:c.ruleSetCode)}}}function hh(n,a,l){var f;const c=n==="trigger"||n==="end"?"1":`${Math.abs(a.x)}`;return{id:((f=l.nodeId)==null?void 0:f.trim())||`${n}-${c}`,type:n,label:l.label,ruleCode:l.ruleCode,position:a,data:l.ruleCode?{contractRef:{sourceType:"rule",sourceCode:l.ruleCode}}:{}}}function Aj(n){return n.split("-").map(a=>a.charAt(0).toUpperCase()+a.slice(1)).join(" ")}function pc(n){return typeof n=="string"&&n.trim().length>0?n.trim():void 0}function tu(n){return n!==null&&typeof n=="object"?n:{}}function Oj(n){const a=tu(n);return Array.isArray(a.nodes)&&Array.isArray(a.edges)&&a.metadata!==void 0}var Lj=Object.defineProperty,zj=Object.getOwnPropertyDescriptor,vl=(n,a,l,c)=>{for(var f=c>1?void 0:c?zj(a,l):a,v=n.length-1,p;v>=0;v--)(p=n[v])&&(f=(c?p(a,l,f):p(f))||f);return c&&f&&Lj(a,l,f),f};const aR="rule-flow-designer";let Xi=class extends tc{constructor(){super(...arguments),this.graph=Tx(),this.graphJson="",this.readOnly=!1,this.theme="light",this.apiBaseUrl="",this.catalogApiBase="",this.height=640,this.workflowCode="",this.tenantId="",this.mInternalGraphUpdate=!1,this.mLastGraphSignature=ua(this.graph),this.mWorkflowLoadVersion=0,this.mLoadedRuleSet=null}connectedCallback(){super.connectedCallback(),this.MUpgradeProperty("graph"),this.MUpgradeProperty("graphJson"),this.MUpgradeProperty("readOnly"),this.MUpgradeProperty("theme"),this.MUpgradeProperty("apiBaseUrl"),this.MUpgradeProperty("catalogApiBase"),this.MUpgradeProperty("height"),this.MUpgradeProperty("workflowCode"),this.MUpgradeProperty("tenantId"),this.MSyncGraphFromJson()}firstUpdated(){queueMicrotask(()=>{this.MRenderEditor(),this.graphJson.trim()||this.MLoadWorkflowGraphAsync()})}updated(n){if(n.has("graphJson")&&!this.mInternalGraphUpdate&&this.MSyncGraphFromJsonIfNeeded()){this.MRenderEditor();return}!this.mInternalGraphUpdate&&(n.has("graph")||n.has("graphJson")||n.has("readOnly")||n.has("theme")||n.has("apiBaseUrl")||n.has("catalogApiBase")||n.has("height")||n.has("tenantId"))&&this.MRenderEditor(),(n.has("workflowCode")||n.has("apiBaseUrl")||n.has("tenantId"))&&!this.graphJson.trim()&&this.MLoadWorkflowGraphAsync(),this.mInternalGraphUpdate&&(n.has("graphJson")||n.has("graph"))&&(this.mInternalGraphUpdate=!1,this.MRenderEditor())}disconnectedCallback(){var n;(n=this.mRoot)==null||n.unmount(),this.mRoot=void 0,super.disconnectedCallback()}render(){const n=NC(aR);return n||er`<section id="editor-host" class="block h-full min-h-[640px] w-full"></section>`}MUpgradeProperty(n){if(!Object.prototype.hasOwnProperty.call(this,n))return;const a=Reflect.get(this,n);Reflect.deleteProperty(this,n),Reflect.set(this,n,a)}MSyncGraphFromJson(){if(!this.graphJson.trim()){this.graph=Jr(this.graph),this.mLastGraphSignature=ua(this.graph);return}try{this.graph=Jr(JSON.parse(this.graphJson)),this.mLastGraphSignature=ua(this.graph)}catch{this.graph=Tx(),this.mLastGraphSignature=ua(this.graph)}}MSyncGraphFromJsonIfNeeded(){if(!this.graphJson.trim())return!1;try{const n=Jr(JSON.parse(this.graphJson)),a=ua(n);return a===this.mLastGraphSignature?!1:(this.graph=n,this.mLastGraphSignature=a,!0)}catch{return!1}}MRenderEditor(){var l,c;if(NC(aR)){(l=this.mRoot)==null||l.unmount(),this.mRoot=void 0;return}const a=(c=this.renderRoot)==null?void 0:c.querySelector("#editor-host");a&&(this.mRoot??(this.mRoot=vN.createRoot(a)),this.mRoot.render(ue.createElement(G5,{graph:this.graph,readOnly:this.readOnly,theme:this.theme,apiBaseUrl:this.apiBaseUrl||void 0,catalogApiBase:this.catalogApiBase||void 0,tenantId:this.tenantId||void 0,workflowCode:this.workflowCode||void 0,height:this.height,onGraphChange:f=>{const v=ua(f);v!==this.mLastGraphSignature&&(this.mInternalGraphUpdate=!0,this.graph=f,this.mLastGraphSignature=v,this.graphJson=JSON.stringify(f),this.dispatchEvent(new CustomEvent("graph-change",{detail:f,bubbles:!0,composed:!0})))},onPublish:async f=>{await this.MPublishGraphAsync(f)}})))}async MPublishGraphAsync(n){const a=rR.toRuleSet(n,this.mLoadedRuleSet??void 0);this.mLoadedRuleSet=a;const l={graph:n,ruleSet:a};if(this.dispatchEvent(new CustomEvent("publish-start",{detail:l,bubbles:!0,composed:!0})),!this.apiBaseUrl.trim()||!this.workflowCode.trim()){this.dispatchEvent(new CustomEvent("publish",{detail:l,bubbles:!0,composed:!0}));return}try{const c=await this.MPersistRuleSetAsync(l);this.dispatchEvent(new CustomEvent("publish-complete",{detail:c,bubbles:!0,composed:!0}))}catch(c){const f=c instanceof Error?c.message:"Rule Studio publish failed.";throw this.dispatchEvent(new CustomEvent("publish-error",{detail:{message:f,graph:n,ruleSet:a},bubbles:!0,composed:!0})),c}}async MPersistRuleSetAsync(n){const a=this.workflowCode.trim(),l=this.apiBaseUrl.replace(/\/$/,""),c="ui-studio",f=await this.MRequestJson(`${l}/rulesets/${encodeURIComponent(a)}`,{method:"POST",body:JSON.stringify({ruleSet:n.ruleSet,activateAfterSave:!1,actor:c})}),v=Number(f.savedVersion??0);if(!Number.isFinite(v)||v<=0)throw new Error("Rule Studio publish did not return a saved version.");const p=!!f.approvalWorkflowEnabled;let g=!!f.activated,x=typeof f.activeVersion=="number"?f.activeVersion:null,S=typeof f.status=="string"?f.status:void 0,E=`Saved version ${v}.`;if(p){const w=await this.MRequestJson(`${l}/rulesets/${encodeURIComponent(a)}/${v}/submit`,{method:"POST",body:JSON.stringify({actor:c})});S=typeof w.status=="string"?w.status:S,E=`Saved version ${v} and submitted for approval.`}else if(!g||x!==v){const w=await this.MRequestJson(`${l}/rulesets/${encodeURIComponent(a)}/${v}/activate`,{method:"POST",body:JSON.stringify({actor:c})});g=!0,x=typeof w.activeVersion=="number"?w.activeVersion:v,S="Active",E=`Saved version ${v} and activated it.`}else E=`Saved version ${v} and activated it.`;return{...n,savedVersion:v,activeVersion:x,approvalWorkflowEnabled:p,activated:g,status:S,message:E}}async MRequestJson(n,a){const l=ul(a.headers,{tenantId:this.tenantId});!l.has("Content-Type")&&a.body&&l.set("Content-Type","application/json"),l.has("Accept")||l.set("Accept","application/json");const c=await fetch(n,{...a,headers:l});if(!c.ok){const f=await c.text();throw new Error(f||`Rule Studio request failed: ${c.status} ${c.statusText}`)}return await c.json()}async MLoadWorkflowGraphAsync(){const n=this.workflowCode.trim(),a=this.apiBaseUrl.trim();if(!n||!a||this.graphJson.trim())return;const l=++this.mWorkflowLoadVersion,c=`${a.replace(/\/$/,"")}/rulesets/${encodeURIComponent(n)}/export`;try{const f=await fetch(c,{headers:ul(void 0,{tenantId:this.tenantId})});if(!f.ok)return;const v=await f.json();if(l!=this.mWorkflowLoadVersion||!v.ruleSetJson)return;const p=JSON.parse(v.ruleSetJson);this.mLoadedRuleSet=p;const g=Jr(rR.fromRuleSet(p));this.mInternalGraphUpdate=!0,this.graph=g,this.mLastGraphSignature=ua(g),this.graphJson=JSON.stringify(g)}catch{}}};Xi.styles=[dx(TN),dx(RN)],vl([sa({attribute:!1})],Xi.prototype,"graph",2),vl([sa({type:String,attribute:"graph-json"})],Xi.prototype,"graphJson",2),vl([sa({type:Boolean,attribute:"read-only"})],Xi.prototype,"readOnly",2),vl([sa({type:String})],Xi.prototype,"theme",2),vl([sa({type:String,attribute:"api-base-url"})],Xi.prototype,"apiBaseUrl",2),vl([sa({type:String,attribute:"catalog-api-base"})],Xi.prototype,"catalogApiBase",2),vl([sa({type:Number})],Xi.prototype,"height",2),vl([sa({type:String,attribute:"workflow-code"})],Xi.prototype,"workflowCode",2),vl([sa({type:String,attribute:"tenant-id"})],Xi.prototype,"tenantId",2),Xi=vl([xx("mu-rule-flow-designer")],Xi);class iR{constructor(a,l){this.baseUrl=a,this.mGetHeaders=l}async mFetch(a,l){var p;const c=((p=this.mGetHeaders)==null?void 0:p.call(this))??ul(),f=new Headers(c);l!=null&&l.headers&&new Headers(l.headers).forEach((x,S)=>f.set(S,x));const v=await fetch(`${this.baseUrl}${a}`,{...l,headers:f});if(!v.ok)throw new Error(`Trace API ${v.status}: ${await v.text()}`);return v.json()}async mEnableDebugger(a,l){await this.mFetch(`/muonroi/rule-debugger/${a}/enable`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(l??{})})}async mDisableDebugger(a){await this.mFetch(`/muonroi/rule-debugger/${a}/disable`,{method:"POST"})}async mQueryTraces(a,l){const c=new URLSearchParams;l!=null&&l.correlationId&&c.set("correlationId",l.correlationId),l!=null&&l.from&&c.set("from",l.from);const f=c.toString();return this.mFetch(`/muonroi/rule-debugger/${a}/traces${f?`?${f}`:""}`)}}var jj=Object.defineProperty,Pj=Object.getOwnPropertyDescriptor,zi=(n,a,l,c)=>{for(var f=c>1?void 0:c?Pj(a,l):a,v=n.length-1,p;v>=0;v--)(p=n[v])&&(f=(c?p(a,l,f):p(f))||f);return c&&f&&jj(a,l,f),f};const $j=["BeforeEval","AfterEval","AfterExec","Error","Compensate"],Uj=["#6366f1","#3b82f6","#22c55e","#ef4444","#f59e0b"];let Ka=class extends tc{constructor(){super(...arguments),this.apiBaseUrl="",this.tenantId="",this.correlationId="",this.readOnly=!1,this.tracesJson="",this._traces=[],this._loading=!1,this._error=null,this._expandedIds=new Set,this._phaseFilter="all",this._successFilter="all",this._apiClient=null}connectedCallback(){super.connectedCallback(),this.apiBaseUrl&&(this._apiClient=new iR(this.apiBaseUrl))}updated(n){if(n.has("tracesJson")&&this.tracesJson)try{this._traces=JSON.parse(this.tracesJson)}catch{}n.has("apiBaseUrl")&&this.apiBaseUrl&&(this._apiClient=new iR(this.apiBaseUrl))}async loadTraces(){if(!(!this._apiClient||!this.tenantId)){this._loading=!0,this._error=null;try{this._traces=await this._apiClient.mQueryTraces(this.tenantId,{correlationId:this.correlationId||void 0})}catch(n){this._error=n instanceof Error?n.message:String(n)}finally{this._loading=!1}}}async enableDebugger(n=30){!this._apiClient||!this.tenantId||await this._apiClient.mEnableDebugger(this.tenantId,{durationMinutes:n})}async disableDebugger(){!this._apiClient||!this.tenantId||await this._apiClient.mDisableDebugger(this.tenantId)}_phaseLabel(n){return $j[n]??"Unknown"}_phaseColor(n){return Uj[n]??"#6b7280"}get _filteredTraces(){return this._traces.filter(n=>!(this._phaseFilter!=="all"&&n.phase!==this._phaseFilter||this._successFilter==="success"&&!n.isSuccess||this._successFilter==="failure"&&n.isSuccess))}_toggleExpand(n){const a=new Set(this._expandedIds);a.has(n)?a.delete(n):a.add(n),this._expandedIds=a}_formatJson(n){if(!n)return"—";try{return JSON.stringify(JSON.parse(n),null,2)}catch{return n}}render(){return er`
|
|
330
|
+
<div class="trace-viewer">
|
|
331
|
+
<div class="trace-header">
|
|
332
|
+
<span class="trace-title">Execution Traces</span>
|
|
333
|
+
${this._apiClient?er`
|
|
334
|
+
<button
|
|
335
|
+
@click=${()=>this.loadTraces()}
|
|
336
|
+
?disabled=${this._loading}
|
|
337
|
+
>
|
|
338
|
+
${this._loading?"Loading...":"Refresh"}
|
|
339
|
+
</button>
|
|
340
|
+
`:Bn}
|
|
341
|
+
</div>
|
|
342
|
+
|
|
343
|
+
<div class="trace-filters">
|
|
344
|
+
<select
|
|
345
|
+
@change=${n=>{const a=n.target.value;this._phaseFilter=a==="all"?"all":Number(a)}}
|
|
346
|
+
>
|
|
347
|
+
<option value="all">All Phases</option>
|
|
348
|
+
${[0,1,2,3,4].map(n=>er`
|
|
349
|
+
<option value=${n}>
|
|
350
|
+
${this._phaseLabel(n)}
|
|
351
|
+
</option>
|
|
352
|
+
`)}
|
|
353
|
+
</select>
|
|
354
|
+
<select
|
|
355
|
+
@change=${n=>{this._successFilter=n.target.value}}
|
|
356
|
+
>
|
|
357
|
+
<option value="all">All</option>
|
|
358
|
+
<option value="success">Pass</option>
|
|
359
|
+
<option value="failure">Fail</option>
|
|
360
|
+
</select>
|
|
361
|
+
<span class="trace-count">${this._filteredTraces.length} traces</span>
|
|
362
|
+
</div>
|
|
363
|
+
|
|
364
|
+
${this._error?er`<div class="trace-error">${this._error}</div>`:Bn}
|
|
365
|
+
|
|
366
|
+
<div class="trace-list">
|
|
367
|
+
${this._filteredTraces.map(n=>{var a;return er`
|
|
368
|
+
<div
|
|
369
|
+
class="trace-row ${n.isSuccess?"":"trace-row--fail"}"
|
|
370
|
+
@click=${()=>this._toggleExpand(n.traceId)}
|
|
371
|
+
>
|
|
372
|
+
<span
|
|
373
|
+
class="trace-phase"
|
|
374
|
+
style="background:${this._phaseColor(n.phase)}"
|
|
375
|
+
>
|
|
376
|
+
${this._phaseLabel(n.phase)}
|
|
377
|
+
</span>
|
|
378
|
+
<span class="trace-rule">${n.ruleName}</span>
|
|
379
|
+
<span class="trace-elapsed">${n.elapsedMs}ms</span>
|
|
380
|
+
<span class="trace-icon"
|
|
381
|
+
>${n.isSuccess?"✓":"✗"}</span
|
|
382
|
+
>
|
|
383
|
+
</div>
|
|
384
|
+
${this._expandedIds.has(n.traceId)?er`
|
|
385
|
+
<div class="trace-detail">
|
|
386
|
+
${n.failureReason?er`
|
|
387
|
+
<div class="trace-detail__error">
|
|
388
|
+
<strong>Failure:</strong> ${n.failureReason}
|
|
389
|
+
</div>
|
|
390
|
+
`:Bn}
|
|
391
|
+
${(a=n.changedFactKeys)!=null&&a.length?er`
|
|
392
|
+
<div class="trace-detail__changed">
|
|
393
|
+
<strong>Changed facts:</strong>
|
|
394
|
+
${n.changedFactKeys.join(", ")}
|
|
395
|
+
</div>
|
|
396
|
+
`:Bn}
|
|
397
|
+
<div class="trace-detail__facts">
|
|
398
|
+
<div>
|
|
399
|
+
<strong>Input Facts:</strong>
|
|
400
|
+
<pre>${this._formatJson(n.inputFactsJson)}</pre>
|
|
401
|
+
</div>
|
|
402
|
+
<div>
|
|
403
|
+
<strong>Output Facts:</strong>
|
|
404
|
+
<pre>${this._formatJson(n.outputFactsJson)}</pre>
|
|
405
|
+
</div>
|
|
406
|
+
</div>
|
|
407
|
+
</div>
|
|
408
|
+
`:Bn}
|
|
409
|
+
`})}
|
|
410
|
+
</div>
|
|
411
|
+
</div>
|
|
412
|
+
`}};Ka.styles=K1`
|
|
413
|
+
:host {
|
|
414
|
+
display: block;
|
|
415
|
+
font-family: system-ui, sans-serif;
|
|
416
|
+
font-size: 14px;
|
|
417
|
+
}
|
|
418
|
+
.trace-viewer {
|
|
419
|
+
border: 1px solid #e2e8f0;
|
|
420
|
+
border-radius: 8px;
|
|
421
|
+
overflow: hidden;
|
|
422
|
+
}
|
|
423
|
+
.trace-header {
|
|
424
|
+
display: flex;
|
|
425
|
+
align-items: center;
|
|
426
|
+
justify-content: space-between;
|
|
427
|
+
padding: 12px 16px;
|
|
428
|
+
background: #f8fafc;
|
|
429
|
+
border-bottom: 1px solid #e2e8f0;
|
|
430
|
+
}
|
|
431
|
+
.trace-title {
|
|
432
|
+
font-weight: 600;
|
|
433
|
+
font-size: 14px;
|
|
434
|
+
}
|
|
435
|
+
.trace-filters {
|
|
436
|
+
display: flex;
|
|
437
|
+
gap: 8px;
|
|
438
|
+
padding: 8px 16px;
|
|
439
|
+
border-bottom: 1px solid #e2e8f0;
|
|
440
|
+
align-items: center;
|
|
441
|
+
}
|
|
442
|
+
.trace-filters select {
|
|
443
|
+
padding: 4px 8px;
|
|
444
|
+
border: 1px solid #cbd5e1;
|
|
445
|
+
border-radius: 4px;
|
|
446
|
+
font-size: 12px;
|
|
447
|
+
}
|
|
448
|
+
.trace-count {
|
|
449
|
+
margin-left: auto;
|
|
450
|
+
font-size: 12px;
|
|
451
|
+
color: #64748b;
|
|
452
|
+
}
|
|
453
|
+
.trace-error {
|
|
454
|
+
padding: 8px 16px;
|
|
455
|
+
background: #fef2f2;
|
|
456
|
+
color: #dc2626;
|
|
457
|
+
font-size: 12px;
|
|
458
|
+
}
|
|
459
|
+
.trace-list {
|
|
460
|
+
max-height: 600px;
|
|
461
|
+
overflow-y: auto;
|
|
462
|
+
}
|
|
463
|
+
.trace-row {
|
|
464
|
+
display: flex;
|
|
465
|
+
align-items: center;
|
|
466
|
+
gap: 8px;
|
|
467
|
+
padding: 8px 16px;
|
|
468
|
+
cursor: pointer;
|
|
469
|
+
border-bottom: 1px solid #f1f5f9;
|
|
470
|
+
}
|
|
471
|
+
.trace-row:hover {
|
|
472
|
+
background: #f8fafc;
|
|
473
|
+
}
|
|
474
|
+
.trace-row--fail {
|
|
475
|
+
background: #fef2f2;
|
|
476
|
+
}
|
|
477
|
+
.trace-phase {
|
|
478
|
+
display: inline-block;
|
|
479
|
+
padding: 2px 8px;
|
|
480
|
+
border-radius: 9999px;
|
|
481
|
+
color: white;
|
|
482
|
+
font-size: 10px;
|
|
483
|
+
font-weight: 600;
|
|
484
|
+
text-transform: uppercase;
|
|
485
|
+
}
|
|
486
|
+
.trace-rule {
|
|
487
|
+
flex: 1;
|
|
488
|
+
font-family: monospace;
|
|
489
|
+
font-size: 13px;
|
|
490
|
+
}
|
|
491
|
+
.trace-elapsed {
|
|
492
|
+
font-size: 12px;
|
|
493
|
+
color: #64748b;
|
|
494
|
+
font-family: monospace;
|
|
495
|
+
}
|
|
496
|
+
.trace-icon {
|
|
497
|
+
font-size: 14px;
|
|
498
|
+
}
|
|
499
|
+
.trace-detail {
|
|
500
|
+
padding: 8px 16px 8px 40px;
|
|
501
|
+
background: #f8fafc;
|
|
502
|
+
border-bottom: 1px solid #e2e8f0;
|
|
503
|
+
}
|
|
504
|
+
.trace-detail__error {
|
|
505
|
+
color: #dc2626;
|
|
506
|
+
margin-bottom: 8px;
|
|
507
|
+
font-size: 13px;
|
|
508
|
+
}
|
|
509
|
+
.trace-detail__changed {
|
|
510
|
+
margin-bottom: 8px;
|
|
511
|
+
font-size: 12px;
|
|
512
|
+
color: #059669;
|
|
513
|
+
}
|
|
514
|
+
.trace-detail__facts {
|
|
515
|
+
display: grid;
|
|
516
|
+
grid-template-columns: 1fr 1fr;
|
|
517
|
+
gap: 12px;
|
|
518
|
+
}
|
|
519
|
+
.trace-detail__facts pre {
|
|
520
|
+
font-size: 11px;
|
|
521
|
+
background: #1e293b;
|
|
522
|
+
color: #e2e8f0;
|
|
523
|
+
padding: 8px;
|
|
524
|
+
border-radius: 4px;
|
|
525
|
+
overflow-x: auto;
|
|
526
|
+
max-height: 200px;
|
|
527
|
+
}
|
|
528
|
+
button {
|
|
529
|
+
padding: 6px 12px;
|
|
530
|
+
border: 1px solid #cbd5e1;
|
|
531
|
+
border-radius: 4px;
|
|
532
|
+
background: white;
|
|
533
|
+
cursor: pointer;
|
|
534
|
+
font-size: 12px;
|
|
535
|
+
}
|
|
536
|
+
button:hover {
|
|
537
|
+
background: #f1f5f9;
|
|
538
|
+
}
|
|
539
|
+
button:disabled {
|
|
540
|
+
opacity: 0.5;
|
|
541
|
+
cursor: not-allowed;
|
|
542
|
+
}
|
|
543
|
+
`,zi([sa({attribute:"api-base-url"})],Ka.prototype,"apiBaseUrl",2),zi([sa({attribute:"tenant-id"})],Ka.prototype,"tenantId",2),zi([sa({attribute:"correlation-id"})],Ka.prototype,"correlationId",2),zi([sa({type:Boolean,attribute:"read-only"})],Ka.prototype,"readOnly",2),zi([sa({attribute:"traces-json"})],Ka.prototype,"tracesJson",2),zi([sl()],Ka.prototype,"_traces",2),zi([sl()],Ka.prototype,"_loading",2),zi([sl()],Ka.prototype,"_error",2),zi([sl()],Ka.prototype,"_expandedIds",2),zi([sl()],Ka.prototype,"_phaseFilter",2),zi([sl()],Ka.prototype,"_successFilter",2),zi([sl()],Ka.prototype,"_apiClient",2),Ka=zi([xx("mu-rule-trace-viewer")],Ka);var Fj=Object.defineProperty,Ij=Object.getOwnPropertyDescriptor,Xf=(n,a,l,c)=>{for(var f=c>1?void 0:c?Ij(a,l):a,v=n.length-1,p;v>=0;v--)(p=n[v])&&(f=(c?p(a,l,f):p(f))||f);return c&&f&&Fj(a,l,f),f};let nu=class extends tc{constructor(){super(...arguments),this.resultJson="",this.loading=!1,this._result=null,this._showTrace=!1,this._expandedRule=null}updated(n){if(n.has("resultJson")&&this.resultJson)try{this._result=JSON.parse(this.resultJson)}catch{this._result=null}}get _failedRules(){var n;return((n=this._result)==null?void 0:n.ruleResults.filter(a=>!a.isPass))??[]}_toggleExpand(n){this._expandedRule=this._expandedRule===n?null:n}render(){return this.loading?er`
|
|
544
|
+
<div class="loading">
|
|
545
|
+
<div class="spinner"></div>
|
|
546
|
+
<span>Validating...</span>
|
|
547
|
+
</div>
|
|
548
|
+
`:this._result?er`
|
|
549
|
+
<div class="panel">
|
|
550
|
+
<div
|
|
551
|
+
class="header ${this._result.isAllPassed?"header--pass":"header--fail"}"
|
|
552
|
+
>
|
|
553
|
+
<span class="header-icon"
|
|
554
|
+
>${this._result.isAllPassed?"✓":"⚠"}</span
|
|
555
|
+
>
|
|
556
|
+
<span class="header-text">
|
|
557
|
+
${this._result.isAllPassed?"All validations passed":`${this._failedRules.length} error(s) found`}
|
|
558
|
+
</span>
|
|
559
|
+
<span class="header-time">${this._result.totalElapsedMs}ms</span>
|
|
560
|
+
</div>
|
|
561
|
+
|
|
562
|
+
${this._showTrace?er`
|
|
563
|
+
<button
|
|
564
|
+
class="toggle-btn"
|
|
565
|
+
@click=${()=>{this._showTrace=!1}}
|
|
566
|
+
>
|
|
567
|
+
\u2190 Back to summary
|
|
568
|
+
</button>
|
|
569
|
+
<div class="trace-summary">
|
|
570
|
+
${this._result.totalRules} rules |
|
|
571
|
+
${this._result.passedCount} pass |
|
|
572
|
+
${this._result.failedCount} fail
|
|
573
|
+
</div>
|
|
574
|
+
${this._result.ruleResults.map(n=>er`
|
|
575
|
+
<div
|
|
576
|
+
class="rule-row ${n.isPass?"":"rule-row--fail"}"
|
|
577
|
+
@click=${()=>this._toggleExpand(n.ruleCode)}
|
|
578
|
+
>
|
|
579
|
+
<span class="rule-icon"
|
|
580
|
+
>${n.isPass?"✓":"✗"}</span
|
|
581
|
+
>
|
|
582
|
+
<span class="rule-code">${n.ruleCode}</span>
|
|
583
|
+
</div>
|
|
584
|
+
${this._expandedRule===n.ruleCode&&n.errors.length>0?er`
|
|
585
|
+
<div class="rule-detail">
|
|
586
|
+
${n.errors.map(a=>er`<div>${a}</div>`)}
|
|
587
|
+
</div>
|
|
588
|
+
`:Bn}
|
|
589
|
+
`)}
|
|
590
|
+
`:er`
|
|
591
|
+
${this._failedRules.map(n=>er`
|
|
592
|
+
<div class="error-card">
|
|
593
|
+
<span class="error-icon">\u2717</span>
|
|
594
|
+
<div class="error-messages">
|
|
595
|
+
${n.errors.map(a=>er`<div>${a}</div>`)}
|
|
596
|
+
</div>
|
|
597
|
+
</div>
|
|
598
|
+
`)}
|
|
599
|
+
${this._result.isAllPassed?er`
|
|
600
|
+
<div class="success-card">
|
|
601
|
+
<span>\u2713</span>
|
|
602
|
+
<span>All ${this._result.totalRules} rules passed</span>
|
|
603
|
+
</div>
|
|
604
|
+
`:Bn}
|
|
605
|
+
<button
|
|
606
|
+
class="toggle-btn"
|
|
607
|
+
@click=${()=>{this._showTrace=!0}}
|
|
608
|
+
>
|
|
609
|
+
View execution trace \u2192
|
|
610
|
+
</button>
|
|
611
|
+
`}
|
|
612
|
+
</div>
|
|
613
|
+
`:Bn}};nu.styles=K1`
|
|
614
|
+
:host {
|
|
615
|
+
display: block;
|
|
616
|
+
overflow-y: auto;
|
|
617
|
+
max-height: calc(100vh - 200px);
|
|
618
|
+
font-family: system-ui, sans-serif;
|
|
619
|
+
font-size: 14px;
|
|
620
|
+
}
|
|
621
|
+
.loading {
|
|
622
|
+
display: flex;
|
|
623
|
+
align-items: center;
|
|
624
|
+
justify-content: center;
|
|
625
|
+
padding: 24px;
|
|
626
|
+
gap: 8px;
|
|
627
|
+
}
|
|
628
|
+
.spinner {
|
|
629
|
+
width: 24px;
|
|
630
|
+
height: 24px;
|
|
631
|
+
border: 3px solid #e2e8f0;
|
|
632
|
+
border-top-color: #3b82f6;
|
|
633
|
+
border-radius: 50%;
|
|
634
|
+
animation: spin 0.6s linear infinite;
|
|
635
|
+
}
|
|
636
|
+
@keyframes spin {
|
|
637
|
+
to {
|
|
638
|
+
transform: rotate(360deg);
|
|
639
|
+
}
|
|
640
|
+
}
|
|
641
|
+
.panel {
|
|
642
|
+
padding: 12px;
|
|
643
|
+
}
|
|
644
|
+
.header {
|
|
645
|
+
display: flex;
|
|
646
|
+
align-items: center;
|
|
647
|
+
gap: 8px;
|
|
648
|
+
padding: 8px 12px;
|
|
649
|
+
border-radius: 6px;
|
|
650
|
+
margin-bottom: 12px;
|
|
651
|
+
}
|
|
652
|
+
.header--pass {
|
|
653
|
+
background: #f0fdf4;
|
|
654
|
+
border-left: 3px solid #22c55e;
|
|
655
|
+
}
|
|
656
|
+
.header--fail {
|
|
657
|
+
background: #fef2f2;
|
|
658
|
+
border-left: 3px solid #ef4444;
|
|
659
|
+
}
|
|
660
|
+
.header-icon {
|
|
661
|
+
font-size: 16px;
|
|
662
|
+
}
|
|
663
|
+
.header-text {
|
|
664
|
+
font-size: 13px;
|
|
665
|
+
font-weight: 600;
|
|
666
|
+
flex: 1;
|
|
667
|
+
}
|
|
668
|
+
.header--pass .header-text {
|
|
669
|
+
color: #15803d;
|
|
670
|
+
}
|
|
671
|
+
.header--fail .header-text {
|
|
672
|
+
color: #b91c1c;
|
|
673
|
+
}
|
|
674
|
+
.header-time {
|
|
675
|
+
font-size: 11px;
|
|
676
|
+
font-family: monospace;
|
|
677
|
+
color: #64748b;
|
|
678
|
+
}
|
|
679
|
+
.error-card {
|
|
680
|
+
display: flex;
|
|
681
|
+
gap: 8px;
|
|
682
|
+
padding: 8px 12px;
|
|
683
|
+
margin-bottom: 8px;
|
|
684
|
+
background: #fef2f2;
|
|
685
|
+
border-left: 3px solid #fca5a5;
|
|
686
|
+
border-radius: 4px;
|
|
687
|
+
}
|
|
688
|
+
.error-icon {
|
|
689
|
+
color: #ef4444;
|
|
690
|
+
}
|
|
691
|
+
.error-messages {
|
|
692
|
+
font-size: 13px;
|
|
693
|
+
color: #374151;
|
|
694
|
+
}
|
|
695
|
+
.success-card {
|
|
696
|
+
display: flex;
|
|
697
|
+
gap: 8px;
|
|
698
|
+
padding: 8px 12px;
|
|
699
|
+
background: #f0fdf4;
|
|
700
|
+
border-left: 3px solid #86efac;
|
|
701
|
+
border-radius: 4px;
|
|
702
|
+
font-size: 13px;
|
|
703
|
+
color: #15803d;
|
|
704
|
+
}
|
|
705
|
+
.toggle-btn {
|
|
706
|
+
display: flex;
|
|
707
|
+
align-items: center;
|
|
708
|
+
justify-content: center;
|
|
709
|
+
width: 100%;
|
|
710
|
+
padding: 8px;
|
|
711
|
+
margin-top: 12px;
|
|
712
|
+
border: none;
|
|
713
|
+
background: none;
|
|
714
|
+
color: #64748b;
|
|
715
|
+
cursor: pointer;
|
|
716
|
+
font-size: 12px;
|
|
717
|
+
}
|
|
718
|
+
.toggle-btn:hover {
|
|
719
|
+
color: #3b82f6;
|
|
720
|
+
}
|
|
721
|
+
.trace-summary {
|
|
722
|
+
font-size: 12px;
|
|
723
|
+
color: #64748b;
|
|
724
|
+
margin-bottom: 8px;
|
|
725
|
+
}
|
|
726
|
+
.rule-row {
|
|
727
|
+
display: flex;
|
|
728
|
+
align-items: center;
|
|
729
|
+
gap: 8px;
|
|
730
|
+
padding: 6px 8px;
|
|
731
|
+
margin-bottom: 2px;
|
|
732
|
+
border-radius: 4px;
|
|
733
|
+
cursor: pointer;
|
|
734
|
+
font-size: 13px;
|
|
735
|
+
}
|
|
736
|
+
.rule-row:hover {
|
|
737
|
+
background: #f8fafc;
|
|
738
|
+
}
|
|
739
|
+
.rule-row--fail {
|
|
740
|
+
background: #fef2f2;
|
|
741
|
+
}
|
|
742
|
+
.rule-icon {
|
|
743
|
+
font-size: 12px;
|
|
744
|
+
}
|
|
745
|
+
.rule-code {
|
|
746
|
+
font-family: monospace;
|
|
747
|
+
font-size: 12px;
|
|
748
|
+
}
|
|
749
|
+
.rule-detail {
|
|
750
|
+
margin: 0 0 8px 28px;
|
|
751
|
+
padding: 8px;
|
|
752
|
+
background: #f8fafc;
|
|
753
|
+
border-radius: 4px;
|
|
754
|
+
font-size: 12px;
|
|
755
|
+
color: #475569;
|
|
756
|
+
}
|
|
757
|
+
`,Xf([sa({attribute:"result-json"})],nu.prototype,"resultJson",2),Xf([sa({type:Boolean})],nu.prototype,"loading",2),Xf([sl()],nu.prototype,"_result",2),Xf([sl()],nu.prototype,"_showTrace",2),Xf([sl()],nu.prototype,"_expandedRule",2),nu=Xf([xx("mu-rule-result-panel")],nu)})();
|