From 6cf13699a6ec8d16ce8e9e27f03b582ad3fef092 Mon Sep 17 00:00:00 2001 From: nandesh-dev Date: Sun, 3 Nov 2024 11:18:25 +0000 Subject: [PATCH] Minor accessibility changes --- web/assets/horizontalSubtitleDrop.tsx | 16 ++++++ web/assets/index.ts | 2 + web/assets/verticalSubtitleDrop.tsx | 16 ++++++ web/dist/assets/index-BssIRaZw.css | 1 + web/dist/assets/index-FXpzTyhU.js | 71 +++++++++++++++++++++++++++ web/dist/index.html | 21 ++++++++ web/dist/robots.txt | 2 + web/index.html | 1 + web/public/robots.txt | 2 + web/src/routes/root.tsx | 46 ++++++++++------- web/tsconfig.app.tsbuildinfo | 1 + web/tsconfig.node.tsbuildinfo | 1 + 12 files changed, 163 insertions(+), 17 deletions(-) create mode 100644 web/assets/horizontalSubtitleDrop.tsx create mode 100644 web/assets/verticalSubtitleDrop.tsx create mode 100644 web/dist/assets/index-BssIRaZw.css create mode 100644 web/dist/assets/index-FXpzTyhU.js create mode 100644 web/dist/index.html create mode 100644 web/dist/robots.txt create mode 100644 web/public/robots.txt create mode 100644 web/tsconfig.app.tsbuildinfo create mode 100644 web/tsconfig.node.tsbuildinfo diff --git a/web/assets/horizontalSubtitleDrop.tsx b/web/assets/horizontalSubtitleDrop.tsx new file mode 100644 index 0000000..25d21cf --- /dev/null +++ b/web/assets/horizontalSubtitleDrop.tsx @@ -0,0 +1,16 @@ +export function HorizontalSubtitleDrop() { + return ( + + + + ) +} diff --git a/web/assets/index.ts b/web/assets/index.ts index 4d9e387..9e77c18 100644 --- a/web/assets/index.ts +++ b/web/assets/index.ts @@ -5,3 +5,5 @@ export * from './search' export * from './cross' export * from './tick' export * from './processing' +export * from './verticalSubtitleDrop' +export * from './horizontalSubtitleDrop' diff --git a/web/assets/verticalSubtitleDrop.tsx b/web/assets/verticalSubtitleDrop.tsx new file mode 100644 index 0000000..74dfc63 --- /dev/null +++ b/web/assets/verticalSubtitleDrop.tsx @@ -0,0 +1,16 @@ +export function VerticalSubtitleDrop() { + return ( + + + + ) +} diff --git a/web/dist/assets/index-BssIRaZw.css b/web/dist/assets/index-BssIRaZw.css new file mode 100644 index 0000000..a26c039 --- /dev/null +++ b/web/dist/assets/index-BssIRaZw.css @@ -0,0 +1 @@ +*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:currentColor}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Sora,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}.absolute{position:absolute}.relative{position:relative}.bottom-0{bottom:0}.left-0{left:0}.right-0{right:0}.right-sm{right:1.2rem}.top-0{top:0}.top-sm{top:1.2rem}.col-span-2{grid-column:span 2 / span 2}.flex{display:flex}.grid{display:grid}.aspect-\[3\/4\]{aspect-ratio:3/4}.aspect-square{aspect-ratio:1 / 1}.h-3\/4{height:75%}.h-\[4px\]{height:4px}.h-\[8rem\]{height:8rem}.h-dvh{height:100dvh}.h-fit{height:-moz-fit-content;height:fit-content}.h-full{height:100%}.min-h-\[4rem\]{min-height:4rem}.w-3\/4{width:75%}.w-dvw{width:100dvw}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-xs{width:.6rem}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.grid-flow-row{grid-auto-flow:row}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-\[16rem_1fr\]{grid-template-columns:16rem 1fr}.grid-cols-\[1fr_20rem\]{grid-template-columns:1fr 20rem}.grid-cols-\[auto_1fr\]{grid-template-columns:auto 1fr}.grid-cols-\[repeat\(auto-fill\,minmax\(18rem\,1fr\)\)\]{grid-template-columns:repeat(auto-fill,minmax(18rem,1fr))}.grid-rows-2{grid-template-rows:repeat(2,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-items-end{justify-items:end}.gap-lg{gap:2.4rem}.gap-md{gap:1.8rem}.gap-sm{gap:1.2rem}.gap-xs{gap:.6rem}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.text-nowrap{text-wrap:nowrap}.rounded-md{border-radius:1.8rem}.rounded-sm{border-radius:1.2rem}.rounded-xs{border-radius:.6rem}.bg-gray-120{--tw-bg-opacity: 1;background-color:rgb(30 31 30 / var(--tw-bg-opacity))}.bg-gray-190{--tw-bg-opacity: 1;background-color:rgb(47 49 48 / var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(18 18 18 / var(--tw-bg-opacity))}.bg-gray-80{--tw-bg-opacity: 1;background-color:rgb(25 26 25 / var(--tw-bg-opacity))}.bg-primary{--tw-bg-opacity: 1;background-color:rgb(44 188 116 / var(--tw-bg-opacity))}.bg-opacity-75{--tw-bg-opacity: .75}.fill-gray-190{fill:#2f3130}.fill-gray-520{fill:#838683}.fill-gray-830{fill:#d4d5d4}.fill-orange{fill:#cb7a48}.fill-primary{fill:#2cbc74}.fill-red{fill:#cb484f}.stroke-primary{stroke:#2cbc74}.p-md{padding:1.8rem}.p-sm{padding:1.2rem}.p-xl{padding:3.6rem}.px-lg{padding-left:2.4rem;padding-right:2.4rem}.px-md{padding-left:1.8rem;padding-right:1.8rem}.px-sm{padding-left:1.2rem;padding-right:1.2rem}.px-xs{padding-left:.6rem;padding-right:.6rem}.py-sm{padding-top:1.2rem;padding-bottom:1.2rem}.py-xl{padding-top:3.6rem;padding-bottom:3.6rem}.py-xs{padding-top:.6rem;padding-bottom:.6rem}.py-xxl{padding-top:4.8rem;padding-bottom:4.8rem}.pb-xxl{padding-bottom:4.8rem}.pt-lg{padding-top:2.4rem}.pt-sm{padding-top:1.2rem}.text-center{text-align:center}.text-start{text-align:start}.text-lg{font-size:1.7em}.text-md{font-size:1.4em}.text-sm{font-size:1.1em}.text-xs{font-size:1em}.text-gray-520{--tw-text-opacity: 1;color:rgb(131 134 131 / var(--tw-text-opacity))}.text-gray-830{--tw-text-opacity: 1;color:rgb(212 213 212 / var(--tw-text-opacity))}.text-primary{--tw-text-opacity: 1;color:rgb(44 188 116 / var(--tw-text-opacity))}.opacity-0{opacity:0}.outline-dashed{outline-style:dashed}.outline-gray-190{outline-color:#2f3130}input{border:none;background:none;padding:0;margin:0;outline:none;box-shadow:none;appearance:none;-webkit-appearance:none;-moz-appearance:none}.placeholder\:text-sm::-moz-placeholder{font-size:1.1em}.placeholder\:text-sm::placeholder{font-size:1.1em}.placeholder\:text-gray-190::-moz-placeholder{--tw-text-opacity: 1;color:rgb(47 49 48 / var(--tw-text-opacity))}.placeholder\:text-gray-190::placeholder{--tw-text-opacity: 1;color:rgb(47 49 48 / var(--tw-text-opacity))}@media (min-width: 768px){.md\:min-h-\[4rem\]{min-height:4rem}.md\:px-lg{padding-left:2.4rem;padding-right:2.4rem}.md\:py-xxl{padding-top:4.8rem;padding-bottom:4.8rem}} diff --git a/web/dist/assets/index-FXpzTyhU.js b/web/dist/assets/index-FXpzTyhU.js new file mode 100644 index 0000000..c5f0621 --- /dev/null +++ b/web/dist/assets/index-FXpzTyhU.js @@ -0,0 +1,71 @@ +var Ff=e=>{throw TypeError(e)};var ca=(e,t,n)=>t.has(e)||Ff("Cannot "+n);var S=(e,t,n)=>(ca(e,t,"read from private field"),n?n.call(e):t.get(e)),J=(e,t,n)=>t.has(e)?Ff("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),z=(e,t,n,r)=>(ca(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),ee=(e,t,n)=>(ca(e,t,"access private method"),n);var ko=(e,t,n,r)=>({set _(i){z(e,t,i,n)},get _(){return S(e,t,r)}});function f1(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();function zl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var d1={exports:{}},Bl={},h1={exports:{}},Y={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var no=Symbol.for("react.element"),Z2=Symbol.for("react.portal"),G2=Symbol.for("react.fragment"),q2=Symbol.for("react.strict_mode"),X2=Symbol.for("react.profiler"),Y2=Symbol.for("react.provider"),em=Symbol.for("react.context"),tm=Symbol.for("react.forward_ref"),nm=Symbol.for("react.suspense"),rm=Symbol.for("react.memo"),im=Symbol.for("react.lazy"),jf=Symbol.iterator;function sm(e){return e===null||typeof e!="object"?null:(e=jf&&e[jf]||e["@@iterator"],typeof e=="function"?e:null)}var p1={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m1=Object.assign,y1={};function Hi(e,t,n){this.props=e,this.context=t,this.refs=y1,this.updater=n||p1}Hi.prototype.isReactComponent={};Hi.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")};Hi.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function g1(){}g1.prototype=Hi.prototype;function ac(e,t,n){this.props=e,this.context=t,this.refs=y1,this.updater=n||p1}var uc=ac.prototype=new g1;uc.constructor=ac;m1(uc,Hi.prototype);uc.isPureReactComponent=!0;var _f=Array.isArray,v1=Object.prototype.hasOwnProperty,cc={current:null},w1={key:!0,ref:!0,__self:!0,__source:!0};function C1(e,t,n){var r,i={},s=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(s=""+t.key),t)v1.call(t,r)&&!w1.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(l===1)i.children=n;else if(1>>1,pe=b[de];if(0>>1;dei(sn,Z))Bei(Et,sn)?(b[de]=Et,b[Be]=Z,de=Be):(b[de]=sn,b[lt]=Z,de=lt);else if(Bei(Et,Z))b[de]=Et,b[Be]=Z,de=Be;else break e}}return B}function i(b,B){var Z=b.sortIndex-B.sortIndex;return Z!==0?Z:b.id-B.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var o=Date,l=o.now();e.unstable_now=function(){return o.now()-l}}var a=[],u=[],c=1,f=null,d=3,p=!1,x=!1,C=!1,L=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(b){for(var B=n(u);B!==null;){if(B.callback===null)r(u);else if(B.startTime<=b)r(u),B.sortIndex=B.expirationTime,t(a,B);else break;B=n(u)}}function E(b){if(C=!1,y(b),!x)if(n(a)!==null)x=!0,_t(I);else{var B=n(u);B!==null&&Fn(E,B.startTime-b)}}function I(b,B){x=!1,C&&(C=!1,m(g),g=-1),p=!0;var Z=d;try{for(y(B),f=n(a);f!==null&&(!(f.expirationTime>B)||b&&!Q());){var de=f.callback;if(typeof de=="function"){f.callback=null,d=f.priorityLevel;var pe=de(f.expirationTime<=B);B=e.unstable_now(),typeof pe=="function"?f.callback=pe:f===n(a)&&r(a),y(B)}else r(a);f=n(a)}if(f!==null)var ot=!0;else{var lt=n(u);lt!==null&&Fn(E,lt.startTime-B),ot=!1}return ot}finally{f=null,d=Z,p=!1}}var F=!1,j=null,g=-1,_=5,M=-1;function Q(){return!(e.unstable_now()-M<_)}function ne(){if(j!==null){var b=e.unstable_now();M=b;var B=!0;try{B=j(!0,b)}finally{B?Fe():(F=!1,j=null)}}else F=!1}var Fe;if(typeof h=="function")Fe=function(){h(ne)};else if(typeof MessageChannel<"u"){var Ee=new MessageChannel,Qt=Ee.port2;Ee.port1.onmessage=ne,Fe=function(){Qt.postMessage(null)}}else Fe=function(){L(ne,0)};function _t(b){j=b,F||(F=!0,Fe())}function Fn(b,B){g=L(function(){b(e.unstable_now())},B)}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(b){b.callback=null},e.unstable_continueExecution=function(){x||p||(x=!0,_t(I))},e.unstable_forceFrameRate=function(b){0>b||125de?(b.sortIndex=Z,t(u,b),n(a)===null&&b===n(u)&&(C?(m(g),g=-1):C=!0,Fn(E,Z-de))):(b.sortIndex=pe,t(a,b),x||p||(x=!0,_t(I))),b},e.unstable_shouldYield=Q,e.unstable_wrapCallback=function(b){var B=d;return function(){var Z=d;d=B;try{return b.apply(this,arguments)}finally{d=Z}}}})(N1);E1.exports=N1;var vm=E1.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var wm=T,xt=vm;function O(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ja=Object.prototype.hasOwnProperty,Cm=/^[: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]*$/,Mf={},bf={};function xm(e){return Ja.call(bf,e)?!0:Ja.call(Mf,e)?!1:Cm.test(e)?bf[e]=!0:(Mf[e]=!0,!1)}function Sm(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 km(e,t,n,r){if(t===null||typeof t>"u"||Sm(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 st(e,t,n,r,i,s,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=o}var Qe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Qe[e]=new st(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Qe[t]=new st(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Qe[e]=new st(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Qe[e]=new st(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){Qe[e]=new st(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Qe[e]=new st(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Qe[e]=new st(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Qe[e]=new st(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Qe[e]=new st(e,5,!1,e.toLowerCase(),null,!1,!1)});var dc=/[\-:]([a-z])/g;function hc(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(dc,hc);Qe[t]=new st(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(dc,hc);Qe[t]=new st(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(dc,hc);Qe[t]=new st(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Qe[e]=new st(e,1,!1,e.toLowerCase(),null,!1,!1)});Qe.xlinkHref=new st("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Qe[e]=new st(e,1,!1,e.toLowerCase(),null,!0,!0)});function pc(e,t,n,r){var i=Qe.hasOwnProperty(t)?Qe[t]:null;(i!==null?i.type!==0:r||!(2l||i[o]!==s[l]){var a=` +`+i[o].replace(" at new "," at ");return e.displayName&&a.includes("")&&(a=a.replace("",e.displayName)),a}while(1<=o&&0<=l);break}}}finally{ha=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?as(e):""}function Em(e){switch(e.tag){case 5:return as(e.type);case 16:return as("Lazy");case 13:return as("Suspense");case 19:return as("SuspenseList");case 0:case 2:case 15:return e=pa(e.type,!1),e;case 11:return e=pa(e.type.render,!1),e;case 1:return e=pa(e.type,!0),e;default:return""}}function qa(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 ei:return"Fragment";case Yr:return"Portal";case Ka:return"Profiler";case mc:return"StrictMode";case Za:return"Suspense";case Ga:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case P1:return(e.displayName||"Context")+".Consumer";case T1:return(e._context.displayName||"Context")+".Provider";case yc:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case gc:return t=e.displayName||null,t!==null?t:qa(e.type)||"Memo";case zn:t=e._payload,e=e._init;try{return qa(e(t))}catch{}}return null}function Nm(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 qa(t);case 8:return t===mc?"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 ar(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function R1(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Lm(e){var t=R1(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 i=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,s.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Lo(e){e._valueTracker||(e._valueTracker=Lm(e))}function O1(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=R1(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 Xa(e,t){var n=t.checked;return ke({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Af(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ar(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 F1(e,t){t=t.checked,t!=null&&pc(e,"checked",t,!1)}function Ya(e,t){F1(e,t);var n=ar(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")?eu(e,t.type,n):t.hasOwnProperty("defaultValue")&&eu(e,t.type,ar(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function zf(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 eu(e,t,n){(t!=="number"||ul(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var us=Array.isArray;function di(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=To.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ls(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ps={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},Tm=["Webkit","ms","Moz","O"];Object.keys(ps).forEach(function(e){Tm.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ps[t]=ps[e]})});function M1(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||ps.hasOwnProperty(e)&&ps[e]?(""+t).trim():t+"px"}function b1(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=M1(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Pm=ke({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 ru(e,t){if(t){if(Pm[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(O(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(O(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(O(61))}if(t.style!=null&&typeof t.style!="object")throw Error(O(62))}}function iu(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 su=null;function vc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ou=null,hi=null,pi=null;function Hf(e){if(e=so(e)){if(typeof ou!="function")throw Error(O(280));var t=e.stateNode;t&&(t=Wl(t),ou(e.stateNode,e.type,t))}}function U1(e){hi?pi?pi.push(e):pi=[e]:hi=e}function A1(){if(hi){var e=hi,t=pi;if(pi=hi=null,Hf(e),t)for(e=0;e>>=0,e===0?32:31-(Am(e)/zm|0)|0}var Po=64,Io=4194304;function cs(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,i=e.suspendedLanes,s=e.pingedLanes,o=n&268435455;if(o!==0){var l=o&~i;l!==0?r=cs(l):(s&=o,s!==0&&(r=cs(s)))}else o=n&~i,o!==0?r=cs(o):s!==0&&(r=cs(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,s=t&-t,i>=s||i===16&&(s&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function ro(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Vt(t),e[t]=n}function $m(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=ys),Xf=" ",Yf=!1;function s0(e,t){switch(e){case"keyup":return v3.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function o0(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ti=!1;function C3(e,t){switch(e){case"compositionend":return o0(t);case"keypress":return t.which!==32?null:(Yf=!0,Xf);case"textInput":return e=t.data,e===Xf&&Yf?null:e;default:return null}}function x3(e,t){if(ti)return e==="compositionend"||!Lc&&s0(e,t)?(e=r0(),Ko=kc=qn=null,ti=!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)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=rd(n)}}function c0(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?c0(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function f0(){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 Tc(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 R3(e){var t=f0(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&c0(n.ownerDocument.documentElement,n)){if(r!==null&&Tc(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 i=n.textContent.length,s=Math.min(r.start,i);r=r.end===void 0?s:Math.min(r.end,i),!e.extend&&s>r&&(i=r,r=s,s=i),i=id(n,s);var o=id(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.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=document.documentMode,ni=null,du=null,vs=null,hu=!1;function sd(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;hu||ni==null||ni!==ul(r)||(r=ni,"selectionStart"in r&&Tc(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}),vs&&Fs(vs,r)||(vs=r,r=yl(du,"onSelect"),0si||(e.current=wu[si],wu[si]=null,si--)}function he(e,t){si++,wu[si]=e.current,e.current=t}var ur={},Ge=dr(ur),ft=dr(!1),br=ur;function ji(e,t){var n=e.type.contextTypes;if(!n)return ur;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in n)i[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function dt(e){return e=e.childContextTypes,e!=null}function vl(){ve(ft),ve(Ge)}function dd(e,t,n){if(Ge.current!==ur)throw Error(O(168));he(Ge,t),he(ft,n)}function C0(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(O(108,Nm(e)||"Unknown",i));return ke({},n,r)}function wl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ur,br=Ge.current,he(Ge,e),he(ft,ft.current),!0}function hd(e,t,n){var r=e.stateNode;if(!r)throw Error(O(169));n?(e=C0(e,t,br),r.__reactInternalMemoizedMergedChildContext=e,ve(ft),ve(Ge),he(Ge,e)):ve(ft),he(ft,n)}var Cn=null,Jl=!1,Pa=!1;function x0(e){Cn===null?Cn=[e]:Cn.push(e)}function V3(e){Jl=!0,x0(e)}function hr(){if(!Pa&&Cn!==null){Pa=!0;var e=0,t=ce;try{var n=Cn;for(ce=1;e>=o,i-=o,Sn=1<<32-Vt(t)+i|n<g?(_=j,j=null):_=j.sibling;var M=d(m,j,y[g],E);if(M===null){j===null&&(j=_);break}e&&j&&M.alternate===null&&t(m,j),h=s(M,h,g),F===null?I=M:F.sibling=M,F=M,j=_}if(g===y.length)return n(m,j),we&&wr(m,g),I;if(j===null){for(;gg?(_=j,j=null):_=j.sibling;var Q=d(m,j,M.value,E);if(Q===null){j===null&&(j=_);break}e&&j&&Q.alternate===null&&t(m,j),h=s(Q,h,g),F===null?I=Q:F.sibling=Q,F=Q,j=_}if(M.done)return n(m,j),we&&wr(m,g),I;if(j===null){for(;!M.done;g++,M=y.next())M=f(m,M.value,E),M!==null&&(h=s(M,h,g),F===null?I=M:F.sibling=M,F=M);return we&&wr(m,g),I}for(j=r(m,j);!M.done;g++,M=y.next())M=p(j,m,g,M.value,E),M!==null&&(e&&M.alternate!==null&&j.delete(M.key===null?g:M.key),h=s(M,h,g),F===null?I=M:F.sibling=M,F=M);return e&&j.forEach(function(ne){return t(m,ne)}),we&&wr(m,g),I}function L(m,h,y,E){if(typeof y=="object"&&y!==null&&y.type===ei&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case No:e:{for(var I=y.key,F=h;F!==null;){if(F.key===I){if(I=y.type,I===ei){if(F.tag===7){n(m,F.sibling),h=i(F,y.props.children),h.return=m,m=h;break e}}else if(F.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===zn&&yd(I)===F.type){n(m,F.sibling),h=i(F,y.props),h.ref=ts(m,F,y),h.return=m,m=h;break e}n(m,F);break}else t(m,F);F=F.sibling}y.type===ei?(h=Dr(y.props.children,m.mode,E,y.key),h.return=m,m=h):(E=nl(y.type,y.key,y.props,null,m.mode,E),E.ref=ts(m,h,y),E.return=m,m=E)}return o(m);case Yr:e:{for(F=y.key;h!==null;){if(h.key===F)if(h.tag===4&&h.stateNode.containerInfo===y.containerInfo&&h.stateNode.implementation===y.implementation){n(m,h.sibling),h=i(h,y.children||[]),h.return=m,m=h;break e}else{n(m,h);break}else t(m,h);h=h.sibling}h=Ma(y,m.mode,E),h.return=m,m=h}return o(m);case zn:return F=y._init,L(m,h,F(y._payload),E)}if(us(y))return x(m,h,y,E);if(Gi(y))return C(m,h,y,E);Mo(m,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,h!==null&&h.tag===6?(n(m,h.sibling),h=i(h,y),h.return=m,m=h):(n(m,h),h=Da(y,m.mode,E),h.return=m,m=h),o(m)):n(m,h)}return L}var Di=N0(!0),L0=N0(!1),Sl=dr(null),kl=null,ai=null,Oc=null;function Fc(){Oc=ai=kl=null}function jc(e){var t=Sl.current;ve(Sl),e._currentValue=t}function Su(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 yi(e,t){kl=e,Oc=ai=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ct=!0),e.firstContext=null)}function Ot(e){var t=e._currentValue;if(Oc!==e)if(e={context:e,memoizedValue:t,next:null},ai===null){if(kl===null)throw Error(O(308));ai=e,kl.dependencies={lanes:0,firstContext:e}}else ai=ai.next=e;return t}var kr=null;function _c(e){kr===null?kr=[e]:kr.push(e)}function T0(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,_c(t)):(n.next=i.next,i.next=n),t.interleaved=n,In(e,r)}function In(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 Bn=!1;function Dc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function P0(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 Nn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ir(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,se&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,In(e,n)}return i=r.interleaved,i===null?(t.next=t,_c(r)):(t.next=i.next,i.next=t),r.interleaved=t,In(e,n)}function Go(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,Cc(e,n)}}function gd(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?i=s=o:s=s.next=o,n=n.next}while(n!==null);s===null?i=s=t:s=s.next=t}else i=s=t;n={baseState:r.baseState,firstBaseUpdate:i,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 i=e.updateQueue;Bn=!1;var s=i.firstBaseUpdate,o=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var a=l,u=a.next;a.next=null,o===null?s=u:o.next=u,o=a;var c=e.alternate;c!==null&&(c=c.updateQueue,l=c.lastBaseUpdate,l!==o&&(l===null?c.firstBaseUpdate=u:l.next=u,c.lastBaseUpdate=a))}if(s!==null){var f=i.baseState;o=0,c=u=a=null,l=s;do{var d=l.lane,p=l.eventTime;if((r&d)===d){c!==null&&(c=c.next={eventTime:p,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var x=e,C=l;switch(d=t,p=n,C.tag){case 1:if(x=C.payload,typeof x=="function"){f=x.call(p,f,d);break e}f=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=C.payload,d=typeof x=="function"?x.call(p,f,d):x,d==null)break e;f=ke({},f,d);break e;case 2:Bn=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,d=i.effects,d===null?i.effects=[l]:d.push(l))}else p={eventTime:p,lane:d,tag:l.tag,payload:l.payload,callback:l.callback,next:null},c===null?(u=c=p,a=f):c=c.next=p,o|=d;if(l=l.next,l===null){if(l=i.shared.pending,l===null)break;d=l,l=d.next,d.next=null,i.lastBaseUpdate=d,i.shared.pending=null}}while(!0);if(c===null&&(a=f),i.baseState=a,i.firstBaseUpdate=u,i.lastBaseUpdate=c,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else s===null&&(i.shared.lanes=0);zr|=o,e.lanes=o,e.memoizedState=f}}function vd(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Ra.transition;Ra.transition={};try{e(!1),t()}finally{ce=n,Ra.transition=r}}function Q0(){return Ft().memoizedState}function W3(e,t,n){var r=or(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},W0(e))J0(t,n);else if(n=T0(e,t,n,r),n!==null){var i=rt();Ht(n,e,r,i),K0(n,t,r)}}function J3(e,t,n){var r=or(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(W0(e))J0(t,i);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var o=t.lastRenderedState,l=s(o,n);if(i.hasEagerState=!0,i.eagerState=l,$t(l,o)){var a=t.interleaved;a===null?(i.next=i,_c(t)):(i.next=a.next,a.next=i),t.interleaved=i;return}}catch{}finally{}n=T0(e,t,i,r),n!==null&&(i=rt(),Ht(n,e,r,i),K0(n,t,r))}}function W0(e){var t=e.alternate;return e===Se||t!==null&&t===Se}function J0(e,t){ws=Ll=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function K0(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Cc(e,n)}}var Tl={readContext:Ot,useCallback:We,useContext:We,useEffect:We,useImperativeHandle:We,useInsertionEffect:We,useLayoutEffect:We,useMemo:We,useReducer:We,useRef:We,useState:We,useDebugValue:We,useDeferredValue:We,useTransition:We,useMutableSource:We,useSyncExternalStore:We,useId:We,unstable_isNewReconciler:!1},K3={readContext:Ot,useCallback:function(e,t){return Jt().memoizedState=[e,t===void 0?null:t],e},useContext:Ot,useEffect:Cd,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Xo(4194308,4,z0.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Xo(4194308,4,e,t)},useInsertionEffect:function(e,t){return Xo(4,2,e,t)},useMemo:function(e,t){var n=Jt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Jt();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=W3.bind(null,Se,e),[r.memoizedState,e]},useRef:function(e){var t=Jt();return e={current:e},t.memoizedState=e},useState:wd,useDebugValue:Hc,useDeferredValue:function(e){return Jt().memoizedState=e},useTransition:function(){var e=wd(!1),t=e[0];return e=Q3.bind(null,e[1]),Jt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Se,i=Jt();if(we){if(n===void 0)throw Error(O(407));n=n()}else{if(n=t(),ze===null)throw Error(O(349));Ar&30||F0(r,t,n)}i.memoizedState=n;var s={value:n,getSnapshot:t};return i.queue=s,Cd(_0.bind(null,r,s,e),[e]),r.flags|=2048,zs(9,j0.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=Jt(),t=ze.identifierPrefix;if(we){var n=kn,r=Sn;n=(r&~(1<<32-Vt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Us++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[Yt]=t,e[Ds]=r,ip(e,t,!1,!1),t.stateNode=e;e:{switch(o=iu(n,r),n){case"dialog":ye("cancel",e),ye("close",e),i=r;break;case"iframe":case"object":case"embed":ye("load",e),i=r;break;case"video":case"audio":for(i=0;iUi&&(t.flags|=128,r=!0,ns(s,!1),t.lanes=4194304)}else{if(!r)if(e=Nl(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ns(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!we)return Je(t),null}else 2*Re()-s.renderingStartTime>Ui&&n!==1073741824&&(t.flags|=128,r=!0,ns(s,!1),t.lanes=4194304);s.isBackwards?(o.sibling=t.child,t.child=o):(n=s.last,n!==null?n.sibling=o:t.child=o,s.last=o)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Re(),t.sibling=null,n=xe.current,he(xe,r?n&1|2:n&1),t):(Je(t),null);case 22:case 23:return Zc(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?yt&1073741824&&(Je(t),t.subtreeFlags&6&&(t.flags|=8192)):Je(t),null;case 24:return null;case 25:return null}throw Error(O(156,t.tag))}function n4(e,t){switch(Ic(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 Mi(),ve(ft),ve(Ge),Uc(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return bc(t),null;case 13:if(ve(xe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(O(340));_i()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ve(xe),null;case 4:return Mi(),null;case 10:return jc(t.type._context),null;case 22:case 23:return Zc(),null;case 24:return null;default:return null}}var Uo=!1,Ze=!1,r4=typeof WeakSet=="function"?WeakSet:Set,A=null;function ui(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Pe(e,t,r)}else n.current=null}function Ou(e,t,n){try{n()}catch(r){Pe(e,t,r)}}var Od=!1;function i4(e,t){if(pu=pl,e=f0(),Tc(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 i=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var o=0,l=-1,a=-1,u=0,c=0,f=e,d=null;t:for(;;){for(var p;f!==n||i!==0&&f.nodeType!==3||(l=o+i),f!==s||r!==0&&f.nodeType!==3||(a=o+r),f.nodeType===3&&(o+=f.nodeValue.length),(p=f.firstChild)!==null;)d=f,f=p;for(;;){if(f===e)break t;if(d===n&&++u===i&&(l=o),d===s&&++c===r&&(a=o),(p=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=p}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(mu={focusedElem:e,selectionRange:n},pl=!1,A=t;A!==null;)if(t=A,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,A=e;else for(;A!==null;){t=A;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var C=x.memoizedProps,L=x.memoizedState,m=t.stateNode,h=m.getSnapshotBeforeUpdate(t.elementType===t.type?C:Mt(t.type,C),L);m.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(O(163))}}catch(E){Pe(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,A=e;break}A=t.return}return x=Od,Od=!1,x}function Cs(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var s=i.destroy;i.destroy=void 0,s!==void 0&&Ou(t,n,s)}i=i.next}while(i!==r)}}function Gl(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 Fu(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 lp(e){var t=e.alternate;t!==null&&(e.alternate=null,lp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Yt],delete t[Ds],delete t[vu],delete t[z3],delete t[B3])),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 ap(e){return e.tag===5||e.tag===3||e.tag===4}function Fd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ap(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 ju(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(ju(e,t,n),e=e.sibling;e!==null;)ju(e,t,n),e=e.sibling}function _u(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(_u(e,t,n),e=e.sibling;e!==null;)_u(e,t,n),e=e.sibling}var Ve=null,Ut=!1;function Mn(e,t,n){for(n=n.child;n!==null;)up(e,t,n),n=n.sibling}function up(e,t,n){if(nn&&typeof nn.onCommitFiberUnmount=="function")try{nn.onCommitFiberUnmount(Vl,n)}catch{}switch(n.tag){case 5:Ze||ui(n,t);case 6:var r=Ve,i=Ut;Ve=null,Mn(e,t,n),Ve=r,Ut=i,Ve!==null&&(Ut?(e=Ve,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ve.removeChild(n.stateNode));break;case 18:Ve!==null&&(Ut?(e=Ve,n=n.stateNode,e.nodeType===8?Ta(e.parentNode,n):e.nodeType===1&&Ta(e,n),Rs(e)):Ta(Ve,n.stateNode));break;case 4:r=Ve,i=Ut,Ve=n.stateNode.containerInfo,Ut=!0,Mn(e,t,n),Ve=r,Ut=i;break;case 0:case 11:case 14:case 15:if(!Ze&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var s=i,o=s.destroy;s=s.tag,o!==void 0&&(s&2||s&4)&&Ou(n,t,o),i=i.next}while(i!==r)}Mn(e,t,n);break;case 1:if(!Ze&&(ui(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){Pe(n,t,l)}Mn(e,t,n);break;case 21:Mn(e,t,n);break;case 22:n.mode&1?(Ze=(r=Ze)||n.memoizedState!==null,Mn(e,t,n),Ze=r):Mn(e,t,n);break;default:Mn(e,t,n)}}function jd(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new r4),t.forEach(function(r){var i=h4.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Dt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=o),r&=~s}if(r=i,r=Re()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*o4(r/1960))-r,10e?16:e,Xn===null)var r=!1;else{if(e=Xn,Xn=null,Rl=0,se&6)throw Error(O(331));var i=se;for(se|=4,A=e.current;A!==null;){var s=A,o=s.child;if(A.flags&16){var l=s.deletions;if(l!==null){for(var a=0;aRe()-Jc?_r(e,0):Wc|=n),ht(e,t)}function gp(e,t){t===0&&(e.mode&1?(t=Io,Io<<=1,!(Io&130023424)&&(Io=4194304)):t=1);var n=rt();e=In(e,t),e!==null&&(ro(e,t,n),ht(e,n))}function d4(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),gp(e,n)}function h4(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(O(314))}r!==null&&r.delete(t),gp(e,n)}var vp;vp=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ft.current)ct=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ct=!1,e4(e,t,n);ct=!!(e.flags&131072)}else ct=!1,we&&t.flags&1048576&&S0(t,xl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Yo(e,t),e=t.pendingProps;var i=ji(t,Ge.current);yi(t,n),i=zc(null,t,r,e,i,n);var s=Bc();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,dt(r)?(s=!0,wl(t)):s=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Dc(t),i.updater=Zl,t.stateNode=i,i._reactInternals=t,Eu(t,r,e,n),t=Tu(null,t,r,!0,s,n)):(t.tag=0,we&&s&&Pc(t),nt(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Yo(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=m4(r),e=Mt(r,e),i){case 0:t=Lu(null,t,r,e,n);break e;case 1:t=Pd(null,t,r,e,n);break e;case 11:t=Ld(null,t,r,e,n);break e;case 14:t=Td(null,t,r,Mt(r.type,e),n);break e}throw Error(O(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Mt(r,i),Lu(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Mt(r,i),Pd(e,t,r,i,n);case 3:e:{if(tp(t),e===null)throw Error(O(387));r=t.pendingProps,s=t.memoizedState,i=s.element,P0(e,t),El(t,r,null,n);var o=t.memoizedState;if(r=o.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){i=bi(Error(O(423)),t),t=Id(e,t,r,n,i);break e}else if(r!==i){i=bi(Error(O(424)),t),t=Id(e,t,r,n,i);break e}else for(wt=rr(t.stateNode.containerInfo.firstChild),Ct=t,we=!0,zt=null,n=L0(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(_i(),r===i){t=Rn(e,t,n);break e}nt(e,t,r,n)}t=t.child}return t;case 5:return I0(t),e===null&&xu(t),r=t.type,i=t.pendingProps,s=e!==null?e.memoizedProps:null,o=i.children,yu(r,i)?o=null:s!==null&&yu(r,s)&&(t.flags|=32),ep(e,t),nt(e,t,o,n),t.child;case 6:return e===null&&xu(t),null;case 13:return np(e,t,n);case 4:return Mc(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Di(t,null,r,n):nt(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Mt(r,i),Ld(e,t,r,i,n);case 7:return nt(e,t,t.pendingProps,n),t.child;case 8:return nt(e,t,t.pendingProps.children,n),t.child;case 12:return nt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,s=t.memoizedProps,o=i.value,he(Sl,r._currentValue),r._currentValue=o,s!==null)if($t(s.value,o)){if(s.children===i.children&&!ft.current){t=Rn(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var l=s.dependencies;if(l!==null){o=s.child;for(var a=l.firstContext;a!==null;){if(a.context===r){if(s.tag===1){a=Nn(-1,n&-n),a.tag=2;var u=s.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?a.next=a:(a.next=c.next,c.next=a),u.pending=a}}s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),Su(s.return,n,t),l.lanes|=n;break}a=a.next}}else if(s.tag===10)o=s.type===t.type?null:s.child;else if(s.tag===18){if(o=s.return,o===null)throw Error(O(341));o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),Su(o,n,t),o=s.sibling}else o=s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===t){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}nt(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,yi(t,n),i=Ot(i),r=r(i),t.flags|=1,nt(e,t,r,n),t.child;case 14:return r=t.type,i=Mt(r,t.pendingProps),i=Mt(r.type,i),Td(e,t,r,i,n);case 15:return X0(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Mt(r,i),Yo(e,t),t.tag=1,dt(r)?(e=!0,wl(t)):e=!1,yi(t,n),Z0(t,r,i),Eu(t,r,i,n),Tu(null,t,r,!0,e,n);case 19:return rp(e,t,n);case 22:return Y0(e,t,n)}throw Error(O(156,t.tag))};function wp(e,t){return W1(e,t)}function p4(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 It(e,t,n,r){return new p4(e,t,n,r)}function qc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function m4(e){if(typeof e=="function")return qc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===yc)return 11;if(e===gc)return 14}return 2}function lr(e,t){var n=e.alternate;return n===null?(n=It(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 nl(e,t,n,r,i,s){var o=2;if(r=e,typeof e=="function")qc(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case ei:return Dr(n.children,i,s,t);case mc:o=8,i|=8;break;case Ka:return e=It(12,n,t,i|2),e.elementType=Ka,e.lanes=s,e;case Za:return e=It(13,n,t,i),e.elementType=Za,e.lanes=s,e;case Ga:return e=It(19,n,t,i),e.elementType=Ga,e.lanes=s,e;case I1:return Xl(n,i,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case T1:o=10;break e;case P1:o=9;break e;case yc:o=11;break e;case gc:o=14;break e;case zn:o=16,r=null;break e}throw Error(O(130,e==null?e:typeof e,""))}return t=It(o,n,t,i),t.elementType=e,t.type=r,t.lanes=s,t}function Dr(e,t,n,r){return e=It(7,e,r,t),e.lanes=n,e}function Xl(e,t,n,r){return e=It(22,e,r,t),e.elementType=I1,e.lanes=n,e.stateNode={isHidden:!1},e}function Da(e,t,n){return e=It(6,e,null,t),e.lanes=n,e}function Ma(e,t,n){return t=It(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function y4(e,t,n,r,i){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=ya(0),this.expirationTimes=ya(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ya(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Xc(e,t,n,r,i,s,o,l,a){return e=new y4(e,t,n,l,a),t===1?(t=1,s===!0&&(t|=8)):t=0,s=It(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Dc(s),e}function g4(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(kp)}catch(e){console.error(e)}}kp(),k1.exports=St;var nf=k1.exports;const S4=zl(nf),k4=f1({__proto__:null,default:S4},[nf]);var Ep,Bd=nf;Ep=Bd.createRoot,Bd.hydrateRoot;/** + * @remix-run/router v1.19.2 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function Ce(){return Ce=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Ai(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function N4(){return Math.random().toString(36).substr(2,8)}function Hd(e,t){return{usr:e.state,key:e.key,idx:t}}function Vs(e,t,n,r){return n===void 0&&(n=null),Ce({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?pr(t):t,{state:n,key:t&&t.key||r||N4()})}function Vr(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function pr(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function L4(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:s=!1}=r,o=i.history,l=_e.Pop,a=null,u=c();u==null&&(u=0,o.replaceState(Ce({},o.state,{idx:u}),""));function c(){return(o.state||{idx:null}).idx}function f(){l=_e.Pop;let L=c(),m=L==null?null:L-u;u=L,a&&a({action:l,location:C.location,delta:m})}function d(L,m){l=_e.Push;let h=Vs(C.location,L,m);u=c()+1;let y=Hd(h,u),E=C.createHref(h);try{o.pushState(y,"",E)}catch(I){if(I instanceof DOMException&&I.name==="DataCloneError")throw I;i.location.assign(E)}s&&a&&a({action:l,location:C.location,delta:1})}function p(L,m){l=_e.Replace;let h=Vs(C.location,L,m);u=c();let y=Hd(h,u),E=C.createHref(h);o.replaceState(y,"",E),s&&a&&a({action:l,location:C.location,delta:0})}function x(L){let m=i.location.origin!=="null"?i.location.origin:i.location.href,h=typeof L=="string"?L:Vr(L);return h=h.replace(/ $/,"%20"),X(m,"No window.location.(origin|href) available to create URL for href: "+h),new URL(h,m)}let C={get action(){return l},get location(){return e(i,o)},listen(L){if(a)throw new Error("A history only accepts one active listener");return i.addEventListener(Vd,f),a=L,()=>{i.removeEventListener(Vd,f),a=null}},createHref(L){return t(i,L)},createURL:x,encodeLocation(L){let m=x(L);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:d,replace:p,go(L){return o.go(L)}};return C}var fe;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(fe||(fe={}));const T4=new Set(["lazy","caseSensitive","path","id","index","children"]);function P4(e){return e.index===!0}function Hs(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((i,s)=>{let o=[...n,String(s)],l=typeof i.id=="string"?i.id:o.join("-");if(X(i.index!==!0||!i.children,"Cannot specify children on an index route"),X(!r[l],'Found a route id collision on id "'+l+`". Route id's must be globally unique within Data Router usages`),P4(i)){let a=Ce({},i,t(i),{id:l});return r[l]=a,a}else{let a=Ce({},i,t(i),{id:l,children:void 0});return r[l]=a,i.children&&(a.children=Hs(i.children,t,o,r)),a}})}function xr(e,t,n){return n===void 0&&(n="/"),rl(e,t,n,!1)}function rl(e,t,n,r){let i=typeof t=="string"?pr(t):t,s=Wi(i.pathname||"/",n);if(s==null)return null;let o=Np(e);R4(o);let l=null;for(let a=0;l==null&&a{let a={relativePath:l===void 0?s.path||"":l,caseSensitive:s.caseSensitive===!0,childrenIndex:o,route:s};a.relativePath.startsWith("/")&&(X(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),a.relativePath=a.relativePath.slice(r.length));let u=Ln([r,a.relativePath]),c=n.concat(a);s.children&&s.children.length>0&&(X(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),Np(s.children,t,c,u)),!(s.path==null&&!s.index)&&t.push({path:u,score:b4(u,s.index),routesMeta:c})};return e.forEach((s,o)=>{var l;if(s.path===""||!((l=s.path)!=null&&l.includes("?")))i(s,o);else for(let a of Lp(s.path))i(s,o,a)}),t}function Lp(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return i?[s,""]:[s];let o=Lp(r.join("/")),l=[];return l.push(...o.map(a=>a===""?s:[s,a].join("/"))),i&&l.push(...o),l.map(a=>e.startsWith("/")&&a===""?"/":a)}function R4(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:U4(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const O4=/^:[\w-]+$/,F4=3,j4=2,_4=1,D4=10,M4=-2,$d=e=>e==="*";function b4(e,t){let n=e.split("/"),r=n.length;return n.some($d)&&(r+=M4),t&&(r+=j4),n.filter(i=>!$d(i)).reduce((i,s)=>i+(O4.test(s)?F4:s===""?_4:D4),r)}function U4(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function A4(e,t,n){n===void 0&&(n=!1);let{routesMeta:r}=e,i={},s="/",o=[];for(let l=0;l{let{paramName:d,isOptional:p}=c;if(d==="*"){let C=l[f]||"";o=s.slice(0,s.length-C.length).replace(/(.)\/+$/,"$1")}const x=l[f];return p&&!x?u[d]=void 0:u[d]=(x||"").replace(/%2F/g,"/"),u},{}),pathname:s,pathnameBase:o,pattern:e}}function z4(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Ai(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,l,a)=>(r.push({paramName:l,isOptional:a!=null}),a?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function B4(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Ai(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Wi(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function V4(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?pr(e):e;return{pathname:n?n.startsWith("/")?n:H4(n,t):t,search:Q4(r),hash:W4(i)}}function H4(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function ba(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function Tp(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function rf(e,t){let n=Tp(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function sf(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=pr(e):(i=Ce({},e),X(!i.pathname||!i.pathname.includes("?"),ba("?","pathname","search",i)),X(!i.pathname||!i.pathname.includes("#"),ba("#","pathname","hash",i)),X(!i.search||!i.search.includes("#"),ba("#","search","hash",i)));let s=e===""||i.pathname==="",o=s?"/":i.pathname,l;if(o==null)l=n;else{let f=t.length-1;if(!r&&o.startsWith("..")){let d=o.split("/");for(;d[0]==="..";)d.shift(),f-=1;i.pathname=d.join("/")}l=f>=0?t[f]:"/"}let a=V4(i,l),u=o&&o!=="/"&&o.endsWith("/"),c=(s||o===".")&&n.endsWith("/");return!a.pathname.endsWith("/")&&(u||c)&&(a.pathname+="/"),a}const Ln=e=>e.join("/").replace(/\/\/+/g,"/"),$4=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Q4=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,W4=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class jl{constructor(t,n,r,i){i===void 0&&(i=!1),this.status=t,this.statusText=n||"",this.internal=i,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function ra(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Pp=["post","put","patch","delete"],J4=new Set(Pp),K4=["get",...Pp],Z4=new Set(K4),G4=new Set([301,302,303,307,308]),q4=new Set([307,308]),Ua={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},X4={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},is={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},of=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Y4=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),Ip="remix-router-transitions";function e6(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;X(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let i;if(e.mapRouteProperties)i=e.mapRouteProperties;else if(e.detectErrorBoundary){let v=e.detectErrorBoundary;i=k=>({hasErrorBoundary:v(k)})}else i=Y4;let s={},o=Hs(e.routes,i,void 0,s),l,a=e.basename||"/",u=e.unstable_dataStrategy||o6,c=e.unstable_patchRoutesOnNavigation,f=Ce({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),d=null,p=new Set,x=1e3,C=new Set,L=null,m=null,h=null,y=e.hydrationData!=null,E=xr(o,e.history.location,a),I=null;if(E==null&&!c){let v=et(404,{pathname:e.history.location.pathname}),{matches:k,route:N}=eh(o);E=k,I={[N.id]:v}}E&&!e.hydrationData&&go(E,o,e.history.location.pathname).active&&(E=null);let F;if(E)if(E.some(v=>v.route.lazy))F=!1;else if(!E.some(v=>v.route.loader))F=!0;else if(f.v7_partialHydration){let v=e.hydrationData?e.hydrationData.loaderData:null,k=e.hydrationData?e.hydrationData.errors:null,N=R=>R.route.loader?typeof R.route.loader=="function"&&R.route.loader.hydrate===!0?!1:v&&v[R.route.id]!==void 0||k&&k[R.route.id]!==void 0:!0;if(k){let R=E.findIndex(U=>k[U.route.id]!==void 0);F=E.slice(0,R+1).every(N)}else F=E.every(N)}else F=e.hydrationData!=null;else if(F=!1,E=[],f.v7_partialHydration){let v=go(null,o,e.history.location.pathname);v.active&&v.matches&&(E=v.matches)}let j,g={historyAction:e.history.action,location:e.history.location,matches:E,initialized:F,navigation:Ua,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||I,fetchers:new Map,blockers:new Map},_=_e.Pop,M=!1,Q,ne=!1,Fe=new Map,Ee=null,Qt=!1,_t=!1,Fn=[],b=new Set,B=new Map,Z=0,de=-1,pe=new Map,ot=new Set,lt=new Map,sn=new Map,Be=new Set,Et=new Map,yr=new Map,O2=new Map,ho;function F2(){if(d=e.history.listen(v=>{let{action:k,location:N,delta:R}=v;if(ho){ho(),ho=void 0;return}Ai(yr.size===0||R!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let U=Tf({currentLocation:g.location,nextLocation:N,historyAction:k});if(U&&R!=null){let $=new Promise(K=>{ho=K});e.history.go(R*-1),mo(U,{state:"blocked",location:N,proceed(){mo(U,{state:"proceeding",proceed:void 0,reset:void 0,location:N}),$.then(()=>e.history.go(R))},reset(){let K=new Map(g.blockers);K.set(U,is),qe({blockers:K})}});return}return gr(k,N)}),n){x6(t,Fe);let v=()=>S6(t,Fe);t.addEventListener("pagehide",v),Ee=()=>t.removeEventListener("pagehide",v)}return g.initialized||gr(_e.Pop,g.location,{initialHydration:!0}),j}function j2(){d&&d(),Ee&&Ee(),p.clear(),Q&&Q.abort(),g.fetchers.forEach((v,k)=>po(k)),g.blockers.forEach((v,k)=>Lf(k))}function _2(v){return p.add(v),()=>p.delete(v)}function qe(v,k){k===void 0&&(k={}),g=Ce({},g,v);let N=[],R=[];f.v7_fetcherPersist&&g.fetchers.forEach((U,$)=>{U.state==="idle"&&(Be.has($)?R.push($):N.push($))}),[...p].forEach(U=>U(g,{deletedFetchers:R,unstable_viewTransitionOpts:k.viewTransitionOpts,unstable_flushSync:k.flushSync===!0})),f.v7_fetcherPersist&&(N.forEach(U=>g.fetchers.delete(U)),R.forEach(U=>po(U)))}function Jr(v,k,N){var R,U;let{flushSync:$}=N===void 0?{}:N,K=g.actionData!=null&&g.navigation.formMethod!=null&&At(g.navigation.formMethod)&&g.navigation.state==="loading"&&((R=v.state)==null?void 0:R._isRedirect)!==!0,D;k.actionData?Object.keys(k.actionData).length>0?D=k.actionData:D=null:K?D=g.actionData:D=null;let W=k.loaderData?Xd(g.loaderData,k.loaderData,k.matches||[],k.errors):g.loaderData,V=g.blockers;V.size>0&&(V=new Map(V),V.forEach((ue,me)=>V.set(me,is)));let H=M===!0||g.navigation.formMethod!=null&&At(g.navigation.formMethod)&&((U=v.state)==null?void 0:U._isRedirect)!==!0;l&&(o=l,l=void 0),Qt||_===_e.Pop||(_===_e.Push?e.history.push(v,v.state):_===_e.Replace&&e.history.replace(v,v.state));let oe;if(_===_e.Pop){let ue=Fe.get(g.location.pathname);ue&&ue.has(v.pathname)?oe={currentLocation:g.location,nextLocation:v}:Fe.has(v.pathname)&&(oe={currentLocation:v,nextLocation:g.location})}else if(ne){let ue=Fe.get(g.location.pathname);ue?ue.add(v.pathname):(ue=new Set([v.pathname]),Fe.set(g.location.pathname,ue)),oe={currentLocation:g.location,nextLocation:v}}qe(Ce({},k,{actionData:D,loaderData:W,historyAction:_,location:v,initialized:!0,navigation:Ua,revalidation:"idle",restoreScrollPosition:If(v,k.matches||g.matches),preventScrollReset:H,blockers:V}),{viewTransitionOpts:oe,flushSync:$===!0}),_=_e.Pop,M=!1,ne=!1,Qt=!1,_t=!1,Fn=[]}async function wf(v,k){if(typeof v=="number"){e.history.go(v);return}let N=Au(g.location,g.matches,a,f.v7_prependBasename,v,f.v7_relativeSplatPath,k==null?void 0:k.fromRouteId,k==null?void 0:k.relative),{path:R,submission:U,error:$}=Wd(f.v7_normalizeFormMethod,!1,N,k),K=g.location,D=Vs(g.location,R,k&&k.state);D=Ce({},D,e.history.encodeLocation(D));let W=k&&k.replace!=null?k.replace:void 0,V=_e.Push;W===!0?V=_e.Replace:W===!1||U!=null&&At(U.formMethod)&&U.formAction===g.location.pathname+g.location.search&&(V=_e.Replace);let H=k&&"preventScrollReset"in k?k.preventScrollReset===!0:void 0,oe=(k&&k.unstable_flushSync)===!0,ue=Tf({currentLocation:K,nextLocation:D,historyAction:V});if(ue){mo(ue,{state:"blocked",location:D,proceed(){mo(ue,{state:"proceeding",proceed:void 0,reset:void 0,location:D}),wf(v,k)},reset(){let me=new Map(g.blockers);me.set(ue,is),qe({blockers:me})}});return}return await gr(V,D,{submission:U,pendingError:$,preventScrollReset:H,replace:k&&k.replace,enableViewTransition:k&&k.unstable_viewTransition,flushSync:oe})}function D2(){if(la(),qe({revalidation:"loading"}),g.navigation.state!=="submitting"){if(g.navigation.state==="idle"){gr(g.historyAction,g.location,{startUninterruptedRevalidation:!0});return}gr(_||g.historyAction,g.navigation.location,{overrideNavigation:g.navigation,enableViewTransition:ne===!0})}}async function gr(v,k,N){Q&&Q.abort(),Q=null,_=v,Qt=(N&&N.startUninterruptedRevalidation)===!0,Q2(g.location,g.matches),M=(N&&N.preventScrollReset)===!0,ne=(N&&N.enableViewTransition)===!0;let R=l||o,U=N&&N.overrideNavigation,$=xr(R,k,a),K=(N&&N.flushSync)===!0,D=go($,R,k.pathname);if(D.active&&D.matches&&($=D.matches),!$){let{error:re,notFoundMatches:Ue,route:je}=aa(k.pathname);Jr(k,{matches:Ue,loaderData:{},errors:{[je.id]:re}},{flushSync:K});return}if(g.initialized&&!_t&&d6(g.location,k)&&!(N&&N.submission&&At(N.submission.formMethod))){Jr(k,{matches:$},{flushSync:K});return}Q=new AbortController;let W=Gr(e.history,k,Q.signal,N&&N.submission),V;if(N&&N.pendingError)V=[fi($).route.id,{type:fe.error,error:N.pendingError}];else if(N&&N.submission&&At(N.submission.formMethod)){let re=await M2(W,k,N.submission,$,D.active,{replace:N.replace,flushSync:K});if(re.shortCircuited)return;if(re.pendingActionResult){let[Ue,je]=re.pendingActionResult;if(gt(je)&&ra(je.error)&&je.error.status===404){Q=null,Jr(k,{matches:re.matches,loaderData:{},errors:{[Ue]:je.error}});return}}$=re.matches||$,V=re.pendingActionResult,U=Aa(k,N.submission),K=!1,D.active=!1,W=Gr(e.history,W.url,W.signal)}let{shortCircuited:H,matches:oe,loaderData:ue,errors:me}=await b2(W,k,$,D.active,U,N&&N.submission,N&&N.fetcherSubmission,N&&N.replace,N&&N.initialHydration===!0,K,V);H||(Q=null,Jr(k,Ce({matches:oe||$},Yd(V),{loaderData:ue,errors:me})))}async function M2(v,k,N,R,U,$){$===void 0&&($={}),la();let K=w6(k,N);if(qe({navigation:K},{flushSync:$.flushSync===!0}),U){let V=await vo(R,k.pathname,v.signal);if(V.type==="aborted")return{shortCircuited:!0};if(V.type==="error"){let{boundaryId:H,error:oe}=yo(k.pathname,V);return{matches:V.partialMatches,pendingActionResult:[H,{type:fe.error,error:oe}]}}else if(V.matches)R=V.matches;else{let{notFoundMatches:H,error:oe,route:ue}=aa(k.pathname);return{matches:H,pendingActionResult:[ue.id,{type:fe.error,error:oe}]}}}let D,W=ds(R,k);if(!W.route.action&&!W.route.lazy)D={type:fe.error,error:et(405,{method:v.method,pathname:k.pathname,routeId:W.route.id})};else if(D=(await Ki("action",g,v,[W],R,null))[W.route.id],v.signal.aborted)return{shortCircuited:!0};if(Nr(D)){let V;return $&&$.replace!=null?V=$.replace:V=Zd(D.response.headers.get("Location"),new URL(v.url),a)===g.location.pathname+g.location.search,await vr(v,D,!0,{submission:N,replace:V}),{shortCircuited:!0}}if(Yn(D))throw et(400,{type:"defer-action"});if(gt(D)){let V=fi(R,W.route.id);return($&&$.replace)!==!0&&(_=_e.Push),{matches:R,pendingActionResult:[V.route.id,D]}}return{matches:R,pendingActionResult:[W.route.id,D]}}async function b2(v,k,N,R,U,$,K,D,W,V,H){let oe=U||Aa(k,$),ue=$||K||nh(oe),me=!Qt&&(!f.v7_partialHydration||!W);if(R){if(me){let Ne=Cf(H);qe(Ce({navigation:oe},Ne!==void 0?{actionData:Ne}:{}),{flushSync:V})}let G=await vo(N,k.pathname,v.signal);if(G.type==="aborted")return{shortCircuited:!0};if(G.type==="error"){let{boundaryId:Ne,error:pt}=yo(k.pathname,G);return{matches:G.partialMatches,loaderData:{},errors:{[Ne]:pt}}}else if(G.matches)N=G.matches;else{let{error:Ne,notFoundMatches:pt,route:Le}=aa(k.pathname);return{matches:pt,loaderData:{},errors:{[Le.id]:Ne}}}}let re=l||o,[Ue,je]=Jd(e.history,g,N,ue,k,f.v7_partialHydration&&W===!0,f.v7_skipActionErrorRevalidation,_t,Fn,b,Be,lt,ot,re,a,H);if(ua(G=>!(N&&N.some(Ne=>Ne.route.id===G))||Ue&&Ue.some(Ne=>Ne.route.id===G)),de=++Z,Ue.length===0&&je.length===0){let G=Ef();return Jr(k,Ce({matches:N,loaderData:{},errors:H&>(H[1])?{[H[0]]:H[1].error}:null},Yd(H),G?{fetchers:new Map(g.fetchers)}:{}),{flushSync:V}),{shortCircuited:!0}}if(me){let G={};if(!R){G.navigation=oe;let Ne=Cf(H);Ne!==void 0&&(G.actionData=Ne)}je.length>0&&(G.fetchers=U2(je)),qe(G,{flushSync:V})}je.forEach(G=>{B.has(G.key)&&_n(G.key),G.controller&&B.set(G.key,G.controller)});let Zi=()=>je.forEach(G=>_n(G.key));Q&&Q.signal.addEventListener("abort",Zi);let{loaderResults:ln,fetcherResults:Kr}=await xf(g,N,Ue,je,v);if(v.signal.aborted)return{shortCircuited:!0};Q&&Q.signal.removeEventListener("abort",Zi),je.forEach(G=>B.delete(G.key));let Dn=Bo(ln);if(Dn)return await vr(v,Dn.result,!0,{replace:D}),{shortCircuited:!0};if(Dn=Bo(Kr),Dn)return ot.add(Dn.key),await vr(v,Dn.result,!0,{replace:D}),{shortCircuited:!0};let{loaderData:wo,errors:an}=qd(g,N,Ue,ln,H,je,Kr,Et);Et.forEach((G,Ne)=>{G.subscribe(pt=>{(pt||G.done)&&Et.delete(Ne)})}),f.v7_partialHydration&&W&&g.errors&&Object.entries(g.errors).filter(G=>{let[Ne]=G;return!Ue.some(pt=>pt.route.id===Ne)}).forEach(G=>{let[Ne,pt]=G;an=Object.assign(an||{},{[Ne]:pt})});let Co=Ef(),xo=Nf(de),So=Co||xo||je.length>0;return Ce({matches:N,loaderData:wo,errors:an},So?{fetchers:new Map(g.fetchers)}:{})}function Cf(v){if(v&&!gt(v[1]))return{[v[0]]:v[1].data};if(g.actionData)return Object.keys(g.actionData).length===0?null:g.actionData}function U2(v){return v.forEach(k=>{let N=g.fetchers.get(k.key),R=ss(void 0,N?N.data:void 0);g.fetchers.set(k.key,R)}),new Map(g.fetchers)}function A2(v,k,N,R){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");B.has(v)&&_n(v);let U=(R&&R.unstable_flushSync)===!0,$=l||o,K=Au(g.location,g.matches,a,f.v7_prependBasename,N,f.v7_relativeSplatPath,k,R==null?void 0:R.relative),D=xr($,K,a),W=go(D,$,K);if(W.active&&W.matches&&(D=W.matches),!D){on(v,k,et(404,{pathname:K}),{flushSync:U});return}let{path:V,submission:H,error:oe}=Wd(f.v7_normalizeFormMethod,!0,K,R);if(oe){on(v,k,oe,{flushSync:U});return}let ue=ds(D,V);if(M=(R&&R.preventScrollReset)===!0,H&&At(H.formMethod)){z2(v,k,V,ue,D,W.active,U,H);return}lt.set(v,{routeId:k,path:V}),B2(v,k,V,ue,D,W.active,U,H)}async function z2(v,k,N,R,U,$,K,D){la(),lt.delete(v);function W(Le){if(!Le.route.action&&!Le.route.lazy){let un=et(405,{method:D.formMethod,pathname:N,routeId:k});return on(v,k,un,{flushSync:K}),!0}return!1}if(!$&&W(R))return;let V=g.fetchers.get(v);jn(v,C6(D,V),{flushSync:K});let H=new AbortController,oe=Gr(e.history,N,H.signal,D);if($){let Le=await vo(U,N,oe.signal);if(Le.type==="aborted")return;if(Le.type==="error"){let{error:un}=yo(N,Le);on(v,k,un,{flushSync:K});return}else if(Le.matches){if(U=Le.matches,R=ds(U,N),W(R))return}else{on(v,k,et(404,{pathname:N}),{flushSync:K});return}}B.set(v,H);let ue=Z,re=(await Ki("action",g,oe,[R],U,v))[R.route.id];if(oe.signal.aborted){B.get(v)===H&&B.delete(v);return}if(f.v7_fetcherPersist&&Be.has(v)){if(Nr(re)||gt(re)){jn(v,Un(void 0));return}}else{if(Nr(re))if(B.delete(v),de>ue){jn(v,Un(void 0));return}else return ot.add(v),jn(v,ss(D)),vr(oe,re,!1,{fetcherSubmission:D});if(gt(re)){on(v,k,re.error);return}}if(Yn(re))throw et(400,{type:"defer-action"});let Ue=g.navigation.location||g.location,je=Gr(e.history,Ue,H.signal),Zi=l||o,ln=g.navigation.state!=="idle"?xr(Zi,g.navigation.location,a):g.matches;X(ln,"Didn't find any matches after fetcher action");let Kr=++Z;pe.set(v,Kr);let Dn=ss(D,re.data);g.fetchers.set(v,Dn);let[wo,an]=Jd(e.history,g,ln,D,Ue,!1,f.v7_skipActionErrorRevalidation,_t,Fn,b,Be,lt,ot,Zi,a,[R.route.id,re]);an.filter(Le=>Le.key!==v).forEach(Le=>{let un=Le.key,Of=g.fetchers.get(un),K2=ss(void 0,Of?Of.data:void 0);g.fetchers.set(un,K2),B.has(un)&&_n(un),Le.controller&&B.set(un,Le.controller)}),qe({fetchers:new Map(g.fetchers)});let Co=()=>an.forEach(Le=>_n(Le.key));H.signal.addEventListener("abort",Co);let{loaderResults:xo,fetcherResults:So}=await xf(g,ln,wo,an,je);if(H.signal.aborted)return;H.signal.removeEventListener("abort",Co),pe.delete(v),B.delete(v),an.forEach(Le=>B.delete(Le.key));let G=Bo(xo);if(G)return vr(je,G.result,!1);if(G=Bo(So),G)return ot.add(G.key),vr(je,G.result,!1);let{loaderData:Ne,errors:pt}=qd(g,ln,wo,xo,void 0,an,So,Et);if(g.fetchers.has(v)){let Le=Un(re.data);g.fetchers.set(v,Le)}Nf(Kr),g.navigation.state==="loading"&&Kr>de?(X(_,"Expected pending action"),Q&&Q.abort(),Jr(g.navigation.location,{matches:ln,loaderData:Ne,errors:pt,fetchers:new Map(g.fetchers)})):(qe({errors:pt,loaderData:Xd(g.loaderData,Ne,ln,pt),fetchers:new Map(g.fetchers)}),_t=!1)}async function B2(v,k,N,R,U,$,K,D){let W=g.fetchers.get(v);jn(v,ss(D,W?W.data:void 0),{flushSync:K});let V=new AbortController,H=Gr(e.history,N,V.signal);if($){let re=await vo(U,N,H.signal);if(re.type==="aborted")return;if(re.type==="error"){let{error:Ue}=yo(N,re);on(v,k,Ue,{flushSync:K});return}else if(re.matches)U=re.matches,R=ds(U,N);else{on(v,k,et(404,{pathname:N}),{flushSync:K});return}}B.set(v,V);let oe=Z,me=(await Ki("loader",g,H,[R],U,v))[R.route.id];if(Yn(me)&&(me=await lf(me,H.signal,!0)||me),B.get(v)===V&&B.delete(v),!H.signal.aborted){if(Be.has(v)){jn(v,Un(void 0));return}if(Nr(me))if(de>oe){jn(v,Un(void 0));return}else{ot.add(v),await vr(H,me,!1);return}if(gt(me)){on(v,k,me.error);return}X(!Yn(me),"Unhandled fetcher deferred data"),jn(v,Un(me.data))}}async function vr(v,k,N,R){let{submission:U,fetcherSubmission:$,replace:K}=R===void 0?{}:R;k.response.headers.has("X-Remix-Revalidate")&&(_t=!0);let D=k.response.headers.get("Location");X(D,"Expected a Location header on the redirect Response"),D=Zd(D,new URL(v.url),a);let W=Vs(g.location,D,{_isRedirect:!0});if(n){let re=!1;if(k.response.headers.has("X-Remix-Reload-Document"))re=!0;else if(of.test(D)){const Ue=e.history.createURL(D);re=Ue.origin!==t.location.origin||Wi(Ue.pathname,a)==null}if(re){K?t.location.replace(D):t.location.assign(D);return}}Q=null;let V=K===!0||k.response.headers.has("X-Remix-Replace")?_e.Replace:_e.Push,{formMethod:H,formAction:oe,formEncType:ue}=g.navigation;!U&&!$&&H&&oe&&ue&&(U=nh(g.navigation));let me=U||$;if(q4.has(k.response.status)&&me&&At(me.formMethod))await gr(V,W,{submission:Ce({},me,{formAction:D}),preventScrollReset:M,enableViewTransition:N?ne:void 0});else{let re=Aa(W,U);await gr(V,W,{overrideNavigation:re,fetcherSubmission:$,preventScrollReset:M,enableViewTransition:N?ne:void 0})}}async function Ki(v,k,N,R,U,$){let K,D={};try{K=await l6(u,v,k,N,R,U,$,s,i)}catch(W){return R.forEach(V=>{D[V.route.id]={type:fe.error,error:W}}),D}for(let[W,V]of Object.entries(K))if(p6(V)){let H=V.result;D[W]={type:fe.redirect,response:c6(H,N,W,U,a,f.v7_relativeSplatPath)}}else D[W]=await u6(V);return D}async function xf(v,k,N,R,U){let $=v.matches,K=Ki("loader",v,U,N,k,null),D=Promise.all(R.map(async H=>{if(H.matches&&H.match&&H.controller){let ue=(await Ki("loader",v,Gr(e.history,H.path,H.controller.signal),[H.match],H.matches,H.key))[H.match.route.id];return{[H.key]:ue}}else return Promise.resolve({[H.key]:{type:fe.error,error:et(404,{pathname:H.path})}})})),W=await K,V=(await D).reduce((H,oe)=>Object.assign(H,oe),{});return await Promise.all([g6(k,W,U.signal,$,v.loaderData),v6(k,V,R)]),{loaderResults:W,fetcherResults:V}}function la(){_t=!0,Fn.push(...ua()),lt.forEach((v,k)=>{B.has(k)&&(b.add(k),_n(k))})}function jn(v,k,N){N===void 0&&(N={}),g.fetchers.set(v,k),qe({fetchers:new Map(g.fetchers)},{flushSync:(N&&N.flushSync)===!0})}function on(v,k,N,R){R===void 0&&(R={});let U=fi(g.matches,k);po(v),qe({errors:{[U.route.id]:N},fetchers:new Map(g.fetchers)},{flushSync:(R&&R.flushSync)===!0})}function Sf(v){return f.v7_fetcherPersist&&(sn.set(v,(sn.get(v)||0)+1),Be.has(v)&&Be.delete(v)),g.fetchers.get(v)||X4}function po(v){let k=g.fetchers.get(v);B.has(v)&&!(k&&k.state==="loading"&&pe.has(v))&&_n(v),lt.delete(v),pe.delete(v),ot.delete(v),Be.delete(v),b.delete(v),g.fetchers.delete(v)}function V2(v){if(f.v7_fetcherPersist){let k=(sn.get(v)||0)-1;k<=0?(sn.delete(v),Be.add(v)):sn.set(v,k)}else po(v);qe({fetchers:new Map(g.fetchers)})}function _n(v){let k=B.get(v);X(k,"Expected fetch controller: "+v),k.abort(),B.delete(v)}function kf(v){for(let k of v){let N=Sf(k),R=Un(N.data);g.fetchers.set(k,R)}}function Ef(){let v=[],k=!1;for(let N of ot){let R=g.fetchers.get(N);X(R,"Expected fetcher: "+N),R.state==="loading"&&(ot.delete(N),v.push(N),k=!0)}return kf(v),k}function Nf(v){let k=[];for(let[N,R]of pe)if(R0}function H2(v,k){let N=g.blockers.get(v)||is;return yr.get(v)!==k&&yr.set(v,k),N}function Lf(v){g.blockers.delete(v),yr.delete(v)}function mo(v,k){let N=g.blockers.get(v)||is;X(N.state==="unblocked"&&k.state==="blocked"||N.state==="blocked"&&k.state==="blocked"||N.state==="blocked"&&k.state==="proceeding"||N.state==="blocked"&&k.state==="unblocked"||N.state==="proceeding"&&k.state==="unblocked","Invalid blocker state transition: "+N.state+" -> "+k.state);let R=new Map(g.blockers);R.set(v,k),qe({blockers:R})}function Tf(v){let{currentLocation:k,nextLocation:N,historyAction:R}=v;if(yr.size===0)return;yr.size>1&&Ai(!1,"A router only supports one blocker at a time");let U=Array.from(yr.entries()),[$,K]=U[U.length-1],D=g.blockers.get($);if(!(D&&D.state==="proceeding")&&K({currentLocation:k,nextLocation:N,historyAction:R}))return $}function aa(v){let k=et(404,{pathname:v}),N=l||o,{matches:R,route:U}=eh(N);return ua(),{notFoundMatches:R,route:U,error:k}}function yo(v,k){return{boundaryId:fi(k.partialMatches).route.id,error:et(400,{type:"route-discovery",pathname:v,message:k.error!=null&&"message"in k.error?k.error:String(k.error)})}}function ua(v){let k=[];return Et.forEach((N,R)=>{(!v||v(R))&&(N.cancel(),k.push(R),Et.delete(R))}),k}function $2(v,k,N){if(L=v,h=k,m=N||null,!y&&g.navigation===Ua){y=!0;let R=If(g.location,g.matches);R!=null&&qe({restoreScrollPosition:R})}return()=>{L=null,h=null,m=null}}function Pf(v,k){return m&&m(v,k.map(R=>I4(R,g.loaderData)))||v.key}function Q2(v,k){if(L&&h){let N=Pf(v,k);L[N]=h()}}function If(v,k){if(L){let N=Pf(v,k),R=L[N];if(typeof R=="number")return R}return null}function go(v,k,N){if(c){if(C.has(N))return{active:!1,matches:v};if(v){if(Object.keys(v[0].params).length>0)return{active:!0,matches:rl(k,N,a,!0)}}else return{active:!0,matches:rl(k,N,a,!0)||[]}}return{active:!1,matches:null}}async function vo(v,k,N){let R=v;for(;;){let U=l==null,$=l||o;try{await i6(c,k,R,$,s,i,O2,N)}catch(W){return{type:"error",error:W,partialMatches:R}}finally{U&&(o=[...o])}if(N.aborted)return{type:"aborted"};let K=xr($,k,a);if(K)return Rf(k,C),{type:"success",matches:K};let D=rl($,k,a,!0);if(!D||R.length===D.length&&R.every((W,V)=>W.route.id===D[V].route.id))return Rf(k,C),{type:"success",matches:null};R=D}}function Rf(v,k){if(k.size>=x){let N=k.values().next().value;k.delete(N)}k.add(v)}function W2(v){s={},l=Hs(v,i,void 0,s)}function J2(v,k){let N=l==null;Op(v,k,l||o,s,i),N&&(o=[...o],qe({}))}return j={get basename(){return a},get future(){return f},get state(){return g},get routes(){return o},get window(){return t},initialize:F2,subscribe:_2,enableScrollRestoration:$2,navigate:wf,fetch:A2,revalidate:D2,createHref:v=>e.history.createHref(v),encodeLocation:v=>e.history.encodeLocation(v),getFetcher:Sf,deleteFetcher:V2,dispose:j2,getBlocker:H2,deleteBlocker:Lf,patchRoutes:J2,_internalFetchControllers:B,_internalActiveDeferreds:Et,_internalSetRoutes:W2},j}function t6(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function Au(e,t,n,r,i,s,o,l){let a,u;if(o){a=[];for(let f of t)if(a.push(f),f.route.id===o){u=f;break}}else a=t,u=t[t.length-1];let c=sf(i||".",rf(a,s),Wi(e.pathname,n)||e.pathname,l==="path");return i==null&&(c.search=e.search,c.hash=e.hash),(i==null||i===""||i===".")&&u&&u.route.index&&!af(c.search)&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(c.pathname=c.pathname==="/"?n:Ln([n,c.pathname])),Vr(c)}function Wd(e,t,n,r){if(!r||!t6(r))return{path:n};if(r.formMethod&&!y6(r.formMethod))return{path:n,error:et(405,{method:r.formMethod})};let i=()=>({path:n,error:et(400,{type:"invalid-body"})}),s=r.formMethod||"get",o=e?s.toUpperCase():s.toLowerCase(),l=Fp(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!At(o))return i();let d=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((p,x)=>{let[C,L]=x;return""+p+C+"="+L+` +`},""):String(r.body);return{path:n,submission:{formMethod:o,formAction:l,formEncType:r.formEncType,formData:void 0,json:void 0,text:d}}}else if(r.formEncType==="application/json"){if(!At(o))return i();try{let d=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:o,formAction:l,formEncType:r.formEncType,formData:void 0,json:d,text:void 0}}}catch{return i()}}}X(typeof FormData=="function","FormData is not available in this environment");let a,u;if(r.formData)a=zu(r.formData),u=r.formData;else if(r.body instanceof FormData)a=zu(r.body),u=r.body;else if(r.body instanceof URLSearchParams)a=r.body,u=Gd(a);else if(r.body==null)a=new URLSearchParams,u=new FormData;else try{a=new URLSearchParams(r.body),u=Gd(a)}catch{return i()}let c={formMethod:o,formAction:l,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(At(c.formMethod))return{path:n,submission:c};let f=pr(n);return t&&f.search&&af(f.search)&&a.append("index",""),f.search="?"+a,{path:Vr(f),submission:c}}function n6(e,t){let n=e;if(t){let r=e.findIndex(i=>i.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function Jd(e,t,n,r,i,s,o,l,a,u,c,f,d,p,x,C){let L=C?gt(C[1])?C[1].error:C[1].data:void 0,m=e.createURL(t.location),h=e.createURL(i),y=C&>(C[1])?C[0]:void 0,E=y?n6(n,y):n,I=C?C[1].statusCode:void 0,F=o&&I&&I>=400,j=E.filter((_,M)=>{let{route:Q}=_;if(Q.lazy)return!0;if(Q.loader==null)return!1;if(s)return typeof Q.loader!="function"||Q.loader.hydrate?!0:t.loaderData[Q.id]===void 0&&(!t.errors||t.errors[Q.id]===void 0);if(r6(t.loaderData,t.matches[M],_)||a.some(Ee=>Ee===_.route.id))return!0;let ne=t.matches[M],Fe=_;return Kd(_,Ce({currentUrl:m,currentParams:ne.params,nextUrl:h,nextParams:Fe.params},r,{actionResult:L,actionStatus:I,defaultShouldRevalidate:F?!1:l||m.pathname+m.search===h.pathname+h.search||m.search!==h.search||Rp(ne,Fe)}))}),g=[];return f.forEach((_,M)=>{if(s||!n.some(Qt=>Qt.route.id===_.routeId)||c.has(M))return;let Q=xr(p,_.path,x);if(!Q){g.push({key:M,routeId:_.routeId,path:_.path,matches:null,match:null,controller:null});return}let ne=t.fetchers.get(M),Fe=ds(Q,_.path),Ee=!1;d.has(M)?Ee=!1:u.has(M)?(u.delete(M),Ee=!0):ne&&ne.state!=="idle"&&ne.data===void 0?Ee=l:Ee=Kd(Fe,Ce({currentUrl:m,currentParams:t.matches[t.matches.length-1].params,nextUrl:h,nextParams:n[n.length-1].params},r,{actionResult:L,actionStatus:I,defaultShouldRevalidate:F?!1:l})),Ee&&g.push({key:M,routeId:_.routeId,path:_.path,matches:Q,match:Fe,controller:new AbortController})}),[j,g]}function r6(e,t,n){let r=!t||n.route.id!==t.route.id,i=e[n.route.id]===void 0;return r||i}function Rp(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function Kd(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function i6(e,t,n,r,i,s,o,l){let a=[t,...n.map(u=>u.route.id)].join("-");try{let u=o.get(a);u||(u=e({path:t,matches:n,patch:(c,f)=>{l.aborted||Op(c,f,r,i,s)}}),o.set(a,u)),u&&h6(u)&&await u}finally{o.delete(a)}}function Op(e,t,n,r,i){if(e){var s;let o=r[e];X(o,"No route found to patch children into: routeId = "+e);let l=Hs(t,i,[e,"patch",String(((s=o.children)==null?void 0:s.length)||"0")],r);o.children?o.children.push(...l):o.children=l}else{let o=Hs(t,i,["patch",String(n.length||"0")],r);n.push(...o)}}async function s6(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let i=n[e.id];X(i,"No route found in manifest");let s={};for(let o in r){let a=i[o]!==void 0&&o!=="hasErrorBoundary";Ai(!a,'Route "'+i.id+'" has a static property "'+o+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+o+'" will be ignored.')),!a&&!T4.has(o)&&(s[o]=r[o])}Object.assign(i,s),Object.assign(i,Ce({},t(i),{lazy:void 0}))}async function o6(e){let{matches:t}=e,n=t.filter(i=>i.shouldLoad);return(await Promise.all(n.map(i=>i.resolve()))).reduce((i,s,o)=>Object.assign(i,{[n[o].route.id]:s}),{})}async function l6(e,t,n,r,i,s,o,l,a,u){let c=s.map(p=>p.route.lazy?s6(p.route,a,l):void 0),f=s.map((p,x)=>{let C=c[x],L=i.some(h=>h.route.id===p.route.id);return Ce({},p,{shouldLoad:L,resolve:async h=>(h&&r.method==="GET"&&(p.route.lazy||p.route.loader)&&(L=!0),L?a6(t,r,p,C,h,u):Promise.resolve({type:fe.data,result:void 0}))})}),d=await e({matches:f,request:r,params:s[0].params,fetcherKey:o,context:u});try{await Promise.all(c)}catch{}return d}async function a6(e,t,n,r,i,s){let o,l,a=u=>{let c,f=new Promise((x,C)=>c=C);l=()=>c(),t.signal.addEventListener("abort",l);let d=x=>typeof u!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+n.route.id+"]"))):u({request:t,params:n.params,context:s},...x!==void 0?[x]:[]),p=(async()=>{try{return{type:"data",result:await(i?i(C=>d(C)):d())}}catch(x){return{type:"error",result:x}}})();return Promise.race([p,f])};try{let u=n.route[e];if(r)if(u){let c,[f]=await Promise.all([a(u).catch(d=>{c=d}),r]);if(c!==void 0)throw c;o=f}else if(await r,u=n.route[e],u)o=await a(u);else if(e==="action"){let c=new URL(t.url),f=c.pathname+c.search;throw et(405,{method:t.method,pathname:f,routeId:n.route.id})}else return{type:fe.data,result:void 0};else if(u)o=await a(u);else{let c=new URL(t.url),f=c.pathname+c.search;throw et(404,{pathname:f})}X(o.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(u){return{type:fe.error,result:u}}finally{l&&t.signal.removeEventListener("abort",l)}return o}async function u6(e){let{result:t,type:n}=e;if(jp(t)){let u;try{let c=t.headers.get("Content-Type");c&&/\bapplication\/json\b/.test(c)?t.body==null?u=null:u=await t.json():u=await t.text()}catch(c){return{type:fe.error,error:c}}return n===fe.error?{type:fe.error,error:new jl(t.status,t.statusText,u),statusCode:t.status,headers:t.headers}:{type:fe.data,data:u,statusCode:t.status,headers:t.headers}}if(n===fe.error){if(th(t)){var r;if(t.data instanceof Error){var i;return{type:fe.error,error:t.data,statusCode:(i=t.init)==null?void 0:i.status}}t=new jl(((r=t.init)==null?void 0:r.status)||500,void 0,t.data)}return{type:fe.error,error:t,statusCode:ra(t)?t.status:void 0}}if(m6(t)){var s,o;return{type:fe.deferred,deferredData:t,statusCode:(s=t.init)==null?void 0:s.status,headers:((o=t.init)==null?void 0:o.headers)&&new Headers(t.init.headers)}}if(th(t)){var l,a;return{type:fe.data,data:t.data,statusCode:(l=t.init)==null?void 0:l.status,headers:(a=t.init)!=null&&a.headers?new Headers(t.init.headers):void 0}}return{type:fe.data,data:t}}function c6(e,t,n,r,i,s){let o=e.headers.get("Location");if(X(o,"Redirects returned/thrown from loaders/actions must have a Location header"),!of.test(o)){let l=r.slice(0,r.findIndex(a=>a.route.id===n)+1);o=Au(new URL(t.url),l,i,!0,o,s),e.headers.set("Location",o)}return e}function Zd(e,t,n){if(of.test(e)){let r=e,i=r.startsWith("//")?new URL(t.protocol+r):new URL(r),s=Wi(i.pathname,n)!=null;if(i.origin===t.origin&&s)return i.pathname+i.search+i.hash}return e}function Gr(e,t,n,r){let i=e.createURL(Fp(t)).toString(),s={signal:n};if(r&&At(r.formMethod)){let{formMethod:o,formEncType:l}=r;s.method=o.toUpperCase(),l==="application/json"?(s.headers=new Headers({"Content-Type":l}),s.body=JSON.stringify(r.json)):l==="text/plain"?s.body=r.text:l==="application/x-www-form-urlencoded"&&r.formData?s.body=zu(r.formData):s.body=r.formData}return new Request(i,s)}function zu(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function Gd(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function f6(e,t,n,r,i){let s={},o=null,l,a=!1,u={},c=n&>(n[1])?n[1].error:void 0;return e.forEach(f=>{if(!(f.route.id in t))return;let d=f.route.id,p=t[d];if(X(!Nr(p),"Cannot handle redirect results in processLoaderData"),gt(p)){let x=p.error;c!==void 0&&(x=c,c=void 0),o=o||{};{let C=fi(e,d);o[C.route.id]==null&&(o[C.route.id]=x)}s[d]=void 0,a||(a=!0,l=ra(p.error)?p.error.status:500),p.headers&&(u[d]=p.headers)}else Yn(p)?(r.set(d,p.deferredData),s[d]=p.deferredData.data,p.statusCode!=null&&p.statusCode!==200&&!a&&(l=p.statusCode),p.headers&&(u[d]=p.headers)):(s[d]=p.data,p.statusCode&&p.statusCode!==200&&!a&&(l=p.statusCode),p.headers&&(u[d]=p.headers))}),c!==void 0&&n&&(o={[n[0]]:c},s[n[0]]=void 0),{loaderData:s,errors:o,statusCode:l||200,loaderHeaders:u}}function qd(e,t,n,r,i,s,o,l){let{loaderData:a,errors:u}=f6(t,r,i,l);return s.forEach(c=>{let{key:f,match:d,controller:p}=c,x=o[f];if(X(x,"Did not find corresponding fetcher result"),!(p&&p.signal.aborted))if(gt(x)){let C=fi(e.matches,d==null?void 0:d.route.id);u&&u[C.route.id]||(u=Ce({},u,{[C.route.id]:x.error})),e.fetchers.delete(f)}else if(Nr(x))X(!1,"Unhandled fetcher revalidation redirect");else if(Yn(x))X(!1,"Unhandled fetcher deferred data");else{let C=Un(x.data);e.fetchers.set(f,C)}}),{loaderData:a,errors:u}}function Xd(e,t,n,r){let i=Ce({},t);for(let s of n){let o=s.route.id;if(t.hasOwnProperty(o)?t[o]!==void 0&&(i[o]=t[o]):e[o]!==void 0&&s.route.loader&&(i[o]=e[o]),r&&r.hasOwnProperty(o))break}return i}function Yd(e){return e?gt(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function fi(e,t){return(t?e.slice(0,e.findIndex(r=>r.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function eh(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function et(e,t){let{pathname:n,routeId:r,method:i,type:s,message:o}=t===void 0?{}:t,l="Unknown Server Error",a="Unknown @remix-run/router error";return e===400?(l="Bad Request",s==="route-discovery"?a='Unable to match URL "'+n+'" - the `unstable_patchRoutesOnNavigation()` '+(`function threw the following error: +`+o):i&&n&&r?a="You made a "+i+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":s==="defer-action"?a="defer() is not supported in actions":s==="invalid-body"&&(a="Unable to encode submission body")):e===403?(l="Forbidden",a='Route "'+r+'" does not match URL "'+n+'"'):e===404?(l="Not Found",a='No route matches URL "'+n+'"'):e===405&&(l="Method Not Allowed",i&&n&&r?a="You made a "+i.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":i&&(a='Invalid request method "'+i.toUpperCase()+'"')),new jl(e||500,l,new Error(a),!0)}function Bo(e){let t=Object.entries(e);for(let n=t.length-1;n>=0;n--){let[r,i]=t[n];if(Nr(i))return{key:r,result:i}}}function Fp(e){let t=typeof e=="string"?pr(e):e;return Vr(Ce({},t,{hash:""}))}function d6(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function h6(e){return typeof e=="object"&&e!=null&&"then"in e}function p6(e){return jp(e.result)&&G4.has(e.result.status)}function Yn(e){return e.type===fe.deferred}function gt(e){return e.type===fe.error}function Nr(e){return(e&&e.type)===fe.redirect}function th(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function m6(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function jp(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function y6(e){return Z4.has(e.toLowerCase())}function At(e){return J4.has(e.toLowerCase())}async function g6(e,t,n,r,i){let s=Object.entries(t);for(let o=0;o(d==null?void 0:d.route.id)===l);if(!u)continue;let c=r.find(d=>d.route.id===u.route.id),f=c!=null&&!Rp(c,u)&&(i&&i[u.route.id])!==void 0;Yn(a)&&f&&await lf(a,n,!1).then(d=>{d&&(t[l]=d)})}}async function v6(e,t,n){for(let r=0;r(u==null?void 0:u.route.id)===s)&&Yn(l)&&(X(o,"Expected an AbortController for revalidating fetcher deferred result"),await lf(l,o.signal,!0).then(u=>{u&&(t[i]=u)}))}}async function lf(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:fe.data,data:e.deferredData.unwrappedData}}catch(i){return{type:fe.error,error:i}}return{type:fe.data,data:e.deferredData.data}}}function af(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function ds(e,t){let n=typeof t=="string"?pr(t).search:t.search;if(e[e.length-1].route.index&&af(n||""))return e[e.length-1];let r=Tp(e);return r[r.length-1]}function nh(e){let{formMethod:t,formAction:n,formEncType:r,text:i,formData:s,json:o}=e;if(!(!t||!n||!r)){if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:i};if(s!=null)return{formMethod:t,formAction:n,formEncType:r,formData:s,json:void 0,text:void 0};if(o!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:o,text:void 0}}}function Aa(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function w6(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function ss(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function C6(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function Un(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function x6(e,t){try{let n=e.sessionStorage.getItem(Ip);if(n){let r=JSON.parse(n);for(let[i,s]of Object.entries(r||{}))s&&Array.isArray(s)&&t.set(i,new Set(s||[]))}}catch{}}function S6(e,t){if(t.size>0){let n={};for(let[r,i]of t)n[r]=[...i];try{e.sessionStorage.setItem(Ip,JSON.stringify(n))}catch(r){Ai(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** + * React Router v6.26.2 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function _l(){return _l=Object.assign?Object.assign.bind():function(e){for(var t=1;t{l.current=!0}),T.useCallback(function(u,c){if(c===void 0&&(c={}),!l.current)return;if(typeof u=="number"){r.go(u);return}let f=sf(u,JSON.parse(o),s,c.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:Ln([t,f.pathname])),(c.replace?r.replace:r.push)(f,c.state,c)},[t,r,o,s,e])}const N6=T.createContext(null);function L6(e){let t=T.useContext(mr).outlet;return t&&T.createElement(N6.Provider,{value:e},t)}function bp(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=T.useContext(Wr),{matches:i}=T.useContext(mr),{pathname:s}=Ji(),o=JSON.stringify(rf(i,r.v7_relativeSplatPath));return T.useMemo(()=>sf(e,JSON.parse(o),s,n==="path"),[e,o,s,n])}function T6(e,t,n,r){lo()||X(!1);let{navigator:i}=T.useContext(Wr),{matches:s}=T.useContext(mr),o=s[s.length-1],l=o?o.params:{};o&&o.pathname;let a=o?o.pathnameBase:"/";o&&o.route;let u=Ji(),c;c=u;let f=c.pathname||"/",d=f;if(a!=="/"){let C=a.replace(/^\//,"").split("/");d="/"+f.replace(/^\//,"").split("/").slice(C.length).join("/")}let p=xr(e,{pathname:d});return F6(p&&p.map(C=>Object.assign({},C,{params:Object.assign({},l,C.params),pathname:Ln([a,i.encodeLocation?i.encodeLocation(C.pathname).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?a:Ln([a,i.encodeLocation?i.encodeLocation(C.pathnameBase).pathname:C.pathnameBase])})),s,n,r)}function P6(){let e=M6(),t=ra(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return T.createElement(T.Fragment,null,T.createElement("h2",null,"Unexpected Application Error!"),T.createElement("h3",{style:{fontStyle:"italic"}},t),n?T.createElement("pre",{style:i},n):null,null)}const I6=T.createElement(P6,null);class R6 extends T.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?T.createElement(mr.Provider,{value:this.props.routeContext},T.createElement(Dp.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function O6(e){let{routeContext:t,match:n,children:r}=e,i=T.useContext(ia);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),T.createElement(mr.Provider,{value:t},r)}function F6(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var s;if(!n)return null;if(n.errors)e=n.matches;else if((s=r)!=null&&s.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let o=e,l=(i=n)==null?void 0:i.errors;if(l!=null){let c=o.findIndex(f=>f.route.id&&(l==null?void 0:l[f.route.id])!==void 0);c>=0||X(!1),o=o.slice(0,Math.min(o.length,c+1))}let a=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c=0?o=o.slice(0,u+1):o=[o[0]];break}}}return o.reduceRight((c,f,d)=>{let p,x=!1,C=null,L=null;n&&(p=l&&f.route.id?l[f.route.id]:void 0,C=f.route.errorElement||I6,a&&(u<0&&d===0?(U6("route-fallback"),x=!0,L=null):u===d&&(x=!0,L=f.route.hydrateFallbackElement||null)));let m=t.concat(o.slice(0,d+1)),h=()=>{let y;return p?y=C:x?y=L:f.route.Component?y=T.createElement(f.route.Component,null):f.route.element?y=f.route.element:y=c,T.createElement(O6,{match:f,routeContext:{outlet:c,matches:m,isDataRoute:n!=null},children:y})};return n&&(f.route.ErrorBoundary||f.route.errorElement||d===0)?T.createElement(R6,{location:n.location,revalidation:n.revalidation,component:C,error:p,children:h(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):h()},null)}var Up=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Up||{}),Dl=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Dl||{});function j6(e){let t=T.useContext(ia);return t||X(!1),t}function _6(e){let t=T.useContext(_p);return t||X(!1),t}function D6(e){let t=T.useContext(mr);return t||X(!1),t}function Ap(e){let t=D6(),n=t.matches[t.matches.length-1];return n.route.id||X(!1),n.route.id}function M6(){var e;let t=T.useContext(Dp),n=_6(Dl.UseRouteError),r=Ap(Dl.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function b6(){let{router:e}=j6(Up.UseNavigateStable),t=Ap(Dl.UseNavigateStable),n=T.useRef(!1);return Mp(()=>{n.current=!0}),T.useCallback(function(i,s){s===void 0&&(s={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,_l({fromRouteId:t},s)))},[e,t])}const rh={};function U6(e,t,n){rh[e]||(rh[e]=!0)}function za(e){return L6(e.context)}function A6(e){let{basename:t="/",children:n=null,location:r,navigationType:i=_e.Pop,navigator:s,static:o=!1,future:l}=e;lo()&&X(!1);let a=t.replace(/^\/*/,"/"),u=T.useMemo(()=>({basename:a,navigator:s,static:o,future:_l({v7_relativeSplatPath:!1},l)}),[a,l,s,o]);typeof r=="string"&&(r=pr(r));let{pathname:c="/",search:f="",hash:d="",state:p=null,key:x="default"}=r,C=T.useMemo(()=>{let L=Wi(c,a);return L==null?null:{location:{pathname:L,search:f,hash:d,state:p,key:x},navigationType:i}},[a,c,f,d,p,x,i]);return C==null?null:T.createElement(Wr.Provider,{value:u},T.createElement(uf.Provider,{children:n,value:C}))}new Promise(()=>{});function z6(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:T.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:T.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:T.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** + * React Router DOM v6.26.2 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function $s(){return $s=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function V6(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function H6(e,t){return e.button===0&&(!t||t==="_self")&&!V6(e)}function Bu(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(i=>[n,i]):[[n,r]])},[]))}function $6(e,t){let n=Bu(e);return t&&t.forEach((r,i)=>{n.has(i)||t.getAll(i).forEach(s=>{n.append(i,s)})}),n}const Q6=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],W6="6";try{window.__reactRouterVersion=W6}catch{}function J6(e,t){return e6({basename:void 0,future:$s({},void 0,{v7_prependBasename:!0}),history:E4({window:void 0}),hydrationData:K6(),routes:e,mapRouteProperties:z6,unstable_dataStrategy:void 0,unstable_patchRoutesOnNavigation:void 0,window:void 0}).initialize()}function K6(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=$s({},t,{errors:Z6(t.errors)})),t}function Z6(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,i]of t)if(i&&i.__type==="RouteErrorResponse")n[r]=new jl(i.status,i.statusText,i.data,i.internal===!0);else if(i&&i.__type==="Error"){if(i.__subType){let s=window[i.__subType];if(typeof s=="function")try{let o=new s(i.message);o.stack="",n[r]=o}catch{}}if(n[r]==null){let s=new Error(i.message);s.stack="",n[r]=s}}else n[r]=i;return n}const G6=T.createContext({isTransitioning:!1}),q6=T.createContext(new Map),X6="startTransition",ih=fm[X6],Y6="flushSync",sh=k4[Y6];function e8(e){ih?ih(e):e()}function os(e){sh?sh(e):e()}class t8{constructor(){this.status="pending",this.promise=new Promise((t,n)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function n8(e){let{fallbackElement:t,router:n,future:r}=e,[i,s]=T.useState(n.state),[o,l]=T.useState(),[a,u]=T.useState({isTransitioning:!1}),[c,f]=T.useState(),[d,p]=T.useState(),[x,C]=T.useState(),L=T.useRef(new Map),{v7_startTransition:m}=r||{},h=T.useCallback(g=>{m?e8(g):g()},[m]),y=T.useCallback((g,_)=>{let{deletedFetchers:M,unstable_flushSync:Q,unstable_viewTransitionOpts:ne}=_;M.forEach(Ee=>L.current.delete(Ee)),g.fetchers.forEach((Ee,Qt)=>{Ee.data!==void 0&&L.current.set(Qt,Ee.data)});let Fe=n.window==null||n.window.document==null||typeof n.window.document.startViewTransition!="function";if(!ne||Fe){Q?os(()=>s(g)):h(()=>s(g));return}if(Q){os(()=>{d&&(c&&c.resolve(),d.skipTransition()),u({isTransitioning:!0,flushSync:!0,currentLocation:ne.currentLocation,nextLocation:ne.nextLocation})});let Ee=n.window.document.startViewTransition(()=>{os(()=>s(g))});Ee.finished.finally(()=>{os(()=>{f(void 0),p(void 0),l(void 0),u({isTransitioning:!1})})}),os(()=>p(Ee));return}d?(c&&c.resolve(),d.skipTransition(),C({state:g,currentLocation:ne.currentLocation,nextLocation:ne.nextLocation})):(l(g),u({isTransitioning:!0,flushSync:!1,currentLocation:ne.currentLocation,nextLocation:ne.nextLocation}))},[n.window,d,c,L,h]);T.useLayoutEffect(()=>n.subscribe(y),[n,y]),T.useEffect(()=>{a.isTransitioning&&!a.flushSync&&f(new t8)},[a]),T.useEffect(()=>{if(c&&o&&n.window){let g=o,_=c.promise,M=n.window.document.startViewTransition(async()=>{h(()=>s(g)),await _});M.finished.finally(()=>{f(void 0),p(void 0),l(void 0),u({isTransitioning:!1})}),p(M)}},[h,o,c,n.window]),T.useEffect(()=>{c&&o&&i.location.key===o.location.key&&c.resolve()},[c,d,i.location,o]),T.useEffect(()=>{!a.isTransitioning&&x&&(l(x.state),u({isTransitioning:!0,flushSync:!1,currentLocation:x.currentLocation,nextLocation:x.nextLocation}),C(void 0))},[a.isTransitioning,x]),T.useEffect(()=>{},[]);let E=T.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:g=>n.navigate(g),push:(g,_,M)=>n.navigate(g,{state:_,preventScrollReset:M==null?void 0:M.preventScrollReset}),replace:(g,_,M)=>n.navigate(g,{replace:!0,state:_,preventScrollReset:M==null?void 0:M.preventScrollReset})}),[n]),I=n.basename||"/",F=T.useMemo(()=>({router:n,navigator:E,static:!1,basename:I}),[n,E,I]),j=T.useMemo(()=>({v7_relativeSplatPath:n.future.v7_relativeSplatPath}),[n.future.v7_relativeSplatPath]);return T.createElement(T.Fragment,null,T.createElement(ia.Provider,{value:F},T.createElement(_p.Provider,{value:i},T.createElement(q6.Provider,{value:L.current},T.createElement(G6.Provider,{value:a},T.createElement(A6,{basename:I,location:i.location,navigationType:i.historyAction,navigator:E,future:j},i.initialized||n.future.v7_partialHydration?T.createElement(r8,{routes:n.routes,future:n.future,state:i}):t))))),null)}const r8=T.memo(i8);function i8(e){let{routes:t,future:n,state:r}=e;return T6(t,void 0,r,n)}const s8=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",o8=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,qr=T.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:s,replace:o,state:l,target:a,to:u,preventScrollReset:c,unstable_viewTransition:f}=t,d=B6(t,Q6),{basename:p}=T.useContext(Wr),x,C=!1;if(typeof u=="string"&&o8.test(u)&&(x=u,s8))try{let y=new URL(window.location.href),E=u.startsWith("//")?new URL(y.protocol+u):new URL(u),I=Wi(E.pathname,p);E.origin===y.origin&&I!=null?u=I+E.search+E.hash:C=!0}catch{}let L=k6(u,{relative:i}),m=l8(u,{replace:o,state:l,target:a,preventScrollReset:c,relative:i,unstable_viewTransition:f});function h(y){r&&r(y),y.defaultPrevented||m(y)}return T.createElement("a",$s({},d,{href:x||L,onClick:C||s?r:h,ref:n,target:a}))});var oh;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(oh||(oh={}));var lh;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(lh||(lh={}));function l8(e,t){let{target:n,replace:r,state:i,preventScrollReset:s,relative:o,unstable_viewTransition:l}=t===void 0?{}:t,a=sa(),u=Ji(),c=bp(e,{relative:o});return T.useCallback(f=>{if(H6(f,n)){f.preventDefault();let d=r!==void 0?r:Vr(u)===Vr(c);a(e,{replace:d,state:i,preventScrollReset:s,relative:o,unstable_viewTransition:l})}},[u,a,c,r,i,n,e,s,o,l])}function cf(e){let t=T.useRef(Bu(e)),n=T.useRef(!1),r=Ji(),i=T.useMemo(()=>$6(r.search,n.current?null:t.current),[r.search]),s=sa(),o=T.useCallback((l,a)=>{const u=Bu(typeof l=="function"?l(i):l);n.current=!0,s("?"+u,a)},[s,i]);return[i,o]}function ah({className:e,style:t}){return w.jsx("svg",{width:"20",height:"22",viewBox:"0 0 20 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,style:t,children:w.jsx("path",{d:"M2.5 19.4857H6.25V11.9429H13.75V19.4857H17.5V8.17143L10 2.51429L2.5 8.17143V19.4857ZM2.5 22C1.8125 22 1.22417 21.754 0.735 21.2621C0.245 20.7693 0 20.1771 0 19.4857V8.17143C0 7.77333 0.0887498 7.39619 0.26625 7.04C0.442916 6.68381 0.6875 6.39048 1 6.16L8.5 0.502857C8.72917 0.335238 8.96875 0.209524 9.21875 0.125714C9.46875 0.0419046 9.72917 0 10 0C10.2708 0 10.5312 0.0419046 10.7812 0.125714C11.0313 0.209524 11.2708 0.335238 11.5 0.502857L19 6.16C19.3125 6.39048 19.5575 6.68381 19.735 7.04C19.9117 7.39619 20 7.77333 20 8.17143V19.4857C20 20.1771 19.7554 20.7693 19.2663 21.2621C18.7763 21.754 18.1875 22 17.5 22H11.25V14.4571H8.75V22H2.5Z"})})}function uh({className:e,style:t}){return w.jsx("svg",{width:"23",height:"18",viewBox:"0 0 23 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,style:t,children:w.jsx("path",{d:"M2.3 18C1.6675 18 1.12623 17.7799 0.6762 17.3396C0.2254 16.8986 0 16.3688 0 15.75V2.25C0 1.63125 0.2254 1.10175 0.6762 0.6615C1.12623 0.2205 1.6675 0 2.3 0H8.25125C8.55792 0 8.8504 0.0562501 9.1287 0.16875C9.40623 0.28125 9.65042 0.440625 9.86125 0.646875L11.5 2.25H20.7C21.3325 2.25 21.8741 2.4705 22.3249 2.9115C22.775 3.35175 23 3.88125 23 4.5V15.75C23 16.3688 22.775 16.8986 22.3249 17.3396C21.8741 17.7799 21.3325 18 20.7 18H2.3ZM2.3 2.25V15.75H20.7V4.5H10.5513L8.25125 2.25H2.3Z"})})}function Vu({className:e,style:t}){return w.jsxs("svg",{width:"52",height:"38",viewBox:"0 0 52 38",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,style:t,children:[w.jsx("path",{d:"M43.207 0.128418H9.20703C6.99789 0.128418 5.20703 1.91928 5.20703 4.12842V9.25683C5.20703 9.25683 21.4979 9.12842 23.707 9.12842C23.707 9.12842 26.7317 5.7363 27.7244 4.7436C28.7171 3.75089 30.9298 2.99819 32.4215 2.99819L47.0174 2.99819C46.7092 0.95483 45.4162 0.128418 43.207 0.128418Z"}),w.jsx("path",{d:"M23.7001 13.1319C24.8351 13.1319 25.9168 12.6497 26.6754 11.8054L29.8014 8.32649C30.5601 7.48222 31.6417 7 32.7767 7H47.3554C49.8008 7 51.6738 9.17486 51.3112 11.5932L47.8619 34.5932C47.5682 36.5514 45.8862 38 43.9061 38H7.07635C5.08953 38 3.40385 36.5417 3.11797 34.5756L0.665299 17.7074C0.314465 15.2946 2.18546 13.1319 4.62367 13.1319H23.7001Z"})]})}function a8({className:e,style:t}){return w.jsx("svg",{width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,style:t,children:w.jsx("path",{d:"M13.2467 12.2936H12.4126L12.117 12.0085C13.384 10.5303 14.0386 8.51366 13.6796 6.37032C13.1834 3.4351 10.7338 1.09115 7.7775 0.732163C3.31132 0.183129 -0.447455 3.9419 0.101578 8.40808C0.460562 11.3644 2.80452 13.814 5.73974 14.3102C7.88308 14.6692 9.89972 14.0146 11.3779 12.7476L11.663 13.0432V13.8773L16.1503 18.3646C16.5832 18.7975 17.2906 18.7975 17.7235 18.3646C18.1563 17.9317 18.1563 17.2243 17.7235 16.7914L13.2467 12.2936ZM6.91171 12.2936C4.28268 12.2936 2.16046 10.1713 2.16046 7.5423C2.16046 4.91327 4.28268 2.79104 6.91171 2.79104C9.54074 2.79104 11.663 4.91327 11.663 7.5423C11.663 10.1713 9.54074 12.2936 6.91171 12.2936Z"})})}function u8({className:e,style:t}){return w.jsx("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,style:t,children:w.jsx("path",{d:"M8.74179 10.4044L3.67075 15.4754C3.35017 15.796 2.94215 15.9563 2.44671 15.9563C1.95126 15.9563 1.54325 15.796 1.22267 15.4754C0.902082 15.1548 0.741791 14.7468 0.741791 14.2514C0.741791 13.7559 0.902082 13.3479 1.22267 13.0273L6.2937 7.95628L1.22267 2.92896C0.902082 2.60838 0.741791 2.20036 0.741791 1.70492C0.741791 1.20947 0.902082 0.801457 1.22267 0.480874C1.54325 0.160291 1.95126 0 2.44671 0C2.94215 0 3.35017 0.160291 3.67075 0.480874L8.74179 5.55191L13.7691 0.480874C14.0897 0.160291 14.4977 0 14.9932 0C15.4886 0 15.8966 0.160291 16.2172 0.480874C16.5669 0.830601 16.7418 1.2459 16.7418 1.72678C16.7418 2.20765 16.5669 2.60838 16.2172 2.92896L11.1462 7.95628L16.2172 13.0273C16.5378 13.3479 16.6981 13.7559 16.6981 14.2514C16.6981 14.7468 16.5378 15.1548 16.2172 15.4754C15.8675 15.8251 15.4522 16 14.9713 16C14.4904 16 14.0897 15.8251 13.7691 15.4754L8.74179 10.4044Z"})})}function ch({className:e,style:t}){return w.jsx("svg",{width:"17",height:"13",viewBox:"0 0 17 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,style:t,children:w.jsx("path",{d:"M5.17253 10.1625L1.70253 6.6925C1.31253 6.3025 0.682531 6.3025 0.292531 6.6925C-0.0974695 7.0825 -0.0974695 7.7125 0.292531 8.1025L4.47253 12.2825C4.86253 12.6725 5.49253 12.6725 5.88253 12.2825L16.4625 1.7025C16.8525 1.3125 16.8525 0.6825 16.4625 0.2925C16.0725 -0.0975 15.4425 -0.0975 15.0525 0.2925L5.17253 10.1625Z",fill:"#838683"})})}function Vo({className:e,style:t}){return w.jsx("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,style:t,children:w.jsx("path",{d:"M13.4417 1.95833C12.6584 1.45833 11.7834 1.09166 10.8417 0.874992C10.325 0.758326 9.83337 1.15833 9.83337 1.69166C9.83337 2.06666 10.0834 2.41666 10.45 2.49999C11.2084 2.66666 11.925 2.96666 12.5584 3.37499C12.8834 3.58333 13.3 3.51666 13.575 3.24166C13.95 2.86666 13.8917 2.24166 13.4417 1.95833ZM16.3084 8.16666C16.8417 8.16666 17.25 7.67499 17.125 7.15833C16.9084 6.22499 16.5417 5.34999 16.0417 4.55833C15.7584 4.10833 15.125 4.04999 14.75 4.42499C14.4834 4.69166 14.4167 5.11666 14.6167 5.44166C15.025 6.08333 15.325 6.79166 15.4917 7.54999C15.5834 7.91666 15.925 8.16666 16.3084 8.16666ZM14.75 13.575C15.125 13.95 15.7584 13.8917 16.0417 13.45C16.5417 12.6667 16.9084 11.7917 17.125 10.8583C17.2417 10.3417 16.8334 9.84999 16.3084 9.84999C15.9334 9.84999 15.5834 10.1 15.5 10.4667C15.3334 11.225 15.025 11.9333 14.625 12.575C14.4167 12.8833 14.4834 13.3083 14.75 13.575ZM9.83337 16.3083C9.83337 16.8417 10.325 17.25 10.8417 17.125C11.775 16.9083 12.65 16.5417 13.4334 16.0417C13.8834 15.7583 13.9417 15.125 13.5667 14.75C13.3 14.4833 12.875 14.4167 12.5584 14.625C11.925 15.0333 11.2167 15.3333 10.45 15.5C10.0834 15.5833 9.83337 15.925 9.83337 16.3083ZM8.1667 16.3083C8.1667 16.8417 7.67504 17.25 7.15837 17.1333C3.4417 16.2917 0.666702 12.975 0.666702 8.99999C0.666702 5.02499 3.4417 1.70833 7.15837 0.874992C7.67504 0.758326 8.1667 1.15833 8.1667 1.69166C8.1667 2.07499 7.90837 2.41666 7.53337 2.49999C4.55837 3.16666 2.33337 5.82499 2.33337 8.99999C2.33337 12.175 4.55837 14.8333 7.53337 15.5C7.90837 15.5833 8.1667 15.925 8.1667 16.3083Z",fill:"#838683"})})}function c8(){return w.jsx("svg",{width:"16",height:"148",viewBox:"0 0 16 148",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:w.jsx("path",{d:"M12.064 146.681L10.624 146.681L10.624 143.769C10.624 143.065 10.512 142.441 10.288 141.897C10.0533 141.342 9.73333 140.873 9.328 140.489C8.92267 140.094 8.448 139.796 7.904 139.593C7.36 139.39 6.77333 139.289 6.144 139.289C5.48267 139.289 4.88533 139.39 4.352 139.593C3.808 139.796 3.33867 140.094 2.944 140.489C2.53867 140.873 2.22933 141.342 2.016 141.897C1.80267 142.441 1.696 143.065 1.696 143.769L1.696 146.681L0.255999 146.681L0.255999 143.929C0.255999 142.873 0.421333 141.956 0.751999 141.177C1.072 140.398 1.50933 139.753 2.064 139.241C2.608 138.718 3.22133 138.329 3.904 138.073C4.576 137.817 5.264 137.689 5.968 137.689L6.32 137.689C7.00267 137.689 7.68533 137.817 8.368 138.073C9.05067 138.329 9.66933 138.718 10.224 139.241C10.7787 139.753 11.2267 140.398 11.568 141.177C11.8987 141.956 12.064 142.873 12.064 143.929L12.064 146.681ZM12.064 147.929L0.255999 147.929L0.255999 146.361L12.064 146.361L12.064 147.929ZM12 135.497L3.456 135.497L3.456 134.281L6.976 134.281L6.976 134.345C5.728 134.345 4.816 134.073 4.24 133.529C3.65333 132.974 3.36 132.147 3.36 131.049L3.36 130.761L4.736 130.761L4.736 131.305C4.736 132.158 4.96533 132.814 5.424 133.273C5.872 133.731 6.52267 133.961 7.376 133.961L12 133.961L12 135.497ZM12.288 125.092C12.288 125.839 12.16 126.495 11.904 127.06C11.648 127.625 11.312 128.105 10.896 128.5C10.4693 128.884 9.99467 129.177 9.472 129.38C8.94933 129.572 8.416 129.668 7.872 129.668L7.584 129.668C7.04 129.668 6.50667 129.567 5.984 129.364C5.45067 129.161 4.976 128.863 4.56 128.468C4.13333 128.073 3.79733 127.593 3.552 127.028C3.296 126.463 3.168 125.817 3.168 125.092C3.168 124.367 3.296 123.721 3.552 123.156C3.79733 122.591 4.13333 122.111 4.56 121.716C4.976 121.321 5.45067 121.023 5.984 120.82C6.50667 120.617 7.04 120.516 7.584 120.516L7.872 120.516C8.416 120.516 8.94933 120.617 9.472 120.82C9.99467 121.012 10.4693 121.305 10.896 121.7C11.312 122.084 11.648 122.559 11.904 123.124C12.16 123.689 12.288 124.345 12.288 125.092ZM10.912 125.092C10.912 124.452 10.7733 123.908 10.496 123.46C10.208 123.001 9.824 122.655 9.344 122.42C8.864 122.175 8.32533 122.052 7.728 122.052C7.12 122.052 6.576 122.175 6.096 122.42C5.616 122.665 5.23733 123.017 4.96 123.476C4.68267 123.924 4.544 124.463 4.544 125.092C4.544 125.711 4.68267 126.249 4.96 126.708C5.23733 127.167 5.616 127.519 6.096 127.764C6.576 128.009 7.12 128.132 7.728 128.132C8.32533 128.132 8.864 128.015 9.344 127.78C9.824 127.535 10.208 127.188 10.496 126.74C10.7733 126.281 10.912 125.732 10.912 125.092ZM15.2 118.215L3.456 118.215L3.456 116.999L7.152 116.999L7.12 117.287C6.20266 117.234 5.456 117.042 4.88 116.711C4.29333 116.37 3.86133 115.927 3.584 115.383C3.30666 114.839 3.168 114.247 3.168 113.607C3.168 112.989 3.28533 112.429 3.52 111.927C3.75466 111.415 4.07466 110.978 4.48 110.615C4.88533 110.253 5.35466 109.975 5.888 109.783C6.42133 109.591 6.98666 109.495 7.584 109.495L7.872 109.495C8.46933 109.495 9.03466 109.597 9.568 109.799C10.1013 110.002 10.5707 110.29 10.976 110.663C11.3813 111.026 11.7013 111.463 11.936 111.975C12.1707 112.477 12.288 113.031 12.288 113.639C12.288 114.247 12.1547 114.829 11.888 115.383C11.6213 115.938 11.1893 116.397 10.592 116.759C9.99467 117.122 9.21067 117.33 8.24 117.383L9.52 116.679L15.2 116.679L15.2 118.215ZM10.944 113.879C10.944 113.303 10.8107 112.802 10.544 112.375C10.2667 111.949 9.888 111.618 9.408 111.383C8.91733 111.149 8.35733 111.031 7.728 111.031C7.088 111.031 6.528 111.149 6.048 111.383C5.568 111.618 5.19466 111.949 4.928 112.375C4.65066 112.802 4.512 113.303 4.512 113.879C4.512 114.391 4.62933 114.866 4.864 115.303C5.088 115.741 5.41867 116.093 5.856 116.359C6.28267 116.615 6.8 116.743 7.408 116.743L8.144 116.743C8.73067 116.743 9.232 116.61 9.648 116.343C10.064 116.077 10.384 115.725 10.608 115.287C10.832 114.85 10.944 114.381 10.944 113.879ZM7.456 101.048L0.319998 104.76L0.319998 103.128L6.432 99.9916L6.256 100.6L6.256 98.7116L6.432 99.3516L0.319997 96.4076L0.319997 94.8716L7.456 98.3596L7.456 101.048ZM12 100.472L7.136 100.472L7.136 98.9356L12 98.9356L12 100.472ZM12.288 90.0607C12.288 90.8074 12.16 91.4634 11.904 92.0287C11.648 92.5941 11.312 93.0741 10.896 93.4687C10.4693 93.8527 9.99466 94.1461 9.472 94.3487C8.94933 94.5407 8.416 94.6367 7.872 94.6367L7.584 94.6367C7.04 94.6367 6.50666 94.5354 5.984 94.3327C5.45066 94.1301 4.976 93.8314 4.56 93.4367C4.13333 93.0421 3.79733 92.5621 3.552 91.9967C3.296 91.4314 3.168 90.7861 3.168 90.0607C3.168 89.3354 3.296 88.6901 3.552 88.1247C3.79733 87.5594 4.13333 87.0794 4.56 86.6847C4.976 86.2901 5.45066 85.9914 5.984 85.7887C6.50666 85.5861 7.04 85.4847 7.584 85.4847L7.872 85.4847C8.416 85.4847 8.94933 85.5861 9.472 85.7887C9.99466 85.9807 10.4693 86.2741 10.896 86.6687C11.312 87.0527 11.648 87.5274 11.904 88.0927C12.16 88.6581 12.288 89.3141 12.288 90.0607ZM10.912 90.0607C10.912 89.4207 10.7733 88.8767 10.496 88.4287C10.208 87.9701 9.824 87.6234 9.344 87.3887C8.864 87.1434 8.32533 87.0207 7.728 87.0207C7.12 87.0207 6.576 87.1434 6.096 87.3887C5.616 87.6341 5.23733 87.9861 4.96 88.4447C4.68266 88.8927 4.544 89.4314 4.544 90.0607C4.544 90.6794 4.68266 91.2181 4.96 91.6767C5.23733 92.1354 5.616 92.4874 6.096 92.7327C6.576 92.9781 7.12 93.1007 7.728 93.1007C8.32533 93.1007 8.864 92.9834 9.344 92.7487C9.824 92.5034 10.208 92.1567 10.496 91.7087C10.7733 91.2501 10.912 90.7007 10.912 90.0607ZM12.256 80.2242C12.256 81.2376 11.9253 82.0162 11.264 82.5602C10.6027 83.1042 9.648 83.3762 8.4 83.3762L3.44 83.3762L3.44 81.8402L8.704 81.8402C9.376 81.8402 9.904 81.6589 10.288 81.2962C10.6613 80.9336 10.848 80.4429 10.848 79.8242C10.848 79.1842 10.6453 78.6616 10.24 78.2562C9.824 77.8509 9.25866 77.6482 8.544 77.6482L3.44 77.6482L3.44 76.1122L12 76.1122L12 77.3282L8.336 77.3282L8.336 77.1362C9.17866 77.1362 9.89333 77.2482 10.48 77.4722C11.056 77.6962 11.4987 78.0322 11.808 78.4802C12.1067 78.9176 12.256 79.4776 12.256 80.1602L12.256 80.2242ZM12 73.1374L3.456 73.1374L3.456 71.9214L6.976 71.9214L6.976 71.9854C5.728 71.9854 4.816 71.7134 4.24 71.1694C3.65333 70.6147 3.36 69.788 3.36 68.6894L3.36 68.4014L4.736 68.4014L4.736 68.9454C4.736 69.7987 4.96533 70.4547 5.424 70.9134C5.872 71.372 6.52266 71.6014 7.376 71.6014L12 71.6014L12 73.1374ZM12.288 58.9182C12.288 59.8889 12.128 60.7156 11.808 61.3982C11.488 62.0809 11.0453 62.6036 10.48 62.9662C9.91466 63.3289 9.27466 63.5102 8.56 63.5102L8.56 61.9422C8.912 61.9422 9.264 61.8516 9.616 61.6702C9.968 61.4782 10.2613 61.1636 10.496 60.7262C10.7307 60.2782 10.848 59.6756 10.848 58.9182C10.848 58.2142 10.7467 57.6382 10.544 57.1902C10.3307 56.7422 10.0587 56.4116 9.728 56.1982C9.38666 55.9849 9.01866 55.8782 8.624 55.8782C8.144 55.8782 7.74933 56.0862 7.44 56.5022C7.12 56.9182 6.92266 57.5262 6.848 58.3262L6.736 59.6222C6.65066 60.6569 6.33066 61.4836 5.776 62.1022C5.22133 62.7209 4.49066 63.0302 3.584 63.0302C2.86933 63.0302 2.24533 62.8596 1.712 62.5182C1.17866 62.1662 0.762663 61.6809 0.463996 61.0622C0.154662 60.4436 -4.89978e-06 59.7236 -4.93568e-06 58.9022C-4.97112e-06 58.0916 0.149328 57.3769 0.447995 56.7582C0.746662 56.1396 1.168 55.6596 1.712 55.3182C2.24533 54.9662 2.88533 54.7902 3.632 54.7902L3.632 56.3582C3.25866 56.3582 2.90666 56.4489 2.576 56.6302C2.24533 56.8009 1.97333 57.0729 1.76 57.4462C1.54666 57.8196 1.44 58.3049 1.44 58.9022C1.44 59.4782 1.54133 59.9582 1.744 60.3422C1.94666 60.7156 2.21333 60.9982 2.544 61.1902C2.864 61.3716 3.21066 61.4622 3.584 61.4622C4.01066 61.4622 4.38933 61.2969 4.72 60.9662C5.05066 60.6356 5.24266 60.1449 5.296 59.4942L5.408 58.1982C5.472 57.3982 5.64266 56.7102 5.92 56.1342C6.18666 55.5476 6.54933 55.0996 7.008 54.7902C7.456 54.4702 7.99466 54.3102 8.624 54.3102C9.33866 54.3102 9.97333 54.5022 10.528 54.8862C11.0827 55.2702 11.5147 55.8089 11.824 56.5022C12.1333 57.1956 12.288 58.0009 12.288 58.9182ZM12.256 48.943C12.256 49.9563 11.9253 50.735 11.264 51.279C10.6027 51.823 9.648 52.095 8.4 52.095L3.44 52.095L3.44 50.559L8.704 50.559C9.376 50.559 9.904 50.3777 10.288 50.015C10.6613 49.6523 10.848 49.1617 10.848 48.543C10.848 47.903 10.6453 47.3803 10.24 46.975C9.824 46.5697 9.25866 46.367 8.544 46.367L3.44 46.367L3.43999 44.831L12 44.831L12 46.047L8.336 46.047L8.336 45.855C9.17866 45.855 9.89333 45.967 10.48 46.191C11.056 46.415 11.4987 46.751 11.808 47.199C12.1067 47.6363 12.256 48.1963 12.256 48.879L12.256 48.943ZM12.288 37.3441C12.288 38.0481 12.1333 38.6775 11.824 39.2321C11.5147 39.7761 11.0667 40.2081 10.48 40.5281C9.88266 40.8481 9.168 41.0241 8.33599 41.0561L8.33599 40.6401L12 40.6401L12 41.8561L0.319995 41.8561L0.319995 40.3201L5.99999 40.3201L7.16799 40.8641C6.23999 40.8215 5.48266 40.6348 4.89599 40.3041C4.30933 39.9735 3.87733 39.5415 3.59999 39.0081C3.31199 38.4641 3.16799 37.8668 3.16799 37.2161C3.16799 36.6081 3.28533 36.0535 3.51999 35.5521C3.74399 35.0508 4.05866 34.6188 4.46399 34.2561C4.85866 33.8935 5.32266 33.6161 5.85599 33.4241C6.37866 33.2321 6.94399 33.1361 7.55199 33.1361L7.83999 33.1361C8.44799 33.1361 9.01866 33.2375 9.55199 33.4401C10.0853 33.6321 10.56 33.9148 10.976 34.2881C11.3813 34.6615 11.7013 35.1095 11.936 35.6321C12.1707 36.1441 12.288 36.7148 12.288 37.3441ZM10.944 37.5201C10.944 36.9441 10.8053 36.4428 10.528 36.0161C10.2507 35.5895 9.87199 35.2588 9.39199 35.0241C8.90133 34.7895 8.33599 34.6721 7.69599 34.6721C7.05599 34.6721 6.49599 34.7948 6.01599 35.0401C5.53599 35.2748 5.16799 35.6055 4.91199 36.0321C4.64533 36.4588 4.51199 36.9548 4.51199 37.5201C4.51199 38.0321 4.62933 38.5068 4.86399 38.9441C5.08799 39.3815 5.41866 39.7335 5.856 40.0001C6.28266 40.2561 6.8 40.3841 7.408 40.3841L8.144 40.3841C8.73066 40.3841 9.232 40.2508 9.648 39.9841C10.064 39.7175 10.384 39.3655 10.608 38.9281C10.832 38.4908 10.944 38.0215 10.944 37.5201ZM12.096 27.4969C12.096 28.1369 12.0053 28.6915 11.824 29.1609C11.6427 29.6195 11.3333 29.9769 10.896 30.2329C10.448 30.4782 9.84533 30.6009 9.08799 30.6009L0.863994 30.6009L0.863994 29.1289L9.27999 29.1289C9.73866 29.1289 10.096 29.0062 10.352 28.7609C10.5973 28.5049 10.72 28.1475 10.72 27.6889L10.72 26.1849L12.096 26.1849L12.096 27.4969ZM4.60799 32.0729L3.45599 32.0729L3.45599 26.1849L4.60799 26.1849L4.60799 32.0729ZM12 23.5964L3.45599 23.5964L3.45599 22.0604L12 22.0604L12 23.5964ZM4.67199 24.9084L3.45599 24.9084L3.45599 22.0604L4.67199 22.0604L4.67199 24.9084ZM2.07999 23.1644C2.07999 23.5057 1.98933 23.7617 1.80799 23.9324C1.62666 24.0924 1.39733 24.1724 1.11999 24.1724C0.842661 24.1724 0.613327 24.0924 0.431994 23.9324C0.250661 23.7617 0.159994 23.5057 0.159994 23.1644C0.159994 22.823 0.250661 22.5724 0.431994 22.4124C0.613327 22.2417 0.842661 22.1564 1.11999 22.1564C1.39733 22.1564 1.62666 22.2417 1.80799 22.4124C1.98933 22.5724 2.07999 22.823 2.07999 23.1644ZM12.096 15.7625C12.096 16.4025 12.0053 16.9572 11.824 17.4265C11.6427 17.8852 11.3333 18.2425 10.896 18.4985C10.448 18.7438 9.84533 18.8665 9.08799 18.8665L0.863994 18.8665L0.863994 17.3945L9.27999 17.3945C9.73866 17.3945 10.096 17.2718 10.352 17.0265C10.5973 16.7705 10.72 16.4132 10.72 15.9545L10.72 14.4505L12.096 14.4505L12.096 15.7625ZM4.60799 20.3385L3.45599 20.3385L3.45599 14.4505L4.60799 14.4505L4.60799 20.3385ZM12 12.182L0.319994 12.182L0.319994 10.646L12 10.646L12 12.182ZM1.53599 13.366L0.319994 13.366L0.319994 10.646L1.53599 10.646L1.53599 13.366ZM12.288 4.06787C12.288 4.81454 12.16 5.45987 11.904 6.00387C11.648 6.54787 11.312 6.99054 10.896 7.33187C10.4693 7.67321 9.99466 7.92921 9.47199 8.09987C8.94933 8.25987 8.41599 8.33987 7.87199 8.33987L7.58399 8.33987C7.02933 8.33987 6.49066 8.25987 5.96799 8.09987C5.44533 7.92921 4.97599 7.67321 4.55999 7.33187C4.13333 6.99054 3.79733 6.55854 3.55199 6.03587C3.29599 5.50254 3.16799 4.87854 3.16799 4.16387C3.16799 3.23587 3.37066 2.47321 3.77599 1.87587C4.17066 1.26787 4.68266 0.819874 5.31199 0.531874C5.94133 0.233208 6.61333 0.0838743 7.32799 0.0838743L8.01599 0.0838742L8.01599 7.66787L6.86399 7.66787L6.86399 1.20387L7.48799 1.55587C6.87999 1.55587 6.35733 1.65187 5.91999 1.84387C5.47199 2.03587 5.12533 2.32387 4.87999 2.70787C4.63466 3.09187 4.51199 3.57721 4.51199 4.16387C4.51199 4.77187 4.65066 5.27854 4.92799 5.68387C5.20533 6.07854 5.58399 6.37721 6.06399 6.57987C6.54399 6.77187 7.09866 6.86787 7.72799 6.86787C8.33599 6.86787 8.88533 6.77187 9.37599 6.57987C9.85599 6.37721 10.24 6.06787 10.528 5.65187C10.8053 5.23587 10.944 4.70787 10.944 4.06787C10.944 3.39587 10.7947 2.85187 10.496 2.43587C10.1973 2.00921 9.85066 1.75321 9.45599 1.66787L9.45599 0.227874C10.0427 0.345207 10.5493 0.579874 10.976 0.931874C11.4027 1.28387 11.728 1.72654 11.952 2.25987C12.176 2.79321 12.288 3.39587 12.288 4.06787Z",fill:"#2F3130"})})}function f8(){return w.jsx("svg",{width:"65",height:"53",viewBox:"0 0 65 53",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:w.jsx("path",{d:"M14.9596 12.064V10.624H17.8716C18.5756 10.624 19.1996 10.512 19.7436 10.288C20.2983 10.0533 20.7676 9.73333 21.1516 9.328C21.5463 8.92267 21.845 8.448 22.0476 7.904C22.2503 7.36 22.3516 6.77333 22.3516 6.144C22.3516 5.48267 22.2503 4.88533 22.0476 4.352C21.845 3.808 21.5463 3.33867 21.1516 2.944C20.7676 2.53867 20.2983 2.22933 19.7436 2.016C19.1996 1.80267 18.5756 1.696 17.8716 1.696H14.9596V0.256H17.7116C18.7676 0.256 19.685 0.421333 20.4636 0.752C21.2423 1.072 21.8876 1.50933 22.3996 2.064C22.9223 2.608 23.3116 3.22133 23.5676 3.904C23.8236 4.576 23.9516 5.264 23.9516 5.968V6.32C23.9516 7.00267 23.8236 7.68533 23.5676 8.368C23.3116 9.05067 22.9223 9.66933 22.3996 10.224C21.8876 10.7787 21.2423 11.2267 20.4636 11.568C19.685 11.8987 18.7676 12.064 17.7116 12.064H14.9596ZM13.7116 12.064V0.256H15.2796V12.064H13.7116ZM26.1439 12V3.456H27.3599V6.976H27.2959C27.2959 5.728 27.5679 4.816 28.1119 4.24C28.6665 3.65333 29.4932 3.36 30.5919 3.36H30.8799V4.736H30.3359C29.4825 4.736 28.8265 4.96533 28.3679 5.424C27.9092 5.872 27.6799 6.52267 27.6799 7.376V12H26.1439ZM36.5486 12.288C35.802 12.288 35.146 12.16 34.5806 11.904C34.0153 11.648 33.5353 11.312 33.1406 10.896C32.7566 10.4693 32.4633 9.99467 32.2606 9.472C32.0686 8.94933 31.9726 8.416 31.9726 7.872V7.584C31.9726 7.04 32.074 6.50667 32.2766 5.984C32.4793 5.45067 32.778 4.976 33.1726 4.56C33.5673 4.13333 34.0473 3.79733 34.6126 3.552C35.178 3.296 35.8233 3.168 36.5486 3.168C37.274 3.168 37.9193 3.296 38.4846 3.552C39.05 3.79733 39.53 4.13333 39.9246 4.56C40.3193 4.976 40.618 5.45067 40.8206 5.984C41.0233 6.50667 41.1246 7.04 41.1246 7.584V7.872C41.1246 8.416 41.0233 8.94933 40.8206 9.472C40.6286 9.99467 40.3353 10.4693 39.9406 10.896C39.5566 11.312 39.082 11.648 38.5166 11.904C37.9513 12.16 37.2953 12.288 36.5486 12.288ZM36.5486 10.912C37.1886 10.912 37.7326 10.7733 38.1806 10.496C38.6393 10.208 38.986 9.824 39.2206 9.344C39.466 8.864 39.5886 8.32533 39.5886 7.728C39.5886 7.12 39.466 6.576 39.2206 6.096C38.9753 5.616 38.6233 5.23733 38.1646 4.96C37.7166 4.68267 37.178 4.544 36.5486 4.544C35.93 4.544 35.3913 4.68267 34.9326 4.96C34.474 5.23733 34.122 5.616 33.8766 6.096C33.6313 6.576 33.5086 7.12 33.5086 7.728C33.5086 8.32533 33.626 8.864 33.8606 9.344C34.106 9.824 34.4526 10.208 34.9006 10.496C35.3593 10.7733 35.9086 10.912 36.5486 10.912ZM43.4251 15.2V3.456H44.6411V7.152L44.3531 7.12C44.4065 6.20267 44.5985 5.456 44.9291 4.88C45.2705 4.29333 45.7131 3.86133 46.2571 3.584C46.8011 3.30667 47.3931 3.168 48.0331 3.168C48.6518 3.168 49.2118 3.28533 49.7131 3.52C50.2251 3.75467 50.6625 4.07467 51.0251 4.48C51.3878 4.88533 51.6651 5.35467 51.8571 5.888C52.0491 6.42133 52.1451 6.98667 52.1451 7.584V7.872C52.1451 8.46933 52.0438 9.03467 51.8411 9.568C51.6385 10.1013 51.3505 10.5707 50.9771 10.976C50.6145 11.3813 50.1771 11.7013 49.6651 11.936C49.1638 12.1707 48.6091 12.288 48.0011 12.288C47.3931 12.288 46.8118 12.1547 46.2571 11.888C45.7025 11.6213 45.2438 11.1893 44.8811 10.592C44.5185 9.99467 44.3105 9.21067 44.2571 8.24L44.9611 9.52V15.2H43.4251ZM47.7611 10.944C48.3371 10.944 48.8385 10.8107 49.2651 10.544C49.6918 10.2667 50.0225 9.888 50.2571 9.408C50.4918 8.91733 50.6091 8.35733 50.6091 7.728C50.6091 7.088 50.4918 6.528 50.2571 6.048C50.0225 5.568 49.6918 5.19467 49.2651 4.928C48.8385 4.65067 48.3371 4.512 47.7611 4.512C47.2491 4.512 46.7745 4.62933 46.3371 4.864C45.8998 5.088 45.5478 5.41867 45.2811 5.856C45.0251 6.28267 44.8971 6.8 44.8971 7.408V8.144C44.8971 8.73067 45.0305 9.232 45.2971 9.648C45.5638 10.064 45.9158 10.384 46.3531 10.608C46.7905 10.832 47.2598 10.944 47.7611 10.944ZM17.9836 27.456L14.2716 20.32H15.9036L19.0396 26.432L18.4316 26.256H20.3196L19.6796 26.432L22.6236 20.32H24.1596L20.6716 27.456H17.9836ZM18.5596 32V27.136H20.0956V32H18.5596ZM28.9705 32.288C28.2238 32.288 27.5678 32.16 27.0025 31.904C26.4372 31.648 25.9572 31.312 25.5625 30.896C25.1785 30.4693 24.8852 29.9947 24.6825 29.472C24.4905 28.9493 24.3945 28.416 24.3945 27.872V27.584C24.3945 27.04 24.4958 26.5067 24.6985 25.984C24.9012 25.4507 25.1998 24.976 25.5945 24.56C25.9892 24.1333 26.4692 23.7973 27.0345 23.552C27.5998 23.296 28.2452 23.168 28.9705 23.168C29.6958 23.168 30.3412 23.296 30.9065 23.552C31.4718 23.7973 31.9518 24.1333 32.3465 24.56C32.7412 24.976 33.0398 25.4507 33.2425 25.984C33.4452 26.5067 33.5465 27.04 33.5465 27.584V27.872C33.5465 28.416 33.4452 28.9493 33.2425 29.472C33.0505 29.9947 32.7572 30.4693 32.3625 30.896C31.9785 31.312 31.5038 31.648 30.9385 31.904C30.3732 32.16 29.7172 32.288 28.9705 32.288ZM28.9705 30.912C29.6105 30.912 30.1545 30.7733 30.6025 30.496C31.0612 30.208 31.4078 29.824 31.6425 29.344C31.8878 28.864 32.0105 28.3253 32.0105 27.728C32.0105 27.12 31.8878 26.576 31.6425 26.096C31.3972 25.616 31.0452 25.2373 30.5865 24.96C30.1385 24.6827 29.5998 24.544 28.9705 24.544C28.3518 24.544 27.8132 24.6827 27.3545 24.96C26.8958 25.2373 26.5438 25.616 26.2985 26.096C26.0532 26.576 25.9305 27.12 25.9305 27.728C25.9305 28.3253 26.0478 28.864 26.2825 29.344C26.5278 29.824 26.8745 30.208 27.3225 30.496C27.7812 30.7733 28.3305 30.912 28.9705 30.912ZM38.807 32.256C37.7937 32.256 37.015 31.9253 36.471 31.264C35.927 30.6027 35.655 29.648 35.655 28.4V23.44H37.191V28.704C37.191 29.376 37.3723 29.904 37.735 30.288C38.0977 30.6613 38.5883 30.848 39.207 30.848C39.847 30.848 40.3697 30.6453 40.775 30.24C41.1803 29.824 41.383 29.2587 41.383 28.544V23.44H42.919V32H41.703V28.336H41.895C41.895 29.1787 41.783 29.8933 41.559 30.48C41.335 31.056 40.999 31.4987 40.551 31.808C40.1137 32.1067 39.5537 32.256 38.871 32.256H38.807ZM45.8939 32V23.456H47.1099V26.976H47.0459C47.0459 25.728 47.3179 24.816 47.8619 24.24C48.4165 23.6533 49.2432 23.36 50.3419 23.36H50.6299V24.736H50.0859C49.2325 24.736 48.5765 24.9653 48.1179 25.424C47.6592 25.872 47.4299 26.5227 47.4299 27.376V32H45.8939ZM5.47238 52.288C4.50171 52.288 3.67504 52.128 2.99238 51.808C2.30971 51.488 1.78704 51.0453 1.42438 50.48C1.06171 49.9147 0.880375 49.2747 0.880375 48.56H2.44838C2.44838 48.912 2.53904 49.264 2.72038 49.616C2.91238 49.968 3.22704 50.2613 3.66438 50.496C4.11238 50.7307 4.71504 50.848 5.47238 50.848C6.17638 50.848 6.75238 50.7467 7.20038 50.544C7.64838 50.3307 7.97904 50.0587 8.19238 49.728C8.40571 49.3867 8.51238 49.0187 8.51238 48.624C8.51238 48.144 8.30438 47.7493 7.88838 47.44C7.47238 47.12 6.86438 46.9227 6.06438 46.848L4.76838 46.736C3.73371 46.6507 2.90704 46.3307 2.28838 45.776C1.66971 45.2213 1.36038 44.4907 1.36038 43.584C1.36038 42.8693 1.53104 42.2453 1.87238 41.712C2.22438 41.1787 2.70971 40.7627 3.32838 40.464C3.94704 40.1547 4.66704 40 5.48838 40C6.29904 40 7.01371 40.1493 7.63238 40.448C8.25104 40.7467 8.73104 41.168 9.07238 41.712C9.42438 42.2453 9.60038 42.8853 9.60038 43.632H8.03238C8.03238 43.2587 7.94171 42.9067 7.76038 42.576C7.58971 42.2453 7.31771 41.9733 6.94438 41.76C6.57104 41.5467 6.08571 41.44 5.48838 41.44C4.91238 41.44 4.43238 41.5413 4.04838 41.744C3.67504 41.9467 3.39238 42.2133 3.20038 42.544C3.01904 42.864 2.92838 43.2107 2.92838 43.584C2.92838 44.0107 3.09371 44.3893 3.42438 44.72C3.75504 45.0507 4.24571 45.2427 4.89638 45.296L6.19238 45.408C6.99238 45.472 7.68038 45.6427 8.25638 45.92C8.84304 46.1867 9.29104 46.5493 9.60038 47.008C9.92038 47.456 10.0804 47.9947 10.0804 48.624C10.0804 49.3387 9.88838 49.9733 9.50438 50.528C9.12038 51.0827 8.58171 51.5147 7.88838 51.824C7.19504 52.1333 6.38971 52.288 5.47238 52.288ZM15.4476 52.256C14.4343 52.256 13.6556 51.9253 13.1116 51.264C12.5676 50.6027 12.2956 49.648 12.2956 48.4V43.44H13.8316V48.704C13.8316 49.376 14.013 49.904 14.3756 50.288C14.7383 50.6613 15.229 50.848 15.8476 50.848C16.4876 50.848 17.0103 50.6453 17.4156 50.24C17.821 49.824 18.0236 49.2587 18.0236 48.544V43.44H19.5596V52H18.3436V48.336H18.5356C18.5356 49.1787 18.4236 49.8933 18.1996 50.48C17.9756 51.056 17.6396 51.4987 17.1916 51.808C16.7543 52.1067 16.1943 52.256 15.5116 52.256H15.4476ZM27.0465 52.288C26.3425 52.288 25.7132 52.1333 25.1585 51.824C24.6145 51.5147 24.1825 51.0667 23.8625 50.48C23.5425 49.8827 23.3665 49.168 23.3345 48.336H23.7505V52H22.5345V40.32H24.0705V46L23.5265 47.168C23.5692 46.24 23.7558 45.4827 24.0865 44.896C24.4172 44.3093 24.8492 43.8773 25.3825 43.6C25.9265 43.312 26.5238 43.168 27.1745 43.168C27.7825 43.168 28.3372 43.2853 28.8385 43.52C29.3398 43.744 29.7718 44.0587 30.1345 44.464C30.4972 44.8587 30.7745 45.3227 30.9665 45.856C31.1585 46.3787 31.2545 46.944 31.2545 47.552V47.84C31.2545 48.448 31.1532 49.0187 30.9505 49.552C30.7585 50.0853 30.4758 50.56 30.1025 50.976C29.7292 51.3813 29.2812 51.7013 28.7585 51.936C28.2465 52.1707 27.6758 52.288 27.0465 52.288ZM26.8705 50.944C27.4465 50.944 27.9478 50.8053 28.3745 50.528C28.8012 50.2507 29.1318 49.872 29.3665 49.392C29.6012 48.9013 29.7185 48.336 29.7185 47.696C29.7185 47.056 29.5958 46.496 29.3505 46.016C29.1158 45.536 28.7852 45.168 28.3585 44.912C27.9318 44.6453 27.4358 44.512 26.8705 44.512C26.3585 44.512 25.8838 44.6293 25.4465 44.864C25.0092 45.088 24.6572 45.4187 24.3905 45.856C24.1345 46.2827 24.0065 46.8 24.0065 47.408V48.144C24.0065 48.7307 24.1398 49.232 24.4065 49.648C24.6732 50.064 25.0252 50.384 25.4625 50.608C25.8998 50.832 26.3692 50.944 26.8705 50.944ZM36.8938 52.096C36.2538 52.096 35.6991 52.0053 35.2298 51.824C34.7711 51.6427 34.4138 51.3333 34.1578 50.896C33.9124 50.448 33.7898 49.8453 33.7898 49.088V40.864H35.2618V49.28C35.2618 49.7387 35.3844 50.096 35.6298 50.352C35.8858 50.5973 36.2431 50.72 36.7018 50.72H38.2058V52.096H36.8938ZM32.3178 44.608V43.456H38.2058V44.608H32.3178ZM40.7943 52V43.456H42.3303V52H40.7943ZM39.4823 44.672V43.456H42.3303V44.672H39.4823ZM41.2263 42.08C40.8849 42.08 40.6289 41.9893 40.4583 41.808C40.2983 41.6267 40.2183 41.3973 40.2183 41.12C40.2183 40.8427 40.2983 40.6133 40.4583 40.432C40.6289 40.2507 40.8849 40.16 41.2263 40.16C41.5676 40.16 41.8183 40.2507 41.9783 40.432C42.1489 40.6133 42.2343 40.8427 42.2343 41.12C42.2343 41.3973 42.1489 41.6267 41.9783 41.808C41.8183 41.9893 41.5676 42.08 41.2263 42.08ZM48.6281 52.096C47.9881 52.096 47.4335 52.0053 46.9641 51.824C46.5055 51.6427 46.1481 51.3333 45.8921 50.896C45.6468 50.448 45.5241 49.8453 45.5241 49.088V40.864H46.9961V49.28C46.9961 49.7387 47.1188 50.096 47.3641 50.352C47.6201 50.5973 47.9775 50.72 48.4361 50.72H49.9401V52.096H48.6281ZM44.0521 44.608V43.456H49.9401V44.608H44.0521ZM52.2086 52V40.32H53.7446V52H52.2086ZM51.0246 41.536V40.32H53.7446V41.536H51.0246ZM60.3228 52.288C59.5761 52.288 58.9308 52.16 58.3868 51.904C57.8428 51.648 57.4001 51.312 57.0588 50.896C56.7174 50.4693 56.4614 49.9947 56.2908 49.472C56.1308 48.9493 56.0508 48.416 56.0508 47.872V47.584C56.0508 47.0293 56.1308 46.4907 56.2908 45.968C56.4614 45.4453 56.7174 44.976 57.0588 44.56C57.4001 44.1333 57.8321 43.7973 58.3548 43.552C58.8881 43.296 59.5121 43.168 60.2268 43.168C61.1548 43.168 61.9174 43.3707 62.5148 43.776C63.1228 44.1707 63.5708 44.6827 63.8588 45.312C64.1574 45.9413 64.3068 46.6133 64.3068 47.328V48.016H56.7228V46.864H63.1868L62.8348 47.488C62.8348 46.88 62.7388 46.3573 62.5468 45.92C62.3548 45.472 62.0668 45.1253 61.6828 44.88C61.2988 44.6347 60.8134 44.512 60.2268 44.512C59.6188 44.512 59.1121 44.6507 58.7068 44.928C58.3121 45.2053 58.0134 45.584 57.8108 46.064C57.6188 46.544 57.5228 47.0987 57.5228 47.728C57.5228 48.336 57.6188 48.8853 57.8108 49.376C58.0134 49.856 58.3228 50.24 58.7388 50.528C59.1548 50.8053 59.6828 50.944 60.3228 50.944C60.9948 50.944 61.5388 50.7947 61.9548 50.496C62.3814 50.1973 62.6374 49.8507 62.7228 49.456H64.1628C64.0454 50.0427 63.8108 50.5493 63.4588 50.976C63.1068 51.4027 62.6641 51.728 62.1308 51.952C61.5974 52.176 60.9948 52.288 60.3228 52.288Z",fill:"#2F3130"})})}var ff={};ff.match=g8;ff.parse=zp;var d8=/(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i,h8=/\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/,p8=/^(?:(min|max)-)?(.+)/,m8=/(em|rem|px|cm|mm|in|pt|pc)?$/,y8=/(dpi|dpcm|dppx)?$/;function g8(e,t){return zp(e).some(function(n){var r=n.inverse,i=n.type==="all"||t.type===n.type;if(i&&r||!(i||r))return!1;var s=n.expressions.every(function(o){var l=o.feature,a=o.modifier,u=o.value,c=t[l];if(!c)return!1;switch(l){case"orientation":case"scan":return c.toLowerCase()===u.toLowerCase();case"width":case"height":case"device-width":case"device-height":u=hh(u),c=hh(c);break;case"resolution":u=dh(u),c=dh(c);break;case"aspect-ratio":case"device-aspect-ratio":case"device-pixel-ratio":u=fh(u),c=fh(c);break;case"grid":case"color":case"color-index":case"monochrome":u=parseInt(u,10)||1,c=parseInt(c,10)||0;break}switch(a){case"min":return c>=u;case"max":return c<=u;default:return c===u}});return s&&!r||!s&&r})}function zp(e){return e.split(",").map(function(t){t=t.trim();var n=t.match(d8),r=n[1],i=n[2],s=n[3]||"",o={};return o.inverse=!!r&&r.toLowerCase()==="not",o.type=i?i.toLowerCase():"all",s=s.match(/\([^\)]+\)/g)||[],o.expressions=s.map(function(l){var a=l.match(h8),u=a[1].toLowerCase().match(p8);return{modifier:u[1],feature:u[2],value:a[2]}}),o})}function fh(e){var t=Number(e),n;return t||(n=e.match(/^(\d+)\s*\/\s*(\d+)$/),t=n[1]/n[2]),t}function dh(e){var t=parseFloat(e),n=String(e).match(y8)[1];switch(n){case"dpcm":return t/2.54;case"dppx":return t*96;default:return t}}function hh(e){var t=parseFloat(e),n=String(e).match(m8)[1];switch(n){case"em":return t*16;case"rem":return t*16;case"cm":return t*96/2.54;case"mm":return t*96/2.54/10;case"in":return t*96;case"pt":return t*72;case"pc":return t*72/12;default:return t}}var v8=ff.match,ph=typeof window<"u"?window.matchMedia:null;function w8(e,t,n){var r=this,i;ph&&!n&&(i=ph.call(window,e)),i?(this.matches=i.matches,this.media=i.media,i.addListener(l)):(this.matches=v8(e,t),this.media=e),this.addListener=s,this.removeListener=o,this.dispose=a;function s(u){i&&i.addListener(u)}function o(u){i&&i.removeListener(u)}function l(u){r.matches=u.matches,r.media=u.media}function a(){i&&i.removeListener(l)}}function C8(e,t,n){return new w8(e,t,n)}var x8=C8;const S8=zl(x8);var k8=/[A-Z]/g,E8=/^ms-/,Ba={};function N8(e){return"-"+e.toLowerCase()}function Bp(e){if(Ba.hasOwnProperty(e))return Ba[e];var t=e.replace(k8,N8);return Ba[e]=E8.test(t)?"-"+t:t}function L8(e,t){if(e===t)return!0;if(!e||!t)return!1;const n=Object.keys(e),r=Object.keys(t),i=n.length;if(r.length!==i)return!1;for(let s=0;s`not ${e}`,M8=(e,t)=>{const n=Bp(e);return typeof t=="number"&&(t=`${t}px`),t===!0?n:t===!1?D8(n):`(${n}: ${t})`},b8=e=>e.join(" and "),U8=e=>{const t=[];return Object.keys(_8.all).forEach(n=>{const r=e[n];r!=null&&t.push(M8(n,r))}),b8(t)},A8=T.createContext(void 0),z8=e=>e.query||U8(e),mh=e=>e?Object.keys(e).reduce((n,r)=>(n[Bp(r)]=e[r],n),{}):void 0,Jp=()=>{const e=T.useRef(!1);return T.useEffect(()=>{e.current=!0},[]),e.current},B8=e=>{const t=T.useContext(A8),n=()=>mh(e)||mh(t),[r,i]=T.useState(n);return T.useEffect(()=>{const s=n();L8(r,s)||i(s)},[e,t]),r},V8=e=>{const t=()=>z8(e),[n,r]=T.useState(t);return T.useEffect(()=>{const i=t();n!==i&&r(i)},[e]),n},H8=(e,t)=>{const n=()=>S8(e,t||{},!!t),[r,i]=T.useState(n),s=Jp();return T.useEffect(()=>{if(s){const o=n();return i(o),()=>{o&&o.dispose()}}},[e,t]),r},$8=e=>{const[t,n]=T.useState(e.matches);return T.useEffect(()=>{const r=i=>{n(i.matches)};return e.addListener(r),n(e.matches),()=>{e.removeListener(r)}},[e]),t},ao=(e,t,n)=>{const r=B8(t),i=V8(e);if(!i)throw new Error("Invalid or missing MediaQuery!");const s=H8(i,r),o=$8(s),l=Jp();return T.useEffect(()=>{l&&n&&n(o)},[o]),T.useEffect(()=>()=>{s&&s.dispose()},[]),o};function Q8({children:e}){return ao({maxWidth:"640px"})?e:null}function W8({children:e}){return ao({minWidth:"640px",maxWidth:"1024px"})?e:null}function J8({children:e}){return ao({minWidth:"1024px"})?e:null}function Qs({children:e}){return ao({maxWidth:"640px"})?e:null}function Ws({children:e}){return ao({minWidth:"640px"})?e:null}const K8=T.createContext({set:()=>{},reset:()=>{}});function Z8(){let e=Ji(),[t,n]=T.useState(null),r={set:i=>{n(i)},reset:()=>{n(null)}};return w.jsx(w.Fragment,{children:w.jsxs(K8.Provider,{value:r,children:[w.jsx(Q8,{children:w.jsxs("section",{className:"h-dvh w-dvw bg-gray-50",children:[w.jsx("section",{className:"h-full w-full px-sm pt-sm",children:w.jsx(za,{})}),w.jsx("section",{className:"absolute bottom-0 w-full p-sm",children:w.jsx("nav",{className:"w-full rounded-sm bg-gray-120 px-md py-sm",children:w.jsxs("ul",{className:"flex flex-row justify-between",children:[w.jsx("li",{children:w.jsx(qr,{to:"/home","aria-label":"Switch to home page",children:w.jsx(ah,{className:e.pathname.startsWith("/home")?"fill-primary":"fill-gray-830"})})}),w.jsx("li",{children:w.jsx(qr,{to:"/media","aria-label":"Switch to media page",children:w.jsx(uh,{className:e.pathname.startsWith("/media")?"fill-primary":"fill-gray-830"})})})]})})})]})}),w.jsx(W8,{children:w.jsxs("section",{className:"grid h-dvh w-dvw grid-cols-[auto_1fr] bg-gray-50 p-sm",children:[w.jsxs("section",{className:"flex h-full flex-col items-center justify-between rounded-sm bg-gray-120 px-xs py-xl",children:[w.jsx("h1",{className:"text-lg text-gray-830",children:"S"}),w.jsx("div",{className:"h-[8rem] w-fit rounded-sm bg-gray-190 pt-lg",children:w.jsx("div",{className:"h-full w-xs rounded-sm bg-primary"})}),w.jsx("nav",{children:w.jsxs("ul",{className:"flex flex-col items-center justify-between gap-sm",children:[w.jsx("li",{children:w.jsx(qr,{to:"/home","aria-label":"Switch to home page",children:w.jsx(ah,{className:e.pathname.startsWith("/home")?"fill-primary":"fill-gray-830"})})}),w.jsx("li",{children:w.jsx(qr,{to:"/media","aria-label":"Switch to media page",children:w.jsx(uh,{className:e.pathname.startsWith("/media")?"fill-primary":"fill-gray-830"})})})]})}),w.jsx(c8,{})]}),w.jsx("section",{className:"overflow-hidden",children:w.jsx(za,{})})]})}),w.jsx(J8,{children:w.jsxs("section",{className:"grid h-dvh w-dvw grid-cols-[16rem_1fr] bg-gray-50 p-sm",children:[w.jsxs("section",{className:"flex h-full flex-col justify-between rounded-sm bg-gray-120 p-xl",children:[w.jsx("h1",{className:"text-center text-lg text-gray-830",children:"Subtle"}),w.jsxs("div",{className:"w-fill relative flex aspect-square items-center justify-center",children:[w.jsx("svg",{viewBox:"0 0 240 240",className:"aspect-square w-full stroke-primary",children:w.jsx("circle",{cx:"120",cy:"120",r:"104",strokeWidth:"16",fill:"none",strokeLinecap:"round",strokeDasharray:"654",strokeDashoffset:"100",transform:"rotate(90 120 120)"})}),w.jsx("p",{className:"absolute text-md text-gray-830",children:"83%"}),w.jsx("div",{className:"bg-primary"})]}),w.jsx("nav",{className:"",children:w.jsxs("ul",{className:"flex flex-col justify-between gap-sm",children:[w.jsx("li",{children:w.jsx(qr,{to:"/home",className:"text-sm "+(e.pathname.startsWith("/home")?"text-primary":"text-gray-830"),children:"Home"})}),w.jsx("li",{children:w.jsx(qr,{to:"/media",className:"text-sm "+(e.pathname.startsWith("/media")?"text-primary":"text-gray-830"),children:"Media"})})]})}),w.jsx("div",{className:"outline-sm flex aspect-[3/4] w-full flex-col items-center justify-center rounded-sm outline-dashed outline-gray-190",children:w.jsx(f8,{})})]}),w.jsx("section",{className:"overflow-hidden",children:w.jsx(za,{})})]})}),t&&w.jsx("section",{className:"absolute bottom-0 left-0 right-0 top-0 flex items-center justify-center bg-gray-50 bg-opacity-75",children:w.jsxs("div",{className:"relative h-3/4 w-3/4 rounded-xs bg-gray-80 p-sm",children:[w.jsx("button",{className:"absolute right-sm top-sm",onClick:()=>n(null),children:w.jsx(u8,{className:"fill-gray-190"})}),t]})})]})})}function G8(){return w.jsx("div",{children:"Home"})}const Kp=T.createContext({}),uo=()=>T.useContext(Kp);function Ie(e,t){if(!e)throw new Error(t)}const q8=34028234663852886e22,X8=-34028234663852886e22,Y8=4294967295,ey=2147483647,ty=-2147483648;function il(e){if(typeof e!="number")throw new Error("invalid int 32: "+typeof e);if(!Number.isInteger(e)||e>ey||eY8||e<0)throw new Error("invalid uint 32: "+e)}function Zp(e){if(typeof e!="number")throw new Error("invalid float 32: "+typeof e);if(Number.isFinite(e)&&(e>q8||e({no:i.no,name:i.name,localName:e[i.no]})))}function Xp(e,t,n){const r=Object.create(null),i=Object.create(null),s=[];for(const o of t){const l=Yp(o);s.push(l),r[o.name]=l,i[o.no]=l}return{typeName:e,values:s,findName(o){return r[o]},findNumber(o){return i[o]}}}function ry(e,t,n){const r={};for(const i of t){const s=Yp(i);r[s.localName]=s.no,r[s.no]=s.localName}return qp(r,e,t),r}function Yp(e){return"localName"in e?e:Object.assign(Object.assign({},e),{localName:e.name})}class jt{equals(t){return this.getType().runtime.util.equals(this.getType(),this,t)}clone(){return this.getType().runtime.util.clone(this)}fromBinary(t,n){const r=this.getType(),i=r.runtime.bin,s=i.makeReadOptions(n);return i.readMessage(this,s.readerFactory(t),t.byteLength,s),this}fromJson(t,n){const r=this.getType(),i=r.runtime.json,s=i.makeReadOptions(n);return i.readMessage(r,t,s,this),this}fromJsonString(t,n){let r;try{r=JSON.parse(t)}catch(i){throw new Error(`cannot decode ${this.getType().typeName} from JSON: ${i instanceof Error?i.message:String(i)}`)}return this.fromJson(r,n)}toBinary(t){const n=this.getType(),r=n.runtime.bin,i=r.makeWriteOptions(t),s=i.writerFactory();return r.writeMessage(this,s,i),s.finish()}toJson(t){const n=this.getType(),r=n.runtime.json,i=r.makeWriteOptions(t);return r.writeMessage(this,i)}toJsonString(t){var n;const r=this.toJson(t);return JSON.stringify(r,null,(n=t==null?void 0:t.prettySpaces)!==null&&n!==void 0?n:0)}toJSON(){return this.toJson({emitDefaultValues:!0})}getType(){return Object.getPrototypeOf(this).constructor}}function iy(e,t,n,r){var i;const s=(i=r==null?void 0:r.localName)!==null&&i!==void 0?i:t.substring(t.lastIndexOf(".")+1),o={[s]:function(l){e.util.initFields(this),e.util.initPartial(l,this)}}[s];return Object.setPrototypeOf(o.prototype,new jt),Object.assign(o,{runtime:e,typeName:t,fields:e.util.newFieldList(n),fromBinary(l,a){return new o().fromBinary(l,a)},fromJson(l,a){return new o().fromJson(l,a)},fromJsonString(l,a){return new o().fromJsonString(l,a)},equals(l,a){return e.util.equals(o,l,a)}}),o}function sy(){let e=0,t=0;for(let r=0;r<28;r+=7){let i=this.buf[this.pos++];if(e|=(i&127)<>4,!(n&128))return this.assertBounds(),[e,t];for(let r=3;r<=31;r+=7){let i=this.buf[this.pos++];if(t|=(i&127)<>>s,l=!(!(o>>>7)&&t==0),a=(l?o|128:o)&255;if(n.push(a),!l)return}const r=e>>>28&15|(t&7)<<4,i=!!(t>>3);if(n.push((i?r|128:r)&255),!!i){for(let s=3;s<31;s=s+7){const o=t>>>s,l=!!(o>>>7),a=(l?o|128:o)&255;if(n.push(a),!l)return}n.push(t>>>31&1)}}const sl=4294967296;function yh(e){const t=e[0]==="-";t&&(e=e.slice(1));const n=1e6;let r=0,i=0;function s(o,l){const a=Number(e.slice(o,l));i*=n,r=r*n+a,r>=sl&&(i=i+(r/sl|0),r=r%sl)}return s(-24,-18),s(-18,-12),s(-12,-6),s(-6),t?t2(r,i):hf(r,i)}function oy(e,t){let n=hf(e,t);const r=n.hi&2147483648;r&&(n=t2(n.lo,n.hi));const i=e2(n.lo,n.hi);return r?"-"+i:i}function e2(e,t){if({lo:e,hi:t}=ly(e,t),t<=2097151)return String(sl*t+e);const n=e&16777215,r=(e>>>24|t<<8)&16777215,i=t>>16&65535;let s=n+r*6777216+i*6710656,o=r+i*8147497,l=i*2;const a=1e7;return s>=a&&(o+=Math.floor(s/a),s%=a),o>=a&&(l+=Math.floor(o/a),o%=a),l.toString()+gh(o)+gh(s)}function ly(e,t){return{lo:e>>>0,hi:t>>>0}}function hf(e,t){return{lo:e|0,hi:t|0}}function t2(e,t){return t=~t,e?e=~e+1:t+=1,hf(e,t)}const gh=e=>{const t=String(e);return"0000000".slice(t.length)+t};function vh(e,t){if(e>=0){for(;e>127;)t.push(e&127|128),e=e>>>7;t.push(e)}else{for(let n=0;n<9;n++)t.push(e&127|128),e=e>>7;t.push(1)}}function ay(){let e=this.buf[this.pos++],t=e&127;if(!(e&128))return this.assertBounds(),t;if(e=this.buf[this.pos++],t|=(e&127)<<7,!(e&128))return this.assertBounds(),t;if(e=this.buf[this.pos++],t|=(e&127)<<14,!(e&128))return this.assertBounds(),t;if(e=this.buf[this.pos++],t|=(e&127)<<21,!(e&128))return this.assertBounds(),t;e=this.buf[this.pos++],t|=(e&15)<<28;for(let n=5;e&128&&n<10;n++)e=this.buf[this.pos++];if(e&128)throw new Error("invalid varint");return this.assertBounds(),t>>>0}var wh={};function uy(){const e=new DataView(new ArrayBuffer(8));if(typeof BigInt=="function"&&typeof e.getBigInt64=="function"&&typeof e.getBigUint64=="function"&&typeof e.setBigInt64=="function"&&typeof e.setBigUint64=="function"&&(typeof process!="object"||typeof wh!="object"||wh.BUF_BIGINT_DISABLE!=="1")){const i=BigInt("-9223372036854775808"),s=BigInt("9223372036854775807"),o=BigInt("0"),l=BigInt("18446744073709551615");return{zero:BigInt(0),supported:!0,parse(a){const u=typeof a=="bigint"?a:BigInt(a);if(u>s||ul||uIe(/^-?[0-9]+$/.test(i),`int64 invalid: ${i}`),r=i=>Ie(/^[0-9]+$/.test(i),`uint64 invalid: ${i}`);return{zero:"0",supported:!1,parse(i){return typeof i!="string"&&(i=i.toString()),n(i),i},uParse(i){return typeof i!="string"&&(i=i.toString()),r(i),i},enc(i){return typeof i!="string"&&(i=i.toString()),n(i),yh(i)},uEnc(i){return typeof i!="string"&&(i=i.toString()),r(i),yh(i)},dec(i,s){return oy(i,s)},uDec(i,s){return e2(i,s)}}}const vt=uy();var P;(function(e){e[e.DOUBLE=1]="DOUBLE",e[e.FLOAT=2]="FLOAT",e[e.INT64=3]="INT64",e[e.UINT64=4]="UINT64",e[e.INT32=5]="INT32",e[e.FIXED64=6]="FIXED64",e[e.FIXED32=7]="FIXED32",e[e.BOOL=8]="BOOL",e[e.STRING=9]="STRING",e[e.BYTES=12]="BYTES",e[e.UINT32=13]="UINT32",e[e.SFIXED32=15]="SFIXED32",e[e.SFIXED64=16]="SFIXED64",e[e.SINT32=17]="SINT32",e[e.SINT64=18]="SINT64"})(P||(P={}));var cr;(function(e){e[e.BIGINT=0]="BIGINT",e[e.STRING=1]="STRING"})(cr||(cr={}));function bn(e,t,n){if(t===n)return!0;if(e==P.BYTES){if(!(t instanceof Uint8Array)||!(n instanceof Uint8Array)||t.length!==n.length)return!1;for(let r=0;r>>0)}raw(t){return this.buf.length&&(this.chunks.push(new Uint8Array(this.buf)),this.buf=[]),this.chunks.push(t),this}uint32(t){for(Hu(t);t>127;)this.buf.push(t&127|128),t=t>>>7;return this.buf.push(t),this}int32(t){return il(t),vh(t,this.buf),this}bool(t){return this.buf.push(t?1:0),this}bytes(t){return this.uint32(t.byteLength),this.raw(t)}string(t){let n=this.textEncoder.encode(t);return this.uint32(n.byteLength),this.raw(n)}float(t){Zp(t);let n=new Uint8Array(4);return new DataView(n.buffer).setFloat32(0,t,!0),this.raw(n)}double(t){let n=new Uint8Array(8);return new DataView(n.buffer).setFloat64(0,t,!0),this.raw(n)}fixed32(t){Hu(t);let n=new Uint8Array(4);return new DataView(n.buffer).setUint32(0,t,!0),this.raw(n)}sfixed32(t){il(t);let n=new Uint8Array(4);return new DataView(n.buffer).setInt32(0,t,!0),this.raw(n)}sint32(t){return il(t),t=(t<<1^t>>31)>>>0,vh(t,this.buf),this}sfixed64(t){let n=new Uint8Array(8),r=new DataView(n.buffer),i=vt.enc(t);return r.setInt32(0,i.lo,!0),r.setInt32(4,i.hi,!0),this.raw(n)}fixed64(t){let n=new Uint8Array(8),r=new DataView(n.buffer),i=vt.uEnc(t);return r.setInt32(0,i.lo,!0),r.setInt32(4,i.hi,!0),this.raw(n)}int64(t){let n=vt.enc(t);return Va(n.lo,n.hi,this.buf),this}sint64(t){let n=vt.enc(t),r=n.hi>>31,i=n.lo<<1^r,s=(n.hi<<1|n.lo>>>31)^r;return Va(i,s,this.buf),this}uint64(t){let n=vt.uEnc(t);return Va(n.lo,n.hi,this.buf),this}}class fy{constructor(t,n){this.varint64=sy,this.uint32=ay,this.buf=t,this.len=t.length,this.pos=0,this.view=new DataView(t.buffer,t.byteOffset,t.byteLength),this.textDecoder=n??new TextDecoder}tag(){let t=this.uint32(),n=t>>>3,r=t&7;if(n<=0||r<0||r>5)throw new Error("illegal tag: field no "+n+" wire type "+r);return[n,r]}skip(t,n){let r=this.pos;switch(t){case Oe.Varint:for(;this.buf[this.pos++]&128;);break;case Oe.Bit64:this.pos+=4;case Oe.Bit32:this.pos+=4;break;case Oe.LengthDelimited:let i=this.uint32();this.pos+=i;break;case Oe.StartGroup:for(;;){const[s,o]=this.tag();if(o===Oe.EndGroup){if(n!==void 0&&s!==n)throw new Error("invalid end group tag");break}this.skip(o,s)}break;default:throw new Error("cant skip wire type "+t)}return this.assertBounds(),this.buf.subarray(r,this.pos)}assertBounds(){if(this.pos>this.len)throw new RangeError("premature EOF")}int32(){return this.uint32()|0}sint32(){let t=this.uint32();return t>>>1^-(t&1)}int64(){return vt.dec(...this.varint64())}uint64(){return vt.uDec(...this.varint64())}sint64(){let[t,n]=this.varint64(),r=-(t&1);return t=(t>>>1|(n&1)<<31)^r,n=n>>>1^r,vt.dec(t,n)}bool(){let[t,n]=this.varint64();return t!==0||n!==0}fixed32(){return this.view.getUint32((this.pos+=4)-4,!0)}sfixed32(){return this.view.getInt32((this.pos+=4)-4,!0)}fixed64(){return vt.uDec(this.sfixed32(),this.sfixed32())}sfixed64(){return vt.dec(this.sfixed32(),this.sfixed32())}float(){return this.view.getFloat32((this.pos+=4)-4,!0)}double(){return this.view.getFloat64((this.pos+=8)-8,!0)}bytes(){let t=this.uint32(),n=this.pos;return this.pos+=t,this.assertBounds(),this.buf.subarray(n,n+t)}string(){return this.textDecoder.decode(this.bytes())}}function dy(e,t,n,r){let i;return{typeName:t,extendee:n,get field(){if(!i){const s=typeof r=="function"?r():r;s.name=t.split(".").pop(),s.jsonName=`[${t}]`,i=e.util.newFieldList([s]).list()[0]}return i},runtime:e}}function r2(e){const t=e.field.localName,n=Object.create(null);return n[t]=hy(e),[n,()=>n[t]]}function hy(e){const t=e.field;if(t.repeated)return[];if(t.default!==void 0)return t.default;switch(t.kind){case"enum":return t.T.values[0].no;case"scalar":return zi(t.T,t.L);case"message":const n=t.T,r=new n;return n.fieldWrapper?n.fieldWrapper.unwrapField(r):r;case"map":throw"map fields are not allowed to be extensions"}}function py(e,t){if(!t.repeated&&(t.kind=="enum"||t.kind=="scalar")){for(let n=e.length-1;n>=0;--n)if(e[n].no==t.no)return[e[n]];return[]}return e.filter(n=>n.no===t.no)}let xn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),oa=[];for(let e=0;e>4,o=s,i=2;break;case 2:n[r++]=(o&15)<<4|(s&60)>>2,o=s,i=3;break;case 3:n[r++]=(o&3)<<6|s,i=0;break}}if(i==1)throw Error("invalid base64 string.");return n.subarray(0,r)},enc(e){let t="",n=0,r,i=0;for(let s=0;s>2],i=(r&3)<<4,n=1;break;case 1:t+=xn[i|r>>4],i=(r&15)<<2,n=2;break;case 2:t+=xn[i|r>>6],t+=xn[r&63],n=0;break}return n&&(t+=xn[i],t+="=",n==1&&(t+="=")),t}};function my(e,t,n){s2(t,e);const r=t.runtime.bin.makeReadOptions(n),i=py(e.getType().runtime.bin.listUnknownFields(e),t.field),[s,o]=r2(t);for(const l of i)t.runtime.bin.readField(s,r.readerFactory(l.data),t.field,l.wireType,r);return o()}function yy(e,t,n,r){s2(t,e);const i=t.runtime.bin.makeReadOptions(r),s=t.runtime.bin.makeWriteOptions(r);if(i2(e,t)){const u=e.getType().runtime.bin.listUnknownFields(e).filter(c=>c.no!=t.field.no);e.getType().runtime.bin.discardUnknownFields(e);for(const c of u)e.getType().runtime.bin.onUnknownField(e,c.no,c.wireType,c.data)}const o=s.writerFactory();let l=t.field;!l.opt&&!l.repeated&&(l.kind=="enum"||l.kind=="scalar")&&(l=Object.assign(Object.assign({},t.field),{opt:!0})),t.runtime.bin.writeField(l,n,o,s);const a=i.readerFactory(o.finish());for(;a.posr.no==t.field.no)}function s2(e,t){Ie(e.extendee.typeName==t.getType().typeName,`extension ${e.typeName} can only be applied to message ${e.extendee.typeName}`)}function o2(e,t){const n=e.localName;if(e.repeated)return t[n].length>0;if(e.oneof)return t[e.oneof.localName].case===n;switch(e.kind){case"enum":case"scalar":return e.opt||e.req?t[n]!==void 0:e.kind=="enum"?t[n]!==e.T.values[0].no:!n2(e.T,t[n]);case"message":return t[n]!==void 0;case"map":return Object.keys(t[n]).length>0}}function Ch(e,t){const n=e.localName,r=!e.opt&&!e.req;if(e.repeated)t[n]=[];else if(e.oneof)t[e.oneof.localName]={case:void 0};else switch(e.kind){case"map":t[n]={};break;case"enum":t[n]=r?e.T.values[0].no:void 0;break;case"scalar":t[n]=r?zi(e.T,e.L):void 0;break;case"message":t[n]=void 0;break}}function Mr(e,t){if(e===null||typeof e!="object"||!Object.getOwnPropertyNames(jt.prototype).every(r=>r in e&&typeof e[r]=="function"))return!1;const n=e.getType();return n===null||typeof n!="function"||!("typeName"in n)||typeof n.typeName!="string"?!1:t===void 0?!0:n.typeName==t.typeName}function l2(e,t){return Mr(t)||!e.fieldWrapper?t:e.fieldWrapper.wrapField(t)}P.DOUBLE,P.FLOAT,P.INT64,P.UINT64,P.INT32,P.UINT32,P.BOOL,P.STRING,P.BYTES;const xh={ignoreUnknownFields:!1},Sh={emitDefaultValues:!1,enumAsInteger:!1,useProtoFieldName:!1,prettySpaces:0};function gy(e){return e?Object.assign(Object.assign({},xh),e):xh}function vy(e){return e?Object.assign(Object.assign({},Sh),e):Sh}const Ml=Symbol(),ol=Symbol();function wy(){return{makeReadOptions:gy,makeWriteOptions:vy,readMessage(e,t,n,r){if(t==null||Array.isArray(t)||typeof t!="object")throw new Error(`cannot decode message ${e.typeName} from JSON: ${Kt(t)}`);r=r??new e;const i=new Map,s=n.typeRegistry;for(const[o,l]of Object.entries(t)){const a=e.fields.findJsonName(o);if(a){if(a.oneof){if(l===null&&a.kind=="scalar")continue;const u=i.get(a.oneof);if(u!==void 0)throw new Error(`cannot decode message ${e.typeName} from JSON: multiple keys for oneof "${a.oneof.name}" present: "${u}", "${o}"`);i.set(a.oneof,o)}kh(r,l,a,n,e)}else{let u=!1;if(s!=null&&s.findExtension&&o.startsWith("[")&&o.endsWith("]")){const c=s.findExtension(o.substring(1,o.length-1));if(c&&c.extendee.typeName==e.typeName){u=!0;const[f,d]=r2(c);kh(f,l,c.field,n,c),yy(r,c,d(),n)}}if(!u&&!n.ignoreUnknownFields)throw new Error(`cannot decode message ${e.typeName} from JSON: key "${o}" is unknown`)}}return r},writeMessage(e,t){const n=e.getType(),r={};let i;try{for(i of n.fields.byNumber()){if(!o2(i,e)){if(i.req)throw"required field not set";if(!t.emitDefaultValues||!xy(i))continue}const o=i.oneof?e[i.oneof.localName].value:e[i.localName],l=Eh(i,o,t);l!==void 0&&(r[t.useProtoFieldName?i.name:i.jsonName]=l)}const s=t.typeRegistry;if(s!=null&&s.findExtensionFor)for(const o of n.runtime.bin.listUnknownFields(e)){const l=s.findExtensionFor(n.typeName,o.no);if(l&&i2(e,l)){const a=my(e,l,t),u=Eh(l.field,a,t);u!==void 0&&(r[l.field.jsonName]=u)}}}catch(s){const o=i?`cannot encode field ${n.typeName}.${i.name} to JSON`:`cannot encode message ${n.typeName} to JSON`,l=s instanceof Error?s.message:String(s);throw new Error(o+(l.length>0?`: ${l}`:""))}return r},readScalar(e,t,n){return ks(e,t,n??cr.BIGINT,!0)},writeScalar(e,t,n){if(t!==void 0&&(n||n2(e,t)))return ll(e,t)},debug:Kt}}function Kt(e){if(e===null)return"null";switch(typeof e){case"object":return Array.isArray(e)?"array":"object";case"string":return e.length>100?"string":`"${e.split('"').join('\\"')}"`;default:return String(e)}}function kh(e,t,n,r,i){let s=n.localName;if(n.repeated){if(Ie(n.kind!="map"),t===null)return;if(!Array.isArray(t))throw new Error(`cannot decode field ${i.typeName}.${n.name} from JSON: ${Kt(t)}`);const o=e[s];for(const l of t){if(l===null)throw new Error(`cannot decode field ${i.typeName}.${n.name} from JSON: ${Kt(l)}`);switch(n.kind){case"message":o.push(n.T.fromJson(l,r));break;case"enum":const a=Ha(n.T,l,r.ignoreUnknownFields,!0);a!==ol&&o.push(a);break;case"scalar":try{o.push(ks(n.T,l,n.L,!0))}catch(u){let c=`cannot decode field ${i.typeName}.${n.name} from JSON: ${Kt(l)}`;throw u instanceof Error&&u.message.length>0&&(c+=`: ${u.message}`),new Error(c)}break}}}else if(n.kind=="map"){if(t===null)return;if(typeof t!="object"||Array.isArray(t))throw new Error(`cannot decode field ${i.typeName}.${n.name} from JSON: ${Kt(t)}`);const o=e[s];for(const[l,a]of Object.entries(t)){if(a===null)throw new Error(`cannot decode field ${i.typeName}.${n.name} from JSON: map value null`);let u;try{u=Cy(n.K,l)}catch(c){let f=`cannot decode map key for field ${i.typeName}.${n.name} from JSON: ${Kt(t)}`;throw c instanceof Error&&c.message.length>0&&(f+=`: ${c.message}`),new Error(f)}switch(n.V.kind){case"message":o[u]=n.V.T.fromJson(a,r);break;case"enum":const c=Ha(n.V.T,a,r.ignoreUnknownFields,!0);c!==ol&&(o[u]=c);break;case"scalar":try{o[u]=ks(n.V.T,a,cr.BIGINT,!0)}catch(f){let d=`cannot decode map value for field ${i.typeName}.${n.name} from JSON: ${Kt(t)}`;throw f instanceof Error&&f.message.length>0&&(d+=`: ${f.message}`),new Error(d)}break}}}else switch(n.oneof&&(e=e[n.oneof.localName]={case:s},s="value"),n.kind){case"message":const o=n.T;if(t===null&&o.typeName!="google.protobuf.Value")return;let l=e[s];Mr(l)?l.fromJson(t,r):(e[s]=l=o.fromJson(t,r),o.fieldWrapper&&!n.oneof&&(e[s]=o.fieldWrapper.unwrapField(l)));break;case"enum":const a=Ha(n.T,t,r.ignoreUnknownFields,!1);switch(a){case Ml:Ch(n,e);break;case ol:break;default:e[s]=a;break}break;case"scalar":try{const u=ks(n.T,t,n.L,!1);switch(u){case Ml:Ch(n,e);break;default:e[s]=u;break}}catch(u){let c=`cannot decode field ${i.typeName}.${n.name} from JSON: ${Kt(t)}`;throw u instanceof Error&&u.message.length>0&&(c+=`: ${u.message}`),new Error(c)}break}}function Cy(e,t){if(e===P.BOOL)switch(t){case"true":t=!0;break;case"false":t=!1;break}return ks(e,t,cr.BIGINT,!0).toString()}function ks(e,t,n,r){if(t===null)return r?zi(e,n):Ml;switch(e){case P.DOUBLE:case P.FLOAT:if(t==="NaN")return Number.NaN;if(t==="Infinity")return Number.POSITIVE_INFINITY;if(t==="-Infinity")return Number.NEGATIVE_INFINITY;if(t===""||typeof t=="string"&&t.trim().length!==t.length||typeof t!="string"&&typeof t!="number")break;const i=Number(t);if(Number.isNaN(i)||!Number.isFinite(i))break;return e==P.FLOAT&&Zp(i),i;case P.INT32:case P.FIXED32:case P.SFIXED32:case P.SINT32:case P.UINT32:let s;if(typeof t=="number"?s=t:typeof t=="string"&&t.length>0&&t.trim().length===t.length&&(s=Number(t)),s===void 0)break;return e==P.UINT32||e==P.FIXED32?Hu(s):il(s),s;case P.INT64:case P.SFIXED64:case P.SINT64:if(typeof t!="number"&&typeof t!="string")break;const o=vt.parse(t);return n?o.toString():o;case P.FIXED64:case P.UINT64:if(typeof t!="number"&&typeof t!="string")break;const l=vt.uParse(t);return n?l.toString():l;case P.BOOL:if(typeof t!="boolean")break;return t;case P.STRING:if(typeof t!="string")break;try{encodeURIComponent(t)}catch{throw new Error("invalid UTF8")}return t;case P.BYTES:if(t==="")return new Uint8Array(0);if(typeof t!="string")break;return pf.dec(t)}throw new Error}function Ha(e,t,n,r){if(t===null)return e.typeName=="google.protobuf.NullValue"?0:r?e.values[0].no:Ml;switch(typeof t){case"number":if(Number.isInteger(t))return t;break;case"string":const i=e.findName(t);if(i!==void 0)return i.no;if(n)return ol;break}throw new Error(`cannot decode enum ${e.typeName} from JSON: ${Kt(t)}`)}function xy(e){return e.repeated||e.kind=="map"?!0:!(e.oneof||e.kind=="message"||e.opt||e.req)}function Eh(e,t,n){if(e.kind=="map"){Ie(typeof t=="object"&&t!=null);const r={},i=Object.entries(t);switch(e.V.kind){case"scalar":for(const[o,l]of i)r[o.toString()]=ll(e.V.T,l);break;case"message":for(const[o,l]of i)r[o.toString()]=l.toJson(n);break;case"enum":const s=e.V.T;for(const[o,l]of i)r[o.toString()]=$a(s,l,n.enumAsInteger);break}return n.emitDefaultValues||i.length>0?r:void 0}if(e.repeated){Ie(Array.isArray(t));const r=[];switch(e.kind){case"scalar":for(let i=0;i0?r:void 0}switch(e.kind){case"scalar":return ll(e.T,t);case"enum":return $a(e.T,t,n.enumAsInteger);case"message":return l2(e.T,t).toJson(n)}}function $a(e,t,n){var r;if(Ie(typeof t=="number"),e.typeName=="google.protobuf.NullValue")return null;if(n)return t;const i=e.findNumber(t);return(r=i==null?void 0:i.name)!==null&&r!==void 0?r:t}function ll(e,t){switch(e){case P.INT32:case P.SFIXED32:case P.SINT32:case P.FIXED32:case P.UINT32:return Ie(typeof t=="number"),t;case P.FLOAT:case P.DOUBLE:return Ie(typeof t=="number"),Number.isNaN(t)?"NaN":t===Number.POSITIVE_INFINITY?"Infinity":t===Number.NEGATIVE_INFINITY?"-Infinity":t;case P.STRING:return Ie(typeof t=="string"),t;case P.BOOL:return Ie(typeof t=="boolean"),t;case P.UINT64:case P.FIXED64:case P.INT64:case P.SFIXED64:case P.SINT64:return Ie(typeof t=="bigint"||typeof t=="string"||typeof t=="number"),t.toString();case P.BYTES:return Ie(t instanceof Uint8Array),pf.enc(t)}}const Xr=Symbol("@bufbuild/protobuf/unknown-fields"),Nh={readUnknownFields:!0,readerFactory:e=>new fy(e)},Lh={writeUnknownFields:!0,writerFactory:()=>new cy};function Sy(e){return e?Object.assign(Object.assign({},Nh),e):Nh}function ky(e){return e?Object.assign(Object.assign({},Lh),e):Lh}function Ey(){return{makeReadOptions:Sy,makeWriteOptions:ky,listUnknownFields(e){var t;return(t=e[Xr])!==null&&t!==void 0?t:[]},discardUnknownFields(e){delete e[Xr]},writeUnknownFields(e,t){const r=e[Xr];if(r)for(const i of r)t.tag(i.no,i.wireType).raw(i.data)},onUnknownField(e,t,n,r){const i=e;Array.isArray(i[Xr])||(i[Xr]=[]),i[Xr].push({no:t,wireType:n,data:r})},readMessage(e,t,n,r,i){const s=e.getType(),o=i?t.len:t.pos+n;let l,a;for(;t.pos0&&(a=Ly),s){let d=e[o];if(r==Oe.LengthDelimited&&l!=P.STRING&&l!=P.BYTES){let x=t.uint32()+t.pos;for(;t.posMr(d,f)?d:new f(d));else{const d=o[i];f.fieldWrapper?f.typeName==="google.protobuf.BytesValue"?s[i]=ls(d):s[i]=d:s[i]=Mr(d,f)?d:new f(d)}break}}},equals(e,t,n){return t===n?!0:!t||!n?!1:e.fields.byMember().every(r=>{const i=t[r.localName],s=n[r.localName];if(r.repeated){if(i.length!==s.length)return!1;switch(r.kind){case"message":return i.every((o,l)=>r.T.equals(o,s[l]));case"scalar":return i.every((o,l)=>bn(r.T,o,s[l]));case"enum":return i.every((o,l)=>bn(P.INT32,o,s[l]))}throw new Error(`repeated cannot contain ${r.kind}`)}switch(r.kind){case"message":return r.T.equals(i,s);case"enum":return bn(P.INT32,i,s);case"scalar":return bn(r.T,i,s);case"oneof":if(i.case!==s.case)return!1;const o=r.findField(i.case);if(o===void 0)return!0;switch(o.kind){case"message":return o.T.equals(i.value,s.value);case"enum":return bn(P.INT32,i.value,s.value);case"scalar":return bn(o.T,i.value,s.value)}throw new Error(`oneof cannot contain ${o.kind}`);case"map":const l=Object.keys(i).concat(Object.keys(s));switch(r.V.kind){case"message":const a=r.V.T;return l.every(c=>a.equals(i[c],s[c]));case"enum":return l.every(c=>bn(P.INT32,i[c],s[c]));case"scalar":const u=r.V.T;return l.every(c=>bn(u,i[c],s[c]))}break}})},clone(e){const t=e.getType(),n=new t,r=n;for(const i of t.fields.byMember()){const s=e[i.localName];let o;if(i.repeated)o=s.map(Ho);else if(i.kind=="map"){o=r[i.localName];for(const[l,a]of Object.entries(s))o[l]=Ho(a)}else i.kind=="oneof"?o=i.findField(s.case)?{case:s.case,value:Ho(s.value)}:{case:void 0}:o=Ho(s);r[i.localName]=o}for(const i of t.runtime.bin.listUnknownFields(e))t.runtime.bin.onUnknownField(r,i.no,i.wireType,i.data);return n}}}function Ho(e){if(e===void 0)return e;if(Mr(e))return e.clone();if(e instanceof Uint8Array){const t=new Uint8Array(e.byteLength);return t.set(e),t}return e}function ls(e){return e instanceof Uint8Array?e:new Uint8Array(e)}function Ry(e,t,n){return{syntax:e,json:wy(),bin:Ey(),util:Object.assign(Object.assign({},Iy()),{newFieldList:t,initFields:n}),makeMessageType(r,i,s){return iy(this,r,i,s)},makeEnum:ry,makeEnumType:Xp,getEnumType:ny,makeExtension(r,i,s){return dy(this,r,i,s)}}}class Oy{constructor(t,n){this._fields=t,this._normalizer=n}findJsonName(t){if(!this.jsonNames){const n={};for(const r of this.list())n[r.jsonName]=n[r.name]=r;this.jsonNames=n}return this.jsonNames[t]}find(t){if(!this.numbers){const n={};for(const r of this.list())n[r.no]=r;this.numbers=n}return this.numbers[t]}list(){return this.all||(this.all=this._normalizer(this._fields)),this.all}byNumber(){return this.numbersAsc||(this.numbersAsc=this.list().concat().sort((t,n)=>t.no-n.no)),this.numbersAsc}byMember(){if(!this.members){this.members=[];const t=this.members;let n;for(const r of this.list())r.oneof?r.oneof!==n&&(n=r.oneof,t.push(n)):t.push(r)}return this.members}}function u2(e,t){const n=c2(e);return t?n:by(My(n))}function Fy(e){return u2(e,!1)}const jy=c2;function c2(e){let t=!1;const n=[];for(let r=0;r`${e}$`,My=e=>Dy.has(e)?f2(e):e,by=e=>_y.has(e)?f2(e):e;class Uy{constructor(t){this.kind="oneof",this.repeated=!1,this.packed=!1,this.opt=!1,this.req=!1,this.default=void 0,this.fields=[],this.name=t,this.localName=Fy(t)}addField(t){Ie(t.oneof===this,`field ${t.name} not one of ${this.name}`),this.fields.push(t)}findField(t){if(!this._lookup){this._lookup=Object.create(null);for(let n=0;nnew Oy(e,t=>Ay(t)),e=>{for(const t of e.getType().fields.byMember()){if(t.opt)continue;const n=t.localName,r=e;if(t.repeated){r[n]=[];continue}switch(t.kind){case"oneof":r[n]={case:void 0};break;case"enum":r[n]=0;break;case"map":r[n]={};break;case"scalar":r[n]=zi(t.T,t.L);break}}});var tn;(function(e){e[e.Unary=0]="Unary",e[e.ServerStreaming=1]="ServerStreaming",e[e.ClientStreaming=2]="ClientStreaming",e[e.BiDiStreaming=3]="BiDiStreaming"})(tn||(tn={}));var Rh;(function(e){e[e.NoSideEffects=1]="NoSideEffects",e[e.Idempotent=2]="Idempotent"})(Rh||(Rh={}));class en extends jt{constructor(t){super(),this.typeUrl="",this.value=new Uint8Array(0),q.util.initPartial(t,this)}toJson(t){var n;if(this.typeUrl==="")return{};const r=this.typeUrlToName(this.typeUrl),i=(n=t==null?void 0:t.typeRegistry)===null||n===void 0?void 0:n.findMessage(r);if(!i)throw new Error(`cannot encode message google.protobuf.Any to JSON: "${this.typeUrl}" is not in the type registry`);let o=i.fromBinary(this.value).toJson(t);return(r.startsWith("google.protobuf.")||o===null||Array.isArray(o)||typeof o!="object")&&(o={value:o}),o["@type"]=this.typeUrl,o}fromJson(t,n){var r;if(t===null||Array.isArray(t)||typeof t!="object")throw new Error(`cannot decode message google.protobuf.Any from JSON: expected object but got ${t===null?"null":Array.isArray(t)?"array":typeof t}`);if(Object.keys(t).length==0)return this;const i=t["@type"];if(typeof i!="string"||i=="")throw new Error('cannot decode message google.protobuf.Any from JSON: "@type" is empty');const s=this.typeUrlToName(i),o=(r=n==null?void 0:n.typeRegistry)===null||r===void 0?void 0:r.findMessage(s);if(!o)throw new Error(`cannot decode message google.protobuf.Any from JSON: ${i} is not in the type registry`);let l;if(s.startsWith("google.protobuf.")&&Object.prototype.hasOwnProperty.call(t,"value"))l=o.fromJson(t.value,n);else{const a=Object.assign({},t);delete a["@type"],l=o.fromJson(a,n)}return this.packFrom(l),this}packFrom(t){this.value=t.toBinary(),this.typeUrl=this.typeNameToUrl(t.getType().typeName)}unpackTo(t){return this.is(t.getType())?(t.fromBinary(this.value),!0):!1}unpack(t){if(this.typeUrl==="")return;const n=t.findMessage(this.typeUrlToName(this.typeUrl));if(n)return n.fromBinary(this.value)}is(t){if(this.typeUrl==="")return!1;const n=this.typeUrlToName(this.typeUrl);let r="";return typeof t=="string"?r=t:r=t.typeName,n===r}typeNameToUrl(t){return`type.googleapis.com/${t}`}typeUrlToName(t){if(!t.length)throw new Error(`invalid type url: ${t}`);const n=t.lastIndexOf("/"),r=n>=0?t.substring(n+1):t;if(!r.length)throw new Error(`invalid type url: ${t}`);return r}static pack(t){const n=new en;return n.packFrom(t),n}static fromBinary(t,n){return new en().fromBinary(t,n)}static fromJson(t,n){return new en().fromJson(t,n)}static fromJsonString(t,n){return new en().fromJsonString(t,n)}static equals(t,n){return q.util.equals(en,t,n)}}en.runtime=q;en.typeName="google.protobuf.Any";en.fields=q.util.newFieldList(()=>[{no:1,name:"type_url",kind:"scalar",T:9},{no:2,name:"value",kind:"scalar",T:12}]);const dn=class dn extends jt{constructor(t){super(),this.path="",q.util.initPartial(t,this)}static fromBinary(t,n){return new dn().fromBinary(t,n)}static fromJson(t,n){return new dn().fromJson(t,n)}static fromJsonString(t,n){return new dn().fromJsonString(t,n)}static equals(t,n){return q.util.equals(dn,t,n)}};dn.runtime=q,dn.typeName="media.GetDirectoryRequest",dn.fields=q.util.newFieldList(()=>[{no:1,name:"path",kind:"scalar",T:9}]);let Js=dn;const hn=class hn extends jt{constructor(t){super(),this.path="",this.name="",this.childrenPaths=[],this.videoIds=[],q.util.initPartial(t,this)}static fromBinary(t,n){return new hn().fromBinary(t,n)}static fromJson(t,n){return new hn().fromJson(t,n)}static fromJsonString(t,n){return new hn().fromJsonString(t,n)}static equals(t,n){return q.util.equals(hn,t,n)}};hn.runtime=q,hn.typeName="media.GetDirectoryResponse",hn.fields=q.util.newFieldList(()=>[{no:1,name:"path",kind:"scalar",T:9},{no:2,name:"name",kind:"scalar",T:9},{no:3,name:"children_paths",kind:"scalar",T:9,repeated:!0},{no:4,name:"video_ids",kind:"scalar",T:5,repeated:!0}]);let $u=hn;const pn=class pn extends jt{constructor(t){super(),this.id=0,q.util.initPartial(t,this)}static fromBinary(t,n){return new pn().fromBinary(t,n)}static fromJson(t,n){return new pn().fromJson(t,n)}static fromJsonString(t,n){return new pn().fromJsonString(t,n)}static equals(t,n){return q.util.equals(pn,t,n)}};pn.runtime=q,pn.typeName="media.GetVideoRequest",pn.fields=q.util.newFieldList(()=>[{no:1,name:"id",kind:"scalar",T:5}]);let Ks=pn;const mn=class mn extends jt{constructor(t){super(),this.id=0,this.directoryPath="",this.baseName="",this.extension="",this.subtitleIds=[],q.util.initPartial(t,this)}static fromBinary(t,n){return new mn().fromBinary(t,n)}static fromJson(t,n){return new mn().fromJson(t,n)}static fromJsonString(t,n){return new mn().fromJsonString(t,n)}static equals(t,n){return q.util.equals(mn,t,n)}};mn.runtime=q,mn.typeName="media.GetVideoResponse",mn.fields=q.util.newFieldList(()=>[{no:1,name:"id",kind:"scalar",T:5},{no:2,name:"directory_path",kind:"scalar",T:9},{no:3,name:"base_name",kind:"scalar",T:9},{no:4,name:"extension",kind:"scalar",T:9},{no:5,name:"subtitle_ids",kind:"scalar",T:5,repeated:!0}]);let Qu=mn;var co=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(){}},Hr=typeof window>"u"||"Deno"in globalThis;function Lt(){}function zy(e,t){return typeof e=="function"?e(t):e}function Wu(e){return typeof e=="number"&&e>=0&&e!==1/0}function d2(e,t){return Math.max(e+(t||0)-Date.now(),0)}function vi(e,t){return typeof e=="function"?e(t):e}function Bt(e,t){return typeof e=="function"?e(t):e}function Oh(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:s,queryKey:o,stale:l}=e;if(o){if(r){if(t.queryHash!==mf(o,t.options))return!1}else if(!Gs(t.queryKey,o))return!1}if(n!=="all"){const a=t.isActive();if(n==="active"&&!a||n==="inactive"&&a)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||i&&i!==t.state.fetchStatus||s&&!s(t))}function Fh(e,t){const{exact:n,status:r,predicate:i,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(Zs(t.options.mutationKey)!==Zs(s))return!1}else if(!Gs(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function mf(e,t){return((t==null?void 0:t.queryKeyHashFn)||Zs)(e)}function Zs(e){return JSON.stringify(e,(t,n)=>Ku(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function Gs(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!Gs(e[n],t[n])):!1}function h2(e,t){if(e===t)return e;const n=jh(e)&&jh(t);if(n||Ku(e)&&Ku(t)){const r=n?e:Object.keys(e),i=r.length,s=n?t:Object.keys(t),o=s.length,l=n?[]:{};let a=0;for(let u=0;u{setTimeout(t,e)})}function Zu(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?h2(e,t):t}function Vy(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function Hy(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var yf=Symbol();function p2(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===yf?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var Tr,$n,wi,n1,$y=(n1=class extends co{constructor(){super();J(this,Tr);J(this,$n);J(this,wi);z(this,wi,t=>{if(!Hr&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){S(this,$n)||this.setEventListener(S(this,wi))}onUnsubscribe(){var t;this.hasListeners()||((t=S(this,$n))==null||t.call(this),z(this,$n,void 0))}setEventListener(t){var n;z(this,wi,t),(n=S(this,$n))==null||n.call(this),z(this,$n,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){S(this,Tr)!==t&&(z(this,Tr,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof S(this,Tr)=="boolean"?S(this,Tr):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Tr=new WeakMap,$n=new WeakMap,wi=new WeakMap,n1),gf=new $y,Ci,Qn,xi,r1,Qy=(r1=class extends co{constructor(){super();J(this,Ci,!0);J(this,Qn);J(this,xi);z(this,xi,t=>{if(!Hr&&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(){S(this,Qn)||this.setEventListener(S(this,xi))}onUnsubscribe(){var t;this.hasListeners()||((t=S(this,Qn))==null||t.call(this),z(this,Qn,void 0))}setEventListener(t){var n;z(this,xi,t),(n=S(this,Qn))==null||n.call(this),z(this,Qn,t(this.setOnline.bind(this)))}setOnline(t){S(this,Ci)!==t&&(z(this,Ci,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return S(this,Ci)}},Ci=new WeakMap,Qn=new WeakMap,xi=new WeakMap,r1),Ul=new Qy;function Gu(){let e,t;const n=new Promise((i,s)=>{e=i,t=s});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),e(i)},n.reject=i=>{r({status:"rejected",reason:i}),t(i)},n}function Wy(e){return Math.min(1e3*2**e,3e4)}function m2(e){return(e??"online")==="online"?Ul.isOnline():!0}var y2=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Qa(e){return e instanceof y2}function g2(e){let t=!1,n=0,r=!1,i;const s=Gu(),o=C=>{var L;r||(d(new y2(C)),(L=e.abort)==null||L.call(e))},l=()=>{t=!0},a=()=>{t=!1},u=()=>gf.isFocused()&&(e.networkMode==="always"||Ul.isOnline())&&e.canRun(),c=()=>m2(e.networkMode)&&e.canRun(),f=C=>{var L;r||(r=!0,(L=e.onSuccess)==null||L.call(e,C),i==null||i(),s.resolve(C))},d=C=>{var L;r||(r=!0,(L=e.onError)==null||L.call(e,C),i==null||i(),s.reject(C))},p=()=>new Promise(C=>{var L;i=m=>{(r||u())&&C(m)},(L=e.onPause)==null||L.call(e)}).then(()=>{var C;i=void 0,r||(C=e.onContinue)==null||C.call(e)}),x=()=>{if(r)return;let C;const L=n===0?e.initialPromise:void 0;try{C=L??e.fn()}catch(m){C=Promise.reject(m)}Promise.resolve(C).then(f).catch(m=>{var F;if(r)return;const h=e.retry??(Hr?0:3),y=e.retryDelay??Wy,E=typeof y=="function"?y(n,m):y,I=h===!0||typeof h=="number"&&nu()?void 0:p()).then(()=>{t?d(m):x()})})};return{promise:s,cancel:o,continue:()=>(i==null||i(),s),cancelRetry:l,continueRetry:a,canStart:c,start:()=>(c()?x():p().then(x),s)}}function Jy(){let e=[],t=0,n=l=>{l()},r=l=>{l()},i=l=>setTimeout(l,0);const s=l=>{t?e.push(l):i(()=>{n(l)})},o=()=>{const l=e;e=[],l.length&&i(()=>{r(()=>{l.forEach(a=>{n(a)})})})};return{batch:l=>{let a;t++;try{a=l()}finally{t--,t||o()}return a},batchCalls:l=>(...a)=>{s(()=>{l(...a)})},schedule:s,setNotifyFunction:l=>{n=l},setBatchNotifyFunction:l=>{r=l},setScheduler:l=>{i=l}}}var He=Jy(),Pr,i1,v2=(i1=class{constructor(){J(this,Pr)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Wu(this.gcTime)&&z(this,Pr,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Hr?1/0:5*60*1e3))}clearGcTimeout(){S(this,Pr)&&(clearTimeout(S(this,Pr)),z(this,Pr,void 0))}},Pr=new WeakMap,i1),Si,ki,Nt,Ke,Xs,Ir,bt,cn,s1,Ky=(s1=class extends v2{constructor(t){super();J(this,bt);J(this,Si);J(this,ki);J(this,Nt);J(this,Ke);J(this,Xs);J(this,Ir);z(this,Ir,!1),z(this,Xs,t.defaultOptions),this.setOptions(t.options),this.observers=[],z(this,Nt,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,z(this,Si,Zy(this.options)),this.state=t.state??S(this,Si),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=S(this,Ke))==null?void 0:t.promise}setOptions(t){this.options={...S(this,Xs),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&S(this,Nt).remove(this)}setData(t,n){const r=Zu(this.state.data,t,this.options);return ee(this,bt,cn).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){ee(this,bt,cn).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=S(this,Ke))==null?void 0:r.promise;return(i=S(this,Ke))==null||i.cancel(t),n?n.then(Lt).catch(Lt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(S(this,Si))}isActive(){return this.observers.some(t=>Bt(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===yf||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!d2(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=S(this,Ke))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=S(this,Ke))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),S(this,Nt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(S(this,Ke)&&(S(this,Ir)?S(this,Ke).cancel({revert:!0}):S(this,Ke).cancelRetry()),this.scheduleGc()),S(this,Nt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||ee(this,bt,cn).call(this,{type:"invalidate"})}fetch(t,n){var a,u,c;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(S(this,Ke))return S(this,Ke).continueRetry(),S(this,Ke).promise}if(t&&this.setOptions(t),!this.options.queryFn){const f=this.observers.find(d=>d.options.queryFn);f&&this.setOptions(f.options)}const r=new AbortController,i=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(z(this,Ir,!0),r.signal)})},s=()=>{const f=p2(this.options,n),d={queryKey:this.queryKey,meta:this.meta};return i(d),z(this,Ir,!1),this.options.persister?this.options.persister(f,d,this):f(d)},o={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:s};i(o),(a=this.options.behavior)==null||a.onFetch(o,this),z(this,ki,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((u=o.fetchOptions)==null?void 0:u.meta))&&ee(this,bt,cn).call(this,{type:"fetch",meta:(c=o.fetchOptions)==null?void 0:c.meta});const l=f=>{var d,p,x,C;Qa(f)&&f.silent||ee(this,bt,cn).call(this,{type:"error",error:f}),Qa(f)||((p=(d=S(this,Nt).config).onError)==null||p.call(d,f,this),(C=(x=S(this,Nt).config).onSettled)==null||C.call(x,this.state.data,f,this)),this.scheduleGc()};return z(this,Ke,g2({initialPromise:n==null?void 0:n.initialPromise,fn:o.fetchFn,abort:r.abort.bind(r),onSuccess:f=>{var d,p,x,C;if(f===void 0){l(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(f)}catch(L){l(L);return}(p=(d=S(this,Nt).config).onSuccess)==null||p.call(d,f,this),(C=(x=S(this,Nt).config).onSettled)==null||C.call(x,f,this.state.error,this),this.scheduleGc()},onError:l,onFail:(f,d)=>{ee(this,bt,cn).call(this,{type:"failed",failureCount:f,error:d})},onPause:()=>{ee(this,bt,cn).call(this,{type:"pause"})},onContinue:()=>{ee(this,bt,cn).call(this,{type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0})),S(this,Ke).start()}},Si=new WeakMap,ki=new WeakMap,Nt=new WeakMap,Ke=new WeakMap,Xs=new WeakMap,Ir=new WeakMap,bt=new WeakSet,cn=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,...w2(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=t.error;return Qa(i)&&i.revert&&S(this,ki)?{...S(this,ki),fetchStatus:"idle"}:{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),He.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),S(this,Nt).notify({query:this,type:"updated",action:t})})},s1);function w2(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:m2(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Zy(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 Zt,o1,Gy=(o1=class extends co{constructor(t={}){super();J(this,Zt);this.config=t,z(this,Zt,new Map)}build(t,n,r){const i=n.queryKey,s=n.queryHash??mf(i,n);let o=this.get(s);return o||(o=new Ky({cache:this,queryKey:i,queryHash:s,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(o)),o}add(t){S(this,Zt).has(t.queryHash)||(S(this,Zt).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=S(this,Zt).get(t.queryHash);n&&(t.destroy(),n===t&&S(this,Zt).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){He.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return S(this,Zt).get(t)}getAll(){return[...S(this,Zt).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Oh(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Oh(t,r)):n}notify(t){He.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){He.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){He.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Zt=new WeakMap,o1),Gt,Xe,Rr,qt,An,l1,qy=(l1=class extends v2{constructor(t){super();J(this,qt);J(this,Gt);J(this,Xe);J(this,Rr);this.mutationId=t.mutationId,z(this,Xe,t.mutationCache),z(this,Gt,[]),this.state=t.state||Xy(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){S(this,Gt).includes(t)||(S(this,Gt).push(t),this.clearGcTimeout(),S(this,Xe).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){z(this,Gt,S(this,Gt).filter(n=>n!==t)),this.scheduleGc(),S(this,Xe).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){S(this,Gt).length||(this.state.status==="pending"?this.scheduleGc():S(this,Xe).remove(this))}continue(){var t;return((t=S(this,Rr))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,s,o,l,a,u,c,f,d,p,x,C,L,m,h,y,E,I,F,j;z(this,Rr,g2({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(g,_)=>{ee(this,qt,An).call(this,{type:"failed",failureCount:g,error:_})},onPause:()=>{ee(this,qt,An).call(this,{type:"pause"})},onContinue:()=>{ee(this,qt,An).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>S(this,Xe).canRun(this)}));const n=this.state.status==="pending",r=!S(this,Rr).canStart();try{if(!n){ee(this,qt,An).call(this,{type:"pending",variables:t,isPaused:r}),await((s=(i=S(this,Xe).config).onMutate)==null?void 0:s.call(i,t,this));const _=await((l=(o=this.options).onMutate)==null?void 0:l.call(o,t));_!==this.state.context&&ee(this,qt,An).call(this,{type:"pending",context:_,variables:t,isPaused:r})}const g=await S(this,Rr).start();return await((u=(a=S(this,Xe).config).onSuccess)==null?void 0:u.call(a,g,t,this.state.context,this)),await((f=(c=this.options).onSuccess)==null?void 0:f.call(c,g,t,this.state.context)),await((p=(d=S(this,Xe).config).onSettled)==null?void 0:p.call(d,g,null,this.state.variables,this.state.context,this)),await((C=(x=this.options).onSettled)==null?void 0:C.call(x,g,null,t,this.state.context)),ee(this,qt,An).call(this,{type:"success",data:g}),g}catch(g){try{throw await((m=(L=S(this,Xe).config).onError)==null?void 0:m.call(L,g,t,this.state.context,this)),await((y=(h=this.options).onError)==null?void 0:y.call(h,g,t,this.state.context)),await((I=(E=S(this,Xe).config).onSettled)==null?void 0:I.call(E,void 0,g,this.state.variables,this.state.context,this)),await((j=(F=this.options).onSettled)==null?void 0:j.call(F,void 0,g,t,this.state.context)),g}finally{ee(this,qt,An).call(this,{type:"error",error:g})}}finally{S(this,Xe).runNext(this)}}},Gt=new WeakMap,Xe=new WeakMap,Rr=new WeakMap,qt=new WeakSet,An=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),He.batch(()=>{S(this,Gt).forEach(r=>{r.onMutationUpdate(t)}),S(this,Xe).notify({mutation:this,type:"updated",action:t})})},l1);function Xy(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var mt,Ys,a1,Yy=(a1=class extends co{constructor(t={}){super();J(this,mt);J(this,Ys);this.config=t,z(this,mt,new Map),z(this,Ys,Date.now())}build(t,n,r){const i=new qy({mutationCache:this,mutationId:++ko(this,Ys)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){const n=$o(t),r=S(this,mt).get(n)??[];r.push(t),S(this,mt).set(n,r),this.notify({type:"added",mutation:t})}remove(t){var r;const n=$o(t);if(S(this,mt).has(n)){const i=(r=S(this,mt).get(n))==null?void 0:r.filter(s=>s!==t);i&&(i.length===0?S(this,mt).delete(n):S(this,mt).set(n,i))}this.notify({type:"removed",mutation:t})}canRun(t){var r;const n=(r=S(this,mt).get($o(t)))==null?void 0:r.find(i=>i.state.status==="pending");return!n||n===t}runNext(t){var r;const n=(r=S(this,mt).get($o(t)))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(n==null?void 0:n.continue())??Promise.resolve()}clear(){He.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...S(this,mt).values()].flat()}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Fh(n,r))}findAll(t={}){return this.getAll().filter(n=>Fh(t,n))}notify(t){He.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return He.batch(()=>Promise.all(t.map(n=>n.continue().catch(Lt))))}},mt=new WeakMap,Ys=new WeakMap,a1);function $o(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function Dh(e){return{onFetch:(t,n)=>{var c,f,d,p,x;const r=t.options,i=(d=(f=(c=t.fetchOptions)==null?void 0:c.meta)==null?void 0:f.fetchMore)==null?void 0:d.direction,s=((p=t.state.data)==null?void 0:p.pages)||[],o=((x=t.state.data)==null?void 0:x.pageParams)||[];let l={pages:[],pageParams:[]},a=0;const u=async()=>{let C=!1;const L=y=>{Object.defineProperty(y,"signal",{enumerable:!0,get:()=>(t.signal.aborted?C=!0:t.signal.addEventListener("abort",()=>{C=!0}),t.signal)})},m=p2(t.options,t.fetchOptions),h=async(y,E,I)=>{if(C)return Promise.reject();if(E==null&&y.pages.length)return Promise.resolve(y);const F={queryKey:t.queryKey,pageParam:E,direction:I?"backward":"forward",meta:t.options.meta};L(F);const j=await m(F),{maxPages:g}=t.options,_=I?Hy:Vy;return{pages:_(y.pages,j,g),pageParams:_(y.pageParams,E,g)}};if(i&&s.length){const y=i==="backward",E=y?eg:Mh,I={pages:s,pageParams:o},F=E(r,I);l=await h(I,F,y)}else{const y=e??s.length;do{const E=a===0?o[0]??r.initialPageParam:Mh(r,l);if(a>0&&E==null)break;l=await h(l,E),a++}while(a{var C,L;return(L=(C=t.options).persister)==null?void 0:L.call(C,u,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function Mh(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 eg(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 Te,Wn,Jn,Ei,Ni,Kn,Li,Ti,u1,tg=(u1=class{constructor(e={}){J(this,Te);J(this,Wn);J(this,Jn);J(this,Ei);J(this,Ni);J(this,Kn);J(this,Li);J(this,Ti);z(this,Te,e.queryCache||new Gy),z(this,Wn,e.mutationCache||new Yy),z(this,Jn,e.defaultOptions||{}),z(this,Ei,new Map),z(this,Ni,new Map),z(this,Kn,0)}mount(){ko(this,Kn)._++,S(this,Kn)===1&&(z(this,Li,gf.subscribe(async e=>{e&&(await this.resumePausedMutations(),S(this,Te).onFocus())})),z(this,Ti,Ul.subscribe(async e=>{e&&(await this.resumePausedMutations(),S(this,Te).onOnline())})))}unmount(){var e,t;ko(this,Kn)._--,S(this,Kn)===0&&((e=S(this,Li))==null||e.call(this),z(this,Li,void 0),(t=S(this,Ti))==null||t.call(this),z(this,Ti,void 0))}isFetching(e){return S(this,Te).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return S(this,Wn).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=S(this,Te).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{const n=this.defaultQueryOptions(e),r=S(this,Te).build(this,n);return e.revalidateIfStale&&r.isStaleByTime(vi(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return S(this,Te).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=S(this,Te).get(r.queryHash),s=i==null?void 0:i.state.data,o=zy(t,s);if(o!==void 0)return S(this,Te).build(this,r).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return He.batch(()=>S(this,Te).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=S(this,Te).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=S(this,Te);He.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=S(this,Te),r={type:"active",...e};return He.batch(()=>(n.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=He.batch(()=>S(this,Te).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(Lt).catch(Lt)}invalidateQueries(e={},t={}){return He.batch(()=>{if(S(this,Te).findAll(e).forEach(r=>{r.invalidate()}),e.refetchType==="none")return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)})}refetchQueries(e={},t){const n={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},r=He.batch(()=>S(this,Te).findAll(e).filter(i=>!i.isDisabled()).map(i=>{let s=i.fetch(void 0,n);return n.throwOnError||(s=s.catch(Lt)),i.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then(Lt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=S(this,Te).build(this,t);return n.isStaleByTime(vi(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Lt).catch(Lt)}fetchInfiniteQuery(e){return e.behavior=Dh(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Lt).catch(Lt)}ensureInfiniteQueryData(e){return e.behavior=Dh(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Ul.isOnline()?S(this,Wn).resumePausedMutations():Promise.resolve()}getQueryCache(){return S(this,Te)}getMutationCache(){return S(this,Wn)}getDefaultOptions(){return S(this,Jn)}setDefaultOptions(e){z(this,Jn,e)}setQueryDefaults(e,t){S(this,Ei).set(Zs(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...S(this,Ei).values()];let n={};return t.forEach(r=>{Gs(e,r.queryKey)&&(n={...n,...r.defaultOptions})}),n}setMutationDefaults(e,t){S(this,Ni).set(Zs(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...S(this,Ni).values()];let n={};return t.forEach(r=>{Gs(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...S(this,Jn).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=mf(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.enabled!==!0&&t.queryFn===yf&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...S(this,Jn).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){S(this,Te).clear(),S(this,Wn).clear()}},Te=new WeakMap,Wn=new WeakMap,Jn=new WeakMap,Ei=new WeakMap,Ni=new WeakMap,Kn=new WeakMap,Li=new WeakMap,Ti=new WeakMap,u1),at,te,eo,Ye,Or,Pi,Zn,Xt,to,Ii,Ri,Fr,jr,Gn,Oi,ae,hs,qu,Xu,Yu,ec,tc,nc,rc,C2,c1,ng=(c1=class extends co{constructor(t,n){super();J(this,ae);J(this,at);J(this,te);J(this,eo);J(this,Ye);J(this,Or);J(this,Pi);J(this,Zn);J(this,Xt);J(this,to);J(this,Ii);J(this,Ri);J(this,Fr);J(this,jr);J(this,Gn);J(this,Oi,new Set);this.options=n,z(this,at,t),z(this,Xt,null),z(this,Zn,Gu()),this.options.experimental_prefetchInRender||S(this,Zn).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(S(this,te).addObserver(this),bh(S(this,te),this.options)?ee(this,ae,hs).call(this):this.updateResult(),ee(this,ae,ec).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return ic(S(this,te),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return ic(S(this,te),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,ee(this,ae,tc).call(this),ee(this,ae,nc).call(this),S(this,te).removeObserver(this)}setOptions(t,n){const r=this.options,i=S(this,te);if(this.options=S(this,at).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Bt(this.options.enabled,S(this,te))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");ee(this,ae,rc).call(this),S(this,te).setOptions(this.options),r._defaulted&&!Ju(this.options,r)&&S(this,at).getQueryCache().notify({type:"observerOptionsUpdated",query:S(this,te),observer:this});const s=this.hasListeners();s&&Uh(S(this,te),i,this.options,r)&&ee(this,ae,hs).call(this),this.updateResult(n),s&&(S(this,te)!==i||Bt(this.options.enabled,S(this,te))!==Bt(r.enabled,S(this,te))||vi(this.options.staleTime,S(this,te))!==vi(r.staleTime,S(this,te)))&&ee(this,ae,qu).call(this);const o=ee(this,ae,Xu).call(this);s&&(S(this,te)!==i||Bt(this.options.enabled,S(this,te))!==Bt(r.enabled,S(this,te))||o!==S(this,Gn))&&ee(this,ae,Yu).call(this,o)}getOptimisticResult(t){const n=S(this,at).getQueryCache().build(S(this,at),t),r=this.createResult(n,t);return ig(this,r)&&(z(this,Ye,r),z(this,Pi,this.options),z(this,Or,S(this,te).state)),r}getCurrentResult(){return S(this,Ye)}trackResult(t,n){const r={};return Object.keys(t).forEach(i=>{Object.defineProperty(r,i,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(i),n==null||n(i),t[i])})}),r}trackProp(t){S(this,Oi).add(t)}getCurrentQuery(){return S(this,te)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=S(this,at).defaultQueryOptions(t),r=S(this,at).getQueryCache().build(S(this,at),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return ee(this,ae,hs).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),S(this,Ye)))}createResult(t,n){var g;const r=S(this,te),i=this.options,s=S(this,Ye),o=S(this,Or),l=S(this,Pi),u=t!==r?t.state:S(this,eo),{state:c}=t;let f={...c},d=!1,p;if(n._optimisticResults){const _=this.hasListeners(),M=!_&&bh(t,n),Q=_&&Uh(t,r,n,i);(M||Q)&&(f={...f,...w2(c.data,t.options)}),n._optimisticResults==="isRestoring"&&(f.fetchStatus="idle")}let{error:x,errorUpdatedAt:C,status:L}=f;if(n.select&&f.data!==void 0)if(s&&f.data===(o==null?void 0:o.data)&&n.select===S(this,to))p=S(this,Ii);else try{z(this,to,n.select),p=n.select(f.data),p=Zu(s==null?void 0:s.data,p,n),z(this,Ii,p),z(this,Xt,null)}catch(_){z(this,Xt,_)}else p=f.data;if(n.placeholderData!==void 0&&p===void 0&&L==="pending"){let _;if(s!=null&&s.isPlaceholderData&&n.placeholderData===(l==null?void 0:l.placeholderData))_=s.data;else if(_=typeof n.placeholderData=="function"?n.placeholderData((g=S(this,Ri))==null?void 0:g.state.data,S(this,Ri)):n.placeholderData,n.select&&_!==void 0)try{_=n.select(_),z(this,Xt,null)}catch(M){z(this,Xt,M)}_!==void 0&&(L="success",p=Zu(s==null?void 0:s.data,_,n),d=!0)}S(this,Xt)&&(x=S(this,Xt),p=S(this,Ii),C=Date.now(),L="error");const m=f.fetchStatus==="fetching",h=L==="pending",y=L==="error",E=h&&m,I=p!==void 0,j={status:L,fetchStatus:f.fetchStatus,isPending:h,isSuccess:L==="success",isError:y,isInitialLoading:E,isLoading:E,data:p,dataUpdatedAt:f.dataUpdatedAt,error:x,errorUpdatedAt:C,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>u.dataUpdateCount||f.errorUpdateCount>u.errorUpdateCount,isFetching:m,isRefetching:m&&!h,isLoadingError:y&&!I,isPaused:f.fetchStatus==="paused",isPlaceholderData:d,isRefetchError:y&&I,isStale:vf(t,n),refetch:this.refetch,promise:S(this,Zn)};if(this.options.experimental_prefetchInRender){const _=ne=>{j.status==="error"?ne.reject(j.error):j.data!==void 0&&ne.resolve(j.data)},M=()=>{const ne=z(this,Zn,j.promise=Gu());_(ne)},Q=S(this,Zn);switch(Q.status){case"pending":t.queryHash===r.queryHash&&_(Q);break;case"fulfilled":(j.status==="error"||j.data!==Q.value)&&M();break;case"rejected":(j.status!=="error"||j.error!==Q.reason)&&M();break}}return j}updateResult(t){const n=S(this,Ye),r=this.createResult(S(this,te),this.options);if(z(this,Or,S(this,te).state),z(this,Pi,this.options),S(this,Or).data!==void 0&&z(this,Ri,S(this,te)),Ju(r,n))return;z(this,Ye,r);const i={},s=()=>{if(!n)return!0;const{notifyOnChangeProps:o}=this.options,l=typeof o=="function"?o():o;if(l==="all"||!l&&!S(this,Oi).size)return!0;const a=new Set(l??S(this,Oi));return this.options.throwOnError&&a.add("error"),Object.keys(S(this,Ye)).some(u=>{const c=u;return S(this,Ye)[c]!==n[c]&&a.has(c)})};(t==null?void 0:t.listeners)!==!1&&s()&&(i.listeners=!0),ee(this,ae,C2).call(this,{...i,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&ee(this,ae,ec).call(this)}},at=new WeakMap,te=new WeakMap,eo=new WeakMap,Ye=new WeakMap,Or=new WeakMap,Pi=new WeakMap,Zn=new WeakMap,Xt=new WeakMap,to=new WeakMap,Ii=new WeakMap,Ri=new WeakMap,Fr=new WeakMap,jr=new WeakMap,Gn=new WeakMap,Oi=new WeakMap,ae=new WeakSet,hs=function(t){ee(this,ae,rc).call(this);let n=S(this,te).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Lt)),n},qu=function(){ee(this,ae,tc).call(this);const t=vi(this.options.staleTime,S(this,te));if(Hr||S(this,Ye).isStale||!Wu(t))return;const r=d2(S(this,Ye).dataUpdatedAt,t)+1;z(this,Fr,setTimeout(()=>{S(this,Ye).isStale||this.updateResult()},r))},Xu=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(S(this,te)):this.options.refetchInterval)??!1},Yu=function(t){ee(this,ae,nc).call(this),z(this,Gn,t),!(Hr||Bt(this.options.enabled,S(this,te))===!1||!Wu(S(this,Gn))||S(this,Gn)===0)&&z(this,jr,setInterval(()=>{(this.options.refetchIntervalInBackground||gf.isFocused())&&ee(this,ae,hs).call(this)},S(this,Gn)))},ec=function(){ee(this,ae,qu).call(this),ee(this,ae,Yu).call(this,ee(this,ae,Xu).call(this))},tc=function(){S(this,Fr)&&(clearTimeout(S(this,Fr)),z(this,Fr,void 0))},nc=function(){S(this,jr)&&(clearInterval(S(this,jr)),z(this,jr,void 0))},rc=function(){const t=S(this,at).getQueryCache().build(S(this,at),this.options);if(t===S(this,te))return;const n=S(this,te);z(this,te,t),z(this,eo,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},C2=function(t){He.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(S(this,Ye))}),S(this,at).getQueryCache().notify({query:S(this,te),type:"observerResultsUpdated"})})},c1);function rg(e,t){return Bt(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function bh(e,t){return rg(e,t)||e.state.data!==void 0&&ic(e,t,t.refetchOnMount)}function ic(e,t,n){if(Bt(t.enabled,e)!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&vf(e,t)}return!1}function Uh(e,t,n,r){return(e!==t||Bt(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&vf(e,n)}function vf(e,t){return Bt(t.enabled,e)!==!1&&e.isStaleByTime(vi(t.staleTime,e))}function ig(e,t){return!Ju(e.getCurrentResult(),t)}var x2=T.createContext(void 0),sg=e=>{const t=T.useContext(x2);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},og=({client:e,children:t})=>(T.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),w.jsx(x2.Provider,{value:e,children:t})),S2=T.createContext(!1),lg=()=>T.useContext(S2);S2.Provider;function ag(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var ug=T.createContext(ag()),cg=()=>T.useContext(ug);function fg(e,t){return typeof e=="function"?e(...t):!!e}function dg(){}var hg=(e,t)=>{(e.suspense||e.throwOnError)&&(t.isReset()||(e.retryOnMount=!1))},pg=e=>{T.useEffect(()=>{e.clearReset()},[e])},mg=({result:e,errorResetBoundary:t,throwOnError:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&fg(n,[e.error,r]),yg=e=>{e.suspense&&(e.staleTime===void 0&&(e.staleTime=1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},gg=(e,t)=>e.isLoading&&e.isFetching&&!t,vg=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,Ah=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function wg(e,t,n){var c,f,d,p,x;const r=sg(),i=lg(),s=cg(),o=r.defaultQueryOptions(e);(f=(c=r.getDefaultOptions().queries)==null?void 0:c._experimental_beforeQuery)==null||f.call(c,o),o._optimisticResults=i?"isRestoring":"optimistic",yg(o),hg(o,s),pg(s);const l=!r.getQueryCache().get(o.queryHash),[a]=T.useState(()=>new t(r,o)),u=a.getOptimisticResult(o);if(T.useSyncExternalStore(T.useCallback(C=>{const L=i?()=>{}:a.subscribe(He.batchCalls(C));return a.updateResult(),L},[a,i]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),T.useEffect(()=>{a.setOptions(o,{listeners:!1})},[o,a]),vg(o,u))throw Ah(o,a,s);if(mg({result:u,errorResetBoundary:s,throwOnError:o.throwOnError,query:r.getQueryCache().get(o.queryHash)}))throw u.error;if((p=(d=r.getDefaultOptions().queries)==null?void 0:d._experimental_afterQuery)==null||p.call(d,o,u),o.experimental_prefetchInRender&&!Hr&&gg(u,i)){const C=l?Ah(o,a,s):(x=r.getQueryCache().get(o.queryHash))==null?void 0:x.promise;C==null||C.catch(dg).finally(()=>{a.updateResult()})}return o.notifyOnChangeProps?u:a.trackResult(u)}function fo(e,t){return wg(e,ng)}function Cg(){const{MediaServiceClient:e}=uo(),[t]=cf(),n=t.get("path")||"",{data:r}=fo({queryKey:["get-directory",n],queryFn:()=>e==null?void 0:e.getDirectory(new Js({path:n}))}),i=()=>r==null?void 0:r.videoIds.map(o=>w.jsx(Sg,{id:o},o)),s=()=>r==null?void 0:r.childrenPaths.map(o=>w.jsx(xg,{path:o},o));return w.jsxs(w.Fragment,{children:[w.jsx(Qs,{children:w.jsxs("section",{className:"flex h-full flex-col gap-sm",children:[w.jsxs("section",{className:"flex flex-col gap-sm",children:[w.jsxs("div",{className:"flex flex-row items-center gap-lg",children:[w.jsx("h2",{className:"text-md text-gray-830",children:"Media"}),w.jsxs("p",{className:"text-sm text-gray-520",children:["/",n]})]}),w.jsx(zh,{})]}),w.jsxs("section",{className:"grid grid-flow-row gap-sm overflow-y-auto pb-xxl",children:[w.jsx(s,{}),((r==null?void 0:r.videoIds.length)||0)>0&&w.jsxs(w.Fragment,{children:[w.jsxs("div",{className:"flex w-full flex-row items-center gap-md",children:[w.jsx("h3",{className:"text-nowrap text-md text-gray-520",children:"Videos"}),w.jsx("div",{className:"h-[4px] w-full rounded-sm bg-gray-80"})]}),w.jsx(i,{})]})]})]})}),w.jsx(Ws,{children:w.jsxs("section",{className:"flex h-full flex-col gap-sm px-lg py-xxl",children:[w.jsxs("section",{className:"grid min-h-[4rem] grid-cols-[1fr_20rem] items-center",children:[w.jsxs("div",{className:"flex flex-row gap-lg",children:[w.jsx("h2",{className:"text-md text-gray-830",children:"Media"}),w.jsxs("p",{className:"text-sm text-gray-520",children:["/",n]})]}),w.jsx(zh,{})]}),w.jsxs("section",{className:"grid w-full grid-flow-row gap-sm overflow-y-auto",children:[w.jsx("div",{className:"grid grid-cols-[repeat(auto-fill,minmax(18rem,1fr))] gap-sm",children:w.jsx(s,{})}),((r==null?void 0:r.videoIds.length)||0)>0&&w.jsxs(w.Fragment,{children:[w.jsxs("div",{className:"flex w-full flex-row items-center gap-md",children:[w.jsx("h3",{className:"text-nowrap text-md text-gray-520",children:"Videos"}),w.jsx("div",{className:"h-[4px] w-full rounded-sm bg-gray-80"})]}),w.jsx(i,{})]})]})]})})]})}function xg({path:e}){const{MediaServiceClient:t}=uo(),[n,r]=cf(),{data:i,isLoading:s}=fo({queryKey:["get-directory",e],queryFn:()=>t==null?void 0:t.getDirectory(new Js({path:e}))});return s?w.jsxs("div",{className:"grid grid-cols-[auto_1fr] gap-md rounded-sm bg-gray-80 p-md",children:[w.jsx(Vu,{className:"h-full fill-red"}),w.jsxs("div",{className:"",children:[w.jsx("p",{className:"text-start text-sm text-gray-830",children:"Loading..."}),w.jsxs("div",{className:"flex w-full flex-row justify-between",children:[w.jsx("p",{className:"text-xs text-gray-520",children:"Subtitle"}),w.jsx("p",{className:"text-xs text-gray-520",children:"../.."})]})]})]}):w.jsxs("button",{className:"grid grid-cols-[auto_1fr] gap-md rounded-sm bg-gray-80 p-md",onClick:()=>{const o=new URLSearchParams(n);o.set("path",e),r(o)},children:[w.jsx(Vu,{className:"h-full fill-red"}),w.jsxs("div",{className:"",children:[w.jsx("p",{className:"text-start text-sm text-gray-830",children:i==null?void 0:i.name}),w.jsxs("div",{className:"flex w-full flex-row justify-between",children:[w.jsx("p",{className:"text-xs text-gray-520",children:"Subtitle"}),w.jsx("p",{className:"text-xs text-gray-520",children:"10/20"})]})]})]})}function Sg({id:e}){const{MediaServiceClient:t}=uo(),n=sa(),{data:r,isLoading:i}=fo({queryKey:["get-video",e],queryFn:()=>t==null?void 0:t.getVideo(new Ks({id:e}))});if(i)return w.jsxs(w.Fragment,{children:[w.jsx(Qs,{children:w.jsxs("div",{className:"grid grid-rows-2 gap-sm rounded-sm bg-gray-80 p-sm",children:[w.jsx("p",{className:"text-start text-sm text-gray-830",children:"..."}),w.jsx("div",{className:"flex flex-row justify-between",children:w.jsx("p",{className:"text-sm text-gray-520",children:"..."})})]})}),w.jsx(Ws,{children:w.jsxs("div",{className:"grid grid-cols-2 rounded-sm bg-gray-80 p-sm",children:[w.jsx("p",{className:"text-start text-sm text-gray-830",children:"..."}),w.jsx("div",{className:"grid grid-cols-3",children:w.jsx("p",{className:"text-sm text-gray-520",children:"..."})})]})})]});const s=()=>{const o=new URLSearchParams({id:e.toString()});n("/video?"+o.toString(),{})};return w.jsxs(w.Fragment,{children:[w.jsx(Qs,{children:w.jsxs("button",{className:"grid grid-rows-2 gap-sm rounded-sm bg-gray-80 p-sm",onClick:s,children:[w.jsx("p",{className:"text-start text-sm text-gray-830",children:r==null?void 0:r.baseName}),w.jsx("div",{className:"flex flex-row justify-between",children:w.jsx("p",{className:"text-sm text-gray-520",children:r==null?void 0:r.extension})})]})}),w.jsx(Ws,{children:w.jsxs("button",{className:"grid grid-cols-2 rounded-sm bg-gray-80 p-sm",onClick:s,children:[w.jsx("p",{className:"text-start text-sm text-gray-830",children:r==null?void 0:r.baseName}),w.jsx("div",{className:"grid grid-cols-3 justify-items-end",children:w.jsx("p",{className:"text-sm text-gray-520",children:r==null?void 0:r.extension})})]})})]})}function zh(){return w.jsxs("div",{className:"flex h-fit w-full flex-row items-center gap-sm rounded-md bg-gray-120 px-sm py-xs",children:[w.jsx(a8,{className:"fill-gray-520"}),w.jsx("input",{className:"w-full text-sm text-gray-830 placeholder:text-sm placeholder:text-gray-190",placeholder:"Search"})]})}const yn=class yn extends jt{constructor(t){super(),this.id=0,q.util.initPartial(t,this)}static fromBinary(t,n){return new yn().fromBinary(t,n)}static fromJson(t,n){return new yn().fromJson(t,n)}static fromJsonString(t,n){return new yn().fromJsonString(t,n)}static equals(t,n){return q.util.equals(yn,t,n)}};yn.runtime=q,yn.typeName="subtitle.GetSubtitleRequest",yn.fields=q.util.newFieldList(()=>[{no:1,name:"id",kind:"scalar",T:5}]);let Al=yn;const gn=class gn extends jt{constructor(t){super(),this.id=0,this.title="",this.language="",this.isProcessing=!1,this.segmentIds=[],q.util.initPartial(t,this)}static fromBinary(t,n){return new gn().fromBinary(t,n)}static fromJson(t,n){return new gn().fromJson(t,n)}static fromJsonString(t,n){return new gn().fromJsonString(t,n)}static equals(t,n){return q.util.equals(gn,t,n)}};gn.runtime=q,gn.typeName="subtitle.GetSubtitleResponse",gn.fields=q.util.newFieldList(()=>[{no:1,name:"id",kind:"scalar",T:5},{no:2,name:"title",kind:"scalar",T:9},{no:3,name:"language",kind:"scalar",T:9},{no:4,name:"is_processing",kind:"scalar",T:8},{no:5,name:"import",kind:"message",T:oc},{no:6,name:"segment_ids",kind:"scalar",T:5,repeated:!0},{no:7,name:"export",kind:"message",T:lc,opt:!0}]);let sc=gn;const vn=class vn extends jt{constructor(t){super(),this.isExternal=!1,this.format="",q.util.initPartial(t,this)}static fromBinary(t,n){return new vn().fromBinary(t,n)}static fromJson(t,n){return new vn().fromJson(t,n)}static fromJsonString(t,n){return new vn().fromJsonString(t,n)}static equals(t,n){return q.util.equals(vn,t,n)}};vn.runtime=q,vn.typeName="subtitle.Import",vn.fields=q.util.newFieldList(()=>[{no:1,name:"is_external",kind:"scalar",T:8},{no:2,name:"format",kind:"scalar",T:9}]);let oc=vn;const wn=class wn extends jt{constructor(t){super(),this.path="",this.format="",q.util.initPartial(t,this)}static fromBinary(t,n){return new wn().fromBinary(t,n)}static fromJson(t,n){return new wn().fromJson(t,n)}static fromJsonString(t,n){return new wn().fromJsonString(t,n)}static equals(t,n){return q.util.equals(wn,t,n)}};wn.runtime=q,wn.typeName="subtitle.Export",wn.fields=q.util.newFieldList(()=>[{no:1,name:"path",kind:"scalar",T:9},{no:2,name:"format",kind:"scalar",T:9}]);let lc=wn;function kg(){const{MediaServiceClient:e}=uo(),[t]=cf(),n=sa(),r=t.get("id");if(!r||r==null)return T.useEffect(()=>n("/media")),w.jsx(w.Fragment,{});const i=parseInt(r),{data:s}=fo({queryKey:["get-video",i],queryFn:()=>e==null?void 0:e.getVideo(new Ks({id:i}))}),o=()=>s==null?void 0:s.subtitleIds.map(l=>w.jsx(Eg,{id:l},l));return w.jsxs("section",{className:"flex h-full flex-col gap-sm md:px-lg md:py-xxl",children:[w.jsx("div",{className:"flex flex-row items-center gap-lg md:min-h-[4rem]",children:w.jsx("h2",{className:"text-md text-gray-830",children:"Video"})}),w.jsxs("section",{className:"grid grid-cols-[auto_1fr] gap-md rounded-sm bg-gray-80 p-md",children:[w.jsx(Vu,{className:"h-full fill-orange"}),w.jsxs("div",{className:"",children:[w.jsxs("div",{className:"flex w-full flex-row items-end",children:[w.jsx("p",{className:"text-sm text-gray-830",children:s==null?void 0:s.baseName}),w.jsx("p",{className:"text-xs text-gray-520",children:s==null?void 0:s.extension})]}),w.jsx("p",{className:"text-xs text-gray-520",children:s==null?void 0:s.directoryPath})]})]}),((s==null?void 0:s.subtitleIds.length)||0)>0&&w.jsxs(w.Fragment,{children:[w.jsxs("div",{className:"flex w-full flex-row items-center gap-md",children:[w.jsx("h3",{className:"text-nowrap text-md text-gray-520",children:"Subtitles"}),w.jsx("div",{className:"h-[4px] w-full rounded-sm bg-gray-80"})]}),w.jsx(o,{})]})]})}function Eg({id:e}){var s,o;const{SubtitleServiceClient:t}=uo(),{isLoading:n,data:r}=fo({queryKey:["get-subtitle",e],queryFn:()=>t==null?void 0:t.getSubtitle(new Al({id:e}))});if(n)return w.jsxs(w.Fragment,{children:[w.jsx(Qs,{children:w.jsxs("div",{className:"grid grid-rows-2 gap-xs rounded-sm bg-gray-80 p-sm",children:[w.jsxs("div",{className:"flex flex-row justify-between",children:[w.jsx("p",{className:"text-sm text-gray-830",children:"..."}),w.jsx(Vo,{className:"opacity-0"})]}),w.jsx("p",{className:"text-start text-xs text-gray-520",children:"..."})]})}),w.jsx(Ws,{children:w.jsxs("div",{className:"grid grid-cols-2 rounded-sm bg-gray-80 p-sm",children:[w.jsx("p",{className:"text-start text-sm text-gray-830",children:"..."}),w.jsxs("div",{className:"grid grid-cols-3 items-center justify-items-end",children:[w.jsx("p",{className:"col-span-2 text-sm text-gray-520",children:"..."}),w.jsx(Vo,{className:"opacity-0"})]})]})})]});let i="Detected";if(r!=null&&r.export){const a=r.export.path;a.length>24?i="..."+a.slice(-21):i=a}else r!=null&&r.isProcessing?r.segmentIds.length>0?i="Exporting":(s=r.import)!=null&&s.isExternal?i="Importing":i="Extracting":((r==null?void 0:r.segmentIds.length)||0)>0&&((o=r==null?void 0:r.import)!=null&&o.isExternal?i="Imported":i="Extracted");return w.jsxs(w.Fragment,{children:[w.jsx(Qs,{children:w.jsxs("div",{className:"grid grid-rows-2 gap-xs rounded-sm bg-gray-80 p-sm",children:[w.jsxs("div",{className:"flex flex-row justify-between",children:[w.jsx("p",{className:"text-sm text-gray-830",children:r==null?void 0:r.title}),r!=null&&r.isProcessing?w.jsx(Vo,{}):w.jsx(ch,{})]}),w.jsx("p",{className:"text-start text-xs text-gray-520",children:i})]})}),w.jsx(Ws,{children:w.jsxs("div",{className:"grid grid-cols-2 rounded-sm bg-gray-80 p-sm",children:[w.jsx("p",{className:"text-start text-sm text-gray-830",children:r==null?void 0:r.title}),w.jsxs("div",{className:"grid grid-cols-3 items-center justify-items-end",children:[w.jsx("p",{className:"col-span-2 text-sm text-gray-520",children:i}),r!=null&&r.isProcessing?w.jsx(Vo,{}):w.jsx(ch,{})]})]})})]})}var ie;(function(e){e[e.Canceled=1]="Canceled",e[e.Unknown=2]="Unknown",e[e.InvalidArgument=3]="InvalidArgument",e[e.DeadlineExceeded=4]="DeadlineExceeded",e[e.NotFound=5]="NotFound",e[e.AlreadyExists=6]="AlreadyExists",e[e.PermissionDenied=7]="PermissionDenied",e[e.ResourceExhausted=8]="ResourceExhausted",e[e.FailedPrecondition=9]="FailedPrecondition",e[e.Aborted=10]="Aborted",e[e.OutOfRange=11]="OutOfRange",e[e.Unimplemented=12]="Unimplemented",e[e.Internal=13]="Internal",e[e.Unavailable=14]="Unavailable",e[e.DataLoss=15]="DataLoss",e[e.Unauthenticated=16]="Unauthenticated"})(ie||(ie={}));function Bh(e){const t=ie[e];return typeof t!="string"?e.toString():t[0].toLowerCase()+t.substring(1).replace(/[A-Z]/g,n=>"_"+n.toLowerCase())}class ge extends Error{constructor(t,n=ie.Unknown,r,i,s){super(Ng(t,n)),this.name="ConnectError",Object.setPrototypeOf(this,new.target.prototype),this.rawMessage=t,this.code=n,this.metadata=new Headers(r??{}),this.details=i??[],this.cause=s}static from(t,n=ie.Unknown){return t instanceof ge?t:t instanceof Error?t.name=="AbortError"?new ge(t.message,ie.Canceled):new ge(t.message,n,void 0,void 0,t):new ge(String(t),n,void 0,void 0,t)}static[Symbol.hasInstance](t){return t instanceof Error?Object.getPrototypeOf(t)===ge.prototype?!0:t.name==="ConnectError"&&"code"in t&&typeof t.code=="number"&&"metadata"in t&&"details"in t&&Array.isArray(t.details)&&"rawMessage"in t&&typeof t.rawMessage=="string"&&"cause"in t:!1}findDetails(t){const n="typeName"in t?{findMessage:i=>i===t.typeName?t:void 0}:t,r=[];for(const i of this.details){if("getType"in i){n.findMessage(i.getType().typeName)&&r.push(i);continue}const s=n.findMessage(i.type);if(s)try{r.push(s.fromBinary(i.value))}catch{}}return r}}function Ng(e,t){return e.length?`[${Bh(t)}] ${e}`:`[${Bh(t)}]`}function Lg(e,t,n){try{const r=pf.dec(e);return t?t.fromBinary(r,n):r}catch(r){throw ge.from(r,ie.DataLoss)}}function Tg(e,t){const n={};for(const[r,i]of Object.entries(e.methods)){const s=t(Object.assign(Object.assign({},i),{localName:r,service:e}));s!=null&&(n[r]=s)}return n}const Vh=1;function Hh(e){let t,n=new Uint8Array(0);function r(i){const s=new Uint8Array(n.length+i.length);s.set(n),s.set(i,n.length),n=s}return new ReadableStream({start(){t=e.getReader()},async pull(i){let s;for(;;){if(s===void 0&&n.byteLength>=5){let a=0;for(let u=1;u<5;u++)a=(a<<8)+n[u];s={flags:n[0],length:a}}if(s!==void 0&&n.byteLength>=s.length+5)break;const l=await t.read();if(l.done)break;r(l.value)}if(s===void 0){if(n.byteLength==0){i.close();return}i.error(new ge("premature end of stream",ie.DataLoss));return}const o=n.subarray(5,5+s.length);n=n.subarray(5+s.length),i.enqueue({flags:s.flags,data:o})}})}function $h(e,t){const n=new Uint8Array(t.length+5);n.set(t,5);const r=new DataView(n.buffer,n.byteOffset,n.byteLength);return r.setUint8(0,e),r.setUint32(1,t.length),n}var Pg=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof __values=="function"?__values(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(s){n[s]=e[s]&&function(o){return new Promise(function(l,a){o=e[s](o),i(l,a,o.done,o.value)})}}function i(s,o,l,a){Promise.resolve(a).then(function(u){s({value:u,done:l})},o)}},qs=function(e){return this instanceof qs?(this.v=e,this):new qs(e)},Ig=function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),i,s=[];return i={},l("next"),l("throw"),l("return",o),i[Symbol.asyncIterator]=function(){return this},i;function o(p){return function(x){return Promise.resolve(x).then(p,f)}}function l(p,x){r[p]&&(i[p]=function(C){return new Promise(function(L,m){s.push([p,C,L,m])>1||a(p,C)})},x&&(i[p]=x(i[p])))}function a(p,x){try{u(r[p](x))}catch(C){d(s[0][3],C)}}function u(p){p.value instanceof qs?Promise.resolve(p.value.v).then(c,f):d(s[0][2],p)}function c(p){a("next",p)}function f(p){a("throw",p)}function d(p,x){p(x),s.shift(),s.length&&a(s[0][0],s[0][1])}},Rg=function(e){var t,n;return t={},r("next"),r("throw",function(i){throw i}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(i,s){t[i]=e[i]?function(o){return(n=!n)?{value:qs(e[i](o)),done:!1}:s?s(o):o}:s}};function Og(e){return Ig(this,arguments,function*(){yield qs(yield*Rg(Pg(e)))})}var k2=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof __values=="function"?__values(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(s){n[s]=e[s]&&function(o){return new Promise(function(l,a){o=e[s](o),i(l,a,o.done,o.value)})}}function i(s,o,l,a){Promise.resolve(a).then(function(u){s({value:u,done:l})},o)}},Bi=function(e){return this instanceof Bi?(this.v=e,this):new Bi(e)},Fg=function(e){var t,n;return t={},r("next"),r("throw",function(i){throw i}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(i,s){t[i]=e[i]?function(o){return(n=!n)?{value:Bi(e[i](o)),done:!1}:s?s(o):o}:s}},jg=function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),i,s=[];return i={},l("next"),l("throw"),l("return",o),i[Symbol.asyncIterator]=function(){return this},i;function o(p){return function(x){return Promise.resolve(x).then(p,f)}}function l(p,x){r[p]&&(i[p]=function(C){return new Promise(function(L,m){s.push([p,C,L,m])>1||a(p,C)})},x&&(i[p]=x(i[p])))}function a(p,x){try{u(r[p](x))}catch(C){d(s[0][3],C)}}function u(p){p.value instanceof Bi?Promise.resolve(p.value.v).then(c,f):d(s[0][2],p)}function c(p){a("next",p)}function f(p){a("throw",p)}function d(p,x){p(x),s.shift(),s.length&&a(s[0][0],s[0][1])}};function Qh(e,t){return Tg(e,n=>{switch(n.kind){case tn.Unary:return _g(t,e,n);case tn.ServerStreaming:return Dg(t,e,n);case tn.ClientStreaming:return Mg(t,e,n);case tn.BiDiStreaming:return bg(t,e,n);default:return null}})}function _g(e,t,n){return async function(r,i){var s,o;const l=await e.unary(t,n,i==null?void 0:i.signal,i==null?void 0:i.timeoutMs,i==null?void 0:i.headers,r,i==null?void 0:i.contextValues);return(s=i==null?void 0:i.onHeader)===null||s===void 0||s.call(i,l.header),(o=i==null?void 0:i.onTrailer)===null||o===void 0||o.call(i,l.trailer),l.message}}function Dg(e,t,n){return function(r,i){return E2(e.stream(t,n,i==null?void 0:i.signal,i==null?void 0:i.timeoutMs,i==null?void 0:i.headers,Og([r]),i==null?void 0:i.contextValues),i)}}function Mg(e,t,n){return async function(r,i){var s,o,l,a,u,c;const f=await e.stream(t,n,i==null?void 0:i.signal,i==null?void 0:i.timeoutMs,i==null?void 0:i.headers,r,i==null?void 0:i.contextValues);(u=i==null?void 0:i.onHeader)===null||u===void 0||u.call(i,f.header);let d,p=0;try{for(var x=!0,C=k2(f.message),L;L=await C.next(),s=L.done,!s;x=!0)a=L.value,x=!1,d=a,p++}catch(m){o={error:m}}finally{try{!x&&!s&&(l=C.return)&&await l.call(C)}finally{if(o)throw o.error}}if(!d)throw new ge("protocol error: missing response message",ie.Unimplemented);if(p>1)throw new ge("protocol error: received extra messages for client streaming method",ie.Unimplemented);return(c=i==null?void 0:i.onTrailer)===null||c===void 0||c.call(i,f.trailer),d}}function bg(e,t,n){return function(r,i){return E2(e.stream(t,n,i==null?void 0:i.signal,i==null?void 0:i.timeoutMs,i==null?void 0:i.headers,r,i==null?void 0:i.contextValues),i)}}function E2(e,t){const n=function(){return jg(this,arguments,function*(){var r,i;const s=yield Bi(e);(r=t==null?void 0:t.onHeader)===null||r===void 0||r.call(t,s.header),yield Bi(yield*Fg(k2(s.message))),(i=t==null?void 0:t.onTrailer)===null||i===void 0||i.call(t,s.trailer)})}()[Symbol.asyncIterator]();return{[Symbol.asyncIterator]:()=>({next:()=>n.next()})}}function Ug(...e){const t=new AbortController,n=e.filter(i=>i!==void 0).concat(t.signal);for(const i of n){if(i.aborted){r.apply(i);break}i.addEventListener("abort",r)}function r(){t.signal.aborted||t.abort(N2(this));for(const i of n)i.removeEventListener("abort",r)}return t}function Ag(e){const t=new AbortController,n=()=>{t.abort(new ge("the operation timed out",ie.DeadlineExceeded))};let r;return e!==void 0&&(e<=0?n():r=setTimeout(n,e)),{signal:t.signal,cleanup:()=>clearTimeout(r)}}function N2(e){if(!e.aborted)return;if(e.reason!==void 0)return e.reason;const t=new Error("This operation was aborted");return t.name="AbortError",t}function Wh(){return{get(e){return e.id in this?this[e.id]:e.defaultValue},set(e,t){return this[e.id]=t,this},delete(e){return delete this[e.id],this}}}const Wa=128;function Jh(e){const t=new Headers,n=new TextDecoder().decode(e).split(`\r +`);for(const r of n){if(r==="")continue;const i=r.indexOf(":");if(i>0){const s=r.substring(0,i).trim(),o=r.substring(i+1).trim();t.append(s,o)}}return t}const zg="Content-Type",Bg="Grpc-Timeout",Vi="Grpc-Status",L2="Grpc-Message",Vg="Grpc-Status-Details-Bin",Hg="X-User-Agent",$g="X-Grpc-Web",Qg="application/grpc-web+proto",Wg="application/grpc-web+json";class En extends jt{constructor(t){super(),this.code=0,this.message="",this.details=[],q.util.initPartial(t,this)}static fromBinary(t,n){return new En().fromBinary(t,n)}static fromJson(t,n){return new En().fromJson(t,n)}static fromJsonString(t,n){return new En().fromJsonString(t,n)}static equals(t,n){return q.util.equals(En,t,n)}}En.runtime=q;En.typeName="google.rpc.Status";En.fields=q.util.newFieldList(()=>[{no:1,name:"code",kind:"scalar",T:5},{no:2,name:"message",kind:"scalar",T:9},{no:3,name:"details",kind:"message",T:en,repeated:!0}]);const Jg="0";function T2(e){var t;const n=e.get(Vg);if(n!=null){const i=Lg(n,En);if(i.code==0)return;const s=new ge(i.message,i.code,e);return s.details=i.details.map(o=>({type:o.typeUrl.substring(o.typeUrl.lastIndexOf("/")+1),value:o.value})),s}const r=e.get(Vi);if(r!=null){if(r===Jg)return;const i=parseInt(r,10);return i in ie?new ge(decodeURIComponent((t=e.get(L2))!==null&&t!==void 0?t:""),i,e):new ge(`invalid grpc-status: ${r}`,ie.Internal,e)}}function Kh(e,t,n){const r=typeof t=="string"?t:t.typeName,i=typeof n=="string"?n:n.name;return e.toString().replace(/\/?$/,`/${r}/${i}`)}function P2(e,t){return t instanceof e?t:new e(t)}function Kg(e,t){function n(r){return r.done===!0?r:{done:r.done,value:P2(e,r.value)}}return{[Symbol.asyncIterator](){const r=t[Symbol.asyncIterator](),i={next:()=>r.next().then(n)};return r.throw!==void 0&&(i.throw=s=>r.throw(s).then(n)),r.return!==void 0&&(i.return=s=>r.return(s).then(n)),i}}}function I2(e,t){var n;return(n=t==null?void 0:t.concat().reverse().reduce((r,i)=>i(r),e))!==null&&n!==void 0?n:e}function Zg(e){var t;const n=Object.assign({},e);return(t=n.ignoreUnknownFields)!==null&&t!==void 0||(n.ignoreUnknownFields=!0),n}function Zh(e,t,n,r){const i=t?Gh(e.I,r):qh(e.I,n);return{parse:(t?Gh(e.O,r):qh(e.O,n)).parse,serialize:i.serialize}}function Gh(e,t){return{parse(n){try{return e.fromBinary(n,t)}catch(r){const i=r instanceof Error?r.message:String(r);throw new ge(`parse binary: ${i}`,ie.Internal)}},serialize(n){try{return n.toBinary(t)}catch(r){const i=r instanceof Error?r.message:String(r);throw new ge(`serialize binary: ${i}`,ie.Internal)}}}}function qh(e,t){var n,r;const i=(n=t==null?void 0:t.textEncoder)!==null&&n!==void 0?n:new TextEncoder,s=(r=t==null?void 0:t.textDecoder)!==null&&r!==void 0?r:new TextDecoder,o=Zg(t);return{parse(l){try{const a=s.decode(l);return e.fromJsonString(a,o)}catch(a){throw ge.from(a,ie.InvalidArgument)}},serialize(l){try{const a=l.toJsonString(o);return i.encode(a)}catch(a){throw ge.from(a,ie.Internal)}}}}function Gg(e){const t=I2(e.next,e.interceptors),[n,r,i]=R2(e),s=Object.assign(Object.assign({},e.req),{message:P2(e.req.method.I,e.req.message),signal:n});return t(s).then(o=>(i(),o),r)}function qg(e){const t=I2(e.next,e.interceptors),[n,r,i]=R2(e),s=Object.assign(Object.assign({},e.req),{message:Kg(e.req.method.I,e.req.message),signal:n});let o=!1;return n.addEventListener("abort",function(){var l,a;const u=e.req.message[Symbol.asyncIterator]();o||(l=u.throw)===null||l===void 0||l.call(u,this.reason).catch(()=>{}),(a=u.return)===null||a===void 0||a.call(u).catch(()=>{})}),t(s).then(l=>Object.assign(Object.assign({},l),{message:{[Symbol.asyncIterator](){const a=l.message[Symbol.asyncIterator]();return{next(){return a.next().then(u=>(u.done==!0&&(o=!0,i()),u),r)}}}}}),r)}function R2(e){const{signal:t,cleanup:n}=Ag(e.timeoutMs),r=Ug(e.signal,t);return[r.signal,function(s){const o=ge.from(t.aborted?N2(t):s);return r.abort(o),n(),Promise.reject(o)},function(){n(),r.abort()}]}function Xg(){try{new Headers}catch{throw new Error("connect-web requires the fetch API. Are you running on an old version of Node.js? Node.js is not supported in Connect for Web - please stay tuned for Connect for Node.")}}function Xh(e,t){const n=T2(e);if(n)throw t.forEach((r,i)=>{n.metadata.append(i,r)}),n;if(!t.has(Vi)&&!e.has(Vi))throw new ge("protocol error: missing status",ie.Internal)}function Yh(e,t,n,r){const i=new Headers(n??{});return i.set(zg,e?Qg:Wg),i.set($g,"1"),i.set(Hg,"connect-es/1.6.1"),t!==void 0&&i.set(Bg,`${t}m`),i}function Yg(e){switch(e){case 400:return ie.Internal;case 401:return ie.Unauthenticated;case 403:return ie.PermissionDenied;case 404:return ie.Unimplemented;case 429:return ie.Unavailable;case 502:return ie.Unavailable;case 503:return ie.Unavailable;case 504:return ie.Unavailable;default:return ie.Unknown}}function e1(e,t){var n;if(e>=200&&e<300)return{foundStatus:t.has(Vi),headerError:T2(t)};throw new ge(decodeURIComponent((n=t.get(L2))!==null&&n!==void 0?n:`HTTP ${e}`),Yg(e),t)}var Lr=function(e){return this instanceof Lr?(this.v=e,this):new Lr(e)},e5=function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),i,s=[];return i={},l("next"),l("throw"),l("return",o),i[Symbol.asyncIterator]=function(){return this},i;function o(p){return function(x){return Promise.resolve(x).then(p,f)}}function l(p,x){r[p]&&(i[p]=function(C){return new Promise(function(L,m){s.push([p,C,L,m])>1||a(p,C)})},x&&(i[p]=x(i[p])))}function a(p,x){try{u(r[p](x))}catch(C){d(s[0][3],C)}}function u(p){p.value instanceof Lr?Promise.resolve(p.value.v).then(c,f):d(s[0][2],p)}function c(p){a("next",p)}function f(p){a("throw",p)}function d(p,x){p(x),s.shift(),s.length&&a(s[0][0],s[0][1])}};function t5(e){var t;Xg();const n=(t=e.useBinaryFormat)!==null&&t!==void 0?t:!0;return{async unary(r,i,s,o,l,a,u){var c;const{serialize:f,parse:d}=Zh(i,n,e.jsonOptions,e.binaryOptions);return o=o===void 0?e.defaultTimeoutMs:o<=0?void 0:o,await Gg({interceptors:e.interceptors,signal:s,timeoutMs:o,req:{stream:!1,service:r,method:i,url:Kh(e.baseUrl,r,i),init:{method:"POST",credentials:(c=e.credentials)!==null&&c!==void 0?c:"same-origin",redirect:"error",mode:"cors"},header:Yh(n,o,l),contextValues:u??Wh(),message:a},next:async p=>{var x;const L=await((x=e.fetch)!==null&&x!==void 0?x:globalThis.fetch)(p.url,Object.assign(Object.assign({},p.init),{headers:p.header,signal:p.signal,body:$h(0,f(p.message))})),{headerError:m}=e1(L.status,L.headers);if(!L.body)throw m!==void 0?m:"missing response body";const h=Hh(L.body).getReader();let y,E;for(;;){const I=await h.read();if(I.done)break;const{flags:F,data:j}=I.value;if((F&Vh)===Vh)throw new ge("protocol error: received unsupported compressed output",ie.Internal);if(F===Wa){if(y!==void 0)throw"extra trailer";y=Jh(j);continue}if(E!==void 0)throw new ge("extra message",ie.Unimplemented);E=d(j)}if(y===void 0)throw m!==void 0?m:new ge("missing trailer",L.headers.has(Vi)?ie.Unimplemented:ie.Unknown);if(Xh(y,L.headers),E===void 0)throw new ge("missing message",y.has(Vi)?ie.Unimplemented:ie.Unknown);return{stream:!1,service:r,method:i,header:L.headers,message:E,trailer:y}}})},async stream(r,i,s,o,l,a,u){var c;const{serialize:f,parse:d}=Zh(i,n,e.jsonOptions,e.binaryOptions);function p(C,L,m,h,y){return e5(this,arguments,function*(){const I=Hh(C).getReader();if(L){if(!(yield Lr(I.read())).done)throw"extra data for trailers-only";return yield Lr(void 0)}let F=!1;for(;;){const j=yield Lr(I.read());if(j.done)break;const{flags:g,data:_}=j.value;if((g&Wa)===Wa){if(F)throw"extra trailer";F=!0;const M=Jh(_);Xh(M,h),M.forEach((Q,ne)=>m.set(ne,Q));continue}if(F)throw"extra message";yield yield Lr(d(_))}if("throwIfAborted"in y&&y.throwIfAborted(),!F)throw"missing trailer"})}async function x(C){if(i.kind!=tn.ServerStreaming)throw"The fetch API does not support streaming request bodies";const L=await C[Symbol.asyncIterator]().next();if(L.done==!0)throw"missing request message";return $h(0,f(L.value))}return o=o===void 0?e.defaultTimeoutMs:o<=0?void 0:o,qg({interceptors:e.interceptors,signal:s,timeoutMs:o,req:{stream:!0,service:r,method:i,url:Kh(e.baseUrl,r,i),init:{method:"POST",credentials:(c=e.credentials)!==null&&c!==void 0?c:"same-origin",redirect:"error",mode:"cors"},header:Yh(n,o,l),contextValues:u??Wh(),message:a},next:async C=>{var L;const h=await((L=e.fetch)!==null&&L!==void 0?L:globalThis.fetch)(C.url,Object.assign(Object.assign({},C.init),{headers:C.header,signal:C.signal,body:await x(C.message)})),{foundStatus:y,headerError:E}=e1(h.status,h.headers);if(E!=null)throw E;if(!h.body)throw"missing response body";const I=new Headers;return Object.assign(Object.assign({},C),{header:h.headers,trailer:I,message:p(h.body,y,I,h.headers,C.signal)})}})}}}const n5={typeName:"media.MediaService",methods:{getDirectory:{name:"GetDirectory",I:Js,O:$u,kind:tn.Unary},getVideo:{name:"GetVideo",I:Ks,O:Qu,kind:tn.Unary}}},r5={typeName:"subtitle.SubtitleService",methods:{getSubtitle:{name:"GetSubtitle",I:Al,O:sc,kind:tn.Unary}}},i5=J6([{path:"/",element:w.jsx(Z8,{}),children:[{path:"home",element:w.jsx(G8,{})},{path:"media",element:w.jsx(Cg,{})},{path:"video",element:w.jsx(kg,{})}]}]),t1=t5({baseUrl:"http://localhost:3000"}),s5={MediaServiceClient:Qh(n5,t1),SubtitleServiceClient:Qh(r5,t1)},o5=new tg;Ep(document.getElementById("root")).render(w.jsx(T.StrictMode,{children:w.jsx(Kp.Provider,{value:s5,children:w.jsx(og,{client:o5,children:w.jsx(n8,{router:i5})})})})); diff --git a/web/dist/index.html b/web/dist/index.html new file mode 100644 index 0000000..174e41d --- /dev/null +++ b/web/dist/index.html @@ -0,0 +1,21 @@ + + + + + + + + + + + Subtle + + + + +
+ + diff --git a/web/dist/robots.txt b/web/dist/robots.txt new file mode 100644 index 0000000..c2a49f4 --- /dev/null +++ b/web/dist/robots.txt @@ -0,0 +1,2 @@ +User-agent: * +Allow: / diff --git a/web/index.html b/web/index.html index 2d5b02a..e55a857 100644 --- a/web/index.html +++ b/web/index.html @@ -4,6 +4,7 @@ +
  • - +
  • - +
    • - +
    • - +
    -

    - Drop Your Subtitle -

    +
    @@ -120,11 +136,11 @@ export function Root() { cx="120" cy="120" r="104" - stroke-width="16" + strokeWidth="16" fill="none" - stroke-linecap="round" - stroke-dasharray="654" - stroke-dashoffset="100" + strokeLinecap="round" + strokeDasharray="654" + strokeDashoffset="100" transform="rotate(90 120 120)" /> @@ -168,11 +184,7 @@ export function Root() {
-

Drop

-

Your

-

- Subtitle -

+
diff --git a/web/tsconfig.app.tsbuildinfo b/web/tsconfig.app.tsbuildinfo new file mode 100644 index 0000000..81eb3f1 --- /dev/null +++ b/web/tsconfig.app.tsbuildinfo @@ -0,0 +1 @@ +{"root":["./src/main.tsx","./src/vite-env.d.ts","./src/context/popover.ts","./src/context/proto.ts","./src/routes/root.tsx","./src/routes/home/home.tsx","./src/routes/media/media.tsx","./src/routes/video/video.tsx","./src/utils/react_responsive.tsx","./gen/proto/media/media_connect.ts","./gen/proto/media/media_pb.ts","./gen/proto/subtitle/subtitle_connect.ts","./gen/proto/subtitle/subtitle_pb.ts"],"version":"5.6.3"} \ No newline at end of file diff --git a/web/tsconfig.node.tsbuildinfo b/web/tsconfig.node.tsbuildinfo new file mode 100644 index 0000000..75ea001 --- /dev/null +++ b/web/tsconfig.node.tsbuildinfo @@ -0,0 +1 @@ +{"root":["./vite.config.ts"],"version":"5.6.3"} \ No newline at end of file