@perses-dev/logs-table-plugin 0.3.0-beta.0 → 0.3.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/__mf/js/LogsTable.9bbaab2b.js +7 -0
  2. package/__mf/js/async/2220.0a7924e7.js +22 -0
  3. package/__mf/js/async/4602.b1cacfe1.js +2 -0
  4. package/__mf/js/async/4602.b1cacfe1.js.LICENSE.txt +1 -0
  5. package/__mf/js/async/4693.125f8180.js +2 -0
  6. package/__mf/js/async/6090.90cb2be2.js +3 -0
  7. package/__mf/js/async/{5369.0aa8782c.js → 6661.3acf3c47.js} +5 -5
  8. package/__mf/js/async/__federation_expose_LogsTable.cbd5bfda.js +1 -0
  9. package/__mf/js/async/lib-router.12781636.js +2 -0
  10. package/__mf/js/async/{lib-router.47d4d226.js.LICENSE.txt → lib-router.12781636.js.LICENSE.txt} +3 -3
  11. package/__mf/js/main.142c22e6.js +7 -0
  12. package/mf-manifest.json +20 -23
  13. package/mf-stats.json +20 -23
  14. package/package.json +7 -6
  15. package/__mf/js/LogsTable.471dc288.js +0 -7
  16. package/__mf/js/async/1159.9276d668.js +0 -22
  17. package/__mf/js/async/1519.40e06bfc.js +0 -1
  18. package/__mf/js/async/1805.ab82c1ef.js +0 -1
  19. package/__mf/js/async/20.b04ebcaa.js +0 -3
  20. package/__mf/js/async/256.20a94089.js +0 -1
  21. package/__mf/js/async/540.d4d0de7f.js +0 -2
  22. package/__mf/js/async/540.d4d0de7f.js.LICENSE.txt +0 -1
  23. package/__mf/js/async/7452.7c6fe277.js +0 -2
  24. package/__mf/js/async/__federation_expose_LogsTable.b2bc5b29.js +0 -1
  25. package/__mf/js/async/lib-router.47d4d226.js +0 -2
  26. package/__mf/js/main.04ea2a20.js +0 -7
  27. /package/__mf/css/async/{5369.85c2cbf6.css → 6661.85c2cbf6.css} +0 -0
  28. /package/__mf/js/async/{1159.9276d668.js.LICENSE.txt → 2220.0a7924e7.js.LICENSE.txt} +0 -0
  29. /package/__mf/js/async/{7452.7c6fe277.js.LICENSE.txt → 4693.125f8180.js.LICENSE.txt} +0 -0
  30. /package/__mf/js/async/{5369.0aa8782c.js.LICENSE.txt → 6661.3acf3c47.js.LICENSE.txt} +0 -0
