Files

78 lines
254 KiB
JavaScript
Raw Permalink Normal View History

2026-04-11 09:24:21 +02:00
function mf(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const l in r)if(l!=="default"&&!(l in e)){const i=Object.getOwnPropertyDescriptor(r,l);i&&Object.defineProperty(e,l,i.get?i:{enumerable:!0,get:()=>r[l]})}}}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 l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const i of l)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(l){const i={};return l.integrity&&(i.integrity=l.integrity),l.referrerPolicy&&(i.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?i.credentials="include":l.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(l){if(l.ep)return;l.ep=!0;const i=n(l);fetch(l.href,i)}})();function vf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Du={exports:{}},ni={},Fu={exports:{}},W={};/**
* @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 Wr=Symbol.for("react.element"),gf=Symbol.for("react.portal"),yf=Symbol.for("react.fragment"),xf=Symbol.for("react.strict_mode"),Sf=Symbol.for("react.profiler"),wf=Symbol.for("react.provider"),_f=Symbol.for("react.context"),kf=Symbol.for("react.forward_ref"),jf=Symbol.for("react.suspense"),Nf=Symbol.for("react.memo"),Cf=Symbol.for("react.lazy"),sa=Symbol.iterator;function Ef(e){return e===null||typeof e!="object"?null:(e=sa&&e[sa]||e["@@iterator"],typeof e=="function"?e:null)}var $u={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Uu=Object.assign,Au={};function Qn(e,t,n){this.props=e,this.context=t,this.refs=Au,this.updater=n||$u}Qn.prototype.isReactComponent={};Qn.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")};Qn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function bu(){}bu.prototype=Qn.prototype;function ns(e,t,n){this.props=e,this.context=t,this.refs=Au,this.updater=n||$u}var rs=ns.prototype=new bu;rs.constructor=ns;Uu(rs,Qn.prototype);rs.isPureReactComponent=!0;var aa=Array.isArray,Bu=Object.prototype.hasOwnProperty,ls={current:null},Wu={key:!0,ref:!0,__self:!0,__source:!0};function Vu(e,t,n){var r,l={},i=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(i=""+t.key),t)Bu.call(t,r)&&!Wu.hasOwnProperty(r)&&(l[r]=t[r]);var u=arguments.length-2;if(u===1)l.children=n;else if(1<u){for(var a=Array(u),c=0;c<u;c++)a[c]=arguments[c+2];l.children=a}if(e&&e.defaultProps)for(r in u=e.defaultProps,u)l[r]===void 0&&(l[r]=u[r]);return{$$typeof:Wr,type:e,key:i,ref:o,props:l,_owner:ls.current}}function Pf(e,t){return{$$typeof:Wr,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function is(e){return typeof e=="object"&&e!==null&&e.$$typeof===Wr}function Tf(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var ua=/\/+/g;function ji(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Tf(""+e.key):t.toString(36)}function yl(e,t,n,r,l){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(i){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case Wr:case gf:o=!0}}if(o)return o=e,l=l(o),e=r===""?"."+ji(o,0):r,aa(l)?(n="",e!=null&&(n=e.replace(ua,"$&/")+"/"),yl(l,t,n,"",function(c){return c})):l!=null&&(is(l)&&(l=Pf(l,n+(!l.key||o&&o.key===l.key?"":(""+l.key).replace(ua,"$&/")+"/")+e)),t.push(l)),1;if(o=0,r=r===""?".":r+":",aa(e))for(var u=0;u<e.length;u++){i=e[u];var a=r+ji(i,u);o+=yl(i,t,n,a,l)}else if(a=Ef(e),typeof a=="function")for(e=a.call(e),u=0;!(i=e.next()).done;)i=i.value,a=r+ji(i,u++),o+=yl(i,t,n,a,l);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}function tl(e,t,n){if(e==null)return e;var r=[],l=0;return yl(e,r,"","",function(i){return t.call(n,i,l++)}),r}function If(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Me={current:null},xl={transition:null},Lf={ReactCurrentDispatcher:Me,ReactCurrentBatchConfig:xl,ReactCurrentOwner:ls};function Hu(){throw Error("act(...) is not supported in production builds of React.")}W.Children={map:tl,forEach:function(e,t,n){tl(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return tl(e,function(){t++}),t},toArray:function(e){return tl(e,function(t){return t})||[]},only:function(e){if(!is(e))throw Error("React.Children.only expected to receive a sing
* @license React
* react-jsx-runtime.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 Of=h,zf=Symbol.for("react.element"),Df=Symbol.for("react.fragment"),Ff=Object.prototype.hasOwnProperty,$f=Of.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Uf={key:!0,ref:!0,__self:!0,__source:!0};function qu(e,t,n){var r,l={},i=null,o=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)Ff.call(t,r)&&!Uf.hasOwnProperty(r)&&(l[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)l[r]===void 0&&(l[r]=t[r]);return{$$typeof:zf,type:e,key:i,ref:o,props:l,_owner:$f.current}}ni.Fragment=Df;ni.jsx=qu;ni.jsxs=qu;Du.exports=ni;var s=Du.exports,Gu={exports:{}},Ge={},Ku={exports:{}},Qu={};/**
* @license React
* scheduler.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.
*/(function(e){function t(w,R){var U=w.length;w.push(R);e:for(;0<U;){var Y=U-1>>>1,J=w[Y];if(0<l(J,R))w[Y]=R,w[U]=J,U=Y;else break e}}function n(w){return w.length===0?null:w[0]}function r(w){if(w.length===0)return null;var R=w[0],U=w.pop();if(U!==R){w[0]=U;e:for(var Y=0,J=w.length,Ae=J>>>1;Y<Ae;){var D=2*(Y+1)-1,Z=w[D],B=D+1,de=w[B];if(0>l(Z,U))B<J&&0>l(de,Z)?(w[Y]=de,w[B]=U,Y=B):(w[Y]=Z,w[D]=U,Y=D);else if(B<J&&0>l(de,U))w[Y]=de,w[B]=U,Y=B;else break e}}return R}function l(w,R){var U=w.sortIndex-R.sortIndex;return U!==0?U:w.id-R.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,u=o.now();e.unstable_now=function(){return o.now()-u}}var a=[],c=[],m=1,d=null,p=3,y=!1,x=!1,S=!1,N=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,f=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function g(w){for(var R=n(c);R!==null;){if(R.callback===null)r(c);else if(R.startTime<=w)r(c),R.sortIndex=R.expirationTime,t(a,R);else break;R=n(c)}}function _(w){if(S=!1,g(w),!x)if(n(a)!==null)x=!0,V(P);else{var R=n(c);R!==null&&ee(_,R.startTime-w)}}function P(w,R){x=!1,S&&(S=!1,v(z),z=-1),y=!0;var U=p;try{for(g(R),d=n(a);d!==null&&(!(d.expirationTime>R)||w&&!Q());){var Y=d.callback;if(typeof Y=="function"){d.callback=null,p=d.priorityLevel;var J=Y(d.expirationTime<=R);R=e.unstable_now(),typeof J=="function"?d.callback=J:d===n(a)&&r(a),g(R)}else r(a);d=n(a)}if(d!==null)var Ae=!0;else{var D=n(c);D!==null&&ee(_,D.startTime-R),Ae=!1}return Ae}finally{d=null,p=U,y=!1}}var I=!1,E=null,z=-1,G=5,F=-1;function Q(){return!(e.unstable_now()-F<G)}function xe(){if(E!==null){var w=e.unstable_now();F=w;var R=!0;try{R=E(!0,w)}finally{R?L():(I=!1,E=null)}}else I=!1}var L;if(typeof f=="function")L=function(){f(xe)};else if(typeof MessageChannel<"u"){var H=new MessageChannel,K=H.port2;H.port1.onmessage=xe,L=function(){K.postMessage(null)}}else L=function(){N(xe,0)};function V(w){E=w,I||(I=!0,L())}function ee(w,R){z=N(function(){w(e.unstable_now())},R)}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(w){w.callback=null},e.unstable_continueExecution=function(){x||y||(x=!0,V(P))},e.unstable_forceFrameRate=function(w){0>w||125<w?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):G=0<w?Math.floor(1e3/w):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(a)},e.unstable_next=function(w){switch(p){case 1:case 2:case 3:var R=3;break;default:R=p}var U=p;p=R;try{return w()}finally{p=U}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(w,R){switch(w){case 1:case 2:case 3:case 4:case 5:break;default:w=3}var U=p;p=w;try{return R()}finally{p=U}},e.unstable_scheduleCallback=function(w,R,U){var Y=e.unstable_now();switch(typeof U=="object"&&U!==null?(U=U.delay,U=typeof U=="number"&&0<U?Y+U:Y):U=Y,w){case 1:var J=-1;break;case 2:J=250;break;case 5:J=1073741823;break;case 4:J=1e4;break;default:J=5e3}return J=U+J,w={id:m++,callback:R,priorityLevel:w,startTime:U,expirationTime:J,sortIndex:-1},U>Y?(w.sortIndex=U,t(c,w),n(a)===null&&w===n(c)&&(S?(v(z),z=-1):S=!0,ee(_,U-Y))):(w.sortIndex=J,t(a,w),x||y||(x=!0,V(P))),w},e.unstable_shouldYield=Q,e.unstable_wrapCallback=function(w){var R=p;return function(){var U=p;p=R;try{return w.apply(this,arguments)}finally{p=U}}}})(Qu);Ku.exports=Qu;var Af=Ku.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 bf=h,qe=Af;function C(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Yu=new Set,jr={};function pn(e,t){Bn(e,t),Bn(e+"Capture",t)}function Bn(e,t){for(jr[e]=t,e=0;e<t.length;e++)Yu.add(t[e])}var _t=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),eo=Object.prototype.hasOwnProperty,Bf=/^[: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]*$/,ca={},da={};function Wf(e){return eo.call(da,e)?!0:eo.call(ca,e)?!1:Bf.test(e)?da[e]=!0:(ca[e]=!0,!1)}function Vf(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 Hf(e,t,n,r){if(t===null||typeof t>"u"||Vf(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 Oe(e,t,n,r,l,i,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var Ne={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ne[e]=new Oe(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ne[t]=new Oe(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ne[e]=new Oe(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ne[e]=new Oe(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){Ne[e]=new Oe(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ne[e]=new Oe(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ne[e]=new Oe(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ne[e]=new Oe(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ne[e]=new Oe(e,5,!1,e.toLowerCase(),null,!1,!1)});var os=/[\-:]([a-z])/g;function ss(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-
`+Ni+e}var Ci=!1;function Ei(e,t){if(!e||Ci)return"";Ci=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&typeof c.stack=="string"){for(var l=c.stack.split(`
`),i=r.stack.split(`
`),o=l.length-1,u=i.length-1;1<=o&&0<=u&&l[o]!==i[u];)u--;for(;1<=o&&0<=u;o--,u--)if(l[o]!==i[u]){if(o!==1||u!==1)do if(o--,u--,0>u||l[o]!==i[u]){var a=`
`+l[o].replace(" at new "," at ");return e.displayName&&a.includes("<anonymous>")&&(a=a.replace("<anonymous>",e.displayName)),a}while(1<=o&&0<=u);break}}}finally{Ci=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?dr(e):""}function qf(e){switch(e.tag){case 5:return dr(e.type);case 16:return dr("Lazy");case 13:return dr("Suspense");case 19:return dr("SuspenseList");case 0:case 2:case 15:return e=Ei(e.type,!1),e;case 11:return e=Ei(e.type.render,!1),e;case 1:return e=Ei(e.type,!0),e;default:return""}}function lo(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 jn:return"Fragment";case kn:return"Portal";case to:return"Profiler";case us:return"StrictMode";case no:return"Suspense";case ro:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Xu:return(e.displayName||"Context")+".Consumer";case Ju:return(e._context.displayName||"Context")+".Provider";case cs:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ds:return t=e.displayName||null,t!==null?t:lo(e.type)||"Memo";case Rt:t=e._payload,e=e._init;try{return lo(e(t))}catch{}}return null}function Gf(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 lo(t);case 8:return t===us?"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 Kt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ec(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Kf(e){var t=ec(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 l=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(o){r=""+o,i.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 rl(e){e._valueTracker||(e._valueTracker=Kf(e))}function tc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ec(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ll(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function io(e,t){var n=t.checked;return ae({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function pa(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Kt(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 nc(e,t){t=t.checked,t!=null&&as(e,"checked",t,!1)}function oo(e,t){nc(e,t);var n=Kt(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")?so(e,t.type,n):t.hasOwnProperty("defaultValue")&&so(e,t.type,Kt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function ha(e,t,n){if(t.hasOwnProperty("val
`).replace(lh,"")}function dl(e,t,n){if(t=Fa(t),Fa(e)!==t&&n)throw Error(C(425))}function Ul(){}var _o=null,ko=null;function jo(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var No=typeof setTimeout=="function"?setTimeout:void 0,ih=typeof clearTimeout=="function"?clearTimeout:void 0,$a=typeof Promise=="function"?Promise:void 0,oh=typeof queueMicrotask=="function"?queueMicrotask:typeof $a<"u"?function(e){return $a.resolve(null).then(e).catch(sh)}:No;function sh(e){setTimeout(function(){throw e})}function Ai(e,t){var n=t,r=0;do{var l=n.nextSibling;if(e.removeChild(n),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(r===0){e.removeChild(l),Tr(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=l}while(n);Tr(t)}function Bt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Ua(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Jn=Math.random().toString(36).slice(2),pt="__reactFiber$"+Jn,Or="__reactProps$"+Jn,kt="__reactContainer$"+Jn,Co="__reactEvents$"+Jn,ah="__reactListeners$"+Jn,uh="__reactHandles$"+Jn;function nn(e){var t=e[pt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[kt]||n[pt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Ua(e);e!==null;){if(n=e[pt])return n;e=Ua(e)}return t}e=n,n=e.parentNode}return null}function qr(e){return e=e[pt]||e[kt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Pn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(C(33))}function si(e){return e[Or]||null}var Eo=[],Tn=-1;function Jt(e){return{current:e}}function le(e){0>Tn||(e.current=Eo[Tn],Eo[Tn]=null,Tn--)}function ne(e,t){Tn++,Eo[Tn]=e.current,e.current=t}var Qt={},Ie=Jt(Qt),Fe=Jt(!1),an=Qt;function Wn(e,t){var n=e.type.contextTypes;if(!n)return Qt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},i;for(i in n)l[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function $e(e){return e=e.childContextTypes,e!=null}function Al(){le(Fe),le(Ie)}function Aa(e,t,n){if(Ie.current!==Qt)throw Error(C(168));ne(Ie,t),ne(Fe,n)}function Vc(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(C(108,Gf(e)||"Unknown",l));return ae({},n,r)}function bl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Qt,an=Ie.current,ne(Ie,e),ne(Fe,Fe.current),!0}function ba(e,t,n){var r=e.stateNode;if(!r)throw Error(C(169));n?(e=Vc(e,t,an),r.__reactInternalMemoizedMergedChildContext=e,le(Fe),le(Ie),ne(Ie,e)):le(Fe),ne(Fe,n)}var yt=null,ai=!1,bi=!1;function Hc(e){yt===null?yt=[e]:yt.push(e)}function ch(e){ai=!0,Hc(e)}function Xt(){if(!bi&&yt!==null){bi=!0;var e=0,t=X;try{var n=yt;for(X=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}yt=null,ai=!1}catch(l){throw yt!==null&&(yt=yt.slice(e+1)),vc(ps,Xt),l}finally{X=t,bi=!1}}return null}var In=[],Ln=0,Bl=null,Wl=0,Ye=[],Je=0,un=null,xt=1,St="";function en(e,t){In[Ln++]=Wl,In[Ln++]=Bl,Bl=e,Wl=t}function qc(e,t,n){Ye[Je++]=xt,Ye[Je++]=St,Ye[Je++]=un,un=e;var r=xt;e=St;var l=32-st(r)-1;r&=~(1<<l),n+=1;var i=32-st(t)+l;if(30<i){var o=l-l%5;i=(r&(1<<o)-1).toString(32),r>>=o,l-=o,xt=1<<32-st(t)+l|n<<l|r,St=i+e}else xt=1<<i|n<<l|r,St=e}function _s(e){e.return!==null&&(en(e,1),qc(e,1,0))}function ks(e){for(;e===Bl;)Bl=In[--Ln],In[Ln]=null,Wl=In[--Ln],In[Ln]=null;for(;e===un;)un=Ye[--Je],Ye[Je]=null,St=Ye[--Je],Ye[Je]=null,xt=Ye[--Je],Ye[Je]=null}var He=null,Ve=null,ie=!1,ot=null;function Gc(e,t){var n=Xe(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,
Error generating stack: `+i.message+`
`+i.stack}return{value:e,source:t,stack:l,digest:null}}function qi(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Mo(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var xh=typeof WeakMap=="function"?WeakMap:Map;function Sd(e,t,n){n=wt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Jl||(Jl=!0,Wo=r),Mo(e,t)},n}function wd(e,t,n){n=wt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var l=t.value;n.payload=function(){return r(l)},n.callback=function(){Mo(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Mo(e,t),typeof r!="function"&&(Vt===null?Vt=new Set([this]):Vt.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function Ja(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new xh;var l=new Set;r.set(t,l)}else l=r.get(t),l===void 0&&(l=new Set,r.set(t,l));l.has(n)||(l.add(n),e=Mh.bind(null,e,t,n),t.then(e,e))}function Xa(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Za(e,t,n,r,l){return e.mode&1?(e.flags|=65536,e.lanes=l,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=wt(-1,1),t.tag=2,Wt(n,t,1))),n.lanes|=1),e)}var Sh=Ct.ReactCurrentOwner,De=!1;function Le(e,t,n,r){t.child=e===null?Yc(t,null,n,r):Hn(t,e.child,n,r)}function eu(e,t,n,r,l){n=n.render;var i=t.ref;return Un(t,l),r=Os(e,t,n,r,i,l),n=zs(),e!==null&&!De?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,Nt(e,t,l)):(ie&&n&&_s(t),t.flags|=1,Le(e,t,r,l),t.child)}function tu(e,t,n,r,l){if(e===null){var i=n.type;return typeof i=="function"&&!Hs(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,_d(e,t,i,r,l)):(e=Tl(n.type,null,r,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&l)){var o=i.memoizedProps;if(n=n.compare,n=n!==null?n:Lr,n(o,r)&&e.ref===t.ref)return Nt(e,t,l)}return t.flags|=1,e=qt(i,r),e.ref=t.ref,e.return=t,t.child=e}function _d(e,t,n,r,l){if(e!==null){var i=e.memoizedProps;if(Lr(i,r)&&e.ref===t.ref)if(De=!1,t.pendingProps=r=i,(e.lanes&l)!==0)e.flags&131072&&(De=!0);else return t.lanes=e.lanes,Nt(e,t,l)}return Oo(e,t,n,r,l)}function kd(e,t,n){var r=t.pendingProps,l=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ne(On,We),We|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ne(On,We),We|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,ne(On,We),We|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,ne(On,We),We|=r;return Le(e,t,l,n),t.child}function jd(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Oo(e,t,n,r,l){var i=$e(n)?an:Ie.current;return i=Wn(t,i),Un(t,l),n=Os(e,t,n,r,i,l),r=zs(),e!==null&&!De?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,Nt(e,t,l)):(ie&&r&&_s(t),t.flags|=1,Le(e,t,n,l),t.child)}function nu(e,t,n,r,l){if($e(n)){var i=!0;bl(t)}else i=!1;if(Un(t,l),t.stateNode===null)Cl(e,t),xd(t,n,r),Ro(t,n,r,l),r=!0;else if(e===null){var o=t.stateNode,u=t.memoizedProps;o.props=u;var a=o.context,c=n.contextType;typeof c=="object"&&c!==null?c=et(c):(c=$e(n)?an:Ie.current,c=Wn(t,c));var m=n.getDerivedStateFromProps,d=typeof m=="function"||typeof o.getSnapshotBeforeUpdate=="function";d||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(u!==r||a!==c)&&Ya(t,o,r,c),Mt=!1;var p=t.memoizedState;o.state=p,ql(t,r,o,l),a=t.memoizedState,u!==r||p!==a||Fe.current||Mt?(typeof m=="function"&&(Lo(t,n,m,r),a=t.memoizedState),(u=Mt||Qa(t,n,u,r,p,a,c))?(d||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.
* @remix-run/router v1.23.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 br(){return br=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},br.apply(this,arguments)}var $t;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})($t||($t={}));const vu="popstate";function Hh(e){e===void 0&&(e={});function t(r,l){let{pathname:i,search:o,hash:u}=r.location;return Go("",{pathname:i,search:o,hash:u},l.state&&l.state.usr||null,l.state&&l.state.key||"default")}function n(r,l){return typeof l=="string"?l:ti(l)}return Gh(t,n,null,e)}function pe(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Ys(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function qh(){return Math.random().toString(36).substr(2,8)}function gu(e,t){return{usr:e.state,key:e.key,idx:t}}function Go(e,t,n,r){return n===void 0&&(n=null),br({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Xn(t):t,{state:n,key:t&&t.key||r||qh()})}function ti(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 Xn(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 Gh(e,t,n,r){r===void 0&&(r={});let{window:l=document.defaultView,v5Compat:i=!1}=r,o=l.history,u=$t.Pop,a=null,c=m();c==null&&(c=0,o.replaceState(br({},o.state,{idx:c}),""));function m(){return(o.state||{idx:null}).idx}function d(){u=$t.Pop;let N=m(),v=N==null?null:N-c;c=N,a&&a({action:u,location:S.location,delta:v})}function p(N,v){u=$t.Push;let f=Go(S.location,N,v);c=m()+1;let g=gu(f,c),_=S.createHref(f);try{o.pushState(g,"",_)}catch(P){if(P instanceof DOMException&&P.name==="DataCloneError")throw P;l.location.assign(_)}i&&a&&a({action:u,location:S.location,delta:1})}function y(N,v){u=$t.Replace;let f=Go(S.location,N,v);c=m();let g=gu(f,c),_=S.createHref(f);o.replaceState(g,"",_),i&&a&&a({action:u,location:S.location,delta:0})}function x(N){let v=l.location.origin!=="null"?l.location.origin:l.location.href,f=typeof N=="string"?N:ti(N);return f=f.replace(/ $/,"%20"),pe(v,"No window.location.(origin|href) available to create URL for href: "+f),new URL(f,v)}let S={get action(){return u},get location(){return e(l,o)},listen(N){if(a)throw new Error("A history only accepts one active listener");return l.addEventListener(vu,d),a=N,()=>{l.removeEventListener(vu,d),a=null}},createHref(N){return t(l,N)},createURL:x,encodeLocation(N){let v=x(N);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:p,replace:y,go(N){return o.go(N)}};return S}var yu;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(yu||(yu={}));function Kh(e,t,n){return n===void 0&&(n="/"),Qh(e,t,n)}function Qh(e,t,n,r){let l=typeof t=="string"?Xn(t):t,i=Js(l.pathname||"/",n);if(i==null)return null;let o=Qd(e);Yh(o);let u=null;for(let a=0;u==null&&a<o.length;++a){let c=am(i);u=im(o[a],c)}return u}function Qd(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let l=(i,o,u)=>{let a={relativePath:u===void 0?i.path||"":u,caseSensitive:i.caseSensitive===!0,childrenIndex:o,route:i};a.relativePath.startsWith("/")&&(pe(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 c=Gt([r,a.relativePath]),m=n.concat(a);i.children&&i.children.length>0&&(pe(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),Qd(i.children,t,m,c)),!(i.path==null&&!i.index)&&t.push({path:c,score:rm(c,i.index),routesMeta:m})};return e.forEach((i,o)=>{var u;if(i.path===""||!((u=i.path)!=null&&u.includes("?")))l(i,o);else for(let a of Yd(i.path))l(i,o,a)}),t}function Yd(e){let t=e.split("/");if(t.length=
* React Router v6.30.3
*
* 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 Br(){return Br=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Br.apply(this,arguments)}const ea=h.createContext(null),ym=h.createContext(null),Zt=h.createContext(null),yi=h.createContext(null),Et=h.createContext({outlet:null,matches:[],isDataRoute:!1}),Xd=h.createContext(null);function xm(e,t){let{relative:n}=t===void 0?{}:t;Zn()||pe(!1);let{basename:r,navigator:l}=h.useContext(Zt),{hash:i,pathname:o,search:u}=tf(e,{relative:n}),a=o;return r!=="/"&&(a=o==="/"?r:Gt([r,o])),l.createHref({pathname:a,search:u,hash:i})}function Zn(){return h.useContext(yi)!=null}function mn(){return Zn()||pe(!1),h.useContext(yi).location}function Zd(e){h.useContext(Zt).static||h.useLayoutEffect(e)}function ta(){let{isDataRoute:e}=h.useContext(Et);return e?Rm():Sm()}function Sm(){Zn()||pe(!1);let e=h.useContext(ea),{basename:t,future:n,navigator:r}=h.useContext(Zt),{matches:l}=h.useContext(Et),{pathname:i}=mn(),o=JSON.stringify(Xs(l,n.v7_relativeSplatPath)),u=h.useRef(!1);return Zd(()=>{u.current=!0}),h.useCallback(function(c,m){if(m===void 0&&(m={}),!u.current)return;if(typeof c=="number"){r.go(c);return}let d=Zs(c,JSON.parse(o),i,m.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:Gt([t,d.pathname])),(m.replace?r.replace:r.push)(d,m.state,m)},[t,r,o,i,e])}function ef(){let{matches:e}=h.useContext(Et),t=e[e.length-1];return t?t.params:{}}function tf(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=h.useContext(Zt),{matches:l}=h.useContext(Et),{pathname:i}=mn(),o=JSON.stringify(Xs(l,r.v7_relativeSplatPath));return h.useMemo(()=>Zs(e,JSON.parse(o),i,n==="path"),[e,o,i,n])}function wm(e,t){return _m(e,t)}function _m(e,t,n,r){Zn()||pe(!1);let{navigator:l}=h.useContext(Zt),{matches:i}=h.useContext(Et),o=i[i.length-1],u=o?o.params:{};o&&o.pathname;let a=o?o.pathnameBase:"/";o&&o.route;let c=mn(),m;if(t){var d;let N=typeof t=="string"?Xn(t):t;a==="/"||(d=N.pathname)!=null&&d.startsWith(a)||pe(!1),m=N}else m=c;let p=m.pathname||"/",y=p;if(a!=="/"){let N=a.replace(/^\//,"").split("/");y="/"+p.replace(/^\//,"").split("/").slice(N.length).join("/")}let x=Kh(e,{pathname:y}),S=Em(x&&x.map(N=>Object.assign({},N,{params:Object.assign({},u,N.params),pathname:Gt([a,l.encodeLocation?l.encodeLocation(N.pathname).pathname:N.pathname]),pathnameBase:N.pathnameBase==="/"?a:Gt([a,l.encodeLocation?l.encodeLocation(N.pathnameBase).pathname:N.pathnameBase])})),i,n,r);return t&&S?h.createElement(yi.Provider,{value:{location:Br({pathname:"/",search:"",hash:"",state:null,key:"default"},m),navigationType:$t.Pop}},S):S}function km(){let e=Lm(),t=vm(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,l={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return h.createElement(h.Fragment,null,h.createElement("h2",null,"Unexpected Application Error!"),h.createElement("h3",{style:{fontStyle:"italic"}},t),n?h.createElement("pre",{style:l},n):null,null)}const jm=h.createElement(km,null);class Nm extends h.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?h.createElement(Et.Provider,{value:this.props.routeContext},h.createElement(Xd.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Cm(e){let{routeContext:t,match:n,children:r}=e,l=h.useContext(ea);return l&&l.static&&l.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(l.staticContext._deepestRenderedBoundaryId=n.route.id
* React Router DOM v6.30.3
*
* 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 Qo(){return Qo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qo.apply(this,arguments)}function Fm(e,t){if(e==null)return{};var n={},r=Object.keys(e),l,i;for(i=0;i<r.length;i++)l=r[i],!(t.indexOf(l)>=0)&&(n[l]=e[l]);return n}function $m(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Um(e,t){return e.button===0&&(!t||t==="_self")&&!$m(e)}const Am=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],bm="6";try{window.__reactRouterVersion=bm}catch{}const Bm="startTransition",_u=Mf[Bm];function Wm(e){let{basename:t,children:n,future:r,window:l}=e,i=h.useRef();i.current==null&&(i.current=Hh({window:l,v5Compat:!0}));let o=i.current,[u,a]=h.useState({action:o.action,location:o.location}),{v7_startTransition:c}=r||{},m=h.useCallback(d=>{c&&_u?_u(()=>a(d)):a(d)},[a,c]);return h.useLayoutEffect(()=>o.listen(m),[o,m]),h.useEffect(()=>Om(r),[r]),h.createElement(zm,{basename:t,children:n,location:u.location,navigationType:u.action,navigator:o,future:r})}const Vm=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Hm=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,bn=h.forwardRef(function(t,n){let{onClick:r,relative:l,reloadDocument:i,replace:o,state:u,target:a,to:c,preventScrollReset:m,viewTransition:d}=t,p=Fm(t,Am),{basename:y}=h.useContext(Zt),x,S=!1;if(typeof c=="string"&&Hm.test(c)&&(x=c,Vm))try{let g=new URL(window.location.href),_=c.startsWith("//")?new URL(g.protocol+c):new URL(c),P=Js(_.pathname,y);_.origin===g.origin&&P!=null?c=P+_.search+_.hash:S=!0}catch{}let N=xm(c,{relative:l}),v=qm(c,{replace:o,state:u,target:a,preventScrollReset:m,relative:l,viewTransition:d});function f(g){r&&r(g),g.defaultPrevented||v(g)}return h.createElement("a",Qo({},p,{href:x||N,onClick:S||i?r:f,ref:n,target:a}))});var ku;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(ku||(ku={}));var ju;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(ju||(ju={}));function qm(e,t){let{target:n,replace:r,state:l,preventScrollReset:i,relative:o,viewTransition:u}=t===void 0?{}:t,a=ta(),c=mn(),m=tf(e,{relative:o});return h.useCallback(d=>{if(Um(d,n)){d.preventDefault();let p=r!==void 0?r:ti(c)===ti(m);a(e,{replace:p,state:l,preventScrollReset:i,relative:o,viewTransition:u})}},[c,a,m,r,l,n,e,i,o,u])}function Gm(e){switch(e){case"complete":return"status-badge status-complete";case"scripted":return"status-badge status-scripted";default:return"status-badge status-draft"}}function Km(){const e=ta(),[t,n]=h.useState([]),[r,l]=h.useState(!0),[i,o]=h.useState(null),[u,a]=h.useState(!1),[c,m]=h.useState(""),[d,p]=h.useState(!1);h.useEffect(()=>{fetch("/api/videos").then(x=>x.json()).then(x=>n(x.videos||[])).catch(x=>o(x.message)).finally(()=>l(!1))},[]);async function y(x){if(x.preventDefault(),!!c.trim()){p(!0);try{const S=await fetch("/api/videos",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({title:c.trim()})});if(!S.ok)throw new Error("Failed");const N=await S.json();e(`/videos/${N.video.id}/edit`)}catch(S){alert(S.message)}finally{p(!1)}}}return s.jsxs("div",{className:"page",children:[s.jsxs("div",{className:"page-header",children:[s.jsx("span",{className:"page-title",children:"VIDEO LIBRARY"}),s.jsx("button",{onClick:()=>{a(!0),m("")},className:"btn-red",children:"+ NEW"})]}),r&&s.jsx("p",{className:"muted",children:"LOADING..."}),i&&s.jsxs("p",{className:"error-text",children:["ERROR: ",i]}),!r&&!i&&s.jsxs("table",{className:"data-table",children:[s.jsx("thead",{children:s.jsxs("tr",{children:[s.jsx("th",{className:"th",children:"ID"}),s.jsx("th",{className:"th",children:"TITLE"}),s.jsx("th",{className:"th",children:"STATUS"}),s.jsx("th",{className:"th",children:"SLIDES"}),s.jsx("th
`):d??"",[i,o]=h.useState(l(t)),u=h.useRef(null);h.useEffect(()=>{o(l(t))},[JSON.stringify(t)]);function a(d){u.current&&clearTimeout(u.current),u.current=setTimeout(()=>{n(e.type==="lines"?d.split(`
`).filter(p=>p.trim()):d)},500)}function c(d){o(d.target.value),a(d.target.value)}function m(){u.current&&(clearTimeout(u.current),u.current=null),n(e.type==="lines"?i.split(`
`).filter(d=>d.trim()):i)}return e.type==="image"?s.jsxs("div",{className:"field-row",children:[s.jsx("label",{className:"field-label",children:e.label}),s.jsxs("div",{style:{display:"flex",gap:6,flex:1},children:[s.jsx("input",{value:i,onChange:c,onBlur:m,placeholder:e.placeholder||"https://…",className:"field-input",style:{flex:1}}),s.jsx("button",{onClick:r,className:"btn-pick",children:"Pick from library"})]})]}):e.type==="latex"?s.jsxs("div",{className:"field-row",children:[s.jsx("label",{className:"field-label",children:e.label}),s.jsxs("div",{style:{flex:1},children:[s.jsx("textarea",{value:i,onChange:c,onBlur:m,placeholder:e.placeholder,rows:3,className:"field-input full resize-v mono"}),e.description&&s.jsx("div",{className:"muted",style:{marginTop:4},children:e.description})]})]}):e.type==="textarea"||e.type==="lines"?s.jsxs("div",{className:"field-row",children:[s.jsx("label",{className:"field-label",children:e.label}),s.jsxs("div",{style:{flex:1},children:[s.jsx("textarea",{value:i,onChange:c,onBlur:m,placeholder:e.placeholder,rows:e.type==="lines"?5:3,className:"field-input full resize-v"}),e.description&&s.jsx("div",{className:"muted",style:{marginTop:4},children:e.description})]})]}):s.jsxs("div",{className:"field-row",children:[s.jsx("label",{className:"field-label",children:e.label}),s.jsx("input",{value:i,onChange:c,onBlur:m,placeholder:e.placeholder,className:"field-input",type:e.type==="number"?"number":"text"})]})}function vg({videoId:e,slide:t,selected:n,onSelect:r,onDelete:l}){const[i,o]=h.useState(!1);function u(m){m.stopPropagation(),o(!0)}function a(m){m.stopPropagation(),l(t.id)}function c(m){m.stopPropagation(),o(!1)}return s.jsxs("div",{className:`strip-item${n?" strip-item--selected":""}`,onClick:r,children:[s.jsx(la,{videoId:e,slide:t,viewportMode:"desktop"}),s.jsxs("div",{className:"strip-info",children:[s.jsx("span",{className:"strip-num",children:t.slide_order}),s.jsx("span",{className:"strip-id",children:t.gnommo_slide_id}),s.jsx("span",{className:"strip-type",children:t.component_key||"—"}),i?s.jsxs("span",{className:"strip-confirm",children:[s.jsx("button",{className:"strip-confirm-yes",onClick:a,children:"DEL"}),s.jsx("button",{className:"strip-confirm-no",onClick:c,children:"NO"})]}):s.jsx("button",{className:"strip-delete",onClick:u,title:"Delete slide",children:"✕"})]})]})}function gg({candidate:e,slide:t,authUser:n,onDelete:r,onPromote:l}){const[i,o]=h.useState(!1),u=n&&n.sub===e.proposed_by,a=n&&["editor","admin"].includes(n.role),c={id:`proposal-${e.id}`,display_mode:e.display_mode||t.display_mode,component_key:e.component_key,props:e.props||{}};return s.jsxs("div",{className:"proposal-card",children:[s.jsx("div",{className:"proposal-card__thumb",children:s.jsx(la,{videoId:t.video_id,slide:c,viewportMode:"desktop"})}),s.jsx("div",{className:"proposal-card__meta",children:s.jsx("div",{className:"proposal-card__by",children:e.proposed_by_name||e.proposed_by})}),s.jsxs("div",{className:"proposal-card__actions",children:[a&&s.jsx("button",{className:"btn-primary",style:{fontSize:7,padding:"3px 8px"},onClick:()=>l(e.id),children:"Promote"}),(u||a)&&!i&&s.jsx("button",{className:"btn-delete",onClick:()=>o(!0),children:"✕"}),i&&s.jsxs("span",{className:"confirm-row",children:[s.jsx("button",{className:"btn-confirm-yes",onClick:()=>r(e.id),children:"Del"}),s.jsx("button",{className:"btn-confirm-no",onClick:()=>o(!1),children:"No"})]})]})]})}function yg({slide:e,onDelete:t,onSave:n,onPickImage:r,imagePickResult:l,onOpenTypePicker:i,candidates:o,authToken:u,authUser:a,onPropose:c,onUpdateCandidate:m,onDeleteCandidate:d,onPromoteCandidate:p}){const y=dg(e.component_key),[x,S]=h.useState(e.props||{}),[N,v]=h.useState(e.presenter_notes??""),[f,g]=h.useState(e.start_time_sec??""),[_,P]=h.useState(e.end_time_sec??""),[I,E]=h.useState("idle"),[z,G]=h.useState(!1),[F,Q]=h.useState(!1),[xe,L]=h.useState({}),[H,K]=h.useState("idle"),V=o==null?void 0:o.find(D=>a&&D.proposed_by===a.sub);h.useEffect(()=>{F&&L(V?V.props||{}:e.props||{})},[F,e.id]);const ee=h.useRef({}),w=h.useRef(null),R=h.u
Example:
[S1]
Welcome to this course. Today we'll cover…
[S2]
Let's start with the fundamentals of`,className:"field-input full resize-v mono"}),s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:14,marginTop:10},children:[n.trim()&&o.length===0&&s.jsx("span",{className:"muted",children:"No [S1]/[S2]… markers found yet."}),o.length>0&&s.jsxs(s.Fragment,{children:[s.jsxs("span",{style:{color:"#00ffff",fontSize:8},children:["Found ",o.length," slide",o.length!==1?"s":"",": ",o.join(" · ")]}),s.jsxs("button",{className:"btn-primary",onClick:()=>t(n,o),children:["Create ",o.length," slides →"]})]})]})]})]})}function Sg(){var xn,tr,nr;const{id:e}=ef(),t=mn(),[n,r]=h.useState(null),[l,i]=h.useState([]),[o,u]=h.useState([]),[a,c]=h.useState([]),[m,d]=h.useState(!0),[p,y]=h.useState(null),[x,S]=h.useState(!1),[N,v]=h.useState(!1),[f,g]=h.useState(null),[_,P]=h.useState(null),[I,E]=h.useState("desktop"),[z,G]=h.useState(0),[F,Q]=h.useState(null),[xe,L]=h.useState(null),[H,K]=h.useState(null),[V,ee]=h.useState(null),[w,R]=h.useState(""),[U,Y]=h.useState("draft"),[J,Ae]=h.useState(""),[D,Z]=h.useState(()=>localStorage.getItem("gnommoeditor_token")),[B,de]=h.useState(()=>{const j=localStorage.getItem("gnommoeditor_token");return j?Zi(j):null}),[be,Pt]=h.useState(!1),[A,Qe]=h.useState(""),[xi,Ce]=h.useState(new Map);h.useEffect(()=>{const $=new URLSearchParams(t.search).get("token");$&&(localStorage.setItem("gnommoeditor_token",$),Z($),de(Zi($)))},[]);function ue(j){u(j.filter($=>($.segment_type??"raw")==="raw")),c(j.filter($=>$.segment_type==="final"))}const ct=h.useCallback(()=>{d(!0),y(null),fetch(`/api/videos/${e}`).then(j=>j.ok?j.json():j.json().then($=>Promise.reject($.error))).then(j=>{r(j.video),i(j.slides||[]),ue(j.narrationSegments||[]),R(j.video.title||""),Y(j.video.status||"draft"),Ae(j.video.course_code||"")}).catch(j=>y(String(j))).finally(()=>d(!1))},[e]);h.useEffect(()=>{ct()},[ct]);async function vn(){S(!0),v(!1);try{(await fetch(`/api/videos/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({title:w,status:U,course_code:J})})).ok&&(v(!0),setTimeout(()=>v(!1),2e3))}finally{S(!1)}}async function Kr(j,$=""){Q(null);const k=cg[j.componentKey],T=k?{...k.props,...k.latexString!==void 0?{latexString:k.latexString}:{}}:{},b=df[j.componentKey]||{},te={...T,...b};$.trim()&&("header"in b?te.header=$.trim():"eyebrow"in b&&(te.eyebrow=$.trim()));const he=await fetch(`/api/videos/${e}/slides`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({component_key:j.componentKey,display_mode:j.displayMode||"fullscreen",props:te})});if(he.ok){const ve=await he.json();i(Sn=>[...Sn,ve.slide]),nt(ve.slide)}}async function Qr(j){if(!xe)return;Q(null);const $=await fetch(`/api/videos/${e}/import-manuscript`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({manuscript:xe,component_key:j.componentKey,display_mode:j.displayMode||"fullscreen"})});if($.ok){const k=await $.json();i(k.slides),L(null)}}function Si(j,$=""){F==="add-single"&&Kr(j,$),F==="import"&&Qr(j),F==="change-type"&&(Q(null),gn(f,{component_key:j.componentKey,display_mode:j.displayMode}))}async function Yr(j){await fetch(`/api/slides/${j}`,{method:"DELETE"}),i($=>$.filter(k=>k.id!==j)),f===j&&g(null)}async function gn(j,$,k){const T=await fetch(`/api/slides/${j}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify($),signal:k});if(!T.ok)throw new Error(`Save failed (${T.status})`);const b=await T.json();i(te=>te.map(he=>he.id===j?b.slide:he)),G(te=>te+1)}function nt(j){g(j.id),P(j.gnommo_slide_id||j.id),Tt(j.id)}async function Tt(j){try{const $=await fetch(`/api/slides/${j}/candidates`);if(!$.ok)return;const k=await $.json();Ce(T=>new Map(T).set(j,k.candidates||[]))}catch{}}async function Jr(j,$){const k=await fetch(`/api/slides/${j}/candidates`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${D}`},body:JSON.stringify($)});if(!k.ok){const T=await k.json().catch(()=>({}));throw new Error(T.error||`HTTP ${k.status}`)}await Tt(j)}async function wi(j,$,k){const T=await fetch(`/ap