@kizenapps/cli 0.1.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- var kx=Object.defineProperty;var $h=e=>{throw TypeError(e)};var Tx=(e,t,n)=>t in e?kx(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var J=(e,t,n)=>Tx(e,typeof t!="symbol"?t+"":t,n),Pu=(e,t,n)=>t.has(e)||$h("Cannot "+n);var C=(e,t,n)=>(Pu(e,t,"read from private field"),n?n.call(e):t.get(e)),ee=(e,t,n)=>t.has(e)?$h("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),q=(e,t,n,r)=>(Pu(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),fe=(e,t,n)=>(Pu(e,t,"access private method"),n);var pa=(e,t,n,r)=>({set _(o){q(e,t,o,n)},get _(){return C(e,t,r)}});(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const i of s.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();function Ix(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Lg={exports:{}},Hl={},jg={exports:{}},ue={};/**
1
+ var kS=Object.defineProperty;var $h=e=>{throw TypeError(e)};var TS=(e,t,n)=>t in e?kS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var J=(e,t,n)=>TS(e,typeof t!="symbol"?t+"":t,n),Pu=(e,t,n)=>t.has(e)||$h("Cannot "+n);var C=(e,t,n)=>(Pu(e,t,"read from private field"),n?n.call(e):t.get(e)),ee=(e,t,n)=>t.has(e)?$h("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),q=(e,t,n,r)=>(Pu(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),fe=(e,t,n)=>(Pu(e,t,"access private method"),n);var ma=(e,t,n,r)=>({set _(o){q(e,t,o,n)},get _(){return C(e,t,r)}});(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const i of s.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();function IS(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Lg={exports:{}},Wl={},jg={exports:{}},ue={};/**
2
2
  * @license React
3
3
  * react.production.min.js
4
4
  *
@@ -6,7 +6,7 @@ var kx=Object.defineProperty;var $h=e=>{throw TypeError(e)};var Tx=(e,t,n)=>t in
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var ta=Symbol.for("react.element"),Ax=Symbol.for("react.portal"),Nx=Symbol.for("react.fragment"),Ox=Symbol.for("react.strict_mode"),Mx=Symbol.for("react.profiler"),Lx=Symbol.for("react.provider"),jx=Symbol.for("react.context"),Fx=Symbol.for("react.forward_ref"),Dx=Symbol.for("react.suspense"),$x=Symbol.for("react.memo"),Ux=Symbol.for("react.lazy"),Uh=Symbol.iterator;function zx(e){return e===null||typeof e!="object"?null:(e=Uh&&e[Uh]||e["@@iterator"],typeof e=="function"?e:null)}var Fg={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Dg=Object.assign,$g={};function Os(e,t,n){this.props=e,this.context=t,this.refs=$g,this.updater=n||Fg}Os.prototype.isReactComponent={};Os.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=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,e,t,"setState")};Os.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Ug(){}Ug.prototype=Os.prototype;function Zf(e,t,n){this.props=e,this.context=t,this.refs=$g,this.updater=n||Fg}var ed=Zf.prototype=new Ug;ed.constructor=Zf;Dg(ed,Os.prototype);ed.isPureReactComponent=!0;var zh=Array.isArray,zg=Object.prototype.hasOwnProperty,td={current:null},Bg={key:!0,ref:!0,__self:!0,__source:!0};function Hg(e,t,n){var r,o={},s=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(s=""+t.key),t)zg.call(t,r)&&!Bg.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(a===1)o.children=n;else if(1<a){for(var l=Array(a),u=0;u<a;u++)l[u]=arguments[u+2];o.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)o[r]===void 0&&(o[r]=a[r]);return{$$typeof:ta,type:e,key:s,ref:i,props:o,_owner:td.current}}function Bx(e,t){return{$$typeof:ta,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function nd(e){return typeof e=="object"&&e!==null&&e.$$typeof===ta}function Hx(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Bh=/\/+/g;function Ru(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Hx(""+e.key):t.toString(36)}function za(e,t,n,r,o){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(s){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case ta:case Ax:i=!0}}if(i)return i=e,o=o(i),e=r===""?"."+Ru(i,0):r,zh(o)?(n="",e!=null&&(n=e.replace(Bh,"$&/")+"/"),za(o,t,n,"",function(u){return u})):o!=null&&(nd(o)&&(o=Bx(o,n+(!o.key||i&&i.key===o.key?"":(""+o.key).replace(Bh,"$&/")+"/")+e)),t.push(o)),1;if(i=0,r=r===""?".":r+":",zh(e))for(var a=0;a<e.length;a++){s=e[a];var l=r+Ru(s,a);i+=za(s,t,n,l,o)}else if(l=zx(e),typeof l=="function")for(e=l.call(e),a=0;!(s=e.next()).done;)s=s.value,l=r+Ru(s,a++),i+=za(s,t,n,l,o);else if(s==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return i}function ma(e,t,n){if(e==null)return e;var r=[],o=0;return za(e,r,"","",function(s){return t.call(n,s,o++)}),r}function Wx(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Ct={current:null},Ba={transition:null},Vx={ReactCurrentDispatcher:Ct,ReactCurrentBatchConfig:Ba,ReactCurrentOwner:td};function Wg(){throw Error("act(...) is not supported in production builds of React.")}ue.Children={map:ma,forEach:function(e,t,n){ma(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return ma(e,function(){t++}),t},toArray:function(e){return ma(e,function(t){return t})||[]},only:function(e){if(!nd(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ue.Component=Os;ue.Fragment=Nx;ue.Profiler=Mx;ue.PureComponent=Zf;ue.StrictMode=Ox;ue.Suspense=Dx;ue.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Vx;ue.act=Wg;ue.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Dg({},e.props),o=e.key,s=e.ref,i=e._owner;if(t!=null){if(t.ref!==void 0&&(s=t.ref,i=td.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)zg.call(t,l)&&!Bg.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&a!==void 0?a[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){a=Array(l);for(var u=0;u<l;u++)a[u]=arguments[u+2];r.children=a}return{$$typeof:ta,type:e.type,key:o,ref:s,props:r,_owner:i}};ue.createContext=function(e){return e={$$typeof:jx,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Lx,_context:e},e.Consumer=e};ue.createElement=Hg;ue.createFactory=function(e){var t=Hg.bind(null,e);return t.type=e,t};ue.createRef=function(){return{current:null}};ue.forwardRef=function(e){return{$$typeof:Fx,render:e}};ue.isValidElement=nd;ue.lazy=function(e){return{$$typeof:Ux,_payload:{_status:-1,_result:e},_init:Wx}};ue.memo=function(e,t){return{$$typeof:$x,type:e,compare:t===void 0?null:t}};ue.startTransition=function(e){var t=Ba.transition;Ba.transition={};try{e()}finally{Ba.transition=t}};ue.unstable_act=Wg;ue.useCallback=function(e,t){return Ct.current.useCallback(e,t)};ue.useContext=function(e){return Ct.current.useContext(e)};ue.useDebugValue=function(){};ue.useDeferredValue=function(e){return Ct.current.useDeferredValue(e)};ue.useEffect=function(e,t){return Ct.current.useEffect(e,t)};ue.useId=function(){return Ct.current.useId()};ue.useImperativeHandle=function(e,t,n){return Ct.current.useImperativeHandle(e,t,n)};ue.useInsertionEffect=function(e,t){return Ct.current.useInsertionEffect(e,t)};ue.useLayoutEffect=function(e,t){return Ct.current.useLayoutEffect(e,t)};ue.useMemo=function(e,t){return Ct.current.useMemo(e,t)};ue.useReducer=function(e,t,n){return Ct.current.useReducer(e,t,n)};ue.useRef=function(e){return Ct.current.useRef(e)};ue.useState=function(e){return Ct.current.useState(e)};ue.useSyncExternalStore=function(e,t,n){return Ct.current.useSyncExternalStore(e,t,n)};ue.useTransition=function(){return Ct.current.useTransition()};ue.version="18.3.1";jg.exports=ue;var b=jg.exports;const Dr=Ix(b);/**
9
+ */var na=Symbol.for("react.element"),AS=Symbol.for("react.portal"),NS=Symbol.for("react.fragment"),OS=Symbol.for("react.strict_mode"),MS=Symbol.for("react.profiler"),LS=Symbol.for("react.provider"),jS=Symbol.for("react.context"),FS=Symbol.for("react.forward_ref"),DS=Symbol.for("react.suspense"),$S=Symbol.for("react.memo"),US=Symbol.for("react.lazy"),Uh=Symbol.iterator;function zS(e){return e===null||typeof e!="object"?null:(e=Uh&&e[Uh]||e["@@iterator"],typeof e=="function"?e:null)}var Fg={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Dg=Object.assign,$g={};function Ms(e,t,n){this.props=e,this.context=t,this.refs=$g,this.updater=n||Fg}Ms.prototype.isReactComponent={};Ms.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=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,e,t,"setState")};Ms.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Ug(){}Ug.prototype=Ms.prototype;function Zf(e,t,n){this.props=e,this.context=t,this.refs=$g,this.updater=n||Fg}var ed=Zf.prototype=new Ug;ed.constructor=Zf;Dg(ed,Ms.prototype);ed.isPureReactComponent=!0;var zh=Array.isArray,zg=Object.prototype.hasOwnProperty,td={current:null},Bg={key:!0,ref:!0,__self:!0,__source:!0};function Hg(e,t,n){var r,o={},s=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(s=""+t.key),t)zg.call(t,r)&&!Bg.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(a===1)o.children=n;else if(1<a){for(var l=Array(a),u=0;u<a;u++)l[u]=arguments[u+2];o.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)o[r]===void 0&&(o[r]=a[r]);return{$$typeof:na,type:e,key:s,ref:i,props:o,_owner:td.current}}function BS(e,t){return{$$typeof:na,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function nd(e){return typeof e=="object"&&e!==null&&e.$$typeof===na}function HS(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Bh=/\/+/g;function Ru(e,t){return typeof e=="object"&&e!==null&&e.key!=null?HS(""+e.key):t.toString(36)}function Ba(e,t,n,r,o){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(s){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case na:case AS:i=!0}}if(i)return i=e,o=o(i),e=r===""?"."+Ru(i,0):r,zh(o)?(n="",e!=null&&(n=e.replace(Bh,"$&/")+"/"),Ba(o,t,n,"",function(u){return u})):o!=null&&(nd(o)&&(o=BS(o,n+(!o.key||i&&i.key===o.key?"":(""+o.key).replace(Bh,"$&/")+"/")+e)),t.push(o)),1;if(i=0,r=r===""?".":r+":",zh(e))for(var a=0;a<e.length;a++){s=e[a];var l=r+Ru(s,a);i+=Ba(s,t,n,l,o)}else if(l=zS(e),typeof l=="function")for(e=l.call(e),a=0;!(s=e.next()).done;)s=s.value,l=r+Ru(s,a++),i+=Ba(s,t,n,l,o);else if(s==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return i}function ga(e,t,n){if(e==null)return e;var r=[],o=0;return Ba(e,r,"","",function(s){return t.call(n,s,o++)}),r}function WS(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Ct={current:null},Ha={transition:null},VS={ReactCurrentDispatcher:Ct,ReactCurrentBatchConfig:Ha,ReactCurrentOwner:td};function Wg(){throw Error("act(...) is not supported in production builds of React.")}ue.Children={map:ga,forEach:function(e,t,n){ga(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return ga(e,function(){t++}),t},toArray:function(e){return ga(e,function(t){return t})||[]},only:function(e){if(!nd(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ue.Component=Ms;ue.Fragment=NS;ue.Profiler=MS;ue.PureComponent=Zf;ue.StrictMode=OS;ue.Suspense=DS;ue.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=VS;ue.act=Wg;ue.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Dg({},e.props),o=e.key,s=e.ref,i=e._owner;if(t!=null){if(t.ref!==void 0&&(s=t.ref,i=td.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)zg.call(t,l)&&!Bg.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&a!==void 0?a[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){a=Array(l);for(var u=0;u<l;u++)a[u]=arguments[u+2];r.children=a}return{$$typeof:na,type:e.type,key:o,ref:s,props:r,_owner:i}};ue.createContext=function(e){return e={$$typeof:jS,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:LS,_context:e},e.Consumer=e};ue.createElement=Hg;ue.createFactory=function(e){var t=Hg.bind(null,e);return t.type=e,t};ue.createRef=function(){return{current:null}};ue.forwardRef=function(e){return{$$typeof:FS,render:e}};ue.isValidElement=nd;ue.lazy=function(e){return{$$typeof:US,_payload:{_status:-1,_result:e},_init:WS}};ue.memo=function(e,t){return{$$typeof:$S,type:e,compare:t===void 0?null:t}};ue.startTransition=function(e){var t=Ha.transition;Ha.transition={};try{e()}finally{Ha.transition=t}};ue.unstable_act=Wg;ue.useCallback=function(e,t){return Ct.current.useCallback(e,t)};ue.useContext=function(e){return Ct.current.useContext(e)};ue.useDebugValue=function(){};ue.useDeferredValue=function(e){return Ct.current.useDeferredValue(e)};ue.useEffect=function(e,t){return Ct.current.useEffect(e,t)};ue.useId=function(){return Ct.current.useId()};ue.useImperativeHandle=function(e,t,n){return Ct.current.useImperativeHandle(e,t,n)};ue.useInsertionEffect=function(e,t){return Ct.current.useInsertionEffect(e,t)};ue.useLayoutEffect=function(e,t){return Ct.current.useLayoutEffect(e,t)};ue.useMemo=function(e,t){return Ct.current.useMemo(e,t)};ue.useReducer=function(e,t,n){return Ct.current.useReducer(e,t,n)};ue.useRef=function(e){return Ct.current.useRef(e)};ue.useState=function(e){return Ct.current.useState(e)};ue.useSyncExternalStore=function(e,t,n){return Ct.current.useSyncExternalStore(e,t,n)};ue.useTransition=function(){return Ct.current.useTransition()};ue.version="18.3.1";jg.exports=ue;var b=jg.exports;const Dr=IS(b);/**
10
10
  * @license React
11
11
  * react-jsx-runtime.production.min.js
12
12
  *
@@ -14,7 +14,7 @@ var kx=Object.defineProperty;var $h=e=>{throw TypeError(e)};var Tx=(e,t,n)=>t in
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var Qx=b,qx=Symbol.for("react.element"),Gx=Symbol.for("react.fragment"),Kx=Object.prototype.hasOwnProperty,Yx=Qx.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Xx={key:!0,ref:!0,__self:!0,__source:!0};function Vg(e,t,n){var r,o={},s=null,i=null;n!==void 0&&(s=""+n),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(i=t.ref);for(r in t)Kx.call(t,r)&&!Xx.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:qx,type:e,key:s,ref:i,props:o,_owner:Yx.current}}Hl.Fragment=Gx;Hl.jsx=Vg;Hl.jsxs=Vg;Lg.exports=Hl;var x=Lg.exports,Qg={exports:{}},Yt={},qg={exports:{}},Gg={};/**
17
+ */var QS=b,qS=Symbol.for("react.element"),GS=Symbol.for("react.fragment"),KS=Object.prototype.hasOwnProperty,YS=QS.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,XS={key:!0,ref:!0,__self:!0,__source:!0};function Vg(e,t,n){var r,o={},s=null,i=null;n!==void 0&&(s=""+n),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(i=t.ref);for(r in t)KS.call(t,r)&&!XS.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:qS,type:e,key:s,ref:i,props:o,_owner:YS.current}}Wl.Fragment=GS;Wl.jsx=Vg;Wl.jsxs=Vg;Lg.exports=Wl;var x=Lg.exports,Qg={exports:{}},Yt={},qg={exports:{}},Gg={};/**
18
18
  * @license React
19
19
  * scheduler.production.min.js
20
20
  *
@@ -22,7 +22,7 @@ var kx=Object.defineProperty;var $h=e=>{throw TypeError(e)};var Tx=(e,t,n)=>t in
22
22
  *
23
23
  * This source code is licensed under the MIT license found in the
24
24
  * LICENSE file in the root directory of this source tree.
25
- */(function(e){function t(N,j){var O=N.length;N.push(j);e:for(;0<O;){var M=O-1>>>1,Q=N[M];if(0<o(Q,j))N[M]=j,N[O]=Q,O=M;else break e}}function n(N){return N.length===0?null:N[0]}function r(N){if(N.length===0)return null;var j=N[0],O=N.pop();if(O!==j){N[0]=O;e:for(var M=0,Q=N.length,te=Q>>>1;M<te;){var oe=2*(M+1)-1,re=N[oe],pe=oe+1,_e=N[pe];if(0>o(re,O))pe<Q&&0>o(_e,re)?(N[M]=_e,N[pe]=O,M=pe):(N[M]=re,N[oe]=O,M=oe);else if(pe<Q&&0>o(_e,O))N[M]=_e,N[pe]=O,M=pe;else break e}}return j}function o(N,j){var O=N.sortIndex-j.sortIndex;return O!==0?O:N.id-j.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var i=Date,a=i.now();e.unstable_now=function(){return i.now()-a}}var l=[],u=[],f=1,c=null,d=3,h=!1,m=!1,g=!1,y=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function S(N){for(var j=n(u);j!==null;){if(j.callback===null)r(u);else if(j.startTime<=N)r(u),j.sortIndex=j.expirationTime,t(l,j);else break;j=n(u)}}function w(N){if(g=!1,S(N),!m)if(n(l)!==null)m=!0,V(_);else{var j=n(u);j!==null&&W(w,j.startTime-N)}}function _(N,j){m=!1,g&&(g=!1,p(P),P=-1),h=!0;var O=d;try{for(S(j),c=n(l);c!==null&&(!(c.expirationTime>j)||N&&!A());){var M=c.callback;if(typeof M=="function"){c.callback=null,d=c.priorityLevel;var Q=M(c.expirationTime<=j);j=e.unstable_now(),typeof Q=="function"?c.callback=Q:c===n(l)&&r(l),S(j)}else r(l);c=n(l)}if(c!==null)var te=!0;else{var oe=n(u);oe!==null&&W(w,oe.startTime-j),te=!1}return te}finally{c=null,d=O,h=!1}}var T=!1,I=null,P=-1,k=5,E=-1;function A(){return!(e.unstable_now()-E<k)}function L(){if(I!==null){var N=e.unstable_now();E=N;var j=!0;try{j=I(!0,N)}finally{j?z():(T=!1,I=null)}}else T=!1}var z;if(typeof v=="function")z=function(){v(L)};else if(typeof MessageChannel<"u"){var U=new MessageChannel,B=U.port2;U.port1.onmessage=L,z=function(){B.postMessage(null)}}else z=function(){y(L,0)};function V(N){I=N,T||(T=!0,z())}function W(N,j){P=y(function(){N(e.unstable_now())},j)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(N){N.callback=null},e.unstable_continueExecution=function(){m||h||(m=!0,V(_))},e.unstable_forceFrameRate=function(N){0>N||125<N?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):k=0<N?Math.floor(1e3/N):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(N){switch(d){case 1:case 2:case 3:var j=3;break;default:j=d}var O=d;d=j;try{return N()}finally{d=O}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(N,j){switch(N){case 1:case 2:case 3:case 4:case 5:break;default:N=3}var O=d;d=N;try{return j()}finally{d=O}},e.unstable_scheduleCallback=function(N,j,O){var M=e.unstable_now();switch(typeof O=="object"&&O!==null?(O=O.delay,O=typeof O=="number"&&0<O?M+O:M):O=M,N){case 1:var Q=-1;break;case 2:Q=250;break;case 5:Q=1073741823;break;case 4:Q=1e4;break;default:Q=5e3}return Q=O+Q,N={id:f++,callback:j,priorityLevel:N,startTime:O,expirationTime:Q,sortIndex:-1},O>M?(N.sortIndex=O,t(u,N),n(l)===null&&N===n(u)&&(g?(p(P),P=-1):g=!0,W(w,O-M))):(N.sortIndex=Q,t(l,N),m||h||(m=!0,V(_))),N},e.unstable_shouldYield=A,e.unstable_wrapCallback=function(N){var j=d;return function(){var O=d;d=j;try{return N.apply(this,arguments)}finally{d=O}}}})(Gg);qg.exports=Gg;var Jx=qg.exports;/**
25
+ */(function(e){function t(N,j){var O=N.length;N.push(j);e:for(;0<O;){var M=O-1>>>1,Q=N[M];if(0<o(Q,j))N[M]=j,N[O]=Q,O=M;else break e}}function n(N){return N.length===0?null:N[0]}function r(N){if(N.length===0)return null;var j=N[0],O=N.pop();if(O!==j){N[0]=O;e:for(var M=0,Q=N.length,te=Q>>>1;M<te;){var oe=2*(M+1)-1,re=N[oe],pe=oe+1,_e=N[pe];if(0>o(re,O))pe<Q&&0>o(_e,re)?(N[M]=_e,N[pe]=O,M=pe):(N[M]=re,N[oe]=O,M=oe);else if(pe<Q&&0>o(_e,O))N[M]=_e,N[pe]=O,M=pe;else break e}}return j}function o(N,j){var O=N.sortIndex-j.sortIndex;return O!==0?O:N.id-j.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var i=Date,a=i.now();e.unstable_now=function(){return i.now()-a}}var l=[],u=[],f=1,c=null,d=3,h=!1,m=!1,g=!1,y=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function S(N){for(var j=n(u);j!==null;){if(j.callback===null)r(u);else if(j.startTime<=N)r(u),j.sortIndex=j.expirationTime,t(l,j);else break;j=n(u)}}function w(N){if(g=!1,S(N),!m)if(n(l)!==null)m=!0,V(_);else{var j=n(u);j!==null&&W(w,j.startTime-N)}}function _(N,j){m=!1,g&&(g=!1,p(P),P=-1),h=!0;var O=d;try{for(S(j),c=n(l);c!==null&&(!(c.expirationTime>j)||N&&!A());){var M=c.callback;if(typeof M=="function"){c.callback=null,d=c.priorityLevel;var Q=M(c.expirationTime<=j);j=e.unstable_now(),typeof Q=="function"?c.callback=Q:c===n(l)&&r(l),S(j)}else r(l);c=n(l)}if(c!==null)var te=!0;else{var oe=n(u);oe!==null&&W(w,oe.startTime-j),te=!1}return te}finally{c=null,d=O,h=!1}}var T=!1,I=null,P=-1,k=5,E=-1;function A(){return!(e.unstable_now()-E<k)}function L(){if(I!==null){var N=e.unstable_now();E=N;var j=!0;try{j=I(!0,N)}finally{j?z():(T=!1,I=null)}}else T=!1}var z;if(typeof v=="function")z=function(){v(L)};else if(typeof MessageChannel<"u"){var U=new MessageChannel,B=U.port2;U.port1.onmessage=L,z=function(){B.postMessage(null)}}else z=function(){y(L,0)};function V(N){I=N,T||(T=!0,z())}function W(N,j){P=y(function(){N(e.unstable_now())},j)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(N){N.callback=null},e.unstable_continueExecution=function(){m||h||(m=!0,V(_))},e.unstable_forceFrameRate=function(N){0>N||125<N?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):k=0<N?Math.floor(1e3/N):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(N){switch(d){case 1:case 2:case 3:var j=3;break;default:j=d}var O=d;d=j;try{return N()}finally{d=O}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(N,j){switch(N){case 1:case 2:case 3:case 4:case 5:break;default:N=3}var O=d;d=N;try{return j()}finally{d=O}},e.unstable_scheduleCallback=function(N,j,O){var M=e.unstable_now();switch(typeof O=="object"&&O!==null?(O=O.delay,O=typeof O=="number"&&0<O?M+O:M):O=M,N){case 1:var Q=-1;break;case 2:Q=250;break;case 5:Q=1073741823;break;case 4:Q=1e4;break;default:Q=5e3}return Q=O+Q,N={id:f++,callback:j,priorityLevel:N,startTime:O,expirationTime:Q,sortIndex:-1},O>M?(N.sortIndex=O,t(u,N),n(l)===null&&N===n(u)&&(g?(p(P),P=-1):g=!0,W(w,O-M))):(N.sortIndex=Q,t(l,N),m||h||(m=!0,V(_))),N},e.unstable_shouldYield=A,e.unstable_wrapCallback=function(N){var j=d;return function(){var O=d;d=j;try{return N.apply(this,arguments)}finally{d=O}}}})(Gg);qg.exports=Gg;var JS=qg.exports;/**
26
26
  * @license React
27
27
  * react-dom.production.min.js
28
28
  *
@@ -30,14 +30,14 @@ var kx=Object.defineProperty;var $h=e=>{throw TypeError(e)};var Tx=(e,t,n)=>t in
30
30
  *
31
31
  * This source code is licensed under the MIT license found in the
32
32
  * LICENSE file in the root directory of this source tree.
33
- */var Zx=b,Kt=Jx;function F(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Kg=new Set,Pi={};function Io(e,t){ws(e,t),ws(e+"Capture",t)}function ws(e,t){for(Pi[e]=t,e=0;e<t.length;e++)Kg.add(t[e])}var Yn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),_c=Object.prototype.hasOwnProperty,e1=/^[: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]*$/,Hh={},Wh={};function t1(e){return _c.call(Wh,e)?!0:_c.call(Hh,e)?!1:e1.test(e)?Wh[e]=!0:(Hh[e]=!0,!1)}function n1(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function r1(e,t,n,r){if(t===null||typeof t>"u"||n1(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function kt(e,t,n,r,o,s,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=i}var at={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){at[e]=new kt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];at[t]=new kt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){at[e]=new kt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){at[e]=new kt(e,2,!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".split(" ").forEach(function(e){at[e]=new kt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){at[e]=new kt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){at[e]=new kt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){at[e]=new kt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){at[e]=new kt(e,5,!1,e.toLowerCase(),null,!1,!1)});var rd=/[\-:]([a-z])/g;function od(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".split(" ").forEach(function(e){var t=e.replace(rd,od);at[t]=new kt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(rd,od);at[t]=new kt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(rd,od);at[t]=new kt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){at[e]=new kt(e,1,!1,e.toLowerCase(),null,!1,!1)});at.xlinkHref=new kt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){at[e]=new kt(e,1,!1,e.toLowerCase(),null,!0,!0)});function sd(e,t,n,r){var o=at.hasOwnProperty(t)?at[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(r1(t,n,o,r)&&(n=null),r||o===null?t1(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var nr=Zx.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ga=Symbol.for("react.element"),Bo=Symbol.for("react.portal"),Ho=Symbol.for("react.fragment"),id=Symbol.for("react.strict_mode"),Ec=Symbol.for("react.profiler"),Yg=Symbol.for("react.provider"),Xg=Symbol.for("react.context"),ad=Symbol.for("react.forward_ref"),bc=Symbol.for("react.suspense"),Pc=Symbol.for("react.suspense_list"),ld=Symbol.for("react.memo"),ur=Symbol.for("react.lazy"),Jg=Symbol.for("react.offscreen"),Vh=Symbol.iterator;function Bs(e){return e===null||typeof e!="object"?null:(e=Vh&&e[Vh]||e["@@iterator"],typeof e=="function"?e:null)}var Le=Object.assign,Cu;function ii(e){if(Cu===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Cu=t&&t[1]||""}return`
33
+ */var ZS=b,Kt=JS;function F(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Kg=new Set,Ri={};function Ao(e,t){_s(e,t),_s(e+"Capture",t)}function _s(e,t){for(Ri[e]=t,e=0;e<t.length;e++)Kg.add(t[e])}var Yn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),_c=Object.prototype.hasOwnProperty,ex=/^[: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]*$/,Hh={},Wh={};function tx(e){return _c.call(Wh,e)?!0:_c.call(Hh,e)?!1:ex.test(e)?Wh[e]=!0:(Hh[e]=!0,!1)}function nx(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function rx(e,t,n,r){if(t===null||typeof t>"u"||nx(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function kt(e,t,n,r,o,s,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=i}var at={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){at[e]=new kt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];at[t]=new kt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){at[e]=new kt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){at[e]=new kt(e,2,!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".split(" ").forEach(function(e){at[e]=new kt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){at[e]=new kt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){at[e]=new kt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){at[e]=new kt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){at[e]=new kt(e,5,!1,e.toLowerCase(),null,!1,!1)});var rd=/[\-:]([a-z])/g;function od(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".split(" ").forEach(function(e){var t=e.replace(rd,od);at[t]=new kt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(rd,od);at[t]=new kt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(rd,od);at[t]=new kt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){at[e]=new kt(e,1,!1,e.toLowerCase(),null,!1,!1)});at.xlinkHref=new kt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){at[e]=new kt(e,1,!1,e.toLowerCase(),null,!0,!0)});function sd(e,t,n,r){var o=at.hasOwnProperty(t)?at[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(rx(t,n,o,r)&&(n=null),r||o===null?tx(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var nr=ZS.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,va=Symbol.for("react.element"),Ho=Symbol.for("react.portal"),Wo=Symbol.for("react.fragment"),id=Symbol.for("react.strict_mode"),Ec=Symbol.for("react.profiler"),Yg=Symbol.for("react.provider"),Xg=Symbol.for("react.context"),ad=Symbol.for("react.forward_ref"),bc=Symbol.for("react.suspense"),Pc=Symbol.for("react.suspense_list"),ld=Symbol.for("react.memo"),ur=Symbol.for("react.lazy"),Jg=Symbol.for("react.offscreen"),Vh=Symbol.iterator;function Hs(e){return e===null||typeof e!="object"?null:(e=Vh&&e[Vh]||e["@@iterator"],typeof e=="function"?e:null)}var Le=Object.assign,Cu;function ai(e){if(Cu===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Cu=t&&t[1]||""}return`
34
34
  `+Cu+e}var ku=!1;function Tu(e,t){if(!e||ku)return"";ku=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var o=u.stack.split(`
35
35
  `),s=r.stack.split(`
36
36
  `),i=o.length-1,a=s.length-1;1<=i&&0<=a&&o[i]!==s[a];)a--;for(;1<=i&&0<=a;i--,a--)if(o[i]!==s[a]){if(i!==1||a!==1)do if(i--,a--,0>a||o[i]!==s[a]){var l=`
37
- `+o[i].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=i&&0<=a);break}}}finally{ku=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ii(e):""}function o1(e){switch(e.tag){case 5:return ii(e.type);case 16:return ii("Lazy");case 13:return ii("Suspense");case 19:return ii("SuspenseList");case 0:case 2:case 15:return e=Tu(e.type,!1),e;case 11:return e=Tu(e.type.render,!1),e;case 1:return e=Tu(e.type,!0),e;default:return""}}function Rc(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Ho:return"Fragment";case Bo:return"Portal";case Ec:return"Profiler";case id:return"StrictMode";case bc:return"Suspense";case Pc:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Xg:return(e.displayName||"Context")+".Consumer";case Yg:return(e._context.displayName||"Context")+".Provider";case ad:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ld:return t=e.displayName||null,t!==null?t:Rc(e.type)||"Memo";case ur:t=e._payload,e=e._init;try{return Rc(e(t))}catch{}}return null}function s1(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Rc(t);case 8:return t===id?"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 t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function $r(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Zg(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function i1(e){var t=Zg(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(i){r=""+i,s.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function va(e){e._valueTracker||(e._valueTracker=i1(e))}function ev(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Zg(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ll(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Cc(e,t){var n=t.checked;return Le({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Qh(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=$r(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function tv(e,t){t=t.checked,t!=null&&sd(e,"checked",t,!1)}function kc(e,t){tv(e,t);var n=$r(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Tc(e,t.type,n):t.hasOwnProperty("defaultValue")&&Tc(e,t.type,$r(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function qh(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Tc(e,t,n){(t!=="number"||ll(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ai=Array.isArray;function ts(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+$r(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Ic(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(F(91));return Le({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Gh(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(F(92));if(ai(n)){if(1<n.length)throw Error(F(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:$r(n)}}function nv(e,t){var n=$r(t.value),r=$r(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Kh(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function rv(e){switch(e){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 Ac(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?rv(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var ya,ov=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(ya=ya||document.createElement("div"),ya.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ya.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ri(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var hi={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},a1=["Webkit","ms","Moz","O"];Object.keys(hi).forEach(function(e){a1.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),hi[t]=hi[e]})});function sv(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||hi.hasOwnProperty(e)&&hi[e]?(""+t).trim():t+"px"}function iv(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=sv(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var l1=Le({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 Nc(e,t){if(t){if(l1[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(F(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(F(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(F(61))}if(t.style!=null&&typeof t.style!="object")throw Error(F(62))}}function Oc(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 Mc=null;function ud(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Lc=null,ns=null,rs=null;function Yh(e){if(e=oa(e)){if(typeof Lc!="function")throw Error(F(280));var t=e.stateNode;t&&(t=Gl(t),Lc(e.stateNode,e.type,t))}}function av(e){ns?rs?rs.push(e):rs=[e]:ns=e}function lv(){if(ns){var e=ns,t=rs;if(rs=ns=null,Yh(e),t)for(e=0;e<t.length;e++)Yh(t[e])}}function uv(e,t){return e(t)}function cv(){}var Iu=!1;function fv(e,t,n){if(Iu)return e(t,n);Iu=!0;try{return uv(e,t,n)}finally{Iu=!1,(ns!==null||rs!==null)&&(cv(),lv())}}function Ci(e,t){var n=e.stateNode;if(n===null)return null;var r=Gl(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(F(231,t,typeof n));return n}var jc=!1;if(Yn)try{var Hs={};Object.defineProperty(Hs,"passive",{get:function(){jc=!0}}),window.addEventListener("test",Hs,Hs),window.removeEventListener("test",Hs,Hs)}catch{jc=!1}function u1(e,t,n,r,o,s,i,a,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(f){this.onError(f)}}var pi=!1,ul=null,cl=!1,Fc=null,c1={onError:function(e){pi=!0,ul=e}};function f1(e,t,n,r,o,s,i,a,l){pi=!1,ul=null,u1.apply(c1,arguments)}function d1(e,t,n,r,o,s,i,a,l){if(f1.apply(this,arguments),pi){if(pi){var u=ul;pi=!1,ul=null}else throw Error(F(198));cl||(cl=!0,Fc=u)}}function Ao(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function dv(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Xh(e){if(Ao(e)!==e)throw Error(F(188))}function h1(e){var t=e.alternate;if(!t){if(t=Ao(e),t===null)throw Error(F(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var s=o.alternate;if(s===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===s.child){for(s=o.child;s;){if(s===n)return Xh(o),e;if(s===r)return Xh(o),t;s=s.sibling}throw Error(F(188))}if(n.return!==r.return)n=o,r=s;else{for(var i=!1,a=o.child;a;){if(a===n){i=!0,n=o,r=s;break}if(a===r){i=!0,r=o,n=s;break}a=a.sibling}if(!i){for(a=s.child;a;){if(a===n){i=!0,n=s,r=o;break}if(a===r){i=!0,r=s,n=o;break}a=a.sibling}if(!i)throw Error(F(189))}}if(n.alternate!==r)throw Error(F(190))}if(n.tag!==3)throw Error(F(188));return n.stateNode.current===n?e:t}function hv(e){return e=h1(e),e!==null?pv(e):null}function pv(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=pv(e);if(t!==null)return t;e=e.sibling}return null}var mv=Kt.unstable_scheduleCallback,Jh=Kt.unstable_cancelCallback,p1=Kt.unstable_shouldYield,m1=Kt.unstable_requestPaint,Be=Kt.unstable_now,g1=Kt.unstable_getCurrentPriorityLevel,cd=Kt.unstable_ImmediatePriority,gv=Kt.unstable_UserBlockingPriority,fl=Kt.unstable_NormalPriority,v1=Kt.unstable_LowPriority,vv=Kt.unstable_IdlePriority,Wl=null,On=null;function y1(e){if(On&&typeof On.onCommitFiberRoot=="function")try{On.onCommitFiberRoot(Wl,e,void 0,(e.current.flags&128)===128)}catch{}}var xn=Math.clz32?Math.clz32:w1,S1=Math.log,x1=Math.LN2;function w1(e){return e>>>=0,e===0?32:31-(S1(e)/x1|0)|0}var Sa=64,xa=4194304;function li(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64: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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function dl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,s=e.pingedLanes,i=n&268435455;if(i!==0){var a=i&~o;a!==0?r=li(a):(s&=i,s!==0&&(r=li(s)))}else i=n&~o,i!==0?r=li(i):s!==0&&(r=li(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,s=t&-t,o>=s||o===16&&(s&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-xn(t),o=1<<n,r|=e[n],t&=~o;return r}function _1(e,t){switch(e){case 1:case 2:case 4:return t+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 t+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 E1(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,s=e.pendingLanes;0<s;){var i=31-xn(s),a=1<<i,l=o[i];l===-1?(!(a&n)||a&r)&&(o[i]=_1(a,t)):l<=t&&(e.expiredLanes|=a),s&=~a}}function Dc(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function yv(){var e=Sa;return Sa<<=1,!(Sa&4194240)&&(Sa=64),e}function Au(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function na(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-xn(t),e[t]=n}function b1(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-xn(n),s=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~s}}function fd(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-xn(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var xe=0;function Sv(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var xv,dd,wv,_v,Ev,$c=!1,wa=[],Cr=null,kr=null,Tr=null,ki=new Map,Ti=new Map,dr=[],P1="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 Zh(e,t){switch(e){case"focusin":case"focusout":Cr=null;break;case"dragenter":case"dragleave":kr=null;break;case"mouseover":case"mouseout":Tr=null;break;case"pointerover":case"pointerout":ki.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ti.delete(t.pointerId)}}function Ws(e,t,n,r,o,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:s,targetContainers:[o]},t!==null&&(t=oa(t),t!==null&&dd(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function R1(e,t,n,r,o){switch(t){case"focusin":return Cr=Ws(Cr,e,t,n,r,o),!0;case"dragenter":return kr=Ws(kr,e,t,n,r,o),!0;case"mouseover":return Tr=Ws(Tr,e,t,n,r,o),!0;case"pointerover":var s=o.pointerId;return ki.set(s,Ws(ki.get(s)||null,e,t,n,r,o)),!0;case"gotpointercapture":return s=o.pointerId,Ti.set(s,Ws(Ti.get(s)||null,e,t,n,r,o)),!0}return!1}function bv(e){var t=Zr(e.target);if(t!==null){var n=Ao(t);if(n!==null){if(t=n.tag,t===13){if(t=dv(n),t!==null){e.blockedOn=t,Ev(e.priority,function(){wv(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ha(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Uc(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Mc=r,n.target.dispatchEvent(r),Mc=null}else return t=oa(n),t!==null&&dd(t),e.blockedOn=n,!1;t.shift()}return!0}function ep(e,t,n){Ha(e)&&n.delete(t)}function C1(){$c=!1,Cr!==null&&Ha(Cr)&&(Cr=null),kr!==null&&Ha(kr)&&(kr=null),Tr!==null&&Ha(Tr)&&(Tr=null),ki.forEach(ep),Ti.forEach(ep)}function Vs(e,t){e.blockedOn===t&&(e.blockedOn=null,$c||($c=!0,Kt.unstable_scheduleCallback(Kt.unstable_NormalPriority,C1)))}function Ii(e){function t(o){return Vs(o,e)}if(0<wa.length){Vs(wa[0],e);for(var n=1;n<wa.length;n++){var r=wa[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Cr!==null&&Vs(Cr,e),kr!==null&&Vs(kr,e),Tr!==null&&Vs(Tr,e),ki.forEach(t),Ti.forEach(t),n=0;n<dr.length;n++)r=dr[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<dr.length&&(n=dr[0],n.blockedOn===null);)bv(n),n.blockedOn===null&&dr.shift()}var os=nr.ReactCurrentBatchConfig,hl=!0;function k1(e,t,n,r){var o=xe,s=os.transition;os.transition=null;try{xe=1,hd(e,t,n,r)}finally{xe=o,os.transition=s}}function T1(e,t,n,r){var o=xe,s=os.transition;os.transition=null;try{xe=4,hd(e,t,n,r)}finally{xe=o,os.transition=s}}function hd(e,t,n,r){if(hl){var o=Uc(e,t,n,r);if(o===null)zu(e,t,r,pl,n),Zh(e,r);else if(R1(o,e,t,n,r))r.stopPropagation();else if(Zh(e,r),t&4&&-1<P1.indexOf(e)){for(;o!==null;){var s=oa(o);if(s!==null&&xv(s),s=Uc(e,t,n,r),s===null&&zu(e,t,r,pl,n),s===o)break;o=s}o!==null&&r.stopPropagation()}else zu(e,t,r,null,n)}}var pl=null;function Uc(e,t,n,r){if(pl=null,e=ud(r),e=Zr(e),e!==null)if(t=Ao(e),t===null)e=null;else if(n=t.tag,n===13){if(e=dv(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return pl=e,null}function Pv(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 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(g1()){case cd:return 1;case gv:return 4;case fl:case v1:return 16;case vv:return 536870912;default:return 16}default:return 16}}var _r=null,pd=null,Wa=null;function Rv(){if(Wa)return Wa;var e,t=pd,n=t.length,r,o="value"in _r?_r.value:_r.textContent,s=o.length;for(e=0;e<n&&t[e]===o[e];e++);var i=n-e;for(r=1;r<=i&&t[n-r]===o[s-r];r++);return Wa=o.slice(e,1<r?1-r:void 0)}function Va(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function _a(){return!0}function tp(){return!1}function Xt(e){function t(n,r,o,s,i){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=s,this.target=i,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(s):s[a]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?_a:tp,this.isPropagationStopped=tp,this}return Le(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=_a)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=_a)},persist:function(){},isPersistent:_a}),t}var Ms={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},md=Xt(Ms),ra=Le({},Ms,{view:0,detail:0}),I1=Xt(ra),Nu,Ou,Qs,Vl=Le({},ra,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:gd,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Qs&&(Qs&&e.type==="mousemove"?(Nu=e.screenX-Qs.screenX,Ou=e.screenY-Qs.screenY):Ou=Nu=0,Qs=e),Nu)},movementY:function(e){return"movementY"in e?e.movementY:Ou}}),np=Xt(Vl),A1=Le({},Vl,{dataTransfer:0}),N1=Xt(A1),O1=Le({},ra,{relatedTarget:0}),Mu=Xt(O1),M1=Le({},Ms,{animationName:0,elapsedTime:0,pseudoElement:0}),L1=Xt(M1),j1=Le({},Ms,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),F1=Xt(j1),D1=Le({},Ms,{data:0}),rp=Xt(D1),$1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},U1={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"},z1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function B1(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=z1[e])?!!t[e]:!1}function gd(){return B1}var H1=Le({},ra,{key:function(e){if(e.key){var t=$1[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Va(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?U1[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:gd,charCode:function(e){return e.type==="keypress"?Va(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Va(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),W1=Xt(H1),V1=Le({},Vl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),op=Xt(V1),Q1=Le({},ra,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:gd}),q1=Xt(Q1),G1=Le({},Ms,{propertyName:0,elapsedTime:0,pseudoElement:0}),K1=Xt(G1),Y1=Le({},Vl,{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}),X1=Xt(Y1),J1=[9,13,27,32],vd=Yn&&"CompositionEvent"in window,mi=null;Yn&&"documentMode"in document&&(mi=document.documentMode);var Z1=Yn&&"TextEvent"in window&&!mi,Cv=Yn&&(!vd||mi&&8<mi&&11>=mi),sp=" ",ip=!1;function kv(e,t){switch(e){case"keyup":return J1.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Tv(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Wo=!1;function ew(e,t){switch(e){case"compositionend":return Tv(t);case"keypress":return t.which!==32?null:(ip=!0,sp);case"textInput":return e=t.data,e===sp&&ip?null:e;default:return null}}function tw(e,t){if(Wo)return e==="compositionend"||!vd&&kv(e,t)?(e=Rv(),Wa=pd=_r=null,Wo=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Cv&&t.locale!=="ko"?null:t.data;default:return null}}var nw={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 ap(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!nw[e.type]:t==="textarea"}function Iv(e,t,n,r){av(r),t=ml(t,"onChange"),0<t.length&&(n=new md("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var gi=null,Ai=null;function rw(e){zv(e,0)}function Ql(e){var t=qo(e);if(ev(t))return e}function ow(e,t){if(e==="change")return t}var Av=!1;if(Yn){var Lu;if(Yn){var ju="oninput"in document;if(!ju){var lp=document.createElement("div");lp.setAttribute("oninput","return;"),ju=typeof lp.oninput=="function"}Lu=ju}else Lu=!1;Av=Lu&&(!document.documentMode||9<document.documentMode)}function up(){gi&&(gi.detachEvent("onpropertychange",Nv),Ai=gi=null)}function Nv(e){if(e.propertyName==="value"&&Ql(Ai)){var t=[];Iv(t,Ai,e,ud(e)),fv(rw,t)}}function sw(e,t,n){e==="focusin"?(up(),gi=t,Ai=n,gi.attachEvent("onpropertychange",Nv)):e==="focusout"&&up()}function iw(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ql(Ai)}function aw(e,t){if(e==="click")return Ql(t)}function lw(e,t){if(e==="input"||e==="change")return Ql(t)}function uw(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var _n=typeof Object.is=="function"?Object.is:uw;function Ni(e,t){if(_n(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!_c.call(t,o)||!_n(e[o],t[o]))return!1}return!0}function cp(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function fp(e,t){var n=cp(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=cp(n)}}function Ov(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ov(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Mv(){for(var e=window,t=ll();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ll(e.document)}return t}function yd(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 cw(e){var t=Mv(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Ov(n.ownerDocument.documentElement,n)){if(r!==null&&yd(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,s=Math.min(r.start,o);r=r.end===void 0?s:Math.min(r.end,o),!e.extend&&s>r&&(o=r,r=s,s=o),o=fp(n,s);var i=fp(n,r);o&&i&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var fw=Yn&&"documentMode"in document&&11>=document.documentMode,Vo=null,zc=null,vi=null,Bc=!1;function dp(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Bc||Vo==null||Vo!==ll(r)||(r=Vo,"selectionStart"in r&&yd(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),vi&&Ni(vi,r)||(vi=r,r=ml(zc,"onSelect"),0<r.length&&(t=new md("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Vo)))}function Ea(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Qo={animationend:Ea("Animation","AnimationEnd"),animationiteration:Ea("Animation","AnimationIteration"),animationstart:Ea("Animation","AnimationStart"),transitionend:Ea("Transition","TransitionEnd")},Fu={},Lv={};Yn&&(Lv=document.createElement("div").style,"AnimationEvent"in window||(delete Qo.animationend.animation,delete Qo.animationiteration.animation,delete Qo.animationstart.animation),"TransitionEvent"in window||delete Qo.transitionend.transition);function ql(e){if(Fu[e])return Fu[e];if(!Qo[e])return e;var t=Qo[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Lv)return Fu[e]=t[n];return e}var jv=ql("animationend"),Fv=ql("animationiteration"),Dv=ql("animationstart"),$v=ql("transitionend"),Uv=new Map,hp="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 Wr(e,t){Uv.set(e,t),Io(t,[e])}for(var Du=0;Du<hp.length;Du++){var $u=hp[Du],dw=$u.toLowerCase(),hw=$u[0].toUpperCase()+$u.slice(1);Wr(dw,"on"+hw)}Wr(jv,"onAnimationEnd");Wr(Fv,"onAnimationIteration");Wr(Dv,"onAnimationStart");Wr("dblclick","onDoubleClick");Wr("focusin","onFocus");Wr("focusout","onBlur");Wr($v,"onTransitionEnd");ws("onMouseEnter",["mouseout","mouseover"]);ws("onMouseLeave",["mouseout","mouseover"]);ws("onPointerEnter",["pointerout","pointerover"]);ws("onPointerLeave",["pointerout","pointerover"]);Io("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Io("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Io("onBeforeInput",["compositionend","keypress","textInput","paste"]);Io("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Io("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Io("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ui="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(" "),pw=new Set("cancel close invalid load scroll toggle".split(" ").concat(ui));function pp(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,d1(r,t,void 0,e),e.currentTarget=null}function zv(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var s=void 0;if(t)for(var i=r.length-1;0<=i;i--){var a=r[i],l=a.instance,u=a.currentTarget;if(a=a.listener,l!==s&&o.isPropagationStopped())break e;pp(o,a,u),s=l}else for(i=0;i<r.length;i++){if(a=r[i],l=a.instance,u=a.currentTarget,a=a.listener,l!==s&&o.isPropagationStopped())break e;pp(o,a,u),s=l}}}if(cl)throw e=Fc,cl=!1,Fc=null,e}function Ce(e,t){var n=t[qc];n===void 0&&(n=t[qc]=new Set);var r=e+"__bubble";n.has(r)||(Bv(t,e,2,!1),n.add(r))}function Uu(e,t,n){var r=0;t&&(r|=4),Bv(n,e,r,t)}var ba="_reactListening"+Math.random().toString(36).slice(2);function Oi(e){if(!e[ba]){e[ba]=!0,Kg.forEach(function(n){n!=="selectionchange"&&(pw.has(n)||Uu(n,!1,e),Uu(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ba]||(t[ba]=!0,Uu("selectionchange",!1,t))}}function Bv(e,t,n,r){switch(Pv(t)){case 1:var o=k1;break;case 4:o=T1;break;default:o=hd}n=o.bind(null,t,n,e),o=void 0,!jc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function zu(e,t,n,r,o){var s=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var i=r.tag;if(i===3||i===4){var a=r.stateNode.containerInfo;if(a===o||a.nodeType===8&&a.parentNode===o)break;if(i===4)for(i=r.return;i!==null;){var l=i.tag;if((l===3||l===4)&&(l=i.stateNode.containerInfo,l===o||l.nodeType===8&&l.parentNode===o))return;i=i.return}for(;a!==null;){if(i=Zr(a),i===null)return;if(l=i.tag,l===5||l===6){r=s=i;continue e}a=a.parentNode}}r=r.return}fv(function(){var u=s,f=ud(n),c=[];e:{var d=Uv.get(e);if(d!==void 0){var h=md,m=e;switch(e){case"keypress":if(Va(n)===0)break e;case"keydown":case"keyup":h=W1;break;case"focusin":m="focus",h=Mu;break;case"focusout":m="blur",h=Mu;break;case"beforeblur":case"afterblur":h=Mu;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":h=np;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=N1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=q1;break;case jv:case Fv:case Dv:h=L1;break;case $v:h=K1;break;case"scroll":h=I1;break;case"wheel":h=X1;break;case"copy":case"cut":case"paste":h=F1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=op}var g=(t&4)!==0,y=!g&&e==="scroll",p=g?d!==null?d+"Capture":null:d;g=[];for(var v=u,S;v!==null;){S=v;var w=S.stateNode;if(S.tag===5&&w!==null&&(S=w,p!==null&&(w=Ci(v,p),w!=null&&g.push(Mi(v,w,S)))),y)break;v=v.return}0<g.length&&(d=new h(d,m,null,n,f),c.push({event:d,listeners:g}))}}if(!(t&7)){e:{if(d=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",d&&n!==Mc&&(m=n.relatedTarget||n.fromElement)&&(Zr(m)||m[Xn]))break e;if((h||d)&&(d=f.window===f?f:(d=f.ownerDocument)?d.defaultView||d.parentWindow:window,h?(m=n.relatedTarget||n.toElement,h=u,m=m?Zr(m):null,m!==null&&(y=Ao(m),m!==y||m.tag!==5&&m.tag!==6)&&(m=null)):(h=null,m=u),h!==m)){if(g=np,w="onMouseLeave",p="onMouseEnter",v="mouse",(e==="pointerout"||e==="pointerover")&&(g=op,w="onPointerLeave",p="onPointerEnter",v="pointer"),y=h==null?d:qo(h),S=m==null?d:qo(m),d=new g(w,v+"leave",h,n,f),d.target=y,d.relatedTarget=S,w=null,Zr(f)===u&&(g=new g(p,v+"enter",m,n,f),g.target=S,g.relatedTarget=y,w=g),y=w,h&&m)t:{for(g=h,p=m,v=0,S=g;S;S=Fo(S))v++;for(S=0,w=p;w;w=Fo(w))S++;for(;0<v-S;)g=Fo(g),v--;for(;0<S-v;)p=Fo(p),S--;for(;v--;){if(g===p||p!==null&&g===p.alternate)break t;g=Fo(g),p=Fo(p)}g=null}else g=null;h!==null&&mp(c,d,h,g,!1),m!==null&&y!==null&&mp(c,y,m,g,!0)}}e:{if(d=u?qo(u):window,h=d.nodeName&&d.nodeName.toLowerCase(),h==="select"||h==="input"&&d.type==="file")var _=ow;else if(ap(d))if(Av)_=lw;else{_=iw;var T=sw}else(h=d.nodeName)&&h.toLowerCase()==="input"&&(d.type==="checkbox"||d.type==="radio")&&(_=aw);if(_&&(_=_(e,u))){Iv(c,_,n,f);break e}T&&T(e,d,u),e==="focusout"&&(T=d._wrapperState)&&T.controlled&&d.type==="number"&&Tc(d,"number",d.value)}switch(T=u?qo(u):window,e){case"focusin":(ap(T)||T.contentEditable==="true")&&(Vo=T,zc=u,vi=null);break;case"focusout":vi=zc=Vo=null;break;case"mousedown":Bc=!0;break;case"contextmenu":case"mouseup":case"dragend":Bc=!1,dp(c,n,f);break;case"selectionchange":if(fw)break;case"keydown":case"keyup":dp(c,n,f)}var I;if(vd)e:{switch(e){case"compositionstart":var P="onCompositionStart";break e;case"compositionend":P="onCompositionEnd";break e;case"compositionupdate":P="onCompositionUpdate";break e}P=void 0}else Wo?kv(e,n)&&(P="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(P="onCompositionStart");P&&(Cv&&n.locale!=="ko"&&(Wo||P!=="onCompositionStart"?P==="onCompositionEnd"&&Wo&&(I=Rv()):(_r=f,pd="value"in _r?_r.value:_r.textContent,Wo=!0)),T=ml(u,P),0<T.length&&(P=new rp(P,e,null,n,f),c.push({event:P,listeners:T}),I?P.data=I:(I=Tv(n),I!==null&&(P.data=I)))),(I=Z1?ew(e,n):tw(e,n))&&(u=ml(u,"onBeforeInput"),0<u.length&&(f=new rp("onBeforeInput","beforeinput",null,n,f),c.push({event:f,listeners:u}),f.data=I))}zv(c,t)})}function Mi(e,t,n){return{instance:e,listener:t,currentTarget:n}}function ml(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,s=o.stateNode;o.tag===5&&s!==null&&(o=s,s=Ci(e,n),s!=null&&r.unshift(Mi(e,s,o)),s=Ci(e,t),s!=null&&r.push(Mi(e,s,o))),e=e.return}return r}function Fo(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function mp(e,t,n,r,o){for(var s=t._reactName,i=[];n!==null&&n!==r;){var a=n,l=a.alternate,u=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&u!==null&&(a=u,o?(l=Ci(n,s),l!=null&&i.unshift(Mi(n,l,a))):o||(l=Ci(n,s),l!=null&&i.push(Mi(n,l,a)))),n=n.return}i.length!==0&&e.push({event:t,listeners:i})}var mw=/\r\n?/g,gw=/\u0000|\uFFFD/g;function gp(e){return(typeof e=="string"?e:""+e).replace(mw,`
38
- `).replace(gw,"")}function Pa(e,t,n){if(t=gp(t),gp(e)!==t&&n)throw Error(F(425))}function gl(){}var Hc=null,Wc=null;function Vc(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}var Qc=typeof setTimeout=="function"?setTimeout:void 0,vw=typeof clearTimeout=="function"?clearTimeout:void 0,vp=typeof Promise=="function"?Promise:void 0,yw=typeof queueMicrotask=="function"?queueMicrotask:typeof vp<"u"?function(e){return vp.resolve(null).then(e).catch(Sw)}:Qc;function Sw(e){setTimeout(function(){throw e})}function Bu(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),Ii(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);Ii(t)}function Ir(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function yp(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Ls=Math.random().toString(36).slice(2),An="__reactFiber$"+Ls,Li="__reactProps$"+Ls,Xn="__reactContainer$"+Ls,qc="__reactEvents$"+Ls,xw="__reactListeners$"+Ls,ww="__reactHandles$"+Ls;function Zr(e){var t=e[An];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Xn]||n[An]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=yp(e);e!==null;){if(n=e[An])return n;e=yp(e)}return t}e=n,n=e.parentNode}return null}function oa(e){return e=e[An]||e[Xn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function qo(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(F(33))}function Gl(e){return e[Li]||null}var Gc=[],Go=-1;function Vr(e){return{current:e}}function ke(e){0>Go||(e.current=Gc[Go],Gc[Go]=null,Go--)}function Pe(e,t){Go++,Gc[Go]=e.current,e.current=t}var Ur={},vt=Vr(Ur),Ft=Vr(!1),_o=Ur;function _s(e,t){var n=e.type.contextTypes;if(!n)return Ur;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},s;for(s in n)o[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Dt(e){return e=e.childContextTypes,e!=null}function vl(){ke(Ft),ke(vt)}function Sp(e,t,n){if(vt.current!==Ur)throw Error(F(168));Pe(vt,t),Pe(Ft,n)}function Hv(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(F(108,s1(e)||"Unknown",o));return Le({},n,r)}function yl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ur,_o=vt.current,Pe(vt,e),Pe(Ft,Ft.current),!0}function xp(e,t,n){var r=e.stateNode;if(!r)throw Error(F(169));n?(e=Hv(e,t,_o),r.__reactInternalMemoizedMergedChildContext=e,ke(Ft),ke(vt),Pe(vt,e)):ke(Ft),Pe(Ft,n)}var Hn=null,Kl=!1,Hu=!1;function Wv(e){Hn===null?Hn=[e]:Hn.push(e)}function _w(e){Kl=!0,Wv(e)}function Qr(){if(!Hu&&Hn!==null){Hu=!0;var e=0,t=xe;try{var n=Hn;for(xe=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Hn=null,Kl=!1}catch(o){throw Hn!==null&&(Hn=Hn.slice(e+1)),mv(cd,Qr),o}finally{xe=t,Hu=!1}}return null}var Ko=[],Yo=0,Sl=null,xl=0,sn=[],an=0,Eo=null,Qn=1,qn="";function Xr(e,t){Ko[Yo++]=xl,Ko[Yo++]=Sl,Sl=e,xl=t}function Vv(e,t,n){sn[an++]=Qn,sn[an++]=qn,sn[an++]=Eo,Eo=e;var r=Qn;e=qn;var o=32-xn(r)-1;r&=~(1<<o),n+=1;var s=32-xn(t)+o;if(30<s){var i=o-o%5;s=(r&(1<<i)-1).toString(32),r>>=i,o-=i,Qn=1<<32-xn(t)+o|n<<o|r,qn=s+e}else Qn=1<<s|n<<o|r,qn=e}function Sd(e){e.return!==null&&(Xr(e,1),Vv(e,1,0))}function xd(e){for(;e===Sl;)Sl=Ko[--Yo],Ko[Yo]=null,xl=Ko[--Yo],Ko[Yo]=null;for(;e===Eo;)Eo=sn[--an],sn[an]=null,qn=sn[--an],sn[an]=null,Qn=sn[--an],sn[an]=null}var Gt=null,qt=null,Ne=!1,yn=null;function Qv(e,t){var n=un(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function wp(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Gt=e,qt=Ir(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Gt=e,qt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Eo!==null?{id:Qn,overflow:qn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=un(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Gt=e,qt=null,!0):!1;default:return!1}}function Kc(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Yc(e){if(Ne){var t=qt;if(t){var n=t;if(!wp(e,t)){if(Kc(e))throw Error(F(418));t=Ir(n.nextSibling);var r=Gt;t&&wp(e,t)?Qv(r,n):(e.flags=e.flags&-4097|2,Ne=!1,Gt=e)}}else{if(Kc(e))throw Error(F(418));e.flags=e.flags&-4097|2,Ne=!1,Gt=e}}}function _p(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Gt=e}function Ra(e){if(e!==Gt)return!1;if(!Ne)return _p(e),Ne=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Vc(e.type,e.memoizedProps)),t&&(t=qt)){if(Kc(e))throw qv(),Error(F(418));for(;t;)Qv(e,t),t=Ir(t.nextSibling)}if(_p(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(F(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){qt=Ir(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}qt=null}}else qt=Gt?Ir(e.stateNode.nextSibling):null;return!0}function qv(){for(var e=qt;e;)e=Ir(e.nextSibling)}function Es(){qt=Gt=null,Ne=!1}function wd(e){yn===null?yn=[e]:yn.push(e)}var Ew=nr.ReactCurrentBatchConfig;function qs(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(F(309));var r=n.stateNode}if(!r)throw Error(F(147,e));var o=r,s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(i){var a=o.refs;i===null?delete a[s]:a[s]=i},t._stringRef=s,t)}if(typeof e!="string")throw Error(F(284));if(!n._owner)throw Error(F(290,e))}return e}function Ca(e,t){throw e=Object.prototype.toString.call(t),Error(F(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Ep(e){var t=e._init;return t(e._payload)}function Gv(e){function t(p,v){if(e){var S=p.deletions;S===null?(p.deletions=[v],p.flags|=16):S.push(v)}}function n(p,v){if(!e)return null;for(;v!==null;)t(p,v),v=v.sibling;return null}function r(p,v){for(p=new Map;v!==null;)v.key!==null?p.set(v.key,v):p.set(v.index,v),v=v.sibling;return p}function o(p,v){return p=Mr(p,v),p.index=0,p.sibling=null,p}function s(p,v,S){return p.index=S,e?(S=p.alternate,S!==null?(S=S.index,S<v?(p.flags|=2,v):S):(p.flags|=2,v)):(p.flags|=1048576,v)}function i(p){return e&&p.alternate===null&&(p.flags|=2),p}function a(p,v,S,w){return v===null||v.tag!==6?(v=Yu(S,p.mode,w),v.return=p,v):(v=o(v,S),v.return=p,v)}function l(p,v,S,w){var _=S.type;return _===Ho?f(p,v,S.props.children,w,S.key):v!==null&&(v.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===ur&&Ep(_)===v.type)?(w=o(v,S.props),w.ref=qs(p,v,S),w.return=p,w):(w=Ja(S.type,S.key,S.props,null,p.mode,w),w.ref=qs(p,v,S),w.return=p,w)}function u(p,v,S,w){return v===null||v.tag!==4||v.stateNode.containerInfo!==S.containerInfo||v.stateNode.implementation!==S.implementation?(v=Xu(S,p.mode,w),v.return=p,v):(v=o(v,S.children||[]),v.return=p,v)}function f(p,v,S,w,_){return v===null||v.tag!==7?(v=yo(S,p.mode,w,_),v.return=p,v):(v=o(v,S),v.return=p,v)}function c(p,v,S){if(typeof v=="string"&&v!==""||typeof v=="number")return v=Yu(""+v,p.mode,S),v.return=p,v;if(typeof v=="object"&&v!==null){switch(v.$$typeof){case ga:return S=Ja(v.type,v.key,v.props,null,p.mode,S),S.ref=qs(p,null,v),S.return=p,S;case Bo:return v=Xu(v,p.mode,S),v.return=p,v;case ur:var w=v._init;return c(p,w(v._payload),S)}if(ai(v)||Bs(v))return v=yo(v,p.mode,S,null),v.return=p,v;Ca(p,v)}return null}function d(p,v,S,w){var _=v!==null?v.key:null;if(typeof S=="string"&&S!==""||typeof S=="number")return _!==null?null:a(p,v,""+S,w);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case ga:return S.key===_?l(p,v,S,w):null;case Bo:return S.key===_?u(p,v,S,w):null;case ur:return _=S._init,d(p,v,_(S._payload),w)}if(ai(S)||Bs(S))return _!==null?null:f(p,v,S,w,null);Ca(p,S)}return null}function h(p,v,S,w,_){if(typeof w=="string"&&w!==""||typeof w=="number")return p=p.get(S)||null,a(v,p,""+w,_);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case ga:return p=p.get(w.key===null?S:w.key)||null,l(v,p,w,_);case Bo:return p=p.get(w.key===null?S:w.key)||null,u(v,p,w,_);case ur:var T=w._init;return h(p,v,S,T(w._payload),_)}if(ai(w)||Bs(w))return p=p.get(S)||null,f(v,p,w,_,null);Ca(v,w)}return null}function m(p,v,S,w){for(var _=null,T=null,I=v,P=v=0,k=null;I!==null&&P<S.length;P++){I.index>P?(k=I,I=null):k=I.sibling;var E=d(p,I,S[P],w);if(E===null){I===null&&(I=k);break}e&&I&&E.alternate===null&&t(p,I),v=s(E,v,P),T===null?_=E:T.sibling=E,T=E,I=k}if(P===S.length)return n(p,I),Ne&&Xr(p,P),_;if(I===null){for(;P<S.length;P++)I=c(p,S[P],w),I!==null&&(v=s(I,v,P),T===null?_=I:T.sibling=I,T=I);return Ne&&Xr(p,P),_}for(I=r(p,I);P<S.length;P++)k=h(I,p,P,S[P],w),k!==null&&(e&&k.alternate!==null&&I.delete(k.key===null?P:k.key),v=s(k,v,P),T===null?_=k:T.sibling=k,T=k);return e&&I.forEach(function(A){return t(p,A)}),Ne&&Xr(p,P),_}function g(p,v,S,w){var _=Bs(S);if(typeof _!="function")throw Error(F(150));if(S=_.call(S),S==null)throw Error(F(151));for(var T=_=null,I=v,P=v=0,k=null,E=S.next();I!==null&&!E.done;P++,E=S.next()){I.index>P?(k=I,I=null):k=I.sibling;var A=d(p,I,E.value,w);if(A===null){I===null&&(I=k);break}e&&I&&A.alternate===null&&t(p,I),v=s(A,v,P),T===null?_=A:T.sibling=A,T=A,I=k}if(E.done)return n(p,I),Ne&&Xr(p,P),_;if(I===null){for(;!E.done;P++,E=S.next())E=c(p,E.value,w),E!==null&&(v=s(E,v,P),T===null?_=E:T.sibling=E,T=E);return Ne&&Xr(p,P),_}for(I=r(p,I);!E.done;P++,E=S.next())E=h(I,p,P,E.value,w),E!==null&&(e&&E.alternate!==null&&I.delete(E.key===null?P:E.key),v=s(E,v,P),T===null?_=E:T.sibling=E,T=E);return e&&I.forEach(function(L){return t(p,L)}),Ne&&Xr(p,P),_}function y(p,v,S,w){if(typeof S=="object"&&S!==null&&S.type===Ho&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case ga:e:{for(var _=S.key,T=v;T!==null;){if(T.key===_){if(_=S.type,_===Ho){if(T.tag===7){n(p,T.sibling),v=o(T,S.props.children),v.return=p,p=v;break e}}else if(T.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===ur&&Ep(_)===T.type){n(p,T.sibling),v=o(T,S.props),v.ref=qs(p,T,S),v.return=p,p=v;break e}n(p,T);break}else t(p,T);T=T.sibling}S.type===Ho?(v=yo(S.props.children,p.mode,w,S.key),v.return=p,p=v):(w=Ja(S.type,S.key,S.props,null,p.mode,w),w.ref=qs(p,v,S),w.return=p,p=w)}return i(p);case Bo:e:{for(T=S.key;v!==null;){if(v.key===T)if(v.tag===4&&v.stateNode.containerInfo===S.containerInfo&&v.stateNode.implementation===S.implementation){n(p,v.sibling),v=o(v,S.children||[]),v.return=p,p=v;break e}else{n(p,v);break}else t(p,v);v=v.sibling}v=Xu(S,p.mode,w),v.return=p,p=v}return i(p);case ur:return T=S._init,y(p,v,T(S._payload),w)}if(ai(S))return m(p,v,S,w);if(Bs(S))return g(p,v,S,w);Ca(p,S)}return typeof S=="string"&&S!==""||typeof S=="number"?(S=""+S,v!==null&&v.tag===6?(n(p,v.sibling),v=o(v,S),v.return=p,p=v):(n(p,v),v=Yu(S,p.mode,w),v.return=p,p=v),i(p)):n(p,v)}return y}var bs=Gv(!0),Kv=Gv(!1),wl=Vr(null),_l=null,Xo=null,_d=null;function Ed(){_d=Xo=_l=null}function bd(e){var t=wl.current;ke(wl),e._currentValue=t}function Xc(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function ss(e,t){_l=e,_d=Xo=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Lt=!0),e.firstContext=null)}function fn(e){var t=e._currentValue;if(_d!==e)if(e={context:e,memoizedValue:t,next:null},Xo===null){if(_l===null)throw Error(F(308));Xo=e,_l.dependencies={lanes:0,firstContext:e}}else Xo=Xo.next=e;return t}var eo=null;function Pd(e){eo===null?eo=[e]:eo.push(e)}function Yv(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Pd(t)):(n.next=o.next,o.next=n),t.interleaved=n,Jn(e,r)}function Jn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var cr=!1;function Rd(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Xv(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Gn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ar(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,he&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Jn(e,n)}return o=r.interleaved,o===null?(t.next=t,Pd(r)):(t.next=o.next,o.next=t),r.interleaved=t,Jn(e,n)}function Qa(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,fd(e,n)}}function bp(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?o=s=i:s=s.next=i,n=n.next}while(n!==null);s===null?o=s=t:s=s.next=t}else o=s=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:s,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function El(e,t,n,r){var o=e.updateQueue;cr=!1;var s=o.firstBaseUpdate,i=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var l=a,u=l.next;l.next=null,i===null?s=u:i.next=u,i=l;var f=e.alternate;f!==null&&(f=f.updateQueue,a=f.lastBaseUpdate,a!==i&&(a===null?f.firstBaseUpdate=u:a.next=u,f.lastBaseUpdate=l))}if(s!==null){var c=o.baseState;i=0,f=u=l=null,a=s;do{var d=a.lane,h=a.eventTime;if((r&d)===d){f!==null&&(f=f.next={eventTime:h,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var m=e,g=a;switch(d=t,h=n,g.tag){case 1:if(m=g.payload,typeof m=="function"){c=m.call(h,c,d);break e}c=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=g.payload,d=typeof m=="function"?m.call(h,c,d):m,d==null)break e;c=Le({},c,d);break e;case 2:cr=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,d=o.effects,d===null?o.effects=[a]:d.push(a))}else h={eventTime:h,lane:d,tag:a.tag,payload:a.payload,callback:a.callback,next:null},f===null?(u=f=h,l=c):f=f.next=h,i|=d;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;d=a,a=d.next,d.next=null,o.lastBaseUpdate=d,o.shared.pending=null}}while(!0);if(f===null&&(l=c),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=f,t=o.shared.interleaved,t!==null){o=t;do i|=o.lane,o=o.next;while(o!==t)}else s===null&&(o.shared.lanes=0);Po|=i,e.lanes=i,e.memoizedState=c}}function Pp(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(F(191,o));o.call(r)}}}var sa={},Mn=Vr(sa),ji=Vr(sa),Fi=Vr(sa);function to(e){if(e===sa)throw Error(F(174));return e}function Cd(e,t){switch(Pe(Fi,t),Pe(ji,e),Pe(Mn,sa),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ac(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ac(t,e)}ke(Mn),Pe(Mn,t)}function Ps(){ke(Mn),ke(ji),ke(Fi)}function Jv(e){to(Fi.current);var t=to(Mn.current),n=Ac(t,e.type);t!==n&&(Pe(ji,e),Pe(Mn,n))}function kd(e){ji.current===e&&(ke(Mn),ke(ji))}var Oe=Vr(0);function bl(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Wu=[];function Td(){for(var e=0;e<Wu.length;e++)Wu[e]._workInProgressVersionPrimary=null;Wu.length=0}var qa=nr.ReactCurrentDispatcher,Vu=nr.ReactCurrentBatchConfig,bo=0,Me=null,Ge=null,Je=null,Pl=!1,yi=!1,Di=0,bw=0;function dt(){throw Error(F(321))}function Id(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!_n(e[n],t[n]))return!1;return!0}function Ad(e,t,n,r,o,s){if(bo=s,Me=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,qa.current=e===null||e.memoizedState===null?kw:Tw,e=n(r,o),yi){s=0;do{if(yi=!1,Di=0,25<=s)throw Error(F(301));s+=1,Je=Ge=null,t.updateQueue=null,qa.current=Iw,e=n(r,o)}while(yi)}if(qa.current=Rl,t=Ge!==null&&Ge.next!==null,bo=0,Je=Ge=Me=null,Pl=!1,t)throw Error(F(300));return e}function Nd(){var e=Di!==0;return Di=0,e}function Rn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Je===null?Me.memoizedState=Je=e:Je=Je.next=e,Je}function dn(){if(Ge===null){var e=Me.alternate;e=e!==null?e.memoizedState:null}else e=Ge.next;var t=Je===null?Me.memoizedState:Je.next;if(t!==null)Je=t,Ge=e;else{if(e===null)throw Error(F(310));Ge=e,e={memoizedState:Ge.memoizedState,baseState:Ge.baseState,baseQueue:Ge.baseQueue,queue:Ge.queue,next:null},Je===null?Me.memoizedState=Je=e:Je=Je.next=e}return Je}function $i(e,t){return typeof t=="function"?t(e):t}function Qu(e){var t=dn(),n=t.queue;if(n===null)throw Error(F(311));n.lastRenderedReducer=e;var r=Ge,o=r.baseQueue,s=n.pending;if(s!==null){if(o!==null){var i=o.next;o.next=s.next,s.next=i}r.baseQueue=o=s,n.pending=null}if(o!==null){s=o.next,r=r.baseState;var a=i=null,l=null,u=s;do{var f=u.lane;if((bo&f)===f)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var c={lane:f,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(a=l=c,i=r):l=l.next=c,Me.lanes|=f,Po|=f}u=u.next}while(u!==null&&u!==s);l===null?i=r:l.next=a,_n(r,t.memoizedState)||(Lt=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do s=o.lane,Me.lanes|=s,Po|=s,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function qu(e){var t=dn(),n=t.queue;if(n===null)throw Error(F(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,s=t.memoizedState;if(o!==null){n.pending=null;var i=o=o.next;do s=e(s,i.action),i=i.next;while(i!==o);_n(s,t.memoizedState)||(Lt=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function Zv(){}function ey(e,t){var n=Me,r=dn(),o=t(),s=!_n(r.memoizedState,o);if(s&&(r.memoizedState=o,Lt=!0),r=r.queue,Od(ry.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||Je!==null&&Je.memoizedState.tag&1){if(n.flags|=2048,Ui(9,ny.bind(null,n,r,o,t),void 0,null),Ze===null)throw Error(F(349));bo&30||ty(n,t,o)}return o}function ty(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Me.updateQueue,t===null?(t={lastEffect:null,stores:null},Me.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function ny(e,t,n,r){t.value=n,t.getSnapshot=r,oy(t)&&sy(e)}function ry(e,t,n){return n(function(){oy(t)&&sy(e)})}function oy(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!_n(e,n)}catch{return!0}}function sy(e){var t=Jn(e,1);t!==null&&wn(t,e,1,-1)}function Rp(e){var t=Rn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:$i,lastRenderedState:e},t.queue=e,e=e.dispatch=Cw.bind(null,Me,e),[t.memoizedState,e]}function Ui(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Me.updateQueue,t===null?(t={lastEffect:null,stores:null},Me.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function iy(){return dn().memoizedState}function Ga(e,t,n,r){var o=Rn();Me.flags|=e,o.memoizedState=Ui(1|t,n,void 0,r===void 0?null:r)}function Yl(e,t,n,r){var o=dn();r=r===void 0?null:r;var s=void 0;if(Ge!==null){var i=Ge.memoizedState;if(s=i.destroy,r!==null&&Id(r,i.deps)){o.memoizedState=Ui(t,n,s,r);return}}Me.flags|=e,o.memoizedState=Ui(1|t,n,s,r)}function Cp(e,t){return Ga(8390656,8,e,t)}function Od(e,t){return Yl(2048,8,e,t)}function ay(e,t){return Yl(4,2,e,t)}function ly(e,t){return Yl(4,4,e,t)}function uy(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function cy(e,t,n){return n=n!=null?n.concat([e]):null,Yl(4,4,uy.bind(null,t,e),n)}function Md(){}function fy(e,t){var n=dn();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Id(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function dy(e,t){var n=dn();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Id(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function hy(e,t,n){return bo&21?(_n(n,t)||(n=yv(),Me.lanes|=n,Po|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Lt=!0),e.memoizedState=n)}function Pw(e,t){var n=xe;xe=n!==0&&4>n?n:4,e(!0);var r=Vu.transition;Vu.transition={};try{e(!1),t()}finally{xe=n,Vu.transition=r}}function py(){return dn().memoizedState}function Rw(e,t,n){var r=Or(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},my(e))gy(t,n);else if(n=Yv(e,t,n,r),n!==null){var o=Et();wn(n,e,r,o),vy(n,t,r)}}function Cw(e,t,n){var r=Or(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(my(e))gy(t,o);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var i=t.lastRenderedState,a=s(i,n);if(o.hasEagerState=!0,o.eagerState=a,_n(a,i)){var l=t.interleaved;l===null?(o.next=o,Pd(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=Yv(e,t,o,r),n!==null&&(o=Et(),wn(n,e,r,o),vy(n,t,r))}}function my(e){var t=e.alternate;return e===Me||t!==null&&t===Me}function gy(e,t){yi=Pl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function vy(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,fd(e,n)}}var Rl={readContext:fn,useCallback:dt,useContext:dt,useEffect:dt,useImperativeHandle:dt,useInsertionEffect:dt,useLayoutEffect:dt,useMemo:dt,useReducer:dt,useRef:dt,useState:dt,useDebugValue:dt,useDeferredValue:dt,useTransition:dt,useMutableSource:dt,useSyncExternalStore:dt,useId:dt,unstable_isNewReconciler:!1},kw={readContext:fn,useCallback:function(e,t){return Rn().memoizedState=[e,t===void 0?null:t],e},useContext:fn,useEffect:Cp,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ga(4194308,4,uy.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ga(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ga(4,2,e,t)},useMemo:function(e,t){var n=Rn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Rn();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Rw.bind(null,Me,e),[r.memoizedState,e]},useRef:function(e){var t=Rn();return e={current:e},t.memoizedState=e},useState:Rp,useDebugValue:Md,useDeferredValue:function(e){return Rn().memoizedState=e},useTransition:function(){var e=Rp(!1),t=e[0];return e=Pw.bind(null,e[1]),Rn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Me,o=Rn();if(Ne){if(n===void 0)throw Error(F(407));n=n()}else{if(n=t(),Ze===null)throw Error(F(349));bo&30||ty(r,t,n)}o.memoizedState=n;var s={value:n,getSnapshot:t};return o.queue=s,Cp(ry.bind(null,r,s,e),[e]),r.flags|=2048,Ui(9,ny.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=Rn(),t=Ze.identifierPrefix;if(Ne){var n=qn,r=Qn;n=(r&~(1<<32-xn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Di++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=bw++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Tw={readContext:fn,useCallback:fy,useContext:fn,useEffect:Od,useImperativeHandle:cy,useInsertionEffect:ay,useLayoutEffect:ly,useMemo:dy,useReducer:Qu,useRef:iy,useState:function(){return Qu($i)},useDebugValue:Md,useDeferredValue:function(e){var t=dn();return hy(t,Ge.memoizedState,e)},useTransition:function(){var e=Qu($i)[0],t=dn().memoizedState;return[e,t]},useMutableSource:Zv,useSyncExternalStore:ey,useId:py,unstable_isNewReconciler:!1},Iw={readContext:fn,useCallback:fy,useContext:fn,useEffect:Od,useImperativeHandle:cy,useInsertionEffect:ay,useLayoutEffect:ly,useMemo:dy,useReducer:qu,useRef:iy,useState:function(){return qu($i)},useDebugValue:Md,useDeferredValue:function(e){var t=dn();return Ge===null?t.memoizedState=e:hy(t,Ge.memoizedState,e)},useTransition:function(){var e=qu($i)[0],t=dn().memoizedState;return[e,t]},useMutableSource:Zv,useSyncExternalStore:ey,useId:py,unstable_isNewReconciler:!1};function mn(e,t){if(e&&e.defaultProps){t=Le({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Jc(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Le({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Xl={isMounted:function(e){return(e=e._reactInternals)?Ao(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Et(),o=Or(e),s=Gn(r,o);s.payload=t,n!=null&&(s.callback=n),t=Ar(e,s,o),t!==null&&(wn(t,e,o,r),Qa(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Et(),o=Or(e),s=Gn(r,o);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=Ar(e,s,o),t!==null&&(wn(t,e,o,r),Qa(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Et(),r=Or(e),o=Gn(n,r);o.tag=2,t!=null&&(o.callback=t),t=Ar(e,o,r),t!==null&&(wn(t,e,r,n),Qa(t,e,r))}};function kp(e,t,n,r,o,s,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,s,i):t.prototype&&t.prototype.isPureReactComponent?!Ni(n,r)||!Ni(o,s):!0}function yy(e,t,n){var r=!1,o=Ur,s=t.contextType;return typeof s=="object"&&s!==null?s=fn(s):(o=Dt(t)?_o:vt.current,r=t.contextTypes,s=(r=r!=null)?_s(e,o):Ur),t=new t(n,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Xl,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=s),t}function Tp(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Xl.enqueueReplaceState(t,t.state,null)}function Zc(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Rd(e);var s=t.contextType;typeof s=="object"&&s!==null?o.context=fn(s):(s=Dt(t)?_o:vt.current,o.context=_s(e,s)),o.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(Jc(e,t,s,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&Xl.enqueueReplaceState(o,o.state,null),El(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function Rs(e,t){try{var n="",r=t;do n+=o1(r),r=r.return;while(r);var o=n}catch(s){o=`
37
+ `+o[i].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=i&&0<=a);break}}}finally{ku=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ai(e):""}function ox(e){switch(e.tag){case 5:return ai(e.type);case 16:return ai("Lazy");case 13:return ai("Suspense");case 19:return ai("SuspenseList");case 0:case 2:case 15:return e=Tu(e.type,!1),e;case 11:return e=Tu(e.type.render,!1),e;case 1:return e=Tu(e.type,!0),e;default:return""}}function Rc(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Wo:return"Fragment";case Ho:return"Portal";case Ec:return"Profiler";case id:return"StrictMode";case bc:return"Suspense";case Pc:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Xg:return(e.displayName||"Context")+".Consumer";case Yg:return(e._context.displayName||"Context")+".Provider";case ad:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ld:return t=e.displayName||null,t!==null?t:Rc(e.type)||"Memo";case ur:t=e._payload,e=e._init;try{return Rc(e(t))}catch{}}return null}function sx(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Rc(t);case 8:return t===id?"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 t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function $r(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Zg(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function ix(e){var t=Zg(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(i){r=""+i,s.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ya(e){e._valueTracker||(e._valueTracker=ix(e))}function ev(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Zg(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ul(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Cc(e,t){var n=t.checked;return Le({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Qh(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=$r(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function tv(e,t){t=t.checked,t!=null&&sd(e,"checked",t,!1)}function kc(e,t){tv(e,t);var n=$r(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Tc(e,t.type,n):t.hasOwnProperty("defaultValue")&&Tc(e,t.type,$r(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function qh(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Tc(e,t,n){(t!=="number"||ul(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var li=Array.isArray;function ns(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+$r(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Ic(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(F(91));return Le({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Gh(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(F(92));if(li(n)){if(1<n.length)throw Error(F(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:$r(n)}}function nv(e,t){var n=$r(t.value),r=$r(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Kh(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function rv(e){switch(e){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 Ac(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?rv(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Sa,ov=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Sa=Sa||document.createElement("div"),Sa.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Sa.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ci(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var pi={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},ax=["Webkit","ms","Moz","O"];Object.keys(pi).forEach(function(e){ax.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pi[t]=pi[e]})});function sv(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||pi.hasOwnProperty(e)&&pi[e]?(""+t).trim():t+"px"}function iv(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=sv(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var lx=Le({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 Nc(e,t){if(t){if(lx[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(F(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(F(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(F(61))}if(t.style!=null&&typeof t.style!="object")throw Error(F(62))}}function Oc(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 Mc=null;function ud(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Lc=null,rs=null,os=null;function Yh(e){if(e=sa(e)){if(typeof Lc!="function")throw Error(F(280));var t=e.stateNode;t&&(t=Kl(t),Lc(e.stateNode,e.type,t))}}function av(e){rs?os?os.push(e):os=[e]:rs=e}function lv(){if(rs){var e=rs,t=os;if(os=rs=null,Yh(e),t)for(e=0;e<t.length;e++)Yh(t[e])}}function uv(e,t){return e(t)}function cv(){}var Iu=!1;function fv(e,t,n){if(Iu)return e(t,n);Iu=!0;try{return uv(e,t,n)}finally{Iu=!1,(rs!==null||os!==null)&&(cv(),lv())}}function ki(e,t){var n=e.stateNode;if(n===null)return null;var r=Kl(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(F(231,t,typeof n));return n}var jc=!1;if(Yn)try{var Ws={};Object.defineProperty(Ws,"passive",{get:function(){jc=!0}}),window.addEventListener("test",Ws,Ws),window.removeEventListener("test",Ws,Ws)}catch{jc=!1}function ux(e,t,n,r,o,s,i,a,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(f){this.onError(f)}}var mi=!1,cl=null,fl=!1,Fc=null,cx={onError:function(e){mi=!0,cl=e}};function fx(e,t,n,r,o,s,i,a,l){mi=!1,cl=null,ux.apply(cx,arguments)}function dx(e,t,n,r,o,s,i,a,l){if(fx.apply(this,arguments),mi){if(mi){var u=cl;mi=!1,cl=null}else throw Error(F(198));fl||(fl=!0,Fc=u)}}function No(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function dv(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Xh(e){if(No(e)!==e)throw Error(F(188))}function hx(e){var t=e.alternate;if(!t){if(t=No(e),t===null)throw Error(F(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var s=o.alternate;if(s===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===s.child){for(s=o.child;s;){if(s===n)return Xh(o),e;if(s===r)return Xh(o),t;s=s.sibling}throw Error(F(188))}if(n.return!==r.return)n=o,r=s;else{for(var i=!1,a=o.child;a;){if(a===n){i=!0,n=o,r=s;break}if(a===r){i=!0,r=o,n=s;break}a=a.sibling}if(!i){for(a=s.child;a;){if(a===n){i=!0,n=s,r=o;break}if(a===r){i=!0,r=s,n=o;break}a=a.sibling}if(!i)throw Error(F(189))}}if(n.alternate!==r)throw Error(F(190))}if(n.tag!==3)throw Error(F(188));return n.stateNode.current===n?e:t}function hv(e){return e=hx(e),e!==null?pv(e):null}function pv(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=pv(e);if(t!==null)return t;e=e.sibling}return null}var mv=Kt.unstable_scheduleCallback,Jh=Kt.unstable_cancelCallback,px=Kt.unstable_shouldYield,mx=Kt.unstable_requestPaint,Be=Kt.unstable_now,gx=Kt.unstable_getCurrentPriorityLevel,cd=Kt.unstable_ImmediatePriority,gv=Kt.unstable_UserBlockingPriority,dl=Kt.unstable_NormalPriority,vx=Kt.unstable_LowPriority,vv=Kt.unstable_IdlePriority,Vl=null,On=null;function yx(e){if(On&&typeof On.onCommitFiberRoot=="function")try{On.onCommitFiberRoot(Vl,e,void 0,(e.current.flags&128)===128)}catch{}}var xn=Math.clz32?Math.clz32:wx,Sx=Math.log,xx=Math.LN2;function wx(e){return e>>>=0,e===0?32:31-(Sx(e)/xx|0)|0}var xa=64,wa=4194304;function ui(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64: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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function hl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,s=e.pingedLanes,i=n&268435455;if(i!==0){var a=i&~o;a!==0?r=ui(a):(s&=i,s!==0&&(r=ui(s)))}else i=n&~o,i!==0?r=ui(i):s!==0&&(r=ui(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,s=t&-t,o>=s||o===16&&(s&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-xn(t),o=1<<n,r|=e[n],t&=~o;return r}function _x(e,t){switch(e){case 1:case 2:case 4:return t+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 t+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 Ex(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,s=e.pendingLanes;0<s;){var i=31-xn(s),a=1<<i,l=o[i];l===-1?(!(a&n)||a&r)&&(o[i]=_x(a,t)):l<=t&&(e.expiredLanes|=a),s&=~a}}function Dc(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function yv(){var e=xa;return xa<<=1,!(xa&4194240)&&(xa=64),e}function Au(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ra(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-xn(t),e[t]=n}function bx(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-xn(n),s=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~s}}function fd(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-xn(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var xe=0;function Sv(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var xv,dd,wv,_v,Ev,$c=!1,_a=[],Cr=null,kr=null,Tr=null,Ti=new Map,Ii=new Map,dr=[],Px="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 Zh(e,t){switch(e){case"focusin":case"focusout":Cr=null;break;case"dragenter":case"dragleave":kr=null;break;case"mouseover":case"mouseout":Tr=null;break;case"pointerover":case"pointerout":Ti.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ii.delete(t.pointerId)}}function Vs(e,t,n,r,o,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:s,targetContainers:[o]},t!==null&&(t=sa(t),t!==null&&dd(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function Rx(e,t,n,r,o){switch(t){case"focusin":return Cr=Vs(Cr,e,t,n,r,o),!0;case"dragenter":return kr=Vs(kr,e,t,n,r,o),!0;case"mouseover":return Tr=Vs(Tr,e,t,n,r,o),!0;case"pointerover":var s=o.pointerId;return Ti.set(s,Vs(Ti.get(s)||null,e,t,n,r,o)),!0;case"gotpointercapture":return s=o.pointerId,Ii.set(s,Vs(Ii.get(s)||null,e,t,n,r,o)),!0}return!1}function bv(e){var t=Zr(e.target);if(t!==null){var n=No(t);if(n!==null){if(t=n.tag,t===13){if(t=dv(n),t!==null){e.blockedOn=t,Ev(e.priority,function(){wv(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Wa(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Uc(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Mc=r,n.target.dispatchEvent(r),Mc=null}else return t=sa(n),t!==null&&dd(t),e.blockedOn=n,!1;t.shift()}return!0}function ep(e,t,n){Wa(e)&&n.delete(t)}function Cx(){$c=!1,Cr!==null&&Wa(Cr)&&(Cr=null),kr!==null&&Wa(kr)&&(kr=null),Tr!==null&&Wa(Tr)&&(Tr=null),Ti.forEach(ep),Ii.forEach(ep)}function Qs(e,t){e.blockedOn===t&&(e.blockedOn=null,$c||($c=!0,Kt.unstable_scheduleCallback(Kt.unstable_NormalPriority,Cx)))}function Ai(e){function t(o){return Qs(o,e)}if(0<_a.length){Qs(_a[0],e);for(var n=1;n<_a.length;n++){var r=_a[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Cr!==null&&Qs(Cr,e),kr!==null&&Qs(kr,e),Tr!==null&&Qs(Tr,e),Ti.forEach(t),Ii.forEach(t),n=0;n<dr.length;n++)r=dr[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<dr.length&&(n=dr[0],n.blockedOn===null);)bv(n),n.blockedOn===null&&dr.shift()}var ss=nr.ReactCurrentBatchConfig,pl=!0;function kx(e,t,n,r){var o=xe,s=ss.transition;ss.transition=null;try{xe=1,hd(e,t,n,r)}finally{xe=o,ss.transition=s}}function Tx(e,t,n,r){var o=xe,s=ss.transition;ss.transition=null;try{xe=4,hd(e,t,n,r)}finally{xe=o,ss.transition=s}}function hd(e,t,n,r){if(pl){var o=Uc(e,t,n,r);if(o===null)zu(e,t,r,ml,n),Zh(e,r);else if(Rx(o,e,t,n,r))r.stopPropagation();else if(Zh(e,r),t&4&&-1<Px.indexOf(e)){for(;o!==null;){var s=sa(o);if(s!==null&&xv(s),s=Uc(e,t,n,r),s===null&&zu(e,t,r,ml,n),s===o)break;o=s}o!==null&&r.stopPropagation()}else zu(e,t,r,null,n)}}var ml=null;function Uc(e,t,n,r){if(ml=null,e=ud(r),e=Zr(e),e!==null)if(t=No(e),t===null)e=null;else if(n=t.tag,n===13){if(e=dv(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return ml=e,null}function Pv(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 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(gx()){case cd:return 1;case gv:return 4;case dl:case vx:return 16;case vv:return 536870912;default:return 16}default:return 16}}var _r=null,pd=null,Va=null;function Rv(){if(Va)return Va;var e,t=pd,n=t.length,r,o="value"in _r?_r.value:_r.textContent,s=o.length;for(e=0;e<n&&t[e]===o[e];e++);var i=n-e;for(r=1;r<=i&&t[n-r]===o[s-r];r++);return Va=o.slice(e,1<r?1-r:void 0)}function Qa(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Ea(){return!0}function tp(){return!1}function Xt(e){function t(n,r,o,s,i){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=s,this.target=i,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(s):s[a]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?Ea:tp,this.isPropagationStopped=tp,this}return Le(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Ea)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Ea)},persist:function(){},isPersistent:Ea}),t}var Ls={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},md=Xt(Ls),oa=Le({},Ls,{view:0,detail:0}),Ix=Xt(oa),Nu,Ou,qs,Ql=Le({},oa,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:gd,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==qs&&(qs&&e.type==="mousemove"?(Nu=e.screenX-qs.screenX,Ou=e.screenY-qs.screenY):Ou=Nu=0,qs=e),Nu)},movementY:function(e){return"movementY"in e?e.movementY:Ou}}),np=Xt(Ql),Ax=Le({},Ql,{dataTransfer:0}),Nx=Xt(Ax),Ox=Le({},oa,{relatedTarget:0}),Mu=Xt(Ox),Mx=Le({},Ls,{animationName:0,elapsedTime:0,pseudoElement:0}),Lx=Xt(Mx),jx=Le({},Ls,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Fx=Xt(jx),Dx=Le({},Ls,{data:0}),rp=Xt(Dx),$x={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Ux={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"},zx={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Bx(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=zx[e])?!!t[e]:!1}function gd(){return Bx}var Hx=Le({},oa,{key:function(e){if(e.key){var t=$x[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Qa(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Ux[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:gd,charCode:function(e){return e.type==="keypress"?Qa(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Qa(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Wx=Xt(Hx),Vx=Le({},Ql,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),op=Xt(Vx),Qx=Le({},oa,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:gd}),qx=Xt(Qx),Gx=Le({},Ls,{propertyName:0,elapsedTime:0,pseudoElement:0}),Kx=Xt(Gx),Yx=Le({},Ql,{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}),Xx=Xt(Yx),Jx=[9,13,27,32],vd=Yn&&"CompositionEvent"in window,gi=null;Yn&&"documentMode"in document&&(gi=document.documentMode);var Zx=Yn&&"TextEvent"in window&&!gi,Cv=Yn&&(!vd||gi&&8<gi&&11>=gi),sp=" ",ip=!1;function kv(e,t){switch(e){case"keyup":return Jx.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Tv(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Vo=!1;function ew(e,t){switch(e){case"compositionend":return Tv(t);case"keypress":return t.which!==32?null:(ip=!0,sp);case"textInput":return e=t.data,e===sp&&ip?null:e;default:return null}}function tw(e,t){if(Vo)return e==="compositionend"||!vd&&kv(e,t)?(e=Rv(),Va=pd=_r=null,Vo=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Cv&&t.locale!=="ko"?null:t.data;default:return null}}var nw={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 ap(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!nw[e.type]:t==="textarea"}function Iv(e,t,n,r){av(r),t=gl(t,"onChange"),0<t.length&&(n=new md("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var vi=null,Ni=null;function rw(e){zv(e,0)}function ql(e){var t=Go(e);if(ev(t))return e}function ow(e,t){if(e==="change")return t}var Av=!1;if(Yn){var Lu;if(Yn){var ju="oninput"in document;if(!ju){var lp=document.createElement("div");lp.setAttribute("oninput","return;"),ju=typeof lp.oninput=="function"}Lu=ju}else Lu=!1;Av=Lu&&(!document.documentMode||9<document.documentMode)}function up(){vi&&(vi.detachEvent("onpropertychange",Nv),Ni=vi=null)}function Nv(e){if(e.propertyName==="value"&&ql(Ni)){var t=[];Iv(t,Ni,e,ud(e)),fv(rw,t)}}function sw(e,t,n){e==="focusin"?(up(),vi=t,Ni=n,vi.attachEvent("onpropertychange",Nv)):e==="focusout"&&up()}function iw(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ql(Ni)}function aw(e,t){if(e==="click")return ql(t)}function lw(e,t){if(e==="input"||e==="change")return ql(t)}function uw(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var _n=typeof Object.is=="function"?Object.is:uw;function Oi(e,t){if(_n(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!_c.call(t,o)||!_n(e[o],t[o]))return!1}return!0}function cp(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function fp(e,t){var n=cp(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=cp(n)}}function Ov(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ov(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Mv(){for(var e=window,t=ul();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ul(e.document)}return t}function yd(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 cw(e){var t=Mv(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Ov(n.ownerDocument.documentElement,n)){if(r!==null&&yd(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,s=Math.min(r.start,o);r=r.end===void 0?s:Math.min(r.end,o),!e.extend&&s>r&&(o=r,r=s,s=o),o=fp(n,s);var i=fp(n,r);o&&i&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var fw=Yn&&"documentMode"in document&&11>=document.documentMode,Qo=null,zc=null,yi=null,Bc=!1;function dp(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Bc||Qo==null||Qo!==ul(r)||(r=Qo,"selectionStart"in r&&yd(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),yi&&Oi(yi,r)||(yi=r,r=gl(zc,"onSelect"),0<r.length&&(t=new md("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Qo)))}function ba(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var qo={animationend:ba("Animation","AnimationEnd"),animationiteration:ba("Animation","AnimationIteration"),animationstart:ba("Animation","AnimationStart"),transitionend:ba("Transition","TransitionEnd")},Fu={},Lv={};Yn&&(Lv=document.createElement("div").style,"AnimationEvent"in window||(delete qo.animationend.animation,delete qo.animationiteration.animation,delete qo.animationstart.animation),"TransitionEvent"in window||delete qo.transitionend.transition);function Gl(e){if(Fu[e])return Fu[e];if(!qo[e])return e;var t=qo[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Lv)return Fu[e]=t[n];return e}var jv=Gl("animationend"),Fv=Gl("animationiteration"),Dv=Gl("animationstart"),$v=Gl("transitionend"),Uv=new Map,hp="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 Wr(e,t){Uv.set(e,t),Ao(t,[e])}for(var Du=0;Du<hp.length;Du++){var $u=hp[Du],dw=$u.toLowerCase(),hw=$u[0].toUpperCase()+$u.slice(1);Wr(dw,"on"+hw)}Wr(jv,"onAnimationEnd");Wr(Fv,"onAnimationIteration");Wr(Dv,"onAnimationStart");Wr("dblclick","onDoubleClick");Wr("focusin","onFocus");Wr("focusout","onBlur");Wr($v,"onTransitionEnd");_s("onMouseEnter",["mouseout","mouseover"]);_s("onMouseLeave",["mouseout","mouseover"]);_s("onPointerEnter",["pointerout","pointerover"]);_s("onPointerLeave",["pointerout","pointerover"]);Ao("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Ao("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Ao("onBeforeInput",["compositionend","keypress","textInput","paste"]);Ao("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Ao("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Ao("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ci="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(" "),pw=new Set("cancel close invalid load scroll toggle".split(" ").concat(ci));function pp(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,dx(r,t,void 0,e),e.currentTarget=null}function zv(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var s=void 0;if(t)for(var i=r.length-1;0<=i;i--){var a=r[i],l=a.instance,u=a.currentTarget;if(a=a.listener,l!==s&&o.isPropagationStopped())break e;pp(o,a,u),s=l}else for(i=0;i<r.length;i++){if(a=r[i],l=a.instance,u=a.currentTarget,a=a.listener,l!==s&&o.isPropagationStopped())break e;pp(o,a,u),s=l}}}if(fl)throw e=Fc,fl=!1,Fc=null,e}function Ce(e,t){var n=t[qc];n===void 0&&(n=t[qc]=new Set);var r=e+"__bubble";n.has(r)||(Bv(t,e,2,!1),n.add(r))}function Uu(e,t,n){var r=0;t&&(r|=4),Bv(n,e,r,t)}var Pa="_reactListening"+Math.random().toString(36).slice(2);function Mi(e){if(!e[Pa]){e[Pa]=!0,Kg.forEach(function(n){n!=="selectionchange"&&(pw.has(n)||Uu(n,!1,e),Uu(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Pa]||(t[Pa]=!0,Uu("selectionchange",!1,t))}}function Bv(e,t,n,r){switch(Pv(t)){case 1:var o=kx;break;case 4:o=Tx;break;default:o=hd}n=o.bind(null,t,n,e),o=void 0,!jc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function zu(e,t,n,r,o){var s=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var i=r.tag;if(i===3||i===4){var a=r.stateNode.containerInfo;if(a===o||a.nodeType===8&&a.parentNode===o)break;if(i===4)for(i=r.return;i!==null;){var l=i.tag;if((l===3||l===4)&&(l=i.stateNode.containerInfo,l===o||l.nodeType===8&&l.parentNode===o))return;i=i.return}for(;a!==null;){if(i=Zr(a),i===null)return;if(l=i.tag,l===5||l===6){r=s=i;continue e}a=a.parentNode}}r=r.return}fv(function(){var u=s,f=ud(n),c=[];e:{var d=Uv.get(e);if(d!==void 0){var h=md,m=e;switch(e){case"keypress":if(Qa(n)===0)break e;case"keydown":case"keyup":h=Wx;break;case"focusin":m="focus",h=Mu;break;case"focusout":m="blur",h=Mu;break;case"beforeblur":case"afterblur":h=Mu;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":h=np;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=Nx;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=qx;break;case jv:case Fv:case Dv:h=Lx;break;case $v:h=Kx;break;case"scroll":h=Ix;break;case"wheel":h=Xx;break;case"copy":case"cut":case"paste":h=Fx;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=op}var g=(t&4)!==0,y=!g&&e==="scroll",p=g?d!==null?d+"Capture":null:d;g=[];for(var v=u,S;v!==null;){S=v;var w=S.stateNode;if(S.tag===5&&w!==null&&(S=w,p!==null&&(w=ki(v,p),w!=null&&g.push(Li(v,w,S)))),y)break;v=v.return}0<g.length&&(d=new h(d,m,null,n,f),c.push({event:d,listeners:g}))}}if(!(t&7)){e:{if(d=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",d&&n!==Mc&&(m=n.relatedTarget||n.fromElement)&&(Zr(m)||m[Xn]))break e;if((h||d)&&(d=f.window===f?f:(d=f.ownerDocument)?d.defaultView||d.parentWindow:window,h?(m=n.relatedTarget||n.toElement,h=u,m=m?Zr(m):null,m!==null&&(y=No(m),m!==y||m.tag!==5&&m.tag!==6)&&(m=null)):(h=null,m=u),h!==m)){if(g=np,w="onMouseLeave",p="onMouseEnter",v="mouse",(e==="pointerout"||e==="pointerover")&&(g=op,w="onPointerLeave",p="onPointerEnter",v="pointer"),y=h==null?d:Go(h),S=m==null?d:Go(m),d=new g(w,v+"leave",h,n,f),d.target=y,d.relatedTarget=S,w=null,Zr(f)===u&&(g=new g(p,v+"enter",m,n,f),g.target=S,g.relatedTarget=y,w=g),y=w,h&&m)t:{for(g=h,p=m,v=0,S=g;S;S=Do(S))v++;for(S=0,w=p;w;w=Do(w))S++;for(;0<v-S;)g=Do(g),v--;for(;0<S-v;)p=Do(p),S--;for(;v--;){if(g===p||p!==null&&g===p.alternate)break t;g=Do(g),p=Do(p)}g=null}else g=null;h!==null&&mp(c,d,h,g,!1),m!==null&&y!==null&&mp(c,y,m,g,!0)}}e:{if(d=u?Go(u):window,h=d.nodeName&&d.nodeName.toLowerCase(),h==="select"||h==="input"&&d.type==="file")var _=ow;else if(ap(d))if(Av)_=lw;else{_=iw;var T=sw}else(h=d.nodeName)&&h.toLowerCase()==="input"&&(d.type==="checkbox"||d.type==="radio")&&(_=aw);if(_&&(_=_(e,u))){Iv(c,_,n,f);break e}T&&T(e,d,u),e==="focusout"&&(T=d._wrapperState)&&T.controlled&&d.type==="number"&&Tc(d,"number",d.value)}switch(T=u?Go(u):window,e){case"focusin":(ap(T)||T.contentEditable==="true")&&(Qo=T,zc=u,yi=null);break;case"focusout":yi=zc=Qo=null;break;case"mousedown":Bc=!0;break;case"contextmenu":case"mouseup":case"dragend":Bc=!1,dp(c,n,f);break;case"selectionchange":if(fw)break;case"keydown":case"keyup":dp(c,n,f)}var I;if(vd)e:{switch(e){case"compositionstart":var P="onCompositionStart";break e;case"compositionend":P="onCompositionEnd";break e;case"compositionupdate":P="onCompositionUpdate";break e}P=void 0}else Vo?kv(e,n)&&(P="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(P="onCompositionStart");P&&(Cv&&n.locale!=="ko"&&(Vo||P!=="onCompositionStart"?P==="onCompositionEnd"&&Vo&&(I=Rv()):(_r=f,pd="value"in _r?_r.value:_r.textContent,Vo=!0)),T=gl(u,P),0<T.length&&(P=new rp(P,e,null,n,f),c.push({event:P,listeners:T}),I?P.data=I:(I=Tv(n),I!==null&&(P.data=I)))),(I=Zx?ew(e,n):tw(e,n))&&(u=gl(u,"onBeforeInput"),0<u.length&&(f=new rp("onBeforeInput","beforeinput",null,n,f),c.push({event:f,listeners:u}),f.data=I))}zv(c,t)})}function Li(e,t,n){return{instance:e,listener:t,currentTarget:n}}function gl(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,s=o.stateNode;o.tag===5&&s!==null&&(o=s,s=ki(e,n),s!=null&&r.unshift(Li(e,s,o)),s=ki(e,t),s!=null&&r.push(Li(e,s,o))),e=e.return}return r}function Do(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function mp(e,t,n,r,o){for(var s=t._reactName,i=[];n!==null&&n!==r;){var a=n,l=a.alternate,u=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&u!==null&&(a=u,o?(l=ki(n,s),l!=null&&i.unshift(Li(n,l,a))):o||(l=ki(n,s),l!=null&&i.push(Li(n,l,a)))),n=n.return}i.length!==0&&e.push({event:t,listeners:i})}var mw=/\r\n?/g,gw=/\u0000|\uFFFD/g;function gp(e){return(typeof e=="string"?e:""+e).replace(mw,`
38
+ `).replace(gw,"")}function Ra(e,t,n){if(t=gp(t),gp(e)!==t&&n)throw Error(F(425))}function vl(){}var Hc=null,Wc=null;function Vc(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}var Qc=typeof setTimeout=="function"?setTimeout:void 0,vw=typeof clearTimeout=="function"?clearTimeout:void 0,vp=typeof Promise=="function"?Promise:void 0,yw=typeof queueMicrotask=="function"?queueMicrotask:typeof vp<"u"?function(e){return vp.resolve(null).then(e).catch(Sw)}:Qc;function Sw(e){setTimeout(function(){throw e})}function Bu(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),Ai(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);Ai(t)}function Ir(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function yp(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var js=Math.random().toString(36).slice(2),An="__reactFiber$"+js,ji="__reactProps$"+js,Xn="__reactContainer$"+js,qc="__reactEvents$"+js,xw="__reactListeners$"+js,ww="__reactHandles$"+js;function Zr(e){var t=e[An];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Xn]||n[An]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=yp(e);e!==null;){if(n=e[An])return n;e=yp(e)}return t}e=n,n=e.parentNode}return null}function sa(e){return e=e[An]||e[Xn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Go(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(F(33))}function Kl(e){return e[ji]||null}var Gc=[],Ko=-1;function Vr(e){return{current:e}}function ke(e){0>Ko||(e.current=Gc[Ko],Gc[Ko]=null,Ko--)}function Pe(e,t){Ko++,Gc[Ko]=e.current,e.current=t}var Ur={},vt=Vr(Ur),Ft=Vr(!1),Eo=Ur;function Es(e,t){var n=e.type.contextTypes;if(!n)return Ur;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},s;for(s in n)o[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Dt(e){return e=e.childContextTypes,e!=null}function yl(){ke(Ft),ke(vt)}function Sp(e,t,n){if(vt.current!==Ur)throw Error(F(168));Pe(vt,t),Pe(Ft,n)}function Hv(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(F(108,sx(e)||"Unknown",o));return Le({},n,r)}function Sl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ur,Eo=vt.current,Pe(vt,e),Pe(Ft,Ft.current),!0}function xp(e,t,n){var r=e.stateNode;if(!r)throw Error(F(169));n?(e=Hv(e,t,Eo),r.__reactInternalMemoizedMergedChildContext=e,ke(Ft),ke(vt),Pe(vt,e)):ke(Ft),Pe(Ft,n)}var Hn=null,Yl=!1,Hu=!1;function Wv(e){Hn===null?Hn=[e]:Hn.push(e)}function _w(e){Yl=!0,Wv(e)}function Qr(){if(!Hu&&Hn!==null){Hu=!0;var e=0,t=xe;try{var n=Hn;for(xe=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Hn=null,Yl=!1}catch(o){throw Hn!==null&&(Hn=Hn.slice(e+1)),mv(cd,Qr),o}finally{xe=t,Hu=!1}}return null}var Yo=[],Xo=0,xl=null,wl=0,sn=[],an=0,bo=null,Qn=1,qn="";function Xr(e,t){Yo[Xo++]=wl,Yo[Xo++]=xl,xl=e,wl=t}function Vv(e,t,n){sn[an++]=Qn,sn[an++]=qn,sn[an++]=bo,bo=e;var r=Qn;e=qn;var o=32-xn(r)-1;r&=~(1<<o),n+=1;var s=32-xn(t)+o;if(30<s){var i=o-o%5;s=(r&(1<<i)-1).toString(32),r>>=i,o-=i,Qn=1<<32-xn(t)+o|n<<o|r,qn=s+e}else Qn=1<<s|n<<o|r,qn=e}function Sd(e){e.return!==null&&(Xr(e,1),Vv(e,1,0))}function xd(e){for(;e===xl;)xl=Yo[--Xo],Yo[Xo]=null,wl=Yo[--Xo],Yo[Xo]=null;for(;e===bo;)bo=sn[--an],sn[an]=null,qn=sn[--an],sn[an]=null,Qn=sn[--an],sn[an]=null}var Gt=null,qt=null,Ne=!1,yn=null;function Qv(e,t){var n=un(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function wp(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Gt=e,qt=Ir(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Gt=e,qt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=bo!==null?{id:Qn,overflow:qn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=un(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Gt=e,qt=null,!0):!1;default:return!1}}function Kc(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Yc(e){if(Ne){var t=qt;if(t){var n=t;if(!wp(e,t)){if(Kc(e))throw Error(F(418));t=Ir(n.nextSibling);var r=Gt;t&&wp(e,t)?Qv(r,n):(e.flags=e.flags&-4097|2,Ne=!1,Gt=e)}}else{if(Kc(e))throw Error(F(418));e.flags=e.flags&-4097|2,Ne=!1,Gt=e}}}function _p(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Gt=e}function Ca(e){if(e!==Gt)return!1;if(!Ne)return _p(e),Ne=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Vc(e.type,e.memoizedProps)),t&&(t=qt)){if(Kc(e))throw qv(),Error(F(418));for(;t;)Qv(e,t),t=Ir(t.nextSibling)}if(_p(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(F(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){qt=Ir(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}qt=null}}else qt=Gt?Ir(e.stateNode.nextSibling):null;return!0}function qv(){for(var e=qt;e;)e=Ir(e.nextSibling)}function bs(){qt=Gt=null,Ne=!1}function wd(e){yn===null?yn=[e]:yn.push(e)}var Ew=nr.ReactCurrentBatchConfig;function Gs(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(F(309));var r=n.stateNode}if(!r)throw Error(F(147,e));var o=r,s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(i){var a=o.refs;i===null?delete a[s]:a[s]=i},t._stringRef=s,t)}if(typeof e!="string")throw Error(F(284));if(!n._owner)throw Error(F(290,e))}return e}function ka(e,t){throw e=Object.prototype.toString.call(t),Error(F(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Ep(e){var t=e._init;return t(e._payload)}function Gv(e){function t(p,v){if(e){var S=p.deletions;S===null?(p.deletions=[v],p.flags|=16):S.push(v)}}function n(p,v){if(!e)return null;for(;v!==null;)t(p,v),v=v.sibling;return null}function r(p,v){for(p=new Map;v!==null;)v.key!==null?p.set(v.key,v):p.set(v.index,v),v=v.sibling;return p}function o(p,v){return p=Mr(p,v),p.index=0,p.sibling=null,p}function s(p,v,S){return p.index=S,e?(S=p.alternate,S!==null?(S=S.index,S<v?(p.flags|=2,v):S):(p.flags|=2,v)):(p.flags|=1048576,v)}function i(p){return e&&p.alternate===null&&(p.flags|=2),p}function a(p,v,S,w){return v===null||v.tag!==6?(v=Yu(S,p.mode,w),v.return=p,v):(v=o(v,S),v.return=p,v)}function l(p,v,S,w){var _=S.type;return _===Wo?f(p,v,S.props.children,w,S.key):v!==null&&(v.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===ur&&Ep(_)===v.type)?(w=o(v,S.props),w.ref=Gs(p,v,S),w.return=p,w):(w=Za(S.type,S.key,S.props,null,p.mode,w),w.ref=Gs(p,v,S),w.return=p,w)}function u(p,v,S,w){return v===null||v.tag!==4||v.stateNode.containerInfo!==S.containerInfo||v.stateNode.implementation!==S.implementation?(v=Xu(S,p.mode,w),v.return=p,v):(v=o(v,S.children||[]),v.return=p,v)}function f(p,v,S,w,_){return v===null||v.tag!==7?(v=So(S,p.mode,w,_),v.return=p,v):(v=o(v,S),v.return=p,v)}function c(p,v,S){if(typeof v=="string"&&v!==""||typeof v=="number")return v=Yu(""+v,p.mode,S),v.return=p,v;if(typeof v=="object"&&v!==null){switch(v.$$typeof){case va:return S=Za(v.type,v.key,v.props,null,p.mode,S),S.ref=Gs(p,null,v),S.return=p,S;case Ho:return v=Xu(v,p.mode,S),v.return=p,v;case ur:var w=v._init;return c(p,w(v._payload),S)}if(li(v)||Hs(v))return v=So(v,p.mode,S,null),v.return=p,v;ka(p,v)}return null}function d(p,v,S,w){var _=v!==null?v.key:null;if(typeof S=="string"&&S!==""||typeof S=="number")return _!==null?null:a(p,v,""+S,w);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case va:return S.key===_?l(p,v,S,w):null;case Ho:return S.key===_?u(p,v,S,w):null;case ur:return _=S._init,d(p,v,_(S._payload),w)}if(li(S)||Hs(S))return _!==null?null:f(p,v,S,w,null);ka(p,S)}return null}function h(p,v,S,w,_){if(typeof w=="string"&&w!==""||typeof w=="number")return p=p.get(S)||null,a(v,p,""+w,_);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case va:return p=p.get(w.key===null?S:w.key)||null,l(v,p,w,_);case Ho:return p=p.get(w.key===null?S:w.key)||null,u(v,p,w,_);case ur:var T=w._init;return h(p,v,S,T(w._payload),_)}if(li(w)||Hs(w))return p=p.get(S)||null,f(v,p,w,_,null);ka(v,w)}return null}function m(p,v,S,w){for(var _=null,T=null,I=v,P=v=0,k=null;I!==null&&P<S.length;P++){I.index>P?(k=I,I=null):k=I.sibling;var E=d(p,I,S[P],w);if(E===null){I===null&&(I=k);break}e&&I&&E.alternate===null&&t(p,I),v=s(E,v,P),T===null?_=E:T.sibling=E,T=E,I=k}if(P===S.length)return n(p,I),Ne&&Xr(p,P),_;if(I===null){for(;P<S.length;P++)I=c(p,S[P],w),I!==null&&(v=s(I,v,P),T===null?_=I:T.sibling=I,T=I);return Ne&&Xr(p,P),_}for(I=r(p,I);P<S.length;P++)k=h(I,p,P,S[P],w),k!==null&&(e&&k.alternate!==null&&I.delete(k.key===null?P:k.key),v=s(k,v,P),T===null?_=k:T.sibling=k,T=k);return e&&I.forEach(function(A){return t(p,A)}),Ne&&Xr(p,P),_}function g(p,v,S,w){var _=Hs(S);if(typeof _!="function")throw Error(F(150));if(S=_.call(S),S==null)throw Error(F(151));for(var T=_=null,I=v,P=v=0,k=null,E=S.next();I!==null&&!E.done;P++,E=S.next()){I.index>P?(k=I,I=null):k=I.sibling;var A=d(p,I,E.value,w);if(A===null){I===null&&(I=k);break}e&&I&&A.alternate===null&&t(p,I),v=s(A,v,P),T===null?_=A:T.sibling=A,T=A,I=k}if(E.done)return n(p,I),Ne&&Xr(p,P),_;if(I===null){for(;!E.done;P++,E=S.next())E=c(p,E.value,w),E!==null&&(v=s(E,v,P),T===null?_=E:T.sibling=E,T=E);return Ne&&Xr(p,P),_}for(I=r(p,I);!E.done;P++,E=S.next())E=h(I,p,P,E.value,w),E!==null&&(e&&E.alternate!==null&&I.delete(E.key===null?P:E.key),v=s(E,v,P),T===null?_=E:T.sibling=E,T=E);return e&&I.forEach(function(L){return t(p,L)}),Ne&&Xr(p,P),_}function y(p,v,S,w){if(typeof S=="object"&&S!==null&&S.type===Wo&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case va:e:{for(var _=S.key,T=v;T!==null;){if(T.key===_){if(_=S.type,_===Wo){if(T.tag===7){n(p,T.sibling),v=o(T,S.props.children),v.return=p,p=v;break e}}else if(T.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===ur&&Ep(_)===T.type){n(p,T.sibling),v=o(T,S.props),v.ref=Gs(p,T,S),v.return=p,p=v;break e}n(p,T);break}else t(p,T);T=T.sibling}S.type===Wo?(v=So(S.props.children,p.mode,w,S.key),v.return=p,p=v):(w=Za(S.type,S.key,S.props,null,p.mode,w),w.ref=Gs(p,v,S),w.return=p,p=w)}return i(p);case Ho:e:{for(T=S.key;v!==null;){if(v.key===T)if(v.tag===4&&v.stateNode.containerInfo===S.containerInfo&&v.stateNode.implementation===S.implementation){n(p,v.sibling),v=o(v,S.children||[]),v.return=p,p=v;break e}else{n(p,v);break}else t(p,v);v=v.sibling}v=Xu(S,p.mode,w),v.return=p,p=v}return i(p);case ur:return T=S._init,y(p,v,T(S._payload),w)}if(li(S))return m(p,v,S,w);if(Hs(S))return g(p,v,S,w);ka(p,S)}return typeof S=="string"&&S!==""||typeof S=="number"?(S=""+S,v!==null&&v.tag===6?(n(p,v.sibling),v=o(v,S),v.return=p,p=v):(n(p,v),v=Yu(S,p.mode,w),v.return=p,p=v),i(p)):n(p,v)}return y}var Ps=Gv(!0),Kv=Gv(!1),_l=Vr(null),El=null,Jo=null,_d=null;function Ed(){_d=Jo=El=null}function bd(e){var t=_l.current;ke(_l),e._currentValue=t}function Xc(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function is(e,t){El=e,_d=Jo=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Lt=!0),e.firstContext=null)}function fn(e){var t=e._currentValue;if(_d!==e)if(e={context:e,memoizedValue:t,next:null},Jo===null){if(El===null)throw Error(F(308));Jo=e,El.dependencies={lanes:0,firstContext:e}}else Jo=Jo.next=e;return t}var eo=null;function Pd(e){eo===null?eo=[e]:eo.push(e)}function Yv(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Pd(t)):(n.next=o.next,o.next=n),t.interleaved=n,Jn(e,r)}function Jn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var cr=!1;function Rd(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Xv(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Gn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ar(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,he&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Jn(e,n)}return o=r.interleaved,o===null?(t.next=t,Pd(r)):(t.next=o.next,o.next=t),r.interleaved=t,Jn(e,n)}function qa(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,fd(e,n)}}function bp(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?o=s=i:s=s.next=i,n=n.next}while(n!==null);s===null?o=s=t:s=s.next=t}else o=s=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:s,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function bl(e,t,n,r){var o=e.updateQueue;cr=!1;var s=o.firstBaseUpdate,i=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var l=a,u=l.next;l.next=null,i===null?s=u:i.next=u,i=l;var f=e.alternate;f!==null&&(f=f.updateQueue,a=f.lastBaseUpdate,a!==i&&(a===null?f.firstBaseUpdate=u:a.next=u,f.lastBaseUpdate=l))}if(s!==null){var c=o.baseState;i=0,f=u=l=null,a=s;do{var d=a.lane,h=a.eventTime;if((r&d)===d){f!==null&&(f=f.next={eventTime:h,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var m=e,g=a;switch(d=t,h=n,g.tag){case 1:if(m=g.payload,typeof m=="function"){c=m.call(h,c,d);break e}c=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=g.payload,d=typeof m=="function"?m.call(h,c,d):m,d==null)break e;c=Le({},c,d);break e;case 2:cr=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,d=o.effects,d===null?o.effects=[a]:d.push(a))}else h={eventTime:h,lane:d,tag:a.tag,payload:a.payload,callback:a.callback,next:null},f===null?(u=f=h,l=c):f=f.next=h,i|=d;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;d=a,a=d.next,d.next=null,o.lastBaseUpdate=d,o.shared.pending=null}}while(!0);if(f===null&&(l=c),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=f,t=o.shared.interleaved,t!==null){o=t;do i|=o.lane,o=o.next;while(o!==t)}else s===null&&(o.shared.lanes=0);Ro|=i,e.lanes=i,e.memoizedState=c}}function Pp(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(F(191,o));o.call(r)}}}var ia={},Mn=Vr(ia),Fi=Vr(ia),Di=Vr(ia);function to(e){if(e===ia)throw Error(F(174));return e}function Cd(e,t){switch(Pe(Di,t),Pe(Fi,e),Pe(Mn,ia),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ac(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ac(t,e)}ke(Mn),Pe(Mn,t)}function Rs(){ke(Mn),ke(Fi),ke(Di)}function Jv(e){to(Di.current);var t=to(Mn.current),n=Ac(t,e.type);t!==n&&(Pe(Fi,e),Pe(Mn,n))}function kd(e){Fi.current===e&&(ke(Mn),ke(Fi))}var Oe=Vr(0);function Pl(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Wu=[];function Td(){for(var e=0;e<Wu.length;e++)Wu[e]._workInProgressVersionPrimary=null;Wu.length=0}var Ga=nr.ReactCurrentDispatcher,Vu=nr.ReactCurrentBatchConfig,Po=0,Me=null,Ge=null,Je=null,Rl=!1,Si=!1,$i=0,bw=0;function dt(){throw Error(F(321))}function Id(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!_n(e[n],t[n]))return!1;return!0}function Ad(e,t,n,r,o,s){if(Po=s,Me=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Ga.current=e===null||e.memoizedState===null?kw:Tw,e=n(r,o),Si){s=0;do{if(Si=!1,$i=0,25<=s)throw Error(F(301));s+=1,Je=Ge=null,t.updateQueue=null,Ga.current=Iw,e=n(r,o)}while(Si)}if(Ga.current=Cl,t=Ge!==null&&Ge.next!==null,Po=0,Je=Ge=Me=null,Rl=!1,t)throw Error(F(300));return e}function Nd(){var e=$i!==0;return $i=0,e}function Rn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Je===null?Me.memoizedState=Je=e:Je=Je.next=e,Je}function dn(){if(Ge===null){var e=Me.alternate;e=e!==null?e.memoizedState:null}else e=Ge.next;var t=Je===null?Me.memoizedState:Je.next;if(t!==null)Je=t,Ge=e;else{if(e===null)throw Error(F(310));Ge=e,e={memoizedState:Ge.memoizedState,baseState:Ge.baseState,baseQueue:Ge.baseQueue,queue:Ge.queue,next:null},Je===null?Me.memoizedState=Je=e:Je=Je.next=e}return Je}function Ui(e,t){return typeof t=="function"?t(e):t}function Qu(e){var t=dn(),n=t.queue;if(n===null)throw Error(F(311));n.lastRenderedReducer=e;var r=Ge,o=r.baseQueue,s=n.pending;if(s!==null){if(o!==null){var i=o.next;o.next=s.next,s.next=i}r.baseQueue=o=s,n.pending=null}if(o!==null){s=o.next,r=r.baseState;var a=i=null,l=null,u=s;do{var f=u.lane;if((Po&f)===f)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var c={lane:f,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(a=l=c,i=r):l=l.next=c,Me.lanes|=f,Ro|=f}u=u.next}while(u!==null&&u!==s);l===null?i=r:l.next=a,_n(r,t.memoizedState)||(Lt=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do s=o.lane,Me.lanes|=s,Ro|=s,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function qu(e){var t=dn(),n=t.queue;if(n===null)throw Error(F(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,s=t.memoizedState;if(o!==null){n.pending=null;var i=o=o.next;do s=e(s,i.action),i=i.next;while(i!==o);_n(s,t.memoizedState)||(Lt=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function Zv(){}function ey(e,t){var n=Me,r=dn(),o=t(),s=!_n(r.memoizedState,o);if(s&&(r.memoizedState=o,Lt=!0),r=r.queue,Od(ry.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||Je!==null&&Je.memoizedState.tag&1){if(n.flags|=2048,zi(9,ny.bind(null,n,r,o,t),void 0,null),Ze===null)throw Error(F(349));Po&30||ty(n,t,o)}return o}function ty(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Me.updateQueue,t===null?(t={lastEffect:null,stores:null},Me.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function ny(e,t,n,r){t.value=n,t.getSnapshot=r,oy(t)&&sy(e)}function ry(e,t,n){return n(function(){oy(t)&&sy(e)})}function oy(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!_n(e,n)}catch{return!0}}function sy(e){var t=Jn(e,1);t!==null&&wn(t,e,1,-1)}function Rp(e){var t=Rn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ui,lastRenderedState:e},t.queue=e,e=e.dispatch=Cw.bind(null,Me,e),[t.memoizedState,e]}function zi(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Me.updateQueue,t===null?(t={lastEffect:null,stores:null},Me.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function iy(){return dn().memoizedState}function Ka(e,t,n,r){var o=Rn();Me.flags|=e,o.memoizedState=zi(1|t,n,void 0,r===void 0?null:r)}function Xl(e,t,n,r){var o=dn();r=r===void 0?null:r;var s=void 0;if(Ge!==null){var i=Ge.memoizedState;if(s=i.destroy,r!==null&&Id(r,i.deps)){o.memoizedState=zi(t,n,s,r);return}}Me.flags|=e,o.memoizedState=zi(1|t,n,s,r)}function Cp(e,t){return Ka(8390656,8,e,t)}function Od(e,t){return Xl(2048,8,e,t)}function ay(e,t){return Xl(4,2,e,t)}function ly(e,t){return Xl(4,4,e,t)}function uy(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function cy(e,t,n){return n=n!=null?n.concat([e]):null,Xl(4,4,uy.bind(null,t,e),n)}function Md(){}function fy(e,t){var n=dn();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Id(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function dy(e,t){var n=dn();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Id(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function hy(e,t,n){return Po&21?(_n(n,t)||(n=yv(),Me.lanes|=n,Ro|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Lt=!0),e.memoizedState=n)}function Pw(e,t){var n=xe;xe=n!==0&&4>n?n:4,e(!0);var r=Vu.transition;Vu.transition={};try{e(!1),t()}finally{xe=n,Vu.transition=r}}function py(){return dn().memoizedState}function Rw(e,t,n){var r=Or(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},my(e))gy(t,n);else if(n=Yv(e,t,n,r),n!==null){var o=Et();wn(n,e,r,o),vy(n,t,r)}}function Cw(e,t,n){var r=Or(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(my(e))gy(t,o);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var i=t.lastRenderedState,a=s(i,n);if(o.hasEagerState=!0,o.eagerState=a,_n(a,i)){var l=t.interleaved;l===null?(o.next=o,Pd(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=Yv(e,t,o,r),n!==null&&(o=Et(),wn(n,e,r,o),vy(n,t,r))}}function my(e){var t=e.alternate;return e===Me||t!==null&&t===Me}function gy(e,t){Si=Rl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function vy(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,fd(e,n)}}var Cl={readContext:fn,useCallback:dt,useContext:dt,useEffect:dt,useImperativeHandle:dt,useInsertionEffect:dt,useLayoutEffect:dt,useMemo:dt,useReducer:dt,useRef:dt,useState:dt,useDebugValue:dt,useDeferredValue:dt,useTransition:dt,useMutableSource:dt,useSyncExternalStore:dt,useId:dt,unstable_isNewReconciler:!1},kw={readContext:fn,useCallback:function(e,t){return Rn().memoizedState=[e,t===void 0?null:t],e},useContext:fn,useEffect:Cp,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ka(4194308,4,uy.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ka(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ka(4,2,e,t)},useMemo:function(e,t){var n=Rn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Rn();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Rw.bind(null,Me,e),[r.memoizedState,e]},useRef:function(e){var t=Rn();return e={current:e},t.memoizedState=e},useState:Rp,useDebugValue:Md,useDeferredValue:function(e){return Rn().memoizedState=e},useTransition:function(){var e=Rp(!1),t=e[0];return e=Pw.bind(null,e[1]),Rn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Me,o=Rn();if(Ne){if(n===void 0)throw Error(F(407));n=n()}else{if(n=t(),Ze===null)throw Error(F(349));Po&30||ty(r,t,n)}o.memoizedState=n;var s={value:n,getSnapshot:t};return o.queue=s,Cp(ry.bind(null,r,s,e),[e]),r.flags|=2048,zi(9,ny.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=Rn(),t=Ze.identifierPrefix;if(Ne){var n=qn,r=Qn;n=(r&~(1<<32-xn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=$i++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=bw++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Tw={readContext:fn,useCallback:fy,useContext:fn,useEffect:Od,useImperativeHandle:cy,useInsertionEffect:ay,useLayoutEffect:ly,useMemo:dy,useReducer:Qu,useRef:iy,useState:function(){return Qu(Ui)},useDebugValue:Md,useDeferredValue:function(e){var t=dn();return hy(t,Ge.memoizedState,e)},useTransition:function(){var e=Qu(Ui)[0],t=dn().memoizedState;return[e,t]},useMutableSource:Zv,useSyncExternalStore:ey,useId:py,unstable_isNewReconciler:!1},Iw={readContext:fn,useCallback:fy,useContext:fn,useEffect:Od,useImperativeHandle:cy,useInsertionEffect:ay,useLayoutEffect:ly,useMemo:dy,useReducer:qu,useRef:iy,useState:function(){return qu(Ui)},useDebugValue:Md,useDeferredValue:function(e){var t=dn();return Ge===null?t.memoizedState=e:hy(t,Ge.memoizedState,e)},useTransition:function(){var e=qu(Ui)[0],t=dn().memoizedState;return[e,t]},useMutableSource:Zv,useSyncExternalStore:ey,useId:py,unstable_isNewReconciler:!1};function mn(e,t){if(e&&e.defaultProps){t=Le({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Jc(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Le({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Jl={isMounted:function(e){return(e=e._reactInternals)?No(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Et(),o=Or(e),s=Gn(r,o);s.payload=t,n!=null&&(s.callback=n),t=Ar(e,s,o),t!==null&&(wn(t,e,o,r),qa(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Et(),o=Or(e),s=Gn(r,o);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=Ar(e,s,o),t!==null&&(wn(t,e,o,r),qa(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Et(),r=Or(e),o=Gn(n,r);o.tag=2,t!=null&&(o.callback=t),t=Ar(e,o,r),t!==null&&(wn(t,e,r,n),qa(t,e,r))}};function kp(e,t,n,r,o,s,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,s,i):t.prototype&&t.prototype.isPureReactComponent?!Oi(n,r)||!Oi(o,s):!0}function yy(e,t,n){var r=!1,o=Ur,s=t.contextType;return typeof s=="object"&&s!==null?s=fn(s):(o=Dt(t)?Eo:vt.current,r=t.contextTypes,s=(r=r!=null)?Es(e,o):Ur),t=new t(n,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Jl,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=s),t}function Tp(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Jl.enqueueReplaceState(t,t.state,null)}function Zc(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Rd(e);var s=t.contextType;typeof s=="object"&&s!==null?o.context=fn(s):(s=Dt(t)?Eo:vt.current,o.context=Es(e,s)),o.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(Jc(e,t,s,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&Jl.enqueueReplaceState(o,o.state,null),bl(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function Cs(e,t){try{var n="",r=t;do n+=ox(r),r=r.return;while(r);var o=n}catch(s){o=`
39
39
  Error generating stack: `+s.message+`
40
- `+s.stack}return{value:e,source:t,stack:o,digest:null}}function Gu(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function ef(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Aw=typeof WeakMap=="function"?WeakMap:Map;function Sy(e,t,n){n=Gn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){kl||(kl=!0,ff=r),ef(e,t)},n}function xy(e,t,n){n=Gn(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){ef(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){ef(e,t),typeof r!="function"&&(Nr===null?Nr=new Set([this]):Nr.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),n}function Ip(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Aw;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Vw.bind(null,e,t,n),t.then(e,e))}function Ap(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Np(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Gn(-1,1),t.tag=2,Ar(n,t,1))),n.lanes|=1),e)}var Nw=nr.ReactCurrentOwner,Lt=!1;function _t(e,t,n,r){t.child=e===null?Kv(t,null,n,r):bs(t,e.child,n,r)}function Op(e,t,n,r,o){n=n.render;var s=t.ref;return ss(t,o),r=Ad(e,t,n,r,s,o),n=Nd(),e!==null&&!Lt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Zn(e,t,o)):(Ne&&n&&Sd(t),t.flags|=1,_t(e,t,r,o),t.child)}function Mp(e,t,n,r,o){if(e===null){var s=n.type;return typeof s=="function"&&!Bd(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,wy(e,t,s,r,o)):(e=Ja(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&o)){var i=s.memoizedProps;if(n=n.compare,n=n!==null?n:Ni,n(i,r)&&e.ref===t.ref)return Zn(e,t,o)}return t.flags|=1,e=Mr(s,r),e.ref=t.ref,e.return=t,t.child=e}function wy(e,t,n,r,o){if(e!==null){var s=e.memoizedProps;if(Ni(s,r)&&e.ref===t.ref)if(Lt=!1,t.pendingProps=r=s,(e.lanes&o)!==0)e.flags&131072&&(Lt=!0);else return t.lanes=e.lanes,Zn(e,t,o)}return tf(e,t,n,r,o)}function _y(e,t,n){var r=t.pendingProps,o=r.children,s=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Pe(Zo,Vt),Vt|=n;else{if(!(n&1073741824))return e=s!==null?s.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Pe(Zo,Vt),Vt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,Pe(Zo,Vt),Vt|=r}else s!==null?(r=s.baseLanes|n,t.memoizedState=null):r=n,Pe(Zo,Vt),Vt|=r;return _t(e,t,o,n),t.child}function Ey(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function tf(e,t,n,r,o){var s=Dt(n)?_o:vt.current;return s=_s(t,s),ss(t,o),n=Ad(e,t,n,r,s,o),r=Nd(),e!==null&&!Lt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Zn(e,t,o)):(Ne&&r&&Sd(t),t.flags|=1,_t(e,t,n,o),t.child)}function Lp(e,t,n,r,o){if(Dt(n)){var s=!0;yl(t)}else s=!1;if(ss(t,o),t.stateNode===null)Ka(e,t),yy(t,n,r),Zc(t,n,r,o),r=!0;else if(e===null){var i=t.stateNode,a=t.memoizedProps;i.props=a;var l=i.context,u=n.contextType;typeof u=="object"&&u!==null?u=fn(u):(u=Dt(n)?_o:vt.current,u=_s(t,u));var f=n.getDerivedStateFromProps,c=typeof f=="function"||typeof i.getSnapshotBeforeUpdate=="function";c||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(a!==r||l!==u)&&Tp(t,i,r,u),cr=!1;var d=t.memoizedState;i.state=d,El(t,r,i,o),l=t.memoizedState,a!==r||d!==l||Ft.current||cr?(typeof f=="function"&&(Jc(t,n,f,r),l=t.memoizedState),(a=cr||kp(t,n,a,r,d,l,u))?(c||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),i.props=r,i.state=l,i.context=u,r=a):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,Xv(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:mn(t.type,a),i.props=u,c=t.pendingProps,d=i.context,l=n.contextType,typeof l=="object"&&l!==null?l=fn(l):(l=Dt(n)?_o:vt.current,l=_s(t,l));var h=n.getDerivedStateFromProps;(f=typeof h=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(a!==c||d!==l)&&Tp(t,i,r,l),cr=!1,d=t.memoizedState,i.state=d,El(t,r,i,o);var m=t.memoizedState;a!==c||d!==m||Ft.current||cr?(typeof h=="function"&&(Jc(t,n,h,r),m=t.memoizedState),(u=cr||kp(t,n,u,r,d,m,l)||!1)?(f||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,m,l),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,m,l)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),i.props=r,i.state=m,i.context=l,r=u):(typeof i.componentDidUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return nf(e,t,n,r,s,o)}function nf(e,t,n,r,o,s){Ey(e,t);var i=(t.flags&128)!==0;if(!r&&!i)return o&&xp(t,n,!1),Zn(e,t,s);r=t.stateNode,Nw.current=t;var a=i&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&i?(t.child=bs(t,e.child,null,s),t.child=bs(t,null,a,s)):_t(e,t,a,s),t.memoizedState=r.state,o&&xp(t,n,!0),t.child}function by(e){var t=e.stateNode;t.pendingContext?Sp(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Sp(e,t.context,!1),Cd(e,t.containerInfo)}function jp(e,t,n,r,o){return Es(),wd(o),t.flags|=256,_t(e,t,n,r),t.child}var rf={dehydrated:null,treeContext:null,retryLane:0};function of(e){return{baseLanes:e,cachePool:null,transitions:null}}function Py(e,t,n){var r=t.pendingProps,o=Oe.current,s=!1,i=(t.flags&128)!==0,a;if((a=i)||(a=e!==null&&e.memoizedState===null?!1:(o&2)!==0),a?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),Pe(Oe,o&1),e===null)return Yc(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(i=r.children,e=r.fallback,s?(r=t.mode,s=t.child,i={mode:"hidden",children:i},!(r&1)&&s!==null?(s.childLanes=0,s.pendingProps=i):s=eu(i,r,0,null),e=yo(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=of(n),t.memoizedState=rf,e):Ld(t,i));if(o=e.memoizedState,o!==null&&(a=o.dehydrated,a!==null))return Ow(e,t,i,r,a,o,n);if(s){s=r.fallback,i=t.mode,o=e.child,a=o.sibling;var l={mode:"hidden",children:r.children};return!(i&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=Mr(o,l),r.subtreeFlags=o.subtreeFlags&14680064),a!==null?s=Mr(a,s):(s=yo(s,i,n,null),s.flags|=2),s.return=t,r.return=t,r.sibling=s,t.child=r,r=s,s=t.child,i=e.child.memoizedState,i=i===null?of(n):{baseLanes:i.baseLanes|n,cachePool:null,transitions:i.transitions},s.memoizedState=i,s.childLanes=e.childLanes&~n,t.memoizedState=rf,r}return s=e.child,e=s.sibling,r=Mr(s,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Ld(e,t){return t=eu({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function ka(e,t,n,r){return r!==null&&wd(r),bs(t,e.child,null,n),e=Ld(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Ow(e,t,n,r,o,s,i){if(n)return t.flags&256?(t.flags&=-257,r=Gu(Error(F(422))),ka(e,t,i,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=r.fallback,o=t.mode,r=eu({mode:"visible",children:r.children},o,0,null),s=yo(s,o,i,null),s.flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,t.mode&1&&bs(t,e.child,null,i),t.child.memoizedState=of(i),t.memoizedState=rf,s);if(!(t.mode&1))return ka(e,t,i,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var a=r.dgst;return r=a,s=Error(F(419)),r=Gu(s,r,void 0),ka(e,t,i,r)}if(a=(i&e.childLanes)!==0,Lt||a){if(r=Ze,r!==null){switch(i&-i){case 4:o=2;break;case 16:o=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:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|i)?0:o,o!==0&&o!==s.retryLane&&(s.retryLane=o,Jn(e,o),wn(r,e,o,-1))}return zd(),r=Gu(Error(F(421))),ka(e,t,i,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=Qw.bind(null,e),o._reactRetry=t,null):(e=s.treeContext,qt=Ir(o.nextSibling),Gt=t,Ne=!0,yn=null,e!==null&&(sn[an++]=Qn,sn[an++]=qn,sn[an++]=Eo,Qn=e.id,qn=e.overflow,Eo=t),t=Ld(t,r.children),t.flags|=4096,t)}function Fp(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Xc(e.return,t,n)}function Ku(e,t,n,r,o){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=o)}function Ry(e,t,n){var r=t.pendingProps,o=r.revealOrder,s=r.tail;if(_t(e,t,r.children,n),r=Oe.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Fp(e,n,t);else if(e.tag===19)Fp(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Pe(Oe,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&bl(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Ku(t,!1,o,n,s);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&bl(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Ku(t,!0,n,null,s);break;case"together":Ku(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ka(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Zn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Po|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(F(153));if(t.child!==null){for(e=t.child,n=Mr(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Mr(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Mw(e,t,n){switch(t.tag){case 3:by(t),Es();break;case 5:Jv(t);break;case 1:Dt(t.type)&&yl(t);break;case 4:Cd(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Pe(wl,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Pe(Oe,Oe.current&1),t.flags|=128,null):n&t.child.childLanes?Py(e,t,n):(Pe(Oe,Oe.current&1),e=Zn(e,t,n),e!==null?e.sibling:null);Pe(Oe,Oe.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Ry(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),Pe(Oe,Oe.current),r)break;return null;case 22:case 23:return t.lanes=0,_y(e,t,n)}return Zn(e,t,n)}var Cy,sf,ky,Ty;Cy=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};sf=function(){};ky=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,to(Mn.current);var s=null;switch(n){case"input":o=Cc(e,o),r=Cc(e,r),s=[];break;case"select":o=Le({},o,{value:void 0}),r=Le({},r,{value:void 0}),s=[];break;case"textarea":o=Ic(e,o),r=Ic(e,r),s=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=gl)}Nc(n,r);var i;n=null;for(u in o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var a=o[u];for(i in a)a.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Pi.hasOwnProperty(u)?s||(s=[]):(s=s||[]).push(u,null));for(u in r){var l=r[u];if(a=o!=null?o[u]:void 0,r.hasOwnProperty(u)&&l!==a&&(l!=null||a!=null))if(u==="style")if(a){for(i in a)!a.hasOwnProperty(i)||l&&l.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in l)l.hasOwnProperty(i)&&a[i]!==l[i]&&(n||(n={}),n[i]=l[i])}else n||(s||(s=[]),s.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(s=s||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(s=s||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Pi.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&Ce("scroll",e),s||a===l||(s=[])):(s=s||[]).push(u,l))}n&&(s=s||[]).push("style",n);var u=s;(t.updateQueue=u)&&(t.flags|=4)}};Ty=function(e,t,n,r){n!==r&&(t.flags|=4)};function Gs(e,t){if(!Ne)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ht(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Lw(e,t,n){var r=t.pendingProps;switch(xd(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ht(t),null;case 1:return Dt(t.type)&&vl(),ht(t),null;case 3:return r=t.stateNode,Ps(),ke(Ft),ke(vt),Td(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Ra(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,yn!==null&&(pf(yn),yn=null))),sf(e,t),ht(t),null;case 5:kd(t);var o=to(Fi.current);if(n=t.type,e!==null&&t.stateNode!=null)ky(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(F(166));return ht(t),null}if(e=to(Mn.current),Ra(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[An]=t,r[Li]=s,e=(t.mode&1)!==0,n){case"dialog":Ce("cancel",r),Ce("close",r);break;case"iframe":case"object":case"embed":Ce("load",r);break;case"video":case"audio":for(o=0;o<ui.length;o++)Ce(ui[o],r);break;case"source":Ce("error",r);break;case"img":case"image":case"link":Ce("error",r),Ce("load",r);break;case"details":Ce("toggle",r);break;case"input":Qh(r,s),Ce("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},Ce("invalid",r);break;case"textarea":Gh(r,s),Ce("invalid",r)}Nc(n,s),o=null;for(var i in s)if(s.hasOwnProperty(i)){var a=s[i];i==="children"?typeof a=="string"?r.textContent!==a&&(s.suppressHydrationWarning!==!0&&Pa(r.textContent,a,e),o=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(s.suppressHydrationWarning!==!0&&Pa(r.textContent,a,e),o=["children",""+a]):Pi.hasOwnProperty(i)&&a!=null&&i==="onScroll"&&Ce("scroll",r)}switch(n){case"input":va(r),qh(r,s,!0);break;case"textarea":va(r),Kh(r);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(r.onclick=gl)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{i=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=rv(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=i.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[An]=t,e[Li]=r,Cy(e,t,!1,!1),t.stateNode=e;e:{switch(i=Oc(n,r),n){case"dialog":Ce("cancel",e),Ce("close",e),o=r;break;case"iframe":case"object":case"embed":Ce("load",e),o=r;break;case"video":case"audio":for(o=0;o<ui.length;o++)Ce(ui[o],e);o=r;break;case"source":Ce("error",e),o=r;break;case"img":case"image":case"link":Ce("error",e),Ce("load",e),o=r;break;case"details":Ce("toggle",e),o=r;break;case"input":Qh(e,r),o=Cc(e,r),Ce("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Le({},r,{value:void 0}),Ce("invalid",e);break;case"textarea":Gh(e,r),o=Ic(e,r),Ce("invalid",e);break;default:o=r}Nc(n,o),a=o;for(s in a)if(a.hasOwnProperty(s)){var l=a[s];s==="style"?iv(e,l):s==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&ov(e,l)):s==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&Ri(e,l):typeof l=="number"&&Ri(e,""+l):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(Pi.hasOwnProperty(s)?l!=null&&s==="onScroll"&&Ce("scroll",e):l!=null&&sd(e,s,l,i))}switch(n){case"input":va(e),qh(e,r,!1);break;case"textarea":va(e),Kh(e);break;case"option":r.value!=null&&e.setAttribute("value",""+$r(r.value));break;case"select":e.multiple=!!r.multiple,s=r.value,s!=null?ts(e,!!r.multiple,s,!1):r.defaultValue!=null&&ts(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=gl)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return ht(t),null;case 6:if(e&&t.stateNode!=null)Ty(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(F(166));if(n=to(Fi.current),to(Mn.current),Ra(t)){if(r=t.stateNode,n=t.memoizedProps,r[An]=t,(s=r.nodeValue!==n)&&(e=Gt,e!==null))switch(e.tag){case 3:Pa(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Pa(r.nodeValue,n,(e.mode&1)!==0)}s&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[An]=t,t.stateNode=r}return ht(t),null;case 13:if(ke(Oe),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ne&&qt!==null&&t.mode&1&&!(t.flags&128))qv(),Es(),t.flags|=98560,s=!1;else if(s=Ra(t),r!==null&&r.dehydrated!==null){if(e===null){if(!s)throw Error(F(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(F(317));s[An]=t}else Es(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;ht(t),s=!1}else yn!==null&&(pf(yn),yn=null),s=!0;if(!s)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||Oe.current&1?Ke===0&&(Ke=3):zd())),t.updateQueue!==null&&(t.flags|=4),ht(t),null);case 4:return Ps(),sf(e,t),e===null&&Oi(t.stateNode.containerInfo),ht(t),null;case 10:return bd(t.type._context),ht(t),null;case 17:return Dt(t.type)&&vl(),ht(t),null;case 19:if(ke(Oe),s=t.memoizedState,s===null)return ht(t),null;if(r=(t.flags&128)!==0,i=s.rendering,i===null)if(r)Gs(s,!1);else{if(Ke!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=bl(e),i!==null){for(t.flags|=128,Gs(s,!1),r=i.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)s=n,e=r,s.flags&=14680066,i=s.alternate,i===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=i.childLanes,s.lanes=i.lanes,s.child=i.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=i.memoizedProps,s.memoizedState=i.memoizedState,s.updateQueue=i.updateQueue,s.type=i.type,e=i.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Pe(Oe,Oe.current&1|2),t.child}e=e.sibling}s.tail!==null&&Be()>Cs&&(t.flags|=128,r=!0,Gs(s,!1),t.lanes=4194304)}else{if(!r)if(e=bl(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Gs(s,!0),s.tail===null&&s.tailMode==="hidden"&&!i.alternate&&!Ne)return ht(t),null}else 2*Be()-s.renderingStartTime>Cs&&n!==1073741824&&(t.flags|=128,r=!0,Gs(s,!1),t.lanes=4194304);s.isBackwards?(i.sibling=t.child,t.child=i):(n=s.last,n!==null?n.sibling=i:t.child=i,s.last=i)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Be(),t.sibling=null,n=Oe.current,Pe(Oe,r?n&1|2:n&1),t):(ht(t),null);case 22:case 23:return Ud(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Vt&1073741824&&(ht(t),t.subtreeFlags&6&&(t.flags|=8192)):ht(t),null;case 24:return null;case 25:return null}throw Error(F(156,t.tag))}function jw(e,t){switch(xd(t),t.tag){case 1:return Dt(t.type)&&vl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ps(),ke(Ft),ke(vt),Td(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return kd(t),null;case 13:if(ke(Oe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(F(340));Es()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ke(Oe),null;case 4:return Ps(),null;case 10:return bd(t.type._context),null;case 22:case 23:return Ud(),null;case 24:return null;default:return null}}var Ta=!1,gt=!1,Fw=typeof WeakSet=="function"?WeakSet:Set,G=null;function Jo(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){$e(e,t,r)}else n.current=null}function af(e,t,n){try{n()}catch(r){$e(e,t,r)}}var Dp=!1;function Dw(e,t){if(Hc=hl,e=Mv(),yd(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var i=0,a=-1,l=-1,u=0,f=0,c=e,d=null;t:for(;;){for(var h;c!==n||o!==0&&c.nodeType!==3||(a=i+o),c!==s||r!==0&&c.nodeType!==3||(l=i+r),c.nodeType===3&&(i+=c.nodeValue.length),(h=c.firstChild)!==null;)d=c,c=h;for(;;){if(c===e)break t;if(d===n&&++u===o&&(a=i),d===s&&++f===r&&(l=i),(h=c.nextSibling)!==null)break;c=d,d=c.parentNode}c=h}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Wc={focusedElem:e,selectionRange:n},hl=!1,G=t;G!==null;)if(t=G,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,G=e;else for(;G!==null;){t=G;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var g=m.memoizedProps,y=m.memoizedState,p=t.stateNode,v=p.getSnapshotBeforeUpdate(t.elementType===t.type?g:mn(t.type,g),y);p.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var S=t.stateNode.containerInfo;S.nodeType===1?S.textContent="":S.nodeType===9&&S.documentElement&&S.removeChild(S.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(F(163))}}catch(w){$e(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,G=e;break}G=t.return}return m=Dp,Dp=!1,m}function Si(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var s=o.destroy;o.destroy=void 0,s!==void 0&&af(t,n,s)}o=o.next}while(o!==r)}}function Jl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function lf(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Iy(e){var t=e.alternate;t!==null&&(e.alternate=null,Iy(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[An],delete t[Li],delete t[qc],delete t[xw],delete t[ww])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Ay(e){return e.tag===5||e.tag===3||e.tag===4}function $p(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ay(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function uf(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=gl));else if(r!==4&&(e=e.child,e!==null))for(uf(e,t,n),e=e.sibling;e!==null;)uf(e,t,n),e=e.sibling}function cf(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(cf(e,t,n),e=e.sibling;e!==null;)cf(e,t,n),e=e.sibling}var ot=null,vn=!1;function ar(e,t,n){for(n=n.child;n!==null;)Ny(e,t,n),n=n.sibling}function Ny(e,t,n){if(On&&typeof On.onCommitFiberUnmount=="function")try{On.onCommitFiberUnmount(Wl,n)}catch{}switch(n.tag){case 5:gt||Jo(n,t);case 6:var r=ot,o=vn;ot=null,ar(e,t,n),ot=r,vn=o,ot!==null&&(vn?(e=ot,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ot.removeChild(n.stateNode));break;case 18:ot!==null&&(vn?(e=ot,n=n.stateNode,e.nodeType===8?Bu(e.parentNode,n):e.nodeType===1&&Bu(e,n),Ii(e)):Bu(ot,n.stateNode));break;case 4:r=ot,o=vn,ot=n.stateNode.containerInfo,vn=!0,ar(e,t,n),ot=r,vn=o;break;case 0:case 11:case 14:case 15:if(!gt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var s=o,i=s.destroy;s=s.tag,i!==void 0&&(s&2||s&4)&&af(n,t,i),o=o.next}while(o!==r)}ar(e,t,n);break;case 1:if(!gt&&(Jo(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){$e(n,t,a)}ar(e,t,n);break;case 21:ar(e,t,n);break;case 22:n.mode&1?(gt=(r=gt)||n.memoizedState!==null,ar(e,t,n),gt=r):ar(e,t,n);break;default:ar(e,t,n)}}function Up(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Fw),t.forEach(function(r){var o=qw.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function pn(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var s=e,i=t,a=i;e:for(;a!==null;){switch(a.tag){case 5:ot=a.stateNode,vn=!1;break e;case 3:ot=a.stateNode.containerInfo,vn=!0;break e;case 4:ot=a.stateNode.containerInfo,vn=!0;break e}a=a.return}if(ot===null)throw Error(F(160));Ny(s,i,o),ot=null,vn=!1;var l=o.alternate;l!==null&&(l.return=null),o.return=null}catch(u){$e(o,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Oy(t,e),t=t.sibling}function Oy(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(pn(t,e),bn(e),r&4){try{Si(3,e,e.return),Jl(3,e)}catch(g){$e(e,e.return,g)}try{Si(5,e,e.return)}catch(g){$e(e,e.return,g)}}break;case 1:pn(t,e),bn(e),r&512&&n!==null&&Jo(n,n.return);break;case 5:if(pn(t,e),bn(e),r&512&&n!==null&&Jo(n,n.return),e.flags&32){var o=e.stateNode;try{Ri(o,"")}catch(g){$e(e,e.return,g)}}if(r&4&&(o=e.stateNode,o!=null)){var s=e.memoizedProps,i=n!==null?n.memoizedProps:s,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&s.type==="radio"&&s.name!=null&&tv(o,s),Oc(a,i);var u=Oc(a,s);for(i=0;i<l.length;i+=2){var f=l[i],c=l[i+1];f==="style"?iv(o,c):f==="dangerouslySetInnerHTML"?ov(o,c):f==="children"?Ri(o,c):sd(o,f,c,u)}switch(a){case"input":kc(o,s);break;case"textarea":nv(o,s);break;case"select":var d=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!s.multiple;var h=s.value;h!=null?ts(o,!!s.multiple,h,!1):d!==!!s.multiple&&(s.defaultValue!=null?ts(o,!!s.multiple,s.defaultValue,!0):ts(o,!!s.multiple,s.multiple?[]:"",!1))}o[Li]=s}catch(g){$e(e,e.return,g)}}break;case 6:if(pn(t,e),bn(e),r&4){if(e.stateNode===null)throw Error(F(162));o=e.stateNode,s=e.memoizedProps;try{o.nodeValue=s}catch(g){$e(e,e.return,g)}}break;case 3:if(pn(t,e),bn(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Ii(t.containerInfo)}catch(g){$e(e,e.return,g)}break;case 4:pn(t,e),bn(e);break;case 13:pn(t,e),bn(e),o=e.child,o.flags&8192&&(s=o.memoizedState!==null,o.stateNode.isHidden=s,!s||o.alternate!==null&&o.alternate.memoizedState!==null||(Dd=Be())),r&4&&Up(e);break;case 22:if(f=n!==null&&n.memoizedState!==null,e.mode&1?(gt=(u=gt)||f,pn(t,e),gt=u):pn(t,e),bn(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!f&&e.mode&1)for(G=e,f=e.child;f!==null;){for(c=G=f;G!==null;){switch(d=G,h=d.child,d.tag){case 0:case 11:case 14:case 15:Si(4,d,d.return);break;case 1:Jo(d,d.return);var m=d.stateNode;if(typeof m.componentWillUnmount=="function"){r=d,n=d.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(g){$e(r,n,g)}}break;case 5:Jo(d,d.return);break;case 22:if(d.memoizedState!==null){Bp(c);continue}}h!==null?(h.return=d,G=h):Bp(c)}f=f.sibling}e:for(f=null,c=e;;){if(c.tag===5){if(f===null){f=c;try{o=c.stateNode,u?(s=o.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(a=c.stateNode,l=c.memoizedProps.style,i=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=sv("display",i))}catch(g){$e(e,e.return,g)}}}else if(c.tag===6){if(f===null)try{c.stateNode.nodeValue=u?"":c.memoizedProps}catch(g){$e(e,e.return,g)}}else if((c.tag!==22&&c.tag!==23||c.memoizedState===null||c===e)&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===e)break e;for(;c.sibling===null;){if(c.return===null||c.return===e)break e;f===c&&(f=null),c=c.return}f===c&&(f=null),c.sibling.return=c.return,c=c.sibling}}break;case 19:pn(t,e),bn(e),r&4&&Up(e);break;case 21:break;default:pn(t,e),bn(e)}}function bn(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Ay(n)){var r=n;break e}n=n.return}throw Error(F(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(Ri(o,""),r.flags&=-33);var s=$p(e);cf(e,s,o);break;case 3:case 4:var i=r.stateNode.containerInfo,a=$p(e);uf(e,a,i);break;default:throw Error(F(161))}}catch(l){$e(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function $w(e,t,n){G=e,My(e)}function My(e,t,n){for(var r=(e.mode&1)!==0;G!==null;){var o=G,s=o.child;if(o.tag===22&&r){var i=o.memoizedState!==null||Ta;if(!i){var a=o.alternate,l=a!==null&&a.memoizedState!==null||gt;a=Ta;var u=gt;if(Ta=i,(gt=l)&&!u)for(G=o;G!==null;)i=G,l=i.child,i.tag===22&&i.memoizedState!==null?Hp(o):l!==null?(l.return=i,G=l):Hp(o);for(;s!==null;)G=s,My(s),s=s.sibling;G=o,Ta=a,gt=u}zp(e)}else o.subtreeFlags&8772&&s!==null?(s.return=o,G=s):zp(e)}}function zp(e){for(;G!==null;){var t=G;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:gt||Jl(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!gt)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:mn(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&Pp(t,s,r);break;case 3:var i=t.updateQueue;if(i!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Pp(t,i,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var f=u.memoizedState;if(f!==null){var c=f.dehydrated;c!==null&&Ii(c)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(F(163))}gt||t.flags&512&&lf(t)}catch(d){$e(t,t.return,d)}}if(t===e){G=null;break}if(n=t.sibling,n!==null){n.return=t.return,G=n;break}G=t.return}}function Bp(e){for(;G!==null;){var t=G;if(t===e){G=null;break}var n=t.sibling;if(n!==null){n.return=t.return,G=n;break}G=t.return}}function Hp(e){for(;G!==null;){var t=G;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Jl(4,t)}catch(l){$e(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(l){$e(t,o,l)}}var s=t.return;try{lf(t)}catch(l){$e(t,s,l)}break;case 5:var i=t.return;try{lf(t)}catch(l){$e(t,i,l)}}}catch(l){$e(t,t.return,l)}if(t===e){G=null;break}var a=t.sibling;if(a!==null){a.return=t.return,G=a;break}G=t.return}}var Uw=Math.ceil,Cl=nr.ReactCurrentDispatcher,jd=nr.ReactCurrentOwner,cn=nr.ReactCurrentBatchConfig,he=0,Ze=null,Ve=null,it=0,Vt=0,Zo=Vr(0),Ke=0,zi=null,Po=0,Zl=0,Fd=0,xi=null,Ot=null,Dd=0,Cs=1/0,Bn=null,kl=!1,ff=null,Nr=null,Ia=!1,Er=null,Tl=0,wi=0,df=null,Ya=-1,Xa=0;function Et(){return he&6?Be():Ya!==-1?Ya:Ya=Be()}function Or(e){return e.mode&1?he&2&&it!==0?it&-it:Ew.transition!==null?(Xa===0&&(Xa=yv()),Xa):(e=xe,e!==0||(e=window.event,e=e===void 0?16:Pv(e.type)),e):1}function wn(e,t,n,r){if(50<wi)throw wi=0,df=null,Error(F(185));na(e,n,r),(!(he&2)||e!==Ze)&&(e===Ze&&(!(he&2)&&(Zl|=n),Ke===4&&hr(e,it)),$t(e,r),n===1&&he===0&&!(t.mode&1)&&(Cs=Be()+500,Kl&&Qr()))}function $t(e,t){var n=e.callbackNode;E1(e,t);var r=dl(e,e===Ze?it:0);if(r===0)n!==null&&Jh(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Jh(n),t===1)e.tag===0?_w(Wp.bind(null,e)):Wv(Wp.bind(null,e)),yw(function(){!(he&6)&&Qr()}),n=null;else{switch(Sv(r)){case 1:n=cd;break;case 4:n=gv;break;case 16:n=fl;break;case 536870912:n=vv;break;default:n=fl}n=By(n,Ly.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Ly(e,t){if(Ya=-1,Xa=0,he&6)throw Error(F(327));var n=e.callbackNode;if(is()&&e.callbackNode!==n)return null;var r=dl(e,e===Ze?it:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Il(e,r);else{t=r;var o=he;he|=2;var s=Fy();(Ze!==e||it!==t)&&(Bn=null,Cs=Be()+500,vo(e,t));do try{Hw();break}catch(a){jy(e,a)}while(!0);Ed(),Cl.current=s,he=o,Ve!==null?t=0:(Ze=null,it=0,t=Ke)}if(t!==0){if(t===2&&(o=Dc(e),o!==0&&(r=o,t=hf(e,o))),t===1)throw n=zi,vo(e,0),hr(e,r),$t(e,Be()),n;if(t===6)hr(e,r);else{if(o=e.current.alternate,!(r&30)&&!zw(o)&&(t=Il(e,r),t===2&&(s=Dc(e),s!==0&&(r=s,t=hf(e,s))),t===1))throw n=zi,vo(e,0),hr(e,r),$t(e,Be()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(F(345));case 2:Jr(e,Ot,Bn);break;case 3:if(hr(e,r),(r&130023424)===r&&(t=Dd+500-Be(),10<t)){if(dl(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){Et(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Qc(Jr.bind(null,e,Ot,Bn),t);break}Jr(e,Ot,Bn);break;case 4:if(hr(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var i=31-xn(r);s=1<<i,i=t[i],i>o&&(o=i),r&=~s}if(r=o,r=Be()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Uw(r/1960))-r,10<r){e.timeoutHandle=Qc(Jr.bind(null,e,Ot,Bn),r);break}Jr(e,Ot,Bn);break;case 5:Jr(e,Ot,Bn);break;default:throw Error(F(329))}}}return $t(e,Be()),e.callbackNode===n?Ly.bind(null,e):null}function hf(e,t){var n=xi;return e.current.memoizedState.isDehydrated&&(vo(e,t).flags|=256),e=Il(e,t),e!==2&&(t=Ot,Ot=n,t!==null&&pf(t)),e}function pf(e){Ot===null?Ot=e:Ot.push.apply(Ot,e)}function zw(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var o=n[r],s=o.getSnapshot;o=o.value;try{if(!_n(s(),o))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function hr(e,t){for(t&=~Fd,t&=~Zl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-xn(t),r=1<<n;e[n]=-1,t&=~r}}function Wp(e){if(he&6)throw Error(F(327));is();var t=dl(e,0);if(!(t&1))return $t(e,Be()),null;var n=Il(e,t);if(e.tag!==0&&n===2){var r=Dc(e);r!==0&&(t=r,n=hf(e,r))}if(n===1)throw n=zi,vo(e,0),hr(e,t),$t(e,Be()),n;if(n===6)throw Error(F(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Jr(e,Ot,Bn),$t(e,Be()),null}function $d(e,t){var n=he;he|=1;try{return e(t)}finally{he=n,he===0&&(Cs=Be()+500,Kl&&Qr())}}function Ro(e){Er!==null&&Er.tag===0&&!(he&6)&&is();var t=he;he|=1;var n=cn.transition,r=xe;try{if(cn.transition=null,xe=1,e)return e()}finally{xe=r,cn.transition=n,he=t,!(he&6)&&Qr()}}function Ud(){Vt=Zo.current,ke(Zo)}function vo(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,vw(n)),Ve!==null)for(n=Ve.return;n!==null;){var r=n;switch(xd(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&vl();break;case 3:Ps(),ke(Ft),ke(vt),Td();break;case 5:kd(r);break;case 4:Ps();break;case 13:ke(Oe);break;case 19:ke(Oe);break;case 10:bd(r.type._context);break;case 22:case 23:Ud()}n=n.return}if(Ze=e,Ve=e=Mr(e.current,null),it=Vt=t,Ke=0,zi=null,Fd=Zl=Po=0,Ot=xi=null,eo!==null){for(t=0;t<eo.length;t++)if(n=eo[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,s=n.pending;if(s!==null){var i=s.next;s.next=o,r.next=i}n.pending=r}eo=null}return e}function jy(e,t){do{var n=Ve;try{if(Ed(),qa.current=Rl,Pl){for(var r=Me.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}Pl=!1}if(bo=0,Je=Ge=Me=null,yi=!1,Di=0,jd.current=null,n===null||n.return===null){Ke=1,zi=t,Ve=null;break}e:{var s=e,i=n.return,a=n,l=t;if(t=it,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,f=a,c=f.tag;if(!(f.mode&1)&&(c===0||c===11||c===15)){var d=f.alternate;d?(f.updateQueue=d.updateQueue,f.memoizedState=d.memoizedState,f.lanes=d.lanes):(f.updateQueue=null,f.memoizedState=null)}var h=Ap(i);if(h!==null){h.flags&=-257,Np(h,i,a,s,t),h.mode&1&&Ip(s,u,t),t=h,l=u;var m=t.updateQueue;if(m===null){var g=new Set;g.add(l),t.updateQueue=g}else m.add(l);break e}else{if(!(t&1)){Ip(s,u,t),zd();break e}l=Error(F(426))}}else if(Ne&&a.mode&1){var y=Ap(i);if(y!==null){!(y.flags&65536)&&(y.flags|=256),Np(y,i,a,s,t),wd(Rs(l,a));break e}}s=l=Rs(l,a),Ke!==4&&(Ke=2),xi===null?xi=[s]:xi.push(s),s=i;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var p=Sy(s,l,t);bp(s,p);break e;case 1:a=l;var v=s.type,S=s.stateNode;if(!(s.flags&128)&&(typeof v.getDerivedStateFromError=="function"||S!==null&&typeof S.componentDidCatch=="function"&&(Nr===null||!Nr.has(S)))){s.flags|=65536,t&=-t,s.lanes|=t;var w=xy(s,a,t);bp(s,w);break e}}s=s.return}while(s!==null)}$y(n)}catch(_){t=_,Ve===n&&n!==null&&(Ve=n=n.return);continue}break}while(!0)}function Fy(){var e=Cl.current;return Cl.current=Rl,e===null?Rl:e}function zd(){(Ke===0||Ke===3||Ke===2)&&(Ke=4),Ze===null||!(Po&268435455)&&!(Zl&268435455)||hr(Ze,it)}function Il(e,t){var n=he;he|=2;var r=Fy();(Ze!==e||it!==t)&&(Bn=null,vo(e,t));do try{Bw();break}catch(o){jy(e,o)}while(!0);if(Ed(),he=n,Cl.current=r,Ve!==null)throw Error(F(261));return Ze=null,it=0,Ke}function Bw(){for(;Ve!==null;)Dy(Ve)}function Hw(){for(;Ve!==null&&!p1();)Dy(Ve)}function Dy(e){var t=zy(e.alternate,e,Vt);e.memoizedProps=e.pendingProps,t===null?$y(e):Ve=t,jd.current=null}function $y(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=jw(n,t),n!==null){n.flags&=32767,Ve=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ke=6,Ve=null;return}}else if(n=Lw(n,t,Vt),n!==null){Ve=n;return}if(t=t.sibling,t!==null){Ve=t;return}Ve=t=e}while(t!==null);Ke===0&&(Ke=5)}function Jr(e,t,n){var r=xe,o=cn.transition;try{cn.transition=null,xe=1,Ww(e,t,n,r)}finally{cn.transition=o,xe=r}return null}function Ww(e,t,n,r){do is();while(Er!==null);if(he&6)throw Error(F(327));n=e.finishedWork;var o=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(F(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(b1(e,s),e===Ze&&(Ve=Ze=null,it=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Ia||(Ia=!0,By(fl,function(){return is(),null})),s=(n.flags&15990)!==0,n.subtreeFlags&15990||s){s=cn.transition,cn.transition=null;var i=xe;xe=1;var a=he;he|=4,jd.current=null,Dw(e,n),Oy(n,e),cw(Wc),hl=!!Hc,Wc=Hc=null,e.current=n,$w(n),m1(),he=a,xe=i,cn.transition=s}else e.current=n;if(Ia&&(Ia=!1,Er=e,Tl=o),s=e.pendingLanes,s===0&&(Nr=null),y1(n.stateNode),$t(e,Be()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(kl)throw kl=!1,e=ff,ff=null,e;return Tl&1&&e.tag!==0&&is(),s=e.pendingLanes,s&1?e===df?wi++:(wi=0,df=e):wi=0,Qr(),null}function is(){if(Er!==null){var e=Sv(Tl),t=cn.transition,n=xe;try{if(cn.transition=null,xe=16>e?16:e,Er===null)var r=!1;else{if(e=Er,Er=null,Tl=0,he&6)throw Error(F(331));var o=he;for(he|=4,G=e.current;G!==null;){var s=G,i=s.child;if(G.flags&16){var a=s.deletions;if(a!==null){for(var l=0;l<a.length;l++){var u=a[l];for(G=u;G!==null;){var f=G;switch(f.tag){case 0:case 11:case 15:Si(8,f,s)}var c=f.child;if(c!==null)c.return=f,G=c;else for(;G!==null;){f=G;var d=f.sibling,h=f.return;if(Iy(f),f===u){G=null;break}if(d!==null){d.return=h,G=d;break}G=h}}}var m=s.alternate;if(m!==null){var g=m.child;if(g!==null){m.child=null;do{var y=g.sibling;g.sibling=null,g=y}while(g!==null)}}G=s}}if(s.subtreeFlags&2064&&i!==null)i.return=s,G=i;else e:for(;G!==null;){if(s=G,s.flags&2048)switch(s.tag){case 0:case 11:case 15:Si(9,s,s.return)}var p=s.sibling;if(p!==null){p.return=s.return,G=p;break e}G=s.return}}var v=e.current;for(G=v;G!==null;){i=G;var S=i.child;if(i.subtreeFlags&2064&&S!==null)S.return=i,G=S;else e:for(i=v;G!==null;){if(a=G,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:Jl(9,a)}}catch(_){$e(a,a.return,_)}if(a===i){G=null;break e}var w=a.sibling;if(w!==null){w.return=a.return,G=w;break e}G=a.return}}if(he=o,Qr(),On&&typeof On.onPostCommitFiberRoot=="function")try{On.onPostCommitFiberRoot(Wl,e)}catch{}r=!0}return r}finally{xe=n,cn.transition=t}}return!1}function Vp(e,t,n){t=Rs(n,t),t=Sy(e,t,1),e=Ar(e,t,1),t=Et(),e!==null&&(na(e,1,t),$t(e,t))}function $e(e,t,n){if(e.tag===3)Vp(e,e,n);else for(;t!==null;){if(t.tag===3){Vp(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Nr===null||!Nr.has(r))){e=Rs(n,e),e=xy(t,e,1),t=Ar(t,e,1),e=Et(),t!==null&&(na(t,1,e),$t(t,e));break}}t=t.return}}function Vw(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Et(),e.pingedLanes|=e.suspendedLanes&n,Ze===e&&(it&n)===n&&(Ke===4||Ke===3&&(it&130023424)===it&&500>Be()-Dd?vo(e,0):Fd|=n),$t(e,t)}function Uy(e,t){t===0&&(e.mode&1?(t=xa,xa<<=1,!(xa&130023424)&&(xa=4194304)):t=1);var n=Et();e=Jn(e,t),e!==null&&(na(e,t,n),$t(e,n))}function Qw(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Uy(e,n)}function qw(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(F(314))}r!==null&&r.delete(t),Uy(e,n)}var zy;zy=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ft.current)Lt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Lt=!1,Mw(e,t,n);Lt=!!(e.flags&131072)}else Lt=!1,Ne&&t.flags&1048576&&Vv(t,xl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ka(e,t),e=t.pendingProps;var o=_s(t,vt.current);ss(t,n),o=Ad(null,t,r,e,o,n);var s=Nd();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Dt(r)?(s=!0,yl(t)):s=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Rd(t),o.updater=Xl,t.stateNode=o,o._reactInternals=t,Zc(t,r,e,n),t=nf(null,t,r,!0,s,n)):(t.tag=0,Ne&&s&&Sd(t),_t(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ka(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Kw(r),e=mn(r,e),o){case 0:t=tf(null,t,r,e,n);break e;case 1:t=Lp(null,t,r,e,n);break e;case 11:t=Op(null,t,r,e,n);break e;case 14:t=Mp(null,t,r,mn(r.type,e),n);break e}throw Error(F(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:mn(r,o),tf(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:mn(r,o),Lp(e,t,r,o,n);case 3:e:{if(by(t),e===null)throw Error(F(387));r=t.pendingProps,s=t.memoizedState,o=s.element,Xv(e,t),El(t,r,null,n);var i=t.memoizedState;if(r=i.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){o=Rs(Error(F(423)),t),t=jp(e,t,r,n,o);break e}else if(r!==o){o=Rs(Error(F(424)),t),t=jp(e,t,r,n,o);break e}else for(qt=Ir(t.stateNode.containerInfo.firstChild),Gt=t,Ne=!0,yn=null,n=Kv(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Es(),r===o){t=Zn(e,t,n);break e}_t(e,t,r,n)}t=t.child}return t;case 5:return Jv(t),e===null&&Yc(t),r=t.type,o=t.pendingProps,s=e!==null?e.memoizedProps:null,i=o.children,Vc(r,o)?i=null:s!==null&&Vc(r,s)&&(t.flags|=32),Ey(e,t),_t(e,t,i,n),t.child;case 6:return e===null&&Yc(t),null;case 13:return Py(e,t,n);case 4:return Cd(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=bs(t,null,r,n):_t(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:mn(r,o),Op(e,t,r,o,n);case 7:return _t(e,t,t.pendingProps,n),t.child;case 8:return _t(e,t,t.pendingProps.children,n),t.child;case 12:return _t(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,s=t.memoizedProps,i=o.value,Pe(wl,r._currentValue),r._currentValue=i,s!==null)if(_n(s.value,i)){if(s.children===o.children&&!Ft.current){t=Zn(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var a=s.dependencies;if(a!==null){i=s.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(s.tag===1){l=Gn(-1,n&-n),l.tag=2;var u=s.updateQueue;if(u!==null){u=u.shared;var f=u.pending;f===null?l.next=l:(l.next=f.next,f.next=l),u.pending=l}}s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),Xc(s.return,n,t),a.lanes|=n;break}l=l.next}}else if(s.tag===10)i=s.type===t.type?null:s.child;else if(s.tag===18){if(i=s.return,i===null)throw Error(F(341));i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),Xc(i,n,t),i=s.sibling}else i=s.child;if(i!==null)i.return=s;else for(i=s;i!==null;){if(i===t){i=null;break}if(s=i.sibling,s!==null){s.return=i.return,i=s;break}i=i.return}s=i}_t(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,ss(t,n),o=fn(o),r=r(o),t.flags|=1,_t(e,t,r,n),t.child;case 14:return r=t.type,o=mn(r,t.pendingProps),o=mn(r.type,o),Mp(e,t,r,o,n);case 15:return wy(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:mn(r,o),Ka(e,t),t.tag=1,Dt(r)?(e=!0,yl(t)):e=!1,ss(t,n),yy(t,r,o),Zc(t,r,o,n),nf(null,t,r,!0,e,n);case 19:return Ry(e,t,n);case 22:return _y(e,t,n)}throw Error(F(156,t.tag))};function By(e,t){return mv(e,t)}function Gw(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function un(e,t,n,r){return new Gw(e,t,n,r)}function Bd(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Kw(e){if(typeof e=="function")return Bd(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ad)return 11;if(e===ld)return 14}return 2}function Mr(e,t){var n=e.alternate;return n===null?(n=un(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ja(e,t,n,r,o,s){var i=2;if(r=e,typeof e=="function")Bd(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Ho:return yo(n.children,o,s,t);case id:i=8,o|=8;break;case Ec:return e=un(12,n,t,o|2),e.elementType=Ec,e.lanes=s,e;case bc:return e=un(13,n,t,o),e.elementType=bc,e.lanes=s,e;case Pc:return e=un(19,n,t,o),e.elementType=Pc,e.lanes=s,e;case Jg:return eu(n,o,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Yg:i=10;break e;case Xg:i=9;break e;case ad:i=11;break e;case ld:i=14;break e;case ur:i=16,r=null;break e}throw Error(F(130,e==null?e:typeof e,""))}return t=un(i,n,t,o),t.elementType=e,t.type=r,t.lanes=s,t}function yo(e,t,n,r){return e=un(7,e,r,t),e.lanes=n,e}function eu(e,t,n,r){return e=un(22,e,r,t),e.elementType=Jg,e.lanes=n,e.stateNode={isHidden:!1},e}function Yu(e,t,n){return e=un(6,e,null,t),e.lanes=n,e}function Xu(e,t,n){return t=un(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Yw(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Au(0),this.expirationTimes=Au(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Au(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Hd(e,t,n,r,o,s,i,a,l){return e=new Yw(e,t,n,a,l),t===1?(t=1,s===!0&&(t|=8)):t=0,s=un(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Rd(s),e}function Xw(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Bo,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Hy(e){if(!e)return Ur;e=e._reactInternals;e:{if(Ao(e)!==e||e.tag!==1)throw Error(F(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Dt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(F(171))}if(e.tag===1){var n=e.type;if(Dt(n))return Hv(e,n,t)}return t}function Wy(e,t,n,r,o,s,i,a,l){return e=Hd(n,r,!0,e,o,s,i,a,l),e.context=Hy(null),n=e.current,r=Et(),o=Or(n),s=Gn(r,o),s.callback=t??null,Ar(n,s,o),e.current.lanes=o,na(e,o,r),$t(e,r),e}function tu(e,t,n,r){var o=t.current,s=Et(),i=Or(o);return n=Hy(n),t.context===null?t.context=n:t.pendingContext=n,t=Gn(s,i),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Ar(o,t,i),e!==null&&(wn(e,o,i,s),Qa(e,o,i)),i}function Al(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Qp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Wd(e,t){Qp(e,t),(e=e.alternate)&&Qp(e,t)}function Jw(){return null}var Vy=typeof reportError=="function"?reportError:function(e){console.error(e)};function Vd(e){this._internalRoot=e}nu.prototype.render=Vd.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(F(409));tu(e,t,null,null)};nu.prototype.unmount=Vd.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Ro(function(){tu(null,e,null,null)}),t[Xn]=null}};function nu(e){this._internalRoot=e}nu.prototype.unstable_scheduleHydration=function(e){if(e){var t=_v();e={blockedOn:null,target:e,priority:t};for(var n=0;n<dr.length&&t!==0&&t<dr[n].priority;n++);dr.splice(n,0,e),n===0&&bv(e)}};function Qd(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ru(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function qp(){}function Zw(e,t,n,r,o){if(o){if(typeof r=="function"){var s=r;r=function(){var u=Al(i);s.call(u)}}var i=Wy(t,r,e,0,null,!1,!1,"",qp);return e._reactRootContainer=i,e[Xn]=i.current,Oi(e.nodeType===8?e.parentNode:e),Ro(),i}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var a=r;r=function(){var u=Al(l);a.call(u)}}var l=Hd(e,0,!1,null,null,!1,!1,"",qp);return e._reactRootContainer=l,e[Xn]=l.current,Oi(e.nodeType===8?e.parentNode:e),Ro(function(){tu(t,l,n,r)}),l}function ou(e,t,n,r,o){var s=n._reactRootContainer;if(s){var i=s;if(typeof o=="function"){var a=o;o=function(){var l=Al(i);a.call(l)}}tu(t,i,e,o)}else i=Zw(n,t,e,o,r);return Al(i)}xv=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=li(t.pendingLanes);n!==0&&(fd(t,n|1),$t(t,Be()),!(he&6)&&(Cs=Be()+500,Qr()))}break;case 13:Ro(function(){var r=Jn(e,1);if(r!==null){var o=Et();wn(r,e,1,o)}}),Wd(e,1)}};dd=function(e){if(e.tag===13){var t=Jn(e,134217728);if(t!==null){var n=Et();wn(t,e,134217728,n)}Wd(e,134217728)}};wv=function(e){if(e.tag===13){var t=Or(e),n=Jn(e,t);if(n!==null){var r=Et();wn(n,e,t,r)}Wd(e,t)}};_v=function(){return xe};Ev=function(e,t){var n=xe;try{return xe=e,t()}finally{xe=n}};Lc=function(e,t,n){switch(t){case"input":if(kc(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=Gl(r);if(!o)throw Error(F(90));ev(r),kc(r,o)}}}break;case"textarea":nv(e,n);break;case"select":t=n.value,t!=null&&ts(e,!!n.multiple,t,!1)}};uv=$d;cv=Ro;var e_={usingClientEntryPoint:!1,Events:[oa,qo,Gl,av,lv,$d]},Ks={findFiberByHostInstance:Zr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},t_={bundleType:Ks.bundleType,version:Ks.version,rendererPackageName:Ks.rendererPackageName,rendererConfig:Ks.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:nr.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=hv(e),e===null?null:e.stateNode},findFiberByHostInstance:Ks.findFiberByHostInstance||Jw,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 Aa=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Aa.isDisabled&&Aa.supportsFiber)try{Wl=Aa.inject(t_),On=Aa}catch{}}Yt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=e_;Yt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Qd(t))throw Error(F(200));return Xw(e,t,null,n)};Yt.createRoot=function(e,t){if(!Qd(e))throw Error(F(299));var n=!1,r="",o=Vy;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=Hd(e,1,!1,null,null,n,!1,r,o),e[Xn]=t.current,Oi(e.nodeType===8?e.parentNode:e),new Vd(t)};Yt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(F(188)):(e=Object.keys(e).join(","),Error(F(268,e)));return e=hv(t),e=e===null?null:e.stateNode,e};Yt.flushSync=function(e){return Ro(e)};Yt.hydrate=function(e,t,n){if(!ru(t))throw Error(F(200));return ou(null,e,t,!0,n)};Yt.hydrateRoot=function(e,t,n){if(!Qd(e))throw Error(F(405));var r=n!=null&&n.hydratedSources||null,o=!1,s="",i=Vy;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(i=n.onRecoverableError)),t=Wy(t,null,e,1,n??null,o,!1,s,i),e[Xn]=t.current,Oi(e),r)for(e=0;e<r.length;e++)n=r[e],o=n._getVersion,o=o(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new nu(t)};Yt.render=function(e,t,n){if(!ru(t))throw Error(F(200));return ou(null,e,t,!1,n)};Yt.unmountComponentAtNode=function(e){if(!ru(e))throw Error(F(40));return e._reactRootContainer?(Ro(function(){ou(null,null,e,!1,function(){e._reactRootContainer=null,e[Xn]=null})}),!0):!1};Yt.unstable_batchedUpdates=$d;Yt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!ru(n))throw Error(F(200));if(e==null||e._reactInternals===void 0)throw Error(F(38));return ou(e,t,n,!1,r)};Yt.version="18.3.1-next-f1338f8080-20240426";function Qy(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Qy)}catch(e){console.error(e)}}Qy(),Qg.exports=Yt;var su=Qg.exports,qy,Gp=su;qy=Gp.createRoot,Gp.hydrateRoot;var ci=typeof window<"u"?b.useLayoutEffect:b.useEffect;function Ju(e){const t=b.useRef({value:e,prev:null}),n=t.current.value;return e!==n&&(t.current={value:e,prev:n}),t.current.prev}function n_(e,t,n={},r={}){b.useEffect(()=>{if(!e.current||r.disabled||typeof IntersectionObserver!="function")return;const o=new IntersectionObserver(([s])=>{t(s)},n);return o.observe(e.current),()=>{o.disconnect()}},[t,n,r.disabled,e])}function r_(e){const t=b.useRef(null);return b.useImperativeHandle(e,()=>t.current,[]),t}var Gy=!1;function Bi(e){return e[e.length-1]}function o_(e){return typeof e=="function"}function br(e,t){return o_(e)?e(t):e}var s_=Object.prototype.hasOwnProperty,Kp=Object.prototype.propertyIsEnumerable,i_=()=>Object.create(null),Yr=(e,t)=>no(e,t,i_);function no(e,t,n=()=>({}),r=0){if(e===t)return e;if(r>500)return t;const o=t,s=Jp(e)&&Jp(o);if(!s&&!(ks(e)&&ks(o)))return o;const i=s?e:Yp(e);if(!i)return o;const a=s?o:Yp(o);if(!a)return o;const l=i.length,u=a.length,f=s?new Array(u):n();let c=0;for(let d=0;d<u;d++){const h=s?d:a[d],m=e[h],g=o[h];if(m===g){f[h]=m,(s?d<l:s_.call(e,h))&&c++;continue}if(m===null||g===null||typeof m!="object"||typeof g!="object"){f[h]=g;continue}const y=no(m,g,n,r+1);f[h]=y,y===m&&c++}return l===u&&c===l?e:f}function Yp(e){const t=Object.getOwnPropertyNames(e);for(const o of t)if(!Kp.call(e,o))return!1;const n=Object.getOwnPropertySymbols(e);if(n.length===0)return t;const r=t;for(const o of n){if(!Kp.call(e,o))return!1;r.push(o)}return r}function ks(e){if(!Xp(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const n=t.prototype;return!(!Xp(n)||!n.hasOwnProperty("isPrototypeOf"))}function Xp(e){return Object.prototype.toString.call(e)==="[object Object]"}function Jp(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function So(e,t,n){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let r=0,o=e.length;r<o;r++)if(!So(e[r],t[r],n))return!1;return!0}if(ks(e)&&ks(t)){const r=(n==null?void 0:n.ignoreUndefined)??!0;if(n!=null&&n.partial){for(const i in t)if((!r||t[i]!==void 0)&&!So(e[i],t[i],n))return!1;return!0}let o=0;if(!r)o=Object.keys(e).length;else for(const i in e)e[i]!==void 0&&o++;let s=0;for(const i in t)if((!r||t[i]!==void 0)&&(s++,s>o||!So(e[i],t[i],n)))return!1;return o===s}return!1}function Ts(e){let t,n;const r=new Promise((o,s)=>{t=o,n=s});return r.status="pending",r.resolve=o=>{r.status="resolved",r.value=o,t(o),e==null||e(o)},r.reject=o=>{r.status="rejected",n(o)},r}function Hi(e){return!!(e&&typeof e=="object"&&typeof e.then=="function")}function a_(e){return e.replace(/[\x00-\x1f\x7f]/g,"")}function Zp(e){let t;try{t=decodeURI(e)}catch{t=e.replaceAll(/%[0-9A-F]{2}/gi,n=>{try{return decodeURI(n)}catch{return n}})}return a_(t)}var l_=["http:","https:","mailto:","tel:"];function Nl(e,t){if(!e)return!1;try{const n=new URL(e);return!t.has(n.protocol)}catch{return!1}}function Ys(e){if(!e)return{path:e,handledProtocolRelativeURL:!1};if(!/[%\\\x00-\x1f\x7f]/.test(e)&&!e.startsWith("//"))return{path:e,handledProtocolRelativeURL:!1};const t=/%25|%5C/gi;let n=0,r="",o;for(;(o=t.exec(e))!==null;)r+=Zp(e.slice(n,o.index))+o[0],n=t.lastIndex;r=r+Zp(n?e.slice(n):e);let s=!1;return r.startsWith("//")&&(s=!0,r="/"+r.replace(/^\/+/,"")),{path:r,handledProtocolRelativeURL:s}}function u_(e){return/\s|[^\u0000-\u007F]/.test(e)?e.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):e}function c_(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function Kn(){throw new Error("Invariant failed")}function Wi(e){const t=new Map;let n,r;const o=s=>{s.next&&(s.prev?(s.prev.next=s.next,s.next.prev=s.prev,s.next=void 0,r&&(r.next=s,s.prev=r)):(s.next.prev=void 0,n=s.next,s.next=void 0,r&&(s.prev=r,r.next=s)),r=s)};return{get(s){const i=t.get(s);if(i)return o(i),i.value},set(s,i){if(t.size>=e&&n){const l=n;t.delete(l.key),l.next&&(n=l.next,l.next.prev=void 0),l===r&&(r=void 0)}const a=t.get(s);if(a)a.value=i,o(a);else{const l={key:s,value:i,prev:r};r&&(r.next=l),r=l,n||(n=l),t.set(s,l)}},clear(){t.clear(),n=void 0,r=void 0}}}var ro=4,Ky=5;function f_(e){const t=e.indexOf("{");if(t===-1)return null;const n=e.indexOf("}",t);return n===-1||t+1>=e.length?null:[t,n]}function qd(e,t,n=new Uint16Array(6)){const r=e.indexOf("/",t),o=r===-1?e.length:r,s=e.substring(t,o);if(!s||!s.includes("$"))return n[0]=0,n[1]=t,n[2]=t,n[3]=o,n[4]=o,n[5]=o,n;if(s==="$"){const a=e.length;return n[0]=2,n[1]=t,n[2]=t,n[3]=a,n[4]=a,n[5]=a,n}if(s.charCodeAt(0)===36)return n[0]=1,n[1]=t,n[2]=t+1,n[3]=o,n[4]=o,n[5]=o,n;const i=f_(s);if(i){const[a,l]=i,u=s.charCodeAt(a+1);if(u===45){if(a+2<s.length&&s.charCodeAt(a+2)===36){const f=a+3,c=l;if(f<c)return n[0]=3,n[1]=t+a,n[2]=t+f,n[3]=t+c,n[4]=t+l+1,n[5]=o,n}}else if(u===36){const f=a+1,c=a+2;return c===l?(n[0]=2,n[1]=t+a,n[2]=t+f,n[3]=t+c,n[4]=t+l+1,n[5]=e.length,n):(n[0]=1,n[1]=t+a,n[2]=t+c,n[3]=t+l,n[4]=t+l+1,n[5]=o,n)}}return n[0]=0,n[1]=t,n[2]=t,n[3]=o,n[4]=o,n[5]=o,n}function iu(e,t,n,r,o,s,i){var l,u,f,c,d,h,m,g,y,p,v,S,w;i==null||i(n);let a=r;{const _=n.fullPath??n.from,T=_.length,I=((l=n.options)==null?void 0:l.caseSensitive)??e,P=!!((f=(u=n.options)==null?void 0:u.params)!=null&&f.parse&&((d=(c=n.options)==null?void 0:c.skipRouteOnParseError)!=null&&d.params));for(;a<T;){const E=qd(_,a,t);let A;const L=a,z=E[5];switch(a=z+1,s++,E[0]){case 0:{const U=_.substring(E[2],E[3]);if(I){const B=(h=o.static)==null?void 0:h.get(U);if(B)A=B;else{o.static??(o.static=new Map);const V=oo(n.fullPath??n.from);V.parent=o,V.depth=s,A=V,o.static.set(U,V)}}else{const B=U.toLowerCase(),V=(m=o.staticInsensitive)==null?void 0:m.get(B);if(V)A=V;else{o.staticInsensitive??(o.staticInsensitive=new Map);const W=oo(n.fullPath??n.from);W.parent=o,W.depth=s,A=W,o.staticInsensitive.set(B,W)}}break}case 1:{const U=_.substring(L,E[1]),B=_.substring(E[4],z),V=I&&!!(U||B),W=U?V?U:U.toLowerCase():void 0,N=B?V?B:B.toLowerCase():void 0,j=!P&&((g=o.dynamic)==null?void 0:g.find(O=>!O.skipOnParamError&&O.caseSensitive===V&&O.prefix===W&&O.suffix===N));if(j)A=j;else{const O=ec(1,n.fullPath??n.from,V,W,N);A=O,O.depth=s,O.parent=o,o.dynamic??(o.dynamic=[]),o.dynamic.push(O)}break}case 3:{const U=_.substring(L,E[1]),B=_.substring(E[4],z),V=I&&!!(U||B),W=U?V?U:U.toLowerCase():void 0,N=B?V?B:B.toLowerCase():void 0,j=!P&&((y=o.optional)==null?void 0:y.find(O=>!O.skipOnParamError&&O.caseSensitive===V&&O.prefix===W&&O.suffix===N));if(j)A=j;else{const O=ec(3,n.fullPath??n.from,V,W,N);A=O,O.parent=o,O.depth=s,o.optional??(o.optional=[]),o.optional.push(O)}break}case 2:{const U=_.substring(L,E[1]),B=_.substring(E[4],z),V=I&&!!(U||B),W=U?V?U:U.toLowerCase():void 0,N=B?V?B:B.toLowerCase():void 0,j=ec(2,n.fullPath??n.from,V,W,N);A=j,j.parent=o,j.depth=s,o.wildcard??(o.wildcard=[]),o.wildcard.push(j)}}o=A}if(P&&n.children&&!n.isRoot&&n.id&&n.id.charCodeAt(n.id.lastIndexOf("/")+1)===95){const E=oo(n.fullPath??n.from);E.kind=Ky,E.parent=o,s++,E.depth=s,o.pathless??(o.pathless=[]),o.pathless.push(E),o=E}const k=(n.path||!n.children)&&!n.isRoot;if(k&&_.endsWith("/")){const E=oo(n.fullPath??n.from);E.kind=ro,E.parent=o,s++,E.depth=s,o.index=E,o=E}o.parse=((v=(p=n.options)==null?void 0:p.params)==null?void 0:v.parse)??null,o.skipOnParamError=P,o.parsingPriority=((w=(S=n.options)==null?void 0:S.skipRouteOnParseError)==null?void 0:w.priority)??0,k&&!o.route&&(o.route=n,o.fullPath=n.fullPath??n.from)}if(n.children)for(const _ of n.children)iu(e,t,_,a,o,s,i)}function Zu(e,t){if(e.skipOnParamError&&!t.skipOnParamError)return-1;if(!e.skipOnParamError&&t.skipOnParamError)return 1;if(e.skipOnParamError&&t.skipOnParamError&&(e.parsingPriority||t.parsingPriority))return t.parsingPriority-e.parsingPriority;if(e.prefix&&t.prefix&&e.prefix!==t.prefix){if(e.prefix.startsWith(t.prefix))return-1;if(t.prefix.startsWith(e.prefix))return 1}if(e.suffix&&t.suffix&&e.suffix!==t.suffix){if(e.suffix.endsWith(t.suffix))return-1;if(t.suffix.endsWith(e.suffix))return 1}return e.prefix&&!t.prefix?-1:!e.prefix&&t.prefix?1:e.suffix&&!t.suffix?-1:!e.suffix&&t.suffix?1:e.caseSensitive&&!t.caseSensitive?-1:!e.caseSensitive&&t.caseSensitive?1:0}function fr(e){var t,n,r;if(e.pathless)for(const o of e.pathless)fr(o);if(e.static)for(const o of e.static.values())fr(o);if(e.staticInsensitive)for(const o of e.staticInsensitive.values())fr(o);if((t=e.dynamic)!=null&&t.length){e.dynamic.sort(Zu);for(const o of e.dynamic)fr(o)}if((n=e.optional)!=null&&n.length){e.optional.sort(Zu);for(const o of e.optional)fr(o)}if((r=e.wildcard)!=null&&r.length){e.wildcard.sort(Zu);for(const o of e.wildcard)fr(o)}}function oo(e){return{kind:0,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:e,parent:null,parse:null,skipOnParamError:!1,parsingPriority:0}}function ec(e,t,n,r,o){return{kind:e,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:t,parent:null,parse:null,skipOnParamError:!1,parsingPriority:0,caseSensitive:n,prefix:r,suffix:o}}function d_(e,t){const n=oo("/"),r=new Uint16Array(6);for(const o of e)iu(!1,r,o,1,n,0);fr(n),t.masksTree=n,t.flatCache=Wi(1e3)}function h_(e,t){e||(e="/");const n=t.flatCache.get(e);if(n)return n;const r=Gd(e,t.masksTree);return t.flatCache.set(e,r),r}function p_(e,t,n,r,o){e||(e="/"),r||(r="/");const s=t?`case\0${e}`:e;let i=o.singleCache.get(s);return i||(i=oo("/"),iu(t,new Uint16Array(6),{from:e},1,i,0),o.singleCache.set(s,i)),Gd(r,i,n)}function m_(e,t,n=!1){const r=n?e:`nofuzz\0${e}`,o=t.matchCache.get(r);if(o!==void 0)return o;e||(e="/");let s;try{s=Gd(e,t.segmentTree,n)}catch(i){if(i instanceof URIError)s=null;else throw i}return s&&(s.branch=y_(s.route)),t.matchCache.set(r,s),s}function g_(e){return e==="/"?e:e.replace(/\/{1,}$/,"")}function v_(e,t=!1,n){const r=oo(e.fullPath),o=new Uint16Array(6),s={},i={};let a=0;return iu(t,o,e,1,r,0,l=>{if(n==null||n(l,a),l.id in s&&Kn(),s[l.id]=l,a!==0&&l.path){const u=g_(l.fullPath);(!i[u]||l.fullPath.endsWith("/"))&&(i[u]=l)}a++}),fr(r),{processedTree:{segmentTree:r,singleCache:Wi(1e3),matchCache:Wi(1e3),flatCache:null,masksTree:null},routesById:s,routesByPath:i}}function Gd(e,t,n=!1){const r=e.split("/"),o=x_(e,r,t,n);if(!o)return null;const[s]=Yy(e,r,o);return{route:o.node.route,rawParams:s,parsedParams:o.parsedParams}}function Yy(e,t,n){var f,c,d,h,m,g,y,p,v,S;const r=S_(n.node);let o=null;const s=Object.create(null);let i=((f=n.extract)==null?void 0:f.part)??0,a=((c=n.extract)==null?void 0:c.node)??0,l=((d=n.extract)==null?void 0:d.path)??0,u=((h=n.extract)==null?void 0:h.segment)??0;for(;a<r.length;i++,a++,l++,u++){const w=r[a];if(w.kind===ro)break;if(w.kind===Ky){u--,i--,l--;continue}const _=t[i],T=l;if(_&&(l+=_.length),w.kind===1){o??(o=n.node.fullPath.split("/"));const I=o[u],P=((m=w.prefix)==null?void 0:m.length)??0;if(I.charCodeAt(P)===123){const k=((g=w.suffix)==null?void 0:g.length)??0,E=I.substring(P+2,I.length-k-1),A=_.substring(P,_.length-k);s[E]=decodeURIComponent(A)}else{const k=I.substring(1);s[k]=decodeURIComponent(_)}}else if(w.kind===3){if(n.skipped&1<<a){i--,l=T-1;continue}o??(o=n.node.fullPath.split("/"));const I=o[u],P=((y=w.prefix)==null?void 0:y.length)??0,k=((p=w.suffix)==null?void 0:p.length)??0,E=I.substring(P+3,I.length-k-1),A=w.suffix||w.prefix?_.substring(P,_.length-k):_;A&&(s[E]=decodeURIComponent(A))}else if(w.kind===2){const I=w,P=e.substring(T+(((v=I.prefix)==null?void 0:v.length)??0),e.length-(((S=I.suffix)==null?void 0:S.length)??0)),k=decodeURIComponent(P);s["*"]=k,s._splat=k;break}}return n.rawParams&&Object.assign(s,n.rawParams),[s,{part:i,node:a,path:l,segment:u}]}function y_(e){const t=[e];for(;e.parentRoute;)e=e.parentRoute,t.push(e);return t.reverse(),t}function S_(e){const t=Array(e.depth+1);do t[e.depth]=e,e=e.parent;while(e);return t}function x_(e,t,n,r){if(e==="/"&&n.index)return{node:n.index,skipped:0};const o=!Bi(t),s=o&&e!=="/",i=t.length-(o?1:0),a=[{node:n,index:1,skipped:0,depth:1,statics:1,dynamics:0,optionals:0}];let l=null,u=null,f=null;for(;a.length;){const c=a.pop(),{node:d,index:h,skipped:m,depth:g,statics:y,dynamics:p,optionals:v}=c;let{extract:S,rawParams:w,parsedParams:_}=c;if(d.skipOnParamError){if(!tc(e,t,c))continue;w=c.rawParams,S=c.extract,_=c.parsedParams}r&&d.route&&d.kind!==ro&&Xs(u,c)&&(u=c);const T=h===i;if(T&&(d.route&&!s&&Xs(f,c)&&(f=c),!d.optional&&!d.wildcard&&!d.index&&!d.pathless))continue;const I=T?void 0:t[h];let P;if(T&&d.index){const k={node:d.index,index:h,skipped:m,depth:g+1,statics:y,dynamics:p,optionals:v,extract:S,rawParams:w,parsedParams:_};let E=!0;if(d.index.skipOnParamError&&(tc(e,t,k)||(E=!1)),E){if(y===i&&!p&&!v&&!m)return k;Xs(f,k)&&(f=k)}}if(d.wildcard&&Xs(l,c))for(const k of d.wildcard){const{prefix:E,suffix:A}=k;if(E&&(T||!(k.caseSensitive?I:P??(P=I.toLowerCase())).startsWith(E)))continue;if(A){if(T)continue;const z=t.slice(h).join("/").slice(-A.length);if((k.caseSensitive?z:z.toLowerCase())!==A)continue}const L={node:k,index:i,skipped:m,depth:g,statics:y,dynamics:p,optionals:v,extract:S,rawParams:w,parsedParams:_};if(!(k.skipOnParamError&&!tc(e,t,L))){l=L;break}}if(d.optional){const k=m|1<<g,E=g+1;for(let A=d.optional.length-1;A>=0;A--){const L=d.optional[A];a.push({node:L,index:h,skipped:k,depth:E,statics:y,dynamics:p,optionals:v,extract:S,rawParams:w,parsedParams:_})}if(!T)for(let A=d.optional.length-1;A>=0;A--){const L=d.optional[A],{prefix:z,suffix:U}=L;if(z||U){const B=L.caseSensitive?I:P??(P=I.toLowerCase());if(z&&!B.startsWith(z)||U&&!B.endsWith(U))continue}a.push({node:L,index:h+1,skipped:m,depth:E,statics:y,dynamics:p,optionals:v+1,extract:S,rawParams:w,parsedParams:_})}}if(!T&&d.dynamic&&I)for(let k=d.dynamic.length-1;k>=0;k--){const E=d.dynamic[k],{prefix:A,suffix:L}=E;if(A||L){const z=E.caseSensitive?I:P??(P=I.toLowerCase());if(A&&!z.startsWith(A)||L&&!z.endsWith(L))continue}a.push({node:E,index:h+1,skipped:m,depth:g+1,statics:y,dynamics:p+1,optionals:v,extract:S,rawParams:w,parsedParams:_})}if(!T&&d.staticInsensitive){const k=d.staticInsensitive.get(P??(P=I.toLowerCase()));k&&a.push({node:k,index:h+1,skipped:m,depth:g+1,statics:y+1,dynamics:p,optionals:v,extract:S,rawParams:w,parsedParams:_})}if(!T&&d.static){const k=d.static.get(I);k&&a.push({node:k,index:h+1,skipped:m,depth:g+1,statics:y+1,dynamics:p,optionals:v,extract:S,rawParams:w,parsedParams:_})}if(d.pathless){const k=g+1;for(let E=d.pathless.length-1;E>=0;E--){const A=d.pathless[E];a.push({node:A,index:h,skipped:m,depth:k,statics:y,dynamics:p,optionals:v,extract:S,rawParams:w,parsedParams:_})}}}if(f&&l)return Xs(l,f)?f:l;if(f)return f;if(l)return l;if(r&&u){let c=u.index;for(let h=0;h<u.index;h++)c+=t[h].length;const d=c===e.length?"/":e.slice(c);return u.rawParams??(u.rawParams=Object.create(null)),u.rawParams["**"]=decodeURIComponent(d),u}return null}function tc(e,t,n){try{const[r,o]=Yy(e,t,n);n.rawParams=r,n.extract=o;const s=n.node.parse(r);return n.parsedParams=Object.assign(Object.create(null),n.parsedParams,s),!0}catch{return null}}function Xs(e,t){return e?t.statics>e.statics||t.statics===e.statics&&(t.dynamics>e.dynamics||t.dynamics===e.dynamics&&(t.optionals>e.optionals||t.optionals===e.optionals&&((t.node.kind===ro)>(e.node.kind===ro)||t.node.kind===ro==(e.node.kind===ro)&&t.depth>e.depth))):!0}function Za(e){return Kd(e.filter(t=>t!==void 0).join("/"))}function Kd(e){return e.replace(/\/{2,}/g,"/")}function Xy(e){return e==="/"?e:e.replace(/^\/{1,}/,"")}function Lr(e){const t=e.length;return t>1&&e[t-1]==="/"?e.replace(/\/{1,}$/,""):e}function Jy(e){return Lr(Xy(e))}function Ol(e,t){return e!=null&&e.endsWith("/")&&e!=="/"&&e!==`${t}/`?e.slice(0,-1):e}function w_(e,t,n){return Ol(e,n)===Ol(t,n)}function __({base:e,to:t,trailingSlash:n="never",cache:r}){const o=t.startsWith("/"),s=!o&&t===".";let i;if(r){i=o?t:s?e:e+"\0"+t;const c=r.get(i);if(c)return c}let a;if(s)a=e.split("/");else if(o)a=t.split("/");else{for(a=e.split("/");a.length>1&&Bi(a)==="";)a.pop();const c=t.split("/");for(let d=0,h=c.length;d<h;d++){const m=c[d];m===""?d?d===h-1&&a.push(m):a=[m]:m===".."?a.pop():m==="."||a.push(m)}}a.length>1&&(Bi(a)===""?n==="never"&&a.pop():n==="always"&&a.push(""));let l,u="";for(let c=0;c<a.length;c++){c>0&&(u+="/");const d=a[c];if(!d)continue;l=qd(d,0,l);const h=l[0];if(h===0){u+=d;continue}const m=l[5],g=d.substring(0,l[1]),y=d.substring(l[4],m),p=d.substring(l[2],l[3]);h===1?u+=g||y?`${g}{$${p}}${y}`:`$${p}`:h===2?u+=g||y?`${g}{$}${y}`:"$":u+=`${g}{-$${p}}${y}`}u=Kd(u);const f=u||"/";return i&&r&&r.set(i,f),f}function E_(e){const t=new Map(e.map(o=>[encodeURIComponent(o),o])),n=Array.from(t.keys()).map(o=>o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),r=new RegExp(n,"g");return o=>o.replace(r,s=>t.get(s)??s)}function nc(e,t,n){const r=t[e];return typeof r!="string"?r:e==="_splat"?/^[a-zA-Z0-9\-._~!/]*$/.test(r)?r:r.split("/").map(o=>tm(o,n)).join("/"):tm(r,n)}function em({path:e,params:t,decoder:n,...r}){let o=!1;const s=Object.create(null);if(!e||e==="/")return{interpolatedPath:"/",usedParams:s,isMissingParams:o};if(!e.includes("$"))return{interpolatedPath:e,usedParams:s,isMissingParams:o};const i=e.length;let a=0,l,u="";for(;a<i;){const f=a;l=qd(e,f,l);const c=l[5];if(a=c+1,f===c)continue;const d=l[0];if(d===0){u+="/"+e.substring(f,c);continue}if(d===2){const h=t._splat;s._splat=h,s["*"]=h;const m=e.substring(f,l[1]),g=e.substring(l[4],c);if(!h){o=!0,(m||g)&&(u+="/"+m+g);continue}const y=nc("_splat",t,n);u+="/"+m+y+g;continue}if(d===1){const h=e.substring(l[2],l[3]);!o&&!(h in t)&&(o=!0),s[h]=t[h];const m=e.substring(f,l[1]),g=e.substring(l[4],c),y=nc(h,t,n)??"undefined";u+="/"+m+y+g;continue}if(d===3){const h=e.substring(l[2],l[3]),m=t[h];if(m==null)continue;s[h]=m;const g=e.substring(f,l[1]),y=e.substring(l[4],c),p=nc(h,t,n)??"";u+="/"+g+p+y;continue}}return e.endsWith("/")&&(u+="/"),{usedParams:s,interpolatedPath:u||"/",isMissingParams:o}}function tm(e,t){const n=encodeURIComponent(e);return(t==null?void 0:t(n))??n}function bt(e){return!!(e!=null&&e.isNotFound)}function b_(){try{return typeof window<"u"&&typeof window.sessionStorage=="object"?window.sessionStorage:void 0}catch{return}}var P_="tsr-scroll-restoration-v1_3";function R_(){const e=b_();if(!e)return null;let t={};try{const r=JSON.parse(e.getItem("tsr-scroll-restoration-v1_3")||"{}");ks(r)&&(t=r)}catch{}return{get state(){return t},set:r=>{t=br(r,t)||t},persist:()=>{try{e.setItem(P_,JSON.stringify(t))}catch{}}}}var nm=R_(),C_=e=>e.state.__TSR_key||e.href;function k_(e){const t=[];let n;for(;n=e.parentNode;)t.push(`${e.tagName}:nth-child(${Array.prototype.indexOf.call(n.children,e)+1})`),e=n;return`${t.reverse().join(" > ")}`.toLowerCase()}var Na=!1,Js="window",rm="data-scroll-restoration-id";function T_(e,t){if(!nm)return;const n=nm;if((e.options.scrollRestoration??!1)&&(e.isScrollRestoring=!0),e.isScrollRestorationSetup||!n)return;e.isScrollRestorationSetup=!0,Na=!1;const r=e.options.getScrollRestorationKey||C_,o=new Map;window.history.scrollRestoration="manual";const s=a=>{if(!(Na||!e.isScrollRestoring))if(a.target===document||a.target===window)o.set(Js,{scrollX:window.scrollX||0,scrollY:window.scrollY||0});else{const l=a.target;o.set(l,{scrollX:l.scrollLeft||0,scrollY:l.scrollTop||0})}},i=a=>{var u;if(!e.isScrollRestoring||!a||o.size===0||!n)return;const l=(u=n.state)[a]||(u[a]={});for(const[f,c]of o){let d;if(f===Js)d=Js;else if(f.isConnected){const h=f.getAttribute(rm);d=h?`[${rm}="${h}"]`:k_(f)}d&&(l[d]=c)}};document.addEventListener("scroll",s,!0),e.subscribe("onBeforeLoad",a=>{i(a.fromLocation?r(a.fromLocation):void 0),o.clear()}),window.addEventListener("pagehide",()=>{i(r(e.stores.resolvedLocation.state??e.stores.location.state)),n.persist()}),e.subscribe("onRendered",a=>{var c;const l=r(a.toLocation),u=e.options.scrollRestorationBehavior,f=e.options.scrollToTopSelectors;if(o.clear(),!e.resetNextScroll){e.resetNextScroll=!0;return}if(!(typeof e.options.scrollRestoration=="function"&&!e.options.scrollRestoration({location:e.latestLocation}))){Na=!0;try{const d=e.isScrollRestoring?n.state[l]:void 0;let h=!1;if(d)for(const m in d){const g=d[m];if(!ks(g))continue;const{scrollX:y,scrollY:p}=g;if(!(!Number.isFinite(y)||!Number.isFinite(p))){if(m===Js)window.scrollTo({top:p,left:y,behavior:u}),h=!0;else if(m){let v;try{v=document.querySelector(m)}catch{continue}v&&(v.scrollLeft=y,v.scrollTop=p,h=!0)}}}if(!h){const m=e.history.location.hash.slice(1);if(m){const g=((c=window.history.state)==null?void 0:c.__hashScrollIntoViewOptions)??!0;if(g){const y=document.getElementById(m);y&&y.scrollIntoView(g)}}else{const g={top:0,left:0,behavior:u};if(window.scrollTo(g),f)for(const y of f){if(y===Js)continue;const p=typeof y=="function"?y():document.querySelector(y);p&&p.scrollTo(g)}}}}finally{Na=!1}e.isScrollRestoring&&n.set(d=>(d[l]||(d[l]={}),d))}})}function I_(e,t=String){const n=new URLSearchParams;for(const r in e){const o=e[r];o!==void 0&&n.set(r,t(o))}return n.toString()}function rc(e){return e?e==="false"?!1:e==="true"?!0:+e*0===0&&+e+""===e?+e:e:""}function A_(e){const t=new URLSearchParams(e),n=Object.create(null);for(const[r,o]of t.entries()){const s=n[r];s==null?n[r]=rc(o):Array.isArray(s)?s.push(rc(o)):n[r]=[s,rc(o)]}return n}var N_=M_(JSON.parse),O_=L_(JSON.stringify,JSON.parse);function M_(e){return t=>{t[0]==="?"&&(t=t.substring(1));const n=A_(t);for(const r in n){const o=n[r];if(typeof o=="string")try{n[r]=e(o)}catch{}}return n}}function L_(e,t){const n=typeof t=="function";function r(o){if(typeof o=="object"&&o!==null)try{return e(o)}catch{}else if(n&&typeof o=="string")try{return t(o),e(o)}catch{}return o}return o=>{const s=I_(o,r);return s?`?${s}`:""}}var xo="__root__";function j_(e){if(e.statusCode=e.statusCode||e.code||307,!e._builtLocation&&!e.reloadDocument&&typeof e.href=="string")try{new URL(e.href),e.reloadDocument=!0}catch{}const t=new Headers(e.headers);e.href&&t.get("Location")===null&&t.set("Location",e.href);const n=new Response(null,{status:e.statusCode,headers:t});if(n.options=e,e.throw)throw n;return n}function jt(e){return e instanceof Response&&!!e.options}function F_(e){return{input:({url:t})=>{for(const n of e)t=mf(n,t);return t},output:({url:t})=>{for(let n=e.length-1;n>=0;n--)t=Zy(e[n],t);return t}}}function D_(e){const t=Jy(e.basepath),n=`/${t}`,r=`${n}/`,o=e.caseSensitive?n:n.toLowerCase(),s=e.caseSensitive?r:r.toLowerCase();return{input:({url:i})=>{const a=e.caseSensitive?i.pathname:i.pathname.toLowerCase();return a===o?i.pathname="/":a.startsWith(s)&&(i.pathname=i.pathname.slice(n.length)),i},output:({url:i})=>(i.pathname=Za(["/",t,i.pathname]),i)}}function mf(e,t){var r;const n=(r=e==null?void 0:e.input)==null?void 0:r.call(e,{url:t});if(n){if(typeof n=="string")return new URL(n);if(n instanceof URL)return n}return t}function Zy(e,t){var r;const n=(r=e==null?void 0:e.output)==null?void 0:r.call(e,{url:t});if(n){if(typeof n=="string")return new URL(n);if(n instanceof URL)return n}return t}function $_(e,t){const{createMutableStore:n,createReadonlyStore:r,batch:o,init:s}=t,i=new Map,a=new Map,l=new Map,u=n(e.status),f=n(e.loadedAt),c=n(e.isLoading),d=n(e.isTransitioning),h=n(e.location),m=n(e.resolvedLocation),g=n(e.statusCode),y=n(e.redirect),p=n([]),v=n([]),S=n([]),w=r(()=>oc(i,p.state)),_=r(()=>oc(a,v.state)),T=r(()=>oc(l,S.state)),I=r(()=>p.state[0]),P=r(()=>p.state.some(W=>{var N;return((N=i.get(W))==null?void 0:N.state.status)==="pending"})),k=r(()=>{var W;return{locationHref:h.state.href,resolvedLocationHref:(W=m.state)==null?void 0:W.href,status:u.state}}),E=r(()=>({status:u.state,loadedAt:f.state,isLoading:c.state,isTransitioning:d.state,matches:w.state,location:h.state,resolvedLocation:m.state,statusCode:g.state,redirect:y.state})),A=Wi(64);function L(W){let N=A.get(W);return N||(N=r(()=>{const j=p.state;for(const O of j){const M=i.get(O);if(M&&M.routeId===W)return M.state}}),A.set(W,N)),N}const z={status:u,loadedAt:f,isLoading:c,isTransitioning:d,location:h,resolvedLocation:m,statusCode:g,redirect:y,matchesId:p,pendingMatchesId:v,cachedMatchesId:S,activeMatchesSnapshot:w,pendingMatchesSnapshot:_,cachedMatchesSnapshot:T,firstMatchId:I,hasPendingMatches:P,matchRouteReactivity:k,activeMatchStoresById:i,pendingMatchStoresById:a,cachedMatchStoresById:l,__store:E,getMatchStoreByRouteId:L,setActiveMatches:U,setPendingMatches:B,setCachedMatches:V};U(e.matches),s==null||s(z);function U(W){sc(W,i,p,n,o)}function B(W){sc(W,a,v,n,o)}function V(W){sc(W,l,S,n,o)}return z}function oc(e,t){const n=[];for(const r of t){const o=e.get(r);o&&n.push(o.state)}return n}function sc(e,t,n,r,o){const s=e.map(a=>a.id),i=new Set(s);o(()=>{for(const a of t.keys())i.has(a)||t.delete(a);for(const a of e){const l=t.get(a.id);if(!l){const u=r(a);u.routeId=a.routeId,t.set(a.id,u);continue}l.routeId=a.routeId,l.state!==a&&l.setState(()=>a)}c_(n.state,s)||n.setState(()=>s)})}var gf=e=>{var t;if(!e.rendered)return e.rendered=!0,(t=e.onReady)==null?void 0:t.call(e)},U_=e=>e.stores.matchesId.state.some(t=>{var n;return(n=e.stores.activeMatchStoresById.get(t))==null?void 0:n.state._forcePending}),au=(e,t)=>!!(e.preload&&!e.router.stores.activeMatchStoresById.has(t)),wo=(e,t,n=!0)=>{const r={...e.router.options.context??{}},o=n?t:t-1;for(let s=0;s<=o;s++){const i=e.matches[s];if(!i)continue;const a=e.router.getMatch(i.id);a&&Object.assign(r,a.__routeContext,a.__beforeLoadContext)}return r},om=(e,t)=>{if(!e.matches.length)return;const n=t.routeId,r=e.matches.findIndex(i=>i.routeId===e.router.routeTree.id),o=r>=0?r:0;let s=n?e.matches.findIndex(i=>i.routeId===n):e.firstBadMatchIndex??e.matches.length-1;s<0&&(s=o);for(let i=s;i>=0;i--){const a=e.matches[i];if(e.router.looseRoutesById[a.routeId].options.notFoundComponent)return i}return n?s:o},Pr=(e,t,n)=>{var r,o,s;if(!(!jt(n)&&!bt(n)))throw jt(n)&&n.redirectHandled&&!n.options.reloadDocument||(t&&((r=t._nonReactive.beforeLoadPromise)==null||r.resolve(),(o=t._nonReactive.loaderPromise)==null||o.resolve(),t._nonReactive.beforeLoadPromise=void 0,t._nonReactive.loaderPromise=void 0,t._nonReactive.error=n,e.updateMatch(t.id,i=>({...i,status:jt(n)?"redirected":i.status==="pending"?"success":i.status,context:wo(e,t.index),isFetching:!1,error:n})),bt(n)&&!n.routeId&&(n.routeId=t.routeId),(s=t._nonReactive.loadPromise)==null||s.resolve()),jt(n)&&(e.rendered=!0,n.options._fromLocation=e.location,n.redirectHandled=!0,n=e.router.resolveRedirect(n))),n},e0=(e,t)=>{const n=e.router.getMatch(t);return!!(!n||n._nonReactive.dehydrated)},sm=(e,t,n)=>{const r=wo(e,n);e.updateMatch(t,o=>({...o,context:r}))},Zs=(e,t,n,r)=>{var a,l;const{id:o,routeId:s}=e.matches[t],i=e.router.looseRoutesById[s];if(n instanceof Promise)throw n;n.routerCode=r,e.firstBadMatchIndex??(e.firstBadMatchIndex=t),Pr(e,e.router.getMatch(o),n);try{(l=(a=i.options).onError)==null||l.call(a,n)}catch(u){n=u,Pr(e,e.router.getMatch(o),n)}e.updateMatch(o,u=>{var f,c;return(f=u._nonReactive.beforeLoadPromise)==null||f.resolve(),u._nonReactive.beforeLoadPromise=void 0,(c=u._nonReactive.loadPromise)==null||c.resolve(),{...u,error:n,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController}}),!e.preload&&!jt(n)&&!bt(n)&&(e.serialError??(e.serialError=n))},t0=(e,t,n,r)=>{var s;if(r._nonReactive.pendingTimeout!==void 0)return;const o=n.options.pendingMs??e.router.options.defaultPendingMs;if(e.onReady&&!au(e,t)&&(n.options.loader||n.options.beforeLoad||r0(n))&&typeof o=="number"&&o!==1/0&&(n.options.pendingComponent??((s=e.router.options)==null?void 0:s.defaultPendingComponent))){const i=setTimeout(()=>{gf(e)},o);r._nonReactive.pendingTimeout=i}},z_=(e,t,n)=>{const r=e.router.getMatch(t);if(!r._nonReactive.beforeLoadPromise&&!r._nonReactive.loaderPromise)return;t0(e,t,n,r);const o=()=>{const s=e.router.getMatch(t);s.preload&&(s.status==="redirected"||s.status==="notFound")&&Pr(e,s,s.error)};return r._nonReactive.beforeLoadPromise?r._nonReactive.beforeLoadPromise.then(o):o()},B_=(e,t,n,r)=>{const o=e.router.getMatch(t);let s=o._nonReactive.loadPromise;o._nonReactive.loadPromise=Ts(()=>{s==null||s.resolve(),s=void 0});const{paramsError:i,searchError:a}=o;i&&Zs(e,n,i,"PARSE_PARAMS"),a&&Zs(e,n,a,"VALIDATE_SEARCH"),t0(e,t,r,o);const l=new AbortController;let u=!1;const f=()=>{u||(u=!0,e.updateMatch(t,w=>({...w,isFetching:"beforeLoad",fetchCount:w.fetchCount+1,abortController:l})))},c=()=>{var w;(w=o._nonReactive.beforeLoadPromise)==null||w.resolve(),o._nonReactive.beforeLoadPromise=void 0,e.updateMatch(t,_=>({..._,isFetching:!1}))};if(!r.options.beforeLoad){e.router.batch(()=>{f(),c()});return}o._nonReactive.beforeLoadPromise=Ts();const d={...wo(e,n,!1),...o.__routeContext},{search:h,params:m,cause:g}=o,y=au(e,t),p={search:h,abortController:l,params:m,preload:y,context:d,location:e.location,navigate:w=>e.router.navigate({...w,_fromLocation:e.location}),buildLocation:e.router.buildLocation,cause:y?"preload":g,matches:e.matches,routeId:r.id,...e.router.options.additionalContext},v=w=>{if(w===void 0){e.router.batch(()=>{f(),c()});return}(jt(w)||bt(w))&&(f(),Zs(e,n,w,"BEFORE_LOAD")),e.router.batch(()=>{f(),e.updateMatch(t,_=>({..._,__beforeLoadContext:w})),c()})};let S;try{if(S=r.options.beforeLoad(p),Hi(S))return f(),S.catch(w=>{Zs(e,n,w,"BEFORE_LOAD")}).then(v)}catch(w){f(),Zs(e,n,w,"BEFORE_LOAD")}v(S)},H_=(e,t)=>{const{id:n,routeId:r}=e.matches[t],o=e.router.looseRoutesById[r],s=()=>a(),i=()=>B_(e,n,t,o),a=()=>{if(e0(e,n))return;const l=z_(e,n,o);return Hi(l)?l.then(i):i()};return s()},W_=(e,t,n)=>{var s,i,a,l,u,f;const r=e.router.getMatch(t);if(!r||!n.options.head&&!n.options.scripts&&!n.options.headers)return;const o={ssr:e.router.options.ssr,matches:e.matches,match:r,params:r.params,loaderData:r.loaderData};return Promise.all([(i=(s=n.options).head)==null?void 0:i.call(s,o),(l=(a=n.options).scripts)==null?void 0:l.call(a,o),(f=(u=n.options).headers)==null?void 0:f.call(u,o)]).then(([c,d,h])=>({meta:c==null?void 0:c.meta,links:c==null?void 0:c.links,headScripts:c==null?void 0:c.scripts,headers:h,scripts:d,styles:c==null?void 0:c.styles}))},n0=(e,t,n,r,o)=>{const s=t[r-1],{params:i,loaderDeps:a,abortController:l,cause:u}=e.router.getMatch(n),f=wo(e,r),c=au(e,n);return{params:i,deps:a,preload:!!c,parentMatchPromise:s,abortController:l,context:f,location:e.location,navigate:d=>e.router.navigate({...d,_fromLocation:e.location}),cause:c?"preload":u,route:o,...e.router.options.additionalContext}},im=async(e,t,n,r,o)=>{var s,i,a,l,u;try{const f=e.router.getMatch(n);try{(!(Gy??e.router.isServer)||f.ssr===!0)&&Vi(o);const c=o.options.loader,d=typeof c=="function"?c:c==null?void 0:c.handler,h=d==null?void 0:d(n0(e,t,n,r,o)),m=!!d&&Hi(h);if((m||o._lazyPromise||o._componentsPromise||o.options.head||o.options.scripts||o.options.headers||f._nonReactive.minPendingPromise)&&e.updateMatch(n,y=>({...y,isFetching:"loader"})),d){const y=m?await h:h;Pr(e,e.router.getMatch(n),y),y!==void 0&&e.updateMatch(n,p=>({...p,loaderData:y}))}o._lazyPromise&&await o._lazyPromise;const g=f._nonReactive.minPendingPromise;g&&await g,o._componentsPromise&&await o._componentsPromise,e.updateMatch(n,y=>({...y,error:void 0,context:wo(e,r),status:"success",isFetching:!1,updatedAt:Date.now()}))}catch(c){let d=c;if((d==null?void 0:d.name)==="AbortError"){if(f.abortController.signal.aborted){(s=f._nonReactive.loaderPromise)==null||s.resolve(),f._nonReactive.loaderPromise=void 0;return}e.updateMatch(n,m=>({...m,status:m.status==="pending"?"success":m.status,isFetching:!1,context:wo(e,r)}));return}const h=f._nonReactive.minPendingPromise;h&&await h,bt(c)&&await((a=(i=o.options.notFoundComponent)==null?void 0:i.preload)==null?void 0:a.call(i)),Pr(e,e.router.getMatch(n),c);try{(u=(l=o.options).onError)==null||u.call(l,c)}catch(m){d=m,Pr(e,e.router.getMatch(n),m)}!jt(d)&&!bt(d)&&await Vi(o,["errorComponent"]),e.updateMatch(n,m=>({...m,error:d,context:wo(e,r),status:"error",isFetching:!1}))}}catch(f){const c=e.router.getMatch(n);c&&(c._nonReactive.loaderPromise=void 0),Pr(e,c,f)}},V_=async(e,t,n)=>{var h,m,g,y;async function r(p,v,S,w,_){const T=Date.now()-v.updatedAt,I=p?_.options.preloadStaleTime??e.router.options.defaultPreloadStaleTime??3e4:_.options.staleTime??e.router.options.defaultStaleTime??0,P=_.options.shouldReload,k=typeof P=="function"?P(n0(e,t,o,n,_)):P,{status:E,invalid:A}=w,L=T>=I&&(!!e.forceStaleReload||w.cause==="enter"||S!==void 0&&S!==w.id);i=E==="success"&&(A||(k??L)),p&&_.options.preload===!1||(i&&!e.sync&&f?(a=!0,(async()=>{var z,U;try{await im(e,t,o,n,_);const B=e.router.getMatch(o);(z=B._nonReactive.loaderPromise)==null||z.resolve(),(U=B._nonReactive.loadPromise)==null||U.resolve(),B._nonReactive.loaderPromise=void 0,B._nonReactive.loadPromise=void 0}catch(B){jt(B)&&await e.router.navigate(B.options)}})()):E!=="success"||i?await im(e,t,o,n,_):sm(e,o,n))}const{id:o,routeId:s}=e.matches[n];let i=!1,a=!1;const l=e.router.looseRoutesById[s],u=l.options.loader,f=((typeof u=="function"||u==null?void 0:u.staleReloadMode)??e.router.options.defaultStaleReloadMode)!=="blocking";if(e0(e,o)){if(!e.router.getMatch(o))return e.matches[n];sm(e,o,n)}else{const p=e.router.getMatch(o),v=e.router.stores.matchesId.state[n],S=((h=v&&e.router.stores.activeMatchStoresById.get(v)||null)==null?void 0:h.routeId)===s?v:(m=e.router.stores.activeMatchesSnapshot.state.find(_=>_.routeId===s))==null?void 0:m.id,w=au(e,o);if(p._nonReactive.loaderPromise){if(p.status==="success"&&!e.sync&&!p.preload&&f)return p;await p._nonReactive.loaderPromise;const _=e.router.getMatch(o),T=_._nonReactive.error||_.error;T&&Pr(e,_,T),_.status==="pending"&&await r(w,p,S,_,l)}else{const _=w&&!e.router.stores.activeMatchStoresById.has(o),T=e.router.getMatch(o);T._nonReactive.loaderPromise=Ts(),_!==T.preload&&e.updateMatch(o,I=>({...I,preload:_})),await r(w,p,S,T,l)}}const c=e.router.getMatch(o);a||((g=c._nonReactive.loaderPromise)==null||g.resolve(),(y=c._nonReactive.loadPromise)==null||y.resolve(),c._nonReactive.loadPromise=void 0),clearTimeout(c._nonReactive.pendingTimeout),c._nonReactive.pendingTimeout=void 0,a||(c._nonReactive.loaderPromise=void 0),c._nonReactive.dehydrated=void 0;const d=a?c.isFetching:!1;return d!==c.isFetching||c.invalid!==!1?(e.updateMatch(o,p=>({...p,isFetching:d,invalid:!1})),e.router.getMatch(o)):c};async function am(e){var d,h;const t=e,n=[];U_(t.router)&&gf(t);let r;for(let m=0;m<t.matches.length;m++){try{const g=H_(t,m);Hi(g)&&await g}catch(g){if(jt(g))throw g;if(bt(g))r=g;else if(!t.preload)throw g;break}if(t.serialError||t.firstBadMatchIndex!=null)break}const o=t.firstBadMatchIndex??t.matches.length,s=r&&!t.preload?om(t,r):void 0,i=r&&t.preload?0:s!==void 0?Math.min(s+1,o):o;let a,l;for(let m=0;m<i;m++)n.push(V_(t,n,m));try{await Promise.all(n)}catch{const m=await Promise.allSettled(n);for(const g of m){if(g.status!=="rejected")continue;const y=g.reason;if(jt(y))throw y;bt(y)?a??(a=y):l??(l=y)}if(l!==void 0)throw l}const u=a??(r&&!t.preload?r:void 0);let f=t.firstBadMatchIndex!==void 0?t.firstBadMatchIndex:t.matches.length-1;if(!u&&r&&t.preload)return t.matches;if(u){const m=om(t,u);m===void 0&&Kn();const g=t.matches[m],y=t.router.looseRoutesById[g.routeId],p=(d=t.router.options)==null?void 0:d.defaultNotFoundComponent;!y.options.notFoundComponent&&p&&(y.options.notFoundComponent=p),u.routeId=g.routeId;const v=g.routeId===t.router.routeTree.id;t.updateMatch(g.id,S=>({...S,...v?{status:"success",globalNotFound:!0,error:void 0}:{status:"notFound",error:u},isFetching:!1})),f=m,await Vi(y,["notFoundComponent"])}else if(!t.preload){const m=t.matches[0];m.globalNotFound||(h=t.router.getMatch(m.id))!=null&&h.globalNotFound&&t.updateMatch(m.id,g=>({...g,globalNotFound:!1,error:void 0}))}if(t.serialError&&t.firstBadMatchIndex!==void 0){const m=t.router.looseRoutesById[t.matches[t.firstBadMatchIndex].routeId];await Vi(m,["errorComponent"])}for(let m=0;m<=f;m++){const{id:g,routeId:y}=t.matches[m],p=t.router.looseRoutesById[y];try{const v=W_(t,g,p);if(v){const S=await v;t.updateMatch(g,w=>({...w,...S}))}}catch(v){console.error(`Error executing head for route ${y}:`,v)}}const c=gf(t);if(Hi(c)&&await c,u)throw u;if(t.serialError&&!t.preload&&!t.onReady)throw t.serialError;return t.matches}function lm(e,t){const n=t.map(r=>{var o,s;return(s=(o=e.options[r])==null?void 0:o.preload)==null?void 0:s.call(o)}).filter(Boolean);if(n.length!==0)return Promise.all(n)}function Vi(e,t=el){!e._lazyLoaded&&e._lazyPromise===void 0&&(e.lazyFn?e._lazyPromise=e.lazyFn().then(r=>{const{id:o,...s}=r.options;Object.assign(e.options,s),e._lazyLoaded=!0,e._lazyPromise=void 0}):e._lazyLoaded=!0);const n=()=>e._componentsLoaded?void 0:t===el?(()=>{if(e._componentsPromise===void 0){const r=lm(e,el);r?e._componentsPromise=r.then(()=>{e._componentsLoaded=!0,e._componentsPromise=void 0}):e._componentsLoaded=!0}return e._componentsPromise})():lm(e,t);return e._lazyPromise?e._lazyPromise.then(n):n()}function r0(e){var t;for(const n of el)if((t=e.options[n])!=null&&t.preload)return!0;return!1}var el=["component","errorComponent","pendingComponent","notFoundComponent"],jr="__TSR_index",um="popstate",cm="beforeunload";function Q_(e){let t=e.getLocation();const n=new Set,r=i=>{t=e.getLocation(),n.forEach(a=>a({location:t,action:i}))},o=i=>{e.notifyOnIndexChange??!0?r(i):t=e.getLocation()},s=async({task:i,navigateOpts:a,...l})=>{var c,d;if((a==null?void 0:a.ignoreBlocker)??!1){i();return}const u=((c=e.getBlockers)==null?void 0:c.call(e))??[],f=l.type==="PUSH"||l.type==="REPLACE";if(typeof document<"u"&&u.length&&f)for(const h of u){const m=Ml(l.path,l.state);if(await h.blockerFn({currentLocation:t,nextLocation:m,action:l.type})){(d=e.onBlocked)==null||d.call(e);return}}i()};return{get location(){return t},get length(){return e.getLength()},subscribers:n,subscribe:i=>(n.add(i),()=>{n.delete(i)}),push:(i,a,l)=>{const u=t.state[jr];a=fm(u+1,a),s({task:()=>{e.pushState(i,a),r({type:"PUSH"})},navigateOpts:l,type:"PUSH",path:i,state:a})},replace:(i,a,l)=>{const u=t.state[jr];a=fm(u,a),s({task:()=>{e.replaceState(i,a),r({type:"REPLACE"})},navigateOpts:l,type:"REPLACE",path:i,state:a})},go:(i,a)=>{s({task:()=>{e.go(i),o({type:"GO",index:i})},navigateOpts:a,type:"GO"})},back:i=>{s({task:()=>{e.back((i==null?void 0:i.ignoreBlocker)??!1),o({type:"BACK"})},navigateOpts:i,type:"BACK"})},forward:i=>{s({task:()=>{e.forward((i==null?void 0:i.ignoreBlocker)??!1),o({type:"FORWARD"})},navigateOpts:i,type:"FORWARD"})},canGoBack:()=>t.state[jr]!==0,createHref:i=>e.createHref(i),block:i=>{var l;if(!e.setBlockers)return()=>{};const a=((l=e.getBlockers)==null?void 0:l.call(e))??[];return e.setBlockers([...a,i]),()=>{var f,c;const u=((f=e.getBlockers)==null?void 0:f.call(e))??[];(c=e.setBlockers)==null||c.call(e,u.filter(d=>d!==i))}},flush:()=>{var i;return(i=e.flush)==null?void 0:i.call(e)},destroy:()=>{var i;return(i=e.destroy)==null?void 0:i.call(e)},notify:r}}function fm(e,t){t||(t={});const n=Yd();return{...t,key:n,__TSR_key:n,[jr]:e}}function q_(e){var P,k;const t=typeof document<"u"?window:void 0,n=t.history.pushState,r=t.history.replaceState;let o=[];const s=()=>o,i=E=>o=E,a=E=>E,l=()=>Ml(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state);if(!((P=t.history.state)!=null&&P.__TSR_key)&&!((k=t.history.state)!=null&&k.key)){const E=Yd();t.history.replaceState({[jr]:0,key:E,__TSR_key:E},"")}let u=l(),f,c=!1,d=!1,h=!1,m=!1;const g=()=>u;let y,p;const v=()=>{y&&(I._ignoreSubscribers=!0,(y.isPush?t.history.pushState:t.history.replaceState)(y.state,"",y.href),I._ignoreSubscribers=!1,y=void 0,p=void 0,f=void 0)},S=(E,A,L)=>{const z=a(A);p||(f=u),u=Ml(A,L),y={href:z,state:L,isPush:(y==null?void 0:y.isPush)||E==="push"},p||(p=Promise.resolve().then(()=>v()))},w=E=>{u=l(),I.notify({type:E})},_=async()=>{if(d){d=!1;return}const E=l(),A=E.state[jr]-u.state[jr],L=A===1,z=A===-1,U=!L&&!z||c;c=!1;const B=U?"GO":z?"BACK":"FORWARD",V=U?{type:"GO",index:A}:{type:z?"BACK":"FORWARD"};if(h)h=!1;else{const W=s();if(typeof document<"u"&&W.length){for(const N of W)if(await N.blockerFn({currentLocation:u,nextLocation:E,action:B})){d=!0,t.history.go(1),I.notify(V);return}}}u=l(),I.notify(V)},T=E=>{if(m){m=!1;return}let A=!1;const L=s();if(typeof document<"u"&&L.length)for(const z of L){const U=z.enableBeforeUnload??!0;if(U===!0){A=!0;break}if(typeof U=="function"&&U()===!0){A=!0;break}}if(A)return E.preventDefault(),E.returnValue=""},I=Q_({getLocation:g,getLength:()=>t.history.length,pushState:(E,A)=>S("push",E,A),replaceState:(E,A)=>S("replace",E,A),back:E=>(E&&(h=!0),m=!0,t.history.back()),forward:E=>{E&&(h=!0),m=!0,t.history.forward()},go:E=>{c=!0,t.history.go(E)},createHref:E=>a(E),flush:v,destroy:()=>{t.history.pushState=n,t.history.replaceState=r,t.removeEventListener(cm,T,{capture:!0}),t.removeEventListener(um,_)},onBlocked:()=>{f&&u!==f&&(u=f)},getBlockers:s,setBlockers:i,notifyOnIndexChange:!1});return t.addEventListener(cm,T,{capture:!0}),t.addEventListener(um,_),t.history.pushState=function(...E){const A=n.apply(t.history,E);return I._ignoreSubscribers||w("PUSH"),A},t.history.replaceState=function(...E){const A=r.apply(t.history,E);return I._ignoreSubscribers||w("REPLACE"),A},I}function G_(e){let t=e.replace(/[\x00-\x1f\x7f]/g,"");return t.startsWith("//")&&(t="/"+t.replace(/^\/+/,"")),t}function Ml(e,t){const n=G_(e),r=n.indexOf("#"),o=n.indexOf("?"),s=Yd();return{href:n,pathname:n.substring(0,r>0?o>0?Math.min(r,o):r:o>0?o:n.length),hash:r>-1?n.substring(r):"",search:o>-1?n.slice(o,r===-1?void 0:r):"",state:t||{[jr]:0,key:s,__TSR_key:s}}}function Yd(){return(Math.random()+1).toString(36).substring(7)}function as(e,t){const n=t,r=e;return{fromLocation:n,toLocation:r,pathChanged:(n==null?void 0:n.pathname)!==r.pathname,hrefChanged:(n==null?void 0:n.href)!==r.href,hashChanged:(n==null?void 0:n.hash)!==r.hash}}var K_=class{constructor(e,t){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this.resetNextScroll=!0,this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.isScrollRestoring=!1,this.isScrollRestorationSetup=!1,this.startTransition=n=>n(),this.update=n=>{var f;const r=this.options,o=this.basepath??(r==null?void 0:r.basepath)??"/",s=this.basepath===void 0,i=r==null?void 0:r.rewrite;if(this.options={...r,...n},this.isServer=this.options.isServer??typeof document>"u",this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=E_(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=q_()),this.origin=this.options.origin,this.origin||(window!=null&&window.origin&&window.origin!=="null"?this.origin=window.origin:this.origin="http://localhost"),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let c;this.resolvePathCache=Wi(1e3),c=this.buildRouteTree(),this.setRoutes(c)}if(!this.stores&&this.latestLocation){const c=this.getStoreConfig(this);this.batch=c.batch,this.stores=$_(X_(this.latestLocation),c),T_(this)}let a=!1;const l=this.options.basepath??"/",u=this.options.rewrite;if(s||o!==l||i!==u){this.basepath=l;const c=[],d=Jy(l);d&&d!=="/"&&c.push(D_({basepath:l})),u&&c.push(u),this.rewrite=c.length===0?void 0:c.length===1?c[0]:F_(c),this.history&&this.updateLatestLocation(),a=!0}a&&this.stores&&this.stores.location.setState(()=>this.latestLocation),typeof window<"u"&&"CSS"in window&&typeof((f=window.CSS)==null?void 0:f.supports)=="function"&&(this.isViewTransitionTypesSupported=window.CSS.supports("selector(:active-view-transition-type(a)"))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{const n=v_(this.routeTree,this.options.caseSensitive,(r,o)=>{r.init({originalIndex:o})});return this.options.routeMasks&&d_(this.options.routeMasks,n.processedTree),n},this.subscribe=(n,r)=>{const o={eventType:n,fn:r};return this.subscribers.add(o),()=>{this.subscribers.delete(o)}},this.emit=n=>{this.subscribers.forEach(r=>{r.eventType===n.type&&r.fn(n)})},this.parseLocation=(n,r)=>{const o=({pathname:l,search:u,hash:f,href:c,state:d})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(l)){const p=this.options.parseSearch(u),v=this.options.stringifySearch(p);return{href:l+v+f,publicHref:l+v+f,pathname:Ys(l).path,external:!1,searchStr:v,search:Yr(r==null?void 0:r.search,p),hash:Ys(f.slice(1)).path,state:no(r==null?void 0:r.state,d)}}const h=new URL(c,this.origin),m=mf(this.rewrite,h),g=this.options.parseSearch(m.search),y=this.options.stringifySearch(g);return m.search=y,{href:m.href.replace(m.origin,""),publicHref:c,pathname:Ys(m.pathname).path,external:!!this.rewrite&&m.origin!==this.origin,searchStr:y,search:Yr(r==null?void 0:r.search,g),hash:Ys(m.hash.slice(1)).path,state:no(r==null?void 0:r.state,d)}},s=o(n),{__tempLocation:i,__tempKey:a}=s.state;if(i&&(!a||a===this.tempLocationKey)){const l=o(i);return l.state.key=s.state.key,l.state.__TSR_key=s.state.__TSR_key,delete l.state.__tempLocation,{...l,maskedLocation:s}}return s},this.resolvePathWithBase=(n,r)=>__({base:n,to:Kd(r),trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(n,r,o)=>typeof n=="string"?this.matchRoutesInternal({pathname:n,search:r},o):this.matchRoutesInternal(n,r),this.getMatchedRoutes=n=>J_({pathname:n,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=n=>{const r=this.getMatch(n);r&&(r.abortController.abort(),clearTimeout(r._nonReactive.pendingTimeout),r._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{this.stores.pendingMatchesId.state.forEach(n=>{this.cancelMatch(n)}),this.stores.matchesId.state.forEach(n=>{var o;if(this.stores.pendingMatchStoresById.has(n))return;const r=(o=this.stores.activeMatchStoresById.get(n))==null?void 0:o.state;r&&(r.status==="pending"||r.isFetching==="loader")&&this.cancelMatch(n)})},this.buildLocation=n=>{const r=(s={})=>{var E,A;const i=s._fromLocation||this.pendingBuiltLocation||this.latestLocation,a=this.matchRoutesLightweight(i);s.from;const l=s.unsafeRelative==="path"?i.pathname:s.from??a.fullPath,u=this.resolvePathWithBase(l,"."),f=a.search,c=Object.assign(Object.create(null),a.params),d=s.to?this.resolvePathWithBase(u,`${s.to}`):this.resolvePathWithBase(u,"."),h=s.params===!1||s.params===null?Object.create(null):(s.params??!0)===!0?c:Object.assign(c,br(s.params,c)),m=this.getMatchedRoutes(d);let g=m.matchedRoutes;if((!m.foundRoute||m.foundRoute.path!=="/"&&m.routeParams["**"])&&this.options.notFoundRoute&&(g=[...g,this.options.notFoundRoute]),Object.keys(h).length>0)for(const L of g){const z=((E=L.options.params)==null?void 0:E.stringify)??L.options.stringifyParams;if(z)try{Object.assign(h,z(h))}catch{}}const y=n.leaveParams?d:Ys(em({path:d,params:h,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path;let p=f;if(n._includeValidateSearch&&((A=this.options.search)!=null&&A.strict)){const L={};g.forEach(z=>{if(z.options.validateSearch)try{Object.assign(L,tl(z.options.validateSearch,{...L,...p}))}catch{}}),p=L}p=Z_({search:p,dest:s,destRoutes:g,_includeValidateSearch:n._includeValidateSearch}),p=Yr(f,p);const v=this.options.stringifySearch(p),S=s.hash===!0?i.hash:s.hash?br(s.hash,i.hash):void 0,w=S?`#${S}`:"";let _=s.state===!0?i.state:s.state?br(s.state,i.state):{};_=no(i.state,_);const T=`${y}${v}${w}`;let I,P,k=!1;if(this.rewrite){const L=new URL(T,this.origin),z=Zy(this.rewrite,L);I=L.href.replace(L.origin,""),z.origin!==this.origin?(P=z.href,k=!0):P=z.pathname+z.search+z.hash}else I=u_(T),P=I;return{publicHref:P,href:I,pathname:y,search:p,searchStr:v,state:_,hash:S??"",external:k,unmaskOnReload:s.unmaskOnReload}},o=(s={},i)=>{const a=r(s);let l=i?r(i):void 0;if(!l){const u=Object.create(null);if(this.options.routeMasks){const f=h_(a.pathname,this.processedTree);if(f){Object.assign(u,f.rawParams);const{from:c,params:d,...h}=f.route,m=d===!1||d===null?Object.create(null):(d??!0)===!0?u:Object.assign(u,br(d,u));i={from:n.from,...h,params:m},l=r(i)}}}return l&&(a.maskedLocation=l),a};return n.mask?o(n,{from:n.from,...n.mask}):o(n)},this.commitLocation=async({viewTransition:n,ignoreBlocker:r,...o})=>{const s=()=>{const l=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];l.forEach(f=>{o.state[f]=this.latestLocation.state[f]});const u=So(o.state,this.latestLocation.state);return l.forEach(f=>{delete o.state[f]}),u},i=Lr(this.latestLocation.href)===Lr(o.href);let a=this.commitLocationPromise;if(this.commitLocationPromise=Ts(()=>{a==null||a.resolve(),a=void 0}),i&&s())this.load();else{let{maskedLocation:l,hashScrollIntoView:u,...f}=o;l&&(f={...l,state:{...l.state,__tempKey:void 0,__tempLocation:{...f,search:f.searchStr,state:{...f.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(f.unmaskOnReload??this.options.unmaskOnReload??!1)&&(f.state.__tempKey=this.tempLocationKey)),f.state.__hashScrollIntoViewOptions=u??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=n,this.history[o.replace?"replace":"push"](f.publicHref,f.state,{ignoreBlocker:r})}return this.resetNextScroll=o.resetScroll??!0,this.history.subscribers.size||this.load(),this.commitLocationPromise},this.buildAndCommitLocation=({replace:n,resetScroll:r,hashScrollIntoView:o,viewTransition:s,ignoreBlocker:i,href:a,...l}={})=>{if(a){const c=this.history.location.state.__TSR_index,d=Ml(a,{__TSR_index:n?c:c+1}),h=new URL(d.pathname,this.origin);l.to=mf(this.rewrite,h).pathname,l.search=this.options.parseSearch(d.search),l.hash=d.hash.slice(1)}const u=this.buildLocation({...l,_includeValidateSearch:!0});this.pendingBuiltLocation=u;const f=this.commitLocation({...u,viewTransition:s,replace:n,resetScroll:r,hashScrollIntoView:o,ignoreBlocker:i});return Promise.resolve().then(()=>{this.pendingBuiltLocation===u&&(this.pendingBuiltLocation=void 0)}),f},this.navigate=async({to:n,reloadDocument:r,href:o,publicHref:s,...i})=>{var l,u;let a=!1;if(o)try{new URL(`${o}`),a=!0}catch{}if(a&&!r&&(r=!0),r){if(n!==void 0||!o){const c=this.buildLocation({to:n,...i});o=o??c.publicHref,s=s??c.publicHref}const f=!a&&s?s:o;if(Nl(f,this.protocolAllowlist))return Promise.resolve();if(!i.ignoreBlocker){const c=((u=(l=this.history).getBlockers)==null?void 0:u.call(l))??[];for(const d of c)if(d!=null&&d.blockerFn&&await d.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:"PUSH"}))return Promise.resolve()}return i.replace?window.location.replace(f):window.location.href=f,Promise.resolve()}return this.buildAndCommitLocation({...i,href:o,to:n,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();const n=this.matchRoutes(this.latestLocation),r=this.stores.cachedMatchesSnapshot.state.filter(o=>!n.some(s=>s.id===o.id));this.batch(()=>{this.stores.status.setState(()=>"pending"),this.stores.statusCode.setState(()=>200),this.stores.isLoading.setState(()=>!0),this.stores.location.setState(()=>this.latestLocation),this.stores.setPendingMatches(n),this.stores.setCachedMatches(r)})},this.load=async n=>{let r,o,s;const i=this.stores.resolvedLocation.state??this.stores.location.state;for(s=new Promise(l=>{this.startTransition(async()=>{var u;try{this.beforeLoad();const f=this.latestLocation,c=this.stores.resolvedLocation.state,d=as(f,c);this.stores.redirect.state||this.emit({type:"onBeforeNavigate",...d}),this.emit({type:"onBeforeLoad",...d}),await am({router:this,sync:n==null?void 0:n.sync,forceStaleReload:i.href===f.href,matches:this.stores.pendingMatchesSnapshot.state,location:f,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{var p,v;let h=null,m=null,g=null,y=null;this.batch(()=>{const S=this.stores.pendingMatchesSnapshot.state,w=S.length,_=this.stores.activeMatchesSnapshot.state;h=w?_.filter(P=>!this.stores.pendingMatchStoresById.has(P.id)):null;const T=new Set;for(const P of this.stores.pendingMatchStoresById.values())P.routeId&&T.add(P.routeId);const I=new Set;for(const P of this.stores.activeMatchStoresById.values())P.routeId&&I.add(P.routeId);m=w?_.filter(P=>!T.has(P.routeId)):null,g=w?S.filter(P=>!I.has(P.routeId)):null,y=w?S.filter(P=>I.has(P.routeId)):_,this.stores.isLoading.setState(()=>!1),this.stores.loadedAt.setState(()=>Date.now()),w&&(this.stores.setActiveMatches(S),this.stores.setPendingMatches([]),this.stores.setCachedMatches([...this.stores.cachedMatchesSnapshot.state,...h.filter(P=>P.status!=="error"&&P.status!=="notFound"&&P.status!=="redirected")]),this.clearExpiredCache())});for(const[S,w]of[[m,"onLeave"],[g,"onEnter"],[y,"onStay"]])if(S)for(const _ of S)(v=(p=this.looseRoutesById[_.routeId].options)[w])==null||v.call(p,_)})})}})}catch(f){jt(f)?(r=f,this.navigate({...r.options,replace:!0,ignoreBlocker:!0})):bt(f)&&(o=f);const c=r?r.status:o?404:this.stores.activeMatchesSnapshot.state.some(d=>d.status==="error")?500:200;this.batch(()=>{this.stores.statusCode.setState(()=>c),this.stores.redirect.setState(()=>r)})}this.latestLoadPromise===s&&((u=this.commitLocationPromise)==null||u.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),l()})}),this.latestLoadPromise=s,await s;this.latestLoadPromise&&s!==this.latestLoadPromise;)await this.latestLoadPromise;let a;this.hasNotFoundMatch()?a=404:this.stores.activeMatchesSnapshot.state.some(l=>l.status==="error")&&(a=500),a!==void 0&&this.stores.statusCode.setState(()=>a)},this.startViewTransition=n=>{const r=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,r&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition=="function"){let o;if(typeof r=="object"&&this.isViewTransitionTypesSupported){const s=this.latestLocation,i=this.stores.resolvedLocation.state,a=typeof r.types=="function"?r.types(as(s,i)):r.types;if(a===!1){n();return}o={update:n,types:a}}else o=n;document.startViewTransition(o)}else n()},this.updateMatch=(n,r)=>{this.startTransition(()=>{const o=this.stores.pendingMatchStoresById.get(n);if(o){o.setState(r);return}const s=this.stores.activeMatchStoresById.get(n);if(s){s.setState(r);return}const i=this.stores.cachedMatchStoresById.get(n);if(i){const a=r(i.state);a.status==="redirected"?this.stores.cachedMatchStoresById.delete(n)&&this.stores.cachedMatchesId.setState(l=>l.filter(u=>u!==n)):i.setState(()=>a)}})},this.getMatch=n=>{var r,o,s;return((r=this.stores.cachedMatchStoresById.get(n))==null?void 0:r.state)??((o=this.stores.pendingMatchStoresById.get(n))==null?void 0:o.state)??((s=this.stores.activeMatchStoresById.get(n))==null?void 0:s.state)},this.invalidate=n=>{const r=o=>{var s;return((s=n==null?void 0:n.filter)==null?void 0:s.call(n,o))??!0?{...o,invalid:!0,...n!=null&&n.forcePending||o.status==="error"||o.status==="notFound"?{status:"pending",error:void 0}:void 0}:o};return this.batch(()=>{this.stores.setActiveMatches(this.stores.activeMatchesSnapshot.state.map(r)),this.stores.setCachedMatches(this.stores.cachedMatchesSnapshot.state.map(r)),this.stores.setPendingMatches(this.stores.pendingMatchesSnapshot.state.map(r))}),this.shouldViewTransition=!1,this.load({sync:n==null?void 0:n.sync})},this.getParsedLocationHref=n=>n.publicHref||"/",this.resolveRedirect=n=>{const r=n.headers.get("Location");if(!n.options.href||n.options._builtLocation){const o=n.options._builtLocation??this.buildLocation(n.options),s=this.getParsedLocationHref(o);n.options.href=s,n.headers.set("Location",s)}else if(r)try{const o=new URL(r);if(this.origin&&o.origin===this.origin){const s=o.pathname+o.search+o.hash;n.options.href=s,n.headers.set("Location",s)}}catch{}if(n.options.href&&!n.options._builtLocation&&Nl(n.options.href,this.protocolAllowlist))throw new Error("Redirect blocked: unsafe protocol");return n.headers.get("Location")||n.headers.set("Location",n.options.href),n},this.clearCache=n=>{const r=n==null?void 0:n.filter;r!==void 0?this.stores.setCachedMatches(this.stores.cachedMatchesSnapshot.state.filter(o=>!r(o))):this.stores.setCachedMatches([])},this.clearExpiredCache=()=>{const n=Date.now(),r=o=>{const s=this.looseRoutesById[o.routeId];if(!s.options.loader)return!0;const i=(o.preload?s.options.preloadGcTime??this.options.defaultPreloadGcTime:s.options.gcTime??this.options.defaultGcTime)??300*1e3;return o.status==="error"?!0:n-o.updatedAt>=i};this.clearCache({filter:r})},this.loadRouteChunk=Vi,this.preloadRoute=async n=>{const r=n._builtLocation??this.buildLocation(n);let o=this.matchRoutes(r,{throwOnError:!0,preload:!0,dest:n});const s=new Set([...this.stores.matchesId.state,...this.stores.pendingMatchesId.state]),i=new Set([...s,...this.stores.cachedMatchesId.state]),a=o.filter(l=>!i.has(l.id));if(a.length){const l=this.stores.cachedMatchesSnapshot.state;this.stores.setCachedMatches([...l,...a])}try{return o=await am({router:this,matches:o,location:r,preload:!0,updateMatch:(l,u)=>{s.has(l)?o=o.map(f=>f.id===l?u(f):f):this.updateMatch(l,u)}}),o}catch(l){if(jt(l))return l.options.reloadDocument?void 0:await this.preloadRoute({...l.options,_fromLocation:r});bt(l)||console.error(l);return}},this.matchRoute=(n,r)=>{const o={...n,to:n.to?this.resolvePathWithBase(n.from||"",n.to):void 0,params:n.params||{},leaveParams:!0},s=this.buildLocation(o);if(r!=null&&r.pending&&this.stores.status.state!=="pending")return!1;const i=((r==null?void 0:r.pending)===void 0?!this.stores.isLoading.state:r.pending)?this.latestLocation:this.stores.resolvedLocation.state||this.stores.location.state,a=p_(s.pathname,(r==null?void 0:r.caseSensitive)??!1,(r==null?void 0:r.fuzzy)??!1,i.pathname,this.processedTree);return!a||n.params&&!So(a.rawParams,n.params,{partial:!0})?!1:(r==null?void 0:r.includeSearch)??!0?So(i.search,s.search,{partial:!0})?a.rawParams:!1:a.rawParams},this.hasNotFoundMatch=()=>this.stores.activeMatchesSnapshot.state.some(n=>n.status==="notFound"||n.globalNotFound),this.getStoreConfig=t,this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...e,caseSensitive:e.caseSensitive??!1,notFoundMode:e.notFoundMode??"fuzzy",stringifySearch:e.stringifySearch??O_,parseSearch:e.parseSearch??N_,protocolAllowlist:e.protocolAllowlist??l_}),typeof document<"u"&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.stores.__store.state}setRoutes({routesById:e,routesByPath:t,processedTree:n}){this.routesById=e,this.routesByPath=t,this.processedTree=n;const r=this.options.notFoundRoute;r&&(r.init({originalIndex:99999999999}),this.routesById[r.id]=r)}get looseRoutesById(){return this.routesById}getParentContext(e){return e!=null&&e.id?e.context??this.options.context??void 0:this.options.context??void 0}matchRoutesInternal(e,t){var c,d;const n=this.getMatchedRoutes(e.pathname),{foundRoute:r,routeParams:o,parsedParams:s}=n;let{matchedRoutes:i}=n,a=!1;(r?r.path!=="/"&&o["**"]:Lr(e.pathname))&&(this.options.notFoundRoute?i=[...i,this.options.notFoundRoute]:a=!0);const l=a?tE(this.options.notFoundMode,i):void 0,u=new Array(i.length),f=new Map;for(const h of this.stores.activeMatchStoresById.values())h.routeId&&f.set(h.routeId,h.state);for(let h=0;h<i.length;h++){const m=i[h],g=u[h-1];let y,p,v;{const B=(g==null?void 0:g.search)??e.search,V=(g==null?void 0:g._strictSearch)??void 0;try{const W=tl(m.options.validateSearch,{...B})??void 0;y={...B,...W},p={...V,...W},v=void 0}catch(W){let N=W;if(W instanceof Ll||(N=new Ll(W.message,{cause:W})),t!=null&&t.throwOnError)throw N;y=B,p={},v=N}}const S=((d=(c=m.options).loaderDeps)==null?void 0:d.call(c,{search:y}))??"",w=S?JSON.stringify(S):"",{interpolatedPath:_,usedParams:T}=em({path:m.fullPath,params:o,decoder:this.pathParamsDecoder,server:this.isServer}),I=m.id+_+w,P=this.getMatch(I),k=f.get(m.id),E=(P==null?void 0:P._strictParams)??T;let A;if(!P)try{dm(m,T,s,E)}catch(B){if(bt(B)||jt(B)?A=B:A=new Y_(B.message,{cause:B}),t!=null&&t.throwOnError)throw A}Object.assign(o,E);const L=k?"stay":"enter";let z;if(P)z={...P,cause:L,params:(k==null?void 0:k.params)??o,_strictParams:E,search:Yr(k?k.search:P.search,y),_strictSearch:p};else{const B=m.options.loader||m.options.beforeLoad||m.lazyFn||r0(m)?"pending":"success";z={id:I,ssr:m.options.ssr,index:h,routeId:m.id,params:(k==null?void 0:k.params)??o,_strictParams:E,pathname:_,updatedAt:Date.now(),search:k?Yr(k.search,y):y,_strictSearch:p,searchError:void 0,status:B,isFetching:!1,error:void 0,paramsError:A,__routeContext:void 0,_nonReactive:{loadPromise:Ts()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:L,loaderDeps:k?no(k.loaderDeps,S):S,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:m.options.staticData||{},fullPath:m.fullPath}}t!=null&&t.preload||(z.globalNotFound=l===m.id),z.searchError=v;const U=this.getParentContext(g);z.context={...U,...z.__routeContext,...z.__beforeLoadContext},u[h]=z}for(let h=0;h<u.length;h++){const m=u[h],g=this.looseRoutesById[m.routeId],y=this.getMatch(m.id),p=f.get(m.routeId);if(m.params=p?Yr(p.params,o):o,!y){const v=u[h-1],S=this.getParentContext(v);if(g.options.context){const w={deps:m.loaderDeps,params:m.params,context:S??{},location:e,navigate:_=>this.navigate({..._,_fromLocation:e}),buildLocation:this.buildLocation,cause:m.cause,abortController:m.abortController,preload:!!m.preload,matches:u,routeId:g.id};m.__routeContext=g.options.context(w)??void 0}m.context={...S,...m.__routeContext,...m.__beforeLoadContext}}}return u}matchRoutesLightweight(e){var f;const{matchedRoutes:t,routeParams:n,parsedParams:r}=this.getMatchedRoutes(e.pathname),o=Bi(t),s={...e.search};for(const c of t)try{Object.assign(s,tl(c.options.validateSearch,s))}catch{}const i=Bi(this.stores.matchesId.state),a=i&&((f=this.stores.activeMatchStoresById.get(i))==null?void 0:f.state),l=a&&a.routeId===o.id&&a.pathname===e.pathname;let u;if(l)u=a.params;else{const c=Object.assign(Object.create(null),n);for(const d of t)try{dm(d,n,r??{},c)}catch{}u=c}return{matchedRoutes:t,fullPath:o.fullPath,search:s,params:u}}},Ll=class extends Error{},Y_=class extends Error{};function X_(e){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:e,matches:[],statusCode:200}}function tl(e,t){if(e==null)return{};if("~standard"in e){const n=e["~standard"].validate(t);if(n instanceof Promise)throw new Ll("Async validation not supported");if(n.issues)throw new Ll(JSON.stringify(n.issues,void 0,2),{cause:n});return n.value}return"parse"in e?e.parse(t):typeof e=="function"?e(t):{}}function J_({pathname:e,routesById:t,processedTree:n}){const r=Object.create(null),o=Lr(e);let s,i;const a=m_(o,n,!0);return a&&(s=a.route,Object.assign(r,a.rawParams),i=Object.assign(Object.create(null),a.parsedParams)),{matchedRoutes:(a==null?void 0:a.branch)||[t.__root__],routeParams:r,foundRoute:s,parsedParams:i}}function Z_({search:e,dest:t,destRoutes:n,_includeValidateSearch:r}){return eE(n)(e,t,r??!1)}function eE(e){var o;const t={dest:null,_includeValidateSearch:!1,middlewares:[]};for(const s of e){if("search"in s.options)(o=s.options.search)!=null&&o.middlewares&&t.middlewares.push(...s.options.search.middlewares);else if(s.options.preSearchFilters||s.options.postSearchFilters){const i=({search:a,next:l})=>{let u=a;"preSearchFilters"in s.options&&s.options.preSearchFilters&&(u=s.options.preSearchFilters.reduce((c,d)=>d(c),a));const f=l(u);return"postSearchFilters"in s.options&&s.options.postSearchFilters?s.options.postSearchFilters.reduce((c,d)=>d(c),f):f};t.middlewares.push(i)}if(s.options.validateSearch){const i=({search:a,next:l})=>{const u=l(a);if(!t._includeValidateSearch)return u;try{return{...u,...tl(s.options.validateSearch,u)??void 0}}catch{return u}};t.middlewares.push(i)}}const n=({search:s})=>{const i=t.dest;return i.search?i.search===!0?s:br(i.search,s):{}};t.middlewares.push(n);const r=(s,i,a)=>{if(s>=a.length)return i;const l=a[s];return l({search:i,next:f=>r(s+1,f,a)})};return function(i,a,l){return t.dest=a,t._includeValidateSearch=l,r(0,i,t.middlewares)}}function tE(e,t){if(e!=="root")for(let n=t.length-1;n>=0;n--){const r=t[n];if(r.children)return r.id}return xo}function dm(e,t,n,r){var s;const o=((s=e.options.params)==null?void 0:s.parse)??e.options.parseParams;if(o)if(e.options.skipRouteOnParseError)for(const i in t)i in n&&(r[i]=n[i]);else{const i=o(r);Object.assign(r,i)}}var nE="Error preloading route! ☝️",o0=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(e){if(this.init=t=>{var l,u;this.originalIndex=t.originalIndex;const n=this.options,r=!(n!=null&&n.path)&&!(n!=null&&n.id);this.parentRoute=(u=(l=this.options).getParentRoute)==null?void 0:u.call(l),r?this._path=xo:this.parentRoute||Kn();let o=r?xo:n==null?void 0:n.path;o&&o!=="/"&&(o=Xy(o));const s=(n==null?void 0:n.id)||o;let i=r?xo:Za([this.parentRoute.id==="__root__"?"":this.parentRoute.id,s]);o==="__root__"&&(o="/"),i!=="__root__"&&(i=Za(["/",i]));const a=i==="__root__"?"/":Za([this.parentRoute.fullPath,o]);this._path=o,this._id=i,this._fullPath=a,this._to=Lr(a)},this.addChildren=t=>this._addFileChildren(t),this._addFileChildren=t=>(Array.isArray(t)&&(this.children=t),typeof t=="object"&&t!==null&&(this.children=Object.values(t)),this),this._addFileTypes=()=>this,this.updateLoader=t=>(Object.assign(this.options,t),this),this.update=t=>(Object.assign(this.options,t),this),this.lazy=t=>(this.lazyFn=t,this),this.redirect=t=>j_({from:this.fullPath,...t}),this.options=e||{},this.isRoot=!(e!=null&&e.getParentRoute),e!=null&&e.id&&(e!=null&&e.path))throw new Error("Route cannot have both an 'id' and a 'path' option.")}},rE=class extends o0{constructor(e){super(e)}};function oE(e){if(typeof document<"u"&&document.querySelector){const t=e.stores.location.state,n=t.state.__hashScrollIntoViewOptions??!0;if(n&&t.hash!==""){const r=document.getElementById(t.hash);r&&r.scrollIntoView(n)}}}function Xd(e){const t=e.errorComponent??Jd;return x.jsx(sE,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:n,reset:r})=>n?b.createElement(t,{error:n,reset:r}):e.children})}var sE=class extends b.Component{constructor(...e){super(...e),this.state={error:null}}static getDerivedStateFromProps(e){return{resetKey:e.getResetKey()}}static getDerivedStateFromError(e){return{error:e}}reset(){this.setState({error:null})}componentDidUpdate(e,t){t.error&&t.resetKey!==this.state.resetKey&&this.reset()}componentDidCatch(e,t){this.props.onCatch&&this.props.onCatch(e,t)}render(){return this.props.children({error:this.state.resetKey!==this.props.getResetKey()?null:this.state.error,reset:()=>{this.reset()}})}};function Jd({error:e}){const[t,n]=b.useState(!1);return x.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[x.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[x.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),x.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>n(r=>!r),children:t?"Hide Error":"Show Error"})]}),x.jsx("div",{style:{height:".25rem"}}),t?x.jsx("div",{children:x.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:e.message?x.jsx("code",{children:e.message}):null})}):null]})}function iE({children:e,fallback:t=null}){return s0()?x.jsx(Dr.Fragment,{children:e}):x.jsx(Dr.Fragment,{children:t})}function s0(){return Dr.useSyncExternalStore(aE,()=>!0,()=>!1)}function aE(){return()=>{}}var i0=b.createContext(null);function Jt(e){return b.useContext(i0)}var lu=b.createContext(void 0),lE=b.createContext(void 0),Ae=(e=>(e[e.None=0]="None",e[e.Mutable=1]="Mutable",e[e.Watching=2]="Watching",e[e.RecursedCheck=4]="RecursedCheck",e[e.Recursed=8]="Recursed",e[e.Dirty=16]="Dirty",e[e.Pending=32]="Pending",e))(Ae||{});function uE({update:e,notify:t,unwatched:n}){return{link:r,unlink:o,propagate:s,checkDirty:i,shallowPropagate:a};function r(u,f,c){const d=f.depsTail;if(d!==void 0&&d.dep===u)return;const h=d!==void 0?d.nextDep:f.deps;if(h!==void 0&&h.dep===u){h.version=c,f.depsTail=h;return}const m=u.subsTail;if(m!==void 0&&m.version===c&&m.sub===f)return;const g=f.depsTail=u.subsTail={version:c,dep:u,sub:f,prevDep:d,nextDep:h,prevSub:m,nextSub:void 0};h!==void 0&&(h.prevDep=g),d!==void 0?d.nextDep=g:f.deps=g,m!==void 0?m.nextSub=g:u.subs=g}function o(u,f=u.sub){const c=u.dep,d=u.prevDep,h=u.nextDep,m=u.nextSub,g=u.prevSub;return h!==void 0?h.prevDep=d:f.depsTail=d,d!==void 0?d.nextDep=h:f.deps=h,m!==void 0?m.prevSub=g:c.subsTail=g,g!==void 0?g.nextSub=m:(c.subs=m)===void 0&&n(c),h}function s(u){let f=u.nextSub,c;e:do{const d=u.sub;let h=d.flags;if(h&60?h&12?h&4?!(h&48)&&l(u,d)?(d.flags=h|40,h&=1):h=0:d.flags=h&-9|32:h=0:d.flags=h|32,h&2&&t(d),h&1){const m=d.subs;if(m!==void 0){const g=(u=m).nextSub;g!==void 0&&(c={value:f,prev:c},f=g);continue}}if((u=f)!==void 0){f=u.nextSub;continue}for(;c!==void 0;)if(u=c.value,c=c.prev,u!==void 0){f=u.nextSub;continue e}break}while(!0)}function i(u,f){let c,d=0,h=!1;e:do{const m=u.dep,g=m.flags;if(f.flags&16)h=!0;else if((g&17)===17){if(e(m)){const y=m.subs;y.nextSub!==void 0&&a(y),h=!0}}else if((g&33)===33){(u.nextSub!==void 0||u.prevSub!==void 0)&&(c={value:u,prev:c}),u=m.deps,f=m,++d;continue}if(!h){const y=u.nextDep;if(y!==void 0){u=y;continue}}for(;d--;){const y=f.subs,p=y.nextSub!==void 0;if(p?(u=c.value,c=c.prev):u=y,h){if(e(f)){p&&a(y),f=u.sub;continue}h=!1}else f.flags&=-33;f=u.sub;const v=u.nextDep;if(v!==void 0){u=v;continue e}}return h}while(!0)}function a(u){do{const f=u.sub,c=f.flags;(c&48)===32&&(f.flags=c|16,(c&6)===2&&t(f))}while((u=u.nextSub)!==void 0)}function l(u,f){let c=f.depsTail;for(;c!==void 0;){if(c===u)return!0;c=c.prevDep}return!1}}function Zd(e,t,n){var s,i,a;const r=typeof e=="object",o=r?e:void 0;return{next:(s=r?e.next:e)==null?void 0:s.bind(o),error:(i=r?e.error:t)==null?void 0:i.bind(o),complete:(a=r?e.complete:n)==null?void 0:a.bind(o)}}const vf=[];let nl=0;const{link:hm,unlink:cE,propagate:fE,checkDirty:a0,shallowPropagate:pm}=uE({update(e){return e._update()},notify(e){vf[yf++]=e,e.flags&=~Ae.Watching},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=Ae.Mutable|Ae.Dirty,jl(e))}});let Oa=0,yf=0,Cn,Sf=0;function l0(e){try{++Sf,e()}finally{--Sf||u0()}}function jl(e){const t=e.depsTail;let n=t!==void 0?t.nextDep:e.deps;for(;n!==void 0;)n=cE(n,e)}function u0(){if(!(Sf>0)){for(;Oa<yf;){const e=vf[Oa];vf[Oa++]=void 0,e.notify()}Oa=0,yf=0}}function c0(e,t){const n=typeof e=="function",r=e,o={_snapshot:n?void 0:e,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:n?Ae.None:Ae.Mutable,get(){return Cn!==void 0&&hm(o,Cn,nl),o._snapshot},subscribe(s){const i=Zd(s),a={current:!1},l=dE(()=>{var u;o.get(),a.current?(u=i.next)==null||u.call(i,o._snapshot):a.current=!0});return{unsubscribe:()=>{l.stop()}}},_update(s){const i=Cn,a=Object.is;if(n)Cn=o,++nl,o.depsTail=void 0;else if(s===void 0)return!1;n&&(o.flags=Ae.Mutable|Ae.RecursedCheck);try{const l=o._snapshot,u=typeof s=="function"?s(l):s===void 0&&n?r(l):s;return l===void 0||!a(l,u)?(o._snapshot=u,!0):!1}finally{Cn=i,n&&(o.flags&=~Ae.RecursedCheck),jl(o)}}};return n?(o.flags=Ae.Mutable|Ae.Dirty,o.get=function(){const s=o.flags;if(s&Ae.Dirty||s&Ae.Pending&&a0(o.deps,o)){if(o._update()){const i=o.subs;i!==void 0&&pm(i)}}else s&Ae.Pending&&(o.flags=s&~Ae.Pending);return Cn!==void 0&&hm(o,Cn,nl),o._snapshot}):o.set=function(s){if(o._update(s)){const i=o.subs;i!==void 0&&(fE(i),pm(i),u0())}},o}function dE(e){const t=()=>{const r=Cn;Cn=n,++nl,n.depsTail=void 0,n.flags=Ae.Watching|Ae.RecursedCheck;try{return e()}finally{Cn=r,n.flags&=~Ae.RecursedCheck,jl(n)}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:Ae.Watching|Ae.RecursedCheck,notify(){const r=this.flags;r&Ae.Dirty||r&Ae.Pending&&a0(this.deps,this)?t():this.flags=Ae.Watching},stop(){this.flags=Ae.None,this.depsTail=void 0,jl(this)}};return t(),n}class hE{constructor(t){this.atom=c0(t)}setState(t){this.atom.set(t)}get state(){return this.atom.get()}get(){return this.state}subscribe(t){return this.atom.subscribe(Zd(t))}}class pE{constructor(t){this.atom=c0(t)}get state(){return this.atom.get()}get(){return this.state}subscribe(t){return this.atom.subscribe(Zd(t))}}function mm(e){return typeof e=="function"?new pE(e):new hE(e)}var f0={exports:{}},d0={},h0={exports:{}},p0={};/**
40
+ `+s.stack}return{value:e,source:t,stack:o,digest:null}}function Gu(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function ef(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Aw=typeof WeakMap=="function"?WeakMap:Map;function Sy(e,t,n){n=Gn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Tl||(Tl=!0,ff=r),ef(e,t)},n}function xy(e,t,n){n=Gn(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){ef(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){ef(e,t),typeof r!="function"&&(Nr===null?Nr=new Set([this]):Nr.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),n}function Ip(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Aw;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Vw.bind(null,e,t,n),t.then(e,e))}function Ap(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Np(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Gn(-1,1),t.tag=2,Ar(n,t,1))),n.lanes|=1),e)}var Nw=nr.ReactCurrentOwner,Lt=!1;function _t(e,t,n,r){t.child=e===null?Kv(t,null,n,r):Ps(t,e.child,n,r)}function Op(e,t,n,r,o){n=n.render;var s=t.ref;return is(t,o),r=Ad(e,t,n,r,s,o),n=Nd(),e!==null&&!Lt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Zn(e,t,o)):(Ne&&n&&Sd(t),t.flags|=1,_t(e,t,r,o),t.child)}function Mp(e,t,n,r,o){if(e===null){var s=n.type;return typeof s=="function"&&!Bd(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,wy(e,t,s,r,o)):(e=Za(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&o)){var i=s.memoizedProps;if(n=n.compare,n=n!==null?n:Oi,n(i,r)&&e.ref===t.ref)return Zn(e,t,o)}return t.flags|=1,e=Mr(s,r),e.ref=t.ref,e.return=t,t.child=e}function wy(e,t,n,r,o){if(e!==null){var s=e.memoizedProps;if(Oi(s,r)&&e.ref===t.ref)if(Lt=!1,t.pendingProps=r=s,(e.lanes&o)!==0)e.flags&131072&&(Lt=!0);else return t.lanes=e.lanes,Zn(e,t,o)}return tf(e,t,n,r,o)}function _y(e,t,n){var r=t.pendingProps,o=r.children,s=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Pe(es,Vt),Vt|=n;else{if(!(n&1073741824))return e=s!==null?s.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Pe(es,Vt),Vt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,Pe(es,Vt),Vt|=r}else s!==null?(r=s.baseLanes|n,t.memoizedState=null):r=n,Pe(es,Vt),Vt|=r;return _t(e,t,o,n),t.child}function Ey(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function tf(e,t,n,r,o){var s=Dt(n)?Eo:vt.current;return s=Es(t,s),is(t,o),n=Ad(e,t,n,r,s,o),r=Nd(),e!==null&&!Lt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Zn(e,t,o)):(Ne&&r&&Sd(t),t.flags|=1,_t(e,t,n,o),t.child)}function Lp(e,t,n,r,o){if(Dt(n)){var s=!0;Sl(t)}else s=!1;if(is(t,o),t.stateNode===null)Ya(e,t),yy(t,n,r),Zc(t,n,r,o),r=!0;else if(e===null){var i=t.stateNode,a=t.memoizedProps;i.props=a;var l=i.context,u=n.contextType;typeof u=="object"&&u!==null?u=fn(u):(u=Dt(n)?Eo:vt.current,u=Es(t,u));var f=n.getDerivedStateFromProps,c=typeof f=="function"||typeof i.getSnapshotBeforeUpdate=="function";c||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(a!==r||l!==u)&&Tp(t,i,r,u),cr=!1;var d=t.memoizedState;i.state=d,bl(t,r,i,o),l=t.memoizedState,a!==r||d!==l||Ft.current||cr?(typeof f=="function"&&(Jc(t,n,f,r),l=t.memoizedState),(a=cr||kp(t,n,a,r,d,l,u))?(c||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),i.props=r,i.state=l,i.context=u,r=a):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,Xv(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:mn(t.type,a),i.props=u,c=t.pendingProps,d=i.context,l=n.contextType,typeof l=="object"&&l!==null?l=fn(l):(l=Dt(n)?Eo:vt.current,l=Es(t,l));var h=n.getDerivedStateFromProps;(f=typeof h=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(a!==c||d!==l)&&Tp(t,i,r,l),cr=!1,d=t.memoizedState,i.state=d,bl(t,r,i,o);var m=t.memoizedState;a!==c||d!==m||Ft.current||cr?(typeof h=="function"&&(Jc(t,n,h,r),m=t.memoizedState),(u=cr||kp(t,n,u,r,d,m,l)||!1)?(f||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,m,l),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,m,l)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),i.props=r,i.state=m,i.context=l,r=u):(typeof i.componentDidUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return nf(e,t,n,r,s,o)}function nf(e,t,n,r,o,s){Ey(e,t);var i=(t.flags&128)!==0;if(!r&&!i)return o&&xp(t,n,!1),Zn(e,t,s);r=t.stateNode,Nw.current=t;var a=i&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&i?(t.child=Ps(t,e.child,null,s),t.child=Ps(t,null,a,s)):_t(e,t,a,s),t.memoizedState=r.state,o&&xp(t,n,!0),t.child}function by(e){var t=e.stateNode;t.pendingContext?Sp(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Sp(e,t.context,!1),Cd(e,t.containerInfo)}function jp(e,t,n,r,o){return bs(),wd(o),t.flags|=256,_t(e,t,n,r),t.child}var rf={dehydrated:null,treeContext:null,retryLane:0};function of(e){return{baseLanes:e,cachePool:null,transitions:null}}function Py(e,t,n){var r=t.pendingProps,o=Oe.current,s=!1,i=(t.flags&128)!==0,a;if((a=i)||(a=e!==null&&e.memoizedState===null?!1:(o&2)!==0),a?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),Pe(Oe,o&1),e===null)return Yc(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(i=r.children,e=r.fallback,s?(r=t.mode,s=t.child,i={mode:"hidden",children:i},!(r&1)&&s!==null?(s.childLanes=0,s.pendingProps=i):s=tu(i,r,0,null),e=So(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=of(n),t.memoizedState=rf,e):Ld(t,i));if(o=e.memoizedState,o!==null&&(a=o.dehydrated,a!==null))return Ow(e,t,i,r,a,o,n);if(s){s=r.fallback,i=t.mode,o=e.child,a=o.sibling;var l={mode:"hidden",children:r.children};return!(i&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=Mr(o,l),r.subtreeFlags=o.subtreeFlags&14680064),a!==null?s=Mr(a,s):(s=So(s,i,n,null),s.flags|=2),s.return=t,r.return=t,r.sibling=s,t.child=r,r=s,s=t.child,i=e.child.memoizedState,i=i===null?of(n):{baseLanes:i.baseLanes|n,cachePool:null,transitions:i.transitions},s.memoizedState=i,s.childLanes=e.childLanes&~n,t.memoizedState=rf,r}return s=e.child,e=s.sibling,r=Mr(s,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Ld(e,t){return t=tu({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Ta(e,t,n,r){return r!==null&&wd(r),Ps(t,e.child,null,n),e=Ld(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Ow(e,t,n,r,o,s,i){if(n)return t.flags&256?(t.flags&=-257,r=Gu(Error(F(422))),Ta(e,t,i,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=r.fallback,o=t.mode,r=tu({mode:"visible",children:r.children},o,0,null),s=So(s,o,i,null),s.flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,t.mode&1&&Ps(t,e.child,null,i),t.child.memoizedState=of(i),t.memoizedState=rf,s);if(!(t.mode&1))return Ta(e,t,i,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var a=r.dgst;return r=a,s=Error(F(419)),r=Gu(s,r,void 0),Ta(e,t,i,r)}if(a=(i&e.childLanes)!==0,Lt||a){if(r=Ze,r!==null){switch(i&-i){case 4:o=2;break;case 16:o=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:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|i)?0:o,o!==0&&o!==s.retryLane&&(s.retryLane=o,Jn(e,o),wn(r,e,o,-1))}return zd(),r=Gu(Error(F(421))),Ta(e,t,i,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=Qw.bind(null,e),o._reactRetry=t,null):(e=s.treeContext,qt=Ir(o.nextSibling),Gt=t,Ne=!0,yn=null,e!==null&&(sn[an++]=Qn,sn[an++]=qn,sn[an++]=bo,Qn=e.id,qn=e.overflow,bo=t),t=Ld(t,r.children),t.flags|=4096,t)}function Fp(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Xc(e.return,t,n)}function Ku(e,t,n,r,o){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=o)}function Ry(e,t,n){var r=t.pendingProps,o=r.revealOrder,s=r.tail;if(_t(e,t,r.children,n),r=Oe.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Fp(e,n,t);else if(e.tag===19)Fp(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Pe(Oe,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&Pl(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Ku(t,!1,o,n,s);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Pl(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Ku(t,!0,n,null,s);break;case"together":Ku(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ya(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Zn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Ro|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(F(153));if(t.child!==null){for(e=t.child,n=Mr(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Mr(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Mw(e,t,n){switch(t.tag){case 3:by(t),bs();break;case 5:Jv(t);break;case 1:Dt(t.type)&&Sl(t);break;case 4:Cd(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Pe(_l,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Pe(Oe,Oe.current&1),t.flags|=128,null):n&t.child.childLanes?Py(e,t,n):(Pe(Oe,Oe.current&1),e=Zn(e,t,n),e!==null?e.sibling:null);Pe(Oe,Oe.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Ry(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),Pe(Oe,Oe.current),r)break;return null;case 22:case 23:return t.lanes=0,_y(e,t,n)}return Zn(e,t,n)}var Cy,sf,ky,Ty;Cy=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};sf=function(){};ky=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,to(Mn.current);var s=null;switch(n){case"input":o=Cc(e,o),r=Cc(e,r),s=[];break;case"select":o=Le({},o,{value:void 0}),r=Le({},r,{value:void 0}),s=[];break;case"textarea":o=Ic(e,o),r=Ic(e,r),s=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=vl)}Nc(n,r);var i;n=null;for(u in o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var a=o[u];for(i in a)a.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Ri.hasOwnProperty(u)?s||(s=[]):(s=s||[]).push(u,null));for(u in r){var l=r[u];if(a=o!=null?o[u]:void 0,r.hasOwnProperty(u)&&l!==a&&(l!=null||a!=null))if(u==="style")if(a){for(i in a)!a.hasOwnProperty(i)||l&&l.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in l)l.hasOwnProperty(i)&&a[i]!==l[i]&&(n||(n={}),n[i]=l[i])}else n||(s||(s=[]),s.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(s=s||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(s=s||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Ri.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&Ce("scroll",e),s||a===l||(s=[])):(s=s||[]).push(u,l))}n&&(s=s||[]).push("style",n);var u=s;(t.updateQueue=u)&&(t.flags|=4)}};Ty=function(e,t,n,r){n!==r&&(t.flags|=4)};function Ks(e,t){if(!Ne)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ht(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Lw(e,t,n){var r=t.pendingProps;switch(xd(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ht(t),null;case 1:return Dt(t.type)&&yl(),ht(t),null;case 3:return r=t.stateNode,Rs(),ke(Ft),ke(vt),Td(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Ca(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,yn!==null&&(pf(yn),yn=null))),sf(e,t),ht(t),null;case 5:kd(t);var o=to(Di.current);if(n=t.type,e!==null&&t.stateNode!=null)ky(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(F(166));return ht(t),null}if(e=to(Mn.current),Ca(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[An]=t,r[ji]=s,e=(t.mode&1)!==0,n){case"dialog":Ce("cancel",r),Ce("close",r);break;case"iframe":case"object":case"embed":Ce("load",r);break;case"video":case"audio":for(o=0;o<ci.length;o++)Ce(ci[o],r);break;case"source":Ce("error",r);break;case"img":case"image":case"link":Ce("error",r),Ce("load",r);break;case"details":Ce("toggle",r);break;case"input":Qh(r,s),Ce("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},Ce("invalid",r);break;case"textarea":Gh(r,s),Ce("invalid",r)}Nc(n,s),o=null;for(var i in s)if(s.hasOwnProperty(i)){var a=s[i];i==="children"?typeof a=="string"?r.textContent!==a&&(s.suppressHydrationWarning!==!0&&Ra(r.textContent,a,e),o=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(s.suppressHydrationWarning!==!0&&Ra(r.textContent,a,e),o=["children",""+a]):Ri.hasOwnProperty(i)&&a!=null&&i==="onScroll"&&Ce("scroll",r)}switch(n){case"input":ya(r),qh(r,s,!0);break;case"textarea":ya(r),Kh(r);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(r.onclick=vl)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{i=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=rv(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=i.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[An]=t,e[ji]=r,Cy(e,t,!1,!1),t.stateNode=e;e:{switch(i=Oc(n,r),n){case"dialog":Ce("cancel",e),Ce("close",e),o=r;break;case"iframe":case"object":case"embed":Ce("load",e),o=r;break;case"video":case"audio":for(o=0;o<ci.length;o++)Ce(ci[o],e);o=r;break;case"source":Ce("error",e),o=r;break;case"img":case"image":case"link":Ce("error",e),Ce("load",e),o=r;break;case"details":Ce("toggle",e),o=r;break;case"input":Qh(e,r),o=Cc(e,r),Ce("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Le({},r,{value:void 0}),Ce("invalid",e);break;case"textarea":Gh(e,r),o=Ic(e,r),Ce("invalid",e);break;default:o=r}Nc(n,o),a=o;for(s in a)if(a.hasOwnProperty(s)){var l=a[s];s==="style"?iv(e,l):s==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&ov(e,l)):s==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&Ci(e,l):typeof l=="number"&&Ci(e,""+l):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(Ri.hasOwnProperty(s)?l!=null&&s==="onScroll"&&Ce("scroll",e):l!=null&&sd(e,s,l,i))}switch(n){case"input":ya(e),qh(e,r,!1);break;case"textarea":ya(e),Kh(e);break;case"option":r.value!=null&&e.setAttribute("value",""+$r(r.value));break;case"select":e.multiple=!!r.multiple,s=r.value,s!=null?ns(e,!!r.multiple,s,!1):r.defaultValue!=null&&ns(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=vl)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return ht(t),null;case 6:if(e&&t.stateNode!=null)Ty(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(F(166));if(n=to(Di.current),to(Mn.current),Ca(t)){if(r=t.stateNode,n=t.memoizedProps,r[An]=t,(s=r.nodeValue!==n)&&(e=Gt,e!==null))switch(e.tag){case 3:Ra(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Ra(r.nodeValue,n,(e.mode&1)!==0)}s&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[An]=t,t.stateNode=r}return ht(t),null;case 13:if(ke(Oe),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ne&&qt!==null&&t.mode&1&&!(t.flags&128))qv(),bs(),t.flags|=98560,s=!1;else if(s=Ca(t),r!==null&&r.dehydrated!==null){if(e===null){if(!s)throw Error(F(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(F(317));s[An]=t}else bs(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;ht(t),s=!1}else yn!==null&&(pf(yn),yn=null),s=!0;if(!s)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||Oe.current&1?Ke===0&&(Ke=3):zd())),t.updateQueue!==null&&(t.flags|=4),ht(t),null);case 4:return Rs(),sf(e,t),e===null&&Mi(t.stateNode.containerInfo),ht(t),null;case 10:return bd(t.type._context),ht(t),null;case 17:return Dt(t.type)&&yl(),ht(t),null;case 19:if(ke(Oe),s=t.memoizedState,s===null)return ht(t),null;if(r=(t.flags&128)!==0,i=s.rendering,i===null)if(r)Ks(s,!1);else{if(Ke!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=Pl(e),i!==null){for(t.flags|=128,Ks(s,!1),r=i.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)s=n,e=r,s.flags&=14680066,i=s.alternate,i===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=i.childLanes,s.lanes=i.lanes,s.child=i.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=i.memoizedProps,s.memoizedState=i.memoizedState,s.updateQueue=i.updateQueue,s.type=i.type,e=i.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Pe(Oe,Oe.current&1|2),t.child}e=e.sibling}s.tail!==null&&Be()>ks&&(t.flags|=128,r=!0,Ks(s,!1),t.lanes=4194304)}else{if(!r)if(e=Pl(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ks(s,!0),s.tail===null&&s.tailMode==="hidden"&&!i.alternate&&!Ne)return ht(t),null}else 2*Be()-s.renderingStartTime>ks&&n!==1073741824&&(t.flags|=128,r=!0,Ks(s,!1),t.lanes=4194304);s.isBackwards?(i.sibling=t.child,t.child=i):(n=s.last,n!==null?n.sibling=i:t.child=i,s.last=i)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Be(),t.sibling=null,n=Oe.current,Pe(Oe,r?n&1|2:n&1),t):(ht(t),null);case 22:case 23:return Ud(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Vt&1073741824&&(ht(t),t.subtreeFlags&6&&(t.flags|=8192)):ht(t),null;case 24:return null;case 25:return null}throw Error(F(156,t.tag))}function jw(e,t){switch(xd(t),t.tag){case 1:return Dt(t.type)&&yl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Rs(),ke(Ft),ke(vt),Td(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return kd(t),null;case 13:if(ke(Oe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(F(340));bs()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ke(Oe),null;case 4:return Rs(),null;case 10:return bd(t.type._context),null;case 22:case 23:return Ud(),null;case 24:return null;default:return null}}var Ia=!1,gt=!1,Fw=typeof WeakSet=="function"?WeakSet:Set,G=null;function Zo(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){$e(e,t,r)}else n.current=null}function af(e,t,n){try{n()}catch(r){$e(e,t,r)}}var Dp=!1;function Dw(e,t){if(Hc=pl,e=Mv(),yd(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var i=0,a=-1,l=-1,u=0,f=0,c=e,d=null;t:for(;;){for(var h;c!==n||o!==0&&c.nodeType!==3||(a=i+o),c!==s||r!==0&&c.nodeType!==3||(l=i+r),c.nodeType===3&&(i+=c.nodeValue.length),(h=c.firstChild)!==null;)d=c,c=h;for(;;){if(c===e)break t;if(d===n&&++u===o&&(a=i),d===s&&++f===r&&(l=i),(h=c.nextSibling)!==null)break;c=d,d=c.parentNode}c=h}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Wc={focusedElem:e,selectionRange:n},pl=!1,G=t;G!==null;)if(t=G,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,G=e;else for(;G!==null;){t=G;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var g=m.memoizedProps,y=m.memoizedState,p=t.stateNode,v=p.getSnapshotBeforeUpdate(t.elementType===t.type?g:mn(t.type,g),y);p.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var S=t.stateNode.containerInfo;S.nodeType===1?S.textContent="":S.nodeType===9&&S.documentElement&&S.removeChild(S.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(F(163))}}catch(w){$e(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,G=e;break}G=t.return}return m=Dp,Dp=!1,m}function xi(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var s=o.destroy;o.destroy=void 0,s!==void 0&&af(t,n,s)}o=o.next}while(o!==r)}}function Zl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function lf(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Iy(e){var t=e.alternate;t!==null&&(e.alternate=null,Iy(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[An],delete t[ji],delete t[qc],delete t[xw],delete t[ww])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Ay(e){return e.tag===5||e.tag===3||e.tag===4}function $p(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ay(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function uf(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=vl));else if(r!==4&&(e=e.child,e!==null))for(uf(e,t,n),e=e.sibling;e!==null;)uf(e,t,n),e=e.sibling}function cf(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(cf(e,t,n),e=e.sibling;e!==null;)cf(e,t,n),e=e.sibling}var ot=null,vn=!1;function ar(e,t,n){for(n=n.child;n!==null;)Ny(e,t,n),n=n.sibling}function Ny(e,t,n){if(On&&typeof On.onCommitFiberUnmount=="function")try{On.onCommitFiberUnmount(Vl,n)}catch{}switch(n.tag){case 5:gt||Zo(n,t);case 6:var r=ot,o=vn;ot=null,ar(e,t,n),ot=r,vn=o,ot!==null&&(vn?(e=ot,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ot.removeChild(n.stateNode));break;case 18:ot!==null&&(vn?(e=ot,n=n.stateNode,e.nodeType===8?Bu(e.parentNode,n):e.nodeType===1&&Bu(e,n),Ai(e)):Bu(ot,n.stateNode));break;case 4:r=ot,o=vn,ot=n.stateNode.containerInfo,vn=!0,ar(e,t,n),ot=r,vn=o;break;case 0:case 11:case 14:case 15:if(!gt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var s=o,i=s.destroy;s=s.tag,i!==void 0&&(s&2||s&4)&&af(n,t,i),o=o.next}while(o!==r)}ar(e,t,n);break;case 1:if(!gt&&(Zo(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){$e(n,t,a)}ar(e,t,n);break;case 21:ar(e,t,n);break;case 22:n.mode&1?(gt=(r=gt)||n.memoizedState!==null,ar(e,t,n),gt=r):ar(e,t,n);break;default:ar(e,t,n)}}function Up(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Fw),t.forEach(function(r){var o=qw.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function pn(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var s=e,i=t,a=i;e:for(;a!==null;){switch(a.tag){case 5:ot=a.stateNode,vn=!1;break e;case 3:ot=a.stateNode.containerInfo,vn=!0;break e;case 4:ot=a.stateNode.containerInfo,vn=!0;break e}a=a.return}if(ot===null)throw Error(F(160));Ny(s,i,o),ot=null,vn=!1;var l=o.alternate;l!==null&&(l.return=null),o.return=null}catch(u){$e(o,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Oy(t,e),t=t.sibling}function Oy(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(pn(t,e),bn(e),r&4){try{xi(3,e,e.return),Zl(3,e)}catch(g){$e(e,e.return,g)}try{xi(5,e,e.return)}catch(g){$e(e,e.return,g)}}break;case 1:pn(t,e),bn(e),r&512&&n!==null&&Zo(n,n.return);break;case 5:if(pn(t,e),bn(e),r&512&&n!==null&&Zo(n,n.return),e.flags&32){var o=e.stateNode;try{Ci(o,"")}catch(g){$e(e,e.return,g)}}if(r&4&&(o=e.stateNode,o!=null)){var s=e.memoizedProps,i=n!==null?n.memoizedProps:s,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&s.type==="radio"&&s.name!=null&&tv(o,s),Oc(a,i);var u=Oc(a,s);for(i=0;i<l.length;i+=2){var f=l[i],c=l[i+1];f==="style"?iv(o,c):f==="dangerouslySetInnerHTML"?ov(o,c):f==="children"?Ci(o,c):sd(o,f,c,u)}switch(a){case"input":kc(o,s);break;case"textarea":nv(o,s);break;case"select":var d=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!s.multiple;var h=s.value;h!=null?ns(o,!!s.multiple,h,!1):d!==!!s.multiple&&(s.defaultValue!=null?ns(o,!!s.multiple,s.defaultValue,!0):ns(o,!!s.multiple,s.multiple?[]:"",!1))}o[ji]=s}catch(g){$e(e,e.return,g)}}break;case 6:if(pn(t,e),bn(e),r&4){if(e.stateNode===null)throw Error(F(162));o=e.stateNode,s=e.memoizedProps;try{o.nodeValue=s}catch(g){$e(e,e.return,g)}}break;case 3:if(pn(t,e),bn(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Ai(t.containerInfo)}catch(g){$e(e,e.return,g)}break;case 4:pn(t,e),bn(e);break;case 13:pn(t,e),bn(e),o=e.child,o.flags&8192&&(s=o.memoizedState!==null,o.stateNode.isHidden=s,!s||o.alternate!==null&&o.alternate.memoizedState!==null||(Dd=Be())),r&4&&Up(e);break;case 22:if(f=n!==null&&n.memoizedState!==null,e.mode&1?(gt=(u=gt)||f,pn(t,e),gt=u):pn(t,e),bn(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!f&&e.mode&1)for(G=e,f=e.child;f!==null;){for(c=G=f;G!==null;){switch(d=G,h=d.child,d.tag){case 0:case 11:case 14:case 15:xi(4,d,d.return);break;case 1:Zo(d,d.return);var m=d.stateNode;if(typeof m.componentWillUnmount=="function"){r=d,n=d.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(g){$e(r,n,g)}}break;case 5:Zo(d,d.return);break;case 22:if(d.memoizedState!==null){Bp(c);continue}}h!==null?(h.return=d,G=h):Bp(c)}f=f.sibling}e:for(f=null,c=e;;){if(c.tag===5){if(f===null){f=c;try{o=c.stateNode,u?(s=o.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(a=c.stateNode,l=c.memoizedProps.style,i=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=sv("display",i))}catch(g){$e(e,e.return,g)}}}else if(c.tag===6){if(f===null)try{c.stateNode.nodeValue=u?"":c.memoizedProps}catch(g){$e(e,e.return,g)}}else if((c.tag!==22&&c.tag!==23||c.memoizedState===null||c===e)&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===e)break e;for(;c.sibling===null;){if(c.return===null||c.return===e)break e;f===c&&(f=null),c=c.return}f===c&&(f=null),c.sibling.return=c.return,c=c.sibling}}break;case 19:pn(t,e),bn(e),r&4&&Up(e);break;case 21:break;default:pn(t,e),bn(e)}}function bn(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Ay(n)){var r=n;break e}n=n.return}throw Error(F(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(Ci(o,""),r.flags&=-33);var s=$p(e);cf(e,s,o);break;case 3:case 4:var i=r.stateNode.containerInfo,a=$p(e);uf(e,a,i);break;default:throw Error(F(161))}}catch(l){$e(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function $w(e,t,n){G=e,My(e)}function My(e,t,n){for(var r=(e.mode&1)!==0;G!==null;){var o=G,s=o.child;if(o.tag===22&&r){var i=o.memoizedState!==null||Ia;if(!i){var a=o.alternate,l=a!==null&&a.memoizedState!==null||gt;a=Ia;var u=gt;if(Ia=i,(gt=l)&&!u)for(G=o;G!==null;)i=G,l=i.child,i.tag===22&&i.memoizedState!==null?Hp(o):l!==null?(l.return=i,G=l):Hp(o);for(;s!==null;)G=s,My(s),s=s.sibling;G=o,Ia=a,gt=u}zp(e)}else o.subtreeFlags&8772&&s!==null?(s.return=o,G=s):zp(e)}}function zp(e){for(;G!==null;){var t=G;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:gt||Zl(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!gt)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:mn(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&Pp(t,s,r);break;case 3:var i=t.updateQueue;if(i!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Pp(t,i,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var f=u.memoizedState;if(f!==null){var c=f.dehydrated;c!==null&&Ai(c)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(F(163))}gt||t.flags&512&&lf(t)}catch(d){$e(t,t.return,d)}}if(t===e){G=null;break}if(n=t.sibling,n!==null){n.return=t.return,G=n;break}G=t.return}}function Bp(e){for(;G!==null;){var t=G;if(t===e){G=null;break}var n=t.sibling;if(n!==null){n.return=t.return,G=n;break}G=t.return}}function Hp(e){for(;G!==null;){var t=G;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Zl(4,t)}catch(l){$e(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(l){$e(t,o,l)}}var s=t.return;try{lf(t)}catch(l){$e(t,s,l)}break;case 5:var i=t.return;try{lf(t)}catch(l){$e(t,i,l)}}}catch(l){$e(t,t.return,l)}if(t===e){G=null;break}var a=t.sibling;if(a!==null){a.return=t.return,G=a;break}G=t.return}}var Uw=Math.ceil,kl=nr.ReactCurrentDispatcher,jd=nr.ReactCurrentOwner,cn=nr.ReactCurrentBatchConfig,he=0,Ze=null,Ve=null,it=0,Vt=0,es=Vr(0),Ke=0,Bi=null,Ro=0,eu=0,Fd=0,wi=null,Ot=null,Dd=0,ks=1/0,Bn=null,Tl=!1,ff=null,Nr=null,Aa=!1,Er=null,Il=0,_i=0,df=null,Xa=-1,Ja=0;function Et(){return he&6?Be():Xa!==-1?Xa:Xa=Be()}function Or(e){return e.mode&1?he&2&&it!==0?it&-it:Ew.transition!==null?(Ja===0&&(Ja=yv()),Ja):(e=xe,e!==0||(e=window.event,e=e===void 0?16:Pv(e.type)),e):1}function wn(e,t,n,r){if(50<_i)throw _i=0,df=null,Error(F(185));ra(e,n,r),(!(he&2)||e!==Ze)&&(e===Ze&&(!(he&2)&&(eu|=n),Ke===4&&hr(e,it)),$t(e,r),n===1&&he===0&&!(t.mode&1)&&(ks=Be()+500,Yl&&Qr()))}function $t(e,t){var n=e.callbackNode;Ex(e,t);var r=hl(e,e===Ze?it:0);if(r===0)n!==null&&Jh(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Jh(n),t===1)e.tag===0?_w(Wp.bind(null,e)):Wv(Wp.bind(null,e)),yw(function(){!(he&6)&&Qr()}),n=null;else{switch(Sv(r)){case 1:n=cd;break;case 4:n=gv;break;case 16:n=dl;break;case 536870912:n=vv;break;default:n=dl}n=By(n,Ly.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Ly(e,t){if(Xa=-1,Ja=0,he&6)throw Error(F(327));var n=e.callbackNode;if(as()&&e.callbackNode!==n)return null;var r=hl(e,e===Ze?it:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Al(e,r);else{t=r;var o=he;he|=2;var s=Fy();(Ze!==e||it!==t)&&(Bn=null,ks=Be()+500,yo(e,t));do try{Hw();break}catch(a){jy(e,a)}while(!0);Ed(),kl.current=s,he=o,Ve!==null?t=0:(Ze=null,it=0,t=Ke)}if(t!==0){if(t===2&&(o=Dc(e),o!==0&&(r=o,t=hf(e,o))),t===1)throw n=Bi,yo(e,0),hr(e,r),$t(e,Be()),n;if(t===6)hr(e,r);else{if(o=e.current.alternate,!(r&30)&&!zw(o)&&(t=Al(e,r),t===2&&(s=Dc(e),s!==0&&(r=s,t=hf(e,s))),t===1))throw n=Bi,yo(e,0),hr(e,r),$t(e,Be()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(F(345));case 2:Jr(e,Ot,Bn);break;case 3:if(hr(e,r),(r&130023424)===r&&(t=Dd+500-Be(),10<t)){if(hl(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){Et(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Qc(Jr.bind(null,e,Ot,Bn),t);break}Jr(e,Ot,Bn);break;case 4:if(hr(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var i=31-xn(r);s=1<<i,i=t[i],i>o&&(o=i),r&=~s}if(r=o,r=Be()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Uw(r/1960))-r,10<r){e.timeoutHandle=Qc(Jr.bind(null,e,Ot,Bn),r);break}Jr(e,Ot,Bn);break;case 5:Jr(e,Ot,Bn);break;default:throw Error(F(329))}}}return $t(e,Be()),e.callbackNode===n?Ly.bind(null,e):null}function hf(e,t){var n=wi;return e.current.memoizedState.isDehydrated&&(yo(e,t).flags|=256),e=Al(e,t),e!==2&&(t=Ot,Ot=n,t!==null&&pf(t)),e}function pf(e){Ot===null?Ot=e:Ot.push.apply(Ot,e)}function zw(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var o=n[r],s=o.getSnapshot;o=o.value;try{if(!_n(s(),o))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function hr(e,t){for(t&=~Fd,t&=~eu,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-xn(t),r=1<<n;e[n]=-1,t&=~r}}function Wp(e){if(he&6)throw Error(F(327));as();var t=hl(e,0);if(!(t&1))return $t(e,Be()),null;var n=Al(e,t);if(e.tag!==0&&n===2){var r=Dc(e);r!==0&&(t=r,n=hf(e,r))}if(n===1)throw n=Bi,yo(e,0),hr(e,t),$t(e,Be()),n;if(n===6)throw Error(F(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Jr(e,Ot,Bn),$t(e,Be()),null}function $d(e,t){var n=he;he|=1;try{return e(t)}finally{he=n,he===0&&(ks=Be()+500,Yl&&Qr())}}function Co(e){Er!==null&&Er.tag===0&&!(he&6)&&as();var t=he;he|=1;var n=cn.transition,r=xe;try{if(cn.transition=null,xe=1,e)return e()}finally{xe=r,cn.transition=n,he=t,!(he&6)&&Qr()}}function Ud(){Vt=es.current,ke(es)}function yo(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,vw(n)),Ve!==null)for(n=Ve.return;n!==null;){var r=n;switch(xd(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&yl();break;case 3:Rs(),ke(Ft),ke(vt),Td();break;case 5:kd(r);break;case 4:Rs();break;case 13:ke(Oe);break;case 19:ke(Oe);break;case 10:bd(r.type._context);break;case 22:case 23:Ud()}n=n.return}if(Ze=e,Ve=e=Mr(e.current,null),it=Vt=t,Ke=0,Bi=null,Fd=eu=Ro=0,Ot=wi=null,eo!==null){for(t=0;t<eo.length;t++)if(n=eo[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,s=n.pending;if(s!==null){var i=s.next;s.next=o,r.next=i}n.pending=r}eo=null}return e}function jy(e,t){do{var n=Ve;try{if(Ed(),Ga.current=Cl,Rl){for(var r=Me.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}Rl=!1}if(Po=0,Je=Ge=Me=null,Si=!1,$i=0,jd.current=null,n===null||n.return===null){Ke=1,Bi=t,Ve=null;break}e:{var s=e,i=n.return,a=n,l=t;if(t=it,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,f=a,c=f.tag;if(!(f.mode&1)&&(c===0||c===11||c===15)){var d=f.alternate;d?(f.updateQueue=d.updateQueue,f.memoizedState=d.memoizedState,f.lanes=d.lanes):(f.updateQueue=null,f.memoizedState=null)}var h=Ap(i);if(h!==null){h.flags&=-257,Np(h,i,a,s,t),h.mode&1&&Ip(s,u,t),t=h,l=u;var m=t.updateQueue;if(m===null){var g=new Set;g.add(l),t.updateQueue=g}else m.add(l);break e}else{if(!(t&1)){Ip(s,u,t),zd();break e}l=Error(F(426))}}else if(Ne&&a.mode&1){var y=Ap(i);if(y!==null){!(y.flags&65536)&&(y.flags|=256),Np(y,i,a,s,t),wd(Cs(l,a));break e}}s=l=Cs(l,a),Ke!==4&&(Ke=2),wi===null?wi=[s]:wi.push(s),s=i;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var p=Sy(s,l,t);bp(s,p);break e;case 1:a=l;var v=s.type,S=s.stateNode;if(!(s.flags&128)&&(typeof v.getDerivedStateFromError=="function"||S!==null&&typeof S.componentDidCatch=="function"&&(Nr===null||!Nr.has(S)))){s.flags|=65536,t&=-t,s.lanes|=t;var w=xy(s,a,t);bp(s,w);break e}}s=s.return}while(s!==null)}$y(n)}catch(_){t=_,Ve===n&&n!==null&&(Ve=n=n.return);continue}break}while(!0)}function Fy(){var e=kl.current;return kl.current=Cl,e===null?Cl:e}function zd(){(Ke===0||Ke===3||Ke===2)&&(Ke=4),Ze===null||!(Ro&268435455)&&!(eu&268435455)||hr(Ze,it)}function Al(e,t){var n=he;he|=2;var r=Fy();(Ze!==e||it!==t)&&(Bn=null,yo(e,t));do try{Bw();break}catch(o){jy(e,o)}while(!0);if(Ed(),he=n,kl.current=r,Ve!==null)throw Error(F(261));return Ze=null,it=0,Ke}function Bw(){for(;Ve!==null;)Dy(Ve)}function Hw(){for(;Ve!==null&&!px();)Dy(Ve)}function Dy(e){var t=zy(e.alternate,e,Vt);e.memoizedProps=e.pendingProps,t===null?$y(e):Ve=t,jd.current=null}function $y(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=jw(n,t),n!==null){n.flags&=32767,Ve=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ke=6,Ve=null;return}}else if(n=Lw(n,t,Vt),n!==null){Ve=n;return}if(t=t.sibling,t!==null){Ve=t;return}Ve=t=e}while(t!==null);Ke===0&&(Ke=5)}function Jr(e,t,n){var r=xe,o=cn.transition;try{cn.transition=null,xe=1,Ww(e,t,n,r)}finally{cn.transition=o,xe=r}return null}function Ww(e,t,n,r){do as();while(Er!==null);if(he&6)throw Error(F(327));n=e.finishedWork;var o=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(F(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(bx(e,s),e===Ze&&(Ve=Ze=null,it=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Aa||(Aa=!0,By(dl,function(){return as(),null})),s=(n.flags&15990)!==0,n.subtreeFlags&15990||s){s=cn.transition,cn.transition=null;var i=xe;xe=1;var a=he;he|=4,jd.current=null,Dw(e,n),Oy(n,e),cw(Wc),pl=!!Hc,Wc=Hc=null,e.current=n,$w(n),mx(),he=a,xe=i,cn.transition=s}else e.current=n;if(Aa&&(Aa=!1,Er=e,Il=o),s=e.pendingLanes,s===0&&(Nr=null),yx(n.stateNode),$t(e,Be()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(Tl)throw Tl=!1,e=ff,ff=null,e;return Il&1&&e.tag!==0&&as(),s=e.pendingLanes,s&1?e===df?_i++:(_i=0,df=e):_i=0,Qr(),null}function as(){if(Er!==null){var e=Sv(Il),t=cn.transition,n=xe;try{if(cn.transition=null,xe=16>e?16:e,Er===null)var r=!1;else{if(e=Er,Er=null,Il=0,he&6)throw Error(F(331));var o=he;for(he|=4,G=e.current;G!==null;){var s=G,i=s.child;if(G.flags&16){var a=s.deletions;if(a!==null){for(var l=0;l<a.length;l++){var u=a[l];for(G=u;G!==null;){var f=G;switch(f.tag){case 0:case 11:case 15:xi(8,f,s)}var c=f.child;if(c!==null)c.return=f,G=c;else for(;G!==null;){f=G;var d=f.sibling,h=f.return;if(Iy(f),f===u){G=null;break}if(d!==null){d.return=h,G=d;break}G=h}}}var m=s.alternate;if(m!==null){var g=m.child;if(g!==null){m.child=null;do{var y=g.sibling;g.sibling=null,g=y}while(g!==null)}}G=s}}if(s.subtreeFlags&2064&&i!==null)i.return=s,G=i;else e:for(;G!==null;){if(s=G,s.flags&2048)switch(s.tag){case 0:case 11:case 15:xi(9,s,s.return)}var p=s.sibling;if(p!==null){p.return=s.return,G=p;break e}G=s.return}}var v=e.current;for(G=v;G!==null;){i=G;var S=i.child;if(i.subtreeFlags&2064&&S!==null)S.return=i,G=S;else e:for(i=v;G!==null;){if(a=G,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:Zl(9,a)}}catch(_){$e(a,a.return,_)}if(a===i){G=null;break e}var w=a.sibling;if(w!==null){w.return=a.return,G=w;break e}G=a.return}}if(he=o,Qr(),On&&typeof On.onPostCommitFiberRoot=="function")try{On.onPostCommitFiberRoot(Vl,e)}catch{}r=!0}return r}finally{xe=n,cn.transition=t}}return!1}function Vp(e,t,n){t=Cs(n,t),t=Sy(e,t,1),e=Ar(e,t,1),t=Et(),e!==null&&(ra(e,1,t),$t(e,t))}function $e(e,t,n){if(e.tag===3)Vp(e,e,n);else for(;t!==null;){if(t.tag===3){Vp(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Nr===null||!Nr.has(r))){e=Cs(n,e),e=xy(t,e,1),t=Ar(t,e,1),e=Et(),t!==null&&(ra(t,1,e),$t(t,e));break}}t=t.return}}function Vw(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Et(),e.pingedLanes|=e.suspendedLanes&n,Ze===e&&(it&n)===n&&(Ke===4||Ke===3&&(it&130023424)===it&&500>Be()-Dd?yo(e,0):Fd|=n),$t(e,t)}function Uy(e,t){t===0&&(e.mode&1?(t=wa,wa<<=1,!(wa&130023424)&&(wa=4194304)):t=1);var n=Et();e=Jn(e,t),e!==null&&(ra(e,t,n),$t(e,n))}function Qw(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Uy(e,n)}function qw(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(F(314))}r!==null&&r.delete(t),Uy(e,n)}var zy;zy=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ft.current)Lt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Lt=!1,Mw(e,t,n);Lt=!!(e.flags&131072)}else Lt=!1,Ne&&t.flags&1048576&&Vv(t,wl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ya(e,t),e=t.pendingProps;var o=Es(t,vt.current);is(t,n),o=Ad(null,t,r,e,o,n);var s=Nd();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Dt(r)?(s=!0,Sl(t)):s=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Rd(t),o.updater=Jl,t.stateNode=o,o._reactInternals=t,Zc(t,r,e,n),t=nf(null,t,r,!0,s,n)):(t.tag=0,Ne&&s&&Sd(t),_t(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ya(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Kw(r),e=mn(r,e),o){case 0:t=tf(null,t,r,e,n);break e;case 1:t=Lp(null,t,r,e,n);break e;case 11:t=Op(null,t,r,e,n);break e;case 14:t=Mp(null,t,r,mn(r.type,e),n);break e}throw Error(F(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:mn(r,o),tf(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:mn(r,o),Lp(e,t,r,o,n);case 3:e:{if(by(t),e===null)throw Error(F(387));r=t.pendingProps,s=t.memoizedState,o=s.element,Xv(e,t),bl(t,r,null,n);var i=t.memoizedState;if(r=i.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){o=Cs(Error(F(423)),t),t=jp(e,t,r,n,o);break e}else if(r!==o){o=Cs(Error(F(424)),t),t=jp(e,t,r,n,o);break e}else for(qt=Ir(t.stateNode.containerInfo.firstChild),Gt=t,Ne=!0,yn=null,n=Kv(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(bs(),r===o){t=Zn(e,t,n);break e}_t(e,t,r,n)}t=t.child}return t;case 5:return Jv(t),e===null&&Yc(t),r=t.type,o=t.pendingProps,s=e!==null?e.memoizedProps:null,i=o.children,Vc(r,o)?i=null:s!==null&&Vc(r,s)&&(t.flags|=32),Ey(e,t),_t(e,t,i,n),t.child;case 6:return e===null&&Yc(t),null;case 13:return Py(e,t,n);case 4:return Cd(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ps(t,null,r,n):_t(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:mn(r,o),Op(e,t,r,o,n);case 7:return _t(e,t,t.pendingProps,n),t.child;case 8:return _t(e,t,t.pendingProps.children,n),t.child;case 12:return _t(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,s=t.memoizedProps,i=o.value,Pe(_l,r._currentValue),r._currentValue=i,s!==null)if(_n(s.value,i)){if(s.children===o.children&&!Ft.current){t=Zn(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var a=s.dependencies;if(a!==null){i=s.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(s.tag===1){l=Gn(-1,n&-n),l.tag=2;var u=s.updateQueue;if(u!==null){u=u.shared;var f=u.pending;f===null?l.next=l:(l.next=f.next,f.next=l),u.pending=l}}s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),Xc(s.return,n,t),a.lanes|=n;break}l=l.next}}else if(s.tag===10)i=s.type===t.type?null:s.child;else if(s.tag===18){if(i=s.return,i===null)throw Error(F(341));i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),Xc(i,n,t),i=s.sibling}else i=s.child;if(i!==null)i.return=s;else for(i=s;i!==null;){if(i===t){i=null;break}if(s=i.sibling,s!==null){s.return=i.return,i=s;break}i=i.return}s=i}_t(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,is(t,n),o=fn(o),r=r(o),t.flags|=1,_t(e,t,r,n),t.child;case 14:return r=t.type,o=mn(r,t.pendingProps),o=mn(r.type,o),Mp(e,t,r,o,n);case 15:return wy(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:mn(r,o),Ya(e,t),t.tag=1,Dt(r)?(e=!0,Sl(t)):e=!1,is(t,n),yy(t,r,o),Zc(t,r,o,n),nf(null,t,r,!0,e,n);case 19:return Ry(e,t,n);case 22:return _y(e,t,n)}throw Error(F(156,t.tag))};function By(e,t){return mv(e,t)}function Gw(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function un(e,t,n,r){return new Gw(e,t,n,r)}function Bd(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Kw(e){if(typeof e=="function")return Bd(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ad)return 11;if(e===ld)return 14}return 2}function Mr(e,t){var n=e.alternate;return n===null?(n=un(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Za(e,t,n,r,o,s){var i=2;if(r=e,typeof e=="function")Bd(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Wo:return So(n.children,o,s,t);case id:i=8,o|=8;break;case Ec:return e=un(12,n,t,o|2),e.elementType=Ec,e.lanes=s,e;case bc:return e=un(13,n,t,o),e.elementType=bc,e.lanes=s,e;case Pc:return e=un(19,n,t,o),e.elementType=Pc,e.lanes=s,e;case Jg:return tu(n,o,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Yg:i=10;break e;case Xg:i=9;break e;case ad:i=11;break e;case ld:i=14;break e;case ur:i=16,r=null;break e}throw Error(F(130,e==null?e:typeof e,""))}return t=un(i,n,t,o),t.elementType=e,t.type=r,t.lanes=s,t}function So(e,t,n,r){return e=un(7,e,r,t),e.lanes=n,e}function tu(e,t,n,r){return e=un(22,e,r,t),e.elementType=Jg,e.lanes=n,e.stateNode={isHidden:!1},e}function Yu(e,t,n){return e=un(6,e,null,t),e.lanes=n,e}function Xu(e,t,n){return t=un(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Yw(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Au(0),this.expirationTimes=Au(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Au(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Hd(e,t,n,r,o,s,i,a,l){return e=new Yw(e,t,n,a,l),t===1?(t=1,s===!0&&(t|=8)):t=0,s=un(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Rd(s),e}function Xw(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Ho,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Hy(e){if(!e)return Ur;e=e._reactInternals;e:{if(No(e)!==e||e.tag!==1)throw Error(F(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Dt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(F(171))}if(e.tag===1){var n=e.type;if(Dt(n))return Hv(e,n,t)}return t}function Wy(e,t,n,r,o,s,i,a,l){return e=Hd(n,r,!0,e,o,s,i,a,l),e.context=Hy(null),n=e.current,r=Et(),o=Or(n),s=Gn(r,o),s.callback=t??null,Ar(n,s,o),e.current.lanes=o,ra(e,o,r),$t(e,r),e}function nu(e,t,n,r){var o=t.current,s=Et(),i=Or(o);return n=Hy(n),t.context===null?t.context=n:t.pendingContext=n,t=Gn(s,i),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Ar(o,t,i),e!==null&&(wn(e,o,i,s),qa(e,o,i)),i}function Nl(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Qp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Wd(e,t){Qp(e,t),(e=e.alternate)&&Qp(e,t)}function Jw(){return null}var Vy=typeof reportError=="function"?reportError:function(e){console.error(e)};function Vd(e){this._internalRoot=e}ru.prototype.render=Vd.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(F(409));nu(e,t,null,null)};ru.prototype.unmount=Vd.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Co(function(){nu(null,e,null,null)}),t[Xn]=null}};function ru(e){this._internalRoot=e}ru.prototype.unstable_scheduleHydration=function(e){if(e){var t=_v();e={blockedOn:null,target:e,priority:t};for(var n=0;n<dr.length&&t!==0&&t<dr[n].priority;n++);dr.splice(n,0,e),n===0&&bv(e)}};function Qd(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ou(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function qp(){}function Zw(e,t,n,r,o){if(o){if(typeof r=="function"){var s=r;r=function(){var u=Nl(i);s.call(u)}}var i=Wy(t,r,e,0,null,!1,!1,"",qp);return e._reactRootContainer=i,e[Xn]=i.current,Mi(e.nodeType===8?e.parentNode:e),Co(),i}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var a=r;r=function(){var u=Nl(l);a.call(u)}}var l=Hd(e,0,!1,null,null,!1,!1,"",qp);return e._reactRootContainer=l,e[Xn]=l.current,Mi(e.nodeType===8?e.parentNode:e),Co(function(){nu(t,l,n,r)}),l}function su(e,t,n,r,o){var s=n._reactRootContainer;if(s){var i=s;if(typeof o=="function"){var a=o;o=function(){var l=Nl(i);a.call(l)}}nu(t,i,e,o)}else i=Zw(n,t,e,o,r);return Nl(i)}xv=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ui(t.pendingLanes);n!==0&&(fd(t,n|1),$t(t,Be()),!(he&6)&&(ks=Be()+500,Qr()))}break;case 13:Co(function(){var r=Jn(e,1);if(r!==null){var o=Et();wn(r,e,1,o)}}),Wd(e,1)}};dd=function(e){if(e.tag===13){var t=Jn(e,134217728);if(t!==null){var n=Et();wn(t,e,134217728,n)}Wd(e,134217728)}};wv=function(e){if(e.tag===13){var t=Or(e),n=Jn(e,t);if(n!==null){var r=Et();wn(n,e,t,r)}Wd(e,t)}};_v=function(){return xe};Ev=function(e,t){var n=xe;try{return xe=e,t()}finally{xe=n}};Lc=function(e,t,n){switch(t){case"input":if(kc(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=Kl(r);if(!o)throw Error(F(90));ev(r),kc(r,o)}}}break;case"textarea":nv(e,n);break;case"select":t=n.value,t!=null&&ns(e,!!n.multiple,t,!1)}};uv=$d;cv=Co;var e_={usingClientEntryPoint:!1,Events:[sa,Go,Kl,av,lv,$d]},Ys={findFiberByHostInstance:Zr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},t_={bundleType:Ys.bundleType,version:Ys.version,rendererPackageName:Ys.rendererPackageName,rendererConfig:Ys.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:nr.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=hv(e),e===null?null:e.stateNode},findFiberByHostInstance:Ys.findFiberByHostInstance||Jw,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 Na=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Na.isDisabled&&Na.supportsFiber)try{Vl=Na.inject(t_),On=Na}catch{}}Yt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=e_;Yt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Qd(t))throw Error(F(200));return Xw(e,t,null,n)};Yt.createRoot=function(e,t){if(!Qd(e))throw Error(F(299));var n=!1,r="",o=Vy;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=Hd(e,1,!1,null,null,n,!1,r,o),e[Xn]=t.current,Mi(e.nodeType===8?e.parentNode:e),new Vd(t)};Yt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(F(188)):(e=Object.keys(e).join(","),Error(F(268,e)));return e=hv(t),e=e===null?null:e.stateNode,e};Yt.flushSync=function(e){return Co(e)};Yt.hydrate=function(e,t,n){if(!ou(t))throw Error(F(200));return su(null,e,t,!0,n)};Yt.hydrateRoot=function(e,t,n){if(!Qd(e))throw Error(F(405));var r=n!=null&&n.hydratedSources||null,o=!1,s="",i=Vy;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(i=n.onRecoverableError)),t=Wy(t,null,e,1,n??null,o,!1,s,i),e[Xn]=t.current,Mi(e),r)for(e=0;e<r.length;e++)n=r[e],o=n._getVersion,o=o(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new ru(t)};Yt.render=function(e,t,n){if(!ou(t))throw Error(F(200));return su(null,e,t,!1,n)};Yt.unmountComponentAtNode=function(e){if(!ou(e))throw Error(F(40));return e._reactRootContainer?(Co(function(){su(null,null,e,!1,function(){e._reactRootContainer=null,e[Xn]=null})}),!0):!1};Yt.unstable_batchedUpdates=$d;Yt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!ou(n))throw Error(F(200));if(e==null||e._reactInternals===void 0)throw Error(F(38));return su(e,t,n,!1,r)};Yt.version="18.3.1-next-f1338f8080-20240426";function Qy(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Qy)}catch(e){console.error(e)}}Qy(),Qg.exports=Yt;var iu=Qg.exports,qy,Gp=iu;qy=Gp.createRoot,Gp.hydrateRoot;var fi=typeof window<"u"?b.useLayoutEffect:b.useEffect;function Ju(e){const t=b.useRef({value:e,prev:null}),n=t.current.value;return e!==n&&(t.current={value:e,prev:n}),t.current.prev}function n_(e,t,n={},r={}){b.useEffect(()=>{if(!e.current||r.disabled||typeof IntersectionObserver!="function")return;const o=new IntersectionObserver(([s])=>{t(s)},n);return o.observe(e.current),()=>{o.disconnect()}},[t,n,r.disabled,e])}function r_(e){const t=b.useRef(null);return b.useImperativeHandle(e,()=>t.current,[]),t}var Gy=!1;function Hi(e){return e[e.length-1]}function o_(e){return typeof e=="function"}function br(e,t){return o_(e)?e(t):e}var s_=Object.prototype.hasOwnProperty,Kp=Object.prototype.propertyIsEnumerable,i_=()=>Object.create(null),Yr=(e,t)=>no(e,t,i_);function no(e,t,n=()=>({}),r=0){if(e===t)return e;if(r>500)return t;const o=t,s=Jp(e)&&Jp(o);if(!s&&!(Ts(e)&&Ts(o)))return o;const i=s?e:Yp(e);if(!i)return o;const a=s?o:Yp(o);if(!a)return o;const l=i.length,u=a.length,f=s?new Array(u):n();let c=0;for(let d=0;d<u;d++){const h=s?d:a[d],m=e[h],g=o[h];if(m===g){f[h]=m,(s?d<l:s_.call(e,h))&&c++;continue}if(m===null||g===null||typeof m!="object"||typeof g!="object"){f[h]=g;continue}const y=no(m,g,n,r+1);f[h]=y,y===m&&c++}return l===u&&c===l?e:f}function Yp(e){const t=Object.getOwnPropertyNames(e);for(const o of t)if(!Kp.call(e,o))return!1;const n=Object.getOwnPropertySymbols(e);if(n.length===0)return t;const r=t;for(const o of n){if(!Kp.call(e,o))return!1;r.push(o)}return r}function Ts(e){if(!Xp(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const n=t.prototype;return!(!Xp(n)||!n.hasOwnProperty("isPrototypeOf"))}function Xp(e){return Object.prototype.toString.call(e)==="[object Object]"}function Jp(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function xo(e,t,n){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let r=0,o=e.length;r<o;r++)if(!xo(e[r],t[r],n))return!1;return!0}if(Ts(e)&&Ts(t)){const r=(n==null?void 0:n.ignoreUndefined)??!0;if(n!=null&&n.partial){for(const i in t)if((!r||t[i]!==void 0)&&!xo(e[i],t[i],n))return!1;return!0}let o=0;if(!r)o=Object.keys(e).length;else for(const i in e)e[i]!==void 0&&o++;let s=0;for(const i in t)if((!r||t[i]!==void 0)&&(s++,s>o||!xo(e[i],t[i],n)))return!1;return o===s}return!1}function Is(e){let t,n;const r=new Promise((o,s)=>{t=o,n=s});return r.status="pending",r.resolve=o=>{r.status="resolved",r.value=o,t(o),e==null||e(o)},r.reject=o=>{r.status="rejected",n(o)},r}function Wi(e){return!!(e&&typeof e=="object"&&typeof e.then=="function")}function a_(e){return e.replace(/[\x00-\x1f\x7f]/g,"")}function Zp(e){let t;try{t=decodeURI(e)}catch{t=e.replaceAll(/%[0-9A-F]{2}/gi,n=>{try{return decodeURI(n)}catch{return n}})}return a_(t)}var l_=["http:","https:","mailto:","tel:"];function Ol(e,t){if(!e)return!1;try{const n=new URL(e);return!t.has(n.protocol)}catch{return!1}}function Xs(e){if(!e)return{path:e,handledProtocolRelativeURL:!1};if(!/[%\\\x00-\x1f\x7f]/.test(e)&&!e.startsWith("//"))return{path:e,handledProtocolRelativeURL:!1};const t=/%25|%5C/gi;let n=0,r="",o;for(;(o=t.exec(e))!==null;)r+=Zp(e.slice(n,o.index))+o[0],n=t.lastIndex;r=r+Zp(n?e.slice(n):e);let s=!1;return r.startsWith("//")&&(s=!0,r="/"+r.replace(/^\/+/,"")),{path:r,handledProtocolRelativeURL:s}}function u_(e){return/\s|[^\u0000-\u007F]/.test(e)?e.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):e}function c_(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function Kn(){throw new Error("Invariant failed")}function Vi(e){const t=new Map;let n,r;const o=s=>{s.next&&(s.prev?(s.prev.next=s.next,s.next.prev=s.prev,s.next=void 0,r&&(r.next=s,s.prev=r)):(s.next.prev=void 0,n=s.next,s.next=void 0,r&&(s.prev=r,r.next=s)),r=s)};return{get(s){const i=t.get(s);if(i)return o(i),i.value},set(s,i){if(t.size>=e&&n){const l=n;t.delete(l.key),l.next&&(n=l.next,l.next.prev=void 0),l===r&&(r=void 0)}const a=t.get(s);if(a)a.value=i,o(a);else{const l={key:s,value:i,prev:r};r&&(r.next=l),r=l,n||(n=l),t.set(s,l)}},clear(){t.clear(),n=void 0,r=void 0}}}var ro=4,Ky=5;function f_(e){const t=e.indexOf("{");if(t===-1)return null;const n=e.indexOf("}",t);return n===-1||t+1>=e.length?null:[t,n]}function qd(e,t,n=new Uint16Array(6)){const r=e.indexOf("/",t),o=r===-1?e.length:r,s=e.substring(t,o);if(!s||!s.includes("$"))return n[0]=0,n[1]=t,n[2]=t,n[3]=o,n[4]=o,n[5]=o,n;if(s==="$"){const a=e.length;return n[0]=2,n[1]=t,n[2]=t,n[3]=a,n[4]=a,n[5]=a,n}if(s.charCodeAt(0)===36)return n[0]=1,n[1]=t,n[2]=t+1,n[3]=o,n[4]=o,n[5]=o,n;const i=f_(s);if(i){const[a,l]=i,u=s.charCodeAt(a+1);if(u===45){if(a+2<s.length&&s.charCodeAt(a+2)===36){const f=a+3,c=l;if(f<c)return n[0]=3,n[1]=t+a,n[2]=t+f,n[3]=t+c,n[4]=t+l+1,n[5]=o,n}}else if(u===36){const f=a+1,c=a+2;return c===l?(n[0]=2,n[1]=t+a,n[2]=t+f,n[3]=t+c,n[4]=t+l+1,n[5]=e.length,n):(n[0]=1,n[1]=t+a,n[2]=t+c,n[3]=t+l,n[4]=t+l+1,n[5]=o,n)}}return n[0]=0,n[1]=t,n[2]=t,n[3]=o,n[4]=o,n[5]=o,n}function au(e,t,n,r,o,s,i){var l,u,f,c,d,h,m,g,y,p,v,S,w;i==null||i(n);let a=r;{const _=n.fullPath??n.from,T=_.length,I=((l=n.options)==null?void 0:l.caseSensitive)??e,P=!!((f=(u=n.options)==null?void 0:u.params)!=null&&f.parse&&((d=(c=n.options)==null?void 0:c.skipRouteOnParseError)!=null&&d.params));for(;a<T;){const E=qd(_,a,t);let A;const L=a,z=E[5];switch(a=z+1,s++,E[0]){case 0:{const U=_.substring(E[2],E[3]);if(I){const B=(h=o.static)==null?void 0:h.get(U);if(B)A=B;else{o.static??(o.static=new Map);const V=oo(n.fullPath??n.from);V.parent=o,V.depth=s,A=V,o.static.set(U,V)}}else{const B=U.toLowerCase(),V=(m=o.staticInsensitive)==null?void 0:m.get(B);if(V)A=V;else{o.staticInsensitive??(o.staticInsensitive=new Map);const W=oo(n.fullPath??n.from);W.parent=o,W.depth=s,A=W,o.staticInsensitive.set(B,W)}}break}case 1:{const U=_.substring(L,E[1]),B=_.substring(E[4],z),V=I&&!!(U||B),W=U?V?U:U.toLowerCase():void 0,N=B?V?B:B.toLowerCase():void 0,j=!P&&((g=o.dynamic)==null?void 0:g.find(O=>!O.skipOnParamError&&O.caseSensitive===V&&O.prefix===W&&O.suffix===N));if(j)A=j;else{const O=ec(1,n.fullPath??n.from,V,W,N);A=O,O.depth=s,O.parent=o,o.dynamic??(o.dynamic=[]),o.dynamic.push(O)}break}case 3:{const U=_.substring(L,E[1]),B=_.substring(E[4],z),V=I&&!!(U||B),W=U?V?U:U.toLowerCase():void 0,N=B?V?B:B.toLowerCase():void 0,j=!P&&((y=o.optional)==null?void 0:y.find(O=>!O.skipOnParamError&&O.caseSensitive===V&&O.prefix===W&&O.suffix===N));if(j)A=j;else{const O=ec(3,n.fullPath??n.from,V,W,N);A=O,O.parent=o,O.depth=s,o.optional??(o.optional=[]),o.optional.push(O)}break}case 2:{const U=_.substring(L,E[1]),B=_.substring(E[4],z),V=I&&!!(U||B),W=U?V?U:U.toLowerCase():void 0,N=B?V?B:B.toLowerCase():void 0,j=ec(2,n.fullPath??n.from,V,W,N);A=j,j.parent=o,j.depth=s,o.wildcard??(o.wildcard=[]),o.wildcard.push(j)}}o=A}if(P&&n.children&&!n.isRoot&&n.id&&n.id.charCodeAt(n.id.lastIndexOf("/")+1)===95){const E=oo(n.fullPath??n.from);E.kind=Ky,E.parent=o,s++,E.depth=s,o.pathless??(o.pathless=[]),o.pathless.push(E),o=E}const k=(n.path||!n.children)&&!n.isRoot;if(k&&_.endsWith("/")){const E=oo(n.fullPath??n.from);E.kind=ro,E.parent=o,s++,E.depth=s,o.index=E,o=E}o.parse=((v=(p=n.options)==null?void 0:p.params)==null?void 0:v.parse)??null,o.skipOnParamError=P,o.parsingPriority=((w=(S=n.options)==null?void 0:S.skipRouteOnParseError)==null?void 0:w.priority)??0,k&&!o.route&&(o.route=n,o.fullPath=n.fullPath??n.from)}if(n.children)for(const _ of n.children)au(e,t,_,a,o,s,i)}function Zu(e,t){if(e.skipOnParamError&&!t.skipOnParamError)return-1;if(!e.skipOnParamError&&t.skipOnParamError)return 1;if(e.skipOnParamError&&t.skipOnParamError&&(e.parsingPriority||t.parsingPriority))return t.parsingPriority-e.parsingPriority;if(e.prefix&&t.prefix&&e.prefix!==t.prefix){if(e.prefix.startsWith(t.prefix))return-1;if(t.prefix.startsWith(e.prefix))return 1}if(e.suffix&&t.suffix&&e.suffix!==t.suffix){if(e.suffix.endsWith(t.suffix))return-1;if(t.suffix.endsWith(e.suffix))return 1}return e.prefix&&!t.prefix?-1:!e.prefix&&t.prefix?1:e.suffix&&!t.suffix?-1:!e.suffix&&t.suffix?1:e.caseSensitive&&!t.caseSensitive?-1:!e.caseSensitive&&t.caseSensitive?1:0}function fr(e){var t,n,r;if(e.pathless)for(const o of e.pathless)fr(o);if(e.static)for(const o of e.static.values())fr(o);if(e.staticInsensitive)for(const o of e.staticInsensitive.values())fr(o);if((t=e.dynamic)!=null&&t.length){e.dynamic.sort(Zu);for(const o of e.dynamic)fr(o)}if((n=e.optional)!=null&&n.length){e.optional.sort(Zu);for(const o of e.optional)fr(o)}if((r=e.wildcard)!=null&&r.length){e.wildcard.sort(Zu);for(const o of e.wildcard)fr(o)}}function oo(e){return{kind:0,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:e,parent:null,parse:null,skipOnParamError:!1,parsingPriority:0}}function ec(e,t,n,r,o){return{kind:e,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:t,parent:null,parse:null,skipOnParamError:!1,parsingPriority:0,caseSensitive:n,prefix:r,suffix:o}}function d_(e,t){const n=oo("/"),r=new Uint16Array(6);for(const o of e)au(!1,r,o,1,n,0);fr(n),t.masksTree=n,t.flatCache=Vi(1e3)}function h_(e,t){e||(e="/");const n=t.flatCache.get(e);if(n)return n;const r=Gd(e,t.masksTree);return t.flatCache.set(e,r),r}function p_(e,t,n,r,o){e||(e="/"),r||(r="/");const s=t?`case\0${e}`:e;let i=o.singleCache.get(s);return i||(i=oo("/"),au(t,new Uint16Array(6),{from:e},1,i,0),o.singleCache.set(s,i)),Gd(r,i,n)}function m_(e,t,n=!1){const r=n?e:`nofuzz\0${e}`,o=t.matchCache.get(r);if(o!==void 0)return o;e||(e="/");let s;try{s=Gd(e,t.segmentTree,n)}catch(i){if(i instanceof URIError)s=null;else throw i}return s&&(s.branch=y_(s.route)),t.matchCache.set(r,s),s}function g_(e){return e==="/"?e:e.replace(/\/{1,}$/,"")}function v_(e,t=!1,n){const r=oo(e.fullPath),o=new Uint16Array(6),s={},i={};let a=0;return au(t,o,e,1,r,0,l=>{if(n==null||n(l,a),l.id in s&&Kn(),s[l.id]=l,a!==0&&l.path){const u=g_(l.fullPath);(!i[u]||l.fullPath.endsWith("/"))&&(i[u]=l)}a++}),fr(r),{processedTree:{segmentTree:r,singleCache:Vi(1e3),matchCache:Vi(1e3),flatCache:null,masksTree:null},routesById:s,routesByPath:i}}function Gd(e,t,n=!1){const r=e.split("/"),o=x_(e,r,t,n);if(!o)return null;const[s]=Yy(e,r,o);return{route:o.node.route,rawParams:s,parsedParams:o.parsedParams}}function Yy(e,t,n){var f,c,d,h,m,g,y,p,v,S;const r=S_(n.node);let o=null;const s=Object.create(null);let i=((f=n.extract)==null?void 0:f.part)??0,a=((c=n.extract)==null?void 0:c.node)??0,l=((d=n.extract)==null?void 0:d.path)??0,u=((h=n.extract)==null?void 0:h.segment)??0;for(;a<r.length;i++,a++,l++,u++){const w=r[a];if(w.kind===ro)break;if(w.kind===Ky){u--,i--,l--;continue}const _=t[i],T=l;if(_&&(l+=_.length),w.kind===1){o??(o=n.node.fullPath.split("/"));const I=o[u],P=((m=w.prefix)==null?void 0:m.length)??0;if(I.charCodeAt(P)===123){const k=((g=w.suffix)==null?void 0:g.length)??0,E=I.substring(P+2,I.length-k-1),A=_.substring(P,_.length-k);s[E]=decodeURIComponent(A)}else{const k=I.substring(1);s[k]=decodeURIComponent(_)}}else if(w.kind===3){if(n.skipped&1<<a){i--,l=T-1;continue}o??(o=n.node.fullPath.split("/"));const I=o[u],P=((y=w.prefix)==null?void 0:y.length)??0,k=((p=w.suffix)==null?void 0:p.length)??0,E=I.substring(P+3,I.length-k-1),A=w.suffix||w.prefix?_.substring(P,_.length-k):_;A&&(s[E]=decodeURIComponent(A))}else if(w.kind===2){const I=w,P=e.substring(T+(((v=I.prefix)==null?void 0:v.length)??0),e.length-(((S=I.suffix)==null?void 0:S.length)??0)),k=decodeURIComponent(P);s["*"]=k,s._splat=k;break}}return n.rawParams&&Object.assign(s,n.rawParams),[s,{part:i,node:a,path:l,segment:u}]}function y_(e){const t=[e];for(;e.parentRoute;)e=e.parentRoute,t.push(e);return t.reverse(),t}function S_(e){const t=Array(e.depth+1);do t[e.depth]=e,e=e.parent;while(e);return t}function x_(e,t,n,r){if(e==="/"&&n.index)return{node:n.index,skipped:0};const o=!Hi(t),s=o&&e!=="/",i=t.length-(o?1:0),a=[{node:n,index:1,skipped:0,depth:1,statics:1,dynamics:0,optionals:0}];let l=null,u=null,f=null;for(;a.length;){const c=a.pop(),{node:d,index:h,skipped:m,depth:g,statics:y,dynamics:p,optionals:v}=c;let{extract:S,rawParams:w,parsedParams:_}=c;if(d.skipOnParamError){if(!tc(e,t,c))continue;w=c.rawParams,S=c.extract,_=c.parsedParams}r&&d.route&&d.kind!==ro&&Js(u,c)&&(u=c);const T=h===i;if(T&&(d.route&&!s&&Js(f,c)&&(f=c),!d.optional&&!d.wildcard&&!d.index&&!d.pathless))continue;const I=T?void 0:t[h];let P;if(T&&d.index){const k={node:d.index,index:h,skipped:m,depth:g+1,statics:y,dynamics:p,optionals:v,extract:S,rawParams:w,parsedParams:_};let E=!0;if(d.index.skipOnParamError&&(tc(e,t,k)||(E=!1)),E){if(y===i&&!p&&!v&&!m)return k;Js(f,k)&&(f=k)}}if(d.wildcard&&Js(l,c))for(const k of d.wildcard){const{prefix:E,suffix:A}=k;if(E&&(T||!(k.caseSensitive?I:P??(P=I.toLowerCase())).startsWith(E)))continue;if(A){if(T)continue;const z=t.slice(h).join("/").slice(-A.length);if((k.caseSensitive?z:z.toLowerCase())!==A)continue}const L={node:k,index:i,skipped:m,depth:g,statics:y,dynamics:p,optionals:v,extract:S,rawParams:w,parsedParams:_};if(!(k.skipOnParamError&&!tc(e,t,L))){l=L;break}}if(d.optional){const k=m|1<<g,E=g+1;for(let A=d.optional.length-1;A>=0;A--){const L=d.optional[A];a.push({node:L,index:h,skipped:k,depth:E,statics:y,dynamics:p,optionals:v,extract:S,rawParams:w,parsedParams:_})}if(!T)for(let A=d.optional.length-1;A>=0;A--){const L=d.optional[A],{prefix:z,suffix:U}=L;if(z||U){const B=L.caseSensitive?I:P??(P=I.toLowerCase());if(z&&!B.startsWith(z)||U&&!B.endsWith(U))continue}a.push({node:L,index:h+1,skipped:m,depth:E,statics:y,dynamics:p,optionals:v+1,extract:S,rawParams:w,parsedParams:_})}}if(!T&&d.dynamic&&I)for(let k=d.dynamic.length-1;k>=0;k--){const E=d.dynamic[k],{prefix:A,suffix:L}=E;if(A||L){const z=E.caseSensitive?I:P??(P=I.toLowerCase());if(A&&!z.startsWith(A)||L&&!z.endsWith(L))continue}a.push({node:E,index:h+1,skipped:m,depth:g+1,statics:y,dynamics:p+1,optionals:v,extract:S,rawParams:w,parsedParams:_})}if(!T&&d.staticInsensitive){const k=d.staticInsensitive.get(P??(P=I.toLowerCase()));k&&a.push({node:k,index:h+1,skipped:m,depth:g+1,statics:y+1,dynamics:p,optionals:v,extract:S,rawParams:w,parsedParams:_})}if(!T&&d.static){const k=d.static.get(I);k&&a.push({node:k,index:h+1,skipped:m,depth:g+1,statics:y+1,dynamics:p,optionals:v,extract:S,rawParams:w,parsedParams:_})}if(d.pathless){const k=g+1;for(let E=d.pathless.length-1;E>=0;E--){const A=d.pathless[E];a.push({node:A,index:h,skipped:m,depth:k,statics:y,dynamics:p,optionals:v,extract:S,rawParams:w,parsedParams:_})}}}if(f&&l)return Js(l,f)?f:l;if(f)return f;if(l)return l;if(r&&u){let c=u.index;for(let h=0;h<u.index;h++)c+=t[h].length;const d=c===e.length?"/":e.slice(c);return u.rawParams??(u.rawParams=Object.create(null)),u.rawParams["**"]=decodeURIComponent(d),u}return null}function tc(e,t,n){try{const[r,o]=Yy(e,t,n);n.rawParams=r,n.extract=o;const s=n.node.parse(r);return n.parsedParams=Object.assign(Object.create(null),n.parsedParams,s),!0}catch{return null}}function Js(e,t){return e?t.statics>e.statics||t.statics===e.statics&&(t.dynamics>e.dynamics||t.dynamics===e.dynamics&&(t.optionals>e.optionals||t.optionals===e.optionals&&((t.node.kind===ro)>(e.node.kind===ro)||t.node.kind===ro==(e.node.kind===ro)&&t.depth>e.depth))):!0}function el(e){return Kd(e.filter(t=>t!==void 0).join("/"))}function Kd(e){return e.replace(/\/{2,}/g,"/")}function Xy(e){return e==="/"?e:e.replace(/^\/{1,}/,"")}function Lr(e){const t=e.length;return t>1&&e[t-1]==="/"?e.replace(/\/{1,}$/,""):e}function Jy(e){return Lr(Xy(e))}function Ml(e,t){return e!=null&&e.endsWith("/")&&e!=="/"&&e!==`${t}/`?e.slice(0,-1):e}function w_(e,t,n){return Ml(e,n)===Ml(t,n)}function __({base:e,to:t,trailingSlash:n="never",cache:r}){const o=t.startsWith("/"),s=!o&&t===".";let i;if(r){i=o?t:s?e:e+"\0"+t;const c=r.get(i);if(c)return c}let a;if(s)a=e.split("/");else if(o)a=t.split("/");else{for(a=e.split("/");a.length>1&&Hi(a)==="";)a.pop();const c=t.split("/");for(let d=0,h=c.length;d<h;d++){const m=c[d];m===""?d?d===h-1&&a.push(m):a=[m]:m===".."?a.pop():m==="."||a.push(m)}}a.length>1&&(Hi(a)===""?n==="never"&&a.pop():n==="always"&&a.push(""));let l,u="";for(let c=0;c<a.length;c++){c>0&&(u+="/");const d=a[c];if(!d)continue;l=qd(d,0,l);const h=l[0];if(h===0){u+=d;continue}const m=l[5],g=d.substring(0,l[1]),y=d.substring(l[4],m),p=d.substring(l[2],l[3]);h===1?u+=g||y?`${g}{$${p}}${y}`:`$${p}`:h===2?u+=g||y?`${g}{$}${y}`:"$":u+=`${g}{-$${p}}${y}`}u=Kd(u);const f=u||"/";return i&&r&&r.set(i,f),f}function E_(e){const t=new Map(e.map(o=>[encodeURIComponent(o),o])),n=Array.from(t.keys()).map(o=>o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),r=new RegExp(n,"g");return o=>o.replace(r,s=>t.get(s)??s)}function nc(e,t,n){const r=t[e];return typeof r!="string"?r:e==="_splat"?/^[a-zA-Z0-9\-._~!/]*$/.test(r)?r:r.split("/").map(o=>tm(o,n)).join("/"):tm(r,n)}function em({path:e,params:t,decoder:n,...r}){let o=!1;const s=Object.create(null);if(!e||e==="/")return{interpolatedPath:"/",usedParams:s,isMissingParams:o};if(!e.includes("$"))return{interpolatedPath:e,usedParams:s,isMissingParams:o};const i=e.length;let a=0,l,u="";for(;a<i;){const f=a;l=qd(e,f,l);const c=l[5];if(a=c+1,f===c)continue;const d=l[0];if(d===0){u+="/"+e.substring(f,c);continue}if(d===2){const h=t._splat;s._splat=h,s["*"]=h;const m=e.substring(f,l[1]),g=e.substring(l[4],c);if(!h){o=!0,(m||g)&&(u+="/"+m+g);continue}const y=nc("_splat",t,n);u+="/"+m+y+g;continue}if(d===1){const h=e.substring(l[2],l[3]);!o&&!(h in t)&&(o=!0),s[h]=t[h];const m=e.substring(f,l[1]),g=e.substring(l[4],c),y=nc(h,t,n)??"undefined";u+="/"+m+y+g;continue}if(d===3){const h=e.substring(l[2],l[3]),m=t[h];if(m==null)continue;s[h]=m;const g=e.substring(f,l[1]),y=e.substring(l[4],c),p=nc(h,t,n)??"";u+="/"+g+p+y;continue}}return e.endsWith("/")&&(u+="/"),{usedParams:s,interpolatedPath:u||"/",isMissingParams:o}}function tm(e,t){const n=encodeURIComponent(e);return(t==null?void 0:t(n))??n}function bt(e){return!!(e!=null&&e.isNotFound)}function b_(){try{return typeof window<"u"&&typeof window.sessionStorage=="object"?window.sessionStorage:void 0}catch{return}}var P_="tsr-scroll-restoration-v1_3";function R_(){const e=b_();if(!e)return null;let t={};try{const r=JSON.parse(e.getItem("tsr-scroll-restoration-v1_3")||"{}");Ts(r)&&(t=r)}catch{}return{get state(){return t},set:r=>{t=br(r,t)||t},persist:()=>{try{e.setItem(P_,JSON.stringify(t))}catch{}}}}var nm=R_(),C_=e=>e.state.__TSR_key||e.href;function k_(e){const t=[];let n;for(;n=e.parentNode;)t.push(`${e.tagName}:nth-child(${Array.prototype.indexOf.call(n.children,e)+1})`),e=n;return`${t.reverse().join(" > ")}`.toLowerCase()}var Oa=!1,Zs="window",rm="data-scroll-restoration-id";function T_(e,t){if(!nm)return;const n=nm;if((e.options.scrollRestoration??!1)&&(e.isScrollRestoring=!0),e.isScrollRestorationSetup||!n)return;e.isScrollRestorationSetup=!0,Oa=!1;const r=e.options.getScrollRestorationKey||C_,o=new Map;window.history.scrollRestoration="manual";const s=a=>{if(!(Oa||!e.isScrollRestoring))if(a.target===document||a.target===window)o.set(Zs,{scrollX:window.scrollX||0,scrollY:window.scrollY||0});else{const l=a.target;o.set(l,{scrollX:l.scrollLeft||0,scrollY:l.scrollTop||0})}},i=a=>{var u;if(!e.isScrollRestoring||!a||o.size===0||!n)return;const l=(u=n.state)[a]||(u[a]={});for(const[f,c]of o){let d;if(f===Zs)d=Zs;else if(f.isConnected){const h=f.getAttribute(rm);d=h?`[${rm}="${h}"]`:k_(f)}d&&(l[d]=c)}};document.addEventListener("scroll",s,!0),e.subscribe("onBeforeLoad",a=>{i(a.fromLocation?r(a.fromLocation):void 0),o.clear()}),window.addEventListener("pagehide",()=>{i(r(e.stores.resolvedLocation.state??e.stores.location.state)),n.persist()}),e.subscribe("onRendered",a=>{var c;const l=r(a.toLocation),u=e.options.scrollRestorationBehavior,f=e.options.scrollToTopSelectors;if(o.clear(),!e.resetNextScroll){e.resetNextScroll=!0;return}if(!(typeof e.options.scrollRestoration=="function"&&!e.options.scrollRestoration({location:e.latestLocation}))){Oa=!0;try{const d=e.isScrollRestoring?n.state[l]:void 0;let h=!1;if(d)for(const m in d){const g=d[m];if(!Ts(g))continue;const{scrollX:y,scrollY:p}=g;if(!(!Number.isFinite(y)||!Number.isFinite(p))){if(m===Zs)window.scrollTo({top:p,left:y,behavior:u}),h=!0;else if(m){let v;try{v=document.querySelector(m)}catch{continue}v&&(v.scrollLeft=y,v.scrollTop=p,h=!0)}}}if(!h){const m=e.history.location.hash.slice(1);if(m){const g=((c=window.history.state)==null?void 0:c.__hashScrollIntoViewOptions)??!0;if(g){const y=document.getElementById(m);y&&y.scrollIntoView(g)}}else{const g={top:0,left:0,behavior:u};if(window.scrollTo(g),f)for(const y of f){if(y===Zs)continue;const p=typeof y=="function"?y():document.querySelector(y);p&&p.scrollTo(g)}}}}finally{Oa=!1}e.isScrollRestoring&&n.set(d=>(d[l]||(d[l]={}),d))}})}function I_(e,t=String){const n=new URLSearchParams;for(const r in e){const o=e[r];o!==void 0&&n.set(r,t(o))}return n.toString()}function rc(e){return e?e==="false"?!1:e==="true"?!0:+e*0===0&&+e+""===e?+e:e:""}function A_(e){const t=new URLSearchParams(e),n=Object.create(null);for(const[r,o]of t.entries()){const s=n[r];s==null?n[r]=rc(o):Array.isArray(s)?s.push(rc(o)):n[r]=[s,rc(o)]}return n}var N_=M_(JSON.parse),O_=L_(JSON.stringify,JSON.parse);function M_(e){return t=>{t[0]==="?"&&(t=t.substring(1));const n=A_(t);for(const r in n){const o=n[r];if(typeof o=="string")try{n[r]=e(o)}catch{}}return n}}function L_(e,t){const n=typeof t=="function";function r(o){if(typeof o=="object"&&o!==null)try{return e(o)}catch{}else if(n&&typeof o=="string")try{return t(o),e(o)}catch{}return o}return o=>{const s=I_(o,r);return s?`?${s}`:""}}var wo="__root__";function j_(e){if(e.statusCode=e.statusCode||e.code||307,!e._builtLocation&&!e.reloadDocument&&typeof e.href=="string")try{new URL(e.href),e.reloadDocument=!0}catch{}const t=new Headers(e.headers);e.href&&t.get("Location")===null&&t.set("Location",e.href);const n=new Response(null,{status:e.statusCode,headers:t});if(n.options=e,e.throw)throw n;return n}function jt(e){return e instanceof Response&&!!e.options}function F_(e){return{input:({url:t})=>{for(const n of e)t=mf(n,t);return t},output:({url:t})=>{for(let n=e.length-1;n>=0;n--)t=Zy(e[n],t);return t}}}function D_(e){const t=Jy(e.basepath),n=`/${t}`,r=`${n}/`,o=e.caseSensitive?n:n.toLowerCase(),s=e.caseSensitive?r:r.toLowerCase();return{input:({url:i})=>{const a=e.caseSensitive?i.pathname:i.pathname.toLowerCase();return a===o?i.pathname="/":a.startsWith(s)&&(i.pathname=i.pathname.slice(n.length)),i},output:({url:i})=>(i.pathname=el(["/",t,i.pathname]),i)}}function mf(e,t){var r;const n=(r=e==null?void 0:e.input)==null?void 0:r.call(e,{url:t});if(n){if(typeof n=="string")return new URL(n);if(n instanceof URL)return n}return t}function Zy(e,t){var r;const n=(r=e==null?void 0:e.output)==null?void 0:r.call(e,{url:t});if(n){if(typeof n=="string")return new URL(n);if(n instanceof URL)return n}return t}function $_(e,t){const{createMutableStore:n,createReadonlyStore:r,batch:o,init:s}=t,i=new Map,a=new Map,l=new Map,u=n(e.status),f=n(e.loadedAt),c=n(e.isLoading),d=n(e.isTransitioning),h=n(e.location),m=n(e.resolvedLocation),g=n(e.statusCode),y=n(e.redirect),p=n([]),v=n([]),S=n([]),w=r(()=>oc(i,p.state)),_=r(()=>oc(a,v.state)),T=r(()=>oc(l,S.state)),I=r(()=>p.state[0]),P=r(()=>p.state.some(W=>{var N;return((N=i.get(W))==null?void 0:N.state.status)==="pending"})),k=r(()=>{var W;return{locationHref:h.state.href,resolvedLocationHref:(W=m.state)==null?void 0:W.href,status:u.state}}),E=r(()=>({status:u.state,loadedAt:f.state,isLoading:c.state,isTransitioning:d.state,matches:w.state,location:h.state,resolvedLocation:m.state,statusCode:g.state,redirect:y.state})),A=Vi(64);function L(W){let N=A.get(W);return N||(N=r(()=>{const j=p.state;for(const O of j){const M=i.get(O);if(M&&M.routeId===W)return M.state}}),A.set(W,N)),N}const z={status:u,loadedAt:f,isLoading:c,isTransitioning:d,location:h,resolvedLocation:m,statusCode:g,redirect:y,matchesId:p,pendingMatchesId:v,cachedMatchesId:S,activeMatchesSnapshot:w,pendingMatchesSnapshot:_,cachedMatchesSnapshot:T,firstMatchId:I,hasPendingMatches:P,matchRouteReactivity:k,activeMatchStoresById:i,pendingMatchStoresById:a,cachedMatchStoresById:l,__store:E,getMatchStoreByRouteId:L,setActiveMatches:U,setPendingMatches:B,setCachedMatches:V};U(e.matches),s==null||s(z);function U(W){sc(W,i,p,n,o)}function B(W){sc(W,a,v,n,o)}function V(W){sc(W,l,S,n,o)}return z}function oc(e,t){const n=[];for(const r of t){const o=e.get(r);o&&n.push(o.state)}return n}function sc(e,t,n,r,o){const s=e.map(a=>a.id),i=new Set(s);o(()=>{for(const a of t.keys())i.has(a)||t.delete(a);for(const a of e){const l=t.get(a.id);if(!l){const u=r(a);u.routeId=a.routeId,t.set(a.id,u);continue}l.routeId=a.routeId,l.state!==a&&l.setState(()=>a)}c_(n.state,s)||n.setState(()=>s)})}var gf=e=>{var t;if(!e.rendered)return e.rendered=!0,(t=e.onReady)==null?void 0:t.call(e)},U_=e=>e.stores.matchesId.state.some(t=>{var n;return(n=e.stores.activeMatchStoresById.get(t))==null?void 0:n.state._forcePending}),lu=(e,t)=>!!(e.preload&&!e.router.stores.activeMatchStoresById.has(t)),_o=(e,t,n=!0)=>{const r={...e.router.options.context??{}},o=n?t:t-1;for(let s=0;s<=o;s++){const i=e.matches[s];if(!i)continue;const a=e.router.getMatch(i.id);a&&Object.assign(r,a.__routeContext,a.__beforeLoadContext)}return r},om=(e,t)=>{if(!e.matches.length)return;const n=t.routeId,r=e.matches.findIndex(i=>i.routeId===e.router.routeTree.id),o=r>=0?r:0;let s=n?e.matches.findIndex(i=>i.routeId===n):e.firstBadMatchIndex??e.matches.length-1;s<0&&(s=o);for(let i=s;i>=0;i--){const a=e.matches[i];if(e.router.looseRoutesById[a.routeId].options.notFoundComponent)return i}return n?s:o},Pr=(e,t,n)=>{var r,o,s;if(!(!jt(n)&&!bt(n)))throw jt(n)&&n.redirectHandled&&!n.options.reloadDocument||(t&&((r=t._nonReactive.beforeLoadPromise)==null||r.resolve(),(o=t._nonReactive.loaderPromise)==null||o.resolve(),t._nonReactive.beforeLoadPromise=void 0,t._nonReactive.loaderPromise=void 0,t._nonReactive.error=n,e.updateMatch(t.id,i=>({...i,status:jt(n)?"redirected":i.status==="pending"?"success":i.status,context:_o(e,t.index),isFetching:!1,error:n})),bt(n)&&!n.routeId&&(n.routeId=t.routeId),(s=t._nonReactive.loadPromise)==null||s.resolve()),jt(n)&&(e.rendered=!0,n.options._fromLocation=e.location,n.redirectHandled=!0,n=e.router.resolveRedirect(n))),n},e0=(e,t)=>{const n=e.router.getMatch(t);return!!(!n||n._nonReactive.dehydrated)},sm=(e,t,n)=>{const r=_o(e,n);e.updateMatch(t,o=>({...o,context:r}))},ei=(e,t,n,r)=>{var a,l;const{id:o,routeId:s}=e.matches[t],i=e.router.looseRoutesById[s];if(n instanceof Promise)throw n;n.routerCode=r,e.firstBadMatchIndex??(e.firstBadMatchIndex=t),Pr(e,e.router.getMatch(o),n);try{(l=(a=i.options).onError)==null||l.call(a,n)}catch(u){n=u,Pr(e,e.router.getMatch(o),n)}e.updateMatch(o,u=>{var f,c;return(f=u._nonReactive.beforeLoadPromise)==null||f.resolve(),u._nonReactive.beforeLoadPromise=void 0,(c=u._nonReactive.loadPromise)==null||c.resolve(),{...u,error:n,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController}}),!e.preload&&!jt(n)&&!bt(n)&&(e.serialError??(e.serialError=n))},t0=(e,t,n,r)=>{var s;if(r._nonReactive.pendingTimeout!==void 0)return;const o=n.options.pendingMs??e.router.options.defaultPendingMs;if(e.onReady&&!lu(e,t)&&(n.options.loader||n.options.beforeLoad||r0(n))&&typeof o=="number"&&o!==1/0&&(n.options.pendingComponent??((s=e.router.options)==null?void 0:s.defaultPendingComponent))){const i=setTimeout(()=>{gf(e)},o);r._nonReactive.pendingTimeout=i}},z_=(e,t,n)=>{const r=e.router.getMatch(t);if(!r._nonReactive.beforeLoadPromise&&!r._nonReactive.loaderPromise)return;t0(e,t,n,r);const o=()=>{const s=e.router.getMatch(t);s.preload&&(s.status==="redirected"||s.status==="notFound")&&Pr(e,s,s.error)};return r._nonReactive.beforeLoadPromise?r._nonReactive.beforeLoadPromise.then(o):o()},B_=(e,t,n,r)=>{const o=e.router.getMatch(t);let s=o._nonReactive.loadPromise;o._nonReactive.loadPromise=Is(()=>{s==null||s.resolve(),s=void 0});const{paramsError:i,searchError:a}=o;i&&ei(e,n,i,"PARSE_PARAMS"),a&&ei(e,n,a,"VALIDATE_SEARCH"),t0(e,t,r,o);const l=new AbortController;let u=!1;const f=()=>{u||(u=!0,e.updateMatch(t,w=>({...w,isFetching:"beforeLoad",fetchCount:w.fetchCount+1,abortController:l})))},c=()=>{var w;(w=o._nonReactive.beforeLoadPromise)==null||w.resolve(),o._nonReactive.beforeLoadPromise=void 0,e.updateMatch(t,_=>({..._,isFetching:!1}))};if(!r.options.beforeLoad){e.router.batch(()=>{f(),c()});return}o._nonReactive.beforeLoadPromise=Is();const d={..._o(e,n,!1),...o.__routeContext},{search:h,params:m,cause:g}=o,y=lu(e,t),p={search:h,abortController:l,params:m,preload:y,context:d,location:e.location,navigate:w=>e.router.navigate({...w,_fromLocation:e.location}),buildLocation:e.router.buildLocation,cause:y?"preload":g,matches:e.matches,routeId:r.id,...e.router.options.additionalContext},v=w=>{if(w===void 0){e.router.batch(()=>{f(),c()});return}(jt(w)||bt(w))&&(f(),ei(e,n,w,"BEFORE_LOAD")),e.router.batch(()=>{f(),e.updateMatch(t,_=>({..._,__beforeLoadContext:w})),c()})};let S;try{if(S=r.options.beforeLoad(p),Wi(S))return f(),S.catch(w=>{ei(e,n,w,"BEFORE_LOAD")}).then(v)}catch(w){f(),ei(e,n,w,"BEFORE_LOAD")}v(S)},H_=(e,t)=>{const{id:n,routeId:r}=e.matches[t],o=e.router.looseRoutesById[r],s=()=>a(),i=()=>B_(e,n,t,o),a=()=>{if(e0(e,n))return;const l=z_(e,n,o);return Wi(l)?l.then(i):i()};return s()},W_=(e,t,n)=>{var s,i,a,l,u,f;const r=e.router.getMatch(t);if(!r||!n.options.head&&!n.options.scripts&&!n.options.headers)return;const o={ssr:e.router.options.ssr,matches:e.matches,match:r,params:r.params,loaderData:r.loaderData};return Promise.all([(i=(s=n.options).head)==null?void 0:i.call(s,o),(l=(a=n.options).scripts)==null?void 0:l.call(a,o),(f=(u=n.options).headers)==null?void 0:f.call(u,o)]).then(([c,d,h])=>({meta:c==null?void 0:c.meta,links:c==null?void 0:c.links,headScripts:c==null?void 0:c.scripts,headers:h,scripts:d,styles:c==null?void 0:c.styles}))},n0=(e,t,n,r,o)=>{const s=t[r-1],{params:i,loaderDeps:a,abortController:l,cause:u}=e.router.getMatch(n),f=_o(e,r),c=lu(e,n);return{params:i,deps:a,preload:!!c,parentMatchPromise:s,abortController:l,context:f,location:e.location,navigate:d=>e.router.navigate({...d,_fromLocation:e.location}),cause:c?"preload":u,route:o,...e.router.options.additionalContext}},im=async(e,t,n,r,o)=>{var s,i,a,l,u;try{const f=e.router.getMatch(n);try{(!(Gy??e.router.isServer)||f.ssr===!0)&&Qi(o);const c=o.options.loader,d=typeof c=="function"?c:c==null?void 0:c.handler,h=d==null?void 0:d(n0(e,t,n,r,o)),m=!!d&&Wi(h);if((m||o._lazyPromise||o._componentsPromise||o.options.head||o.options.scripts||o.options.headers||f._nonReactive.minPendingPromise)&&e.updateMatch(n,y=>({...y,isFetching:"loader"})),d){const y=m?await h:h;Pr(e,e.router.getMatch(n),y),y!==void 0&&e.updateMatch(n,p=>({...p,loaderData:y}))}o._lazyPromise&&await o._lazyPromise;const g=f._nonReactive.minPendingPromise;g&&await g,o._componentsPromise&&await o._componentsPromise,e.updateMatch(n,y=>({...y,error:void 0,context:_o(e,r),status:"success",isFetching:!1,updatedAt:Date.now()}))}catch(c){let d=c;if((d==null?void 0:d.name)==="AbortError"){if(f.abortController.signal.aborted){(s=f._nonReactive.loaderPromise)==null||s.resolve(),f._nonReactive.loaderPromise=void 0;return}e.updateMatch(n,m=>({...m,status:m.status==="pending"?"success":m.status,isFetching:!1,context:_o(e,r)}));return}const h=f._nonReactive.minPendingPromise;h&&await h,bt(c)&&await((a=(i=o.options.notFoundComponent)==null?void 0:i.preload)==null?void 0:a.call(i)),Pr(e,e.router.getMatch(n),c);try{(u=(l=o.options).onError)==null||u.call(l,c)}catch(m){d=m,Pr(e,e.router.getMatch(n),m)}!jt(d)&&!bt(d)&&await Qi(o,["errorComponent"]),e.updateMatch(n,m=>({...m,error:d,context:_o(e,r),status:"error",isFetching:!1}))}}catch(f){const c=e.router.getMatch(n);c&&(c._nonReactive.loaderPromise=void 0),Pr(e,c,f)}},V_=async(e,t,n)=>{var h,m,g,y;async function r(p,v,S,w,_){const T=Date.now()-v.updatedAt,I=p?_.options.preloadStaleTime??e.router.options.defaultPreloadStaleTime??3e4:_.options.staleTime??e.router.options.defaultStaleTime??0,P=_.options.shouldReload,k=typeof P=="function"?P(n0(e,t,o,n,_)):P,{status:E,invalid:A}=w,L=T>=I&&(!!e.forceStaleReload||w.cause==="enter"||S!==void 0&&S!==w.id);i=E==="success"&&(A||(k??L)),p&&_.options.preload===!1||(i&&!e.sync&&f?(a=!0,(async()=>{var z,U;try{await im(e,t,o,n,_);const B=e.router.getMatch(o);(z=B._nonReactive.loaderPromise)==null||z.resolve(),(U=B._nonReactive.loadPromise)==null||U.resolve(),B._nonReactive.loaderPromise=void 0,B._nonReactive.loadPromise=void 0}catch(B){jt(B)&&await e.router.navigate(B.options)}})()):E!=="success"||i?await im(e,t,o,n,_):sm(e,o,n))}const{id:o,routeId:s}=e.matches[n];let i=!1,a=!1;const l=e.router.looseRoutesById[s],u=l.options.loader,f=((typeof u=="function"||u==null?void 0:u.staleReloadMode)??e.router.options.defaultStaleReloadMode)!=="blocking";if(e0(e,o)){if(!e.router.getMatch(o))return e.matches[n];sm(e,o,n)}else{const p=e.router.getMatch(o),v=e.router.stores.matchesId.state[n],S=((h=v&&e.router.stores.activeMatchStoresById.get(v)||null)==null?void 0:h.routeId)===s?v:(m=e.router.stores.activeMatchesSnapshot.state.find(_=>_.routeId===s))==null?void 0:m.id,w=lu(e,o);if(p._nonReactive.loaderPromise){if(p.status==="success"&&!e.sync&&!p.preload&&f)return p;await p._nonReactive.loaderPromise;const _=e.router.getMatch(o),T=_._nonReactive.error||_.error;T&&Pr(e,_,T),_.status==="pending"&&await r(w,p,S,_,l)}else{const _=w&&!e.router.stores.activeMatchStoresById.has(o),T=e.router.getMatch(o);T._nonReactive.loaderPromise=Is(),_!==T.preload&&e.updateMatch(o,I=>({...I,preload:_})),await r(w,p,S,T,l)}}const c=e.router.getMatch(o);a||((g=c._nonReactive.loaderPromise)==null||g.resolve(),(y=c._nonReactive.loadPromise)==null||y.resolve(),c._nonReactive.loadPromise=void 0),clearTimeout(c._nonReactive.pendingTimeout),c._nonReactive.pendingTimeout=void 0,a||(c._nonReactive.loaderPromise=void 0),c._nonReactive.dehydrated=void 0;const d=a?c.isFetching:!1;return d!==c.isFetching||c.invalid!==!1?(e.updateMatch(o,p=>({...p,isFetching:d,invalid:!1})),e.router.getMatch(o)):c};async function am(e){var d,h;const t=e,n=[];U_(t.router)&&gf(t);let r;for(let m=0;m<t.matches.length;m++){try{const g=H_(t,m);Wi(g)&&await g}catch(g){if(jt(g))throw g;if(bt(g))r=g;else if(!t.preload)throw g;break}if(t.serialError||t.firstBadMatchIndex!=null)break}const o=t.firstBadMatchIndex??t.matches.length,s=r&&!t.preload?om(t,r):void 0,i=r&&t.preload?0:s!==void 0?Math.min(s+1,o):o;let a,l;for(let m=0;m<i;m++)n.push(V_(t,n,m));try{await Promise.all(n)}catch{const m=await Promise.allSettled(n);for(const g of m){if(g.status!=="rejected")continue;const y=g.reason;if(jt(y))throw y;bt(y)?a??(a=y):l??(l=y)}if(l!==void 0)throw l}const u=a??(r&&!t.preload?r:void 0);let f=t.firstBadMatchIndex!==void 0?t.firstBadMatchIndex:t.matches.length-1;if(!u&&r&&t.preload)return t.matches;if(u){const m=om(t,u);m===void 0&&Kn();const g=t.matches[m],y=t.router.looseRoutesById[g.routeId],p=(d=t.router.options)==null?void 0:d.defaultNotFoundComponent;!y.options.notFoundComponent&&p&&(y.options.notFoundComponent=p),u.routeId=g.routeId;const v=g.routeId===t.router.routeTree.id;t.updateMatch(g.id,S=>({...S,...v?{status:"success",globalNotFound:!0,error:void 0}:{status:"notFound",error:u},isFetching:!1})),f=m,await Qi(y,["notFoundComponent"])}else if(!t.preload){const m=t.matches[0];m.globalNotFound||(h=t.router.getMatch(m.id))!=null&&h.globalNotFound&&t.updateMatch(m.id,g=>({...g,globalNotFound:!1,error:void 0}))}if(t.serialError&&t.firstBadMatchIndex!==void 0){const m=t.router.looseRoutesById[t.matches[t.firstBadMatchIndex].routeId];await Qi(m,["errorComponent"])}for(let m=0;m<=f;m++){const{id:g,routeId:y}=t.matches[m],p=t.router.looseRoutesById[y];try{const v=W_(t,g,p);if(v){const S=await v;t.updateMatch(g,w=>({...w,...S}))}}catch(v){console.error(`Error executing head for route ${y}:`,v)}}const c=gf(t);if(Wi(c)&&await c,u)throw u;if(t.serialError&&!t.preload&&!t.onReady)throw t.serialError;return t.matches}function lm(e,t){const n=t.map(r=>{var o,s;return(s=(o=e.options[r])==null?void 0:o.preload)==null?void 0:s.call(o)}).filter(Boolean);if(n.length!==0)return Promise.all(n)}function Qi(e,t=tl){!e._lazyLoaded&&e._lazyPromise===void 0&&(e.lazyFn?e._lazyPromise=e.lazyFn().then(r=>{const{id:o,...s}=r.options;Object.assign(e.options,s),e._lazyLoaded=!0,e._lazyPromise=void 0}):e._lazyLoaded=!0);const n=()=>e._componentsLoaded?void 0:t===tl?(()=>{if(e._componentsPromise===void 0){const r=lm(e,tl);r?e._componentsPromise=r.then(()=>{e._componentsLoaded=!0,e._componentsPromise=void 0}):e._componentsLoaded=!0}return e._componentsPromise})():lm(e,t);return e._lazyPromise?e._lazyPromise.then(n):n()}function r0(e){var t;for(const n of tl)if((t=e.options[n])!=null&&t.preload)return!0;return!1}var tl=["component","errorComponent","pendingComponent","notFoundComponent"],jr="__TSR_index",um="popstate",cm="beforeunload";function Q_(e){let t=e.getLocation();const n=new Set,r=i=>{t=e.getLocation(),n.forEach(a=>a({location:t,action:i}))},o=i=>{e.notifyOnIndexChange??!0?r(i):t=e.getLocation()},s=async({task:i,navigateOpts:a,...l})=>{var c,d;if((a==null?void 0:a.ignoreBlocker)??!1){i();return}const u=((c=e.getBlockers)==null?void 0:c.call(e))??[],f=l.type==="PUSH"||l.type==="REPLACE";if(typeof document<"u"&&u.length&&f)for(const h of u){const m=Ll(l.path,l.state);if(await h.blockerFn({currentLocation:t,nextLocation:m,action:l.type})){(d=e.onBlocked)==null||d.call(e);return}}i()};return{get location(){return t},get length(){return e.getLength()},subscribers:n,subscribe:i=>(n.add(i),()=>{n.delete(i)}),push:(i,a,l)=>{const u=t.state[jr];a=fm(u+1,a),s({task:()=>{e.pushState(i,a),r({type:"PUSH"})},navigateOpts:l,type:"PUSH",path:i,state:a})},replace:(i,a,l)=>{const u=t.state[jr];a=fm(u,a),s({task:()=>{e.replaceState(i,a),r({type:"REPLACE"})},navigateOpts:l,type:"REPLACE",path:i,state:a})},go:(i,a)=>{s({task:()=>{e.go(i),o({type:"GO",index:i})},navigateOpts:a,type:"GO"})},back:i=>{s({task:()=>{e.back((i==null?void 0:i.ignoreBlocker)??!1),o({type:"BACK"})},navigateOpts:i,type:"BACK"})},forward:i=>{s({task:()=>{e.forward((i==null?void 0:i.ignoreBlocker)??!1),o({type:"FORWARD"})},navigateOpts:i,type:"FORWARD"})},canGoBack:()=>t.state[jr]!==0,createHref:i=>e.createHref(i),block:i=>{var l;if(!e.setBlockers)return()=>{};const a=((l=e.getBlockers)==null?void 0:l.call(e))??[];return e.setBlockers([...a,i]),()=>{var f,c;const u=((f=e.getBlockers)==null?void 0:f.call(e))??[];(c=e.setBlockers)==null||c.call(e,u.filter(d=>d!==i))}},flush:()=>{var i;return(i=e.flush)==null?void 0:i.call(e)},destroy:()=>{var i;return(i=e.destroy)==null?void 0:i.call(e)},notify:r}}function fm(e,t){t||(t={});const n=Yd();return{...t,key:n,__TSR_key:n,[jr]:e}}function q_(e){var P,k;const t=typeof document<"u"?window:void 0,n=t.history.pushState,r=t.history.replaceState;let o=[];const s=()=>o,i=E=>o=E,a=E=>E,l=()=>Ll(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state);if(!((P=t.history.state)!=null&&P.__TSR_key)&&!((k=t.history.state)!=null&&k.key)){const E=Yd();t.history.replaceState({[jr]:0,key:E,__TSR_key:E},"")}let u=l(),f,c=!1,d=!1,h=!1,m=!1;const g=()=>u;let y,p;const v=()=>{y&&(I._ignoreSubscribers=!0,(y.isPush?t.history.pushState:t.history.replaceState)(y.state,"",y.href),I._ignoreSubscribers=!1,y=void 0,p=void 0,f=void 0)},S=(E,A,L)=>{const z=a(A);p||(f=u),u=Ll(A,L),y={href:z,state:L,isPush:(y==null?void 0:y.isPush)||E==="push"},p||(p=Promise.resolve().then(()=>v()))},w=E=>{u=l(),I.notify({type:E})},_=async()=>{if(d){d=!1;return}const E=l(),A=E.state[jr]-u.state[jr],L=A===1,z=A===-1,U=!L&&!z||c;c=!1;const B=U?"GO":z?"BACK":"FORWARD",V=U?{type:"GO",index:A}:{type:z?"BACK":"FORWARD"};if(h)h=!1;else{const W=s();if(typeof document<"u"&&W.length){for(const N of W)if(await N.blockerFn({currentLocation:u,nextLocation:E,action:B})){d=!0,t.history.go(1),I.notify(V);return}}}u=l(),I.notify(V)},T=E=>{if(m){m=!1;return}let A=!1;const L=s();if(typeof document<"u"&&L.length)for(const z of L){const U=z.enableBeforeUnload??!0;if(U===!0){A=!0;break}if(typeof U=="function"&&U()===!0){A=!0;break}}if(A)return E.preventDefault(),E.returnValue=""},I=Q_({getLocation:g,getLength:()=>t.history.length,pushState:(E,A)=>S("push",E,A),replaceState:(E,A)=>S("replace",E,A),back:E=>(E&&(h=!0),m=!0,t.history.back()),forward:E=>{E&&(h=!0),m=!0,t.history.forward()},go:E=>{c=!0,t.history.go(E)},createHref:E=>a(E),flush:v,destroy:()=>{t.history.pushState=n,t.history.replaceState=r,t.removeEventListener(cm,T,{capture:!0}),t.removeEventListener(um,_)},onBlocked:()=>{f&&u!==f&&(u=f)},getBlockers:s,setBlockers:i,notifyOnIndexChange:!1});return t.addEventListener(cm,T,{capture:!0}),t.addEventListener(um,_),t.history.pushState=function(...E){const A=n.apply(t.history,E);return I._ignoreSubscribers||w("PUSH"),A},t.history.replaceState=function(...E){const A=r.apply(t.history,E);return I._ignoreSubscribers||w("REPLACE"),A},I}function G_(e){let t=e.replace(/[\x00-\x1f\x7f]/g,"");return t.startsWith("//")&&(t="/"+t.replace(/^\/+/,"")),t}function Ll(e,t){const n=G_(e),r=n.indexOf("#"),o=n.indexOf("?"),s=Yd();return{href:n,pathname:n.substring(0,r>0?o>0?Math.min(r,o):r:o>0?o:n.length),hash:r>-1?n.substring(r):"",search:o>-1?n.slice(o,r===-1?void 0:r):"",state:t||{[jr]:0,key:s,__TSR_key:s}}}function Yd(){return(Math.random()+1).toString(36).substring(7)}function ls(e,t){const n=t,r=e;return{fromLocation:n,toLocation:r,pathChanged:(n==null?void 0:n.pathname)!==r.pathname,hrefChanged:(n==null?void 0:n.href)!==r.href,hashChanged:(n==null?void 0:n.hash)!==r.hash}}var K_=class{constructor(e,t){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this.resetNextScroll=!0,this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.isScrollRestoring=!1,this.isScrollRestorationSetup=!1,this.startTransition=n=>n(),this.update=n=>{var f;const r=this.options,o=this.basepath??(r==null?void 0:r.basepath)??"/",s=this.basepath===void 0,i=r==null?void 0:r.rewrite;if(this.options={...r,...n},this.isServer=this.options.isServer??typeof document>"u",this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=E_(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=q_()),this.origin=this.options.origin,this.origin||(window!=null&&window.origin&&window.origin!=="null"?this.origin=window.origin:this.origin="http://localhost"),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let c;this.resolvePathCache=Vi(1e3),c=this.buildRouteTree(),this.setRoutes(c)}if(!this.stores&&this.latestLocation){const c=this.getStoreConfig(this);this.batch=c.batch,this.stores=$_(X_(this.latestLocation),c),T_(this)}let a=!1;const l=this.options.basepath??"/",u=this.options.rewrite;if(s||o!==l||i!==u){this.basepath=l;const c=[],d=Jy(l);d&&d!=="/"&&c.push(D_({basepath:l})),u&&c.push(u),this.rewrite=c.length===0?void 0:c.length===1?c[0]:F_(c),this.history&&this.updateLatestLocation(),a=!0}a&&this.stores&&this.stores.location.setState(()=>this.latestLocation),typeof window<"u"&&"CSS"in window&&typeof((f=window.CSS)==null?void 0:f.supports)=="function"&&(this.isViewTransitionTypesSupported=window.CSS.supports("selector(:active-view-transition-type(a)"))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{const n=v_(this.routeTree,this.options.caseSensitive,(r,o)=>{r.init({originalIndex:o})});return this.options.routeMasks&&d_(this.options.routeMasks,n.processedTree),n},this.subscribe=(n,r)=>{const o={eventType:n,fn:r};return this.subscribers.add(o),()=>{this.subscribers.delete(o)}},this.emit=n=>{this.subscribers.forEach(r=>{r.eventType===n.type&&r.fn(n)})},this.parseLocation=(n,r)=>{const o=({pathname:l,search:u,hash:f,href:c,state:d})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(l)){const p=this.options.parseSearch(u),v=this.options.stringifySearch(p);return{href:l+v+f,publicHref:l+v+f,pathname:Xs(l).path,external:!1,searchStr:v,search:Yr(r==null?void 0:r.search,p),hash:Xs(f.slice(1)).path,state:no(r==null?void 0:r.state,d)}}const h=new URL(c,this.origin),m=mf(this.rewrite,h),g=this.options.parseSearch(m.search),y=this.options.stringifySearch(g);return m.search=y,{href:m.href.replace(m.origin,""),publicHref:c,pathname:Xs(m.pathname).path,external:!!this.rewrite&&m.origin!==this.origin,searchStr:y,search:Yr(r==null?void 0:r.search,g),hash:Xs(m.hash.slice(1)).path,state:no(r==null?void 0:r.state,d)}},s=o(n),{__tempLocation:i,__tempKey:a}=s.state;if(i&&(!a||a===this.tempLocationKey)){const l=o(i);return l.state.key=s.state.key,l.state.__TSR_key=s.state.__TSR_key,delete l.state.__tempLocation,{...l,maskedLocation:s}}return s},this.resolvePathWithBase=(n,r)=>__({base:n,to:Kd(r),trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(n,r,o)=>typeof n=="string"?this.matchRoutesInternal({pathname:n,search:r},o):this.matchRoutesInternal(n,r),this.getMatchedRoutes=n=>J_({pathname:n,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=n=>{const r=this.getMatch(n);r&&(r.abortController.abort(),clearTimeout(r._nonReactive.pendingTimeout),r._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{this.stores.pendingMatchesId.state.forEach(n=>{this.cancelMatch(n)}),this.stores.matchesId.state.forEach(n=>{var o;if(this.stores.pendingMatchStoresById.has(n))return;const r=(o=this.stores.activeMatchStoresById.get(n))==null?void 0:o.state;r&&(r.status==="pending"||r.isFetching==="loader")&&this.cancelMatch(n)})},this.buildLocation=n=>{const r=(s={})=>{var E,A;const i=s._fromLocation||this.pendingBuiltLocation||this.latestLocation,a=this.matchRoutesLightweight(i);s.from;const l=s.unsafeRelative==="path"?i.pathname:s.from??a.fullPath,u=this.resolvePathWithBase(l,"."),f=a.search,c=Object.assign(Object.create(null),a.params),d=s.to?this.resolvePathWithBase(u,`${s.to}`):this.resolvePathWithBase(u,"."),h=s.params===!1||s.params===null?Object.create(null):(s.params??!0)===!0?c:Object.assign(c,br(s.params,c)),m=this.getMatchedRoutes(d);let g=m.matchedRoutes;if((!m.foundRoute||m.foundRoute.path!=="/"&&m.routeParams["**"])&&this.options.notFoundRoute&&(g=[...g,this.options.notFoundRoute]),Object.keys(h).length>0)for(const L of g){const z=((E=L.options.params)==null?void 0:E.stringify)??L.options.stringifyParams;if(z)try{Object.assign(h,z(h))}catch{}}const y=n.leaveParams?d:Xs(em({path:d,params:h,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path;let p=f;if(n._includeValidateSearch&&((A=this.options.search)!=null&&A.strict)){const L={};g.forEach(z=>{if(z.options.validateSearch)try{Object.assign(L,nl(z.options.validateSearch,{...L,...p}))}catch{}}),p=L}p=Z_({search:p,dest:s,destRoutes:g,_includeValidateSearch:n._includeValidateSearch}),p=Yr(f,p);const v=this.options.stringifySearch(p),S=s.hash===!0?i.hash:s.hash?br(s.hash,i.hash):void 0,w=S?`#${S}`:"";let _=s.state===!0?i.state:s.state?br(s.state,i.state):{};_=no(i.state,_);const T=`${y}${v}${w}`;let I,P,k=!1;if(this.rewrite){const L=new URL(T,this.origin),z=Zy(this.rewrite,L);I=L.href.replace(L.origin,""),z.origin!==this.origin?(P=z.href,k=!0):P=z.pathname+z.search+z.hash}else I=u_(T),P=I;return{publicHref:P,href:I,pathname:y,search:p,searchStr:v,state:_,hash:S??"",external:k,unmaskOnReload:s.unmaskOnReload}},o=(s={},i)=>{const a=r(s);let l=i?r(i):void 0;if(!l){const u=Object.create(null);if(this.options.routeMasks){const f=h_(a.pathname,this.processedTree);if(f){Object.assign(u,f.rawParams);const{from:c,params:d,...h}=f.route,m=d===!1||d===null?Object.create(null):(d??!0)===!0?u:Object.assign(u,br(d,u));i={from:n.from,...h,params:m},l=r(i)}}}return l&&(a.maskedLocation=l),a};return n.mask?o(n,{from:n.from,...n.mask}):o(n)},this.commitLocation=async({viewTransition:n,ignoreBlocker:r,...o})=>{const s=()=>{const l=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];l.forEach(f=>{o.state[f]=this.latestLocation.state[f]});const u=xo(o.state,this.latestLocation.state);return l.forEach(f=>{delete o.state[f]}),u},i=Lr(this.latestLocation.href)===Lr(o.href);let a=this.commitLocationPromise;if(this.commitLocationPromise=Is(()=>{a==null||a.resolve(),a=void 0}),i&&s())this.load();else{let{maskedLocation:l,hashScrollIntoView:u,...f}=o;l&&(f={...l,state:{...l.state,__tempKey:void 0,__tempLocation:{...f,search:f.searchStr,state:{...f.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(f.unmaskOnReload??this.options.unmaskOnReload??!1)&&(f.state.__tempKey=this.tempLocationKey)),f.state.__hashScrollIntoViewOptions=u??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=n,this.history[o.replace?"replace":"push"](f.publicHref,f.state,{ignoreBlocker:r})}return this.resetNextScroll=o.resetScroll??!0,this.history.subscribers.size||this.load(),this.commitLocationPromise},this.buildAndCommitLocation=({replace:n,resetScroll:r,hashScrollIntoView:o,viewTransition:s,ignoreBlocker:i,href:a,...l}={})=>{if(a){const c=this.history.location.state.__TSR_index,d=Ll(a,{__TSR_index:n?c:c+1}),h=new URL(d.pathname,this.origin);l.to=mf(this.rewrite,h).pathname,l.search=this.options.parseSearch(d.search),l.hash=d.hash.slice(1)}const u=this.buildLocation({...l,_includeValidateSearch:!0});this.pendingBuiltLocation=u;const f=this.commitLocation({...u,viewTransition:s,replace:n,resetScroll:r,hashScrollIntoView:o,ignoreBlocker:i});return Promise.resolve().then(()=>{this.pendingBuiltLocation===u&&(this.pendingBuiltLocation=void 0)}),f},this.navigate=async({to:n,reloadDocument:r,href:o,publicHref:s,...i})=>{var l,u;let a=!1;if(o)try{new URL(`${o}`),a=!0}catch{}if(a&&!r&&(r=!0),r){if(n!==void 0||!o){const c=this.buildLocation({to:n,...i});o=o??c.publicHref,s=s??c.publicHref}const f=!a&&s?s:o;if(Ol(f,this.protocolAllowlist))return Promise.resolve();if(!i.ignoreBlocker){const c=((u=(l=this.history).getBlockers)==null?void 0:u.call(l))??[];for(const d of c)if(d!=null&&d.blockerFn&&await d.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:"PUSH"}))return Promise.resolve()}return i.replace?window.location.replace(f):window.location.href=f,Promise.resolve()}return this.buildAndCommitLocation({...i,href:o,to:n,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();const n=this.matchRoutes(this.latestLocation),r=this.stores.cachedMatchesSnapshot.state.filter(o=>!n.some(s=>s.id===o.id));this.batch(()=>{this.stores.status.setState(()=>"pending"),this.stores.statusCode.setState(()=>200),this.stores.isLoading.setState(()=>!0),this.stores.location.setState(()=>this.latestLocation),this.stores.setPendingMatches(n),this.stores.setCachedMatches(r)})},this.load=async n=>{let r,o,s;const i=this.stores.resolvedLocation.state??this.stores.location.state;for(s=new Promise(l=>{this.startTransition(async()=>{var u;try{this.beforeLoad();const f=this.latestLocation,c=this.stores.resolvedLocation.state,d=ls(f,c);this.stores.redirect.state||this.emit({type:"onBeforeNavigate",...d}),this.emit({type:"onBeforeLoad",...d}),await am({router:this,sync:n==null?void 0:n.sync,forceStaleReload:i.href===f.href,matches:this.stores.pendingMatchesSnapshot.state,location:f,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{var p,v;let h=null,m=null,g=null,y=null;this.batch(()=>{const S=this.stores.pendingMatchesSnapshot.state,w=S.length,_=this.stores.activeMatchesSnapshot.state;h=w?_.filter(P=>!this.stores.pendingMatchStoresById.has(P.id)):null;const T=new Set;for(const P of this.stores.pendingMatchStoresById.values())P.routeId&&T.add(P.routeId);const I=new Set;for(const P of this.stores.activeMatchStoresById.values())P.routeId&&I.add(P.routeId);m=w?_.filter(P=>!T.has(P.routeId)):null,g=w?S.filter(P=>!I.has(P.routeId)):null,y=w?S.filter(P=>I.has(P.routeId)):_,this.stores.isLoading.setState(()=>!1),this.stores.loadedAt.setState(()=>Date.now()),w&&(this.stores.setActiveMatches(S),this.stores.setPendingMatches([]),this.stores.setCachedMatches([...this.stores.cachedMatchesSnapshot.state,...h.filter(P=>P.status!=="error"&&P.status!=="notFound"&&P.status!=="redirected")]),this.clearExpiredCache())});for(const[S,w]of[[m,"onLeave"],[g,"onEnter"],[y,"onStay"]])if(S)for(const _ of S)(v=(p=this.looseRoutesById[_.routeId].options)[w])==null||v.call(p,_)})})}})}catch(f){jt(f)?(r=f,this.navigate({...r.options,replace:!0,ignoreBlocker:!0})):bt(f)&&(o=f);const c=r?r.status:o?404:this.stores.activeMatchesSnapshot.state.some(d=>d.status==="error")?500:200;this.batch(()=>{this.stores.statusCode.setState(()=>c),this.stores.redirect.setState(()=>r)})}this.latestLoadPromise===s&&((u=this.commitLocationPromise)==null||u.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),l()})}),this.latestLoadPromise=s,await s;this.latestLoadPromise&&s!==this.latestLoadPromise;)await this.latestLoadPromise;let a;this.hasNotFoundMatch()?a=404:this.stores.activeMatchesSnapshot.state.some(l=>l.status==="error")&&(a=500),a!==void 0&&this.stores.statusCode.setState(()=>a)},this.startViewTransition=n=>{const r=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,r&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition=="function"){let o;if(typeof r=="object"&&this.isViewTransitionTypesSupported){const s=this.latestLocation,i=this.stores.resolvedLocation.state,a=typeof r.types=="function"?r.types(ls(s,i)):r.types;if(a===!1){n();return}o={update:n,types:a}}else o=n;document.startViewTransition(o)}else n()},this.updateMatch=(n,r)=>{this.startTransition(()=>{const o=this.stores.pendingMatchStoresById.get(n);if(o){o.setState(r);return}const s=this.stores.activeMatchStoresById.get(n);if(s){s.setState(r);return}const i=this.stores.cachedMatchStoresById.get(n);if(i){const a=r(i.state);a.status==="redirected"?this.stores.cachedMatchStoresById.delete(n)&&this.stores.cachedMatchesId.setState(l=>l.filter(u=>u!==n)):i.setState(()=>a)}})},this.getMatch=n=>{var r,o,s;return((r=this.stores.cachedMatchStoresById.get(n))==null?void 0:r.state)??((o=this.stores.pendingMatchStoresById.get(n))==null?void 0:o.state)??((s=this.stores.activeMatchStoresById.get(n))==null?void 0:s.state)},this.invalidate=n=>{const r=o=>{var s;return((s=n==null?void 0:n.filter)==null?void 0:s.call(n,o))??!0?{...o,invalid:!0,...n!=null&&n.forcePending||o.status==="error"||o.status==="notFound"?{status:"pending",error:void 0}:void 0}:o};return this.batch(()=>{this.stores.setActiveMatches(this.stores.activeMatchesSnapshot.state.map(r)),this.stores.setCachedMatches(this.stores.cachedMatchesSnapshot.state.map(r)),this.stores.setPendingMatches(this.stores.pendingMatchesSnapshot.state.map(r))}),this.shouldViewTransition=!1,this.load({sync:n==null?void 0:n.sync})},this.getParsedLocationHref=n=>n.publicHref||"/",this.resolveRedirect=n=>{const r=n.headers.get("Location");if(!n.options.href||n.options._builtLocation){const o=n.options._builtLocation??this.buildLocation(n.options),s=this.getParsedLocationHref(o);n.options.href=s,n.headers.set("Location",s)}else if(r)try{const o=new URL(r);if(this.origin&&o.origin===this.origin){const s=o.pathname+o.search+o.hash;n.options.href=s,n.headers.set("Location",s)}}catch{}if(n.options.href&&!n.options._builtLocation&&Ol(n.options.href,this.protocolAllowlist))throw new Error("Redirect blocked: unsafe protocol");return n.headers.get("Location")||n.headers.set("Location",n.options.href),n},this.clearCache=n=>{const r=n==null?void 0:n.filter;r!==void 0?this.stores.setCachedMatches(this.stores.cachedMatchesSnapshot.state.filter(o=>!r(o))):this.stores.setCachedMatches([])},this.clearExpiredCache=()=>{const n=Date.now(),r=o=>{const s=this.looseRoutesById[o.routeId];if(!s.options.loader)return!0;const i=(o.preload?s.options.preloadGcTime??this.options.defaultPreloadGcTime:s.options.gcTime??this.options.defaultGcTime)??300*1e3;return o.status==="error"?!0:n-o.updatedAt>=i};this.clearCache({filter:r})},this.loadRouteChunk=Qi,this.preloadRoute=async n=>{const r=n._builtLocation??this.buildLocation(n);let o=this.matchRoutes(r,{throwOnError:!0,preload:!0,dest:n});const s=new Set([...this.stores.matchesId.state,...this.stores.pendingMatchesId.state]),i=new Set([...s,...this.stores.cachedMatchesId.state]),a=o.filter(l=>!i.has(l.id));if(a.length){const l=this.stores.cachedMatchesSnapshot.state;this.stores.setCachedMatches([...l,...a])}try{return o=await am({router:this,matches:o,location:r,preload:!0,updateMatch:(l,u)=>{s.has(l)?o=o.map(f=>f.id===l?u(f):f):this.updateMatch(l,u)}}),o}catch(l){if(jt(l))return l.options.reloadDocument?void 0:await this.preloadRoute({...l.options,_fromLocation:r});bt(l)||console.error(l);return}},this.matchRoute=(n,r)=>{const o={...n,to:n.to?this.resolvePathWithBase(n.from||"",n.to):void 0,params:n.params||{},leaveParams:!0},s=this.buildLocation(o);if(r!=null&&r.pending&&this.stores.status.state!=="pending")return!1;const i=((r==null?void 0:r.pending)===void 0?!this.stores.isLoading.state:r.pending)?this.latestLocation:this.stores.resolvedLocation.state||this.stores.location.state,a=p_(s.pathname,(r==null?void 0:r.caseSensitive)??!1,(r==null?void 0:r.fuzzy)??!1,i.pathname,this.processedTree);return!a||n.params&&!xo(a.rawParams,n.params,{partial:!0})?!1:(r==null?void 0:r.includeSearch)??!0?xo(i.search,s.search,{partial:!0})?a.rawParams:!1:a.rawParams},this.hasNotFoundMatch=()=>this.stores.activeMatchesSnapshot.state.some(n=>n.status==="notFound"||n.globalNotFound),this.getStoreConfig=t,this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...e,caseSensitive:e.caseSensitive??!1,notFoundMode:e.notFoundMode??"fuzzy",stringifySearch:e.stringifySearch??O_,parseSearch:e.parseSearch??N_,protocolAllowlist:e.protocolAllowlist??l_}),typeof document<"u"&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.stores.__store.state}setRoutes({routesById:e,routesByPath:t,processedTree:n}){this.routesById=e,this.routesByPath=t,this.processedTree=n;const r=this.options.notFoundRoute;r&&(r.init({originalIndex:99999999999}),this.routesById[r.id]=r)}get looseRoutesById(){return this.routesById}getParentContext(e){return e!=null&&e.id?e.context??this.options.context??void 0:this.options.context??void 0}matchRoutesInternal(e,t){var c,d;const n=this.getMatchedRoutes(e.pathname),{foundRoute:r,routeParams:o,parsedParams:s}=n;let{matchedRoutes:i}=n,a=!1;(r?r.path!=="/"&&o["**"]:Lr(e.pathname))&&(this.options.notFoundRoute?i=[...i,this.options.notFoundRoute]:a=!0);const l=a?tE(this.options.notFoundMode,i):void 0,u=new Array(i.length),f=new Map;for(const h of this.stores.activeMatchStoresById.values())h.routeId&&f.set(h.routeId,h.state);for(let h=0;h<i.length;h++){const m=i[h],g=u[h-1];let y,p,v;{const B=(g==null?void 0:g.search)??e.search,V=(g==null?void 0:g._strictSearch)??void 0;try{const W=nl(m.options.validateSearch,{...B})??void 0;y={...B,...W},p={...V,...W},v=void 0}catch(W){let N=W;if(W instanceof jl||(N=new jl(W.message,{cause:W})),t!=null&&t.throwOnError)throw N;y=B,p={},v=N}}const S=((d=(c=m.options).loaderDeps)==null?void 0:d.call(c,{search:y}))??"",w=S?JSON.stringify(S):"",{interpolatedPath:_,usedParams:T}=em({path:m.fullPath,params:o,decoder:this.pathParamsDecoder,server:this.isServer}),I=m.id+_+w,P=this.getMatch(I),k=f.get(m.id),E=(P==null?void 0:P._strictParams)??T;let A;if(!P)try{dm(m,T,s,E)}catch(B){if(bt(B)||jt(B)?A=B:A=new Y_(B.message,{cause:B}),t!=null&&t.throwOnError)throw A}Object.assign(o,E);const L=k?"stay":"enter";let z;if(P)z={...P,cause:L,params:(k==null?void 0:k.params)??o,_strictParams:E,search:Yr(k?k.search:P.search,y),_strictSearch:p};else{const B=m.options.loader||m.options.beforeLoad||m.lazyFn||r0(m)?"pending":"success";z={id:I,ssr:m.options.ssr,index:h,routeId:m.id,params:(k==null?void 0:k.params)??o,_strictParams:E,pathname:_,updatedAt:Date.now(),search:k?Yr(k.search,y):y,_strictSearch:p,searchError:void 0,status:B,isFetching:!1,error:void 0,paramsError:A,__routeContext:void 0,_nonReactive:{loadPromise:Is()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:L,loaderDeps:k?no(k.loaderDeps,S):S,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:m.options.staticData||{},fullPath:m.fullPath}}t!=null&&t.preload||(z.globalNotFound=l===m.id),z.searchError=v;const U=this.getParentContext(g);z.context={...U,...z.__routeContext,...z.__beforeLoadContext},u[h]=z}for(let h=0;h<u.length;h++){const m=u[h],g=this.looseRoutesById[m.routeId],y=this.getMatch(m.id),p=f.get(m.routeId);if(m.params=p?Yr(p.params,o):o,!y){const v=u[h-1],S=this.getParentContext(v);if(g.options.context){const w={deps:m.loaderDeps,params:m.params,context:S??{},location:e,navigate:_=>this.navigate({..._,_fromLocation:e}),buildLocation:this.buildLocation,cause:m.cause,abortController:m.abortController,preload:!!m.preload,matches:u,routeId:g.id};m.__routeContext=g.options.context(w)??void 0}m.context={...S,...m.__routeContext,...m.__beforeLoadContext}}}return u}matchRoutesLightweight(e){var f;const{matchedRoutes:t,routeParams:n,parsedParams:r}=this.getMatchedRoutes(e.pathname),o=Hi(t),s={...e.search};for(const c of t)try{Object.assign(s,nl(c.options.validateSearch,s))}catch{}const i=Hi(this.stores.matchesId.state),a=i&&((f=this.stores.activeMatchStoresById.get(i))==null?void 0:f.state),l=a&&a.routeId===o.id&&a.pathname===e.pathname;let u;if(l)u=a.params;else{const c=Object.assign(Object.create(null),n);for(const d of t)try{dm(d,n,r??{},c)}catch{}u=c}return{matchedRoutes:t,fullPath:o.fullPath,search:s,params:u}}},jl=class extends Error{},Y_=class extends Error{};function X_(e){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:e,matches:[],statusCode:200}}function nl(e,t){if(e==null)return{};if("~standard"in e){const n=e["~standard"].validate(t);if(n instanceof Promise)throw new jl("Async validation not supported");if(n.issues)throw new jl(JSON.stringify(n.issues,void 0,2),{cause:n});return n.value}return"parse"in e?e.parse(t):typeof e=="function"?e(t):{}}function J_({pathname:e,routesById:t,processedTree:n}){const r=Object.create(null),o=Lr(e);let s,i;const a=m_(o,n,!0);return a&&(s=a.route,Object.assign(r,a.rawParams),i=Object.assign(Object.create(null),a.parsedParams)),{matchedRoutes:(a==null?void 0:a.branch)||[t.__root__],routeParams:r,foundRoute:s,parsedParams:i}}function Z_({search:e,dest:t,destRoutes:n,_includeValidateSearch:r}){return eE(n)(e,t,r??!1)}function eE(e){var o;const t={dest:null,_includeValidateSearch:!1,middlewares:[]};for(const s of e){if("search"in s.options)(o=s.options.search)!=null&&o.middlewares&&t.middlewares.push(...s.options.search.middlewares);else if(s.options.preSearchFilters||s.options.postSearchFilters){const i=({search:a,next:l})=>{let u=a;"preSearchFilters"in s.options&&s.options.preSearchFilters&&(u=s.options.preSearchFilters.reduce((c,d)=>d(c),a));const f=l(u);return"postSearchFilters"in s.options&&s.options.postSearchFilters?s.options.postSearchFilters.reduce((c,d)=>d(c),f):f};t.middlewares.push(i)}if(s.options.validateSearch){const i=({search:a,next:l})=>{const u=l(a);if(!t._includeValidateSearch)return u;try{return{...u,...nl(s.options.validateSearch,u)??void 0}}catch{return u}};t.middlewares.push(i)}}const n=({search:s})=>{const i=t.dest;return i.search?i.search===!0?s:br(i.search,s):{}};t.middlewares.push(n);const r=(s,i,a)=>{if(s>=a.length)return i;const l=a[s];return l({search:i,next:f=>r(s+1,f,a)})};return function(i,a,l){return t.dest=a,t._includeValidateSearch=l,r(0,i,t.middlewares)}}function tE(e,t){if(e!=="root")for(let n=t.length-1;n>=0;n--){const r=t[n];if(r.children)return r.id}return wo}function dm(e,t,n,r){var s;const o=((s=e.options.params)==null?void 0:s.parse)??e.options.parseParams;if(o)if(e.options.skipRouteOnParseError)for(const i in t)i in n&&(r[i]=n[i]);else{const i=o(r);Object.assign(r,i)}}var nE="Error preloading route! ☝️",o0=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(e){if(this.init=t=>{var l,u;this.originalIndex=t.originalIndex;const n=this.options,r=!(n!=null&&n.path)&&!(n!=null&&n.id);this.parentRoute=(u=(l=this.options).getParentRoute)==null?void 0:u.call(l),r?this._path=wo:this.parentRoute||Kn();let o=r?wo:n==null?void 0:n.path;o&&o!=="/"&&(o=Xy(o));const s=(n==null?void 0:n.id)||o;let i=r?wo:el([this.parentRoute.id==="__root__"?"":this.parentRoute.id,s]);o==="__root__"&&(o="/"),i!=="__root__"&&(i=el(["/",i]));const a=i==="__root__"?"/":el([this.parentRoute.fullPath,o]);this._path=o,this._id=i,this._fullPath=a,this._to=Lr(a)},this.addChildren=t=>this._addFileChildren(t),this._addFileChildren=t=>(Array.isArray(t)&&(this.children=t),typeof t=="object"&&t!==null&&(this.children=Object.values(t)),this),this._addFileTypes=()=>this,this.updateLoader=t=>(Object.assign(this.options,t),this),this.update=t=>(Object.assign(this.options,t),this),this.lazy=t=>(this.lazyFn=t,this),this.redirect=t=>j_({from:this.fullPath,...t}),this.options=e||{},this.isRoot=!(e!=null&&e.getParentRoute),e!=null&&e.id&&(e!=null&&e.path))throw new Error("Route cannot have both an 'id' and a 'path' option.")}},rE=class extends o0{constructor(e){super(e)}};function oE(e){if(typeof document<"u"&&document.querySelector){const t=e.stores.location.state,n=t.state.__hashScrollIntoViewOptions??!0;if(n&&t.hash!==""){const r=document.getElementById(t.hash);r&&r.scrollIntoView(n)}}}function Xd(e){const t=e.errorComponent??Jd;return x.jsx(sE,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:n,reset:r})=>n?b.createElement(t,{error:n,reset:r}):e.children})}var sE=class extends b.Component{constructor(...e){super(...e),this.state={error:null}}static getDerivedStateFromProps(e){return{resetKey:e.getResetKey()}}static getDerivedStateFromError(e){return{error:e}}reset(){this.setState({error:null})}componentDidUpdate(e,t){t.error&&t.resetKey!==this.state.resetKey&&this.reset()}componentDidCatch(e,t){this.props.onCatch&&this.props.onCatch(e,t)}render(){return this.props.children({error:this.state.resetKey!==this.props.getResetKey()?null:this.state.error,reset:()=>{this.reset()}})}};function Jd({error:e}){const[t,n]=b.useState(!1);return x.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[x.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[x.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),x.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>n(r=>!r),children:t?"Hide Error":"Show Error"})]}),x.jsx("div",{style:{height:".25rem"}}),t?x.jsx("div",{children:x.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:e.message?x.jsx("code",{children:e.message}):null})}):null]})}function iE({children:e,fallback:t=null}){return s0()?x.jsx(Dr.Fragment,{children:e}):x.jsx(Dr.Fragment,{children:t})}function s0(){return Dr.useSyncExternalStore(aE,()=>!0,()=>!1)}function aE(){return()=>{}}var i0=b.createContext(null);function Jt(e){return b.useContext(i0)}var uu=b.createContext(void 0),lE=b.createContext(void 0),Ae=(e=>(e[e.None=0]="None",e[e.Mutable=1]="Mutable",e[e.Watching=2]="Watching",e[e.RecursedCheck=4]="RecursedCheck",e[e.Recursed=8]="Recursed",e[e.Dirty=16]="Dirty",e[e.Pending=32]="Pending",e))(Ae||{});function uE({update:e,notify:t,unwatched:n}){return{link:r,unlink:o,propagate:s,checkDirty:i,shallowPropagate:a};function r(u,f,c){const d=f.depsTail;if(d!==void 0&&d.dep===u)return;const h=d!==void 0?d.nextDep:f.deps;if(h!==void 0&&h.dep===u){h.version=c,f.depsTail=h;return}const m=u.subsTail;if(m!==void 0&&m.version===c&&m.sub===f)return;const g=f.depsTail=u.subsTail={version:c,dep:u,sub:f,prevDep:d,nextDep:h,prevSub:m,nextSub:void 0};h!==void 0&&(h.prevDep=g),d!==void 0?d.nextDep=g:f.deps=g,m!==void 0?m.nextSub=g:u.subs=g}function o(u,f=u.sub){const c=u.dep,d=u.prevDep,h=u.nextDep,m=u.nextSub,g=u.prevSub;return h!==void 0?h.prevDep=d:f.depsTail=d,d!==void 0?d.nextDep=h:f.deps=h,m!==void 0?m.prevSub=g:c.subsTail=g,g!==void 0?g.nextSub=m:(c.subs=m)===void 0&&n(c),h}function s(u){let f=u.nextSub,c;e:do{const d=u.sub;let h=d.flags;if(h&60?h&12?h&4?!(h&48)&&l(u,d)?(d.flags=h|40,h&=1):h=0:d.flags=h&-9|32:h=0:d.flags=h|32,h&2&&t(d),h&1){const m=d.subs;if(m!==void 0){const g=(u=m).nextSub;g!==void 0&&(c={value:f,prev:c},f=g);continue}}if((u=f)!==void 0){f=u.nextSub;continue}for(;c!==void 0;)if(u=c.value,c=c.prev,u!==void 0){f=u.nextSub;continue e}break}while(!0)}function i(u,f){let c,d=0,h=!1;e:do{const m=u.dep,g=m.flags;if(f.flags&16)h=!0;else if((g&17)===17){if(e(m)){const y=m.subs;y.nextSub!==void 0&&a(y),h=!0}}else if((g&33)===33){(u.nextSub!==void 0||u.prevSub!==void 0)&&(c={value:u,prev:c}),u=m.deps,f=m,++d;continue}if(!h){const y=u.nextDep;if(y!==void 0){u=y;continue}}for(;d--;){const y=f.subs,p=y.nextSub!==void 0;if(p?(u=c.value,c=c.prev):u=y,h){if(e(f)){p&&a(y),f=u.sub;continue}h=!1}else f.flags&=-33;f=u.sub;const v=u.nextDep;if(v!==void 0){u=v;continue e}}return h}while(!0)}function a(u){do{const f=u.sub,c=f.flags;(c&48)===32&&(f.flags=c|16,(c&6)===2&&t(f))}while((u=u.nextSub)!==void 0)}function l(u,f){let c=f.depsTail;for(;c!==void 0;){if(c===u)return!0;c=c.prevDep}return!1}}function Zd(e,t,n){var s,i,a;const r=typeof e=="object",o=r?e:void 0;return{next:(s=r?e.next:e)==null?void 0:s.bind(o),error:(i=r?e.error:t)==null?void 0:i.bind(o),complete:(a=r?e.complete:n)==null?void 0:a.bind(o)}}const vf=[];let rl=0;const{link:hm,unlink:cE,propagate:fE,checkDirty:a0,shallowPropagate:pm}=uE({update(e){return e._update()},notify(e){vf[yf++]=e,e.flags&=~Ae.Watching},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=Ae.Mutable|Ae.Dirty,Fl(e))}});let Ma=0,yf=0,Cn,Sf=0;function l0(e){try{++Sf,e()}finally{--Sf||u0()}}function Fl(e){const t=e.depsTail;let n=t!==void 0?t.nextDep:e.deps;for(;n!==void 0;)n=cE(n,e)}function u0(){if(!(Sf>0)){for(;Ma<yf;){const e=vf[Ma];vf[Ma++]=void 0,e.notify()}Ma=0,yf=0}}function c0(e,t){const n=typeof e=="function",r=e,o={_snapshot:n?void 0:e,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:n?Ae.None:Ae.Mutable,get(){return Cn!==void 0&&hm(o,Cn,rl),o._snapshot},subscribe(s){const i=Zd(s),a={current:!1},l=dE(()=>{var u;o.get(),a.current?(u=i.next)==null||u.call(i,o._snapshot):a.current=!0});return{unsubscribe:()=>{l.stop()}}},_update(s){const i=Cn,a=Object.is;if(n)Cn=o,++rl,o.depsTail=void 0;else if(s===void 0)return!1;n&&(o.flags=Ae.Mutable|Ae.RecursedCheck);try{const l=o._snapshot,u=typeof s=="function"?s(l):s===void 0&&n?r(l):s;return l===void 0||!a(l,u)?(o._snapshot=u,!0):!1}finally{Cn=i,n&&(o.flags&=~Ae.RecursedCheck),Fl(o)}}};return n?(o.flags=Ae.Mutable|Ae.Dirty,o.get=function(){const s=o.flags;if(s&Ae.Dirty||s&Ae.Pending&&a0(o.deps,o)){if(o._update()){const i=o.subs;i!==void 0&&pm(i)}}else s&Ae.Pending&&(o.flags=s&~Ae.Pending);return Cn!==void 0&&hm(o,Cn,rl),o._snapshot}):o.set=function(s){if(o._update(s)){const i=o.subs;i!==void 0&&(fE(i),pm(i),u0())}},o}function dE(e){const t=()=>{const r=Cn;Cn=n,++rl,n.depsTail=void 0,n.flags=Ae.Watching|Ae.RecursedCheck;try{return e()}finally{Cn=r,n.flags&=~Ae.RecursedCheck,Fl(n)}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:Ae.Watching|Ae.RecursedCheck,notify(){const r=this.flags;r&Ae.Dirty||r&Ae.Pending&&a0(this.deps,this)?t():this.flags=Ae.Watching},stop(){this.flags=Ae.None,this.depsTail=void 0,Fl(this)}};return t(),n}class hE{constructor(t){this.atom=c0(t)}setState(t){this.atom.set(t)}get state(){return this.atom.get()}get(){return this.state}subscribe(t){return this.atom.subscribe(Zd(t))}}class pE{constructor(t){this.atom=c0(t)}get state(){return this.atom.get()}get(){return this.state}subscribe(t){return this.atom.subscribe(Zd(t))}}function mm(e){return typeof e=="function"?new pE(e):new hE(e)}var f0={exports:{}},d0={},h0={exports:{}},p0={};/**
41
41
  * @license React
42
42
  * use-sync-external-store-shim.production.js
43
43
  *
@@ -45,7 +45,7 @@ Error generating stack: `+s.message+`
45
45
  *
46
46
  * This source code is licensed under the MIT license found in the
47
47
  * LICENSE file in the root directory of this source tree.
48
- */var Is=b;function mE(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var gE=typeof Object.is=="function"?Object.is:mE,vE=Is.useState,yE=Is.useEffect,SE=Is.useLayoutEffect,xE=Is.useDebugValue;function wE(e,t){var n=t(),r=vE({inst:{value:n,getSnapshot:t}}),o=r[0].inst,s=r[1];return SE(function(){o.value=n,o.getSnapshot=t,ic(o)&&s({inst:o})},[e,n,t]),yE(function(){return ic(o)&&s({inst:o}),e(function(){ic(o)&&s({inst:o})})},[e]),xE(n),n}function ic(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!gE(e,n)}catch{return!0}}function _E(e,t){return t()}var EE=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?_E:wE;p0.useSyncExternalStore=Is.useSyncExternalStore!==void 0?Is.useSyncExternalStore:EE;h0.exports=p0;var bE=h0.exports;/**
48
+ */var As=b;function mE(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var gE=typeof Object.is=="function"?Object.is:mE,vE=As.useState,yE=As.useEffect,SE=As.useLayoutEffect,xE=As.useDebugValue;function wE(e,t){var n=t(),r=vE({inst:{value:n,getSnapshot:t}}),o=r[0].inst,s=r[1];return SE(function(){o.value=n,o.getSnapshot=t,ic(o)&&s({inst:o})},[e,n,t]),yE(function(){return ic(o)&&s({inst:o}),e(function(){ic(o)&&s({inst:o})})},[e]),xE(n),n}function ic(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!gE(e,n)}catch{return!0}}function _E(e,t){return t()}var EE=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?_E:wE;p0.useSyncExternalStore=As.useSyncExternalStore!==void 0?As.useSyncExternalStore:EE;h0.exports=p0;var bE=h0.exports;/**
49
49
  * @license React
50
50
  * use-sync-external-store-shim/with-selector.production.js
51
51
  *
@@ -53,14 +53,14 @@ Error generating stack: `+s.message+`
53
53
  *
54
54
  * This source code is licensed under the MIT license found in the
55
55
  * LICENSE file in the root directory of this source tree.
56
- */var uu=b,PE=bE;function RE(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var CE=typeof Object.is=="function"?Object.is:RE,kE=PE.useSyncExternalStore,TE=uu.useRef,IE=uu.useEffect,AE=uu.useMemo,NE=uu.useDebugValue;d0.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var s=TE(null);if(s.current===null){var i={hasValue:!1,value:null};s.current=i}else i=s.current;s=AE(function(){function l(h){if(!u){if(u=!0,f=h,h=r(h),o!==void 0&&i.hasValue){var m=i.value;if(o(m,h))return c=m}return c=h}if(m=c,CE(f,h))return m;var g=r(h);return o!==void 0&&o(m,g)?(f=h,m):(f=h,c=g)}var u=!1,f,c,d=n===void 0?null:n;return[function(){return l(t())},d===null?void 0:function(){return l(d())}]},[t,n,r,o]);var a=kE(e,s[0],s[1]);return IE(function(){i.hasValue=!0,i.value=a},[a]),NE(a),a};f0.exports=d0;var OE=f0.exports;function ME(e,t){return e===t}function Ut(e,t,n=ME){const r=b.useCallback(i=>{if(!e)return()=>{};const{unsubscribe:a}=e.subscribe(i);return a},[e]),o=b.useCallback(()=>e==null?void 0:e.get(),[e]);return OE.useSyncExternalStoreWithSelector(r,o,o,t,n)}var LE={state:void 0,get:()=>{},subscribe:()=>()=>{}};function No(e){const t=Jt(),n=b.useContext(e.from?lE:lu),r=e.from??n,o=r?e.from?t.stores.getMatchStoreByRouteId(r):t.stores.activeMatchStoresById.get(r):void 0,s=b.useRef(void 0);return Ut(o??LE,i=>{if((e.shouldThrow??!0)&&!i&&Kn(),i===void 0)return;const a=e.select?e.select(i):i;if(e.structuralSharing??t.options.defaultStructuralSharing){const l=no(s.current,a);return s.current=l,l}return a})}function m0(e){return No({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function g0(e){const{select:t,...n}=e;return No({...n,select:r=>t?t(r.loaderDeps):r.loaderDeps})}function cu(e){return No({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{const n=e.strict===!1?t.params:t._strictParams;return e.select?e.select(n):n}})}function v0(e){return No({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function fu(e){const t=Jt();return b.useCallback(n=>t.navigate({...n,from:n.from??(e==null?void 0:e.from)}),[e==null?void 0:e.from,t])}function y0(e){return No({...e,select:t=>e.select?e.select(t.context):t.context})}function jE(e,t){const n=Jt(),r=r_(t),{activeProps:o,inactiveProps:s,activeOptions:i,to:a,preload:l,preloadDelay:u,hashScrollIntoView:f,replace:c,startTransition:d,resetScroll:h,viewTransition:m,children:g,target:y,disabled:p,style:v,className:S,onClick:w,onBlur:_,onFocus:T,onMouseEnter:I,onMouseLeave:P,onTouchStart:k,ignoreBlocker:E,params:A,search:L,hash:z,state:U,mask:B,reloadDocument:V,unsafeRelative:W,from:N,_fromLocation:j,...O}=e,M=s0(),Q=b.useMemo(()=>e,[n,e.from,e._fromLocation,e.hash,e.to,e.search,e.params,e.state,e.mask,e.unsafeRelative]),te=Ut(n.stores.location,ae=>ae,(ae,Ee)=>ae.href===Ee.href),oe=b.useMemo(()=>{const ae={_fromLocation:te,...Q};return n.buildLocation(ae)},[n,te,Q]),re=oe.maskedLocation?oe.maskedLocation.publicHref:oe.publicHref,pe=oe.maskedLocation?oe.maskedLocation.external:oe.external,_e=b.useMemo(()=>BE(re,pe,n.history,p),[p,pe,re,n.history]),Ue=b.useMemo(()=>{if(_e!=null&&_e.external)return Nl(_e.href,n.protocolAllowlist)?void 0:_e.href;if(!HE(a)&&!(typeof a!="string"||a.indexOf(":")===-1))try{return new URL(a),Nl(a,n.protocolAllowlist)?void 0:a}catch{}},[a,_e,n.protocolAllowlist]),zt=b.useMemo(()=>{if(Ue)return!1;if(i!=null&&i.exact){if(!w_(te.pathname,oe.pathname,n.basepath))return!1}else{const ae=Ol(te.pathname,n.basepath),Ee=Ol(oe.pathname,n.basepath);if(!(ae.startsWith(Ee)&&(ae.length===Ee.length||ae[Ee.length]==="/")))return!1}return((i==null?void 0:i.includeSearch)??!0)&&!So(te.search,oe.search,{partial:!(i!=null&&i.exact),ignoreUndefined:!(i!=null&&i.explicitUndefined)})?!1:i!=null&&i.includeHash?M&&te.hash===oe.hash:!0},[i==null?void 0:i.exact,i==null?void 0:i.explicitUndefined,i==null?void 0:i.includeHash,i==null?void 0:i.includeSearch,te,Ue,M,oe.hash,oe.pathname,oe.search,n.basepath]),en=zt?br(o,{})??FE:ac,je=zt?ac:br(s,{})??ac,ce=[S,en.className,je.className].filter(Boolean).join(" "),me=(v||en.style||je.style)&&{...v,...en.style,...je.style},[ge,we]=b.useState(!1),Qe=b.useRef(!1),He=e.reloadDocument||Ue?!1:l??n.options.defaultPreload,ye=u??n.options.defaultPreloadDelay??0,qe=b.useCallback(()=>{n.preloadRoute({...Q,_builtLocation:oe}).catch(ae=>{console.warn(ae),console.warn(nE)})},[n,Q,oe]);n_(r,b.useCallback(ae=>{ae!=null&&ae.isIntersecting&&qe()},[qe]),zE,{disabled:!!p||He!=="viewport"}),b.useEffect(()=>{Qe.current||!p&&He==="render"&&(qe(),Qe.current=!0)},[p,qe,He]);const Bt=ae=>{const Ee=ae.currentTarget.getAttribute("target"),ze=y!==void 0?y:Ee;if(!p&&!WE(ae)&&!ae.defaultPrevented&&(!ze||ze==="_self")&&ae.button===0){ae.preventDefault(),su.flushSync(()=>{we(!0)});const Tt=n.subscribe("onResolved",()=>{Tt(),we(!1)});n.navigate({...Q,replace:c,resetScroll:h,hashScrollIntoView:f,startTransition:d,viewTransition:m,ignoreBlocker:E})}};if(Ue)return{...O,ref:r,href:Ue,...g&&{children:g},...y&&{target:y},...p&&{disabled:p},...v&&{style:v},...S&&{className:S},...w&&{onClick:w},..._&&{onBlur:_},...T&&{onFocus:T},...I&&{onMouseEnter:I},...P&&{onMouseLeave:P},...k&&{onTouchStart:k}};const Ye=ae=>{if(p||He!=="intent")return;if(!ye){qe();return}const Ee=ae.currentTarget;if(ei.has(Ee))return;const ze=setTimeout(()=>{ei.delete(Ee),qe()},ye);ei.set(Ee,ze)},yt=ae=>{p||He!=="intent"||qe()},et=ae=>{if(p||!He||!ye)return;const Ee=ae.currentTarget,ze=ei.get(Ee);ze&&(clearTimeout(ze),ei.delete(Ee))};return{...O,...en,...je,href:_e==null?void 0:_e.href,ref:r,onClick:Do([w,Bt]),onBlur:Do([_,et]),onFocus:Do([T,Ye]),onMouseEnter:Do([I,Ye]),onMouseLeave:Do([P,et]),onTouchStart:Do([k,yt]),disabled:!!p,target:y,...me&&{style:me},...ce&&{className:ce},...p&&DE,...zt&&$E,...M&&ge&&UE}}var ac={},FE={className:"active"},DE={role:"link","aria-disabled":!0},$E={"data-status":"active","aria-current":"page"},UE={"data-transitioning":"transitioning"},ei=new WeakMap,zE={rootMargin:"100px"},Do=e=>t=>{for(const n of e)if(n){if(t.defaultPrevented)return;n(t)}};function BE(e,t,n,r){if(!r)return t?{href:e,external:!0}:{href:n.createHref(e)||"/",external:!1}}function HE(e){if(typeof e!="string")return!1;const t=e.charCodeAt(0);return t===47?e.charCodeAt(1)!==47:t===46}var S0=b.forwardRef((e,t)=>{const{_asChild:n,...r}=e,{type:o,...s}=jE(r,t),i=typeof r.children=="function"?r.children({isActive:s["data-status"]==="active"}):r.children;if(!n){const{disabled:a,...l}=s;return b.createElement("a",l,i)}return b.createElement(n,s,i)});function WE(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}var VE=class extends o0{constructor(e){super(e),this.useMatch=t=>No({select:t==null?void 0:t.select,from:this.id,structuralSharing:t==null?void 0:t.structuralSharing}),this.useRouteContext=t=>y0({...t,from:this.id}),this.useSearch=t=>v0({select:t==null?void 0:t.select,structuralSharing:t==null?void 0:t.structuralSharing,from:this.id}),this.useParams=t=>cu({select:t==null?void 0:t.select,structuralSharing:t==null?void 0:t.structuralSharing,from:this.id}),this.useLoaderDeps=t=>g0({...t,from:this.id}),this.useLoaderData=t=>m0({...t,from:this.id}),this.useNavigate=()=>fu({from:this.fullPath}),this.Link=Dr.forwardRef((t,n)=>x.jsx(S0,{ref:n,from:this.fullPath,...t}))}};function eh(e){return new VE(e)}var QE=class extends rE{constructor(e){super(e),this.useMatch=t=>No({select:t==null?void 0:t.select,from:this.id,structuralSharing:t==null?void 0:t.structuralSharing}),this.useRouteContext=t=>y0({...t,from:this.id}),this.useSearch=t=>v0({select:t==null?void 0:t.select,structuralSharing:t==null?void 0:t.structuralSharing,from:this.id}),this.useParams=t=>cu({select:t==null?void 0:t.select,structuralSharing:t==null?void 0:t.structuralSharing,from:this.id}),this.useLoaderDeps=t=>g0({...t,from:this.id}),this.useLoaderData=t=>m0({...t,from:this.id}),this.useNavigate=()=>fu({from:this.fullPath}),this.Link=Dr.forwardRef((t,n)=>x.jsx(S0,{ref:n,from:this.fullPath,...t}))}};function qE(e){return new QE(e)}function GE(e){const t=Jt(),n=`not-found-${Ut(t.stores.location,r=>r.pathname)}-${Ut(t.stores.status,r=>r)}`;return x.jsx(Xd,{getResetKey:()=>n,onCatch:(r,o)=>{var s;if(bt(r))(s=e.onCatch)==null||s.call(e,r,o);else throw r},errorComponent:({error:r})=>{var o;if(bt(r))return(o=e.fallback)==null?void 0:o.call(e,r);throw r},children:e.children})}function KE(){return x.jsx("p",{children:"Not Found"})}function zo(e){return x.jsx(x.Fragment,{children:e.children})}function x0(e,t,n){return t.options.notFoundComponent?x.jsx(t.options.notFoundComponent,{...n}):e.options.defaultNotFoundComponent?x.jsx(e.options.defaultNotFoundComponent,{...n}):x.jsx(KE,{})}function YE(e){return null}function XE(){return YE(Jt()),null}var w0=b.memo(function({matchId:t}){const n=Jt(),r=n.stores.activeMatchStoresById.get(t);r||Kn();const o=Ut(n.stores.loadedAt,i=>i),s=Ut(r,i=>i);return x.jsx(JE,{router:n,matchId:t,resetKey:o,matchState:b.useMemo(()=>{var l;const i=s.routeId,a=(l=n.routesById[i].parentRoute)==null?void 0:l.id;return{routeId:i,ssr:s.ssr,_displayPending:s._displayPending,parentRouteId:a}},[s._displayPending,s.routeId,s.ssr,n.routesById])})});function JE({router:e,matchId:t,resetKey:n,matchState:r}){var m,g;const o=e.routesById[r.routeId],s=o.options.pendingComponent??e.options.defaultPendingComponent,i=s?x.jsx(s,{}):null,a=o.options.errorComponent??e.options.defaultErrorComponent,l=o.options.onCatch??e.options.defaultOnCatch,u=o.isRoot?o.options.notFoundComponent??((m=e.options.notFoundRoute)==null?void 0:m.options.component):o.options.notFoundComponent,f=r.ssr===!1||r.ssr==="data-only",c=(!o.isRoot||o.options.wrapInSuspense||f)&&(o.options.wrapInSuspense??s??(((g=o.options.errorComponent)==null?void 0:g.preload)||f))?b.Suspense:zo,d=a?Xd:zo,h=u?GE:zo;return x.jsxs(o.isRoot?o.options.shellComponent??zo:zo,{children:[x.jsx(lu.Provider,{value:t,children:x.jsx(c,{fallback:i,children:x.jsx(d,{getResetKey:()=>n,errorComponent:a||Jd,onCatch:(y,p)=>{if(bt(y))throw y.routeId??(y.routeId=r.routeId),y;l==null||l(y,p)},children:x.jsx(h,{fallback:y=>{if(y.routeId??(y.routeId=r.routeId),!u||y.routeId&&y.routeId!==r.routeId||!y.routeId&&!o.isRoot)throw y;return b.createElement(u,y)},children:f||r._displayPending?x.jsx(iE,{fallback:i,children:x.jsx(gm,{matchId:t})}):x.jsx(gm,{matchId:t})})})})}),r.parentRouteId===xo?x.jsxs(x.Fragment,{children:[x.jsx(ZE,{resetKey:n}),e.options.scrollRestoration&&Gy?x.jsx(XE,{}):null]}):null]})}function ZE({resetKey:e}){const t=Jt(),n=b.useRef(void 0);return ci(()=>{const r=t.latestLocation.href;(n.current===void 0||n.current!==r)&&(t.emit({type:"onRendered",...as(t.stores.location.state,t.stores.resolvedLocation.state)}),n.current=r)},[t.latestLocation.state.__TSR_key,e,t]),null}var gm=b.memo(function({matchId:t}){var u,f,c,d;const n=Jt(),r=n.stores.activeMatchStoresById.get(t);r||Kn();const o=Ut(r,h=>h),s=o.routeId,i=n.routesById[s],a=b.useMemo(()=>{var m;const h=(m=n.routesById[s].options.remountDeps??n.options.defaultRemountDeps)==null?void 0:m({routeId:s,loaderDeps:o.loaderDeps,params:o._strictParams,search:o._strictSearch});return h?JSON.stringify(h):void 0},[s,o.loaderDeps,o._strictParams,o._strictSearch,n.options.defaultRemountDeps,n.routesById]),l=b.useMemo(()=>{const h=i.options.component??n.options.defaultComponent;return h?x.jsx(h,{},a):x.jsx(_0,{})},[a,i.options.component,n.options.defaultComponent]);if(o._displayPending)throw(u=n.getMatch(o.id))==null?void 0:u._nonReactive.displayPendingPromise;if(o._forcePending)throw(f=n.getMatch(o.id))==null?void 0:f._nonReactive.minPendingPromise;if(o.status==="pending"){const h=i.options.pendingMinMs??n.options.defaultPendingMinMs;if(h){const m=n.getMatch(o.id);if(m&&!m._nonReactive.minPendingPromise){const g=Ts();m._nonReactive.minPendingPromise=g,setTimeout(()=>{g.resolve(),m._nonReactive.minPendingPromise=void 0},h)}}throw(c=n.getMatch(o.id))==null?void 0:c._nonReactive.loadPromise}if(o.status==="notFound")return bt(o.error)||Kn(),x0(n,i,o.error);if(o.status==="redirected")throw jt(o.error)||Kn(),(d=n.getMatch(o.id))==null?void 0:d._nonReactive.loadPromise;if(o.status==="error")throw o.error;return l}),_0=b.memo(function(){const t=Jt(),n=b.useContext(lu);let r,o=!1,s;{const u=n?t.stores.activeMatchStoresById.get(n):void 0;[r,o]=Ut(u,f=>[f==null?void 0:f.routeId,(f==null?void 0:f.globalNotFound)??!1]),s=Ut(t.stores.matchesId,f=>f[f.findIndex(c=>c===n)+1])}const i=r?t.routesById[r]:void 0,a=t.options.defaultPendingComponent?x.jsx(t.options.defaultPendingComponent,{}):null;if(o)return i||Kn(),x0(t,i,void 0);if(!s)return null;const l=x.jsx(w0,{matchId:s});return r===xo?x.jsx(b.Suspense,{fallback:a,children:l}):l});function eb(){const e=Jt(),t=b.useRef({router:e,mounted:!1}),[n,r]=b.useState(!1),o=Ut(e.stores.isLoading,c=>c),s=Ut(e.stores.hasPendingMatches,c=>c),i=Ju(o),a=o||n||s,l=Ju(a),u=o||s,f=Ju(u);return e.startTransition=c=>{r(!0),b.startTransition(()=>{c(),r(!1)})},b.useEffect(()=>{const c=e.history.subscribe(e.load),d=e.buildLocation({to:e.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return Lr(e.latestLocation.publicHref)!==Lr(d.publicHref)&&e.commitLocation({...d,replace:!0}),()=>{c()}},[e,e.history]),ci(()=>{if(typeof window<"u"&&e.ssr||t.current.router===e&&t.current.mounted)return;t.current={router:e,mounted:!0},(async()=>{try{await e.load()}catch(d){console.error(d)}})()},[e]),ci(()=>{i&&!o&&e.emit({type:"onLoad",...as(e.stores.location.state,e.stores.resolvedLocation.state)})},[i,e,o]),ci(()=>{f&&!u&&e.emit({type:"onBeforeRouteMount",...as(e.stores.location.state,e.stores.resolvedLocation.state)})},[u,f,e]),ci(()=>{if(l&&!a){const c=as(e.stores.location.state,e.stores.resolvedLocation.state);e.emit({type:"onResolved",...c}),l0(()=>{e.stores.status.setState(()=>"idle"),e.stores.resolvedLocation.setState(()=>e.stores.location.state)}),c.hrefChanged&&oE(e)}},[a,l,e]),null}function tb(){const e=Jt(),t=e.routesById[xo].options.pendingComponent??e.options.defaultPendingComponent,n=t?x.jsx(t,{}):null,r=x.jsxs(typeof document<"u"&&e.ssr?zo:b.Suspense,{fallback:n,children:[x.jsx(eb,{}),x.jsx(nb,{})]});return e.options.InnerWrap?x.jsx(e.options.InnerWrap,{children:r}):r}function nb(){const e=Jt(),t=Ut(e.stores.firstMatchId,o=>o),n=Ut(e.stores.loadedAt,o=>o),r=t?x.jsx(w0,{matchId:t}):null;return x.jsx(lu.Provider,{value:t,children:e.options.disableGlobalCatchBoundary?r:x.jsx(Xd,{getResetKey:()=>n,errorComponent:Jd,onCatch:void 0,children:r})})}var rb=e=>({createMutableStore:mm,createReadonlyStore:mm,batch:l0}),ob=e=>new sb(e),sb=class extends K_{constructor(e){super(e,rb)}};function ib({router:e,children:t,...n}){Object.keys(n).length>0&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});const r=x.jsx(i0.Provider,{value:e,children:t});return e.options.Wrap?x.jsx(e.options.Wrap,{children:r}):r}function ab({router:e,...t}){return x.jsx(ib,{router:e,...t,children:x.jsx(tb,{})})}function lb(e){const n=Jt();return b.useRef(void 0),Ut(n.stores.__store,r=>r)}var ia=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},ao,pr,us,Pg,ub=(Pg=class extends ia{constructor(){super();ee(this,ao);ee(this,pr);ee(this,us);q(this,us,t=>{if(typeof window<"u"&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){C(this,pr)||this.setEventListener(C(this,us))}onUnsubscribe(){var t;this.hasListeners()||((t=C(this,pr))==null||t.call(this),q(this,pr,void 0))}setEventListener(t){var n;q(this,us,t),(n=C(this,pr))==null||n.call(this),q(this,pr,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){C(this,ao)!==t&&(q(this,ao,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof C(this,ao)=="boolean"?C(this,ao):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},ao=new WeakMap,pr=new WeakMap,us=new WeakMap,Pg),th=new ub,cb={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},mr,Jf,Rg,fb=(Rg=class{constructor(){ee(this,mr,cb);ee(this,Jf,!1)}setTimeoutProvider(e){q(this,mr,e)}setTimeout(e,t){return C(this,mr).setTimeout(e,t)}clearTimeout(e){C(this,mr).clearTimeout(e)}setInterval(e,t){return C(this,mr).setInterval(e,t)}clearInterval(e){C(this,mr).clearInterval(e)}},mr=new WeakMap,Jf=new WeakMap,Rg),so=new fb;function db(e){setTimeout(e,0)}var hb=typeof window>"u"||"Deno"in globalThis;function Nt(){}function pb(e,t){return typeof e=="function"?e(t):e}function xf(e){return typeof e=="number"&&e>=0&&e!==1/0}function E0(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Fr(e,t){return typeof e=="function"?e(t):e}function on(e,t){return typeof e=="function"?e(t):e}function vm(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:s,queryKey:i,stale:a}=e;if(i){if(r){if(t.queryHash!==nh(i,t.options))return!1}else if(!qi(t.queryKey,i))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||o&&o!==t.state.fetchStatus||s&&!s(t))}function ym(e,t){const{exact:n,status:r,predicate:o,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(Qi(t.options.mutationKey)!==Qi(s))return!1}else if(!qi(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function nh(e,t){return((t==null?void 0:t.queryKeyHashFn)||Qi)(e)}function Qi(e){return JSON.stringify(e,(t,n)=>_f(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function qi(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>qi(e[n],t[n])):!1}var mb=Object.prototype.hasOwnProperty;function b0(e,t,n=0){if(e===t)return e;if(n>500)return t;const r=Sm(e)&&Sm(t);if(!r&&!(_f(e)&&_f(t)))return t;const s=(r?e:Object.keys(e)).length,i=r?t:Object.keys(t),a=i.length,l=r?new Array(a):{};let u=0;for(let f=0;f<a;f++){const c=r?f:i[f],d=e[c],h=t[c];if(d===h){l[c]=d,(r?f<s:mb.call(e,c))&&u++;continue}if(d===null||h===null||typeof d!="object"||typeof h!="object"){l[c]=h;continue}const m=b0(d,h,n+1);l[c]=m,m===d&&u++}return s===a&&u===s?e:l}function wf(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Sm(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function _f(e){if(!xm(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!xm(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function xm(e){return Object.prototype.toString.call(e)==="[object Object]"}function gb(e){return new Promise(t=>{so.setTimeout(t,e)})}function Ef(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?b0(e,t):t}function vb(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function yb(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var rh=Symbol();function P0(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===rh?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function R0(e,t){return typeof e=="function"?e(...t):!!e}function Sb(e,t,n){let r=!1,o;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(o??(o=t()),r||(r=!0,o.aborted?n():o.addEventListener("abort",n,{once:!0})),o)}),e}var Gi=(()=>{let e=()=>hb;return{isServer(){return e()},setIsServer(t){e=t}}})();function bf(){let e,t;const n=new Promise((o,s)=>{e=o,t=s});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}var xb=db;function wb(){let e=[],t=0,n=a=>{a()},r=a=>{a()},o=xb;const s=a=>{t?e.push(a):o(()=>{n(a)})},i=()=>{const a=e;e=[],a.length&&o(()=>{r(()=>{a.forEach(l=>{n(l)})})})};return{batch:a=>{let l;t++;try{l=a()}finally{t--,t||i()}return l},batchCalls:a=>(...l)=>{s(()=>{a(...l)})},schedule:s,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{o=a}}}var st=wb(),cs,gr,fs,Cg,_b=(Cg=class extends ia{constructor(){super();ee(this,cs,!0);ee(this,gr);ee(this,fs);q(this,fs,t=>{if(typeof window<"u"&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){C(this,gr)||this.setEventListener(C(this,fs))}onUnsubscribe(){var t;this.hasListeners()||((t=C(this,gr))==null||t.call(this),q(this,gr,void 0))}setEventListener(t){var n;q(this,fs,t),(n=C(this,gr))==null||n.call(this),q(this,gr,t(this.setOnline.bind(this)))}setOnline(t){C(this,cs)!==t&&(q(this,cs,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return C(this,cs)}},cs=new WeakMap,gr=new WeakMap,fs=new WeakMap,Cg),Fl=new _b;function Eb(e){return Math.min(1e3*2**e,3e4)}function C0(e){return(e??"online")==="online"?Fl.isOnline():!0}var Pf=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function k0(e){let t=!1,n=0,r;const o=bf(),s=()=>o.status!=="pending",i=g=>{var y;if(!s()){const p=new Pf(g);d(p),(y=e.onCancel)==null||y.call(e,p)}},a=()=>{t=!0},l=()=>{t=!1},u=()=>th.isFocused()&&(e.networkMode==="always"||Fl.isOnline())&&e.canRun(),f=()=>C0(e.networkMode)&&e.canRun(),c=g=>{s()||(r==null||r(),o.resolve(g))},d=g=>{s()||(r==null||r(),o.reject(g))},h=()=>new Promise(g=>{var y;r=p=>{(s()||u())&&g(p)},(y=e.onPause)==null||y.call(e)}).then(()=>{var g;r=void 0,s()||(g=e.onContinue)==null||g.call(e)}),m=()=>{if(s())return;let g;const y=n===0?e.initialPromise:void 0;try{g=y??e.fn()}catch(p){g=Promise.reject(p)}Promise.resolve(g).then(c).catch(p=>{var T;if(s())return;const v=e.retry??(Gi.isServer()?0:3),S=e.retryDelay??Eb,w=typeof S=="function"?S(n,p):S,_=v===!0||typeof v=="number"&&n<v||typeof v=="function"&&v(n,p);if(t||!_){d(p);return}n++,(T=e.onFail)==null||T.call(e,n,p),gb(w).then(()=>u()?void 0:h()).then(()=>{t?d(p):m()})})};return{promise:o,status:()=>o.status,cancel:i,continue:()=>(r==null||r(),o),cancelRetry:a,continueRetry:l,canStart:f,start:()=>(f()?m():h().then(m),o)}}var lo,kg,T0=(kg=class{constructor(){ee(this,lo)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),xf(this.gcTime)&&q(this,lo,so.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Gi.isServer()?1/0:5*60*1e3))}clearGcTimeout(){C(this,lo)&&(so.clearTimeout(C(this,lo)),q(this,lo,void 0))}},lo=new WeakMap,kg),uo,ds,rn,co,Xe,Yi,fo,Qt,I0,zn,Tg,bb=(Tg=class extends T0{constructor(t){super();ee(this,Qt);ee(this,uo);ee(this,ds);ee(this,rn);ee(this,co);ee(this,Xe);ee(this,Yi);ee(this,fo);q(this,fo,!1),q(this,Yi,t.defaultOptions),this.setOptions(t.options),this.observers=[],q(this,co,t.client),q(this,rn,C(this,co).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,q(this,uo,_m(this.options)),this.state=t.state??C(this,uo),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=C(this,Xe))==null?void 0:t.promise}setOptions(t){if(this.options={...C(this,Yi),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=_m(this.options);n.data!==void 0&&(this.setState(wm(n.data,n.dataUpdatedAt)),q(this,uo,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&C(this,rn).remove(this)}setData(t,n){const r=Ef(this.state.data,t,this.options);return fe(this,Qt,zn).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){fe(this,Qt,zn).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,o;const n=(r=C(this,Xe))==null?void 0:r.promise;return(o=C(this,Xe))==null||o.cancel(t),n?n.then(Nt).catch(Nt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return C(this,uo)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(t=>on(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===rh||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Fr(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!E0(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=C(this,Xe))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=C(this,Xe))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),C(this,rn).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(C(this,Xe)&&(C(this,fo)||fe(this,Qt,I0).call(this)?C(this,Xe).cancel({revert:!0}):C(this,Xe).cancelRetry()),this.scheduleGc()),C(this,rn).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||fe(this,Qt,zn).call(this,{type:"invalidate"})}async fetch(t,n){var l,u,f,c,d,h,m,g,y,p,v,S;if(this.state.fetchStatus!=="idle"&&((l=C(this,Xe))==null?void 0:l.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(C(this,Xe))return C(this,Xe).continueRetry(),C(this,Xe).promise}if(t&&this.setOptions(t),!this.options.queryFn){const w=this.observers.find(_=>_.options.queryFn);w&&this.setOptions(w.options)}const r=new AbortController,o=w=>{Object.defineProperty(w,"signal",{enumerable:!0,get:()=>(q(this,fo,!0),r.signal)})},s=()=>{const w=P0(this.options,n),T=(()=>{const I={client:C(this,co),queryKey:this.queryKey,meta:this.meta};return o(I),I})();return q(this,fo,!1),this.options.persister?this.options.persister(w,T,this):w(T)},a=(()=>{const w={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:C(this,co),state:this.state,fetchFn:s};return o(w),w})();(u=this.options.behavior)==null||u.onFetch(a,this),q(this,ds,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((f=a.fetchOptions)==null?void 0:f.meta))&&fe(this,Qt,zn).call(this,{type:"fetch",meta:(c=a.fetchOptions)==null?void 0:c.meta}),q(this,Xe,k0({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,onCancel:w=>{w instanceof Pf&&w.revert&&this.setState({...C(this,ds),fetchStatus:"idle"}),r.abort()},onFail:(w,_)=>{fe(this,Qt,zn).call(this,{type:"failed",failureCount:w,error:_})},onPause:()=>{fe(this,Qt,zn).call(this,{type:"pause"})},onContinue:()=>{fe(this,Qt,zn).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0}));try{const w=await C(this,Xe).start();if(w===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(w),(h=(d=C(this,rn).config).onSuccess)==null||h.call(d,w,this),(g=(m=C(this,rn).config).onSettled)==null||g.call(m,w,this.state.error,this),w}catch(w){if(w instanceof Pf){if(w.silent)return C(this,Xe).promise;if(w.revert){if(this.state.data===void 0)throw w;return this.state.data}}throw fe(this,Qt,zn).call(this,{type:"error",error:w}),(p=(y=C(this,rn).config).onError)==null||p.call(y,w,this),(S=(v=C(this,rn).config).onSettled)==null||S.call(v,this.state.data,w,this),w}finally{this.scheduleGc()}}},uo=new WeakMap,ds=new WeakMap,rn=new WeakMap,co=new WeakMap,Xe=new WeakMap,Yi=new WeakMap,fo=new WeakMap,Qt=new WeakSet,I0=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},zn=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...A0(r.data,this.options),fetchMeta:t.meta??null};case"success":const o={...r,...wm(t.data,t.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return q(this,ds,t.manual?o:void 0),o;case"error":const s=t.error;return{...r,error:s,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),st.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),C(this,rn).notify({query:this,type:"updated",action:t})})},Tg);function A0(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:C0(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function wm(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function _m(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var At,de,Xi,wt,ho,hs,Wn,vr,Ji,ps,ms,po,mo,yr,gs,ve,fi,Rf,Cf,kf,Tf,If,Af,Nf,N0,Ig,Pb=(Ig=class extends ia{constructor(t,n){super();ee(this,ve);ee(this,At);ee(this,de);ee(this,Xi);ee(this,wt);ee(this,ho);ee(this,hs);ee(this,Wn);ee(this,vr);ee(this,Ji);ee(this,ps);ee(this,ms);ee(this,po);ee(this,mo);ee(this,yr);ee(this,gs,new Set);this.options=n,q(this,At,t),q(this,vr,null),q(this,Wn,bf()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(C(this,de).addObserver(this),Em(C(this,de),this.options)?fe(this,ve,fi).call(this):this.updateResult(),fe(this,ve,Tf).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Of(C(this,de),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Of(C(this,de),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,fe(this,ve,If).call(this),fe(this,ve,Af).call(this),C(this,de).removeObserver(this)}setOptions(t){const n=this.options,r=C(this,de);if(this.options=C(this,At).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof on(this.options.enabled,C(this,de))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");fe(this,ve,Nf).call(this),C(this,de).setOptions(this.options),n._defaulted&&!wf(this.options,n)&&C(this,At).getQueryCache().notify({type:"observerOptionsUpdated",query:C(this,de),observer:this});const o=this.hasListeners();o&&bm(C(this,de),r,this.options,n)&&fe(this,ve,fi).call(this),this.updateResult(),o&&(C(this,de)!==r||on(this.options.enabled,C(this,de))!==on(n.enabled,C(this,de))||Fr(this.options.staleTime,C(this,de))!==Fr(n.staleTime,C(this,de)))&&fe(this,ve,Rf).call(this);const s=fe(this,ve,Cf).call(this);o&&(C(this,de)!==r||on(this.options.enabled,C(this,de))!==on(n.enabled,C(this,de))||s!==C(this,yr))&&fe(this,ve,kf).call(this,s)}getOptimisticResult(t){const n=C(this,At).getQueryCache().build(C(this,At),t),r=this.createResult(n,t);return Cb(this,r)&&(q(this,wt,r),q(this,hs,this.options),q(this,ho,C(this,de).state)),r}getCurrentResult(){return C(this,wt)}trackResult(t,n){return new Proxy(t,{get:(r,o)=>(this.trackProp(o),n==null||n(o),o==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&C(this,Wn).status==="pending"&&C(this,Wn).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,o))})}trackProp(t){C(this,gs).add(t)}getCurrentQuery(){return C(this,de)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=C(this,At).defaultQueryOptions(t),r=C(this,At).getQueryCache().build(C(this,At),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return fe(this,ve,fi).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),C(this,wt)))}createResult(t,n){var k;const r=C(this,de),o=this.options,s=C(this,wt),i=C(this,ho),a=C(this,hs),u=t!==r?t.state:C(this,Xi),{state:f}=t;let c={...f},d=!1,h;if(n._optimisticResults){const E=this.hasListeners(),A=!E&&Em(t,n),L=E&&bm(t,r,n,o);(A||L)&&(c={...c,...A0(f.data,t.options)}),n._optimisticResults==="isRestoring"&&(c.fetchStatus="idle")}let{error:m,errorUpdatedAt:g,status:y}=c;h=c.data;let p=!1;if(n.placeholderData!==void 0&&h===void 0&&y==="pending"){let E;s!=null&&s.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData)?(E=s.data,p=!0):E=typeof n.placeholderData=="function"?n.placeholderData((k=C(this,ms))==null?void 0:k.state.data,C(this,ms)):n.placeholderData,E!==void 0&&(y="success",h=Ef(s==null?void 0:s.data,E,n),d=!0)}if(n.select&&h!==void 0&&!p)if(s&&h===(i==null?void 0:i.data)&&n.select===C(this,Ji))h=C(this,ps);else try{q(this,Ji,n.select),h=n.select(h),h=Ef(s==null?void 0:s.data,h,n),q(this,ps,h),q(this,vr,null)}catch(E){q(this,vr,E)}C(this,vr)&&(m=C(this,vr),h=C(this,ps),g=Date.now(),y="error");const v=c.fetchStatus==="fetching",S=y==="pending",w=y==="error",_=S&&v,T=h!==void 0,P={status:y,fetchStatus:c.fetchStatus,isPending:S,isSuccess:y==="success",isError:w,isInitialLoading:_,isLoading:_,data:h,dataUpdatedAt:c.dataUpdatedAt,error:m,errorUpdatedAt:g,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:t.isFetched(),isFetchedAfterMount:c.dataUpdateCount>u.dataUpdateCount||c.errorUpdateCount>u.errorUpdateCount,isFetching:v,isRefetching:v&&!S,isLoadingError:w&&!T,isPaused:c.fetchStatus==="paused",isPlaceholderData:d,isRefetchError:w&&T,isStale:oh(t,n),refetch:this.refetch,promise:C(this,Wn),isEnabled:on(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const E=P.data!==void 0,A=P.status==="error"&&!E,L=B=>{A?B.reject(P.error):E&&B.resolve(P.data)},z=()=>{const B=q(this,Wn,P.promise=bf());L(B)},U=C(this,Wn);switch(U.status){case"pending":t.queryHash===r.queryHash&&L(U);break;case"fulfilled":(A||P.data!==U.value)&&z();break;case"rejected":(!A||P.error!==U.reason)&&z();break}}return P}updateResult(){const t=C(this,wt),n=this.createResult(C(this,de),this.options);if(q(this,ho,C(this,de).state),q(this,hs,this.options),C(this,ho).data!==void 0&&q(this,ms,C(this,de)),wf(n,t))return;q(this,wt,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:o}=this.options,s=typeof o=="function"?o():o;if(s==="all"||!s&&!C(this,gs).size)return!0;const i=new Set(s??C(this,gs));return this.options.throwOnError&&i.add("error"),Object.keys(C(this,wt)).some(a=>{const l=a;return C(this,wt)[l]!==t[l]&&i.has(l)})};fe(this,ve,N0).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&fe(this,ve,Tf).call(this)}},At=new WeakMap,de=new WeakMap,Xi=new WeakMap,wt=new WeakMap,ho=new WeakMap,hs=new WeakMap,Wn=new WeakMap,vr=new WeakMap,Ji=new WeakMap,ps=new WeakMap,ms=new WeakMap,po=new WeakMap,mo=new WeakMap,yr=new WeakMap,gs=new WeakMap,ve=new WeakSet,fi=function(t){fe(this,ve,Nf).call(this);let n=C(this,de).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Nt)),n},Rf=function(){fe(this,ve,If).call(this);const t=Fr(this.options.staleTime,C(this,de));if(Gi.isServer()||C(this,wt).isStale||!xf(t))return;const r=E0(C(this,wt).dataUpdatedAt,t)+1;q(this,po,so.setTimeout(()=>{C(this,wt).isStale||this.updateResult()},r))},Cf=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(C(this,de)):this.options.refetchInterval)??!1},kf=function(t){fe(this,ve,Af).call(this),q(this,yr,t),!(Gi.isServer()||on(this.options.enabled,C(this,de))===!1||!xf(C(this,yr))||C(this,yr)===0)&&q(this,mo,so.setInterval(()=>{(this.options.refetchIntervalInBackground||th.isFocused())&&fe(this,ve,fi).call(this)},C(this,yr)))},Tf=function(){fe(this,ve,Rf).call(this),fe(this,ve,kf).call(this,fe(this,ve,Cf).call(this))},If=function(){C(this,po)&&(so.clearTimeout(C(this,po)),q(this,po,void 0))},Af=function(){C(this,mo)&&(so.clearInterval(C(this,mo)),q(this,mo,void 0))},Nf=function(){const t=C(this,At).getQueryCache().build(C(this,At),this.options);if(t===C(this,de))return;const n=C(this,de);q(this,de,t),q(this,Xi,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},N0=function(t){st.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(C(this,wt))}),C(this,At).getQueryCache().notify({query:C(this,de),type:"observerResultsUpdated"})})},Ig);function Rb(e,t){return on(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Em(e,t){return Rb(e,t)||e.state.data!==void 0&&Of(e,t,t.refetchOnMount)}function Of(e,t,n){if(on(t.enabled,e)!==!1&&Fr(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&oh(e,t)}return!1}function bm(e,t,n,r){return(e!==t||on(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&oh(e,n)}function oh(e,t){return on(t.enabled,e)!==!1&&e.isStaleByTime(Fr(t.staleTime,e))}function Cb(e,t){return!wf(e.getCurrentResult(),t)}function Pm(e){return{onFetch:(t,n)=>{var f,c,d,h,m;const r=t.options,o=(d=(c=(f=t.fetchOptions)==null?void 0:f.meta)==null?void 0:c.fetchMore)==null?void 0:d.direction,s=((h=t.state.data)==null?void 0:h.pages)||[],i=((m=t.state.data)==null?void 0:m.pageParams)||[];let a={pages:[],pageParams:[]},l=0;const u=async()=>{let g=!1;const y=S=>{Sb(S,()=>t.signal,()=>g=!0)},p=P0(t.options,t.fetchOptions),v=async(S,w,_)=>{if(g)return Promise.reject();if(w==null&&S.pages.length)return Promise.resolve(S);const I=(()=>{const A={client:t.client,queryKey:t.queryKey,pageParam:w,direction:_?"backward":"forward",meta:t.options.meta};return y(A),A})(),P=await p(I),{maxPages:k}=t.options,E=_?yb:vb;return{pages:E(S.pages,P,k),pageParams:E(S.pageParams,w,k)}};if(o&&s.length){const S=o==="backward",w=S?kb:Rm,_={pages:s,pageParams:i},T=w(r,_);a=await v(_,T,S)}else{const S=e??s.length;do{const w=l===0?i[0]??r.initialPageParam:Rm(r,a);if(l>0&&w==null)break;a=await v(a,w),l++}while(l<S)}return a};t.options.persister?t.fetchFn=()=>{var g,y;return(y=(g=t.options).persister)==null?void 0:y.call(g,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function Rm(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function kb(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var Zi,kn,mt,go,Tn,lr,Ag,Tb=(Ag=class extends T0{constructor(t){super();ee(this,Tn);ee(this,Zi);ee(this,kn);ee(this,mt);ee(this,go);q(this,Zi,t.client),this.mutationId=t.mutationId,q(this,mt,t.mutationCache),q(this,kn,[]),this.state=t.state||Ib(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){C(this,kn).includes(t)||(C(this,kn).push(t),this.clearGcTimeout(),C(this,mt).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){q(this,kn,C(this,kn).filter(n=>n!==t)),this.scheduleGc(),C(this,mt).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){C(this,kn).length||(this.state.status==="pending"?this.scheduleGc():C(this,mt).remove(this))}continue(){var t;return((t=C(this,go))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,a,l,u,f,c,d,h,m,g,y,p,v,S,w,_,T,I;const n=()=>{fe(this,Tn,lr).call(this,{type:"continue"})},r={client:C(this,Zi),meta:this.options.meta,mutationKey:this.options.mutationKey};q(this,go,k0({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(P,k)=>{fe(this,Tn,lr).call(this,{type:"failed",failureCount:P,error:k})},onPause:()=>{fe(this,Tn,lr).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>C(this,mt).canRun(this)}));const o=this.state.status==="pending",s=!C(this,go).canStart();try{if(o)n();else{fe(this,Tn,lr).call(this,{type:"pending",variables:t,isPaused:s}),C(this,mt).config.onMutate&&await C(this,mt).config.onMutate(t,this,r);const k=await((a=(i=this.options).onMutate)==null?void 0:a.call(i,t,r));k!==this.state.context&&fe(this,Tn,lr).call(this,{type:"pending",context:k,variables:t,isPaused:s})}const P=await C(this,go).start();return await((u=(l=C(this,mt).config).onSuccess)==null?void 0:u.call(l,P,t,this.state.context,this,r)),await((c=(f=this.options).onSuccess)==null?void 0:c.call(f,P,t,this.state.context,r)),await((h=(d=C(this,mt).config).onSettled)==null?void 0:h.call(d,P,null,this.state.variables,this.state.context,this,r)),await((g=(m=this.options).onSettled)==null?void 0:g.call(m,P,null,t,this.state.context,r)),fe(this,Tn,lr).call(this,{type:"success",data:P}),P}catch(P){try{await((p=(y=C(this,mt).config).onError)==null?void 0:p.call(y,P,t,this.state.context,this,r))}catch(k){Promise.reject(k)}try{await((S=(v=this.options).onError)==null?void 0:S.call(v,P,t,this.state.context,r))}catch(k){Promise.reject(k)}try{await((_=(w=C(this,mt).config).onSettled)==null?void 0:_.call(w,void 0,P,this.state.variables,this.state.context,this,r))}catch(k){Promise.reject(k)}try{await((I=(T=this.options).onSettled)==null?void 0:I.call(T,void 0,P,t,this.state.context,r))}catch(k){Promise.reject(k)}throw fe(this,Tn,lr).call(this,{type:"error",error:P}),P}finally{C(this,mt).runNext(this)}}},Zi=new WeakMap,kn=new WeakMap,mt=new WeakMap,go=new WeakMap,Tn=new WeakSet,lr=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),st.batch(()=>{C(this,kn).forEach(r=>{r.onMutationUpdate(t)}),C(this,mt).notify({mutation:this,type:"updated",action:t})})},Ag);function Ib(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Vn,gn,ea,Ng,Ab=(Ng=class extends ia{constructor(t={}){super();ee(this,Vn);ee(this,gn);ee(this,ea);this.config=t,q(this,Vn,new Set),q(this,gn,new Map),q(this,ea,0)}build(t,n,r){const o=new Tb({client:t,mutationCache:this,mutationId:++pa(this,ea)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){C(this,Vn).add(t);const n=Ma(t);if(typeof n=="string"){const r=C(this,gn).get(n);r?r.push(t):C(this,gn).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(C(this,Vn).delete(t)){const n=Ma(t);if(typeof n=="string"){const r=C(this,gn).get(n);if(r)if(r.length>1){const o=r.indexOf(t);o!==-1&&r.splice(o,1)}else r[0]===t&&C(this,gn).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Ma(t);if(typeof n=="string"){const r=C(this,gn).get(n),o=r==null?void 0:r.find(s=>s.state.status==="pending");return!o||o===t}else return!0}runNext(t){var r;const n=Ma(t);if(typeof n=="string"){const o=(r=C(this,gn).get(n))==null?void 0:r.find(s=>s!==t&&s.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){st.batch(()=>{C(this,Vn).forEach(t=>{this.notify({type:"removed",mutation:t})}),C(this,Vn).clear(),C(this,gn).clear()})}getAll(){return Array.from(C(this,Vn))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>ym(n,r))}findAll(t={}){return this.getAll().filter(n=>ym(t,n))}notify(t){st.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return st.batch(()=>Promise.all(t.map(n=>n.continue().catch(Nt))))}},Vn=new WeakMap,gn=new WeakMap,ea=new WeakMap,Ng);function Ma(e){var t;return(t=e.options.scope)==null?void 0:t.id}var In,Og,Nb=(Og=class extends ia{constructor(t={}){super();ee(this,In);this.config=t,q(this,In,new Map)}build(t,n,r){const o=n.queryKey,s=n.queryHash??nh(o,n);let i=this.get(s);return i||(i=new bb({client:t,queryKey:o,queryHash:s,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(i)),i}add(t){C(this,In).has(t.queryHash)||(C(this,In).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=C(this,In).get(t.queryHash);n&&(t.destroy(),n===t&&C(this,In).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){st.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return C(this,In).get(t)}getAll(){return[...C(this,In).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>vm(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>vm(t,r)):n}notify(t){st.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){st.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){st.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},In=new WeakMap,Og),De,Sr,xr,vs,ys,wr,Ss,xs,Mg,O0=(Mg=class{constructor(e={}){ee(this,De);ee(this,Sr);ee(this,xr);ee(this,vs);ee(this,ys);ee(this,wr);ee(this,Ss);ee(this,xs);q(this,De,e.queryCache||new Nb),q(this,Sr,e.mutationCache||new Ab),q(this,xr,e.defaultOptions||{}),q(this,vs,new Map),q(this,ys,new Map),q(this,wr,0)}mount(){pa(this,wr)._++,C(this,wr)===1&&(q(this,Ss,th.subscribe(async e=>{e&&(await this.resumePausedMutations(),C(this,De).onFocus())})),q(this,xs,Fl.subscribe(async e=>{e&&(await this.resumePausedMutations(),C(this,De).onOnline())})))}unmount(){var e,t;pa(this,wr)._--,C(this,wr)===0&&((e=C(this,Ss))==null||e.call(this),q(this,Ss,void 0),(t=C(this,xs))==null||t.call(this),q(this,xs,void 0))}isFetching(e){return C(this,De).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return C(this,Sr).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=C(this,De).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=C(this,De).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Fr(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return C(this,De).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=C(this,De).get(r.queryHash),s=o==null?void 0:o.state.data,i=pb(t,s);if(i!==void 0)return C(this,De).build(this,r).setData(i,{...n,manual:!0})}setQueriesData(e,t,n){return st.batch(()=>C(this,De).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=C(this,De).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=C(this,De);st.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=C(this,De);return st.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=st.batch(()=>C(this,De).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(Nt).catch(Nt)}invalidateQueries(e,t={}){return st.batch(()=>(C(this,De).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=st.batch(()=>C(this,De).findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let s=o.fetch(void 0,n);return n.throwOnError||(s=s.catch(Nt)),o.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then(Nt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=C(this,De).build(this,t);return n.isStaleByTime(Fr(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Nt).catch(Nt)}fetchInfiniteQuery(e){return e.behavior=Pm(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Nt).catch(Nt)}ensureInfiniteQueryData(e){return e.behavior=Pm(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Fl.isOnline()?C(this,Sr).resumePausedMutations():Promise.resolve()}getQueryCache(){return C(this,De)}getMutationCache(){return C(this,Sr)}getDefaultOptions(){return C(this,xr)}setDefaultOptions(e){q(this,xr,e)}setQueryDefaults(e,t){C(this,vs).set(Qi(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...C(this,vs).values()],n={};return t.forEach(r=>{qi(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){C(this,ys).set(Qi(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...C(this,ys).values()],n={};return t.forEach(r=>{qi(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...C(this,xr).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=nh(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===rh&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...C(this,xr).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){C(this,De).clear(),C(this,Sr).clear()}},De=new WeakMap,Sr=new WeakMap,xr=new WeakMap,vs=new WeakMap,ys=new WeakMap,wr=new WeakMap,Ss=new WeakMap,xs=new WeakMap,Mg),sh=b.createContext(void 0),M0=e=>{const t=b.useContext(sh);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},L0=({client:e,children:t})=>(b.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),x.jsx(sh.Provider,{value:e,children:t})),j0=b.createContext(!1),Ob=()=>b.useContext(j0);j0.Provider;function Mb(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Lb=b.createContext(Mb()),jb=()=>b.useContext(Lb),Fb=(e,t,n)=>{const r=n!=null&&n.state.error&&typeof e.throwOnError=="function"?R0(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},Db=e=>{b.useEffect(()=>{e.clearReset()},[e])},$b=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(o&&e.data===void 0||R0(n,[e.error,r])),Ub=e=>{if(e.suspense){const n=o=>o==="static"?o:Math.max(o??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...o)=>n(r(...o)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},zb=(e,t)=>e.isLoading&&e.isFetching&&!t,Bb=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,Cm=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function Hb(e,t,n){var d,h,m,g;const r=Ob(),o=jb(),s=M0(),i=s.defaultQueryOptions(e);(h=(d=s.getDefaultOptions().queries)==null?void 0:d._experimental_beforeQuery)==null||h.call(d,i);const a=s.getQueryCache().get(i.queryHash);i._optimisticResults=r?"isRestoring":"optimistic",Ub(i),Fb(i,o,a),Db(o);const l=!s.getQueryCache().get(i.queryHash),[u]=b.useState(()=>new t(s,i)),f=u.getOptimisticResult(i),c=!r&&e.subscribed!==!1;if(b.useSyncExternalStore(b.useCallback(y=>{const p=c?u.subscribe(st.batchCalls(y)):Nt;return u.updateResult(),p},[u,c]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),b.useEffect(()=>{u.setOptions(i)},[i,u]),Bb(i,f))throw Cm(i,u,o);if($b({result:f,errorResetBoundary:o,throwOnError:i.throwOnError,query:a,suspense:i.suspense}))throw f.error;if((g=(m=s.getDefaultOptions().queries)==null?void 0:m._experimental_afterQuery)==null||g.call(m,i,f),i.experimental_prefetchInRender&&!Gi.isServer()&&zb(f,r)){const y=l?Cm(i,u,o):a==null?void 0:a.promise;y==null||y.catch(Nt).finally(()=>{u.updateResult()})}return i.notifyOnChangeProps?f:u.trackResult(f)}function Co(e,t){return Hb(e,Pb)}/*!
56
+ */var cu=b,PE=bE;function RE(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var CE=typeof Object.is=="function"?Object.is:RE,kE=PE.useSyncExternalStore,TE=cu.useRef,IE=cu.useEffect,AE=cu.useMemo,NE=cu.useDebugValue;d0.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var s=TE(null);if(s.current===null){var i={hasValue:!1,value:null};s.current=i}else i=s.current;s=AE(function(){function l(h){if(!u){if(u=!0,f=h,h=r(h),o!==void 0&&i.hasValue){var m=i.value;if(o(m,h))return c=m}return c=h}if(m=c,CE(f,h))return m;var g=r(h);return o!==void 0&&o(m,g)?(f=h,m):(f=h,c=g)}var u=!1,f,c,d=n===void 0?null:n;return[function(){return l(t())},d===null?void 0:function(){return l(d())}]},[t,n,r,o]);var a=kE(e,s[0],s[1]);return IE(function(){i.hasValue=!0,i.value=a},[a]),NE(a),a};f0.exports=d0;var OE=f0.exports;function ME(e,t){return e===t}function Ut(e,t,n=ME){const r=b.useCallback(i=>{if(!e)return()=>{};const{unsubscribe:a}=e.subscribe(i);return a},[e]),o=b.useCallback(()=>e==null?void 0:e.get(),[e]);return OE.useSyncExternalStoreWithSelector(r,o,o,t,n)}var LE={state:void 0,get:()=>{},subscribe:()=>()=>{}};function Oo(e){const t=Jt(),n=b.useContext(e.from?lE:uu),r=e.from??n,o=r?e.from?t.stores.getMatchStoreByRouteId(r):t.stores.activeMatchStoresById.get(r):void 0,s=b.useRef(void 0);return Ut(o??LE,i=>{if((e.shouldThrow??!0)&&!i&&Kn(),i===void 0)return;const a=e.select?e.select(i):i;if(e.structuralSharing??t.options.defaultStructuralSharing){const l=no(s.current,a);return s.current=l,l}return a})}function m0(e){return Oo({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function g0(e){const{select:t,...n}=e;return Oo({...n,select:r=>t?t(r.loaderDeps):r.loaderDeps})}function fu(e){return Oo({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{const n=e.strict===!1?t.params:t._strictParams;return e.select?e.select(n):n}})}function v0(e){return Oo({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function du(e){const t=Jt();return b.useCallback(n=>t.navigate({...n,from:n.from??(e==null?void 0:e.from)}),[e==null?void 0:e.from,t])}function y0(e){return Oo({...e,select:t=>e.select?e.select(t.context):t.context})}function jE(e,t){const n=Jt(),r=r_(t),{activeProps:o,inactiveProps:s,activeOptions:i,to:a,preload:l,preloadDelay:u,hashScrollIntoView:f,replace:c,startTransition:d,resetScroll:h,viewTransition:m,children:g,target:y,disabled:p,style:v,className:S,onClick:w,onBlur:_,onFocus:T,onMouseEnter:I,onMouseLeave:P,onTouchStart:k,ignoreBlocker:E,params:A,search:L,hash:z,state:U,mask:B,reloadDocument:V,unsafeRelative:W,from:N,_fromLocation:j,...O}=e,M=s0(),Q=b.useMemo(()=>e,[n,e.from,e._fromLocation,e.hash,e.to,e.search,e.params,e.state,e.mask,e.unsafeRelative]),te=Ut(n.stores.location,ae=>ae,(ae,Ee)=>ae.href===Ee.href),oe=b.useMemo(()=>{const ae={_fromLocation:te,...Q};return n.buildLocation(ae)},[n,te,Q]),re=oe.maskedLocation?oe.maskedLocation.publicHref:oe.publicHref,pe=oe.maskedLocation?oe.maskedLocation.external:oe.external,_e=b.useMemo(()=>BE(re,pe,n.history,p),[p,pe,re,n.history]),Ue=b.useMemo(()=>{if(_e!=null&&_e.external)return Ol(_e.href,n.protocolAllowlist)?void 0:_e.href;if(!HE(a)&&!(typeof a!="string"||a.indexOf(":")===-1))try{return new URL(a),Ol(a,n.protocolAllowlist)?void 0:a}catch{}},[a,_e,n.protocolAllowlist]),zt=b.useMemo(()=>{if(Ue)return!1;if(i!=null&&i.exact){if(!w_(te.pathname,oe.pathname,n.basepath))return!1}else{const ae=Ml(te.pathname,n.basepath),Ee=Ml(oe.pathname,n.basepath);if(!(ae.startsWith(Ee)&&(ae.length===Ee.length||ae[Ee.length]==="/")))return!1}return((i==null?void 0:i.includeSearch)??!0)&&!xo(te.search,oe.search,{partial:!(i!=null&&i.exact),ignoreUndefined:!(i!=null&&i.explicitUndefined)})?!1:i!=null&&i.includeHash?M&&te.hash===oe.hash:!0},[i==null?void 0:i.exact,i==null?void 0:i.explicitUndefined,i==null?void 0:i.includeHash,i==null?void 0:i.includeSearch,te,Ue,M,oe.hash,oe.pathname,oe.search,n.basepath]),en=zt?br(o,{})??FE:ac,je=zt?ac:br(s,{})??ac,ce=[S,en.className,je.className].filter(Boolean).join(" "),me=(v||en.style||je.style)&&{...v,...en.style,...je.style},[ge,we]=b.useState(!1),Qe=b.useRef(!1),He=e.reloadDocument||Ue?!1:l??n.options.defaultPreload,ye=u??n.options.defaultPreloadDelay??0,qe=b.useCallback(()=>{n.preloadRoute({...Q,_builtLocation:oe}).catch(ae=>{console.warn(ae),console.warn(nE)})},[n,Q,oe]);n_(r,b.useCallback(ae=>{ae!=null&&ae.isIntersecting&&qe()},[qe]),zE,{disabled:!!p||He!=="viewport"}),b.useEffect(()=>{Qe.current||!p&&He==="render"&&(qe(),Qe.current=!0)},[p,qe,He]);const Bt=ae=>{const Ee=ae.currentTarget.getAttribute("target"),ze=y!==void 0?y:Ee;if(!p&&!WE(ae)&&!ae.defaultPrevented&&(!ze||ze==="_self")&&ae.button===0){ae.preventDefault(),iu.flushSync(()=>{we(!0)});const Tt=n.subscribe("onResolved",()=>{Tt(),we(!1)});n.navigate({...Q,replace:c,resetScroll:h,hashScrollIntoView:f,startTransition:d,viewTransition:m,ignoreBlocker:E})}};if(Ue)return{...O,ref:r,href:Ue,...g&&{children:g},...y&&{target:y},...p&&{disabled:p},...v&&{style:v},...S&&{className:S},...w&&{onClick:w},..._&&{onBlur:_},...T&&{onFocus:T},...I&&{onMouseEnter:I},...P&&{onMouseLeave:P},...k&&{onTouchStart:k}};const Ye=ae=>{if(p||He!=="intent")return;if(!ye){qe();return}const Ee=ae.currentTarget;if(ti.has(Ee))return;const ze=setTimeout(()=>{ti.delete(Ee),qe()},ye);ti.set(Ee,ze)},yt=ae=>{p||He!=="intent"||qe()},et=ae=>{if(p||!He||!ye)return;const Ee=ae.currentTarget,ze=ti.get(Ee);ze&&(clearTimeout(ze),ti.delete(Ee))};return{...O,...en,...je,href:_e==null?void 0:_e.href,ref:r,onClick:$o([w,Bt]),onBlur:$o([_,et]),onFocus:$o([T,Ye]),onMouseEnter:$o([I,Ye]),onMouseLeave:$o([P,et]),onTouchStart:$o([k,yt]),disabled:!!p,target:y,...me&&{style:me},...ce&&{className:ce},...p&&DE,...zt&&$E,...M&&ge&&UE}}var ac={},FE={className:"active"},DE={role:"link","aria-disabled":!0},$E={"data-status":"active","aria-current":"page"},UE={"data-transitioning":"transitioning"},ti=new WeakMap,zE={rootMargin:"100px"},$o=e=>t=>{for(const n of e)if(n){if(t.defaultPrevented)return;n(t)}};function BE(e,t,n,r){if(!r)return t?{href:e,external:!0}:{href:n.createHref(e)||"/",external:!1}}function HE(e){if(typeof e!="string")return!1;const t=e.charCodeAt(0);return t===47?e.charCodeAt(1)!==47:t===46}var S0=b.forwardRef((e,t)=>{const{_asChild:n,...r}=e,{type:o,...s}=jE(r,t),i=typeof r.children=="function"?r.children({isActive:s["data-status"]==="active"}):r.children;if(!n){const{disabled:a,...l}=s;return b.createElement("a",l,i)}return b.createElement(n,s,i)});function WE(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}var VE=class extends o0{constructor(e){super(e),this.useMatch=t=>Oo({select:t==null?void 0:t.select,from:this.id,structuralSharing:t==null?void 0:t.structuralSharing}),this.useRouteContext=t=>y0({...t,from:this.id}),this.useSearch=t=>v0({select:t==null?void 0:t.select,structuralSharing:t==null?void 0:t.structuralSharing,from:this.id}),this.useParams=t=>fu({select:t==null?void 0:t.select,structuralSharing:t==null?void 0:t.structuralSharing,from:this.id}),this.useLoaderDeps=t=>g0({...t,from:this.id}),this.useLoaderData=t=>m0({...t,from:this.id}),this.useNavigate=()=>du({from:this.fullPath}),this.Link=Dr.forwardRef((t,n)=>x.jsx(S0,{ref:n,from:this.fullPath,...t}))}};function eh(e){return new VE(e)}var QE=class extends rE{constructor(e){super(e),this.useMatch=t=>Oo({select:t==null?void 0:t.select,from:this.id,structuralSharing:t==null?void 0:t.structuralSharing}),this.useRouteContext=t=>y0({...t,from:this.id}),this.useSearch=t=>v0({select:t==null?void 0:t.select,structuralSharing:t==null?void 0:t.structuralSharing,from:this.id}),this.useParams=t=>fu({select:t==null?void 0:t.select,structuralSharing:t==null?void 0:t.structuralSharing,from:this.id}),this.useLoaderDeps=t=>g0({...t,from:this.id}),this.useLoaderData=t=>m0({...t,from:this.id}),this.useNavigate=()=>du({from:this.fullPath}),this.Link=Dr.forwardRef((t,n)=>x.jsx(S0,{ref:n,from:this.fullPath,...t}))}};function qE(e){return new QE(e)}function GE(e){const t=Jt(),n=`not-found-${Ut(t.stores.location,r=>r.pathname)}-${Ut(t.stores.status,r=>r)}`;return x.jsx(Xd,{getResetKey:()=>n,onCatch:(r,o)=>{var s;if(bt(r))(s=e.onCatch)==null||s.call(e,r,o);else throw r},errorComponent:({error:r})=>{var o;if(bt(r))return(o=e.fallback)==null?void 0:o.call(e,r);throw r},children:e.children})}function KE(){return x.jsx("p",{children:"Not Found"})}function Bo(e){return x.jsx(x.Fragment,{children:e.children})}function x0(e,t,n){return t.options.notFoundComponent?x.jsx(t.options.notFoundComponent,{...n}):e.options.defaultNotFoundComponent?x.jsx(e.options.defaultNotFoundComponent,{...n}):x.jsx(KE,{})}function YE(e){return null}function XE(){return YE(Jt()),null}var w0=b.memo(function({matchId:t}){const n=Jt(),r=n.stores.activeMatchStoresById.get(t);r||Kn();const o=Ut(n.stores.loadedAt,i=>i),s=Ut(r,i=>i);return x.jsx(JE,{router:n,matchId:t,resetKey:o,matchState:b.useMemo(()=>{var l;const i=s.routeId,a=(l=n.routesById[i].parentRoute)==null?void 0:l.id;return{routeId:i,ssr:s.ssr,_displayPending:s._displayPending,parentRouteId:a}},[s._displayPending,s.routeId,s.ssr,n.routesById])})});function JE({router:e,matchId:t,resetKey:n,matchState:r}){var m,g;const o=e.routesById[r.routeId],s=o.options.pendingComponent??e.options.defaultPendingComponent,i=s?x.jsx(s,{}):null,a=o.options.errorComponent??e.options.defaultErrorComponent,l=o.options.onCatch??e.options.defaultOnCatch,u=o.isRoot?o.options.notFoundComponent??((m=e.options.notFoundRoute)==null?void 0:m.options.component):o.options.notFoundComponent,f=r.ssr===!1||r.ssr==="data-only",c=(!o.isRoot||o.options.wrapInSuspense||f)&&(o.options.wrapInSuspense??s??(((g=o.options.errorComponent)==null?void 0:g.preload)||f))?b.Suspense:Bo,d=a?Xd:Bo,h=u?GE:Bo;return x.jsxs(o.isRoot?o.options.shellComponent??Bo:Bo,{children:[x.jsx(uu.Provider,{value:t,children:x.jsx(c,{fallback:i,children:x.jsx(d,{getResetKey:()=>n,errorComponent:a||Jd,onCatch:(y,p)=>{if(bt(y))throw y.routeId??(y.routeId=r.routeId),y;l==null||l(y,p)},children:x.jsx(h,{fallback:y=>{if(y.routeId??(y.routeId=r.routeId),!u||y.routeId&&y.routeId!==r.routeId||!y.routeId&&!o.isRoot)throw y;return b.createElement(u,y)},children:f||r._displayPending?x.jsx(iE,{fallback:i,children:x.jsx(gm,{matchId:t})}):x.jsx(gm,{matchId:t})})})})}),r.parentRouteId===wo?x.jsxs(x.Fragment,{children:[x.jsx(ZE,{resetKey:n}),e.options.scrollRestoration&&Gy?x.jsx(XE,{}):null]}):null]})}function ZE({resetKey:e}){const t=Jt(),n=b.useRef(void 0);return fi(()=>{const r=t.latestLocation.href;(n.current===void 0||n.current!==r)&&(t.emit({type:"onRendered",...ls(t.stores.location.state,t.stores.resolvedLocation.state)}),n.current=r)},[t.latestLocation.state.__TSR_key,e,t]),null}var gm=b.memo(function({matchId:t}){var u,f,c,d;const n=Jt(),r=n.stores.activeMatchStoresById.get(t);r||Kn();const o=Ut(r,h=>h),s=o.routeId,i=n.routesById[s],a=b.useMemo(()=>{var m;const h=(m=n.routesById[s].options.remountDeps??n.options.defaultRemountDeps)==null?void 0:m({routeId:s,loaderDeps:o.loaderDeps,params:o._strictParams,search:o._strictSearch});return h?JSON.stringify(h):void 0},[s,o.loaderDeps,o._strictParams,o._strictSearch,n.options.defaultRemountDeps,n.routesById]),l=b.useMemo(()=>{const h=i.options.component??n.options.defaultComponent;return h?x.jsx(h,{},a):x.jsx(_0,{})},[a,i.options.component,n.options.defaultComponent]);if(o._displayPending)throw(u=n.getMatch(o.id))==null?void 0:u._nonReactive.displayPendingPromise;if(o._forcePending)throw(f=n.getMatch(o.id))==null?void 0:f._nonReactive.minPendingPromise;if(o.status==="pending"){const h=i.options.pendingMinMs??n.options.defaultPendingMinMs;if(h){const m=n.getMatch(o.id);if(m&&!m._nonReactive.minPendingPromise){const g=Is();m._nonReactive.minPendingPromise=g,setTimeout(()=>{g.resolve(),m._nonReactive.minPendingPromise=void 0},h)}}throw(c=n.getMatch(o.id))==null?void 0:c._nonReactive.loadPromise}if(o.status==="notFound")return bt(o.error)||Kn(),x0(n,i,o.error);if(o.status==="redirected")throw jt(o.error)||Kn(),(d=n.getMatch(o.id))==null?void 0:d._nonReactive.loadPromise;if(o.status==="error")throw o.error;return l}),_0=b.memo(function(){const t=Jt(),n=b.useContext(uu);let r,o=!1,s;{const u=n?t.stores.activeMatchStoresById.get(n):void 0;[r,o]=Ut(u,f=>[f==null?void 0:f.routeId,(f==null?void 0:f.globalNotFound)??!1]),s=Ut(t.stores.matchesId,f=>f[f.findIndex(c=>c===n)+1])}const i=r?t.routesById[r]:void 0,a=t.options.defaultPendingComponent?x.jsx(t.options.defaultPendingComponent,{}):null;if(o)return i||Kn(),x0(t,i,void 0);if(!s)return null;const l=x.jsx(w0,{matchId:s});return r===wo?x.jsx(b.Suspense,{fallback:a,children:l}):l});function eb(){const e=Jt(),t=b.useRef({router:e,mounted:!1}),[n,r]=b.useState(!1),o=Ut(e.stores.isLoading,c=>c),s=Ut(e.stores.hasPendingMatches,c=>c),i=Ju(o),a=o||n||s,l=Ju(a),u=o||s,f=Ju(u);return e.startTransition=c=>{r(!0),b.startTransition(()=>{c(),r(!1)})},b.useEffect(()=>{const c=e.history.subscribe(e.load),d=e.buildLocation({to:e.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return Lr(e.latestLocation.publicHref)!==Lr(d.publicHref)&&e.commitLocation({...d,replace:!0}),()=>{c()}},[e,e.history]),fi(()=>{if(typeof window<"u"&&e.ssr||t.current.router===e&&t.current.mounted)return;t.current={router:e,mounted:!0},(async()=>{try{await e.load()}catch(d){console.error(d)}})()},[e]),fi(()=>{i&&!o&&e.emit({type:"onLoad",...ls(e.stores.location.state,e.stores.resolvedLocation.state)})},[i,e,o]),fi(()=>{f&&!u&&e.emit({type:"onBeforeRouteMount",...ls(e.stores.location.state,e.stores.resolvedLocation.state)})},[u,f,e]),fi(()=>{if(l&&!a){const c=ls(e.stores.location.state,e.stores.resolvedLocation.state);e.emit({type:"onResolved",...c}),l0(()=>{e.stores.status.setState(()=>"idle"),e.stores.resolvedLocation.setState(()=>e.stores.location.state)}),c.hrefChanged&&oE(e)}},[a,l,e]),null}function tb(){const e=Jt(),t=e.routesById[wo].options.pendingComponent??e.options.defaultPendingComponent,n=t?x.jsx(t,{}):null,r=x.jsxs(typeof document<"u"&&e.ssr?Bo:b.Suspense,{fallback:n,children:[x.jsx(eb,{}),x.jsx(nb,{})]});return e.options.InnerWrap?x.jsx(e.options.InnerWrap,{children:r}):r}function nb(){const e=Jt(),t=Ut(e.stores.firstMatchId,o=>o),n=Ut(e.stores.loadedAt,o=>o),r=t?x.jsx(w0,{matchId:t}):null;return x.jsx(uu.Provider,{value:t,children:e.options.disableGlobalCatchBoundary?r:x.jsx(Xd,{getResetKey:()=>n,errorComponent:Jd,onCatch:void 0,children:r})})}var rb=e=>({createMutableStore:mm,createReadonlyStore:mm,batch:l0}),ob=e=>new sb(e),sb=class extends K_{constructor(e){super(e,rb)}};function ib({router:e,children:t,...n}){Object.keys(n).length>0&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});const r=x.jsx(i0.Provider,{value:e,children:t});return e.options.Wrap?x.jsx(e.options.Wrap,{children:r}):r}function ab({router:e,...t}){return x.jsx(ib,{router:e,...t,children:x.jsx(tb,{})})}function lb(e){const n=Jt();return b.useRef(void 0),Ut(n.stores.__store,r=>r)}var aa=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},lo,pr,cs,Pg,ub=(Pg=class extends aa{constructor(){super();ee(this,lo);ee(this,pr);ee(this,cs);q(this,cs,t=>{if(typeof window<"u"&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){C(this,pr)||this.setEventListener(C(this,cs))}onUnsubscribe(){var t;this.hasListeners()||((t=C(this,pr))==null||t.call(this),q(this,pr,void 0))}setEventListener(t){var n;q(this,cs,t),(n=C(this,pr))==null||n.call(this),q(this,pr,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){C(this,lo)!==t&&(q(this,lo,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof C(this,lo)=="boolean"?C(this,lo):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},lo=new WeakMap,pr=new WeakMap,cs=new WeakMap,Pg),th=new ub,cb={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},mr,Jf,Rg,fb=(Rg=class{constructor(){ee(this,mr,cb);ee(this,Jf,!1)}setTimeoutProvider(e){q(this,mr,e)}setTimeout(e,t){return C(this,mr).setTimeout(e,t)}clearTimeout(e){C(this,mr).clearTimeout(e)}setInterval(e,t){return C(this,mr).setInterval(e,t)}clearInterval(e){C(this,mr).clearInterval(e)}},mr=new WeakMap,Jf=new WeakMap,Rg),so=new fb;function db(e){setTimeout(e,0)}var hb=typeof window>"u"||"Deno"in globalThis;function Nt(){}function pb(e,t){return typeof e=="function"?e(t):e}function xf(e){return typeof e=="number"&&e>=0&&e!==1/0}function E0(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Fr(e,t){return typeof e=="function"?e(t):e}function on(e,t){return typeof e=="function"?e(t):e}function vm(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:s,queryKey:i,stale:a}=e;if(i){if(r){if(t.queryHash!==nh(i,t.options))return!1}else if(!Gi(t.queryKey,i))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||o&&o!==t.state.fetchStatus||s&&!s(t))}function ym(e,t){const{exact:n,status:r,predicate:o,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(qi(t.options.mutationKey)!==qi(s))return!1}else if(!Gi(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function nh(e,t){return((t==null?void 0:t.queryKeyHashFn)||qi)(e)}function qi(e){return JSON.stringify(e,(t,n)=>_f(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function Gi(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Gi(e[n],t[n])):!1}var mb=Object.prototype.hasOwnProperty;function b0(e,t,n=0){if(e===t)return e;if(n>500)return t;const r=Sm(e)&&Sm(t);if(!r&&!(_f(e)&&_f(t)))return t;const s=(r?e:Object.keys(e)).length,i=r?t:Object.keys(t),a=i.length,l=r?new Array(a):{};let u=0;for(let f=0;f<a;f++){const c=r?f:i[f],d=e[c],h=t[c];if(d===h){l[c]=d,(r?f<s:mb.call(e,c))&&u++;continue}if(d===null||h===null||typeof d!="object"||typeof h!="object"){l[c]=h;continue}const m=b0(d,h,n+1);l[c]=m,m===d&&u++}return s===a&&u===s?e:l}function wf(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Sm(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function _f(e){if(!xm(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!xm(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function xm(e){return Object.prototype.toString.call(e)==="[object Object]"}function gb(e){return new Promise(t=>{so.setTimeout(t,e)})}function Ef(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?b0(e,t):t}function vb(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function yb(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var rh=Symbol();function P0(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===rh?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function R0(e,t){return typeof e=="function"?e(...t):!!e}function Sb(e,t,n){let r=!1,o;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(o??(o=t()),r||(r=!0,o.aborted?n():o.addEventListener("abort",n,{once:!0})),o)}),e}var Ki=(()=>{let e=()=>hb;return{isServer(){return e()},setIsServer(t){e=t}}})();function bf(){let e,t;const n=new Promise((o,s)=>{e=o,t=s});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}var xb=db;function wb(){let e=[],t=0,n=a=>{a()},r=a=>{a()},o=xb;const s=a=>{t?e.push(a):o(()=>{n(a)})},i=()=>{const a=e;e=[],a.length&&o(()=>{r(()=>{a.forEach(l=>{n(l)})})})};return{batch:a=>{let l;t++;try{l=a()}finally{t--,t||i()}return l},batchCalls:a=>(...l)=>{s(()=>{a(...l)})},schedule:s,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{o=a}}}var st=wb(),fs,gr,ds,Cg,_b=(Cg=class extends aa{constructor(){super();ee(this,fs,!0);ee(this,gr);ee(this,ds);q(this,ds,t=>{if(typeof window<"u"&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){C(this,gr)||this.setEventListener(C(this,ds))}onUnsubscribe(){var t;this.hasListeners()||((t=C(this,gr))==null||t.call(this),q(this,gr,void 0))}setEventListener(t){var n;q(this,ds,t),(n=C(this,gr))==null||n.call(this),q(this,gr,t(this.setOnline.bind(this)))}setOnline(t){C(this,fs)!==t&&(q(this,fs,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return C(this,fs)}},fs=new WeakMap,gr=new WeakMap,ds=new WeakMap,Cg),Dl=new _b;function Eb(e){return Math.min(1e3*2**e,3e4)}function C0(e){return(e??"online")==="online"?Dl.isOnline():!0}var Pf=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function k0(e){let t=!1,n=0,r;const o=bf(),s=()=>o.status!=="pending",i=g=>{var y;if(!s()){const p=new Pf(g);d(p),(y=e.onCancel)==null||y.call(e,p)}},a=()=>{t=!0},l=()=>{t=!1},u=()=>th.isFocused()&&(e.networkMode==="always"||Dl.isOnline())&&e.canRun(),f=()=>C0(e.networkMode)&&e.canRun(),c=g=>{s()||(r==null||r(),o.resolve(g))},d=g=>{s()||(r==null||r(),o.reject(g))},h=()=>new Promise(g=>{var y;r=p=>{(s()||u())&&g(p)},(y=e.onPause)==null||y.call(e)}).then(()=>{var g;r=void 0,s()||(g=e.onContinue)==null||g.call(e)}),m=()=>{if(s())return;let g;const y=n===0?e.initialPromise:void 0;try{g=y??e.fn()}catch(p){g=Promise.reject(p)}Promise.resolve(g).then(c).catch(p=>{var T;if(s())return;const v=e.retry??(Ki.isServer()?0:3),S=e.retryDelay??Eb,w=typeof S=="function"?S(n,p):S,_=v===!0||typeof v=="number"&&n<v||typeof v=="function"&&v(n,p);if(t||!_){d(p);return}n++,(T=e.onFail)==null||T.call(e,n,p),gb(w).then(()=>u()?void 0:h()).then(()=>{t?d(p):m()})})};return{promise:o,status:()=>o.status,cancel:i,continue:()=>(r==null||r(),o),cancelRetry:a,continueRetry:l,canStart:f,start:()=>(f()?m():h().then(m),o)}}var uo,kg,T0=(kg=class{constructor(){ee(this,uo)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),xf(this.gcTime)&&q(this,uo,so.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Ki.isServer()?1/0:5*60*1e3))}clearGcTimeout(){C(this,uo)&&(so.clearTimeout(C(this,uo)),q(this,uo,void 0))}},uo=new WeakMap,kg),co,hs,rn,fo,Xe,Xi,ho,Qt,I0,zn,Tg,bb=(Tg=class extends T0{constructor(t){super();ee(this,Qt);ee(this,co);ee(this,hs);ee(this,rn);ee(this,fo);ee(this,Xe);ee(this,Xi);ee(this,ho);q(this,ho,!1),q(this,Xi,t.defaultOptions),this.setOptions(t.options),this.observers=[],q(this,fo,t.client),q(this,rn,C(this,fo).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,q(this,co,_m(this.options)),this.state=t.state??C(this,co),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=C(this,Xe))==null?void 0:t.promise}setOptions(t){if(this.options={...C(this,Xi),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=_m(this.options);n.data!==void 0&&(this.setState(wm(n.data,n.dataUpdatedAt)),q(this,co,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&C(this,rn).remove(this)}setData(t,n){const r=Ef(this.state.data,t,this.options);return fe(this,Qt,zn).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){fe(this,Qt,zn).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,o;const n=(r=C(this,Xe))==null?void 0:r.promise;return(o=C(this,Xe))==null||o.cancel(t),n?n.then(Nt).catch(Nt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return C(this,co)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(t=>on(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===rh||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Fr(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!E0(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=C(this,Xe))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=C(this,Xe))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),C(this,rn).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(C(this,Xe)&&(C(this,ho)||fe(this,Qt,I0).call(this)?C(this,Xe).cancel({revert:!0}):C(this,Xe).cancelRetry()),this.scheduleGc()),C(this,rn).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||fe(this,Qt,zn).call(this,{type:"invalidate"})}async fetch(t,n){var l,u,f,c,d,h,m,g,y,p,v,S;if(this.state.fetchStatus!=="idle"&&((l=C(this,Xe))==null?void 0:l.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(C(this,Xe))return C(this,Xe).continueRetry(),C(this,Xe).promise}if(t&&this.setOptions(t),!this.options.queryFn){const w=this.observers.find(_=>_.options.queryFn);w&&this.setOptions(w.options)}const r=new AbortController,o=w=>{Object.defineProperty(w,"signal",{enumerable:!0,get:()=>(q(this,ho,!0),r.signal)})},s=()=>{const w=P0(this.options,n),T=(()=>{const I={client:C(this,fo),queryKey:this.queryKey,meta:this.meta};return o(I),I})();return q(this,ho,!1),this.options.persister?this.options.persister(w,T,this):w(T)},a=(()=>{const w={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:C(this,fo),state:this.state,fetchFn:s};return o(w),w})();(u=this.options.behavior)==null||u.onFetch(a,this),q(this,hs,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((f=a.fetchOptions)==null?void 0:f.meta))&&fe(this,Qt,zn).call(this,{type:"fetch",meta:(c=a.fetchOptions)==null?void 0:c.meta}),q(this,Xe,k0({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,onCancel:w=>{w instanceof Pf&&w.revert&&this.setState({...C(this,hs),fetchStatus:"idle"}),r.abort()},onFail:(w,_)=>{fe(this,Qt,zn).call(this,{type:"failed",failureCount:w,error:_})},onPause:()=>{fe(this,Qt,zn).call(this,{type:"pause"})},onContinue:()=>{fe(this,Qt,zn).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0}));try{const w=await C(this,Xe).start();if(w===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(w),(h=(d=C(this,rn).config).onSuccess)==null||h.call(d,w,this),(g=(m=C(this,rn).config).onSettled)==null||g.call(m,w,this.state.error,this),w}catch(w){if(w instanceof Pf){if(w.silent)return C(this,Xe).promise;if(w.revert){if(this.state.data===void 0)throw w;return this.state.data}}throw fe(this,Qt,zn).call(this,{type:"error",error:w}),(p=(y=C(this,rn).config).onError)==null||p.call(y,w,this),(S=(v=C(this,rn).config).onSettled)==null||S.call(v,this.state.data,w,this),w}finally{this.scheduleGc()}}},co=new WeakMap,hs=new WeakMap,rn=new WeakMap,fo=new WeakMap,Xe=new WeakMap,Xi=new WeakMap,ho=new WeakMap,Qt=new WeakSet,I0=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},zn=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...A0(r.data,this.options),fetchMeta:t.meta??null};case"success":const o={...r,...wm(t.data,t.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return q(this,hs,t.manual?o:void 0),o;case"error":const s=t.error;return{...r,error:s,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),st.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),C(this,rn).notify({query:this,type:"updated",action:t})})},Tg);function A0(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:C0(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function wm(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function _m(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var At,de,Ji,wt,po,ps,Wn,vr,Zi,ms,gs,mo,go,yr,vs,ve,di,Rf,Cf,kf,Tf,If,Af,Nf,N0,Ig,Pb=(Ig=class extends aa{constructor(t,n){super();ee(this,ve);ee(this,At);ee(this,de);ee(this,Ji);ee(this,wt);ee(this,po);ee(this,ps);ee(this,Wn);ee(this,vr);ee(this,Zi);ee(this,ms);ee(this,gs);ee(this,mo);ee(this,go);ee(this,yr);ee(this,vs,new Set);this.options=n,q(this,At,t),q(this,vr,null),q(this,Wn,bf()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(C(this,de).addObserver(this),Em(C(this,de),this.options)?fe(this,ve,di).call(this):this.updateResult(),fe(this,ve,Tf).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Of(C(this,de),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Of(C(this,de),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,fe(this,ve,If).call(this),fe(this,ve,Af).call(this),C(this,de).removeObserver(this)}setOptions(t){const n=this.options,r=C(this,de);if(this.options=C(this,At).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof on(this.options.enabled,C(this,de))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");fe(this,ve,Nf).call(this),C(this,de).setOptions(this.options),n._defaulted&&!wf(this.options,n)&&C(this,At).getQueryCache().notify({type:"observerOptionsUpdated",query:C(this,de),observer:this});const o=this.hasListeners();o&&bm(C(this,de),r,this.options,n)&&fe(this,ve,di).call(this),this.updateResult(),o&&(C(this,de)!==r||on(this.options.enabled,C(this,de))!==on(n.enabled,C(this,de))||Fr(this.options.staleTime,C(this,de))!==Fr(n.staleTime,C(this,de)))&&fe(this,ve,Rf).call(this);const s=fe(this,ve,Cf).call(this);o&&(C(this,de)!==r||on(this.options.enabled,C(this,de))!==on(n.enabled,C(this,de))||s!==C(this,yr))&&fe(this,ve,kf).call(this,s)}getOptimisticResult(t){const n=C(this,At).getQueryCache().build(C(this,At),t),r=this.createResult(n,t);return Cb(this,r)&&(q(this,wt,r),q(this,ps,this.options),q(this,po,C(this,de).state)),r}getCurrentResult(){return C(this,wt)}trackResult(t,n){return new Proxy(t,{get:(r,o)=>(this.trackProp(o),n==null||n(o),o==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&C(this,Wn).status==="pending"&&C(this,Wn).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,o))})}trackProp(t){C(this,vs).add(t)}getCurrentQuery(){return C(this,de)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=C(this,At).defaultQueryOptions(t),r=C(this,At).getQueryCache().build(C(this,At),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return fe(this,ve,di).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),C(this,wt)))}createResult(t,n){var k;const r=C(this,de),o=this.options,s=C(this,wt),i=C(this,po),a=C(this,ps),u=t!==r?t.state:C(this,Ji),{state:f}=t;let c={...f},d=!1,h;if(n._optimisticResults){const E=this.hasListeners(),A=!E&&Em(t,n),L=E&&bm(t,r,n,o);(A||L)&&(c={...c,...A0(f.data,t.options)}),n._optimisticResults==="isRestoring"&&(c.fetchStatus="idle")}let{error:m,errorUpdatedAt:g,status:y}=c;h=c.data;let p=!1;if(n.placeholderData!==void 0&&h===void 0&&y==="pending"){let E;s!=null&&s.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData)?(E=s.data,p=!0):E=typeof n.placeholderData=="function"?n.placeholderData((k=C(this,gs))==null?void 0:k.state.data,C(this,gs)):n.placeholderData,E!==void 0&&(y="success",h=Ef(s==null?void 0:s.data,E,n),d=!0)}if(n.select&&h!==void 0&&!p)if(s&&h===(i==null?void 0:i.data)&&n.select===C(this,Zi))h=C(this,ms);else try{q(this,Zi,n.select),h=n.select(h),h=Ef(s==null?void 0:s.data,h,n),q(this,ms,h),q(this,vr,null)}catch(E){q(this,vr,E)}C(this,vr)&&(m=C(this,vr),h=C(this,ms),g=Date.now(),y="error");const v=c.fetchStatus==="fetching",S=y==="pending",w=y==="error",_=S&&v,T=h!==void 0,P={status:y,fetchStatus:c.fetchStatus,isPending:S,isSuccess:y==="success",isError:w,isInitialLoading:_,isLoading:_,data:h,dataUpdatedAt:c.dataUpdatedAt,error:m,errorUpdatedAt:g,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:t.isFetched(),isFetchedAfterMount:c.dataUpdateCount>u.dataUpdateCount||c.errorUpdateCount>u.errorUpdateCount,isFetching:v,isRefetching:v&&!S,isLoadingError:w&&!T,isPaused:c.fetchStatus==="paused",isPlaceholderData:d,isRefetchError:w&&T,isStale:oh(t,n),refetch:this.refetch,promise:C(this,Wn),isEnabled:on(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const E=P.data!==void 0,A=P.status==="error"&&!E,L=B=>{A?B.reject(P.error):E&&B.resolve(P.data)},z=()=>{const B=q(this,Wn,P.promise=bf());L(B)},U=C(this,Wn);switch(U.status){case"pending":t.queryHash===r.queryHash&&L(U);break;case"fulfilled":(A||P.data!==U.value)&&z();break;case"rejected":(!A||P.error!==U.reason)&&z();break}}return P}updateResult(){const t=C(this,wt),n=this.createResult(C(this,de),this.options);if(q(this,po,C(this,de).state),q(this,ps,this.options),C(this,po).data!==void 0&&q(this,gs,C(this,de)),wf(n,t))return;q(this,wt,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:o}=this.options,s=typeof o=="function"?o():o;if(s==="all"||!s&&!C(this,vs).size)return!0;const i=new Set(s??C(this,vs));return this.options.throwOnError&&i.add("error"),Object.keys(C(this,wt)).some(a=>{const l=a;return C(this,wt)[l]!==t[l]&&i.has(l)})};fe(this,ve,N0).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&fe(this,ve,Tf).call(this)}},At=new WeakMap,de=new WeakMap,Ji=new WeakMap,wt=new WeakMap,po=new WeakMap,ps=new WeakMap,Wn=new WeakMap,vr=new WeakMap,Zi=new WeakMap,ms=new WeakMap,gs=new WeakMap,mo=new WeakMap,go=new WeakMap,yr=new WeakMap,vs=new WeakMap,ve=new WeakSet,di=function(t){fe(this,ve,Nf).call(this);let n=C(this,de).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Nt)),n},Rf=function(){fe(this,ve,If).call(this);const t=Fr(this.options.staleTime,C(this,de));if(Ki.isServer()||C(this,wt).isStale||!xf(t))return;const r=E0(C(this,wt).dataUpdatedAt,t)+1;q(this,mo,so.setTimeout(()=>{C(this,wt).isStale||this.updateResult()},r))},Cf=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(C(this,de)):this.options.refetchInterval)??!1},kf=function(t){fe(this,ve,Af).call(this),q(this,yr,t),!(Ki.isServer()||on(this.options.enabled,C(this,de))===!1||!xf(C(this,yr))||C(this,yr)===0)&&q(this,go,so.setInterval(()=>{(this.options.refetchIntervalInBackground||th.isFocused())&&fe(this,ve,di).call(this)},C(this,yr)))},Tf=function(){fe(this,ve,Rf).call(this),fe(this,ve,kf).call(this,fe(this,ve,Cf).call(this))},If=function(){C(this,mo)&&(so.clearTimeout(C(this,mo)),q(this,mo,void 0))},Af=function(){C(this,go)&&(so.clearInterval(C(this,go)),q(this,go,void 0))},Nf=function(){const t=C(this,At).getQueryCache().build(C(this,At),this.options);if(t===C(this,de))return;const n=C(this,de);q(this,de,t),q(this,Ji,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},N0=function(t){st.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(C(this,wt))}),C(this,At).getQueryCache().notify({query:C(this,de),type:"observerResultsUpdated"})})},Ig);function Rb(e,t){return on(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Em(e,t){return Rb(e,t)||e.state.data!==void 0&&Of(e,t,t.refetchOnMount)}function Of(e,t,n){if(on(t.enabled,e)!==!1&&Fr(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&oh(e,t)}return!1}function bm(e,t,n,r){return(e!==t||on(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&oh(e,n)}function oh(e,t){return on(t.enabled,e)!==!1&&e.isStaleByTime(Fr(t.staleTime,e))}function Cb(e,t){return!wf(e.getCurrentResult(),t)}function Pm(e){return{onFetch:(t,n)=>{var f,c,d,h,m;const r=t.options,o=(d=(c=(f=t.fetchOptions)==null?void 0:f.meta)==null?void 0:c.fetchMore)==null?void 0:d.direction,s=((h=t.state.data)==null?void 0:h.pages)||[],i=((m=t.state.data)==null?void 0:m.pageParams)||[];let a={pages:[],pageParams:[]},l=0;const u=async()=>{let g=!1;const y=S=>{Sb(S,()=>t.signal,()=>g=!0)},p=P0(t.options,t.fetchOptions),v=async(S,w,_)=>{if(g)return Promise.reject();if(w==null&&S.pages.length)return Promise.resolve(S);const I=(()=>{const A={client:t.client,queryKey:t.queryKey,pageParam:w,direction:_?"backward":"forward",meta:t.options.meta};return y(A),A})(),P=await p(I),{maxPages:k}=t.options,E=_?yb:vb;return{pages:E(S.pages,P,k),pageParams:E(S.pageParams,w,k)}};if(o&&s.length){const S=o==="backward",w=S?kb:Rm,_={pages:s,pageParams:i},T=w(r,_);a=await v(_,T,S)}else{const S=e??s.length;do{const w=l===0?i[0]??r.initialPageParam:Rm(r,a);if(l>0&&w==null)break;a=await v(a,w),l++}while(l<S)}return a};t.options.persister?t.fetchFn=()=>{var g,y;return(y=(g=t.options).persister)==null?void 0:y.call(g,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function Rm(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function kb(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var ea,kn,mt,vo,Tn,lr,Ag,Tb=(Ag=class extends T0{constructor(t){super();ee(this,Tn);ee(this,ea);ee(this,kn);ee(this,mt);ee(this,vo);q(this,ea,t.client),this.mutationId=t.mutationId,q(this,mt,t.mutationCache),q(this,kn,[]),this.state=t.state||Ib(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){C(this,kn).includes(t)||(C(this,kn).push(t),this.clearGcTimeout(),C(this,mt).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){q(this,kn,C(this,kn).filter(n=>n!==t)),this.scheduleGc(),C(this,mt).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){C(this,kn).length||(this.state.status==="pending"?this.scheduleGc():C(this,mt).remove(this))}continue(){var t;return((t=C(this,vo))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,a,l,u,f,c,d,h,m,g,y,p,v,S,w,_,T,I;const n=()=>{fe(this,Tn,lr).call(this,{type:"continue"})},r={client:C(this,ea),meta:this.options.meta,mutationKey:this.options.mutationKey};q(this,vo,k0({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(P,k)=>{fe(this,Tn,lr).call(this,{type:"failed",failureCount:P,error:k})},onPause:()=>{fe(this,Tn,lr).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>C(this,mt).canRun(this)}));const o=this.state.status==="pending",s=!C(this,vo).canStart();try{if(o)n();else{fe(this,Tn,lr).call(this,{type:"pending",variables:t,isPaused:s}),C(this,mt).config.onMutate&&await C(this,mt).config.onMutate(t,this,r);const k=await((a=(i=this.options).onMutate)==null?void 0:a.call(i,t,r));k!==this.state.context&&fe(this,Tn,lr).call(this,{type:"pending",context:k,variables:t,isPaused:s})}const P=await C(this,vo).start();return await((u=(l=C(this,mt).config).onSuccess)==null?void 0:u.call(l,P,t,this.state.context,this,r)),await((c=(f=this.options).onSuccess)==null?void 0:c.call(f,P,t,this.state.context,r)),await((h=(d=C(this,mt).config).onSettled)==null?void 0:h.call(d,P,null,this.state.variables,this.state.context,this,r)),await((g=(m=this.options).onSettled)==null?void 0:g.call(m,P,null,t,this.state.context,r)),fe(this,Tn,lr).call(this,{type:"success",data:P}),P}catch(P){try{await((p=(y=C(this,mt).config).onError)==null?void 0:p.call(y,P,t,this.state.context,this,r))}catch(k){Promise.reject(k)}try{await((S=(v=this.options).onError)==null?void 0:S.call(v,P,t,this.state.context,r))}catch(k){Promise.reject(k)}try{await((_=(w=C(this,mt).config).onSettled)==null?void 0:_.call(w,void 0,P,this.state.variables,this.state.context,this,r))}catch(k){Promise.reject(k)}try{await((I=(T=this.options).onSettled)==null?void 0:I.call(T,void 0,P,t,this.state.context,r))}catch(k){Promise.reject(k)}throw fe(this,Tn,lr).call(this,{type:"error",error:P}),P}finally{C(this,mt).runNext(this)}}},ea=new WeakMap,kn=new WeakMap,mt=new WeakMap,vo=new WeakMap,Tn=new WeakSet,lr=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),st.batch(()=>{C(this,kn).forEach(r=>{r.onMutationUpdate(t)}),C(this,mt).notify({mutation:this,type:"updated",action:t})})},Ag);function Ib(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Vn,gn,ta,Ng,Ab=(Ng=class extends aa{constructor(t={}){super();ee(this,Vn);ee(this,gn);ee(this,ta);this.config=t,q(this,Vn,new Set),q(this,gn,new Map),q(this,ta,0)}build(t,n,r){const o=new Tb({client:t,mutationCache:this,mutationId:++ma(this,ta)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){C(this,Vn).add(t);const n=La(t);if(typeof n=="string"){const r=C(this,gn).get(n);r?r.push(t):C(this,gn).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(C(this,Vn).delete(t)){const n=La(t);if(typeof n=="string"){const r=C(this,gn).get(n);if(r)if(r.length>1){const o=r.indexOf(t);o!==-1&&r.splice(o,1)}else r[0]===t&&C(this,gn).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=La(t);if(typeof n=="string"){const r=C(this,gn).get(n),o=r==null?void 0:r.find(s=>s.state.status==="pending");return!o||o===t}else return!0}runNext(t){var r;const n=La(t);if(typeof n=="string"){const o=(r=C(this,gn).get(n))==null?void 0:r.find(s=>s!==t&&s.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){st.batch(()=>{C(this,Vn).forEach(t=>{this.notify({type:"removed",mutation:t})}),C(this,Vn).clear(),C(this,gn).clear()})}getAll(){return Array.from(C(this,Vn))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>ym(n,r))}findAll(t={}){return this.getAll().filter(n=>ym(t,n))}notify(t){st.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return st.batch(()=>Promise.all(t.map(n=>n.continue().catch(Nt))))}},Vn=new WeakMap,gn=new WeakMap,ta=new WeakMap,Ng);function La(e){var t;return(t=e.options.scope)==null?void 0:t.id}var In,Og,Nb=(Og=class extends aa{constructor(t={}){super();ee(this,In);this.config=t,q(this,In,new Map)}build(t,n,r){const o=n.queryKey,s=n.queryHash??nh(o,n);let i=this.get(s);return i||(i=new bb({client:t,queryKey:o,queryHash:s,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(i)),i}add(t){C(this,In).has(t.queryHash)||(C(this,In).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=C(this,In).get(t.queryHash);n&&(t.destroy(),n===t&&C(this,In).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){st.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return C(this,In).get(t)}getAll(){return[...C(this,In).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>vm(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>vm(t,r)):n}notify(t){st.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){st.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){st.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},In=new WeakMap,Og),De,Sr,xr,ys,Ss,wr,xs,ws,Mg,O0=(Mg=class{constructor(e={}){ee(this,De);ee(this,Sr);ee(this,xr);ee(this,ys);ee(this,Ss);ee(this,wr);ee(this,xs);ee(this,ws);q(this,De,e.queryCache||new Nb),q(this,Sr,e.mutationCache||new Ab),q(this,xr,e.defaultOptions||{}),q(this,ys,new Map),q(this,Ss,new Map),q(this,wr,0)}mount(){ma(this,wr)._++,C(this,wr)===1&&(q(this,xs,th.subscribe(async e=>{e&&(await this.resumePausedMutations(),C(this,De).onFocus())})),q(this,ws,Dl.subscribe(async e=>{e&&(await this.resumePausedMutations(),C(this,De).onOnline())})))}unmount(){var e,t;ma(this,wr)._--,C(this,wr)===0&&((e=C(this,xs))==null||e.call(this),q(this,xs,void 0),(t=C(this,ws))==null||t.call(this),q(this,ws,void 0))}isFetching(e){return C(this,De).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return C(this,Sr).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=C(this,De).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=C(this,De).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Fr(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return C(this,De).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=C(this,De).get(r.queryHash),s=o==null?void 0:o.state.data,i=pb(t,s);if(i!==void 0)return C(this,De).build(this,r).setData(i,{...n,manual:!0})}setQueriesData(e,t,n){return st.batch(()=>C(this,De).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=C(this,De).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=C(this,De);st.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=C(this,De);return st.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=st.batch(()=>C(this,De).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(Nt).catch(Nt)}invalidateQueries(e,t={}){return st.batch(()=>(C(this,De).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=st.batch(()=>C(this,De).findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let s=o.fetch(void 0,n);return n.throwOnError||(s=s.catch(Nt)),o.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then(Nt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=C(this,De).build(this,t);return n.isStaleByTime(Fr(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Nt).catch(Nt)}fetchInfiniteQuery(e){return e.behavior=Pm(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Nt).catch(Nt)}ensureInfiniteQueryData(e){return e.behavior=Pm(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Dl.isOnline()?C(this,Sr).resumePausedMutations():Promise.resolve()}getQueryCache(){return C(this,De)}getMutationCache(){return C(this,Sr)}getDefaultOptions(){return C(this,xr)}setDefaultOptions(e){q(this,xr,e)}setQueryDefaults(e,t){C(this,ys).set(qi(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...C(this,ys).values()],n={};return t.forEach(r=>{Gi(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){C(this,Ss).set(qi(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...C(this,Ss).values()],n={};return t.forEach(r=>{Gi(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...C(this,xr).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=nh(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===rh&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...C(this,xr).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){C(this,De).clear(),C(this,Sr).clear()}},De=new WeakMap,Sr=new WeakMap,xr=new WeakMap,ys=new WeakMap,Ss=new WeakMap,wr=new WeakMap,xs=new WeakMap,ws=new WeakMap,Mg),sh=b.createContext(void 0),M0=e=>{const t=b.useContext(sh);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},L0=({client:e,children:t})=>(b.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),x.jsx(sh.Provider,{value:e,children:t})),j0=b.createContext(!1),Ob=()=>b.useContext(j0);j0.Provider;function Mb(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Lb=b.createContext(Mb()),jb=()=>b.useContext(Lb),Fb=(e,t,n)=>{const r=n!=null&&n.state.error&&typeof e.throwOnError=="function"?R0(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},Db=e=>{b.useEffect(()=>{e.clearReset()},[e])},$b=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(o&&e.data===void 0||R0(n,[e.error,r])),Ub=e=>{if(e.suspense){const n=o=>o==="static"?o:Math.max(o??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...o)=>n(r(...o)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},zb=(e,t)=>e.isLoading&&e.isFetching&&!t,Bb=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,Cm=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function Hb(e,t,n){var d,h,m,g;const r=Ob(),o=jb(),s=M0(),i=s.defaultQueryOptions(e);(h=(d=s.getDefaultOptions().queries)==null?void 0:d._experimental_beforeQuery)==null||h.call(d,i);const a=s.getQueryCache().get(i.queryHash);i._optimisticResults=r?"isRestoring":"optimistic",Ub(i),Fb(i,o,a),Db(o);const l=!s.getQueryCache().get(i.queryHash),[u]=b.useState(()=>new t(s,i)),f=u.getOptimisticResult(i),c=!r&&e.subscribed!==!1;if(b.useSyncExternalStore(b.useCallback(y=>{const p=c?u.subscribe(st.batchCalls(y)):Nt;return u.updateResult(),p},[u,c]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),b.useEffect(()=>{u.setOptions(i)},[i,u]),Bb(i,f))throw Cm(i,u,o);if($b({result:f,errorResetBoundary:o,throwOnError:i.throwOnError,query:a,suspense:i.suspense}))throw f.error;if((g=(m=s.getDefaultOptions().queries)==null?void 0:m._experimental_afterQuery)==null||g.call(m,i,f),i.experimental_prefetchInRender&&!Ki.isServer()&&zb(f,r)){const y=l?Cm(i,u,o):a==null?void 0:a.promise;y==null||y.catch(Nt).finally(()=>{u.updateResult()})}return i.notifyOnChangeProps?f:u.trackResult(f)}function ko(e,t){return Hb(e,Pb)}/*!
57
57
  * Font Awesome Free 7.2.0 by @fontawesome - https://fontawesome.com
58
58
  * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
59
59
  * Copyright 2026 Fonticons, Inc.
60
- */function Mf(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Wb(e){if(Array.isArray(e))return e}function Vb(e){if(Array.isArray(e))return Mf(e)}function Qb(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qb(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,F0(r.key),r)}}function Gb(e,t,n){return t&&qb(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function rl(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=ih(e))||t){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(l){throw l},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
60
+ */function Mf(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Wb(e){if(Array.isArray(e))return e}function Vb(e){if(Array.isArray(e))return Mf(e)}function Qb(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qb(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,F0(r.key),r)}}function Gb(e,t,n){return t&&qb(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ol(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=ih(e))||t){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(l){throw l},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
61
61
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s,i=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var l=n.next();return i=l.done,l},e:function(l){a=!0,s=l},f:function(){try{i||n.return==null||n.return()}finally{if(a)throw s}}}}function se(e,t,n){return(t=F0(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kb(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Yb(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,s,i,a=[],l=!0,u=!1;try{if(s=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=s.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(f){u=!0,o=f}finally{try{if(!l&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return a}}function Xb(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
62
62
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Jb(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
63
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function km(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function $(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?km(Object(n),!0).forEach(function(r){se(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):km(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function du(e,t){return Wb(e)||Yb(e,t)||ih(e,t)||Xb()}function En(e){return Vb(e)||Kb(e)||ih(e)||Jb()}function Zb(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function F0(e){var t=Zb(e,"string");return typeof t=="symbol"?t:t+""}function Dl(e){"@babel/helpers - typeof";return Dl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dl(e)}function ih(e,t){if(e){if(typeof e=="string")return Mf(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Mf(e,t):void 0}}var Tm=function(){},ah={},D0={},$0=null,U0={mark:Tm,measure:Tm};try{typeof window<"u"&&(ah=window),typeof document<"u"&&(D0=document),typeof MutationObserver<"u"&&($0=MutationObserver),typeof performance<"u"&&(U0=performance)}catch{}var eP=ah.navigator||{},Im=eP.userAgent,Am=Im===void 0?"":Im,zr=ah,Te=D0,Nm=$0,La=U0;zr.document;var rr=!!Te.documentElement&&!!Te.head&&typeof Te.addEventListener=="function"&&typeof Te.createElement=="function",z0=~Am.indexOf("MSIE")||~Am.indexOf("Trident/"),lc,tP=/fa(k|kd|s|r|l|t|d|dr|dl|dt|b|slr|slpr|wsb|tl|ns|nds|es|gt|jr|jfr|jdr|usb|ufsb|udsb|cr|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/,nP=/Font ?Awesome ?([567 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit|Notdog Duo|Notdog|Chisel|Etch|Graphite|Thumbprint|Jelly Fill|Jelly Duo|Jelly|Utility|Utility Fill|Utility Duo|Slab Press|Slab|Whiteboard)?.*/i,B0={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fab:"brands","fa-brands":"brands"},duotone:{fa:"solid",fad:"solid","fa-solid":"solid","fa-duotone":"solid",fadr:"regular","fa-regular":"regular",fadl:"light","fa-light":"light",fadt:"thin","fa-thin":"thin"},sharp:{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"},"sharp-duotone":{fa:"solid",fasds:"solid","fa-solid":"solid",fasdr:"regular","fa-regular":"regular",fasdl:"light","fa-light":"light",fasdt:"thin","fa-thin":"thin"},slab:{"fa-regular":"regular",faslr:"regular"},"slab-press":{"fa-regular":"regular",faslpr:"regular"},thumbprint:{"fa-light":"light",fatl:"light"},whiteboard:{"fa-semibold":"semibold",fawsb:"semibold"},notdog:{"fa-solid":"solid",fans:"solid"},"notdog-duo":{"fa-solid":"solid",fands:"solid"},etch:{"fa-solid":"solid",faes:"solid"},graphite:{"fa-thin":"thin",fagt:"thin"},jelly:{"fa-regular":"regular",fajr:"regular"},"jelly-fill":{"fa-regular":"regular",fajfr:"regular"},"jelly-duo":{"fa-regular":"regular",fajdr:"regular"},chisel:{"fa-regular":"regular",facr:"regular"},utility:{"fa-semibold":"semibold",fausb:"semibold"},"utility-duo":{"fa-semibold":"semibold",faudsb:"semibold"},"utility-fill":{"fa-semibold":"semibold",faufsb:"semibold"}},rP={GROUP:"duotone-group",PRIMARY:"primary",SECONDARY:"secondary"},H0=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone","fa-thumbprint","fa-whiteboard","fa-notdog","fa-notdog-duo","fa-chisel","fa-etch","fa-graphite","fa-jelly","fa-jelly-fill","fa-jelly-duo","fa-slab","fa-slab-press","fa-utility","fa-utility-duo","fa-utility-fill"],lt="classic",aa="duotone",W0="sharp",V0="sharp-duotone",Q0="chisel",q0="etch",G0="graphite",K0="jelly",Y0="jelly-duo",X0="jelly-fill",J0="notdog",Z0="notdog-duo",eS="slab",tS="slab-press",nS="thumbprint",rS="utility",oS="utility-duo",sS="utility-fill",iS="whiteboard",oP="Classic",sP="Duotone",iP="Sharp",aP="Sharp Duotone",lP="Chisel",uP="Etch",cP="Graphite",fP="Jelly",dP="Jelly Duo",hP="Jelly Fill",pP="Notdog",mP="Notdog Duo",gP="Slab",vP="Slab Press",yP="Thumbprint",SP="Utility",xP="Utility Duo",wP="Utility Fill",_P="Whiteboard",aS=[lt,aa,W0,V0,Q0,q0,G0,K0,Y0,X0,J0,Z0,eS,tS,nS,rS,oS,sS,iS];lc={},se(se(se(se(se(se(se(se(se(se(lc,lt,oP),aa,sP),W0,iP),V0,aP),Q0,lP),q0,uP),G0,cP),K0,fP),Y0,dP),X0,hP),se(se(se(se(se(se(se(se(se(lc,J0,pP),Z0,mP),eS,gP),tS,vP),nS,yP),rS,SP),oS,xP),sS,wP),iS,_P);var EP={classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},duotone:{900:"fad",400:"fadr",300:"fadl",100:"fadt"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds",400:"fasdr",300:"fasdl",100:"fasdt"},slab:{400:"faslr"},"slab-press":{400:"faslpr"},whiteboard:{600:"fawsb"},thumbprint:{300:"fatl"},notdog:{900:"fans"},"notdog-duo":{900:"fands"},etch:{900:"faes"},graphite:{100:"fagt"},chisel:{400:"facr"},jelly:{400:"fajr"},"jelly-fill":{400:"fajfr"},"jelly-duo":{400:"fajdr"},utility:{600:"fausb"},"utility-duo":{600:"faudsb"},"utility-fill":{600:"faufsb"}},bP={"Font Awesome 7 Free":{900:"fas",400:"far"},"Font Awesome 7 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 7 Brands":{400:"fab",normal:"fab"},"Font Awesome 7 Duotone":{900:"fad",400:"fadr",normal:"fadr",300:"fadl",100:"fadt"},"Font Awesome 7 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 7 Sharp Duotone":{900:"fasds",400:"fasdr",normal:"fasdr",300:"fasdl",100:"fasdt"},"Font Awesome 7 Jelly":{400:"fajr",normal:"fajr"},"Font Awesome 7 Jelly Fill":{400:"fajfr",normal:"fajfr"},"Font Awesome 7 Jelly Duo":{400:"fajdr",normal:"fajdr"},"Font Awesome 7 Slab":{400:"faslr",normal:"faslr"},"Font Awesome 7 Slab Press":{400:"faslpr",normal:"faslpr"},"Font Awesome 7 Thumbprint":{300:"fatl",normal:"fatl"},"Font Awesome 7 Notdog":{900:"fans",normal:"fans"},"Font Awesome 7 Notdog Duo":{900:"fands",normal:"fands"},"Font Awesome 7 Etch":{900:"faes",normal:"faes"},"Font Awesome 7 Graphite":{100:"fagt",normal:"fagt"},"Font Awesome 7 Chisel":{400:"facr",normal:"facr"},"Font Awesome 7 Whiteboard":{600:"fawsb",normal:"fawsb"},"Font Awesome 7 Utility":{600:"fausb",normal:"fausb"},"Font Awesome 7 Utility Duo":{600:"faudsb",normal:"faudsb"},"Font Awesome 7 Utility Fill":{600:"faufsb",normal:"faufsb"}},PP=new Map([["classic",{defaultShortPrefixId:"fas",defaultStyleId:"solid",styleIds:["solid","regular","light","thin","brands"],futureStyleIds:[],defaultFontWeight:900}],["duotone",{defaultShortPrefixId:"fad",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp",{defaultShortPrefixId:"fass",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp-duotone",{defaultShortPrefixId:"fasds",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["chisel",{defaultShortPrefixId:"facr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["etch",{defaultShortPrefixId:"faes",defaultStyleId:"solid",styleIds:["solid"],futureStyleIds:[],defaultFontWeight:900}],["graphite",{defaultShortPrefixId:"fagt",defaultStyleId:"thin",styleIds:["thin"],futureStyleIds:[],defaultFontWeight:100}],["jelly",{defaultShortPrefixId:"fajr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["jelly-duo",{defaultShortPrefixId:"fajdr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["jelly-fill",{defaultShortPrefixId:"fajfr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["notdog",{defaultShortPrefixId:"fans",defaultStyleId:"solid",styleIds:["solid"],futureStyleIds:[],defaultFontWeight:900}],["notdog-duo",{defaultShortPrefixId:"fands",defaultStyleId:"solid",styleIds:["solid"],futureStyleIds:[],defaultFontWeight:900}],["slab",{defaultShortPrefixId:"faslr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["slab-press",{defaultShortPrefixId:"faslpr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["thumbprint",{defaultShortPrefixId:"fatl",defaultStyleId:"light",styleIds:["light"],futureStyleIds:[],defaultFontWeight:300}],["utility",{defaultShortPrefixId:"fausb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}],["utility-duo",{defaultShortPrefixId:"faudsb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}],["utility-fill",{defaultShortPrefixId:"faufsb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}],["whiteboard",{defaultShortPrefixId:"fawsb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}]]),RP={chisel:{regular:"facr"},classic:{brands:"fab",light:"fal",regular:"far",solid:"fas",thin:"fat"},duotone:{light:"fadl",regular:"fadr",solid:"fad",thin:"fadt"},etch:{solid:"faes"},graphite:{thin:"fagt"},jelly:{regular:"fajr"},"jelly-duo":{regular:"fajdr"},"jelly-fill":{regular:"fajfr"},notdog:{solid:"fans"},"notdog-duo":{solid:"fands"},sharp:{light:"fasl",regular:"fasr",solid:"fass",thin:"fast"},"sharp-duotone":{light:"fasdl",regular:"fasdr",solid:"fasds",thin:"fasdt"},slab:{regular:"faslr"},"slab-press":{regular:"faslpr"},thumbprint:{light:"fatl"},utility:{semibold:"fausb"},"utility-duo":{semibold:"faudsb"},"utility-fill":{semibold:"faufsb"},whiteboard:{semibold:"fawsb"}},lS=["fak","fa-kit","fakd","fa-kit-duotone"],Om={kit:{fak:"kit","fa-kit":"kit"},"kit-duotone":{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"}},CP=["kit"],kP="kit",TP="kit-duotone",IP="Kit",AP="Kit Duotone";se(se({},kP,IP),TP,AP);var NP={kit:{"fa-kit":"fak"}},OP={"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},MP={kit:{fak:"fa-kit"}},Mm={kit:{kit:"fak"},"kit-duotone":{"kit-duotone":"fakd"}},uc,ja={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},LP=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone","fa-thumbprint","fa-whiteboard","fa-notdog","fa-notdog-duo","fa-chisel","fa-etch","fa-graphite","fa-jelly","fa-jelly-fill","fa-jelly-duo","fa-slab","fa-slab-press","fa-utility","fa-utility-duo","fa-utility-fill"],jP="classic",FP="duotone",DP="sharp",$P="sharp-duotone",UP="chisel",zP="etch",BP="graphite",HP="jelly",WP="jelly-duo",VP="jelly-fill",QP="notdog",qP="notdog-duo",GP="slab",KP="slab-press",YP="thumbprint",XP="utility",JP="utility-duo",ZP="utility-fill",eR="whiteboard",tR="Classic",nR="Duotone",rR="Sharp",oR="Sharp Duotone",sR="Chisel",iR="Etch",aR="Graphite",lR="Jelly",uR="Jelly Duo",cR="Jelly Fill",fR="Notdog",dR="Notdog Duo",hR="Slab",pR="Slab Press",mR="Thumbprint",gR="Utility",vR="Utility Duo",yR="Utility Fill",SR="Whiteboard";uc={},se(se(se(se(se(se(se(se(se(se(uc,jP,tR),FP,nR),DP,rR),$P,oR),UP,sR),zP,iR),BP,aR),HP,lR),WP,uR),VP,cR),se(se(se(se(se(se(se(se(se(uc,QP,fR),qP,dR),GP,hR),KP,pR),YP,mR),XP,gR),JP,vR),ZP,yR),eR,SR);var xR="kit",wR="kit-duotone",_R="Kit",ER="Kit Duotone";se(se({},xR,_R),wR,ER);var bR={classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},duotone:{"fa-regular":"fadr","fa-light":"fadl","fa-thin":"fadt"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds","fa-regular":"fasdr","fa-light":"fasdl","fa-thin":"fasdt"},slab:{"fa-regular":"faslr"},"slab-press":{"fa-regular":"faslpr"},whiteboard:{"fa-semibold":"fawsb"},thumbprint:{"fa-light":"fatl"},notdog:{"fa-solid":"fans"},"notdog-duo":{"fa-solid":"fands"},etch:{"fa-solid":"faes"},graphite:{"fa-thin":"fagt"},jelly:{"fa-regular":"fajr"},"jelly-fill":{"fa-regular":"fajfr"},"jelly-duo":{"fa-regular":"fajdr"},chisel:{"fa-regular":"facr"},utility:{"fa-semibold":"fausb"},"utility-duo":{"fa-semibold":"faudsb"},"utility-fill":{"fa-semibold":"faufsb"}},PR={classic:["fas","far","fal","fat","fad"],duotone:["fadr","fadl","fadt"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds","fasdr","fasdl","fasdt"],slab:["faslr"],"slab-press":["faslpr"],whiteboard:["fawsb"],thumbprint:["fatl"],notdog:["fans"],"notdog-duo":["fands"],etch:["faes"],graphite:["fagt"],jelly:["fajr"],"jelly-fill":["fajfr"],"jelly-duo":["fajdr"],chisel:["facr"],utility:["fausb"],"utility-duo":["faudsb"],"utility-fill":["faufsb"]},Lf={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},duotone:{fadr:"fa-regular",fadl:"fa-light",fadt:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid",fasdr:"fa-regular",fasdl:"fa-light",fasdt:"fa-thin"},slab:{faslr:"fa-regular"},"slab-press":{faslpr:"fa-regular"},whiteboard:{fawsb:"fa-semibold"},thumbprint:{fatl:"fa-light"},notdog:{fans:"fa-solid"},"notdog-duo":{fands:"fa-solid"},etch:{faes:"fa-solid"},graphite:{fagt:"fa-thin"},jelly:{fajr:"fa-regular"},"jelly-fill":{fajfr:"fa-regular"},"jelly-duo":{fajdr:"fa-regular"},chisel:{facr:"fa-regular"},utility:{fausb:"fa-semibold"},"utility-duo":{faudsb:"fa-semibold"},"utility-fill":{faufsb:"fa-semibold"}},RR=["fa-solid","fa-regular","fa-light","fa-thin","fa-duotone","fa-brands","fa-semibold"],uS=["fa","fas","far","fal","fat","fad","fadr","fadl","fadt","fab","fass","fasr","fasl","fast","fasds","fasdr","fasdl","fasdt","faslr","faslpr","fawsb","fatl","fans","fands","faes","fagt","fajr","fajfr","fajdr","facr","fausb","faudsb","faufsb"].concat(LP,RR),CR=["solid","regular","light","thin","duotone","brands","semibold"],cS=[1,2,3,4,5,6,7,8,9,10],kR=cS.concat([11,12,13,14,15,16,17,18,19,20]),TR=["aw","fw","pull-left","pull-right"],IR=[].concat(En(Object.keys(PR)),CR,TR,["2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","inverse","layers","layers-bottom-left","layers-bottom-right","layers-counter","layers-text","layers-top-left","layers-top-right","li","pull-end","pull-start","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul","width-auto","width-fixed",ja.GROUP,ja.SWAP_OPACITY,ja.PRIMARY,ja.SECONDARY]).concat(cS.map(function(e){return"".concat(e,"x")})).concat(kR.map(function(e){return"w-".concat(e)})),AR={"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"}},er="___FONT_AWESOME___",jf=16,fS="fa",dS="svg-inline--fa",ko="data-fa-i2svg",Ff="data-fa-pseudo-element",NR="data-fa-pseudo-element-pending",lh="data-prefix",uh="data-icon",Lm="fontawesome-i2svg",OR="async",MR=["HTML","HEAD","STYLE","SCRIPT"],hS=["::before","::after",":before",":after"],pS=function(){try{return!0}catch{return!1}}();function la(e){return new Proxy(e,{get:function(n,r){return r in n?n[r]:n[lt]}})}var mS=$({},B0);mS[lt]=$($($($({},{"fa-duotone":"duotone"}),B0[lt]),Om.kit),Om["kit-duotone"]);var LR=la(mS),Df=$({},RP);Df[lt]=$($($($({},{duotone:"fad"}),Df[lt]),Mm.kit),Mm["kit-duotone"]);var jm=la(Df),$f=$({},Lf);$f[lt]=$($({},$f[lt]),MP.kit);var ch=la($f),Uf=$({},bR);Uf[lt]=$($({},Uf[lt]),NP.kit);la(Uf);var jR=tP,gS="fa-layers-text",FR=nP,DR=$({},EP);la(DR);var $R=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],cc=rP,UR=[].concat(En(CP),En(IR)),_i=zr.FontAwesomeConfig||{};function zR(e){var t=Te.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function BR(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}if(Te&&typeof Te.querySelector=="function"){var HR=[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-search-pseudo-elements","searchPseudoElements"],["data-search-pseudo-elements-warnings","searchPseudoElementsWarnings"],["data-search-pseudo-elements-full-scan","searchPseudoElementsFullScan"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]];HR.forEach(function(e){var t=du(e,2),n=t[0],r=t[1],o=BR(zR(n));o!=null&&(_i[r]=o)})}var vS={styleDefault:"solid",familyDefault:lt,cssPrefix:fS,replacementClass:dS,autoReplaceSvg:!0,autoAddCss:!0,searchPseudoElements:!1,searchPseudoElementsWarnings:!0,searchPseudoElementsFullScan:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};_i.familyPrefix&&(_i.cssPrefix=_i.familyPrefix);var As=$($({},vS),_i);As.autoReplaceSvg||(As.observeMutations=!1);var Z={};Object.keys(vS).forEach(function(e){Object.defineProperty(Z,e,{enumerable:!0,set:function(n){As[e]=n,Ei.forEach(function(r){return r(Z)})},get:function(){return As[e]}})});Object.defineProperty(Z,"familyPrefix",{enumerable:!0,set:function(t){As.cssPrefix=t,Ei.forEach(function(n){return n(Z)})},get:function(){return As.cssPrefix}});zr.FontAwesomeConfig=Z;var Ei=[];function WR(e){return Ei.push(e),function(){Ei.splice(Ei.indexOf(e),1)}}var $o=jf,Nn={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function VR(e){if(!(!e||!rr)){var t=Te.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var n=Te.head.childNodes,r=null,o=n.length-1;o>-1;o--){var s=n[o],i=(s.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(i)>-1&&(r=s)}return Te.head.insertBefore(t,r),e}}var QR="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function Fm(){for(var e=12,t="";e-- >0;)t+=QR[Math.random()*62|0];return t}function js(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function fh(e){return e.classList?js(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(t){return t})}function yS(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function qR(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,'="').concat(yS(e[n]),'" ')},"").trim()}function hu(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")},"")}function dh(e){return e.size!==Nn.size||e.x!==Nn.x||e.y!==Nn.y||e.rotate!==Nn.rotate||e.flipX||e.flipY}function GR(e){var t=e.transform,n=e.containerWidth,r=e.iconWidth,o={transform:"translate(".concat(n/2," 256)")},s="translate(".concat(t.x*32,", ").concat(t.y*32,") "),i="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),a="rotate(".concat(t.rotate," 0 0)"),l={transform:"".concat(s," ").concat(i," ").concat(a)},u={transform:"translate(".concat(r/2*-1," -256)")};return{outer:o,inner:l,path:u}}function KR(e){var t=e.transform,n=e.width,r=n===void 0?jf:n,o=e.height,s=o===void 0?jf:o,i="";return z0?i+="translate(".concat(t.x/$o-r/2,"em, ").concat(t.y/$o-s/2,"em) "):i+="translate(calc(-50% + ".concat(t.x/$o,"em), calc(-50% + ").concat(t.y/$o,"em)) "),i+="scale(".concat(t.size/$o*(t.flipX?-1:1),", ").concat(t.size/$o*(t.flipY?-1:1),") "),i+="rotate(".concat(t.rotate,"deg) "),i}var YR=`:root, :host {
63
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function km(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function $(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?km(Object(n),!0).forEach(function(r){se(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):km(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function hu(e,t){return Wb(e)||Yb(e,t)||ih(e,t)||Xb()}function En(e){return Vb(e)||Kb(e)||ih(e)||Jb()}function Zb(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function F0(e){var t=Zb(e,"string");return typeof t=="symbol"?t:t+""}function $l(e){"@babel/helpers - typeof";return $l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$l(e)}function ih(e,t){if(e){if(typeof e=="string")return Mf(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Mf(e,t):void 0}}var Tm=function(){},ah={},D0={},$0=null,U0={mark:Tm,measure:Tm};try{typeof window<"u"&&(ah=window),typeof document<"u"&&(D0=document),typeof MutationObserver<"u"&&($0=MutationObserver),typeof performance<"u"&&(U0=performance)}catch{}var eP=ah.navigator||{},Im=eP.userAgent,Am=Im===void 0?"":Im,zr=ah,Te=D0,Nm=$0,ja=U0;zr.document;var rr=!!Te.documentElement&&!!Te.head&&typeof Te.addEventListener=="function"&&typeof Te.createElement=="function",z0=~Am.indexOf("MSIE")||~Am.indexOf("Trident/"),lc,tP=/fa(k|kd|s|r|l|t|d|dr|dl|dt|b|slr|slpr|wsb|tl|ns|nds|es|gt|jr|jfr|jdr|usb|ufsb|udsb|cr|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/,nP=/Font ?Awesome ?([567 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit|Notdog Duo|Notdog|Chisel|Etch|Graphite|Thumbprint|Jelly Fill|Jelly Duo|Jelly|Utility|Utility Fill|Utility Duo|Slab Press|Slab|Whiteboard)?.*/i,B0={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fab:"brands","fa-brands":"brands"},duotone:{fa:"solid",fad:"solid","fa-solid":"solid","fa-duotone":"solid",fadr:"regular","fa-regular":"regular",fadl:"light","fa-light":"light",fadt:"thin","fa-thin":"thin"},sharp:{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"},"sharp-duotone":{fa:"solid",fasds:"solid","fa-solid":"solid",fasdr:"regular","fa-regular":"regular",fasdl:"light","fa-light":"light",fasdt:"thin","fa-thin":"thin"},slab:{"fa-regular":"regular",faslr:"regular"},"slab-press":{"fa-regular":"regular",faslpr:"regular"},thumbprint:{"fa-light":"light",fatl:"light"},whiteboard:{"fa-semibold":"semibold",fawsb:"semibold"},notdog:{"fa-solid":"solid",fans:"solid"},"notdog-duo":{"fa-solid":"solid",fands:"solid"},etch:{"fa-solid":"solid",faes:"solid"},graphite:{"fa-thin":"thin",fagt:"thin"},jelly:{"fa-regular":"regular",fajr:"regular"},"jelly-fill":{"fa-regular":"regular",fajfr:"regular"},"jelly-duo":{"fa-regular":"regular",fajdr:"regular"},chisel:{"fa-regular":"regular",facr:"regular"},utility:{"fa-semibold":"semibold",fausb:"semibold"},"utility-duo":{"fa-semibold":"semibold",faudsb:"semibold"},"utility-fill":{"fa-semibold":"semibold",faufsb:"semibold"}},rP={GROUP:"duotone-group",PRIMARY:"primary",SECONDARY:"secondary"},H0=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone","fa-thumbprint","fa-whiteboard","fa-notdog","fa-notdog-duo","fa-chisel","fa-etch","fa-graphite","fa-jelly","fa-jelly-fill","fa-jelly-duo","fa-slab","fa-slab-press","fa-utility","fa-utility-duo","fa-utility-fill"],lt="classic",la="duotone",W0="sharp",V0="sharp-duotone",Q0="chisel",q0="etch",G0="graphite",K0="jelly",Y0="jelly-duo",X0="jelly-fill",J0="notdog",Z0="notdog-duo",e1="slab",t1="slab-press",n1="thumbprint",r1="utility",o1="utility-duo",s1="utility-fill",i1="whiteboard",oP="Classic",sP="Duotone",iP="Sharp",aP="Sharp Duotone",lP="Chisel",uP="Etch",cP="Graphite",fP="Jelly",dP="Jelly Duo",hP="Jelly Fill",pP="Notdog",mP="Notdog Duo",gP="Slab",vP="Slab Press",yP="Thumbprint",SP="Utility",xP="Utility Duo",wP="Utility Fill",_P="Whiteboard",a1=[lt,la,W0,V0,Q0,q0,G0,K0,Y0,X0,J0,Z0,e1,t1,n1,r1,o1,s1,i1];lc={},se(se(se(se(se(se(se(se(se(se(lc,lt,oP),la,sP),W0,iP),V0,aP),Q0,lP),q0,uP),G0,cP),K0,fP),Y0,dP),X0,hP),se(se(se(se(se(se(se(se(se(lc,J0,pP),Z0,mP),e1,gP),t1,vP),n1,yP),r1,SP),o1,xP),s1,wP),i1,_P);var EP={classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},duotone:{900:"fad",400:"fadr",300:"fadl",100:"fadt"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds",400:"fasdr",300:"fasdl",100:"fasdt"},slab:{400:"faslr"},"slab-press":{400:"faslpr"},whiteboard:{600:"fawsb"},thumbprint:{300:"fatl"},notdog:{900:"fans"},"notdog-duo":{900:"fands"},etch:{900:"faes"},graphite:{100:"fagt"},chisel:{400:"facr"},jelly:{400:"fajr"},"jelly-fill":{400:"fajfr"},"jelly-duo":{400:"fajdr"},utility:{600:"fausb"},"utility-duo":{600:"faudsb"},"utility-fill":{600:"faufsb"}},bP={"Font Awesome 7 Free":{900:"fas",400:"far"},"Font Awesome 7 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 7 Brands":{400:"fab",normal:"fab"},"Font Awesome 7 Duotone":{900:"fad",400:"fadr",normal:"fadr",300:"fadl",100:"fadt"},"Font Awesome 7 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 7 Sharp Duotone":{900:"fasds",400:"fasdr",normal:"fasdr",300:"fasdl",100:"fasdt"},"Font Awesome 7 Jelly":{400:"fajr",normal:"fajr"},"Font Awesome 7 Jelly Fill":{400:"fajfr",normal:"fajfr"},"Font Awesome 7 Jelly Duo":{400:"fajdr",normal:"fajdr"},"Font Awesome 7 Slab":{400:"faslr",normal:"faslr"},"Font Awesome 7 Slab Press":{400:"faslpr",normal:"faslpr"},"Font Awesome 7 Thumbprint":{300:"fatl",normal:"fatl"},"Font Awesome 7 Notdog":{900:"fans",normal:"fans"},"Font Awesome 7 Notdog Duo":{900:"fands",normal:"fands"},"Font Awesome 7 Etch":{900:"faes",normal:"faes"},"Font Awesome 7 Graphite":{100:"fagt",normal:"fagt"},"Font Awesome 7 Chisel":{400:"facr",normal:"facr"},"Font Awesome 7 Whiteboard":{600:"fawsb",normal:"fawsb"},"Font Awesome 7 Utility":{600:"fausb",normal:"fausb"},"Font Awesome 7 Utility Duo":{600:"faudsb",normal:"faudsb"},"Font Awesome 7 Utility Fill":{600:"faufsb",normal:"faufsb"}},PP=new Map([["classic",{defaultShortPrefixId:"fas",defaultStyleId:"solid",styleIds:["solid","regular","light","thin","brands"],futureStyleIds:[],defaultFontWeight:900}],["duotone",{defaultShortPrefixId:"fad",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp",{defaultShortPrefixId:"fass",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp-duotone",{defaultShortPrefixId:"fasds",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["chisel",{defaultShortPrefixId:"facr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["etch",{defaultShortPrefixId:"faes",defaultStyleId:"solid",styleIds:["solid"],futureStyleIds:[],defaultFontWeight:900}],["graphite",{defaultShortPrefixId:"fagt",defaultStyleId:"thin",styleIds:["thin"],futureStyleIds:[],defaultFontWeight:100}],["jelly",{defaultShortPrefixId:"fajr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["jelly-duo",{defaultShortPrefixId:"fajdr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["jelly-fill",{defaultShortPrefixId:"fajfr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["notdog",{defaultShortPrefixId:"fans",defaultStyleId:"solid",styleIds:["solid"],futureStyleIds:[],defaultFontWeight:900}],["notdog-duo",{defaultShortPrefixId:"fands",defaultStyleId:"solid",styleIds:["solid"],futureStyleIds:[],defaultFontWeight:900}],["slab",{defaultShortPrefixId:"faslr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["slab-press",{defaultShortPrefixId:"faslpr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["thumbprint",{defaultShortPrefixId:"fatl",defaultStyleId:"light",styleIds:["light"],futureStyleIds:[],defaultFontWeight:300}],["utility",{defaultShortPrefixId:"fausb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}],["utility-duo",{defaultShortPrefixId:"faudsb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}],["utility-fill",{defaultShortPrefixId:"faufsb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}],["whiteboard",{defaultShortPrefixId:"fawsb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}]]),RP={chisel:{regular:"facr"},classic:{brands:"fab",light:"fal",regular:"far",solid:"fas",thin:"fat"},duotone:{light:"fadl",regular:"fadr",solid:"fad",thin:"fadt"},etch:{solid:"faes"},graphite:{thin:"fagt"},jelly:{regular:"fajr"},"jelly-duo":{regular:"fajdr"},"jelly-fill":{regular:"fajfr"},notdog:{solid:"fans"},"notdog-duo":{solid:"fands"},sharp:{light:"fasl",regular:"fasr",solid:"fass",thin:"fast"},"sharp-duotone":{light:"fasdl",regular:"fasdr",solid:"fasds",thin:"fasdt"},slab:{regular:"faslr"},"slab-press":{regular:"faslpr"},thumbprint:{light:"fatl"},utility:{semibold:"fausb"},"utility-duo":{semibold:"faudsb"},"utility-fill":{semibold:"faufsb"},whiteboard:{semibold:"fawsb"}},l1=["fak","fa-kit","fakd","fa-kit-duotone"],Om={kit:{fak:"kit","fa-kit":"kit"},"kit-duotone":{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"}},CP=["kit"],kP="kit",TP="kit-duotone",IP="Kit",AP="Kit Duotone";se(se({},kP,IP),TP,AP);var NP={kit:{"fa-kit":"fak"}},OP={"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},MP={kit:{fak:"fa-kit"}},Mm={kit:{kit:"fak"},"kit-duotone":{"kit-duotone":"fakd"}},uc,Fa={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},LP=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone","fa-thumbprint","fa-whiteboard","fa-notdog","fa-notdog-duo","fa-chisel","fa-etch","fa-graphite","fa-jelly","fa-jelly-fill","fa-jelly-duo","fa-slab","fa-slab-press","fa-utility","fa-utility-duo","fa-utility-fill"],jP="classic",FP="duotone",DP="sharp",$P="sharp-duotone",UP="chisel",zP="etch",BP="graphite",HP="jelly",WP="jelly-duo",VP="jelly-fill",QP="notdog",qP="notdog-duo",GP="slab",KP="slab-press",YP="thumbprint",XP="utility",JP="utility-duo",ZP="utility-fill",eR="whiteboard",tR="Classic",nR="Duotone",rR="Sharp",oR="Sharp Duotone",sR="Chisel",iR="Etch",aR="Graphite",lR="Jelly",uR="Jelly Duo",cR="Jelly Fill",fR="Notdog",dR="Notdog Duo",hR="Slab",pR="Slab Press",mR="Thumbprint",gR="Utility",vR="Utility Duo",yR="Utility Fill",SR="Whiteboard";uc={},se(se(se(se(se(se(se(se(se(se(uc,jP,tR),FP,nR),DP,rR),$P,oR),UP,sR),zP,iR),BP,aR),HP,lR),WP,uR),VP,cR),se(se(se(se(se(se(se(se(se(uc,QP,fR),qP,dR),GP,hR),KP,pR),YP,mR),XP,gR),JP,vR),ZP,yR),eR,SR);var xR="kit",wR="kit-duotone",_R="Kit",ER="Kit Duotone";se(se({},xR,_R),wR,ER);var bR={classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},duotone:{"fa-regular":"fadr","fa-light":"fadl","fa-thin":"fadt"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds","fa-regular":"fasdr","fa-light":"fasdl","fa-thin":"fasdt"},slab:{"fa-regular":"faslr"},"slab-press":{"fa-regular":"faslpr"},whiteboard:{"fa-semibold":"fawsb"},thumbprint:{"fa-light":"fatl"},notdog:{"fa-solid":"fans"},"notdog-duo":{"fa-solid":"fands"},etch:{"fa-solid":"faes"},graphite:{"fa-thin":"fagt"},jelly:{"fa-regular":"fajr"},"jelly-fill":{"fa-regular":"fajfr"},"jelly-duo":{"fa-regular":"fajdr"},chisel:{"fa-regular":"facr"},utility:{"fa-semibold":"fausb"},"utility-duo":{"fa-semibold":"faudsb"},"utility-fill":{"fa-semibold":"faufsb"}},PR={classic:["fas","far","fal","fat","fad"],duotone:["fadr","fadl","fadt"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds","fasdr","fasdl","fasdt"],slab:["faslr"],"slab-press":["faslpr"],whiteboard:["fawsb"],thumbprint:["fatl"],notdog:["fans"],"notdog-duo":["fands"],etch:["faes"],graphite:["fagt"],jelly:["fajr"],"jelly-fill":["fajfr"],"jelly-duo":["fajdr"],chisel:["facr"],utility:["fausb"],"utility-duo":["faudsb"],"utility-fill":["faufsb"]},Lf={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},duotone:{fadr:"fa-regular",fadl:"fa-light",fadt:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid",fasdr:"fa-regular",fasdl:"fa-light",fasdt:"fa-thin"},slab:{faslr:"fa-regular"},"slab-press":{faslpr:"fa-regular"},whiteboard:{fawsb:"fa-semibold"},thumbprint:{fatl:"fa-light"},notdog:{fans:"fa-solid"},"notdog-duo":{fands:"fa-solid"},etch:{faes:"fa-solid"},graphite:{fagt:"fa-thin"},jelly:{fajr:"fa-regular"},"jelly-fill":{fajfr:"fa-regular"},"jelly-duo":{fajdr:"fa-regular"},chisel:{facr:"fa-regular"},utility:{fausb:"fa-semibold"},"utility-duo":{faudsb:"fa-semibold"},"utility-fill":{faufsb:"fa-semibold"}},RR=["fa-solid","fa-regular","fa-light","fa-thin","fa-duotone","fa-brands","fa-semibold"],u1=["fa","fas","far","fal","fat","fad","fadr","fadl","fadt","fab","fass","fasr","fasl","fast","fasds","fasdr","fasdl","fasdt","faslr","faslpr","fawsb","fatl","fans","fands","faes","fagt","fajr","fajfr","fajdr","facr","fausb","faudsb","faufsb"].concat(LP,RR),CR=["solid","regular","light","thin","duotone","brands","semibold"],c1=[1,2,3,4,5,6,7,8,9,10],kR=c1.concat([11,12,13,14,15,16,17,18,19,20]),TR=["aw","fw","pull-left","pull-right"],IR=[].concat(En(Object.keys(PR)),CR,TR,["2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","inverse","layers","layers-bottom-left","layers-bottom-right","layers-counter","layers-text","layers-top-left","layers-top-right","li","pull-end","pull-start","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul","width-auto","width-fixed",Fa.GROUP,Fa.SWAP_OPACITY,Fa.PRIMARY,Fa.SECONDARY]).concat(c1.map(function(e){return"".concat(e,"x")})).concat(kR.map(function(e){return"w-".concat(e)})),AR={"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"}},er="___FONT_AWESOME___",jf=16,f1="fa",d1="svg-inline--fa",To="data-fa-i2svg",Ff="data-fa-pseudo-element",NR="data-fa-pseudo-element-pending",lh="data-prefix",uh="data-icon",Lm="fontawesome-i2svg",OR="async",MR=["HTML","HEAD","STYLE","SCRIPT"],h1=["::before","::after",":before",":after"],p1=function(){try{return!0}catch{return!1}}();function ua(e){return new Proxy(e,{get:function(n,r){return r in n?n[r]:n[lt]}})}var m1=$({},B0);m1[lt]=$($($($({},{"fa-duotone":"duotone"}),B0[lt]),Om.kit),Om["kit-duotone"]);var LR=ua(m1),Df=$({},RP);Df[lt]=$($($($({},{duotone:"fad"}),Df[lt]),Mm.kit),Mm["kit-duotone"]);var jm=ua(Df),$f=$({},Lf);$f[lt]=$($({},$f[lt]),MP.kit);var ch=ua($f),Uf=$({},bR);Uf[lt]=$($({},Uf[lt]),NP.kit);ua(Uf);var jR=tP,g1="fa-layers-text",FR=nP,DR=$({},EP);ua(DR);var $R=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],cc=rP,UR=[].concat(En(CP),En(IR)),Ei=zr.FontAwesomeConfig||{};function zR(e){var t=Te.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function BR(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}if(Te&&typeof Te.querySelector=="function"){var HR=[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-search-pseudo-elements","searchPseudoElements"],["data-search-pseudo-elements-warnings","searchPseudoElementsWarnings"],["data-search-pseudo-elements-full-scan","searchPseudoElementsFullScan"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]];HR.forEach(function(e){var t=hu(e,2),n=t[0],r=t[1],o=BR(zR(n));o!=null&&(Ei[r]=o)})}var v1={styleDefault:"solid",familyDefault:lt,cssPrefix:f1,replacementClass:d1,autoReplaceSvg:!0,autoAddCss:!0,searchPseudoElements:!1,searchPseudoElementsWarnings:!0,searchPseudoElementsFullScan:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};Ei.familyPrefix&&(Ei.cssPrefix=Ei.familyPrefix);var Ns=$($({},v1),Ei);Ns.autoReplaceSvg||(Ns.observeMutations=!1);var Z={};Object.keys(v1).forEach(function(e){Object.defineProperty(Z,e,{enumerable:!0,set:function(n){Ns[e]=n,bi.forEach(function(r){return r(Z)})},get:function(){return Ns[e]}})});Object.defineProperty(Z,"familyPrefix",{enumerable:!0,set:function(t){Ns.cssPrefix=t,bi.forEach(function(n){return n(Z)})},get:function(){return Ns.cssPrefix}});zr.FontAwesomeConfig=Z;var bi=[];function WR(e){return bi.push(e),function(){bi.splice(bi.indexOf(e),1)}}var Uo=jf,Nn={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function VR(e){if(!(!e||!rr)){var t=Te.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var n=Te.head.childNodes,r=null,o=n.length-1;o>-1;o--){var s=n[o],i=(s.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(i)>-1&&(r=s)}return Te.head.insertBefore(t,r),e}}var QR="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function Fm(){for(var e=12,t="";e-- >0;)t+=QR[Math.random()*62|0];return t}function Fs(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function fh(e){return e.classList?Fs(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(t){return t})}function y1(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function qR(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,'="').concat(y1(e[n]),'" ')},"").trim()}function pu(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")},"")}function dh(e){return e.size!==Nn.size||e.x!==Nn.x||e.y!==Nn.y||e.rotate!==Nn.rotate||e.flipX||e.flipY}function GR(e){var t=e.transform,n=e.containerWidth,r=e.iconWidth,o={transform:"translate(".concat(n/2," 256)")},s="translate(".concat(t.x*32,", ").concat(t.y*32,") "),i="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),a="rotate(".concat(t.rotate," 0 0)"),l={transform:"".concat(s," ").concat(i," ").concat(a)},u={transform:"translate(".concat(r/2*-1," -256)")};return{outer:o,inner:l,path:u}}function KR(e){var t=e.transform,n=e.width,r=n===void 0?jf:n,o=e.height,s=o===void 0?jf:o,i="";return z0?i+="translate(".concat(t.x/Uo-r/2,"em, ").concat(t.y/Uo-s/2,"em) "):i+="translate(calc(-50% + ".concat(t.x/Uo,"em), calc(-50% + ").concat(t.y/Uo,"em)) "),i+="scale(".concat(t.size/Uo*(t.flipX?-1:1),", ").concat(t.size/Uo*(t.flipY?-1:1),") "),i+="rotate(".concat(t.rotate,"deg) "),i}var YR=`:root, :host {
64
64
  --fa-font-solid: normal 900 1em/1 'Font Awesome 7 Free';
65
65
  --fa-font-regular: normal 400 1em/1 'Font Awesome 7 Free';
66
66
  --fa-font-light: normal 300 1em/1 'Font Awesome 7 Pro';
@@ -611,27 +611,27 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
611
611
  margin: auto;
612
612
  position: absolute;
613
613
  z-index: var(--fa-stack-z-index, auto);
614
- }`;function SS(){var e=fS,t=dS,n=Z.cssPrefix,r=Z.replacementClass,o=YR;if(n!==e||r!==t){var s=new RegExp("\\.".concat(e,"\\-"),"g"),i=new RegExp("\\--".concat(e,"\\-"),"g"),a=new RegExp("\\.".concat(t),"g");o=o.replace(s,".".concat(n,"-")).replace(i,"--".concat(n,"-")).replace(a,".".concat(r))}return o}var Dm=!1;function fc(){Z.autoAddCss&&!Dm&&(VR(SS()),Dm=!0)}var XR={mixout:function(){return{dom:{css:SS,insertCss:fc}}},hooks:function(){return{beforeDOMElementCreation:function(){fc()},beforeI2svg:function(){fc()}}}},tr=zr||{};tr[er]||(tr[er]={});tr[er].styles||(tr[er].styles={});tr[er].hooks||(tr[er].hooks={});tr[er].shims||(tr[er].shims=[]);var Sn=tr[er],xS=[],wS=function(){Te.removeEventListener("DOMContentLoaded",wS),$l=1,xS.map(function(t){return t()})},$l=!1;rr&&($l=(Te.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Te.readyState),$l||Te.addEventListener("DOMContentLoaded",wS));function JR(e){rr&&($l?setTimeout(e,0):xS.push(e))}function ua(e){var t=e.tag,n=e.attributes,r=n===void 0?{}:n,o=e.children,s=o===void 0?[]:o;return typeof e=="string"?yS(e):"<".concat(t," ").concat(qR(r),">").concat(s.map(ua).join(""),"</").concat(t,">")}function $m(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var dc=function(t,n,r,o){var s=Object.keys(t),i=s.length,a=n,l,u,f;for(r===void 0?(l=1,f=t[s[0]]):(l=0,f=r);l<i;l++)u=s[l],f=a(f,t[u],u,t);return f};function _S(e){return En(e).length!==1?null:e.codePointAt(0).toString(16)}function Um(e){return Object.keys(e).reduce(function(t,n){var r=e[n],o=!!r.icon;return o?t[r.iconName]=r.icon:t[n]=r,t},{})}function zf(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.skipHooks,o=r===void 0?!1:r,s=Um(t);typeof Sn.hooks.addPack=="function"&&!o?Sn.hooks.addPack(e,Um(t)):Sn.styles[e]=$($({},Sn.styles[e]||{}),s),e==="fas"&&zf("fa",t)}var Ki=Sn.styles,ZR=Sn.shims,ES=Object.keys(ch),eC=ES.reduce(function(e,t){return e[t]=Object.keys(ch[t]),e},{}),hh=null,bS={},PS={},RS={},CS={},kS={};function tC(e){return~UR.indexOf(e)}function nC(e,t){var n=t.split("-"),r=n[0],o=n.slice(1).join("-");return r===e&&o!==""&&!tC(o)?o:null}var TS=function(){var t=function(s){return dc(Ki,function(i,a,l){return i[l]=dc(a,s,{}),i},{})};bS=t(function(o,s,i){if(s[3]&&(o[s[3]]=i),s[2]){var a=s[2].filter(function(l){return typeof l=="number"});a.forEach(function(l){o[l.toString(16)]=i})}return o}),PS=t(function(o,s,i){if(o[i]=i,s[2]){var a=s[2].filter(function(l){return typeof l=="string"});a.forEach(function(l){o[l]=i})}return o}),kS=t(function(o,s,i){var a=s[2];return o[i]=i,a.forEach(function(l){o[l]=i}),o});var n="far"in Ki||Z.autoFetchSvg,r=dc(ZR,function(o,s){var i=s[0],a=s[1],l=s[2];return a==="far"&&!n&&(a="fas"),typeof i=="string"&&(o.names[i]={prefix:a,iconName:l}),typeof i=="number"&&(o.unicodes[i.toString(16)]={prefix:a,iconName:l}),o},{names:{},unicodes:{}});RS=r.names,CS=r.unicodes,hh=pu(Z.styleDefault,{family:Z.familyDefault})};WR(function(e){hh=pu(e.styleDefault,{family:Z.familyDefault})});TS();function ph(e,t){return(bS[e]||{})[t]}function rC(e,t){return(PS[e]||{})[t]}function io(e,t){return(kS[e]||{})[t]}function IS(e){return RS[e]||{prefix:null,iconName:null}}function oC(e){var t=CS[e],n=ph("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function Br(){return hh}var AS=function(){return{prefix:null,iconName:null,rest:[]}};function sC(e){var t=lt,n=ES.reduce(function(r,o){return r[o]="".concat(Z.cssPrefix,"-").concat(o),r},{});return aS.forEach(function(r){(e.includes(n[r])||e.some(function(o){return eC[r].includes(o)}))&&(t=r)}),t}function pu(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.family,r=n===void 0?lt:n,o=LR[r][e];if(r===aa&&!e)return"fad";var s=jm[r][e]||jm[r][o],i=e in Sn.styles?e:null,a=s||i||null;return a}function iC(e){var t=[],n=null;return e.forEach(function(r){var o=nC(Z.cssPrefix,r);o?n=o:r&&t.push(r)}),{iconName:n,rest:t}}function zm(e){return e.sort().filter(function(t,n,r){return r.indexOf(t)===n})}var Bm=uS.concat(lS);function mu(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.skipLookups,r=n===void 0?!1:n,o=null,s=zm(e.filter(function(h){return Bm.includes(h)})),i=zm(e.filter(function(h){return!Bm.includes(h)})),a=s.filter(function(h){return o=h,!H0.includes(h)}),l=du(a,1),u=l[0],f=u===void 0?null:u,c=sC(s),d=$($({},iC(i)),{},{prefix:pu(f,{family:c})});return $($($({},d),cC({values:e,family:c,styles:Ki,config:Z,canonical:d,givenPrefix:o})),aC(r,o,d))}function aC(e,t,n){var r=n.prefix,o=n.iconName;if(e||!r||!o)return{prefix:r,iconName:o};var s=t==="fa"?IS(o):{},i=io(r,o);return o=s.iconName||i||o,r=s.prefix||r,r==="far"&&!Ki.far&&Ki.fas&&!Z.autoFetchSvg&&(r="fas"),{prefix:r,iconName:o}}var lC=aS.filter(function(e){return e!==lt||e!==aa}),uC=Object.keys(Lf).filter(function(e){return e!==lt}).map(function(e){return Object.keys(Lf[e])}).flat();function cC(e){var t=e.values,n=e.family,r=e.canonical,o=e.givenPrefix,s=o===void 0?"":o,i=e.styles,a=i===void 0?{}:i,l=e.config,u=l===void 0?{}:l,f=n===aa,c=t.includes("fa-duotone")||t.includes("fad"),d=u.familyDefault==="duotone",h=r.prefix==="fad"||r.prefix==="fa-duotone";if(!f&&(c||d||h)&&(r.prefix="fad"),(t.includes("fa-brands")||t.includes("fab"))&&(r.prefix="fab"),!r.prefix&&lC.includes(n)){var m=Object.keys(a).find(function(y){return uC.includes(y)});if(m||u.autoFetchSvg){var g=PP.get(n).defaultShortPrefixId;r.prefix=g,r.iconName=io(r.prefix,r.iconName)||r.iconName}}return(r.prefix==="fa"||s==="fa")&&(r.prefix=Br()||"fas"),r}var fC=function(){function e(){Qb(this,e),this.definitions={}}return Gb(e,[{key:"add",value:function(){for(var n=this,r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];var i=o.reduce(this._pullDefinitions,{});Object.keys(i).forEach(function(a){n.definitions[a]=$($({},n.definitions[a]||{}),i[a]),zf(a,i[a]);var l=ch[lt][a];l&&zf(l,i[a]),TS()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(n,r){var o=r.prefix&&r.iconName&&r.icon?{0:r}:r;return Object.keys(o).map(function(s){var i=o[s],a=i.prefix,l=i.iconName,u=i.icon,f=u[2];n[a]||(n[a]={}),f.length>0&&f.forEach(function(c){typeof c=="string"&&(n[a][c]=u)}),n[a][l]=u}),n}}])}(),Hm=[],es={},ls={},dC=Object.keys(ls);function hC(e,t){var n=t.mixoutsTo;return Hm=e,es={},Object.keys(ls).forEach(function(r){dC.indexOf(r)===-1&&delete ls[r]}),Hm.forEach(function(r){var o=r.mixout?r.mixout():{};if(Object.keys(o).forEach(function(i){typeof o[i]=="function"&&(n[i]=o[i]),Dl(o[i])==="object"&&Object.keys(o[i]).forEach(function(a){n[i]||(n[i]={}),n[i][a]=o[i][a]})}),r.hooks){var s=r.hooks();Object.keys(s).forEach(function(i){es[i]||(es[i]=[]),es[i].push(s[i])})}r.provides&&r.provides(ls)}),n}function Bf(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var s=es[e]||[];return s.forEach(function(i){t=i.apply(null,[t].concat(r))}),t}function To(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=es[e]||[];o.forEach(function(s){s.apply(null,n)})}function Hr(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return ls[e]?ls[e].apply(null,t):void 0}function Hf(e){e.prefix==="fa"&&(e.prefix="fas");var t=e.iconName,n=e.prefix||Br();if(t)return t=io(n,t)||t,$m(NS.definitions,n,t)||$m(Sn.styles,n,t)}var NS=new fC,pC=function(){Z.autoReplaceSvg=!1,Z.observeMutations=!1,To("noAuto")},mC={i2svg:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return rr?(To("beforeI2svg",t),Hr("pseudoElements2svg",t),Hr("i2svg",t)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot;Z.autoReplaceSvg===!1&&(Z.autoReplaceSvg=!0),Z.observeMutations=!0,JR(function(){vC({autoReplaceSvgRoot:n}),To("watch",t)})}},gC={icon:function(t){if(t===null)return null;if(Dl(t)==="object"&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:io(t.prefix,t.iconName)||t.iconName};if(Array.isArray(t)&&t.length===2){var n=t[1].indexOf("fa-")===0?t[1].slice(3):t[1],r=pu(t[0]);return{prefix:r,iconName:io(r,n)||n}}if(typeof t=="string"&&(t.indexOf("".concat(Z.cssPrefix,"-"))>-1||t.match(jR))){var o=mu(t.split(" "),{skipLookups:!0});return{prefix:o.prefix||Br(),iconName:io(o.prefix,o.iconName)||o.iconName}}if(typeof t=="string"){var s=Br();return{prefix:s,iconName:io(s,t)||t}}}},Zt={noAuto:pC,config:Z,dom:mC,parse:gC,library:NS,findIconDefinition:Hf,toHtml:ua},vC=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot,r=n===void 0?Te:n;(Object.keys(Sn.styles).length>0||Z.autoFetchSvg)&&rr&&Z.autoReplaceSvg&&Zt.dom.i2svg({node:r})};function gu(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(r){return ua(r)})}}),Object.defineProperty(e,"node",{get:function(){if(rr){var r=Te.createElement("div");return r.innerHTML=e.html,r.children}}}),e}function yC(e){var t=e.children,n=e.main,r=e.mask,o=e.attributes,s=e.styles,i=e.transform;if(dh(i)&&n.found&&!r.found){var a=n.width,l=n.height,u={x:a/l/2,y:.5};o.style=hu($($({},s),{},{"transform-origin":"".concat(u.x+i.x/16,"em ").concat(u.y+i.y/16,"em")}))}return[{tag:"svg",attributes:o,children:t}]}function SC(e){var t=e.prefix,n=e.iconName,r=e.children,o=e.attributes,s=e.symbol,i=s===!0?"".concat(t,"-").concat(Z.cssPrefix,"-").concat(n):s;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:$($({},o),{},{id:i}),children:r}]}]}function xC(e){var t=["aria-label","aria-labelledby","title","role"];return t.some(function(n){return n in e})}function mh(e){var t=e.icons,n=t.main,r=t.mask,o=e.prefix,s=e.iconName,i=e.transform,a=e.symbol,l=e.maskId,u=e.extra,f=e.watchable,c=f===void 0?!1:f,d=r.found?r:n,h=d.width,m=d.height,g=[Z.replacementClass,s?"".concat(Z.cssPrefix,"-").concat(s):""].filter(function(_){return u.classes.indexOf(_)===-1}).filter(function(_){return _!==""||!!_}).concat(u.classes).join(" "),y={children:[],attributes:$($({},u.attributes),{},{"data-prefix":o,"data-icon":s,class:g,role:u.attributes.role||"img",viewBox:"0 0 ".concat(h," ").concat(m)})};!xC(u.attributes)&&!u.attributes["aria-hidden"]&&(y.attributes["aria-hidden"]="true"),c&&(y.attributes[ko]="");var p=$($({},y),{},{prefix:o,iconName:s,main:n,mask:r,maskId:l,transform:i,symbol:a,styles:$({},u.styles)}),v=r.found&&n.found?Hr("generateAbstractMask",p)||{children:[],attributes:{}}:Hr("generateAbstractIcon",p)||{children:[],attributes:{}},S=v.children,w=v.attributes;return p.children=S,p.attributes=w,a?SC(p):yC(p)}function Wm(e){var t=e.content,n=e.width,r=e.height,o=e.transform,s=e.extra,i=e.watchable,a=i===void 0?!1:i,l=$($({},s.attributes),{},{class:s.classes.join(" ")});a&&(l[ko]="");var u=$({},s.styles);dh(o)&&(u.transform=KR({transform:o,width:n,height:r}),u["-webkit-transform"]=u.transform);var f=hu(u);f.length>0&&(l.style=f);var c=[];return c.push({tag:"span",attributes:l,children:[t]}),c}function wC(e){var t=e.content,n=e.extra,r=$($({},n.attributes),{},{class:n.classes.join(" ")}),o=hu(n.styles);o.length>0&&(r.style=o);var s=[];return s.push({tag:"span",attributes:r,children:[t]}),s}var hc=Sn.styles;function Wf(e){var t=e[0],n=e[1],r=e.slice(4),o=du(r,1),s=o[0],i=null;return Array.isArray(s)?i={tag:"g",attributes:{class:"".concat(Z.cssPrefix,"-").concat(cc.GROUP)},children:[{tag:"path",attributes:{class:"".concat(Z.cssPrefix,"-").concat(cc.SECONDARY),fill:"currentColor",d:s[0]}},{tag:"path",attributes:{class:"".concat(Z.cssPrefix,"-").concat(cc.PRIMARY),fill:"currentColor",d:s[1]}}]}:i={tag:"path",attributes:{fill:"currentColor",d:s}},{found:!0,width:t,height:n,icon:i}}var _C={found:!1,width:512,height:512};function EC(e,t){!pS&&!Z.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function Vf(e,t){var n=t;return t==="fa"&&Z.styleDefault!==null&&(t=Br()),new Promise(function(r,o){if(n==="fa"){var s=IS(e)||{};e=s.iconName||e,t=s.prefix||t}if(e&&t&&hc[t]&&hc[t][e]){var i=hc[t][e];return r(Wf(i))}EC(e,t),r($($({},_C),{},{icon:Z.showMissingIcons&&e?Hr("missingIconAbstract")||{}:{}}))})}var Vm=function(){},Qf=Z.measurePerformance&&La&&La.mark&&La.measure?La:{mark:Vm,measure:Vm},di='FA "7.2.0"',bC=function(t){return Qf.mark("".concat(di," ").concat(t," begins")),function(){return OS(t)}},OS=function(t){Qf.mark("".concat(di," ").concat(t," ends")),Qf.measure("".concat(di," ").concat(t),"".concat(di," ").concat(t," begins"),"".concat(di," ").concat(t," ends"))},gh={begin:bC,end:OS},ol=function(){};function Qm(e){var t=e.getAttribute?e.getAttribute(ko):null;return typeof t=="string"}function PC(e){var t=e.getAttribute?e.getAttribute(lh):null,n=e.getAttribute?e.getAttribute(uh):null;return t&&n}function RC(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(Z.replacementClass)}function CC(){if(Z.autoReplaceSvg===!0)return sl.replace;var e=sl[Z.autoReplaceSvg];return e||sl.replace}function kC(e){return Te.createElementNS("http://www.w3.org/2000/svg",e)}function TC(e){return Te.createElement(e)}function MS(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.ceFn,r=n===void 0?e.tag==="svg"?kC:TC:n;if(typeof e=="string")return Te.createTextNode(e);var o=r(e.tag);Object.keys(e.attributes||[]).forEach(function(i){o.setAttribute(i,e.attributes[i])});var s=e.children||[];return s.forEach(function(i){o.appendChild(MS(i,{ceFn:r}))}),o}function IC(e){var t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}var sl={replace:function(t){var n=t[0];if(n.parentNode)if(t[1].forEach(function(o){n.parentNode.insertBefore(MS(o),n)}),n.getAttribute(ko)===null&&Z.keepOriginalSource){var r=Te.createComment(IC(n));n.parentNode.replaceChild(r,n)}else n.remove()},nest:function(t){var n=t[0],r=t[1];if(~fh(n).indexOf(Z.replacementClass))return sl.replace(t);var o=new RegExp("".concat(Z.cssPrefix,"-.*"));if(delete r[0].attributes.id,r[0].attributes.class){var s=r[0].attributes.class.split(" ").reduce(function(a,l){return l===Z.replacementClass||l.match(o)?a.toSvg.push(l):a.toNode.push(l),a},{toNode:[],toSvg:[]});r[0].attributes.class=s.toSvg.join(" "),s.toNode.length===0?n.removeAttribute("class"):n.setAttribute("class",s.toNode.join(" "))}var i=r.map(function(a){return ua(a)}).join(`
615
- `);n.setAttribute(ko,""),n.innerHTML=i}};function qm(e){e()}function LS(e,t){var n=typeof t=="function"?t:ol;if(e.length===0)n();else{var r=qm;Z.mutateApproach===OR&&(r=zr.requestAnimationFrame||qm),r(function(){var o=CC(),s=gh.begin("mutate");e.map(o),s(),n()})}}var vh=!1;function jS(){vh=!0}function qf(){vh=!1}var Ul=null;function Gm(e){if(Nm&&Z.observeMutations){var t=e.treeCallback,n=t===void 0?ol:t,r=e.nodeCallback,o=r===void 0?ol:r,s=e.pseudoElementsCallback,i=s===void 0?ol:s,a=e.observeMutationsRoot,l=a===void 0?Te:a;Ul=new Nm(function(u){if(!vh){var f=Br();js(u).forEach(function(c){if(c.type==="childList"&&c.addedNodes.length>0&&!Qm(c.addedNodes[0])&&(Z.searchPseudoElements&&i(c.target),n(c.target)),c.type==="attributes"&&c.target.parentNode&&Z.searchPseudoElements&&i([c.target],!0),c.type==="attributes"&&Qm(c.target)&&~$R.indexOf(c.attributeName))if(c.attributeName==="class"&&PC(c.target)){var d=mu(fh(c.target)),h=d.prefix,m=d.iconName;c.target.setAttribute(lh,h||f),m&&c.target.setAttribute(uh,m)}else RC(c.target)&&o(c.target)})}}),rr&&Ul.observe(l,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function AC(){Ul&&Ul.disconnect()}function NC(e){var t=e.getAttribute("style"),n=[];return t&&(n=t.split(";").reduce(function(r,o){var s=o.split(":"),i=s[0],a=s.slice(1);return i&&a.length>0&&(r[i]=a.join(":").trim()),r},{})),n}function OC(e){var t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"",o=mu(fh(e));return o.prefix||(o.prefix=Br()),t&&n&&(o.prefix=t,o.iconName=n),o.iconName&&o.prefix||(o.prefix&&r.length>0&&(o.iconName=rC(o.prefix,e.innerText)||ph(o.prefix,_S(e.innerText))),!o.iconName&&Z.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(o.iconName=e.firstChild.data)),o}function MC(e){var t=js(e.attributes).reduce(function(n,r){return n.name!=="class"&&n.name!=="style"&&(n[r.name]=r.value),n},{});return t}function LC(){return{iconName:null,prefix:null,transform:Nn,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function Km(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},n=OC(e),r=n.iconName,o=n.prefix,s=n.rest,i=MC(e),a=Bf("parseNodeAttributes",{},e),l=t.styleParser?NC(e):[];return $({iconName:r,prefix:o,transform:Nn,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:s,styles:l,attributes:i}},a)}var jC=Sn.styles;function FS(e){var t=Z.autoReplaceSvg==="nest"?Km(e,{styleParser:!1}):Km(e);return~t.extra.classes.indexOf(gS)?Hr("generateLayersText",e,t):Hr("generateSvgReplacementMutation",e,t)}function FC(){return[].concat(En(lS),En(uS))}function Ym(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!rr)return Promise.resolve();var n=Te.documentElement.classList,r=function(c){return n.add("".concat(Lm,"-").concat(c))},o=function(c){return n.remove("".concat(Lm,"-").concat(c))},s=Z.autoFetchSvg?FC():H0.concat(Object.keys(jC));s.includes("fa")||s.push("fa");var i=[".".concat(gS,":not([").concat(ko,"])")].concat(s.map(function(f){return".".concat(f,":not([").concat(ko,"])")})).join(", ");if(i.length===0)return Promise.resolve();var a=[];try{a=js(e.querySelectorAll(i))}catch{}if(a.length>0)r("pending"),o("complete");else return Promise.resolve();var l=gh.begin("onTree"),u=a.reduce(function(f,c){try{var d=FS(c);d&&f.push(d)}catch(h){pS||h.name==="MissingIcon"&&console.error(h)}return f},[]);return new Promise(function(f,c){Promise.all(u).then(function(d){LS(d,function(){r("active"),r("complete"),o("pending"),typeof t=="function"&&t(),l(),f()})}).catch(function(d){l(),c(d)})})}function DC(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;FS(e).then(function(n){n&&LS([n],t)})}function $C(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=(t||{}).icon?t:Hf(t||{}),o=n.mask;return o&&(o=(o||{}).icon?o:Hf(o||{})),e(r,$($({},n),{},{mask:o}))}}var UC=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.transform,o=r===void 0?Nn:r,s=n.symbol,i=s===void 0?!1:s,a=n.mask,l=a===void 0?null:a,u=n.maskId,f=u===void 0?null:u,c=n.classes,d=c===void 0?[]:c,h=n.attributes,m=h===void 0?{}:h,g=n.styles,y=g===void 0?{}:g;if(t){var p=t.prefix,v=t.iconName,S=t.icon;return gu($({type:"icon"},t),function(){return To("beforeDOMElementCreation",{iconDefinition:t,params:n}),mh({icons:{main:Wf(S),mask:l?Wf(l.icon):{found:!1,width:null,height:null,icon:{}}},prefix:p,iconName:v,transform:$($({},Nn),o),symbol:i,maskId:f,extra:{attributes:m,styles:y,classes:d}})})}},zC={mixout:function(){return{icon:$C(UC)}},hooks:function(){return{mutationObserverCallbacks:function(n){return n.treeCallback=Ym,n.nodeCallback=DC,n}}},provides:function(t){t.i2svg=function(n){var r=n.node,o=r===void 0?Te:r,s=n.callback,i=s===void 0?function(){}:s;return Ym(o,i)},t.generateSvgReplacementMutation=function(n,r){var o=r.iconName,s=r.prefix,i=r.transform,a=r.symbol,l=r.mask,u=r.maskId,f=r.extra;return new Promise(function(c,d){Promise.all([Vf(o,s),l.iconName?Vf(l.iconName,l.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(h){var m=du(h,2),g=m[0],y=m[1];c([n,mh({icons:{main:g,mask:y},prefix:s,iconName:o,transform:i,symbol:a,maskId:u,extra:f,watchable:!0})])}).catch(d)})},t.generateAbstractIcon=function(n){var r=n.children,o=n.attributes,s=n.main,i=n.transform,a=n.styles,l=hu(a);l.length>0&&(o.style=l);var u;return dh(i)&&(u=Hr("generateAbstractTransformGrouping",{main:s,transform:i,containerWidth:s.width,iconWidth:s.width})),r.push(u||s.icon),{children:r,attributes:o}}}},BC={mixout:function(){return{layer:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=r.classes,s=o===void 0?[]:o;return gu({type:"layer"},function(){To("beforeDOMElementCreation",{assembler:n,params:r});var i=[];return n(function(a){Array.isArray(a)?a.map(function(l){i=i.concat(l.abstract)}):i=i.concat(a.abstract)}),[{tag:"span",attributes:{class:["".concat(Z.cssPrefix,"-layers")].concat(En(s)).join(" ")},children:i}]})}}}},HC={mixout:function(){return{counter:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};r.title;var o=r.classes,s=o===void 0?[]:o,i=r.attributes,a=i===void 0?{}:i,l=r.styles,u=l===void 0?{}:l;return gu({type:"counter",content:n},function(){return To("beforeDOMElementCreation",{content:n,params:r}),wC({content:n.toString(),extra:{attributes:a,styles:u,classes:["".concat(Z.cssPrefix,"-layers-counter")].concat(En(s))}})})}}}},WC={mixout:function(){return{text:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=r.transform,s=o===void 0?Nn:o,i=r.classes,a=i===void 0?[]:i,l=r.attributes,u=l===void 0?{}:l,f=r.styles,c=f===void 0?{}:f;return gu({type:"text",content:n},function(){return To("beforeDOMElementCreation",{content:n,params:r}),Wm({content:n,transform:$($({},Nn),s),extra:{attributes:u,styles:c,classes:["".concat(Z.cssPrefix,"-layers-text")].concat(En(a))}})})}}},provides:function(t){t.generateLayersText=function(n,r){var o=r.transform,s=r.extra,i=null,a=null;if(z0){var l=parseInt(getComputedStyle(n).fontSize,10),u=n.getBoundingClientRect();i=u.width/l,a=u.height/l}return Promise.resolve([n,Wm({content:n.innerHTML,width:i,height:a,transform:o,extra:s,watchable:!0})])}}},DS=new RegExp('"',"ug"),Xm=[1105920,1112319],Jm=$($($($({},{FontAwesome:{normal:"fas",400:"fas"}}),bP),AR),OP),Gf=Object.keys(Jm).reduce(function(e,t){return e[t.toLowerCase()]=Jm[t],e},{}),VC=Object.keys(Gf).reduce(function(e,t){var n=Gf[t];return e[t]=n[900]||En(Object.entries(n))[0][1],e},{});function QC(e){var t=e.replace(DS,"");return _S(En(t)[0]||"")}function qC(e){var t=e.getPropertyValue("font-feature-settings").includes("ss01"),n=e.getPropertyValue("content"),r=n.replace(DS,""),o=r.codePointAt(0),s=o>=Xm[0]&&o<=Xm[1],i=r.length===2?r[0]===r[1]:!1;return s||i||t}function GC(e,t){var n=e.replace(/^['"]|['"]$/g,"").toLowerCase(),r=parseInt(t),o=isNaN(r)?"normal":r;return(Gf[n]||{})[o]||VC[n]}function Zm(e,t){var n="".concat(NR).concat(t.replace(":","-"));return new Promise(function(r,o){if(e.getAttribute(n)!==null)return r();var s=js(e.children),i=s.filter(function(T){return T.getAttribute(Ff)===t})[0],a=zr.getComputedStyle(e,t),l=a.getPropertyValue("font-family"),u=l.match(FR),f=a.getPropertyValue("font-weight"),c=a.getPropertyValue("content");if(i&&!u)return e.removeChild(i),r();if(u&&c!=="none"&&c!==""){var d=a.getPropertyValue("content"),h=GC(l,f),m=QC(d),g=u[0].startsWith("FontAwesome"),y=qC(a),p=ph(h,m),v=p;if(g){var S=oC(m);S.iconName&&S.prefix&&(p=S.iconName,h=S.prefix)}if(p&&!y&&(!i||i.getAttribute(lh)!==h||i.getAttribute(uh)!==v)){e.setAttribute(n,v),i&&e.removeChild(i);var w=LC(),_=w.extra;_.attributes[Ff]=t,Vf(p,h).then(function(T){var I=mh($($({},w),{},{icons:{main:T,mask:AS()},prefix:h,iconName:v,extra:_,watchable:!0})),P=Te.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore(P,e.firstChild):e.appendChild(P),P.outerHTML=I.map(function(k){return ua(k)}).join(`
616
- `),e.removeAttribute(n),r()}).catch(o)}else r()}else r()})}function KC(e){return Promise.all([Zm(e,"::before"),Zm(e,"::after")])}function YC(e){return e.parentNode!==document.head&&!~MR.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(Ff)&&(!e.parentNode||e.parentNode.tagName!=="svg")}var XC=function(t){return!!t&&hS.some(function(n){return t.includes(n)})},JC=function(t){if(!t)return[];var n=new Set,r=t.split(/,(?![^()]*\))/).map(function(l){return l.trim()});r=r.flatMap(function(l){return l.includes("(")?l:l.split(",").map(function(u){return u.trim()})});var o=rl(r),s;try{for(o.s();!(s=o.n()).done;){var i=s.value;if(XC(i)){var a=hS.reduce(function(l,u){return l.replace(u,"")},i);a!==""&&a!=="*"&&n.add(a)}}}catch(l){o.e(l)}finally{o.f()}return n};function eg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(rr){var n;if(t)n=e;else if(Z.searchPseudoElementsFullScan)n=e.querySelectorAll("*");else{var r=new Set,o=rl(document.styleSheets),s;try{for(o.s();!(s=o.n()).done;){var i=s.value;try{var a=rl(i.cssRules),l;try{for(a.s();!(l=a.n()).done;){var u=l.value,f=JC(u.selectorText),c=rl(f),d;try{for(c.s();!(d=c.n()).done;){var h=d.value;r.add(h)}}catch(g){c.e(g)}finally{c.f()}}}catch(g){a.e(g)}finally{a.f()}}catch(g){Z.searchPseudoElementsWarnings&&console.warn("Font Awesome: cannot parse stylesheet: ".concat(i.href," (").concat(g.message,`)
617
- If it declares any Font Awesome CSS pseudo-elements, they will not be rendered as SVG icons. Add crossorigin="anonymous" to the <link>, enable searchPseudoElementsFullScan for slower but more thorough DOM parsing, or suppress this warning by setting searchPseudoElementsWarnings to false.`))}}}catch(g){o.e(g)}finally{o.f()}if(!r.size)return;var m=Array.from(r).join(", ");try{n=e.querySelectorAll(m)}catch{}}return new Promise(function(g,y){var p=js(n).filter(YC).map(KC),v=gh.begin("searchPseudoElements");jS(),Promise.all(p).then(function(){v(),qf(),g()}).catch(function(){v(),qf(),y()})})}}var ZC={hooks:function(){return{mutationObserverCallbacks:function(n){return n.pseudoElementsCallback=eg,n}}},provides:function(t){t.pseudoElements2svg=function(n){var r=n.node,o=r===void 0?Te:r;Z.searchPseudoElements&&eg(o)}}},tg=!1,ek={mixout:function(){return{dom:{unwatch:function(){jS(),tg=!0}}}},hooks:function(){return{bootstrap:function(){Gm(Bf("mutationObserverCallbacks",{}))},noAuto:function(){AC()},watch:function(n){var r=n.observeMutationsRoot;tg?qf():Gm(Bf("mutationObserverCallbacks",{observeMutationsRoot:r}))}}}},ng=function(t){var n={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t.toLowerCase().split(" ").reduce(function(r,o){var s=o.toLowerCase().split("-"),i=s[0],a=s.slice(1).join("-");if(i&&a==="h")return r.flipX=!0,r;if(i&&a==="v")return r.flipY=!0,r;if(a=parseFloat(a),isNaN(a))return r;switch(i){case"grow":r.size=r.size+a;break;case"shrink":r.size=r.size-a;break;case"left":r.x=r.x-a;break;case"right":r.x=r.x+a;break;case"up":r.y=r.y-a;break;case"down":r.y=r.y+a;break;case"rotate":r.rotate=r.rotate+a;break}return r},n)},tk={mixout:function(){return{parse:{transform:function(n){return ng(n)}}}},hooks:function(){return{parseNodeAttributes:function(n,r){var o=r.getAttribute("data-fa-transform");return o&&(n.transform=ng(o)),n}}},provides:function(t){t.generateAbstractTransformGrouping=function(n){var r=n.main,o=n.transform,s=n.containerWidth,i=n.iconWidth,a={transform:"translate(".concat(s/2," 256)")},l="translate(".concat(o.x*32,", ").concat(o.y*32,") "),u="scale(".concat(o.size/16*(o.flipX?-1:1),", ").concat(o.size/16*(o.flipY?-1:1),") "),f="rotate(".concat(o.rotate," 0 0)"),c={transform:"".concat(l," ").concat(u," ").concat(f)},d={transform:"translate(".concat(i/2*-1," -256)")},h={outer:a,inner:c,path:d};return{tag:"g",attributes:$({},h.outer),children:[{tag:"g",attributes:$({},h.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:$($({},r.icon.attributes),h.path)}]}]}}}},pc={x:0,y:0,width:"100%",height:"100%"};function rg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function nk(e){return e.tag==="g"?e.children:[e]}var rk={hooks:function(){return{parseNodeAttributes:function(n,r){var o=r.getAttribute("data-fa-mask"),s=o?mu(o.split(" ").map(function(i){return i.trim()})):AS();return s.prefix||(s.prefix=Br()),n.mask=s,n.maskId=r.getAttribute("data-fa-mask-id"),n}}},provides:function(t){t.generateAbstractMask=function(n){var r=n.children,o=n.attributes,s=n.main,i=n.mask,a=n.maskId,l=n.transform,u=s.width,f=s.icon,c=i.width,d=i.icon,h=GR({transform:l,containerWidth:c,iconWidth:u}),m={tag:"rect",attributes:$($({},pc),{},{fill:"white"})},g=f.children?{children:f.children.map(rg)}:{},y={tag:"g",attributes:$({},h.inner),children:[rg($({tag:f.tag,attributes:$($({},f.attributes),h.path)},g))]},p={tag:"g",attributes:$({},h.outer),children:[y]},v="mask-".concat(a||Fm()),S="clip-".concat(a||Fm()),w={tag:"mask",attributes:$($({},pc),{},{id:v,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[m,p]},_={tag:"defs",children:[{tag:"clipPath",attributes:{id:S},children:nk(d)},w]};return r.push(_,{tag:"rect",attributes:$({fill:"currentColor","clip-path":"url(#".concat(S,")"),mask:"url(#".concat(v,")")},pc)}),{children:r,attributes:o}}}},ok={provides:function(t){var n=!1;zr.matchMedia&&(n=zr.matchMedia("(prefers-reduced-motion: reduce)").matches),t.missingIconAbstract=function(){var r=[],o={fill:"currentColor"},s={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};r.push({tag:"path",attributes:$($({},o),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var i=$($({},s),{},{attributeName:"opacity"}),a={tag:"circle",attributes:$($({},o),{},{cx:"256",cy:"364",r:"28"}),children:[]};return n||a.children.push({tag:"animate",attributes:$($({},s),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:$($({},i),{},{values:"1;0;1;1;0;1;"})}),r.push(a),r.push({tag:"path",attributes:$($({},o),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:n?[]:[{tag:"animate",attributes:$($({},i),{},{values:"1;0;0;0;0;1;"})}]}),n||r.push({tag:"path",attributes:$($({},o),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:$($({},i),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:r}}}},sk={hooks:function(){return{parseNodeAttributes:function(n,r){var o=r.getAttribute("data-fa-symbol"),s=o===null?!1:o===""?!0:o;return n.symbol=s,n}}}},ik=[XR,zC,BC,HC,WC,ZC,ek,tk,rk,ok,sk];hC(ik,{mixoutsTo:Zt});Zt.noAuto;var Ns=Zt.config;Zt.library;Zt.dom;var $S=Zt.parse;Zt.findIconDefinition;Zt.toHtml;var ak=Zt.icon;Zt.layer;Zt.text;Zt.counter;function lk(e){return e=e-0,e===e}function US(e){return lk(e)?e:(e=e.replace(/[_-]+(.)?/g,(t,n)=>n?n.toUpperCase():""),e.charAt(0).toLowerCase()+e.slice(1))}var uk=(e,t)=>Dr.createElement("stop",{key:`${t}-${e.offset}`,offset:e.offset,stopColor:e.color,...e.opacity!==void 0&&{stopOpacity:e.opacity}});function ck(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Uo=new Map,fk=1e3;function dk(e){if(Uo.has(e))return Uo.get(e);const t={};let n=0;const r=e.length;for(;n<r;){const o=e.indexOf(";",n),s=o===-1?r:o,i=e.slice(n,s).trim();if(i){const a=i.indexOf(":");if(a>0){const l=i.slice(0,a).trim(),u=i.slice(a+1).trim();if(l&&u){const f=US(l);t[f.startsWith("webkit")?ck(f):f]=u}}}n=s+1}if(Uo.size===fk){const o=Uo.keys().next().value;o&&Uo.delete(o)}return Uo.set(e,t),t}function zS(e,t,n={}){if(typeof t=="string")return t;const r=(t.children||[]).map(c=>{let d=c;return("fill"in n||n.gradientFill)&&c.tag==="path"&&"fill"in c.attributes&&(d={...c,attributes:{...c.attributes,fill:void 0}}),zS(e,d)}),o=t.attributes||{},s={};for(const[c,d]of Object.entries(o))switch(!0){case c==="class":{s.className=d;break}case c==="style":{s.style=dk(String(d));break}case c.startsWith("aria-"):case c.startsWith("data-"):{s[c.toLowerCase()]=d;break}default:s[US(c)]=d}const{style:i,role:a,"aria-label":l,gradientFill:u,...f}=n;if(i&&(s.style=s.style?{...s.style,...i}:i),a&&(s.role=a),l&&(s["aria-label"]=l,s["aria-hidden"]="false"),u){s.fill=`url(#${u.id})`;const{type:c,stops:d=[],...h}=u;r.unshift(e(c==="linear"?"linearGradient":"radialGradient",{...h,id:u.id},d.map(uk)))}return e(t.tag,{...s,...f},...r)}var hk=zS.bind(null,Dr.createElement),og=(e,t)=>{const n=b.useId();return e||(t?n:void 0)},pk=class{constructor(e="react-fontawesome"){this.enabled=!1;let t=!1;try{t=typeof process<"u"&&!1}catch{}this.scope=e,this.enabled=t}log(...e){this.enabled&&console.log(`[${this.scope}]`,...e)}warn(...e){this.enabled&&console.warn(`[${this.scope}]`,...e)}error(...e){this.enabled&&console.error(`[${this.scope}]`,...e)}},mk="searchPseudoElementsFullScan"in Ns&&typeof Ns.searchPseudoElementsFullScan=="boolean"?"7.0.0":"6.0.0",gk=Number.parseInt(mk)>=7,vk=()=>gk,bi="fa",$n={beat:"fa-beat",fade:"fa-fade",beatFade:"fa-beat-fade",bounce:"fa-bounce",shake:"fa-shake",spin:"fa-spin",spinPulse:"fa-spin-pulse",spinReverse:"fa-spin-reverse",pulse:"fa-pulse"},yk={left:"fa-pull-left",right:"fa-pull-right"},Sk={90:"fa-rotate-90",180:"fa-rotate-180",270:"fa-rotate-270"},xk={"2xs":"fa-2xs",xs:"fa-xs",sm:"fa-sm",lg:"fa-lg",xl:"fa-xl","2xl":"fa-2xl","1x":"fa-1x","2x":"fa-2x","3x":"fa-3x","4x":"fa-4x","5x":"fa-5x","6x":"fa-6x","7x":"fa-7x","8x":"fa-8x","9x":"fa-9x","10x":"fa-10x"},Un={border:"fa-border",fixedWidth:"fa-fw",flip:"fa-flip",flipHorizontal:"fa-flip-horizontal",flipVertical:"fa-flip-vertical",inverse:"fa-inverse",rotateBy:"fa-rotate-by",swapOpacity:"fa-swap-opacity",widthAuto:"fa-width-auto"};function wk(e){const t=Ns.cssPrefix||Ns.familyPrefix||bi;return t===bi?e:e.replace(new RegExp(String.raw`(?<=^|\s)${bi}-`,"g"),`${t}-`)}function _k(e){const{beat:t,fade:n,beatFade:r,bounce:o,shake:s,spin:i,spinPulse:a,spinReverse:l,pulse:u,fixedWidth:f,inverse:c,border:d,flip:h,size:m,rotation:g,pull:y,swapOpacity:p,rotateBy:v,widthAuto:S,className:w}=e,_=[];return w&&_.push(...w.split(" ")),t&&_.push($n.beat),n&&_.push($n.fade),r&&_.push($n.beatFade),o&&_.push($n.bounce),s&&_.push($n.shake),i&&_.push($n.spin),l&&_.push($n.spinReverse),a&&_.push($n.spinPulse),u&&_.push($n.pulse),f&&_.push(Un.fixedWidth),c&&_.push(Un.inverse),d&&_.push(Un.border),h===!0&&_.push(Un.flip),(h==="horizontal"||h==="both")&&_.push(Un.flipHorizontal),(h==="vertical"||h==="both")&&_.push(Un.flipVertical),m!=null&&_.push(xk[m]),g!=null&&g!==0&&_.push(Sk[g]),y!=null&&_.push(yk[y]),p&&_.push(Un.swapOpacity),vk()?(v&&_.push(Un.rotateBy),S&&_.push(Un.widthAuto),(Ns.cssPrefix||Ns.familyPrefix||bi)===bi?_:_.map(wk)):_}var Ek=e=>typeof e=="object"&&"icon"in e&&!!e.icon;function sg(e){if(e)return Ek(e)?e:$S.icon(e)}function bk(e){return Object.keys(e)}var ig=new pk("FontAwesomeIcon"),BS={border:!1,className:"",mask:void 0,maskId:void 0,fixedWidth:!1,inverse:!1,flip:!1,icon:void 0,listItem:!1,pull:void 0,pulse:!1,rotation:void 0,rotateBy:!1,size:void 0,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:void 0,transform:void 0,swapOpacity:!1,widthAuto:!1},Pk=new Set(Object.keys(BS)),vu=Dr.forwardRef((e,t)=>{const n={...BS,...e},{icon:r,mask:o,symbol:s,title:i,titleId:a,maskId:l,transform:u}=n,f=og(l,!!o),c=og(a,!!i),d=sg(r);if(!d)return ig.error("Icon lookup is undefined",r),null;const h=_k(n),m=typeof u=="string"?$S.transform(u):u,g=sg(o),y=ak(d,{...h.length>0&&{classes:h},...m&&{transform:m},...g&&{mask:g},symbol:s,title:i,titleId:c,maskId:f});if(!y)return ig.error("Could not find icon",d),null;const{abstract:p}=y,v={ref:t};for(const S of bk(n))Pk.has(S)||(v[S]=n[S]);return hk(p[0],v)});vu.displayName="FontAwesomeIcon";/*!
614
+ }`;function S1(){var e=f1,t=d1,n=Z.cssPrefix,r=Z.replacementClass,o=YR;if(n!==e||r!==t){var s=new RegExp("\\.".concat(e,"\\-"),"g"),i=new RegExp("\\--".concat(e,"\\-"),"g"),a=new RegExp("\\.".concat(t),"g");o=o.replace(s,".".concat(n,"-")).replace(i,"--".concat(n,"-")).replace(a,".".concat(r))}return o}var Dm=!1;function fc(){Z.autoAddCss&&!Dm&&(VR(S1()),Dm=!0)}var XR={mixout:function(){return{dom:{css:S1,insertCss:fc}}},hooks:function(){return{beforeDOMElementCreation:function(){fc()},beforeI2svg:function(){fc()}}}},tr=zr||{};tr[er]||(tr[er]={});tr[er].styles||(tr[er].styles={});tr[er].hooks||(tr[er].hooks={});tr[er].shims||(tr[er].shims=[]);var Sn=tr[er],x1=[],w1=function(){Te.removeEventListener("DOMContentLoaded",w1),Ul=1,x1.map(function(t){return t()})},Ul=!1;rr&&(Ul=(Te.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Te.readyState),Ul||Te.addEventListener("DOMContentLoaded",w1));function JR(e){rr&&(Ul?setTimeout(e,0):x1.push(e))}function ca(e){var t=e.tag,n=e.attributes,r=n===void 0?{}:n,o=e.children,s=o===void 0?[]:o;return typeof e=="string"?y1(e):"<".concat(t," ").concat(qR(r),">").concat(s.map(ca).join(""),"</").concat(t,">")}function $m(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var dc=function(t,n,r,o){var s=Object.keys(t),i=s.length,a=n,l,u,f;for(r===void 0?(l=1,f=t[s[0]]):(l=0,f=r);l<i;l++)u=s[l],f=a(f,t[u],u,t);return f};function _1(e){return En(e).length!==1?null:e.codePointAt(0).toString(16)}function Um(e){return Object.keys(e).reduce(function(t,n){var r=e[n],o=!!r.icon;return o?t[r.iconName]=r.icon:t[n]=r,t},{})}function zf(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.skipHooks,o=r===void 0?!1:r,s=Um(t);typeof Sn.hooks.addPack=="function"&&!o?Sn.hooks.addPack(e,Um(t)):Sn.styles[e]=$($({},Sn.styles[e]||{}),s),e==="fas"&&zf("fa",t)}var Yi=Sn.styles,ZR=Sn.shims,E1=Object.keys(ch),eC=E1.reduce(function(e,t){return e[t]=Object.keys(ch[t]),e},{}),hh=null,b1={},P1={},R1={},C1={},k1={};function tC(e){return~UR.indexOf(e)}function nC(e,t){var n=t.split("-"),r=n[0],o=n.slice(1).join("-");return r===e&&o!==""&&!tC(o)?o:null}var T1=function(){var t=function(s){return dc(Yi,function(i,a,l){return i[l]=dc(a,s,{}),i},{})};b1=t(function(o,s,i){if(s[3]&&(o[s[3]]=i),s[2]){var a=s[2].filter(function(l){return typeof l=="number"});a.forEach(function(l){o[l.toString(16)]=i})}return o}),P1=t(function(o,s,i){if(o[i]=i,s[2]){var a=s[2].filter(function(l){return typeof l=="string"});a.forEach(function(l){o[l]=i})}return o}),k1=t(function(o,s,i){var a=s[2];return o[i]=i,a.forEach(function(l){o[l]=i}),o});var n="far"in Yi||Z.autoFetchSvg,r=dc(ZR,function(o,s){var i=s[0],a=s[1],l=s[2];return a==="far"&&!n&&(a="fas"),typeof i=="string"&&(o.names[i]={prefix:a,iconName:l}),typeof i=="number"&&(o.unicodes[i.toString(16)]={prefix:a,iconName:l}),o},{names:{},unicodes:{}});R1=r.names,C1=r.unicodes,hh=mu(Z.styleDefault,{family:Z.familyDefault})};WR(function(e){hh=mu(e.styleDefault,{family:Z.familyDefault})});T1();function ph(e,t){return(b1[e]||{})[t]}function rC(e,t){return(P1[e]||{})[t]}function io(e,t){return(k1[e]||{})[t]}function I1(e){return R1[e]||{prefix:null,iconName:null}}function oC(e){var t=C1[e],n=ph("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function Br(){return hh}var A1=function(){return{prefix:null,iconName:null,rest:[]}};function sC(e){var t=lt,n=E1.reduce(function(r,o){return r[o]="".concat(Z.cssPrefix,"-").concat(o),r},{});return a1.forEach(function(r){(e.includes(n[r])||e.some(function(o){return eC[r].includes(o)}))&&(t=r)}),t}function mu(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.family,r=n===void 0?lt:n,o=LR[r][e];if(r===la&&!e)return"fad";var s=jm[r][e]||jm[r][o],i=e in Sn.styles?e:null,a=s||i||null;return a}function iC(e){var t=[],n=null;return e.forEach(function(r){var o=nC(Z.cssPrefix,r);o?n=o:r&&t.push(r)}),{iconName:n,rest:t}}function zm(e){return e.sort().filter(function(t,n,r){return r.indexOf(t)===n})}var Bm=u1.concat(l1);function gu(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.skipLookups,r=n===void 0?!1:n,o=null,s=zm(e.filter(function(h){return Bm.includes(h)})),i=zm(e.filter(function(h){return!Bm.includes(h)})),a=s.filter(function(h){return o=h,!H0.includes(h)}),l=hu(a,1),u=l[0],f=u===void 0?null:u,c=sC(s),d=$($({},iC(i)),{},{prefix:mu(f,{family:c})});return $($($({},d),cC({values:e,family:c,styles:Yi,config:Z,canonical:d,givenPrefix:o})),aC(r,o,d))}function aC(e,t,n){var r=n.prefix,o=n.iconName;if(e||!r||!o)return{prefix:r,iconName:o};var s=t==="fa"?I1(o):{},i=io(r,o);return o=s.iconName||i||o,r=s.prefix||r,r==="far"&&!Yi.far&&Yi.fas&&!Z.autoFetchSvg&&(r="fas"),{prefix:r,iconName:o}}var lC=a1.filter(function(e){return e!==lt||e!==la}),uC=Object.keys(Lf).filter(function(e){return e!==lt}).map(function(e){return Object.keys(Lf[e])}).flat();function cC(e){var t=e.values,n=e.family,r=e.canonical,o=e.givenPrefix,s=o===void 0?"":o,i=e.styles,a=i===void 0?{}:i,l=e.config,u=l===void 0?{}:l,f=n===la,c=t.includes("fa-duotone")||t.includes("fad"),d=u.familyDefault==="duotone",h=r.prefix==="fad"||r.prefix==="fa-duotone";if(!f&&(c||d||h)&&(r.prefix="fad"),(t.includes("fa-brands")||t.includes("fab"))&&(r.prefix="fab"),!r.prefix&&lC.includes(n)){var m=Object.keys(a).find(function(y){return uC.includes(y)});if(m||u.autoFetchSvg){var g=PP.get(n).defaultShortPrefixId;r.prefix=g,r.iconName=io(r.prefix,r.iconName)||r.iconName}}return(r.prefix==="fa"||s==="fa")&&(r.prefix=Br()||"fas"),r}var fC=function(){function e(){Qb(this,e),this.definitions={}}return Gb(e,[{key:"add",value:function(){for(var n=this,r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];var i=o.reduce(this._pullDefinitions,{});Object.keys(i).forEach(function(a){n.definitions[a]=$($({},n.definitions[a]||{}),i[a]),zf(a,i[a]);var l=ch[lt][a];l&&zf(l,i[a]),T1()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(n,r){var o=r.prefix&&r.iconName&&r.icon?{0:r}:r;return Object.keys(o).map(function(s){var i=o[s],a=i.prefix,l=i.iconName,u=i.icon,f=u[2];n[a]||(n[a]={}),f.length>0&&f.forEach(function(c){typeof c=="string"&&(n[a][c]=u)}),n[a][l]=u}),n}}])}(),Hm=[],ts={},us={},dC=Object.keys(us);function hC(e,t){var n=t.mixoutsTo;return Hm=e,ts={},Object.keys(us).forEach(function(r){dC.indexOf(r)===-1&&delete us[r]}),Hm.forEach(function(r){var o=r.mixout?r.mixout():{};if(Object.keys(o).forEach(function(i){typeof o[i]=="function"&&(n[i]=o[i]),$l(o[i])==="object"&&Object.keys(o[i]).forEach(function(a){n[i]||(n[i]={}),n[i][a]=o[i][a]})}),r.hooks){var s=r.hooks();Object.keys(s).forEach(function(i){ts[i]||(ts[i]=[]),ts[i].push(s[i])})}r.provides&&r.provides(us)}),n}function Bf(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var s=ts[e]||[];return s.forEach(function(i){t=i.apply(null,[t].concat(r))}),t}function Io(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=ts[e]||[];o.forEach(function(s){s.apply(null,n)})}function Hr(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return us[e]?us[e].apply(null,t):void 0}function Hf(e){e.prefix==="fa"&&(e.prefix="fas");var t=e.iconName,n=e.prefix||Br();if(t)return t=io(n,t)||t,$m(N1.definitions,n,t)||$m(Sn.styles,n,t)}var N1=new fC,pC=function(){Z.autoReplaceSvg=!1,Z.observeMutations=!1,Io("noAuto")},mC={i2svg:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return rr?(Io("beforeI2svg",t),Hr("pseudoElements2svg",t),Hr("i2svg",t)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot;Z.autoReplaceSvg===!1&&(Z.autoReplaceSvg=!0),Z.observeMutations=!0,JR(function(){vC({autoReplaceSvgRoot:n}),Io("watch",t)})}},gC={icon:function(t){if(t===null)return null;if($l(t)==="object"&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:io(t.prefix,t.iconName)||t.iconName};if(Array.isArray(t)&&t.length===2){var n=t[1].indexOf("fa-")===0?t[1].slice(3):t[1],r=mu(t[0]);return{prefix:r,iconName:io(r,n)||n}}if(typeof t=="string"&&(t.indexOf("".concat(Z.cssPrefix,"-"))>-1||t.match(jR))){var o=gu(t.split(" "),{skipLookups:!0});return{prefix:o.prefix||Br(),iconName:io(o.prefix,o.iconName)||o.iconName}}if(typeof t=="string"){var s=Br();return{prefix:s,iconName:io(s,t)||t}}}},Zt={noAuto:pC,config:Z,dom:mC,parse:gC,library:N1,findIconDefinition:Hf,toHtml:ca},vC=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot,r=n===void 0?Te:n;(Object.keys(Sn.styles).length>0||Z.autoFetchSvg)&&rr&&Z.autoReplaceSvg&&Zt.dom.i2svg({node:r})};function vu(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(r){return ca(r)})}}),Object.defineProperty(e,"node",{get:function(){if(rr){var r=Te.createElement("div");return r.innerHTML=e.html,r.children}}}),e}function yC(e){var t=e.children,n=e.main,r=e.mask,o=e.attributes,s=e.styles,i=e.transform;if(dh(i)&&n.found&&!r.found){var a=n.width,l=n.height,u={x:a/l/2,y:.5};o.style=pu($($({},s),{},{"transform-origin":"".concat(u.x+i.x/16,"em ").concat(u.y+i.y/16,"em")}))}return[{tag:"svg",attributes:o,children:t}]}function SC(e){var t=e.prefix,n=e.iconName,r=e.children,o=e.attributes,s=e.symbol,i=s===!0?"".concat(t,"-").concat(Z.cssPrefix,"-").concat(n):s;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:$($({},o),{},{id:i}),children:r}]}]}function xC(e){var t=["aria-label","aria-labelledby","title","role"];return t.some(function(n){return n in e})}function mh(e){var t=e.icons,n=t.main,r=t.mask,o=e.prefix,s=e.iconName,i=e.transform,a=e.symbol,l=e.maskId,u=e.extra,f=e.watchable,c=f===void 0?!1:f,d=r.found?r:n,h=d.width,m=d.height,g=[Z.replacementClass,s?"".concat(Z.cssPrefix,"-").concat(s):""].filter(function(_){return u.classes.indexOf(_)===-1}).filter(function(_){return _!==""||!!_}).concat(u.classes).join(" "),y={children:[],attributes:$($({},u.attributes),{},{"data-prefix":o,"data-icon":s,class:g,role:u.attributes.role||"img",viewBox:"0 0 ".concat(h," ").concat(m)})};!xC(u.attributes)&&!u.attributes["aria-hidden"]&&(y.attributes["aria-hidden"]="true"),c&&(y.attributes[To]="");var p=$($({},y),{},{prefix:o,iconName:s,main:n,mask:r,maskId:l,transform:i,symbol:a,styles:$({},u.styles)}),v=r.found&&n.found?Hr("generateAbstractMask",p)||{children:[],attributes:{}}:Hr("generateAbstractIcon",p)||{children:[],attributes:{}},S=v.children,w=v.attributes;return p.children=S,p.attributes=w,a?SC(p):yC(p)}function Wm(e){var t=e.content,n=e.width,r=e.height,o=e.transform,s=e.extra,i=e.watchable,a=i===void 0?!1:i,l=$($({},s.attributes),{},{class:s.classes.join(" ")});a&&(l[To]="");var u=$({},s.styles);dh(o)&&(u.transform=KR({transform:o,width:n,height:r}),u["-webkit-transform"]=u.transform);var f=pu(u);f.length>0&&(l.style=f);var c=[];return c.push({tag:"span",attributes:l,children:[t]}),c}function wC(e){var t=e.content,n=e.extra,r=$($({},n.attributes),{},{class:n.classes.join(" ")}),o=pu(n.styles);o.length>0&&(r.style=o);var s=[];return s.push({tag:"span",attributes:r,children:[t]}),s}var hc=Sn.styles;function Wf(e){var t=e[0],n=e[1],r=e.slice(4),o=hu(r,1),s=o[0],i=null;return Array.isArray(s)?i={tag:"g",attributes:{class:"".concat(Z.cssPrefix,"-").concat(cc.GROUP)},children:[{tag:"path",attributes:{class:"".concat(Z.cssPrefix,"-").concat(cc.SECONDARY),fill:"currentColor",d:s[0]}},{tag:"path",attributes:{class:"".concat(Z.cssPrefix,"-").concat(cc.PRIMARY),fill:"currentColor",d:s[1]}}]}:i={tag:"path",attributes:{fill:"currentColor",d:s}},{found:!0,width:t,height:n,icon:i}}var _C={found:!1,width:512,height:512};function EC(e,t){!p1&&!Z.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function Vf(e,t){var n=t;return t==="fa"&&Z.styleDefault!==null&&(t=Br()),new Promise(function(r,o){if(n==="fa"){var s=I1(e)||{};e=s.iconName||e,t=s.prefix||t}if(e&&t&&hc[t]&&hc[t][e]){var i=hc[t][e];return r(Wf(i))}EC(e,t),r($($({},_C),{},{icon:Z.showMissingIcons&&e?Hr("missingIconAbstract")||{}:{}}))})}var Vm=function(){},Qf=Z.measurePerformance&&ja&&ja.mark&&ja.measure?ja:{mark:Vm,measure:Vm},hi='FA "7.2.0"',bC=function(t){return Qf.mark("".concat(hi," ").concat(t," begins")),function(){return O1(t)}},O1=function(t){Qf.mark("".concat(hi," ").concat(t," ends")),Qf.measure("".concat(hi," ").concat(t),"".concat(hi," ").concat(t," begins"),"".concat(hi," ").concat(t," ends"))},gh={begin:bC,end:O1},sl=function(){};function Qm(e){var t=e.getAttribute?e.getAttribute(To):null;return typeof t=="string"}function PC(e){var t=e.getAttribute?e.getAttribute(lh):null,n=e.getAttribute?e.getAttribute(uh):null;return t&&n}function RC(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(Z.replacementClass)}function CC(){if(Z.autoReplaceSvg===!0)return il.replace;var e=il[Z.autoReplaceSvg];return e||il.replace}function kC(e){return Te.createElementNS("http://www.w3.org/2000/svg",e)}function TC(e){return Te.createElement(e)}function M1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.ceFn,r=n===void 0?e.tag==="svg"?kC:TC:n;if(typeof e=="string")return Te.createTextNode(e);var o=r(e.tag);Object.keys(e.attributes||[]).forEach(function(i){o.setAttribute(i,e.attributes[i])});var s=e.children||[];return s.forEach(function(i){o.appendChild(M1(i,{ceFn:r}))}),o}function IC(e){var t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}var il={replace:function(t){var n=t[0];if(n.parentNode)if(t[1].forEach(function(o){n.parentNode.insertBefore(M1(o),n)}),n.getAttribute(To)===null&&Z.keepOriginalSource){var r=Te.createComment(IC(n));n.parentNode.replaceChild(r,n)}else n.remove()},nest:function(t){var n=t[0],r=t[1];if(~fh(n).indexOf(Z.replacementClass))return il.replace(t);var o=new RegExp("".concat(Z.cssPrefix,"-.*"));if(delete r[0].attributes.id,r[0].attributes.class){var s=r[0].attributes.class.split(" ").reduce(function(a,l){return l===Z.replacementClass||l.match(o)?a.toSvg.push(l):a.toNode.push(l),a},{toNode:[],toSvg:[]});r[0].attributes.class=s.toSvg.join(" "),s.toNode.length===0?n.removeAttribute("class"):n.setAttribute("class",s.toNode.join(" "))}var i=r.map(function(a){return ca(a)}).join(`
615
+ `);n.setAttribute(To,""),n.innerHTML=i}};function qm(e){e()}function L1(e,t){var n=typeof t=="function"?t:sl;if(e.length===0)n();else{var r=qm;Z.mutateApproach===OR&&(r=zr.requestAnimationFrame||qm),r(function(){var o=CC(),s=gh.begin("mutate");e.map(o),s(),n()})}}var vh=!1;function j1(){vh=!0}function qf(){vh=!1}var zl=null;function Gm(e){if(Nm&&Z.observeMutations){var t=e.treeCallback,n=t===void 0?sl:t,r=e.nodeCallback,o=r===void 0?sl:r,s=e.pseudoElementsCallback,i=s===void 0?sl:s,a=e.observeMutationsRoot,l=a===void 0?Te:a;zl=new Nm(function(u){if(!vh){var f=Br();Fs(u).forEach(function(c){if(c.type==="childList"&&c.addedNodes.length>0&&!Qm(c.addedNodes[0])&&(Z.searchPseudoElements&&i(c.target),n(c.target)),c.type==="attributes"&&c.target.parentNode&&Z.searchPseudoElements&&i([c.target],!0),c.type==="attributes"&&Qm(c.target)&&~$R.indexOf(c.attributeName))if(c.attributeName==="class"&&PC(c.target)){var d=gu(fh(c.target)),h=d.prefix,m=d.iconName;c.target.setAttribute(lh,h||f),m&&c.target.setAttribute(uh,m)}else RC(c.target)&&o(c.target)})}}),rr&&zl.observe(l,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function AC(){zl&&zl.disconnect()}function NC(e){var t=e.getAttribute("style"),n=[];return t&&(n=t.split(";").reduce(function(r,o){var s=o.split(":"),i=s[0],a=s.slice(1);return i&&a.length>0&&(r[i]=a.join(":").trim()),r},{})),n}function OC(e){var t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"",o=gu(fh(e));return o.prefix||(o.prefix=Br()),t&&n&&(o.prefix=t,o.iconName=n),o.iconName&&o.prefix||(o.prefix&&r.length>0&&(o.iconName=rC(o.prefix,e.innerText)||ph(o.prefix,_1(e.innerText))),!o.iconName&&Z.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(o.iconName=e.firstChild.data)),o}function MC(e){var t=Fs(e.attributes).reduce(function(n,r){return n.name!=="class"&&n.name!=="style"&&(n[r.name]=r.value),n},{});return t}function LC(){return{iconName:null,prefix:null,transform:Nn,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function Km(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},n=OC(e),r=n.iconName,o=n.prefix,s=n.rest,i=MC(e),a=Bf("parseNodeAttributes",{},e),l=t.styleParser?NC(e):[];return $({iconName:r,prefix:o,transform:Nn,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:s,styles:l,attributes:i}},a)}var jC=Sn.styles;function F1(e){var t=Z.autoReplaceSvg==="nest"?Km(e,{styleParser:!1}):Km(e);return~t.extra.classes.indexOf(g1)?Hr("generateLayersText",e,t):Hr("generateSvgReplacementMutation",e,t)}function FC(){return[].concat(En(l1),En(u1))}function Ym(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!rr)return Promise.resolve();var n=Te.documentElement.classList,r=function(c){return n.add("".concat(Lm,"-").concat(c))},o=function(c){return n.remove("".concat(Lm,"-").concat(c))},s=Z.autoFetchSvg?FC():H0.concat(Object.keys(jC));s.includes("fa")||s.push("fa");var i=[".".concat(g1,":not([").concat(To,"])")].concat(s.map(function(f){return".".concat(f,":not([").concat(To,"])")})).join(", ");if(i.length===0)return Promise.resolve();var a=[];try{a=Fs(e.querySelectorAll(i))}catch{}if(a.length>0)r("pending"),o("complete");else return Promise.resolve();var l=gh.begin("onTree"),u=a.reduce(function(f,c){try{var d=F1(c);d&&f.push(d)}catch(h){p1||h.name==="MissingIcon"&&console.error(h)}return f},[]);return new Promise(function(f,c){Promise.all(u).then(function(d){L1(d,function(){r("active"),r("complete"),o("pending"),typeof t=="function"&&t(),l(),f()})}).catch(function(d){l(),c(d)})})}function DC(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;F1(e).then(function(n){n&&L1([n],t)})}function $C(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=(t||{}).icon?t:Hf(t||{}),o=n.mask;return o&&(o=(o||{}).icon?o:Hf(o||{})),e(r,$($({},n),{},{mask:o}))}}var UC=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.transform,o=r===void 0?Nn:r,s=n.symbol,i=s===void 0?!1:s,a=n.mask,l=a===void 0?null:a,u=n.maskId,f=u===void 0?null:u,c=n.classes,d=c===void 0?[]:c,h=n.attributes,m=h===void 0?{}:h,g=n.styles,y=g===void 0?{}:g;if(t){var p=t.prefix,v=t.iconName,S=t.icon;return vu($({type:"icon"},t),function(){return Io("beforeDOMElementCreation",{iconDefinition:t,params:n}),mh({icons:{main:Wf(S),mask:l?Wf(l.icon):{found:!1,width:null,height:null,icon:{}}},prefix:p,iconName:v,transform:$($({},Nn),o),symbol:i,maskId:f,extra:{attributes:m,styles:y,classes:d}})})}},zC={mixout:function(){return{icon:$C(UC)}},hooks:function(){return{mutationObserverCallbacks:function(n){return n.treeCallback=Ym,n.nodeCallback=DC,n}}},provides:function(t){t.i2svg=function(n){var r=n.node,o=r===void 0?Te:r,s=n.callback,i=s===void 0?function(){}:s;return Ym(o,i)},t.generateSvgReplacementMutation=function(n,r){var o=r.iconName,s=r.prefix,i=r.transform,a=r.symbol,l=r.mask,u=r.maskId,f=r.extra;return new Promise(function(c,d){Promise.all([Vf(o,s),l.iconName?Vf(l.iconName,l.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(h){var m=hu(h,2),g=m[0],y=m[1];c([n,mh({icons:{main:g,mask:y},prefix:s,iconName:o,transform:i,symbol:a,maskId:u,extra:f,watchable:!0})])}).catch(d)})},t.generateAbstractIcon=function(n){var r=n.children,o=n.attributes,s=n.main,i=n.transform,a=n.styles,l=pu(a);l.length>0&&(o.style=l);var u;return dh(i)&&(u=Hr("generateAbstractTransformGrouping",{main:s,transform:i,containerWidth:s.width,iconWidth:s.width})),r.push(u||s.icon),{children:r,attributes:o}}}},BC={mixout:function(){return{layer:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=r.classes,s=o===void 0?[]:o;return vu({type:"layer"},function(){Io("beforeDOMElementCreation",{assembler:n,params:r});var i=[];return n(function(a){Array.isArray(a)?a.map(function(l){i=i.concat(l.abstract)}):i=i.concat(a.abstract)}),[{tag:"span",attributes:{class:["".concat(Z.cssPrefix,"-layers")].concat(En(s)).join(" ")},children:i}]})}}}},HC={mixout:function(){return{counter:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};r.title;var o=r.classes,s=o===void 0?[]:o,i=r.attributes,a=i===void 0?{}:i,l=r.styles,u=l===void 0?{}:l;return vu({type:"counter",content:n},function(){return Io("beforeDOMElementCreation",{content:n,params:r}),wC({content:n.toString(),extra:{attributes:a,styles:u,classes:["".concat(Z.cssPrefix,"-layers-counter")].concat(En(s))}})})}}}},WC={mixout:function(){return{text:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=r.transform,s=o===void 0?Nn:o,i=r.classes,a=i===void 0?[]:i,l=r.attributes,u=l===void 0?{}:l,f=r.styles,c=f===void 0?{}:f;return vu({type:"text",content:n},function(){return Io("beforeDOMElementCreation",{content:n,params:r}),Wm({content:n,transform:$($({},Nn),s),extra:{attributes:u,styles:c,classes:["".concat(Z.cssPrefix,"-layers-text")].concat(En(a))}})})}}},provides:function(t){t.generateLayersText=function(n,r){var o=r.transform,s=r.extra,i=null,a=null;if(z0){var l=parseInt(getComputedStyle(n).fontSize,10),u=n.getBoundingClientRect();i=u.width/l,a=u.height/l}return Promise.resolve([n,Wm({content:n.innerHTML,width:i,height:a,transform:o,extra:s,watchable:!0})])}}},D1=new RegExp('"',"ug"),Xm=[1105920,1112319],Jm=$($($($({},{FontAwesome:{normal:"fas",400:"fas"}}),bP),AR),OP),Gf=Object.keys(Jm).reduce(function(e,t){return e[t.toLowerCase()]=Jm[t],e},{}),VC=Object.keys(Gf).reduce(function(e,t){var n=Gf[t];return e[t]=n[900]||En(Object.entries(n))[0][1],e},{});function QC(e){var t=e.replace(D1,"");return _1(En(t)[0]||"")}function qC(e){var t=e.getPropertyValue("font-feature-settings").includes("ss01"),n=e.getPropertyValue("content"),r=n.replace(D1,""),o=r.codePointAt(0),s=o>=Xm[0]&&o<=Xm[1],i=r.length===2?r[0]===r[1]:!1;return s||i||t}function GC(e,t){var n=e.replace(/^['"]|['"]$/g,"").toLowerCase(),r=parseInt(t),o=isNaN(r)?"normal":r;return(Gf[n]||{})[o]||VC[n]}function Zm(e,t){var n="".concat(NR).concat(t.replace(":","-"));return new Promise(function(r,o){if(e.getAttribute(n)!==null)return r();var s=Fs(e.children),i=s.filter(function(T){return T.getAttribute(Ff)===t})[0],a=zr.getComputedStyle(e,t),l=a.getPropertyValue("font-family"),u=l.match(FR),f=a.getPropertyValue("font-weight"),c=a.getPropertyValue("content");if(i&&!u)return e.removeChild(i),r();if(u&&c!=="none"&&c!==""){var d=a.getPropertyValue("content"),h=GC(l,f),m=QC(d),g=u[0].startsWith("FontAwesome"),y=qC(a),p=ph(h,m),v=p;if(g){var S=oC(m);S.iconName&&S.prefix&&(p=S.iconName,h=S.prefix)}if(p&&!y&&(!i||i.getAttribute(lh)!==h||i.getAttribute(uh)!==v)){e.setAttribute(n,v),i&&e.removeChild(i);var w=LC(),_=w.extra;_.attributes[Ff]=t,Vf(p,h).then(function(T){var I=mh($($({},w),{},{icons:{main:T,mask:A1()},prefix:h,iconName:v,extra:_,watchable:!0})),P=Te.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore(P,e.firstChild):e.appendChild(P),P.outerHTML=I.map(function(k){return ca(k)}).join(`
616
+ `),e.removeAttribute(n),r()}).catch(o)}else r()}else r()})}function KC(e){return Promise.all([Zm(e,"::before"),Zm(e,"::after")])}function YC(e){return e.parentNode!==document.head&&!~MR.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(Ff)&&(!e.parentNode||e.parentNode.tagName!=="svg")}var XC=function(t){return!!t&&h1.some(function(n){return t.includes(n)})},JC=function(t){if(!t)return[];var n=new Set,r=t.split(/,(?![^()]*\))/).map(function(l){return l.trim()});r=r.flatMap(function(l){return l.includes("(")?l:l.split(",").map(function(u){return u.trim()})});var o=ol(r),s;try{for(o.s();!(s=o.n()).done;){var i=s.value;if(XC(i)){var a=h1.reduce(function(l,u){return l.replace(u,"")},i);a!==""&&a!=="*"&&n.add(a)}}}catch(l){o.e(l)}finally{o.f()}return n};function eg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(rr){var n;if(t)n=e;else if(Z.searchPseudoElementsFullScan)n=e.querySelectorAll("*");else{var r=new Set,o=ol(document.styleSheets),s;try{for(o.s();!(s=o.n()).done;){var i=s.value;try{var a=ol(i.cssRules),l;try{for(a.s();!(l=a.n()).done;){var u=l.value,f=JC(u.selectorText),c=ol(f),d;try{for(c.s();!(d=c.n()).done;){var h=d.value;r.add(h)}}catch(g){c.e(g)}finally{c.f()}}}catch(g){a.e(g)}finally{a.f()}}catch(g){Z.searchPseudoElementsWarnings&&console.warn("Font Awesome: cannot parse stylesheet: ".concat(i.href," (").concat(g.message,`)
617
+ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered as SVG icons. Add crossorigin="anonymous" to the <link>, enable searchPseudoElementsFullScan for slower but more thorough DOM parsing, or suppress this warning by setting searchPseudoElementsWarnings to false.`))}}}catch(g){o.e(g)}finally{o.f()}if(!r.size)return;var m=Array.from(r).join(", ");try{n=e.querySelectorAll(m)}catch{}}return new Promise(function(g,y){var p=Fs(n).filter(YC).map(KC),v=gh.begin("searchPseudoElements");j1(),Promise.all(p).then(function(){v(),qf(),g()}).catch(function(){v(),qf(),y()})})}}var ZC={hooks:function(){return{mutationObserverCallbacks:function(n){return n.pseudoElementsCallback=eg,n}}},provides:function(t){t.pseudoElements2svg=function(n){var r=n.node,o=r===void 0?Te:r;Z.searchPseudoElements&&eg(o)}}},tg=!1,ek={mixout:function(){return{dom:{unwatch:function(){j1(),tg=!0}}}},hooks:function(){return{bootstrap:function(){Gm(Bf("mutationObserverCallbacks",{}))},noAuto:function(){AC()},watch:function(n){var r=n.observeMutationsRoot;tg?qf():Gm(Bf("mutationObserverCallbacks",{observeMutationsRoot:r}))}}}},ng=function(t){var n={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t.toLowerCase().split(" ").reduce(function(r,o){var s=o.toLowerCase().split("-"),i=s[0],a=s.slice(1).join("-");if(i&&a==="h")return r.flipX=!0,r;if(i&&a==="v")return r.flipY=!0,r;if(a=parseFloat(a),isNaN(a))return r;switch(i){case"grow":r.size=r.size+a;break;case"shrink":r.size=r.size-a;break;case"left":r.x=r.x-a;break;case"right":r.x=r.x+a;break;case"up":r.y=r.y-a;break;case"down":r.y=r.y+a;break;case"rotate":r.rotate=r.rotate+a;break}return r},n)},tk={mixout:function(){return{parse:{transform:function(n){return ng(n)}}}},hooks:function(){return{parseNodeAttributes:function(n,r){var o=r.getAttribute("data-fa-transform");return o&&(n.transform=ng(o)),n}}},provides:function(t){t.generateAbstractTransformGrouping=function(n){var r=n.main,o=n.transform,s=n.containerWidth,i=n.iconWidth,a={transform:"translate(".concat(s/2," 256)")},l="translate(".concat(o.x*32,", ").concat(o.y*32,") "),u="scale(".concat(o.size/16*(o.flipX?-1:1),", ").concat(o.size/16*(o.flipY?-1:1),") "),f="rotate(".concat(o.rotate," 0 0)"),c={transform:"".concat(l," ").concat(u," ").concat(f)},d={transform:"translate(".concat(i/2*-1," -256)")},h={outer:a,inner:c,path:d};return{tag:"g",attributes:$({},h.outer),children:[{tag:"g",attributes:$({},h.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:$($({},r.icon.attributes),h.path)}]}]}}}},pc={x:0,y:0,width:"100%",height:"100%"};function rg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function nk(e){return e.tag==="g"?e.children:[e]}var rk={hooks:function(){return{parseNodeAttributes:function(n,r){var o=r.getAttribute("data-fa-mask"),s=o?gu(o.split(" ").map(function(i){return i.trim()})):A1();return s.prefix||(s.prefix=Br()),n.mask=s,n.maskId=r.getAttribute("data-fa-mask-id"),n}}},provides:function(t){t.generateAbstractMask=function(n){var r=n.children,o=n.attributes,s=n.main,i=n.mask,a=n.maskId,l=n.transform,u=s.width,f=s.icon,c=i.width,d=i.icon,h=GR({transform:l,containerWidth:c,iconWidth:u}),m={tag:"rect",attributes:$($({},pc),{},{fill:"white"})},g=f.children?{children:f.children.map(rg)}:{},y={tag:"g",attributes:$({},h.inner),children:[rg($({tag:f.tag,attributes:$($({},f.attributes),h.path)},g))]},p={tag:"g",attributes:$({},h.outer),children:[y]},v="mask-".concat(a||Fm()),S="clip-".concat(a||Fm()),w={tag:"mask",attributes:$($({},pc),{},{id:v,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[m,p]},_={tag:"defs",children:[{tag:"clipPath",attributes:{id:S},children:nk(d)},w]};return r.push(_,{tag:"rect",attributes:$({fill:"currentColor","clip-path":"url(#".concat(S,")"),mask:"url(#".concat(v,")")},pc)}),{children:r,attributes:o}}}},ok={provides:function(t){var n=!1;zr.matchMedia&&(n=zr.matchMedia("(prefers-reduced-motion: reduce)").matches),t.missingIconAbstract=function(){var r=[],o={fill:"currentColor"},s={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};r.push({tag:"path",attributes:$($({},o),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var i=$($({},s),{},{attributeName:"opacity"}),a={tag:"circle",attributes:$($({},o),{},{cx:"256",cy:"364",r:"28"}),children:[]};return n||a.children.push({tag:"animate",attributes:$($({},s),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:$($({},i),{},{values:"1;0;1;1;0;1;"})}),r.push(a),r.push({tag:"path",attributes:$($({},o),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:n?[]:[{tag:"animate",attributes:$($({},i),{},{values:"1;0;0;0;0;1;"})}]}),n||r.push({tag:"path",attributes:$($({},o),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:$($({},i),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:r}}}},sk={hooks:function(){return{parseNodeAttributes:function(n,r){var o=r.getAttribute("data-fa-symbol"),s=o===null?!1:o===""?!0:o;return n.symbol=s,n}}}},ik=[XR,zC,BC,HC,WC,ZC,ek,tk,rk,ok,sk];hC(ik,{mixoutsTo:Zt});Zt.noAuto;var Os=Zt.config;Zt.library;Zt.dom;var $1=Zt.parse;Zt.findIconDefinition;Zt.toHtml;var ak=Zt.icon;Zt.layer;Zt.text;Zt.counter;function lk(e){return e=e-0,e===e}function U1(e){return lk(e)?e:(e=e.replace(/[_-]+(.)?/g,(t,n)=>n?n.toUpperCase():""),e.charAt(0).toLowerCase()+e.slice(1))}var uk=(e,t)=>Dr.createElement("stop",{key:`${t}-${e.offset}`,offset:e.offset,stopColor:e.color,...e.opacity!==void 0&&{stopOpacity:e.opacity}});function ck(e){return e.charAt(0).toUpperCase()+e.slice(1)}var zo=new Map,fk=1e3;function dk(e){if(zo.has(e))return zo.get(e);const t={};let n=0;const r=e.length;for(;n<r;){const o=e.indexOf(";",n),s=o===-1?r:o,i=e.slice(n,s).trim();if(i){const a=i.indexOf(":");if(a>0){const l=i.slice(0,a).trim(),u=i.slice(a+1).trim();if(l&&u){const f=U1(l);t[f.startsWith("webkit")?ck(f):f]=u}}}n=s+1}if(zo.size===fk){const o=zo.keys().next().value;o&&zo.delete(o)}return zo.set(e,t),t}function z1(e,t,n={}){if(typeof t=="string")return t;const r=(t.children||[]).map(c=>{let d=c;return("fill"in n||n.gradientFill)&&c.tag==="path"&&"fill"in c.attributes&&(d={...c,attributes:{...c.attributes,fill:void 0}}),z1(e,d)}),o=t.attributes||{},s={};for(const[c,d]of Object.entries(o))switch(!0){case c==="class":{s.className=d;break}case c==="style":{s.style=dk(String(d));break}case c.startsWith("aria-"):case c.startsWith("data-"):{s[c.toLowerCase()]=d;break}default:s[U1(c)]=d}const{style:i,role:a,"aria-label":l,gradientFill:u,...f}=n;if(i&&(s.style=s.style?{...s.style,...i}:i),a&&(s.role=a),l&&(s["aria-label"]=l,s["aria-hidden"]="false"),u){s.fill=`url(#${u.id})`;const{type:c,stops:d=[],...h}=u;r.unshift(e(c==="linear"?"linearGradient":"radialGradient",{...h,id:u.id},d.map(uk)))}return e(t.tag,{...s,...f},...r)}var hk=z1.bind(null,Dr.createElement),og=(e,t)=>{const n=b.useId();return e||(t?n:void 0)},pk=class{constructor(e="react-fontawesome"){this.enabled=!1;let t=!1;try{t=typeof process<"u"&&!1}catch{}this.scope=e,this.enabled=t}log(...e){this.enabled&&console.log(`[${this.scope}]`,...e)}warn(...e){this.enabled&&console.warn(`[${this.scope}]`,...e)}error(...e){this.enabled&&console.error(`[${this.scope}]`,...e)}},mk="searchPseudoElementsFullScan"in Os&&typeof Os.searchPseudoElementsFullScan=="boolean"?"7.0.0":"6.0.0",gk=Number.parseInt(mk)>=7,vk=()=>gk,Pi="fa",$n={beat:"fa-beat",fade:"fa-fade",beatFade:"fa-beat-fade",bounce:"fa-bounce",shake:"fa-shake",spin:"fa-spin",spinPulse:"fa-spin-pulse",spinReverse:"fa-spin-reverse",pulse:"fa-pulse"},yk={left:"fa-pull-left",right:"fa-pull-right"},Sk={90:"fa-rotate-90",180:"fa-rotate-180",270:"fa-rotate-270"},xk={"2xs":"fa-2xs",xs:"fa-xs",sm:"fa-sm",lg:"fa-lg",xl:"fa-xl","2xl":"fa-2xl","1x":"fa-1x","2x":"fa-2x","3x":"fa-3x","4x":"fa-4x","5x":"fa-5x","6x":"fa-6x","7x":"fa-7x","8x":"fa-8x","9x":"fa-9x","10x":"fa-10x"},Un={border:"fa-border",fixedWidth:"fa-fw",flip:"fa-flip",flipHorizontal:"fa-flip-horizontal",flipVertical:"fa-flip-vertical",inverse:"fa-inverse",rotateBy:"fa-rotate-by",swapOpacity:"fa-swap-opacity",widthAuto:"fa-width-auto"};function wk(e){const t=Os.cssPrefix||Os.familyPrefix||Pi;return t===Pi?e:e.replace(new RegExp(String.raw`(?<=^|\s)${Pi}-`,"g"),`${t}-`)}function _k(e){const{beat:t,fade:n,beatFade:r,bounce:o,shake:s,spin:i,spinPulse:a,spinReverse:l,pulse:u,fixedWidth:f,inverse:c,border:d,flip:h,size:m,rotation:g,pull:y,swapOpacity:p,rotateBy:v,widthAuto:S,className:w}=e,_=[];return w&&_.push(...w.split(" ")),t&&_.push($n.beat),n&&_.push($n.fade),r&&_.push($n.beatFade),o&&_.push($n.bounce),s&&_.push($n.shake),i&&_.push($n.spin),l&&_.push($n.spinReverse),a&&_.push($n.spinPulse),u&&_.push($n.pulse),f&&_.push(Un.fixedWidth),c&&_.push(Un.inverse),d&&_.push(Un.border),h===!0&&_.push(Un.flip),(h==="horizontal"||h==="both")&&_.push(Un.flipHorizontal),(h==="vertical"||h==="both")&&_.push(Un.flipVertical),m!=null&&_.push(xk[m]),g!=null&&g!==0&&_.push(Sk[g]),y!=null&&_.push(yk[y]),p&&_.push(Un.swapOpacity),vk()?(v&&_.push(Un.rotateBy),S&&_.push(Un.widthAuto),(Os.cssPrefix||Os.familyPrefix||Pi)===Pi?_:_.map(wk)):_}var Ek=e=>typeof e=="object"&&"icon"in e&&!!e.icon;function sg(e){if(e)return Ek(e)?e:$1.icon(e)}function bk(e){return Object.keys(e)}var ig=new pk("FontAwesomeIcon"),B1={border:!1,className:"",mask:void 0,maskId:void 0,fixedWidth:!1,inverse:!1,flip:!1,icon:void 0,listItem:!1,pull:void 0,pulse:!1,rotation:void 0,rotateBy:!1,size:void 0,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:void 0,transform:void 0,swapOpacity:!1,widthAuto:!1},Pk=new Set(Object.keys(B1)),ao=Dr.forwardRef((e,t)=>{const n={...B1,...e},{icon:r,mask:o,symbol:s,title:i,titleId:a,maskId:l,transform:u}=n,f=og(l,!!o),c=og(a,!!i),d=sg(r);if(!d)return ig.error("Icon lookup is undefined",r),null;const h=_k(n),m=typeof u=="string"?$1.transform(u):u,g=sg(o),y=ak(d,{...h.length>0&&{classes:h},...m&&{transform:m},...g&&{mask:g},symbol:s,title:i,titleId:c,maskId:f});if(!y)return ig.error("Could not find icon",d),null;const{abstract:p}=y,v={ref:t};for(const S of bk(n))Pk.has(S)||(v[S]=n[S]);return hk(p[0],v)});ao.displayName="FontAwesomeIcon";/*!
618
618
  * Font Awesome Free 7.2.0 by @fontawesome - https://fontawesome.com
619
619
  * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
620
620
  * Copyright 2026 Fonticons, Inc.
621
- */var Rk={prefix:"fas",iconName:"terminal",icon:[512,512,[],"f120","M9.4 118.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l160 160c12.5 12.5 12.5 32.8 0 45.3l-160 160c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L146.7 256 9.4 118.6zM224 384l256 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-256 0c-17.7 0-32-14.3-32-32s14.3-32 32-32z"]},Ck={prefix:"fas",iconName:"spinner",icon:[512,512,[],"f110","M208 48a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zm0 416a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zM48 208a48 48 0 1 1 0 96 48 48 0 1 1 0-96zm368 48a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zM75 369.1A48 48 0 1 1 142.9 437 48 48 0 1 1 75 369.1zM75 75A48 48 0 1 1 142.9 142.9 48 48 0 1 1 75 75zM437 369.1A48 48 0 1 1 369.1 437 48 48 0 1 1 437 369.1z"]},kk={prefix:"fas",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M55.1 73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L147.2 256 9.9 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192.5 301.3 329.9 438.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.8 256 375.1 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192.5 210.7 55.1 73.4z"]};const yu={queryKey:["bundle"],queryFn:async()=>{const e=await fetch("/api/bundle");if(!e.ok)throw new Error("Failed to fetch bundle.json");return e.json()}},Tk=["go","fmo","staging","integration","test1"],HS=b.createContext({apiKey:"",userId:"",businessId:"",environment:"go"}),yh=()=>b.useContext(HS),Sh={go:"https://app.go.kizen.com/api",fmo:"https://app.fmo.kizen.com/api",staging:"https://staging.kizen.dev/api",integration:"https://integration.kizen.dev/api",test1:"https://test1.kizen.dev/api"};function WS(){const{apiKey:e,userId:t,businessId:n,environment:r}=yh(),o=Sh[r];return b.useCallback((s,i={})=>fetch(`/api/proxy${s}`,{...i,headers:{"x-proxy-target":o,"X-API-KEY":e,"X-USER-ID":t,"X-BUSINESS-ID":n,...i.headers}}),[o,e,t,n])}function Ik(e){const{apiKey:t,userId:n,businessId:r,environment:o}=e;return{queryKey:["bootstrap",o,t,n,r],enabled:!!(t&&n&&r),queryFn:async()=>{const i=await fetch("/api/proxy/auth/bootstrap",{headers:{"x-proxy-target":Sh[o],"X-API-KEY":t,"X-USER-ID":n,"X-BUSINESS-ID":r}});if(!i.ok)throw new Error(`Bootstrap failed: ${String(i.status)} ${i.statusText}`);return i.json()},retry:!1}}function Ak(){const e=M0(),[t,n]=b.useState([]),[r,o]=b.useState([]);return b.useEffect(()=>{const s=window.location.protocol==="https:"?"wss:":"ws:",i=new WebSocket(`${s}//${window.location.host}`);return i.addEventListener("message",a=>{let l;try{l=JSON.parse(a.data)}catch{return}l.type==="rebuild"?e.invalidateQueries({queryKey:["bundle"]}):l.type==="log"?n(u=>[...u,l.message]):o(u=>[...u,l.message])}),()=>{i.close()}},[e]),{buildLogs:t,proxyLogs:r}}const Fa="w-full rounded bg-neutral-800 border border-neutral-700 px-2 py-1 text-[12px] font-mono text-neutral-200 focus:outline-none focus:border-neutral-500",Da="block text-[11px] font-semibold uppercase tracking-widest text-neutral-500 mb-1",ag="text-[11px] font-semibold uppercase tracking-widest text-neutral-500",lg=({logs:e,height:t})=>{const n=b.useRef(null);return b.useEffect(()=>{var r;(r=n.current)==null||r.scrollIntoView({behavior:"smooth"})},[e]),x.jsxs("div",{className:`${t} overflow-x-auto overflow-y-auto pb-4`,children:[e.length===0?x.jsx("p",{className:"px-4 text-[12px] text-neutral-600",children:"No output yet."}):e.map((r,o)=>x.jsx("div",{className:"whitespace-pre px-4 text-[12px] leading-5 text-neutral-500",children:r},o)),x.jsx("div",{ref:n})]})},Nk=({onClose:e,buildLogs:t,proxyLogs:n,credentials:r,onCredentialsChange:o})=>x.jsxs("aside",{className:"flex w-[26rem] shrink-0 flex-col border-l border-neutral-800 bg-neutral-900 text-neutral-100",children:[x.jsxs("div",{className:"flex items-center justify-between border-b border-neutral-800 px-4 py-3",children:[x.jsx("span",{className:"text-[12px] font-semibold uppercase tracking-widest text-neutral-400",children:"Dev Tools"}),x.jsx("button",{onClick:e,className:"text-neutral-500 hover:text-neutral-200","aria-label":"Close dev tools",children:x.jsx(vu,{icon:kk,size:"sm"})})]}),x.jsxs("div",{className:"flex flex-1 flex-col overflow-hidden",children:[x.jsxs("div",{className:"flex flex-col gap-3 border-b border-neutral-800 px-4 py-3",children:[x.jsxs("div",{children:[x.jsx("label",{className:Da,children:"Environment"}),x.jsx("select",{className:Fa,value:r.environment,onChange:s=>{o({...r,environment:s.target.value})},children:Tk.map(s=>x.jsx("option",{value:s,children:s},s))})]}),x.jsxs("div",{children:[x.jsx("label",{className:Da,children:"API Key"}),x.jsx("input",{type:"password",className:Fa,value:r.apiKey,onChange:s=>{o({...r,apiKey:s.target.value})},placeholder:"x-api-key",autoComplete:"off"})]}),x.jsxs("div",{children:[x.jsx("label",{className:Da,children:"User ID"}),x.jsx("input",{type:"text",className:Fa,value:r.userId,onChange:s=>{o({...r,userId:s.target.value})},placeholder:"x-user-id",autoComplete:"off"})]}),x.jsxs("div",{children:[x.jsx("label",{className:Da,children:"Business ID"}),x.jsx("input",{type:"text",className:Fa,value:r.businessId,onChange:s=>{o({...r,businessId:s.target.value})},placeholder:"x-business-id",autoComplete:"off"})]})]}),x.jsx("div",{className:"min-h-0 flex-1"}),x.jsxs("div",{className:"flex flex-col border-t border-neutral-800",children:[x.jsx("div",{className:"px-4 py-2",children:x.jsx("span",{className:ag,children:"Proxy Log"})}),x.jsx(lg,{logs:n,height:"h-48"})]}),x.jsxs("div",{className:"flex flex-col border-t border-neutral-800",children:[x.jsx("div",{className:"px-4 py-2",children:x.jsx("span",{className:ag,children:"Build Log"})}),x.jsx(lg,{logs:t,height:"h-48"})]})]})]}),VS=b.createContext(0),QS=()=>b.useContext(VS),qS=b.createContext(void 0),Ok=()=>b.useContext(qS),Mk=416,ug={apiKey:"",userId:"",businessId:"",environment:"go"},Lk=()=>{var T,I;const{buildLogs:e,proxyLogs:t}=Ak(),[n,r]=b.useState(()=>localStorage.getItem("devtools-sidebar-open")==="true"),o=()=>{r(P=>{const k=!P;return localStorage.setItem("devtools-sidebar-open",String(k)),k})},[s,i]=b.useState(()=>{try{return{...ug,...JSON.parse(localStorage.getItem("devtools-credentials")??"{}")}}catch{return ug}}),a=P=>{i(P),localStorage.setItem("devtools-credentials",JSON.stringify(P))},{data:l,isLoading:u,isError:f}=Co(yu),{data:c,isError:d,isLoading:h}=Co(Ik(s)),m=fu(),{location:g}=lb(),y=(T=/^\/([^/]+)\/.+/.exec(g.pathname))==null?void 0:T[1],p=(I=/^\/[^/]+\/([^/]+)$/.exec(g.pathname))==null?void 0:I[1],v=u?"loading":f?"error":l?"loaded":"empty",S=h?"authenticating":d?"auth error":c?"authenticated":"no auth",w=u?"bg-neutral-100 text-neutral-400":f?"bg-red-100 text-red-700":l?"bg-green-100 text-green-700":"bg-yellow-100 text-yellow-700",_=h?"bg-neutral-100 text-neutral-400":d?"bg-red-100 text-red-700":c?"bg-green-100 text-green-700":"bg-yellow-100 text-yellow-700";return x.jsx(HS.Provider,{value:s,children:x.jsx(VS.Provider,{value:n?Mk:0,children:x.jsx(qS.Provider,{value:c,children:x.jsxs("div",{className:"flex min-h-screen flex-col font-mono",children:[x.jsxs("div",{className:"sticky top-0 z-10 flex items-center gap-3 border-b border-black/10 bg-white/85 px-5 py-3 backdrop-blur-sm",children:[x.jsx("span",{className:"text-[13px] font-bold tracking-tight text-neutral-900",children:"Kizen App Builder"}),l&&l.length>0&&x.jsx("select",{value:y??"",onChange:P=>void m({to:"/$apiName/summary",params:{apiName:P.target.value}}),className:"rounded border border-black/10 bg-transparent px-2 py-0.5 text-[13px] font-mono text-neutral-700 focus:outline-none",children:l.map(P=>{const k=P.api_name,E=P.name??k;return x.jsx("option",{value:k,children:E},k)})}),p&&y&&x.jsxs("select",{value:p,onChange:P=>void m({to:`/${y}/${P.target.value}`}),className:"rounded border border-black/10 bg-transparent px-2 py-0.5 text-[13px] font-mono text-neutral-700 focus:outline-none",children:[x.jsx("option",{value:"summary",children:"Summary"}),x.jsx("option",{value:"sandbox",children:"Sandbox"})]}),x.jsx("div",{className:"flex-1"}),x.jsx("button",{onClick:o,className:`text-[14px] ${n?"text-neutral-700":"text-neutral-400"} hover:text-neutral-700`,"aria-label":"Toggle dev tools",children:x.jsx(vu,{icon:Rk})}),x.jsx("span",{className:`rounded px-2 py-0.5 text-[11px] font-semibold tracking-wide ${w}`,children:v}),x.jsx("span",{className:`rounded px-2 py-0.5 text-[11px] font-semibold tracking-wide ${_}`,children:S})]}),x.jsxs("div",{className:"flex flex-1",children:[x.jsx("div",{className:"flex-1 p-6",style:{backgroundImage:`
621
+ */var Rk={prefix:"fas",iconName:"terminal",icon:[512,512,[],"f120","M9.4 118.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l160 160c12.5 12.5 12.5 32.8 0 45.3l-160 160c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L146.7 256 9.4 118.6zM224 384l256 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-256 0c-17.7 0-32-14.3-32-32s14.3-32 32-32z"]},Ck={prefix:"fas",iconName:"spinner",icon:[512,512,[],"f110","M208 48a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zm0 416a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zM48 208a48 48 0 1 1 0 96 48 48 0 1 1 0-96zm368 48a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zM75 369.1A48 48 0 1 1 142.9 437 48 48 0 1 1 75 369.1zM75 75A48 48 0 1 1 142.9 142.9 48 48 0 1 1 75 75zM437 369.1A48 48 0 1 1 369.1 437 48 48 0 1 1 437 369.1z"]},kk={prefix:"fas",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M55.1 73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L147.2 256 9.9 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192.5 301.3 329.9 438.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.8 256 375.1 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192.5 210.7 55.1 73.4z"]},Tk={prefix:"fas",iconName:"rotate-right",icon:[512,512,["redo-alt","rotate-forward"],"f2f9","M488 192l-144 0c-9.7 0-18.5-5.8-22.2-14.8s-1.7-19.3 5.2-26.2l46.7-46.7c-75.3-58.6-184.3-53.3-253.5 15.9-75 75-75 196.5 0 271.5s196.5 75 271.5 0c8.2-8.2 15.5-16.9 21.9-26.1 10.1-14.5 30.1-18 44.6-7.9s18 30.1 7.9 44.6c-8.5 12.2-18.2 23.8-29.1 34.7-100 100-262.1 100-362 0S-25 175 75 75c94.3-94.3 243.7-99.6 344.3-16.2L471 7c6.9-6.9 17.2-8.9 26.2-5.2S512 14.3 512 24l0 144c0 13.3-10.7 24-24 24z"]},Ik={prefix:"fas",iconName:"lock",icon:[384,512,[128274],"f023","M128 96l0 64 128 0 0-64c0-35.3-28.7-64-64-64s-64 28.7-64 64zM64 160l0-64C64 25.3 121.3-32 192-32S320 25.3 320 96l0 64c35.3 0 64 28.7 64 64l0 224c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 224c0-35.3 28.7-64 64-64z"]},Ak={prefix:"fas",iconName:"bug",icon:[576,512,[],"f188","M192 96c0-53 43-96 96-96s96 43 96 96l0 3.6c0 15.7-12.7 28.4-28.4 28.4l-135.1 0c-15.7 0-28.4-12.7-28.4-28.4l0-3.6zm345.6 12.8c10.6 14.1 7.7 34.2-6.4 44.8l-97.8 73.3c5.3 8.9 9.3 18.7 11.8 29.1l98.8 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-96 0 0 32c0 2.6-.1 5.3-.2 7.9l83.4 62.5c14.1 10.6 17 30.7 6.4 44.8s-30.7 17-44.8 6.4l-63.1-47.3c-23.2 44.2-66.5 76.2-117.7 83.9L312 280c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 230.2c-51.2-7.7-94.5-39.7-117.7-83.9L83.2 473.6c-14.1 10.6-34.2 7.7-44.8-6.4s-7.7-34.2 6.4-44.8l83.4-62.5c-.1-2.6-.2-5.2-.2-7.9l0-32-96 0c-17.7 0-32-14.3-32-32s14.3-32 32-32l98.8 0c2.5-10.4 6.5-20.2 11.8-29.1L44.8 153.6c-14.1-10.6-17-30.7-6.4-44.8s30.7-17 44.8-6.4L192 184c12.3-5.1 25.8-8 40-8l112 0c14.2 0 27.7 2.8 40 8l108.8-81.6c14.1-10.6 34.2-7.7 44.8 6.4z"]};const yu={queryKey:["bundle"],queryFn:async()=>{const e=await fetch("/api/bundle");if(!e.ok)throw new Error("Failed to fetch bundle.json");return e.json()}},Nk=["go","fmo","staging","integration","test1"],H1=b.createContext({apiKey:"",userId:"",businessId:"",environment:"go"}),yh=()=>b.useContext(H1),Sh={go:"https://app.go.kizen.com/api",fmo:"https://app.fmo.kizen.com/api",staging:"https://staging.kizen.dev/api",integration:"https://integration.kizen.dev/api",test1:"https://test1.kizen.dev/api"};function W1(){const{apiKey:e,userId:t,businessId:n,environment:r}=yh(),o=Sh[r];return b.useCallback((s,i={})=>fetch(`/api/proxy${s}`,{...i,headers:{"x-proxy-target":o,"X-API-KEY":e,"X-USER-ID":t,"X-BUSINESS-ID":n,...i.headers}}),[o,e,t,n])}function Ok(e){const{apiKey:t,userId:n,businessId:r,environment:o}=e;return{queryKey:["bootstrap",o,t,n,r],enabled:!!(t&&n&&r),queryFn:async()=>{const i=await fetch("/api/proxy/auth/bootstrap",{headers:{"x-proxy-target":Sh[o],"X-API-KEY":t,"X-USER-ID":n,"X-BUSINESS-ID":r}});if(!i.ok)throw new Error(`Bootstrap failed: ${String(i.status)} ${i.statusText}`);return i.json()},retry:!1}}function Mk(){const e=M0(),[t,n]=b.useState([]),[r,o]=b.useState([]);return b.useEffect(()=>{const s=window.location.protocol==="https:"?"wss:":"ws:",i=new WebSocket(`${s}//${window.location.host}`);return i.addEventListener("message",a=>{let l;try{l=JSON.parse(a.data)}catch{return}l.type==="rebuild"?e.invalidateQueries({queryKey:["bundle"]}):l.type==="log"?n(u=>[...u,l.message]):o(u=>[...u,l.message])}),()=>{i.close()}},[e]),{buildLogs:t,proxyLogs:r}}const Da="w-full rounded bg-neutral-800 border border-neutral-700 px-2 py-1 text-[12px] font-mono text-neutral-200 focus:outline-none focus:border-neutral-500",$a="block text-[11px] font-semibold uppercase tracking-widest text-neutral-500 mb-1",ag="text-[11px] font-semibold uppercase tracking-widest text-neutral-500",lg=({logs:e,height:t})=>{const n=b.useRef(null);return b.useEffect(()=>{var r;(r=n.current)==null||r.scrollIntoView({behavior:"smooth"})},[e]),x.jsxs("div",{className:`${t} overflow-x-auto overflow-y-auto pb-4`,children:[e.length===0?x.jsx("p",{className:"px-4 text-[12px] text-neutral-600",children:"No output yet."}):e.map((r,o)=>x.jsx("div",{className:"whitespace-pre px-4 text-[12px] leading-5 text-neutral-500",children:r},o)),x.jsx("div",{ref:n})]})},Lk=({onClose:e,buildLogs:t,proxyLogs:n,credentials:r,onCredentialsChange:o})=>x.jsxs("aside",{className:"flex w-[26rem] shrink-0 flex-col border-l border-neutral-800 bg-neutral-900 text-neutral-100",children:[x.jsxs("div",{className:"flex items-center justify-between border-b border-neutral-800 px-4 py-3",children:[x.jsx("span",{className:"text-[12px] font-semibold uppercase tracking-widest text-neutral-400",children:"Dev Tools"}),x.jsx("button",{onClick:e,className:"text-neutral-500 hover:text-neutral-200","aria-label":"Close dev tools",children:x.jsx(ao,{icon:kk,size:"sm"})})]}),x.jsxs("div",{className:"flex flex-1 flex-col overflow-hidden",children:[x.jsxs("div",{className:"flex flex-col gap-3 border-b border-neutral-800 px-4 py-3",children:[x.jsxs("div",{children:[x.jsx("label",{className:$a,children:"Environment"}),x.jsx("select",{className:Da,value:r.environment,onChange:s=>{o({...r,environment:s.target.value})},children:Nk.map(s=>x.jsx("option",{value:s,children:s},s))})]}),x.jsxs("div",{children:[x.jsx("label",{className:$a,children:"API Key"}),x.jsx("input",{type:"password",className:Da,value:r.apiKey,onChange:s=>{o({...r,apiKey:s.target.value})},placeholder:"x-api-key",autoComplete:"off"})]}),x.jsxs("div",{children:[x.jsx("label",{className:$a,children:"User ID"}),x.jsx("input",{type:"text",className:Da,value:r.userId,onChange:s=>{o({...r,userId:s.target.value})},placeholder:"x-user-id",autoComplete:"off"})]}),x.jsxs("div",{children:[x.jsx("label",{className:$a,children:"Business ID"}),x.jsx("input",{type:"text",className:Da,value:r.businessId,onChange:s=>{o({...r,businessId:s.target.value})},placeholder:"x-business-id",autoComplete:"off"})]})]}),x.jsx("div",{className:"min-h-0 flex-1"}),x.jsxs("div",{className:"flex flex-col border-t border-neutral-800",children:[x.jsx("div",{className:"px-4 py-2",children:x.jsx("span",{className:ag,children:"Proxy Log"})}),x.jsx(lg,{logs:n,height:"h-48"})]}),x.jsxs("div",{className:"flex flex-col border-t border-neutral-800",children:[x.jsx("div",{className:"px-4 py-2",children:x.jsx("span",{className:ag,children:"Build Log"})}),x.jsx(lg,{logs:t,height:"h-48"})]})]})]}),V1=b.createContext(0),Q1=()=>b.useContext(V1),q1=b.createContext(void 0),jk=()=>b.useContext(q1),Fk=416,ug={apiKey:"",userId:"",businessId:"",environment:"go"},Dk=()=>{var T,I;const{buildLogs:e,proxyLogs:t}=Mk(),[n,r]=b.useState(()=>localStorage.getItem("devtools-sidebar-open")==="true"),o=()=>{r(P=>{const k=!P;return localStorage.setItem("devtools-sidebar-open",String(k)),k})},[s,i]=b.useState(()=>{try{return{...ug,...JSON.parse(localStorage.getItem("devtools-credentials")??"{}")}}catch{return ug}}),a=P=>{i(P),localStorage.setItem("devtools-credentials",JSON.stringify(P))},{data:l,isLoading:u,isError:f}=ko(yu),{data:c,isError:d,isLoading:h}=ko(Ok(s)),m=du(),{location:g}=lb(),y=(T=/^\/([^/]+)\/.+/.exec(g.pathname))==null?void 0:T[1],p=(I=/^\/[^/]+\/([^/]+)$/.exec(g.pathname))==null?void 0:I[1],v=u?"loading":f?"error":l?"loaded":"empty",S=h?"authenticating":d?"auth error":c?"authenticated":"no auth",w=u?"bg-neutral-100 text-neutral-400":f?"bg-red-100 text-red-700":l?"bg-green-100 text-green-700":"bg-yellow-100 text-yellow-700",_=h?"bg-neutral-100 text-neutral-400":d?"bg-red-100 text-red-700":c?"bg-green-100 text-green-700":"bg-yellow-100 text-yellow-700";return x.jsx(H1.Provider,{value:s,children:x.jsx(V1.Provider,{value:n?Fk:0,children:x.jsx(q1.Provider,{value:c,children:x.jsxs("div",{className:"flex min-h-screen flex-col font-mono",children:[x.jsxs("div",{className:"sticky top-0 z-10 flex items-center gap-3 border-b border-black/10 bg-white/85 px-5 py-3 backdrop-blur-sm",children:[x.jsx("span",{className:"text-[13px] font-bold tracking-tight text-neutral-900",children:"Kizen App Builder"}),l&&l.length>0&&x.jsx("select",{value:y??"",onChange:P=>void m({to:"/$apiName/summary",params:{apiName:P.target.value}}),className:"rounded border border-black/10 bg-transparent px-2 py-0.5 text-[13px] font-mono text-neutral-700 focus:outline-none",children:l.map(P=>{const k=P.api_name,E=P.name??k;return x.jsx("option",{value:k,children:E},k)})}),p&&y&&x.jsxs("select",{value:p,onChange:P=>void m({to:`/${y}/${P.target.value}`}),className:"rounded border border-black/10 bg-transparent px-2 py-0.5 text-[13px] font-mono text-neutral-700 focus:outline-none",children:[x.jsx("option",{value:"summary",children:"Summary"}),x.jsx("option",{value:"sandbox",children:"Sandbox"})]}),x.jsx("div",{className:"flex-1"}),x.jsx("button",{onClick:()=>{var P;(P=window.electronAPI)==null||P.openDevTools()},className:"text-[14px] text-neutral-400 hover:text-neutral-700","aria-label":"Open developer tools",children:x.jsx(ao,{icon:Ak})}),x.jsx("button",{onClick:()=>{window.location.reload()},className:"text-[14px] text-neutral-400 hover:text-neutral-700","aria-label":"Refresh page",children:x.jsx(ao,{icon:Tk})}),x.jsx("button",{onClick:()=>{window.open("https://v2.integration.kizen.dev","_blank","noopener")},className:`text-[14px] ${n?"text-neutral-700":"text-neutral-400"} hover:text-neutral-700`,"aria-label":"Toggle dev tools",children:x.jsx(ao,{icon:Ik})}),x.jsx("button",{onClick:o,className:`text-[14px] ${n?"text-neutral-700":"text-neutral-400"} hover:text-neutral-700`,"aria-label":"Toggle dev tools",children:x.jsx(ao,{icon:Rk})}),x.jsx("span",{className:`rounded px-2 py-0.5 text-[11px] font-semibold tracking-wide ${w}`,children:v}),x.jsx("span",{className:`rounded px-2 py-0.5 text-[11px] font-semibold tracking-wide ${_}`,children:S})]}),x.jsxs("div",{className:"flex flex-1",children:[x.jsx("div",{className:"flex-1 p-6",style:{backgroundImage:`
622
622
  linear-gradient(rgba(0,0,0,0.055) 1px, transparent 1px),
623
623
  linear-gradient(90deg, rgba(0,0,0,0.055) 1px, transparent 1px)
624
- `,backgroundSize:"24px 24px"},children:x.jsx(_0,{})}),n&&x.jsx(Nk,{onClose:o,buildLogs:e,proxyLogs:t,credentials:s,onCredentialsChange:a})]})]})})})})},ln=({children:e,className:t=""})=>x.jsx("div",{className:`rounded-xl bg-white p-5 shadow-sm ${t}`,children:e}),jk=()=>{const{data:e,isLoading:t,isError:n}=Co(yu),r=fu();return b.useEffect(()=>{var o;e&&e.length>0&&r({to:"/$apiName/summary",params:{apiName:(o=e[0])==null?void 0:o.api_name}})},[e,r]),t?x.jsx(ln,{children:x.jsx("p",{className:"m-0 text-[13px] text-neutral-400",children:"Fetching bundle.json…"})}):n?x.jsx(ln,{children:x.jsx("p",{className:"m-0 text-[13px] text-red-700",children:"Could not load bundle.json. Make sure the dev server is running from a plugin directory."})}):!e||e.length===0?x.jsx(ln,{children:x.jsxs("p",{className:"m-0 text-[13px] text-yellow-700",children:["bundle.json is empty. Run"," ",x.jsx("code",{className:"rounded bg-neutral-100 px-1 py-0.5",children:"appbuilder build"})," to generate it."]})}):null},Fk=()=>{const{apiName:e}=cu({strict:!1}),{data:t,isLoading:n,isError:r}=Co(yu);if(n)return x.jsx(ln,{children:x.jsx("p",{className:"m-0 text-[13px] text-neutral-400",children:"Fetching bundle.json…"})});if(r)return x.jsx(ln,{children:x.jsx("p",{className:"m-0 text-[13px] text-red-700",children:"Could not load bundle.json."})});const o=t==null?void 0:t.find(g=>g.api_name===e);if(!o)return x.jsx(ln,{children:x.jsxs("p",{className:"m-0 text-[13px] text-neutral-500",children:["No app found with api_name"," ",x.jsx("code",{className:"rounded bg-neutral-100 px-1 py-0.5",children:e}),"."]})});const s=[["name",o.name],["api_name",o.api_name],["version",o.version],["description",o.description],["engine",o.engine],["published",o.published?"yes":"no"]];console.log("Your App Bundle:"),console.log(o);const i=o.artifacts.floating_frames,a=o.artifacts.data_adornments,l=o.artifacts.routable_pages,u=o.artifacts.toolbar_items,f=o.artifacts.js_action_templates,c=o.artifacts.route_scripts,d=o.artifacts.object_settings_menu_items,h=o.artifacts.automation_action_configs,m=o.artifacts.calendar_sources;return x.jsxs("div",{className:"space-y-4 text-[13px]",children:[x.jsx(ln,{children:x.jsx("div",{className:"space-y-1",children:s.map(([g,y])=>x.jsxs("div",{className:"flex gap-3",children:[x.jsx("span",{className:"w-28 shrink-0 text-neutral-400",children:g}),x.jsx("span",{className:"text-neutral-900",children:y})]},g))})}),x.jsxs(ln,{className:"space-y-1",children:[x.jsx("div",{children:x.jsx("strong",{children:"Plugin Assets"})}),x.jsxs("div",{children:["Floating Frames (",i.length,"):"]}),i.map((g,y)=>x.jsx("div",{className:"flex gap-3 pl-4",children:x.jsxs("span",{className:"text-neutral-900",children:[g.name," (",g.api_name,")"]})},y)),x.jsxs("div",{children:["Data Adornments (",a.length,"):"]}),a.map((g,y)=>x.jsx("div",{className:"flex gap-3 pl-4",children:x.jsx("span",{className:"text-neutral-900",children:g.field_type})},y)),x.jsxs("div",{children:["Routable Pages (",l.length,"):"]}),l.map((g,y)=>x.jsx("div",{className:"flex gap-3 pl-4",children:x.jsxs("span",{className:"text-neutral-900",children:[g.name," (",g.api_name,")"]})},y)),x.jsxs("div",{children:["Toolbar Items (",u.length,"):"]}),u.map((g,y)=>x.jsx("div",{className:"flex gap-3 pl-4",children:x.jsxs("span",{className:"text-neutral-900",children:[g.label," (",g.api_name,")"]})},y)),x.jsxs("div",{children:["JS Action Templates (",f.length,"):"]}),f.map((g,y)=>x.jsx("div",{className:"flex gap-3 pl-4",children:x.jsxs("span",{className:"text-neutral-900",children:[g.name," (",g.api_name,")"]})},y)),x.jsxs("div",{children:["Route Scripts (",c.length,"):"]}),c.map((g,y)=>x.jsx("div",{className:"flex gap-3 pl-4",children:x.jsx("span",{className:"text-neutral-900",children:g.api_name})},y)),x.jsxs("div",{children:["Object Settings Menu Items (",d.length,"):"]}),d.map((g,y)=>x.jsx("div",{className:"flex gap-3 pl-4",children:x.jsx("span",{className:"text-neutral-900",children:g.api_name})},y)),x.jsxs("div",{children:["Automation Action Configs (",h.length,"):"]}),h.map((g,y)=>x.jsx("div",{className:"flex gap-3 pl-4",children:x.jsxs("span",{className:"text-neutral-900",children:[g.name," (",g.action_step_api_name,")"]})},y)),x.jsxs("div",{children:["Calendar Sources (",m.length,"):"]}),m.map((g,y)=>x.jsx("div",{className:"flex gap-3 pl-4",children:x.jsx("span",{className:"text-neutral-900",children:g.api_name})},y))]})]})};var Se={QUERY_REQUEST:"query:request",UI_OUTPUT:"outputui",IFRAME_OUTPUT:"iframeoutput",POSTFORMDATA_REQUEST:"postformdata:request",SETSTATE:"setstate",DONE:"done",RUN:"run",OPEN_WINDOW:"openwindow",COMMUNICATE:"communicate",HIDE:"hide",SHOW:"show",EXPAND:"expand",COLLAPSE:"collapse",HIDE_HEADER:"hideheader",SHOW_HEADER:"showheader",OPEN_CREATE_RECORD_MODAL_REQUEST:"opencreaterecordmodal:request",OPEN_CREATE_RELATED_RECORD_MODAL_REQUEST:"opencreaterelatedrecordmodal:request",SHOW_TOAST:"showtoast",CLEAR_TOASTS:"cleartoasts",REFRESH_TIMELINE:"refreshtimeline",REFRESH_ENTITY:"refreshentity",UPLOADFILE_REQUEST:"uploadfile:request",UPDATE_SESSION_DATA:"updatesessiondata",INSTALL_THIRD_PARTY_SCRIPT_REQUEST:"installthirdpartyscript:request",PROMPT_REQUEST:"prompt:request",DYNAMIC_PROMPT_REQUEST:"dynamicprompt:request",RELEASE_BLOCKING_SCRIPT:"releaseblockingscript",AUTHORIZE:"authorize",COPY_TO_CLIPBOARD:"copytoclipboard"},pt={QUERY_RESPONSE:"query:response",POSTFORMDATA_RESPONSE:"postformdata:response",ERROR:"error",UPLOADFILE_RESPONSE:"uploadfile:response",UPLOADFILE_PROGRESS:"uploadfile:progress",INSTALL_THIRD_PARTY_SCRIPT_RESPONSE:"installthirdpartyscript:response",PROMPT_RESPONSE:"prompt:response",REFRESH_ENTITY_RESPONSE:"refreshentity:response",CREATE_RECORD_RESPONSE:"createrecord:response",CREATE_RELATED_RECORD_RESPONSE:"createrelatedrecord:response"},Kf={RUN_FRAME_SCRIPT:"runframescript",SEND_MESSAGE_TO_FRAME:"sendmessagetoframe",CALL_THIRD_PARTY_SCRIPT:"callthirdpartyscript"},cg="integration:route-change",Dk="kizen-route-change",GS="kzn-integration-frame",$k=/https:\/\/.*widget\.freshworks\.com\/.*\.js/,Uk=/https:\/\/widget\.intercom\.io\/widget\/[a-z0-9]+/,Mt={FRESHWORKS:"freshworks",INTERCOM:"intercom"},zk=e=>{if($k.test(e))return Mt.FRESHWORKS;if(Uk.test(e))return Mt.INTERCOM},Rr={[Mt.FRESHWORKS]:"FreshworksWidget",[Mt.INTERCOM]:"Intercom"},Bk={[Mt.FRESHWORKS]:e=>{window.fwSettings={widget_id:e.widgetId},function(...t){if(typeof window[Rr[Mt.FRESHWORKS]]!="function"){const n=function(){n.q.push(...t)};n.__kizen_pending=!0,n.q=[],window[Rr[Mt.FRESHWORKS]]=n}}()},[Mt.INTERCOM]:()=>{(function(){if(typeof window[Rr[Mt.INTERCOM]]!="function"){const e=window,t=function(){t.c(arguments)};t.q=[],t.c=function(n){t.q.push(n)},t.__kizen_pending=!0,e[Rr[Mt.INTERCOM]]=t}})()}},fg={[Mt.FRESHWORKS]:()=>{var e;return((e=window[Rr[Mt.FRESHWORKS]])==null?void 0:e.__kizen_pending)!==!0},[Mt.INTERCOM]:()=>{var e;return((e=window[Rr[Mt.INTERCOM]])==null?void 0:e.__kizen_pending)!==!0}},Hk=()=>({host:window.location.host,hash:window.location.hash,href:window.location.href,origin:window.location.origin,pathname:window.location.pathname,search:window.location.search,port:window.location.port,protocol:window.location.protocol}),Wk=()=>{let e=new Date().getTime();return typeof performance<"u"&&typeof performance.now=="function"&&(e+=performance.now()),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{const n=(e+Math.random()*16)%16|0;return e=Math.floor(e/16),(t==="x"?n:n&3|8).toString(16)})};Object.getPrototypeOf(async function(){}).constructor;var KS=e=>`${(e==null?void 0:e.plugin_api_name)??""}-${(e==null?void 0:e.id)??""}-${(e==null?void 0:e.api_name)??""}-${(e==null?void 0:e.script_id)??""}`,Vk=Object.create,YS=Object.defineProperty,Qk=Object.getOwnPropertyDescriptor,XS=Object.getOwnPropertyNames,qk=Object.getPrototypeOf,Gk=Object.prototype.hasOwnProperty,ne=(e,t)=>function(){return t||(0,e[XS(e)[0]])((t={exports:{}}).exports,t),t.exports},Kk=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of XS(t))!Gk.call(e,o)&&o!==n&&YS(e,o,{get:()=>t[o],enumerable:!(r=Qk(t,o))||r.enumerable});return e},Yk=(e,t,n)=>(n=e!=null?Vk(qk(e)):{},Kk(YS(n,"default",{value:e,enumerable:!0}),e));/*! @license DOMPurify 3.3.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.3/LICENSE */const{entries:JS,setPrototypeOf:dg,isFrozen:Xk,getPrototypeOf:Jk,getOwnPropertyDescriptor:Zk}=Object;let{freeze:Pt,seal:hn,create:il}=Object,{apply:Yf,construct:Xf}=typeof Reflect<"u"&&Reflect;Pt||(Pt=function(t){return t});hn||(hn=function(t){return t});Yf||(Yf=function(t,n){for(var r=arguments.length,o=new Array(r>2?r-2:0),s=2;s<r;s++)o[s-2]=arguments[s];return t.apply(n,o)});Xf||(Xf=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return new t(...r)});const $a=Rt(Array.prototype.forEach),eT=Rt(Array.prototype.lastIndexOf),hg=Rt(Array.prototype.pop),ti=Rt(Array.prototype.push),tT=Rt(Array.prototype.splice),al=Rt(String.prototype.toLowerCase),mc=Rt(String.prototype.toString),gc=Rt(String.prototype.match),ni=Rt(String.prototype.replace),nT=Rt(String.prototype.indexOf),rT=Rt(String.prototype.trim),Wt=Rt(Object.prototype.hasOwnProperty),xt=Rt(RegExp.prototype.test),ri=oT(TypeError);function Rt(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return Yf(e,t,r)}}function oT(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Xf(e,n)}}function ie(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:al;dg&&dg(e,null);let r=t.length;for(;r--;){let o=t[r];if(typeof o=="string"){const s=n(o);s!==o&&(Xk(t)||(t[r]=s),o=s)}e[o]=!0}return e}function sT(e){for(let t=0;t<e.length;t++)Wt(e,t)||(e[t]=null);return e}function Pn(e){const t=il(null);for(const[n,r]of JS(e))Wt(e,n)&&(Array.isArray(r)?t[n]=sT(r):r&&typeof r=="object"&&r.constructor===Object?t[n]=Pn(r):t[n]=r);return t}function oi(e,t){for(;e!==null;){const r=Zk(e,t);if(r){if(r.get)return Rt(r.get);if(typeof r.value=="function")return Rt(r.value)}e=Jk(e)}function n(){return null}return n}const pg=Pt(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),vc=Pt(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),yc=Pt(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),iT=Pt(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Sc=Pt(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),aT=Pt(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),mg=Pt(["#text"]),gg=Pt(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),xc=Pt(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),vg=Pt(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Ua=Pt(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),lT=hn(/\{\{[\w\W]*|[\w\W]*\}\}/gm),uT=hn(/<%[\w\W]*|[\w\W]*%>/gm),cT=hn(/\$\{[\w\W]*/gm),fT=hn(/^data-[\-\w.\u00B7-\uFFFF]+$/),dT=hn(/^aria-[\-\w]+$/),ZS=hn(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),hT=hn(/^(?:\w+script|data):/i),pT=hn(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ex=hn(/^html$/i),mT=hn(/^[a-z][.\w]*(-[.\w]+)+$/i);var yg=Object.freeze({__proto__:null,ARIA_ATTR:dT,ATTR_WHITESPACE:pT,CUSTOM_ELEMENT:mT,DATA_ATTR:fT,DOCTYPE_NAME:ex,ERB_EXPR:uT,IS_ALLOWED_URI:ZS,IS_SCRIPT_OR_DATA:hT,MUSTACHE_EXPR:lT,TMPLIT_EXPR:cT});const si={element:1,text:3,progressingInstruction:7,comment:8,document:9},gT=function(){return typeof window>"u"?null:window},vT=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;const o="data-tt-policy-suffix";n&&n.hasAttribute(o)&&(r=n.getAttribute(o));const s="dompurify"+(r?"#"+r:"");try{return t.createPolicy(s,{createHTML(i){return i},createScriptURL(i){return i}})}catch{return console.warn("TrustedTypes policy "+s+" could not be created."),null}},Sg=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function tx(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:gT();const t=X=>tx(X);if(t.version="3.3.3",t.removed=[],!e||!e.document||e.document.nodeType!==si.document||!e.Element)return t.isSupported=!1,t;let{document:n}=e;const r=n,o=r.currentScript,{DocumentFragment:s,HTMLTemplateElement:i,Node:a,Element:l,NodeFilter:u,NamedNodeMap:f=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:c,DOMParser:d,trustedTypes:h}=e,m=l.prototype,g=oi(m,"cloneNode"),y=oi(m,"remove"),p=oi(m,"nextSibling"),v=oi(m,"childNodes"),S=oi(m,"parentNode");if(typeof i=="function"){const X=n.createElement("template");X.content&&X.content.ownerDocument&&(n=X.content.ownerDocument)}let w,_="";const{implementation:T,createNodeIterator:I,createDocumentFragment:P,getElementsByTagName:k}=n,{importNode:E}=r;let A=Sg();t.isSupported=typeof JS=="function"&&typeof S=="function"&&T&&T.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:L,ERB_EXPR:z,TMPLIT_EXPR:U,DATA_ATTR:B,ARIA_ATTR:V,IS_SCRIPT_OR_DATA:W,ATTR_WHITESPACE:N,CUSTOM_ELEMENT:j}=yg;let{IS_ALLOWED_URI:O}=yg,M=null;const Q=ie({},[...pg,...vc,...yc,...Sc,...mg]);let te=null;const oe=ie({},[...gg,...xc,...vg,...Ua]);let re=Object.seal(il(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),pe=null,_e=null;const Ue=Object.seal(il(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let zt=!0,en=!0,je=!1,ce=!0,me=!1,ge=!0,we=!1,Qe=!1,He=!1,ye=!1,qe=!1,Bt=!1,Ye=!0,yt=!1;const et="user-content-";let ae=!0,Ee=!1,ze={},Tt=null;const $s=ie({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Us=null;const zs=ie({},["audio","video","img","source","image","track"]);let Oo=null;const fa=ie({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),or="http://www.w3.org/1998/Math/MathML",Ln="http://www.w3.org/2000/svg",tn="http://www.w3.org/1999/xhtml";let jn=tn,Mo=!1,Lo=null;const da=ie({},[or,Ln,tn],mc);let qr=ie({},["mi","mo","mn","ms","mtext"]),Gr=ie({},["annotation-xml"]);const ha=ie({},["title","style","font","a","script"]);let K=null;const H=["application/xhtml+xml","text/html"],be="text/html";let le=null,Re=null;const tt=n.createElement("form"),St=function(R){return R instanceof RegExp||R instanceof Function},ut=function(){let R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Re&&Re===R)){if((!R||typeof R!="object")&&(R={}),R=Pn(R),K=H.indexOf(R.PARSER_MEDIA_TYPE)===-1?be:R.PARSER_MEDIA_TYPE,le=K==="application/xhtml+xml"?mc:al,M=Wt(R,"ALLOWED_TAGS")?ie({},R.ALLOWED_TAGS,le):Q,te=Wt(R,"ALLOWED_ATTR")?ie({},R.ALLOWED_ATTR,le):oe,Lo=Wt(R,"ALLOWED_NAMESPACES")?ie({},R.ALLOWED_NAMESPACES,mc):da,Oo=Wt(R,"ADD_URI_SAFE_ATTR")?ie(Pn(fa),R.ADD_URI_SAFE_ATTR,le):fa,Us=Wt(R,"ADD_DATA_URI_TAGS")?ie(Pn(zs),R.ADD_DATA_URI_TAGS,le):zs,Tt=Wt(R,"FORBID_CONTENTS")?ie({},R.FORBID_CONTENTS,le):$s,pe=Wt(R,"FORBID_TAGS")?ie({},R.FORBID_TAGS,le):Pn({}),_e=Wt(R,"FORBID_ATTR")?ie({},R.FORBID_ATTR,le):Pn({}),ze=Wt(R,"USE_PROFILES")?R.USE_PROFILES:!1,zt=R.ALLOW_ARIA_ATTR!==!1,en=R.ALLOW_DATA_ATTR!==!1,je=R.ALLOW_UNKNOWN_PROTOCOLS||!1,ce=R.ALLOW_SELF_CLOSE_IN_ATTR!==!1,me=R.SAFE_FOR_TEMPLATES||!1,ge=R.SAFE_FOR_XML!==!1,we=R.WHOLE_DOCUMENT||!1,ye=R.RETURN_DOM||!1,qe=R.RETURN_DOM_FRAGMENT||!1,Bt=R.RETURN_TRUSTED_TYPE||!1,He=R.FORCE_BODY||!1,Ye=R.SANITIZE_DOM!==!1,yt=R.SANITIZE_NAMED_PROPS||!1,ae=R.KEEP_CONTENT!==!1,Ee=R.IN_PLACE||!1,O=R.ALLOWED_URI_REGEXP||ZS,jn=R.NAMESPACE||tn,qr=R.MATHML_TEXT_INTEGRATION_POINTS||qr,Gr=R.HTML_INTEGRATION_POINTS||Gr,re=R.CUSTOM_ELEMENT_HANDLING||{},R.CUSTOM_ELEMENT_HANDLING&&St(R.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(re.tagNameCheck=R.CUSTOM_ELEMENT_HANDLING.tagNameCheck),R.CUSTOM_ELEMENT_HANDLING&&St(R.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(re.attributeNameCheck=R.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),R.CUSTOM_ELEMENT_HANDLING&&typeof R.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(re.allowCustomizedBuiltInElements=R.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),me&&(en=!1),qe&&(ye=!0),ze&&(M=ie({},mg),te=il(null),ze.html===!0&&(ie(M,pg),ie(te,gg)),ze.svg===!0&&(ie(M,vc),ie(te,xc),ie(te,Ua)),ze.svgFilters===!0&&(ie(M,yc),ie(te,xc),ie(te,Ua)),ze.mathMl===!0&&(ie(M,Sc),ie(te,vg),ie(te,Ua))),Wt(R,"ADD_TAGS")||(Ue.tagCheck=null),Wt(R,"ADD_ATTR")||(Ue.attributeCheck=null),R.ADD_TAGS&&(typeof R.ADD_TAGS=="function"?Ue.tagCheck=R.ADD_TAGS:(M===Q&&(M=Pn(M)),ie(M,R.ADD_TAGS,le))),R.ADD_ATTR&&(typeof R.ADD_ATTR=="function"?Ue.attributeCheck=R.ADD_ATTR:(te===oe&&(te=Pn(te)),ie(te,R.ADD_ATTR,le))),R.ADD_URI_SAFE_ATTR&&ie(Oo,R.ADD_URI_SAFE_ATTR,le),R.FORBID_CONTENTS&&(Tt===$s&&(Tt=Pn(Tt)),ie(Tt,R.FORBID_CONTENTS,le)),R.ADD_FORBID_CONTENTS&&(Tt===$s&&(Tt=Pn(Tt)),ie(Tt,R.ADD_FORBID_CONTENTS,le)),ae&&(M["#text"]=!0),we&&ie(M,["html","head","body"]),M.table&&(ie(M,["tbody"]),delete pe.tbody),R.TRUSTED_TYPES_POLICY){if(typeof R.TRUSTED_TYPES_POLICY.createHTML!="function")throw ri('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof R.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw ri('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');w=R.TRUSTED_TYPES_POLICY,_=w.createHTML("")}else w===void 0&&(w=vT(h,o)),w!==null&&typeof _=="string"&&(_=w.createHTML(""));Pt&&Pt(R),Re=R}},nn=ie({},[...vc,...yc,...iT]),sr=ie({},[...Sc,...aT]),Kr=function(R){let D=S(R);(!D||!D.tagName)&&(D={namespaceURI:jn,tagName:"template"});const Y=al(R.tagName),Ie=al(D.tagName);return Lo[R.namespaceURI]?R.namespaceURI===Ln?D.namespaceURI===tn?Y==="svg":D.namespaceURI===or?Y==="svg"&&(Ie==="annotation-xml"||qr[Ie]):!!nn[Y]:R.namespaceURI===or?D.namespaceURI===tn?Y==="math":D.namespaceURI===Ln?Y==="math"&&Gr[Ie]:!!sr[Y]:R.namespaceURI===tn?D.namespaceURI===Ln&&!Gr[Ie]||D.namespaceURI===or&&!qr[Ie]?!1:!sr[Y]&&(ha[Y]||!nn[Y]):!!(K==="application/xhtml+xml"&&Lo[R.namespaceURI]):!1},ct=function(R){ti(t.removed,{element:R});try{S(R).removeChild(R)}catch{y(R)}},Fe=function(R,D){try{ti(t.removed,{attribute:D.getAttributeNode(R),from:D})}catch{ti(t.removed,{attribute:null,from:D})}if(D.removeAttribute(R),R==="is")if(ye||qe)try{ct(D)}catch{}else try{D.setAttribute(R,"")}catch{}},nt=function(R){let D=null,Y=null;if(He)R="<remove></remove>"+R;else{const We=gc(R,/^[\r\n\t ]+/);Y=We&&We[0]}K==="application/xhtml+xml"&&jn===tn&&(R='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+R+"</body></html>");const Ie=w?w.createHTML(R):R;if(jn===tn)try{D=new d().parseFromString(Ie,K)}catch{}if(!D||!D.documentElement){D=T.createDocument(jn,"template",null);try{D.documentElement.innerHTML=Mo?_:Ie}catch{}}const ft=D.body||D.documentElement;return R&&Y&&ft.insertBefore(n.createTextNode(Y),ft.childNodes[0]||null),jn===tn?k.call(D,we?"html":"body")[0]:we?D.documentElement:ft},ir=function(R){return I.call(R.ownerDocument||R,R,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Ht=function(R){return R instanceof c&&(typeof R.nodeName!="string"||typeof R.textContent!="string"||typeof R.removeChild!="function"||!(R.attributes instanceof f)||typeof R.removeAttribute!="function"||typeof R.setAttribute!="function"||typeof R.namespaceURI!="string"||typeof R.insertBefore!="function"||typeof R.hasChildNodes!="function")},Nh=function(R){return typeof a=="function"&&R instanceof a};function Fn(X,R,D){$a(X,Y=>{Y.call(t,R,D,Re)})}const Oh=function(R){let D=null;if(Fn(A.beforeSanitizeElements,R,null),Ht(R))return ct(R),!0;const Y=le(R.nodeName);if(Fn(A.uponSanitizeElement,R,{tagName:Y,allowedTags:M}),ge&&R.hasChildNodes()&&!Nh(R.firstElementChild)&&xt(/<[/\w!]/g,R.innerHTML)&&xt(/<[/\w!]/g,R.textContent)||R.nodeType===si.progressingInstruction||ge&&R.nodeType===si.comment&&xt(/<[/\w]/g,R.data))return ct(R),!0;if(!(Ue.tagCheck instanceof Function&&Ue.tagCheck(Y))&&(!M[Y]||pe[Y])){if(!pe[Y]&&Lh(Y)&&(re.tagNameCheck instanceof RegExp&&xt(re.tagNameCheck,Y)||re.tagNameCheck instanceof Function&&re.tagNameCheck(Y)))return!1;if(ae&&!Tt[Y]){const Ie=S(R)||R.parentNode,ft=v(R)||R.childNodes;if(ft&&Ie){const We=ft.length;for(let It=We-1;It>=0;--It){const Dn=g(ft[It],!0);Dn.__removalCount=(R.__removalCount||0)+1,Ie.insertBefore(Dn,p(R))}}}return ct(R),!0}return R instanceof l&&!Kr(R)||(Y==="noscript"||Y==="noembed"||Y==="noframes")&&xt(/<\/no(script|embed|frames)/i,R.innerHTML)?(ct(R),!0):(me&&R.nodeType===si.text&&(D=R.textContent,$a([L,z,U],Ie=>{D=ni(D,Ie," ")}),R.textContent!==D&&(ti(t.removed,{element:R.cloneNode()}),R.textContent=D)),Fn(A.afterSanitizeElements,R,null),!1)},Mh=function(R,D,Y){if(_e[D]||Ye&&(D==="id"||D==="name")&&(Y in n||Y in tt))return!1;if(!(en&&!_e[D]&&xt(B,D))){if(!(zt&&xt(V,D))){if(!(Ue.attributeCheck instanceof Function&&Ue.attributeCheck(D,R))){if(!te[D]||_e[D]){if(!(Lh(R)&&(re.tagNameCheck instanceof RegExp&&xt(re.tagNameCheck,R)||re.tagNameCheck instanceof Function&&re.tagNameCheck(R))&&(re.attributeNameCheck instanceof RegExp&&xt(re.attributeNameCheck,D)||re.attributeNameCheck instanceof Function&&re.attributeNameCheck(D,R))||D==="is"&&re.allowCustomizedBuiltInElements&&(re.tagNameCheck instanceof RegExp&&xt(re.tagNameCheck,Y)||re.tagNameCheck instanceof Function&&re.tagNameCheck(Y))))return!1}else if(!Oo[D]){if(!xt(O,ni(Y,N,""))){if(!((D==="src"||D==="xlink:href"||D==="href")&&R!=="script"&&nT(Y,"data:")===0&&Us[R])){if(!(je&&!xt(W,ni(Y,N,"")))){if(Y)return!1}}}}}}}return!0},Lh=function(R){return R!=="annotation-xml"&&gc(R,j)},jh=function(R){Fn(A.beforeSanitizeAttributes,R,null);const{attributes:D}=R;if(!D||Ht(R))return;const Y={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:te,forceKeepAttr:void 0};let Ie=D.length;for(;Ie--;){const ft=D[Ie],{name:We,namespaceURI:It,value:Dn}=ft,jo=le(We),bu=Dn;let rt=We==="value"?bu:rT(bu);if(Y.attrName=jo,Y.attrValue=rt,Y.keepAttr=!0,Y.forceKeepAttr=void 0,Fn(A.uponSanitizeAttribute,R,Y),rt=Y.attrValue,yt&&(jo==="id"||jo==="name")&&(Fe(We,R),rt=et+rt),ge&&xt(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,rt)){Fe(We,R);continue}if(jo==="attributename"&&gc(rt,"href")){Fe(We,R);continue}if(Y.forceKeepAttr)continue;if(!Y.keepAttr){Fe(We,R);continue}if(!ce&&xt(/\/>/i,rt)){Fe(We,R);continue}me&&$a([L,z,U],Dh=>{rt=ni(rt,Dh," ")});const Fh=le(R.nodeName);if(!Mh(Fh,jo,rt)){Fe(We,R);continue}if(w&&typeof h=="object"&&typeof h.getAttributeType=="function"&&!It)switch(h.getAttributeType(Fh,jo)){case"TrustedHTML":{rt=w.createHTML(rt);break}case"TrustedScriptURL":{rt=w.createScriptURL(rt);break}}if(rt!==bu)try{It?R.setAttributeNS(It,We,rt):R.setAttribute(We,rt),Ht(R)?ct(R):hg(t.removed)}catch{Fe(We,R)}}Fn(A.afterSanitizeAttributes,R,null)},Cx=function X(R){let D=null;const Y=ir(R);for(Fn(A.beforeSanitizeShadowDOM,R,null);D=Y.nextNode();)Fn(A.uponSanitizeShadowNode,D,null),Oh(D),jh(D),D.content instanceof s&&X(D.content);Fn(A.afterSanitizeShadowDOM,R,null)};return t.sanitize=function(X){let R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},D=null,Y=null,Ie=null,ft=null;if(Mo=!X,Mo&&(X="<!-->"),typeof X!="string"&&!Nh(X))if(typeof X.toString=="function"){if(X=X.toString(),typeof X!="string")throw ri("dirty is not a string, aborting")}else throw ri("toString is not a function");if(!t.isSupported)return X;if(Qe||ut(R),t.removed=[],typeof X=="string"&&(Ee=!1),Ee){if(X.nodeName){const Dn=le(X.nodeName);if(!M[Dn]||pe[Dn])throw ri("root node is forbidden and cannot be sanitized in-place")}}else if(X instanceof a)D=nt("<!---->"),Y=D.ownerDocument.importNode(X,!0),Y.nodeType===si.element&&Y.nodeName==="BODY"||Y.nodeName==="HTML"?D=Y:D.appendChild(Y);else{if(!ye&&!me&&!we&&X.indexOf("<")===-1)return w&&Bt?w.createHTML(X):X;if(D=nt(X),!D)return ye?null:Bt?_:""}D&&He&&ct(D.firstChild);const We=ir(Ee?X:D);for(;Ie=We.nextNode();)Oh(Ie),jh(Ie),Ie.content instanceof s&&Cx(Ie.content);if(Ee)return X;if(ye){if(qe)for(ft=P.call(D.ownerDocument);D.firstChild;)ft.appendChild(D.firstChild);else ft=D;return(te.shadowroot||te.shadowrootmode)&&(ft=E.call(r,ft,!0)),ft}let It=we?D.outerHTML:D.innerHTML;return we&&M["!doctype"]&&D.ownerDocument&&D.ownerDocument.doctype&&D.ownerDocument.doctype.name&&xt(ex,D.ownerDocument.doctype.name)&&(It="<!DOCTYPE "+D.ownerDocument.doctype.name+`>
625
- `+It),me&&$a([L,z,U],Dn=>{It=ni(It,Dn," ")}),w&&Bt?w.createHTML(It):It},t.setConfig=function(){let X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ut(X),Qe=!0},t.clearConfig=function(){Re=null,Qe=!1},t.isValidAttribute=function(X,R,D){Re||ut({});const Y=le(X),Ie=le(R);return Mh(Y,Ie,D)},t.addHook=function(X,R){typeof R=="function"&&ti(A[X],R)},t.removeHook=function(X,R){if(R!==void 0){const D=eT(A[X],R);return D===-1?void 0:tT(A[X],D,1)[0]}return hg(A[X])},t.removeHooks=function(X){A[X]=[]},t.removeAllHooks=function(){A=Sg()},t}var nx=tx(),yT=ne({"node_modules/.pnpm/jsonify@0.0.1/node_modules/jsonify/lib/parse.js"(e,t){var n,r,o={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:`
626
- `,r:"\r",t:" "},s;function i(g){throw{name:"SyntaxError",message:g,at:n,text:s}}function a(g){return g&&g!==r&&i("Expected '"+g+"' instead of '"+r+"'"),r=s.charAt(n),n+=1,r}function l(){var g,y="";for(r==="-"&&(y="-",a("-"));r>="0"&&r<="9";)y+=r,a();if(r===".")for(y+=".";a()&&r>="0"&&r<="9";)y+=r;if(r==="e"||r==="E")for(y+=r,a(),(r==="-"||r==="+")&&(y+=r,a());r>="0"&&r<="9";)y+=r,a();return g=Number(y),isFinite(g)||i("Bad number"),g}function u(){var g,y,p="",v;if(r==='"')for(;a();){if(r==='"')return a(),p;if(r==="\\")if(a(),r==="u"){for(v=0,y=0;y<4&&(g=parseInt(a(),16),!!isFinite(g));y+=1)v=v*16+g;p+=String.fromCharCode(v)}else if(typeof o[r]=="string")p+=o[r];else break;else p+=r}i("Bad string")}function f(){for(;r&&r<=" ";)a()}function c(){switch(r){case"t":return a("t"),a("r"),a("u"),a("e"),!0;case"f":return a("f"),a("a"),a("l"),a("s"),a("e"),!1;case"n":return a("n"),a("u"),a("l"),a("l"),null;default:i("Unexpected '"+r+"'")}}function d(){var g=[];if(r==="["){if(a("["),f(),r==="]")return a("]"),g;for(;r;){if(g.push(m()),f(),r==="]")return a("]"),g;a(","),f()}}i("Bad array")}function h(){var g,y={};if(r==="{"){if(a("{"),f(),r==="}")return a("}"),y;for(;r;){if(g=u(),f(),a(":"),Object.prototype.hasOwnProperty.call(y,g)&&i('Duplicate key "'+g+'"'),y[g]=m(),f(),r==="}")return a("}"),y;a(","),f()}}i("Bad object")}function m(){switch(f(),r){case"{":return h();case"[":return d();case'"':return u();case"-":return l();default:return r>="0"&&r<="9"?l():c()}}t.exports=function(g,y){var p;return s=g,n=0,r=" ",p=m(),f(),r&&i("Syntax error"),typeof y=="function"?function v(S,w){var _,T,I=S[w];if(I&&typeof I=="object")for(_ in m)Object.prototype.hasOwnProperty.call(I,_)&&(T=v(I,_),typeof T>"u"?delete I[_]:I[_]=T);return y.call(S,w,I)}({"":p},""):p}}}),ST=ne({"node_modules/.pnpm/jsonify@0.0.1/node_modules/jsonify/lib/stringify.js"(e,t){var n=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,r,o,s={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},i;function a(u){return n.lastIndex=0,n.test(u)?'"'+u.replace(n,function(f){var c=s[f];return typeof c=="string"?c:"\\u"+("0000"+f.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+u+'"'}function l(u,f){var c,d,h,m,g=r,y,p=f[u];switch(p&&typeof p=="object"&&typeof p.toJSON=="function"&&(p=p.toJSON(u)),typeof i=="function"&&(p=i.call(f,u,p)),typeof p){case"string":return a(p);case"number":return isFinite(p)?String(p):"null";case"boolean":case"null":return String(p);case"object":if(!p)return"null";if(r+=o,y=[],Object.prototype.toString.apply(p)==="[object Array]"){for(m=p.length,c=0;c<m;c+=1)y[c]=l(c,p)||"null";return h=y.length===0?"[]":r?`[
624
+ `,backgroundSize:"24px 24px"},children:x.jsx(_0,{})}),n&&x.jsx(Lk,{onClose:o,buildLogs:e,proxyLogs:t,credentials:s,onCredentialsChange:a})]})]})})})})},ln=({children:e,className:t=""})=>x.jsx("div",{className:`rounded-xl bg-white p-5 shadow-sm ${t}`,children:e}),$k=()=>{const{data:e,isLoading:t,isError:n}=ko(yu),r=du();return b.useEffect(()=>{var o;e&&e.length>0&&r({to:"/$apiName/summary",params:{apiName:(o=e[0])==null?void 0:o.api_name}})},[e,r]),t?x.jsx(ln,{children:x.jsx("p",{className:"m-0 text-[13px] text-neutral-400",children:"Fetching bundle.json…"})}):n?x.jsx(ln,{children:x.jsx("p",{className:"m-0 text-[13px] text-red-700",children:"Could not load bundle.json. Make sure the dev server is running from a plugin directory."})}):!e||e.length===0?x.jsx(ln,{children:x.jsxs("p",{className:"m-0 text-[13px] text-yellow-700",children:["bundle.json is empty. Run"," ",x.jsx("code",{className:"rounded bg-neutral-100 px-1 py-0.5",children:"appbuilder build"})," to generate it."]})}):null},Uk=()=>{const{apiName:e}=fu({strict:!1}),{data:t,isLoading:n,isError:r}=ko(yu);if(n)return x.jsx(ln,{children:x.jsx("p",{className:"m-0 text-[13px] text-neutral-400",children:"Fetching bundle.json…"})});if(r)return x.jsx(ln,{children:x.jsx("p",{className:"m-0 text-[13px] text-red-700",children:"Could not load bundle.json."})});const o=t==null?void 0:t.find(g=>g.api_name===e);if(!o)return x.jsx(ln,{children:x.jsxs("p",{className:"m-0 text-[13px] text-neutral-500",children:["No app found with api_name"," ",x.jsx("code",{className:"rounded bg-neutral-100 px-1 py-0.5",children:e}),"."]})});const s=[["name",o.name],["api_name",o.api_name],["version",o.version],["description",o.description],["engine",o.engine],["published",o.published?"yes":"no"]];console.log("Your App Bundle:"),console.log(o);const i=o.artifacts.floating_frames,a=o.artifacts.data_adornments,l=o.artifacts.routable_pages,u=o.artifacts.toolbar_items,f=o.artifacts.js_action_templates,c=o.artifacts.route_scripts,d=o.artifacts.object_settings_menu_items,h=o.artifacts.automation_action_configs,m=o.artifacts.calendar_sources;return x.jsxs("div",{className:"space-y-4 text-[13px]",children:[x.jsx(ln,{children:x.jsx("div",{className:"space-y-1",children:s.map(([g,y])=>x.jsxs("div",{className:"flex gap-3",children:[x.jsx("span",{className:"w-28 shrink-0 text-neutral-400",children:g}),x.jsx("span",{className:"text-neutral-900",children:y})]},g))})}),x.jsxs(ln,{className:"space-y-1",children:[x.jsx("div",{children:x.jsx("strong",{children:"Plugin Assets"})}),x.jsxs("div",{children:["Floating Frames (",i.length,"):"]}),i.map((g,y)=>x.jsx("div",{className:"flex gap-3 pl-4",children:x.jsxs("span",{className:"text-neutral-900",children:[g.name," (",g.api_name,")"]})},y)),x.jsxs("div",{children:["Data Adornments (",a.length,"):"]}),a.map((g,y)=>x.jsx("div",{className:"flex gap-3 pl-4",children:x.jsx("span",{className:"text-neutral-900",children:g.field_type})},y)),x.jsxs("div",{children:["Routable Pages (",l.length,"):"]}),l.map((g,y)=>x.jsx("div",{className:"flex gap-3 pl-4",children:x.jsxs("span",{className:"text-neutral-900",children:[g.name," (",g.api_name,")"]})},y)),x.jsxs("div",{children:["Toolbar Items (",u.length,"):"]}),u.map((g,y)=>x.jsx("div",{className:"flex gap-3 pl-4",children:x.jsxs("span",{className:"text-neutral-900",children:[g.label," (",g.api_name,")"]})},y)),x.jsxs("div",{children:["JS Action Templates (",f.length,"):"]}),f.map((g,y)=>x.jsx("div",{className:"flex gap-3 pl-4",children:x.jsxs("span",{className:"text-neutral-900",children:[g.name," (",g.api_name,")"]})},y)),x.jsxs("div",{children:["Route Scripts (",c.length,"):"]}),c.map((g,y)=>x.jsx("div",{className:"flex gap-3 pl-4",children:x.jsx("span",{className:"text-neutral-900",children:g.api_name})},y)),x.jsxs("div",{children:["Object Settings Menu Items (",d.length,"):"]}),d.map((g,y)=>x.jsx("div",{className:"flex gap-3 pl-4",children:x.jsx("span",{className:"text-neutral-900",children:g.api_name})},y)),x.jsxs("div",{children:["Automation Action Configs (",h.length,"):"]}),h.map((g,y)=>x.jsx("div",{className:"flex gap-3 pl-4",children:x.jsxs("span",{className:"text-neutral-900",children:[g.name," (",g.action_step_api_name,")"]})},y)),x.jsxs("div",{children:["Calendar Sources (",m.length,"):"]}),m.map((g,y)=>x.jsx("div",{className:"flex gap-3 pl-4",children:x.jsx("span",{className:"text-neutral-900",children:g.api_name})},y))]})]})};var Se={QUERY_REQUEST:"query:request",UI_OUTPUT:"outputui",IFRAME_OUTPUT:"iframeoutput",POSTFORMDATA_REQUEST:"postformdata:request",SETSTATE:"setstate",DONE:"done",RUN:"run",OPEN_WINDOW:"openwindow",COMMUNICATE:"communicate",HIDE:"hide",SHOW:"show",EXPAND:"expand",COLLAPSE:"collapse",HIDE_HEADER:"hideheader",SHOW_HEADER:"showheader",OPEN_CREATE_RECORD_MODAL_REQUEST:"opencreaterecordmodal:request",OPEN_CREATE_RELATED_RECORD_MODAL_REQUEST:"opencreaterelatedrecordmodal:request",SHOW_TOAST:"showtoast",CLEAR_TOASTS:"cleartoasts",REFRESH_TIMELINE:"refreshtimeline",REFRESH_ENTITY:"refreshentity",UPLOADFILE_REQUEST:"uploadfile:request",UPDATE_SESSION_DATA:"updatesessiondata",INSTALL_THIRD_PARTY_SCRIPT_REQUEST:"installthirdpartyscript:request",PROMPT_REQUEST:"prompt:request",DYNAMIC_PROMPT_REQUEST:"dynamicprompt:request",RELEASE_BLOCKING_SCRIPT:"releaseblockingscript",AUTHORIZE:"authorize",COPY_TO_CLIPBOARD:"copytoclipboard"},pt={QUERY_RESPONSE:"query:response",POSTFORMDATA_RESPONSE:"postformdata:response",ERROR:"error",UPLOADFILE_RESPONSE:"uploadfile:response",UPLOADFILE_PROGRESS:"uploadfile:progress",INSTALL_THIRD_PARTY_SCRIPT_RESPONSE:"installthirdpartyscript:response",PROMPT_RESPONSE:"prompt:response",REFRESH_ENTITY_RESPONSE:"refreshentity:response",CREATE_RECORD_RESPONSE:"createrecord:response",CREATE_RELATED_RECORD_RESPONSE:"createrelatedrecord:response"},Kf={RUN_FRAME_SCRIPT:"runframescript",SEND_MESSAGE_TO_FRAME:"sendmessagetoframe",CALL_THIRD_PARTY_SCRIPT:"callthirdpartyscript"},cg="integration:route-change",zk="kizen-route-change",G1="kzn-integration-frame",Bk=/https:\/\/.*widget\.freshworks\.com\/.*\.js/,Hk=/https:\/\/widget\.intercom\.io\/widget\/[a-z0-9]+/,Mt={FRESHWORKS:"freshworks",INTERCOM:"intercom"},Wk=e=>{if(Bk.test(e))return Mt.FRESHWORKS;if(Hk.test(e))return Mt.INTERCOM},Rr={[Mt.FRESHWORKS]:"FreshworksWidget",[Mt.INTERCOM]:"Intercom"},Vk={[Mt.FRESHWORKS]:e=>{window.fwSettings={widget_id:e.widgetId},function(...t){if(typeof window[Rr[Mt.FRESHWORKS]]!="function"){const n=function(){n.q.push(...t)};n.__kizen_pending=!0,n.q=[],window[Rr[Mt.FRESHWORKS]]=n}}()},[Mt.INTERCOM]:()=>{(function(){if(typeof window[Rr[Mt.INTERCOM]]!="function"){const e=window,t=function(){t.c(arguments)};t.q=[],t.c=function(n){t.q.push(n)},t.__kizen_pending=!0,e[Rr[Mt.INTERCOM]]=t}})()}},fg={[Mt.FRESHWORKS]:()=>{var e;return((e=window[Rr[Mt.FRESHWORKS]])==null?void 0:e.__kizen_pending)!==!0},[Mt.INTERCOM]:()=>{var e;return((e=window[Rr[Mt.INTERCOM]])==null?void 0:e.__kizen_pending)!==!0}},Qk=()=>({host:window.location.host,hash:window.location.hash,href:window.location.href,origin:window.location.origin,pathname:window.location.pathname,search:window.location.search,port:window.location.port,protocol:window.location.protocol}),qk=()=>{let e=new Date().getTime();return typeof performance<"u"&&typeof performance.now=="function"&&(e+=performance.now()),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{const n=(e+Math.random()*16)%16|0;return e=Math.floor(e/16),(t==="x"?n:n&3|8).toString(16)})};Object.getPrototypeOf(async function(){}).constructor;var K1=e=>`${(e==null?void 0:e.plugin_api_name)??""}-${(e==null?void 0:e.id)??""}-${(e==null?void 0:e.api_name)??""}-${(e==null?void 0:e.script_id)??""}`,Gk=Object.create,Y1=Object.defineProperty,Kk=Object.getOwnPropertyDescriptor,X1=Object.getOwnPropertyNames,Yk=Object.getPrototypeOf,Xk=Object.prototype.hasOwnProperty,ne=(e,t)=>function(){return t||(0,e[X1(e)[0]])((t={exports:{}}).exports,t),t.exports},Jk=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of X1(t))!Xk.call(e,o)&&o!==n&&Y1(e,o,{get:()=>t[o],enumerable:!(r=Kk(t,o))||r.enumerable});return e},Zk=(e,t,n)=>(n=e!=null?Gk(Yk(e)):{},Jk(Y1(n,"default",{value:e,enumerable:!0}),e));/*! @license DOMPurify 3.3.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.3/LICENSE */const{entries:J1,setPrototypeOf:dg,isFrozen:eT,getPrototypeOf:tT,getOwnPropertyDescriptor:nT}=Object;let{freeze:Pt,seal:hn,create:al}=Object,{apply:Yf,construct:Xf}=typeof Reflect<"u"&&Reflect;Pt||(Pt=function(t){return t});hn||(hn=function(t){return t});Yf||(Yf=function(t,n){for(var r=arguments.length,o=new Array(r>2?r-2:0),s=2;s<r;s++)o[s-2]=arguments[s];return t.apply(n,o)});Xf||(Xf=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return new t(...r)});const Ua=Rt(Array.prototype.forEach),rT=Rt(Array.prototype.lastIndexOf),hg=Rt(Array.prototype.pop),ni=Rt(Array.prototype.push),oT=Rt(Array.prototype.splice),ll=Rt(String.prototype.toLowerCase),mc=Rt(String.prototype.toString),gc=Rt(String.prototype.match),ri=Rt(String.prototype.replace),sT=Rt(String.prototype.indexOf),iT=Rt(String.prototype.trim),Wt=Rt(Object.prototype.hasOwnProperty),xt=Rt(RegExp.prototype.test),oi=aT(TypeError);function Rt(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return Yf(e,t,r)}}function aT(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Xf(e,n)}}function ie(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ll;dg&&dg(e,null);let r=t.length;for(;r--;){let o=t[r];if(typeof o=="string"){const s=n(o);s!==o&&(eT(t)||(t[r]=s),o=s)}e[o]=!0}return e}function lT(e){for(let t=0;t<e.length;t++)Wt(e,t)||(e[t]=null);return e}function Pn(e){const t=al(null);for(const[n,r]of J1(e))Wt(e,n)&&(Array.isArray(r)?t[n]=lT(r):r&&typeof r=="object"&&r.constructor===Object?t[n]=Pn(r):t[n]=r);return t}function si(e,t){for(;e!==null;){const r=nT(e,t);if(r){if(r.get)return Rt(r.get);if(typeof r.value=="function")return Rt(r.value)}e=tT(e)}function n(){return null}return n}const pg=Pt(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),vc=Pt(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),yc=Pt(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),uT=Pt(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Sc=Pt(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),cT=Pt(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),mg=Pt(["#text"]),gg=Pt(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),xc=Pt(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),vg=Pt(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),za=Pt(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),fT=hn(/\{\{[\w\W]*|[\w\W]*\}\}/gm),dT=hn(/<%[\w\W]*|[\w\W]*%>/gm),hT=hn(/\$\{[\w\W]*/gm),pT=hn(/^data-[\-\w.\u00B7-\uFFFF]+$/),mT=hn(/^aria-[\-\w]+$/),Z1=hn(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),gT=hn(/^(?:\w+script|data):/i),vT=hn(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),eS=hn(/^html$/i),yT=hn(/^[a-z][.\w]*(-[.\w]+)+$/i);var yg=Object.freeze({__proto__:null,ARIA_ATTR:mT,ATTR_WHITESPACE:vT,CUSTOM_ELEMENT:yT,DATA_ATTR:pT,DOCTYPE_NAME:eS,ERB_EXPR:dT,IS_ALLOWED_URI:Z1,IS_SCRIPT_OR_DATA:gT,MUSTACHE_EXPR:fT,TMPLIT_EXPR:hT});const ii={element:1,text:3,progressingInstruction:7,comment:8,document:9},ST=function(){return typeof window>"u"?null:window},xT=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;const o="data-tt-policy-suffix";n&&n.hasAttribute(o)&&(r=n.getAttribute(o));const s="dompurify"+(r?"#"+r:"");try{return t.createPolicy(s,{createHTML(i){return i},createScriptURL(i){return i}})}catch{return console.warn("TrustedTypes policy "+s+" could not be created."),null}},Sg=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function tS(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ST();const t=X=>tS(X);if(t.version="3.3.3",t.removed=[],!e||!e.document||e.document.nodeType!==ii.document||!e.Element)return t.isSupported=!1,t;let{document:n}=e;const r=n,o=r.currentScript,{DocumentFragment:s,HTMLTemplateElement:i,Node:a,Element:l,NodeFilter:u,NamedNodeMap:f=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:c,DOMParser:d,trustedTypes:h}=e,m=l.prototype,g=si(m,"cloneNode"),y=si(m,"remove"),p=si(m,"nextSibling"),v=si(m,"childNodes"),S=si(m,"parentNode");if(typeof i=="function"){const X=n.createElement("template");X.content&&X.content.ownerDocument&&(n=X.content.ownerDocument)}let w,_="";const{implementation:T,createNodeIterator:I,createDocumentFragment:P,getElementsByTagName:k}=n,{importNode:E}=r;let A=Sg();t.isSupported=typeof J1=="function"&&typeof S=="function"&&T&&T.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:L,ERB_EXPR:z,TMPLIT_EXPR:U,DATA_ATTR:B,ARIA_ATTR:V,IS_SCRIPT_OR_DATA:W,ATTR_WHITESPACE:N,CUSTOM_ELEMENT:j}=yg;let{IS_ALLOWED_URI:O}=yg,M=null;const Q=ie({},[...pg,...vc,...yc,...Sc,...mg]);let te=null;const oe=ie({},[...gg,...xc,...vg,...za]);let re=Object.seal(al(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),pe=null,_e=null;const Ue=Object.seal(al(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let zt=!0,en=!0,je=!1,ce=!0,me=!1,ge=!0,we=!1,Qe=!1,He=!1,ye=!1,qe=!1,Bt=!1,Ye=!0,yt=!1;const et="user-content-";let ae=!0,Ee=!1,ze={},Tt=null;const Us=ie({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let zs=null;const Bs=ie({},["audio","video","img","source","image","track"]);let Mo=null;const da=ie({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),or="http://www.w3.org/1998/Math/MathML",Ln="http://www.w3.org/2000/svg",tn="http://www.w3.org/1999/xhtml";let jn=tn,Lo=!1,jo=null;const ha=ie({},[or,Ln,tn],mc);let qr=ie({},["mi","mo","mn","ms","mtext"]),Gr=ie({},["annotation-xml"]);const pa=ie({},["title","style","font","a","script"]);let K=null;const H=["application/xhtml+xml","text/html"],be="text/html";let le=null,Re=null;const tt=n.createElement("form"),St=function(R){return R instanceof RegExp||R instanceof Function},ut=function(){let R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Re&&Re===R)){if((!R||typeof R!="object")&&(R={}),R=Pn(R),K=H.indexOf(R.PARSER_MEDIA_TYPE)===-1?be:R.PARSER_MEDIA_TYPE,le=K==="application/xhtml+xml"?mc:ll,M=Wt(R,"ALLOWED_TAGS")?ie({},R.ALLOWED_TAGS,le):Q,te=Wt(R,"ALLOWED_ATTR")?ie({},R.ALLOWED_ATTR,le):oe,jo=Wt(R,"ALLOWED_NAMESPACES")?ie({},R.ALLOWED_NAMESPACES,mc):ha,Mo=Wt(R,"ADD_URI_SAFE_ATTR")?ie(Pn(da),R.ADD_URI_SAFE_ATTR,le):da,zs=Wt(R,"ADD_DATA_URI_TAGS")?ie(Pn(Bs),R.ADD_DATA_URI_TAGS,le):Bs,Tt=Wt(R,"FORBID_CONTENTS")?ie({},R.FORBID_CONTENTS,le):Us,pe=Wt(R,"FORBID_TAGS")?ie({},R.FORBID_TAGS,le):Pn({}),_e=Wt(R,"FORBID_ATTR")?ie({},R.FORBID_ATTR,le):Pn({}),ze=Wt(R,"USE_PROFILES")?R.USE_PROFILES:!1,zt=R.ALLOW_ARIA_ATTR!==!1,en=R.ALLOW_DATA_ATTR!==!1,je=R.ALLOW_UNKNOWN_PROTOCOLS||!1,ce=R.ALLOW_SELF_CLOSE_IN_ATTR!==!1,me=R.SAFE_FOR_TEMPLATES||!1,ge=R.SAFE_FOR_XML!==!1,we=R.WHOLE_DOCUMENT||!1,ye=R.RETURN_DOM||!1,qe=R.RETURN_DOM_FRAGMENT||!1,Bt=R.RETURN_TRUSTED_TYPE||!1,He=R.FORCE_BODY||!1,Ye=R.SANITIZE_DOM!==!1,yt=R.SANITIZE_NAMED_PROPS||!1,ae=R.KEEP_CONTENT!==!1,Ee=R.IN_PLACE||!1,O=R.ALLOWED_URI_REGEXP||Z1,jn=R.NAMESPACE||tn,qr=R.MATHML_TEXT_INTEGRATION_POINTS||qr,Gr=R.HTML_INTEGRATION_POINTS||Gr,re=R.CUSTOM_ELEMENT_HANDLING||{},R.CUSTOM_ELEMENT_HANDLING&&St(R.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(re.tagNameCheck=R.CUSTOM_ELEMENT_HANDLING.tagNameCheck),R.CUSTOM_ELEMENT_HANDLING&&St(R.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(re.attributeNameCheck=R.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),R.CUSTOM_ELEMENT_HANDLING&&typeof R.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(re.allowCustomizedBuiltInElements=R.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),me&&(en=!1),qe&&(ye=!0),ze&&(M=ie({},mg),te=al(null),ze.html===!0&&(ie(M,pg),ie(te,gg)),ze.svg===!0&&(ie(M,vc),ie(te,xc),ie(te,za)),ze.svgFilters===!0&&(ie(M,yc),ie(te,xc),ie(te,za)),ze.mathMl===!0&&(ie(M,Sc),ie(te,vg),ie(te,za))),Wt(R,"ADD_TAGS")||(Ue.tagCheck=null),Wt(R,"ADD_ATTR")||(Ue.attributeCheck=null),R.ADD_TAGS&&(typeof R.ADD_TAGS=="function"?Ue.tagCheck=R.ADD_TAGS:(M===Q&&(M=Pn(M)),ie(M,R.ADD_TAGS,le))),R.ADD_ATTR&&(typeof R.ADD_ATTR=="function"?Ue.attributeCheck=R.ADD_ATTR:(te===oe&&(te=Pn(te)),ie(te,R.ADD_ATTR,le))),R.ADD_URI_SAFE_ATTR&&ie(Mo,R.ADD_URI_SAFE_ATTR,le),R.FORBID_CONTENTS&&(Tt===Us&&(Tt=Pn(Tt)),ie(Tt,R.FORBID_CONTENTS,le)),R.ADD_FORBID_CONTENTS&&(Tt===Us&&(Tt=Pn(Tt)),ie(Tt,R.ADD_FORBID_CONTENTS,le)),ae&&(M["#text"]=!0),we&&ie(M,["html","head","body"]),M.table&&(ie(M,["tbody"]),delete pe.tbody),R.TRUSTED_TYPES_POLICY){if(typeof R.TRUSTED_TYPES_POLICY.createHTML!="function")throw oi('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof R.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw oi('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');w=R.TRUSTED_TYPES_POLICY,_=w.createHTML("")}else w===void 0&&(w=xT(h,o)),w!==null&&typeof _=="string"&&(_=w.createHTML(""));Pt&&Pt(R),Re=R}},nn=ie({},[...vc,...yc,...uT]),sr=ie({},[...Sc,...cT]),Kr=function(R){let D=S(R);(!D||!D.tagName)&&(D={namespaceURI:jn,tagName:"template"});const Y=ll(R.tagName),Ie=ll(D.tagName);return jo[R.namespaceURI]?R.namespaceURI===Ln?D.namespaceURI===tn?Y==="svg":D.namespaceURI===or?Y==="svg"&&(Ie==="annotation-xml"||qr[Ie]):!!nn[Y]:R.namespaceURI===or?D.namespaceURI===tn?Y==="math":D.namespaceURI===Ln?Y==="math"&&Gr[Ie]:!!sr[Y]:R.namespaceURI===tn?D.namespaceURI===Ln&&!Gr[Ie]||D.namespaceURI===or&&!qr[Ie]?!1:!sr[Y]&&(pa[Y]||!nn[Y]):!!(K==="application/xhtml+xml"&&jo[R.namespaceURI]):!1},ct=function(R){ni(t.removed,{element:R});try{S(R).removeChild(R)}catch{y(R)}},Fe=function(R,D){try{ni(t.removed,{attribute:D.getAttributeNode(R),from:D})}catch{ni(t.removed,{attribute:null,from:D})}if(D.removeAttribute(R),R==="is")if(ye||qe)try{ct(D)}catch{}else try{D.setAttribute(R,"")}catch{}},nt=function(R){let D=null,Y=null;if(He)R="<remove></remove>"+R;else{const We=gc(R,/^[\r\n\t ]+/);Y=We&&We[0]}K==="application/xhtml+xml"&&jn===tn&&(R='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+R+"</body></html>");const Ie=w?w.createHTML(R):R;if(jn===tn)try{D=new d().parseFromString(Ie,K)}catch{}if(!D||!D.documentElement){D=T.createDocument(jn,"template",null);try{D.documentElement.innerHTML=Lo?_:Ie}catch{}}const ft=D.body||D.documentElement;return R&&Y&&ft.insertBefore(n.createTextNode(Y),ft.childNodes[0]||null),jn===tn?k.call(D,we?"html":"body")[0]:we?D.documentElement:ft},ir=function(R){return I.call(R.ownerDocument||R,R,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Ht=function(R){return R instanceof c&&(typeof R.nodeName!="string"||typeof R.textContent!="string"||typeof R.removeChild!="function"||!(R.attributes instanceof f)||typeof R.removeAttribute!="function"||typeof R.setAttribute!="function"||typeof R.namespaceURI!="string"||typeof R.insertBefore!="function"||typeof R.hasChildNodes!="function")},Nh=function(R){return typeof a=="function"&&R instanceof a};function Fn(X,R,D){Ua(X,Y=>{Y.call(t,R,D,Re)})}const Oh=function(R){let D=null;if(Fn(A.beforeSanitizeElements,R,null),Ht(R))return ct(R),!0;const Y=le(R.nodeName);if(Fn(A.uponSanitizeElement,R,{tagName:Y,allowedTags:M}),ge&&R.hasChildNodes()&&!Nh(R.firstElementChild)&&xt(/<[/\w!]/g,R.innerHTML)&&xt(/<[/\w!]/g,R.textContent)||R.nodeType===ii.progressingInstruction||ge&&R.nodeType===ii.comment&&xt(/<[/\w]/g,R.data))return ct(R),!0;if(!(Ue.tagCheck instanceof Function&&Ue.tagCheck(Y))&&(!M[Y]||pe[Y])){if(!pe[Y]&&Lh(Y)&&(re.tagNameCheck instanceof RegExp&&xt(re.tagNameCheck,Y)||re.tagNameCheck instanceof Function&&re.tagNameCheck(Y)))return!1;if(ae&&!Tt[Y]){const Ie=S(R)||R.parentNode,ft=v(R)||R.childNodes;if(ft&&Ie){const We=ft.length;for(let It=We-1;It>=0;--It){const Dn=g(ft[It],!0);Dn.__removalCount=(R.__removalCount||0)+1,Ie.insertBefore(Dn,p(R))}}}return ct(R),!0}return R instanceof l&&!Kr(R)||(Y==="noscript"||Y==="noembed"||Y==="noframes")&&xt(/<\/no(script|embed|frames)/i,R.innerHTML)?(ct(R),!0):(me&&R.nodeType===ii.text&&(D=R.textContent,Ua([L,z,U],Ie=>{D=ri(D,Ie," ")}),R.textContent!==D&&(ni(t.removed,{element:R.cloneNode()}),R.textContent=D)),Fn(A.afterSanitizeElements,R,null),!1)},Mh=function(R,D,Y){if(_e[D]||Ye&&(D==="id"||D==="name")&&(Y in n||Y in tt))return!1;if(!(en&&!_e[D]&&xt(B,D))){if(!(zt&&xt(V,D))){if(!(Ue.attributeCheck instanceof Function&&Ue.attributeCheck(D,R))){if(!te[D]||_e[D]){if(!(Lh(R)&&(re.tagNameCheck instanceof RegExp&&xt(re.tagNameCheck,R)||re.tagNameCheck instanceof Function&&re.tagNameCheck(R))&&(re.attributeNameCheck instanceof RegExp&&xt(re.attributeNameCheck,D)||re.attributeNameCheck instanceof Function&&re.attributeNameCheck(D,R))||D==="is"&&re.allowCustomizedBuiltInElements&&(re.tagNameCheck instanceof RegExp&&xt(re.tagNameCheck,Y)||re.tagNameCheck instanceof Function&&re.tagNameCheck(Y))))return!1}else if(!Mo[D]){if(!xt(O,ri(Y,N,""))){if(!((D==="src"||D==="xlink:href"||D==="href")&&R!=="script"&&sT(Y,"data:")===0&&zs[R])){if(!(je&&!xt(W,ri(Y,N,"")))){if(Y)return!1}}}}}}}return!0},Lh=function(R){return R!=="annotation-xml"&&gc(R,j)},jh=function(R){Fn(A.beforeSanitizeAttributes,R,null);const{attributes:D}=R;if(!D||Ht(R))return;const Y={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:te,forceKeepAttr:void 0};let Ie=D.length;for(;Ie--;){const ft=D[Ie],{name:We,namespaceURI:It,value:Dn}=ft,Fo=le(We),bu=Dn;let rt=We==="value"?bu:iT(bu);if(Y.attrName=Fo,Y.attrValue=rt,Y.keepAttr=!0,Y.forceKeepAttr=void 0,Fn(A.uponSanitizeAttribute,R,Y),rt=Y.attrValue,yt&&(Fo==="id"||Fo==="name")&&(Fe(We,R),rt=et+rt),ge&&xt(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,rt)){Fe(We,R);continue}if(Fo==="attributename"&&gc(rt,"href")){Fe(We,R);continue}if(Y.forceKeepAttr)continue;if(!Y.keepAttr){Fe(We,R);continue}if(!ce&&xt(/\/>/i,rt)){Fe(We,R);continue}me&&Ua([L,z,U],Dh=>{rt=ri(rt,Dh," ")});const Fh=le(R.nodeName);if(!Mh(Fh,Fo,rt)){Fe(We,R);continue}if(w&&typeof h=="object"&&typeof h.getAttributeType=="function"&&!It)switch(h.getAttributeType(Fh,Fo)){case"TrustedHTML":{rt=w.createHTML(rt);break}case"TrustedScriptURL":{rt=w.createScriptURL(rt);break}}if(rt!==bu)try{It?R.setAttributeNS(It,We,rt):R.setAttribute(We,rt),Ht(R)?ct(R):hg(t.removed)}catch{Fe(We,R)}}Fn(A.afterSanitizeAttributes,R,null)},CS=function X(R){let D=null;const Y=ir(R);for(Fn(A.beforeSanitizeShadowDOM,R,null);D=Y.nextNode();)Fn(A.uponSanitizeShadowNode,D,null),Oh(D),jh(D),D.content instanceof s&&X(D.content);Fn(A.afterSanitizeShadowDOM,R,null)};return t.sanitize=function(X){let R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},D=null,Y=null,Ie=null,ft=null;if(Lo=!X,Lo&&(X="<!-->"),typeof X!="string"&&!Nh(X))if(typeof X.toString=="function"){if(X=X.toString(),typeof X!="string")throw oi("dirty is not a string, aborting")}else throw oi("toString is not a function");if(!t.isSupported)return X;if(Qe||ut(R),t.removed=[],typeof X=="string"&&(Ee=!1),Ee){if(X.nodeName){const Dn=le(X.nodeName);if(!M[Dn]||pe[Dn])throw oi("root node is forbidden and cannot be sanitized in-place")}}else if(X instanceof a)D=nt("<!---->"),Y=D.ownerDocument.importNode(X,!0),Y.nodeType===ii.element&&Y.nodeName==="BODY"||Y.nodeName==="HTML"?D=Y:D.appendChild(Y);else{if(!ye&&!me&&!we&&X.indexOf("<")===-1)return w&&Bt?w.createHTML(X):X;if(D=nt(X),!D)return ye?null:Bt?_:""}D&&He&&ct(D.firstChild);const We=ir(Ee?X:D);for(;Ie=We.nextNode();)Oh(Ie),jh(Ie),Ie.content instanceof s&&CS(Ie.content);if(Ee)return X;if(ye){if(qe)for(ft=P.call(D.ownerDocument);D.firstChild;)ft.appendChild(D.firstChild);else ft=D;return(te.shadowroot||te.shadowrootmode)&&(ft=E.call(r,ft,!0)),ft}let It=we?D.outerHTML:D.innerHTML;return we&&M["!doctype"]&&D.ownerDocument&&D.ownerDocument.doctype&&D.ownerDocument.doctype.name&&xt(eS,D.ownerDocument.doctype.name)&&(It="<!DOCTYPE "+D.ownerDocument.doctype.name+`>
625
+ `+It),me&&Ua([L,z,U],Dn=>{It=ri(It,Dn," ")}),w&&Bt?w.createHTML(It):It},t.setConfig=function(){let X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ut(X),Qe=!0},t.clearConfig=function(){Re=null,Qe=!1},t.isValidAttribute=function(X,R,D){Re||ut({});const Y=le(X),Ie=le(R);return Mh(Y,Ie,D)},t.addHook=function(X,R){typeof R=="function"&&ni(A[X],R)},t.removeHook=function(X,R){if(R!==void 0){const D=rT(A[X],R);return D===-1?void 0:oT(A[X],D,1)[0]}return hg(A[X])},t.removeHooks=function(X){A[X]=[]},t.removeAllHooks=function(){A=Sg()},t}var nS=tS(),wT=ne({"node_modules/.pnpm/jsonify@0.0.1/node_modules/jsonify/lib/parse.js"(e,t){var n,r,o={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:`
626
+ `,r:"\r",t:" "},s;function i(g){throw{name:"SyntaxError",message:g,at:n,text:s}}function a(g){return g&&g!==r&&i("Expected '"+g+"' instead of '"+r+"'"),r=s.charAt(n),n+=1,r}function l(){var g,y="";for(r==="-"&&(y="-",a("-"));r>="0"&&r<="9";)y+=r,a();if(r===".")for(y+=".";a()&&r>="0"&&r<="9";)y+=r;if(r==="e"||r==="E")for(y+=r,a(),(r==="-"||r==="+")&&(y+=r,a());r>="0"&&r<="9";)y+=r,a();return g=Number(y),isFinite(g)||i("Bad number"),g}function u(){var g,y,p="",v;if(r==='"')for(;a();){if(r==='"')return a(),p;if(r==="\\")if(a(),r==="u"){for(v=0,y=0;y<4&&(g=parseInt(a(),16),!!isFinite(g));y+=1)v=v*16+g;p+=String.fromCharCode(v)}else if(typeof o[r]=="string")p+=o[r];else break;else p+=r}i("Bad string")}function f(){for(;r&&r<=" ";)a()}function c(){switch(r){case"t":return a("t"),a("r"),a("u"),a("e"),!0;case"f":return a("f"),a("a"),a("l"),a("s"),a("e"),!1;case"n":return a("n"),a("u"),a("l"),a("l"),null;default:i("Unexpected '"+r+"'")}}function d(){var g=[];if(r==="["){if(a("["),f(),r==="]")return a("]"),g;for(;r;){if(g.push(m()),f(),r==="]")return a("]"),g;a(","),f()}}i("Bad array")}function h(){var g,y={};if(r==="{"){if(a("{"),f(),r==="}")return a("}"),y;for(;r;){if(g=u(),f(),a(":"),Object.prototype.hasOwnProperty.call(y,g)&&i('Duplicate key "'+g+'"'),y[g]=m(),f(),r==="}")return a("}"),y;a(","),f()}}i("Bad object")}function m(){switch(f(),r){case"{":return h();case"[":return d();case'"':return u();case"-":return l();default:return r>="0"&&r<="9"?l():c()}}t.exports=function(g,y){var p;return s=g,n=0,r=" ",p=m(),f(),r&&i("Syntax error"),typeof y=="function"?function v(S,w){var _,T,I=S[w];if(I&&typeof I=="object")for(_ in m)Object.prototype.hasOwnProperty.call(I,_)&&(T=v(I,_),typeof T>"u"?delete I[_]:I[_]=T);return y.call(S,w,I)}({"":p},""):p}}}),_T=ne({"node_modules/.pnpm/jsonify@0.0.1/node_modules/jsonify/lib/stringify.js"(e,t){var n=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,r,o,s={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},i;function a(u){return n.lastIndex=0,n.test(u)?'"'+u.replace(n,function(f){var c=s[f];return typeof c=="string"?c:"\\u"+("0000"+f.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+u+'"'}function l(u,f){var c,d,h,m,g=r,y,p=f[u];switch(p&&typeof p=="object"&&typeof p.toJSON=="function"&&(p=p.toJSON(u)),typeof i=="function"&&(p=i.call(f,u,p)),typeof p){case"string":return a(p);case"number":return isFinite(p)?String(p):"null";case"boolean":case"null":return String(p);case"object":if(!p)return"null";if(r+=o,y=[],Object.prototype.toString.apply(p)==="[object Array]"){for(m=p.length,c=0;c<m;c+=1)y[c]=l(c,p)||"null";return h=y.length===0?"[]":r?`[
627
627
  `+r+y.join(`,
628
628
  `+r)+`
629
629
  `+g+"]":"["+y.join(",")+"]",r=g,h}if(i&&typeof i=="object")for(m=i.length,c=0;c<m;c+=1)d=i[c],typeof d=="string"&&(h=l(d,p),h&&y.push(a(d)+(r?": ":":")+h));else for(d in p)Object.prototype.hasOwnProperty.call(p,d)&&(h=l(d,p),h&&y.push(a(d)+(r?": ":":")+h));return h=y.length===0?"{}":r?`{
630
630
  `+r+y.join(`,
631
631
  `+r)+`
632
- `+g+"}":"{"+y.join(",")+"}",r=g,h}}t.exports=function(u,f,c){var d;if(r="",o="",typeof c=="number")for(d=0;d<c;d+=1)o+=" ";else typeof c=="string"&&(o=c);if(i=f,f&&typeof f!="function"&&(typeof f!="object"||typeof f.length!="number"))throw new Error("JSON.stringify");return l("",{"":u})}}}),xT=ne({"node_modules/.pnpm/jsonify@0.0.1/node_modules/jsonify/index.js"(e){e.parse=yT(),e.stringify=ST()}}),wT=ne({"node_modules/.pnpm/isarray@2.0.5/node_modules/isarray/index.js"(e,t){var n={}.toString;t.exports=Array.isArray||function(r){return n.call(r)=="[object Array]"}}}),rx=ne({"node_modules/.pnpm/object-keys@1.1.1/node_modules/object-keys/isArguments.js"(e,t){var n=Object.prototype.toString;t.exports=function(o){var s=n.call(o),i=s==="[object Arguments]";return i||(i=s!=="[object Array]"&&o!==null&&typeof o=="object"&&typeof o.length=="number"&&o.length>=0&&n.call(o.callee)==="[object Function]"),i}}}),_T=ne({"node_modules/.pnpm/object-keys@1.1.1/node_modules/object-keys/implementation.js"(e,t){var n;Object.keys||(r=Object.prototype.hasOwnProperty,o=Object.prototype.toString,s=rx(),i=Object.prototype.propertyIsEnumerable,a=!i.call({toString:null},"toString"),l=i.call(function(){},"prototype"),u=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],f=function(m){var g=m.constructor;return g&&g.prototype===m},c={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},d=function(){if(typeof window>"u")return!1;for(var m in window)try{if(!c["$"+m]&&r.call(window,m)&&window[m]!==null&&typeof window[m]=="object")try{f(window[m])}catch{return!0}}catch{return!0}return!1}(),h=function(m){if(typeof window>"u"||!d)return f(m);try{return f(m)}catch{return!1}},n=function(g){var y=g!==null&&typeof g=="object",p=o.call(g)==="[object Function]",v=s(g),S=y&&o.call(g)==="[object String]",w=[];if(!y&&!p&&!v)throw new TypeError("Object.keys called on a non-object");var _=l&&p;if(S&&g.length>0&&!r.call(g,0))for(var T=0;T<g.length;++T)w.push(String(T));if(v&&g.length>0)for(var I=0;I<g.length;++I)w.push(String(I));else for(var P in g)!(_&&P==="prototype")&&r.call(g,P)&&w.push(String(P));if(a)for(var k=h(g),E=0;E<u.length;++E)!(k&&u[E]==="constructor")&&r.call(g,u[E])&&w.push(u[E]);return w});var r,o,s,i,a,l,u,f,c,d,h;t.exports=n}}),ET=ne({"node_modules/.pnpm/object-keys@1.1.1/node_modules/object-keys/index.js"(e,t){var n=Array.prototype.slice,r=rx(),o=Object.keys,s=o?function(l){return o(l)}:_T(),i=Object.keys;s.shim=function(){if(Object.keys){var l=function(){var u=Object.keys(arguments);return u&&u.length===arguments.length}(1,2);l||(Object.keys=function(f){return r(f)?i(n.call(f)):i(f)})}else Object.keys=s;return Object.keys||s},t.exports=s}}),ox=ne({"node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js"(e,t){t.exports=Object}}),bT=ne({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js"(e,t){t.exports=Error}}),PT=ne({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js"(e,t){t.exports=EvalError}}),RT=ne({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js"(e,t){t.exports=RangeError}}),CT=ne({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js"(e,t){t.exports=ReferenceError}}),sx=ne({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js"(e,t){t.exports=SyntaxError}}),Su=ne({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.js"(e,t){t.exports=TypeError}}),kT=ne({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js"(e,t){t.exports=URIError}}),TT=ne({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/abs.js"(e,t){t.exports=Math.abs}}),IT=ne({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.js"(e,t){t.exports=Math.floor}}),AT=ne({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.js"(e,t){t.exports=Math.max}}),NT=ne({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.js"(e,t){t.exports=Math.min}}),OT=ne({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.js"(e,t){t.exports=Math.pow}}),MT=ne({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/round.js"(e,t){t.exports=Math.round}}),LT=ne({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/isNaN.js"(e,t){t.exports=Number.isNaN||function(r){return r!==r}}}),jT=ne({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/sign.js"(e,t){var n=LT();t.exports=function(o){return n(o)||o===0?o:o<0?-1:1}}}),FT=ne({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/gOPD.js"(e,t){t.exports=Object.getOwnPropertyDescriptor}}),xu=ne({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.js"(e,t){var n=FT();if(n)try{n([],"length")}catch{n=null}t.exports=n}}),wu=ne({"node_modules/.pnpm/es-define-property@1.0.1/node_modules/es-define-property/index.js"(e,t){var n=Object.defineProperty||!1;if(n)try{n({},"a",{value:1})}catch{n=!1}t.exports=n}}),DT=ne({"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/shams.js"(e,t){t.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},o=Symbol("test"),s=Object(o);if(typeof o=="string"||Object.prototype.toString.call(o)!=="[object Symbol]"||Object.prototype.toString.call(s)!=="[object Symbol]")return!1;var i=42;r[o]=i;for(var a in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var l=Object.getOwnPropertySymbols(r);if(l.length!==1||l[0]!==o||!Object.prototype.propertyIsEnumerable.call(r,o))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var u=Object.getOwnPropertyDescriptor(r,o);if(u.value!==i||u.enumerable!==!0)return!1}return!0}}}),$T=ne({"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/index.js"(e,t){var n=typeof Symbol<"u"&&Symbol,r=DT();t.exports=function(){return typeof n!="function"||typeof Symbol!="function"||typeof n("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:r()}}}),ix=ne({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Reflect.getPrototypeOf.js"(e,t){t.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null}}),ax=ne({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Object.getPrototypeOf.js"(e,t){var n=ox();t.exports=n.getPrototypeOf||null}}),UT=ne({"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.js"(e,t){var n="Function.prototype.bind called on incompatible ",r=Object.prototype.toString,o=Math.max,s="[object Function]",i=function(f,c){for(var d=[],h=0;h<f.length;h+=1)d[h]=f[h];for(var m=0;m<c.length;m+=1)d[m+f.length]=c[m];return d},a=function(f,c){for(var d=[],h=c,m=0;h<f.length;h+=1,m+=1)d[m]=f[h];return d},l=function(u,f){for(var c="",d=0;d<u.length;d+=1)c+=u[d],d+1<u.length&&(c+=f);return c};t.exports=function(f){var c=this;if(typeof c!="function"||r.apply(c)!==s)throw new TypeError(n+c);for(var d=a(arguments,1),h,m=function(){if(this instanceof h){var S=c.apply(this,i(d,arguments));return Object(S)===S?S:this}return c.apply(f,i(d,arguments))},g=o(0,c.length-d.length),y=[],p=0;p<g;p++)y[p]="$"+p;if(h=Function("binder","return function ("+l(y,",")+"){ return binder.apply(this,arguments); }")(m),c.prototype){var v=function(){};v.prototype=c.prototype,h.prototype=new v,v.prototype=null}return h}}}),ca=ne({"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js"(e,t){var n=UT();t.exports=Function.prototype.bind||n}}),xh=ne({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionCall.js"(e,t){t.exports=Function.prototype.call}}),wh=ne({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionApply.js"(e,t){t.exports=Function.prototype.apply}}),zT=ne({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/reflectApply.js"(e,t){t.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply}}),lx=ne({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/actualApply.js"(e,t){var n=ca(),r=wh(),o=xh(),s=zT();t.exports=s||n.call(o,r)}}),_h=ne({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/index.js"(e,t){var n=ca(),r=Su(),o=xh(),s=lx();t.exports=function(a){if(a.length<1||typeof a[0]!="function")throw new r("a function is required");return s(n,o,a)}}}),BT=ne({"node_modules/.pnpm/dunder-proto@1.0.1/node_modules/dunder-proto/get.js"(e,t){var n=_h(),r=xu(),o;try{o=[].__proto__===Array.prototype}catch(l){if(!l||typeof l!="object"||!("code"in l)||l.code!=="ERR_PROTO_ACCESS")throw l}var s=!!o&&r&&r(Object.prototype,"__proto__"),i=Object,a=i.getPrototypeOf;t.exports=s&&typeof s.get=="function"?n([s.get]):typeof a=="function"?function(u){return a(u==null?u:i(u))}:!1}}),HT=ne({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/index.js"(e,t){var n=ix(),r=ax(),o=BT();t.exports=n?function(i){return n(i)}:r?function(i){if(!i||typeof i!="object"&&typeof i!="function")throw new TypeError("getProto: not an object");return r(i)}:o?function(i){return o(i)}:null}}),WT=ne({"node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js"(e,t){var n=Function.prototype.call,r=Object.prototype.hasOwnProperty,o=ca();t.exports=o.call(n,r)}}),ux=ne({"node_modules/.pnpm/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.js"(e,t){var n,r=ox(),o=bT(),s=PT(),i=RT(),a=CT(),l=sx(),u=Su(),f=kT(),c=TT(),d=IT(),h=AT(),m=NT(),g=OT(),y=MT(),p=jT(),v=Function,S=function(je){try{return v('"use strict"; return ('+je+").constructor;")()}catch{}},w=xu(),_=wu(),T=function(){throw new u},I=w?function(){try{return arguments.callee,T}catch{try{return w(arguments,"callee").get}catch{return T}}}():T,P=$T()(),k=HT(),E=ax(),A=ix(),L=wh(),z=xh(),U={},B=typeof Uint8Array>"u"||!k?n:k(Uint8Array),V={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?n:ArrayBuffer,"%ArrayIteratorPrototype%":P&&k?k([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":U,"%AsyncGenerator%":U,"%AsyncGeneratorFunction%":U,"%AsyncIteratorPrototype%":U,"%Atomics%":typeof Atomics>"u"?n:Atomics,"%BigInt%":typeof BigInt>"u"?n:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?n:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":s,"%Float16Array%":typeof Float16Array>"u"?n:Float16Array,"%Float32Array%":typeof Float32Array>"u"?n:Float32Array,"%Float64Array%":typeof Float64Array>"u"?n:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?n:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":U,"%Int8Array%":typeof Int8Array>"u"?n:Int8Array,"%Int16Array%":typeof Int16Array>"u"?n:Int16Array,"%Int32Array%":typeof Int32Array>"u"?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":P&&k?k(k([][Symbol.iterator]())):n,"%JSON%":typeof JSON=="object"?JSON:n,"%Map%":typeof Map>"u"?n:Map,"%MapIteratorPrototype%":typeof Map>"u"||!P||!k?n:k(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":r,"%Object.getOwnPropertyDescriptor%":w,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?n:Promise,"%Proxy%":typeof Proxy>"u"?n:Proxy,"%RangeError%":i,"%ReferenceError%":a,"%Reflect%":typeof Reflect>"u"?n:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?n:Set,"%SetIteratorPrototype%":typeof Set>"u"||!P||!k?n:k(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":P&&k?k(""[Symbol.iterator]()):n,"%Symbol%":P?Symbol:n,"%SyntaxError%":l,"%ThrowTypeError%":I,"%TypedArray%":B,"%TypeError%":u,"%Uint8Array%":typeof Uint8Array>"u"?n:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?n:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?n:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?n:Uint32Array,"%URIError%":f,"%WeakMap%":typeof WeakMap>"u"?n:WeakMap,"%WeakRef%":typeof WeakRef>"u"?n:WeakRef,"%WeakSet%":typeof WeakSet>"u"?n:WeakSet,"%Function.prototype.call%":z,"%Function.prototype.apply%":L,"%Object.defineProperty%":_,"%Object.getPrototypeOf%":E,"%Math.abs%":c,"%Math.floor%":d,"%Math.max%":h,"%Math.min%":m,"%Math.pow%":g,"%Math.round%":y,"%Math.sign%":p,"%Reflect.getPrototypeOf%":A};if(k)try{null.error}catch(je){W=k(k(je)),V["%Error.prototype%"]=W}var W,N=function je(ce){var me;if(ce==="%AsyncFunction%")me=S("async function () {}");else if(ce==="%GeneratorFunction%")me=S("function* () {}");else if(ce==="%AsyncGeneratorFunction%")me=S("async function* () {}");else if(ce==="%AsyncGenerator%"){var ge=je("%AsyncGeneratorFunction%");ge&&(me=ge.prototype)}else if(ce==="%AsyncIteratorPrototype%"){var we=je("%AsyncGenerator%");we&&k&&(me=k(we.prototype))}return V[ce]=me,me},j={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},O=ca(),M=WT(),Q=O.call(z,Array.prototype.concat),te=O.call(L,Array.prototype.splice),oe=O.call(z,String.prototype.replace),re=O.call(z,String.prototype.slice),pe=O.call(z,RegExp.prototype.exec),_e=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Ue=/\\(\\)?/g,zt=function(ce){var me=re(ce,0,1),ge=re(ce,-1);if(me==="%"&&ge!=="%")throw new l("invalid intrinsic syntax, expected closing `%`");if(ge==="%"&&me!=="%")throw new l("invalid intrinsic syntax, expected opening `%`");var we=[];return oe(ce,_e,function(Qe,He,ye,qe){we[we.length]=ye?oe(qe,Ue,"$1"):He||Qe}),we},en=function(ce,me){var ge=ce,we;if(M(j,ge)&&(we=j[ge],ge="%"+we[0]+"%"),M(V,ge)){var Qe=V[ge];if(Qe===U&&(Qe=N(ge)),typeof Qe>"u"&&!me)throw new u("intrinsic "+ce+" exists, but is not available. Please file an issue!");return{alias:we,name:ge,value:Qe}}throw new l("intrinsic "+ce+" does not exist!")};t.exports=function(ce,me){if(typeof ce!="string"||ce.length===0)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof me!="boolean")throw new u('"allowMissing" argument must be a boolean');if(pe(/^%?[^%]*%?$/,ce)===null)throw new l("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var ge=zt(ce),we=ge.length>0?ge[0]:"",Qe=en("%"+we+"%",me),He=Qe.name,ye=Qe.value,qe=!1,Bt=Qe.alias;Bt&&(we=Bt[0],te(ge,Q([0,1],Bt)));for(var Ye=1,yt=!0;Ye<ge.length;Ye+=1){var et=ge[Ye],ae=re(et,0,1),Ee=re(et,-1);if((ae==='"'||ae==="'"||ae==="`"||Ee==='"'||Ee==="'"||Ee==="`")&&ae!==Ee)throw new l("property names with quotes must have matching quotes");if((et==="constructor"||!yt)&&(qe=!0),we+="."+et,He="%"+we+"%",M(V,He))ye=V[He];else if(ye!=null){if(!(et in ye)){if(!me)throw new u("base intrinsic for "+ce+" exists, but the property is not available.");return}if(w&&Ye+1>=ge.length){var ze=w(ye,et);yt=!!ze,yt&&"get"in ze&&!("originalValue"in ze.get)?ye=ze.get:ye=ye[et]}else yt=M(ye,et),ye=ye[et];yt&&!qe&&(V[He]=ye)}}return ye}}}),VT=ne({"node_modules/.pnpm/define-data-property@1.1.4/node_modules/define-data-property/index.js"(e,t){var n=wu(),r=sx(),o=Su(),s=xu();t.exports=function(a,l,u){if(!a||typeof a!="object"&&typeof a!="function")throw new o("`obj` must be an object or a function`");if(typeof l!="string"&&typeof l!="symbol")throw new o("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new o("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new o("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new o("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new o("`loose`, if provided, must be a boolean");var f=arguments.length>3?arguments[3]:null,c=arguments.length>4?arguments[4]:null,d=arguments.length>5?arguments[5]:null,h=arguments.length>6?arguments[6]:!1,m=!!s&&s(a,l);if(n)n(a,l,{configurable:d===null&&m?m.configurable:!d,enumerable:f===null&&m?m.enumerable:!f,value:u,writable:c===null&&m?m.writable:!c});else if(h||!f&&!c&&!d)a[l]=u;else throw new r("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}}}),QT=ne({"node_modules/.pnpm/has-property-descriptors@1.0.2/node_modules/has-property-descriptors/index.js"(e,t){var n=wu(),r=function(){return!!n};r.hasArrayLengthDefineBug=function(){if(!n)return null;try{return n([],"length",{value:1}).length!==1}catch{return!0}},t.exports=r}}),qT=ne({"node_modules/.pnpm/set-function-length@1.2.2/node_modules/set-function-length/index.js"(e,t){var n=ux(),r=VT(),o=QT()(),s=xu(),i=Su(),a=n("%Math.floor%");t.exports=function(u,f){if(typeof u!="function")throw new i("`fn` is not a function");if(typeof f!="number"||f<0||f>4294967295||a(f)!==f)throw new i("`length` must be a positive 32-bit integer");var c=arguments.length>2&&!!arguments[2],d=!0,h=!0;if("length"in u&&s){var m=s(u,"length");m&&!m.configurable&&(d=!1),m&&!m.writable&&(h=!1)}return(d||h||!c)&&(o?r(u,"length",f,!0,!0):r(u,"length",f)),u}}}),GT=ne({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/applyBind.js"(e,t){var n=ca(),r=wh(),o=lx();t.exports=function(){return o(n,r,arguments)}}}),KT=ne({"node_modules/.pnpm/call-bind@1.0.8/node_modules/call-bind/index.js"(e,t){var n=qT(),r=wu(),o=_h(),s=GT();t.exports=function(a){var l=o(arguments),u=a.length-(arguments.length-1);return n(l,1+(u>0?u:0),!0)},r?r(t.exports,"apply",{value:s}):t.exports.apply=s}}),YT=ne({"node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound/index.js"(e,t){var n=ux(),r=_h(),o=r([n("%String.prototype.indexOf%")]);t.exports=function(i,a){var l=n(i,!!a);return typeof l=="function"&&o(i,".prototype.")>-1?r([l]):l}}}),XT=ne({"node_modules/.pnpm/json-stable-stringify@1.3.0/node_modules/json-stable-stringify/index.js"(e,t){var n=(typeof JSON<"u"?JSON:xT()).stringify,r=wT(),o=ET(),s=KT(),i=YT(),a=i("Array.prototype.join"),l=i("Array.prototype.indexOf"),u=i("Array.prototype.splice"),f=i("Array.prototype.sort"),c=function(m,g){for(var y="",p=0;p<m;p+=1)y+=g;return y},d=function(h,m,g){return g};t.exports=function(m){var g=arguments.length>1?arguments[1]:void 0,y=g&&g.space||"";typeof y=="number"&&(y=c(y," "));var p=!!g&&typeof g.cycles=="boolean"&&g.cycles,v=g&&g.replacer?s(g.replacer):d;if(g&&typeof g.collapseEmpty<"u"&&typeof g.collapseEmpty!="boolean")throw new TypeError("`collapseEmpty` must be a boolean, if provided");var S=!!g&&g.collapseEmpty,w=typeof g=="function"?g:g&&g.cmp,_=w&&function(I){var P=w.length>2&&function(E){return I[E]};return function(k,E){return w({key:k,value:I[k]},{key:E,value:I[E]},P?{__proto__:null,get:P}:void 0)}},T=[];return function I(P,k,E,A){var L=y?`
633
- `+c(A,y):"",z=y?": ":":";if(E&&E.toJSON&&typeof E.toJSON=="function"&&(E=E.toJSON()),E=v(P,k,E),E!==void 0){if(typeof E!="object"||E===null)return n(E);var U=function(M,Q){return S&&M.length===0?Q:(Q==="[]"?"[":"{")+a(M,",")+L+(Q==="[]"?"]":"}")};if(r(E)){for(var N=[],B=0;B<E.length;B++){var V=I(E,B,E[B],A+1)||n(null);N[N.length]=L+y+V}return U(N,"[]")}if(l(T,E)!==-1){if(p)return n("__cycle__");throw new TypeError("Converting circular structure to JSON")}else T[T.length]=E;for(var W=f(o(E),_&&_(E)),N=[],B=0;B<W.length;B++){var k=W[B],j=I(E,k,E[k],A+1);if(j){var O=n(k)+z+j;N[N.length]=L+y+O}}return u(T,l(T,E),1),U(N,"{}")}}({"":m},"",m,0)}}}),JT=Yk(XT()),Eh=e=>localStorage.getItem(`kizen-flag-${e}`)==="true",zl=(e="")=>e.split("").reduce((t,n)=>(t<<5)-t+n.charCodeAt(0)|0,0),ZT=e=>{try{return zl((0,JT.default)(e))}catch(t){return Eh("script-runner-logging")&&console.warn("Failed to stringify object for hashing:",t),zl(String(Math.random()))}},eI=e=>e.startsWith("/"),tI=["microphone","speaker-selection","autoplay","camera","display-capture","hid"],nI=["allow-popups","allow-scripts","allow-same-origin"],rI=3e4,xg=100,oI=class{constructor(e){J(this,"worker");J(this,"scriptUIRef");J(this,"onStateChange");J(this,"done");J(this,"onError");J(this,"waitForFrame",!1);J(this,"plugin");J(this,"executionPlugin");J(this,"frameId");J(this,"onShowToast");J(this,"onClearToasts");J(this,"sessionData",{});J(this,"setSessionData");J(this,"pluginComponentId");J(this,"onShowModal");J(this,"onShowCreateRecordModal");J(this,"onShowCreateRelatedRecordModal");J(this,"onReleaseBlockingScript");J(this,"pluginApiName");J(this,"onNetworkError");J(this,"onNetworkRequest");J(this,"invalidateCache");J(this,"getPendingCacheCount");J(this,"createFileId");J(this,"performFileUpload");J(this,"pushHistory");J(this,"appPath");J(this,"handleMessage",async e=>{var r,o,s,i,a,l,u,f;const t=JSON.parse(e.data),{action:n}=t;switch(n){case Se.QUERY_REQUEST:{const c=t;await this.handleQueryRequest(c.id,c.method,c.url,c.payload,c.options);return}case Se.UI_OUTPUT:{const c=t;this.handleUIOutput(c.markup);return}case Se.IFRAME_OUTPUT:{const c=t;this.handleIframeOutput(c.url,c.allow,c.sandbox,c.preserve);return}case Se.POSTFORMDATA_REQUEST:{const c=t;this.handleFormPostRequest(c.id,c.url,c.payload,c.createNewTab);return}case Se.UPLOADFILE_REQUEST:{const c=t;await this.handleUploadFileRequest(c.id,c.payload);return}case Se.SETSTATE:{const c=t;(r=this.onStateChange)==null||r.call(this,c.state);return}case Se.DONE:{const c=t;this.handleDone(c.preserve,c.result);return}case pt.ERROR:{const c=t;(o=this.onError)==null||o.call(this,{message:c.error});return}case Se.OPEN_WINDOW:{const c=t;this.handleOpenWindow(c.url,c.target,c.features);return}case Se.COMMUNICATE:{const c=t;this.handleCommunication(c.type,c.recipient,c.args,c.params);return}case Se.HIDE:{const c=t,{config:d}=c;let h=!1;d.hideTrigger&&(h=!0),(s=this.onStateChange)==null||s.call(this,{hidden:!0,triggerHidden:h});return}case Se.SHOW:{const c=t,{config:d}=c;let h=!1;d.showTrigger===!1&&(h=!0),(i=this.onStateChange)==null||i.call(this,{hidden:!1,triggerHidden:h});return}case Se.EXPAND:{(a=this.onStateChange)==null||a.call(this,{minimized:!1});return}case Se.COLLAPSE:{(l=this.onStateChange)==null||l.call(this,{minimized:!0});return}case Se.HIDE_HEADER:{(u=this.onStateChange)==null||u.call(this,{hideHeader:!0});return}case Se.SHOW_HEADER:{(f=this.onStateChange)==null||f.call(this,{hideHeader:!1});return}case Se.COPY_TO_CLIPBOARD:{const c=t;await this.copyToClipboard(c.text);return}case Se.OPEN_CREATE_RECORD_MODAL_REQUEST:{const c=t;this.handleCreateRecordRequest(c.id,c.entityId);return}case Se.OPEN_CREATE_RELATED_RECORD_MODAL_REQUEST:{const c=t;this.handleCreateRelatedRecordRequest(c.id,c.objectId,c.relatedEntityId);return}case Se.SHOW_TOAST:{const c=t;this.showToast(c.message,c.toastOptions);return}case Se.CLEAR_TOASTS:{this.clearToasts();return}case Se.REFRESH_TIMELINE:{const c=t;this.handleRefreshTimeline(c.entityId);return}case Se.REFRESH_ENTITY:{const c=t;await this.handleRefreshEntity(c.entityId,c.id);return}case Se.UPDATE_SESSION_DATA:{const c=t;this.handleSetSessionData(c.update);return}case Se.INSTALL_THIRD_PARTY_SCRIPT_REQUEST:{const c=t;this.handleInstallThirdPartyScriptRequest(c.id,c.url,c.args);return}case Se.PROMPT_REQUEST:{const c=t;this.handlePromptRequest(c.id,c.config,!1);return}case Se.DYNAMIC_PROMPT_REQUEST:{const c=t;this.handlePromptRequest(c.id,c.config,!0);return}case Se.RELEASE_BLOCKING_SCRIPT:{this.handleReleaseBlockingScript();return}case Se.AUTHORIZE:{const c=t;this.handleAuthorize(c.serviceName,c.config);return}default:return}});J(this,"handleCommunication",(e,t,n,r)=>{var o,s,i;if(e===Kf.SEND_MESSAGE_TO_FRAME){if(this.frameId){const a=document.getElementById(this.frameId);a&&((o=a.contentWindow)==null||o.postMessage({...(n==null?void 0:n.payload)??{},__kizen:{recipient:t,frameId:this.frameId}},(n==null?void 0:n.path)??"*"))}}else if(e===Kf.CALL_THIRD_PARTY_SCRIPT)this.handleCallThirdPartyScript(t.type,r);else{const a=((s=this.executionPlugin)==null?void 0:s.plugin_api_name)??((i=this.plugin)==null?void 0:i.plugin_api_name),l=new CustomEvent(`integration:${e}`,{detail:{recipient:{...t,plugin:a},args:n}});window.dispatchEvent(l)}});J(this,"handleDone",(e,t)=>{this.waitForFrame||this.done(e,t)});J(this,"postMessage",(e,t)=>{this.worker.postMessage(JSON.stringify({action:e,...t}))});J(this,"handleSetSessionData",e=>{this.setSessionData(e)});J(this,"handleQueryRequest",async(e,t,n,r,o)=>{var s,i;try{const a=await((s=this.onNetworkRequest)==null?void 0:s.call(this,t,n,r,o));this.postMessage(pt.QUERY_RESPONSE,{data:a,id:e})}catch(a){(i=this.onNetworkError)==null||i.call(this,a),this.postMessage(pt.QUERY_RESPONSE,{error:a,id:e})}});J(this,"handleUIOutput",e=>{var t;if((t=this.scriptUIRef)!=null&&t.current){const n=nx.sanitize(e);this.scriptUIRef.current.innerHTML=n}});J(this,"onLoad",e=>{e.iframe&&(this.waitForFrame=!1,this.handleDone(e.preserve))});J(this,"handleIframeOutput",(e,t=[],n=[],r=!1)=>{var o;if((o=this.scriptUIRef)!=null&&o.current){const s=t.filter(l=>tI.includes(l)),i=n.filter(l=>nI.includes(l));this.waitForFrame=!0;const a=document.createElement("iframe");a.src=e,a.allow=s.join("; "),i.forEach(l=>{a.sandbox.add(l)}),a.style.border="none",a.style.width="100%",a.style.height="100%",a.onload=this.onLoad.bind(this,{iframe:a,preserve:r}),this.frameId&&(a.id=this.frameId),this.scriptUIRef.current.replaceChildren(a)}});J(this,"handleCreateRecordRequest",(e,t)=>{var n;(n=this.onShowCreateRecordModal)==null||n.call(this,t,r=>{this.postMessage(pt.CREATE_RECORD_RESPONSE,{id:e,data:r})})});J(this,"handleCreateRelatedRecordRequest",(e,t,n)=>{var r;(r=this.onShowCreateRelatedRecordModal)==null||r.call(this,t,n,o=>{this.postMessage(pt.CREATE_RELATED_RECORD_RESPONSE,{id:e,data:o})})});J(this,"showToast",(e,t)=>{var n;(n=this.onShowToast)==null||n.call(this,{message:e,variant:(t==null?void 0:t.variant)??"success",autohide:(t==null?void 0:t.autohide)??!0})});J(this,"clearToasts",()=>{var e;(e=this.onClearToasts)==null||e.call(this)});J(this,"copyToClipboard",async e=>{var t;try{await navigator.clipboard.writeText(e)}catch(n){(t=this.onError)==null||t.call(this,{message:n.message})}});J(this,"handleRefreshTimeline",e=>{var t;(t=this.invalidateCache)==null||t.call(this,"timeline",e)});J(this,"waitForIdleState",e=>new Promise(t=>{let n=0;const r=setInterval(()=>{var s;(((s=this.getPendingCacheCount)==null?void 0:s.call(this,e))??0)===0?(clearInterval(r),t(!0)):(n+=1,n>Math.floor(rI/xg)&&(clearInterval(r),t(!1)))},xg)}));J(this,"handleRefreshEntity",async(e,t)=>{var r;(r=this.invalidateCache)==null||r.call(this,"entity",e);const n=await this.waitForIdleState(e);this.postMessage(pt.REFRESH_ENTITY_RESPONSE,{id:t,data:{success:n}})});J(this,"handleFormPostRequest",(e,t,n,r)=>{const o=document.createElement("form");o.method="POST",o.action=t,r&&(o.target="_blank");for(const s in n){const i=document.createElement("input");i.type="hidden",i.name=s,i.value=n[s],o.appendChild(i)}document.body.appendChild(o),o.submit(),r&&document.body.removeChild(o),this.postMessage(pt.POSTFORMDATA_RESPONSE,{success:!0,id:e})});J(this,"handleUploadFileRequest",async(e,t)=>{var u;if(!this.performFileUpload){this.postMessage(pt.UPLOADFILE_RESPONSE,{error:"File upload not supported",id:e});return}const{file:n,isPublic:r=!1,fileName:o}=t,i=await(await fetch(n)).blob(),a=new File([i],o??`upload-${new Date().toISOString()}`,{type:i.type});a.$id=((u=this.createFileId)==null?void 0:u.call(this))??Wk();const l=await this.performFileUpload({file:a,id:a.$id,publicFile:r,source:"field_value",handleProgress:f=>{this.postMessage(pt.UPLOADFILE_PROGRESS,{fileId:f.id,progress:f.progress})},businessId:void 0});this.postMessage(pt.UPLOADFILE_RESPONSE,{data:l,id:e})});J(this,"waitForReadyState",(e,t,n=0)=>{e||t==null||t(!0),e!=null&&e()?t==null||t(!0):n<20?setTimeout(()=>{this.waitForReadyState(e,t,n+1)},n*50):t==null||t(!1)});J(this,"handleCallThirdPartyScript",(e,t=[])=>{if(e&&Rr[e]){const n=Rr[e],r=window[n];r==null||r(...t)}});J(this,"handleReleaseBlockingScript",()=>{var e;return(e=this.onReleaseBlockingScript)==null?void 0:e.call(this,this.executionPlugin)});J(this,"handlePromptRequest",(e,t,n=!1)=>{this.onShowModal?this.onShowModal({...t,pluginApiName:this.pluginApiName??"",dynamic:n},(r={})=>{this.postMessage(pt.PROMPT_RESPONSE,{id:e,data:r})}):this.postMessage(pt.PROMPT_RESPONSE,{id:e,data:{canceled:!0}})});J(this,"handleInstallThirdPartyScriptRequest",(e,t,n={})=>{var a;const r=zk(t);if(!r){this.postMessage(pt.INSTALL_THIRD_PARTY_SCRIPT_RESPONSE,{data:{success:!1,url:t},id:e});return}const o=Bk[r];o(n);const s=document.createElement("script");s.onload=()=>{this.waitForReadyState(fg[r],l=>{this.postMessage(pt.INSTALL_THIRD_PARTY_SCRIPT_RESPONSE,{data:{success:!0,url:t,matched:l},id:e})})},s.onerror=()=>{this.postMessage(pt.INSTALL_THIRD_PARTY_SCRIPT_RESPONSE,{data:{success:!1,url:t},id:e})},s.src=t,s.setAttribute("data-script-url",t),document.querySelectorAll('[data-script-url="'+t+'"]').length>0?this.waitForReadyState(fg[r],l=>{this.postMessage(pt.INSTALL_THIRD_PARTY_SCRIPT_RESPONSE,{data:{success:!0,url:t,reused:!0,matched:l},id:e})}):(a=document.documentElement.firstChild)==null||a.appendChild(s)});J(this,"handleOpenWindow",(e,t,n)=>{!eI(e)||t==="_blank"||!this.pushHistory?window.open(e,t,n):this.pushHistory(e)});J(this,"handleAuthorize",(e,t={})=>{var o,s;const n=new URLSearchParams;if(t.successRedirectPath&&n.append("success_redirect_path",t.successRedirectPath),t.errorRedirectPath&&n.append("error_redirect_path",t.errorRedirectPath),!this.appPath){(o=this.onError)==null||o.call(this,{message:"App path is not defined."});return}if(!this.pluginApiName){(s=this.onError)==null||s.call(this,{message:"Plugin API name is not defined."});return}const r=n.toString();this.handleOpenWindow(`${this.appPath}/external-integrations/business-plugin-apps/${this.pluginApiName}/services/${encodeURIComponent(e)}/authorize${r?`?${r}`:""}`,"_blank","")});J(this,"run",(e,t,n)=>{const r=Hk();this.postMessage(Se.RUN,{script:e,setup:t,args:n,sessionData:this.sessionData,pluginComponentId:this.pluginComponentId,pluginApiName:this.pluginApiName,location:r})});var t,n;this.scriptUIRef=e.scriptUIRef,this.onStateChange=e.onStateChange,this.done=e.done,this.onError=e.onError,this.onReleaseBlockingScript=e.onReleaseBlockingScript,this.worker=e.worker,this.worker.onmessage=this.handleMessage,this.plugin=e.plugin,this.executionPlugin=e.executionPlugin,this.onShowToast=e.onShowToast,this.onClearToasts=e.onClearToasts,this.pluginComponentId=e.pluginComponentId,this.onShowModal=e.onShowModal,this.onShowCreateRecordModal=e.onShowCreateRecordModal,this.onShowCreateRelatedRecordModal=e.onShowCreateRelatedRecordModal,this.onNetworkError=e.onNetworkError,this.onNetworkRequest=e.onNetworkRequest,this.invalidateCache=e.invalidateCache,this.getPendingCacheCount=e.getPendingCacheCount,this.createFileId=e.createFileId,this.performFileUpload=e.performFileUpload,this.pushHistory=e.pushHistory,this.appPath=e.appPath,this.plugin&&(this.frameId=`${GS}-${this.plugin.plugin_api_name}-${this.plugin.api_name}`),this.pluginApiName=((t=this.executionPlugin)==null?void 0:t.plugin_api_name)??((n=this.plugin)==null?void 0:n.plugin_api_name)??"",this.pluginApiName?(this.sessionData=e.sessionData[this.pluginApiName],this.setSessionData=r=>{var o;(o=e.setSessionData)==null||o.call(e,this.pluginApiName,r)}):this.setSessionData=()=>{var r;(r=this.onError)==null||r.call(this,{message:"Script must be associated with a plugin to use session data"})}}},bh=async({scriptBody:e,user:t,teamMember:n,business:r,onError:o,onReleaseBlockingScript:s,setLoadingState:i,clientObject:a,scriptUIRef:l,onStateChange:u,workerName:f,context:c,args:d="",plugin:h,onShowToast:m,onClearToasts:g,terminators:y,executionPlugin:p,sessionData:v,setSessionData:S,onShowModal:w,onShowCreateRecordModal:_,onShowCreateRelatedRecordModal:T,onNetworkError:I,onNetworkRequest:P,appPath:k,pushHistory:E,createFileId:A,performFileUpload:L,getPendingCacheCount:z,invalidateCache:U})=>{const B=Eh("script-runner-logging");let V;return f==="recordDetail"?V=new Worker(new URL("/assets/recordDetail.worker-Ccm59Np6.js",import.meta.url),{type:"module"}):f==="genericPlugin"?V=new Worker(new URL("/assets/generic.worker-CsqlYndL.js",import.meta.url),{type:"module"}):f==="floatingFramePlugin"?V=new Worker(new URL("/assets/floatingFrame.worker-DXcDBfqJ.js",import.meta.url),{type:"module"}):V=new Worker(new URL("/assets/calendarSource.worker-DF0wAwJR.js",import.meta.url),{type:"module"}),new Promise(W=>{var te,oe,re;const N=zl(e),j=zl(d);let O=`${(h==null?void 0:h.plugin_api_name)??""}-${(h==null?void 0:h.api_name)??""}-${String(N)}-${String(j)}`,M=`${(h==null?void 0:h.plugin_api_name)??""}-${(h==null?void 0:h.api_name)??""}`;p!=null&&p.field_type?(O=`${p.plugin_api_name??""}-${p.field_type}-${String(N)}-${String(j)}`,M=`${p.plugin_api_name??""}-${p.field_type??p.script_id}`):p&&(O=`${p.plugin_api_name??""}-${p.api_name}-${String(N)}-${String(j)}`,M=`${p.plugin_api_name??""}-${p.api_name}`),y.current[O]&&((te=y.current[O])==null||te.forEach(pe=>{pe()}),y.current[O]=[]),(oe=y.current)[O]??(oe[O]=[]),(re=y.current[O])==null||re.push(()=>{V.terminate()});const Q=new oI({worker:V,done:(pe,_e)=>{var Ue;i(!1),pe||((Ue=y.current[O])==null||Ue.forEach(zt=>{zt()}),y.current[O]=[]),W(_e)},onError:o,onReleaseBlockingScript:s,scriptUIRef:l,onStateChange:u,plugin:h,executionPlugin:p,onShowToast:m,onClearToasts:g,sessionData:v,setSessionData:S,pluginComponentId:M,onShowModal:w,onShowCreateRecordModal:_,onShowCreateRelatedRecordModal:T,onNetworkError:I,pushHistory:E,onNetworkRequest:P,appPath:k,createFileId:A,performFileUpload:L,getPendingCacheCount:z,invalidateCache:U});i(!0),Q.run(e,{...c,user:t,teamMember:n,business:r,clientObject:a,appPath:k,isDebug:B},d)})},wg=`integration:${Kf.RUN_FRAME_SCRIPT}`,cx=b.createContext(null),sI=({children:e})=>{const t=b.useRef({}),n=b.useCallback(()=>{Object.keys(t.current).forEach(r=>{var o;(o=t.current[r])==null||o.forEach(s=>{s()}),t.current[r]=[]})},[]);return b.useEffect(()=>()=>{n()},[n]),x.jsx(cx.Provider,{value:{terminators:t,cleanupWorkers:n},children:e})},Ph=()=>{const e=b.useContext(cx);if(!e)throw new Error("useTerminators must be used within a TerminatorsWrapper");return e},fx=b.createContext(null),iI=({children:e})=>{const[t,n]=b.useState({}),r=b.useCallback((o,s)=>{n(i=>({...i,[o]:{...i[o],...s}}))},[]);return x.jsx(fx.Provider,{value:{sessionData:t,setSessionData:r},children:e})},Rh=()=>{const e=b.useContext(fx);if(!e)throw new Error("useSessionData must be used within a SessionDataWrapper");return e},dx=b.createContext(null),aI=({children:e,bootstrapPlugins:t=[],userConfigs:n=[],user:r,teamMember:o,business:s,clientObject:i,appPath:a})=>{const[l,u]=b.useState(!1),[f,c]=b.useState({}),d=b.useMemo(()=>Object.values(f).some(y=>y.waitingOnRouteScript),[f]),h=b.useMemo(()=>t.reduce((y,p)=>({...y,[p.api_name]:p.id}),{}),[t]),m=b.useMemo(()=>n.reduce((y,p)=>({...y,[p.api_name]:p.config}),{}),[n]),g=b.useCallback(()=>{u(!0)},[]);return x.jsx(dx.Provider,{value:{installedPluginAPINamesToIds:h,userConfigsByApiName:m,user:r,teamMember:o,business:s,clientObject:i,appPath:a,onInitialBootstrap:g,setRouteScriptRunState:c},children:e({waitingOnRouteScript:d,hasFinishedBootstrapping:l})})},_u=()=>{const e=b.useContext(dx);if(!e)throw new Error("useAppState must be used within an AppStateWrapper");return e},hx=b.createContext(null),lI=({children:e})=>{const[t,n]=b.useState({}),r=b.useCallback(i=>a=>{n(l=>({...l,[i]:a(l[i]??{indicator:"none",hidden:!1,pending:!1})}))},[]),o=b.useCallback(i=>!i||!t[i]?{indicator:"none",hidden:!1,pending:!1}:{...t[i]},[t]),s=b.useMemo(()=>{const i=Object.keys(t);return i.length>0&&i.some(a=>{var l;return((l=t[a])==null?void 0:l.indicator)==="block"})},[t]);return x.jsx(hx.Provider,{value:{getRunnerStateUpdater:r,getRunnerState:o},children:e(s)})},px=()=>{const e=b.useContext(hx);if(!e)throw new Error("useRunnerState must be used within a RunnerStateWrapper");return e},mx=b.createContext(null),uI=({children:e,showing:t,showPrompt:n,show:r,onConfirm:o,onHide:s})=>{var _,T,I;const[i,a]=b.useState([]),[l,u]=b.useState([]),[f,c]=b.useState([]),d=b.useRef(void 0),h=b.useRef(void 0),m=b.useCallback((P,k)=>{a(E=>[...E,{config:P,cb:k}])},[]),g=b.useCallback((P,k)=>{u(E=>[...E,{objectId:P,cb:k}])},[]),y=b.useCallback((P,k,E)=>{c(A=>[...A,{objectId:P,relatedEntityId:k,cb:E}])},[]),p=b.useCallback(P=>{const k=l[0];k==null||k.cb(P),u(E=>E.slice(1))},[l]),v=b.useCallback(P=>{const k=f[0];k==null||k.cb(P),c(E=>E.slice(1))},[f]);b.useEffect(()=>{var P,k;i.length>0&&!t&&(d.current=(P=i[0])==null?void 0:P.config,h.current=(k=i[0])==null?void 0:k.cb,n())},[i,t,n]);const S=b.useCallback(()=>{d.current=void 0,h.current=void 0,a(P=>P.slice(1))},[]),w=b.useMemo(()=>({props:{show:r,onConfirm:P=>{o(),h.current&&h.current({canceled:!1,values:P}),S()},onHide:(P,...k)=>{s(...k),h.current&&h.current({canceled:!0,values:{},eventSource:P}),S()}},config:d.current??{}}),[o,s,r,S]);return x.jsx(mx.Provider,{value:{modalState:w,showModal:m,showCreateRecordModal:g,showCreateRelatedRecordModal:y,onCreateRecordComplete:p,onCreateRelatedRecordComplete:v},children:e({showPluginModal:w.props.show,pluginApiName:w.config.pluginApiName??"",handleShowModal:m,handleShowCreateRecordModal:g,handleShowCreateRelatedRecordModal:y,derivedModalState:w,handleCreateRecordComplete:p,handleCreateRelatedRecordComplete:v,showCreateRecordModal:l.length>0,createRecordModalObjectId:((_=l[0])==null?void 0:_.objectId)??"",showCreateRelatedRecordModal:f.length>0,createRelatedRecordModalObjectId:((T=f[0])==null?void 0:T.objectId)??"",createRelatedRecordModalRelatedEntityId:((I=f[0])==null?void 0:I.relatedEntityId)??""})})},Ch=()=>{const e=b.useContext(mx);if(!e)throw new Error("useModals must be used within a ModalsWrapper");return e},gx=b.createContext(null),cI=({children:e,monitoringExceptionHelper:t})=>{const n=b.useCallback((r,o)=>{t(r,{extra:o})},[t]);return x.jsx(gx.Provider,{value:{sendException:n},children:e})},kh=()=>{const e=b.useContext(gx);if(!e)throw new Error("useMonitoring must be used within an MonitoringWrapper");return e},vx=b.createContext(null),fI=({children:e,onNavigate:t})=>{const n=b.useCallback(o=>{t(o,{replace:!1})},[t]),r=b.useCallback(o=>{t(o,{replace:!0})},[t]);return x.jsx(vx.Provider,{value:{push:n,replace:r},children:e})},Th=()=>{const e=b.useContext(vx);if(!e)throw new Error("useHistory must be used within an HistoryWrapper");return e},yx=b.createContext(null),dI=({children:e,performRequest:t,createFileId:n,performFileUpload:r,getPendingCacheCount:o,invalidateCache:s})=>x.jsx(yx.Provider,{value:{performRequest:t,createFileId:n,performFileUpload:r,getPendingCacheCount:o,invalidateCache:s},children:e}),Ih=()=>{const e=b.useContext(yx);if(!e)throw new Error("useNetwork must be used within a NetworkWrapper");return e},Sx=e=>e,xx=b.createContext({t:Sx}),hI=e=>{const{children:t,t:n=Sx}=e;return x.jsx(xx.Provider,{value:{t:n},children:t})},Fs=()=>b.useContext(xx),wx=b.createContext(null),pI=({children:e,showToast:t,clearToasts:n})=>x.jsx(wx.Provider,{value:{showToast:t,clearToasts:n},children:e}),Ds=()=>{const e=b.useContext(wx);if(!e)throw new Error("useToast must be used within a ToastWrapper");return e},mI=({onError:e,scriptUIRef:t,plugin:n,onChangeMinimized:r})=>{const{terminators:o}=Ph(),{sessionData:s,setSessionData:i}=Rh(),{installedPluginAPINamesToIds:a,userConfigsByApiName:l,user:u,teamMember:f,business:c,clientObject:d,appPath:h}=_u(),{showModal:m,showCreateRecordModal:g,showCreateRelatedRecordModal:y}=Ch(),{sendException:p}=kh(),{showToast:v,clearToasts:S}=Ds(),w=Th(),{performRequest:_,createFileId:T,performFileUpload:I,getPendingCacheCount:P,invalidateCache:k}=Ih(),{t:E}=Fs(),[A,L]=b.useState(!1),[z,U]=b.useState({indicator:"none",hidden:!0,triggerHidden:!1,hideHeader:!1}),B=b.useRef(!1),[V,W]=b.useState(!1);A&&!B.current&&(B.current=!0),!A&&B.current&&!V&&W(!0);const N=b.useCallback(O=>{e==null||e(O);const M=(O==null?void 0:O.message)??"Unknown plugin error";p(new Error(M),{error:O,workerName:"floatingFrame",pluginApiName:n.plugin_api_name})},[e,n,p]);return[b.useCallback((O,M)=>{let Q="";try{const te=a[n.plugin_api_name];Q=JSON.stringify({...M,pluginId:te,__kizen_user_config:l[n.plugin_api_name]})}catch{N({message:E("Arguments passed to the script are invalid")})}return bh({user:u,teamMember:f,business:c,onError:N,setLoadingState:(...te)=>{su.flushSync(()=>{L(...te)})},scriptBody:O,clientObject:d,scriptUIRef:t,onStateChange:te=>{const{minimized:oe,...re}=te;typeof oe=="boolean"&&(r==null||r(oe)),U(pe=>({...pe,...re}))},workerName:"floatingFramePlugin",args:Q,pushHistory:w.push,plugin:n,onShowToast:v,onClearToasts:S,terminators:o,sessionData:s,setSessionData:i,onShowModal:m,onShowCreateRecordModal:g,onShowCreateRelatedRecordModal:y,appPath:h,onNetworkRequest:_,createFileId:T,performFileUpload:I,getPendingCacheCount:P,invalidateCache:k})},[u,f,c,a,d,t,w,n,r,v,S,o,s,i,N,U,l,m,g,y,_,h,T,I,P,k,E]),{...z,pending:V?!1:A}]},Ah=({onError:e,scriptUIRef:t,plugin:n})=>{const{terminators:r}=Ph(),{sessionData:o,setSessionData:s}=Rh(),{installedPluginAPINamesToIds:i,userConfigsByApiName:a,user:l,teamMember:u,business:f,clientObject:c,appPath:d}=_u(),{getRunnerState:h,getRunnerStateUpdater:m}=px(),{showModal:g,showCreateRecordModal:y}=Ch(),{sendException:p}=kh(),{showToast:v,clearToasts:S}=Ds(),w=Th(),{performRequest:_,createFileId:T,performFileUpload:I,getPendingCacheCount:P,invalidateCache:k}=Ih(),{t:E}=Fs(),[A,L]=b.useState(!1),[z,U]=b.useState(void 0),B=b.useCallback((W,N)=>{e==null||e(W);const j=(W==null?void 0:W.message)??"Unknown plugin error";p(new Error(j),{error:W,workerName:"genericPlugin",pluginApiName:(n==null?void 0:n.plugin_api_name)??(N==null?void 0:N.plugin_api_name)??""})},[e,n,p]);return[b.useCallback((W,N,j)=>{let O="";const M=KS(j);U(M);try{const Q=i[(n==null?void 0:n.plugin_api_name)??(j==null?void 0:j.plugin_api_name)??""];O=JSON.stringify({...N,pluginId:Q,__kizen_user_config:a[(n==null?void 0:n.plugin_api_name)??(j==null?void 0:j.plugin_api_name)??""]})}catch{B({message:E("Arguments passed to the script are invalid")})}return bh({user:l,teamMember:u,business:f,onError:B,setLoadingState:L,scriptBody:W,clientObject:c,scriptUIRef:t,onStateChange:Q=>{m(M)(te=>({...te,...Q}))},workerName:"genericPlugin",args:O,pushHistory:w.push,onShowToast:v,onClearToasts:S,terminators:r,plugin:n,executionPlugin:j,sessionData:o,setSessionData:s,onShowModal:g,onShowCreateRecordModal:y,onShowCreateRelatedRecordModal:()=>{},appPath:d,onNetworkRequest:_,createFileId:T,performFileUpload:I,getPendingCacheCount:P,invalidateCache:k})},[l,u,i,f,c,t,w,v,S,r,n,o,s,B,m,a,g,y,_,d,T,I,P,k,E]),{...h(z),pending:A}]},gI=({entityId:e,objectId:t,onError:n,scriptUIRef:r,onReleaseBlockingScript:o})=>{const{terminators:s}=Ph(),{sessionData:i,setSessionData:a}=Rh(),{installedPluginAPINamesToIds:l,userConfigsByApiName:u,user:f,teamMember:c,business:d,clientObject:h,appPath:m}=_u(),{getRunnerState:g,getRunnerStateUpdater:y}=px(),{showModal:p,showCreateRecordModal:v,showCreateRelatedRecordModal:S}=Ch(),{sendException:w}=kh(),{showToast:_,clearToasts:T}=Ds(),I=Th(),{performRequest:P,createFileId:k,performFileUpload:E,getPendingCacheCount:A,invalidateCache:L}=Ih(),{t:z}=Fs(),[U,B]=b.useState(!1),[V,W]=b.useState(void 0),N=b.useCallback((O,M)=>{n==null||n(O);const Q=(O==null?void 0:O.message)??"Unknown plugin error";w(new Error(Q),{error:O,workerName:"recordDetail",pluginApiName:(M==null?void 0:M.plugin_api_name)??"",objectId:t,entityId:e})},[n,t,e,w]);return[b.useCallback((O,M,Q,te)=>{let oe="";try{const pe=l[(Q==null?void 0:Q.plugin_api_name)??""];oe=JSON.stringify({...M,pluginId:pe,__kizen_user_config:u[(Q==null?void 0:Q.plugin_api_name)??""]})}catch{N({message:z("Arguments passed to the script are invalid")},Q)}const re=KS(Q);return W(re),bh({user:f,teamMember:c,business:d,onReleaseBlockingScript:o,onError:pe=>{N(pe,Q)},setLoadingState:B,scriptBody:O,clientObject:h,scriptUIRef:r,onStateChange:pe=>{y(re)(_e=>({..._e,...pe}))},workerName:"recordDetail",args:oe,context:te??{entityId:e,objectId:t},pushHistory:I.push,onShowToast:_,onClearToasts:T,terminators:s,executionPlugin:Q,sessionData:i,setSessionData:a,onShowModal:p,onShowCreateRecordModal:v,onShowCreateRelatedRecordModal:S,appPath:m,onNetworkRequest:P,createFileId:k,performFileUpload:E,getPendingCacheCount:A,invalidateCache:L})},[f,c,l,d,e,t,h,r,I,_,T,s,i,a,p,v,S,o,N,y,u,P,m,k,E,A,L,z]),{...g(V),pending:U}]},_x=(e,t)=>{const{showToast:n}=Ds(),{t:r}=Fs(),o=b.useRef(null),s=b.useRef(null),i=e==null?void 0:e.css,a=b.useMemo(()=>{const d=e==null?void 0:e.html;return d?nx.sanitize(d):null},[e]),l=b.useMemo(()=>(e==null?void 0:e.event_scripts)??{},[e]),[u,{pending:f}]=Ah({onError:d=>{n({message:`${r("Script could not be executed:")} ${(d==null?void 0:d.message)??"Unknown Error"}`,variant:"failure"})},scriptUIRef:o,plugin:e}),c=b.useCallback(d=>{if(d.preventDefault(),d.stopPropagation(),!f){const m=d.target.getAttribute("data-script");m&&l[m]&&u(l[m],t)}},[f,u,l,t]);return b.useEffect(()=>{const d=s.current;return d&&d.addEventListener("click",c),()=>{d&&d.removeEventListener("click",c)}},[c,e]),{scopedCss:`
632
+ `+g+"}":"{"+y.join(",")+"}",r=g,h}}t.exports=function(u,f,c){var d;if(r="",o="",typeof c=="number")for(d=0;d<c;d+=1)o+=" ";else typeof c=="string"&&(o=c);if(i=f,f&&typeof f!="function"&&(typeof f!="object"||typeof f.length!="number"))throw new Error("JSON.stringify");return l("",{"":u})}}}),ET=ne({"node_modules/.pnpm/jsonify@0.0.1/node_modules/jsonify/index.js"(e){e.parse=wT(),e.stringify=_T()}}),bT=ne({"node_modules/.pnpm/isarray@2.0.5/node_modules/isarray/index.js"(e,t){var n={}.toString;t.exports=Array.isArray||function(r){return n.call(r)=="[object Array]"}}}),rS=ne({"node_modules/.pnpm/object-keys@1.1.1/node_modules/object-keys/isArguments.js"(e,t){var n=Object.prototype.toString;t.exports=function(o){var s=n.call(o),i=s==="[object Arguments]";return i||(i=s!=="[object Array]"&&o!==null&&typeof o=="object"&&typeof o.length=="number"&&o.length>=0&&n.call(o.callee)==="[object Function]"),i}}}),PT=ne({"node_modules/.pnpm/object-keys@1.1.1/node_modules/object-keys/implementation.js"(e,t){var n;Object.keys||(r=Object.prototype.hasOwnProperty,o=Object.prototype.toString,s=rS(),i=Object.prototype.propertyIsEnumerable,a=!i.call({toString:null},"toString"),l=i.call(function(){},"prototype"),u=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],f=function(m){var g=m.constructor;return g&&g.prototype===m},c={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},d=function(){if(typeof window>"u")return!1;for(var m in window)try{if(!c["$"+m]&&r.call(window,m)&&window[m]!==null&&typeof window[m]=="object")try{f(window[m])}catch{return!0}}catch{return!0}return!1}(),h=function(m){if(typeof window>"u"||!d)return f(m);try{return f(m)}catch{return!1}},n=function(g){var y=g!==null&&typeof g=="object",p=o.call(g)==="[object Function]",v=s(g),S=y&&o.call(g)==="[object String]",w=[];if(!y&&!p&&!v)throw new TypeError("Object.keys called on a non-object");var _=l&&p;if(S&&g.length>0&&!r.call(g,0))for(var T=0;T<g.length;++T)w.push(String(T));if(v&&g.length>0)for(var I=0;I<g.length;++I)w.push(String(I));else for(var P in g)!(_&&P==="prototype")&&r.call(g,P)&&w.push(String(P));if(a)for(var k=h(g),E=0;E<u.length;++E)!(k&&u[E]==="constructor")&&r.call(g,u[E])&&w.push(u[E]);return w});var r,o,s,i,a,l,u,f,c,d,h;t.exports=n}}),RT=ne({"node_modules/.pnpm/object-keys@1.1.1/node_modules/object-keys/index.js"(e,t){var n=Array.prototype.slice,r=rS(),o=Object.keys,s=o?function(l){return o(l)}:PT(),i=Object.keys;s.shim=function(){if(Object.keys){var l=function(){var u=Object.keys(arguments);return u&&u.length===arguments.length}(1,2);l||(Object.keys=function(f){return r(f)?i(n.call(f)):i(f)})}else Object.keys=s;return Object.keys||s},t.exports=s}}),oS=ne({"node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js"(e,t){t.exports=Object}}),CT=ne({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js"(e,t){t.exports=Error}}),kT=ne({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js"(e,t){t.exports=EvalError}}),TT=ne({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js"(e,t){t.exports=RangeError}}),IT=ne({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js"(e,t){t.exports=ReferenceError}}),sS=ne({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js"(e,t){t.exports=SyntaxError}}),Su=ne({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.js"(e,t){t.exports=TypeError}}),AT=ne({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js"(e,t){t.exports=URIError}}),NT=ne({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/abs.js"(e,t){t.exports=Math.abs}}),OT=ne({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.js"(e,t){t.exports=Math.floor}}),MT=ne({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.js"(e,t){t.exports=Math.max}}),LT=ne({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.js"(e,t){t.exports=Math.min}}),jT=ne({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.js"(e,t){t.exports=Math.pow}}),FT=ne({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/round.js"(e,t){t.exports=Math.round}}),DT=ne({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/isNaN.js"(e,t){t.exports=Number.isNaN||function(r){return r!==r}}}),$T=ne({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/sign.js"(e,t){var n=DT();t.exports=function(o){return n(o)||o===0?o:o<0?-1:1}}}),UT=ne({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/gOPD.js"(e,t){t.exports=Object.getOwnPropertyDescriptor}}),xu=ne({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.js"(e,t){var n=UT();if(n)try{n([],"length")}catch{n=null}t.exports=n}}),wu=ne({"node_modules/.pnpm/es-define-property@1.0.1/node_modules/es-define-property/index.js"(e,t){var n=Object.defineProperty||!1;if(n)try{n({},"a",{value:1})}catch{n=!1}t.exports=n}}),zT=ne({"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/shams.js"(e,t){t.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},o=Symbol("test"),s=Object(o);if(typeof o=="string"||Object.prototype.toString.call(o)!=="[object Symbol]"||Object.prototype.toString.call(s)!=="[object Symbol]")return!1;var i=42;r[o]=i;for(var a in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var l=Object.getOwnPropertySymbols(r);if(l.length!==1||l[0]!==o||!Object.prototype.propertyIsEnumerable.call(r,o))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var u=Object.getOwnPropertyDescriptor(r,o);if(u.value!==i||u.enumerable!==!0)return!1}return!0}}}),BT=ne({"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/index.js"(e,t){var n=typeof Symbol<"u"&&Symbol,r=zT();t.exports=function(){return typeof n!="function"||typeof Symbol!="function"||typeof n("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:r()}}}),iS=ne({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Reflect.getPrototypeOf.js"(e,t){t.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null}}),aS=ne({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Object.getPrototypeOf.js"(e,t){var n=oS();t.exports=n.getPrototypeOf||null}}),HT=ne({"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.js"(e,t){var n="Function.prototype.bind called on incompatible ",r=Object.prototype.toString,o=Math.max,s="[object Function]",i=function(f,c){for(var d=[],h=0;h<f.length;h+=1)d[h]=f[h];for(var m=0;m<c.length;m+=1)d[m+f.length]=c[m];return d},a=function(f,c){for(var d=[],h=c,m=0;h<f.length;h+=1,m+=1)d[m]=f[h];return d},l=function(u,f){for(var c="",d=0;d<u.length;d+=1)c+=u[d],d+1<u.length&&(c+=f);return c};t.exports=function(f){var c=this;if(typeof c!="function"||r.apply(c)!==s)throw new TypeError(n+c);for(var d=a(arguments,1),h,m=function(){if(this instanceof h){var S=c.apply(this,i(d,arguments));return Object(S)===S?S:this}return c.apply(f,i(d,arguments))},g=o(0,c.length-d.length),y=[],p=0;p<g;p++)y[p]="$"+p;if(h=Function("binder","return function ("+l(y,",")+"){ return binder.apply(this,arguments); }")(m),c.prototype){var v=function(){};v.prototype=c.prototype,h.prototype=new v,v.prototype=null}return h}}}),fa=ne({"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js"(e,t){var n=HT();t.exports=Function.prototype.bind||n}}),xh=ne({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionCall.js"(e,t){t.exports=Function.prototype.call}}),wh=ne({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionApply.js"(e,t){t.exports=Function.prototype.apply}}),WT=ne({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/reflectApply.js"(e,t){t.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply}}),lS=ne({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/actualApply.js"(e,t){var n=fa(),r=wh(),o=xh(),s=WT();t.exports=s||n.call(o,r)}}),_h=ne({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/index.js"(e,t){var n=fa(),r=Su(),o=xh(),s=lS();t.exports=function(a){if(a.length<1||typeof a[0]!="function")throw new r("a function is required");return s(n,o,a)}}}),VT=ne({"node_modules/.pnpm/dunder-proto@1.0.1/node_modules/dunder-proto/get.js"(e,t){var n=_h(),r=xu(),o;try{o=[].__proto__===Array.prototype}catch(l){if(!l||typeof l!="object"||!("code"in l)||l.code!=="ERR_PROTO_ACCESS")throw l}var s=!!o&&r&&r(Object.prototype,"__proto__"),i=Object,a=i.getPrototypeOf;t.exports=s&&typeof s.get=="function"?n([s.get]):typeof a=="function"?function(u){return a(u==null?u:i(u))}:!1}}),QT=ne({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/index.js"(e,t){var n=iS(),r=aS(),o=VT();t.exports=n?function(i){return n(i)}:r?function(i){if(!i||typeof i!="object"&&typeof i!="function")throw new TypeError("getProto: not an object");return r(i)}:o?function(i){return o(i)}:null}}),qT=ne({"node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js"(e,t){var n=Function.prototype.call,r=Object.prototype.hasOwnProperty,o=fa();t.exports=o.call(n,r)}}),uS=ne({"node_modules/.pnpm/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.js"(e,t){var n,r=oS(),o=CT(),s=kT(),i=TT(),a=IT(),l=sS(),u=Su(),f=AT(),c=NT(),d=OT(),h=MT(),m=LT(),g=jT(),y=FT(),p=$T(),v=Function,S=function(je){try{return v('"use strict"; return ('+je+").constructor;")()}catch{}},w=xu(),_=wu(),T=function(){throw new u},I=w?function(){try{return arguments.callee,T}catch{try{return w(arguments,"callee").get}catch{return T}}}():T,P=BT()(),k=QT(),E=aS(),A=iS(),L=wh(),z=xh(),U={},B=typeof Uint8Array>"u"||!k?n:k(Uint8Array),V={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?n:ArrayBuffer,"%ArrayIteratorPrototype%":P&&k?k([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":U,"%AsyncGenerator%":U,"%AsyncGeneratorFunction%":U,"%AsyncIteratorPrototype%":U,"%Atomics%":typeof Atomics>"u"?n:Atomics,"%BigInt%":typeof BigInt>"u"?n:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?n:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":s,"%Float16Array%":typeof Float16Array>"u"?n:Float16Array,"%Float32Array%":typeof Float32Array>"u"?n:Float32Array,"%Float64Array%":typeof Float64Array>"u"?n:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?n:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":U,"%Int8Array%":typeof Int8Array>"u"?n:Int8Array,"%Int16Array%":typeof Int16Array>"u"?n:Int16Array,"%Int32Array%":typeof Int32Array>"u"?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":P&&k?k(k([][Symbol.iterator]())):n,"%JSON%":typeof JSON=="object"?JSON:n,"%Map%":typeof Map>"u"?n:Map,"%MapIteratorPrototype%":typeof Map>"u"||!P||!k?n:k(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":r,"%Object.getOwnPropertyDescriptor%":w,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?n:Promise,"%Proxy%":typeof Proxy>"u"?n:Proxy,"%RangeError%":i,"%ReferenceError%":a,"%Reflect%":typeof Reflect>"u"?n:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?n:Set,"%SetIteratorPrototype%":typeof Set>"u"||!P||!k?n:k(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":P&&k?k(""[Symbol.iterator]()):n,"%Symbol%":P?Symbol:n,"%SyntaxError%":l,"%ThrowTypeError%":I,"%TypedArray%":B,"%TypeError%":u,"%Uint8Array%":typeof Uint8Array>"u"?n:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?n:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?n:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?n:Uint32Array,"%URIError%":f,"%WeakMap%":typeof WeakMap>"u"?n:WeakMap,"%WeakRef%":typeof WeakRef>"u"?n:WeakRef,"%WeakSet%":typeof WeakSet>"u"?n:WeakSet,"%Function.prototype.call%":z,"%Function.prototype.apply%":L,"%Object.defineProperty%":_,"%Object.getPrototypeOf%":E,"%Math.abs%":c,"%Math.floor%":d,"%Math.max%":h,"%Math.min%":m,"%Math.pow%":g,"%Math.round%":y,"%Math.sign%":p,"%Reflect.getPrototypeOf%":A};if(k)try{null.error}catch(je){W=k(k(je)),V["%Error.prototype%"]=W}var W,N=function je(ce){var me;if(ce==="%AsyncFunction%")me=S("async function () {}");else if(ce==="%GeneratorFunction%")me=S("function* () {}");else if(ce==="%AsyncGeneratorFunction%")me=S("async function* () {}");else if(ce==="%AsyncGenerator%"){var ge=je("%AsyncGeneratorFunction%");ge&&(me=ge.prototype)}else if(ce==="%AsyncIteratorPrototype%"){var we=je("%AsyncGenerator%");we&&k&&(me=k(we.prototype))}return V[ce]=me,me},j={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},O=fa(),M=qT(),Q=O.call(z,Array.prototype.concat),te=O.call(L,Array.prototype.splice),oe=O.call(z,String.prototype.replace),re=O.call(z,String.prototype.slice),pe=O.call(z,RegExp.prototype.exec),_e=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Ue=/\\(\\)?/g,zt=function(ce){var me=re(ce,0,1),ge=re(ce,-1);if(me==="%"&&ge!=="%")throw new l("invalid intrinsic syntax, expected closing `%`");if(ge==="%"&&me!=="%")throw new l("invalid intrinsic syntax, expected opening `%`");var we=[];return oe(ce,_e,function(Qe,He,ye,qe){we[we.length]=ye?oe(qe,Ue,"$1"):He||Qe}),we},en=function(ce,me){var ge=ce,we;if(M(j,ge)&&(we=j[ge],ge="%"+we[0]+"%"),M(V,ge)){var Qe=V[ge];if(Qe===U&&(Qe=N(ge)),typeof Qe>"u"&&!me)throw new u("intrinsic "+ce+" exists, but is not available. Please file an issue!");return{alias:we,name:ge,value:Qe}}throw new l("intrinsic "+ce+" does not exist!")};t.exports=function(ce,me){if(typeof ce!="string"||ce.length===0)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof me!="boolean")throw new u('"allowMissing" argument must be a boolean');if(pe(/^%?[^%]*%?$/,ce)===null)throw new l("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var ge=zt(ce),we=ge.length>0?ge[0]:"",Qe=en("%"+we+"%",me),He=Qe.name,ye=Qe.value,qe=!1,Bt=Qe.alias;Bt&&(we=Bt[0],te(ge,Q([0,1],Bt)));for(var Ye=1,yt=!0;Ye<ge.length;Ye+=1){var et=ge[Ye],ae=re(et,0,1),Ee=re(et,-1);if((ae==='"'||ae==="'"||ae==="`"||Ee==='"'||Ee==="'"||Ee==="`")&&ae!==Ee)throw new l("property names with quotes must have matching quotes");if((et==="constructor"||!yt)&&(qe=!0),we+="."+et,He="%"+we+"%",M(V,He))ye=V[He];else if(ye!=null){if(!(et in ye)){if(!me)throw new u("base intrinsic for "+ce+" exists, but the property is not available.");return}if(w&&Ye+1>=ge.length){var ze=w(ye,et);yt=!!ze,yt&&"get"in ze&&!("originalValue"in ze.get)?ye=ze.get:ye=ye[et]}else yt=M(ye,et),ye=ye[et];yt&&!qe&&(V[He]=ye)}}return ye}}}),GT=ne({"node_modules/.pnpm/define-data-property@1.1.4/node_modules/define-data-property/index.js"(e,t){var n=wu(),r=sS(),o=Su(),s=xu();t.exports=function(a,l,u){if(!a||typeof a!="object"&&typeof a!="function")throw new o("`obj` must be an object or a function`");if(typeof l!="string"&&typeof l!="symbol")throw new o("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new o("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new o("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new o("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new o("`loose`, if provided, must be a boolean");var f=arguments.length>3?arguments[3]:null,c=arguments.length>4?arguments[4]:null,d=arguments.length>5?arguments[5]:null,h=arguments.length>6?arguments[6]:!1,m=!!s&&s(a,l);if(n)n(a,l,{configurable:d===null&&m?m.configurable:!d,enumerable:f===null&&m?m.enumerable:!f,value:u,writable:c===null&&m?m.writable:!c});else if(h||!f&&!c&&!d)a[l]=u;else throw new r("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}}}),KT=ne({"node_modules/.pnpm/has-property-descriptors@1.0.2/node_modules/has-property-descriptors/index.js"(e,t){var n=wu(),r=function(){return!!n};r.hasArrayLengthDefineBug=function(){if(!n)return null;try{return n([],"length",{value:1}).length!==1}catch{return!0}},t.exports=r}}),YT=ne({"node_modules/.pnpm/set-function-length@1.2.2/node_modules/set-function-length/index.js"(e,t){var n=uS(),r=GT(),o=KT()(),s=xu(),i=Su(),a=n("%Math.floor%");t.exports=function(u,f){if(typeof u!="function")throw new i("`fn` is not a function");if(typeof f!="number"||f<0||f>4294967295||a(f)!==f)throw new i("`length` must be a positive 32-bit integer");var c=arguments.length>2&&!!arguments[2],d=!0,h=!0;if("length"in u&&s){var m=s(u,"length");m&&!m.configurable&&(d=!1),m&&!m.writable&&(h=!1)}return(d||h||!c)&&(o?r(u,"length",f,!0,!0):r(u,"length",f)),u}}}),XT=ne({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/applyBind.js"(e,t){var n=fa(),r=wh(),o=lS();t.exports=function(){return o(n,r,arguments)}}}),JT=ne({"node_modules/.pnpm/call-bind@1.0.8/node_modules/call-bind/index.js"(e,t){var n=YT(),r=wu(),o=_h(),s=XT();t.exports=function(a){var l=o(arguments),u=a.length-(arguments.length-1);return n(l,1+(u>0?u:0),!0)},r?r(t.exports,"apply",{value:s}):t.exports.apply=s}}),ZT=ne({"node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound/index.js"(e,t){var n=uS(),r=_h(),o=r([n("%String.prototype.indexOf%")]);t.exports=function(i,a){var l=n(i,!!a);return typeof l=="function"&&o(i,".prototype.")>-1?r([l]):l}}}),eI=ne({"node_modules/.pnpm/json-stable-stringify@1.3.0/node_modules/json-stable-stringify/index.js"(e,t){var n=(typeof JSON<"u"?JSON:ET()).stringify,r=bT(),o=RT(),s=JT(),i=ZT(),a=i("Array.prototype.join"),l=i("Array.prototype.indexOf"),u=i("Array.prototype.splice"),f=i("Array.prototype.sort"),c=function(m,g){for(var y="",p=0;p<m;p+=1)y+=g;return y},d=function(h,m,g){return g};t.exports=function(m){var g=arguments.length>1?arguments[1]:void 0,y=g&&g.space||"";typeof y=="number"&&(y=c(y," "));var p=!!g&&typeof g.cycles=="boolean"&&g.cycles,v=g&&g.replacer?s(g.replacer):d;if(g&&typeof g.collapseEmpty<"u"&&typeof g.collapseEmpty!="boolean")throw new TypeError("`collapseEmpty` must be a boolean, if provided");var S=!!g&&g.collapseEmpty,w=typeof g=="function"?g:g&&g.cmp,_=w&&function(I){var P=w.length>2&&function(E){return I[E]};return function(k,E){return w({key:k,value:I[k]},{key:E,value:I[E]},P?{__proto__:null,get:P}:void 0)}},T=[];return function I(P,k,E,A){var L=y?`
633
+ `+c(A,y):"",z=y?": ":":";if(E&&E.toJSON&&typeof E.toJSON=="function"&&(E=E.toJSON()),E=v(P,k,E),E!==void 0){if(typeof E!="object"||E===null)return n(E);var U=function(M,Q){return S&&M.length===0?Q:(Q==="[]"?"[":"{")+a(M,",")+L+(Q==="[]"?"]":"}")};if(r(E)){for(var N=[],B=0;B<E.length;B++){var V=I(E,B,E[B],A+1)||n(null);N[N.length]=L+y+V}return U(N,"[]")}if(l(T,E)!==-1){if(p)return n("__cycle__");throw new TypeError("Converting circular structure to JSON")}else T[T.length]=E;for(var W=f(o(E),_&&_(E)),N=[],B=0;B<W.length;B++){var k=W[B],j=I(E,k,E[k],A+1);if(j){var O=n(k)+z+j;N[N.length]=L+y+O}}return u(T,l(T,E),1),U(N,"{}")}}({"":m},"",m,0)}}}),tI=Zk(eI()),Eh=e=>localStorage.getItem(`kizen-flag-${e}`)==="true",Bl=(e="")=>e.split("").reduce((t,n)=>(t<<5)-t+n.charCodeAt(0)|0,0),nI=e=>{try{return Bl((0,tI.default)(e))}catch(t){return Eh("script-runner-logging")&&console.warn("Failed to stringify object for hashing:",t),Bl(String(Math.random()))}},rI=e=>e.startsWith("/"),oI=["microphone","speaker-selection","autoplay","camera","display-capture","hid"],sI=["allow-popups","allow-scripts","allow-same-origin"],iI=3e4,xg=100,aI=class{constructor(e){J(this,"worker");J(this,"scriptUIRef");J(this,"onStateChange");J(this,"done");J(this,"onError");J(this,"waitForFrame",!1);J(this,"plugin");J(this,"executionPlugin");J(this,"frameId");J(this,"onShowToast");J(this,"onClearToasts");J(this,"sessionData",{});J(this,"setSessionData");J(this,"pluginComponentId");J(this,"onShowModal");J(this,"onShowCreateRecordModal");J(this,"onShowCreateRelatedRecordModal");J(this,"onReleaseBlockingScript");J(this,"pluginApiName");J(this,"onNetworkError");J(this,"onNetworkRequest");J(this,"invalidateCache");J(this,"getPendingCacheCount");J(this,"createFileId");J(this,"performFileUpload");J(this,"pushHistory");J(this,"appPath");J(this,"handleMessage",async e=>{var r,o,s,i,a,l,u,f;const t=JSON.parse(e.data),{action:n}=t;switch(n){case Se.QUERY_REQUEST:{const c=t;await this.handleQueryRequest(c.id,c.method,c.url,c.payload,c.options);return}case Se.UI_OUTPUT:{const c=t;this.handleUIOutput(c.markup);return}case Se.IFRAME_OUTPUT:{const c=t;this.handleIframeOutput(c.url,c.allow,c.sandbox,c.preserve);return}case Se.POSTFORMDATA_REQUEST:{const c=t;this.handleFormPostRequest(c.id,c.url,c.payload,c.createNewTab);return}case Se.UPLOADFILE_REQUEST:{const c=t;await this.handleUploadFileRequest(c.id,c.payload);return}case Se.SETSTATE:{const c=t;(r=this.onStateChange)==null||r.call(this,c.state);return}case Se.DONE:{const c=t;this.handleDone(c.preserve,c.result);return}case pt.ERROR:{const c=t;(o=this.onError)==null||o.call(this,{message:c.error});return}case Se.OPEN_WINDOW:{const c=t;this.handleOpenWindow(c.url,c.target,c.features);return}case Se.COMMUNICATE:{const c=t;this.handleCommunication(c.type,c.recipient,c.args,c.params);return}case Se.HIDE:{const c=t,{config:d}=c;let h=!1;d.hideTrigger&&(h=!0),(s=this.onStateChange)==null||s.call(this,{hidden:!0,triggerHidden:h});return}case Se.SHOW:{const c=t,{config:d}=c;let h=!1;d.showTrigger===!1&&(h=!0),(i=this.onStateChange)==null||i.call(this,{hidden:!1,triggerHidden:h});return}case Se.EXPAND:{(a=this.onStateChange)==null||a.call(this,{minimized:!1});return}case Se.COLLAPSE:{(l=this.onStateChange)==null||l.call(this,{minimized:!0});return}case Se.HIDE_HEADER:{(u=this.onStateChange)==null||u.call(this,{hideHeader:!0});return}case Se.SHOW_HEADER:{(f=this.onStateChange)==null||f.call(this,{hideHeader:!1});return}case Se.COPY_TO_CLIPBOARD:{const c=t;await this.copyToClipboard(c.text);return}case Se.OPEN_CREATE_RECORD_MODAL_REQUEST:{const c=t;this.handleCreateRecordRequest(c.id,c.entityId);return}case Se.OPEN_CREATE_RELATED_RECORD_MODAL_REQUEST:{const c=t;this.handleCreateRelatedRecordRequest(c.id,c.objectId,c.relatedEntityId);return}case Se.SHOW_TOAST:{const c=t;this.showToast(c.message,c.toastOptions);return}case Se.CLEAR_TOASTS:{this.clearToasts();return}case Se.REFRESH_TIMELINE:{const c=t;this.handleRefreshTimeline(c.entityId);return}case Se.REFRESH_ENTITY:{const c=t;await this.handleRefreshEntity(c.entityId,c.id);return}case Se.UPDATE_SESSION_DATA:{const c=t;this.handleSetSessionData(c.update);return}case Se.INSTALL_THIRD_PARTY_SCRIPT_REQUEST:{const c=t;this.handleInstallThirdPartyScriptRequest(c.id,c.url,c.args);return}case Se.PROMPT_REQUEST:{const c=t;this.handlePromptRequest(c.id,c.config,!1);return}case Se.DYNAMIC_PROMPT_REQUEST:{const c=t;this.handlePromptRequest(c.id,c.config,!0);return}case Se.RELEASE_BLOCKING_SCRIPT:{this.handleReleaseBlockingScript();return}case Se.AUTHORIZE:{const c=t;this.handleAuthorize(c.serviceName,c.config);return}default:return}});J(this,"handleCommunication",(e,t,n,r)=>{var o,s,i;if(e===Kf.SEND_MESSAGE_TO_FRAME){if(this.frameId){const a=document.getElementById(this.frameId);a&&((o=a.contentWindow)==null||o.postMessage({...(n==null?void 0:n.payload)??{},__kizen:{recipient:t,frameId:this.frameId}},(n==null?void 0:n.path)??"*"))}}else if(e===Kf.CALL_THIRD_PARTY_SCRIPT)this.handleCallThirdPartyScript(t.type,r);else{const a=((s=this.executionPlugin)==null?void 0:s.plugin_api_name)??((i=this.plugin)==null?void 0:i.plugin_api_name),l=new CustomEvent(`integration:${e}`,{detail:{recipient:{...t,plugin:a},args:n}});window.dispatchEvent(l)}});J(this,"handleDone",(e,t)=>{this.waitForFrame||this.done(e,t)});J(this,"postMessage",(e,t)=>{this.worker.postMessage(JSON.stringify({action:e,...t}))});J(this,"handleSetSessionData",e=>{this.setSessionData(e)});J(this,"handleQueryRequest",async(e,t,n,r,o)=>{var s,i;try{const a=await((s=this.onNetworkRequest)==null?void 0:s.call(this,t,n,r,o));this.postMessage(pt.QUERY_RESPONSE,{data:a,id:e})}catch(a){(i=this.onNetworkError)==null||i.call(this,a),this.postMessage(pt.QUERY_RESPONSE,{error:a,id:e})}});J(this,"handleUIOutput",e=>{var t;if((t=this.scriptUIRef)!=null&&t.current){const n=nS.sanitize(e);this.scriptUIRef.current.innerHTML=n}});J(this,"onLoad",e=>{e.iframe&&(this.waitForFrame=!1,this.handleDone(e.preserve))});J(this,"handleIframeOutput",(e,t=[],n=[],r=!1)=>{var o;if((o=this.scriptUIRef)!=null&&o.current){const s=t.filter(l=>oI.includes(l)),i=n.filter(l=>sI.includes(l));this.waitForFrame=!0;const a=document.createElement("iframe");a.src=e,a.allow=s.join("; "),i.forEach(l=>{a.sandbox.add(l)}),a.style.border="none",a.style.width="100%",a.style.height="100%",a.onload=this.onLoad.bind(this,{iframe:a,preserve:r}),this.frameId&&(a.id=this.frameId),this.scriptUIRef.current.replaceChildren(a)}});J(this,"handleCreateRecordRequest",(e,t)=>{var n;(n=this.onShowCreateRecordModal)==null||n.call(this,t,r=>{this.postMessage(pt.CREATE_RECORD_RESPONSE,{id:e,data:r})})});J(this,"handleCreateRelatedRecordRequest",(e,t,n)=>{var r;(r=this.onShowCreateRelatedRecordModal)==null||r.call(this,t,n,o=>{this.postMessage(pt.CREATE_RELATED_RECORD_RESPONSE,{id:e,data:o})})});J(this,"showToast",(e,t)=>{var n;(n=this.onShowToast)==null||n.call(this,{message:e,variant:(t==null?void 0:t.variant)??"success",autohide:(t==null?void 0:t.autohide)??!0})});J(this,"clearToasts",()=>{var e;(e=this.onClearToasts)==null||e.call(this)});J(this,"copyToClipboard",async e=>{var t;try{await navigator.clipboard.writeText(e)}catch(n){(t=this.onError)==null||t.call(this,{message:n.message})}});J(this,"handleRefreshTimeline",e=>{var t;(t=this.invalidateCache)==null||t.call(this,"timeline",e)});J(this,"waitForIdleState",e=>new Promise(t=>{let n=0;const r=setInterval(()=>{var s;(((s=this.getPendingCacheCount)==null?void 0:s.call(this,e))??0)===0?(clearInterval(r),t(!0)):(n+=1,n>Math.floor(iI/xg)&&(clearInterval(r),t(!1)))},xg)}));J(this,"handleRefreshEntity",async(e,t)=>{var r;(r=this.invalidateCache)==null||r.call(this,"entity",e);const n=await this.waitForIdleState(e);this.postMessage(pt.REFRESH_ENTITY_RESPONSE,{id:t,data:{success:n}})});J(this,"handleFormPostRequest",(e,t,n,r)=>{const o=document.createElement("form");o.method="POST",o.action=t,r&&(o.target="_blank");for(const s in n){const i=document.createElement("input");i.type="hidden",i.name=s,i.value=n[s],o.appendChild(i)}document.body.appendChild(o),o.submit(),r&&document.body.removeChild(o),this.postMessage(pt.POSTFORMDATA_RESPONSE,{success:!0,id:e})});J(this,"handleUploadFileRequest",async(e,t)=>{var u;if(!this.performFileUpload){this.postMessage(pt.UPLOADFILE_RESPONSE,{error:"File upload not supported",id:e});return}const{file:n,isPublic:r=!1,fileName:o}=t,i=await(await fetch(n)).blob(),a=new File([i],o??`upload-${new Date().toISOString()}`,{type:i.type});a.$id=((u=this.createFileId)==null?void 0:u.call(this))??qk();const l=await this.performFileUpload({file:a,id:a.$id,publicFile:r,source:"field_value",handleProgress:f=>{this.postMessage(pt.UPLOADFILE_PROGRESS,{fileId:f.id,progress:f.progress})},businessId:void 0});this.postMessage(pt.UPLOADFILE_RESPONSE,{data:l,id:e})});J(this,"waitForReadyState",(e,t,n=0)=>{e||t==null||t(!0),e!=null&&e()?t==null||t(!0):n<20?setTimeout(()=>{this.waitForReadyState(e,t,n+1)},n*50):t==null||t(!1)});J(this,"handleCallThirdPartyScript",(e,t=[])=>{if(e&&Rr[e]){const n=Rr[e],r=window[n];r==null||r(...t)}});J(this,"handleReleaseBlockingScript",()=>{var e;return(e=this.onReleaseBlockingScript)==null?void 0:e.call(this,this.executionPlugin)});J(this,"handlePromptRequest",(e,t,n=!1)=>{this.onShowModal?this.onShowModal({...t,pluginApiName:this.pluginApiName??"",dynamic:n},(r={})=>{this.postMessage(pt.PROMPT_RESPONSE,{id:e,data:r})}):this.postMessage(pt.PROMPT_RESPONSE,{id:e,data:{canceled:!0}})});J(this,"handleInstallThirdPartyScriptRequest",(e,t,n={})=>{var a;const r=Wk(t);if(!r){this.postMessage(pt.INSTALL_THIRD_PARTY_SCRIPT_RESPONSE,{data:{success:!1,url:t},id:e});return}const o=Vk[r];o(n);const s=document.createElement("script");s.onload=()=>{this.waitForReadyState(fg[r],l=>{this.postMessage(pt.INSTALL_THIRD_PARTY_SCRIPT_RESPONSE,{data:{success:!0,url:t,matched:l},id:e})})},s.onerror=()=>{this.postMessage(pt.INSTALL_THIRD_PARTY_SCRIPT_RESPONSE,{data:{success:!1,url:t},id:e})},s.src=t,s.setAttribute("data-script-url",t),document.querySelectorAll('[data-script-url="'+t+'"]').length>0?this.waitForReadyState(fg[r],l=>{this.postMessage(pt.INSTALL_THIRD_PARTY_SCRIPT_RESPONSE,{data:{success:!0,url:t,reused:!0,matched:l},id:e})}):(a=document.documentElement.firstChild)==null||a.appendChild(s)});J(this,"handleOpenWindow",(e,t,n)=>{!rI(e)||t==="_blank"||!this.pushHistory?window.open(e,t,n):this.pushHistory(e)});J(this,"handleAuthorize",(e,t={})=>{var o,s;const n=new URLSearchParams;if(t.successRedirectPath&&n.append("success_redirect_path",t.successRedirectPath),t.errorRedirectPath&&n.append("error_redirect_path",t.errorRedirectPath),!this.appPath){(o=this.onError)==null||o.call(this,{message:"App path is not defined."});return}if(!this.pluginApiName){(s=this.onError)==null||s.call(this,{message:"Plugin API name is not defined."});return}const r=n.toString();this.handleOpenWindow(`${this.appPath}/external-integrations/business-plugin-apps/${this.pluginApiName}/services/${encodeURIComponent(e)}/authorize${r?`?${r}`:""}`,"_blank","")});J(this,"run",(e,t,n)=>{const r=Qk();this.postMessage(Se.RUN,{script:e,setup:t,args:n,sessionData:this.sessionData,pluginComponentId:this.pluginComponentId,pluginApiName:this.pluginApiName,location:r})});var t,n;this.scriptUIRef=e.scriptUIRef,this.onStateChange=e.onStateChange,this.done=e.done,this.onError=e.onError,this.onReleaseBlockingScript=e.onReleaseBlockingScript,this.worker=e.worker,this.worker.onmessage=this.handleMessage,this.plugin=e.plugin,this.executionPlugin=e.executionPlugin,this.onShowToast=e.onShowToast,this.onClearToasts=e.onClearToasts,this.pluginComponentId=e.pluginComponentId,this.onShowModal=e.onShowModal,this.onShowCreateRecordModal=e.onShowCreateRecordModal,this.onShowCreateRelatedRecordModal=e.onShowCreateRelatedRecordModal,this.onNetworkError=e.onNetworkError,this.onNetworkRequest=e.onNetworkRequest,this.invalidateCache=e.invalidateCache,this.getPendingCacheCount=e.getPendingCacheCount,this.createFileId=e.createFileId,this.performFileUpload=e.performFileUpload,this.pushHistory=e.pushHistory,this.appPath=e.appPath,this.plugin&&(this.frameId=`${G1}-${this.plugin.plugin_api_name}-${this.plugin.api_name}`),this.pluginApiName=((t=this.executionPlugin)==null?void 0:t.plugin_api_name)??((n=this.plugin)==null?void 0:n.plugin_api_name)??"",this.pluginApiName?(this.sessionData=e.sessionData[this.pluginApiName],this.setSessionData=r=>{var o;(o=e.setSessionData)==null||o.call(e,this.pluginApiName,r)}):this.setSessionData=()=>{var r;(r=this.onError)==null||r.call(this,{message:"Script must be associated with a plugin to use session data"})}}},bh=async({scriptBody:e,user:t,teamMember:n,business:r,onError:o,onReleaseBlockingScript:s,setLoadingState:i,clientObject:a,scriptUIRef:l,onStateChange:u,workerName:f,context:c,args:d="",plugin:h,onShowToast:m,onClearToasts:g,terminators:y,executionPlugin:p,sessionData:v,setSessionData:S,onShowModal:w,onShowCreateRecordModal:_,onShowCreateRelatedRecordModal:T,onNetworkError:I,onNetworkRequest:P,appPath:k,pushHistory:E,createFileId:A,performFileUpload:L,getPendingCacheCount:z,invalidateCache:U})=>{const B=Eh("script-runner-logging");let V;return f==="recordDetail"?V=new Worker(new URL("/assets/recordDetail.worker-Ccm59Np6.js",import.meta.url),{type:"module"}):f==="genericPlugin"?V=new Worker(new URL("/assets/generic.worker-CsqlYndL.js",import.meta.url),{type:"module"}):f==="floatingFramePlugin"?V=new Worker(new URL("/assets/floatingFrame.worker-DXcDBfqJ.js",import.meta.url),{type:"module"}):V=new Worker(new URL("/assets/calendarSource.worker-DF0wAwJR.js",import.meta.url),{type:"module"}),new Promise(W=>{var te,oe,re;const N=Bl(e),j=Bl(d);let O=`${(h==null?void 0:h.plugin_api_name)??""}-${(h==null?void 0:h.api_name)??""}-${String(N)}-${String(j)}`,M=`${(h==null?void 0:h.plugin_api_name)??""}-${(h==null?void 0:h.api_name)??""}`;p!=null&&p.field_type?(O=`${p.plugin_api_name??""}-${p.field_type}-${String(N)}-${String(j)}`,M=`${p.plugin_api_name??""}-${p.field_type??p.script_id}`):p&&(O=`${p.plugin_api_name??""}-${p.api_name}-${String(N)}-${String(j)}`,M=`${p.plugin_api_name??""}-${p.api_name}`),y.current[O]&&((te=y.current[O])==null||te.forEach(pe=>{pe()}),y.current[O]=[]),(oe=y.current)[O]??(oe[O]=[]),(re=y.current[O])==null||re.push(()=>{V.terminate()});const Q=new aI({worker:V,done:(pe,_e)=>{var Ue;i(!1),pe||((Ue=y.current[O])==null||Ue.forEach(zt=>{zt()}),y.current[O]=[]),W(_e)},onError:o,onReleaseBlockingScript:s,scriptUIRef:l,onStateChange:u,plugin:h,executionPlugin:p,onShowToast:m,onClearToasts:g,sessionData:v,setSessionData:S,pluginComponentId:M,onShowModal:w,onShowCreateRecordModal:_,onShowCreateRelatedRecordModal:T,onNetworkError:I,pushHistory:E,onNetworkRequest:P,appPath:k,createFileId:A,performFileUpload:L,getPendingCacheCount:z,invalidateCache:U});i(!0),Q.run(e,{...c,user:t,teamMember:n,business:r,clientObject:a,appPath:k,isDebug:B},d)})},wg=`integration:${Kf.RUN_FRAME_SCRIPT}`,cS=b.createContext(null),lI=({children:e})=>{const t=b.useRef({}),n=b.useCallback(()=>{Object.keys(t.current).forEach(r=>{var o;(o=t.current[r])==null||o.forEach(s=>{s()}),t.current[r]=[]})},[]);return b.useEffect(()=>()=>{n()},[n]),x.jsx(cS.Provider,{value:{terminators:t,cleanupWorkers:n},children:e})},Ph=()=>{const e=b.useContext(cS);if(!e)throw new Error("useTerminators must be used within a TerminatorsWrapper");return e},fS=b.createContext(null),uI=({children:e})=>{const[t,n]=b.useState({}),r=b.useCallback((o,s)=>{n(i=>({...i,[o]:{...i[o],...s}}))},[]);return x.jsx(fS.Provider,{value:{sessionData:t,setSessionData:r},children:e})},Rh=()=>{const e=b.useContext(fS);if(!e)throw new Error("useSessionData must be used within a SessionDataWrapper");return e},dS=b.createContext(null),cI=({children:e,bootstrapPlugins:t=[],userConfigs:n=[],user:r,teamMember:o,business:s,clientObject:i,appPath:a})=>{const[l,u]=b.useState(!1),[f,c]=b.useState({}),d=b.useMemo(()=>Object.values(f).some(y=>y.waitingOnRouteScript),[f]),h=b.useMemo(()=>t.reduce((y,p)=>({...y,[p.api_name]:p.id}),{}),[t]),m=b.useMemo(()=>n.reduce((y,p)=>({...y,[p.api_name]:p.config}),{}),[n]),g=b.useCallback(()=>{u(!0)},[]);return x.jsx(dS.Provider,{value:{installedPluginAPINamesToIds:h,userConfigsByApiName:m,user:r,teamMember:o,business:s,clientObject:i,appPath:a,onInitialBootstrap:g,setRouteScriptRunState:c},children:e({waitingOnRouteScript:d,hasFinishedBootstrapping:l})})},_u=()=>{const e=b.useContext(dS);if(!e)throw new Error("useAppState must be used within an AppStateWrapper");return e},hS=b.createContext(null),fI=({children:e})=>{const[t,n]=b.useState({}),r=b.useCallback(i=>a=>{n(l=>({...l,[i]:a(l[i]??{indicator:"none",hidden:!1,pending:!1})}))},[]),o=b.useCallback(i=>!i||!t[i]?{indicator:"none",hidden:!1,pending:!1}:{...t[i]},[t]),s=b.useMemo(()=>{const i=Object.keys(t);return i.length>0&&i.some(a=>{var l;return((l=t[a])==null?void 0:l.indicator)==="block"})},[t]);return x.jsx(hS.Provider,{value:{getRunnerStateUpdater:r,getRunnerState:o},children:e(s)})},pS=()=>{const e=b.useContext(hS);if(!e)throw new Error("useRunnerState must be used within a RunnerStateWrapper");return e},mS=b.createContext(null),dI=({children:e,showing:t,showPrompt:n,show:r,onConfirm:o,onHide:s})=>{var _,T,I;const[i,a]=b.useState([]),[l,u]=b.useState([]),[f,c]=b.useState([]),d=b.useRef(void 0),h=b.useRef(void 0),m=b.useCallback((P,k)=>{a(E=>[...E,{config:P,cb:k}])},[]),g=b.useCallback((P,k)=>{u(E=>[...E,{objectId:P,cb:k}])},[]),y=b.useCallback((P,k,E)=>{c(A=>[...A,{objectId:P,relatedEntityId:k,cb:E}])},[]),p=b.useCallback(P=>{const k=l[0];k==null||k.cb(P),u(E=>E.slice(1))},[l]),v=b.useCallback(P=>{const k=f[0];k==null||k.cb(P),c(E=>E.slice(1))},[f]);b.useEffect(()=>{var P,k;i.length>0&&!t&&(d.current=(P=i[0])==null?void 0:P.config,h.current=(k=i[0])==null?void 0:k.cb,n())},[i,t,n]);const S=b.useCallback(()=>{d.current=void 0,h.current=void 0,a(P=>P.slice(1))},[]),w=b.useMemo(()=>({props:{show:r,onConfirm:P=>{o(),h.current&&h.current({canceled:!1,values:P}),S()},onHide:(P,...k)=>{s(...k),h.current&&h.current({canceled:!0,values:{},eventSource:P}),S()}},config:d.current??{}}),[o,s,r,S]);return x.jsx(mS.Provider,{value:{modalState:w,showModal:m,showCreateRecordModal:g,showCreateRelatedRecordModal:y,onCreateRecordComplete:p,onCreateRelatedRecordComplete:v},children:e({showPluginModal:w.props.show,pluginApiName:w.config.pluginApiName??"",handleShowModal:m,handleShowCreateRecordModal:g,handleShowCreateRelatedRecordModal:y,derivedModalState:w,handleCreateRecordComplete:p,handleCreateRelatedRecordComplete:v,showCreateRecordModal:l.length>0,createRecordModalObjectId:((_=l[0])==null?void 0:_.objectId)??"",showCreateRelatedRecordModal:f.length>0,createRelatedRecordModalObjectId:((T=f[0])==null?void 0:T.objectId)??"",createRelatedRecordModalRelatedEntityId:((I=f[0])==null?void 0:I.relatedEntityId)??""})})},Ch=()=>{const e=b.useContext(mS);if(!e)throw new Error("useModals must be used within a ModalsWrapper");return e},gS=b.createContext(null),hI=({children:e,monitoringExceptionHelper:t})=>{const n=b.useCallback((r,o)=>{t(r,{extra:o})},[t]);return x.jsx(gS.Provider,{value:{sendException:n},children:e})},kh=()=>{const e=b.useContext(gS);if(!e)throw new Error("useMonitoring must be used within an MonitoringWrapper");return e},vS=b.createContext(null),pI=({children:e,onNavigate:t})=>{const n=b.useCallback(o=>{t(o,{replace:!1})},[t]),r=b.useCallback(o=>{t(o,{replace:!0})},[t]);return x.jsx(vS.Provider,{value:{push:n,replace:r},children:e})},Th=()=>{const e=b.useContext(vS);if(!e)throw new Error("useHistory must be used within an HistoryWrapper");return e},yS=b.createContext(null),mI=({children:e,performRequest:t,createFileId:n,performFileUpload:r,getPendingCacheCount:o,invalidateCache:s})=>x.jsx(yS.Provider,{value:{performRequest:t,createFileId:n,performFileUpload:r,getPendingCacheCount:o,invalidateCache:s},children:e}),Ih=()=>{const e=b.useContext(yS);if(!e)throw new Error("useNetwork must be used within a NetworkWrapper");return e},SS=e=>e,xS=b.createContext({t:SS}),gI=e=>{const{children:t,t:n=SS}=e;return x.jsx(xS.Provider,{value:{t:n},children:t})},Ds=()=>b.useContext(xS),wS=b.createContext(null),vI=({children:e,showToast:t,clearToasts:n})=>x.jsx(wS.Provider,{value:{showToast:t,clearToasts:n},children:e}),$s=()=>{const e=b.useContext(wS);if(!e)throw new Error("useToast must be used within a ToastWrapper");return e},yI=({onError:e,scriptUIRef:t,plugin:n,onChangeMinimized:r})=>{const{terminators:o}=Ph(),{sessionData:s,setSessionData:i}=Rh(),{installedPluginAPINamesToIds:a,userConfigsByApiName:l,user:u,teamMember:f,business:c,clientObject:d,appPath:h}=_u(),{showModal:m,showCreateRecordModal:g,showCreateRelatedRecordModal:y}=Ch(),{sendException:p}=kh(),{showToast:v,clearToasts:S}=$s(),w=Th(),{performRequest:_,createFileId:T,performFileUpload:I,getPendingCacheCount:P,invalidateCache:k}=Ih(),{t:E}=Ds(),[A,L]=b.useState(!1),[z,U]=b.useState({indicator:"none",hidden:!0,triggerHidden:!1,hideHeader:!1}),B=b.useRef(!1),[V,W]=b.useState(!1);A&&!B.current&&(B.current=!0),!A&&B.current&&!V&&W(!0);const N=b.useCallback(O=>{e==null||e(O);const M=(O==null?void 0:O.message)??"Unknown plugin error";p(new Error(M),{error:O,workerName:"floatingFrame",pluginApiName:n.plugin_api_name})},[e,n,p]);return[b.useCallback((O,M)=>{let Q="";try{const te=a[n.plugin_api_name];Q=JSON.stringify({...M,pluginId:te,__kizen_user_config:l[n.plugin_api_name]})}catch{N({message:E("Arguments passed to the script are invalid")})}return bh({user:u,teamMember:f,business:c,onError:N,setLoadingState:(...te)=>{iu.flushSync(()=>{L(...te)})},scriptBody:O,clientObject:d,scriptUIRef:t,onStateChange:te=>{const{minimized:oe,...re}=te;typeof oe=="boolean"&&(r==null||r(oe)),U(pe=>({...pe,...re}))},workerName:"floatingFramePlugin",args:Q,pushHistory:w.push,plugin:n,onShowToast:v,onClearToasts:S,terminators:o,sessionData:s,setSessionData:i,onShowModal:m,onShowCreateRecordModal:g,onShowCreateRelatedRecordModal:y,appPath:h,onNetworkRequest:_,createFileId:T,performFileUpload:I,getPendingCacheCount:P,invalidateCache:k})},[u,f,c,a,d,t,w,n,r,v,S,o,s,i,N,U,l,m,g,y,_,h,T,I,P,k,E]),{...z,pending:V?!1:A}]},Ah=({onError:e,scriptUIRef:t,plugin:n})=>{const{terminators:r}=Ph(),{sessionData:o,setSessionData:s}=Rh(),{installedPluginAPINamesToIds:i,userConfigsByApiName:a,user:l,teamMember:u,business:f,clientObject:c,appPath:d}=_u(),{getRunnerState:h,getRunnerStateUpdater:m}=pS(),{showModal:g,showCreateRecordModal:y}=Ch(),{sendException:p}=kh(),{showToast:v,clearToasts:S}=$s(),w=Th(),{performRequest:_,createFileId:T,performFileUpload:I,getPendingCacheCount:P,invalidateCache:k}=Ih(),{t:E}=Ds(),[A,L]=b.useState(!1),[z,U]=b.useState(void 0),B=b.useCallback((W,N)=>{e==null||e(W);const j=(W==null?void 0:W.message)??"Unknown plugin error";p(new Error(j),{error:W,workerName:"genericPlugin",pluginApiName:(n==null?void 0:n.plugin_api_name)??(N==null?void 0:N.plugin_api_name)??""})},[e,n,p]);return[b.useCallback((W,N,j)=>{let O="";const M=K1(j);U(M);try{const Q=i[(n==null?void 0:n.plugin_api_name)??(j==null?void 0:j.plugin_api_name)??""];O=JSON.stringify({...N,pluginId:Q,__kizen_user_config:a[(n==null?void 0:n.plugin_api_name)??(j==null?void 0:j.plugin_api_name)??""]})}catch{B({message:E("Arguments passed to the script are invalid")})}return bh({user:l,teamMember:u,business:f,onError:B,setLoadingState:L,scriptBody:W,clientObject:c,scriptUIRef:t,onStateChange:Q=>{m(M)(te=>({...te,...Q}))},workerName:"genericPlugin",args:O,pushHistory:w.push,onShowToast:v,onClearToasts:S,terminators:r,plugin:n,executionPlugin:j,sessionData:o,setSessionData:s,onShowModal:g,onShowCreateRecordModal:y,onShowCreateRelatedRecordModal:()=>{},appPath:d,onNetworkRequest:_,createFileId:T,performFileUpload:I,getPendingCacheCount:P,invalidateCache:k})},[l,u,i,f,c,t,w,v,S,r,n,o,s,B,m,a,g,y,_,d,T,I,P,k,E]),{...h(z),pending:A}]},SI=({entityId:e,objectId:t,onError:n,scriptUIRef:r,onReleaseBlockingScript:o})=>{const{terminators:s}=Ph(),{sessionData:i,setSessionData:a}=Rh(),{installedPluginAPINamesToIds:l,userConfigsByApiName:u,user:f,teamMember:c,business:d,clientObject:h,appPath:m}=_u(),{getRunnerState:g,getRunnerStateUpdater:y}=pS(),{showModal:p,showCreateRecordModal:v,showCreateRelatedRecordModal:S}=Ch(),{sendException:w}=kh(),{showToast:_,clearToasts:T}=$s(),I=Th(),{performRequest:P,createFileId:k,performFileUpload:E,getPendingCacheCount:A,invalidateCache:L}=Ih(),{t:z}=Ds(),[U,B]=b.useState(!1),[V,W]=b.useState(void 0),N=b.useCallback((O,M)=>{n==null||n(O);const Q=(O==null?void 0:O.message)??"Unknown plugin error";w(new Error(Q),{error:O,workerName:"recordDetail",pluginApiName:(M==null?void 0:M.plugin_api_name)??"",objectId:t,entityId:e})},[n,t,e,w]);return[b.useCallback((O,M,Q,te)=>{let oe="";try{const pe=l[(Q==null?void 0:Q.plugin_api_name)??""];oe=JSON.stringify({...M,pluginId:pe,__kizen_user_config:u[(Q==null?void 0:Q.plugin_api_name)??""]})}catch{N({message:z("Arguments passed to the script are invalid")},Q)}const re=K1(Q);return W(re),bh({user:f,teamMember:c,business:d,onReleaseBlockingScript:o,onError:pe=>{N(pe,Q)},setLoadingState:B,scriptBody:O,clientObject:h,scriptUIRef:r,onStateChange:pe=>{y(re)(_e=>({..._e,...pe}))},workerName:"recordDetail",args:oe,context:te??{entityId:e,objectId:t},pushHistory:I.push,onShowToast:_,onClearToasts:T,terminators:s,executionPlugin:Q,sessionData:i,setSessionData:a,onShowModal:p,onShowCreateRecordModal:v,onShowCreateRelatedRecordModal:S,appPath:m,onNetworkRequest:P,createFileId:k,performFileUpload:E,getPendingCacheCount:A,invalidateCache:L})},[f,c,l,d,e,t,h,r,I,_,T,s,i,a,p,v,S,o,N,y,u,P,m,k,E,A,L,z]),{...g(V),pending:U}]},_S=(e,t)=>{const{showToast:n}=$s(),{t:r}=Ds(),o=b.useRef(null),s=b.useRef(null),i=e==null?void 0:e.css,a=b.useMemo(()=>{const d=e==null?void 0:e.html;return d?nS.sanitize(d):null},[e]),l=b.useMemo(()=>(e==null?void 0:e.event_scripts)??{},[e]),[u,{pending:f}]=Ah({onError:d=>{n({message:`${r("Script could not be executed:")} ${(d==null?void 0:d.message)??"Unknown Error"}`,variant:"failure"})},scriptUIRef:o,plugin:e}),c=b.useCallback(d=>{if(d.preventDefault(),d.stopPropagation(),!f){const m=d.target.getAttribute("data-script");m&&l[m]&&u(l[m],t)}},[f,u,l,t]);return b.useEffect(()=>{const d=s.current;return d&&d.addEventListener("click",c),()=>{d&&d.removeEventListener("click",c)}},[c,e]),{scopedCss:`
634
634
  @scope {
635
635
  ${i??""}
636
636
  }
637
- `,sanitizedHtml:a,outputUIRef:o,interactableScriptRef:s}},Ex=(e,t,n,r,o={})=>{const s=b.useMemo(()=>(t==null?void 0:t.event_scripts)??{},[t]),i=b.useCallback(a=>{if(a.preventDefault(),a.stopPropagation(),!r){const u=a.target.getAttribute("data-script");u&&s[u]&&e(s[u],{...o})}},[r,e,s,o]);b.useEffect(()=>{const a=n==null?void 0:n.current;return a&&a.addEventListener("click",i),()=>{a&&a.removeEventListener("click",i)}},[i,t,n])},vI=(e,t,n)=>{const r=e==null?void 0:e.iframe_url,o=e==null?void 0:e.script,s=e==null?void 0:e.callback,i=e==null?void 0:e.args,{showToast:a}=Ds(),{t:l}=Fs(),u=b.useRef(null),[f,{pending:c}]=Ah({onError:S=>{a({message:`${l("Plugin error:")} ${(S==null?void 0:S.message)??""}`,variant:"failure"})},scriptUIRef:u,plugin:e}),d=b.useMemo(()=>{const S=new URLSearchParams(t);return{...Object.fromEntries(S),...i}},[t,i]),{outputUIRef:h,scopedCss:m,sanitizedHtml:g,interactableScriptRef:y}=_x(e,d);Ex(f,e,u,c);const p=b.useRef(!1);b.useEffect(()=>{!r&&!p.current&&o&&!n&&(p.current=!0,f(o,d))},[r,f,o,d,n]);const v=b.useCallback(S=>{const w=S.data;if((w==null?void 0:w.type)==="kizen:plugin_callback"){const _=w.query;s&&f(s,_)}},[f,s]);return b.useEffect(()=>(window.addEventListener("message",v),()=>{window.removeEventListener("message",v)}),[v]),{scriptUIRef:u,outputUIRef:h,scopedCss:m,sanitizedHtml:g,interactableScriptRef:y,iframeURL:r,pending:c}},bx=b.createContext(null),yI=({children:e})=>{const[t,n]=b.useState([]),[r,o]=b.useState(!1),s=b.useCallback((a,l)=>{n(u=>{const f=u.filter(d=>d!==a),c=[a,...f];return l==null||l(c),c})},[]),i=b.useMemo(()=>[...t].reverse().reduce((a,l,u)=>({...a,[l]:u}),{}),[t]);return b.useEffect(()=>{const a=new MutationObserver(()=>{const l=document.querySelector('div[role="dialog"]');o(!!l)});return a.observe(document.body,{childList:!0}),()=>{a.disconnect()}},[]),x.jsx(bx.Provider,{value:{touchFloatingFrame:s,floatingFrameOffset:i},children:e(r)})},SI=()=>{const e=b.useContext(bx);if(!e)throw new Error("useFloatingFrame must be used within a FloatingFrameWrapper");return e},xI=["^/$","^/login*","/settings/mine$","/settings/others$","/create-new-business$","^/choose-business*","^/inactive-business$","^/reset$","/welcome$","/embed/*","/create-new-business$","/businessbuilder"],wI=["https://js.stripe.com"],_I=(e,t,n,r)=>e<n?t<r?"top-left":"top-right":t<r?"bottom-left":"bottom-right",EI=e=>{var jn,Mo,Lo,da,qr,Gr,ha;const{currentWindow:t,pathname:n,id:r,frameHeaderSize:o,defaultPositionGap:s=0,viewportHeight:i=window.innerHeight,hiddenByModal:a,updateEmployeeConfig:l}=e,u=b.useRef(null),f=b.useRef(!1),{showToast:c}=Ds(),{t:d}=Fs(),{installedPluginAPINamesToIds:h,clientObject:m}=_u(),{touchFloatingFrame:g,floatingFrameOffset:y}=SI(),p=y[r]??-1,v=t.minimized_style==="none",S=t.minimized_style==="circle"||v,w=t.default_position==="bottom-right-fixed",_=t.default_position==="bottom-left-fixed",T=w||_,I=((jn=t.minimized_config)==null?void 0:jn.icon)??"action-drag-handle",P=((Mo=t.minimized_config)==null?void 0:Mo.color)??"blue",k=b.useMemo(()=>{const K=n.split("/"),H=K[1],be=K[2];if(H==="client")return{objectId:m==null?void 0:m.id,entityId:be};if(H==="custom-objects")return{objectId:be,entityId:K[3]}},[m,n]),E=b.useMemo(()=>{const K=t.match,H=t.ignore;return!!(K!=null&&K.length&&!K.some(be=>new RegExp(be).test(n))||xI.concat(H??[]).filter(Boolean).some(be=>{try{return new RegExp(be).test(n)}catch{return!1}}))},[t,n]),A=t.plugin_api_name?h[t.plugin_api_name]:"",[L,z]=b.useState(()=>{var K,H;return((H=(K=t.employee_config)==null?void 0:K[r])==null?void 0:H.minimized)??!1}),U=t.script,B=t.type,V=t.args,W=t.message_handler,N=t.width??0,[j,O]=b.useState(()=>{const K=window.innerHeight;return Math.min(t.height??0,K-o)}),[M,Q]=b.useState(null),te=t.default_position,oe=b.useCallback(K=>{var be,le,Re,tt,St,ut,nn,sr,Kr,ct;const H=(le=(be=t.employee_config)==null?void 0:be[r])==null?void 0:le.position;if(H!=null&&H.quadrant)if(H.quadrant==="top-left"){const Fe=((Re=H.deltas)==null?void 0:Re.left)??0,nt=((tt=H.deltas)==null?void 0:tt.top)??0;return{...H,left:Fe,top:nt}}else if(H.quadrant==="top-right"){const Fe=window.innerWidth-N-(((St=H.deltas)==null?void 0:St.right)??0),nt=((ut=H.deltas)==null?void 0:ut.top)??0;return{...H,left:Fe,top:nt}}else if(H.quadrant==="bottom-left"){const Fe=((nn=H.deltas)==null?void 0:nn.left)??0,nt=window.innerHeight-(L?0:j)-(((sr=H.deltas)==null?void 0:sr.bottom)??0)-o;return{...H,left:Fe,top:nt}}else{const Fe=window.innerWidth-N-(((Kr=H.deltas)==null?void 0:Kr.right)??0),nt=window.innerHeight-(L?0:j)-(((ct=H.deltas)==null?void 0:ct.bottom)??0)-o;return{...H,left:Fe,top:nt}}else{const Fe=window.innerWidth-N;let nt=window.innerHeight-j-o;if(L&&!K&&(nt=window.innerHeight-o),H)try{const Ht=H;return Ht.left>Fe&&(Ht.left=Fe),Ht.top>nt&&(Ht.top=nt),Ht.left<0&&(Ht.left=s),Ht.top<0&&(Ht.top=s),Ht}catch{}let ir=Fe;return te==="bottom-left"&&(ir=s),{left:ir,top:nt-s}}},[t,r,te,L,N,j,o,s]),re=b.useCallback(K=>{const H=oe(K),le=["bottom-right","bottom-left"].includes(H.quadrant??"")&&L?0:j;return H.left<0?H.left=0:H.left>window.innerWidth-N&&(H.left=window.innerWidth-N),H.top<0?H.top=0:H.top>window.innerHeight-le&&(H.top=window.innerHeight-le),H},[oe,N,j,L]);b.useEffect(()=>{const K=t.height??0;if(K>i){O(i-o);const H=oe(!0);H.top=0,Q(H)}else O(K)},[t.height,oe,i,o]);const[pe,_e]=b.useState(L),[Ue,zt]=b.useState(L&&S),en=j*5e-4*1e3,je=K=>{z(K),K&&S?setTimeout(()=>{zt(K)},en):S&&zt(K),_e(K),((M==null?void 0:M.quadrant)==="bottom-left"||(M==null?void 0:M.quadrant)==="bottom-right")&&Q(K?H=>H?{...H,top:H.top+j}:null:H=>{if(!H)return null;const be=window.innerHeight,le=H.top>=0&&H.top+j<=be;return{...H,top:le?H.top:H.top-j}}),l==null||l(r,L,M)({minimized:K})},[ce,{pending:me,hidden:ge,indicator:we,triggerHidden:Qe,hideHeader:He}]=mI({onError:K=>{c({message:`${d("Plugin error:")} ${(K==null?void 0:K.message)??""}`,variant:"failure"})},scriptUIRef:u,plugin:t,onChangeMinimized:K=>{je(K)}}),ye=b.useMemo(()=>He&&T,[He,T]),qe=b.useMemo(()=>{if(!M)return"top";const{left:K,top:H}=M,le=window.innerWidth-(K+N)<40,Re=H<40;return le?"left":Re?"bottom":"top"},[M,N]),Bt=b.useCallback(()=>{const K=_?"left":"right",H=`${t.plugin_api_name}-${t.api_name}-trigger-${K}`;return document.getElementById(H)},[_,t]),Ye=b.useCallback(()=>{if(!T)return;const K=Bt();if(!K)return;const H=K.getBoundingClientRect(),be=L?0:j,le=ye?0:o;let Re=H.top-(be+le)-s,tt=_?H.left:H.right-N;const St=be+le,ut=Math.max(0,window.innerWidth-N),nn=Math.max(0,window.innerHeight-St);tt=Math.min(Math.max(0,tt),ut),Re=Math.min(Math.max(0,Re),nn),Q({left:tt,top:Re,quadrant:_?"bottom-left":"bottom-right",deltas:{top:Re,left:tt,right:window.innerWidth-(tt+N),bottom:window.innerHeight-(Re+St)}})},[T,_,j,L,N,ye,Bt,o,s]);b.useEffect(()=>{T&&Ye()},[T,j,L,Ye]),b.useEffect(()=>{if(!T)return;Ye();const K=new ResizeObserver(()=>{Ye()});return K.observe(document.body),()=>{K.disconnect()}},[T,Ye]),b.useEffect(()=>{!f.current&&U&&B==="script"&&!E&&(f.current=!0,ce(U,{...V}))},[ce,U,B,V,E]),b.useEffect(()=>{const K=H=>{var le,Re,tt,St;const be=H;if(((Re=(le=be==null?void 0:be.detail)==null?void 0:le.recipient)==null?void 0:Re.frame)===t.api_name){const ut=be.detail;if(((tt=ut.recipient)==null?void 0:tt.plugin)!==t.plugin_api_name)return;if(ut.recipient.script&&((St=t.event_scripts)!=null&&St[ut.recipient.script])){const nn=t.event_scripts[ut.recipient.script]??"";ce(nn,{...ut.args,...V,...k})}}};return window.addEventListener(wg,K),()=>{window.removeEventListener(wg,K)}},[t,ce,V,k]);const[yt,et]=b.useState(!1),ae=(K,H)=>{et(!1),g(r);const be=window.innerWidth,le=window.innerHeight;if(H.node){const Re=H.node.getBoundingClientRect(),tt=Re.left,St=Re.top,ut=St+Re.height,nn=tt+Re.width,sr=St,Kr=le-ut,ct=tt,Fe=be-nn,nt=_I(sr,ct,Kr,Fe),ir={left:tt,right:nn,top:St,quadrant:nt,deltas:{top:sr,bottom:Kr,left:ct,right:Fe}};Q(ir),l==null||l(r,L,M)({position:ir})}};b.useEffect(()=>{const K=()=>{T?Ye():Q(re(!1))};return window.addEventListener("resize",K),()=>{window.removeEventListener("resize",K)}},[T,Ye,re]),Ex(ce,t,u,me,V),b.useEffect(()=>{const K=H=>{H.source!==window&&W&&!wI.includes(H.origin)&&ce(W,{...V,eventData:H.data})};return window.addEventListener("message",K),()=>{window.removeEventListener("message",K)}},[ce,V,W]);const{outputUIRef:Ee,scopedCss:ze,sanitizedHtml:Tt,interactableScriptRef:$s}=_x(t,{}),Us=pe?ge||E||a:ge||E,zs=`floating-window-parent--${r}`,Oo=`floating-drag-handle--${r}`,fa=`floating-window-content--${r}`;let or=((Gr=(qr=(da=(Lo=t.employee_config)==null?void 0:Lo[r])==null?void 0:da.position)==null?void 0:qr.quadrant)==null?void 0:Gr.split("-")[1])==="right"?"right":"left";_?or="left":w&&(or="right");const Ln=(ha=t.minimized_config)==null?void 0:ha.customIcon;let tn=null;return Ln!=null&&Ln.startsWith("data:image/")&&(tn=({className:K=""})=>x.jsx("img",{src:Ln,alt:t.title||"Open Frame",className:`object-cover select-none pointer-events-none ${K}`})),M||Q(re(!1)),{circleProps:{id:r,side:or,circleIcon:I,CustomIcon:tn,circleColor:P,onClick:()=>{je(!L)},hidden:!!(Us||E||v||Qe)},parentProps:{className:zs,dragging:yt,hidden:Us||Ue||E||v},draggableProps:{onStop:ae,onStart:()=>{et(!0)},bounds:`.${zs}`,handle:`.${Oo}`,defaultPosition:{x:(M==null?void 0:M.left)??0,y:(M==null?void 0:M.top)??0},position:{x:(M==null?void 0:M.left)??0,y:(M==null?void 0:M.top)??0},disabled:T},floatProps:{pending:me,width:N,dragging:yt,height:j,isCircle:S&&L},contentProps:{className:fa,dragging:yt,solid:!0},minimized:L,pending:me,indicator:we,hideHeader:ye,isFixed:T,isCircle:S,outputUIRef:Ee,scopedCss:ze,sanitizedHtml:Tt,interactableScriptRef:$s,tooltipPosition:qe,currentPluginId:A,setMinimized:je,dragHandleClassName:Oo,height:j,script:U,dragging:yt,frameOffset:p,scriptUIRef:u}},bI=()=>{b.useEffect(()=>{let e=null;const t=n=>{var s;if(!((s=n.detail)!=null&&s.location))return;const r=ZT(n.detail.location);if(r===e)return;e=r,document.querySelectorAll(`iframe[id^=${GS}-]`).forEach(i=>{var l,u;let a=null;try{a=new URL(i.src,window.location.href).origin}catch(f){Eh("script-runner-logging")&&console.warn("Failed to parse iframe src for location change message target origin:",f),a=null}a&&((u=i.contentWindow)==null||u.postMessage({action:Dk,location:(l=n.detail)==null?void 0:l.location},a))})};return window.addEventListener(cg,t),()=>{window.removeEventListener(cg,t)}},[])},PI=new O0,RI=({children:e})=>b.useContext(sh)?x.jsx(x.Fragment,{children:e}):x.jsx(L0,{client:PI,children:e}),CI=e=>{const{children:t,bootstrapPlugins:n=[],userConfigs:r=[],user:o,teamMember:s,business:i,clientObject:a,onNavigate:l,modal:u,monitoringExceptionHelper:f,showToast:c,clearToasts:d,performRequest:h,appPath:m,hideFramesOnModal:g=!0,createFileId:y,performFileUpload:p,t:v}=e;return bI(),x.jsx(RI,{children:x.jsx(aI,{bootstrapPlugins:n,userConfigs:r,user:o,teamMember:s,business:i,clientObject:a,appPath:m,children:({hasFinishedBootstrapping:S,waitingOnRouteScript:w})=>x.jsx(hI,{t:v,children:x.jsx(lI,{children:_=>x.jsx(fI,{onNavigate:l,children:x.jsx(uI,{...u,children:T=>x.jsx(cI,{monitoringExceptionHelper:f,children:x.jsx(iI,{children:x.jsx(sI,{children:x.jsx(pI,{showToast:c,clearToasts:d,children:x.jsx(yI,{children:I=>x.jsx(dI,{performRequest:h,createFileId:y,performFileUpload:p,children:t({...T,showLoadingIndicator:_,hasFinishedBootstrapping:S,waitingOnRouteScript:w,hiddenByModal:g?I:!1})})})})})})})})})})})})})},kI=b.createContext(null);kI.Provider;const _g=36,TI=20,II=9e3,AI=({frameId:e,side:t,color:n,zIndex:r,onClick:o,CustomIcon:s})=>{const i=document.getElementById(`${e}-trigger-${t}`);return i?su.createPortal(x.jsx("button",{className:"pointer-events-auto flex h-10 w-10 items-center justify-center rounded-full border border-black/10 shadow-lg",style:{backgroundColor:n,zIndex:r},onClick:o,onPointerDown:a=>{a.stopPropagation()},title:"Open frame",children:s?x.jsx(s,{className:"h-6 w-6 rounded-full object-cover"}):x.jsx("span",{className:"font-mono text-[11px] text-white",children:"▲"})}),i):null},NI=({frame:e})=>{const t=`${e.plugin_api_name}-${e.api_name}`,n=QS(),[r,o]=b.useState(window.innerHeight);b.useEffect(()=>{const U=new ResizeObserver(()=>{o(window.innerHeight)});return U.observe(document.body),()=>{U.disconnect()}},[]);const{circleProps:s,parentProps:i,draggableProps:a,pending:l,indicator:u,outputUIRef:f,scopedCss:c,sanitizedHtml:d,interactableScriptRef:h,hideHeader:m,setMinimized:g,dragHandleClassName:y,isFixed:p,isCircle:v,minimized:S,height:w,dragging:_,frameOffset:T,scriptUIRef:I}=EI({currentWindow:e,pathname:"/sandbox",id:t,frameHeaderSize:_g,defaultPositionGap:TI,viewportHeight:r,hiddenByModal:!1}),P=II+Math.max(0,T),k=b.useRef(null),[E,A]=b.useState(a.position),L=a.position;b.useEffect(()=>{A({x:L.x,y:L.y})},[L.x,L.y]);const z=b.useCallback(U=>{if(a.disabled||!U.target.closest(`.${y}`))return;U.preventDefault(),a.onStart();const V=U.clientX,W=U.clientY,N=E.x,j=E.y,O=Q=>{A({x:N+Q.clientX-V,y:j+Q.clientY-W})},M=Q=>{document.removeEventListener("pointermove",O),document.removeEventListener("pointerup",M),a.onStop(Q,{node:k.current})};document.addEventListener("pointermove",O),document.addEventListener("pointerup",M)},[a,y,E]);return x.jsxs(x.Fragment,{children:[v&&!s.hidden&&x.jsx(AI,{frameId:t,side:s.side,color:s.circleColor,zIndex:P,onClick:s.onClick,CustomIcon:s.CustomIcon}),x.jsxs("div",{ref:k,className:i.className,style:{position:"fixed",left:Math.min(E.x,window.innerWidth-n-(e.width??300)),top:E.y,width:e.width??300,zIndex:P,borderRadius:6,overflow:"hidden",border:"1px solid rgba(0,0,0,0.1)",boxShadow:"0 4px 20px rgba(0,0,0,0.1)",backgroundColor:"white",opacity:i.hidden?0:1,pointerEvents:i.hidden?"none":"auto"},onPointerDown:z,children:[(l||u==="block")&&x.jsx("div",{className:"absolute inset-0 z-10 flex items-center justify-center bg-white/80 font-mono text-[11px] text-neutral-400",children:"loading…"}),!m&&x.jsxs("div",{className:"flex select-none items-center border-b border-black/8",style:{height:_g,backgroundColor:e.header_color??"#fafafa",color:e.header_text_color??"#1a1a1a"},children:[x.jsxs("div",{className:`${y} flex h-full flex-1 items-center gap-2 overflow-hidden px-3 ${p?"":"cursor-grab active:cursor-grabbing"}`,children:[!p&&x.jsx("span",{className:"shrink-0 font-mono text-[11px] opacity-30",children:"⠿"}),x.jsx("span",{className:"truncate font-mono text-[12px] font-medium",children:e.title})]}),x.jsx("button",{className:"flex h-full shrink-0 items-center px-3 font-mono text-[11px] transition-colors hover:bg-black/5",onClick:()=>{g(!S)},onMouseDown:U=>{U.stopPropagation()},onPointerDown:U=>{U.stopPropagation()},title:S?"Expand":"Collapse",children:S?"↑":"↓"})]}),x.jsxs("div",{style:{height:S?0:w,overflow:"hidden",transition:`height ${String(w*5e-4)}s ease`},children:[e.type==="script"&&x.jsxs("div",{className:"h-full w-full",style:{pointerEvents:_?"none":"auto"},children:[x.jsx("div",{className:"h-full w-full",ref:I}),x.jsx("style",{children:c})]}),e.type==="html"&&d&&x.jsxs("div",{ref:h,className:"overflow-auto bg-white",style:{height:w,pointerEvents:_?"none":"auto"},children:[x.jsx("div",{dangerouslySetInnerHTML:{__html:d}}),x.jsx("div",{ref:f}),x.jsx("style",{children:c})]})]})]})]})},Eg=({label:e,value:t,onChange:n,onSelect:r,options:o,loading:s,placeholder:i,disabled:a})=>{const[l,u]=b.useState(!1);return x.jsxs("div",{className:"relative flex flex-col gap-1",children:[x.jsx("label",{className:"text-[11px] font-semibold uppercase tracking-widest text-neutral-500",children:e}),x.jsx("input",{type:"text",className:"w-full rounded border border-black/10 bg-white px-2.5 py-1.5 font-mono text-[12px] text-neutral-800 focus:border-neutral-400 focus:outline-none disabled:opacity-50",value:t,placeholder:i,disabled:a,onChange:f=>{n(f.target.value)},onFocus:()=>{u(!0)},onBlur:()=>{u(!1)}}),l&&(s||o.length>0)&&x.jsxs("ul",{className:"absolute left-0 top-full z-10 mt-1 max-h-48 w-full overflow-auto rounded border border-black/10 bg-white shadow-lg",children:[s&&x.jsx("li",{className:"px-3 py-2 text-[12px] text-neutral-400",children:"Loading…"}),!s&&o.map(f=>x.jsx("li",{className:"cursor-pointer px-3 py-2 text-[12px] text-neutral-800 hover:bg-neutral-100",onMouseDown:c=>{c.preventDefault()},onClick:()=>{r(f.id,f.label),u(!1)},children:f.label},f.id))]})]})},OI=({action:e,objectId:t,entityId:n,pluginApiName:r,disabled:o})=>{const[s,{pending:i}]=gI({objectId:t,entityId:n,onError:l=>{console.error(`[js-action] ${e.api_name}:`,l)}}),a={id:e.api_name,api_name:e.api_name,plugin_api_name:r};return x.jsxs("button",{onClick:()=>{s(e.script,void 0,a)},disabled:o===!0||i,className:"flex flex-col items-start rounded border border-black/8 bg-white px-3 py-1.5 text-left transition-colors hover:bg-black/5 disabled:opacity-50",children:[x.jsx("span",{className:"font-mono text-[12px] text-neutral-800",children:e.name}),e.hint_object_name&&x.jsxs("span",{className:"font-mono text-[10px] text-neutral-400",children:["for: ",e.hint_object_name]}),i&&x.jsx("span",{className:"font-mono text-[10px] text-neutral-400",children:"running…"})]})},MI=({actions:e,pluginApiName:t})=>{var P,k;const n=WS(),{apiKey:r,businessId:o}=yh(),[s,i]=b.useState(()=>{try{const E=localStorage.getItem(`kizen-sandbox:${t}:selectedObject`);return E?JSON.parse(E):null}catch{return null}}),[a,l]=b.useState(()=>(s==null?void 0:s.name)??""),[u,f]=b.useState(""),[c,d]=b.useState(()=>{try{const E=localStorage.getItem(`kizen-sandbox:${t}:selectedEntity`);return E?JSON.parse(E):null}catch{return null}}),[h,m]=b.useState(()=>(c==null?void 0:c.label)??""),[g,y]=b.useState(""),p=b.useRef(null);b.useEffect(()=>(p.current&&clearTimeout(p.current),p.current=setTimeout(()=>{f(a)},300),()=>{p.current&&clearTimeout(p.current)}),[a]);const v=b.useRef(null);b.useEffect(()=>(v.current&&clearTimeout(v.current),v.current=setTimeout(()=>{y(h)},300),()=>{v.current&&clearTimeout(v.current)}),[h]),b.useEffect(()=>{s?localStorage.setItem(`kizen-sandbox:${t}:selectedObject`,JSON.stringify(s)):localStorage.removeItem(`kizen-sandbox:${t}:selectedObject`)},[s,t]),b.useEffect(()=>{c?localStorage.setItem(`kizen-sandbox:${t}:selectedEntity`,JSON.stringify(c)):localStorage.removeItem(`kizen-sandbox:${t}:selectedEntity`)},[c,t]);const S=Co({queryKey:["custom-objects",o,u],queryFn:async()=>{const E=new URLSearchParams({page_size:"20"});return u&&E.set("search",u),await(await n(`/custom-objects?${E.toString()}`)).json()},enabled:r!==""&&u.length>=1,staleTime:3e4}),w=Co({queryKey:["entity-records",s==null?void 0:s.id,g],queryFn:async()=>{const E=new URLSearchParams({page_size:"20"});g&&E.set("search",g);const A=(s==null?void 0:s.id)??"";return await(await n(`/records/${A}/search?${E.toString()}`,{method:"POST",headers:{"Content-Type":"application/json"},body:"{}"})).json()},enabled:r!==""&&s!==null,staleTime:3e4}),_=((P=S.data)==null?void 0:P.results.map(E=>({id:E.id,label:E.object_name})))??[],T=((k=w.data)==null?void 0:k.results.map(E=>{const A=Object.values(E.fields).find(U=>U.name==="display_name"),L=A==null?void 0:A.value,z=typeof L=="string"?L:E.id;return{id:E.id,label:z}}))??[];if(!r)return x.jsx("p",{className:"mt-1 text-[12px] text-neutral-400",children:"Configure API credentials in Dev Tools to use JS action templates."});const I=s!==null&&c!==null;return x.jsxs("div",{className:"flex flex-col gap-3 p-2",children:[x.jsxs("div",{className:"flex gap-3",children:[x.jsx("div",{className:"flex-1",children:x.jsx(Eg,{label:"Custom Object",value:a,onChange:E=>{l(E),s&&(i(null),d(null),m(""))},onSelect:(E,A)=>{i({id:E,name:A}),l(A),d(null),m("")},options:_,loading:S.isFetching,placeholder:"Search custom objects…"})}),x.jsx("div",{className:"flex-1",children:x.jsx(Eg,{label:"Entity",value:h,onChange:E=>{m(E),c&&d(null)},onSelect:(E,A)=>{d({id:E,label:A}),m(A)},options:T,loading:w.isFetching,placeholder:"Search entities…",disabled:s===null})})]}),x.jsx("div",{className:"flex flex-wrap gap-2",children:e.map(E=>x.jsx(OI,{action:E,objectId:(s==null?void 0:s.id)??"",entityId:(c==null?void 0:c.id)??"",pluginApiName:t,disabled:!I},E.api_name))},I?`${s.id}-${c.id}`:"no-selection")]})},LI=({page:e,isActive:t})=>{const{scriptUIRef:n,outputUIRef:r,scopedCss:o,sanitizedHtml:s,interactableScriptRef:i,iframeURL:a,pending:l}=vI(e);return x.jsxs("div",{style:{display:t?"block":"none"},className:"relative h-full w-full",children:[l&&x.jsx("div",{className:"absolute inset-0 z-10 flex items-center justify-center bg-white/80 font-mono text-[11px] text-neutral-400",children:"loading…"}),e.type==="script"&&x.jsxs(x.Fragment,{children:[x.jsx("div",{ref:n,className:"h-full w-full p-3"}),x.jsx("style",{children:o})]}),e.type==="html"&&x.jsxs("div",{ref:i,className:"overflow-auto p-3",children:[s&&x.jsx("div",{dangerouslySetInnerHTML:{__html:s}}),x.jsx("div",{ref:r}),x.jsx("style",{children:o})]}),e.type==="iframe"&&a&&x.jsx("iframe",{src:a,className:"h-full w-full border-0",title:e.name})]})},jI=({pages:e})=>{var r;const[t,n]=b.useState(((r=e[0])==null?void 0:r.api_name)??null);return e.length===0?null:x.jsxs("div",{className:"mt-1.5 overflow-hidden rounded border border-black/10 bg-white",children:[x.jsxs("div",{className:"flex items-center gap-2 border-b border-black/8 bg-neutral-50 px-3 py-1.5",children:[x.jsxs("div",{className:"flex shrink-0 gap-1",children:[x.jsx("div",{className:"h-3 w-3 rounded-full bg-red-400/60"}),x.jsx("div",{className:"h-3 w-3 rounded-full bg-yellow-400/60"}),x.jsx("div",{className:"h-3 w-3 rounded-full bg-green-400/60"})]}),x.jsxs("div",{className:"min-w-0 flex-1 truncate rounded border border-black/8 bg-white px-2 py-0.5 font-mono text-[11px] text-neutral-400",children:["app://sandbox/",t??""]})]}),x.jsx("div",{className:"flex border-b border-black/8 bg-neutral-50",children:e.map(o=>x.jsx("button",{onClick:()=>{n(o.api_name)},className:`border-r border-black/8 px-3 py-1.5 font-mono text-[11px] transition-colors ${t===o.api_name?"bg-white font-medium text-neutral-900":"text-neutral-500 hover:bg-black/5"}`,children:o.name},o.api_name))}),x.jsx("div",{className:"min-h-[200px]",children:e.map(o=>x.jsx(LI,{page:o,isActive:o.api_name===t},o.api_name))})]})},FI=({item:e})=>{const[t,{pending:n}]=Ah({onError:r=>{console.error(`[toolbar] ${e.api_name}:`,r)},plugin:e});return x.jsxs("button",{onClick:()=>void t(e.script),disabled:n,className:"flex items-center gap-1.5 rounded border border-black/8 bg-white px-3 py-1.5 font-mono text-[12px] text-neutral-800 transition-colors hover:bg-black/5 disabled:opacity-50",children:[e.color&&x.jsx("span",{className:"h-2 w-2 shrink-0 rounded-full",style:{backgroundColor:e.color}}),x.jsx("span",{children:e.label}),n&&x.jsx("span",{className:"text-neutral-400",children:"…"})]})},Bl=e=>e.id??e.key??"",DI=(e,t)=>{const n={},r=o=>{var i,a,l;const s=Bl(o);if(s)if(o.type==="text")n[s]={value:t[s]??o.defaultValue??""};else if(o.type==="number"){const u=t[s];n[s]={value:u!==void 0&&u!==""?Number(u):o.default??null}}else if(o.type==="boolean"){const u=t[s];n[s]={value:u!==void 0?!!u:!!o.default}}else if(o.type==="select"){const u=t[s]??"",f=(i=o.options)==null?void 0:i.find(c=>c.value===u);n[s]={value:f??(u?{value:u,label:u}:null)}}else if(o.type==="dropdown"){const u=t[s]??o.defaultValue??"",f=(a=o.options)==null?void 0:a.find(c=>c.value===u);n[s]={value:f??(u?{value:u,label:u}:null)}}else o.type==="container"&&((l=o.fields)==null||l.forEach(r))};return e.forEach(r),n},wc=({label:e,required:t,tooltip:n})=>x.jsxs("span",{className:"flex items-center gap-1 text-[11px] font-medium text-neutral-500",children:[e,t&&x.jsx("span",{className:"text-red-500",children:"*"}),n&&x.jsx("span",{className:"cursor-help rounded-full border border-neutral-300 px-1 text-[10px] text-neutral-400",title:n,children:"i"})]}),Px=({block:e,values:t,onChange:n})=>{const r=Bl(e);if(e.type==="description")return x.jsx("p",{className:"m-0 text-[13px] text-neutral-700",children:e.content});if(e.type==="spacer")return x.jsx("div",{style:{height:e.height??8}});if(e.type==="text")return x.jsxs("label",{className:"flex flex-col gap-1",children:[x.jsx(wc,{label:e.label,required:e.required,tooltip:e.tooltip}),x.jsx("input",{type:"text",value:t[r]??e.defaultValue??"",placeholder:e.placeholder,onChange:o=>{n(r,o.target.value)},className:"rounded border border-black/10 px-2 py-1.5 font-mono text-[12px] focus:outline-none focus:ring-1 focus:ring-neutral-400"})]});if(e.type==="number")return x.jsxs("label",{className:"flex flex-col gap-1",children:[x.jsx(wc,{label:e.label,required:e.required,tooltip:e.tooltip}),x.jsx("input",{type:"number",value:t[r]??"",placeholder:e.placeholder,onChange:o=>{n(r,o.target.value)},className:"rounded border border-black/10 px-2 py-1.5 font-mono text-[12px] focus:outline-none focus:ring-1 focus:ring-neutral-400"})]});if(e.type==="boolean"){const o=t[r]!==void 0?!!t[r]:!!e.default;return x.jsxs("label",{className:"flex cursor-pointer items-center gap-2",children:[x.jsx("input",{type:"checkbox",checked:o,onChange:s=>{n(r,s.target.checked)},className:"h-3.5 w-3.5 rounded border-black/20 accent-neutral-800"}),x.jsxs("span",{className:"flex items-center gap-1 text-[12px] text-neutral-700",children:[e.label,e.required&&x.jsx("span",{className:"text-red-500",children:"*"}),e.tooltip&&x.jsx("span",{className:"cursor-help rounded-full border border-neutral-300 px-1 text-[10px] text-neutral-400",title:e.tooltip,children:"i"})]})]})}return e.type==="select"||e.type==="dropdown"?x.jsxs("label",{className:"flex flex-col gap-1",children:[x.jsx(wc,{label:e.label,required:e.required,tooltip:e.tooltip}),x.jsxs("select",{value:t[r]??e.defaultValue??"",onChange:o=>{n(r,o.target.value)},className:"rounded border border-black/10 bg-white px-2 py-1.5 font-mono text-[12px] focus:outline-none",children:[(e.placeholder!=null||!e.required)&&x.jsx("option",{value:"",children:e.placeholder??"—"}),(e.options??[]).map(o=>x.jsx("option",{value:o.value,children:o.label},o.value))]})]}):e.type==="container"?x.jsx("div",{className:"flex flex-wrap gap-3",children:(e.fields??[]).map(o=>x.jsx("div",{style:{width:o.widthPercent===50?"calc(50% - 6px)":"100%"},children:x.jsx(Px,{block:o,values:t,onChange:n})},Bl(o)||o.type))}):null},bg={small:"max-w-sm",medium:"max-w-md",large:"max-w-2xl"},$I=({show:e,config:t,onConfirm:n,onHide:r})=>{var m,g;const o=t,s=o.content??[],[i,a]=b.useState({}),l=b.useCallback((y,p)=>{a(v=>({...v,[y]:p}))},[]),u=()=>{const y=DI(s,i);a({}),n(y)},f=y=>{a({}),r(y)};if(!e)return null;const c=((m=t.confirmButton)==null?void 0:m.label)??"Confirm",d=((g=t.cancelButton)==null?void 0:g.label)??"Cancel",h=bg[o.size??"medium"]??bg.medium;return x.jsx("div",{role:"dialog",className:"fixed inset-0 z-[99999] flex items-start justify-center overflow-y-auto bg-black/30 px-4 py-12",onClick:()=>{f("close")},children:x.jsxs("div",{className:`w-full ${h??""} rounded-lg border border-black/10 bg-white font-mono shadow-xl`,onClick:y=>{y.stopPropagation()},children:[t.title&&x.jsx("div",{className:"border-b border-black/8 px-5 py-3",children:x.jsx("span",{className:"text-[13px] font-semibold text-neutral-900",children:t.title})}),s.length>0&&x.jsx("div",{className:"max-h-[60vh] space-y-3 overflow-y-auto px-5 py-4",children:s.map((y,p)=>x.jsx(Px,{block:y,values:i,onChange:l},Bl(y)||`${y.type}-${String(p)}`))}),x.jsxs("div",{className:"flex justify-end gap-2 border-t border-black/8 px-5 py-3",children:[x.jsx("button",{onClick:()=>{f("button")},className:"rounded border border-black/10 px-3 py-1.5 text-[12px] text-neutral-600 transition-colors hover:bg-black/5",children:d}),x.jsx("button",{onClick:u,className:"rounded bg-neutral-900 px-3 py-1.5 text-[12px] text-white transition-colors hover:bg-neutral-700",children:c})]})]})})},UI=({showingToast:e})=>{const{apiName:t}=cu({strict:!1}),n=QS(),{data:r,isLoading:o,isError:s}=Co(yu);if(o)return x.jsx(ln,{children:x.jsx("p",{className:"m-0 text-[13px] text-neutral-400",children:"Fetching bundle.json…"})});if(s)return x.jsx(ln,{children:x.jsx("p",{className:"m-0 text-[13px] text-red-700",children:"Could not load bundle.json."})});const i=r==null?void 0:r.find(c=>c.api_name===t);if(!i)return x.jsx(ln,{children:x.jsxs("p",{className:"m-0 text-[13px] text-neutral-500",children:["No app found with api_name"," ",x.jsx("code",{className:"rounded bg-neutral-100 px-1 py-0.5",children:t}),"."]})});const a=i.artifacts.floating_frames.map(c=>({...c,plugin_api_name:i.api_name})),l=i.artifacts.toolbar_items,u=i.artifacts.js_action_templates,f=i.artifacts.routable_pages.map(c=>({...c,plugin_api_name:i.api_name}));return a.length===0&&l.length===0&&u.length===0&&f.length===0?x.jsx(ln,{children:x.jsx("p",{className:"m-0 text-[13px] text-neutral-500",children:"No floating frames, toolbar items, JS actions, or routable pages defined in this plugin."})}):x.jsxs(x.Fragment,{children:[e&&x.jsx("div",{className:`fixed top-4 left-1/2 -translate-x-1/2 z-20 rounded px-4 py-2 text-sm font-medium ${{success:"bg-green-100 text-green-700",error:"bg-red-100 text-red-700",failure:"bg-red-100 text-red-700",alert:"bg-amber-100 text-amber-700"}[e.variant??"success"]??"bg-green-100 text-green-700"}`,children:e.message}),l.length>0&&x.jsxs("div",{children:[x.jsx("strong",{className:"text-xs",children:"Toolbar Items"}),x.jsx("div",{children:x.jsx("div",{className:"flex flex-wrap gap-2 p-2",children:l.map(c=>x.jsx(FI,{item:c},c.api_name))})})]}),u.length>0&&x.jsxs("div",{children:[x.jsx("strong",{className:"text-xs",children:"JS Action Templates"}),x.jsx(MI,{actions:u,pluginApiName:i.api_name})]}),f.length>0&&x.jsxs("div",{children:[x.jsx("strong",{className:"text-xs",children:"Routable Pages"}),x.jsx(jI,{pages:f})]}),a.length>0&&x.jsxs("div",{className:"pointer-events-none fixed inset-0",children:[x.jsxs("div",{className:"absolute bottom-0 left-0 flex flex-col-reverse gap-2 p-4",children:[a.map(c=>x.jsx("div",{id:`${c.plugin_api_name}-${c.api_name}-trigger-left`},c.api_name)),x.jsx("strong",{className:"text-xs",children:"Floating Frames"})]}),x.jsx("div",{className:"absolute bottom-0 flex flex-col-reverse gap-2 p-4",style:{right:n},children:a.map(c=>x.jsx("div",{id:`${c.plugin_api_name}-${c.api_name}-trigger-right`},c.api_name))}),a.map(c=>x.jsx(NI,{frame:c},c.api_name))]})]})},zI=()=>{const[e,t]=b.useState(null),[n,r]=b.useState(!1),[o,s]=b.useState(!1);b.useEffect(()=>{if(!e)return;const h=setTimeout(()=>{t(null)},5e3);return()=>{clearTimeout(h)}},[e]);const i=Ok(),a=WS(),{environment:l}=yh(),u=Sh[l],f=()=>{r(!0),s(!0)},c=()=>{r(!1),s(!1)},d=()=>{r(!1),s(!1)};return i?x.jsx(CI,{appPath:u,user:{id:i.team.user,crm_client_id:""},business:i.business,teamMember:i.team,onNavigate:()=>{},monitoringExceptionHelper:()=>{},performRequest:async(h,m,g,y)=>{const p=g==null?void 0:g.headers,v=await a(m,{method:h.toUpperCase(),...y!=null&&{body:JSON.stringify(y),headers:{"Content-Type":"application/json",...p}},...p!==void 0&&{headers:p}});return v.status===204||v.headers.get("content-length")==="0"?{data:{}}:{data:await v.json()}},modal:{showing:n,show:o,showPrompt:f,onConfirm:c,onHide:d},showToast:({message:h,variant:m})=>{t({message:h,variant:m??"success"})},clearToasts:()=>{t(null)},children:({showPluginModal:h,derivedModalState:m})=>x.jsxs(x.Fragment,{children:[x.jsx(UI,{showingToast:e}),x.jsx($I,{show:h,config:m.config,onConfirm:m.props.onConfirm,onHide:m.props.onHide})]})}):x.jsx(vu,{icon:Ck,className:"animate-spin text-neutral-400",size:"2x"})},Eu=qE({component:Lk}),BI=eh({getParentRoute:()=>Eu,path:"/",component:jk}),HI=eh({getParentRoute:()=>Eu,path:"/$apiName/summary",component:Fk}),WI=eh({getParentRoute:()=>Eu,path:"/$apiName/sandbox",component:zI}),VI=Eu.addChildren([BI,HI,WI]),QI=ob({routeTree:VI}),Rx=document.getElementById("root"),qI=new O0;if(Rx===null)throw new Error("Root element not found");qy(Rx).render(x.jsx(b.StrictMode,{children:x.jsx(L0,{client:qI,children:x.jsx(ab,{router:QI})})}));
637
+ `,sanitizedHtml:a,outputUIRef:o,interactableScriptRef:s}},ES=(e,t,n,r,o={})=>{const s=b.useMemo(()=>(t==null?void 0:t.event_scripts)??{},[t]),i=b.useCallback(a=>{if(a.preventDefault(),a.stopPropagation(),!r){const u=a.target.getAttribute("data-script");u&&s[u]&&e(s[u],{...o})}},[r,e,s,o]);b.useEffect(()=>{const a=n==null?void 0:n.current;return a&&a.addEventListener("click",i),()=>{a&&a.removeEventListener("click",i)}},[i,t,n])},xI=(e,t,n)=>{const r=e==null?void 0:e.iframe_url,o=e==null?void 0:e.script,s=e==null?void 0:e.callback,i=e==null?void 0:e.args,{showToast:a}=$s(),{t:l}=Ds(),u=b.useRef(null),[f,{pending:c}]=Ah({onError:S=>{a({message:`${l("Plugin error:")} ${(S==null?void 0:S.message)??""}`,variant:"failure"})},scriptUIRef:u,plugin:e}),d=b.useMemo(()=>{const S=new URLSearchParams(t);return{...Object.fromEntries(S),...i}},[t,i]),{outputUIRef:h,scopedCss:m,sanitizedHtml:g,interactableScriptRef:y}=_S(e,d);ES(f,e,u,c);const p=b.useRef(!1);b.useEffect(()=>{!r&&!p.current&&o&&!n&&(p.current=!0,f(o,d))},[r,f,o,d,n]);const v=b.useCallback(S=>{const w=S.data;if((w==null?void 0:w.type)==="kizen:plugin_callback"){const _=w.query;s&&f(s,_)}},[f,s]);return b.useEffect(()=>(window.addEventListener("message",v),()=>{window.removeEventListener("message",v)}),[v]),{scriptUIRef:u,outputUIRef:h,scopedCss:m,sanitizedHtml:g,interactableScriptRef:y,iframeURL:r,pending:c}},bS=b.createContext(null),wI=({children:e})=>{const[t,n]=b.useState([]),[r,o]=b.useState(!1),s=b.useCallback((a,l)=>{n(u=>{const f=u.filter(d=>d!==a),c=[a,...f];return l==null||l(c),c})},[]),i=b.useMemo(()=>[...t].reverse().reduce((a,l,u)=>({...a,[l]:u}),{}),[t]);return b.useEffect(()=>{const a=new MutationObserver(()=>{const l=document.querySelector('div[role="dialog"]');o(!!l)});return a.observe(document.body,{childList:!0}),()=>{a.disconnect()}},[]),x.jsx(bS.Provider,{value:{touchFloatingFrame:s,floatingFrameOffset:i},children:e(r)})},_I=()=>{const e=b.useContext(bS);if(!e)throw new Error("useFloatingFrame must be used within a FloatingFrameWrapper");return e},EI=["^/$","^/login*","/settings/mine$","/settings/others$","/create-new-business$","^/choose-business*","^/inactive-business$","^/reset$","/welcome$","/embed/*","/create-new-business$","/businessbuilder"],bI=["https://js.stripe.com"],PI=(e,t,n,r)=>e<n?t<r?"top-left":"top-right":t<r?"bottom-left":"bottom-right",RI=e=>{var jn,Lo,jo,ha,qr,Gr,pa;const{currentWindow:t,pathname:n,id:r,frameHeaderSize:o,defaultPositionGap:s=0,viewportHeight:i=window.innerHeight,hiddenByModal:a,updateEmployeeConfig:l}=e,u=b.useRef(null),f=b.useRef(!1),{showToast:c}=$s(),{t:d}=Ds(),{installedPluginAPINamesToIds:h,clientObject:m}=_u(),{touchFloatingFrame:g,floatingFrameOffset:y}=_I(),p=y[r]??-1,v=t.minimized_style==="none",S=t.minimized_style==="circle"||v,w=t.default_position==="bottom-right-fixed",_=t.default_position==="bottom-left-fixed",T=w||_,I=((jn=t.minimized_config)==null?void 0:jn.icon)??"action-drag-handle",P=((Lo=t.minimized_config)==null?void 0:Lo.color)??"blue",k=b.useMemo(()=>{const K=n.split("/"),H=K[1],be=K[2];if(H==="client")return{objectId:m==null?void 0:m.id,entityId:be};if(H==="custom-objects")return{objectId:be,entityId:K[3]}},[m,n]),E=b.useMemo(()=>{const K=t.match,H=t.ignore;return!!(K!=null&&K.length&&!K.some(be=>new RegExp(be).test(n))||EI.concat(H??[]).filter(Boolean).some(be=>{try{return new RegExp(be).test(n)}catch{return!1}}))},[t,n]),A=t.plugin_api_name?h[t.plugin_api_name]:"",[L,z]=b.useState(()=>{var K,H;return((H=(K=t.employee_config)==null?void 0:K[r])==null?void 0:H.minimized)??!1}),U=t.script,B=t.type,V=t.args,W=t.message_handler,N=t.width??0,[j,O]=b.useState(()=>{const K=window.innerHeight;return Math.min(t.height??0,K-o)}),[M,Q]=b.useState(null),te=t.default_position,oe=b.useCallback(K=>{var be,le,Re,tt,St,ut,nn,sr,Kr,ct;const H=(le=(be=t.employee_config)==null?void 0:be[r])==null?void 0:le.position;if(H!=null&&H.quadrant)if(H.quadrant==="top-left"){const Fe=((Re=H.deltas)==null?void 0:Re.left)??0,nt=((tt=H.deltas)==null?void 0:tt.top)??0;return{...H,left:Fe,top:nt}}else if(H.quadrant==="top-right"){const Fe=window.innerWidth-N-(((St=H.deltas)==null?void 0:St.right)??0),nt=((ut=H.deltas)==null?void 0:ut.top)??0;return{...H,left:Fe,top:nt}}else if(H.quadrant==="bottom-left"){const Fe=((nn=H.deltas)==null?void 0:nn.left)??0,nt=window.innerHeight-(L?0:j)-(((sr=H.deltas)==null?void 0:sr.bottom)??0)-o;return{...H,left:Fe,top:nt}}else{const Fe=window.innerWidth-N-(((Kr=H.deltas)==null?void 0:Kr.right)??0),nt=window.innerHeight-(L?0:j)-(((ct=H.deltas)==null?void 0:ct.bottom)??0)-o;return{...H,left:Fe,top:nt}}else{const Fe=window.innerWidth-N;let nt=window.innerHeight-j-o;if(L&&!K&&(nt=window.innerHeight-o),H)try{const Ht=H;return Ht.left>Fe&&(Ht.left=Fe),Ht.top>nt&&(Ht.top=nt),Ht.left<0&&(Ht.left=s),Ht.top<0&&(Ht.top=s),Ht}catch{}let ir=Fe;return te==="bottom-left"&&(ir=s),{left:ir,top:nt-s}}},[t,r,te,L,N,j,o,s]),re=b.useCallback(K=>{const H=oe(K),le=["bottom-right","bottom-left"].includes(H.quadrant??"")&&L?0:j;return H.left<0?H.left=0:H.left>window.innerWidth-N&&(H.left=window.innerWidth-N),H.top<0?H.top=0:H.top>window.innerHeight-le&&(H.top=window.innerHeight-le),H},[oe,N,j,L]);b.useEffect(()=>{const K=t.height??0;if(K>i){O(i-o);const H=oe(!0);H.top=0,Q(H)}else O(K)},[t.height,oe,i,o]);const[pe,_e]=b.useState(L),[Ue,zt]=b.useState(L&&S),en=j*5e-4*1e3,je=K=>{z(K),K&&S?setTimeout(()=>{zt(K)},en):S&&zt(K),_e(K),((M==null?void 0:M.quadrant)==="bottom-left"||(M==null?void 0:M.quadrant)==="bottom-right")&&Q(K?H=>H?{...H,top:H.top+j}:null:H=>{if(!H)return null;const be=window.innerHeight,le=H.top>=0&&H.top+j<=be;return{...H,top:le?H.top:H.top-j}}),l==null||l(r,L,M)({minimized:K})},[ce,{pending:me,hidden:ge,indicator:we,triggerHidden:Qe,hideHeader:He}]=yI({onError:K=>{c({message:`${d("Plugin error:")} ${(K==null?void 0:K.message)??""}`,variant:"failure"})},scriptUIRef:u,plugin:t,onChangeMinimized:K=>{je(K)}}),ye=b.useMemo(()=>He&&T,[He,T]),qe=b.useMemo(()=>{if(!M)return"top";const{left:K,top:H}=M,le=window.innerWidth-(K+N)<40,Re=H<40;return le?"left":Re?"bottom":"top"},[M,N]),Bt=b.useCallback(()=>{const K=_?"left":"right",H=`${t.plugin_api_name}-${t.api_name}-trigger-${K}`;return document.getElementById(H)},[_,t]),Ye=b.useCallback(()=>{if(!T)return;const K=Bt();if(!K)return;const H=K.getBoundingClientRect(),be=L?0:j,le=ye?0:o;let Re=H.top-(be+le)-s,tt=_?H.left:H.right-N;const St=be+le,ut=Math.max(0,window.innerWidth-N),nn=Math.max(0,window.innerHeight-St);tt=Math.min(Math.max(0,tt),ut),Re=Math.min(Math.max(0,Re),nn),Q({left:tt,top:Re,quadrant:_?"bottom-left":"bottom-right",deltas:{top:Re,left:tt,right:window.innerWidth-(tt+N),bottom:window.innerHeight-(Re+St)}})},[T,_,j,L,N,ye,Bt,o,s]);b.useEffect(()=>{T&&Ye()},[T,j,L,Ye]),b.useEffect(()=>{if(!T)return;Ye();const K=new ResizeObserver(()=>{Ye()});return K.observe(document.body),()=>{K.disconnect()}},[T,Ye]),b.useEffect(()=>{!f.current&&U&&B==="script"&&!E&&(f.current=!0,ce(U,{...V}))},[ce,U,B,V,E]),b.useEffect(()=>{const K=H=>{var le,Re,tt,St;const be=H;if(((Re=(le=be==null?void 0:be.detail)==null?void 0:le.recipient)==null?void 0:Re.frame)===t.api_name){const ut=be.detail;if(((tt=ut.recipient)==null?void 0:tt.plugin)!==t.plugin_api_name)return;if(ut.recipient.script&&((St=t.event_scripts)!=null&&St[ut.recipient.script])){const nn=t.event_scripts[ut.recipient.script]??"";ce(nn,{...ut.args,...V,...k})}}};return window.addEventListener(wg,K),()=>{window.removeEventListener(wg,K)}},[t,ce,V,k]);const[yt,et]=b.useState(!1),ae=(K,H)=>{et(!1),g(r);const be=window.innerWidth,le=window.innerHeight;if(H.node){const Re=H.node.getBoundingClientRect(),tt=Re.left,St=Re.top,ut=St+Re.height,nn=tt+Re.width,sr=St,Kr=le-ut,ct=tt,Fe=be-nn,nt=PI(sr,ct,Kr,Fe),ir={left:tt,right:nn,top:St,quadrant:nt,deltas:{top:sr,bottom:Kr,left:ct,right:Fe}};Q(ir),l==null||l(r,L,M)({position:ir})}};b.useEffect(()=>{const K=()=>{T?Ye():Q(re(!1))};return window.addEventListener("resize",K),()=>{window.removeEventListener("resize",K)}},[T,Ye,re]),ES(ce,t,u,me,V),b.useEffect(()=>{const K=H=>{H.source!==window&&W&&!bI.includes(H.origin)&&ce(W,{...V,eventData:H.data})};return window.addEventListener("message",K),()=>{window.removeEventListener("message",K)}},[ce,V,W]);const{outputUIRef:Ee,scopedCss:ze,sanitizedHtml:Tt,interactableScriptRef:Us}=_S(t,{}),zs=pe?ge||E||a:ge||E,Bs=`floating-window-parent--${r}`,Mo=`floating-drag-handle--${r}`,da=`floating-window-content--${r}`;let or=((Gr=(qr=(ha=(jo=t.employee_config)==null?void 0:jo[r])==null?void 0:ha.position)==null?void 0:qr.quadrant)==null?void 0:Gr.split("-")[1])==="right"?"right":"left";_?or="left":w&&(or="right");const Ln=(pa=t.minimized_config)==null?void 0:pa.customIcon;let tn=null;return Ln!=null&&Ln.startsWith("data:image/")&&(tn=({className:K=""})=>x.jsx("img",{src:Ln,alt:t.title||"Open Frame",className:`object-cover select-none pointer-events-none ${K}`})),M||Q(re(!1)),{circleProps:{id:r,side:or,circleIcon:I,CustomIcon:tn,circleColor:P,onClick:()=>{je(!L)},hidden:!!(zs||E||v||Qe)},parentProps:{className:Bs,dragging:yt,hidden:zs||Ue||E||v},draggableProps:{onStop:ae,onStart:()=>{et(!0)},bounds:`.${Bs}`,handle:`.${Mo}`,defaultPosition:{x:(M==null?void 0:M.left)??0,y:(M==null?void 0:M.top)??0},position:{x:(M==null?void 0:M.left)??0,y:(M==null?void 0:M.top)??0},disabled:T},floatProps:{pending:me,width:N,dragging:yt,height:j,isCircle:S&&L},contentProps:{className:da,dragging:yt,solid:!0},minimized:L,pending:me,indicator:we,hideHeader:ye,isFixed:T,isCircle:S,outputUIRef:Ee,scopedCss:ze,sanitizedHtml:Tt,interactableScriptRef:Us,tooltipPosition:qe,currentPluginId:A,setMinimized:je,dragHandleClassName:Mo,height:j,script:U,dragging:yt,frameOffset:p,scriptUIRef:u}},CI=()=>{b.useEffect(()=>{let e=null;const t=n=>{var s;if(!((s=n.detail)!=null&&s.location))return;const r=nI(n.detail.location);if(r===e)return;e=r,document.querySelectorAll(`iframe[id^=${G1}-]`).forEach(i=>{var l,u;let a=null;try{a=new URL(i.src,window.location.href).origin}catch(f){Eh("script-runner-logging")&&console.warn("Failed to parse iframe src for location change message target origin:",f),a=null}a&&((u=i.contentWindow)==null||u.postMessage({action:zk,location:(l=n.detail)==null?void 0:l.location},a))})};return window.addEventListener(cg,t),()=>{window.removeEventListener(cg,t)}},[])},kI=new O0,TI=({children:e})=>b.useContext(sh)?x.jsx(x.Fragment,{children:e}):x.jsx(L0,{client:kI,children:e}),II=e=>{const{children:t,bootstrapPlugins:n=[],userConfigs:r=[],user:o,teamMember:s,business:i,clientObject:a,onNavigate:l,modal:u,monitoringExceptionHelper:f,showToast:c,clearToasts:d,performRequest:h,appPath:m,hideFramesOnModal:g=!0,createFileId:y,performFileUpload:p,t:v}=e;return CI(),x.jsx(TI,{children:x.jsx(cI,{bootstrapPlugins:n,userConfigs:r,user:o,teamMember:s,business:i,clientObject:a,appPath:m,children:({hasFinishedBootstrapping:S,waitingOnRouteScript:w})=>x.jsx(gI,{t:v,children:x.jsx(fI,{children:_=>x.jsx(pI,{onNavigate:l,children:x.jsx(dI,{...u,children:T=>x.jsx(hI,{monitoringExceptionHelper:f,children:x.jsx(uI,{children:x.jsx(lI,{children:x.jsx(vI,{showToast:c,clearToasts:d,children:x.jsx(wI,{children:I=>x.jsx(mI,{performRequest:h,createFileId:y,performFileUpload:p,children:t({...T,showLoadingIndicator:_,hasFinishedBootstrapping:S,waitingOnRouteScript:w,hiddenByModal:g?I:!1})})})})})})})})})})})})})},AI=b.createContext(null);AI.Provider;const _g=36,NI=20,OI=9e3,MI=({frameId:e,side:t,color:n,zIndex:r,onClick:o,CustomIcon:s})=>{const i=document.getElementById(`${e}-trigger-${t}`);return i?iu.createPortal(x.jsx("button",{className:"pointer-events-auto flex h-10 w-10 items-center justify-center rounded-full border border-black/10 shadow-lg",style:{backgroundColor:n,zIndex:r},onClick:o,onPointerDown:a=>{a.stopPropagation()},title:"Open frame",children:s?x.jsx(s,{className:"h-6 w-6 rounded-full object-cover"}):x.jsx("span",{className:"font-mono text-[11px] text-white",children:"▲"})}),i):null},LI=({frame:e})=>{const t=`${e.plugin_api_name}-${e.api_name}`,n=Q1(),[r,o]=b.useState(window.innerHeight);b.useEffect(()=>{const U=new ResizeObserver(()=>{o(window.innerHeight)});return U.observe(document.body),()=>{U.disconnect()}},[]);const{circleProps:s,parentProps:i,draggableProps:a,pending:l,indicator:u,outputUIRef:f,scopedCss:c,sanitizedHtml:d,interactableScriptRef:h,hideHeader:m,setMinimized:g,dragHandleClassName:y,isFixed:p,isCircle:v,minimized:S,height:w,dragging:_,frameOffset:T,scriptUIRef:I}=RI({currentWindow:e,pathname:"/sandbox",id:t,frameHeaderSize:_g,defaultPositionGap:NI,viewportHeight:r,hiddenByModal:!1}),P=OI+Math.max(0,T),k=b.useRef(null),[E,A]=b.useState(a.position),L=a.position;b.useEffect(()=>{A({x:L.x,y:L.y})},[L.x,L.y]);const z=b.useCallback(U=>{if(a.disabled||!U.target.closest(`.${y}`))return;U.preventDefault(),a.onStart();const V=U.clientX,W=U.clientY,N=E.x,j=E.y,O=Q=>{A({x:N+Q.clientX-V,y:j+Q.clientY-W})},M=Q=>{document.removeEventListener("pointermove",O),document.removeEventListener("pointerup",M),a.onStop(Q,{node:k.current})};document.addEventListener("pointermove",O),document.addEventListener("pointerup",M)},[a,y,E]);return x.jsxs(x.Fragment,{children:[v&&!s.hidden&&x.jsx(MI,{frameId:t,side:s.side,color:s.circleColor,zIndex:P,onClick:s.onClick,CustomIcon:s.CustomIcon}),x.jsxs("div",{ref:k,className:i.className,style:{position:"fixed",left:Math.min(E.x,window.innerWidth-n-(e.width??300)),top:E.y,width:e.width??300,zIndex:P,borderRadius:6,overflow:"hidden",border:"1px solid rgba(0,0,0,0.1)",boxShadow:"0 4px 20px rgba(0,0,0,0.1)",backgroundColor:"white",opacity:i.hidden?0:1,pointerEvents:i.hidden?"none":"auto"},onPointerDown:z,children:[(l||u==="block")&&x.jsx("div",{className:"absolute inset-0 z-10 flex items-center justify-center bg-white/80 font-mono text-[11px] text-neutral-400",children:"loading…"}),!m&&x.jsxs("div",{className:"flex select-none items-center border-b border-black/8",style:{height:_g,backgroundColor:e.header_color??"#fafafa",color:e.header_text_color??"#1a1a1a"},children:[x.jsxs("div",{className:`${y} flex h-full flex-1 items-center gap-2 overflow-hidden px-3 ${p?"":"cursor-grab active:cursor-grabbing"}`,children:[!p&&x.jsx("span",{className:"shrink-0 font-mono text-[11px] opacity-30",children:"⠿"}),x.jsx("span",{className:"truncate font-mono text-[12px] font-medium",children:e.title})]}),x.jsx("button",{className:"flex h-full shrink-0 items-center px-3 font-mono text-[11px] transition-colors hover:bg-black/5",onClick:()=>{g(!S)},onMouseDown:U=>{U.stopPropagation()},onPointerDown:U=>{U.stopPropagation()},title:S?"Expand":"Collapse",children:S?"↑":"↓"})]}),x.jsxs("div",{style:{height:S?0:w,overflow:"hidden",transition:`height ${String(w*5e-4)}s ease`},children:[e.type==="script"&&x.jsxs("div",{className:"h-full w-full",style:{pointerEvents:_?"none":"auto"},children:[x.jsx("div",{className:"h-full w-full",ref:I}),x.jsx("style",{children:c})]}),e.type==="html"&&d&&x.jsxs("div",{ref:h,className:"overflow-auto bg-white",style:{height:w,pointerEvents:_?"none":"auto"},children:[x.jsx("div",{dangerouslySetInnerHTML:{__html:d}}),x.jsx("div",{ref:f}),x.jsx("style",{children:c})]})]})]})]})},Eg=({label:e,value:t,onChange:n,onSelect:r,options:o,loading:s,placeholder:i,disabled:a})=>{const[l,u]=b.useState(!1);return x.jsxs("div",{className:"relative flex flex-col gap-1",children:[x.jsx("label",{className:"text-[11px] font-semibold uppercase tracking-widest text-neutral-500",children:e}),x.jsx("input",{type:"text",className:"w-full rounded border border-black/10 bg-white px-2.5 py-1.5 font-mono text-[12px] text-neutral-800 focus:border-neutral-400 focus:outline-none disabled:opacity-50",value:t,placeholder:i,disabled:a,onChange:f=>{n(f.target.value)},onFocus:()=>{u(!0)},onBlur:()=>{u(!1)}}),l&&(s||o.length>0)&&x.jsxs("ul",{className:"absolute left-0 top-full z-10 mt-1 max-h-48 w-full overflow-auto rounded border border-black/10 bg-white shadow-lg",children:[s&&x.jsx("li",{className:"px-3 py-2 text-[12px] text-neutral-400",children:"Loading…"}),!s&&o.map(f=>x.jsx("li",{className:"cursor-pointer px-3 py-2 text-[12px] text-neutral-800 hover:bg-neutral-100",onMouseDown:c=>{c.preventDefault()},onClick:()=>{r(f.id,f.label),u(!1)},children:f.label},f.id))]})]})},jI=({action:e,objectId:t,entityId:n,pluginApiName:r,disabled:o})=>{const[s,{pending:i}]=SI({objectId:t,entityId:n,onError:l=>{console.error(`[js-action] ${e.api_name}:`,l)}}),a={id:e.api_name,api_name:e.api_name,plugin_api_name:r};return x.jsxs("button",{onClick:()=>{s(e.script,void 0,a)},disabled:o===!0||i,className:"flex flex-col items-start rounded border border-black/8 bg-white px-3 py-1.5 text-left transition-colors hover:bg-black/5 disabled:opacity-50",children:[x.jsx("span",{className:"font-mono text-[12px] text-neutral-800",children:e.name}),e.hint_object_name&&x.jsxs("span",{className:"font-mono text-[10px] text-neutral-400",children:["for: ",e.hint_object_name]}),i&&x.jsx("span",{className:"font-mono text-[10px] text-neutral-400",children:"running…"})]})},FI=({actions:e,pluginApiName:t})=>{var P,k;const n=W1(),{apiKey:r,businessId:o}=yh(),[s,i]=b.useState(()=>{try{const E=localStorage.getItem(`kizen-sandbox:${t}:selectedObject`);return E?JSON.parse(E):null}catch{return null}}),[a,l]=b.useState(()=>(s==null?void 0:s.name)??""),[u,f]=b.useState(""),[c,d]=b.useState(()=>{try{const E=localStorage.getItem(`kizen-sandbox:${t}:selectedEntity`);return E?JSON.parse(E):null}catch{return null}}),[h,m]=b.useState(()=>(c==null?void 0:c.label)??""),[g,y]=b.useState(""),p=b.useRef(null);b.useEffect(()=>(p.current&&clearTimeout(p.current),p.current=setTimeout(()=>{f(a)},300),()=>{p.current&&clearTimeout(p.current)}),[a]);const v=b.useRef(null);b.useEffect(()=>(v.current&&clearTimeout(v.current),v.current=setTimeout(()=>{y(h)},300),()=>{v.current&&clearTimeout(v.current)}),[h]),b.useEffect(()=>{s?localStorage.setItem(`kizen-sandbox:${t}:selectedObject`,JSON.stringify(s)):localStorage.removeItem(`kizen-sandbox:${t}:selectedObject`)},[s,t]),b.useEffect(()=>{c?localStorage.setItem(`kizen-sandbox:${t}:selectedEntity`,JSON.stringify(c)):localStorage.removeItem(`kizen-sandbox:${t}:selectedEntity`)},[c,t]);const S=ko({queryKey:["custom-objects",o,u],queryFn:async()=>{const E=new URLSearchParams({page_size:"20"});return u&&E.set("search",u),await(await n(`/custom-objects?${E.toString()}`)).json()},enabled:r!==""&&u.length>=1,staleTime:3e4}),w=ko({queryKey:["entity-records",s==null?void 0:s.id,g],queryFn:async()=>{const E=new URLSearchParams({page_size:"20"});g&&E.set("search",g);const A=(s==null?void 0:s.id)??"";return await(await n(`/records/${A}/search?${E.toString()}`,{method:"POST",headers:{"Content-Type":"application/json"},body:"{}"})).json()},enabled:r!==""&&s!==null,staleTime:3e4}),_=((P=S.data)==null?void 0:P.results.map(E=>({id:E.id,label:E.object_name})))??[],T=((k=w.data)==null?void 0:k.results.map(E=>{const A=Object.values(E.fields).find(U=>U.name==="display_name"),L=A==null?void 0:A.value,z=typeof L=="string"?L:E.id;return{id:E.id,label:z}}))??[];if(!r)return x.jsx("p",{className:"mt-1 text-[12px] text-neutral-400",children:"Configure API credentials in Dev Tools to use JS action templates."});const I=s!==null&&c!==null;return x.jsxs("div",{className:"flex flex-col gap-3 p-2",children:[x.jsxs("div",{className:"flex gap-3",children:[x.jsx("div",{className:"flex-1",children:x.jsx(Eg,{label:"Custom Object",value:a,onChange:E=>{l(E),s&&(i(null),d(null),m(""))},onSelect:(E,A)=>{i({id:E,name:A}),l(A),d(null),m("")},options:_,loading:S.isFetching,placeholder:"Search custom objects…"})}),x.jsx("div",{className:"flex-1",children:x.jsx(Eg,{label:"Entity",value:h,onChange:E=>{m(E),c&&d(null)},onSelect:(E,A)=>{d({id:E,label:A}),m(A)},options:T,loading:w.isFetching,placeholder:"Search entities…",disabled:s===null})})]}),x.jsx("div",{className:"flex flex-wrap gap-2",children:e.map(E=>x.jsx(jI,{action:E,objectId:(s==null?void 0:s.id)??"",entityId:(c==null?void 0:c.id)??"",pluginApiName:t,disabled:!I},E.api_name))},I?`${s.id}-${c.id}`:"no-selection")]})},DI=({page:e,isActive:t})=>{const{scriptUIRef:n,outputUIRef:r,scopedCss:o,sanitizedHtml:s,interactableScriptRef:i,iframeURL:a,pending:l}=xI(e);return x.jsxs("div",{style:{display:t?"block":"none"},className:"relative h-full w-full",children:[l&&x.jsx("div",{className:"absolute inset-0 z-10 flex items-center justify-center bg-white/80 font-mono text-[11px] text-neutral-400",children:"loading…"}),e.type==="script"&&x.jsxs(x.Fragment,{children:[x.jsx("div",{ref:n,className:"h-full w-full p-3"}),x.jsx("style",{children:o})]}),e.type==="html"&&x.jsxs("div",{ref:i,className:"overflow-auto p-3",children:[s&&x.jsx("div",{dangerouslySetInnerHTML:{__html:s}}),x.jsx("div",{ref:r}),x.jsx("style",{children:o})]}),e.type==="iframe"&&a&&x.jsx("iframe",{src:a,className:"h-full w-full border-0",title:e.name})]})},$I=({pages:e})=>{var r;const[t,n]=b.useState(((r=e[0])==null?void 0:r.api_name)??null);return e.length===0?null:x.jsxs("div",{className:"mt-1.5 overflow-hidden rounded border border-black/10 bg-white",children:[x.jsxs("div",{className:"flex items-center gap-2 border-b border-black/8 bg-neutral-50 px-3 py-1.5",children:[x.jsxs("div",{className:"flex shrink-0 gap-1",children:[x.jsx("div",{className:"h-3 w-3 rounded-full bg-red-400/60"}),x.jsx("div",{className:"h-3 w-3 rounded-full bg-yellow-400/60"}),x.jsx("div",{className:"h-3 w-3 rounded-full bg-green-400/60"})]}),x.jsxs("div",{className:"min-w-0 flex-1 truncate rounded border border-black/8 bg-white px-2 py-0.5 font-mono text-[11px] text-neutral-400",children:["app://sandbox/",t??""]})]}),x.jsx("div",{className:"flex border-b border-black/8 bg-neutral-50",children:e.map(o=>x.jsx("button",{onClick:()=>{n(o.api_name)},className:`border-r border-black/8 px-3 py-1.5 font-mono text-[11px] transition-colors ${t===o.api_name?"bg-white font-medium text-neutral-900":"text-neutral-500 hover:bg-black/5"}`,children:o.name},o.api_name))}),x.jsx("div",{className:"min-h-[200px]",children:e.map(o=>x.jsx(DI,{page:o,isActive:o.api_name===t},o.api_name))})]})},UI=({item:e})=>{const[t,{pending:n}]=Ah({onError:r=>{console.error(`[toolbar] ${e.api_name}:`,r)},plugin:e});return x.jsxs("button",{onClick:()=>void t(e.script),disabled:n,className:"flex items-center gap-1.5 rounded border border-black/8 bg-white px-3 py-1.5 font-mono text-[12px] text-neutral-800 transition-colors hover:bg-black/5 disabled:opacity-50",children:[e.color&&x.jsx("span",{className:"h-2 w-2 shrink-0 rounded-full",style:{backgroundColor:e.color}}),x.jsx("span",{children:e.label}),n&&x.jsx("span",{className:"text-neutral-400",children:"…"})]})},Hl=e=>e.id??e.key??"",zI=(e,t)=>{const n={},r=o=>{var i,a,l;const s=Hl(o);if(s)if(o.type==="text")n[s]={value:t[s]??o.defaultValue??""};else if(o.type==="number"){const u=t[s];n[s]={value:u!==void 0&&u!==""?Number(u):o.default??null}}else if(o.type==="boolean"){const u=t[s];n[s]={value:u!==void 0?!!u:!!o.default}}else if(o.type==="select"){const u=t[s]??"",f=(i=o.options)==null?void 0:i.find(c=>c.value===u);n[s]={value:f??(u?{value:u,label:u}:null)}}else if(o.type==="dropdown"){const u=t[s]??o.defaultValue??"",f=(a=o.options)==null?void 0:a.find(c=>c.value===u);n[s]={value:f??(u?{value:u,label:u}:null)}}else o.type==="container"&&((l=o.fields)==null||l.forEach(r))};return e.forEach(r),n},wc=({label:e,required:t,tooltip:n})=>x.jsxs("span",{className:"flex items-center gap-1 text-[11px] font-medium text-neutral-500",children:[e,t&&x.jsx("span",{className:"text-red-500",children:"*"}),n&&x.jsx("span",{className:"cursor-help rounded-full border border-neutral-300 px-1 text-[10px] text-neutral-400",title:n,children:"i"})]}),PS=({block:e,values:t,onChange:n})=>{const r=Hl(e);if(e.type==="description")return x.jsx("p",{className:"m-0 text-[13px] text-neutral-700",children:e.content});if(e.type==="spacer")return x.jsx("div",{style:{height:e.height??8}});if(e.type==="text")return x.jsxs("label",{className:"flex flex-col gap-1",children:[x.jsx(wc,{label:e.label,required:e.required,tooltip:e.tooltip}),x.jsx("input",{type:"text",value:t[r]??e.defaultValue??"",placeholder:e.placeholder,onChange:o=>{n(r,o.target.value)},className:"rounded border border-black/10 px-2 py-1.5 font-mono text-[12px] focus:outline-none focus:ring-1 focus:ring-neutral-400"})]});if(e.type==="number")return x.jsxs("label",{className:"flex flex-col gap-1",children:[x.jsx(wc,{label:e.label,required:e.required,tooltip:e.tooltip}),x.jsx("input",{type:"number",value:t[r]??"",placeholder:e.placeholder,onChange:o=>{n(r,o.target.value)},className:"rounded border border-black/10 px-2 py-1.5 font-mono text-[12px] focus:outline-none focus:ring-1 focus:ring-neutral-400"})]});if(e.type==="boolean"){const o=t[r]!==void 0?!!t[r]:!!e.default;return x.jsxs("label",{className:"flex cursor-pointer items-center gap-2",children:[x.jsx("input",{type:"checkbox",checked:o,onChange:s=>{n(r,s.target.checked)},className:"h-3.5 w-3.5 rounded border-black/20 accent-neutral-800"}),x.jsxs("span",{className:"flex items-center gap-1 text-[12px] text-neutral-700",children:[e.label,e.required&&x.jsx("span",{className:"text-red-500",children:"*"}),e.tooltip&&x.jsx("span",{className:"cursor-help rounded-full border border-neutral-300 px-1 text-[10px] text-neutral-400",title:e.tooltip,children:"i"})]})]})}return e.type==="select"||e.type==="dropdown"?x.jsxs("label",{className:"flex flex-col gap-1",children:[x.jsx(wc,{label:e.label,required:e.required,tooltip:e.tooltip}),x.jsxs("select",{value:t[r]??e.defaultValue??"",onChange:o=>{n(r,o.target.value)},className:"rounded border border-black/10 bg-white px-2 py-1.5 font-mono text-[12px] focus:outline-none",children:[(e.placeholder!=null||!e.required)&&x.jsx("option",{value:"",children:e.placeholder??"—"}),(e.options??[]).map(o=>x.jsx("option",{value:o.value,children:o.label},o.value))]})]}):e.type==="container"?x.jsx("div",{className:"flex flex-wrap gap-3",children:(e.fields??[]).map(o=>x.jsx("div",{style:{width:o.widthPercent===50?"calc(50% - 6px)":"100%"},children:x.jsx(PS,{block:o,values:t,onChange:n})},Hl(o)||o.type))}):null},bg={small:"max-w-sm",medium:"max-w-md",large:"max-w-2xl"},BI=({show:e,config:t,onConfirm:n,onHide:r})=>{var m,g;const o=t,s=o.content??[],[i,a]=b.useState({}),l=b.useCallback((y,p)=>{a(v=>({...v,[y]:p}))},[]),u=()=>{const y=zI(s,i);a({}),n(y)},f=y=>{a({}),r(y)};if(!e)return null;const c=((m=t.confirmButton)==null?void 0:m.label)??"Confirm",d=((g=t.cancelButton)==null?void 0:g.label)??"Cancel",h=bg[o.size??"medium"]??bg.medium;return x.jsx("div",{role:"dialog",className:"fixed inset-0 z-[99999] flex items-start justify-center overflow-y-auto bg-black/30 px-4 py-12",onClick:()=>{f("close")},children:x.jsxs("div",{className:`w-full ${h??""} rounded-lg border border-black/10 bg-white font-mono shadow-xl`,onClick:y=>{y.stopPropagation()},children:[t.title&&x.jsx("div",{className:"border-b border-black/8 px-5 py-3",children:x.jsx("span",{className:"text-[13px] font-semibold text-neutral-900",children:t.title})}),s.length>0&&x.jsx("div",{className:"max-h-[60vh] space-y-3 overflow-y-auto px-5 py-4",children:s.map((y,p)=>x.jsx(PS,{block:y,values:i,onChange:l},Hl(y)||`${y.type}-${String(p)}`))}),x.jsxs("div",{className:"flex justify-end gap-2 border-t border-black/8 px-5 py-3",children:[x.jsx("button",{onClick:()=>{f("button")},className:"rounded border border-black/10 px-3 py-1.5 text-[12px] text-neutral-600 transition-colors hover:bg-black/5",children:d}),x.jsx("button",{onClick:u,className:"rounded bg-neutral-900 px-3 py-1.5 text-[12px] text-white transition-colors hover:bg-neutral-700",children:c})]})]})})},HI=({showingToast:e})=>{const{apiName:t}=fu({strict:!1}),n=Q1(),{data:r,isLoading:o,isError:s}=ko(yu);if(o)return x.jsx(ln,{children:x.jsx("p",{className:"m-0 text-[13px] text-neutral-400",children:"Fetching bundle.json…"})});if(s)return x.jsx(ln,{children:x.jsx("p",{className:"m-0 text-[13px] text-red-700",children:"Could not load bundle.json."})});const i=r==null?void 0:r.find(c=>c.api_name===t);if(!i)return x.jsx(ln,{children:x.jsxs("p",{className:"m-0 text-[13px] text-neutral-500",children:["No app found with api_name"," ",x.jsx("code",{className:"rounded bg-neutral-100 px-1 py-0.5",children:t}),"."]})});const a=i.artifacts.floating_frames.map(c=>({...c,plugin_api_name:i.api_name})),l=i.artifacts.toolbar_items,u=i.artifacts.js_action_templates,f=i.artifacts.routable_pages.map(c=>({...c,plugin_api_name:i.api_name}));return a.length===0&&l.length===0&&u.length===0&&f.length===0?x.jsx(ln,{children:x.jsx("p",{className:"m-0 text-[13px] text-neutral-500",children:"No floating frames, toolbar items, JS actions, or routable pages defined in this plugin."})}):x.jsxs(x.Fragment,{children:[e&&x.jsx("div",{className:`fixed top-4 left-1/2 -translate-x-1/2 z-20 rounded px-4 py-2 text-sm font-medium ${{success:"bg-green-100 text-green-700",error:"bg-red-100 text-red-700",failure:"bg-red-100 text-red-700",alert:"bg-amber-100 text-amber-700"}[e.variant??"success"]??"bg-green-100 text-green-700"}`,children:e.message}),l.length>0&&x.jsxs("div",{children:[x.jsx("strong",{className:"text-xs",children:"Toolbar Items"}),x.jsx("div",{children:x.jsx("div",{className:"flex flex-wrap gap-2 p-2",children:l.map(c=>x.jsx(UI,{item:c},c.api_name))})})]}),u.length>0&&x.jsxs("div",{children:[x.jsx("strong",{className:"text-xs",children:"JS Action Templates"}),x.jsx(FI,{actions:u,pluginApiName:i.api_name})]}),f.length>0&&x.jsxs("div",{children:[x.jsx("strong",{className:"text-xs",children:"Routable Pages"}),x.jsx($I,{pages:f})]}),a.length>0&&x.jsxs("div",{className:"pointer-events-none fixed inset-0",children:[x.jsxs("div",{className:"absolute bottom-0 left-0 flex flex-col-reverse gap-2 p-4",children:[a.map(c=>x.jsx("div",{id:`${c.plugin_api_name}-${c.api_name}-trigger-left`},c.api_name)),x.jsx("strong",{className:"text-xs",children:"Floating Frames"})]}),x.jsx("div",{className:"absolute bottom-0 flex flex-col-reverse gap-2 p-4",style:{right:n},children:a.map(c=>x.jsx("div",{id:`${c.plugin_api_name}-${c.api_name}-trigger-right`},c.api_name))}),a.map(c=>x.jsx(LI,{frame:c},c.api_name))]})]})},WI=()=>{const[e,t]=b.useState(null),[n,r]=b.useState(!1),[o,s]=b.useState(!1);b.useEffect(()=>{if(!e)return;const h=setTimeout(()=>{t(null)},5e3);return()=>{clearTimeout(h)}},[e]);const i=jk(),a=W1(),{environment:l}=yh(),u=Sh[l],f=()=>{r(!0),s(!0)},c=()=>{r(!1),s(!1)},d=()=>{r(!1),s(!1)};return i?x.jsx(II,{appPath:u,user:{id:i.team.user,crm_client_id:""},business:i.business,teamMember:i.team,onNavigate:()=>{},monitoringExceptionHelper:()=>{},performRequest:async(h,m,g,y)=>{const p=g==null?void 0:g.headers,v=await a(m,{method:h.toUpperCase(),...y!=null&&{body:JSON.stringify(y),headers:{"Content-Type":"application/json",...p}},...p!==void 0&&{headers:p}});return v.status===204||v.headers.get("content-length")==="0"?{data:{}}:{data:await v.json()}},modal:{showing:n,show:o,showPrompt:f,onConfirm:c,onHide:d},showToast:({message:h,variant:m})=>{t({message:h,variant:m??"success"})},clearToasts:()=>{t(null)},children:({showPluginModal:h,derivedModalState:m})=>x.jsxs(x.Fragment,{children:[x.jsx(HI,{showingToast:e}),x.jsx(BI,{show:h,config:m.config,onConfirm:m.props.onConfirm,onHide:m.props.onHide})]})}):x.jsx(ao,{icon:Ck,className:"animate-spin text-neutral-400",size:"2x"})},Eu=qE({component:Dk}),VI=eh({getParentRoute:()=>Eu,path:"/",component:$k}),QI=eh({getParentRoute:()=>Eu,path:"/$apiName/summary",component:Uk}),qI=eh({getParentRoute:()=>Eu,path:"/$apiName/sandbox",component:WI}),GI=Eu.addChildren([VI,QI,qI]),KI=ob({routeTree:GI}),RS=document.getElementById("root"),YI=new O0;if(RS===null)throw new Error("Root element not found");qy(RS).render(x.jsx(b.StrictMode,{children:x.jsx(L0,{client:YI,children:x.jsx(ab,{router:KI})})}));