@@ -1 +0,0 @@
1
- "use strict";(self["chunk_LogsTable "]=self["chunk_LogsTable "]||[]).push([["256"],{42579(e,a,n){n.r(a),n.d(a,{ONE_WEEK_IN_MS:()=>u,querySpecSchema:()=>K,annotationDisplaySchema:()=>R,resolvePanelRef:()=>x,variableTextSchema:()=>ei,isTimeSeriesValueTuple:()=>j,isValidQueryPluginType:()=>_,ONE_YEAR_IN_MS:()=>p,DURATION_REGEX:()=>d,otlpcommonv1:()=>t,panelSpecSchema:()=>F,ONE_HOUR_IN_MS:()=>o,getPanelKeyFromRef:()=>Y,ONE_MINUTE_IN_MS:()=>6e4,otlptracev1:()=>s,panelDefinitionSchema:()=>G,buildVariableListSchema:()=>en,datasourceSpecSchema:()=>P,buildVariableSpecSchema:()=>el,isAbsoluteTimeRange:()=>y,ONE_SECOND_IN_MS:()=>1e3,displaySchema:()=>z,variableTextSpecSchema:()=>et,isValidTraceId:()=>T,buildVariableListSpecSchema:()=>ee,isRelativeTimeRange:()=>f,formatDuration:()=>S,ONE_DAY_IN_MS:()=>r,buildPanelEditorSchema:()=>X,pluginSchema:()=>A,buildPanelSpecSchema:()=>B,variableDefinitionSchema:()=>eo,otlpresourcev1:()=>i,parseDurationString:()=>c,variableListSpecSchema:()=>Z,createPanelRef:()=>v,getSuggestedStepMs:()=>g,variableDisplaySchema:()=>J,DEFAULT_ALL_VALUE:()=>"$__all",convertTimeToDuration:()=>h,annotationDefinitionSchema:()=>w,intervalToDuration:()=>M,isDurationString:()=>m,buildVariableDefinitionSchema:()=>er,annotationSpecSchema:()=>$,buildDatasourceSpecSchema:()=>U,panelDisplaySpec:()=>q,variableListSchema:()=>ea,panelEditorSchema:()=>W,roundStepInterval:()=>b,durationValidationSchema:()=>C,toAbsoluteTimeRange:()=>k,buildAnnotationSpecSchema:()=>N,buildAnnotationDefinitionSchema:()=>L,buildPanelDefinitionSchema:()=>H,linkSchema:()=>Q,variableSpecSchema:()=>es});var t={};n.r(t);var i={};n.r(i);var s={};n.r(s),n.d(s,{StatusCodeError:()=>O,StatusCodeOk:()=>E,StatusCodeUnset:()=>D});var l=n(94461);let o=36e5,r=864e5,u=6048e5,p=31536e6,d=/^(?:(\d+)y)?(?:(\d+)w)?(?:(\d+)d)?(?:(\d+)h)?(?:(\d+)m)?(?:(\d+)s)?(?:(\d+)ms)?$/;function c(e){let a=d.exec(e);if(null===a)throw Error(`Invalid duration string '${e}'`);return{years:parseInt(a[1]??"0"),months:0,weeks:parseInt(a[2]??"0"),days:parseInt(a[3]??"0"),hours:parseInt(a[4]??"0"),minutes:parseInt(a[5]??"0"),seconds:parseInt(a[6]??"0")+parseInt(a[7]??"0")/1e3}}function m(e){return""!==e&&d.test(e)}function S(e){let a=[];if(e.years&&a.push(`${e.years}y`),e.weeks&&a.push(`${e.weeks}w`),e.days&&a.push(`${e.days}d`),e.hours&&a.push(`${e.hours}h`),e.minutes&&a.push(`${e.minutes}m`),e.seconds){let n=Math.trunc(e.seconds);n&&a.push(`${n}s`);let t=Math.round((e.seconds-n)*1e3);t&&a.push(`${t}ms`)}return a.join("")}function M(e){return h(e.end.valueOf()-e.start.valueOf())}function h(e){let a=Math.trunc(e/p);a>0&&(e-=a*p);let n=Math.trunc(e/u);n>0&&(e-=n*u);let t=Math.trunc(e/r);t>0&&(e-=t*r);let i=Math.trunc(e/o);i>0&&(e-=i*o);let s=Math.trunc(e/6e4);return s>0&&(e-=6e4*s),{years:a,months:0,weeks:n,days:t,hours:i,minutes:s,seconds:e/1e3}}function f(e){return void 0!==e.pastDuration}function y(e){return void 0!==e.start&&void 0!==e.end}function k(e){let a=e.end??new Date;return{start:(0,l.sub)(a,c(e.pastDuration)),end:a}}let I=[{maxMs:15,roundedStepMs:10,display:"0.01s"},{maxMs:35,roundedStepMs:20,display:"0.02s"},{maxMs:75,roundedStepMs:50,display:"0.05s"},{maxMs:150,roundedStepMs:100,display:"0.1s"},{maxMs:350,roundedStepMs:200,display:"0.2s"},{maxMs:750,roundedStepMs:500,display:"0.5s"},{maxMs:1500,roundedStepMs:1e3,display:"1s"},{maxMs:3500,roundedStepMs:2e3,display:"2s"},{maxMs:7500,roundedStepMs:5e3,display:"5s"},{maxMs:12500,roundedStepMs:1e4,display:"10s"},{maxMs:17500,roundedStepMs:15e3,display:"15s"},{maxMs:25e3,roundedStepMs:2e4,display:"20s"},{maxMs:45e3,roundedStepMs:3e4,display:"30s"},{maxMs:9e4,roundedStepMs:6e4,display:"1m"},{maxMs:21e4,roundedStepMs:12e4,display:"2m"},{maxMs:45e4,roundedStepMs:3e5,display:"5m"},{maxMs:75e4,roundedStepMs:6e5,display:"10m"},{maxMs:75e4,roundedStepMs:9e5,display:"15m"},{maxMs:15e5,roundedStepMs:12e5,display:"20m"},{maxMs:27e5,roundedStepMs:18e5,display:"30m"},{maxMs:54e5,roundedStepMs:36e5,display:"1h"},{maxMs:9e6,roundedStepMs:72e5,display:"2h"},{maxMs:162e5,roundedStepMs:108e5,display:"3h"},{maxMs:324e5,roundedStepMs:216e5,display:"6h"},{maxMs:864e5,roundedStepMs:432e5,display:"12h"},{maxMs:6048e5,roundedStepMs:864e5,display:"1d"},{maxMs:18144e5,roundedStepMs:6048e5,display:"1w"},{maxMs:36288e5,roundedStepMs:2592e6,display:"30d"},{maxMs:63072e6,roundedStepMs:31536e6,display:"1y"}];function b(e){for(let{maxMs:a,roundedStepMs:n}of I)if(e<a)return n;return 15e3}function g(e,a){return b(Math.floor((e.end.valueOf()-e.start.valueOf())/a))}function x(e,a){let n=Y(a),t=e.panels[n];if(void 0===t)throw Error(`Could not resolve panels reference ${a.$ref}`);return t}function Y(e){return e.$ref.substring(14)}function v(e){return{$ref:`#/spec/panels/${e}`}}function _(e){return["TimeSeriesQuery","TraceQuery","ProfileQuery"].includes(e)}function j(e){return 2===e.length}function T(e){return/^[0-9a-fA-F]+$/.test(e)}let D="STATUS_CODE_UNSET",E="STATUS_CODE_OK",O="STATUS_CODE_ERROR";var V=n(59140);let A=V.Ik({kind:V.Yj().min(1,"Required"),spec:V.g1(V.Yj(),V.bz())}),R=V.Ik({name:V.Yj(),description:V.Yj().optional(),hidden:V.zM().optional(),color:V.Yj().optional()});function N(e){return V.Ik({display:R,plugin:e})}let $=V.Ik({display:R,plugin:A}),w=V.Ik({kind:V.eu("Annotation"),spec:$});function L(e){return V.Ik({kind:V.eu("Annotation"),spec:N(e)})}let z=V.Ik({name:V.Yj().optional(),description:V.Yj().optional()}),P=V.Ik({display:z.optional(),default:V.zM(),plugin:A});function U(e){return V.Ik({display:z.optional(),default:V.zM(),plugin:e})}let C=V.Yj().min(1,"Required").regex(d,"Must be a valid duration string"),q=V.Ik({name:V.Yj().optional(),description:V.Yj().optional()}),K=V.Ik({kind:V.Yj().min(1),spec:V.Ik({name:V.Yj().optional(),plugin:A})}),Q=V.Ik({name:V.Yj().optional(),url:V.Yj().min(1),tooltip:V.Yj().optional(),renderVariables:V.zM().optional(),targetBlank:V.zM().optional()}),F=V.Ik({display:q.optional(),plugin:A,queries:V.YO(K).optional(),links:V.YO(Q).optional()});function B(e){return V.Ik({display:q.optional(),plugin:e,queries:V.YO(K).optional(),links:V.YO(Q).optional()})}let G=V.Ik({kind:V.eu("Panel"),spec:F});function H(e){return V.Ik({kind:V.eu("Panel"),spec:B(e)})}let W=V.Ik({groupId:V.ai(),panelDefinition:G});function X(e){return V.Ik({groupId:V.ai(),panelDefinition:H(e)})}let J=V.Ik({name:V.Yj().optional(),description:V.Yj().optional(),hidden:V.zM().optional()}),Z=V.Ik({name:V.Yj().min(1),display:J.optional(),defaultValue:V.Yj().or(V.YO(V.Yj())).optional(),allowAllValue:V.zM(),allowMultiple:V.zM(),customAllValue:V.Yj().optional(),capturingRegexp:V.Yj().optional(),sort:V.k5(["none","alphabetical-asc","alphabetical-desc","numerical-asc","numerical-desc","alphabetical-ci-asc","alphabetical-ci-desc"]).optional(),plugin:A});function ee(e){return V.Ik({name:V.Yj().min(1),display:J.optional(),defaultValue:V.Yj().or(V.YO(V.Yj())).optional(),allowAllValue:V.zM(),allowMultiple:V.zM(),customAllValue:V.Yj().optional(),capturingRegexp:V.Yj().optional(),sort:V.k5(["none","alphabetical-asc","alphabetical-desc","numerical-asc","numerical-desc","alphabetical-ci-asc","alphabetical-ci-desc"]).optional(),plugin:e})}let ea=V.Ik({kind:V.eu("ListVariable"),spec:Z});function en(e){return V.Ik({kind:V.eu("ListVariable"),spec:ee(e)})}let et=V.Ik({name:V.Yj().min(1),display:J.optional(),value:V.Yj(),constant:V.zM().optional()}),ei=V.Ik({kind:V.eu("TextVariable"),spec:et}),es=V.gM("kind",[ei,ea]);function el(e){return V.KC([ei,en(e)])}let eo=es;function er(e){return V.gM("kind",[V.Ik({kind:V.eu("ListVariable"),spec:ee(e)}),V.Ik({kind:V.eu("TextVariable"),spec:et})])}}}]);
@@ -1,2 +0,0 @@
1
- /*! For license information please see 540.d4d0de7f.js.LICENSE.txt */
2
- "use strict";(self["chunk_LogsTable "]=self["chunk_LogsTable "]||[]).push([["540"],{39098(e,t,n){n.d(t,{A:()=>x});var i=n(70451),r=n(11750),a=n(46477),l=n(3725),o=n(81023),s=n(77308),c=n(56599),u=n(23434),f=n(72052),p=n(48927),h=n(32494),d=n(29424),m=n(29009),g=n(46733);function _(e){return(0,g.Ay)("MuiCollapse",e)}(0,m.A)("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);var b=n(62540);let y=(0,s.A)("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.orientation],"entered"===n.state&&t.entered,"exited"===n.state&&!n.in&&"0px"===n.collapsedSize&&t.hidden]}})((0,u.A)(({theme:e})=>({height:0,overflow:"hidden",transition:e.transitions.create("height"),variants:[{props:{orientation:"horizontal"},style:{height:"auto",width:0,transition:e.transitions.create("width")}},{props:{state:"entered"},style:{height:"auto",overflow:"visible"}},{props:{state:"entered",orientation:"horizontal"},style:{width:"auto"}},{props:({ownerState:e})=>"exited"===e.state&&!e.in&&"0px"===e.collapsedSize,style:{visibility:"hidden"}}]}))),T=(0,s.A)("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),A=(0,s.A)("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),S=i.forwardRef(function(e,t){let n=(0,f.b)({props:e,name:"MuiCollapse"}),{addEndListener:s,children:u,className:m,collapsedSize:g="0px",component:S,easing:x,in:E,onEnter:w,onEntered:R,onEntering:v,onExit:k,onExited:N,onExiting:I,orientation:C="vertical",style:O,timeout:L=p.p0.standard,TransitionComponent:D=a.Ay,...M}=n,H={...n,orientation:C,collapsedSize:g},U=(e=>{let{orientation:t,classes:n}=e,i={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return(0,o.A)(i,_,n)})(H),F=(0,c.A)(),P=(0,l.A)(),z=i.useRef(null),B=i.useRef(),G="number"==typeof g?`${g}px`:g,j="horizontal"===C,W=j?"width":"height",V=i.useRef(null),$=(0,d.A)(t,V),Y=e=>t=>{if(e){let n=V.current;void 0===t?e(n):e(n,t)}},q=()=>z.current?z.current[j?"clientWidth":"clientHeight"]:0,X=Y((e,t)=>{z.current&&j&&(z.current.style.position="absolute"),e.style[W]=G,w&&w(e,t)}),Z=Y((e,t)=>{let n=q();z.current&&j&&(z.current.style.position="");let{duration:i,easing:r}=(0,h.c)({style:O,timeout:L,easing:x},{mode:"enter"});if("auto"===L){let t=F.transitions.getAutoHeightDuration(n);e.style.transitionDuration=`${t}ms`,B.current=t}else e.style.transitionDuration="string"==typeof i?i:`${i}ms`;e.style[W]=`${n}px`,e.style.transitionTimingFunction=r,v&&v(e,t)}),K=Y((e,t)=>{e.style[W]="auto",R&&R(e,t)}),J=Y(e=>{e.style[W]=`${q()}px`,k&&k(e)}),Q=Y(N),ee=Y(e=>{let t=q(),{duration:n,easing:i}=(0,h.c)({style:O,timeout:L,easing:x},{mode:"exit"});if("auto"===L){let n=F.transitions.getAutoHeightDuration(t);e.style.transitionDuration=`${n}ms`,B.current=n}else e.style.transitionDuration="string"==typeof n?n:`${n}ms`;e.style[W]=G,e.style.transitionTimingFunction=i,I&&I(e)});return(0,b.jsx)(D,{in:E,onEnter:X,onEntered:K,onEntering:Z,onExit:J,onExited:Q,onExiting:ee,addEndListener:e=>{"auto"===L&&P.start(B.current||0,e),s&&s(V.current,e)},nodeRef:V,timeout:"auto"===L?null:L,...M,children:(e,{ownerState:t,...n})=>(0,b.jsx)(y,{as:S,className:(0,r.A)(U.root,m,{entered:U.entered,exited:!E&&"0px"===G&&U.hidden}[e]),style:{[j?"minWidth":"minHeight"]:G,...O},ref:$,ownerState:{...H,state:e},...n,children:(0,b.jsx)(T,{ownerState:{...H,state:e},className:U.wrapper,ref:z,children:(0,b.jsx)(A,{ownerState:{...H,state:e},className:U.wrapperInner,children:u})})})})});S&&(S.muiSupportAuto=!0);let x=S},33213(e,t,n){n.d(t,{A:()=>h});var i=n(70451),r=n(11750),a=n(81023),l=n(77308),o=n(23434),s=n(72052),c=n(25717),u=n(67214),f=n(62540);let p=(0,l.A)("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})((0,o.A)(({theme:e})=>({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),h=i.forwardRef(function(e,t){let n=(0,s.b)({props:e,name:"MuiListItemIcon"}),{className:l,...o}=n,h=i.useContext(u.A),d={...n,alignItems:h.alignItems},m=(e=>{let{alignItems:t,classes:n}=e;return(0,a.A)({root:["root","flex-start"===t&&"alignItemsFlexStart"]},c.f,n)})(d);return(0,f.jsx)(p,{className:(0,r.A)(m.root,l),ownerState:d,ref:t,...o})})},3908(e,t,n){var i;t.default=void 0,t.default=(0,((i=n(1448))&&i.__esModule?i:{default:i}).default)("M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z","Check")},77241(e,t,n){var i;t.default=void 0,t.default=(0,((i=n(1448))&&i.__esModule?i:{default:i}).default)("M5,3H7V5H5V10A2,2 0 0,1 3,12A2,2 0 0,1 5,14V19H7V21H5C3.93,20.73 3,20.1 3,19V15A2,2 0 0,0 1,13H0V11H1A2,2 0 0,0 3,9V5A2,2 0 0,1 5,3M19,3A2,2 0 0,1 21,5V9A2,2 0 0,0 23,11H24V13H23A2,2 0 0,0 21,15V19A2,2 0 0,1 19,21H17V19H19V14A2,2 0 0,1 21,12A2,2 0 0,1 19,10V5H17V3H19M12,15A1,1 0 0,1 13,16A1,1 0 0,1 12,17A1,1 0 0,1 11,16A1,1 0 0,1 12,15M8,15A1,1 0 0,1 9,16A1,1 0 0,1 8,17A1,1 0 0,1 7,16A1,1 0 0,1 8,15M16,15A1,1 0 0,1 17,16A1,1 0 0,1 16,17A1,1 0 0,1 15,16A1,1 0 0,1 16,15Z","CodeJson")},50172(e,t,n){var i;t.default=void 0,t.default=(0,((i=n(1448))&&i.__esModule?i:{default:i}).default)("M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z","ContentCopy")},54042(e,t,n){var i;t.default=void 0,t.default=(0,((i=n(1448))&&i.__esModule?i:{default:i}).default)("M5,20H19V18H5M19,9H15V3H9V9H5L12,16L19,9Z","Download")},12309(e,t,n){var i;t.default=void 0,t.default=(0,((i=n(1448))&&i.__esModule?i:{default:i}).default)("M14,17H17L19,13V7H13V13H16M6,17H9L11,13V7H5V13H8L6,17Z","FormatQuoteClose")},80242(e,t,n){n.d(t,{v:()=>c});var i,r,a,l,o,s=function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e};(i=r||(r={}))[i.EOS=0]="EOS",i[i.Text=1]="Text",i[i.Incomplete=2]="Incomplete",i[i.ESC=3]="ESC",i[i.Unknown=4]="Unknown",i[i.SGR=5]="SGR",i[i.OSCURL=6]="OSCURL";class c{constructor(){this.VERSION="6.0.6",this.setup_palettes(),this._use_classes=!1,this.bold=!1,this.faint=!1,this.italic=!1,this.underline=!1,this.fg=this.bg=null,this._buffer="",this._url_allowlist={http:1,https:1},this._escape_html=!0,this.boldStyle="font-weight:bold",this.faintStyle="opacity:0.7",this.italicStyle="font-style:italic",this.underlineStyle="text-decoration:underline"}set use_classes(e){this._use_classes=e}get use_classes(){return this._use_classes}set url_allowlist(e){this._url_allowlist=e}get url_allowlist(){return this._url_allowlist}set escape_html(e){this._escape_html=e}get escape_html(){return this._escape_html}set boldStyle(e){this._boldStyle=e}get boldStyle(){return this._boldStyle}set faintStyle(e){this._faintStyle=e}get faintStyle(){return this._faintStyle}set italicStyle(e){this._italicStyle=e}get italicStyle(){return this._italicStyle}set underlineStyle(e){this._underlineStyle=e}get underlineStyle(){return this._underlineStyle}setup_palettes(){this.ansi_colors=[[{rgb:[0,0,0],class_name:"ansi-black"},{rgb:[187,0,0],class_name:"ansi-red"},{rgb:[0,187,0],class_name:"ansi-green"},{rgb:[187,187,0],class_name:"ansi-yellow"},{rgb:[0,0,187],class_name:"ansi-blue"},{rgb:[187,0,187],class_name:"ansi-magenta"},{rgb:[0,187,187],class_name:"ansi-cyan"},{rgb:[255,255,255],class_name:"ansi-white"}],[{rgb:[85,85,85],class_name:"ansi-bright-black"},{rgb:[255,85,85],class_name:"ansi-bright-red"},{rgb:[0,255,0],class_name:"ansi-bright-green"},{rgb:[255,255,85],class_name:"ansi-bright-yellow"},{rgb:[85,85,255],class_name:"ansi-bright-blue"},{rgb:[255,85,255],class_name:"ansi-bright-magenta"},{rgb:[85,255,255],class_name:"ansi-bright-cyan"},{rgb:[255,255,255],class_name:"ansi-bright-white"}]],this.palette_256=[],this.ansi_colors.forEach(e=>{e.forEach(e=>{this.palette_256.push(e)})});let e=[0,95,135,175,215,255];for(let t=0;t<6;++t)for(let n=0;n<6;++n)for(let i=0;i<6;++i){let r={rgb:[e[t],e[n],e[i]],class_name:"truecolor"};this.palette_256.push(r)}let t=8;for(let e=0;e<24;++e,t+=10){let e={rgb:[t,t,t],class_name:"truecolor"};this.palette_256.push(e)}}escape_txt_for_html(e){return this._escape_html?e.replace(/[&<>"']/gm,e=>"&"===e?"&amp;":"<"===e?"&lt;":">"===e?"&gt;":'"'===e?"&quot;":"'"===e?"&#x27;":void 0):e}append_buffer(e){var t=this._buffer+e;this._buffer=t}get_next_packet(){var e={kind:r.EOS,text:"",url:""},t=this._buffer.length;if(0==t)return e;var n=this._buffer.indexOf("\x1b");if(-1==n)return e.kind=r.Text,e.text=this._buffer,this._buffer="",e;if(n>0)return e.kind=r.Text,e.text=this._buffer.slice(0,n),this._buffer=this._buffer.slice(n),e;if(0==n){if(t<3)return e.kind=r.Incomplete,e;var i=this._buffer.charAt(1);if("["!=i&&"]"!=i&&"("!=i)return e.kind=r.ESC,e.text=this._buffer.slice(0,1),this._buffer=this._buffer.slice(1),e;if("["==i){this._csi_regex||(this._csi_regex=u(a||(a=s(["\n ^ # beginning of line\n #\n # First attempt\n (?: # legal sequence\n \x1b[ # CSI\n ([<-?]?) # private-mode char\n ([d;]*) # any digits or semicolons\n ([ -/]? # an intermediate modifier\n [@-~]) # the command\n )\n | # alternate (second attempt)\n (?: # illegal sequence\n \x1b[ # CSI\n [ -~]* # anything legal\n ([\0-\x1f:]) # anything illegal\n )\n "],["\n ^ # beginning of line\n #\n # First attempt\n (?: # legal sequence\n \\x1b\\[ # CSI\n ([\\x3c-\\x3f]?) # private-mode char\n ([\\d;]*) # any digits or semicolons\n ([\\x20-\\x2f]? # an intermediate modifier\n [\\x40-\\x7e]) # the command\n )\n | # alternate (second attempt)\n (?: # illegal sequence\n \\x1b\\[ # CSI\n [\\x20-\\x7e]* # anything legal\n ([\\x00-\\x1f:]) # anything illegal\n )\n "]))));let t=this._buffer.match(this._csi_regex);if(null===t)return e.kind=r.Incomplete,e;if(t[4])return e.kind=r.ESC,e.text=this._buffer.slice(0,1),this._buffer=this._buffer.slice(1),e;""!=t[1]||"m"!=t[3]?e.kind=r.Unknown:e.kind=r.SGR,e.text=t[2];var c=t[0].length;return this._buffer=this._buffer.slice(c),e}if("]"==i){if(t<4)return e.kind=r.Incomplete,e;if("8"!=this._buffer.charAt(2)||";"!=this._buffer.charAt(3))return e.kind=r.ESC,e.text=this._buffer.slice(0,1),this._buffer=this._buffer.slice(1),e;this._osc_st||(this._osc_st=RegExp((l||(l=s(["\n (?: # legal sequence\n (\x1b\\) # ESC | # alternate\n (\x07) # BEL (what xterm did)\n )\n | # alternate (second attempt)\n ( # illegal sequence\n [\0-\x06] # anything illegal\n | # alternate\n [\b-\x1a] # anything illegal\n | # alternate\n [\x1c-\x1f] # anything illegal\n )\n "],["\n (?: # legal sequence\n (\\x1b\\\\) # ESC \\\n | # alternate\n (\\x07) # BEL (what xterm did)\n )\n | # alternate (second attempt)\n ( # illegal sequence\n [\\x00-\\x06] # anything illegal\n | # alternate\n [\\x08-\\x1a] # anything illegal\n | # alternate\n [\\x1c-\\x1f] # anything illegal\n )\n "]))).raw[0].replace(/^\s+|\s+\n|\s*#[\s\S]*?\n|\n/gm,""),"g")),this._osc_st.lastIndex=0;{let t=this._osc_st.exec(this._buffer);if(null===t)return e.kind=r.Incomplete,e;if(t[3])return e.kind=r.ESC,e.text=this._buffer.slice(0,1),this._buffer=this._buffer.slice(1),e}{let t=this._osc_st.exec(this._buffer);if(null===t)return e.kind=r.Incomplete,e;if(t[3])return e.kind=r.ESC,e.text=this._buffer.slice(0,1),this._buffer=this._buffer.slice(1),e}this._osc_regex||(this._osc_regex=u(o||(o=s(["\n ^ # beginning of line\n #\n \x1b]8; # OSC Hyperlink\n [ -:<-~]* # params (excluding ;)\n ; # end of params\n ([!-~]{0,512}) # URL capture\n (?: # ST\n (?:\x1b\\) # ESC | # alternate\n (?:\x07) # BEL (what xterm did)\n )\n ([ -~]+) # TEXT capture\n \x1b]8;; # OSC Hyperlink End\n (?: # ST\n (?:\x1b\\) # ESC | # alternate\n (?:\x07) # BEL (what xterm did)\n )\n "],["\n ^ # beginning of line\n #\n \\x1b\\]8; # OSC Hyperlink\n [\\x20-\\x3a\\x3c-\\x7e]* # params (excluding ;)\n ; # end of params\n ([\\x21-\\x7e]{0,512}) # URL capture\n (?: # ST\n (?:\\x1b\\\\) # ESC \\\n | # alternate\n (?:\\x07) # BEL (what xterm did)\n )\n ([\\x20-\\x7e]+) # TEXT capture\n \\x1b\\]8;; # OSC Hyperlink End\n (?: # ST\n (?:\\x1b\\\\) # ESC \\\n | # alternate\n (?:\\x07) # BEL (what xterm did)\n )\n "]))));let n=this._buffer.match(this._osc_regex);if(null===n)return e.kind=r.ESC,e.text=this._buffer.slice(0,1),this._buffer=this._buffer.slice(1),e;e.kind=r.OSCURL,e.url=n[1],e.text=n[2];var c=n[0].length;return this._buffer=this._buffer.slice(c),e}if("("==i)return e.kind=r.Unknown,this._buffer=this._buffer.slice(3),e}}ansi_to_html(e){this.append_buffer(e);for(var t=[];;){var n=this.get_next_packet();if(n.kind==r.EOS||n.kind==r.Incomplete)break;n.kind!=r.ESC&&n.kind!=r.Unknown&&(n.kind==r.Text?t.push(this.transform_to_html(this.with_state(n))):n.kind==r.SGR?this.process_ansi(n):n.kind==r.OSCURL&&t.push(this.process_hyperlink(n)))}return t.join("")}with_state(e){return{bold:this.bold,faint:this.faint,italic:this.italic,underline:this.underline,fg:this.fg,bg:this.bg,text:e.text}}process_ansi(e){let t=e.text.split(";");for(;t.length>0;){let e=parseInt(t.shift(),10);if(isNaN(e)||0===e)this.fg=null,this.bg=null,this.bold=!1,this.faint=!1,this.italic=!1,this.underline=!1;else if(1===e)this.bold=!0;else if(2===e)this.faint=!0;else if(3===e)this.italic=!0;else if(4===e)this.underline=!0;else if(21===e)this.bold=!1;else if(22===e)this.faint=!1,this.bold=!1;else if(23===e)this.italic=!1;else if(24===e)this.underline=!1;else if(39===e)this.fg=null;else if(49===e)this.bg=null;else if(e>=30&&e<38)this.fg=this.ansi_colors[0][e-30];else if(e>=40&&e<48)this.bg=this.ansi_colors[0][e-40];else if(e>=90&&e<98)this.fg=this.ansi_colors[1][e-90];else if(e>=100&&e<108)this.bg=this.ansi_colors[1][e-100];else if((38===e||48===e)&&t.length>0){let n=38===e,i=t.shift();if("5"===i&&t.length>0){let e=parseInt(t.shift(),10);e>=0&&e<=255&&(n?this.fg=this.palette_256[e]:this.bg=this.palette_256[e])}if("2"===i&&t.length>2){let e=parseInt(t.shift(),10),i=parseInt(t.shift(),10),r=parseInt(t.shift(),10);if(e>=0&&e<=255&&i>=0&&i<=255&&r>=0&&r<=255){let t={rgb:[e,i,r],class_name:"truecolor"};n?this.fg=t:this.bg=t}}}}}transform_to_html(e){let t=e.text;if(0===t.length||(t=this.escape_txt_for_html(t),!e.bold&&!e.italic&&!e.faint&&!e.underline&&null===e.fg&&null===e.bg))return t;let n=[],i=[],r=e.fg,a=e.bg;e.bold&&n.push(this._boldStyle),e.faint&&n.push(this._faintStyle),e.italic&&n.push(this._italicStyle),e.underline&&n.push(this._underlineStyle),this._use_classes?(r&&("truecolor"!==r.class_name?i.push(`${r.class_name}-fg`):n.push(`color:rgb(${r.rgb.join(",")})`)),a&&("truecolor"!==a.class_name?i.push(`${a.class_name}-bg`):n.push(`background-color:rgb(${a.rgb.join(",")})`))):(r&&n.push(`color:rgb(${r.rgb.join(",")})`),a&&n.push(`background-color:rgb(${a.rgb})`));let l="",o="";return i.length&&(l=` class="${i.join(" ")}"`),n.length&&(o=` style="${n.join(";")}"`),`<span${o}${l}>${t}</span>`}process_hyperlink(e){let t=e.url.split(":");return t.length<1||!this._url_allowlist[t[0]]?"":`<a href="${this.escape_txt_for_html(e.url)}">${this.escape_txt_for_html(e.text)}</a>`}}function u(e){return new RegExp(e.raw[0].replace(/^\s+|\s+\n|\s*#[\s\S]*?\n|\n/gm,""))}},91264(e,t,n){n.d(t,{A:()=>eo});let{entries:i,setPrototypeOf:r,isFrozen:a,getPrototypeOf:l,getOwnPropertyDescriptor:o}=Object,{freeze:s,seal:c,create:u}=Object,{apply:f,construct:p}="u">typeof Reflect&&Reflect;s||(s=function(e){return e}),c||(c=function(e){return e}),f||(f=function(e,t){for(var n=arguments.length,i=Array(n>2?n-2:0),r=2;r<n;r++)i[r-2]=arguments[r];return e.apply(t,i)}),p||(p=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return new e(...n)});let h=L(Array.prototype.forEach),d=L(Array.prototype.lastIndexOf),m=L(Array.prototype.pop),g=L(Array.prototype.push),_=L(Array.prototype.splice),b=Array.isArray,y=L(String.prototype.toLowerCase),T=L(String.prototype.toString),A=L(String.prototype.match),S=L(String.prototype.replace),x=L(String.prototype.indexOf),E=L(String.prototype.trim),w=L(Number.prototype.toString),R=L(Boolean.prototype.toString),v="u"<typeof BigInt?null:L(BigInt.prototype.toString),k="u"<typeof Symbol?null:L(Symbol.prototype.toString),N=L(Object.prototype.hasOwnProperty),I=L(Object.prototype.toString),C=L(RegExp.prototype.test),O=(ei=TypeError,function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return p(ei,t)});function L(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,i=Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return f(e,t,i)}}function D(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:y;if(r&&r(e,null),!b(t))return e;let i=t.length;for(;i--;){let r=t[i];if("string"==typeof r){let e=n(r);e!==r&&(a(t)||(t[i]=e),r=e)}e[r]=!0}return e}function M(e){let t=u(null);for(let[n,r]of i(e))N(e,n)&&(b(r)?t[n]=function(e){for(let t=0;t<e.length;t++)N(e,t)||(e[t]=null);return e}(r):r&&"object"==typeof r&&r.constructor===Object?t[n]=M(r):t[n]=r);return t}function H(e,t){for(;null!==e;){let n=o(e,t);if(n){if(n.get)return L(n.get);if("function"==typeof n.value)return L(n.value)}e=l(e)}return function(){return null}}let U=s(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),F=s(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),P=s(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),z=s(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),B=s(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),G=s(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),j=s(["#text"]),W=s(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),V=s(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),$=s(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Y=s(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),q=c(/\{\{[\w\W]*|[\w\W]*\}\}/gm),X=c(/<%[\w\W]*|[\w\W]*%>/gm),Z=c(/\$\{[\w\W]*/gm),K=c(/^data-[\-\w.\u00B7-\uFFFF]+$/),J=c(/^aria-[\-\w]+$/),Q=c(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ee=c(/^(?:\w+script|data):/i),et=c(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),en=c(/^html$/i);var ei,er=Object.freeze({__proto__:null,ARIA_ATTR:J,ATTR_WHITESPACE:et,CUSTOM_ELEMENT:c(/^[a-z][.\w]*(-[.\w]+)+$/i),DATA_ATTR:K,DOCTYPE_NAME:en,ERB_EXPR:X,IS_ALLOWED_URI:Q,IS_SCRIPT_OR_DATA:ee,MUSTACHE_EXPR:q,TMPLIT_EXPR:Z});let ea=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null,i="data-tt-policy-suffix";t&&t.hasAttribute(i)&&(n=t.getAttribute(i));let r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+r+" could not be created."),null}},el=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};var eo=function e(){let t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"u"<typeof window?null:window,r=t=>e(t);if(r.version="3.4.2",r.removed=[],!n||!n.document||9!==n.document.nodeType||!n.Element)return r.isSupported=!1,r;let{document:a}=n,l=a,o=l.currentScript,{DocumentFragment:c,HTMLTemplateElement:f,Node:p,Element:L,NodeFilter:q,NamedNodeMap:X=n.NamedNodeMap||n.MozNamedAttrMap,HTMLFormElement:Z,DOMParser:K,trustedTypes:J}=n,ee=L.prototype,et=H(ee,"cloneNode"),ei=H(ee,"remove"),eo=H(ee,"nextSibling"),es=H(ee,"childNodes"),ec=H(ee,"parentNode");if("function"==typeof f){let e=a.createElement("template");e.content&&e.content.ownerDocument&&(a=e.content.ownerDocument)}let eu="",{implementation:ef,createNodeIterator:ep,createDocumentFragment:eh,getElementsByTagName:ed}=a,{importNode:em}=l,eg=el();r.isSupported="function"==typeof i&&"function"==typeof ec&&ef&&void 0!==ef.createHTMLDocument;let{MUSTACHE_EXPR:e_,ERB_EXPR:eb,TMPLIT_EXPR:ey,DATA_ATTR:eT,ARIA_ATTR:eA,IS_SCRIPT_OR_DATA:eS,ATTR_WHITESPACE:ex,CUSTOM_ELEMENT:eE}=er,{IS_ALLOWED_URI:ew}=er,eR=null,ev=D({},[...U,...F,...P,...B,...j]),ek=null,eN=D({},[...W,...V,...$,...Y]),eI=Object.seal(u(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),eC=null,eO=null,eL=Object.seal(u(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),eD=!0,eM=!0,eH=!1,eU=!0,eF=!1,eP=!0,ez=!1,eB=!1,eG=!1,ej=!1,eW=!1,eV=!1,e$=!0,eY=!1,eq="user-content-",eX=!0,eZ=!1,eK={},eJ=null,eQ=D({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),e0=null,e1=D({},["audio","video","img","source","image","track"]),e2=null,e5=D({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),e3="http://www.w3.org/1998/Math/MathML",e7="http://www.w3.org/2000/svg",e9="http://www.w3.org/1999/xhtml",e8=e9,e4=!1,e6=null,te=D({},[e3,e7,e9],T),tt=D({},["mi","mo","mn","ms","mtext"]),tn=D({},["annotation-xml"]),ti=D({},["title","style","font","a","script"]),tr=null,ta=["application/xhtml+xml","text/html"],tl=null,to=null,ts=a.createElement("form"),tc=function(e){return e instanceof RegExp||e instanceof Function},tu=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(to&&to===e)return;e&&"object"==typeof e||(e={}),e=M(e),tl="application/xhtml+xml"===(tr=-1===ta.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE)?T:y,eR=N(e,"ALLOWED_TAGS")&&b(e.ALLOWED_TAGS)?D({},e.ALLOWED_TAGS,tl):ev,ek=N(e,"ALLOWED_ATTR")&&b(e.ALLOWED_ATTR)?D({},e.ALLOWED_ATTR,tl):eN,e6=N(e,"ALLOWED_NAMESPACES")&&b(e.ALLOWED_NAMESPACES)?D({},e.ALLOWED_NAMESPACES,T):te,e2=N(e,"ADD_URI_SAFE_ATTR")&&b(e.ADD_URI_SAFE_ATTR)?D(M(e5),e.ADD_URI_SAFE_ATTR,tl):e5,e0=N(e,"ADD_DATA_URI_TAGS")&&b(e.ADD_DATA_URI_TAGS)?D(M(e1),e.ADD_DATA_URI_TAGS,tl):e1,eJ=N(e,"FORBID_CONTENTS")&&b(e.FORBID_CONTENTS)?D({},e.FORBID_CONTENTS,tl):eQ,eC=N(e,"FORBID_TAGS")&&b(e.FORBID_TAGS)?D({},e.FORBID_TAGS,tl):M({}),eO=N(e,"FORBID_ATTR")&&b(e.FORBID_ATTR)?D({},e.FORBID_ATTR,tl):M({}),eK=!!N(e,"USE_PROFILES")&&(e.USE_PROFILES&&"object"==typeof e.USE_PROFILES?M(e.USE_PROFILES):e.USE_PROFILES),eD=!1!==e.ALLOW_ARIA_ATTR,eM=!1!==e.ALLOW_DATA_ATTR,eH=e.ALLOW_UNKNOWN_PROTOCOLS||!1,eU=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,eF=e.SAFE_FOR_TEMPLATES||!1,eP=!1!==e.SAFE_FOR_XML,ez=e.WHOLE_DOCUMENT||!1,ej=e.RETURN_DOM||!1,eW=e.RETURN_DOM_FRAGMENT||!1,eV=e.RETURN_TRUSTED_TYPE||!1,eG=e.FORCE_BODY||!1,e$=!1!==e.SANITIZE_DOM,eY=e.SANITIZE_NAMED_PROPS||!1,eX=!1!==e.KEEP_CONTENT,eZ=e.IN_PLACE||!1,ew=!function(e){try{return C(e,""),!0}catch(e){return!1}}(e.ALLOWED_URI_REGEXP)?Q:e.ALLOWED_URI_REGEXP,e8="string"==typeof e.NAMESPACE?e.NAMESPACE:e9,tt=N(e,"MATHML_TEXT_INTEGRATION_POINTS")&&e.MATHML_TEXT_INTEGRATION_POINTS&&"object"==typeof e.MATHML_TEXT_INTEGRATION_POINTS?M(e.MATHML_TEXT_INTEGRATION_POINTS):D({},["mi","mo","mn","ms","mtext"]),tn=N(e,"HTML_INTEGRATION_POINTS")&&e.HTML_INTEGRATION_POINTS&&"object"==typeof e.HTML_INTEGRATION_POINTS?M(e.HTML_INTEGRATION_POINTS):D({},["annotation-xml"]);let n=N(e,"CUSTOM_ELEMENT_HANDLING")&&e.CUSTOM_ELEMENT_HANDLING&&"object"==typeof e.CUSTOM_ELEMENT_HANDLING?M(e.CUSTOM_ELEMENT_HANDLING):u(null);if(eI=u(null),N(n,"tagNameCheck")&&tc(n.tagNameCheck)&&(eI.tagNameCheck=n.tagNameCheck),N(n,"attributeNameCheck")&&tc(n.attributeNameCheck)&&(eI.attributeNameCheck=n.attributeNameCheck),N(n,"allowCustomizedBuiltInElements")&&"boolean"==typeof n.allowCustomizedBuiltInElements&&(eI.allowCustomizedBuiltInElements=n.allowCustomizedBuiltInElements),eF&&(eM=!1),eW&&(ej=!0),eK&&(eR=D({},j),ek=u(null),!0===eK.html&&(D(eR,U),D(ek,W)),!0===eK.svg&&(D(eR,F),D(ek,V),D(ek,Y)),!0===eK.svgFilters&&(D(eR,P),D(ek,V),D(ek,Y)),!0===eK.mathMl&&(D(eR,B),D(ek,$),D(ek,Y))),eL.tagCheck=null,eL.attributeCheck=null,N(e,"ADD_TAGS")&&("function"==typeof e.ADD_TAGS?eL.tagCheck=e.ADD_TAGS:b(e.ADD_TAGS)&&(eR===ev&&(eR=M(eR)),D(eR,e.ADD_TAGS,tl))),N(e,"ADD_ATTR")&&("function"==typeof e.ADD_ATTR?eL.attributeCheck=e.ADD_ATTR:b(e.ADD_ATTR)&&(ek===eN&&(ek=M(ek)),D(ek,e.ADD_ATTR,tl))),N(e,"ADD_URI_SAFE_ATTR")&&b(e.ADD_URI_SAFE_ATTR)&&D(e2,e.ADD_URI_SAFE_ATTR,tl),N(e,"FORBID_CONTENTS")&&b(e.FORBID_CONTENTS)&&(eJ===eQ&&(eJ=M(eJ)),D(eJ,e.FORBID_CONTENTS,tl)),N(e,"ADD_FORBID_CONTENTS")&&b(e.ADD_FORBID_CONTENTS)&&(eJ===eQ&&(eJ=M(eJ)),D(eJ,e.ADD_FORBID_CONTENTS,tl)),eX&&(eR["#text"]=!0),ez&&D(eR,["html","head","body"]),eR.table&&(D(eR,["tbody"]),delete eC.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw O('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw O('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');eu=(t=e.TRUSTED_TYPES_POLICY).createHTML("")}else void 0===t&&(t=ea(J,o)),null!==t&&"string"==typeof eu&&(eu=t.createHTML(""));s&&s(e),to=e},tf=D({},[...F,...P,...z]),tp=D({},[...B,...G]),th=function(e){let t=ec(e);t&&t.tagName||(t={namespaceURI:e8,tagName:"template"});let n=y(e.tagName),i=y(t.tagName);return!!e6[e.namespaceURI]&&(e.namespaceURI===e7?t.namespaceURI===e9?"svg"===n:t.namespaceURI===e3?"svg"===n&&("annotation-xml"===i||tt[i]):!!tf[n]:e.namespaceURI===e3?t.namespaceURI===e9?"math"===n:t.namespaceURI===e7?"math"===n&&tn[i]:!!tp[n]:e.namespaceURI===e9?(t.namespaceURI!==e7||!!tn[i])&&(t.namespaceURI!==e3||!!tt[i])&&!tp[n]&&(ti[n]||!tf[n]):"application/xhtml+xml"===tr&&!!e6[e.namespaceURI])},td=function(e){g(r.removed,{element:e});try{ec(e).removeChild(e)}catch(t){ei(e)}},tm=function(e,t){try{g(r.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){g(r.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(ej||eW)try{td(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},tg=function(e){let n=null,i=null;if(eG)e="<remove></remove>"+e;else{let t=A(e,/^[\r\n\t ]+/);i=t&&t[0]}"application/xhtml+xml"===tr&&e8===e9&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");let r=t?t.createHTML(e):e;if(e8===e9)try{n=new K().parseFromString(r,tr)}catch(e){}if(!n||!n.documentElement){n=ef.createDocument(e8,"template",null);try{n.documentElement.innerHTML=e4?eu:r}catch(e){}}let l=n.body||n.documentElement;return(e&&i&&l.insertBefore(a.createTextNode(i),l.childNodes[0]||null),e8===e9)?ed.call(n,ez?"html":"body")[0]:ez?n.documentElement:l},t_=function(e){return ep.call(e.ownerDocument||e,e,q.SHOW_ELEMENT|q.SHOW_COMMENT|q.SHOW_TEXT|q.SHOW_PROCESSING_INSTRUCTION|q.SHOW_CDATA_SECTION,null)},tb=function(e){return e instanceof Z&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof X)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},ty=function(e){return"function"==typeof p&&e instanceof p};function tT(e,t,n){h(e,e=>{e.call(r,t,n,to)})}let tA=function(e){let t=null;if(tT(eg.beforeSanitizeElements,e,null),tb(e))return td(e),!0;let n=tl(e.nodeName);if(tT(eg.uponSanitizeElement,e,{tagName:n,allowedTags:eR}),eP&&e.hasChildNodes()&&!ty(e.firstElementChild)&&C(/<[/\w!]/g,e.innerHTML)&&C(/<[/\w!]/g,e.textContent)||eP&&e.namespaceURI===e9&&"style"===n&&ty(e.firstElementChild)||7===e.nodeType||eP&&8===e.nodeType&&C(/<[/\w]/g,e.data))return td(e),!0;if(eC[n]||!(eL.tagCheck instanceof Function&&eL.tagCheck(n))&&!eR[n]){if(!eC[n]&&tE(n)&&(eI.tagNameCheck instanceof RegExp&&C(eI.tagNameCheck,n)||eI.tagNameCheck instanceof Function&&eI.tagNameCheck(n)))return!1;if(eX&&!eJ[n]){let t=ec(e)||e.parentNode,n=es(e)||e.childNodes;if(n&&t){let i=n.length;for(let r=i-1;r>=0;--r){let i=et(n[r],!0);t.insertBefore(i,eo(e))}}}return td(e),!0}return e instanceof L&&!th(e)||("noscript"===n||"noembed"===n||"noframes"===n)&&C(/<\/no(script|embed|frames)/i,e.innerHTML)?(td(e),!0):(eF&&3===e.nodeType&&(t=e.textContent,h([e_,eb,ey],e=>{t=S(t,e," ")}),e.textContent!==t&&(g(r.removed,{element:e.cloneNode()}),e.textContent=t)),tT(eg.afterSanitizeElements,e,null),!1)},tS=function(e,t,n){if(eO[t]||e$&&("id"===t||"name"===t)&&(n in a||n in ts))return!1;let i=ek[t]||eL.attributeCheck instanceof Function&&eL.attributeCheck(t,e);if(eM&&!eO[t]&&C(eT,t));else if(eD&&C(eA,t));else if(!i||eO[t]){if(!(tE(e)&&(eI.tagNameCheck instanceof RegExp&&C(eI.tagNameCheck,e)||eI.tagNameCheck instanceof Function&&eI.tagNameCheck(e))&&(eI.attributeNameCheck instanceof RegExp&&C(eI.attributeNameCheck,t)||eI.attributeNameCheck instanceof Function&&eI.attributeNameCheck(t,e))||"is"===t&&eI.allowCustomizedBuiltInElements&&(eI.tagNameCheck instanceof RegExp&&C(eI.tagNameCheck,n)||eI.tagNameCheck instanceof Function&&eI.tagNameCheck(n))))return!1}else if(e2[t]);else if(C(ew,S(n,ex,"")));else if(("src"===t||"xlink:href"===t||"href"===t)&&"script"!==e&&0===x(n,"data:")&&e0[e]);else if(eH&&!C(eS,S(n,ex,"")));else if(n)return!1;return!0},tx=D({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),tE=function(e){return!tx[y(e)]&&C(eE,e)},tw=function(e){tT(eg.beforeSanitizeAttributes,e,null);let{attributes:n}=e;if(!n||tb(e))return;let i={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ek,forceKeepAttr:void 0},a=n.length;for(;a--;){let{name:l,namespaceURI:o,value:s}=n[a],c=tl(l),u="value"===l?s:E(s);if(i.attrName=c,i.attrValue=u,i.keepAttr=!0,i.forceKeepAttr=void 0,tT(eg.uponSanitizeAttribute,e,i),u=i.attrValue,eY&&("id"===c||"name"===c)&&0!==x(u,eq)&&(tm(l,e),u=eq+u),eP&&C(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,u)||"attributename"===c&&A(u,"href")){tm(l,e);continue}if(i.forceKeepAttr)continue;if(!i.keepAttr||!eU&&C(/\/>/i,u)){tm(l,e);continue}eF&&h([e_,eb,ey],e=>{u=S(u,e," ")});let f=tl(e.nodeName);if(!tS(f,c,u)){tm(l,e);continue}if(t&&"object"==typeof J&&"function"==typeof J.getAttributeType)if(o);else switch(J.getAttributeType(f,c)){case"TrustedHTML":u=t.createHTML(u);break;case"TrustedScriptURL":u=t.createScriptURL(u)}if(u!==s)try{o?e.setAttributeNS(o,l,u):e.setAttribute(l,u),tb(e)?td(e):m(r.removed)}catch(t){tm(l,e)}}tT(eg.afterSanitizeAttributes,e,null)},tR=function(e){let t=null,n=t_(e);for(tT(eg.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)tT(eg.uponSanitizeShadowNode,t,null),tA(t),tw(t),t.content instanceof c&&tR(t.content);tT(eg.afterSanitizeShadowDOM,e,null)};return r.sanitize=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=null,a=null,o=null,s=null;if((e4=!e)&&(e="\x3c!--\x3e"),"string"!=typeof e&&!ty(e)&&"string"!=typeof(e=function(e){switch(typeof e){case"string":return e;case"number":return w(e);case"boolean":return R(e);case"bigint":return v?v(e):"0";case"symbol":return k?k(e):"Symbol()";case"undefined":default:return I(e);case"function":case"object":{if(null===e)return I(e);let t=H(e,"toString");if("function"==typeof t){let n=t(e);return"string"==typeof n?n:I(n)}return I(e)}}}(e)))throw O("dirty is not a string, aborting");if(!r.isSupported)return e;if(eB||tu(n),r.removed=[],"string"==typeof e&&(eZ=!1),eZ){let t=e.nodeName;if("string"==typeof t){let e=tl(t);if(!eR[e]||eC[e])throw O("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof p)1===(a=(i=tg("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===a.nodeName||"HTML"===a.nodeName?i=a:i.appendChild(a);else{if(!ej&&!eF&&!ez&&-1===e.indexOf("<"))return t&&eV?t.createHTML(e):e;if(!(i=tg(e)))return ej?null:eV?eu:""}i&&eG&&td(i.firstChild);let u=t_(eZ?e:i);for(;o=u.nextNode();)tA(o),tw(o),o.content instanceof c&&tR(o.content);if(eZ)return e;if(ej){if(eF){i.normalize();let e=i.innerHTML;h([e_,eb,ey],t=>{e=S(e,t," ")}),i.innerHTML=e}if(eW)for(s=eh.call(i.ownerDocument);i.firstChild;)s.appendChild(i.firstChild);else s=i;return(ek.shadowroot||ek.shadowrootmode)&&(s=em.call(l,s,!0)),s}let f=ez?i.outerHTML:i.innerHTML;return ez&&eR["!doctype"]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&C(en,i.ownerDocument.doctype.name)&&(f="<!DOCTYPE "+i.ownerDocument.doctype.name+">\n"+f),eF&&h([e_,eb,ey],e=>{f=S(f,e," ")}),t&&eV?t.createHTML(f):f},r.setConfig=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};tu(e),eB=!0},r.clearConfig=function(){to=null,eB=!1},r.isValidAttribute=function(e,t,n){return to||tu({}),tS(tl(e),tl(t),n)},r.addHook=function(e,t){"function"==typeof t&&g(eg[e],t)},r.removeHook=function(e,t){if(void 0!==t){let n=d(eg[e],t);return -1===n?void 0:_(eg[e],n,1)[0]}return m(eg[e])},r.removeHooks=function(e){eg[e]=[]},r.removeAllHooks=function(){eg=el()},r}()}}]);
@@ -1 +0,0 @@
1
- /*! @license DOMPurify 3.4.2 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.2/LICENSE */
@@ -1,2 +0,0 @@
1
- /*! For license information please see 7452.7c6fe277.js.LICENSE.txt */
2
- "use strict";(self["chunk_LogsTable "]=self["chunk_LogsTable "]||[]).push([["7452"],{68150(e,r,t){t.d(r,{A:()=>m});var n=t(70451),o=t(11750),a=t(81023),u=t(77308),l=t(72052),i=t(11502),s=t(29009),c=t(46733);function f(e){return(0,c.Ay)("MuiCard",e)}(0,s.A)("MuiCard",["root"]);var d=t(62540);let p=(0,u.A)(i.A,{name:"MuiCard",slot:"Root",overridesResolver:(e,r)=>r.root})({overflow:"hidden"}),m=n.forwardRef(function(e,r){let t=(0,l.b)({props:e,name:"MuiCard"}),{className:n,raised:u=!1,...i}=t,s={...t,raised:u},c=(e=>{let{classes:r}=e;return(0,a.A)({root:["root"]},f,r)})(s);return(0,d.jsx)(p,{className:(0,o.A)(c.root,n),elevation:u?8:void 0,ref:r,ownerState:s,...i})})},45158(e,r,t){t.d(r,{A:()=>h});var n=t(70451),o=t(11750),a=t(81023),u=t(77308),l=t(72052),i=t(29009),s=t(46733);function c(e){return(0,s.Ay)("MuiFormGroup",e)}(0,i.A)("MuiFormGroup",["root","row","error"]);var f=t(42872),d=t(87842),p=t(62540);let m=(0,u.A)("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,r)=>{let{ownerState:t}=e;return[r.root,t.row&&r.row]}})({display:"flex",flexDirection:"column",flexWrap:"wrap",variants:[{props:{row:!0},style:{flexDirection:"row"}}]}),h=n.forwardRef(function(e,r){let t=(0,l.b)({props:e,name:"MuiFormGroup"}),{className:n,row:u=!1,...i}=t,s=(0,f.A)(),h=(0,d.A)({props:t,muiFormControl:s,states:["error"]}),v={...t,row:u,error:h.error},g=(e=>{let{classes:r,row:t,error:n}=e;return(0,a.A)({root:["root",t&&"row",n&&"error"]},c,r)})(v);return(0,p.jsx)(m,{className:(0,o.A)(g.root,n),ownerState:v,ref:r,...i})})},4178(e,r,t){var n;r.default=void 0,r.default=(0,((n=t(1448))&&n.__esModule?n:{default:n}).default)("M13 14H11V9H13M13 18H11V16H13M1 21H23L12 2L1 21Z","Alert")},10571(e,r,t){var n;r.default=void 0,r.default=(0,((n=t(1448))&&n.__esModule?n:{default:n}).default)("M14,3V5H17.59L7.76,14.83L9.17,16.24L19,6.41V10H21V3M19,19H5V5H12V3H5C3.89,3 3,3.9 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V12H19V19Z","OpenInNew")},57348(e,r,t){let n,o,a;function u(e,r,t=!0){return{...e,default:r,decode:(...n)=>{let o=e.decode(...n);return void 0===o||t&&null===o?r:o}}}function l(e,r){if(null==e)return e;if(0===e.length&&(!r||r&&""!==e))return null;let t=e instanceof Array?e[0]:e;return null==t||r||""!==t?t:null}t.d(r,{useQueryParams:()=>j,encodeQueryParams:()=>c,JsonParam:()=>s,withDefault:()=>u,StringParam:()=>i,useQueryParam:()=>A});let i={encode:function(e){return null==e?e:String(e)},decode:function(e){let r=l(e,!0);return null==r?r:String(r)}},s={encode:function(e){return null==e?e:JSON.stringify(e)},decode:function(e){let r=l(e);if(null==r)return r;let t=null;try{t=JSON.parse(r)}catch(e){}return t}};function c(e,r){let t={};for(let n of Object.keys(r)){let o=r[n];e[n]?t[n]=e[n].encode(r[n]):t[n]=null==o?o:String(o)}return t}'{}[],":'.split("").map(e=>[e,encodeURIComponent(e)]);var f=t(70451);let d=new class{constructor(){this.paramsMap=new Map,this.registeredParams=new Map}set(e,r,t,n){this.paramsMap.set(e,{stringified:r,decoded:t,decode:n})}has(e,r,t){if(!this.paramsMap.has(e))return!1;let n=this.paramsMap.get(e);return!!n&&n.stringified===r&&(null==t||n.decode===t)}get(e){var r;if(this.paramsMap.has(e))return null==(r=this.paramsMap.get(e))?void 0:r.decoded}registerParams(e){for(let r of e){let e=this.registeredParams.get(r)||0;this.registeredParams.set(r,e+1)}}unregisterParams(e){for(let r of e){let e=(this.registeredParams.get(r)||0)-1;e<=0?(this.registeredParams.delete(r),this.paramsMap.has(r)&&this.paramsMap.delete(r)):this.registeredParams.set(r,e)}}clear(){this.paramsMap.clear(),this.registeredParams.clear()}};function p(e,r,t,n){var o;if(!t||!r.length)return e;let a={...e},u=!1;for(let e of r)Object.prototype.hasOwnProperty.call(a,e)||(a[e]=null!=(o=t[e])?o:n,u=!0);return u?a:e}let m=Object.prototype.hasOwnProperty;function h(e,r){return e===r?0!==e||0!==r||1/e==1/r:e!=e&&r!=r}function v(e,r,t){var n,o;if(h(e,r))return!0;if("object"!=typeof e||null===e||"object"!=typeof r||null===r)return!1;let a=Object.keys(e),u=Object.keys(r);if(a.length!==u.length)return!1;for(let u=0;u<a.length;u++){let l=null!=(o=null==(n=null==t?void 0:t[a[u]])?void 0:n.equals)?o:h;if(!m.call(r,a[u])||!l(e[a[u]],r[a[u]]))return!1}return!0}function g(e,r,t){let n={};for(let o of Object.keys(r)){let a,u=r[o],l=e[o];if(t.has(o,l,u.decode))a=t.get(o);else{if(a=u.decode(l),u.equals&&t.has(o,l)){let e=t.get(o);u.equals(a,e)&&(a=e)}void 0!==a&&t.set(o,l,a,u.decode)}void 0===a&&void 0!==u.default&&(a=u.default),n[o]=a}return n}function y(){let e;return function(r,t,n){let o=g(r,t,n);return null!=e&&v(e,o)?e:(e=o,o)}}let w={},M=(e,r,t)=>{if(n===r&&a===e&&o===t)return w;n=r,a=e;let u=e(null!=r?r:"");o=t;let l=function(e){if(e)return Object.fromEntries(e.split("\n").map(e=>e.split("\0")))}(t);for(let[e,r]of Object.entries(u)){(null==l?void 0:l[e])&&(delete u[e],u[e=l[e]]=r);let t=w[e];v(r,t)&&(u[e]=t)}return w=u,u},P={adapter:{},options:{searchStringToObject:function(e){let r=new URLSearchParams(e),t={};for(let[e,n]of r)Object.prototype.hasOwnProperty.call(t,e)?Array.isArray(t[e])?t[e].push(n):t[e]=[t[e],n]:t[e]=n;return t},objectToSearchString:function(e){let r=new URLSearchParams;for(let[t,n]of Object.entries(e))if(void 0!==n&&null!==n)if(Array.isArray(n))for(let e of n)r.append(t,null!=e?e:"");else r.append(t,n);return r.toString()},updateType:"pushIn",includeKnownParams:void 0,includeAllParams:!1,removeDefaultsFromUrl:!1,enableBatching:!1,skipUpdateWhenNoChange:!0}},S=f.createContext(P),b=[];function j(e,r){let{adapter:t,options:n}=function(){let e=f.useContext(S);if(void 0===e||e===P)throw Error("useQueryParams must be used within a QueryParamProvider");return e}(),[o]=(0,f.useState)(y),{paramConfigMap:a,options:u}=function(e,r){let t;return{paramConfigMap:t=void 0===e?{}:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,"inherit"])):e,options:r}}(e,r),l=(0,f.useMemo)(()=>{var e;let r;return null==(e=u)&&(e={}),r={...n,...e},e.params&&n.params&&(r.params={...n.params,...e.params}),r},[n,u]),s=function(e,r){var t,n,o;let a={},u=!1,l=Object.keys(e);if(r.includeKnownParams||!1!==r.includeKnownParams&&0===l.length){let e=Object.keys(null!=(t=r.params)?t:{});l.push(...e)}for(let t of l){let l=e[t];if(null!=l&&"object"==typeof l){a[t]=l;continue}u=!0,a[t]=null!=(o=null==(n=r.params)?void 0:n[t])?o:i}return u?a:e}(a,l),m=M(l.searchStringToObject,t.location.search,function(e){let r;for(let t in e)if(e[t].urlName){let n=e[t].urlName,o=`${n}\0${t}`;r?r.push(o):r=[o]}return r?r.join("\n"):void 0}(s));l.includeAllParams&&(s=p(s,Object.keys(m),l.params,i));let h=o(m,s,d),v=Object.keys(s).join("\0");(0,f.useEffect)(()=>{let e=v.split("\0");return d.registerParams(e),()=>{d.unregisterParams(e)}},[v]);let w={adapter:t,paramConfigMap:s,options:l},j=(0,f.useRef)(w);null==j.current&&(j.current=w),(0,f.useEffect)(()=>{j.current.adapter=t,j.current.paramConfigMap=s,j.current.options=l},[t,s,l]);let[A]=(0,f.useState)(()=>(e,r)=>{let{adapter:t,paramConfigMap:n,options:o}=j.current;null==r&&(r=o.updateType),function(e,{immediate:r}={}){b.push(e),1===b.length&&(r?e=>e():e=>setTimeout(()=>e(),0))(()=>{let r,t=b.slice();b.length=0;let n=t[0].currentSearchString;for(let e=0;e<t.length;++e)r=function({changes:e,updateType:r,currentSearchString:t,paramConfigMap:n,options:o}){let a,u,l,{searchStringToObject:i,objectToSearchString:s}=o;null==r&&(r=o.updateType);let f=M(i,t),m=p(n,Object.keys(e),o.params);return u="function"==typeof e?e(g(f,m,d)):e,a=c(m,u),o.removeDefaultsFromUrl&&function(e,r){var t;for(let n in e)(null==(t=r[n])?void 0:t.default)!==void 0&&void 0!==e[n]&&r[n].encode(r[n].default)===e[n]&&(e[n]=void 0)}(a,m),a=function(e,r){var t;let n={};for(let o in e)(null==(t=r[o])?void 0:t.urlName)!=null?n[r[o].urlName]=e[o]:n[o]=e[o];return n}(a,m),(null==(l=s("push"===r||"replace"===r?a:{...f,...a}))?void 0:l.length)&&"?"!==l[0]&&(l=`?${l}`),null!=l?l:""}(0===e?t[e]:{...t[e],currentSearchString:r});e.options.skipUpdateWhenNoChange&&r===n||function({searchString:e,adapter:r,navigate:t,updateType:n}){let o={...r.location,search:e};t&&("string"==typeof n&&n.startsWith("replace")?r.replace(o):r.push(o))}({searchString:null!=r?r:"",adapter:t[t.length-1].adapter,navigate:!0,updateType:t[t.length-1].updateType})})}({changes:e,updateType:r,currentSearchString:t.location.search,paramConfigMap:n,options:o,adapter:t},{immediate:!o.enableBatching})});return[h,A]}let A=(e,r,t)=>{let[n,o]=j((0,f.useMemo)(()=>({[e]:null!=r?r:"inherit"}),[e,r]),t);return[n[e],(0,f.useCallback)((r,t)=>"function"==typeof r?o(t=>{let n=r(t[e]);return{[e]:n}},t):o({[e]:r},t),[e,o])]}},32473(e,r,t){var n=t(70451),o="function"==typeof Object.is?Object.is:function(e,r){return e===r&&(0!==e||1/e==1/r)||e!=e&&r!=r},a=n.useState,u=n.useEffect,l=n.useLayoutEffect,i=n.useDebugValue;function s(e){var r=e.getSnapshot;e=e.value;try{var t=r();return!o(e,t)}catch(e){return!0}}var c="u"<typeof window||void 0===window.document||void 0===window.document.createElement?function(e,r){return r()}:function(e,r){var t=r(),n=a({inst:{value:t,getSnapshot:r}}),o=n[0].inst,c=n[1];return l(function(){o.value=t,o.getSnapshot=r,s(o)&&c({inst:o})},[e,t,r]),u(function(){return s(o)&&c({inst:o}),e(function(){s(o)&&c({inst:o})})},[e]),i(t),t};r.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:c},43676(e,r,t){e.exports=t(32473)},42338(e,r,t){t.d(r,{u:()=>u});var n=t(25511),o=t(79215),a=function(e,r){for(var t={};e.length;){var n=e[0],a=n.code,u=n.message,l=n.path.join(".");if(!t[l])if("unionErrors"in n){var i=n.unionErrors[0].errors[0];t[l]={message:i.message,type:i.code}}else t[l]={message:u,type:a};if("unionErrors"in n&&n.unionErrors.forEach(function(r){return r.errors.forEach(function(r){return e.push(r)})}),r){var s=t[l].types,c=s&&s[n.code];t[l]=(0,o.appendErrors)(l,r,t,a,c?[].concat(c,n.message):n.message)}e.shift()}return t},u=function(e,r,t){return void 0===t&&(t={}),function(o,u,l){try{return Promise.resolve(function(a){try{var u=Promise.resolve(e["sync"===t.mode?"parse":"parseAsync"](o,r)).then(function(e){return l.shouldUseNativeValidation&&(0,n.validateFieldsNatively)({},l),{errors:{},values:t.raw?o:e}})}catch(e){return a(e)}return u&&u.then?u.then(void 0,a):u}(function(e){if(Array.isArray(null==e?void 0:e.errors))return{values:{},errors:(0,n.toNestErrors)(a(e.errors,!l.shouldUseNativeValidation&&"all"===l.criteriaMode),l)};throw e}))}catch(e){return Promise.reject(e)}}}},65098(e,r,t){t.d(r,{Ht:()=>i,T1:()=>o,jE:()=>l});var n=t(70451);let o=n.createContext(void 0),a=n.createContext(!1);function u(e,r){return e||(r&&"u">typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=o),window.ReactQueryClientContext):o)}let l=({context:e}={})=>{let r=n.useContext(u(e,n.useContext(a)));if(!r)throw Error("No QueryClient set, use QueryClientProvider to set one");return r},i=({client:e,children:r,context:t,contextSharing:o=!1})=>{n.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]);let l=u(t,o);return n.createElement(a.Provider,{value:!t&&o},n.createElement(l.Provider,{value:e},r))}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self["chunk_LogsTable "]=self["chunk_LogsTable "]||[]).push([["7764"],{67585(e,t,n){n.r(t),n.d(t,{LogsTable:()=>ea});var l=n(62540),o=n(74628),r=n(88091),a=n(70451),i=n(56599);let s=e=>{let{message:t="No logs to display"}=e,n=(0,i.A)();return(0,l.jsx)(o.A,{sx:{display:"flex",alignItems:"center",justifyContent:"center",height:"200px"},children:(0,l.jsx)(r.A,{variant:"body2",sx:{color:n.palette.text.secondary,fontSize:"14px"},children:t})})};var c=n(47095),d=n(91823),p=n(12138),u=n(7013),x=n(7800),h=n(74649),m=n(8242),g=n(80688),f=n(27368),y=n(80242),w=n(91264);let j=new y.v;j.use_classes=!0;let b=RegExp("\x1b\\[[0-9;]*m");function S(e){if(!b.test(e))return null;let t=j.ansi_to_html(e);return w.A.sanitize(t,{ALLOWED_TAGS:["span"],ALLOWED_ATTR:["class","style"]})}let A=RegExp("\x1b\\[[0-9;]*m","g");function v(e){return e.replace(A,"")}function C(e){var t,n;let l,o=("number"==typeof(t=e.timestamp)?new Date(1e3*t):(n=t,new Date(/^\d+$/.test(n)?1e3*parseInt(n):Date.parse(n)))).toISOString(),r=0===(l=Object.entries(e.labels||{})).length?"":l.map(e=>{let[t,n]=e;return`${t}="${n}"`}).join(" "),a=v(e.line);return r?`${o} ${r} ${a}`:`${o} ${a}`}function k(e){return v(e.line)}function E(e){return e.map(C).join("\n")}var z=n(65211),T=n(30145),O=n(63079),L=n(33213),I=n(14045),D=n(39098),R=n(3908),W=n(87275),M=n(11061),F=n(77241),P=n(50172),$=n(12309);let _={critical:["critical","emerg","fatal","alert","crit"],error:["error","err","eror"],debug:["debug","dbug"],info:["info","inf","information","notice"],trace:["trace"],warning:["warn","warning"],unknown:["unknown"],other:[""]};var N=n(91394),B=n(5139),J=n(3399),H=n(59238),K=n(45271);let G=e=>{let{value:t}=e,n=(0,a.useMemo)(()=>S(t),[t]);return n?(0,l.jsx)("span",{dangerouslySetInnerHTML:{__html:n}}):(0,l.jsx)(l.Fragment,{children:t})},U=e=>{let{log:t}=e,n=(0,i.A)();return(0,l.jsx)(N.A,{size:"small",sx:{border:`1px solid ${n.palette.divider}`,"& .MuiTableCell-root":{border:"none",padding:"6px 8px",fontSize:"12px"}},children:(0,l.jsx)(B.A,{children:Object.entries(t).map(e=>{let[t,o]=e;return(0,l.jsxs)(J.A,{sx:{"&:hover":{backgroundColor:(0,H.X4)(n.palette.action.hover,.04)}},children:[(0,l.jsx)(K.A,{sx:{color:n.palette.text.secondary,fontWeight:500,width:"33%"},children:t}),(0,l.jsx)(K.A,{sx:{color:n.palette.text.primary,wordBreak:"break-word",width:"67%"},children:null!=o&&""!==o?(0,l.jsx)(G,{value:o}):"--"})]},t)})})})},V=e=>{let{timestamp:t}=e,n="number"==typeof t?new Date(1e3*t):new Date(/^\d+$/.test(t)?1e3*parseInt(t):Date.parse(t));return(0,l.jsx)("time",{style:{fontSize:"12px",whiteSpace:"nowrap",minWidth:"max-content"},dateTime:n.toISOString(),children:n.toISOString()})};var Q=n(77308);let X=(0,Q.A)(o.A,{shouldForwardProp:e=>"severityColor"!==e})(e=>{let{severityColor:t}=e;return{borderLeft:`4px solid ${t}`,transition:"all 0.2s ease",marginBottom:"4px",fontFamily:'"DejaVu Sans Mono", monospace',userSelect:"text"}}),Y=(0,Q.A)(o.A,{shouldForwardProp:e=>"isExpandable"!==e&&"isHighlighted"!==e&&"isSelected"!==e&&"hasRowActions"!==e})(e=>{let{theme:t,isExpandable:n,isHighlighted:l,isSelected:o,hasRowActions:r}=e;return{display:"grid",gridTemplateColumns:n?`16px minmax(160px, max-content) 1fr ${r?"min-content":""}`:`minmax(160px, max-content) 1fr ${r?"min-content":""}`,alignItems:"flex-start",padding:"4px 8px",cursor:"default",gap:"12px",backgroundColor:l?t.palette.action.hover:o?t.palette.action.selected:"transparent","&:hover":{backgroundColor:o?t.palette.action.focus:t.palette.action.hover}}}),q=(0,Q.A)(c.A,{shouldForwardProp:e=>"isExpanded"!==e})(e=>{let{theme:t,isExpanded:n}=e;return{padding:0,width:"16px",height:"16px",color:t.palette.text.secondary,transform:n?"rotate(90deg)":"rotate(0deg)",transition:"transform 0.2s ease"}}),Z=(0,Q.A)(r.A,{shouldForwardProp:e=>"allowWrap"!==e})(e=>{let{allowWrap:t}=e;return{fontSize:"12px",flex:1,lineHeight:1.4,textAlign:"left",...t?{wordBreak:"break-word",whiteSpace:"pre-wrap",overflow:"visible",textOverflow:"unset"}:{wordBreak:"normal",whiteSpace:"nowrap"}}}),ee=(0,a.memo)(e=>{let{log:t,isExpanded:n,index:r,onToggle:s,isExpandable:d=!0,showTime:p=!1,allowWrap:u=!1,isSelected:x=!1,onSelect:h,itemActionButtons:m}=e,g=(0,i.A)(),f=(e=>{let t=(0,i.A)();if(!e)return t.palette.text.secondary;switch((e=>{var t,n;let l=null==(n=e.labels)||null==(t=n.level)?void 0:t.toLowerCase();if(l){for(let[e,t]of Object.entries(_))if(t.some(e=>e&&l.includes(e)))return e}return"unknown"})(e)){case"critical":return t.palette.error.dark;case"error":return t.palette.error.main;case"warning":return t.palette.warning.main;case"info":return t.palette.info.main;case"debug":return t.palette.primary.main;case"trace":return t.palette.grey[500];default:return t.palette.text.secondary}})(t),y=(0,a.useMemo)(()=>t?S(t.line):null,[t]),[w,j]=(0,a.useState)(!1),[b,A]=(0,a.useState)(null),[v,E]=(0,a.useState)(!1),N=(0,a.useRef)(null),B=(0,a.useRef)(null);(0,a.useEffect)(()=>()=>{B.current&&window.clearTimeout(B.current)},[]);let J=(0,a.useCallback)(e=>{d&&(e.stopPropagation(),s(r))},[d,s,r]),H=(0,a.useCallback)(e=>{h&&h(r,e)},[h,r]),K=(0,a.useCallback)(e=>{e.stopPropagation(),A(e.currentTarget)},[]),G=(0,a.useCallback)(()=>{A(null),j(!1)},[]),Q=(0,a.useCallback)(async e=>{let n;if(t){switch(e){case"message":n=k(t);break;case"json":n=JSON.stringify(t,null,2);break;default:n=C(t)}await navigator.clipboard.writeText(n),E(!0),G(),B.current&&window.clearTimeout(B.current),B.current=window.setTimeout(()=>{E(!1)},1500)}},[t,G]);if(!t)return null;let ee=m&&m.length>0;return(0,l.jsxs)(X,{severityColor:f,ref:N,onMouseEnter:()=>j(!0),onMouseLeave:()=>{b||j(!1)},"data-log-index":r,"data-testid":`log-row-container-${r}`,children:[(0,l.jsxs)(Y,{onMouseDown:H,isExpandable:d,isHighlighted:!!b,hasRowActions:ee,isSelected:x,children:[d&&(0,l.jsx)(o.A,{onClick:J,sx:{display:"flex",alignItems:"center",width:"16px",justifyContent:"center",cursor:"pointer"},children:(0,l.jsx)(q,{size:"small",isExpanded:n,children:(0,l.jsx)(M.default,{sx:{fontSize:"12px"}})})}),(0,l.jsx)(V,{timestamp:t.timestamp}),(0,l.jsxs)(o.A,{sx:{display:"flex",gap:"10px",marginLeft:"36px",alignItems:"center"},children:[y?(0,l.jsx)(Z,{variant:"body2",allowWrap:u,dangerouslySetInnerHTML:{__html:y}}):(0,l.jsx)(Z,{variant:"body2",allowWrap:u,children:t.line}),(0,l.jsx)(z.A,{title:v?"Copied!":"Copy options",children:(0,l.jsx)(c.A,{size:"small",onClick:K,"aria-label":"Copy log options",sx:{padding:"4px",marginLeft:"auto",color:v?g.palette.success.main:g.palette.text.secondary,opacity:w||b||v?1:0,pointerEvents:w||b||v?"auto":"none",transition:"opacity 0.08s ease, color 0.2s ease","&:hover":{color:v?g.palette.success.main:g.palette.primary.main,backgroundColor:g.palette.action.hover},borderRadius:"4px",display:"flex",gap:"2px"},children:v?(0,l.jsx)(R.default,{sx:{fontSize:"14px"}}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(P.default,{sx:{fontSize:"14px"}}),(0,l.jsx)(W.default,{sx:{fontSize:"12px"}})]})})}),ee&&(0,l.jsx)(o.A,{sx:{display:"flex",gap:"4px",alignItems:"center",opacity:w||b?1:0,pointerEvents:w||b?"auto":"none",transition:"opacity 0.08s ease"},children:m}),(0,l.jsxs)(T.A,{anchorEl:b,open:!!b,onClose:G,onClick:e=>e.stopPropagation(),"aria-label":"Copy format options",anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},slotProps:{paper:{sx:{mt:.5,minWidth:180,boxShadow:g.shadows[3]}}},children:[(0,l.jsxs)(O.A,{onClick:()=>Q("full"),sx:{py:1,"&:hover":{backgroundColor:g.palette.action.hover}},children:[(0,l.jsx)(L.A,{children:(0,l.jsx)(P.default,{fontSize:"small"})}),(0,l.jsx)(I.A,{primary:"Copy log",secondary:"Timestamp + labels + message",slotProps:{primary:{fontSize:"14px"},secondary:{fontSize:"11px"}}})]}),(0,l.jsxs)(O.A,{onClick:()=>Q("message"),sx:{py:1,"&:hover":{backgroundColor:g.palette.action.hover}},children:[(0,l.jsx)(L.A,{children:(0,l.jsx)($.default,{fontSize:"small"})}),(0,l.jsx)(I.A,{primary:"Copy message",secondary:"Message text only",slotProps:{primary:{fontSize:"14px"},secondary:{fontSize:"11px"}}})]}),(0,l.jsxs)(O.A,{onClick:()=>Q("json"),sx:{py:1,"&:hover":{backgroundColor:g.palette.action.hover}},children:[(0,l.jsx)(L.A,{children:(0,l.jsx)(F.default,{fontSize:"small"})}),(0,l.jsx)(I.A,{primary:"Copy as JSON",secondary:"Full log entry",slotProps:{primary:{fontSize:"14px"},secondary:{fontSize:"11px"}}})]})]})]})]}),(0,l.jsx)(D.A,{in:n,timeout:200,children:(0,l.jsx)(o.A,{sx:{padding:"8px"},children:(0,l.jsxs)(o.A,{sx:{display:"grid",gridTemplateColumns:p?"8px minmax(160px, max-content) 1fr":"1fr",gap:"12px"},children:[p&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(o.A,{}),(0,l.jsx)(o.A,{})]}),(0,l.jsx)(o.A,{children:(0,l.jsx)(U,{log:t.labels})})]})})})]})});ee.displayName="LogRow";let et="PERSES_LOGSTABLE_HINTS_DISMISSED",en=(0,g.formatForDisplay)("Mod"),el=e=>{var t;let{logs:n,spec:r,expandedRows:s,onToggleExpand:y}=e,w=(0,i.A)(),[j,b]=(0,a.useState)(new Set),[S,A]=(0,a.useState)(null),v=(0,a.useRef)(j),[C,z]=(0,a.useState)(null),[T,O]=(0,a.useState)("full"),[L,I]=(0,a.useState)(0),D=(0,a.useRef)(null),[R,W]=(0,a.useState)(()=>{try{return"true"===localStorage.getItem(et)}catch{return!1}}),M=(null==(t=r.selection)?void 0:t.enabled)??!1,{setSelection:F,clearSelection:P}=(0,m.useSelection)(),$=(0,f.useAllVariableValues)(),_=r.actions?r.actions:void 0,N=(null==_?void 0:_.enabled)&&_.displayWithItem?_.actionsList:[],{getItemActionButtons:B,confirmDialog:J}=(0,g.useSelectionItemActions)({actions:N,variableState:$});(0,a.useEffect)(()=>{v.current=j},[j]),(0,a.useEffect)(()=>{M&&(0===j.size?P():F(Array.from(j).map(e=>{let t=n[e];return t?{id:e,item:t}:null}).filter(e=>null!==e)))},[j,n,M,F,P]);let H=(0,a.useCallback)(()=>{W(!0);try{localStorage.setItem(et,"true")}catch{}},[]),K=(0,a.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"full",t=arguments.length>1?arguments[1]:void 0;z({x:window.innerWidth-32,y:window.innerHeight-32}),O(e),I(t),D.current&&window.clearTimeout(D.current),D.current=window.setTimeout(()=>{z(null)},5e3)},[]),G=(0,a.useCallback)(()=>{D.current&&window.clearTimeout(D.current),z(null)},[]),U=(0,a.useCallback)(async e=>{let t,l=Array.from(v.current).sort((e,t)=>e-t).map(e=>n[e]).filter(e=>void 0!==e);t="message"===e?l.map(k).join("\n"):"json"===e?JSON.stringify(l,null,2):E(l),await navigator.clipboard.writeText(t),K(e,l.length)},[n,K]),V=(0,a.useCallback)((e,t)=>{var n,l;if(t.shiftKey)if(t.preventDefault(),null==(n=window.getSelection())||n.removeAllRanges(),null!==S){let t=Math.min(S,e),n=Math.max(S,e),l=new Set;for(let e=t;e<=n;e++)l.add(e);b(l)}else b(new Set([e])),A(e);else if(t.ctrlKey||t.metaKey){t.preventDefault(),null==(l=window.getSelection())||l.removeAllRanges();let n=new Set(j);n.has(e)?n.delete(e):n.add(e),b(n),A(e)}else A(e)},[j,S]);return(0,a.useEffect)(()=>{let e=async e=>{if((e.metaKey||e.ctrlKey)&&"a"===e.key&&(e.preventDefault(),b(new Set(n.map((e,t)=>t))),n.length>0&&A(n.length-1)),(e.metaKey||e.ctrlKey)&&"c"===e.key){let t=window.getSelection(),l=t&&t.rangeCount>0&&t.toString().length>0;if(v.current.size>0&&!l){e.preventDefault();let t=Array.from(v.current).sort((e,t)=>e-t).map(e=>n[e]).filter(e=>void 0!==e),l=E(t);await navigator.clipboard.writeText(l),K("full",t.length)}}"Escape"===e.key&&j.size>0&&(b(new Set),A(null))};return window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}},[n,j,K]),(0,a.useEffect)(()=>()=>{D.current&&window.clearTimeout(D.current)},[]),(0,l.jsxs)(l.Fragment,{children:[J,(0,l.jsxs)(o.A,{sx:{height:"100%",backgroundColor:w.palette.background.default,overflow:"hidden",boxShadow:w.shadows[1],display:"flex",flexDirection:"column"},onCopy:e=>{let t=window.getSelection();if(t&&t.rangeCount>0&&t.toString().length>0)return;let l=v.current;if(l.size>0){e.preventDefault();let t=E(Array.from(l).sort((e,t)=>e-t).map(e=>n[e]).filter(e=>void 0!==e));e.clipboardData.setData("text/plain",t)}},children:[!R&&(0,l.jsxs)(o.A,{sx:{px:2,py:.75,fontSize:"12px",color:w.palette.text.secondary,backgroundColor:w.palette.background.paper,borderBottom:`1px solid ${w.palette.divider}`,display:"flex",alignItems:"center",gap:2,flexShrink:0},children:[(0,l.jsxs)(o.A,{sx:{display:"flex",alignItems:"center",gap:2,flex:1},children:[(0,l.jsxs)(o.A,{component:"span",sx:{opacity:.8},children:[en,"+Click to select"]}),(0,l.jsx)(o.A,{component:"span",sx:{opacity:.6},children:"•"}),(0,l.jsx)(o.A,{component:"span",sx:{opacity:.8},children:"Shift+Click for range"}),(0,l.jsx)(o.A,{component:"span",sx:{opacity:.6},children:"•"}),(0,l.jsxs)(o.A,{component:"span",sx:{opacity:.8},children:[en,"+C to copy"]}),(0,l.jsx)(o.A,{component:"span",sx:{opacity:.6},children:"•"}),(0,l.jsx)(o.A,{component:"span",sx:{opacity:.8},children:"Esc to clear"})]}),(0,l.jsx)(c.A,{size:"small",onClick:H,sx:{opacity:.6,"&:hover":{opacity:1},padding:.5},"aria-label":"Dismiss hints",children:(0,l.jsx)(x.default,{sx:{fontSize:"16px"}})})]}),(0,l.jsx)(h.aY,{style:{height:"100%",flexGrow:1},initialItemCount:r.showAll?n.length:void 0,totalCount:n.length,itemContent:e=>{let t=n[e];if(!t)return null;let o=(null==N?void 0:N.length)?B({id:e,data:t}):[];return(0,l.jsx)(ee,{isExpandable:r.enableDetails,log:t,index:e,isExpanded:s.has(e),onToggle:y,allowWrap:r.allowWrap,showTime:r.showTime,isSelected:j.has(e),onSelect:V,itemActionButtons:o})}}),(0,l.jsx)(d.Ay,{open:!!C,anchorReference:"anchorPosition",anchorPosition:C?{top:C.y,left:C.x}:void 0,onClose:G,disableScrollLock:!0,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:!0,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"bottom",horizontal:"right"},slotProps:{paper:{sx:{px:2,py:1.5,boxShadow:w.shadows[8],borderRadius:2,pointerEvents:"auto"}}},sx:{pointerEvents:"none"},children:(0,l.jsxs)(o.A,{sx:{display:"flex",alignItems:"center",gap:2},children:[(0,l.jsxs)(o.A,{sx:{fontSize:"14px",color:w.palette.text.primary,fontWeight:500,display:"flex",alignItems:"center",gap:.5},children:["✓ Copied ",L," ",1===L?"log":"logs"," as"," ",(0,l.jsx)(o.A,{component:"span",sx:{color:w.palette.primary.main,minWidth:"60px",display:"inline-block"},children:"full"===T?"Full":"message"===T?"Message":"JSON"})]}),(0,l.jsxs)(p.A,{size:"small",variant:"outlined",children:[(0,l.jsx)(u.A,{onClick:()=>U("full"),sx:{fontSize:"12px",textTransform:"none",minWidth:"52px",fontWeight:"full"===T?600:400,bgcolor:"full"===T?w.palette.action.selected:"transparent"},children:"Full"}),(0,l.jsx)(u.A,{onClick:()=>U("message"),sx:{fontSize:"12px",textTransform:"none",minWidth:"74px",fontWeight:"message"===T?600:400,bgcolor:"message"===T?w.palette.action.selected:"transparent"},children:"Message"}),(0,l.jsx)(u.A,{onClick:()=>U("json"),sx:{fontSize:"12px",textTransform:"none",minWidth:"52px",fontWeight:"json"===T?600:400,bgcolor:"json"===T?w.palette.action.selected:"transparent"},children:"JSON"})]})]})})]})]})},eo=e=>{let{logs:t,spec:n}=e,{expandedRows:o,toggleExpand:r}=(()=>{let[e,t]=(0,a.useState)(new Set);return{expandedRows:e,toggleExpand:(0,a.useCallback)(e=>{t(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n})},[]),clearExpanded:(0,a.useCallback)(()=>{t(new Set)},[])}})();return t.length?(0,l.jsx)(el,{logs:t,spec:n,expandedRows:o,onToggleExpand:r}):(0,l.jsx)(s,{})};var er=n(54042);let ea={PanelComponent:function(e){let{queryResults:t,spec:n}=e,a=t.flatMap(e=>{var t;return(null==e||null==(t=e.data.logs)?void 0:t.entries)??[]}).sort((e,t)=>t.timestamp-e.timestamp);return a.length?(0,l.jsx)(eo,{logs:a,spec:n}):(0,l.jsx)(o.A,{sx:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%"},children:(0,l.jsx)(r.A,{children:"No logs to display"})})},panelOptionsEditorComponents:[{label:"Settings",content:function(e){let{onChange:t,value:n}=e;return(0,l.jsxs)(m.OptionsEditorGrid,{children:[(0,l.jsx)(m.OptionsEditorColumn,{children:(0,l.jsx)(f.LegendOptionsEditor,{value:n.legend,onChange:e=>{t({...n,legend:e})}})}),(0,l.jsx)(m.OptionsEditorColumn,{children:(0,l.jsx)(m.ThresholdsEditor,{hideDefault:!0,thresholds:n.thresholds,onChange:e=>{t({...n,thresholds:e})}})})]})}},{label:"Item Actions",content:function(e){let{value:t,onChange:n}=e;return(0,l.jsx)(f.ItemSelectionActionsEditor,{actionOptions:t.actions,onChangeActions:function(e){n({...t,actions:e})},selectionOptions:t.selection,onChangeSelection:function(e){n({...t,selection:e})}})}}],supportedQueryTypes:["LogQuery"],createInitialOptions:()=>({showTime:!0,allowWrap:!0,enableDetails:!0}),actions:[{component:e=>{let{queryResults:t,definition:n}=e,o=(0,a.useMemo)(()=>t.flatMap(e=>{var t,n;return(null==(n=e.data)||null==(t=n.logs)?void 0:t.entries)??[]}),[t]),r=!o.length,i=(0,a.useCallback)(()=>{if(!r)try{var e,t;let l=JSON.stringify(o,null,2),r=new Blob([l],{type:"application/json"}),a=URL.createObjectURL(r),i=document.createElement("a");i.href=a;let s=(null==n||null==(t=n.spec)||null==(e=t.display)?void 0:e.name)||"Logs Table Data",c=(0,f.sanitizeFilename)(s);i.download=`${c}_data.json`,document.body.appendChild(i),i.click(),document.body.removeChild(i),URL.revokeObjectURL(a)}catch(e){console.error("Logs table export failed:",e)}},[n,o,r]);return(0,l.jsx)(m.InfoTooltip,{description:r?"No data to export":"Export as JSON",children:(0,l.jsx)(c.A,{disabled:r,size:"small",onClick:i,"aria-label":"Export Logs Table Data as JSON",children:(0,l.jsx)(er.default,{fontSize:"inherit"})})})},location:"header"}]}}}]);
@@ -1,2 +0,0 @@
1
- /*! For license information please see lib-router.47d4d226.js.LICENSE.txt */
2
- "use strict";(self["chunk_LogsTable "]=self["chunk_LogsTable "]||[]).push([["9535"],{70744(e,t,r){var n,a,o,i;function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}r.d(t,{AO:()=>v,B6:()=>D,G3:()=>en,Gh:()=>M,HC:()=>q,HS:()=>F,HW:()=>er,Oi:()=>h,Pq:()=>z,RO:()=>L,Rr:()=>y,Sk:()=>K,TM:()=>d,V2:()=>W,VV:()=>J,aE:()=>el,o1:()=>A,pX:()=>Y,pb:()=>k,rc:()=>n,ro:()=>R,sC:()=>u,tH:()=>H,tW:()=>P,ue:()=>E,v6:()=>$,yD:()=>j,zR:()=>c}),(o=n||(n={})).Pop="POP",o.Push="PUSH",o.Replace="REPLACE";let s="popstate";function u(e){let t;void 0===e&&(e={});let{initialEntries:r=["/"],initialIndex:a,v5Compat:o=!1}=e;t=r.map((e,t)=>c(e,"string"==typeof e?null:e.state,0===t?"default":void 0));let i=u(null==a?t.length-1:a),l=n.Pop,s=null;function u(e){return Math.min(Math.max(e,0),t.length-1)}function c(e,r,n){void 0===r&&(r=null);let a=m(t?t[i].pathname:"/",e,r,n);return f("/"===a.pathname.charAt(0),"relative pathnames are not supported in memory history: "+JSON.stringify(e)),a}function d(e){return"string"==typeof e?e:v(e)}return{get index(){return i},get action(){return l},get location(){return t[i]},createHref:d,createURL:e=>new URL(d(e),"http://localhost"),encodeLocation(e){let t="string"==typeof e?y(e):e;return{pathname:t.pathname||"",search:t.search||"",hash:t.hash||""}},push(e,r){l=n.Push;let a=c(e,r);i+=1,t.splice(i,t.length,a),o&&s&&s({action:l,location:a,delta:1})},replace(e,r){l=n.Replace;let a=c(e,r);t[i]=a,o&&s&&s({action:l,location:a,delta:0})},go(e){l=n.Pop;let r=u(i+e),a=t[r];i=r,s&&s({action:l,location:a,delta:e})},listen:e=>(s=e,()=>{s=null})}}function c(e){return void 0===e&&(e={}),g(function(e,t){let{pathname:r,search:n,hash:a}=e.location;return m("",{pathname:r,search:n,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){return"string"==typeof t?t:v(t)},null,e)}function d(e){return void 0===e&&(e={}),g(function(e,t){let{pathname:r="/",search:n="",hash:a=""}=y(e.location.hash.substr(1));return r.startsWith("/")||r.startsWith(".")||(r="/"+r),m("",{pathname:r,search:n,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){let r=e.document.querySelector("base"),n="";if(r&&r.getAttribute("href")){let t=e.location.href,r=t.indexOf("#");n=-1===r?t:t.slice(0,r)}return n+"#"+("string"==typeof t?t:v(t))},function(e,t){f("/"===e.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")},e)}function h(e,t){if(!1===e||null==e)throw Error(t)}function f(e,t){if(!e){"u">typeof console&&console.warn(t);try{throw Error(t)}catch(e){}}}function p(e,t){return{usr:e.state,key:e.key,idx:t}}function m(e,t,r,n){return void 0===r&&(r=null),l({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?y(t):t,{state:r,key:t&&t.key||n||Math.random().toString(36).substr(2,8)})}function v(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&"?"!==r&&(t+="?"===r.charAt(0)?r:"?"+r),n&&"#"!==n&&(t+="#"===n.charAt(0)?n:"#"+n),t}function y(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function g(e,t,r,a){void 0===a&&(a={});let{window:o=document.defaultView,v5Compat:i=!1}=a,u=o.history,c=n.Pop,d=null,f=y();function y(){return(u.state||{idx:null}).idx}function g(){c=n.Pop;let e=y(),t=null==e?null:e-f;f=e,d&&d({action:c,location:w.location,delta:t})}function b(e){let t="null"!==o.location.origin?o.location.origin:o.location.href,r="string"==typeof e?e:v(e);return h(t,"No window.location.(origin|href) available to create URL for href: "+(r=r.replace(/ $/,"%20"))),new URL(r,t)}null==f&&(f=0,u.replaceState(l({},u.state,{idx:f}),""));let w={get action(){return c},get location(){return e(o,u)},listen(e){if(d)throw Error("A history only accepts one active listener");return o.addEventListener(s,g),d=e,()=>{o.removeEventListener(s,g),d=null}},createHref:e=>t(o,e),createURL:b,encodeLocation(e){let t=b(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){c=n.Push;let a=m(w.location,e,t);r&&r(a,e);let l=p(a,f=y()+1),s=w.createHref(a);try{u.pushState(l,"",s)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;o.location.assign(s)}i&&d&&d({action:c,location:w.location,delta:1})},replace:function(e,t){c=n.Replace;let a=m(w.location,e,t);r&&r(a,e);let o=p(a,f=y()),l=w.createHref(a);u.replaceState(o,"",l),i&&d&&d({action:c,location:w.location,delta:0})},go:e=>u.go(e)};return w}(i=a||(a={})).data="data",i.deferred="deferred",i.redirect="redirect",i.error="error";let b=new Set(["lazy","caseSensitive","path","id","index","children"]);function w(e,t,r,n){return void 0===r&&(r=[]),void 0===n&&(n={}),e.map((e,a)=>{let o=[...r,String(a)],i="string"==typeof e.id?e.id:o.join("-");if(h(!0!==e.index||!e.children,"Cannot specify children on an index route"),h(!n[i],'Found a route id collision on id "'+i+"\". Route id's must be globally unique within Data Router usages"),!0===e.index){let r=l({},e,t(e),{id:i});return n[i]=r,r}{let r=l({},e,t(e),{id:i,children:void 0});return n[i]=r,e.children&&(r.children=w(e.children,t,o,n)),r}})}function E(e,t,r){return void 0===r&&(r="/"),S(e,t,r,!1)}function S(e,t,r,n){let a=k(("string"==typeof t?y(t):t).pathname||"/",r);if(null==a)return null;let o=function e(t,r,n,a){void 0===r&&(r=[]),void 0===n&&(n=[]),void 0===a&&(a="");let o=(t,o,i)=>{var l,s;let u,c,d={relativePath:void 0===i?t.path||"":i,caseSensitive:!0===t.caseSensitive,childrenIndex:o,route:t};d.relativePath.startsWith("/")&&(h(d.relativePath.startsWith(a),'Absolute route path "'+d.relativePath+'" nested under path "'+a+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),d.relativePath=d.relativePath.slice(a.length));let f=F([a,d.relativePath]),p=n.concat(d);t.children&&t.children.length>0&&(h(!0!==t.index,'Index routes must not have child routes. Please remove all child routes from route path "'+f+'".'),e(t.children,r,p,f)),(null!=t.path||t.index)&&r.push({path:f,score:(l=f,s=t.index,c=(u=l.split("/")).length,u.some(C)&&(c+=-2),s&&(c+=2),u.filter(e=>!C(e)).reduce((e,t)=>e+(x.test(t)?3:""===t?1:10),c)),routesMeta:p})};return t.forEach((e,t)=>{var r;if(""!==e.path&&null!=(r=e.path)&&r.includes("?"))for(let r of function e(t){let r=t.split("/");if(0===r.length)return[];let[n,...a]=r,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(0===a.length)return o?[i,""]:[i];let l=e(a.join("/")),s=[];return s.push(...l.map(e=>""===e?i:[i,e].join("/"))),o&&s.push(...l),s.map(e=>t.startsWith("/")&&""===e?"/":e)}(e.path))o(e,t,r);else o(e,t)}),r}(e);o.sort((e,t)=>{var r,n;return e.score!==t.score?t.score-e.score:(r=e.routesMeta.map(e=>e.childrenIndex),n=t.routesMeta.map(e=>e.childrenIndex),r.length===n.length&&r.slice(0,-1).every((e,t)=>e===n[t])?r[r.length-1]-n[n.length-1]:0)});let i=null;for(let e=0;null==i&&e<o.length;++e){let t=L(a);i=function(e,t,r){void 0===r&&(r=!1);let{routesMeta:n}=e,a={},o="/",i=[];for(let e=0;e<n.length;++e){let l=n[e],s=e===n.length-1,u="/"===o?t:t.slice(o.length)||"/",c=D({path:l.relativePath,caseSensitive:l.caseSensitive,end:s},u),d=l.route;if(!c&&s&&r&&!n[n.length-1].route.index&&(c=D({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},u)),!c)return null;Object.assign(a,c.params),i.push({params:a,pathname:F([o,c.pathname]),pathnameBase:N(F([o,c.pathnameBase])),route:d}),"/"!==c.pathnameBase&&(o=F([o,c.pathnameBase]))}return i}(o[e],t,n)}return i}function R(e,t){let{route:r,pathname:n,params:a}=e;return{id:r.id,pathname:n,params:a,data:t[r.id],handle:r.handle}}let x=/^:[\w-]+$/,C=e=>"*"===e;function P(e,t){void 0===t&&(t={});let r=e;r.endsWith("*")&&"*"!==r&&!r.endsWith("/*")&&(f(!1,'Route path "'+r+'" will be treated as if it were "'+r.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+r.replace(/\*$/,"/*")+'".'),r=r.replace(/\*$/,"/*"));let n=r.startsWith("/")?"/":"",a=e=>null==e?"":"string"==typeof e?e:String(e);return n+r.split(/\/+/).map((e,r,n)=>{if(r===n.length-1&&"*"===e)return a(t["*"]);let o=e.match(/^:([\w-]+)(\??)$/);if(o){let[,e,r]=o,n=t[e];return h("?"===r||null!=n,'Missing ":'+e+'" param'),a(n)}return e.replace(/\?$/g,"")}).filter(e=>!!e).join("/")}function D(e,t){var r,n,a;let o,i;"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[l,s]=(r=e.path,n=e.caseSensitive,a=e.end,void 0===n&&(n=!1),void 0===a&&(a=!0),f("*"===r||!r.endsWith("*")||r.endsWith("/*"),'Route path "'+r+'" will be treated as if it were "'+r.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+r.replace(/\*$/,"/*")+'".'),o=[],i="^"+r.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(e,t,r)=>(o.push({paramName:t,isOptional:null!=r}),r?"/?([^\\/]+)?":"/([^\\/]+)")),r.endsWith("*")?(o.push({paramName:"*"}),i+="*"===r||"/*"===r?"(.*)$":"(?:\\/(.+)|\\/*)$"):a?i+="\\/*$":""!==r&&"/"!==r&&(i+="(?:(?=\\/|$))"),[new RegExp(i,n?void 0:"i"),o]),u=t.match(l);if(!u)return null;let c=u[0],d=c.replace(/(.)\/+$/,"$1"),h=u.slice(1);return{params:s.reduce((e,t,r)=>{let{paramName:n,isOptional:a}=t;if("*"===n){let e=h[r]||"";d=c.slice(0,c.length-e.length).replace(/(.)\/+$/,"$1")}let o=h[r];return a&&!o?e[n]=void 0:e[n]=(o||"").replace(/%2F/g,"/"),e},{}),pathname:c,pathnameBase:d,pattern:e}}function L(e){try{return e.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(t){return f(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function k(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&"/"!==n?null:e.slice(r)||"/"}let O=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function A(e,t){let r;void 0===t&&(t="/");let{pathname:n,search:a="",hash:o=""}="string"==typeof e?y(e):e;if(n){let e;(e=n,O.test(e))?r=n:(n.includes("//")&&f(!1,"Pathnames cannot have embedded double slashes - normalizing "+n+" -> "+(n=n.replace(/\/\/+/g,"/"))),r=n.startsWith("/")?_(n.substring(1),"/"):_(n,t))}else r=t;return{pathname:r,search:B(a),hash:I(o)}}function _(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(e=>{".."===e?r.length>1&&r.pop():"."!==e&&r.push(e)}),r.length>1?r.join("/"):"/"}function T(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field [")+JSON.stringify(n)+"]. Please separate it out to the `to."+r+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function U(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}function j(e,t){let r=U(e);return t?r.map((e,t)=>t===r.length-1?e.pathname:e.pathnameBase):r.map(e=>e.pathnameBase)}function M(e,t,r,n){let a,o;void 0===n&&(n=!1),"string"==typeof e?a=y(e):(h(!(a=l({},e)).pathname||!a.pathname.includes("?"),T("?","pathname","search",a)),h(!a.pathname||!a.pathname.includes("#"),T("#","pathname","hash",a)),h(!a.search||!a.search.includes("#"),T("#","search","hash",a)));let i=""===e||""===a.pathname,s=i?"/":a.pathname;if(null==s)o=r;else{let e=t.length-1;if(!n&&s.startsWith("..")){let t=s.split("/");for(;".."===t[0];)t.shift(),e-=1;a.pathname=t.join("/")}o=e>=0?t[e]:"/"}let u=A(a,o),c=s&&"/"!==s&&s.endsWith("/"),d=(i||"."===s)&&r.endsWith("/");return!u.pathname.endsWith("/")&&(c||d)&&(u.pathname+="/"),u}let F=e=>e.join("/").replace(/\/\/+/g,"/"),N=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),B=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",I=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"",z=function(e,t){void 0===t&&(t={});let r="number"==typeof t?{status:t}:t,n=new Headers(r.headers);return n.has("Content-Type")||n.set("Content-Type","application/json; charset=utf-8"),new Response(JSON.stringify(e),l({},r,{headers:n}))};class H extends Error{}class V{constructor(e,t){let r;this.pendingKeysSet=new Set,this.subscribers=new Set,this.deferredKeys=[],h(e&&"object"==typeof e&&!Array.isArray(e),"defer() only accepts plain objects"),this.abortPromise=new Promise((e,t)=>r=t),this.controller=new AbortController;let n=()=>r(new H("Deferred data aborted"));this.unlistenAbortSignal=()=>this.controller.signal.removeEventListener("abort",n),this.controller.signal.addEventListener("abort",n),this.data=Object.entries(e).reduce((e,t)=>{let[r,n]=t;return Object.assign(e,{[r]:this.trackPromise(r,n)})},{}),this.done&&this.unlistenAbortSignal(),this.init=t}trackPromise(e,t){if(!(t instanceof Promise))return t;this.deferredKeys.push(e),this.pendingKeysSet.add(e);let r=Promise.race([t,this.abortPromise]).then(t=>this.onSettle(r,e,void 0,t),t=>this.onSettle(r,e,t));return r.catch(()=>{}),Object.defineProperty(r,"_tracked",{get:()=>!0}),r}onSettle(e,t,r,n){if(this.controller.signal.aborted&&r instanceof H)return this.unlistenAbortSignal(),Object.defineProperty(e,"_error",{get:()=>r}),Promise.reject(r);if(this.pendingKeysSet.delete(t),this.done&&this.unlistenAbortSignal(),void 0===r&&void 0===n){let r=Error('Deferred data for key "'+t+'" resolved/rejected with `undefined`, you must resolve/reject with a value or `null`.');return Object.defineProperty(e,"_error",{get:()=>r}),this.emit(!1,t),Promise.reject(r)}return void 0===n?(Object.defineProperty(e,"_error",{get:()=>r}),this.emit(!1,t),Promise.reject(r)):(Object.defineProperty(e,"_data",{get:()=>n}),this.emit(!1,t),n)}emit(e,t){this.subscribers.forEach(r=>r(e,t))}subscribe(e){return this.subscribers.add(e),()=>this.subscribers.delete(e)}cancel(){this.controller.abort(),this.pendingKeysSet.forEach((e,t)=>this.pendingKeysSet.delete(t)),this.emit(!0)}async resolveData(e){let t=!1;if(!this.done){let r=()=>this.cancel();e.addEventListener("abort",r),t=await new Promise(t=>{this.subscribe(n=>{e.removeEventListener("abort",r),(n||this.done)&&t(n)})})}return t}get done(){return 0===this.pendingKeysSet.size}get unwrappedData(){return h(null!==this.data&&this.done,"Can only unwrap data on initialized and settled deferreds"),Object.entries(this.data).reduce((e,t)=>{let[r,n]=t;return Object.assign(e,{[r]:function(e){if(!(e instanceof Promise&&!0===e._tracked))return e;if(e._error)throw e._error;return e._data}(n)})},{})}get pendingKeys(){return Array.from(this.pendingKeysSet)}}let $=function(e,t){return void 0===t&&(t={}),new V(e,"number"==typeof t?{status:t}:t)},W=function(e,t){void 0===t&&(t=302);let r=t;"number"==typeof r?r={status:r}:void 0===r.status&&(r.status=302);let n=new Headers(r.headers);return n.set("Location",e),new Response(null,l({},r,{headers:n}))},K=(e,t)=>{let r=W(e,t);return r.headers.set("X-Remix-Reload-Document","true"),r},q=(e,t)=>{let r=W(e,t);return r.headers.set("X-Remix-Replace","true"),r};class J{constructor(e,t,r,n){void 0===n&&(n=!1),this.status=e,this.statusText=t||"",this.internal=n,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function Y(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}let X=["post","put","patch","delete"],G=new Set(X),Q=new Set(["get",...X]),Z=new Set([301,302,303,307,308]),ee=new Set([307,308]),et={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},er={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},en={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},ea=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,eo=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),ei="remix-router-transitions";function el(e){let t,r,o,i,s,u,c=e.window?e.window:"u">typeof window?window:void 0,d=void 0!==c&&void 0!==c.document&&void 0!==c.document.createElement,p=!d;if(h(e.routes.length>0,"You must provide a non-empty routes array to createRouter"),e.mapRouteProperties)t=e.mapRouteProperties;else if(e.detectErrorBoundary){let r=e.detectErrorBoundary;t=e=>({hasErrorBoundary:r(e)})}else t=eo;let v={},y=w(e.routes,t,void 0,v),g=e.basename||"/",b=e.dataStrategy||ey,x=e.patchRoutesOnNavigation,C=l({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),P=null,D=new Set,L=null,O=null,A=null,_=null!=e.hydrationData,T=E(y,e.history.location,g),U=!1,j=null;if(null==T&&!x){let t=eO(404,{pathname:e.history.location.pathname}),{matches:r,route:n}=ek(y);T=r,j={[n.id]:t}}if(T&&!e.hydrationData&&to(T,y,e.history.location.pathname).active&&(T=null),T)if(T.some(e=>e.route.lazy))o=!1;else if(T.some(e=>e.route.loader))if(C.v7_partialHydration){let t=e.hydrationData?e.hydrationData.loaderData:null,r=e.hydrationData?e.hydrationData.errors:null;if(r){let e=T.findIndex(e=>void 0!==r[e.route.id]);o=T.slice(0,e+1).every(e=>!eh(e.route,t,r))}else o=T.every(e=>!eh(e.route,t,r))}else o=null!=e.hydrationData;else o=!0;else if(o=!1,T=[],C.v7_partialHydration){let t=to(null,y,e.history.location.pathname);t.active&&t.matches&&(U=!0,T=t.matches)}let M={historyAction:e.history.action,location:e.history.location,matches:T,initialized:o,navigation:et,restoreScrollPosition:null==e.hydrationData&&null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||j,fetchers:new Map,blockers:new Map},F=n.Pop,N=!1,B=!1,I=new Map,z=null,H=!1,V=!1,$=[],W=new Set,K=new Map,q=0,J=-1,X=new Map,G=new Set,Q=new Map,el=new Map,ec=new Set,ef=new Map,ep=new Map;function ev(e,t){void 0===t&&(t={}),M=l({},M,e);let r=[],n=[];C.v7_fetcherPersist&&M.fetchers.forEach((e,t)=>{"idle"===e.state&&(ec.has(t)?n.push(t):r.push(t))}),ec.forEach(e=>{M.fetchers.has(e)||K.has(e)||n.push(e)}),[...D].forEach(e=>e(M,{deletedFetchers:n,viewTransitionOpts:t.viewTransitionOpts,flushSync:!0===t.flushSync})),C.v7_fetcherPersist?(r.forEach(e=>M.fetchers.delete(e)),n.forEach(e=>e4(e))):n.forEach(e=>ec.delete(e))}function eb(t,a,o){var i,s;let u,c,{flushSync:d}=void 0===o?{}:o,h=null!=M.actionData&&null!=M.navigation.formMethod&&eN(M.navigation.formMethod)&&"loading"===M.navigation.state&&(null==(i=t.state)?void 0:i._isRedirect)!==!0;u=a.actionData?Object.keys(a.actionData).length>0?a.actionData:null:h?M.actionData:null;let f=a.loaderData?eP(M.loaderData,a.loaderData,a.matches||[],a.errors):M.loaderData,p=M.blockers;p.size>0&&(p=new Map(p)).forEach((e,t)=>p.set(t,en));let m=!0===N||null!=M.navigation.formMethod&&eN(M.navigation.formMethod)&&(null==(s=t.state)?void 0:s._isRedirect)!==!0;if(r&&(y=r,r=void 0),H||F===n.Pop||(F===n.Push?e.history.push(t,t.state):F===n.Replace&&e.history.replace(t,t.state)),F===n.Pop){let e=I.get(M.location.pathname);e&&e.has(t.pathname)?c={currentLocation:M.location,nextLocation:t}:I.has(t.pathname)&&(c={currentLocation:t,nextLocation:M.location})}else if(B){let e=I.get(M.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),I.set(M.location.pathname,e)),c={currentLocation:M.location,nextLocation:t}}ev(l({},a,{actionData:u,loaderData:f,historyAction:F,location:t,initialized:!0,navigation:et,revalidation:"idle",restoreScrollPosition:ta(t,a.matches||M.matches),preventScrollReset:m,blockers:p}),{viewTransitionOpts:c,flushSync:!0===d}),F=n.Pop,N=!1,B=!1,H=!1,V=!1,$=[]}async function eR(t,r){if("number"==typeof t)return void e.history.go(t);let a=es(M.location,M.matches,g,C.v7_prependBasename,t,C.v7_relativeSplatPath,null==r?void 0:r.fromRouteId,null==r?void 0:r.relative),{path:o,submission:i,error:s}=eu(C.v7_normalizeFormMethod,!1,a,r),u=M.location,c=m(M.location,o,r&&r.state);c=l({},c,e.history.encodeLocation(c));let d=r&&null!=r.replace?r.replace:void 0,h=n.Push;!0===d?h=n.Replace:!1===d||null!=i&&eN(i.formMethod)&&i.formAction===M.location.pathname+M.location.search&&(h=n.Replace);let f=r&&"preventScrollReset"in r?!0===r.preventScrollReset:void 0,p=!0===(r&&r.flushSync),v=te({currentLocation:u,nextLocation:c,historyAction:h});return v?void e9(v,{state:"blocked",location:c,proceed(){e9(v,{state:"proceeding",proceed:void 0,reset:void 0,location:c}),eR(t,r)},reset(){let e=new Map(M.blockers);e.set(v,en),ev({blockers:e})}}):await ex(h,c,{submission:i,pendingError:s,preventScrollReset:f,replace:r&&r.replace,enableViewTransition:r&&r.viewTransition,flushSync:p})}async function ex(t,n,o){var i,u,c,d;let h;s&&s.abort(),s=null,F=t,H=!0===(o&&o.startUninterruptedRevalidation),i=M.location,u=M.matches,L&&A&&(L[tn(i,u)]=A()),N=!0===(o&&o.preventScrollReset),B=!0===(o&&o.enableViewTransition);let f=r||y,p=o&&o.overrideNavigation,m=null!=o&&o.initialHydration&&M.matches&&M.matches.length>0&&!U?M.matches:E(f,n,g),v=!0===(o&&o.flushSync);if(m&&M.initialized&&!V&&(c=M.location,d=n,c.pathname===d.pathname&&c.search===d.search&&(""===c.hash?""!==d.hash:c.hash===d.hash||""!==d.hash||!1))&&!(o&&o.submission&&eN(o.submission.formMethod)))return void eb(n,{matches:m},{flushSync:v});let b=to(m,f,n.pathname);if(b.active&&b.matches&&(m=b.matches),!m){let{error:e,notFoundMatches:t,route:r}=tt(n.pathname);eb(n,{matches:t,loaderData:{},errors:{[r.id]:e}},{flushSync:v});return}s=new AbortController;let w=eS(e.history,n,s.signal,o&&o.submission);if(o&&o.pendingError)h=[eL(m).route.id,{type:a.error,error:o.pendingError}];else if(o&&o.submission&&eN(o.submission.formMethod)){let t=await e_(w,n,o.submission,m,b.active,{replace:o.replace,flushSync:v});if(t.shortCircuited)return;if(t.pendingActionResult){let[e,r]=t.pendingActionResult;if(eU(r)&&Y(r.error)&&404===r.error.status){s=null,eb(n,{matches:t.matches,loaderData:{},errors:{[e]:r.error}});return}}m=t.matches||m,h=t.pendingActionResult,p=eW(n,o.submission),v=!1,b.active=!1,w=eS(e.history,w.url,w.signal)}let{shortCircuited:S,matches:R,loaderData:x,errors:C}=await eM(w,n,m,b.active,p,o&&o.submission,o&&o.fetcherSubmission,o&&o.replace,o&&!0===o.initialHydration,v,h);S||(s=null,eb(n,l({matches:R||m},eD(h),{loaderData:x,errors:C})))}async function e_(t,r,o,i,l,s){var u;let c;if(void 0===s&&(s={}),eZ(),ev({navigation:{state:"submitting",location:r,formMethod:(u=o).formMethod,formAction:u.formAction,formEncType:u.formEncType,formData:u.formData,json:u.json,text:u.text}},{flushSync:!0===s.flushSync}),l){let e=await ti(i,r.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){let t=eL(e.partialMatches).route.id;return{matches:e.partialMatches,pendingActionResult:[t,{type:a.error,error:e.error}]}}if(e.matches)i=e.matches;else{let{notFoundMatches:e,error:t,route:n}=tt(r.pathname);return{matches:e,pendingActionResult:[n.id,{type:a.error,error:t}]}}}let d=eV(i,r);if(d.route.action||d.route.lazy){if(c=(await eG("action",M,t,[d],i,null))[d.route.id],t.signal.aborted)return{shortCircuited:!0}}else c={type:a.error,error:eO(405,{method:t.method,pathname:r.pathname,routeId:d.route.id})};if(ej(c)){let r;return r=s&&null!=s.replace?s.replace:eE(c.response.headers.get("Location"),new URL(t.url),g,e.history)===M.location.pathname+M.location.search,await eX(t,c,!0,{submission:o,replace:r}),{shortCircuited:!0}}if(eT(c))throw eO(400,{type:"defer-action"});if(eU(c)){let e=eL(i,d.route.id);return!0!==(s&&s.replace)&&(F=n.Push),{matches:i,pendingActionResult:[e.route.id,c]}}return{matches:i,pendingActionResult:[d.route.id,c]}}async function eM(t,n,a,o,i,u,c,d,h,f,p){let m=i||eW(n,u),v=u||c||e$(m),b=!H&&(!C.v7_partialHydration||!h);if(o){if(b){let e=eH(p);ev(l({navigation:m},void 0!==e?{actionData:e}:{}),{flushSync:f})}let e=await ti(a,n.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){let t=eL(e.partialMatches).route.id;return{matches:e.partialMatches,loaderData:{},errors:{[t]:e.error}}}if(e.matches)a=e.matches;else{let{error:e,notFoundMatches:t,route:r}=tt(n.pathname);return{matches:t,loaderData:{},errors:{[r.id]:e}}}}let w=r||y,[E,S]=ed(e.history,M,a,v,n,C.v7_partialHydration&&!0===h,C.v7_skipActionErrorRevalidation,V,$,W,ec,Q,G,w,g,p);if(tr(e=>!(a&&a.some(t=>t.route.id===e))||E&&E.some(t=>t.route.id===e)),J=++q,0===E.length&&0===S.length){let e=e2();return eb(n,l({matches:a,loaderData:{},errors:p&&eU(p[1])?{[p[0]]:p[1].error}:null},eD(p),e?{fetchers:new Map(M.fetchers)}:{}),{flushSync:f}),{shortCircuited:!0}}if(b){let e={};if(!o){e.navigation=m;let t=eH(p);void 0!==t&&(e.actionData=t)}S.length>0&&(S.forEach(e=>{let t=M.fetchers.get(e.key),r=eK(void 0,t?t.data:void 0);M.fetchers.set(e.key,r)}),e.fetchers=new Map(M.fetchers)),ev(e,{flushSync:f})}S.forEach(e=>{e3(e.key),e.controller&&K.set(e.key,e.controller)});let R=()=>S.forEach(e=>e3(e.key));s&&s.signal.addEventListener("abort",R);let{loaderResults:x,fetcherResults:P}=await eQ(M,a,E,S,t);if(t.signal.aborted)return{shortCircuited:!0};s&&s.signal.removeEventListener("abort",R),S.forEach(e=>K.delete(e.key));let D=eA(x);if(D)return await eX(t,D.result,!0,{replace:d}),{shortCircuited:!0};if(D=eA(P))return G.add(D.key),await eX(t,D.result,!0,{replace:d}),{shortCircuited:!0};let{loaderData:L,errors:k}=eC(M,a,x,p,S,P,ef);ef.forEach((e,t)=>{e.subscribe(r=>{(r||e.done)&&ef.delete(t)})}),C.v7_partialHydration&&h&&M.errors&&(k=l({},M.errors,k));let O=e2(),A=e8(J),_=O||A||S.length>0;return l({matches:a,loaderData:L,errors:k},_?{fetchers:new Map(M.fetchers)}:{})}function eH(e){if(e&&!eU(e[1]))return{[e[0]]:e[1].data};if(M.actionData)if(0===Object.keys(M.actionData).length)return null;else return M.actionData}async function eJ(t,n,a,o,i,l,u,c,d){var f,p;function m(e){if(!e.route.action&&!e.route.lazy){let e=eO(405,{method:d.formMethod,pathname:a,routeId:n});return e1(t,n,e,{flushSync:u}),!0}return!1}if(eZ(),Q.delete(t),!l&&m(o))return;let v=M.fetchers.get(t);e0(t,(f=d,p=v,{state:"submitting",formMethod:f.formMethod,formAction:f.formAction,formEncType:f.formEncType,formData:f.formData,json:f.json,text:f.text,data:p?p.data:void 0}),{flushSync:u});let b=new AbortController,w=eS(e.history,a,b.signal,d);if(l){let e=await ti(i,new URL(w.url).pathname,w.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void e1(t,n,e.error,{flushSync:u});if(!e.matches)return void e1(t,n,eO(404,{pathname:a}),{flushSync:u});if(m(o=eV(i=e.matches,a)))return}K.set(t,b);let S=q,R=(await eG("action",M,w,[o],i,t))[o.route.id];if(w.signal.aborted){K.get(t)===b&&K.delete(t);return}if(C.v7_fetcherPersist&&ec.has(t)){if(ej(R)||eU(R))return void e0(t,eq(void 0))}else{if(ej(R))return(K.delete(t),J>S)?void e0(t,eq(void 0)):(G.add(t),e0(t,eK(d)),eX(w,R,!1,{fetcherSubmission:d,preventScrollReset:c}));if(eU(R))return void e1(t,n,R.error)}if(eT(R))throw eO(400,{type:"defer-action"});let x=M.navigation.location||M.location,P=eS(e.history,x,b.signal),D=r||y,L="idle"!==M.navigation.state?E(D,M.navigation.location,g):M.matches;h(L,"Didn't find any matches after fetcher action");let k=++q;X.set(t,k);let O=eK(d,R.data);M.fetchers.set(t,O);let[A,_]=ed(e.history,M,L,d,x,!1,C.v7_skipActionErrorRevalidation,V,$,W,ec,Q,G,D,g,[o.route.id,R]);_.filter(e=>e.key!==t).forEach(e=>{let t=e.key,r=M.fetchers.get(t),n=eK(void 0,r?r.data:void 0);M.fetchers.set(t,n),e3(t),e.controller&&K.set(t,e.controller)}),ev({fetchers:new Map(M.fetchers)});let T=()=>_.forEach(e=>e3(e.key));b.signal.addEventListener("abort",T);let{loaderResults:U,fetcherResults:j}=await eQ(M,L,A,_,P);if(b.signal.aborted)return;b.signal.removeEventListener("abort",T),X.delete(t),K.delete(t),_.forEach(e=>K.delete(e.key));let N=eA(U);if(N)return eX(P,N.result,!1,{preventScrollReset:c});if(N=eA(j))return G.add(N.key),eX(P,N.result,!1,{preventScrollReset:c});let{loaderData:B,errors:I}=eC(M,L,U,void 0,_,j,ef);if(M.fetchers.has(t)){let e=eq(R.data);M.fetchers.set(t,e)}e8(k),"loading"===M.navigation.state&&k>J?(h(F,"Expected pending action"),s&&s.abort(),eb(M.navigation.location,{matches:L,loaderData:B,errors:I,fetchers:new Map(M.fetchers)})):(ev({errors:I,loaderData:eP(M.loaderData,B,L,I),fetchers:new Map(M.fetchers)}),V=!1)}async function eY(t,r,n,a,o,i,l,s,u){let c=M.fetchers.get(t);e0(t,eK(u,c?c.data:void 0),{flushSync:l});let d=new AbortController,f=eS(e.history,n,d.signal);if(i){let e=await ti(o,new URL(f.url).pathname,f.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void e1(t,r,e.error,{flushSync:l});if(!e.matches)return void e1(t,r,eO(404,{pathname:n}),{flushSync:l});a=eV(o=e.matches,n)}K.set(t,d);let p=q,m=(await eG("loader",M,f,[a],o,t))[a.route.id];if(eT(m)&&(m=await ez(m,f.signal,!0)||m),K.get(t)===d&&K.delete(t),!f.signal.aborted){if(ec.has(t))return void e0(t,eq(void 0));if(ej(m))if(J>p)return void e0(t,eq(void 0));else{G.add(t),await eX(f,m,!1,{preventScrollReset:s});return}if(eU(m))return void e1(t,r,m.error);h(!eT(m),"Unhandled fetcher deferred data"),e0(t,eq(m.data))}}async function eX(t,r,a,o){let{submission:i,fetcherSubmission:u,preventScrollReset:f,replace:p}=void 0===o?{}:o;r.response.headers.has("X-Remix-Revalidate")&&(V=!0);let v=r.response.headers.get("Location");h(v,"Expected a Location header on the redirect Response"),v=eE(v,new URL(t.url),g,e.history);let y=m(M.location,v,{_isRedirect:!0});if(d){let t=!1;if(r.response.headers.has("X-Remix-Reload-Document"))t=!0;else if(ea.test(v)){let r=e.history.createURL(v);t=r.origin!==c.location.origin||null==k(r.pathname,g)}if(t)return void(p?c.location.replace(v):c.location.assign(v))}s=null;let b=!0===p||r.response.headers.has("X-Remix-Replace")?n.Replace:n.Push,{formMethod:w,formAction:E,formEncType:S}=M.navigation;!i&&!u&&w&&E&&S&&(i=e$(M.navigation));let R=i||u;if(ee.has(r.response.status)&&R&&eN(R.formMethod))await ex(b,y,{submission:l({},R,{formAction:v}),preventScrollReset:f||N,enableViewTransition:a?B:void 0});else{let e=eW(y,i);await ex(b,y,{overrideNavigation:e,fetcherSubmission:u,preventScrollReset:f||N,enableViewTransition:a?B:void 0})}}async function eG(e,r,n,o,i,l){let s,u={};try{s=await eg(b,e,r,n,o,i,l,v,t)}catch(e){return o.forEach(t=>{u[t.route.id]={type:a.error,error:e}}),u}for(let[e,t]of Object.entries(s)){var c;if(eF((c=t).result)&&Z.has(c.result.status)){let r=t.result;u[e]={type:a.redirect,response:function(e,t,r,n,a,o){let i=e.headers.get("Location");if(h(i,"Redirects returned/thrown from loaders/actions must have a Location header"),!ea.test(i)){let l=n.slice(0,n.findIndex(e=>e.route.id===r)+1);i=es(new URL(t.url),l,a,!0,i,o),e.headers.set("Location",i)}return e}(r,n,e,i,g,C.v7_relativeSplatPath)}}else u[e]=await ew(t)}return u}async function eQ(t,r,n,o,i){let l=t.matches,s=eG("loader",t,i,n,r,null),u=Promise.all(o.map(async r=>{if(!r.matches||!r.match||!r.controller)return Promise.resolve({[r.key]:{type:a.error,error:eO(404,{pathname:r.path})}});{let n=(await eG("loader",t,eS(e.history,r.path,r.controller.signal),[r.match],r.matches,r.key))[r.match.route.id];return{[r.key]:n}}})),c=await s,d=(await u).reduce((e,t)=>Object.assign(e,t),{});return await Promise.all([eB(r,c,i.signal,l,t.loaderData),eI(r,d,o)]),{loaderResults:c,fetcherResults:d}}function eZ(){V=!0,$.push(...tr()),Q.forEach((e,t)=>{K.has(t)&&W.add(t),e3(t)})}function e0(e,t,r){void 0===r&&(r={}),M.fetchers.set(e,t),ev({fetchers:new Map(M.fetchers)},{flushSync:!0===(r&&r.flushSync)})}function e1(e,t,r,n){void 0===n&&(n={});let a=eL(M.matches,t);e4(e),ev({errors:{[a.route.id]:r},fetchers:new Map(M.fetchers)},{flushSync:!0===(n&&n.flushSync)})}function e7(e){return el.set(e,(el.get(e)||0)+1),ec.has(e)&&ec.delete(e),M.fetchers.get(e)||er}function e4(e){let t=M.fetchers.get(e);K.has(e)&&!(t&&"loading"===t.state&&X.has(e))&&e3(e),Q.delete(e),X.delete(e),G.delete(e),C.v7_fetcherPersist&&ec.delete(e),W.delete(e),M.fetchers.delete(e)}function e3(e){let t=K.get(e);t&&(t.abort(),K.delete(e))}function e5(e){for(let t of e){let e=eq(e7(t).data);M.fetchers.set(t,e)}}function e2(){let e=[],t=!1;for(let r of G){let n=M.fetchers.get(r);h(n,"Expected fetcher: "+r),"loading"===n.state&&(G.delete(r),e.push(r),t=!0)}return e5(e),t}function e8(e){let t=[];for(let[r,n]of X)if(n<e){let e=M.fetchers.get(r);h(e,"Expected fetcher: "+r),"loading"===e.state&&(e3(r),X.delete(r),t.push(r))}return e5(t),t.length>0}function e6(e){M.blockers.delete(e),ep.delete(e)}function e9(e,t){let r=M.blockers.get(e)||en;h("unblocked"===r.state&&"blocked"===t.state||"blocked"===r.state&&"blocked"===t.state||"blocked"===r.state&&"proceeding"===t.state||"blocked"===r.state&&"unblocked"===t.state||"proceeding"===r.state&&"unblocked"===t.state,"Invalid blocker state transition: "+r.state+" -> "+t.state);let n=new Map(M.blockers);n.set(e,t),ev({blockers:n})}function te(e){let{currentLocation:t,nextLocation:r,historyAction:n}=e;if(0===ep.size)return;ep.size>1&&f(!1,"A router only supports one blocker at a time");let a=Array.from(ep.entries()),[o,i]=a[a.length-1],l=M.blockers.get(o);if((!l||"proceeding"!==l.state)&&i({currentLocation:t,nextLocation:r,historyAction:n}))return o}function tt(e){let t=eO(404,{pathname:e}),{matches:n,route:a}=ek(r||y);return tr(),{notFoundMatches:n,route:a,error:t}}function tr(e){let t=[];return ef.forEach((r,n)=>{(!e||e(n))&&(r.cancel(),t.push(n),ef.delete(n))}),t}function tn(e,t){return O&&O(e,t.map(e=>R(e,M.loaderData)))||e.key}function ta(e,t){if(L){let r=L[tn(e,t)];if("number"==typeof r)return r}return null}function to(e,t,r){if(x){if(!e)return{active:!0,matches:S(t,r,g,!0)||[]};else if(Object.keys(e[0].params).length>0)return{active:!0,matches:S(t,r,g,!0)}}return{active:!1,matches:null}}async function ti(e,n,a,o){if(!x)return{type:"success",matches:e};let i=e;for(;;){let e=null==r,l=r||y,s=v;try{await x({signal:a,path:n,matches:i,fetcherKey:o,patch:(e,r)=>{a.aborted||em(e,r,l,s,t)}})}catch(e){return{type:"error",error:e,partialMatches:i}}finally{e&&!a.aborted&&(y=[...y])}if(a.aborted)return{type:"aborted"};let u=E(l,n,g);if(u)return{type:"success",matches:u};let c=S(l,n,g,!0);if(!c||i.length===c.length&&i.every((e,t)=>e.route.id===c[t].route.id))return{type:"success",matches:null};i=c}}return i={get basename(){return g},get future(){return C},get state(){return M},get routes(){return y},get window(){return c},initialize:function(){if(P=e.history.listen(t=>{let{action:r,location:n,delta:a}=t;if(u){u(),u=void 0;return}f(0===ep.size||null!=a,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let o=te({currentLocation:M.location,nextLocation:n,historyAction:r});if(o&&null!=a){let t=new Promise(e=>{u=e});e.history.go(-1*a),e9(o,{state:"blocked",location:n,proceed(){e9(o,{state:"proceeding",proceed:void 0,reset:void 0,location:n}),t.then(()=>e.history.go(a))},reset(){let e=new Map(M.blockers);e.set(o,en),ev({blockers:e})}});return}return ex(r,n)}),d){var t=c,r=I;try{let e=t.sessionStorage.getItem(ei);if(e){let t=JSON.parse(e);for(let[e,n]of Object.entries(t||{}))n&&Array.isArray(n)&&r.set(e,new Set(n||[]))}}catch(e){}let e=()=>(function(e,t){if(t.size>0){let r={};for(let[e,n]of t)r[e]=[...n];try{e.sessionStorage.setItem(ei,JSON.stringify(r))}catch(e){f(!1,"Failed to save applied view transitions in sessionStorage ("+e+").")}}})(c,I);c.addEventListener("pagehide",e),z=()=>c.removeEventListener("pagehide",e)}return M.initialized||ex(n.Pop,M.location,{initialHydration:!0}),i},subscribe:function(e){return D.add(e),()=>D.delete(e)},enableScrollRestoration:function(e,t,r){if(L=e,A=t,O=r||null,!_&&M.navigation===et){_=!0;let e=ta(M.location,M.matches);null!=e&&ev({restoreScrollPosition:e})}return()=>{L=null,A=null,O=null}},navigate:eR,fetch:function(e,t,n,a){if(p)throw Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");e3(e);let o=!0===(a&&a.flushSync),i=r||y,l=es(M.location,M.matches,g,C.v7_prependBasename,n,C.v7_relativeSplatPath,t,null==a?void 0:a.relative),s=E(i,l,g),u=to(s,i,l);if(u.active&&u.matches&&(s=u.matches),!s)return void e1(e,t,eO(404,{pathname:l}),{flushSync:o});let{path:c,submission:d,error:h}=eu(C.v7_normalizeFormMethod,!0,l,a);if(h)return void e1(e,t,h,{flushSync:o});let f=eV(s,c),m=!0===(a&&a.preventScrollReset);d&&eN(d.formMethod)?eJ(e,t,c,f,s,u.active,o,m,d):(Q.set(e,{routeId:t,path:c}),eY(e,t,c,f,s,u.active,o,m,d))},revalidate:function(){if(eZ(),ev({revalidation:"loading"}),"submitting"!==M.navigation.state){if("idle"===M.navigation.state)return void ex(M.historyAction,M.location,{startUninterruptedRevalidation:!0});ex(F||M.historyAction,M.navigation.location,{overrideNavigation:M.navigation,enableViewTransition:!0===B})}},createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:e7,deleteFetcher:function(e){let t=(el.get(e)||0)-1;t<=0?(el.delete(e),ec.add(e),C.v7_fetcherPersist||e4(e)):el.set(e,t),ev({fetchers:new Map(M.fetchers)})},dispose:function(){P&&P(),z&&z(),D.clear(),s&&s.abort(),M.fetchers.forEach((e,t)=>e4(t)),M.blockers.forEach((e,t)=>e6(t))},getBlocker:function(e,t){let r=M.blockers.get(e)||en;return ep.get(e)!==t&&ep.set(e,t),r},deleteBlocker:e6,patchRoutes:function(e,n){let a=null==r;em(e,n,r||y,v,t),a&&(y=[...y],ev({}))},_internalFetchControllers:K,_internalActiveDeferreds:ef,_internalSetRoutes:function(e){r=w(e,t,void 0,v={})}}}function es(e,t,r,n,a,o,i,l){let s,u;if(i){for(let e of(s=[],t))if(s.push(e),e.route.id===i){u=e;break}}else s=t,u=t[t.length-1];let c=M(a||".",j(s,o),k(e.pathname,r)||e.pathname,"path"===l);if(null==a&&(c.search=e.search,c.hash=e.hash),(null==a||""===a||"."===a)&&u){let e=eH(c.search);if(u.route.index&&!e)c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index";else if(!u.route.index&&e){let e=new URLSearchParams(c.search),t=e.getAll("index");e.delete("index"),t.filter(e=>e).forEach(t=>e.append("index",t));let r=e.toString();c.search=r?"?"+r:""}}return n&&"/"!==r&&(c.pathname="/"===c.pathname?r:F([r,c.pathname])),v(c)}function eu(e,t,r,n){var a;let o,i;if(!n||!(null!=n&&("formData"in n&&null!=n.formData||"body"in n&&void 0!==n.body)))return{path:r};if(n.formMethod&&(a=n.formMethod,!Q.has(a.toLowerCase())))return{path:r,error:eO(405,{method:n.formMethod})};let l=()=>({path:r,error:eO(400,{type:"invalid-body"})}),s=n.formMethod||"get",u=e?s.toUpperCase():s.toLowerCase(),c=e_(r);if(void 0!==n.body){if("text/plain"===n.formEncType){if(!eN(u))return l();let e="string"==typeof n.body?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((e,t)=>{let[r,n]=t;return""+e+r+"="+n+"\n"},""):String(n.body);return{path:r,submission:{formMethod:u,formAction:c,formEncType:n.formEncType,formData:void 0,json:void 0,text:e}}}else if("application/json"===n.formEncType){if(!eN(u))return l();try{let e="string"==typeof n.body?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:u,formAction:c,formEncType:n.formEncType,formData:void 0,json:e,text:void 0}}}catch(e){return l()}}}if(h("function"==typeof FormData,"FormData is not available in this environment"),n.formData)o=eR(n.formData),i=n.formData;else if(n.body instanceof FormData)o=eR(n.body),i=n.body;else if(n.body instanceof URLSearchParams)i=ex(o=n.body);else if(null==n.body)o=new URLSearchParams,i=new FormData;else try{o=new URLSearchParams(n.body),i=ex(o)}catch(e){return l()}let d={formMethod:u,formAction:c,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:i,json:void 0,text:void 0};if(eN(d.formMethod))return{path:r,submission:d};let f=y(r);return t&&f.search&&eH(f.search)&&o.append("index",""),f.search="?"+o,{path:v(f),submission:d}}function ec(e,t,r){void 0===r&&(r=!1);let n=e.findIndex(e=>e.route.id===t);return n>=0?e.slice(0,r?n+1:n):e}function ed(e,t,r,n,a,o,i,s,u,c,d,h,f,p,m,v){let y=v?eU(v[1])?v[1].error:v[1].data:void 0,g=e.createURL(t.location),b=e.createURL(a),w=r;o&&t.errors?w=ec(r,Object.keys(t.errors)[0],!0):v&&eU(v[1])&&(w=ec(r,v[0]));let S=v?v[1].statusCode:void 0,R=i&&S&&S>=400,x=w.filter((e,r)=>{var a,i,c;let d,h,{route:f}=e;if(f.lazy)return!0;if(null==f.loader)return!1;if(o)return eh(f,t.loaderData,t.errors);if(a=t.loaderData,i=t.matches[r],c=e,d=!i||c.route.id!==i.route.id,h=void 0===a[c.route.id],d||h||u.some(t=>t===e.route.id))return!0;let p=t.matches[r];return ep(e,l({currentUrl:g,currentParams:p.params,nextUrl:b,nextParams:e.params},n,{actionResult:y,actionStatus:S,defaultShouldRevalidate:!R&&(s||g.pathname+g.search===b.pathname+b.search||g.search!==b.search||ef(p,e))}))}),C=[];return h.forEach((e,a)=>{if(o||!r.some(t=>t.route.id===e.routeId)||d.has(a))return;let i=E(p,e.path,m);if(!i)return void C.push({key:a,routeId:e.routeId,path:e.path,matches:null,match:null,controller:null});let u=t.fetchers.get(a),h=eV(i,e.path),v=!1;f.has(a)?v=!1:c.has(a)?(c.delete(a),v=!0):v=u&&"idle"!==u.state&&void 0===u.data?s:ep(h,l({currentUrl:g,currentParams:t.matches[t.matches.length-1].params,nextUrl:b,nextParams:r[r.length-1].params},n,{actionResult:y,actionStatus:S,defaultShouldRevalidate:!R&&s})),v&&C.push({key:a,routeId:e.routeId,path:e.path,matches:i,match:h,controller:new AbortController})}),[x,C]}function eh(e,t,r){if(e.lazy)return!0;if(!e.loader)return!1;let n=null!=t&&void 0!==t[e.id],a=null!=r&&void 0!==r[e.id];return(!!n||!a)&&("function"==typeof e.loader&&!0===e.loader.hydrate||!n&&!a)}function ef(e,t){let r=e.route.path;return e.pathname!==t.pathname||null!=r&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function ep(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if("boolean"==typeof r)return r}return t.defaultShouldRevalidate}function em(e,t,r,n,a){var o;let i;if(e){let t=n[e];h(t,"No route found to patch children into: routeId = "+e),t.children||(t.children=[]),i=t.children}else i=r;let l=w(t.filter(e=>!i.some(t=>(function e(t,r){return"id"in t&&"id"in r&&t.id===r.id||t.index===r.index&&t.path===r.path&&t.caseSensitive===r.caseSensitive&&((!t.children||0===t.children.length)&&(!r.children||0===r.children.length)||t.children.every((t,n)=>{var a;return null==(a=r.children)?void 0:a.some(r=>e(t,r))}))})(e,t))),a,[e||"_","patch",String((null==(o=i)?void 0:o.length)||"0")],n);i.push(...l)}async function ev(e,t,r){if(!e.lazy)return;let n=await e.lazy();if(!e.lazy)return;let a=r[e.id];h(a,"No route found in manifest");let o={};for(let e in n){let t=void 0!==a[e]&&"hasErrorBoundary"!==e;f(!t,'Route "'+a.id+'" has a static property "'+e+'" defined but its lazy function is also returning a value for this property. The lazy route property "'+e+'" will be ignored.'),t||b.has(e)||(o[e]=n[e])}Object.assign(a,o),Object.assign(a,l({},t(a),{lazy:void 0}))}async function ey(e){let{matches:t}=e,r=t.filter(e=>e.shouldLoad);return(await Promise.all(r.map(e=>e.resolve()))).reduce((e,t,n)=>Object.assign(e,{[r[n].route.id]:t}),{})}async function eg(e,t,r,n,o,i,s,u,c,d){let h=i.map(e=>e.route.lazy?ev(e.route,c,u):void 0),f=i.map((e,r)=>{let i=h[r],s=o.some(t=>t.route.id===e.route.id),u=async r=>(r&&"GET"===n.method&&(e.route.lazy||e.route.loader)&&(s=!0),s?eb(t,n,e,i,r,d):Promise.resolve({type:a.data,result:void 0}));return l({},e,{shouldLoad:s,resolve:u})}),p=await e({matches:f,request:n,params:i[0].params,fetcherKey:s,context:d});try{await Promise.all(h)}catch(e){}return p}async function eb(e,t,r,n,o,i){let l,s,u=n=>{let a,l=new Promise((e,t)=>a=t);s=()=>a(),t.signal.addEventListener("abort",s);let u=a=>"function"!=typeof n?Promise.reject(Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: ')+r.route.id+"]")):n({request:t,params:r.params,context:i},...void 0!==a?[a]:[]);return Promise.race([(async()=>{try{let e=await (o?o(e=>u(e)):u());return{type:"data",result:e}}catch(e){return{type:"error",result:e}}})(),l])};try{let o=r.route[e];if(n)if(o){let e,[t]=await Promise.all([u(o).catch(t=>{e=t}),n]);if(void 0!==e)throw e;l=t}else if(await n,o=r.route[e])l=await u(o);else{if("action"!==e)return{type:a.data,result:void 0};let n=new URL(t.url),o=n.pathname+n.search;throw eO(405,{method:t.method,pathname:o,routeId:r.route.id})}else if(o)l=await u(o);else{let e=new URL(t.url),r=e.pathname+e.search;throw eO(404,{pathname:r})}h(void 0!==l.result,"You defined "+("action"===e?"an action":"a loader")+" for route "+('"'+r.route.id+"\" but didn't return anything from your `")+e+"` function. Please return a value or `null`.")}catch(e){return{type:a.error,result:e}}finally{s&&t.signal.removeEventListener("abort",s)}return l}async function ew(e){var t,r,n,o,i,l,s,u,c;let{result:d,type:h}=e;if(eF(d)){let e;try{let t=d.headers.get("Content-Type");e=t&&/\bapplication\/json\b/.test(t)?null==d.body?null:await d.json():await d.text()}catch(e){return{type:a.error,error:e}}return h===a.error?{type:a.error,error:new J(d.status,d.statusText,e),statusCode:d.status,headers:d.headers}:{type:a.data,data:e,statusCode:d.status,headers:d.headers}}if(h===a.error)return eM(d)?d.data instanceof Error?{type:a.error,error:d.data,statusCode:null==(n=d.init)?void 0:n.status,headers:null!=(o=d.init)&&o.headers?new Headers(d.init.headers):void 0}:{type:a.error,error:new J((null==(t=d.init)?void 0:t.status)||500,void 0,d.data),statusCode:Y(d)?d.status:void 0,headers:null!=(r=d.init)&&r.headers?new Headers(d.init.headers):void 0}:{type:a.error,error:d,statusCode:Y(d)?d.status:void 0};return(c=d)&&"object"==typeof c&&"object"==typeof c.data&&"function"==typeof c.subscribe&&"function"==typeof c.cancel&&"function"==typeof c.resolveData?{type:a.deferred,deferredData:d,statusCode:null==(i=d.init)?void 0:i.status,headers:(null==(l=d.init)?void 0:l.headers)&&new Headers(d.init.headers)}:eM(d)?{type:a.data,data:d.data,statusCode:null==(s=d.init)?void 0:s.status,headers:null!=(u=d.init)&&u.headers?new Headers(d.init.headers):void 0}:{type:a.data,data:d}}function eE(e,t,r,n){let a=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];if(ea.test(e)){let n=new URL(e.startsWith("//")?t.protocol+e:e);if(a.includes(n.protocol))throw Error("Invalid redirect location");let o=null!=k(n.pathname,r);if(n.origin===t.origin&&o)return n.pathname+n.search+n.hash}try{let t=n.createURL(e);if(a.includes(t.protocol))throw Error("Invalid redirect location")}catch(e){}return e}function eS(e,t,r,n){let a=e.createURL(e_(t)).toString(),o={signal:r};if(n&&eN(n.formMethod)){let{formMethod:e,formEncType:t}=n;o.method=e.toUpperCase(),"application/json"===t?(o.headers=new Headers({"Content-Type":t}),o.body=JSON.stringify(n.json)):"text/plain"===t?o.body=n.text:"application/x-www-form-urlencoded"===t&&n.formData?o.body=eR(n.formData):o.body=n.formData}return new Request(a,o)}function eR(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,"string"==typeof n?n:n.name);return t}function ex(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function eC(e,t,r,n,a,o,i){let s,u,c,d,f,p,{loaderData:m,errors:v}=(u={},c=null,d=!1,f={},p=n&&eU(n[1])?n[1].error:void 0,t.forEach(e=>{if(!(e.route.id in r))return;let n=e.route.id,a=r[n];if(h(!ej(a),"Cannot handle redirect results in processLoaderData"),eU(a)){let e=a.error;void 0!==p&&(e=p,p=void 0),c=c||{},1;{let r=eL(t,n);null==c[r.route.id]&&(c[r.route.id]=e)}u[n]=void 0,d||(d=!0,s=Y(a.error)?a.error.status:500),a.headers&&(f[n]=a.headers)}else eT(a)?(i.set(n,a.deferredData),u[n]=a.deferredData.data,null==a.statusCode||200===a.statusCode||d||(s=a.statusCode)):(u[n]=a.data,a.statusCode&&200!==a.statusCode&&!d&&(s=a.statusCode)),a.headers&&(f[n]=a.headers)}),void 0!==p&&n&&(c={[n[0]]:p},u[n[0]]=void 0),{loaderData:u,errors:c,statusCode:s||200,loaderHeaders:f});return a.forEach(t=>{let{key:r,match:n,controller:a}=t,i=o[r];if(h(i,"Did not find corresponding fetcher result"),!a||!a.signal.aborted)if(eU(i)){let t=eL(e.matches,null==n?void 0:n.route.id);v&&v[t.route.id]||(v=l({},v,{[t.route.id]:i.error})),e.fetchers.delete(r)}else if(ej(i))h(!1,"Unhandled fetcher revalidation redirect");else if(eT(i))h(!1,"Unhandled fetcher deferred data");else{let t=eq(i.data);e.fetchers.set(r,t)}}),{loaderData:m,errors:v}}function eP(e,t,r,n){let a=l({},t);for(let o of r){let r=o.route.id;if(t.hasOwnProperty(r)?void 0!==t[r]&&(a[r]=t[r]):void 0!==e[r]&&o.route.loader&&(a[r]=e[r]),n&&n.hasOwnProperty(r))break}return a}function eD(e){return e?eU(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function eL(e,t){return(t?e.slice(0,e.findIndex(e=>e.route.id===t)+1):[...e]).reverse().find(e=>!0===e.route.hasErrorBoundary)||e[0]}function ek(e){let t=1===e.length?e[0]:e.find(e=>e.index||!e.path||"/"===e.path)||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function eO(e,t){let{pathname:r,routeId:n,method:a,type:o,message:i}=void 0===t?{}:t,l="Unknown Server Error",s="Unknown @remix-run/router error";return 400===e?(l="Bad Request",a&&r&&n?s="You made a "+a+' request to "'+r+'" but did not provide a `loader` for route "'+n+'", so there is no way to handle the request.':"defer-action"===o?s="defer() is not supported in actions":"invalid-body"===o&&(s="Unable to encode submission body")):403===e?(l="Forbidden",s='Route "'+n+'" does not match URL "'+r+'"'):404===e?(l="Not Found",s='No route matches URL "'+r+'"'):405===e&&(l="Method Not Allowed",a&&r&&n?s="You made a "+a.toUpperCase()+' request to "'+r+'" but did not provide an `action` for route "'+n+'", so there is no way to handle the request.':a&&(s='Invalid request method "'+a.toUpperCase()+'"')),new J(e||500,l,Error(s),!0)}function eA(e){let t=Object.entries(e);for(let e=t.length-1;e>=0;e--){let[r,n]=t[e];if(ej(n))return{key:r,result:n}}}function e_(e){let t="string"==typeof e?y(e):e;return v(l({},t,{hash:""}))}function eT(e){return e.type===a.deferred}function eU(e){return e.type===a.error}function ej(e){return(e&&e.type)===a.redirect}function eM(e){return"object"==typeof e&&null!=e&&"type"in e&&"data"in e&&"init"in e&&"DataWithResponseInit"===e.type}function eF(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"object"==typeof e.headers&&void 0!==e.body}function eN(e){return G.has(e.toLowerCase())}async function eB(e,t,r,n,a){let o=Object.entries(t);for(let i=0;i<o.length;i++){let[l,s]=o[i],u=e.find(e=>(null==e?void 0:e.route.id)===l);if(!u)continue;let c=n.find(e=>e.route.id===u.route.id),d=null!=c&&!ef(c,u)&&(a&&a[u.route.id])!==void 0;eT(s)&&d&&await ez(s,r,!1).then(e=>{e&&(t[l]=e)})}}async function eI(e,t,r){for(let n=0;n<r.length;n++){let{key:a,routeId:o,controller:i}=r[n],l=t[a];e.find(e=>(null==e?void 0:e.route.id)===o)&&eT(l)&&(h(i,"Expected an AbortController for revalidating fetcher deferred result"),await ez(l,i.signal,!0).then(e=>{e&&(t[a]=e)}))}}async function ez(e,t,r){if(void 0===r&&(r=!1),!await e.deferredData.resolveData(t)){if(r)try{return{type:a.data,data:e.deferredData.unwrappedData}}catch(e){return{type:a.error,error:e}}return{type:a.data,data:e.deferredData.data}}}function eH(e){return new URLSearchParams(e).getAll("index").some(e=>""===e)}function eV(e,t){let r="string"==typeof t?y(t).search:t.search;if(e[e.length-1].route.index&&eH(r||""))return e[e.length-1];let n=U(e);return n[n.length-1]}function e$(e){let{formMethod:t,formAction:r,formEncType:n,text:a,formData:o,json:i}=e;if(t&&r&&n){if(null!=a)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:a};else if(null!=o)return{formMethod:t,formAction:r,formEncType:n,formData:o,json:void 0,text:void 0};else if(void 0!==i)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:i,text:void 0}}}function eW(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function eK(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function eq(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}Symbol("deferred")},49348(e,t,r){r.r(t),r.d(t,{AbortedDeferredError:()=>c.tH,Await:()=>u.jD,BrowserRouter:()=>U,Form:()=>z,HashRouter:()=>j,Link:()=>B,MemoryRouter:()=>u.fS,NavLink:()=>I,Navigate:()=>u.C5,NavigationType:()=>c.rc,Outlet:()=>u.sv,Route:()=>u.qh,Router:()=>u.Ix,RouterProvider:()=>_,Routes:()=>u.BV,ScrollRestoration:()=>H,UNSAFE_DataRouterContext:()=>u.sp,UNSAFE_DataRouterStateContext:()=>u.Rq,UNSAFE_ErrorResponseImpl:()=>c.VV,UNSAFE_FetchersContext:()=>P,UNSAFE_LocationContext:()=>u.yN,UNSAFE_NavigationContext:()=>u.jb,UNSAFE_RouteContext:()=>u.UX,UNSAFE_ViewTransitionContext:()=>C,UNSAFE_useRouteId:()=>u.$3,UNSAFE_useScrollRestoration:()=>et,createBrowserRouter:()=>S,createHashRouter:()=>R,createMemoryRouter:()=>u.bg,createPath:()=>c.AO,createRoutesFromChildren:()=>u.AV,createRoutesFromElements:()=>u.Eu,createSearchParams:()=>m,defer:()=>c.v6,generatePath:()=>c.tW,isRouteErrorResponse:()=>c.pX,json:()=>c.Pq,matchPath:()=>c.B6,matchRoutes:()=>c.ue,parsePath:()=>c.Rr,redirect:()=>c.V2,redirectDocument:()=>c.Sk,renderMatches:()=>u.KT,replace:()=>c.HC,resolvePath:()=>c.o1,unstable_HistoryRouter:()=>M,unstable_usePrompt:()=>en,useActionData:()=>u.mP,useAsyncError:()=>u.oI,useAsyncValue:()=>u.J8,useBeforeUnload:()=>er,useBlocker:()=>u.KP,useFetcher:()=>G,useFetchers:()=>Q,useFormAction:()=>X,useHref:()=>u.$P,useInRouterContext:()=>u.Ri,useLinkClickHandler:()=>W,useLoaderData:()=>u.LG,useLocation:()=>u.zy,useMatch:()=>u.RQ,useMatches:()=>u.FE,useNavigate:()=>u.Zp,useNavigation:()=>u.cq,useNavigationType:()=>u.wQ,useOutlet:()=>u.P1,useOutletContext:()=>u.KC,useParams:()=>u.g,useResolvedPath:()=>u.x$,useRevalidator:()=>u.vL,useRouteError:()=>u.r5,useRouteLoaderData:()=>u.Ew,useRoutes:()=>u.Ye,useSearchParams:()=>K,useSubmit:()=>Y,useViewTransitionState:()=>ea});var n,a,o,i,l=r(70451),s=r(20231),u=r(67435),c=r(70744);function d(){return(d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function h(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}let f="application/x-www-form-urlencoded";function p(e){return null!=e&&"string"==typeof e.tagName}function m(e){return void 0===e&&(e=""),new URLSearchParams("string"==typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,r)=>{let n=e[r];return t.concat(Array.isArray(n)?n.map(e=>[r,e]):[[r,n]])},[]))}let v=null,y=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function g(e){return null==e||y.has(e)?e:null}let b=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],w=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],E=["fetcherKey","navigate","reloadDocument","replace","state","method","action","onSubmit","relative","preventScrollReset","viewTransition"];try{window.__reactRouterVersion="6"}catch(e){}function S(e,t){return(0,c.aE)({basename:null==t?void 0:t.basename,future:d({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:(0,c.zR)({window:null==t?void 0:t.window}),hydrationData:(null==t?void 0:t.hydrationData)||x(),routes:e,mapRouteProperties:u.wE,dataStrategy:null==t?void 0:t.dataStrategy,patchRoutesOnNavigation:null==t?void 0:t.patchRoutesOnNavigation,window:null==t?void 0:t.window}).initialize()}function R(e,t){return(0,c.aE)({basename:null==t?void 0:t.basename,future:d({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:(0,c.TM)({window:null==t?void 0:t.window}),hydrationData:(null==t?void 0:t.hydrationData)||x(),routes:e,mapRouteProperties:u.wE,dataStrategy:null==t?void 0:t.dataStrategy,patchRoutesOnNavigation:null==t?void 0:t.patchRoutesOnNavigation,window:null==t?void 0:t.window}).initialize()}function x(){var e;let t=null==(e=window)?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=d({},t,{errors:function(e){if(!e)return null;let t=Object.entries(e),r={};for(let[e,n]of t)if(n&&"RouteErrorResponse"===n.__type)r[e]=new c.VV(n.status,n.statusText,n.data,!0===n.internal);else if(n&&"Error"===n.__type){if(n.__subType){let t=window[n.__subType];if("function"==typeof t)try{let a=new t(n.message);a.stack="",r[e]=a}catch(e){}}if(null==r[e]){let t=Error(n.message);t.stack="",r[e]=t}}else r[e]=n;return r}(t.errors)})),t}let C=l.createContext({isTransitioning:!1}),P=l.createContext(new Map),D=l.startTransition,L=s.flushSync,k=l.useId;function O(e){L?L(e):e()}class A{constructor(){this.status="pending",this.promise=new Promise((e,t)=>{this.resolve=t=>{"pending"===this.status&&(this.status="resolved",e(t))},this.reject=e=>{"pending"===this.status&&(this.status="rejected",t(e))}})}}function _(e){let{fallbackElement:t,router:r,future:n}=e,[a,o]=l.useState(r.state),[i,s]=l.useState(),[c,d]=l.useState({isTransitioning:!1}),[h,f]=l.useState(),[p,m]=l.useState(),[v,y]=l.useState(),g=l.useRef(new Map),{v7_startTransition:b}=n||{},w=l.useCallback(e=>{if(b)D?D(e):e();else e()},[b]),E=l.useCallback((e,t)=>{let{deletedFetchers:n,flushSync:a,viewTransitionOpts:i}=t;e.fetchers.forEach((e,t)=>{void 0!==e.data&&g.current.set(t,e.data)}),n.forEach(e=>g.current.delete(e));let l=null==r.window||null==r.window.document||"function"!=typeof r.window.document.startViewTransition;if(!i||l)return void(a?O(()=>o(e)):w(()=>o(e)));if(a){O(()=>{p&&(h&&h.resolve(),p.skipTransition()),d({isTransitioning:!0,flushSync:!0,currentLocation:i.currentLocation,nextLocation:i.nextLocation})});let t=r.window.document.startViewTransition(()=>{O(()=>o(e))});t.finished.finally(()=>{O(()=>{f(void 0),m(void 0),s(void 0),d({isTransitioning:!1})})}),O(()=>m(t));return}p?(h&&h.resolve(),p.skipTransition(),y({state:e,currentLocation:i.currentLocation,nextLocation:i.nextLocation})):(s(e),d({isTransitioning:!0,flushSync:!1,currentLocation:i.currentLocation,nextLocation:i.nextLocation}))},[r.window,p,h,g,w]);l.useLayoutEffect(()=>r.subscribe(E),[r,E]),l.useEffect(()=>{c.isTransitioning&&!c.flushSync&&f(new A)},[c]),l.useEffect(()=>{if(h&&i&&r.window){let e=h.promise,t=r.window.document.startViewTransition(async()=>{w(()=>o(i)),await e});t.finished.finally(()=>{f(void 0),m(void 0),s(void 0),d({isTransitioning:!1})}),m(t)}},[w,i,h,r.window]),l.useEffect(()=>{h&&i&&a.location.key===i.location.key&&h.resolve()},[h,p,a.location,i]),l.useEffect(()=>{!c.isTransitioning&&v&&(s(v.state),d({isTransitioning:!0,flushSync:!1,currentLocation:v.currentLocation,nextLocation:v.nextLocation}),y(void 0))},[c.isTransitioning,v]),l.useEffect(()=>{},[]);let S=l.useMemo(()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:e=>r.navigate(e),push:(e,t,n)=>r.navigate(e,{state:t,preventScrollReset:null==n?void 0:n.preventScrollReset}),replace:(e,t,n)=>r.navigate(e,{replace:!0,state:t,preventScrollReset:null==n?void 0:n.preventScrollReset})}),[r]),R=r.basename||"/",x=l.useMemo(()=>({router:r,navigator:S,static:!1,basename:R}),[r,S,R]),L=l.useMemo(()=>({v7_relativeSplatPath:r.future.v7_relativeSplatPath}),[r.future.v7_relativeSplatPath]);return l.useEffect(()=>(0,u.V8)(n,r.future),[n,r.future]),l.createElement(l.Fragment,null,l.createElement(u.sp.Provider,{value:x},l.createElement(u.Rq.Provider,{value:a},l.createElement(P.Provider,{value:g.current},l.createElement(C.Provider,{value:c},l.createElement(u.Ix,{basename:R,location:a.location,navigationType:a.historyAction,navigator:S,future:L},a.initialized||r.future.v7_partialHydration?l.createElement(T,{routes:r.routes,future:r.future,state:a}):t))))),null)}let T=l.memo(function(e){let{routes:t,future:r,state:n}=e;return(0,u.ph)(t,void 0,n,r)});function U(e){let{basename:t,children:r,future:n,window:a}=e,o=l.useRef();null==o.current&&(o.current=(0,c.zR)({window:a,v5Compat:!0}));let i=o.current,[s,d]=l.useState({action:i.action,location:i.location}),{v7_startTransition:h}=n||{},f=l.useCallback(e=>{h&&D?D(()=>d(e)):d(e)},[d,h]);return l.useLayoutEffect(()=>i.listen(f),[i,f]),l.useEffect(()=>(0,u.V8)(n),[n]),l.createElement(u.Ix,{basename:t,children:r,location:s.location,navigationType:s.action,navigator:i,future:n})}function j(e){let{basename:t,children:r,future:n,window:a}=e,o=l.useRef();null==o.current&&(o.current=(0,c.TM)({window:a,v5Compat:!0}));let i=o.current,[s,d]=l.useState({action:i.action,location:i.location}),{v7_startTransition:h}=n||{},f=l.useCallback(e=>{h&&D?D(()=>d(e)):d(e)},[d,h]);return l.useLayoutEffect(()=>i.listen(f),[i,f]),l.useEffect(()=>(0,u.V8)(n),[n]),l.createElement(u.Ix,{basename:t,children:r,location:s.location,navigationType:s.action,navigator:i,future:n})}function M(e){let{basename:t,children:r,future:n,history:a}=e,[o,i]=l.useState({action:a.action,location:a.location}),{v7_startTransition:s}=n||{},c=l.useCallback(e=>{s&&D?D(()=>i(e)):i(e)},[i,s]);return l.useLayoutEffect(()=>a.listen(c),[a,c]),l.useEffect(()=>(0,u.V8)(n),[n]),l.createElement(u.Ix,{basename:t,children:r,location:o.location,navigationType:o.action,navigator:a,future:n})}let F="u">typeof window&&void 0!==window.document&&void 0!==window.document.createElement,N=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,B=l.forwardRef(function(e,t){let r,{onClick:n,relative:a,reloadDocument:o,replace:i,state:s,target:f,to:p,preventScrollReset:m,viewTransition:v}=e,y=h(e,b),{basename:g}=l.useContext(u.jb),w=!1;if("string"==typeof p&&N.test(p)&&(r=p,F))try{let e=new URL(window.location.href),t=new URL(p.startsWith("//")?e.protocol+p:p),r=(0,c.pb)(t.pathname,g);t.origin===e.origin&&null!=r?p=r+t.search+t.hash:w=!0}catch(e){}let E=(0,u.$P)(p,{relative:a}),S=W(p,{replace:i,state:s,target:f,preventScrollReset:m,relative:a,viewTransition:v});return l.createElement("a",d({},y,{href:r||E,onClick:w||o?n:function(e){n&&n(e),e.defaultPrevented||S(e)},ref:t,target:f}))}),I=l.forwardRef(function(e,t){let r,{"aria-current":n="page",caseSensitive:a=!1,className:o="",end:i=!1,style:s,to:f,viewTransition:p,children:m}=e,v=h(e,w),y=(0,u.x$)(f,{relative:v.relative}),g=(0,u.zy)(),b=l.useContext(u.Rq),{navigator:E,basename:S}=l.useContext(u.jb),R=null!=b&&ea(y)&&!0===p,x=E.encodeLocation?E.encodeLocation(y).pathname:y.pathname,C=g.pathname,P=b&&b.navigation&&b.navigation.location?b.navigation.location.pathname:null;a||(C=C.toLowerCase(),P=P?P.toLowerCase():null,x=x.toLowerCase()),P&&S&&(P=(0,c.pb)(P,S)||P);let D="/"!==x&&x.endsWith("/")?x.length-1:x.length,L=C===x||!i&&C.startsWith(x)&&"/"===C.charAt(D),k=null!=P&&(P===x||!i&&P.startsWith(x)&&"/"===P.charAt(x.length)),O={isActive:L,isPending:k,isTransitioning:R},A=L?n:void 0;r="function"==typeof o?o(O):[o,L?"active":null,k?"pending":null,R?"transitioning":null].filter(Boolean).join(" ");let _="function"==typeof s?s(O):s;return l.createElement(B,d({},v,{"aria-current":A,className:r,ref:t,style:_,to:f,viewTransition:p}),"function"==typeof m?m(O):m)}),z=l.forwardRef((e,t)=>{let{fetcherKey:r,navigate:n,reloadDocument:a,replace:o,state:i,method:s="get",action:u,onSubmit:c,relative:f,preventScrollReset:p,viewTransition:m}=e,v=h(e,E),y=Y(),g=X(u,{relative:f}),b="get"===s.toLowerCase()?"get":"post";return l.createElement("form",d({ref:t,method:b,action:g,onSubmit:a?c:e=>{if(c&&c(e),e.defaultPrevented)return;e.preventDefault();let t=e.nativeEvent.submitter,a=(null==t?void 0:t.getAttribute("formmethod"))||s;y(t||e.currentTarget,{fetcherKey:r,method:a,navigate:n,replace:o,state:i,relative:f,preventScrollReset:p,viewTransition:m})}},v))});function H(e){let{getKey:t,storageKey:r}=e;return et({getKey:t,storageKey:r}),null}function V(e){let t=l.useContext(u.sp);return t||(0,c.Oi)(!1),t}function $(e){let t=l.useContext(u.Rq);return t||(0,c.Oi)(!1),t}function W(e,t){let{target:r,replace:n,state:a,preventScrollReset:o,relative:i,viewTransition:s}=void 0===t?{}:t,d=(0,u.Zp)(),h=(0,u.zy)(),f=(0,u.x$)(e,{relative:i});return l.useCallback(t=>{0!==t.button||r&&"_self"!==r||t.metaKey||t.altKey||t.ctrlKey||t.shiftKey||(t.preventDefault(),d(e,{replace:void 0!==n?n:(0,c.AO)(h)===(0,c.AO)(f),state:a,preventScrollReset:o,relative:i,viewTransition:s}))},[h,d,f,n,a,r,e,o,i,s])}function K(e){let t=l.useRef(m(e)),r=l.useRef(!1),n=(0,u.zy)(),a=l.useMemo(()=>{var e,a;let o;return e=n.search,a=r.current?null:t.current,o=m(e),a&&a.forEach((e,t)=>{o.has(t)||a.getAll(t).forEach(e=>{o.append(t,e)})}),o},[n.search]),o=(0,u.Zp)(),i=l.useCallback((e,t)=>{let n=m("function"==typeof e?e(a):e);r.current=!0,o("?"+n,t)},[o,a]);return[a,i]}(n=o||(o={})).UseScrollRestoration="useScrollRestoration",n.UseSubmit="useSubmit",n.UseSubmitFetcher="useSubmitFetcher",n.UseFetcher="useFetcher",n.useViewTransitionState="useViewTransitionState",(a=i||(i={})).UseFetcher="useFetcher",a.UseFetchers="useFetchers",a.UseScrollRestoration="useScrollRestoration";let q=0,J=()=>"__"+String(++q)+"__";function Y(){let{router:e}=V(o.UseSubmit),{basename:t}=l.useContext(u.jb),r=(0,u.$3)();return l.useCallback(function(n,a){if(void 0===a&&(a={}),"u"<typeof document)throw Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.");let{action:o,method:i,encType:l,formData:s,body:u}=function(e,t){let r,n,a,o,i;if(p(e)&&"form"===e.tagName.toLowerCase()){let i=e.getAttribute("action");n=i?(0,c.pb)(i,t):null,r=e.getAttribute("method")||"get",a=g(e.getAttribute("enctype"))||f,o=new FormData(e)}else if(p(e)&&"button"===e.tagName.toLowerCase()||p(e)&&"input"===e.tagName.toLowerCase()&&("submit"===e.type||"image"===e.type)){let i=e.form;if(null==i)throw Error('Cannot submit a <button> or <input type="submit"> without a <form>');let l=e.getAttribute("formaction")||i.getAttribute("action");if(n=l?(0,c.pb)(l,t):null,r=e.getAttribute("formmethod")||i.getAttribute("method")||"get",a=g(e.getAttribute("formenctype"))||g(i.getAttribute("enctype"))||f,o=new FormData(i,e),!function(){if(null===v)try{new FormData(document.createElement("form"),0),v=!1}catch(e){v=!0}return v}()){let{name:t,type:r,value:n}=e;if("image"===r){let e=t?t+".":"";o.append(e+"x","0"),o.append(e+"y","0")}else t&&o.append(t,n)}}else if(p(e))throw Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');else r="get",n=null,a=f,i=e;return o&&"text/plain"===a&&(i=o,o=void 0),{action:n,method:r.toLowerCase(),encType:a,formData:o,body:i}}(n,t);if(!1===a.navigate){let t=a.fetcherKey||J();e.fetch(t,r,a.action||o,{preventScrollReset:a.preventScrollReset,formData:s,body:u,formMethod:a.method||i,formEncType:a.encType||l,flushSync:a.flushSync})}else e.navigate(a.action||o,{preventScrollReset:a.preventScrollReset,formData:s,body:u,formMethod:a.method||i,formEncType:a.encType||l,replace:a.replace,state:a.state,fromRouteId:r,flushSync:a.flushSync,viewTransition:a.viewTransition})},[e,t,r])}function X(e,t){let{relative:r}=void 0===t?{}:t,{basename:n}=l.useContext(u.jb),a=l.useContext(u.UX);a||(0,c.Oi)(!1);let[o]=a.matches.slice(-1),i=d({},(0,u.x$)(e||".",{relative:r})),s=(0,u.zy)();if(null==e){i.search=s.search;let e=new URLSearchParams(i.search),t=e.getAll("index");if(t.some(e=>""===e)){e.delete("index"),t.filter(e=>e).forEach(t=>e.append("index",t));let r=e.toString();i.search=r?"?"+r:""}}return(!e||"."===e)&&o.route.index&&(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index"),"/"!==n&&(i.pathname="/"===i.pathname?n:(0,c.HS)([n,i.pathname])),(0,c.AO)(i)}function G(e){var t;let{key:r}=void 0===e?{}:e,{router:n}=V(o.UseFetcher),a=$(i.UseFetcher),s=l.useContext(P),h=l.useContext(u.UX),f=null==(t=h.matches[h.matches.length-1])?void 0:t.route.id;s||(0,c.Oi)(!1),h||(0,c.Oi)(!1),null==f&&(0,c.Oi)(!1);let p=k?k():"",[m,v]=l.useState(r||p);r&&r!==m?v(r):m||v(J()),l.useEffect(()=>(n.getFetcher(m),()=>{n.deleteFetcher(m)}),[n,m]);let y=l.useCallback((e,t)=>{f||(0,c.Oi)(!1),n.fetch(m,f,e,t)},[m,f,n]),g=Y(),b=l.useCallback((e,t)=>{g(e,d({},t,{navigate:!1,fetcherKey:m}))},[m,g]),w=l.useMemo(()=>l.forwardRef((e,t)=>l.createElement(z,d({},e,{navigate:!1,fetcherKey:m,ref:t}))),[m]),E=a.fetchers.get(m)||c.HW,S=s.get(m);return l.useMemo(()=>d({Form:w,submit:b,load:y},E,{data:S}),[w,b,y,E,S])}function Q(){return Array.from($(i.UseFetchers).fetchers.entries()).map(e=>{let[t,r]=e;return d({},r,{key:t})})}let Z="react-router-scroll-positions",ee={};function et(e){let{getKey:t,storageKey:r}=void 0===e?{}:e,{router:n}=V(o.UseScrollRestoration),{restoreScrollPosition:a,preventScrollReset:s}=$(i.UseScrollRestoration),{basename:h}=l.useContext(u.jb),f=(0,u.zy)(),p=(0,u.FE)(),m=(0,u.cq)();l.useEffect(()=>(window.history.scrollRestoration="manual",()=>{window.history.scrollRestoration="auto"}),[]),function(e){let{capture:t}={};l.useEffect(()=>{let r=null!=t?{capture:t}:void 0;return window.addEventListener("pagehide",e,r),()=>{window.removeEventListener("pagehide",e,r)}},[e,t])}(l.useCallback(()=>{"idle"===m.state&&(ee[(t?t(f,p):null)||f.key]=window.scrollY);try{sessionStorage.setItem(r||Z,JSON.stringify(ee))}catch(e){}window.history.scrollRestoration="auto"},[r,t,m.state,f,p])),"u">typeof document&&(l.useLayoutEffect(()=>{try{let e=sessionStorage.getItem(r||Z);e&&(ee=JSON.parse(e))}catch(e){}},[r]),l.useLayoutEffect(()=>{let e=t&&"/"!==h?(e,r)=>t(d({},e,{pathname:(0,c.pb)(e.pathname,h)||e.pathname}),r):t,r=null==n?void 0:n.enableScrollRestoration(ee,()=>window.scrollY,e);return()=>r&&r()},[n,h,t]),l.useLayoutEffect(()=>{if(!1!==a){if("number"==typeof a)return void window.scrollTo(0,a);if(f.hash){let e=document.getElementById(decodeURIComponent(f.hash.slice(1)));if(e)return void e.scrollIntoView()}!0!==s&&window.scrollTo(0,0)}},[f,a,s]))}function er(e,t){let{capture:r}=t||{};l.useEffect(()=>{let t=null!=r?{capture:r}:void 0;return window.addEventListener("beforeunload",e,t),()=>{window.removeEventListener("beforeunload",e,t)}},[e,r])}function en(e){let{when:t,message:r}=e,n=(0,u.KP)(t);l.useEffect(()=>{"blocked"===n.state&&(window.confirm(r)?setTimeout(n.proceed,0):n.reset())},[n,r]),l.useEffect(()=>{"blocked"!==n.state||t||n.reset()},[n,t])}function ea(e,t){void 0===t&&(t={});let r=l.useContext(C);null==r&&(0,c.Oi)(!1);let{basename:n}=V(o.useViewTransitionState),a=(0,u.x$)(e,{relative:t.relative});if(!r.isTransitioning)return!1;let i=(0,c.pb)(r.currentLocation.pathname,n)||r.currentLocation.pathname,s=(0,c.pb)(r.nextLocation.pathname,n)||r.nextLocation.pathname;return null!=(0,c.B6)(a.pathname,s)||null!=(0,c.B6)(a.pathname,i)}},67435(e,t,r){r.d(t,{$3:()=>B,$P:()=>v,AV:()=>ed,BV:()=>eo,C5:()=>et,Eu:()=>ed,Ew:()=>$,FE:()=>H,Ix:()=>ea,J8:()=>q,KC:()=>x,KP:()=>X,KT:()=>eh,LG:()=>V,P1:()=>C,RQ:()=>w,Ri:()=>y,Rq:()=>c,UX:()=>p,V8:()=>Q,Ye:()=>L,Zp:()=>S,bg:()=>ep,cq:()=>I,fS:()=>ee,g:()=>P,jD:()=>ei,jb:()=>h,mP:()=>W,oI:()=>J,ph:()=>k,qh:()=>en,r5:()=>K,sp:()=>u,sv:()=>er,vL:()=>z,wE:()=>ef,wQ:()=>b,x$:()=>D,yN:()=>f,zy:()=>g});var n,a,o,i=r(70451),l=r(70744);function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}let u=i.createContext(null),c=i.createContext(null),d=i.createContext(null),h=i.createContext(null),f=i.createContext(null),p=i.createContext({outlet:null,matches:[],isDataRoute:!1}),m=i.createContext(null);function v(e,t){let{relative:r}=void 0===t?{}:t;y()||(0,l.Oi)(!1);let{basename:n,navigator:a}=i.useContext(h),{hash:o,pathname:s,search:u}=D(e,{relative:r}),c=s;return"/"!==n&&(c="/"===s?n:(0,l.HS)([n,s])),a.createHref({pathname:c,search:u,hash:o})}function y(){return null!=i.useContext(f)}function g(){return y()||(0,l.Oi)(!1),i.useContext(f).location}function b(){return i.useContext(f).navigationType}function w(e){y()||(0,l.Oi)(!1);let{pathname:t}=g();return i.useMemo(()=>(0,l.B6)(e,(0,l.RO)(t)),[t,e])}function E(e){i.useContext(h).static||i.useLayoutEffect(e)}function S(){let{isDataRoute:e}=i.useContext(p);return e?function(){let{router:e}=M(U.UseNavigateStable),t=N(j.UseNavigateStable),r=i.useRef(!1);return E(()=>{r.current=!0}),i.useCallback(function(n,a){void 0===a&&(a={}),r.current&&("number"==typeof n?e.navigate(n):e.navigate(n,s({fromRouteId:t},a)))},[e,t])}():function(){y()||(0,l.Oi)(!1);let e=i.useContext(u),{basename:t,future:r,navigator:n}=i.useContext(h),{matches:a}=i.useContext(p),{pathname:o}=g(),s=JSON.stringify((0,l.yD)(a,r.v7_relativeSplatPath)),c=i.useRef(!1);return E(()=>{c.current=!0}),i.useCallback(function(r,a){if(void 0===a&&(a={}),!c.current)return;if("number"==typeof r)return void n.go(r);let i=(0,l.Gh)(r,JSON.parse(s),o,"path"===a.relative);null==e&&"/"!==t&&(i.pathname="/"===i.pathname?t:(0,l.HS)([t,i.pathname])),(a.replace?n.replace:n.push)(i,a.state,a)},[t,n,s,o,e])}()}let R=i.createContext(null);function x(){return i.useContext(R)}function C(e){let t=i.useContext(p).outlet;return t?i.createElement(R.Provider,{value:e},t):t}function P(){let{matches:e}=i.useContext(p),t=e[e.length-1];return t?t.params:{}}function D(e,t){let{relative:r}=void 0===t?{}:t,{future:n}=i.useContext(h),{matches:a}=i.useContext(p),{pathname:o}=g(),s=JSON.stringify((0,l.yD)(a,n.v7_relativeSplatPath));return i.useMemo(()=>(0,l.Gh)(e,JSON.parse(s),o,"path"===r),[e,s,o,r])}function L(e,t){return k(e,t)}function k(e,t,r,n){let a;y()||(0,l.Oi)(!1);let{navigator:o}=i.useContext(h),{matches:u}=i.useContext(p),c=u[u.length-1],d=c?c.params:{};c&&c.pathname;let m=c?c.pathnameBase:"/";c&&c.route;let v=g();if(t){var b;let e="string"==typeof t?(0,l.Rr)(t):t;"/"===m||(null==(b=e.pathname)?void 0:b.startsWith(m))||(0,l.Oi)(!1),a=e}else a=v;let w=a.pathname||"/",E=w;if("/"!==m){let e=m.replace(/^\//,"").split("/");E="/"+w.replace(/^\//,"").split("/").slice(e.length).join("/")}let S=(0,l.ue)(e,{pathname:E}),R=T(S&&S.map(e=>Object.assign({},e,{params:Object.assign({},d,e.params),pathname:(0,l.HS)([m,o.encodeLocation?o.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?m:(0,l.HS)([m,o.encodeLocation?o.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})),u,r,n);return t&&R?i.createElement(f.Provider,{value:{location:s({pathname:"/",search:"",hash:"",state:null,key:"default"},a),navigationType:l.rc.Pop}},R):R}let O=i.createElement(function(){let e=K(),t=(0,l.pX)(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null;return i.createElement(i.Fragment,null,i.createElement("h2",null,"Unexpected Application Error!"),i.createElement("h3",{style:{fontStyle:"italic"}},t),r?i.createElement("pre",{style:{padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"}},r):null,null)},null);class A extends i.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?i.createElement(p.Provider,{value:this.props.routeContext},i.createElement(m.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function _(e){let{routeContext:t,match:r,children:n}=e,a=i.useContext(u);return a&&a.static&&a.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=r.route.id),i.createElement(p.Provider,{value:t},n)}function T(e,t,r,n){var a,o;if(void 0===t&&(t=[]),void 0===r&&(r=null),void 0===n&&(n=null),null==e){if(!r)return null;if(r.errors)e=r.matches;else{if(null==(o=n)||!o.v7_partialHydration||0!==t.length||r.initialized||!(r.matches.length>0))return null;e=r.matches}}let s=e,u=null==(a=r)?void 0:a.errors;if(null!=u){let e=s.findIndex(e=>e.route.id&&(null==u?void 0:u[e.route.id])!==void 0);e>=0||(0,l.Oi)(!1),s=s.slice(0,Math.min(s.length,e+1))}let c=!1,d=-1;if(r&&n&&n.v7_partialHydration)for(let e=0;e<s.length;e++){let t=s[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(d=e),t.route.id){let{loaderData:e,errors:n}=r,a=t.route.loader&&void 0===e[t.route.id]&&(!n||void 0===n[t.route.id]);if(t.route.lazy||a){c=!0,s=d>=0?s.slice(0,d+1):[s[0]];break}}}return s.reduceRight((e,n,a)=>{var o;let l,h=!1,f=null,p=null;r&&(l=u&&n.route.id?u[n.route.id]:void 0,f=n.route.errorElement||O,c&&(d<0&&0===a?(o="route-fallback",G[o]||(G[o]=!0),h=!0,p=null):d===a&&(h=!0,p=n.route.hydrateFallbackElement||null)));let m=t.concat(s.slice(0,a+1)),v=()=>{let t;return t=l?f:h?p:n.route.Component?i.createElement(n.route.Component,null):n.route.element?n.route.element:e,i.createElement(_,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:null!=r},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||0===a)?i.createElement(A,{location:r.location,revalidation:r.revalidation,component:f,error:l,children:v(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):v()},null)}var U=((n=U||{}).UseBlocker="useBlocker",n.UseRevalidator="useRevalidator",n.UseNavigateStable="useNavigate",n),j=((a=j||{}).UseBlocker="useBlocker",a.UseLoaderData="useLoaderData",a.UseActionData="useActionData",a.UseRouteError="useRouteError",a.UseNavigation="useNavigation",a.UseRouteLoaderData="useRouteLoaderData",a.UseMatches="useMatches",a.UseRevalidator="useRevalidator",a.UseNavigateStable="useNavigate",a.UseRouteId="useRouteId",a);function M(e){let t=i.useContext(u);return t||(0,l.Oi)(!1),t}function F(e){let t=i.useContext(c);return t||(0,l.Oi)(!1),t}function N(e){let t,r=((t=i.useContext(p))||(0,l.Oi)(!1),t),n=r.matches[r.matches.length-1];return n.route.id||(0,l.Oi)(!1),n.route.id}function B(){return N(j.UseRouteId)}function I(){return F(j.UseNavigation).navigation}function z(){let e=M(U.UseRevalidator),t=F(j.UseRevalidator);return i.useMemo(()=>({revalidate:e.router.revalidate,state:t.revalidation}),[e.router.revalidate,t.revalidation])}function H(){let{matches:e,loaderData:t}=F(j.UseMatches);return i.useMemo(()=>e.map(e=>(0,l.ro)(e,t)),[e,t])}function V(){let e=F(j.UseLoaderData),t=N(j.UseLoaderData);return e.errors&&null!=e.errors[t]?void console.error("You cannot `useLoaderData` in an errorElement (routeId: "+t+")"):e.loaderData[t]}function $(e){return F(j.UseRouteLoaderData).loaderData[e]}function W(){let e=F(j.UseActionData),t=N(j.UseLoaderData);return e.actionData?e.actionData[t]:void 0}function K(){var e;let t=i.useContext(m),r=F(j.UseRouteError),n=N(j.UseRouteError);return void 0!==t?t:null==(e=r.errors)?void 0:e[n]}function q(){let e=i.useContext(d);return null==e?void 0:e._data}function J(){let e=i.useContext(d);return null==e?void 0:e._error}let Y=0;function X(e){let{router:t,basename:r}=M(U.UseBlocker),n=F(j.UseBlocker),[a,o]=i.useState(""),u=i.useCallback(t=>{if("function"!=typeof e)return!!e;if("/"===r)return e(t);let{currentLocation:n,nextLocation:a,historyAction:o}=t;return e({currentLocation:s({},n,{pathname:(0,l.pb)(n.pathname,r)||n.pathname}),nextLocation:s({},a,{pathname:(0,l.pb)(a.pathname,r)||a.pathname}),historyAction:o})},[r,e]);return i.useEffect(()=>{let e=String(++Y);return o(e),()=>t.deleteBlocker(e)},[t]),i.useEffect(()=>{""!==a&&t.getBlocker(a,u)},[t,a,u]),a&&n.blockers.has(a)?n.blockers.get(a):l.G3}let G={};function Q(e,t){(null==e||e.v7_startTransition,(null==e?void 0:e.v7_relativeSplatPath)!==void 0||t&&void 0!==t.v7_relativeSplatPath,t)&&(t.v7_fetcherPersist,t.v7_normalizeFormMethod,t.v7_partialHydration,t.v7_skipActionErrorRevalidation)}let Z=i.startTransition;function ee(e){let{basename:t,children:r,initialEntries:n,initialIndex:a,future:o}=e,s=i.useRef();null==s.current&&(s.current=(0,l.sC)({initialEntries:n,initialIndex:a,v5Compat:!0}));let u=s.current,[c,d]=i.useState({action:u.action,location:u.location}),{v7_startTransition:h}=o||{},f=i.useCallback(e=>{h&&Z?Z(()=>d(e)):d(e)},[d,h]);return i.useLayoutEffect(()=>u.listen(f),[u,f]),i.useEffect(()=>Q(o),[o]),i.createElement(ea,{basename:t,children:r,location:c.location,navigationType:c.action,navigator:u,future:o})}function et(e){let{to:t,replace:r,state:n,relative:a}=e;y()||(0,l.Oi)(!1);let{future:o,static:s}=i.useContext(h),{matches:u}=i.useContext(p),{pathname:c}=g(),d=S(),f=JSON.stringify((0,l.Gh)(t,(0,l.yD)(u,o.v7_relativeSplatPath),c,"path"===a));return i.useEffect(()=>d(JSON.parse(f),{replace:r,state:n,relative:a}),[d,f,a,r,n]),null}function er(e){return C(e.context)}function en(e){(0,l.Oi)(!1)}function ea(e){let{basename:t="/",children:r=null,location:n,navigationType:a=l.rc.Pop,navigator:o,static:u=!1,future:c}=e;y()&&(0,l.Oi)(!1);let d=t.replace(/^\/*/,"/"),p=i.useMemo(()=>({basename:d,navigator:o,static:u,future:s({v7_relativeSplatPath:!1},c)}),[d,c,o,u]);"string"==typeof n&&(n=(0,l.Rr)(n));let{pathname:m="/",search:v="",hash:g="",state:b=null,key:w="default"}=n,E=i.useMemo(()=>{let e=(0,l.pb)(m,d);return null==e?null:{location:{pathname:e,search:v,hash:g,state:b,key:w},navigationType:a}},[d,m,v,g,b,w,a]);return null==E?null:i.createElement(h.Provider,{value:p},i.createElement(f.Provider,{children:r,value:E}))}function eo(e){let{children:t,location:r}=e;return k(ed(t),r)}function ei(e){let{children:t,errorElement:r,resolve:n}=e;return i.createElement(eu,{resolve:n,errorElement:r},i.createElement(ec,null,t))}var el=((o=el||{})[o.pending=0]="pending",o[o.success=1]="success",o[o.error=2]="error",o);let es=new Promise(()=>{});class eu extends i.Component{constructor(e){super(e),this.state={error:null}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){console.error("<Await> caught the following error during render",e,t)}render(){let{children:e,errorElement:t,resolve:r}=this.props,n=null,a=el.pending;if(r instanceof Promise)if(this.state.error){a=el.error;let e=this.state.error;Object.defineProperty(n=Promise.reject().catch(()=>{}),"_tracked",{get:()=>!0}),Object.defineProperty(n,"_error",{get:()=>e})}else r._tracked?a="_error"in(n=r)?el.error:"_data"in n?el.success:el.pending:(a=el.pending,Object.defineProperty(r,"_tracked",{get:()=>!0}),n=r.then(e=>Object.defineProperty(r,"_data",{get:()=>e}),e=>Object.defineProperty(r,"_error",{get:()=>e})));else a=el.success,Object.defineProperty(n=Promise.resolve(),"_tracked",{get:()=>!0}),Object.defineProperty(n,"_data",{get:()=>r});if(a===el.error&&n._error instanceof l.tH)throw es;if(a===el.error&&!t)throw n._error;if(a===el.error)return i.createElement(d.Provider,{value:n,children:t});if(a===el.success)return i.createElement(d.Provider,{value:n,children:e});throw n}}function ec(e){let{children:t}=e,r=q(),n="function"==typeof t?t(r):t;return i.createElement(i.Fragment,null,n)}function ed(e,t){void 0===t&&(t=[]);let r=[];return i.Children.forEach(e,(e,n)=>{if(!i.isValidElement(e))return;let a=[...t,n];if(e.type===i.Fragment)return void r.push.apply(r,ed(e.props.children,a));e.type!==en&&(0,l.Oi)(!1),e.props.index&&e.props.children&&(0,l.Oi)(!1);let o={id:e.props.id||a.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(o.children=ed(e.props.children,a)),r.push(o)}),r}function eh(e){return T(e)}function ef(e){let t={hasErrorBoundary:null!=e.ErrorBoundary||null!=e.errorElement};return e.Component&&Object.assign(t,{element:i.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:i.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:i.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}function ep(e,t){return(0,l.aE)({basename:null==t?void 0:t.basename,future:s({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:(0,l.sC)({initialEntries:null==t?void 0:t.initialEntries,initialIndex:null==t?void 0:t.initialIndex}),hydrationData:null==t?void 0:t.hydrationData,routes:e,mapRouteProperties:ef,dataStrategy:null==t?void 0:t.dataStrategy,patchRoutesOnNavigation:null==t?void 0:t.patchRoutesOnNavigation}).initialize()}}}]);