autoglm-gui 0.3.0__py3-none-any.whl → 0.3.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- AutoGLM_GUI/static/assets/{about-BLwxpnj3.js → about-C71SI8ZQ.js} +1 -1
- AutoGLM_GUI/static/assets/{chat-6hE5XlIt.js → chat-C6WtEfKW.js} +2 -2
- AutoGLM_GUI/static/assets/{index-FV4SNn_1.js → index-DUCan6m6.js} +1 -1
- AutoGLM_GUI/static/assets/{index-DqDbCfTd.css → index-Dd1xMRCa.css} +1 -1
- AutoGLM_GUI/static/assets/{index-Bt0wYnNv.js → index-RqglIZxV.js} +1 -1
- AutoGLM_GUI/static/index.html +2 -2
- {autoglm_gui-0.3.0.dist-info → autoglm_gui-0.3.1.dist-info}/METADATA +1 -1
- {autoglm_gui-0.3.0.dist-info → autoglm_gui-0.3.1.dist-info}/RECORD +11 -11
- {autoglm_gui-0.3.0.dist-info → autoglm_gui-0.3.1.dist-info}/WHEEL +0 -0
- {autoglm_gui-0.3.0.dist-info → autoglm_gui-0.3.1.dist-info}/entry_points.txt +0 -0
- {autoglm_gui-0.3.0.dist-info → autoglm_gui-0.3.1.dist-info}/licenses/LICENSE +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as o}from"./index-
|
|
1
|
+
import{j as o}from"./index-RqglIZxV.js";function t(){return o.jsx("div",{className:"p-2",children:o.jsx("h3",{children:"About"})})}export{t as component};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as Le,a as Ie,r as g,j as u,b as Ue,s as Oe,c as Me,i as Ae,d as He,e as Ge}from"./index-
|
|
1
|
+
import{g as Le,a as Ie,r as g,j as u,b as Ue,s as Oe,c as Me,i as Ae,d as He,e as Ge}from"./index-RqglIZxV.js";var be={exports:{}};const ze={},Ve=Object.freeze(Object.defineProperty({__proto__:null,default:ze},Symbol.toStringTag,{value:"Module"})),$e=Le(Ve);var We=be.exports,Pe;function Ke(){return Pe||(Pe=1,(function(ae,q){(function(J,Y){ae.exports=Y($e)})(We,(function(J){function Y(n,s){(s==null||s>n.length)&&(s=n.length);for(var e=0,t=Array(s);e<s;e++)t[e]=n[e];return t}function oe(n){if(Array.isArray(n))return n}function Q(n){if(Array.isArray(n))return Y(n)}function _(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function b(n,s){if(!(n instanceof s))throw new TypeError("Cannot call a class as a function")}function G(n,s){for(var e=0;e<s.length;e++){var t=s[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(n,te(t.key),t)}}function S(n,s,e){return s&&G(n.prototype,s),e&&G(n,e),Object.defineProperty(n,"prototype",{writable:!1}),n}function k(n,s){var e=typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(!e){if(Array.isArray(n)||(e=D(n))||s){e&&(n=e);var t=0,r=function(){};return{s:r,n:function(){return t>=n.length?{done:!0}:{done:!1,value:n[t++]}},e:function(l){throw l},f:r}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
2
2
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i,a=!0,o=!1;return{s:function(){e=e.call(n)},n:function(){var l=e.next();return a=l.done,l},e:function(l){o=!0,i=l},f:function(){try{a||e.return==null||e.return()}finally{if(o)throw i}}}}function X(n){var s=re();return function(){var e,t=O(n);if(s){var r=O(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return ee(this,e)}}function F(n,s,e){return(s=te(s))in n?Object.defineProperty(n,s,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[s]=e,n}function O(n){return O=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(s){return s.__proto__||Object.getPrototypeOf(s)},O(n)}function E(n,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(s&&s.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),s&&ne(n,s)}function re(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(re=function(){return!!n})()}function xe(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}function Z(n,s){var e=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(e!=null){var t,r,i,a,o=[],l=!0,c=!1;try{if(i=(e=e.call(n)).next,s!==0)for(;!(l=(t=i.call(e)).done)&&(o.push(t.value),o.length!==s);l=!0);}catch(f){c=!0,r=f}finally{try{if(!l&&e.return!=null&&(a=e.return(),Object(a)!==a))return}finally{if(c)throw r}}return o}}function ye(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
3
3
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function le(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
4
4
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ee(n,s){if(s&&(typeof s=="object"||typeof s=="function"))return s;if(s!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _(n)}function ne(n,s){return ne=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ne(n,s)}function z(n,s){return oe(n)||Z(n,s)||D(n,s)||ye()}function $(n){return Q(n)||xe(n)||D(n)||le()}function ce(n,s){if(typeof n!="object"||!n)return n;var e=n[Symbol.toPrimitive];if(e!==void 0){var t=e.call(n,s);if(typeof t!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}function te(n){var s=ce(n,"string");return typeof s=="symbol"?s:s+""}function ie(n){"@babel/helpers - typeof";return ie=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},ie(n)}function D(n,s){if(n){if(typeof n=="string")return Y(n,s);var e={}.toString.call(n).slice(8,-1);return e==="Object"&&n.constructor&&(e=n.constructor.name),e==="Map"||e==="Set"?Array.from(n):e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?Y(n,s):void 0}}var P,M;function C(n,s){P=n,M=s}function y(n){if(P){for(var s=arguments.length,e=new Array(s>1?s-1:0),t=1;t<s;t++)e[t-1]=arguments[t];P.apply(void 0,[n].concat(e))}}function m(n){if(M){for(var s=arguments.length,e=new Array(s>1?s-1:0),t=1;t<s;t++)e[t-1]=arguments[t];M.apply(void 0,[n].concat(e))}}var j=(function(){function n(s){b(this,n),this.listener={},this.type=s|""}return S(n,[{key:"on",value:function(e,t){return this.listener[e]||(this.listener[e]=[]),this.listener[e].push(t),!0}},{key:"off",value:function(e,t){if(this.listener[e]){var r=this.listener[e].indexOf(t);return r>-1&&this.listener[e].splice(r,1),!0}return!1}},{key:"offAll",value:function(){this.listener={}}},{key:"dispatch",value:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];return this.listener[e]?(this.listener[e].map(function(a){a.apply(null,r)}),!0):!1}}]),n})(),H=(function(){function n(){b(this,n)}return S(n,null,[{key:"init",value:function(){n.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],hev1:[],hvcC:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[]};var e;for(e in n.types)n.types.hasOwnProperty(e)&&(n.types[e]=[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]);var t=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),r=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]);n.HDLR_TYPES={video:t,audio:r};var i=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),a=new Uint8Array([0,0,0,0,0,0,0,0]);n.STTS=n.STSC=n.STCO=a,n.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),n.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),n.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),n.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);var o=new Uint8Array([105,115,111,109]),l=new Uint8Array([97,118,99,49]),c=new Uint8Array([0,0,0,1]);n.FTYP=n.box(n.types.ftyp,o,c,o,l),n.DINF=n.box(n.types.dinf,n.box(n.types.dref,i))}},{key:"box",value:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];for(var a=8,o=r.length,l=o,c;o--;)a+=r[o].byteLength;for(c=new Uint8Array(a),c[0]=a>>24&255,c[1]=a>>16&255,c[2]=a>>8&255,c[3]=a&255,c.set(e,4),o=0,a=8;o<l;++o)c.set(r[o],a),a+=r[o].byteLength;return c}},{key:"hdlr",value:function(e){return n.box(n.types.hdlr,n.HDLR_TYPES[e])}},{key:"mdat",value:function(e){return n.box(n.types.mdat,e)}},{key:"mdhd",value:function(e,t){return n.box(n.types.mdhd,new Uint8Array([0,0,0,0,0,0,0,2,0,0,0,3,e>>24&255,e>>16&255,e>>8&255,e&255,t>>>24&255,t>>>16&255,t>>>8&255,t&255,85,196,0,0]))}},{key:"mdia",value:function(e){return n.box(n.types.mdia,n.mdhd(e.timescale,e.duration),n.hdlr(e.type),n.minf(e))}},{key:"mfhd",value:function(e){return n.box(n.types.mfhd,new Uint8Array([0,0,0,0,e>>24,e>>16&255,e>>8&255,e&255]))}},{key:"minf",value:function(e){return e.type==="audio"?n.box(n.types.minf,n.box(n.types.smhd,n.SMHD),n.DINF,n.stbl(e)):n.box(n.types.minf,n.box(n.types.vmhd,n.VMHD),n.DINF,n.stbl(e))}},{key:"moof",value:function(e,t,r){return n.box(n.types.moof,n.mfhd(e),n.traf(r,t))}},{key:"moov",value:function(e,t,r){for(var i=e.length,a=[];i--;)a[i]=n.trak(e[i]);return n.box.apply(null,[n.types.moov,n.mvhd(r,t)].concat(a).concat(n.mvex(e)))}},{key:"mvex",value:function(e){for(var t=e.length,r=[];t--;)r[t]=n.trex(e[t]);return n.box.apply(null,[n.types.mvex].concat(r))}},{key:"mvhd",value:function(e,t){var r=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,2,e>>24&255,e>>16&255,e>>8&255,e&255,t>>>24&255,t>>>16&255,t>>>8&255,t&255,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return n.box(n.types.mvhd,r)}},{key:"sdtp",value:function(e){var t=e.samples||[],r=new Uint8Array(4+t.length),i,a;for(a=0;a<t.length;a++)i=t[a].flags,r[a+4]=i.dependsOn<<4|i.isDependedOn<<2|i.hasRedundancy;return n.box(n.types.sdtp,r)}},{key:"stbl",value:function(e){return n.box(n.types.stbl,n.stsd(e),n.box(n.types.stts,n.STTS),n.box(n.types.stsc,n.STSC),n.box(n.types.stsz,n.STSZ),n.box(n.types.stco,n.STCO))}},{key:"avc1",value:function(e){var t=[],r=[],i,a,o;for(i=0;i<e.sps.length;i++)a=e.sps[i],o=a.byteLength,t.push(o>>>8&255),t.push(o&255),t=t.concat(Array.prototype.slice.call(a));for(i=0;i<e.pps.length;i++)a=e.pps[i],o=a.byteLength,r.push(o>>>8&255),r.push(o&255),r=r.concat(Array.prototype.slice.call(a));var l=n.box(n.types.avcC,new Uint8Array([1,t[3],t[4],t[5],255,224|e.sps.length].concat(t).concat([e.pps.length]).concat(r))),c=e.width,f=e.height;return n.box(n.types.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,c>>8&255,c&255,f>>8&255,f&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,98,105,110,101,108,112,114,111,46,114,117,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),l,n.box(n.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])))}},{key:"hev1",value:function(e){for(var t=[],r=[],i=[],a,o,l=0;l<(((c=e.vps)===null||c===void 0?void 0:c.length)||0);l++){var c;a=e.vps[l],o=a.byteLength,t.push(o>>>8&255,o&255),t=t.concat(Array.prototype.slice.call(a))}for(var f=0;f<(((h=e.sps)===null||h===void 0?void 0:h.length)||0);f++){var h;a=e.sps[f],o=a.byteLength,r.push(o>>>8&255,o&255),r=r.concat(Array.prototype.slice.call(a))}for(var d=0;d<(((p=e.pps)===null||p===void 0?void 0:p.length)||0);d++){var p;a=e.pps[d],o=a.byteLength,i.push(o>>>8&255,o&255),i=i.concat(Array.prototype.slice.call(a))}var A=e.hvcC,W=A.profile_space,K=A.tier_flag,L=A.profile_idc,I=A.profile_compatibility_flags,B=A.constraint_indicator_flags,he=A.level_idc,fe=A.chroma_format_idc,pe=n.box(n.types.hvcC,new Uint8Array([1,W<<6|K<<5|L,I>>24&255,I>>16&255,I>>8&255,I&255].concat($(B),[he,240,0,252,252|fe,248,248,0,0,3,3,32,0,1],$(t),[33,0,1],$(r),[34,0,1],$(i)))),de=e.width,w=e.height;return n.box(n.types.hev1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,de>>8&255,de&255,w>>8&255,w&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,98,105,110,101,108,112,114,111,46,114,117,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),pe,n.box(n.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])))}},{key:"esds",value:function(e){var t=e.config.byteLength,r=new Uint8Array(26+t+3);return r.set([0,0,0,0,3,23+t,0,1,0,4,15+t,64,21,0,0,0,0,0,0,0,0,0,0,0,5,t]),r.set(e.config,26),r.set([6,1,2],26+t),r}},{key:"mp4a",value:function(e){var t=e.audiosamplerate;return n.box(n.types.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,e.channelCount,0,16,0,0,0,0,t>>8&255,t&255,0,0]),n.box(n.types.esds,n.esds(e)))}},{key:"stsd",value:function(e){return e.type==="audio"?n.box(n.types.stsd,n.STSD,n.mp4a(e)):e.codec.startsWith("hvc1")?n.box(n.types.stsd,n.STSD,n.hev1(e)):n.box(n.types.stsd,n.STSD,n.avc1(e))}},{key:"tkhd",value:function(e){var t=e.id,r=e.duration,i=e.width,a=e.height,o=e.volume;return n.box(n.types.tkhd,new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,t>>24&255,t>>16&255,t>>8&255,t&255,0,0,0,0,r>>>24&255,r>>>16&255,r>>>8&255,r&255,0,0,0,0,0,0,0,0,0,0,0,0,o>>0&255,o%1*10>>0&255,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,i>>8&255,i&255,0,0,a>>8&255,a&255,0,0]))}},{key:"traf",value:function(e,t){var r=n.sdtp(e),i=e.id;return n.box(n.types.traf,n.box(n.types.tfhd,new Uint8Array([0,0,0,0,i>>24,i>>16&255,i>>8&255,i&255])),n.box(n.types.tfdt,new Uint8Array([0,0,0,0,t>>24,t>>16&255,t>>8&255,t&255])),n.trun(e,r.length+16+16+8+16+8+8),r)}},{key:"trak",value:function(e){return e.duration=e.duration||4294967295,n.box(n.types.trak,n.tkhd(e),n.mdia(e))}},{key:"trex",value:function(e){var t=e.id;return n.box(n.types.trex,new Uint8Array([0,0,0,0,t>>24,t>>16&255,t>>8&255,t&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))}},{key:"trun",value:function(e,t){var r=e.samples||[],i=r.length,a=12+16*i,o=new Uint8Array(a),l,c,f,h,d,p;for(t+=8+a,o.set([0,0,15,1,i>>>24&255,i>>>16&255,i>>>8&255,i&255,t>>>24&255,t>>>16&255,t>>>8&255,t&255],0),l=0;l<i;l++)c=r[l],f=c.duration,h=c.size,d=c.flags,p=c.cts,o.set([f>>>24&255,f>>>16&255,f>>>8&255,f&255,h>>>24&255,h>>>16&255,h>>>8&255,h&255,d.isLeading<<2|d.dependsOn,d.isDependedOn<<6|d.hasRedundancy<<4|d.paddingValue<<1|d.isNonSync,d.degradPrio&61440,d.degradPrio&15,p>>>24&255,p>>>16&255,p>>>8&255,p&255],12+16*l);return n.box(n.types.trun,o)}},{key:"initSegment",value:function(e,t,r){n.types||n.init();var i=n.moov(e,t,r),a;return a=new Uint8Array(n.FTYP.byteLength+i.byteLength),a.set(n.FTYP),a.set(i,n.FTYP.byteLength),a}}]),n})(),x=(function(){function n(){b(this,n)}return S(n,null,[{key:"samplingRateMap",get:function(){return[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350]}},{key:"getHeaderLength",value:function(e){return e[1]&1?7:9}},{key:"getFrameLength",value:function(e){return(e[3]&3)<<11|e[4]<<3|(e[5]&224)>>>5}},{key:"isAACPattern",value:function(e){return e[0]===255&&(e[1]&240)===240&&(e[1]&6)===0}},{key:"extractAAC",value:function(e){var t=0,r=e.byteLength,i=[],a,o;if(!n.isAACPattern(e))return m("Invalid ADTS audio format"),{valid:!1};a=n.getHeaderLength(e);for(var l=e.subarray(0,a);t<r;)o=n.getFrameLength(e),i.push(e.subarray(a,o)),e=e.slice(o),t+=o;return{valid:!0,header:l,slices:i}}}]),n})(),T=1,U=(function(n){E(e,n);var s=X(e);function e(){return b(this,e),s.apply(this,arguments)}return S(e,[{key:"flush",value:function(){this.mp4track.len=0,this.mp4track.samples=[]}},{key:"isReady",value:function(){return!this.readyToDecode||!this.samples.length?null:!0}}],[{key:"getTrackID",value:function(){return T++}}]),e})(j),R=(function(n){E(e,n);var s=X(e);function e(t,r,i){var a;return b(this,e),a=s.call(this,"AACRemuxer"),a.frameDuration=i,a.readyToDecode=!1,a.header=null,a.nextDts=0,a.dts=0,a.mp4track={id:U.getTrackID(),type:"audio",channelCount:0,len:0,fragmented:!0,timescale:t,duration:r,samples:[],config:"",codec:""},a.samples=[],a}return S(e,[{key:"resetTrack",value:function(){this.readyToDecode=!1,this.header=null,this.mp4track.codec="",this.mp4track.channelCount="",this.mp4track.config="",this.mp4track.timescale=this.timescale,this.nextDts=0,this.dts=0}},{key:"feed",value:function(r,i){var a=x.extractAAC(r),o=a.valid,l=a.header,c=a.slices;return this.header||(this.header=l),o&&c.length>0?(this.remux(this.getAudioFrames(c,i)),!0):(m("Failed to extract audio data from:",r),this.dispatch("outOfData"),!1)}},{key:"getAudioFrames",value:function(r,i){var a=[],o=0,l=0,c=k(r),f;try{for(c.s();!(f=c.n()).done;){var h=f.value;a.push({units:h})}}catch(d){c.e(d)}finally{c.f()}return o=i?i/a.length|0:this.frameDuration,l=i?i-o*a.length:0,a.map(function(d){d.duration=o,l>0&&(d.duration++,l--)}),a}},{key:"remux",value:function(r){if(r.length>0)for(var i=0;i<r.length;i++){var a=r[i],o=a.units,l=o.byteLength;this.samples.push({units:o,size:l,duration:a.duration}),this.mp4track.len+=l,this.readyToDecode||this.setAACConfig()}}},{key:"getPayload",value:function(){if(!this.isReady())return null;var r=new Uint8Array(this.mp4track.len),i=0,a=this.mp4track.samples,o,l;for(this.dts=this.nextDts;this.samples.length;){var c=this.samples.shift();if(c.units,l=c.duration,l<=0){y("remuxer: invalid sample duration at DTS: ".concat(this.nextDts," :").concat(l)),this.mp4track.len-=c.size;continue}this.nextDts+=l,o={size:c.size,duration:l,cts:0,flags:{isLeading:0,isDependedOn:0,hasRedundancy:0,degradPrio:0,dependsOn:1}},r.set(c.units,i),i+=c.size,a.push(o)}return a.length?new Uint8Array(r.buffer,0,this.mp4track.len):null}},{key:"setAACConfig",value:function(){var r,i,a,o=new Uint8Array(2);this.header&&(r=((this.header[2]&192)>>>6)+1,i=(this.header[2]&60)>>>2,a=(this.header[2]&1)<<2,a|=(this.header[3]&192)>>>6,o[0]=r<<3,o[0]|=(i&14)>>1,o[1]|=(i&1)<<7,o[1]|=a<<3,this.mp4track.codec="mp4a.40."+r,this.mp4track.channelCount=a,this.mp4track.config=o,this.readyToDecode=!0)}}]),e})(U),v=(function(){function n(s){b(this,n),this.data=s,this.index=0,this.bitLength=s.byteLength*8}return S(n,[{key:"setData",value:function(e){this.data=e,this.index=0,this.bitLength=e.byteLength*8}},{key:"bitsAvailable",get:function(){return this.bitLength-this.index}},{key:"skipBits",value:function(e){if(this.bitsAvailable<e)return!1;this.index+=e}},{key:"readBits",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r=this.getBits(e,this.index,t);return r}},{key:"getBits",value:function(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(this.bitsAvailable<e)return 0;var i=t%8,a=this.data[t/8|0]&255>>>i,o=8-i;if(o>=e)return r&&(this.index+=e),a>>o-e;r&&(this.index+=o);var l=e-o;return a<<l|this.getBits(l,t+o,r)}},{key:"skipLZ",value:function(){var e;for(e=0;e<this.bitLength-this.index;++e)if(this.getBits(1,this.index+e,!1)!==0)return this.index+=e,e;return e}},{key:"skipUEG",value:function(){this.skipBits(1+this.skipLZ())}},{key:"skipEG",value:function(){this.skipBits(1+this.skipLZ())}},{key:"readUEG",value:function(){var e=this.skipLZ();return this.readBits(e+1)-1}},{key:"readEG",value:function(){var e=this.readUEG();return 1&e?1+e>>>1:-1*(e>>>1)}},{key:"readBoolean",value:function(){return this.readBits(1)===1}},{key:"readUByte",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;return this.readBits(e*8)}},{key:"readUShort",value:function(){return this.readBits(16)}},{key:"readUInt",value:function(){return this.readBits(32)}}]),n})(),V=(function(){function n(){b(this,n)}return S(n,null,[{key:"extractNALu",value:function(e){for(var t=0,r=e.byteLength,i=[],a=0,o=0;t<r;){var l=e[t++];if(l===0)o++;else if(l===1&&o>=2){var c=o+1;a!==t-c&&i.push(e.subarray(a,t-c)),a=t,o=0}else o=0}var f=null;return a<r&&(f=e.subarray(a,r)),[i,f]}},{key:"skipScalingList",value:function(e,t){for(var r=8,i=8,a,o=0;o<t;o++)i!==0&&(a=e.readEG(),i=(r+a+256)%256),r=i===0?r:i}},{key:"readSPS",value:function(e){var t=new v(e),r=0,i=0,a=0,o=0,l=1,c,f,h,d,p,A,W=0;t.readUByte();for(var K=[],L=1,I=e.byteLength,B=L;B<I;B++)B+2<I&&t.readBits(24,!1)===3?(K.push(t.readBits(8)),K.push(t.readBits(8)),B+=2,t.readBits(8)):K.push(t.readBits(8));if(t.setData(new Uint8Array(K)),c=t.readUByte(),t.readBits(5),t.skipBits(3),t.readUByte(),t.skipUEG(),c===100||c===110||c===122||c===244||c===44||c===83||c===86||c===118||c===128){var he=t.readUEG();if(he===3&&t.skipBits(1),t.skipUEG(),t.skipUEG(),t.skipBits(1),t.readBoolean()){A=he!==3?8:12;for(var fe=0;fe<A;++fe)t.readBoolean()&&(fe<6?n.skipScalingList(t,16):n.skipScalingList(t,64))}}t.skipUEG();var pe=t.readUEG();if(pe===0)t.readUEG();else if(pe===1){t.skipBits(1),t.skipEG(),t.skipEG(),f=t.readUEG();for(var de=0;de<f;++de)t.skipEG()}if(t.skipUEG(),t.skipBits(1),h=t.readUEG(),d=t.readUEG(),p=t.readBits(1),p===0&&t.skipBits(1),t.skipBits(1),t.readBoolean()&&(r=t.readUEG(),i=t.readUEG(),a=t.readUEG(),o=t.readUEG()),t.readBoolean()){if(t.readBoolean()){var w,Se=t.readUByte();switch(Se){case 1:w=[1,1];break;case 2:w=[12,11];break;case 3:w=[10,11];break;case 4:w=[16,11];break;case 5:w=[40,33];break;case 6:w=[24,11];break;case 7:w=[20,11];break;case 8:w=[32,11];break;case 9:w=[80,33];break;case 10:w=[18,11];break;case 11:w=[15,11];break;case 12:w=[64,33];break;case 13:w=[160,99];break;case 14:w=[4,3];break;case 15:w=[3,2];break;case 16:w=[2,1];break;case 255:{w=[t.readUByte()<<8|t.readUByte(),t.readUByte()<<8|t.readUByte()];break}}w&&w[0]>0&&w[1]>0&&(l=w[0]/w[1])}if(t.readBoolean()&&t.skipBits(1),t.readBoolean()&&(t.skipBits(4),t.readBoolean()&&t.skipBits(24)),t.readBoolean()&&(t.skipUEG(),t.skipUEG()),t.readBoolean()){var we=t.readUInt(),Fe=t.readUInt(),ve=t.readBoolean(),Ce=Fe/(2*we);ve&&(W=Ce)}}return{fps:W>0?W:void 0,width:Math.ceil(((h+1)*16-r*2-i*2)*l),height:(2-p)*(d+1)*16-(p?2:4)*(a+o)}}}]),n})(),N=(function(){function n(s){b(this,n),this.payload=s,this.nri=(this.payload[0]&96)>>5,this.nalUnitType=this.payload[0]&31,this._sliceType=null,this._isFirstSlice=!1}return S(n,[{key:"toString",value:function(){return"".concat(n.TYPES[this.type()]||"UNKNOWN",": NRI: ").concat(this.getNri())}},{key:"getNri",value:function(){return this.nri}},{key:"type",value:function(){return this.nalUnitType}},{key:"isKeyframe",get:function(){return this.nalUnitType===n.IDR}},{key:"isVCL",get:function(){return this.nalUnitType==n.IDR||this.nalUnitType==n.NDR}},{key:"parseHeader",value:function(){var e=new v(this.getPayload());e.readUByte(),this._isFirstSlice=e.readUEG()===0,this._sliceType=e.readUEG()}},{key:"isFirstSlice",get:function(){return this._isFirstSlice||this.parseHeader(),this._isFirstSlice}},{key:"sliceType",get:function(){return this._sliceType||this.parseHeader(),this._sliceType}},{key:"getPayload",value:function(){return this.payload}},{key:"getPayloadSize",value:function(){return this.payload.byteLength}},{key:"getSize",value:function(){return 4+this.getPayloadSize()}},{key:"getData",value:function(){var e=new Uint8Array(this.getSize()),t=new DataView(e.buffer);return t.setUint32(0,this.getSize()-4),e.set(this.getPayload(),4),e}}],[{key:"NDR",get:function(){return 1}},{key:"IDR",get:function(){return 5}},{key:"SEI",get:function(){return 6}},{key:"SPS",get:function(){return 7}},{key:"PPS",get:function(){return 8}},{key:"AUD",get:function(){return 9}},{key:"TYPES",get:function(){var e;return e={},F(e,n.IDR,"IDR"),F(e,n.SEI,"SEI"),F(e,n.SPS,"SPS"),F(e,n.PPS,"PPS"),F(e,n.NDR,"NDR"),F(e,n.AUD,"AUD"),e}}]),n})();function se(n,s){var e=new Uint8Array((n.byteLength|0)+(s.byteLength|0));return e.set(n,0),e.set(s,n.byteLength|0),e}function ge(n){var s,e,t,r="";return s=Math.floor(n),e=parseInt(s/3600,10)%24,t=parseInt(s/60,10)%60,s=s<0?0:s%60,e>0&&(r+=(e<10?"0"+e:e)+":"),r+=(t<10?"0"+t:t)+":"+(s<10?"0"+s:s),r}var me=(function(n){E(e,n);var s=X(e);function e(t,r,i){var a;return b(this,e),a=s.call(this,"H264Remuxer"),a.frameDuration=i,a.readyToDecode=!1,a.nextDts=0,a.dts=0,a.mp4track={id:U.getTrackID(),type:"video",len:0,fragmented:!0,sps:"",pps:"",fps:30,width:0,height:0,timescale:t,duration:r,samples:[]},a.samples=[],a.remainingData=new Uint8Array,a.kfCounter=0,a.pendingUnits={},a}return S(e,[{key:"resetTrack",value:function(){this.readyToDecode=!1,this.mp4track.sps="",this.mp4track.pps="",this.nextDts=0,this.dts=0,this.remainingData=new Uint8Array,this.kfCounter=0,this.pendingUnits={}}},{key:"feed",value:function(r,i,a){var o=[],l;r=se(this.remainingData,r);var c=V.extractNALu(r),f=z(c,2);return o=f[0],l=f[1],this.remainingData=l||new Uint8Array,o.length>0?(this.remux(this.getVideoFrames(o,i,a)),!0):(m("Failed to extract any NAL units from video data:",l),this.dispatch("outOfData"),!1)}},{key:"getVideoFrames",value:function(r,i,a){var o=this,l=[],c=[],f=0,h=0,d=!1,p=!1;this.pendingUnits.units&&(l=this.pendingUnits.units,p=this.pendingUnits.vcl,d=this.pendingUnits.keyFrame,this.pendingUnits={});var A=k(r),W;try{for(A.s();!(W=A.n()).done;){var K=W.value,L=new N(K);l.length&&p&&(L.isFirstSlice||!L.isVCL)&&(c.push({units:l,keyFrame:d}),l=[],d=!1,p=!1),l.push(L),d=d||L.isKeyframe,p=p||L.isVCL}}catch(B){A.e(B)}finally{A.f()}if(l.length)if(!i)this.pendingUnits={units:l,keyFrame:d,vcl:p};else if(p)c.push({units:l,keyFrame:d});else{var I=c.length-1;I>=0&&(c[I].units=c[I].units.concat(l))}return f=i?i/c.length|0:this.frameDuration,h=i?i-f*c.length:0,c.map(function(B){B.duration=f,B.compositionTimeOffset=a,h>0&&(B.duration++,h--),o.kfCounter++,B.keyFrame&&o.dispatch("keyframePosition",o.kfCounter*f/1e3)}),y("jmuxer: No. of H264 frames of the last chunk: ".concat(c.length)),c}},{key:"remux",value:function(r){var i=k(r),a;try{for(i.s();!(a=i.n()).done;){var o=a.value,l=[],c=0,f=k(o.units),h;try{for(f.s();!(h=f.n()).done;){var d=h.value;this.parseNAL(d)&&(l.push(d),c+=d.getSize())}}catch(p){f.e(p)}finally{f.f()}l.length>0&&this.readyToDecode&&(this.mp4track.len+=c,this.samples.push({units:l,size:c,keyFrame:o.keyFrame,duration:o.duration,compositionTimeOffset:o.compositionTimeOffset}))}}catch(p){i.e(p)}finally{i.f()}}},{key:"getPayload",value:function(){if(!this.isReady())return null;var r=new Uint8Array(this.mp4track.len),i=0,a=this.mp4track.samples,o,l;for(this.dts=this.nextDts;this.samples.length;){var c=this.samples.shift(),f=c.units;if(l=c.duration,l<=0){y("remuxer: invalid sample duration at DTS: ".concat(this.nextDts," :").concat(l)),this.mp4track.len-=c.size;continue}this.nextDts+=l,o={size:c.size,duration:l,cts:c.compositionTimeOffset||0,flags:{isLeading:0,isDependedOn:0,hasRedundancy:0,degradPrio:0,isNonSync:c.keyFrame?0:1,dependsOn:c.keyFrame?2:1}};var h=k(f),d;try{for(h.s();!(d=h.n()).done;){var p=d.value;r.set(p.getData(),i),i+=p.getSize()}}catch(A){h.e(A)}finally{h.f()}a.push(o)}return a.length?new Uint8Array(r.buffer,0,this.mp4track.len):null}},{key:"parseSPS",value:function(r){var i=V.readSPS(new Uint8Array(r));this.mp4track.fps=i.fps||this.mp4track.fps,this.mp4track.width=i.width,this.mp4track.height=i.height,this.mp4track.sps=[new Uint8Array(r)],this.mp4track.codec="avc1.";for(var a=new DataView(r.buffer,r.byteOffset+1,4),o=0;o<3;++o){var l=a.getUint8(o).toString(16);l.length<2&&(l="0"+l),this.mp4track.codec+=l}}},{key:"parsePPS",value:function(r){this.mp4track.pps=[new Uint8Array(r)]}},{key:"parseNAL",value:function(r){if(!r)return!1;if(r.isVCL)return!0;var i=!1;switch(r.type()){case N.PPS:this.mp4track.pps||this.parsePPS(r.getPayload()),i=!0;break;case N.SPS:this.mp4track.sps||this.parseSPS(r.getPayload()),i=!0;break;case N.AUD:y("AUD - ignoing");break;case N.SEI:y("SEI - ignoing");break}return!this.readyToDecode&&this.mp4track.pps&&this.mp4track.sps&&(this.readyToDecode=!0),i}}]),e})(U),ke=(function(){function n(){b(this,n)}return S(n,null,[{key:"extractNALu",value:function(e){for(var t=0,r=e.byteLength,i=[],a=0,o=0;t<r;){var l=e[t++];if(l===0)o++;else if(l===1&&o>=2){var c=o+1;a!==t-c&&i.push(e.subarray(a,t-c)),a=t,o=0}else o=0}var f=null;return a<r&&(f=e.subarray(a,r)),[i,f]}},{key:"removeEmulationPreventionBytes",value:function(e){for(var t=[],r=0,i=0;i<e.length;i++){var a=e[i];if(r===2&&a===3){r=0;continue}t.push(a),a===0?r++:r=0}return new Uint8Array(t)}},{key:"readSPS",value:function(e){var t=new v(e);t.readUByte(),t.readUByte(),t.readBits(4),t.readBits(3),t.readBits(1);for(var r=t.readBits(2),i=t.readBits(1),a=t.readBits(5),o=t.readUInt(),l=new Uint8Array(6),c=0;c<6;c++)l[c]=t.readUByte();var f=t.readUByte();t.readUEG();var h=t.readUEG();h===3&&t.readBits(1);var d=t.readUEG(),p=t.readUEG(),A=t.readBoolean(),W=0,K=0,L=0,I=0;A&&(W=t.readUEG(),K=t.readUEG(),L=t.readUEG(),I=t.readUEG());var B=null,he=t.readBoolean();if(he){var fe=t.readBoolean();if(fe){var pe=t.readUByte();pe===255&&(t.readUShort(),t.readUShort())}var de=t.readBoolean();de&&t.readBoolean();var w=t.readBoolean();if(w){t.readBits(3),t.readBoolean();var Se=t.readBoolean();Se&&(t.readUByte(),t.readUByte(),t.readUByte())}var we=t.readBoolean();we&&(t.readUEG(),t.readUEG()),t.readBoolean(),t.readBoolean(),t.readBoolean();var Fe=t.readBoolean();if(Fe){var ve=t.readUInt(),Ce=t.readUInt();t.readBoolean(),ve&&(B=Ce/(2*ve))}}var Te=h===1||h===2?2:1,je=h===1?2:1,Ne=d-Te*(K+W),Re=p-je*(L+I);return{width:Ne,height:Re,profile_space:r,tier_flag:i,profile_idc:a,profile_compatibility_flags:o,constraint_indicator_flags:l,level_idc:f,chroma_format_idc:h,fps:B}}}]),n})(),ue=(function(){function n(s){b(this,n),this.payload=s,this.nalUnitType=(s[0]&126)>>1,this.nuhLayerId=(s[0]&1)<<5|(s[1]&248)>>3,this.nuhTemporalIdPlus1=s[1]&7,this._isFirstSlice=null,this._sliceType=null}return S(n,[{key:"toString",value:function(){return"".concat(n.TYPES[this.type()]||"UNKNOWN ("+this.type()+")",": Layer: ").concat(this.nuhLayerId,", Temporal Id: ").concat(this.nuhTemporalIdPlus1)}},{key:"type",value:function(){return this.nalUnitType}},{key:"isKeyframe",get:function(){return[n.IDR_W_RADL,n.IDR_N_LP,n.CRA].includes(this.nalUnitType)}},{key:"isVCL",get:function(){return this.nalUnitType<=31}},{key:"parseHeader",value:function(){var e=new v(this.getPayload());e.readUByte(),e.readUByte(),this._isFirstSlice=e.readBoolean(),this.isKeyframe&&e.readBits(1),e.readUEG(),this._sliceType=e.readUEG()}},{key:"isFirstSlice",get:function(){return this._isFirstSlice||this.parseHeader(),this._isFirstSlice}},{key:"sliceType",get:function(){return this._sliceType||this.parseHeader(),this._sliceType}},{key:"getPayload",value:function(){return this.payload}},{key:"getPayloadSize",value:function(){return this.payload.byteLength}},{key:"getSize",value:function(){return 4+this.getPayloadSize()}},{key:"getData",value:function(){var e=new Uint8Array(this.getSize()),t=new DataView(e.buffer);return t.setUint32(0,this.getSize()-4),e.set(this.getPayload(),4),e}}],[{key:"TRAIL_N",get:function(){return 0}},{key:"TRAIL_R",get:function(){return 1}},{key:"IDR_W_RADL",get:function(){return 19}},{key:"IDR_N_LP",get:function(){return 20}},{key:"CRA",get:function(){return 21}},{key:"VPS",get:function(){return 32}},{key:"SPS",get:function(){return 33}},{key:"PPS",get:function(){return 34}},{key:"AUD",get:function(){return 35}},{key:"SEI",get:function(){return 39}},{key:"SEI2",get:function(){return 40}},{key:"TYPES",get:function(){var e;return e={},F(e,n.TRAIL_N,"TRAIL_N"),F(e,n.TRAIL_R,"TRAIL_R"),F(e,n.IDR_W_RADL,"IDR"),F(e,n.IDR_N_LP,"IDR2"),F(e,n.CRA,"CRA"),F(e,n.VPS,"VPS"),F(e,n.SPS,"SPS"),F(e,n.PPS,"PPS"),F(e,n.AUD,"AUD"),F(e,n.SEI,"SEI"),F(e,n.SEI2,"SEI2"),e}}]),n})(),De=(function(n){E(e,n);var s=X(e);function e(t,r,i){var a;return b(this,e),a=s.call(this,"H264Remuxer"),a.frameDuration=i,a.readyToDecode=!1,a.nextDts=0,a.dts=0,a.mp4track={id:U.getTrackID(),type:"video",len:0,fragmented:!0,vps:"",sps:"",pps:"",hvcC:{},fps:30,width:0,height:0,timescale:t,duration:r,samples:[]},a.samples=[],a.remainingData=new Uint8Array,a.kfCounter=0,a.pendingUnits={},a}return S(e,[{key:"resetTrack",value:function(){this.readyToDecode=!1,this.mp4track.vps="",this.mp4track.sps="",this.mp4track.pps="",this.mp4track.hvcC={},this.nextDts=0,this.dts=0,this.remainingData=new Uint8Array,this.kfCounter=0,this.pendingUnits={}}},{key:"feed",value:function(r,i,a){var o=[],l;r=se(this.remainingData,r);var c=ke.extractNALu(r),f=z(c,2);return o=f[0],l=f[1],this.remainingData=l||new Uint8Array,o.length>0?(this.remux(this.getVideoFrames(o,i,a)),!0):(m("Failed to extract any NAL units from video data:",l),this.dispatch("outOfData"),!1)}},{key:"getVideoFrames",value:function(r,i,a){var o=this,l=[],c=[],f=0,h=0,d=!1,p=!1;this.pendingUnits.units&&(l=this.pendingUnits.units,p=this.pendingUnits.vcl,d=this.pendingUnits.keyFrame,this.pendingUnits={});var A=k(r),W;try{for(A.s();!(W=A.n()).done;){var K=W.value,L=new ue(K);l.length&&p&&(L.isFirstSlice||!L.isVCL)&&(c.push({units:l,keyFrame:d}),l=[],d=!1,p=!1),l.push(L),d=d||L.isKeyframe,p=p||L.isVCL}}catch(B){A.e(B)}finally{A.f()}if(l.length)if(!i)this.pendingUnits={units:l,keyFrame:d,vcl:p};else if(p)c.push({units:l,keyFrame:d});else{var I=c.length-1;I>=0&&(c[I].units=c[I].units.concat(l))}return f=i?i/c.length|0:this.frameDuration,h=i?i-f*c.length:0,c.map(function(B){B.duration=f,B.compositionTimeOffset=a,h>0&&(B.duration++,h--),o.kfCounter++,B.keyFrame&&o.dispatch("keyframePosition",o.kfCounter*f/1e3)}),y("jmuxer: No. of H265 frames of the last chunk: ".concat(c.length)),c}},{key:"remux",value:function(r){var i=k(r),a;try{for(i.s();!(a=i.n()).done;){var o=a.value,l=[],c=0,f=k(o.units),h;try{for(f.s();!(h=f.n()).done;){var d=h.value;this.parseNAL(d)&&(l.push(d),c+=d.getSize())}}catch(p){f.e(p)}finally{f.f()}l.length>0&&this.readyToDecode&&(this.mp4track.len+=c,this.samples.push({units:l,size:c,keyFrame:o.keyFrame,duration:o.duration,compositionTimeOffset:o.compositionTimeOffset}))}}catch(p){i.e(p)}finally{i.f()}}},{key:"getPayload",value:function(){if(!this.isReady())return null;var r=new Uint8Array(this.mp4track.len),i=0,a=this.mp4track.samples,o,l;for(this.dts=this.nextDts;this.samples.length;){var c=this.samples.shift(),f=c.units;if(l=c.duration,l<=0){y("remuxer: invalid sample duration at DTS: ".concat(this.nextDts," :").concat(l)),this.mp4track.len-=c.size;continue}this.nextDts+=l,o={size:c.size,duration:l,cts:c.compositionTimeOffset||0,flags:{isLeading:0,isDependedOn:0,hasRedundancy:0,degradPrio:0,isNonSync:c.keyFrame?0:1,dependsOn:c.keyFrame?2:1}};var h=k(f),d;try{for(h.s();!(d=h.n()).done;){var p=d.value;r.set(p.getData(),i),i+=p.getSize()}}catch(A){h.e(A)}finally{h.f()}a.push(o)}return a.length?new Uint8Array(r.buffer,0,this.mp4track.len):null}},{key:"parseSPS",value:function(r){this.mp4track.sps=[new Uint8Array(r)],r=ke.removeEmulationPreventionBytes(r);var i=ke.readSPS(new Uint8Array(r));this.mp4track.fps=i.fps||this.mp4track.fps,this.mp4track.width=i.width,this.mp4track.height=i.height,this.mp4track.codec="hvc1.".concat(i.profile_idc,".").concat(i.profile_compatibility_flags.toString(16))+".L".concat(i.level_idc).concat(i.tier_flag?"H":"L")+".".concat(i.constraint_indicator_flags.map(function(a){return a.toString(16)}).join(".").toUpperCase()),this.mp4track.hvcC={profile_space:i.profile_space,tier_flag:i.tier_flag,profile_idc:i.profile_idc,profile_compatibility_flags:i.profile_compatibility_flags,constraint_indicator_flags:i.constraint_indicator_flags,level_idc:i.level_idc,chroma_format_idc:i.chroma_format_idc}}},{key:"parsePPS",value:function(r){this.mp4track.pps=[r]}},{key:"parseVPS",value:function(r){this.mp4track.vps=[r]}},{key:"parseNAL",value:function(r){if(!r)return!1;if(r.isVCL)return!0;var i=!1;switch(r.type()){case ue.VPS:this.mp4track.vps||this.parseVPS(r.getPayload()),i=!0;break;case ue.SPS:this.mp4track.sps||this.parseSPS(r.getPayload()),i=!0;break;case ue.PPS:this.mp4track.pps||this.parsePPS(r.getPayload()),i=!0;break;case ue.AUD:y("AUD - ignoing");break;case ue.SEI:case ue.SEI2:y("SEI - ignoing");break}return!this.readyToDecode&&this.mp4track.vps&&this.mp4track.sps&&this.mp4track.pps&&(this.readyToDecode=!0),i}}]),e})(U),_e=(function(n){E(e,n);var s=X(e);function e(t,r,i,a){var o;return b(this,e),o=s.call(this,"remuxer"),o.videoCodec=i,o.frameDuration=a,o.initialized=!1,o.tracks={},o.seq=1,o.env=t,o.timescale=1e3,o.mediaDuration=r?4294967295:0,o}return S(e,[{key:"addTrack",value:function(r){var i=this;if((r==="video"||r==="both")&&(this.videoCodec=="H265"?this.tracks.video=new De(this.timescale,this.mediaDuration,this.frameDuration):this.tracks.video=new me(this.timescale,this.mediaDuration,this.frameDuration),this.tracks.video.on("outOfData",function(){i.dispatch("missingVideoFrames")}),this.tracks.video.on("keyframePosition",function(o){i.dispatch("keyframePosition",o)})),r==="audio"||r==="both"){var a=new R(this.timescale,this.mediaDuration,this.frameDuration);this.tracks.audio=a,this.tracks.video.on("outOfData",function(){i.dispatch("missingAudioFrames")})}}},{key:"reset",value:function(){for(var r in this.tracks)this.tracks[r].resetTrack();this.initialized=!1}},{key:"destroy",value:function(){this.tracks={},this.offAll()}},{key:"flush",value:function(){if(!this.initialized){if(!this.isReady())return;this.dispatch("ready"),this.initSegment(),this.initialized=!0}for(var r in this.tracks){var i=this.tracks[r],a=i.getPayload();if(a&&a.byteLength){var o=H.moof(this.seq,i.dts,i.mp4track),l=H.mdat(a),c=se(o,l),f={type:r,payload:c,dts:i.dts};r==="video"&&(f.fps=i.mp4track.fps),this.dispatch("buffer",f);var h=ge(i.dts/this.timescale);y("put segment (".concat(r,"): dts: ").concat(i.dts," frames: ").concat(i.mp4track.samples.length," second: ").concat(h)),i.flush(),this.seq++}}}},{key:"initSegment",value:function(){var r=[];for(var i in this.tracks){var a=this.tracks[i];if(this.env=="browser"){var o={type:i,payload:H.initSegment([a.mp4track],this.mediaDuration,this.timescale)};this.dispatch("buffer",o)}else r.push(a.mp4track)}if(this.env=="node"){var l={type:"all",payload:H.initSegment(r,this.mediaDuration,this.timescale)};this.dispatch("buffer",l)}y("Initial segment generated.")}},{key:"isReady",value:function(){for(var r in this.tracks)if(!this.tracks[r].readyToDecode||!this.tracks[r].samples.length)return!1;return!0}},{key:"feed",value:function(r){var i=!1;if(r.video&&this.tracks.video&&(i|=this.tracks.video.feed(r.video,r.duration,r.compositionTimeOffset)),r.audio&&this.tracks.audio&&(i|=this.tracks.audio.feed(r.audio,r.duration)),!i){m("Input object must have video and/or audio property. Make sure it is a valid typed array");return}this.flush()}}]),e})(j),Be=(function(n){E(e,n);var s=X(e);function e(t,r){var i;return b(this,e),i=s.call(this,"buffer"),i.type=r,i.queue=new Uint8Array,i.cleaning=!1,i.pendingCleaning=0,i.cleanOffset=30,i.cleanRanges=[],i.sourceBuffer=t,i.sourceBuffer.addEventListener("updateend",function(){if(i.pendingCleaning>0&&(i.initCleanup(i.pendingCleaning),i.pendingCleaning=0),i.cleaning=!1,i.cleanRanges.length){i.doCleanup();return}}),i.sourceBuffer.addEventListener("error",function(){i.dispatch("error",{type:i.type,name:"buffer",error:"buffer error"})}),i}return S(e,[{key:"destroy",value:function(){this.queue=null,this.sourceBuffer=null,this.offAll()}},{key:"doCleanup",value:function(){if(!this.cleanRanges.length){this.cleaning=!1;return}var r=this.cleanRanges.shift();y("".concat(this.type," remove range [").concat(r[0]," - ").concat(r[1],")")),this.cleaning=!0,this.sourceBuffer.remove(r[0],r[1])}},{key:"initCleanup",value:function(r){try{if(this.sourceBuffer.updating){this.pendingCleaning=r;return}if(this.sourceBuffer.buffered&&this.sourceBuffer.buffered.length&&!this.cleaning){for(var i=0;i<this.sourceBuffer.buffered.length;++i){var a=this.sourceBuffer.buffered.start(i),o=this.sourceBuffer.buffered.end(i);r-a>this.cleanOffset&&(o=r-this.cleanOffset,a<o&&this.cleanRanges.push([a,o]))}this.doCleanup()}}catch(l){m("Error occured while cleaning ".concat(this.type," buffer - ").concat(l.name,": ").concat(l.message))}}},{key:"doAppend",value:function(){if(this.queue.length&&!(!this.sourceBuffer||this.sourceBuffer.updating))try{this.sourceBuffer.appendBuffer(this.queue),this.queue=new Uint8Array}catch(i){var r="unexpectedError";i.name==="QuotaExceededError"?(y("".concat(this.type," buffer quota full")),r="QuotaExceeded"):(m("Error occured while appending ".concat(this.type," buffer - ").concat(i.name,": ").concat(i.message)),r="InvalidStateError"),this.dispatch("error",{type:this.type,name:r,error:"buffer error"})}}},{key:"feed",value:function(r){this.queue=se(this.queue,r)}}]),e})(j),Ee=(function(n){E(e,n);var s=X(e);function e(t){var r;b(this,e),r=s.call(this,"jmuxer"),r.isReset=!1;var i={node:"",mode:"both",videoCodec:"H264",flushingTime:500,maxDelay:500,clearBuffer:!0,fps:30,readFpsFromTrack:!1,debug:!1,onReady:function(){},onData:function(){},onError:function(){},onUnsupportedCodec:function(){},onMissingVideoFrames:function(){},onMissingAudioFrames:function(){},onKeyframePosition:function(){},onLoggerLog:console.log,onLoggerErr:console.error};return r.options=Object.assign({},i,t),r.env=(typeof process>"u"?"undefined":ie(process))==="object"&&typeof window>"u"?"node":"browser",r.options.debug&&C(r.options.onLoggerLog,r.options.onLoggerErr),r.options.fps||(r.options.fps=30),r.frameDuration=1e3/r.options.fps|0,r.remuxController=new _e(r.env,t.live,r.options.videoCodec,r.frameDuration),r.remuxController.addTrack(r.options.mode),r.initData(),r.remuxController.on("buffer",r.onBuffer.bind(_(r))),r.env=="browser"&&(r.remuxController.on("ready",r.createBuffer.bind(_(r))),r.initBrowser()),r.remuxController.on("missingVideoFrames",function(){typeof r.options.onMissingVideoFrames=="function"&&r.options.onMissingVideoFrames.call(null)}),r.remuxController.on("missingAudioFrames",function(){typeof r.options.onMissingAudioFrames=="function"&&r.options.onMissingAudioFrames.call(null)}),r.clearBuffer&&r.remuxController.on("keyframePosition",function(a){r.kfPosition.push(a)}),typeof r.options.onKeyframePosition=="function"&&r.remuxController.on("keyframePosition",function(a){r.options.onKeyframePosition.call(null,a)}),r}return S(e,[{key:"initData",value:function(){this.lastCleaningTime=Date.now(),this.kfPosition=[],this.pendingUnits={},this.remainingData=new Uint8Array,this.startInterval()}},{key:"initBrowser",value:function(){typeof this.options.node=="string"&&this.options.node==""&&m("no video element were found to render, provide a valid video element"),this.node=typeof this.options.node=="string"?document.getElementById(this.options.node):this.options.node,this.mseReady=!1,this.setupMSE()}},{key:"createStream",value:function(){var r=this.feed.bind(this),i=this.destroy.bind(this);return this.stream=new J.Duplex({writableObjectMode:!0,read:function(o){},write:function(o,l,c){r(o),c()},final:function(o){i(),o()}}),this.stream}},{key:"setupMSE",value:function(){if(window.MediaSource=window.MediaSource||window.WebKitMediaSource||window.ManagedMediaSource,!window.MediaSource)throw"Oops! Browser does not support Media Source Extension or Managed Media Source (IOS 17+).";if(this.isMSESupported=!!window.MediaSource,this.mediaSource=new window.MediaSource,this.url=URL.createObjectURL(this.mediaSource),window.MediaSource===window.ManagedMediaSource)try{this.node.removeAttribute("src"),this.node.disableRemotePlayback=!0;var r=document.createElement("source");r.type="video/mp4",r.src=this.url,this.node.appendChild(r),this.node.load()}catch{this.node.src=this.url}else this.node.src=this.url;this.mseEnded=!1,this.mediaSource.addEventListener("sourceopen",this.onMSEOpen.bind(this)),this.mediaSource.addEventListener("sourceclose",this.onMSEClose.bind(this)),this.mediaSource.addEventListener("webkitsourceopen",this.onMSEOpen.bind(this)),this.mediaSource.addEventListener("webkitsourceclose",this.onMSEClose.bind(this))}},{key:"endMSE",value:function(){if(!this.mseEnded)try{this.mseEnded=!0,this.mediaSource.endOfStream()}catch{m("mediasource is not available to end")}}},{key:"feed",value:function(r){!r||!this.remuxController||(r.duration=r.duration?parseInt(r.duration):0,this.remuxController.feed(r))}},{key:"destroy",value:function(){if(this.stopInterval(),this.stream&&(this.remuxController.flush(),this.stream.push(null),this.stream=null),this.remuxController&&(this.remuxController.destroy(),this.remuxController=null),this.bufferControllers){for(var r in this.bufferControllers)this.bufferControllers[r].destroy();this.bufferControllers=null,this.endMSE()}this.node=!1,this.mseReady=!1,this.videoStarted=!1,this.mediaSource=null}},{key:"reset",value:function(){if(this.stopInterval(),this.isReset=!0,this.node.pause(),this.remuxController&&this.remuxController.reset(),this.bufferControllers){for(var r in this.bufferControllers)this.bufferControllers[r].destroy();this.bufferControllers=null,this.endMSE()}this.initData(),this.env=="browser"&&this.initBrowser(),y("JMuxer was reset")}},{key:"createBuffer",value:function(){if(!(!this.mseReady||!this.remuxController||!this.remuxController.isReady()||this.bufferControllers)){this.bufferControllers={};for(var r in this.remuxController.tracks){var i=this.remuxController.tracks[r];if(!e.isSupported("".concat(r,'/mp4; codecs="').concat(i.mp4track.codec,'"')))return m("Browser does not support codec: ".concat(r,'/mp4; codecs="').concat(i.mp4track.codec,'"')),typeof this.options.onUnsupportedCodec=="function"&&this.options.onUnsupportedCodec.call(null,i.mp4track.codec),!1;var a=this.mediaSource.addSourceBuffer("".concat(r,'/mp4; codecs="').concat(i.mp4track.codec,'"'));this.bufferControllers[r]=new Be(a,r),this.bufferControllers[r].on("error",this.onBufferError.bind(this))}}}},{key:"startInterval",value:function(){var r=this;this.interval=setInterval(function(){r.options.flushingTime?r.applyAndClearBuffer():r.bufferControllers&&r.cancelDelay()},this.options.flushingTime||1e3)}},{key:"stopInterval",value:function(){this.interval&&clearInterval(this.interval)}},{key:"cancelDelay",value:function(){if(this.node.buffered&&this.node.buffered.length>0&&!this.node.seeking){var r=this.node.buffered.end(0);r-this.node.currentTime>this.options.maxDelay/1e3&&(y("delay"),this.node.paused&&this.node.play().catch(m),this.node.currentTime=r-.001)}}},{key:"releaseBuffer",value:function(){for(var r in this.bufferControllers)this.bufferControllers[r].doAppend()}},{key:"applyAndClearBuffer",value:function(){this.bufferControllers&&(this.releaseBuffer(),this.clearBuffer())}},{key:"getSafeClearOffsetOfBuffer",value:function(r){for(var i=this.options.mode==="audio"&&r||0,a,o=0;o<this.kfPosition.length&&!(this.kfPosition[o]>=r);o++)a=this.kfPosition[o];return a&&(this.kfPosition=this.kfPosition.filter(function(l){return l<a&&(i=l),l>=a})),i}},{key:"clearBuffer",value:function(){if(this.options.clearBuffer&&Date.now()-this.lastCleaningTime>1e4){for(var r in this.bufferControllers){var i=this.getSafeClearOffsetOfBuffer(this.node.currentTime);this.bufferControllers[r].initCleanup(i)}this.lastCleaningTime=Date.now()}}},{key:"onBuffer",value:function(r){this.options.readFpsFromTrack&&typeof r.fps<"u"&&this.options.fps!=r.fps&&(this.options.fps=r.fps,this.frameDuration=Math.ceil(1e3/r.fps),y("JMuxer changed FPS to ".concat(r.fps," from track data"))),this.env=="browser"?this.bufferControllers&&this.bufferControllers[r.type]&&this.bufferControllers[r.type].feed(r.payload):this.stream&&this.stream.push(r.payload),this.options.onData&&this.options.onData(r.payload),this.options.flushingTime===0&&this.applyAndClearBuffer()}},{key:"onMSEOpen",value:function(){this.mseReady=!0,URL.revokeObjectURL(this.url),typeof this.options.onReady=="function"&&this.options.onReady.call(null,this.isReset)}},{key:"onMSEClose",value:function(){this.mseReady=!1,this.videoStarted=!1}},{key:"onBufferError",value:function(r){if(r.name=="QuotaExceeded"){y("JMuxer cleaning ".concat(r.type," buffer due to QuotaExceeded error")),this.bufferControllers[r.type].initCleanup(this.node.currentTime);return}else r.name=="InvalidStateError"?(y("JMuxer is reseting due to InvalidStateError"),this.reset()):this.endMSE();typeof this.options.onError=="function"&&this.options.onError.call(null,r)}}],[{key:"isSupported",value:function(r){return window.MediaSource&&window.MediaSource.isTypeSupported(r)}}]),e})(j);return Ee}))})(be)),be.exports}var Ye=Ke();const Xe=Ie(Ye);function qe({className:ae,onFallback:q,fallbackTimeout:J=5e3,enableControl:Y=!1,onTapSuccess:oe,onTapError:Q}){const _=g.useRef(null),b=g.useRef(null),G=g.useRef(null),[S,k]=g.useState("connecting"),[X,F]=g.useState(null),O=g.useRef(null),E=g.useRef(!1),[re,xe]=g.useState([]),[Z,ye]=g.useState(null),le=g.useRef(0),ee=g.useRef(Date.now()),ne=g.useRef(0),z=g.useRef(0),$=g.useRef(q),ce=g.useRef(J),te=(D,P,M)=>{const C=M.getBoundingClientRect(),y=C.width,m=C.height,j=M.videoWidth,H=M.videoHeight;if(j===0||H===0)return console.warn("[ScrcpyPlayer] Video dimensions not available yet"),null;const x=j/H,T=y/m;let U,R,v,V;T>x?(R=m,U=x*m,v=(y-U)/2,V=0):(U=y,R=y/x,v=0,V=(m-R)/2);const N=D-v,se=P-V;if(N<0||N>U||se<0||se>R)return console.warn("[ScrcpyPlayer] Click outside video area (in letterbox)"),null;const ge=Math.round(N/U*j),me=Math.round(se/R*H);return console.log(`[ScrcpyPlayer] Coordinate transform:
|
|
@@ -11,4 +11,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
11
11
|
Device actual: ${Z.width}x${Z.height}
|
|
12
12
|
Scale: ${H.toFixed(3)}x${x.toFixed(3)}
|
|
13
13
|
Video coords: (${y.x}, ${y.y})
|
|
14
|
-
Device coords: (${T}, ${U})`);const R=Date.now();xe(v=>[...v,{id:R,x:D.clientX,y:D.clientY}]),setTimeout(()=>{xe(v=>v.filter(V=>V.id!==R))},500);try{const v=await Oe(T,U);v.success?(console.log("[ScrcpyPlayer] Tap successful"),oe?.()):(console.error("[ScrcpyPlayer] Tap failed:",v.error),Q?.(v.error||"Unknown error"))}catch(v){console.error("[ScrcpyPlayer] Tap request failed:",v),Q?.(String(v))}};return g.useEffect(()=>{$.current=q,ce.current=J},[q,J]),g.useEffect(()=>{(async()=>{try{const P=await Ue();P.success&&(ye({width:P.width,height:P.height}),console.log(`[ScrcpyPlayer] Device actual resolution: ${P.width}x${P.height}`))}catch(P){console.error("[ScrcpyPlayer] Failed to fetch device resolution:",P)}})()},[]),g.useEffect(()=>{let D=null,P=null;const M=async()=>{if(_.current){if(console.log("[ScrcpyPlayer] connect() called"),z.current=Date.now(),k("connecting"),F(null),G.current){console.log("[ScrcpyPlayer] Closing existing WebSocket");try{G.current.onclose=null,G.current.onerror=null,G.current.onmessage=null,G.current.close()}catch(C){console.error("[ScrcpyPlayer] Error closing old WebSocket:",C)}G.current=null}if(b.current){console.log("[ScrcpyPlayer] Destroying old jMuxer instance");try{b.current.destroy()}catch(C){console.error("[ScrcpyPlayer] Error destroying old jMuxer:",C)}b.current=null}_.current&&(_.current.src="",_.current.load()),await new Promise(C=>setTimeout(C,300));try{console.log("[ScrcpyPlayer] Creating new jMuxer instance (after cleanup delay)"),b.current=new Xe({node:_.current,mode:"video",flushingTime:0,fps:30,debug:!1,clearBuffer:!0,onError:y=>{if(console.error("[jMuxer] Decoder error:",y),y.name==="InvalidStateError"&&y.error==="buffer error"){const m=Date.now(),j=m-ne.current;(m-z.current<1e3?j>500:j>2e3)?(ne.current=m,console.warn("[jMuxer] ⚠️ Buffer error detected, reconnecting..."),P&&setTimeout(()=>{P()},100)):console.warn(`[jMuxer] Reconnect skipped (debounced: ${j}ms since last error)`)}}});const C=new WebSocket("ws://localhost:8000/api/video/stream");G.current=C,C.binaryType="arraybuffer",C.onopen=()=>{console.log("[ScrcpyPlayer] WebSocket connected"),k("connected"),O.current=setTimeout(()=>{E.current||(console.log("[ScrcpyPlayer] No data received within timeout, triggering fallback"),k("error"),F("Video stream timeout"),C.close(),$.current&&$.current())},ce.current)},C.onmessage=y=>{if(typeof y.data=="string"){try{const m=JSON.parse(y.data);console.error("[ScrcpyPlayer] Server error:",m),F(m.error||"Unknown error"),k("error"),$.current&&!E.current&&$.current()}catch{console.error("[ScrcpyPlayer] Received non-JSON string:",y.data)}return}E.current||(E.current=!0,console.log("[ScrcpyPlayer] First video data received, canceling fallback timer"),O.current&&(clearTimeout(O.current),O.current=null));try{if(b.current&&y.data.byteLength>0){b.current.feed({video:new Uint8Array(y.data)}),le.current++;const m=Date.now(),j=m-ee.current;if(j>5e3){const H=le.current/j*1e3,x=_.current,T=x&&x.buffered.length>0?x.buffered.end(0)-x.currentTime:0;console.log(`[ScrcpyPlayer] Stats: ${H.toFixed(1)} fps, buffer: ${T.toFixed(2)}s`),T>2&&console.warn(`[ScrcpyPlayer] ⚠ High latency detected: ${T.toFixed(2)}s buffer`),le.current=0,ee.current=m}}}catch(m){console.error("[ScrcpyPlayer] Feed error:",m)}},C.onerror=y=>{console.error("[ScrcpyPlayer] WebSocket error:",y),F("Connection error"),k("error")},C.onclose=()=>{console.log("[ScrcpyPlayer] WebSocket closed"),k("disconnected"),D=setTimeout(()=>{console.log("[ScrcpyPlayer] Attempting to reconnect..."),M()},3e3)}}catch(C){console.error("[ScrcpyPlayer] Initialization error:",C),F("Initialization failed"),k("error")}}};return P=M,M(),()=>{if(D&&clearTimeout(D),O.current&&(clearTimeout(O.current),O.current=null),G.current&&(G.current.close(),G.current=null),b.current){try{b.current.destroy()}catch(C){console.error("[ScrcpyPlayer] Cleanup error:",C)}b.current=null}}},[]),u.jsxs("div",{className:`relative w-full h-full flex items-center justify-center ${ae||""}`,children:[u.jsx("video",{ref:_,autoPlay:!0,muted:!0,playsInline:!0,onClick:ie,className:`max-w-full max-h-full object-contain ${Y?"cursor-pointer":""}`,style:{backgroundColor:"#000"}}),Y&&re.map(D=>u.jsx("div",{className:"fixed pointer-events-none z-50",style:{left:D.x,top:D.y,transform:"translate(-50%, -50%)"},children:u.jsx("div",{className:"ripple-circle"})},D.id)),S!=="connected"&&u.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-black/50 backdrop-blur-sm",children:u.jsxs("div",{className:"text-center text-white",children:[S==="connecting"&&u.jsxs(u.Fragment,{children:[u.jsx("div",{className:"w-8 h-8 border-4 border-white border-t-transparent rounded-full animate-spin mx-auto mb-2"}),u.jsx("p",{children:"正在连接..."})]}),S==="disconnected"&&u.jsxs(u.Fragment,{children:[u.jsx("div",{className:"w-8 h-8 border-4 border-yellow-500 border-t-transparent rounded-full animate-spin mx-auto mb-2"}),u.jsx("p",{children:"连接断开,正在重连..."})]}),S==="error"&&u.jsxs(u.Fragment,{children:[u.jsx("div",{className:"text-red-500 text-xl mb-2",children:"✗"}),u.jsx("p",{className:"text-red-400",children:"连接失败"}),X&&u.jsx("p",{className:"text-sm text-gray-400 mt-1",children:X})]})]})})]})}function Ze(){const[ae,q]=g.useState([]),[J,Y]=g.useState(""),[oe,Q]=g.useState(!1),[_,b]=g.useState(!1),[G,S]=g.useState(null),[k,X]=g.useState(null),[F,O]=g.useState(null),[E,re]=g.useState({baseUrl:"",apiKey:"",modelName:""}),[xe,Z]=g.useState(!1),[ye,le]=g.useState(!0),[ee,ne]=g.useState(!1),[z,$]=g.useState("auto"),[ce,te]=g.useState(null),ie=g.useRef(null),D=g.useRef(!1),P=g.useRef([]),M=g.useRef([]),C=()=>{ie.current?.scrollIntoView({behavior:"smooth"})};g.useEffect(()=>{C()},[ae]),g.useEffect(()=>{(async()=>{try{if((await Me()).initialized)b(!0);else try{await Ae(),b(!0)}catch{b(!1)}}catch{b(!1),S("无法连接到后端服务")}})()},[]),g.useEffect(()=>{if(!(z==="screenshot"||z==="auto"&&ee))return;const T=async()=>{if(!D.current){D.current=!0;try{const R=await Ue();R.success&&X(R)}catch(R){console.error("Failed to fetch screenshot:",R)}finally{D.current=!1}}};T();const U=setInterval(T,500);return()=>clearInterval(U)},[ee,z]);const y=async()=>{S(null);try{await Ae({model_config:{base_url:E.baseUrl||void 0,api_key:E.apiKey||void 0,model_name:E.modelName||void 0}}),b(!0),Z(!1)}catch{S("初始化失败,请检查配置或确保后端服务正在运行")}},m=async()=>{if(!J.trim()||oe)return;const x={id:Date.now().toString(),role:"user",content:J.trim(),timestamp:new Date};q(v=>[...v,x]),Y(""),Q(!0),S(null),P.current=[],M.current=[];const T=(Date.now()+1).toString(),U={id:T,role:"agent",content:"",timestamp:new Date,thinking:[],actions:[],isStreaming:!0};q(v=>[...v,U]);const R=Ge(x.content,v=>{console.log("[Chat] Processing step event:",v),P.current.push(v.thinking),M.current.push(v.action),q(V=>V.map(N=>N.id===T?{...N,thinking:[...P.current],actions:[...M.current],steps:v.step}:N))},v=>{q(V=>V.map(N=>N.id===T?{...N,content:v.message,success:v.success,isStreaming:!1}:N)),Q(!1),O(null)},v=>{q(V=>V.map(N=>N.id===T?{...N,content:`错误: ${v.message}`,success:!1,isStreaming:!1}:N)),Q(!1),O(null)});O(R)},j=async()=>{F&&(F.close(),O(null)),Q(!1),q([]),S(null),await He()},H=x=>{x.key==="Enter"&&(x.metaKey||x.ctrlKey)&&(x.preventDefault(),m())};return u.jsxs("div",{className:"h-full flex items-center justify-center p-4 gap-4 relative",children:[xe&&u.jsx("div",{className:"absolute inset-0 bg-black/50 backdrop-blur-sm flex items-center justify-center z-50 rounded-2xl",children:u.jsxs("div",{className:"bg-white dark:bg-gray-800 p-6 rounded-2xl w-96 shadow-xl border border-gray-200 dark:border-gray-700",children:[u.jsx("h2",{className:"text-xl font-bold mb-4 text-gray-900 dark:text-gray-100",children:"Agent 配置"}),u.jsxs("div",{className:"space-y-4",children:[u.jsxs("div",{children:[u.jsx("label",{className:"block text-sm font-medium mb-1 text-gray-700 dark:text-gray-300",children:"Base URL"}),u.jsx("input",{type:"text",value:E.baseUrl,onChange:x=>re({...E,baseUrl:x.target.value}),placeholder:"留空使用默认值",className:"w-full px-3 py-2 border rounded-lg bg-white dark:bg-gray-700 border-gray-300 dark:border-gray-600 text-gray-900 dark:text-gray-100 focus:ring-2 focus:ring-blue-500 outline-none"})]}),u.jsxs("div",{children:[u.jsx("label",{className:"block text-sm font-medium mb-1 text-gray-700 dark:text-gray-300",children:"API Key"}),u.jsx("input",{type:"password",value:E.apiKey,onChange:x=>re({...E,apiKey:x.target.value}),placeholder:"留空使用默认值",className:"w-full px-3 py-2 border rounded-lg bg-white dark:bg-gray-700 border-gray-300 dark:border-gray-600 text-gray-900 dark:text-gray-100 focus:ring-2 focus:ring-blue-500 outline-none"})]}),u.jsxs("div",{children:[u.jsx("label",{className:"block text-sm font-medium mb-1 text-gray-700 dark:text-gray-300",children:"Model Name"}),u.jsx("input",{type:"text",value:E.modelName,onChange:x=>re({...E,modelName:x.target.value}),placeholder:"留空使用默认值",className:"w-full px-3 py-2 border rounded-lg bg-white dark:bg-gray-700 border-gray-300 dark:border-gray-600 text-gray-900 dark:text-gray-100 focus:ring-2 focus:ring-blue-500 outline-none"})]}),u.jsxs("div",{className:"flex justify-end gap-2 mt-6",children:[u.jsx("button",{onClick:()=>Z(!1),className:"px-4 py-2 text-gray-600 hover:text-gray-800 dark:text-gray-400 dark:hover:text-gray-200",children:"取消"}),u.jsx("button",{onClick:y,className:"px-4 py-2 bg-blue-500 text-white rounded-lg hover:bg-blue-600 transition-colors",children:"确认初始化"})]})]})]})}),u.jsxs("div",{className:"flex flex-col w-full max-w-2xl h-[750px] border border-gray-200 dark:border-gray-700 rounded-2xl shadow-lg bg-white dark:bg-gray-800",children:[u.jsxs("div",{className:"flex items-center justify-between p-4 border-b border-gray-200 dark:border-gray-700 rounded-t-2xl",children:[u.jsx("h1",{className:"text-xl font-semibold",children:"AutoGLM Chat"}),u.jsxs("div",{className:"flex gap-2",children:[_?u.jsx("span",{className:"px-3 py-1 bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-200 rounded-full text-sm flex items-center justify-center",children:"已初始化"}):u.jsx("button",{onClick:()=>Z(!0),className:"px-4 py-2 bg-blue-500 text-white rounded-lg hover:bg-blue-600 transition-colors flex items-center justify-center",children:"配置 Agent"}),u.jsx("button",{onClick:j,className:"px-4 py-2 bg-gray-200 dark:bg-gray-700 rounded-lg hover:bg-gray-300 dark:hover:bg-gray-600 transition-colors flex items-center justify-center",children:"重置"})]})]}),G&&u.jsx("div",{className:"mx-4 mt-4 p-3 bg-red-100 dark:bg-red-900 text-red-700 dark:text-red-200 rounded-lg",children:G}),u.jsxs("div",{className:"flex-1 overflow-y-auto p-4 space-y-4",children:[ae.length===0&&u.jsxs("div",{className:"text-center text-gray-500 dark:text-gray-400 mt-8",children:[u.jsx("p",{className:"text-lg",children:"欢迎使用 AutoGLM Chat"}),u.jsx("p",{className:"text-sm mt-2",children:"输入任务描述,让 AI 帮你操作手机"})]}),ae.map(x=>u.jsx("div",{className:`flex ${x.role==="user"?"justify-end":"justify-start"}`,children:x.role==="agent"?u.jsxs("div",{className:"max-w-[80%] space-y-2",children:[x.thinking?.map((T,U)=>u.jsxs("div",{className:"bg-gray-100 dark:bg-gray-700 rounded-2xl px-4 py-3 border-l-4 border-blue-500",children:[u.jsxs("div",{className:"text-xs text-gray-500 dark:text-gray-400 mb-1",children:["💭 步骤 ",U+1," - 思考过程"]}),u.jsx("p",{className:"text-sm whitespace-pre-wrap",children:T}),x.actions?.[U]&&u.jsxs("details",{className:"mt-2 text-xs",children:[u.jsx("summary",{className:"cursor-pointer text-blue-500 hover:text-blue-600",children:"查看动作"}),u.jsx("pre",{className:"mt-1 p-2 bg-gray-800 text-gray-200 rounded overflow-x-auto text-xs",children:JSON.stringify(x.actions[U],null,2)})]})]},U)),x.content&&u.jsxs("div",{className:`rounded-2xl px-4 py-3 ${x.success===!1?"bg-red-100 dark:bg-red-900 text-red-800 dark:text-red-200":"bg-green-100 dark:bg-green-900 text-green-800 dark:text-green-200"}`,children:[u.jsx("p",{className:"whitespace-pre-wrap",children:x.content}),x.steps!==void 0&&u.jsxs("p",{className:"text-xs mt-2 opacity-70",children:["总步数: ",x.steps]})]}),x.isStreaming&&u.jsx("div",{className:"text-sm text-gray-500 dark:text-gray-400 animate-pulse",children:"正在执行..."})]}):u.jsx("div",{className:"max-w-[70%] rounded-2xl px-4 py-3 bg-blue-500 text-white",children:u.jsx("p",{className:"whitespace-pre-wrap",children:x.content})})},x.id)),u.jsx("div",{ref:ie})]}),u.jsx("div",{className:"p-4 border-t border-gray-200 dark:border-gray-700 rounded-b-2xl",children:u.jsxs("div",{className:"flex gap-2",children:[u.jsx("input",{type:"text",value:J,onChange:x=>Y(x.target.value),onKeyDown:H,placeholder:_?"输入任务描述...":"请先初始化 Agent",disabled:!_||oe,className:"flex-1 px-4 py-3 border border-gray-300 dark:border-gray-600 rounded-xl bg-white dark:bg-gray-800 focus:outline-none focus:ring-2 focus:ring-blue-500 disabled:opacity-50 disabled:cursor-not-allowed"}),u.jsx("button",{onClick:m,disabled:!_||oe||!J.trim(),className:"px-6 py-3 bg-blue-500 text-white rounded-xl hover:bg-blue-600 transition-colors disabled:opacity-50 disabled:cursor-not-allowed flex items-center justify-center",children:"发送"})]})})]}),u.jsxs("div",{className:"w-full max-w-xs h-[750px] border border-gray-200 dark:border-gray-700 rounded-2xl shadow-lg bg-gray-900 overflow-hidden relative",children:[u.jsxs("div",{className:"absolute top-2 right-2 z-10 flex gap-1 bg-black/70 rounded-lg p-1",children:[u.jsx("button",{onClick:()=>$("auto"),className:`px-3 py-1 text-xs rounded transition-colors ${z==="auto"?"bg-blue-500 text-white":"bg-gray-700 text-gray-300 hover:bg-gray-600"}`,title:"自动选择最佳显示模式",children:"自动"}),u.jsx("button",{onClick:()=>$("video"),className:`px-3 py-1 text-xs rounded transition-colors ${z==="video"?"bg-blue-500 text-white":"bg-gray-700 text-gray-300 hover:bg-gray-600"}`,title:"强制使用视频流",children:"视频流"}),u.jsx("button",{onClick:()=>$("screenshot"),className:`px-3 py-1 text-xs rounded transition-colors ${z==="screenshot"?"bg-blue-500 text-white":"bg-gray-700 text-gray-300 hover:bg-gray-600"}`,title:"使用截图模式 (0.5s刷新)",children:"截图"})]}),z==="video"||z==="auto"&&ye&&!ee?u.jsxs(u.Fragment,{children:[ce&&u.jsx("div",{className:"absolute top-14 right-2 z-20 px-3 py-2 bg-blue-500 text-white text-sm rounded-lg shadow-lg animate-fade-in",children:ce}),u.jsx(qe,{className:"w-full h-full",enableControl:!0,onFallback:()=>{ne(!0),le(!1)},onTapSuccess:()=>{te("Tap executed"),setTimeout(()=>te(null),2e3)},onTapError:x=>{te(`Tap failed: ${x}`),setTimeout(()=>te(null),3e3)},fallbackTimeout:1e5})]}):u.jsx("div",{className:"w-full h-full flex items-center justify-center bg-gray-900",children:k&&k.success?u.jsxs("div",{className:"relative w-full h-full flex items-center justify-center",children:[u.jsx("img",{src:`data:image/png;base64,${k.image}`,alt:"Device Screenshot",className:"max-w-full max-h-full object-contain",style:{width:k.width>k.height?"100%":"auto",height:k.width>k.height?"auto":"100%"}}),k.is_sensitive&&u.jsx("div",{className:"absolute top-12 right-2 px-2 py-1 bg-yellow-500 text-white text-xs rounded",children:"敏感内容"}),u.jsxs("div",{className:"absolute bottom-2 left-2 px-2 py-1 bg-blue-500 text-white text-xs rounded",children:["截图模式 (0.5s 刷新)",z==="auto"&&ee&&" - 视频流不可用"]})]}):k?.error?u.jsxs("div",{className:"text-center text-red-500 dark:text-red-400",children:[u.jsx("p",{className:"mb-2",children:"截图失败"}),u.jsx("p",{className:"text-xs",children:k.error})]}):u.jsxs("div",{className:"text-center text-gray-500 dark:text-gray-400",children:[u.jsx("div",{className:"w-8 h-8 border-4 border-gray-300 border-t-blue-500 rounded-full animate-spin mx-auto mb-2"}),u.jsx("p",{children:"加载中..."})]})})]})]})}export{Ze as component};
|
|
14
|
+
Device coords: (${T}, ${U})`);const R=Date.now();xe(v=>[...v,{id:R,x:D.clientX,y:D.clientY}]),setTimeout(()=>{xe(v=>v.filter(V=>V.id!==R))},500);try{const v=await Oe(T,U);v.success?(console.log("[ScrcpyPlayer] Tap successful"),oe?.()):(console.error("[ScrcpyPlayer] Tap failed:",v.error),Q?.(v.error||"Unknown error"))}catch(v){console.error("[ScrcpyPlayer] Tap request failed:",v),Q?.(String(v))}};return g.useEffect(()=>{$.current=q,ce.current=J},[q,J]),g.useEffect(()=>{(async()=>{try{const P=await Ue();P.success&&(ye({width:P.width,height:P.height}),console.log(`[ScrcpyPlayer] Device actual resolution: ${P.width}x${P.height}`))}catch(P){console.error("[ScrcpyPlayer] Failed to fetch device resolution:",P)}})()},[]),g.useEffect(()=>{let D=null,P=null;const M=async()=>{if(_.current){if(console.log("[ScrcpyPlayer] connect() called"),z.current=Date.now(),k("connecting"),F(null),G.current){console.log("[ScrcpyPlayer] Closing existing WebSocket");try{G.current.onclose=null,G.current.onerror=null,G.current.onmessage=null,G.current.close()}catch(C){console.error("[ScrcpyPlayer] Error closing old WebSocket:",C)}G.current=null}if(b.current){console.log("[ScrcpyPlayer] Destroying old jMuxer instance");try{b.current.destroy()}catch(C){console.error("[ScrcpyPlayer] Error destroying old jMuxer:",C)}b.current=null}_.current&&(_.current.src="",_.current.load()),await new Promise(C=>setTimeout(C,300));try{console.log("[ScrcpyPlayer] Creating new jMuxer instance (after cleanup delay)"),b.current=new Xe({node:_.current,mode:"video",flushingTime:0,fps:30,debug:!1,clearBuffer:!0,onError:y=>{if(console.error("[jMuxer] Decoder error:",y),y.name==="InvalidStateError"&&y.error==="buffer error"){const m=Date.now(),j=m-ne.current;(m-z.current<1e3?j>500:j>2e3)?(ne.current=m,console.warn("[jMuxer] ⚠️ Buffer error detected, reconnecting..."),P&&setTimeout(()=>{P()},100)):console.warn(`[jMuxer] Reconnect skipped (debounced: ${j}ms since last error)`)}}});const C=new WebSocket("ws://localhost:8000/api/video/stream");G.current=C,C.binaryType="arraybuffer",C.onopen=()=>{console.log("[ScrcpyPlayer] WebSocket connected"),k("connected"),O.current=setTimeout(()=>{E.current||(console.log("[ScrcpyPlayer] No data received within timeout, triggering fallback"),k("error"),F("Video stream timeout"),C.close(),$.current&&$.current())},ce.current)},C.onmessage=y=>{if(typeof y.data=="string"){try{const m=JSON.parse(y.data);console.error("[ScrcpyPlayer] Server error:",m),F(m.error||"Unknown error"),k("error"),$.current&&!E.current&&$.current()}catch{console.error("[ScrcpyPlayer] Received non-JSON string:",y.data)}return}E.current||(E.current=!0,console.log("[ScrcpyPlayer] First video data received, canceling fallback timer"),O.current&&(clearTimeout(O.current),O.current=null));try{if(b.current&&y.data.byteLength>0){b.current.feed({video:new Uint8Array(y.data)}),le.current++;const m=Date.now(),j=m-ee.current;if(j>5e3){const H=le.current/j*1e3,x=_.current,T=x&&x.buffered.length>0?x.buffered.end(0)-x.currentTime:0;console.log(`[ScrcpyPlayer] Stats: ${H.toFixed(1)} fps, buffer: ${T.toFixed(2)}s`),T>2&&console.warn(`[ScrcpyPlayer] ⚠ High latency detected: ${T.toFixed(2)}s buffer`),le.current=0,ee.current=m}}}catch(m){console.error("[ScrcpyPlayer] Feed error:",m)}},C.onerror=y=>{console.error("[ScrcpyPlayer] WebSocket error:",y),F("Connection error"),k("error")},C.onclose=()=>{console.log("[ScrcpyPlayer] WebSocket closed"),k("disconnected"),D=setTimeout(()=>{console.log("[ScrcpyPlayer] Attempting to reconnect..."),M()},3e3)}}catch(C){console.error("[ScrcpyPlayer] Initialization error:",C),F("Initialization failed"),k("error")}}};return P=M,M(),()=>{if(D&&clearTimeout(D),O.current&&(clearTimeout(O.current),O.current=null),G.current&&(G.current.close(),G.current=null),b.current){try{b.current.destroy()}catch(C){console.error("[ScrcpyPlayer] Cleanup error:",C)}b.current=null}}},[]),u.jsxs("div",{className:`relative w-full h-full flex items-center justify-center ${ae||""}`,children:[u.jsx("video",{ref:_,autoPlay:!0,muted:!0,playsInline:!0,onClick:ie,className:`max-w-full max-h-full object-contain ${Y?"cursor-pointer":""}`,style:{backgroundColor:"#000"}}),Y&&re.map(D=>u.jsx("div",{className:"fixed pointer-events-none z-50",style:{left:D.x,top:D.y},children:u.jsx("div",{className:"ripple-circle"})},D.id)),S!=="connected"&&u.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-black/50 backdrop-blur-sm",children:u.jsxs("div",{className:"text-center text-white",children:[S==="connecting"&&u.jsxs(u.Fragment,{children:[u.jsx("div",{className:"w-8 h-8 border-4 border-white border-t-transparent rounded-full animate-spin mx-auto mb-2"}),u.jsx("p",{children:"正在连接..."})]}),S==="disconnected"&&u.jsxs(u.Fragment,{children:[u.jsx("div",{className:"w-8 h-8 border-4 border-yellow-500 border-t-transparent rounded-full animate-spin mx-auto mb-2"}),u.jsx("p",{children:"连接断开,正在重连..."})]}),S==="error"&&u.jsxs(u.Fragment,{children:[u.jsx("div",{className:"text-red-500 text-xl mb-2",children:"✗"}),u.jsx("p",{className:"text-red-400",children:"连接失败"}),X&&u.jsx("p",{className:"text-sm text-gray-400 mt-1",children:X})]})]})})]})}function Ze(){const[ae,q]=g.useState([]),[J,Y]=g.useState(""),[oe,Q]=g.useState(!1),[_,b]=g.useState(!1),[G,S]=g.useState(null),[k,X]=g.useState(null),[F,O]=g.useState(null),[E,re]=g.useState({baseUrl:"",apiKey:"",modelName:""}),[xe,Z]=g.useState(!1),[ye,le]=g.useState(!0),[ee,ne]=g.useState(!1),[z,$]=g.useState("auto"),[ce,te]=g.useState(null),ie=g.useRef(null),D=g.useRef(!1),P=g.useRef([]),M=g.useRef([]),C=()=>{ie.current?.scrollIntoView({behavior:"smooth"})};g.useEffect(()=>{C()},[ae]),g.useEffect(()=>{(async()=>{try{if((await Me()).initialized)b(!0);else try{await Ae(),b(!0)}catch{b(!1)}}catch{b(!1),S("无法连接到后端服务")}})()},[]),g.useEffect(()=>{if(!(z==="screenshot"||z==="auto"&&ee))return;const T=async()=>{if(!D.current){D.current=!0;try{const R=await Ue();R.success&&X(R)}catch(R){console.error("Failed to fetch screenshot:",R)}finally{D.current=!1}}};T();const U=setInterval(T,500);return()=>clearInterval(U)},[ee,z]);const y=async()=>{S(null);try{await Ae({model_config:{base_url:E.baseUrl||void 0,api_key:E.apiKey||void 0,model_name:E.modelName||void 0}}),b(!0),Z(!1)}catch{S("初始化失败,请检查配置或确保后端服务正在运行")}},m=async()=>{if(!J.trim()||oe)return;const x={id:Date.now().toString(),role:"user",content:J.trim(),timestamp:new Date};q(v=>[...v,x]),Y(""),Q(!0),S(null),P.current=[],M.current=[];const T=(Date.now()+1).toString(),U={id:T,role:"agent",content:"",timestamp:new Date,thinking:[],actions:[],isStreaming:!0};q(v=>[...v,U]);const R=Ge(x.content,v=>{console.log("[Chat] Processing step event:",v),P.current.push(v.thinking),M.current.push(v.action),q(V=>V.map(N=>N.id===T?{...N,thinking:[...P.current],actions:[...M.current],steps:v.step}:N))},v=>{q(V=>V.map(N=>N.id===T?{...N,content:v.message,success:v.success,isStreaming:!1}:N)),Q(!1),O(null)},v=>{q(V=>V.map(N=>N.id===T?{...N,content:`错误: ${v.message}`,success:!1,isStreaming:!1}:N)),Q(!1),O(null)});O(R)},j=async()=>{F&&(F.close(),O(null)),Q(!1),q([]),S(null),await He()},H=x=>{x.key==="Enter"&&(x.metaKey||x.ctrlKey)&&(x.preventDefault(),m())};return u.jsxs("div",{className:"h-full flex items-center justify-center p-4 gap-4 relative",children:[xe&&u.jsx("div",{className:"absolute inset-0 bg-black/50 backdrop-blur-sm flex items-center justify-center z-50 rounded-2xl",children:u.jsxs("div",{className:"bg-white dark:bg-gray-800 p-6 rounded-2xl w-96 shadow-xl border border-gray-200 dark:border-gray-700",children:[u.jsx("h2",{className:"text-xl font-bold mb-4 text-gray-900 dark:text-gray-100",children:"Agent 配置"}),u.jsxs("div",{className:"space-y-4",children:[u.jsxs("div",{children:[u.jsx("label",{className:"block text-sm font-medium mb-1 text-gray-700 dark:text-gray-300",children:"Base URL"}),u.jsx("input",{type:"text",value:E.baseUrl,onChange:x=>re({...E,baseUrl:x.target.value}),placeholder:"留空使用默认值",className:"w-full px-3 py-2 border rounded-lg bg-white dark:bg-gray-700 border-gray-300 dark:border-gray-600 text-gray-900 dark:text-gray-100 focus:ring-2 focus:ring-blue-500 outline-none"})]}),u.jsxs("div",{children:[u.jsx("label",{className:"block text-sm font-medium mb-1 text-gray-700 dark:text-gray-300",children:"API Key"}),u.jsx("input",{type:"password",value:E.apiKey,onChange:x=>re({...E,apiKey:x.target.value}),placeholder:"留空使用默认值",className:"w-full px-3 py-2 border rounded-lg bg-white dark:bg-gray-700 border-gray-300 dark:border-gray-600 text-gray-900 dark:text-gray-100 focus:ring-2 focus:ring-blue-500 outline-none"})]}),u.jsxs("div",{children:[u.jsx("label",{className:"block text-sm font-medium mb-1 text-gray-700 dark:text-gray-300",children:"Model Name"}),u.jsx("input",{type:"text",value:E.modelName,onChange:x=>re({...E,modelName:x.target.value}),placeholder:"留空使用默认值",className:"w-full px-3 py-2 border rounded-lg bg-white dark:bg-gray-700 border-gray-300 dark:border-gray-600 text-gray-900 dark:text-gray-100 focus:ring-2 focus:ring-blue-500 outline-none"})]}),u.jsxs("div",{className:"flex justify-end gap-2 mt-6",children:[u.jsx("button",{onClick:()=>Z(!1),className:"px-4 py-2 text-gray-600 hover:text-gray-800 dark:text-gray-400 dark:hover:text-gray-200",children:"取消"}),u.jsx("button",{onClick:y,className:"px-4 py-2 bg-blue-500 text-white rounded-lg hover:bg-blue-600 transition-colors",children:"确认初始化"})]})]})]})}),u.jsxs("div",{className:"flex flex-col w-full max-w-2xl h-[750px] border border-gray-200 dark:border-gray-700 rounded-2xl shadow-lg bg-white dark:bg-gray-800",children:[u.jsxs("div",{className:"flex items-center justify-between p-4 border-b border-gray-200 dark:border-gray-700 rounded-t-2xl",children:[u.jsx("h1",{className:"text-xl font-semibold",children:"AutoGLM Chat"}),u.jsxs("div",{className:"flex gap-2",children:[_?u.jsx("span",{className:"px-3 py-1 bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-200 rounded-full text-sm flex items-center justify-center",children:"已初始化"}):u.jsx("button",{onClick:()=>Z(!0),className:"px-4 py-2 bg-blue-500 text-white rounded-lg hover:bg-blue-600 transition-colors flex items-center justify-center",children:"配置 Agent"}),u.jsx("button",{onClick:j,className:"px-4 py-2 bg-gray-200 dark:bg-gray-700 rounded-lg hover:bg-gray-300 dark:hover:bg-gray-600 transition-colors flex items-center justify-center",children:"重置"})]})]}),G&&u.jsx("div",{className:"mx-4 mt-4 p-3 bg-red-100 dark:bg-red-900 text-red-700 dark:text-red-200 rounded-lg",children:G}),u.jsxs("div",{className:"flex-1 overflow-y-auto p-4 space-y-4",children:[ae.length===0&&u.jsxs("div",{className:"text-center text-gray-500 dark:text-gray-400 mt-8",children:[u.jsx("p",{className:"text-lg",children:"欢迎使用 AutoGLM Chat"}),u.jsx("p",{className:"text-sm mt-2",children:"输入任务描述,让 AI 帮你操作手机"})]}),ae.map(x=>u.jsx("div",{className:`flex ${x.role==="user"?"justify-end":"justify-start"}`,children:x.role==="agent"?u.jsxs("div",{className:"max-w-[80%] space-y-2",children:[x.thinking?.map((T,U)=>u.jsxs("div",{className:"bg-gray-100 dark:bg-gray-700 rounded-2xl px-4 py-3 border-l-4 border-blue-500",children:[u.jsxs("div",{className:"text-xs text-gray-500 dark:text-gray-400 mb-1",children:["💭 步骤 ",U+1," - 思考过程"]}),u.jsx("p",{className:"text-sm whitespace-pre-wrap",children:T}),x.actions?.[U]&&u.jsxs("details",{className:"mt-2 text-xs",children:[u.jsx("summary",{className:"cursor-pointer text-blue-500 hover:text-blue-600",children:"查看动作"}),u.jsx("pre",{className:"mt-1 p-2 bg-gray-800 text-gray-200 rounded overflow-x-auto text-xs",children:JSON.stringify(x.actions[U],null,2)})]})]},U)),x.content&&u.jsxs("div",{className:`rounded-2xl px-4 py-3 ${x.success===!1?"bg-red-100 dark:bg-red-900 text-red-800 dark:text-red-200":"bg-green-100 dark:bg-green-900 text-green-800 dark:text-green-200"}`,children:[u.jsx("p",{className:"whitespace-pre-wrap",children:x.content}),x.steps!==void 0&&u.jsxs("p",{className:"text-xs mt-2 opacity-70",children:["总步数: ",x.steps]})]}),x.isStreaming&&u.jsx("div",{className:"text-sm text-gray-500 dark:text-gray-400 animate-pulse",children:"正在执行..."})]}):u.jsx("div",{className:"max-w-[70%] rounded-2xl px-4 py-3 bg-blue-500 text-white",children:u.jsx("p",{className:"whitespace-pre-wrap",children:x.content})})},x.id)),u.jsx("div",{ref:ie})]}),u.jsx("div",{className:"p-4 border-t border-gray-200 dark:border-gray-700 rounded-b-2xl",children:u.jsxs("div",{className:"flex gap-2",children:[u.jsx("input",{type:"text",value:J,onChange:x=>Y(x.target.value),onKeyDown:H,placeholder:_?"输入任务描述...":"请先初始化 Agent",disabled:!_||oe,className:"flex-1 px-4 py-3 border border-gray-300 dark:border-gray-600 rounded-xl bg-white dark:bg-gray-800 focus:outline-none focus:ring-2 focus:ring-blue-500 disabled:opacity-50 disabled:cursor-not-allowed"}),u.jsx("button",{onClick:m,disabled:!_||oe||!J.trim(),className:"px-6 py-3 bg-blue-500 text-white rounded-xl hover:bg-blue-600 transition-colors disabled:opacity-50 disabled:cursor-not-allowed flex items-center justify-center",children:"发送"})]})})]}),u.jsxs("div",{className:"w-full max-w-xs h-[750px] border border-gray-200 dark:border-gray-700 rounded-2xl shadow-lg bg-gray-900 overflow-hidden relative",children:[u.jsxs("div",{className:"absolute top-2 right-2 z-10 flex gap-1 bg-black/70 rounded-lg p-1",children:[u.jsx("button",{onClick:()=>$("auto"),className:`px-3 py-1 text-xs rounded transition-colors ${z==="auto"?"bg-blue-500 text-white":"bg-gray-700 text-gray-300 hover:bg-gray-600"}`,title:"自动选择最佳显示模式",children:"自动"}),u.jsx("button",{onClick:()=>$("video"),className:`px-3 py-1 text-xs rounded transition-colors ${z==="video"?"bg-blue-500 text-white":"bg-gray-700 text-gray-300 hover:bg-gray-600"}`,title:"强制使用视频流",children:"视频流"}),u.jsx("button",{onClick:()=>$("screenshot"),className:`px-3 py-1 text-xs rounded transition-colors ${z==="screenshot"?"bg-blue-500 text-white":"bg-gray-700 text-gray-300 hover:bg-gray-600"}`,title:"使用截图模式 (0.5s刷新)",children:"截图"})]}),z==="video"||z==="auto"&&ye&&!ee?u.jsxs(u.Fragment,{children:[ce&&u.jsx("div",{className:"absolute top-14 right-2 z-20 px-3 py-2 bg-blue-500 text-white text-sm rounded-lg shadow-lg animate-fade-in",children:ce}),u.jsx(qe,{className:"w-full h-full",enableControl:!0,onFallback:()=>{ne(!0),le(!1)},onTapSuccess:()=>{te("Tap executed"),setTimeout(()=>te(null),2e3)},onTapError:x=>{te(`Tap failed: ${x}`),setTimeout(()=>te(null),3e3)},fallbackTimeout:1e5})]}):u.jsx("div",{className:"w-full h-full flex items-center justify-center bg-gray-900",children:k&&k.success?u.jsxs("div",{className:"relative w-full h-full flex items-center justify-center",children:[u.jsx("img",{src:`data:image/png;base64,${k.image}`,alt:"Device Screenshot",className:"max-w-full max-h-full object-contain",style:{width:k.width>k.height?"100%":"auto",height:k.width>k.height?"auto":"100%"}}),k.is_sensitive&&u.jsx("div",{className:"absolute top-12 right-2 px-2 py-1 bg-yellow-500 text-white text-xs rounded",children:"敏感内容"}),u.jsxs("div",{className:"absolute bottom-2 left-2 px-2 py-1 bg-blue-500 text-white text-xs rounded",children:["截图模式 (0.5s 刷新)",z==="auto"&&ee&&" - 视频流不可用"]})]}):k?.error?u.jsxs("div",{className:"text-center text-red-500 dark:text-red-400",children:[u.jsx("p",{className:"mb-2",children:"截图失败"}),u.jsx("p",{className:"text-xs",children:k.error})]}):u.jsxs("div",{className:"text-center text-gray-500 dark:text-gray-400",children:[u.jsx("div",{className:"w-8 h-8 border-4 border-gray-300 border-t-blue-500 rounded-full animate-spin mx-auto mb-2"}),u.jsx("p",{children:"加载中..."})]})})]})]})}export{Ze as component};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{u as o,r as s,j as t}from"./index-
|
|
1
|
+
import{u as o,r as s,j as t}from"./index-RqglIZxV.js";function n(){const e=o();return s.useEffect(()=>{e({to:"/chat"})},[e]),t.jsx("div",{className:"p-2",children:t.jsx("h3",{children:"Welcome Home!"})})}export{n as component};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-border-style:solid;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-100:oklch(93.6% .032 17.717);--color-red-200:oklch(88.5% .062 18.334);--color-red-400:oklch(70.4% .191 22.216);--color-red-500:oklch(63.7% .237 25.331);--color-red-700:oklch(50.5% .213 27.518);--color-red-800:oklch(44.4% .177 26.899);--color-red-900:oklch(39.6% .141 25.723);--color-yellow-500:oklch(79.5% .184 86.047);--color-green-100:oklch(96.2% .044 156.743);--color-green-200:oklch(92.5% .084 155.995);--color-green-800:oklch(44.8% .119 151.328);--color-green-900:oklch(39.3% .095 152.535);--color-blue-400:oklch(70.7% .165 254.624);--color-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-gray-800:oklch(27.8% .033 256.848);--color-gray-900:oklch(21% .034 264.665);--color-gray-950:oklch(13% .028 261.692);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-xs:20rem;--container-2xl:42rem;--container-7xl:80rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--radius-lg:.5rem;--radius-xl:.75rem;--radius-2xl:1rem;--animate-spin:spin 1s linear infinite;--animate-pulse:pulse 2s cubic-bezier(.4,0,.6,1)infinite;--blur-sm:8px;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}*,:after,:before,::backdrop{border-color:var(--color-gray-200,currentcolor)}::file-selector-button{border-color:var(--color-gray-200,currentcolor)}}@layer components;@layer utilities{.pointer-events-none{pointer-events:none}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.inset-0{inset:calc(var(--spacing)*0)}.top-2{top:calc(var(--spacing)*2)}.top-12{top:calc(var(--spacing)*12)}.top-14{top:calc(var(--spacing)*14)}.right-2{right:calc(var(--spacing)*2)}.bottom-2{bottom:calc(var(--spacing)*2)}.left-2{left:calc(var(--spacing)*2)}.z-10{z-index:10}.z-20{z-index:20}.z-50{z-index:50}.mx-4{margin-inline:calc(var(--spacing)*4)}.mx-auto{margin-inline:auto}.mt-1{margin-top:calc(var(--spacing)*1)}.mt-2{margin-top:calc(var(--spacing)*2)}.mt-4{margin-top:calc(var(--spacing)*4)}.mt-6{margin-top:calc(var(--spacing)*6)}.mt-8{margin-top:calc(var(--spacing)*8)}.mt-auto{margin-top:auto}.mb-1{margin-bottom:calc(var(--spacing)*1)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.block{display:block}.flex{display:flex}.h-4{height:calc(var(--spacing)*4)}.h-8{height:calc(var(--spacing)*8)}.h-\[750px\]{height:750px}.h-full{height:100%}.h-screen{height:100vh}.max-h-full{max-height:100%}.w-4{width:calc(var(--spacing)*4)}.w-8{width:calc(var(--spacing)*8)}.w-96{width:calc(var(--spacing)*96)}.w-full{width:100%}.max-w-2xl{max-width:var(--container-2xl)}.max-w-7xl{max-width:var(--container-7xl)}.max-w-\[70\%\]{max-width:70%}.max-w-\[80\%\]{max-width:80%}.max-w-full{max-width:100%}.max-w-xs{max-width:var(--container-xs)}.flex-1{flex:1}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.animate-pulse{animation:var(--animate-pulse)}.animate-spin{animation:var(--animate-spin)}.cursor-pointer{cursor:pointer}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}.gap-1{gap:calc(var(--spacing)*1)}.gap-2{gap:calc(var(--spacing)*2)}.gap-4{gap:calc(var(--spacing)*4)}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*2)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-xl{border-radius:var(--radius-xl)}.rounded-t-2xl{border-top-left-radius:var(--radius-2xl);border-top-right-radius:var(--radius-2xl)}.rounded-b-2xl{border-bottom-right-radius:var(--radius-2xl);border-bottom-left-radius:var(--radius-2xl)}.border{border-style:var(--tw-border-style);border-width:1px}.border-4{border-style:var(--tw-border-style);border-width:4px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-l-4{border-left-style:var(--tw-border-style);border-left-width:4px}.border-blue-500{border-color:var(--color-blue-500)}.border-gray-200{border-color:var(--color-gray-200)}.border-gray-300{border-color:var(--color-gray-300)}.border-white{border-color:var(--color-white)}.border-yellow-500{border-color:var(--color-yellow-500)}.border-t-blue-500{border-top-color:var(--color-blue-500)}.border-t-transparent{border-top-color:#0000}.bg-black\/50{background-color:#00000080}@supports (color:color-mix(in lab,red,red)){.bg-black\/50{background-color:color-mix(in oklab,var(--color-black)50%,transparent)}}.bg-black\/70{background-color:#000000b3}@supports (color:color-mix(in lab,red,red)){.bg-black\/70{background-color:color-mix(in oklab,var(--color-black)70%,transparent)}}.bg-blue-500{background-color:var(--color-blue-500)}.bg-gray-100{background-color:var(--color-gray-100)}.bg-gray-200{background-color:var(--color-gray-200)}.bg-gray-700{background-color:var(--color-gray-700)}.bg-gray-800{background-color:var(--color-gray-800)}.bg-gray-900{background-color:var(--color-gray-900)}.bg-green-100{background-color:var(--color-green-100)}.bg-red-100{background-color:var(--color-red-100)}.bg-white{background-color:var(--color-white)}.bg-yellow-500{background-color:var(--color-yellow-500)}.object-contain{object-fit:contain}.p-1{padding:calc(var(--spacing)*1)}.p-2{padding:calc(var(--spacing)*2)}.p-3{padding:calc(var(--spacing)*3)}.p-4{padding:calc(var(--spacing)*4)}.p-6{padding:calc(var(--spacing)*6)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-6{padding-inline:calc(var(--spacing)*6)}.py-1{padding-block:calc(var(--spacing)*1)}.py-2{padding-block:calc(var(--spacing)*2)}.py-3{padding-block:calc(var(--spacing)*3)}.py-4{padding-block:calc(var(--spacing)*4)}.text-center{text-align:center}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.whitespace-pre-wrap{white-space:pre-wrap}.text-blue-500{color:var(--color-blue-500)}.text-blue-600{color:var(--color-blue-600)}.text-gray-200{color:var(--color-gray-200)}.text-gray-300{color:var(--color-gray-300)}.text-gray-400{color:var(--color-gray-400)}.text-gray-500{color:var(--color-gray-500)}.text-gray-600{color:var(--color-gray-600)}.text-gray-700{color:var(--color-gray-700)}.text-gray-900{color:var(--color-gray-900)}.text-green-800{color:var(--color-green-800)}.text-red-400{color:var(--color-red-400)}.text-red-500{color:var(--color-red-500)}.text-red-700{color:var(--color-red-700)}.text-red-800{color:var(--color-red-800)}.text-white{color:var(--color-white)}.opacity-70{opacity:.7}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a),0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.backdrop-blur-sm{--tw-backdrop-blur:blur(var(--blur-sm));-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.outline-none{--tw-outline-style:none;outline-style:none}@media(hover:hover){.hover\:bg-blue-600:hover{background-color:var(--color-blue-600)}.hover\:bg-gray-300:hover{background-color:var(--color-gray-300)}.hover\:bg-gray-600:hover{background-color:var(--color-gray-600)}.hover\:text-blue-600:hover{color:var(--color-blue-600)}.hover\:text-gray-800:hover{color:var(--color-gray-800)}.hover\:underline:hover{text-decoration-line:underline}}.focus\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\:ring-blue-500:focus{--tw-ring-color:var(--color-blue-500)}.focus\:outline-none:focus{--tw-outline-style:none;outline-style:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}@media(min-width:40rem){.sm\:flex-row{flex-direction:row}}@media(prefers-color-scheme:dark){.dark\:border-gray-600{border-color:var(--color-gray-600)}.dark\:border-gray-700{border-color:var(--color-gray-700)}.dark\:bg-gray-700{background-color:var(--color-gray-700)}.dark\:bg-gray-800{background-color:var(--color-gray-800)}.dark\:bg-green-900{background-color:var(--color-green-900)}.dark\:bg-red-900{background-color:var(--color-red-900)}.dark\:text-blue-400{color:var(--color-blue-400)}.dark\:text-gray-100{color:var(--color-gray-100)}.dark\:text-gray-300{color:var(--color-gray-300)}.dark\:text-gray-400{color:var(--color-gray-400)}.dark\:text-gray-600{color:var(--color-gray-600)}.dark\:text-green-200{color:var(--color-green-200)}.dark\:text-red-200{color:var(--color-red-200)}.dark\:text-red-400{color:var(--color-red-400)}@media(hover:hover){.dark\:hover\:bg-gray-600:hover{background-color:var(--color-gray-600)}.dark\:hover\:text-blue-400:hover{color:var(--color-blue-400)}.dark\:hover\:text-gray-200:hover{color:var(--color-gray-200)}}}}html{color-scheme:light dark}*{border-color:var(--color-gray-200)}@media(prefers-color-scheme:dark){*{border-color:var(--color-gray-800)}}body{background-color:var(--color-gray-50);color:var(--color-gray-950)}@media(prefers-color-scheme:dark){body{background-color:var(--color-gray-900);color:var(--color-gray-200)}}@keyframes ripple{0%{opacity:1;width:0;height:0}to{opacity:0;width:60px;height:60px}}.ripple-circle{pointer-events:none;background:radial-gradient(circle,#3b82f680,#3b82f600 70%);border:2px solid #3b82f6cc;border-radius:50%;width:60px;height:60px;animation:.5s ease-out ripple;position:absolute}@keyframes fade-in{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.animate-fade-in{animation:.2s ease-out fade-in}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{50%{opacity:.5}}
|
|
1
|
+
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-border-style:solid;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-100:oklch(93.6% .032 17.717);--color-red-200:oklch(88.5% .062 18.334);--color-red-400:oklch(70.4% .191 22.216);--color-red-500:oklch(63.7% .237 25.331);--color-red-700:oklch(50.5% .213 27.518);--color-red-800:oklch(44.4% .177 26.899);--color-red-900:oklch(39.6% .141 25.723);--color-yellow-500:oklch(79.5% .184 86.047);--color-green-100:oklch(96.2% .044 156.743);--color-green-200:oklch(92.5% .084 155.995);--color-green-800:oklch(44.8% .119 151.328);--color-green-900:oklch(39.3% .095 152.535);--color-blue-400:oklch(70.7% .165 254.624);--color-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-gray-800:oklch(27.8% .033 256.848);--color-gray-900:oklch(21% .034 264.665);--color-gray-950:oklch(13% .028 261.692);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-xs:20rem;--container-2xl:42rem;--container-7xl:80rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--radius-lg:.5rem;--radius-xl:.75rem;--radius-2xl:1rem;--animate-spin:spin 1s linear infinite;--animate-pulse:pulse 2s cubic-bezier(.4,0,.6,1)infinite;--blur-sm:8px;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}*,:after,:before,::backdrop{border-color:var(--color-gray-200,currentcolor)}::file-selector-button{border-color:var(--color-gray-200,currentcolor)}}@layer components;@layer utilities{.pointer-events-none{pointer-events:none}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.inset-0{inset:calc(var(--spacing)*0)}.top-2{top:calc(var(--spacing)*2)}.top-12{top:calc(var(--spacing)*12)}.top-14{top:calc(var(--spacing)*14)}.right-2{right:calc(var(--spacing)*2)}.bottom-2{bottom:calc(var(--spacing)*2)}.left-2{left:calc(var(--spacing)*2)}.z-10{z-index:10}.z-20{z-index:20}.z-50{z-index:50}.mx-4{margin-inline:calc(var(--spacing)*4)}.mx-auto{margin-inline:auto}.mt-1{margin-top:calc(var(--spacing)*1)}.mt-2{margin-top:calc(var(--spacing)*2)}.mt-4{margin-top:calc(var(--spacing)*4)}.mt-6{margin-top:calc(var(--spacing)*6)}.mt-8{margin-top:calc(var(--spacing)*8)}.mt-auto{margin-top:auto}.mb-1{margin-bottom:calc(var(--spacing)*1)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.block{display:block}.flex{display:flex}.h-4{height:calc(var(--spacing)*4)}.h-8{height:calc(var(--spacing)*8)}.h-\[750px\]{height:750px}.h-full{height:100%}.h-screen{height:100vh}.max-h-full{max-height:100%}.w-4{width:calc(var(--spacing)*4)}.w-8{width:calc(var(--spacing)*8)}.w-96{width:calc(var(--spacing)*96)}.w-full{width:100%}.max-w-2xl{max-width:var(--container-2xl)}.max-w-7xl{max-width:var(--container-7xl)}.max-w-\[70\%\]{max-width:70%}.max-w-\[80\%\]{max-width:80%}.max-w-full{max-width:100%}.max-w-xs{max-width:var(--container-xs)}.flex-1{flex:1}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.animate-pulse{animation:var(--animate-pulse)}.animate-spin{animation:var(--animate-spin)}.cursor-pointer{cursor:pointer}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}.gap-1{gap:calc(var(--spacing)*1)}.gap-2{gap:calc(var(--spacing)*2)}.gap-4{gap:calc(var(--spacing)*4)}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*2)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-xl{border-radius:var(--radius-xl)}.rounded-t-2xl{border-top-left-radius:var(--radius-2xl);border-top-right-radius:var(--radius-2xl)}.rounded-b-2xl{border-bottom-right-radius:var(--radius-2xl);border-bottom-left-radius:var(--radius-2xl)}.border{border-style:var(--tw-border-style);border-width:1px}.border-4{border-style:var(--tw-border-style);border-width:4px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-l-4{border-left-style:var(--tw-border-style);border-left-width:4px}.border-blue-500{border-color:var(--color-blue-500)}.border-gray-200{border-color:var(--color-gray-200)}.border-gray-300{border-color:var(--color-gray-300)}.border-white{border-color:var(--color-white)}.border-yellow-500{border-color:var(--color-yellow-500)}.border-t-blue-500{border-top-color:var(--color-blue-500)}.border-t-transparent{border-top-color:#0000}.bg-black\/50{background-color:#00000080}@supports (color:color-mix(in lab,red,red)){.bg-black\/50{background-color:color-mix(in oklab,var(--color-black)50%,transparent)}}.bg-black\/70{background-color:#000000b3}@supports (color:color-mix(in lab,red,red)){.bg-black\/70{background-color:color-mix(in oklab,var(--color-black)70%,transparent)}}.bg-blue-500{background-color:var(--color-blue-500)}.bg-gray-100{background-color:var(--color-gray-100)}.bg-gray-200{background-color:var(--color-gray-200)}.bg-gray-700{background-color:var(--color-gray-700)}.bg-gray-800{background-color:var(--color-gray-800)}.bg-gray-900{background-color:var(--color-gray-900)}.bg-green-100{background-color:var(--color-green-100)}.bg-red-100{background-color:var(--color-red-100)}.bg-white{background-color:var(--color-white)}.bg-yellow-500{background-color:var(--color-yellow-500)}.object-contain{object-fit:contain}.p-1{padding:calc(var(--spacing)*1)}.p-2{padding:calc(var(--spacing)*2)}.p-3{padding:calc(var(--spacing)*3)}.p-4{padding:calc(var(--spacing)*4)}.p-6{padding:calc(var(--spacing)*6)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-6{padding-inline:calc(var(--spacing)*6)}.py-1{padding-block:calc(var(--spacing)*1)}.py-2{padding-block:calc(var(--spacing)*2)}.py-3{padding-block:calc(var(--spacing)*3)}.py-4{padding-block:calc(var(--spacing)*4)}.text-center{text-align:center}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.whitespace-pre-wrap{white-space:pre-wrap}.text-blue-500{color:var(--color-blue-500)}.text-blue-600{color:var(--color-blue-600)}.text-gray-200{color:var(--color-gray-200)}.text-gray-300{color:var(--color-gray-300)}.text-gray-400{color:var(--color-gray-400)}.text-gray-500{color:var(--color-gray-500)}.text-gray-600{color:var(--color-gray-600)}.text-gray-700{color:var(--color-gray-700)}.text-gray-900{color:var(--color-gray-900)}.text-green-800{color:var(--color-green-800)}.text-red-400{color:var(--color-red-400)}.text-red-500{color:var(--color-red-500)}.text-red-700{color:var(--color-red-700)}.text-red-800{color:var(--color-red-800)}.text-white{color:var(--color-white)}.opacity-70{opacity:.7}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a),0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.backdrop-blur-sm{--tw-backdrop-blur:blur(var(--blur-sm));-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.outline-none{--tw-outline-style:none;outline-style:none}@media(hover:hover){.hover\:bg-blue-600:hover{background-color:var(--color-blue-600)}.hover\:bg-gray-300:hover{background-color:var(--color-gray-300)}.hover\:bg-gray-600:hover{background-color:var(--color-gray-600)}.hover\:text-blue-600:hover{color:var(--color-blue-600)}.hover\:text-gray-800:hover{color:var(--color-gray-800)}.hover\:underline:hover{text-decoration-line:underline}}.focus\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\:ring-blue-500:focus{--tw-ring-color:var(--color-blue-500)}.focus\:outline-none:focus{--tw-outline-style:none;outline-style:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}@media(min-width:40rem){.sm\:flex-row{flex-direction:row}}@media(prefers-color-scheme:dark){.dark\:border-gray-600{border-color:var(--color-gray-600)}.dark\:border-gray-700{border-color:var(--color-gray-700)}.dark\:bg-gray-700{background-color:var(--color-gray-700)}.dark\:bg-gray-800{background-color:var(--color-gray-800)}.dark\:bg-green-900{background-color:var(--color-green-900)}.dark\:bg-red-900{background-color:var(--color-red-900)}.dark\:text-blue-400{color:var(--color-blue-400)}.dark\:text-gray-100{color:var(--color-gray-100)}.dark\:text-gray-300{color:var(--color-gray-300)}.dark\:text-gray-400{color:var(--color-gray-400)}.dark\:text-gray-600{color:var(--color-gray-600)}.dark\:text-green-200{color:var(--color-green-200)}.dark\:text-red-200{color:var(--color-red-200)}.dark\:text-red-400{color:var(--color-red-400)}@media(hover:hover){.dark\:hover\:bg-gray-600:hover{background-color:var(--color-gray-600)}.dark\:hover\:text-blue-400:hover{color:var(--color-blue-400)}.dark\:hover\:text-gray-200:hover{color:var(--color-gray-200)}}}}html{color-scheme:light dark}*{border-color:var(--color-gray-200)}@media(prefers-color-scheme:dark){*{border-color:var(--color-gray-800)}}body{background-color:var(--color-gray-50);color:var(--color-gray-950)}@media(prefers-color-scheme:dark){body{background-color:var(--color-gray-900);color:var(--color-gray-200)}}@keyframes ripple{0%{opacity:1;width:0;height:0}to{opacity:0;width:60px;height:60px}}.ripple-circle{pointer-events:none;background:radial-gradient(circle,#3b82f680,#3b82f600 70%);border:2px solid #3b82f6cc;border-radius:50%;width:60px;height:60px;animation:.5s ease-out ripple;position:absolute;transform:translate(-50%,-50%)}@keyframes fade-in{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.animate-fade-in{animation:.2s ease-out fade-in}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{50%{opacity:.5}}
|
|
@@ -7,4 +7,4 @@
|
|
|
7
7
|
Error generating stack: `+l.message+`
|
|
8
8
|
`+l.stack}}var hn=Object.prototype.hasOwnProperty,mn=u.unstable_scheduleCallback,yl=u.unstable_cancelCallback,mu=u.unstable_shouldYield,zt=u.unstable_requestPaint,gt=u.unstable_now,fe=u.unstable_getCurrentPriorityLevel,aa=u.unstable_ImmediatePriority,Fo=u.unstable_UserBlockingPriority,yu=u.unstable_NormalPriority,Zm=u.unstable_LowPriority,Wo=u.unstable_IdlePriority,Km=u.log,Jm=u.unstable_setDisableYieldValue,ua=null,re=null;function yn(t){if(typeof Km=="function"&&Jm(t),re&&typeof re.setStrictMode=="function")try{re.setStrictMode(ua,t)}catch{}}var de=Math.clz32?Math.clz32:Wm,km=Math.log,Fm=Math.LN2;function Wm(t){return t>>>=0,t===0?32:31-(km(t)/Fm|0)|0}var vu=256,pu=262144,gu=4194304;function Qn(t){var e=t&42;if(e!==0)return e;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function Su(t,e,n){var l=t.pendingLanes;if(l===0)return 0;var a=0,i=t.suspendedLanes,f=t.pingedLanes;t=t.warmLanes;var h=l&134217727;return h!==0?(l=h&~i,l!==0?a=Qn(l):(f&=h,f!==0?a=Qn(f):n||(n=h&~t,n!==0&&(a=Qn(n))))):(h=l&~i,h!==0?a=Qn(h):f!==0?a=Qn(f):n||(n=l&~t,n!==0&&(a=Qn(n)))),a===0?0:e!==0&&e!==a&&(e&i)===0&&(i=a&-a,n=e&-e,i>=n||i===32&&(n&4194048)!==0)?e:a}function ia(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function $m(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function $o(){var t=gu;return gu<<=1,(gu&62914560)===0&&(gu=4194304),t}function ec(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function ca(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Pm(t,e,n,l,a,i){var f=t.pendingLanes;t.pendingLanes=n,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=n,t.entangledLanes&=n,t.errorRecoveryDisabledLanes&=n,t.shellSuspendCounter=0;var h=t.entanglements,_=t.expirationTimes,A=t.hiddenUpdates;for(n=f&~n;0<n;){var L=31-de(n),N=1<<L;h[L]=0,_[L]=-1;var O=A[L];if(O!==null)for(A[L]=null,L=0;L<O.length;L++){var C=O[L];C!==null&&(C.lane&=-536870913)}n&=~N}l!==0&&Po(t,l,0),i!==0&&a===0&&t.tag!==0&&(t.suspendedLanes|=i&~(f&~e))}function Po(t,e,n){t.pendingLanes|=e,t.suspendedLanes&=~e;var l=31-de(e);t.entangledLanes|=e,t.entanglements[l]=t.entanglements[l]|1073741824|n&261930}function Io(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var l=31-de(n),a=1<<l;a&e|t[l]&e&&(t[l]|=e),n&=~a}}function tf(t,e){var n=e&-e;return n=(n&42)!==0?1:nc(n),(n&(t.suspendedLanes|e))!==0?0:n}function nc(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function lc(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function ef(){var t=V.p;return t!==0?t:(t=window.event,t===void 0?32:Gh(t.type))}function nf(t,e){var n=V.p;try{return V.p=t,e()}finally{V.p=n}}var vn=Math.random().toString(36).slice(2),Ft="__reactFiber$"+vn,ne="__reactProps$"+vn,vl="__reactContainer$"+vn,ac="__reactEvents$"+vn,Im="__reactListeners$"+vn,ty="__reactHandles$"+vn,lf="__reactResources$"+vn,sa="__reactMarker$"+vn;function uc(t){delete t[Ft],delete t[ne],delete t[ac],delete t[Im],delete t[ty]}function pl(t){var e=t[Ft];if(e)return e;for(var n=t.parentNode;n;){if(e=n[vl]||n[Ft]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=Mh(t);t!==null;){if(n=t[Ft])return n;t=Mh(t)}return e}t=n,n=t.parentNode}return null}function gl(t){if(t=t[Ft]||t[vl]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function oa(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(s(33))}function Sl(t){var e=t[lf];return e||(e=t[lf]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function Jt(t){t[sa]=!0}var af=new Set,uf={};function Zn(t,e){_l(t,e),_l(t+"Capture",e)}function _l(t,e){for(uf[t]=e,t=0;t<e.length;t++)af.add(e[t])}var ey=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),cf={},sf={};function ny(t){return hn.call(sf,t)?!0:hn.call(cf,t)?!1:ey.test(t)?sf[t]=!0:(cf[t]=!0,!1)}function _u(t,e,n){if(ny(e))if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var l=e.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+n)}}function bu(t,e,n){if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+n)}}function Ke(t,e,n,l){if(l===null)t.removeAttribute(n);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(n);return}t.setAttributeNS(e,n,""+l)}}function Te(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function of(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function ly(t,e,n){var l=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var a=l.get,i=l.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return a.call(this)},set:function(f){n=""+f,i.call(this,f)}}),Object.defineProperty(t,e,{enumerable:l.enumerable}),{getValue:function(){return n},setValue:function(f){n=""+f},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function ic(t){if(!t._valueTracker){var e=of(t)?"checked":"value";t._valueTracker=ly(t,e,""+t[e])}}function ff(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),l="";return t&&(l=of(t)?t.checked?"true":"false":t.value),t=l,t!==n?(e.setValue(t),!0):!1}function Tu(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var ay=/[\n"\\]/g;function Re(t){return t.replace(ay,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function cc(t,e,n,l,a,i,f,h){t.name="",f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?t.type=f:t.removeAttribute("type"),e!=null?f==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+Te(e)):t.value!==""+Te(e)&&(t.value=""+Te(e)):f!=="submit"&&f!=="reset"||t.removeAttribute("value"),e!=null?sc(t,f,Te(e)):n!=null?sc(t,f,Te(n)):l!=null&&t.removeAttribute("value"),a==null&&i!=null&&(t.defaultChecked=!!i),a!=null&&(t.checked=a&&typeof a!="function"&&typeof a!="symbol"),h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?t.name=""+Te(h):t.removeAttribute("name")}function rf(t,e,n,l,a,i,f,h){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(t.type=i),e!=null||n!=null){if(!(i!=="submit"&&i!=="reset"||e!=null)){ic(t);return}n=n!=null?""+Te(n):"",e=e!=null?""+Te(e):n,h||e===t.value||(t.value=e),t.defaultValue=e}l=l??a,l=typeof l!="function"&&typeof l!="symbol"&&!!l,t.checked=h?t.checked:!!l,t.defaultChecked=!!l,f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(t.name=f),ic(t)}function sc(t,e,n){e==="number"&&Tu(t.ownerDocument)===t||t.defaultValue===""+n||(t.defaultValue=""+n)}function bl(t,e,n,l){if(t=t.options,e){e={};for(var a=0;a<n.length;a++)e["$"+n[a]]=!0;for(n=0;n<t.length;n++)a=e.hasOwnProperty("$"+t[n].value),t[n].selected!==a&&(t[n].selected=a),a&&l&&(t[n].defaultSelected=!0)}else{for(n=""+Te(n),e=null,a=0;a<t.length;a++){if(t[a].value===n){t[a].selected=!0,l&&(t[a].defaultSelected=!0);return}e!==null||t[a].disabled||(e=t[a])}e!==null&&(e.selected=!0)}}function df(t,e,n){if(e!=null&&(e=""+Te(e),e!==t.value&&(t.value=e),n==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=n!=null?""+Te(n):""}function hf(t,e,n,l){if(e==null){if(l!=null){if(n!=null)throw Error(s(92));if(Nt(l)){if(1<l.length)throw Error(s(93));l=l[0]}n=l}n==null&&(n=""),e=n}n=Te(e),t.defaultValue=n,l=t.textContent,l===n&&l!==""&&l!==null&&(t.value=l),ic(t)}function Tl(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var uy=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function mf(t,e,n){var l=e.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?l?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":l?t.setProperty(e,n):typeof n!="number"||n===0||uy.has(e)?e==="float"?t.cssFloat=n:t[e]=(""+n).trim():t[e]=n+"px"}function yf(t,e,n){if(e!=null&&typeof e!="object")throw Error(s(62));if(t=t.style,n!=null){for(var l in n)!n.hasOwnProperty(l)||e!=null&&e.hasOwnProperty(l)||(l.indexOf("--")===0?t.setProperty(l,""):l==="float"?t.cssFloat="":t[l]="");for(var a in e)l=e[a],e.hasOwnProperty(a)&&n[a]!==l&&mf(t,a,l)}else for(var i in e)e.hasOwnProperty(i)&&mf(t,i,e[i])}function oc(t){if(t.indexOf("-")===-1)return!1;switch(t){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 iy=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),cy=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Ru(t){return cy.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function Je(){}var fc=null;function rc(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Rl=null,El=null;function vf(t){var e=gl(t);if(e&&(t=e.stateNode)){var n=t[ne]||null;t:switch(t=e.stateNode,e.type){case"input":if(cc(t,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),e=n.name,n.type==="radio"&&e!=null){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+Re(""+e)+'"][type="radio"]'),e=0;e<n.length;e++){var l=n[e];if(l!==t&&l.form===t.form){var a=l[ne]||null;if(!a)throw Error(s(90));cc(l,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(e=0;e<n.length;e++)l=n[e],l.form===t.form&&ff(l)}break t;case"textarea":df(t,n.value,n.defaultValue);break t;case"select":e=n.value,e!=null&&bl(t,!!n.multiple,e,!1)}}}var dc=!1;function pf(t,e,n){if(dc)return t(e,n);dc=!0;try{var l=t(e);return l}finally{if(dc=!1,(Rl!==null||El!==null)&&(fi(),Rl&&(e=Rl,t=El,El=Rl=null,vf(e),t)))for(e=0;e<t.length;e++)vf(t[e])}}function fa(t,e){var n=t.stateNode;if(n===null)return null;var l=n[ne]||null;if(l===null)return null;n=l[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(t=t.type,l=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!l;break t;default:t=!1}if(t)return null;if(n&&typeof n!="function")throw Error(s(231,e,typeof n));return n}var ke=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),hc=!1;if(ke)try{var ra={};Object.defineProperty(ra,"passive",{get:function(){hc=!0}}),window.addEventListener("test",ra,ra),window.removeEventListener("test",ra,ra)}catch{hc=!1}var pn=null,mc=null,Eu=null;function gf(){if(Eu)return Eu;var t,e=mc,n=e.length,l,a="value"in pn?pn.value:pn.textContent,i=a.length;for(t=0;t<n&&e[t]===a[t];t++);var f=n-t;for(l=1;l<=f&&e[n-l]===a[i-l];l++);return Eu=a.slice(t,1<l?1-l:void 0)}function Mu(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function zu(){return!0}function Sf(){return!1}function le(t){function e(n,l,a,i,f){this._reactName=n,this._targetInst=a,this.type=l,this.nativeEvent=i,this.target=f,this.currentTarget=null;for(var h in t)t.hasOwnProperty(h)&&(n=t[h],this[h]=n?n(i):i[h]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?zu:Sf,this.isPropagationStopped=Sf,this}return v(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=zu)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=zu)},persist:function(){},isPersistent:zu}),e}var Kn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Au=le(Kn),da=v({},Kn,{view:0,detail:0}),sy=le(da),yc,vc,ha,Ou=v({},da,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:gc,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==ha&&(ha&&t.type==="mousemove"?(yc=t.screenX-ha.screenX,vc=t.screenY-ha.screenY):vc=yc=0,ha=t),yc)},movementY:function(t){return"movementY"in t?t.movementY:vc}}),_f=le(Ou),oy=v({},Ou,{dataTransfer:0}),fy=le(oy),ry=v({},da,{relatedTarget:0}),pc=le(ry),dy=v({},Kn,{animationName:0,elapsedTime:0,pseudoElement:0}),hy=le(dy),my=v({},Kn,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),yy=le(my),vy=v({},Kn,{data:0}),bf=le(vy),py={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},gy={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Sy={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function _y(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=Sy[t])?!!e[t]:!1}function gc(){return _y}var by=v({},da,{key:function(t){if(t.key){var e=py[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Mu(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?gy[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:gc,charCode:function(t){return t.type==="keypress"?Mu(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Mu(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),Ty=le(by),Ry=v({},Ou,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Tf=le(Ry),Ey=v({},da,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:gc}),My=le(Ey),zy=v({},Kn,{propertyName:0,elapsedTime:0,pseudoElement:0}),Ay=le(zy),Oy=v({},Ou,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),Cy=le(Oy),xy=v({},Kn,{newState:0,oldState:0}),Dy=le(xy),Ly=[9,13,27,32],Sc=ke&&"CompositionEvent"in window,ma=null;ke&&"documentMode"in document&&(ma=document.documentMode);var Uy=ke&&"TextEvent"in window&&!ma,Rf=ke&&(!Sc||ma&&8<ma&&11>=ma),Ef=" ",Mf=!1;function zf(t,e){switch(t){case"keyup":return Ly.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Af(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Ml=!1;function Ny(t,e){switch(t){case"compositionend":return Af(e);case"keypress":return e.which!==32?null:(Mf=!0,Ef);case"textInput":return t=e.data,t===Ef&&Mf?null:t;default:return null}}function By(t,e){if(Ml)return t==="compositionend"||!Sc&&zf(t,e)?(t=gf(),Eu=mc=pn=null,Ml=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return Rf&&e.locale!=="ko"?null:e.data;default:return null}}var Hy={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Of(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!Hy[t.type]:e==="textarea"}function Cf(t,e,n,l){Rl?El?El.push(l):El=[l]:Rl=l,e=pi(e,"onChange"),0<e.length&&(n=new Au("onChange","change",null,n,l),t.push({event:n,listeners:e}))}var ya=null,va=null;function jy(t){rh(t,0)}function Cu(t){var e=oa(t);if(ff(e))return t}function xf(t,e){if(t==="change")return e}var Df=!1;if(ke){var _c;if(ke){var bc="oninput"in document;if(!bc){var Lf=document.createElement("div");Lf.setAttribute("oninput","return;"),bc=typeof Lf.oninput=="function"}_c=bc}else _c=!1;Df=_c&&(!document.documentMode||9<document.documentMode)}function Uf(){ya&&(ya.detachEvent("onpropertychange",Nf),va=ya=null)}function Nf(t){if(t.propertyName==="value"&&Cu(va)){var e=[];Cf(e,va,t,rc(t)),pf(jy,e)}}function qy(t,e,n){t==="focusin"?(Uf(),ya=e,va=n,ya.attachEvent("onpropertychange",Nf)):t==="focusout"&&Uf()}function wy(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Cu(va)}function Yy(t,e){if(t==="click")return Cu(e)}function Gy(t,e){if(t==="input"||t==="change")return Cu(e)}function Xy(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var he=typeof Object.is=="function"?Object.is:Xy;function pa(t,e){if(he(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),l=Object.keys(e);if(n.length!==l.length)return!1;for(l=0;l<n.length;l++){var a=n[l];if(!hn.call(e,a)||!he(t[a],e[a]))return!1}return!0}function Bf(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Hf(t,e){var n=Bf(t);t=0;for(var l;n;){if(n.nodeType===3){if(l=t+n.textContent.length,t<=e&&l>=e)return{node:n,offset:e-t};t=l}t:{for(;n;){if(n.nextSibling){n=n.nextSibling;break t}n=n.parentNode}n=void 0}n=Bf(n)}}function jf(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?jf(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function qf(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=Tu(t.document);e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=Tu(t.document)}return e}function Tc(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var Vy=ke&&"documentMode"in document&&11>=document.documentMode,zl=null,Rc=null,ga=null,Ec=!1;function wf(t,e,n){var l=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ec||zl==null||zl!==Tu(l)||(l=zl,"selectionStart"in l&&Tc(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),ga&&pa(ga,l)||(ga=l,l=pi(Rc,"onSelect"),0<l.length&&(e=new Au("onSelect","select",null,e,n),t.push({event:e,listeners:l}),e.target=zl)))}function Jn(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var Al={animationend:Jn("Animation","AnimationEnd"),animationiteration:Jn("Animation","AnimationIteration"),animationstart:Jn("Animation","AnimationStart"),transitionrun:Jn("Transition","TransitionRun"),transitionstart:Jn("Transition","TransitionStart"),transitioncancel:Jn("Transition","TransitionCancel"),transitionend:Jn("Transition","TransitionEnd")},Mc={},Yf={};ke&&(Yf=document.createElement("div").style,"AnimationEvent"in window||(delete Al.animationend.animation,delete Al.animationiteration.animation,delete Al.animationstart.animation),"TransitionEvent"in window||delete Al.transitionend.transition);function kn(t){if(Mc[t])return Mc[t];if(!Al[t])return t;var e=Al[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in Yf)return Mc[t]=e[n];return t}var Gf=kn("animationend"),Xf=kn("animationiteration"),Vf=kn("animationstart"),Qy=kn("transitionrun"),Zy=kn("transitionstart"),Ky=kn("transitioncancel"),Qf=kn("transitionend"),Zf=new Map,zc="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");zc.push("scrollEnd");function Be(t,e){Zf.set(t,e),Zn(e,[t])}var xu=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},Ee=[],Ol=0,Ac=0;function Du(){for(var t=Ol,e=Ac=Ol=0;e<t;){var n=Ee[e];Ee[e++]=null;var l=Ee[e];Ee[e++]=null;var a=Ee[e];Ee[e++]=null;var i=Ee[e];if(Ee[e++]=null,l!==null&&a!==null){var f=l.pending;f===null?a.next=a:(a.next=f.next,f.next=a),l.pending=a}i!==0&&Kf(n,a,i)}}function Lu(t,e,n,l){Ee[Ol++]=t,Ee[Ol++]=e,Ee[Ol++]=n,Ee[Ol++]=l,Ac|=l,t.lanes|=l,t=t.alternate,t!==null&&(t.lanes|=l)}function Oc(t,e,n,l){return Lu(t,e,n,l),Uu(t)}function Fn(t,e){return Lu(t,null,null,e),Uu(t)}function Kf(t,e,n){t.lanes|=n;var l=t.alternate;l!==null&&(l.lanes|=n);for(var a=!1,i=t.return;i!==null;)i.childLanes|=n,l=i.alternate,l!==null&&(l.childLanes|=n),i.tag===22&&(t=i.stateNode,t===null||t._visibility&1||(a=!0)),t=i,i=i.return;return t.tag===3?(i=t.stateNode,a&&e!==null&&(a=31-de(n),t=i.hiddenUpdates,l=t[a],l===null?t[a]=[e]:l.push(e),e.lane=n|536870912),i):null}function Uu(t){if(50<Ya)throw Ya=0,js=null,Error(s(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var Cl={};function Jy(t,e,n,l){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function me(t,e,n,l){return new Jy(t,e,n,l)}function Cc(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Fe(t,e){var n=t.alternate;return n===null?(n=me(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&65011712,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n.refCleanup=t.refCleanup,n}function Jf(t,e){t.flags&=65011714;var n=t.alternate;return n===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=n.childLanes,t.lanes=n.lanes,t.child=n.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=n.memoizedProps,t.memoizedState=n.memoizedState,t.updateQueue=n.updateQueue,t.type=n.type,e=n.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function Nu(t,e,n,l,a,i){var f=0;if(l=t,typeof t=="function")Cc(t)&&(f=1);else if(typeof t=="string")f=Pv(t,n,J.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case $:return t=me(31,n,e,a),t.elementType=$,t.lanes=i,t;case q:return Wn(n.children,a,i,e);case H:f=8,a|=24;break;case w:return t=me(12,n,e,a|2),t.elementType=w,t.lanes=i,t;case nt:return t=me(13,n,e,a),t.elementType=nt,t.lanes=i,t;case Y:return t=me(19,n,e,a),t.elementType=Y,t.lanes=i,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case X:f=10;break t;case Z:f=9;break t;case F:f=11;break t;case j:f=14;break t;case G:f=16,l=null;break t}f=29,n=Error(s(130,t===null?"null":typeof t,"")),l=null}return e=me(f,n,e,a),e.elementType=t,e.type=l,e.lanes=i,e}function Wn(t,e,n,l){return t=me(7,t,l,e),t.lanes=n,t}function xc(t,e,n){return t=me(6,t,null,e),t.lanes=n,t}function kf(t){var e=me(18,null,null,0);return e.stateNode=t,e}function Dc(t,e,n){return e=me(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var Ff=new WeakMap;function Me(t,e){if(typeof t=="object"&&t!==null){var n=Ff.get(t);return n!==void 0?n:(e={value:t,source:e,stack:hu(e)},Ff.set(t,e),e)}return{value:t,source:e,stack:hu(e)}}var xl=[],Dl=0,Bu=null,Sa=0,ze=[],Ae=0,gn=null,we=1,Ye="";function We(t,e){xl[Dl++]=Sa,xl[Dl++]=Bu,Bu=t,Sa=e}function Wf(t,e,n){ze[Ae++]=we,ze[Ae++]=Ye,ze[Ae++]=gn,gn=t;var l=we;t=Ye;var a=32-de(l)-1;l&=~(1<<a),n+=1;var i=32-de(e)+a;if(30<i){var f=a-a%5;i=(l&(1<<f)-1).toString(32),l>>=f,a-=f,we=1<<32-de(e)+a|n<<a|l,Ye=i+t}else we=1<<i|n<<a|l,Ye=t}function Lc(t){t.return!==null&&(We(t,1),Wf(t,1,0))}function Uc(t){for(;t===Bu;)Bu=xl[--Dl],xl[Dl]=null,Sa=xl[--Dl],xl[Dl]=null;for(;t===gn;)gn=ze[--Ae],ze[Ae]=null,Ye=ze[--Ae],ze[Ae]=null,we=ze[--Ae],ze[Ae]=null}function $f(t,e){ze[Ae++]=we,ze[Ae++]=Ye,ze[Ae++]=gn,we=e.id,Ye=e.overflow,gn=t}var Wt=null,Dt=null,yt=!1,Sn=null,Oe=!1,Nc=Error(s(519));function _n(t){var e=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw _a(Me(e,t)),Nc}function Pf(t){var e=t.stateNode,n=t.type,l=t.memoizedProps;switch(e[Ft]=t,e[ne]=l,n){case"dialog":rt("cancel",e),rt("close",e);break;case"iframe":case"object":case"embed":rt("load",e);break;case"video":case"audio":for(n=0;n<Xa.length;n++)rt(Xa[n],e);break;case"source":rt("error",e);break;case"img":case"image":case"link":rt("error",e),rt("load",e);break;case"details":rt("toggle",e);break;case"input":rt("invalid",e),rf(e,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":rt("invalid",e);break;case"textarea":rt("invalid",e),hf(e,l.value,l.defaultValue,l.children)}n=l.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||e.textContent===""+n||l.suppressHydrationWarning===!0||yh(e.textContent,n)?(l.popover!=null&&(rt("beforetoggle",e),rt("toggle",e)),l.onScroll!=null&&rt("scroll",e),l.onScrollEnd!=null&&rt("scrollend",e),l.onClick!=null&&(e.onclick=Je),e=!0):e=!1,e||_n(t,!0)}function If(t){for(Wt=t.return;Wt;)switch(Wt.tag){case 5:case 31:case 13:Oe=!1;return;case 27:case 3:Oe=!0;return;default:Wt=Wt.return}}function Ll(t){if(t!==Wt)return!1;if(!yt)return If(t),yt=!0,!1;var e=t.tag,n;if((n=e!==3&&e!==27)&&((n=e===5)&&(n=t.type,n=!(n!=="form"&&n!=="button")||Ps(t.type,t.memoizedProps)),n=!n),n&&Dt&&_n(t),If(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(s(317));Dt=Eh(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(s(317));Dt=Eh(t)}else e===27?(e=Dt,Nn(t.type)?(t=lo,lo=null,Dt=t):Dt=e):Dt=Wt?xe(t.stateNode.nextSibling):null;return!0}function $n(){Dt=Wt=null,yt=!1}function Bc(){var t=Sn;return t!==null&&(ce===null?ce=t:ce.push.apply(ce,t),Sn=null),t}function _a(t){Sn===null?Sn=[t]:Sn.push(t)}var Hc=R(null),Pn=null,$e=null;function bn(t,e,n){Q(Hc,e._currentValue),e._currentValue=n}function Pe(t){t._currentValue=Hc.current,B(Hc)}function jc(t,e,n){for(;t!==null;){var l=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,l!==null&&(l.childLanes|=e)):l!==null&&(l.childLanes&e)!==e&&(l.childLanes|=e),t===n)break;t=t.return}}function qc(t,e,n,l){var a=t.child;for(a!==null&&(a.return=t);a!==null;){var i=a.dependencies;if(i!==null){var f=a.child;i=i.firstContext;t:for(;i!==null;){var h=i;i=a;for(var _=0;_<e.length;_++)if(h.context===e[_]){i.lanes|=n,h=i.alternate,h!==null&&(h.lanes|=n),jc(i.return,n,t),l||(f=null);break t}i=h.next}}else if(a.tag===18){if(f=a.return,f===null)throw Error(s(341));f.lanes|=n,i=f.alternate,i!==null&&(i.lanes|=n),jc(f,n,t),f=null}else f=a.child;if(f!==null)f.return=a;else for(f=a;f!==null;){if(f===t){f=null;break}if(a=f.sibling,a!==null){a.return=f.return,f=a;break}f=f.return}a=f}}function Ul(t,e,n,l){t=null;for(var a=e,i=!1;a!==null;){if(!i){if((a.flags&524288)!==0)i=!0;else if((a.flags&262144)!==0)break}if(a.tag===10){var f=a.alternate;if(f===null)throw Error(s(387));if(f=f.memoizedProps,f!==null){var h=a.type;he(a.pendingProps.value,f.value)||(t!==null?t.push(h):t=[h])}}else if(a===mt.current){if(f=a.alternate,f===null)throw Error(s(387));f.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(t!==null?t.push(Ja):t=[Ja])}a=a.return}t!==null&&qc(e,t,n,l),e.flags|=262144}function Hu(t){for(t=t.firstContext;t!==null;){if(!he(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function In(t){Pn=t,$e=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function $t(t){return tr(Pn,t)}function ju(t,e){return Pn===null&&In(t),tr(t,e)}function tr(t,e){var n=e._currentValue;if(e={context:e,memoizedValue:n,next:null},$e===null){if(t===null)throw Error(s(308));$e=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else $e=$e.next=e;return n}var ky=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(n,l){t.push(l)}};this.abort=function(){e.aborted=!0,t.forEach(function(n){return n()})}},Fy=u.unstable_scheduleCallback,Wy=u.unstable_NormalPriority,Xt={$$typeof:X,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function wc(){return{controller:new ky,data:new Map,refCount:0}}function ba(t){t.refCount--,t.refCount===0&&Fy(Wy,function(){t.controller.abort()})}var Ta=null,Yc=0,Nl=0,Bl=null;function $y(t,e){if(Ta===null){var n=Ta=[];Yc=0,Nl=Vs(),Bl={status:"pending",value:void 0,then:function(l){n.push(l)}}}return Yc++,e.then(er,er),e}function er(){if(--Yc===0&&Ta!==null){Bl!==null&&(Bl.status="fulfilled");var t=Ta;Ta=null,Nl=0,Bl=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function Py(t,e){var n=[],l={status:"pending",value:null,reason:null,then:function(a){n.push(a)}};return t.then(function(){l.status="fulfilled",l.value=e;for(var a=0;a<n.length;a++)(0,n[a])(e)},function(a){for(l.status="rejected",l.reason=a,a=0;a<n.length;a++)(0,n[a])(void 0)}),l}var nr=x.S;x.S=function(t,e){wd=gt(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&$y(t,e),nr!==null&&nr(t,e)};var tl=R(null);function Gc(){var t=tl.current;return t!==null?t:xt.pooledCache}function qu(t,e){e===null?Q(tl,tl.current):Q(tl,e.pool)}function lr(){var t=Gc();return t===null?null:{parent:Xt._currentValue,pool:t}}var Hl=Error(s(460)),Xc=Error(s(474)),wu=Error(s(542)),Yu={then:function(){}};function ar(t){return t=t.status,t==="fulfilled"||t==="rejected"}function ur(t,e,n){switch(n=t[n],n===void 0?t.push(e):n!==e&&(e.then(Je,Je),e=n),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,cr(t),t;default:if(typeof e.status=="string")e.then(Je,Je);else{if(t=xt,t!==null&&100<t.shellSuspendCounter)throw Error(s(482));t=e,t.status="pending",t.then(function(l){if(e.status==="pending"){var a=e;a.status="fulfilled",a.value=l}},function(l){if(e.status==="pending"){var a=e;a.status="rejected",a.reason=l}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,cr(t),t}throw nl=e,Hl}}function el(t){try{var e=t._init;return e(t._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(nl=n,Hl):n}}var nl=null;function ir(){if(nl===null)throw Error(s(459));var t=nl;return nl=null,t}function cr(t){if(t===Hl||t===wu)throw Error(s(483))}var jl=null,Ra=0;function Gu(t){var e=Ra;return Ra+=1,jl===null&&(jl=[]),ur(jl,t,e)}function Ea(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function Xu(t,e){throw e.$$typeof===S?Error(s(525)):(t=Object.prototype.toString.call(e),Error(s(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function sr(t){function e(E,T){if(t){var z=E.deletions;z===null?(E.deletions=[T],E.flags|=16):z.push(T)}}function n(E,T){if(!t)return null;for(;T!==null;)e(E,T),T=T.sibling;return null}function l(E){for(var T=new Map;E!==null;)E.key!==null?T.set(E.key,E):T.set(E.index,E),E=E.sibling;return T}function a(E,T){return E=Fe(E,T),E.index=0,E.sibling=null,E}function i(E,T,z){return E.index=z,t?(z=E.alternate,z!==null?(z=z.index,z<T?(E.flags|=67108866,T):z):(E.flags|=67108866,T)):(E.flags|=1048576,T)}function f(E){return t&&E.alternate===null&&(E.flags|=67108866),E}function h(E,T,z,U){return T===null||T.tag!==6?(T=xc(z,E.mode,U),T.return=E,T):(T=a(T,z),T.return=E,T)}function _(E,T,z,U){var P=z.type;return P===q?L(E,T,z.props.children,U,z.key):T!==null&&(T.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===G&&el(P)===T.type)?(T=a(T,z.props),Ea(T,z),T.return=E,T):(T=Nu(z.type,z.key,z.props,null,E.mode,U),Ea(T,z),T.return=E,T)}function A(E,T,z,U){return T===null||T.tag!==4||T.stateNode.containerInfo!==z.containerInfo||T.stateNode.implementation!==z.implementation?(T=Dc(z,E.mode,U),T.return=E,T):(T=a(T,z.children||[]),T.return=E,T)}function L(E,T,z,U,P){return T===null||T.tag!==7?(T=Wn(z,E.mode,U,P),T.return=E,T):(T=a(T,z),T.return=E,T)}function N(E,T,z){if(typeof T=="string"&&T!==""||typeof T=="number"||typeof T=="bigint")return T=xc(""+T,E.mode,z),T.return=E,T;if(typeof T=="object"&&T!==null){switch(T.$$typeof){case M:return z=Nu(T.type,T.key,T.props,null,E.mode,z),Ea(z,T),z.return=E,z;case D:return T=Dc(T,E.mode,z),T.return=E,T;case G:return T=el(T),N(E,T,z)}if(Nt(T)||Rt(T))return T=Wn(T,E.mode,z,null),T.return=E,T;if(typeof T.then=="function")return N(E,Gu(T),z);if(T.$$typeof===X)return N(E,ju(E,T),z);Xu(E,T)}return null}function O(E,T,z,U){var P=T!==null?T.key:null;if(typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint")return P!==null?null:h(E,T,""+z,U);if(typeof z=="object"&&z!==null){switch(z.$$typeof){case M:return z.key===P?_(E,T,z,U):null;case D:return z.key===P?A(E,T,z,U):null;case G:return z=el(z),O(E,T,z,U)}if(Nt(z)||Rt(z))return P!==null?null:L(E,T,z,U,null);if(typeof z.then=="function")return O(E,T,Gu(z),U);if(z.$$typeof===X)return O(E,T,ju(E,z),U);Xu(E,z)}return null}function C(E,T,z,U,P){if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return E=E.get(z)||null,h(T,E,""+U,P);if(typeof U=="object"&&U!==null){switch(U.$$typeof){case M:return E=E.get(U.key===null?z:U.key)||null,_(T,E,U,P);case D:return E=E.get(U.key===null?z:U.key)||null,A(T,E,U,P);case G:return U=el(U),C(E,T,z,U,P)}if(Nt(U)||Rt(U))return E=E.get(z)||null,L(T,E,U,P,null);if(typeof U.then=="function")return C(E,T,z,Gu(U),P);if(U.$$typeof===X)return C(E,T,z,ju(T,U),P);Xu(T,U)}return null}function k(E,T,z,U){for(var P=null,vt=null,W=T,st=T=0,ht=null;W!==null&&st<z.length;st++){W.index>st?(ht=W,W=null):ht=W.sibling;var pt=O(E,W,z[st],U);if(pt===null){W===null&&(W=ht);break}t&&W&&pt.alternate===null&&e(E,W),T=i(pt,T,st),vt===null?P=pt:vt.sibling=pt,vt=pt,W=ht}if(st===z.length)return n(E,W),yt&&We(E,st),P;if(W===null){for(;st<z.length;st++)W=N(E,z[st],U),W!==null&&(T=i(W,T,st),vt===null?P=W:vt.sibling=W,vt=W);return yt&&We(E,st),P}for(W=l(W);st<z.length;st++)ht=C(W,E,st,z[st],U),ht!==null&&(t&&ht.alternate!==null&&W.delete(ht.key===null?st:ht.key),T=i(ht,T,st),vt===null?P=ht:vt.sibling=ht,vt=ht);return t&&W.forEach(function(wn){return e(E,wn)}),yt&&We(E,st),P}function I(E,T,z,U){if(z==null)throw Error(s(151));for(var P=null,vt=null,W=T,st=T=0,ht=null,pt=z.next();W!==null&&!pt.done;st++,pt=z.next()){W.index>st?(ht=W,W=null):ht=W.sibling;var wn=O(E,W,pt.value,U);if(wn===null){W===null&&(W=ht);break}t&&W&&wn.alternate===null&&e(E,W),T=i(wn,T,st),vt===null?P=wn:vt.sibling=wn,vt=wn,W=ht}if(pt.done)return n(E,W),yt&&We(E,st),P;if(W===null){for(;!pt.done;st++,pt=z.next())pt=N(E,pt.value,U),pt!==null&&(T=i(pt,T,st),vt===null?P=pt:vt.sibling=pt,vt=pt);return yt&&We(E,st),P}for(W=l(W);!pt.done;st++,pt=z.next())pt=C(W,E,st,pt.value,U),pt!==null&&(t&&pt.alternate!==null&&W.delete(pt.key===null?st:pt.key),T=i(pt,T,st),vt===null?P=pt:vt.sibling=pt,vt=pt);return t&&W.forEach(function(o0){return e(E,o0)}),yt&&We(E,st),P}function Ct(E,T,z,U){if(typeof z=="object"&&z!==null&&z.type===q&&z.key===null&&(z=z.props.children),typeof z=="object"&&z!==null){switch(z.$$typeof){case M:t:{for(var P=z.key;T!==null;){if(T.key===P){if(P=z.type,P===q){if(T.tag===7){n(E,T.sibling),U=a(T,z.props.children),U.return=E,E=U;break t}}else if(T.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===G&&el(P)===T.type){n(E,T.sibling),U=a(T,z.props),Ea(U,z),U.return=E,E=U;break t}n(E,T);break}else e(E,T);T=T.sibling}z.type===q?(U=Wn(z.props.children,E.mode,U,z.key),U.return=E,E=U):(U=Nu(z.type,z.key,z.props,null,E.mode,U),Ea(U,z),U.return=E,E=U)}return f(E);case D:t:{for(P=z.key;T!==null;){if(T.key===P)if(T.tag===4&&T.stateNode.containerInfo===z.containerInfo&&T.stateNode.implementation===z.implementation){n(E,T.sibling),U=a(T,z.children||[]),U.return=E,E=U;break t}else{n(E,T);break}else e(E,T);T=T.sibling}U=Dc(z,E.mode,U),U.return=E,E=U}return f(E);case G:return z=el(z),Ct(E,T,z,U)}if(Nt(z))return k(E,T,z,U);if(Rt(z)){if(P=Rt(z),typeof P!="function")throw Error(s(150));return z=P.call(z),I(E,T,z,U)}if(typeof z.then=="function")return Ct(E,T,Gu(z),U);if(z.$$typeof===X)return Ct(E,T,ju(E,z),U);Xu(E,z)}return typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint"?(z=""+z,T!==null&&T.tag===6?(n(E,T.sibling),U=a(T,z),U.return=E,E=U):(n(E,T),U=xc(z,E.mode,U),U.return=E,E=U),f(E)):n(E,T)}return function(E,T,z,U){try{Ra=0;var P=Ct(E,T,z,U);return jl=null,P}catch(W){if(W===Hl||W===wu)throw W;var vt=me(29,W,null,E.mode);return vt.lanes=U,vt.return=E,vt}finally{}}}var ll=sr(!0),or=sr(!1),Tn=!1;function Vc(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Qc(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function Rn(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function En(t,e,n){var l=t.updateQueue;if(l===null)return null;if(l=l.shared,(St&2)!==0){var a=l.pending;return a===null?e.next=e:(e.next=a.next,a.next=e),l.pending=e,e=Uu(t),Kf(t,null,n),e}return Lu(t,l,e,n),Uu(t)}function Ma(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194048)!==0)){var l=e.lanes;l&=t.pendingLanes,n|=l,e.lanes=n,Io(t,n)}}function Zc(t,e){var n=t.updateQueue,l=t.alternate;if(l!==null&&(l=l.updateQueue,n===l)){var a=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var f={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};i===null?a=i=f:i=i.next=f,n=n.next}while(n!==null);i===null?a=i=e:i=i.next=e}else a=i=e;n={baseState:l.baseState,firstBaseUpdate:a,lastBaseUpdate:i,shared:l.shared,callbacks:l.callbacks},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}var Kc=!1;function za(){if(Kc){var t=Bl;if(t!==null)throw t}}function Aa(t,e,n,l){Kc=!1;var a=t.updateQueue;Tn=!1;var i=a.firstBaseUpdate,f=a.lastBaseUpdate,h=a.shared.pending;if(h!==null){a.shared.pending=null;var _=h,A=_.next;_.next=null,f===null?i=A:f.next=A,f=_;var L=t.alternate;L!==null&&(L=L.updateQueue,h=L.lastBaseUpdate,h!==f&&(h===null?L.firstBaseUpdate=A:h.next=A,L.lastBaseUpdate=_))}if(i!==null){var N=a.baseState;f=0,L=A=_=null,h=i;do{var O=h.lane&-536870913,C=O!==h.lane;if(C?(dt&O)===O:(l&O)===O){O!==0&&O===Nl&&(Kc=!0),L!==null&&(L=L.next={lane:0,tag:h.tag,payload:h.payload,callback:null,next:null});t:{var k=t,I=h;O=e;var Ct=n;switch(I.tag){case 1:if(k=I.payload,typeof k=="function"){N=k.call(Ct,N,O);break t}N=k;break t;case 3:k.flags=k.flags&-65537|128;case 0:if(k=I.payload,O=typeof k=="function"?k.call(Ct,N,O):k,O==null)break t;N=v({},N,O);break t;case 2:Tn=!0}}O=h.callback,O!==null&&(t.flags|=64,C&&(t.flags|=8192),C=a.callbacks,C===null?a.callbacks=[O]:C.push(O))}else C={lane:O,tag:h.tag,payload:h.payload,callback:h.callback,next:null},L===null?(A=L=C,_=N):L=L.next=C,f|=O;if(h=h.next,h===null){if(h=a.shared.pending,h===null)break;C=h,h=C.next,C.next=null,a.lastBaseUpdate=C,a.shared.pending=null}}while(!0);L===null&&(_=N),a.baseState=_,a.firstBaseUpdate=A,a.lastBaseUpdate=L,i===null&&(a.shared.lanes=0),Cn|=f,t.lanes=f,t.memoizedState=N}}function fr(t,e){if(typeof t!="function")throw Error(s(191,t));t.call(e)}function rr(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;t<n.length;t++)fr(n[t],e)}var ql=R(null),Vu=R(0);function dr(t,e){t=sn,Q(Vu,t),Q(ql,e),sn=t|e.baseLanes}function Jc(){Q(Vu,sn),Q(ql,ql.current)}function kc(){sn=Vu.current,B(ql),B(Vu)}var ye=R(null),Ce=null;function Mn(t){var e=t.alternate;Q(wt,wt.current&1),Q(ye,t),Ce===null&&(e===null||ql.current!==null||e.memoizedState!==null)&&(Ce=t)}function Fc(t){Q(wt,wt.current),Q(ye,t),Ce===null&&(Ce=t)}function hr(t){t.tag===22?(Q(wt,wt.current),Q(ye,t),Ce===null&&(Ce=t)):zn()}function zn(){Q(wt,wt.current),Q(ye,ye.current)}function ve(t){B(ye),Ce===t&&(Ce=null),B(wt)}var wt=R(0);function Qu(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||eo(n)||no(n)))return e}else if(e.tag===19&&(e.memoizedProps.revealOrder==="forwards"||e.memoizedProps.revealOrder==="backwards"||e.memoizedProps.revealOrder==="unstable_legacy-backwards"||e.memoizedProps.revealOrder==="together")){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var Ie=0,it=null,At=null,Vt=null,Zu=!1,wl=!1,al=!1,Ku=0,Oa=0,Yl=null,Iy=0;function Bt(){throw Error(s(321))}function Wc(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!he(t[n],e[n]))return!1;return!0}function $c(t,e,n,l,a,i){return Ie=i,it=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,x.H=t===null||t.memoizedState===null?Wr:ds,al=!1,i=n(l,a),al=!1,wl&&(i=yr(e,n,l,a)),mr(t),i}function mr(t){x.H=Da;var e=At!==null&&At.next!==null;if(Ie=0,Vt=At=it=null,Zu=!1,Oa=0,Yl=null,e)throw Error(s(300));t===null||Qt||(t=t.dependencies,t!==null&&Hu(t)&&(Qt=!0))}function yr(t,e,n,l){it=t;var a=0;do{if(wl&&(Yl=null),Oa=0,wl=!1,25<=a)throw Error(s(301));if(a+=1,Vt=At=null,t.updateQueue!=null){var i=t.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}x.H=$r,i=e(n,l)}while(wl);return i}function tv(){var t=x.H,e=t.useState()[0];return e=typeof e.then=="function"?Ca(e):e,t=t.useState()[0],(At!==null?At.memoizedState:null)!==t&&(it.flags|=1024),e}function Pc(){var t=Ku!==0;return Ku=0,t}function Ic(t,e,n){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~n}function ts(t){if(Zu){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}Zu=!1}Ie=0,Vt=At=it=null,wl=!1,Oa=Ku=0,Yl=null}function ee(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Vt===null?it.memoizedState=Vt=t:Vt=Vt.next=t,Vt}function Yt(){if(At===null){var t=it.alternate;t=t!==null?t.memoizedState:null}else t=At.next;var e=Vt===null?it.memoizedState:Vt.next;if(e!==null)Vt=e,At=t;else{if(t===null)throw it.alternate===null?Error(s(467)):Error(s(310));At=t,t={memoizedState:At.memoizedState,baseState:At.baseState,baseQueue:At.baseQueue,queue:At.queue,next:null},Vt===null?it.memoizedState=Vt=t:Vt=Vt.next=t}return Vt}function Ju(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ca(t){var e=Oa;return Oa+=1,Yl===null&&(Yl=[]),t=ur(Yl,t,e),e=it,(Vt===null?e.memoizedState:Vt.next)===null&&(e=e.alternate,x.H=e===null||e.memoizedState===null?Wr:ds),t}function ku(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Ca(t);if(t.$$typeof===X)return $t(t)}throw Error(s(438,String(t)))}function es(t){var e=null,n=it.updateQueue;if(n!==null&&(e=n.memoCache),e==null){var l=it.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(e={data:l.data.map(function(a){return a.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),n===null&&(n=Ju(),it.updateQueue=n),n.memoCache=e,n=e.data[e.index],n===void 0)for(n=e.data[e.index]=Array(t),l=0;l<t;l++)n[l]=ot;return e.index++,n}function tn(t,e){return typeof e=="function"?e(t):e}function Fu(t){var e=Yt();return ns(e,At,t)}function ns(t,e,n){var l=t.queue;if(l===null)throw Error(s(311));l.lastRenderedReducer=n;var a=t.baseQueue,i=l.pending;if(i!==null){if(a!==null){var f=a.next;a.next=i.next,i.next=f}e.baseQueue=a=i,l.pending=null}if(i=t.baseState,a===null)t.memoizedState=i;else{e=a.next;var h=f=null,_=null,A=e,L=!1;do{var N=A.lane&-536870913;if(N!==A.lane?(dt&N)===N:(Ie&N)===N){var O=A.revertLane;if(O===0)_!==null&&(_=_.next={lane:0,revertLane:0,gesture:null,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null}),N===Nl&&(L=!0);else if((Ie&O)===O){A=A.next,O===Nl&&(L=!0);continue}else N={lane:0,revertLane:A.revertLane,gesture:null,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null},_===null?(h=_=N,f=i):_=_.next=N,it.lanes|=O,Cn|=O;N=A.action,al&&n(i,N),i=A.hasEagerState?A.eagerState:n(i,N)}else O={lane:N,revertLane:A.revertLane,gesture:A.gesture,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null},_===null?(h=_=O,f=i):_=_.next=O,it.lanes|=N,Cn|=N;A=A.next}while(A!==null&&A!==e);if(_===null?f=i:_.next=h,!he(i,t.memoizedState)&&(Qt=!0,L&&(n=Bl,n!==null)))throw n;t.memoizedState=i,t.baseState=f,t.baseQueue=_,l.lastRenderedState=i}return a===null&&(l.lanes=0),[t.memoizedState,l.dispatch]}function ls(t){var e=Yt(),n=e.queue;if(n===null)throw Error(s(311));n.lastRenderedReducer=t;var l=n.dispatch,a=n.pending,i=e.memoizedState;if(a!==null){n.pending=null;var f=a=a.next;do i=t(i,f.action),f=f.next;while(f!==a);he(i,e.memoizedState)||(Qt=!0),e.memoizedState=i,e.baseQueue===null&&(e.baseState=i),n.lastRenderedState=i}return[i,l]}function vr(t,e,n){var l=it,a=Yt(),i=yt;if(i){if(n===void 0)throw Error(s(407));n=n()}else n=e();var f=!he((At||a).memoizedState,n);if(f&&(a.memoizedState=n,Qt=!0),a=a.queue,is(Sr.bind(null,l,a,t),[t]),a.getSnapshot!==e||f||Vt!==null&&Vt.memoizedState.tag&1){if(l.flags|=2048,Gl(9,{destroy:void 0},gr.bind(null,l,a,n,e),null),xt===null)throw Error(s(349));i||(Ie&127)!==0||pr(l,e,n)}return n}function pr(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=it.updateQueue,e===null?(e=Ju(),it.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function gr(t,e,n,l){e.value=n,e.getSnapshot=l,_r(e)&&br(t)}function Sr(t,e,n){return n(function(){_r(e)&&br(t)})}function _r(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!he(t,n)}catch{return!0}}function br(t){var e=Fn(t,2);e!==null&&se(e,t,2)}function as(t){var e=ee();if(typeof t=="function"){var n=t;if(t=n(),al){yn(!0);try{n()}finally{yn(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:tn,lastRenderedState:t},e}function Tr(t,e,n,l){return t.baseState=n,ns(t,At,typeof l=="function"?l:tn)}function ev(t,e,n,l,a){if(Pu(t))throw Error(s(485));if(t=e.action,t!==null){var i={payload:a,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(f){i.listeners.push(f)}};x.T!==null?n(!0):i.isTransition=!1,l(i),n=e.pending,n===null?(i.next=e.pending=i,Rr(e,i)):(i.next=n.next,e.pending=n.next=i)}}function Rr(t,e){var n=e.action,l=e.payload,a=t.state;if(e.isTransition){var i=x.T,f={};x.T=f;try{var h=n(a,l),_=x.S;_!==null&&_(f,h),Er(t,e,h)}catch(A){us(t,e,A)}finally{i!==null&&f.types!==null&&(i.types=f.types),x.T=i}}else try{i=n(a,l),Er(t,e,i)}catch(A){us(t,e,A)}}function Er(t,e,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(l){Mr(t,e,l)},function(l){return us(t,e,l)}):Mr(t,e,n)}function Mr(t,e,n){e.status="fulfilled",e.value=n,zr(e),t.state=n,e=t.pending,e!==null&&(n=e.next,n===e?t.pending=null:(n=n.next,e.next=n,Rr(t,n)))}function us(t,e,n){var l=t.pending;if(t.pending=null,l!==null){l=l.next;do e.status="rejected",e.reason=n,zr(e),e=e.next;while(e!==l)}t.action=null}function zr(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function Ar(t,e){return e}function Or(t,e){if(yt){var n=xt.formState;if(n!==null){t:{var l=it;if(yt){if(Dt){e:{for(var a=Dt,i=Oe;a.nodeType!==8;){if(!i){a=null;break e}if(a=xe(a.nextSibling),a===null){a=null;break e}}i=a.data,a=i==="F!"||i==="F"?a:null}if(a){Dt=xe(a.nextSibling),l=a.data==="F!";break t}}_n(l)}l=!1}l&&(e=n[0])}}return n=ee(),n.memoizedState=n.baseState=e,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ar,lastRenderedState:e},n.queue=l,n=Jr.bind(null,it,l),l.dispatch=n,l=as(!1),i=rs.bind(null,it,!1,l.queue),l=ee(),a={state:e,dispatch:null,action:t,pending:null},l.queue=a,n=ev.bind(null,it,a,i,n),a.dispatch=n,l.memoizedState=t,[e,n,!1]}function Cr(t){var e=Yt();return xr(e,At,t)}function xr(t,e,n){if(e=ns(t,e,Ar)[0],t=Fu(tn)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var l=Ca(e)}catch(f){throw f===Hl?wu:f}else l=e;e=Yt();var a=e.queue,i=a.dispatch;return n!==e.memoizedState&&(it.flags|=2048,Gl(9,{destroy:void 0},nv.bind(null,a,n),null)),[l,i,t]}function nv(t,e){t.action=e}function Dr(t){var e=Yt(),n=At;if(n!==null)return xr(e,n,t);Yt(),e=e.memoizedState,n=Yt();var l=n.queue.dispatch;return n.memoizedState=t,[e,l,!1]}function Gl(t,e,n,l){return t={tag:t,create:n,deps:l,inst:e,next:null},e=it.updateQueue,e===null&&(e=Ju(),it.updateQueue=e),n=e.lastEffect,n===null?e.lastEffect=t.next=t:(l=n.next,n.next=t,t.next=l,e.lastEffect=t),t}function Lr(){return Yt().memoizedState}function Wu(t,e,n,l){var a=ee();it.flags|=t,a.memoizedState=Gl(1|e,{destroy:void 0},n,l===void 0?null:l)}function $u(t,e,n,l){var a=Yt();l=l===void 0?null:l;var i=a.memoizedState.inst;At!==null&&l!==null&&Wc(l,At.memoizedState.deps)?a.memoizedState=Gl(e,i,n,l):(it.flags|=t,a.memoizedState=Gl(1|e,i,n,l))}function Ur(t,e){Wu(8390656,8,t,e)}function is(t,e){$u(2048,8,t,e)}function lv(t){it.flags|=4;var e=it.updateQueue;if(e===null)e=Ju(),it.updateQueue=e,e.events=[t];else{var n=e.events;n===null?e.events=[t]:n.push(t)}}function Nr(t){var e=Yt().memoizedState;return lv({ref:e,nextImpl:t}),function(){if((St&2)!==0)throw Error(s(440));return e.impl.apply(void 0,arguments)}}function Br(t,e){return $u(4,2,t,e)}function Hr(t,e){return $u(4,4,t,e)}function jr(t,e){if(typeof e=="function"){t=t();var n=e(t);return function(){typeof n=="function"?n():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function qr(t,e,n){n=n!=null?n.concat([t]):null,$u(4,4,jr.bind(null,e,t),n)}function cs(){}function wr(t,e){var n=Yt();e=e===void 0?null:e;var l=n.memoizedState;return e!==null&&Wc(e,l[1])?l[0]:(n.memoizedState=[t,e],t)}function Yr(t,e){var n=Yt();e=e===void 0?null:e;var l=n.memoizedState;if(e!==null&&Wc(e,l[1]))return l[0];if(l=t(),al){yn(!0);try{t()}finally{yn(!1)}}return n.memoizedState=[l,e],l}function ss(t,e,n){return n===void 0||(Ie&1073741824)!==0&&(dt&261930)===0?t.memoizedState=e:(t.memoizedState=n,t=Gd(),it.lanes|=t,Cn|=t,n)}function Gr(t,e,n,l){return he(n,e)?n:ql.current!==null?(t=ss(t,n,l),he(t,e)||(Qt=!0),t):(Ie&42)===0||(Ie&1073741824)!==0&&(dt&261930)===0?(Qt=!0,t.memoizedState=n):(t=Gd(),it.lanes|=t,Cn|=t,e)}function Xr(t,e,n,l,a){var i=V.p;V.p=i!==0&&8>i?i:8;var f=x.T,h={};x.T=h,rs(t,!1,e,n);try{var _=a(),A=x.S;if(A!==null&&A(h,_),_!==null&&typeof _=="object"&&typeof _.then=="function"){var L=Py(_,l);xa(t,e,L,Se(t))}else xa(t,e,l,Se(t))}catch(N){xa(t,e,{then:function(){},status:"rejected",reason:N},Se())}finally{V.p=i,f!==null&&h.types!==null&&(f.types=h.types),x.T=f}}function av(){}function os(t,e,n,l){if(t.tag!==5)throw Error(s(476));var a=Vr(t).queue;Xr(t,a,e,tt,n===null?av:function(){return Qr(t),n(l)})}function Vr(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:tt,baseState:tt,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:tn,lastRenderedState:tt},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:tn,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function Qr(t){var e=Vr(t);e.next===null&&(e=t.alternate.memoizedState),xa(t,e.next.queue,{},Se())}function fs(){return $t(Ja)}function Zr(){return Yt().memoizedState}function Kr(){return Yt().memoizedState}function uv(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=Se();t=Rn(n);var l=En(e,t,n);l!==null&&(se(l,e,n),Ma(l,e,n)),e={cache:wc()},t.payload=e;return}e=e.return}}function iv(t,e,n){var l=Se();n={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Pu(t)?kr(e,n):(n=Oc(t,e,n,l),n!==null&&(se(n,t,l),Fr(n,e,l)))}function Jr(t,e,n){var l=Se();xa(t,e,n,l)}function xa(t,e,n,l){var a={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Pu(t))kr(e,a);else{var i=t.alternate;if(t.lanes===0&&(i===null||i.lanes===0)&&(i=e.lastRenderedReducer,i!==null))try{var f=e.lastRenderedState,h=i(f,n);if(a.hasEagerState=!0,a.eagerState=h,he(h,f))return Lu(t,e,a,0),xt===null&&Du(),!1}catch{}finally{}if(n=Oc(t,e,a,l),n!==null)return se(n,t,l),Fr(n,e,l),!0}return!1}function rs(t,e,n,l){if(l={lane:2,revertLane:Vs(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Pu(t)){if(e)throw Error(s(479))}else e=Oc(t,n,l,2),e!==null&&se(e,t,2)}function Pu(t){var e=t.alternate;return t===it||e!==null&&e===it}function kr(t,e){wl=Zu=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function Fr(t,e,n){if((n&4194048)!==0){var l=e.lanes;l&=t.pendingLanes,n|=l,e.lanes=n,Io(t,n)}}var Da={readContext:$t,use:ku,useCallback:Bt,useContext:Bt,useEffect:Bt,useImperativeHandle:Bt,useLayoutEffect:Bt,useInsertionEffect:Bt,useMemo:Bt,useReducer:Bt,useRef:Bt,useState:Bt,useDebugValue:Bt,useDeferredValue:Bt,useTransition:Bt,useSyncExternalStore:Bt,useId:Bt,useHostTransitionStatus:Bt,useFormState:Bt,useActionState:Bt,useOptimistic:Bt,useMemoCache:Bt,useCacheRefresh:Bt};Da.useEffectEvent=Bt;var Wr={readContext:$t,use:ku,useCallback:function(t,e){return ee().memoizedState=[t,e===void 0?null:e],t},useContext:$t,useEffect:Ur,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,Wu(4194308,4,jr.bind(null,e,t),n)},useLayoutEffect:function(t,e){return Wu(4194308,4,t,e)},useInsertionEffect:function(t,e){Wu(4,2,t,e)},useMemo:function(t,e){var n=ee();e=e===void 0?null:e;var l=t();if(al){yn(!0);try{t()}finally{yn(!1)}}return n.memoizedState=[l,e],l},useReducer:function(t,e,n){var l=ee();if(n!==void 0){var a=n(e);if(al){yn(!0);try{n(e)}finally{yn(!1)}}}else a=e;return l.memoizedState=l.baseState=a,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:a},l.queue=t,t=t.dispatch=iv.bind(null,it,t),[l.memoizedState,t]},useRef:function(t){var e=ee();return t={current:t},e.memoizedState=t},useState:function(t){t=as(t);var e=t.queue,n=Jr.bind(null,it,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:cs,useDeferredValue:function(t,e){var n=ee();return ss(n,t,e)},useTransition:function(){var t=as(!1);return t=Xr.bind(null,it,t.queue,!0,!1),ee().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var l=it,a=ee();if(yt){if(n===void 0)throw Error(s(407));n=n()}else{if(n=e(),xt===null)throw Error(s(349));(dt&127)!==0||pr(l,e,n)}a.memoizedState=n;var i={value:n,getSnapshot:e};return a.queue=i,Ur(Sr.bind(null,l,i,t),[t]),l.flags|=2048,Gl(9,{destroy:void 0},gr.bind(null,l,i,n,e),null),n},useId:function(){var t=ee(),e=xt.identifierPrefix;if(yt){var n=Ye,l=we;n=(l&~(1<<32-de(l)-1)).toString(32)+n,e="_"+e+"R_"+n,n=Ku++,0<n&&(e+="H"+n.toString(32)),e+="_"}else n=Iy++,e="_"+e+"r_"+n.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:fs,useFormState:Or,useActionState:Or,useOptimistic:function(t){var e=ee();e.memoizedState=e.baseState=t;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=n,e=rs.bind(null,it,!0,n),n.dispatch=e,[t,e]},useMemoCache:es,useCacheRefresh:function(){return ee().memoizedState=uv.bind(null,it)},useEffectEvent:function(t){var e=ee(),n={impl:t};return e.memoizedState=n,function(){if((St&2)!==0)throw Error(s(440));return n.impl.apply(void 0,arguments)}}},ds={readContext:$t,use:ku,useCallback:wr,useContext:$t,useEffect:is,useImperativeHandle:qr,useInsertionEffect:Br,useLayoutEffect:Hr,useMemo:Yr,useReducer:Fu,useRef:Lr,useState:function(){return Fu(tn)},useDebugValue:cs,useDeferredValue:function(t,e){var n=Yt();return Gr(n,At.memoizedState,t,e)},useTransition:function(){var t=Fu(tn)[0],e=Yt().memoizedState;return[typeof t=="boolean"?t:Ca(t),e]},useSyncExternalStore:vr,useId:Zr,useHostTransitionStatus:fs,useFormState:Cr,useActionState:Cr,useOptimistic:function(t,e){var n=Yt();return Tr(n,At,t,e)},useMemoCache:es,useCacheRefresh:Kr};ds.useEffectEvent=Nr;var $r={readContext:$t,use:ku,useCallback:wr,useContext:$t,useEffect:is,useImperativeHandle:qr,useInsertionEffect:Br,useLayoutEffect:Hr,useMemo:Yr,useReducer:ls,useRef:Lr,useState:function(){return ls(tn)},useDebugValue:cs,useDeferredValue:function(t,e){var n=Yt();return At===null?ss(n,t,e):Gr(n,At.memoizedState,t,e)},useTransition:function(){var t=ls(tn)[0],e=Yt().memoizedState;return[typeof t=="boolean"?t:Ca(t),e]},useSyncExternalStore:vr,useId:Zr,useHostTransitionStatus:fs,useFormState:Dr,useActionState:Dr,useOptimistic:function(t,e){var n=Yt();return At!==null?Tr(n,At,t,e):(n.baseState=t,[t,n.queue.dispatch])},useMemoCache:es,useCacheRefresh:Kr};$r.useEffectEvent=Nr;function hs(t,e,n,l){e=t.memoizedState,n=n(l,e),n=n==null?e:v({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var ms={enqueueSetState:function(t,e,n){t=t._reactInternals;var l=Se(),a=Rn(l);a.payload=e,n!=null&&(a.callback=n),e=En(t,a,l),e!==null&&(se(e,t,l),Ma(e,t,l))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var l=Se(),a=Rn(l);a.tag=1,a.payload=e,n!=null&&(a.callback=n),e=En(t,a,l),e!==null&&(se(e,t,l),Ma(e,t,l))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=Se(),l=Rn(n);l.tag=2,e!=null&&(l.callback=e),e=En(t,l,n),e!==null&&(se(e,t,n),Ma(e,t,n))}};function Pr(t,e,n,l,a,i,f){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(l,i,f):e.prototype&&e.prototype.isPureReactComponent?!pa(n,l)||!pa(a,i):!0}function Ir(t,e,n,l){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(n,l),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(n,l),e.state!==t&&ms.enqueueReplaceState(e,e.state,null)}function ul(t,e){var n=e;if("ref"in e){n={};for(var l in e)l!=="ref"&&(n[l]=e[l])}if(t=t.defaultProps){n===e&&(n=v({},n));for(var a in t)n[a]===void 0&&(n[a]=t[a])}return n}function td(t){xu(t)}function ed(t){console.error(t)}function nd(t){xu(t)}function Iu(t,e){try{var n=t.onUncaughtError;n(e.value,{componentStack:e.stack})}catch(l){setTimeout(function(){throw l})}}function ld(t,e,n){try{var l=t.onCaughtError;l(n.value,{componentStack:n.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(a){setTimeout(function(){throw a})}}function ys(t,e,n){return n=Rn(n),n.tag=3,n.payload={element:null},n.callback=function(){Iu(t,e)},n}function ad(t){return t=Rn(t),t.tag=3,t}function ud(t,e,n,l){var a=n.type.getDerivedStateFromError;if(typeof a=="function"){var i=l.value;t.payload=function(){return a(i)},t.callback=function(){ld(e,n,l)}}var f=n.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(t.callback=function(){ld(e,n,l),typeof a!="function"&&(xn===null?xn=new Set([this]):xn.add(this));var h=l.stack;this.componentDidCatch(l.value,{componentStack:h!==null?h:""})})}function cv(t,e,n,l,a){if(n.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(e=n.alternate,e!==null&&Ul(e,n,a,!0),n=ye.current,n!==null){switch(n.tag){case 31:case 13:return Ce===null?ri():n.alternate===null&&Ht===0&&(Ht=3),n.flags&=-257,n.flags|=65536,n.lanes=a,l===Yu?n.flags|=16384:(e=n.updateQueue,e===null?n.updateQueue=new Set([l]):e.add(l),Ys(t,l,a)),!1;case 22:return n.flags|=65536,l===Yu?n.flags|=16384:(e=n.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([l])},n.updateQueue=e):(n=e.retryQueue,n===null?e.retryQueue=new Set([l]):n.add(l)),Ys(t,l,a)),!1}throw Error(s(435,n.tag))}return Ys(t,l,a),ri(),!1}if(yt)return e=ye.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=a,l!==Nc&&(t=Error(s(422),{cause:l}),_a(Me(t,n)))):(l!==Nc&&(e=Error(s(423),{cause:l}),_a(Me(e,n))),t=t.current.alternate,t.flags|=65536,a&=-a,t.lanes|=a,l=Me(l,n),a=ys(t.stateNode,l,a),Zc(t,a),Ht!==4&&(Ht=2)),!1;var i=Error(s(520),{cause:l});if(i=Me(i,n),wa===null?wa=[i]:wa.push(i),Ht!==4&&(Ht=2),e===null)return!0;l=Me(l,n),n=e;do{switch(n.tag){case 3:return n.flags|=65536,t=a&-a,n.lanes|=t,t=ys(n.stateNode,l,t),Zc(n,t),!1;case 1:if(e=n.type,i=n.stateNode,(n.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||i!==null&&typeof i.componentDidCatch=="function"&&(xn===null||!xn.has(i))))return n.flags|=65536,a&=-a,n.lanes|=a,a=ad(a),ud(a,t,n,l),Zc(n,a),!1}n=n.return}while(n!==null);return!1}var vs=Error(s(461)),Qt=!1;function Pt(t,e,n,l){e.child=t===null?or(e,null,n,l):ll(e,t.child,n,l)}function id(t,e,n,l,a){n=n.render;var i=e.ref;if("ref"in l){var f={};for(var h in l)h!=="ref"&&(f[h]=l[h])}else f=l;return In(e),l=$c(t,e,n,f,i,a),h=Pc(),t!==null&&!Qt?(Ic(t,e,a),en(t,e,a)):(yt&&h&&Lc(e),e.flags|=1,Pt(t,e,l,a),e.child)}function cd(t,e,n,l,a){if(t===null){var i=n.type;return typeof i=="function"&&!Cc(i)&&i.defaultProps===void 0&&n.compare===null?(e.tag=15,e.type=i,sd(t,e,i,l,a)):(t=Nu(n.type,null,l,e,e.mode,a),t.ref=e.ref,t.return=e,e.child=t)}if(i=t.child,!Es(t,a)){var f=i.memoizedProps;if(n=n.compare,n=n!==null?n:pa,n(f,l)&&t.ref===e.ref)return en(t,e,a)}return e.flags|=1,t=Fe(i,l),t.ref=e.ref,t.return=e,e.child=t}function sd(t,e,n,l,a){if(t!==null){var i=t.memoizedProps;if(pa(i,l)&&t.ref===e.ref)if(Qt=!1,e.pendingProps=l=i,Es(t,a))(t.flags&131072)!==0&&(Qt=!0);else return e.lanes=t.lanes,en(t,e,a)}return ps(t,e,n,l,a)}function od(t,e,n,l){var a=l.children,i=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((e.flags&128)!==0){if(i=i!==null?i.baseLanes|n:n,t!==null){for(l=e.child=t.child,a=0;l!==null;)a=a|l.lanes|l.childLanes,l=l.sibling;l=a&~i}else l=0,e.child=null;return fd(t,e,i,n,l)}if((n&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&qu(e,i!==null?i.cachePool:null),i!==null?dr(e,i):Jc(),hr(e);else return l=e.lanes=536870912,fd(t,e,i!==null?i.baseLanes|n:n,n,l)}else i!==null?(qu(e,i.cachePool),dr(e,i),zn(),e.memoizedState=null):(t!==null&&qu(e,null),Jc(),zn());return Pt(t,e,a,n),e.child}function La(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function fd(t,e,n,l,a){var i=Gc();return i=i===null?null:{parent:Xt._currentValue,pool:i},e.memoizedState={baseLanes:n,cachePool:i},t!==null&&qu(e,null),Jc(),hr(e),t!==null&&Ul(t,e,l,!0),e.childLanes=a,null}function ti(t,e){return e=ni({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function rd(t,e,n){return ll(e,t.child,null,n),t=ti(e,e.pendingProps),t.flags|=2,ve(e),e.memoizedState=null,t}function sv(t,e,n){var l=e.pendingProps,a=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(yt){if(l.mode==="hidden")return t=ti(e,l),e.lanes=536870912,La(null,t);if(Fc(e),(t=Dt)?(t=Rh(t,Oe),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:gn!==null?{id:we,overflow:Ye}:null,retryLane:536870912,hydrationErrors:null},n=kf(t),n.return=e,e.child=n,Wt=e,Dt=null)):t=null,t===null)throw _n(e);return e.lanes=536870912,null}return ti(e,l)}var i=t.memoizedState;if(i!==null){var f=i.dehydrated;if(Fc(e),a)if(e.flags&256)e.flags&=-257,e=rd(t,e,n);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(s(558));else if(Qt||Ul(t,e,n,!1),a=(n&t.childLanes)!==0,Qt||a){if(l=xt,l!==null&&(f=tf(l,n),f!==0&&f!==i.retryLane))throw i.retryLane=f,Fn(t,f),se(l,t,f),vs;ri(),e=rd(t,e,n)}else t=i.treeContext,Dt=xe(f.nextSibling),Wt=e,yt=!0,Sn=null,Oe=!1,t!==null&&$f(e,t),e=ti(e,l),e.flags|=4096;return e}return t=Fe(t.child,{mode:l.mode,children:l.children}),t.ref=e.ref,e.child=t,t.return=e,t}function ei(t,e){var n=e.ref;if(n===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(s(284));(t===null||t.ref!==n)&&(e.flags|=4194816)}}function ps(t,e,n,l,a){return In(e),n=$c(t,e,n,l,void 0,a),l=Pc(),t!==null&&!Qt?(Ic(t,e,a),en(t,e,a)):(yt&&l&&Lc(e),e.flags|=1,Pt(t,e,n,a),e.child)}function dd(t,e,n,l,a,i){return In(e),e.updateQueue=null,n=yr(e,l,n,a),mr(t),l=Pc(),t!==null&&!Qt?(Ic(t,e,i),en(t,e,i)):(yt&&l&&Lc(e),e.flags|=1,Pt(t,e,n,i),e.child)}function hd(t,e,n,l,a){if(In(e),e.stateNode===null){var i=Cl,f=n.contextType;typeof f=="object"&&f!==null&&(i=$t(f)),i=new n(l,i),e.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=ms,e.stateNode=i,i._reactInternals=e,i=e.stateNode,i.props=l,i.state=e.memoizedState,i.refs={},Vc(e),f=n.contextType,i.context=typeof f=="object"&&f!==null?$t(f):Cl,i.state=e.memoizedState,f=n.getDerivedStateFromProps,typeof f=="function"&&(hs(e,n,f,l),i.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(f=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),f!==i.state&&ms.enqueueReplaceState(i,i.state,null),Aa(e,l,i,a),za(),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308),l=!0}else if(t===null){i=e.stateNode;var h=e.memoizedProps,_=ul(n,h);i.props=_;var A=i.context,L=n.contextType;f=Cl,typeof L=="object"&&L!==null&&(f=$t(L));var N=n.getDerivedStateFromProps;L=typeof N=="function"||typeof i.getSnapshotBeforeUpdate=="function",h=e.pendingProps!==h,L||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(h||A!==f)&&Ir(e,i,l,f),Tn=!1;var O=e.memoizedState;i.state=O,Aa(e,l,i,a),za(),A=e.memoizedState,h||O!==A||Tn?(typeof N=="function"&&(hs(e,n,N,l),A=e.memoizedState),(_=Tn||Pr(e,n,_,l,O,A,f))?(L||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(e.flags|=4194308)):(typeof i.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=l,e.memoizedState=A),i.props=l,i.state=A,i.context=f,l=_):(typeof i.componentDidMount=="function"&&(e.flags|=4194308),l=!1)}else{i=e.stateNode,Qc(t,e),f=e.memoizedProps,L=ul(n,f),i.props=L,N=e.pendingProps,O=i.context,A=n.contextType,_=Cl,typeof A=="object"&&A!==null&&(_=$t(A)),h=n.getDerivedStateFromProps,(A=typeof h=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(f!==N||O!==_)&&Ir(e,i,l,_),Tn=!1,O=e.memoizedState,i.state=O,Aa(e,l,i,a),za();var C=e.memoizedState;f!==N||O!==C||Tn||t!==null&&t.dependencies!==null&&Hu(t.dependencies)?(typeof h=="function"&&(hs(e,n,h,l),C=e.memoizedState),(L=Tn||Pr(e,n,L,l,O,C,_)||t!==null&&t.dependencies!==null&&Hu(t.dependencies))?(A||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(l,C,_),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(l,C,_)),typeof i.componentDidUpdate=="function"&&(e.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof i.componentDidUpdate!="function"||f===t.memoizedProps&&O===t.memoizedState||(e.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||f===t.memoizedProps&&O===t.memoizedState||(e.flags|=1024),e.memoizedProps=l,e.memoizedState=C),i.props=l,i.state=C,i.context=_,l=L):(typeof i.componentDidUpdate!="function"||f===t.memoizedProps&&O===t.memoizedState||(e.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||f===t.memoizedProps&&O===t.memoizedState||(e.flags|=1024),l=!1)}return i=l,ei(t,e),l=(e.flags&128)!==0,i||l?(i=e.stateNode,n=l&&typeof n.getDerivedStateFromError!="function"?null:i.render(),e.flags|=1,t!==null&&l?(e.child=ll(e,t.child,null,a),e.child=ll(e,null,n,a)):Pt(t,e,n,a),e.memoizedState=i.state,t=e.child):t=en(t,e,a),t}function md(t,e,n,l){return $n(),e.flags|=256,Pt(t,e,n,l),e.child}var gs={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ss(t){return{baseLanes:t,cachePool:lr()}}function _s(t,e,n){return t=t!==null?t.childLanes&~n:0,e&&(t|=ge),t}function yd(t,e,n){var l=e.pendingProps,a=!1,i=(e.flags&128)!==0,f;if((f=i)||(f=t!==null&&t.memoizedState===null?!1:(wt.current&2)!==0),f&&(a=!0,e.flags&=-129),f=(e.flags&32)!==0,e.flags&=-33,t===null){if(yt){if(a?Mn(e):zn(),(t=Dt)?(t=Rh(t,Oe),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:gn!==null?{id:we,overflow:Ye}:null,retryLane:536870912,hydrationErrors:null},n=kf(t),n.return=e,e.child=n,Wt=e,Dt=null)):t=null,t===null)throw _n(e);return no(t)?e.lanes=32:e.lanes=536870912,null}var h=l.children;return l=l.fallback,a?(zn(),a=e.mode,h=ni({mode:"hidden",children:h},a),l=Wn(l,a,n,null),h.return=e,l.return=e,h.sibling=l,e.child=h,l=e.child,l.memoizedState=Ss(n),l.childLanes=_s(t,f,n),e.memoizedState=gs,La(null,l)):(Mn(e),bs(e,h))}var _=t.memoizedState;if(_!==null&&(h=_.dehydrated,h!==null)){if(i)e.flags&256?(Mn(e),e.flags&=-257,e=Ts(t,e,n)):e.memoizedState!==null?(zn(),e.child=t.child,e.flags|=128,e=null):(zn(),h=l.fallback,a=e.mode,l=ni({mode:"visible",children:l.children},a),h=Wn(h,a,n,null),h.flags|=2,l.return=e,h.return=e,l.sibling=h,e.child=l,ll(e,t.child,null,n),l=e.child,l.memoizedState=Ss(n),l.childLanes=_s(t,f,n),e.memoizedState=gs,e=La(null,l));else if(Mn(e),no(h)){if(f=h.nextSibling&&h.nextSibling.dataset,f)var A=f.dgst;f=A,l=Error(s(419)),l.stack="",l.digest=f,_a({value:l,source:null,stack:null}),e=Ts(t,e,n)}else if(Qt||Ul(t,e,n,!1),f=(n&t.childLanes)!==0,Qt||f){if(f=xt,f!==null&&(l=tf(f,n),l!==0&&l!==_.retryLane))throw _.retryLane=l,Fn(t,l),se(f,t,l),vs;eo(h)||ri(),e=Ts(t,e,n)}else eo(h)?(e.flags|=192,e.child=t.child,e=null):(t=_.treeContext,Dt=xe(h.nextSibling),Wt=e,yt=!0,Sn=null,Oe=!1,t!==null&&$f(e,t),e=bs(e,l.children),e.flags|=4096);return e}return a?(zn(),h=l.fallback,a=e.mode,_=t.child,A=_.sibling,l=Fe(_,{mode:"hidden",children:l.children}),l.subtreeFlags=_.subtreeFlags&65011712,A!==null?h=Fe(A,h):(h=Wn(h,a,n,null),h.flags|=2),h.return=e,l.return=e,l.sibling=h,e.child=l,La(null,l),l=e.child,h=t.child.memoizedState,h===null?h=Ss(n):(a=h.cachePool,a!==null?(_=Xt._currentValue,a=a.parent!==_?{parent:_,pool:_}:a):a=lr(),h={baseLanes:h.baseLanes|n,cachePool:a}),l.memoizedState=h,l.childLanes=_s(t,f,n),e.memoizedState=gs,La(t.child,l)):(Mn(e),n=t.child,t=n.sibling,n=Fe(n,{mode:"visible",children:l.children}),n.return=e,n.sibling=null,t!==null&&(f=e.deletions,f===null?(e.deletions=[t],e.flags|=16):f.push(t)),e.child=n,e.memoizedState=null,n)}function bs(t,e){return e=ni({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function ni(t,e){return t=me(22,t,null,e),t.lanes=0,t}function Ts(t,e,n){return ll(e,t.child,null,n),t=bs(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function vd(t,e,n){t.lanes|=e;var l=t.alternate;l!==null&&(l.lanes|=e),jc(t.return,e,n)}function Rs(t,e,n,l,a,i){var f=t.memoizedState;f===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:l,tail:n,tailMode:a,treeForkCount:i}:(f.isBackwards=e,f.rendering=null,f.renderingStartTime=0,f.last=l,f.tail=n,f.tailMode=a,f.treeForkCount=i)}function pd(t,e,n){var l=e.pendingProps,a=l.revealOrder,i=l.tail;l=l.children;var f=wt.current,h=(f&2)!==0;if(h?(f=f&1|2,e.flags|=128):f&=1,Q(wt,f),Pt(t,e,l,n),l=yt?Sa:0,!h&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&vd(t,n,e);else if(t.tag===19)vd(t,n,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(a){case"forwards":for(n=e.child,a=null;n!==null;)t=n.alternate,t!==null&&Qu(t)===null&&(a=n),n=n.sibling;n=a,n===null?(a=e.child,e.child=null):(a=n.sibling,n.sibling=null),Rs(e,!1,a,n,i,l);break;case"backwards":case"unstable_legacy-backwards":for(n=null,a=e.child,e.child=null;a!==null;){if(t=a.alternate,t!==null&&Qu(t)===null){e.child=a;break}t=a.sibling,a.sibling=n,n=a,a=t}Rs(e,!0,n,null,i,l);break;case"together":Rs(e,!1,null,null,void 0,l);break;default:e.memoizedState=null}return e.child}function en(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),Cn|=e.lanes,(n&e.childLanes)===0)if(t!==null){if(Ul(t,e,n,!1),(n&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(s(153));if(e.child!==null){for(t=e.child,n=Fe(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=Fe(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function Es(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&Hu(t)))}function ov(t,e,n){switch(e.tag){case 3:Gt(e,e.stateNode.containerInfo),bn(e,Xt,t.memoizedState.cache),$n();break;case 27:case 5:Qe(e);break;case 4:Gt(e,e.stateNode.containerInfo);break;case 10:bn(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,Fc(e),null;break;case 13:var l=e.memoizedState;if(l!==null)return l.dehydrated!==null?(Mn(e),e.flags|=128,null):(n&e.child.childLanes)!==0?yd(t,e,n):(Mn(e),t=en(t,e,n),t!==null?t.sibling:null);Mn(e);break;case 19:var a=(t.flags&128)!==0;if(l=(n&e.childLanes)!==0,l||(Ul(t,e,n,!1),l=(n&e.childLanes)!==0),a){if(l)return pd(t,e,n);e.flags|=128}if(a=e.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),Q(wt,wt.current),l)break;return null;case 22:return e.lanes=0,od(t,e,n,e.pendingProps);case 24:bn(e,Xt,t.memoizedState.cache)}return en(t,e,n)}function gd(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps)Qt=!0;else{if(!Es(t,n)&&(e.flags&128)===0)return Qt=!1,ov(t,e,n);Qt=(t.flags&131072)!==0}else Qt=!1,yt&&(e.flags&1048576)!==0&&Wf(e,Sa,e.index);switch(e.lanes=0,e.tag){case 16:t:{var l=e.pendingProps;if(t=el(e.elementType),e.type=t,typeof t=="function")Cc(t)?(l=ul(t,l),e.tag=1,e=hd(null,e,t,l,n)):(e.tag=0,e=ps(null,e,t,l,n));else{if(t!=null){var a=t.$$typeof;if(a===F){e.tag=11,e=id(null,e,t,l,n);break t}else if(a===j){e.tag=14,e=cd(null,e,t,l,n);break t}}throw e=qt(t)||t,Error(s(306,e,""))}}return e;case 0:return ps(t,e,e.type,e.pendingProps,n);case 1:return l=e.type,a=ul(l,e.pendingProps),hd(t,e,l,a,n);case 3:t:{if(Gt(e,e.stateNode.containerInfo),t===null)throw Error(s(387));l=e.pendingProps;var i=e.memoizedState;a=i.element,Qc(t,e),Aa(e,l,null,n);var f=e.memoizedState;if(l=f.cache,bn(e,Xt,l),l!==i.cache&&qc(e,[Xt],n,!0),za(),l=f.element,i.isDehydrated)if(i={element:l,isDehydrated:!1,cache:f.cache},e.updateQueue.baseState=i,e.memoizedState=i,e.flags&256){e=md(t,e,l,n);break t}else if(l!==a){a=Me(Error(s(424)),e),_a(a),e=md(t,e,l,n);break t}else{switch(t=e.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(Dt=xe(t.firstChild),Wt=e,yt=!0,Sn=null,Oe=!0,n=or(e,null,l,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if($n(),l===a){e=en(t,e,n);break t}Pt(t,e,l,n)}e=e.child}return e;case 26:return ei(t,e),t===null?(n=Ch(e.type,null,e.pendingProps,null))?e.memoizedState=n:yt||(n=e.type,t=e.pendingProps,l=gi(lt.current).createElement(n),l[Ft]=e,l[ne]=t,It(l,n,t),Jt(l),e.stateNode=l):e.memoizedState=Ch(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return Qe(e),t===null&&yt&&(l=e.stateNode=zh(e.type,e.pendingProps,lt.current),Wt=e,Oe=!0,a=Dt,Nn(e.type)?(lo=a,Dt=xe(l.firstChild)):Dt=a),Pt(t,e,e.pendingProps.children,n),ei(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&yt&&((a=l=Dt)&&(l=wv(l,e.type,e.pendingProps,Oe),l!==null?(e.stateNode=l,Wt=e,Dt=xe(l.firstChild),Oe=!1,a=!0):a=!1),a||_n(e)),Qe(e),a=e.type,i=e.pendingProps,f=t!==null?t.memoizedProps:null,l=i.children,Ps(a,i)?l=null:f!==null&&Ps(a,f)&&(e.flags|=32),e.memoizedState!==null&&(a=$c(t,e,tv,null,null,n),Ja._currentValue=a),ei(t,e),Pt(t,e,l,n),e.child;case 6:return t===null&&yt&&((t=n=Dt)&&(n=Yv(n,e.pendingProps,Oe),n!==null?(e.stateNode=n,Wt=e,Dt=null,t=!0):t=!1),t||_n(e)),null;case 13:return yd(t,e,n);case 4:return Gt(e,e.stateNode.containerInfo),l=e.pendingProps,t===null?e.child=ll(e,null,l,n):Pt(t,e,l,n),e.child;case 11:return id(t,e,e.type,e.pendingProps,n);case 7:return Pt(t,e,e.pendingProps,n),e.child;case 8:return Pt(t,e,e.pendingProps.children,n),e.child;case 12:return Pt(t,e,e.pendingProps.children,n),e.child;case 10:return l=e.pendingProps,bn(e,e.type,l.value),Pt(t,e,l.children,n),e.child;case 9:return a=e.type._context,l=e.pendingProps.children,In(e),a=$t(a),l=l(a),e.flags|=1,Pt(t,e,l,n),e.child;case 14:return cd(t,e,e.type,e.pendingProps,n);case 15:return sd(t,e,e.type,e.pendingProps,n);case 19:return pd(t,e,n);case 31:return sv(t,e,n);case 22:return od(t,e,n,e.pendingProps);case 24:return In(e),l=$t(Xt),t===null?(a=Gc(),a===null&&(a=xt,i=wc(),a.pooledCache=i,i.refCount++,i!==null&&(a.pooledCacheLanes|=n),a=i),e.memoizedState={parent:l,cache:a},Vc(e),bn(e,Xt,a)):((t.lanes&n)!==0&&(Qc(t,e),Aa(e,null,null,n),za()),a=t.memoizedState,i=e.memoizedState,a.parent!==l?(a={parent:l,cache:l},e.memoizedState=a,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=a),bn(e,Xt,l)):(l=i.cache,bn(e,Xt,l),l!==a.cache&&qc(e,[Xt],n,!0))),Pt(t,e,e.pendingProps.children,n),e.child;case 29:throw e.pendingProps}throw Error(s(156,e.tag))}function nn(t){t.flags|=4}function Ms(t,e,n,l,a){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(a&335544128)===a)if(t.stateNode.complete)t.flags|=8192;else if(Zd())t.flags|=8192;else throw nl=Yu,Xc}else t.flags&=-16777217}function Sd(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!Nh(e))if(Zd())t.flags|=8192;else throw nl=Yu,Xc}function li(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?$o():536870912,t.lanes|=e,Zl|=e)}function Ua(t,e){if(!yt)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var l=null;n!==null;)n.alternate!==null&&(l=n),n=n.sibling;l===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:l.sibling=null}}function Lt(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,l=0;if(e)for(var a=t.child;a!==null;)n|=a.lanes|a.childLanes,l|=a.subtreeFlags&65011712,l|=a.flags&65011712,a.return=t,a=a.sibling;else for(a=t.child;a!==null;)n|=a.lanes|a.childLanes,l|=a.subtreeFlags,l|=a.flags,a.return=t,a=a.sibling;return t.subtreeFlags|=l,t.childLanes=n,e}function fv(t,e,n){var l=e.pendingProps;switch(Uc(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Lt(e),null;case 1:return Lt(e),null;case 3:return n=e.stateNode,l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),Pe(Xt),Mt(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(Ll(e)?nn(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,Bc())),Lt(e),null;case 26:var a=e.type,i=e.memoizedState;return t===null?(nn(e),i!==null?(Lt(e),Sd(e,i)):(Lt(e),Ms(e,a,null,l,n))):i?i!==t.memoizedState?(nn(e),Lt(e),Sd(e,i)):(Lt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==l&&nn(e),Lt(e),Ms(e,a,t,l,n)),null;case 27:if(dn(e),n=lt.current,a=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&nn(e);else{if(!l){if(e.stateNode===null)throw Error(s(166));return Lt(e),null}t=J.current,Ll(e)?Pf(e):(t=zh(a,l,n),e.stateNode=t,nn(e))}return Lt(e),null;case 5:if(dn(e),a=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&nn(e);else{if(!l){if(e.stateNode===null)throw Error(s(166));return Lt(e),null}if(i=J.current,Ll(e))Pf(e);else{var f=gi(lt.current);switch(i){case 1:i=f.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:i=f.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":i=f.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":i=f.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":i=f.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof l.is=="string"?f.createElement("select",{is:l.is}):f.createElement("select"),l.multiple?i.multiple=!0:l.size&&(i.size=l.size);break;default:i=typeof l.is=="string"?f.createElement(a,{is:l.is}):f.createElement(a)}}i[Ft]=e,i[ne]=l;t:for(f=e.child;f!==null;){if(f.tag===5||f.tag===6)i.appendChild(f.stateNode);else if(f.tag!==4&&f.tag!==27&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break t;for(;f.sibling===null;){if(f.return===null||f.return===e)break t;f=f.return}f.sibling.return=f.return,f=f.sibling}e.stateNode=i;t:switch(It(i,a,l),a){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break t;case"img":l=!0;break t;default:l=!1}l&&nn(e)}}return Lt(e),Ms(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,n),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==l&&nn(e);else{if(typeof l!="string"&&e.stateNode===null)throw Error(s(166));if(t=lt.current,Ll(e)){if(t=e.stateNode,n=e.memoizedProps,l=null,a=Wt,a!==null)switch(a.tag){case 27:case 5:l=a.memoizedProps}t[Ft]=e,t=!!(t.nodeValue===n||l!==null&&l.suppressHydrationWarning===!0||yh(t.nodeValue,n)),t||_n(e,!0)}else t=gi(t).createTextNode(l),t[Ft]=e,e.stateNode=t}return Lt(e),null;case 31:if(n=e.memoizedState,t===null||t.memoizedState!==null){if(l=Ll(e),n!==null){if(t===null){if(!l)throw Error(s(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(s(557));t[Ft]=e}else $n(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Lt(e),t=!1}else n=Bc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),t=!0;if(!t)return e.flags&256?(ve(e),e):(ve(e),null);if((e.flags&128)!==0)throw Error(s(558))}return Lt(e),null;case 13:if(l=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(a=Ll(e),l!==null&&l.dehydrated!==null){if(t===null){if(!a)throw Error(s(318));if(a=e.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(s(317));a[Ft]=e}else $n(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Lt(e),a=!1}else a=Bc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=a),a=!0;if(!a)return e.flags&256?(ve(e),e):(ve(e),null)}return ve(e),(e.flags&128)!==0?(e.lanes=n,e):(n=l!==null,t=t!==null&&t.memoizedState!==null,n&&(l=e.child,a=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(a=l.alternate.memoizedState.cachePool.pool),i=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(i=l.memoizedState.cachePool.pool),i!==a&&(l.flags|=2048)),n!==t&&n&&(e.child.flags|=8192),li(e,e.updateQueue),Lt(e),null);case 4:return Mt(),t===null&&Js(e.stateNode.containerInfo),Lt(e),null;case 10:return Pe(e.type),Lt(e),null;case 19:if(B(wt),l=e.memoizedState,l===null)return Lt(e),null;if(a=(e.flags&128)!==0,i=l.rendering,i===null)if(a)Ua(l,!1);else{if(Ht!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(i=Qu(t),i!==null){for(e.flags|=128,Ua(l,!1),t=i.updateQueue,e.updateQueue=t,li(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)Jf(n,t),n=n.sibling;return Q(wt,wt.current&1|2),yt&&We(e,l.treeForkCount),e.child}t=t.sibling}l.tail!==null&>()>si&&(e.flags|=128,a=!0,Ua(l,!1),e.lanes=4194304)}else{if(!a)if(t=Qu(i),t!==null){if(e.flags|=128,a=!0,t=t.updateQueue,e.updateQueue=t,li(e,t),Ua(l,!0),l.tail===null&&l.tailMode==="hidden"&&!i.alternate&&!yt)return Lt(e),null}else 2*gt()-l.renderingStartTime>si&&n!==536870912&&(e.flags|=128,a=!0,Ua(l,!1),e.lanes=4194304);l.isBackwards?(i.sibling=e.child,e.child=i):(t=l.last,t!==null?t.sibling=i:e.child=i,l.last=i)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=gt(),t.sibling=null,n=wt.current,Q(wt,a?n&1|2:n&1),yt&&We(e,l.treeForkCount),t):(Lt(e),null);case 22:case 23:return ve(e),kc(),l=e.memoizedState!==null,t!==null?t.memoizedState!==null!==l&&(e.flags|=8192):l&&(e.flags|=8192),l?(n&536870912)!==0&&(e.flags&128)===0&&(Lt(e),e.subtreeFlags&6&&(e.flags|=8192)):Lt(e),n=e.updateQueue,n!==null&&li(e,n.retryQueue),n=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),l=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),l!==n&&(e.flags|=2048),t!==null&&B(tl),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),Pe(Xt),Lt(e),null;case 25:return null;case 30:return null}throw Error(s(156,e.tag))}function rv(t,e){switch(Uc(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Pe(Xt),Mt(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return dn(e),null;case 31:if(e.memoizedState!==null){if(ve(e),e.alternate===null)throw Error(s(340));$n()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(ve(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(s(340));$n()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return B(wt),null;case 4:return Mt(),null;case 10:return Pe(e.type),null;case 22:case 23:return ve(e),kc(),t!==null&&B(tl),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return Pe(Xt),null;case 25:return null;default:return null}}function _d(t,e){switch(Uc(e),e.tag){case 3:Pe(Xt),Mt();break;case 26:case 27:case 5:dn(e);break;case 4:Mt();break;case 31:e.memoizedState!==null&&ve(e);break;case 13:ve(e);break;case 19:B(wt);break;case 10:Pe(e.type);break;case 22:case 23:ve(e),kc(),t!==null&&B(tl);break;case 24:Pe(Xt)}}function Na(t,e){try{var n=e.updateQueue,l=n!==null?n.lastEffect:null;if(l!==null){var a=l.next;n=a;do{if((n.tag&t)===t){l=void 0;var i=n.create,f=n.inst;l=i(),f.destroy=l}n=n.next}while(n!==a)}}catch(h){Tt(e,e.return,h)}}function An(t,e,n){try{var l=e.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var i=a.next;l=i;do{if((l.tag&t)===t){var f=l.inst,h=f.destroy;if(h!==void 0){f.destroy=void 0,a=e;var _=n,A=h;try{A()}catch(L){Tt(a,_,L)}}}l=l.next}while(l!==i)}}catch(L){Tt(e,e.return,L)}}function bd(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{rr(e,n)}catch(l){Tt(t,t.return,l)}}}function Td(t,e,n){n.props=ul(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(l){Tt(t,e,l)}}function Ba(t,e){try{var n=t.ref;if(n!==null){switch(t.tag){case 26:case 27:case 5:var l=t.stateNode;break;case 30:l=t.stateNode;break;default:l=t.stateNode}typeof n=="function"?t.refCleanup=n(l):n.current=l}}catch(a){Tt(t,e,a)}}function Ge(t,e){var n=t.ref,l=t.refCleanup;if(n!==null)if(typeof l=="function")try{l()}catch(a){Tt(t,e,a)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(a){Tt(t,e,a)}else n.current=null}function Rd(t){var e=t.type,n=t.memoizedProps,l=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":n.autoFocus&&l.focus();break t;case"img":n.src?l.src=n.src:n.srcSet&&(l.srcset=n.srcSet)}}catch(a){Tt(t,t.return,a)}}function zs(t,e,n){try{var l=t.stateNode;Uv(l,t.type,n,e),l[ne]=e}catch(a){Tt(t,t.return,a)}}function Ed(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Nn(t.type)||t.tag===4}function As(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||Ed(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&Nn(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Os(t,e,n){var l=t.tag;if(l===5||l===6)t=t.stateNode,e?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(t,e):(e=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,e.appendChild(t),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=Je));else if(l!==4&&(l===27&&Nn(t.type)&&(n=t.stateNode,e=null),t=t.child,t!==null))for(Os(t,e,n),t=t.sibling;t!==null;)Os(t,e,n),t=t.sibling}function ai(t,e,n){var l=t.tag;if(l===5||l===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(l!==4&&(l===27&&Nn(t.type)&&(n=t.stateNode),t=t.child,t!==null))for(ai(t,e,n),t=t.sibling;t!==null;)ai(t,e,n),t=t.sibling}function Md(t){var e=t.stateNode,n=t.memoizedProps;try{for(var l=t.type,a=e.attributes;a.length;)e.removeAttributeNode(a[0]);It(e,l,n),e[Ft]=t,e[ne]=n}catch(i){Tt(t,t.return,i)}}var ln=!1,Zt=!1,Cs=!1,zd=typeof WeakSet=="function"?WeakSet:Set,kt=null;function dv(t,e){if(t=t.containerInfo,Ws=Mi,t=qf(t),Tc(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else t:{n=(n=t.ownerDocument)&&n.defaultView||window;var l=n.getSelection&&n.getSelection();if(l&&l.rangeCount!==0){n=l.anchorNode;var a=l.anchorOffset,i=l.focusNode;l=l.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break t}var f=0,h=-1,_=-1,A=0,L=0,N=t,O=null;e:for(;;){for(var C;N!==n||a!==0&&N.nodeType!==3||(h=f+a),N!==i||l!==0&&N.nodeType!==3||(_=f+l),N.nodeType===3&&(f+=N.nodeValue.length),(C=N.firstChild)!==null;)O=N,N=C;for(;;){if(N===t)break e;if(O===n&&++A===a&&(h=f),O===i&&++L===l&&(_=f),(C=N.nextSibling)!==null)break;N=O,O=N.parentNode}N=C}n=h===-1||_===-1?null:{start:h,end:_}}else n=null}n=n||{start:0,end:0}}else n=null;for($s={focusedElem:t,selectionRange:n},Mi=!1,kt=e;kt!==null;)if(e=kt,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,kt=t;else for(;kt!==null;){switch(e=kt,i=e.alternate,t=e.flags,e.tag){case 0:if((t&4)!==0&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(n=0;n<t.length;n++)a=t[n],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&i!==null){t=void 0,n=e,a=i.memoizedProps,i=i.memoizedState,l=n.stateNode;try{var k=ul(n.type,a);t=l.getSnapshotBeforeUpdate(k,i),l.__reactInternalSnapshotBeforeUpdate=t}catch(I){Tt(n,n.return,I)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,n=t.nodeType,n===9)to(t);else if(n===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":to(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(s(163))}if(t=e.sibling,t!==null){t.return=e.return,kt=t;break}kt=e.return}}function Ad(t,e,n){var l=n.flags;switch(n.tag){case 0:case 11:case 15:un(t,n),l&4&&Na(5,n);break;case 1:if(un(t,n),l&4)if(t=n.stateNode,e===null)try{t.componentDidMount()}catch(f){Tt(n,n.return,f)}else{var a=ul(n.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(a,e,t.__reactInternalSnapshotBeforeUpdate)}catch(f){Tt(n,n.return,f)}}l&64&&bd(n),l&512&&Ba(n,n.return);break;case 3:if(un(t,n),l&64&&(t=n.updateQueue,t!==null)){if(e=null,n.child!==null)switch(n.child.tag){case 27:case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}try{rr(t,e)}catch(f){Tt(n,n.return,f)}}break;case 27:e===null&&l&4&&Md(n);case 26:case 5:un(t,n),e===null&&l&4&&Rd(n),l&512&&Ba(n,n.return);break;case 12:un(t,n);break;case 31:un(t,n),l&4&&xd(t,n);break;case 13:un(t,n),l&4&&Dd(t,n),l&64&&(t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(n=bv.bind(null,n),Gv(t,n))));break;case 22:if(l=n.memoizedState!==null||ln,!l){e=e!==null&&e.memoizedState!==null||Zt,a=ln;var i=Zt;ln=l,(Zt=e)&&!i?cn(t,n,(n.subtreeFlags&8772)!==0):un(t,n),ln=a,Zt=i}break;case 30:break;default:un(t,n)}}function Od(t){var e=t.alternate;e!==null&&(t.alternate=null,Od(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&uc(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var Ut=null,ae=!1;function an(t,e,n){for(n=n.child;n!==null;)Cd(t,e,n),n=n.sibling}function Cd(t,e,n){if(re&&typeof re.onCommitFiberUnmount=="function")try{re.onCommitFiberUnmount(ua,n)}catch{}switch(n.tag){case 26:Zt||Ge(n,e),an(t,e,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Zt||Ge(n,e);var l=Ut,a=ae;Nn(n.type)&&(Ut=n.stateNode,ae=!1),an(t,e,n),Qa(n.stateNode),Ut=l,ae=a;break;case 5:Zt||Ge(n,e);case 6:if(l=Ut,a=ae,Ut=null,an(t,e,n),Ut=l,ae=a,Ut!==null)if(ae)try{(Ut.nodeType===9?Ut.body:Ut.nodeName==="HTML"?Ut.ownerDocument.body:Ut).removeChild(n.stateNode)}catch(i){Tt(n,e,i)}else try{Ut.removeChild(n.stateNode)}catch(i){Tt(n,e,i)}break;case 18:Ut!==null&&(ae?(t=Ut,bh(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,n.stateNode),Il(t)):bh(Ut,n.stateNode));break;case 4:l=Ut,a=ae,Ut=n.stateNode.containerInfo,ae=!0,an(t,e,n),Ut=l,ae=a;break;case 0:case 11:case 14:case 15:An(2,n,e),Zt||An(4,n,e),an(t,e,n);break;case 1:Zt||(Ge(n,e),l=n.stateNode,typeof l.componentWillUnmount=="function"&&Td(n,e,l)),an(t,e,n);break;case 21:an(t,e,n);break;case 22:Zt=(l=Zt)||n.memoizedState!==null,an(t,e,n),Zt=l;break;default:an(t,e,n)}}function xd(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{Il(t)}catch(n){Tt(e,e.return,n)}}}function Dd(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{Il(t)}catch(n){Tt(e,e.return,n)}}function hv(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new zd),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new zd),e;default:throw Error(s(435,t.tag))}}function ui(t,e){var n=hv(t);e.forEach(function(l){if(!n.has(l)){n.add(l);var a=Tv.bind(null,t,l);l.then(a,a)}})}function ue(t,e){var n=e.deletions;if(n!==null)for(var l=0;l<n.length;l++){var a=n[l],i=t,f=e,h=f;t:for(;h!==null;){switch(h.tag){case 27:if(Nn(h.type)){Ut=h.stateNode,ae=!1;break t}break;case 5:Ut=h.stateNode,ae=!1;break t;case 3:case 4:Ut=h.stateNode.containerInfo,ae=!0;break t}h=h.return}if(Ut===null)throw Error(s(160));Cd(i,f,a),Ut=null,ae=!1,i=a.alternate,i!==null&&(i.return=null),a.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)Ld(e,t),e=e.sibling}var He=null;function Ld(t,e){var n=t.alternate,l=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:ue(e,t),ie(t),l&4&&(An(3,t,t.return),Na(3,t),An(5,t,t.return));break;case 1:ue(e,t),ie(t),l&512&&(Zt||n===null||Ge(n,n.return)),l&64&&ln&&(t=t.updateQueue,t!==null&&(l=t.callbacks,l!==null&&(n=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=n===null?l:n.concat(l))));break;case 26:var a=He;if(ue(e,t),ie(t),l&512&&(Zt||n===null||Ge(n,n.return)),l&4){var i=n!==null?n.memoizedState:null;if(l=t.memoizedState,n===null)if(l===null)if(t.stateNode===null){t:{l=t.type,n=t.memoizedProps,a=a.ownerDocument||a;e:switch(l){case"title":i=a.getElementsByTagName("title")[0],(!i||i[sa]||i[Ft]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=a.createElement(l),a.head.insertBefore(i,a.querySelector("head > title"))),It(i,l,n),i[Ft]=t,Jt(i),l=i;break t;case"link":var f=Lh("link","href",a).get(l+(n.href||""));if(f){for(var h=0;h<f.length;h++)if(i=f[h],i.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&i.getAttribute("rel")===(n.rel==null?null:n.rel)&&i.getAttribute("title")===(n.title==null?null:n.title)&&i.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){f.splice(h,1);break e}}i=a.createElement(l),It(i,l,n),a.head.appendChild(i);break;case"meta":if(f=Lh("meta","content",a).get(l+(n.content||""))){for(h=0;h<f.length;h++)if(i=f[h],i.getAttribute("content")===(n.content==null?null:""+n.content)&&i.getAttribute("name")===(n.name==null?null:n.name)&&i.getAttribute("property")===(n.property==null?null:n.property)&&i.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&i.getAttribute("charset")===(n.charSet==null?null:n.charSet)){f.splice(h,1);break e}}i=a.createElement(l),It(i,l,n),a.head.appendChild(i);break;default:throw Error(s(468,l))}i[Ft]=t,Jt(i),l=i}t.stateNode=l}else Uh(a,t.type,t.stateNode);else t.stateNode=Dh(a,l,t.memoizedProps);else i!==l?(i===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):i.count--,l===null?Uh(a,t.type,t.stateNode):Dh(a,l,t.memoizedProps)):l===null&&t.stateNode!==null&&zs(t,t.memoizedProps,n.memoizedProps)}break;case 27:ue(e,t),ie(t),l&512&&(Zt||n===null||Ge(n,n.return)),n!==null&&l&4&&zs(t,t.memoizedProps,n.memoizedProps);break;case 5:if(ue(e,t),ie(t),l&512&&(Zt||n===null||Ge(n,n.return)),t.flags&32){a=t.stateNode;try{Tl(a,"")}catch(k){Tt(t,t.return,k)}}l&4&&t.stateNode!=null&&(a=t.memoizedProps,zs(t,a,n!==null?n.memoizedProps:a)),l&1024&&(Cs=!0);break;case 6:if(ue(e,t),ie(t),l&4){if(t.stateNode===null)throw Error(s(162));l=t.memoizedProps,n=t.stateNode;try{n.nodeValue=l}catch(k){Tt(t,t.return,k)}}break;case 3:if(bi=null,a=He,He=Si(e.containerInfo),ue(e,t),He=a,ie(t),l&4&&n!==null&&n.memoizedState.isDehydrated)try{Il(e.containerInfo)}catch(k){Tt(t,t.return,k)}Cs&&(Cs=!1,Ud(t));break;case 4:l=He,He=Si(t.stateNode.containerInfo),ue(e,t),ie(t),He=l;break;case 12:ue(e,t),ie(t);break;case 31:ue(e,t),ie(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,ui(t,l)));break;case 13:ue(e,t),ie(t),t.child.flags&8192&&t.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(ci=gt()),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,ui(t,l)));break;case 22:a=t.memoizedState!==null;var _=n!==null&&n.memoizedState!==null,A=ln,L=Zt;if(ln=A||a,Zt=L||_,ue(e,t),Zt=L,ln=A,ie(t),l&8192)t:for(e=t.stateNode,e._visibility=a?e._visibility&-2:e._visibility|1,a&&(n===null||_||ln||Zt||il(t)),n=null,e=t;;){if(e.tag===5||e.tag===26){if(n===null){_=n=e;try{if(i=_.stateNode,a)f=i.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none";else{h=_.stateNode;var N=_.memoizedProps.style,O=N!=null&&N.hasOwnProperty("display")?N.display:null;h.style.display=O==null||typeof O=="boolean"?"":(""+O).trim()}}catch(k){Tt(_,_.return,k)}}}else if(e.tag===6){if(n===null){_=e;try{_.stateNode.nodeValue=a?"":_.memoizedProps}catch(k){Tt(_,_.return,k)}}}else if(e.tag===18){if(n===null){_=e;try{var C=_.stateNode;a?Th(C,!0):Th(_.stateNode,!1)}catch(k){Tt(_,_.return,k)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;n===e&&(n=null),e=e.return}n===e&&(n=null),e.sibling.return=e.return,e=e.sibling}l&4&&(l=t.updateQueue,l!==null&&(n=l.retryQueue,n!==null&&(l.retryQueue=null,ui(t,n))));break;case 19:ue(e,t),ie(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,ui(t,l)));break;case 30:break;case 21:break;default:ue(e,t),ie(t)}}function ie(t){var e=t.flags;if(e&2){try{for(var n,l=t.return;l!==null;){if(Ed(l)){n=l;break}l=l.return}if(n==null)throw Error(s(160));switch(n.tag){case 27:var a=n.stateNode,i=As(t);ai(t,i,a);break;case 5:var f=n.stateNode;n.flags&32&&(Tl(f,""),n.flags&=-33);var h=As(t);ai(t,h,f);break;case 3:case 4:var _=n.stateNode.containerInfo,A=As(t);Os(t,A,_);break;default:throw Error(s(161))}}catch(L){Tt(t,t.return,L)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function Ud(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;Ud(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function un(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)Ad(t,e.alternate,e),e=e.sibling}function il(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:An(4,e,e.return),il(e);break;case 1:Ge(e,e.return);var n=e.stateNode;typeof n.componentWillUnmount=="function"&&Td(e,e.return,n),il(e);break;case 27:Qa(e.stateNode);case 26:case 5:Ge(e,e.return),il(e);break;case 22:e.memoizedState===null&&il(e);break;case 30:il(e);break;default:il(e)}t=t.sibling}}function cn(t,e,n){for(n=n&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var l=e.alternate,a=t,i=e,f=i.flags;switch(i.tag){case 0:case 11:case 15:cn(a,i,n),Na(4,i);break;case 1:if(cn(a,i,n),l=i,a=l.stateNode,typeof a.componentDidMount=="function")try{a.componentDidMount()}catch(A){Tt(l,l.return,A)}if(l=i,a=l.updateQueue,a!==null){var h=l.stateNode;try{var _=a.shared.hiddenCallbacks;if(_!==null)for(a.shared.hiddenCallbacks=null,a=0;a<_.length;a++)fr(_[a],h)}catch(A){Tt(l,l.return,A)}}n&&f&64&&bd(i),Ba(i,i.return);break;case 27:Md(i);case 26:case 5:cn(a,i,n),n&&l===null&&f&4&&Rd(i),Ba(i,i.return);break;case 12:cn(a,i,n);break;case 31:cn(a,i,n),n&&f&4&&xd(a,i);break;case 13:cn(a,i,n),n&&f&4&&Dd(a,i);break;case 22:i.memoizedState===null&&cn(a,i,n),Ba(i,i.return);break;case 30:break;default:cn(a,i,n)}e=e.sibling}}function xs(t,e){var n=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==n&&(t!=null&&t.refCount++,n!=null&&ba(n))}function Ds(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&ba(t))}function je(t,e,n,l){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Nd(t,e,n,l),e=e.sibling}function Nd(t,e,n,l){var a=e.flags;switch(e.tag){case 0:case 11:case 15:je(t,e,n,l),a&2048&&Na(9,e);break;case 1:je(t,e,n,l);break;case 3:je(t,e,n,l),a&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&ba(t)));break;case 12:if(a&2048){je(t,e,n,l),t=e.stateNode;try{var i=e.memoizedProps,f=i.id,h=i.onPostCommit;typeof h=="function"&&h(f,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(_){Tt(e,e.return,_)}}else je(t,e,n,l);break;case 31:je(t,e,n,l);break;case 13:je(t,e,n,l);break;case 23:break;case 22:i=e.stateNode,f=e.alternate,e.memoizedState!==null?i._visibility&2?je(t,e,n,l):Ha(t,e):i._visibility&2?je(t,e,n,l):(i._visibility|=2,Xl(t,e,n,l,(e.subtreeFlags&10256)!==0||!1)),a&2048&&xs(f,e);break;case 24:je(t,e,n,l),a&2048&&Ds(e.alternate,e);break;default:je(t,e,n,l)}}function Xl(t,e,n,l,a){for(a=a&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var i=t,f=e,h=n,_=l,A=f.flags;switch(f.tag){case 0:case 11:case 15:Xl(i,f,h,_,a),Na(8,f);break;case 23:break;case 22:var L=f.stateNode;f.memoizedState!==null?L._visibility&2?Xl(i,f,h,_,a):Ha(i,f):(L._visibility|=2,Xl(i,f,h,_,a)),a&&A&2048&&xs(f.alternate,f);break;case 24:Xl(i,f,h,_,a),a&&A&2048&&Ds(f.alternate,f);break;default:Xl(i,f,h,_,a)}e=e.sibling}}function Ha(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var n=t,l=e,a=l.flags;switch(l.tag){case 22:Ha(n,l),a&2048&&xs(l.alternate,l);break;case 24:Ha(n,l),a&2048&&Ds(l.alternate,l);break;default:Ha(n,l)}e=e.sibling}}var ja=8192;function Vl(t,e,n){if(t.subtreeFlags&ja)for(t=t.child;t!==null;)Bd(t,e,n),t=t.sibling}function Bd(t,e,n){switch(t.tag){case 26:Vl(t,e,n),t.flags&ja&&t.memoizedState!==null&&Iv(n,He,t.memoizedState,t.memoizedProps);break;case 5:Vl(t,e,n);break;case 3:case 4:var l=He;He=Si(t.stateNode.containerInfo),Vl(t,e,n),He=l;break;case 22:t.memoizedState===null&&(l=t.alternate,l!==null&&l.memoizedState!==null?(l=ja,ja=16777216,Vl(t,e,n),ja=l):Vl(t,e,n));break;default:Vl(t,e,n)}}function Hd(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function qa(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var l=e[n];kt=l,qd(l,t)}Hd(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)jd(t),t=t.sibling}function jd(t){switch(t.tag){case 0:case 11:case 15:qa(t),t.flags&2048&&An(9,t,t.return);break;case 3:qa(t);break;case 12:qa(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,ii(t)):qa(t);break;default:qa(t)}}function ii(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var l=e[n];kt=l,qd(l,t)}Hd(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:An(8,e,e.return),ii(e);break;case 22:n=e.stateNode,n._visibility&2&&(n._visibility&=-3,ii(e));break;default:ii(e)}t=t.sibling}}function qd(t,e){for(;kt!==null;){var n=kt;switch(n.tag){case 0:case 11:case 15:An(8,n,e);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var l=n.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:ba(n.memoizedState.cache)}if(l=n.child,l!==null)l.return=n,kt=l;else t:for(n=t;kt!==null;){l=kt;var a=l.sibling,i=l.return;if(Od(l),l===n){kt=null;break t}if(a!==null){a.return=i,kt=a;break t}kt=i}}}var mv={getCacheForType:function(t){var e=$t(Xt),n=e.data.get(t);return n===void 0&&(n=t(),e.data.set(t,n)),n},cacheSignal:function(){return $t(Xt).controller.signal}},yv=typeof WeakMap=="function"?WeakMap:Map,St=0,xt=null,ft=null,dt=0,bt=0,pe=null,On=!1,Ql=!1,Ls=!1,sn=0,Ht=0,Cn=0,cl=0,Us=0,ge=0,Zl=0,wa=null,ce=null,Ns=!1,ci=0,wd=0,si=1/0,oi=null,xn=null,Kt=0,Dn=null,Kl=null,on=0,Bs=0,Hs=null,Yd=null,Ya=0,js=null;function Se(){return(St&2)!==0&&dt!==0?dt&-dt:x.T!==null?Vs():ef()}function Gd(){if(ge===0)if((dt&536870912)===0||yt){var t=pu;pu<<=1,(pu&3932160)===0&&(pu=262144),ge=t}else ge=536870912;return t=ye.current,t!==null&&(t.flags|=32),ge}function se(t,e,n){(t===xt&&(bt===2||bt===9)||t.cancelPendingCommit!==null)&&(Jl(t,0),Ln(t,dt,ge,!1)),ca(t,n),((St&2)===0||t!==xt)&&(t===xt&&((St&2)===0&&(cl|=n),Ht===4&&Ln(t,dt,ge,!1)),Xe(t))}function Xd(t,e,n){if((St&6)!==0)throw Error(s(327));var l=!n&&(e&127)===0&&(e&t.expiredLanes)===0||ia(t,e),a=l?gv(t,e):ws(t,e,!0),i=l;do{if(a===0){Ql&&!l&&Ln(t,e,0,!1);break}else{if(n=t.current.alternate,i&&!vv(n)){a=ws(t,e,!1),i=!1;continue}if(a===2){if(i=e,t.errorRecoveryDisabledLanes&i)var f=0;else f=t.pendingLanes&-536870913,f=f!==0?f:f&536870912?536870912:0;if(f!==0){e=f;t:{var h=t;a=wa;var _=h.current.memoizedState.isDehydrated;if(_&&(Jl(h,f).flags|=256),f=ws(h,f,!1),f!==2){if(Ls&&!_){h.errorRecoveryDisabledLanes|=i,cl|=i,a=4;break t}i=ce,ce=a,i!==null&&(ce===null?ce=i:ce.push.apply(ce,i))}a=f}if(i=!1,a!==2)continue}}if(a===1){Jl(t,0),Ln(t,e,0,!0);break}t:{switch(l=t,i=a,i){case 0:case 1:throw Error(s(345));case 4:if((e&4194048)!==e)break;case 6:Ln(l,e,ge,!On);break t;case 2:ce=null;break;case 3:case 5:break;default:throw Error(s(329))}if((e&62914560)===e&&(a=ci+300-gt(),10<a)){if(Ln(l,e,ge,!On),Su(l,0,!0)!==0)break t;on=e,l.timeoutHandle=Sh(Vd.bind(null,l,n,ce,oi,Ns,e,ge,cl,Zl,On,i,"Throttled",-0,0),a);break t}Vd(l,n,ce,oi,Ns,e,ge,cl,Zl,On,i,null,-0,0)}}break}while(!0);Xe(t)}function Vd(t,e,n,l,a,i,f,h,_,A,L,N,O,C){if(t.timeoutHandle=-1,N=e.subtreeFlags,N&8192||(N&16785408)===16785408){N={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Je},Bd(e,i,N);var k=(i&62914560)===i?ci-gt():(i&4194048)===i?wd-gt():0;if(k=t0(N,k),k!==null){on=i,t.cancelPendingCommit=k($d.bind(null,t,e,i,n,l,a,f,h,_,L,N,null,O,C)),Ln(t,i,f,!A);return}}$d(t,e,i,n,l,a,f,h,_)}function vv(t){for(var e=t;;){var n=e.tag;if((n===0||n===11||n===15)&&e.flags&16384&&(n=e.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var l=0;l<n.length;l++){var a=n[l],i=a.getSnapshot;a=a.value;try{if(!he(i(),a))return!1}catch{return!1}}if(n=e.child,e.subtreeFlags&16384&&n!==null)n.return=e,e=n;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function Ln(t,e,n,l){e&=~Us,e&=~cl,t.suspendedLanes|=e,t.pingedLanes&=~e,l&&(t.warmLanes|=e),l=t.expirationTimes;for(var a=e;0<a;){var i=31-de(a),f=1<<i;l[i]=-1,a&=~f}n!==0&&Po(t,n,e)}function fi(){return(St&6)===0?(Ga(0),!1):!0}function qs(){if(ft!==null){if(bt===0)var t=ft.return;else t=ft,$e=Pn=null,ts(t),jl=null,Ra=0,t=ft;for(;t!==null;)_d(t.alternate,t),t=t.return;ft=null}}function Jl(t,e){var n=t.timeoutHandle;n!==-1&&(t.timeoutHandle=-1,Hv(n)),n=t.cancelPendingCommit,n!==null&&(t.cancelPendingCommit=null,n()),on=0,qs(),xt=t,ft=n=Fe(t.current,null),dt=e,bt=0,pe=null,On=!1,Ql=ia(t,e),Ls=!1,Zl=ge=Us=cl=Cn=Ht=0,ce=wa=null,Ns=!1,(e&8)!==0&&(e|=e&32);var l=t.entangledLanes;if(l!==0)for(t=t.entanglements,l&=e;0<l;){var a=31-de(l),i=1<<a;e|=t[a],l&=~i}return sn=e,Du(),n}function Qd(t,e){it=null,x.H=Da,e===Hl||e===wu?(e=ir(),bt=3):e===Xc?(e=ir(),bt=4):bt=e===vs?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,pe=e,ft===null&&(Ht=1,Iu(t,Me(e,t.current)))}function Zd(){var t=ye.current;return t===null?!0:(dt&4194048)===dt?Ce===null:(dt&62914560)===dt||(dt&536870912)!==0?t===Ce:!1}function Kd(){var t=x.H;return x.H=Da,t===null?Da:t}function Jd(){var t=x.A;return x.A=mv,t}function ri(){Ht=4,On||(dt&4194048)!==dt&&ye.current!==null||(Ql=!0),(Cn&134217727)===0&&(cl&134217727)===0||xt===null||Ln(xt,dt,ge,!1)}function ws(t,e,n){var l=St;St|=2;var a=Kd(),i=Jd();(xt!==t||dt!==e)&&(oi=null,Jl(t,e)),e=!1;var f=Ht;t:do try{if(bt!==0&&ft!==null){var h=ft,_=pe;switch(bt){case 8:qs(),f=6;break t;case 3:case 2:case 9:case 6:ye.current===null&&(e=!0);var A=bt;if(bt=0,pe=null,kl(t,h,_,A),n&&Ql){f=0;break t}break;default:A=bt,bt=0,pe=null,kl(t,h,_,A)}}pv(),f=Ht;break}catch(L){Qd(t,L)}while(!0);return e&&t.shellSuspendCounter++,$e=Pn=null,St=l,x.H=a,x.A=i,ft===null&&(xt=null,dt=0,Du()),f}function pv(){for(;ft!==null;)kd(ft)}function gv(t,e){var n=St;St|=2;var l=Kd(),a=Jd();xt!==t||dt!==e?(oi=null,si=gt()+500,Jl(t,e)):Ql=ia(t,e);t:do try{if(bt!==0&&ft!==null){e=ft;var i=pe;e:switch(bt){case 1:bt=0,pe=null,kl(t,e,i,1);break;case 2:case 9:if(ar(i)){bt=0,pe=null,Fd(e);break}e=function(){bt!==2&&bt!==9||xt!==t||(bt=7),Xe(t)},i.then(e,e);break t;case 3:bt=7;break t;case 4:bt=5;break t;case 7:ar(i)?(bt=0,pe=null,Fd(e)):(bt=0,pe=null,kl(t,e,i,7));break;case 5:var f=null;switch(ft.tag){case 26:f=ft.memoizedState;case 5:case 27:var h=ft;if(f?Nh(f):h.stateNode.complete){bt=0,pe=null;var _=h.sibling;if(_!==null)ft=_;else{var A=h.return;A!==null?(ft=A,di(A)):ft=null}break e}}bt=0,pe=null,kl(t,e,i,5);break;case 6:bt=0,pe=null,kl(t,e,i,6);break;case 8:qs(),Ht=6;break t;default:throw Error(s(462))}}Sv();break}catch(L){Qd(t,L)}while(!0);return $e=Pn=null,x.H=l,x.A=a,St=n,ft!==null?0:(xt=null,dt=0,Du(),Ht)}function Sv(){for(;ft!==null&&!mu();)kd(ft)}function kd(t){var e=gd(t.alternate,t,sn);t.memoizedProps=t.pendingProps,e===null?di(t):ft=e}function Fd(t){var e=t,n=e.alternate;switch(e.tag){case 15:case 0:e=dd(n,e,e.pendingProps,e.type,void 0,dt);break;case 11:e=dd(n,e,e.pendingProps,e.type.render,e.ref,dt);break;case 5:ts(e);default:_d(n,e),e=ft=Jf(e,sn),e=gd(n,e,sn)}t.memoizedProps=t.pendingProps,e===null?di(t):ft=e}function kl(t,e,n,l){$e=Pn=null,ts(e),jl=null,Ra=0;var a=e.return;try{if(cv(t,a,e,n,dt)){Ht=1,Iu(t,Me(n,t.current)),ft=null;return}}catch(i){if(a!==null)throw ft=a,i;Ht=1,Iu(t,Me(n,t.current)),ft=null;return}e.flags&32768?(yt||l===1?t=!0:Ql||(dt&536870912)!==0?t=!1:(On=t=!0,(l===2||l===9||l===3||l===6)&&(l=ye.current,l!==null&&l.tag===13&&(l.flags|=16384))),Wd(e,t)):di(e)}function di(t){var e=t;do{if((e.flags&32768)!==0){Wd(e,On);return}t=e.return;var n=fv(e.alternate,e,sn);if(n!==null){ft=n;return}if(e=e.sibling,e!==null){ft=e;return}ft=e=t}while(e!==null);Ht===0&&(Ht=5)}function Wd(t,e){do{var n=rv(t.alternate,t);if(n!==null){n.flags&=32767,ft=n;return}if(n=t.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!e&&(t=t.sibling,t!==null)){ft=t;return}ft=t=n}while(t!==null);Ht=6,ft=null}function $d(t,e,n,l,a,i,f,h,_){t.cancelPendingCommit=null;do hi();while(Kt!==0);if((St&6)!==0)throw Error(s(327));if(e!==null){if(e===t.current)throw Error(s(177));if(i=e.lanes|e.childLanes,i|=Ac,Pm(t,n,i,f,h,_),t===xt&&(ft=xt=null,dt=0),Kl=e,Dn=t,on=n,Bs=i,Hs=a,Yd=l,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,Rv(yu,function(){return nh(),null})):(t.callbackNode=null,t.callbackPriority=0),l=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||l){l=x.T,x.T=null,a=V.p,V.p=2,f=St,St|=4;try{dv(t,e,n)}finally{St=f,V.p=a,x.T=l}}Kt=1,Pd(),Id(),th()}}function Pd(){if(Kt===1){Kt=0;var t=Dn,e=Kl,n=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||n){n=x.T,x.T=null;var l=V.p;V.p=2;var a=St;St|=4;try{Ld(e,t);var i=$s,f=qf(t.containerInfo),h=i.focusedElem,_=i.selectionRange;if(f!==h&&h&&h.ownerDocument&&jf(h.ownerDocument.documentElement,h)){if(_!==null&&Tc(h)){var A=_.start,L=_.end;if(L===void 0&&(L=A),"selectionStart"in h)h.selectionStart=A,h.selectionEnd=Math.min(L,h.value.length);else{var N=h.ownerDocument||document,O=N&&N.defaultView||window;if(O.getSelection){var C=O.getSelection(),k=h.textContent.length,I=Math.min(_.start,k),Ct=_.end===void 0?I:Math.min(_.end,k);!C.extend&&I>Ct&&(f=Ct,Ct=I,I=f);var E=Hf(h,I),T=Hf(h,Ct);if(E&&T&&(C.rangeCount!==1||C.anchorNode!==E.node||C.anchorOffset!==E.offset||C.focusNode!==T.node||C.focusOffset!==T.offset)){var z=N.createRange();z.setStart(E.node,E.offset),C.removeAllRanges(),I>Ct?(C.addRange(z),C.extend(T.node,T.offset)):(z.setEnd(T.node,T.offset),C.addRange(z))}}}}for(N=[],C=h;C=C.parentNode;)C.nodeType===1&&N.push({element:C,left:C.scrollLeft,top:C.scrollTop});for(typeof h.focus=="function"&&h.focus(),h=0;h<N.length;h++){var U=N[h];U.element.scrollLeft=U.left,U.element.scrollTop=U.top}}Mi=!!Ws,$s=Ws=null}finally{St=a,V.p=l,x.T=n}}t.current=e,Kt=2}}function Id(){if(Kt===2){Kt=0;var t=Dn,e=Kl,n=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||n){n=x.T,x.T=null;var l=V.p;V.p=2;var a=St;St|=4;try{Ad(t,e.alternate,e)}finally{St=a,V.p=l,x.T=n}}Kt=3}}function th(){if(Kt===4||Kt===3){Kt=0,zt();var t=Dn,e=Kl,n=on,l=Yd;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?Kt=5:(Kt=0,Kl=Dn=null,eh(t,t.pendingLanes));var a=t.pendingLanes;if(a===0&&(xn=null),lc(n),e=e.stateNode,re&&typeof re.onCommitFiberRoot=="function")try{re.onCommitFiberRoot(ua,e,void 0,(e.current.flags&128)===128)}catch{}if(l!==null){e=x.T,a=V.p,V.p=2,x.T=null;try{for(var i=t.onRecoverableError,f=0;f<l.length;f++){var h=l[f];i(h.value,{componentStack:h.stack})}}finally{x.T=e,V.p=a}}(on&3)!==0&&hi(),Xe(t),a=t.pendingLanes,(n&261930)!==0&&(a&42)!==0?t===js?Ya++:(Ya=0,js=t):Ya=0,Ga(0)}}function eh(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,ba(e)))}function hi(){return Pd(),Id(),th(),nh()}function nh(){if(Kt!==5)return!1;var t=Dn,e=Bs;Bs=0;var n=lc(on),l=x.T,a=V.p;try{V.p=32>n?32:n,x.T=null,n=Hs,Hs=null;var i=Dn,f=on;if(Kt=0,Kl=Dn=null,on=0,(St&6)!==0)throw Error(s(331));var h=St;if(St|=4,jd(i.current),Nd(i,i.current,f,n),St=h,Ga(0,!1),re&&typeof re.onPostCommitFiberRoot=="function")try{re.onPostCommitFiberRoot(ua,i)}catch{}return!0}finally{V.p=a,x.T=l,eh(t,e)}}function lh(t,e,n){e=Me(n,e),e=ys(t.stateNode,e,2),t=En(t,e,2),t!==null&&(ca(t,2),Xe(t))}function Tt(t,e,n){if(t.tag===3)lh(t,t,n);else for(;e!==null;){if(e.tag===3){lh(e,t,n);break}else if(e.tag===1){var l=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(xn===null||!xn.has(l))){t=Me(n,t),n=ad(2),l=En(e,n,2),l!==null&&(ud(n,l,e,t),ca(l,2),Xe(l));break}}e=e.return}}function Ys(t,e,n){var l=t.pingCache;if(l===null){l=t.pingCache=new yv;var a=new Set;l.set(e,a)}else a=l.get(e),a===void 0&&(a=new Set,l.set(e,a));a.has(n)||(Ls=!0,a.add(n),t=_v.bind(null,t,e,n),e.then(t,t))}function _v(t,e,n){var l=t.pingCache;l!==null&&l.delete(e),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,xt===t&&(dt&n)===n&&(Ht===4||Ht===3&&(dt&62914560)===dt&&300>gt()-ci?(St&2)===0&&Jl(t,0):Us|=n,Zl===dt&&(Zl=0)),Xe(t)}function ah(t,e){e===0&&(e=$o()),t=Fn(t,e),t!==null&&(ca(t,e),Xe(t))}function bv(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),ah(t,n)}function Tv(t,e){var n=0;switch(t.tag){case 31:case 13:var l=t.stateNode,a=t.memoizedState;a!==null&&(n=a.retryLane);break;case 19:l=t.stateNode;break;case 22:l=t.stateNode._retryCache;break;default:throw Error(s(314))}l!==null&&l.delete(e),ah(t,n)}function Rv(t,e){return mn(t,e)}var mi=null,Fl=null,Gs=!1,yi=!1,Xs=!1,Un=0;function Xe(t){t!==Fl&&t.next===null&&(Fl===null?mi=Fl=t:Fl=Fl.next=t),yi=!0,Gs||(Gs=!0,Mv())}function Ga(t,e){if(!Xs&&yi){Xs=!0;do for(var n=!1,l=mi;l!==null;){if(t!==0){var a=l.pendingLanes;if(a===0)var i=0;else{var f=l.suspendedLanes,h=l.pingedLanes;i=(1<<31-de(42|t)+1)-1,i&=a&~(f&~h),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(n=!0,sh(l,i))}else i=dt,i=Su(l,l===xt?i:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(i&3)===0||ia(l,i)||(n=!0,sh(l,i));l=l.next}while(n);Xs=!1}}function Ev(){uh()}function uh(){yi=Gs=!1;var t=0;Un!==0&&Bv()&&(t=Un);for(var e=gt(),n=null,l=mi;l!==null;){var a=l.next,i=ih(l,e);i===0?(l.next=null,n===null?mi=a:n.next=a,a===null&&(Fl=n)):(n=l,(t!==0||(i&3)!==0)&&(yi=!0)),l=a}Kt!==0&&Kt!==5||Ga(t),Un!==0&&(Un=0)}function ih(t,e){for(var n=t.suspendedLanes,l=t.pingedLanes,a=t.expirationTimes,i=t.pendingLanes&-62914561;0<i;){var f=31-de(i),h=1<<f,_=a[f];_===-1?((h&n)===0||(h&l)!==0)&&(a[f]=$m(h,e)):_<=e&&(t.expiredLanes|=h),i&=~h}if(e=xt,n=dt,n=Su(t,t===e?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l=t.callbackNode,n===0||t===e&&(bt===2||bt===9)||t.cancelPendingCommit!==null)return l!==null&&l!==null&&yl(l),t.callbackNode=null,t.callbackPriority=0;if((n&3)===0||ia(t,n)){if(e=n&-n,e===t.callbackPriority)return e;switch(l!==null&&yl(l),lc(n)){case 2:case 8:n=Fo;break;case 32:n=yu;break;case 268435456:n=Wo;break;default:n=yu}return l=ch.bind(null,t),n=mn(n,l),t.callbackPriority=e,t.callbackNode=n,e}return l!==null&&l!==null&&yl(l),t.callbackPriority=2,t.callbackNode=null,2}function ch(t,e){if(Kt!==0&&Kt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var n=t.callbackNode;if(hi()&&t.callbackNode!==n)return null;var l=dt;return l=Su(t,t===xt?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l===0?null:(Xd(t,l,e),ih(t,gt()),t.callbackNode!=null&&t.callbackNode===n?ch.bind(null,t):null)}function sh(t,e){if(hi())return null;Xd(t,e,!0)}function Mv(){jv(function(){(St&6)!==0?mn(aa,Ev):uh()})}function Vs(){if(Un===0){var t=Nl;t===0&&(t=vu,vu<<=1,(vu&261888)===0&&(vu=256)),Un=t}return Un}function oh(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Ru(""+t)}function fh(t,e){var n=e.ownerDocument.createElement("input");return n.name=e.name,n.value=e.value,t.id&&n.setAttribute("form",t.id),e.parentNode.insertBefore(n,e),t=new FormData(t),n.parentNode.removeChild(n),t}function zv(t,e,n,l,a){if(e==="submit"&&n&&n.stateNode===a){var i=oh((a[ne]||null).action),f=l.submitter;f&&(e=(e=f[ne]||null)?oh(e.formAction):f.getAttribute("formAction"),e!==null&&(i=e,f=null));var h=new Au("action","action",null,l,a);t.push({event:h,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Un!==0){var _=f?fh(a,f):new FormData(a);os(n,{pending:!0,data:_,method:a.method,action:i},null,_)}}else typeof i=="function"&&(h.preventDefault(),_=f?fh(a,f):new FormData(a),os(n,{pending:!0,data:_,method:a.method,action:i},i,_))},currentTarget:a}]})}}for(var Qs=0;Qs<zc.length;Qs++){var Zs=zc[Qs],Av=Zs.toLowerCase(),Ov=Zs[0].toUpperCase()+Zs.slice(1);Be(Av,"on"+Ov)}Be(Gf,"onAnimationEnd"),Be(Xf,"onAnimationIteration"),Be(Vf,"onAnimationStart"),Be("dblclick","onDoubleClick"),Be("focusin","onFocus"),Be("focusout","onBlur"),Be(Qy,"onTransitionRun"),Be(Zy,"onTransitionStart"),Be(Ky,"onTransitionCancel"),Be(Qf,"onTransitionEnd"),_l("onMouseEnter",["mouseout","mouseover"]),_l("onMouseLeave",["mouseout","mouseover"]),_l("onPointerEnter",["pointerout","pointerover"]),_l("onPointerLeave",["pointerout","pointerover"]),Zn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Zn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Zn("onBeforeInput",["compositionend","keypress","textInput","paste"]),Zn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Zn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Zn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Xa="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Cv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Xa));function rh(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var l=t[n],a=l.event;l=l.listeners;t:{var i=void 0;if(e)for(var f=l.length-1;0<=f;f--){var h=l[f],_=h.instance,A=h.currentTarget;if(h=h.listener,_!==i&&a.isPropagationStopped())break t;i=h,a.currentTarget=A;try{i(a)}catch(L){xu(L)}a.currentTarget=null,i=_}else for(f=0;f<l.length;f++){if(h=l[f],_=h.instance,A=h.currentTarget,h=h.listener,_!==i&&a.isPropagationStopped())break t;i=h,a.currentTarget=A;try{i(a)}catch(L){xu(L)}a.currentTarget=null,i=_}}}}function rt(t,e){var n=e[ac];n===void 0&&(n=e[ac]=new Set);var l=t+"__bubble";n.has(l)||(dh(e,t,2,!1),n.add(l))}function Ks(t,e,n){var l=0;e&&(l|=4),dh(n,t,l,e)}var vi="_reactListening"+Math.random().toString(36).slice(2);function Js(t){if(!t[vi]){t[vi]=!0,af.forEach(function(n){n!=="selectionchange"&&(Cv.has(n)||Ks(n,!1,t),Ks(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[vi]||(e[vi]=!0,Ks("selectionchange",!1,e))}}function dh(t,e,n,l){switch(Gh(e)){case 2:var a=l0;break;case 8:a=a0;break;default:a=so}n=a.bind(null,e,n,t),a=void 0,!hc||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(a=!0),l?a!==void 0?t.addEventListener(e,n,{capture:!0,passive:a}):t.addEventListener(e,n,!0):a!==void 0?t.addEventListener(e,n,{passive:a}):t.addEventListener(e,n,!1)}function ks(t,e,n,l,a){var i=l;if((e&1)===0&&(e&2)===0&&l!==null)t:for(;;){if(l===null)return;var f=l.tag;if(f===3||f===4){var h=l.stateNode.containerInfo;if(h===a)break;if(f===4)for(f=l.return;f!==null;){var _=f.tag;if((_===3||_===4)&&f.stateNode.containerInfo===a)return;f=f.return}for(;h!==null;){if(f=pl(h),f===null)return;if(_=f.tag,_===5||_===6||_===26||_===27){l=i=f;continue t}h=h.parentNode}}l=l.return}pf(function(){var A=i,L=rc(n),N=[];t:{var O=Zf.get(t);if(O!==void 0){var C=Au,k=t;switch(t){case"keypress":if(Mu(n)===0)break t;case"keydown":case"keyup":C=Ty;break;case"focusin":k="focus",C=pc;break;case"focusout":k="blur",C=pc;break;case"beforeblur":case"afterblur":C=pc;break;case"click":if(n.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":C=_f;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":C=fy;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":C=My;break;case Gf:case Xf:case Vf:C=hy;break;case Qf:C=Ay;break;case"scroll":case"scrollend":C=sy;break;case"wheel":C=Cy;break;case"copy":case"cut":case"paste":C=yy;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":C=Tf;break;case"toggle":case"beforetoggle":C=Dy}var I=(e&4)!==0,Ct=!I&&(t==="scroll"||t==="scrollend"),E=I?O!==null?O+"Capture":null:O;I=[];for(var T=A,z;T!==null;){var U=T;if(z=U.stateNode,U=U.tag,U!==5&&U!==26&&U!==27||z===null||E===null||(U=fa(T,E),U!=null&&I.push(Va(T,U,z))),Ct)break;T=T.return}0<I.length&&(O=new C(O,k,null,n,L),N.push({event:O,listeners:I}))}}if((e&7)===0){t:{if(O=t==="mouseover"||t==="pointerover",C=t==="mouseout"||t==="pointerout",O&&n!==fc&&(k=n.relatedTarget||n.fromElement)&&(pl(k)||k[vl]))break t;if((C||O)&&(O=L.window===L?L:(O=L.ownerDocument)?O.defaultView||O.parentWindow:window,C?(k=n.relatedTarget||n.toElement,C=A,k=k?pl(k):null,k!==null&&(Ct=d(k),I=k.tag,k!==Ct||I!==5&&I!==27&&I!==6)&&(k=null)):(C=null,k=A),C!==k)){if(I=_f,U="onMouseLeave",E="onMouseEnter",T="mouse",(t==="pointerout"||t==="pointerover")&&(I=Tf,U="onPointerLeave",E="onPointerEnter",T="pointer"),Ct=C==null?O:oa(C),z=k==null?O:oa(k),O=new I(U,T+"leave",C,n,L),O.target=Ct,O.relatedTarget=z,U=null,pl(L)===A&&(I=new I(E,T+"enter",k,n,L),I.target=z,I.relatedTarget=Ct,U=I),Ct=U,C&&k)e:{for(I=xv,E=C,T=k,z=0,U=E;U;U=I(U))z++;U=0;for(var P=T;P;P=I(P))U++;for(;0<z-U;)E=I(E),z--;for(;0<U-z;)T=I(T),U--;for(;z--;){if(E===T||T!==null&&E===T.alternate){I=E;break e}E=I(E),T=I(T)}I=null}else I=null;C!==null&&hh(N,O,C,I,!1),k!==null&&Ct!==null&&hh(N,Ct,k,I,!0)}}t:{if(O=A?oa(A):window,C=O.nodeName&&O.nodeName.toLowerCase(),C==="select"||C==="input"&&O.type==="file")var vt=xf;else if(Of(O))if(Df)vt=Gy;else{vt=wy;var W=qy}else C=O.nodeName,!C||C.toLowerCase()!=="input"||O.type!=="checkbox"&&O.type!=="radio"?A&&oc(A.elementType)&&(vt=xf):vt=Yy;if(vt&&(vt=vt(t,A))){Cf(N,vt,n,L);break t}W&&W(t,O,A),t==="focusout"&&A&&O.type==="number"&&A.memoizedProps.value!=null&&sc(O,"number",O.value)}switch(W=A?oa(A):window,t){case"focusin":(Of(W)||W.contentEditable==="true")&&(zl=W,Rc=A,ga=null);break;case"focusout":ga=Rc=zl=null;break;case"mousedown":Ec=!0;break;case"contextmenu":case"mouseup":case"dragend":Ec=!1,wf(N,n,L);break;case"selectionchange":if(Vy)break;case"keydown":case"keyup":wf(N,n,L)}var st;if(Sc)t:{switch(t){case"compositionstart":var ht="onCompositionStart";break t;case"compositionend":ht="onCompositionEnd";break t;case"compositionupdate":ht="onCompositionUpdate";break t}ht=void 0}else Ml?zf(t,n)&&(ht="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(ht="onCompositionStart");ht&&(Rf&&n.locale!=="ko"&&(Ml||ht!=="onCompositionStart"?ht==="onCompositionEnd"&&Ml&&(st=gf()):(pn=L,mc="value"in pn?pn.value:pn.textContent,Ml=!0)),W=pi(A,ht),0<W.length&&(ht=new bf(ht,t,null,n,L),N.push({event:ht,listeners:W}),st?ht.data=st:(st=Af(n),st!==null&&(ht.data=st)))),(st=Uy?Ny(t,n):By(t,n))&&(ht=pi(A,"onBeforeInput"),0<ht.length&&(W=new bf("onBeforeInput","beforeinput",null,n,L),N.push({event:W,listeners:ht}),W.data=st)),zv(N,t,A,n,L)}rh(N,e)})}function Va(t,e,n){return{instance:t,listener:e,currentTarget:n}}function pi(t,e){for(var n=e+"Capture",l=[];t!==null;){var a=t,i=a.stateNode;if(a=a.tag,a!==5&&a!==26&&a!==27||i===null||(a=fa(t,n),a!=null&&l.unshift(Va(t,a,i)),a=fa(t,e),a!=null&&l.push(Va(t,a,i))),t.tag===3)return l;t=t.return}return[]}function xv(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function hh(t,e,n,l,a){for(var i=e._reactName,f=[];n!==null&&n!==l;){var h=n,_=h.alternate,A=h.stateNode;if(h=h.tag,_!==null&&_===l)break;h!==5&&h!==26&&h!==27||A===null||(_=A,a?(A=fa(n,i),A!=null&&f.unshift(Va(n,A,_))):a||(A=fa(n,i),A!=null&&f.push(Va(n,A,_)))),n=n.return}f.length!==0&&t.push({event:e,listeners:f})}var Dv=/\r\n?/g,Lv=/\u0000|\uFFFD/g;function mh(t){return(typeof t=="string"?t:""+t).replace(Dv,`
|
|
9
9
|
`).replace(Lv,"")}function yh(t,e){return e=mh(e),mh(t)===e}function Ot(t,e,n,l,a,i){switch(n){case"children":typeof l=="string"?e==="body"||e==="textarea"&&l===""||Tl(t,l):(typeof l=="number"||typeof l=="bigint")&&e!=="body"&&Tl(t,""+l);break;case"className":bu(t,"class",l);break;case"tabIndex":bu(t,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":bu(t,n,l);break;case"style":yf(t,l,i);break;case"data":if(e!=="object"){bu(t,"data",l);break}case"src":case"href":if(l===""&&(e!=="a"||n!=="href")){t.removeAttribute(n);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(n);break}l=Ru(""+l),t.setAttribute(n,l);break;case"action":case"formAction":if(typeof l=="function"){t.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof i=="function"&&(n==="formAction"?(e!=="input"&&Ot(t,e,"name",a.name,a,null),Ot(t,e,"formEncType",a.formEncType,a,null),Ot(t,e,"formMethod",a.formMethod,a,null),Ot(t,e,"formTarget",a.formTarget,a,null)):(Ot(t,e,"encType",a.encType,a,null),Ot(t,e,"method",a.method,a,null),Ot(t,e,"target",a.target,a,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(n);break}l=Ru(""+l),t.setAttribute(n,l);break;case"onClick":l!=null&&(t.onclick=Je);break;case"onScroll":l!=null&&rt("scroll",t);break;case"onScrollEnd":l!=null&&rt("scrollend",t);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(n=l.__html,n!=null){if(a.children!=null)throw Error(s(60));t.innerHTML=n}}break;case"multiple":t.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":t.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){t.removeAttribute("xlink:href");break}n=Ru(""+l),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(n,""+l):t.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(n,""):t.removeAttribute(n);break;case"capture":case"download":l===!0?t.setAttribute(n,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(n,l):t.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?t.setAttribute(n,l):t.removeAttribute(n);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?t.removeAttribute(n):t.setAttribute(n,l);break;case"popover":rt("beforetoggle",t),rt("toggle",t),_u(t,"popover",l);break;case"xlinkActuate":Ke(t,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":Ke(t,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":Ke(t,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":Ke(t,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":Ke(t,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":Ke(t,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":Ke(t,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":Ke(t,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":Ke(t,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":_u(t,"is",l);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=iy.get(n)||n,_u(t,n,l))}}function Fs(t,e,n,l,a,i){switch(n){case"style":yf(t,l,i);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(n=l.__html,n!=null){if(a.children!=null)throw Error(s(60));t.innerHTML=n}}break;case"children":typeof l=="string"?Tl(t,l):(typeof l=="number"||typeof l=="bigint")&&Tl(t,""+l);break;case"onScroll":l!=null&&rt("scroll",t);break;case"onScrollEnd":l!=null&&rt("scrollend",t);break;case"onClick":l!=null&&(t.onclick=Je);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!uf.hasOwnProperty(n))t:{if(n[0]==="o"&&n[1]==="n"&&(a=n.endsWith("Capture"),e=n.slice(2,a?n.length-7:void 0),i=t[ne]||null,i=i!=null?i[n]:null,typeof i=="function"&&t.removeEventListener(e,i,a),typeof l=="function")){typeof i!="function"&&i!==null&&(n in t?t[n]=null:t.hasAttribute(n)&&t.removeAttribute(n)),t.addEventListener(e,l,a);break t}n in t?t[n]=l:l===!0?t.setAttribute(n,""):_u(t,n,l)}}}function It(t,e,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":rt("error",t),rt("load",t);var l=!1,a=!1,i;for(i in n)if(n.hasOwnProperty(i)){var f=n[i];if(f!=null)switch(i){case"src":l=!0;break;case"srcSet":a=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,e));default:Ot(t,e,i,f,n,null)}}a&&Ot(t,e,"srcSet",n.srcSet,n,null),l&&Ot(t,e,"src",n.src,n,null);return;case"input":rt("invalid",t);var h=i=f=a=null,_=null,A=null;for(l in n)if(n.hasOwnProperty(l)){var L=n[l];if(L!=null)switch(l){case"name":a=L;break;case"type":f=L;break;case"checked":_=L;break;case"defaultChecked":A=L;break;case"value":i=L;break;case"defaultValue":h=L;break;case"children":case"dangerouslySetInnerHTML":if(L!=null)throw Error(s(137,e));break;default:Ot(t,e,l,L,n,null)}}rf(t,i,h,_,A,f,a,!1);return;case"select":rt("invalid",t),l=f=i=null;for(a in n)if(n.hasOwnProperty(a)&&(h=n[a],h!=null))switch(a){case"value":i=h;break;case"defaultValue":f=h;break;case"multiple":l=h;default:Ot(t,e,a,h,n,null)}e=i,n=f,t.multiple=!!l,e!=null?bl(t,!!l,e,!1):n!=null&&bl(t,!!l,n,!0);return;case"textarea":rt("invalid",t),i=a=l=null;for(f in n)if(n.hasOwnProperty(f)&&(h=n[f],h!=null))switch(f){case"value":l=h;break;case"defaultValue":a=h;break;case"children":i=h;break;case"dangerouslySetInnerHTML":if(h!=null)throw Error(s(91));break;default:Ot(t,e,f,h,n,null)}hf(t,l,a,i);return;case"option":for(_ in n)if(n.hasOwnProperty(_)&&(l=n[_],l!=null))switch(_){case"selected":t.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Ot(t,e,_,l,n,null)}return;case"dialog":rt("beforetoggle",t),rt("toggle",t),rt("cancel",t),rt("close",t);break;case"iframe":case"object":rt("load",t);break;case"video":case"audio":for(l=0;l<Xa.length;l++)rt(Xa[l],t);break;case"image":rt("error",t),rt("load",t);break;case"details":rt("toggle",t);break;case"embed":case"source":case"link":rt("error",t),rt("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(A in n)if(n.hasOwnProperty(A)&&(l=n[A],l!=null))switch(A){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,e));default:Ot(t,e,A,l,n,null)}return;default:if(oc(e)){for(L in n)n.hasOwnProperty(L)&&(l=n[L],l!==void 0&&Fs(t,e,L,l,n,void 0));return}}for(h in n)n.hasOwnProperty(h)&&(l=n[h],l!=null&&Ot(t,e,h,l,n,null))}function Uv(t,e,n,l){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var a=null,i=null,f=null,h=null,_=null,A=null,L=null;for(C in n){var N=n[C];if(n.hasOwnProperty(C)&&N!=null)switch(C){case"checked":break;case"value":break;case"defaultValue":_=N;default:l.hasOwnProperty(C)||Ot(t,e,C,null,l,N)}}for(var O in l){var C=l[O];if(N=n[O],l.hasOwnProperty(O)&&(C!=null||N!=null))switch(O){case"type":i=C;break;case"name":a=C;break;case"checked":A=C;break;case"defaultChecked":L=C;break;case"value":f=C;break;case"defaultValue":h=C;break;case"children":case"dangerouslySetInnerHTML":if(C!=null)throw Error(s(137,e));break;default:C!==N&&Ot(t,e,O,C,l,N)}}cc(t,f,h,_,A,L,i,a);return;case"select":C=f=h=O=null;for(i in n)if(_=n[i],n.hasOwnProperty(i)&&_!=null)switch(i){case"value":break;case"multiple":C=_;default:l.hasOwnProperty(i)||Ot(t,e,i,null,l,_)}for(a in l)if(i=l[a],_=n[a],l.hasOwnProperty(a)&&(i!=null||_!=null))switch(a){case"value":O=i;break;case"defaultValue":h=i;break;case"multiple":f=i;default:i!==_&&Ot(t,e,a,i,l,_)}e=h,n=f,l=C,O!=null?bl(t,!!n,O,!1):!!l!=!!n&&(e!=null?bl(t,!!n,e,!0):bl(t,!!n,n?[]:"",!1));return;case"textarea":C=O=null;for(h in n)if(a=n[h],n.hasOwnProperty(h)&&a!=null&&!l.hasOwnProperty(h))switch(h){case"value":break;case"children":break;default:Ot(t,e,h,null,l,a)}for(f in l)if(a=l[f],i=n[f],l.hasOwnProperty(f)&&(a!=null||i!=null))switch(f){case"value":O=a;break;case"defaultValue":C=a;break;case"children":break;case"dangerouslySetInnerHTML":if(a!=null)throw Error(s(91));break;default:a!==i&&Ot(t,e,f,a,l,i)}df(t,O,C);return;case"option":for(var k in n)if(O=n[k],n.hasOwnProperty(k)&&O!=null&&!l.hasOwnProperty(k))switch(k){case"selected":t.selected=!1;break;default:Ot(t,e,k,null,l,O)}for(_ in l)if(O=l[_],C=n[_],l.hasOwnProperty(_)&&O!==C&&(O!=null||C!=null))switch(_){case"selected":t.selected=O&&typeof O!="function"&&typeof O!="symbol";break;default:Ot(t,e,_,O,l,C)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var I in n)O=n[I],n.hasOwnProperty(I)&&O!=null&&!l.hasOwnProperty(I)&&Ot(t,e,I,null,l,O);for(A in l)if(O=l[A],C=n[A],l.hasOwnProperty(A)&&O!==C&&(O!=null||C!=null))switch(A){case"children":case"dangerouslySetInnerHTML":if(O!=null)throw Error(s(137,e));break;default:Ot(t,e,A,O,l,C)}return;default:if(oc(e)){for(var Ct in n)O=n[Ct],n.hasOwnProperty(Ct)&&O!==void 0&&!l.hasOwnProperty(Ct)&&Fs(t,e,Ct,void 0,l,O);for(L in l)O=l[L],C=n[L],!l.hasOwnProperty(L)||O===C||O===void 0&&C===void 0||Fs(t,e,L,O,l,C);return}}for(var E in n)O=n[E],n.hasOwnProperty(E)&&O!=null&&!l.hasOwnProperty(E)&&Ot(t,e,E,null,l,O);for(N in l)O=l[N],C=n[N],!l.hasOwnProperty(N)||O===C||O==null&&C==null||Ot(t,e,N,O,l,C)}function vh(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Nv(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,n=performance.getEntriesByType("resource"),l=0;l<n.length;l++){var a=n[l],i=a.transferSize,f=a.initiatorType,h=a.duration;if(i&&h&&vh(f)){for(f=0,h=a.responseEnd,l+=1;l<n.length;l++){var _=n[l],A=_.startTime;if(A>h)break;var L=_.transferSize,N=_.initiatorType;L&&vh(N)&&(_=_.responseEnd,f+=L*(_<h?1:(h-A)/(_-A)))}if(--l,e+=8*(i+f)/(a.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var Ws=null,$s=null;function gi(t){return t.nodeType===9?t:t.ownerDocument}function ph(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function gh(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function Ps(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var Is=null;function Bv(){var t=window.event;return t&&t.type==="popstate"?t===Is?!1:(Is=t,!0):(Is=null,!1)}var Sh=typeof setTimeout=="function"?setTimeout:void 0,Hv=typeof clearTimeout=="function"?clearTimeout:void 0,_h=typeof Promise=="function"?Promise:void 0,jv=typeof queueMicrotask=="function"?queueMicrotask:typeof _h<"u"?function(t){return _h.resolve(null).then(t).catch(qv)}:Sh;function qv(t){setTimeout(function(){throw t})}function Nn(t){return t==="head"}function bh(t,e){var n=e,l=0;do{var a=n.nextSibling;if(t.removeChild(n),a&&a.nodeType===8)if(n=a.data,n==="/$"||n==="/&"){if(l===0){t.removeChild(a),Il(e);return}l--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")l++;else if(n==="html")Qa(t.ownerDocument.documentElement);else if(n==="head"){n=t.ownerDocument.head,Qa(n);for(var i=n.firstChild;i;){var f=i.nextSibling,h=i.nodeName;i[sa]||h==="SCRIPT"||h==="STYLE"||h==="LINK"&&i.rel.toLowerCase()==="stylesheet"||n.removeChild(i),i=f}}else n==="body"&&Qa(t.ownerDocument.body);n=a}while(n);Il(e)}function Th(t,e){var n=t;t=0;do{var l=n.nextSibling;if(n.nodeType===1?e?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(e?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(t===0)break;t--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||t++;n=l}while(n)}function to(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var n=e;switch(e=e.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":to(n),uc(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}t.removeChild(n)}}function wv(t,e,n,l){for(;t.nodeType===1;){var a=n;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!l&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(l){if(!t[sa])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(i=t.getAttribute("rel"),i==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(i!==a.rel||t.getAttribute("href")!==(a.href==null||a.href===""?null:a.href)||t.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin)||t.getAttribute("title")!==(a.title==null?null:a.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(i=t.getAttribute("src"),(i!==(a.src==null?null:a.src)||t.getAttribute("type")!==(a.type==null?null:a.type)||t.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin))&&i&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var i=a.name==null?null:""+a.name;if(a.type==="hidden"&&t.getAttribute("name")===i)return t}else return t;if(t=xe(t.nextSibling),t===null)break}return null}function Yv(t,e,n){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=xe(t.nextSibling),t===null))return null;return t}function Rh(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=xe(t.nextSibling),t===null))return null;return t}function eo(t){return t.data==="$?"||t.data==="$~"}function no(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function Gv(t,e){var n=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||n.readyState!=="loading")e();else{var l=function(){e(),n.removeEventListener("DOMContentLoaded",l)};n.addEventListener("DOMContentLoaded",l),t._reactRetry=l}}function xe(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"||e==="F!"||e==="F")break;if(e==="/$"||e==="/&")return null}}return t}var lo=null;function Eh(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"||n==="/&"){if(e===0)return xe(t.nextSibling);e--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||e++}t=t.nextSibling}return null}function Mh(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(e===0)return t;e--}else n!=="/$"&&n!=="/&"||e++}t=t.previousSibling}return null}function zh(t,e,n){switch(e=gi(n),t){case"html":if(t=e.documentElement,!t)throw Error(s(452));return t;case"head":if(t=e.head,!t)throw Error(s(453));return t;case"body":if(t=e.body,!t)throw Error(s(454));return t;default:throw Error(s(451))}}function Qa(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);uc(t)}var De=new Map,Ah=new Set;function Si(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var fn=V.d;V.d={f:Xv,r:Vv,D:Qv,C:Zv,L:Kv,m:Jv,X:Fv,S:kv,M:Wv};function Xv(){var t=fn.f(),e=fi();return t||e}function Vv(t){var e=gl(t);e!==null&&e.tag===5&&e.type==="form"?Qr(e):fn.r(t)}var Wl=typeof document>"u"?null:document;function Oh(t,e,n){var l=Wl;if(l&&typeof e=="string"&&e){var a=Re(e);a='link[rel="'+t+'"][href="'+a+'"]',typeof n=="string"&&(a+='[crossorigin="'+n+'"]'),Ah.has(a)||(Ah.add(a),t={rel:t,crossOrigin:n,href:e},l.querySelector(a)===null&&(e=l.createElement("link"),It(e,"link",t),Jt(e),l.head.appendChild(e)))}}function Qv(t){fn.D(t),Oh("dns-prefetch",t,null)}function Zv(t,e){fn.C(t,e),Oh("preconnect",t,e)}function Kv(t,e,n){fn.L(t,e,n);var l=Wl;if(l&&t&&e){var a='link[rel="preload"][as="'+Re(e)+'"]';e==="image"&&n&&n.imageSrcSet?(a+='[imagesrcset="'+Re(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(a+='[imagesizes="'+Re(n.imageSizes)+'"]')):a+='[href="'+Re(t)+'"]';var i=a;switch(e){case"style":i=$l(t);break;case"script":i=Pl(t)}De.has(i)||(t=v({rel:"preload",href:e==="image"&&n&&n.imageSrcSet?void 0:t,as:e},n),De.set(i,t),l.querySelector(a)!==null||e==="style"&&l.querySelector(Za(i))||e==="script"&&l.querySelector(Ka(i))||(e=l.createElement("link"),It(e,"link",t),Jt(e),l.head.appendChild(e)))}}function Jv(t,e){fn.m(t,e);var n=Wl;if(n&&t){var l=e&&typeof e.as=="string"?e.as:"script",a='link[rel="modulepreload"][as="'+Re(l)+'"][href="'+Re(t)+'"]',i=a;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=Pl(t)}if(!De.has(i)&&(t=v({rel:"modulepreload",href:t},e),De.set(i,t),n.querySelector(a)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Ka(i)))return}l=n.createElement("link"),It(l,"link",t),Jt(l),n.head.appendChild(l)}}}function kv(t,e,n){fn.S(t,e,n);var l=Wl;if(l&&t){var a=Sl(l).hoistableStyles,i=$l(t);e=e||"default";var f=a.get(i);if(!f){var h={loading:0,preload:null};if(f=l.querySelector(Za(i)))h.loading=5;else{t=v({rel:"stylesheet",href:t,"data-precedence":e},n),(n=De.get(i))&&ao(t,n);var _=f=l.createElement("link");Jt(_),It(_,"link",t),_._p=new Promise(function(A,L){_.onload=A,_.onerror=L}),_.addEventListener("load",function(){h.loading|=1}),_.addEventListener("error",function(){h.loading|=2}),h.loading|=4,_i(f,e,l)}f={type:"stylesheet",instance:f,count:1,state:h},a.set(i,f)}}}function Fv(t,e){fn.X(t,e);var n=Wl;if(n&&t){var l=Sl(n).hoistableScripts,a=Pl(t),i=l.get(a);i||(i=n.querySelector(Ka(a)),i||(t=v({src:t,async:!0},e),(e=De.get(a))&&uo(t,e),i=n.createElement("script"),Jt(i),It(i,"link",t),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},l.set(a,i))}}function Wv(t,e){fn.M(t,e);var n=Wl;if(n&&t){var l=Sl(n).hoistableScripts,a=Pl(t),i=l.get(a);i||(i=n.querySelector(Ka(a)),i||(t=v({src:t,async:!0,type:"module"},e),(e=De.get(a))&&uo(t,e),i=n.createElement("script"),Jt(i),It(i,"link",t),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},l.set(a,i))}}function Ch(t,e,n,l){var a=(a=lt.current)?Si(a):null;if(!a)throw Error(s(446));switch(t){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(e=$l(n.href),n=Sl(a).hoistableStyles,l=n.get(e),l||(l={type:"style",instance:null,count:0,state:null},n.set(e,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){t=$l(n.href);var i=Sl(a).hoistableStyles,f=i.get(t);if(f||(a=a.ownerDocument||a,f={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(t,f),(i=a.querySelector(Za(t)))&&!i._p&&(f.instance=i,f.state.loading=5),De.has(t)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},De.set(t,n),i||$v(a,t,n,f.state))),e&&l===null)throw Error(s(528,""));return f}if(e&&l!==null)throw Error(s(529,""));return null;case"script":return e=n.async,n=n.src,typeof n=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=Pl(n),n=Sl(a).hoistableScripts,l=n.get(e),l||(l={type:"script",instance:null,count:0,state:null},n.set(e,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,t))}}function $l(t){return'href="'+Re(t)+'"'}function Za(t){return'link[rel="stylesheet"]['+t+"]"}function xh(t){return v({},t,{"data-precedence":t.precedence,precedence:null})}function $v(t,e,n,l){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?l.loading=1:(e=t.createElement("link"),l.preload=e,e.addEventListener("load",function(){return l.loading|=1}),e.addEventListener("error",function(){return l.loading|=2}),It(e,"link",n),Jt(e),t.head.appendChild(e))}function Pl(t){return'[src="'+Re(t)+'"]'}function Ka(t){return"script[async]"+t}function Dh(t,e,n){if(e.count++,e.instance===null)switch(e.type){case"style":var l=t.querySelector('style[data-href~="'+Re(n.href)+'"]');if(l)return e.instance=l,Jt(l),l;var a=v({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return l=(t.ownerDocument||t).createElement("style"),Jt(l),It(l,"style",a),_i(l,n.precedence,t),e.instance=l;case"stylesheet":a=$l(n.href);var i=t.querySelector(Za(a));if(i)return e.state.loading|=4,e.instance=i,Jt(i),i;l=xh(n),(a=De.get(a))&&ao(l,a),i=(t.ownerDocument||t).createElement("link"),Jt(i);var f=i;return f._p=new Promise(function(h,_){f.onload=h,f.onerror=_}),It(i,"link",l),e.state.loading|=4,_i(i,n.precedence,t),e.instance=i;case"script":return i=Pl(n.src),(a=t.querySelector(Ka(i)))?(e.instance=a,Jt(a),a):(l=n,(a=De.get(i))&&(l=v({},n),uo(l,a)),t=t.ownerDocument||t,a=t.createElement("script"),Jt(a),It(a,"link",l),t.head.appendChild(a),e.instance=a);case"void":return null;default:throw Error(s(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(l=e.instance,e.state.loading|=4,_i(l,n.precedence,t));return e.instance}function _i(t,e,n){for(var l=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),a=l.length?l[l.length-1]:null,i=a,f=0;f<l.length;f++){var h=l[f];if(h.dataset.precedence===e)i=h;else if(i!==a)break}i?i.parentNode.insertBefore(t,i.nextSibling):(e=n.nodeType===9?n.head:n,e.insertBefore(t,e.firstChild))}function ao(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function uo(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var bi=null;function Lh(t,e,n){if(bi===null){var l=new Map,a=bi=new Map;a.set(n,l)}else a=bi,l=a.get(n),l||(l=new Map,a.set(n,l));if(l.has(t))return l;for(l.set(t,null),n=n.getElementsByTagName(t),a=0;a<n.length;a++){var i=n[a];if(!(i[sa]||i[Ft]||t==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!=="http://www.w3.org/2000/svg"){var f=i.getAttribute(e)||"";f=t+f;var h=l.get(f);h?h.push(i):l.set(f,[i])}}return l}function Uh(t,e,n){t=t.ownerDocument||t,t.head.insertBefore(n,e==="title"?t.querySelector("head > title"):null)}function Pv(t,e,n){if(n===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;switch(e.rel){case"stylesheet":return t=e.disabled,typeof e.precedence=="string"&&t==null;default:return!0}case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function Nh(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function Iv(t,e,n,l){if(n.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var a=$l(l.href),i=e.querySelector(Za(a));if(i){e=i._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=Ti.bind(t),e.then(t,t)),n.state.loading|=4,n.instance=i,Jt(i);return}i=e.ownerDocument||e,l=xh(l),(a=De.get(a))&&ao(l,a),i=i.createElement("link"),Jt(i);var f=i;f._p=new Promise(function(h,_){f.onload=h,f.onerror=_}),It(i,"link",l),n.instance=i}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(n,e),(e=n.state.preload)&&(n.state.loading&3)===0&&(t.count++,n=Ti.bind(t),e.addEventListener("load",n),e.addEventListener("error",n))}}var io=0;function t0(t,e){return t.stylesheets&&t.count===0&&Ei(t,t.stylesheets),0<t.count||0<t.imgCount?function(n){var l=setTimeout(function(){if(t.stylesheets&&Ei(t,t.stylesheets),t.unsuspend){var i=t.unsuspend;t.unsuspend=null,i()}},6e4+e);0<t.imgBytes&&io===0&&(io=62500*Nv());var a=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Ei(t,t.stylesheets),t.unsuspend)){var i=t.unsuspend;t.unsuspend=null,i()}},(t.imgBytes>io?50:800)+e);return t.unsuspend=n,function(){t.unsuspend=null,clearTimeout(l),clearTimeout(a)}}:null}function Ti(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Ei(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Ri=null;function Ei(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Ri=new Map,e.forEach(e0,t),Ri=null,Ti.call(t))}function e0(t,e){if(!(e.state.loading&4)){var n=Ri.get(t);if(n)var l=n.get(null);else{n=new Map,Ri.set(t,n);for(var a=t.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<a.length;i++){var f=a[i];(f.nodeName==="LINK"||f.getAttribute("media")!=="not all")&&(n.set(f.dataset.precedence,f),l=f)}l&&n.set(null,l)}a=e.instance,f=a.getAttribute("data-precedence"),i=n.get(f)||l,i===l&&n.set(null,a),n.set(f,a),this.count++,l=Ti.bind(this),a.addEventListener("load",l),a.addEventListener("error",l),i?i.parentNode.insertBefore(a,i.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(a,t.firstChild)),e.state.loading|=4}}var Ja={$$typeof:X,Provider:null,Consumer:null,_currentValue:tt,_currentValue2:tt,_threadCount:0};function n0(t,e,n,l,a,i,f,h,_){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=ec(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ec(0),this.hiddenUpdates=ec(null),this.identifierPrefix=l,this.onUncaughtError=a,this.onCaughtError=i,this.onRecoverableError=f,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=_,this.incompleteTransitions=new Map}function Bh(t,e,n,l,a,i,f,h,_,A,L,N){return t=new n0(t,e,n,f,_,A,L,N,h),e=1,i===!0&&(e|=24),i=me(3,null,null,e),t.current=i,i.stateNode=t,e=wc(),e.refCount++,t.pooledCache=e,e.refCount++,i.memoizedState={element:l,isDehydrated:n,cache:e},Vc(i),t}function Hh(t){return t?(t=Cl,t):Cl}function jh(t,e,n,l,a,i){a=Hh(a),l.context===null?l.context=a:l.pendingContext=a,l=Rn(e),l.payload={element:n},i=i===void 0?null:i,i!==null&&(l.callback=i),n=En(t,l,e),n!==null&&(se(n,t,e),Ma(n,t,e))}function qh(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function co(t,e){qh(t,e),(t=t.alternate)&&qh(t,e)}function wh(t){if(t.tag===13||t.tag===31){var e=Fn(t,67108864);e!==null&&se(e,t,67108864),co(t,67108864)}}function Yh(t){if(t.tag===13||t.tag===31){var e=Se();e=nc(e);var n=Fn(t,e);n!==null&&se(n,t,e),co(t,e)}}var Mi=!0;function l0(t,e,n,l){var a=x.T;x.T=null;var i=V.p;try{V.p=2,so(t,e,n,l)}finally{V.p=i,x.T=a}}function a0(t,e,n,l){var a=x.T;x.T=null;var i=V.p;try{V.p=8,so(t,e,n,l)}finally{V.p=i,x.T=a}}function so(t,e,n,l){if(Mi){var a=oo(l);if(a===null)ks(t,e,l,zi,n),Xh(t,l);else if(i0(a,t,e,n,l))l.stopPropagation();else if(Xh(t,l),e&4&&-1<u0.indexOf(t)){for(;a!==null;){var i=gl(a);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var f=Qn(i.pendingLanes);if(f!==0){var h=i;for(h.pendingLanes|=2,h.entangledLanes|=2;f;){var _=1<<31-de(f);h.entanglements[1]|=_,f&=~_}Xe(i),(St&6)===0&&(si=gt()+500,Ga(0))}}break;case 31:case 13:h=Fn(i,2),h!==null&&se(h,i,2),fi(),co(i,2)}if(i=oo(l),i===null&&ks(t,e,l,zi,n),i===a)break;a=i}a!==null&&l.stopPropagation()}else ks(t,e,l,null,n)}}function oo(t){return t=rc(t),fo(t)}var zi=null;function fo(t){if(zi=null,t=pl(t),t!==null){var e=d(t);if(e===null)t=null;else{var n=e.tag;if(n===13){if(t=g(e),t!==null)return t;t=null}else if(n===31){if(t=p(e),t!==null)return t;t=null}else if(n===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return zi=t,null}function Gh(t){switch(t){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(fe()){case aa:return 2;case Fo:return 8;case yu:case Zm:return 32;case Wo:return 268435456;default:return 32}default:return 32}}var ro=!1,Bn=null,Hn=null,jn=null,ka=new Map,Fa=new Map,qn=[],u0="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Xh(t,e){switch(t){case"focusin":case"focusout":Bn=null;break;case"dragenter":case"dragleave":Hn=null;break;case"mouseover":case"mouseout":jn=null;break;case"pointerover":case"pointerout":ka.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Fa.delete(e.pointerId)}}function Wa(t,e,n,l,a,i){return t===null||t.nativeEvent!==i?(t={blockedOn:e,domEventName:n,eventSystemFlags:l,nativeEvent:i,targetContainers:[a]},e!==null&&(e=gl(e),e!==null&&wh(e)),t):(t.eventSystemFlags|=l,e=t.targetContainers,a!==null&&e.indexOf(a)===-1&&e.push(a),t)}function i0(t,e,n,l,a){switch(e){case"focusin":return Bn=Wa(Bn,t,e,n,l,a),!0;case"dragenter":return Hn=Wa(Hn,t,e,n,l,a),!0;case"mouseover":return jn=Wa(jn,t,e,n,l,a),!0;case"pointerover":var i=a.pointerId;return ka.set(i,Wa(ka.get(i)||null,t,e,n,l,a)),!0;case"gotpointercapture":return i=a.pointerId,Fa.set(i,Wa(Fa.get(i)||null,t,e,n,l,a)),!0}return!1}function Vh(t){var e=pl(t.target);if(e!==null){var n=d(e);if(n!==null){if(e=n.tag,e===13){if(e=g(n),e!==null){t.blockedOn=e,nf(t.priority,function(){Yh(n)});return}}else if(e===31){if(e=p(n),e!==null){t.blockedOn=e,nf(t.priority,function(){Yh(n)});return}}else if(e===3&&n.stateNode.current.memoizedState.isDehydrated){t.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Ai(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=oo(t.nativeEvent);if(n===null){n=t.nativeEvent;var l=new n.constructor(n.type,n);fc=l,n.target.dispatchEvent(l),fc=null}else return e=gl(n),e!==null&&wh(e),t.blockedOn=n,!1;e.shift()}return!0}function Qh(t,e,n){Ai(t)&&n.delete(e)}function c0(){ro=!1,Bn!==null&&Ai(Bn)&&(Bn=null),Hn!==null&&Ai(Hn)&&(Hn=null),jn!==null&&Ai(jn)&&(jn=null),ka.forEach(Qh),Fa.forEach(Qh)}function Oi(t,e){t.blockedOn===e&&(t.blockedOn=null,ro||(ro=!0,u.unstable_scheduleCallback(u.unstable_NormalPriority,c0)))}var Ci=null;function Zh(t){Ci!==t&&(Ci=t,u.unstable_scheduleCallback(u.unstable_NormalPriority,function(){Ci===t&&(Ci=null);for(var e=0;e<t.length;e+=3){var n=t[e],l=t[e+1],a=t[e+2];if(typeof l!="function"){if(fo(l||n)===null)continue;break}var i=gl(n);i!==null&&(t.splice(e,3),e-=3,os(i,{pending:!0,data:a,method:n.method,action:l},l,a))}}))}function Il(t){function e(_){return Oi(_,t)}Bn!==null&&Oi(Bn,t),Hn!==null&&Oi(Hn,t),jn!==null&&Oi(jn,t),ka.forEach(e),Fa.forEach(e);for(var n=0;n<qn.length;n++){var l=qn[n];l.blockedOn===t&&(l.blockedOn=null)}for(;0<qn.length&&(n=qn[0],n.blockedOn===null);)Vh(n),n.blockedOn===null&&qn.shift();if(n=(t.ownerDocument||t).$$reactFormReplay,n!=null)for(l=0;l<n.length;l+=3){var a=n[l],i=n[l+1],f=a[ne]||null;if(typeof i=="function")f||Zh(n);else if(f){var h=null;if(i&&i.hasAttribute("formAction")){if(a=i,f=i[ne]||null)h=f.formAction;else if(fo(a)!==null)continue}else h=f.action;typeof h=="function"?n[l+1]=h:(n.splice(l,3),l-=3),Zh(n)}}}function Kh(){function t(i){i.canIntercept&&i.info==="react-transition"&&i.intercept({handler:function(){return new Promise(function(f){return a=f})},focusReset:"manual",scroll:"manual"})}function e(){a!==null&&(a(),a=null),l||setTimeout(n,20)}function n(){if(!l&&!navigation.transition){var i=navigation.currentEntry;i&&i.url!=null&&navigation.navigate(i.url,{state:i.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,a=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(n,100),function(){l=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),a!==null&&(a(),a=null)}}}function ho(t){this._internalRoot=t}xi.prototype.render=ho.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(s(409));var n=e.current,l=Se();jh(n,l,t,e,null,null)},xi.prototype.unmount=ho.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;jh(t.current,2,null,t,null,null),fi(),e[vl]=null}};function xi(t){this._internalRoot=t}xi.prototype.unstable_scheduleHydration=function(t){if(t){var e=ef();t={blockedOn:null,target:t,priority:e};for(var n=0;n<qn.length&&e!==0&&e<qn[n].priority;n++);qn.splice(n,0,t),n===0&&Vh(t)}};var Jh=o.version;if(Jh!=="19.2.1")throw Error(s(527,Jh,"19.2.1"));V.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(s(188)):(t=Object.keys(t).join(","),Error(s(268,t)));return t=m(e),t=t!==null?b(t):null,t=t===null?null:t.stateNode,t};var s0={bundleType:0,version:"19.2.1",rendererPackageName:"react-dom",currentDispatcherRef:x,reconcilerVersion:"19.2.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Di=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Di.isDisabled&&Di.supportsFiber)try{ua=Di.inject(s0),re=Di}catch{}}return Pa.createRoot=function(t,e){if(!r(t))throw Error(s(299));var n=!1,l="",a=td,i=ed,f=nd;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(l=e.identifierPrefix),e.onUncaughtError!==void 0&&(a=e.onUncaughtError),e.onCaughtError!==void 0&&(i=e.onCaughtError),e.onRecoverableError!==void 0&&(f=e.onRecoverableError)),e=Bh(t,1,!1,null,null,n,l,null,a,i,f,Kh),t[vl]=e.current,Js(t),new ho(e)},Pa.hydrateRoot=function(t,e,n){if(!r(t))throw Error(s(299));var l=!1,a="",i=td,f=ed,h=nd,_=null;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(a=n.identifierPrefix),n.onUncaughtError!==void 0&&(i=n.onUncaughtError),n.onCaughtError!==void 0&&(f=n.onCaughtError),n.onRecoverableError!==void 0&&(h=n.onRecoverableError),n.formState!==void 0&&(_=n.formState)),e=Bh(t,1,!0,e,n??null,l,a,_,i,f,h,Kh),e.context=Hh(null),n=e.current,l=Se(),l=nc(l),a=Rn(l),a.callback=null,En(n,a,l),n=l,e.current.lanes=n,ca(e,n),Xe(e),t[vl]=e.current,Js(t),new xi(e)},Pa.version="19.2.1",Pa}var lm;function p0(){if(lm)return yo.exports;lm=1;function u(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(u)}catch(o){console.error(o)}}return u(),yo.exports=v0(),yo.exports}var g0=p0();const S0=Em(g0),No=new WeakMap,_0=new WeakMap,Yi={current:[]};let _o=!1,lu=0;const nu=new Set,Li=new Map;function zm(u){for(const o of u){if(Yi.current.includes(o))continue;Yi.current.push(o),o.recompute();const c=_0.get(o);if(c)for(const s of c){const r=No.get(s);r?.length&&zm(r)}}}function b0(u){const o={prevVal:u.prevState,currentVal:u.state};for(const c of u.listeners)c(o)}function T0(u){const o={prevVal:u.prevState,currentVal:u.state};for(const c of u.listeners)c(o)}function Am(u){if(lu>0&&!Li.has(u)&&Li.set(u,u.prevState),nu.add(u),!(lu>0)&&!_o)try{for(_o=!0;nu.size>0;){const o=Array.from(nu);nu.clear();for(const c of o){const s=Li.get(c)??c.prevState;c.prevState=s,b0(c)}for(const c of o){const s=No.get(c);s&&(Yi.current.push(c),zm(s))}for(const c of o){const s=No.get(c);if(s)for(const r of s)T0(r)}}}finally{_o=!1,Yi.current=[],Li.clear()}}function au(u){lu++;try{u()}finally{if(lu--,lu===0){const o=nu.values().next().value;o&&Am(o)}}}function R0(u){return typeof u=="function"}class E0{constructor(o,c){this.listeners=new Set,this.subscribe=s=>{var r,d;this.listeners.add(s);const g=(d=(r=this.options)==null?void 0:r.onSubscribe)==null?void 0:d.call(r,s,this);return()=>{this.listeners.delete(s),g?.()}},this.prevState=o,this.state=o,this.options=c}setState(o){var c,s,r;this.prevState=this.state,(c=this.options)!=null&&c.updateFn?this.state=this.options.updateFn(this.prevState)(o):R0(o)?this.state=o(this.prevState):this.state=o,(r=(s=this.options)==null?void 0:s.onUpdate)==null||r.call(s),Am(this)}}const Xn="__TSR_index",am="popstate",um="beforeunload";function M0(u){let o=u.getLocation();const c=new Set,s=g=>{o=u.getLocation(),c.forEach(p=>p({location:o,action:g}))},r=g=>{u.notifyOnIndexChange??!0?s(g):o=u.getLocation()},d=async({task:g,navigateOpts:p,...y})=>{if(p?.ignoreBlocker??!1){g();return}const b=u.getBlockers?.()??[],v=y.type==="PUSH"||y.type==="REPLACE";if(typeof document<"u"&&b.length&&v)for(const S of b){const M=Gi(y.path,y.state);if(await S.blockerFn({currentLocation:o,nextLocation:M,action:y.type})){u.onBlocked?.();return}}g()};return{get location(){return o},get length(){return u.getLength()},subscribers:c,subscribe:g=>(c.add(g),()=>{c.delete(g)}),push:(g,p,y)=>{const m=o.state[Xn];p=im(m+1,p),d({task:()=>{u.pushState(g,p),s({type:"PUSH"})},navigateOpts:y,type:"PUSH",path:g,state:p})},replace:(g,p,y)=>{const m=o.state[Xn];p=im(m,p),d({task:()=>{u.replaceState(g,p),s({type:"REPLACE"})},navigateOpts:y,type:"REPLACE",path:g,state:p})},go:(g,p)=>{d({task:()=>{u.go(g),r({type:"GO",index:g})},navigateOpts:p,type:"GO"})},back:g=>{d({task:()=>{u.back(g?.ignoreBlocker??!1),r({type:"BACK"})},navigateOpts:g,type:"BACK"})},forward:g=>{d({task:()=>{u.forward(g?.ignoreBlocker??!1),r({type:"FORWARD"})},navigateOpts:g,type:"FORWARD"})},canGoBack:()=>o.state[Xn]!==0,createHref:g=>u.createHref(g),block:g=>{if(!u.setBlockers)return()=>{};const p=u.getBlockers?.()??[];return u.setBlockers([...p,g]),()=>{const y=u.getBlockers?.()??[];u.setBlockers?.(y.filter(m=>m!==g))}},flush:()=>u.flush?.(),destroy:()=>u.destroy?.(),notify:s}}function im(u,o){o||(o={});const c=jo();return{...o,key:c,__TSR_key:c,[Xn]:u}}function z0(u){const o=typeof document<"u"?window:void 0,c=o.history.pushState,s=o.history.replaceState;let r=[];const d=()=>r,g=G=>r=G,p=(G=>G),y=(()=>Gi(`${o.location.pathname}${o.location.search}${o.location.hash}`,o.history.state));if(!o.history.state?.__TSR_key&&!o.history.state?.key){const G=jo();o.history.replaceState({[Xn]:0,key:G,__TSR_key:G},"")}let m=y(),b,v=!1,S=!1,M=!1,D=!1;const q=()=>m;let H,w;const Z=()=>{H&&(j._ignoreSubscribers=!0,(H.isPush?o.history.pushState:o.history.replaceState)(H.state,"",H.href),j._ignoreSubscribers=!1,H=void 0,w=void 0,b=void 0)},X=(G,$,ot)=>{const ct=p($);w||(b=m),m=Gi($,ot),H={href:ct,state:ot,isPush:H?.isPush||G==="push"},w||(w=Promise.resolve().then(()=>Z()))},F=G=>{m=y(),j.notify({type:G})},nt=async()=>{if(S){S=!1;return}const G=y(),$=G.state[Xn]-m.state[Xn],ot=$===1,ct=$===-1,Rt=!ot&&!ct||v;v=!1;const jt=Rt?"GO":ct?"BACK":"FORWARD",qt=Rt?{type:"GO",index:$}:{type:ct?"BACK":"FORWARD"};if(M)M=!1;else{const Nt=d();if(typeof document<"u"&&Nt.length){for(const x of Nt)if(await x.blockerFn({currentLocation:m,nextLocation:G,action:jt})){S=!0,o.history.go(1),j.notify(qt);return}}}m=y(),j.notify(qt)},Y=G=>{if(D){D=!1;return}let $=!1;const ot=d();if(typeof document<"u"&&ot.length)for(const ct of ot){const Rt=ct.enableBeforeUnload??!0;if(Rt===!0){$=!0;break}if(typeof Rt=="function"&&Rt()===!0){$=!0;break}}if($)return G.preventDefault(),G.returnValue=""},j=M0({getLocation:q,getLength:()=>o.history.length,pushState:(G,$)=>X("push",G,$),replaceState:(G,$)=>X("replace",G,$),back:G=>(G&&(M=!0),D=!0,o.history.back()),forward:G=>{G&&(M=!0),D=!0,o.history.forward()},go:G=>{v=!0,o.history.go(G)},createHref:G=>p(G),flush:Z,destroy:()=>{o.history.pushState=c,o.history.replaceState=s,o.removeEventListener(um,Y,{capture:!0}),o.removeEventListener(am,nt)},onBlocked:()=>{b&&m!==b&&(m=b)},getBlockers:d,setBlockers:g,notifyOnIndexChange:!1});return o.addEventListener(um,Y,{capture:!0}),o.addEventListener(am,nt),o.history.pushState=function(...G){const $=c.apply(o.history,G);return j._ignoreSubscribers||F("PUSH"),$},o.history.replaceState=function(...G){const $=s.apply(o.history,G);return j._ignoreSubscribers||F("REPLACE"),$},j}function Gi(u,o){const c=u.indexOf("#"),s=u.indexOf("?"),r=jo();return{href:u,pathname:u.substring(0,c>0?s>0?Math.min(c,s):c:s>0?s:u.length),hash:c>-1?u.substring(c):"",search:s>-1?u.slice(s,c===-1?void 0:c):"",state:o||{[Xn]:0,key:r,__TSR_key:r}}}function jo(){return(Math.random()+1).toString(36).substring(7)}function Xi(u){return u[u.length-1]}function A0(u){return typeof u=="function"}function Yn(u,o){return A0(u)?u(o):u}const O0=Object.prototype.hasOwnProperty;function Le(u,o){if(u===o)return u;const c=o,s=om(u)&&om(c);if(!s&&!(Vi(u)&&Vi(c)))return c;const r=s?u:cm(u);if(!r)return c;const d=s?c:cm(c);if(!d)return c;const g=r.length,p=d.length,y=s?new Array(p):{};let m=0;for(let b=0;b<p;b++){const v=s?b:d[b],S=u[v],M=c[v];if(S===M){y[v]=S,(s?b<g:O0.call(u,v))&&m++;continue}if(S===null||M===null||typeof S!="object"||typeof M!="object"){y[v]=M;continue}const D=Le(S,M);y[v]=D,D===S&&m++}return g===p&&m===g?u:y}function cm(u){const o=[],c=Object.getOwnPropertyNames(u);for(const r of c){if(!Object.prototype.propertyIsEnumerable.call(u,r))return!1;o.push(r)}const s=Object.getOwnPropertySymbols(u);for(const r of s){if(!Object.prototype.propertyIsEnumerable.call(u,r))return!1;o.push(r)}return o}function Vi(u){if(!sm(u))return!1;const o=u.constructor;if(typeof o>"u")return!0;const c=o.prototype;return!(!sm(c)||!c.hasOwnProperty("isPrototypeOf"))}function sm(u){return Object.prototype.toString.call(u)==="[object Object]"}function om(u){return Array.isArray(u)&&u.length===Object.keys(u).length}function ol(u,o,c){if(u===o)return!0;if(typeof u!=typeof o)return!1;if(Array.isArray(u)&&Array.isArray(o)){if(u.length!==o.length)return!1;for(let s=0,r=u.length;s<r;s++)if(!ol(u[s],o[s],c))return!1;return!0}if(Vi(u)&&Vi(o)){const s=c?.ignoreUndefined??!0;if(c?.partial){for(const g in o)if((!s||o[g]!==void 0)&&!ol(u[g],o[g],c))return!1;return!0}let r=0;if(!s)r=Object.keys(u).length;else for(const g in u)u[g]!==void 0&&r++;let d=0;for(const g in o)if((!s||o[g]!==void 0)&&(d++,d>r||!ol(u[g],o[g],c)))return!1;return r===d}return!1}function ea(u){let o,c;const s=new Promise((r,d)=>{o=r,c=d});return s.status="pending",s.resolve=r=>{s.status="resolved",s.value=r,o(r),u?.(r)},s.reject=r=>{s.status="rejected",c(r)},s}function C0(u){return typeof u?.message!="string"?!1:u.message.startsWith("Failed to fetch dynamically imported module")||u.message.startsWith("error loading dynamically imported module")||u.message.startsWith("Importing a module script failed")}function Vn(u){return!!(u&&typeof u=="object"&&typeof u.then=="function")}function fm(u){try{return decodeURI(u)}catch{return u.replaceAll(/%[0-9A-F]{2}/gi,o=>{try{return decodeURI(o)}catch{return o}})}}function rm(u,o){if(!u)return u;const c=/%25|%5C/gi;let s=0,r="",d;for(;(d=c.exec(u))!==null;)r+=fm(u.slice(s,d.index))+d[0],s=c.lastIndex;return r+fm(s?u.slice(s):u)}var x0="Invariant failed";function rn(u,o){if(!u)throw new Error(x0)}function Qi(u){const o=new Map;let c,s;const r=d=>{d.next&&(d.prev?(d.prev.next=d.next,d.next.prev=d.prev,d.next=void 0,s&&(s.next=d,d.prev=s)):(d.next.prev=void 0,c=d.next,d.next=void 0,s&&(d.prev=s,s.next=d)),s=d)};return{get(d){const g=o.get(d);if(g)return r(g),g.value},set(d,g){if(o.size>=u&&c){const y=c;o.delete(y.key),y.next&&(c=y.next,y.next.prev=void 0),y===s&&(s=void 0)}const p=o.get(d);if(p)p.value=g,r(p);else{const y={key:d,value:g,prev:s};s&&(s.next=y),s=y,c||(c=y),o.set(d,y)}},clear(){o.clear(),c=void 0,s=void 0}}}const na=0,dl=1,hl=2,iu=3,D0=/^([^{]*)\{\$([a-zA-Z_$][a-zA-Z0-9_$]*)\}([^}]*)$/,L0=/^([^{]*)\{-\$([a-zA-Z_$][a-zA-Z0-9_$]*)\}([^}]*)$/,U0=/^([^{]*)\{\$\}([^}]*)$/;function qo(u,o,c=new Uint16Array(6)){const s=u.indexOf("/",o),r=s===-1?u.length:s,d=u.substring(o,r);if(!d||!d.includes("$"))return c[0]=na,c[1]=o,c[2]=o,c[3]=r,c[4]=r,c[5]=r,c;if(d==="$"){const m=u.length;return c[0]=hl,c[1]=o,c[2]=o,c[3]=m,c[4]=m,c[5]=m,c}if(d.charCodeAt(0)===36)return c[0]=dl,c[1]=o,c[2]=o+1,c[3]=r,c[4]=r,c[5]=r,c;const g=d.match(U0);if(g){const b=g[1].length;return c[0]=hl,c[1]=o+b,c[2]=o+b+1,c[3]=o+b+2,c[4]=o+b+3,c[5]=u.length,c}const p=d.match(L0);if(p){const m=p[1],b=p[2],v=p[3],S=m.length;return c[0]=iu,c[1]=o+S,c[2]=o+S+3,c[3]=o+S+3+b.length,c[4]=r-v.length,c[5]=r,c}const y=d.match(D0);if(y){const m=y[1],b=y[2],v=y[3],S=m.length;return c[0]=dl,c[1]=o+S,c[2]=o+S+2,c[3]=o+S+2+b.length,c[4]=r-v.length,c[5]=r,c}return c[0]=na,c[1]=o,c[2]=o,c[3]=r,c[4]=r,c[5]=r,c}function Fi(u,o,c,s,r,d,g){g?.(c);let p=s;{const y=c.fullPath??c.from,m=y.length,b=c.options?.caseSensitive??u;for(;p<m;){const v=qo(y,p,o);let S;const M=p,D=v[5];switch(p=D+1,d++,v[0]){case na:{const H=y.substring(v[2],v[3]);if(b){const w=r.static?.get(H);if(w)S=w;else{r.static??=new Map;const Z=cu(c.fullPath??c.from);Z.parent=r,Z.depth=d,S=Z,r.static.set(H,Z)}}else{const w=H.toLowerCase(),Z=r.staticInsensitive?.get(w);if(Z)S=Z;else{r.staticInsensitive??=new Map;const X=cu(c.fullPath??c.from);X.parent=r,X.depth=d,S=X,r.staticInsensitive.set(w,X)}}break}case dl:{const H=y.substring(M,v[1]),w=y.substring(v[4],D),Z=b&&!!(H||w),X=H?Z?H:H.toLowerCase():void 0,F=w?Z?w:w.toLowerCase():void 0,nt=r.dynamic?.find(Y=>Y.caseSensitive===Z&&Y.prefix===X&&Y.suffix===F);if(nt)S=nt;else{const Y=To(dl,c.fullPath??c.from,Z,X,F);S=Y,Y.depth=d,Y.parent=r,r.dynamic??=[],r.dynamic.push(Y)}break}case iu:{const H=y.substring(M,v[1]),w=y.substring(v[4],D),Z=b&&!!(H||w),X=H?Z?H:H.toLowerCase():void 0,F=w?Z?w:w.toLowerCase():void 0,nt=r.optional?.find(Y=>Y.caseSensitive===Z&&Y.prefix===X&&Y.suffix===F);if(nt)S=nt;else{const Y=To(iu,c.fullPath??c.from,Z,X,F);S=Y,Y.parent=r,Y.depth=d,r.optional??=[],r.optional.push(Y)}break}case hl:{const H=y.substring(M,v[1]),w=y.substring(v[4],D),Z=b&&!!(H||w),X=H?Z?H:H.toLowerCase():void 0,F=w?Z?w:w.toLowerCase():void 0,nt=To(hl,c.fullPath??c.from,Z,X,F);S=nt,nt.parent=r,nt.depth=d,r.wildcard??=[],r.wildcard.push(nt)}}r=S}if((c.path||!c.children)&&!c.isRoot){const v=y.endsWith("/");v||(r.notFound=c),(!r.route||!r.isIndex&&v)&&(r.route=c,r.fullPath=c.fullPath??c.from),r.isIndex||=v}}if(c.children)for(const y of c.children)Fi(u,o,y,p,r,d,g)}function bo(u,o){if(u.prefix&&o.prefix&&u.prefix!==o.prefix){if(u.prefix.startsWith(o.prefix))return-1;if(o.prefix.startsWith(u.prefix))return 1}if(u.suffix&&o.suffix&&u.suffix!==o.suffix){if(u.suffix.endsWith(o.suffix))return-1;if(o.suffix.endsWith(u.suffix))return 1}return u.prefix&&!o.prefix?-1:!u.prefix&&o.prefix?1:u.suffix&&!o.suffix?-1:!u.suffix&&o.suffix?1:u.caseSensitive&&!o.caseSensitive?-1:!u.caseSensitive&&o.caseSensitive?1:0}function sl(u){if(u.static)for(const o of u.static.values())sl(o);if(u.staticInsensitive)for(const o of u.staticInsensitive.values())sl(o);if(u.dynamic?.length){u.dynamic.sort(bo);for(const o of u.dynamic)sl(o)}if(u.optional?.length){u.optional.sort(bo);for(const o of u.optional)sl(o)}if(u.wildcard?.length){u.wildcard.sort(bo);for(const o of u.wildcard)sl(o)}}function cu(u){return{kind:na,depth:0,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:u,parent:null,isIndex:!1,notFound:null}}function To(u,o,c,s,r){return{kind:u,depth:0,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:o,parent:null,isIndex:!1,notFound:null,caseSensitive:c,prefix:s,suffix:r}}function N0(u,o){const c=cu("/"),s=new Uint16Array(6);for(const r of u)Fi(!1,s,r,1,c,0);sl(c),o.masksTree=c,o.flatCache=Qi(1e3)}function B0(u,o){u||="/";const c=o.flatCache.get(u);if(c)return c;const s=wo(u,o.masksTree);return o.flatCache.set(u,s),s}function H0(u,o,c,s,r){u||="/",s||="/";const d=o?`case\0${u}`:u;let g=r.singleCache.get(d);if(!g){g=cu("/");const p=new Uint16Array(6);Fi(o,p,{from:u},1,g,0),r.singleCache.set(d,g)}return wo(s,g,c)}function j0(u,o,c=!1){const s=c?u:`nofuzz\0${u}`,r=o.matchCache.get(s);if(r!==void 0)return r;u||="/";const d=wo(u,o.segmentTree,c);return d&&(d.branch=G0(d.route)),o.matchCache.set(s,d),d}function q0(u){return u==="/"?u:u.replace(/\/{1,}$/,"")}function w0(u,o=!1,c){const s=cu(u.fullPath),r=new Uint16Array(6),d={},g={};let p=0;return Fi(o,r,u,1,s,0,m=>{if(c?.(m,p),rn(!(m.id in d),`Duplicate routes found with id: ${String(m.id)}`),d[m.id]=m,p!==0&&m.path){const b=q0(m.fullPath);(!g[b]||m.fullPath.endsWith("/"))&&(g[b]=m)}p++}),sl(s),{processedTree:{segmentTree:s,singleCache:Qi(1e3),matchCache:Qi(1e3),flatCache:null,masksTree:null},routesById:d,routesByPath:g}}function wo(u,o,c=!1){const s=u.split("/"),r=V0(u,s,o,c);if(!r)return null;const d=Y0(u,s,r),g="**"in r;return g&&(d["**"]=r["**"]),{route:g?r.node.notFound??r.node.route:r.node.route,params:d}}function Y0(u,o,c){const s=X0(c.node);let r=null;const d={};for(let g=0,p=0,y=0;p<s.length;g++,p++,y++){const m=s[p],b=o[g],v=y;if(b&&(y+=b.length),m.kind===dl){r??=c.node.fullPath.split("/");const S=r[p],M=m.prefix?.length??0;if(S.charCodeAt(M)===123){const q=m.suffix?.length??0,H=S.substring(M+2,S.length-q-1),w=b.substring(M,b.length-q);d[H]=decodeURIComponent(w)}else{const q=S.substring(1);d[q]=decodeURIComponent(b)}}else if(m.kind===iu){if(c.skipped&1<<p){g--;continue}r??=c.node.fullPath.split("/");const S=r[p],M=m.prefix?.length??0,D=m.suffix?.length??0,q=S.substring(M+3,S.length-D-1),H=m.suffix||m.prefix?b.substring(M,b.length-D):b;H&&(d[q]=decodeURIComponent(H))}else if(m.kind===hl){const S=m,M=u.substring(v+(S.prefix?.length??0),u.length-(S.suffix?.length??0)),D=decodeURIComponent(M);d["*"]=D,d._splat=D;break}}return d}function G0(u){const o=[u];for(;u.parentRoute;)u=u.parentRoute,o.push(u);return o.reverse(),o}function X0(u){const o=Array(u.depth+1);do o[u.depth]=u,u=u.parent;while(u);return o}function V0(u,o,c,s){const r=!Xi(o),d=r&&u!=="/",g=o.length-(r?1:0),p=[{node:c,index:1,skipped:0,depth:1,statics:1,dynamics:0,optionals:0}];let y=null,m=null,b=null;for(;p.length;){const v=p.pop();let{node:S,index:M,skipped:D,depth:q,statics:H,dynamics:w,optionals:Z}=v;s&&S.notFound&&Ui(m,v)&&(m=v);const X=M===g;if(X){if(S.route&&(!d||S.isIndex)&&(Ui(b,v)&&(b=v),H===g&&S.isIndex))return b;if(!S.optional&&!S.wildcard)continue}const F=X?void 0:o[M];let nt;if(S.wildcard&&Ui(y,v))for(const Y of S.wildcard){const{prefix:j,suffix:G}=Y;if(!(j&&(X||!(Y.caseSensitive?F:nt??=F.toLowerCase()).startsWith(j)))){if(G){if(X)continue;const $=o.slice(M).join("/").slice(-G.length);if((Y.caseSensitive?$:$.toLowerCase())!==G)continue}y={node:Y,index:M,skipped:D,depth:q,statics:H,dynamics:w,optionals:Z};break}}if(S.optional){const Y=D|1<<q,j=q+1;for(let G=S.optional.length-1;G>=0;G--){const $=S.optional[G];p.push({node:$,index:M,skipped:Y,depth:j,statics:H,dynamics:w,optionals:Z})}if(!X)for(let G=S.optional.length-1;G>=0;G--){const $=S.optional[G],{prefix:ot,suffix:ct}=$;if(ot||ct){const Rt=$.caseSensitive?F:nt??=F.toLowerCase();if(ot&&!Rt.startsWith(ot)||ct&&!Rt.endsWith(ct))continue}p.push({node:$,index:M+1,skipped:D,depth:j,statics:H,dynamics:w,optionals:Z+1})}}if(!X&&S.dynamic&&F)for(let Y=S.dynamic.length-1;Y>=0;Y--){const j=S.dynamic[Y],{prefix:G,suffix:$}=j;if(G||$){const ot=j.caseSensitive?F:nt??=F.toLowerCase();if(G&&!ot.startsWith(G)||$&&!ot.endsWith($))continue}p.push({node:j,index:M+1,skipped:D,depth:q+1,statics:H,dynamics:w+1,optionals:Z})}if(!X&&S.staticInsensitive){const Y=S.staticInsensitive.get(nt??=F.toLowerCase());Y&&p.push({node:Y,index:M+1,skipped:D,depth:q+1,statics:H+1,dynamics:w,optionals:Z})}if(!X&&S.static){const Y=S.static.get(F);Y&&p.push({node:Y,index:M+1,skipped:D,depth:q+1,statics:H+1,dynamics:w,optionals:Z})}}if(b&&y)return Ui(y,b)?b:y;if(b)return b;if(y)return y;if(s&&m){let v=m.index;for(let M=0;M<m.index;M++)v+=o[M].length;const S=v===u.length?"/":u.slice(v);return{node:m.node,skipped:m.skipped,"**":decodeURIComponent(S)}}return null}function Ui(u,o){return u?o.statics>u.statics||o.statics===u.statics&&(o.dynamics>u.dynamics||o.dynamics===u.dynamics&&(o.optionals>u.optionals||o.optionals===u.optionals&&(o.node.isIndex>u.node.isIndex||o.node.isIndex===u.node.isIndex&&o.depth>u.depth))):!0}function ji(u){return Yo(u.filter(o=>o!==void 0).join("/"))}function Yo(u){return u.replace(/\/{2,}/g,"/")}function Om(u){return u==="/"?u:u.replace(/^\/{1,}/,"")}function fl(u){const o=u.length;return o>1&&u[o-1]==="/"?u.replace(/\/{1,}$/,""):u}function qi(u){return fl(Om(u))}function Zi(u,o){return u?.endsWith("/")&&u!=="/"&&u!==`${o}/`?u.slice(0,-1):u}function Q0(u,o,c){return Zi(u,c)===Zi(o,c)}function Z0({base:u,to:o,trailingSlash:c="never",cache:s}){const r=o.startsWith("/"),d=!r&&o===".";let g;if(s){g=r?o:d?u:u+"\0"+o;const v=s.get(g);if(v)return v}let p;if(d)p=u.split("/");else if(r)p=o.split("/");else{for(p=u.split("/");p.length>1&&Xi(p)==="";)p.pop();const v=o.split("/");for(let S=0,M=v.length;S<M;S++){const D=v[S];D===""?S?S===M-1&&p.push(D):p=[D]:D===".."?p.pop():D==="."||p.push(D)}}p.length>1&&(Xi(p)===""?c==="never"&&p.pop():c==="always"&&p.push(""));let y,m="";for(let v=0;v<p.length;v++){v>0&&(m+="/");const S=p[v];if(!S)continue;y=qo(S,0,y);const M=y[0];if(M===na){m+=S;continue}const D=y[5],q=S.substring(0,y[1]),H=S.substring(y[4],D),w=S.substring(y[2],y[3]);M===dl?m+=q||H?`${q}{$${w}}${H}`:`$${w}`:M===hl?m+=q||H?`${q}{$}${H}`:"$":m+=`${q}{-$${w}}${H}`}m=Yo(m);const b=m||"/";return g&&s&&s.set(g,b),b}function Ro(u,o,c){const s=o[u];return typeof s!="string"?s:u==="_splat"?encodeURI(s):K0(s,c)}function Eo({path:u,params:o,decodeCharMap:c}){let s=!1;const r={};if(!u||u==="/")return{interpolatedPath:"/",usedParams:r,isMissingParams:s};if(!u.includes("$"))return{interpolatedPath:u,usedParams:r,isMissingParams:s};const d=u.length;let g=0,p,y="";for(;g<d;){const b=g;p=qo(u,b,p);const v=p[5];if(g=v+1,b===v)continue;const S=p[0];if(S===na){y+="/"+u.substring(b,v);continue}if(S===hl){const M=o._splat;r._splat=M,r["*"]=M;const D=u.substring(b,p[1]),q=u.substring(p[4],v);if(!M){s=!0,(D||q)&&(y+="/"+D+q);continue}const H=Ro("_splat",o,c);y+="/"+D+H+q;continue}if(S===dl){const M=u.substring(p[2],p[3]);!s&&!(M in o)&&(s=!0),r[M]=o[M];const D=u.substring(b,p[1]),q=u.substring(p[4],v),H=Ro(M,o,c)??"undefined";y+="/"+D+H+q;continue}if(S===iu){const M=u.substring(p[2],p[3]),D=o[M];if(D==null)continue;r[M]=D;const q=u.substring(b,p[1]),H=u.substring(p[4],v),w=Ro(M,o,c)??"";y+="/"+q+w+H;continue}}return u.endsWith("/")&&(y+="/"),{usedParams:r,interpolatedPath:y||"/",isMissingParams:s}}function K0(u,o){let c=encodeURIComponent(u);if(o)for(const[s,r]of o)c=c.replaceAll(s,r);return c}function Ue(u){return!!u?.isNotFound}function J0(){try{if(typeof window<"u"&&typeof window.sessionStorage=="object")return window.sessionStorage}catch{}}const Ki="tsr-scroll-restoration-v1_3",k0=(u,o)=>{let c;return(...s)=>{c||(c=setTimeout(()=>{u(...s),c=null},o))}};function F0(){const u=J0();if(!u)return null;const o=u.getItem(Ki);let c=o?JSON.parse(o):{};return{state:c,set:s=>(c=Yn(s,c)||c,u.setItem(Ki,JSON.stringify(c)))}}const Ni=F0(),Bo=u=>u.state.__TSR_key||u.href;function W0(u){const o=[];let c;for(;c=u.parentNode;)o.push(`${u.tagName}:nth-child(${Array.prototype.indexOf.call(c.children,u)+1})`),u=c;return`${o.reverse().join(" > ")}`.toLowerCase()}let Ji=!1;function Cm({storageKey:u,key:o,behavior:c,shouldScrollRestoration:s,scrollToTopSelectors:r,location:d}){let g;try{g=JSON.parse(sessionStorage.getItem(u)||"{}")}catch(m){console.error(m);return}const p=o||window.history.state?.__TSR_key,y=g[p];Ji=!0;t:{if(s&&y&&Object.keys(y).length>0){for(const v in y){const S=y[v];if(v==="window")window.scrollTo({top:S.scrollY,left:S.scrollX,behavior:c});else if(v){const M=document.querySelector(v);M&&(M.scrollLeft=S.scrollX,M.scrollTop=S.scrollY)}}break t}const m=(d??window.location).hash.split("#",2)[1];if(m){const v=window.history.state?.__hashScrollIntoViewOptions??!0;if(v){const S=document.getElementById(m);S&&S.scrollIntoView(v)}break t}const b={top:0,left:0,behavior:c};if(window.scrollTo(b),r)for(const v of r){if(v==="window")continue;const S=typeof v=="function"?v():document.querySelector(v);S&&S.scrollTo(b)}}Ji=!1}function $0(u,o){if(!Ni&&!u.isServer||((u.options.scrollRestoration??!1)&&(u.isScrollRestoring=!0),u.isServer||u.isScrollRestorationSetup||!Ni))return;u.isScrollRestorationSetup=!0,Ji=!1;const s=u.options.getScrollRestorationKey||Bo;window.history.scrollRestoration="manual";const r=d=>{if(Ji||!u.isScrollRestoring)return;let g="";if(d.target===document||d.target===window)g="window";else{const y=d.target.getAttribute("data-scroll-restoration-id");y?g=`[data-scroll-restoration-id="${y}"]`:g=W0(d.target)}const p=s(u.state.location);Ni.set(y=>{const m=y[p]||={},b=m[g]||={};if(g==="window")b.scrollX=window.scrollX||0,b.scrollY=window.scrollY||0;else if(g){const v=document.querySelector(g);v&&(b.scrollX=v.scrollLeft||0,b.scrollY=v.scrollTop||0)}return y})};typeof document<"u"&&document.addEventListener("scroll",k0(r,100),!0),u.subscribe("onRendered",d=>{const g=s(d.toLocation);if(!u.resetNextScroll){u.resetNextScroll=!0;return}typeof u.options.scrollRestoration=="function"&&!u.options.scrollRestoration({location:u.latestLocation})||(Cm({storageKey:Ki,key:g,behavior:u.options.scrollRestorationBehavior,shouldScrollRestoration:u.isScrollRestoring,scrollToTopSelectors:u.options.scrollToTopSelectors,location:u.history.location}),u.isScrollRestoring&&Ni.set(p=>(p[g]||={},p)))})}function P0(u){if(typeof document<"u"&&document.querySelector){const o=u.state.location.state.__hashScrollIntoViewOptions??!0;if(o&&u.state.location.hash!==""){const c=document.getElementById(u.state.location.hash);c&&c.scrollIntoView(o)}}}function I0(u,o=String){const c=new URLSearchParams;for(const s in u){const r=u[s];r!==void 0&&c.set(s,o(r))}return c.toString()}function Mo(u){return u?u==="false"?!1:u==="true"?!0:+u*0===0&&+u+""===u?+u:u:""}function tp(u){const o=new URLSearchParams(u),c={};for(const[s,r]of o.entries()){const d=c[s];d==null?c[s]=Mo(r):Array.isArray(d)?d.push(Mo(r)):c[s]=[d,Mo(r)]}return c}const ep=lp(JSON.parse),np=ap(JSON.stringify,JSON.parse);function lp(u){return o=>{o[0]==="?"&&(o=o.substring(1));const c=tp(o);for(const s in c){const r=c[s];if(typeof r=="string")try{c[s]=u(r)}catch{}}return c}}function ap(u,o){const c=typeof o=="function";function s(r){if(typeof r=="object"&&r!==null)try{return u(r)}catch{}else if(c&&typeof r=="string")try{return o(r),u(r)}catch{}return r}return r=>{const d=I0(r,s);return d?`?${d}`:""}}const _e="__root__";function up(u){if(u.statusCode=u.statusCode||u.code||307,!u.reloadDocument&&typeof u.href=="string")try{new URL(u.href),u.reloadDocument=!0}catch{}const o=new Headers(u.headers);u.href&&o.get("Location")===null&&o.set("Location",u.href);const c=new Response(null,{status:u.statusCode,headers:o});if(c.options=u,u.throw)throw c;return c}function qe(u){return u instanceof Response&&!!u.options}const wi=u=>{if(!u.rendered)return u.rendered=!0,u.onReady?.()},Wi=(u,o)=>!!(u.preload&&!u.router.state.matches.some(c=>c.id===o)),xm=(u,o)=>{const c=u.router.routesById[o.routeId??""]??u.router.routeTree;!c.options.notFoundComponent&&u.router.options?.defaultNotFoundComponent&&(c.options.notFoundComponent=u.router.options.defaultNotFoundComponent),rn(c.options.notFoundComponent);const s=u.matches.find(r=>r.routeId===c.id);rn(s,"Could not find match for route: "+c.id),u.updateMatch(s.id,r=>({...r,status:"notFound",error:o,isFetching:!1})),o.routerCode==="BEFORE_LOAD"&&c.parentRoute&&(o.routeId=c.parentRoute.id,xm(u,o))},Gn=(u,o,c)=>{if(!(!qe(c)&&!Ue(c))){if(qe(c)&&c.redirectHandled&&!c.options.reloadDocument)throw c;if(o){o._nonReactive.beforeLoadPromise?.resolve(),o._nonReactive.loaderPromise?.resolve(),o._nonReactive.beforeLoadPromise=void 0,o._nonReactive.loaderPromise=void 0;const s=qe(c)?"redirected":"notFound";o._nonReactive.error=c,u.updateMatch(o.id,r=>({...r,status:s,isFetching:!1,error:c})),Ue(c)&&!c.routeId&&(c.routeId=o.routeId),o._nonReactive.loadPromise?.resolve()}throw qe(c)?(u.rendered=!0,c.options._fromLocation=u.location,c.redirectHandled=!0,c=u.router.resolveRedirect(c),c):(xm(u,c),c)}},Dm=(u,o)=>{const c=u.router.getMatch(o);return!!(!u.router.isServer&&c._nonReactive.dehydrated||u.router.isServer&&c.ssr===!1)},Ia=(u,o,c,s)=>{const{id:r,routeId:d}=u.matches[o],g=u.router.looseRoutesById[d];if(c instanceof Promise)throw c;c.routerCode=s,u.firstBadMatchIndex??=o,Gn(u,u.router.getMatch(r),c);try{g.options.onError?.(c)}catch(p){c=p,Gn(u,u.router.getMatch(r),c)}u.updateMatch(r,p=>(p._nonReactive.beforeLoadPromise?.resolve(),p._nonReactive.beforeLoadPromise=void 0,p._nonReactive.loadPromise?.resolve(),{...p,error:c,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController}))},ip=(u,o,c,s)=>{const r=u.router.getMatch(o),d=u.matches[c-1]?.id,g=d?u.router.getMatch(d):void 0;if(u.router.isShell()){r.ssr=s.id===_e;return}if(g?.ssr===!1){r.ssr=!1;return}const p=M=>M===!0&&g?.ssr==="data-only"?"data-only":M,y=u.router.options.defaultSsr??!0;if(s.options.ssr===void 0){r.ssr=p(y);return}if(typeof s.options.ssr!="function"){r.ssr=p(s.options.ssr);return}const{search:m,params:b}=r,v={search:Bi(m,r.searchError),params:Bi(b,r.paramsError),location:u.location,matches:u.matches.map(M=>({index:M.index,pathname:M.pathname,fullPath:M.fullPath,staticData:M.staticData,id:M.id,routeId:M.routeId,search:Bi(M.search,M.searchError),params:Bi(M.params,M.paramsError),ssr:M.ssr}))},S=s.options.ssr(v);if(Vn(S))return S.then(M=>{r.ssr=p(M??y)});r.ssr=p(S??y)},Lm=(u,o,c,s)=>{if(s._nonReactive.pendingTimeout!==void 0)return;const r=c.options.pendingMs??u.router.options.defaultPendingMs;if(!!(u.onReady&&!u.router.isServer&&!Wi(u,o)&&(c.options.loader||c.options.beforeLoad||Bm(c))&&typeof r=="number"&&r!==1/0&&(c.options.pendingComponent??u.router.options?.defaultPendingComponent))){const g=setTimeout(()=>{wi(u)},r);s._nonReactive.pendingTimeout=g}},cp=(u,o,c)=>{const s=u.router.getMatch(o);if(!s._nonReactive.beforeLoadPromise&&!s._nonReactive.loaderPromise)return;Lm(u,o,c,s);const r=()=>{const d=u.router.getMatch(o);d.preload&&(d.status==="redirected"||d.status==="notFound")&&Gn(u,d,d.error)};return s._nonReactive.beforeLoadPromise?s._nonReactive.beforeLoadPromise.then(r):r()},sp=(u,o,c,s)=>{const r=u.router.getMatch(o),d=r._nonReactive.loadPromise;r._nonReactive.loadPromise=ea(()=>{d?.resolve()});const{paramsError:g,searchError:p}=r;g&&Ia(u,c,g,"PARSE_PARAMS"),p&&Ia(u,c,p,"VALIDATE_SEARCH"),Lm(u,o,s,r);const y=new AbortController,m=u.matches[c-1]?.id,S={...(m?u.router.getMatch(m):void 0)?.context??u.router.options.context??void 0,...r.__routeContext};let M=!1;const D=()=>{M||(M=!0,u.updateMatch(o,j=>({...j,isFetching:"beforeLoad",fetchCount:j.fetchCount+1,abortController:y,context:S})))},q=()=>{r._nonReactive.beforeLoadPromise?.resolve(),r._nonReactive.beforeLoadPromise=void 0,u.updateMatch(o,j=>({...j,isFetching:!1}))};if(!s.options.beforeLoad){au(()=>{D(),q()});return}r._nonReactive.beforeLoadPromise=ea();const{search:H,params:w,cause:Z}=r,X=Wi(u,o),F={search:H,abortController:y,params:w,preload:X,context:S,location:u.location,navigate:j=>u.router.navigate({...j,_fromLocation:u.location}),buildLocation:u.router.buildLocation,cause:X?"preload":Z,matches:u.matches,...u.router.options.additionalContext},nt=j=>{if(j===void 0){au(()=>{D(),q()});return}(qe(j)||Ue(j))&&(D(),Ia(u,c,j,"BEFORE_LOAD")),au(()=>{D(),u.updateMatch(o,G=>({...G,__beforeLoadContext:j,context:{...G.context,...j}})),q()})};let Y;try{if(Y=s.options.beforeLoad(F),Vn(Y))return D(),Y.catch(j=>{Ia(u,c,j,"BEFORE_LOAD")}).then(nt)}catch(j){D(),Ia(u,c,j,"BEFORE_LOAD")}nt(Y)},op=(u,o)=>{const{id:c,routeId:s}=u.matches[o],r=u.router.looseRoutesById[s],d=()=>{if(u.router.isServer){const y=ip(u,c,o,r);if(Vn(y))return y.then(p)}return p()},g=()=>sp(u,c,o,r),p=()=>{if(Dm(u,c))return;const y=cp(u,c,r);return Vn(y)?y.then(g):g()};return d()},uu=(u,o,c)=>{const s=u.router.getMatch(o);if(!s||!c.options.head&&!c.options.scripts&&!c.options.headers)return;const r={matches:u.matches,match:s,params:s.params,loaderData:s.loaderData};return Promise.all([c.options.head?.(r),c.options.scripts?.(r),c.options.headers?.(r)]).then(([d,g,p])=>{const y=d?.meta,m=d?.links,b=d?.scripts,v=d?.styles;return{meta:y,links:m,headScripts:b,headers:p,scripts:g,styles:v}})},Um=(u,o,c,s)=>{const r=u.matchPromises[c-1],{params:d,loaderDeps:g,abortController:p,cause:y}=u.router.getMatch(o);let m=u.router.options.context??{};for(let v=0;v<=c;v++){const S=u.matches[v];if(!S)continue;const M=u.router.getMatch(S.id);M&&(m={...m,...M.__routeContext??{},...M.__beforeLoadContext??{}})}const b=Wi(u,o);return{params:d,deps:g,preload:!!b,parentMatchPromise:r,abortController:p,context:m,location:u.location,navigate:v=>u.router.navigate({...v,_fromLocation:u.location}),cause:b?"preload":y,route:s,...u.router.options.additionalContext}},dm=async(u,o,c,s)=>{try{const r=u.router.getMatch(o);try{(!u.router.isServer||r.ssr===!0)&&Nm(s);const d=s.options.loader?.(Um(u,o,c,s)),g=s.options.loader&&Vn(d);if(!!(g||s._lazyPromise||s._componentsPromise||s.options.head||s.options.scripts||s.options.headers||r._nonReactive.minPendingPromise)&&u.updateMatch(o,v=>({...v,isFetching:"loader"})),s.options.loader){const v=g?await d:d;Gn(u,u.router.getMatch(o),v),v!==void 0&&u.updateMatch(o,S=>({...S,loaderData:v}))}s._lazyPromise&&await s._lazyPromise;const y=uu(u,o,s),m=y?await y:void 0,b=r._nonReactive.minPendingPromise;b&&await b,s._componentsPromise&&await s._componentsPromise,u.updateMatch(o,v=>({...v,error:void 0,status:"success",isFetching:!1,updatedAt:Date.now(),...m}))}catch(d){let g=d;const p=r._nonReactive.minPendingPromise;p&&await p,Ue(d)&&await s.options.notFoundComponent?.preload?.(),Gn(u,u.router.getMatch(o),d);try{s.options.onError?.(d)}catch(b){g=b,Gn(u,u.router.getMatch(o),b)}const y=uu(u,o,s),m=y?await y:void 0;u.updateMatch(o,b=>({...b,error:g,status:"error",isFetching:!1,...m}))}}catch(r){const d=u.router.getMatch(o);if(d){const g=uu(u,o,s);if(g){const p=await g;u.updateMatch(o,y=>({...y,...p}))}d._nonReactive.loaderPromise=void 0}Gn(u,d,r)}},fp=async(u,o)=>{const{id:c,routeId:s}=u.matches[o];let r=!1,d=!1;const g=u.router.looseRoutesById[s];if(Dm(u,c)){if(u.router.isServer){const m=uu(u,c,g);if(m){const b=await m;u.updateMatch(c,v=>({...v,...b}))}return u.router.getMatch(c)}}else{const m=u.router.getMatch(c);if(m._nonReactive.loaderPromise){if(m.status==="success"&&!u.sync&&!m.preload)return m;await m._nonReactive.loaderPromise;const b=u.router.getMatch(c),v=b._nonReactive.error||b.error;v&&Gn(u,b,v)}else{const b=Date.now()-m.updatedAt,v=Wi(u,c),S=v?g.options.preloadStaleTime??u.router.options.defaultPreloadStaleTime??3e4:g.options.staleTime??u.router.options.defaultStaleTime??0,M=g.options.shouldReload,D=typeof M=="function"?M(Um(u,c,o,g)):M,q=!!v&&!u.router.state.matches.some(X=>X.id===c),H=u.router.getMatch(c);H._nonReactive.loaderPromise=ea(),q!==H.preload&&u.updateMatch(c,X=>({...X,preload:q}));const{status:w,invalid:Z}=H;if(r=w==="success"&&(Z||(D??b>S)),!(v&&g.options.preload===!1))if(r&&!u.sync)d=!0,(async()=>{try{await dm(u,c,o,g);const X=u.router.getMatch(c);X._nonReactive.loaderPromise?.resolve(),X._nonReactive.loadPromise?.resolve(),X._nonReactive.loaderPromise=void 0}catch(X){qe(X)&&await u.router.navigate(X.options)}})();else if(w!=="success"||r&&u.sync)await dm(u,c,o,g);else{const X=uu(u,c,g);if(X){const F=await X;u.updateMatch(c,nt=>({...nt,...F}))}}}}const p=u.router.getMatch(c);d||(p._nonReactive.loaderPromise?.resolve(),p._nonReactive.loadPromise?.resolve()),clearTimeout(p._nonReactive.pendingTimeout),p._nonReactive.pendingTimeout=void 0,d||(p._nonReactive.loaderPromise=void 0),p._nonReactive.dehydrated=void 0;const y=d?p.isFetching:!1;return y!==p.isFetching||p.invalid!==!1?(u.updateMatch(c,m=>({...m,isFetching:y,invalid:!1})),u.router.getMatch(c)):p};async function hm(u){const o=Object.assign(u,{matchPromises:[]});!o.router.isServer&&o.router.state.matches.some(c=>c._forcePending)&&wi(o);try{for(let r=0;r<o.matches.length;r++){const d=op(o,r);Vn(d)&&await d}const c=o.firstBadMatchIndex??o.matches.length;for(let r=0;r<c;r++)o.matchPromises.push(fp(o,r));await Promise.all(o.matchPromises);const s=wi(o);Vn(s)&&await s}catch(c){if(Ue(c)&&!o.preload){const s=wi(o);throw Vn(s)&&await s,c}if(qe(c))throw c}return o.matches}async function Nm(u){if(!u._lazyLoaded&&u._lazyPromise===void 0&&(u.lazyFn?u._lazyPromise=u.lazyFn().then(o=>{const{id:c,...s}=o.options;Object.assign(u.options,s),u._lazyLoaded=!0,u._lazyPromise=void 0}):u._lazyLoaded=!0),!u._componentsLoaded&&u._componentsPromise===void 0){const o=()=>{const c=[];for(const s of Hm){const r=u.options[s]?.preload;r&&c.push(r())}if(c.length)return Promise.all(c).then(()=>{u._componentsLoaded=!0,u._componentsPromise=void 0});u._componentsLoaded=!0,u._componentsPromise=void 0};u._componentsPromise=u._lazyPromise?u._lazyPromise.then(o):o()}return u._componentsPromise}function Bi(u,o){return o?{status:"error",error:o}:{status:"success",value:u}}function Bm(u){for(const o of Hm)if(u.options[o]?.preload)return!0;return!1}const Hm=["component","errorComponent","pendingComponent","notFoundComponent"];function rp(u){return{input:({url:o})=>{for(const c of u)o=jm(c,o);return o},output:({url:o})=>{for(let c=u.length-1;c>=0;c--)o=qm(u[c],o);return o}}}function dp(u){const o=qi(u.basepath),c=`/${o}`,s=`${c}/`,r=u.caseSensitive?c:c.toLowerCase(),d=u.caseSensitive?s:s.toLowerCase();return{input:({url:g})=>{const p=u.caseSensitive?g.pathname:g.pathname.toLowerCase();return p===r?g.pathname="/":p.startsWith(d)&&(g.pathname=g.pathname.slice(c.length)),g},output:({url:g})=>(g.pathname=ji(["/",o,g.pathname]),g)}}function jm(u,o){const c=u?.input?.({url:o});if(c){if(typeof c=="string")return new URL(c);if(c instanceof URL)return c}return o}function qm(u,o){const c=u?.output?.({url:o});if(c){if(typeof c=="string")return new URL(c);if(c instanceof URL)return c}return o}function rl(u){const o=u.resolvedLocation,c=u.location,s=o?.pathname!==c.pathname,r=o?.href!==c.href,d=o?.hash!==c.hash;return{fromLocation:o,toLocation:c,pathChanged:s,hrefChanged:r,hashChanged:d}}class hp{constructor(o){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this.resetNextScroll=!0,this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.isScrollRestoring=!1,this.isScrollRestorationSetup=!1,this.startTransition=c=>c(),this.update=c=>{c.notFoundRoute&&console.warn("The notFoundRoute API is deprecated and will be removed in the next major version. See https://tanstack.com/router/v1/docs/framework/react/guide/not-found-errors#migrating-from-notfoundroute for more info.");const s=this.options,r=this.basepath??s?.basepath??"/",d=this.basepath===void 0,g=s?.rewrite;this.options={...s,...c},this.isServer=this.options.isServer??typeof document>"u",this.pathParamsDecodeCharMap=this.options.pathParamsAllowedCharacters?new Map(this.options.pathParamsAllowedCharacters.map(S=>[encodeURIComponent(S),S])):void 0,(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.isServer||(this.history=z0())),this.origin=this.options.origin,this.origin||(!this.isServer&&window?.origin&&window.origin!=="null"?this.origin=window.origin:this.origin="http://localhost"),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree&&(this.routeTree=this.options.routeTree,this.buildRouteTree()),!this.__store&&this.latestLocation&&(this.__store=new E0(yp(this.latestLocation),{onUpdate:()=>{this.__store.state={...this.state,cachedMatches:this.state.cachedMatches.filter(S=>!["redirected"].includes(S.status))}}}),$0(this));let p=!1;const y=this.options.basepath??"/",m=this.options.rewrite;if(d||r!==y||g!==m){this.basepath=y;const S=[];qi(y)!==""&&S.push(dp({basepath:y})),m&&S.push(m),this.rewrite=S.length===0?void 0:S.length===1?S[0]:rp(S),this.history&&this.updateLatestLocation(),p=!0}p&&this.__store&&(this.__store.state={...this.state,location:this.latestLocation}),typeof window<"u"&&"CSS"in window&&typeof window.CSS?.supports=="function"&&(this.isViewTransitionTypesSupported=window.CSS.supports("selector(:active-view-transition-type(a)"))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{const{routesById:c,routesByPath:s,processedTree:r}=w0(this.routeTree,this.options.caseSensitive,(g,p)=>{g.init({originalIndex:p})});this.options.routeMasks&&N0(this.options.routeMasks,r),this.routesById=c,this.routesByPath=s,this.processedTree=r;const d=this.options.notFoundRoute;d&&(d.init({originalIndex:99999999999}),this.routesById[d.id]=d)},this.subscribe=(c,s)=>{const r={eventType:c,fn:s};return this.subscribers.add(r),()=>{this.subscribers.delete(r)}},this.emit=c=>{this.subscribers.forEach(s=>{s.eventType===c.type&&s.fn(c)})},this.parseLocation=(c,s)=>{const r=({href:y,state:m})=>{const b=new URL(y,this.origin),v=jm(this.rewrite,b),S=this.options.parseSearch(v.search),M=this.options.stringifySearch(S);v.search=M;const D=v.href.replace(v.origin,""),{pathname:q,hash:H}=v;return{href:D,publicHref:y,url:v.href,pathname:rm(q),searchStr:M,search:Le(s?.search,S),hash:H.split("#").reverse()[0]??"",state:Le(s?.state,m)}},d=r(c),{__tempLocation:g,__tempKey:p}=d.state;if(g&&(!p||p===this.tempLocationKey)){const y=r(g);return y.state.key=d.state.key,y.state.__TSR_key=d.state.__TSR_key,delete y.state.__tempLocation,{...y,maskedLocation:d}}return d},this.resolvePathCache=Qi(1e3),this.resolvePathWithBase=(c,s)=>Z0({base:c,to:Yo(s),trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(c,s,r)=>typeof c=="string"?this.matchRoutesInternal({pathname:c,search:s},r):this.matchRoutesInternal(c,s),this.getMatchedRoutes=c=>vp({pathname:c,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=c=>{const s=this.getMatch(c);s&&(s.abortController.abort(),clearTimeout(s._nonReactive.pendingTimeout),s._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{const c=this.state.matches.filter(d=>d.status==="pending"),s=this.state.matches.filter(d=>d.isFetching==="loader");new Set([...this.state.pendingMatches??[],...c,...s]).forEach(d=>{this.cancelMatch(d.id)})},this.buildLocation=c=>{const s=(d={})=>{const g=d._fromLocation||this.pendingBuiltLocation||this.latestLocation,p=this.matchRoutes(g,{_buildLocation:!0}),y=Xi(p);d.from;const m=d.unsafeRelative==="path"?g.pathname:d.from??y.fullPath,b=this.resolvePathWithBase(m,"."),v=y.search,S={...y.params},M=d.to?this.resolvePathWithBase(b,`${d.to}`):this.resolvePathWithBase(b,"."),D=d.params===!1||d.params===null?{}:(d.params??!0)===!0?S:Object.assign(S,Yn(d.params,S)),q=Eo({path:M,params:D}).interpolatedPath,H=this.matchRoutes(q,void 0,{_buildLocation:!0}).map(ot=>this.looseRoutesById[ot.routeId]);if(Object.keys(D).length>0)for(const ot of H){const ct=ot.options.params?.stringify??ot.options.stringifyParams;ct&&Object.assign(D,ct(D))}const w=c.leaveParams?M:rm(Eo({path:M,params:D,decodeCharMap:this.pathParamsDecodeCharMap}).interpolatedPath);let Z=v;if(c._includeValidateSearch&&this.options.search?.strict){const ot={};H.forEach(ct=>{if(ct.options.validateSearch)try{Object.assign(ot,Ho(ct.options.validateSearch,{...ot,...Z}))}catch{}}),Z=ot}Z=pp({search:Z,dest:d,destRoutes:H,_includeValidateSearch:c._includeValidateSearch}),Z=Le(v,Z);const X=this.options.stringifySearch(Z),F=d.hash===!0?g.hash:d.hash?Yn(d.hash,g.hash):void 0,nt=F?`#${F}`:"";let Y=d.state===!0?g.state:d.state?Yn(d.state,g.state):{};Y=Le(g.state,Y);const j=`${w}${X}${nt}`,G=new URL(j,this.origin),$=qm(this.rewrite,G);return{publicHref:$.pathname+$.search+$.hash,href:j,url:$.href,pathname:w,search:Z,searchStr:X,state:Y,hash:F??"",unmaskOnReload:d.unmaskOnReload}},r=(d={},g)=>{const p=s(d);let y=g?s(g):void 0;if(!y){const m={};if(this.options.routeMasks){const b=B0(p.pathname,this.processedTree);if(b){Object.assign(m,b.params);const{from:v,params:S,...M}=b.route,D=S===!1||S===null?{}:(S??!0)===!0?m:Object.assign(m,Yn(S,m));g={from:c.from,...M,params:D},y=s(g)}}}return y&&(p.maskedLocation=y),p};return c.mask?r(c,{from:c.from,...c.mask}):r(c)},this.commitLocation=({viewTransition:c,ignoreBlocker:s,...r})=>{const d=()=>{const y=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];y.forEach(b=>{r.state[b]=this.latestLocation.state[b]});const m=ol(r.state,this.latestLocation.state);return y.forEach(b=>{delete r.state[b]}),m},g=fl(this.latestLocation.href)===fl(r.href),p=this.commitLocationPromise;if(this.commitLocationPromise=ea(()=>{p?.resolve()}),g&&d())this.load();else{let{maskedLocation:y,hashScrollIntoView:m,...b}=r;y&&(b={...y,state:{...y.state,__tempKey:void 0,__tempLocation:{...b,search:b.searchStr,state:{...b.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(b.unmaskOnReload??this.options.unmaskOnReload??!1)&&(b.state.__tempKey=this.tempLocationKey)),b.state.__hashScrollIntoViewOptions=m??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=c,this.history[r.replace?"replace":"push"](b.publicHref,b.state,{ignoreBlocker:s})}return this.resetNextScroll=r.resetScroll??!0,this.history.subscribers.size||this.load(),this.commitLocationPromise},this.buildAndCommitLocation=({replace:c,resetScroll:s,hashScrollIntoView:r,viewTransition:d,ignoreBlocker:g,href:p,...y}={})=>{if(p){const v=this.history.location.state.__TSR_index,S=Gi(p,{__TSR_index:c?v:v+1});y.to=S.pathname,y.search=this.options.parseSearch(S.search),y.hash=S.hash.slice(1)}const m=this.buildLocation({...y,_includeValidateSearch:!0});this.pendingBuiltLocation=m;const b=this.commitLocation({...m,viewTransition:d,replace:c,resetScroll:s,hashScrollIntoView:r,ignoreBlocker:g});return Promise.resolve().then(()=>{this.pendingBuiltLocation===m&&(this.pendingBuiltLocation=void 0)}),b},this.navigate=async({to:c,reloadDocument:s,href:r,...d})=>{if(!s&&r)try{new URL(`${r}`),s=!0}catch{}if(s){if(r||(r=this.buildLocation({to:c,...d}).url),!d.ignoreBlocker){const p=this.history.getBlockers?.()??[];for(const y of p)if(y?.blockerFn&&await y.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:"PUSH"}))return Promise.resolve()}return d.replace?window.location.replace(r):window.location.href=r,Promise.resolve()}return this.buildAndCommitLocation({...d,href:r,to:c,_isNavigate:!0})},this.beforeLoad=()=>{if(this.cancelMatches(),this.updateLatestLocation(),this.isServer){const s=this.buildLocation({to:this.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0}),r=d=>{try{return encodeURI(decodeURI(d))}catch{return d}};if(qi(r(this.latestLocation.href))!==qi(r(s.href))){let d=s.url;throw this.origin&&d.startsWith(this.origin)&&(d=d.replace(this.origin,"")||"/"),up({href:d})}}const c=this.matchRoutes(this.latestLocation);this.__store.setState(s=>({...s,status:"pending",statusCode:200,isLoading:!0,location:this.latestLocation,pendingMatches:c,cachedMatches:s.cachedMatches.filter(r=>!c.some(d=>d.id===r.id))}))},this.load=async c=>{let s,r,d;for(d=new Promise(p=>{this.startTransition(async()=>{try{this.beforeLoad();const y=this.latestLocation,m=this.state.resolvedLocation;this.state.redirect||this.emit({type:"onBeforeNavigate",...rl({resolvedLocation:m,location:y})}),this.emit({type:"onBeforeLoad",...rl({resolvedLocation:m,location:y})}),await hm({router:this,sync:c?.sync,matches:this.state.pendingMatches,location:y,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let b=[],v=[],S=[];au(()=>{this.__store.setState(M=>{const D=M.matches,q=M.pendingMatches||M.matches;return b=D.filter(H=>!q.some(w=>w.id===H.id)),v=q.filter(H=>!D.some(w=>w.id===H.id)),S=q.filter(H=>D.some(w=>w.id===H.id)),{...M,isLoading:!1,loadedAt:Date.now(),matches:q,pendingMatches:void 0,cachedMatches:[...M.cachedMatches,...b.filter(H=>H.status!=="error"&&H.status!=="notFound")]}}),this.clearExpiredCache()}),[[b,"onLeave"],[v,"onEnter"],[S,"onStay"]].forEach(([M,D])=>{M.forEach(q=>{this.looseRoutesById[q.routeId].options[D]?.(q)})})})})}})}catch(y){qe(y)?(s=y,this.isServer||this.navigate({...s.options,replace:!0,ignoreBlocker:!0})):Ue(y)&&(r=y),this.__store.setState(m=>({...m,statusCode:s?s.status:r?404:m.matches.some(b=>b.status==="error")?500:200,redirect:s}))}this.latestLoadPromise===d&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),p()})}),this.latestLoadPromise=d,await d;this.latestLoadPromise&&d!==this.latestLoadPromise;)await this.latestLoadPromise;let g;this.hasNotFoundMatch()?g=404:this.__store.state.matches.some(p=>p.status==="error")&&(g=500),g!==void 0&&this.__store.setState(p=>({...p,statusCode:g}))},this.startViewTransition=c=>{const s=this.shouldViewTransition??this.options.defaultViewTransition;if(delete this.shouldViewTransition,s&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition=="function"){let r;if(typeof s=="object"&&this.isViewTransitionTypesSupported){const d=this.latestLocation,g=this.state.resolvedLocation,p=typeof s.types=="function"?s.types(rl({resolvedLocation:g,location:d})):s.types;if(p===!1){c();return}r={update:c,types:p}}else r=c;document.startViewTransition(r)}else c()},this.updateMatch=(c,s)=>{this.startTransition(()=>{const r=this.state.pendingMatches?.some(d=>d.id===c)?"pendingMatches":this.state.matches.some(d=>d.id===c)?"matches":this.state.cachedMatches.some(d=>d.id===c)?"cachedMatches":"";r&&this.__store.setState(d=>({...d,[r]:d[r]?.map(g=>g.id===c?s(g):g)}))})},this.getMatch=c=>{const s=r=>r.id===c;return this.state.cachedMatches.find(s)??this.state.pendingMatches?.find(s)??this.state.matches.find(s)},this.invalidate=c=>{const s=r=>c?.filter?.(r)??!0?{...r,invalid:!0,...c?.forcePending||r.status==="error"||r.status==="notFound"?{status:"pending",error:void 0}:void 0}:r;return this.__store.setState(r=>({...r,matches:r.matches.map(s),cachedMatches:r.cachedMatches.map(s),pendingMatches:r.pendingMatches?.map(s)})),this.shouldViewTransition=!1,this.load({sync:c?.sync})},this.resolveRedirect=c=>{if(!c.options.href){const s=this.buildLocation(c.options);let r=s.url;this.origin&&r.startsWith(this.origin)&&(r=r.replace(this.origin,"")||"/"),c.options.href=s.href,c.headers.set("Location",r)}return c.headers.get("Location")||c.headers.set("Location",c.options.href),c},this.clearCache=c=>{const s=c?.filter;s!==void 0?this.__store.setState(r=>({...r,cachedMatches:r.cachedMatches.filter(d=>!s(d))})):this.__store.setState(r=>({...r,cachedMatches:[]}))},this.clearExpiredCache=()=>{const c=s=>{const r=this.looseRoutesById[s.routeId];if(!r.options.loader)return!0;const d=(s.preload?r.options.preloadGcTime??this.options.defaultPreloadGcTime:r.options.gcTime??this.options.defaultGcTime)??300*1e3;return s.status==="error"?!0:Date.now()-s.updatedAt>=d};this.clearCache({filter:c})},this.loadRouteChunk=Nm,this.preloadRoute=async c=>{const s=this.buildLocation(c);let r=this.matchRoutes(s,{throwOnError:!0,preload:!0,dest:c});const d=new Set([...this.state.matches,...this.state.pendingMatches??[]].map(p=>p.id)),g=new Set([...d,...this.state.cachedMatches.map(p=>p.id)]);au(()=>{r.forEach(p=>{g.has(p.id)||this.__store.setState(y=>({...y,cachedMatches:[...y.cachedMatches,p]}))})});try{return r=await hm({router:this,matches:r,location:s,preload:!0,updateMatch:(p,y)=>{d.has(p)?r=r.map(m=>m.id===p?y(m):m):this.updateMatch(p,y)}}),r}catch(p){if(qe(p))return p.options.reloadDocument?void 0:await this.preloadRoute({...p.options,_fromLocation:s});Ue(p)||console.error(p);return}},this.matchRoute=(c,s)=>{const r={...c,to:c.to?this.resolvePathWithBase(c.from||"",c.to):void 0,params:c.params||{},leaveParams:!0},d=this.buildLocation(r);if(s?.pending&&this.state.status!=="pending")return!1;const p=(s?.pending===void 0?!this.state.isLoading:s.pending)?this.latestLocation:this.state.resolvedLocation||this.state.location,y=H0(d.pathname,s?.caseSensitive??!1,s?.fuzzy??!1,p.pathname,this.processedTree);return!y||c.params&&!ol(y.params,c.params,{partial:!0})?!1:s?.includeSearch??!0?ol(p.search,d.search,{partial:!0})?y.params:!1:y.params},this.hasNotFoundMatch=()=>this.__store.state.matches.some(c=>c.status==="notFound"||c.globalNotFound),this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...o,caseSensitive:o.caseSensitive??!1,notFoundMode:o.notFoundMode??"fuzzy",stringifySearch:o.stringifySearch??np,parseSearch:o.parseSearch??ep}),typeof document<"u"&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.__store.state}get looseRoutesById(){return this.routesById}matchRoutesInternal(o,c){const s=this.getMatchedRoutes(o.pathname),{foundRoute:r,routeParams:d}=s;let{matchedRoutes:g}=s,p=!1;(r?r.path!=="/"&&d["**"]:fl(o.pathname))&&(this.options.notFoundRoute?g=[...g,this.options.notFoundRoute]:p=!0);const y=(()=>{if(p){if(this.options.notFoundMode!=="root")for(let v=g.length-1;v>=0;v--){const S=g[v];if(S.children)return S.id}return _e}})(),m=[],b=v=>v?.id?v.context??this.options.context??void 0:this.options.context??void 0;return g.forEach((v,S)=>{const M=m[S-1],[D,q,H]=(()=>{const jt=M?.search??o.search,qt=M?._strictSearch??void 0;try{const Nt=Ho(v.options.validateSearch,{...jt})??void 0;return[{...jt,...Nt},{...qt,...Nt},void 0]}catch(Nt){let x=Nt;if(Nt instanceof ki||(x=new ki(Nt.message,{cause:Nt})),c?.throwOnError)throw x;return[jt,{},x]}})(),w=v.options.loaderDeps?.({search:D})??"",Z=w?JSON.stringify(w):"",{interpolatedPath:X,usedParams:F}=Eo({path:v.fullPath,params:d,decodeCharMap:this.pathParamsDecodeCharMap}),nt=v.id+X+Z,Y=this.getMatch(nt),j=this.state.matches.find(jt=>jt.routeId===v.id),G=Y?._strictParams??F;let $;if(!Y){const jt=v.options.params?.parse??v.options.parseParams;if(jt)try{Object.assign(G,jt(G))}catch(qt){if(Ue(qt)||qe(qt)?$=qt:$=new mp(qt.message,{cause:qt}),c?.throwOnError)throw $}}Object.assign(d,G);const ot=j?"stay":"enter";let ct;if(Y)ct={...Y,cause:ot,params:j?Le(j.params,d):d,_strictParams:G,search:Le(j?j.search:Y.search,D),_strictSearch:q};else{const jt=v.options.loader||v.options.beforeLoad||v.lazyFn||Bm(v)?"pending":"success";ct={id:nt,ssr:this.isServer?void 0:v.options.ssr,index:S,routeId:v.id,params:j?Le(j.params,d):d,_strictParams:G,pathname:X,updatedAt:Date.now(),search:j?Le(j.search,D):D,_strictSearch:q,searchError:void 0,status:jt,isFetching:!1,error:void 0,paramsError:$,__routeContext:void 0,_nonReactive:{loadPromise:ea()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:ot,loaderDeps:j?Le(j.loaderDeps,w):w,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:v.options.staticData||{},fullPath:v.fullPath}}c?.preload||(ct.globalNotFound=y===v.id),ct.searchError=H;const Rt=b(M);ct.context={...Rt,...ct.__routeContext,...ct.__beforeLoadContext},m.push(ct)}),m.forEach((v,S)=>{const M=this.looseRoutesById[v.routeId];if(!this.getMatch(v.id)&&c?._buildLocation!==!0){const q=m[S-1],H=b(q);if(M.options.context){const w={deps:v.loaderDeps,params:v.params,context:H??{},location:o,navigate:Z=>this.navigate({...Z,_fromLocation:o}),buildLocation:this.buildLocation,cause:v.cause,abortController:v.abortController,preload:!!v.preload,matches:m};v.__routeContext=M.options.context(w)??void 0}v.context={...H,...v.__routeContext,...v.__beforeLoadContext}}}),m}}class ki extends Error{}class mp extends Error{}function yp(u){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:u,matches:[],pendingMatches:[],cachedMatches:[],statusCode:200}}function Ho(u,o){if(u==null)return{};if("~standard"in u){const c=u["~standard"].validate(o);if(c instanceof Promise)throw new ki("Async validation not supported");if(c.issues)throw new ki(JSON.stringify(c.issues,void 0,2),{cause:c});return c.value}return"parse"in u?u.parse(o):typeof u=="function"?u(o):{}}function vp({pathname:u,routesById:o,processedTree:c}){const s={},r=fl(u);let d;const g=j0(r,c,!0);return g&&(d=g.route,Object.assign(s,g.params)),{matchedRoutes:g?.branch||[o[_e]],routeParams:s,foundRoute:d}}function pp({search:u,dest:o,destRoutes:c,_includeValidateSearch:s}){const r=c.reduce((p,y)=>{const m=[];if("search"in y.options)y.options.search?.middlewares&&m.push(...y.options.search.middlewares);else if(y.options.preSearchFilters||y.options.postSearchFilters){const b=({search:v,next:S})=>{let M=v;"preSearchFilters"in y.options&&y.options.preSearchFilters&&(M=y.options.preSearchFilters.reduce((q,H)=>H(q),v));const D=S(M);return"postSearchFilters"in y.options&&y.options.postSearchFilters?y.options.postSearchFilters.reduce((q,H)=>H(q),D):D};m.push(b)}if(s&&y.options.validateSearch){const b=({search:v,next:S})=>{const M=S(v);try{return{...M,...Ho(y.options.validateSearch,M)??void 0}}catch{return M}};m.push(b)}return p.concat(m)},[])??[],d=({search:p})=>o.search?o.search===!0?p:Yn(o.search,p):{};r.push(d);const g=(p,y)=>{if(p>=r.length)return y;const m=r[p];return m({search:y,next:v=>g(p+1,v)})};return g(0,u)}const gp="Error preloading route! ☝️";class wm{constructor(o){if(this.init=c=>{this.originalIndex=c.originalIndex;const s=this.options,r=!s?.path&&!s?.id;this.parentRoute=this.options.getParentRoute?.(),r?this._path=_e:this.parentRoute||rn(!1);let d=r?_e:s?.path;d&&d!=="/"&&(d=Om(d));const g=s?.id||d;let p=r?_e:ji([this.parentRoute.id===_e?"":this.parentRoute.id,g]);d===_e&&(d="/"),p!==_e&&(p=ji(["/",p]));const y=p===_e?"/":ji([this.parentRoute.fullPath,d]);this._path=d,this._id=p,this._fullPath=y,this._to=y},this.addChildren=c=>this._addFileChildren(c),this._addFileChildren=c=>(Array.isArray(c)&&(this.children=c),typeof c=="object"&&c!==null&&(this.children=Object.values(c)),this),this._addFileTypes=()=>this,this.updateLoader=c=>(Object.assign(this.options,c),this),this.update=c=>(Object.assign(this.options,c),this),this.lazy=c=>(this.lazyFn=c,this),this.options=o||{},this.isRoot=!o?.getParentRoute,o?.id&&o?.path)throw new Error("Route cannot have both an 'id' and a 'path' option.")}get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}}class Sp extends wm{constructor(o){super(o)}}var at=fu();const su=Em(at);function Go(u){const o=u.errorComponent??$i;return K.jsx(_p,{getResetKey:u.getResetKey,onCatch:u.onCatch,children:({error:c,reset:s})=>c?at.createElement(o,{error:c,reset:s}):u.children})}class _p extends at.Component{constructor(){super(...arguments),this.state={error:null}}static getDerivedStateFromProps(o){return{resetKey:o.getResetKey()}}static getDerivedStateFromError(o){return{error:o}}reset(){this.setState({error:null})}componentDidUpdate(o,c){c.error&&c.resetKey!==this.state.resetKey&&this.reset()}componentDidCatch(o,c){this.props.onCatch&&this.props.onCatch(o,c)}render(){return this.props.children({error:this.state.resetKey!==this.props.getResetKey()?null:this.state.error,reset:()=>{this.reset()}})}}function $i({error:u}){const[o,c]=at.useState(!1);return K.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[K.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[K.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),K.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>c(s=>!s),children:o?"Hide Error":"Show Error"})]}),K.jsx("div",{style:{height:".25rem"}}),o?K.jsx("div",{children:K.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:u.message?K.jsx("code",{children:u.message}):null})}):null]})}function bp({children:u,fallback:o=null}){return Tp()?K.jsx(su.Fragment,{children:u}):K.jsx(su.Fragment,{children:o})}function Tp(){return su.useSyncExternalStore(Rp,()=>!0,()=>!1)}function Rp(){return()=>{}}var zo={exports:{}},Ao={},Oo={exports:{}},Co={};var mm;function Ep(){if(mm)return Co;mm=1;var u=fu();function o(v,S){return v===S&&(v!==0||1/v===1/S)||v!==v&&S!==S}var c=typeof Object.is=="function"?Object.is:o,s=u.useState,r=u.useEffect,d=u.useLayoutEffect,g=u.useDebugValue;function p(v,S){var M=S(),D=s({inst:{value:M,getSnapshot:S}}),q=D[0].inst,H=D[1];return d(function(){q.value=M,q.getSnapshot=S,y(q)&&H({inst:q})},[v,M,S]),r(function(){return y(q)&&H({inst:q}),v(function(){y(q)&&H({inst:q})})},[v]),g(M),M}function y(v){var S=v.getSnapshot;v=v.value;try{var M=S();return!c(v,M)}catch{return!0}}function m(v,S){return S()}var b=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?m:p;return Co.useSyncExternalStore=u.useSyncExternalStore!==void 0?u.useSyncExternalStore:b,Co}var ym;function Mp(){return ym||(ym=1,Oo.exports=Ep()),Oo.exports}var vm;function zp(){if(vm)return Ao;vm=1;var u=fu(),o=Mp();function c(m,b){return m===b&&(m!==0||1/m===1/b)||m!==m&&b!==b}var s=typeof Object.is=="function"?Object.is:c,r=o.useSyncExternalStore,d=u.useRef,g=u.useEffect,p=u.useMemo,y=u.useDebugValue;return Ao.useSyncExternalStoreWithSelector=function(m,b,v,S,M){var D=d(null);if(D.current===null){var q={hasValue:!1,value:null};D.current=q}else q=D.current;D=p(function(){function w(Y){if(!Z){if(Z=!0,X=Y,Y=S(Y),M!==void 0&&q.hasValue){var j=q.value;if(M(j,Y))return F=j}return F=Y}if(j=F,s(X,Y))return j;var G=S(Y);return M!==void 0&&M(j,G)?(X=Y,j):(X=Y,F=G)}var Z=!1,X,F,nt=v===void 0?null:v;return[function(){return w(b())},nt===null?void 0:function(){return w(nt())}]},[b,v,S,M]);var H=r(m,D[0],D[1]);return g(function(){q.hasValue=!0,q.value=H},[H]),y(H),H},Ao}var pm;function Ap(){return pm||(pm=1,zo.exports=zp()),zo.exports}var Op=Ap();function Cp(u,o=s=>s,c={}){const s=c.equal??xp;return Op.useSyncExternalStoreWithSelector(u.subscribe,()=>u.state,()=>u.state,o,s)}function xp(u,o){if(Object.is(u,o))return!0;if(typeof u!="object"||u===null||typeof o!="object"||o===null)return!1;if(u instanceof Map&&o instanceof Map){if(u.size!==o.size)return!1;for(const[s,r]of u)if(!o.has(s)||!Object.is(r,o.get(s)))return!1;return!0}if(u instanceof Set&&o instanceof Set){if(u.size!==o.size)return!1;for(const s of u)if(!o.has(s))return!1;return!0}if(u instanceof Date&&o instanceof Date)return u.getTime()===o.getTime();const c=gm(u);if(c.length!==gm(o).length)return!1;for(let s=0;s<c.length;s++)if(!Object.prototype.hasOwnProperty.call(o,c[s])||!Object.is(u[c[s]],o[c[s]]))return!1;return!0}function gm(u){return Object.keys(u).concat(Object.getOwnPropertySymbols(u))}const xo=at.createContext(null);function Ym(){return typeof document>"u"?xo:window.__TSR_ROUTER_CONTEXT__?window.__TSR_ROUTER_CONTEXT__:(window.__TSR_ROUTER_CONTEXT__=xo,xo)}function be(u){const o=at.useContext(Ym());return u?.warn,o}function oe(u){const o=be({warn:u?.router===void 0}),c=u?.router||o,s=at.useRef(void 0);return Cp(c.__store,r=>{if(u?.select){if(u.structuralSharing??c.options.defaultStructuralSharing){const d=Le(s.current,u.select(r));return s.current=d,d}return u.select(r)}return r})}const Pi=at.createContext(void 0),Dp=at.createContext(void 0);function Ve(u){const o=at.useContext(u.from?Dp:Pi);return oe({select:s=>{const r=s.matches.find(d=>u.from?u.from===d.routeId:d.id===o);if(rn(!((u.shouldThrow??!0)&&!r),`Could not find ${u.from?`an active match from "${u.from}"`:"a nearest match!"}`),r!==void 0)return u.select?u.select(r):r},structuralSharing:u.structuralSharing})}function Xo(u){return Ve({from:u.from,strict:u.strict,structuralSharing:u.structuralSharing,select:o=>u.select?u.select(o.loaderData):o.loaderData})}function Vo(u){const{select:o,...c}=u;return Ve({...c,select:s=>o?o(s.loaderDeps):s.loaderDeps})}function Qo(u){return Ve({from:u.from,shouldThrow:u.shouldThrow,structuralSharing:u.structuralSharing,strict:u.strict,select:o=>{const c=u.strict===!1?o.params:o._strictParams;return u.select?u.select(c):c}})}function Zo(u){return Ve({from:u.from,strict:u.strict,shouldThrow:u.shouldThrow,structuralSharing:u.structuralSharing,select:o=>u.select?u.select(o.search):o.search})}const Hi=typeof window<"u"?at.useLayoutEffect:at.useEffect;function Do(u){const o=at.useRef({value:u,prev:null}),c=o.current.value;return u!==c&&(o.current={value:u,prev:c}),o.current.prev}function Lp(u,o,c={},s={}){at.useEffect(()=>{if(!u.current||s.disabled||typeof IntersectionObserver!="function")return;const r=new IntersectionObserver(([d])=>{o(d)},c);return r.observe(u.current),()=>{r.disconnect()}},[o,c,s.disabled,u])}function Up(u){const o=at.useRef(null);return at.useImperativeHandle(u,()=>o.current,[]),o}function Ko(u){const o=be();return at.useCallback(c=>o.navigate({...c,from:c.from??u?.from}),[u?.from,o])}var Np=Mm();function Bp(u,o){const c=be(),[s,r]=at.useState(!1),d=at.useRef(!1),g=Up(o),{activeProps:p,inactiveProps:y,activeOptions:m,to:b,preload:v,preloadDelay:S,hashScrollIntoView:M,replace:D,startTransition:q,resetScroll:H,viewTransition:w,children:Z,target:X,disabled:F,style:nt,className:Y,onClick:j,onFocus:G,onMouseEnter:$,onMouseLeave:ot,onTouchStart:ct,ignoreBlocker:Rt,params:jt,search:qt,hash:Nt,state:x,mask:V,reloadDocument:tt,unsafeRelative:_t,from:Et,_fromLocation:R,...B}=u,Q=oe({select:zt=>zt.location.search,structuralSharing:!0}),J=u.from,et=at.useMemo(()=>({...u,from:J}),[c,Q,J,u._fromLocation,u.hash,u.to,u.search,u.params,u.state,u.mask,u.unsafeRelative]),lt=at.useMemo(()=>c.buildLocation({...et}),[c,et]),mt=at.useMemo(()=>{if(F)return;let zt=lt.maskedLocation?lt.maskedLocation.url:lt.url,gt=!1;return c.origin&&(zt.startsWith(c.origin)?zt=c.history.createHref(zt.replace(c.origin,""))||"/":gt=!0),{href:zt,external:gt}},[F,lt.maskedLocation,lt.url,c.origin,c.history]),Gt=at.useMemo(()=>{if(mt?.external)return mt.href;try{return new URL(b),b}catch{}},[b,mt]),Mt=u.reloadDocument||Gt?!1:v??c.options.defaultPreload,Qe=S??c.options.defaultPreloadDelay??0,dn=oe({select:zt=>{if(Gt)return!1;if(m?.exact){if(!Q0(zt.location.pathname,lt.pathname,c.basepath))return!1}else{const gt=Zi(zt.location.pathname,c.basepath),fe=Zi(lt.pathname,c.basepath);if(!(gt.startsWith(fe)&&(gt.length===fe.length||gt[fe.length]==="/")))return!1}return(m?.includeSearch??!0)&&!ol(zt.location.search,lt.search,{partial:!m?.exact,ignoreUndefined:!m?.explicitUndefined})?!1:m?.includeHash?zt.location.hash===lt.hash:!0}}),Ne=at.useCallback(()=>{c.preloadRoute({...et}).catch(zt=>{console.warn(zt),console.warn(gp)})},[c,et]),du=at.useCallback(zt=>{zt?.isIntersecting&&Ne()},[Ne]);Lp(g,du,Yp,{disabled:!!F||Mt!=="viewport"}),at.useEffect(()=>{d.current||!F&&Mt==="render"&&(Ne(),d.current=!0)},[F,Ne,Mt]);const Ze=zt=>{const gt=zt.currentTarget.getAttribute("target"),fe=X!==void 0?X:gt;if(!F&&!Gp(zt)&&!zt.defaultPrevented&&(!fe||fe==="_self")&&zt.button===0){zt.preventDefault(),Np.flushSync(()=>{r(!0)});const aa=c.subscribe("onResolved",()=>{aa(),r(!1)});c.navigate({...et,replace:D,resetScroll:H,hashScrollIntoView:M,startTransition:q,viewTransition:w,ignoreBlocker:Rt})}};if(Gt)return{...B,ref:g,href:Gt,...Z&&{children:Z},...X&&{target:X},...F&&{disabled:F},...nt&&{style:nt},...Y&&{className:Y},...j&&{onClick:j},...G&&{onFocus:G},...$&&{onMouseEnter:$},...ot&&{onMouseLeave:ot},...ct&&{onTouchStart:ct}};const ml=zt=>{F||Mt&&Ne()},la=ml,tc=zt=>{if(!(F||!Mt))if(!Qe)Ne();else{const gt=zt.target;if(tu.has(gt))return;const fe=setTimeout(()=>{tu.delete(gt),Ne()},Qe);tu.set(gt,fe)}},hu=zt=>{if(F||!Mt||!Qe)return;const gt=zt.target,fe=tu.get(gt);fe&&(clearTimeout(fe),tu.delete(gt))},hn=dn?Yn(p,{})??Hp:Lo,mn=dn?Lo:Yn(y,{})??Lo,yl=[Y,hn.className,mn.className].filter(Boolean).join(" "),mu=(nt||hn.style||mn.style)&&{...nt,...hn.style,...mn.style};return{...B,...hn,...mn,href:mt?.href,ref:g,onClick:eu([j,Ze]),onFocus:eu([G,ml]),onMouseEnter:eu([$,tc]),onMouseLeave:eu([ot,hu]),onTouchStart:eu([ct,la]),disabled:!!F,target:X,...mu&&{style:mu},...yl&&{className:yl},...F&&jp,...dn&&qp,...s&&wp}}const Lo={},Hp={className:"active"},jp={role:"link","aria-disabled":!0},qp={"data-status":"active","aria-current":"page"},wp={"data-transitioning":"transitioning"},tu=new WeakMap,Yp={rootMargin:"100px"},eu=u=>o=>{for(const c of u)if(c){if(o.defaultPrevented)return;c(o)}},Gm=at.forwardRef((u,o)=>{const{_asChild:c,...s}=u,{type:r,ref:d,...g}=Bp(s,o),p=typeof s.children=="function"?s.children({isActive:g["data-status"]==="active"}):s.children;return c===void 0&&delete g.disabled,at.createElement(c||"a",{...g,ref:d},p)});function Gp(u){return!!(u.metaKey||u.altKey||u.ctrlKey||u.shiftKey)}let Xp=class extends wm{constructor(o){super(o),this.useMatch=c=>Ve({select:c?.select,from:this.id,structuralSharing:c?.structuralSharing}),this.useRouteContext=c=>Ve({...c,from:this.id,select:s=>c?.select?c.select(s.context):s.context}),this.useSearch=c=>Zo({select:c?.select,structuralSharing:c?.structuralSharing,from:this.id}),this.useParams=c=>Qo({select:c?.select,structuralSharing:c?.structuralSharing,from:this.id}),this.useLoaderDeps=c=>Vo({...c,from:this.id}),this.useLoaderData=c=>Xo({...c,from:this.id}),this.useNavigate=()=>Ko({from:this.fullPath}),this.Link=su.forwardRef((c,s)=>K.jsx(Gm,{ref:s,from:this.fullPath,...c})),this.$$typeof=Symbol.for("react.memo")}};function Vp(u){return new Xp(u)}class Qp extends Sp{constructor(o){super(o),this.useMatch=c=>Ve({select:c?.select,from:this.id,structuralSharing:c?.structuralSharing}),this.useRouteContext=c=>Ve({...c,from:this.id,select:s=>c?.select?c.select(s.context):s.context}),this.useSearch=c=>Zo({select:c?.select,structuralSharing:c?.structuralSharing,from:this.id}),this.useParams=c=>Qo({select:c?.select,structuralSharing:c?.structuralSharing,from:this.id}),this.useLoaderDeps=c=>Vo({...c,from:this.id}),this.useLoaderData=c=>Xo({...c,from:this.id}),this.useNavigate=()=>Ko({from:this.fullPath}),this.Link=su.forwardRef((c,s)=>K.jsx(Gm,{ref:s,from:this.fullPath,...c})),this.$$typeof=Symbol.for("react.memo")}}function Zp(u){return new Qp(u)}function ou(u){return typeof u=="object"?new Sm(u,{silent:!0}).createRoute(u):new Sm(u,{silent:!0}).createRoute}class Sm{constructor(o,c){this.path=o,this.createRoute=s=>{this.silent;const r=Vp(s);return r.isRoot=!1,r},this.silent=c?.silent}}class _m{constructor(o){this.useMatch=c=>Ve({select:c?.select,from:this.options.id,structuralSharing:c?.structuralSharing}),this.useRouteContext=c=>Ve({from:this.options.id,select:s=>c?.select?c.select(s.context):s.context}),this.useSearch=c=>Zo({select:c?.select,structuralSharing:c?.structuralSharing,from:this.options.id}),this.useParams=c=>Qo({select:c?.select,structuralSharing:c?.structuralSharing,from:this.options.id}),this.useLoaderDeps=c=>Vo({...c,from:this.options.id}),this.useLoaderData=c=>Xo({...c,from:this.options.id}),this.useNavigate=()=>{const c=be();return Ko({from:c.routesById[this.options.id].fullPath})},this.options=o,this.$$typeof=Symbol.for("react.memo")}}function bm(u){return typeof u=="object"?new _m(u):o=>new _m({id:u,...o})}function Jo(u,o){let c,s,r,d;const g=()=>(c||(c=u().then(y=>{c=void 0,s=y[o]}).catch(y=>{if(r=y,C0(r)&&r instanceof Error&&typeof window<"u"&&typeof sessionStorage<"u"){const m=`tanstack_router_reload:${r.message}`;sessionStorage.getItem(m)||(sessionStorage.setItem(m,"1"),d=!0)}})),c),p=function(m){if(d)throw window.location.reload(),new Promise(()=>{});if(r)throw r;if(!s)throw g();return at.createElement(s,m)};return p.preload=g,p}function Kp(){const u=be(),o=at.useRef({router:u,mounted:!1}),[c,s]=at.useState(!1),{hasPendingMatches:r,isLoading:d}=oe({select:v=>({isLoading:v.isLoading,hasPendingMatches:v.matches.some(S=>S.status==="pending")}),structuralSharing:!0}),g=Do(d),p=d||c||r,y=Do(p),m=d||r,b=Do(m);return u.startTransition=v=>{s(!0),at.startTransition(()=>{v(),s(!1)})},at.useEffect(()=>{const v=u.history.subscribe(u.load),S=u.buildLocation({to:u.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return fl(u.latestLocation.href)!==fl(S.href)&&u.commitLocation({...S,replace:!0}),()=>{v()}},[u,u.history]),Hi(()=>{if(typeof window<"u"&&u.ssr||o.current.router===u&&o.current.mounted)return;o.current={router:u,mounted:!0},(async()=>{try{await u.load()}catch(S){console.error(S)}})()},[u]),Hi(()=>{g&&!d&&u.emit({type:"onLoad",...rl(u.state)})},[g,u,d]),Hi(()=>{b&&!m&&u.emit({type:"onBeforeRouteMount",...rl(u.state)})},[m,b,u]),Hi(()=>{if(y&&!p){const v=rl(u.state);u.emit({type:"onResolved",...v}),u.__store.setState(S=>({...S,status:"idle",resolvedLocation:S.location})),v.hrefChanged&&P0(u)}},[p,y,u]),null}function Jp(u){const o=oe({select:c=>`not-found-${c.location.pathname}-${c.status}`});return K.jsx(Go,{getResetKey:()=>o,onCatch:(c,s)=>{if(Ue(c))u.onCatch?.(c,s);else throw c},errorComponent:({error:c})=>{if(Ue(c))return u.fallback?.(c);throw c},children:u.children})}function kp(){return K.jsx("p",{children:"Not Found"})}function ta(u){return K.jsx(K.Fragment,{children:u.children})}function Xm(u,o,c){return o.options.notFoundComponent?K.jsx(o.options.notFoundComponent,{...c}):u.options.defaultNotFoundComponent?K.jsx(u.options.defaultNotFoundComponent,{...c}):K.jsx(kp,{})}function Fp({children:u}){const o=be();return o.isServer?K.jsx("script",{nonce:o.options.ssr?.nonce,className:"$tsr",dangerouslySetInnerHTML:{__html:u+';typeof $_TSR !== "undefined" && $_TSR.c()'}}):null}function Wp(){const u=be();if(!u.isScrollRestoring||!u.isServer||typeof u.options.scrollRestoration=="function"&&!u.options.scrollRestoration({location:u.latestLocation}))return null;const c=(u.options.getScrollRestorationKey||Bo)(u.latestLocation),s=c!==Bo(u.latestLocation)?c:void 0,r={storageKey:Ki,shouldScrollRestoration:!0};return s&&(r.key=s),K.jsx(Fp,{children:`(${Cm.toString()})(${JSON.stringify(r)})`})}const Vm=at.memo(function({matchId:o}){const c=be(),s=oe({select:w=>{const Z=w.matches.find(X=>X.id===o);return rn(Z),{routeId:Z.routeId,ssr:Z.ssr,_displayPending:Z._displayPending}},structuralSharing:!0}),r=c.routesById[s.routeId],d=r.options.pendingComponent??c.options.defaultPendingComponent,g=d?K.jsx(d,{}):null,p=r.options.errorComponent??c.options.defaultErrorComponent,y=r.options.onCatch??c.options.defaultOnCatch,m=r.isRoot?r.options.notFoundComponent??c.options.notFoundRoute?.options.component:r.options.notFoundComponent,b=s.ssr===!1||s.ssr==="data-only",v=(!r.isRoot||r.options.wrapInSuspense||b)&&(r.options.wrapInSuspense??d??(r.options.errorComponent?.preload||b))?at.Suspense:ta,S=p?Go:ta,M=m?Jp:ta,D=oe({select:w=>w.loadedAt}),q=oe({select:w=>{const Z=w.matches.findIndex(X=>X.id===o);return w.matches[Z-1]?.routeId}}),H=r.isRoot?r.options.shellComponent??ta:ta;return K.jsxs(H,{children:[K.jsx(Pi.Provider,{value:o,children:K.jsx(v,{fallback:g,children:K.jsx(S,{getResetKey:()=>D,errorComponent:p||$i,onCatch:(w,Z)=>{if(Ue(w))throw w;y?.(w,Z)},children:K.jsx(M,{fallback:w=>{if(!m||w.routeId&&w.routeId!==s.routeId||!w.routeId&&!r.isRoot)throw w;return at.createElement(m,w)},children:b||s._displayPending?K.jsx(bp,{fallback:g,children:K.jsx(Tm,{matchId:o})}):K.jsx(Tm,{matchId:o})})})})}),q===_e&&c.options.scrollRestoration?K.jsxs(K.Fragment,{children:[K.jsx($p,{}),K.jsx(Wp,{})]}):null]})});function $p(){const u=be(),o=at.useRef(void 0);return K.jsx("script",{suppressHydrationWarning:!0,ref:c=>{c&&(o.current===void 0||o.current.href!==u.latestLocation.href)&&(u.emit({type:"onRendered",...rl(u.state)}),o.current=u.latestLocation)}},u.latestLocation.state.__TSR_key)}const Tm=at.memo(function({matchId:o}){const c=be(),{match:s,key:r,routeId:d}=oe({select:y=>{const m=y.matches.find(D=>D.id===o),b=m.routeId,S=(c.routesById[b].options.remountDeps??c.options.defaultRemountDeps)?.({routeId:b,loaderDeps:m.loaderDeps,params:m._strictParams,search:m._strictSearch});return{key:S?JSON.stringify(S):void 0,routeId:b,match:{id:m.id,status:m.status,error:m.error,_forcePending:m._forcePending,_displayPending:m._displayPending}}},structuralSharing:!0}),g=c.routesById[d],p=at.useMemo(()=>{const y=g.options.component??c.options.defaultComponent;return y?K.jsx(y,{},r):K.jsx(Qm,{})},[r,g.options.component,c.options.defaultComponent]);if(s._displayPending)throw c.getMatch(s.id)?._nonReactive.displayPendingPromise;if(s._forcePending)throw c.getMatch(s.id)?._nonReactive.minPendingPromise;if(s.status==="pending"){const y=g.options.pendingMinMs??c.options.defaultPendingMinMs;if(y){const m=c.getMatch(s.id);if(m&&!m._nonReactive.minPendingPromise&&!c.isServer){const b=ea();m._nonReactive.minPendingPromise=b,setTimeout(()=>{b.resolve(),m._nonReactive.minPendingPromise=void 0},y)}}throw c.getMatch(s.id)?._nonReactive.loadPromise}if(s.status==="notFound")return rn(Ue(s.error)),Xm(c,g,s.error);if(s.status==="redirected")throw rn(qe(s.error)),c.getMatch(s.id)?._nonReactive.loadPromise;if(s.status==="error"){if(c.isServer){const y=(g.options.errorComponent??c.options.defaultErrorComponent)||$i;return K.jsx(y,{error:s.error,reset:void 0,info:{componentStack:""}})}throw s.error}return p}),Qm=at.memo(function(){const o=be(),c=at.useContext(Pi),s=oe({select:m=>m.matches.find(b=>b.id===c)?.routeId}),r=o.routesById[s],d=oe({select:m=>{const v=m.matches.find(S=>S.id===c);return rn(v),v.globalNotFound}}),g=oe({select:m=>{const b=m.matches,v=b.findIndex(S=>S.id===c);return b[v+1]?.id}}),p=o.options.defaultPendingComponent?K.jsx(o.options.defaultPendingComponent,{}):null;if(d)return Xm(o,r,void 0);if(!g)return null;const y=K.jsx(Vm,{matchId:g});return s===_e?K.jsx(at.Suspense,{fallback:p,children:y}):y});function Pp(){const u=be(),c=u.routesById[_e].options.pendingComponent??u.options.defaultPendingComponent,s=c?K.jsx(c,{}):null,r=u.isServer||typeof document<"u"&&u.ssr?ta:at.Suspense,d=K.jsxs(r,{fallback:s,children:[!u.isServer&&K.jsx(Kp,{}),K.jsx(Ip,{})]});return u.options.InnerWrap?K.jsx(u.options.InnerWrap,{children:d}):d}function Ip(){const u=be(),o=oe({select:r=>r.matches[0]?.id}),c=oe({select:r=>r.loadedAt}),s=o?K.jsx(Vm,{matchId:o}):null;return K.jsx(Pi.Provider,{value:o,children:u.options.disableGlobalCatchBoundary?s:K.jsx(Go,{getResetKey:()=>c,errorComponent:$i,onCatch:r=>{r.message||r.toString()},children:s})})}const tg=u=>new eg(u);class eg extends hp{constructor(o){super(o)}}typeof globalThis<"u"?(globalThis.createFileRoute=ou,globalThis.createLazyFileRoute=bm):typeof window<"u"&&(window.createFileRoute=ou,window.createLazyFileRoute=bm);function ng({router:u,children:o,...c}){Object.keys(c).length>0&&u.update({...u.options,...c,context:{...u.options.context,...c.context}});const s=Ym(),r=K.jsx(s.Provider,{value:u,children:o});return u.options.Wrap?K.jsx(u.options.Wrap,{children:r}):r}function lg({router:u,...o}){return K.jsx(ng,{router:u,...o,children:K.jsx(Pp,{})})}const ag="modulepreload",ug=function(u){return"/"+u},Rm={},ko=function(o,c,s){let r=Promise.resolve();if(c&&c.length>0){let y=function(m){return Promise.all(m.map(b=>Promise.resolve(b).then(v=>({status:"fulfilled",value:v}),v=>({status:"rejected",reason:v}))))};document.getElementsByTagName("link");const g=document.querySelector("meta[property=csp-nonce]"),p=g?.nonce||g?.getAttribute("nonce");r=y(c.map(m=>{if(m=ug(m),m in Rm)return;Rm[m]=!0;const b=m.endsWith(".css"),v=b?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${m}"]${v}`))return;const S=document.createElement("link");if(S.rel=b?"stylesheet":ag,b||(S.as="script"),S.crossOrigin="",S.href=m,p&&S.setAttribute("nonce",p),document.head.appendChild(S),b)return new Promise((M,D)=>{S.addEventListener("load",M),S.addEventListener("error",()=>D(new Error(`Unable to preload CSS for ${m}`)))})}))}function d(g){const p=new Event("vite:preloadError",{cancelable:!0});if(p.payload=g,window.dispatchEvent(p),!p.defaultPrevented)throw g}return r.then(g=>{for(const p of g||[])p.status==="rejected"&&d(p.reason);return o().catch(d)})},ig=function(){return null},ru=(function u(o){function c(r,d,g){var p,y={};if(Array.isArray(r))return r.concat(d);for(p in r)y[g?p.toLowerCase():p]=r[p];for(p in d){var m=g?p.toLowerCase():p,b=d[p];y[m]=m in y&&typeof b=="object"?c(y[m],b,m=="headers"):b}return y}function s(r,d,g,p,y){var m=typeof r!="string"?(d=r).url:r,b={config:d},v=c(o,d),S={};p=p||v.data,(v.transformRequest||[]).map(function(M){p=M(p,v.headers)||p}),v.auth&&(S.authorization=v.auth),p&&typeof p=="object"&&typeof p.append!="function"&&typeof p.text!="function"&&(p=JSON.stringify(p),S["content-type"]="application/json");try{S[v.xsrfHeaderName]=decodeURIComponent(document.cookie.match(RegExp("(^|; )"+v.xsrfCookieName+"=([^;]*)"))[2])}catch{}return v.baseURL&&(m=m.replace(/^(?!.*\/\/)\/?/,v.baseURL+"/")),v.params&&(m+=(~m.indexOf("?")?"&":"?")+(v.paramsSerializer?v.paramsSerializer(v.params):new URLSearchParams(v.params))),(v.fetch||fetch)(m,{method:(g||v.method||"get").toUpperCase(),body:p,headers:c(v.headers,S,!0),credentials:v.withCredentials?"include":y}).then(function(M){for(var D in M)typeof M[D]!="function"&&(b[D]=M[D]);return v.responseType=="stream"?(b.data=M.body,b):M[v.responseType||"text"]().then(function(q){b.data=q,b.data=JSON.parse(q)}).catch(Object).then(function(){return(v.validateStatus?v.validateStatus(M.status):M.ok)?b:Promise.reject(b)})})}return o=o||{},s.request=s,s.get=function(r,d){return s(r,d,"get")},s.delete=function(r,d){return s(r,d,"delete")},s.head=function(r,d){return s(r,d,"head")},s.options=function(r,d){return s(r,d,"options")},s.post=function(r,d,g){return s(r,g,"post",d)},s.put=function(r,d,g){return s(r,g,"put",d)},s.patch=function(r,d,g){return s(r,g,"patch",d)},s.all=Promise.all.bind(Promise),s.spread=function(r){return r.apply.bind(r,r)},s.CancelToken=typeof AbortController=="function"?AbortController:Object,s.defaults=o,s.create=u,s})();async function Eg(u){return(await ru.post("/api/init",u??{})).data}function Mg(u,o,c,s){const r=new AbortController;return fetch("/api/chat/stream",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({message:u}),signal:r.signal}).then(async d=>{if(!d.ok)throw new Error(`HTTP error! status: ${d.status}`);const g=d.body.getReader(),p=new TextDecoder;let y="",m="message";for(;;){const{done:b,value:v}=await g.read();if(b)break;y+=p.decode(v,{stream:!0});const S=y.split(`
|
|
10
|
-
`);y=S.pop()||"";for(const M of S)if(M.startsWith("event: "))m=M.slice(7).trim();else if(M.startsWith("data: "))try{const D=JSON.parse(M.slice(6));m==="step"?(console.log("[SSE] Received step event:",D),o(D)):m==="done"?(console.log("[SSE] Received done event:",D),c(D)):m==="error"&&(console.log("[SSE] Received error event:",D),s(D))}catch(D){console.error("Failed to parse SSE data:",M,D)}}}).catch(d=>{d.name!=="AbortError"&&s({type:"error",message:d.message})}),{close:()=>r.abort()}}async function cg(){return(await ru.get("/api/status")).data}async function zg(){return(await ru.post("/api/reset")).data}async function Ag(u){return(await ru.post("/api/screenshot",{device_id:null},{})).data}async function Og(u,o,c,s=0){return(await ru.post("/api/control/tap",{x:u,y:o,device_id:null,delay:s})).data}const Ii=Zp({component:og});function sg(){const[u,o]=at.useState("...");return at.useEffect(()=>{cg().then(c=>o(c.version)).catch(()=>o("unknown"))},[]),K.jsx("footer",{className:"mt-auto border-t border-gray-200 dark:border-gray-700 bg-white dark:bg-gray-800",children:K.jsxs("div",{className:"max-w-7xl mx-auto px-4 py-4 flex flex-col sm:flex-row items-center justify-between gap-2 text-sm text-gray-600 dark:text-gray-400",children:[K.jsxs("div",{className:"flex items-center gap-2",children:[K.jsxs("span",{children:["v",u]}),K.jsx("span",{className:"text-gray-300 dark:text-gray-600",children:"|"}),K.jsxs("a",{href:"https://github.com/suyiiyii/AutoGLM-GUI",target:"_blank",rel:"noopener noreferrer",className:"hover:text-blue-600 dark:hover:text-blue-400 transition-colors flex items-center gap-1",children:[K.jsx("svg",{className:"w-4 h-4",fill:"currentColor",viewBox:"0 0 24 24",children:K.jsx("path",{fillRule:"evenodd",d:"M12 2C6.477 2 2 6.484 2 12.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.868-.013-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.531 1.032 1.531 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.029-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0112 6.844c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.027 2.747-1.027.546 1.379.202 2.398.1 2.651.64.7 1.028 1.595 1.028 2.688 0 3.848-2.339 4.695-4.566 4.943.359.309.678.92.678 1.855 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.019 10.019 0 0022 12.017C22 6.484 17.522 2 12 2z",clipRule:"evenodd"})}),"GitHub"]})]}),K.jsxs("div",{className:"text-center",children:["欢迎"," ",K.jsx("a",{href:"https://github.com/suyiiyii/AutoGLM-GUI",target:"_blank",rel:"noopener noreferrer",className:"text-blue-600 dark:text-blue-400 hover:underline",children:"Star ⭐"})]})]})})}function og(){return K.jsxs("div",{className:"h-screen flex flex-col overflow-hidden",children:[K.jsx("div",{className:"flex-1 overflow-auto",children:K.jsx(Qm,{})}),K.jsx(sg,{}),K.jsx(ig,{position:"bottom-right"})]})}const fg=()=>ko(()=>import("./chat-
|
|
10
|
+
`);y=S.pop()||"";for(const M of S)if(M.startsWith("event: "))m=M.slice(7).trim();else if(M.startsWith("data: "))try{const D=JSON.parse(M.slice(6));m==="step"?(console.log("[SSE] Received step event:",D),o(D)):m==="done"?(console.log("[SSE] Received done event:",D),c(D)):m==="error"&&(console.log("[SSE] Received error event:",D),s(D))}catch(D){console.error("Failed to parse SSE data:",M,D)}}}).catch(d=>{d.name!=="AbortError"&&s({type:"error",message:d.message})}),{close:()=>r.abort()}}async function cg(){return(await ru.get("/api/status")).data}async function zg(){return(await ru.post("/api/reset")).data}async function Ag(u){return(await ru.post("/api/screenshot",{device_id:null},{})).data}async function Og(u,o,c,s=0){return(await ru.post("/api/control/tap",{x:u,y:o,device_id:null,delay:s})).data}const Ii=Zp({component:og});function sg(){const[u,o]=at.useState("...");return at.useEffect(()=>{cg().then(c=>o(c.version)).catch(()=>o("unknown"))},[]),K.jsx("footer",{className:"mt-auto border-t border-gray-200 dark:border-gray-700 bg-white dark:bg-gray-800",children:K.jsxs("div",{className:"max-w-7xl mx-auto px-4 py-4 flex flex-col sm:flex-row items-center justify-between gap-2 text-sm text-gray-600 dark:text-gray-400",children:[K.jsxs("div",{className:"flex items-center gap-2",children:[K.jsxs("span",{children:["v",u]}),K.jsx("span",{className:"text-gray-300 dark:text-gray-600",children:"|"}),K.jsxs("a",{href:"https://github.com/suyiiyii/AutoGLM-GUI",target:"_blank",rel:"noopener noreferrer",className:"hover:text-blue-600 dark:hover:text-blue-400 transition-colors flex items-center gap-1",children:[K.jsx("svg",{className:"w-4 h-4",fill:"currentColor",viewBox:"0 0 24 24",children:K.jsx("path",{fillRule:"evenodd",d:"M12 2C6.477 2 2 6.484 2 12.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.868-.013-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.531 1.032 1.531 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.029-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0112 6.844c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.027 2.747-1.027.546 1.379.202 2.398.1 2.651.64.7 1.028 1.595 1.028 2.688 0 3.848-2.339 4.695-4.566 4.943.359.309.678.92.678 1.855 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.019 10.019 0 0022 12.017C22 6.484 17.522 2 12 2z",clipRule:"evenodd"})}),"GitHub"]})]}),K.jsxs("div",{className:"text-center",children:["欢迎"," ",K.jsx("a",{href:"https://github.com/suyiiyii/AutoGLM-GUI",target:"_blank",rel:"noopener noreferrer",className:"text-blue-600 dark:text-blue-400 hover:underline",children:"Star ⭐"})]})]})})}function og(){return K.jsxs("div",{className:"h-screen flex flex-col overflow-hidden",children:[K.jsx("div",{className:"flex-1 overflow-auto",children:K.jsx(Qm,{})}),K.jsx(sg,{}),K.jsx(ig,{position:"bottom-right"})]})}const fg=()=>ko(()=>import("./chat-C6WtEfKW.js"),[]),rg=ou("/chat")({component:Jo(fg,"component")}),dg=()=>ko(()=>import("./about-C71SI8ZQ.js"),[]),hg=ou("/about")({component:Jo(dg,"component")}),mg=()=>ko(()=>import("./index-DUCan6m6.js"),[]),yg=ou("/")({component:Jo(mg,"component")}),vg=rg.update({id:"/chat",path:"/chat",getParentRoute:()=>Ii}),pg=hg.update({id:"/about",path:"/about",getParentRoute:()=>Ii}),gg=yg.update({id:"/",path:"/",getParentRoute:()=>Ii}),Sg={IndexRoute:gg,AboutRoute:pg,ChatRoute:vg},_g=Ii._addFileChildren(Sg)._addFileTypes(),bg=tg({routeTree:_g,defaultPreload:"intent",scrollRestoration:!0}),Uo=document.getElementById("app");Uo&&!Uo.innerHTML&&S0.createRoot(Uo).render(K.jsx(lg,{router:bg}));export{Em as a,Ag as b,cg as c,zg as d,Mg as e,Tg as g,Eg as i,K as j,at as r,Og as s,Ko as u};
|
AutoGLM_GUI/static/index.html
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
<meta charset="UTF-8" />
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
6
|
<title>AutoGLM GUI</title>
|
|
7
|
-
<script type="module" crossorigin src="/assets/index-
|
|
8
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
7
|
+
<script type="module" crossorigin src="/assets/index-RqglIZxV.js"></script>
|
|
8
|
+
<link rel="stylesheet" crossorigin href="/assets/index-Dd1xMRCa.css">
|
|
9
9
|
</head>
|
|
10
10
|
<body>
|
|
11
11
|
<div id="app"></div>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: autoglm-gui
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.1
|
|
4
4
|
Summary: Web GUI for AutoGLM Phone Agent - AI-powered Android automation
|
|
5
5
|
Project-URL: Homepage, https://github.com/suyiiyii/AutoGLM-GUI
|
|
6
6
|
Project-URL: Repository, https://github.com/suyiiyii/AutoGLM-GUI
|
|
@@ -4,12 +4,12 @@ AutoGLM_GUI/scrcpy_stream.py,sha256=A6SPQzCWPg2mqVUeLB5WGNnKitYAC7ozEwoojEbJE5o,
|
|
|
4
4
|
AutoGLM_GUI/server.py,sha256=w8y6T8HS0Jr0_R7siEMOZA-BZtr2BEjG74LPMCtYSMM,15642
|
|
5
5
|
AutoGLM_GUI/adb_plus/__init__.py,sha256=GVRx9G0QG_TxbEQc1FCx8eA2UCPvZeIC4kC3amoQzYk,180
|
|
6
6
|
AutoGLM_GUI/adb_plus/screenshot.py,sha256=TR0ortVd48LZ_evbBUkdnFmS1Us12hbpvUEwkNlUov8,3245
|
|
7
|
-
AutoGLM_GUI/static/index.html,sha256=
|
|
8
|
-
AutoGLM_GUI/static/assets/about-
|
|
9
|
-
AutoGLM_GUI/static/assets/chat-
|
|
10
|
-
AutoGLM_GUI/static/assets/index-
|
|
11
|
-
AutoGLM_GUI/static/assets/index-
|
|
12
|
-
AutoGLM_GUI/static/assets/index-
|
|
7
|
+
AutoGLM_GUI/static/index.html,sha256=O0YVCV2IG4HfG8mujiMyYoM3Xy8AS81mG8HgDRYwoek,395
|
|
8
|
+
AutoGLM_GUI/static/assets/about-C71SI8ZQ.js,sha256=FtXcoOlpgThgK84FdBIk4D6EVfD-yfXgDyio1j5Yso8,155
|
|
9
|
+
AutoGLM_GUI/static/assets/chat-C6WtEfKW.js,sha256=ZDUldDljK-YOdLDy5WW3reDbtBtOwa_BRJt_neqvML8,64443
|
|
10
|
+
AutoGLM_GUI/static/assets/index-DUCan6m6.js,sha256=TRJ_rPSpRs4U9R5uBdAZSYgNHjvnoFile_X9rGfe7qw,228
|
|
11
|
+
AutoGLM_GUI/static/assets/index-Dd1xMRCa.css,sha256=LrnOX3e1Mf_UoQjeUG5X6ZKifKtM0tXkGE5z_74iTeM,19524
|
|
12
|
+
AutoGLM_GUI/static/assets/index-RqglIZxV.js,sha256=U3N8V1ip0bPiV6HefdTWpwPD30HxZiljLjQk0iNKM3A,277301
|
|
13
13
|
phone_agent/__init__.py,sha256=6_AwafPDiJsEVstiMcfj-HbvpuxWTC2di6MVbQzHK6s,287
|
|
14
14
|
phone_agent/agent.py,sha256=mvw_nDupyqjCjS8WekI9v11G6IMAOdK8Tx1vbi80Gdk,8124
|
|
15
15
|
phone_agent/actions/__init__.py,sha256=YiAMeBMVhRfmDOf0hQ_1FEBSV5ApcnHPQ05gHjA_weQ,160
|
|
@@ -28,8 +28,8 @@ phone_agent/config/prompts_zh.py,sha256=vSWo5_qlWwNHVYUxrePBiL2FmJFnQG0Jpb1NsVsV
|
|
|
28
28
|
phone_agent/model/__init__.py,sha256=w6yFkla9VoUvX5vZkTWa7Z5Bg5_lfA9AajrLjZsdL24,149
|
|
29
29
|
phone_agent/model/client.py,sha256=6EM7BIdj9UvqPG9YmgwSGWVxensH5HDfCSAgHDeBgeo,5842
|
|
30
30
|
scrcpy-server-v3.3.3,sha256=fnAyO6fyWWSd1KzOl6xP77roECssbZHi575hP9U1S-A,90164
|
|
31
|
-
autoglm_gui-0.3.
|
|
32
|
-
autoglm_gui-0.3.
|
|
33
|
-
autoglm_gui-0.3.
|
|
34
|
-
autoglm_gui-0.3.
|
|
35
|
-
autoglm_gui-0.3.
|
|
31
|
+
autoglm_gui-0.3.1.dist-info/METADATA,sha256=r4Zq0KhWHMJBnPABPbzggjsHAQEw5RTOaP-cIP-JSKE,5503
|
|
32
|
+
autoglm_gui-0.3.1.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
33
|
+
autoglm_gui-0.3.1.dist-info/entry_points.txt,sha256=sz4rBO_kgrYmOiT0QnhCCv0b9QqBdWyCjugJgY8AEOI,58
|
|
34
|
+
autoglm_gui-0.3.1.dist-info/licenses/LICENSE,sha256=0IkSHDewdtmXnmYzTNq4U47EJYjTuhjQNpT0bZKuqWc,11342
|
|
35
|
+
autoglm_gui-0.3.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|