@jeffusion/bungee-core 2.3.1 → 2.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/worker.js +22 -16
  2. package/package.json +2 -2
package/dist/worker.js CHANGED
@@ -19916,8 +19916,12 @@ function deactivateSlowStart(upstream) {
19916
19916
  function selectUpstream(upstreams, route) {
19917
19917
  if (upstreams.length === 0)
19918
19918
  return;
19919
+ const enabledUpstreams = upstreams.filter((u) => !u.disabled);
19920
+ if (enabledUpstreams.length === 0) {
19921
+ return;
19922
+ }
19919
19923
  const priorityGroups = new Map;
19920
- forEach_default(upstreams, (upstream) => {
19924
+ forEach_default(enabledUpstreams, (upstream) => {
19921
19925
  const priority = upstream.priority || 1;
19922
19926
  if (!priorityGroups.has(priority)) {
19923
19927
  priorityGroups.set(priority, []);
@@ -21235,11 +21239,11 @@ var init_assets = __esm(() => {
21235
21239
  <meta charset="UTF-8" />
21236
21240
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
21237
21241
  <title>Bungee Dashboard</title>
21238
- <script type="module" crossorigin src="/__ui/assets/index-BFVayO0q.js"></script>
21239
- <link rel="modulepreload" crossorigin href="/__ui/assets/vendor-charts-Bo4qyjB7.js">
21240
- <link rel="modulepreload" crossorigin href="/__ui/assets/vendor-C5kRSwys.js">
21242
+ <script type="module" crossorigin src="/__ui/assets/index-Cy9q-Fz4.js"></script>
21243
+ <link rel="modulepreload" crossorigin href="/__ui/assets/vendor-charts-CBipcgT3.js">
21244
+ <link rel="modulepreload" crossorigin href="/__ui/assets/vendor-COcP1wx5.js">
21241
21245
  <link rel="modulepreload" crossorigin href="/__ui/assets/vendor-lodash-CRdCilnf.js">
21242
- <link rel="stylesheet" crossorigin href="/__ui/assets/index-D-TPeiTP.css">
21246
+ <link rel="stylesheet" crossorigin href="/__ui/assets/index-DsfEOypS.css">
21243
21247
  </head>
21244
21248
  <body>
21245
21249
  <div id="app"></div>
@@ -21247,7 +21251,10 @@ var init_assets = __esm(() => {
21247
21251
  </html>
21248
21252
  `,
21249
21253
  assets: {
21250
- "index-BFVayO0q.js": `import{r as Ip,g as r0,i as i0,$ as Ap,w as Zn,d as Fp,S as Nt,a as Ut,s as Vt,L as u0,b as H,c as yt,t as st,e as et,f as L,m as Ct,h as r,j as Et,k as o,l as Dt,o as Hs,n as Xn,D as f0,B as c0,p as v,q as Gl,u as Kl,v as t,x as _,y as h,z as Rt,A as ot,E as re,F as Mu,G as vt,H as le,I as V,J as Y,K as ut,M as Gt,N as oa,O as Mt,P as Ul,Q as dl,R as Sl,T as Ml,U as kt,V as Rl,W as pl,X as sa,Y as zp,Z as Cs,_ as Ru,a0 as Op,a1 as ta,a2 as Yr,a3 as e1,a4 as d0,a5 as p0,a6 as h0}from"./vendor-C5kRSwys.js";import{C as qu,a as Np,b as Up,P as m0,c as g0,p as _0,d as Hu,e as Lu,A as b0,f as v0}from"./vendor-charts-Bo4qyjB7.js";import{s as k0}from"./vendor-lodash-CRdCilnf.js";(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))n(a);new MutationObserver(a=>{for(const i of a)if(i.type==="childList")for(const u of i.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&n(u)}).observe(document,{childList:!0,subtree:!0});function e(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerPolicy&&(i.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?i.credentials="include":a.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(a){if(a.ep)return;a.ep=!0;const i=e(a);fetch(a.href,i)}})();const w0="modulepreload",y0=function(l){return"/__ui/"+l},t1={},Vp=function(s,e,n){let a=Promise.resolve();if(e&&e.length>0){let u=function(d){return Promise.all(d.map(p=>Promise.resolve(p).then(m=>({status:"fulfilled",value:m}),m=>({status:"rejected",reason:m}))))};document.getElementsByTagName("link");const c=document.querySelector("meta[property=csp-nonce]"),f=c?.nonce||c?.getAttribute("nonce");a=u(e.map(d=>{if(d=y0(d),d in t1)return;t1[d]=!0;const p=d.endsWith(".css"),m=p?'[rel="stylesheet"]':"";if(document.querySelector(\`link[href="\${d}"]\${m}\`))return;const g=document.createElement("link");if(g.rel=p?"stylesheet":w0,p||(g.as="script"),g.crossOrigin="",g.href=d,f&&g.setAttribute("nonce",f),document.head.appendChild(g),p)return new Promise((b,k)=>{g.addEventListener("load",b),g.addEventListener("error",()=>k(new Error(\`Unable to preload CSS for \${d}\`)))})}))}function i(u){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=u,window.dispatchEvent(c),!c.defaultPrevented)throw u}return a.then(u=>{for(const c of u||[])c.status==="rejected"&&i(c.reason);return s().catch(i)})},Jp="zh-CN",Wp="locale",Qr=[{code:"zh-CN",name:"\u4E2D\u6587"},{code:"en",name:"English"}];Ip("zh-CN",()=>Vp(()=>import("./zh-CN-wPD53IzZ.js"),[]));Ip("en",()=>Vp(()=>import("./en-D_EcykrR.js"),[]));function C0(){return typeof localStorage<"u"?localStorage.getItem(Wp):null}function E0(l){typeof localStorage<"u"&&localStorage.setItem(Wp,l)}function T0(l){Ap.set(l),E0(l)}const S0=C0(),M0=r0(),R0=S0||M0||Jp;i0({fallbackLocale:Jp,initialLocale:R0});const na="bungee_auth_token",Gp=Zn(typeof window<"u"?localStorage.getItem(na):null),ei=Zn(typeof window<"u"?!!localStorage.getItem(na):!1),l1=Zn(!1);function q0(l){typeof window>"u"||(localStorage.setItem(na,l),Gp.set(l),ei.set(!0))}function Kp(){typeof window>"u"||(localStorage.removeItem(na),Gp.set(null),ei.set(!1))}function Yp(){return typeof window>"u"?null:localStorage.getItem(na)}const H0="/__ui/api";async function Zr(l,s){const e=\`\${H0}\${l}\`,n=Yp(),a={"Content-Type":"application/json",...s?.headers};n&&(a.Authorization=\`Bearer \${n}\`);const i=await fetch(e,{...s,headers:a});if(i.status===401)throw Kp(),window.location.hash="#/login",new Error("Unauthorized: Please login");if(!i.ok){const c=await i.json().catch(()=>({error:"Unknown error"}));throw new Error(c.error||\`Request failed with status \${i.status}\`)}return await i.json()}const yl={get:l=>Zr(l),post:(l,s)=>Zr(l,{method:"POST",body:JSON.stringify(s)}),put:(l,s)=>Zr(l,{method:"PUT",body:JSON.stringify(s)}),delete:l=>Zr(l,{method:"DELETE"})};async function Pu(){return yl.get("/config")}async function L0(l){return yl.put("/config",l)}async function P0(l){return yl.post("/config/validate",l)}async function j0(l="1h"){return yl.get(\`/stats/history/v2?range=\${l}\`)}async function D0(l="1h"){return yl.get(\`/stats/upstream-status-codes?range=\${l}\`)}async function s1(l="1h",s="all"){return yl.get(\`/stats/upstream-stats?range=\${l}&type=\${s}\`)}const o1=typeof window<"u";function B0(){const{subscribe:l,set:s}=Zn({textColor:"rgba(255, 255, 255, 0.9)",gridColor:"rgba(255, 255, 255, 0.1)"});let e=null,n=null,a=!1;function i(){if(!o1)return;const f=document.createElement("div");f.className="text-base-content",f.style.position="absolute",f.style.visibility="hidden",document.body.appendChild(f);const d=getComputedStyle(f).color;document.body.removeChild(f);const p=d.match(/rgba?\\((\\d+),\\s*(\\d+),\\s*(\\d+)(?:,\\s*[\\d.]+)?\\)/);if(p){const m=parseInt(p[1]),g=parseInt(p[2]),b=parseInt(p[3]),w=(m*299+g*587+b*114)/1e3<128?.2:.15,C=\`rgba(\${m}, \${g}, \${b}, \${w})\`;s({textColor:d,gridColor:C})}else s({textColor:"rgba(100, 100, 100, 0.9)",gridColor:"rgba(100, 100, 100, 0.2)"})}function u(){if(!o1||a)return;a=!0,i(),e=new MutationObserver(()=>{i()}),e.observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme","class"]}),n=window.matchMedia("(prefers-color-scheme: dark)");const f=()=>i();n.addEventListener("change",f),typeof window<"u"&&window.addEventListener("beforeunload",()=>{c()})}function c(){e&&(e.disconnect(),e=null),n&&(n.removeEventListener("change",i),n=null),a=!1}return{subscribe:l,init:u,cleanup:c}}const zs=B0();Fp(zs,l=>l.textColor);Fp(zs,l=>l.gridColor);function ju(l,s,e=!0){return{display:e&&!!l,text:l,color:s,font:{size:16,weight:"bold"}}}function I0(l,s={}){const{position:e="top",display:n=!0,padding:a=15,fontSize:i=11}=s;return{display:n,position:e,labels:{padding:a,font:{size:i},color:l}}}function ti(l,s,e={}){const{stacked:n=!1,beginAtZero:a=!0,fontSize:i=11,maxRotation:u,minRotation:c,title:f}=e,d={stacked:n,beginAtZero:a,ticks:{font:{size:i},color:l},grid:{color:s}};return f&&(d.title={display:f.display,text:f.text,color:l}),u!==void 0&&(d.ticks.maxRotation=u),c!==void 0&&(d.ticks.minRotation=c),d}function Qp(l="index",s=!1){return{mode:l,intersect:s}}const $r=new Map,la=new Map;function Zp(l){return $r.has(l)||$r.set(l,Zn({activeIndex:null})),$r.get(l)}function A0(l,s){la.has(l)||la.set(l,new Set),la.get(l).add(s)}function F0(l,s){const e=la.get(l);e&&(e.delete(s),e.size===0&&(la.delete(l),$r.delete(l)))}function n1(l,s,e){Zp(l).set({activeIndex:s,sourceChartId:e})}function z0(l){let s=null,e=!1;return{id:\`chartSync-\${l}-\${Math.random().toString(36).substring(2,11)}\`,afterInit(a){A0(l,a),s=Zp(l).subscribe(u=>{e||(u.activeIndex!==null&&u.sourceChartId!==a.id?O0(a,u.activeIndex):u.activeIndex===null&&N0(a))})},afterEvent(a,i){const u=i.event;if(u.type==="mousemove"){const c=a.getElementsAtEventForMode(u,"index",{axis:"x",intersect:!1},!1);if(c.length>0){const f=c[0].index;n1(l,f,a.id),i.changed=!0}}else u.type==="mouseout"&&(n1(l,null,a.id),i.changed=!0)},destroy(a){e=!0,s&&(s(),s=null),F0(l,a)}}}function O0(l,s){try{if(!l||!l.ctx||!l.tooltip||!l.data.datasets||l.data.datasets.length===0)return;const e=[];for(let n=0;n<l.data.datasets.length;n++){const a=l.data.datasets[n];if(!a.data||s<0||s>=a.data.length)continue;const i=l.getDatasetMeta(n);!i||!i.controller||!i.data||!i.data[s]||e.push({datasetIndex:n,index:s})}if(e.length===0)return;l.tooltip.setActiveElements(e,{x:0,y:0}),l.update("none")}catch(e){console.debug("Chart sync: tooltip update failed (chart may be destroying)",e)}}function N0(l){try{if(!l||!l.ctx||!l.tooltip)return;l.tooltip.setActiveElements([],{x:0,y:0}),l.update("none")}catch(s){console.debug("Chart sync: tooltip hide failed (chart may be destroying)",s)}}function U0(l){let s,e,n;return e=new u0({props:{data:l[2],options:l[1],plugins:l[0]}}),{c(){s=r("div"),Et(e.$$.fragment),o(s,"class","w-full h-full")},m(a,i){L(a,s,i),Ct(e,s,null),n=!0},p(a,[i]){const u={};i&4&&(u.data=a[2]),i&2&&(u.options=a[1]),i&1&&(u.plugins=a[0]),e.$set(u)},i(a){n||(et(e.$$.fragment,a),n=!0)},o(a){st(e.$$.fragment,a),n=!1},d(a){a&&H(s),yt(e)}}}function V0(l,s,e){let n,a,i,u;Dt(l,zs,g=>e(8,u=g)),qu.register(Np,Up,m0,g0,_0,Hu,Lu);let{title:c}=s,{labels:f}=s,{datasets:d}=s,{yAxisLabel:p=""}=s,{syncGroup:m=void 0}=s;return Hs(()=>{zs.init()}),Xn(()=>{zs.cleanup()}),l.$$set=g=>{"title"in g&&e(3,c=g.title),"labels"in g&&e(4,f=g.labels),"datasets"in g&&e(5,d=g.datasets),"yAxisLabel"in g&&e(6,p=g.yAxisLabel),"syncGroup"in g&&e(7,m=g.syncGroup)},l.$$.update=()=>{l.$$.dirty&48&&e(2,n={labels:f,datasets:d.map(g=>({...g,borderColor:g.borderColor||"rgb(75, 192, 192)",backgroundColor:g.backgroundColor||"rgba(75, 192, 192, 0.2)",tension:g.tension??.4}))}),l.$$.dirty&360&&e(1,a={responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:d.length>1,position:"top",labels:{color:u.textColor}},title:ju(c,u.textColor,!0),tooltip:Qp("index",!1)},scales:{y:ti(u.textColor,u.gridColor,{beginAtZero:!0,title:p?{display:!0,text:p}:void 0}),x:{...ti(u.textColor,u.gridColor),ticks:{maxRotation:45,minRotation:0,autoSkip:!0,maxTicksLimit:10,color:u.textColor}}},interaction:{mode:"index",axis:"x",intersect:!1}}),l.$$.dirty&128&&e(0,i=m?[z0(m)]:[])},[i,a,n,c,f,d,p,m,u]}class Xr extends Nt{constructor(s){super(),Ut(this,s,V0,U0,Vt,{title:3,labels:4,datasets:5,yAxisLabel:6,syncGroup:7})}}function J0(l){let s,e,n;return e=new f0({props:{data:l[1],options:l[0]}}),{c(){s=r("div"),Et(e.$$.fragment),o(s,"class","w-full h-full")},m(a,i){L(a,s,i),Ct(e,s,null),n=!0},p(a,[i]){const u={};i&2&&(u.data=a[1]),i&1&&(u.options=a[0]),e.$set(u)},i(a){n||(et(e.$$.fragment,a),n=!0)},o(a){st(e.$$.fragment,a),n=!1},d(a){a&&H(s),yt(e)}}}function W0(l,s,e){let n,a,i;Dt(l,zs,f=>e(4,i=f)),qu.register(b0,Hu,Lu);let{data:u=[]}=s,{title:c=""}=s;return Hs(()=>{zs.init()}),Xn(()=>{zs.cleanup()}),l.$$set=f=>{"data"in f&&e(2,u=f.data),"title"in f&&e(3,c=f.title)},l.$$.update=()=>{l.$$.dirty&20&&e(1,n={labels:u.map(f=>f.label),datasets:[{data:u.map(f=>f.value),backgroundColor:["rgba(59, 130, 246, 0.8)","rgba(16, 185, 129, 0.8)","rgba(245, 158, 11, 0.8)","rgba(239, 68, 68, 0.8)","rgba(168, 85, 247, 0.8)","rgba(236, 72, 153, 0.8)","rgba(20, 184, 166, 0.8)","rgba(251, 146, 60, 0.8)","rgba(132, 204, 22, 0.8)","rgba(148, 163, 184, 0.8)"],borderColor:i.gridColor,borderWidth:1}]}),l.$$.dirty&28&&e(0,a={responsive:!0,maintainAspectRatio:!1,plugins:{title:ju(c,i.textColor),legend:{position:"right",labels:{padding:10,font:{size:11},color:i.textColor,generateLabels:f=>{const p=f.data.datasets[0].backgroundColor,m=f.getDatasetMeta(0);return f.data.labels?.map((g,b)=>{const k=m.data[b],w=k&&typeof k.hidden<"u"?k.hidden:!1;return{text:\`\${g} (\${u[b]?.percentage||0}%)\`,fillStyle:p[b],strokeStyle:p[b],fontColor:i.textColor,hidden:w,index:b,datasetIndex:0}})||[]}},onClick:(f,d,p)=>{const m=d.index,g=p.chart,b=g.getDatasetMeta(0);b.data[m].hidden=!b.data[m].hidden,g.update()}},tooltip:{callbacks:{label:f=>{const d=f.label||"",p=f.parsed||0,m=u[f.dataIndex]?.percentage||0;return\`\${d}: \${p} (\${m}%)\`}}}}})},[a,n,u,c,i]}class Xp extends Nt{constructor(s){super(),Ut(this,s,W0,J0,Vt,{data:2,title:3})}}function G0(l){let s,e,n;return e=new c0({props:{data:l[1],options:l[0]}}),{c(){s=r("div"),Et(e.$$.fragment),o(s,"class","w-full h-full")},m(a,i){L(a,s,i),Ct(e,s,null),n=!0},p(a,[i]){const u={};i&2&&(u.data=a[1]),i&1&&(u.options=a[0]),e.$set(u)},i(a){n||(et(e.$$.fragment,a),n=!0)},o(a){st(e.$$.fragment,a),n=!1},d(a){a&&H(s),yt(e)}}}function K0(l,s,e){let n,a,i;Dt(l,zs,f=>e(4,i=f)),qu.register(v0,Np,Up,Hu,Lu);let{data:u=[]}=s,{title:c=""}=s;return Hs(()=>{zs.init()}),Xn(()=>{zs.cleanup()}),l.$$set=f=>{"data"in f&&e(2,u=f.data),"title"in f&&e(3,c=f.title)},l.$$.update=()=>{l.$$.dirty&4&&e(1,n={labels:u.map(f=>f.label),datasets:[{label:"2xx",data:u.map(f=>f.status2xx),backgroundColor:"rgba(16, 185, 129, 0.8)",borderColor:"rgba(16, 185, 129, 1)",borderWidth:1},{label:"3xx",data:u.map(f=>f.status3xx),backgroundColor:"rgba(59, 130, 246, 0.8)",borderColor:"rgba(59, 130, 246, 1)",borderWidth:1},{label:"4xx",data:u.map(f=>f.status4xx),backgroundColor:"rgba(245, 158, 11, 0.8)",borderColor:"rgba(245, 158, 11, 1)",borderWidth:1},{label:"5xx",data:u.map(f=>f.status5xx),backgroundColor:"rgba(239, 68, 68, 0.8)",borderColor:"rgba(239, 68, 68, 1)",borderWidth:1}]}),l.$$.dirty&24&&e(0,a={responsive:!0,maintainAspectRatio:!1,scales:{x:ti(i.textColor,i.gridColor,{stacked:!0,fontSize:10,maxRotation:45,minRotation:45}),y:ti(i.textColor,i.gridColor,{stacked:!0,beginAtZero:!0,fontSize:11})},plugins:{title:ju(c,i.textColor),legend:I0(i.textColor,{position:"top",padding:15,fontSize:11}),tooltip:Qp("index",!1)}})},[a,n,u,c,i]}class Y0 extends Nt{constructor(s){super(),Ut(this,s,K0,G0,Vt,{data:2,title:3})}}function Q0(l){let s,e,n,a,i,u=l[11]("monitoring.noData")+"",c;return{c(){s=r("div"),e=re("svg"),n=re("path"),a=h(),i=r("span"),c=_(u),o(n,"stroke-linecap","round"),o(n,"stroke-linejoin","round"),o(n,"stroke-width","2"),o(n,"d","M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"),o(e,"xmlns","http://www.w3.org/2000/svg"),o(e,"fill","none"),o(e,"viewBox","0 0 24 24"),o(e,"class","stroke-current shrink-0 w-6 h-6"),o(s,"class","alert alert-info")},m(f,d){L(f,s,d),t(s,e),t(e,n),t(s,a),t(s,i),t(i,c)},p(f,d){d&2048&&u!==(u=f[11]("monitoring.noData")+"")&&v(c,u)},i:ot,o:ot,d(f){f&&H(s)}}}function Z0(l){let s,e,n,a,i=l[11]("monitoring.charts.requestsTrend")+"",u,c,f,d,p,m,g,b,k=l[11]("monitoring.charts.responseTimeTrend")+"",w,C,E,y,T,M,R,j,P=l[11]("monitoring.charts.successRateTrend")+"",I,q,D,A,N,Z,Q,x,z=l[11]("monitoring.charts.errorsTrend")+"",K,S,B,U,F,J,ie,ue,ne,$,te,ae,ee,G,pe,oe,ge=l[11]("dashboard.upstreamFailures")+"",he,ye,ze,Pe,we,Fe,Je,je,Le,Se=l[11]("dashboard.upstreamStatusCodes")+"",fe,_e,Ie,De,se,ke;d=new Xr({props:{labels:l[10],datasets:[{label:l[11]("monitoring.charts.periodRequests"),data:l[9],borderColor:"rgb(59, 130, 246)",backgroundColor:"rgba(59, 130, 246, 0.1)"}],yAxisLabel:l[11]("monitoring.charts.requests"),syncGroup:"monitoring-trends"}}),y=new Xr({props:{labels:l[10],datasets:[{label:l[11]("monitoring.charts.avgResponseTime"),data:l[7],borderColor:"rgb(34, 197, 94)",backgroundColor:"rgba(34, 197, 94, 0.1)"}],yAxisLabel:l[11]("monitoring.charts.milliseconds"),syncGroup:"monitoring-trends"}}),A=new Xr({props:{labels:l[10],datasets:[{label:l[11]("monitoring.charts.successRate"),data:l[6],borderColor:"rgb(16, 185, 129)",backgroundColor:"rgba(16, 185, 129, 0.1)"}],yAxisLabel:l[11]("monitoring.charts.percentage"),syncGroup:"monitoring-trends"}}),U=new Xr({props:{labels:l[10],datasets:[{label:l[11]("monitoring.charts.periodErrors"),data:l[8],borderColor:"rgb(239, 68, 68)",backgroundColor:"rgba(239, 68, 68, 0.1)"}],yAxisLabel:l[11]("monitoring.charts.errors"),syncGroup:"monitoring-trends"}});const me=[e2,$0],Ee=[];function Ve(de,Te){return de[5].length>0?0:1}te=Ve(l),ae=Ee[te]=me[te](l);const Be=[l2,t2],nt=[];function Ne(de,Te){return de[4].length>0?0:1}Pe=Ne(l),we=nt[Pe]=Be[Pe](l);const Qe=[o2,s2],Ye=[];function ve(de,Te){return de[3].length>0?0:1}return De=ve(l),se=Ye[De]=Qe[De](l),{c(){s=r("div"),e=r("div"),n=r("div"),a=r("h3"),u=_(i),c=h(),f=r("div"),Et(d.$$.fragment),p=h(),m=r("div"),g=r("div"),b=r("h3"),w=_(k),C=h(),E=r("div"),Et(y.$$.fragment),T=h(),M=r("div"),R=r("div"),j=r("h3"),I=_(P),q=h(),D=r("div"),Et(A.$$.fragment),N=h(),Z=r("div"),Q=r("div"),x=r("h3"),K=_(z),S=h(),B=r("div"),Et(U.$$.fragment),F=h(),J=r("div"),ie=r("div"),ue=r("h3"),ue.textContent="\u4E0A\u6E38\u6210\u529F\u7EDF\u8BA1",ne=h(),$=r("div"),ae.c(),ee=h(),G=r("div"),pe=r("div"),oe=r("h3"),he=_(ge),ye=h(),ze=r("div"),we.c(),Fe=h(),Je=r("div"),je=r("div"),Le=r("h3"),fe=_(Se),_e=h(),Ie=r("div"),se.c(),o(a,"class","text-base font-semibold mb-3"),o(f,"class","h-64"),o(n,"class","card-body p-4"),o(e,"class","card bg-base-100 shadow-xl"),o(b,"class","text-base font-semibold mb-3"),o(E,"class","h-64"),o(g,"class","card-body p-4"),o(m,"class","card bg-base-100 shadow-xl"),o(j,"class","text-base font-semibold mb-3"),o(D,"class","h-64"),o(R,"class","card-body p-4"),o(M,"class","card bg-base-100 shadow-xl"),o(x,"class","text-base font-semibold mb-3"),o(B,"class","h-64"),o(Q,"class","card-body p-4"),o(Z,"class","card bg-base-100 shadow-xl"),o(ue,"class","text-base font-semibold mb-3"),o($,"class","h-64"),o(ie,"class","card-body p-4"),o(J,"class","card bg-base-100 shadow-xl"),o(oe,"class","text-base font-semibold mb-3"),o(ze,"class","h-64"),o(pe,"class","card-body p-4"),o(G,"class","card bg-base-100 shadow-xl"),o(Le,"class","text-base font-semibold mb-3"),o(Ie,"class","h-64"),o(je,"class","card-body p-4"),o(Je,"class","card bg-base-100 shadow-xl lg:col-span-2"),o(s,"class","grid grid-cols-1 lg:grid-cols-2 gap-6")},m(de,Te){L(de,s,Te),t(s,e),t(e,n),t(n,a),t(a,u),t(n,c),t(n,f),Ct(d,f,null),t(s,p),t(s,m),t(m,g),t(g,b),t(b,w),t(g,C),t(g,E),Ct(y,E,null),t(s,T),t(s,M),t(M,R),t(R,j),t(j,I),t(R,q),t(R,D),Ct(A,D,null),t(s,N),t(s,Z),t(Z,Q),t(Q,x),t(x,K),t(Q,S),t(Q,B),Ct(U,B,null),t(s,F),t(s,J),t(J,ie),t(ie,ue),t(ie,ne),t(ie,$),Ee[te].m($,null),t(s,ee),t(s,G),t(G,pe),t(pe,oe),t(oe,he),t(pe,ye),t(pe,ze),nt[Pe].m(ze,null),t(s,Fe),t(s,Je),t(Je,je),t(je,Le),t(Le,fe),t(je,_e),t(je,Ie),Ye[De].m(Ie,null),ke=!0},p(de,Te){(!ke||Te&2048)&&i!==(i=de[11]("monitoring.charts.requestsTrend")+"")&&v(u,i);const Ze={};Te&1024&&(Ze.labels=de[10]),Te&2560&&(Ze.datasets=[{label:de[11]("monitoring.charts.periodRequests"),data:de[9],borderColor:"rgb(59, 130, 246)",backgroundColor:"rgba(59, 130, 246, 0.1)"}]),Te&2048&&(Ze.yAxisLabel=de[11]("monitoring.charts.requests")),d.$set(Ze),(!ke||Te&2048)&&k!==(k=de[11]("monitoring.charts.responseTimeTrend")+"")&&v(w,k);const Me={};Te&1024&&(Me.labels=de[10]),Te&2176&&(Me.datasets=[{label:de[11]("monitoring.charts.avgResponseTime"),data:de[7],borderColor:"rgb(34, 197, 94)",backgroundColor:"rgba(34, 197, 94, 0.1)"}]),Te&2048&&(Me.yAxisLabel=de[11]("monitoring.charts.milliseconds")),y.$set(Me),(!ke||Te&2048)&&P!==(P=de[11]("monitoring.charts.successRateTrend")+"")&&v(I,P);const Ue={};Te&1024&&(Ue.labels=de[10]),Te&2112&&(Ue.datasets=[{label:de[11]("monitoring.charts.successRate"),data:de[6],borderColor:"rgb(16, 185, 129)",backgroundColor:"rgba(16, 185, 129, 0.1)"}]),Te&2048&&(Ue.yAxisLabel=de[11]("monitoring.charts.percentage")),A.$set(Ue),(!ke||Te&2048)&&z!==(z=de[11]("monitoring.charts.errorsTrend")+"")&&v(K,z);const Ce={};Te&1024&&(Ce.labels=de[10]),Te&2304&&(Ce.datasets=[{label:de[11]("monitoring.charts.periodErrors"),data:de[8],borderColor:"rgb(239, 68, 68)",backgroundColor:"rgba(239, 68, 68, 0.1)"}]),Te&2048&&(Ce.yAxisLabel=de[11]("monitoring.charts.errors")),U.$set(Ce);let mt=te;te=Ve(de),te===mt?Ee[te].p(de,Te):(Gl(),st(Ee[mt],1,1,()=>{Ee[mt]=null}),Kl(),ae=Ee[te],ae?ae.p(de,Te):(ae=Ee[te]=me[te](de),ae.c()),et(ae,1),ae.m($,null)),(!ke||Te&2048)&&ge!==(ge=de[11]("dashboard.upstreamFailures")+"")&&v(he,ge);let Ge=Pe;Pe=Ne(de),Pe===Ge?nt[Pe].p(de,Te):(Gl(),st(nt[Ge],1,1,()=>{nt[Ge]=null}),Kl(),we=nt[Pe],we?we.p(de,Te):(we=nt[Pe]=Be[Pe](de),we.c()),et(we,1),we.m(ze,null)),(!ke||Te&2048)&&Se!==(Se=de[11]("dashboard.upstreamStatusCodes")+"")&&v(fe,Se);let ce=De;De=ve(de),De===ce?Ye[De].p(de,Te):(Gl(),st(Ye[ce],1,1,()=>{Ye[ce]=null}),Kl(),se=Ye[De],se?se.p(de,Te):(se=Ye[De]=Qe[De](de),se.c()),et(se,1),se.m(Ie,null))},i(de){ke||(et(d.$$.fragment,de),et(y.$$.fragment,de),et(A.$$.fragment,de),et(U.$$.fragment,de),et(ae),et(we),et(se),ke=!0)},o(de){st(d.$$.fragment,de),st(y.$$.fragment,de),st(A.$$.fragment,de),st(U.$$.fragment,de),st(ae),st(we),st(se),ke=!1},d(de){de&&H(s),yt(d),yt(y),yt(A),yt(U),Ee[te].d(),nt[Pe].d(),Ye[De].d()}}}function X0(l){let s,e,n,a,i,u=l[11]("common.error")+"",c,f,d;return{c(){s=r("div"),e=re("svg"),n=re("path"),a=h(),i=r("span"),c=_(u),f=_(": "),d=_(l[1]),o(n,"stroke-linecap","round"),o(n,"stroke-linejoin","round"),o(n,"stroke-width","2"),o(n,"d","M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z"),o(e,"xmlns","http://www.w3.org/2000/svg"),o(e,"class","stroke-current shrink-0 h-6 w-6"),o(e,"fill","none"),o(e,"viewBox","0 0 24 24"),o(s,"class","alert alert-error")},m(p,m){L(p,s,m),t(s,e),t(e,n),t(s,a),t(s,i),t(i,c),t(i,f),t(i,d)},p(p,m){m&2048&&u!==(u=p[11]("common.error")+"")&&v(c,u),m&2&&v(d,p[1])},i:ot,o:ot,d(p){p&&H(s)}}}function x0(l){let s;return{c(){s=r("div"),s.innerHTML='<span class="loading loading-spinner loading-lg"></span>',o(s,"class","flex justify-center items-center h-64")},m(e,n){L(e,s,n)},p:ot,i:ot,o:ot,d(e){e&&H(s)}}}function $0(l){let s,e,n,a,i,u=l[11]("dashboard.noData")+"",c;return{c(){s=r("div"),e=re("svg"),n=re("path"),a=h(),i=r("span"),c=_(u),o(n,"stroke-linecap","round"),o(n,"stroke-linejoin","round"),o(n,"stroke-width","1.5"),o(n,"d","M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"),o(e,"xmlns","http://www.w3.org/2000/svg"),o(e,"class","h-12 w-12"),o(e,"fill","none"),o(e,"viewBox","0 0 24 24"),o(e,"stroke","currentColor"),o(i,"class","text-sm"),o(s,"class","flex flex-col items-center justify-center h-full gap-3 opacity-60")},m(f,d){L(f,s,d),t(s,e),t(e,n),t(s,a),t(s,i),t(i,c)},p(f,d){d&2048&&u!==(u=f[11]("dashboard.noData")+"")&&v(c,u)},i:ot,o:ot,d(f){f&&H(s)}}}function e2(l){let s,e;return s=new Xp({props:{data:l[5]}}),{c(){Et(s.$$.fragment)},m(n,a){Ct(s,n,a),e=!0},p(n,a){const i={};a&32&&(i.data=n[5]),s.$set(i)},i(n){e||(et(s.$$.fragment,n),e=!0)},o(n){st(s.$$.fragment,n),e=!1},d(n){yt(s,n)}}}function t2(l){let s,e,n,a,i,u=l[11]("dashboard.noData")+"",c;return{c(){s=r("div"),e=re("svg"),n=re("path"),a=h(),i=r("span"),c=_(u),o(n,"stroke-linecap","round"),o(n,"stroke-linejoin","round"),o(n,"stroke-width","1.5"),o(n,"d","M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"),o(e,"xmlns","http://www.w3.org/2000/svg"),o(e,"class","h-12 w-12"),o(e,"fill","none"),o(e,"viewBox","0 0 24 24"),o(e,"stroke","currentColor"),o(i,"class","text-sm"),o(s,"class","flex flex-col items-center justify-center h-full gap-3 opacity-60")},m(f,d){L(f,s,d),t(s,e),t(e,n),t(s,a),t(s,i),t(i,c)},p(f,d){d&2048&&u!==(u=f[11]("dashboard.noData")+"")&&v(c,u)},i:ot,o:ot,d(f){f&&H(s)}}}function l2(l){let s,e;return s=new Xp({props:{data:l[4]}}),{c(){Et(s.$$.fragment)},m(n,a){Ct(s,n,a),e=!0},p(n,a){const i={};a&16&&(i.data=n[4]),s.$set(i)},i(n){e||(et(s.$$.fragment,n),e=!0)},o(n){st(s.$$.fragment,n),e=!1},d(n){yt(s,n)}}}function s2(l){let s,e,n,a,i,u=l[11]("dashboard.noData")+"",c;return{c(){s=r("div"),e=re("svg"),n=re("path"),a=h(),i=r("span"),c=_(u),o(n,"stroke-linecap","round"),o(n,"stroke-linejoin","round"),o(n,"stroke-width","1.5"),o(n,"d","M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"),o(e,"xmlns","http://www.w3.org/2000/svg"),o(e,"class","h-12 w-12"),o(e,"fill","none"),o(e,"viewBox","0 0 24 24"),o(e,"stroke","currentColor"),o(i,"class","text-sm"),o(s,"class","flex flex-col items-center justify-center h-full gap-3 opacity-60")},m(f,d){L(f,s,d),t(s,e),t(e,n),t(s,a),t(s,i),t(i,c)},p(f,d){d&2048&&u!==(u=f[11]("dashboard.noData")+"")&&v(c,u)},i:ot,o:ot,d(f){f&&H(s)}}}function o2(l){let s,e;return s=new Y0({props:{data:l[3]}}),{c(){Et(s.$$.fragment)},m(n,a){Ct(s,n,a),e=!0},p(n,a){const i={};a&8&&(i.data=n[3]),s.$set(i)},i(n){e||(et(s.$$.fragment,n),e=!0)},o(n){st(s.$$.fragment,n),e=!1},d(n){yt(s,n)}}}function n2(l){let s,e,n,a=l[11]("monitoring.title")+"",i,u,c,f,d;const p=[x0,X0,Z0,Q0],m=[];function g(b,k){return b[2]&&!b[0]?0:b[1]?1:b[0]&&b[0].timestamps.length>0?2:3}return c=g(l),f=m[c]=p[c](l),{c(){s=r("div"),e=r("div"),n=r("h2"),i=_(a),u=h(),f.c(),o(n,"class","text-2xl font-bold"),o(s,"class","space-y-6")},m(b,k){L(b,s,k),t(s,e),t(e,n),t(n,i),t(s,u),m[c].m(s,null),d=!0},p(b,[k]){(!d||k&2048)&&a!==(a=b[11]("monitoring.title")+"")&&v(i,a);let w=c;c=g(b),c===w?m[c].p(b,k):(Gl(),st(m[w],1,1,()=>{m[w]=null}),Kl(),f=m[c],f?f.p(b,k):(f=m[c]=p[c](b),f.c()),et(f,1),f.m(s,null))},i(b){d||(et(f),d=!0)},o(b){st(f),d=!1},d(b){b&&H(s),m[c].d()}}}function a2(l,s,e){let n,a,i,u,c,f,d,p,m;Dt(l,Rt,I=>e(11,m=I));let{selectedRange:g="1h"}=s,{onDataLoaded:b=()=>{}}=s,k=null,w=!0,C=null,E,y=[],T=[],M=[];async function R(){try{e(2,w=!0),e(0,k=await j0(g)),e(1,C=null)}catch(I){e(1,C=I.message)}finally{e(2,w=!1)}}async function j(){try{const[I,q,D]=await Promise.all([s1(g,"success"),s1(g,"failure"),D0(g)]);e(14,y=I.data),e(15,T=q.data),e(16,M=D.data)}catch(I){console.error("Failed to load upstream stats:",I)}finally{}}async function P(){await Promise.all([R(),j()])}return Hs(()=>{P(),E=setInterval(P,3e4)}),Xn(()=>{E&&clearInterval(E)}),l.$$set=I=>{"selectedRange"in I&&e(12,g=I.selectedRange),"onDataLoaded"in I&&e(13,b=I.onDataLoaded)},l.$$.update=()=>{l.$$.dirty&4096&&g&&P(),l.$$.dirty&8195&&(k!==null||C!==null)&&b(C?null:k),l.$$.dirty&4097&&e(10,n=k?.timestamps.map(I=>{const q=new Date(I);switch(g){case"1h":return q.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"});case"12h":return q.toLocaleString("zh-CN",{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"});case"24h":return q.toLocaleString("zh-CN",{month:"short",day:"numeric",hour:"2-digit"});default:return q.toLocaleTimeString("zh-CN")}})||[]),l.$$.dirty&1&&e(9,a=k?.requests||[]),l.$$.dirty&1&&e(8,i=k?.errors||[]),l.$$.dirty&1&&e(7,u=k?.responseTime||[]),l.$$.dirty&1&&e(6,c=k?.successRate||[]),l.$$.dirty&16384&&e(5,f=y.map(I=>({label:new URL(I.upstream).host,value:I.count,percentage:I.percentage}))),l.$$.dirty&32768&&e(4,d=T.filter(I=>I.failedRequests>0).sort((I,q)=>q.failedRequests-I.failedRequests).map(I=>({label:new URL(I.upstream).host,value:I.failedRequests,percentage:I.percentage}))),l.$$.dirty&65536&&e(3,p=M.map(I=>({label:new URL(I.upstream).host,status2xx:I.status2xx,status3xx:I.status3xx,status4xx:I.status4xx,status5xx:I.status5xx})))},[k,C,w,p,d,f,c,u,i,a,n,m,g,b,y,T,M]}class r2 extends Nt{constructor(s){super(),Ut(this,s,a2,n2,Vt,{selectedRange:12,onDataLoaded:13})}}function i2(l){let s,e,n,a,i=l[2]("dashboard.totalRequests")+"",u,c,f,d,p,m,g,b=l[2]("dashboard.requestsPerSecond")+"",k,w,C,E,y,T,M,R=l[2]("dashboard.successRate")+"",j,P,I,q,D,A,N,Z=l[2]("dashboard.avgResponseTime")+"",Q,x,z;return{c(){s=r("div"),e=r("div"),n=r("div"),a=r("h2"),u=_(i),c=h(),f=r("p"),f.textContent="-",d=h(),p=r("div"),m=r("div"),g=r("h2"),k=_(b),w=h(),C=r("p"),C.textContent="-",E=h(),y=r("div"),T=r("div"),M=r("h2"),j=_(R),P=h(),I=r("p"),I.textContent="-",q=h(),D=r("div"),A=r("div"),N=r("h2"),Q=_(Z),x=h(),z=r("p"),z.textContent="-",o(a,"class","card-title text-sm"),o(f,"class","text-3xl font-bold"),o(n,"class","card-body"),o(e,"class","card bg-base-100 shadow-xl"),o(g,"class","card-title text-sm"),o(C,"class","text-3xl font-bold"),o(m,"class","card-body"),o(p,"class","card bg-base-100 shadow-xl"),o(M,"class","card-title text-sm"),o(I,"class","text-3xl font-bold"),o(T,"class","card-body"),o(y,"class","card bg-base-100 shadow-xl"),o(N,"class","card-title text-sm"),o(z,"class","text-3xl font-bold"),o(A,"class","card-body"),o(D,"class","card bg-base-100 shadow-xl"),o(s,"class","grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4 mb-8")},m(K,S){L(K,s,S),t(s,e),t(e,n),t(n,a),t(a,u),t(n,c),t(n,f),t(s,d),t(s,p),t(p,m),t(m,g),t(g,k),t(m,w),t(m,C),t(s,E),t(s,y),t(y,T),t(T,M),t(M,j),t(T,P),t(T,I),t(s,q),t(s,D),t(D,A),t(A,N),t(N,Q),t(A,x),t(A,z)},p(K,S){S&4&&i!==(i=K[2]("dashboard.totalRequests")+"")&&v(u,i),S&4&&b!==(b=K[2]("dashboard.requestsPerSecond")+"")&&v(k,b),S&4&&R!==(R=K[2]("dashboard.successRate")+"")&&v(j,R),S&4&&Z!==(Z=K[2]("dashboard.avgResponseTime")+"")&&v(Q,Z)},d(K){K&&H(s)}}}function u2(l){let s,e,n,a,i=l[2]("dashboard.totalRequests")+"",u,c,f,d=l[1].totalRequests+"",p,m,g,b,k,w=l[2]("dashboard.requestsPerSecond")+"",C,E,y,T=l[1].requestsPerSecond.toFixed(2)+"",M,R,j,P,I,q=l[2]("dashboard.successRate")+"",D,A,N,Z=l[1].successRate.toFixed(1)+"",Q,x,z,K,S,B,U=l[2]("dashboard.avgResponseTime")+"",F,J,ie,ue=l[1].avgResponseTime.toFixed(0)+"",ne,$;return{c(){s=r("div"),e=r("div"),n=r("div"),a=r("h2"),u=_(i),c=h(),f=r("p"),p=_(d),m=h(),g=r("div"),b=r("div"),k=r("h2"),C=_(w),E=h(),y=r("p"),M=_(T),R=h(),j=r("div"),P=r("div"),I=r("h2"),D=_(q),A=h(),N=r("p"),Q=_(Z),x=_("%"),z=h(),K=r("div"),S=r("div"),B=r("h2"),F=_(U),J=h(),ie=r("p"),ne=_(ue),$=_("ms"),o(a,"class","card-title text-sm"),o(f,"class","text-3xl font-bold"),o(n,"class","card-body"),o(e,"class","card bg-base-100 shadow-xl"),o(k,"class","card-title text-sm"),o(y,"class","text-3xl font-bold"),o(b,"class","card-body"),o(g,"class","card bg-base-100 shadow-xl"),o(I,"class","card-title text-sm"),o(N,"class","text-3xl font-bold"),o(P,"class","card-body"),o(j,"class","card bg-base-100 shadow-xl"),o(B,"class","card-title text-sm"),o(ie,"class","text-3xl font-bold"),o(S,"class","card-body"),o(K,"class","card bg-base-100 shadow-xl"),o(s,"class","grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4 mb-8")},m(te,ae){L(te,s,ae),t(s,e),t(e,n),t(n,a),t(a,u),t(n,c),t(n,f),t(f,p),t(s,m),t(s,g),t(g,b),t(b,k),t(k,C),t(b,E),t(b,y),t(y,M),t(s,R),t(s,j),t(j,P),t(P,I),t(I,D),t(P,A),t(P,N),t(N,Q),t(N,x),t(s,z),t(s,K),t(K,S),t(S,B),t(B,F),t(S,J),t(S,ie),t(ie,ne),t(ie,$)},p(te,ae){ae&4&&i!==(i=te[2]("dashboard.totalRequests")+"")&&v(u,i),ae&2&&d!==(d=te[1].totalRequests+"")&&v(p,d),ae&4&&w!==(w=te[2]("dashboard.requestsPerSecond")+"")&&v(C,w),ae&2&&T!==(T=te[1].requestsPerSecond.toFixed(2)+"")&&v(M,T),ae&4&&q!==(q=te[2]("dashboard.successRate")+"")&&v(D,q),ae&2&&Z!==(Z=te[1].successRate.toFixed(1)+"")&&v(Q,Z),ae&4&&U!==(U=te[2]("dashboard.avgResponseTime")+"")&&v(F,U),ae&2&&ue!==(ue=te[1].avgResponseTime.toFixed(0)+"")&&v(ne,ue)},d(te){te&&H(s)}}}function f2(l){let s,e,n=l[2]("dashboard.title")+"",a,i,u,c,f=l[2]("dashboard.dataRange")+"",d,p,m=l[2]("monitoring.range."+l[0])+"",g,b,k,w,C,E,y,T=l[2]("monitoring.range.oneHour")+"",M,R,j,P,I,q,D=l[2]("monitoring.range.twelveHours")+"",A,N,Z,Q,x,z,K=l[2]("monitoring.range.twentyFourHours")+"",S,B,U,F,J,ie,ue,ne;function $(ee,G){return ee[1]?u2:i2}let te=$(l),ae=te(l);return F=new r2({props:{selectedRange:l[0],onDataLoaded:l[3]}}),ie=Mu(l[5][0]),{c(){s=r("div"),e=r("h1"),a=_(n),i=h(),u=r("div"),c=r("p"),d=_(f),p=_(": "),g=_(m),b=h(),k=r("div"),w=r("label"),C=r("input"),E=h(),y=r("span"),M=_(T),R=h(),j=r("label"),P=r("input"),I=h(),q=r("span"),A=_(D),N=h(),Z=r("label"),Q=r("input"),x=h(),z=r("span"),S=_(K),B=h(),ae.c(),U=h(),Et(F.$$.fragment),o(e,"class","text-3xl font-bold mb-6"),o(c,"class","text-sm text-gray-500"),o(C,"class","sr-only"),o(C,"type","radio"),o(C,"name","range"),C.__value="1h",Y(C,C.__value),o(y,"class","block px-4 py-1.5 text-sm font-medium rounded-md transition-all"),le(y,"bg-primary",l[0]==="1h"),le(y,"text-primary-content",l[0]==="1h"),le(y,"shadow",l[0]==="1h"),le(y,"text-gray-700",l[0]!=="1h"),le(y,"dark:text-gray-300",l[0]!=="1h"),le(y,"hover:text-gray-900",l[0]!=="1h"),le(y,"dark:hover:text-gray-100",l[0]!=="1h"),o(w,"class","cursor-pointer"),o(P,"class","sr-only"),o(P,"type","radio"),o(P,"name","range"),P.__value="12h",Y(P,P.__value),o(q,"class","block px-4 py-1.5 text-sm font-medium rounded-md transition-all"),le(q,"bg-primary",l[0]==="12h"),le(q,"text-primary-content",l[0]==="12h"),le(q,"shadow",l[0]==="12h"),le(q,"text-gray-700",l[0]!=="12h"),le(q,"dark:text-gray-300",l[0]!=="12h"),le(q,"hover:text-gray-900",l[0]!=="12h"),le(q,"dark:hover:text-gray-100",l[0]!=="12h"),o(j,"class","cursor-pointer"),o(Q,"class","sr-only"),o(Q,"type","radio"),o(Q,"name","range"),Q.__value="24h",Y(Q,Q.__value),o(z,"class","block px-4 py-1.5 text-sm font-medium rounded-md transition-all"),le(z,"bg-primary",l[0]==="24h"),le(z,"text-primary-content",l[0]==="24h"),le(z,"shadow",l[0]==="24h"),le(z,"text-gray-700",l[0]!=="24h"),le(z,"dark:text-gray-300",l[0]!=="24h"),le(z,"hover:text-gray-900",l[0]!=="24h"),le(z,"dark:hover:text-gray-100",l[0]!=="24h"),o(Z,"class","cursor-pointer"),o(k,"class","inline-flex gap-1 p-1 bg-white dark:bg-gray-800 rounded-lg shadow-sm"),o(u,"class","flex justify-between items-center mb-6"),o(s,"class","p-6"),ie.p(C,P,Q)},m(ee,G){L(ee,s,G),t(s,e),t(e,a),t(s,i),t(s,u),t(u,c),t(c,d),t(c,p),t(c,g),t(u,b),t(u,k),t(k,w),t(w,C),C.checked=C.__value===l[0],t(w,E),t(w,y),t(y,M),t(k,R),t(k,j),t(j,P),P.checked=P.__value===l[0],t(j,I),t(j,q),t(q,A),t(k,N),t(k,Z),t(Z,Q),Q.checked=Q.__value===l[0],t(Z,x),t(Z,z),t(z,S),t(s,B),ae.m(s,null),t(s,U),Ct(F,s,null),J=!0,ue||(ne=[V(C,"change",l[4]),V(P,"change",l[6]),V(Q,"change",l[7])],ue=!0)},p(ee,[G]){(!J||G&4)&&n!==(n=ee[2]("dashboard.title")+"")&&v(a,n),(!J||G&4)&&f!==(f=ee[2]("dashboard.dataRange")+"")&&v(d,f),(!J||G&5)&&m!==(m=ee[2]("monitoring.range."+ee[0])+"")&&v(g,m),G&1&&(C.checked=C.__value===ee[0]),(!J||G&4)&&T!==(T=ee[2]("monitoring.range.oneHour")+"")&&v(M,T),(!J||G&1)&&le(y,"bg-primary",ee[0]==="1h"),(!J||G&1)&&le(y,"text-primary-content",ee[0]==="1h"),(!J||G&1)&&le(y,"shadow",ee[0]==="1h"),(!J||G&1)&&le(y,"text-gray-700",ee[0]!=="1h"),(!J||G&1)&&le(y,"dark:text-gray-300",ee[0]!=="1h"),(!J||G&1)&&le(y,"hover:text-gray-900",ee[0]!=="1h"),(!J||G&1)&&le(y,"dark:hover:text-gray-100",ee[0]!=="1h"),G&1&&(P.checked=P.__value===ee[0]),(!J||G&4)&&D!==(D=ee[2]("monitoring.range.twelveHours")+"")&&v(A,D),(!J||G&1)&&le(q,"bg-primary",ee[0]==="12h"),(!J||G&1)&&le(q,"text-primary-content",ee[0]==="12h"),(!J||G&1)&&le(q,"shadow",ee[0]==="12h"),(!J||G&1)&&le(q,"text-gray-700",ee[0]!=="12h"),(!J||G&1)&&le(q,"dark:text-gray-300",ee[0]!=="12h"),(!J||G&1)&&le(q,"hover:text-gray-900",ee[0]!=="12h"),(!J||G&1)&&le(q,"dark:hover:text-gray-100",ee[0]!=="12h"),G&1&&(Q.checked=Q.__value===ee[0]),(!J||G&4)&&K!==(K=ee[2]("monitoring.range.twentyFourHours")+"")&&v(S,K),(!J||G&1)&&le(z,"bg-primary",ee[0]==="24h"),(!J||G&1)&&le(z,"text-primary-content",ee[0]==="24h"),(!J||G&1)&&le(z,"shadow",ee[0]==="24h"),(!J||G&1)&&le(z,"text-gray-700",ee[0]!=="24h"),(!J||G&1)&&le(z,"dark:text-gray-300",ee[0]!=="24h"),(!J||G&1)&&le(z,"hover:text-gray-900",ee[0]!=="24h"),(!J||G&1)&&le(z,"dark:hover:text-gray-100",ee[0]!=="24h"),te===(te=$(ee))&&ae?ae.p(ee,G):(ae.d(1),ae=te(ee),ae&&(ae.c(),ae.m(s,U)));const pe={};G&1&&(pe.selectedRange=ee[0]),F.$set(pe)},i(ee){J||(et(F.$$.fragment,ee),J=!0)},o(ee){st(F.$$.fragment,ee),J=!1},d(ee){ee&&H(s),ae.d(),yt(F),ie.r(),ue=!1,vt(ne)}}}function c2(l){switch(l){case"1h":return 3600;case"12h":return 43200;case"24h":return 86400;default:return 3600}}function d2(l,s,e){let n;Dt(l,Rt,g=>e(2,n=g));let a="1h",i=null;function u(g){e(1,i=c(g))}function c(g){if(!g||g.requests.length===0)return null;const b=g.requests.reduce((T,M)=>T+M,0),k=c2(a),w=b/k,C=g.errors.reduce((T,M)=>T+M,0),E=b>0?(b-C)/b*100:100,y=g.responseTime.length>0?g.responseTime.reduce((T,M)=>T+M,0)/g.responseTime.length:0;return{totalRequests:b,requestsPerSecond:w,successRate:E,avgResponseTime:y}}const f=[[]];function d(){a=this.__value,e(0,a)}function p(){a=this.__value,e(0,a)}function m(){a=this.__value,e(0,a)}return[a,i,n,u,d,f,p,m]}class p2 extends Nt{constructor(s){super(),Ut(this,s,d2,f2,Vt,{})}}async function h2(){return yl.post("/system/reload",{})}async function m2(){return yl.post("/system/restart",{})}function ea(){const{subscribe:l,update:s}=Zn([]);let e=0;return{subscribe:l,show:(n,a="info",i=3e3)=>{const u=e++,c={id:u,message:n,type:a,duration:i};return s(f=>[...f,c]),i>0&&setTimeout(()=>{s(f=>f.filter(d=>d.id!==u))},i),u},success:(n,a=3e3)=>ea().show(n,"success",a),error:(n,a=4e3)=>ea().show(n,"error",a),warning:(n,a=3500)=>ea().show(n,"warning",a),info:(n,a=3e3)=>ea().show(n,"info",a),remove:n=>{s(a=>a.filter(i=>i.id!==n))},clear:()=>{s(()=>[])}}}const jt=ea();function a1(l,s,e){const n=l.slice();return n[13]=s[e],n[14]=s,n[15]=e,n}function r1(l){let s,e=l[5]("auth.helpText")+"",n;return{c(){s=r("span"),n=_(e),o(s,"class","label-text-alt text-xs")},m(a,i){L(a,s,i),t(s,n)},p(a,i){i&32&&e!==(e=a[5]("auth.helpText")+"")&&v(n,e)},d(a){a&&H(s)}}}function i1(l){let s,e,n,a,i=l[5]("auth.tokens")+"",u,c,f=l[3].length+"",d,p,m,g,b,k,w,C,E,y,T=l[5]("auth.expressionSupport")+"",M,R,j,P,I,q,D,A,N=l[5]("auth.addToken")+"",Z,Q,x,z,K,S,B,U=l[5]("auth.securityNotice")+"",F,J,ie,ue=ut(l[3]),ne=[];for(let $=0;$<ue.length;$+=1)ne[$]=u1(a1(l,ue,$));return{c(){s=r("div"),e=r("input"),n=h(),a=r("div"),u=_(i),c=_(" ("),d=_(f),p=_(")"),m=h(),g=r("div"),b=r("div"),k=re("svg"),w=re("path"),C=h(),E=r("div"),y=r("div"),M=_(T),R=h(),j=r("div"),P=r("code"),P.textContent="{{ env.API_TOKEN }}",I=h();for(let $=0;$<ne.length;$+=1)ne[$].c();q=h(),D=r("button"),A=_("+ "),Z=_(N),Q=h(),x=r("div"),z=re("svg"),K=re("path"),S=h(),B=r("div"),F=_(U),o(e,"type","checkbox"),e.checked=!0,o(a,"class","collapse-title text-sm font-medium"),o(w,"stroke-linecap","round"),o(w,"stroke-linejoin","round"),o(w,"stroke-width","2"),o(w,"d","M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"),o(k,"xmlns","http://www.w3.org/2000/svg"),o(k,"fill","none"),o(k,"viewBox","0 0 24 24"),o(k,"class","stroke-current shrink-0 w-4 h-4 opacity-60"),o(P,"class","text-xs bg-base-300 px-1 rounded"),o(j,"class","mt-1"),o(b,"class","text-xs text-base-content/60 bg-base-200 rounded p-3 flex gap-2"),o(D,"type","button"),o(D,"class","btn btn-sm btn-ghost"),o(g,"class","collapse-content space-y-2"),o(s,"class","collapse collapse-arrow bg-base-200 collapse-open"),o(K,"stroke-linecap","round"),o(K,"stroke-linejoin","round"),o(K,"stroke-width","2"),o(K,"d","M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"),o(z,"xmlns","http://www.w3.org/2000/svg"),o(z,"fill","none"),o(z,"viewBox","0 0 24 24"),o(z,"class","stroke-current shrink-0 w-4 h-4"),o(x,"class","alert alert-warning shadow-sm text-xs")},m($,te){L($,s,te),t(s,e),t(s,n),t(s,a),t(a,u),t(a,c),t(a,d),t(a,p),t(s,m),t(s,g),t(g,b),t(b,k),t(k,w),t(b,C),t(b,E),t(E,y),t(y,M),t(E,R),t(E,j),t(j,P),t(g,I);for(let ae=0;ae<ne.length;ae+=1)ne[ae]&&ne[ae].m(g,null);t(g,q),t(g,D),t(D,A),t(D,Z),L($,Q,te),L($,x,te),t(x,z),t(z,K),t(x,S),t(x,B),t(B,F),J||(ie=V(D,"click",l[6]),J=!0)},p($,te){if(te&32&&i!==(i=$[5]("auth.tokens")+"")&&v(u,i),te&8&&f!==(f=$[3].length+"")&&v(d,f),te&32&&T!==(T=$[5]("auth.expressionSupport")+"")&&v(M,T),te&168){ue=ut($[3]);let ae;for(ae=0;ae<ue.length;ae+=1){const ee=a1($,ue,ae);ne[ae]?ne[ae].p(ee,te):(ne[ae]=u1(ee),ne[ae].c(),ne[ae].m(g,q))}for(;ae<ne.length;ae+=1)ne[ae].d(1);ne.length=ue.length}te&32&&N!==(N=$[5]("auth.addToken")+"")&&v(Z,N),te&32&&U!==(U=$[5]("auth.securityNotice")+"")&&v(F,U)},d($){$&&(H(s),H(Q),H(x)),Gt(ne,$),J=!1,ie()}}}function u1(l){let s,e,n,a,i,u,c;function f(){l[11].call(e,l[15])}function d(){return l[12](l[15])}return{c(){s=r("div"),e=r("input"),a=h(),i=r("button"),i.textContent="\u2715",o(e,"type","text"),o(e,"placeholder",n=l[5]("auth.tokenPlaceholder")),o(e,"class","input input-bordered input-sm flex-1 font-mono text-xs"),o(i,"type","button"),o(i,"class","btn btn-sm btn-error btn-square"),o(s,"class","flex gap-2")},m(p,m){L(p,s,m),t(s,e),Y(e,l[3][l[15]]),t(s,a),t(s,i),u||(c=[V(e,"input",f),V(i,"click",d)],u=!0)},p(p,m){l=p,m&32&&n!==(n=l[5]("auth.tokenPlaceholder"))&&o(e,"placeholder",n),m&8&&e.value!==l[3][l[15]]&&Y(e,l[3][l[15]])},d(p){p&&H(s),u=!1,vt(c)}}}function g2(l){let s,e,n,a,i,u,c,f,d,p,m,g,b=l[5]("auth.enableAuth")+"",k,w,C,E,y=l[1]&&r1(l),T=l[2]&&i1(l);return{c(){s=r("div"),e=r("div"),n=r("span"),a=_(l[0]),i=h(),y&&y.c(),u=h(),c=r("div"),f=r("div"),d=r("label"),p=r("input"),m=h(),g=r("span"),k=_(b),w=h(),T&&T.c(),o(n,"class","label-text font-semibold"),o(e,"class","label"),o(p,"type","checkbox"),o(p,"class","checkbox"),o(g,"class","label-text"),o(d,"class","label cursor-pointer justify-start gap-4"),o(f,"class","form-control"),o(c,"class","space-y-4"),o(s,"class","form-control w-full")},m(M,R){L(M,s,R),t(s,e),t(e,n),t(n,a),t(e,i),y&&y.m(e,null),t(s,u),t(s,c),t(c,f),t(f,d),t(d,p),p.checked=l[2],t(d,m),t(d,g),t(g,k),t(c,w),T&&T.m(c,null),C||(E=[V(p,"change",l[9]),V(p,"change",l[10])],C=!0)},p(M,[R]){R&1&&v(a,M[0]),M[1]?y?y.p(M,R):(y=r1(M),y.c(),y.m(e,null)):y&&(y.d(1),y=null),R&4&&(p.checked=M[2]),R&32&&b!==(b=M[5]("auth.enableAuth")+"")&&v(k,b),M[2]?T?T.p(M,R):(T=i1(M),T.c(),T.m(c,null)):T&&(T.d(1),T=null)},i:ot,o:ot,d(M){M&&H(s),y&&y.d(),T&&T.d(),C=!1,vt(E)}}}function _2(l,s,e){let n;Dt(l,Rt,C=>e(5,n=C));let{value:a=void 0}=s,{label:i="Authentication"}=s,{showHelp:u=!0}=s,c=!1,f=[],d=!1;function p(){e(3,f=[...f,""]),e(4,d=!0)}function m(C){e(3,f=f.filter((E,y)=>y!==C))}function g(){c=this.checked,e(2,c),e(4,d),e(8,a),e(3,f)}const b=()=>{c&&f.length===0&&e(3,f=[""]),e(4,d=!0)};function k(C){f[C]=this.value,e(3,f),e(4,d),e(8,a),e(2,c)}const w=C=>m(C);return l.$$set=C=>{"value"in C&&e(8,a=C.value),"label"in C&&e(0,i=C.label),"showHelp"in C&&e(1,u=C.showHelp)},l.$$.update=()=>{if(l.$$.dirty&284)if(!d&&a&&(e(2,c=a.enabled||!1),e(3,f=a.tokens?[...a.tokens]:[]),e(4,d=!0)),c){const C=f.filter(E=>E.trim()!=="");a?(e(8,a.enabled=!0,a),e(8,a.tokens=C,a)):e(8,a={enabled:!0,tokens:C})}else a&&(e(8,a.enabled=!1,a),e(8,a.tokens=[],a))},[i,u,c,f,d,n,p,m,a,g,b,k,w]}class xp extends Nt{constructor(s){super(),Ut(this,s,_2,g2,Vt,{value:8,label:0,showHelp:1})}}async function b2(l={}){const s=new URLSearchParams;return Object.entries(l).forEach(([e,n])=>{n!=null&&(Array.isArray(n)?n.forEach(a=>s.append(e,String(a))):s.append(e,String(n)))}),yl.get(\`/logs?\${s.toString()}\`)}async function v2(l={},s="json"){const e=new URLSearchParams;Object.entries(l).forEach(([a,i])=>{i!=null&&e.append(a,String(i))}),e.append("format",s);const n=await fetch(\`/__ui/api/logs/export?\${e.toString()}\`);if(!n.ok)throw new Error("Failed to export logs");return n.blob()}async function Eu(l){return(await yl.get(\`/logs/body/\${l}\`)).content}async function Tu(l){return yl.get(\`/logs/headers/\${l}\`)}async function k2(){return yl.get("/logs/cleanup/config")}async function w2(){return yl.post("/logs/cleanup")}function f1(l){let s,e;return{c(){s=r("h3"),e=_(l[1]),o(s,"class","text-lg font-semibold")},m(n,a){L(n,s,a),t(s,e)},p(n,a){a&2&&v(e,n[1])},d(n){n&&H(s)}}}function c1(l){let s,e,n,a,i=l[6]("logging.maxSize")+"",u,c,f,d,p,m,g,b,k,w=l[6]("logging.maxSizeHelp")+"",C,E,y,T,M,R=l[6]("logging.retentionDays")+"",j,P,I,q,D,A,N=l[6]("logging.days")+"",Z,Q,x,z,K=l[6]("logging.retentionDaysHelp")+"",S,B,U;return{c(){s=r("div"),e=r("div"),n=r("label"),a=r("span"),u=_(i),c=h(),f=r("div"),d=r("input"),p=h(),m=r("span"),m.textContent="KB",g=h(),b=r("div"),k=r("span"),C=_(w),E=h(),y=r("div"),T=r("label"),M=r("span"),j=_(R),P=h(),I=r("div"),q=r("input"),D=h(),A=r("span"),Z=_(N),Q=h(),x=r("div"),z=r("span"),S=_(K),o(a,"class","label-text"),o(n,"class","label"),o(n,"for","logging-max-size"),o(d,"id","logging-max-size"),o(d,"type","number"),o(d,"class","input input-bordered flex-1"),o(d,"min","1024"),o(d,"max","102400"),o(d,"step","1024"),o(m,"class","text-sm text-gray-500"),o(f,"class","flex gap-2 items-center"),o(k,"class","label-text-alt"),o(b,"class","label"),o(e,"class","form-control"),o(M,"class","label-text"),o(T,"class","label"),o(T,"for","logging-retention-days"),o(q,"id","logging-retention-days"),o(q,"type","number"),o(q,"class","input input-bordered flex-1"),o(q,"min","1"),o(q,"max","30"),o(A,"class","text-sm text-gray-500"),o(I,"class","flex gap-2 items-center"),o(z,"class","label-text-alt"),o(x,"class","label"),o(y,"class","form-control"),o(s,"class","ml-8 space-y-4")},m(F,J){L(F,s,J),t(s,e),t(e,n),t(n,a),t(a,u),t(e,c),t(e,f),t(f,d),Y(d,l[0].body.maxSize),t(f,p),t(f,m),t(e,g),t(e,b),t(b,k),t(k,C),t(s,E),t(s,y),t(y,T),t(T,M),t(M,j),t(y,P),t(y,I),t(I,q),Y(q,l[0].body.retentionDays),t(I,D),t(I,A),t(A,Z),t(y,Q),t(y,x),t(x,z),t(z,S),B||(U=[V(d,"input",l[10]),V(d,"input",l[7]),V(q,"input",l[11]),V(q,"input",l[7])],B=!0)},p(F,J){J&64&&i!==(i=F[6]("logging.maxSize")+"")&&v(u,i),J&1&&Mt(d.value)!==F[0].body.maxSize&&Y(d,F[0].body.maxSize),J&64&&w!==(w=F[6]("logging.maxSizeHelp")+"")&&v(C,w),J&64&&R!==(R=F[6]("logging.retentionDays")+"")&&v(j,R),J&1&&Mt(q.value)!==F[0].body.retentionDays&&Y(q,F[0].body.retentionDays),J&64&&N!==(N=F[6]("logging.days")+"")&&v(Z,N),J&64&&K!==(K=F[6]("logging.retentionDaysHelp")+"")&&v(S,K)},d(F){F&&H(s),B=!1,vt(U)}}}function y2(l){let s,e,n,a=l[6]("logging.cleanupStatus")+"",i,u,c,f=(l[2].isActive?l[6]("logging.active"):l[6]("logging.inactive"))+"",d,p,m,g,b,k=l[6]("logging.cleanupRetention")+"",w,C,E,y=l[2].retentionDays+"",T,M,R=l[6]("logging.days")+"",j,P,I,q,D=l[6]("logging.cleanupInterval")+"",A,N,Z,Q=l[2].scheduleIntervalHours+"",x,z,K=l[6]("logging.hours")+"",S,B,U,F,J=l[6]("logging.manualCleanup")+"",ie,ue,ne,$,te;function ae(oe,ge){return oe[4]?T2:E2}let ee=ae(l),G=ee(l),pe=l[5]&&d1(l);return{c(){s=r("div"),e=r("div"),n=r("span"),i=_(a),u=h(),c=r("span"),d=_(f),m=h(),g=r("div"),b=r("span"),w=_(k),C=h(),E=r("span"),T=_(y),M=h(),j=_(R),P=h(),I=r("div"),q=r("span"),A=_(D),N=h(),Z=r("span"),x=_(Q),z=h(),S=_(K),B=h(),U=r("button"),G.c(),F=h(),ie=_(J),ue=h(),pe&&pe.c(),ne=Ul(),o(n,"class","text-gray-500"),o(c,"class",p="font-semibold "+(l[2].isActive?"text-success":"text-error")),o(e,"class","flex justify-between text-sm"),o(b,"class","text-gray-500"),o(E,"class","font-semibold"),o(g,"class","flex justify-between text-sm"),o(q,"class","text-gray-500"),o(Z,"class","font-semibold"),o(I,"class","flex justify-between text-sm"),o(s,"class","bg-base-200 p-4 rounded-lg space-y-2"),o(U,"class","btn btn-outline btn-sm w-full"),U.disabled=l[4]},m(oe,ge){L(oe,s,ge),t(s,e),t(e,n),t(n,i),t(e,u),t(e,c),t(c,d),t(s,m),t(s,g),t(g,b),t(b,w),t(g,C),t(g,E),t(E,T),t(E,M),t(E,j),t(s,P),t(s,I),t(I,q),t(q,A),t(I,N),t(I,Z),t(Z,x),t(Z,z),t(Z,S),L(oe,B,ge),L(oe,U,ge),G.m(U,null),t(U,F),t(U,ie),L(oe,ue,ge),pe&&pe.m(oe,ge),L(oe,ne,ge),$||(te=V(U,"click",l[8]),$=!0)},p(oe,ge){ge&64&&a!==(a=oe[6]("logging.cleanupStatus")+"")&&v(i,a),ge&68&&f!==(f=(oe[2].isActive?oe[6]("logging.active"):oe[6]("logging.inactive"))+"")&&v(d,f),ge&4&&p!==(p="font-semibold "+(oe[2].isActive?"text-success":"text-error"))&&o(c,"class",p),ge&64&&k!==(k=oe[6]("logging.cleanupRetention")+"")&&v(w,k),ge&4&&y!==(y=oe[2].retentionDays+"")&&v(T,y),ge&64&&R!==(R=oe[6]("logging.days")+"")&&v(j,R),ge&64&&D!==(D=oe[6]("logging.cleanupInterval")+"")&&v(A,D),ge&4&&Q!==(Q=oe[2].scheduleIntervalHours+"")&&v(x,Q),ge&64&&K!==(K=oe[6]("logging.hours")+"")&&v(S,K),ee!==(ee=ae(oe))&&(G.d(1),G=ee(oe),G&&(G.c(),G.m(U,F))),ge&64&&J!==(J=oe[6]("logging.manualCleanup")+"")&&v(ie,J),ge&16&&(U.disabled=oe[4]),oe[5]?pe?pe.p(oe,ge):(pe=d1(oe),pe.c(),pe.m(ne.parentNode,ne)):pe&&(pe.d(1),pe=null)},d(oe){oe&&(H(s),H(B),H(U),H(ue),H(ne)),G.d(),pe&&pe.d(oe),$=!1,te()}}}function C2(l){let s,e,n,a,i=l[6]("common.loading")+"",u;return{c(){s=r("div"),e=r("span"),n=h(),a=r("span"),u=_(i),o(e,"class","loading loading-spinner loading-sm"),o(a,"class","text-sm"),o(s,"class","flex items-center gap-2")},m(c,f){L(c,s,f),t(s,e),t(s,n),t(s,a),t(a,u)},p(c,f){f&64&&i!==(i=c[6]("common.loading")+"")&&v(u,i)},d(c){c&&H(s)}}}function E2(l){let s,e;return{c(){s=re("svg"),e=re("path"),o(e,"stroke-linecap","round"),o(e,"stroke-linejoin","round"),o(e,"stroke-width","2"),o(e,"d","M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"),o(s,"xmlns","http://www.w3.org/2000/svg"),o(s,"class","h-4 w-4"),o(s,"fill","none"),o(s,"viewBox","0 0 24 24"),o(s,"stroke","currentColor")},m(n,a){L(n,s,a),t(s,e)},d(n){n&&H(s)}}}function T2(l){let s;return{c(){s=r("span"),o(s,"class","loading loading-spinner loading-xs")},m(e,n){L(e,s,n)},d(e){e&&H(s)}}}function d1(l){let s,e,n,a,i,u,c=l[6]("logging.lastCleanup")+"",f,d,p,m,g=l[6]("logging.deletedSqliteRecords")+"",b,k,w=l[5].deletedSqliteRecords+"",C,E,y,T=l[6]("logging.deletedFileLogFiles")+"",M,R,j=l[5].deletedFileLogFiles+"",P,I,q,D=l[6]("logging.deletedBodyFiles")+"",A,N,Z=l[5].deletedBodyDirs+"",Q,x,z=l[6]("logging.dirs")+"",K,S,B=l[5].deletedBodyFiles+"",U,F,J=l[6]("logging.files")+"",ie,ue,ne,$=l[6]("logging.duration")+"",te,ae,ee=l[5].durationMs+"",G,pe;return{c(){s=r("div"),e=re("svg"),n=re("path"),a=h(),i=r("div"),u=r("div"),f=_(c),d=h(),p=r("div"),m=r("div"),b=_(g),k=_(": "),C=_(w),E=h(),y=r("div"),M=_(T),R=_(": "),P=_(j),I=h(),q=r("div"),A=_(D),N=_(": "),Q=_(Z),x=h(),K=_(z),S=_(", "),U=_(B),F=h(),ie=_(J),ue=h(),ne=r("div"),te=_($),ae=_(": "),G=_(ee),pe=_("ms"),o(n,"stroke-linecap","round"),o(n,"stroke-linejoin","round"),o(n,"stroke-width","2"),o(n,"d","M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"),o(e,"xmlns","http://www.w3.org/2000/svg"),o(e,"class","stroke-current shrink-0 h-6 w-6"),o(e,"fill","none"),o(e,"viewBox","0 0 24 24"),o(u,"class","font-semibold"),o(p,"class","mt-1 space-y-1"),o(i,"class","text-sm"),o(s,"class","alert alert-success")},m(oe,ge){L(oe,s,ge),t(s,e),t(e,n),t(s,a),t(s,i),t(i,u),t(u,f),t(i,d),t(i,p),t(p,m),t(m,b),t(m,k),t(m,C),t(p,E),t(p,y),t(y,M),t(y,R),t(y,P),t(p,I),t(p,q),t(q,A),t(q,N),t(q,Q),t(q,x),t(q,K),t(q,S),t(q,U),t(q,F),t(q,ie),t(p,ue),t(p,ne),t(ne,te),t(ne,ae),t(ne,G),t(ne,pe)},p(oe,ge){ge&64&&c!==(c=oe[6]("logging.lastCleanup")+"")&&v(f,c),ge&64&&g!==(g=oe[6]("logging.deletedSqliteRecords")+"")&&v(b,g),ge&32&&w!==(w=oe[5].deletedSqliteRecords+"")&&v(C,w),ge&64&&T!==(T=oe[6]("logging.deletedFileLogFiles")+"")&&v(M,T),ge&32&&j!==(j=oe[5].deletedFileLogFiles+"")&&v(P,j),ge&64&&D!==(D=oe[6]("logging.deletedBodyFiles")+"")&&v(A,D),ge&32&&Z!==(Z=oe[5].deletedBodyDirs+"")&&v(Q,Z),ge&64&&z!==(z=oe[6]("logging.dirs")+"")&&v(K,z),ge&32&&B!==(B=oe[5].deletedBodyFiles+"")&&v(U,B),ge&64&&J!==(J=oe[6]("logging.files")+"")&&v(ie,J),ge&64&&$!==($=oe[6]("logging.duration")+"")&&v(te,$),ge&32&&ee!==(ee=oe[5].durationMs+"")&&v(G,ee)},d(oe){oe&&H(s)}}}function S2(l){let s,e,n,a,i,u,c,f,d=l[6]("logging.bodyRecording")+"",p,m,g,b=l[6]("logging.bodyRecordingHelp")+"",k,w,C,E,y,T,M=l[6]("logging.cleanupConfig")+"",R,j,P,I,q=l[1]&&f1(l),D=l[0].body.enabled&&c1(l);function A(Q,x){if(Q[3])return C2;if(Q[2])return y2}let N=A(l),Z=N&&N(l);return{c(){s=r("div"),q&&q.c(),e=h(),n=r("div"),a=r("label"),i=r("input"),u=h(),c=r("div"),f=r("span"),p=_(d),m=h(),g=r("p"),k=_(b),w=h(),D&&D.c(),C=h(),E=r("div"),y=h(),T=r("h4"),R=_(M),j=h(),Z&&Z.c(),o(i,"type","checkbox"),o(i,"class","checkbox"),o(f,"class","label-text font-semibold"),o(g,"class","text-xs text-gray-500 mt-1"),o(c,"class","flex-1"),o(a,"class","label cursor-pointer justify-start gap-4"),o(n,"class","form-control"),o(E,"class","divider"),o(T,"class","font-semibold"),o(s,"class","space-y-4")},m(Q,x){L(Q,s,x),q&&q.m(s,null),t(s,e),t(s,n),t(n,a),t(a,i),i.checked=l[0].body.enabled,t(a,u),t(a,c),t(c,f),t(f,p),t(c,m),t(c,g),t(g,k),t(s,w),D&&D.m(s,null),t(s,C),t(s,E),t(s,y),t(s,T),t(T,R),t(s,j),Z&&Z.m(s,null),P||(I=[V(i,"change",l[9]),V(i,"change",l[7])],P=!0)},p(Q,[x]){Q[1]?q?q.p(Q,x):(q=f1(Q),q.c(),q.m(s,e)):q&&(q.d(1),q=null),x&1&&(i.checked=Q[0].body.enabled),x&64&&d!==(d=Q[6]("logging.bodyRecording")+"")&&v(p,d),x&64&&b!==(b=Q[6]("logging.bodyRecordingHelp")+"")&&v(k,b),Q[0].body.enabled?D?D.p(Q,x):(D=c1(Q),D.c(),D.m(s,C)):D&&(D.d(1),D=null),x&64&&M!==(M=Q[6]("logging.cleanupConfig")+"")&&v(R,M),N===(N=A(Q))&&Z?Z.p(Q,x):(Z&&Z.d(1),Z=N&&N(Q),Z&&(Z.c(),Z.m(s,null)))},i:ot,o:ot,d(Q){Q&&H(s),q&&q.d(),D&&D.d(),Z&&Z.d(),P=!1,vt(I)}}}function M2(l,s,e){let n;Dt(l,Rt,E=>e(6,n=E));let{value:a=null}=s,{label:i=""}=s;const u=oa();let c=null,f=!1,d=!1,p=null;function m(){u("input")}async function g(){e(3,f=!0);try{e(2,c=await k2())}catch(E){console.error("Failed to load cleanup config:",E),jt.show(n("common.error")+": "+(E instanceof Error?E.message:"Unknown error"),"error")}finally{e(3,f=!1)}}async function b(){if(confirm(n("logging.confirmCleanup"))){e(4,d=!0);try{e(5,p=await w2()),jt.show(n("logging.cleanupSuccess"),"success"),await g()}catch(E){console.error("Failed to trigger cleanup:",E),jt.show(n("logging.cleanupFailed",{values:{error:E instanceof Error?E.message:"Unknown error"}}),"error")}finally{e(4,d=!1)}}}Hs(()=>{g()});function k(){a.body.enabled=this.checked,e(0,a)}function w(){a.body.maxSize=Mt(this.value),e(0,a)}function C(){a.body.retentionDays=Mt(this.value),e(0,a)}return l.$$set=E=>{"value"in E&&e(0,a=E.value),"label"in E&&e(1,i=E.label)},l.$$.update=()=>{l.$$.dirty&1&&(a||e(0,a={body:{enabled:!1,maxSize:5120,retentionDays:1}})),l.$$.dirty&1&&a&&!a.body&&e(0,a.body={enabled:!1,maxSize:5120,retentionDays:1},a)},[a,i,c,f,d,p,n,m,b,k,w,C]}class R2 extends Nt{constructor(s){super(),Ut(this,s,M2,S2,Vt,{value:0,label:1})}}function q2(l){let s,e;return{c(){s=re("svg"),e=re("path"),o(e,"stroke-linecap","round"),o(e,"stroke-linejoin","round"),o(e,"stroke-width","2"),o(e,"d","M8 7H5a2 2 0 00-2 2v9a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-3m-1 4l-3 3m0 0l-3-3m3 3V4"),o(s,"xmlns","http://www.w3.org/2000/svg"),o(s,"class","h-4 w-4"),o(s,"fill","none"),o(s,"viewBox","0 0 24 24"),o(s,"stroke","currentColor")},m(n,a){L(n,s,a),t(s,e)},d(n){n&&H(s)}}}function H2(l){let s;return{c(){s=r("span"),o(s,"class","loading loading-spinner loading-xs")},m(e,n){L(e,s,n)},d(e){e&&H(s)}}}function L2(l){let s,e;return{c(){s=re("svg"),e=re("path"),o(e,"stroke-linecap","round"),o(e,"stroke-linejoin","round"),o(e,"stroke-width","2"),o(e,"d","M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"),o(s,"xmlns","http://www.w3.org/2000/svg"),o(s,"class","h-4 w-4"),o(s,"fill","none"),o(s,"viewBox","0 0 24 24"),o(s,"stroke","currentColor")},m(n,a){L(n,s,a),t(s,e)},d(n){n&&H(s)}}}function P2(l){let s;return{c(){s=r("span"),o(s,"class","loading loading-spinner loading-xs")},m(e,n){L(e,s,n)},d(e){e&&H(s)}}}function j2(l){let s,e;return{c(){s=re("svg"),e=re("path"),o(e,"stroke-linecap","round"),o(e,"stroke-linejoin","round"),o(e,"stroke-width","2"),o(e,"d","M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"),o(s,"xmlns","http://www.w3.org/2000/svg"),o(s,"class","h-4 w-4"),o(s,"fill","none"),o(s,"viewBox","0 0 24 24"),o(s,"stroke","currentColor")},m(n,a){L(n,s,a),t(s,e)},d(n){n&&H(s)}}}function D2(l){let s;return{c(){s=r("span"),o(s,"class","loading loading-spinner loading-xs")},m(e,n){L(e,s,n)},d(e){e&&H(s)}}}function B2(l){let s,e,n,a,i,u=l[11]("configuration.formEditor")+"",c,f,d,p,m,g,b=l[11]("configuration.jsonEditor")+"",k,w,C,E,y,T,M,R,j;const P=[z2,F2],I=[];function q(D,A){return D[7]==="form"?0:1}return C=q(l),E=I[C]=P[C](l),M=Mu(l[20][0]),{c(){s=r("div"),e=r("label"),n=r("input"),a=h(),i=r("span"),c=_(u),f=h(),d=r("label"),p=r("input"),m=h(),g=r("span"),k=_(b),w=h(),E.c(),y=Ul(),o(n,"class","sr-only"),o(n,"type","radio"),o(n,"name","editMode"),n.__value="form",Y(n,n.__value),o(i,"class","block px-4 py-1.5 text-sm font-medium rounded-md transition-all"),le(i,"bg-primary",l[7]==="form"),le(i,"text-primary-content",l[7]==="form"),le(i,"shadow",l[7]==="form"),le(i,"text-gray-700",l[7]!=="form"),le(i,"dark:text-gray-300",l[7]!=="form"),le(i,"hover:text-gray-900",l[7]!=="form"),le(i,"dark:hover:text-gray-100",l[7]!=="form"),o(e,"class","cursor-pointer"),o(p,"class","sr-only"),o(p,"type","radio"),o(p,"name","editMode"),p.__value="json",Y(p,p.__value),o(g,"class","block px-4 py-1.5 text-sm font-medium rounded-md transition-all"),le(g,"bg-primary",l[7]==="json"),le(g,"text-primary-content",l[7]==="json"),le(g,"shadow",l[7]==="json"),le(g,"text-gray-700",l[7]!=="json"),le(g,"dark:text-gray-300",l[7]!=="json"),le(g,"hover:text-gray-900",l[7]!=="json"),le(g,"dark:hover:text-gray-100",l[7]!=="json"),o(d,"class","cursor-pointer"),o(s,"class","inline-flex gap-1 p-1 bg-white dark:bg-gray-800 rounded-lg shadow-sm mb-4"),M.p(n,p)},m(D,A){L(D,s,A),t(s,e),t(e,n),n.checked=n.__value===l[7],t(e,a),t(e,i),t(i,c),t(s,f),t(s,d),t(d,p),p.checked=p.__value===l[7],t(d,m),t(d,g),t(g,k),L(D,w,A),I[C].m(D,A),L(D,y,A),T=!0,R||(j=[V(n,"change",l[19]),V(p,"change",l[21])],R=!0)},p(D,A){A[0]&128&&(n.checked=n.__value===D[7]),(!T||A[0]&2048)&&u!==(u=D[11]("configuration.formEditor")+"")&&v(c,u),(!T||A[0]&128)&&le(i,"bg-primary",D[7]==="form"),(!T||A[0]&128)&&le(i,"text-primary-content",D[7]==="form"),(!T||A[0]&128)&&le(i,"shadow",D[7]==="form"),(!T||A[0]&128)&&le(i,"text-gray-700",D[7]!=="form"),(!T||A[0]&128)&&le(i,"dark:text-gray-300",D[7]!=="form"),(!T||A[0]&128)&&le(i,"hover:text-gray-900",D[7]!=="form"),(!T||A[0]&128)&&le(i,"dark:hover:text-gray-100",D[7]!=="form"),A[0]&128&&(p.checked=p.__value===D[7]),(!T||A[0]&2048)&&b!==(b=D[11]("configuration.jsonEditor")+"")&&v(k,b),(!T||A[0]&128)&&le(g,"bg-primary",D[7]==="json"),(!T||A[0]&128)&&le(g,"text-primary-content",D[7]==="json"),(!T||A[0]&128)&&le(g,"shadow",D[7]==="json"),(!T||A[0]&128)&&le(g,"text-gray-700",D[7]!=="json"),(!T||A[0]&128)&&le(g,"dark:text-gray-300",D[7]!=="json"),(!T||A[0]&128)&&le(g,"hover:text-gray-900",D[7]!=="json"),(!T||A[0]&128)&&le(g,"dark:hover:text-gray-100",D[7]!=="json");let N=C;C=q(D),C===N?I[C].p(D,A):(Gl(),st(I[N],1,1,()=>{I[N]=null}),Kl(),E=I[C],E?E.p(D,A):(E=I[C]=P[C](D),E.c()),et(E,1),E.m(y.parentNode,y))},i(D){T||(et(E),T=!0)},o(D){st(E),T=!1},d(D){D&&(H(s),H(w),H(y)),I[C].d(D),M.r(),R=!1,vt(j)}}}function I2(l){let s,e,n,a,i,u=l[11]("common.error")+"",c,f,d;return{c(){s=r("div"),e=re("svg"),n=re("path"),a=h(),i=r("span"),c=_(u),f=_(": "),d=_(l[2]),o(n,"stroke-linecap","round"),o(n,"stroke-linejoin","round"),o(n,"stroke-width","2"),o(n,"d","M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z"),o(e,"xmlns","http://www.w3.org/2000/svg"),o(e,"class","stroke-current shrink-0 h-6 w-6"),o(e,"fill","none"),o(e,"viewBox","0 0 24 24"),o(s,"class","alert alert-error")},m(p,m){L(p,s,m),t(s,e),t(e,n),t(s,a),t(s,i),t(i,c),t(i,f),t(i,d)},p(p,m){m[0]&2048&&u!==(u=p[11]("common.error")+"")&&v(c,u),m[0]&4&&v(d,p[2])},i:ot,o:ot,d(p){p&&H(s)}}}function A2(l){let s;return{c(){s=r("div"),s.innerHTML='<span class="loading loading-spinner loading-lg"></span>',o(s,"class","flex justify-center items-center h-64")},m(e,n){L(e,s,n)},p:ot,i:ot,o:ot,d(e){e&&H(s)}}}function F2(l){let s,e,n,a=l[11]("configuration.jsonConfiguration")+"",i,u,c,f,d,p,m,g=l[11]("configuration.jsonHelp")+"",b,k,w,C=l[9]&&p1(l);return{c(){s=r("div"),e=r("div"),n=r("h2"),i=_(a),u=h(),C&&C.c(),c=h(),f=r("textarea"),p=h(),m=r("p"),b=_(g),o(n,"class","card-title"),o(f,"class","textarea textarea-bordered font-mono text-sm h-96"),o(f,"placeholder",d=l[11]("configuration.jsonPlaceholder")),o(m,"class","text-sm text-gray-500 mt-2"),o(e,"class","card-body"),o(s,"class","card bg-base-100 shadow-xl")},m(E,y){L(E,s,y),t(s,e),t(e,n),t(n,i),t(e,u),C&&C.m(e,null),t(e,c),t(e,f),Y(f,l[8]),t(e,p),t(e,m),t(m,b),k||(w=[V(f,"input",l[28]),V(f,"input",l[12])],k=!0)},p(E,y){y[0]&2048&&a!==(a=E[11]("configuration.jsonConfiguration")+"")&&v(i,a),E[9]?C?C.p(E,y):(C=p1(E),C.c(),C.m(e,c)):C&&(C.d(1),C=null),y[0]&2048&&d!==(d=E[11]("configuration.jsonPlaceholder"))&&o(f,"placeholder",d),y[0]&256&&Y(f,E[8]),y[0]&2048&&g!==(g=E[11]("configuration.jsonHelp")+"")&&v(b,g)},i:ot,o:ot,d(E){E&&H(s),C&&C.d(),k=!1,vt(w)}}}function z2(l){let s,e,n,a=l[11]("configuration.systemSettings")+"",i,u,c,f,d,p=l[11]("configuration.serverPort")+"",m,g,b,k,w,C,E,y=l[11]("configuration.workerProcesses")+"",T,M,R,j,P,I,q=l[11]("configuration.workerProcessesHelp")+"",D,A,N,Z,Q,x=l[11]("configuration.logLevel")+"",z,K,S,B,U,F,J,ie,ue,ne,$,te=l[11]("configuration.bodyParserLimit")+"",ae,ee,G,pe,oe,ge,he=l[11]("configuration.bodyParserLimitHelp")+"",ye,ze,Pe,we,Fe,Je,je,Le,Se,fe,_e,Ie,De,se,ke=l[11]("configuration.requiresRestart")+"",me,Ee,Ve,Be,nt,Ne=l[11]("logging.title")+"",Qe,Ye,ve,de,Te,Ze,Me,Ue,Ce=l[11]("routes.title")+"",mt,Ge,ce,qe,Re,dt,We,O=l[11]("configuration.routesConfigured",{values:{count:l[1].routes.length}})+"",He,X,ft=l[11]("configuration.manageRoutes")+"",Ht,Ke,_t,tt;function it(rt){l[26](rt)}let Oe={label:l[11]("auth.globalAuth")};l[1].auth!==void 0&&(Oe.value=l[1].auth),Fe=new xp({props:Oe}),Sl.push(()=>Ml(Fe,"value",it));function Xe(rt){l[27](rt)}let It={};return l[1].logging!==void 0&&(It.value=l[1].logging),ve=new R2({props:It}),Sl.push(()=>Ml(ve,"value",Xe)),{c(){s=r("div"),e=r("div"),n=r("h2"),i=_(a),u=h(),c=r("div"),f=r("label"),d=r("span"),m=_(p),g=h(),b=r("input"),k=h(),w=r("div"),C=r("label"),E=r("span"),T=_(y),M=h(),R=r("input"),j=h(),P=r("div"),I=r("span"),D=_(q),A=h(),N=r("div"),Z=r("label"),Q=r("span"),z=_(x),K=h(),S=r("select"),B=r("option"),B.textContent="Debug",U=r("option"),U.textContent="Info",F=r("option"),F.textContent="Warning",J=r("option"),J.textContent="Error",ie=h(),ue=r("div"),ne=r("label"),$=r("span"),ae=_(te),ee=h(),G=r("input"),pe=h(),oe=r("div"),ge=r("span"),ye=_(he),ze=h(),Pe=r("div"),we=h(),Et(Fe.$$.fragment),je=h(),Le=r("div"),Se=h(),fe=r("div"),_e=re("svg"),Ie=re("path"),De=h(),se=r("span"),me=_(ke),Ee=h(),Ve=r("div"),Be=r("div"),nt=r("h2"),Qe=_(Ne),Ye=h(),Et(ve.$$.fragment),Te=h(),Ze=r("div"),Me=r("div"),Ue=r("h2"),mt=_(Ce),Ge=h(),ce=r("div"),qe=re("svg"),Re=re("path"),dt=h(),We=r("span"),He=_(O),X=h(),Ht=_(ft),o(n,"class","card-title"),o(d,"class","label-text"),o(f,"class","label"),o(f,"for","config-port"),o(b,"id","config-port"),o(b,"type","number"),o(b,"class","input input-bordered"),o(b,"placeholder","8088"),o(c,"class","form-control"),o(E,"class","label-text"),o(C,"class","label"),o(C,"for","config-workers"),o(R,"id","config-workers"),o(R,"type","number"),o(R,"class","input input-bordered"),o(R,"min","1"),o(R,"placeholder","2"),o(I,"class","label-text-alt"),o(P,"class","label"),o(w,"class","form-control"),o(Q,"class","label-text"),o(Z,"class","label"),o(Z,"for","config-log-level"),B.__value="debug",Y(B,B.__value),U.__value="info",Y(U,U.__value),F.__value="warn",Y(F,F.__value),J.__value="error",Y(J,J.__value),o(S,"id","config-log-level"),o(S,"class","select select-bordered"),l[1].logLevel===void 0&&pl(()=>l[24].call(S)),o(N,"class","form-control"),o($,"class","label-text"),o(ne,"class","label"),o(ne,"for","config-body-limit"),o(G,"id","config-body-limit"),o(G,"type","text"),o(G,"class","input input-bordered"),o(G,"placeholder","50mb"),o(ge,"class","label-text-alt"),o(oe,"class","label"),o(ue,"class","form-control"),o(Pe,"class","divider"),o(Le,"class","divider"),o(Ie,"stroke-linecap","round"),o(Ie,"stroke-linejoin","round"),o(Ie,"stroke-width","2"),o(Ie,"d","M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"),o(_e,"xmlns","http://www.w3.org/2000/svg"),o(_e,"class","stroke-current shrink-0 h-6 w-6"),o(_e,"fill","none"),o(_e,"viewBox","0 0 24 24"),o(fe,"class","alert alert-warning"),o(e,"class","card-body"),o(s,"class","card bg-base-100 shadow-xl mb-4"),o(nt,"class","card-title"),o(Be,"class","card-body"),o(Ve,"class","card bg-base-100 shadow-xl mb-4"),o(Ue,"class","card-title"),o(Re,"stroke-linecap","round"),o(Re,"stroke-linejoin","round"),o(Re,"stroke-width","2"),o(Re,"d","M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"),o(qe,"xmlns","http://www.w3.org/2000/svg"),o(qe,"fill","none"),o(qe,"viewBox","0 0 24 24"),o(qe,"class","stroke-current shrink-0 w-6 h-6"),o(ce,"class","alert alert-info"),o(Me,"class","card-body"),o(Ze,"class","card bg-base-100 shadow-xl")},m(rt,gt){L(rt,s,gt),t(s,e),t(e,n),t(n,i),t(e,u),t(e,c),t(c,f),t(f,d),t(d,m),t(c,g),t(c,b),Y(b,l[1].port),t(e,k),t(e,w),t(w,C),t(C,E),t(E,T),t(w,M),t(w,R),Y(R,l[1].workers),t(w,j),t(w,P),t(P,I),t(I,D),t(e,A),t(e,N),t(N,Z),t(Z,Q),t(Q,z),t(N,K),t(N,S),t(S,B),t(S,U),t(S,F),t(S,J),kt(S,l[1].logLevel,!0),t(e,ie),t(e,ue),t(ue,ne),t(ne,$),t($,ae),t(ue,ee),t(ue,G),Y(G,l[1].bodyParserLimit),t(ue,pe),t(ue,oe),t(oe,ge),t(ge,ye),t(e,ze),t(e,Pe),t(e,we),Ct(Fe,e,null),t(e,je),t(e,Le),t(e,Se),t(e,fe),t(fe,_e),t(_e,Ie),t(fe,De),t(fe,se),t(se,me),L(rt,Ee,gt),L(rt,Ve,gt),t(Ve,Be),t(Be,nt),t(nt,Qe),t(Be,Ye),Ct(ve,Be,null),L(rt,Te,gt),L(rt,Ze,gt),t(Ze,Me),t(Me,Ue),t(Ue,mt),t(Me,Ge),t(Me,ce),t(ce,qe),t(qe,Re),t(ce,dt),t(ce,We),t(We,He),t(We,X),t(We,Ht),Ke=!0,_t||(tt=[V(b,"input",l[22]),V(R,"input",l[23]),V(S,"change",l[24]),V(G,"input",l[25])],_t=!0)},p(rt,gt){(!Ke||gt[0]&2048)&&a!==(a=rt[11]("configuration.systemSettings")+"")&&v(i,a),(!Ke||gt[0]&2048)&&p!==(p=rt[11]("configuration.serverPort")+"")&&v(m,p),gt[0]&2&&Mt(b.value)!==rt[1].port&&Y(b,rt[1].port),(!Ke||gt[0]&2048)&&y!==(y=rt[11]("configuration.workerProcesses")+"")&&v(T,y),gt[0]&2&&Mt(R.value)!==rt[1].workers&&Y(R,rt[1].workers),(!Ke||gt[0]&2048)&&q!==(q=rt[11]("configuration.workerProcessesHelp")+"")&&v(D,q),(!Ke||gt[0]&2048)&&x!==(x=rt[11]("configuration.logLevel")+"")&&v(z,x),gt[0]&2&&kt(S,rt[1].logLevel),(!Ke||gt[0]&2048)&&te!==(te=rt[11]("configuration.bodyParserLimit")+"")&&v(ae,te),gt[0]&2&&G.value!==rt[1].bodyParserLimit&&Y(G,rt[1].bodyParserLimit),(!Ke||gt[0]&2048)&&he!==(he=rt[11]("configuration.bodyParserLimitHelp")+"")&&v(ye,he);const wt={};gt[0]&2048&&(wt.label=rt[11]("auth.globalAuth")),!Je&&gt[0]&2&&(Je=!0,wt.value=rt[1].auth,Rl(()=>Je=!1)),Fe.$set(wt),(!Ke||gt[0]&2048)&&ke!==(ke=rt[11]("configuration.requiresRestart")+"")&&v(me,ke),(!Ke||gt[0]&2048)&&Ne!==(Ne=rt[11]("logging.title")+"")&&v(Qe,Ne);const pt={};!de&&gt[0]&2&&(de=!0,pt.value=rt[1].logging,Rl(()=>de=!1)),ve.$set(pt),(!Ke||gt[0]&2048)&&Ce!==(Ce=rt[11]("routes.title")+"")&&v(mt,Ce),(!Ke||gt[0]&2050)&&O!==(O=rt[11]("configuration.routesConfigured",{values:{count:rt[1].routes.length}})+"")&&v(He,O),(!Ke||gt[0]&2048)&&ft!==(ft=rt[11]("configuration.manageRoutes")+"")&&v(Ht,ft)},i(rt){Ke||(et(Fe.$$.fragment,rt),et(ve.$$.fragment,rt),Ke=!0)},o(rt){st(Fe.$$.fragment,rt),st(ve.$$.fragment,rt),Ke=!1},d(rt){rt&&(H(s),H(Ee),H(Ve),H(Te),H(Ze)),yt(Fe),yt(ve),_t=!1,vt(tt)}}}function p1(l){let s,e,n,a,i,u=l[11]("configuration.jsonParseError",{values:{error:l[9]}})+"",c;return{c(){s=r("div"),e=re("svg"),n=re("path"),a=h(),i=r("span"),c=_(u),o(n,"stroke-linecap","round"),o(n,"stroke-linejoin","round"),o(n,"stroke-width","2"),o(n,"d","M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z"),o(e,"xmlns","http://www.w3.org/2000/svg"),o(e,"class","stroke-current shrink-0 h-6 w-6"),o(e,"fill","none"),o(e,"viewBox","0 0 24 24"),o(s,"class","alert alert-error mb-4")},m(f,d){L(f,s,d),t(s,e),t(e,n),t(s,a),t(s,i),t(i,c)},p(f,d){d[0]&2560&&u!==(u=f[11]("configuration.jsonParseError",{values:{error:f[9]}})+"")&&v(c,u)},d(f){f&&H(s)}}}function O2(l){let s,e,n,a,i=l[11]("configuration.title")+"",u,c,f,d=l[11]("configuration.subtitle")+"",p,m,g,b,k,w,C,E=l[11]("configuration.export")+"",y,T,M,R,j,P,I,q=l[11]("configuration.import")+"",D,A,N,Z,Q=l[11]("configuration.save")+"",x,z,K,S,B,U=l[11]("configuration.reload")+"",F,J,ie,ue,ne,$=l[11]("configuration.restart")+"",te,ae,ee,G,pe,oe,ge,he,ye,ze,Pe,we=l[11]("configuration.confirmRestart")+"",Fe,Je,je,Le=l[11]("configuration.restartMessage")+"",Se,fe,_e,Ie,De,se,ke,me=l[11]("configuration.restartWarning")+"",Ee,Ve,Be,nt,Ne=l[11]("common.cancel")+"",Qe,Ye,ve,de,Te,Ze,Me=l[11]("configuration.restart")+"",Ue,Ce,mt,Ge;function ce(tt,it){return tt[6]?H2:q2}let qe=ce(l),Re=qe(l);function dt(tt,it){return tt[4]?P2:L2}let We=dt(l),O=We(l);function He(tt,it){return tt[5]?D2:j2}let X=He(l),ft=X(l);const Ht=[A2,I2,B2],Ke=[];function _t(tt,it){return tt[3]?0:tt[2]?1:tt[1]?2:-1}return~(G=_t(l))&&(pe=Ke[G]=Ht[G](l)),{c(){s=r("div"),e=r("div"),n=r("div"),a=r("h1"),u=_(i),c=h(),f=r("p"),p=_(d),m=h(),g=r("div"),b=r("button"),k=re("svg"),w=re("path"),C=h(),y=_(E),M=h(),R=r("button"),j=re("svg"),P=re("path"),I=h(),D=_(q),A=h(),N=r("button"),Re.c(),Z=h(),x=_(Q),K=h(),S=r("button"),O.c(),B=h(),F=_(U),ie=h(),ue=r("button"),ft.c(),ne=h(),te=_($),ee=h(),pe&&pe.c(),oe=h(),ge=r("input"),he=h(),ye=r("div"),ze=r("div"),Pe=r("h3"),Fe=_(we),Je=h(),je=r("p"),Se=_(Le),fe=h(),_e=r("div"),Ie=re("svg"),De=re("path"),se=h(),ke=r("span"),Ee=_(me),Ve=h(),Be=r("div"),nt=r("button"),Qe=_(Ne),Ye=h(),ve=r("button"),de=re("svg"),Te=re("path"),Ze=h(),Ue=_(Me),o(a,"class","text-3xl font-bold"),o(f,"class","text-sm text-gray-500 mt-1"),o(w,"stroke-linecap","round"),o(w,"stroke-linejoin","round"),o(w,"stroke-width","2"),o(w,"d","M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"),o(k,"xmlns","http://www.w3.org/2000/svg"),o(k,"class","h-4 w-4"),o(k,"fill","none"),o(k,"viewBox","0 0 24 24"),o(k,"stroke","currentColor"),o(b,"class","btn btn-outline btn-sm"),b.disabled=T=l[3]||!l[0],o(P,"stroke-linecap","round"),o(P,"stroke-linejoin","round"),o(P,"stroke-width","2"),o(P,"d","M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-8l-4-4m0 0L8 8m4-4v12"),o(j,"xmlns","http://www.w3.org/2000/svg"),o(j,"class","h-4 w-4"),o(j,"fill","none"),o(j,"viewBox","0 0 24 24"),o(j,"stroke","currentColor"),o(R,"class","btn btn-outline btn-sm"),R.disabled=l[3],o(N,"class","btn btn-success btn-sm"),N.disabled=z=l[6]||l[3]||!!l[9],o(S,"class","btn btn-primary btn-sm"),S.disabled=J=l[4]||l[3],o(ue,"class","btn btn-warning btn-sm"),ue.disabled=ae=l[5]||l[3],o(g,"class","flex gap-2"),o(e,"class","flex justify-between items-center mb-6"),o(ge,"type","checkbox"),o(ge,"class","modal-toggle"),o(Pe,"class","font-bold text-lg"),o(je,"class","py-4"),o(De,"stroke-linecap","round"),o(De,"stroke-linejoin","round"),o(De,"stroke-width","2"),o(De,"d","M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"),o(Ie,"xmlns","http://www.w3.org/2000/svg"),o(Ie,"class","stroke-current shrink-0 h-6 w-6"),o(Ie,"fill","none"),o(Ie,"viewBox","0 0 24 24"),o(_e,"class","alert alert-warning"),o(nt,"class","btn btn-ghost"),o(Te,"stroke-linecap","round"),o(Te,"stroke-linejoin","round"),o(Te,"stroke-width","2"),o(Te,"d","M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"),o(de,"xmlns","http://www.w3.org/2000/svg"),o(de,"class","h-4 w-4 mr-1"),o(de,"fill","none"),o(de,"viewBox","0 0 24 24"),o(de,"stroke","currentColor"),o(ve,"class","btn btn-warning"),o(Be,"class","modal-action"),o(ze,"class","modal-box"),o(ye,"class","modal"),le(ye,"modal-open",l[10]),o(s,"class","p-6")},m(tt,it){L(tt,s,it),t(s,e),t(e,n),t(n,a),t(a,u),t(n,c),t(n,f),t(f,p),t(e,m),t(e,g),t(g,b),t(b,k),t(k,w),t(b,C),t(b,y),t(g,M),t(g,R),t(R,j),t(j,P),t(R,I),t(R,D),t(g,A),t(g,N),Re.m(N,null),t(N,Z),t(N,x),t(g,K),t(g,S),O.m(S,null),t(S,B),t(S,F),t(g,ie),t(g,ue),ft.m(ue,null),t(ue,ne),t(ue,te),t(s,ee),~G&&Ke[G].m(s,null),t(s,oe),t(s,ge),ge.checked=l[10],t(s,he),t(s,ye),t(ye,ze),t(ze,Pe),t(Pe,Fe),t(ze,Je),t(ze,je),t(je,Se),t(ze,fe),t(ze,_e),t(_e,Ie),t(Ie,De),t(_e,se),t(_e,ke),t(ke,Ee),t(ze,Ve),t(ze,Be),t(Be,nt),t(nt,Qe),t(Be,Ye),t(Be,ve),t(ve,de),t(de,Te),t(ve,Ze),t(ve,Ue),Ce=!0,mt||(Ge=[V(b,"click",l[14]),V(R,"click",l[15]),V(N,"click",l[13]),V(S,"click",l[16]),V(ue,"click",l[18]),V(ge,"change",l[29]),V(nt,"click",l[30]),V(ve,"click",l[17])],mt=!0)},p(tt,it){(!Ce||it[0]&2048)&&i!==(i=tt[11]("configuration.title")+"")&&v(u,i),(!Ce||it[0]&2048)&&d!==(d=tt[11]("configuration.subtitle")+"")&&v(p,d),(!Ce||it[0]&2048)&&E!==(E=tt[11]("configuration.export")+"")&&v(y,E),(!Ce||it[0]&9&&T!==(T=tt[3]||!tt[0]))&&(b.disabled=T),(!Ce||it[0]&2048)&&q!==(q=tt[11]("configuration.import")+"")&&v(D,q),(!Ce||it[0]&8)&&(R.disabled=tt[3]),qe!==(qe=ce(tt))&&(Re.d(1),Re=qe(tt),Re&&(Re.c(),Re.m(N,Z))),(!Ce||it[0]&2048)&&Q!==(Q=tt[11]("configuration.save")+"")&&v(x,Q),(!Ce||it[0]&584&&z!==(z=tt[6]||tt[3]||!!tt[9]))&&(N.disabled=z),We!==(We=dt(tt))&&(O.d(1),O=We(tt),O&&(O.c(),O.m(S,B))),(!Ce||it[0]&2048)&&U!==(U=tt[11]("configuration.reload")+"")&&v(F,U),(!Ce||it[0]&24&&J!==(J=tt[4]||tt[3]))&&(S.disabled=J),X!==(X=He(tt))&&(ft.d(1),ft=X(tt),ft&&(ft.c(),ft.m(ue,ne))),(!Ce||it[0]&2048)&&$!==($=tt[11]("configuration.restart")+"")&&v(te,$),(!Ce||it[0]&40&&ae!==(ae=tt[5]||tt[3]))&&(ue.disabled=ae);let Oe=G;G=_t(tt),G===Oe?~G&&Ke[G].p(tt,it):(pe&&(Gl(),st(Ke[Oe],1,1,()=>{Ke[Oe]=null}),Kl()),~G?(pe=Ke[G],pe?pe.p(tt,it):(pe=Ke[G]=Ht[G](tt),pe.c()),et(pe,1),pe.m(s,oe)):pe=null),it[0]&1024&&(ge.checked=tt[10]),(!Ce||it[0]&2048)&&we!==(we=tt[11]("configuration.confirmRestart")+"")&&v(Fe,we),(!Ce||it[0]&2048)&&Le!==(Le=tt[11]("configuration.restartMessage")+"")&&v(Se,Le),(!Ce||it[0]&2048)&&me!==(me=tt[11]("configuration.restartWarning")+"")&&v(Ee,me),(!Ce||it[0]&2048)&&Ne!==(Ne=tt[11]("common.cancel")+"")&&v(Qe,Ne),(!Ce||it[0]&2048)&&Me!==(Me=tt[11]("configuration.restart")+"")&&v(Ue,Me),(!Ce||it[0]&1024)&&le(ye,"modal-open",tt[10])},i(tt){Ce||(et(pe),Ce=!0)},o(tt){st(pe),Ce=!1},d(tt){tt&&H(s),Re.d(),O.d(),ft.d(),~G&&Ke[G].d(),mt=!1,vt(Ge)}}}function N2(l,s,e){let n;Dt(l,Rt,B=>e(11,n=B));let a=null,i=null,u=null,c=!0,f=!1,d=!1,p=!1,m="form",g="",b=null,k=!1;async function w(){try{e(0,a=await Pu()),e(1,i=JSON.parse(JSON.stringify(a))),e(8,g=JSON.stringify(a,null,2)),e(2,u=null)}catch(B){e(2,u=B.message)}finally{e(3,c=!1)}}function C(){e(9,b=null);try{e(1,i=JSON.parse(g))}catch(B){e(9,b=B.message)}}async function E(){if(i){e(6,p=!0);try{const B=await P0(i);if(!B.valid){jt.show(n("configuration.validationFailed",{values:{error:B.error}}),"error");return}const U=await L0(i);U.success?(jt.show(n("configuration.saved"),"success"),e(0,a=JSON.parse(JSON.stringify(i)))):jt.show(n("configuration.saveFailed",{values:{error:U.message}}),"error")}catch(B){jt.show(n("configuration.saveFailed",{values:{error:B.message}}),"error")}finally{e(6,p=!1)}}}function y(){if(!a)return;const B=JSON.stringify(a,null,2),U="data:application/json;charset=utf-8,"+encodeURIComponent(B),F=\`bungee-config-\${new Date().toISOString().split("T")[0]}.json\`,J=document.createElement("a");J.setAttribute("href",U),J.setAttribute("download",F),J.click(),jt.show(n("configuration.exported"),"success")}function T(){const B=document.createElement("input");B.type="file",B.accept=".json",B.onchange=async U=>{const F=U.target.files[0];if(F)try{const J=await F.text(),ie=JSON.parse(J);e(1,i=ie),e(8,g=JSON.stringify(ie,null,2)),jt.show(n("configuration.imported"),"success")}catch(J){jt.show(n("configuration.importFailed",{values:{error:J.message}}),"error")}},B.click()}async function M(){e(4,f=!0);try{const B=await h2();B.success?(jt.show(n("configuration.reloaded"),"success"),await w()):jt.show(n("configuration.reloadFailed",{values:{error:B.message}}),"error")}catch(B){jt.show(n("configuration.reloadFailed",{values:{error:B.message}}),"error")}finally{e(4,f=!1)}}async function R(){e(10,k=!1),e(5,d=!0);try{const B=await m2();B.success?jt.show(n("configuration.restartSent"),"success"):B.error&&B.error.includes("daemon mode")?jt.show(n("configuration.restartDaemonOnly"),"error",8e3):jt.show(n("configuration.restartFailed",{values:{error:B.error||B.message}}),"error")}catch(B){jt.show(n("configuration.restartFailed",{values:{error:B.message}}),"error")}finally{e(5,d=!1)}}Hs(()=>{w()});const j=[[]],P=()=>e(10,k=!0);function I(){m=this.__value,e(7,m)}function q(){m=this.__value,e(7,m)}function D(){i.port=Mt(this.value),e(1,i)}function A(){i.workers=Mt(this.value),e(1,i)}function N(){i.logLevel=dl(this),e(1,i)}function Z(){i.bodyParserLimit=this.value,e(1,i)}function Q(B){l.$$.not_equal(i.auth,B)&&(i.auth=B,e(1,i))}function x(B){l.$$.not_equal(i.logging,B)&&(i.logging=B,e(1,i))}function z(){g=this.value,e(8,g)}function K(){k=this.checked,e(10,k)}return[a,i,u,c,f,d,p,m,g,b,k,n,C,E,y,T,M,R,P,I,j,q,D,A,N,Z,Q,x,z,K,()=>e(10,k=!1)]}class U2 extends Nt{constructor(s){super(),Ut(this,s,N2,O2,Vt,{},null,[-1,-1])}}class wo{static async list(){return await yl.get("/routes")}static async get(s){return(await this.list()).find(n=>n.path===s)||null}static async create(s){const e=await yl.get("/config");if(e.routes?.some(n=>n.path===s.path))throw new Error(\`Route with path "\${s.path}" already exists\`);e.routes=e.routes||[],e.routes.push(s),await yl.put("/config",e)}static async update(s,e){const n=await yl.get("/config"),a=n.routes?.findIndex(i=>i.path===s);if(a===void 0||a===-1)throw new Error(\`Route with path "\${s}" not found\`);if(s!==e.path&&n.routes?.some(i=>i.path===e.path))throw new Error(\`Route with path "\${e.path}" already exists\`);n.routes[a]=e,await yl.put("/config",n)}static async delete(s){const e=await yl.get("/config"),n=e.routes?.findIndex(a=>a.path===s);if(n===void 0||n===-1)throw new Error(\`Route with path "\${s}" not found\`);e.routes.splice(n,1),await yl.put("/config",e)}static async validateRoute(s){const e={routes:[s]};return await yl.post("/config/validate",e)}static async duplicate(s){const e=await this.get(s);if(!e)throw new Error(\`Route with path "\${s}" not found\`);const n={...e};let a=1,i=\`\${s}-copy\`;const u=await this.list();for(;u.some(c=>c.path===i);)a++,i=\`\${s}-copy-\${a}\`;n.path=i,await this.create(n)}}function h1(l,s,e){const n=l.slice();return n[6]=s[e],n}function m1(l){let s;return{c(){s=r("span"),s.textContent="RED",o(s,"class","text-xs text-error font-semibold")},m(e,n){L(e,s,n)},d(e){e&&H(s)}}}function g1(l){let s,e,n,a,i,u,c=js(l[6])==="unhealthy",f,d,p,m=l[6].target+"",g,b,k,w=(l[6].weight||100)+"",C,E,y,T=(l[6].priority||1)+"",M,R,j=c&&m1();return{c(){s=r("tr"),e=r("td"),n=r("div"),a=r("div"),u=h(),j&&j.c(),f=h(),d=r("td"),p=r("code"),g=_(m),b=h(),k=r("td"),C=_(w),E=h(),y=r("td"),M=_(T),R=h(),o(a,"class","w-3 h-3 rounded-full tooltip tooltip-right"),o(a,"data-tip",i=l[6].lastFailureTime?\`\u6700\u540E\u5931\u8D25: \${_1(l[6].lastFailureTime)}\`:js(l[6])==="healthy"?l[3]("upstreamsModal.statusHealthy"):js(l[6])==="unhealthy"?l[3]("upstreamsModal.statusUnhealthy"):l[3]("upstreamsModal.statusUnknown")),le(a,"bg-success",js(l[6])==="healthy"),le(a,"bg-error",js(l[6])==="unhealthy"),le(a,"bg-warning",js(l[6])==="unknown"),o(n,"class","flex items-center gap-2"),o(p,"class","text-sm"),o(k,"class","text-right"),o(y,"class","text-right"),o(s,"class","hover")},m(P,I){L(P,s,I),t(s,e),t(e,n),t(n,a),t(n,u),j&&j.m(n,null),t(s,f),t(s,d),t(d,p),t(p,g),t(s,b),t(s,k),t(k,C),t(s,E),t(s,y),t(y,M),t(s,R)},p(P,I){I&12&&i!==(i=P[6].lastFailureTime?\`\u6700\u540E\u5931\u8D25: \${_1(P[6].lastFailureTime)}\`:js(P[6])==="healthy"?P[3]("upstreamsModal.statusHealthy"):js(P[6])==="unhealthy"?P[3]("upstreamsModal.statusUnhealthy"):P[3]("upstreamsModal.statusUnknown"))&&o(a,"data-tip",i),I&4&&le(a,"bg-success",js(P[6])==="healthy"),I&4&&le(a,"bg-error",js(P[6])==="unhealthy"),I&4&&le(a,"bg-warning",js(P[6])==="unknown"),I&4&&(c=js(P[6])==="unhealthy"),c?j||(j=m1(),j.c(),j.m(n,null)):j&&(j.d(1),j=null),I&4&&m!==(m=P[6].target+"")&&v(g,m),I&4&&w!==(w=(P[6].weight||100)+"")&&v(C,w),I&4&&T!==(T=(P[6].priority||1)+"")&&v(M,T)},d(P){P&&H(s),j&&j.d()}}}function V2(l){let s,e,n,a=l[3]("upstreamsModal.title")+"",i,u,c,f,d,p,m,g,b,k,w=l[3]("routeCard.tableHeaders.status")+"",C,E,y,T=l[3]("routeCard.tableHeaders.target")+"",M,R,j,P=l[3]("routeCard.tableHeaders.weight")+"",I,q,D,A=l[3]("routeCard.tableHeaders.priority")+"",N,Z,Q,x,z,K,S=l[3]("upstreamsModal.close")+"",B,U,F,J,ie,ue,ne=ut(l[2]),$=[];for(let te=0;te<ne.length;te+=1)$[te]=g1(h1(l,ne,te));return{c(){s=r("dialog"),e=r("div"),n=r("h3"),i=_(a),u=_(" - "),c=r("code"),f=_(l[1]),d=h(),p=r("div"),m=r("table"),g=r("thead"),b=r("tr"),k=r("th"),C=_(w),E=h(),y=r("th"),M=_(T),R=h(),j=r("th"),I=_(P),q=h(),D=r("th"),N=_(A),Z=h(),Q=r("tbody");for(let te=0;te<$.length;te+=1)$[te].c();x=h(),z=r("div"),K=r("button"),B=_(S),U=h(),F=r("form"),J=r("button"),J.textContent="close",o(c,"class","text-primary"),o(n,"class","font-bold text-lg mb-4"),o(k,"class","w-20"),o(j,"class","w-24 text-right"),o(D,"class","w-20 text-right"),o(m,"class","table table-zebra w-full"),o(p,"class","overflow-x-auto max-h-[60vh]"),o(K,"class","btn"),o(z,"class","modal-action"),o(e,"class","modal-box max-w-3xl"),o(F,"method","dialog"),o(F,"class","modal-backdrop"),o(s,"class","modal"),le(s,"modal-open",l[0])},m(te,ae){L(te,s,ae),t(s,e),t(e,n),t(n,i),t(n,u),t(n,c),t(c,f),t(e,d),t(e,p),t(p,m),t(m,g),t(g,b),t(b,k),t(k,C),t(b,E),t(b,y),t(y,M),t(b,R),t(b,j),t(j,I),t(b,q),t(b,D),t(D,N),t(m,Z),t(m,Q);for(let ee=0;ee<$.length;ee+=1)$[ee]&&$[ee].m(Q,null);t(e,x),t(e,z),t(z,K),t(K,B),t(s,U),t(s,F),t(F,J),ie||(ue=[V(window,"keydown",l[5]),V(K,"click",l[4]),V(J,"click",l[4])],ie=!0)},p(te,[ae]){if(ae&8&&a!==(a=te[3]("upstreamsModal.title")+"")&&v(i,a),ae&2&&v(f,te[1]),ae&8&&w!==(w=te[3]("routeCard.tableHeaders.status")+"")&&v(C,w),ae&8&&T!==(T=te[3]("routeCard.tableHeaders.target")+"")&&v(M,T),ae&8&&P!==(P=te[3]("routeCard.tableHeaders.weight")+"")&&v(I,P),ae&8&&A!==(A=te[3]("routeCard.tableHeaders.priority")+"")&&v(N,A),ae&12){ne=ut(te[2]);let ee;for(ee=0;ee<ne.length;ee+=1){const G=h1(te,ne,ee);$[ee]?$[ee].p(G,ae):($[ee]=g1(G),$[ee].c(),$[ee].m(Q,null))}for(;ee<$.length;ee+=1)$[ee].d(1);$.length=ne.length}ae&8&&S!==(S=te[3]("upstreamsModal.close")+"")&&v(B,S),ae&1&&le(s,"modal-open",te[0])},i:ot,o:ot,d(te){te&&H(s),Gt($,te),ie=!1,vt(ue)}}}function js(l){return l.status?l.status==="HEALTHY"?"healthy":"unhealthy":"unknown"}function _1(l){if(!l)return"";const s=new Date(l),n=new Date().getTime()-s.getTime(),a=Math.floor(n/1e3),i=Math.floor(a/60),u=Math.floor(i/60);return a<60?\`\${a}\u79D2\u524D\`:i<60?\`\${i}\u5206\u949F\u524D\`:u<24?\`\${u}\u5C0F\u65F6\u524D\`:s.toLocaleString("zh-CN")}function J2(l,s,e){let n;Dt(l,Rt,d=>e(3,n=d));let{open:a=!1}=s,{routePath:i}=s,{upstreams:u=[]}=s;function c(){e(0,a=!1)}function f(d){d.key==="Escape"&&a&&c()}return l.$$set=d=>{"open"in d&&e(0,a=d.open),"routePath"in d&&e(1,i=d.routePath),"upstreams"in d&&e(2,u=d.upstreams)},[a,i,u,n,c,f]}class W2 extends Nt{constructor(s){super(),Ut(this,s,J2,V2,Vt,{open:0,routePath:1,upstreams:2})}}function b1(l,s,e){const n=l.slice();return n[12]=s[e][0],n[13]=s[e][1],n}function v1(l,s,e){const n=l.slice();return n[16]=s[e],n}function k1(l){let s,e=l[8]("routeCard.hasTransformer")+"",n;return{c(){s=r("span"),n=_(e),o(s,"class","badge badge-sm badge-info")},m(a,i){L(a,s,i),t(s,n)},p(a,i){i&256&&e!==(e=a[8]("routeCard.hasTransformer")+"")&&v(n,e)},d(a){a&&H(s)}}}function w1(l){let s,e=l[8]("routeCard.failover")+"",n;return{c(){s=r("span"),n=_(e),o(s,"class","badge badge-sm badge-success")},m(a,i){L(a,s,i),t(s,n)},p(a,i){i&256&&e!==(e=a[8]("routeCard.failover")+"")&&v(n,e)},d(a){a&&H(s)}}}function G2(l){let s,e,n,a,i=l[8]("routeCard.duplicate")+"",u;return{c(){s=re("svg"),e=re("path"),n=h(),a=r("span"),u=_(i),o(e,"stroke-linecap","round"),o(e,"stroke-linejoin","round"),o(e,"stroke-width","2"),o(e,"d","M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"),o(s,"xmlns","http://www.w3.org/2000/svg"),o(s,"class","h-4 w-4"),o(s,"fill","none"),o(s,"viewBox","0 0 24 24"),o(s,"stroke","currentColor")},m(c,f){L(c,s,f),t(s,e),L(c,n,f),L(c,a,f),t(a,u)},p(c,f){f&256&&i!==(i=c[8]("routeCard.duplicate")+"")&&v(u,i)},d(c){c&&(H(s),H(n),H(a))}}}function K2(l){let s,e,n,a=l[8]("routeCard.duplicating")+"",i;return{c(){s=r("span"),e=h(),n=r("span"),i=_(a),o(s,"class","loading loading-spinner loading-xs")},m(u,c){L(u,s,c),L(u,e,c),L(u,n,c),t(n,i)},p(u,c){c&256&&a!==(a=u[8]("routeCard.duplicating")+"")&&v(i,a)},d(u){u&&(H(s),H(e),H(n))}}}function Y2(l){let s,e,n,a,i=l[8]("routeCard.delete")+"",u;return{c(){s=re("svg"),e=re("path"),n=h(),a=r("span"),u=_(i),o(e,"stroke-linecap","round"),o(e,"stroke-linejoin","round"),o(e,"stroke-width","2"),o(e,"d","M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"),o(s,"xmlns","http://www.w3.org/2000/svg"),o(s,"class","h-4 w-4"),o(s,"fill","none"),o(s,"viewBox","0 0 24 24"),o(s,"stroke","currentColor")},m(c,f){L(c,s,f),t(s,e),L(c,n,f),L(c,a,f),t(a,u)},p(c,f){f&256&&i!==(i=c[8]("routeCard.delete")+"")&&v(u,i)},d(c){c&&(H(s),H(n),H(a))}}}function Q2(l){let s,e,n,a=l[8]("routeCard.deleting")+"",i;return{c(){s=r("span"),e=h(),n=r("span"),i=_(a),o(s,"class","loading loading-spinner loading-xs")},m(u,c){L(u,s,c),L(u,e,c),L(u,n,c),t(n,i)},p(u,c){c&256&&a!==(a=u[8]("routeCard.deleting")+"")&&v(i,a)},d(u){u&&(H(s),H(e),H(n))}}}function y1(l){let s,e,n,a,i,u,c,f=l[16].target+"",d,p,m,g,b=(l[16].weight||100)+"",k,w,C,E=(l[16].priority||1)+"",y,T;return{c(){s=r("tr"),e=r("td"),n=r("div"),i=h(),u=r("td"),c=r("code"),d=_(f),m=h(),g=r("td"),k=_(b),w=h(),C=r("td"),y=_(E),T=h(),o(n,"class","w-2.5 h-2.5 rounded-full tooltip tooltip-right"),o(n,"data-tip",a=l[16].lastFailureTime?\`\u6700\u540E\u5931\u8D25: \${M1(l[16].lastFailureTime)}\`:to(l[16])==="healthy"?"\u5065\u5EB7":to(l[16])==="unhealthy"?"\u5F02\u5E38":"\u672A\u77E5"),le(n,"bg-success",to(l[16])==="healthy"),le(n,"bg-error",to(l[16])==="unhealthy"),le(n,"bg-warning",to(l[16])==="unknown"),o(c,"class","text-xs truncate max-w-xs block"),o(c,"title",p=l[16].target),o(g,"class","text-right text-xs"),o(C,"class","text-right text-xs"),o(s,"class","hover")},m(M,R){L(M,s,R),t(s,e),t(e,n),t(s,i),t(s,u),t(u,c),t(c,d),t(s,m),t(s,g),t(g,k),t(s,w),t(s,C),t(C,y),t(s,T)},p(M,R){R&128&&a!==(a=M[16].lastFailureTime?\`\u6700\u540E\u5931\u8D25: \${M1(M[16].lastFailureTime)}\`:to(M[16])==="healthy"?"\u5065\u5EB7":to(M[16])==="unhealthy"?"\u5F02\u5E38":"\u672A\u77E5")&&o(n,"data-tip",a),R&128&&le(n,"bg-success",to(M[16])==="healthy"),R&128&&le(n,"bg-error",to(M[16])==="unhealthy"),R&128&&le(n,"bg-warning",to(M[16])==="unknown"),R&128&&f!==(f=M[16].target+"")&&v(d,f),R&128&&p!==(p=M[16].target)&&o(c,"title",p),R&128&&b!==(b=(M[16].weight||100)+"")&&v(k,b),R&128&&E!==(E=(M[16].priority||1)+"")&&v(y,E)},d(M){M&&H(s)}}}function C1(l){let s,e,n,a,i,u=l[8]("routeCard.viewAll",{values:{count:l[0].upstreams.length}})+"",c,f,d;return{c(){s=r("div"),e=r("button"),n=re("svg"),a=re("path"),i=h(),c=_(u),o(a,"stroke-linecap","round"),o(a,"stroke-linejoin","round"),o(a,"stroke-width","2"),o(a,"d","M4 8V4m0 0h4M4 4l5 5m11-1V4m0 0h-4m4 0l-5 5M4 16v4m0 0h4m-4 0l5-5m11 5l-5-5m5 5v-4m0 4h-4"),o(n,"xmlns","http://www.w3.org/2000/svg"),o(n,"class","h-3 w-3"),o(n,"fill","none"),o(n,"viewBox","0 0 24 24"),o(n,"stroke","currentColor"),o(e,"class","btn btn-sm btn-outline gap-1"),o(s,"class","flex justify-center mt-2")},m(p,m){L(p,s,m),t(s,e),t(e,n),t(n,a),t(e,i),t(e,c),f||(d=V(e,"click",l[10]),f=!0)},p(p,m){m&257&&u!==(u=p[8]("routeCard.viewAll",{values:{count:p[0].upstreams.length}})+"")&&v(c,u)},d(p){p&&H(s),f=!1,d()}}}function E1(l){let s,e,n,a=ut(Object.entries(l[0].pathRewrite)),i=[];for(let u=0;u<a.length;u+=1)i[u]=T1(b1(l,a,u));return{c(){s=r("div"),e=r("p"),e.textContent="Path Rewrite:",n=h();for(let u=0;u<i.length;u+=1)i[u].c();o(e,"class","text-sm font-semibold mb-1"),o(s,"class","mt-3")},m(u,c){L(u,s,c),t(s,e),t(s,n);for(let f=0;f<i.length;f+=1)i[f]&&i[f].m(s,null)},p(u,c){if(c&257){a=ut(Object.entries(u[0].pathRewrite));let f;for(f=0;f<a.length;f+=1){const d=b1(u,a,f);i[f]?i[f].p(d,c):(i[f]=T1(d),i[f].c(),i[f].m(s,null))}for(;f<i.length;f+=1)i[f].d(1);i.length=a.length}},d(u){u&&H(s),Gt(i,u)}}}function T1(l){let s,e=l[8]("routeCard.pathRewrite.original")+"",n,a,i,u=l[12]+"",c,f,d=l[8]("routeCard.pathRewrite.rewriteTo")+"",p,m,g,b=l[13]+"",k,w;return{c(){s=r("div"),n=_(e),a=h(),i=r("code"),c=_(u),f=_(" \u2192 "),p=_(d),m=h(),g=r("code"),k=_(b),w=h(),o(i,"class","bg-base-200 px-1.5 py-0.5 rounded text-sm font-mono"),o(g,"class","bg-base-200 px-1.5 py-0.5 rounded text-sm font-mono"),o(s,"class","text-sm text-gray-600")},m(C,E){L(C,s,E),t(s,n),t(s,a),t(s,i),t(i,c),t(s,f),t(s,p),t(s,m),t(s,g),t(g,k),t(s,w)},p(C,E){E&256&&e!==(e=C[8]("routeCard.pathRewrite.original")+"")&&v(n,e),E&1&&u!==(u=C[12]+"")&&v(c,u),E&256&&d!==(d=C[8]("routeCard.pathRewrite.rewriteTo")+"")&&v(p,d),E&1&&b!==(b=C[13]+"")&&v(k,b)},d(C){C&&H(s)}}}function Z2(l){let s,e,n,a,i,u,c=l[0].path+"",f,d,p,m,g=l[8]("routeCard.upstreams",{values:{count:l[0].upstreams.length}})+"",b,k,w,C,E,y,T,M,R,j=l[8]("routeCard.edit")+"",P,I,q,D,A,N,Z,Q,x,z,K,S,B,U,F,J,ie,ue,ne,$,te,ae=l[8]("routeCard.tableHeaders.status")+"",ee,G,pe,oe=l[8]("routeCard.tableHeaders.target")+"",ge,he,ye,ze=l[8]("routeCard.tableHeaders.weight")+"",Pe,we,Fe,Je=l[8]("routeCard.tableHeaders.priority")+"",je,Le,Se,fe,_e,Ie,De,se,ke,me,Ee,Ve=l[0].transformer&&k1(l),Be=l[0].failover?.enabled&&w1(l);function nt(Ge,ce){return Ge[4]?K2:G2}let Ne=nt(l),Qe=Ne(l);function Ye(Ge,ce){return Ge[3]?Q2:Y2}let ve=Ye(l),de=ve(l),Te=ut(l[7]),Ze=[];for(let Ge=0;Ge<Te.length;Ge+=1)Ze[Ge]=y1(v1(l,Te,Ge));let Me=l[6]&&C1(l),Ue=l[0].pathRewrite&&E1(l);function Ce(Ge){l[11](Ge)}let mt={routePath:l[0].path,upstreams:l[0].upstreams};return l[5]!==void 0&&(mt.open=l[5]),De=new W2({props:mt}),Sl.push(()=>Ml(De,"open",Ce)),{c(){s=r("div"),e=r("div"),n=r("div"),a=r("div"),i=r("h2"),u=r("code"),f=_(c),d=h(),p=r("div"),m=r("span"),b=_(g),k=h(),Ve&&Ve.c(),w=h(),Be&&Be.c(),C=h(),E=r("div"),y=r("button"),T=re("svg"),M=re("path"),R=h(),P=_(j),I=h(),q=r("div"),D=r("button"),A=re("svg"),N=re("path"),Q=h(),x=r("ul"),z=r("li"),K=r("button"),Qe.c(),S=h(),B=r("li"),U=r("button"),de.c(),F=h(),J=r("div"),ie=r("div"),ue=r("table"),ne=r("thead"),$=r("tr"),te=r("th"),ee=_(ae),G=h(),pe=r("th"),ge=_(oe),he=h(),ye=r("th"),Pe=_(ze),we=h(),Fe=r("th"),je=_(Je),Le=h(),Se=r("tbody");for(let Ge=0;Ge<Ze.length;Ge+=1)Ze[Ge].c();fe=h(),Me&&Me.c(),_e=h(),Ue&&Ue.c(),Ie=h(),Et(De.$$.fragment),o(u,"class","text-primary"),o(i,"class","card-title text-lg"),o(m,"class","badge badge-sm"),o(p,"class","flex gap-2 mt-2 flex-wrap"),o(a,"class","flex-1"),o(M,"stroke-linecap","round"),o(M,"stroke-linejoin","round"),o(M,"stroke-width","2"),o(M,"d","M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z"),o(T,"xmlns","http://www.w3.org/2000/svg"),o(T,"class","h-4 w-4"),o(T,"fill","none"),o(T,"viewBox","0 0 24 24"),o(T,"stroke","currentColor"),o(y,"class","btn btn-sm btn-primary gap-1"),o(N,"stroke-linecap","round"),o(N,"stroke-linejoin","round"),o(N,"stroke-width","2"),o(N,"d","M12 5v.01M12 12v.01M12 19v.01M12 6a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2z"),o(A,"xmlns","http://www.w3.org/2000/svg"),o(A,"class","h-4 w-4"),o(A,"fill","none"),o(A,"viewBox","0 0 24 24"),o(A,"stroke","currentColor"),o(D,"type","button"),o(D,"class","btn btn-sm btn-ghost btn-square"),o(D,"title",Z=l[8]("routeCard.moreActions")),K.disabled=l[4],o(U,"class","text-error"),U.disabled=l[3],o(x,"class","dropdown-content menu p-2 shadow-lg bg-base-100 rounded-box w-40 z-10"),o(q,"class","dropdown dropdown-end"),o(E,"class","flex gap-2"),o(n,"class","flex justify-between items-start"),o(te,"class","w-12"),o(ye,"class","w-16 text-right"),o(Fe,"class","w-12 text-right"),o($,"class","bg-base-200"),o(ue,"class","table table-xs w-full"),o(ie,"class","overflow-x-auto border border-base-300 rounded-lg"),o(J,"class","mt-4"),o(e,"class","card-body flex flex-col"),o(s,"class","card bg-base-100 shadow-md hover:shadow-lg transition-shadow")},m(Ge,ce){L(Ge,s,ce),t(s,e),t(e,n),t(n,a),t(a,i),t(i,u),t(u,f),t(a,d),t(a,p),t(p,m),t(m,b),t(p,k),Ve&&Ve.m(p,null),t(p,w),Be&&Be.m(p,null),t(n,C),t(n,E),t(E,y),t(y,T),t(T,M),t(y,R),t(y,P),t(E,I),t(E,q),t(q,D),t(D,A),t(A,N),t(q,Q),t(q,x),t(x,z),t(z,K),Qe.m(K,null),t(x,S),t(x,B),t(B,U),de.m(U,null),t(e,F),t(e,J),t(J,ie),t(ie,ue),t(ue,ne),t(ne,$),t($,te),t(te,ee),t($,G),t($,pe),t(pe,ge),t($,he),t($,ye),t(ye,Pe),t($,we),t($,Fe),t(Fe,je),t(ue,Le),t(ue,Se);for(let qe=0;qe<Ze.length;qe+=1)Ze[qe]&&Ze[qe].m(Se,null);t(J,fe),Me&&Me.m(J,null),t(e,_e),Ue&&Ue.m(e,null),L(Ge,Ie,ce),Ct(De,Ge,ce),ke=!0,me||(Ee=[V(y,"click",l[9]),V(K,"click",function(){sa(l[2])&&l[2].apply(this,arguments)}),V(U,"click",function(){sa(l[1])&&l[1].apply(this,arguments)})],me=!0)},p(Ge,[ce]){if(l=Ge,(!ke||ce&1)&&c!==(c=l[0].path+"")&&v(f,c),(!ke||ce&257)&&g!==(g=l[8]("routeCard.upstreams",{values:{count:l[0].upstreams.length}})+"")&&v(b,g),l[0].transformer?Ve?Ve.p(l,ce):(Ve=k1(l),Ve.c(),Ve.m(p,w)):Ve&&(Ve.d(1),Ve=null),l[0].failover?.enabled?Be?Be.p(l,ce):(Be=w1(l),Be.c(),Be.m(p,null)):Be&&(Be.d(1),Be=null),(!ke||ce&256)&&j!==(j=l[8]("routeCard.edit")+"")&&v(P,j),(!ke||ce&256&&Z!==(Z=l[8]("routeCard.moreActions")))&&o(D,"title",Z),Ne===(Ne=nt(l))&&Qe?Qe.p(l,ce):(Qe.d(1),Qe=Ne(l),Qe&&(Qe.c(),Qe.m(K,null))),(!ke||ce&16)&&(K.disabled=l[4]),ve===(ve=Ye(l))&&de?de.p(l,ce):(de.d(1),de=ve(l),de&&(de.c(),de.m(U,null))),(!ke||ce&8)&&(U.disabled=l[3]),(!ke||ce&256)&&ae!==(ae=l[8]("routeCard.tableHeaders.status")+"")&&v(ee,ae),(!ke||ce&256)&&oe!==(oe=l[8]("routeCard.tableHeaders.target")+"")&&v(ge,oe),(!ke||ce&256)&&ze!==(ze=l[8]("routeCard.tableHeaders.weight")+"")&&v(Pe,ze),(!ke||ce&256)&&Je!==(Je=l[8]("routeCard.tableHeaders.priority")+"")&&v(je,Je),ce&128){Te=ut(l[7]);let Re;for(Re=0;Re<Te.length;Re+=1){const dt=v1(l,Te,Re);Ze[Re]?Ze[Re].p(dt,ce):(Ze[Re]=y1(dt),Ze[Re].c(),Ze[Re].m(Se,null))}for(;Re<Ze.length;Re+=1)Ze[Re].d(1);Ze.length=Te.length}l[6]?Me?Me.p(l,ce):(Me=C1(l),Me.c(),Me.m(J,null)):Me&&(Me.d(1),Me=null),l[0].pathRewrite?Ue?Ue.p(l,ce):(Ue=E1(l),Ue.c(),Ue.m(e,null)):Ue&&(Ue.d(1),Ue=null);const qe={};ce&1&&(qe.routePath=l[0].path),ce&1&&(qe.upstreams=l[0].upstreams),!se&&ce&32&&(se=!0,qe.open=l[5],Rl(()=>se=!1)),De.$set(qe)},i(Ge){ke||(et(De.$$.fragment,Ge),ke=!0)},o(Ge){st(De.$$.fragment,Ge),ke=!1},d(Ge){Ge&&(H(s),H(Ie)),Ve&&Ve.d(),Be&&Be.d(),Qe.d(),de.d(),Gt(Ze,Ge),Me&&Me.d(),Ue&&Ue.d(),yt(De,Ge),me=!1,vt(Ee)}}}const S1=5;function to(l){return l.status?l.status==="HEALTHY"?"healthy":"unhealthy":"unknown"}function M1(l){if(!l)return"";const s=new Date(l),n=new Date().getTime()-s.getTime(),a=Math.floor(n/1e3),i=Math.floor(a/60),u=Math.floor(i/60);return a<60?\`\${a}\u79D2\u524D\`:i<60?\`\${i}\u5206\u949F\u524D\`:u<24?\`\${u}\u5C0F\u65F6\u524D\`:s.toLocaleString("zh-CN")}function X2(l,s,e){let n,a,i;Dt(l,Rt,w=>e(8,i=w));let{route:u}=s,{onDelete:c}=s,{onDuplicate:f}=s,{isDeleting:d=!1}=s,{isDuplicating:p=!1}=s,m=!1;function g(){zp(\`/routes/edit/\${encodeURIComponent(u.path)}\`)}function b(){e(5,m=!0)}function k(w){m=w,e(5,m)}return l.$$set=w=>{"route"in w&&e(0,u=w.route),"onDelete"in w&&e(1,c=w.onDelete),"onDuplicate"in w&&e(2,f=w.onDuplicate),"isDeleting"in w&&e(3,d=w.isDeleting),"isDuplicating"in w&&e(4,p=w.isDuplicating)},l.$$.update=()=>{l.$$.dirty&1&&e(7,n=u.upstreams.slice(0,S1)),l.$$.dirty&1&&e(6,a=u.upstreams.length>S1)},[u,c,f,d,p,m,a,n,i,g,b,k]}class x2 extends Nt{constructor(s){super(),Ut(this,s,X2,Z2,Vt,{route:0,onDelete:1,onDuplicate:2,isDeleting:3,isDuplicating:4})}}function R1(l){let s,e,n,a,i,u,c,f,d,p,m,g,b,k,w,C,E;return{c(){s=r("dialog"),e=r("div"),n=r("h3"),a=_(l[5]),i=h(),u=r("p"),c=_(l[4]),f=h(),d=r("div"),p=r("button"),m=_(l[2]),g=h(),b=r("button"),k=_(l[3]),o(n,"class","font-bold text-lg"),o(u,"class","py-4"),o(p,"class","btn"),o(b,"class",w="btn "+l[1]),o(d,"class","modal-action"),o(e,"class","modal-box"),o(s,"class","modal modal-open")},m(y,T){L(y,s,T),t(s,e),t(e,n),t(n,a),t(e,i),t(e,u),t(u,c),t(e,f),t(e,d),t(d,p),t(p,m),t(d,g),t(d,b),t(b,k),C||(E=[V(p,"click",l[7]),V(b,"click",l[6]),V(s,"click",l[8])],C=!0)},p(y,T){T&32&&v(a,y[5]),T&16&&v(c,y[4]),T&4&&v(m,y[2]),T&8&&v(k,y[3]),T&2&&w!==(w="btn "+y[1])&&o(b,"class",w)},d(y){y&&H(s),C=!1,vt(E)}}}function $2(l){let s,e=l[0]&&R1(l);return{c(){e&&e.c(),s=Ul()},m(n,a){e&&e.m(n,a),L(n,s,a)},p(n,[a]){n[0]?e?e.p(n,a):(e=R1(n),e.c(),e.m(s.parentNode,s)):e&&(e.d(1),e=null)},i:ot,o:ot,d(n){n&&H(s),e&&e.d(n)}}}function eh(l,s,e){let n,a,i,u,c;Dt(l,Rt,y=>e(13,c=y));let{open:f=!1}=s,{title:d=""}=s,{message:p=""}=s,{confirmText:m=""}=s,{cancelText:g=""}=s,{confirmClass:b="btn-error"}=s;const k=oa();function w(){k("confirm"),e(0,f=!1)}function C(){k("cancel"),e(0,f=!1)}function E(y){y.target===y.currentTarget&&C()}return l.$$set=y=>{"open"in y&&e(0,f=y.open),"title"in y&&e(9,d=y.title),"message"in y&&e(10,p=y.message),"confirmText"in y&&e(11,m=y.confirmText),"cancelText"in y&&e(12,g=y.cancelText),"confirmClass"in y&&e(1,b=y.confirmClass)},l.$$.update=()=>{l.$$.dirty&8704&&e(5,n=d||c("confirmDialog.title")),l.$$.dirty&1024&&e(4,a=p),l.$$.dirty&10240&&e(3,i=m||c("confirmDialog.confirm")),l.$$.dirty&12288&&e(2,u=g||c("confirmDialog.cancel"))},[f,b,u,i,a,n,w,C,E,d,p,m,g,c]}class $p extends Nt{constructor(s){super(),Ut(this,s,eh,$2,Vt,{open:0,title:9,message:10,confirmText:11,cancelText:12,confirmClass:1})}}function q1(l,s,e){const n=l.slice();return n[29]=s[e],n}function H1(l,s,e){const n=l.slice();return n[32]=s[e],n}function th(l){let s,e;return{c(){s=re("svg"),e=re("path"),o(e,"stroke-linecap","round"),o(e,"stroke-linejoin","round"),o(e,"stroke-width","2"),o(e,"d","M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-8l-4-4m0 0L8 8m4-4v12"),o(s,"xmlns","http://www.w3.org/2000/svg"),o(s,"class","h-4 w-4"),o(s,"fill","none"),o(s,"viewBox","0 0 24 24"),o(s,"stroke","currentColor")},m(n,a){L(n,s,a),t(s,e)},d(n){n&&H(s)}}}function lh(l){let s;return{c(){s=r("span"),o(s,"class","loading loading-spinner loading-xs")},m(e,n){L(e,s,n)},d(e){e&&H(s)}}}function L1(l){let s,e=l[32]+"",n,a;return{c(){s=r("option"),n=_(e),s.__value=a=l[32],Y(s,s.__value)},m(i,u){L(i,s,u),t(s,n)},p(i,u){u[0]&2048&&e!==(e=i[32]+"")&&v(n,e),u[0]&2048&&a!==(a=i[32])&&(s.__value=a,Y(s,s.__value))},d(i){i&&H(s)}}}function sh(l){let s,e,n=ut(l[12]),a=[];for(let u=0;u<n.length;u+=1)a[u]=P1(q1(l,n,u));const i=u=>st(a[u],1,1,()=>{a[u]=null});return{c(){s=r("div");for(let u=0;u<a.length;u+=1)a[u].c();o(s,"class","grid grid-cols-1 lg:grid-cols-2 gap-4")},m(u,c){L(u,s,c);for(let f=0;f<a.length;f+=1)a[f]&&a[f].m(s,null);e=!0},p(u,c){if(c[0]&152320){n=ut(u[12]);let f;for(f=0;f<n.length;f+=1){const d=q1(u,n,f);a[f]?(a[f].p(d,c),et(a[f],1)):(a[f]=P1(d),a[f].c(),et(a[f],1),a[f].m(s,null))}for(Gl(),f=n.length;f<a.length;f+=1)i(f);Kl()}},i(u){if(!e){for(let c=0;c<n.length;c+=1)et(a[c]);e=!0}},o(u){a=a.filter(Boolean);for(let c=0;c<a.length;c+=1)st(a[c]);e=!1},d(u){u&&H(s),Gt(a,u)}}}function oh(l){let s;function e(i,u){return i[0].length===0?ih:rh}let n=e(l),a=n(l);return{c(){s=r("div"),a.c(),o(s,"class","text-center py-12")},m(i,u){L(i,s,u),a.m(s,null)},p(i,u){n===(n=e(i))&&a?a.p(i,u):(a.d(1),a=n(i),a&&(a.c(),a.m(s,null)))},i:ot,o:ot,d(i){i&&H(s),a.d()}}}function nh(l){let s,e,n,a,i,u=l[13]("common.error")+"",c,f,d;return{c(){s=r("div"),e=re("svg"),n=re("path"),a=h(),i=r("span"),c=_(u),f=_(": "),d=_(l[5]),o(n,"stroke-linecap","round"),o(n,"stroke-linejoin","round"),o(n,"stroke-width","2"),o(n,"d","M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z"),o(e,"xmlns","http://www.w3.org/2000/svg"),o(e,"class","stroke-current shrink-0 h-6 w-6"),o(e,"fill","none"),o(e,"viewBox","0 0 24 24"),o(s,"class","alert alert-error")},m(p,m){L(p,s,m),t(s,e),t(e,n),t(s,a),t(s,i),t(i,c),t(i,f),t(i,d)},p(p,m){m[0]&8192&&u!==(u=p[13]("common.error")+"")&&v(c,u),m[0]&32&&v(d,p[5])},i:ot,o:ot,d(p){p&&H(s)}}}function ah(l){let s;return{c(){s=r("div"),s.innerHTML='<span class="loading loading-spinner loading-lg"></span>',o(s,"class","flex justify-center items-center h-64")},m(e,n){L(e,s,n)},p:ot,i:ot,o:ot,d(e){e&&H(s)}}}function P1(l){let s,e;function n(){return l[24](l[29])}function a(){return l[25](l[29])}return s=new x2({props:{route:l[29],onDelete:n,onDuplicate:a,isDeleting:l[8].has(l[29].path),isDuplicating:l[9].has(l[29].path)}}),{c(){Et(s.$$.fragment)},m(i,u){Ct(s,i,u),e=!0},p(i,u){l=i;const c={};u[0]&4096&&(c.route=l[29]),u[0]&4096&&(c.onDelete=n),u[0]&4096&&(c.onDuplicate=a),u[0]&4352&&(c.isDeleting=l[8].has(l[29].path)),u[0]&4608&&(c.isDuplicating=l[9].has(l[29].path)),s.$set(c)},i(i){e||(et(s.$$.fragment,i),e=!0)},o(i){st(s.$$.fragment,i),e=!1},d(i){yt(s,i)}}}function rh(l){let s,e,n,a=l[13]("routes.noMatchingRoutes")+"",i,u,c,f=l[13]("routes.noMatchingMessage")+"",d;return{c(){s=r("div"),s.textContent="\uD83D\uDD0D",e=h(),n=r("h3"),i=_(a),u=h(),c=r("p"),d=_(f),o(s,"class","text-6xl mb-4"),o(n,"class","text-xl font-semibold mb-2"),o(c,"class","text-gray-500")},m(p,m){L(p,s,m),L(p,e,m),L(p,n,m),t(n,i),L(p,u,m),L(p,c,m),t(c,d)},p(p,m){m[0]&8192&&a!==(a=p[13]("routes.noMatchingRoutes")+"")&&v(i,a),m[0]&8192&&f!==(f=p[13]("routes.noMatchingMessage")+"")&&v(d,f)},d(p){p&&(H(s),H(e),H(n),H(u),H(c))}}}function ih(l){let s,e,n,a=l[13]("routes.noRoutes")+"",i,u,c,f=l[13]("routes.noRoutesMessage")+"",d,p,m,g=l[13]("routes.createFirstRoute")+"",b,k,w;return{c(){s=r("div"),s.textContent="\uD83D\uDE80",e=h(),n=r("h3"),i=_(a),u=h(),c=r("p"),d=_(f),p=h(),m=r("button"),b=_(g),o(s,"class","text-6xl mb-4"),o(n,"class","text-xl font-semibold mb-2"),o(c,"class","text-gray-500 mb-4"),o(m,"class","btn btn-primary")},m(C,E){L(C,s,E),L(C,e,E),L(C,n,E),t(n,i),L(C,u,E),L(C,c,E),t(c,d),L(C,p,E),L(C,m,E),t(m,b),k||(w=V(m,"click",l[18]),k=!0)},p(C,E){E[0]&8192&&a!==(a=C[13]("routes.noRoutes")+"")&&v(i,a),E[0]&8192&&f!==(f=C[13]("routes.noRoutesMessage")+"")&&v(d,f),E[0]&8192&&g!==(g=C[13]("routes.createFirstRoute")+"")&&v(b,g)},d(C){C&&(H(s),H(e),H(n),H(u),H(c),H(p),H(m)),k=!1,w()}}}function j1(l){let s,e=l[13]("routes.showingRoutes",{values:{count:l[12].length,total:l[0].length}})+"",n;return{c(){s=r("div"),n=_(e),o(s,"class","mt-6 text-sm text-gray-500 text-center")},m(a,i){L(a,s,i),t(s,n)},p(a,i){i[0]&12289&&e!==(e=a[13]("routes.showingRoutes",{values:{count:a[12].length,total:a[0].length}})+"")&&v(n,e)},d(a){a&&H(s)}}}function uh(l){let s,e,n,a,i=l[13]("routes.title")+"",u,c,f,d=l[13]("routes.subtitle")+"",p,m,g,b,k,w,C,E=l[13]("routes.export")+"",y,T,M,R,j,P=l[13]("routes.import")+"",I,q,D,A,N=l[13]("routes.newRoute")+"",Z,Q,x,z,K,S,B,U,F,J,ie=l[13]("routes.allTransformers")+"",ue,ne,$,te,ae,ee=l[13]("routes.filterStatus.all")+"",G,pe,oe=l[13]("routes.filterStatus.healthy")+"",ge,he,ye=l[13]("routes.filterStatus.unhealthy")+"",ze,Pe,we,Fe,Je,je,Le,Se,fe,_e,Ie;function De(ve,de){return ve[10]?lh:th}let se=De(l),ke=se(l),me=ut(l[11]),Ee=[];for(let ve=0;ve<me.length;ve+=1)Ee[ve]=L1(H1(l,me,ve));const Ve=[ah,nh,oh,sh],Be=[];function nt(ve,de){return ve[4]?0:ve[5]?1:ve[12].length===0?2:3}we=nt(l),Fe=Be[we]=Ve[we](l);let Ne=!l[4]&&l[0].length>0&&j1(l);function Qe(ve){l[26](ve)}let Ye={title:l[13]("routes.confirmDelete"),message:l[7]?l[13]("routes.confirmDeleteMessage",{values:{path:l[7].path}}):"",confirmText:l[13]("common.delete"),cancelText:l[13]("common.cancel"),confirmClass:"btn-error"};return l[6]!==void 0&&(Ye.open=l[6]),Le=new $p({props:Ye}),Sl.push(()=>Ml(Le,"open",Qe)),Le.$on("confirm",l[15]),Le.$on("cancel",l[16]),{c(){s=r("div"),e=r("div"),n=r("div"),a=r("h1"),u=_(i),c=h(),f=r("p"),p=_(d),m=h(),g=r("div"),b=r("button"),k=re("svg"),w=re("path"),C=h(),y=_(E),M=h(),R=r("button"),ke.c(),j=h(),I=_(P),D=h(),A=r("button"),Z=_(N),Q=h(),x=r("div"),z=r("div"),K=r("input"),B=h(),U=r("div"),F=r("select"),J=r("option"),ue=_(ie);for(let ve=0;ve<Ee.length;ve+=1)Ee[ve].c();ne=h(),$=r("div"),te=r("select"),ae=r("option"),G=_(ee),pe=r("option"),ge=_(oe),he=r("option"),ze=_(ye),Pe=h(),Fe.c(),Je=h(),Ne&&Ne.c(),je=h(),Et(Le.$$.fragment),o(a,"class","text-3xl font-bold"),o(f,"class","text-sm text-gray-500 mt-1"),o(w,"stroke-linecap","round"),o(w,"stroke-linejoin","round"),o(w,"stroke-width","2"),o(w,"d","M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"),o(k,"xmlns","http://www.w3.org/2000/svg"),o(k,"class","h-4 w-4"),o(k,"fill","none"),o(k,"viewBox","0 0 24 24"),o(k,"stroke","currentColor"),o(b,"class","btn btn-sm btn-outline"),b.disabled=T=l[4]||l[0].length===0,o(R,"class","btn btn-sm btn-outline"),R.disabled=q=l[4]||l[10],o(A,"class","btn btn-primary btn-sm"),o(g,"class","flex gap-2"),o(e,"class","flex justify-between items-center mb-6"),o(K,"type","text"),o(K,"placeholder",S=l[13]("routes.searchPlaceholder")),o(K,"class","input input-bordered"),o(z,"class","form-control flex-1"),J.__value="",Y(J,J.__value),o(F,"class","select select-bordered"),l[2]===void 0&&pl(()=>l[22].call(F)),o(U,"class","form-control w-48"),ae.__value="all",Y(ae,ae.__value),pe.__value="healthy",Y(pe,pe.__value),he.__value="unhealthy",Y(he,he.__value),o(te,"class","select select-bordered"),l[3]===void 0&&pl(()=>l[23].call(te)),o($,"class","form-control w-32"),o(x,"class","flex gap-4 mb-6"),o(s,"class","p-6")},m(ve,de){L(ve,s,de),t(s,e),t(e,n),t(n,a),t(a,u),t(n,c),t(n,f),t(f,p),t(e,m),t(e,g),t(g,b),t(b,k),t(k,w),t(b,C),t(b,y),t(g,M),t(g,R),ke.m(R,null),t(R,j),t(R,I),t(g,D),t(g,A),t(A,Z),t(s,Q),t(s,x),t(x,z),t(z,K),Y(K,l[1]),t(x,B),t(x,U),t(U,F),t(F,J),t(J,ue);for(let Te=0;Te<Ee.length;Te+=1)Ee[Te]&&Ee[Te].m(F,null);kt(F,l[2],!0),t(x,ne),t(x,$),t($,te),t(te,ae),t(ae,G),t(te,pe),t(pe,ge),t(te,he),t(he,ze),kt(te,l[3],!0),t(s,Pe),Be[we].m(s,null),t(s,Je),Ne&&Ne.m(s,null),t(s,je),Ct(Le,s,null),fe=!0,_e||(Ie=[V(b,"click",l[19]),V(R,"click",l[20]),V(A,"click",l[18]),V(K,"input",l[21]),V(F,"change",l[22]),V(te,"change",l[23])],_e=!0)},p(ve,de){if((!fe||de[0]&8192)&&i!==(i=ve[13]("routes.title")+"")&&v(u,i),(!fe||de[0]&8192)&&d!==(d=ve[13]("routes.subtitle")+"")&&v(p,d),(!fe||de[0]&8192)&&E!==(E=ve[13]("routes.export")+"")&&v(y,E),(!fe||de[0]&17&&T!==(T=ve[4]||ve[0].length===0))&&(b.disabled=T),se!==(se=De(ve))&&(ke.d(1),ke=se(ve),ke&&(ke.c(),ke.m(R,j))),(!fe||de[0]&8192)&&P!==(P=ve[13]("routes.import")+"")&&v(I,P),(!fe||de[0]&1040&&q!==(q=ve[4]||ve[10]))&&(R.disabled=q),(!fe||de[0]&8192)&&N!==(N=ve[13]("routes.newRoute")+"")&&v(Z,N),(!fe||de[0]&8192&&S!==(S=ve[13]("routes.searchPlaceholder")))&&o(K,"placeholder",S),de[0]&2&&K.value!==ve[1]&&Y(K,ve[1]),(!fe||de[0]&8192)&&ie!==(ie=ve[13]("routes.allTransformers")+"")&&v(ue,ie),de[0]&2048){me=ut(ve[11]);let Me;for(Me=0;Me<me.length;Me+=1){const Ue=H1(ve,me,Me);Ee[Me]?Ee[Me].p(Ue,de):(Ee[Me]=L1(Ue),Ee[Me].c(),Ee[Me].m(F,null))}for(;Me<Ee.length;Me+=1)Ee[Me].d(1);Ee.length=me.length}de[0]&2052&&kt(F,ve[2]),(!fe||de[0]&8192)&&ee!==(ee=ve[13]("routes.filterStatus.all")+"")&&v(G,ee),(!fe||de[0]&8192)&&oe!==(oe=ve[13]("routes.filterStatus.healthy")+"")&&v(ge,oe),(!fe||de[0]&8192)&&ye!==(ye=ve[13]("routes.filterStatus.unhealthy")+"")&&v(ze,ye),de[0]&8&&kt(te,ve[3]);let Te=we;we=nt(ve),we===Te?Be[we].p(ve,de):(Gl(),st(Be[Te],1,1,()=>{Be[Te]=null}),Kl(),Fe=Be[we],Fe?Fe.p(ve,de):(Fe=Be[we]=Ve[we](ve),Fe.c()),et(Fe,1),Fe.m(s,Je)),!ve[4]&&ve[0].length>0?Ne?Ne.p(ve,de):(Ne=j1(ve),Ne.c(),Ne.m(s,je)):Ne&&(Ne.d(1),Ne=null);const Ze={};de[0]&8192&&(Ze.title=ve[13]("routes.confirmDelete")),de[0]&8320&&(Ze.message=ve[7]?ve[13]("routes.confirmDeleteMessage",{values:{path:ve[7].path}}):""),de[0]&8192&&(Ze.confirmText=ve[13]("common.delete")),de[0]&8192&&(Ze.cancelText=ve[13]("common.cancel")),!Se&&de[0]&64&&(Se=!0,Ze.open=ve[6],Rl(()=>Se=!1)),Le.$set(Ze)},i(ve){fe||(et(Fe),et(Le.$$.fragment,ve),fe=!0)},o(ve){st(Fe),st(Le.$$.fragment,ve),fe=!1},d(ve){ve&&H(s),ke.d(),Gt(Ee,ve),Be[we].d(),Ne&&Ne.d(),yt(Le),_e=!1,vt(Ie)}}}function fh(l,s,e){let n,a,i;Dt(l,Rt,z=>e(13,i=z));let u=[],c=!0,f=null,d="",p="",m="all",g=!0,b=!1,k=null,w=new Set,C=new Set,E=!1;async function y(z=!1){const K=!z&&g;try{K&&e(4,c=!0),e(0,u=await wo.list()),e(5,f=null),g=!1}catch(S){e(5,f=S.message),z||jt.show(S.message,"error")}finally{K&&e(4,c=!1)}}async function T(z){e(7,k=z),e(6,b=!0)}async function M(){if(k){w.add(k.path),e(8,w);try{await wo.delete(k.path),jt.show(i("routes.deleted",{values:{path:k.path}}),"success"),await y()}catch(z){jt.show(i("routes.deleteFailed",{values:{error:z.message}}),"error")}finally{w.delete(k.path),e(8,w),e(7,k=null)}}}function R(){e(7,k=null)}async function j(z){C.add(z.path),e(9,C);try{await wo.duplicate(z.path),jt.show(i("routes.duplicated",{values:{path:z.path}}),"success"),await y()}catch(K){jt.show(i("routes.duplicateFailed",{values:{error:K.message}}),"error")}finally{C.delete(z.path),e(9,C)}}function P(){zp("/routes/new")}function I(){if(u.length===0){jt.show(i("routes.noRoutesToExport"),"warning");return}const z=JSON.stringify(u,null,2),K="data:application/json;charset=utf-8,"+encodeURIComponent(z),S=\`bungee-routes-\${new Date().toISOString().split("T")[0]}.json\`,B=document.createElement("a");B.setAttribute("href",K),B.setAttribute("download",S),B.click(),jt.show(i("routes.exported"),"success")}function q(){const z=document.createElement("input");z.type="file",z.accept=".json",z.onchange=async K=>{const S=K.target.files[0];if(S){e(10,E=!0);try{const B=await S.text(),U=JSON.parse(B);if(!Array.isArray(U))throw new Error(i("routes.importMustBeArray"));let F=0,J=0;for(const ie of U)try{await wo.create(ie),F++}catch(ue){J++,console.error(\`Failed to import route \${ie.path}:\`,ue)}if(F>0){const ie=J>0?i("routes.importPartialSuccess",{values:{success:F,failed:J}}):i("routes.importSuccess",{values:{success:F}});jt.show(ie,"success"),await y()}else jt.show(i("routes.importFailed",{values:{error:\`\${J} routes failed\`}}),"error")}catch(B){jt.show(i("routes.importFailed",{values:{error:B.message}}),"error")}finally{e(10,E=!1)}}},z.click()}Hs(()=>{y();const z=setInterval(()=>{y(!0)},5e3);return()=>{clearInterval(z)}});function D(){d=this.value,e(1,d)}function A(){p=dl(this),e(2,p),e(11,a),e(0,u)}function N(){m=dl(this),e(3,m)}const Z=z=>T(z),Q=z=>j(z);function x(z){b=z,e(6,b)}return l.$$.update=()=>{l.$$.dirty[0]&15&&e(12,n=u.filter(z=>{const K=z.path.toLowerCase().includes(d.toLowerCase())||z.upstreams.some(U=>U.target.toLowerCase().includes(d.toLowerCase())),S=!p||typeof z.transformer=="string"&&z.transformer===p||z.upstreams.some(U=>typeof U.transformer=="string"&&U.transformer===p);let B=!0;return m==="healthy"?B=z.upstreams.every(U=>U.status==="HEALTHY"):m==="unhealthy"&&(B=z.upstreams.some(U=>U.status==="UNHEALTHY")),K&&S&&B})),l.$$.dirty[0]&1&&e(11,a=Array.from(new Set(u.flatMap(z=>{const K=[];return typeof z.transformer=="string"&&K.push(z.transformer),z.upstreams.forEach(S=>{typeof S.transformer=="string"&&K.push(S.transformer)}),K}))))},[u,d,p,m,c,f,b,k,w,C,E,a,n,i,T,M,R,j,P,I,q,D,A,N,Z,Q,x]}class ch extends Nt{constructor(s){super(),Ut(this,s,fh,uh,Vt,{},null,[-1,-1])}}const D1="/__ui/api";class e0{static async getAll(){const s=await fetch(\`\${D1}/transformers\`);if(!s.ok)throw new Error(\`HTTP \${s.status}: \${s.statusText}\`);const e=await s.json();return e.plugins||e.transformers||[]}static async getById(s){const e=await fetch(\`\${D1}/transformers/\${encodeURIComponent(s)}\`);if(!e.ok)throw new Error(\`HTTP \${e.status}: \${e.statusText}\`);return await e.json()}}let xr=null;async function dh(){if(xr===null)try{xr=await e0.getAll()}catch(l){console.warn("Failed to fetch transformers from API, using fallback:",l),xr=["openai-to-anthropic","anthropic-to-openai","anthropic-to-gemini"]}return xr}function Du(l,s){const e=[],n=\`upstreams[\${s}]\`;if(!l.target)e.push({field:\`\${n}.target\`,message:Cs(Rt)("validation.targetRequired")});else try{const a=new URL(l.target);["http:","https:"].includes(a.protocol)||e.push({field:\`\${n}.target\`,message:Cs(Rt)("validation.targetProtocol")})}catch{e.push({field:\`\${n}.target\`,message:Cs(Rt)("validation.invalidUrl")})}return l.weight!==void 0&&(typeof l.weight!="number"||l.weight<=0)&&e.push({field:\`\${n}.weight\`,message:Cs(Rt)("validation.weightPositive")}),l.priority!==void 0&&(typeof l.priority!="number"||l.priority<0)&&e.push({field:\`\${n}.priority\`,message:Cs(Rt)("validation.priorityNonNegative")}),e}function ph(l){const s=[];return l.some(n=>n.weight!==void 0)&&l.reduce((a,i)=>a+(i.weight||0),0)===0&&s.push({field:"upstreams",message:Cs(Rt)("validation.totalWeightPositive")}),s}async function hh(l,s){const e=Du(l,s),n=\`upstreams[\${s}]\`;if(l.plugins&&l.plugins.length>0){const a=l.plugins[0];if(typeof a=="string")try{const i=await dh();if(!i.includes(a)){const u=Cs(Rt);e.push({field:\`\${n}.plugins\`,message:u("validation.unknownTransformer",{values:{transformer:a,options:i.join(", ")}})})}}catch(i){console.warn("Failed to validate plugin:",i)}}return e}async function mh(l){const s=[];if(l.path?l.path.startsWith("/")||s.push({field:"path",message:Cs(Rt)("validation.pathStartSlash")}):s.push({field:"path",message:Cs(Rt)("validation.pathRequired")}),!l.upstreams||l.upstreams.length===0)s.push({field:"upstreams",message:Cs(Rt)("validation.upstreamRequired")});else{const e=l.upstreams.map((a,i)=>hh(a,i));(await Promise.all(e)).forEach(a=>s.push(...a))}return l.pathRewrite&&Object.keys(l.pathRewrite).forEach(e=>{try{new RegExp(e)}catch{const n=Cs(Rt);s.push({field:\`pathRewrite.\${e}\`,message:n("validation.invalidRegex",{values:{pattern:e}})})}}),l.failover?.enabled&&(l.failover.retryableStatusCodes&&l.failover.retryableStatusCodes.forEach(e=>{if(e<100||e>599){const n=Cs(Rt);s.push({field:"failover.retryableStatusCodes",message:n("validation.invalidStatusCode",{values:{code:e}})})}}),l.failover.recoveryIntervalMs!==void 0&&l.failover.recoveryIntervalMs<=0&&s.push({field:"failover.recoveryIntervalMs",message:Cs(Rt)("validation.recoveryIntervalPositive")}),l.failover.recoveryTimeoutMs!==void 0&&l.failover.recoveryTimeoutMs<=0&&s.push({field:"failover.recoveryTimeoutMs",message:Cs(Rt)("validation.recoveryTimeoutPositive")})),s}function B1(l){let s,e,n,a,i,u,c,f,d,p,m;function g(w,C){return w[2]==="success"?vh:w[2]==="error"?bh:w[2]==="warning"?_h:gh}let b=g(l),k=b(l);return{c(){s=r("div"),e=r("div"),n=r("div"),k.c(),a=h(),i=r("span"),u=_(l[1]),c=h(),f=r("button"),f.textContent="\u2715",o(f,"class","btn btn-sm btn-ghost"),o(e,"class",d="alert "+l[3]+" shadow-lg"),o(s,"class","toast toast-end toast-top z-50")},m(w,C){L(w,s,C),t(s,e),t(e,n),k.m(n,null),t(n,a),t(n,i),t(i,u),t(e,c),t(e,f),p||(m=V(f,"click",l[4]),p=!0)},p(w,C){b!==(b=g(w))&&(k.d(1),k=b(w),k&&(k.c(),k.m(n,a))),C&2&&v(u,w[1]),C&8&&d!==(d="alert "+w[3]+" shadow-lg")&&o(e,"class",d)},d(w){w&&H(s),k.d(),p=!1,m()}}}function gh(l){let s,e;return{c(){s=re("svg"),e=re("path"),o(e,"stroke-linecap","round"),o(e,"stroke-linejoin","round"),o(e,"stroke-width","2"),o(e,"d","M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"),o(s,"xmlns","http://www.w3.org/2000/svg"),o(s,"fill","none"),o(s,"viewBox","0 0 24 24"),o(s,"class","stroke-current shrink-0 w-6 h-6")},m(n,a){L(n,s,a),t(s,e)},d(n){n&&H(s)}}}function _h(l){let s,e;return{c(){s=re("svg"),e=re("path"),o(e,"stroke-linecap","round"),o(e,"stroke-linejoin","round"),o(e,"stroke-width","2"),o(e,"d","M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"),o(s,"xmlns","http://www.w3.org/2000/svg"),o(s,"class","stroke-current shrink-0 h-6 w-6"),o(s,"fill","none"),o(s,"viewBox","0 0 24 24")},m(n,a){L(n,s,a),t(s,e)},d(n){n&&H(s)}}}function bh(l){let s,e;return{c(){s=re("svg"),e=re("path"),o(e,"stroke-linecap","round"),o(e,"stroke-linejoin","round"),o(e,"stroke-width","2"),o(e,"d","M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z"),o(s,"xmlns","http://www.w3.org/2000/svg"),o(s,"class","stroke-current shrink-0 h-6 w-6"),o(s,"fill","none"),o(s,"viewBox","0 0 24 24")},m(n,a){L(n,s,a),t(s,e)},d(n){n&&H(s)}}}function vh(l){let s,e;return{c(){s=re("svg"),e=re("path"),o(e,"stroke-linecap","round"),o(e,"stroke-linejoin","round"),o(e,"stroke-width","2"),o(e,"d","M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"),o(s,"xmlns","http://www.w3.org/2000/svg"),o(s,"class","stroke-current shrink-0 h-6 w-6"),o(s,"fill","none"),o(s,"viewBox","0 0 24 24")},m(n,a){L(n,s,a),t(s,e)},d(n){n&&H(s)}}}function kh(l){let s,e=l[0]&&B1(l);return{c(){e&&e.c(),s=Ul()},m(n,a){e&&e.m(n,a),L(n,s,a)},p(n,[a]){n[0]?e?e.p(n,a):(e=B1(n),e.c(),e.m(s.parentNode,s)):e&&(e.d(1),e=null)},i:ot,o:ot,d(n){n&&H(s),e&&e.d(n)}}}function wh(l,s,e){let n,{message:a}=s,{type:i="info"}=s,{duration:u=3e3}=s,{visible:c=!0}=s;const f=oa();let d;Hs(()=>(u>0&&(d=setTimeout(()=>{e(0,c=!1),f("close")},u)),()=>{d&&clearTimeout(d)}));function p(){e(0,c=!1),f("close"),d&&clearTimeout(d)}return l.$$set=m=>{"message"in m&&e(1,a=m.message),"type"in m&&e(2,i=m.type),"duration"in m&&e(5,u=m.duration),"visible"in m&&e(0,c=m.visible)},l.$$.update=()=>{l.$$.dirty&4&&e(3,n={success:"alert-success",error:"alert-error",warning:"alert-warning",info:"alert-info"}[i])},[c,a,i,n,p,u]}class yh extends Nt{constructor(s){super(),Ut(this,s,wh,kh,Vt,{message:1,type:2,duration:5,visible:0})}}function I1(l,s,e){const n=l.slice();return n[7]=s[e],n}function A1(l){let s,e,n,a,i,u,c,f,d,p,m,g,b=ut(l[1]),k=[];for(let w=0;w<b.length;w+=1)k[w]=F1(I1(l,b,w));return{c(){s=r("div"),e=r("div"),n=r("h3"),n.textContent="Select Route Template",a=h(),i=r("div");for(let w=0;w<k.length;w+=1)k[w].c();u=h(),c=r("div"),f=r("button"),f.textContent="Close",d=h(),p=r("button"),o(n,"class","font-bold text-lg mb-4"),o(i,"class","grid grid-cols-1 md:grid-cols-2 gap-4"),o(f,"type","button"),o(f,"class","btn btn-sm"),o(c,"class","modal-action"),o(e,"class","modal-box max-w-4xl"),o(p,"type","button"),o(p,"class","modal-backdrop"),o(p,"aria-label","Close modal"),o(s,"class","modal modal-open")},m(w,C){L(w,s,C),t(s,e),t(e,n),t(e,a),t(e,i);for(let E=0;E<k.length;E+=1)k[E]&&k[E].m(i,null);t(e,u),t(e,c),t(c,f),t(s,d),t(s,p),m||(g=[V(f,"click",l[4]),V(p,"click",l[5])],m=!0)},p(w,C){if(C&6){b=ut(w[1]);let E;for(E=0;E<b.length;E+=1){const y=I1(w,b,E);k[E]?k[E].p(y,C):(k[E]=F1(y),k[E].c(),k[E].m(i,null))}for(;E<k.length;E+=1)k[E].d(1);k.length=b.length}},d(w){w&&H(s),Gt(k,w),m=!1,vt(g)}}}function F1(l){let s,e,n,a,i,u,c,f,d,p,m;function g(){return l[3](l[7])}return{c(){s=r("button"),e=r("div"),n=r("h4"),n.textContent=\`\${l[7].name}\`,a=h(),i=r("p"),i.textContent=\`\${l[7].description}\`,u=h(),c=r("div"),f=r("div"),f.textContent=\`\${JSON.stringify(l[7].template,null,2)}\`,d=h(),o(n,"class","card-title text-base"),o(i,"class","text-sm text-gray-600"),o(f,"class","text-xs font-mono bg-base-100 p-2 rounded max-h-32 overflow-auto"),o(c,"class","mt-2"),o(e,"class","card-body"),o(s,"type","button"),o(s,"class","card card-compact bg-base-200 hover:bg-base-300 cursor-pointer text-left")},m(b,k){L(b,s,k),t(s,e),t(e,n),t(e,a),t(e,i),t(e,u),t(e,c),t(c,f),t(s,d),p||(m=V(s,"click",g),p=!0)},p(b,k){l=b},d(b){b&&H(s),p=!1,m()}}}function Ch(l){let s,e=l[0]&&A1(l);return{c(){e&&e.c(),s=Ul()},m(n,a){e&&e.m(n,a),L(n,s,a)},p(n,[a]){n[0]?e?e.p(n,a):(e=A1(n),e.c(),e.m(s.parentNode,s)):e&&(e.d(1),e=null)},i:ot,o:ot,d(n){n&&H(s),e&&e.d(n)}}}function Eh(l,s,e){let{showTemplates:n=!1}=s;const a=oa(),i=[{name:"Simple Proxy",description:"Basic reverse proxy to a single upstream",template:{path:"/api",upstreams:[{target:"https://api.example.com",weight:100,priority:1}]}},{name:"Load Balanced",description:"Multiple upstreams with load balancing",template:{path:"/api",upstreams:[{target:"https://api1.example.com",weight:100,priority:1},{target:"https://api2.example.com",weight:100,priority:1}]}},{name:"Failover Setup",description:"Primary and backup upstreams with failover",template:{path:"/api",upstreams:[{target:"https://primary.example.com",weight:200,priority:1},{target:"https://backup.example.com",weight:100,priority:2}],failover:{enabled:!0,retryableStatusCodes:[500,502,503,504]}}},{name:"Anthropic to Gemini",description:"Convert Anthropic API to Google Gemini format",template:{path:"/v1/messages",transformer:"anthropic-to-gemini",upstreams:[{target:"https://generativelanguage.googleapis.com",weight:100,priority:1}]}},{name:"Anthropic to OpenAI",description:"Convert Anthropic API to OpenAI format",template:{path:"/v1/messages",transformer:"anthropic-to-openai",upstreams:[{target:"https://api.openai.com",weight:100,priority:1}]}},{name:"Health Checked API",description:"API with health checks enabled",template:{path:"/api",upstreams:[{target:"https://api.example.com",weight:100,priority:1}],healthCheck:{enabled:!0,interval:3e4,timeout:5e3,path:"/health"}}},{name:"Path Rewrite",description:"Route with path rewriting",template:{path:"/api/v2",upstreams:[{target:"https://api.example.com",weight:100,priority:1}],pathRewrite:{"^/api/v2":"/v1"}}}];function u(p){a("select",p.template),e(0,n=!1)}const c=p=>u(p),f=()=>e(0,n=!1),d=()=>e(0,n=!1);return l.$$set=p=>{"showTemplates"in p&&e(0,n=p.showTemplates)},[n,i,u,c,f,d]}class Th extends Nt{constructor(s){super(),Ut(this,s,Eh,Ch,Vt,{showTemplates:0})}}function z1(l,s,e){const n=l.slice();return n[16]=s[e],n}function Sh(l){let s,e,n=l[7]("plugin.none")+"",a,i,u,c,f,d=ut(l[6]),p=[];for(let g=0;g<d.length;g+=1)p[g]=O1(z1(l,d,g));let m=l[0]&&N1(l);return{c(){s=r("select"),e=r("option"),a=_(n);for(let g=0;g<p.length;g+=1)p[g].c();i=h(),m&&m.c(),u=Ul(),e.__value=null,Y(e,e.__value),o(s,"id","plugin-select"),o(s,"class","select select-bordered"),l[0]===void 0&&pl(()=>l[11].call(s))},m(g,b){L(g,s,b),t(s,e),t(e,a);for(let k=0;k<p.length;k+=1)p[k]&&p[k].m(s,null);kt(s,l[0],!0),L(g,i,b),m&&m.m(g,b),L(g,u,b),c||(f=[V(s,"change",l[11]),V(s,"change",l[8])],c=!0)},p(g,b){if(b&128&&n!==(n=g[7]("plugin.none")+"")&&v(a,n),b&64){d=ut(g[6]);let k;for(k=0;k<d.length;k+=1){const w=z1(g,d,k);p[k]?p[k].p(w,b):(p[k]=O1(w),p[k].c(),p[k].m(s,null))}for(;k<p.length;k+=1)p[k].d(1);p.length=d.length}b&65&&kt(s,g[0]),g[0]?m?m.p(g,b):(m=N1(g),m.c(),m.m(u.parentNode,u)):m&&(m.d(1),m=null)},d(g){g&&(H(s),H(i),H(u)),Gt(p,g),m&&m.d(g),c=!1,vt(f)}}}function Mh(l){let s,e,n,a,i,u=l[7]("routeEditor.noPluginsAvailable")+"",c;return{c(){s=r("div"),e=re("svg"),n=re("path"),a=h(),i=r("span"),c=_(u),o(n,"stroke-linecap","round"),o(n,"stroke-linejoin","round"),o(n,"stroke-width","2"),o(n,"d","M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"),o(e,"xmlns","http://www.w3.org/2000/svg"),o(e,"fill","none"),o(e,"viewBox","0 0 24 24"),o(e,"class","stroke-current shrink-0 w-6 h-6"),o(s,"class","alert alert-info")},m(f,d){L(f,s,d),t(s,e),t(e,n),t(s,a),t(s,i),t(i,c)},p(f,d){d&128&&u!==(u=f[7]("routeEditor.noPluginsAvailable")+"")&&v(c,u)},d(f){f&&H(s)}}}function O1(l){let s,e=l[16].name+"",n,a;return{c(){s=r("option"),n=_(e),s.__value=a=l[16].id,Y(s,s.__value)},m(i,u){L(i,s,u),t(s,n)},p(i,u){u&64&&e!==(e=i[16].name+"")&&v(n,e),u&64&&a!==(a=i[16].id)&&(s.__value=a,Y(s,s.__value))},d(i){i&&H(s)}}}function N1(l){let s,e,n=l[6].find(l[12])?.description+"",a;return{c(){s=r("div"),e=r("span"),a=_(n),o(e,"class","label-text-alt text-gray-500"),o(s,"class","label")},m(i,u){L(i,s,u),t(s,e),t(e,a)},p(i,u){u&65&&n!==(n=i[6].find(i[12])?.description+"")&&v(a,n)},d(i){i&&H(s)}}}function U1(l){let s,e,n=l[2]?"Hide":"Show",a,i,u,c,f,d,p=l[2]&&V1(l);return{c(){s=r("div"),e=r("button"),a=_(n),i=_(" Preview"),u=h(),p&&p.c(),c=Ul(),o(e,"type","button"),o(e,"class","btn btn-xs btn-outline"),o(s,"class","flex items-center gap-2")},m(m,g){L(m,s,g),t(s,e),t(e,a),t(e,i),L(m,u,g),p&&p.m(m,g),L(m,c,g),f||(d=V(e,"click",l[13]),f=!0)},p(m,g){g&4&&n!==(n=m[2]?"Hide":"Show")&&v(a,n),m[2]?p?p.p(m,g):(p=V1(m),p.c(),p.m(c.parentNode,c)):p&&(p.d(1),p=null)},d(m){m&&(H(s),H(u),H(c)),p&&p.d(m),f=!1,d()}}}function V1(l){let s,e,n,a=l[7]("plugin.testPlugin")+"",i,u,c,f,d,p,m=l[7]("plugin.input")+"",g,b,k,w,C,E,y,T,M=l[7]("plugin.output")+"",R,j,P,I,q,D,A,N,Z,Q,x=l[7]("plugin.testPlugin")+"",z,K,S,B,U,F=(l[4]||l[5])&&J1(l),J=l[5]&&W1(l);return{c(){s=r("div"),e=r("div"),n=r("h4"),i=_(a),u=h(),c=r("div"),f=r("div"),d=r("label"),p=r("span"),g=_(m),b=h(),k=r("textarea"),C=h(),E=r("div"),y=r("label"),T=r("span"),R=_(M),j=h(),P=r("textarea"),q=h(),D=r("div"),A=r("button"),N=re("svg"),Z=re("path"),Q=h(),z=_(x),K=h(),F&&F.c(),S=h(),J&&J.c(),o(n,"class","font-semibold text-sm"),o(p,"class","label-text text-xs"),o(d,"class","label py-1"),o(d,"for","plugin-input"),o(k,"id","plugin-input"),o(k,"class","textarea textarea-bordered textarea-sm font-mono text-xs w-full"),o(k,"placeholder",w=l[7]("plugin.inputPlaceholder")),o(k,"rows","10"),o(T,"class","label-text text-xs"),o(y,"class","label py-1"),o(y,"for","plugin-output"),o(P,"id","plugin-output"),o(P,"class","textarea textarea-bordered textarea-sm font-mono text-xs w-full bg-base-100"),P.value=l[4],P.readOnly=!0,o(P,"rows","10"),o(P,"placeholder",I=l[7]("plugin.outputPlaceholder")),o(c,"class","grid grid-cols-2 gap-4"),o(Z,"stroke-linecap","round"),o(Z,"stroke-linejoin","round"),o(Z,"stroke-width","2"),o(Z,"d","M14 5l7 7m0 0l-7 7m7-7H3"),o(N,"xmlns","http://www.w3.org/2000/svg"),o(N,"class","h-3 w-3"),o(N,"fill","none"),o(N,"viewBox","0 0 24 24"),o(N,"stroke","currentColor"),o(A,"type","button"),o(A,"class","btn btn-xs btn-primary"),o(D,"class","flex gap-2"),o(e,"class","card-body p-4 space-y-3"),o(s,"class","card bg-base-200")},m(ie,ue){L(ie,s,ue),t(s,e),t(e,n),t(n,i),t(e,u),t(e,c),t(c,f),t(f,d),t(d,p),t(p,g),t(f,b),t(f,k),Y(k,l[3]),t(c,C),t(c,E),t(E,y),t(y,T),t(T,R),t(E,j),t(E,P),t(e,q),t(e,D),t(D,A),t(A,N),t(N,Z),t(A,Q),t(A,z),t(D,K),F&&F.m(D,null),t(e,S),J&&J.m(e,null),B||(U=[V(k,"input",l[14]),V(A,"click",l[9])],B=!0)},p(ie,ue){ue&128&&a!==(a=ie[7]("plugin.testPlugin")+"")&&v(i,a),ue&128&&m!==(m=ie[7]("plugin.input")+"")&&v(g,m),ue&128&&w!==(w=ie[7]("plugin.inputPlaceholder"))&&o(k,"placeholder",w),ue&8&&Y(k,ie[3]),ue&128&&M!==(M=ie[7]("plugin.output")+"")&&v(R,M),ue&16&&(P.value=ie[4]),ue&128&&I!==(I=ie[7]("plugin.outputPlaceholder"))&&o(P,"placeholder",I),ue&128&&x!==(x=ie[7]("plugin.testPlugin")+"")&&v(z,x),ie[4]||ie[5]?F?F.p(ie,ue):(F=J1(ie),F.c(),F.m(D,null)):F&&(F.d(1),F=null),ie[5]?J?J.p(ie,ue):(J=W1(ie),J.c(),J.m(e,null)):J&&(J.d(1),J=null)},d(ie){ie&&H(s),F&&F.d(),J&&J.d(),B=!1,vt(U)}}}function J1(l){let s,e=l[7]("common.reset")+"",n,a,i;return{c(){s=r("button"),n=_(e),o(s,"type","button"),o(s,"class","btn btn-xs btn-ghost")},m(u,c){L(u,s,c),t(s,n),a||(i=V(s,"click",l[10]),a=!0)},p(u,c){c&128&&e!==(e=u[7]("common.reset")+"")&&v(n,e)},d(u){u&&H(s),a=!1,i()}}}function W1(l){let s,e,n,a,i,u=l[7]("common.error")+"",c,f,d;return{c(){s=r("div"),e=re("svg"),n=re("path"),a=h(),i=r("span"),c=_(u),f=_(": "),d=_(l[5]),o(n,"stroke-linecap","round"),o(n,"stroke-linejoin","round"),o(n,"stroke-width","2"),o(n,"d","M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z"),o(e,"xmlns","http://www.w3.org/2000/svg"),o(e,"class","stroke-current shrink-0 h-4 w-4"),o(e,"fill","none"),o(e,"viewBox","0 0 24 24"),o(i,"class","text-xs"),o(s,"class","alert alert-error py-2")},m(p,m){L(p,s,m),t(s,e),t(e,n),t(s,a),t(s,i),t(i,c),t(i,f),t(i,d)},p(p,m){m&128&&u!==(u=p[7]("common.error")+"")&&v(c,u),m&32&&v(d,p[5])},d(p){p&&H(s)}}}function Rh(l){let s,e,n,a,i,u,c;function f(g,b){return g[6].length===0?Mh:Sh}let d=f(l),p=d(l),m=l[0]&&U1(l);return{c(){s=r("div"),e=r("div"),n=r("label"),a=r("span"),i=_(l[1]),u=h(),p.c(),c=h(),m&&m.c(),o(a,"class","label-text font-semibold"),o(n,"class","label"),o(n,"for","plugin-select"),o(e,"class","form-control"),o(s,"class","space-y-3")},m(g,b){L(g,s,b),t(s,e),t(e,n),t(n,a),t(a,i),t(e,u),p.m(e,null),t(s,c),m&&m.m(s,null)},p(g,[b]){b&2&&v(i,g[1]),d===(d=f(g))&&p?p.p(g,b):(p.d(1),p=d(g),p&&(p.c(),p.m(e,null))),g[0]?m?m.p(g,b):(m=U1(g),m.c(),m.m(s,null)):m&&(m.d(1),m=null)},i:ot,o:ot,d(g){g&&H(s),p.d(),m&&m.d()}}}function t0(l){return l.split("-").map(s=>s.charAt(0).toUpperCase()+s.slice(1)).join(" \u2192 ")}function qh(l){const s=l.split("-to-");if(s.length===2){const[e,n]=s;return\`Convert \${e.charAt(0).toUpperCase()+e.slice(1)} API format to \${n.charAt(0).toUpperCase()+n.slice(1)} format\`}return\`\${t0(l)} plugin\`}function Hh(l,s,e){let n;Dt(l,Rt,T=>e(7,n=T));let{plugin:a=null}=s,{label:i="Plugin"}=s;const u=oa();let c=!1,f=\`{
21254
+ "vendor-COcP1wx5.js": 'import{C as Te,L as Tn,D as Sn,B as wn}from"./vendor-charts-CBipcgT3.js";function P(){}function N(e,t){for(const n in t)e[n]=t[n];return e}function jt(e){return e()}function yt(){return Object.create(null)}function X(e){e.forEach(jt)}function at(e){return typeof e=="function"}function fe(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function Bn(e){return Object.keys(e).length===0}function st(e,...t){if(e==null){for(const r of t)r(void 0);return P}const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function ra(e){let t;return st(e,n=>t=n)(),t}function ia(e,t,n){e.$$.on_destroy.push(st(t,n))}function G(e){const t={};for(const n in e)n[0]!=="$"&&(t[n]=e[n]);return t}function aa(e,t){e.appendChild(t)}function An(e,t,n){e.insertBefore(t,n||null)}function kt(e){e.parentNode&&e.parentNode.removeChild(e)}function sa(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function On(e){return document.createElement(e)}function oa(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function Vt(e){return document.createTextNode(e)}function ua(){return Vt(" ")}function ha(){return Vt("")}function Pn(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function Nn(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}const In=["width","height"];function Mn(e,t){const n=Object.getOwnPropertyDescriptors(e.__proto__);for(const r in t)t[r]==null?e.removeAttribute(r):r==="style"?e.style.cssText=t[r]:r==="__value"?e.value=e[r]=t[r]:n[r]&&n[r].set&&In.indexOf(r)===-1?e[r]=t[r]:Nn(e,r,t[r])}function fa(e){let t;return{p(...n){t=n,t.forEach(r=>e.push(r))},r(){t.forEach(n=>e.splice(e.indexOf(n),1))}}}function la(e){return e===""?null:+e}function Ln(e){return Array.from(e.childNodes)}function ca(e,t){t=""+t,e.data!==t&&(e.data=t)}function da(e,t){e.value=t??""}function ma(e,t,n,r){n==null?e.style.removeProperty(t):e.style.setProperty(t,n,"")}function ga(e,t,n){for(let r=0;r<e.options.length;r+=1){const i=e.options[r];if(i.__value===t){i.selected=!0;return}}(!n||t!==void 0)&&(e.selectedIndex=-1)}function ba(e){const t=e.querySelector(":checked");return t&&t.__value}function pa(e,t,n){e.classList.toggle(t,!!n)}function Cn(e,t,{bubbles:n=!1,cancelable:r=!1}={}){return new CustomEvent(e,{detail:t,bubbles:n,cancelable:r})}let Q;function se(e){Q=e}function Se(){if(!Q)throw new Error("Function called outside component initialization");return Q}function Xt(e){Se().$$.on_mount.push(e)}function Rn(e){Se().$$.after_update.push(e)}function Yt(e){Se().$$.on_destroy.push(e)}function _a(){const e=Se();return(t,n,{cancelable:r=!1}={})=>{const i=e.$$.callbacks[t];if(i){const a=Cn(t,n,{cancelable:r});return i.slice().forEach(o=>{o.call(e,a)}),!a.defaultPrevented}return!0}}function Un(e,t){const n=e.$$.callbacks[t.type];n&&n.slice().forEach(r=>r.call(this,t))}const z=[],R=[];let q=[];const Ze=[],Zt=Promise.resolve();let We=!1;function Wt(){We||(We=!0,Zt.then(qt))}function zt(){return Wt(),Zt}function ze(e){q.push(e)}function ot(e){Ze.push(e)}const Re=new Set;let Y=0;function qt(){if(Y!==0)return;const e=Q;do{try{for(;Y<z.length;){const t=z[Y];Y++,se(t),Fn(t.$$)}}catch(t){throw z.length=0,Y=0,t}for(se(null),z.length=0,Y=0;R.length;)R.pop()();for(let t=0;t<q.length;t+=1){const n=q[t];Re.has(n)||(Re.add(n),n())}q.length=0}while(z.length);for(;Ze.length;)Ze.pop()();We=!1,Re.clear(),se(e)}function Fn(e){if(e.fragment!==null){e.update(),X(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(ze)}}function Dn(e){const t=[],n=[];q.forEach(r=>e.indexOf(r)===-1?t.push(r):n.push(r)),n.forEach(r=>r()),q=t}const ye=new Set;let V;function ya(){V={r:0,c:[],p:V}}function xa(){V.r||X(V.c),V=V.p}function le(e,t){e&&e.i&&(ye.delete(e),e.i(t))}function we(e,t,n,r){if(e&&e.o){if(ye.has(e))return;ye.add(e),V.c.push(()=>{ye.delete(e),r&&(n&&e.d(1),r())}),e.o(t)}else r&&r()}function Ea(e){return e?.length!==void 0?e:Array.from(e)}function va(e,t){e.d(1),t.delete(e.key)}function Ha(e,t){we(e,1,1,()=>{t.delete(e.key)})}function Ta(e,t,n,r,i,a,o,s,u,h,f,c){let l=e.length,_=a.length,y=l;const v={};for(;y--;)v[e[y].key]=y;const B=[],d=new Map,m=new Map,g=[];for(y=_;y--;){const T=c(i,a,y),M=n(T);let L=o.get(M);L?g.push(()=>L.p(T,t)):(L=h(M,T),L.c()),d.set(M,B[y]=L),M in v&&m.set(M,Math.abs(y-v[M]))}const S=new Set,E=new Set;function I(T){le(T,1),T.m(s,f),o.set(T.key,T),f=T.first,_--}for(;l&&_;){const T=B[_-1],M=e[l-1],L=T.key,me=M.key;T===M?(f=T.first,l--,_--):d.has(me)?!o.has(L)||S.has(L)?I(T):E.has(me)?l--:m.get(L)>m.get(me)?(E.add(L),I(T)):(S.add(me),l--):(u(M,o),l--)}for(;l--;){const T=e[l];d.has(T.key)||u(T,o)}for(;_;)I(B[_-1]);return X(g),B}function ut(e,t){const n={},r={},i={$$scope:1};let a=e.length;for(;a--;){const o=e[a],s=t[a];if(s){for(const u in o)u in s||(r[u]=1);for(const u in s)i[u]||(n[u]=s[u],i[u]=1);e[a]=s}else for(const u in o)i[u]=1}for(const o in r)o in n||(n[o]=void 0);return n}function ht(e){return typeof e=="object"&&e!==null?e:{}}function ft(e,t,n){const r=e.$$.props[t];r!==void 0&&(e.$$.bound[r]=n,n(e.$$.ctx[r]))}function lt(e){e&&e.c()}function Be(e,t,n){const{fragment:r,after_update:i}=e.$$;r&&r.m(t,n),ze(()=>{const a=e.$$.on_mount.map(jt).filter(at);e.$$.on_destroy?e.$$.on_destroy.push(...a):X(a),e.$$.on_mount=[]}),i.forEach(ze)}function Ae(e,t){const n=e.$$;n.fragment!==null&&(Dn(n.after_update),X(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function Gn(e,t){e.$$.dirty[0]===-1&&(z.push(e),Wt(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function Oe(e,t,n,r,i,a,o=null,s=[-1]){const u=Q;se(e);const h=e.$$={fragment:null,ctx:[],props:a,update:P,not_equal:i,bound:yt(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(u?u.$$.context:[])),callbacks:yt(),dirty:s,skip_bound:!1,root:t.target||u.$$.root};o&&o(h.root);let f=!1;if(h.ctx=n?n(e,t.props||{},(c,l,..._)=>{const y=_.length?_[0]:l;return h.ctx&&i(h.ctx[c],h.ctx[c]=y)&&(!h.skip_bound&&h.bound[c]&&h.bound[c](y),f&&Gn(e,c)),l}):[],h.update(),f=!0,X(h.before_update),h.fragment=r?r(h.ctx):!1,t.target){if(t.hydrate){const c=Ln(t.target);h.fragment&&h.fragment.l(c),c.forEach(kt)}else h.fragment&&h.fragment.c();t.intro&&le(e.$$.fragment),Be(e,t.target,t.anchor),qt()}se(u)}class Pe{$$=void 0;$$set=void 0;$destroy(){Ae(this,1),this.$destroy=P}$on(t,n){if(!at(n))return P;const r=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return r.push(n),()=>{const i=r.indexOf(n);i!==-1&&r.splice(i,1)}}$set(t){this.$$set&&!Bn(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const jn="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(jn);const Z=[];function Qt(e,t){return{subscribe:Ne(e,t).subscribe}}function Ne(e,t=P){let n;const r=new Set;function i(s){if(fe(e,s)&&(e=s,n)){const u=!Z.length;for(const h of r)h[1](),Z.push(h,e);if(u){for(let h=0;h<Z.length;h+=2)Z[h][0](Z[h+1]);Z.length=0}}}function a(s){i(s(e))}function o(s,u=P){const h=[s,u];return r.add(h),r.size===1&&(n=t(i,a)||P),s(e),()=>{r.delete(h),r.size===0&&n&&(n(),n=null)}}return{set:i,update:a,subscribe:o}}function j(e,t,n){const r=!Array.isArray(e),i=r?[e]:e;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const a=t.length<2;return Qt(n,(o,s)=>{let u=!1;const h=[];let f=0,c=P;const l=()=>{if(f)return;c();const y=t(r?h[0]:h,o,s);a?o(y):c=at(y)?y:P},_=i.map((y,v)=>st(y,B=>{h[v]=B,f&=~(1<<v),u&&l()},()=>{f|=1<<v}));return u=!0,l(),function(){X(_),c(),u=!1}})}function xt(){const e=window.location.href.indexOf("#/");let t=e>-1?window.location.href.substr(e+1):"/";const n=t.indexOf("?");let r="";return n>-1&&(r=t.substr(n+1),t=t.substr(0,n)),{location:t,querystring:r}}const Jt=Qt(null,function(t){t(xt());const n=()=>{t(xt())};return window.addEventListener("hashchange",n,!1),function(){window.removeEventListener("hashchange",n,!1)}}),Sa=j(Jt,e=>e.location);j(Jt,e=>e.querystring);async function wa(e){if(!e||e.length<1||e.charAt(0)!="/"&&e.indexOf("#/")!==0)throw Error("Invalid parameter location");await zt(),history.replaceState({...history.state,__svelte_spa_router_scrollX:window.scrollX,__svelte_spa_router_scrollY:window.scrollY},void 0),window.location.hash=(e.charAt(0)=="#"?"":"#")+e}async function Ba(){await zt(),window.history.back()}function kn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ue,Et;function Vn(){if(Et)return Ue;Et=1;var e=function(m){return t(m)&&!n(m)};function t(d){return!!d&&typeof d=="object"}function n(d){var m=Object.prototype.toString.call(d);return m==="[object RegExp]"||m==="[object Date]"||a(d)}var r=typeof Symbol=="function"&&Symbol.for,i=r?Symbol.for("react.element"):60103;function a(d){return d.$$typeof===i}function o(d){return Array.isArray(d)?[]:{}}function s(d,m){return m.clone!==!1&&m.isMergeableObject(d)?v(o(d),d,m):d}function u(d,m,g){return d.concat(m).map(function(S){return s(S,g)})}function h(d,m){if(!m.customMerge)return v;var g=m.customMerge(d);return typeof g=="function"?g:v}function f(d){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(d).filter(function(m){return Object.propertyIsEnumerable.call(d,m)}):[]}function c(d){return Object.keys(d).concat(f(d))}function l(d,m){try{return m in d}catch{return!1}}function _(d,m){return l(d,m)&&!(Object.hasOwnProperty.call(d,m)&&Object.propertyIsEnumerable.call(d,m))}function y(d,m,g){var S={};return g.isMergeableObject(d)&&c(d).forEach(function(E){S[E]=s(d[E],g)}),c(m).forEach(function(E){_(d,E)||(l(d,E)&&g.isMergeableObject(m[E])?S[E]=h(E,g)(d[E],m[E],g):S[E]=s(m[E],g))}),S}function v(d,m,g){g=g||{},g.arrayMerge=g.arrayMerge||u,g.isMergeableObject=g.isMergeableObject||e,g.cloneUnlessOtherwiseSpecified=s;var S=Array.isArray(m),E=Array.isArray(d),I=S===E;return I?S?g.arrayMerge(d,m,g):y(d,m,g):s(m,g)}v.all=function(m,g){if(!Array.isArray(m))throw new Error("first argument should be an array");return m.reduce(function(S,E){return v(S,E,g)},{})};var B=v;return Ue=B,Ue}var Xn=Vn();const Yn=kn(Xn);var qe=function(e,t){return qe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},qe(e,t)};function Ie(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");qe(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var x=function(){return x=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},x.apply(this,arguments)};function Zn(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function Fe(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}function De(e,t){var n=t&&t.cache?t.cache:Kn,r=t&&t.serializer?t.serializer:Jn,i=t&&t.strategy?t.strategy:qn;return i(e,{cache:n,serializer:r})}function Wn(e){return e==null||typeof e=="number"||typeof e=="boolean"}function zn(e,t,n,r){var i=Wn(r)?r:n(r),a=t.get(i);return typeof a>"u"&&(a=e.call(this,r),t.set(i,a)),a}function $t(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),a=t.get(i);return typeof a>"u"&&(a=e.apply(this,r),t.set(i,a)),a}function Kt(e,t,n,r,i){return n.bind(t,e,r,i)}function qn(e,t){var n=e.length===1?zn:$t;return Kt(e,this,n,t.cache.create(),t.serializer)}function Qn(e,t){return Kt(e,this,$t,t.cache.create(),t.serializer)}var Jn=function(){return JSON.stringify(arguments)},$n=(function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(t){return this.cache[t]},e.prototype.set=function(t,n){this.cache[t]=n},e})(),Kn={create:function(){return new $n}},Ge={variadic:Qn},b;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(b||(b={}));var H;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(H||(H={}));var J;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(J||(J={}));function vt(e){return e.type===H.literal}function er(e){return e.type===H.argument}function en(e){return e.type===H.number}function tn(e){return e.type===H.date}function nn(e){return e.type===H.time}function rn(e){return e.type===H.select}function an(e){return e.type===H.plural}function tr(e){return e.type===H.pound}function sn(e){return e.type===H.tag}function on(e){return!!(e&&typeof e=="object"&&e.type===J.number)}function Qe(e){return!!(e&&typeof e=="object"&&e.type===J.dateTime)}var un=/[ \\xA0\\u1680\\u2000-\\u200A\\u202F\\u205F\\u3000]/,nr=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^\']*\'[^\']*\')*[^\']*$)/g;function rr(e){var t={};return e.replace(nr,function(n){var r=n.length;switch(n[0]){case"G":t.era=r===4?"long":r===5?"narrow":"short";break;case"y":t.year=r===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=r===4?"long":r===5?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][r-1];break;case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=r<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var ir=/[\\t-\\r \\x85\\u200E\\u200F\\u2028\\u2029]/i;function ar(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(ir).filter(function(l){return l.length>0}),n=[],r=0,i=t;r<i.length;r++){var a=i[r],o=a.split("/");if(o.length===0)throw new Error("Invalid number skeleton");for(var s=o[0],u=o.slice(1),h=0,f=u;h<f.length;h++){var c=f[h];if(c.length===0)throw new Error("Invalid number skeleton")}n.push({stem:s,options:u})}return n}function sr(e){return e.replace(/^(.*?)-/,"")}var Ht=/^\\.(?:(0+)(\\*)?|(#+)|(0+)(#+))$/g,hn=/^(@+)?(\\+|#+)?[rs]?$/g,or=/(\\*)(0+)|(#+)(0+)|(0+)/g,fn=/^(0+)$/;function Tt(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(hn,function(n,r,i){return typeof i!="string"?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):i==="+"?t.minimumSignificantDigits=r.length:r[0]==="#"?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+(typeof i=="string"?i.length:0)),""}),t}function ln(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function ur(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if(n==="+!"?(t.signDisplay="always",e=e.slice(2)):n==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!fn.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function St(e){var t={},n=ln(e);return n||t}function hr(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=sr(i.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=x(x(x({},t),{notation:"scientific"}),i.options.reduce(function(u,h){return x(x({},u),St(h))},{}));continue;case"engineering":t=x(x(x({},t),{notation:"engineering"}),i.options.reduce(function(u,h){return x(x({},u),St(h))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(or,function(u,h,f,c,l,_){if(h)t.minimumIntegerDigits=f.length;else{if(c&&l)throw new Error("We currently do not support maximum integer digits");if(_)throw new Error("We currently do not support exact integer digits")}return""});continue}if(fn.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(Ht.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Ht,function(u,h,f,c,l,_){return f==="*"?t.minimumFractionDigits=h.length:c&&c[0]==="#"?t.maximumFractionDigits=c.length:l&&_?(t.minimumFractionDigits=l.length,t.maximumFractionDigits=l.length+_.length):(t.minimumFractionDigits=h.length,t.maximumFractionDigits=h.length),""});var a=i.options[0];a==="w"?t=x(x({},t),{trailingZeroDisplay:"stripIfInteger"}):a&&(t=x(x({},t),Tt(a)));continue}if(hn.test(i.stem)){t=x(x({},t),Tt(i.stem));continue}var o=ln(i.stem);o&&(t=x(x({},t),o));var s=ur(i.stem);s&&(t=x(x({},t),s))}return t}var ge={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function fr(e,t){for(var n="",r=0;r<e.length;r++){var i=e.charAt(r);if(i==="j"){for(var a=0;r+1<e.length&&e.charAt(r+1)===i;)a++,r++;var o=1+(a&1),s=a<2?1:3+(a>>1),u="a",h=lr(t);for((h=="H"||h=="k")&&(s=0);s-- >0;)n+=u;for(;o-- >0;)n=h+n}else i==="J"?n+="H":n+=i}return n}function lr(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n=e.language,r;n!=="root"&&(r=e.maximize().region);var i=ge[r||""]||ge[n||""]||ge["".concat(n,"-001")]||ge["001"];return i[0]}var je,cr=new RegExp("^".concat(un.source,"*")),dr=new RegExp("".concat(un.source,"*$"));function p(e,t){return{start:e,end:t}}var mr=!!String.prototype.startsWith&&"_a".startsWith("a",1),gr=!!String.fromCodePoint,br=!!Object.fromEntries,pr=!!String.prototype.codePointAt,_r=!!String.prototype.trimStart,yr=!!String.prototype.trimEnd,xr=!!Number.isSafeInteger,Er=xr?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Je=!0;try{var vr=dn("([^\\\\p{White_Space}\\\\p{Pattern_Syntax}]*)","yu");Je=((je=vr.exec("a"))===null||je===void 0?void 0:je[0])==="a"}catch{Je=!1}var wt=mr?function(t,n,r){return t.startsWith(n,r)}:function(t,n,r){return t.slice(r,r+n.length)===n},$e=gr?String.fromCodePoint:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r="",i=t.length,a=0,o;i>a;){if(o=t[a++],o>1114111)throw RangeError(o+" is not a valid code point");r+=o<65536?String.fromCharCode(o):String.fromCharCode(((o-=65536)>>10)+55296,o%1024+56320)}return r},Bt=br?Object.fromEntries:function(t){for(var n={},r=0,i=t;r<i.length;r++){var a=i[r],o=a[0],s=a[1];n[o]=s}return n},cn=pr?function(t,n){return t.codePointAt(n)}:function(t,n){var r=t.length;if(!(n<0||n>=r)){var i=t.charCodeAt(n),a;return i<55296||i>56319||n+1===r||(a=t.charCodeAt(n+1))<56320||a>57343?i:(i-55296<<10)+(a-56320)+65536}},Hr=_r?function(t){return t.trimStart()}:function(t){return t.replace(cr,"")},Tr=yr?function(t){return t.trimEnd()}:function(t){return t.replace(dr,"")};function dn(e,t){return new RegExp(e,t)}var Ke;if(Je){var At=dn("([^\\\\p{White_Space}\\\\p{Pattern_Syntax}]*)","yu");Ke=function(t,n){var r;At.lastIndex=n;var i=At.exec(t);return(r=i[1])!==null&&r!==void 0?r:""}}else Ke=function(t,n){for(var r=[];;){var i=cn(t,n);if(i===void 0||mn(i)||Ar(i))break;r.push(i),n+=i>=65536?2:1}return $e.apply(void 0,r)};var Sr=(function(){function e(t,n){n===void 0&&(n={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!n.ignoreTag,this.locale=n.locale,this.requiresOtherClause=!!n.requiresOtherClause,this.shouldParseSkeletons=!!n.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,n,r){for(var i=[];!this.isEOF();){var a=this.char();if(a===123){var o=this.parseArgument(t,r);if(o.err)return o;i.push(o.val)}else{if(a===125&&t>0)break;if(a===35&&(n==="plural"||n==="selectordinal")){var s=this.clonePosition();this.bump(),i.push({type:H.pound,location:p(s,this.clonePosition())})}else if(a===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(b.UNMATCHED_CLOSING_TAG,p(this.clonePosition(),this.clonePosition()))}else if(a===60&&!this.ignoreTag&&et(this.peek()||0)){var o=this.parseTag(t,n);if(o.err)return o;i.push(o.val)}else{var o=this.parseLiteral(t,n);if(o.err)return o;i.push(o.val)}}}return{val:i,err:null}},e.prototype.parseTag=function(t,n){var r=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:H.literal,value:"<".concat(i,"/>"),location:p(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var a=this.parseMessage(t+1,n,!0);if(a.err)return a;var o=a.val,s=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!et(this.char()))return this.error(b.INVALID_TAG,p(s,this.clonePosition()));var u=this.clonePosition(),h=this.parseTagName();return i!==h?this.error(b.UNMATCHED_CLOSING_TAG,p(u,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:H.tag,value:i,children:o,location:p(r,this.clonePosition())},err:null}:this.error(b.INVALID_TAG,p(s,this.clonePosition())))}else return this.error(b.UNCLOSED_TAG,p(r,this.clonePosition()))}else return this.error(b.INVALID_TAG,p(r,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&Br(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,n){for(var r=this.clonePosition(),i="";;){var a=this.tryParseQuote(n);if(a){i+=a;continue}var o=this.tryParseUnquoted(t,n);if(o){i+=o;continue}var s=this.tryParseLeftAngleBracket();if(s){i+=s;continue}break}var u=p(r,this.clonePosition());return{val:{type:H.literal,value:i,location:u},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!wr(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"\'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var n=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(r===39)if(this.peek()===39)n.push(39),this.bump();else{this.bump();break}else n.push(r);this.bump()}return $e.apply(void 0,n)},e.prototype.tryParseUnquoted=function(t,n){if(this.isEOF())return null;var r=this.char();return r===60||r===123||r===35&&(n==="plural"||n==="selectordinal")||r===125&&t>0?null:(this.bump(),$e(r))},e.prototype.parseArgument=function(t,n){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE,p(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(b.EMPTY_ARGUMENT,p(r,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(b.MALFORMED_ARGUMENT,p(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE,p(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:H.argument,value:i,location:p(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE,p(r,this.clonePosition())):this.parseArgumentOptions(t,n,i,r);default:return this.error(b.MALFORMED_ARGUMENT,p(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),r=Ke(this.message,n),i=n+r.length;this.bumpTo(i);var a=this.clonePosition(),o=p(t,a);return{value:r,location:o}},e.prototype.parseArgumentOptions=function(t,n,r,i){var a,o=this.clonePosition(),s=this.parseIdentifierIfPossible().value,u=this.clonePosition();switch(s){case"":return this.error(b.EXPECT_ARGUMENT_TYPE,p(o,u));case"number":case"date":case"time":{this.bumpSpace();var h=null;if(this.bumpIf(",")){this.bumpSpace();var f=this.clonePosition(),c=this.parseSimpleArgStyleIfPossible();if(c.err)return c;var l=Tr(c.val);if(l.length===0)return this.error(b.EXPECT_ARGUMENT_STYLE,p(this.clonePosition(),this.clonePosition()));var _=p(f,this.clonePosition());h={style:l,styleLocation:_}}var y=this.tryParseArgumentClose(i);if(y.err)return y;var v=p(i,this.clonePosition());if(h&&wt(h?.style,"::",0)){var B=Hr(h.style.slice(2));if(s==="number"){var c=this.parseNumberSkeletonFromString(B,h.styleLocation);return c.err?c:{val:{type:H.number,value:r,location:v,style:c.val},err:null}}else{if(B.length===0)return this.error(b.EXPECT_DATE_TIME_SKELETON,v);var d=B;this.locale&&(d=fr(B,this.locale));var l={type:J.dateTime,pattern:d,location:h.styleLocation,parsedOptions:this.shouldParseSkeletons?rr(d):{}},m=s==="date"?H.date:H.time;return{val:{type:m,value:r,location:v,style:l},err:null}}}return{val:{type:s==="number"?H.number:s==="date"?H.date:H.time,value:r,location:v,style:(a=h?.style)!==null&&a!==void 0?a:null},err:null}}case"plural":case"selectordinal":case"select":{var g=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS,p(g,x({},g)));this.bumpSpace();var S=this.parseIdentifierIfPossible(),E=0;if(s!=="select"&&S.value==="offset"){if(!this.bumpIf(":"))return this.error(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,p(this.clonePosition(),this.clonePosition()));this.bumpSpace();var c=this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,b.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(c.err)return c;this.bumpSpace(),S=this.parseIdentifierIfPossible(),E=c.val}var I=this.tryParsePluralOrSelectOptions(t,s,n,S);if(I.err)return I;var y=this.tryParseArgumentClose(i);if(y.err)return y;var T=p(i,this.clonePosition());return s==="select"?{val:{type:H.select,value:r,options:Bt(I.val),location:T},err:null}:{val:{type:H.plural,value:r,options:Bt(I.val),offset:E,pluralType:s==="plural"?"cardinal":"ordinal",location:T},err:null}}default:return this.error(b.INVALID_ARGUMENT_TYPE,p(o,u))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE,p(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,n=this.clonePosition();!this.isEOF();){var r=this.char();switch(r){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("\'"))return this.error(b.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,p(i,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(n.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(n.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,n){var r=[];try{r=ar(t)}catch{return this.error(b.INVALID_NUMBER_SKELETON,n)}return{val:{type:J.number,tokens:r,location:n,parsedOptions:this.shouldParseSkeletons?hr(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,n,r,i){for(var a,o=!1,s=[],u=new Set,h=i.value,f=i.location;;){if(h.length===0){var c=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var l=this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_SELECTOR,b.INVALID_PLURAL_ARGUMENT_SELECTOR);if(l.err)return l;f=p(c,this.clonePosition()),h=this.message.slice(c.offset,this.offset())}else break}if(u.has(h))return this.error(n==="select"?b.DUPLICATE_SELECT_ARGUMENT_SELECTOR:b.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,f);h==="other"&&(o=!0),this.bumpSpace();var _=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?b.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:b.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,p(this.clonePosition(),this.clonePosition()));var y=this.parseMessage(t+1,n,r);if(y.err)return y;var v=this.tryParseArgumentClose(_);if(v.err)return v;s.push([h,{value:y.val,location:p(_,this.clonePosition())}]),u.add(h),this.bumpSpace(),a=this.parseIdentifierIfPossible(),h=a.value,f=a.location}return s.length===0?this.error(n==="select"?b.EXPECT_SELECT_ARGUMENT_SELECTOR:b.EXPECT_PLURAL_ARGUMENT_SELECTOR,p(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(b.MISSING_OTHER_CLAUSE,p(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(t,n){var r=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var a=!1,o=0;!this.isEOF();){var s=this.char();if(s>=48&&s<=57)a=!0,o=o*10+(s-48),this.bump();else break}var u=p(i,this.clonePosition());return a?(o*=r,Er(o)?{val:o,err:null}:this.error(n,u)):this.error(t,u)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var n=cn(this.message,t);if(n===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return n},e.prototype.error=function(t,n){return{val:null,err:{kind:t,message:this.message,location:n}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(wt(this.message,t,this.offset())){for(var n=0;n<t.length;n++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var n=this.offset(),r=this.message.indexOf(t,n);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var n=this.offset();if(n===t)break;if(n>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&mn(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),n=this.offset(),r=this.message.charCodeAt(n+(t>=65536?2:1));return r??null},e})();function et(e){return e>=97&&e<=122||e>=65&&e<=90}function wr(e){return et(e)||e===47}function Br(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function mn(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function Ar(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function tt(e){e.forEach(function(t){if(delete t.location,rn(t)||an(t))for(var n in t.options)delete t.options[n].location,tt(t.options[n].value);else en(t)&&on(t.style)||(tn(t)||nn(t))&&Qe(t.style)?delete t.style.location:sn(t)&&tt(t.children)})}function Or(e,t){t===void 0&&(t={}),t=x({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new Sr(e,t).parse();if(n.err){var r=SyntaxError(b[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return t?.captureLocation||tt(n.val),n.val}var $;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})($||($={}));var Me=(function(e){Ie(t,e);function t(n,r,i){var a=e.call(this,n)||this;return a.code=r,a.originalMessage=i,a}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t})(Error),Ot=(function(e){Ie(t,e);function t(n,r,i,a){return e.call(this,\'Invalid values for "\'.concat(n,\'": "\').concat(r,\'". Options are "\').concat(Object.keys(i).join(\'", "\'),\'"\'),$.INVALID_VALUE,a)||this}return t})(Me),Pr=(function(e){Ie(t,e);function t(n,r,i){return e.call(this,\'Value for "\'.concat(n,\'" must be of type \').concat(r),$.INVALID_VALUE,i)||this}return t})(Me),Nr=(function(e){Ie(t,e);function t(n,r){return e.call(this,\'The intl string context variable "\'.concat(n,\'" was not provided to the string "\').concat(r,\'"\'),$.MISSING_VALUE,r)||this}return t})(Me),A;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(A||(A={}));function Ir(e){return e.length<2?e:e.reduce(function(t,n){var r=t[t.length-1];return!r||r.type!==A.literal||n.type!==A.literal?t.push(n):r.value+=n.value,t},[])}function Mr(e){return typeof e=="function"}function xe(e,t,n,r,i,a,o){if(e.length===1&&vt(e[0]))return[{type:A.literal,value:e[0].value}];for(var s=[],u=0,h=e;u<h.length;u++){var f=h[u];if(vt(f)){s.push({type:A.literal,value:f.value});continue}if(tr(f)){typeof a=="number"&&s.push({type:A.literal,value:n.getNumberFormat(t).format(a)});continue}var c=f.value;if(!(i&&c in i))throw new Nr(c,o);var l=i[c];if(er(f)){(!l||typeof l=="string"||typeof l=="number")&&(l=typeof l=="string"||typeof l=="number"?String(l):""),s.push({type:typeof l=="string"?A.literal:A.object,value:l});continue}if(tn(f)){var _=typeof f.style=="string"?r.date[f.style]:Qe(f.style)?f.style.parsedOptions:void 0;s.push({type:A.literal,value:n.getDateTimeFormat(t,_).format(l)});continue}if(nn(f)){var _=typeof f.style=="string"?r.time[f.style]:Qe(f.style)?f.style.parsedOptions:r.time.medium;s.push({type:A.literal,value:n.getDateTimeFormat(t,_).format(l)});continue}if(en(f)){var _=typeof f.style=="string"?r.number[f.style]:on(f.style)?f.style.parsedOptions:void 0;_&&_.scale&&(l=l*(_.scale||1)),s.push({type:A.literal,value:n.getNumberFormat(t,_).format(l)});continue}if(sn(f)){var y=f.children,v=f.value,B=i[v];if(!Mr(B))throw new Pr(v,"function",o);var d=xe(y,t,n,r,i,a),m=B(d.map(function(E){return E.value}));Array.isArray(m)||(m=[m]),s.push.apply(s,m.map(function(E){return{type:typeof E=="string"?A.literal:A.object,value:E}}))}if(rn(f)){var g=f.options[l]||f.options.other;if(!g)throw new Ot(f.value,l,Object.keys(f.options),o);s.push.apply(s,xe(g.value,t,n,r,i));continue}if(an(f)){var g=f.options["=".concat(l)];if(!g){if(!Intl.PluralRules)throw new Me(`Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n`,$.MISSING_INTL_API,o);var S=n.getPluralRules(t,{type:f.pluralType}).select(l-(f.offset||0));g=f.options[S]||f.options.other}if(!g)throw new Ot(f.value,l,Object.keys(f.options),o);s.push.apply(s,xe(g.value,t,n,r,i,l-(f.offset||0)));continue}}return Ir(s)}function Lr(e,t){return t?x(x(x({},e||{}),t||{}),Object.keys(e).reduce(function(n,r){return n[r]=x(x({},e[r]),t[r]||{}),n},{})):e}function Cr(e,t){return t?Object.keys(e).reduce(function(n,r){return n[r]=Lr(e[r],t[r]),n},x({},e)):e}function ke(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function Rr(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:De(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.NumberFormat).bind.apply(t,Fe([void 0],n,!1)))},{cache:ke(e.number),strategy:Ge.variadic}),getDateTimeFormat:De(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.DateTimeFormat).bind.apply(t,Fe([void 0],n,!1)))},{cache:ke(e.dateTime),strategy:Ge.variadic}),getPluralRules:De(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.PluralRules).bind.apply(t,Fe([void 0],n,!1)))},{cache:ke(e.pluralRules),strategy:Ge.variadic})}}var gn=(function(){function e(t,n,r,i){n===void 0&&(n=e.defaultLocale);var a=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(u){var h=a.formatToParts(u);if(h.length===1)return h[0].value;var f=h.reduce(function(c,l){return!c.length||l.type!==A.literal||typeof c[c.length-1]!="string"?c.push(l.value):c[c.length-1]+=l.value,c},[]);return f.length<=1?f[0]||"":f},this.formatToParts=function(u){return xe(a.ast,a.locales,a.formatters,a.formats,u,void 0,a.message)},this.resolvedOptions=function(){var u;return{locale:((u=a.resolvedLocale)===null||u===void 0?void 0:u.toString())||Intl.NumberFormat.supportedLocalesOf(a.locales)[0]}},this.getAst=function(){return a.ast},this.locales=n,this.resolvedLocale=e.resolveLocale(n),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var o=i||{};o.formatters;var s=Zn(o,["formatters"]);this.ast=e.__parse(t,x(x({},s),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=Cr(e.formats,r),this.formatters=i&&i.formatters||Rr(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(!(typeof Intl.Locale>"u")){var n=Intl.NumberFormat.supportedLocalesOf(t);return n.length>0?new Intl.Locale(n[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=Or,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e})();function Ur(e,t){if(t==null)return;if(t in e)return e[t];const n=t.split(".");let r=e;for(let i=0;i<n.length;i++)if(typeof r=="object"){if(i>0){const a=n.slice(i,n.length).join(".");if(a in r){r=r[a];break}}r=r[n[i]]}else r=void 0;return r}const U={},Fr=(e,t,n)=>n&&(t in U||(U[t]={}),e in U[t]||(U[t][e]=n),n),bn=(e,t)=>{if(t==null)return;if(t in U&&e in U[t])return U[t][e];const n=ce(t);for(let r=0;r<n.length;r++){const i=n[r],a=Gr(i,e);if(a)return Fr(e,t,a)}};let ct;const ee=Ne({});function Dr(e){return ct[e]||null}function dt(e){return e in ct}function Gr(e,t){if(!dt(e))return null;const n=Dr(e);return Ur(n,t)}function jr(e){if(e==null)return;const t=ce(e);for(let n=0;n<t.length;n++){const r=t[n];if(dt(r))return r}}function kr(e,...t){delete U[e],ee.update(n=>(n[e]=Yn.all([n[e]||{},...t]),n))}j([ee],([e])=>Object.keys(e));ee.subscribe(e=>ct=e);const oe={};function Vr(e){oe[e]=new Set}function Xr(e,t){oe[e].delete(t),oe[e].size===0&&delete oe[e]}function ue(e){return oe[e]}function Yr(e){return ce(e).map(t=>{const n=ue(t);return[t,n?[...n]:[]]}).filter(([,t])=>t.length>0)}function Ee(e){return e==null?!1:ce(e).some(t=>{var n;return(n=ue(t))==null?void 0:n.size})}function Zr(e,t){return Promise.all(t.map(r=>(Xr(e,r),r().then(i=>i.default||i)))).then(r=>kr(e,...r))}const re={};function pn(e){if(!Ee(e))return e in re?re[e]:Promise.resolve();const t=Yr(e);return re[e]=Promise.all(t.map(([n,r])=>Zr(n,r))).then(()=>{if(Ee(e))return pn(e);delete re[e]}),re[e]}function Aa(e,t){ue(e)||Vr(e);const n=ue(e);ue(e).has(t)||(dt(e)||ee.update(r=>(r[e]={},r)),n.add(t))}var Pt=Object.getOwnPropertySymbols,Wr=Object.prototype.hasOwnProperty,zr=Object.prototype.propertyIsEnumerable,qr=(e,t)=>{var n={};for(var r in e)Wr.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Pt)for(var r of Pt(e))t.indexOf(r)<0&&zr.call(e,r)&&(n[r]=e[r]);return n};const Qr={number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}};function Jr({locale:e,id:t}){console.warn(`[svelte-i18n] The message "${t}" was not found in "${ce(e).join(\'", "\')}".${Ee(k())?`\n\nNote: there are at least one loader still registered to this locale that wasn\'t executed.`:""}`)}const $r={fallbackLocale:null,loadingDelay:200,formats:Qr,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},ie=$r;function K(){return ie}function Oa(e){const t=e,{formats:n}=t,r=qr(t,["formats"]);let i=e.fallbackLocale;if(e.initialLocale)try{gn.resolveLocale(e.initialLocale)&&(i=e.initialLocale)}catch{console.warn(`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`)}return r.warnOnMissingMessages&&(delete r.warnOnMissingMessages,r.handleMissingMessage==null?r.handleMissingMessage=Jr:console.warn(\'[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.\')),Object.assign(ie,r,{initialLocale:i}),n&&("number"in n&&Object.assign(ie.formats.number,n.number),"date"in n&&Object.assign(ie.formats.date,n.date),"time"in n&&Object.assign(ie.formats.time,n.time)),te.set(i)}const Ve=Ne(!1);var Kr=Object.defineProperty,ei=Object.defineProperties,ti=Object.getOwnPropertyDescriptors,Nt=Object.getOwnPropertySymbols,ni=Object.prototype.hasOwnProperty,ri=Object.prototype.propertyIsEnumerable,It=(e,t,n)=>t in e?Kr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ii=(e,t)=>{for(var n in t||(t={}))ni.call(t,n)&&It(e,n,t[n]);if(Nt)for(var n of Nt(t))ri.call(t,n)&&It(e,n,t[n]);return e},ai=(e,t)=>ei(e,ti(t));let nt;const ve=Ne(null);function Mt(e){return e.split("-").map((t,n,r)=>r.slice(0,n+1).join("-")).reverse()}function ce(e,t=K().fallbackLocale){const n=Mt(e);return t?[...new Set([...n,...Mt(t)])]:n}function k(){return nt??void 0}ve.subscribe(e=>{nt=e??void 0,typeof window<"u"&&e!=null&&document.documentElement.setAttribute("lang",e)});const si=e=>{if(e&&jr(e)&&Ee(e)){const{loadingDelay:t}=K();let n;return typeof window<"u"&&k()!=null&&t?n=window.setTimeout(()=>Ve.set(!0),t):Ve.set(!0),pn(e).then(()=>{ve.set(e)}).finally(()=>{clearTimeout(n),Ve.set(!1)})}return ve.set(e)},te=ai(ii({},ve),{set:si}),Pa=()=>typeof window>"u"?null:window.navigator.language||window.navigator.languages[0],Le=e=>{const t=Object.create(null);return r=>{const i=JSON.stringify(r);return i in t?t[i]:t[i]=e(r)}};var oi=Object.defineProperty,He=Object.getOwnPropertySymbols,_n=Object.prototype.hasOwnProperty,yn=Object.prototype.propertyIsEnumerable,Lt=(e,t,n)=>t in e?oi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,mt=(e,t)=>{for(var n in t||(t={}))_n.call(t,n)&&Lt(e,n,t[n]);if(He)for(var n of He(t))yn.call(t,n)&&Lt(e,n,t[n]);return e},ne=(e,t)=>{var n={};for(var r in e)_n.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&He)for(var r of He(e))t.indexOf(r)<0&&yn.call(e,r)&&(n[r]=e[r]);return n};const he=(e,t)=>{const{formats:n}=K();if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},ui=Le(e=>{var t=e,{locale:n,format:r}=t,i=ne(t,["locale","format"]);if(n==null)throw new Error(\'[svelte-i18n] A "locale" must be set to format numbers\');return r&&(i=he("number",r)),new Intl.NumberFormat(n,i)}),hi=Le(e=>{var t=e,{locale:n,format:r}=t,i=ne(t,["locale","format"]);if(n==null)throw new Error(\'[svelte-i18n] A "locale" must be set to format dates\');return r?i=he("date",r):Object.keys(i).length===0&&(i=he("date","short")),new Intl.DateTimeFormat(n,i)}),fi=Le(e=>{var t=e,{locale:n,format:r}=t,i=ne(t,["locale","format"]);if(n==null)throw new Error(\'[svelte-i18n] A "locale" must be set to format time values\');return r?i=he("time",r):Object.keys(i).length===0&&(i=he("time","short")),new Intl.DateTimeFormat(n,i)}),li=(e={})=>{var t=e,{locale:n=k()}=t,r=ne(t,["locale"]);return ui(mt({locale:n},r))},ci=(e={})=>{var t=e,{locale:n=k()}=t,r=ne(t,["locale"]);return hi(mt({locale:n},r))},di=(e={})=>{var t=e,{locale:n=k()}=t,r=ne(t,["locale"]);return fi(mt({locale:n},r))},mi=Le((e,t=k())=>new gn(e,t,K().formats,{ignoreTag:K().ignoreTag})),gi=(e,t={})=>{var n,r,i,a;let o=t;typeof e=="object"&&(o=e,e=o.id);const{values:s,locale:u=k(),default:h}=o;if(u==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let f=bn(e,u);if(!f)f=(a=(i=(r=(n=K()).handleMissingMessage)==null?void 0:r.call(n,{locale:u,id:e,defaultValue:h}))!=null?i:h)!=null?a:e;else if(typeof f!="string")return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof f}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),f;if(!s)return f;let c=f;try{c=mi(f,u).format(s)}catch(l){l instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,l.message)}return c},bi=(e,t)=>di(t).format(e),pi=(e,t)=>ci(t).format(e),_i=(e,t)=>li(t).format(e),yi=(e,t=k())=>bn(e,t),Na=j([te,ee],()=>gi);j([te],()=>bi);j([te],()=>pi);j([te],()=>_i);j([te,ee],()=>yi);/*!\n * @kurkle/color v0.3.4\n * https://github.com/kurkle/color#readme\n * (c) 2024 Jukka Kurkela\n * Released under the MIT License\n */function de(e){return e+.5|0}const F=(e,t,n)=>Math.max(Math.min(e,n),t);function ae(e){return F(de(e*2.55),0,255)}function D(e){return F(de(e*255),0,255)}function C(e){return F(de(e/2.55)/100,0,1)}function Ct(e){return F(de(e*100),0,100)}const O={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},rt=[..."0123456789ABCDEF"],xi=e=>rt[e&15],Ei=e=>rt[(e&240)>>4]+rt[e&15],be=e=>(e&240)>>4===(e&15),vi=e=>be(e.r)&&be(e.g)&&be(e.b)&&be(e.a);function Hi(e){var t=e.length,n;return e[0]==="#"&&(t===4||t===5?n={r:255&O[e[1]]*17,g:255&O[e[2]]*17,b:255&O[e[3]]*17,a:t===5?O[e[4]]*17:255}:(t===7||t===9)&&(n={r:O[e[1]]<<4|O[e[2]],g:O[e[3]]<<4|O[e[4]],b:O[e[5]]<<4|O[e[6]],a:t===9?O[e[7]]<<4|O[e[8]]:255})),n}const Ti=(e,t)=>e<255?t(e):"";function Si(e){var t=vi(e)?xi:Ei;return e?"#"+t(e.r)+t(e.g)+t(e.b)+Ti(e.a,t):void 0}const wi=/^(hsla?|hwb|hsv)\\(\\s*([-+.e\\d]+)(?:deg)?[\\s,]+([-+.e\\d]+)%[\\s,]+([-+.e\\d]+)%(?:[\\s,]+([-+.e\\d]+)(%)?)?\\s*\\)$/;function xn(e,t,n){const r=t*Math.min(n,1-n),i=(a,o=(a+e/30)%12)=>n-r*Math.max(Math.min(o-3,9-o,1),-1);return[i(0),i(8),i(4)]}function Bi(e,t,n){const r=(i,a=(i+e/60)%6)=>n-n*t*Math.max(Math.min(a,4-a,1),0);return[r(5),r(3),r(1)]}function Ai(e,t,n){const r=xn(e,1,.5);let i;for(t+n>1&&(i=1/(t+n),t*=i,n*=i),i=0;i<3;i++)r[i]*=1-t-n,r[i]+=t;return r}function Oi(e,t,n,r,i){return e===i?(t-n)/r+(t<n?6:0):t===i?(n-e)/r+2:(e-t)/r+4}function gt(e){const n=e.r/255,r=e.g/255,i=e.b/255,a=Math.max(n,r,i),o=Math.min(n,r,i),s=(a+o)/2;let u,h,f;return a!==o&&(f=a-o,h=s>.5?f/(2-a-o):f/(a+o),u=Oi(n,r,i,f,a),u=u*60+.5),[u|0,h||0,s]}function bt(e,t,n,r){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,r)).map(D)}function pt(e,t,n){return bt(xn,e,t,n)}function Pi(e,t,n){return bt(Ai,e,t,n)}function Ni(e,t,n){return bt(Bi,e,t,n)}function En(e){return(e%360+360)%360}function Ii(e){const t=wi.exec(e);let n=255,r;if(!t)return;t[5]!==r&&(n=t[6]?ae(+t[5]):D(+t[5]));const i=En(+t[2]),a=+t[3]/100,o=+t[4]/100;return t[1]==="hwb"?r=Pi(i,a,o):t[1]==="hsv"?r=Ni(i,a,o):r=pt(i,a,o),{r:r[0],g:r[1],b:r[2],a:n}}function Mi(e,t){var n=gt(e);n[0]=En(n[0]+t),n=pt(n),e.r=n[0],e.g=n[1],e.b=n[2]}function Li(e){if(!e)return;const t=gt(e),n=t[0],r=Ct(t[1]),i=Ct(t[2]);return e.a<255?`hsla(${n}, ${r}%, ${i}%, ${C(e.a)})`:`hsl(${n}, ${r}%, ${i}%)`}const Rt={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},Ut={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function Ci(){const e={},t=Object.keys(Ut),n=Object.keys(Rt);let r,i,a,o,s;for(r=0;r<t.length;r++){for(o=s=t[r],i=0;i<n.length;i++)a=n[i],s=s.replace(a,Rt[a]);a=parseInt(Ut[o],16),e[s]=[a>>16&255,a>>8&255,a&255]}return e}let pe;function Ri(e){pe||(pe=Ci(),pe.transparent=[0,0,0,0]);const t=pe[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const Ui=/^rgba?\\(\\s*([-+.\\d]+)(%)?[\\s,]+([-+.e\\d]+)(%)?[\\s,]+([-+.e\\d]+)(%)?(?:[\\s,/]+([-+.e\\d]+)(%)?)?\\s*\\)$/;function Fi(e){const t=Ui.exec(e);let n=255,r,i,a;if(t){if(t[7]!==r){const o=+t[7];n=t[8]?ae(o):F(o*255,0,255)}return r=+t[1],i=+t[3],a=+t[5],r=255&(t[2]?ae(r):F(r,0,255)),i=255&(t[4]?ae(i):F(i,0,255)),a=255&(t[6]?ae(a):F(a,0,255)),{r,g:i,b:a,a:n}}}function Di(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${C(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}const Xe=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,W=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function Gi(e,t,n){const r=W(C(e.r)),i=W(C(e.g)),a=W(C(e.b));return{r:D(Xe(r+n*(W(C(t.r))-r))),g:D(Xe(i+n*(W(C(t.g))-i))),b:D(Xe(a+n*(W(C(t.b))-a))),a:e.a+n*(t.a-e.a)}}function _e(e,t,n){if(e){let r=gt(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*n,t===0?360:1)),r=pt(r),e.r=r[0],e.g=r[1],e.b=r[2]}}function vn(e,t){return e&&Object.assign(t||{},e)}function Ft(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=D(e[3]))):(t=vn(e,{r:0,g:0,b:0,a:1}),t.a=D(t.a)),t}function ji(e){return e.charAt(0)==="r"?Fi(e):Ii(e)}class it{constructor(t){if(t instanceof it)return t;const n=typeof t;let r;n==="object"?r=Ft(t):n==="string"&&(r=Hi(t)||Ri(t)||ji(t)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var t=vn(this._rgb);return t&&(t.a=C(t.a)),t}set rgb(t){this._rgb=Ft(t)}rgbString(){return this._valid?Di(this._rgb):void 0}hexString(){return this._valid?Si(this._rgb):void 0}hslString(){return this._valid?Li(this._rgb):void 0}mix(t,n){if(t){const r=this.rgb,i=t.rgb;let a;const o=n===a?.5:n,s=2*o-1,u=r.a-i.a,h=((s*u===-1?s:(s+u)/(1+s*u))+1)/2;a=1-h,r.r=255&h*r.r+a*i.r+.5,r.g=255&h*r.g+a*i.g+.5,r.b=255&h*r.b+a*i.b+.5,r.a=o*r.a+(1-o)*i.a,this.rgb=r}return this}interpolate(t,n){return t&&(this._rgb=Gi(this._rgb,t._rgb,n)),this}clone(){return new it(this.rgb)}alpha(t){return this._rgb.a=D(t),this}clearer(t){const n=this._rgb;return n.a*=1-t,this}greyscale(){const t=this._rgb,n=de(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=n,this}opaquer(t){const n=this._rgb;return n.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return _e(this._rgb,2,t),this}darken(t){return _e(this._rgb,2,-t),this}saturate(t){return _e(this._rgb,1,t),this}desaturate(t){return _e(this._rgb,1,-t),this}rotate(t){return Mi(this._rgb,t),this}}const Dt=/^on/,Hn=[];Object.keys(globalThis).forEach(e=>{Dt.test(e)&&Hn.push(e.replace(Dt,""))});function Ce(e){const t=Q,n=[];function r(i){Un(t,i)}Xt(()=>{const i=e();Hn.forEach(i instanceof Element?a=>n.push(Pn(i,a,r)):a=>n.push(i.$on(a,r)))}),Yt(()=>{for(;n.length;)n.pop()()})}function ki(e){let t,n=[e[1]],r={};for(let i=0;i<n.length;i+=1)r=N(r,n[i]);return{c(){t=On("canvas"),Mn(t,r)},m(i,a){An(i,t,a),e[8](t)},p:P,i:P,o:P,d(i){i&&kt(t),e[8](null)}}}function Vi(e){let{data:t,type:n,options:r,plugins:i,children:a,$$scope:o,$$slots:s,...u}=e;return u}function Xi(e,t,n){let{type:r}=t,{data:i={datasets:[]}}=t,{options:a={}}=t,{plugins:o=[]}=t,{updateMode:s=void 0}=t,{chart:u=null}=t,h,f=Vi(t);Xt(()=>{n(2,u=new Te(h,{type:r,data:i,options:a,plugins:o}))}),Rn(()=>{u&&(n(2,u.data=i,u),Object.assign(u.options,a),u.update(s))}),Yt(()=>{u&&u.destroy(),n(2,u=null)}),Ce(()=>h);function c(l){R[l?"unshift":"push"](()=>{h=l,n(0,h)})}return e.$$set=l=>{n(9,t=N(N({},t),G(l))),"type"in l&&n(3,r=l.type),"data"in l&&n(4,i=l.data),"options"in l&&n(5,a=l.options),"plugins"in l&&n(6,o=l.plugins),"updateMode"in l&&n(7,s=l.updateMode),"chart"in l&&n(2,u=l.chart)},t=G(t),[h,f,u,r,i,a,o,s,c]}class _t extends Pe{constructor(t){super(),Oe(this,t,Xi,ki,fe,{type:3,data:4,options:5,plugins:6,updateMode:7,chart:2})}}function Yi(e){let t,n,r;const i=[{type:"line"},e[1]];function a(s){e[4](s)}let o={};for(let s=0;s<i.length;s+=1)o=N(o,i[s]);return e[0]!==void 0&&(o.chart=e[0]),t=new _t({props:o}),e[3](t),R.push(()=>ft(t,"chart",a)),{c(){lt(t.$$.fragment)},m(s,u){Be(t,s,u),r=!0},p(s,[u]){const h=u&2?ut(i,[i[0],ht(s[1])]):{};!n&&u&1&&(n=!0,h.chart=s[0],ot(()=>n=!1)),t.$set(h)},i(s){r||(le(t.$$.fragment,s),r=!0)},o(s){we(t.$$.fragment,s),r=!1},d(s){e[3](null),Ae(t,s)}}}function Zi(e,t,n){Te.register(Tn);let{chart:r=null}=t,i,a;Ce(()=>a);function o(u){R[u?"unshift":"push"](()=>{a=u,n(2,a)})}function s(u){r=u,n(0,r)}return e.$$set=u=>{n(5,t=N(N({},t),G(u))),"chart"in u&&n(0,r=u.chart)},e.$$.update=()=>{n(1,i=t)},t=G(t),[r,i,a,o,s]}class Ia extends Pe{constructor(t){super(),Oe(this,t,Zi,Yi,fe,{chart:0})}}function Wi(e){let t,n,r;const i=[{type:"doughnut"},e[1]];function a(s){e[4](s)}let o={};for(let s=0;s<i.length;s+=1)o=N(o,i[s]);return e[0]!==void 0&&(o.chart=e[0]),t=new _t({props:o}),e[3](t),R.push(()=>ft(t,"chart",a)),{c(){lt(t.$$.fragment)},m(s,u){Be(t,s,u),r=!0},p(s,[u]){const h=u&2?ut(i,[i[0],ht(s[1])]):{};!n&&u&1&&(n=!0,h.chart=s[0],ot(()=>n=!1)),t.$set(h)},i(s){r||(le(t.$$.fragment,s),r=!0)},o(s){we(t.$$.fragment,s),r=!1},d(s){e[3](null),Ae(t,s)}}}function zi(e,t,n){Te.register(Sn);let{chart:r=null}=t,i,a;Ce(()=>a);function o(u){R[u?"unshift":"push"](()=>{a=u,n(2,a)})}function s(u){r=u,n(0,r)}return e.$$set=u=>{n(5,t=N(N({},t),G(u))),"chart"in u&&n(0,r=u.chart)},e.$$.update=()=>{n(1,i=t)},t=G(t),[r,i,a,o,s]}class Ma extends Pe{constructor(t){super(),Oe(this,t,zi,Wi,fe,{chart:0})}}function qi(e){let t,n,r;const i=[{type:"bar"},e[1]];function a(s){e[4](s)}let o={};for(let s=0;s<i.length;s+=1)o=N(o,i[s]);return e[0]!==void 0&&(o.chart=e[0]),t=new _t({props:o}),e[3](t),R.push(()=>ft(t,"chart",a)),{c(){lt(t.$$.fragment)},m(s,u){Be(t,s,u),r=!0},p(s,[u]){const h=u&2?ut(i,[i[0],ht(s[1])]):{};!n&&u&1&&(n=!0,h.chart=s[0],ot(()=>n=!1)),t.$set(h)},i(s){r||(le(t.$$.fragment,s),r=!0)},o(s){we(t.$$.fragment,s),r=!1},d(s){e[3](null),Ae(t,s)}}}function Qi(e,t,n){Te.register(wn);let{chart:r=null}=t,i,a;Ce(()=>a);function o(u){R[u?"unshift":"push"](()=>{a=u,n(2,a)})}function s(u){r=u,n(0,r)}return e.$$set=u=>{n(5,t=N(N({},t),G(u))),"chart"in u&&n(0,r=u.chart)},e.$$.update=()=>{n(1,i=t)},t=G(t),[r,i,a,o,s]}class La extends Pe{constructor(t){super(),Oe(this,t,Qi,qi,fe,{chart:0})}}const w=[];for(let e=0;e<256;++e)w.push((e+256).toString(16).slice(1));function Ji(e,t=0){return(w[e[t+0]]+w[e[t+1]]+w[e[t+2]]+w[e[t+3]]+"-"+w[e[t+4]]+w[e[t+5]]+"-"+w[e[t+6]]+w[e[t+7]]+"-"+w[e[t+8]]+w[e[t+9]]+"-"+w[e[t+10]]+w[e[t+11]]+w[e[t+12]]+w[e[t+13]]+w[e[t+14]]+w[e[t+15]]).toLowerCase()}let Ye;const $i=new Uint8Array(16);function Ki(){if(!Ye){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Ye=crypto.getRandomValues.bind(crypto)}return Ye($i)}const ea=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Gt={randomUUID:ea};function ta(e,t,n){e=e||{};const r=e.random??e.rng?.()??Ki();if(r.length<16)throw new Error("Random bytes length must be >= 16");return r[6]=r[6]&15|64,r[8]=r[8]&63|128,Ji(r)}function Ca(e,t,n){return Gt.randomUUID&&!e?Gt.randomUUID():ta(e)}export{te as $,P as A,La as B,it as C,Ma as D,oa as E,fa as F,X as G,pa as H,Pn as I,da as J,Ea as K,Ia as L,sa as M,_a as N,la as O,ha as P,ba as Q,R,Pe as S,ft as T,ga as U,ot as V,ze as W,ra as X,Ta as Y,va as Z,at as _,Oe as a,wa as a0,Ca as a1,Ba as a2,ma as a3,Ha as a4,Sa as a5,Ve as a6,kt as b,Ae as c,j as d,le as e,An as f,Pa as g,On as h,Oa as i,lt as j,Nn as k,ia as l,Be as m,Yt as n,Xt as o,ca as p,ya as q,Aa as r,fe as s,we as t,xa as u,aa as v,Ne as w,Vt as x,ua as y,Na as z};\n',
21255
+ "zh-CN-Diwokmw7.js": 'const e={error:"\u9519\u8BEF",loading:"\u52A0\u8F7D\u4E2D...",save:"\u4FDD\u5B58",cancel:"\u53D6\u6D88",delete:"\u5220\u9664",edit:"\u7F16\u8F91",add:"\u6DFB\u52A0",confirm:"\u786E\u8BA4",reset:"\u91CD\u7F6E",refresh:"\u5237\u65B0",search:"\u641C\u7D22",filter:"\u7B5B\u9009",export:"\u5BFC\u51FA",import:"\u5BFC\u5165",close:"\u5173\u95ED",show:"\u663E\u793A",hide:"\u9690\u85CF",copy:"\u590D\u5236",copied:"\u5DF2\u590D\u5236"},t={dashboard:"\u4EEA\u8868\u677F",home:"\u9996\u9875",routes:"\u8DEF\u7531\u7BA1\u7406",logs:"\u8BF7\u6C42\u65E5\u5FD7",configuration:"\u914D\u7F6E\u4E2D\u5FC3"},r={home:"\u9996\u9875",routes:"\u8DEF\u7531\u7BA1\u7406",newRoute:"\u65B0\u5EFA\u8DEF\u7531",editRoute:"\u7F16\u8F91\u8DEF\u7531"},a={title:"\u4EEA\u8868\u677F",dataRange:"\u6570\u636E\u65F6\u95F4\u8303\u56F4",totalRequests:"\u603B\u8BF7\u6C42\u6570",requestsPerSec:"\u6BCF\u79D2\u8BF7\u6C42\u6570",requestsPerSecond:"\u6BCF\u79D2\u8BF7\u6C42\u6570",successRate:"\u6210\u529F\u7387",avgResponseTime:"\u5E73\u5747\u54CD\u5E94\u65F6\u95F4",upstreamAnalysis:"\u4E0A\u6E38\u5206\u6790",upstreamDistribution:"\u4E0A\u6E38\u8BF7\u6C42\u5206\u5E03",upstreamFailures:"\u4E0A\u6E38\u5931\u8D25\u7EDF\u8BA1",upstreamStatusCodes:"\u4E0A\u6E38\u72B6\u6001\u7801\u5206\u5E03",noUpstreamData:"\u6240\u9009\u65F6\u95F4\u8303\u56F4\u5185\u6682\u65E0\u4E0A\u6E38\u6570\u636E",noData:"\u6682\u65E0\u6570\u636E"},o={title:"\u76D1\u63A7\u56FE\u8868",range:{"1h":"1\u5C0F\u65F6","12h":"12\u5C0F\u65F6","24h":"24\u5C0F\u65F6",oneHour:"1\u5C0F\u65F6",twelveHours:"12\u5C0F\u65F6",twentyFourHours:"24\u5C0F\u65F6"},charts:{requestsTrend:"\u8BF7\u6C42\u6570\u8D8B\u52BF",periodRequests:"\u65F6\u6BB5\u8BF7\u6C42\u6570",requests:"\u8BF7\u6C42\u6570",responseTimeTrend:"\u54CD\u5E94\u65F6\u95F4\u8D8B\u52BF",avgResponseTime:"\u5E73\u5747\u54CD\u5E94\u65F6\u95F4 (ms)",milliseconds:"\u6BEB\u79D2 (ms)",successRateTrend:"\u6210\u529F\u7387\u8D8B\u52BF",successRate:"\u6210\u529F\u7387 (%)",percentage:"\u767E\u5206\u6BD4 (%)",errorsTrend:"\u9519\u8BEF\u6570\u8D8B\u52BF",periodErrors:"\u65F6\u6BB5\u9519\u8BEF\u6570",errors:"\u9519\u8BEF\u6570"},noData:"\u6682\u65E0\u5386\u53F2\u6570\u636E"},s={title:"\u8DEF\u7531\u7BA1\u7406",subtitle:"\u7BA1\u7406\u60A8\u7684\u53CD\u5411\u4EE3\u7406\u8DEF\u7531\u548C\u4E0A\u6E38\u670D\u52A1\u5668",addRoute:"\u6DFB\u52A0\u8DEF\u7531",newRoute:"+ \u65B0\u5EFA\u8DEF\u7531",createFirstRoute:"\u521B\u5EFA\u7B2C\u4E00\u4E2A\u8DEF\u7531",editRoute:"\u7F16\u8F91\u8DEF\u7531",deleteRoute:"\u5220\u9664\u8DEF\u7531",export:"\u5BFC\u51FA",import:"\u5BFC\u5165",path:"\u8DEF\u5F84",upstreams:"\u4E0A\u6E38\u670D\u52A1\u5668",actions:"\u64CD\u4F5C",searchPlaceholder:"\u641C\u7D22\u8DEF\u7531\u6216\u4E0A\u6E38\u670D\u52A1\u5668...",allTransformers:"\u6240\u6709\u8F6C\u6362\u5668",noRoutes:"\u6682\u65E0\u8DEF\u7531\u914D\u7F6E",noRoutesMessage:"\u521B\u5EFA\u60A8\u7684\u7B2C\u4E00\u4E2A\u8DEF\u7531\u4EE5\u5F00\u59CB\u4EE3\u7406\u8BF7\u6C42",noMatchingRoutes:"\u6CA1\u6709\u5339\u914D\u7684\u8DEF\u7531",noMatchingMessage:"\u8BF7\u5C1D\u8BD5\u8C03\u6574\u641C\u7D22\u6216\u7B5B\u9009\u6761\u4EF6",showingRoutes:"\u663E\u793A {count} / {total} \u4E2A\u8DEF\u7531",confirmDelete:"\u786E\u8BA4\u5220\u9664\u8DEF\u7531",confirmDeleteMessage:\'\u786E\u5B9A\u8981\u5220\u9664\u8DEF\u7531 "{path}" \u5417\uFF1F\u6B64\u64CD\u4F5C\u65E0\u6CD5\u64A4\u9500\u3002\',deleted:\'\u8DEF\u7531 "{path}" \u5DF2\u5220\u9664\',deleteFailed:"\u5220\u9664\u5931\u8D25: {error}",duplicated:\'\u8DEF\u7531 "{path}" \u5DF2\u590D\u5236\',duplicateFailed:"\u590D\u5236\u5931\u8D25: {error}",noRoutesToExport:"\u6CA1\u6709\u53EF\u5BFC\u51FA\u7684\u8DEF\u7531",exported:"\u8DEF\u7531\u5DF2\u5BFC\u51FA",importMustBeArray:"\u5BFC\u5165\u6587\u4EF6\u5FC5\u987B\u662F\u8DEF\u7531\u6570\u7EC4",importSuccess:"\u6210\u529F\u5BFC\u5165 {success} \u4E2A\u8DEF\u7531",importPartialSuccess:"\u6210\u529F\u5BFC\u5165 {success} \u4E2A\u8DEF\u7531\uFF0C\u5931\u8D25 {failed} \u4E2A",importFailed:"\u5BFC\u5165\u5931\u8D25: {error}",filterStatus:{all:"\u5168\u90E8\u72B6\u6001",healthy:"\u4EC5\u5065\u5EB7",unhealthy:"\u6709\u5F02\u5E38"}},l={title:"\u914D\u7F6E\u4E2D\u5FC3",subtitle:"\u7F16\u8F91\u548C\u7BA1\u7406\u7CFB\u7EDF\u914D\u7F6E",export:"\u5BFC\u51FA",import:"\u5BFC\u5165",reload:"\u91CD\u65B0\u52A0\u8F7D",restart:"\u91CD\u542F\u670D\u52A1",formEditor:"\u8868\u5355\u7F16\u8F91",jsonEditor:"JSON \u7F16\u8F91",systemSettings:"\u7CFB\u7EDF\u8BBE\u7F6E",serverPort:"\u670D\u52A1\u5668\u7AEF\u53E3",workerProcesses:"\u5DE5\u4F5C\u8FDB\u7A0B\u6570",workerProcessesHelp:"\u8981\u542F\u52A8\u7684\u5DE5\u4F5C\u8FDB\u7A0B\u6570\u91CF",logLevel:"\u65E5\u5FD7\u7EA7\u522B",bodyParserLimit:"\u8BF7\u6C42\u4F53\u5927\u5C0F\u9650\u5236",bodyParserLimitHelp:\'\u6700\u5927\u8BF7\u6C42\u4F53\u5927\u5C0F\uFF08\u4F8B\u5982\uFF1A"50mb"\u3001"100kb"\uFF09\',requiresRestart:"\u6CE8\u610F\uFF1A\u7AEF\u53E3\u3001\u5DE5\u4F5C\u8FDB\u7A0B\u6570\u3001\u65E5\u5FD7\u7EA7\u522B\u548C\u8BF7\u6C42\u4F53\u5927\u5C0F\u9650\u5236\u7684\u66F4\u6539\u9700\u8981\u91CD\u542F\u670D\u52A1\u624D\u80FD\u751F\u6548\u3002",routesConfigured:"{count} \u4E2A\u8DEF\u7531\u5DF2\u914D\u7F6E\u3002",manageRoutes:"\u4F7F\u7528\u8DEF\u7531\u9875\u9762\u7BA1\u7406\u8DEF\u7531\u3002",jsonConfiguration:"JSON \u914D\u7F6E",jsonParseError:"JSON \u89E3\u6790\u9519\u8BEF: {error}",jsonPlaceholder:"\u8F93\u5165 JSON \u914D\u7F6E...",jsonHelp:"\u7F16\u8F91\u539F\u59CB JSON \u914D\u7F6E\u3002\u4FDD\u5B58\u524D\u5C06\u9A8C\u8BC1\u66F4\u6539\u3002",unsavedChanges:"\u60A8\u6709\u672A\u4FDD\u5B58\u7684\u66F4\u6539",reset:"\u91CD\u7F6E",save:"\u4FDD\u5B58\u914D\u7F6E",confirmRestart:"\u786E\u8BA4\u91CD\u542F\u670D\u52A1",restartMessage:"\u786E\u5B9A\u8981\u91CD\u542F\u670D\u52A1\u5417\uFF1F\u8FD9\u5C06\u5BFC\u81F4\u77ED\u6682\u4E2D\u65AD\uFF08\u901A\u5E38 2-3 \u79D2\uFF09\uFF0C\u56E0\u4E3A\u670D\u52A1\u4F1A\u4F18\u96C5\u5730\u91CD\u542F\u3002",restartWarning:"\u6D3B\u52A8\u8FDE\u63A5\u53EF\u80FD\u4F1A\u6682\u65F6\u4E2D\u65AD\u3002",validationFailed:"\u914D\u7F6E\u9A8C\u8BC1\u5931\u8D25: {error}",saved:"\u914D\u7F6E\u5DF2\u4FDD\u5B58",saveFailed:"\u4FDD\u5B58\u5931\u8D25: {error}",exported:"\u914D\u7F6E\u5DF2\u5BFC\u51FA",imported:"\u914D\u7F6E\u5DF2\u5BFC\u5165",importFailed:"\u5BFC\u5165\u5931\u8D25: {error}",reloaded:"\u914D\u7F6E\u5DF2\u6210\u529F\u91CD\u65B0\u52A0\u8F7D",reloadFailed:"\u91CD\u65B0\u52A0\u8F7D\u5931\u8D25: {error}",restartSent:"\u91CD\u542F\u4FE1\u53F7\u5DF2\u53D1\u9001\uFF0C\u670D\u52A1\u5C06\u5728\u51E0\u79D2\u540E\u91CD\u542F",restartDaemonOnly:\'\u91CD\u542F\u529F\u80FD\u4EC5\u5728 daemon \u6A21\u5F0F\u4E0B\u53EF\u7528\u3002\u8BF7\u4F7F\u7528 "bungee restart" \u547D\u4EE4\u6216\u624B\u52A8\u91CD\u542F\u5F00\u53D1\u670D\u52A1\u5668\u3002\',restartFailed:"\u91CD\u542F\u5931\u8D25: {error}"},i={title:"404",message:"\u9875\u9762\u672A\u627E\u5230",goHome:"\u8FD4\u56DE\u9996\u9875"},n={newRoute:"\u65B0\u5EFA\u8DEF\u7531",editRoute:"\u7F16\u8F91\u8DEF\u7531",backToList:"\u8FD4\u56DE\u5217\u8868",routePath:"\u8DEF\u7531\u8DEF\u5F84",pathPlaceholder:"\u4F8B\u5982: /api/*",pathHelp:"\u652F\u6301\u901A\u914D\u7B26 (*) \u548C\u53C2\u6570 (:param)",pathHelpLong:"\u8DEF\u5F84\u652F\u6301\u901A\u914D\u7B26 (*) \u5339\u914D\u4EFB\u610F\u5B57\u7B26\uFF0C\u4EE5\u53CA\u53C2\u6570\u5360\u4F4D\u7B26 (:param) \u6355\u83B7\u8DEF\u5F84\u7247\u6BB5",pathCannotBeChanged:"\u7F16\u8F91\u6A21\u5F0F\u4E0B\u8DEF\u5F84\u4E0D\u53EF\u4FEE\u6539",pathRewrite:"\u8DEF\u5F84\u91CD\u5199",pathRewriteHelp:"\u4F7F\u7528\u6B63\u5219\u8868\u8FBE\u5F0F\u6A21\u5F0F\u4FEE\u6539\u8BF7\u6C42\u8DEF\u5F84",pathRewriteTooltip:"\u8DEF\u5F84\u91CD\u5199\u5141\u8BB8\u4F7F\u7528\u6B63\u5219\u8868\u8FBE\u5F0F\u5339\u914D\u548C\u66FF\u6362\u8BF7\u6C42\u8DEF\u5F84\u3002\u4F8B\u5982\uFF1A^/api/v1 \u2192 /api/v2 \u4F1A\u5C06\u6240\u6709 /api/v1 \u5F00\u5934\u7684\u8DEF\u5F84\u91CD\u5199\u4E3A /api/v2",addPathRewriteRule:"\u6DFB\u52A0\u8DEF\u5F84\u91CD\u5199\u89C4\u5219",patternPlaceholder:"\u5339\u914D\u6B63\u5219\u8868\u8FBE\u5F0F (\u5982 ^/test)",replacementPlaceholder:"\u91CD\u5199\u8DEF\u5F84 (\u5982 /v1)",confirmDeleteRule:"\u786E\u5B9A\u8981\u5220\u9664\u8FD9\u6761\u89C4\u5219\u5417\uFF1F",upstreamCountTooltip:"\u5DF2\u914D\u7F6E {count} \u4E2A\u4E0A\u6E38\u670D\u52A1\u5668",upstreams:"\u4E0A\u6E38\u670D\u52A1\u5668",upstreamsHelp:"\u914D\u7F6E\u4E00\u4E2A\u6216\u591A\u4E2A\u4E0A\u6E38\u670D\u52A1\u5668",addUpstream:"\u6DFB\u52A0\u4E0A\u6E38",transformer:"\u8DEF\u7531\u8F6C\u6362\u5668",transformerHelp:"\u5E94\u7528\u4E8E\u6574\u4E2A\u8DEF\u7531\u7684\u8F6C\u6362\u5668\uFF08\u53EF\u9009\uFF09",noPluginsAvailable:"\u5F53\u524D\u65E0\u53EF\u7528\u8DEF\u7531\u8F6C\u6362\u5668\u63D2\u4EF6",optional:"\u53EF\u9009",basicInfo:"\u57FA\u672C\u4FE1\u606F",requestModification:"\u8BF7\u6C42\u4FEE\u6539",requestModificationHelp:"\u4FEE\u6539\u53D1\u9001\u5230\u4E0A\u6E38\u7684\u8BF7\u6C42\u5934\u3001\u8BF7\u6C42\u4F53\u548C\u67E5\u8BE2\u53C2\u6570",routeLevelModificationNote:"\u8FD9\u4E9B\u89C4\u5219\u5E94\u7528\u4E8E\u6240\u6709\u4E0A\u6E38\u670D\u52A1\u5668",preview:"\u914D\u7F6E\u9884\u89C8",previewHelp:"\u67E5\u770B\u8DEF\u7531\u914D\u7F6E\u7684\u53EF\u89C6\u5316\u9884\u89C8",features:"\u529F\u80FD",featuresEnabled:"\u5DF2\u542F\u7528",enabledFeatures:"\u5DF2\u542F\u7528\u529F\u80FD",notSet:"\u672A\u8BBE\u7F6E",totalWeight:"\u603B\u6743\u91CD",jsonConfig:"JSON \u914D\u7F6E",requestFlow:"\u8BF7\u6C42\u6D41\u7A0B",clientRequest:"\u5BA2\u6237\u7AEF\u8BF7\u6C42",selectUpstream:"\u9009\u62E9\u4E0A\u6E38",returnResponse:"\u8FD4\u56DE\u54CD\u5E94",failoverEnabled:"\u6545\u969C\u8F6C\u79FB\u5DF2\u542F\u7528",templateApplied:"\u6A21\u677F\u5DF2\u5E94\u7528",confirmCancel:"\u786E\u5B9A\u8981\u53D6\u6D88\u5417\uFF1F\u672A\u4FDD\u5B58\u7684\u66F4\u6539\u5C06\u4E22\u5931\u3002",failoverTitle:"\u6545\u969C\u8F6C\u79FB",failoverHelp:"\u914D\u7F6E\u81EA\u52A8\u6545\u969C\u8F6C\u79FB\u548C\u5065\u5EB7\u68C0\u67E5\u673A\u5236",enableFailover:"\u542F\u7528\u81EA\u52A8\u6545\u969C\u8F6C\u79FB",retryableStatusCodes:"\u53EF\u91CD\u8BD5\u7684\u72B6\u6001\u7801",retryableStatusCodesPlaceholder:"\u9ED8\u8BA4: 500, 502, 503, 504\uFF08\u670D\u52A1\u5668\u9519\u8BEF\uFF09",retryableStatusCodesHelp:"\u9047\u5230\u8FD9\u4E9B\u72B6\u6001\u7801\u65F6\u5C06\u81EA\u52A8\u91CD\u8BD5\u5176\u4ED6\u4E0A\u6E38",passiveHealthCheck:"\u88AB\u52A8\u5065\u5EB7\u68C0\u67E5",passiveHealthCheckTooltip:"\u901A\u8FC7\u76D1\u63A7\u5B9E\u9645\u8BF7\u6C42\u7684\u6210\u529F\u5931\u8D25\u6765\u5224\u65AD\u4E0A\u6E38\u5065\u5EB7\u72B6\u6001\uFF0C\u65E0\u9700\u989D\u5916\u63A2\u6D4B\u8BF7\u6C42",consecutiveFailuresThreshold:"\u8FDE\u7EED\u5931\u8D25\u9608\u503C",consecutiveFailuresThresholdHelp:"\u8FDE\u7EED\u5931\u8D25\u591A\u5C11\u6B21\u540E\u6807\u8BB0\u4E3A\u4E0D\u5065\u5EB7\uFF08\u9ED8\u8BA4\uFF1A3\uFF09",healthyThreshold:"\u5065\u5EB7\u9608\u503C",healthyThresholdHelp:"\u8FDE\u7EED\u6210\u529F\u591A\u5C11\u6B21\u540E\u6062\u590D\u4E3A\u5065\u5EB7\uFF08\u9ED8\u8BA4\uFF1A2\uFF09",requestTimeoutMs:"\u8BF7\u6C42\u8D85\u65F6\uFF08\u6BEB\u79D2\uFF09",requestTimeoutMsHelp:"\u6B63\u5E38\u8BF7\u6C42\u7684\u8D85\u65F6\u65F6\u95F4\uFF08\u9ED8\u8BA4\uFF1A30000ms\uFF09",connectTimeoutMs:"\u8FDE\u63A5\u8D85\u65F6\uFF08\u6BEB\u79D2\uFF09",connectTimeoutMsHelp:"\u5EFA\u7ACB\u8FDE\u63A5\u7684\u8D85\u65F6\u65F6\u95F4\uFF08\u9ED8\u8BA4\uFF1A5000ms\uFF09",activeHealthCheck:"\u4E3B\u52A8\u5065\u5EB7\u68C0\u67E5",activeHealthCheckTooltip:"\u5B9A\u671F\u5411\u4E0A\u6E38\u53D1\u9001\u63A2\u6D4B\u8BF7\u6C42\u6765\u4E3B\u52A8\u68C0\u6D4B\u5065\u5EB7\u72B6\u6001\uFF0C\u72EC\u7ACB\u4E8E\u4E1A\u52A1\u6D41\u91CF",enableActiveHealthCheck:"\u542F\u7528\u4E3B\u52A8\u5065\u5EB7\u68C0\u67E5",healthCheckIntervalMs:"\u68C0\u67E5\u95F4\u9694\uFF08\u6BEB\u79D2\uFF09",healthCheckIntervalMsHelp:"\u6BCF\u9694\u591A\u4E45\u6267\u884C\u4E00\u6B21\u5065\u5EB7\u68C0\u67E5\uFF08\u9ED8\u8BA4\uFF1A10000ms\uFF09",healthCheckTimeoutMs:"\u68C0\u67E5\u8D85\u65F6\uFF08\u6BEB\u79D2\uFF09",healthCheckTimeoutMsHelp:"\u5065\u5EB7\u68C0\u67E5\u8BF7\u6C42\u7684\u8D85\u65F6\u65F6\u95F4\uFF08\u9ED8\u8BA4\uFF1A3000ms\uFF09",healthCheckPath:"\u68C0\u67E5\u8DEF\u5F84",healthCheckPathHelp:"\u5065\u5EB7\u68C0\u67E5\u7684 HTTP \u8DEF\u5F84\uFF08\u9ED8\u8BA4\uFF1A/health\uFF09",healthCheckMethod:"HTTP \u65B9\u6CD5",healthCheckExpectedStatus:"\u671F\u671B\u72B6\u6001\u7801",healthCheckExpectedStatusHelp:"\u5065\u5EB7\u68C0\u67E5\u671F\u671B\u8FD4\u56DE\u7684\u72B6\u6001\u7801\uFF08\u9ED8\u8BA4\uFF1A200\uFF09",healthCheckUnhealthyThreshold:"\u4E0D\u5065\u5EB7\u9608\u503C",healthCheckUnhealthyThresholdHelp:"\u8FDE\u7EED\u5931\u8D25\u591A\u5C11\u6B21\u6807\u8BB0\u4E3A\u4E0D\u5065\u5EB7\uFF08\u9ED8\u8BA4\uFF1A3\uFF09",healthCheckHealthyThreshold:"\u5065\u5EB7\u9608\u503C",healthCheckHealthyThresholdHelp:"\u8FDE\u7EED\u6210\u529F\u591A\u5C11\u6B21\u6062\u590D\u4E3A\u5065\u5EB7\uFF08\u9ED8\u8BA4\uFF1A2\uFF09",slowStart:"\u6162\u542F\u52A8",slowStartTooltip:"\u6062\u590D\u7684\u4E0A\u6E38\u9010\u6B65\u589E\u52A0\u6D41\u91CF\uFF0C\u907F\u514D\u77AC\u95F4\u538B\u529B\u5BFC\u81F4\u518D\u6B21\u6545\u969C",enableSlowStart:"\u542F\u7528\u6162\u542F\u52A8\u673A\u5236",slowStartDurationMs:"\u6162\u542F\u52A8\u6301\u7EED\u65F6\u95F4\uFF08\u6BEB\u79D2\uFF09",slowStartDurationMsHelp:"\u4ECE\u4E0D\u5065\u5EB7\u6062\u590D\u540E\u9010\u6B65\u589E\u52A0\u6743\u91CD\u7684\u65F6\u95F4\uFF08\u9ED8\u8BA4\uFF1A30000ms\uFF09",slowStartInitialWeightFactor:"\u521D\u59CB\u6743\u91CD\u56E0\u5B50",slowStartInitialWeightFactorHelp:"\u6062\u590D\u540E\u521D\u59CB\u6743\u91CD\u7684\u6BD4\u4F8B\uFF0C0.1 \u8868\u793A 10%\uFF08\u9ED8\u8BA4\uFF1A0.1\uFF09",failoverInfoNotice:"\u6545\u969C\u8F6C\u79FB\u529F\u80FD\u53EF\u4EE5\u81EA\u52A8\u68C0\u6D4B\u4E0A\u6E38\u5065\u5EB7\u72B6\u6001\uFF0C\u5728\u6545\u969C\u65F6\u5207\u6362\u5230\u5907\u7528\u4E0A\u6E38\uFF0C\u4FDD\u8BC1\u670D\u52A1\u53EF\u7528\u6027\u3002",recoveryIntervalMs:"\u6062\u590D\u68C0\u6D4B\u95F4\u9694\uFF08\u6BEB\u79D2\uFF09",recoveryIntervalPlaceholder:"5000",recoveryIntervalHelp:"\u4E0A\u6E38\u5931\u8D25\u540E\u7B49\u5F85\u591A\u4E45\u5C1D\u8BD5\u6062\u590D",recoveryTimeoutMs:"\u6062\u590D\u8D85\u65F6\u65F6\u95F4\uFF08\u6BEB\u79D2\uFF09",recoveryTimeoutPlaceholder:"3000",recoveryTimeoutHelp:"\u6062\u590D\u8BF7\u6C42\u7684\u8D85\u65F6\u65F6\u95F4\uFF0C\u907F\u514D\u957F\u65F6\u95F4 pending",saveRoute:"\u4FDD\u5B58\u8DEF\u7531",cancel:"\u53D6\u6D88",saving:"\u4FDD\u5B58\u4E2D...",loadingTemplates:"\u52A0\u8F7D\u6A21\u677F\u4E2D...",useTemplate:"\u4F7F\u7528\u6A21\u677F",routeSaved:"\u8DEF\u7531\u5DF2\u4FDD\u5B58",routeUpdated:"\u8DEF\u7531\u5DF2\u66F4\u65B0",saveFailed:"\u4FDD\u5B58\u5931\u8D25: {error}",pathRequired:"\u8DEF\u7531\u8DEF\u5F84\u4E0D\u80FD\u4E3A\u7A7A",upstreamRequired:"\u81F3\u5C11\u9700\u8981\u4E00\u4E2A\u4E0A\u6E38\u670D\u52A1\u5668"},d={upstreams:"{count} \u4E2A\u4E0A\u6E38",hasTransformer:"\u5E26\u8F6C\u6362\u5668",routeAuth:"\u8DEF\u7531\u8BA4\u8BC1",failover:"\u6545\u969C\u8F6C\u79FB",edit:"\u7F16\u8F91",duplicate:"\u590D\u5236",delete:"\u5220\u9664",duplicating:"\u590D\u5236\u4E2D...",deleting:"\u5220\u9664\u4E2D...",viewAll:"\u67E5\u770B\u5168\u90E8 {count} \u4E2A\u4E0A\u6E38\u670D\u52A1\u5668",moreActions:"\u66F4\u591A\u64CD\u4F5C",tableHeaders:{status:"\u72B6\u6001",target:"\u4E3B\u673A\u5730\u5740",weight:"\u6743\u91CD",priority:"\u4F18\u5148\u7EA7"},pathRewrite:{original:"\u539F\u59CB",rewriteTo:"\u91CD\u5199\u4E3A"}},u={title:"\u4E0A\u6E38\u670D\u52A1\u5668\u5217\u8868",close:"\u5173\u95ED",statusHealthy:"\u5065\u5EB7",statusUnhealthy:"\u5F02\u5E38",statusUnknown:"\u672A\u77E5",saved:"\u4E0A\u6E38\u914D\u7F6E\u5DF2\u66F4\u65B0",saveFailed:"\u4FDD\u5B58\u5931\u8D25: {error}",saving:"\u6B63\u5728\u4FDD\u5B58...",confirmDiscard:"\u60A8\u6709\u672A\u4FDD\u5B58\u7684\u4FEE\u6539\uFF0C\u786E\u5B9A\u8981\u653E\u5F03\u5417\uFF1F",fixErrors:"\u8BF7\u4FEE\u6B63\u9A8C\u8BC1\u9519\u8BEF\u540E\u518D\u4FDD\u5B58",validationFailed:"\u914D\u7F6E\u9A8C\u8BC1\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u6240\u6709\u5B57\u6BB5"},c={title:"\u4E0A\u6E38\u670D\u52A1\u5668 #{index}",priority:"\u4F18\u5148\u7EA7",status:"\u542F\u7528",target:"\u76EE\u6807\u5730\u5740",targetUrl:"\u76EE\u6807\u5730\u5740",targetPlaceholder:"https://api.example.com",targetHelp:"\u4E0A\u6E38\u670D\u52A1\u5668\u7684\u5B8C\u6574 URL",weight:"\u6743\u91CD",weightHelp:"\u8D1F\u8F7D\u5747\u8861\u6743\u91CD\uFF081-100\uFF09",transformer:"\u4E0A\u6E38\u8F6C\u6362\u5668",transformerHelp:"\u4EC5\u5E94\u7528\u4E8E\u6B64\u4E0A\u6E38\u7684\u8F6C\u6362\u5668\uFF08\u53EF\u9009\uFF09",disabled:"\u7981\u7528",disabledHelp:"\u52FE\u9009\u540E\u8BE5\u4E0A\u6E38\u5C06\u4E0D\u53C2\u4E0E\u8D1F\u8F7D\u5747\u8861",enableTooltip:"\u70B9\u51FB\u542F\u7528",disableTooltip:"\u70B9\u51FB\u7981\u7528",description:"\u5907\u6CE8",descriptionHelp:"\u4E0A\u6E38\u670D\u52A1\u5668\u7684\u5907\u6CE8\u4FE1\u606F\uFF08\u53EF\u9009\uFF09",descriptionPlaceholder:"\u4F8B\u5982\uFF1A\u4E3B\u6570\u636E\u5E93\u670D\u52A1\u5668",remove:"\u79FB\u9664\u4E0A\u6E38",targetRequired:"\u76EE\u6807\u5730\u5740\u4E0D\u80FD\u4E3A\u7A7A",invalidUrl:"\u65E0\u6548\u7684 URL \u683C\u5F0F"},p={selectPlugin:"\u9009\u62E9\u63D2\u4EF6",none:"\u65E0\u63D2\u4EF6",description:"\u63D2\u4EF6\u8BF4\u660E",testPlugin:"\u6D4B\u8BD5\u63D2\u4EF6",testing:"\u6D4B\u8BD5\u4E2D...",input:"\u8F93\u5165\uFF08\u539F\u59CB\u683C\u5F0F\uFF09",output:"\u8F93\u51FA\uFF08\u8F6C\u6362\u540E\u683C\u5F0F\uFF09",inputPlaceholder:"\u8F93\u5165\u6D4B\u8BD5\u6570\u636E...",testSuccess:"\u8F6C\u6362\u6210\u529F",testFailed:"\u8F6C\u6362\u5931\u8D25: {error}"},h={title:"\u8BF7\u6C42\u5934",add:"\u6DFB\u52A0",addHeader:"\u6DFB\u52A0\u8BF7\u6C42\u5934",name:"\u540D\u79F0",namePlaceholder:"Content-Type",value:"\u503C",valuePlaceholder:"application/json",remove:"\u79FB\u9664",replace:"\u66FF\u6362",default:"\u9ED8\u8BA4",empty:"\u6682\u65E0\u8BF7\u6C42\u5934"},m={title:"\u8BF7\u6C42\u4F53",bodyType:"\u8BF7\u6C42\u4F53\u7C7B\u578B",json:"JSON",text:"\u7EAF\u6587\u672C",form:"\u8868\u5355\u6570\u636E",none:"\u65E0\u8BF7\u6C42\u4F53",placeholder:"\u8F93\u5165\u8BF7\u6C42\u4F53\u5185\u5BB9...",jsonInvalid:"\u65E0\u6548\u7684 JSON \u683C\u5F0F",add:"\u6DFB\u52A0",remove:"\u79FB\u9664",replace:"\u66FF\u6362",default:"\u9ED8\u8BA4",empty:"\u6682\u65E0\u5B57\u6BB5"},g={title:"\u67E5\u8BE2\u53C2\u6570",name:"\u53C2\u6570\u540D",namePlaceholder:"\u53C2\u6570\u540D\u79F0",value:"\u53C2\u6570\u503C",valuePlaceholder:"\u53C2\u6570\u503C",add:"\u6DFB\u52A0",remove:"\u79FB\u9664",replace:"\u66FF\u6362",default:"\u9ED8\u8BA4",empty:"\u6682\u65E0\u53C2\u6570"},v={title:"\u6761\u4EF6\u8868\u8FBE\u5F0F",placeholder:"request.headers[\'User-Agent\'].includes(\'Mobile\')",help:"\u4F7F\u7528 JavaScript \u8868\u8FBE\u5F0F\uFF0C\u8FD4\u56DE true \u6216 false",examples:"\u793A\u4F8B",example1:"\u68C0\u67E5\u8BF7\u6C42\u5934",example2:"\u68C0\u67E5\u67E5\u8BE2\u53C2\u6570",example3:"\u68C0\u67E5\u8BF7\u6C42\u65B9\u6CD5",test:"\u6D4B\u8BD5\u8868\u8FBE\u5F0F",testResult:"\u6D4B\u8BD5\u7ED3\u679C",resultTrue:"\u6761\u4EF6\u4E3A\u771F",resultFalse:"\u6761\u4EF6\u4E3A\u5047",resultError:"\u8868\u8FBE\u5F0F\u9519\u8BEF: {error}"},y={title:"\u8DEF\u7531\u6A21\u677F",subtitle:"\u5FEB\u901F\u521B\u5EFA\u5E38\u7528\u8DEF\u7531\u914D\u7F6E",useTemplate:"\u4F7F\u7528\u6B64\u6A21\u677F",categories:{api:"API \u4EE3\u7406",static:"\u9759\u6001\u8D44\u6E90",websocket:"WebSocket",auth:"\u8BA4\u8BC1\u4EE3\u7406"},restApi:{name:"REST API \u4EE3\u7406",description:"\u6807\u51C6\u7684 RESTful API \u4EE3\u7406\u914D\u7F6E"},graphql:{name:"GraphQL API",description:"GraphQL \u7AEF\u70B9\u4EE3\u7406"},static:{name:"\u9759\u6001\u6587\u4EF6\u670D\u52A1",description:"\u4EE3\u7406\u9759\u6001\u8D44\u6E90\u6587\u4EF6"},websocket:{name:"WebSocket \u4EE3\u7406",description:"\u5B9E\u65F6\u901A\u4FE1 WebSocket \u4EE3\u7406"},loadBalancing:{name:"\u8D1F\u8F7D\u5747\u8861",description:"\u591A\u4E0A\u6E38\u8D1F\u8F7D\u5747\u8861\u914D\u7F6E"}},T={yes:"\u786E\u5B9A",no:"\u53D6\u6D88",cancelTitle:"\u786E\u8BA4\u53D6\u6D88",cancelMessage:"\u786E\u5B9A\u8981\u53D6\u6D88\u7F16\u8F91\u5E76\u8FD4\u56DE\u5417\uFF1F\u672A\u4FDD\u5B58\u7684\u66F4\u6539\u5C06\u4E22\u5931\u3002",restoreDraftTitle:"\u6062\u590D\u8349\u7A3F",restoreDraftMessage:"\u68C0\u6D4B\u5230\u6709\u672A\u4FDD\u5B58\u7684\u8349\u7A3F\uFF0C\u662F\u5426\u6062\u590D\uFF1F"},f={targetRequired:"\u76EE\u6807\u5730\u5740\u4E0D\u80FD\u4E3A\u7A7A",targetProtocol:"\u76EE\u6807\u5730\u5740\u5FC5\u987B\u4F7F\u7528 http \u6216 https \u534F\u8BAE",invalidUrl:"\u65E0\u6548\u7684 URL \u683C\u5F0F",weightPositive:"\u6743\u91CD\u5FC5\u987B\u662F\u6B63\u6570",priorityNonNegative:"\u4F18\u5148\u7EA7\u5FC5\u987B\u662F\u975E\u8D1F\u6570",totalWeightPositive:"\u603B\u6743\u91CD\u5FC5\u987B\u5927\u4E8E 0",unknownTransformer:"\u672A\u77E5\u7684\u8F6C\u6362\u5668: {transformer}\u3002\u53EF\u7528\u9009\u9879: {options}",pathRequired:"\u8DEF\u5F84\u4E0D\u80FD\u4E3A\u7A7A",pathStartSlash:"\u8DEF\u5F84\u5FC5\u987B\u4EE5 / \u5F00\u5934",upstreamRequired:"\u81F3\u5C11\u9700\u8981\u4E00\u4E2A\u4E0A\u6E38\u670D\u52A1\u5668",invalidRegex:"\u65E0\u6548\u7684\u6B63\u5219\u8868\u8FBE\u5F0F: {pattern}",invalidStatusCode:"\u65E0\u6548\u7684\u72B6\u6001\u7801: {code}",recoveryIntervalPositive:"\u6062\u590D\u95F4\u9694\u5FC5\u987B\u5927\u4E8E 0",recoveryTimeoutPositive:"\u6062\u590D\u8D85\u65F6\u65F6\u95F4\u5FC5\u987B\u5927\u4E8E 0",expressionEmpty:"\u8868\u8FBE\u5F0F\u4E0D\u80FD\u4E3A\u7A7A",mismatchedBraces:"{{ }} \u62EC\u53F7\u4E0D\u5339\u914D",mismatchedParentheses:"\u62EC\u53F7\u4E0D\u5339\u914D",mismatchedQuotes:"\u5F15\u53F7\u4E0D\u5339\u914D",valid:"\u914D\u7F6E\u6709\u6548",errors:"\u4E2A\u9519\u8BEF",allGood:"\u914D\u7F6E\u6B63\u786E"},R={title:"\u5FEB\u6377\u952E",save:"\u4FDD\u5B58",cancel:"\u53D6\u6D88",switchSection:"\u5207\u6362\u533A\u57DF"},b={lastSaved:"\u4E0A\u6B21\u4FDD\u5B58",justNow:"\u521A\u521A",minutesAgo:"{minutes} \u5206\u949F\u524D",hoursAgo:"{hours} \u5C0F\u65F6\u524D",restoreDraft:"\u68C0\u6D4B\u5230\u672A\u4FDD\u5B58\u7684\u8349\u7A3F\uFF0C\u662F\u5426\u6062\u590D\uFF1F"},H={globalAuth:"\u5168\u5C40\u8BA4\u8BC1",routeAuth:"\u8DEF\u7531\u8BA4\u8BC1",helpText:"\u4FDD\u62A4\u60A8\u7684 API \u7AEF\u70B9",enableAuth:"\u542F\u7528\u8BA4\u8BC1",enabled:"\u5DF2\u542F\u7528",disabled:"\u5DF2\u7981\u7528",tokens:"\u4EE4\u724C\u5217\u8868",tokenPlaceholder:"\u8F93\u5165 token \u6216\u4F7F\u7528 {{ env.TOKEN_NAME }}",addToken:"\u6DFB\u52A0\u4EE4\u724C",expressionSupport:"\u652F\u6301\u8868\u8FBE\u5F0F\u8BED\u6CD5\u6765\u5F15\u7528\u73AF\u5883\u53D8\u91CF\uFF1A",securityNotice:"\u542F\u7528\u8BA4\u8BC1\u540E\uFF0CAuthorization header \u4F1A\u81EA\u52A8\u79FB\u9664\uFF0C\u4E0D\u4F1A\u8F6C\u53D1\u7ED9\u4E0A\u6E38\u670D\u52A1\u5668\uFF08\u5B89\u5168\u63AA\u65BD\uFF09\u3002",routeAuthHelp:"\u8DEF\u7531\u7EA7\u8BA4\u8BC1\u5C06\u8986\u76D6\u5168\u5C40\u8BA4\u8BC1\u914D\u7F6E\u3002\u5982\u679C\u672A\u914D\u7F6E\uFF0C\u5219\u4F7F\u7528\u5168\u5C40\u8BA4\u8BC1\u8BBE\u7F6E\u3002"},S={title:"\u8BF7\u6C42\u65E5\u5FD7",filters:"\u7B5B\u9009\u5668",autoRefresh:"\u81EA\u52A8\u5237\u65B0",refreshInterval:"\u5237\u65B0\u95F4\u9694",refreshEvery5s:"\u6BCF 5 \u79D2",refreshEvery10s:"\u6BCF 10 \u79D2",refreshEvery30s:"\u6BCF 30 \u79D2",refreshEvery60s:"\u6BCF 60 \u79D2",lastRefreshed:"\u4E0A\u6B21\u5237\u65B0",newDataAvailable:"\u6709\u65B0\u6570\u636E\u53EF\u7528\uFF0C\u70B9\u51FB\u5237\u65B0\u67E5\u770B",searchTerm:"\u641C\u7D22",searchPlaceholder:"\u641C\u7D22\u8DEF\u5F84\u6216\u9519\u8BEF\u4FE1\u606F...",method:"HTTP \u65B9\u6CD5",allMethods:"\u6240\u6709\u65B9\u6CD5",status:"\u72B6\u6001\u7801",statusPlaceholder:"\u4F8B\u5982\uFF1A200\u3001404\u3001500",result:"\u7ED3\u679C",allResults:"\u5168\u90E8",success:"\u6210\u529F",failed:"\u5931\u8D25",timeRange:"\u65F6\u95F4\u8303\u56F4",allTime:"\u5168\u90E8\u65F6\u95F4",recentTime:"\u6700\u8FD1\u65F6\u95F4",customTime:"\u81EA\u5B9A\u4E49\u8303\u56F4",recentHours:"\u6700\u8FD1\u5C0F\u65F6\u6570",startTime:"\u5F00\u59CB\u65F6\u95F4",endTime:"\u7ED3\u675F\u65F6\u95F4",sortBy:"\u6392\u5E8F\u65B9\u5F0F",sortByTimestamp:"\u65F6\u95F4\u6233",sortByDuration:"\u6301\u7EED\u65F6\u95F4",sortByStatus:"\u72B6\u6001\u7801",sortOrder:"\u6392\u5E8F",asc:"\u5347\u5E8F",desc:"\u964D\u5E8F",time:"\u65F6\u95F4",path:"\u8DEF\u5F84",duration:"\u6301\u7EED\u65F6\u95F4",requestType:"\u7C7B\u578B",requestTypeFilter:"\u8BF7\u6C42\u7C7B\u578B",requestType_all:"\u5168\u90E8\u7C7B\u578B",requestType_final:"\u6700\u7EC8\u8BF7\u6C42",requestType_retry:"\u91CD\u8BD5\u8BF7\u6C42",requestType_recovery:"\u6062\u590D\u6D4B\u8BD5",requestType_final_desc:"\u8FD4\u56DE\u5BA2\u6237\u7AEF\u7684\u8BF7\u6C42",requestType_retry_desc:"\u91CD\u8BD5\u5C1D\u8BD5",requestType_recovery_desc:"\u6545\u969C\u6062\u590D\u6D4B\u8BD5",upstream:"\u4E0A\u6E38",actions:"\u64CD\u4F5C",viewDetail:"\u8BE6\u60C5",export:"\u5BFC\u51FA",startStream:"\u542F\u52A8\u6D41",stopStream:"\u505C\u6B62\u6D41",showing:"\u663E\u793A {start}-{end}\uFF0C\u5171 {total} \u6761",page:"\u7B2C {page} \u9875\uFF0C\u5171 {totalPages} \u9875",noData:"\u6682\u65E0\u65E5\u5FD7\u6570\u636E",advancedFilters:"\u9AD8\u7EA7\u7B5B\u9009",activeFilters:"\u4E2A\u7B5B\u9009\u6761\u4EF6",clearFilters:"\u6E05\u9664\u5168\u90E8",moreFilters:"\u66F4\u591A\u7B5B\u9009",detail:{title:"\u8BF7\u6C42\u65E5\u5FD7\u8BE6\u60C5",requestId:"\u8BF7\u6C42 ID",timestamp:"\u65F6\u95F4\u6233",method:"\u65B9\u6CD5",status:"\u72B6\u6001",duration:"\u6301\u7EED\u65F6\u95F4",success:"\u6210\u529F",requestInfo:"\u8BF7\u6C42\u4FE1\u606F",path:"\u8DEF\u5F84",originalPath:"\u539F\u59CB\u8DEF\u5F84",transformedPath:"\u8F6C\u6362\u540E",query:"\u67E5\u8BE2\u5B57\u7B26\u4E32",routePath:"\u5339\u914D\u8DEF\u7531",upstreamInfo:"\u4E0A\u6E38\u4FE1\u606F",upstream:"\u4E0A\u6E38",transformer:"\u8F6C\u6362\u5668",authInfo:"\u8BA4\u8BC1\u4FE1\u606F",authLevel:"\u8BA4\u8BC1\u7EA7\u522B",authResult:"\u7ED3\u679C",authSuccess:"\u5DF2\u8BA4\u8BC1",authFailed:"\u5931\u8D25",processingSteps:"\u5904\u7406\u6B65\u9AA4",errorInfo:"\u9519\u8BEF\u4FE1\u606F",requestBody:"\u8BF7\u6C42\u4F53",responseBody:"\u54CD\u5E94\u4F53",loadRequestBody:"\u52A0\u8F7D\u8BF7\u6C42\u4F53",loadResponseBody:"\u52A0\u8F7D\u54CD\u5E94\u4F53",bodyNotRecorded:"\u6B64\u8BF7\u6C42\u672A\u8BB0\u5F55 Body",bodyNotRecordedReason:"\u53EF\u80FD\u8D85\u8FC7\u5927\u5C0F\u9650\u5236\u6216\u4E3A\u7A7A",originalRequest:"\u539F\u59CB\u8BF7\u6C42\uFF08\u8F6C\u6362\u524D\uFF09",finalRequest:"\u6700\u7EC8\u8BF7\u6C42\uFF08\u53D1\u9001\u7ED9\u4E0A\u6E38\uFF09",responseData:"\u54CD\u5E94\u6570\u636E\uFF08\u4E0A\u6E38\u8FD4\u56DE\uFF09",originalHeaders:"\u539F\u59CB\u8BF7\u6C42\u5934",finalHeaders:"\u6700\u7EC8\u8BF7\u6C42\u5934",requestHeaders:"\u8BF7\u6C42\u5934",responseHeaders:"\u54CD\u5E94\u5934",bodyPreview:"Body \u9884\u89C8",bodyTooLarge:"Body \u8FC7\u5927 ({size})",clickToExpand:"\u70B9\u51FB\u5C55\u5F00",headers:"\u4E2A\u8BF7\u6C42\u5934",noHeaders:"\u6682\u65E0\u8BF7\u6C42\u5934",noBody:"\u6682\u65E0 Body \u6570\u636E",overview:"\u6982\u89C8",routeAndUpstream:"\u8DEF\u7531\u4E0E\u4E0A\u6E38",processingTimeline:"\u5904\u7406\u65F6\u95F4\u7EBF",totalSteps:"\u5171 {count} \u6B65",totalDuration:"\u603B\u8017\u65F6 {duration}",showTimeline:"\u663E\u793A\u65F6\u95F4\u7EBF",hideTimeline:"\u9690\u85CF\u65F6\u95F4\u7EBF",copyToClipboard:"\u590D\u5236",downloadJson:"\u4E0B\u8F7D JSON",copied:"\u5DF2\u590D\u5236\uFF01",tabOriginalRequest:"\u539F\u59CB\u8BF7\u6C42",tabFinalRequest:"\u8F6C\u6362\u540E",tabResponse:"\u54CD\u5E94\u6570\u636E",requestData:"\u8BF7\u6C42\u6570\u636E",noDataAvailable:"\u6682\u65E0\u6570\u636E",step:"\u6B65\u9AA4"},steps:{route_matched:"\u8DEF\u7531\u5339\u914D",request_snapshot_created:"\u8BF7\u6C42\u5FEB\u7167\u521B\u5EFA",auth_failed:"\u8BA4\u8BC1\u5931\u8D25",auth_success:"\u8BA4\u8BC1\u6210\u529F",upstream_selected:"\u4E0A\u6E38\u9009\u62E9",trying_upstream:"\u5C1D\u8BD5\u4E0A\u6E38",circuit_breaker_closed:"\u65AD\u8DEF\u5668\u5173\u95ED",circuit_breaker_opened:"\u65AD\u8DEF\u5668\u6253\u5F00",circuit_breaker_reopened:"\u65AD\u8DEF\u5668\u91CD\u65B0\u6253\u5F00",upstream_recovered:"\u4E0A\u6E38\u6062\u590D",upstream_retry:"\u4E0A\u6E38\u91CD\u8BD5",upstream_failed:"\u4E0A\u6E38\u5931\u8D25",plugin_request_init:"\u63D2\u4EF6\u8BF7\u6C42\u521D\u59CB\u5316",plugin_before_request:"\u63D2\u4EF6\u8BF7\u6C42\u524D\u5904\u7406",plugin_intercepted:"\u63D2\u4EF6\u62E6\u622A\u8BF7\u6C42",plugin_response:"\u63D2\u4EF6\u54CD\u5E94\u5904\u7406",plugin_error:"\u63D2\u4EF6\u9519\u8BEF\u5904\u7406"}},P={title:"\u65E5\u5FD7\u914D\u7F6E",bodyRecording:"\u542F\u7528\u8BF7\u6C42/\u54CD\u5E94\u4F53\u8BB0\u5F55",bodyRecordingHelp:"\u8BB0\u5F55\u8BF7\u6C42\u548C\u54CD\u5E94\u4F53\u7528\u4E8E\u95EE\u9898\u6392\u67E5\u548C\u5206\u6790",maxSize:"\u6700\u5927 Body \u5927\u5C0F",maxSizeHelp:"\u8D85\u8FC7\u6B64\u5927\u5C0F\u7684 Body \u5C06\u88AB\u8DF3\u8FC7\uFF081-100 KB\uFF09",retentionDays:"Body \u4FDD\u7559\u5929\u6570",retentionDaysHelp:"Body \u5C06\u5728\u8FD9\u4E9B\u5929\u6570\u540E\u81EA\u52A8\u5220\u9664",days:"\u5929",hours:"\u5C0F\u65F6",cleanupConfig:"\u6E05\u7406\u914D\u7F6E",cleanupStatus:"\u72B6\u6001",active:"\u6D3B\u8DC3",inactive:"\u672A\u6D3B\u8DC3",cleanupRetention:"\u4FDD\u7559\u65F6\u957F",cleanupInterval:"\u6E05\u7406\u95F4\u9694",manualCleanup:"\u624B\u52A8\u6E05\u7406",confirmCleanup:"\u786E\u5B9A\u8981\u624B\u52A8\u89E6\u53D1\u65E5\u5FD7\u6E05\u7406\u5417\uFF1F\u8FD9\u5C06\u5220\u9664\u6240\u6709\u8D85\u8FC7\u914D\u7F6E\u4FDD\u7559\u671F\u9650\u7684\u65E5\u5FD7\u548C Body\u3002",cleanupSuccess:"\u6E05\u7406\u6210\u529F\u5B8C\u6210",cleanupFailed:"\u6E05\u7406\u5931\u8D25: {error}",lastCleanup:"\u4E0A\u6B21\u6E05\u7406\u7ED3\u679C",deletedSqliteRecords:"\u5DF2\u5220\u9664 SQLite \u8BB0\u5F55",deletedFileLogFiles:"\u5DF2\u5220\u9664\u65E5\u5FD7\u6587\u4EF6",deletedBodyFiles:"\u5DF2\u5220\u9664 Body \u6587\u4EF6",dirs:"\u76EE\u5F55",files:"\u6587\u4EF6",duration:"\u8017\u65F6"},q={title:"\u767B\u5F55",subtitle:"\u8F93\u5165\u8BBF\u95EE\u4EE4\u724C\u4EE5\u7EE7\u7EED",token:"\u8BBF\u95EE\u4EE4\u724C",tokenPlaceholder:"\u8BF7\u8F93\u5165\u8BBF\u95EE\u4EE4\u724C...",submit:"\u767B\u5F55",loggingIn:"\u767B\u5F55\u4E2D...",success:"\u767B\u5F55\u6210\u529F",failed:"\u767B\u5F55\u5931\u8D25\uFF1A{error}",required:"\u8BBF\u95EE\u4EE4\u724C\u4E0D\u80FD\u4E3A\u7A7A",unauthorized:"\u8BBF\u95EE\u4EE4\u724C\u65E0\u6548",logout:"\u9000\u51FA\u767B\u5F55",logoutConfirm:"\u786E\u5B9A\u8981\u9000\u51FA\u767B\u5F55\u5417\uFF1F"},w={common:e,nav:t,breadcrumb:r,dashboard:a,monitoring:o,routes:s,configuration:l,notFound:i,routeEditor:n,routeCard:d,upstreamsModal:u,upstream:c,plugin:p,headers:h,body:m,query:g,expression:v,templates:y,confirmDialog:T,validation:f,shortcuts:R,autosave:b,auth:H,logs:S,logging:P,login:q};export{H as auth,b as autosave,m as body,r as breadcrumb,e as common,l as configuration,T as confirmDialog,a as dashboard,w as default,v as expression,h as headers,P as logging,q as login,S as logs,o as monitoring,t as nav,i as notFound,p as plugin,g as query,d as routeCard,n as routeEditor,s as routes,R as shortcuts,y as templates,c as upstream,u as upstreamsModal,f as validation};\n',
21256
+ "en-B5SyMyPb.js": 'const e={error:"Error",loading:"Loading...",save:"Save",cancel:"Cancel",delete:"Delete",edit:"Edit",add:"Add",confirm:"Confirm",reset:"Reset",refresh:"Refresh",search:"Search",filter:"Filter",export:"Export",import:"Import",close:"Close",show:"Show",hide:"Hide",copy:"Copy",copied:"Copied"},t={dashboard:"Dashboard",home:"Home",routes:"Routes",logs:"Request Logs",configuration:"Configuration"},a={home:"Home",routes:"Route Management",newRoute:"New Route",editRoute:"Edit Route"},r={title:"Dashboard",dataRange:"Data Time Range",totalRequests:"Total Requests",requestsPerSec:"Requests/sec",requestsPerSecond:"Requests/sec",successRate:"Success Rate",avgResponseTime:"Avg Response Time",upstreamAnalysis:"Upstream Analysis",upstreamDistribution:"Upstream Request Distribution",upstreamFailures:"Upstream Failure Statistics",upstreamStatusCodes:"Upstream Status Code Distribution",noUpstreamData:"No upstream data available for the selected time range",noData:"No data available"},o={title:"Monitoring Charts",range:{"1h":"1 Hour","12h":"12 Hours","24h":"24 Hours",oneHour:"1 Hour",twelveHours:"12 Hours",twentyFourHours:"24 Hours"},charts:{requestsTrend:"Requests Trend",periodRequests:"Period Requests",requests:"Requests",responseTimeTrend:"Response Time Trend",avgResponseTime:"Avg Response Time (ms)",milliseconds:"Milliseconds (ms)",successRateTrend:"Success Rate Trend",successRate:"Success Rate (%)",percentage:"Percentage (%)",errorsTrend:"Errors Trend",periodErrors:"Period Errors",errors:"Errors"},noData:"No historical data available"},s={title:"Routes",subtitle:"Manage your reverse proxy routes and upstreams",addRoute:"Add Route",newRoute:"+ New Route",createFirstRoute:"Create First Route",editRoute:"Edit Route",deleteRoute:"Delete Route",export:"Export",import:"Import",path:"Path",upstreams:"Upstreams",actions:"Actions",searchPlaceholder:"Search routes or upstreams...",allTransformers:"All Transformers",noRoutes:"No routes configured",noRoutesMessage:"Create your first route to start proxying requests",noMatchingRoutes:"No matching routes",noMatchingMessage:"Try adjusting your search or filter criteria",showingRoutes:"Showing {count} of {total} route(s)",confirmDelete:"Confirm Delete Route",confirmDeleteMessage:\'Are you sure you want to delete route "{path}"? This action cannot be undone.\',deleted:\'Route "{path}" has been deleted\',deleteFailed:"Delete failed: {error}",duplicated:\'Route "{path}" has been duplicated\',duplicateFailed:"Duplicate failed: {error}",noRoutesToExport:"No routes to export",exported:"Routes exported",importMustBeArray:"Import file must be an array of routes",importSuccess:"Successfully imported {success} route(s)",importPartialSuccess:"Successfully imported {success} route(s), failed {failed}",importFailed:"Import failed: {error}",filterStatus:{all:"All Status",healthy:"Healthy Only",unhealthy:"Has Issues"}},i={title:"Configuration",subtitle:"Edit and manage system configuration",export:"Export",import:"Import",reload:"Reload",restart:"Restart Service",formEditor:"Form Editor",jsonEditor:"JSON Editor",systemSettings:"System Settings",serverPort:"Server Port",workerProcesses:"Worker Processes",workerProcessesHelp:"Number of worker processes to spawn",logLevel:"Log Level",bodyParserLimit:"Body Parser Limit",bodyParserLimitHelp:\'Maximum request body size (e.g., "50mb", "100kb")\',requiresRestart:"Note: Changes to Port, Workers, Log Level, and Body Parser Limit require a service restart to take effect.",routesConfigured:"{count} routes configured.",manageRoutes:"Use the Routes page to manage routes.",jsonConfiguration:"JSON Configuration",jsonParseError:"JSON Parse Error: {error}",jsonPlaceholder:"Enter JSON configuration...",jsonHelp:"Edit the raw JSON configuration. Changes will be validated before saving.",unsavedChanges:"You have unsaved changes",reset:"Reset",save:"Save Configuration",confirmRestart:"Confirm Service Restart",restartMessage:"Are you sure you want to restart the service? This will cause a brief interruption (typically 2-3 seconds) as the service gracefully restarts.",restartWarning:"Active connections may be temporarily interrupted.",validationFailed:"Configuration validation failed: {error}",saved:"Configuration saved",saveFailed:"Save failed: {error}",exported:"Configuration exported",imported:"Configuration imported",importFailed:"Import failed: {error}",reloaded:"Configuration successfully reloaded",reloadFailed:"Reload failed: {error}",restartSent:"Restart signal sent, service will restart in a few seconds",restartDaemonOnly:\'Restart feature is only available in daemon mode. Please use "bungee restart" command or manually restart the development server.\',restartFailed:"Restart failed: {error}"},l={title:"404",message:"Page Not Found",goHome:"Go Home"},n={newRoute:"New Route",editRoute:"Edit Route",backToList:"Back to List",routePath:"Route Path",pathPlaceholder:"e.g.: /api/*",pathHelp:"Supports wildcards (*) and parameters (:param)",pathHelpLong:"Paths support wildcards (*) to match any characters and parameter placeholders (:param) to capture path segments",pathRewrite:"Path Rewrite",pathRewriteHelp:"Regex patterns to modify request paths",pathRewriteTooltip:"Path rewrite allows using regex patterns to match and replace request paths. Example: ^/api/v1 \u2192 /api/v2 will rewrite all paths starting with /api/v1 to /api/v2",addPathRewriteRule:"Add Path Rewrite Rule",patternPlaceholder:"Match regex pattern (e.g. ^/test)",replacementPlaceholder:"Rewrite path (e.g. /v1)",confirmDeleteRule:"Are you sure you want to delete this rule?",upstreamCountTooltip:"Configured {count} upstream server(s)",upstreams:"Upstreams",addUpstream:"Add Upstream",transformer:"Route Transformer",transformerHelp:"Transformer applied to the entire route (optional)",noPluginsAvailable:"No route transformer plugins available",optional:"Optional",failoverTitle:"Failover",failoverHelp:"Configure automatic failover and health check mechanisms",enableFailover:"Enable automatic failover",retryableStatusCodes:"Retryable Status Codes",retryableStatusCodesPlaceholder:"Default: 500, 502, 503, 504 (Server Errors)",retryableStatusCodesHelp:"Automatically retry other upstreams when these status codes occur",passiveHealthCheck:"Passive Health Check",passiveHealthCheckTooltip:"Monitors actual request success/failure to determine upstream health, no extra probe requests",consecutiveFailuresThreshold:"Consecutive Failures Threshold",consecutiveFailuresThresholdHelp:"Mark as unhealthy after this many consecutive failures (default: 3)",healthyThreshold:"Healthy Threshold",healthyThresholdHelp:"Recover to healthy after this many consecutive successes (default: 2)",requestTimeoutMs:"Request Timeout (ms)",requestTimeoutMsHelp:"Timeout for normal requests (default: 30000ms)",connectTimeoutMs:"Connect Timeout (ms)",connectTimeoutMsHelp:"Timeout for establishing connection (default: 5000ms)",activeHealthCheck:"Active Health Check",activeHealthCheckTooltip:"Periodically sends probe requests to actively detect upstream health, independent of business traffic",enableActiveHealthCheck:"Enable active health check",healthCheckIntervalMs:"Check Interval (ms)",healthCheckIntervalMsHelp:"How often to perform health checks (default: 10000ms)",healthCheckTimeoutMs:"Check Timeout (ms)",healthCheckTimeoutMsHelp:"Timeout for health check requests (default: 3000ms)",healthCheckPath:"Check Path",healthCheckPathHelp:"HTTP path for health checks (default: /health)",healthCheckMethod:"HTTP Method",healthCheckExpectedStatus:"Expected Status Codes",healthCheckExpectedStatusHelp:"Expected status codes for health checks (default: 200)",healthCheckUnhealthyThreshold:"Unhealthy Threshold",healthCheckUnhealthyThresholdHelp:"Mark as unhealthy after this many consecutive failures (default: 3)",healthCheckHealthyThreshold:"Healthy Threshold",healthCheckHealthyThresholdHelp:"Recover to healthy after this many consecutive successes (default: 2)",slowStart:"Slow Start",slowStartTooltip:"Gradually increases traffic to recovered upstreams to prevent immediate overload and re-failure",enableSlowStart:"Enable slow start mechanism",slowStartDurationMs:"Slow Start Duration (ms)",slowStartDurationMsHelp:"Duration to gradually increase weight after recovery (default: 30000ms)",slowStartInitialWeightFactor:"Initial Weight Factor",slowStartInitialWeightFactorHelp:"Initial weight ratio after recovery, 0.1 means 10% (default: 0.1)",failoverInfoNotice:"Failover automatically detects upstream health status and switches to backup upstreams on failure to ensure service availability.",recoveryIntervalMs:"Recovery Interval (ms)",recoveryIntervalPlaceholder:"5000",recoveryIntervalHelp:"Wait time before attempting to recover a failed upstream",recoveryTimeoutMs:"Recovery Timeout (ms)",recoveryTimeoutPlaceholder:"3000",recoveryTimeoutHelp:"Timeout for recovery attempts to avoid long pending requests",saveRoute:"Save Route",cancel:"Cancel",saving:"Saving...",loadingTemplates:"Loading templates...",useTemplate:"Use Template",routeSaved:"Route saved",routeUpdated:"Route updated",saveFailed:"Save failed: {error}",pathRequired:"Route path cannot be empty",upstreamRequired:"At least one upstream is required"},u={upstreams:"{count} upstream(s)",hasTransformer:"With transformer",routeAuth:"Auth",failover:"Failover",edit:"Edit",duplicate:"Duplicate",delete:"Delete",duplicating:"Duplicating...",deleting:"Deleting...",viewAll:"View all {count} upstream servers",moreActions:"More Actions",tableHeaders:{status:"Status",target:"Target",weight:"Weight",priority:"Priority"},pathRewrite:{original:"Original",rewriteTo:"Rewrite to"}},d={title:"Upstream Servers",close:"Close",statusHealthy:"Healthy",statusUnhealthy:"Unhealthy",statusUnknown:"Unknown",saved:"Upstream configuration updated",saveFailed:"Save failed: {error}",saving:"Saving...",confirmDiscard:"You have unsaved changes. Are you sure you want to discard them?",fixErrors:"Please fix validation errors before saving",validationFailed:"Configuration validation failed. Please check all fields"},c={title:"Upstream #{index}",priority:"Priority",status:"Enabled",target:"Target",targetUrl:"Target URL",targetPlaceholder:"https://api.example.com",targetHelp:"Full URL of the upstream server",weight:"Weight",weightHelp:"Load balancing weight (1-100)",transformer:"Upstream Transformer",transformerHelp:"Transformer applied only to this upstream (optional)",disabled:"Disable",disabledHelp:"When checked, this upstream will not participate in load balancing",enableTooltip:"Click to enable",disableTooltip:"Click to disable",description:"Remark",descriptionHelp:"Remark for the upstream server (optional)",descriptionPlaceholder:"e.g., Primary database server",remove:"Remove Upstream",targetRequired:"Target URL cannot be empty",invalidUrl:"Invalid URL format"},p={selectPlugin:"Select Plugin",none:"No Plugin",description:"Plugin Description",testPlugin:"Test Plugin",testing:"Testing...",input:"Input (Original Format)",output:"Output (Transformed Format)",inputPlaceholder:"Enter test data...",testSuccess:"Transform successful",testFailed:"Transform failed: {error}"},h={title:"Request Headers",add:"Add",addHeader:"Add Header",name:"Name",namePlaceholder:"Content-Type",value:"Value",valuePlaceholder:"application/json",remove:"Remove",replace:"Replace",default:"Default",empty:"No headers"},m={title:"Request Body",bodyType:"Body Type",json:"JSON",text:"Plain Text",form:"Form Data",none:"No Body",placeholder:"Enter request body content...",jsonInvalid:"Invalid JSON format",add:"Add",remove:"Remove",replace:"Replace",default:"Default",empty:"No fields"},g={title:"Query Parameters",name:"Name",namePlaceholder:"param_name",value:"Value",valuePlaceholder:"param_value",add:"Add",remove:"Remove",replace:"Replace",default:"Default",empty:"No parameters"},f={title:"Conditional Expression",placeholder:"request.headers[\'User-Agent\'].includes(\'Mobile\')",help:"Use JavaScript expressions that return true or false",examples:"Examples",example1:"Check request headers",example2:"Check query parameters",example3:"Check request method",test:"Test Expression",testResult:"Test Result",resultTrue:"Condition is true",resultFalse:"Condition is false",resultError:"Expression error: {error}"},y={title:"Route Templates",subtitle:"Quickly create common route configurations",useTemplate:"Use This Template",categories:{api:"API Proxy",static:"Static Resources",websocket:"WebSocket",auth:"Auth Proxy"},restApi:{name:"REST API Proxy",description:"Standard RESTful API proxy configuration"},graphql:{name:"GraphQL API",description:"GraphQL endpoint proxy"},static:{name:"Static File Server",description:"Proxy static resource files"},websocket:{name:"WebSocket Proxy",description:"Real-time communication WebSocket proxy"},loadBalancing:{name:"Load Balancing",description:"Multi-upstream load balancing configuration"}},v={yes:"Yes",no:"No",cancelTitle:"Confirm Cancel",cancelMessage:"Are you sure you want to cancel and go back? Any unsaved changes will be lost.",restoreDraftTitle:"Restore Draft",restoreDraftMessage:"An unsaved draft was detected. Would you like to restore it?"},R={targetRequired:"Target URL cannot be empty",targetProtocol:"Target URL must use http or https protocol",invalidUrl:"Invalid URL format",weightPositive:"Weight must be positive",priorityNonNegative:"Priority must be non-negative",totalWeightPositive:"Total weight must be greater than 0",unknownTransformer:"Unknown transformer: {transformer}. Available options: {options}",pathRequired:"Path cannot be empty",pathStartSlash:"Path must start with /",upstreamRequired:"At least one upstream is required",invalidRegex:"Invalid regular expression: {pattern}",invalidStatusCode:"Invalid status code: {code}",recoveryIntervalPositive:"Recovery interval must be greater than 0",recoveryTimeoutPositive:"Recovery timeout must be greater than 0",expressionEmpty:"Expression cannot be empty",mismatchedBraces:"Mismatched {{ }} braces",mismatchedParentheses:"Mismatched parentheses",mismatchedQuotes:"Mismatched quotes"},T={globalAuth:"Global Authentication",routeAuth:"Route Authentication",helpText:"Protect your API endpoints",enableAuth:"Enable Authentication",enabled:"Enabled",disabled:"Disabled",tokens:"Token List",tokenPlaceholder:"Enter token or use {{ env.TOKEN_NAME }}",addToken:"Add Token",expressionSupport:"Expression syntax is supported for referencing environment variables:",securityNotice:"When authentication is enabled, the Authorization header is automatically removed and will not be forwarded to upstream servers (security measure).",routeAuthHelp:"Route-level authentication will override global authentication configuration. If not configured, the global authentication settings will be used."},b={title:"Request Logs",filters:"Filters",autoRefresh:"Auto Refresh",refreshInterval:"Refresh Interval",refreshEvery5s:"Every 5s",refreshEvery10s:"Every 10s",refreshEvery30s:"Every 30s",refreshEvery60s:"Every 60s",lastRefreshed:"Last refreshed",newDataAvailable:"New data available, click refresh to view",searchTerm:"Search",searchPlaceholder:"Search path or error message...",method:"HTTP Method",allMethods:"All Methods",status:"Status Code",statusPlaceholder:"e.g., 200, 404, 500",result:"Result",allResults:"All",success:"Success",failed:"Failed",timeRange:"Time Range",allTime:"All Time",recentTime:"Recent Time",customTime:"Custom Range",recentHours:"Recent Hours",startTime:"Start Time",endTime:"End Time",sortBy:"Sort By",sortByTimestamp:"Timestamp",sortByDuration:"Duration",sortByStatus:"Status Code",sortOrder:"Order",asc:"Ascending",desc:"Descending",time:"Time",path:"Path",duration:"Duration",requestType:"Type",requestTypeFilter:"Request Type",requestType_all:"All Types",requestType_final:"Final",requestType_retry:"Retry",requestType_recovery:"Recovery",requestType_final_desc:"Request returned to client",requestType_retry_desc:"Retry attempt",requestType_recovery_desc:"Failover recovery test",upstream:"Upstream",actions:"Actions",viewDetail:"Details",export:"Export",startStream:"Start Stream",stopStream:"Stop Stream",showing:"Showing {start}-{end} of {total}",page:"Page {page} of {totalPages}",noData:"No log data available",advancedFilters:"Advanced Filters",activeFilters:"active filter(s)",clearFilters:"Clear All",moreFilters:"More Filters",detail:{title:"Request Log Details",requestId:"Request ID",timestamp:"Timestamp",method:"Method",status:"Status",duration:"Duration",success:"Success",requestInfo:"Request Information",path:"Path",originalPath:"Original Path",transformedPath:"Transformed Path",query:"Query String",routePath:"Matched Route",upstreamInfo:"Upstream Information",upstream:"Upstream",transformer:"Transformer",authInfo:"Authentication Information",authLevel:"Auth Level",authResult:"Result",authSuccess:"Authenticated",authFailed:"Failed",processingSteps:"Processing Steps",errorInfo:"Error Information",requestBody:"Request Body",responseBody:"Response Body",loadRequestBody:"Load Request Body",loadResponseBody:"Load Response Body",bodyNotRecorded:"Body not recorded for this request",bodyNotRecordedReason:"May have exceeded size limit or was empty",originalRequest:"Original Request (Before Transform)",finalRequest:"Final Request (To Upstream)",responseData:"Response Data (From Upstream)",originalHeaders:"Original Headers",finalHeaders:"Final Headers",requestHeaders:"Request Headers",responseHeaders:"Response Headers",bodyPreview:"Body Preview",bodyTooLarge:"Body too large ({size})",clickToExpand:"Click to expand",headers:"headers",noHeaders:"No headers available",noBody:"No body data",overview:"Overview",routeAndUpstream:"Route & Upstream",processingTimeline:"Processing Timeline",totalSteps:"{count} steps",totalDuration:"took {duration}",showTimeline:"Show Timeline",hideTimeline:"Hide Timeline",copyToClipboard:"Copy",downloadJson:"Download JSON",copied:"Copied!",tabOriginalRequest:"Original",tabFinalRequest:"Transformed",tabResponse:"Response",requestData:"Request Data",noDataAvailable:"No data available",step:"Step"},steps:{route_matched:"Route Matched",request_snapshot_created:"Request Snapshot Created",auth_failed:"Authentication Failed",auth_success:"Authentication Success",upstream_selected:"Upstream Selected",trying_upstream:"Trying Upstream",circuit_breaker_closed:"Circuit Breaker Closed",circuit_breaker_opened:"Circuit Breaker Opened",circuit_breaker_reopened:"Circuit Breaker Reopened",upstream_recovered:"Upstream Recovered",upstream_retry:"Upstream Retry",upstream_failed:"Upstream Failed",plugin_request_init:"Plugin Request Init",plugin_before_request:"Plugin Before Request",plugin_intercepted:"Plugin Intercepted Request",plugin_response:"Plugin Response",plugin_error:"Plugin Error"}},S={title:"Logging Configuration",bodyRecording:"Enable Request/Response Body Recording",bodyRecordingHelp:"Record request and response bodies for troubleshooting and analysis",maxSize:"Maximum Body Size",maxSizeHelp:"Bodies larger than this will be skipped (1-100 KB)",retentionDays:"Body Retention Days",retentionDaysHelp:"Bodies will be automatically deleted after this many days",days:"days",hours:"hours",cleanupConfig:"Cleanup Configuration",cleanupStatus:"Status",active:"Active",inactive:"Inactive",cleanupRetention:"Retention",cleanupInterval:"Cleanup Interval",manualCleanup:"Manual Cleanup",confirmCleanup:"Are you sure you want to manually trigger log cleanup? This will delete all logs and bodies older than the configured retention period.",cleanupSuccess:"Cleanup completed successfully",cleanupFailed:"Cleanup failed: {error}",lastCleanup:"Last Cleanup Results",deletedSqliteRecords:"Deleted SQLite records",deletedFileLogFiles:"Deleted log files",deletedBodyFiles:"Deleted body files",dirs:"directories",files:"files",duration:"Duration"},P={title:"Login",subtitle:"Enter your access token to continue",token:"Access Token",tokenPlaceholder:"Enter your access token...",submit:"Login",loggingIn:"Logging in...",success:"Login successful",failed:"Login failed: {error}",required:"Access token is required",unauthorized:"Invalid access token",logout:"Logout",logoutConfirm:"Are you sure you want to logout?"},C={common:e,nav:t,breadcrumb:a,dashboard:r,monitoring:o,routes:s,configuration:i,notFound:l,routeEditor:n,routeCard:u,upstreamsModal:d,upstream:c,plugin:p,headers:h,body:m,query:g,expression:f,templates:y,confirmDialog:v,validation:R,auth:T,logs:b,logging:S,login:P};export{T as auth,m as body,a as breadcrumb,e as common,i as configuration,v as confirmDialog,r as dashboard,C as default,f as expression,h as headers,S as logging,P as login,b as logs,o as monitoring,t as nav,l as notFound,p as plugin,g as query,u as routeCard,n as routeEditor,s as routes,y as templates,c as upstream,d as upstreamsModal,R as validation};\n',
21257
+ "index-Cy9q-Fz4.js": `import{r as Yp,g as v0,i as k0,$ as Qp,w as Xn,d as Zp,S as Kt,a as Gt,s as Yt,L as w0,b as R,c as Rt,t as lt,e as $e,f as q,m as qt,h as i,j as Ht,k as o,l as Nt,o as Hs,n as xn,D as y0,B as C0,p as v,q as Ql,u as Zl,v as s,x as _,y as h,z as Dt,A as ot,E as ie,F as Pu,G as mt,H as X,I as O,J as G,K as ft,M as $t,N as nr,O as Ct,P as Gl,Q as yl,R as Ll,T as jl,U as St,V as Dl,W as Cl,X as Cs,Y as na,Z as Lu,_ as or,a0 as Xp,a1 as lr,a2 as Qi,a3 as s1,a4 as E0,a5 as T0,a6 as S0}from"./vendor-COcP1wx5.js";import{C as ju,a as xp,b as $p,P as M0,c as R0,p as q0,d as Du,e as Bu,A as H0,f as P0}from"./vendor-charts-CBipcgT3.js";import{s as L0}from"./vendor-lodash-CRdCilnf.js";(function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))n(r);new MutationObserver(r=>{for(const a of r)if(a.type==="childList")for(const f of a.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&n(f)}).observe(document,{childList:!0,subtree:!0});function e(r){const a={};return r.integrity&&(a.integrity=r.integrity),r.referrerPolicy&&(a.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?a.credentials="include":r.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(r){if(r.ep)return;r.ep=!0;const a=e(r);fetch(r.href,a)}})();const j0="modulepreload",D0=function(t){return"/__ui/"+t},o1={},e0=function(l,e,n){let r=Promise.resolve();if(e&&e.length>0){let f=function(c){return Promise.all(c.map(p=>Promise.resolve(p).then(m=>({status:"fulfilled",value:m}),m=>({status:"rejected",reason:m}))))};document.getElementsByTagName("link");const u=document.querySelector("meta[property=csp-nonce]"),d=u?.nonce||u?.getAttribute("nonce");r=f(e.map(c=>{if(c=D0(c),c in o1)return;o1[c]=!0;const p=c.endsWith(".css"),m=p?'[rel="stylesheet"]':"";if(document.querySelector(\`link[href="\${c}"]\${m}\`))return;const g=document.createElement("link");if(g.rel=p?"stylesheet":j0,p||(g.as="script"),g.crossOrigin="",g.href=c,d&&g.setAttribute("nonce",d),document.head.appendChild(g),p)return new Promise((b,k)=>{g.addEventListener("load",b),g.addEventListener("error",()=>k(new Error(\`Unable to preload CSS for \${c}\`)))})}))}function a(f){const u=new Event("vite:preloadError",{cancelable:!0});if(u.payload=f,window.dispatchEvent(u),!u.defaultPrevented)throw f}return r.then(f=>{for(const u of f||[])u.status==="rejected"&&a(u.reason);return l().catch(a)})},t0="zh-CN",l0="locale",Zi=[{code:"zh-CN",name:"\u4E2D\u6587"},{code:"en",name:"English"}];Yp("zh-CN",()=>e0(()=>import("./zh-CN-Diwokmw7.js"),[]));Yp("en",()=>e0(()=>import("./en-B5SyMyPb.js"),[]));function B0(){return typeof localStorage<"u"?localStorage.getItem(l0):null}function I0(t){typeof localStorage<"u"&&localStorage.setItem(l0,t)}function A0(t){Qp.set(t),I0(t)}const F0=B0(),z0=v0(),O0=F0||z0||t0;k0({fallbackLocale:t0,initialLocale:O0});const rr="bungee_auth_token",s0=Xn(typeof window<"u"?localStorage.getItem(rr):null),sa=Xn(typeof window<"u"?!!localStorage.getItem(rr):!1),n1=Xn(!1);function N0(t){typeof window>"u"||(localStorage.setItem(rr,t),s0.set(t),sa.set(!0))}function o0(){typeof window>"u"||(localStorage.removeItem(rr),s0.set(null),sa.set(!1))}function n0(){return typeof window>"u"?null:localStorage.getItem(rr)}const U0="/__ui/api";async function Xi(t,l){const e=\`\${U0}\${t}\`,n=n0(),r={"Content-Type":"application/json",...l?.headers};n&&(r.Authorization=\`Bearer \${n}\`);const a=await fetch(e,{...l,headers:r});if(a.status===401)throw o0(),window.location.hash="#/login",new Error("Unauthorized: Please login");if(!a.ok){const u=await a.json().catch(()=>({error:"Unknown error"}));throw new Error(u.error||\`Request failed with status \${a.status}\`)}return await a.json()}const ql={get:t=>Xi(t),post:(t,l)=>Xi(t,{method:"POST",body:JSON.stringify(l)}),put:(t,l)=>Xi(t,{method:"PUT",body:JSON.stringify(l)}),delete:t=>Xi(t,{method:"DELETE"})};async function Iu(){return ql.get("/config")}async function V0(t){return ql.put("/config",t)}async function J0(t){return ql.post("/config/validate",t)}async function W0(t="1h"){return ql.get(\`/stats/history/v2?range=\${t}\`)}async function K0(t="1h"){return ql.get(\`/stats/upstream-status-codes?range=\${t}\`)}async function r1(t="1h",l="all"){return ql.get(\`/stats/upstream-stats?range=\${t}&type=\${l}\`)}const i1=typeof window<"u";function G0(){const{subscribe:t,set:l}=Xn({textColor:"rgba(255, 255, 255, 0.9)",gridColor:"rgba(255, 255, 255, 0.1)"});let e=null,n=null,r=!1;function a(){if(!i1)return;const d=document.createElement("div");d.className="text-base-content",d.style.position="absolute",d.style.visibility="hidden",document.body.appendChild(d);const c=getComputedStyle(d).color;document.body.removeChild(d);const p=c.match(/rgba?\\((\\d+),\\s*(\\d+),\\s*(\\d+)(?:,\\s*[\\d.]+)?\\)/);if(p){const m=parseInt(p[1]),g=parseInt(p[2]),b=parseInt(p[3]),w=(m*299+g*587+b*114)/1e3<128?.2:.15,y=\`rgba(\${m}, \${g}, \${b}, \${w})\`;l({textColor:c,gridColor:y})}else l({textColor:"rgba(100, 100, 100, 0.9)",gridColor:"rgba(100, 100, 100, 0.2)"})}function f(){if(!i1||r)return;r=!0,a(),e=new MutationObserver(()=>{a()}),e.observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme","class"]}),n=window.matchMedia("(prefers-color-scheme: dark)");const d=()=>a();n.addEventListener("change",d),typeof window<"u"&&window.addEventListener("beforeunload",()=>{u()})}function u(){e&&(e.disconnect(),e=null),n&&(n.removeEventListener("change",a),n=null),r=!1}return{subscribe:t,init:f,cleanup:u}}const zs=G0();Zp(zs,t=>t.textColor);Zp(zs,t=>t.gridColor);function Au(t,l,e=!0){return{display:e&&!!t,text:t,color:l,font:{size:16,weight:"bold"}}}function Y0(t,l={}){const{position:e="top",display:n=!0,padding:r=15,fontSize:a=11}=l;return{display:n,position:e,labels:{padding:r,font:{size:a},color:t}}}function oa(t,l,e={}){const{stacked:n=!1,beginAtZero:r=!0,fontSize:a=11,maxRotation:f,minRotation:u,title:d}=e,c={stacked:n,beginAtZero:r,ticks:{font:{size:a},color:t},grid:{color:l}};return d&&(c.title={display:d.display,text:d.text,color:t}),f!==void 0&&(c.ticks.maxRotation=f),u!==void 0&&(c.ticks.minRotation=u),c}function r0(t="index",l=!1){return{mode:t,intersect:l}}const la=new Map,sr=new Map;function i0(t){return la.has(t)||la.set(t,Xn({activeIndex:null})),la.get(t)}function Q0(t,l){sr.has(t)||sr.set(t,new Set),sr.get(t).add(l)}function Z0(t,l){const e=sr.get(t);e&&(e.delete(l),e.size===0&&(sr.delete(t),la.delete(t)))}function a1(t,l,e){i0(t).set({activeIndex:l,sourceChartId:e})}function X0(t){let l=null,e=!1;return{id:\`chartSync-\${t}-\${Math.random().toString(36).substring(2,11)}\`,afterInit(r){Q0(t,r),l=i0(t).subscribe(f=>{e||(f.activeIndex!==null&&f.sourceChartId!==r.id?x0(r,f.activeIndex):f.activeIndex===null&&$0(r))})},afterEvent(r,a){const f=a.event;if(f.type==="mousemove"){const u=r.getElementsAtEventForMode(f,"index",{axis:"x",intersect:!1},!1);if(u.length>0){const d=u[0].index;a1(t,d,r.id),a.changed=!0}}else f.type==="mouseout"&&(a1(t,null,r.id),a.changed=!0)},destroy(r){e=!0,l&&(l(),l=null),Z0(t,r)}}}function x0(t,l){try{if(!t||!t.ctx||!t.tooltip||!t.data.datasets||t.data.datasets.length===0)return;const e=[];for(let n=0;n<t.data.datasets.length;n++){const r=t.data.datasets[n];if(!r.data||l<0||l>=r.data.length)continue;const a=t.getDatasetMeta(n);!a||!a.controller||!a.data||!a.data[l]||e.push({datasetIndex:n,index:l})}if(e.length===0)return;t.tooltip.setActiveElements(e,{x:0,y:0}),t.update("none")}catch(e){console.debug("Chart sync: tooltip update failed (chart may be destroying)",e)}}function $0(t){try{if(!t||!t.ctx||!t.tooltip)return;t.tooltip.setActiveElements([],{x:0,y:0}),t.update("none")}catch(l){console.debug("Chart sync: tooltip hide failed (chart may be destroying)",l)}}function e2(t){let l,e,n;return e=new w0({props:{data:t[2],options:t[1],plugins:t[0]}}),{c(){l=i("div"),Ht(e.$$.fragment),o(l,"class","w-full h-full")},m(r,a){q(r,l,a),qt(e,l,null),n=!0},p(r,[a]){const f={};a&4&&(f.data=r[2]),a&2&&(f.options=r[1]),a&1&&(f.plugins=r[0]),e.$set(f)},i(r){n||($e(e.$$.fragment,r),n=!0)},o(r){lt(e.$$.fragment,r),n=!1},d(r){r&&R(l),Rt(e)}}}function t2(t,l,e){let n,r,a,f;Nt(t,zs,g=>e(8,f=g)),ju.register(xp,$p,M0,R0,q0,Du,Bu);let{title:u}=l,{labels:d}=l,{datasets:c}=l,{yAxisLabel:p=""}=l,{syncGroup:m=void 0}=l;return Hs(()=>{zs.init()}),xn(()=>{zs.cleanup()}),t.$$set=g=>{"title"in g&&e(3,u=g.title),"labels"in g&&e(4,d=g.labels),"datasets"in g&&e(5,c=g.datasets),"yAxisLabel"in g&&e(6,p=g.yAxisLabel),"syncGroup"in g&&e(7,m=g.syncGroup)},t.$$.update=()=>{t.$$.dirty&48&&e(2,n={labels:d,datasets:c.map(g=>({...g,borderColor:g.borderColor||"rgb(75, 192, 192)",backgroundColor:g.backgroundColor||"rgba(75, 192, 192, 0.2)",tension:g.tension??.4}))}),t.$$.dirty&360&&e(1,r={responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:c.length>1,position:"top",labels:{color:f.textColor}},title:Au(u,f.textColor,!0),tooltip:r0("index",!1)},scales:{y:oa(f.textColor,f.gridColor,{beginAtZero:!0,title:p?{display:!0,text:p}:void 0}),x:{...oa(f.textColor,f.gridColor),ticks:{maxRotation:45,minRotation:0,autoSkip:!0,maxTicksLimit:10,color:f.textColor}}},interaction:{mode:"index",axis:"x",intersect:!1}}),t.$$.dirty&128&&e(0,a=m?[X0(m)]:[])},[a,r,n,u,d,c,p,m,f]}class xi extends Kt{constructor(l){super(),Gt(this,l,t2,e2,Yt,{title:3,labels:4,datasets:5,yAxisLabel:6,syncGroup:7})}}function l2(t){let l,e,n;return e=new y0({props:{data:t[1],options:t[0]}}),{c(){l=i("div"),Ht(e.$$.fragment),o(l,"class","w-full h-full")},m(r,a){q(r,l,a),qt(e,l,null),n=!0},p(r,[a]){const f={};a&2&&(f.data=r[1]),a&1&&(f.options=r[0]),e.$set(f)},i(r){n||($e(e.$$.fragment,r),n=!0)},o(r){lt(e.$$.fragment,r),n=!1},d(r){r&&R(l),Rt(e)}}}function s2(t,l,e){let n,r,a;Nt(t,zs,d=>e(4,a=d)),ju.register(H0,Du,Bu);let{data:f=[]}=l,{title:u=""}=l;return Hs(()=>{zs.init()}),xn(()=>{zs.cleanup()}),t.$$set=d=>{"data"in d&&e(2,f=d.data),"title"in d&&e(3,u=d.title)},t.$$.update=()=>{t.$$.dirty&20&&e(1,n={labels:f.map(d=>d.label),datasets:[{data:f.map(d=>d.value),backgroundColor:["rgba(59, 130, 246, 0.8)","rgba(16, 185, 129, 0.8)","rgba(245, 158, 11, 0.8)","rgba(239, 68, 68, 0.8)","rgba(168, 85, 247, 0.8)","rgba(236, 72, 153, 0.8)","rgba(20, 184, 166, 0.8)","rgba(251, 146, 60, 0.8)","rgba(132, 204, 22, 0.8)","rgba(148, 163, 184, 0.8)"],borderColor:a.gridColor,borderWidth:1}]}),t.$$.dirty&28&&e(0,r={responsive:!0,maintainAspectRatio:!1,plugins:{title:Au(u,a.textColor),legend:{position:"right",labels:{padding:10,font:{size:11},color:a.textColor,generateLabels:d=>{const p=d.data.datasets[0].backgroundColor,m=d.getDatasetMeta(0);return d.data.labels?.map((g,b)=>{const k=m.data[b],w=k&&typeof k.hidden<"u"?k.hidden:!1;return{text:\`\${g} (\${f[b]?.percentage||0}%)\`,fillStyle:p[b],strokeStyle:p[b],fontColor:a.textColor,hidden:w,index:b,datasetIndex:0}})||[]}},onClick:(d,c,p)=>{const m=c.index,g=p.chart,b=g.getDatasetMeta(0);b.data[m].hidden=!b.data[m].hidden,g.update()}},tooltip:{callbacks:{label:d=>{const c=d.label||"",p=d.parsed||0,m=f[d.dataIndex]?.percentage||0;return\`\${c}: \${p} (\${m}%)\`}}}}})},[r,n,f,u,a]}class a0 extends Kt{constructor(l){super(),Gt(this,l,s2,l2,Yt,{data:2,title:3})}}function o2(t){let l,e,n;return e=new C0({props:{data:t[1],options:t[0]}}),{c(){l=i("div"),Ht(e.$$.fragment),o(l,"class","w-full h-full")},m(r,a){q(r,l,a),qt(e,l,null),n=!0},p(r,[a]){const f={};a&2&&(f.data=r[1]),a&1&&(f.options=r[0]),e.$set(f)},i(r){n||($e(e.$$.fragment,r),n=!0)},o(r){lt(e.$$.fragment,r),n=!1},d(r){r&&R(l),Rt(e)}}}function n2(t,l,e){let n,r,a;Nt(t,zs,d=>e(4,a=d)),ju.register(P0,xp,$p,Du,Bu);let{data:f=[]}=l,{title:u=""}=l;return Hs(()=>{zs.init()}),xn(()=>{zs.cleanup()}),t.$$set=d=>{"data"in d&&e(2,f=d.data),"title"in d&&e(3,u=d.title)},t.$$.update=()=>{t.$$.dirty&4&&e(1,n={labels:f.map(d=>d.label),datasets:[{label:"2xx",data:f.map(d=>d.status2xx),backgroundColor:"rgba(16, 185, 129, 0.8)",borderColor:"rgba(16, 185, 129, 1)",borderWidth:1},{label:"3xx",data:f.map(d=>d.status3xx),backgroundColor:"rgba(59, 130, 246, 0.8)",borderColor:"rgba(59, 130, 246, 1)",borderWidth:1},{label:"4xx",data:f.map(d=>d.status4xx),backgroundColor:"rgba(245, 158, 11, 0.8)",borderColor:"rgba(245, 158, 11, 1)",borderWidth:1},{label:"5xx",data:f.map(d=>d.status5xx),backgroundColor:"rgba(239, 68, 68, 0.8)",borderColor:"rgba(239, 68, 68, 1)",borderWidth:1}]}),t.$$.dirty&24&&e(0,r={responsive:!0,maintainAspectRatio:!1,scales:{x:oa(a.textColor,a.gridColor,{stacked:!0,fontSize:10,maxRotation:45,minRotation:45}),y:oa(a.textColor,a.gridColor,{stacked:!0,beginAtZero:!0,fontSize:11})},plugins:{title:Au(u,a.textColor),legend:Y0(a.textColor,{position:"top",padding:15,fontSize:11}),tooltip:r0("index",!1)}})},[r,n,f,u,a]}class r2 extends Kt{constructor(l){super(),Gt(this,l,n2,o2,Yt,{data:2,title:3})}}function i2(t){let l,e,n,r,a,f=t[11]("monitoring.noData")+"",u;return{c(){l=i("div"),e=ie("svg"),n=ie("path"),r=h(),a=i("span"),u=_(f),o(n,"stroke-linecap","round"),o(n,"stroke-linejoin","round"),o(n,"stroke-width","2"),o(n,"d","M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"),o(e,"xmlns","http://www.w3.org/2000/svg"),o(e,"fill","none"),o(e,"viewBox","0 0 24 24"),o(e,"class","stroke-current shrink-0 w-6 h-6"),o(l,"class","alert alert-info")},m(d,c){q(d,l,c),s(l,e),s(e,n),s(l,r),s(l,a),s(a,u)},p(d,c){c&2048&&f!==(f=d[11]("monitoring.noData")+"")&&v(u,f)},i:ot,o:ot,d(d){d&&R(l)}}}function a2(t){let l,e,n,r,a=t[11]("monitoring.charts.requestsTrend")+"",f,u,d,c,p,m,g,b,k=t[11]("monitoring.charts.responseTimeTrend")+"",w,y,E,C,T,M,P,I,H=t[11]("monitoring.charts.successRateTrend")+"",j,D,B,N,V,Z,Y,x,U=t[11]("monitoring.charts.errorsTrend")+"",Q,S,L,F,z,J,se,oe,fe,pe,ne,de,re,A,le,$,ce=t[11]("dashboard.upstreamFailures")+"",ae,Se,Fe,qe,he,je,Ie,Be,ke,Ce=t[11]("dashboard.upstreamStatusCodes")+"",Re,He,ze,Ne,te,ve;c=new xi({props:{labels:t[10],datasets:[{label:t[11]("monitoring.charts.periodRequests"),data:t[9],borderColor:"rgb(59, 130, 246)",backgroundColor:"rgba(59, 130, 246, 0.1)"}],yAxisLabel:t[11]("monitoring.charts.requests"),syncGroup:"monitoring-trends"}}),C=new xi({props:{labels:t[10],datasets:[{label:t[11]("monitoring.charts.avgResponseTime"),data:t[7],borderColor:"rgb(34, 197, 94)",backgroundColor:"rgba(34, 197, 94, 0.1)"}],yAxisLabel:t[11]("monitoring.charts.milliseconds"),syncGroup:"monitoring-trends"}}),N=new xi({props:{labels:t[10],datasets:[{label:t[11]("monitoring.charts.successRate"),data:t[6],borderColor:"rgb(16, 185, 129)",backgroundColor:"rgba(16, 185, 129, 0.1)"}],yAxisLabel:t[11]("monitoring.charts.percentage"),syncGroup:"monitoring-trends"}}),F=new xi({props:{labels:t[10],datasets:[{label:t[11]("monitoring.charts.periodErrors"),data:t[8],borderColor:"rgb(239, 68, 68)",backgroundColor:"rgba(239, 68, 68, 0.1)"}],yAxisLabel:t[11]("monitoring.charts.errors"),syncGroup:"monitoring-trends"}});const ue=[c2,d2],ge=[];function Ee(_e,Pe){return _e[5].length>0?0:1}ne=Ee(t),de=ge[ne]=ue[ne](t);const ye=[h2,p2],We=[];function Oe(_e,Pe){return _e[4].length>0?0:1}qe=Oe(t),he=We[qe]=ye[qe](t);const et=[g2,m2],Ke=[];function we(_e,Pe){return _e[3].length>0?0:1}return Ne=we(t),te=Ke[Ne]=et[Ne](t),{c(){l=i("div"),e=i("div"),n=i("div"),r=i("h3"),f=_(a),u=h(),d=i("div"),Ht(c.$$.fragment),p=h(),m=i("div"),g=i("div"),b=i("h3"),w=_(k),y=h(),E=i("div"),Ht(C.$$.fragment),T=h(),M=i("div"),P=i("div"),I=i("h3"),j=_(H),D=h(),B=i("div"),Ht(N.$$.fragment),V=h(),Z=i("div"),Y=i("div"),x=i("h3"),Q=_(U),S=h(),L=i("div"),Ht(F.$$.fragment),z=h(),J=i("div"),se=i("div"),oe=i("h3"),oe.textContent="\u4E0A\u6E38\u6210\u529F\u7EDF\u8BA1",fe=h(),pe=i("div"),de.c(),re=h(),A=i("div"),le=i("div"),$=i("h3"),ae=_(ce),Se=h(),Fe=i("div"),he.c(),je=h(),Ie=i("div"),Be=i("div"),ke=i("h3"),Re=_(Ce),He=h(),ze=i("div"),te.c(),o(r,"class","text-base font-semibold mb-3"),o(d,"class","h-64"),o(n,"class","card-body p-4"),o(e,"class","card bg-base-100 shadow-xl"),o(b,"class","text-base font-semibold mb-3"),o(E,"class","h-64"),o(g,"class","card-body p-4"),o(m,"class","card bg-base-100 shadow-xl"),o(I,"class","text-base font-semibold mb-3"),o(B,"class","h-64"),o(P,"class","card-body p-4"),o(M,"class","card bg-base-100 shadow-xl"),o(x,"class","text-base font-semibold mb-3"),o(L,"class","h-64"),o(Y,"class","card-body p-4"),o(Z,"class","card bg-base-100 shadow-xl"),o(oe,"class","text-base font-semibold mb-3"),o(pe,"class","h-64"),o(se,"class","card-body p-4"),o(J,"class","card bg-base-100 shadow-xl"),o($,"class","text-base font-semibold mb-3"),o(Fe,"class","h-64"),o(le,"class","card-body p-4"),o(A,"class","card bg-base-100 shadow-xl"),o(ke,"class","text-base font-semibold mb-3"),o(ze,"class","h-64"),o(Be,"class","card-body p-4"),o(Ie,"class","card bg-base-100 shadow-xl lg:col-span-2"),o(l,"class","grid grid-cols-1 lg:grid-cols-2 gap-6")},m(_e,Pe){q(_e,l,Pe),s(l,e),s(e,n),s(n,r),s(r,f),s(n,u),s(n,d),qt(c,d,null),s(l,p),s(l,m),s(m,g),s(g,b),s(b,w),s(g,y),s(g,E),qt(C,E,null),s(l,T),s(l,M),s(M,P),s(P,I),s(I,j),s(P,D),s(P,B),qt(N,B,null),s(l,V),s(l,Z),s(Z,Y),s(Y,x),s(x,Q),s(Y,S),s(Y,L),qt(F,L,null),s(l,z),s(l,J),s(J,se),s(se,oe),s(se,fe),s(se,pe),ge[ne].m(pe,null),s(l,re),s(l,A),s(A,le),s(le,$),s($,ae),s(le,Se),s(le,Fe),We[qe].m(Fe,null),s(l,je),s(l,Ie),s(Ie,Be),s(Be,ke),s(ke,Re),s(Be,He),s(Be,ze),Ke[Ne].m(ze,null),ve=!0},p(_e,Pe){(!ve||Pe&2048)&&a!==(a=_e[11]("monitoring.charts.requestsTrend")+"")&&v(f,a);const Ze={};Pe&1024&&(Ze.labels=_e[10]),Pe&2560&&(Ze.datasets=[{label:_e[11]("monitoring.charts.periodRequests"),data:_e[9],borderColor:"rgb(59, 130, 246)",backgroundColor:"rgba(59, 130, 246, 0.1)"}]),Pe&2048&&(Ze.yAxisLabel=_e[11]("monitoring.charts.requests")),c.$set(Ze),(!ve||Pe&2048)&&k!==(k=_e[11]("monitoring.charts.responseTimeTrend")+"")&&v(w,k);const Ae={};Pe&1024&&(Ae.labels=_e[10]),Pe&2176&&(Ae.datasets=[{label:_e[11]("monitoring.charts.avgResponseTime"),data:_e[7],borderColor:"rgb(34, 197, 94)",backgroundColor:"rgba(34, 197, 94, 0.1)"}]),Pe&2048&&(Ae.yAxisLabel=_e[11]("monitoring.charts.milliseconds")),C.$set(Ae),(!ve||Pe&2048)&&H!==(H=_e[11]("monitoring.charts.successRateTrend")+"")&&v(j,H);const Ve={};Pe&1024&&(Ve.labels=_e[10]),Pe&2112&&(Ve.datasets=[{label:_e[11]("monitoring.charts.successRate"),data:_e[6],borderColor:"rgb(16, 185, 129)",backgroundColor:"rgba(16, 185, 129, 0.1)"}]),Pe&2048&&(Ve.yAxisLabel=_e[11]("monitoring.charts.percentage")),N.$set(Ve),(!ve||Pe&2048)&&U!==(U=_e[11]("monitoring.charts.errorsTrend")+"")&&v(Q,U);const be={};Pe&1024&&(be.labels=_e[10]),Pe&2304&&(be.datasets=[{label:_e[11]("monitoring.charts.periodErrors"),data:_e[8],borderColor:"rgb(239, 68, 68)",backgroundColor:"rgba(239, 68, 68, 0.1)"}]),Pe&2048&&(be.yAxisLabel=_e[11]("monitoring.charts.errors")),F.$set(be);let rt=ne;ne=Ee(_e),ne===rt?ge[ne].p(_e,Pe):(Ql(),lt(ge[rt],1,1,()=>{ge[rt]=null}),Zl(),de=ge[ne],de?de.p(_e,Pe):(de=ge[ne]=ue[ne](_e),de.c()),$e(de,1),de.m(pe,null)),(!ve||Pe&2048)&&ce!==(ce=_e[11]("dashboard.upstreamFailures")+"")&&v(ae,ce);let dt=qe;qe=Oe(_e),qe===dt?We[qe].p(_e,Pe):(Ql(),lt(We[dt],1,1,()=>{We[dt]=null}),Zl(),he=We[qe],he?he.p(_e,Pe):(he=We[qe]=ye[qe](_e),he.c()),$e(he,1),he.m(Fe,null)),(!ve||Pe&2048)&&Ce!==(Ce=_e[11]("dashboard.upstreamStatusCodes")+"")&&v(Re,Ce);let Me=Ne;Ne=we(_e),Ne===Me?Ke[Ne].p(_e,Pe):(Ql(),lt(Ke[Me],1,1,()=>{Ke[Me]=null}),Zl(),te=Ke[Ne],te?te.p(_e,Pe):(te=Ke[Ne]=et[Ne](_e),te.c()),$e(te,1),te.m(ze,null))},i(_e){ve||($e(c.$$.fragment,_e),$e(C.$$.fragment,_e),$e(N.$$.fragment,_e),$e(F.$$.fragment,_e),$e(de),$e(he),$e(te),ve=!0)},o(_e){lt(c.$$.fragment,_e),lt(C.$$.fragment,_e),lt(N.$$.fragment,_e),lt(F.$$.fragment,_e),lt(de),lt(he),lt(te),ve=!1},d(_e){_e&&R(l),Rt(c),Rt(C),Rt(N),Rt(F),ge[ne].d(),We[qe].d(),Ke[Ne].d()}}}function u2(t){let l,e,n,r,a,f=t[11]("common.error")+"",u,d,c;return{c(){l=i("div"),e=ie("svg"),n=ie("path"),r=h(),a=i("span"),u=_(f),d=_(": "),c=_(t[1]),o(n,"stroke-linecap","round"),o(n,"stroke-linejoin","round"),o(n,"stroke-width","2"),o(n,"d","M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z"),o(e,"xmlns","http://www.w3.org/2000/svg"),o(e,"class","stroke-current shrink-0 h-6 w-6"),o(e,"fill","none"),o(e,"viewBox","0 0 24 24"),o(l,"class","alert alert-error")},m(p,m){q(p,l,m),s(l,e),s(e,n),s(l,r),s(l,a),s(a,u),s(a,d),s(a,c)},p(p,m){m&2048&&f!==(f=p[11]("common.error")+"")&&v(u,f),m&2&&v(c,p[1])},i:ot,o:ot,d(p){p&&R(l)}}}function f2(t){let l;return{c(){l=i("div"),l.innerHTML='<span class="loading loading-spinner loading-lg"></span>',o(l,"class","flex justify-center items-center h-64")},m(e,n){q(e,l,n)},p:ot,i:ot,o:ot,d(e){e&&R(l)}}}function d2(t){let l,e,n,r,a,f=t[11]("dashboard.noData")+"",u;return{c(){l=i("div"),e=ie("svg"),n=ie("path"),r=h(),a=i("span"),u=_(f),o(n,"stroke-linecap","round"),o(n,"stroke-linejoin","round"),o(n,"stroke-width","1.5"),o(n,"d","M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"),o(e,"xmlns","http://www.w3.org/2000/svg"),o(e,"class","h-12 w-12"),o(e,"fill","none"),o(e,"viewBox","0 0 24 24"),o(e,"stroke","currentColor"),o(a,"class","text-sm"),o(l,"class","flex flex-col items-center justify-center h-full gap-3 opacity-60")},m(d,c){q(d,l,c),s(l,e),s(e,n),s(l,r),s(l,a),s(a,u)},p(d,c){c&2048&&f!==(f=d[11]("dashboard.noData")+"")&&v(u,f)},i:ot,o:ot,d(d){d&&R(l)}}}function c2(t){let l,e;return l=new a0({props:{data:t[5]}}),{c(){Ht(l.$$.fragment)},m(n,r){qt(l,n,r),e=!0},p(n,r){const a={};r&32&&(a.data=n[5]),l.$set(a)},i(n){e||($e(l.$$.fragment,n),e=!0)},o(n){lt(l.$$.fragment,n),e=!1},d(n){Rt(l,n)}}}function p2(t){let l,e,n,r,a,f=t[11]("dashboard.noData")+"",u;return{c(){l=i("div"),e=ie("svg"),n=ie("path"),r=h(),a=i("span"),u=_(f),o(n,"stroke-linecap","round"),o(n,"stroke-linejoin","round"),o(n,"stroke-width","1.5"),o(n,"d","M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"),o(e,"xmlns","http://www.w3.org/2000/svg"),o(e,"class","h-12 w-12"),o(e,"fill","none"),o(e,"viewBox","0 0 24 24"),o(e,"stroke","currentColor"),o(a,"class","text-sm"),o(l,"class","flex flex-col items-center justify-center h-full gap-3 opacity-60")},m(d,c){q(d,l,c),s(l,e),s(e,n),s(l,r),s(l,a),s(a,u)},p(d,c){c&2048&&f!==(f=d[11]("dashboard.noData")+"")&&v(u,f)},i:ot,o:ot,d(d){d&&R(l)}}}function h2(t){let l,e;return l=new a0({props:{data:t[4]}}),{c(){Ht(l.$$.fragment)},m(n,r){qt(l,n,r),e=!0},p(n,r){const a={};r&16&&(a.data=n[4]),l.$set(a)},i(n){e||($e(l.$$.fragment,n),e=!0)},o(n){lt(l.$$.fragment,n),e=!1},d(n){Rt(l,n)}}}function m2(t){let l,e,n,r,a,f=t[11]("dashboard.noData")+"",u;return{c(){l=i("div"),e=ie("svg"),n=ie("path"),r=h(),a=i("span"),u=_(f),o(n,"stroke-linecap","round"),o(n,"stroke-linejoin","round"),o(n,"stroke-width","1.5"),o(n,"d","M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"),o(e,"xmlns","http://www.w3.org/2000/svg"),o(e,"class","h-12 w-12"),o(e,"fill","none"),o(e,"viewBox","0 0 24 24"),o(e,"stroke","currentColor"),o(a,"class","text-sm"),o(l,"class","flex flex-col items-center justify-center h-full gap-3 opacity-60")},m(d,c){q(d,l,c),s(l,e),s(e,n),s(l,r),s(l,a),s(a,u)},p(d,c){c&2048&&f!==(f=d[11]("dashboard.noData")+"")&&v(u,f)},i:ot,o:ot,d(d){d&&R(l)}}}function g2(t){let l,e;return l=new r2({props:{data:t[3]}}),{c(){Ht(l.$$.fragment)},m(n,r){qt(l,n,r),e=!0},p(n,r){const a={};r&8&&(a.data=n[3]),l.$set(a)},i(n){e||($e(l.$$.fragment,n),e=!0)},o(n){lt(l.$$.fragment,n),e=!1},d(n){Rt(l,n)}}}function _2(t){let l,e,n,r=t[11]("monitoring.title")+"",a,f,u,d,c;const p=[f2,u2,a2,i2],m=[];function g(b,k){return b[2]&&!b[0]?0:b[1]?1:b[0]&&b[0].timestamps.length>0?2:3}return u=g(t),d=m[u]=p[u](t),{c(){l=i("div"),e=i("div"),n=i("h2"),a=_(r),f=h(),d.c(),o(n,"class","text-2xl font-bold"),o(l,"class","space-y-6")},m(b,k){q(b,l,k),s(l,e),s(e,n),s(n,a),s(l,f),m[u].m(l,null),c=!0},p(b,[k]){(!c||k&2048)&&r!==(r=b[11]("monitoring.title")+"")&&v(a,r);let w=u;u=g(b),u===w?m[u].p(b,k):(Ql(),lt(m[w],1,1,()=>{m[w]=null}),Zl(),d=m[u],d?d.p(b,k):(d=m[u]=p[u](b),d.c()),$e(d,1),d.m(l,null))},i(b){c||($e(d),c=!0)},o(b){lt(d),c=!1},d(b){b&&R(l),m[u].d()}}}function b2(t,l,e){let n,r,a,f,u,d,c,p,m;Nt(t,Dt,j=>e(11,m=j));let{selectedRange:g="1h"}=l,{onDataLoaded:b=()=>{}}=l,k=null,w=!0,y=null,E,C=[],T=[],M=[];async function P(){try{e(2,w=!0),e(0,k=await W0(g)),e(1,y=null)}catch(j){e(1,y=j.message)}finally{e(2,w=!1)}}async function I(){try{const[j,D,B]=await Promise.all([r1(g,"success"),r1(g,"failure"),K0(g)]);e(14,C=j.data),e(15,T=D.data),e(16,M=B.data)}catch(j){console.error("Failed to load upstream stats:",j)}finally{}}async function H(){await Promise.all([P(),I()])}return Hs(()=>{H(),E=setInterval(H,3e4)}),xn(()=>{E&&clearInterval(E)}),t.$$set=j=>{"selectedRange"in j&&e(12,g=j.selectedRange),"onDataLoaded"in j&&e(13,b=j.onDataLoaded)},t.$$.update=()=>{t.$$.dirty&4096&&g&&H(),t.$$.dirty&8195&&(k!==null||y!==null)&&b(y?null:k),t.$$.dirty&4097&&e(10,n=k?.timestamps.map(j=>{const D=new Date(j);switch(g){case"1h":return D.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"});case"12h":return D.toLocaleString("zh-CN",{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"});case"24h":return D.toLocaleString("zh-CN",{month:"short",day:"numeric",hour:"2-digit"});default:return D.toLocaleTimeString("zh-CN")}})||[]),t.$$.dirty&1&&e(9,r=k?.requests||[]),t.$$.dirty&1&&e(8,a=k?.errors||[]),t.$$.dirty&1&&e(7,f=k?.responseTime||[]),t.$$.dirty&1&&e(6,u=k?.successRate||[]),t.$$.dirty&16384&&e(5,d=C.map(j=>({label:new URL(j.upstream).host,value:j.count,percentage:j.percentage}))),t.$$.dirty&32768&&e(4,c=T.filter(j=>j.failedRequests>0).sort((j,D)=>D.failedRequests-j.failedRequests).map(j=>({label:new URL(j.upstream).host,value:j.failedRequests,percentage:j.percentage}))),t.$$.dirty&65536&&e(3,p=M.map(j=>({label:new URL(j.upstream).host,status2xx:j.status2xx,status3xx:j.status3xx,status4xx:j.status4xx,status5xx:j.status5xx})))},[k,y,w,p,c,d,u,f,a,r,n,m,g,b,C,T,M]}class v2 extends Kt{constructor(l){super(),Gt(this,l,b2,_2,Yt,{selectedRange:12,onDataLoaded:13})}}function k2(t){let l,e,n,r,a=t[2]("dashboard.totalRequests")+"",f,u,d,c,p,m,g,b=t[2]("dashboard.requestsPerSecond")+"",k,w,y,E,C,T,M,P=t[2]("dashboard.successRate")+"",I,H,j,D,B,N,V,Z=t[2]("dashboard.avgResponseTime")+"",Y,x,U;return{c(){l=i("div"),e=i("div"),n=i("div"),r=i("h2"),f=_(a),u=h(),d=i("p"),d.textContent="-",c=h(),p=i("div"),m=i("div"),g=i("h2"),k=_(b),w=h(),y=i("p"),y.textContent="-",E=h(),C=i("div"),T=i("div"),M=i("h2"),I=_(P),H=h(),j=i("p"),j.textContent="-",D=h(),B=i("div"),N=i("div"),V=i("h2"),Y=_(Z),x=h(),U=i("p"),U.textContent="-",o(r,"class","card-title text-sm"),o(d,"class","text-3xl font-bold"),o(n,"class","card-body"),o(e,"class","card bg-base-100 shadow-xl"),o(g,"class","card-title text-sm"),o(y,"class","text-3xl font-bold"),o(m,"class","card-body"),o(p,"class","card bg-base-100 shadow-xl"),o(M,"class","card-title text-sm"),o(j,"class","text-3xl font-bold"),o(T,"class","card-body"),o(C,"class","card bg-base-100 shadow-xl"),o(V,"class","card-title text-sm"),o(U,"class","text-3xl font-bold"),o(N,"class","card-body"),o(B,"class","card bg-base-100 shadow-xl"),o(l,"class","grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4 mb-8")},m(Q,S){q(Q,l,S),s(l,e),s(e,n),s(n,r),s(r,f),s(n,u),s(n,d),s(l,c),s(l,p),s(p,m),s(m,g),s(g,k),s(m,w),s(m,y),s(l,E),s(l,C),s(C,T),s(T,M),s(M,I),s(T,H),s(T,j),s(l,D),s(l,B),s(B,N),s(N,V),s(V,Y),s(N,x),s(N,U)},p(Q,S){S&4&&a!==(a=Q[2]("dashboard.totalRequests")+"")&&v(f,a),S&4&&b!==(b=Q[2]("dashboard.requestsPerSecond")+"")&&v(k,b),S&4&&P!==(P=Q[2]("dashboard.successRate")+"")&&v(I,P),S&4&&Z!==(Z=Q[2]("dashboard.avgResponseTime")+"")&&v(Y,Z)},d(Q){Q&&R(l)}}}function w2(t){let l,e,n,r,a=t[2]("dashboard.totalRequests")+"",f,u,d,c=t[1].totalRequests+"",p,m,g,b,k,w=t[2]("dashboard.requestsPerSecond")+"",y,E,C,T=t[1].requestsPerSecond.toFixed(2)+"",M,P,I,H,j,D=t[2]("dashboard.successRate")+"",B,N,V,Z=t[1].successRate.toFixed(1)+"",Y,x,U,Q,S,L,F=t[2]("dashboard.avgResponseTime")+"",z,J,se,oe=t[1].avgResponseTime.toFixed(0)+"",fe,pe;return{c(){l=i("div"),e=i("div"),n=i("div"),r=i("h2"),f=_(a),u=h(),d=i("p"),p=_(c),m=h(),g=i("div"),b=i("div"),k=i("h2"),y=_(w),E=h(),C=i("p"),M=_(T),P=h(),I=i("div"),H=i("div"),j=i("h2"),B=_(D),N=h(),V=i("p"),Y=_(Z),x=_("%"),U=h(),Q=i("div"),S=i("div"),L=i("h2"),z=_(F),J=h(),se=i("p"),fe=_(oe),pe=_("ms"),o(r,"class","card-title text-sm"),o(d,"class","text-3xl font-bold"),o(n,"class","card-body"),o(e,"class","card bg-base-100 shadow-xl"),o(k,"class","card-title text-sm"),o(C,"class","text-3xl font-bold"),o(b,"class","card-body"),o(g,"class","card bg-base-100 shadow-xl"),o(j,"class","card-title text-sm"),o(V,"class","text-3xl font-bold"),o(H,"class","card-body"),o(I,"class","card bg-base-100 shadow-xl"),o(L,"class","card-title text-sm"),o(se,"class","text-3xl font-bold"),o(S,"class","card-body"),o(Q,"class","card bg-base-100 shadow-xl"),o(l,"class","grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4 mb-8")},m(ne,de){q(ne,l,de),s(l,e),s(e,n),s(n,r),s(r,f),s(n,u),s(n,d),s(d,p),s(l,m),s(l,g),s(g,b),s(b,k),s(k,y),s(b,E),s(b,C),s(C,M),s(l,P),s(l,I),s(I,H),s(H,j),s(j,B),s(H,N),s(H,V),s(V,Y),s(V,x),s(l,U),s(l,Q),s(Q,S),s(S,L),s(L,z),s(S,J),s(S,se),s(se,fe),s(se,pe)},p(ne,de){de&4&&a!==(a=ne[2]("dashboard.totalRequests")+"")&&v(f,a),de&2&&c!==(c=ne[1].totalRequests+"")&&v(p,c),de&4&&w!==(w=ne[2]("dashboard.requestsPerSecond")+"")&&v(y,w),de&2&&T!==(T=ne[1].requestsPerSecond.toFixed(2)+"")&&v(M,T),de&4&&D!==(D=ne[2]("dashboard.successRate")+"")&&v(B,D),de&2&&Z!==(Z=ne[1].successRate.toFixed(1)+"")&&v(Y,Z),de&4&&F!==(F=ne[2]("dashboard.avgResponseTime")+"")&&v(z,F),de&2&&oe!==(oe=ne[1].avgResponseTime.toFixed(0)+"")&&v(fe,oe)},d(ne){ne&&R(l)}}}function y2(t){let l,e,n=t[2]("dashboard.title")+"",r,a,f,u,d=t[2]("dashboard.dataRange")+"",c,p,m=t[2]("monitoring.range."+t[0])+"",g,b,k,w,y,E,C,T=t[2]("monitoring.range.oneHour")+"",M,P,I,H,j,D,B=t[2]("monitoring.range.twelveHours")+"",N,V,Z,Y,x,U,Q=t[2]("monitoring.range.twentyFourHours")+"",S,L,F,z,J,se,oe,fe;function pe(re,A){return re[1]?w2:k2}let ne=pe(t),de=ne(t);return z=new v2({props:{selectedRange:t[0],onDataLoaded:t[3]}}),se=Pu(t[5][0]),{c(){l=i("div"),e=i("h1"),r=_(n),a=h(),f=i("div"),u=i("p"),c=_(d),p=_(": "),g=_(m),b=h(),k=i("div"),w=i("label"),y=i("input"),E=h(),C=i("span"),M=_(T),P=h(),I=i("label"),H=i("input"),j=h(),D=i("span"),N=_(B),V=h(),Z=i("label"),Y=i("input"),x=h(),U=i("span"),S=_(Q),L=h(),de.c(),F=h(),Ht(z.$$.fragment),o(e,"class","text-3xl font-bold mb-6"),o(u,"class","text-sm text-gray-500"),o(y,"class","sr-only"),o(y,"type","radio"),o(y,"name","range"),y.__value="1h",G(y,y.__value),o(C,"class","block px-4 py-1.5 text-sm font-medium rounded-md transition-all"),X(C,"bg-primary",t[0]==="1h"),X(C,"text-primary-content",t[0]==="1h"),X(C,"shadow",t[0]==="1h"),X(C,"text-gray-700",t[0]!=="1h"),X(C,"dark:text-gray-300",t[0]!=="1h"),X(C,"hover:text-gray-900",t[0]!=="1h"),X(C,"dark:hover:text-gray-100",t[0]!=="1h"),o(w,"class","cursor-pointer"),o(H,"class","sr-only"),o(H,"type","radio"),o(H,"name","range"),H.__value="12h",G(H,H.__value),o(D,"class","block px-4 py-1.5 text-sm font-medium rounded-md transition-all"),X(D,"bg-primary",t[0]==="12h"),X(D,"text-primary-content",t[0]==="12h"),X(D,"shadow",t[0]==="12h"),X(D,"text-gray-700",t[0]!=="12h"),X(D,"dark:text-gray-300",t[0]!=="12h"),X(D,"hover:text-gray-900",t[0]!=="12h"),X(D,"dark:hover:text-gray-100",t[0]!=="12h"),o(I,"class","cursor-pointer"),o(Y,"class","sr-only"),o(Y,"type","radio"),o(Y,"name","range"),Y.__value="24h",G(Y,Y.__value),o(U,"class","block px-4 py-1.5 text-sm font-medium rounded-md transition-all"),X(U,"bg-primary",t[0]==="24h"),X(U,"text-primary-content",t[0]==="24h"),X(U,"shadow",t[0]==="24h"),X(U,"text-gray-700",t[0]!=="24h"),X(U,"dark:text-gray-300",t[0]!=="24h"),X(U,"hover:text-gray-900",t[0]!=="24h"),X(U,"dark:hover:text-gray-100",t[0]!=="24h"),o(Z,"class","cursor-pointer"),o(k,"class","inline-flex gap-1 p-1 bg-white dark:bg-gray-800 rounded-lg shadow-sm"),o(f,"class","flex justify-between items-center mb-6"),o(l,"class","p-6"),se.p(y,H,Y)},m(re,A){q(re,l,A),s(l,e),s(e,r),s(l,a),s(l,f),s(f,u),s(u,c),s(u,p),s(u,g),s(f,b),s(f,k),s(k,w),s(w,y),y.checked=y.__value===t[0],s(w,E),s(w,C),s(C,M),s(k,P),s(k,I),s(I,H),H.checked=H.__value===t[0],s(I,j),s(I,D),s(D,N),s(k,V),s(k,Z),s(Z,Y),Y.checked=Y.__value===t[0],s(Z,x),s(Z,U),s(U,S),s(l,L),de.m(l,null),s(l,F),qt(z,l,null),J=!0,oe||(fe=[O(y,"change",t[4]),O(H,"change",t[6]),O(Y,"change",t[7])],oe=!0)},p(re,[A]){(!J||A&4)&&n!==(n=re[2]("dashboard.title")+"")&&v(r,n),(!J||A&4)&&d!==(d=re[2]("dashboard.dataRange")+"")&&v(c,d),(!J||A&5)&&m!==(m=re[2]("monitoring.range."+re[0])+"")&&v(g,m),A&1&&(y.checked=y.__value===re[0]),(!J||A&4)&&T!==(T=re[2]("monitoring.range.oneHour")+"")&&v(M,T),(!J||A&1)&&X(C,"bg-primary",re[0]==="1h"),(!J||A&1)&&X(C,"text-primary-content",re[0]==="1h"),(!J||A&1)&&X(C,"shadow",re[0]==="1h"),(!J||A&1)&&X(C,"text-gray-700",re[0]!=="1h"),(!J||A&1)&&X(C,"dark:text-gray-300",re[0]!=="1h"),(!J||A&1)&&X(C,"hover:text-gray-900",re[0]!=="1h"),(!J||A&1)&&X(C,"dark:hover:text-gray-100",re[0]!=="1h"),A&1&&(H.checked=H.__value===re[0]),(!J||A&4)&&B!==(B=re[2]("monitoring.range.twelveHours")+"")&&v(N,B),(!J||A&1)&&X(D,"bg-primary",re[0]==="12h"),(!J||A&1)&&X(D,"text-primary-content",re[0]==="12h"),(!J||A&1)&&X(D,"shadow",re[0]==="12h"),(!J||A&1)&&X(D,"text-gray-700",re[0]!=="12h"),(!J||A&1)&&X(D,"dark:text-gray-300",re[0]!=="12h"),(!J||A&1)&&X(D,"hover:text-gray-900",re[0]!=="12h"),(!J||A&1)&&X(D,"dark:hover:text-gray-100",re[0]!=="12h"),A&1&&(Y.checked=Y.__value===re[0]),(!J||A&4)&&Q!==(Q=re[2]("monitoring.range.twentyFourHours")+"")&&v(S,Q),(!J||A&1)&&X(U,"bg-primary",re[0]==="24h"),(!J||A&1)&&X(U,"text-primary-content",re[0]==="24h"),(!J||A&1)&&X(U,"shadow",re[0]==="24h"),(!J||A&1)&&X(U,"text-gray-700",re[0]!=="24h"),(!J||A&1)&&X(U,"dark:text-gray-300",re[0]!=="24h"),(!J||A&1)&&X(U,"hover:text-gray-900",re[0]!=="24h"),(!J||A&1)&&X(U,"dark:hover:text-gray-100",re[0]!=="24h"),ne===(ne=pe(re))&&de?de.p(re,A):(de.d(1),de=ne(re),de&&(de.c(),de.m(l,F)));const le={};A&1&&(le.selectedRange=re[0]),z.$set(le)},i(re){J||($e(z.$$.fragment,re),J=!0)},o(re){lt(z.$$.fragment,re),J=!1},d(re){re&&R(l),de.d(),Rt(z),se.r(),oe=!1,mt(fe)}}}function C2(t){switch(t){case"1h":return 3600;case"12h":return 43200;case"24h":return 86400;default:return 3600}}function E2(t,l,e){let n;Nt(t,Dt,g=>e(2,n=g));let r="1h",a=null;function f(g){e(1,a=u(g))}function u(g){if(!g||g.requests.length===0)return null;const b=g.requests.reduce((T,M)=>T+M,0),k=C2(r),w=b/k,y=g.errors.reduce((T,M)=>T+M,0),E=b>0?(b-y)/b*100:100,C=g.responseTime.length>0?g.responseTime.reduce((T,M)=>T+M,0)/g.responseTime.length:0;return{totalRequests:b,requestsPerSecond:w,successRate:E,avgResponseTime:C}}const d=[[]];function c(){r=this.__value,e(0,r)}function p(){r=this.__value,e(0,r)}function m(){r=this.__value,e(0,r)}return[r,a,n,f,c,d,p,m]}class T2 extends Kt{constructor(l){super(),Gt(this,l,E2,y2,Yt,{})}}async function S2(){return ql.post("/system/reload",{})}async function M2(){return ql.post("/system/restart",{})}function tr(){const{subscribe:t,update:l}=Xn([]);let e=0;return{subscribe:t,show:(n,r="info",a=3e3)=>{const f=e++,u={id:f,message:n,type:r,duration:a};return l(d=>[...d,u]),a>0&&setTimeout(()=>{l(d=>d.filter(c=>c.id!==f))},a),f},success:(n,r=3e3)=>tr().show(n,"success",r),error:(n,r=4e3)=>tr().show(n,"error",r),warning:(n,r=3500)=>tr().show(n,"warning",r),info:(n,r=3e3)=>tr().show(n,"info",r),remove:n=>{l(r=>r.filter(a=>a.id!==n))},clear:()=>{l(()=>[])}}}const At=tr();function u1(t,l,e){const n=t.slice();return n[13]=l[e],n[14]=l,n[15]=e,n}function f1(t){let l,e=t[5]("auth.helpText")+"",n;return{c(){l=i("span"),n=_(e),o(l,"class","label-text-alt text-xs")},m(r,a){q(r,l,a),s(l,n)},p(r,a){a&32&&e!==(e=r[5]("auth.helpText")+"")&&v(n,e)},d(r){r&&R(l)}}}function d1(t){let l,e,n,r,a=t[5]("auth.tokens")+"",f,u,d=t[3].length+"",c,p,m,g,b,k,w,y,E,C,T=t[5]("auth.expressionSupport")+"",M,P,I,H,j,D,B,N,V=t[5]("auth.addToken")+"",Z,Y,x,U,Q,S,L,F=t[5]("auth.securityNotice")+"",z,J,se,oe=ft(t[3]),fe=[];for(let pe=0;pe<oe.length;pe+=1)fe[pe]=c1(u1(t,oe,pe));return{c(){l=i("div"),e=i("input"),n=h(),r=i("div"),f=_(a),u=_(" ("),c=_(d),p=_(")"),m=h(),g=i("div"),b=i("div"),k=ie("svg"),w=ie("path"),y=h(),E=i("div"),C=i("div"),M=_(T),P=h(),I=i("div"),H=i("code"),H.textContent="{{ env.API_TOKEN }}",j=h();for(let pe=0;pe<fe.length;pe+=1)fe[pe].c();D=h(),B=i("button"),N=_("+ "),Z=_(V),Y=h(),x=i("div"),U=ie("svg"),Q=ie("path"),S=h(),L=i("div"),z=_(F),o(e,"type","checkbox"),e.checked=!0,o(r,"class","collapse-title text-sm font-medium"),o(w,"stroke-linecap","round"),o(w,"stroke-linejoin","round"),o(w,"stroke-width","2"),o(w,"d","M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"),o(k,"xmlns","http://www.w3.org/2000/svg"),o(k,"fill","none"),o(k,"viewBox","0 0 24 24"),o(k,"class","stroke-current shrink-0 w-4 h-4 opacity-60"),o(H,"class","text-xs bg-base-300 px-1 rounded"),o(I,"class","mt-1"),o(b,"class","text-xs text-base-content/60 bg-base-200 rounded p-3 flex gap-2"),o(B,"type","button"),o(B,"class","btn btn-sm btn-ghost"),o(g,"class","collapse-content space-y-2"),o(l,"class","collapse collapse-arrow bg-base-200 collapse-open"),o(Q,"stroke-linecap","round"),o(Q,"stroke-linejoin","round"),o(Q,"stroke-width","2"),o(Q,"d","M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"),o(U,"xmlns","http://www.w3.org/2000/svg"),o(U,"fill","none"),o(U,"viewBox","0 0 24 24"),o(U,"class","stroke-current shrink-0 w-4 h-4"),o(x,"class","alert alert-warning shadow-sm text-xs")},m(pe,ne){q(pe,l,ne),s(l,e),s(l,n),s(l,r),s(r,f),s(r,u),s(r,c),s(r,p),s(l,m),s(l,g),s(g,b),s(b,k),s(k,w),s(b,y),s(b,E),s(E,C),s(C,M),s(E,P),s(E,I),s(I,H),s(g,j);for(let de=0;de<fe.length;de+=1)fe[de]&&fe[de].m(g,null);s(g,D),s(g,B),s(B,N),s(B,Z),q(pe,Y,ne),q(pe,x,ne),s(x,U),s(U,Q),s(x,S),s(x,L),s(L,z),J||(se=O(B,"click",t[6]),J=!0)},p(pe,ne){if(ne&32&&a!==(a=pe[5]("auth.tokens")+"")&&v(f,a),ne&8&&d!==(d=pe[3].length+"")&&v(c,d),ne&32&&T!==(T=pe[5]("auth.expressionSupport")+"")&&v(M,T),ne&168){oe=ft(pe[3]);let de;for(de=0;de<oe.length;de+=1){const re=u1(pe,oe,de);fe[de]?fe[de].p(re,ne):(fe[de]=c1(re),fe[de].c(),fe[de].m(g,D))}for(;de<fe.length;de+=1)fe[de].d(1);fe.length=oe.length}ne&32&&V!==(V=pe[5]("auth.addToken")+"")&&v(Z,V),ne&32&&F!==(F=pe[5]("auth.securityNotice")+"")&&v(z,F)},d(pe){pe&&(R(l),R(Y),R(x)),$t(fe,pe),J=!1,se()}}}function c1(t){let l,e,n,r,a,f,u;function d(){t[11].call(e,t[15])}function c(){return t[12](t[15])}return{c(){l=i("div"),e=i("input"),r=h(),a=i("button"),a.textContent="\u2715",o(e,"type","text"),o(e,"placeholder",n=t[5]("auth.tokenPlaceholder")),o(e,"class","input input-bordered input-sm flex-1 font-mono text-xs"),o(a,"type","button"),o(a,"class","btn btn-sm btn-error btn-square"),o(l,"class","flex gap-2")},m(p,m){q(p,l,m),s(l,e),G(e,t[3][t[15]]),s(l,r),s(l,a),f||(u=[O(e,"input",d),O(a,"click",c)],f=!0)},p(p,m){t=p,m&32&&n!==(n=t[5]("auth.tokenPlaceholder"))&&o(e,"placeholder",n),m&8&&e.value!==t[3][t[15]]&&G(e,t[3][t[15]])},d(p){p&&R(l),f=!1,mt(u)}}}function R2(t){let l,e,n,r,a,f,u,d,c,p,m,g,b=t[5]("auth.enableAuth")+"",k,w,y,E,C=t[1]&&f1(t),T=t[2]&&d1(t);return{c(){l=i("div"),e=i("div"),n=i("span"),r=_(t[0]),a=h(),C&&C.c(),f=h(),u=i("div"),d=i("div"),c=i("label"),p=i("input"),m=h(),g=i("span"),k=_(b),w=h(),T&&T.c(),o(n,"class","label-text font-semibold"),o(e,"class","label"),o(p,"type","checkbox"),o(p,"class","checkbox"),o(g,"class","label-text"),o(c,"class","label cursor-pointer justify-start gap-4"),o(d,"class","form-control"),o(u,"class","space-y-4"),o(l,"class","form-control w-full")},m(M,P){q(M,l,P),s(l,e),s(e,n),s(n,r),s(e,a),C&&C.m(e,null),s(l,f),s(l,u),s(u,d),s(d,c),s(c,p),p.checked=t[2],s(c,m),s(c,g),s(g,k),s(u,w),T&&T.m(u,null),y||(E=[O(p,"change",t[9]),O(p,"change",t[10])],y=!0)},p(M,[P]){P&1&&v(r,M[0]),M[1]?C?C.p(M,P):(C=f1(M),C.c(),C.m(e,null)):C&&(C.d(1),C=null),P&4&&(p.checked=M[2]),P&32&&b!==(b=M[5]("auth.enableAuth")+"")&&v(k,b),M[2]?T?T.p(M,P):(T=d1(M),T.c(),T.m(u,null)):T&&(T.d(1),T=null)},i:ot,o:ot,d(M){M&&R(l),C&&C.d(),T&&T.d(),y=!1,mt(E)}}}function q2(t,l,e){let n;Nt(t,Dt,y=>e(5,n=y));let{value:r=void 0}=l,{label:a="Authentication"}=l,{showHelp:f=!0}=l,u=!1,d=[],c=!1;function p(){e(3,d=[...d,""]),e(4,c=!0)}function m(y){e(3,d=d.filter((E,C)=>C!==y))}function g(){u=this.checked,e(2,u),e(4,c),e(8,r),e(3,d)}const b=()=>{u&&d.length===0&&e(3,d=[""]),e(4,c=!0)};function k(y){d[y]=this.value,e(3,d),e(4,c),e(8,r),e(2,u)}const w=y=>m(y);return t.$$set=y=>{"value"in y&&e(8,r=y.value),"label"in y&&e(0,a=y.label),"showHelp"in y&&e(1,f=y.showHelp)},t.$$.update=()=>{if(t.$$.dirty&284)if(!c&&r&&(e(2,u=r.enabled||!1),e(3,d=r.tokens?[...r.tokens]:[]),e(4,c=!0)),u){const y=d.filter(E=>E.trim()!=="");r?(e(8,r.enabled=!0,r),e(8,r.tokens=y,r)):e(8,r={enabled:!0,tokens:y})}else r&&(e(8,r.enabled=!1,r),e(8,r.tokens=[],r))},[a,f,u,d,c,n,p,m,r,g,b,k,w]}class u0 extends Kt{constructor(l){super(),Gt(this,l,q2,R2,Yt,{value:8,label:0,showHelp:1})}}async function H2(t={}){const l=new URLSearchParams;return Object.entries(t).forEach(([e,n])=>{n!=null&&(Array.isArray(n)?n.forEach(r=>l.append(e,String(r))):l.append(e,String(n)))}),ql.get(\`/logs?\${l.toString()}\`)}async function P2(t={},l="json"){const e=new URLSearchParams;Object.entries(t).forEach(([r,a])=>{a!=null&&e.append(r,String(a))}),e.append("format",l);const n=await fetch(\`/__ui/api/logs/export?\${e.toString()}\`);if(!n.ok)throw new Error("Failed to export logs");return n.blob()}async function Ru(t){return(await ql.get(\`/logs/body/\${t}\`)).content}async function qu(t){return ql.get(\`/logs/headers/\${t}\`)}async function L2(){return ql.get("/logs/cleanup/config")}async function j2(){return ql.post("/logs/cleanup")}function p1(t){let l,e;return{c(){l=i("h3"),e=_(t[1]),o(l,"class","text-lg font-semibold")},m(n,r){q(n,l,r),s(l,e)},p(n,r){r&2&&v(e,n[1])},d(n){n&&R(l)}}}function h1(t){let l,e,n,r,a=t[6]("logging.maxSize")+"",f,u,d,c,p,m,g,b,k,w=t[6]("logging.maxSizeHelp")+"",y,E,C,T,M,P=t[6]("logging.retentionDays")+"",I,H,j,D,B,N,V=t[6]("logging.days")+"",Z,Y,x,U,Q=t[6]("logging.retentionDaysHelp")+"",S,L,F;return{c(){l=i("div"),e=i("div"),n=i("label"),r=i("span"),f=_(a),u=h(),d=i("div"),c=i("input"),p=h(),m=i("span"),m.textContent="KB",g=h(),b=i("div"),k=i("span"),y=_(w),E=h(),C=i("div"),T=i("label"),M=i("span"),I=_(P),H=h(),j=i("div"),D=i("input"),B=h(),N=i("span"),Z=_(V),Y=h(),x=i("div"),U=i("span"),S=_(Q),o(r,"class","label-text"),o(n,"class","label"),o(n,"for","logging-max-size"),o(c,"id","logging-max-size"),o(c,"type","number"),o(c,"class","input input-bordered flex-1"),o(c,"min","1024"),o(c,"max","102400"),o(c,"step","1024"),o(m,"class","text-sm text-gray-500"),o(d,"class","flex gap-2 items-center"),o(k,"class","label-text-alt"),o(b,"class","label"),o(e,"class","form-control"),o(M,"class","label-text"),o(T,"class","label"),o(T,"for","logging-retention-days"),o(D,"id","logging-retention-days"),o(D,"type","number"),o(D,"class","input input-bordered flex-1"),o(D,"min","1"),o(D,"max","30"),o(N,"class","text-sm text-gray-500"),o(j,"class","flex gap-2 items-center"),o(U,"class","label-text-alt"),o(x,"class","label"),o(C,"class","form-control"),o(l,"class","ml-8 space-y-4")},m(z,J){q(z,l,J),s(l,e),s(e,n),s(n,r),s(r,f),s(e,u),s(e,d),s(d,c),G(c,t[0].body.maxSize),s(d,p),s(d,m),s(e,g),s(e,b),s(b,k),s(k,y),s(l,E),s(l,C),s(C,T),s(T,M),s(M,I),s(C,H),s(C,j),s(j,D),G(D,t[0].body.retentionDays),s(j,B),s(j,N),s(N,Z),s(C,Y),s(C,x),s(x,U),s(U,S),L||(F=[O(c,"input",t[10]),O(c,"input",t[7]),O(D,"input",t[11]),O(D,"input",t[7])],L=!0)},p(z,J){J&64&&a!==(a=z[6]("logging.maxSize")+"")&&v(f,a),J&1&&Ct(c.value)!==z[0].body.maxSize&&G(c,z[0].body.maxSize),J&64&&w!==(w=z[6]("logging.maxSizeHelp")+"")&&v(y,w),J&64&&P!==(P=z[6]("logging.retentionDays")+"")&&v(I,P),J&1&&Ct(D.value)!==z[0].body.retentionDays&&G(D,z[0].body.retentionDays),J&64&&V!==(V=z[6]("logging.days")+"")&&v(Z,V),J&64&&Q!==(Q=z[6]("logging.retentionDaysHelp")+"")&&v(S,Q)},d(z){z&&R(l),L=!1,mt(F)}}}function D2(t){let l,e,n,r=t[6]("logging.cleanupStatus")+"",a,f,u,d=(t[2].isActive?t[6]("logging.active"):t[6]("logging.inactive"))+"",c,p,m,g,b,k=t[6]("logging.cleanupRetention")+"",w,y,E,C=t[2].retentionDays+"",T,M,P=t[6]("logging.days")+"",I,H,j,D,B=t[6]("logging.cleanupInterval")+"",N,V,Z,Y=t[2].scheduleIntervalHours+"",x,U,Q=t[6]("logging.hours")+"",S,L,F,z,J=t[6]("logging.manualCleanup")+"",se,oe,fe,pe,ne;function de($,ce){return $[4]?A2:I2}let re=de(t),A=re(t),le=t[5]&&m1(t);return{c(){l=i("div"),e=i("div"),n=i("span"),a=_(r),f=h(),u=i("span"),c=_(d),m=h(),g=i("div"),b=i("span"),w=_(k),y=h(),E=i("span"),T=_(C),M=h(),I=_(P),H=h(),j=i("div"),D=i("span"),N=_(B),V=h(),Z=i("span"),x=_(Y),U=h(),S=_(Q),L=h(),F=i("button"),A.c(),z=h(),se=_(J),oe=h(),le&&le.c(),fe=Gl(),o(n,"class","text-gray-500"),o(u,"class",p="font-semibold "+(t[2].isActive?"text-success":"text-error")),o(e,"class","flex justify-between text-sm"),o(b,"class","text-gray-500"),o(E,"class","font-semibold"),o(g,"class","flex justify-between text-sm"),o(D,"class","text-gray-500"),o(Z,"class","font-semibold"),o(j,"class","flex justify-between text-sm"),o(l,"class","bg-base-200 p-4 rounded-lg space-y-2"),o(F,"class","btn btn-outline btn-sm w-full"),F.disabled=t[4]},m($,ce){q($,l,ce),s(l,e),s(e,n),s(n,a),s(e,f),s(e,u),s(u,c),s(l,m),s(l,g),s(g,b),s(b,w),s(g,y),s(g,E),s(E,T),s(E,M),s(E,I),s(l,H),s(l,j),s(j,D),s(D,N),s(j,V),s(j,Z),s(Z,x),s(Z,U),s(Z,S),q($,L,ce),q($,F,ce),A.m(F,null),s(F,z),s(F,se),q($,oe,ce),le&&le.m($,ce),q($,fe,ce),pe||(ne=O(F,"click",t[8]),pe=!0)},p($,ce){ce&64&&r!==(r=$[6]("logging.cleanupStatus")+"")&&v(a,r),ce&68&&d!==(d=($[2].isActive?$[6]("logging.active"):$[6]("logging.inactive"))+"")&&v(c,d),ce&4&&p!==(p="font-semibold "+($[2].isActive?"text-success":"text-error"))&&o(u,"class",p),ce&64&&k!==(k=$[6]("logging.cleanupRetention")+"")&&v(w,k),ce&4&&C!==(C=$[2].retentionDays+"")&&v(T,C),ce&64&&P!==(P=$[6]("logging.days")+"")&&v(I,P),ce&64&&B!==(B=$[6]("logging.cleanupInterval")+"")&&v(N,B),ce&4&&Y!==(Y=$[2].scheduleIntervalHours+"")&&v(x,Y),ce&64&&Q!==(Q=$[6]("logging.hours")+"")&&v(S,Q),re!==(re=de($))&&(A.d(1),A=re($),A&&(A.c(),A.m(F,z))),ce&64&&J!==(J=$[6]("logging.manualCleanup")+"")&&v(se,J),ce&16&&(F.disabled=$[4]),$[5]?le?le.p($,ce):(le=m1($),le.c(),le.m(fe.parentNode,fe)):le&&(le.d(1),le=null)},d($){$&&(R(l),R(L),R(F),R(oe),R(fe)),A.d(),le&&le.d($),pe=!1,ne()}}}function B2(t){let l,e,n,r,a=t[6]("common.loading")+"",f;return{c(){l=i("div"),e=i("span"),n=h(),r=i("span"),f=_(a),o(e,"class","loading loading-spinner loading-sm"),o(r,"class","text-sm"),o(l,"class","flex items-center gap-2")},m(u,d){q(u,l,d),s(l,e),s(l,n),s(l,r),s(r,f)},p(u,d){d&64&&a!==(a=u[6]("common.loading")+"")&&v(f,a)},d(u){u&&R(l)}}}function I2(t){let l,e;return{c(){l=ie("svg"),e=ie("path"),o(e,"stroke-linecap","round"),o(e,"stroke-linejoin","round"),o(e,"stroke-width","2"),o(e,"d","M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"),o(l,"xmlns","http://www.w3.org/2000/svg"),o(l,"class","h-4 w-4"),o(l,"fill","none"),o(l,"viewBox","0 0 24 24"),o(l,"stroke","currentColor")},m(n,r){q(n,l,r),s(l,e)},d(n){n&&R(l)}}}function A2(t){let l;return{c(){l=i("span"),o(l,"class","loading loading-spinner loading-xs")},m(e,n){q(e,l,n)},d(e){e&&R(l)}}}function m1(t){let l,e,n,r,a,f,u=t[6]("logging.lastCleanup")+"",d,c,p,m,g=t[6]("logging.deletedSqliteRecords")+"",b,k,w=t[5].deletedSqliteRecords+"",y,E,C,T=t[6]("logging.deletedFileLogFiles")+"",M,P,I=t[5].deletedFileLogFiles+"",H,j,D,B=t[6]("logging.deletedBodyFiles")+"",N,V,Z=t[5].deletedBodyDirs+"",Y,x,U=t[6]("logging.dirs")+"",Q,S,L=t[5].deletedBodyFiles+"",F,z,J=t[6]("logging.files")+"",se,oe,fe,pe=t[6]("logging.duration")+"",ne,de,re=t[5].durationMs+"",A,le;return{c(){l=i("div"),e=ie("svg"),n=ie("path"),r=h(),a=i("div"),f=i("div"),d=_(u),c=h(),p=i("div"),m=i("div"),b=_(g),k=_(": "),y=_(w),E=h(),C=i("div"),M=_(T),P=_(": "),H=_(I),j=h(),D=i("div"),N=_(B),V=_(": "),Y=_(Z),x=h(),Q=_(U),S=_(", "),F=_(L),z=h(),se=_(J),oe=h(),fe=i("div"),ne=_(pe),de=_(": "),A=_(re),le=_("ms"),o(n,"stroke-linecap","round"),o(n,"stroke-linejoin","round"),o(n,"stroke-width","2"),o(n,"d","M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"),o(e,"xmlns","http://www.w3.org/2000/svg"),o(e,"class","stroke-current shrink-0 h-6 w-6"),o(e,"fill","none"),o(e,"viewBox","0 0 24 24"),o(f,"class","font-semibold"),o(p,"class","mt-1 space-y-1"),o(a,"class","text-sm"),o(l,"class","alert alert-success")},m($,ce){q($,l,ce),s(l,e),s(e,n),s(l,r),s(l,a),s(a,f),s(f,d),s(a,c),s(a,p),s(p,m),s(m,b),s(m,k),s(m,y),s(p,E),s(p,C),s(C,M),s(C,P),s(C,H),s(p,j),s(p,D),s(D,N),s(D,V),s(D,Y),s(D,x),s(D,Q),s(D,S),s(D,F),s(D,z),s(D,se),s(p,oe),s(p,fe),s(fe,ne),s(fe,de),s(fe,A),s(fe,le)},p($,ce){ce&64&&u!==(u=$[6]("logging.lastCleanup")+"")&&v(d,u),ce&64&&g!==(g=$[6]("logging.deletedSqliteRecords")+"")&&v(b,g),ce&32&&w!==(w=$[5].deletedSqliteRecords+"")&&v(y,w),ce&64&&T!==(T=$[6]("logging.deletedFileLogFiles")+"")&&v(M,T),ce&32&&I!==(I=$[5].deletedFileLogFiles+"")&&v(H,I),ce&64&&B!==(B=$[6]("logging.deletedBodyFiles")+"")&&v(N,B),ce&32&&Z!==(Z=$[5].deletedBodyDirs+"")&&v(Y,Z),ce&64&&U!==(U=$[6]("logging.dirs")+"")&&v(Q,U),ce&32&&L!==(L=$[5].deletedBodyFiles+"")&&v(F,L),ce&64&&J!==(J=$[6]("logging.files")+"")&&v(se,J),ce&64&&pe!==(pe=$[6]("logging.duration")+"")&&v(ne,pe),ce&32&&re!==(re=$[5].durationMs+"")&&v(A,re)},d($){$&&R(l)}}}function F2(t){let l,e,n,r,a,f,u,d,c=t[6]("logging.bodyRecording")+"",p,m,g,b=t[6]("logging.bodyRecordingHelp")+"",k,w,y,E,C,T,M=t[6]("logging.cleanupConfig")+"",P,I,H,j,D=t[1]&&p1(t),B=t[0].body.enabled&&h1(t);function N(Y,x){if(Y[3])return B2;if(Y[2])return D2}let V=N(t),Z=V&&V(t);return{c(){l=i("div"),D&&D.c(),e=h(),n=i("div"),r=i("label"),a=i("input"),f=h(),u=i("div"),d=i("span"),p=_(c),m=h(),g=i("p"),k=_(b),w=h(),B&&B.c(),y=h(),E=i("div"),C=h(),T=i("h4"),P=_(M),I=h(),Z&&Z.c(),o(a,"type","checkbox"),o(a,"class","checkbox"),o(d,"class","label-text font-semibold"),o(g,"class","text-xs text-gray-500 mt-1"),o(u,"class","flex-1"),o(r,"class","label cursor-pointer justify-start gap-4"),o(n,"class","form-control"),o(E,"class","divider"),o(T,"class","font-semibold"),o(l,"class","space-y-4")},m(Y,x){q(Y,l,x),D&&D.m(l,null),s(l,e),s(l,n),s(n,r),s(r,a),a.checked=t[0].body.enabled,s(r,f),s(r,u),s(u,d),s(d,p),s(u,m),s(u,g),s(g,k),s(l,w),B&&B.m(l,null),s(l,y),s(l,E),s(l,C),s(l,T),s(T,P),s(l,I),Z&&Z.m(l,null),H||(j=[O(a,"change",t[9]),O(a,"change",t[7])],H=!0)},p(Y,[x]){Y[1]?D?D.p(Y,x):(D=p1(Y),D.c(),D.m(l,e)):D&&(D.d(1),D=null),x&1&&(a.checked=Y[0].body.enabled),x&64&&c!==(c=Y[6]("logging.bodyRecording")+"")&&v(p,c),x&64&&b!==(b=Y[6]("logging.bodyRecordingHelp")+"")&&v(k,b),Y[0].body.enabled?B?B.p(Y,x):(B=h1(Y),B.c(),B.m(l,y)):B&&(B.d(1),B=null),x&64&&M!==(M=Y[6]("logging.cleanupConfig")+"")&&v(P,M),V===(V=N(Y))&&Z?Z.p(Y,x):(Z&&Z.d(1),Z=V&&V(Y),Z&&(Z.c(),Z.m(l,null)))},i:ot,o:ot,d(Y){Y&&R(l),D&&D.d(),B&&B.d(),Z&&Z.d(),H=!1,mt(j)}}}function z2(t,l,e){let n;Nt(t,Dt,E=>e(6,n=E));let{value:r=null}=l,{label:a=""}=l;const f=nr();let u=null,d=!1,c=!1,p=null;function m(){f("input")}async function g(){e(3,d=!0);try{e(2,u=await L2())}catch(E){console.error("Failed to load cleanup config:",E),At.show(n("common.error")+": "+(E instanceof Error?E.message:"Unknown error"),"error")}finally{e(3,d=!1)}}async function b(){if(confirm(n("logging.confirmCleanup"))){e(4,c=!0);try{e(5,p=await j2()),At.show(n("logging.cleanupSuccess"),"success"),await g()}catch(E){console.error("Failed to trigger cleanup:",E),At.show(n("logging.cleanupFailed",{values:{error:E instanceof Error?E.message:"Unknown error"}}),"error")}finally{e(4,c=!1)}}}Hs(()=>{g()});function k(){r.body.enabled=this.checked,e(0,r)}function w(){r.body.maxSize=Ct(this.value),e(0,r)}function y(){r.body.retentionDays=Ct(this.value),e(0,r)}return t.$$set=E=>{"value"in E&&e(0,r=E.value),"label"in E&&e(1,a=E.label)},t.$$.update=()=>{t.$$.dirty&1&&(r||e(0,r={body:{enabled:!1,maxSize:5120,retentionDays:1}})),t.$$.dirty&1&&r&&!r.body&&e(0,r.body={enabled:!1,maxSize:5120,retentionDays:1},r)},[r,a,u,d,c,p,n,m,b,k,w,y]}class O2 extends Kt{constructor(l){super(),Gt(this,l,z2,F2,Yt,{value:0,label:1})}}function N2(t){let l,e;return{c(){l=ie("svg"),e=ie("path"),o(e,"stroke-linecap","round"),o(e,"stroke-linejoin","round"),o(e,"stroke-width","2"),o(e,"d","M8 7H5a2 2 0 00-2 2v9a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-3m-1 4l-3 3m0 0l-3-3m3 3V4"),o(l,"xmlns","http://www.w3.org/2000/svg"),o(l,"class","h-4 w-4"),o(l,"fill","none"),o(l,"viewBox","0 0 24 24"),o(l,"stroke","currentColor")},m(n,r){q(n,l,r),s(l,e)},d(n){n&&R(l)}}}function U2(t){let l;return{c(){l=i("span"),o(l,"class","loading loading-spinner loading-xs")},m(e,n){q(e,l,n)},d(e){e&&R(l)}}}function V2(t){let l,e;return{c(){l=ie("svg"),e=ie("path"),o(e,"stroke-linecap","round"),o(e,"stroke-linejoin","round"),o(e,"stroke-width","2"),o(e,"d","M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"),o(l,"xmlns","http://www.w3.org/2000/svg"),o(l,"class","h-4 w-4"),o(l,"fill","none"),o(l,"viewBox","0 0 24 24"),o(l,"stroke","currentColor")},m(n,r){q(n,l,r),s(l,e)},d(n){n&&R(l)}}}function J2(t){let l;return{c(){l=i("span"),o(l,"class","loading loading-spinner loading-xs")},m(e,n){q(e,l,n)},d(e){e&&R(l)}}}function W2(t){let l,e;return{c(){l=ie("svg"),e=ie("path"),o(e,"stroke-linecap","round"),o(e,"stroke-linejoin","round"),o(e,"stroke-width","2"),o(e,"d","M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"),o(l,"xmlns","http://www.w3.org/2000/svg"),o(l,"class","h-4 w-4"),o(l,"fill","none"),o(l,"viewBox","0 0 24 24"),o(l,"stroke","currentColor")},m(n,r){q(n,l,r),s(l,e)},d(n){n&&R(l)}}}function K2(t){let l;return{c(){l=i("span"),o(l,"class","loading loading-spinner loading-xs")},m(e,n){q(e,l,n)},d(e){e&&R(l)}}}function G2(t){let l,e,n,r,a,f=t[11]("configuration.formEditor")+"",u,d,c,p,m,g,b=t[11]("configuration.jsonEditor")+"",k,w,y,E,C,T,M,P,I;const H=[X2,Z2],j=[];function D(B,N){return B[7]==="form"?0:1}return y=D(t),E=j[y]=H[y](t),M=Pu(t[20][0]),{c(){l=i("div"),e=i("label"),n=i("input"),r=h(),a=i("span"),u=_(f),d=h(),c=i("label"),p=i("input"),m=h(),g=i("span"),k=_(b),w=h(),E.c(),C=Gl(),o(n,"class","sr-only"),o(n,"type","radio"),o(n,"name","editMode"),n.__value="form",G(n,n.__value),o(a,"class","block px-4 py-1.5 text-sm font-medium rounded-md transition-all"),X(a,"bg-primary",t[7]==="form"),X(a,"text-primary-content",t[7]==="form"),X(a,"shadow",t[7]==="form"),X(a,"text-gray-700",t[7]!=="form"),X(a,"dark:text-gray-300",t[7]!=="form"),X(a,"hover:text-gray-900",t[7]!=="form"),X(a,"dark:hover:text-gray-100",t[7]!=="form"),o(e,"class","cursor-pointer"),o(p,"class","sr-only"),o(p,"type","radio"),o(p,"name","editMode"),p.__value="json",G(p,p.__value),o(g,"class","block px-4 py-1.5 text-sm font-medium rounded-md transition-all"),X(g,"bg-primary",t[7]==="json"),X(g,"text-primary-content",t[7]==="json"),X(g,"shadow",t[7]==="json"),X(g,"text-gray-700",t[7]!=="json"),X(g,"dark:text-gray-300",t[7]!=="json"),X(g,"hover:text-gray-900",t[7]!=="json"),X(g,"dark:hover:text-gray-100",t[7]!=="json"),o(c,"class","cursor-pointer"),o(l,"class","inline-flex gap-1 p-1 bg-white dark:bg-gray-800 rounded-lg shadow-sm mb-4"),M.p(n,p)},m(B,N){q(B,l,N),s(l,e),s(e,n),n.checked=n.__value===t[7],s(e,r),s(e,a),s(a,u),s(l,d),s(l,c),s(c,p),p.checked=p.__value===t[7],s(c,m),s(c,g),s(g,k),q(B,w,N),j[y].m(B,N),q(B,C,N),T=!0,P||(I=[O(n,"change",t[19]),O(p,"change",t[21])],P=!0)},p(B,N){N[0]&128&&(n.checked=n.__value===B[7]),(!T||N[0]&2048)&&f!==(f=B[11]("configuration.formEditor")+"")&&v(u,f),(!T||N[0]&128)&&X(a,"bg-primary",B[7]==="form"),(!T||N[0]&128)&&X(a,"text-primary-content",B[7]==="form"),(!T||N[0]&128)&&X(a,"shadow",B[7]==="form"),(!T||N[0]&128)&&X(a,"text-gray-700",B[7]!=="form"),(!T||N[0]&128)&&X(a,"dark:text-gray-300",B[7]!=="form"),(!T||N[0]&128)&&X(a,"hover:text-gray-900",B[7]!=="form"),(!T||N[0]&128)&&X(a,"dark:hover:text-gray-100",B[7]!=="form"),N[0]&128&&(p.checked=p.__value===B[7]),(!T||N[0]&2048)&&b!==(b=B[11]("configuration.jsonEditor")+"")&&v(k,b),(!T||N[0]&128)&&X(g,"bg-primary",B[7]==="json"),(!T||N[0]&128)&&X(g,"text-primary-content",B[7]==="json"),(!T||N[0]&128)&&X(g,"shadow",B[7]==="json"),(!T||N[0]&128)&&X(g,"text-gray-700",B[7]!=="json"),(!T||N[0]&128)&&X(g,"dark:text-gray-300",B[7]!=="json"),(!T||N[0]&128)&&X(g,"hover:text-gray-900",B[7]!=="json"),(!T||N[0]&128)&&X(g,"dark:hover:text-gray-100",B[7]!=="json");let V=y;y=D(B),y===V?j[y].p(B,N):(Ql(),lt(j[V],1,1,()=>{j[V]=null}),Zl(),E=j[y],E?E.p(B,N):(E=j[y]=H[y](B),E.c()),$e(E,1),E.m(C.parentNode,C))},i(B){T||($e(E),T=!0)},o(B){lt(E),T=!1},d(B){B&&(R(l),R(w),R(C)),j[y].d(B),M.r(),P=!1,mt(I)}}}function Y2(t){let l,e,n,r,a,f=t[11]("common.error")+"",u,d,c;return{c(){l=i("div"),e=ie("svg"),n=ie("path"),r=h(),a=i("span"),u=_(f),d=_(": "),c=_(t[2]),o(n,"stroke-linecap","round"),o(n,"stroke-linejoin","round"),o(n,"stroke-width","2"),o(n,"d","M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z"),o(e,"xmlns","http://www.w3.org/2000/svg"),o(e,"class","stroke-current shrink-0 h-6 w-6"),o(e,"fill","none"),o(e,"viewBox","0 0 24 24"),o(l,"class","alert alert-error")},m(p,m){q(p,l,m),s(l,e),s(e,n),s(l,r),s(l,a),s(a,u),s(a,d),s(a,c)},p(p,m){m[0]&2048&&f!==(f=p[11]("common.error")+"")&&v(u,f),m[0]&4&&v(c,p[2])},i:ot,o:ot,d(p){p&&R(l)}}}function Q2(t){let l;return{c(){l=i("div"),l.innerHTML='<span class="loading loading-spinner loading-lg"></span>',o(l,"class","flex justify-center items-center h-64")},m(e,n){q(e,l,n)},p:ot,i:ot,o:ot,d(e){e&&R(l)}}}function Z2(t){let l,e,n,r=t[11]("configuration.jsonConfiguration")+"",a,f,u,d,c,p,m,g=t[11]("configuration.jsonHelp")+"",b,k,w,y=t[9]&&g1(t);return{c(){l=i("div"),e=i("div"),n=i("h2"),a=_(r),f=h(),y&&y.c(),u=h(),d=i("textarea"),p=h(),m=i("p"),b=_(g),o(n,"class","card-title"),o(d,"class","textarea textarea-bordered font-mono text-sm h-96"),o(d,"placeholder",c=t[11]("configuration.jsonPlaceholder")),o(m,"class","text-sm text-gray-500 mt-2"),o(e,"class","card-body"),o(l,"class","card bg-base-100 shadow-xl")},m(E,C){q(E,l,C),s(l,e),s(e,n),s(n,a),s(e,f),y&&y.m(e,null),s(e,u),s(e,d),G(d,t[8]),s(e,p),s(e,m),s(m,b),k||(w=[O(d,"input",t[28]),O(d,"input",t[12])],k=!0)},p(E,C){C[0]&2048&&r!==(r=E[11]("configuration.jsonConfiguration")+"")&&v(a,r),E[9]?y?y.p(E,C):(y=g1(E),y.c(),y.m(e,u)):y&&(y.d(1),y=null),C[0]&2048&&c!==(c=E[11]("configuration.jsonPlaceholder"))&&o(d,"placeholder",c),C[0]&256&&G(d,E[8]),C[0]&2048&&g!==(g=E[11]("configuration.jsonHelp")+"")&&v(b,g)},i:ot,o:ot,d(E){E&&R(l),y&&y.d(),k=!1,mt(w)}}}function X2(t){let l,e,n,r=t[11]("configuration.systemSettings")+"",a,f,u,d,c,p=t[11]("configuration.serverPort")+"",m,g,b,k,w,y,E,C=t[11]("configuration.workerProcesses")+"",T,M,P,I,H,j,D=t[11]("configuration.workerProcessesHelp")+"",B,N,V,Z,Y,x=t[11]("configuration.logLevel")+"",U,Q,S,L,F,z,J,se,oe,fe,pe,ne=t[11]("configuration.bodyParserLimit")+"",de,re,A,le,$,ce,ae=t[11]("configuration.bodyParserLimitHelp")+"",Se,Fe,qe,he,je,Ie,Be,ke,Ce,Re,He,ze,Ne,te,ve=t[11]("configuration.requiresRestart")+"",ue,ge,Ee,ye,We,Oe=t[11]("logging.title")+"",et,Ke,we,_e,Pe,Ze,Ae,Ve,be=t[11]("routes.title")+"",rt,dt,Me,Le,Te,it,Je,W=t[11]("configuration.routesConfigured",{values:{count:t[1].routes.length}})+"",De,ee,nt=t[11]("configuration.manageRoutes")+"",Bt,Ge,gt,Xe;function at(ut){t[26](ut)}let Et={label:t[11]("auth.globalAuth")};t[1].auth!==void 0&&(Et.value=t[1].auth),je=new u0({props:Et}),Ll.push(()=>jl(je,"value",at));function vt(ut){t[27](ut)}let Ft={};return t[1].logging!==void 0&&(Ft.value=t[1].logging),we=new O2({props:Ft}),Ll.push(()=>jl(we,"value",vt)),{c(){l=i("div"),e=i("div"),n=i("h2"),a=_(r),f=h(),u=i("div"),d=i("label"),c=i("span"),m=_(p),g=h(),b=i("input"),k=h(),w=i("div"),y=i("label"),E=i("span"),T=_(C),M=h(),P=i("input"),I=h(),H=i("div"),j=i("span"),B=_(D),N=h(),V=i("div"),Z=i("label"),Y=i("span"),U=_(x),Q=h(),S=i("select"),L=i("option"),L.textContent="Debug",F=i("option"),F.textContent="Info",z=i("option"),z.textContent="Warning",J=i("option"),J.textContent="Error",se=h(),oe=i("div"),fe=i("label"),pe=i("span"),de=_(ne),re=h(),A=i("input"),le=h(),$=i("div"),ce=i("span"),Se=_(ae),Fe=h(),qe=i("div"),he=h(),Ht(je.$$.fragment),Be=h(),ke=i("div"),Ce=h(),Re=i("div"),He=ie("svg"),ze=ie("path"),Ne=h(),te=i("span"),ue=_(ve),ge=h(),Ee=i("div"),ye=i("div"),We=i("h2"),et=_(Oe),Ke=h(),Ht(we.$$.fragment),Pe=h(),Ze=i("div"),Ae=i("div"),Ve=i("h2"),rt=_(be),dt=h(),Me=i("div"),Le=ie("svg"),Te=ie("path"),it=h(),Je=i("span"),De=_(W),ee=h(),Bt=_(nt),o(n,"class","card-title"),o(c,"class","label-text"),o(d,"class","label"),o(d,"for","config-port"),o(b,"id","config-port"),o(b,"type","number"),o(b,"class","input input-bordered"),o(b,"placeholder","8088"),o(u,"class","form-control"),o(E,"class","label-text"),o(y,"class","label"),o(y,"for","config-workers"),o(P,"id","config-workers"),o(P,"type","number"),o(P,"class","input input-bordered"),o(P,"min","1"),o(P,"placeholder","2"),o(j,"class","label-text-alt"),o(H,"class","label"),o(w,"class","form-control"),o(Y,"class","label-text"),o(Z,"class","label"),o(Z,"for","config-log-level"),L.__value="debug",G(L,L.__value),F.__value="info",G(F,F.__value),z.__value="warn",G(z,z.__value),J.__value="error",G(J,J.__value),o(S,"id","config-log-level"),o(S,"class","select select-bordered"),t[1].logLevel===void 0&&Cl(()=>t[24].call(S)),o(V,"class","form-control"),o(pe,"class","label-text"),o(fe,"class","label"),o(fe,"for","config-body-limit"),o(A,"id","config-body-limit"),o(A,"type","text"),o(A,"class","input input-bordered"),o(A,"placeholder","50mb"),o(ce,"class","label-text-alt"),o($,"class","label"),o(oe,"class","form-control"),o(qe,"class","divider"),o(ke,"class","divider"),o(ze,"stroke-linecap","round"),o(ze,"stroke-linejoin","round"),o(ze,"stroke-width","2"),o(ze,"d","M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"),o(He,"xmlns","http://www.w3.org/2000/svg"),o(He,"class","stroke-current shrink-0 h-6 w-6"),o(He,"fill","none"),o(He,"viewBox","0 0 24 24"),o(Re,"class","alert alert-warning"),o(e,"class","card-body"),o(l,"class","card bg-base-100 shadow-xl mb-4"),o(We,"class","card-title"),o(ye,"class","card-body"),o(Ee,"class","card bg-base-100 shadow-xl mb-4"),o(Ve,"class","card-title"),o(Te,"stroke-linecap","round"),o(Te,"stroke-linejoin","round"),o(Te,"stroke-width","2"),o(Te,"d","M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"),o(Le,"xmlns","http://www.w3.org/2000/svg"),o(Le,"fill","none"),o(Le,"viewBox","0 0 24 24"),o(Le,"class","stroke-current shrink-0 w-6 h-6"),o(Me,"class","alert alert-info"),o(Ae,"class","card-body"),o(Ze,"class","card bg-base-100 shadow-xl")},m(ut,_t){q(ut,l,_t),s(l,e),s(e,n),s(n,a),s(e,f),s(e,u),s(u,d),s(d,c),s(c,m),s(u,g),s(u,b),G(b,t[1].port),s(e,k),s(e,w),s(w,y),s(y,E),s(E,T),s(w,M),s(w,P),G(P,t[1].workers),s(w,I),s(w,H),s(H,j),s(j,B),s(e,N),s(e,V),s(V,Z),s(Z,Y),s(Y,U),s(V,Q),s(V,S),s(S,L),s(S,F),s(S,z),s(S,J),St(S,t[1].logLevel,!0),s(e,se),s(e,oe),s(oe,fe),s(fe,pe),s(pe,de),s(oe,re),s(oe,A),G(A,t[1].bodyParserLimit),s(oe,le),s(oe,$),s($,ce),s(ce,Se),s(e,Fe),s(e,qe),s(e,he),qt(je,e,null),s(e,Be),s(e,ke),s(e,Ce),s(e,Re),s(Re,He),s(He,ze),s(Re,Ne),s(Re,te),s(te,ue),q(ut,ge,_t),q(ut,Ee,_t),s(Ee,ye),s(ye,We),s(We,et),s(ye,Ke),qt(we,ye,null),q(ut,Pe,_t),q(ut,Ze,_t),s(Ze,Ae),s(Ae,Ve),s(Ve,rt),s(Ae,dt),s(Ae,Me),s(Me,Le),s(Le,Te),s(Me,it),s(Me,Je),s(Je,De),s(Je,ee),s(Je,Bt),Ge=!0,gt||(Xe=[O(b,"input",t[22]),O(P,"input",t[23]),O(S,"change",t[24]),O(A,"input",t[25])],gt=!0)},p(ut,_t){(!Ge||_t[0]&2048)&&r!==(r=ut[11]("configuration.systemSettings")+"")&&v(a,r),(!Ge||_t[0]&2048)&&p!==(p=ut[11]("configuration.serverPort")+"")&&v(m,p),_t[0]&2&&Ct(b.value)!==ut[1].port&&G(b,ut[1].port),(!Ge||_t[0]&2048)&&C!==(C=ut[11]("configuration.workerProcesses")+"")&&v(T,C),_t[0]&2&&Ct(P.value)!==ut[1].workers&&G(P,ut[1].workers),(!Ge||_t[0]&2048)&&D!==(D=ut[11]("configuration.workerProcessesHelp")+"")&&v(B,D),(!Ge||_t[0]&2048)&&x!==(x=ut[11]("configuration.logLevel")+"")&&v(U,x),_t[0]&2&&St(S,ut[1].logLevel),(!Ge||_t[0]&2048)&&ne!==(ne=ut[11]("configuration.bodyParserLimit")+"")&&v(de,ne),_t[0]&2&&A.value!==ut[1].bodyParserLimit&&G(A,ut[1].bodyParserLimit),(!Ge||_t[0]&2048)&&ae!==(ae=ut[11]("configuration.bodyParserLimitHelp")+"")&&v(Se,ae);const kt={};_t[0]&2048&&(kt.label=ut[11]("auth.globalAuth")),!Ie&&_t[0]&2&&(Ie=!0,kt.value=ut[1].auth,Dl(()=>Ie=!1)),je.$set(kt),(!Ge||_t[0]&2048)&&ve!==(ve=ut[11]("configuration.requiresRestart")+"")&&v(ue,ve),(!Ge||_t[0]&2048)&&Oe!==(Oe=ut[11]("logging.title")+"")&&v(et,Oe);const ct={};!_e&&_t[0]&2&&(_e=!0,ct.value=ut[1].logging,Dl(()=>_e=!1)),we.$set(ct),(!Ge||_t[0]&2048)&&be!==(be=ut[11]("routes.title")+"")&&v(rt,be),(!Ge||_t[0]&2050)&&W!==(W=ut[11]("configuration.routesConfigured",{values:{count:ut[1].routes.length}})+"")&&v(De,W),(!Ge||_t[0]&2048)&&nt!==(nt=ut[11]("configuration.manageRoutes")+"")&&v(Bt,nt)},i(ut){Ge||($e(je.$$.fragment,ut),$e(we.$$.fragment,ut),Ge=!0)},o(ut){lt(je.$$.fragment,ut),lt(we.$$.fragment,ut),Ge=!1},d(ut){ut&&(R(l),R(ge),R(Ee),R(Pe),R(Ze)),Rt(je),Rt(we),gt=!1,mt(Xe)}}}function g1(t){let l,e,n,r,a,f=t[11]("configuration.jsonParseError",{values:{error:t[9]}})+"",u;return{c(){l=i("div"),e=ie("svg"),n=ie("path"),r=h(),a=i("span"),u=_(f),o(n,"stroke-linecap","round"),o(n,"stroke-linejoin","round"),o(n,"stroke-width","2"),o(n,"d","M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z"),o(e,"xmlns","http://www.w3.org/2000/svg"),o(e,"class","stroke-current shrink-0 h-6 w-6"),o(e,"fill","none"),o(e,"viewBox","0 0 24 24"),o(l,"class","alert alert-error mb-4")},m(d,c){q(d,l,c),s(l,e),s(e,n),s(l,r),s(l,a),s(a,u)},p(d,c){c[0]&2560&&f!==(f=d[11]("configuration.jsonParseError",{values:{error:d[9]}})+"")&&v(u,f)},d(d){d&&R(l)}}}function x2(t){let l,e,n,r,a=t[11]("configuration.title")+"",f,u,d,c=t[11]("configuration.subtitle")+"",p,m,g,b,k,w,y,E=t[11]("configuration.export")+"",C,T,M,P,I,H,j,D=t[11]("configuration.import")+"",B,N,V,Z,Y=t[11]("configuration.save")+"",x,U,Q,S,L,F=t[11]("configuration.reload")+"",z,J,se,oe,fe,pe=t[11]("configuration.restart")+"",ne,de,re,A,le,$,ce,ae,Se,Fe,qe,he=t[11]("configuration.confirmRestart")+"",je,Ie,Be,ke=t[11]("configuration.restartMessage")+"",Ce,Re,He,ze,Ne,te,ve,ue=t[11]("configuration.restartWarning")+"",ge,Ee,ye,We,Oe=t[11]("common.cancel")+"",et,Ke,we,_e,Pe,Ze,Ae=t[11]("configuration.restart")+"",Ve,be,rt,dt;function Me(Xe,at){return Xe[6]?U2:N2}let Le=Me(t),Te=Le(t);function it(Xe,at){return Xe[4]?J2:V2}let Je=it(t),W=Je(t);function De(Xe,at){return Xe[5]?K2:W2}let ee=De(t),nt=ee(t);const Bt=[Q2,Y2,G2],Ge=[];function gt(Xe,at){return Xe[3]?0:Xe[2]?1:Xe[1]?2:-1}return~(A=gt(t))&&(le=Ge[A]=Bt[A](t)),{c(){l=i("div"),e=i("div"),n=i("div"),r=i("h1"),f=_(a),u=h(),d=i("p"),p=_(c),m=h(),g=i("div"),b=i("button"),k=ie("svg"),w=ie("path"),y=h(),C=_(E),M=h(),P=i("button"),I=ie("svg"),H=ie("path"),j=h(),B=_(D),N=h(),V=i("button"),Te.c(),Z=h(),x=_(Y),Q=h(),S=i("button"),W.c(),L=h(),z=_(F),se=h(),oe=i("button"),nt.c(),fe=h(),ne=_(pe),re=h(),le&&le.c(),$=h(),ce=i("input"),ae=h(),Se=i("div"),Fe=i("div"),qe=i("h3"),je=_(he),Ie=h(),Be=i("p"),Ce=_(ke),Re=h(),He=i("div"),ze=ie("svg"),Ne=ie("path"),te=h(),ve=i("span"),ge=_(ue),Ee=h(),ye=i("div"),We=i("button"),et=_(Oe),Ke=h(),we=i("button"),_e=ie("svg"),Pe=ie("path"),Ze=h(),Ve=_(Ae),o(r,"class","text-3xl font-bold"),o(d,"class","text-sm text-gray-500 mt-1"),o(w,"stroke-linecap","round"),o(w,"stroke-linejoin","round"),o(w,"stroke-width","2"),o(w,"d","M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"),o(k,"xmlns","http://www.w3.org/2000/svg"),o(k,"class","h-4 w-4"),o(k,"fill","none"),o(k,"viewBox","0 0 24 24"),o(k,"stroke","currentColor"),o(b,"class","btn btn-outline btn-sm"),b.disabled=T=t[3]||!t[0],o(H,"stroke-linecap","round"),o(H,"stroke-linejoin","round"),o(H,"stroke-width","2"),o(H,"d","M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-8l-4-4m0 0L8 8m4-4v12"),o(I,"xmlns","http://www.w3.org/2000/svg"),o(I,"class","h-4 w-4"),o(I,"fill","none"),o(I,"viewBox","0 0 24 24"),o(I,"stroke","currentColor"),o(P,"class","btn btn-outline btn-sm"),P.disabled=t[3],o(V,"class","btn btn-success btn-sm"),V.disabled=U=t[6]||t[3]||!!t[9],o(S,"class","btn btn-primary btn-sm"),S.disabled=J=t[4]||t[3],o(oe,"class","btn btn-warning btn-sm"),oe.disabled=de=t[5]||t[3],o(g,"class","flex gap-2"),o(e,"class","flex justify-between items-center mb-6"),o(ce,"type","checkbox"),o(ce,"class","modal-toggle"),o(qe,"class","font-bold text-lg"),o(Be,"class","py-4"),o(Ne,"stroke-linecap","round"),o(Ne,"stroke-linejoin","round"),o(Ne,"stroke-width","2"),o(Ne,"d","M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"),o(ze,"xmlns","http://www.w3.org/2000/svg"),o(ze,"class","stroke-current shrink-0 h-6 w-6"),o(ze,"fill","none"),o(ze,"viewBox","0 0 24 24"),o(He,"class","alert alert-warning"),o(We,"class","btn btn-ghost"),o(Pe,"stroke-linecap","round"),o(Pe,"stroke-linejoin","round"),o(Pe,"stroke-width","2"),o(Pe,"d","M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"),o(_e,"xmlns","http://www.w3.org/2000/svg"),o(_e,"class","h-4 w-4 mr-1"),o(_e,"fill","none"),o(_e,"viewBox","0 0 24 24"),o(_e,"stroke","currentColor"),o(we,"class","btn btn-warning"),o(ye,"class","modal-action"),o(Fe,"class","modal-box"),o(Se,"class","modal"),X(Se,"modal-open",t[10]),o(l,"class","p-6")},m(Xe,at){q(Xe,l,at),s(l,e),s(e,n),s(n,r),s(r,f),s(n,u),s(n,d),s(d,p),s(e,m),s(e,g),s(g,b),s(b,k),s(k,w),s(b,y),s(b,C),s(g,M),s(g,P),s(P,I),s(I,H),s(P,j),s(P,B),s(g,N),s(g,V),Te.m(V,null),s(V,Z),s(V,x),s(g,Q),s(g,S),W.m(S,null),s(S,L),s(S,z),s(g,se),s(g,oe),nt.m(oe,null),s(oe,fe),s(oe,ne),s(l,re),~A&&Ge[A].m(l,null),s(l,$),s(l,ce),ce.checked=t[10],s(l,ae),s(l,Se),s(Se,Fe),s(Fe,qe),s(qe,je),s(Fe,Ie),s(Fe,Be),s(Be,Ce),s(Fe,Re),s(Fe,He),s(He,ze),s(ze,Ne),s(He,te),s(He,ve),s(ve,ge),s(Fe,Ee),s(Fe,ye),s(ye,We),s(We,et),s(ye,Ke),s(ye,we),s(we,_e),s(_e,Pe),s(we,Ze),s(we,Ve),be=!0,rt||(dt=[O(b,"click",t[14]),O(P,"click",t[15]),O(V,"click",t[13]),O(S,"click",t[16]),O(oe,"click",t[18]),O(ce,"change",t[29]),O(We,"click",t[30]),O(we,"click",t[17])],rt=!0)},p(Xe,at){(!be||at[0]&2048)&&a!==(a=Xe[11]("configuration.title")+"")&&v(f,a),(!be||at[0]&2048)&&c!==(c=Xe[11]("configuration.subtitle")+"")&&v(p,c),(!be||at[0]&2048)&&E!==(E=Xe[11]("configuration.export")+"")&&v(C,E),(!be||at[0]&9&&T!==(T=Xe[3]||!Xe[0]))&&(b.disabled=T),(!be||at[0]&2048)&&D!==(D=Xe[11]("configuration.import")+"")&&v(B,D),(!be||at[0]&8)&&(P.disabled=Xe[3]),Le!==(Le=Me(Xe))&&(Te.d(1),Te=Le(Xe),Te&&(Te.c(),Te.m(V,Z))),(!be||at[0]&2048)&&Y!==(Y=Xe[11]("configuration.save")+"")&&v(x,Y),(!be||at[0]&584&&U!==(U=Xe[6]||Xe[3]||!!Xe[9]))&&(V.disabled=U),Je!==(Je=it(Xe))&&(W.d(1),W=Je(Xe),W&&(W.c(),W.m(S,L))),(!be||at[0]&2048)&&F!==(F=Xe[11]("configuration.reload")+"")&&v(z,F),(!be||at[0]&24&&J!==(J=Xe[4]||Xe[3]))&&(S.disabled=J),ee!==(ee=De(Xe))&&(nt.d(1),nt=ee(Xe),nt&&(nt.c(),nt.m(oe,fe))),(!be||at[0]&2048)&&pe!==(pe=Xe[11]("configuration.restart")+"")&&v(ne,pe),(!be||at[0]&40&&de!==(de=Xe[5]||Xe[3]))&&(oe.disabled=de);let Et=A;A=gt(Xe),A===Et?~A&&Ge[A].p(Xe,at):(le&&(Ql(),lt(Ge[Et],1,1,()=>{Ge[Et]=null}),Zl()),~A?(le=Ge[A],le?le.p(Xe,at):(le=Ge[A]=Bt[A](Xe),le.c()),$e(le,1),le.m(l,$)):le=null),at[0]&1024&&(ce.checked=Xe[10]),(!be||at[0]&2048)&&he!==(he=Xe[11]("configuration.confirmRestart")+"")&&v(je,he),(!be||at[0]&2048)&&ke!==(ke=Xe[11]("configuration.restartMessage")+"")&&v(Ce,ke),(!be||at[0]&2048)&&ue!==(ue=Xe[11]("configuration.restartWarning")+"")&&v(ge,ue),(!be||at[0]&2048)&&Oe!==(Oe=Xe[11]("common.cancel")+"")&&v(et,Oe),(!be||at[0]&2048)&&Ae!==(Ae=Xe[11]("configuration.restart")+"")&&v(Ve,Ae),(!be||at[0]&1024)&&X(Se,"modal-open",Xe[10])},i(Xe){be||($e(le),be=!0)},o(Xe){lt(le),be=!1},d(Xe){Xe&&R(l),Te.d(),W.d(),nt.d(),~A&&Ge[A].d(),rt=!1,mt(dt)}}}function $2(t,l,e){let n;Nt(t,Dt,L=>e(11,n=L));let r=null,a=null,f=null,u=!0,d=!1,c=!1,p=!1,m="form",g="",b=null,k=!1;async function w(){try{e(0,r=await Iu()),e(1,a=JSON.parse(JSON.stringify(r))),e(8,g=JSON.stringify(r,null,2)),e(2,f=null)}catch(L){e(2,f=L.message)}finally{e(3,u=!1)}}function y(){e(9,b=null);try{e(1,a=JSON.parse(g))}catch(L){e(9,b=L.message)}}async function E(){if(a){e(6,p=!0);try{const L=await J0(a);if(!L.valid){At.show(n("configuration.validationFailed",{values:{error:L.error}}),"error");return}const F=await V0(a);F.success?(At.show(n("configuration.saved"),"success"),e(0,r=JSON.parse(JSON.stringify(a)))):At.show(n("configuration.saveFailed",{values:{error:F.message}}),"error")}catch(L){At.show(n("configuration.saveFailed",{values:{error:L.message}}),"error")}finally{e(6,p=!1)}}}function C(){if(!r)return;const L=JSON.stringify(r,null,2),F="data:application/json;charset=utf-8,"+encodeURIComponent(L),z=\`bungee-config-\${new Date().toISOString().split("T")[0]}.json\`,J=document.createElement("a");J.setAttribute("href",F),J.setAttribute("download",z),J.click(),At.show(n("configuration.exported"),"success")}function T(){const L=document.createElement("input");L.type="file",L.accept=".json",L.onchange=async F=>{const z=F.target.files[0];if(z)try{const J=await z.text(),se=JSON.parse(J);e(1,a=se),e(8,g=JSON.stringify(se,null,2)),At.show(n("configuration.imported"),"success")}catch(J){At.show(n("configuration.importFailed",{values:{error:J.message}}),"error")}},L.click()}async function M(){e(4,d=!0);try{const L=await S2();L.success?(At.show(n("configuration.reloaded"),"success"),await w()):At.show(n("configuration.reloadFailed",{values:{error:L.message}}),"error")}catch(L){At.show(n("configuration.reloadFailed",{values:{error:L.message}}),"error")}finally{e(4,d=!1)}}async function P(){e(10,k=!1),e(5,c=!0);try{const L=await M2();L.success?At.show(n("configuration.restartSent"),"success"):L.error&&L.error.includes("daemon mode")?At.show(n("configuration.restartDaemonOnly"),"error",8e3):At.show(n("configuration.restartFailed",{values:{error:L.error||L.message}}),"error")}catch(L){At.show(n("configuration.restartFailed",{values:{error:L.message}}),"error")}finally{e(5,c=!1)}}Hs(()=>{w()});const I=[[]],H=()=>e(10,k=!0);function j(){m=this.__value,e(7,m)}function D(){m=this.__value,e(7,m)}function B(){a.port=Ct(this.value),e(1,a)}function N(){a.workers=Ct(this.value),e(1,a)}function V(){a.logLevel=yl(this),e(1,a)}function Z(){a.bodyParserLimit=this.value,e(1,a)}function Y(L){t.$$.not_equal(a.auth,L)&&(a.auth=L,e(1,a))}function x(L){t.$$.not_equal(a.logging,L)&&(a.logging=L,e(1,a))}function U(){g=this.value,e(8,g)}function Q(){k=this.checked,e(10,k)}return[r,a,f,u,d,c,p,m,g,b,k,n,y,E,C,T,M,P,H,j,I,D,B,N,V,Z,Y,x,U,Q,()=>e(10,k=!1)]}class eh extends Kt{constructor(l){super(),Gt(this,l,$2,x2,Yt,{},null,[-1,-1])}}class go{static async list(){return await ql.get("/routes")}static async get(l){return(await this.list()).find(n=>n.path===l)||null}static async create(l){const e=await ql.get("/config");if(e.routes?.some(n=>n.path===l.path))throw new Error(\`Route with path "\${l.path}" already exists\`);e.routes=e.routes||[],e.routes.push(l),await ql.put("/config",e)}static async update(l,e){const n=await ql.get("/config"),r=n.routes?.findIndex(a=>a.path===l);if(r===void 0||r===-1)throw new Error(\`Route with path "\${l}" not found\`);if(l!==e.path&&n.routes?.some(a=>a.path===e.path))throw new Error(\`Route with path "\${e.path}" already exists\`);n.routes[r]=e,await ql.put("/config",n)}static async delete(l){const e=await ql.get("/config"),n=e.routes?.findIndex(r=>r.path===l);if(n===void 0||n===-1)throw new Error(\`Route with path "\${l}" not found\`);e.routes.splice(n,1),await ql.put("/config",e)}static async validateRoute(l){const e={routes:[l]};return await ql.post("/config/validate",e)}static async duplicate(l){const e=await this.get(l);if(!e)throw new Error(\`Route with path "\${l}" not found\`);const n={...e};let r=1,a=\`\${l}-copy\`;const f=await this.list();for(;f.some(u=>u.path===a);)r++,a=\`\${l}-copy-\${r}\`;n.path=a,await this.create(n)}}const _1="/__ui/api";class f0{static async getAll(){const l=await fetch(\`\${_1}/transformers\`);if(!l.ok)throw new Error(\`HTTP \${l.status}: \${l.statusText}\`);const e=await l.json();return e.plugins||e.transformers||[]}static async getById(l){const e=await fetch(\`\${_1}/transformers/\${encodeURIComponent(l)}\`);if(!e.ok)throw new Error(\`HTTP \${e.status}: \${e.statusText}\`);return await e.json()}}let $i=null;async function th(){if($i===null)try{$i=await f0.getAll()}catch(t){console.warn("Failed to fetch transformers from API, using fallback:",t),$i=["openai-to-anthropic","anthropic-to-openai","anthropic-to-gemini"]}return $i}function Qn(t,l){const e=[],n=\`upstreams[\${l}]\`;if(!t.target)e.push({field:\`\${n}.target\`,message:Cs(Dt)("validation.targetRequired")});else try{const r=new URL(t.target);["http:","https:"].includes(r.protocol)||e.push({field:\`\${n}.target\`,message:Cs(Dt)("validation.targetProtocol")})}catch{e.push({field:\`\${n}.target\`,message:Cs(Dt)("validation.invalidUrl")})}return t.weight!==void 0&&(typeof t.weight!="number"||t.weight<=0)&&e.push({field:\`\${n}.weight\`,message:Cs(Dt)("validation.weightPositive")}),t.priority!==void 0&&(typeof t.priority!="number"||t.priority<0)&&e.push({field:\`\${n}.priority\`,message:Cs(Dt)("validation.priorityNonNegative")}),e}function lh(t){const l=[];return t.length>0&&t.every(r=>r.disabled===!0)&&l.push({field:"upstreams",message:"\u8B66\u544A\uFF1A\u6240\u6709\u4E0A\u6E38\u670D\u52A1\u5668\u90FD\u5DF2\u7981\u7528\uFF0C\u8DEF\u7531\u5C06\u65E0\u6CD5\u5904\u7406\u8BF7\u6C42",level:"warning"}),t.some(r=>r.weight!==void 0)&&t.reduce((a,f)=>a+(f.weight||0),0)===0&&l.push({field:"upstreams",message:Cs(Dt)("validation.totalWeightPositive")}),l}async function sh(t,l){const e=Qn(t,l),n=\`upstreams[\${l}]\`;if(t.plugins&&t.plugins.length>0){const r=t.plugins[0];if(typeof r=="string")try{const a=await th();if(!a.includes(r)){const f=Cs(Dt);e.push({field:\`\${n}.plugins\`,message:f("validation.unknownTransformer",{values:{transformer:r,options:a.join(", ")}})})}}catch(a){console.warn("Failed to validate plugin:",a)}}return e}async function oh(t){const l=[];if(t.path?t.path.startsWith("/")||l.push({field:"path",message:Cs(Dt)("validation.pathStartSlash")}):l.push({field:"path",message:Cs(Dt)("validation.pathRequired")}),!t.upstreams||t.upstreams.length===0)l.push({field:"upstreams",message:Cs(Dt)("validation.upstreamRequired")});else{const e=t.upstreams.map((r,a)=>sh(r,a));(await Promise.all(e)).forEach(r=>l.push(...r))}return t.pathRewrite&&Object.keys(t.pathRewrite).forEach(e=>{try{new RegExp(e)}catch{const n=Cs(Dt);l.push({field:\`pathRewrite.\${e}\`,message:n("validation.invalidRegex",{values:{pattern:e}})})}}),t.failover?.enabled&&(t.failover.retryableStatusCodes&&t.failover.retryableStatusCodes.forEach(e=>{if(e<100||e>599){const n=Cs(Dt);l.push({field:"failover.retryableStatusCodes",message:n("validation.invalidStatusCode",{values:{code:e}})})}}),t.failover.recoveryIntervalMs!==void 0&&t.failover.recoveryIntervalMs<=0&&l.push({field:"failover.recoveryIntervalMs",message:Cs(Dt)("validation.recoveryIntervalPositive")}),t.failover.recoveryTimeoutMs!==void 0&&t.failover.recoveryTimeoutMs<=0&&l.push({field:"failover.recoveryTimeoutMs",message:Cs(Dt)("validation.recoveryTimeoutPositive")})),l}function b1(t,l,e){const n=t.slice();return n[33]=l[e],n[34]=l,n[35]=e,n}function v1(t){let l;return{c(){l=i("span"),l.textContent="RED",o(l,"class","text-xs text-error font-semibold")},m(e,n){q(e,l,n)},d(e){e&&R(l)}}}function nh(t){let l,e,n;function r(){return t[20](t[35])}function a(...f){return t[21](t[35],...f)}return{c(){l=i("span"),l.textContent="-",o(l,"class","text-xs text-gray-400 cursor-pointer hover:bg-base-200 px-2 py-1 rounded"),o(l,"role","button"),o(l,"tabindex","0"),X(l,"pointer-events-none",t[5])},m(f,u){q(f,l,u),e||(n=[O(l,"click",r),O(l,"keydown",a)],e=!0)},p(f,u){t=f,u[0]&32&&X(l,"pointer-events-none",t[5])},d(f){f&&R(l),e=!1,mt(n)}}}function rh(t){let l,e=t[33].description+"",n,r,a,f;function u(){return t[18](t[35])}function d(...c){return t[19](t[35],...c)}return{c(){l=i("span"),n=_(e),o(l,"class","text-xs text-gray-500 truncate block cursor-pointer hover:bg-base-200 px-2 py-1 rounded"),o(l,"title",r=t[33].description),o(l,"role","button"),o(l,"tabindex","0"),X(l,"pointer-events-none",t[5])},m(c,p){q(c,l,p),s(l,n),a||(f=[O(l,"click",u),O(l,"keydown",d)],a=!0)},p(c,p){t=c,p[0]&4&&e!==(e=t[33].description+"")&&v(n,e),p[0]&4&&r!==(r=t[33].description)&&o(l,"title",r),p[0]&32&&X(l,"pointer-events-none",t[5])},d(c){c&&R(l),a=!1,mt(f)}}}function ih(t){let l,e,n,r,a;function f(){t[17].call(e,t[34],t[35])}return{c(){l=i("div"),e=i("input"),o(e,"type","text"),o(e,"class","input input-sm input-bordered w-full"),e.disabled=t[5],o(e,"placeholder",n=t[7]("upstream.descriptionPlaceholder")),o(l,"class","flex items-center gap-1")},m(u,d){q(u,l,d),s(l,e),G(e,t[33].description),r||(a=[O(e,"input",f),O(e,"blur",t[11]),O(e,"keydown",t[12])],r=!0)},p(u,d){t=u,d[0]&32&&(e.disabled=t[5]),d[0]&128&&n!==(n=t[7]("upstream.descriptionPlaceholder"))&&o(e,"placeholder",n),d[0]&4&&e.value!==t[33].description&&G(e,t[33].description)},d(u){u&&R(l),r=!1,mt(a)}}}function ah(t){let l,e=(t[33].priority||1)+"",n,r,a;function f(){return t[23](t[35])}function u(...d){return t[24](t[35],...d)}return{c(){l=i("span"),n=_(e),o(l,"class","cursor-pointer hover:bg-base-200 px-2 py-1 rounded"),o(l,"role","button"),o(l,"tabindex","0"),X(l,"pointer-events-none",t[5])},m(d,c){q(d,l,c),s(l,n),r||(a=[O(l,"click",f),O(l,"keydown",u)],r=!0)},p(d,c){t=d,c[0]&4&&e!==(e=(t[33].priority||1)+"")&&v(n,e),c[0]&32&&X(l,"pointer-events-none",t[5])},d(d){d&&R(l),r=!1,mt(a)}}}function uh(t){let l,e,n,r,a;function f(){t[22].call(e,t[34],t[35])}let u=t[6].length>0&&k1(t);return{c(){l=i("div"),e=i("input"),n=h(),u&&u.c(),o(e,"type","number"),o(e,"class","input input-sm input-bordered w-16 text-right"),e.disabled=t[5],X(e,"input-error",t[6].length>0),o(l,"class","flex items-center justify-end gap-1")},m(d,c){q(d,l,c),s(l,e),G(e,t[33].priority),s(l,n),u&&u.m(l,null),r||(a=[O(e,"input",f),O(e,"blur",t[11]),O(e,"keydown",t[12])],r=!0)},p(d,c){t=d,c[0]&32&&(e.disabled=t[5]),c[0]&4&&Ct(e.value)!==t[33].priority&&G(e,t[33].priority),c[0]&64&&X(e,"input-error",t[6].length>0),t[6].length>0?u?u.p(t,c):(u=k1(t),u.c(),u.m(l,null)):u&&(u.d(1),u=null)},d(d){d&&R(l),u&&u.d(),r=!1,mt(a)}}}function k1(t){let l,e,n,r;return{c(){l=i("div"),e=ie("svg"),n=ie("path"),o(n,"fill-rule","evenodd"),o(n,"d","M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7 4a1 1 0 11-2 0 1 1 0 012 0zm-1-9a1 1 0 00-1 1v4a1 1 0 102 0V6a1 1 0 00-1-1z"),o(n,"clip-rule","evenodd"),o(e,"xmlns","http://www.w3.org/2000/svg"),o(e,"class","h-5 w-5 text-error"),o(e,"viewBox","0 0 20 20"),o(e,"fill","currentColor"),o(l,"class","tooltip tooltip-error"),o(l,"data-tip",r=t[6][0].message)},m(a,f){q(a,l,f),s(l,e),s(e,n)},p(a,f){f[0]&64&&r!==(r=a[6][0].message)&&o(l,"data-tip",r)},d(a){a&&R(l)}}}function fh(t){let l,e=(t[33].weight||100)+"",n,r,a;function f(){return t[26](t[35])}function u(...d){return t[27](t[35],...d)}return{c(){l=i("span"),n=_(e),o(l,"class","cursor-pointer hover:bg-base-200 px-2 py-1 rounded"),o(l,"role","button"),o(l,"tabindex","0"),X(l,"pointer-events-none",t[5])},m(d,c){q(d,l,c),s(l,n),r||(a=[O(l,"click",f),O(l,"keydown",u)],r=!0)},p(d,c){t=d,c[0]&4&&e!==(e=(t[33].weight||100)+"")&&v(n,e),c[0]&32&&X(l,"pointer-events-none",t[5])},d(d){d&&R(l),r=!1,mt(a)}}}function dh(t){let l,e,n,r,a;function f(){t[25].call(e,t[34],t[35])}let u=t[6].length>0&&w1(t);return{c(){l=i("div"),e=i("input"),n=h(),u&&u.c(),o(e,"type","number"),o(e,"class","input input-sm input-bordered w-16 text-right"),e.disabled=t[5],X(e,"input-error",t[6].length>0),o(l,"class","flex items-center justify-end gap-1")},m(d,c){q(d,l,c),s(l,e),G(e,t[33].weight),s(l,n),u&&u.m(l,null),r||(a=[O(e,"input",f),O(e,"blur",t[11]),O(e,"keydown",t[12])],r=!0)},p(d,c){t=d,c[0]&32&&(e.disabled=t[5]),c[0]&4&&Ct(e.value)!==t[33].weight&&G(e,t[33].weight),c[0]&64&&X(e,"input-error",t[6].length>0),t[6].length>0?u?u.p(t,c):(u=w1(t),u.c(),u.m(l,null)):u&&(u.d(1),u=null)},d(d){d&&R(l),u&&u.d(),r=!1,mt(a)}}}function w1(t){let l,e,n,r;return{c(){l=i("div"),e=ie("svg"),n=ie("path"),o(n,"fill-rule","evenodd"),o(n,"d","M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7 4a1 1 0 11-2 0 1 1 0 012 0zm-1-9a1 1 0 00-1 1v4a1 1 0 102 0V6a1 1 0 00-1-1z"),o(n,"clip-rule","evenodd"),o(e,"xmlns","http://www.w3.org/2000/svg"),o(e,"class","h-5 w-5 text-error"),o(e,"viewBox","0 0 20 20"),o(e,"fill","currentColor"),o(l,"class","tooltip tooltip-error"),o(l,"data-tip",r=t[6][0].message)},m(a,f){q(a,l,f),s(l,e),s(e,n)},p(a,f){f[0]&64&&r!==(r=a[6][0].message)&&o(l,"data-tip",r)},d(a){a&&R(l)}}}function y1(t,l){let e,n,r,a,f,u,d=js(l[33])==="unhealthy"&&!l[33].disabled,c,p,m,g,b,k,w,y,E=l[33].target+"",C,T,M,P,I,H,j,D,B,N,V=d&&v1();function Z(){return l[16](l[35])}function Y(se,oe){return se[3]===se[35]&&se[4]==="description"?ih:se[33].description?rh:nh}let x=Y(l),U=x(l);function Q(se,oe){return se[3]===se[35]&&se[4]==="priority"?uh:ah}let S=Q(l),L=S(l);function F(se,oe){return se[3]===se[35]&&se[4]==="weight"?dh:fh}let z=F(l),J=z(l);return{key:t,first:null,c(){e=i("tr"),n=i("td"),r=i("div"),a=i("div"),u=h(),V&&V.c(),c=h(),p=i("td"),m=i("input"),k=h(),w=i("td"),y=i("code"),C=_(E),T=h(),M=i("td"),U.c(),P=h(),I=i("td"),L.c(),H=h(),j=i("td"),J.c(),D=h(),o(a,"class","w-3 h-3 rounded-full tooltip tooltip-right"),o(a,"data-tip",f=l[33].disabled?l[7]("upstream.disabled"):l[33].lastFailureTime?\`\u6700\u540E\u5931\u8D25: \${T1(l[33].lastFailureTime)}\`:js(l[33])==="healthy"?l[7]("upstreamsModal.statusHealthy"):js(l[33])==="unhealthy"?l[7]("upstreamsModal.statusUnhealthy"):l[7]("upstreamsModal.statusUnknown")),X(a,"bg-success",js(l[33])==="healthy"&&!l[33].disabled),X(a,"bg-error",js(l[33])==="unhealthy"&&!l[33].disabled),X(a,"bg-warning",js(l[33])==="unknown"&&!l[33].disabled),X(a,"bg-gray-400",l[33].disabled),o(r,"class","flex items-center gap-2"),o(m,"type","checkbox"),o(m,"class","checkbox checkbox-sm checkbox-success"),m.checked=g=!l[33].disabled,m.disabled=l[5],o(m,"title",b=l[33].disabled?l[7]("upstream.enableTooltip"):l[7]("upstream.disableTooltip")),o(p,"class","text-center"),o(y,"class","text-sm"),o(I,"class","text-right"),o(j,"class","text-right"),o(e,"class","hover"),X(e,"opacity-50",l[33].disabled||l[5]),this.first=e},m(se,oe){q(se,e,oe),s(e,n),s(n,r),s(r,a),s(r,u),V&&V.m(r,null),s(e,c),s(e,p),s(p,m),s(e,k),s(e,w),s(w,y),s(y,C),s(e,T),s(e,M),U.m(M,null),s(e,P),s(e,I),L.m(I,null),s(e,H),s(e,j),J.m(j,null),s(e,D),B||(N=O(m,"change",Z),B=!0)},p(se,oe){l=se,oe[0]&132&&f!==(f=l[33].disabled?l[7]("upstream.disabled"):l[33].lastFailureTime?\`\u6700\u540E\u5931\u8D25: \${T1(l[33].lastFailureTime)}\`:js(l[33])==="healthy"?l[7]("upstreamsModal.statusHealthy"):js(l[33])==="unhealthy"?l[7]("upstreamsModal.statusUnhealthy"):l[7]("upstreamsModal.statusUnknown"))&&o(a,"data-tip",f),oe[0]&4&&X(a,"bg-success",js(l[33])==="healthy"&&!l[33].disabled),oe[0]&4&&X(a,"bg-error",js(l[33])==="unhealthy"&&!l[33].disabled),oe[0]&4&&X(a,"bg-warning",js(l[33])==="unknown"&&!l[33].disabled),oe[0]&4&&X(a,"bg-gray-400",l[33].disabled),oe[0]&4&&(d=js(l[33])==="unhealthy"&&!l[33].disabled),d?V||(V=v1(),V.c(),V.m(r,null)):V&&(V.d(1),V=null),oe[0]&4&&g!==(g=!l[33].disabled)&&(m.checked=g),oe[0]&32&&(m.disabled=l[5]),oe[0]&132&&b!==(b=l[33].disabled?l[7]("upstream.enableTooltip"):l[7]("upstream.disableTooltip"))&&o(m,"title",b),oe[0]&4&&E!==(E=l[33].target+"")&&v(C,E),x===(x=Y(l))&&U?U.p(l,oe):(U.d(1),U=x(l),U&&(U.c(),U.m(M,null))),S===(S=Q(l))&&L?L.p(l,oe):(L.d(1),L=S(l),L&&(L.c(),L.m(I,null))),z===(z=F(l))&&J?J.p(l,oe):(J.d(1),J=z(l),J&&(J.c(),J.m(j,null))),oe[0]&36&&X(e,"opacity-50",l[33].disabled||l[5])},d(se){se&&R(e),V&&V.d(),U.d(),L.d(),J.d(),B=!1,N()}}}function C1(t){let l,e,n,r,a=t[7]("upstreamsModal.saving")+"",f;return{c(){l=i("div"),e=i("span"),n=h(),r=i("span"),f=_(a),o(e,"class","loading loading-spinner loading-sm"),o(l,"class","alert alert-info mt-2")},m(u,d){q(u,l,d),s(l,e),s(l,n),s(l,r),s(r,f)},p(u,d){d[0]&128&&a!==(a=u[7]("upstreamsModal.saving")+"")&&v(f,a)},d(u){u&&R(l)}}}function E1(t){let l;return{c(){l=i("span"),o(l,"class","loading loading-spinner loading-sm")},m(e,n){q(e,l,n)},d(e){e&&R(l)}}}function ch(t){let l,e,n,r=t[7]("upstreamsModal.title")+"",a,f,u,d=t[1].path+"",c,p,m,g,b,k,w,y=t[7]("routeCard.tableHeaders.status")+"",E,C,T,M=t[7]("upstream.status")+"",P,I,H,j=t[7]("upstream.target")+"",D,B,N,V=t[7]("upstream.description")+"",Z,Y,x,U=t[7]("upstream.priority")+"",Q,S,L,F=t[7]("upstream.weight")+"",z,J,se,oe=[],fe=new Map,pe,ne,de,re,A,le=t[7]("upstreamsModal.close")+"",$,ce,ae,Se,Fe,qe,he=ft(t[2]);const je=ke=>ke[33]._uid||ke[35];for(let ke=0;ke<he.length;ke+=1){let Ce=b1(t,he,ke),Re=je(Ce);fe.set(Re,oe[ke]=y1(Re,Ce))}let Ie=t[5]&&C1(t),Be=t[5]&&E1();return{c(){l=i("dialog"),e=i("div"),n=i("h3"),a=_(r),f=_(" - "),u=i("code"),c=_(d),p=h(),m=i("div"),g=i("table"),b=i("thead"),k=i("tr"),w=i("th"),E=_(y),C=h(),T=i("th"),P=_(M),I=h(),H=i("th"),D=_(j),B=h(),N=i("th"),Z=_(V),Y=h(),x=i("th"),Q=_(U),S=h(),L=i("th"),z=_(F),J=h(),se=i("tbody");for(let ke=0;ke<oe.length;ke+=1)oe[ke].c();pe=h(),Ie&&Ie.c(),ne=h(),de=i("div"),re=i("button"),Be&&Be.c(),A=h(),$=_(le),ce=h(),ae=i("form"),Se=i("button"),Se.textContent="close",o(u,"class","text-primary"),o(n,"class","font-bold text-lg mb-4"),o(w,"class","w-20"),o(T,"class","w-16 text-center"),o(N,"class","w-40"),o(x,"class","w-20 text-right"),o(L,"class","w-24 text-right"),o(g,"class","table table-zebra w-full"),o(m,"class","overflow-x-auto max-h-[60vh]"),o(re,"class","btn"),re.disabled=t[5],o(de,"class","modal-action"),o(e,"class","modal-box max-w-4xl"),o(ae,"method","dialog"),o(ae,"class","modal-backdrop"),o(l,"class","modal"),X(l,"modal-open",t[0])},m(ke,Ce){q(ke,l,Ce),s(l,e),s(e,n),s(n,a),s(n,f),s(n,u),s(u,c),s(e,p),s(e,m),s(m,g),s(g,b),s(b,k),s(k,w),s(w,E),s(k,C),s(k,T),s(T,P),s(k,I),s(k,H),s(H,D),s(k,B),s(k,N),s(N,Z),s(k,Y),s(k,x),s(x,Q),s(k,S),s(k,L),s(L,z),s(g,J),s(g,se);for(let Re=0;Re<oe.length;Re+=1)oe[Re]&&oe[Re].m(se,null);s(e,pe),Ie&&Ie.m(e,null),s(e,ne),s(e,de),s(de,re),Be&&Be.m(re,null),s(re,A),s(re,$),s(l,ce),s(l,ae),s(ae,Se),Fe||(qe=[O(window,"keydown",t[13]),O(re,"click",t[8]),O(Se,"click",t[8])],Fe=!0)},p(ke,Ce){Ce[0]&128&&r!==(r=ke[7]("upstreamsModal.title")+"")&&v(a,r),Ce[0]&2&&d!==(d=ke[1].path+"")&&v(c,d),Ce[0]&128&&y!==(y=ke[7]("routeCard.tableHeaders.status")+"")&&v(E,y),Ce[0]&128&&M!==(M=ke[7]("upstream.status")+"")&&v(P,M),Ce[0]&128&&j!==(j=ke[7]("upstream.target")+"")&&v(D,j),Ce[0]&128&&V!==(V=ke[7]("upstream.description")+"")&&v(Z,V),Ce[0]&128&&U!==(U=ke[7]("upstream.priority")+"")&&v(Q,U),Ce[0]&128&&F!==(F=ke[7]("upstream.weight")+"")&&v(z,F),Ce[0]&7932&&(he=ft(ke[2]),oe=na(oe,Ce,je,1,ke,he,fe,se,Lu,y1,null,b1)),ke[5]?Ie?Ie.p(ke,Ce):(Ie=C1(ke),Ie.c(),Ie.m(e,ne)):Ie&&(Ie.d(1),Ie=null),ke[5]?Be||(Be=E1(),Be.c(),Be.m(re,A)):Be&&(Be.d(1),Be=null),Ce[0]&128&&le!==(le=ke[7]("upstreamsModal.close")+"")&&v($,le),Ce[0]&32&&(re.disabled=ke[5]),Ce[0]&1&&X(l,"modal-open",ke[0])},i:ot,o:ot,d(ke){ke&&R(l);for(let Ce=0;Ce<oe.length;Ce+=1)oe[Ce].d();Ie&&Ie.d(),Be&&Be.d(),Fe=!1,mt(qe)}}}function js(t){return t.status?t.status==="HEALTHY"?"healthy":"unhealthy":"unknown"}function T1(t){if(!t)return"";const l=new Date(t),n=new Date().getTime()-l.getTime(),r=Math.floor(n/1e3),a=Math.floor(r/60),f=Math.floor(a/60);return r<60?\`\${r}\u79D2\u524D\`:a<60?\`\${a}\u5206\u949F\u524D\`:f<24?\`\${f}\u5C0F\u65F6\u524D\`:l.toLocaleString("zh-CN")}function ea(t,l){(t.key==="Enter"||t.key===" ")&&(t.preventDefault(),l())}function ph(t,l,e){let n,r,a;Nt(t,Dt,F=>e(7,a=F));let{open:f=!1}=l,{route:u}=l,{onSaved:d=void 0}=l,c=[],p=!1,m=-1,g=null,b,k=!1;async function w(){if(m>=0&&g&&(r.length>0?T():(e(3,m=-1),e(4,g=null))),n){if(I().length>0){At.show(a("upstreamsModal.validationFailed"),"error");return}if(!await P())return}e(0,f=!1),e(3,m=-1),e(4,g=null)}function y(F){e(2,c[F].disabled=!c[F].disabled,c),e(2,c),e(0,f),e(15,p),e(1,u)}function E(F,z){e(3,m=F),e(4,g=z),b=c[F][z]||(z==="priority"?1:z==="weight"?100:"")}function C(){r.length===0&&m>=0&&g&&(e(3,m=-1),e(4,g=null))}function T(){m>=0&&g&&(e(2,c[m][g]=b,c),e(2,c),e(0,f),e(15,p),e(1,u),e(3,m=-1),e(4,g=null))}function M(F){F.key==="Enter"?(F.preventDefault(),F.stopPropagation(),C()):F.key==="Escape"&&(F.preventDefault(),F.stopPropagation(),T())}async function P(){if(k)return!1;e(5,k=!0);try{const F={...u,upstreams:c.map(({_uid:z,status:J,lastFailureTime:se,...oe})=>oe)};return await go.update(u.path,F),At.show(a("upstreamsModal.saved"),"success"),d?.(),!0}catch(F){return At.show(a("upstreamsModal.saveFailed",{values:{error:F.message}}),"error"),!1}finally{e(5,k=!1)}}function I(){let F=[];return c.forEach((z,J)=>{const se=Qn(z,J);F.push(...se)}),F}function H(F){F.key==="Escape"&&f&&(m>=0&&g?T():w())}const j=F=>y(F);function D(F,z){F[z].description=this.value,e(2,c),e(0,f),e(15,p),e(1,u)}const B=F=>E(F,"description"),N=(F,z)=>ea(z,()=>E(F,"description")),V=F=>E(F,"description"),Z=(F,z)=>ea(z,()=>E(F,"description"));function Y(F,z){F[z].priority=Ct(this.value),e(2,c),e(0,f),e(15,p),e(1,u)}const x=F=>E(F,"priority"),U=(F,z)=>ea(z,()=>E(F,"priority"));function Q(F,z){F[z].weight=Ct(this.value),e(2,c),e(0,f),e(15,p),e(1,u)}const S=F=>E(F,"weight"),L=(F,z)=>ea(z,()=>E(F,"weight"));return t.$$set=F=>{"open"in F&&e(0,f=F.open),"route"in F&&e(1,u=F.route),"onSaved"in F&&e(14,d=F.onSaved)},t.$$.update=()=>{t.$$.dirty[0]&32771&&(f&&!p&&e(2,c=JSON.parse(JSON.stringify(u.upstreams))),e(15,p=f)),t.$$.dirty[0]&6&&(n=JSON.stringify(c)!==JSON.stringify(u.upstreams)),t.$$.dirty[0]&28&&e(6,r=m>=0&&g?Qn(c[m],m).filter(F=>F.field.includes(g)):[])},[f,u,c,m,g,k,r,a,w,y,E,C,M,H,d,p,j,D,B,N,V,Z,Y,x,U,Q,S,L]}class hh extends Kt{constructor(l){super(),Gt(this,l,ph,ch,Yt,{open:0,route:1,onSaved:14},null,[-1,-1])}}function S1(t,l,e){const n=t.slice();return n[12]=l[e][0],n[13]=l[e][1],n}function M1(t,l,e){const n=t.slice();return n[16]=l[e],n}function R1(t){let l,e=t[8]("routeCard.hasTransformer")+"",n;return{c(){l=i("span"),n=_(e),o(l,"class","badge badge-sm badge-info")},m(r,a){q(r,l,a),s(l,n)},p(r,a){a&256&&e!==(e=r[8]("routeCard.hasTransformer")+"")&&v(n,e)},d(r){r&&R(l)}}}function q1(t){let l,e=t[8]("routeCard.routeAuth")+"",n;return{c(){l=i("span"),n=_(e),o(l,"class","badge badge-sm badge-warning")},m(r,a){q(r,l,a),s(l,n)},p(r,a){a&256&&e!==(e=r[8]("routeCard.routeAuth")+"")&&v(n,e)},d(r){r&&R(l)}}}function H1(t){let l,e=t[8]("routeCard.failover")+"",n;return{c(){l=i("span"),n=_(e),o(l,"class","badge badge-sm badge-success")},m(r,a){q(r,l,a),s(l,n)},p(r,a){a&256&&e!==(e=r[8]("routeCard.failover")+"")&&v(n,e)},d(r){r&&R(l)}}}function mh(t){let l,e,n,r,a=t[8]("routeCard.duplicate")+"",f;return{c(){l=ie("svg"),e=ie("path"),n=h(),r=i("span"),f=_(a),o(e,"stroke-linecap","round"),o(e,"stroke-linejoin","round"),o(e,"stroke-width","2"),o(e,"d","M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"),o(l,"xmlns","http://www.w3.org/2000/svg"),o(l,"class","h-4 w-4"),o(l,"fill","none"),o(l,"viewBox","0 0 24 24"),o(l,"stroke","currentColor")},m(u,d){q(u,l,d),s(l,e),q(u,n,d),q(u,r,d),s(r,f)},p(u,d){d&256&&a!==(a=u[8]("routeCard.duplicate")+"")&&v(f,a)},d(u){u&&(R(l),R(n),R(r))}}}function gh(t){let l,e,n,r=t[8]("routeCard.duplicating")+"",a;return{c(){l=i("span"),e=h(),n=i("span"),a=_(r),o(l,"class","loading loading-spinner loading-xs")},m(f,u){q(f,l,u),q(f,e,u),q(f,n,u),s(n,a)},p(f,u){u&256&&r!==(r=f[8]("routeCard.duplicating")+"")&&v(a,r)},d(f){f&&(R(l),R(e),R(n))}}}function _h(t){let l,e,n,r,a=t[8]("routeCard.delete")+"",f;return{c(){l=ie("svg"),e=ie("path"),n=h(),r=i("span"),f=_(a),o(e,"stroke-linecap","round"),o(e,"stroke-linejoin","round"),o(e,"stroke-width","2"),o(e,"d","M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"),o(l,"xmlns","http://www.w3.org/2000/svg"),o(l,"class","h-4 w-4"),o(l,"fill","none"),o(l,"viewBox","0 0 24 24"),o(l,"stroke","currentColor")},m(u,d){q(u,l,d),s(l,e),q(u,n,d),q(u,r,d),s(r,f)},p(u,d){d&256&&a!==(a=u[8]("routeCard.delete")+"")&&v(f,a)},d(u){u&&(R(l),R(n),R(r))}}}function bh(t){let l,e,n,r=t[8]("routeCard.deleting")+"",a;return{c(){l=i("span"),e=h(),n=i("span"),a=_(r),o(l,"class","loading loading-spinner loading-xs")},m(f,u){q(f,l,u),q(f,e,u),q(f,n,u),s(n,a)},p(f,u){u&256&&r!==(r=f[8]("routeCard.deleting")+"")&&v(a,r)},d(f){f&&(R(l),R(e),R(n))}}}function P1(t){let l,e=t[16].description+"",n,r;return{c(){l=i("span"),n=_(e),o(l,"class","text-xs text-gray-500 truncate max-w-xs"),o(l,"title",r=t[16].description)},m(a,f){q(a,l,f),s(l,n)},p(a,f){f&128&&e!==(e=a[16].description+"")&&v(n,e),f&128&&r!==(r=a[16].description)&&o(l,"title",r)},d(a){a&&R(l)}}}function L1(t){let l,e,n,r,a,f,u,d,c=t[16].target+"",p,m,g,b,k,w=(t[16].weight||100)+"",y,E,C,T=(t[16].priority||1)+"",M,P,I=t[16].description&&P1(t);return{c(){l=i("tr"),e=i("td"),n=i("div"),a=h(),f=i("td"),u=i("div"),d=i("code"),p=_(c),g=h(),I&&I.c(),b=h(),k=i("td"),y=_(w),E=h(),C=i("td"),M=_(T),P=h(),o(n,"class","w-2.5 h-2.5 rounded-full tooltip tooltip-right"),o(n,"data-tip",r=t[16].disabled?t[8]("upstream.disabled"):t[16].lastFailureTime?\`\u6700\u540E\u5931\u8D25: \${A1(t[16].lastFailureTime)}\`:to(t[16])==="healthy"?"\u5065\u5EB7":to(t[16])==="unhealthy"?"\u5F02\u5E38":"\u672A\u77E5"),X(n,"bg-success",to(t[16])==="healthy"&&!t[16].disabled),X(n,"bg-error",to(t[16])==="unhealthy"&&!t[16].disabled),X(n,"bg-warning",to(t[16])==="unknown"&&!t[16].disabled),X(n,"bg-gray-400",t[16].disabled),o(d,"class","text-xs truncate max-w-xs block"),o(d,"title",m=t[16].target),o(u,"class","flex flex-col"),o(k,"class","text-right text-xs"),o(C,"class","text-right text-xs"),o(l,"class","hover"),X(l,"opacity-50",t[16].disabled)},m(H,j){q(H,l,j),s(l,e),s(e,n),s(l,a),s(l,f),s(f,u),s(u,d),s(d,p),s(u,g),I&&I.m(u,null),s(l,b),s(l,k),s(k,y),s(l,E),s(l,C),s(C,M),s(l,P)},p(H,j){j&384&&r!==(r=H[16].disabled?H[8]("upstream.disabled"):H[16].lastFailureTime?\`\u6700\u540E\u5931\u8D25: \${A1(H[16].lastFailureTime)}\`:to(H[16])==="healthy"?"\u5065\u5EB7":to(H[16])==="unhealthy"?"\u5F02\u5E38":"\u672A\u77E5")&&o(n,"data-tip",r),j&128&&X(n,"bg-success",to(H[16])==="healthy"&&!H[16].disabled),j&128&&X(n,"bg-error",to(H[16])==="unhealthy"&&!H[16].disabled),j&128&&X(n,"bg-warning",to(H[16])==="unknown"&&!H[16].disabled),j&128&&X(n,"bg-gray-400",H[16].disabled),j&128&&c!==(c=H[16].target+"")&&v(p,c),j&128&&m!==(m=H[16].target)&&o(d,"title",m),H[16].description?I?I.p(H,j):(I=P1(H),I.c(),I.m(u,null)):I&&(I.d(1),I=null),j&128&&w!==(w=(H[16].weight||100)+"")&&v(y,w),j&128&&T!==(T=(H[16].priority||1)+"")&&v(M,T),j&128&&X(l,"opacity-50",H[16].disabled)},d(H){H&&R(l),I&&I.d()}}}function j1(t){let l,e,n=t[8]("routeCard.viewAll",{values:{count:t[0].upstreams.length}})+"",r,a,f;return{c(){l=i("div"),e=i("button"),r=_(n),o(e,"class","btn btn-sm btn-outline w-full"),o(l,"class","mt-2")},m(u,d){q(u,l,d),s(l,e),s(e,r),a||(f=O(e,"click",t[10]),a=!0)},p(u,d){d&257&&n!==(n=u[8]("routeCard.viewAll",{values:{count:u[0].upstreams.length}})+"")&&v(r,n)},d(u){u&&R(l),a=!1,f()}}}function D1(t){let l,e,n,r=ft(Object.entries(t[0].pathRewrite)),a=[];for(let f=0;f<r.length;f+=1)a[f]=B1(S1(t,r,f));return{c(){l=i("div"),e=i("p"),e.textContent="Path Rewrite:",n=h();for(let f=0;f<a.length;f+=1)a[f].c();o(e,"class","text-sm font-semibold mb-1"),o(l,"class","mt-3")},m(f,u){q(f,l,u),s(l,e),s(l,n);for(let d=0;d<a.length;d+=1)a[d]&&a[d].m(l,null)},p(f,u){if(u&257){r=ft(Object.entries(f[0].pathRewrite));let d;for(d=0;d<r.length;d+=1){const c=S1(f,r,d);a[d]?a[d].p(c,u):(a[d]=B1(c),a[d].c(),a[d].m(l,null))}for(;d<a.length;d+=1)a[d].d(1);a.length=r.length}},d(f){f&&R(l),$t(a,f)}}}function B1(t){let l,e=t[8]("routeCard.pathRewrite.original")+"",n,r,a,f=t[12]+"",u,d,c=t[8]("routeCard.pathRewrite.rewriteTo")+"",p,m,g,b=t[13]+"",k,w;return{c(){l=i("div"),n=_(e),r=h(),a=i("code"),u=_(f),d=_(" \u2192 "),p=_(c),m=h(),g=i("code"),k=_(b),w=h(),o(a,"class","bg-base-200 px-1.5 py-0.5 rounded text-sm font-mono"),o(g,"class","bg-base-200 px-1.5 py-0.5 rounded text-sm font-mono"),o(l,"class","text-sm text-gray-600")},m(y,E){q(y,l,E),s(l,n),s(l,r),s(l,a),s(a,u),s(l,d),s(l,p),s(l,m),s(l,g),s(g,k),s(l,w)},p(y,E){E&256&&e!==(e=y[8]("routeCard.pathRewrite.original")+"")&&v(n,e),E&1&&f!==(f=y[12]+"")&&v(u,f),E&256&&c!==(c=y[8]("routeCard.pathRewrite.rewriteTo")+"")&&v(p,c),E&1&&b!==(b=y[13]+"")&&v(k,b)},d(y){y&&R(l)}}}function vh(t){let l,e,n,r,a,f,u=t[0].path+"",d,c,p,m,g=t[8]("routeCard.upstreams",{values:{count:t[0].upstreams.length}})+"",b,k,w,y,E,C,T,M,P,I,H=t[8]("routeCard.edit")+"",j,D,B,N,V,Z,Y,x,U,Q,S,L,F,z,J,se,oe,fe,pe,ne,de,re=t[8]("routeCard.tableHeaders.status")+"",A,le,$,ce=t[8]("routeCard.tableHeaders.target")+"",ae,Se,Fe,qe=t[8]("routeCard.tableHeaders.weight")+"",he,je,Ie,Be=t[8]("routeCard.tableHeaders.priority")+"",ke,Ce,Re,He,ze,Ne,te,ve,ue,ge,Ee,ye=t[0].transformer&&R1(t),We=t[0].auth?.enabled&&q1(t),Oe=t[0].failover?.enabled&&H1(t);function et(Le,Te){return Le[4]?gh:mh}let Ke=et(t),we=Ke(t);function _e(Le,Te){return Le[3]?bh:_h}let Pe=_e(t),Ze=Pe(t),Ae=ft(t[7]),Ve=[];for(let Le=0;Le<Ae.length;Le+=1)Ve[Le]=L1(M1(t,Ae,Le));let be=t[6]&&j1(t),rt=t[0].pathRewrite&&D1(t);function dt(Le){t[11](Le)}let Me={route:t[0]};return t[5]!==void 0&&(Me.open=t[5]),te=new hh({props:Me}),Ll.push(()=>jl(te,"open",dt)),{c(){l=i("div"),e=i("div"),n=i("div"),r=i("div"),a=i("h2"),f=i("code"),d=_(u),c=h(),p=i("div"),m=i("span"),b=_(g),k=h(),ye&&ye.c(),w=h(),We&&We.c(),y=h(),Oe&&Oe.c(),E=h(),C=i("div"),T=i("button"),M=ie("svg"),P=ie("path"),I=h(),j=_(H),D=h(),B=i("div"),N=i("button"),V=ie("svg"),Z=ie("path"),x=h(),U=i("ul"),Q=i("li"),S=i("button"),we.c(),L=h(),F=i("li"),z=i("button"),Ze.c(),J=h(),se=i("div"),oe=i("div"),fe=i("table"),pe=i("thead"),ne=i("tr"),de=i("th"),A=_(re),le=h(),$=i("th"),ae=_(ce),Se=h(),Fe=i("th"),he=_(qe),je=h(),Ie=i("th"),ke=_(Be),Ce=h(),Re=i("tbody");for(let Le=0;Le<Ve.length;Le+=1)Ve[Le].c();He=h(),be&&be.c(),ze=h(),rt&&rt.c(),Ne=h(),Ht(te.$$.fragment),o(f,"class","text-primary"),o(a,"class","card-title text-lg"),o(m,"class","badge badge-sm"),o(p,"class","flex gap-2 mt-2 flex-wrap"),o(r,"class","flex-1"),o(P,"stroke-linecap","round"),o(P,"stroke-linejoin","round"),o(P,"stroke-width","2"),o(P,"d","M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z"),o(M,"xmlns","http://www.w3.org/2000/svg"),o(M,"class","h-4 w-4"),o(M,"fill","none"),o(M,"viewBox","0 0 24 24"),o(M,"stroke","currentColor"),o(T,"class","btn btn-sm btn-primary gap-1"),o(Z,"stroke-linecap","round"),o(Z,"stroke-linejoin","round"),o(Z,"stroke-width","2"),o(Z,"d","M12 5v.01M12 12v.01M12 19v.01M12 6a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2z"),o(V,"xmlns","http://www.w3.org/2000/svg"),o(V,"class","h-4 w-4"),o(V,"fill","none"),o(V,"viewBox","0 0 24 24"),o(V,"stroke","currentColor"),o(N,"type","button"),o(N,"class","btn btn-sm btn-ghost btn-square"),o(N,"title",Y=t[8]("routeCard.moreActions")),S.disabled=t[4],o(z,"class","text-error"),z.disabled=t[3],o(U,"class","dropdown-content menu p-2 shadow-lg bg-base-100 rounded-box w-40 z-10"),o(B,"class","dropdown dropdown-end"),o(C,"class","flex gap-2"),o(n,"class","flex justify-between items-start"),o(de,"class","w-12"),o(Fe,"class","w-16 text-right"),o(Ie,"class","w-12 text-right"),o(ne,"class","bg-base-200"),o(fe,"class","table table-sm w-full"),o(oe,"class","overflow-x-auto border border-base-300 rounded-lg"),o(se,"class","mt-4"),o(e,"class","card-body flex flex-col"),o(l,"class","card bg-base-100 shadow-md hover:shadow-lg transition-shadow")},m(Le,Te){q(Le,l,Te),s(l,e),s(e,n),s(n,r),s(r,a),s(a,f),s(f,d),s(r,c),s(r,p),s(p,m),s(m,b),s(p,k),ye&&ye.m(p,null),s(p,w),We&&We.m(p,null),s(p,y),Oe&&Oe.m(p,null),s(n,E),s(n,C),s(C,T),s(T,M),s(M,P),s(T,I),s(T,j),s(C,D),s(C,B),s(B,N),s(N,V),s(V,Z),s(B,x),s(B,U),s(U,Q),s(Q,S),we.m(S,null),s(U,L),s(U,F),s(F,z),Ze.m(z,null),s(e,J),s(e,se),s(se,oe),s(oe,fe),s(fe,pe),s(pe,ne),s(ne,de),s(de,A),s(ne,le),s(ne,$),s($,ae),s(ne,Se),s(ne,Fe),s(Fe,he),s(ne,je),s(ne,Ie),s(Ie,ke),s(fe,Ce),s(fe,Re);for(let it=0;it<Ve.length;it+=1)Ve[it]&&Ve[it].m(Re,null);s(se,He),be&&be.m(se,null),s(e,ze),rt&&rt.m(e,null),q(Le,Ne,Te),qt(te,Le,Te),ue=!0,ge||(Ee=[O(T,"click",t[9]),O(S,"click",function(){or(t[2])&&t[2].apply(this,arguments)}),O(z,"click",function(){or(t[1])&&t[1].apply(this,arguments)})],ge=!0)},p(Le,[Te]){if(t=Le,(!ue||Te&1)&&u!==(u=t[0].path+"")&&v(d,u),(!ue||Te&257)&&g!==(g=t[8]("routeCard.upstreams",{values:{count:t[0].upstreams.length}})+"")&&v(b,g),t[0].transformer?ye?ye.p(t,Te):(ye=R1(t),ye.c(),ye.m(p,w)):ye&&(ye.d(1),ye=null),t[0].auth?.enabled?We?We.p(t,Te):(We=q1(t),We.c(),We.m(p,y)):We&&(We.d(1),We=null),t[0].failover?.enabled?Oe?Oe.p(t,Te):(Oe=H1(t),Oe.c(),Oe.m(p,null)):Oe&&(Oe.d(1),Oe=null),(!ue||Te&256)&&H!==(H=t[8]("routeCard.edit")+"")&&v(j,H),(!ue||Te&256&&Y!==(Y=t[8]("routeCard.moreActions")))&&o(N,"title",Y),Ke===(Ke=et(t))&&we?we.p(t,Te):(we.d(1),we=Ke(t),we&&(we.c(),we.m(S,null))),(!ue||Te&16)&&(S.disabled=t[4]),Pe===(Pe=_e(t))&&Ze?Ze.p(t,Te):(Ze.d(1),Ze=Pe(t),Ze&&(Ze.c(),Ze.m(z,null))),(!ue||Te&8)&&(z.disabled=t[3]),(!ue||Te&256)&&re!==(re=t[8]("routeCard.tableHeaders.status")+"")&&v(A,re),(!ue||Te&256)&&ce!==(ce=t[8]("routeCard.tableHeaders.target")+"")&&v(ae,ce),(!ue||Te&256)&&qe!==(qe=t[8]("routeCard.tableHeaders.weight")+"")&&v(he,qe),(!ue||Te&256)&&Be!==(Be=t[8]("routeCard.tableHeaders.priority")+"")&&v(ke,Be),Te&384){Ae=ft(t[7]);let Je;for(Je=0;Je<Ae.length;Je+=1){const W=M1(t,Ae,Je);Ve[Je]?Ve[Je].p(W,Te):(Ve[Je]=L1(W),Ve[Je].c(),Ve[Je].m(Re,null))}for(;Je<Ve.length;Je+=1)Ve[Je].d(1);Ve.length=Ae.length}t[6]?be?be.p(t,Te):(be=j1(t),be.c(),be.m(se,null)):be&&(be.d(1),be=null),t[0].pathRewrite?rt?rt.p(t,Te):(rt=D1(t),rt.c(),rt.m(e,null)):rt&&(rt.d(1),rt=null);const it={};Te&1&&(it.route=t[0]),!ve&&Te&32&&(ve=!0,it.open=t[5],Dl(()=>ve=!1)),te.$set(it)},i(Le){ue||($e(te.$$.fragment,Le),ue=!0)},o(Le){lt(te.$$.fragment,Le),ue=!1},d(Le){Le&&(R(l),R(Ne)),ye&&ye.d(),We&&We.d(),Oe&&Oe.d(),we.d(),Ze.d(),$t(Ve,Le),be&&be.d(),rt&&rt.d(),Rt(te,Le),ge=!1,mt(Ee)}}}const I1=5;function to(t){return t.status?t.status==="HEALTHY"?"healthy":"unhealthy":"unknown"}function A1(t){if(!t)return"";const l=new Date(t),n=new Date().getTime()-l.getTime(),r=Math.floor(n/1e3),a=Math.floor(r/60),f=Math.floor(a/60);return r<60?\`\${r}\u79D2\u524D\`:a<60?\`\${a}\u5206\u949F\u524D\`:f<24?\`\${f}\u5C0F\u65F6\u524D\`:l.toLocaleString("zh-CN")}function kh(t,l,e){let n,r,a;Nt(t,Dt,w=>e(8,a=w));let{route:f}=l,{onDelete:u}=l,{onDuplicate:d}=l,{isDeleting:c=!1}=l,{isDuplicating:p=!1}=l,m=!1;function g(){Xp(\`/routes/edit/\${encodeURIComponent(f.path)}\`)}function b(){e(5,m=!0)}function k(w){m=w,e(5,m)}return t.$$set=w=>{"route"in w&&e(0,f=w.route),"onDelete"in w&&e(1,u=w.onDelete),"onDuplicate"in w&&e(2,d=w.onDuplicate),"isDeleting"in w&&e(3,c=w.isDeleting),"isDuplicating"in w&&e(4,p=w.isDuplicating)},t.$$.update=()=>{t.$$.dirty&1&&e(7,n=f.upstreams.slice(0,I1)),t.$$.dirty&1&&e(6,r=f.upstreams.length>I1)},[f,u,d,c,p,m,r,n,a,g,b,k]}class wh extends Kt{constructor(l){super(),Gt(this,l,kh,vh,Yt,{route:0,onDelete:1,onDuplicate:2,isDeleting:3,isDuplicating:4})}}function F1(t){let l,e,n,r,a,f,u,d,c,p,m,g,b,k,w,y,E;return{c(){l=i("dialog"),e=i("div"),n=i("h3"),r=_(t[5]),a=h(),f=i("p"),u=_(t[4]),d=h(),c=i("div"),p=i("button"),m=_(t[2]),g=h(),b=i("button"),k=_(t[3]),o(n,"class","font-bold text-lg"),o(f,"class","py-4"),o(p,"class","btn"),o(b,"class",w="btn "+t[1]),o(c,"class","modal-action"),o(e,"class","modal-box"),o(l,"class","modal modal-open")},m(C,T){q(C,l,T),s(l,e),s(e,n),s(n,r),s(e,a),s(e,f),s(f,u),s(e,d),s(e,c),s(c,p),s(p,m),s(c,g),s(c,b),s(b,k),y||(E=[O(p,"click",t[7]),O(b,"click",t[6]),O(l,"click",t[8])],y=!0)},p(C,T){T&32&&v(r,C[5]),T&16&&v(u,C[4]),T&4&&v(m,C[2]),T&8&&v(k,C[3]),T&2&&w!==(w="btn "+C[1])&&o(b,"class",w)},d(C){C&&R(l),y=!1,mt(E)}}}function yh(t){let l,e=t[0]&&F1(t);return{c(){e&&e.c(),l=Gl()},m(n,r){e&&e.m(n,r),q(n,l,r)},p(n,[r]){n[0]?e?e.p(n,r):(e=F1(n),e.c(),e.m(l.parentNode,l)):e&&(e.d(1),e=null)},i:ot,o:ot,d(n){n&&R(l),e&&e.d(n)}}}function Ch(t,l,e){let n,r,a,f,u;Nt(t,Dt,C=>e(13,u=C));let{open:d=!1}=l,{title:c=""}=l,{message:p=""}=l,{confirmText:m=""}=l,{cancelText:g=""}=l,{confirmClass:b="btn-error"}=l;const k=nr();function w(){k("confirm"),e(0,d=!1)}function y(){k("cancel"),e(0,d=!1)}function E(C){C.target===C.currentTarget&&y()}return t.$$set=C=>{"open"in C&&e(0,d=C.open),"title"in C&&e(9,c=C.title),"message"in C&&e(10,p=C.message),"confirmText"in C&&e(11,m=C.confirmText),"cancelText"in C&&e(12,g=C.cancelText),"confirmClass"in C&&e(1,b=C.confirmClass)},t.$$.update=()=>{t.$$.dirty&8704&&e(5,n=c||u("confirmDialog.title")),t.$$.dirty&1024&&e(4,r=p),t.$$.dirty&10240&&e(3,a=m||u("confirmDialog.confirm")),t.$$.dirty&12288&&e(2,f=g||u("confirmDialog.cancel"))},[d,b,f,a,r,n,w,y,E,c,p,m,g,u]}class d0 extends Kt{constructor(l){super(),Gt(this,l,Ch,yh,Yt,{open:0,title:9,message:10,confirmText:11,cancelText:12,confirmClass:1})}}function z1(t,l,e){const n=t.slice();return n[29]=l[e],n}function O1(t,l,e){const n=t.slice();return n[32]=l[e],n}function Eh(t){let l,e;return{c(){l=ie("svg"),e=ie("path"),o(e,"stroke-linecap","round"),o(e,"stroke-linejoin","round"),o(e,"stroke-width","2"),o(e,"d","M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-8l-4-4m0 0L8 8m4-4v12"),o(l,"xmlns","http://www.w3.org/2000/svg"),o(l,"class","h-4 w-4"),o(l,"fill","none"),o(l,"viewBox","0 0 24 24"),o(l,"stroke","currentColor")},m(n,r){q(n,l,r),s(l,e)},d(n){n&&R(l)}}}function Th(t){let l;return{c(){l=i("span"),o(l,"class","loading loading-spinner loading-xs")},m(e,n){q(e,l,n)},d(e){e&&R(l)}}}function N1(t){let l,e=t[32]+"",n,r;return{c(){l=i("option"),n=_(e),l.__value=r=t[32],G(l,l.__value)},m(a,f){q(a,l,f),s(l,n)},p(a,f){f[0]&2048&&e!==(e=a[32]+"")&&v(n,e),f[0]&2048&&r!==(r=a[32])&&(l.__value=r,G(l,l.__value))},d(a){a&&R(l)}}}function Sh(t){let l,e,n=ft(t[12]),r=[];for(let f=0;f<n.length;f+=1)r[f]=U1(z1(t,n,f));const a=f=>lt(r[f],1,1,()=>{r[f]=null});return{c(){l=i("div");for(let f=0;f<r.length;f+=1)r[f].c();o(l,"class","grid grid-cols-1 lg:grid-cols-2 gap-4")},m(f,u){q(f,l,u);for(let d=0;d<r.length;d+=1)r[d]&&r[d].m(l,null);e=!0},p(f,u){if(u[0]&152320){n=ft(f[12]);let d;for(d=0;d<n.length;d+=1){const c=z1(f,n,d);r[d]?(r[d].p(c,u),$e(r[d],1)):(r[d]=U1(c),r[d].c(),$e(r[d],1),r[d].m(l,null))}for(Ql(),d=n.length;d<r.length;d+=1)a(d);Zl()}},i(f){if(!e){for(let u=0;u<n.length;u+=1)$e(r[u]);e=!0}},o(f){r=r.filter(Boolean);for(let u=0;u<r.length;u+=1)lt(r[u]);e=!1},d(f){f&&R(l),$t(r,f)}}}function Mh(t){let l;function e(a,f){return a[0].length===0?Ph:Hh}let n=e(t),r=n(t);return{c(){l=i("div"),r.c(),o(l,"class","text-center py-12")},m(a,f){q(a,l,f),r.m(l,null)},p(a,f){n===(n=e(a))&&r?r.p(a,f):(r.d(1),r=n(a),r&&(r.c(),r.m(l,null)))},i:ot,o:ot,d(a){a&&R(l),r.d()}}}function Rh(t){let l,e,n,r,a,f=t[13]("common.error")+"",u,d,c;return{c(){l=i("div"),e=ie("svg"),n=ie("path"),r=h(),a=i("span"),u=_(f),d=_(": "),c=_(t[5]),o(n,"stroke-linecap","round"),o(n,"stroke-linejoin","round"),o(n,"stroke-width","2"),o(n,"d","M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z"),o(e,"xmlns","http://www.w3.org/2000/svg"),o(e,"class","stroke-current shrink-0 h-6 w-6"),o(e,"fill","none"),o(e,"viewBox","0 0 24 24"),o(l,"class","alert alert-error")},m(p,m){q(p,l,m),s(l,e),s(e,n),s(l,r),s(l,a),s(a,u),s(a,d),s(a,c)},p(p,m){m[0]&8192&&f!==(f=p[13]("common.error")+"")&&v(u,f),m[0]&32&&v(c,p[5])},i:ot,o:ot,d(p){p&&R(l)}}}function qh(t){let l;return{c(){l=i("div"),l.innerHTML='<span class="loading loading-spinner loading-lg"></span>',o(l,"class","flex justify-center items-center h-64")},m(e,n){q(e,l,n)},p:ot,i:ot,o:ot,d(e){e&&R(l)}}}function U1(t){let l,e;function n(){return t[24](t[29])}function r(){return t[25](t[29])}return l=new wh({props:{route:t[29],onDelete:n,onDuplicate:r,isDeleting:t[8].has(t[29].path),isDuplicating:t[9].has(t[29].path)}}),{c(){Ht(l.$$.fragment)},m(a,f){qt(l,a,f),e=!0},p(a,f){t=a;const u={};f[0]&4096&&(u.route=t[29]),f[0]&4096&&(u.onDelete=n),f[0]&4096&&(u.onDuplicate=r),f[0]&4352&&(u.isDeleting=t[8].has(t[29].path)),f[0]&4608&&(u.isDuplicating=t[9].has(t[29].path)),l.$set(u)},i(a){e||($e(l.$$.fragment,a),e=!0)},o(a){lt(l.$$.fragment,a),e=!1},d(a){Rt(l,a)}}}function Hh(t){let l,e,n,r=t[13]("routes.noMatchingRoutes")+"",a,f,u,d=t[13]("routes.noMatchingMessage")+"",c;return{c(){l=i("div"),l.textContent="\uD83D\uDD0D",e=h(),n=i("h3"),a=_(r),f=h(),u=i("p"),c=_(d),o(l,"class","text-6xl mb-4"),o(n,"class","text-xl font-semibold mb-2"),o(u,"class","text-gray-500")},m(p,m){q(p,l,m),q(p,e,m),q(p,n,m),s(n,a),q(p,f,m),q(p,u,m),s(u,c)},p(p,m){m[0]&8192&&r!==(r=p[13]("routes.noMatchingRoutes")+"")&&v(a,r),m[0]&8192&&d!==(d=p[13]("routes.noMatchingMessage")+"")&&v(c,d)},d(p){p&&(R(l),R(e),R(n),R(f),R(u))}}}function Ph(t){let l,e,n,r=t[13]("routes.noRoutes")+"",a,f,u,d=t[13]("routes.noRoutesMessage")+"",c,p,m,g=t[13]("routes.createFirstRoute")+"",b,k,w;return{c(){l=i("div"),l.textContent="\uD83D\uDE80",e=h(),n=i("h3"),a=_(r),f=h(),u=i("p"),c=_(d),p=h(),m=i("button"),b=_(g),o(l,"class","text-6xl mb-4"),o(n,"class","text-xl font-semibold mb-2"),o(u,"class","text-gray-500 mb-4"),o(m,"class","btn btn-primary")},m(y,E){q(y,l,E),q(y,e,E),q(y,n,E),s(n,a),q(y,f,E),q(y,u,E),s(u,c),q(y,p,E),q(y,m,E),s(m,b),k||(w=O(m,"click",t[18]),k=!0)},p(y,E){E[0]&8192&&r!==(r=y[13]("routes.noRoutes")+"")&&v(a,r),E[0]&8192&&d!==(d=y[13]("routes.noRoutesMessage")+"")&&v(c,d),E[0]&8192&&g!==(g=y[13]("routes.createFirstRoute")+"")&&v(b,g)},d(y){y&&(R(l),R(e),R(n),R(f),R(u),R(p),R(m)),k=!1,w()}}}function V1(t){let l,e=t[13]("routes.showingRoutes",{values:{count:t[12].length,total:t[0].length}})+"",n;return{c(){l=i("div"),n=_(e),o(l,"class","mt-6 text-sm text-gray-500 text-center")},m(r,a){q(r,l,a),s(l,n)},p(r,a){a[0]&12289&&e!==(e=r[13]("routes.showingRoutes",{values:{count:r[12].length,total:r[0].length}})+"")&&v(n,e)},d(r){r&&R(l)}}}function Lh(t){let l,e,n,r,a=t[13]("routes.title")+"",f,u,d,c=t[13]("routes.subtitle")+"",p,m,g,b,k,w,y,E=t[13]("routes.export")+"",C,T,M,P,I,H=t[13]("routes.import")+"",j,D,B,N,V=t[13]("routes.newRoute")+"",Z,Y,x,U,Q,S,L,F,z,J,se=t[13]("routes.allTransformers")+"",oe,fe,pe,ne,de,re=t[13]("routes.filterStatus.all")+"",A,le,$=t[13]("routes.filterStatus.healthy")+"",ce,ae,Se=t[13]("routes.filterStatus.unhealthy")+"",Fe,qe,he,je,Ie,Be,ke,Ce,Re,He,ze;function Ne(we,_e){return we[10]?Th:Eh}let te=Ne(t),ve=te(t),ue=ft(t[11]),ge=[];for(let we=0;we<ue.length;we+=1)ge[we]=N1(O1(t,ue,we));const Ee=[qh,Rh,Mh,Sh],ye=[];function We(we,_e){return we[4]?0:we[5]?1:we[12].length===0?2:3}he=We(t),je=ye[he]=Ee[he](t);let Oe=!t[4]&&t[0].length>0&&V1(t);function et(we){t[26](we)}let Ke={title:t[13]("routes.confirmDelete"),message:t[7]?t[13]("routes.confirmDeleteMessage",{values:{path:t[7].path}}):"",confirmText:t[13]("common.delete"),cancelText:t[13]("common.cancel"),confirmClass:"btn-error"};return t[6]!==void 0&&(Ke.open=t[6]),ke=new d0({props:Ke}),Ll.push(()=>jl(ke,"open",et)),ke.$on("confirm",t[15]),ke.$on("cancel",t[16]),{c(){l=i("div"),e=i("div"),n=i("div"),r=i("h1"),f=_(a),u=h(),d=i("p"),p=_(c),m=h(),g=i("div"),b=i("button"),k=ie("svg"),w=ie("path"),y=h(),C=_(E),M=h(),P=i("button"),ve.c(),I=h(),j=_(H),B=h(),N=i("button"),Z=_(V),Y=h(),x=i("div"),U=i("div"),Q=i("input"),L=h(),F=i("div"),z=i("select"),J=i("option"),oe=_(se);for(let we=0;we<ge.length;we+=1)ge[we].c();fe=h(),pe=i("div"),ne=i("select"),de=i("option"),A=_(re),le=i("option"),ce=_($),ae=i("option"),Fe=_(Se),qe=h(),je.c(),Ie=h(),Oe&&Oe.c(),Be=h(),Ht(ke.$$.fragment),o(r,"class","text-3xl font-bold"),o(d,"class","text-sm text-gray-500 mt-1"),o(w,"stroke-linecap","round"),o(w,"stroke-linejoin","round"),o(w,"stroke-width","2"),o(w,"d","M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"),o(k,"xmlns","http://www.w3.org/2000/svg"),o(k,"class","h-4 w-4"),o(k,"fill","none"),o(k,"viewBox","0 0 24 24"),o(k,"stroke","currentColor"),o(b,"class","btn btn-sm btn-outline"),b.disabled=T=t[4]||t[0].length===0,o(P,"class","btn btn-sm btn-outline"),P.disabled=D=t[4]||t[10],o(N,"class","btn btn-primary btn-sm"),o(g,"class","flex gap-2"),o(e,"class","flex justify-between items-center mb-6"),o(Q,"type","text"),o(Q,"placeholder",S=t[13]("routes.searchPlaceholder")),o(Q,"class","input input-bordered"),o(U,"class","form-control flex-1"),J.__value="",G(J,J.__value),o(z,"class","select select-bordered"),t[2]===void 0&&Cl(()=>t[22].call(z)),o(F,"class","form-control w-48"),de.__value="all",G(de,de.__value),le.__value="healthy",G(le,le.__value),ae.__value="unhealthy",G(ae,ae.__value),o(ne,"class","select select-bordered"),t[3]===void 0&&Cl(()=>t[23].call(ne)),o(pe,"class","form-control w-32"),o(x,"class","flex gap-4 mb-6"),o(l,"class","p-6")},m(we,_e){q(we,l,_e),s(l,e),s(e,n),s(n,r),s(r,f),s(n,u),s(n,d),s(d,p),s(e,m),s(e,g),s(g,b),s(b,k),s(k,w),s(b,y),s(b,C),s(g,M),s(g,P),ve.m(P,null),s(P,I),s(P,j),s(g,B),s(g,N),s(N,Z),s(l,Y),s(l,x),s(x,U),s(U,Q),G(Q,t[1]),s(x,L),s(x,F),s(F,z),s(z,J),s(J,oe);for(let Pe=0;Pe<ge.length;Pe+=1)ge[Pe]&&ge[Pe].m(z,null);St(z,t[2],!0),s(x,fe),s(x,pe),s(pe,ne),s(ne,de),s(de,A),s(ne,le),s(le,ce),s(ne,ae),s(ae,Fe),St(ne,t[3],!0),s(l,qe),ye[he].m(l,null),s(l,Ie),Oe&&Oe.m(l,null),s(l,Be),qt(ke,l,null),Re=!0,He||(ze=[O(b,"click",t[19]),O(P,"click",t[20]),O(N,"click",t[18]),O(Q,"input",t[21]),O(z,"change",t[22]),O(ne,"change",t[23])],He=!0)},p(we,_e){if((!Re||_e[0]&8192)&&a!==(a=we[13]("routes.title")+"")&&v(f,a),(!Re||_e[0]&8192)&&c!==(c=we[13]("routes.subtitle")+"")&&v(p,c),(!Re||_e[0]&8192)&&E!==(E=we[13]("routes.export")+"")&&v(C,E),(!Re||_e[0]&17&&T!==(T=we[4]||we[0].length===0))&&(b.disabled=T),te!==(te=Ne(we))&&(ve.d(1),ve=te(we),ve&&(ve.c(),ve.m(P,I))),(!Re||_e[0]&8192)&&H!==(H=we[13]("routes.import")+"")&&v(j,H),(!Re||_e[0]&1040&&D!==(D=we[4]||we[10]))&&(P.disabled=D),(!Re||_e[0]&8192)&&V!==(V=we[13]("routes.newRoute")+"")&&v(Z,V),(!Re||_e[0]&8192&&S!==(S=we[13]("routes.searchPlaceholder")))&&o(Q,"placeholder",S),_e[0]&2&&Q.value!==we[1]&&G(Q,we[1]),(!Re||_e[0]&8192)&&se!==(se=we[13]("routes.allTransformers")+"")&&v(oe,se),_e[0]&2048){ue=ft(we[11]);let Ae;for(Ae=0;Ae<ue.length;Ae+=1){const Ve=O1(we,ue,Ae);ge[Ae]?ge[Ae].p(Ve,_e):(ge[Ae]=N1(Ve),ge[Ae].c(),ge[Ae].m(z,null))}for(;Ae<ge.length;Ae+=1)ge[Ae].d(1);ge.length=ue.length}_e[0]&2052&&St(z,we[2]),(!Re||_e[0]&8192)&&re!==(re=we[13]("routes.filterStatus.all")+"")&&v(A,re),(!Re||_e[0]&8192)&&$!==($=we[13]("routes.filterStatus.healthy")+"")&&v(ce,$),(!Re||_e[0]&8192)&&Se!==(Se=we[13]("routes.filterStatus.unhealthy")+"")&&v(Fe,Se),_e[0]&8&&St(ne,we[3]);let Pe=he;he=We(we),he===Pe?ye[he].p(we,_e):(Ql(),lt(ye[Pe],1,1,()=>{ye[Pe]=null}),Zl(),je=ye[he],je?je.p(we,_e):(je=ye[he]=Ee[he](we),je.c()),$e(je,1),je.m(l,Ie)),!we[4]&&we[0].length>0?Oe?Oe.p(we,_e):(Oe=V1(we),Oe.c(),Oe.m(l,Be)):Oe&&(Oe.d(1),Oe=null);const Ze={};_e[0]&8192&&(Ze.title=we[13]("routes.confirmDelete")),_e[0]&8320&&(Ze.message=we[7]?we[13]("routes.confirmDeleteMessage",{values:{path:we[7].path}}):""),_e[0]&8192&&(Ze.confirmText=we[13]("common.delete")),_e[0]&8192&&(Ze.cancelText=we[13]("common.cancel")),!Ce&&_e[0]&64&&(Ce=!0,Ze.open=we[6],Dl(()=>Ce=!1)),ke.$set(Ze)},i(we){Re||($e(je),$e(ke.$$.fragment,we),Re=!0)},o(we){lt(je),lt(ke.$$.fragment,we),Re=!1},d(we){we&&R(l),ve.d(),$t(ge,we),ye[he].d(),Oe&&Oe.d(),Rt(ke),He=!1,mt(ze)}}}function jh(t,l,e){let n,r,a;Nt(t,Dt,U=>e(13,a=U));let f=[],u=!0,d=null,c="",p="",m="all",g=!0,b=!1,k=null,w=new Set,y=new Set,E=!1;async function C(U=!1){const Q=!U&&g;try{Q&&e(4,u=!0),e(0,f=await go.list()),e(5,d=null),g=!1}catch(S){e(5,d=S.message),U||At.show(S.message,"error")}finally{Q&&e(4,u=!1)}}async function T(U){e(7,k=U),e(6,b=!0)}async function M(){if(k){w.add(k.path),e(8,w);try{await go.delete(k.path),At.show(a("routes.deleted",{values:{path:k.path}}),"success"),await C()}catch(U){At.show(a("routes.deleteFailed",{values:{error:U.message}}),"error")}finally{w.delete(k.path),e(8,w),e(7,k=null)}}}function P(){e(7,k=null)}async function I(U){y.add(U.path),e(9,y);try{await go.duplicate(U.path),At.show(a("routes.duplicated",{values:{path:U.path}}),"success"),await C()}catch(Q){At.show(a("routes.duplicateFailed",{values:{error:Q.message}}),"error")}finally{y.delete(U.path),e(9,y)}}function H(){Xp("/routes/new")}function j(){if(f.length===0){At.show(a("routes.noRoutesToExport"),"warning");return}const U=JSON.stringify(f,null,2),Q="data:application/json;charset=utf-8,"+encodeURIComponent(U),S=\`bungee-routes-\${new Date().toISOString().split("T")[0]}.json\`,L=document.createElement("a");L.setAttribute("href",Q),L.setAttribute("download",S),L.click(),At.show(a("routes.exported"),"success")}function D(){const U=document.createElement("input");U.type="file",U.accept=".json",U.onchange=async Q=>{const S=Q.target.files[0];if(S){e(10,E=!0);try{const L=await S.text(),F=JSON.parse(L);if(!Array.isArray(F))throw new Error(a("routes.importMustBeArray"));let z=0,J=0;for(const se of F)try{await go.create(se),z++}catch(oe){J++,console.error(\`Failed to import route \${se.path}:\`,oe)}if(z>0){const se=J>0?a("routes.importPartialSuccess",{values:{success:z,failed:J}}):a("routes.importSuccess",{values:{success:z}});At.show(se,"success"),await C()}else At.show(a("routes.importFailed",{values:{error:\`\${J} routes failed\`}}),"error")}catch(L){At.show(a("routes.importFailed",{values:{error:L.message}}),"error")}finally{e(10,E=!1)}}},U.click()}Hs(()=>{C();const U=setInterval(()=>{C(!0)},5e3);return()=>{clearInterval(U)}});function B(){c=this.value,e(1,c)}function N(){p=yl(this),e(2,p),e(11,r),e(0,f)}function V(){m=yl(this),e(3,m)}const Z=U=>T(U),Y=U=>I(U);function x(U){b=U,e(6,b)}return t.$$.update=()=>{t.$$.dirty[0]&15&&e(12,n=f.filter(U=>{const Q=U.path.toLowerCase().includes(c.toLowerCase())||U.upstreams.some(F=>F.target.toLowerCase().includes(c.toLowerCase())),S=!p||typeof U.transformer=="string"&&U.transformer===p||U.upstreams.some(F=>typeof F.transformer=="string"&&F.transformer===p);let L=!0;return m==="healthy"?L=U.upstreams.every(F=>F.status==="HEALTHY"):m==="unhealthy"&&(L=U.upstreams.some(F=>F.status==="UNHEALTHY")),Q&&S&&L})),t.$$.dirty[0]&1&&e(11,r=Array.from(new Set(f.flatMap(U=>{const Q=[];return typeof U.transformer=="string"&&Q.push(U.transformer),U.upstreams.forEach(S=>{typeof S.transformer=="string"&&Q.push(S.transformer)}),Q}))))},[f,c,p,m,u,d,b,k,w,y,E,r,n,a,T,M,P,I,H,j,D,B,N,V,Z,Y,x]}class Dh extends Kt{constructor(l){super(),Gt(this,l,jh,Lh,Yt,{},null,[-1,-1])}}function J1(t){let l,e,n,r,a,f,u,d,c,p,m;function g(w,y){return w[2]==="success"?Fh:w[2]==="error"?Ah:w[2]==="warning"?Ih:Bh}let b=g(t),k=b(t);return{c(){l=i("div"),e=i("div"),n=i("div"),k.c(),r=h(),a=i("span"),f=_(t[1]),u=h(),d=i("button"),d.textContent="\u2715",o(d,"class","btn btn-sm btn-ghost"),o(e,"class",c="alert "+t[3]+" shadow-lg"),o(l,"class","toast toast-end toast-top z-50")},m(w,y){q(w,l,y),s(l,e),s(e,n),k.m(n,null),s(n,r),s(n,a),s(a,f),s(e,u),s(e,d),p||(m=O(d,"click",t[4]),p=!0)},p(w,y){b!==(b=g(w))&&(k.d(1),k=b(w),k&&(k.c(),k.m(n,r))),y&2&&v(f,w[1]),y&8&&c!==(c="alert "+w[3]+" shadow-lg")&&o(e,"class",c)},d(w){w&&R(l),k.d(),p=!1,m()}}}function Bh(t){let l,e;return{c(){l=ie("svg"),e=ie("path"),o(e,"stroke-linecap","round"),o(e,"stroke-linejoin","round"),o(e,"stroke-width","2"),o(e,"d","M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"),o(l,"xmlns","http://www.w3.org/2000/svg"),o(l,"fill","none"),o(l,"viewBox","0 0 24 24"),o(l,"class","stroke-current shrink-0 w-6 h-6")},m(n,r){q(n,l,r),s(l,e)},d(n){n&&R(l)}}}function Ih(t){let l,e;return{c(){l=ie("svg"),e=ie("path"),o(e,"stroke-linecap","round"),o(e,"stroke-linejoin","round"),o(e,"stroke-width","2"),o(e,"d","M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"),o(l,"xmlns","http://www.w3.org/2000/svg"),o(l,"class","stroke-current shrink-0 h-6 w-6"),o(l,"fill","none"),o(l,"viewBox","0 0 24 24")},m(n,r){q(n,l,r),s(l,e)},d(n){n&&R(l)}}}function Ah(t){let l,e;return{c(){l=ie("svg"),e=ie("path"),o(e,"stroke-linecap","round"),o(e,"stroke-linejoin","round"),o(e,"stroke-width","2"),o(e,"d","M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z"),o(l,"xmlns","http://www.w3.org/2000/svg"),o(l,"class","stroke-current shrink-0 h-6 w-6"),o(l,"fill","none"),o(l,"viewBox","0 0 24 24")},m(n,r){q(n,l,r),s(l,e)},d(n){n&&R(l)}}}function Fh(t){let l,e;return{c(){l=ie("svg"),e=ie("path"),o(e,"stroke-linecap","round"),o(e,"stroke-linejoin","round"),o(e,"stroke-width","2"),o(e,"d","M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"),o(l,"xmlns","http://www.w3.org/2000/svg"),o(l,"class","stroke-current shrink-0 h-6 w-6"),o(l,"fill","none"),o(l,"viewBox","0 0 24 24")},m(n,r){q(n,l,r),s(l,e)},d(n){n&&R(l)}}}function zh(t){let l,e=t[0]&&J1(t);return{c(){e&&e.c(),l=Gl()},m(n,r){e&&e.m(n,r),q(n,l,r)},p(n,[r]){n[0]?e?e.p(n,r):(e=J1(n),e.c(),e.m(l.parentNode,l)):e&&(e.d(1),e=null)},i:ot,o:ot,d(n){n&&R(l),e&&e.d(n)}}}function Oh(t,l,e){let n,{message:r}=l,{type:a="info"}=l,{duration:f=3e3}=l,{visible:u=!0}=l;const d=nr();let c;Hs(()=>(f>0&&(c=setTimeout(()=>{e(0,u=!1),d("close")},f)),()=>{c&&clearTimeout(c)}));function p(){e(0,u=!1),d("close"),c&&clearTimeout(c)}return t.$$set=m=>{"message"in m&&e(1,r=m.message),"type"in m&&e(2,a=m.type),"duration"in m&&e(5,f=m.duration),"visible"in m&&e(0,u=m.visible)},t.$$.update=()=>{t.$$.dirty&4&&e(3,n={success:"alert-success",error:"alert-error",warning:"alert-warning",info:"alert-info"}[a])},[u,r,a,n,p,f]}class Nh extends Kt{constructor(l){super(),Gt(this,l,Oh,zh,Yt,{message:1,type:2,duration:5,visible:0})}}function W1(t,l,e){const n=t.slice();return n[7]=l[e],n}function K1(t){let l,e,n,r,a,f,u,d,c,p,m,g,b=ft(t[1]),k=[];for(let w=0;w<b.length;w+=1)k[w]=G1(W1(t,b,w));return{c(){l=i("div"),e=i("div"),n=i("h3"),n.textContent="Select Route Template",r=h(),a=i("div");for(let w=0;w<k.length;w+=1)k[w].c();f=h(),u=i("div"),d=i("button"),d.textContent="Close",c=h(),p=i("button"),o(n,"class","font-bold text-lg mb-4"),o(a,"class","grid grid-cols-1 md:grid-cols-2 gap-4"),o(d,"type","button"),o(d,"class","btn btn-sm"),o(u,"class","modal-action"),o(e,"class","modal-box max-w-4xl"),o(p,"type","button"),o(p,"class","modal-backdrop"),o(p,"aria-label","Close modal"),o(l,"class","modal modal-open")},m(w,y){q(w,l,y),s(l,e),s(e,n),s(e,r),s(e,a);for(let E=0;E<k.length;E+=1)k[E]&&k[E].m(a,null);s(e,f),s(e,u),s(u,d),s(l,c),s(l,p),m||(g=[O(d,"click",t[4]),O(p,"click",t[5])],m=!0)},p(w,y){if(y&6){b=ft(w[1]);let E;for(E=0;E<b.length;E+=1){const C=W1(w,b,E);k[E]?k[E].p(C,y):(k[E]=G1(C),k[E].c(),k[E].m(a,null))}for(;E<k.length;E+=1)k[E].d(1);k.length=b.length}},d(w){w&&R(l),$t(k,w),m=!1,mt(g)}}}function G1(t){let l,e,n,r,a,f,u,d,c,p,m;function g(){return t[3](t[7])}return{c(){l=i("button"),e=i("div"),n=i("h4"),n.textContent=\`\${t[7].name}\`,r=h(),a=i("p"),a.textContent=\`\${t[7].description}\`,f=h(),u=i("div"),d=i("div"),d.textContent=\`\${JSON.stringify(t[7].template,null,2)}\`,c=h(),o(n,"class","card-title text-base"),o(a,"class","text-sm text-gray-600"),o(d,"class","text-xs font-mono bg-base-100 p-2 rounded max-h-32 overflow-auto"),o(u,"class","mt-2"),o(e,"class","card-body"),o(l,"type","button"),o(l,"class","card card-compact bg-base-200 hover:bg-base-300 cursor-pointer text-left")},m(b,k){q(b,l,k),s(l,e),s(e,n),s(e,r),s(e,a),s(e,f),s(e,u),s(u,d),s(l,c),p||(m=O(l,"click",g),p=!0)},p(b,k){t=b},d(b){b&&R(l),p=!1,m()}}}function Uh(t){let l,e=t[0]&&K1(t);return{c(){e&&e.c(),l=Gl()},m(n,r){e&&e.m(n,r),q(n,l,r)},p(n,[r]){n[0]?e?e.p(n,r):(e=K1(n),e.c(),e.m(l.parentNode,l)):e&&(e.d(1),e=null)},i:ot,o:ot,d(n){n&&R(l),e&&e.d(n)}}}function Vh(t,l,e){let{showTemplates:n=!1}=l;const r=nr(),a=[{name:"Simple Proxy",description:"Basic reverse proxy to a single upstream",template:{path:"/api",upstreams:[{target:"https://api.example.com",weight:100,priority:1}]}},{name:"Load Balanced",description:"Multiple upstreams with load balancing",template:{path:"/api",upstreams:[{target:"https://api1.example.com",weight:100,priority:1},{target:"https://api2.example.com",weight:100,priority:1}]}},{name:"Failover Setup",description:"Primary and backup upstreams with failover",template:{path:"/api",upstreams:[{target:"https://primary.example.com",weight:200,priority:1},{target:"https://backup.example.com",weight:100,priority:2}],failover:{enabled:!0,retryableStatusCodes:[500,502,503,504]}}},{name:"Anthropic to Gemini",description:"Convert Anthropic API to Google Gemini format",template:{path:"/v1/messages",transformer:"anthropic-to-gemini",upstreams:[{target:"https://generativelanguage.googleapis.com",weight:100,priority:1}]}},{name:"Anthropic to OpenAI",description:"Convert Anthropic API to OpenAI format",template:{path:"/v1/messages",transformer:"anthropic-to-openai",upstreams:[{target:"https://api.openai.com",weight:100,priority:1}]}},{name:"Health Checked API",description:"API with health checks enabled",template:{path:"/api",upstreams:[{target:"https://api.example.com",weight:100,priority:1}],healthCheck:{enabled:!0,interval:3e4,timeout:5e3,path:"/health"}}},{name:"Path Rewrite",description:"Route with path rewriting",template:{path:"/api/v2",upstreams:[{target:"https://api.example.com",weight:100,priority:1}],pathRewrite:{"^/api/v2":"/v1"}}}];function f(p){r("select",p.template),e(0,n=!1)}const u=p=>f(p),d=()=>e(0,n=!1),c=()=>e(0,n=!1);return t.$$set=p=>{"showTemplates"in p&&e(0,n=p.showTemplates)},[n,a,f,u,d,c]}class Jh extends Kt{constructor(l){super(),Gt(this,l,Vh,Uh,Yt,{showTemplates:0})}}function Y1(t,l,e){const n=t.slice();return n[16]=l[e],n}function Wh(t){let l,e,n=t[7]("plugin.none")+"",r,a,f,u,d,c=ft(t[6]),p=[];for(let g=0;g<c.length;g+=1)p[g]=Q1(Y1(t,c,g));let m=t[0]&&Z1(t);return{c(){l=i("select"),e=i("option"),r=_(n);for(let g=0;g<p.length;g+=1)p[g].c();a=h(),m&&m.c(),f=Gl(),e.__value=null,G(e,e.__value),o(l,"id","plugin-select"),o(l,"class","select select-bordered"),t[0]===void 0&&Cl(()=>t[11].call(l))},m(g,b){q(g,l,b),s(l,e),s(e,r);for(let k=0;k<p.length;k+=1)p[k]&&p[k].m(l,null);St(l,t[0],!0),q(g,a,b),m&&m.m(g,b),q(g,f,b),u||(d=[O(l,"change",t[11]),O(l,"change",t[8])],u=!0)},p(g,b){if(b&128&&n!==(n=g[7]("plugin.none")+"")&&v(r,n),b&64){c=ft(g[6]);let k;for(k=0;k<c.length;k+=1){const w=Y1(g,c,k);p[k]?p[k].p(w,b):(p[k]=Q1(w),p[k].c(),p[k].m(l,null))}for(;k<p.length;k+=1)p[k].d(1);p.length=c.length}b&65&&St(l,g[0]),g[0]?m?m.p(g,b):(m=Z1(g),m.c(),m.m(f.parentNode,f)):m&&(m.d(1),m=null)},d(g){g&&(R(l),R(a),R(f)),$t(p,g),m&&m.d(g),u=!1,mt(d)}}}function Kh(t){let l,e,n,r,a,f=t[7]("routeEditor.noPluginsAvailable")+"",u;return{c(){l=i("div"),e=ie("svg"),n=ie("path"),r=h(),a=i("span"),u=_(f),o(n,"stroke-linecap","round"),o(n,"stroke-linejoin","round"),o(n,"stroke-width","2"),o(n,"d","M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"),o(e,"xmlns","http://www.w3.org/2000/svg"),o(e,"fill","none"),o(e,"viewBox","0 0 24 24"),o(e,"class","stroke-current shrink-0 w-6 h-6"),o(l,"class","alert alert-info")},m(d,c){q(d,l,c),s(l,e),s(e,n),s(l,r),s(l,a),s(a,u)},p(d,c){c&128&&f!==(f=d[7]("routeEditor.noPluginsAvailable")+"")&&v(u,f)},d(d){d&&R(l)}}}function Q1(t){let l,e=t[16].name+"",n,r;return{c(){l=i("option"),n=_(e),l.__value=r=t[16].id,G(l,l.__value)},m(a,f){q(a,l,f),s(l,n)},p(a,f){f&64&&e!==(e=a[16].name+"")&&v(n,e),f&64&&r!==(r=a[16].id)&&(l.__value=r,G(l,l.__value))},d(a){a&&R(l)}}}function Z1(t){let l,e,n=t[6].find(t[12])?.description+"",r;return{c(){l=i("div"),e=i("span"),r=_(n),o(e,"class","label-text-alt text-gray-500"),o(l,"class","label")},m(a,f){q(a,l,f),s(l,e),s(e,r)},p(a,f){f&65&&n!==(n=a[6].find(a[12])?.description+"")&&v(r,n)},d(a){a&&R(l)}}}function X1(t){let l,e,n=t[2]?"Hide":"Show",r,a,f,u,d,c,p=t[2]&&x1(t);return{c(){l=i("div"),e=i("button"),r=_(n),a=_(" Preview"),f=h(),p&&p.c(),u=Gl(),o(e,"type","button"),o(e,"class","btn btn-xs btn-outline"),o(l,"class","flex items-center gap-2")},m(m,g){q(m,l,g),s(l,e),s(e,r),s(e,a),q(m,f,g),p&&p.m(m,g),q(m,u,g),d||(c=O(e,"click",t[13]),d=!0)},p(m,g){g&4&&n!==(n=m[2]?"Hide":"Show")&&v(r,n),m[2]?p?p.p(m,g):(p=x1(m),p.c(),p.m(u.parentNode,u)):p&&(p.d(1),p=null)},d(m){m&&(R(l),R(f),R(u)),p&&p.d(m),d=!1,c()}}}function x1(t){let l,e,n,r=t[7]("plugin.testPlugin")+"",a,f,u,d,c,p,m=t[7]("plugin.input")+"",g,b,k,w,y,E,C,T,M=t[7]("plugin.output")+"",P,I,H,j,D,B,N,V,Z,Y,x=t[7]("plugin.testPlugin")+"",U,Q,S,L,F,z=(t[4]||t[5])&&$1(t),J=t[5]&&ed(t);return{c(){l=i("div"),e=i("div"),n=i("h4"),a=_(r),f=h(),u=i("div"),d=i("div"),c=i("label"),p=i("span"),g=_(m),b=h(),k=i("textarea"),y=h(),E=i("div"),C=i("label"),T=i("span"),P=_(M),I=h(),H=i("textarea"),D=h(),B=i("div"),N=i("button"),V=ie("svg"),Z=ie("path"),Y=h(),U=_(x),Q=h(),z&&z.c(),S=h(),J&&J.c(),o(n,"class","font-semibold text-sm"),o(p,"class","label-text text-xs"),o(c,"class","label py-1"),o(c,"for","plugin-input"),o(k,"id","plugin-input"),o(k,"class","textarea textarea-bordered textarea-sm font-mono text-xs w-full"),o(k,"placeholder",w=t[7]("plugin.inputPlaceholder")),o(k,"rows","10"),o(T,"class","label-text text-xs"),o(C,"class","label py-1"),o(C,"for","plugin-output"),o(H,"id","plugin-output"),o(H,"class","textarea textarea-bordered textarea-sm font-mono text-xs w-full bg-base-100"),H.value=t[4],H.readOnly=!0,o(H,"rows","10"),o(H,"placeholder",j=t[7]("plugin.outputPlaceholder")),o(u,"class","grid grid-cols-2 gap-4"),o(Z,"stroke-linecap","round"),o(Z,"stroke-linejoin","round"),o(Z,"stroke-width","2"),o(Z,"d","M14 5l7 7m0 0l-7 7m7-7H3"),o(V,"xmlns","http://www.w3.org/2000/svg"),o(V,"class","h-3 w-3"),o(V,"fill","none"),o(V,"viewBox","0 0 24 24"),o(V,"stroke","currentColor"),o(N,"type","button"),o(N,"class","btn btn-xs btn-primary"),o(B,"class","flex gap-2"),o(e,"class","card-body p-4 space-y-3"),o(l,"class","card bg-base-200")},m(se,oe){q(se,l,oe),s(l,e),s(e,n),s(n,a),s(e,f),s(e,u),s(u,d),s(d,c),s(c,p),s(p,g),s(d,b),s(d,k),G(k,t[3]),s(u,y),s(u,E),s(E,C),s(C,T),s(T,P),s(E,I),s(E,H),s(e,D),s(e,B),s(B,N),s(N,V),s(V,Z),s(N,Y),s(N,U),s(B,Q),z&&z.m(B,null),s(e,S),J&&J.m(e,null),L||(F=[O(k,"input",t[14]),O(N,"click",t[9])],L=!0)},p(se,oe){oe&128&&r!==(r=se[7]("plugin.testPlugin")+"")&&v(a,r),oe&128&&m!==(m=se[7]("plugin.input")+"")&&v(g,m),oe&128&&w!==(w=se[7]("plugin.inputPlaceholder"))&&o(k,"placeholder",w),oe&8&&G(k,se[3]),oe&128&&M!==(M=se[7]("plugin.output")+"")&&v(P,M),oe&16&&(H.value=se[4]),oe&128&&j!==(j=se[7]("plugin.outputPlaceholder"))&&o(H,"placeholder",j),oe&128&&x!==(x=se[7]("plugin.testPlugin")+"")&&v(U,x),se[4]||se[5]?z?z.p(se,oe):(z=$1(se),z.c(),z.m(B,null)):z&&(z.d(1),z=null),se[5]?J?J.p(se,oe):(J=ed(se),J.c(),J.m(e,null)):J&&(J.d(1),J=null)},d(se){se&&R(l),z&&z.d(),J&&J.d(),L=!1,mt(F)}}}function $1(t){let l,e=t[7]("common.reset")+"",n,r,a;return{c(){l=i("button"),n=_(e),o(l,"type","button"),o(l,"class","btn btn-xs btn-ghost")},m(f,u){q(f,l,u),s(l,n),r||(a=O(l,"click",t[10]),r=!0)},p(f,u){u&128&&e!==(e=f[7]("common.reset")+"")&&v(n,e)},d(f){f&&R(l),r=!1,a()}}}function ed(t){let l,e,n,r,a,f=t[7]("common.error")+"",u,d,c;return{c(){l=i("div"),e=ie("svg"),n=ie("path"),r=h(),a=i("span"),u=_(f),d=_(": "),c=_(t[5]),o(n,"stroke-linecap","round"),o(n,"stroke-linejoin","round"),o(n,"stroke-width","2"),o(n,"d","M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z"),o(e,"xmlns","http://www.w3.org/2000/svg"),o(e,"class","stroke-current shrink-0 h-4 w-4"),o(e,"fill","none"),o(e,"viewBox","0 0 24 24"),o(a,"class","text-xs"),o(l,"class","alert alert-error py-2")},m(p,m){q(p,l,m),s(l,e),s(e,n),s(l,r),s(l,a),s(a,u),s(a,d),s(a,c)},p(p,m){m&128&&f!==(f=p[7]("common.error")+"")&&v(u,f),m&32&&v(c,p[5])},d(p){p&&R(l)}}}function Gh(t){let l,e,n,r,a,f,u;function d(g,b){return g[6].length===0?Kh:Wh}let c=d(t),p=c(t),m=t[0]&&X1(t);return{c(){l=i("div"),e=i("div"),n=i("label"),r=i("span"),a=_(t[1]),f=h(),p.c(),u=h(),m&&m.c(),o(r,"class","label-text font-semibold"),o(n,"class","label"),o(n,"for","plugin-select"),o(e,"class","form-control"),o(l,"class","space-y-3")},m(g,b){q(g,l,b),s(l,e),s(e,n),s(n,r),s(r,a),s(e,f),p.m(e,null),s(l,u),m&&m.m(l,null)},p(g,[b]){b&2&&v(a,g[1]),c===(c=d(g))&&p?p.p(g,b):(p.d(1),p=c(g),p&&(p.c(),p.m(e,null))),g[0]?m?m.p(g,b):(m=X1(g),m.c(),m.m(l,null)):m&&(m.d(1),m=null)},i:ot,o:ot,d(g){g&&R(l),p.d(),m&&m.d()}}}function c0(t){return t.split("-").map(l=>l.charAt(0).toUpperCase()+l.slice(1)).join(" \u2192 ")}function Yh(t){const l=t.split("-to-");if(l.length===2){const[e,n]=l;return\`Convert \${e.charAt(0).toUpperCase()+e.slice(1)} API format to \${n.charAt(0).toUpperCase()+n.slice(1)} format\`}return\`\${c0(t)} plugin\`}function Qh(t,l,e){let n;Nt(t,Dt,T=>e(7,n=T));let{plugin:r=null}=l,{label:a="Plugin"}=l;const f=nr();let u=!1,d=\`{
21251
21258
  "model": "claude-3-5-sonnet-20241022",
21252
21259
  "messages": [
21253
21260
  {
@@ -21255,15 +21262,13 @@ var init_assets = __esm(() => {
21255
21262
  "content": "Hello"
21256
21263
  }
21257
21264
  ]
21258
- }\`,d="",p=null,m=[];Hs(async()=>{try{const T=await e0.getAll();e(6,m=T.map(M=>({id:M,name:t0(M),description:qh(M)})))}catch(T){console.warn("Failed to load plugins from API, using fallback:",T),e(6,m=[{id:"openai-to-anthropic",name:"OpenAI \u2192 Anthropic",description:"Convert OpenAI API format to Anthropic format"},{id:"anthropic-to-openai",name:"Anthropic \u2192 OpenAI",description:"Convert Anthropic API format to OpenAI format"},{id:"anthropic-to-gemini",name:"Anthropic \u2192 Gemini",description:"Convert Anthropic API format to Google Gemini format"}])}});function g(){u("change",a),e(4,d=""),e(5,p=null)}function b(){if(!a||!f){e(5,p=n("plugin.testFailed",{values:{error:"Invalid input"}}));return}try{const T=JSON.parse(f);let M;a==="anthropic-to-gemini"?M={contents:T.messages?.map(R=>({role:R.role==="user"?"user":"model",parts:[{text:R.content}]})),generationConfig:{temperature:T.temperature||1,maxOutputTokens:T.max_tokens||8192}}:a==="anthropic-to-openai"?M={model:T.model?.replace("claude","gpt-4"),messages:T.messages,temperature:T.temperature,max_tokens:T.max_tokens}:M={...T,_transformed:!0},e(4,d=JSON.stringify(M,null,2)),e(5,p=null)}catch(T){e(5,p=T.message),e(4,d="")}}function k(){e(4,d=""),e(5,p=null)}function w(){a=dl(this),e(0,a),e(6,m)}const C=T=>T.id===a,E=()=>e(2,c=!c);function y(){f=this.value,e(3,f)}return l.$$set=T=>{"plugin"in T&&e(0,a=T.plugin),"label"in T&&e(1,i=T.label)},[a,i,c,f,d,p,m,n,g,b,k,w,C,E,y]}class l0 extends Nt{constructor(s){super(),Ut(this,s,Hh,Rh,Vt,{plugin:0,label:1})}}function G1(l,s,e){const n=l.slice();return n[15]=s[e],n[16]=s,n[17]=e,n}function Lh(l){let s,e=l[5]("routeEditor.pathHelpLong")+"",n;return{c(){s=r("span"),n=_(e),o(s,"class","label-text-alt text-gray-500")},m(a,i){L(a,s,i),t(s,n)},p(a,i){i&32&&e!==(e=a[5]("routeEditor.pathHelpLong")+"")&&v(n,e)},d(a){a&&H(s)}}}function Ph(l){let s,e=l[1].find(Q1)?.message+"",n;return{c(){s=r("span"),n=_(e),o(s,"class","label-text-alt text-error")},m(a,i){L(a,s,i),t(s,n)},p(a,i){i&2&&e!==(e=a[1].find(Q1)?.message+"")&&v(n,e)},d(a){a&&H(s)}}}function K1(l){let s,e,n,a,i,u,c,f,d,p,m,g,b;function k(){l[11].call(e,l[16],l[17])}function w(){l[12].call(f,l[16],l[17])}function C(){return l[13](l[17])}return{c(){s=r("div"),e=r("input"),a=h(),i=re("svg"),u=re("path"),c=h(),f=r("input"),p=h(),m=r("button"),m.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"></path></svg>',o(e,"id",\`path-rewrite-pattern-\${l[17]}\`),o(e,"type","text"),o(e,"placeholder",n=l[5]("routeEditor.patternPlaceholder")),o(e,"class","input input-bordered input-sm flex-1"),o(u,"stroke-linecap","round"),o(u,"stroke-linejoin","round"),o(u,"stroke-width","2"),o(u,"d","M14 5l7 7m0 0l-7 7m7-7H3"),o(i,"xmlns","http://www.w3.org/2000/svg"),o(i,"class","h-5 w-5 text-gray-400 flex-shrink-0"),o(i,"fill","none"),o(i,"viewBox","0 0 24 24"),o(i,"stroke","currentColor"),o(f,"id",\`path-rewrite-replacement-\${l[17]}\`),o(f,"type","text"),o(f,"placeholder",d=l[5]("routeEditor.replacementPlaceholder")),o(f,"class","input input-bordered input-sm flex-1"),o(m,"type","button"),o(m,"class","btn btn-sm btn-error btn-square flex-shrink-0"),o(s,"class","flex gap-2 items-center")},m(E,y){L(E,s,y),t(s,e),Y(e,l[15].pattern),t(s,a),t(s,i),t(i,u),t(s,c),t(s,f),Y(f,l[15].replacement),t(s,p),t(s,m),g||(b=[V(e,"input",k),V(f,"input",w),V(m,"click",C)],g=!0)},p(E,y){l=E,y&32&&n!==(n=l[5]("routeEditor.patternPlaceholder"))&&o(e,"placeholder",n),y&4&&e.value!==l[15].pattern&&Y(e,l[15].pattern),y&32&&d!==(d=l[5]("routeEditor.replacementPlaceholder"))&&o(f,"placeholder",d),y&4&&f.value!==l[15].replacement&&Y(f,l[15].replacement)},d(E){E&&H(s),g=!1,vt(b)}}}function jh(l){let s,e,n,a,i=l[5]("routes.path")+"",u,c,f,d,p,m,g,b,k,w,C,E,y,T=l[5]("routeEditor.pathRewrite")+"",M,R,j=l[5]("routeEditor.optional")+"",P,I,q,D,A,N,Z,Q,x,z,K,S,B,U=l[5]("routeEditor.addPathRewriteRule")+"",F,J,ie,ue,ne,$,te=l[5]("routeEditor.transformer")+"",ae,ee,G,pe=l[5]("routeEditor.transformerHelp")+"",oe,ge,he,ye,ze,Pe,we,Fe,Je;function je(se,ke){return ke&2&&(k=null),k==null&&(k=!!se[1].some(Dh)),k?Ph:Lh}let Le=je(l,-1),Se=Le(l),fe=ut(l[2]),_e=[];for(let se=0;se<fe.length;se+=1)_e[se]=K1(G1(l,fe,se));function Ie(se){l[14](se)}let De={label:l[5]("routeEditor.transformer")};return l[3]!==void 0&&(De.plugin=l[3]),he=new l0({props:De}),Sl.push(()=>Ml(he,"plugin",Ie)),Pe=new $p({props:{open:l[4]!==null,title:l[5]("common.confirm"),message:l[5]("routeEditor.confirmDeleteRule"),confirmText:l[5]("common.delete"),cancelText:l[5]("common.cancel"),confirmClass:"btn-error"}}),Pe.$on("confirm",l[8]),Pe.$on("cancel",l[9]),{c(){s=r("div"),e=r("div"),n=r("label"),a=r("span"),u=_(i),c=h(),f=r("span"),f.textContent="*",d=h(),p=r("input"),g=h(),b=r("div"),Se.c(),w=h(),C=r("div"),E=r("label"),y=r("span"),M=_(T),R=_(" ("),P=_(j),I=_(\`)
21259
- \`),q=r("div"),D=re("svg"),A=re("path"),Z=h(),Q=r("div");for(let se=0;se<_e.length;se+=1)_e[se].c();x=h(),z=r("button"),K=re("svg"),S=re("path"),B=h(),F=_(U),J=h(),ie=r("div"),ue=h(),ne=r("div"),$=r("h3"),ae=_(te),ee=h(),G=r("p"),oe=_(pe),ge=h(),Et(he.$$.fragment),ze=h(),Et(Pe.$$.fragment),o(f,"class","text-error"),o(a,"class","label-text font-semibold"),o(n,"class","label"),o(n,"for","route-path"),o(p,"id","route-path"),o(p,"type","text"),o(p,"placeholder",m=l[5]("routeEditor.pathPlaceholder")),o(p,"class","input input-bordered"),p.required=!0,le(p,"input-error",l[1].some(Y1)),o(b,"class","label"),o(e,"class","form-control"),o(A,"stroke-linecap","round"),o(A,"stroke-linejoin","round"),o(A,"stroke-width","2"),o(A,"d","M8.228 9c.549-1.165 2.03-2 3.772-2 2.21 0 4 1.343 4 3 0 1.4-1.278 2.575-3.006 2.907-.542.104-.994.54-.994 1.093m0 3h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"),o(D,"xmlns","http://www.w3.org/2000/svg"),o(D,"class","h-4 w-4 text-gray-400 cursor-help"),o(D,"fill","none"),o(D,"viewBox","0 0 24 24"),o(D,"stroke","currentColor"),o(q,"class","tooltip tooltip-right"),o(q,"data-tip",N=l[5]("routeEditor.pathRewriteTooltip")),o(y,"class","label-text font-semibold flex items-center gap-2"),o(E,"class","label"),o(E,"for","path-rewrite-pattern-0"),o(S,"stroke-linecap","round"),o(S,"stroke-linejoin","round"),o(S,"stroke-width","2"),o(S,"d","M12 4v16m8-8H4"),o(K,"xmlns","http://www.w3.org/2000/svg"),o(K,"class","h-4 w-4"),o(K,"fill","none"),o(K,"viewBox","0 0 24 24"),o(K,"stroke","currentColor"),o(z,"type","button"),o(z,"class","btn btn-sm btn-outline gap-2"),o(Q,"class","space-y-2"),o(C,"class","form-control"),o(ie,"class","divider"),o($,"class","text-lg font-semibold mb-2"),o(G,"class","text-sm text-gray-500 mb-4"),o(s,"class","space-y-6")},m(se,ke){L(se,s,ke),t(s,e),t(e,n),t(n,a),t(a,u),t(a,c),t(a,f),t(e,d),t(e,p),Y(p,l[0].path),t(e,g),t(e,b),Se.m(b,null),t(s,w),t(s,C),t(C,E),t(E,y),t(y,M),t(y,R),t(y,P),t(y,I),t(y,q),t(q,D),t(D,A),t(C,Z),t(C,Q);for(let me=0;me<_e.length;me+=1)_e[me]&&_e[me].m(Q,null);t(Q,x),t(Q,z),t(z,K),t(K,S),t(z,B),t(z,F),t(s,J),t(s,ie),t(s,ue),t(s,ne),t(ne,$),t($,ae),t(ne,ee),t(ne,G),t(G,oe),t(ne,ge),Ct(he,ne,null),L(se,ze,ke),Ct(Pe,se,ke),we=!0,Fe||(Je=[V(p,"input",l[10]),V(z,"click",l[6])],Fe=!0)},p(se,[ke]){if((!we||ke&32)&&i!==(i=se[5]("routes.path")+"")&&v(u,i),(!we||ke&32&&m!==(m=se[5]("routeEditor.pathPlaceholder")))&&o(p,"placeholder",m),ke&1&&p.value!==se[0].path&&Y(p,se[0].path),(!we||ke&2)&&le(p,"input-error",se[1].some(Y1)),Le===(Le=je(se,ke))&&Se?Se.p(se,ke):(Se.d(1),Se=Le(se),Se&&(Se.c(),Se.m(b,null))),(!we||ke&32)&&T!==(T=se[5]("routeEditor.pathRewrite")+"")&&v(M,T),(!we||ke&32)&&j!==(j=se[5]("routeEditor.optional")+"")&&v(P,j),(!we||ke&32&&N!==(N=se[5]("routeEditor.pathRewriteTooltip")))&&o(q,"data-tip",N),ke&164){fe=ut(se[2]);let Ve;for(Ve=0;Ve<fe.length;Ve+=1){const Be=G1(se,fe,Ve);_e[Ve]?_e[Ve].p(Be,ke):(_e[Ve]=K1(Be),_e[Ve].c(),_e[Ve].m(Q,x))}for(;Ve<_e.length;Ve+=1)_e[Ve].d(1);_e.length=fe.length}(!we||ke&32)&&U!==(U=se[5]("routeEditor.addPathRewriteRule")+"")&&v(F,U),(!we||ke&32)&&te!==(te=se[5]("routeEditor.transformer")+"")&&v(ae,te),(!we||ke&32)&&pe!==(pe=se[5]("routeEditor.transformerHelp")+"")&&v(oe,pe);const me={};ke&32&&(me.label=se[5]("routeEditor.transformer")),!ye&&ke&8&&(ye=!0,me.plugin=se[3],Rl(()=>ye=!1)),he.$set(me);const Ee={};ke&16&&(Ee.open=se[4]!==null),ke&32&&(Ee.title=se[5]("common.confirm")),ke&32&&(Ee.message=se[5]("routeEditor.confirmDeleteRule")),ke&32&&(Ee.confirmText=se[5]("common.delete")),ke&32&&(Ee.cancelText=se[5]("common.cancel")),Pe.$set(Ee)},i(se){we||(et(he.$$.fragment,se),et(Pe.$$.fragment,se),we=!0)},o(se){st(he.$$.fragment,se),st(Pe.$$.fragment,se),we=!1},d(se){se&&(H(s),H(ze)),Se.d(),Gt(_e,se),yt(he),yt(Pe,se),Fe=!1,vt(Je)}}}const Dh=l=>l.field==="path",Y1=l=>l.field==="path",Q1=l=>l.field==="path";function Bh(l,s,e){let n;Dt(l,Rt,y=>e(5,n=y));let{route:a}=s,{errors:i=[]}=s,u=[],c=null,f=a.plugins?.[0]||null;function d(){e(2,u=[...u,{pattern:"",replacement:""}])}function p(y){e(4,c=y)}function m(){c!==null&&(e(2,u=u.filter((y,T)=>T!==c)),e(4,c=null))}function g(){e(4,c=null)}function b(){a.path=this.value,e(0,a),e(2,u),e(3,f)}function k(y,T){y[T].pattern=this.value,e(2,u),e(0,a),e(3,f)}function w(y,T){y[T].replacement=this.value,e(2,u),e(0,a),e(3,f)}const C=y=>p(y);function E(y){f=y,e(3,f)}return l.$$set=y=>{"route"in y&&e(0,a=y.route),"errors"in y&&e(1,i=y.errors)},l.$$.update=()=>{if(l.$$.dirty&5){!u.length&&a.pathRewrite&&e(2,u=Object.entries(a.pathRewrite||{}).map(([T,M])=>({pattern:T,replacement:M})));const y={};u.filter(T=>T.pattern.trim()).forEach(T=>{y[T.pattern]=T.replacement}),e(0,a.pathRewrite=Object.keys(y).length>0?y:void 0,a)}l.$$.dirty&8&&e(0,a.plugins=f?[f]:void 0,a)},[a,i,u,f,c,n,d,p,m,g,b,k,w,C,E]}class Ih extends Nt{constructor(s){super(),Ut(this,s,Bh,jh,Vt,{route:0,errors:1})}}function Z1(l,s,e){const n=l.slice();return n[31]=s[e],n[32]=s,n[33]=e,n}function X1(l,s,e){const n=l.slice();return n[31]=s[e],n[34]=s,n[33]=e,n}function x1(l,s,e){const n=l.slice();return n[31]=s[e],n[33]=e,n}function $1(l,s,e){const n=l.slice();return n[31]=s[e],n[36]=s,n[33]=e,n}function ec(l){let s,e,n,a,i=l[1]&&tc();return{c(){s=r("div"),e=r("span"),n=_(l[0]),a=h(),i&&i.c(),o(e,"class","label-text font-semibold"),o(s,"class","label")},m(u,c){L(u,s,c),t(s,e),t(e,n),t(s,a),i&&i.m(s,null)},p(u,c){c[0]&1&&v(n,u[0]),u[1]?i||(i=tc(),i.c(),i.m(s,null)):i&&(i.d(1),i=null)},d(u){u&&H(s),i&&i.d()}}}function tc(l){let s,e,n;return{c(){s=r("span"),e=_("Support dynamic expressions: "),n=r("code"),n.textContent="{{ expression }}",o(n,"class","text-xs"),o(s,"class","label-text-alt text-xs")},m(a,i){L(a,s,i),t(s,e),t(s,n)},d(a){a&&H(s)}}}function lc(l){let s,e,n,a,i,u,c,f,d,p;function m(){l[20].call(e,l[36],l[33])}function g(){l[21].call(i,l[36],l[33])}function b(){return l[22](l[33])}return{c(){s=r("div"),e=r("input"),a=h(),i=r("input"),c=h(),f=r("button"),f.textContent="\u2715",o(e,"type","text"),o(e,"placeholder",n=l[8]("headers.namePlaceholder")),o(e,"class","input input-bordered input-sm flex-1"),o(i,"type","text"),o(i,"placeholder",u=l[8]("headers.valuePlaceholder")),o(i,"class","input input-bordered input-sm flex-1"),o(f,"type","button"),o(f,"class","btn btn-sm btn-error btn-square"),o(s,"class","flex gap-2")},m(k,w){L(k,s,w),t(s,e),Y(e,l[31].key),t(s,a),t(s,i),Y(i,l[31].value),t(s,c),t(s,f),d||(p=[V(e,"input",m),V(i,"input",g),V(f,"click",b)],d=!0)},p(k,w){l=k,w[0]&256&&n!==(n=l[8]("headers.namePlaceholder"))&&o(e,"placeholder",n),w[0]&8&&e.value!==l[31].key&&Y(e,l[31].key),w[0]&256&&u!==(u=l[8]("headers.valuePlaceholder"))&&o(i,"placeholder",u),w[0]&8&&i.value!==l[31].value&&Y(i,l[31].value)},d(k){k&&H(s),d=!1,vt(p)}}}function Ah(l){let s,e=l[8]("headers.empty")+"",n;return{c(){s=r("p"),n=_(e),o(s,"class","text-xs text-gray-500")},m(a,i){L(a,s,i),t(s,n)},p(a,i){i[0]&256&&e!==(e=a[8]("headers.empty")+"")&&v(n,e)},d(a){a&&H(s)}}}function Fh(l){let s,e=ut(l[4]),n=[];for(let a=0;a<e.length;a+=1)n[a]=sc(x1(l,e,a));return{c(){s=r("div");for(let a=0;a<n.length;a+=1)n[a].c();o(s,"class","flex flex-wrap gap-2 mt-2")},m(a,i){L(a,s,i);for(let u=0;u<n.length;u+=1)n[u]&&n[u].m(s,null)},p(a,i){if(i[0]&4112){e=ut(a[4]);let u;for(u=0;u<e.length;u+=1){const c=x1(a,e,u);n[u]?n[u].p(c,i):(n[u]=sc(c),n[u].c(),n[u].m(s,null))}for(;u<n.length;u+=1)n[u].d(1);n.length=e.length}},d(a){a&&H(s),Gt(n,a)}}}function sc(l){let s,e=l[31]+"",n,a,i,u,c,f;function d(){return l[24](l[33])}return{c(){s=r("div"),n=_(e),a=h(),i=r("button"),i.textContent="\u2715",u=h(),o(i,"type","button"),o(i,"class","btn btn-ghost btn-xs btn-circle"),o(s,"class","badge badge-lg gap-2")},m(p,m){L(p,s,m),t(s,n),t(s,a),t(s,i),t(s,u),c||(f=V(i,"click",d),c=!0)},p(p,m){l=p,m[0]&16&&e!==(e=l[31]+"")&&v(n,e)},d(p){p&&H(s),c=!1,f()}}}function oc(l){let s,e,n,a,i,u,c,f,d,p;function m(){l[25].call(e,l[34],l[33])}function g(){l[26].call(i,l[34],l[33])}function b(){return l[27](l[33])}return{c(){s=r("div"),e=r("input"),a=h(),i=r("input"),c=h(),f=r("button"),f.textContent="\u2715",o(e,"type","text"),o(e,"placeholder",n=l[8]("headers.namePlaceholder")),o(e,"class","input input-bordered input-sm flex-1"),o(i,"type","text"),o(i,"placeholder",u=l[8]("headers.valuePlaceholder")),o(i,"class","input input-bordered input-sm flex-1"),o(f,"type","button"),o(f,"class","btn btn-sm btn-error btn-square"),o(s,"class","flex gap-2")},m(k,w){L(k,s,w),t(s,e),Y(e,l[31].key),t(s,a),t(s,i),Y(i,l[31].value),t(s,c),t(s,f),d||(p=[V(e,"input",m),V(i,"input",g),V(f,"click",b)],d=!0)},p(k,w){l=k,w[0]&256&&n!==(n=l[8]("headers.namePlaceholder"))&&o(e,"placeholder",n),w[0]&32&&e.value!==l[31].key&&Y(e,l[31].key),w[0]&256&&u!==(u=l[8]("headers.valuePlaceholder"))&&o(i,"placeholder",u),w[0]&32&&i.value!==l[31].value&&Y(i,l[31].value)},d(k){k&&H(s),d=!1,vt(p)}}}function nc(l){let s,e,n,a,i,u,c,f,d,p;function m(){l[28].call(e,l[32],l[33])}function g(){l[29].call(i,l[32],l[33])}function b(){return l[30](l[33])}return{c(){s=r("div"),e=r("input"),a=h(),i=r("input"),c=h(),f=r("button"),f.textContent="\u2715",o(e,"type","text"),o(e,"placeholder",n=l[8]("headers.namePlaceholder")),o(e,"class","input input-bordered input-sm flex-1"),o(i,"type","text"),o(i,"placeholder",u=l[8]("headers.valuePlaceholder")),o(i,"class","input input-bordered input-sm flex-1"),o(f,"type","button"),o(f,"class","btn btn-sm btn-error btn-square"),o(s,"class","flex gap-2")},m(k,w){L(k,s,w),t(s,e),Y(e,l[31].key),t(s,a),t(s,i),Y(i,l[31].value),t(s,c),t(s,f),d||(p=[V(e,"input",m),V(i,"input",g),V(f,"click",b)],d=!0)},p(k,w){l=k,w[0]&256&&n!==(n=l[8]("headers.namePlaceholder"))&&o(e,"placeholder",n),w[0]&64&&e.value!==l[31].key&&Y(e,l[31].key),w[0]&256&&u!==(u=l[8]("headers.valuePlaceholder"))&&o(i,"placeholder",u),w[0]&64&&i.value!==l[31].value&&Y(i,l[31].value)},d(k){k&&H(s),d=!1,vt(p)}}}function zh(l){let s,e,n,a,i,u,c,f=l[8]("headers.add")+"",d,p,m=l[3].length+"",g,b,k,w,C,E,y=l[8]("headers.add")+"",T,M,R,j,P,I,q=l[8]("headers.remove")+"",D,A,N=l[4].length+"",Z,Q,x,z,K,S,B,U,F,J=l[8]("common.add")+"",ie,ue,ne,$,te,ae,ee,G,pe=l[8]("headers.replace")+"",oe,ge,he=l[5].length+"",ye,ze,Pe,we,Fe,Je,je=l[8]("headers.add")+"",Le,Se,fe,_e,Ie,De,se=l[8]("headers.default")+"",ke,me,Ee=l[6].length+"",Ve,Be,nt,Ne,Qe,Ye,ve=l[8]("headers.add")+"",de,Te,Ze,Me=l[2]&&ec(l),Ue=ut(l[3]),Ce=[];for(let O=0;O<Ue.length;O+=1)Ce[O]=lc($1(l,Ue,O));function mt(O,He){return O[4].length>0?Fh:Ah}let Ge=mt(l),ce=Ge(l),qe=ut(l[5]),Re=[];for(let O=0;O<qe.length;O+=1)Re[O]=oc(X1(l,qe,O));let dt=ut(l[6]),We=[];for(let O=0;O<dt.length;O+=1)We[O]=nc(Z1(l,dt,O));return{c(){s=r("div"),Me&&Me.c(),e=h(),n=r("div"),a=r("div"),i=r("input"),u=h(),c=r("div"),d=_(f),p=_(" ("),g=_(m),b=_(")"),k=h(),w=r("div");for(let O=0;O<Ce.length;O+=1)Ce[O].c();C=h(),E=r("button"),T=_(y),M=h(),R=r("div"),j=r("input"),P=h(),I=r("div"),D=_(q),A=_(" ("),Z=_(N),Q=_(")"),x=h(),z=r("div"),K=r("div"),S=r("input"),U=h(),F=r("button"),ie=_(J),ne=h(),ce.c(),$=h(),te=r("div"),ae=r("input"),ee=h(),G=r("div"),oe=_(pe),ge=_(" ("),ye=_(he),ze=_(")"),Pe=h(),we=r("div");for(let O=0;O<Re.length;O+=1)Re[O].c();Fe=h(),Je=r("button"),Le=_(je),Se=h(),fe=r("div"),_e=r("input"),Ie=h(),De=r("div"),ke=_(se),me=_(" ("),Ve=_(Ee),Be=_(")"),nt=h(),Ne=r("div");for(let O=0;O<We.length;O+=1)We[O].c();Qe=h(),Ye=r("button"),de=_(ve),o(i,"type","checkbox"),i.checked=!0,o(c,"class","collapse-title text-sm font-medium"),o(E,"type","button"),o(E,"class","btn btn-sm btn-ghost"),o(w,"class","collapse-content space-y-2"),o(a,"class","collapse collapse-arrow bg-base-200"),o(j,"type","checkbox"),o(I,"class","collapse-title text-sm font-medium"),o(S,"type","text"),o(S,"placeholder",B=l[8]("headers.namePlaceholder")),o(S,"class","input input-bordered input-sm flex-1"),o(F,"type","button"),o(F,"class","btn btn-sm btn-primary"),F.disabled=ue=!l[7].trim(),o(K,"class","flex gap-2"),o(z,"class","collapse-content space-y-2"),o(R,"class","collapse collapse-arrow bg-base-200"),o(ae,"type","checkbox"),o(G,"class","collapse-title text-sm font-medium"),o(Je,"type","button"),o(Je,"class","btn btn-sm btn-ghost"),o(we,"class","collapse-content space-y-2"),o(te,"class","collapse collapse-arrow bg-base-200"),o(_e,"type","checkbox"),o(De,"class","collapse-title text-sm font-medium"),o(Ye,"type","button"),o(Ye,"class","btn btn-sm btn-ghost"),o(Ne,"class","collapse-content space-y-2"),o(fe,"class","collapse collapse-arrow bg-base-200"),o(n,"class","space-y-4"),o(s,"class","form-control w-full")},m(O,He){L(O,s,He),Me&&Me.m(s,null),t(s,e),t(s,n),t(n,a),t(a,i),t(a,u),t(a,c),t(c,d),t(c,p),t(c,g),t(c,b),t(a,k),t(a,w);for(let X=0;X<Ce.length;X+=1)Ce[X]&&Ce[X].m(w,null);t(w,C),t(w,E),t(E,T),t(n,M),t(n,R),t(R,j),t(R,P),t(R,I),t(I,D),t(I,A),t(I,Z),t(I,Q),t(R,x),t(R,z),t(z,K),t(K,S),Y(S,l[7]),t(K,U),t(K,F),t(F,ie),t(z,ne),ce.m(z,null),t(n,$),t(n,te),t(te,ae),t(te,ee),t(te,G),t(G,oe),t(G,ge),t(G,ye),t(G,ze),t(te,Pe),t(te,we);for(let X=0;X<Re.length;X+=1)Re[X]&&Re[X].m(we,null);t(we,Fe),t(we,Je),t(Je,Le),t(n,Se),t(n,fe),t(fe,_e),t(fe,Ie),t(fe,De),t(De,ke),t(De,me),t(De,Ve),t(De,Be),t(fe,nt),t(fe,Ne);for(let X=0;X<We.length;X+=1)We[X]&&We[X].m(Ne,null);t(Ne,Qe),t(Ne,Ye),t(Ye,de),Te||(Ze=[V(E,"click",l[9]),V(S,"input",l[23]),V(S,"keydown",l[13]),V(F,"click",l[11]),V(Je,"click",l[14]),V(Ye,"click",l[16])],Te=!0)},p(O,He){if(O[2]?Me?Me.p(O,He):(Me=ec(O),Me.c(),Me.m(s,e)):Me&&(Me.d(1),Me=null),He[0]&256&&f!==(f=O[8]("headers.add")+"")&&v(d,f),He[0]&8&&m!==(m=O[3].length+"")&&v(g,m),He[0]&1288){Ue=ut(O[3]);let X;for(X=0;X<Ue.length;X+=1){const ft=$1(O,Ue,X);Ce[X]?Ce[X].p(ft,He):(Ce[X]=lc(ft),Ce[X].c(),Ce[X].m(w,C))}for(;X<Ce.length;X+=1)Ce[X].d(1);Ce.length=Ue.length}if(He[0]&256&&y!==(y=O[8]("headers.add")+"")&&v(T,y),He[0]&256&&q!==(q=O[8]("headers.remove")+"")&&v(D,q),He[0]&16&&N!==(N=O[4].length+"")&&v(Z,N),He[0]&256&&B!==(B=O[8]("headers.namePlaceholder"))&&o(S,"placeholder",B),He[0]&128&&S.value!==O[7]&&Y(S,O[7]),He[0]&256&&J!==(J=O[8]("common.add")+"")&&v(ie,J),He[0]&128&&ue!==(ue=!O[7].trim())&&(F.disabled=ue),Ge===(Ge=mt(O))&&ce?ce.p(O,He):(ce.d(1),ce=Ge(O),ce&&(ce.c(),ce.m(z,null))),He[0]&256&&pe!==(pe=O[8]("headers.replace")+"")&&v(oe,pe),He[0]&32&&he!==(he=O[5].length+"")&&v(ye,he),He[0]&33056){qe=ut(O[5]);let X;for(X=0;X<qe.length;X+=1){const ft=X1(O,qe,X);Re[X]?Re[X].p(ft,He):(Re[X]=oc(ft),Re[X].c(),Re[X].m(we,Fe))}for(;X<Re.length;X+=1)Re[X].d(1);Re.length=qe.length}if(He[0]&256&&je!==(je=O[8]("headers.add")+"")&&v(Le,je),He[0]&256&&se!==(se=O[8]("headers.default")+"")&&v(ke,se),He[0]&64&&Ee!==(Ee=O[6].length+"")&&v(Ve,Ee),He[0]&131392){dt=ut(O[6]);let X;for(X=0;X<dt.length;X+=1){const ft=Z1(O,dt,X);We[X]?We[X].p(ft,He):(We[X]=nc(ft),We[X].c(),We[X].m(Ne,Qe))}for(;X<We.length;X+=1)We[X].d(1);We.length=dt.length}He[0]&256&&ve!==(ve=O[8]("headers.add")+"")&&v(de,ve)},i:ot,o:ot,d(O){O&&H(s),Me&&Me.d(),Gt(Ce,O),ce.d(),Gt(Re,O),Gt(We,O),Te=!1,vt(Ze)}}}function Oh(l,s,e){let n;Dt(l,Rt,S=>e(8,n=S));let{value:a={}}=s,{label:i="Headers"}=s,{showHelp:u=!0}=s,{showLabel:c=!0}=s,f=[],d=[],p="",m=[],g=[],b=!1;function k(){e(3,f=[...f,{key:"",value:""}]),e(19,b=!0)}function w(S){e(3,f=f.filter((B,U)=>U!==S))}function C(){const S=p.trim();S&&!d.includes(S)&&(e(4,d=[...d,S]),e(7,p=""),e(19,b=!0))}function E(S){e(4,d=d.filter((B,U)=>U!==S))}function y(S){S.key==="Enter"&&(S.preventDefault(),C())}function T(){e(5,m=[...m,{key:"",value:""}]),e(19,b=!0)}function M(S){e(5,m=m.filter((B,U)=>U!==S))}function R(){e(6,g=[...g,{key:"",value:""}]),e(19,b=!0)}function j(S){e(6,g=g.filter((B,U)=>U!==S))}function P(S,B){S[B].key=this.value,e(3,f),e(19,b),e(18,a),e(4,d),e(5,m),e(6,g)}function I(S,B){S[B].value=this.value,e(3,f),e(19,b),e(18,a),e(4,d),e(5,m),e(6,g)}const q=S=>w(S);function D(){p=this.value,e(7,p)}const A=S=>E(S);function N(S,B){S[B].key=this.value,e(5,m),e(19,b),e(18,a),e(3,f),e(4,d),e(6,g)}function Z(S,B){S[B].value=this.value,e(5,m),e(19,b),e(18,a),e(3,f),e(4,d),e(6,g)}const Q=S=>M(S);function x(S,B){S[B].key=this.value,e(6,g),e(19,b),e(18,a),e(3,f),e(4,d),e(5,m)}function z(S,B){S[B].value=this.value,e(6,g),e(19,b),e(18,a),e(3,f),e(4,d),e(5,m)}const K=S=>j(S);return l.$$set=S=>{"value"in S&&e(18,a=S.value),"label"in S&&e(0,i=S.label),"showHelp"in S&&e(1,u=S.showHelp),"showLabel"in S&&e(2,c=S.showLabel)},l.$$.update=()=>{if(l.$$.dirty[0]&786552){!b&&(a.add||a.remove||a.replace||a.default)&&(e(3,f=Object.entries(a.add||{}).map(([F,J])=>({key:F,value:String(J)}))),e(4,d=[...a.remove||[]]),e(5,m=Object.entries(a.replace||{}).map(([F,J])=>({key:F,value:String(J)}))),e(6,g=Object.entries(a.default||{}).map(([F,J])=>({key:F,value:String(J)}))),e(19,b=!0));const S={};f.filter(F=>F.key.trim()).forEach(F=>{S[F.key]=F.value}),e(18,a.add=Object.keys(S).length>0?S:void 0,a),e(18,a.remove=d.length>0?d:void 0,a);const B={};m.filter(F=>F.key.trim()).forEach(F=>{B[F.key]=F.value}),e(18,a.replace=Object.keys(B).length>0?B:void 0,a);const U={};g.filter(F=>F.key.trim()).forEach(F=>{U[F.key]=F.value}),e(18,a.default=Object.keys(U).length>0?U:void 0,a)}},[i,u,c,f,d,m,g,p,n,k,w,C,E,y,T,M,R,j,a,b,P,I,q,D,A,N,Z,Q,x,z,K]}class s0 extends Nt{constructor(s){super(),Ut(this,s,Oh,zh,Vt,{value:18,label:0,showHelp:1,showLabel:2},null,[-1,-1])}}function ac(l,s,e){const n=l.slice();return n[31]=s[e],n[32]=s,n[33]=e,n}function rc(l,s,e){const n=l.slice();return n[31]=s[e],n[34]=s,n[33]=e,n}function ic(l,s,e){const n=l.slice();return n[31]=s[e],n[33]=e,n}function uc(l,s,e){const n=l.slice();return n[31]=s[e],n[36]=s,n[33]=e,n}function fc(l){let s,e,n,a,i=l[1]&&cc();return{c(){s=r("div"),e=r("span"),n=_(l[0]),a=h(),i&&i.c(),o(e,"class","label-text font-semibold"),o(s,"class","label")},m(u,c){L(u,s,c),t(s,e),t(e,n),t(s,a),i&&i.m(s,null)},p(u,c){c[0]&1&&v(n,u[0]),u[1]?i||(i=cc(),i.c(),i.m(s,null)):i&&(i.d(1),i=null)},d(u){u&&H(s),i&&i.d()}}}function cc(l){let s;return{c(){s=r("span"),s.textContent="Support JSON values and dynamic expressions",o(s,"class","label-text-alt text-xs")},m(e,n){L(e,s,n)},d(e){e&&H(s)}}}function dc(l){let s,e,n,a,i,u,c,f,d,p;function m(){l[20].call(e,l[36],l[33])}function g(){l[21].call(i,l[36],l[33])}function b(){return l[22](l[33])}return{c(){s=r("div"),e=r("input"),a=h(),i=r("input"),c=h(),f=r("button"),f.textContent="\u2715",o(e,"type","text"),o(e,"placeholder",n=l[8]("headers.name")),o(e,"class","input input-bordered input-sm flex-1"),o(i,"type","text"),o(i,"placeholder",u=l[8]("headers.value")),o(i,"class","input input-bordered input-sm flex-[2]"),o(f,"type","button"),o(f,"class","btn btn-sm btn-error btn-square"),o(s,"class","flex gap-2")},m(k,w){L(k,s,w),t(s,e),Y(e,l[31].key),t(s,a),t(s,i),Y(i,l[31].value),t(s,c),t(s,f),d||(p=[V(e,"input",m),V(i,"input",g),V(f,"click",b)],d=!0)},p(k,w){l=k,w[0]&256&&n!==(n=l[8]("headers.name"))&&o(e,"placeholder",n),w[0]&8&&e.value!==l[31].key&&Y(e,l[31].key),w[0]&256&&u!==(u=l[8]("headers.value"))&&o(i,"placeholder",u),w[0]&8&&i.value!==l[31].value&&Y(i,l[31].value)},d(k){k&&H(s),d=!1,vt(p)}}}function Nh(l){let s,e=l[8]("body.empty")+"",n;return{c(){s=r("p"),n=_(e),o(s,"class","text-xs text-gray-500")},m(a,i){L(a,s,i),t(s,n)},p(a,i){i[0]&256&&e!==(e=a[8]("body.empty")+"")&&v(n,e)},d(a){a&&H(s)}}}function Uh(l){let s,e=ut(l[4]),n=[];for(let a=0;a<e.length;a+=1)n[a]=pc(ic(l,e,a));return{c(){s=r("div");for(let a=0;a<n.length;a+=1)n[a].c();o(s,"class","flex flex-wrap gap-2 mt-2")},m(a,i){L(a,s,i);for(let u=0;u<n.length;u+=1)n[u]&&n[u].m(s,null)},p(a,i){if(i[0]&4112){e=ut(a[4]);let u;for(u=0;u<e.length;u+=1){const c=ic(a,e,u);n[u]?n[u].p(c,i):(n[u]=pc(c),n[u].c(),n[u].m(s,null))}for(;u<n.length;u+=1)n[u].d(1);n.length=e.length}},d(a){a&&H(s),Gt(n,a)}}}function pc(l){let s,e=l[31]+"",n,a,i,u,c,f;function d(){return l[24](l[33])}return{c(){s=r("div"),n=_(e),a=h(),i=r("button"),i.textContent="\u2715",u=h(),o(i,"type","button"),o(i,"class","btn btn-ghost btn-xs btn-circle"),o(s,"class","badge badge-lg gap-2")},m(p,m){L(p,s,m),t(s,n),t(s,a),t(s,i),t(s,u),c||(f=V(i,"click",d),c=!0)},p(p,m){l=p,m[0]&16&&e!==(e=l[31]+"")&&v(n,e)},d(p){p&&H(s),c=!1,f()}}}function hc(l){let s,e,n,a,i,u,c,f,d,p;function m(){l[25].call(e,l[34],l[33])}function g(){l[26].call(i,l[34],l[33])}function b(){return l[27](l[33])}return{c(){s=r("div"),e=r("input"),a=h(),i=r("input"),c=h(),f=r("button"),f.textContent="\u2715",o(e,"type","text"),o(e,"placeholder",n=l[8]("headers.name")),o(e,"class","input input-bordered input-sm flex-1"),o(i,"type","text"),o(i,"placeholder",u=l[8]("headers.value")),o(i,"class","input input-bordered input-sm flex-[2]"),o(f,"type","button"),o(f,"class","btn btn-sm btn-error btn-square"),o(s,"class","flex gap-2")},m(k,w){L(k,s,w),t(s,e),Y(e,l[31].key),t(s,a),t(s,i),Y(i,l[31].value),t(s,c),t(s,f),d||(p=[V(e,"input",m),V(i,"input",g),V(f,"click",b)],d=!0)},p(k,w){l=k,w[0]&256&&n!==(n=l[8]("headers.name"))&&o(e,"placeholder",n),w[0]&32&&e.value!==l[31].key&&Y(e,l[31].key),w[0]&256&&u!==(u=l[8]("headers.value"))&&o(i,"placeholder",u),w[0]&32&&i.value!==l[31].value&&Y(i,l[31].value)},d(k){k&&H(s),d=!1,vt(p)}}}function mc(l){let s,e,n,a,i,u,c,f,d,p;function m(){l[28].call(e,l[32],l[33])}function g(){l[29].call(i,l[32],l[33])}function b(){return l[30](l[33])}return{c(){s=r("div"),e=r("input"),a=h(),i=r("input"),c=h(),f=r("button"),f.textContent="\u2715",o(e,"type","text"),o(e,"placeholder",n=l[8]("headers.name")),o(e,"class","input input-bordered input-sm flex-1"),o(i,"type","text"),o(i,"placeholder",u=l[8]("headers.value")),o(i,"class","input input-bordered input-sm flex-[2]"),o(f,"type","button"),o(f,"class","btn btn-sm btn-error btn-square"),o(s,"class","flex gap-2")},m(k,w){L(k,s,w),t(s,e),Y(e,l[31].key),t(s,a),t(s,i),Y(i,l[31].value),t(s,c),t(s,f),d||(p=[V(e,"input",m),V(i,"input",g),V(f,"click",b)],d=!0)},p(k,w){l=k,w[0]&256&&n!==(n=l[8]("headers.name"))&&o(e,"placeholder",n),w[0]&64&&e.value!==l[31].key&&Y(e,l[31].key),w[0]&256&&u!==(u=l[8]("headers.value"))&&o(i,"placeholder",u),w[0]&64&&i.value!==l[31].value&&Y(i,l[31].value)},d(k){k&&H(s),d=!1,vt(p)}}}function Vh(l){let s,e,n,a,i,u,c,f=l[8]("body.add")+"",d,p,m=l[3].length+"",g,b,k,w,C,E,y=l[8]("body.add")+"",T,M,R,j,P,I,q=l[8]("body.remove")+"",D,A,N=l[4].length+"",Z,Q,x,z,K,S,B,U,F,J=l[8]("common.add")+"",ie,ue,ne,$,te,ae,ee,G,pe=l[8]("body.replace")+"",oe,ge,he=l[5].length+"",ye,ze,Pe,we,Fe,Je,je=l[8]("body.add")+"",Le,Se,fe,_e,Ie,De,se=l[8]("body.default")+"",ke,me,Ee=l[6].length+"",Ve,Be,nt,Ne,Qe,Ye,ve=l[8]("body.add")+"",de,Te,Ze,Me=l[2]&&fc(l),Ue=ut(l[3]),Ce=[];for(let O=0;O<Ue.length;O+=1)Ce[O]=dc(uc(l,Ue,O));function mt(O,He){return O[4].length>0?Uh:Nh}let Ge=mt(l),ce=Ge(l),qe=ut(l[5]),Re=[];for(let O=0;O<qe.length;O+=1)Re[O]=hc(rc(l,qe,O));let dt=ut(l[6]),We=[];for(let O=0;O<dt.length;O+=1)We[O]=mc(ac(l,dt,O));return{c(){s=r("div"),Me&&Me.c(),e=h(),n=r("div"),a=r("div"),i=r("input"),u=h(),c=r("div"),d=_(f),p=_(" ("),g=_(m),b=_(")"),k=h(),w=r("div");for(let O=0;O<Ce.length;O+=1)Ce[O].c();C=h(),E=r("button"),T=_(y),M=h(),R=r("div"),j=r("input"),P=h(),I=r("div"),D=_(q),A=_(" ("),Z=_(N),Q=_(")"),x=h(),z=r("div"),K=r("div"),S=r("input"),U=h(),F=r("button"),ie=_(J),ne=h(),ce.c(),$=h(),te=r("div"),ae=r("input"),ee=h(),G=r("div"),oe=_(pe),ge=_(" ("),ye=_(he),ze=_(")"),Pe=h(),we=r("div");for(let O=0;O<Re.length;O+=1)Re[O].c();Fe=h(),Je=r("button"),Le=_(je),Se=h(),fe=r("div"),_e=r("input"),Ie=h(),De=r("div"),ke=_(se),me=_(" ("),Ve=_(Ee),Be=_(")"),nt=h(),Ne=r("div");for(let O=0;O<We.length;O+=1)We[O].c();Qe=h(),Ye=r("button"),de=_(ve),o(i,"type","checkbox"),i.checked=!0,o(c,"class","collapse-title text-sm font-medium"),o(E,"type","button"),o(E,"class","btn btn-sm btn-ghost"),o(w,"class","collapse-content space-y-2"),o(a,"class","collapse collapse-arrow bg-base-200"),o(j,"type","checkbox"),o(I,"class","collapse-title text-sm font-medium"),o(S,"type","text"),o(S,"placeholder",B=l[8]("headers.name")),o(S,"class","input input-bordered input-sm flex-1"),o(F,"type","button"),o(F,"class","btn btn-sm btn-primary"),F.disabled=ue=!l[7].trim(),o(K,"class","flex gap-2"),o(z,"class","collapse-content space-y-2"),o(R,"class","collapse collapse-arrow bg-base-200"),o(ae,"type","checkbox"),o(G,"class","collapse-title text-sm font-medium"),o(Je,"type","button"),o(Je,"class","btn btn-sm btn-ghost"),o(we,"class","collapse-content space-y-2"),o(te,"class","collapse collapse-arrow bg-base-200"),o(_e,"type","checkbox"),o(De,"class","collapse-title text-sm font-medium"),o(Ye,"type","button"),o(Ye,"class","btn btn-sm btn-ghost"),o(Ne,"class","collapse-content space-y-2"),o(fe,"class","collapse collapse-arrow bg-base-200"),o(n,"class","space-y-4"),o(s,"class","form-control w-full")},m(O,He){L(O,s,He),Me&&Me.m(s,null),t(s,e),t(s,n),t(n,a),t(a,i),t(a,u),t(a,c),t(c,d),t(c,p),t(c,g),t(c,b),t(a,k),t(a,w);for(let X=0;X<Ce.length;X+=1)Ce[X]&&Ce[X].m(w,null);t(w,C),t(w,E),t(E,T),t(n,M),t(n,R),t(R,j),t(R,P),t(R,I),t(I,D),t(I,A),t(I,Z),t(I,Q),t(R,x),t(R,z),t(z,K),t(K,S),Y(S,l[7]),t(K,U),t(K,F),t(F,ie),t(z,ne),ce.m(z,null),t(n,$),t(n,te),t(te,ae),t(te,ee),t(te,G),t(G,oe),t(G,ge),t(G,ye),t(G,ze),t(te,Pe),t(te,we);for(let X=0;X<Re.length;X+=1)Re[X]&&Re[X].m(we,null);t(we,Fe),t(we,Je),t(Je,Le),t(n,Se),t(n,fe),t(fe,_e),t(fe,Ie),t(fe,De),t(De,ke),t(De,me),t(De,Ve),t(De,Be),t(fe,nt),t(fe,Ne);for(let X=0;X<We.length;X+=1)We[X]&&We[X].m(Ne,null);t(Ne,Qe),t(Ne,Ye),t(Ye,de),Te||(Ze=[V(E,"click",l[9]),V(S,"input",l[23]),V(S,"keydown",l[13]),V(F,"click",l[11]),V(Je,"click",l[14]),V(Ye,"click",l[16])],Te=!0)},p(O,He){if(O[2]?Me?Me.p(O,He):(Me=fc(O),Me.c(),Me.m(s,e)):Me&&(Me.d(1),Me=null),He[0]&256&&f!==(f=O[8]("body.add")+"")&&v(d,f),He[0]&8&&m!==(m=O[3].length+"")&&v(g,m),He[0]&1288){Ue=ut(O[3]);let X;for(X=0;X<Ue.length;X+=1){const ft=uc(O,Ue,X);Ce[X]?Ce[X].p(ft,He):(Ce[X]=dc(ft),Ce[X].c(),Ce[X].m(w,C))}for(;X<Ce.length;X+=1)Ce[X].d(1);Ce.length=Ue.length}if(He[0]&256&&y!==(y=O[8]("body.add")+"")&&v(T,y),He[0]&256&&q!==(q=O[8]("body.remove")+"")&&v(D,q),He[0]&16&&N!==(N=O[4].length+"")&&v(Z,N),He[0]&256&&B!==(B=O[8]("headers.name"))&&o(S,"placeholder",B),He[0]&128&&S.value!==O[7]&&Y(S,O[7]),He[0]&256&&J!==(J=O[8]("common.add")+"")&&v(ie,J),He[0]&128&&ue!==(ue=!O[7].trim())&&(F.disabled=ue),Ge===(Ge=mt(O))&&ce?ce.p(O,He):(ce.d(1),ce=Ge(O),ce&&(ce.c(),ce.m(z,null))),He[0]&256&&pe!==(pe=O[8]("body.replace")+"")&&v(oe,pe),He[0]&32&&he!==(he=O[5].length+"")&&v(ye,he),He[0]&33056){qe=ut(O[5]);let X;for(X=0;X<qe.length;X+=1){const ft=rc(O,qe,X);Re[X]?Re[X].p(ft,He):(Re[X]=hc(ft),Re[X].c(),Re[X].m(we,Fe))}for(;X<Re.length;X+=1)Re[X].d(1);Re.length=qe.length}if(He[0]&256&&je!==(je=O[8]("body.add")+"")&&v(Le,je),He[0]&256&&se!==(se=O[8]("body.default")+"")&&v(ke,se),He[0]&64&&Ee!==(Ee=O[6].length+"")&&v(Ve,Ee),He[0]&131392){dt=ut(O[6]);let X;for(X=0;X<dt.length;X+=1){const ft=ac(O,dt,X);We[X]?We[X].p(ft,He):(We[X]=mc(ft),We[X].c(),We[X].m(Ne,Qe))}for(;X<We.length;X+=1)We[X].d(1);We.length=dt.length}He[0]&256&&ve!==(ve=O[8]("body.add")+"")&&v(de,ve)},i:ot,o:ot,d(O){O&&H(s),Me&&Me.d(),Gt(Ce,O),ce.d(),Gt(Re,O),Gt(We,O),Te=!1,vt(Ze)}}}function Jh(l,s,e){let n;Dt(l,Rt,S=>e(8,n=S));let{value:a={}}=s,{label:i="Body"}=s,{showHelp:u=!0}=s,{showLabel:c=!0}=s,f=[],d=[],p="",m=[],g=[],b=!1;function k(){e(3,f=[...f,{key:"",value:""}]),e(19,b=!0)}function w(S){e(3,f=f.filter((B,U)=>U!==S))}function C(){const S=p.trim();S&&!d.includes(S)&&(e(4,d=[...d,S]),e(7,p=""),e(19,b=!0))}function E(S){e(4,d=d.filter((B,U)=>U!==S))}function y(S){S.key==="Enter"&&(S.preventDefault(),C())}function T(){e(5,m=[...m,{key:"",value:""}]),e(19,b=!0)}function M(S){e(5,m=m.filter((B,U)=>U!==S))}function R(){e(6,g=[...g,{key:"",value:""}]),e(19,b=!0)}function j(S){e(6,g=g.filter((B,U)=>U!==S))}function P(S,B){S[B].key=this.value,e(3,f),e(19,b),e(18,a),e(4,d),e(5,m),e(6,g)}function I(S,B){S[B].value=this.value,e(3,f),e(19,b),e(18,a),e(4,d),e(5,m),e(6,g)}const q=S=>w(S);function D(){p=this.value,e(7,p)}const A=S=>E(S);function N(S,B){S[B].key=this.value,e(5,m),e(19,b),e(18,a),e(3,f),e(4,d),e(6,g)}function Z(S,B){S[B].value=this.value,e(5,m),e(19,b),e(18,a),e(3,f),e(4,d),e(6,g)}const Q=S=>M(S);function x(S,B){S[B].key=this.value,e(6,g),e(19,b),e(18,a),e(3,f),e(4,d),e(5,m)}function z(S,B){S[B].value=this.value,e(6,g),e(19,b),e(18,a),e(3,f),e(4,d),e(5,m)}const K=S=>j(S);return l.$$set=S=>{"value"in S&&e(18,a=S.value),"label"in S&&e(0,i=S.label),"showHelp"in S&&e(1,u=S.showHelp),"showLabel"in S&&e(2,c=S.showLabel)},l.$$.update=()=>{if(l.$$.dirty[0]&786552){!b&&(a.add||a.remove||a.replace||a.default)&&(e(3,f=Object.entries(a.add||{}).map(([F,J])=>({key:F,value:typeof J=="string"?J:JSON.stringify(J)}))),e(4,d=[...a.remove||[]]),e(5,m=Object.entries(a.replace||{}).map(([F,J])=>({key:F,value:typeof J=="string"?J:JSON.stringify(J)}))),e(6,g=Object.entries(a.default||{}).map(([F,J])=>({key:F,value:typeof J=="string"?J:JSON.stringify(J)}))),e(19,b=!0));const S={};f.filter(F=>F.key.trim()).forEach(F=>{try{S[F.key]=JSON.parse(F.value)}catch{S[F.key]=F.value}}),e(18,a.add=Object.keys(S).length>0?S:void 0,a),e(18,a.remove=d.length>0?d:void 0,a);const B={};m.filter(F=>F.key.trim()).forEach(F=>{try{B[F.key]=JSON.parse(F.value)}catch{B[F.key]=F.value}}),e(18,a.replace=Object.keys(B).length>0?B:void 0,a);const U={};g.filter(F=>F.key.trim()).forEach(F=>{try{U[F.key]=JSON.parse(F.value)}catch{U[F.key]=F.value}}),e(18,a.default=Object.keys(U).length>0?U:void 0,a)}},[i,u,c,f,d,m,g,p,n,k,w,C,E,y,T,M,R,j,a,b,P,I,q,D,A,N,Z,Q,x,z,K]}class o0 extends Nt{constructor(s){super(),Ut(this,s,Jh,Vh,Vt,{value:18,label:0,showHelp:1,showLabel:2},null,[-1,-1])}}function gc(l,s,e){const n=l.slice();return n[31]=s[e],n[32]=s,n[33]=e,n}function _c(l,s,e){const n=l.slice();return n[31]=s[e],n[34]=s,n[33]=e,n}function bc(l,s,e){const n=l.slice();return n[31]=s[e],n[33]=e,n}function vc(l,s,e){const n=l.slice();return n[31]=s[e],n[36]=s,n[33]=e,n}function kc(l){let s,e,n,a,i=l[1]&&wc();return{c(){s=r("div"),e=r("span"),n=_(l[0]),a=h(),i&&i.c(),o(e,"class","label-text font-semibold"),o(s,"class","label")},m(u,c){L(u,s,c),t(s,e),t(e,n),t(s,a),i&&i.m(s,null)},p(u,c){c[0]&1&&v(n,u[0]),u[1]?i||(i=wc(),i.c(),i.m(s,null)):i&&(i.d(1),i=null)},d(u){u&&H(s),i&&i.d()}}}function wc(l){let s,e,n;return{c(){s=r("span"),e=_("Support dynamic expressions: "),n=r("code"),n.textContent="{{ expression }}",o(n,"class","text-xs"),o(s,"class","label-text-alt text-xs")},m(a,i){L(a,s,i),t(s,e),t(s,n)},d(a){a&&H(s)}}}function yc(l){let s,e,n,a,i,u,c,f,d,p;function m(){l[20].call(e,l[36],l[33])}function g(){l[21].call(i,l[36],l[33])}function b(){return l[22](l[33])}return{c(){s=r("div"),e=r("input"),a=h(),i=r("input"),c=h(),f=r("button"),f.textContent="\u2715",o(e,"type","text"),o(e,"placeholder",n=l[8]("query.namePlaceholder")),o(e,"class","input input-bordered input-sm flex-1"),o(i,"type","text"),o(i,"placeholder",u=l[8]("query.valuePlaceholder")),o(i,"class","input input-bordered input-sm flex-1"),o(f,"type","button"),o(f,"class","btn btn-sm btn-error btn-square"),o(s,"class","flex gap-2")},m(k,w){L(k,s,w),t(s,e),Y(e,l[31].key),t(s,a),t(s,i),Y(i,l[31].value),t(s,c),t(s,f),d||(p=[V(e,"input",m),V(i,"input",g),V(f,"click",b)],d=!0)},p(k,w){l=k,w[0]&256&&n!==(n=l[8]("query.namePlaceholder"))&&o(e,"placeholder",n),w[0]&8&&e.value!==l[31].key&&Y(e,l[31].key),w[0]&256&&u!==(u=l[8]("query.valuePlaceholder"))&&o(i,"placeholder",u),w[0]&8&&i.value!==l[31].value&&Y(i,l[31].value)},d(k){k&&H(s),d=!1,vt(p)}}}function Wh(l){let s,e=l[8]("query.empty")+"",n;return{c(){s=r("p"),n=_(e),o(s,"class","text-xs text-gray-500")},m(a,i){L(a,s,i),t(s,n)},p(a,i){i[0]&256&&e!==(e=a[8]("query.empty")+"")&&v(n,e)},d(a){a&&H(s)}}}function Gh(l){let s,e=ut(l[4]),n=[];for(let a=0;a<e.length;a+=1)n[a]=Cc(bc(l,e,a));return{c(){s=r("div");for(let a=0;a<n.length;a+=1)n[a].c();o(s,"class","flex flex-wrap gap-2 mt-2")},m(a,i){L(a,s,i);for(let u=0;u<n.length;u+=1)n[u]&&n[u].m(s,null)},p(a,i){if(i[0]&4112){e=ut(a[4]);let u;for(u=0;u<e.length;u+=1){const c=bc(a,e,u);n[u]?n[u].p(c,i):(n[u]=Cc(c),n[u].c(),n[u].m(s,null))}for(;u<n.length;u+=1)n[u].d(1);n.length=e.length}},d(a){a&&H(s),Gt(n,a)}}}function Cc(l){let s,e=l[31]+"",n,a,i,u,c,f;function d(){return l[24](l[33])}return{c(){s=r("div"),n=_(e),a=h(),i=r("button"),i.textContent="\u2715",u=h(),o(i,"type","button"),o(i,"class","btn btn-ghost btn-xs btn-circle"),o(s,"class","badge badge-lg gap-2")},m(p,m){L(p,s,m),t(s,n),t(s,a),t(s,i),t(s,u),c||(f=V(i,"click",d),c=!0)},p(p,m){l=p,m[0]&16&&e!==(e=l[31]+"")&&v(n,e)},d(p){p&&H(s),c=!1,f()}}}function Ec(l){let s,e,n,a,i,u,c,f,d,p;function m(){l[25].call(e,l[34],l[33])}function g(){l[26].call(i,l[34],l[33])}function b(){return l[27](l[33])}return{c(){s=r("div"),e=r("input"),a=h(),i=r("input"),c=h(),f=r("button"),f.textContent="\u2715",o(e,"type","text"),o(e,"placeholder",n=l[8]("query.namePlaceholder")),o(e,"class","input input-bordered input-sm flex-1"),o(i,"type","text"),o(i,"placeholder",u=l[8]("query.valuePlaceholder")),o(i,"class","input input-bordered input-sm flex-1"),o(f,"type","button"),o(f,"class","btn btn-sm btn-error btn-square"),o(s,"class","flex gap-2")},m(k,w){L(k,s,w),t(s,e),Y(e,l[31].key),t(s,a),t(s,i),Y(i,l[31].value),t(s,c),t(s,f),d||(p=[V(e,"input",m),V(i,"input",g),V(f,"click",b)],d=!0)},p(k,w){l=k,w[0]&256&&n!==(n=l[8]("query.namePlaceholder"))&&o(e,"placeholder",n),w[0]&32&&e.value!==l[31].key&&Y(e,l[31].key),w[0]&256&&u!==(u=l[8]("query.valuePlaceholder"))&&o(i,"placeholder",u),w[0]&32&&i.value!==l[31].value&&Y(i,l[31].value)},d(k){k&&H(s),d=!1,vt(p)}}}function Tc(l){let s,e,n,a,i,u,c,f,d,p;function m(){l[28].call(e,l[32],l[33])}function g(){l[29].call(i,l[32],l[33])}function b(){return l[30](l[33])}return{c(){s=r("div"),e=r("input"),a=h(),i=r("input"),c=h(),f=r("button"),f.textContent="\u2715",o(e,"type","text"),o(e,"placeholder",n=l[8]("query.namePlaceholder")),o(e,"class","input input-bordered input-sm flex-1"),o(i,"type","text"),o(i,"placeholder",u=l[8]("query.valuePlaceholder")),o(i,"class","input input-bordered input-sm flex-1"),o(f,"type","button"),o(f,"class","btn btn-sm btn-error btn-square"),o(s,"class","flex gap-2")},m(k,w){L(k,s,w),t(s,e),Y(e,l[31].key),t(s,a),t(s,i),Y(i,l[31].value),t(s,c),t(s,f),d||(p=[V(e,"input",m),V(i,"input",g),V(f,"click",b)],d=!0)},p(k,w){l=k,w[0]&256&&n!==(n=l[8]("query.namePlaceholder"))&&o(e,"placeholder",n),w[0]&64&&e.value!==l[31].key&&Y(e,l[31].key),w[0]&256&&u!==(u=l[8]("query.valuePlaceholder"))&&o(i,"placeholder",u),w[0]&64&&i.value!==l[31].value&&Y(i,l[31].value)},d(k){k&&H(s),d=!1,vt(p)}}}function Kh(l){let s,e,n,a,i,u,c,f=l[8]("query.add")+"",d,p,m=l[3].length+"",g,b,k,w,C,E,y=l[8]("query.add")+"",T,M,R,j,P,I,q=l[8]("query.remove")+"",D,A,N=l[4].length+"",Z,Q,x,z,K,S,B,U,F,J=l[8]("common.add")+"",ie,ue,ne,$,te,ae,ee,G,pe=l[8]("query.replace")+"",oe,ge,he=l[5].length+"",ye,ze,Pe,we,Fe,Je,je=l[8]("query.add")+"",Le,Se,fe,_e,Ie,De,se=l[8]("query.default")+"",ke,me,Ee=l[6].length+"",Ve,Be,nt,Ne,Qe,Ye,ve=l[8]("query.add")+"",de,Te,Ze,Me=l[2]&&kc(l),Ue=ut(l[3]),Ce=[];for(let O=0;O<Ue.length;O+=1)Ce[O]=yc(vc(l,Ue,O));function mt(O,He){return O[4].length>0?Gh:Wh}let Ge=mt(l),ce=Ge(l),qe=ut(l[5]),Re=[];for(let O=0;O<qe.length;O+=1)Re[O]=Ec(_c(l,qe,O));let dt=ut(l[6]),We=[];for(let O=0;O<dt.length;O+=1)We[O]=Tc(gc(l,dt,O));return{c(){s=r("div"),Me&&Me.c(),e=h(),n=r("div"),a=r("div"),i=r("input"),u=h(),c=r("div"),d=_(f),p=_(" ("),g=_(m),b=_(")"),k=h(),w=r("div");for(let O=0;O<Ce.length;O+=1)Ce[O].c();C=h(),E=r("button"),T=_(y),M=h(),R=r("div"),j=r("input"),P=h(),I=r("div"),D=_(q),A=_(" ("),Z=_(N),Q=_(")"),x=h(),z=r("div"),K=r("div"),S=r("input"),U=h(),F=r("button"),ie=_(J),ne=h(),ce.c(),$=h(),te=r("div"),ae=r("input"),ee=h(),G=r("div"),oe=_(pe),ge=_(" ("),ye=_(he),ze=_(")"),Pe=h(),we=r("div");for(let O=0;O<Re.length;O+=1)Re[O].c();Fe=h(),Je=r("button"),Le=_(je),Se=h(),fe=r("div"),_e=r("input"),Ie=h(),De=r("div"),ke=_(se),me=_(" ("),Ve=_(Ee),Be=_(")"),nt=h(),Ne=r("div");for(let O=0;O<We.length;O+=1)We[O].c();Qe=h(),Ye=r("button"),de=_(ve),o(i,"type","checkbox"),i.checked=!0,o(c,"class","collapse-title text-sm font-medium"),o(E,"type","button"),o(E,"class","btn btn-sm btn-ghost"),o(w,"class","collapse-content space-y-2"),o(a,"class","collapse collapse-arrow bg-base-200"),o(j,"type","checkbox"),o(I,"class","collapse-title text-sm font-medium"),o(S,"type","text"),o(S,"placeholder",B=l[8]("query.namePlaceholder")),o(S,"class","input input-bordered input-sm flex-1"),o(F,"type","button"),o(F,"class","btn btn-sm btn-primary"),F.disabled=ue=!l[7].trim(),o(K,"class","flex gap-2"),o(z,"class","collapse-content space-y-2"),o(R,"class","collapse collapse-arrow bg-base-200"),o(ae,"type","checkbox"),o(G,"class","collapse-title text-sm font-medium"),o(Je,"type","button"),o(Je,"class","btn btn-sm btn-ghost"),o(we,"class","collapse-content space-y-2"),o(te,"class","collapse collapse-arrow bg-base-200"),o(_e,"type","checkbox"),o(De,"class","collapse-title text-sm font-medium"),o(Ye,"type","button"),o(Ye,"class","btn btn-sm btn-ghost"),o(Ne,"class","collapse-content space-y-2"),o(fe,"class","collapse collapse-arrow bg-base-200"),o(n,"class","space-y-4"),o(s,"class","form-control w-full")},m(O,He){L(O,s,He),Me&&Me.m(s,null),t(s,e),t(s,n),t(n,a),t(a,i),t(a,u),t(a,c),t(c,d),t(c,p),t(c,g),t(c,b),t(a,k),t(a,w);for(let X=0;X<Ce.length;X+=1)Ce[X]&&Ce[X].m(w,null);t(w,C),t(w,E),t(E,T),t(n,M),t(n,R),t(R,j),t(R,P),t(R,I),t(I,D),t(I,A),t(I,Z),t(I,Q),t(R,x),t(R,z),t(z,K),t(K,S),Y(S,l[7]),t(K,U),t(K,F),t(F,ie),t(z,ne),ce.m(z,null),t(n,$),t(n,te),t(te,ae),t(te,ee),t(te,G),t(G,oe),t(G,ge),t(G,ye),t(G,ze),t(te,Pe),t(te,we);for(let X=0;X<Re.length;X+=1)Re[X]&&Re[X].m(we,null);t(we,Fe),t(we,Je),t(Je,Le),t(n,Se),t(n,fe),t(fe,_e),t(fe,Ie),t(fe,De),t(De,ke),t(De,me),t(De,Ve),t(De,Be),t(fe,nt),t(fe,Ne);for(let X=0;X<We.length;X+=1)We[X]&&We[X].m(Ne,null);t(Ne,Qe),t(Ne,Ye),t(Ye,de),Te||(Ze=[V(E,"click",l[9]),V(S,"input",l[23]),V(S,"keydown",l[13]),V(F,"click",l[11]),V(Je,"click",l[14]),V(Ye,"click",l[16])],Te=!0)},p(O,He){if(O[2]?Me?Me.p(O,He):(Me=kc(O),Me.c(),Me.m(s,e)):Me&&(Me.d(1),Me=null),He[0]&256&&f!==(f=O[8]("query.add")+"")&&v(d,f),He[0]&8&&m!==(m=O[3].length+"")&&v(g,m),He[0]&1288){Ue=ut(O[3]);let X;for(X=0;X<Ue.length;X+=1){const ft=vc(O,Ue,X);Ce[X]?Ce[X].p(ft,He):(Ce[X]=yc(ft),Ce[X].c(),Ce[X].m(w,C))}for(;X<Ce.length;X+=1)Ce[X].d(1);Ce.length=Ue.length}if(He[0]&256&&y!==(y=O[8]("query.add")+"")&&v(T,y),He[0]&256&&q!==(q=O[8]("query.remove")+"")&&v(D,q),He[0]&16&&N!==(N=O[4].length+"")&&v(Z,N),He[0]&256&&B!==(B=O[8]("query.namePlaceholder"))&&o(S,"placeholder",B),He[0]&128&&S.value!==O[7]&&Y(S,O[7]),He[0]&256&&J!==(J=O[8]("common.add")+"")&&v(ie,J),He[0]&128&&ue!==(ue=!O[7].trim())&&(F.disabled=ue),Ge===(Ge=mt(O))&&ce?ce.p(O,He):(ce.d(1),ce=Ge(O),ce&&(ce.c(),ce.m(z,null))),He[0]&256&&pe!==(pe=O[8]("query.replace")+"")&&v(oe,pe),He[0]&32&&he!==(he=O[5].length+"")&&v(ye,he),He[0]&33056){qe=ut(O[5]);let X;for(X=0;X<qe.length;X+=1){const ft=_c(O,qe,X);Re[X]?Re[X].p(ft,He):(Re[X]=Ec(ft),Re[X].c(),Re[X].m(we,Fe))}for(;X<Re.length;X+=1)Re[X].d(1);Re.length=qe.length}if(He[0]&256&&je!==(je=O[8]("query.add")+"")&&v(Le,je),He[0]&256&&se!==(se=O[8]("query.default")+"")&&v(ke,se),He[0]&64&&Ee!==(Ee=O[6].length+"")&&v(Ve,Ee),He[0]&131392){dt=ut(O[6]);let X;for(X=0;X<dt.length;X+=1){const ft=gc(O,dt,X);We[X]?We[X].p(ft,He):(We[X]=Tc(ft),We[X].c(),We[X].m(Ne,Qe))}for(;X<We.length;X+=1)We[X].d(1);We.length=dt.length}He[0]&256&&ve!==(ve=O[8]("query.add")+"")&&v(de,ve)},i:ot,o:ot,d(O){O&&H(s),Me&&Me.d(),Gt(Ce,O),ce.d(),Gt(Re,O),Gt(We,O),Te=!1,vt(Ze)}}}function Yh(l,s,e){let n;Dt(l,Rt,S=>e(8,n=S));let{value:a={}}=s,{label:i="Query Parameters"}=s,{showHelp:u=!0}=s,{showLabel:c=!0}=s,f=[],d=[],p="",m=[],g=[],b=!1;function k(){e(3,f=[...f,{key:"",value:""}]),e(19,b=!0)}function w(S){e(3,f=f.filter((B,U)=>U!==S))}function C(){const S=p.trim();S&&!d.includes(S)&&(e(4,d=[...d,S]),e(7,p=""),e(19,b=!0))}function E(S){e(4,d=d.filter((B,U)=>U!==S))}function y(S){S.key==="Enter"&&(S.preventDefault(),C())}function T(){e(5,m=[...m,{key:"",value:""}]),e(19,b=!0)}function M(S){e(5,m=m.filter((B,U)=>U!==S))}function R(){e(6,g=[...g,{key:"",value:""}]),e(19,b=!0)}function j(S){e(6,g=g.filter((B,U)=>U!==S))}function P(S,B){S[B].key=this.value,e(3,f),e(19,b),e(18,a),e(4,d),e(5,m),e(6,g)}function I(S,B){S[B].value=this.value,e(3,f),e(19,b),e(18,a),e(4,d),e(5,m),e(6,g)}const q=S=>w(S);function D(){p=this.value,e(7,p)}const A=S=>E(S);function N(S,B){S[B].key=this.value,e(5,m),e(19,b),e(18,a),e(3,f),e(4,d),e(6,g)}function Z(S,B){S[B].value=this.value,e(5,m),e(19,b),e(18,a),e(3,f),e(4,d),e(6,g)}const Q=S=>M(S);function x(S,B){S[B].key=this.value,e(6,g),e(19,b),e(18,a),e(3,f),e(4,d),e(5,m)}function z(S,B){S[B].value=this.value,e(6,g),e(19,b),e(18,a),e(3,f),e(4,d),e(5,m)}const K=S=>j(S);return l.$$set=S=>{"value"in S&&e(18,a=S.value),"label"in S&&e(0,i=S.label),"showHelp"in S&&e(1,u=S.showHelp),"showLabel"in S&&e(2,c=S.showLabel)},l.$$.update=()=>{if(l.$$.dirty[0]&786552){!b&&(a.add||a.remove||a.replace||a.default)&&(e(3,f=Object.entries(a.add||{}).map(([F,J])=>({key:F,value:String(J)}))),e(4,d=[...a.remove||[]]),e(5,m=Object.entries(a.replace||{}).map(([F,J])=>({key:F,value:String(J)}))),e(6,g=Object.entries(a.default||{}).map(([F,J])=>({key:F,value:String(J)}))),e(19,b=!0));const S={};f.filter(F=>F.key.trim()).forEach(F=>{S[F.key]=F.value}),e(18,a.add=Object.keys(S).length>0?S:void 0,a),e(18,a.remove=d.length>0?d:void 0,a);const B={};m.filter(F=>F.key.trim()).forEach(F=>{B[F.key]=F.value}),e(18,a.replace=Object.keys(B).length>0?B:void 0,a);const U={};g.filter(F=>F.key.trim()).forEach(F=>{U[F.key]=F.value}),e(18,a.default=Object.keys(U).length>0?U:void 0,a)}},[i,u,c,f,d,m,g,p,n,k,w,C,E,y,T,M,R,j,a,b,P,I,q,D,A,N,Z,Q,x,z,K]}class n0 extends Nt{constructor(s){super(),Ut(this,s,Yh,Kh,Vt,{value:18,label:0,showHelp:1,showLabel:2},null,[-1,-1])}}function Sc(l){let s,e,n=l[7]("upstream.title",{values:{index:l[1]+1}})+"",a,i,u,c,f,d,p,m,g,b,k,w,C;return{c(){s=r("div"),e=r("h3"),a=_(n),i=h(),u=r("div"),c=r("button"),f=re("svg"),d=re("path"),m=h(),g=r("button"),b=_("\u2715"),o(e,"class","font-semibold"),o(d,"stroke-linecap","round"),o(d,"stroke-linejoin","round"),o(d,"stroke-width","2"),o(d,"d","M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"),o(f,"xmlns","http://www.w3.org/2000/svg"),o(f,"class","h-4 w-4"),o(f,"fill","none"),o(f,"viewBox","0 0 24 24"),o(f,"stroke","currentColor"),o(c,"type","button"),o(c,"class","btn btn-sm btn-outline btn-square"),o(c,"title",p=l[7]("routeCard.duplicate")),o(g,"type","button"),o(g,"class","btn btn-sm btn-error btn-square"),o(g,"title",k=l[7]("upstream.remove")),o(u,"class","flex gap-2"),o(s,"class","flex justify-between items-center mb-4")},m(E,y){L(E,s,y),t(s,e),t(e,a),t(s,i),t(s,u),t(u,c),t(c,f),t(f,d),t(u,m),t(u,g),t(g,b),w||(C=[V(c,"click",function(){sa(l[3])&&l[3].apply(this,arguments)}),V(g,"click",function(){sa(l[2])&&l[2].apply(this,arguments)})],w=!0)},p(E,y){l=E,y&130&&n!==(n=l[7]("upstream.title",{values:{index:l[1]+1}})+"")&&v(a,n),y&128&&p!==(p=l[7]("routeCard.duplicate"))&&o(c,"title",p),y&128&&k!==(k=l[7]("upstream.remove"))&&o(g,"title",k)},d(E){E&&H(s),w=!1,vt(C)}}}function Mc(l){let s,e,n=l[6].find(Hc)?.message+"",a,i;return{c(){s=r("label"),e=r("span"),a=_(n),o(e,"class","label-text-alt text-error"),o(s,"class","label"),o(s,"for",i="upstream-target-"+l[1])},m(u,c){L(u,s,c),t(s,e),t(e,a)},p(u,c){c&64&&n!==(n=u[6].find(Hc)?.message+"")&&v(a,n),c&2&&i!==(i="upstream-target-"+u[1])&&o(s,"for",i)},d(u){u&&H(s)}}}function Qh(l){let s,e,n,a,i,u,c,f=l[7]("upstream.targetUrl")+"",d,p,m,g,b,k,w,C,E,y=l[6].some(Rc),T,M,R,j,P,I=l[7]("upstream.weight")+"",q,D,A,N=l[7]("upstream.weightHelp")+"",Z,Q,x,z,K,S,B,U,F,J,ie,ue,ne,$,te,ae,ee,G,pe,oe,ge=l[7]("upstream.transformerHelp")+"",he,ye,ze,Pe,we,Fe,Je=l[7]("headers.title")+"",je,Le,Se,fe,_e,Ie,De,se,ke,me,Ee=l[7]("body.title")+"",Ve,Be,nt,Ne,Qe,Ye,ve,de,Te,Ze,Me=l[7]("query.title")+"",Ue,Ce,mt,Ge,ce,qe,Re,dt,We=l[4]&&Sc(l),O=y&&Mc(l);function He(Oe){l[11](Oe)}let X={label:l[7]("upstream.transformer")};l[5]!==void 0&&(X.plugin=l[5]),ee=new l0({props:X}),Sl.push(()=>Ml(ee,"plugin",He));function ft(Oe){l[12](Oe)}let Ht={label:l[7]("headers.title"),showHelp:!1,showLabel:!1};l[0].headers!==void 0&&(Ht.value=l[0].headers),fe=new s0({props:Ht}),Sl.push(()=>Ml(fe,"value",ft));function Ke(Oe){l[13](Oe)}let _t={label:l[7]("body.title"),showHelp:!1,showLabel:!1};l[0].body!==void 0&&(_t.value=l[0].body),Ne=new o0({props:_t}),Sl.push(()=>Ml(Ne,"value",Ke));function tt(Oe){l[14](Oe)}let it={label:l[7]("query.title"),showHelp:!1,showLabel:!1};return l[0].query!==void 0&&(it.value=l[0].query),Ge=new n0({props:it}),Sl.push(()=>Ml(Ge,"value",tt)),{c(){s=r("div"),e=r("div"),We&&We.c(),n=h(),a=r("div"),i=r("div"),u=r("label"),c=r("span"),d=_(f),p=h(),m=r("span"),m.textContent="*",b=h(),k=r("input"),E=h(),O&&O.c(),T=h(),M=r("div"),R=r("div"),j=r("label"),P=r("span"),q=_(I),D=h(),A=r("span"),Z=_(N),x=h(),z=r("input"),S=h(),B=r("div"),U=r("label"),F=r("span"),F.textContent="Priority",J=h(),ie=r("span"),ie.textContent="Failover order",ne=h(),$=r("input"),ae=h(),Et(ee.$$.fragment),pe=h(),oe=r("div"),he=_(ge),ye=h(),ze=r("div"),Pe=r("input"),we=h(),Fe=r("div"),je=_(Je),Le=h(),Se=r("div"),Et(fe.$$.fragment),Ie=h(),De=r("div"),se=r("input"),ke=h(),me=r("div"),Ve=_(Ee),Be=h(),nt=r("div"),Et(Ne.$$.fragment),Ye=h(),ve=r("div"),de=r("input"),Te=h(),Ze=r("div"),Ue=_(Me),Ce=h(),mt=r("div"),Et(Ge.$$.fragment),o(m,"class","text-error"),o(c,"class","label-text font-semibold"),o(u,"class","label"),o(u,"for",g="upstream-target-"+l[1]),o(k,"id",w="upstream-target-"+l[1]),o(k,"type","url"),o(k,"placeholder",C=l[7]("upstream.targetPlaceholder")),o(k,"class","input input-bordered"),k.required=!0,le(k,"input-error",l[6].some(qc)),o(i,"class","form-control"),o(P,"class","label-text"),o(A,"class","label-text-alt text-xs"),o(j,"class","label"),o(j,"for",Q="upstream-weight-"+l[1]),o(z,"id",K="upstream-weight-"+l[1]),o(z,"type","number"),o(z,"placeholder","100"),o(z,"class","input input-bordered"),o(z,"min","1"),o(R,"class","form-control"),o(F,"class","label-text"),o(ie,"class","label-text-alt text-xs"),o(U,"class","label"),o(U,"for",ue="upstream-priority-"+l[1]),o($,"id",te="upstream-priority-"+l[1]),o($,"type","number"),o($,"placeholder","1"),o($,"class","input input-bordered"),o($,"min","0"),o(B,"class","form-control"),o(M,"class","grid grid-cols-2 gap-4"),o(oe,"class","divider text-sm font-semibold"),o(Pe,"type","checkbox"),o(Fe,"class","collapse-title text-sm font-medium"),o(Se,"class","collapse-content"),o(ze,"class","collapse collapse-arrow bg-base-200"),o(se,"type","checkbox"),o(me,"class","collapse-title text-sm font-medium"),o(nt,"class","collapse-content"),o(De,"class","collapse collapse-arrow bg-base-200"),o(de,"type","checkbox"),o(Ze,"class","collapse-title text-sm font-medium"),o(mt,"class","collapse-content"),o(ve,"class","collapse collapse-arrow bg-base-200"),o(a,"class","grid grid-cols-1 gap-4"),o(e,"class","card-body p-4"),o(s,"class","card bg-base-100 shadow-sm border border-base-300")},m(Oe,Xe){L(Oe,s,Xe),t(s,e),We&&We.m(e,null),t(e,n),t(e,a),t(a,i),t(i,u),t(u,c),t(c,d),t(c,p),t(c,m),t(i,b),t(i,k),Y(k,l[0].target),t(i,E),O&&O.m(i,null),t(a,T),t(a,M),t(M,R),t(R,j),t(j,P),t(P,q),t(j,D),t(j,A),t(A,Z),t(R,x),t(R,z),Y(z,l[0].weight),t(M,S),t(M,B),t(B,U),t(U,F),t(U,J),t(U,ie),t(B,ne),t(B,$),Y($,l[0].priority),t(a,ae),Ct(ee,a,null),t(a,pe),t(a,oe),t(oe,he),t(a,ye),t(a,ze),t(ze,Pe),t(ze,we),t(ze,Fe),t(Fe,je),t(ze,Le),t(ze,Se),Ct(fe,Se,null),t(a,Ie),t(a,De),t(De,se),t(De,ke),t(De,me),t(me,Ve),t(De,Be),t(De,nt),Ct(Ne,nt,null),t(a,Ye),t(a,ve),t(ve,de),t(ve,Te),t(ve,Ze),t(Ze,Ue),t(ve,Ce),t(ve,mt),Ct(Ge,mt,null),qe=!0,Re||(dt=[V(k,"input",l[8]),V(z,"input",l[9]),V($,"input",l[10])],Re=!0)},p(Oe,[Xe]){Oe[4]?We?We.p(Oe,Xe):(We=Sc(Oe),We.c(),We.m(e,n)):We&&(We.d(1),We=null),(!qe||Xe&128)&&f!==(f=Oe[7]("upstream.targetUrl")+"")&&v(d,f),(!qe||Xe&2&&g!==(g="upstream-target-"+Oe[1]))&&o(u,"for",g),(!qe||Xe&2&&w!==(w="upstream-target-"+Oe[1]))&&o(k,"id",w),(!qe||Xe&128&&C!==(C=Oe[7]("upstream.targetPlaceholder")))&&o(k,"placeholder",C),Xe&1&&k.value!==Oe[0].target&&Y(k,Oe[0].target),(!qe||Xe&64)&&le(k,"input-error",Oe[6].some(qc)),Xe&64&&(y=Oe[6].some(Rc)),y?O?O.p(Oe,Xe):(O=Mc(Oe),O.c(),O.m(i,null)):O&&(O.d(1),O=null),(!qe||Xe&128)&&I!==(I=Oe[7]("upstream.weight")+"")&&v(q,I),(!qe||Xe&128)&&N!==(N=Oe[7]("upstream.weightHelp")+"")&&v(Z,N),(!qe||Xe&2&&Q!==(Q="upstream-weight-"+Oe[1]))&&o(j,"for",Q),(!qe||Xe&2&&K!==(K="upstream-weight-"+Oe[1]))&&o(z,"id",K),Xe&1&&Mt(z.value)!==Oe[0].weight&&Y(z,Oe[0].weight),(!qe||Xe&2&&ue!==(ue="upstream-priority-"+Oe[1]))&&o(U,"for",ue),(!qe||Xe&2&&te!==(te="upstream-priority-"+Oe[1]))&&o($,"id",te),Xe&1&&Mt($.value)!==Oe[0].priority&&Y($,Oe[0].priority);const It={};Xe&128&&(It.label=Oe[7]("upstream.transformer")),!G&&Xe&32&&(G=!0,It.plugin=Oe[5],Rl(()=>G=!1)),ee.$set(It),(!qe||Xe&128)&&ge!==(ge=Oe[7]("upstream.transformerHelp")+"")&&v(he,ge),(!qe||Xe&128)&&Je!==(Je=Oe[7]("headers.title")+"")&&v(je,Je);const rt={};Xe&128&&(rt.label=Oe[7]("headers.title")),!_e&&Xe&1&&(_e=!0,rt.value=Oe[0].headers,Rl(()=>_e=!1)),fe.$set(rt),(!qe||Xe&128)&&Ee!==(Ee=Oe[7]("body.title")+"")&&v(Ve,Ee);const gt={};Xe&128&&(gt.label=Oe[7]("body.title")),!Qe&&Xe&1&&(Qe=!0,gt.value=Oe[0].body,Rl(()=>Qe=!1)),Ne.$set(gt),(!qe||Xe&128)&&Me!==(Me=Oe[7]("query.title")+"")&&v(Ue,Me);const wt={};Xe&128&&(wt.label=Oe[7]("query.title")),!ce&&Xe&1&&(ce=!0,wt.value=Oe[0].query,Rl(()=>ce=!1)),Ge.$set(wt)},i(Oe){qe||(et(ee.$$.fragment,Oe),et(fe.$$.fragment,Oe),et(Ne.$$.fragment,Oe),et(Ge.$$.fragment,Oe),qe=!0)},o(Oe){st(ee.$$.fragment,Oe),st(fe.$$.fragment,Oe),st(Ne.$$.fragment,Oe),st(Ge.$$.fragment,Oe),qe=!1},d(Oe){Oe&&H(s),We&&We.d(),O&&O.d(),yt(ee),yt(fe),yt(Ne),yt(Ge),Re=!1,vt(dt)}}}const Rc=l=>l.field.includes("target"),qc=l=>l.field.includes("target"),Hc=l=>l.field.includes("target");function Zh(l,s,e){let n,a;Dt(l,Rt,y=>e(7,a=y));let{upstream:i}=s,{index:u}=s,{onRemove:c}=s,{onDuplicate:f}=s,{showHeader:d=!0}=s,p=i.plugins?.[0]||null;function m(){i.target=this.value,e(0,i),e(5,p)}function g(){i.weight=Mt(this.value),e(0,i),e(5,p)}function b(){i.priority=Mt(this.value),e(0,i),e(5,p)}function k(y){p=y,e(5,p)}function w(y){l.$$.not_equal(i.headers,y)&&(i.headers=y,e(0,i),e(5,p))}function C(y){l.$$.not_equal(i.body,y)&&(i.body=y,e(0,i),e(5,p))}function E(y){l.$$.not_equal(i.query,y)&&(i.query=y,e(0,i),e(5,p))}return l.$$set=y=>{"upstream"in y&&e(0,i=y.upstream),"index"in y&&e(1,u=y.index),"onRemove"in y&&e(2,c=y.onRemove),"onDuplicate"in y&&e(3,f=y.onDuplicate),"showHeader"in y&&e(4,d=y.showHeader)},l.$$.update=()=>{l.$$.dirty&1&&(e(0,i.headers=i.headers||{add:{},remove:[],default:{}},i),e(0,i.body=i.body||{add:{},remove:[],replace:{},default:{}},i),e(0,i.query=i.query||{add:{},remove:[],replace:{},default:{}},i)),l.$$.dirty&32&&e(0,i.plugins=p?[p]:void 0,i),l.$$.dirty&3&&e(6,n=Du(i,u))},[i,u,c,f,d,p,n,a,m,g,b,k,w,C,E]}class Xh extends Nt{constructor(s){super(),Ut(this,s,Zh,Qh,Vt,{upstream:0,index:1,onRemove:2,onDuplicate:3,showHeader:4})}}function Lc(l,s,e){const n=l.slice();return n[22]=s[e].u,n[23]=s[e].i,n}function Pc(l){let s,e,n=l[0].find(zc)?.message+"",a;return{c(){s=r("div"),e=r("span"),a=_(n),o(s,"class","alert alert-error")},m(i,u){L(i,s,u),t(s,e),t(e,a)},p(i,u){u&1&&n!==(n=i[0].find(zc)?.message+"")&&v(a,n)},d(i){i&&H(s)}}}function jc(l){let s;return{c(){s=r("span"),s.textContent="Transformer",o(s,"class","badge badge-sm badge-info mt-1")},m(e,n){L(e,s,n)},d(e){e&&H(s)}}}function Dc(l,s){let e,n,a=(s[22].priority||1)+"",i,u,c,f,d,p=s[22].target+"",m,g,b,k,w,C=(s[22].weight||100)+"",E,y,T,M,R,j,P,I,q,D,A,N,Z,Q,x,z,K,S,B,U,F=s[22].plugins&&s[22].plugins.length>0&&jc();function J(){return s[18](s[23])}function ie(){return s[19](s[23])}function ue(){return s[20](s[23])}return{key:l,first:null,c(){e=r("tr"),n=r("td"),i=_(a),u=h(),c=r("td"),f=r("div"),d=r("div"),m=_(p),b=h(),F&&F.c(),k=h(),w=r("td"),E=_(C),y=h(),T=r("td"),M=r("div"),R=r("button"),j=re("svg"),P=re("path"),q=h(),D=r("button"),A=re("svg"),N=re("path"),Q=h(),x=r("button"),z=re("svg"),K=re("path"),o(d,"class","font-bold truncate max-w-xs"),o(d,"title",g=s[22].target),o(f,"class","flex flex-col"),o(P,"stroke-linecap","round"),o(P,"stroke-linejoin","round"),o(P,"stroke-width","2"),o(P,"d","M15.232 5.232l3.536 3.536m-2.036-5.036a2.5 2.5 0 113.536 3.536L6.5 21.036H3v-3.572L16.732 3.732z"),o(j,"xmlns","http://www.w3.org/2000/svg"),o(j,"class","h-4 w-4"),o(j,"fill","none"),o(j,"viewBox","0 0 24 24"),o(j,"stroke","currentColor"),o(R,"type","button"),o(R,"class","btn btn-square btn-xs"),o(R,"title",I=s[8]("common.edit")),o(N,"stroke-linecap","round"),o(N,"stroke-linejoin","round"),o(N,"stroke-width","2"),o(N,"d","M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"),o(A,"xmlns","http://www.w3.org/2000/svg"),o(A,"class","h-4 w-4"),o(A,"fill","none"),o(A,"viewBox","0 0 24 24"),o(A,"stroke","currentColor"),o(D,"type","button"),o(D,"class","btn btn-square btn-xs"),o(D,"title",Z=s[8]("routeCard.duplicate")),o(K,"stroke-linecap","round"),o(K,"stroke-linejoin","round"),o(K,"stroke-width","2"),o(K,"d","M6 18L18 6M6 6l12 12"),o(z,"xmlns","http://www.w3.org/2000/svg"),o(z,"class","h-4 w-4"),o(z,"fill","none"),o(z,"viewBox","0 0 24 24"),o(z,"stroke","currentColor"),o(x,"type","button"),o(x,"class","btn btn-square btn-xs btn-error"),o(x,"title",S=s[8]("common.delete")),o(M,"class","flex gap-1"),o(e,"class","hover"),this.first=e},m(ne,$){L(ne,e,$),t(e,n),t(n,i),t(e,u),t(e,c),t(c,f),t(f,d),t(d,m),t(f,b),F&&F.m(f,null),t(e,k),t(e,w),t(w,E),t(e,y),t(e,T),t(T,M),t(M,R),t(R,j),t(j,P),t(M,q),t(M,D),t(D,A),t(A,N),t(M,Q),t(M,x),t(x,z),t(z,K),B||(U=[V(R,"click",J),V(D,"click",ie),V(x,"click",ue)],B=!0)},p(ne,$){s=ne,$&128&&a!==(a=(s[22].priority||1)+"")&&v(i,a),$&128&&p!==(p=s[22].target+"")&&v(m,p),$&128&&g!==(g=s[22].target)&&o(d,"title",g),s[22].plugins&&s[22].plugins.length>0?F||(F=jc(),F.c(),F.m(f,null)):F&&(F.d(1),F=null),$&128&&C!==(C=(s[22].weight||100)+"")&&v(E,C),$&256&&I!==(I=s[8]("common.edit"))&&o(R,"title",I),$&256&&Z!==(Z=s[8]("routeCard.duplicate"))&&o(D,"title",Z),$&256&&S!==(S=s[8]("common.delete"))&&o(x,"title",S)},d(ne){ne&&H(e),F&&F.d(),B=!1,vt(U)}}}function Bc(l){let s,e,n=(l[2]?l[8]("routes.noMatchingRoutes"):l[8]("routes.noRoutesMessage"))+"",a;return{c(){s=r("tr"),e=r("td"),a=_(n),o(e,"colspan","4"),o(e,"class","text-center text-gray-500 py-8")},m(i,u){L(i,s,u),t(s,e),t(e,a)},p(i,u){u&260&&n!==(n=(i[2]?i[8]("routes.noMatchingRoutes"):i[8]("routes.noRoutesMessage"))+"")&&v(a,n)},d(i){i&&H(s)}}}function Ic(l){let s,e,n=l[1][0].message+"",a;return{c(){s=r("div"),e=r("span"),a=_(n),o(s,"class","alert alert-warning")},m(i,u){L(i,s,u),t(s,e),t(e,a)},p(i,u){u&2&&n!==(n=i[1][0].message+"")&&v(a,n)},d(i){i&&H(s)}}}function Ac(l){let s,e,n,a=(l[4]>=0?l[8]("upstream.title",{values:{index:l[4]+1}}):l[8]("routeEditor.addUpstream"))+"",i,u,c,f,d,p,m,g,b=l[8]("common.cancel")+"",k,w,C,E=l[8]("common.save")+"",y,T,M,R,j;function P(q){l[21](q)}let I={index:l[4],showHeader:!1,onRemove:$h,onDuplicate:em};return l[5]!==void 0&&(I.upstream=l[5]),f=new Xh({props:I}),Sl.push(()=>Ml(f,"upstream",P)),{c(){s=r("div"),e=r("div"),n=r("h3"),i=_(a),u=h(),c=r("div"),Et(f.$$.fragment),p=h(),m=r("div"),g=r("button"),k=_(b),w=h(),C=r("button"),y=_(E),o(n,"class","font-bold text-lg mb-4"),o(c,"class","max-h-[70vh] overflow-y-auto"),o(g,"type","button"),o(g,"class","btn"),o(C,"type","button"),o(C,"class","btn btn-primary"),C.disabled=T=!l[6],o(m,"class","modal-action"),o(e,"class","modal-box w-11/12 max-w-3xl"),o(s,"class","modal modal-open")},m(q,D){L(q,s,D),t(s,e),t(e,n),t(n,i),t(e,u),t(e,c),Ct(f,c,null),t(e,p),t(e,m),t(m,g),t(g,k),t(m,w),t(m,C),t(C,y),M=!0,R||(j=[V(g,"click",l[10]),V(C,"click",l[11])],R=!0)},p(q,D){(!M||D&272)&&a!==(a=(q[4]>=0?q[8]("upstream.title",{values:{index:q[4]+1}}):q[8]("routeEditor.addUpstream"))+"")&&v(i,a);const A={};D&16&&(A.index=q[4]),!d&&D&32&&(d=!0,A.upstream=q[5],Rl(()=>d=!1)),f.$set(A),(!M||D&256)&&b!==(b=q[8]("common.cancel")+"")&&v(k,b),(!M||D&256)&&E!==(E=q[8]("common.save")+"")&&v(y,E),(!M||D&64&&T!==(T=!q[6]))&&(C.disabled=T)},i(q){M||(et(f.$$.fragment,q),M=!0)},o(q){st(f.$$.fragment,q),M=!1},d(q){q&&H(s),yt(f),R=!1,vt(j)}}}function xh(l){let s,e,n,a,i=l[8]("routeEditor.upstreams")+"",u,c,f,d,p,m=l[8]("routeEditor.upstreamsHelp")+"",g,b,k,w,C,E,y,T=l[8]("routeEditor.addUpstream")+"",M,R,j=l[0].some(Fc),P,I,q,D,A,N,Z=l[8]("upstream.priority")+"",Q,x,z,K=l[8]("upstream.target")+"",S,B,U,F=l[8]("upstream.weight")+"",J,ie,ue,ne=l[8]("routes.actions")+"",$,te,ae,ee=[],G=new Map,pe,oe,ge,he,ye,ze,Pe,we=j&&Pc(l),Fe=ut(l[7]);const Je=fe=>fe[22]._uid;for(let fe=0;fe<Fe.length;fe+=1){let _e=Lc(l,Fe,fe),Ie=Je(_e);G.set(Ie,ee[fe]=Dc(Ie,_e))}let je=l[7].length===0&&Bc(l),Le=l[1].length>0&&Ic(l),Se=l[3]&&l[5]&&Ac(l);return{c(){s=r("div"),e=r("div"),n=r("div"),a=r("h3"),u=_(i),c=h(),f=r("span"),f.textContent="*",d=h(),p=r("p"),g=_(m),b=h(),k=r("div"),w=r("input"),E=h(),y=r("button"),M=_(T),R=h(),we&&we.c(),P=h(),I=r("div"),q=r("table"),D=r("thead"),A=r("tr"),N=r("th"),Q=_(Z),x=h(),z=r("th"),S=_(K),B=h(),U=r("th"),J=_(F),ie=h(),ue=r("th"),$=_(ne),te=h(),ae=r("tbody");for(let fe=0;fe<ee.length;fe+=1)ee[fe].c();pe=h(),je&&je.c(),oe=h(),Le&&Le.c(),ge=h(),Se&&Se.c(),he=Ul(),o(f,"class","text-error"),o(a,"class","text-lg font-semibold"),o(p,"class","text-sm text-gray-500 mt-1"),o(w,"type","text"),o(w,"placeholder",C=l[8]("common.search")),o(w,"class","input input-bordered input-sm"),o(y,"type","button"),o(y,"class","btn btn-sm btn-primary"),o(k,"class","flex gap-2"),o(e,"class","flex justify-between items-center"),o(N,"class","w-20"),o(U,"class","w-24"),o(ue,"class","w-32"),o(q,"class","table table-zebra w-full"),o(I,"class","overflow-x-auto"),o(s,"class","space-y-4")},m(fe,_e){L(fe,s,_e),t(s,e),t(e,n),t(n,a),t(a,u),t(a,c),t(a,f),t(n,d),t(n,p),t(p,g),t(e,b),t(e,k),t(k,w),Y(w,l[2]),t(k,E),t(k,y),t(y,M),t(s,R),we&&we.m(s,null),t(s,P),t(s,I),t(I,q),t(q,D),t(D,A),t(A,N),t(N,Q),t(A,x),t(A,z),t(z,S),t(A,B),t(A,U),t(U,J),t(A,ie),t(A,ue),t(ue,$),t(q,te),t(q,ae);for(let Ie=0;Ie<ee.length;Ie+=1)ee[Ie]&&ee[Ie].m(ae,null);t(ae,pe),je&&je.m(ae,null),t(s,oe),Le&&Le.m(s,null),L(fe,ge,_e),Se&&Se.m(fe,_e),L(fe,he,_e),ye=!0,ze||(Pe=[V(w,"input",l[16]),V(y,"click",l[17])],ze=!0)},p(fe,[_e]){(!ye||_e&256)&&i!==(i=fe[8]("routeEditor.upstreams")+"")&&v(u,i),(!ye||_e&256)&&m!==(m=fe[8]("routeEditor.upstreamsHelp")+"")&&v(g,m),(!ye||_e&256&&C!==(C=fe[8]("common.search")))&&o(w,"placeholder",C),_e&4&&w.value!==fe[2]&&Y(w,fe[2]),(!ye||_e&256)&&T!==(T=fe[8]("routeEditor.addUpstream")+"")&&v(M,T),_e&1&&(j=fe[0].some(Fc)),j?we?we.p(fe,_e):(we=Pc(fe),we.c(),we.m(s,P)):we&&(we.d(1),we=null),(!ye||_e&256)&&Z!==(Z=fe[8]("upstream.priority")+"")&&v(Q,Z),(!ye||_e&256)&&K!==(K=fe[8]("upstream.target")+"")&&v(S,K),(!ye||_e&256)&&F!==(F=fe[8]("upstream.weight")+"")&&v(J,F),(!ye||_e&256)&&ne!==(ne=fe[8]("routes.actions")+"")&&v($,ne),_e&13184&&(Fe=ut(fe[7]),ee=Ru(ee,_e,Je,1,fe,Fe,G,ae,Op,Dc,pe,Lc)),fe[7].length===0?je?je.p(fe,_e):(je=Bc(fe),je.c(),je.m(ae,null)):je&&(je.d(1),je=null),fe[1].length>0?Le?Le.p(fe,_e):(Le=Ic(fe),Le.c(),Le.m(s,null)):Le&&(Le.d(1),Le=null),fe[3]&&fe[5]?Se?(Se.p(fe,_e),_e&40&&et(Se,1)):(Se=Ac(fe),Se.c(),et(Se,1),Se.m(he.parentNode,he)):Se&&(Gl(),st(Se,1,1,()=>{Se=null}),Kl())},i(fe){ye||(et(Se),ye=!0)},o(fe){st(Se),ye=!1},d(fe){fe&&(H(s),H(ge),H(he)),we&&we.d();for(let _e=0;_e<ee.length;_e+=1)ee[_e].d();je&&je.d(),Le&&Le.d(),Se&&Se.d(fe),ze=!1,vt(Pe)}}}const Fc=l=>l.field==="upstreams",zc=l=>l.field==="upstreams",$h=()=>{},em=()=>{};function tm(l,s,e){let n,a,i;Dt(l,Rt,q=>e(8,i=q));let{route:u}=s,{errors:c=[]}=s,{weightErrors:f=[]}=s,d="",p=!1,m=-1,g=null,b=[];function k(q=-1){e(4,m=q),q>=0?e(5,g=JSON.parse(JSON.stringify(u.upstreams[q]))):e(5,g={_uid:ta(),target:"",weight:100,priority:u.upstreams.length+1,headers:{add:{},remove:[],default:{}},body:{add:{},remove:[],replace:{},default:{}},query:{add:{},remove:[],replace:{},default:{}}}),e(3,p=!0)}function w(){e(3,p=!1),e(5,g=null)}function C(){a&&(m>=0?e(14,u.upstreams[m]=g,u):e(14,u.upstreams=[...u.upstreams,g],u),w())}function E(q){if(u.upstreams.length<=1){alert(i("routeEditor.upstreamRequired"));return}e(14,u.upstreams=u.upstreams.filter((D,A)=>A!==q),u)}function y(q){const D=u.upstreams[q],A=JSON.parse(JSON.stringify(D));if(A._uid=ta(),A.target){const N=A.target.match(/^(.+?)(-\\d+)?$/);if(N){const[,Z,Q]=N;if(Q){const x=parseInt(Q.slice(1))+1;A.target=\`\${Z}-\${x}\`}else A.target=\`\${Z}-copy\`}else A.target=\`\${A.target}-copy\`}A.priority!==void 0&&(A.priority=Math.max(...u.upstreams.map(N=>N.priority||1))+1),e(14,u.upstreams=[...u.upstreams.slice(0,q+1),A,...u.upstreams.slice(q+1)],u)}function T(){d=this.value,e(2,d)}const M=()=>k(-1),R=q=>k(q),j=q=>y(q),P=q=>E(q);function I(q){g=q,e(5,g)}return l.$$set=q=>{"route"in q&&e(14,u=q.route),"errors"in q&&e(0,c=q.errors),"weightErrors"in q&&e(1,f=q.weightErrors)},l.$$.update=()=>{l.$$.dirty&16388&&e(7,n=u.upstreams.map((q,D)=>({u:q,i:D})).filter(({u:q})=>!d||q.target.toLowerCase().includes(d.toLowerCase()))),l.$$.dirty&16440&&p&&g&&e(15,b=Du(g,m===-1?u.upstreams.length:m)),l.$$.dirty&32808&&e(6,a=p&&g&&b.length===0)},[c,f,d,p,m,g,a,n,i,k,w,C,E,y,u,b,T,M,R,j,P,I]}class lm extends Nt{constructor(s){super(),Ut(this,s,tm,xh,Vt,{route:14,errors:0,weightErrors:1})}}function sm(l){let s,e,n;function a(u){l[8](u)}let i={label:l[2]("query.title"),showLabel:!1};return l[0].query!==void 0&&(i.value=l[0].query),s=new n0({props:i}),Sl.push(()=>Ml(s,"value",a)),{c(){Et(s.$$.fragment)},m(u,c){Ct(s,u,c),n=!0},p(u,c){const f={};c&4&&(f.label=u[2]("query.title")),!e&&c&1&&(e=!0,f.value=u[0].query,Rl(()=>e=!1)),s.$set(f)},i(u){n||(et(s.$$.fragment,u),n=!0)},o(u){st(s.$$.fragment,u),n=!1},d(u){yt(s,u)}}}function om(l){let s,e,n;function a(u){l[7](u)}let i={label:l[2]("body.title"),showLabel:!1};return l[0].body!==void 0&&(i.value=l[0].body),s=new o0({props:i}),Sl.push(()=>Ml(s,"value",a)),{c(){Et(s.$$.fragment)},m(u,c){Ct(s,u,c),n=!0},p(u,c){const f={};c&4&&(f.label=u[2]("body.title")),!e&&c&1&&(e=!0,f.value=u[0].body,Rl(()=>e=!1)),s.$set(f)},i(u){n||(et(s.$$.fragment,u),n=!0)},o(u){st(s.$$.fragment,u),n=!1},d(u){yt(s,u)}}}function nm(l){let s,e,n;function a(u){l[6](u)}let i={label:l[2]("headers.title"),showLabel:!1};return l[0].headers!==void 0&&(i.value=l[0].headers),s=new s0({props:i}),Sl.push(()=>Ml(s,"value",a)),{c(){Et(s.$$.fragment)},m(u,c){Ct(s,u,c),n=!0},p(u,c){const f={};c&4&&(f.label=u[2]("headers.title")),!e&&c&1&&(e=!0,f.value=u[0].headers,Rl(()=>e=!1)),s.$set(f)},i(u){n||(et(s.$$.fragment,u),n=!0)},o(u){st(s.$$.fragment,u),n=!1},d(u){yt(s,u)}}}function am(l){let s,e,n,a=l[2]("routeEditor.requestModification")+"",i,u,c,f=l[2]("routeEditor.requestModificationHelp")+"",d,p,m,g,b=l[2]("headers.title")+"",k,w,C,E=l[2]("body.title")+"",y,T,M,R=l[2]("query.title")+"",j,P,I,q,D,A,N,Z,Q,x,z,K=l[2]("routeEditor.routeLevelModificationNote")+"",S,B,U,F;const J=[nm,om,sm],ie=[];function ue(ne,$){return ne[1]==="headers"?0:ne[1]==="body"?1:ne[1]==="query"?2:-1}return~(q=ue(l))&&(D=ie[q]=J[q](l)),{c(){s=r("div"),e=r("div"),n=r("h3"),i=_(a),u=h(),c=r("p"),d=_(f),p=h(),m=r("div"),g=r("button"),k=_(b),w=h(),C=r("button"),y=_(E),T=h(),M=r("button"),j=_(R),P=h(),I=r("div"),D&&D.c(),A=h(),N=r("div"),Z=re("svg"),Q=re("path"),x=h(),z=r("span"),S=_(K),o(n,"class","text-lg font-semibold"),o(c,"class","text-sm text-gray-500 mt-1"),o(g,"role","tab"),o(g,"class","tab"),le(g,"tab-active",l[1]==="headers"),o(C,"role","tab"),o(C,"class","tab"),le(C,"tab-active",l[1]==="body"),o(M,"role","tab"),o(M,"class","tab"),le(M,"tab-active",l[1]==="query"),o(m,"role","tablist"),o(m,"class","tabs tabs-boxed"),o(I,"class","mt-4"),o(Q,"stroke-linecap","round"),o(Q,"stroke-linejoin","round"),o(Q,"stroke-width","2"),o(Q,"d","M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"),o(Z,"xmlns","http://www.w3.org/2000/svg"),o(Z,"fill","none"),o(Z,"viewBox","0 0 24 24"),o(Z,"class","stroke-current shrink-0 w-6 h-6"),o(z,"class","text-sm"),o(N,"class","alert alert-info mt-4"),o(s,"class","space-y-4")},m(ne,$){L(ne,s,$),t(s,e),t(e,n),t(n,i),t(e,u),t(e,c),t(c,d),t(s,p),t(s,m),t(m,g),t(g,k),t(m,w),t(m,C),t(C,y),t(m,T),t(m,M),t(M,j),t(s,P),t(s,I),~q&&ie[q].m(I,null),t(s,A),t(s,N),t(N,Z),t(Z,Q),t(N,x),t(N,z),t(z,S),B=!0,U||(F=[V(g,"click",l[3]),V(C,"click",l[4]),V(M,"click",l[5])],U=!0)},p(ne,[$]){(!B||$&4)&&a!==(a=ne[2]("routeEditor.requestModification")+"")&&v(i,a),(!B||$&4)&&f!==(f=ne[2]("routeEditor.requestModificationHelp")+"")&&v(d,f),(!B||$&4)&&b!==(b=ne[2]("headers.title")+"")&&v(k,b),(!B||$&2)&&le(g,"tab-active",ne[1]==="headers"),(!B||$&4)&&E!==(E=ne[2]("body.title")+"")&&v(y,E),(!B||$&2)&&le(C,"tab-active",ne[1]==="body"),(!B||$&4)&&R!==(R=ne[2]("query.title")+"")&&v(j,R),(!B||$&2)&&le(M,"tab-active",ne[1]==="query");let te=q;q=ue(ne),q===te?~q&&ie[q].p(ne,$):(D&&(Gl(),st(ie[te],1,1,()=>{ie[te]=null}),Kl()),~q?(D=ie[q],D?D.p(ne,$):(D=ie[q]=J[q](ne),D.c()),et(D,1),D.m(I,null)):D=null),(!B||$&4)&&K!==(K=ne[2]("routeEditor.routeLevelModificationNote")+"")&&v(S,K)},i(ne){B||(et(D),B=!0)},o(ne){st(D),B=!1},d(ne){ne&&H(s),~q&&ie[q].d(),U=!1,vt(F)}}}function rm(l,s,e){let n;Dt(l,Rt,g=>e(2,n=g));let{route:a}=s,i="headers";const u=()=>e(1,i="headers"),c=()=>e(1,i="body"),f=()=>e(1,i="query");function d(g){l.$$.not_equal(a.headers,g)&&(a.headers=g,e(0,a))}function p(g){l.$$.not_equal(a.body,g)&&(a.body=g,e(0,a))}function m(g){l.$$.not_equal(a.query,g)&&(a.query=g,e(0,a))}return l.$$set=g=>{"route"in g&&e(0,a=g.route)},[a,i,n,u,c,f,d,p,m]}class im extends Nt{constructor(s){super(),Ut(this,s,rm,am,Vt,{route:0})}}function um(l){let s,e,n,a=l[1]("auth.routeAuth")+"",i,u,c,f=l[1]("auth.routeAuthHelp")+"",d,p,m,g,b;function k(C){l[2](C)}let w={label:l[1]("auth.routeAuth"),showHelp:!0,showLabel:!1};return l[0].auth!==void 0&&(w.value=l[0].auth),m=new xp({props:w}),Sl.push(()=>Ml(m,"value",k)),{c(){s=r("div"),e=r("div"),n=r("h3"),i=_(a),u=h(),c=r("p"),d=_(f),p=h(),Et(m.$$.fragment),o(n,"class","text-lg font-semibold"),o(c,"class","text-sm text-gray-500 mt-1"),o(s,"class","space-y-4")},m(C,E){L(C,s,E),t(s,e),t(e,n),t(n,i),t(e,u),t(e,c),t(c,d),t(s,p),Ct(m,s,null),b=!0},p(C,[E]){(!b||E&2)&&a!==(a=C[1]("auth.routeAuth")+"")&&v(i,a),(!b||E&2)&&f!==(f=C[1]("auth.routeAuthHelp")+"")&&v(d,f);const y={};E&2&&(y.label=C[1]("auth.routeAuth")),!g&&E&1&&(g=!0,y.value=C[0].auth,Rl(()=>g=!1)),m.$set(y)},i(C){b||(et(m.$$.fragment,C),b=!0)},o(C){st(m.$$.fragment,C),b=!1},d(C){C&&H(s),yt(m)}}}function fm(l,s,e){let n;Dt(l,Rt,u=>e(1,n=u));let{route:a}=s;function i(u){l.$$.not_equal(a.auth,u)&&(a.auth=u,e(0,a))}return l.$$set=u=>{"route"in u&&e(0,a=u.route)},[a,n,i]}class cm extends Nt{constructor(s){super(),Ut(this,s,fm,um,Vt,{route:0})}}function Oc(l){let s,e=l[22]("routeEditor.failoverHelp")+"",n;return{c(){s=r("span"),n=_(e),o(s,"class","label-text-alt text-xs")},m(a,i){L(a,s,i),t(s,n)},p(a,i){i[0]&4194304&&e!==(e=a[22]("routeEditor.failoverHelp")+"")&&v(n,e)},d(a){a&&H(s)}}}function Nc(l){let s,e,n,a=l[22]("routeEditor.retryableStatusCodes")+"",i,u,c,f,d,p,m,g=l[22]("routeEditor.retryableStatusCodesHelp")+"",b,k,w,C,E,y,T=l[22]("routeEditor.passiveHealthCheck")+"",M,R,j,P,I,q,D,A,N=l[22]("routeEditor.passiveHealthCheckTooltip")+"",Z,Q,x,z,K,S,B=l[22]("routeEditor.consecutiveFailuresThreshold")+"",U,F,J,ie,ue,ne,$=l[22]("routeEditor.consecutiveFailuresThresholdHelp")+"",te,ae,ee,G,pe,oe=l[22]("routeEditor.healthyThreshold")+"",ge,he,ye,ze,Pe,we,Fe=l[22]("routeEditor.healthyThresholdHelp")+"",Je,je,Le,Se,fe,_e=l[22]("routeEditor.requestTimeoutMs")+"",Ie,De,se,ke,me,Ee,Ve=l[22]("routeEditor.requestTimeoutMsHelp")+"",Be,nt,Ne,Qe,Ye,ve=l[22]("routeEditor.connectTimeoutMs")+"",de,Te,Ze,Me,Ue,Ce,mt=l[22]("routeEditor.connectTimeoutMsHelp")+"",Ge,ce,qe,Re,dt,We=l[22]("routeEditor.recoveryIntervalMs")+"",O,He,X,ft,Ht,Ke,_t=l[22]("routeEditor.recoveryIntervalHelp")+"",tt,it,Oe,Xe,It,rt=l[22]("routeEditor.recoveryTimeoutMs")+"",gt,wt,pt,bl,at,St,ht=l[22]("routeEditor.recoveryTimeoutHelp")+"",Tt,vl,At,hl,ml,ql,Jt=l[22]("routeEditor.activeHealthCheck")+"",Yl,Yt,Qt,Hl,Bl,gl,sl,Ql,Ft=l[22]("routeEditor.activeHealthCheckTooltip")+"",Ll,Vl,Jl,Cl,zt,Zl,Lt,Pl=l[22]("routeEditor.enableActiveHealthCheck")+"",jl,$l,xt,kl,es,zl,Il,Wl=l[22]("routeEditor.slowStart")+"",Ls,ol,wl,nl,Ol,al,_l,tl,Dl=l[22]("routeEditor.slowStartTooltip")+"",Nl,El,Wt,Bt,Pt,$t,el,Kt=l[22]("routeEditor.enableSlowStart")+"",Zt,rl,Xt,$e,Al,ts,Xl,xl,ls=l[22]("routeEditor.failoverInfoNotice")+"",Ds,ss,Os,il=l[11]&&Uc(l),Ot=l[19]&&Vc(l);return{c(){s=r("div"),e=r("label"),n=r("span"),i=_(a),u=h(),c=r("input"),d=h(),p=r("div"),m=r("span"),b=_(g),k=h(),w=r("div"),C=r("input"),E=h(),y=r("div"),M=_(T),R=h(),j=r("div"),P=r("div"),I=re("svg"),q=re("path"),D=h(),A=r("span"),Z=_(N),Q=h(),x=r("div"),z=r("div"),K=r("label"),S=r("span"),U=_(B),F=h(),J=r("input"),ie=h(),ue=r("div"),ne=r("span"),te=_($),ae=h(),ee=r("div"),G=r("label"),pe=r("span"),ge=_(oe),he=h(),ye=r("input"),ze=h(),Pe=r("div"),we=r("span"),Je=_(Fe),je=h(),Le=r("div"),Se=r("label"),fe=r("span"),Ie=_(_e),De=h(),se=r("input"),ke=h(),me=r("div"),Ee=r("span"),Be=_(Ve),nt=h(),Ne=r("div"),Qe=r("label"),Ye=r("span"),de=_(ve),Te=h(),Ze=r("input"),Me=h(),Ue=r("div"),Ce=r("span"),Ge=_(mt),ce=h(),qe=r("div"),Re=r("label"),dt=r("span"),O=_(We),He=h(),X=r("input"),ft=h(),Ht=r("div"),Ke=r("span"),tt=_(_t),it=h(),Oe=r("div"),Xe=r("label"),It=r("span"),gt=_(rt),wt=h(),pt=r("input"),bl=h(),at=r("div"),St=r("span"),Tt=_(ht),vl=h(),At=r("div"),hl=r("input"),ml=h(),ql=r("div"),Yl=_(Jt),Yt=h(),Qt=r("div"),Hl=r("div"),Bl=re("svg"),gl=re("path"),sl=h(),Ql=r("span"),Ll=_(Ft),Vl=h(),Jl=r("div"),Cl=r("label"),zt=r("input"),Zl=h(),Lt=r("span"),jl=_(Pl),$l=h(),il&&il.c(),xt=h(),kl=r("div"),es=r("input"),zl=h(),Il=r("div"),Ls=_(Wl),ol=h(),wl=r("div"),nl=r("div"),Ol=re("svg"),al=re("path"),_l=h(),tl=r("span"),Nl=_(Dl),El=h(),Wt=r("div"),Bt=r("label"),Pt=r("input"),$t=h(),el=r("span"),Zt=_(Kt),rl=h(),Ot&&Ot.c(),Xt=h(),$e=r("div"),Al=re("svg"),ts=re("path"),Xl=h(),xl=r("div"),Ds=_(ls),o(n,"class","label-text"),o(e,"class","label"),o(e,"for","failover-status-codes"),o(c,"id","failover-status-codes"),o(c,"type","text"),o(c,"placeholder",f=l[22]("routeEditor.retryableStatusCodesPlaceholder")),o(c,"class","input input-bordered input-sm"),o(m,"class","label-text-alt text-xs"),o(p,"class","label"),o(s,"class","form-control"),o(C,"type","checkbox"),o(y,"class","collapse-title text-sm font-medium"),o(q,"stroke-linecap","round"),o(q,"stroke-linejoin","round"),o(q,"stroke-width","2"),o(q,"d","M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"),o(I,"xmlns","http://www.w3.org/2000/svg"),o(I,"fill","none"),o(I,"viewBox","0 0 24 24"),o(I,"class","stroke-current shrink-0 w-4 h-4"),o(P,"class","text-xs text-base-content/60 bg-base-300 rounded p-2 flex gap-2 items-start"),o(S,"class","label-text"),o(K,"class","label"),o(K,"for","consecutive-failures-threshold"),o(J,"id","consecutive-failures-threshold"),o(J,"type","number"),o(J,"placeholder","3"),o(J,"class","input input-bordered input-sm"),o(J,"min","1"),o(ne,"class","label-text-alt text-xs"),o(ue,"class","label"),o(z,"class","form-control"),o(pe,"class","label-text"),o(G,"class","label"),o(G,"for","healthy-threshold"),o(ye,"id","healthy-threshold"),o(ye,"type","number"),o(ye,"placeholder","2"),o(ye,"class","input input-bordered input-sm"),o(ye,"min","1"),o(we,"class","label-text-alt text-xs"),o(Pe,"class","label"),o(ee,"class","form-control"),o(fe,"class","label-text"),o(Se,"class","label"),o(Se,"for","request-timeout-ms"),o(se,"id","request-timeout-ms"),o(se,"type","number"),o(se,"placeholder","30000"),o(se,"class","input input-bordered input-sm"),o(se,"min","100"),o(Ee,"class","label-text-alt text-xs"),o(me,"class","label"),o(Le,"class","form-control"),o(Ye,"class","label-text"),o(Qe,"class","label"),o(Qe,"for","connect-timeout-ms"),o(Ze,"id","connect-timeout-ms"),o(Ze,"type","number"),o(Ze,"placeholder","5000"),o(Ze,"class","input input-bordered input-sm"),o(Ze,"min","100"),o(Ce,"class","label-text-alt text-xs"),o(Ue,"class","label"),o(Ne,"class","form-control"),o(dt,"class","label-text"),o(Re,"class","label"),o(Re,"for","recovery-interval-ms"),o(X,"id","recovery-interval-ms"),o(X,"type","number"),o(X,"placeholder","5000"),o(X,"class","input input-bordered input-sm"),o(X,"min","1000"),o(Ke,"class","label-text-alt text-xs"),o(Ht,"class","label"),o(qe,"class","form-control"),o(It,"class","label-text"),o(Xe,"class","label"),o(Xe,"for","recovery-timeout-ms"),o(pt,"id","recovery-timeout-ms"),o(pt,"type","number"),o(pt,"placeholder","3000"),o(pt,"class","input input-bordered input-sm"),o(pt,"min","100"),o(St,"class","label-text-alt text-xs"),o(at,"class","label"),o(Oe,"class","form-control"),o(x,"class","grid grid-cols-1 md:grid-cols-2 gap-4"),o(j,"class","collapse-content space-y-4"),o(w,"class","collapse collapse-arrow bg-base-200"),o(hl,"type","checkbox"),o(ql,"class","collapse-title text-sm font-medium"),o(gl,"stroke-linecap","round"),o(gl,"stroke-linejoin","round"),o(gl,"stroke-width","2"),o(gl,"d","M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"),o(Bl,"xmlns","http://www.w3.org/2000/svg"),o(Bl,"fill","none"),o(Bl,"viewBox","0 0 24 24"),o(Bl,"class","stroke-current shrink-0 w-4 h-4"),o(Hl,"class","text-xs text-base-content/60 bg-base-300 rounded p-2 flex gap-2 items-start"),o(zt,"type","checkbox"),o(zt,"class","checkbox checkbox-sm"),o(Lt,"class","label-text"),o(Cl,"class","label cursor-pointer justify-start gap-4"),o(Jl,"class","form-control"),o(Qt,"class","collapse-content space-y-4"),o(At,"class","collapse collapse-arrow bg-base-200"),o(es,"type","checkbox"),o(Il,"class","collapse-title text-sm font-medium"),o(al,"stroke-linecap","round"),o(al,"stroke-linejoin","round"),o(al,"stroke-width","2"),o(al,"d","M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"),o(Ol,"xmlns","http://www.w3.org/2000/svg"),o(Ol,"fill","none"),o(Ol,"viewBox","0 0 24 24"),o(Ol,"class","stroke-current shrink-0 w-4 h-4"),o(nl,"class","text-xs text-base-content/60 bg-base-300 rounded p-2 flex gap-2 items-start"),o(Pt,"type","checkbox"),o(Pt,"class","checkbox checkbox-sm"),o(el,"class","label-text"),o(Bt,"class","label cursor-pointer justify-start gap-4"),o(Wt,"class","form-control"),o(wl,"class","collapse-content space-y-4"),o(kl,"class","collapse collapse-arrow bg-base-200"),o(ts,"stroke-linecap","round"),o(ts,"stroke-linejoin","round"),o(ts,"stroke-width","2"),o(ts,"d","M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"),o(Al,"xmlns","http://www.w3.org/2000/svg"),o(Al,"fill","none"),o(Al,"viewBox","0 0 24 24"),o(Al,"class","stroke-current shrink-0 w-4 h-4"),o($e,"class","alert alert-info shadow-sm text-xs")},m(lt,ct){L(lt,s,ct),t(s,e),t(e,n),t(n,i),t(s,u),t(s,c),Y(c,l[4]),t(s,d),t(s,p),t(p,m),t(m,b),L(lt,k,ct),L(lt,w,ct),t(w,C),t(w,E),t(w,y),t(y,M),t(w,R),t(w,j),t(j,P),t(P,I),t(I,q),t(P,D),t(P,A),t(A,Z),t(j,Q),t(j,x),t(x,z),t(z,K),t(K,S),t(S,U),t(z,F),t(z,J),Y(J,l[5]),t(z,ie),t(z,ue),t(ue,ne),t(ne,te),t(x,ae),t(x,ee),t(ee,G),t(G,pe),t(pe,ge),t(ee,he),t(ee,ye),Y(ye,l[6]),t(ee,ze),t(ee,Pe),t(Pe,we),t(we,Je),t(x,je),t(x,Le),t(Le,Se),t(Se,fe),t(fe,Ie),t(Le,De),t(Le,se),Y(se,l[7]),t(Le,ke),t(Le,me),t(me,Ee),t(Ee,Be),t(x,nt),t(x,Ne),t(Ne,Qe),t(Qe,Ye),t(Ye,de),t(Ne,Te),t(Ne,Ze),Y(Ze,l[8]),t(Ne,Me),t(Ne,Ue),t(Ue,Ce),t(Ce,Ge),t(x,ce),t(x,qe),t(qe,Re),t(Re,dt),t(dt,O),t(qe,He),t(qe,X),Y(X,l[9]),t(qe,ft),t(qe,Ht),t(Ht,Ke),t(Ke,tt),t(x,it),t(x,Oe),t(Oe,Xe),t(Xe,It),t(It,gt),t(Oe,wt),t(Oe,pt),Y(pt,l[10]),t(Oe,bl),t(Oe,at),t(at,St),t(St,Tt),L(lt,vl,ct),L(lt,At,ct),t(At,hl),t(At,ml),t(At,ql),t(ql,Yl),t(At,Yt),t(At,Qt),t(Qt,Hl),t(Hl,Bl),t(Bl,gl),t(Hl,sl),t(Hl,Ql),t(Ql,Ll),t(Qt,Vl),t(Qt,Jl),t(Jl,Cl),t(Cl,zt),zt.checked=l[11],t(Cl,Zl),t(Cl,Lt),t(Lt,jl),t(Qt,$l),il&&il.m(Qt,null),L(lt,xt,ct),L(lt,kl,ct),t(kl,es),t(kl,zl),t(kl,Il),t(Il,Ls),t(kl,ol),t(kl,wl),t(wl,nl),t(nl,Ol),t(Ol,al),t(nl,_l),t(nl,tl),t(tl,Nl),t(wl,El),t(wl,Wt),t(Wt,Bt),t(Bt,Pt),Pt.checked=l[19],t(Bt,$t),t(Bt,el),t(el,Zt),t(wl,rl),Ot&&Ot.m(wl,null),L(lt,Xt,ct),L(lt,$e,ct),t($e,Al),t(Al,ts),t($e,Xl),t($e,xl),t(xl,Ds),ss||(Os=[V(c,"input",l[28]),V(J,"input",l[29]),V(ye,"input",l[30]),V(se,"input",l[31]),V(Ze,"input",l[32]),V(X,"input",l[33]),V(pt,"input",l[34]),V(zt,"change",l[35]),V(Pt,"change",l[43])],ss=!0)},p(lt,ct){ct[0]&4194304&&a!==(a=lt[22]("routeEditor.retryableStatusCodes")+"")&&v(i,a),ct[0]&4194304&&f!==(f=lt[22]("routeEditor.retryableStatusCodesPlaceholder"))&&o(c,"placeholder",f),ct[0]&16&&c.value!==lt[4]&&Y(c,lt[4]),ct[0]&4194304&&g!==(g=lt[22]("routeEditor.retryableStatusCodesHelp")+"")&&v(b,g),ct[0]&4194304&&T!==(T=lt[22]("routeEditor.passiveHealthCheck")+"")&&v(M,T),ct[0]&4194304&&N!==(N=lt[22]("routeEditor.passiveHealthCheckTooltip")+"")&&v(Z,N),ct[0]&4194304&&B!==(B=lt[22]("routeEditor.consecutiveFailuresThreshold")+"")&&v(U,B),ct[0]&32&&Mt(J.value)!==lt[5]&&Y(J,lt[5]),ct[0]&4194304&&$!==($=lt[22]("routeEditor.consecutiveFailuresThresholdHelp")+"")&&v(te,$),ct[0]&4194304&&oe!==(oe=lt[22]("routeEditor.healthyThreshold")+"")&&v(ge,oe),ct[0]&64&&Mt(ye.value)!==lt[6]&&Y(ye,lt[6]),ct[0]&4194304&&Fe!==(Fe=lt[22]("routeEditor.healthyThresholdHelp")+"")&&v(Je,Fe),ct[0]&4194304&&_e!==(_e=lt[22]("routeEditor.requestTimeoutMs")+"")&&v(Ie,_e),ct[0]&128&&Mt(se.value)!==lt[7]&&Y(se,lt[7]),ct[0]&4194304&&Ve!==(Ve=lt[22]("routeEditor.requestTimeoutMsHelp")+"")&&v(Be,Ve),ct[0]&4194304&&ve!==(ve=lt[22]("routeEditor.connectTimeoutMs")+"")&&v(de,ve),ct[0]&256&&Mt(Ze.value)!==lt[8]&&Y(Ze,lt[8]),ct[0]&4194304&&mt!==(mt=lt[22]("routeEditor.connectTimeoutMsHelp")+"")&&v(Ge,mt),ct[0]&4194304&&We!==(We=lt[22]("routeEditor.recoveryIntervalMs")+"")&&v(O,We),ct[0]&512&&Mt(X.value)!==lt[9]&&Y(X,lt[9]),ct[0]&4194304&&_t!==(_t=lt[22]("routeEditor.recoveryIntervalHelp")+"")&&v(tt,_t),ct[0]&4194304&&rt!==(rt=lt[22]("routeEditor.recoveryTimeoutMs")+"")&&v(gt,rt),ct[0]&1024&&Mt(pt.value)!==lt[10]&&Y(pt,lt[10]),ct[0]&4194304&&ht!==(ht=lt[22]("routeEditor.recoveryTimeoutHelp")+"")&&v(Tt,ht),ct[0]&4194304&&Jt!==(Jt=lt[22]("routeEditor.activeHealthCheck")+"")&&v(Yl,Jt),ct[0]&4194304&&Ft!==(Ft=lt[22]("routeEditor.activeHealthCheckTooltip")+"")&&v(Ll,Ft),ct[0]&2048&&(zt.checked=lt[11]),ct[0]&4194304&&Pl!==(Pl=lt[22]("routeEditor.enableActiveHealthCheck")+"")&&v(jl,Pl),lt[11]?il?il.p(lt,ct):(il=Uc(lt),il.c(),il.m(Qt,null)):il&&(il.d(1),il=null),ct[0]&4194304&&Wl!==(Wl=lt[22]("routeEditor.slowStart")+"")&&v(Ls,Wl),ct[0]&4194304&&Dl!==(Dl=lt[22]("routeEditor.slowStartTooltip")+"")&&v(Nl,Dl),ct[0]&524288&&(Pt.checked=lt[19]),ct[0]&4194304&&Kt!==(Kt=lt[22]("routeEditor.enableSlowStart")+"")&&v(Zt,Kt),lt[19]?Ot?Ot.p(lt,ct):(Ot=Vc(lt),Ot.c(),Ot.m(wl,null)):Ot&&(Ot.d(1),Ot=null),ct[0]&4194304&&ls!==(ls=lt[22]("routeEditor.failoverInfoNotice")+"")&&v(Ds,ls)},d(lt){lt&&(H(s),H(k),H(w),H(vl),H(At),H(xt),H(kl),H(Xt),H($e)),il&&il.d(),Ot&&Ot.d(),ss=!1,vt(Os)}}}function Uc(l){let s,e,n,a,i=l[22]("routeEditor.healthCheckIntervalMs")+"",u,c,f,d,p,m,g=l[22]("routeEditor.healthCheckIntervalMsHelp")+"",b,k,w,C,E,y=l[22]("routeEditor.healthCheckTimeoutMs")+"",T,M,R,j,P,I,q=l[22]("routeEditor.healthCheckTimeoutMsHelp")+"",D,A,N,Z,Q,x=l[22]("routeEditor.healthCheckPath")+"",z,K,S,B,U,F,J=l[22]("routeEditor.healthCheckPathHelp")+"",ie,ue,ne,$,te,ae=l[22]("routeEditor.healthCheckMethod")+"",ee,G,pe,oe,ge,he,ye,ze,Pe,we,Fe,Je=l[22]("routeEditor.healthCheckExpectedStatus")+"",je,Le,Se,fe,_e,Ie,De=l[22]("routeEditor.healthCheckExpectedStatusHelp")+"",se,ke,me,Ee,Ve,Be=l[22]("routeEditor.healthCheckUnhealthyThreshold")+"",nt,Ne,Qe,Ye,ve,de,Te=l[22]("routeEditor.healthCheckUnhealthyThresholdHelp")+"",Ze,Me,Ue,Ce,mt,Ge=l[22]("routeEditor.healthCheckHealthyThreshold")+"",ce,qe,Re,dt,We,O,He=l[22]("routeEditor.healthCheckHealthyThresholdHelp")+"",X,ft,Ht;return{c(){s=r("div"),e=r("div"),n=r("label"),a=r("span"),u=_(i),c=h(),f=r("input"),d=h(),p=r("div"),m=r("span"),b=_(g),k=h(),w=r("div"),C=r("label"),E=r("span"),T=_(y),M=h(),R=r("input"),j=h(),P=r("div"),I=r("span"),D=_(q),A=h(),N=r("div"),Z=r("label"),Q=r("span"),z=_(x),K=h(),S=r("input"),B=h(),U=r("div"),F=r("span"),ie=_(J),ue=h(),ne=r("div"),$=r("label"),te=r("span"),ee=_(ae),G=h(),pe=r("select"),oe=r("option"),oe.textContent="GET (default)",ge=r("option"),ge.textContent="GET",he=r("option"),he.textContent="POST",ye=r("option"),ye.textContent="HEAD",ze=h(),Pe=r("div"),we=r("label"),Fe=r("span"),je=_(Je),Le=h(),Se=r("input"),fe=h(),_e=r("div"),Ie=r("span"),se=_(De),ke=h(),me=r("div"),Ee=r("label"),Ve=r("span"),nt=_(Be),Ne=h(),Qe=r("input"),Ye=h(),ve=r("div"),de=r("span"),Ze=_(Te),Me=h(),Ue=r("div"),Ce=r("label"),mt=r("span"),ce=_(Ge),qe=h(),Re=r("input"),dt=h(),We=r("div"),O=r("span"),X=_(He),o(a,"class","label-text"),o(n,"class","label"),o(n,"for","health-check-interval-ms"),o(f,"id","health-check-interval-ms"),o(f,"type","number"),o(f,"placeholder","10000"),o(f,"class","input input-bordered input-sm"),o(f,"min","1000"),o(m,"class","label-text-alt text-xs"),o(p,"class","label"),o(e,"class","form-control"),o(E,"class","label-text"),o(C,"class","label"),o(C,"for","health-check-timeout-ms"),o(R,"id","health-check-timeout-ms"),o(R,"type","number"),o(R,"placeholder","3000"),o(R,"class","input input-bordered input-sm"),o(R,"min","100"),o(I,"class","label-text-alt text-xs"),o(P,"class","label"),o(w,"class","form-control"),o(Q,"class","label-text"),o(Z,"class","label"),o(Z,"for","health-check-path"),o(S,"id","health-check-path"),o(S,"type","text"),o(S,"placeholder","/health"),o(S,"class","input input-bordered input-sm"),o(F,"class","label-text-alt text-xs"),o(U,"class","label"),o(N,"class","form-control"),o(te,"class","label-text"),o($,"class","label"),o($,"for","health-check-method"),oe.__value="",Y(oe,oe.__value),ge.__value="GET",Y(ge,ge.__value),he.__value="POST",Y(he,he.__value),ye.__value="HEAD",Y(ye,ye.__value),o(pe,"id","health-check-method"),o(pe,"class","select select-bordered select-sm"),l[15]===void 0&&pl(()=>l[39].call(pe)),o(ne,"class","form-control"),o(Fe,"class","label-text"),o(we,"class","label"),o(we,"for","health-check-expected-status"),o(Se,"id","health-check-expected-status"),o(Se,"type","text"),o(Se,"placeholder","200"),o(Se,"class","input input-bordered input-sm"),o(Ie,"class","label-text-alt text-xs"),o(_e,"class","label"),o(Pe,"class","form-control"),o(Ve,"class","label-text"),o(Ee,"class","label"),o(Ee,"for","health-check-unhealthy-threshold"),o(Qe,"id","health-check-unhealthy-threshold"),o(Qe,"type","number"),o(Qe,"placeholder","3"),o(Qe,"class","input input-bordered input-sm"),o(Qe,"min","1"),o(de,"class","label-text-alt text-xs"),o(ve,"class","label"),o(me,"class","form-control"),o(mt,"class","label-text"),o(Ce,"class","label"),o(Ce,"for","health-check-healthy-threshold"),o(Re,"id","health-check-healthy-threshold"),o(Re,"type","number"),o(Re,"placeholder","2"),o(Re,"class","input input-bordered input-sm"),o(Re,"min","1"),o(O,"class","label-text-alt text-xs"),o(We,"class","label"),o(Ue,"class","form-control"),o(s,"class","grid grid-cols-1 md:grid-cols-2 gap-4")},m(Ke,_t){L(Ke,s,_t),t(s,e),t(e,n),t(n,a),t(a,u),t(e,c),t(e,f),Y(f,l[12]),t(e,d),t(e,p),t(p,m),t(m,b),t(s,k),t(s,w),t(w,C),t(C,E),t(E,T),t(w,M),t(w,R),Y(R,l[13]),t(w,j),t(w,P),t(P,I),t(I,D),t(s,A),t(s,N),t(N,Z),t(Z,Q),t(Q,z),t(N,K),t(N,S),Y(S,l[14]),t(N,B),t(N,U),t(U,F),t(F,ie),t(s,ue),t(s,ne),t(ne,$),t($,te),t(te,ee),t(ne,G),t(ne,pe),t(pe,oe),t(pe,ge),t(pe,he),t(pe,ye),kt(pe,l[15],!0),t(s,ze),t(s,Pe),t(Pe,we),t(we,Fe),t(Fe,je),t(Pe,Le),t(Pe,Se),Y(Se,l[16]),t(Pe,fe),t(Pe,_e),t(_e,Ie),t(Ie,se),t(s,ke),t(s,me),t(me,Ee),t(Ee,Ve),t(Ve,nt),t(me,Ne),t(me,Qe),Y(Qe,l[17]),t(me,Ye),t(me,ve),t(ve,de),t(de,Ze),t(s,Me),t(s,Ue),t(Ue,Ce),t(Ce,mt),t(mt,ce),t(Ue,qe),t(Ue,Re),Y(Re,l[18]),t(Ue,dt),t(Ue,We),t(We,O),t(O,X),ft||(Ht=[V(f,"input",l[36]),V(R,"input",l[37]),V(S,"input",l[38]),V(pe,"change",l[39]),V(Se,"input",l[40]),V(Qe,"input",l[41]),V(Re,"input",l[42])],ft=!0)},p(Ke,_t){_t[0]&4194304&&i!==(i=Ke[22]("routeEditor.healthCheckIntervalMs")+"")&&v(u,i),_t[0]&4096&&Mt(f.value)!==Ke[12]&&Y(f,Ke[12]),_t[0]&4194304&&g!==(g=Ke[22]("routeEditor.healthCheckIntervalMsHelp")+"")&&v(b,g),_t[0]&4194304&&y!==(y=Ke[22]("routeEditor.healthCheckTimeoutMs")+"")&&v(T,y),_t[0]&8192&&Mt(R.value)!==Ke[13]&&Y(R,Ke[13]),_t[0]&4194304&&q!==(q=Ke[22]("routeEditor.healthCheckTimeoutMsHelp")+"")&&v(D,q),_t[0]&4194304&&x!==(x=Ke[22]("routeEditor.healthCheckPath")+"")&&v(z,x),_t[0]&16384&&S.value!==Ke[14]&&Y(S,Ke[14]),_t[0]&4194304&&J!==(J=Ke[22]("routeEditor.healthCheckPathHelp")+"")&&v(ie,J),_t[0]&4194304&&ae!==(ae=Ke[22]("routeEditor.healthCheckMethod")+"")&&v(ee,ae),_t[0]&32768&&kt(pe,Ke[15]),_t[0]&4194304&&Je!==(Je=Ke[22]("routeEditor.healthCheckExpectedStatus")+"")&&v(je,Je),_t[0]&65536&&Se.value!==Ke[16]&&Y(Se,Ke[16]),_t[0]&4194304&&De!==(De=Ke[22]("routeEditor.healthCheckExpectedStatusHelp")+"")&&v(se,De),_t[0]&4194304&&Be!==(Be=Ke[22]("routeEditor.healthCheckUnhealthyThreshold")+"")&&v(nt,Be),_t[0]&131072&&Mt(Qe.value)!==Ke[17]&&Y(Qe,Ke[17]),_t[0]&4194304&&Te!==(Te=Ke[22]("routeEditor.healthCheckUnhealthyThresholdHelp")+"")&&v(Ze,Te),_t[0]&4194304&&Ge!==(Ge=Ke[22]("routeEditor.healthCheckHealthyThreshold")+"")&&v(ce,Ge),_t[0]&262144&&Mt(Re.value)!==Ke[18]&&Y(Re,Ke[18]),_t[0]&4194304&&He!==(He=Ke[22]("routeEditor.healthCheckHealthyThresholdHelp")+"")&&v(X,He)},d(Ke){Ke&&H(s),ft=!1,vt(Ht)}}}function Vc(l){let s,e,n,a,i=l[22]("routeEditor.slowStartDurationMs")+"",u,c,f,d,p,m,g=l[22]("routeEditor.slowStartDurationMsHelp")+"",b,k,w,C,E,y=l[22]("routeEditor.slowStartInitialWeightFactor")+"",T,M,R,j,P,I,q=l[22]("routeEditor.slowStartInitialWeightFactorHelp")+"",D,A,N;return{c(){s=r("div"),e=r("div"),n=r("label"),a=r("span"),u=_(i),c=h(),f=r("input"),d=h(),p=r("div"),m=r("span"),b=_(g),k=h(),w=r("div"),C=r("label"),E=r("span"),T=_(y),M=h(),R=r("input"),j=h(),P=r("div"),I=r("span"),D=_(q),o(a,"class","label-text"),o(n,"class","label"),o(n,"for","slow-start-duration-ms"),o(f,"id","slow-start-duration-ms"),o(f,"type","number"),o(f,"placeholder","30000"),o(f,"class","input input-bordered input-sm"),o(f,"min","1000"),o(m,"class","label-text-alt text-xs"),o(p,"class","label"),o(e,"class","form-control"),o(E,"class","label-text"),o(C,"class","label"),o(C,"for","slow-start-initial-weight-factor"),o(R,"id","slow-start-initial-weight-factor"),o(R,"type","number"),o(R,"placeholder","0.1"),o(R,"class","input input-bordered input-sm"),o(R,"min","0.01"),o(R,"max","1"),o(R,"step","0.01"),o(I,"class","label-text-alt text-xs"),o(P,"class","label"),o(w,"class","form-control"),o(s,"class","grid grid-cols-1 md:grid-cols-2 gap-4")},m(Z,Q){L(Z,s,Q),t(s,e),t(e,n),t(n,a),t(a,u),t(e,c),t(e,f),Y(f,l[20]),t(e,d),t(e,p),t(p,m),t(m,b),t(s,k),t(s,w),t(w,C),t(C,E),t(E,T),t(w,M),t(w,R),Y(R,l[21]),t(w,j),t(w,P),t(P,I),t(I,D),A||(N=[V(f,"input",l[44]),V(R,"input",l[45])],A=!0)},p(Z,Q){Q[0]&4194304&&i!==(i=Z[22]("routeEditor.slowStartDurationMs")+"")&&v(u,i),Q[0]&1048576&&Mt(f.value)!==Z[20]&&Y(f,Z[20]),Q[0]&4194304&&g!==(g=Z[22]("routeEditor.slowStartDurationMsHelp")+"")&&v(b,g),Q[0]&4194304&&y!==(y=Z[22]("routeEditor.slowStartInitialWeightFactor")+"")&&v(T,y),Q[0]&2097152&&Mt(R.value)!==Z[21]&&Y(R,Z[21]),Q[0]&4194304&&q!==(q=Z[22]("routeEditor.slowStartInitialWeightFactorHelp")+"")&&v(D,q)},d(Z){Z&&H(s),A=!1,vt(N)}}}function dm(l){let s,e,n,a,i,u,c,f,d,p,m,g,b=l[22]("routeEditor.enableFailover")+"",k,w,C,E,y=l[1]&&Oc(l),T=l[2]&&Nc(l);return{c(){s=r("div"),e=r("div"),n=r("span"),a=_(l[0]),i=h(),y&&y.c(),u=h(),c=r("div"),f=r("div"),d=r("label"),p=r("input"),m=h(),g=r("span"),k=_(b),w=h(),T&&T.c(),o(n,"class","label-text font-semibold"),o(e,"class","label"),o(p,"type","checkbox"),o(p,"class","checkbox"),o(g,"class","label-text"),o(d,"class","label cursor-pointer justify-start gap-4"),o(f,"class","form-control"),o(c,"class","space-y-4"),o(s,"class","form-control w-full")},m(M,R){L(M,s,R),t(s,e),t(e,n),t(n,a),t(e,i),y&&y.m(e,null),t(s,u),t(s,c),t(c,f),t(f,d),t(d,p),p.checked=l[2],t(d,m),t(d,g),t(g,k),t(c,w),T&&T.m(c,null),C||(E=[V(p,"change",l[26]),V(p,"change",l[27])],C=!0)},p(M,R){R[0]&1&&v(a,M[0]),M[1]?y?y.p(M,R):(y=Oc(M),y.c(),y.m(e,null)):y&&(y.d(1),y=null),R[0]&4&&(p.checked=M[2]),R[0]&4194304&&b!==(b=M[22]("routeEditor.enableFailover")+"")&&v(k,b),M[2]?T?T.p(M,R):(T=Nc(M),T.c(),T.m(c,null)):T&&(T.d(1),T=null)},i:ot,o:ot,d(M){M&&H(s),y&&y.d(),T&&T.d(),C=!1,vt(E)}}}function Jc(l){return l.split(",").map(s=>parseInt(s.trim())).filter(s=>!isNaN(s)&&s>=100&&s<600)}function pm(l,s,e){let n;Dt(l,Rt,ge=>e(22,n=ge));let{value:a=void 0}=s,{label:i="Failover"}=s,{showHelp:u=!0}=s,c=!1,f=!1,d=[],p="",m,g,b,k,w,C,E=!1,y,T,M,R,j=[],P="",I,q,D=!1,A,N;function Z(){c=this.checked,e(2,c),e(3,f),e(23,a),e(24,d),e(25,j),e(5,m),e(6,g),e(7,b),e(8,k),e(9,w),e(10,C),e(11,E),e(12,y),e(13,T),e(14,M),e(15,R),e(17,I),e(18,q),e(19,D),e(20,A),e(21,N),e(4,p),e(16,P)}const Q=()=>{e(3,f=!0)};function x(){p=this.value,e(4,p),e(3,f),e(23,a),e(24,d),e(25,j),e(2,c),e(5,m),e(6,g),e(7,b),e(8,k),e(9,w),e(10,C),e(11,E),e(12,y),e(13,T),e(14,M),e(15,R),e(17,I),e(18,q),e(19,D),e(20,A),e(21,N),e(16,P)}function z(){m=Mt(this.value),e(5,m),e(3,f),e(23,a),e(24,d),e(25,j),e(2,c),e(6,g),e(7,b),e(8,k),e(9,w),e(10,C),e(11,E),e(12,y),e(13,T),e(14,M),e(15,R),e(17,I),e(18,q),e(19,D),e(20,A),e(21,N),e(4,p),e(16,P)}function K(){g=Mt(this.value),e(6,g),e(3,f),e(23,a),e(24,d),e(25,j),e(2,c),e(5,m),e(7,b),e(8,k),e(9,w),e(10,C),e(11,E),e(12,y),e(13,T),e(14,M),e(15,R),e(17,I),e(18,q),e(19,D),e(20,A),e(21,N),e(4,p),e(16,P)}function S(){b=Mt(this.value),e(7,b),e(3,f),e(23,a),e(24,d),e(25,j),e(2,c),e(5,m),e(6,g),e(8,k),e(9,w),e(10,C),e(11,E),e(12,y),e(13,T),e(14,M),e(15,R),e(17,I),e(18,q),e(19,D),e(20,A),e(21,N),e(4,p),e(16,P)}function B(){k=Mt(this.value),e(8,k),e(3,f),e(23,a),e(24,d),e(25,j),e(2,c),e(5,m),e(6,g),e(7,b),e(9,w),e(10,C),e(11,E),e(12,y),e(13,T),e(14,M),e(15,R),e(17,I),e(18,q),e(19,D),e(20,A),e(21,N),e(4,p),e(16,P)}function U(){w=Mt(this.value),e(9,w),e(3,f),e(23,a),e(24,d),e(25,j),e(2,c),e(5,m),e(6,g),e(7,b),e(8,k),e(10,C),e(11,E),e(12,y),e(13,T),e(14,M),e(15,R),e(17,I),e(18,q),e(19,D),e(20,A),e(21,N),e(4,p),e(16,P)}function F(){C=Mt(this.value),e(10,C),e(3,f),e(23,a),e(24,d),e(25,j),e(2,c),e(5,m),e(6,g),e(7,b),e(8,k),e(9,w),e(11,E),e(12,y),e(13,T),e(14,M),e(15,R),e(17,I),e(18,q),e(19,D),e(20,A),e(21,N),e(4,p),e(16,P)}function J(){E=this.checked,e(11,E),e(3,f),e(23,a),e(24,d),e(25,j),e(2,c),e(5,m),e(6,g),e(7,b),e(8,k),e(9,w),e(10,C),e(12,y),e(13,T),e(14,M),e(15,R),e(17,I),e(18,q),e(19,D),e(20,A),e(21,N),e(4,p),e(16,P)}function ie(){y=Mt(this.value),e(12,y),e(3,f),e(23,a),e(24,d),e(25,j),e(2,c),e(5,m),e(6,g),e(7,b),e(8,k),e(9,w),e(10,C),e(11,E),e(13,T),e(14,M),e(15,R),e(17,I),e(18,q),e(19,D),e(20,A),e(21,N),e(4,p),e(16,P)}function ue(){T=Mt(this.value),e(13,T),e(3,f),e(23,a),e(24,d),e(25,j),e(2,c),e(5,m),e(6,g),e(7,b),e(8,k),e(9,w),e(10,C),e(11,E),e(12,y),e(14,M),e(15,R),e(17,I),e(18,q),e(19,D),e(20,A),e(21,N),e(4,p),e(16,P)}function ne(){M=this.value,e(14,M),e(3,f),e(23,a),e(24,d),e(25,j),e(2,c),e(5,m),e(6,g),e(7,b),e(8,k),e(9,w),e(10,C),e(11,E),e(12,y),e(13,T),e(15,R),e(17,I),e(18,q),e(19,D),e(20,A),e(21,N),e(4,p),e(16,P)}function $(){R=dl(this),e(15,R),e(3,f),e(23,a),e(24,d),e(25,j),e(2,c),e(5,m),e(6,g),e(7,b),e(8,k),e(9,w),e(10,C),e(11,E),e(12,y),e(13,T),e(14,M),e(17,I),e(18,q),e(19,D),e(20,A),e(21,N),e(4,p),e(16,P)}function te(){P=this.value,e(16,P),e(3,f),e(23,a),e(24,d),e(25,j),e(2,c),e(5,m),e(6,g),e(7,b),e(8,k),e(9,w),e(10,C),e(11,E),e(12,y),e(13,T),e(14,M),e(15,R),e(17,I),e(18,q),e(19,D),e(20,A),e(21,N),e(4,p)}function ae(){I=Mt(this.value),e(17,I),e(3,f),e(23,a),e(24,d),e(25,j),e(2,c),e(5,m),e(6,g),e(7,b),e(8,k),e(9,w),e(10,C),e(11,E),e(12,y),e(13,T),e(14,M),e(15,R),e(18,q),e(19,D),e(20,A),e(21,N),e(4,p),e(16,P)}function ee(){q=Mt(this.value),e(18,q),e(3,f),e(23,a),e(24,d),e(25,j),e(2,c),e(5,m),e(6,g),e(7,b),e(8,k),e(9,w),e(10,C),e(11,E),e(12,y),e(13,T),e(14,M),e(15,R),e(17,I),e(19,D),e(20,A),e(21,N),e(4,p),e(16,P)}function G(){D=this.checked,e(19,D),e(3,f),e(23,a),e(24,d),e(25,j),e(2,c),e(5,m),e(6,g),e(7,b),e(8,k),e(9,w),e(10,C),e(11,E),e(12,y),e(13,T),e(14,M),e(15,R),e(17,I),e(18,q),e(20,A),e(21,N),e(4,p),e(16,P)}function pe(){A=Mt(this.value),e(20,A),e(3,f),e(23,a),e(24,d),e(25,j),e(2,c),e(5,m),e(6,g),e(7,b),e(8,k),e(9,w),e(10,C),e(11,E),e(12,y),e(13,T),e(14,M),e(15,R),e(17,I),e(18,q),e(19,D),e(21,N),e(4,p),e(16,P)}function oe(){N=Mt(this.value),e(21,N),e(3,f),e(23,a),e(24,d),e(25,j),e(2,c),e(5,m),e(6,g),e(7,b),e(8,k),e(9,w),e(10,C),e(11,E),e(12,y),e(13,T),e(14,M),e(15,R),e(17,I),e(18,q),e(19,D),e(20,A),e(4,p),e(16,P)}return l.$$set=ge=>{"value"in ge&&e(23,a=ge.value),"label"in ge&&e(0,i=ge.label),"showHelp"in ge&&e(1,u=ge.showHelp)},l.$$.update=()=>{l.$$.dirty[0]&62849004&&(!f&&a&&(e(2,c=a.enabled||!1),e(24,d=a.retryableStatusCodes||[500,502,503,504]),e(4,p=d.join(", ")),e(5,m=a.consecutiveFailuresThreshold),e(6,g=a.healthyThreshold),e(7,b=a.requestTimeoutMs),e(8,k=a.connectTimeoutMs),e(9,w=a.recoveryIntervalMs),e(10,C=a.recoveryTimeoutMs),a.healthCheck&&(e(11,E=a.healthCheck.enabled||!1),e(12,y=a.healthCheck.intervalMs),e(13,T=a.healthCheck.timeoutMs),e(14,M=a.healthCheck.path),e(15,R=a.healthCheck.method),e(25,j=a.healthCheck.expectedStatus||[200]),e(16,P=j.join(", ")),e(17,I=a.healthCheck.unhealthyThreshold),e(18,q=a.healthCheck.healthyThreshold)),a.slowStart&&(e(19,D=a.slowStart.enabled||!1),e(20,A=a.slowStart.durationMs),e(21,N=a.slowStart.initialWeightFactor)),e(3,f=!0)),c?a?(e(23,a.enabled=!0,a),e(23,a.retryableStatusCodes=d.length>0?d:[500,502,503,504],a),m!==void 0&&e(23,a.consecutiveFailuresThreshold=m,a),g!==void 0&&e(23,a.healthyThreshold=g,a),b!==void 0&&e(23,a.requestTimeoutMs=b,a),k!==void 0&&e(23,a.connectTimeoutMs=k,a),w!==void 0&&e(23,a.recoveryIntervalMs=w,a),C!==void 0&&e(23,a.recoveryTimeoutMs=C,a),E?e(23,a.healthCheck={enabled:!0,intervalMs:y,timeoutMs:T,path:M,method:R,expectedStatus:j.length>0?j:[200],unhealthyThreshold:I,healthyThreshold:q},a):e(23,a.healthCheck=void 0,a),D?e(23,a.slowStart={enabled:!0,durationMs:A,initialWeightFactor:N},a):e(23,a.slowStart=void 0,a)):e(23,a={enabled:!0,retryableStatusCodes:d.length>0?d:[500,502,503,504]}):e(23,a=void 0)),l.$$.dirty[0]&16&&e(24,d=Jc(p)),l.$$.dirty[0]&65536&&e(25,j=Jc(P))},[i,u,c,f,p,m,g,b,k,w,C,E,y,T,M,R,P,I,q,D,A,N,n,a,d,j,Z,Q,x,z,K,S,B,U,F,J,ie,ue,ne,$,te,ae,ee,G,pe,oe]}class hm extends Nt{constructor(s){super(),Ut(this,s,pm,dm,Vt,{value:23,label:0,showHelp:1},null,[-1,-1])}}function mm(l){let s,e,n,a=l[1]("routeEditor.failoverTitle")+"",i,u,c,f=l[1]("routeEditor.failoverHelp")+"",d,p,m,g,b;function k(C){l[2](C)}let w={label:l[1]("routeEditor.failoverTitle"),showHelp:!0,showLabel:!1};return l[0].failover!==void 0&&(w.value=l[0].failover),m=new hm({props:w}),Sl.push(()=>Ml(m,"value",k)),{c(){s=r("div"),e=r("div"),n=r("h3"),i=_(a),u=h(),c=r("p"),d=_(f),p=h(),Et(m.$$.fragment),o(n,"class","text-lg font-semibold"),o(c,"class","text-sm text-gray-500 mt-1"),o(s,"class","space-y-4")},m(C,E){L(C,s,E),t(s,e),t(e,n),t(n,i),t(e,u),t(e,c),t(c,d),t(s,p),Ct(m,s,null),b=!0},p(C,[E]){(!b||E&2)&&a!==(a=C[1]("routeEditor.failoverTitle")+"")&&v(i,a),(!b||E&2)&&f!==(f=C[1]("routeEditor.failoverHelp")+"")&&v(d,f);const y={};E&2&&(y.label=C[1]("routeEditor.failoverTitle")),!g&&E&1&&(g=!0,y.value=C[0].failover,Rl(()=>g=!1)),m.$set(y)},i(C){b||(et(m.$$.fragment,C),b=!0)},o(C){st(m.$$.fragment,C),b=!1},d(C){C&&H(s),yt(m)}}}function gm(l,s,e){let n;Dt(l,Rt,u=>e(1,n=u));let{route:a}=s;function i(u){l.$$.not_equal(a.failover,u)&&(a.failover=u,e(0,a))}return l.$$set=u=>{"route"in u&&e(0,a=u.route)},[a,n,i]}class _m extends Nt{constructor(s){super(),Ut(this,s,gm,mm,Vt,{route:0})}}function Wc(l,s,e){const n=l.slice();return n[8]=s[e],n[10]=e,n}function Gc(l){let s;return{c(){s=r("span"),s.textContent="Transformer",o(s,"class","badge badge-xs badge-info ml-2")},m(e,n){L(e,s,n)},d(e){e&&H(s)}}}function Kc(l){let s,e,n=(l[8].priority||l[10]+1)+"",a,i,u,c,f=(l[8].target||l[4]("routeEditor.notSet"))+"",d,p,m,g,b=l[4]("upstream.weight")+"",k,w,C=(l[8].weight||100)+"",E,y,T,M=l[8].plugins&&l[8].plugins.length>0&&Gc();return{c(){s=r("div"),e=r("div"),a=_(n),i=h(),u=r("div"),c=r("div"),d=_(f),m=h(),g=r("div"),k=_(b),w=_(": "),E=_(C),y=h(),M&&M.c(),T=h(),o(e,"class","badge badge-primary"),o(c,"class","font-medium text-sm truncate"),o(c,"title",p=l[8].target),o(g,"class","text-xs text-gray-500"),o(u,"class","flex-1"),o(s,"class","flex items-center gap-3 p-3 bg-base-100 rounded-lg")},m(R,j){L(R,s,j),t(s,e),t(e,a),t(s,i),t(s,u),t(u,c),t(c,d),t(u,m),t(u,g),t(g,k),t(g,w),t(g,E),t(g,y),M&&M.m(g,null),t(s,T)},p(R,j){j&1&&n!==(n=(R[8].priority||R[10]+1)+"")&&v(a,n),j&17&&f!==(f=(R[8].target||R[4]("routeEditor.notSet"))+"")&&v(d,f),j&1&&p!==(p=R[8].target)&&o(c,"title",p),j&16&&b!==(b=R[4]("upstream.weight")+"")&&v(k,b),j&1&&C!==(C=(R[8].weight||100)+"")&&v(E,C),R[8].plugins&&R[8].plugins.length>0?M||(M=Gc(),M.c(),M.m(g,null)):M&&(M.d(1),M=null)},d(R){R&&H(s),M&&M.d()}}}function Yc(l){let s,e,n,a,i,u,c,f,d,p,m=l[4]("common.copy")+"",g,b,k;return{c(){s=r("div"),e=r("pre"),n=r("code"),a=_(l[3]),i=h(),u=r("div"),c=r("button"),f=re("svg"),d=re("path"),p=h(),g=_(m),o(s,"class","mockup-code mt-4"),o(d,"stroke-linecap","round"),o(d,"stroke-linejoin","round"),o(d,"stroke-width","2"),o(d,"d","M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"),o(f,"xmlns","http://www.w3.org/2000/svg"),o(f,"class","h-4 w-4"),o(f,"fill","none"),o(f,"viewBox","0 0 24 24"),o(f,"stroke","currentColor"),o(c,"type","button"),o(c,"class","btn btn-sm btn-outline"),o(u,"class","card-actions justify-end mt-4")},m(w,C){L(w,s,C),t(s,e),t(e,n),t(n,a),L(w,i,C),L(w,u,C),t(u,c),t(c,f),t(f,d),t(c,p),t(c,g),b||(k=V(c,"click",l[7]),b=!0)},p(w,C){C&8&&v(a,w[3]),C&16&&m!==(m=w[4]("common.copy")+"")&&v(g,m)},d(w){w&&(H(s),H(i),H(u)),b=!1,k()}}}function Qc(l){let s,e,n,a,i=l[4]("auth.routeAuth")+"",u;return{c(){s=r("div"),e=r("div"),e.textContent="\u2713",n=h(),a=r("div"),u=_(i),o(e,"class","badge badge-sm badge-success"),o(a,"class","text-sm"),o(s,"class","flex items-center gap-3")},m(c,f){L(c,s,f),t(s,e),t(s,n),t(s,a),t(a,u)},p(c,f){f&16&&i!==(i=c[4]("auth.routeAuth")+"")&&v(u,i)},d(c){c&&H(s)}}}function Zc(l){let s,e,n,a,i=l[4]("routeEditor.pathRewrite")+"",u;return{c(){s=r("div"),e=r("div"),e.textContent="\u2192",n=h(),a=r("div"),u=_(i),o(e,"class","badge badge-sm badge-info"),o(a,"class","text-sm"),o(s,"class","flex items-center gap-3")},m(c,f){L(c,s,f),t(s,e),t(s,n),t(s,a),t(a,u)},p(c,f){f&16&&i!==(i=c[4]("routeEditor.pathRewrite")+"")&&v(u,i)},d(c){c&&H(s)}}}function Xc(l){let s,e,n,a,i=l[4]("routeEditor.transformer")+"",u;return{c(){s=r("div"),e=r("div"),e.textContent="\u26A1",n=h(),a=r("div"),u=_(i),o(e,"class","badge badge-sm badge-warning"),o(a,"class","text-sm"),o(s,"class","flex items-center gap-3")},m(c,f){L(c,s,f),t(s,e),t(s,n),t(s,a),t(a,u)},p(c,f){f&16&&i!==(i=c[4]("routeEditor.transformer")+"")&&v(u,i)},d(c){c&&H(s)}}}function xc(l){let s,e=l[4]("routeEditor.failoverEnabled")+"",n;return{c(){s=r("span"),n=_(e),o(s,"class","badge badge-xs badge-success ml-1")},m(a,i){L(a,s,i),t(s,n)},p(a,i){i&16&&e!==(e=a[4]("routeEditor.failoverEnabled")+"")&&v(n,e)},d(a){a&&H(s)}}}function bm(l){let s,e,n,a=l[4]("routeEditor.preview")+"",i,u,c,f=l[4]("routeEditor.previewHelp")+"",d,p,m,g,b,k=l[4]("routeEditor.upstreams")+"",w,C,E,y=l[2].upstreamsCount+"",T,M,R,j=l[4]("routeEditor.totalWeight")+"",P,I,q=l[2].totalWeight+"",D,A,N,Z,Q=l[4]("routeEditor.features")+"",x,z,K,S=[l[2].hasAuth,l[2].hasFailover,l[2].hasTransformer,l[2].hasPathRewrite].filter(Boolean).length+"",B,U,F,J=l[4]("routeEditor.featuresEnabled")+"",ie,ue,ne,$,te=l[4]("routes.path")+"",ae,ee,G,pe=(l[0].path||l[4]("routeEditor.notSet"))+"",oe,ge,he,ye,ze=l[4]("routeEditor.routePath")+"",Pe,we,Fe,Je,je,Le=l[4]("routeEditor.enabledFeatures")+"",Se,fe,_e,Ie,De,se=l[2].hasAuth?"\u2713":"\u25CB",ke,me,Ee,Ve,Be=l[4]("auth.routeAuth")+"",nt,Ne,Qe,Ye,ve=l[2].hasFailover?"\u2713":"\u25CB",de,Te,Ze,Me,Ue=l[4]("routeEditor.failoverTitle")+"",Ce,mt,Ge,ce,qe=l[2].hasTransformer?"\u2713":"\u25CB",Re,dt,We,O,He=l[4]("routeEditor.transformer")+"",X,ft,Ht,Ke,_t=l[2].hasPathRewrite?"\u2713":"\u25CB",tt,it,Oe,Xe,It=l[4]("routeEditor.pathRewrite")+"",rt,gt,wt,pt,bl,at=l[4]("routeEditor.upstreams")+"",St,ht,Tt,vl,At,hl,ml,ql,Jt=l[4]("routeEditor.jsonConfig")+"",Yl,Yt,Qt,Hl=(l[1]?l[4]("common.hide"):l[4]("common.show"))+"",Bl,gl,sl,Ql,Ft,Ll,Vl=l[4]("routeEditor.requestFlow")+"",Jl,Cl,zt,Zl,Lt,Pl,jl,$l,xt=l[4]("routeEditor.clientRequest")+"",kl,es,zl,Il=(l[0].path||"/")+"",Wl,Ls,ol,wl,nl,Ol,al,_l,tl,Dl,Nl,El=l[4]("routeEditor.selectUpstream")+"",Wt,Bt,Pt,$t=l[2].upstreamsCount+"",el,Kt,Zt=l[4]("routeEditor.upstreams")+"",rl,Xt,$e,Al,ts,Xl,xl,ls=l[4]("routeEditor.returnResponse")+"",Ds,ss,Os,il=ut(l[0].upstreams),Ot=[];for(let xe=0;xe<il.length;xe+=1)Ot[xe]=Kc(Wc(l,il,xe));let lt=l[1]&&Yc(l),ct=l[2].hasAuth&&Qc(l),ll=l[2].hasPathRewrite&&Zc(l),Tl=l[2].hasTransformer&&Xc(l),ul=l[2].hasFailover&&xc(l);return{c(){s=r("div"),e=r("div"),n=r("h3"),i=_(a),u=h(),c=r("p"),d=_(f),p=h(),m=r("div"),g=r("div"),b=r("div"),w=_(k),C=h(),E=r("div"),T=_(y),M=h(),R=r("div"),P=_(j),I=_(": "),D=_(q),A=h(),N=r("div"),Z=r("div"),x=_(Q),z=h(),K=r("div"),B=_(S),U=h(),F=r("div"),ie=_(J),ue=h(),ne=r("div"),$=r("div"),ae=_(te),ee=h(),G=r("div"),oe=_(pe),he=h(),ye=r("div"),Pe=_(ze),we=h(),Fe=r("div"),Je=r("div"),je=r("h4"),Se=_(Le),fe=h(),_e=r("div"),Ie=r("div"),De=r("div"),ke=_(se),Ee=h(),Ve=r("span"),nt=_(Be),Ne=h(),Qe=r("div"),Ye=r("div"),de=_(ve),Ze=h(),Me=r("span"),Ce=_(Ue),mt=h(),Ge=r("div"),ce=r("div"),Re=_(qe),We=h(),O=r("span"),X=_(He),ft=h(),Ht=r("div"),Ke=r("div"),tt=_(_t),Oe=h(),Xe=r("span"),rt=_(It),gt=h(),wt=r("div"),pt=r("div"),bl=r("h4"),St=_(at),ht=h(),Tt=r("div");for(let xe=0;xe<Ot.length;xe+=1)Ot[xe].c();vl=h(),At=r("div"),hl=r("div"),ml=r("div"),ql=r("h4"),Yl=_(Jt),Yt=h(),Qt=r("button"),Bl=_(Hl),gl=h(),lt&&lt.c(),sl=h(),Ql=r("div"),Ft=r("div"),Ll=r("h4"),Jl=_(Vl),Cl=h(),zt=r("div"),Zl=r("div"),Lt=r("div"),Lt.textContent="1",Pl=h(),jl=r("div"),$l=r("div"),kl=_(xt),es=h(),zl=r("div"),Wl=_(Il),Ls=h(),ol=r("div"),ct&&ct.c(),wl=h(),ll&&ll.c(),nl=h(),Tl&&Tl.c(),Ol=h(),al=r("div"),_l=r("div"),_l.textContent="2",tl=h(),Dl=r("div"),Nl=r("div"),Wt=_(El),Bt=h(),Pt=r("div"),el=_($t),Kt=h(),rl=_(Zt),Xt=h(),ul&&ul.c(),$e=h(),Al=r("div"),ts=r("div"),ts.textContent="3",Xl=h(),xl=r("div"),Ds=_(ls),o(n,"class","text-lg font-semibold"),o(c,"class","text-sm text-gray-500 mt-1"),o(b,"class","stat-title"),o(E,"class","stat-value text-primary"),o(R,"class","stat-desc"),o(g,"class","stat bg-base-200 rounded-lg"),o(Z,"class","stat-title"),o(K,"class","stat-value text-2xl"),o(F,"class","stat-desc"),o(N,"class","stat bg-base-200 rounded-lg"),o($,"class","stat-title"),o(G,"class","stat-value text-sm truncate"),o(G,"title",ge=l[0].path),o(ye,"class","stat-desc"),o(ne,"class","stat bg-base-200 rounded-lg"),o(m,"class","grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4"),o(je,"class","card-title text-base"),o(De,"class",me=\`badge \${l[2].hasAuth?"badge-success":"badge-ghost"}\`),o(Ve,"class","text-sm"),o(Ie,"class","flex items-center gap-2"),o(Ye,"class",Te=\`badge \${l[2].hasFailover?"badge-success":"badge-ghost"}\`),o(Me,"class","text-sm"),o(Qe,"class","flex items-center gap-2"),o(ce,"class",dt=\`badge \${l[2].hasTransformer?"badge-success":"badge-ghost"}\`),o(O,"class","text-sm"),o(Ge,"class","flex items-center gap-2"),o(Ke,"class",it=\`badge \${l[2].hasPathRewrite?"badge-success":"badge-ghost"}\`),o(Xe,"class","text-sm"),o(Ht,"class","flex items-center gap-2"),o(_e,"class","space-y-2"),o(Je,"class","card-body"),o(Fe,"class","card bg-base-200"),o(bl,"class","card-title text-base"),o(Tt,"class","space-y-2"),o(pt,"class","card-body"),o(wt,"class","card bg-base-200"),o(ql,"class","card-title text-base"),o(Qt,"type","button"),o(Qt,"class","btn btn-sm btn-ghost"),o(ml,"class","flex justify-between items-center"),o(hl,"class","card-body"),o(At,"class","card bg-base-200"),o(Ll,"class","card-title text-base"),o(Lt,"class","badge badge-lg badge-neutral"),o($l,"class","font-medium"),o(zl,"class","text-xs text-gray-500"),o(jl,"class","flex-1"),o(Zl,"class","flex items-center gap-3"),o(_l,"class","badge badge-lg badge-primary"),o(Nl,"class","font-medium"),o(Pt,"class","text-xs text-gray-500"),o(Dl,"class","flex-1"),o(al,"class","flex items-center gap-3"),o(ts,"class","badge badge-lg badge-accent"),o(xl,"class","font-medium"),o(Al,"class","flex items-center gap-3"),o(ol,"class","ml-6 border-l-2 border-base-300 pl-4 space-y-3"),o(zt,"class","flex flex-col gap-3 mt-4"),o(Ft,"class","card-body"),o(Ql,"class","card bg-base-200"),o(s,"class","space-y-6")},m(xe,bt){L(xe,s,bt),t(s,e),t(e,n),t(n,i),t(e,u),t(e,c),t(c,d),t(s,p),t(s,m),t(m,g),t(g,b),t(b,w),t(g,C),t(g,E),t(E,T),t(g,M),t(g,R),t(R,P),t(R,I),t(R,D),t(m,A),t(m,N),t(N,Z),t(Z,x),t(N,z),t(N,K),t(K,B),t(N,U),t(N,F),t(F,ie),t(m,ue),t(m,ne),t(ne,$),t($,ae),t(ne,ee),t(ne,G),t(G,oe),t(ne,he),t(ne,ye),t(ye,Pe),t(s,we),t(s,Fe),t(Fe,Je),t(Je,je),t(je,Se),t(Je,fe),t(Je,_e),t(_e,Ie),t(Ie,De),t(De,ke),t(Ie,Ee),t(Ie,Ve),t(Ve,nt),t(_e,Ne),t(_e,Qe),t(Qe,Ye),t(Ye,de),t(Qe,Ze),t(Qe,Me),t(Me,Ce),t(_e,mt),t(_e,Ge),t(Ge,ce),t(ce,Re),t(Ge,We),t(Ge,O),t(O,X),t(_e,ft),t(_e,Ht),t(Ht,Ke),t(Ke,tt),t(Ht,Oe),t(Ht,Xe),t(Xe,rt),t(s,gt),t(s,wt),t(wt,pt),t(pt,bl),t(bl,St),t(pt,ht),t(pt,Tt);for(let fl=0;fl<Ot.length;fl+=1)Ot[fl]&&Ot[fl].m(Tt,null);t(s,vl),t(s,At),t(At,hl),t(hl,ml),t(ml,ql),t(ql,Yl),t(ml,Yt),t(ml,Qt),t(Qt,Bl),t(hl,gl),lt&&lt.m(hl,null),t(s,sl),t(s,Ql),t(Ql,Ft),t(Ft,Ll),t(Ll,Jl),t(Ft,Cl),t(Ft,zt),t(zt,Zl),t(Zl,Lt),t(Zl,Pl),t(Zl,jl),t(jl,$l),t($l,kl),t(jl,es),t(jl,zl),t(zl,Wl),t(zt,Ls),t(zt,ol),ct&&ct.m(ol,null),t(ol,wl),ll&&ll.m(ol,null),t(ol,nl),Tl&&Tl.m(ol,null),t(ol,Ol),t(ol,al),t(al,_l),t(al,tl),t(al,Dl),t(Dl,Nl),t(Nl,Wt),t(Dl,Bt),t(Dl,Pt),t(Pt,el),t(Pt,Kt),t(Pt,rl),t(Pt,Xt),ul&&ul.m(Pt,null),t(ol,$e),t(ol,Al),t(Al,ts),t(Al,Xl),t(Al,xl),t(xl,Ds),ss||(Os=V(Qt,"click",l[6]),ss=!0)},p(xe,[bt]){if(bt&16&&a!==(a=xe[4]("routeEditor.preview")+"")&&v(i,a),bt&16&&f!==(f=xe[4]("routeEditor.previewHelp")+"")&&v(d,f),bt&16&&k!==(k=xe[4]("routeEditor.upstreams")+"")&&v(w,k),bt&4&&y!==(y=xe[2].upstreamsCount+"")&&v(T,y),bt&16&&j!==(j=xe[4]("routeEditor.totalWeight")+"")&&v(P,j),bt&4&&q!==(q=xe[2].totalWeight+"")&&v(D,q),bt&16&&Q!==(Q=xe[4]("routeEditor.features")+"")&&v(x,Q),bt&4&&S!==(S=[xe[2].hasAuth,xe[2].hasFailover,xe[2].hasTransformer,xe[2].hasPathRewrite].filter(Boolean).length+"")&&v(B,S),bt&16&&J!==(J=xe[4]("routeEditor.featuresEnabled")+"")&&v(ie,J),bt&16&&te!==(te=xe[4]("routes.path")+"")&&v(ae,te),bt&17&&pe!==(pe=(xe[0].path||xe[4]("routeEditor.notSet"))+"")&&v(oe,pe),bt&1&&ge!==(ge=xe[0].path)&&o(G,"title",ge),bt&16&&ze!==(ze=xe[4]("routeEditor.routePath")+"")&&v(Pe,ze),bt&16&&Le!==(Le=xe[4]("routeEditor.enabledFeatures")+"")&&v(Se,Le),bt&4&&se!==(se=xe[2].hasAuth?"\u2713":"\u25CB")&&v(ke,se),bt&4&&me!==(me=\`badge \${xe[2].hasAuth?"badge-success":"badge-ghost"}\`)&&o(De,"class",me),bt&16&&Be!==(Be=xe[4]("auth.routeAuth")+"")&&v(nt,Be),bt&4&&ve!==(ve=xe[2].hasFailover?"\u2713":"\u25CB")&&v(de,ve),bt&4&&Te!==(Te=\`badge \${xe[2].hasFailover?"badge-success":"badge-ghost"}\`)&&o(Ye,"class",Te),bt&16&&Ue!==(Ue=xe[4]("routeEditor.failoverTitle")+"")&&v(Ce,Ue),bt&4&&qe!==(qe=xe[2].hasTransformer?"\u2713":"\u25CB")&&v(Re,qe),bt&4&&dt!==(dt=\`badge \${xe[2].hasTransformer?"badge-success":"badge-ghost"}\`)&&o(ce,"class",dt),bt&16&&He!==(He=xe[4]("routeEditor.transformer")+"")&&v(X,He),bt&4&&_t!==(_t=xe[2].hasPathRewrite?"\u2713":"\u25CB")&&v(tt,_t),bt&4&&it!==(it=\`badge \${xe[2].hasPathRewrite?"badge-success":"badge-ghost"}\`)&&o(Ke,"class",it),bt&16&&It!==(It=xe[4]("routeEditor.pathRewrite")+"")&&v(rt,It),bt&16&&at!==(at=xe[4]("routeEditor.upstreams")+"")&&v(St,at),bt&17){il=ut(xe[0].upstreams);let fl;for(fl=0;fl<il.length;fl+=1){const xn=Wc(xe,il,fl);Ot[fl]?Ot[fl].p(xn,bt):(Ot[fl]=Kc(xn),Ot[fl].c(),Ot[fl].m(Tt,null))}for(;fl<Ot.length;fl+=1)Ot[fl].d(1);Ot.length=il.length}bt&16&&Jt!==(Jt=xe[4]("routeEditor.jsonConfig")+"")&&v(Yl,Jt),bt&18&&Hl!==(Hl=(xe[1]?xe[4]("common.hide"):xe[4]("common.show"))+"")&&v(Bl,Hl),xe[1]?lt?lt.p(xe,bt):(lt=Yc(xe),lt.c(),lt.m(hl,null)):lt&&(lt.d(1),lt=null),bt&16&&Vl!==(Vl=xe[4]("routeEditor.requestFlow")+"")&&v(Jl,Vl),bt&16&&xt!==(xt=xe[4]("routeEditor.clientRequest")+"")&&v(kl,xt),bt&1&&Il!==(Il=(xe[0].path||"/")+"")&&v(Wl,Il),xe[2].hasAuth?ct?ct.p(xe,bt):(ct=Qc(xe),ct.c(),ct.m(ol,wl)):ct&&(ct.d(1),ct=null),xe[2].hasPathRewrite?ll?ll.p(xe,bt):(ll=Zc(xe),ll.c(),ll.m(ol,nl)):ll&&(ll.d(1),ll=null),xe[2].hasTransformer?Tl?Tl.p(xe,bt):(Tl=Xc(xe),Tl.c(),Tl.m(ol,Ol)):Tl&&(Tl.d(1),Tl=null),bt&16&&El!==(El=xe[4]("routeEditor.selectUpstream")+"")&&v(Wt,El),bt&4&&$t!==($t=xe[2].upstreamsCount+"")&&v(el,$t),bt&16&&Zt!==(Zt=xe[4]("routeEditor.upstreams")+"")&&v(rl,Zt),xe[2].hasFailover?ul?ul.p(xe,bt):(ul=xc(xe),ul.c(),ul.m(Pt,null)):ul&&(ul.d(1),ul=null),bt&16&&ls!==(ls=xe[4]("routeEditor.returnResponse")+"")&&v(Ds,ls)},i:ot,o:ot,d(xe){xe&&H(s),Gt(Ot,xe),lt&&lt.d(),ct&&ct.d(),ll&&ll.d(),Tl&&Tl.d(),ul&&ul.d(),ss=!1,Os()}}}function vm(l,s,e){let n,a,i,u;Dt(l,Rt,m=>e(4,u=m));let{route:c}=s,f=!1;const d=()=>e(1,f=!f),p=()=>{navigator.clipboard.writeText(a),alert(u("common.copied"))};return l.$$set=m=>{"route"in m&&e(0,c=m.route)},l.$$.update=()=>{l.$$.dirty&1&&e(5,n={...c,upstreams:c.upstreams.map(({_uid:m,...g})=>g)}),l.$$.dirty&32&&e(3,a=JSON.stringify(n,null,2)),l.$$.dirty&1&&e(2,i={upstreamsCount:c.upstreams.length,hasAuth:c.auth?.enabled||!1,hasFailover:c.failover?.enabled||!1,hasTransformer:c.plugins&&c.plugins.length>0||!1,hasPathRewrite:c.pathRewrite&&Object.keys(c.pathRewrite).length>0,totalWeight:c.upstreams.reduce((m,g)=>m+(g.weight||100),0)})},[c,f,i,a,u,n,d,p]}class km extends Nt{constructor(s){super(),Ut(this,s,vm,bm,Vt,{route:0})}}function $c(l,s,e){const n=l.slice();return n[52]=s[e],n}function ed(l){let s,e;return{c(){s=r("code"),e=_(l[2]),o(s,"class","px-2 py-1 bg-base-200 rounded text-sm font-mono text-gray-600")},m(n,a){L(n,s,a),t(s,e)},p(n,a){a[0]&4&&v(e,n[2])},d(n){n&&H(s)}}}function wm(l){let s,e,n,a,i,u,c,f,d,p=l[16]("routeEditor.basicInfo")+"",m,g,b,k,w,C,E,y=l[16]("routeEditor.upstreams")+"",T,M,R,j=l[0].upstreams.length+"",P,I,q,D,A,N,Z,Q,x=l[16]("routeEditor.requestModification")+"",z,K,S,B,U,F,J,ie=l[16]("auth.routeAuth")+"",ue,ne,$,te,ae,ee,G,pe,oe=l[16]("routeEditor.failoverTitle")+"",ge,he,ye,ze,Pe,we,Fe,Je,je,Le=l[16]("routeEditor.preview")+"",Se,fe,_e,Ie,De=l[16]("shortcuts.title")+"",se,ke,me,Ee,Ve,Be,nt,Ne,Qe,Ye=l[16]("shortcuts.save")+"",ve,de,Te,Ze,Me,Ue,Ce,mt,Ge=l[16]("shortcuts.switchSection")+"",ce,qe,Re,dt,We,O,He=l[16]("shortcuts.cancel")+"",X,ft,Ht,Ke,_t,tt,it,Oe,Xe,It,rt,gt=l[0].auth?.enabled&&td(),wt=l[0].failover?.enabled&&ld(),pt=!l[1]&&sd(l);const bl=[Rm,Mm,Sm,Tm,Em,Cm],at=[];function St(ht,Tt){return ht[6]==="basic"?0:ht[6]==="upstreams"?1:ht[6]==="modification"?2:ht[6]==="auth"?3:ht[6]==="failover"?4:ht[6]==="preview"?5:-1}return~(it=St(l))&&(Oe=at[it]=bl[it](l)),{c(){s=r("div"),e=r("div"),n=r("div"),a=r("ul"),i=r("li"),u=r("button"),c=re("svg"),f=re("path"),d=h(),m=_(p),g=h(),b=r("li"),k=r("button"),w=re("svg"),C=re("path"),E=h(),T=_(y),M=h(),R=r("span"),P=_(j),q=h(),D=r("li"),A=r("button"),N=re("svg"),Z=re("path"),Q=h(),z=_(x),K=h(),S=r("li"),B=r("button"),U=re("svg"),F=re("path"),J=h(),ue=_(ie),ne=h(),gt&&gt.c(),$=h(),te=r("li"),ae=r("button"),ee=re("svg"),G=re("path"),pe=h(),ge=_(oe),he=h(),wt&&wt.c(),ye=h(),ze=r("li"),Pe=r("button"),we=re("svg"),Fe=re("path"),Je=re("path"),je=h(),Se=_(Le),fe=h(),_e=r("div"),Ie=r("div"),se=_(De),ke=h(),me=r("div"),Ee=r("div"),Ve=r("kbd"),Ve.textContent="\u2318",Be=_(" + "),nt=r("kbd"),nt.textContent="S",Ne=h(),Qe=r("span"),ve=_(Ye),de=h(),Te=r("div"),Ze=r("kbd"),Ze.textContent="Ctrl",Me=_(" + "),Ue=r("kbd"),Ue.textContent="1-6",Ce=h(),mt=r("span"),ce=_(Ge),qe=h(),Re=r("div"),dt=r("kbd"),dt.textContent="Esc",We=h(),O=r("span"),X=_(He),ft=h(),pt&&pt.c(),Ht=h(),Ke=r("div"),_t=r("div"),tt=r("div"),Oe&&Oe.c(),o(f,"stroke-linecap","round"),o(f,"stroke-linejoin","round"),o(f,"stroke-width","2"),o(f,"d","M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"),o(c,"xmlns","http://www.w3.org/2000/svg"),o(c,"class","h-5 w-5"),o(c,"fill","none"),o(c,"viewBox","0 0 24 24"),o(c,"stroke","currentColor"),le(u,"active",l[6]==="basic"),o(C,"stroke-linecap","round"),o(C,"stroke-linejoin","round"),o(C,"stroke-width","2"),o(C,"d","M13 10V3L4 14h7v7l9-11h-7z"),o(w,"xmlns","http://www.w3.org/2000/svg"),o(w,"class","h-5 w-5"),o(w,"fill","none"),o(w,"viewBox","0 0 24 24"),o(w,"stroke","currentColor"),o(R,"class","badge badge-sm tooltip tooltip-right"),o(R,"data-tip",I=l[16]("routeEditor.upstreamCountTooltip",{values:{count:l[0].upstreams.length}})),le(k,"active",l[6]==="upstreams"),o(Z,"stroke-linecap","round"),o(Z,"stroke-linejoin","round"),o(Z,"stroke-width","2"),o(Z,"d","M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z"),o(N,"xmlns","http://www.w3.org/2000/svg"),o(N,"class","h-5 w-5"),o(N,"fill","none"),o(N,"viewBox","0 0 24 24"),o(N,"stroke","currentColor"),le(A,"active",l[6]==="modification"),o(F,"stroke-linecap","round"),o(F,"stroke-linejoin","round"),o(F,"stroke-width","2"),o(F,"d","M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z"),o(U,"xmlns","http://www.w3.org/2000/svg"),o(U,"class","h-5 w-5"),o(U,"fill","none"),o(U,"viewBox","0 0 24 24"),o(U,"stroke","currentColor"),le(B,"active",l[6]==="auth"),o(G,"stroke-linecap","round"),o(G,"stroke-linejoin","round"),o(G,"stroke-width","2"),o(G,"d","M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"),o(ee,"xmlns","http://www.w3.org/2000/svg"),o(ee,"class","h-5 w-5"),o(ee,"fill","none"),o(ee,"viewBox","0 0 24 24"),o(ee,"stroke","currentColor"),le(ae,"active",l[6]==="failover"),o(Fe,"stroke-linecap","round"),o(Fe,"stroke-linejoin","round"),o(Fe,"stroke-width","2"),o(Fe,"d","M15 12a3 3 0 11-6 0 3 3 0 016 0z"),o(Je,"stroke-linecap","round"),o(Je,"stroke-linejoin","round"),o(Je,"stroke-width","2"),o(Je,"d","M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z"),o(we,"xmlns","http://www.w3.org/2000/svg"),o(we,"class","h-5 w-5"),o(we,"fill","none"),o(we,"viewBox","0 0 24 24"),o(we,"stroke","currentColor"),le(Pe,"active",l[6]==="preview"),o(a,"class","menu bg-base-100 rounded-box shadow-lg gap-1"),o(Ie,"class","font-semibold mb-2"),o(Ve,"class","kbd kbd-xs"),o(nt,"class","kbd kbd-xs"),o(Qe,"class","ml-1"),o(Ze,"class","kbd kbd-xs"),o(Ue,"class","kbd kbd-xs"),o(mt,"class","ml-1"),o(dt,"class","kbd kbd-xs"),o(O,"class","ml-1"),o(me,"class","space-y-1 text-gray-500"),o(_e,"class","mt-4 p-3 bg-base-100 rounded-box shadow-lg text-xs"),o(n,"class","sticky top-24"),o(e,"class","w-56 flex-shrink-0 relative z-10"),o(tt,"class","card-body"),o(_t,"class","card bg-base-100 shadow-md"),o(Ke,"class","flex-1 ml-6 relative"),o(s,"class","max-w-7xl mx-auto flex gap-0 p-6 pb-32")},m(ht,Tt){L(ht,s,Tt),t(s,e),t(e,n),t(n,a),t(a,i),t(i,u),t(u,c),t(c,f),t(u,d),t(u,m),t(a,g),t(a,b),t(b,k),t(k,w),t(w,C),t(k,E),t(k,T),t(k,M),t(k,R),t(R,P),t(a,q),t(a,D),t(D,A),t(A,N),t(N,Z),t(A,Q),t(A,z),t(a,K),t(a,S),t(S,B),t(B,U),t(U,F),t(B,J),t(B,ue),t(B,ne),gt&&gt.m(B,null),t(a,$),t(a,te),t(te,ae),t(ae,ee),t(ee,G),t(ae,pe),t(ae,ge),t(ae,he),wt&&wt.m(ae,null),t(a,ye),t(a,ze),t(ze,Pe),t(Pe,we),t(we,Fe),t(we,Je),t(Pe,je),t(Pe,Se),t(n,fe),t(n,_e),t(_e,Ie),t(Ie,se),t(_e,ke),t(_e,me),t(me,Ee),t(Ee,Ve),t(Ee,Be),t(Ee,nt),t(Ee,Ne),t(Ee,Qe),t(Qe,ve),t(me,de),t(me,Te),t(Te,Ze),t(Te,Me),t(Te,Ue),t(Te,Ce),t(Te,mt),t(mt,ce),t(me,qe),t(me,Re),t(Re,dt),t(Re,We),t(Re,O),t(O,X),t(n,ft),pt&&pt.m(n,null),t(s,Ht),t(s,Ke),t(Ke,_t),t(_t,tt),~it&&at[it].m(tt,null),Xe=!0,It||(rt=[V(u,"click",l[27]),V(k,"click",l[28]),V(A,"click",l[29]),V(B,"click",l[30]),V(ae,"click",l[31]),V(Pe,"click",l[32])],It=!0)},p(ht,Tt){(!Xe||Tt[0]&65536)&&p!==(p=ht[16]("routeEditor.basicInfo")+"")&&v(m,p),(!Xe||Tt[0]&64)&&le(u,"active",ht[6]==="basic"),(!Xe||Tt[0]&65536)&&y!==(y=ht[16]("routeEditor.upstreams")+"")&&v(T,y),(!Xe||Tt[0]&1)&&j!==(j=ht[0].upstreams.length+"")&&v(P,j),(!Xe||Tt[0]&65537&&I!==(I=ht[16]("routeEditor.upstreamCountTooltip",{values:{count:ht[0].upstreams.length}})))&&o(R,"data-tip",I),(!Xe||Tt[0]&64)&&le(k,"active",ht[6]==="upstreams"),(!Xe||Tt[0]&65536)&&x!==(x=ht[16]("routeEditor.requestModification")+"")&&v(z,x),(!Xe||Tt[0]&64)&&le(A,"active",ht[6]==="modification"),(!Xe||Tt[0]&65536)&&ie!==(ie=ht[16]("auth.routeAuth")+"")&&v(ue,ie),ht[0].auth?.enabled?gt||(gt=td(),gt.c(),gt.m(B,null)):gt&&(gt.d(1),gt=null),(!Xe||Tt[0]&64)&&le(B,"active",ht[6]==="auth"),(!Xe||Tt[0]&65536)&&oe!==(oe=ht[16]("routeEditor.failoverTitle")+"")&&v(ge,oe),ht[0].failover?.enabled?wt||(wt=ld(),wt.c(),wt.m(ae,null)):wt&&(wt.d(1),wt=null),(!Xe||Tt[0]&64)&&le(ae,"active",ht[6]==="failover"),(!Xe||Tt[0]&65536)&&Le!==(Le=ht[16]("routeEditor.preview")+"")&&v(Se,Le),(!Xe||Tt[0]&64)&&le(Pe,"active",ht[6]==="preview"),(!Xe||Tt[0]&65536)&&De!==(De=ht[16]("shortcuts.title")+"")&&v(se,De),(!Xe||Tt[0]&65536)&&Ye!==(Ye=ht[16]("shortcuts.save")+"")&&v(ve,Ye),(!Xe||Tt[0]&65536)&&Ge!==(Ge=ht[16]("shortcuts.switchSection")+"")&&v(ce,Ge),(!Xe||Tt[0]&65536)&&He!==(He=ht[16]("shortcuts.cancel")+"")&&v(X,He),ht[1]?pt&&(pt.d(1),pt=null):pt?pt.p(ht,Tt):(pt=sd(ht),pt.c(),pt.m(n,null));let vl=it;it=St(ht),it===vl?~it&&at[it].p(ht,Tt):(Oe&&(Gl(),st(at[vl],1,1,()=>{at[vl]=null}),Kl()),~it?(Oe=at[it],Oe?Oe.p(ht,Tt):(Oe=at[it]=bl[it](ht),Oe.c()),et(Oe,1),Oe.m(tt,null)):Oe=null)},i(ht){Xe||(et(Oe),Xe=!0)},o(ht){st(Oe),Xe=!1},d(ht){ht&&H(s),gt&&gt.d(),wt&&wt.d(),pt&&pt.d(),~it&&at[it].d(),It=!1,vt(rt)}}}function ym(l){let s;return{c(){s=r("div"),s.innerHTML='<span class="loading loading-spinner loading-lg"></span>',o(s,"class","flex justify-center items-center h-64")},m(e,n){L(e,s,n)},p:ot,i:ot,o:ot,d(e){e&&H(s)}}}function td(l){let s;return{c(){s=r("span"),s.textContent="\u2713",o(s,"class","badge badge-success badge-xs")},m(e,n){L(e,s,n)},d(e){e&&H(s)}}}function ld(l){let s;return{c(){s=r("span"),s.textContent="\u2713",o(s,"class","badge badge-success badge-xs")},m(e,n){L(e,s,n)},d(e){e&&H(s)}}}function sd(l){let s,e,n,a,i,u=l[16]("routeEditor.useTemplate")+"",c,f,d;return{c(){s=r("div"),e=r("button"),n=re("svg"),a=re("path"),i=h(),c=_(u),o(a,"stroke-linecap","round"),o(a,"stroke-linejoin","round"),o(a,"stroke-width","2"),o(a,"d","M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"),o(n,"xmlns","http://www.w3.org/2000/svg"),o(n,"class","h-4 w-4"),o(n,"fill","none"),o(n,"viewBox","0 0 24 24"),o(n,"stroke","currentColor"),o(e,"type","button"),o(e,"class","btn btn-sm btn-outline w-full gap-2"),o(s,"class","mt-4")},m(p,m){L(p,s,m),t(s,e),t(e,n),t(n,a),t(e,i),t(e,c),f||(d=V(e,"click",l[33]),f=!0)},p(p,m){m[0]&65536&&u!==(u=p[16]("routeEditor.useTemplate")+"")&&v(c,u)},d(p){p&&H(s),f=!1,d()}}}function Cm(l){let s,e;return s=new km({props:{route:l[0]}}),{c(){Et(s.$$.fragment)},m(n,a){Ct(s,n,a),e=!0},p(n,a){const i={};a[0]&1&&(i.route=n[0]),s.$set(i)},i(n){e||(et(s.$$.fragment,n),e=!0)},o(n){st(s.$$.fragment,n),e=!1},d(n){yt(s,n)}}}function Em(l){let s,e,n;function a(u){l[38](u)}let i={};return l[0]!==void 0&&(i.route=l[0]),s=new _m({props:i}),Sl.push(()=>Ml(s,"route",a)),{c(){Et(s.$$.fragment)},m(u,c){Ct(s,u,c),n=!0},p(u,c){const f={};!e&&c[0]&1&&(e=!0,f.route=u[0],Rl(()=>e=!1)),s.$set(f)},i(u){n||(et(s.$$.fragment,u),n=!0)},o(u){st(s.$$.fragment,u),n=!1},d(u){yt(s,u)}}}function Tm(l){let s,e,n;function a(u){l[37](u)}let i={};return l[0]!==void 0&&(i.route=l[0]),s=new cm({props:i}),Sl.push(()=>Ml(s,"route",a)),{c(){Et(s.$$.fragment)},m(u,c){Ct(s,u,c),n=!0},p(u,c){const f={};!e&&c[0]&1&&(e=!0,f.route=u[0],Rl(()=>e=!1)),s.$set(f)},i(u){n||(et(s.$$.fragment,u),n=!0)},o(u){st(s.$$.fragment,u),n=!1},d(u){yt(s,u)}}}function Sm(l){let s,e,n;function a(u){l[36](u)}let i={};return l[0]!==void 0&&(i.route=l[0]),s=new im({props:i}),Sl.push(()=>Ml(s,"route",a)),{c(){Et(s.$$.fragment)},m(u,c){Ct(s,u,c),n=!0},p(u,c){const f={};!e&&c[0]&1&&(e=!0,f.route=u[0],Rl(()=>e=!1)),s.$set(f)},i(u){n||(et(s.$$.fragment,u),n=!0)},o(u){st(s.$$.fragment,u),n=!1},d(u){yt(s,u)}}}function Mm(l){let s,e,n;function a(u){l[35](u)}let i={errors:l[8],weightErrors:l[9]};return l[0]!==void 0&&(i.route=l[0]),s=new lm({props:i}),Sl.push(()=>Ml(s,"route",a)),{c(){Et(s.$$.fragment)},m(u,c){Ct(s,u,c),n=!0},p(u,c){const f={};c[0]&256&&(f.errors=u[8]),c[0]&512&&(f.weightErrors=u[9]),!e&&c[0]&1&&(e=!0,f.route=u[0],Rl(()=>e=!1)),s.$set(f)},i(u){n||(et(s.$$.fragment,u),n=!0)},o(u){st(s.$$.fragment,u),n=!1},d(u){yt(s,u)}}}function Rm(l){let s,e,n;function a(u){l[34](u)}let i={errors:l[8]};return l[0]!==void 0&&(i.route=l[0]),s=new Ih({props:i}),Sl.push(()=>Ml(s,"route",a)),{c(){Et(s.$$.fragment)},m(u,c){Ct(s,u,c),n=!0},p(u,c){const f={};c[0]&256&&(f.errors=u[8]),!e&&c[0]&1&&(e=!0,f.route=u[0],Rl(()=>e=!1)),s.$set(f)},i(u){n||(et(s.$$.fragment,u),n=!0)},o(u){st(s.$$.fragment,u),n=!1},d(u){yt(s,u)}}}function od(l){let s,e=l[16]("autosave.lastSaved")+"",n,a,i=l[19](l[12])+"",u;return{c(){s=r("span"),n=_(e),a=_(": "),u=_(i),o(s,"class","text-xs text-gray-500")},m(c,f){L(c,s,f),t(s,n),t(s,a),t(s,u)},p(c,f){f[0]&65536&&e!==(e=c[16]("autosave.lastSaved")+"")&&v(n,e),f[0]&4096&&i!==(i=c[19](c[12])+"")&&v(u,i)},d(c){c&&H(s)}}}function qm(l){let s,e,n,a,i,u=l[16]("validation.allGood")+"",c;return{c(){s=r("div"),e=re("svg"),n=re("path"),a=h(),i=r("span"),c=_(u),o(n,"stroke-linecap","round"),o(n,"stroke-linejoin","round"),o(n,"stroke-width","2"),o(n,"d","M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"),o(e,"xmlns","http://www.w3.org/2000/svg"),o(e,"class","h-5 w-5"),o(e,"fill","none"),o(e,"viewBox","0 0 24 24"),o(e,"stroke","currentColor"),o(i,"class","text-sm font-medium"),o(s,"class","flex items-center gap-2 text-success")},m(f,d){L(f,s,d),t(s,e),t(e,n),t(s,a),t(s,i),t(i,c)},p(f,d){d[0]&65536&&u!==(u=f[16]("validation.allGood")+"")&&v(c,u)},d(f){f&&H(s)}}}function Hm(l){let s,e,n,a,i,u=l[10].length+"",c,f,d=l[16]("validation.errors")+"",p,m,g,b=(l[7]?l[16]("common.hide"):l[16]("common.show"))+"",k,w,C;return{c(){s=r("div"),e=re("svg"),n=re("path"),a=h(),i=r("span"),c=_(u),f=h(),p=_(d),m=h(),g=r("button"),k=_(b),o(n,"stroke-linecap","round"),o(n,"stroke-linejoin","round"),o(n,"stroke-width","2"),o(n,"d","M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"),o(e,"xmlns","http://www.w3.org/2000/svg"),o(e,"class","h-5 w-5"),o(e,"fill","none"),o(e,"viewBox","0 0 24 24"),o(e,"stroke","currentColor"),o(i,"class","text-sm font-medium"),o(g,"class","btn btn-xs btn-ghost"),o(s,"class","flex items-center gap-2 text-error")},m(E,y){L(E,s,y),t(s,e),t(e,n),t(s,a),t(s,i),t(i,c),t(i,f),t(i,p),t(s,m),t(s,g),t(g,k),w||(C=V(g,"click",l[39]),w=!0)},p(E,y){y[0]&1024&&u!==(u=E[10].length+"")&&v(c,u),y[0]&65536&&d!==(d=E[16]("validation.errors")+"")&&v(p,d),y[0]&65664&&b!==(b=(E[7]?E[16]("common.hide"):E[16]("common.show"))+"")&&v(k,b)},d(E){E&&H(s),w=!1,C()}}}function Lm(l){let s,e;return{c(){s=re("svg"),e=re("path"),o(e,"stroke-linecap","round"),o(e,"stroke-linejoin","round"),o(e,"stroke-width","2"),o(e,"d","M8 7H5a2 2 0 00-2 2v9a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-3m-1 4l-3 3m0 0l-3-3m3 3V4"),o(s,"xmlns","http://www.w3.org/2000/svg"),o(s,"class","h-5 w-5"),o(s,"fill","none"),o(s,"viewBox","0 0 24 24"),o(s,"stroke","currentColor")},m(n,a){L(n,s,a),t(s,e)},d(n){n&&H(s)}}}function Pm(l){let s;return{c(){s=r("span"),o(s,"class","loading loading-spinner loading-sm")},m(e,n){L(e,s,n)},d(e){e&&H(s)}}}function nd(l){let s,e,n=ut(l[10]),a=[];for(let i=0;i<n.length;i+=1)a[i]=ad($c(l,n,i));return{c(){s=r("div"),e=r("ul");for(let i=0;i<a.length;i+=1)a[i].c();o(e,"class","text-sm space-y-1"),o(s,"class","mt-3 p-3 bg-error/10 rounded-lg border border-error/20")},m(i,u){L(i,s,u),t(s,e);for(let c=0;c<a.length;c+=1)a[c]&&a[c].m(e,null)},p(i,u){if(u[0]&1024){n=ut(i[10]);let c;for(c=0;c<n.length;c+=1){const f=$c(i,n,c);a[c]?a[c].p(f,u):(a[c]=ad(f),a[c].c(),a[c].m(e,null))}for(;c<a.length;c+=1)a[c].d(1);a.length=n.length}},d(i){i&&H(s),Gt(a,i)}}}function ad(l){let s,e,n,a,i=l[52].field+"",u,c,f=l[52].message+"",d,p;return{c(){s=r("li"),e=r("span"),e.textContent="\u2022",n=h(),a=r("span"),u=_(i),c=_(": "),d=_(f),p=h(),o(e,"class","text-error"),o(s,"class","flex items-start gap-2")},m(m,g){L(m,s,g),t(s,e),t(s,n),t(s,a),t(a,u),t(a,c),t(a,d),t(s,p)},p(m,g){g[0]&1024&&i!==(i=m[52].field+"")&&v(u,i),g[0]&1024&&f!==(f=m[52].message+"")&&v(d,f)},d(m){m&&H(s)}}}function jm(l){let s,e,n,a,i,u,c,f=l[16]("breadcrumb.home")+"",d,p,m,g,b=l[16]("breadcrumb.routes")+"",k,w,C,E,y,T=(l[1]?l[16]("breadcrumb.editRoute"):l[16]("breadcrumb.newRoute"))+"",M,R,j,P,I,q,D,A,N,Z,Q,x,z,K,S,B=l[16]("common.cancel")+"",U,F,J,ie,ue=l[16]("common.save")+"",ne,$,te,ae,ee,G,pe,oe,ge,he,ye,ze,Pe,we,Fe,Je,je,Le=l[16]("confirmDialog.no")+"",Se,fe,_e,Ie=l[16]("confirmDialog.yes")+"",De,se,ke,me,Ee,Ve,Be=l[1]&&ed(l);const nt=[ym,wm],Ne=[];function Qe(ce,qe){return ce[3]?0:1}P=Qe(l),I=Ne[P]=nt[P](l);let Ye=l[12]&&!l[1]&&od(l);function ve(ce,qe){if(ce[10].length>0)return Hm;if(ce[11])return qm}let de=ve(l),Te=de&&de(l);function Ze(ce,qe){return ce[4]?Pm:Lm}let Me=Ze(l),Ue=Me(l),Ce=l[7]&&l[10].length>0&&nd(l);function mt(ce){l[40](ce)}let Ge={};return l[5]!==void 0&&(Ge.showTemplates=l[5]),ee=new Th({props:Ge}),Sl.push(()=>Ml(ee,"showTemplates",mt)),ee.$on("select",l[22]),{c(){s=r("div"),e=r("div"),n=r("div"),a=r("div"),i=r("ul"),u=r("li"),c=r("button"),d=_(f),p=h(),m=r("li"),g=r("button"),k=_(b),w=h(),C=r("li"),E=r("span"),y=r("span"),M=_(T),R=h(),Be&&Be.c(),j=h(),I.c(),q=h(),D=r("div"),A=r("div"),N=r("div"),Z=r("div"),Ye&&Ye.c(),Q=h(),x=r("div"),Te&&Te.c(),z=h(),K=r("div"),S=r("button"),U=_(B),F=h(),J=r("button"),Ue.c(),ie=h(),ne=_(ue),te=h(),Ce&&Ce.c(),ae=h(),Et(ee.$$.fragment),pe=h(),oe=r("dialog"),ge=r("div"),he=r("h3"),ye=_(l[14]),ze=h(),Pe=r("p"),we=_(l[15]),Fe=h(),Je=r("div"),je=r("button"),Se=_(Le),fe=h(),_e=r("button"),De=_(Ie),se=h(),ke=r("button"),o(c,"type","button"),o(c,"class","link link-hover"),o(g,"type","button"),o(g,"class","link link-hover"),o(E,"class","flex items-center gap-2"),o(a,"class","breadcrumbs text-sm"),o(n,"class","max-w-7xl mx-auto px-6 py-4"),o(e,"class","bg-base-100 border-b border-base-300"),o(Z,"class","flex items-center gap-4"),o(S,"class","btn btn-outline"),S.disabled=l[4],o(J,"class","btn btn-primary"),J.disabled=$=!l[11]||l[4],o(K,"class","flex gap-3"),o(x,"class","flex items-center gap-4"),o(N,"class","flex justify-between items-center"),o(A,"class","max-w-7xl mx-auto px-6 py-4"),o(D,"class","fixed bottom-0 left-0 right-0 bg-base-100 border-t border-base-300 shadow-2xl z-40"),o(he,"class","font-bold text-lg"),o(Pe,"class","py-4"),o(je,"class","btn btn-ghost"),o(_e,"class","btn btn-primary"),o(Je,"class","modal-action"),o(ge,"class","modal-box"),o(ke,"type","button"),o(ke,"class","modal-backdrop"),o(ke,"aria-label","Close dialog"),o(oe,"class","modal"),le(oe,"modal-open",l[13]),o(s,"class","min-h-screen bg-base-200")},m(ce,qe){L(ce,s,qe),t(s,e),t(e,n),t(n,a),t(a,i),t(i,u),t(u,c),t(c,d),t(i,p),t(i,m),t(m,g),t(g,k),t(i,w),t(i,C),t(C,E),t(E,y),t(y,M),t(E,R),Be&&Be.m(E,null),t(s,j),Ne[P].m(s,null),t(s,q),t(s,D),t(D,A),t(A,N),t(N,Z),Ye&&Ye.m(Z,null),t(N,Q),t(N,x),Te&&Te.m(x,null),t(x,z),t(x,K),t(K,S),t(S,U),t(K,F),t(K,J),Ue.m(J,null),t(J,ie),t(J,ne),t(A,te),Ce&&Ce.m(A,null),t(s,ae),Ct(ee,s,null),t(s,pe),t(s,oe),t(oe,ge),t(ge,he),t(he,ye),t(ge,ze),t(ge,Pe),t(Pe,we),t(ge,Fe),t(ge,Je),t(Je,je),t(je,Se),t(Je,fe),t(Je,_e),t(_e,De),t(oe,se),t(oe,ke),me=!0,Ee||(Ve=[V(c,"click",l[25]),V(g,"click",l[26]),V(S,"click",l[21]),V(J,"click",l[20]),V(je,"click",l[18]),V(_e,"click",l[17]),V(ke,"click",l[18])],Ee=!0)},p(ce,qe){(!me||qe[0]&65536)&&f!==(f=ce[16]("breadcrumb.home")+"")&&v(d,f),(!me||qe[0]&65536)&&b!==(b=ce[16]("breadcrumb.routes")+"")&&v(k,b),(!me||qe[0]&65538)&&T!==(T=(ce[1]?ce[16]("breadcrumb.editRoute"):ce[16]("breadcrumb.newRoute"))+"")&&v(M,T),ce[1]?Be?Be.p(ce,qe):(Be=ed(ce),Be.c(),Be.m(E,null)):Be&&(Be.d(1),Be=null);let Re=P;P=Qe(ce),P===Re?Ne[P].p(ce,qe):(Gl(),st(Ne[Re],1,1,()=>{Ne[Re]=null}),Kl(),I=Ne[P],I?I.p(ce,qe):(I=Ne[P]=nt[P](ce),I.c()),et(I,1),I.m(s,q)),ce[12]&&!ce[1]?Ye?Ye.p(ce,qe):(Ye=od(ce),Ye.c(),Ye.m(Z,null)):Ye&&(Ye.d(1),Ye=null),de===(de=ve(ce))&&Te?Te.p(ce,qe):(Te&&Te.d(1),Te=de&&de(ce),Te&&(Te.c(),Te.m(x,z))),(!me||qe[0]&65536)&&B!==(B=ce[16]("common.cancel")+"")&&v(U,B),(!me||qe[0]&16)&&(S.disabled=ce[4]),Me!==(Me=Ze(ce))&&(Ue.d(1),Ue=Me(ce),Ue&&(Ue.c(),Ue.m(J,ie))),(!me||qe[0]&65536)&&ue!==(ue=ce[16]("common.save")+"")&&v(ne,ue),(!me||qe[0]&2064&&$!==($=!ce[11]||ce[4]))&&(J.disabled=$),ce[7]&&ce[10].length>0?Ce?Ce.p(ce,qe):(Ce=nd(ce),Ce.c(),Ce.m(A,null)):Ce&&(Ce.d(1),Ce=null);const dt={};!G&&qe[0]&32&&(G=!0,dt.showTemplates=ce[5],Rl(()=>G=!1)),ee.$set(dt),(!me||qe[0]&16384)&&v(ye,ce[14]),(!me||qe[0]&32768)&&v(we,ce[15]),(!me||qe[0]&65536)&&Le!==(Le=ce[16]("confirmDialog.no")+"")&&v(Se,Le),(!me||qe[0]&65536)&&Ie!==(Ie=ce[16]("confirmDialog.yes")+"")&&v(De,Ie),(!me||qe[0]&8192)&&le(oe,"modal-open",ce[13])},i(ce){me||(et(I),et(ee.$$.fragment,ce),me=!0)},o(ce){st(I),st(ee.$$.fragment,ce),me=!1},d(ce){ce&&H(s),Be&&Be.d(),Ne[P].d(),Ye&&Ye.d(),Te&&Te.d(),Ue.d(),Ce&&Ce.d(),yt(ee),Ee=!1,vt(Ve)}}}function Dm(l,s,e){let n;Dt(l,Rt,he=>e(16,n=he));let{params:a={}}=s,i=!1,u="",c=!0,f=!1,d=!1,p="basic",m=!1,g={path:"",upstreams:[{_uid:ta(),target:"",weight:100,priority:1}],headers:{add:{},remove:[],default:{}},body:{add:{},remove:[],replace:{},default:{}},query:{add:{},remove:[],replace:{},default:{}}},b=[],k=[],w=[],C=!1,E=null,y=null,T=null,M=!1,R="",j="",P=null;function I(he,ye,ze){e(14,R=he),e(15,j=ye),P=ze,e(13,M=!0)}function q(){e(13,M=!1),P&&(P(),P=null)}function D(){e(13,M=!1),P=null}function A(he){if((he.metaKey||he.ctrlKey)&&he.key==="s"&&(he.preventDefault(),C&&!f&&x()),he.key==="Escape"&&z(),he.key>="1"&&he.key<="6"&&he.ctrlKey&&!he.metaKey&&!he.altKey){const ze=["basic","upstreams","modification","auth","failover","preview"][parseInt(he.key)-1];ze&&(e(6,p=ze),he.preventDefault())}}function N(){if(!i)try{localStorage.setItem("bungee-route-draft",JSON.stringify(g)),e(12,y=Date.now())}catch(he){console.error("Failed to auto-save draft:",he)}}function Z(he){const ye=Math.floor((Date.now()-he)/1e3);return ye<60?n("autosave.justNow"):ye<3600?n("autosave.minutesAgo",{values:{minutes:Math.floor(ye/60)}}):n("autosave.hoursAgo",{values:{hours:Math.floor(ye/3600)}})}async function Q(){try{const he=await mh(g),ye=ph(g.upstreams);e(8,b=he),e(9,k=ye),e(10,w=[...he,...ye]),e(11,C=w.length===0&&g.upstreams.length>0)}catch(he){console.error("Validation failed:",he),e(11,C=!1)}}async function x(){if(!C){jt.show(n("routeEditor.saveFailed",{values:{error:n("common.error")}}),"error");return}try{e(4,f=!0);const he={...g,upstreams:k0(g.upstreams,[ye=>ye.priority??1]).map(({_uid:ye,...ze})=>ze)};i?(await wo.update(u,he),jt.show(n("routeEditor.routeUpdated"),"success")):(await wo.create(he),jt.show(n("routeEditor.routeSaved"),"success"),localStorage.removeItem("bungee-route-draft")),Yr()}catch(he){jt.show(n("routeEditor.saveFailed",{values:{error:he.message}}),"error")}finally{e(4,f=!1)}}function z(){I(n("confirmDialog.cancelTitle"),n("confirmDialog.cancelMessage"),()=>Yr())}function K(he){const ye=he.detail;e(0,g={...g,...ye,headers:ye.headers||g.headers,body:ye.body||g.body,query:ye.query||g.query,upstreams:ye.upstreams?.map(ze=>({...ze,_uid:ta(),headers:ze.headers||{add:{},remove:[],default:{}},body:ze.body||{add:{},remove:[],replace:{},default:{}},query:ze.query||{add:{},remove:[],replace:{},default:{}}}))||g.upstreams}),jt.show(n("routeEditor.templateApplied"),"success")}Hs(async()=>{if(window.addEventListener("keydown",A),T=setInterval(()=>{N()},3e4),a.path){e(1,i=!0),e(2,u=decodeURIComponent(a.path));try{const he=await wo.get(u);he?(e(0,g=he),e(0,g.headers=g.headers||{add:{},remove:[],default:{}},g),e(0,g.body=g.body||{add:{},remove:[],replace:{},default:{}},g),e(0,g.query=g.query||{add:{},remove:[],replace:{},default:{}},g),e(0,g.upstreams=g.upstreams.map(ye=>({...ye,_uid:ta(),headers:ye.headers||{add:{},remove:[],default:{}},body:ye.body||{add:{},remove:[],replace:{},default:{}},query:ye.query||{add:{},remove:[],replace:{},default:{}}})),g)):(jt.show(n("routes.noRoutes"),"error"),Yr())}catch(he){jt.show(n("routeEditor.saveFailed",{values:{error:he.message}}),"error"),Yr()}}else try{const he=localStorage.getItem("bungee-route-draft");if(he){const ye=JSON.parse(he);I(n("confirmDialog.restoreDraftTitle"),n("confirmDialog.restoreDraftMessage"),()=>{e(0,g=ye)})}}catch(he){console.error("Failed to restore draft:",he)}e(3,c=!1)}),Xn(()=>{window.removeEventListener("keydown",A),T&&clearInterval(T)});const S=()=>window.location.hash="/",B=()=>window.location.hash="/routes",U=()=>e(6,p="basic"),F=()=>e(6,p="upstreams"),J=()=>e(6,p="modification"),ie=()=>e(6,p="auth"),ue=()=>e(6,p="failover"),ne=()=>e(6,p="preview"),$=()=>e(5,d=!0);function te(he){g=he,e(0,g)}function ae(he){g=he,e(0,g)}function ee(he){g=he,e(0,g)}function G(he){g=he,e(0,g)}function pe(he){g=he,e(0,g)}const oe=()=>e(7,m=!m);function ge(he){d=he,e(5,d)}return l.$$set=he=>{"params"in he&&e(23,a=he.params)},l.$$.update=()=>{l.$$.dirty[0]&16777217&&g&&(E&&clearTimeout(E),e(24,E=setTimeout(()=>{Q()},300)))},[g,i,u,c,f,d,p,m,b,k,w,C,y,M,R,j,n,q,D,Z,x,z,K,a,E,S,B,U,F,J,ie,ue,ne,$,te,ae,ee,G,pe,oe,ge]}class a0 extends Nt{constructor(s){super(),Ut(this,s,Dm,jm,Vt,{params:23},null,[-1,-1])}}function rd(l,s,e){const n=l.slice();return n[43]=s[e][0],n[44]=s[e][1],n}function id(l,s,e){const n=l.slice();return n[43]=s[e][0],n[44]=s[e][1],n}function ud(l,s,e){const n=l.slice();return n[43]=s[e][0],n[44]=s[e][1],n}function fd(l,s,e){const n=l.slice();n[52]=s[e],n[61]=e;const a=n[51].durations[n[61]];n[53]=a;const i=n[51].relativeTime[n[61]];n[54]=i;const u=n[53]/n[51].totalDuration*100;n[55]=u;const c=n[54]/n[51].totalDuration*100;n[56]=c;const f=kg(n[52].step);n[57]=f;const d=vg(n[52].step);n[58]=d;const p=(n[53]/n[51].totalDuration*100).toFixed(1);return n[59]=p,n}function cd(l,s,e){const n=l.slice();return n[62]=s[e],n}function Su(l){const s=l.slice(),e=s[27]();return s[51]=e,s}function dd(l,s,e){const n=l.slice();return n[52]=s[e],n}function Bm(l){let s,e,n,a,i=l[24]("logs.detail.copyToClipboard")+"",u;return{c(){s=re("svg"),e=re("path"),n=h(),a=r("span"),u=_(i),o(e,"stroke-linecap","round"),o(e,"stroke-linejoin","round"),o(e,"stroke-width","2"),o(e,"d","M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"),o(s,"xmlns","http://www.w3.org/2000/svg"),o(s,"class","h-4 w-4"),o(s,"fill","none"),o(s,"viewBox","0 0 24 24"),o(s,"stroke","currentColor"),o(a,"class","hidden md:inline")},m(c,f){L(c,s,f),t(s,e),L(c,n,f),L(c,a,f),t(a,u)},p(c,f){f[0]&16777216&&i!==(i=c[24]("logs.detail.copyToClipboard")+"")&&v(u,i)},d(c){c&&(H(s),H(n),H(a))}}}function Im(l){let s,e=l[24]("logs.detail.copied")+"",n;return{c(){s=r("span"),n=_(e),o(s,"class","text-success")},m(a,i){L(a,s,i),t(s,n)},p(a,i){i[0]&16777216&&e!==(e=a[24]("logs.detail.copied")+"")&&v(n,e)},d(a){a&&H(s)}}}function Am(l){let s;return{c(){s=r("span"),s.textContent="No steps recorded",o(s,"class","text-sm opacity-40")},m(e,n){L(e,s,n)},p:ot,d(e){e&&H(s)}}}function Fm(l){let s,e,n=ut(l[0].processingSteps.slice(0,3)),a=[];for(let u=0;u<n.length;u+=1)a[u]=pd(dd(l,n,u));let i=l[0].processingSteps.length>3&&hd(l);return{c(){for(let u=0;u<a.length;u+=1)a[u].c();s=h(),i&&i.c(),e=Ul()},m(u,c){for(let f=0;f<a.length;f+=1)a[f]&&a[f].m(u,c);L(u,s,c),i&&i.m(u,c),L(u,e,c)},p(u,c){if(c[0]&67108865){n=ut(u[0].processingSteps.slice(0,3));let f;for(f=0;f<n.length;f+=1){const d=dd(u,n,f);a[f]?a[f].p(d,c):(a[f]=pd(d),a[f].c(),a[f].m(s.parentNode,s))}for(;f<a.length;f+=1)a[f].d(1);a.length=n.length}u[0].processingSteps.length>3?i?i.p(u,c):(i=hd(u),i.c(),i.m(e.parentNode,e)):i&&(i.d(1),i=null)},d(u){u&&(H(s),H(e)),Gt(a,u),i&&i.d(u)}}}function pd(l){let s,e=l[26](l[52].step)+"",n;return{c(){s=r("span"),n=_(e),o(s,"class","badge badge-sm badge-outline")},m(a,i){L(a,s,i),t(s,n)},p(a,i){i[0]&1&&e!==(e=a[26](a[52].step)+"")&&v(n,e)},d(a){a&&H(s)}}}function hd(l){let s,e,n=l[0].processingSteps.length-3+"",a,i;return{c(){s=r("span"),e=_("+"),a=_(n),i=_(" more"),o(s,"class","badge badge-sm badge-ghost")},m(u,c){L(u,s,c),t(s,e),t(s,a),t(s,i)},p(u,c){c[0]&1&&n!==(n=u[0].processingSteps.length-3+"")&&v(a,n)},d(u){u&&H(s)}}}function md(l){let s,e,n,a,i,u=l[24]("logs.detail.processingTimeline")+"",c,f,d,p=l[24]("logs.detail.totalSteps",{values:{count:l[0].processingSteps.length}})+"",m,g,b=l[24]("logs.detail.totalDuration",{values:{duration:go(l[51].totalDuration)}})+"",k,w,C,E=(l[22]?l[24]("logs.detail.hideTimeline"):l[24]("logs.detail.showTimeline"))+"",y,T,M,R,j=l[22]&&gd(l);return{c(){s=r("div"),e=r("div"),n=r("div"),a=r("div"),i=r("h4"),c=_(u),f=h(),d=r("p"),m=_(p),g=_(\`\uFF0C
21260
- \`),k=_(b),w=h(),C=r("button"),y=_(E),T=h(),j&&j.c(),o(i,"class","card-title text-base"),o(d,"class","text-xs opacity-60 mt-1"),o(C,"class","btn btn-sm btn-ghost"),o(n,"class","flex items-center justify-between mb-2"),o(e,"class","card-body p-4"),o(s,"class","card bg-base-200")},m(P,I){L(P,s,I),t(s,e),t(e,n),t(n,a),t(a,i),t(i,c),t(a,f),t(a,d),t(d,m),t(d,g),t(d,k),t(n,w),t(n,C),t(C,y),t(e,T),j&&j.m(e,null),M||(R=V(C,"click",l[31]),M=!0)},p(P,I){I[0]&16777216&&u!==(u=P[24]("logs.detail.processingTimeline")+"")&&v(c,u),I[0]&16777217&&p!==(p=P[24]("logs.detail.totalSteps",{values:{count:P[0].processingSteps.length}})+"")&&v(m,p),I[0]&16777216&&b!==(b=P[24]("logs.detail.totalDuration",{values:{duration:go(P[51].totalDuration)}})+"")&&v(k,b),I[0]&20971520&&E!==(E=(P[22]?P[24]("logs.detail.hideTimeline"):P[24]("logs.detail.showTimeline"))+"")&&v(y,E),P[22]?j?j.p(P,I):(j=gd(P),j.c(),j.m(e,null)):j&&(j.d(1),j=null)},d(P){P&&H(s),j&&j.d(),M=!1,R()}}}function gd(l){let s,e,n,a,i,u,c,f,d,p,m=ut(l[0].processingSteps),g=[];for(let b=0;b<m.length;b+=1)g[b]=Ed(fd(l,m,b));return{c(){s=r("div"),e=r("div"),n=r("span"),n.textContent="0ms",a=h(),i=r("div"),u=h(),c=r("span"),c.textContent=\`\${go(l[51].totalDuration)}\`,f=h();for(let b=0;b<g.length;b+=1)g[b].c();d=h(),p=r("div"),p.innerHTML='<div class="flex flex-wrap gap-4 text-xs"><div class="flex items-center gap-2"><div class="w-3 h-3 rounded-full bg-blue-500"></div> <span>Authentication</span></div> <div class="flex items-center gap-2"><div class="w-3 h-3 rounded-full bg-purple-500"></div> <span>Plugin</span></div> <div class="flex items-center gap-2"><div class="w-3 h-3 rounded-full bg-green-500"></div> <span>Upstream</span></div> <div class="flex items-center gap-2"><div class="w-3 h-3 rounded-full bg-orange-500"></div> <span>Transform</span></div> <div class="flex items-center gap-2"><div class="w-3 h-3 rounded-full bg-red-500"></div> <span>Error</span></div> <div class="flex items-center gap-2"><div class="w-3 h-3 rounded-full bg-yellow-500"></div> <span>Retry/Recovery</span></div></div>',o(i,"class","flex-1 border-t border-dashed border-base-content/20"),o(c,"class","mr-32"),o(e,"class","mb-4 flex items-center gap-2 text-xs opacity-50 px-64"),o(s,"class","mt-4"),o(p,"class","mt-6 pt-4 border-t border-base-300")},m(b,k){L(b,s,k),t(s,e),t(e,n),t(e,a),t(e,i),t(e,u),t(e,c),t(s,f);for(let w=0;w<g.length;w+=1)g[w]&&g[w].m(s,null);L(b,d,k),L(b,p,k)},p(b,k){if(k[0]&201326593){m=ut(b[0].processingSteps);let w;for(w=0;w<m.length;w+=1){const C=fd(b,m,w);g[w]?g[w].p(C,k):(g[w]=Ed(C),g[w].c(),g[w].m(s,null))}for(;w<g.length;w+=1)g[w].d(1);g.length=m.length}},d(b){b&&(H(s),H(d),H(p)),Gt(g,b)}}}function _d(l){let s;return{c(){s=r("div"),o(s,"class","w-px bg-base-content opacity-20 flex-1 min-h-[2.5rem]")},m(e,n){L(e,s,n)},d(e){e&&H(s)}}}function bd(l){let s=l[52].detail.plugins&&Array.isArray(l[52].detail.plugins),e,n,a,i,u=s&&vd(l),c=l[52].detail.target&&wd(l),f=l[52].detail.level&&yd(l),d=l[52].detail.error&&Cd(l);return{c(){u&&u.c(),e=h(),c&&c.c(),n=h(),f&&f.c(),a=h(),d&&d.c(),i=Ul()},m(p,m){u&&u.m(p,m),L(p,e,m),c&&c.m(p,m),L(p,n,m),f&&f.m(p,m),L(p,a,m),d&&d.m(p,m),L(p,i,m)},p(p,m){m[0]&1&&(s=p[52].detail.plugins&&Array.isArray(p[52].detail.plugins)),s?u?u.p(p,m):(u=vd(p),u.c(),u.m(e.parentNode,e)):u&&(u.d(1),u=null),p[52].detail.target?c?c.p(p,m):(c=wd(p),c.c(),c.m(n.parentNode,n)):c&&(c.d(1),c=null),p[52].detail.level?f?f.p(p,m):(f=yd(p),f.c(),f.m(a.parentNode,a)):f&&(f.d(1),f=null),p[52].detail.error?d?d.p(p,m):(d=Cd(p),d.c(),d.m(i.parentNode,i)):d&&(d.d(1),d=null)},d(p){p&&(H(e),H(n),H(a),H(i)),u&&u.d(p),c&&c.d(p),f&&f.d(p),d&&d.d(p)}}}function vd(l){let s,e=ut(l[52].detail.plugins),n=[];for(let a=0;a<e.length;a+=1)n[a]=kd(cd(l,e,a));return{c(){for(let a=0;a<n.length;a+=1)n[a].c();s=Ul()},m(a,i){for(let u=0;u<n.length;u+=1)n[u]&&n[u].m(a,i);L(a,s,i)},p(a,i){if(i[0]&1){e=ut(a[52].detail.plugins);let u;for(u=0;u<e.length;u+=1){const c=cd(a,e,u);n[u]?n[u].p(c,i):(n[u]=kd(c),n[u].c(),n[u].m(s.parentNode,s))}for(;u<n.length;u+=1)n[u].d(1);n.length=e.length}},d(a){a&&H(s),Gt(n,a)}}}function kd(l){let s,e=l[62]+"",n;return{c(){s=r("span"),n=_(e),o(s,"class","badge badge-xs badge-primary badge-outline")},m(a,i){L(a,s,i),t(s,n)},p(a,i){i[0]&1&&e!==(e=a[62]+"")&&v(n,e)},d(a){a&&H(s)}}}function wd(l){let s,e=l[52].detail.target+"",n;return{c(){s=r("span"),n=_(e),o(s,"class","badge badge-xs badge-info badge-outline"),o(s,"title","Target upstream")},m(a,i){L(a,s,i),t(s,n)},p(a,i){i[0]&1&&e!==(e=a[52].detail.target+"")&&v(n,e)},d(a){a&&H(s)}}}function yd(l){let s,e=l[52].detail.level+"",n;return{c(){s=r("span"),n=_(e),o(s,"class","badge badge-xs badge-warning badge-outline")},m(a,i){L(a,s,i),t(s,n)},p(a,i){i[0]&1&&e!==(e=a[52].detail.level+"")&&v(n,e)},d(a){a&&H(s)}}}function Cd(l){let s,e,n;return{c(){s=r("span"),e=_("Error"),o(s,"class","badge badge-xs badge-error badge-outline"),o(s,"title",n=l[52].detail.error)},m(a,i){L(a,s,i),t(s,e)},p(a,i){i[0]&1&&n!==(n=a[52].detail.error)&&o(s,"title",n)},d(a){a&&H(s)}}}function zm(l){let s;return{c(){s=r("span"),s.textContent=\`\${l[59]}%\`,o(s,"class","text-xs text-white px-2 leading-7")},m(e,n){L(e,s,n)},p:ot,d(e){e&&H(s)}}}function Ed(l){let s,e,n,a,i,u,c,f,d,p=l[26](l[52].step)+"",m,g,b,k,w=l[57]+"",C,E,y,T,M,R,j,P,I,q,D,A,N,Z,Q,x,z=l[61]<l[0].processingSteps.length-1&&_d(),K=l[52].detail&&bd(l),S=l[55]>5&&zm(l);return{c(){s=r("div"),e=r("div"),n=r("div"),a=r("div"),u=h(),z&&z.c(),c=h(),f=r("div"),d=r("div"),m=_(p),g=h(),b=r("div"),k=r("span"),C=_(w),E=h(),K&&K.c(),y=h(),T=r("div"),M=r("div"),R=r("div"),S&&S.c(),I=h(),q=r("div"),D=r("div"),D.textContent=\`+\${l[54]}ms\`,A=h(),N=r("div"),N.textContent=\`\${go(l[53])}\`,Z=h(),Q=r("div"),Q.textContent=\`\${l[59]}%\`,x=h(),o(a,"class",i="w-3 h-3 rounded-full "+l[58]+" z-10"),o(n,"class","flex flex-col items-center"),o(d,"class","text-sm font-medium"),o(k,"class","badge badge-xs badge-ghost"),o(b,"class","text-xs opacity-50 mt-0.5 flex items-center gap-2 flex-wrap"),o(f,"class","flex-1 -mt-0.5"),o(e,"class","flex gap-3 shrink-0 w-64"),o(R,"class",j="absolute h-full "+l[58]+" opacity-70 group-hover:opacity-90 transition-all cursor-pointer"),e1(R,"left",l[56]+"%"),e1(R,"width",Math.max(l[55],1)+"%"),o(R,"title",P=l[52].step+": "+go(l[53])+" ("+l[59]+"%)"),o(M,"class","w-full h-7 relative bg-base-300/30 rounded overflow-hidden"),o(T,"class","flex-1 flex items-center"),o(D,"class","opacity-60"),o(N,"class","font-semibold"),o(Q,"class","opacity-40"),o(q,"class","shrink-0 w-32 text-xs space-y-0.5 font-mono"),o(s,"class","flex gap-4 group relative mb-3")},m(B,U){L(B,s,U),t(s,e),t(e,n),t(n,a),t(n,u),z&&z.m(n,null),t(e,c),t(e,f),t(f,d),t(d,m),t(f,g),t(f,b),t(b,k),t(k,C),t(b,E),K&&K.m(b,null),t(s,y),t(s,T),t(T,M),t(M,R),S&&S.m(R,null),t(s,I),t(s,q),t(q,D),t(q,A),t(q,N),t(q,Z),t(q,Q),t(s,x)},p(B,U){U[0]&1&&i!==(i="w-3 h-3 rounded-full "+B[58]+" z-10")&&o(a,"class",i),B[61]<B[0].processingSteps.length-1?z||(z=_d(),z.c(),z.m(n,null)):z&&(z.d(1),z=null),U[0]&1&&p!==(p=B[26](B[52].step)+"")&&v(m,p),U[0]&1&&w!==(w=B[57]+"")&&v(C,w),B[52].detail?K?K.p(B,U):(K=bd(B),K.c(),K.m(b,null)):K&&(K.d(1),K=null),B[55]>5&&S.p(B,U),U[0]&1&&j!==(j="absolute h-full "+B[58]+" opacity-70 group-hover:opacity-90 transition-all cursor-pointer")&&o(R,"class",j),U[0]&1&&P!==(P=B[52].step+": "+go(B[53])+" ("+B[59]+"%)")&&o(R,"title",P)},d(B){B&&H(s),z&&z.d(),K&&K.d(),S&&S.d()}}}function Om(l){let s,e,n=l[24]("logs.detail.path")+"",a,i,u,c=l[0].path+"",f;return{c(){s=r("div"),e=r("div"),a=_(n),i=h(),u=r("div"),f=_(c),o(e,"class","text-xs opacity-60 mb-1"),o(u,"class","font-mono text-sm bg-base-300 p-2 rounded break-all")},m(d,p){L(d,s,p),t(s,e),t(e,a),t(s,i),t(s,u),t(u,f)},p(d,p){p[0]&16777216&&n!==(n=d[24]("logs.detail.path")+"")&&v(a,n),p[0]&1&&c!==(c=d[0].path+"")&&v(f,c)},d(d){d&&H(s)}}}function Nm(l){let s,e,n=l[24]("logs.detail.originalPath")+"",a,i,u,c=l[0].path+"",f,d,p,m,g=l[24]("logs.detail.transformedPath")+"",b,k,w,C=l[0].transformedPath+"",E;return{c(){s=r("div"),e=r("div"),a=_(n),i=h(),u=r("div"),f=_(c),d=h(),p=r("div"),m=r("div"),b=_(g),k=h(),w=r("div"),E=_(C),o(e,"class","text-xs opacity-60 mb-1"),o(u,"class","font-mono text-sm bg-base-300 p-2 rounded break-all"),o(m,"class","text-xs opacity-60 mb-1"),o(w,"class","font-mono text-sm bg-base-300 p-2 rounded break-all")},m(y,T){L(y,s,T),t(s,e),t(e,a),t(s,i),t(s,u),t(u,f),L(y,d,T),L(y,p,T),t(p,m),t(m,b),t(p,k),t(p,w),t(w,E)},p(y,T){T[0]&16777216&&n!==(n=y[24]("logs.detail.originalPath")+"")&&v(a,n),T[0]&1&&c!==(c=y[0].path+"")&&v(f,c),T[0]&16777216&&g!==(g=y[24]("logs.detail.transformedPath")+"")&&v(b,g),T[0]&1&&C!==(C=y[0].transformedPath+"")&&v(E,C)},d(y){y&&(H(s),H(d),H(p))}}}function Td(l){let s,e,n=l[24]("logs.detail.query")+"",a,i,u,c=l[0].query+"",f;return{c(){s=r("div"),e=r("div"),a=_(n),i=h(),u=r("div"),f=_(c),o(e,"class","text-xs opacity-60 mb-1"),o(u,"class","font-mono text-sm bg-base-300 p-2 rounded break-all")},m(d,p){L(d,s,p),t(s,e),t(e,a),t(s,i),t(s,u),t(u,f)},p(d,p){p[0]&16777216&&n!==(n=d[24]("logs.detail.query")+"")&&v(a,n),p[0]&1&&c!==(c=d[0].query+"")&&v(f,c)},d(d){d&&H(s)}}}function Sd(l){let s,e,n,a=l[24]("logs.detail.routePath")+"",i,u,c,f=l[0].routePath+"",d;return{c(){s=r("div"),e=r("div"),n=r("h4"),i=_(a),u=h(),c=r("div"),d=_(f),o(n,"class","card-title text-base mb-2"),o(c,"class","font-mono text-sm"),o(e,"class","card-body p-4"),o(s,"class","card bg-base-200")},m(p,m){L(p,s,m),t(s,e),t(e,n),t(n,i),t(e,u),t(e,c),t(c,d)},p(p,m){m[0]&16777216&&a!==(a=p[24]("logs.detail.routePath")+"")&&v(i,a),m[0]&1&&f!==(f=p[0].routePath+"")&&v(d,f)},d(p){p&&H(s)}}}function Md(l){let s,e,n,a=l[24]("logs.detail.upstream")+"",i,u,c,f=l[0].upstream+"",d,p,m=l[0].transformer&&Rd(l);return{c(){s=r("div"),e=r("div"),n=r("h4"),i=_(a),u=h(),c=r("div"),d=_(f),p=h(),m&&m.c(),o(n,"class","card-title text-base mb-2"),o(c,"class","font-mono text-sm mb-2"),o(e,"class","card-body p-4"),o(s,"class","card bg-base-200")},m(g,b){L(g,s,b),t(s,e),t(e,n),t(n,i),t(e,u),t(e,c),t(c,d),t(e,p),m&&m.m(e,null)},p(g,b){b[0]&16777216&&a!==(a=g[24]("logs.detail.upstream")+"")&&v(i,a),b[0]&1&&f!==(f=g[0].upstream+"")&&v(d,f),g[0].transformer?m?m.p(g,b):(m=Rd(g),m.c(),m.m(e,null)):m&&(m.d(1),m=null)},d(g){g&&H(s),m&&m.d()}}}function Rd(l){let s,e=l[24]("logs.detail.transformer")+"",n,a,i=l[0].transformer+"",u;return{c(){s=r("div"),n=_(e),a=_(": "),u=_(i),o(s,"class","text-xs opacity-60")},m(c,f){L(c,s,f),t(s,n),t(s,a),t(s,u)},p(c,f){f[0]&16777216&&e!==(e=c[24]("logs.detail.transformer")+"")&&v(n,e),f[0]&1&&i!==(i=c[0].transformer+"")&&v(u,i)},d(c){c&&H(s)}}}function qd(l){let s,e,n,a,i,u,c=l[24]("logs.detail.errorInfo")+"",f,d,p,m=l[0].errorMessage+"",g;return{c(){s=r("div"),e=re("svg"),n=re("path"),a=h(),i=r("div"),u=r("div"),f=_(c),d=h(),p=r("div"),g=_(m),o(n,"stroke-linecap","round"),o(n,"stroke-linejoin","round"),o(n,"stroke-width","2"),o(n,"d","M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z"),o(e,"xmlns","http://www.w3.org/2000/svg"),o(e,"class","stroke-current shrink-0 h-6 w-6"),o(e,"fill","none"),o(e,"viewBox","0 0 24 24"),o(u,"class","font-bold"),o(p,"class","font-mono text-sm"),o(s,"class","alert alert-error")},m(b,k){L(b,s,k),t(s,e),t(e,n),t(s,a),t(s,i),t(i,u),t(u,f),t(i,d),t(i,p),t(p,g)},p(b,k){k[0]&16777216&&c!==(c=b[24]("logs.detail.errorInfo")+"")&&v(f,c),k[0]&1&&m!==(m=b[0].errorMessage+"")&&v(g,m)},d(b){b&&H(s)}}}function Hd(l){let s;function e(i,u){return i[0].originalReqHeaderId||i[0].originalReqBodyId?Vm:Um}let n=e(l),a=n(l);return{c(){s=r("div"),a.c(),o(s,"class","space-y-4")},m(i,u){L(i,s,u),a.m(s,null)},p(i,u){n===(n=e(i))&&a?a.p(i,u):(a.d(1),a=n(i),a&&(a.c(),a.m(s,null)))},d(i){i&&H(s),a.d()}}}function Um(l){let s,e=l[24]("logs.detail.noDataAvailable")+"",n;return{c(){s=r("div"),n=_(e),o(s,"class","text-center py-8 opacity-60")},m(a,i){L(a,s,i),t(s,n)},p(a,i){i[0]&16777216&&e!==(e=a[24]("logs.detail.noDataAvailable")+"")&&v(n,e)},d(a){a&&H(s)}}}function Vm(l){let s,e,n=l[0].originalReqHeaderId&&Ld(l),a=l[8]&&l[0].originalReqBodyId&&jd(l);return{c(){n&&n.c(),s=h(),a&&a.c(),e=Ul()},m(i,u){n&&n.m(i,u),L(i,s,u),a&&a.m(i,u),L(i,e,u)},p(i,u){i[0].originalReqHeaderId?n?n.p(i,u):(n=Ld(i),n.c(),n.m(s.parentNode,s)):n&&(n.d(1),n=null),i[8]&&i[0].originalReqBodyId?a?a.p(i,u):(a=jd(i),a.c(),a.m(e.parentNode,e)):a&&(a.d(1),a=null)},d(i){i&&(H(s),H(e)),n&&n.d(i),a&&a.d(i)}}}function Ld(l){let s,e,n=l[24]("logs.detail.requestHeaders")+"",a,i;function u(d,p){return d[17]?Km:d[19]?Gm:d[15]!==null?Wm:Jm}let c=u(l),f=c(l);return{c(){s=r("div"),e=r("div"),a=_(n),i=h(),f.c(),o(e,"class","text-sm font-semibold mb-2")},m(d,p){L(d,s,p),t(s,e),t(e,a),t(s,i),f.m(s,null)},p(d,p){p[0]&16777216&&n!==(n=d[24]("logs.detail.requestHeaders")+"")&&v(a,n),c===(c=u(d))&&f?f.p(d,p):(f.d(1),f=c(d),f&&(f.c(),f.m(s,null)))},d(d){d&&H(s),f.d()}}}function Jm(l){let s,e=l[24]("logs.detail.noHeaders")+"",n;return{c(){s=r("div"),n=_(e),o(s,"class","text-sm opacity-60")},m(a,i){L(a,s,i),t(s,n)},p(a,i){i[0]&16777216&&e!==(e=a[24]("logs.detail.noHeaders")+"")&&v(n,e)},d(a){a&&H(s)}}}function Wm(l){let s,e,n,a,i,u=ut(Object.entries(l[15])),c=[];for(let f=0;f<u.length;f+=1)c[f]=Pd(ud(l,u,f));return{c(){s=r("div"),e=r("table"),n=r("thead"),n.innerHTML='<tr><th class="w-1/3">Name</th> <th>Value</th></tr>',a=h(),i=r("tbody");for(let f=0;f<c.length;f+=1)c[f].c();o(e,"class","table table-sm table-zebra"),o(s,"class","overflow-x-auto")},m(f,d){L(f,s,d),t(s,e),t(e,n),t(e,a),t(e,i);for(let p=0;p<c.length;p+=1)c[p]&&c[p].m(i,null)},p(f,d){if(d[0]&32768){u=ut(Object.entries(f[15]));let p;for(p=0;p<u.length;p+=1){const m=ud(f,u,p);c[p]?c[p].p(m,d):(c[p]=Pd(m),c[p].c(),c[p].m(i,null))}for(;p<c.length;p+=1)c[p].d(1);c.length=u.length}},d(f){f&&H(s),Gt(c,f)}}}function Gm(l){let s,e,n;return{c(){s=r("div"),e=r("span"),n=_(l[19]),o(e,"class","text-sm"),o(s,"class","alert alert-error")},m(a,i){L(a,s,i),t(s,e),t(e,n)},p(a,i){i[0]&524288&&v(n,a[19])},d(a){a&&H(s)}}}function Km(l){let s,e,n,a,i=l[24]("common.loading")+"",u;return{c(){s=r("div"),e=r("span"),n=h(),a=r("span"),u=_(i),o(e,"class","loading loading-spinner loading-sm"),o(a,"class","text-sm"),o(s,"class","flex items-center gap-2")},m(c,f){L(c,s,f),t(s,e),t(s,n),t(s,a),t(a,u)},p(c,f){f[0]&16777216&&i!==(i=c[24]("common.loading")+"")&&v(u,i)},d(c){c&&H(s)}}}function Pd(l){let s,e,n=l[43]+"",a,i,u,c=l[44]+"",f,d;return{c(){s=r("tr"),e=r("td"),a=_(n),i=h(),u=r("td"),f=_(c),d=h(),o(e,"class","font-mono text-xs"),o(u,"class","font-mono text-xs break-all")},m(p,m){L(p,s,m),t(s,e),t(e,a),t(s,i),t(s,u),t(u,f),t(s,d)},p(p,m){m[0]&32768&&n!==(n=p[43]+"")&&v(a,n),m[0]&32768&&c!==(c=p[44]+"")&&v(f,c)},d(p){p&&H(s)}}}function jd(l){let s,e,n=l[24]("logs.detail.requestBody")+"",a,i;function u(d,p){return d[18]?Xm:d[20]?Zm:d[16]!==null?Qm:Ym}let c=u(l),f=c(l);return{c(){s=r("div"),e=r("div"),a=_(n),i=h(),f.c(),o(e,"class","text-sm font-semibold mb-2")},m(d,p){L(d,s,p),t(s,e),t(e,a),t(s,i),f.m(s,null)},p(d,p){p[0]&16777216&&n!==(n=d[24]("logs.detail.requestBody")+"")&&v(a,n),c===(c=u(d))&&f?f.p(d,p):(f.d(1),f=c(d),f&&(f.c(),f.m(s,null)))},d(d){d&&H(s),f.d()}}}function Ym(l){let s,e=l[24]("logs.detail.noBody")+"",n;return{c(){s=r("div"),n=_(e),o(s,"class","text-sm opacity-60")},m(a,i){L(a,s,i),t(s,n)},p(a,i){i[0]&16777216&&e!==(e=a[24]("logs.detail.noBody")+"")&&v(n,e)},d(a){a&&H(s)}}}function Qm(l){let s,e=Qn(l[16])+"",n;return{c(){s=r("pre"),n=_(e),o(s,"class","bg-base-300 p-4 rounded overflow-x-auto text-xs max-h-96")},m(a,i){L(a,s,i),t(s,n)},p(a,i){i[0]&65536&&e!==(e=Qn(a[16])+"")&&v(n,e)},d(a){a&&H(s)}}}function Zm(l){let s,e,n;return{c(){s=r("div"),e=r("span"),n=_(l[20]),o(e,"class","text-sm"),o(s,"class","alert alert-error")},m(a,i){L(a,s,i),t(s,e),t(e,n)},p(a,i){i[0]&1048576&&v(n,a[20])},d(a){a&&H(s)}}}function Xm(l){let s,e,n,a,i=l[24]("common.loading")+"",u;return{c(){s=r("div"),e=r("span"),n=h(),a=r("span"),u=_(i),o(e,"class","loading loading-spinner loading-sm"),o(a,"class","text-sm"),o(s,"class","flex items-center gap-2")},m(c,f){L(c,s,f),t(s,e),t(s,n),t(s,a),t(a,u)},p(c,f){f[0]&16777216&&i!==(i=c[24]("common.loading")+"")&&v(u,i)},d(c){c&&H(s)}}}function Dd(l){let s;function e(i,u){return i[0].reqHeaderId||i[0].reqBodyId?$m:xm}let n=e(l),a=n(l);return{c(){s=r("div"),a.c(),o(s,"class","space-y-4")},m(i,u){L(i,s,u),a.m(s,null)},p(i,u){n===(n=e(i))&&a?a.p(i,u):(a.d(1),a=n(i),a&&(a.c(),a.m(s,null)))},d(i){i&&H(s),a.d()}}}function xm(l){let s,e=l[24]("logs.detail.noDataAvailable")+"",n;return{c(){s=r("div"),n=_(e),o(s,"class","text-center py-8 opacity-60")},m(a,i){L(a,s,i),t(s,n)},p(a,i){i[0]&16777216&&e!==(e=a[24]("logs.detail.noDataAvailable")+"")&&v(n,e)},d(a){a&&H(s)}}}function $m(l){let s,e,n=l[0].reqHeaderId&&Bd(l),a=l[8]&&l[0].reqBodyId&&Ad(l);return{c(){n&&n.c(),s=h(),a&&a.c(),e=Ul()},m(i,u){n&&n.m(i,u),L(i,s,u),a&&a.m(i,u),L(i,e,u)},p(i,u){i[0].reqHeaderId?n?n.p(i,u):(n=Bd(i),n.c(),n.m(s.parentNode,s)):n&&(n.d(1),n=null),i[8]&&i[0].reqBodyId?a?a.p(i,u):(a=Ad(i),a.c(),a.m(e.parentNode,e)):a&&(a.d(1),a=null)},d(i){i&&(H(s),H(e)),n&&n.d(i),a&&a.d(i)}}}function Bd(l){let s,e,n=l[24]("logs.detail.requestHeaders")+"",a,i;function u(d,p){return d[11]?sg:d[13]?lg:d[9]!==null?tg:eg}let c=u(l),f=c(l);return{c(){s=r("div"),e=r("div"),a=_(n),i=h(),f.c(),o(e,"class","text-sm font-semibold mb-2")},m(d,p){L(d,s,p),t(s,e),t(e,a),t(s,i),f.m(s,null)},p(d,p){p[0]&16777216&&n!==(n=d[24]("logs.detail.requestHeaders")+"")&&v(a,n),c===(c=u(d))&&f?f.p(d,p):(f.d(1),f=c(d),f&&(f.c(),f.m(s,null)))},d(d){d&&H(s),f.d()}}}function eg(l){let s,e=l[24]("logs.detail.noHeaders")+"",n;return{c(){s=r("div"),n=_(e),o(s,"class","text-sm opacity-60")},m(a,i){L(a,s,i),t(s,n)},p(a,i){i[0]&16777216&&e!==(e=a[24]("logs.detail.noHeaders")+"")&&v(n,e)},d(a){a&&H(s)}}}function tg(l){let s,e,n,a,i,u=ut(Object.entries(l[9])),c=[];for(let f=0;f<u.length;f+=1)c[f]=Id(id(l,u,f));return{c(){s=r("div"),e=r("table"),n=r("thead"),n.innerHTML='<tr><th class="w-1/3">Name</th> <th>Value</th></tr>',a=h(),i=r("tbody");for(let f=0;f<c.length;f+=1)c[f].c();o(e,"class","table table-sm table-zebra"),o(s,"class","overflow-x-auto")},m(f,d){L(f,s,d),t(s,e),t(e,n),t(e,a),t(e,i);for(let p=0;p<c.length;p+=1)c[p]&&c[p].m(i,null)},p(f,d){if(d[0]&512){u=ut(Object.entries(f[9]));let p;for(p=0;p<u.length;p+=1){const m=id(f,u,p);c[p]?c[p].p(m,d):(c[p]=Id(m),c[p].c(),c[p].m(i,null))}for(;p<c.length;p+=1)c[p].d(1);c.length=u.length}},d(f){f&&H(s),Gt(c,f)}}}function lg(l){let s,e,n;return{c(){s=r("div"),e=r("span"),n=_(l[13]),o(e,"class","text-sm"),o(s,"class","alert alert-error")},m(a,i){L(a,s,i),t(s,e),t(e,n)},p(a,i){i[0]&8192&&v(n,a[13])},d(a){a&&H(s)}}}function sg(l){let s,e,n,a,i=l[24]("common.loading")+"",u;return{c(){s=r("div"),e=r("span"),n=h(),a=r("span"),u=_(i),o(e,"class","loading loading-spinner loading-sm"),o(a,"class","text-sm"),o(s,"class","flex items-center gap-2")},m(c,f){L(c,s,f),t(s,e),t(s,n),t(s,a),t(a,u)},p(c,f){f[0]&16777216&&i!==(i=c[24]("common.loading")+"")&&v(u,i)},d(c){c&&H(s)}}}function Id(l){let s,e,n=l[43]+"",a,i,u,c=l[44]+"",f,d;return{c(){s=r("tr"),e=r("td"),a=_(n),i=h(),u=r("td"),f=_(c),d=h(),o(e,"class","font-mono text-xs"),o(u,"class","font-mono text-xs break-all")},m(p,m){L(p,s,m),t(s,e),t(e,a),t(s,i),t(s,u),t(u,f),t(s,d)},p(p,m){m[0]&512&&n!==(n=p[43]+"")&&v(a,n),m[0]&512&&c!==(c=p[44]+"")&&v(f,c)},d(p){p&&H(s)}}}function Ad(l){let s,e,n=l[24]("logs.detail.requestBody")+"",a,i;function u(d,p){return d[4]?rg:d[6]?ag:d[2]!==null?ng:og}let c=u(l),f=c(l);return{c(){s=r("div"),e=r("div"),a=_(n),i=h(),f.c(),o(e,"class","text-sm font-semibold mb-2")},m(d,p){L(d,s,p),t(s,e),t(e,a),t(s,i),f.m(s,null)},p(d,p){p[0]&16777216&&n!==(n=d[24]("logs.detail.requestBody")+"")&&v(a,n),c===(c=u(d))&&f?f.p(d,p):(f.d(1),f=c(d),f&&(f.c(),f.m(s,null)))},d(d){d&&H(s),f.d()}}}function og(l){let s,e=l[24]("logs.detail.noBody")+"",n;return{c(){s=r("div"),n=_(e),o(s,"class","text-sm opacity-60")},m(a,i){L(a,s,i),t(s,n)},p(a,i){i[0]&16777216&&e!==(e=a[24]("logs.detail.noBody")+"")&&v(n,e)},d(a){a&&H(s)}}}function ng(l){let s,e=Qn(l[2])+"",n;return{c(){s=r("pre"),n=_(e),o(s,"class","bg-base-300 p-4 rounded overflow-x-auto text-xs max-h-96")},m(a,i){L(a,s,i),t(s,n)},p(a,i){i[0]&4&&e!==(e=Qn(a[2])+"")&&v(n,e)},d(a){a&&H(s)}}}function ag(l){let s,e,n;return{c(){s=r("div"),e=r("span"),n=_(l[6]),o(e,"class","text-sm"),o(s,"class","alert alert-error")},m(a,i){L(a,s,i),t(s,e),t(e,n)},p(a,i){i[0]&64&&v(n,a[6])},d(a){a&&H(s)}}}function rg(l){let s,e,n,a,i=l[24]("common.loading")+"",u;return{c(){s=r("div"),e=r("span"),n=h(),a=r("span"),u=_(i),o(e,"class","loading loading-spinner loading-sm"),o(a,"class","text-sm"),o(s,"class","flex items-center gap-2")},m(c,f){L(c,s,f),t(s,e),t(s,n),t(s,a),t(a,u)},p(c,f){f[0]&16777216&&i!==(i=c[24]("common.loading")+"")&&v(u,i)},d(c){c&&H(s)}}}function Fd(l){let s;function e(i,u){return i[0].respHeaderId||i[0].respBodyId?ug:ig}let n=e(l),a=n(l);return{c(){s=r("div"),a.c(),o(s,"class","space-y-4")},m(i,u){L(i,s,u),a.m(s,null)},p(i,u){n===(n=e(i))&&a?a.p(i,u):(a.d(1),a=n(i),a&&(a.c(),a.m(s,null)))},d(i){i&&H(s),a.d()}}}function ig(l){let s,e=l[24]("logs.detail.noDataAvailable")+"",n;return{c(){s=r("div"),n=_(e),o(s,"class","text-center py-8 opacity-60")},m(a,i){L(a,s,i),t(s,n)},p(a,i){i[0]&16777216&&e!==(e=a[24]("logs.detail.noDataAvailable")+"")&&v(n,e)},d(a){a&&H(s)}}}function ug(l){let s,e,n=l[0].respHeaderId&&zd(l),a=l[8]&&l[0].respBodyId&&Nd(l);return{c(){n&&n.c(),s=h(),a&&a.c(),e=Ul()},m(i,u){n&&n.m(i,u),L(i,s,u),a&&a.m(i,u),L(i,e,u)},p(i,u){i[0].respHeaderId?n?n.p(i,u):(n=zd(i),n.c(),n.m(s.parentNode,s)):n&&(n.d(1),n=null),i[8]&&i[0].respBodyId?a?a.p(i,u):(a=Nd(i),a.c(),a.m(e.parentNode,e)):a&&(a.d(1),a=null)},d(i){i&&(H(s),H(e)),n&&n.d(i),a&&a.d(i)}}}function zd(l){let s,e,n=l[24]("logs.detail.responseHeaders")+"",a,i;function u(d,p){return d[12]?pg:d[14]?dg:d[10]!==null?cg:fg}let c=u(l),f=c(l);return{c(){s=r("div"),e=r("div"),a=_(n),i=h(),f.c(),o(e,"class","text-sm font-semibold mb-2")},m(d,p){L(d,s,p),t(s,e),t(e,a),t(s,i),f.m(s,null)},p(d,p){p[0]&16777216&&n!==(n=d[24]("logs.detail.responseHeaders")+"")&&v(a,n),c===(c=u(d))&&f?f.p(d,p):(f.d(1),f=c(d),f&&(f.c(),f.m(s,null)))},d(d){d&&H(s),f.d()}}}function fg(l){let s,e=l[24]("logs.detail.noHeaders")+"",n;return{c(){s=r("div"),n=_(e),o(s,"class","text-sm opacity-60")},m(a,i){L(a,s,i),t(s,n)},p(a,i){i[0]&16777216&&e!==(e=a[24]("logs.detail.noHeaders")+"")&&v(n,e)},d(a){a&&H(s)}}}function cg(l){let s,e,n,a,i,u=ut(Object.entries(l[10])),c=[];for(let f=0;f<u.length;f+=1)c[f]=Od(rd(l,u,f));return{c(){s=r("div"),e=r("table"),n=r("thead"),n.innerHTML='<tr><th class="w-1/3">Name</th> <th>Value</th></tr>',a=h(),i=r("tbody");for(let f=0;f<c.length;f+=1)c[f].c();o(e,"class","table table-sm table-zebra"),o(s,"class","overflow-x-auto")},m(f,d){L(f,s,d),t(s,e),t(e,n),t(e,a),t(e,i);for(let p=0;p<c.length;p+=1)c[p]&&c[p].m(i,null)},p(f,d){if(d[0]&1024){u=ut(Object.entries(f[10]));let p;for(p=0;p<u.length;p+=1){const m=rd(f,u,p);c[p]?c[p].p(m,d):(c[p]=Od(m),c[p].c(),c[p].m(i,null))}for(;p<c.length;p+=1)c[p].d(1);c.length=u.length}},d(f){f&&H(s),Gt(c,f)}}}function dg(l){let s,e,n;return{c(){s=r("div"),e=r("span"),n=_(l[14]),o(e,"class","text-sm"),o(s,"class","alert alert-error")},m(a,i){L(a,s,i),t(s,e),t(e,n)},p(a,i){i[0]&16384&&v(n,a[14])},d(a){a&&H(s)}}}function pg(l){let s,e,n,a,i=l[24]("common.loading")+"",u;return{c(){s=r("div"),e=r("span"),n=h(),a=r("span"),u=_(i),o(e,"class","loading loading-spinner loading-sm"),o(a,"class","text-sm"),o(s,"class","flex items-center gap-2")},m(c,f){L(c,s,f),t(s,e),t(s,n),t(s,a),t(a,u)},p(c,f){f[0]&16777216&&i!==(i=c[24]("common.loading")+"")&&v(u,i)},d(c){c&&H(s)}}}function Od(l){let s,e,n=l[43]+"",a,i,u,c=l[44]+"",f,d;return{c(){s=r("tr"),e=r("td"),a=_(n),i=h(),u=r("td"),f=_(c),d=h(),o(e,"class","font-mono text-xs"),o(u,"class","font-mono text-xs break-all")},m(p,m){L(p,s,m),t(s,e),t(e,a),t(s,i),t(s,u),t(u,f),t(s,d)},p(p,m){m[0]&1024&&n!==(n=p[43]+"")&&v(a,n),m[0]&1024&&c!==(c=p[44]+"")&&v(f,c)},d(p){p&&H(s)}}}function Nd(l){let s,e,n=l[24]("logs.detail.responseBody")+"",a,i;function u(d,p){return d[5]?_g:d[7]?gg:d[3]!==null?mg:hg}let c=u(l),f=c(l);return{c(){s=r("div"),e=r("div"),a=_(n),i=h(),f.c(),o(e,"class","text-sm font-semibold mb-2")},m(d,p){L(d,s,p),t(s,e),t(e,a),t(s,i),f.m(s,null)},p(d,p){p[0]&16777216&&n!==(n=d[24]("logs.detail.responseBody")+"")&&v(a,n),c===(c=u(d))&&f?f.p(d,p):(f.d(1),f=c(d),f&&(f.c(),f.m(s,null)))},d(d){d&&H(s),f.d()}}}function hg(l){let s,e=l[24]("logs.detail.noBody")+"",n;return{c(){s=r("div"),n=_(e),o(s,"class","text-sm opacity-60")},m(a,i){L(a,s,i),t(s,n)},p(a,i){i[0]&16777216&&e!==(e=a[24]("logs.detail.noBody")+"")&&v(n,e)},d(a){a&&H(s)}}}function mg(l){let s,e=Qn(l[3])+"",n;return{c(){s=r("pre"),n=_(e),o(s,"class","bg-base-300 p-4 rounded overflow-x-auto text-xs max-h-96")},m(a,i){L(a,s,i),t(s,n)},p(a,i){i[0]&8&&e!==(e=Qn(a[3])+"")&&v(n,e)},d(a){a&&H(s)}}}function gg(l){let s,e,n;return{c(){s=r("div"),e=r("span"),n=_(l[7]),o(e,"class","text-sm"),o(s,"class","alert alert-error")},m(a,i){L(a,s,i),t(s,e),t(e,n)},p(a,i){i[0]&128&&v(n,a[7])},d(a){a&&H(s)}}}function _g(l){let s,e,n,a,i=l[24]("common.loading")+"",u;return{c(){s=r("div"),e=r("span"),n=h(),a=r("span"),u=_(i),o(e,"class","loading loading-spinner loading-sm"),o(a,"class","text-sm"),o(s,"class","flex items-center gap-2")},m(c,f){L(c,s,f),t(s,e),t(s,n),t(s,a),t(a,u)},p(c,f){f[0]&16777216&&i!==(i=c[24]("common.loading")+"")&&v(u,i)},d(c){c&&H(s)}}}function Ud(l){let s,e,n,a=l[24]("logs.detail.authInfo")+"",i,u,c,f,d,p=l[24]("logs.detail.authLevel")+"",m,g,b,k=l[0].authLevel+"",w,C,E,y,T=l[24]("logs.detail.authResult")+"",M,R,j,P=(l[0].authSuccess?l[24]("logs.detail.authSuccess"):l[24]("logs.detail.authFailed"))+"",I,q;return{c(){s=r("div"),e=r("div"),n=r("h4"),i=_(a),u=h(),c=r("div"),f=r("div"),d=r("div"),m=_(p),g=h(),b=r("div"),w=_(k),C=h(),E=r("div"),y=r("div"),M=_(T),R=h(),j=r("span"),I=_(P),o(n,"class","card-title text-base mb-2"),o(d,"class","text-xs opacity-60 mb-1"),o(b,"class","text-sm"),o(y,"class","text-xs opacity-60 mb-1"),o(j,"class",q="badge "+(l[0].authSuccess?"badge-success":"badge-error")),o(c,"class","grid grid-cols-2 gap-4"),o(e,"class","card-body p-4"),o(s,"class","card bg-base-200")},m(D,A){L(D,s,A),t(s,e),t(e,n),t(n,i),t(e,u),t(e,c),t(c,f),t(f,d),t(d,m),t(f,g),t(f,b),t(b,w),t(c,C),t(c,E),t(E,y),t(y,M),t(E,R),t(E,j),t(j,I)},p(D,A){A[0]&16777216&&a!==(a=D[24]("logs.detail.authInfo")+"")&&v(i,a),A[0]&16777216&&p!==(p=D[24]("logs.detail.authLevel")+"")&&v(m,p),A[0]&1&&k!==(k=D[0].authLevel+"")&&v(w,k),A[0]&16777216&&T!==(T=D[24]("logs.detail.authResult")+"")&&v(M,T),A[0]&16777217&&P!==(P=(D[0].authSuccess?D[24]("logs.detail.authSuccess"):D[24]("logs.detail.authFailed"))+"")&&v(I,P),A[0]&1&&q!==(q="badge "+(D[0].authSuccess?"badge-success":"badge-error"))&&o(j,"class",q)},d(D){D&&H(s)}}}function bg(l){let s,e,n,a,i=l[24]("logs.detail.title")+"",u,c,f,d,p,m,g,b,k,w,C,E=l[24]("logs.detail.downloadJson")+"",y,T,M,R,j,P,I,q,D,A=l[24]("logs.detail.overview")+"",N,Z,Q,x,z,K=l[24]("logs.detail.status")+"",S,B,U,F=l[0].status+"",J,ie,ue,ne,$,te=l[24]("logs.detail.method")+"",ae,ee,G,pe=l[0].method+"",oe,ge,he,ye,ze=l[24]("logs.requestType")+"",Pe,we,Fe,Je=l[25](l[0].requestType)+"",je,Le,Se,fe,_e,Ie,De=l[24]("logs.detail.duration")+"",se,ke,me,Ee=go(l[0].duration)+"",Ve,Be,nt,Ne,Qe=l[24]("logs.detail.timestamp")+"",Ye,ve,de,Te=Vd(l[0].timestamp)+"",Ze,Me,Ue,Ce,mt=l[24]("logs.detail.requestId")+"",Ge,ce,qe,Re=l[0].requestId+"",dt,We,O,He,X=l[24]("logs.detail.processingSteps")+"",ft,Ht,Ke,_t,tt,it,Oe,Xe,It=l[24]("logs.detail.requestInfo")+"",rt,gt,wt,pt,bl,at,St,ht,Tt,vl,At,hl,ml,ql,Jt,Yl,Yt,Qt=l[24]("logs.detail.tabOriginalRequest")+"",Hl,Bl,gl,sl,Ql,Ft,Ll=l[24]("logs.detail.tabFinalRequest")+"",Vl,Jl,Cl,zt,Zl,Lt,Pl=l[24]("logs.detail.tabResponse")+"",jl,$l,xt,kl,es,zl,Il,Wl,Ls;function ol(Xt,$e){return Xt[23]?Im:Bm}let wl=ol(l),nl=wl(l);function Ol(Xt,$e){return Xt[0].processingSteps&&Xt[0].processingSteps.length>0?Fm:Am}let al=Ol(l),_l=al(l),tl=l[0].processingSteps&&l[0].processingSteps.length>0&&md(Su(l));function Dl(Xt,$e){return Xt[0].transformedPath&&Xt[0].transformedPath!==Xt[0].path?Nm:Om}let Nl=Dl(l),El=Nl(l),Wt=l[0].query&&Td(l),Bt=l[0].routePath&&Sd(l),Pt=l[0].upstream&&Md(l),$t=l[0].errorMessage&&qd(l),el=l[21]==="original"&&Hd(l),Kt=l[21]==="transformed"&&Dd(l),Zt=l[21]==="response"&&Fd(l),rl=l[0].authLevel&&Ud(l);return Il=Mu(l[33][0]),{c(){s=r("div"),e=r("div"),n=r("div"),a=r("h3"),u=_(i),c=h(),f=r("div"),d=r("button"),nl.c(),m=h(),g=r("button"),b=re("svg"),k=re("path"),w=h(),C=r("span"),y=_(E),M=h(),R=r("button"),R.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg>',j=h(),P=r("div"),I=r("div"),q=r("div"),D=r("h4"),N=_(A),Z=h(),Q=r("div"),x=r("div"),z=r("div"),S=_(K),B=h(),U=r("span"),J=_(F),ue=h(),ne=r("div"),$=r("div"),ae=_(te),ee=h(),G=r("span"),oe=_(pe),ge=h(),he=r("div"),ye=r("div"),Pe=_(ze),we=h(),Fe=r("span"),je=_(Je),fe=h(),_e=r("div"),Ie=r("div"),se=_(De),ke=h(),me=r("div"),Ve=_(Ee),Be=h(),nt=r("div"),Ne=r("div"),Ye=_(Qe),ve=h(),de=r("div"),Ze=_(Te),Me=h(),Ue=r("div"),Ce=r("div"),Ge=_(mt),ce=h(),qe=r("div"),dt=_(Re),We=h(),O=r("div"),He=r("div"),ft=_(X),Ht=h(),Ke=r("div"),_l.c(),_t=h(),tl&&tl.c(),tt=h(),it=r("div"),Oe=r("div"),Xe=r("h4"),rt=_(It),gt=h(),wt=r("div"),El.c(),pt=h(),Wt&&Wt.c(),bl=h(),at=r("div"),Bt&&Bt.c(),St=h(),Pt&&Pt.c(),ht=h(),$t&&$t.c(),Tt=h(),vl=r("div"),At=r("div"),hl=r("div"),ml=r("div"),ql=r("label"),Jt=r("input"),Yl=h(),Yt=r("span"),Hl=_(Qt),Bl=h(),gl=r("label"),sl=r("input"),Ql=h(),Ft=r("span"),Vl=_(Ll),Jl=h(),Cl=r("label"),zt=r("input"),Zl=h(),Lt=r("span"),jl=_(Pl),$l=h(),xt=r("div"),el&&el.c(),kl=h(),Kt&&Kt.c(),es=h(),Zt&&Zt.c(),zl=h(),rl&&rl.c(),o(a,"id","modal-title"),o(a,"class","font-bold text-xl"),o(d,"class","btn btn-sm btn-ghost"),o(d,"title",p=l[24]("logs.detail.copyToClipboard")),o(k,"stroke-linecap","round"),o(k,"stroke-linejoin","round"),o(k,"stroke-width","2"),o(k,"d","M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"),o(b,"xmlns","http://www.w3.org/2000/svg"),o(b,"class","h-4 w-4"),o(b,"fill","none"),o(b,"viewBox","0 0 24 24"),o(b,"stroke","currentColor"),o(C,"class","hidden md:inline"),o(g,"class","btn btn-sm btn-ghost"),o(g,"title",T=l[24]("logs.detail.downloadJson")),o(R,"class","btn btn-sm btn-circle btn-ghost"),o(f,"class","flex items-center gap-2"),o(n,"class","flex items-center justify-between px-6 py-4 border-b border-base-300"),o(D,"class","card-title text-base mb-3"),o(z,"class","text-xs opacity-60 mb-1"),o(U,"class",ie="badge "+Jd(l[0].status)+" badge-lg"),o($,"class","text-xs opacity-60 mb-1"),o(G,"class","badge badge-lg"),o(ye,"class","text-xs opacity-60 mb-1"),o(Fe,"class",Le="badge "+Wd(l[0].requestType)+" badge-lg"),o(Fe,"title",Se=l[24](\`logs.requestType_\${l[0].requestType}_desc\`)),o(Ie,"class","text-xs opacity-60 mb-1"),o(me,"class","font-semibold"),o(Ne,"class","text-xs opacity-60 mb-1"),o(de,"class","text-sm"),o(Ce,"class","text-xs opacity-60 mb-1"),o(qe,"class","font-mono text-xs break-all"),o(Ue,"class","col-span-2"),o(He,"class","text-xs opacity-60 mb-1"),o(Ke,"class","flex gap-2 flex-wrap"),o(O,"class","col-span-2 md:col-span-3 lg:col-span-6"),o(Q,"class","grid grid-cols-2 md:grid-cols-3 lg:grid-cols-6 gap-4"),o(q,"class","card-body p-4"),o(I,"class","card bg-base-200"),o(Xe,"class","card-title text-base mb-3"),o(wt,"class","space-y-2"),o(Oe,"class","card-body p-4"),o(it,"class","card bg-base-200"),o(at,"class","grid grid-cols-1 md:grid-cols-2 gap-4"),o(Jt,"class","sr-only"),o(Jt,"type","radio"),o(Jt,"name","activeTab"),Jt.__value="original",Y(Jt,Jt.__value),o(Yt,"class","block px-4 py-1.5 text-sm font-medium rounded-md transition-all"),le(Yt,"bg-primary",l[21]==="original"),le(Yt,"text-primary-content",l[21]==="original"),le(Yt,"shadow",l[21]==="original"),le(Yt,"text-gray-700",l[21]!=="original"),le(Yt,"dark:text-gray-300",l[21]!=="original"),le(Yt,"hover:text-gray-900",l[21]!=="original"),le(Yt,"dark:hover:text-gray-100",l[21]!=="original"),o(ql,"class","cursor-pointer"),o(sl,"class","sr-only"),o(sl,"type","radio"),o(sl,"name","activeTab"),sl.__value="transformed",Y(sl,sl.__value),o(Ft,"class","block px-4 py-1.5 text-sm font-medium rounded-md transition-all"),le(Ft,"bg-primary",l[21]==="transformed"),le(Ft,"text-primary-content",l[21]==="transformed"),le(Ft,"shadow",l[21]==="transformed"),le(Ft,"text-gray-700",l[21]!=="transformed"),le(Ft,"dark:text-gray-300",l[21]!=="transformed"),le(Ft,"hover:text-gray-900",l[21]!=="transformed"),le(Ft,"dark:hover:text-gray-100",l[21]!=="transformed"),o(gl,"class","cursor-pointer"),o(zt,"class","sr-only"),o(zt,"type","radio"),o(zt,"name","activeTab"),zt.__value="response",Y(zt,zt.__value),o(Lt,"class","block px-4 py-1.5 text-sm font-medium rounded-md transition-all"),le(Lt,"bg-primary",l[21]==="response"),le(Lt,"text-primary-content",l[21]==="response"),le(Lt,"shadow",l[21]==="response"),le(Lt,"text-gray-700",l[21]!=="response"),le(Lt,"dark:text-gray-300",l[21]!=="response"),le(Lt,"hover:text-gray-900",l[21]!=="response"),le(Lt,"dark:hover:text-gray-100",l[21]!=="response"),o(Cl,"class","cursor-pointer"),o(ml,"class","inline-flex gap-1 p-1 bg-white dark:bg-gray-800 rounded-lg shadow-sm"),o(hl,"class","p-2 border-b border-base-300 flex justify-center"),o(xt,"class","p-4"),o(At,"class","card-body p-0"),o(vl,"class","card bg-base-200"),o(P,"class","flex-1 overflow-y-auto px-6 py-4 space-y-6"),o(e,"class","modal-box max-w-6xl h-[90vh] flex flex-col p-0"),o(e,"role","dialog"),o(e,"aria-labelledby","modal-title"),o(e,"aria-modal","true"),o(s,"class","modal modal-open"),o(s,"role","presentation"),Il.p(Jt,sl,zt)},m(Xt,$e){L(Xt,s,$e),t(s,e),t(e,n),t(n,a),t(a,u),t(n,c),t(n,f),t(f,d),nl.m(d,null),t(f,m),t(f,g),t(g,b),t(b,k),t(g,w),t(g,C),t(C,y),t(f,M),t(f,R),t(e,j),t(e,P),t(P,I),t(I,q),t(q,D),t(D,N),t(q,Z),t(q,Q),t(Q,x),t(x,z),t(z,S),t(x,B),t(x,U),t(U,J),t(Q,ue),t(Q,ne),t(ne,$),t($,ae),t(ne,ee),t(ne,G),t(G,oe),t(Q,ge),t(Q,he),t(he,ye),t(ye,Pe),t(he,we),t(he,Fe),t(Fe,je),t(Q,fe),t(Q,_e),t(_e,Ie),t(Ie,se),t(_e,ke),t(_e,me),t(me,Ve),t(Q,Be),t(Q,nt),t(nt,Ne),t(Ne,Ye),t(nt,ve),t(nt,de),t(de,Ze),t(Q,Me),t(Q,Ue),t(Ue,Ce),t(Ce,Ge),t(Ue,ce),t(Ue,qe),t(qe,dt),t(Q,We),t(Q,O),t(O,He),t(He,ft),t(O,Ht),t(O,Ke),_l.m(Ke,null),t(P,_t),tl&&tl.m(P,null),t(P,tt),t(P,it),t(it,Oe),t(Oe,Xe),t(Xe,rt),t(Oe,gt),t(Oe,wt),El.m(wt,null),t(wt,pt),Wt&&Wt.m(wt,null),t(P,bl),t(P,at),Bt&&Bt.m(at,null),t(at,St),Pt&&Pt.m(at,null),t(P,ht),$t&&$t.m(P,null),t(P,Tt),t(P,vl),t(vl,At),t(At,hl),t(hl,ml),t(ml,ql),t(ql,Jt),Jt.checked=Jt.__value===l[21],t(ql,Yl),t(ql,Yt),t(Yt,Hl),t(ml,Bl),t(ml,gl),t(gl,sl),sl.checked=sl.__value===l[21],t(gl,Ql),t(gl,Ft),t(Ft,Vl),t(ml,Jl),t(ml,Cl),t(Cl,zt),zt.checked=zt.__value===l[21],t(Cl,Zl),t(Cl,Lt),t(Lt,jl),t(At,$l),t(At,xt),el&&el.m(xt,null),t(xt,kl),Kt&&Kt.m(xt,null),t(xt,es),Zt&&Zt.m(xt,null),t(P,zl),rl&&rl.m(P,null),Wl||(Ls=[V(d,"click",l[29]),V(g,"click",l[30]),V(R,"click",function(){sa(l[1])&&l[1].apply(this,arguments)}),V(Jt,"change",l[32]),V(sl,"change",l[34]),V(zt,"change",l[35]),V(s,"click",l[28]),V(s,"keydown",l[36])],Wl=!0)},p(Xt,$e){l=Xt,$e[0]&16777216&&i!==(i=l[24]("logs.detail.title")+"")&&v(u,i),wl===(wl=ol(l))&&nl?nl.p(l,$e):(nl.d(1),nl=wl(l),nl&&(nl.c(),nl.m(d,null))),$e[0]&16777216&&p!==(p=l[24]("logs.detail.copyToClipboard"))&&o(d,"title",p),$e[0]&16777216&&E!==(E=l[24]("logs.detail.downloadJson")+"")&&v(y,E),$e[0]&16777216&&T!==(T=l[24]("logs.detail.downloadJson"))&&o(g,"title",T),$e[0]&16777216&&A!==(A=l[24]("logs.detail.overview")+"")&&v(N,A),$e[0]&16777216&&K!==(K=l[24]("logs.detail.status")+"")&&v(S,K),$e[0]&1&&F!==(F=l[0].status+"")&&v(J,F),$e[0]&1&&ie!==(ie="badge "+Jd(l[0].status)+" badge-lg")&&o(U,"class",ie),$e[0]&16777216&&te!==(te=l[24]("logs.detail.method")+"")&&v(ae,te),$e[0]&1&&pe!==(pe=l[0].method+"")&&v(oe,pe),$e[0]&16777216&&ze!==(ze=l[24]("logs.requestType")+"")&&v(Pe,ze),$e[0]&1&&Je!==(Je=l[25](l[0].requestType)+"")&&v(je,Je),$e[0]&1&&Le!==(Le="badge "+Wd(l[0].requestType)+" badge-lg")&&o(Fe,"class",Le),$e[0]&16777217&&Se!==(Se=l[24](\`logs.requestType_\${l[0].requestType}_desc\`))&&o(Fe,"title",Se),$e[0]&16777216&&De!==(De=l[24]("logs.detail.duration")+"")&&v(se,De),$e[0]&1&&Ee!==(Ee=go(l[0].duration)+"")&&v(Ve,Ee),$e[0]&16777216&&Qe!==(Qe=l[24]("logs.detail.timestamp")+"")&&v(Ye,Qe),$e[0]&1&&Te!==(Te=Vd(l[0].timestamp)+"")&&v(Ze,Te),$e[0]&16777216&&mt!==(mt=l[24]("logs.detail.requestId")+"")&&v(Ge,mt),$e[0]&1&&Re!==(Re=l[0].requestId+"")&&v(dt,Re),$e[0]&16777216&&X!==(X=l[24]("logs.detail.processingSteps")+"")&&v(ft,X),al===(al=Ol(l))&&_l?_l.p(l,$e):(_l.d(1),_l=al(l),_l&&(_l.c(),_l.m(Ke,null))),l[0].processingSteps&&l[0].processingSteps.length>0?tl?tl.p(Su(l),$e):(tl=md(Su(l)),tl.c(),tl.m(P,tt)):tl&&(tl.d(1),tl=null),$e[0]&16777216&&It!==(It=l[24]("logs.detail.requestInfo")+"")&&v(rt,It),Nl===(Nl=Dl(l))&&El?El.p(l,$e):(El.d(1),El=Nl(l),El&&(El.c(),El.m(wt,pt))),l[0].query?Wt?Wt.p(l,$e):(Wt=Td(l),Wt.c(),Wt.m(wt,null)):Wt&&(Wt.d(1),Wt=null),l[0].routePath?Bt?Bt.p(l,$e):(Bt=Sd(l),Bt.c(),Bt.m(at,St)):Bt&&(Bt.d(1),Bt=null),l[0].upstream?Pt?Pt.p(l,$e):(Pt=Md(l),Pt.c(),Pt.m(at,null)):Pt&&(Pt.d(1),Pt=null),l[0].errorMessage?$t?$t.p(l,$e):($t=qd(l),$t.c(),$t.m(P,Tt)):$t&&($t.d(1),$t=null),$e[0]&2097152&&(Jt.checked=Jt.__value===l[21]),$e[0]&16777216&&Qt!==(Qt=l[24]("logs.detail.tabOriginalRequest")+"")&&v(Hl,Qt),$e[0]&2097152&&le(Yt,"bg-primary",l[21]==="original"),$e[0]&2097152&&le(Yt,"text-primary-content",l[21]==="original"),$e[0]&2097152&&le(Yt,"shadow",l[21]==="original"),$e[0]&2097152&&le(Yt,"text-gray-700",l[21]!=="original"),$e[0]&2097152&&le(Yt,"dark:text-gray-300",l[21]!=="original"),$e[0]&2097152&&le(Yt,"hover:text-gray-900",l[21]!=="original"),$e[0]&2097152&&le(Yt,"dark:hover:text-gray-100",l[21]!=="original"),$e[0]&2097152&&(sl.checked=sl.__value===l[21]),$e[0]&16777216&&Ll!==(Ll=l[24]("logs.detail.tabFinalRequest")+"")&&v(Vl,Ll),$e[0]&2097152&&le(Ft,"bg-primary",l[21]==="transformed"),$e[0]&2097152&&le(Ft,"text-primary-content",l[21]==="transformed"),$e[0]&2097152&&le(Ft,"shadow",l[21]==="transformed"),$e[0]&2097152&&le(Ft,"text-gray-700",l[21]!=="transformed"),$e[0]&2097152&&le(Ft,"dark:text-gray-300",l[21]!=="transformed"),$e[0]&2097152&&le(Ft,"hover:text-gray-900",l[21]!=="transformed"),$e[0]&2097152&&le(Ft,"dark:hover:text-gray-100",l[21]!=="transformed"),$e[0]&2097152&&(zt.checked=zt.__value===l[21]),$e[0]&16777216&&Pl!==(Pl=l[24]("logs.detail.tabResponse")+"")&&v(jl,Pl),$e[0]&2097152&&le(Lt,"bg-primary",l[21]==="response"),$e[0]&2097152&&le(Lt,"text-primary-content",l[21]==="response"),$e[0]&2097152&&le(Lt,"shadow",l[21]==="response"),$e[0]&2097152&&le(Lt,"text-gray-700",l[21]!=="response"),$e[0]&2097152&&le(Lt,"dark:text-gray-300",l[21]!=="response"),$e[0]&2097152&&le(Lt,"hover:text-gray-900",l[21]!=="response"),$e[0]&2097152&&le(Lt,"dark:hover:text-gray-100",l[21]!=="response"),l[21]==="original"?el?el.p(l,$e):(el=Hd(l),el.c(),el.m(xt,kl)):el&&(el.d(1),el=null),l[21]==="transformed"?Kt?Kt.p(l,$e):(Kt=Dd(l),Kt.c(),Kt.m(xt,es)):Kt&&(Kt.d(1),Kt=null),l[21]==="response"?Zt?Zt.p(l,$e):(Zt=Fd(l),Zt.c(),Zt.m(xt,null)):Zt&&(Zt.d(1),Zt=null),l[0].authLevel?rl?rl.p(l,$e):(rl=Ud(l),rl.c(),rl.m(P,null)):rl&&(rl.d(1),rl=null)},i:ot,o:ot,d(Xt){Xt&&H(s),nl.d(),_l.d(),tl&&tl.d(),El.d(),Wt&&Wt.d(),Bt&&Bt.d(),Pt&&Pt.d(),$t&&$t.d(),el&&el.d(),Kt&&Kt.d(),Zt&&Zt.d(),rl&&rl.d(),Il.r(),Wl=!1,vt(Ls)}}}function Vd(l){return new Date(l).toLocaleString()}function go(l){return l<1e3?\`\${l}ms\`:\`\${(l/1e3).toFixed(2)}s\`}function Jd(l){return l<300?"badge-success":l<400?"badge-info":l<500?"badge-warning":"badge-error"}function Wd(l){return l==="final"?"badge-success":l==="retry"?"badge-warning":l==="recovery"?"badge-info":"badge-ghost"}function Qn(l){return JSON.stringify(l,null,2)}function vg(l){const s=l.toLowerCase();return s.includes("auth")?"bg-blue-500":s.includes("plugin")?"bg-purple-500":s.includes("upstream")||s.includes("proxy")||s.includes("selected")?"bg-green-500":s.includes("transform")||s.includes("rewrite")?"bg-orange-500":s.includes("error")||s.includes("failed")?"bg-red-500":s.includes("retry")||s.includes("recover")||s.includes("circuit")?"bg-yellow-500":"bg-base-content/30"}function kg(l){const s=l.toLowerCase();return s.includes("auth")?"Auth":s.includes("plugin")?"Plugin":s.includes("upstream")||s.includes("proxy")||s.includes("selected")?"Upstream":s.includes("transform")||s.includes("rewrite")?"Transform":s.includes("retry")||s.includes("recover")||s.includes("circuit")?"Retry":"Other"}function wg(l,s,e){let n;Dt(l,Rt,G=>e(24,n=G));let{log:a}=s,{onClose:i}=s,u=null,c=null,f=!1,d=!1,p=null,m=null,g=!1,b=null,k=null,w=!1,C=!1,E=null,y=null,T=null,M=null,R=!1,j=!1,P=null,I=null,q="original",D=!1,A=!1;function N(G){return G?n(\`logs.requestType_\${G}\`):"-"}function Z(G){const pe=\`logs.steps.\${G}\`,oe=n(pe);return oe===pe?G.split("_").map(ge=>ge.charAt(0).toUpperCase()+ge.slice(1)).join(" "):oe}function Q(){if(!a.processingSteps||a.processingSteps.length===0)return{durations:[],relativeTime:[],totalDuration:0};const G=a.processingSteps,pe=G[0].timestamp,oe=G.map((ye,ze)=>ze===G.length-1?a.duration-(ye.timestamp-pe):G[ze+1].timestamp-ye.timestamp),ge=G.map(ye=>ye.timestamp-pe),he=a.duration;return{durations:oe,relativeTime:ge,totalDuration:he}}function x(G){G.target===G.currentTarget&&i()}async function z(){const G={requestId:a.requestId,timestamp:a.timestamp,method:a.method,path:a.path,status:a.status,duration:a.duration,originalRequestHeaders:T,originalRequestBody:M,requestHeaders:b,requestBody:u,responseHeaders:k,responseBody:c,processingSteps:a.processingSteps};try{await navigator.clipboard.writeText(JSON.stringify(G,null,2)),e(23,A=!0),setTimeout(()=>{e(23,A=!1)},2e3)}catch(pe){console.error("Failed to copy:",pe)}}async function K(){const G={requestId:a.requestId,timestamp:a.timestamp,method:a.method,path:a.path,status:a.status,duration:a.duration,originalRequestHeaders:T,originalRequestBody:M,requestHeaders:b,requestBody:u,responseHeaders:k,responseBody:c,processingSteps:a.processingSteps},pe=new Blob([JSON.stringify(G,null,2)],{type:"application/json"}),oe=URL.createObjectURL(pe),ge=document.createElement("a");ge.href=oe,ge.download=\`log-\${a.requestId}.json\`,ge.click(),URL.revokeObjectURL(oe)}async function S(){if(!(!a.reqBodyId||u!==null)){e(4,f=!0),e(6,p=null);try{e(2,u=await Eu(a.reqBodyId))}catch(G){e(6,p=G instanceof Error?G.message:"Failed to load request body")}finally{e(4,f=!1)}}}async function B(){if(!(!a.respBodyId||c!==null)){e(5,d=!0),e(7,m=null);try{e(3,c=await Eu(a.respBodyId))}catch(G){e(7,m=G instanceof Error?G.message:"Failed to load response body")}finally{e(5,d=!1)}}}async function U(){if(!(!a.reqHeaderId||b!==null)){e(11,w=!0),e(13,E=null);try{e(9,b=await Tu(a.reqHeaderId))}catch(G){e(13,E=G instanceof Error?G.message:"Failed to load request headers")}finally{e(11,w=!1)}}}async function F(){if(!(!a.respHeaderId||k!==null)){e(12,C=!0),e(14,y=null);try{e(10,k=await Tu(a.respHeaderId))}catch(G){e(14,y=G instanceof Error?G.message:"Failed to load response headers")}finally{e(12,C=!1)}}}async function J(){if(!(!a.originalReqHeaderId||T!==null)){e(17,R=!0),e(19,P=null);try{e(15,T=await Tu(a.originalReqHeaderId))}catch(G){e(19,P=G instanceof Error?G.message:"Failed to load original request headers")}finally{e(17,R=!1)}}}async function ie(){if(!(!a.originalReqBodyId||M!==null)){e(18,j=!0),e(20,I=null);try{e(16,M=await Eu(a.originalReqBodyId))}catch(G){e(20,I=G instanceof Error?G.message:"Failed to load original request body")}finally{e(18,j=!1)}}}Hs(async()=>{try{const G=await Pu();e(8,g=G.logging?.body?.enabled||!1)}catch(G){console.error("Failed to load config:",G),e(8,g=!1)}a.originalReqHeaderId&&J(),a.originalReqBodyId&&ie(),a.reqHeaderId&&U(),a.respHeaderId&&F(),a.reqBodyId&&S(),a.respBodyId&&B()});const ue=[[]],ne=()=>e(22,D=!D);function $(){q=this.__value,e(21,q)}function te(){q=this.__value,e(21,q)}function ae(){q=this.__value,e(21,q)}const ee=G=>G.key==="Escape"&&i();return l.$$set=G=>{"log"in G&&e(0,a=G.log),"onClose"in G&&e(1,i=G.onClose)},[a,i,u,c,f,d,p,m,g,b,k,w,C,E,y,T,M,R,j,P,I,q,D,A,n,N,Z,Q,x,z,K,ne,$,ue,te,ae,ee]}class yg extends Nt{constructor(s){super(),Ut(this,s,wg,bg,Vt,{log:0,onClose:1},null,[-1,-1,-1])}}function Gd(l,s,e){const n=l.slice();return n[104]=s[e],n}function Kd(l){let s,e,n,a,i,u=l[24]("logs.newDataAvailable")+"",c,f,d,p,m=l[24]("common.refresh")+"",g,b,k;return{c(){s=r("div"),e=re("svg"),n=re("path"),a=h(),i=r("span"),c=_(u),f=h(),d=r("div"),p=r("button"),g=_(m),o(n,"stroke-linecap","round"),o(n,"stroke-linejoin","round"),o(n,"stroke-width","2"),o(n,"d","M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"),o(e,"xmlns","http://www.w3.org/2000/svg"),o(e,"fill","none"),o(e,"viewBox","0 0 24 24"),o(e,"class","stroke-current shrink-0 w-6 h-6"),o(p,"class","btn btn-sm"),o(d,"class","flex-none"),o(s,"class","alert alert-info shadow-lg mb-4")},m(w,C){L(w,s,C),t(s,e),t(e,n),t(s,a),t(s,i),t(i,c),t(s,f),t(s,d),t(d,p),t(p,g),b||(k=V(p,"click",l[29]),b=!0)},p(w,C){C[0]&16777216&&u!==(u=w[24]("logs.newDataAvailable")+"")&&v(c,u),C[0]&16777216&&m!==(m=w[24]("common.refresh")+"")&&v(g,m)},d(w){w&&H(s),b=!1,k()}}}function Yd(l){let s;return{c(){s=r("span"),s.textContent="1",o(s,"class","badge badge-sm")},m(e,n){L(e,s,n)},d(e){e&&H(s)}}}function Qd(l){let s;return{c(){s=r("span"),s.textContent="1",o(s,"class","badge badge-sm")},m(e,n){L(e,s,n)},d(e){e&&H(s)}}}function Zd(l){let s;return{c(){s=r("span"),s.textContent="1",o(s,"class","badge badge-sm")},m(e,n){L(e,s,n)},d(e){e&&H(s)}}}function Xd(l){let s,e=[l[5],l[8]!=="recent"||l[9]!==1,l[6]!=="timestamp"||l[7]!=="desc"].filter(Boolean).length+"",n;return{c(){s=r("span"),n=_(e),o(s,"class","badge badge-sm")},m(a,i){L(a,s,i),t(s,n)},p(a,i){i[0]&992&&e!==(e=[a[5],a[8]!=="recent"||a[9]!==1,a[6]!=="timestamp"||a[7]!=="desc"].filter(Boolean).length+"")&&v(n,e)},d(a){a&&H(s)}}}function xd(l){let s,e,n,a=l[24]("logs.recentHours")+"",i,u,c,f,d;return{c(){s=r("div"),e=r("div"),n=r("span"),i=_(a),u=h(),c=r("input"),o(n,"class","label-text text-xs font-semibold"),o(e,"class","label py-1"),o(c,"type","number"),o(c,"min","1"),o(c,"class","input input-bordered input-sm"),o(s,"class","form-control")},m(p,m){L(p,s,m),t(s,e),t(e,n),t(n,i),t(s,u),t(s,c),Y(c,l[9]),f||(d=V(c,"input",l[45]),f=!0)},p(p,m){m[0]&16777216&&a!==(a=p[24]("logs.recentHours")+"")&&v(i,a),m[0]&512&&Mt(c.value)!==p[9]&&Y(c,p[9])},d(p){p&&H(s),f=!1,d()}}}function $d(l){let s,e,n,a=l[24]("logs.startTime")+"",i,u,c,f,d,p,m,g=l[24]("logs.endTime")+"",b,k,w,C,E;return{c(){s=r("div"),e=r("div"),n=r("span"),i=_(a),u=h(),c=r("input"),f=h(),d=r("div"),p=r("div"),m=r("span"),b=_(g),k=h(),w=r("input"),o(n,"class","label-text text-xs font-semibold"),o(e,"class","label py-1"),o(c,"type","datetime-local"),o(c,"class","input input-bordered input-sm"),o(s,"class","form-control"),o(m,"class","label-text text-xs font-semibold"),o(p,"class","label py-1"),o(w,"type","datetime-local"),o(w,"class","input input-bordered input-sm"),o(d,"class","form-control")},m(y,T){L(y,s,T),t(s,e),t(e,n),t(n,i),t(s,u),t(s,c),Y(c,l[10]),L(y,f,T),L(y,d,T),t(d,p),t(p,m),t(m,b),t(d,k),t(d,w),Y(w,l[11]),C||(E=[V(c,"input",l[46]),V(w,"input",l[47])],C=!0)},p(y,T){T[0]&16777216&&a!==(a=y[24]("logs.startTime")+"")&&v(i,a),T[0]&1024&&Y(c,y[10]),T[0]&16777216&&g!==(g=y[24]("logs.endTime")+"")&&v(b,g),T[0]&2048&&Y(w,y[11])},d(y){y&&(H(s),H(f),H(d)),C=!1,vt(E)}}}function ep(l){let s,e;return{c(){s=r("span"),e=_(l[13]),o(s,"class","badge badge-sm badge-primary")},m(n,a){L(n,s,a),t(s,e)},p(n,a){a[0]&8192&&v(e,n[13])},d(n){n&&H(s)}}}function tp(l){let s,e,n,a=l[24]("logs.refreshInterval")+"",i,u,c,f,d=l[24]("logs.refreshEvery5s")+"",p,m,g=l[24]("logs.refreshEvery10s")+"",b,k,w=l[24]("logs.refreshEvery30s")+"",C,E,y=l[24]("logs.refreshEvery60s")+"",T,M,R;return{c(){s=r("div"),e=r("div"),n=r("span"),i=_(a),u=h(),c=r("select"),f=r("option"),p=_(d),m=r("option"),b=_(g),k=r("option"),C=_(w),E=r("option"),T=_(y),o(n,"class","label-text text-xs font-semibold"),o(e,"class","label py-1"),f.__value="5s",Y(f,f.__value),m.__value="10s",Y(m,m.__value),k.__value="30s",Y(k,k.__value),E.__value="60s",Y(E,E.__value),o(c,"class","select select-bordered select-sm"),l[13]===void 0&&pl(()=>l[51].call(c)),o(s,"class","form-control")},m(j,P){L(j,s,P),t(s,e),t(e,n),t(n,i),t(s,u),t(s,c),t(c,f),t(f,p),t(c,m),t(m,b),t(c,k),t(k,C),t(c,E),t(E,T),kt(c,l[13],!0),M||(R=V(c,"change",l[51]),M=!0)},p(j,P){P[0]&16777216&&a!==(a=j[24]("logs.refreshInterval")+"")&&v(i,a),P[0]&16777216&&d!==(d=j[24]("logs.refreshEvery5s")+"")&&v(p,d),P[0]&16777216&&g!==(g=j[24]("logs.refreshEvery10s")+"")&&v(b,g),P[0]&16777216&&w!==(w=j[24]("logs.refreshEvery30s")+"")&&v(C,w),P[0]&16777216&&y!==(y=j[24]("logs.refreshEvery60s")+"")&&v(T,y),P[0]&8192&&kt(c,j[13])},d(j){j&&H(s),M=!1,R()}}}function lp(l){let s,e,n,a,i=l[24]("logs.clearFilters")+"",u,c,f;return{c(){s=r("button"),e=re("svg"),n=re("path"),a=h(),u=_(i),o(n,"stroke-linecap","round"),o(n,"stroke-linejoin","round"),o(n,"stroke-width","2"),o(n,"d","M6 18L18 6M6 6l12 12"),o(e,"xmlns","http://www.w3.org/2000/svg"),o(e,"class","h-4 w-4"),o(e,"fill","none"),o(e,"viewBox","0 0 24 24"),o(e,"stroke","currentColor"),o(s,"type","button"),o(s,"class","btn btn-sm btn-ghost gap-1")},m(d,p){L(d,s,p),t(s,e),t(e,n),t(s,a),t(s,u),c||(f=V(s,"click",l[28]),c=!0)},p(d,p){p[0]&16777216&&i!==(i=d[24]("logs.clearFilters")+"")&&v(u,i)},d(d){d&&H(s),c=!1,f()}}}function sp(l){let s,e=[l[2],l[3],l[4]!==void 0,l[5],l[8]!=="recent"||l[9]!==1,l[6]!=="timestamp"||l[7]!=="desc"].filter(Boolean).length+"",n;return{c(){s=r("span"),n=_(e),o(s,"class","badge badge-sm")},m(a,i){L(a,s,i),t(s,n)},p(a,i){i[0]&1020&&e!==(e=[a[2],a[3],a[4]!==void 0,a[5],a[8]!=="recent"||a[9]!==1,a[6]!=="timestamp"||a[7]!=="desc"].filter(Boolean).length+"")&&v(n,e)},d(a){a&&H(s)}}}function op(l){let s,e,n,a=l[24]("logs.recentHours")+"",i,u,c,f,d;return{c(){s=r("div"),e=r("div"),n=r("span"),i=_(a),u=h(),c=r("input"),o(n,"class","label-text text-xs font-semibold"),o(e,"class","label py-1"),o(c,"type","number"),o(c,"min","1"),o(c,"class","input input-bordered input-sm"),o(s,"class","form-control")},m(p,m){L(p,s,m),t(s,e),t(e,n),t(n,i),t(s,u),t(s,c),Y(c,l[9]),f||(d=V(c,"input",l[59]),f=!0)},p(p,m){m[0]&16777216&&a!==(a=p[24]("logs.recentHours")+"")&&v(i,a),m[0]&512&&Mt(c.value)!==p[9]&&Y(c,p[9])},d(p){p&&H(s),f=!1,d()}}}function np(l){let s,e,n,a=l[24]("logs.startTime")+"",i,u,c,f,d,p,m,g=l[24]("logs.endTime")+"",b,k,w,C,E;return{c(){s=r("div"),e=r("div"),n=r("span"),i=_(a),u=h(),c=r("input"),f=h(),d=r("div"),p=r("div"),m=r("span"),b=_(g),k=h(),w=r("input"),o(n,"class","label-text text-xs font-semibold"),o(e,"class","label py-1"),o(c,"type","datetime-local"),o(c,"class","input input-bordered input-sm"),o(s,"class","form-control"),o(m,"class","label-text text-xs font-semibold"),o(p,"class","label py-1"),o(w,"type","datetime-local"),o(w,"class","input input-bordered input-sm"),o(d,"class","form-control")},m(y,T){L(y,s,T),t(s,e),t(e,n),t(n,i),t(s,u),t(s,c),Y(c,l[10]),L(y,f,T),L(y,d,T),t(d,p),t(p,m),t(m,b),t(d,k),t(d,w),Y(w,l[11]),C||(E=[V(c,"input",l[60]),V(w,"input",l[61])],C=!0)},p(y,T){T[0]&16777216&&a!==(a=y[24]("logs.startTime")+"")&&v(i,a),T[0]&1024&&Y(c,y[10]),T[0]&16777216&&g!==(g=y[24]("logs.endTime")+"")&&v(b,g),T[0]&2048&&Y(w,y[11])},d(y){y&&(H(s),H(f),H(d)),C=!1,vt(E)}}}function ap(l){let s,e,n,a=l[24]("logs.refreshInterval")+"",i,u,c,f,d=l[24]("logs.refreshEvery5s")+"",p,m,g=l[24]("logs.refreshEvery10s")+"",b,k,w=l[24]("logs.refreshEvery30s")+"",C,E,y=l[24]("logs.refreshEvery60s")+"",T,M,R;return{c(){s=r("div"),e=r("div"),n=r("span"),i=_(a),u=h(),c=r("select"),f=r("option"),p=_(d),m=r("option"),b=_(g),k=r("option"),C=_(w),E=r("option"),T=_(y),o(n,"class","label-text text-xs font-semibold"),o(e,"class","label py-1"),f.__value="5s",Y(f,f.__value),m.__value="10s",Y(m,m.__value),k.__value="30s",Y(k,k.__value),E.__value="60s",Y(E,E.__value),o(c,"class","select select-bordered select-sm"),l[13]===void 0&&pl(()=>l[65].call(c)),o(s,"class","form-control")},m(j,P){L(j,s,P),t(s,e),t(e,n),t(n,i),t(s,u),t(s,c),t(c,f),t(f,p),t(c,m),t(m,b),t(c,k),t(k,C),t(c,E),t(E,T),kt(c,l[13],!0),M||(R=V(c,"change",l[65]),M=!0)},p(j,P){P[0]&16777216&&a!==(a=j[24]("logs.refreshInterval")+"")&&v(i,a),P[0]&16777216&&d!==(d=j[24]("logs.refreshEvery5s")+"")&&v(p,d),P[0]&16777216&&g!==(g=j[24]("logs.refreshEvery10s")+"")&&v(b,g),P[0]&16777216&&w!==(w=j[24]("logs.refreshEvery30s")+"")&&v(C,w),P[0]&16777216&&y!==(y=j[24]("logs.refreshEvery60s")+"")&&v(T,y),P[0]&8192&&kt(c,j[13])},d(j){j&&H(s),M=!1,R()}}}function rp(l){let s,e=l[24]("logs.lastRefreshed")+"",n,a,i=new Date(l[21]).toLocaleTimeString()+"",u;return{c(){s=r("div"),n=_(e),a=_(": "),u=_(i),o(s,"class","text-xs text-gray-500 text-center")},m(c,f){L(c,s,f),t(s,n),t(s,a),t(s,u)},p(c,f){f[0]&16777216&&e!==(e=c[24]("logs.lastRefreshed")+"")&&v(n,e),f[0]&2097152&&i!==(i=new Date(c[21]).toLocaleTimeString()+"")&&v(u,i)},d(c){c&&H(s)}}}function ip(l){let s,e,n,a,i=l[24]("logs.clearFilters")+"",u,c,f;return{c(){s=r("button"),e=re("svg"),n=re("path"),a=h(),u=_(i),o(n,"stroke-linecap","round"),o(n,"stroke-linejoin","round"),o(n,"stroke-width","2"),o(n,"d","M6 18L18 6M6 6l12 12"),o(e,"xmlns","http://www.w3.org/2000/svg"),o(e,"class","h-4 w-4"),o(e,"fill","none"),o(e,"viewBox","0 0 24 24"),o(e,"stroke","currentColor"),o(s,"type","button"),o(s,"class","btn btn-sm btn-ghost gap-1")},m(d,p){L(d,s,p),t(s,e),t(e,n),t(s,a),t(s,u),c||(f=V(s,"click",l[28]),c=!0)},p(d,p){p[0]&16777216&&i!==(i=d[24]("logs.clearFilters")+"")&&v(u,i)},d(d){d&&H(s),c=!1,f()}}}function up(l){let s;return{c(){s=r("span"),o(s,"class","badge badge-sm badge-primary")},m(e,n){L(e,s,n)},d(e){e&&H(s)}}}function fp(l){let s,e,n,a=l[24]("logs.recentHours")+"",i,u,c,f,d;return{c(){s=r("div"),e=r("div"),n=r("span"),i=_(a),u=h(),c=r("input"),o(n,"class","label-text text-xs font-semibold"),o(e,"class","label py-1"),o(c,"type","number"),o(c,"min","1"),o(c,"class","input input-bordered input-sm"),o(s,"class","form-control")},m(p,m){L(p,s,m),t(s,e),t(e,n),t(n,i),t(s,u),t(s,c),Y(c,l[9]),f||(d=V(c,"input",l[73]),f=!0)},p(p,m){m[0]&16777216&&a!==(a=p[24]("logs.recentHours")+"")&&v(i,a),m[0]&512&&Mt(c.value)!==p[9]&&Y(c,p[9])},d(p){p&&H(s),f=!1,d()}}}function cp(l){let s,e,n,a=l[24]("logs.startTime")+"",i,u,c,f,d,p,m,g=l[24]("logs.endTime")+"",b,k,w,C,E;return{c(){s=r("div"),e=r("div"),n=r("span"),i=_(a),u=h(),c=r("input"),f=h(),d=r("div"),p=r("div"),m=r("span"),b=_(g),k=h(),w=r("input"),o(n,"class","label-text text-xs font-semibold"),o(e,"class","label py-1"),o(c,"type","datetime-local"),o(c,"class","input input-bordered input-sm"),o(s,"class","form-control"),o(m,"class","label-text text-xs font-semibold"),o(p,"class","label py-1"),o(w,"type","datetime-local"),o(w,"class","input input-bordered input-sm"),o(d,"class","form-control")},m(y,T){L(y,s,T),t(s,e),t(e,n),t(n,i),t(s,u),t(s,c),Y(c,l[10]),L(y,f,T),L(y,d,T),t(d,p),t(p,m),t(m,b),t(d,k),t(d,w),Y(w,l[11]),C||(E=[V(c,"input",l[74]),V(w,"input",l[75])],C=!0)},p(y,T){T[0]&16777216&&a!==(a=y[24]("logs.startTime")+"")&&v(i,a),T[0]&1024&&Y(c,y[10]),T[0]&16777216&&g!==(g=y[24]("logs.endTime")+"")&&v(b,g),T[0]&2048&&Y(w,y[11])},d(y){y&&(H(s),H(f),H(d)),C=!1,vt(E)}}}function dp(l){let s,e,n,a=l[24]("logs.refreshInterval")+"",i,u,c,f,d=l[24]("logs.refreshEvery5s")+"",p,m,g=l[24]("logs.refreshEvery10s")+"",b,k,w=l[24]("logs.refreshEvery30s")+"",C,E,y=l[24]("logs.refreshEvery60s")+"",T,M,R;return{c(){s=r("div"),e=r("div"),n=r("span"),i=_(a),u=h(),c=r("select"),f=r("option"),p=_(d),m=r("option"),b=_(g),k=r("option"),C=_(w),E=r("option"),T=_(y),o(n,"class","label-text text-xs font-semibold"),o(e,"class","label py-1"),f.__value="5s",Y(f,f.__value),m.__value="10s",Y(m,m.__value),k.__value="30s",Y(k,k.__value),E.__value="60s",Y(E,E.__value),o(c,"class","select select-bordered select-sm"),l[13]===void 0&&pl(()=>l[79].call(c)),o(s,"class","form-control")},m(j,P){L(j,s,P),t(s,e),t(e,n),t(n,i),t(s,u),t(s,c),t(c,f),t(f,p),t(c,m),t(m,b),t(c,k),t(k,C),t(c,E),t(E,T),kt(c,l[13],!0),M||(R=V(c,"change",l[79]),M=!0)},p(j,P){P[0]&16777216&&a!==(a=j[24]("logs.refreshInterval")+"")&&v(i,a),P[0]&16777216&&d!==(d=j[24]("logs.refreshEvery5s")+"")&&v(p,d),P[0]&16777216&&g!==(g=j[24]("logs.refreshEvery10s")+"")&&v(b,g),P[0]&16777216&&w!==(w=j[24]("logs.refreshEvery30s")+"")&&v(C,w),P[0]&16777216&&y!==(y=j[24]("logs.refreshEvery60s")+"")&&v(T,y),P[0]&8192&&kt(c,j[13])},d(j){j&&H(s),M=!1,R()}}}function pp(l){let s,e,n,a,i,u,c=l[24]("logs.clearFilters")+"",f,d,p;return{c(){s=r("div"),e=h(),n=r("button"),a=re("svg"),i=re("path"),u=h(),f=_(c),o(s,"class","divider my-2"),o(i,"stroke-linecap","round"),o(i,"stroke-linejoin","round"),o(i,"stroke-width","2"),o(i,"d","M6 18L18 6M6 6l12 12"),o(a,"xmlns","http://www.w3.org/2000/svg"),o(a,"class","h-4 w-4"),o(a,"fill","none"),o(a,"viewBox","0 0 24 24"),o(a,"stroke","currentColor"),o(n,"type","button"),o(n,"class","btn btn-sm btn-ghost w-full gap-1")},m(m,g){L(m,s,g),L(m,e,g),L(m,n,g),t(n,a),t(a,i),t(n,u),t(n,f),d||(p=V(n,"click",l[28]),d=!0)},p(m,g){g[0]&16777216&&c!==(c=m[24]("logs.clearFilters")+"")&&v(f,c)},d(m){m&&(H(s),H(e),H(n)),d=!1,p()}}}function hp(l){let s,e=l[1].trim(),n,a,i,u,c,f,d,p,m=e&&mp(l),g=l[2]&&gp(l),b=l[3]&&_p(l),k=l[4]!==void 0&&bp(l),w=l[5]&&vp(l),C=l[8]==="recent"&&l[9]!==1&&kp(l),E=l[8]==="custom"&&wp(l),y=l[8]==="all"&&yp(l),T=(l[6]!=="timestamp"||l[7]!=="desc")&&Cp(l);return{c(){s=r("div"),m&&m.c(),n=h(),g&&g.c(),a=h(),b&&b.c(),i=h(),k&&k.c(),u=h(),w&&w.c(),c=h(),C&&C.c(),f=h(),E&&E.c(),d=h(),y&&y.c(),p=h(),T&&T.c(),o(s,"class","flex items-center gap-2 flex-wrap px-1")},m(M,R){L(M,s,R),m&&m.m(s,null),t(s,n),g&&g.m(s,null),t(s,a),b&&b.m(s,null),t(s,i),k&&k.m(s,null),t(s,u),w&&w.m(s,null),t(s,c),C&&C.m(s,null),t(s,f),E&&E.m(s,null),t(s,d),y&&y.m(s,null),t(s,p),T&&T.m(s,null)},p(M,R){R[0]&2&&(e=M[1].trim()),e?m?m.p(M,R):(m=mp(M),m.c(),m.m(s,n)):m&&(m.d(1),m=null),M[2]?g?g.p(M,R):(g=gp(M),g.c(),g.m(s,a)):g&&(g.d(1),g=null),M[3]?b?b.p(M,R):(b=_p(M),b.c(),b.m(s,i)):b&&(b.d(1),b=null),M[4]!==void 0?k?k.p(M,R):(k=bp(M),k.c(),k.m(s,u)):k&&(k.d(1),k=null),M[5]?w?w.p(M,R):(w=vp(M),w.c(),w.m(s,c)):w&&(w.d(1),w=null),M[8]==="recent"&&M[9]!==1?C?C.p(M,R):(C=kp(M),C.c(),C.m(s,f)):C&&(C.d(1),C=null),M[8]==="custom"?E?E.p(M,R):(E=wp(M),E.c(),E.m(s,d)):E&&(E.d(1),E=null),M[8]==="all"?y?y.p(M,R):(y=yp(M),y.c(),y.m(s,p)):y&&(y.d(1),y=null),M[6]!=="timestamp"||M[7]!=="desc"?T?T.p(M,R):(T=Cp(M),T.c(),T.m(s,null)):T&&(T.d(1),T=null)},d(M){M&&H(s),m&&m.d(),g&&g.d(),b&&b.d(),k&&k.d(),w&&w.d(),C&&C.d(),E&&E.d(),y&&y.d(),T&&T.d()}}}function mp(l){let s,e,n=l[24]("logs.searchTerm")+"",a,i,u,c,f,d,p,m,g;return{c(){s=r("div"),e=r("span"),a=_(n),i=_(":"),u=h(),c=r("span"),f=_(l[1]),d=h(),p=r("button"),p.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" class="h-3 w-3" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg>',o(e,"class","text-xs opacity-70"),o(c,"class","font-medium"),o(p,"type","button"),o(p,"class","btn btn-ghost btn-xs p-0 h-4 w-4 min-h-0"),o(s,"class","badge badge-lg gap-2")},m(b,k){L(b,s,k),t(s,e),t(e,a),t(e,i),t(s,u),t(s,c),t(c,f),t(s,d),t(s,p),m||(g=V(p,"click",l[82]),m=!0)},p(b,k){k[0]&16777216&&n!==(n=b[24]("logs.searchTerm")+"")&&v(a,n),k[0]&2&&v(f,b[1])},d(b){b&&H(s),m=!1,g()}}}function gp(l){let s,e,n=l[24]("logs.method")+"",a,i,u,c,f,d,p,m,g;return{c(){s=r("div"),e=r("span"),a=_(n),i=_(":"),u=h(),c=r("span"),f=_(l[2]),d=h(),p=r("button"),p.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" class="h-3 w-3" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg>',o(e,"class","text-xs opacity-70"),o(c,"class","font-medium"),o(p,"type","button"),o(p,"class","btn btn-ghost btn-xs p-0 h-4 w-4 min-h-0"),o(s,"class","badge badge-primary badge-lg gap-2")},m(b,k){L(b,s,k),t(s,e),t(e,a),t(e,i),t(s,u),t(s,c),t(c,f),t(s,d),t(s,p),m||(g=V(p,"click",l[83]),m=!0)},p(b,k){k[0]&16777216&&n!==(n=b[24]("logs.method")+"")&&v(a,n),k[0]&4&&v(f,b[2])},d(b){b&&H(s),m=!1,g()}}}function _p(l){let s,e,n=l[24]("logs.status")+"",a,i,u,c,f,d,p,m,g;return{c(){s=r("div"),e=r("span"),a=_(n),i=_(":"),u=h(),c=r("span"),f=_(l[3]),d=h(),p=r("button"),p.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" class="h-3 w-3" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg>',o(e,"class","text-xs opacity-70"),o(c,"class","font-medium"),o(p,"type","button"),o(p,"class","btn btn-ghost btn-xs p-0 h-4 w-4 min-h-0"),o(s,"class","badge badge-primary badge-lg gap-2")},m(b,k){L(b,s,k),t(s,e),t(e,a),t(e,i),t(s,u),t(s,c),t(c,f),t(s,d),t(s,p),m||(g=V(p,"click",l[84]),m=!0)},p(b,k){k[0]&16777216&&n!==(n=b[24]("logs.status")+"")&&v(a,n),k[0]&8&&v(f,b[3])},d(b){b&&H(s),m=!1,g()}}}function bp(l){let s,e,n=l[24]("logs.result")+"",a,i,u,c,f=(l[4]?l[24]("logs.success"):l[24]("logs.failed"))+"",d,p,m,g,b;return{c(){s=r("div"),e=r("span"),a=_(n),i=_(":"),u=h(),c=r("span"),d=_(f),p=h(),m=r("button"),m.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" class="h-3 w-3" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg>',o(e,"class","text-xs opacity-70"),o(c,"class","font-medium"),o(m,"type","button"),o(m,"class","btn btn-ghost btn-xs p-0 h-4 w-4 min-h-0"),o(s,"class","badge badge-primary badge-lg gap-2")},m(k,w){L(k,s,w),t(s,e),t(e,a),t(e,i),t(s,u),t(s,c),t(c,d),t(s,p),t(s,m),g||(b=V(m,"click",l[85]),g=!0)},p(k,w){w[0]&16777216&&n!==(n=k[24]("logs.result")+"")&&v(a,n),w[0]&16777232&&f!==(f=(k[4]?k[24]("logs.success"):k[24]("logs.failed"))+"")&&v(d,f)},d(k){k&&H(s),g=!1,b()}}}function vp(l){let s,e,n=l[24]("logs.requestType")+"",a,i,u,c,f=l[24](\`logs.requestType_\${l[5]}\`)+"",d,p,m,g,b;return{c(){s=r("div"),e=r("span"),a=_(n),i=_(":"),u=h(),c=r("span"),d=_(f),p=h(),m=r("button"),m.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" class="h-3 w-3" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg>',o(e,"class","text-xs opacity-70"),o(c,"class","font-medium"),o(m,"type","button"),o(m,"class","btn btn-ghost btn-xs p-0 h-4 w-4 min-h-0"),o(s,"class","badge badge-primary badge-lg gap-2")},m(k,w){L(k,s,w),t(s,e),t(e,a),t(e,i),t(s,u),t(s,c),t(c,d),t(s,p),t(s,m),g||(b=V(m,"click",l[86]),g=!0)},p(k,w){w[0]&16777216&&n!==(n=k[24]("logs.requestType")+"")&&v(a,n),w[0]&16777248&&f!==(f=k[24](\`logs.requestType_\${k[5]}\`)+"")&&v(d,f)},d(k){k&&H(s),g=!1,b()}}}function kp(l){let s,e,n=l[24]("logs.timeRange")+"",a,i,u,c,f=l[24]("logs.recentTime")+"",d,p,m,g,b,k,w,C;return{c(){s=r("div"),e=r("span"),a=_(n),i=_(":"),u=h(),c=r("span"),d=_(f),p=h(),m=_(l[9]),g=_("h"),b=h(),k=r("button"),k.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" class="h-3 w-3" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg>',o(e,"class","text-xs opacity-70"),o(c,"class","font-medium"),o(k,"type","button"),o(k,"class","btn btn-ghost btn-xs p-0 h-4 w-4 min-h-0"),o(s,"class","badge badge-primary badge-lg gap-2")},m(E,y){L(E,s,y),t(s,e),t(e,a),t(e,i),t(s,u),t(s,c),t(c,d),t(c,p),t(c,m),t(c,g),t(s,b),t(s,k),w||(C=V(k,"click",l[87]),w=!0)},p(E,y){y[0]&16777216&&n!==(n=E[24]("logs.timeRange")+"")&&v(a,n),y[0]&16777216&&f!==(f=E[24]("logs.recentTime")+"")&&v(d,f),y[0]&512&&v(m,E[9])},d(E){E&&H(s),w=!1,C()}}}function wp(l){let s,e,n=l[24]("logs.timeRange")+"",a,i,u,c,f=l[24]("logs.customTime")+"",d,p,m,g,b;return{c(){s=r("div"),e=r("span"),a=_(n),i=_(":"),u=h(),c=r("span"),d=_(f),p=h(),m=r("button"),m.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" class="h-3 w-3" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg>',o(e,"class","text-xs opacity-70"),o(c,"class","font-medium"),o(m,"type","button"),o(m,"class","btn btn-ghost btn-xs p-0 h-4 w-4 min-h-0"),o(s,"class","badge badge-primary badge-lg gap-2")},m(k,w){L(k,s,w),t(s,e),t(e,a),t(e,i),t(s,u),t(s,c),t(c,d),t(s,p),t(s,m),g||(b=V(m,"click",l[88]),g=!0)},p(k,w){w[0]&16777216&&n!==(n=k[24]("logs.timeRange")+"")&&v(a,n),w[0]&16777216&&f!==(f=k[24]("logs.customTime")+"")&&v(d,f)},d(k){k&&H(s),g=!1,b()}}}function yp(l){let s,e,n=l[24]("logs.timeRange")+"",a,i,u,c,f=l[24]("logs.allTime")+"",d,p,m,g,b;return{c(){s=r("div"),e=r("span"),a=_(n),i=_(":"),u=h(),c=r("span"),d=_(f),p=h(),m=r("button"),m.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" class="h-3 w-3" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg>',o(e,"class","text-xs opacity-70"),o(c,"class","font-medium"),o(m,"type","button"),o(m,"class","btn btn-ghost btn-xs p-0 h-4 w-4 min-h-0"),o(s,"class","badge badge-primary badge-lg gap-2")},m(k,w){L(k,s,w),t(s,e),t(e,a),t(e,i),t(s,u),t(s,c),t(c,d),t(s,p),t(s,m),g||(b=V(m,"click",l[89]),g=!0)},p(k,w){w[0]&16777216&&n!==(n=k[24]("logs.timeRange")+"")&&v(a,n),w[0]&16777216&&f!==(f=k[24]("logs.allTime")+"")&&v(d,f)},d(k){k&&H(s),g=!1,b()}}}function Cp(l){let s,e,n=l[24]("logs.sortBy")+"",a,i,u,c,f=l[24](\`logs.sortBy\${l[6].charAt(0).toUpperCase()+l[6].slice(1)}\`)+"",d,p,m=l[7]==="asc"?"\u2191":"\u2193",g,b,k,w,C;return{c(){s=r("div"),e=r("span"),a=_(n),i=_(":"),u=h(),c=r("span"),d=_(f),p=h(),g=_(m),b=h(),k=r("button"),k.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" class="h-3 w-3" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg>',o(e,"class","text-xs opacity-70"),o(c,"class","font-medium"),o(k,"type","button"),o(k,"class","btn btn-ghost btn-xs p-0 h-4 w-4 min-h-0"),o(s,"class","badge badge-primary badge-lg gap-2")},m(E,y){L(E,s,y),t(s,e),t(e,a),t(e,i),t(s,u),t(s,c),t(c,d),t(c,p),t(c,g),t(s,b),t(s,k),w||(C=V(k,"click",l[90]),w=!0)},p(E,y){y[0]&16777216&&n!==(n=E[24]("logs.sortBy")+"")&&v(a,n),y[0]&16777280&&f!==(f=E[24](\`logs.sortBy\${E[6].charAt(0).toUpperCase()+E[6].slice(1)}\`)+"")&&v(d,f),y[0]&128&&m!==(m=E[7]==="asc"?"\u2191":"\u2193")&&v(g,m)},d(E){E&&H(s),w=!1,C()}}}function Cg(l){let s,e,n,a,i,u,c,f=l[24]("logs.time")+"",d,p,m,g=l[24]("logs.method")+"",b,k,w,C=l[24]("logs.path")+"",E,y,T,M=l[24]("logs.status")+"",R,j,P,I=l[24]("logs.requestType")+"",q,D,A,N=l[24]("logs.duration")+"",Z,Q,x,z=l[24]("logs.upstream")+"",K,S,B,U=l[24]("logs.actions")+"",F,J,ie,ue=[],ne=new Map,$,te,ae,ee=l[24]("logs.showing",{values:{start:(l[0]-1)*Yn+1,end:Math.min(l[0]*Yn,l[15]),total:l[15]}})+"",G,pe,oe,ge,he,ye,ze,Pe,we=l[24]("logs.page",{values:{page:l[0],totalPages:l[16]}})+"",Fe,Je,je,Le,Se,fe,_e,Ie=ut(l[14]);const De=se=>se[104].requestId;for(let se=0;se<Ie.length;se+=1){let ke=Gd(l,Ie,se),me=De(ke);ne.set(me,ue[se]=Ep(me,ke))}return{c(){s=r("div"),e=r("div"),n=r("div"),a=r("table"),i=r("thead"),u=r("tr"),c=r("th"),d=_(f),p=h(),m=r("th"),b=_(g),k=h(),w=r("th"),E=_(C),y=h(),T=r("th"),R=_(M),j=h(),P=r("th"),q=_(I),D=h(),A=r("th"),Z=_(N),Q=h(),x=r("th"),K=_(z),S=h(),B=r("th"),F=_(U),J=h(),ie=r("tbody");for(let se=0;se<ue.length;se+=1)ue[se].c();$=h(),te=r("div"),ae=r("div"),G=_(ee),pe=h(),oe=r("div"),ge=r("button"),he=_("\xAB"),ze=h(),Pe=r("button"),Fe=_(we),Je=h(),je=r("button"),Le=_("\xBB"),o(a,"class","table table-zebra table-sm"),o(n,"class","overflow-x-auto"),o(ae,"class","text-sm"),o(ge,"class","join-item btn btn-sm"),ge.disabled=ye=l[0]<=1,o(Pe,"class","join-item btn btn-sm"),o(je,"class","join-item btn btn-sm"),je.disabled=Se=l[0]>=l[16],o(oe,"class","join"),o(te,"class","flex justify-between items-center p-4"),o(e,"class","card-body p-0"),o(s,"class","card bg-base-100 shadow-xl")},m(se,ke){L(se,s,ke),t(s,e),t(e,n),t(n,a),t(a,i),t(i,u),t(u,c),t(c,d),t(u,p),t(u,m),t(m,b),t(u,k),t(u,w),t(w,E),t(u,y),t(u,T),t(T,R),t(u,j),t(u,P),t(P,q),t(u,D),t(u,A),t(A,Z),t(u,Q),t(u,x),t(x,K),t(u,S),t(u,B),t(B,F),t(a,J),t(a,ie);for(let me=0;me<ue.length;me+=1)ue[me]&&ue[me].m(ie,null);t(e,$),t(e,te),t(te,ae),t(ae,G),t(te,pe),t(te,oe),t(oe,ge),t(ge,he),t(oe,ze),t(oe,Pe),t(Pe,Fe),t(oe,Je),t(oe,je),t(je,Le),fe||(_e=[V(ge,"click",l[92]),V(je,"click",l[93])],fe=!0)},p(se,ke){ke[0]&16777216&&f!==(f=se[24]("logs.time")+"")&&v(d,f),ke[0]&16777216&&g!==(g=se[24]("logs.method")+"")&&v(b,g),ke[0]&16777216&&C!==(C=se[24]("logs.path")+"")&&v(E,C),ke[0]&16777216&&M!==(M=se[24]("logs.status")+"")&&v(R,M),ke[0]&16777216&&I!==(I=se[24]("logs.requestType")+"")&&v(q,I),ke[0]&16777216&&N!==(N=se[24]("logs.duration")+"")&&v(Z,N),ke[0]&16777216&&z!==(z=se[24]("logs.upstream")+"")&&v(K,z),ke[0]&16777216&&U!==(U=se[24]("logs.actions")+"")&&v(F,U),ke[0]&218120192&&(Ie=ut(se[14]),ue=Ru(ue,ke,De,1,se,Ie,ne,ie,Op,Ep,null,Gd)),ke[0]&16809985&&ee!==(ee=se[24]("logs.showing",{values:{start:(se[0]-1)*Yn+1,end:Math.min(se[0]*Yn,se[15]),total:se[15]}})+"")&&v(G,ee),ke[0]&1&&ye!==(ye=se[0]<=1)&&(ge.disabled=ye),ke[0]&16842753&&we!==(we=se[24]("logs.page",{values:{page:se[0],totalPages:se[16]}})+"")&&v(Fe,we),ke[0]&65537&&Se!==(Se=se[0]>=se[16])&&(je.disabled=Se)},d(se){se&&H(s);for(let ke=0;ke<ue.length;ke+=1)ue[ke].d();fe=!1,vt(_e)}}}function Eg(l){let s,e,n,a,i,u=l[24]("logs.noData")+"",c;return{c(){s=r("div"),e=re("svg"),n=re("path"),a=h(),i=r("span"),c=_(u),o(n,"stroke-linecap","round"),o(n,"stroke-linejoin","round"),o(n,"stroke-width","2"),o(n,"d","M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"),o(e,"xmlns","http://www.w3.org/2000/svg"),o(e,"fill","none"),o(e,"viewBox","0 0 24 24"),o(e,"class","stroke-current shrink-0 w-6 h-6"),o(s,"class","alert alert-info")},m(f,d){L(f,s,d),t(s,e),t(e,n),t(s,a),t(s,i),t(i,c)},p(f,d){d[0]&16777216&&u!==(u=f[24]("logs.noData")+"")&&v(c,u)},d(f){f&&H(s)}}}function Tg(l){let s,e,n,a,i,u=l[24]("common.error")+"",c,f,d;return{c(){s=r("div"),e=re("svg"),n=re("path"),a=h(),i=r("span"),c=_(u),f=_(": "),d=_(l[18]),o(n,"stroke-linecap","round"),o(n,"stroke-linejoin","round"),o(n,"stroke-width","2"),o(n,"d","M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z"),o(e,"xmlns","http://www.w3.org/2000/svg"),o(e,"class","stroke-current shrink-0 h-6 w-6"),o(e,"fill","none"),o(e,"viewBox","0 0 24 24"),o(s,"class","alert alert-error")},m(p,m){L(p,s,m),t(s,e),t(e,n),t(s,a),t(s,i),t(i,c),t(i,f),t(i,d)},p(p,m){m[0]&16777216&&u!==(u=p[24]("common.error")+"")&&v(c,u),m[0]&262144&&v(d,p[18])},d(p){p&&H(s)}}}function Sg(l){let s;return{c(){s=r("div"),s.innerHTML='<span class="loading loading-spinner loading-lg"></span>',o(s,"class","flex justify-center items-center h-64")},m(e,n){L(e,s,n)},p:ot,d(e){e&&H(s)}}}function Ep(l,s){let e,n,a=Sp(s[104].timestamp)+"",i,u,c,f,d=s[104].method+"",p,m,g,b=s[104].path+"",k,w,C,E,y,T=s[104].status+"",M,R,j,P,I,q=s[27](s[104].requestType)+"",D,A,N,Z,Q,x=Mp(s[104].duration)+"",z,K,S,B=(s[104].upstream||"-")+"",U,F,J,ie,ue,ne=s[24]("logs.viewDetail")+"",$,te,ae,ee;function G(){return s[91](s[104])}return{key:l,first:null,c(){e=r("tr"),n=r("td"),i=_(a),u=h(),c=r("td"),f=r("span"),p=_(d),m=h(),g=r("td"),k=_(b),C=h(),E=r("td"),y=r("span"),M=_(T),j=h(),P=r("td"),I=r("span"),D=_(q),Z=h(),Q=r("td"),z=_(x),K=h(),S=r("td"),U=_(B),J=h(),ie=r("td"),ue=r("button"),$=_(ne),te=h(),o(n,"class","text-xs"),o(f,"class","badge badge-sm"),o(g,"class","font-mono text-xs truncate max-w-xs"),o(g,"title",w=s[104].path),o(y,"class",R="badge badge-sm "+Rp(s[104].status)),o(I,"class",A="badge badge-sm "+qp(s[104].requestType)),o(I,"title",N=s[24](\`logs.requestType_\${s[104].requestType}_desc\`)),o(Q,"class","text-xs"),o(S,"class","text-xs truncate max-w-xs"),o(S,"title",F=s[104].upstream||"-"),o(ue,"class","btn btn-xs btn-ghost"),o(e,"class","hover"),this.first=e},m(pe,oe){L(pe,e,oe),t(e,n),t(n,i),t(e,u),t(e,c),t(c,f),t(f,p),t(e,m),t(e,g),t(g,k),t(e,C),t(e,E),t(E,y),t(y,M),t(e,j),t(e,P),t(P,I),t(I,D),t(e,Z),t(e,Q),t(Q,z),t(e,K),t(e,S),t(S,U),t(e,J),t(e,ie),t(ie,ue),t(ue,$),t(e,te),ae||(ee=V(ue,"click",G),ae=!0)},p(pe,oe){s=pe,oe[0]&16384&&a!==(a=Sp(s[104].timestamp)+"")&&v(i,a),oe[0]&16384&&d!==(d=s[104].method+"")&&v(p,d),oe[0]&16384&&b!==(b=s[104].path+"")&&v(k,b),oe[0]&16384&&w!==(w=s[104].path)&&o(g,"title",w),oe[0]&16384&&T!==(T=s[104].status+"")&&v(M,T),oe[0]&16384&&R!==(R="badge badge-sm "+Rp(s[104].status))&&o(y,"class",R),oe[0]&16384&&q!==(q=s[27](s[104].requestType)+"")&&v(D,q),oe[0]&16384&&A!==(A="badge badge-sm "+qp(s[104].requestType))&&o(I,"class",A),oe[0]&16793600&&N!==(N=s[24](\`logs.requestType_\${s[104].requestType}_desc\`))&&o(I,"title",N),oe[0]&16384&&x!==(x=Mp(s[104].duration)+"")&&v(z,x),oe[0]&16384&&B!==(B=(s[104].upstream||"-")+"")&&v(U,B),oe[0]&16384&&F!==(F=s[104].upstream||"-")&&o(S,"title",F),oe[0]&16777216&&ne!==(ne=s[24]("logs.viewDetail")+"")&&v($,ne)},d(pe){pe&&H(e),ae=!1,ee()}}}function Tp(l){let s,e;return s=new yg({props:{log:l[19],onClose:l[94]}}),{c(){Et(s.$$.fragment)},m(n,a){Ct(s,n,a),e=!0},p(n,a){const i={};a[0]&524288&&(i.log=n[19]),a[0]&1572864&&(i.onClose=n[94]),s.$set(i)},i(n){e||(et(s.$$.fragment,n),e=!0)},o(n){st(s.$$.fragment,n),e=!1},d(n){yt(s,n)}}}function Mg(l){let s,e,n,a=l[24]("logs.title")+"",i,u,c,f,d,p,m,g,b,k,w,C,E,y=l[24]("logs.method")+"",T,M,R,j,P,I,q,D,A,N,Z=l[24]("logs.allMethods")+"",Q,x,z,K,S,B,U,F,J,ie,ue,ne,$,te,ae,ee,G,pe,oe,ge=l[24]("logs.status")+"",he,ye,ze,Pe,we,Fe,Je,je,Le,Se,fe,_e=l[24]("logs.statusPlaceholder")+"",Ie,De,se,ke,me,Ee,Ve=l[24]("logs.result")+"",Be,nt,Ne,Qe,Ye,ve,de,Te,Ze,Me,Ue=l[24]("logs.allResults")+"",Ce,mt,Ge,ce,qe=l[24]("logs.success")+"",Re,dt,We,O,He=l[24]("logs.failed")+"",X,ft,Ht,Ke,_t=l[24]("logs.moreFilters")+"",tt,it,Oe,Xe,It,rt,gt,wt,pt,bl,at,St,ht=l[24]("logs.requestTypeFilter")+"",Tt,vl,At,hl,ml=l[24]("logs.requestType_all")+"",ql,Jt,Yl=l[24]("logs.requestType_final")+"",Yt,Qt,Hl=l[24]("logs.requestType_retry")+"",Bl,gl,sl=l[24]("logs.requestType_recovery")+"",Ql,Ft,Ll,Vl,Jl,Cl=l[24]("logs.timeRange")+"",zt,Zl,Lt,Pl,jl=l[24]("logs.allTime")+"",$l,xt,kl=l[24]("logs.recentTime")+"",es,zl,Il=l[24]("logs.customTime")+"",Wl,Ls,ol,wl,nl,Ol,al,_l,tl,Dl=l[24]("logs.sortBy")+"",Nl,El,Wt,Bt,Pt,$t=l[24]("logs.sortByTimestamp")+"",el,Kt,Zt=l[24]("logs.sortByDuration")+"",rl,Xt,$e=l[24]("logs.sortByStatus")+"",Al,ts,Xl,xl,ls=l[24]("logs.desc")+"",Ds,ss,Os=l[24]("logs.asc")+"",il,Ot,lt,ct,ll,Tl,ul,xe,bt,fl,xn,Bu,yo,_o,aa,Co,ra,ia=l[24]("logs.autoRefresh")+"",li,Iu,bo,Au,Fu,Ns,Us,Eo,zu,si,ua=l[24]("common.refresh")+"",oi,Ou,To,ao,ro,So,Nu,ni,fa=l[24]("logs.export")+"",ai,Uu,io,ri,ca,Vu,ii,da,Ju,Wu,Bs,Mo,Ps,uo,Ro,Gu,pa=l[24]("logs.filters")+"",ui,Ku,ha,Yu,qo,cl,Ho,ma,ga,_a=l[24]("logs.method")+"",fi,Qu,Es,Lo,ba=l[24]("logs.allMethods")+"",ci,Po,jo,Do,Bo,Io,Zu,Ao,va,ka,wa=l[24]("logs.status")+"",di,Xu,lo,xu,Fo,ya,Ca,Ea=l[24]("logs.result")+"",pi,$u,Vs,zo,Ta=l[24]("logs.allResults")+"",hi,Oo,Sa=l[24]("logs.success")+"",mi,No,Ma=l[24]("logs.failed")+"",gi,ef,_i,tf,Uo,Ra,qa,Ha=l[24]("logs.requestTypeFilter")+"",bi,lf,Is,Vo,La=l[24]("logs.requestType_all")+"",vi,Jo,Pa=l[24]("logs.requestType_final")+"",ki,Wo,ja=l[24]("logs.requestType_retry")+"",wi,Go,Da=l[24]("logs.requestType_recovery")+"",yi,sf,Ko,Ba,Ia,Aa=l[24]("logs.timeRange")+"",Ci,of,Js,Yo,Fa=l[24]("logs.allTime")+"",Ei,Qo,za=l[24]("logs.recentTime")+"",Ti,Zo,Oa=l[24]("logs.customTime")+"",Si,nf,Mi,Ri,qi,af,Xo,Na,Ua,Va=l[24]("logs.sortBy")+"",Hi,rf,xo,Ws,$o,Ja=l[24]("logs.sortByTimestamp")+"",Li,en,Wa=l[24]("logs.sortByDuration")+"",Pi,tn,Ga=l[24]("logs.sortByStatus")+"",ji,uf,so,ln,Ka=l[24]("logs.desc")+"",Di,sn,Ya=l[24]("logs.asc")+"",Bi,ff,on,fo,Gs,nn,cf,Qa=l[24]("common.refresh")+"",Ii,df,an,os,Za,rn,Xa,xa=l[24]("logs.autoRefresh")+"",Ai,pf,vo,hf,Fi,zi,mf,Ks,Ys,un,gf,$a=l[24]("common.refresh")+"",Oi,_f,bf,fn,co,po,cn,vf,er=l[24]("logs.export")+"",Ni,kf,ho,Ui,tr,wf,Vi,lr,yf,Cf,sr,dn,As,mo,pn,Ef,or=l[24]("logs.actions")+"",Ji,Tf,Sf,hn,qt,nr,ar=l[24]("logs.filters")+"",Wi,Mf,mn,rr,ir,ur=l[24]("logs.method")+"",Gi,Rf,Ts,gn,fr=l[24]("logs.allMethods")+"",Ki,_n,bn,vn,kn,wn,qf,yn,cr,dr,pr=l[24]("logs.status")+"",Yi,Hf,oo,Lf,Cn,hr,mr,gr=l[24]("logs.result")+"",Qi,Pf,Qs,En,_r=l[24]("logs.allResults")+"",Zi,Tn,br=l[24]("logs.success")+"",Xi,Sn,vr=l[24]("logs.failed")+"",xi,jf,Mn,kr,wr,yr=l[24]("logs.requestTypeFilter")+"",$i,Df,Fs,Rn,Cr=l[24]("logs.requestType_all")+"",eu,qn,Er=l[24]("logs.requestType_final")+"",tu,Hn,Tr=l[24]("logs.requestType_retry")+"",lu,Ln,Sr=l[24]("logs.requestType_recovery")+"",su,Bf,Pn,Mr,Rr,qr=l[24]("logs.timeRange")+"",ou,If,Zs,jn,Hr=l[24]("logs.allTime")+"",nu,Dn,Lr=l[24]("logs.recentTime")+"",au,Bn,Pr=l[24]("logs.customTime")+"",ru,Af,iu,uu,In,jr,Dr,Br=l[24]("logs.sortBy")+"",fu,Ff,An,Xs,Fn,Ir=l[24]("logs.sortByTimestamp")+"",cu,zn,Ar=l[24]("logs.sortByDuration")+"",du,On,Fr=l[24]("logs.sortByStatus")+"",pu,zf,no,Nn,zr=l[24]("logs.desc")+"",hu,Un,Or=l[24]("logs.asc")+"",mu,Of,gu,Nf,Nr,Ur=l[24]("common.refresh")+"",_u,Uf,Vr,Vn,Jr,Wr=l[24]("logs.autoRefresh")+"",bu,Vf,ko,Jf,vu,xs,$s,Jn,Wf,Gr=l[24]("common.refresh")+"",ku,Gf,wu,Kf,Wn,Gn,Yf,Kn,Qf,Zf,Xf,yu,$n,Ae,Cu,xf,ns=l[22]&&Kd(l),Ss=l[2]&&Yd(),Ms=l[3]&&Qd(),Rs=l[4]!==void 0&&Zd(),as=(l[5]||l[8]!=="recent"||l[9]!==1||l[6]!=="timestamp"||l[7]!=="desc")&&Xd(l),rs=l[8]==="recent"&&xd(l),is=l[8]==="custom"&&$d(l),us=l[12]&&ep(l),fs=l[12]&&tp(l),cs=l[23]>0&&lp(l),ds=(l[2]||l[3]||l[4]!==void 0||l[5]||l[8]!=="recent"||l[9]!==1||l[6]!=="timestamp"||l[7]!=="desc")&&sp(l),ps=l[8]==="recent"&&op(l),hs=l[8]==="custom"&&np(l),ms=l[12]&&ap(l),gs=l[21]>0&&rp(l),_s=l[23]>0&&ip(l),qs=(l[2]||l[3]||l[4]!==void 0||l[5]||l[8]!=="recent"||l[9]!==1||l[6]!=="timestamp"||l[7]!=="desc"||l[12])&&up(),bs=l[8]==="recent"&&fp(l),vs=l[8]==="custom"&&cp(l),ks=l[12]&&dp(l),ws=l[23]>0&&pp(l),ys=l[23]>0&&hp(l);function $f(W,be){return W[17]&&W[14].length===0?Sg:W[18]?Tg:W[14].length===0?Eg:Cg}let Kr=$f(l),eo=Kr(l),Fl=l[20]&&l[19]&&Tp(l);return{c(){s=r("div"),e=r("div"),n=r("h1"),i=_(a),u=h(),ns&&ns.c(),c=h(),f=r("div"),d=r("div"),p=r("div"),m=r("input"),b=h(),k=r("div"),w=r("div"),C=r("div"),E=r("div"),T=_(y),M=h(),Ss&&Ss.c(),R=h(),j=re("svg"),P=re("path"),q=h(),D=r("ul"),A=r("li"),N=r("button"),Q=_(Z),x=h(),z=r("li"),K=r("button"),K.textContent="GET",S=h(),B=r("li"),U=r("button"),U.textContent="POST",F=h(),J=r("li"),ie=r("button"),ie.textContent="PUT",ue=h(),ne=r("li"),$=r("button"),$.textContent="DELETE",te=h(),ae=r("li"),ee=r("button"),ee.textContent="PATCH",G=h(),pe=r("div"),oe=r("div"),he=_(ge),ye=h(),Ms&&Ms.c(),ze=h(),Pe=re("svg"),we=re("path"),Je=h(),je=r("div"),Le=r("div"),Se=r("div"),fe=r("span"),Ie=_(_e),De=h(),se=r("input"),ke=h(),me=r("div"),Ee=r("div"),Be=_(Ve),nt=h(),Rs&&Rs.c(),Ne=h(),Qe=re("svg"),Ye=re("path"),de=h(),Te=r("ul"),Ze=r("li"),Me=r("button"),Ce=_(Ue),mt=h(),Ge=r("li"),ce=r("button"),Re=_(qe),dt=h(),We=r("li"),O=r("button"),X=_(He),ft=h(),Ht=r("div"),Ke=r("div"),tt=_(_t),it=h(),as&&as.c(),Oe=h(),Xe=re("svg"),It=re("path"),gt=h(),wt=r("div"),pt=r("div"),bl=r("div"),at=r("div"),St=r("span"),Tt=_(ht),vl=h(),At=r("select"),hl=r("option"),ql=_(ml),Jt=r("option"),Yt=_(Yl),Qt=r("option"),Bl=_(Hl),gl=r("option"),Ql=_(sl),Ft=h(),Ll=r("div"),Vl=r("div"),Jl=r("span"),zt=_(Cl),Zl=h(),Lt=r("select"),Pl=r("option"),$l=_(jl),xt=r("option"),es=_(kl),zl=r("option"),Wl=_(Il),Ls=h(),rs&&rs.c(),ol=h(),is&&is.c(),wl=h(),nl=r("div"),Ol=h(),al=r("div"),_l=r("div"),tl=r("span"),Nl=_(Dl),El=h(),Wt=r("div"),Bt=r("select"),Pt=r("option"),el=_($t),Kt=r("option"),rl=_(Zt),Xt=r("option"),Al=_($e),ts=h(),Xl=r("select"),xl=r("option"),Ds=_(ls),ss=r("option"),il=_(Os),Ot=h(),lt=r("div"),ct=h(),ll=r("div"),Tl=r("div"),ul=r("div"),xe=re("svg"),bt=re("path"),fl=re("path"),xn=h(),us&&us.c(),Bu=h(),yo=r("div"),_o=r("div"),aa=r("div"),Co=r("label"),ra=r("span"),li=_(ia),Iu=h(),bo=r("input"),Au=h(),fs&&fs.c(),Fu=h(),Ns=r("button"),Us=re("svg"),Eo=re("path"),zu=h(),si=r("span"),oi=_(ua),Ou=h(),To=r("div"),ao=r("div"),ro=re("svg"),So=re("path"),Nu=h(),ni=r("span"),ai=_(fa),Uu=h(),io=r("ul"),ri=r("li"),ca=r("button"),ca.textContent="JSON",Vu=h(),ii=r("li"),da=r("button"),da.textContent="CSV",Ju=h(),cs&&cs.c(),Wu=h(),Bs=r("div"),Mo=r("div"),Ps=r("div"),uo=re("svg"),Ro=re("path"),Gu=h(),ui=_(pa),Ku=h(),ds&&ds.c(),Yu=h(),qo=r("div"),cl=r("div"),Ho=r("div"),ma=r("div"),ga=r("span"),fi=_(_a),Qu=h(),Es=r("select"),Lo=r("option"),ci=_(ba),Po=r("option"),Po.textContent="GET",jo=r("option"),jo.textContent="POST",Do=r("option"),Do.textContent="PUT",Bo=r("option"),Bo.textContent="DELETE",Io=r("option"),Io.textContent="PATCH",Zu=h(),Ao=r("div"),va=r("div"),ka=r("span"),di=_(wa),Xu=h(),lo=r("input"),xu=h(),Fo=r("div"),ya=r("div"),Ca=r("span"),pi=_(Ea),$u=h(),Vs=r("select"),zo=r("option"),hi=_(Ta),Oo=r("option"),mi=_(Sa),No=r("option"),gi=_(Ma),ef=h(),_i=r("div"),tf=h(),Uo=r("div"),Ra=r("div"),qa=r("span"),bi=_(Ha),lf=h(),Is=r("select"),Vo=r("option"),vi=_(La),Jo=r("option"),ki=_(Pa),Wo=r("option"),wi=_(ja),Go=r("option"),yi=_(Da),sf=h(),Ko=r("div"),Ba=r("div"),Ia=r("span"),Ci=_(Aa),of=h(),Js=r("select"),Yo=r("option"),Ei=_(Fa),Qo=r("option"),Ti=_(za),Zo=r("option"),Si=_(Oa),nf=h(),ps&&ps.c(),Mi=h(),hs&&hs.c(),Ri=h(),qi=r("div"),af=h(),Xo=r("div"),Na=r("div"),Ua=r("span"),Hi=_(Va),rf=h(),xo=r("div"),Ws=r("select"),$o=r("option"),Li=_(Ja),en=r("option"),Pi=_(Wa),tn=r("option"),ji=_(Ga),uf=h(),so=r("select"),ln=r("option"),Di=_(Ka),sn=r("option"),Bi=_(Ya),ff=h(),on=r("div"),fo=r("div"),Gs=re("svg"),nn=re("path"),cf=h(),Ii=_(Qa),df=h(),an=r("div"),os=r("div"),Za=r("div"),rn=r("label"),Xa=r("span"),Ai=_(xa),pf=h(),vo=r("input"),hf=h(),ms&&ms.c(),Fi=h(),zi=r("div"),mf=h(),Ks=r("button"),Ys=re("svg"),un=re("path"),gf=h(),Oi=_($a),_f=h(),gs&&gs.c(),bf=h(),fn=r("div"),co=r("div"),po=re("svg"),cn=re("path"),vf=h(),Ni=_(er),kf=h(),ho=r("ul"),Ui=r("li"),tr=r("button"),tr.textContent="JSON",wf=h(),Vi=r("li"),lr=r("button"),lr.textContent="CSV",yf=h(),_s&&_s.c(),Cf=h(),sr=r("div"),dn=r("div"),As=r("div"),mo=re("svg"),pn=re("path"),Ef=h(),Ji=_(or),Tf=h(),qs&&qs.c(),Sf=h(),hn=r("div"),qt=r("div"),nr=r("h3"),Wi=_(ar),Mf=h(),mn=r("div"),rr=r("div"),ir=r("span"),Gi=_(ur),Rf=h(),Ts=r("select"),gn=r("option"),Ki=_(fr),_n=r("option"),_n.textContent="GET",bn=r("option"),bn.textContent="POST",vn=r("option"),vn.textContent="PUT",kn=r("option"),kn.textContent="DELETE",wn=r("option"),wn.textContent="PATCH",qf=h(),yn=r("div"),cr=r("div"),dr=r("span"),Yi=_(pr),Hf=h(),oo=r("input"),Lf=h(),Cn=r("div"),hr=r("div"),mr=r("span"),Qi=_(gr),Pf=h(),Qs=r("select"),En=r("option"),Zi=_(_r),Tn=r("option"),Xi=_(br),Sn=r("option"),xi=_(vr),jf=h(),Mn=r("div"),kr=r("div"),wr=r("span"),$i=_(yr),Df=h(),Fs=r("select"),Rn=r("option"),eu=_(Cr),qn=r("option"),tu=_(Er),Hn=r("option"),lu=_(Tr),Ln=r("option"),su=_(Sr),Bf=h(),Pn=r("div"),Mr=r("div"),Rr=r("span"),ou=_(qr),If=h(),Zs=r("select"),jn=r("option"),nu=_(Hr),Dn=r("option"),au=_(Lr),Bn=r("option"),ru=_(Pr),Af=h(),bs&&bs.c(),iu=h(),vs&&vs.c(),uu=h(),In=r("div"),jr=r("div"),Dr=r("span"),fu=_(Br),Ff=h(),An=r("div"),Xs=r("select"),Fn=r("option"),cu=_(Ir),zn=r("option"),du=_(Ar),On=r("option"),pu=_(Fr),zf=h(),no=r("select"),Nn=r("option"),hu=_(zr),Un=r("option"),mu=_(Or),Of=h(),gu=r("div"),Nf=h(),Nr=r("h3"),_u=_(Ur),Uf=h(),Vr=r("div"),Vn=r("label"),Jr=r("span"),bu=_(Wr),Vf=h(),ko=r("input"),Jf=h(),ks&&ks.c(),vu=h(),xs=r("button"),$s=re("svg"),Jn=re("path"),Wf=h(),ku=_(Gr),Gf=h(),wu=r("div"),Kf=h(),Wn=r("div"),Gn=r("button"),Gn.textContent="JSON",Yf=h(),Kn=r("button"),Kn.textContent="CSV",Qf=h(),ws&&ws.c(),Zf=h(),ys&&ys.c(),Xf=h(),eo.c(),yu=h(),Fl&&Fl.c(),$n=Ul(),o(n,"class","text-2xl lg:text-3xl font-bold"),o(e,"class","mb-6"),o(m,"type","text"),o(m,"placeholder",g=l[24]("logs.searchPlaceholder")),o(m,"class","input input-bordered input-sm w-full"),o(p,"class","flex-1 min-w-[200px] xl:max-w-md"),o(P,"stroke-linecap","round"),o(P,"stroke-linejoin","round"),o(P,"stroke-width","2"),o(P,"d","M19 9l-7 7-7-7"),o(j,"xmlns","http://www.w3.org/2000/svg"),o(j,"class","h-3 w-3"),o(j,"fill","none"),o(j,"viewBox","0 0 24 24"),o(j,"stroke","currentColor"),o(E,"role","button"),o(E,"tabindex","0"),o(E,"class",I="btn btn-sm "+(l[2]?"btn-primary":"btn-ghost")+" gap-1"),le(K,"active",l[2]==="GET"),le(U,"active",l[2]==="POST"),le(ie,"active",l[2]==="PUT"),le($,"active",l[2]==="DELETE"),le(ee,"active",l[2]==="PATCH"),o(D,"role","menu"),o(D,"tabindex","0"),o(D,"class","dropdown-content menu p-2 shadow bg-base-100 rounded-box w-40 z-[1]"),o(C,"class","dropdown dropdown-end"),o(we,"stroke-linecap","round"),o(we,"stroke-linejoin","round"),o(we,"stroke-width","2"),o(we,"d","M19 9l-7 7-7-7"),o(Pe,"xmlns","http://www.w3.org/2000/svg"),o(Pe,"class","h-3 w-3"),o(Pe,"fill","none"),o(Pe,"viewBox","0 0 24 24"),o(Pe,"stroke","currentColor"),o(oe,"role","button"),o(oe,"tabindex","0"),o(oe,"class",Fe="btn btn-sm "+(l[3]?"btn-primary":"btn-ghost")+" gap-1"),o(fe,"class","label-text text-xs"),o(Se,"class","label py-1"),o(se,"type","text"),o(se,"placeholder","200, 404, 500"),o(se,"class","input input-bordered input-sm"),o(Le,"class","form-control"),o(je,"role","menu"),o(je,"tabindex","0"),o(je,"class","dropdown-content bg-base-100 rounded-box p-3 shadow-lg w-48 z-[1]"),o(pe,"class","dropdown dropdown-end"),o(Ye,"stroke-linecap","round"),o(Ye,"stroke-linejoin","round"),o(Ye,"stroke-width","2"),o(Ye,"d","M19 9l-7 7-7-7"),o(Qe,"xmlns","http://www.w3.org/2000/svg"),o(Qe,"class","h-3 w-3"),o(Qe,"fill","none"),o(Qe,"viewBox","0 0 24 24"),o(Qe,"stroke","currentColor"),o(Ee,"role","button"),o(Ee,"tabindex","0"),o(Ee,"class",ve="btn btn-sm "+(l[4]!==void 0?"btn-primary":"btn-ghost")+" gap-1"),le(ce,"active",l[4]===!0),le(O,"active",l[4]===!1),o(Te,"role","menu"),o(Te,"tabindex","0"),o(Te,"class","dropdown-content menu p-2 shadow bg-base-100 rounded-box w-40 z-[1]"),o(me,"class","dropdown dropdown-end"),o(It,"stroke-linecap","round"),o(It,"stroke-linejoin","round"),o(It,"stroke-width","2"),o(It,"d","M19 9l-7 7-7-7"),o(Xe,"xmlns","http://www.w3.org/2000/svg"),o(Xe,"class","h-3 w-3"),o(Xe,"fill","none"),o(Xe,"viewBox","0 0 24 24"),o(Xe,"stroke","currentColor"),o(Ke,"role","button"),o(Ke,"tabindex","0"),o(Ke,"class",rt="btn btn-sm "+(l[5]||l[8]!=="recent"||l[9]!==1||l[6]!=="timestamp"||l[7]!=="desc"?"btn-primary":"btn-ghost")+" gap-1"),o(St,"class","label-text text-xs font-semibold"),o(at,"class","label py-1"),hl.__value="",Y(hl,hl.__value),Jt.__value="final",Y(Jt,Jt.__value),Qt.__value="retry",Y(Qt,Qt.__value),gl.__value="recovery",Y(gl,gl.__value),o(At,"class","select select-bordered select-sm"),l[5]===void 0&&pl(()=>l[43].call(At)),o(bl,"class","form-control"),o(Jl,"class","label-text text-xs font-semibold"),o(Vl,"class","label py-1"),Pl.__value="all",Y(Pl,Pl.__value),xt.__value="recent",Y(xt,xt.__value),zl.__value="custom",Y(zl,zl.__value),o(Lt,"class","select select-bordered select-sm"),l[8]===void 0&&pl(()=>l[44].call(Lt)),o(Ll,"class","form-control"),o(nl,"class","divider my-2"),o(tl,"class","label-text text-xs font-semibold"),o(_l,"class","label py-1"),Pt.__value="timestamp",Y(Pt,Pt.__value),Kt.__value="duration",Y(Kt,Kt.__value),Xt.__value="status",Y(Xt,Xt.__value),o(Bt,"class","select select-bordered select-sm flex-1"),l[6]===void 0&&pl(()=>l[48].call(Bt)),xl.__value="desc",Y(xl,xl.__value),ss.__value="asc",Y(ss,ss.__value),o(Xl,"class","select select-bordered select-sm w-24"),l[7]===void 0&&pl(()=>l[49].call(Xl)),o(Wt,"class","flex gap-2"),o(al,"class","form-control"),o(pt,"class","space-y-3"),o(wt,"role","menu"),o(wt,"tabindex","0"),o(wt,"class","dropdown-content bg-base-100 rounded-box p-4 shadow-lg w-80 z-[1]"),o(Ht,"class","dropdown dropdown-end"),o(w,"class","flex items-center gap-2 flex-wrap"),o(lt,"class","flex-1"),o(bt,"stroke-linecap","round"),o(bt,"stroke-linejoin","round"),o(bt,"stroke-width","2"),o(bt,"d","M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"),o(fl,"stroke-linecap","round"),o(fl,"stroke-linejoin","round"),o(fl,"stroke-width","2"),o(fl,"d","M15 12a3 3 0 11-6 0 3 3 0 016 0z"),o(xe,"xmlns","http://www.w3.org/2000/svg"),o(xe,"class","h-4 w-4"),o(xe,"fill","none"),o(xe,"viewBox","0 0 24 24"),o(xe,"stroke","currentColor"),o(ul,"role","button"),o(ul,"tabindex","0"),o(ul,"class","btn btn-sm btn-outline gap-1"),o(ra,"class","label-text"),o(bo,"type","checkbox"),o(bo,"class","toggle toggle-primary toggle-sm"),o(Co,"class","label cursor-pointer"),o(aa,"class","form-control"),o(_o,"class","space-y-3"),o(yo,"role","menu"),o(yo,"tabindex","0"),o(yo,"class","dropdown-content bg-base-100 rounded-box p-4 shadow-lg w-64 z-[1]"),o(Tl,"class","dropdown dropdown-end"),o(Eo,"stroke-linecap","round"),o(Eo,"stroke-linejoin","round"),o(Eo,"stroke-width","2"),o(Eo,"d","M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"),o(Us,"xmlns","http://www.w3.org/2000/svg"),o(Us,"class","h-4 w-4"),o(Us,"fill","none"),o(Us,"viewBox","0 0 24 24"),o(Us,"stroke","currentColor"),le(Us,"animate-spin",l[17]),o(Ns,"type","button"),o(Ns,"class","btn btn-sm btn-outline gap-2"),Ns.disabled=l[17],o(So,"stroke-linecap","round"),o(So,"stroke-linejoin","round"),o(So,"stroke-width","2"),o(So,"d","M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"),o(ro,"xmlns","http://www.w3.org/2000/svg"),o(ro,"class","h-4 w-4"),o(ro,"fill","none"),o(ro,"viewBox","0 0 24 24"),o(ro,"stroke","currentColor"),o(ao,"role","button"),o(ao,"tabindex","0"),o(ao,"class","btn btn-sm btn-secondary gap-2"),o(io,"role","menu"),o(io,"tabindex","0"),o(io,"class","dropdown-content menu p-2 shadow bg-base-100 rounded-box w-32 z-[1]"),o(To,"class","dropdown dropdown-end"),o(ll,"class","flex items-center gap-2 flex-wrap"),o(k,"class","hidden xl:flex items-center gap-2 flex-wrap flex-1"),o(Ro,"stroke-linecap","round"),o(Ro,"stroke-linejoin","round"),o(Ro,"stroke-width","2"),o(Ro,"d","M3 4a1 1 0 011-1h16a1 1 0 011 1v2.586a1 1 0 01-.293.707l-6.414 6.414a1 1 0 00-.293.707V17l-4 4v-6.586a1 1 0 00-.293-.707L3.293 7.293A1 1 0 013 6.586V4z"),o(uo,"xmlns","http://www.w3.org/2000/svg"),o(uo,"class","h-4 w-4"),o(uo,"fill","none"),o(uo,"viewBox","0 0 24 24"),o(uo,"stroke","currentColor"),o(Ps,"role","button"),o(Ps,"tabindex","0"),o(Ps,"class",ha="btn btn-sm "+(l[2]||l[3]||l[4]!==void 0||l[5]||l[8]!=="recent"||l[9]!==1||l[6]!=="timestamp"||l[7]!=="desc"?"btn-primary":"btn-ghost")+" gap-1"),o(ga,"class","label-text text-xs font-semibold"),o(ma,"class","label py-1"),Lo.__value="",Y(Lo,Lo.__value),Po.__value="GET",Y(Po,Po.__value),jo.__value="POST",Y(jo,jo.__value),Do.__value="PUT",Y(Do,Do.__value),Bo.__value="DELETE",Y(Bo,Bo.__value),Io.__value="PATCH",Y(Io,Io.__value),o(Es,"class","select select-bordered select-sm"),l[2]===void 0&&pl(()=>l[54].call(Es)),o(Ho,"class","form-control"),o(ka,"class","label-text text-xs font-semibold"),o(va,"class","label py-1"),o(lo,"type","text"),o(lo,"placeholder","200, 404, 500"),o(lo,"class","input input-bordered input-sm"),o(Ao,"class","form-control"),o(Ca,"class","label-text text-xs font-semibold"),o(ya,"class","label py-1"),zo.__value=void 0,Y(zo,zo.__value),Oo.__value=!0,Y(Oo,Oo.__value),No.__value=!1,Y(No,No.__value),o(Vs,"class","select select-bordered select-sm"),l[4]===void 0&&pl(()=>l[56].call(Vs)),o(Fo,"class","form-control"),o(_i,"class","divider my-2"),o(qa,"class","label-text text-xs font-semibold"),o(Ra,"class","label py-1"),Vo.__value="",Y(Vo,Vo.__value),Jo.__value="final",Y(Jo,Jo.__value),Wo.__value="retry",Y(Wo,Wo.__value),Go.__value="recovery",Y(Go,Go.__value),o(Is,"class","select select-bordered select-sm"),l[5]===void 0&&pl(()=>l[57].call(Is)),o(Uo,"class","form-control"),o(Ia,"class","label-text text-xs font-semibold"),o(Ba,"class","label py-1"),Yo.__value="all",Y(Yo,Yo.__value),Qo.__value="recent",Y(Qo,Qo.__value),Zo.__value="custom",Y(Zo,Zo.__value),o(Js,"class","select select-bordered select-sm"),l[8]===void 0&&pl(()=>l[58].call(Js)),o(Ko,"class","form-control"),o(qi,"class","divider my-2"),o(Ua,"class","label-text text-xs font-semibold"),o(Na,"class","label py-1"),$o.__value="timestamp",Y($o,$o.__value),en.__value="duration",Y(en,en.__value),tn.__value="status",Y(tn,tn.__value),o(Ws,"class","select select-bordered select-sm flex-1"),l[6]===void 0&&pl(()=>l[62].call(Ws)),ln.__value="desc",Y(ln,ln.__value),sn.__value="asc",Y(sn,sn.__value),o(so,"class","select select-bordered select-sm w-24"),l[7]===void 0&&pl(()=>l[63].call(so)),o(xo,"class","flex gap-2"),o(Xo,"class","form-control"),o(cl,"class","space-y-3"),o(qo,"role","menu"),o(qo,"tabindex","0"),o(qo,"class","dropdown-content bg-base-100 rounded-box p-4 shadow-lg w-80 z-[1]"),o(Mo,"class","dropdown dropdown-end"),o(nn,"stroke-linecap","round"),o(nn,"stroke-linejoin","round"),o(nn,"stroke-width","2"),o(nn,"d","M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"),o(Gs,"xmlns","http://www.w3.org/2000/svg"),o(Gs,"class","h-4 w-4"),o(Gs,"fill","none"),o(Gs,"viewBox","0 0 24 24"),o(Gs,"stroke","currentColor"),le(Gs,"animate-spin",l[17]),o(fo,"role","button"),o(fo,"tabindex","0"),o(fo,"class","btn btn-sm btn-ghost gap-2"),o(Xa,"class","label-text"),o(vo,"type","checkbox"),o(vo,"class","toggle toggle-primary toggle-sm"),o(rn,"class","label cursor-pointer"),o(Za,"class","form-control"),o(zi,"class","divider my-2"),o(un,"stroke-linecap","round"),o(un,"stroke-linejoin","round"),o(un,"stroke-width","2"),o(un,"d","M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"),o(Ys,"xmlns","http://www.w3.org/2000/svg"),o(Ys,"class","h-4 w-4"),o(Ys,"fill","none"),o(Ys,"viewBox","0 0 24 24"),o(Ys,"stroke","currentColor"),le(Ys,"animate-spin",l[17]),o(Ks,"type","button"),o(Ks,"class","btn btn-sm btn-primary w-full gap-2"),Ks.disabled=l[17],o(os,"class","space-y-3"),o(an,"role","menu"),o(an,"tabindex","0"),o(an,"class","dropdown-content bg-base-100 rounded-box p-4 shadow-lg w-72 z-[1]"),o(on,"class","dropdown dropdown-end"),o(cn,"stroke-linecap","round"),o(cn,"stroke-linejoin","round"),o(cn,"stroke-width","2"),o(cn,"d","M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"),o(po,"xmlns","http://www.w3.org/2000/svg"),o(po,"class","h-4 w-4"),o(po,"fill","none"),o(po,"viewBox","0 0 24 24"),o(po,"stroke","currentColor"),o(co,"role","button"),o(co,"tabindex","0"),o(co,"class","btn btn-sm btn-secondary gap-2"),o(ho,"role","menu"),o(ho,"tabindex","0"),o(ho,"class","dropdown-content menu p-2 shadow bg-base-100 rounded-box w-32 z-[1]"),o(fn,"class","dropdown dropdown-end"),o(Bs,"class","hidden md:flex xl:hidden items-center gap-2"),o(pn,"stroke-linecap","round"),o(pn,"stroke-linejoin","round"),o(pn,"stroke-width","2"),o(pn,"d","M4 6h16M4 12h16M4 18h16"),o(mo,"xmlns","http://www.w3.org/2000/svg"),o(mo,"class","h-4 w-4"),o(mo,"fill","none"),o(mo,"viewBox","0 0 24 24"),o(mo,"stroke","currentColor"),o(As,"role","button"),o(As,"tabindex","0"),o(As,"class","btn btn-sm btn-ghost gap-1"),o(nr,"class","font-semibold text-sm"),o(ir,"class","label-text text-xs font-semibold"),o(rr,"class","label py-1"),gn.__value="",Y(gn,gn.__value),_n.__value="GET",Y(_n,_n.__value),bn.__value="POST",Y(bn,bn.__value),vn.__value="PUT",Y(vn,vn.__value),kn.__value="DELETE",Y(kn,kn.__value),wn.__value="PATCH",Y(wn,wn.__value),o(Ts,"class","select select-bordered select-sm"),l[2]===void 0&&pl(()=>l[68].call(Ts)),o(mn,"class","form-control"),o(dr,"class","label-text text-xs font-semibold"),o(cr,"class","label py-1"),o(oo,"type","text"),o(oo,"placeholder","200, 404, 500"),o(oo,"class","input input-bordered input-sm"),o(yn,"class","form-control"),o(mr,"class","label-text text-xs font-semibold"),o(hr,"class","label py-1"),En.__value=void 0,Y(En,En.__value),Tn.__value=!0,Y(Tn,Tn.__value),Sn.__value=!1,Y(Sn,Sn.__value),o(Qs,"class","select select-bordered select-sm"),l[4]===void 0&&pl(()=>l[70].call(Qs)),o(Cn,"class","form-control"),o(wr,"class","label-text text-xs font-semibold"),o(kr,"class","label py-1"),Rn.__value="",Y(Rn,Rn.__value),qn.__value="final",Y(qn,qn.__value),Hn.__value="retry",Y(Hn,Hn.__value),Ln.__value="recovery",Y(Ln,Ln.__value),o(Fs,"class","select select-bordered select-sm"),l[5]===void 0&&pl(()=>l[71].call(Fs)),o(Mn,"class","form-control"),o(Rr,"class","label-text text-xs font-semibold"),o(Mr,"class","label py-1"),jn.__value="all",Y(jn,jn.__value),Dn.__value="recent",Y(Dn,Dn.__value),Bn.__value="custom",Y(Bn,Bn.__value),o(Zs,"class","select select-bordered select-sm"),l[8]===void 0&&pl(()=>l[72].call(Zs)),o(Pn,"class","form-control"),o(Dr,"class","label-text text-xs font-semibold"),o(jr,"class","label py-1"),Fn.__value="timestamp",Y(Fn,Fn.__value),zn.__value="duration",Y(zn,zn.__value),On.__value="status",Y(On,On.__value),o(Xs,"class","select select-bordered select-sm flex-1"),l[6]===void 0&&pl(()=>l[76].call(Xs)),Nn.__value="desc",Y(Nn,Nn.__value),Un.__value="asc",Y(Un,Un.__value),o(no,"class","select select-bordered select-sm w-24"),l[7]===void 0&&pl(()=>l[77].call(no)),o(An,"class","flex gap-2"),o(In,"class","form-control"),o(gu,"class","divider my-2"),o(Nr,"class","font-semibold text-sm"),o(Jr,"class","label-text"),o(ko,"type","checkbox"),o(ko,"class","toggle toggle-primary toggle-sm"),o(Vn,"class","label cursor-pointer"),o(Vr,"class","form-control"),o(Jn,"stroke-linecap","round"),o(Jn,"stroke-linejoin","round"),o(Jn,"stroke-width","2"),o(Jn,"d","M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"),o($s,"xmlns","http://www.w3.org/2000/svg"),o($s,"class","h-4 w-4"),o($s,"fill","none"),o($s,"viewBox","0 0 24 24"),o($s,"stroke","currentColor"),le($s,"animate-spin",l[17]),o(xs,"type","button"),o(xs,"class","btn btn-sm btn-primary w-full gap-2"),xs.disabled=l[17],o(wu,"class","divider my-2"),o(Gn,"type","button"),o(Gn,"class","btn btn-sm btn-secondary flex-1 gap-2"),o(Kn,"type","button"),o(Kn,"class","btn btn-sm btn-secondary flex-1 gap-2"),o(Wn,"class","flex gap-2"),o(qt,"class","space-y-3"),o(hn,"role","menu"),o(hn,"tabindex","0"),o(hn,"class","dropdown-content bg-base-100 rounded-box p-4 shadow-lg w-80 z-[1]"),o(dn,"class","dropdown dropdown-end"),o(sr,"class","flex md:hidden items-center gap-2"),o(d,"class","flex items-center gap-2 mb-3"),o(f,"class","mb-6"),o(s,"class","p-6")},m(W,be){L(W,s,be),t(s,e),t(e,n),t(n,i),t(s,u),ns&&ns.m(s,null),t(s,c),t(s,f),t(f,d),t(d,p),t(p,m),Y(m,l[1]),t(d,b),t(d,k),t(k,w),t(w,C),t(C,E),t(E,T),t(E,M),Ss&&Ss.m(E,null),t(E,R),t(E,j),t(j,P),t(C,q),t(C,D),t(D,A),t(A,N),t(N,Q),t(D,x),t(D,z),t(z,K),t(D,S),t(D,B),t(B,U),t(D,F),t(D,J),t(J,ie),t(D,ue),t(D,ne),t(ne,$),t(D,te),t(D,ae),t(ae,ee),t(w,G),t(w,pe),t(pe,oe),t(oe,he),t(oe,ye),Ms&&Ms.m(oe,null),t(oe,ze),t(oe,Pe),t(Pe,we),t(pe,Je),t(pe,je),t(je,Le),t(Le,Se),t(Se,fe),t(fe,Ie),t(Le,De),t(Le,se),Y(se,l[3]),t(w,ke),t(w,me),t(me,Ee),t(Ee,Be),t(Ee,nt),Rs&&Rs.m(Ee,null),t(Ee,Ne),t(Ee,Qe),t(Qe,Ye),t(me,de),t(me,Te),t(Te,Ze),t(Ze,Me),t(Me,Ce),t(Te,mt),t(Te,Ge),t(Ge,ce),t(ce,Re),t(Te,dt),t(Te,We),t(We,O),t(O,X),t(w,ft),t(w,Ht),t(Ht,Ke),t(Ke,tt),t(Ke,it),as&&as.m(Ke,null),t(Ke,Oe),t(Ke,Xe),t(Xe,It),t(Ht,gt),t(Ht,wt),t(wt,pt),t(pt,bl),t(bl,at),t(at,St),t(St,Tt),t(bl,vl),t(bl,At),t(At,hl),t(hl,ql),t(At,Jt),t(Jt,Yt),t(At,Qt),t(Qt,Bl),t(At,gl),t(gl,Ql),kt(At,l[5],!0),t(pt,Ft),t(pt,Ll),t(Ll,Vl),t(Vl,Jl),t(Jl,zt),t(Ll,Zl),t(Ll,Lt),t(Lt,Pl),t(Pl,$l),t(Lt,xt),t(xt,es),t(Lt,zl),t(zl,Wl),kt(Lt,l[8],!0),t(pt,Ls),rs&&rs.m(pt,null),t(pt,ol),is&&is.m(pt,null),t(pt,wl),t(pt,nl),t(pt,Ol),t(pt,al),t(al,_l),t(_l,tl),t(tl,Nl),t(al,El),t(al,Wt),t(Wt,Bt),t(Bt,Pt),t(Pt,el),t(Bt,Kt),t(Kt,rl),t(Bt,Xt),t(Xt,Al),kt(Bt,l[6],!0),t(Wt,ts),t(Wt,Xl),t(Xl,xl),t(xl,Ds),t(Xl,ss),t(ss,il),kt(Xl,l[7],!0),t(k,Ot),t(k,lt),t(k,ct),t(k,ll),t(ll,Tl),t(Tl,ul),t(ul,xe),t(xe,bt),t(xe,fl),t(ul,xn),us&&us.m(ul,null),t(Tl,Bu),t(Tl,yo),t(yo,_o),t(_o,aa),t(aa,Co),t(Co,ra),t(ra,li),t(Co,Iu),t(Co,bo),bo.checked=l[12],t(_o,Au),fs&&fs.m(_o,null),t(ll,Fu),t(ll,Ns),t(Ns,Us),t(Us,Eo),t(Ns,zu),t(Ns,si),t(si,oi),t(ll,Ou),t(ll,To),t(To,ao),t(ao,ro),t(ro,So),t(ao,Nu),t(ao,ni),t(ni,ai),t(To,Uu),t(To,io),t(io,ri),t(ri,ca),t(io,Vu),t(io,ii),t(ii,da),t(ll,Ju),cs&&cs.m(ll,null),t(d,Wu),t(d,Bs),t(Bs,Mo),t(Mo,Ps),t(Ps,uo),t(uo,Ro),t(Ps,Gu),t(Ps,ui),t(Ps,Ku),ds&&ds.m(Ps,null),t(Mo,Yu),t(Mo,qo),t(qo,cl),t(cl,Ho),t(Ho,ma),t(ma,ga),t(ga,fi),t(Ho,Qu),t(Ho,Es),t(Es,Lo),t(Lo,ci),t(Es,Po),t(Es,jo),t(Es,Do),t(Es,Bo),t(Es,Io),kt(Es,l[2],!0),t(cl,Zu),t(cl,Ao),t(Ao,va),t(va,ka),t(ka,di),t(Ao,Xu),t(Ao,lo),Y(lo,l[3]),t(cl,xu),t(cl,Fo),t(Fo,ya),t(ya,Ca),t(Ca,pi),t(Fo,$u),t(Fo,Vs),t(Vs,zo),t(zo,hi),t(Vs,Oo),t(Oo,mi),t(Vs,No),t(No,gi),kt(Vs,l[4],!0),t(cl,ef),t(cl,_i),t(cl,tf),t(cl,Uo),t(Uo,Ra),t(Ra,qa),t(qa,bi),t(Uo,lf),t(Uo,Is),t(Is,Vo),t(Vo,vi),t(Is,Jo),t(Jo,ki),t(Is,Wo),t(Wo,wi),t(Is,Go),t(Go,yi),kt(Is,l[5],!0),t(cl,sf),t(cl,Ko),t(Ko,Ba),t(Ba,Ia),t(Ia,Ci),t(Ko,of),t(Ko,Js),t(Js,Yo),t(Yo,Ei),t(Js,Qo),t(Qo,Ti),t(Js,Zo),t(Zo,Si),kt(Js,l[8],!0),t(cl,nf),ps&&ps.m(cl,null),t(cl,Mi),hs&&hs.m(cl,null),t(cl,Ri),t(cl,qi),t(cl,af),t(cl,Xo),t(Xo,Na),t(Na,Ua),t(Ua,Hi),t(Xo,rf),t(Xo,xo),t(xo,Ws),t(Ws,$o),t($o,Li),t(Ws,en),t(en,Pi),t(Ws,tn),t(tn,ji),kt(Ws,l[6],!0),t(xo,uf),t(xo,so),t(so,ln),t(ln,Di),t(so,sn),t(sn,Bi),kt(so,l[7],!0),t(Bs,ff),t(Bs,on),t(on,fo),t(fo,Gs),t(Gs,nn),t(fo,cf),t(fo,Ii),t(on,df),t(on,an),t(an,os),t(os,Za),t(Za,rn),t(rn,Xa),t(Xa,Ai),t(rn,pf),t(rn,vo),vo.checked=l[12],t(os,hf),ms&&ms.m(os,null),t(os,Fi),t(os,zi),t(os,mf),t(os,Ks),t(Ks,Ys),t(Ys,un),t(Ks,gf),t(Ks,Oi),t(os,_f),gs&&gs.m(os,null),t(Bs,bf),t(Bs,fn),t(fn,co),t(co,po),t(po,cn),t(co,vf),t(co,Ni),t(fn,kf),t(fn,ho),t(ho,Ui),t(Ui,tr),t(ho,wf),t(ho,Vi),t(Vi,lr),t(Bs,yf),_s&&_s.m(Bs,null),t(d,Cf),t(d,sr),t(sr,dn),t(dn,As),t(As,mo),t(mo,pn),t(As,Ef),t(As,Ji),t(As,Tf),qs&&qs.m(As,null),t(dn,Sf),t(dn,hn),t(hn,qt),t(qt,nr),t(nr,Wi),t(qt,Mf),t(qt,mn),t(mn,rr),t(rr,ir),t(ir,Gi),t(mn,Rf),t(mn,Ts),t(Ts,gn),t(gn,Ki),t(Ts,_n),t(Ts,bn),t(Ts,vn),t(Ts,kn),t(Ts,wn),kt(Ts,l[2],!0),t(qt,qf),t(qt,yn),t(yn,cr),t(cr,dr),t(dr,Yi),t(yn,Hf),t(yn,oo),Y(oo,l[3]),t(qt,Lf),t(qt,Cn),t(Cn,hr),t(hr,mr),t(mr,Qi),t(Cn,Pf),t(Cn,Qs),t(Qs,En),t(En,Zi),t(Qs,Tn),t(Tn,Xi),t(Qs,Sn),t(Sn,xi),kt(Qs,l[4],!0),t(qt,jf),t(qt,Mn),t(Mn,kr),t(kr,wr),t(wr,$i),t(Mn,Df),t(Mn,Fs),t(Fs,Rn),t(Rn,eu),t(Fs,qn),t(qn,tu),t(Fs,Hn),t(Hn,lu),t(Fs,Ln),t(Ln,su),kt(Fs,l[5],!0),t(qt,Bf),t(qt,Pn),t(Pn,Mr),t(Mr,Rr),t(Rr,ou),t(Pn,If),t(Pn,Zs),t(Zs,jn),t(jn,nu),t(Zs,Dn),t(Dn,au),t(Zs,Bn),t(Bn,ru),kt(Zs,l[8],!0),t(qt,Af),bs&&bs.m(qt,null),t(qt,iu),vs&&vs.m(qt,null),t(qt,uu),t(qt,In),t(In,jr),t(jr,Dr),t(Dr,fu),t(In,Ff),t(In,An),t(An,Xs),t(Xs,Fn),t(Fn,cu),t(Xs,zn),t(zn,du),t(Xs,On),t(On,pu),kt(Xs,l[6],!0),t(An,zf),t(An,no),t(no,Nn),t(Nn,hu),t(no,Un),t(Un,mu),kt(no,l[7],!0),t(qt,Of),t(qt,gu),t(qt,Nf),t(qt,Nr),t(Nr,_u),t(qt,Uf),t(qt,Vr),t(Vr,Vn),t(Vn,Jr),t(Jr,bu),t(Vn,Vf),t(Vn,ko),ko.checked=l[12],t(qt,Jf),ks&&ks.m(qt,null),t(qt,vu),t(qt,xs),t(xs,$s),t($s,Jn),t(xs,Wf),t(xs,ku),t(qt,Gf),t(qt,wu),t(qt,Kf),t(qt,Wn),t(Wn,Gn),t(Wn,Yf),t(Wn,Kn),t(qt,Qf),ws&&ws.m(qt,null),t(f,Zf),ys&&ys.m(f,null),t(s,Xf),eo.m(s,null),L(W,yu,be),Fl&&Fl.m(W,be),L(W,$n,be),Ae=!0,Cu||(xf=[V(m,"input",l[32]),V(N,"click",l[33]),V(K,"click",l[34]),V(U,"click",l[35]),V(ie,"click",l[36]),V($,"click",l[37]),V(ee,"click",l[38]),V(se,"input",l[39]),V(Me,"click",l[40]),V(ce,"click",l[41]),V(O,"click",l[42]),V(At,"change",l[43]),V(Lt,"change",l[44]),V(Bt,"change",l[48]),V(Xl,"change",l[49]),V(bo,"change",l[50]),V(Ns,"click",l[29]),V(ca,"click",l[52]),V(da,"click",l[53]),V(Es,"change",l[54]),V(lo,"input",l[55]),V(Vs,"change",l[56]),V(Is,"change",l[57]),V(Js,"change",l[58]),V(Ws,"change",l[62]),V(so,"change",l[63]),V(vo,"change",l[64]),V(Ks,"click",l[29]),V(tr,"click",l[66]),V(lr,"click",l[67]),V(Ts,"change",l[68]),V(oo,"input",l[69]),V(Qs,"change",l[70]),V(Fs,"change",l[71]),V(Zs,"change",l[72]),V(Xs,"change",l[76]),V(no,"change",l[77]),V(ko,"change",l[78]),V(xs,"click",l[29]),V(Gn,"click",l[80]),V(Kn,"click",l[81])],Cu=!0)},p(W,be){(!Ae||be[0]&16777216)&&a!==(a=W[24]("logs.title")+"")&&v(i,a),W[22]?ns?ns.p(W,be):(ns=Kd(W),ns.c(),ns.m(s,c)):ns&&(ns.d(1),ns=null),(!Ae||be[0]&16777216&&g!==(g=W[24]("logs.searchPlaceholder")))&&o(m,"placeholder",g),be[0]&2&&m.value!==W[1]&&Y(m,W[1]),(!Ae||be[0]&16777216)&&y!==(y=W[24]("logs.method")+"")&&v(T,y),W[2]?Ss||(Ss=Yd(),Ss.c(),Ss.m(E,R)):Ss&&(Ss.d(1),Ss=null),(!Ae||be[0]&4&&I!==(I="btn btn-sm "+(W[2]?"btn-primary":"btn-ghost")+" gap-1"))&&o(E,"class",I),(!Ae||be[0]&16777216)&&Z!==(Z=W[24]("logs.allMethods")+"")&&v(Q,Z),(!Ae||be[0]&4)&&le(K,"active",W[2]==="GET"),(!Ae||be[0]&4)&&le(U,"active",W[2]==="POST"),(!Ae||be[0]&4)&&le(ie,"active",W[2]==="PUT"),(!Ae||be[0]&4)&&le($,"active",W[2]==="DELETE"),(!Ae||be[0]&4)&&le(ee,"active",W[2]==="PATCH"),(!Ae||be[0]&16777216)&&ge!==(ge=W[24]("logs.status")+"")&&v(he,ge),W[3]?Ms||(Ms=Qd(),Ms.c(),Ms.m(oe,ze)):Ms&&(Ms.d(1),Ms=null),(!Ae||be[0]&8&&Fe!==(Fe="btn btn-sm "+(W[3]?"btn-primary":"btn-ghost")+" gap-1"))&&o(oe,"class",Fe),(!Ae||be[0]&16777216)&&_e!==(_e=W[24]("logs.statusPlaceholder")+"")&&v(Ie,_e),be[0]&8&&se.value!==W[3]&&Y(se,W[3]),(!Ae||be[0]&16777216)&&Ve!==(Ve=W[24]("logs.result")+"")&&v(Be,Ve),W[4]!==void 0?Rs||(Rs=Zd(),Rs.c(),Rs.m(Ee,Ne)):Rs&&(Rs.d(1),Rs=null),(!Ae||be[0]&16&&ve!==(ve="btn btn-sm "+(W[4]!==void 0?"btn-primary":"btn-ghost")+" gap-1"))&&o(Ee,"class",ve),(!Ae||be[0]&16777216)&&Ue!==(Ue=W[24]("logs.allResults")+"")&&v(Ce,Ue),(!Ae||be[0]&16777216)&&qe!==(qe=W[24]("logs.success")+"")&&v(Re,qe),(!Ae||be[0]&16)&&le(ce,"active",W[4]===!0),(!Ae||be[0]&16777216)&&He!==(He=W[24]("logs.failed")+"")&&v(X,He),(!Ae||be[0]&16)&&le(O,"active",W[4]===!1),(!Ae||be[0]&16777216)&&_t!==(_t=W[24]("logs.moreFilters")+"")&&v(tt,_t),W[5]||W[8]!=="recent"||W[9]!==1||W[6]!=="timestamp"||W[7]!=="desc"?as?as.p(W,be):(as=Xd(W),as.c(),as.m(Ke,Oe)):as&&(as.d(1),as=null),(!Ae||be[0]&992&&rt!==(rt="btn btn-sm "+(W[5]||W[8]!=="recent"||W[9]!==1||W[6]!=="timestamp"||W[7]!=="desc"?"btn-primary":"btn-ghost")+" gap-1"))&&o(Ke,"class",rt),(!Ae||be[0]&16777216)&&ht!==(ht=W[24]("logs.requestTypeFilter")+"")&&v(Tt,ht),(!Ae||be[0]&16777216)&&ml!==(ml=W[24]("logs.requestType_all")+"")&&v(ql,ml),(!Ae||be[0]&16777216)&&Yl!==(Yl=W[24]("logs.requestType_final")+"")&&v(Yt,Yl),(!Ae||be[0]&16777216)&&Hl!==(Hl=W[24]("logs.requestType_retry")+"")&&v(Bl,Hl),(!Ae||be[0]&16777216)&&sl!==(sl=W[24]("logs.requestType_recovery")+"")&&v(Ql,sl),be[0]&32&&kt(At,W[5]),(!Ae||be[0]&16777216)&&Cl!==(Cl=W[24]("logs.timeRange")+"")&&v(zt,Cl),(!Ae||be[0]&16777216)&&jl!==(jl=W[24]("logs.allTime")+"")&&v($l,jl),(!Ae||be[0]&16777216)&&kl!==(kl=W[24]("logs.recentTime")+"")&&v(es,kl),(!Ae||be[0]&16777216)&&Il!==(Il=W[24]("logs.customTime")+"")&&v(Wl,Il),be[0]&256&&kt(Lt,W[8]),W[8]==="recent"?rs?rs.p(W,be):(rs=xd(W),rs.c(),rs.m(pt,ol)):rs&&(rs.d(1),rs=null),W[8]==="custom"?is?is.p(W,be):(is=$d(W),is.c(),is.m(pt,wl)):is&&(is.d(1),is=null),(!Ae||be[0]&16777216)&&Dl!==(Dl=W[24]("logs.sortBy")+"")&&v(Nl,Dl),(!Ae||be[0]&16777216)&&$t!==($t=W[24]("logs.sortByTimestamp")+"")&&v(el,$t),(!Ae||be[0]&16777216)&&Zt!==(Zt=W[24]("logs.sortByDuration")+"")&&v(rl,Zt),(!Ae||be[0]&16777216)&&$e!==($e=W[24]("logs.sortByStatus")+"")&&v(Al,$e),be[0]&64&&kt(Bt,W[6]),(!Ae||be[0]&16777216)&&ls!==(ls=W[24]("logs.desc")+"")&&v(Ds,ls),(!Ae||be[0]&16777216)&&Os!==(Os=W[24]("logs.asc")+"")&&v(il,Os),be[0]&128&&kt(Xl,W[7]),W[12]?us?us.p(W,be):(us=ep(W),us.c(),us.m(ul,null)):us&&(us.d(1),us=null),(!Ae||be[0]&16777216)&&ia!==(ia=W[24]("logs.autoRefresh")+"")&&v(li,ia),be[0]&4096&&(bo.checked=W[12]),W[12]?fs?fs.p(W,be):(fs=tp(W),fs.c(),fs.m(_o,null)):fs&&(fs.d(1),fs=null),(!Ae||be[0]&131072)&&le(Us,"animate-spin",W[17]),(!Ae||be[0]&16777216)&&ua!==(ua=W[24]("common.refresh")+"")&&v(oi,ua),(!Ae||be[0]&131072)&&(Ns.disabled=W[17]),(!Ae||be[0]&16777216)&&fa!==(fa=W[24]("logs.export")+"")&&v(ai,fa),W[23]>0?cs?cs.p(W,be):(cs=lp(W),cs.c(),cs.m(ll,null)):cs&&(cs.d(1),cs=null),(!Ae||be[0]&16777216)&&pa!==(pa=W[24]("logs.filters")+"")&&v(ui,pa),W[2]||W[3]||W[4]!==void 0||W[5]||W[8]!=="recent"||W[9]!==1||W[6]!=="timestamp"||W[7]!=="desc"?ds?ds.p(W,be):(ds=sp(W),ds.c(),ds.m(Ps,null)):ds&&(ds.d(1),ds=null),(!Ae||be[0]&1020&&ha!==(ha="btn btn-sm "+(W[2]||W[3]||W[4]!==void 0||W[5]||W[8]!=="recent"||W[9]!==1||W[6]!=="timestamp"||W[7]!=="desc"?"btn-primary":"btn-ghost")+" gap-1"))&&o(Ps,"class",ha),(!Ae||be[0]&16777216)&&_a!==(_a=W[24]("logs.method")+"")&&v(fi,_a),(!Ae||be[0]&16777216)&&ba!==(ba=W[24]("logs.allMethods")+"")&&v(ci,ba),be[0]&4&&kt(Es,W[2]),(!Ae||be[0]&16777216)&&wa!==(wa=W[24]("logs.status")+"")&&v(di,wa),be[0]&8&&lo.value!==W[3]&&Y(lo,W[3]),(!Ae||be[0]&16777216)&&Ea!==(Ea=W[24]("logs.result")+"")&&v(pi,Ea),(!Ae||be[0]&16777216)&&Ta!==(Ta=W[24]("logs.allResults")+"")&&v(hi,Ta),(!Ae||be[0]&16777216)&&Sa!==(Sa=W[24]("logs.success")+"")&&v(mi,Sa),(!Ae||be[0]&16777216)&&Ma!==(Ma=W[24]("logs.failed")+"")&&v(gi,Ma),be[0]&16&&kt(Vs,W[4]),(!Ae||be[0]&16777216)&&Ha!==(Ha=W[24]("logs.requestTypeFilter")+"")&&v(bi,Ha),(!Ae||be[0]&16777216)&&La!==(La=W[24]("logs.requestType_all")+"")&&v(vi,La),(!Ae||be[0]&16777216)&&Pa!==(Pa=W[24]("logs.requestType_final")+"")&&v(ki,Pa),(!Ae||be[0]&16777216)&&ja!==(ja=W[24]("logs.requestType_retry")+"")&&v(wi,ja),(!Ae||be[0]&16777216)&&Da!==(Da=W[24]("logs.requestType_recovery")+"")&&v(yi,Da),be[0]&32&&kt(Is,W[5]),(!Ae||be[0]&16777216)&&Aa!==(Aa=W[24]("logs.timeRange")+"")&&v(Ci,Aa),(!Ae||be[0]&16777216)&&Fa!==(Fa=W[24]("logs.allTime")+"")&&v(Ei,Fa),(!Ae||be[0]&16777216)&&za!==(za=W[24]("logs.recentTime")+"")&&v(Ti,za),(!Ae||be[0]&16777216)&&Oa!==(Oa=W[24]("logs.customTime")+"")&&v(Si,Oa),be[0]&256&&kt(Js,W[8]),W[8]==="recent"?ps?ps.p(W,be):(ps=op(W),ps.c(),ps.m(cl,Mi)):ps&&(ps.d(1),ps=null),W[8]==="custom"?hs?hs.p(W,be):(hs=np(W),hs.c(),hs.m(cl,Ri)):hs&&(hs.d(1),hs=null),(!Ae||be[0]&16777216)&&Va!==(Va=W[24]("logs.sortBy")+"")&&v(Hi,Va),(!Ae||be[0]&16777216)&&Ja!==(Ja=W[24]("logs.sortByTimestamp")+"")&&v(Li,Ja),(!Ae||be[0]&16777216)&&Wa!==(Wa=W[24]("logs.sortByDuration")+"")&&v(Pi,Wa),(!Ae||be[0]&16777216)&&Ga!==(Ga=W[24]("logs.sortByStatus")+"")&&v(ji,Ga),be[0]&64&&kt(Ws,W[6]),(!Ae||be[0]&16777216)&&Ka!==(Ka=W[24]("logs.desc")+"")&&v(Di,Ka),(!Ae||be[0]&16777216)&&Ya!==(Ya=W[24]("logs.asc")+"")&&v(Bi,Ya),be[0]&128&&kt(so,W[7]),(!Ae||be[0]&131072)&&le(Gs,"animate-spin",W[17]),(!Ae||be[0]&16777216)&&Qa!==(Qa=W[24]("common.refresh")+"")&&v(Ii,Qa),(!Ae||be[0]&16777216)&&xa!==(xa=W[24]("logs.autoRefresh")+"")&&v(Ai,xa),be[0]&4096&&(vo.checked=W[12]),W[12]?ms?ms.p(W,be):(ms=ap(W),ms.c(),ms.m(os,Fi)):ms&&(ms.d(1),ms=null),(!Ae||be[0]&131072)&&le(Ys,"animate-spin",W[17]),(!Ae||be[0]&16777216)&&$a!==($a=W[24]("common.refresh")+"")&&v(Oi,$a),(!Ae||be[0]&131072)&&(Ks.disabled=W[17]),W[21]>0?gs?gs.p(W,be):(gs=rp(W),gs.c(),gs.m(os,null)):gs&&(gs.d(1),gs=null),(!Ae||be[0]&16777216)&&er!==(er=W[24]("logs.export")+"")&&v(Ni,er),W[23]>0?_s?_s.p(W,be):(_s=ip(W),_s.c(),_s.m(Bs,null)):_s&&(_s.d(1),_s=null),(!Ae||be[0]&16777216)&&or!==(or=W[24]("logs.actions")+"")&&v(Ji,or),W[2]||W[3]||W[4]!==void 0||W[5]||W[8]!=="recent"||W[9]!==1||W[6]!=="timestamp"||W[7]!=="desc"||W[12]?qs||(qs=up(),qs.c(),qs.m(As,null)):qs&&(qs.d(1),qs=null),(!Ae||be[0]&16777216)&&ar!==(ar=W[24]("logs.filters")+"")&&v(Wi,ar),(!Ae||be[0]&16777216)&&ur!==(ur=W[24]("logs.method")+"")&&v(Gi,ur),(!Ae||be[0]&16777216)&&fr!==(fr=W[24]("logs.allMethods")+"")&&v(Ki,fr),be[0]&4&&kt(Ts,W[2]),(!Ae||be[0]&16777216)&&pr!==(pr=W[24]("logs.status")+"")&&v(Yi,pr),be[0]&8&&oo.value!==W[3]&&Y(oo,W[3]),(!Ae||be[0]&16777216)&&gr!==(gr=W[24]("logs.result")+"")&&v(Qi,gr),(!Ae||be[0]&16777216)&&_r!==(_r=W[24]("logs.allResults")+"")&&v(Zi,_r),(!Ae||be[0]&16777216)&&br!==(br=W[24]("logs.success")+"")&&v(Xi,br),(!Ae||be[0]&16777216)&&vr!==(vr=W[24]("logs.failed")+"")&&v(xi,vr),be[0]&16&&kt(Qs,W[4]),(!Ae||be[0]&16777216)&&yr!==(yr=W[24]("logs.requestTypeFilter")+"")&&v($i,yr),(!Ae||be[0]&16777216)&&Cr!==(Cr=W[24]("logs.requestType_all")+"")&&v(eu,Cr),(!Ae||be[0]&16777216)&&Er!==(Er=W[24]("logs.requestType_final")+"")&&v(tu,Er),(!Ae||be[0]&16777216)&&Tr!==(Tr=W[24]("logs.requestType_retry")+"")&&v(lu,Tr),(!Ae||be[0]&16777216)&&Sr!==(Sr=W[24]("logs.requestType_recovery")+"")&&v(su,Sr),be[0]&32&&kt(Fs,W[5]),(!Ae||be[0]&16777216)&&qr!==(qr=W[24]("logs.timeRange")+"")&&v(ou,qr),(!Ae||be[0]&16777216)&&Hr!==(Hr=W[24]("logs.allTime")+"")&&v(nu,Hr),(!Ae||be[0]&16777216)&&Lr!==(Lr=W[24]("logs.recentTime")+"")&&v(au,Lr),(!Ae||be[0]&16777216)&&Pr!==(Pr=W[24]("logs.customTime")+"")&&v(ru,Pr),be[0]&256&&kt(Zs,W[8]),W[8]==="recent"?bs?bs.p(W,be):(bs=fp(W),bs.c(),bs.m(qt,iu)):bs&&(bs.d(1),bs=null),W[8]==="custom"?vs?vs.p(W,be):(vs=cp(W),vs.c(),vs.m(qt,uu)):vs&&(vs.d(1),vs=null),(!Ae||be[0]&16777216)&&Br!==(Br=W[24]("logs.sortBy")+"")&&v(fu,Br),(!Ae||be[0]&16777216)&&Ir!==(Ir=W[24]("logs.sortByTimestamp")+"")&&v(cu,Ir),(!Ae||be[0]&16777216)&&Ar!==(Ar=W[24]("logs.sortByDuration")+"")&&v(du,Ar),(!Ae||be[0]&16777216)&&Fr!==(Fr=W[24]("logs.sortByStatus")+"")&&v(pu,Fr),be[0]&64&&kt(Xs,W[6]),(!Ae||be[0]&16777216)&&zr!==(zr=W[24]("logs.desc")+"")&&v(hu,zr),(!Ae||be[0]&16777216)&&Or!==(Or=W[24]("logs.asc")+"")&&v(mu,Or),be[0]&128&&kt(no,W[7]),(!Ae||be[0]&16777216)&&Ur!==(Ur=W[24]("common.refresh")+"")&&v(_u,Ur),(!Ae||be[0]&16777216)&&Wr!==(Wr=W[24]("logs.autoRefresh")+"")&&v(bu,Wr),be[0]&4096&&(ko.checked=W[12]),W[12]?ks?ks.p(W,be):(ks=dp(W),ks.c(),ks.m(qt,vu)):ks&&(ks.d(1),ks=null),(!Ae||be[0]&131072)&&le($s,"animate-spin",W[17]),(!Ae||be[0]&16777216)&&Gr!==(Gr=W[24]("common.refresh")+"")&&v(ku,Gr),(!Ae||be[0]&131072)&&(xs.disabled=W[17]),W[23]>0?ws?ws.p(W,be):(ws=pp(W),ws.c(),ws.m(qt,null)):ws&&(ws.d(1),ws=null),W[23]>0?ys?ys.p(W,be):(ys=hp(W),ys.c(),ys.m(f,null)):ys&&(ys.d(1),ys=null),Kr===(Kr=$f(W))&&eo?eo.p(W,be):(eo.d(1),eo=Kr(W),eo&&(eo.c(),eo.m(s,null))),W[20]&&W[19]?Fl?(Fl.p(W,be),be[0]&1572864&&et(Fl,1)):(Fl=Tp(W),Fl.c(),et(Fl,1),Fl.m($n.parentNode,$n)):Fl&&(Gl(),st(Fl,1,1,()=>{Fl=null}),Kl())},i(W){Ae||(et(Fl),Ae=!0)},o(W){st(Fl),Ae=!1},d(W){W&&(H(s),H(yu),H($n)),ns&&ns.d(),Ss&&Ss.d(),Ms&&Ms.d(),Rs&&Rs.d(),as&&as.d(),rs&&rs.d(),is&&is.d(),us&&us.d(),fs&&fs.d(),cs&&cs.d(),ds&&ds.d(),ps&&ps.d(),hs&&hs.d(),ms&&ms.d(),gs&&gs.d(),_s&&_s.d(),qs&&qs.d(),bs&&bs.d(),vs&&vs.d(),ks&&ks.d(),ws&&ws.d(),ys&&ys.d(),eo.d(),Fl&&Fl.d(W),Cu=!1,vt(xf)}}}let Yn=50;function Sp(l){return new Date(l).toLocaleString()}function Mp(l){return l<1e3?\`\${l}ms\`:\`\${(l/1e3).toFixed(2)}s\`}function Rp(l){return l<300?"badge-success":l<400?"badge-info":l<500?"badge-warning":"badge-error"}function qp(l){return l==="final"?"badge-success":l==="retry"?"badge-warning":l==="recovery"?"badge-info":"badge-ghost"}function Rg(l,s,e){let n,a;Dt(l,Rt,at=>e(24,a=at));let i=1,u="",c="",f="",d,p="",m="timestamp",g="desc",b="recent",k=1,w="",C="",E=[],y=0,T=0,M=!0,R=null,j=null,P=!1,I=!0,q="30s",D=null,A=0,N=!1;const Z={"5s":5e3,"10s":1e4,"30s":3e4,"60s":6e4};let Q="",x="";async function z(){try{e(17,M=!0),e(18,R=null);const at={page:i,limit:Yn,sortBy:m,sortOrder:g};u.trim()&&(at.searchTerm=u.trim()),c&&(at.method=c),f&&(at.status=parseInt(f)),d!==void 0&&(at.success=d),p&&(at.requestType=p),b==="recent"?(at.endTime=Date.now(),at.startTime=Date.now()-k*60*60*1e3):b==="custom"&&(w&&(at.startTime=new Date(w).getTime()),C&&(at.endTime=new Date(C).getTime()));const St=await b2(at);e(14,E=St.data),e(15,y=St.total),e(16,T=St.totalPages)}catch(at){e(18,R=at.message)}finally{e(17,M=!1)}}async function K(at){try{const St={};u.trim()&&(St.searchTerm=u.trim()),c&&(St.method=c),f&&(St.status=parseInt(f)),d!==void 0&&(St.success=d),p&&(St.requestType=p),b==="recent"?(St.endTime=Date.now(),St.startTime=Date.now()-k*60*60*1e3):b==="custom"&&(w&&(St.startTime=new Date(w).getTime()),C&&(St.endTime=new Date(C).getTime()));const ht=await v2(St,at),Tt=URL.createObjectURL(ht),vl=document.createElement("a");vl.href=Tt,vl.download=\`access-logs-\${Date.now()}.\${at}\`,vl.click(),URL.revokeObjectURL(Tt)}catch(St){alert(\`Export failed: \${St.message}\`)}}function S(at){e(19,j=at),e(20,P=!0)}function B(at){return at?a(\`logs.requestType_\${at}\`):"-"}function U(){e(1,u=""),e(2,c=""),e(3,f=""),e(4,d=void 0),e(5,p=""),e(8,b="recent"),e(9,k=1),e(10,w=""),e(11,C=""),e(6,m="timestamp"),e(7,g="desc"),e(0,i=1)}function F(){return!!(u||c||f||d!==void 0||p)}function J(){if(D&&clearInterval(D),I){const at=Z[q];D=window.setInterval(()=>{document.visibilityState==="visible"&&(F()?e(22,N=!0):(z(),e(21,A=Date.now()),e(22,N=!1)))},at)}}function ie(){D&&(clearInterval(D),D=null)}async function ue(){await z(),e(21,A=Date.now()),e(22,N=!1)}function ne(){if(document.visibilityState==="visible"){const at=Date.now()-A,St=Z[q];at>=St&&z(),I&&J()}else ie()}Hs(()=>{localStorage.getItem("logsAdvancedFiltersExpanded");const at=localStorage.getItem("logsRefreshInterval");at&&e(13,q=at);const St=localStorage.getItem("logsAutoRefresh");St!==null&&e(12,I=St==="true"),z(),J(),document.addEventListener("visibilitychange",ne)}),Xn(()=>{ie(),document.removeEventListener("visibilitychange",ne)});function $(){u=this.value,e(1,u)}const te=()=>e(2,c=""),ae=()=>e(2,c="GET"),ee=()=>e(2,c="POST"),G=()=>e(2,c="PUT"),pe=()=>e(2,c="DELETE"),oe=()=>e(2,c="PATCH");function ge(){f=this.value,e(3,f)}const he=()=>e(4,d=void 0),ye=()=>e(4,d=!0),ze=()=>e(4,d=!1);function Pe(){p=dl(this),e(5,p)}function we(){b=dl(this),e(8,b)}function Fe(){k=Mt(this.value),e(9,k)}function Je(){w=this.value,e(10,w)}function je(){C=this.value,e(11,C)}function Le(){m=dl(this),e(6,m)}function Se(){g=dl(this),e(7,g)}function fe(){I=this.checked,e(12,I)}function _e(){q=dl(this),e(13,q)}const Ie=()=>K("json"),De=()=>K("csv");function se(){c=dl(this),e(2,c)}function ke(){f=this.value,e(3,f)}function me(){d=dl(this),e(4,d)}function Ee(){p=dl(this),e(5,p)}function Ve(){b=dl(this),e(8,b)}function Be(){k=Mt(this.value),e(9,k)}function nt(){w=this.value,e(10,w)}function Ne(){C=this.value,e(11,C)}function Qe(){m=dl(this),e(6,m)}function Ye(){g=dl(this),e(7,g)}function ve(){I=this.checked,e(12,I)}function de(){q=dl(this),e(13,q)}const Te=()=>K("json"),Ze=()=>K("csv");function Me(){c=dl(this),e(2,c)}function Ue(){f=this.value,e(3,f)}function Ce(){d=dl(this),e(4,d)}function mt(){p=dl(this),e(5,p)}function Ge(){b=dl(this),e(8,b)}function ce(){k=Mt(this.value),e(9,k)}function qe(){w=this.value,e(10,w)}function Re(){C=this.value,e(11,C)}function dt(){m=dl(this),e(6,m)}function We(){g=dl(this),e(7,g)}function O(){I=this.checked,e(12,I)}function He(){q=dl(this),e(13,q)}const X=()=>K("json"),ft=()=>K("csv"),Ht=()=>e(1,u=""),Ke=()=>e(2,c=""),_t=()=>e(3,f=""),tt=()=>e(4,d=void 0),it=()=>e(5,p=""),Oe=()=>e(9,k=1),Xe=()=>{e(8,b="recent"),e(10,w=""),e(11,C="")},It=()=>e(8,b="recent"),rt=()=>{e(6,m="timestamp"),e(7,g="desc")},gt=at=>S(at),wt=()=>e(0,i=i-1),pt=()=>e(0,i=i+1),bl=()=>{e(20,P=!1),e(19,j=null)};return l.$$.update=()=>{if(l.$$.dirty[0]&4096&&(I?J():ie()),l.$$.dirty[0]&12288&&(localStorage.setItem("logsRefreshInterval",q),localStorage.setItem("logsAutoRefresh",String(I))),l.$$.dirty[0]&1022&&e(23,n=[u.trim(),c,f,d!==void 0,p,b!=="all"&&b!=="recent"||k!==1,m!=="timestamp"||g!=="desc"].filter(Boolean).length),l.$$.dirty[0]&1073742846){const at=JSON.stringify({limit:Yn,searchTerm:u,method:c,statusFilter:f,successFilter:d,requestTypeFilter:p,sortBy:m,sortOrder:g,timeRangeType:b,recentHours:k});Q&&at!==Q&&e(0,i=1),e(30,Q=at)}if(l.$$.dirty[0]&3328|l.$$.dirty[1]&1){const at=JSON.stringify({customStartTime:w,customEndTime:C});b==="custom"&&x&&at!==x&&e(0,i=1),e(31,x=at)}l.$$.dirty[0]&4095&&z()},[i,u,c,f,d,p,m,g,b,k,w,C,I,q,E,y,T,M,R,j,P,A,N,n,a,K,S,B,U,ue,Q,x,$,te,ae,ee,G,pe,oe,ge,he,ye,ze,Pe,we,Fe,Je,je,Le,Se,fe,_e,Ie,De,se,ke,me,Ee,Ve,Be,nt,Ne,Qe,Ye,ve,de,Te,Ze,Me,Ue,Ce,mt,Ge,ce,qe,Re,dt,We,O,He,X,ft,Ht,Ke,_t,tt,it,Oe,Xe,It,rt,gt,wt,pt,bl]}class qg extends Nt{constructor(s){super(),Ut(this,s,Rg,Mg,Vt,{},null,[-1,-1,-1,-1])}}async function Hg(l){return yl.post("/auth/login",{token:l})}function Hp(l){let s,e,n;return{c(){s=r("div"),e=r("span"),n=_(l[2]),o(e,"class","label-text-alt text-error"),o(s,"class","label")},m(a,i){L(a,s,i),t(s,e),t(e,n)},p(a,i){i&4&&v(n,a[2])},d(a){a&&H(s)}}}function Lg(l){let s,e,n,a,i,u,c,f,d=l[3]("login.title")+"",p,m,g,b=l[3]("login.subtitle")+"",k,w,C,E,y,T=l[3]("login.token")+"",M,R,j,P,I,q,D,A,N=(l[1]?l[3]("login.loggingIn"):l[3]("login.submit"))+"",Z,Q,x,z,K,S=l[2]&&Hp(l);return{c(){s=r("div"),e=r("div"),n=r("div"),a=r("div"),i=re("svg"),u=re("path"),c=h(),f=r("h1"),p=_(d),m=h(),g=r("p"),k=_(b),w=h(),C=r("div"),E=r("label"),y=r("span"),M=_(T),R=h(),j=r("input"),I=h(),S&&S.c(),q=h(),D=r("div"),A=r("button"),Z=_(N),Q=h(),x=r("div"),x.textContent="Bungee Reverse Proxy",o(u,"stroke-linecap","round"),o(u,"stroke-linejoin","round"),o(u,"stroke-width","2"),o(u,"d","M13 10V3L4 14h7v7l9-11h-7z"),o(i,"xmlns","http://www.w3.org/2000/svg"),o(i,"class","h-16 w-16 text-primary mb-4"),o(i,"fill","none"),o(i,"viewBox","0 0 24 24"),o(i,"stroke","currentColor"),o(f,"class","text-3xl font-bold text-center"),o(g,"class","text-sm text-base-content/60 text-center mt-2"),o(a,"class","flex flex-col items-center mb-6"),o(y,"class","label-text"),o(E,"class","label"),o(E,"for","token-input"),o(j,"id","token-input"),o(j,"type","password"),o(j,"placeholder",P=l[3]("login.tokenPlaceholder")),o(j,"class","input input-bordered w-full"),j.disabled=l[1],o(j,"autocomplete","off"),le(j,"input-error",!!l[2]),o(C,"class","form-control w-full"),o(A,"class","btn btn-primary"),A.disabled=l[1],le(A,"loading",l[1]),o(D,"class","form-control mt-6"),o(x,"class","divider text-xs opacity-50 mt-6"),o(n,"class","card-body"),o(e,"class","card w-full max-w-md bg-base-100 shadow-2xl svelte-1qok2wg"),o(s,"class","min-h-screen bg-base-200 flex items-center justify-center p-4")},m(B,U){L(B,s,U),t(s,e),t(e,n),t(n,a),t(a,i),t(i,u),t(a,c),t(a,f),t(f,p),t(a,m),t(a,g),t(g,k),t(n,w),t(n,C),t(C,E),t(E,y),t(y,M),t(C,R),t(C,j),Y(j,l[0]),t(C,I),S&&S.m(C,null),t(n,q),t(n,D),t(D,A),t(A,Z),t(n,Q),t(n,x),z||(K=[V(j,"input",l[6]),V(j,"keypress",l[5]),V(A,"click",l[4])],z=!0)},p(B,[U]){U&8&&d!==(d=B[3]("login.title")+"")&&v(p,d),U&8&&b!==(b=B[3]("login.subtitle")+"")&&v(k,b),U&8&&T!==(T=B[3]("login.token")+"")&&v(M,T),U&8&&P!==(P=B[3]("login.tokenPlaceholder"))&&o(j,"placeholder",P),U&2&&(j.disabled=B[1]),U&1&&j.value!==B[0]&&Y(j,B[0]),U&4&&le(j,"input-error",!!B[2]),B[2]?S?S.p(B,U):(S=Hp(B),S.c(),S.m(C,null)):S&&(S.d(1),S=null),U&10&&N!==(N=(B[1]?B[3]("login.loggingIn"):B[3]("login.submit"))+"")&&v(Z,N),U&2&&(A.disabled=B[1]),U&2&&le(A,"loading",B[1])},i:ot,o:ot,d(B){B&&H(s),S&&S.d(),z=!1,vt(K)}}}function Pg(l,s,e){let n;Dt(l,Rt,p=>e(3,n=p));let a="",i=!1,u="";async function c(){if(!a.trim()){e(2,u=n("login.required"));return}e(1,i=!0),e(2,u="");try{const p=await Hg(a);p.success?(q0(a),jt.show(n("login.success"),"success"),window.location.hash="#/"):e(2,u=p.error||n("login.unauthorized"))}catch(p){e(2,u=n("login.failed",{values:{error:p.message}}))}finally{e(1,i=!1)}}function f(p){p.key==="Enter"&&!i&&c()}function d(){a=this.value,e(0,a)}return[a,i,u,n,c,f,d]}class jg extends Nt{constructor(s){super(),Ut(this,s,Pg,Lg,Vt,{})}}function Dg(l){let s,e,n=l[0]("notFound.title")+"",a,i,u,c=l[0]("notFound.message")+"",f,d,p,m=l[0]("notFound.goHome")+"",g;return{c(){s=r("div"),e=r("h1"),a=_(n),i=h(),u=r("p"),f=_(c),d=h(),p=r("a"),g=_(m),o(e,"class","text-6xl font-bold mb-4"),o(u,"class","text-2xl mb-8"),o(p,"href","/__ui/#/"),o(p,"class","btn btn-primary"),o(s,"class","flex flex-col items-center justify-center h-screen")},m(b,k){L(b,s,k),t(s,e),t(e,a),t(s,i),t(s,u),t(u,f),t(s,d),t(s,p),t(p,g)},p(b,[k]){k&1&&n!==(n=b[0]("notFound.title")+"")&&v(a,n),k&1&&c!==(c=b[0]("notFound.message")+"")&&v(f,c),k&1&&m!==(m=b[0]("notFound.goHome")+"")&&v(g,m)},i:ot,o:ot,d(b){b&&H(s)}}}function Bg(l,s,e){let n;return Dt(l,Rt,a=>e(0,n=a)),[n]}class Ig extends Nt{constructor(s){super(),Ut(this,s,Bg,Dg,Vt,{})}}function Lp(l,s,e){const n=l.slice();return n[3]=s[e],n}function Pp(l,s){let e,n,a;function i(){return s[2](s[3])}return n=new yh({props:{message:s[3].message,type:s[3].type,duration:s[3].duration}}),n.$on("close",i),{key:l,first:null,c(){e=Ul(),Et(n.$$.fragment),this.first=e},m(u,c){L(u,e,c),Ct(n,u,c),a=!0},p(u,c){s=u;const f={};c&1&&(f.message=s[3].message),c&1&&(f.type=s[3].type),c&1&&(f.duration=s[3].duration),n.$set(f)},i(u){a||(et(n.$$.fragment,u),a=!0)},o(u){st(n.$$.fragment,u),a=!1},d(u){u&&H(e),yt(n,u)}}}function Ag(l){let s=[],e=new Map,n,a,i=ut(l[0]);const u=c=>c[3].id;for(let c=0;c<i.length;c+=1){let f=Lp(l,i,c),d=u(f);e.set(d,s[c]=Pp(d,f))}return{c(){for(let c=0;c<s.length;c+=1)s[c].c();n=Ul()},m(c,f){for(let d=0;d<s.length;d+=1)s[d]&&s[d].m(c,f);L(c,n,f),a=!0},p(c,[f]){f&3&&(i=ut(c[0]),Gl(),s=Ru(s,f,u,1,c,i,e,n.parentNode,d0,Pp,n,Lp),Kl())},i(c){if(!a){for(let f=0;f<i.length;f+=1)et(s[f]);a=!0}},o(c){for(let f=0;f<s.length;f+=1)st(s[f]);a=!1},d(c){c&&H(n);for(let f=0;f<s.length;f+=1)s[f].d(c)}}}function Fg(l,s,e){let n;Dt(l,jt,u=>e(0,n=u));function a(u){jt.remove(u)}return[n,a,u=>a(u.id)]}class zg extends Nt{constructor(s){super(),Ut(this,s,Fg,Ag,Vt,{})}}function jp(l,s,e){const n=l.slice();return n[11]=s[e],n}function Og(l){let s,e,n,a,i,u,c,f,d,p,m,g,b=l[0]("nav.dashboard")+"",k,w,C,E,y,T,M,R,j=l[0]("nav.routes")+"",P,I,q,D,A,N,Z,Q,x=l[0]("nav.logs")+"",z,K,S,B,U,F,J,ie,ue,ne=l[0]("nav.configuration")+"",$,te,ae,ee,G,pe,oe,ge,he=Qr.find(l[8])?.name+"",ye,ze,Pe,we,Fe,Je,je,Le,Se,fe=ut(Qr),_e=[];for(let me=0;me<fe.length;me+=1)_e[me]=Dp(jp(l,fe,me));let Ie=l[4]&&l[5]&&Bp(l);const De=[Qg,Yg,Kg,Gg,Wg,Jg,Vg,Ug],se=[];function ke(me,Ee){return Ee&2&&(Je=null),me[1]==="/login"?0:me[1]==="/"?1:me[1]==="/routes"?2:(Je==null&&(Je=!!me[1].startsWith("/routes/edit/")),Je?3:me[1]==="/routes/new"?4:me[1]==="/logs"?5:me[1]==="/config"?6:7)}return je=ke(l,-1),Le=se[je]=De[je](l),{c(){s=r("div"),e=r("div"),n=r("div"),n.innerHTML='<a href="/__ui/#/" class="flex items-center gap-2 px-4 py-2 hover:bg-base-200 rounded-lg transition-colors"><svg xmlns="http://www.w3.org/2000/svg" class="h-8 w-8 text-primary" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 10V3L4 14h7v7l9-11h-7z"></path></svg> <div class="flex flex-col"><span class="text-xl font-bold">Bungee</span> <span class="text-xs text-base-content/60">Reverse Proxy</span></div></a>',a=h(),i=r("div"),u=r("ul"),c=r("li"),f=r("a"),d=re("svg"),p=re("path"),m=h(),g=r("span"),k=_(b),w=h(),C=r("li"),E=r("a"),y=re("svg"),T=re("path"),M=h(),R=r("span"),P=_(j),I=h(),q=r("li"),D=r("a"),A=re("svg"),N=re("path"),Z=h(),Q=r("span"),z=_(x),K=h(),S=r("li"),B=r("a"),U=re("svg"),F=re("path"),J=re("path"),ie=h(),ue=r("span"),$=_(ne),te=h(),ae=r("div"),ee=r("div"),G=re("svg"),pe=re("path"),oe=h(),ge=r("span"),ye=_(he),ze=h(),Pe=r("ul");for(let me=0;me<_e.length;me+=1)_e[me].c();we=h(),Ie&&Ie.c(),Fe=h(),Le.c(),o(n,"class","flex-1"),o(p,"stroke-linecap","round"),o(p,"stroke-linejoin","round"),o(p,"stroke-width","2"),o(p,"d","M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"),o(d,"xmlns","http://www.w3.org/2000/svg"),o(d,"class","h-4 w-4"),o(d,"fill","none"),o(d,"viewBox","0 0 24 24"),o(d,"stroke","currentColor"),o(f,"href","/__ui/#/"),o(f,"class","flex items-center gap-2 svelte-1fgps4v"),le(f,"active",l[1]==="/"),o(T,"stroke-linecap","round"),o(T,"stroke-linejoin","round"),o(T,"stroke-width","2"),o(T,"d","M9 20l-5.447-2.724A1 1 0 013 16.382V5.618a1 1 0 011.447-.894L9 7m0 13l6-3m-6 3V7m6 10l4.553 2.276A1 1 0 0021 18.382V7.618a1 1 0 00-.553-.894L15 4m0 13V4m0 0L9 7"),o(y,"xmlns","http://www.w3.org/2000/svg"),o(y,"class","h-4 w-4"),o(y,"fill","none"),o(y,"viewBox","0 0 24 24"),o(y,"stroke","currentColor"),o(E,"href","/__ui/#/routes"),o(E,"class","flex items-center gap-2 svelte-1fgps4v"),le(E,"active",l[1].startsWith("/routes")),o(N,"stroke-linecap","round"),o(N,"stroke-linejoin","round"),o(N,"stroke-width","2"),o(N,"d","M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"),o(A,"xmlns","http://www.w3.org/2000/svg"),o(A,"class","h-4 w-4"),o(A,"fill","none"),o(A,"viewBox","0 0 24 24"),o(A,"stroke","currentColor"),o(D,"href","/__ui/#/logs"),o(D,"class","flex items-center gap-2 svelte-1fgps4v"),le(D,"active",l[1]==="/logs"),o(F,"stroke-linecap","round"),o(F,"stroke-linejoin","round"),o(F,"stroke-width","2"),o(F,"d","M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"),o(J,"stroke-linecap","round"),o(J,"stroke-linejoin","round"),o(J,"stroke-width","2"),o(J,"d","M15 12a3 3 0 11-6 0 3 3 0 016 0z"),o(U,"xmlns","http://www.w3.org/2000/svg"),o(U,"class","h-4 w-4"),o(U,"fill","none"),o(U,"viewBox","0 0 24 24"),o(U,"stroke","currentColor"),o(B,"href","/__ui/#/config"),o(B,"class","flex items-center gap-2 svelte-1fgps4v"),le(B,"active",l[1]==="/config"),o(u,"class","menu menu-horizontal px-1 gap-1"),o(pe,"stroke-linecap","round"),o(pe,"stroke-linejoin","round"),o(pe,"stroke-width","2"),o(pe,"d","M3 5h12M9 3v2m1.048 9.5A18.022 18.022 0 016.412 9m6.088 9h7M11 21l5-10 5 10M12.751 5C11.783 10.77 8.07 15.61 3 18.129"),o(G,"xmlns","http://www.w3.org/2000/svg"),o(G,"class","h-4 w-4"),o(G,"fill","none"),o(G,"viewBox","0 0 24 24"),o(G,"stroke","currentColor"),o(ge,"class","text-xs"),o(ee,"role","button"),o(ee,"tabindex","0"),o(ee,"class","btn btn-ghost btn-sm gap-1"),o(Pe,"role","menu"),o(Pe,"tabindex","0"),o(Pe,"class","dropdown-content z-[1] menu p-2 shadow bg-base-100 rounded-box w-32 mt-2 gap-1"),o(ae,"class","dropdown dropdown-end mx-2"),o(i,"class","flex-none"),o(e,"class","navbar bg-base-100 shadow-lg sticky top-0 z-50"),o(s,"class","min-h-screen bg-base-200")},m(me,Ee){L(me,s,Ee),t(s,e),t(e,n),t(e,a),t(e,i),t(i,u),t(u,c),t(c,f),t(f,d),t(d,p),t(f,m),t(f,g),t(g,k),t(u,w),t(u,C),t(C,E),t(E,y),t(y,T),t(E,M),t(E,R),t(R,P),t(u,I),t(u,q),t(q,D),t(D,A),t(A,N),t(D,Z),t(D,Q),t(Q,z),t(u,K),t(u,S),t(S,B),t(B,U),t(U,F),t(U,J),t(B,ie),t(B,ue),t(ue,$),t(i,te),t(i,ae),t(ae,ee),t(ee,G),t(G,pe),t(ee,oe),t(ee,ge),t(ge,ye),t(ae,ze),t(ae,Pe);for(let Ve=0;Ve<_e.length;Ve+=1)_e[Ve]&&_e[Ve].m(Pe,null);t(i,we),Ie&&Ie.m(i,null),t(s,Fe),se[je].m(s,null),Se=!0},p(me,Ee){if((!Se||Ee&1)&&b!==(b=me[0]("nav.dashboard")+"")&&v(k,b),(!Se||Ee&2)&&le(f,"active",me[1]==="/"),(!Se||Ee&1)&&j!==(j=me[0]("nav.routes")+"")&&v(P,j),(!Se||Ee&2)&&le(E,"active",me[1].startsWith("/routes")),(!Se||Ee&1)&&x!==(x=me[0]("nav.logs")+"")&&v(z,x),(!Se||Ee&2)&&le(D,"active",me[1]==="/logs"),(!Se||Ee&1)&&ne!==(ne=me[0]("nav.configuration")+"")&&v($,ne),(!Se||Ee&2)&&le(B,"active",me[1]==="/config"),(!Se||Ee&8)&&he!==(he=Qr.find(me[8])?.name+"")&&v(ye,he),Ee&72){fe=ut(Qr);let Be;for(Be=0;Be<fe.length;Be+=1){const nt=jp(me,fe,Be);_e[Be]?_e[Be].p(nt,Ee):(_e[Be]=Dp(nt),_e[Be].c(),_e[Be].m(Pe,null))}for(;Be<_e.length;Be+=1)_e[Be].d(1);_e.length=fe.length}me[4]&&me[5]?Ie?Ie.p(me,Ee):(Ie=Bp(me),Ie.c(),Ie.m(i,null)):Ie&&(Ie.d(1),Ie=null);let Ve=je;je=ke(me,Ee),je===Ve?se[je].p(me,Ee):(Gl(),st(se[Ve],1,1,()=>{se[Ve]=null}),Kl(),Le=se[je],Le?Le.p(me,Ee):(Le=se[je]=De[je](me),Le.c()),et(Le,1),Le.m(s,null))},i(me){Se||(et(Le),Se=!0)},o(me){st(Le),Se=!1},d(me){me&&H(s),Gt(_e,me),Ie&&Ie.d(),se[je].d()}}}function Ng(l){let s;return{c(){s=r("div"),s.innerHTML='<div class="flex flex-col items-center gap-4"><span class="loading loading-spinner loading-lg"></span> <p class="text-base-content/60">Loading...</p></div>',o(s,"class","min-h-screen bg-base-200 flex items-center justify-center")},m(e,n){L(e,s,n)},p:ot,i:ot,o:ot,d(e){e&&H(s)}}}function Dp(l){let s,e,n,a,i;function u(){return l[9](l[11])}return{c(){s=r("li"),e=r("button"),e.textContent=\`\${l[11].name}\`,n=h(),o(e,"class","svelte-1fgps4v"),le(e,"active",l[3]===l[11].code)},m(c,f){L(c,s,f),t(s,e),t(s,n),a||(i=V(e,"click",u),a=!0)},p(c,f){l=c,f&8&&le(e,"active",l[3]===l[11].code)},d(c){c&&H(s),a=!1,i()}}}function Bp(l){let s,e,n,a,i,u,c=l[0]("login.logout")+"",f,d,p;return{c(){s=r("div"),e=r("button"),n=re("svg"),a=re("path"),i=h(),u=r("span"),f=_(c),o(a,"stroke-linecap","round"),o(a,"stroke-linejoin","round"),o(a,"stroke-width","2"),o(a,"d","M17 16l4-4m0 0l-4-4m4 4H7m6 4v1a3 3 0 01-3 3H6a3 3 0 01-3-3V7a3 3 0 013-3h4a3 3 0 013 3v1"),o(n,"xmlns","http://www.w3.org/2000/svg"),o(n,"class","h-4 w-4"),o(n,"fill","none"),o(n,"viewBox","0 0 24 24"),o(n,"stroke","currentColor"),o(u,"class","text-xs hidden md:inline"),o(e,"class","btn btn-ghost btn-sm gap-1"),o(s,"class","mx-2")},m(m,g){L(m,s,g),t(s,e),t(e,n),t(n,a),t(e,i),t(e,u),t(u,f),d||(p=V(e,"click",l[7]),d=!0)},p(m,g){g&1&&c!==(c=m[0]("login.logout")+"")&&v(f,c)},d(m){m&&H(s),d=!1,p()}}}function Ug(l){let s,e;return s=new Ig({}),{c(){Et(s.$$.fragment)},m(n,a){Ct(s,n,a),e=!0},p:ot,i(n){e||(et(s.$$.fragment,n),e=!0)},o(n){st(s.$$.fragment,n),e=!1},d(n){yt(s,n)}}}function Vg(l){let s,e;return s=new U2({}),{c(){Et(s.$$.fragment)},m(n,a){Ct(s,n,a),e=!0},p:ot,i(n){e||(et(s.$$.fragment,n),e=!0)},o(n){st(s.$$.fragment,n),e=!1},d(n){yt(s,n)}}}function Jg(l){let s,e;return s=new qg({}),{c(){Et(s.$$.fragment)},m(n,a){Ct(s,n,a),e=!0},p:ot,i(n){e||(et(s.$$.fragment,n),e=!0)},o(n){st(s.$$.fragment,n),e=!1},d(n){yt(s,n)}}}function Wg(l){let s,e;return s=new a0({props:{params:{}}}),{c(){Et(s.$$.fragment)},m(n,a){Ct(s,n,a),e=!0},p:ot,i(n){e||(et(s.$$.fragment,n),e=!0)},o(n){st(s.$$.fragment,n),e=!1},d(n){yt(s,n)}}}function Gg(l){let s,e;return s=new a0({props:{params:{path:l[1].replace("/routes/edit/","")}}}),{c(){Et(s.$$.fragment)},m(n,a){Ct(s,n,a),e=!0},p(n,a){const i={};a&2&&(i.params={path:n[1].replace("/routes/edit/","")}),s.$set(i)},i(n){e||(et(s.$$.fragment,n),e=!0)},o(n){st(s.$$.fragment,n),e=!1},d(n){yt(s,n)}}}function Kg(l){let s,e;return s=new ch({}),{c(){Et(s.$$.fragment)},m(n,a){Ct(s,n,a),e=!0},p:ot,i(n){e||(et(s.$$.fragment,n),e=!0)},o(n){st(s.$$.fragment,n),e=!1},d(n){yt(s,n)}}}function Yg(l){let s,e;return s=new p2({}),{c(){Et(s.$$.fragment)},m(n,a){Ct(s,n,a),e=!0},p:ot,i(n){e||(et(s.$$.fragment,n),e=!0)},o(n){st(s.$$.fragment,n),e=!1},d(n){yt(s,n)}}}function Qg(l){let s,e;return s=new jg({}),{c(){Et(s.$$.fragment)},m(n,a){Ct(s,n,a),e=!0},p:ot,i(n){e||(et(s.$$.fragment,n),e=!0)},o(n){st(s.$$.fragment,n),e=!1},d(n){yt(s,n)}}}function Zg(l){let s,e,n,a,i;const u=[Ng,Og],c=[];function f(d,p){return d[2]?0:1}return s=f(l),e=c[s]=u[s](l),a=new zg({}),{c(){e.c(),n=h(),Et(a.$$.fragment)},m(d,p){c[s].m(d,p),L(d,n,p),Ct(a,d,p),i=!0},p(d,[p]){let m=s;s=f(d),s===m?c[s].p(d,p):(Gl(),st(c[m],1,1,()=>{c[m]=null}),Kl(),e=c[s],e?e.p(d,p):(e=c[s]=u[s](d),e.c()),et(e,1),e.m(n.parentNode,n))},i(d){i||(et(e),et(a.$$.fragment,d),i=!0)},o(d){st(e),st(a.$$.fragment,d),i=!1},d(d){d&&H(n),c[s].d(d),yt(a,d)}}}function Xg(l,s,e){let n,a,i,u,c,f;Dt(l,Rt,b=>e(0,n=b)),Dt(l,p0,b=>e(1,a=b)),Dt(l,h0,b=>e(2,i=b)),Dt(l,Ap,b=>e(3,u=b)),Dt(l,l1,b=>e(4,c=b)),Dt(l,ei,b=>e(5,f=b));function d(b){T0(b)}Hs(async()=>{try{const k=(await Pu()).auth?.enabled||!1;if(l1.set(k),k){const w=Yp();ei.set(!!w),!w&&a!=="/login"&&(window.location.hash="#/login")}}catch(b){console.error("Failed to check auth status:",b)}});function p(){confirm(n("login.logoutConfirm"))&&(Kp(),window.location.hash="#/login")}return[n,a,i,u,c,f,d,p,b=>b.code===u,b=>d(b.code)]}class xg extends Nt{constructor(s){super(),Ut(this,s,Xg,Zg,Vt,{})}}new xg({target:document.getElementById("app")});
21265
+ }\`,c="",p=null,m=[];Hs(async()=>{try{const T=await f0.getAll();e(6,m=T.map(M=>({id:M,name:c0(M),description:Yh(M)})))}catch(T){console.warn("Failed to load plugins from API, using fallback:",T),e(6,m=[{id:"openai-to-anthropic",name:"OpenAI \u2192 Anthropic",description:"Convert OpenAI API format to Anthropic format"},{id:"anthropic-to-openai",name:"Anthropic \u2192 OpenAI",description:"Convert Anthropic API format to OpenAI format"},{id:"anthropic-to-gemini",name:"Anthropic \u2192 Gemini",description:"Convert Anthropic API format to Google Gemini format"}])}});function g(){f("change",r),e(4,c=""),e(5,p=null)}function b(){if(!r||!d){e(5,p=n("plugin.testFailed",{values:{error:"Invalid input"}}));return}try{const T=JSON.parse(d);let M;r==="anthropic-to-gemini"?M={contents:T.messages?.map(P=>({role:P.role==="user"?"user":"model",parts:[{text:P.content}]})),generationConfig:{temperature:T.temperature||1,maxOutputTokens:T.max_tokens||8192}}:r==="anthropic-to-openai"?M={model:T.model?.replace("claude","gpt-4"),messages:T.messages,temperature:T.temperature,max_tokens:T.max_tokens}:M={...T,_transformed:!0},e(4,c=JSON.stringify(M,null,2)),e(5,p=null)}catch(T){e(5,p=T.message),e(4,c="")}}function k(){e(4,c=""),e(5,p=null)}function w(){r=yl(this),e(0,r),e(6,m)}const y=T=>T.id===r,E=()=>e(2,u=!u);function C(){d=this.value,e(3,d)}return t.$$set=T=>{"plugin"in T&&e(0,r=T.plugin),"label"in T&&e(1,a=T.label)},[r,a,u,d,c,p,m,n,g,b,k,w,y,E,C]}class p0 extends Kt{constructor(l){super(),Gt(this,l,Qh,Gh,Yt,{plugin:0,label:1})}}function td(t,l,e){const n=t.slice();return n[15]=l[e],n[16]=l,n[17]=e,n}function Zh(t){let l,e=t[5]("routeEditor.pathHelpLong")+"",n;return{c(){l=i("span"),n=_(e),o(l,"class","label-text-alt text-gray-500")},m(r,a){q(r,l,a),s(l,n)},p(r,a){a&32&&e!==(e=r[5]("routeEditor.pathHelpLong")+"")&&v(n,e)},d(r){r&&R(l)}}}function Xh(t){let l,e=t[1].find(od)?.message+"",n;return{c(){l=i("span"),n=_(e),o(l,"class","label-text-alt text-error")},m(r,a){q(r,l,a),s(l,n)},p(r,a){a&2&&e!==(e=r[1].find(od)?.message+"")&&v(n,e)},d(r){r&&R(l)}}}function ld(t){let l,e,n,r,a,f,u,d,c,p,m,g,b;function k(){t[11].call(e,t[16],t[17])}function w(){t[12].call(d,t[16],t[17])}function y(){return t[13](t[17])}return{c(){l=i("div"),e=i("input"),r=h(),a=ie("svg"),f=ie("path"),u=h(),d=i("input"),p=h(),m=i("button"),m.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"></path></svg>',o(e,"id",\`path-rewrite-pattern-\${t[17]}\`),o(e,"type","text"),o(e,"placeholder",n=t[5]("routeEditor.patternPlaceholder")),o(e,"class","input input-bordered input-sm flex-1"),o(f,"stroke-linecap","round"),o(f,"stroke-linejoin","round"),o(f,"stroke-width","2"),o(f,"d","M14 5l7 7m0 0l-7 7m7-7H3"),o(a,"xmlns","http://www.w3.org/2000/svg"),o(a,"class","h-5 w-5 text-gray-400 flex-shrink-0"),o(a,"fill","none"),o(a,"viewBox","0 0 24 24"),o(a,"stroke","currentColor"),o(d,"id",\`path-rewrite-replacement-\${t[17]}\`),o(d,"type","text"),o(d,"placeholder",c=t[5]("routeEditor.replacementPlaceholder")),o(d,"class","input input-bordered input-sm flex-1"),o(m,"type","button"),o(m,"class","btn btn-sm btn-error btn-square flex-shrink-0"),o(l,"class","flex gap-2 items-center")},m(E,C){q(E,l,C),s(l,e),G(e,t[15].pattern),s(l,r),s(l,a),s(a,f),s(l,u),s(l,d),G(d,t[15].replacement),s(l,p),s(l,m),g||(b=[O(e,"input",k),O(d,"input",w),O(m,"click",y)],g=!0)},p(E,C){t=E,C&32&&n!==(n=t[5]("routeEditor.patternPlaceholder"))&&o(e,"placeholder",n),C&4&&e.value!==t[15].pattern&&G(e,t[15].pattern),C&32&&c!==(c=t[5]("routeEditor.replacementPlaceholder"))&&o(d,"placeholder",c),C&4&&d.value!==t[15].replacement&&G(d,t[15].replacement)},d(E){E&&R(l),g=!1,mt(b)}}}function xh(t){let l,e,n,r,a=t[5]("routes.path")+"",f,u,d,c,p,m,g,b,k,w,y,E,C,T=t[5]("routeEditor.pathRewrite")+"",M,P,I=t[5]("routeEditor.optional")+"",H,j,D,B,N,V,Z,Y,x,U,Q,S,L,F=t[5]("routeEditor.addPathRewriteRule")+"",z,J,se,oe,fe,pe,ne=t[5]("routeEditor.transformer")+"",de,re,A,le=t[5]("routeEditor.transformerHelp")+"",$,ce,ae,Se,Fe,qe,he,je,Ie;function Be(te,ve){return ve&2&&(k=null),k==null&&(k=!!te[1].some($h)),k?Xh:Zh}let ke=Be(t,-1),Ce=ke(t),Re=ft(t[2]),He=[];for(let te=0;te<Re.length;te+=1)He[te]=ld(td(t,Re,te));function ze(te){t[14](te)}let Ne={label:t[5]("routeEditor.transformer")};return t[3]!==void 0&&(Ne.plugin=t[3]),ae=new p0({props:Ne}),Ll.push(()=>jl(ae,"plugin",ze)),qe=new d0({props:{open:t[4]!==null,title:t[5]("common.confirm"),message:t[5]("routeEditor.confirmDeleteRule"),confirmText:t[5]("common.delete"),cancelText:t[5]("common.cancel"),confirmClass:"btn-error"}}),qe.$on("confirm",t[8]),qe.$on("cancel",t[9]),{c(){l=i("div"),e=i("div"),n=i("label"),r=i("span"),f=_(a),u=h(),d=i("span"),d.textContent="*",c=h(),p=i("input"),g=h(),b=i("div"),Ce.c(),w=h(),y=i("div"),E=i("label"),C=i("span"),M=_(T),P=_(" ("),H=_(I),j=_(\`)
21266
+ \`),D=i("div"),B=ie("svg"),N=ie("path"),Z=h(),Y=i("div");for(let te=0;te<He.length;te+=1)He[te].c();x=h(),U=i("button"),Q=ie("svg"),S=ie("path"),L=h(),z=_(F),J=h(),se=i("div"),oe=h(),fe=i("div"),pe=i("h3"),de=_(ne),re=h(),A=i("p"),$=_(le),ce=h(),Ht(ae.$$.fragment),Fe=h(),Ht(qe.$$.fragment),o(d,"class","text-error"),o(r,"class","label-text font-semibold"),o(n,"class","label"),o(n,"for","route-path"),o(p,"id","route-path"),o(p,"type","text"),o(p,"placeholder",m=t[5]("routeEditor.pathPlaceholder")),o(p,"class","input input-bordered"),p.required=!0,X(p,"input-error",t[1].some(sd)),o(b,"class","label"),o(e,"class","form-control"),o(N,"stroke-linecap","round"),o(N,"stroke-linejoin","round"),o(N,"stroke-width","2"),o(N,"d","M8.228 9c.549-1.165 2.03-2 3.772-2 2.21 0 4 1.343 4 3 0 1.4-1.278 2.575-3.006 2.907-.542.104-.994.54-.994 1.093m0 3h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"),o(B,"xmlns","http://www.w3.org/2000/svg"),o(B,"class","h-4 w-4 text-gray-400 cursor-help"),o(B,"fill","none"),o(B,"viewBox","0 0 24 24"),o(B,"stroke","currentColor"),o(D,"class","tooltip tooltip-right"),o(D,"data-tip",V=t[5]("routeEditor.pathRewriteTooltip")),o(C,"class","label-text font-semibold flex items-center gap-2"),o(E,"class","label"),o(E,"for","path-rewrite-pattern-0"),o(S,"stroke-linecap","round"),o(S,"stroke-linejoin","round"),o(S,"stroke-width","2"),o(S,"d","M12 4v16m8-8H4"),o(Q,"xmlns","http://www.w3.org/2000/svg"),o(Q,"class","h-4 w-4"),o(Q,"fill","none"),o(Q,"viewBox","0 0 24 24"),o(Q,"stroke","currentColor"),o(U,"type","button"),o(U,"class","btn btn-sm btn-outline gap-2"),o(Y,"class","space-y-2"),o(y,"class","form-control"),o(se,"class","divider"),o(pe,"class","text-lg font-semibold mb-2"),o(A,"class","text-sm text-gray-500 mb-4"),o(l,"class","space-y-6")},m(te,ve){q(te,l,ve),s(l,e),s(e,n),s(n,r),s(r,f),s(r,u),s(r,d),s(e,c),s(e,p),G(p,t[0].path),s(e,g),s(e,b),Ce.m(b,null),s(l,w),s(l,y),s(y,E),s(E,C),s(C,M),s(C,P),s(C,H),s(C,j),s(C,D),s(D,B),s(B,N),s(y,Z),s(y,Y);for(let ue=0;ue<He.length;ue+=1)He[ue]&&He[ue].m(Y,null);s(Y,x),s(Y,U),s(U,Q),s(Q,S),s(U,L),s(U,z),s(l,J),s(l,se),s(l,oe),s(l,fe),s(fe,pe),s(pe,de),s(fe,re),s(fe,A),s(A,$),s(fe,ce),qt(ae,fe,null),q(te,Fe,ve),qt(qe,te,ve),he=!0,je||(Ie=[O(p,"input",t[10]),O(U,"click",t[6])],je=!0)},p(te,[ve]){if((!he||ve&32)&&a!==(a=te[5]("routes.path")+"")&&v(f,a),(!he||ve&32&&m!==(m=te[5]("routeEditor.pathPlaceholder")))&&o(p,"placeholder",m),ve&1&&p.value!==te[0].path&&G(p,te[0].path),(!he||ve&2)&&X(p,"input-error",te[1].some(sd)),ke===(ke=Be(te,ve))&&Ce?Ce.p(te,ve):(Ce.d(1),Ce=ke(te),Ce&&(Ce.c(),Ce.m(b,null))),(!he||ve&32)&&T!==(T=te[5]("routeEditor.pathRewrite")+"")&&v(M,T),(!he||ve&32)&&I!==(I=te[5]("routeEditor.optional")+"")&&v(H,I),(!he||ve&32&&V!==(V=te[5]("routeEditor.pathRewriteTooltip")))&&o(D,"data-tip",V),ve&164){Re=ft(te[2]);let Ee;for(Ee=0;Ee<Re.length;Ee+=1){const ye=td(te,Re,Ee);He[Ee]?He[Ee].p(ye,ve):(He[Ee]=ld(ye),He[Ee].c(),He[Ee].m(Y,x))}for(;Ee<He.length;Ee+=1)He[Ee].d(1);He.length=Re.length}(!he||ve&32)&&F!==(F=te[5]("routeEditor.addPathRewriteRule")+"")&&v(z,F),(!he||ve&32)&&ne!==(ne=te[5]("routeEditor.transformer")+"")&&v(de,ne),(!he||ve&32)&&le!==(le=te[5]("routeEditor.transformerHelp")+"")&&v($,le);const ue={};ve&32&&(ue.label=te[5]("routeEditor.transformer")),!Se&&ve&8&&(Se=!0,ue.plugin=te[3],Dl(()=>Se=!1)),ae.$set(ue);const ge={};ve&16&&(ge.open=te[4]!==null),ve&32&&(ge.title=te[5]("common.confirm")),ve&32&&(ge.message=te[5]("routeEditor.confirmDeleteRule")),ve&32&&(ge.confirmText=te[5]("common.delete")),ve&32&&(ge.cancelText=te[5]("common.cancel")),qe.$set(ge)},i(te){he||($e(ae.$$.fragment,te),$e(qe.$$.fragment,te),he=!0)},o(te){lt(ae.$$.fragment,te),lt(qe.$$.fragment,te),he=!1},d(te){te&&(R(l),R(Fe)),Ce.d(),$t(He,te),Rt(ae),Rt(qe,te),je=!1,mt(Ie)}}}const $h=t=>t.field==="path",sd=t=>t.field==="path",od=t=>t.field==="path";function em(t,l,e){let n;Nt(t,Dt,C=>e(5,n=C));let{route:r}=l,{errors:a=[]}=l,f=[],u=null,d=r.plugins?.[0]||null;function c(){e(2,f=[...f,{pattern:"",replacement:""}])}function p(C){e(4,u=C)}function m(){u!==null&&(e(2,f=f.filter((C,T)=>T!==u)),e(4,u=null))}function g(){e(4,u=null)}function b(){r.path=this.value,e(0,r),e(2,f),e(3,d)}function k(C,T){C[T].pattern=this.value,e(2,f),e(0,r),e(3,d)}function w(C,T){C[T].replacement=this.value,e(2,f),e(0,r),e(3,d)}const y=C=>p(C);function E(C){d=C,e(3,d)}return t.$$set=C=>{"route"in C&&e(0,r=C.route),"errors"in C&&e(1,a=C.errors)},t.$$.update=()=>{if(t.$$.dirty&5){!f.length&&r.pathRewrite&&e(2,f=Object.entries(r.pathRewrite||{}).map(([T,M])=>({pattern:T,replacement:M})));const C={};f.filter(T=>T.pattern.trim()).forEach(T=>{C[T.pattern]=T.replacement}),e(0,r.pathRewrite=Object.keys(C).length>0?C:void 0,r)}t.$$.dirty&8&&e(0,r.plugins=d?[d]:void 0,r)},[r,a,f,d,u,n,c,p,m,g,b,k,w,y,E]}class tm extends Kt{constructor(l){super(),Gt(this,l,em,xh,Yt,{route:0,errors:1})}}function nd(t,l,e){const n=t.slice();return n[31]=l[e],n[32]=l,n[33]=e,n}function rd(t,l,e){const n=t.slice();return n[31]=l[e],n[34]=l,n[33]=e,n}function id(t,l,e){const n=t.slice();return n[31]=l[e],n[33]=e,n}function ad(t,l,e){const n=t.slice();return n[31]=l[e],n[36]=l,n[33]=e,n}function ud(t){let l,e,n,r,a=t[1]&&fd();return{c(){l=i("div"),e=i("span"),n=_(t[0]),r=h(),a&&a.c(),o(e,"class","label-text font-semibold"),o(l,"class","label")},m(f,u){q(f,l,u),s(l,e),s(e,n),s(l,r),a&&a.m(l,null)},p(f,u){u[0]&1&&v(n,f[0]),f[1]?a||(a=fd(),a.c(),a.m(l,null)):a&&(a.d(1),a=null)},d(f){f&&R(l),a&&a.d()}}}function fd(t){let l,e,n;return{c(){l=i("span"),e=_("Support dynamic expressions: "),n=i("code"),n.textContent="{{ expression }}",o(n,"class","text-xs"),o(l,"class","label-text-alt text-xs")},m(r,a){q(r,l,a),s(l,e),s(l,n)},d(r){r&&R(l)}}}function dd(t){let l,e,n,r,a,f,u,d,c,p;function m(){t[20].call(e,t[36],t[33])}function g(){t[21].call(a,t[36],t[33])}function b(){return t[22](t[33])}return{c(){l=i("div"),e=i("input"),r=h(),a=i("input"),u=h(),d=i("button"),d.textContent="\u2715",o(e,"type","text"),o(e,"placeholder",n=t[8]("headers.namePlaceholder")),o(e,"class","input input-bordered input-sm flex-1"),o(a,"type","text"),o(a,"placeholder",f=t[8]("headers.valuePlaceholder")),o(a,"class","input input-bordered input-sm flex-1"),o(d,"type","button"),o(d,"class","btn btn-sm btn-error btn-square"),o(l,"class","flex gap-2")},m(k,w){q(k,l,w),s(l,e),G(e,t[31].key),s(l,r),s(l,a),G(a,t[31].value),s(l,u),s(l,d),c||(p=[O(e,"input",m),O(a,"input",g),O(d,"click",b)],c=!0)},p(k,w){t=k,w[0]&256&&n!==(n=t[8]("headers.namePlaceholder"))&&o(e,"placeholder",n),w[0]&8&&e.value!==t[31].key&&G(e,t[31].key),w[0]&256&&f!==(f=t[8]("headers.valuePlaceholder"))&&o(a,"placeholder",f),w[0]&8&&a.value!==t[31].value&&G(a,t[31].value)},d(k){k&&R(l),c=!1,mt(p)}}}function lm(t){let l,e=t[8]("headers.empty")+"",n;return{c(){l=i("p"),n=_(e),o(l,"class","text-xs text-gray-500")},m(r,a){q(r,l,a),s(l,n)},p(r,a){a[0]&256&&e!==(e=r[8]("headers.empty")+"")&&v(n,e)},d(r){r&&R(l)}}}function sm(t){let l,e=ft(t[4]),n=[];for(let r=0;r<e.length;r+=1)n[r]=cd(id(t,e,r));return{c(){l=i("div");for(let r=0;r<n.length;r+=1)n[r].c();o(l,"class","flex flex-wrap gap-2 mt-2")},m(r,a){q(r,l,a);for(let f=0;f<n.length;f+=1)n[f]&&n[f].m(l,null)},p(r,a){if(a[0]&4112){e=ft(r[4]);let f;for(f=0;f<e.length;f+=1){const u=id(r,e,f);n[f]?n[f].p(u,a):(n[f]=cd(u),n[f].c(),n[f].m(l,null))}for(;f<n.length;f+=1)n[f].d(1);n.length=e.length}},d(r){r&&R(l),$t(n,r)}}}function cd(t){let l,e=t[31]+"",n,r,a,f,u,d;function c(){return t[24](t[33])}return{c(){l=i("div"),n=_(e),r=h(),a=i("button"),a.textContent="\u2715",f=h(),o(a,"type","button"),o(a,"class","btn btn-ghost btn-xs btn-circle"),o(l,"class","badge badge-lg gap-2")},m(p,m){q(p,l,m),s(l,n),s(l,r),s(l,a),s(l,f),u||(d=O(a,"click",c),u=!0)},p(p,m){t=p,m[0]&16&&e!==(e=t[31]+"")&&v(n,e)},d(p){p&&R(l),u=!1,d()}}}function pd(t){let l,e,n,r,a,f,u,d,c,p;function m(){t[25].call(e,t[34],t[33])}function g(){t[26].call(a,t[34],t[33])}function b(){return t[27](t[33])}return{c(){l=i("div"),e=i("input"),r=h(),a=i("input"),u=h(),d=i("button"),d.textContent="\u2715",o(e,"type","text"),o(e,"placeholder",n=t[8]("headers.namePlaceholder")),o(e,"class","input input-bordered input-sm flex-1"),o(a,"type","text"),o(a,"placeholder",f=t[8]("headers.valuePlaceholder")),o(a,"class","input input-bordered input-sm flex-1"),o(d,"type","button"),o(d,"class","btn btn-sm btn-error btn-square"),o(l,"class","flex gap-2")},m(k,w){q(k,l,w),s(l,e),G(e,t[31].key),s(l,r),s(l,a),G(a,t[31].value),s(l,u),s(l,d),c||(p=[O(e,"input",m),O(a,"input",g),O(d,"click",b)],c=!0)},p(k,w){t=k,w[0]&256&&n!==(n=t[8]("headers.namePlaceholder"))&&o(e,"placeholder",n),w[0]&32&&e.value!==t[31].key&&G(e,t[31].key),w[0]&256&&f!==(f=t[8]("headers.valuePlaceholder"))&&o(a,"placeholder",f),w[0]&32&&a.value!==t[31].value&&G(a,t[31].value)},d(k){k&&R(l),c=!1,mt(p)}}}function hd(t){let l,e,n,r,a,f,u,d,c,p;function m(){t[28].call(e,t[32],t[33])}function g(){t[29].call(a,t[32],t[33])}function b(){return t[30](t[33])}return{c(){l=i("div"),e=i("input"),r=h(),a=i("input"),u=h(),d=i("button"),d.textContent="\u2715",o(e,"type","text"),o(e,"placeholder",n=t[8]("headers.namePlaceholder")),o(e,"class","input input-bordered input-sm flex-1"),o(a,"type","text"),o(a,"placeholder",f=t[8]("headers.valuePlaceholder")),o(a,"class","input input-bordered input-sm flex-1"),o(d,"type","button"),o(d,"class","btn btn-sm btn-error btn-square"),o(l,"class","flex gap-2")},m(k,w){q(k,l,w),s(l,e),G(e,t[31].key),s(l,r),s(l,a),G(a,t[31].value),s(l,u),s(l,d),c||(p=[O(e,"input",m),O(a,"input",g),O(d,"click",b)],c=!0)},p(k,w){t=k,w[0]&256&&n!==(n=t[8]("headers.namePlaceholder"))&&o(e,"placeholder",n),w[0]&64&&e.value!==t[31].key&&G(e,t[31].key),w[0]&256&&f!==(f=t[8]("headers.valuePlaceholder"))&&o(a,"placeholder",f),w[0]&64&&a.value!==t[31].value&&G(a,t[31].value)},d(k){k&&R(l),c=!1,mt(p)}}}function om(t){let l,e,n,r,a,f,u,d=t[8]("headers.add")+"",c,p,m=t[3].length+"",g,b,k,w,y,E,C=t[8]("headers.add")+"",T,M,P,I,H,j,D=t[8]("headers.remove")+"",B,N,V=t[4].length+"",Z,Y,x,U,Q,S,L,F,z,J=t[8]("common.add")+"",se,oe,fe,pe,ne,de,re,A,le=t[8]("headers.replace")+"",$,ce,ae=t[5].length+"",Se,Fe,qe,he,je,Ie,Be=t[8]("headers.add")+"",ke,Ce,Re,He,ze,Ne,te=t[8]("headers.default")+"",ve,ue,ge=t[6].length+"",Ee,ye,We,Oe,et,Ke,we=t[8]("headers.add")+"",_e,Pe,Ze,Ae=t[2]&&ud(t),Ve=ft(t[3]),be=[];for(let W=0;W<Ve.length;W+=1)be[W]=dd(ad(t,Ve,W));function rt(W,De){return W[4].length>0?sm:lm}let dt=rt(t),Me=dt(t),Le=ft(t[5]),Te=[];for(let W=0;W<Le.length;W+=1)Te[W]=pd(rd(t,Le,W));let it=ft(t[6]),Je=[];for(let W=0;W<it.length;W+=1)Je[W]=hd(nd(t,it,W));return{c(){l=i("div"),Ae&&Ae.c(),e=h(),n=i("div"),r=i("div"),a=i("input"),f=h(),u=i("div"),c=_(d),p=_(" ("),g=_(m),b=_(")"),k=h(),w=i("div");for(let W=0;W<be.length;W+=1)be[W].c();y=h(),E=i("button"),T=_(C),M=h(),P=i("div"),I=i("input"),H=h(),j=i("div"),B=_(D),N=_(" ("),Z=_(V),Y=_(")"),x=h(),U=i("div"),Q=i("div"),S=i("input"),F=h(),z=i("button"),se=_(J),fe=h(),Me.c(),pe=h(),ne=i("div"),de=i("input"),re=h(),A=i("div"),$=_(le),ce=_(" ("),Se=_(ae),Fe=_(")"),qe=h(),he=i("div");for(let W=0;W<Te.length;W+=1)Te[W].c();je=h(),Ie=i("button"),ke=_(Be),Ce=h(),Re=i("div"),He=i("input"),ze=h(),Ne=i("div"),ve=_(te),ue=_(" ("),Ee=_(ge),ye=_(")"),We=h(),Oe=i("div");for(let W=0;W<Je.length;W+=1)Je[W].c();et=h(),Ke=i("button"),_e=_(we),o(a,"type","checkbox"),a.checked=!0,o(u,"class","collapse-title text-sm font-medium"),o(E,"type","button"),o(E,"class","btn btn-sm btn-ghost"),o(w,"class","collapse-content space-y-2"),o(r,"class","collapse collapse-arrow bg-base-200"),o(I,"type","checkbox"),o(j,"class","collapse-title text-sm font-medium"),o(S,"type","text"),o(S,"placeholder",L=t[8]("headers.namePlaceholder")),o(S,"class","input input-bordered input-sm flex-1"),o(z,"type","button"),o(z,"class","btn btn-sm btn-primary"),z.disabled=oe=!t[7].trim(),o(Q,"class","flex gap-2"),o(U,"class","collapse-content space-y-2"),o(P,"class","collapse collapse-arrow bg-base-200"),o(de,"type","checkbox"),o(A,"class","collapse-title text-sm font-medium"),o(Ie,"type","button"),o(Ie,"class","btn btn-sm btn-ghost"),o(he,"class","collapse-content space-y-2"),o(ne,"class","collapse collapse-arrow bg-base-200"),o(He,"type","checkbox"),o(Ne,"class","collapse-title text-sm font-medium"),o(Ke,"type","button"),o(Ke,"class","btn btn-sm btn-ghost"),o(Oe,"class","collapse-content space-y-2"),o(Re,"class","collapse collapse-arrow bg-base-200"),o(n,"class","space-y-4"),o(l,"class","form-control w-full")},m(W,De){q(W,l,De),Ae&&Ae.m(l,null),s(l,e),s(l,n),s(n,r),s(r,a),s(r,f),s(r,u),s(u,c),s(u,p),s(u,g),s(u,b),s(r,k),s(r,w);for(let ee=0;ee<be.length;ee+=1)be[ee]&&be[ee].m(w,null);s(w,y),s(w,E),s(E,T),s(n,M),s(n,P),s(P,I),s(P,H),s(P,j),s(j,B),s(j,N),s(j,Z),s(j,Y),s(P,x),s(P,U),s(U,Q),s(Q,S),G(S,t[7]),s(Q,F),s(Q,z),s(z,se),s(U,fe),Me.m(U,null),s(n,pe),s(n,ne),s(ne,de),s(ne,re),s(ne,A),s(A,$),s(A,ce),s(A,Se),s(A,Fe),s(ne,qe),s(ne,he);for(let ee=0;ee<Te.length;ee+=1)Te[ee]&&Te[ee].m(he,null);s(he,je),s(he,Ie),s(Ie,ke),s(n,Ce),s(n,Re),s(Re,He),s(Re,ze),s(Re,Ne),s(Ne,ve),s(Ne,ue),s(Ne,Ee),s(Ne,ye),s(Re,We),s(Re,Oe);for(let ee=0;ee<Je.length;ee+=1)Je[ee]&&Je[ee].m(Oe,null);s(Oe,et),s(Oe,Ke),s(Ke,_e),Pe||(Ze=[O(E,"click",t[9]),O(S,"input",t[23]),O(S,"keydown",t[13]),O(z,"click",t[11]),O(Ie,"click",t[14]),O(Ke,"click",t[16])],Pe=!0)},p(W,De){if(W[2]?Ae?Ae.p(W,De):(Ae=ud(W),Ae.c(),Ae.m(l,e)):Ae&&(Ae.d(1),Ae=null),De[0]&256&&d!==(d=W[8]("headers.add")+"")&&v(c,d),De[0]&8&&m!==(m=W[3].length+"")&&v(g,m),De[0]&1288){Ve=ft(W[3]);let ee;for(ee=0;ee<Ve.length;ee+=1){const nt=ad(W,Ve,ee);be[ee]?be[ee].p(nt,De):(be[ee]=dd(nt),be[ee].c(),be[ee].m(w,y))}for(;ee<be.length;ee+=1)be[ee].d(1);be.length=Ve.length}if(De[0]&256&&C!==(C=W[8]("headers.add")+"")&&v(T,C),De[0]&256&&D!==(D=W[8]("headers.remove")+"")&&v(B,D),De[0]&16&&V!==(V=W[4].length+"")&&v(Z,V),De[0]&256&&L!==(L=W[8]("headers.namePlaceholder"))&&o(S,"placeholder",L),De[0]&128&&S.value!==W[7]&&G(S,W[7]),De[0]&256&&J!==(J=W[8]("common.add")+"")&&v(se,J),De[0]&128&&oe!==(oe=!W[7].trim())&&(z.disabled=oe),dt===(dt=rt(W))&&Me?Me.p(W,De):(Me.d(1),Me=dt(W),Me&&(Me.c(),Me.m(U,null))),De[0]&256&&le!==(le=W[8]("headers.replace")+"")&&v($,le),De[0]&32&&ae!==(ae=W[5].length+"")&&v(Se,ae),De[0]&33056){Le=ft(W[5]);let ee;for(ee=0;ee<Le.length;ee+=1){const nt=rd(W,Le,ee);Te[ee]?Te[ee].p(nt,De):(Te[ee]=pd(nt),Te[ee].c(),Te[ee].m(he,je))}for(;ee<Te.length;ee+=1)Te[ee].d(1);Te.length=Le.length}if(De[0]&256&&Be!==(Be=W[8]("headers.add")+"")&&v(ke,Be),De[0]&256&&te!==(te=W[8]("headers.default")+"")&&v(ve,te),De[0]&64&&ge!==(ge=W[6].length+"")&&v(Ee,ge),De[0]&131392){it=ft(W[6]);let ee;for(ee=0;ee<it.length;ee+=1){const nt=nd(W,it,ee);Je[ee]?Je[ee].p(nt,De):(Je[ee]=hd(nt),Je[ee].c(),Je[ee].m(Oe,et))}for(;ee<Je.length;ee+=1)Je[ee].d(1);Je.length=it.length}De[0]&256&&we!==(we=W[8]("headers.add")+"")&&v(_e,we)},i:ot,o:ot,d(W){W&&R(l),Ae&&Ae.d(),$t(be,W),Me.d(),$t(Te,W),$t(Je,W),Pe=!1,mt(Ze)}}}function nm(t,l,e){let n;Nt(t,Dt,S=>e(8,n=S));let{value:r={}}=l,{label:a="Headers"}=l,{showHelp:f=!0}=l,{showLabel:u=!0}=l,d=[],c=[],p="",m=[],g=[],b=!1;function k(){e(3,d=[...d,{key:"",value:""}]),e(19,b=!0)}function w(S){e(3,d=d.filter((L,F)=>F!==S))}function y(){const S=p.trim();S&&!c.includes(S)&&(e(4,c=[...c,S]),e(7,p=""),e(19,b=!0))}function E(S){e(4,c=c.filter((L,F)=>F!==S))}function C(S){S.key==="Enter"&&(S.preventDefault(),y())}function T(){e(5,m=[...m,{key:"",value:""}]),e(19,b=!0)}function M(S){e(5,m=m.filter((L,F)=>F!==S))}function P(){e(6,g=[...g,{key:"",value:""}]),e(19,b=!0)}function I(S){e(6,g=g.filter((L,F)=>F!==S))}function H(S,L){S[L].key=this.value,e(3,d),e(19,b),e(18,r),e(4,c),e(5,m),e(6,g)}function j(S,L){S[L].value=this.value,e(3,d),e(19,b),e(18,r),e(4,c),e(5,m),e(6,g)}const D=S=>w(S);function B(){p=this.value,e(7,p)}const N=S=>E(S);function V(S,L){S[L].key=this.value,e(5,m),e(19,b),e(18,r),e(3,d),e(4,c),e(6,g)}function Z(S,L){S[L].value=this.value,e(5,m),e(19,b),e(18,r),e(3,d),e(4,c),e(6,g)}const Y=S=>M(S);function x(S,L){S[L].key=this.value,e(6,g),e(19,b),e(18,r),e(3,d),e(4,c),e(5,m)}function U(S,L){S[L].value=this.value,e(6,g),e(19,b),e(18,r),e(3,d),e(4,c),e(5,m)}const Q=S=>I(S);return t.$$set=S=>{"value"in S&&e(18,r=S.value),"label"in S&&e(0,a=S.label),"showHelp"in S&&e(1,f=S.showHelp),"showLabel"in S&&e(2,u=S.showLabel)},t.$$.update=()=>{if(t.$$.dirty[0]&786552){!b&&(r.add||r.remove||r.replace||r.default)&&(e(3,d=Object.entries(r.add||{}).map(([z,J])=>({key:z,value:String(J)}))),e(4,c=[...r.remove||[]]),e(5,m=Object.entries(r.replace||{}).map(([z,J])=>({key:z,value:String(J)}))),e(6,g=Object.entries(r.default||{}).map(([z,J])=>({key:z,value:String(J)}))),e(19,b=!0));const S={};d.filter(z=>z.key.trim()).forEach(z=>{S[z.key]=z.value}),e(18,r.add=Object.keys(S).length>0?S:void 0,r),e(18,r.remove=c.length>0?c:void 0,r);const L={};m.filter(z=>z.key.trim()).forEach(z=>{L[z.key]=z.value}),e(18,r.replace=Object.keys(L).length>0?L:void 0,r);const F={};g.filter(z=>z.key.trim()).forEach(z=>{F[z.key]=z.value}),e(18,r.default=Object.keys(F).length>0?F:void 0,r)}},[a,f,u,d,c,m,g,p,n,k,w,y,E,C,T,M,P,I,r,b,H,j,D,B,N,V,Z,Y,x,U,Q]}class h0 extends Kt{constructor(l){super(),Gt(this,l,nm,om,Yt,{value:18,label:0,showHelp:1,showLabel:2},null,[-1,-1])}}function md(t,l,e){const n=t.slice();return n[31]=l[e],n[32]=l,n[33]=e,n}function gd(t,l,e){const n=t.slice();return n[31]=l[e],n[34]=l,n[33]=e,n}function _d(t,l,e){const n=t.slice();return n[31]=l[e],n[33]=e,n}function bd(t,l,e){const n=t.slice();return n[31]=l[e],n[36]=l,n[33]=e,n}function vd(t){let l,e,n,r,a=t[1]&&kd();return{c(){l=i("div"),e=i("span"),n=_(t[0]),r=h(),a&&a.c(),o(e,"class","label-text font-semibold"),o(l,"class","label")},m(f,u){q(f,l,u),s(l,e),s(e,n),s(l,r),a&&a.m(l,null)},p(f,u){u[0]&1&&v(n,f[0]),f[1]?a||(a=kd(),a.c(),a.m(l,null)):a&&(a.d(1),a=null)},d(f){f&&R(l),a&&a.d()}}}function kd(t){let l;return{c(){l=i("span"),l.textContent="Support JSON values and dynamic expressions",o(l,"class","label-text-alt text-xs")},m(e,n){q(e,l,n)},d(e){e&&R(l)}}}function wd(t){let l,e,n,r,a,f,u,d,c,p;function m(){t[20].call(e,t[36],t[33])}function g(){t[21].call(a,t[36],t[33])}function b(){return t[22](t[33])}return{c(){l=i("div"),e=i("input"),r=h(),a=i("input"),u=h(),d=i("button"),d.textContent="\u2715",o(e,"type","text"),o(e,"placeholder",n=t[8]("headers.name")),o(e,"class","input input-bordered input-sm flex-1"),o(a,"type","text"),o(a,"placeholder",f=t[8]("headers.value")),o(a,"class","input input-bordered input-sm flex-[2]"),o(d,"type","button"),o(d,"class","btn btn-sm btn-error btn-square"),o(l,"class","flex gap-2")},m(k,w){q(k,l,w),s(l,e),G(e,t[31].key),s(l,r),s(l,a),G(a,t[31].value),s(l,u),s(l,d),c||(p=[O(e,"input",m),O(a,"input",g),O(d,"click",b)],c=!0)},p(k,w){t=k,w[0]&256&&n!==(n=t[8]("headers.name"))&&o(e,"placeholder",n),w[0]&8&&e.value!==t[31].key&&G(e,t[31].key),w[0]&256&&f!==(f=t[8]("headers.value"))&&o(a,"placeholder",f),w[0]&8&&a.value!==t[31].value&&G(a,t[31].value)},d(k){k&&R(l),c=!1,mt(p)}}}function rm(t){let l,e=t[8]("body.empty")+"",n;return{c(){l=i("p"),n=_(e),o(l,"class","text-xs text-gray-500")},m(r,a){q(r,l,a),s(l,n)},p(r,a){a[0]&256&&e!==(e=r[8]("body.empty")+"")&&v(n,e)},d(r){r&&R(l)}}}function im(t){let l,e=ft(t[4]),n=[];for(let r=0;r<e.length;r+=1)n[r]=yd(_d(t,e,r));return{c(){l=i("div");for(let r=0;r<n.length;r+=1)n[r].c();o(l,"class","flex flex-wrap gap-2 mt-2")},m(r,a){q(r,l,a);for(let f=0;f<n.length;f+=1)n[f]&&n[f].m(l,null)},p(r,a){if(a[0]&4112){e=ft(r[4]);let f;for(f=0;f<e.length;f+=1){const u=_d(r,e,f);n[f]?n[f].p(u,a):(n[f]=yd(u),n[f].c(),n[f].m(l,null))}for(;f<n.length;f+=1)n[f].d(1);n.length=e.length}},d(r){r&&R(l),$t(n,r)}}}function yd(t){let l,e=t[31]+"",n,r,a,f,u,d;function c(){return t[24](t[33])}return{c(){l=i("div"),n=_(e),r=h(),a=i("button"),a.textContent="\u2715",f=h(),o(a,"type","button"),o(a,"class","btn btn-ghost btn-xs btn-circle"),o(l,"class","badge badge-lg gap-2")},m(p,m){q(p,l,m),s(l,n),s(l,r),s(l,a),s(l,f),u||(d=O(a,"click",c),u=!0)},p(p,m){t=p,m[0]&16&&e!==(e=t[31]+"")&&v(n,e)},d(p){p&&R(l),u=!1,d()}}}function Cd(t){let l,e,n,r,a,f,u,d,c,p;function m(){t[25].call(e,t[34],t[33])}function g(){t[26].call(a,t[34],t[33])}function b(){return t[27](t[33])}return{c(){l=i("div"),e=i("input"),r=h(),a=i("input"),u=h(),d=i("button"),d.textContent="\u2715",o(e,"type","text"),o(e,"placeholder",n=t[8]("headers.name")),o(e,"class","input input-bordered input-sm flex-1"),o(a,"type","text"),o(a,"placeholder",f=t[8]("headers.value")),o(a,"class","input input-bordered input-sm flex-[2]"),o(d,"type","button"),o(d,"class","btn btn-sm btn-error btn-square"),o(l,"class","flex gap-2")},m(k,w){q(k,l,w),s(l,e),G(e,t[31].key),s(l,r),s(l,a),G(a,t[31].value),s(l,u),s(l,d),c||(p=[O(e,"input",m),O(a,"input",g),O(d,"click",b)],c=!0)},p(k,w){t=k,w[0]&256&&n!==(n=t[8]("headers.name"))&&o(e,"placeholder",n),w[0]&32&&e.value!==t[31].key&&G(e,t[31].key),w[0]&256&&f!==(f=t[8]("headers.value"))&&o(a,"placeholder",f),w[0]&32&&a.value!==t[31].value&&G(a,t[31].value)},d(k){k&&R(l),c=!1,mt(p)}}}function Ed(t){let l,e,n,r,a,f,u,d,c,p;function m(){t[28].call(e,t[32],t[33])}function g(){t[29].call(a,t[32],t[33])}function b(){return t[30](t[33])}return{c(){l=i("div"),e=i("input"),r=h(),a=i("input"),u=h(),d=i("button"),d.textContent="\u2715",o(e,"type","text"),o(e,"placeholder",n=t[8]("headers.name")),o(e,"class","input input-bordered input-sm flex-1"),o(a,"type","text"),o(a,"placeholder",f=t[8]("headers.value")),o(a,"class","input input-bordered input-sm flex-[2]"),o(d,"type","button"),o(d,"class","btn btn-sm btn-error btn-square"),o(l,"class","flex gap-2")},m(k,w){q(k,l,w),s(l,e),G(e,t[31].key),s(l,r),s(l,a),G(a,t[31].value),s(l,u),s(l,d),c||(p=[O(e,"input",m),O(a,"input",g),O(d,"click",b)],c=!0)},p(k,w){t=k,w[0]&256&&n!==(n=t[8]("headers.name"))&&o(e,"placeholder",n),w[0]&64&&e.value!==t[31].key&&G(e,t[31].key),w[0]&256&&f!==(f=t[8]("headers.value"))&&o(a,"placeholder",f),w[0]&64&&a.value!==t[31].value&&G(a,t[31].value)},d(k){k&&R(l),c=!1,mt(p)}}}function am(t){let l,e,n,r,a,f,u,d=t[8]("body.add")+"",c,p,m=t[3].length+"",g,b,k,w,y,E,C=t[8]("body.add")+"",T,M,P,I,H,j,D=t[8]("body.remove")+"",B,N,V=t[4].length+"",Z,Y,x,U,Q,S,L,F,z,J=t[8]("common.add")+"",se,oe,fe,pe,ne,de,re,A,le=t[8]("body.replace")+"",$,ce,ae=t[5].length+"",Se,Fe,qe,he,je,Ie,Be=t[8]("body.add")+"",ke,Ce,Re,He,ze,Ne,te=t[8]("body.default")+"",ve,ue,ge=t[6].length+"",Ee,ye,We,Oe,et,Ke,we=t[8]("body.add")+"",_e,Pe,Ze,Ae=t[2]&&vd(t),Ve=ft(t[3]),be=[];for(let W=0;W<Ve.length;W+=1)be[W]=wd(bd(t,Ve,W));function rt(W,De){return W[4].length>0?im:rm}let dt=rt(t),Me=dt(t),Le=ft(t[5]),Te=[];for(let W=0;W<Le.length;W+=1)Te[W]=Cd(gd(t,Le,W));let it=ft(t[6]),Je=[];for(let W=0;W<it.length;W+=1)Je[W]=Ed(md(t,it,W));return{c(){l=i("div"),Ae&&Ae.c(),e=h(),n=i("div"),r=i("div"),a=i("input"),f=h(),u=i("div"),c=_(d),p=_(" ("),g=_(m),b=_(")"),k=h(),w=i("div");for(let W=0;W<be.length;W+=1)be[W].c();y=h(),E=i("button"),T=_(C),M=h(),P=i("div"),I=i("input"),H=h(),j=i("div"),B=_(D),N=_(" ("),Z=_(V),Y=_(")"),x=h(),U=i("div"),Q=i("div"),S=i("input"),F=h(),z=i("button"),se=_(J),fe=h(),Me.c(),pe=h(),ne=i("div"),de=i("input"),re=h(),A=i("div"),$=_(le),ce=_(" ("),Se=_(ae),Fe=_(")"),qe=h(),he=i("div");for(let W=0;W<Te.length;W+=1)Te[W].c();je=h(),Ie=i("button"),ke=_(Be),Ce=h(),Re=i("div"),He=i("input"),ze=h(),Ne=i("div"),ve=_(te),ue=_(" ("),Ee=_(ge),ye=_(")"),We=h(),Oe=i("div");for(let W=0;W<Je.length;W+=1)Je[W].c();et=h(),Ke=i("button"),_e=_(we),o(a,"type","checkbox"),a.checked=!0,o(u,"class","collapse-title text-sm font-medium"),o(E,"type","button"),o(E,"class","btn btn-sm btn-ghost"),o(w,"class","collapse-content space-y-2"),o(r,"class","collapse collapse-arrow bg-base-200"),o(I,"type","checkbox"),o(j,"class","collapse-title text-sm font-medium"),o(S,"type","text"),o(S,"placeholder",L=t[8]("headers.name")),o(S,"class","input input-bordered input-sm flex-1"),o(z,"type","button"),o(z,"class","btn btn-sm btn-primary"),z.disabled=oe=!t[7].trim(),o(Q,"class","flex gap-2"),o(U,"class","collapse-content space-y-2"),o(P,"class","collapse collapse-arrow bg-base-200"),o(de,"type","checkbox"),o(A,"class","collapse-title text-sm font-medium"),o(Ie,"type","button"),o(Ie,"class","btn btn-sm btn-ghost"),o(he,"class","collapse-content space-y-2"),o(ne,"class","collapse collapse-arrow bg-base-200"),o(He,"type","checkbox"),o(Ne,"class","collapse-title text-sm font-medium"),o(Ke,"type","button"),o(Ke,"class","btn btn-sm btn-ghost"),o(Oe,"class","collapse-content space-y-2"),o(Re,"class","collapse collapse-arrow bg-base-200"),o(n,"class","space-y-4"),o(l,"class","form-control w-full")},m(W,De){q(W,l,De),Ae&&Ae.m(l,null),s(l,e),s(l,n),s(n,r),s(r,a),s(r,f),s(r,u),s(u,c),s(u,p),s(u,g),s(u,b),s(r,k),s(r,w);for(let ee=0;ee<be.length;ee+=1)be[ee]&&be[ee].m(w,null);s(w,y),s(w,E),s(E,T),s(n,M),s(n,P),s(P,I),s(P,H),s(P,j),s(j,B),s(j,N),s(j,Z),s(j,Y),s(P,x),s(P,U),s(U,Q),s(Q,S),G(S,t[7]),s(Q,F),s(Q,z),s(z,se),s(U,fe),Me.m(U,null),s(n,pe),s(n,ne),s(ne,de),s(ne,re),s(ne,A),s(A,$),s(A,ce),s(A,Se),s(A,Fe),s(ne,qe),s(ne,he);for(let ee=0;ee<Te.length;ee+=1)Te[ee]&&Te[ee].m(he,null);s(he,je),s(he,Ie),s(Ie,ke),s(n,Ce),s(n,Re),s(Re,He),s(Re,ze),s(Re,Ne),s(Ne,ve),s(Ne,ue),s(Ne,Ee),s(Ne,ye),s(Re,We),s(Re,Oe);for(let ee=0;ee<Je.length;ee+=1)Je[ee]&&Je[ee].m(Oe,null);s(Oe,et),s(Oe,Ke),s(Ke,_e),Pe||(Ze=[O(E,"click",t[9]),O(S,"input",t[23]),O(S,"keydown",t[13]),O(z,"click",t[11]),O(Ie,"click",t[14]),O(Ke,"click",t[16])],Pe=!0)},p(W,De){if(W[2]?Ae?Ae.p(W,De):(Ae=vd(W),Ae.c(),Ae.m(l,e)):Ae&&(Ae.d(1),Ae=null),De[0]&256&&d!==(d=W[8]("body.add")+"")&&v(c,d),De[0]&8&&m!==(m=W[3].length+"")&&v(g,m),De[0]&1288){Ve=ft(W[3]);let ee;for(ee=0;ee<Ve.length;ee+=1){const nt=bd(W,Ve,ee);be[ee]?be[ee].p(nt,De):(be[ee]=wd(nt),be[ee].c(),be[ee].m(w,y))}for(;ee<be.length;ee+=1)be[ee].d(1);be.length=Ve.length}if(De[0]&256&&C!==(C=W[8]("body.add")+"")&&v(T,C),De[0]&256&&D!==(D=W[8]("body.remove")+"")&&v(B,D),De[0]&16&&V!==(V=W[4].length+"")&&v(Z,V),De[0]&256&&L!==(L=W[8]("headers.name"))&&o(S,"placeholder",L),De[0]&128&&S.value!==W[7]&&G(S,W[7]),De[0]&256&&J!==(J=W[8]("common.add")+"")&&v(se,J),De[0]&128&&oe!==(oe=!W[7].trim())&&(z.disabled=oe),dt===(dt=rt(W))&&Me?Me.p(W,De):(Me.d(1),Me=dt(W),Me&&(Me.c(),Me.m(U,null))),De[0]&256&&le!==(le=W[8]("body.replace")+"")&&v($,le),De[0]&32&&ae!==(ae=W[5].length+"")&&v(Se,ae),De[0]&33056){Le=ft(W[5]);let ee;for(ee=0;ee<Le.length;ee+=1){const nt=gd(W,Le,ee);Te[ee]?Te[ee].p(nt,De):(Te[ee]=Cd(nt),Te[ee].c(),Te[ee].m(he,je))}for(;ee<Te.length;ee+=1)Te[ee].d(1);Te.length=Le.length}if(De[0]&256&&Be!==(Be=W[8]("body.add")+"")&&v(ke,Be),De[0]&256&&te!==(te=W[8]("body.default")+"")&&v(ve,te),De[0]&64&&ge!==(ge=W[6].length+"")&&v(Ee,ge),De[0]&131392){it=ft(W[6]);let ee;for(ee=0;ee<it.length;ee+=1){const nt=md(W,it,ee);Je[ee]?Je[ee].p(nt,De):(Je[ee]=Ed(nt),Je[ee].c(),Je[ee].m(Oe,et))}for(;ee<Je.length;ee+=1)Je[ee].d(1);Je.length=it.length}De[0]&256&&we!==(we=W[8]("body.add")+"")&&v(_e,we)},i:ot,o:ot,d(W){W&&R(l),Ae&&Ae.d(),$t(be,W),Me.d(),$t(Te,W),$t(Je,W),Pe=!1,mt(Ze)}}}function um(t,l,e){let n;Nt(t,Dt,S=>e(8,n=S));let{value:r={}}=l,{label:a="Body"}=l,{showHelp:f=!0}=l,{showLabel:u=!0}=l,d=[],c=[],p="",m=[],g=[],b=!1;function k(){e(3,d=[...d,{key:"",value:""}]),e(19,b=!0)}function w(S){e(3,d=d.filter((L,F)=>F!==S))}function y(){const S=p.trim();S&&!c.includes(S)&&(e(4,c=[...c,S]),e(7,p=""),e(19,b=!0))}function E(S){e(4,c=c.filter((L,F)=>F!==S))}function C(S){S.key==="Enter"&&(S.preventDefault(),y())}function T(){e(5,m=[...m,{key:"",value:""}]),e(19,b=!0)}function M(S){e(5,m=m.filter((L,F)=>F!==S))}function P(){e(6,g=[...g,{key:"",value:""}]),e(19,b=!0)}function I(S){e(6,g=g.filter((L,F)=>F!==S))}function H(S,L){S[L].key=this.value,e(3,d),e(19,b),e(18,r),e(4,c),e(5,m),e(6,g)}function j(S,L){S[L].value=this.value,e(3,d),e(19,b),e(18,r),e(4,c),e(5,m),e(6,g)}const D=S=>w(S);function B(){p=this.value,e(7,p)}const N=S=>E(S);function V(S,L){S[L].key=this.value,e(5,m),e(19,b),e(18,r),e(3,d),e(4,c),e(6,g)}function Z(S,L){S[L].value=this.value,e(5,m),e(19,b),e(18,r),e(3,d),e(4,c),e(6,g)}const Y=S=>M(S);function x(S,L){S[L].key=this.value,e(6,g),e(19,b),e(18,r),e(3,d),e(4,c),e(5,m)}function U(S,L){S[L].value=this.value,e(6,g),e(19,b),e(18,r),e(3,d),e(4,c),e(5,m)}const Q=S=>I(S);return t.$$set=S=>{"value"in S&&e(18,r=S.value),"label"in S&&e(0,a=S.label),"showHelp"in S&&e(1,f=S.showHelp),"showLabel"in S&&e(2,u=S.showLabel)},t.$$.update=()=>{if(t.$$.dirty[0]&786552){!b&&(r.add||r.remove||r.replace||r.default)&&(e(3,d=Object.entries(r.add||{}).map(([z,J])=>({key:z,value:typeof J=="string"?J:JSON.stringify(J)}))),e(4,c=[...r.remove||[]]),e(5,m=Object.entries(r.replace||{}).map(([z,J])=>({key:z,value:typeof J=="string"?J:JSON.stringify(J)}))),e(6,g=Object.entries(r.default||{}).map(([z,J])=>({key:z,value:typeof J=="string"?J:JSON.stringify(J)}))),e(19,b=!0));const S={};d.filter(z=>z.key.trim()).forEach(z=>{try{S[z.key]=JSON.parse(z.value)}catch{S[z.key]=z.value}}),e(18,r.add=Object.keys(S).length>0?S:void 0,r),e(18,r.remove=c.length>0?c:void 0,r);const L={};m.filter(z=>z.key.trim()).forEach(z=>{try{L[z.key]=JSON.parse(z.value)}catch{L[z.key]=z.value}}),e(18,r.replace=Object.keys(L).length>0?L:void 0,r);const F={};g.filter(z=>z.key.trim()).forEach(z=>{try{F[z.key]=JSON.parse(z.value)}catch{F[z.key]=z.value}}),e(18,r.default=Object.keys(F).length>0?F:void 0,r)}},[a,f,u,d,c,m,g,p,n,k,w,y,E,C,T,M,P,I,r,b,H,j,D,B,N,V,Z,Y,x,U,Q]}class m0 extends Kt{constructor(l){super(),Gt(this,l,um,am,Yt,{value:18,label:0,showHelp:1,showLabel:2},null,[-1,-1])}}function Td(t,l,e){const n=t.slice();return n[31]=l[e],n[32]=l,n[33]=e,n}function Sd(t,l,e){const n=t.slice();return n[31]=l[e],n[34]=l,n[33]=e,n}function Md(t,l,e){const n=t.slice();return n[31]=l[e],n[33]=e,n}function Rd(t,l,e){const n=t.slice();return n[31]=l[e],n[36]=l,n[33]=e,n}function qd(t){let l,e,n,r,a=t[1]&&Hd();return{c(){l=i("div"),e=i("span"),n=_(t[0]),r=h(),a&&a.c(),o(e,"class","label-text font-semibold"),o(l,"class","label")},m(f,u){q(f,l,u),s(l,e),s(e,n),s(l,r),a&&a.m(l,null)},p(f,u){u[0]&1&&v(n,f[0]),f[1]?a||(a=Hd(),a.c(),a.m(l,null)):a&&(a.d(1),a=null)},d(f){f&&R(l),a&&a.d()}}}function Hd(t){let l,e,n;return{c(){l=i("span"),e=_("Support dynamic expressions: "),n=i("code"),n.textContent="{{ expression }}",o(n,"class","text-xs"),o(l,"class","label-text-alt text-xs")},m(r,a){q(r,l,a),s(l,e),s(l,n)},d(r){r&&R(l)}}}function Pd(t){let l,e,n,r,a,f,u,d,c,p;function m(){t[20].call(e,t[36],t[33])}function g(){t[21].call(a,t[36],t[33])}function b(){return t[22](t[33])}return{c(){l=i("div"),e=i("input"),r=h(),a=i("input"),u=h(),d=i("button"),d.textContent="\u2715",o(e,"type","text"),o(e,"placeholder",n=t[8]("query.namePlaceholder")),o(e,"class","input input-bordered input-sm flex-1"),o(a,"type","text"),o(a,"placeholder",f=t[8]("query.valuePlaceholder")),o(a,"class","input input-bordered input-sm flex-1"),o(d,"type","button"),o(d,"class","btn btn-sm btn-error btn-square"),o(l,"class","flex gap-2")},m(k,w){q(k,l,w),s(l,e),G(e,t[31].key),s(l,r),s(l,a),G(a,t[31].value),s(l,u),s(l,d),c||(p=[O(e,"input",m),O(a,"input",g),O(d,"click",b)],c=!0)},p(k,w){t=k,w[0]&256&&n!==(n=t[8]("query.namePlaceholder"))&&o(e,"placeholder",n),w[0]&8&&e.value!==t[31].key&&G(e,t[31].key),w[0]&256&&f!==(f=t[8]("query.valuePlaceholder"))&&o(a,"placeholder",f),w[0]&8&&a.value!==t[31].value&&G(a,t[31].value)},d(k){k&&R(l),c=!1,mt(p)}}}function fm(t){let l,e=t[8]("query.empty")+"",n;return{c(){l=i("p"),n=_(e),o(l,"class","text-xs text-gray-500")},m(r,a){q(r,l,a),s(l,n)},p(r,a){a[0]&256&&e!==(e=r[8]("query.empty")+"")&&v(n,e)},d(r){r&&R(l)}}}function dm(t){let l,e=ft(t[4]),n=[];for(let r=0;r<e.length;r+=1)n[r]=Ld(Md(t,e,r));return{c(){l=i("div");for(let r=0;r<n.length;r+=1)n[r].c();o(l,"class","flex flex-wrap gap-2 mt-2")},m(r,a){q(r,l,a);for(let f=0;f<n.length;f+=1)n[f]&&n[f].m(l,null)},p(r,a){if(a[0]&4112){e=ft(r[4]);let f;for(f=0;f<e.length;f+=1){const u=Md(r,e,f);n[f]?n[f].p(u,a):(n[f]=Ld(u),n[f].c(),n[f].m(l,null))}for(;f<n.length;f+=1)n[f].d(1);n.length=e.length}},d(r){r&&R(l),$t(n,r)}}}function Ld(t){let l,e=t[31]+"",n,r,a,f,u,d;function c(){return t[24](t[33])}return{c(){l=i("div"),n=_(e),r=h(),a=i("button"),a.textContent="\u2715",f=h(),o(a,"type","button"),o(a,"class","btn btn-ghost btn-xs btn-circle"),o(l,"class","badge badge-lg gap-2")},m(p,m){q(p,l,m),s(l,n),s(l,r),s(l,a),s(l,f),u||(d=O(a,"click",c),u=!0)},p(p,m){t=p,m[0]&16&&e!==(e=t[31]+"")&&v(n,e)},d(p){p&&R(l),u=!1,d()}}}function jd(t){let l,e,n,r,a,f,u,d,c,p;function m(){t[25].call(e,t[34],t[33])}function g(){t[26].call(a,t[34],t[33])}function b(){return t[27](t[33])}return{c(){l=i("div"),e=i("input"),r=h(),a=i("input"),u=h(),d=i("button"),d.textContent="\u2715",o(e,"type","text"),o(e,"placeholder",n=t[8]("query.namePlaceholder")),o(e,"class","input input-bordered input-sm flex-1"),o(a,"type","text"),o(a,"placeholder",f=t[8]("query.valuePlaceholder")),o(a,"class","input input-bordered input-sm flex-1"),o(d,"type","button"),o(d,"class","btn btn-sm btn-error btn-square"),o(l,"class","flex gap-2")},m(k,w){q(k,l,w),s(l,e),G(e,t[31].key),s(l,r),s(l,a),G(a,t[31].value),s(l,u),s(l,d),c||(p=[O(e,"input",m),O(a,"input",g),O(d,"click",b)],c=!0)},p(k,w){t=k,w[0]&256&&n!==(n=t[8]("query.namePlaceholder"))&&o(e,"placeholder",n),w[0]&32&&e.value!==t[31].key&&G(e,t[31].key),w[0]&256&&f!==(f=t[8]("query.valuePlaceholder"))&&o(a,"placeholder",f),w[0]&32&&a.value!==t[31].value&&G(a,t[31].value)},d(k){k&&R(l),c=!1,mt(p)}}}function Dd(t){let l,e,n,r,a,f,u,d,c,p;function m(){t[28].call(e,t[32],t[33])}function g(){t[29].call(a,t[32],t[33])}function b(){return t[30](t[33])}return{c(){l=i("div"),e=i("input"),r=h(),a=i("input"),u=h(),d=i("button"),d.textContent="\u2715",o(e,"type","text"),o(e,"placeholder",n=t[8]("query.namePlaceholder")),o(e,"class","input input-bordered input-sm flex-1"),o(a,"type","text"),o(a,"placeholder",f=t[8]("query.valuePlaceholder")),o(a,"class","input input-bordered input-sm flex-1"),o(d,"type","button"),o(d,"class","btn btn-sm btn-error btn-square"),o(l,"class","flex gap-2")},m(k,w){q(k,l,w),s(l,e),G(e,t[31].key),s(l,r),s(l,a),G(a,t[31].value),s(l,u),s(l,d),c||(p=[O(e,"input",m),O(a,"input",g),O(d,"click",b)],c=!0)},p(k,w){t=k,w[0]&256&&n!==(n=t[8]("query.namePlaceholder"))&&o(e,"placeholder",n),w[0]&64&&e.value!==t[31].key&&G(e,t[31].key),w[0]&256&&f!==(f=t[8]("query.valuePlaceholder"))&&o(a,"placeholder",f),w[0]&64&&a.value!==t[31].value&&G(a,t[31].value)},d(k){k&&R(l),c=!1,mt(p)}}}function cm(t){let l,e,n,r,a,f,u,d=t[8]("query.add")+"",c,p,m=t[3].length+"",g,b,k,w,y,E,C=t[8]("query.add")+"",T,M,P,I,H,j,D=t[8]("query.remove")+"",B,N,V=t[4].length+"",Z,Y,x,U,Q,S,L,F,z,J=t[8]("common.add")+"",se,oe,fe,pe,ne,de,re,A,le=t[8]("query.replace")+"",$,ce,ae=t[5].length+"",Se,Fe,qe,he,je,Ie,Be=t[8]("query.add")+"",ke,Ce,Re,He,ze,Ne,te=t[8]("query.default")+"",ve,ue,ge=t[6].length+"",Ee,ye,We,Oe,et,Ke,we=t[8]("query.add")+"",_e,Pe,Ze,Ae=t[2]&&qd(t),Ve=ft(t[3]),be=[];for(let W=0;W<Ve.length;W+=1)be[W]=Pd(Rd(t,Ve,W));function rt(W,De){return W[4].length>0?dm:fm}let dt=rt(t),Me=dt(t),Le=ft(t[5]),Te=[];for(let W=0;W<Le.length;W+=1)Te[W]=jd(Sd(t,Le,W));let it=ft(t[6]),Je=[];for(let W=0;W<it.length;W+=1)Je[W]=Dd(Td(t,it,W));return{c(){l=i("div"),Ae&&Ae.c(),e=h(),n=i("div"),r=i("div"),a=i("input"),f=h(),u=i("div"),c=_(d),p=_(" ("),g=_(m),b=_(")"),k=h(),w=i("div");for(let W=0;W<be.length;W+=1)be[W].c();y=h(),E=i("button"),T=_(C),M=h(),P=i("div"),I=i("input"),H=h(),j=i("div"),B=_(D),N=_(" ("),Z=_(V),Y=_(")"),x=h(),U=i("div"),Q=i("div"),S=i("input"),F=h(),z=i("button"),se=_(J),fe=h(),Me.c(),pe=h(),ne=i("div"),de=i("input"),re=h(),A=i("div"),$=_(le),ce=_(" ("),Se=_(ae),Fe=_(")"),qe=h(),he=i("div");for(let W=0;W<Te.length;W+=1)Te[W].c();je=h(),Ie=i("button"),ke=_(Be),Ce=h(),Re=i("div"),He=i("input"),ze=h(),Ne=i("div"),ve=_(te),ue=_(" ("),Ee=_(ge),ye=_(")"),We=h(),Oe=i("div");for(let W=0;W<Je.length;W+=1)Je[W].c();et=h(),Ke=i("button"),_e=_(we),o(a,"type","checkbox"),a.checked=!0,o(u,"class","collapse-title text-sm font-medium"),o(E,"type","button"),o(E,"class","btn btn-sm btn-ghost"),o(w,"class","collapse-content space-y-2"),o(r,"class","collapse collapse-arrow bg-base-200"),o(I,"type","checkbox"),o(j,"class","collapse-title text-sm font-medium"),o(S,"type","text"),o(S,"placeholder",L=t[8]("query.namePlaceholder")),o(S,"class","input input-bordered input-sm flex-1"),o(z,"type","button"),o(z,"class","btn btn-sm btn-primary"),z.disabled=oe=!t[7].trim(),o(Q,"class","flex gap-2"),o(U,"class","collapse-content space-y-2"),o(P,"class","collapse collapse-arrow bg-base-200"),o(de,"type","checkbox"),o(A,"class","collapse-title text-sm font-medium"),o(Ie,"type","button"),o(Ie,"class","btn btn-sm btn-ghost"),o(he,"class","collapse-content space-y-2"),o(ne,"class","collapse collapse-arrow bg-base-200"),o(He,"type","checkbox"),o(Ne,"class","collapse-title text-sm font-medium"),o(Ke,"type","button"),o(Ke,"class","btn btn-sm btn-ghost"),o(Oe,"class","collapse-content space-y-2"),o(Re,"class","collapse collapse-arrow bg-base-200"),o(n,"class","space-y-4"),o(l,"class","form-control w-full")},m(W,De){q(W,l,De),Ae&&Ae.m(l,null),s(l,e),s(l,n),s(n,r),s(r,a),s(r,f),s(r,u),s(u,c),s(u,p),s(u,g),s(u,b),s(r,k),s(r,w);for(let ee=0;ee<be.length;ee+=1)be[ee]&&be[ee].m(w,null);s(w,y),s(w,E),s(E,T),s(n,M),s(n,P),s(P,I),s(P,H),s(P,j),s(j,B),s(j,N),s(j,Z),s(j,Y),s(P,x),s(P,U),s(U,Q),s(Q,S),G(S,t[7]),s(Q,F),s(Q,z),s(z,se),s(U,fe),Me.m(U,null),s(n,pe),s(n,ne),s(ne,de),s(ne,re),s(ne,A),s(A,$),s(A,ce),s(A,Se),s(A,Fe),s(ne,qe),s(ne,he);for(let ee=0;ee<Te.length;ee+=1)Te[ee]&&Te[ee].m(he,null);s(he,je),s(he,Ie),s(Ie,ke),s(n,Ce),s(n,Re),s(Re,He),s(Re,ze),s(Re,Ne),s(Ne,ve),s(Ne,ue),s(Ne,Ee),s(Ne,ye),s(Re,We),s(Re,Oe);for(let ee=0;ee<Je.length;ee+=1)Je[ee]&&Je[ee].m(Oe,null);s(Oe,et),s(Oe,Ke),s(Ke,_e),Pe||(Ze=[O(E,"click",t[9]),O(S,"input",t[23]),O(S,"keydown",t[13]),O(z,"click",t[11]),O(Ie,"click",t[14]),O(Ke,"click",t[16])],Pe=!0)},p(W,De){if(W[2]?Ae?Ae.p(W,De):(Ae=qd(W),Ae.c(),Ae.m(l,e)):Ae&&(Ae.d(1),Ae=null),De[0]&256&&d!==(d=W[8]("query.add")+"")&&v(c,d),De[0]&8&&m!==(m=W[3].length+"")&&v(g,m),De[0]&1288){Ve=ft(W[3]);let ee;for(ee=0;ee<Ve.length;ee+=1){const nt=Rd(W,Ve,ee);be[ee]?be[ee].p(nt,De):(be[ee]=Pd(nt),be[ee].c(),be[ee].m(w,y))}for(;ee<be.length;ee+=1)be[ee].d(1);be.length=Ve.length}if(De[0]&256&&C!==(C=W[8]("query.add")+"")&&v(T,C),De[0]&256&&D!==(D=W[8]("query.remove")+"")&&v(B,D),De[0]&16&&V!==(V=W[4].length+"")&&v(Z,V),De[0]&256&&L!==(L=W[8]("query.namePlaceholder"))&&o(S,"placeholder",L),De[0]&128&&S.value!==W[7]&&G(S,W[7]),De[0]&256&&J!==(J=W[8]("common.add")+"")&&v(se,J),De[0]&128&&oe!==(oe=!W[7].trim())&&(z.disabled=oe),dt===(dt=rt(W))&&Me?Me.p(W,De):(Me.d(1),Me=dt(W),Me&&(Me.c(),Me.m(U,null))),De[0]&256&&le!==(le=W[8]("query.replace")+"")&&v($,le),De[0]&32&&ae!==(ae=W[5].length+"")&&v(Se,ae),De[0]&33056){Le=ft(W[5]);let ee;for(ee=0;ee<Le.length;ee+=1){const nt=Sd(W,Le,ee);Te[ee]?Te[ee].p(nt,De):(Te[ee]=jd(nt),Te[ee].c(),Te[ee].m(he,je))}for(;ee<Te.length;ee+=1)Te[ee].d(1);Te.length=Le.length}if(De[0]&256&&Be!==(Be=W[8]("query.add")+"")&&v(ke,Be),De[0]&256&&te!==(te=W[8]("query.default")+"")&&v(ve,te),De[0]&64&&ge!==(ge=W[6].length+"")&&v(Ee,ge),De[0]&131392){it=ft(W[6]);let ee;for(ee=0;ee<it.length;ee+=1){const nt=Td(W,it,ee);Je[ee]?Je[ee].p(nt,De):(Je[ee]=Dd(nt),Je[ee].c(),Je[ee].m(Oe,et))}for(;ee<Je.length;ee+=1)Je[ee].d(1);Je.length=it.length}De[0]&256&&we!==(we=W[8]("query.add")+"")&&v(_e,we)},i:ot,o:ot,d(W){W&&R(l),Ae&&Ae.d(),$t(be,W),Me.d(),$t(Te,W),$t(Je,W),Pe=!1,mt(Ze)}}}function pm(t,l,e){let n;Nt(t,Dt,S=>e(8,n=S));let{value:r={}}=l,{label:a="Query Parameters"}=l,{showHelp:f=!0}=l,{showLabel:u=!0}=l,d=[],c=[],p="",m=[],g=[],b=!1;function k(){e(3,d=[...d,{key:"",value:""}]),e(19,b=!0)}function w(S){e(3,d=d.filter((L,F)=>F!==S))}function y(){const S=p.trim();S&&!c.includes(S)&&(e(4,c=[...c,S]),e(7,p=""),e(19,b=!0))}function E(S){e(4,c=c.filter((L,F)=>F!==S))}function C(S){S.key==="Enter"&&(S.preventDefault(),y())}function T(){e(5,m=[...m,{key:"",value:""}]),e(19,b=!0)}function M(S){e(5,m=m.filter((L,F)=>F!==S))}function P(){e(6,g=[...g,{key:"",value:""}]),e(19,b=!0)}function I(S){e(6,g=g.filter((L,F)=>F!==S))}function H(S,L){S[L].key=this.value,e(3,d),e(19,b),e(18,r),e(4,c),e(5,m),e(6,g)}function j(S,L){S[L].value=this.value,e(3,d),e(19,b),e(18,r),e(4,c),e(5,m),e(6,g)}const D=S=>w(S);function B(){p=this.value,e(7,p)}const N=S=>E(S);function V(S,L){S[L].key=this.value,e(5,m),e(19,b),e(18,r),e(3,d),e(4,c),e(6,g)}function Z(S,L){S[L].value=this.value,e(5,m),e(19,b),e(18,r),e(3,d),e(4,c),e(6,g)}const Y=S=>M(S);function x(S,L){S[L].key=this.value,e(6,g),e(19,b),e(18,r),e(3,d),e(4,c),e(5,m)}function U(S,L){S[L].value=this.value,e(6,g),e(19,b),e(18,r),e(3,d),e(4,c),e(5,m)}const Q=S=>I(S);return t.$$set=S=>{"value"in S&&e(18,r=S.value),"label"in S&&e(0,a=S.label),"showHelp"in S&&e(1,f=S.showHelp),"showLabel"in S&&e(2,u=S.showLabel)},t.$$.update=()=>{if(t.$$.dirty[0]&786552){!b&&(r.add||r.remove||r.replace||r.default)&&(e(3,d=Object.entries(r.add||{}).map(([z,J])=>({key:z,value:String(J)}))),e(4,c=[...r.remove||[]]),e(5,m=Object.entries(r.replace||{}).map(([z,J])=>({key:z,value:String(J)}))),e(6,g=Object.entries(r.default||{}).map(([z,J])=>({key:z,value:String(J)}))),e(19,b=!0));const S={};d.filter(z=>z.key.trim()).forEach(z=>{S[z.key]=z.value}),e(18,r.add=Object.keys(S).length>0?S:void 0,r),e(18,r.remove=c.length>0?c:void 0,r);const L={};m.filter(z=>z.key.trim()).forEach(z=>{L[z.key]=z.value}),e(18,r.replace=Object.keys(L).length>0?L:void 0,r);const F={};g.filter(z=>z.key.trim()).forEach(z=>{F[z.key]=z.value}),e(18,r.default=Object.keys(F).length>0?F:void 0,r)}},[a,f,u,d,c,m,g,p,n,k,w,y,E,C,T,M,P,I,r,b,H,j,D,B,N,V,Z,Y,x,U,Q]}class g0 extends Kt{constructor(l){super(),Gt(this,l,pm,cm,Yt,{value:18,label:0,showHelp:1,showLabel:2},null,[-1,-1])}}function Bd(t){let l,e,n=t[7]("upstream.title",{values:{index:t[1]+1}})+"",r,a,f,u,d,c,p,m,g,b,k,w,y;return{c(){l=i("div"),e=i("h3"),r=_(n),a=h(),f=i("div"),u=i("button"),d=ie("svg"),c=ie("path"),m=h(),g=i("button"),b=_("\u2715"),o(e,"class","font-semibold"),o(c,"stroke-linecap","round"),o(c,"stroke-linejoin","round"),o(c,"stroke-width","2"),o(c,"d","M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"),o(d,"xmlns","http://www.w3.org/2000/svg"),o(d,"class","h-4 w-4"),o(d,"fill","none"),o(d,"viewBox","0 0 24 24"),o(d,"stroke","currentColor"),o(u,"type","button"),o(u,"class","btn btn-sm btn-outline btn-square"),o(u,"title",p=t[7]("routeCard.duplicate")),o(g,"type","button"),o(g,"class","btn btn-sm btn-error btn-square"),o(g,"title",k=t[7]("upstream.remove")),o(f,"class","flex gap-2"),o(l,"class","flex justify-between items-center mb-4")},m(E,C){q(E,l,C),s(l,e),s(e,r),s(l,a),s(l,f),s(f,u),s(u,d),s(d,c),s(f,m),s(f,g),s(g,b),w||(y=[O(u,"click",function(){or(t[3])&&t[3].apply(this,arguments)}),O(g,"click",function(){or(t[2])&&t[2].apply(this,arguments)})],w=!0)},p(E,C){t=E,C&130&&n!==(n=t[7]("upstream.title",{values:{index:t[1]+1}})+"")&&v(r,n),C&128&&p!==(p=t[7]("routeCard.duplicate"))&&o(u,"title",p),C&128&&k!==(k=t[7]("upstream.remove"))&&o(g,"title",k)},d(E){E&&R(l),w=!1,mt(y)}}}function Id(t){let l,e,n=t[6].find(zd)?.message+"",r,a;return{c(){l=i("label"),e=i("span"),r=_(n),o(e,"class","label-text-alt text-error"),o(l,"class","label"),o(l,"for",a="upstream-target-"+t[1])},m(f,u){q(f,l,u),s(l,e),s(e,r)},p(f,u){u&64&&n!==(n=f[6].find(zd)?.message+"")&&v(r,n),u&2&&a!==(a="upstream-target-"+f[1])&&o(l,"for",a)},d(f){f&&R(l)}}}function hm(t){let l,e,n,r,a,f,u,d=t[7]("upstream.targetUrl")+"",c,p,m,g,b,k,w,y,E,C=t[6].some(Ad),T,M,P,I,H=t[7]("upstream.description")+"",j,D,B,N=t[7]("upstream.descriptionHelp")+"",V,Z,Y,x,U,Q,S,L,F,z,J,se,oe,fe=t[7]("upstream.disabled")+"",pe,ne,de,re=t[7]("upstream.disabledHelp")+"",A,le,$,ce,ae,Se,Fe=t[7]("upstream.weight")+"",qe,he,je,Ie=t[7]("upstream.weightHelp")+"",Be,ke,Ce,Re,He,ze,Ne,te,ve,ue,ge,Ee,ye,We,Oe,et,Ke,we,_e,Pe,Ze=t[7]("upstream.transformerHelp")+"",Ae,Ve,be,rt,dt,Me,Le=t[7]("headers.title")+"",Te,it,Je,W,De,ee,nt,Bt,Ge,gt,Xe=t[7]("body.title")+"",at,Et,vt,Ft,ut,_t,kt,ct,dl,st,Mt=t[7]("query.title")+"",pt,Tt,ll,jt,sl,yt,bl,Jt,Qt=t[4]&&Bd(t),Pt=C&&Id(t);function Zt(Ye){t[13](Ye)}let El={label:t[7]("upstream.transformer")};t[5]!==void 0&&(El.plugin=t[5]),Ke=new p0({props:El}),Ll.push(()=>jl(Ke,"plugin",Zt));function Bl(Ye){t[14](Ye)}let al={label:t[7]("headers.title"),showHelp:!1,showLabel:!1};t[0].headers!==void 0&&(al.value=t[0].headers),W=new h0({props:al}),Ll.push(()=>jl(W,"value",Bl));function ol(Ye){t[15](Ye)}let Ol={label:t[7]("body.title"),showHelp:!1,showLabel:!1};t[0].body!==void 0&&(Ol.value=t[0].body),Ft=new m0({props:Ol}),Ll.push(()=>jl(Ft,"value",ol));function Ut(Ye){t[16](Ye)}let Tl={label:t[7]("query.title"),showHelp:!1,showLabel:!1};return t[0].query!==void 0&&(Tl.value=t[0].query),jt=new g0({props:Tl}),Ll.push(()=>jl(jt,"value",Ut)),{c(){l=i("div"),e=i("div"),Qt&&Qt.c(),n=h(),r=i("div"),a=i("div"),f=i("label"),u=i("span"),c=_(d),p=h(),m=i("span"),m.textContent="*",b=h(),k=i("input"),E=h(),Pt&&Pt.c(),T=h(),M=i("div"),P=i("label"),I=i("span"),j=_(H),D=h(),B=i("span"),V=_(N),Y=h(),x=i("input"),S=h(),L=i("div"),F=i("label"),z=i("input"),J=h(),se=i("div"),oe=i("span"),pe=_(fe),ne=h(),de=i("span"),A=_(re),le=h(),$=i("div"),ce=i("div"),ae=i("label"),Se=i("span"),qe=_(Fe),he=h(),je=i("span"),Be=_(Ie),Ce=h(),Re=i("input"),ze=h(),Ne=i("div"),te=i("label"),ve=i("span"),ve.textContent="Priority",ue=h(),ge=i("span"),ge.textContent="Failover order",ye=h(),We=i("input"),et=h(),Ht(Ke.$$.fragment),_e=h(),Pe=i("div"),Ae=_(Ze),Ve=h(),be=i("div"),rt=i("input"),dt=h(),Me=i("div"),Te=_(Le),it=h(),Je=i("div"),Ht(W.$$.fragment),ee=h(),nt=i("div"),Bt=i("input"),Ge=h(),gt=i("div"),at=_(Xe),Et=h(),vt=i("div"),Ht(Ft.$$.fragment),_t=h(),kt=i("div"),ct=i("input"),dl=h(),st=i("div"),pt=_(Mt),Tt=h(),ll=i("div"),Ht(jt.$$.fragment),o(m,"class","text-error"),o(u,"class","label-text font-semibold"),o(f,"class","label"),o(f,"for",g="upstream-target-"+t[1]),o(k,"id",w="upstream-target-"+t[1]),o(k,"type","url"),o(k,"placeholder",y=t[7]("upstream.targetPlaceholder")),o(k,"class","input input-bordered"),k.required=!0,X(k,"input-error",t[6].some(Fd)),o(a,"class","form-control"),o(I,"class","label-text"),o(B,"class","label-text-alt text-xs"),o(P,"class","label"),o(P,"for",Z="upstream-description-"+t[1]),o(x,"id",U="upstream-description-"+t[1]),o(x,"type","text"),o(x,"placeholder",Q=t[7]("upstream.descriptionPlaceholder")),o(x,"class","input input-bordered"),o(M,"class","form-control"),o(z,"type","checkbox"),o(z,"class","checkbox checkbox-primary"),o(oe,"class","label-text font-medium"),o(de,"class","label-text-alt text-gray-500"),o(se,"class","flex flex-col"),o(F,"class","label cursor-pointer justify-start gap-3"),o(L,"class","form-control"),o(Se,"class","label-text"),o(je,"class","label-text-alt text-xs"),o(ae,"class","label"),o(ae,"for",ke="upstream-weight-"+t[1]),o(Re,"id",He="upstream-weight-"+t[1]),o(Re,"type","number"),o(Re,"placeholder","100"),o(Re,"class","input input-bordered"),o(Re,"min","1"),o(ce,"class","form-control"),o(ve,"class","label-text"),o(ge,"class","label-text-alt text-xs"),o(te,"class","label"),o(te,"for",Ee="upstream-priority-"+t[1]),o(We,"id",Oe="upstream-priority-"+t[1]),o(We,"type","number"),o(We,"placeholder","1"),o(We,"class","input input-bordered"),o(We,"min","0"),o(Ne,"class","form-control"),o($,"class","grid grid-cols-2 gap-4"),o(Pe,"class","divider text-sm font-semibold"),o(rt,"type","checkbox"),o(Me,"class","collapse-title text-sm font-medium"),o(Je,"class","collapse-content"),o(be,"class","collapse collapse-arrow bg-base-200"),o(Bt,"type","checkbox"),o(gt,"class","collapse-title text-sm font-medium"),o(vt,"class","collapse-content"),o(nt,"class","collapse collapse-arrow bg-base-200"),o(ct,"type","checkbox"),o(st,"class","collapse-title text-sm font-medium"),o(ll,"class","collapse-content"),o(kt,"class","collapse collapse-arrow bg-base-200"),o(r,"class","grid grid-cols-1 gap-4"),o(e,"class","card-body p-4"),o(l,"class","card bg-base-100 shadow-sm border border-base-300")},m(Ye,bt){q(Ye,l,bt),s(l,e),Qt&&Qt.m(e,null),s(e,n),s(e,r),s(r,a),s(a,f),s(f,u),s(u,c),s(u,p),s(u,m),s(a,b),s(a,k),G(k,t[0].target),s(a,E),Pt&&Pt.m(a,null),s(r,T),s(r,M),s(M,P),s(P,I),s(I,j),s(P,D),s(P,B),s(B,V),s(M,Y),s(M,x),G(x,t[0].description),s(r,S),s(r,L),s(L,F),s(F,z),z.checked=t[0].disabled,s(F,J),s(F,se),s(se,oe),s(oe,pe),s(se,ne),s(se,de),s(de,A),s(r,le),s(r,$),s($,ce),s(ce,ae),s(ae,Se),s(Se,qe),s(ae,he),s(ae,je),s(je,Be),s(ce,Ce),s(ce,Re),G(Re,t[0].weight),s($,ze),s($,Ne),s(Ne,te),s(te,ve),s(te,ue),s(te,ge),s(Ne,ye),s(Ne,We),G(We,t[0].priority),s(r,et),qt(Ke,r,null),s(r,_e),s(r,Pe),s(Pe,Ae),s(r,Ve),s(r,be),s(be,rt),s(be,dt),s(be,Me),s(Me,Te),s(be,it),s(be,Je),qt(W,Je,null),s(r,ee),s(r,nt),s(nt,Bt),s(nt,Ge),s(nt,gt),s(gt,at),s(nt,Et),s(nt,vt),qt(Ft,vt,null),s(r,_t),s(r,kt),s(kt,ct),s(kt,dl),s(kt,st),s(st,pt),s(kt,Tt),s(kt,ll),qt(jt,ll,null),yt=!0,bl||(Jt=[O(k,"input",t[8]),O(x,"input",t[9]),O(z,"change",t[10]),O(Re,"input",t[11]),O(We,"input",t[12])],bl=!0)},p(Ye,[bt]){Ye[4]?Qt?Qt.p(Ye,bt):(Qt=Bd(Ye),Qt.c(),Qt.m(e,n)):Qt&&(Qt.d(1),Qt=null),(!yt||bt&128)&&d!==(d=Ye[7]("upstream.targetUrl")+"")&&v(c,d),(!yt||bt&2&&g!==(g="upstream-target-"+Ye[1]))&&o(f,"for",g),(!yt||bt&2&&w!==(w="upstream-target-"+Ye[1]))&&o(k,"id",w),(!yt||bt&128&&y!==(y=Ye[7]("upstream.targetPlaceholder")))&&o(k,"placeholder",y),bt&1&&k.value!==Ye[0].target&&G(k,Ye[0].target),(!yt||bt&64)&&X(k,"input-error",Ye[6].some(Fd)),bt&64&&(C=Ye[6].some(Ad)),C?Pt?Pt.p(Ye,bt):(Pt=Id(Ye),Pt.c(),Pt.m(a,null)):Pt&&(Pt.d(1),Pt=null),(!yt||bt&128)&&H!==(H=Ye[7]("upstream.description")+"")&&v(j,H),(!yt||bt&128)&&N!==(N=Ye[7]("upstream.descriptionHelp")+"")&&v(V,N),(!yt||bt&2&&Z!==(Z="upstream-description-"+Ye[1]))&&o(P,"for",Z),(!yt||bt&2&&U!==(U="upstream-description-"+Ye[1]))&&o(x,"id",U),(!yt||bt&128&&Q!==(Q=Ye[7]("upstream.descriptionPlaceholder")))&&o(x,"placeholder",Q),bt&1&&x.value!==Ye[0].description&&G(x,Ye[0].description),bt&1&&(z.checked=Ye[0].disabled),(!yt||bt&128)&&fe!==(fe=Ye[7]("upstream.disabled")+"")&&v(pe,fe),(!yt||bt&128)&&re!==(re=Ye[7]("upstream.disabledHelp")+"")&&v(A,re),(!yt||bt&128)&&Fe!==(Fe=Ye[7]("upstream.weight")+"")&&v(qe,Fe),(!yt||bt&128)&&Ie!==(Ie=Ye[7]("upstream.weightHelp")+"")&&v(Be,Ie),(!yt||bt&2&&ke!==(ke="upstream-weight-"+Ye[1]))&&o(ae,"for",ke),(!yt||bt&2&&He!==(He="upstream-weight-"+Ye[1]))&&o(Re,"id",He),bt&1&&Ct(Re.value)!==Ye[0].weight&&G(Re,Ye[0].weight),(!yt||bt&2&&Ee!==(Ee="upstream-priority-"+Ye[1]))&&o(te,"for",Ee),(!yt||bt&2&&Oe!==(Oe="upstream-priority-"+Ye[1]))&&o(We,"id",Oe),bt&1&&Ct(We.value)!==Ye[0].priority&&G(We,Ye[0].priority);const cl={};bt&128&&(cl.label=Ye[7]("upstream.transformer")),!we&&bt&32&&(we=!0,cl.plugin=Ye[5],Dl(()=>we=!1)),Ke.$set(cl),(!yt||bt&128)&&Ze!==(Ze=Ye[7]("upstream.transformerHelp")+"")&&v(Ae,Ze),(!yt||bt&128)&&Le!==(Le=Ye[7]("headers.title")+"")&&v(Te,Le);const Ot={};bt&128&&(Ot.label=Ye[7]("headers.title")),!De&&bt&1&&(De=!0,Ot.value=Ye[0].headers,Dl(()=>De=!1)),W.$set(Ot),(!yt||bt&128)&&Xe!==(Xe=Ye[7]("body.title")+"")&&v(at,Xe);const Il={};bt&128&&(Il.label=Ye[7]("body.title")),!ut&&bt&1&&(ut=!0,Il.value=Ye[0].body,Dl(()=>ut=!1)),Ft.$set(Il),(!yt||bt&128)&&Mt!==(Mt=Ye[7]("query.title")+"")&&v(pt,Mt);const Lt={};bt&128&&(Lt.label=Ye[7]("query.title")),!sl&&bt&1&&(sl=!0,Lt.value=Ye[0].query,Dl(()=>sl=!1)),jt.$set(Lt)},i(Ye){yt||($e(Ke.$$.fragment,Ye),$e(W.$$.fragment,Ye),$e(Ft.$$.fragment,Ye),$e(jt.$$.fragment,Ye),yt=!0)},o(Ye){lt(Ke.$$.fragment,Ye),lt(W.$$.fragment,Ye),lt(Ft.$$.fragment,Ye),lt(jt.$$.fragment,Ye),yt=!1},d(Ye){Ye&&R(l),Qt&&Qt.d(),Pt&&Pt.d(),Rt(Ke),Rt(W),Rt(Ft),Rt(jt),bl=!1,mt(Jt)}}}const Ad=t=>t.field.includes("target"),Fd=t=>t.field.includes("target"),zd=t=>t.field.includes("target");function mm(t,l,e){let n,r;Nt(t,Dt,M=>e(7,r=M));let{upstream:a}=l,{index:f}=l,{onRemove:u}=l,{onDuplicate:d}=l,{showHeader:c=!0}=l,p=a.plugins?.[0]||null;function m(){a.target=this.value,e(0,a),e(5,p)}function g(){a.description=this.value,e(0,a),e(5,p)}function b(){a.disabled=this.checked,e(0,a),e(5,p)}function k(){a.weight=Ct(this.value),e(0,a),e(5,p)}function w(){a.priority=Ct(this.value),e(0,a),e(5,p)}function y(M){p=M,e(5,p)}function E(M){t.$$.not_equal(a.headers,M)&&(a.headers=M,e(0,a),e(5,p))}function C(M){t.$$.not_equal(a.body,M)&&(a.body=M,e(0,a),e(5,p))}function T(M){t.$$.not_equal(a.query,M)&&(a.query=M,e(0,a),e(5,p))}return t.$$set=M=>{"upstream"in M&&e(0,a=M.upstream),"index"in M&&e(1,f=M.index),"onRemove"in M&&e(2,u=M.onRemove),"onDuplicate"in M&&e(3,d=M.onDuplicate),"showHeader"in M&&e(4,c=M.showHeader)},t.$$.update=()=>{t.$$.dirty&1&&(e(0,a.headers=a.headers||{add:{},remove:[],default:{}},a),e(0,a.body=a.body||{add:{},remove:[],replace:{},default:{}},a),e(0,a.query=a.query||{add:{},remove:[],replace:{},default:{}},a)),t.$$.dirty&32&&e(0,a.plugins=p?[p]:void 0,a),t.$$.dirty&3&&e(6,n=Qn(a,f))},[a,f,u,d,c,p,n,r,m,g,b,k,w,y,E,C,T]}class gm extends Kt{constructor(l){super(),Gt(this,l,mm,hm,Yt,{upstream:0,index:1,onRemove:2,onDuplicate:3,showHeader:4})}}function Od(t,l,e){const n=t.slice();return n[43]=l[e].u,n[44]=l[e].i,n[45]=l,n[46]=e,n}function Nd(t){let l,e,n=t[0].find(Zd)?.message+"",r;return{c(){l=i("div"),e=i("span"),r=_(n),o(l,"class","alert alert-error")},m(a,f){q(a,l,f),s(l,e),s(e,r)},p(a,f){f[0]&1&&n!==(n=a[0].find(Zd)?.message+"")&&v(r,n)},d(a){a&&R(l)}}}function _m(t){let l,e=(t[43].priority||1)+"",n,r,a;function f(){return t[27](t[44])}function u(...d){return t[28](t[44],...d)}return{c(){l=i("span"),n=_(e),o(l,"class","cursor-pointer hover:bg-base-200 px-2 py-1 rounded"),o(l,"role","button"),o(l,"tabindex","0")},m(d,c){q(d,l,c),s(l,n),r||(a=[O(l,"click",f),O(l,"keydown",u)],r=!0)},p(d,c){t=d,c[0]&1024&&e!==(e=(t[43].priority||1)+"")&&v(n,e)},d(d){d&&R(l),r=!1,mt(a)}}}function bm(t){let l,e,n,r,a;function f(){t[26].call(e,t[45],t[46])}let u=t[8].length>0&&Ud(t);return{c(){l=i("div"),e=i("input"),n=h(),u&&u.c(),o(e,"type","number"),o(e,"class","input input-sm input-bordered w-16"),X(e,"input-error",t[8].length>0),o(l,"class","flex items-center gap-1")},m(d,c){q(d,l,c),s(l,e),G(e,t[43].priority),s(l,n),u&&u.m(l,null),r||(a=[O(e,"input",f),O(e,"blur",t[19]),O(e,"keydown",t[20])],r=!0)},p(d,c){t=d,c[0]&1024&&Ct(e.value)!==t[43].priority&&G(e,t[43].priority),c[0]&256&&X(e,"input-error",t[8].length>0),t[8].length>0?u?u.p(t,c):(u=Ud(t),u.c(),u.m(l,null)):u&&(u.d(1),u=null)},d(d){d&&R(l),u&&u.d(),r=!1,mt(a)}}}function Ud(t){let l,e,n,r;return{c(){l=i("div"),e=ie("svg"),n=ie("path"),o(n,"fill-rule","evenodd"),o(n,"d","M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7 4a1 1 0 11-2 0 1 1 0 012 0zm-1-9a1 1 0 00-1 1v4a1 1 0 102 0V6a1 1 0 00-1-1z"),o(n,"clip-rule","evenodd"),o(e,"xmlns","http://www.w3.org/2000/svg"),o(e,"class","h-5 w-5 text-error"),o(e,"viewBox","0 0 20 20"),o(e,"fill","currentColor"),o(l,"class","tooltip tooltip-error"),o(l,"data-tip",r=t[8][0].message)},m(a,f){q(a,l,f),s(l,e),s(e,n)},p(a,f){f[0]&256&&r!==(r=a[8][0].message)&&o(l,"data-tip",r)},d(a){a&&R(l)}}}function vm(t){let l,e=(t[43].weight||100)+"",n,r,a;function f(){return t[30](t[44])}function u(...d){return t[31](t[44],...d)}return{c(){l=i("span"),n=_(e),o(l,"class","cursor-pointer hover:bg-base-200 px-2 py-1 rounded"),o(l,"role","button"),o(l,"tabindex","0")},m(d,c){q(d,l,c),s(l,n),r||(a=[O(l,"click",f),O(l,"keydown",u)],r=!0)},p(d,c){t=d,c[0]&1024&&e!==(e=(t[43].weight||100)+"")&&v(n,e)},d(d){d&&R(l),r=!1,mt(a)}}}function km(t){let l,e,n,r,a;function f(){t[29].call(e,t[45],t[46])}let u=t[8].length>0&&Vd(t);return{c(){l=i("div"),e=i("input"),n=h(),u&&u.c(),o(e,"type","number"),o(e,"class","input input-sm input-bordered w-16"),X(e,"input-error",t[8].length>0),o(l,"class","flex items-center gap-1")},m(d,c){q(d,l,c),s(l,e),G(e,t[43].weight),s(l,n),u&&u.m(l,null),r||(a=[O(e,"input",f),O(e,"blur",t[19]),O(e,"keydown",t[20])],r=!0)},p(d,c){t=d,c[0]&1024&&Ct(e.value)!==t[43].weight&&G(e,t[43].weight),c[0]&256&&X(e,"input-error",t[8].length>0),t[8].length>0?u?u.p(t,c):(u=Vd(t),u.c(),u.m(l,null)):u&&(u.d(1),u=null)},d(d){d&&R(l),u&&u.d(),r=!1,mt(a)}}}function Vd(t){let l,e,n,r;return{c(){l=i("div"),e=ie("svg"),n=ie("path"),o(n,"fill-rule","evenodd"),o(n,"d","M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7 4a1 1 0 11-2 0 1 1 0 012 0zm-1-9a1 1 0 00-1 1v4a1 1 0 102 0V6a1 1 0 00-1-1z"),o(n,"clip-rule","evenodd"),o(e,"xmlns","http://www.w3.org/2000/svg"),o(e,"class","h-5 w-5 text-error"),o(e,"viewBox","0 0 20 20"),o(e,"fill","currentColor"),o(l,"class","tooltip tooltip-error"),o(l,"data-tip",r=t[8][0].message)},m(a,f){q(a,l,f),s(l,e),s(e,n)},p(a,f){f[0]&256&&r!==(r=a[8][0].message)&&o(l,"data-tip",r)},d(a){a&&R(l)}}}function Jd(t){let l;return{c(){l=i("span"),l.textContent="Transformer",o(l,"class","badge badge-sm badge-info mt-1")},m(e,n){q(e,l,n)},d(e){e&&R(l)}}}function wm(t){let l,e,n;function r(){return t[35](t[44])}function a(...f){return t[36](t[44],...f)}return{c(){l=i("span"),l.textContent="-",o(l,"class","text-sm text-gray-400 cursor-pointer hover:bg-base-200 px-2 py-1 rounded"),o(l,"role","button"),o(l,"tabindex","0")},m(f,u){q(f,l,u),e||(n=[O(l,"click",r),O(l,"keydown",a)],e=!0)},p(f,u){t=f},d(f){f&&R(l),e=!1,mt(n)}}}function ym(t){let l,e=t[43].description+"",n,r,a,f;function u(){return t[33](t[44])}function d(...c){return t[34](t[44],...c)}return{c(){l=i("span"),n=_(e),o(l,"class","text-sm text-gray-600 truncate block cursor-pointer hover:bg-base-200 px-2 py-1 rounded"),o(l,"title",r=t[43].description),o(l,"role","button"),o(l,"tabindex","0")},m(c,p){q(c,l,p),s(l,n),a||(f=[O(l,"click",u),O(l,"keydown",d)],a=!0)},p(c,p){t=c,p[0]&1024&&e!==(e=t[43].description+"")&&v(n,e),p[0]&1024&&r!==(r=t[43].description)&&o(l,"title",r)},d(c){c&&R(l),a=!1,mt(f)}}}function Cm(t){let l,e,n,r,a;function f(){t[32].call(e,t[45],t[46])}return{c(){l=i("div"),e=i("input"),o(e,"type","text"),o(e,"class","input input-sm input-bordered w-full"),o(e,"placeholder",n=t[11]("upstream.descriptionPlaceholder")),o(l,"class","flex items-center gap-1")},m(u,d){q(u,l,d),s(l,e),G(e,t[43].description),r||(a=[O(e,"input",f),O(e,"blur",t[19]),O(e,"keydown",t[20])],r=!0)},p(u,d){t=u,d[0]&2048&&n!==(n=t[11]("upstream.descriptionPlaceholder"))&&o(e,"placeholder",n),d[0]&1024&&e.value!==t[43].description&&G(e,t[43].description)},d(u){u&&R(l),r=!1,mt(a)}}}function Wd(t,l){let e,n,r,a,f,u,d,c,p,m,g,b,k,w=l[43].target+"",y,E,C,T,M,P,I,H,j,D,B,N,V,Z,Y,x,U,Q,S,L,F,z,J,se;function oe(){return l[25](l[44])}function fe(he,je){return he[6]===he[44]&&he[7]==="priority"?bm:_m}let pe=fe(l),ne=pe(l);function de(he,je){return he[6]===he[44]&&he[7]==="weight"?km:vm}let re=de(l),A=re(l),le=l[43].plugins&&l[43].plugins.length>0&&Jd();function $(he,je){return he[6]===he[44]&&he[7]==="description"?Cm:he[43].description?ym:wm}let ce=$(l),ae=ce(l);function Se(){return l[37](l[44])}function Fe(){return l[38](l[44])}function qe(){return l[39](l[44])}return{key:t,first:null,c(){e=i("tr"),n=i("td"),r=i("input"),u=h(),d=i("td"),ne.c(),c=h(),p=i("td"),A.c(),m=h(),g=i("td"),b=i("div"),k=i("div"),y=_(w),C=h(),le&&le.c(),T=h(),M=i("td"),ae.c(),P=h(),I=i("td"),H=i("div"),j=i("button"),D=ie("svg"),B=ie("path"),V=h(),Z=i("button"),Y=ie("svg"),x=ie("path"),Q=h(),S=i("button"),L=ie("svg"),F=ie("path"),o(r,"type","checkbox"),o(r,"class","checkbox checkbox-sm checkbox-success"),r.checked=a=!l[43].disabled,o(r,"title",f=l[43].disabled?l[11]("upstream.enableTooltip"):l[11]("upstream.disableTooltip")),o(n,"class","text-center"),o(k,"class","font-bold truncate max-w-xs"),o(k,"title",E=l[43].target),o(b,"class","flex flex-col"),o(B,"stroke-linecap","round"),o(B,"stroke-linejoin","round"),o(B,"stroke-width","2"),o(B,"d","M15.232 5.232l3.536 3.536m-2.036-5.036a2.5 2.5 0 113.536 3.536L6.5 21.036H3v-3.572L16.732 3.732z"),o(D,"xmlns","http://www.w3.org/2000/svg"),o(D,"class","h-4 w-4"),o(D,"fill","none"),o(D,"viewBox","0 0 24 24"),o(D,"stroke","currentColor"),o(j,"type","button"),o(j,"class","btn btn-square btn-xs"),o(j,"title",N=l[11]("common.edit")),o(x,"stroke-linecap","round"),o(x,"stroke-linejoin","round"),o(x,"stroke-width","2"),o(x,"d","M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"),o(Y,"xmlns","http://www.w3.org/2000/svg"),o(Y,"class","h-4 w-4"),o(Y,"fill","none"),o(Y,"viewBox","0 0 24 24"),o(Y,"stroke","currentColor"),o(Z,"type","button"),o(Z,"class","btn btn-square btn-xs"),o(Z,"title",U=l[11]("routeCard.duplicate")),o(F,"stroke-linecap","round"),o(F,"stroke-linejoin","round"),o(F,"stroke-width","2"),o(F,"d","M6 18L18 6M6 6l12 12"),o(L,"xmlns","http://www.w3.org/2000/svg"),o(L,"class","h-4 w-4"),o(L,"fill","none"),o(L,"viewBox","0 0 24 24"),o(L,"stroke","currentColor"),o(S,"type","button"),o(S,"class","btn btn-square btn-xs btn-error"),o(S,"title",z=l[11]("common.delete")),o(H,"class","flex gap-1"),o(e,"class","hover"),X(e,"opacity-50",l[43].disabled),this.first=e},m(he,je){q(he,e,je),s(e,n),s(n,r),s(e,u),s(e,d),ne.m(d,null),s(e,c),s(e,p),A.m(p,null),s(e,m),s(e,g),s(g,b),s(b,k),s(k,y),s(b,C),le&&le.m(b,null),s(e,T),s(e,M),ae.m(M,null),s(e,P),s(e,I),s(I,H),s(H,j),s(j,D),s(D,B),s(H,V),s(H,Z),s(Z,Y),s(Y,x),s(H,Q),s(H,S),s(S,L),s(L,F),J||(se=[O(r,"change",oe),O(j,"click",Se),O(Z,"click",Fe),O(S,"click",qe)],J=!0)},p(he,je){l=he,je[0]&1024&&a!==(a=!l[43].disabled)&&(r.checked=a),je[0]&3072&&f!==(f=l[43].disabled?l[11]("upstream.enableTooltip"):l[11]("upstream.disableTooltip"))&&o(r,"title",f),pe===(pe=fe(l))&&ne?ne.p(l,je):(ne.d(1),ne=pe(l),ne&&(ne.c(),ne.m(d,null))),re===(re=de(l))&&A?A.p(l,je):(A.d(1),A=re(l),A&&(A.c(),A.m(p,null))),je[0]&1024&&w!==(w=l[43].target+"")&&v(y,w),je[0]&1024&&E!==(E=l[43].target)&&o(k,"title",E),l[43].plugins&&l[43].plugins.length>0?le||(le=Jd(),le.c(),le.m(b,null)):le&&(le.d(1),le=null),ce===(ce=$(l))&&ae?ae.p(l,je):(ae.d(1),ae=ce(l),ae&&(ae.c(),ae.m(M,null))),je[0]&2048&&N!==(N=l[11]("common.edit"))&&o(j,"title",N),je[0]&2048&&U!==(U=l[11]("routeCard.duplicate"))&&o(Z,"title",U),je[0]&2048&&z!==(z=l[11]("common.delete"))&&o(S,"title",z),je[0]&1024&&X(e,"opacity-50",l[43].disabled)},d(he){he&&R(e),ne.d(),A.d(),le&&le.d(),ae.d(),J=!1,mt(se)}}}function Kd(t){let l,e,n=(t[2]?t[11]("routes.noMatchingRoutes"):t[11]("routes.noRoutesMessage"))+"",r;return{c(){l=i("tr"),e=i("td"),r=_(n),o(e,"colspan","6"),o(e,"class","text-center text-gray-500 py-8")},m(a,f){q(a,l,f),s(l,e),s(e,r)},p(a,f){f[0]&2052&&n!==(n=(a[2]?a[11]("routes.noMatchingRoutes"):a[11]("routes.noRoutesMessage"))+"")&&v(r,n)},d(a){a&&R(l)}}}function Gd(t){let l,e,n=t[1][0].message+"",r;return{c(){l=i("div"),e=i("span"),r=_(n),o(l,"class","alert alert-warning")},m(a,f){q(a,l,f),s(l,e),s(e,r)},p(a,f){f[0]&2&&n!==(n=a[1][0].message+"")&&v(r,n)},d(a){a&&R(l)}}}function Yd(t){let l,e,n,r=(t[4]>=0?t[11]("upstream.title",{values:{index:t[4]+1}}):t[11]("routeEditor.addUpstream"))+"",a,f,u,d,c,p,m,g,b=t[11]("common.cancel")+"",k,w,y,E=t[11]("common.save")+"",C,T,M,P,I;function H(D){t[40](D)}let j={index:t[4],showHeader:!1,onRemove:Tm,onDuplicate:Sm};return t[5]!==void 0&&(j.upstream=t[5]),d=new gm({props:j}),Ll.push(()=>jl(d,"upstream",H)),{c(){l=i("div"),e=i("div"),n=i("h3"),a=_(r),f=h(),u=i("div"),Ht(d.$$.fragment),p=h(),m=i("div"),g=i("button"),k=_(b),w=h(),y=i("button"),C=_(E),o(n,"class","font-bold text-lg mb-4"),o(u,"class","max-h-[70vh] overflow-y-auto"),o(g,"type","button"),o(g,"class","btn"),o(y,"type","button"),o(y,"class","btn btn-primary"),y.disabled=T=!t[9],o(m,"class","modal-action"),o(e,"class","modal-box w-11/12 max-w-3xl"),o(l,"class","modal modal-open")},m(D,B){q(D,l,B),s(l,e),s(e,n),s(n,a),s(e,f),s(e,u),qt(d,u,null),s(e,p),s(e,m),s(m,g),s(g,k),s(m,w),s(m,y),s(y,C),M=!0,P||(I=[O(g,"click",t[13]),O(y,"click",t[14])],P=!0)},p(D,B){(!M||B[0]&2064)&&r!==(r=(D[4]>=0?D[11]("upstream.title",{values:{index:D[4]+1}}):D[11]("routeEditor.addUpstream"))+"")&&v(a,r);const N={};B[0]&16&&(N.index=D[4]),!c&&B[0]&32&&(c=!0,N.upstream=D[5],Dl(()=>c=!1)),d.$set(N),(!M||B[0]&2048)&&b!==(b=D[11]("common.cancel")+"")&&v(k,b),(!M||B[0]&2048)&&E!==(E=D[11]("common.save")+"")&&v(C,E),(!M||B[0]&512&&T!==(T=!D[9]))&&(y.disabled=T)},i(D){M||($e(d.$$.fragment,D),M=!0)},o(D){lt(d.$$.fragment,D),M=!1},d(D){D&&R(l),Rt(d),P=!1,mt(I)}}}function Em(t){let l,e,n,r,a=t[11]("routeEditor.upstreams")+"",f,u,d,c,p,m=t[11]("routeEditor.upstreamsHelp")+"",g,b,k,w,y,E,C,T=t[11]("routeEditor.addUpstream")+"",M,P,I=t[0].some(Qd),H,j,D,B,N,V,Z=t[11]("upstream.status")+"",Y,x,U,Q=t[11]("upstream.priority")+"",S,L,F,z=t[11]("upstream.weight")+"",J,se,oe,fe=t[11]("upstream.target")+"",pe,ne,de,re=t[11]("upstream.description")+"",A,le,$,ce=t[11]("routes.actions")+"",ae,Se,Fe,qe=[],he=new Map,je,Ie,Be,ke,Ce,Re,He,ze=I&&Nd(t),Ne=ft(t[10]);const te=Ee=>Ee[43]._uid;for(let Ee=0;Ee<Ne.length;Ee+=1){let ye=Od(t,Ne,Ee),We=te(ye);he.set(We,qe[Ee]=Wd(We,ye))}let ve=t[10].length===0&&Kd(t),ue=t[1].length>0&&Gd(t),ge=t[3]&&t[5]&&Yd(t);return{c(){l=i("div"),e=i("div"),n=i("div"),r=i("h3"),f=_(a),u=h(),d=i("span"),d.textContent="*",c=h(),p=i("p"),g=_(m),b=h(),k=i("div"),w=i("input"),E=h(),C=i("button"),M=_(T),P=h(),ze&&ze.c(),H=h(),j=i("div"),D=i("table"),B=i("thead"),N=i("tr"),V=i("th"),Y=_(Z),x=h(),U=i("th"),S=_(Q),L=h(),F=i("th"),J=_(z),se=h(),oe=i("th"),pe=_(fe),ne=h(),de=i("th"),A=_(re),le=h(),$=i("th"),ae=_(ce),Se=h(),Fe=i("tbody");for(let Ee=0;Ee<qe.length;Ee+=1)qe[Ee].c();je=h(),ve&&ve.c(),Ie=h(),ue&&ue.c(),Be=h(),ge&&ge.c(),ke=Gl(),o(d,"class","text-error"),o(r,"class","text-lg font-semibold"),o(p,"class","text-sm text-gray-500 mt-1"),o(w,"type","text"),o(w,"placeholder",y=t[11]("common.search")),o(w,"class","input input-bordered input-sm"),o(C,"type","button"),o(C,"class","btn btn-sm btn-primary"),o(k,"class","flex gap-2"),o(e,"class","flex justify-between items-center"),o(V,"class","w-16 text-center"),o(U,"class","w-20"),o(F,"class","w-20"),o(de,"class","w-40"),o($,"class","w-32"),o(D,"class","table table-zebra w-full"),o(j,"class","overflow-x-auto"),o(l,"class","space-y-4")},m(Ee,ye){q(Ee,l,ye),s(l,e),s(e,n),s(n,r),s(r,f),s(r,u),s(r,d),s(n,c),s(n,p),s(p,g),s(e,b),s(e,k),s(k,w),G(w,t[2]),s(k,E),s(k,C),s(C,M),s(l,P),ze&&ze.m(l,null),s(l,H),s(l,j),s(j,D),s(D,B),s(B,N),s(N,V),s(V,Y),s(N,x),s(N,U),s(U,S),s(N,L),s(N,F),s(F,J),s(N,se),s(N,oe),s(oe,pe),s(N,ne),s(N,de),s(de,A),s(N,le),s(N,$),s($,ae),s(D,Se),s(D,Fe);for(let We=0;We<qe.length;We+=1)qe[We]&&qe[We].m(Fe,null);s(Fe,je),ve&&ve.m(Fe,null),s(l,Ie),ue&&ue.m(l,null),q(Ee,Be,ye),ge&&ge.m(Ee,ye),q(Ee,ke,ye),Ce=!0,Re||(He=[O(w,"input",t[23]),O(C,"click",t[24])],Re=!0)},p(Ee,ye){(!Ce||ye[0]&2048)&&a!==(a=Ee[11]("routeEditor.upstreams")+"")&&v(f,a),(!Ce||ye[0]&2048)&&m!==(m=Ee[11]("routeEditor.upstreamsHelp")+"")&&v(g,m),(!Ce||ye[0]&2048&&y!==(y=Ee[11]("common.search")))&&o(w,"placeholder",y),ye[0]&4&&w.value!==Ee[2]&&G(w,Ee[2]),(!Ce||ye[0]&2048)&&T!==(T=Ee[11]("routeEditor.addUpstream")+"")&&v(M,T),ye[0]&1&&(I=Ee[0].some(Qd)),I?ze?ze.p(Ee,ye):(ze=Nd(Ee),ze.c(),ze.m(l,H)):ze&&(ze.d(1),ze=null),(!Ce||ye[0]&2048)&&Z!==(Z=Ee[11]("upstream.status")+"")&&v(Y,Z),(!Ce||ye[0]&2048)&&Q!==(Q=Ee[11]("upstream.priority")+"")&&v(S,Q),(!Ce||ye[0]&2048)&&z!==(z=Ee[11]("upstream.weight")+"")&&v(J,z),(!Ce||ye[0]&2048)&&fe!==(fe=Ee[11]("upstream.target")+"")&&v(pe,fe),(!Ce||ye[0]&2048)&&re!==(re=Ee[11]("upstream.description")+"")&&v(A,re),(!Ce||ye[0]&2048)&&ce!==(ce=Ee[11]("routes.actions")+"")&&v(ae,ce),ye[0]&2072e3&&(Ne=ft(Ee[10]),qe=na(qe,ye,te,1,Ee,Ne,he,Fe,Lu,Wd,je,Od)),Ee[10].length===0?ve?ve.p(Ee,ye):(ve=Kd(Ee),ve.c(),ve.m(Fe,null)):ve&&(ve.d(1),ve=null),Ee[1].length>0?ue?ue.p(Ee,ye):(ue=Gd(Ee),ue.c(),ue.m(l,null)):ue&&(ue.d(1),ue=null),Ee[3]&&Ee[5]?ge?(ge.p(Ee,ye),ye[0]&40&&$e(ge,1)):(ge=Yd(Ee),ge.c(),$e(ge,1),ge.m(ke.parentNode,ke)):ge&&(Ql(),lt(ge,1,1,()=>{ge=null}),Zl())},i(Ee){Ce||($e(ge),Ce=!0)},o(Ee){lt(ge),Ce=!1},d(Ee){Ee&&(R(l),R(Be),R(ke)),ze&&ze.d();for(let ye=0;ye<qe.length;ye+=1)qe[ye].d();ve&&ve.d(),ue&&ue.d(),ge&&ge.d(Ee),Re=!1,mt(He)}}}function ta(t,l){(t.key==="Enter"||t.key===" ")&&(t.preventDefault(),l())}const Qd=t=>t.field==="upstreams",Zd=t=>t.field==="upstreams",Tm=()=>{},Sm=()=>{};function Mm(t,l,e){let n,r,a,f;Nt(t,Dt,A=>e(11,f=A));let{route:u}=l,{errors:d=[]}=l,{weightErrors:c=[]}=l,p="",m=!1,g=-1,b=null,k=[],w=-1,y=null,E;function C(A=-1){e(4,g=A),A>=0?e(5,b=JSON.parse(JSON.stringify(u.upstreams[A]))):e(5,b={_uid:lr(),target:"",weight:100,priority:u.upstreams.length+1,headers:{add:{},remove:[],default:{}},body:{add:{},remove:[],replace:{},default:{}},query:{add:{},remove:[],replace:{},default:{}}}),e(3,m=!0)}function T(){e(3,m=!1),e(5,b=null)}function M(){r&&(g>=0?e(21,u.upstreams[g]=b,u):e(21,u.upstreams=[...u.upstreams,b],u),T())}function P(A){if(u.upstreams.length<=1){alert(f("routeEditor.upstreamRequired"));return}e(21,u.upstreams=u.upstreams.filter((le,$)=>$!==A),u)}function I(A){const le=u.upstreams[A],$=JSON.parse(JSON.stringify(le));if($._uid=lr(),$.target){const ce=$.target.match(/^(.+?)(-\\d+)?$/);if(ce){const[,ae,Se]=ce;if(Se){const Fe=parseInt(Se.slice(1))+1;$.target=\`\${ae}-\${Fe}\`}else $.target=\`\${ae}-copy\`}else $.target=\`\${$.target}-copy\`}$.priority!==void 0&&($.priority=Math.max(...u.upstreams.map(ce=>ce.priority||1))+1),e(21,u.upstreams=[...u.upstreams.slice(0,A+1),$,...u.upstreams.slice(A+1)],u)}function H(A){e(21,u.upstreams[A].disabled=!u.upstreams[A].disabled,u),e(21,u)}function j(A,le){e(6,w=A),e(7,y=le),E=u.upstreams[A][le]||(le==="priority"?1:le==="weight"?100:"")}function D(){a.length===0&&w>=0&&y&&(e(21,u),e(6,w=-1),e(7,y=null))}function B(){w>=0&&y&&(e(21,u.upstreams[w][y]=E,u),e(21,u),e(6,w=-1),e(7,y=null))}function N(A){A.key==="Enter"?(A.preventDefault(),A.stopPropagation(),D()):A.key==="Escape"&&(A.preventDefault(),A.stopPropagation(),B())}function V(){p=this.value,e(2,p)}const Z=()=>C(-1),Y=A=>H(A);function x(A,le){A[le].u.priority=Ct(this.value),e(10,n),e(21,u),e(2,p)}const U=A=>j(A,"priority"),Q=(A,le)=>ta(le,()=>j(A,"priority"));function S(A,le){A[le].u.weight=Ct(this.value),e(10,n),e(21,u),e(2,p)}const L=A=>j(A,"weight"),F=(A,le)=>ta(le,()=>j(A,"weight"));function z(A,le){A[le].u.description=this.value,e(10,n),e(21,u),e(2,p)}const J=A=>j(A,"description"),se=(A,le)=>ta(le,()=>j(A,"description")),oe=A=>j(A,"description"),fe=(A,le)=>ta(le,()=>j(A,"description")),pe=A=>C(A),ne=A=>I(A),de=A=>P(A);function re(A){b=A,e(5,b)}return t.$$set=A=>{"route"in A&&e(21,u=A.route),"errors"in A&&e(0,d=A.errors),"weightErrors"in A&&e(1,c=A.weightErrors)},t.$$.update=()=>{t.$$.dirty[0]&2097156&&e(10,n=u.upstreams.map((A,le)=>({u:A,i:le})).filter(({u:A})=>!p||A.target.toLowerCase().includes(p.toLowerCase()))),t.$$.dirty[0]&2097208&&m&&b&&e(22,k=Qn(b,g===-1?u.upstreams.length:g)),t.$$.dirty[0]&4194344&&e(9,r=m&&b&&k.length===0),t.$$.dirty[0]&2097344&&e(8,a=w>=0&&y?Qn(u.upstreams[w],w).filter(A=>A.field.includes(y)):[])},[d,c,p,m,g,b,w,y,a,r,n,f,C,T,M,P,I,H,j,D,N,u,k,V,Z,Y,x,U,Q,S,L,F,z,J,se,oe,fe,pe,ne,de,re]}class Rm extends Kt{constructor(l){super(),Gt(this,l,Mm,Em,Yt,{route:21,errors:0,weightErrors:1},null,[-1,-1])}}function qm(t){let l,e,n;function r(f){t[8](f)}let a={label:t[2]("query.title"),showLabel:!1};return t[0].query!==void 0&&(a.value=t[0].query),l=new g0({props:a}),Ll.push(()=>jl(l,"value",r)),{c(){Ht(l.$$.fragment)},m(f,u){qt(l,f,u),n=!0},p(f,u){const d={};u&4&&(d.label=f[2]("query.title")),!e&&u&1&&(e=!0,d.value=f[0].query,Dl(()=>e=!1)),l.$set(d)},i(f){n||($e(l.$$.fragment,f),n=!0)},o(f){lt(l.$$.fragment,f),n=!1},d(f){Rt(l,f)}}}function Hm(t){let l,e,n;function r(f){t[7](f)}let a={label:t[2]("body.title"),showLabel:!1};return t[0].body!==void 0&&(a.value=t[0].body),l=new m0({props:a}),Ll.push(()=>jl(l,"value",r)),{c(){Ht(l.$$.fragment)},m(f,u){qt(l,f,u),n=!0},p(f,u){const d={};u&4&&(d.label=f[2]("body.title")),!e&&u&1&&(e=!0,d.value=f[0].body,Dl(()=>e=!1)),l.$set(d)},i(f){n||($e(l.$$.fragment,f),n=!0)},o(f){lt(l.$$.fragment,f),n=!1},d(f){Rt(l,f)}}}function Pm(t){let l,e,n;function r(f){t[6](f)}let a={label:t[2]("headers.title"),showLabel:!1};return t[0].headers!==void 0&&(a.value=t[0].headers),l=new h0({props:a}),Ll.push(()=>jl(l,"value",r)),{c(){Ht(l.$$.fragment)},m(f,u){qt(l,f,u),n=!0},p(f,u){const d={};u&4&&(d.label=f[2]("headers.title")),!e&&u&1&&(e=!0,d.value=f[0].headers,Dl(()=>e=!1)),l.$set(d)},i(f){n||($e(l.$$.fragment,f),n=!0)},o(f){lt(l.$$.fragment,f),n=!1},d(f){Rt(l,f)}}}function Lm(t){let l,e,n,r=t[2]("routeEditor.requestModification")+"",a,f,u,d=t[2]("routeEditor.requestModificationHelp")+"",c,p,m,g,b=t[2]("headers.title")+"",k,w,y,E=t[2]("body.title")+"",C,T,M,P=t[2]("query.title")+"",I,H,j,D,B,N,V,Z,Y,x,U,Q=t[2]("routeEditor.routeLevelModificationNote")+"",S,L,F,z;const J=[Pm,Hm,qm],se=[];function oe(fe,pe){return fe[1]==="headers"?0:fe[1]==="body"?1:fe[1]==="query"?2:-1}return~(D=oe(t))&&(B=se[D]=J[D](t)),{c(){l=i("div"),e=i("div"),n=i("h3"),a=_(r),f=h(),u=i("p"),c=_(d),p=h(),m=i("div"),g=i("button"),k=_(b),w=h(),y=i("button"),C=_(E),T=h(),M=i("button"),I=_(P),H=h(),j=i("div"),B&&B.c(),N=h(),V=i("div"),Z=ie("svg"),Y=ie("path"),x=h(),U=i("span"),S=_(Q),o(n,"class","text-lg font-semibold"),o(u,"class","text-sm text-gray-500 mt-1"),o(g,"role","tab"),o(g,"class","tab"),X(g,"tab-active",t[1]==="headers"),o(y,"role","tab"),o(y,"class","tab"),X(y,"tab-active",t[1]==="body"),o(M,"role","tab"),o(M,"class","tab"),X(M,"tab-active",t[1]==="query"),o(m,"role","tablist"),o(m,"class","tabs tabs-boxed"),o(j,"class","mt-4"),o(Y,"stroke-linecap","round"),o(Y,"stroke-linejoin","round"),o(Y,"stroke-width","2"),o(Y,"d","M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"),o(Z,"xmlns","http://www.w3.org/2000/svg"),o(Z,"fill","none"),o(Z,"viewBox","0 0 24 24"),o(Z,"class","stroke-current shrink-0 w-6 h-6"),o(U,"class","text-sm"),o(V,"class","alert alert-info mt-4"),o(l,"class","space-y-4")},m(fe,pe){q(fe,l,pe),s(l,e),s(e,n),s(n,a),s(e,f),s(e,u),s(u,c),s(l,p),s(l,m),s(m,g),s(g,k),s(m,w),s(m,y),s(y,C),s(m,T),s(m,M),s(M,I),s(l,H),s(l,j),~D&&se[D].m(j,null),s(l,N),s(l,V),s(V,Z),s(Z,Y),s(V,x),s(V,U),s(U,S),L=!0,F||(z=[O(g,"click",t[3]),O(y,"click",t[4]),O(M,"click",t[5])],F=!0)},p(fe,[pe]){(!L||pe&4)&&r!==(r=fe[2]("routeEditor.requestModification")+"")&&v(a,r),(!L||pe&4)&&d!==(d=fe[2]("routeEditor.requestModificationHelp")+"")&&v(c,d),(!L||pe&4)&&b!==(b=fe[2]("headers.title")+"")&&v(k,b),(!L||pe&2)&&X(g,"tab-active",fe[1]==="headers"),(!L||pe&4)&&E!==(E=fe[2]("body.title")+"")&&v(C,E),(!L||pe&2)&&X(y,"tab-active",fe[1]==="body"),(!L||pe&4)&&P!==(P=fe[2]("query.title")+"")&&v(I,P),(!L||pe&2)&&X(M,"tab-active",fe[1]==="query");let ne=D;D=oe(fe),D===ne?~D&&se[D].p(fe,pe):(B&&(Ql(),lt(se[ne],1,1,()=>{se[ne]=null}),Zl()),~D?(B=se[D],B?B.p(fe,pe):(B=se[D]=J[D](fe),B.c()),$e(B,1),B.m(j,null)):B=null),(!L||pe&4)&&Q!==(Q=fe[2]("routeEditor.routeLevelModificationNote")+"")&&v(S,Q)},i(fe){L||($e(B),L=!0)},o(fe){lt(B),L=!1},d(fe){fe&&R(l),~D&&se[D].d(),F=!1,mt(z)}}}function jm(t,l,e){let n;Nt(t,Dt,g=>e(2,n=g));let{route:r}=l,a="headers";const f=()=>e(1,a="headers"),u=()=>e(1,a="body"),d=()=>e(1,a="query");function c(g){t.$$.not_equal(r.headers,g)&&(r.headers=g,e(0,r))}function p(g){t.$$.not_equal(r.body,g)&&(r.body=g,e(0,r))}function m(g){t.$$.not_equal(r.query,g)&&(r.query=g,e(0,r))}return t.$$set=g=>{"route"in g&&e(0,r=g.route)},[r,a,n,f,u,d,c,p,m]}class Dm extends Kt{constructor(l){super(),Gt(this,l,jm,Lm,Yt,{route:0})}}function Bm(t){let l,e,n,r=t[1]("auth.routeAuth")+"",a,f,u,d=t[1]("auth.routeAuthHelp")+"",c,p,m,g,b;function k(y){t[2](y)}let w={label:t[1]("auth.routeAuth"),showHelp:!0,showLabel:!1};return t[0].auth!==void 0&&(w.value=t[0].auth),m=new u0({props:w}),Ll.push(()=>jl(m,"value",k)),{c(){l=i("div"),e=i("div"),n=i("h3"),a=_(r),f=h(),u=i("p"),c=_(d),p=h(),Ht(m.$$.fragment),o(n,"class","text-lg font-semibold"),o(u,"class","text-sm text-gray-500 mt-1"),o(l,"class","space-y-4")},m(y,E){q(y,l,E),s(l,e),s(e,n),s(n,a),s(e,f),s(e,u),s(u,c),s(l,p),qt(m,l,null),b=!0},p(y,[E]){(!b||E&2)&&r!==(r=y[1]("auth.routeAuth")+"")&&v(a,r),(!b||E&2)&&d!==(d=y[1]("auth.routeAuthHelp")+"")&&v(c,d);const C={};E&2&&(C.label=y[1]("auth.routeAuth")),!g&&E&1&&(g=!0,C.value=y[0].auth,Dl(()=>g=!1)),m.$set(C)},i(y){b||($e(m.$$.fragment,y),b=!0)},o(y){lt(m.$$.fragment,y),b=!1},d(y){y&&R(l),Rt(m)}}}function Im(t,l,e){let n;Nt(t,Dt,f=>e(1,n=f));let{route:r}=l;function a(f){t.$$.not_equal(r.auth,f)&&(r.auth=f,e(0,r))}return t.$$set=f=>{"route"in f&&e(0,r=f.route)},[r,n,a]}class Am extends Kt{constructor(l){super(),Gt(this,l,Im,Bm,Yt,{route:0})}}function Xd(t){let l,e=t[22]("routeEditor.failoverHelp")+"",n;return{c(){l=i("span"),n=_(e),o(l,"class","label-text-alt text-xs")},m(r,a){q(r,l,a),s(l,n)},p(r,a){a[0]&4194304&&e!==(e=r[22]("routeEditor.failoverHelp")+"")&&v(n,e)},d(r){r&&R(l)}}}function xd(t){let l,e,n,r=t[22]("routeEditor.retryableStatusCodes")+"",a,f,u,d,c,p,m,g=t[22]("routeEditor.retryableStatusCodesHelp")+"",b,k,w,y,E,C,T=t[22]("routeEditor.passiveHealthCheck")+"",M,P,I,H,j,D,B,N,V=t[22]("routeEditor.passiveHealthCheckTooltip")+"",Z,Y,x,U,Q,S,L=t[22]("routeEditor.consecutiveFailuresThreshold")+"",F,z,J,se,oe,fe,pe=t[22]("routeEditor.consecutiveFailuresThresholdHelp")+"",ne,de,re,A,le,$=t[22]("routeEditor.healthyThreshold")+"",ce,ae,Se,Fe,qe,he,je=t[22]("routeEditor.healthyThresholdHelp")+"",Ie,Be,ke,Ce,Re,He=t[22]("routeEditor.requestTimeoutMs")+"",ze,Ne,te,ve,ue,ge,Ee=t[22]("routeEditor.requestTimeoutMsHelp")+"",ye,We,Oe,et,Ke,we=t[22]("routeEditor.connectTimeoutMs")+"",_e,Pe,Ze,Ae,Ve,be,rt=t[22]("routeEditor.connectTimeoutMsHelp")+"",dt,Me,Le,Te,it,Je=t[22]("routeEditor.recoveryIntervalMs")+"",W,De,ee,nt,Bt,Ge,gt=t[22]("routeEditor.recoveryIntervalHelp")+"",Xe,at,Et,vt,Ft,ut=t[22]("routeEditor.recoveryTimeoutMs")+"",_t,kt,ct,dl,st,Mt,pt=t[22]("routeEditor.recoveryTimeoutHelp")+"",Tt,ll,jt,sl,yt,bl,Jt=t[22]("routeEditor.activeHealthCheck")+"",Qt,Pt,Zt,El,Bl,al,ol,Ol,Ut=t[22]("routeEditor.activeHealthCheckTooltip")+"",Tl,Ye,bt,cl,Ot,Il,Lt,Al=t[22]("routeEditor.enableActiveHealthCheck")+"",Fl,$l,nl,Ml,es,Jl,Nl,Yl=t[22]("routeEditor.slowStart")+"",Ps,pl,Rl,hl,Wl,ml,Sl,ul,zl=t[22]("routeEditor.slowStartTooltip")+"",Kl,Hl,Xt,Vt,zt,rl,il,xt=t[22]("routeEditor.enableSlowStart")+"",el,gl,tl,xe,Ul,ts,Xl,xl,ls=t[22]("routeEditor.failoverInfoNotice")+"",Ds,ss,Os,_l=t[11]&&$d(t),Wt=t[19]&&ec(t);return{c(){l=i("div"),e=i("label"),n=i("span"),a=_(r),f=h(),u=i("input"),c=h(),p=i("div"),m=i("span"),b=_(g),k=h(),w=i("div"),y=i("input"),E=h(),C=i("div"),M=_(T),P=h(),I=i("div"),H=i("div"),j=ie("svg"),D=ie("path"),B=h(),N=i("span"),Z=_(V),Y=h(),x=i("div"),U=i("div"),Q=i("label"),S=i("span"),F=_(L),z=h(),J=i("input"),se=h(),oe=i("div"),fe=i("span"),ne=_(pe),de=h(),re=i("div"),A=i("label"),le=i("span"),ce=_($),ae=h(),Se=i("input"),Fe=h(),qe=i("div"),he=i("span"),Ie=_(je),Be=h(),ke=i("div"),Ce=i("label"),Re=i("span"),ze=_(He),Ne=h(),te=i("input"),ve=h(),ue=i("div"),ge=i("span"),ye=_(Ee),We=h(),Oe=i("div"),et=i("label"),Ke=i("span"),_e=_(we),Pe=h(),Ze=i("input"),Ae=h(),Ve=i("div"),be=i("span"),dt=_(rt),Me=h(),Le=i("div"),Te=i("label"),it=i("span"),W=_(Je),De=h(),ee=i("input"),nt=h(),Bt=i("div"),Ge=i("span"),Xe=_(gt),at=h(),Et=i("div"),vt=i("label"),Ft=i("span"),_t=_(ut),kt=h(),ct=i("input"),dl=h(),st=i("div"),Mt=i("span"),Tt=_(pt),ll=h(),jt=i("div"),sl=i("input"),yt=h(),bl=i("div"),Qt=_(Jt),Pt=h(),Zt=i("div"),El=i("div"),Bl=ie("svg"),al=ie("path"),ol=h(),Ol=i("span"),Tl=_(Ut),Ye=h(),bt=i("div"),cl=i("label"),Ot=i("input"),Il=h(),Lt=i("span"),Fl=_(Al),$l=h(),_l&&_l.c(),nl=h(),Ml=i("div"),es=i("input"),Jl=h(),Nl=i("div"),Ps=_(Yl),pl=h(),Rl=i("div"),hl=i("div"),Wl=ie("svg"),ml=ie("path"),Sl=h(),ul=i("span"),Kl=_(zl),Hl=h(),Xt=i("div"),Vt=i("label"),zt=i("input"),rl=h(),il=i("span"),el=_(xt),gl=h(),Wt&&Wt.c(),tl=h(),xe=i("div"),Ul=ie("svg"),ts=ie("path"),Xl=h(),xl=i("div"),Ds=_(ls),o(n,"class","label-text"),o(e,"class","label"),o(e,"for","failover-status-codes"),o(u,"id","failover-status-codes"),o(u,"type","text"),o(u,"placeholder",d=t[22]("routeEditor.retryableStatusCodesPlaceholder")),o(u,"class","input input-bordered input-sm"),o(m,"class","label-text-alt text-xs"),o(p,"class","label"),o(l,"class","form-control"),o(y,"type","checkbox"),o(C,"class","collapse-title text-sm font-medium"),o(D,"stroke-linecap","round"),o(D,"stroke-linejoin","round"),o(D,"stroke-width","2"),o(D,"d","M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"),o(j,"xmlns","http://www.w3.org/2000/svg"),o(j,"fill","none"),o(j,"viewBox","0 0 24 24"),o(j,"class","stroke-current shrink-0 w-4 h-4"),o(H,"class","text-xs text-base-content/60 bg-base-300 rounded p-2 flex gap-2 items-start"),o(S,"class","label-text"),o(Q,"class","label"),o(Q,"for","consecutive-failures-threshold"),o(J,"id","consecutive-failures-threshold"),o(J,"type","number"),o(J,"placeholder","3"),o(J,"class","input input-bordered input-sm"),o(J,"min","1"),o(fe,"class","label-text-alt text-xs"),o(oe,"class","label"),o(U,"class","form-control"),o(le,"class","label-text"),o(A,"class","label"),o(A,"for","healthy-threshold"),o(Se,"id","healthy-threshold"),o(Se,"type","number"),o(Se,"placeholder","2"),o(Se,"class","input input-bordered input-sm"),o(Se,"min","1"),o(he,"class","label-text-alt text-xs"),o(qe,"class","label"),o(re,"class","form-control"),o(Re,"class","label-text"),o(Ce,"class","label"),o(Ce,"for","request-timeout-ms"),o(te,"id","request-timeout-ms"),o(te,"type","number"),o(te,"placeholder","30000"),o(te,"class","input input-bordered input-sm"),o(te,"min","100"),o(ge,"class","label-text-alt text-xs"),o(ue,"class","label"),o(ke,"class","form-control"),o(Ke,"class","label-text"),o(et,"class","label"),o(et,"for","connect-timeout-ms"),o(Ze,"id","connect-timeout-ms"),o(Ze,"type","number"),o(Ze,"placeholder","5000"),o(Ze,"class","input input-bordered input-sm"),o(Ze,"min","100"),o(be,"class","label-text-alt text-xs"),o(Ve,"class","label"),o(Oe,"class","form-control"),o(it,"class","label-text"),o(Te,"class","label"),o(Te,"for","recovery-interval-ms"),o(ee,"id","recovery-interval-ms"),o(ee,"type","number"),o(ee,"placeholder","5000"),o(ee,"class","input input-bordered input-sm"),o(ee,"min","1000"),o(Ge,"class","label-text-alt text-xs"),o(Bt,"class","label"),o(Le,"class","form-control"),o(Ft,"class","label-text"),o(vt,"class","label"),o(vt,"for","recovery-timeout-ms"),o(ct,"id","recovery-timeout-ms"),o(ct,"type","number"),o(ct,"placeholder","3000"),o(ct,"class","input input-bordered input-sm"),o(ct,"min","100"),o(Mt,"class","label-text-alt text-xs"),o(st,"class","label"),o(Et,"class","form-control"),o(x,"class","grid grid-cols-1 md:grid-cols-2 gap-4"),o(I,"class","collapse-content space-y-4"),o(w,"class","collapse collapse-arrow bg-base-200"),o(sl,"type","checkbox"),o(bl,"class","collapse-title text-sm font-medium"),o(al,"stroke-linecap","round"),o(al,"stroke-linejoin","round"),o(al,"stroke-width","2"),o(al,"d","M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"),o(Bl,"xmlns","http://www.w3.org/2000/svg"),o(Bl,"fill","none"),o(Bl,"viewBox","0 0 24 24"),o(Bl,"class","stroke-current shrink-0 w-4 h-4"),o(El,"class","text-xs text-base-content/60 bg-base-300 rounded p-2 flex gap-2 items-start"),o(Ot,"type","checkbox"),o(Ot,"class","checkbox checkbox-sm"),o(Lt,"class","label-text"),o(cl,"class","label cursor-pointer justify-start gap-4"),o(bt,"class","form-control"),o(Zt,"class","collapse-content space-y-4"),o(jt,"class","collapse collapse-arrow bg-base-200"),o(es,"type","checkbox"),o(Nl,"class","collapse-title text-sm font-medium"),o(ml,"stroke-linecap","round"),o(ml,"stroke-linejoin","round"),o(ml,"stroke-width","2"),o(ml,"d","M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"),o(Wl,"xmlns","http://www.w3.org/2000/svg"),o(Wl,"fill","none"),o(Wl,"viewBox","0 0 24 24"),o(Wl,"class","stroke-current shrink-0 w-4 h-4"),o(hl,"class","text-xs text-base-content/60 bg-base-300 rounded p-2 flex gap-2 items-start"),o(zt,"type","checkbox"),o(zt,"class","checkbox checkbox-sm"),o(il,"class","label-text"),o(Vt,"class","label cursor-pointer justify-start gap-4"),o(Xt,"class","form-control"),o(Rl,"class","collapse-content space-y-4"),o(Ml,"class","collapse collapse-arrow bg-base-200"),o(ts,"stroke-linecap","round"),o(ts,"stroke-linejoin","round"),o(ts,"stroke-width","2"),o(ts,"d","M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"),o(Ul,"xmlns","http://www.w3.org/2000/svg"),o(Ul,"fill","none"),o(Ul,"viewBox","0 0 24 24"),o(Ul,"class","stroke-current shrink-0 w-4 h-4"),o(xe,"class","alert alert-info shadow-sm text-xs")},m(tt,ht){q(tt,l,ht),s(l,e),s(e,n),s(n,a),s(l,f),s(l,u),G(u,t[4]),s(l,c),s(l,p),s(p,m),s(m,b),q(tt,k,ht),q(tt,w,ht),s(w,y),s(w,E),s(w,C),s(C,M),s(w,P),s(w,I),s(I,H),s(H,j),s(j,D),s(H,B),s(H,N),s(N,Z),s(I,Y),s(I,x),s(x,U),s(U,Q),s(Q,S),s(S,F),s(U,z),s(U,J),G(J,t[5]),s(U,se),s(U,oe),s(oe,fe),s(fe,ne),s(x,de),s(x,re),s(re,A),s(A,le),s(le,ce),s(re,ae),s(re,Se),G(Se,t[6]),s(re,Fe),s(re,qe),s(qe,he),s(he,Ie),s(x,Be),s(x,ke),s(ke,Ce),s(Ce,Re),s(Re,ze),s(ke,Ne),s(ke,te),G(te,t[7]),s(ke,ve),s(ke,ue),s(ue,ge),s(ge,ye),s(x,We),s(x,Oe),s(Oe,et),s(et,Ke),s(Ke,_e),s(Oe,Pe),s(Oe,Ze),G(Ze,t[8]),s(Oe,Ae),s(Oe,Ve),s(Ve,be),s(be,dt),s(x,Me),s(x,Le),s(Le,Te),s(Te,it),s(it,W),s(Le,De),s(Le,ee),G(ee,t[9]),s(Le,nt),s(Le,Bt),s(Bt,Ge),s(Ge,Xe),s(x,at),s(x,Et),s(Et,vt),s(vt,Ft),s(Ft,_t),s(Et,kt),s(Et,ct),G(ct,t[10]),s(Et,dl),s(Et,st),s(st,Mt),s(Mt,Tt),q(tt,ll,ht),q(tt,jt,ht),s(jt,sl),s(jt,yt),s(jt,bl),s(bl,Qt),s(jt,Pt),s(jt,Zt),s(Zt,El),s(El,Bl),s(Bl,al),s(El,ol),s(El,Ol),s(Ol,Tl),s(Zt,Ye),s(Zt,bt),s(bt,cl),s(cl,Ot),Ot.checked=t[11],s(cl,Il),s(cl,Lt),s(Lt,Fl),s(Zt,$l),_l&&_l.m(Zt,null),q(tt,nl,ht),q(tt,Ml,ht),s(Ml,es),s(Ml,Jl),s(Ml,Nl),s(Nl,Ps),s(Ml,pl),s(Ml,Rl),s(Rl,hl),s(hl,Wl),s(Wl,ml),s(hl,Sl),s(hl,ul),s(ul,Kl),s(Rl,Hl),s(Rl,Xt),s(Xt,Vt),s(Vt,zt),zt.checked=t[19],s(Vt,rl),s(Vt,il),s(il,el),s(Rl,gl),Wt&&Wt.m(Rl,null),q(tt,tl,ht),q(tt,xe,ht),s(xe,Ul),s(Ul,ts),s(xe,Xl),s(xe,xl),s(xl,Ds),ss||(Os=[O(u,"input",t[28]),O(J,"input",t[29]),O(Se,"input",t[30]),O(te,"input",t[31]),O(Ze,"input",t[32]),O(ee,"input",t[33]),O(ct,"input",t[34]),O(Ot,"change",t[35]),O(zt,"change",t[43])],ss=!0)},p(tt,ht){ht[0]&4194304&&r!==(r=tt[22]("routeEditor.retryableStatusCodes")+"")&&v(a,r),ht[0]&4194304&&d!==(d=tt[22]("routeEditor.retryableStatusCodesPlaceholder"))&&o(u,"placeholder",d),ht[0]&16&&u.value!==tt[4]&&G(u,tt[4]),ht[0]&4194304&&g!==(g=tt[22]("routeEditor.retryableStatusCodesHelp")+"")&&v(b,g),ht[0]&4194304&&T!==(T=tt[22]("routeEditor.passiveHealthCheck")+"")&&v(M,T),ht[0]&4194304&&V!==(V=tt[22]("routeEditor.passiveHealthCheckTooltip")+"")&&v(Z,V),ht[0]&4194304&&L!==(L=tt[22]("routeEditor.consecutiveFailuresThreshold")+"")&&v(F,L),ht[0]&32&&Ct(J.value)!==tt[5]&&G(J,tt[5]),ht[0]&4194304&&pe!==(pe=tt[22]("routeEditor.consecutiveFailuresThresholdHelp")+"")&&v(ne,pe),ht[0]&4194304&&$!==($=tt[22]("routeEditor.healthyThreshold")+"")&&v(ce,$),ht[0]&64&&Ct(Se.value)!==tt[6]&&G(Se,tt[6]),ht[0]&4194304&&je!==(je=tt[22]("routeEditor.healthyThresholdHelp")+"")&&v(Ie,je),ht[0]&4194304&&He!==(He=tt[22]("routeEditor.requestTimeoutMs")+"")&&v(ze,He),ht[0]&128&&Ct(te.value)!==tt[7]&&G(te,tt[7]),ht[0]&4194304&&Ee!==(Ee=tt[22]("routeEditor.requestTimeoutMsHelp")+"")&&v(ye,Ee),ht[0]&4194304&&we!==(we=tt[22]("routeEditor.connectTimeoutMs")+"")&&v(_e,we),ht[0]&256&&Ct(Ze.value)!==tt[8]&&G(Ze,tt[8]),ht[0]&4194304&&rt!==(rt=tt[22]("routeEditor.connectTimeoutMsHelp")+"")&&v(dt,rt),ht[0]&4194304&&Je!==(Je=tt[22]("routeEditor.recoveryIntervalMs")+"")&&v(W,Je),ht[0]&512&&Ct(ee.value)!==tt[9]&&G(ee,tt[9]),ht[0]&4194304&&gt!==(gt=tt[22]("routeEditor.recoveryIntervalHelp")+"")&&v(Xe,gt),ht[0]&4194304&&ut!==(ut=tt[22]("routeEditor.recoveryTimeoutMs")+"")&&v(_t,ut),ht[0]&1024&&Ct(ct.value)!==tt[10]&&G(ct,tt[10]),ht[0]&4194304&&pt!==(pt=tt[22]("routeEditor.recoveryTimeoutHelp")+"")&&v(Tt,pt),ht[0]&4194304&&Jt!==(Jt=tt[22]("routeEditor.activeHealthCheck")+"")&&v(Qt,Jt),ht[0]&4194304&&Ut!==(Ut=tt[22]("routeEditor.activeHealthCheckTooltip")+"")&&v(Tl,Ut),ht[0]&2048&&(Ot.checked=tt[11]),ht[0]&4194304&&Al!==(Al=tt[22]("routeEditor.enableActiveHealthCheck")+"")&&v(Fl,Al),tt[11]?_l?_l.p(tt,ht):(_l=$d(tt),_l.c(),_l.m(Zt,null)):_l&&(_l.d(1),_l=null),ht[0]&4194304&&Yl!==(Yl=tt[22]("routeEditor.slowStart")+"")&&v(Ps,Yl),ht[0]&4194304&&zl!==(zl=tt[22]("routeEditor.slowStartTooltip")+"")&&v(Kl,zl),ht[0]&524288&&(zt.checked=tt[19]),ht[0]&4194304&&xt!==(xt=tt[22]("routeEditor.enableSlowStart")+"")&&v(el,xt),tt[19]?Wt?Wt.p(tt,ht):(Wt=ec(tt),Wt.c(),Wt.m(Rl,null)):Wt&&(Wt.d(1),Wt=null),ht[0]&4194304&&ls!==(ls=tt[22]("routeEditor.failoverInfoNotice")+"")&&v(Ds,ls)},d(tt){tt&&(R(l),R(k),R(w),R(ll),R(jt),R(nl),R(Ml),R(tl),R(xe)),_l&&_l.d(),Wt&&Wt.d(),ss=!1,mt(Os)}}}function $d(t){let l,e,n,r,a=t[22]("routeEditor.healthCheckIntervalMs")+"",f,u,d,c,p,m,g=t[22]("routeEditor.healthCheckIntervalMsHelp")+"",b,k,w,y,E,C=t[22]("routeEditor.healthCheckTimeoutMs")+"",T,M,P,I,H,j,D=t[22]("routeEditor.healthCheckTimeoutMsHelp")+"",B,N,V,Z,Y,x=t[22]("routeEditor.healthCheckPath")+"",U,Q,S,L,F,z,J=t[22]("routeEditor.healthCheckPathHelp")+"",se,oe,fe,pe,ne,de=t[22]("routeEditor.healthCheckMethod")+"",re,A,le,$,ce,ae,Se,Fe,qe,he,je,Ie=t[22]("routeEditor.healthCheckExpectedStatus")+"",Be,ke,Ce,Re,He,ze,Ne=t[22]("routeEditor.healthCheckExpectedStatusHelp")+"",te,ve,ue,ge,Ee,ye=t[22]("routeEditor.healthCheckUnhealthyThreshold")+"",We,Oe,et,Ke,we,_e,Pe=t[22]("routeEditor.healthCheckUnhealthyThresholdHelp")+"",Ze,Ae,Ve,be,rt,dt=t[22]("routeEditor.healthCheckHealthyThreshold")+"",Me,Le,Te,it,Je,W,De=t[22]("routeEditor.healthCheckHealthyThresholdHelp")+"",ee,nt,Bt;return{c(){l=i("div"),e=i("div"),n=i("label"),r=i("span"),f=_(a),u=h(),d=i("input"),c=h(),p=i("div"),m=i("span"),b=_(g),k=h(),w=i("div"),y=i("label"),E=i("span"),T=_(C),M=h(),P=i("input"),I=h(),H=i("div"),j=i("span"),B=_(D),N=h(),V=i("div"),Z=i("label"),Y=i("span"),U=_(x),Q=h(),S=i("input"),L=h(),F=i("div"),z=i("span"),se=_(J),oe=h(),fe=i("div"),pe=i("label"),ne=i("span"),re=_(de),A=h(),le=i("select"),$=i("option"),$.textContent="GET (default)",ce=i("option"),ce.textContent="GET",ae=i("option"),ae.textContent="POST",Se=i("option"),Se.textContent="HEAD",Fe=h(),qe=i("div"),he=i("label"),je=i("span"),Be=_(Ie),ke=h(),Ce=i("input"),Re=h(),He=i("div"),ze=i("span"),te=_(Ne),ve=h(),ue=i("div"),ge=i("label"),Ee=i("span"),We=_(ye),Oe=h(),et=i("input"),Ke=h(),we=i("div"),_e=i("span"),Ze=_(Pe),Ae=h(),Ve=i("div"),be=i("label"),rt=i("span"),Me=_(dt),Le=h(),Te=i("input"),it=h(),Je=i("div"),W=i("span"),ee=_(De),o(r,"class","label-text"),o(n,"class","label"),o(n,"for","health-check-interval-ms"),o(d,"id","health-check-interval-ms"),o(d,"type","number"),o(d,"placeholder","10000"),o(d,"class","input input-bordered input-sm"),o(d,"min","1000"),o(m,"class","label-text-alt text-xs"),o(p,"class","label"),o(e,"class","form-control"),o(E,"class","label-text"),o(y,"class","label"),o(y,"for","health-check-timeout-ms"),o(P,"id","health-check-timeout-ms"),o(P,"type","number"),o(P,"placeholder","3000"),o(P,"class","input input-bordered input-sm"),o(P,"min","100"),o(j,"class","label-text-alt text-xs"),o(H,"class","label"),o(w,"class","form-control"),o(Y,"class","label-text"),o(Z,"class","label"),o(Z,"for","health-check-path"),o(S,"id","health-check-path"),o(S,"type","text"),o(S,"placeholder","/health"),o(S,"class","input input-bordered input-sm"),o(z,"class","label-text-alt text-xs"),o(F,"class","label"),o(V,"class","form-control"),o(ne,"class","label-text"),o(pe,"class","label"),o(pe,"for","health-check-method"),$.__value="",G($,$.__value),ce.__value="GET",G(ce,ce.__value),ae.__value="POST",G(ae,ae.__value),Se.__value="HEAD",G(Se,Se.__value),o(le,"id","health-check-method"),o(le,"class","select select-bordered select-sm"),t[15]===void 0&&Cl(()=>t[39].call(le)),o(fe,"class","form-control"),o(je,"class","label-text"),o(he,"class","label"),o(he,"for","health-check-expected-status"),o(Ce,"id","health-check-expected-status"),o(Ce,"type","text"),o(Ce,"placeholder","200"),o(Ce,"class","input input-bordered input-sm"),o(ze,"class","label-text-alt text-xs"),o(He,"class","label"),o(qe,"class","form-control"),o(Ee,"class","label-text"),o(ge,"class","label"),o(ge,"for","health-check-unhealthy-threshold"),o(et,"id","health-check-unhealthy-threshold"),o(et,"type","number"),o(et,"placeholder","3"),o(et,"class","input input-bordered input-sm"),o(et,"min","1"),o(_e,"class","label-text-alt text-xs"),o(we,"class","label"),o(ue,"class","form-control"),o(rt,"class","label-text"),o(be,"class","label"),o(be,"for","health-check-healthy-threshold"),o(Te,"id","health-check-healthy-threshold"),o(Te,"type","number"),o(Te,"placeholder","2"),o(Te,"class","input input-bordered input-sm"),o(Te,"min","1"),o(W,"class","label-text-alt text-xs"),o(Je,"class","label"),o(Ve,"class","form-control"),o(l,"class","grid grid-cols-1 md:grid-cols-2 gap-4")},m(Ge,gt){q(Ge,l,gt),s(l,e),s(e,n),s(n,r),s(r,f),s(e,u),s(e,d),G(d,t[12]),s(e,c),s(e,p),s(p,m),s(m,b),s(l,k),s(l,w),s(w,y),s(y,E),s(E,T),s(w,M),s(w,P),G(P,t[13]),s(w,I),s(w,H),s(H,j),s(j,B),s(l,N),s(l,V),s(V,Z),s(Z,Y),s(Y,U),s(V,Q),s(V,S),G(S,t[14]),s(V,L),s(V,F),s(F,z),s(z,se),s(l,oe),s(l,fe),s(fe,pe),s(pe,ne),s(ne,re),s(fe,A),s(fe,le),s(le,$),s(le,ce),s(le,ae),s(le,Se),St(le,t[15],!0),s(l,Fe),s(l,qe),s(qe,he),s(he,je),s(je,Be),s(qe,ke),s(qe,Ce),G(Ce,t[16]),s(qe,Re),s(qe,He),s(He,ze),s(ze,te),s(l,ve),s(l,ue),s(ue,ge),s(ge,Ee),s(Ee,We),s(ue,Oe),s(ue,et),G(et,t[17]),s(ue,Ke),s(ue,we),s(we,_e),s(_e,Ze),s(l,Ae),s(l,Ve),s(Ve,be),s(be,rt),s(rt,Me),s(Ve,Le),s(Ve,Te),G(Te,t[18]),s(Ve,it),s(Ve,Je),s(Je,W),s(W,ee),nt||(Bt=[O(d,"input",t[36]),O(P,"input",t[37]),O(S,"input",t[38]),O(le,"change",t[39]),O(Ce,"input",t[40]),O(et,"input",t[41]),O(Te,"input",t[42])],nt=!0)},p(Ge,gt){gt[0]&4194304&&a!==(a=Ge[22]("routeEditor.healthCheckIntervalMs")+"")&&v(f,a),gt[0]&4096&&Ct(d.value)!==Ge[12]&&G(d,Ge[12]),gt[0]&4194304&&g!==(g=Ge[22]("routeEditor.healthCheckIntervalMsHelp")+"")&&v(b,g),gt[0]&4194304&&C!==(C=Ge[22]("routeEditor.healthCheckTimeoutMs")+"")&&v(T,C),gt[0]&8192&&Ct(P.value)!==Ge[13]&&G(P,Ge[13]),gt[0]&4194304&&D!==(D=Ge[22]("routeEditor.healthCheckTimeoutMsHelp")+"")&&v(B,D),gt[0]&4194304&&x!==(x=Ge[22]("routeEditor.healthCheckPath")+"")&&v(U,x),gt[0]&16384&&S.value!==Ge[14]&&G(S,Ge[14]),gt[0]&4194304&&J!==(J=Ge[22]("routeEditor.healthCheckPathHelp")+"")&&v(se,J),gt[0]&4194304&&de!==(de=Ge[22]("routeEditor.healthCheckMethod")+"")&&v(re,de),gt[0]&32768&&St(le,Ge[15]),gt[0]&4194304&&Ie!==(Ie=Ge[22]("routeEditor.healthCheckExpectedStatus")+"")&&v(Be,Ie),gt[0]&65536&&Ce.value!==Ge[16]&&G(Ce,Ge[16]),gt[0]&4194304&&Ne!==(Ne=Ge[22]("routeEditor.healthCheckExpectedStatusHelp")+"")&&v(te,Ne),gt[0]&4194304&&ye!==(ye=Ge[22]("routeEditor.healthCheckUnhealthyThreshold")+"")&&v(We,ye),gt[0]&131072&&Ct(et.value)!==Ge[17]&&G(et,Ge[17]),gt[0]&4194304&&Pe!==(Pe=Ge[22]("routeEditor.healthCheckUnhealthyThresholdHelp")+"")&&v(Ze,Pe),gt[0]&4194304&&dt!==(dt=Ge[22]("routeEditor.healthCheckHealthyThreshold")+"")&&v(Me,dt),gt[0]&262144&&Ct(Te.value)!==Ge[18]&&G(Te,Ge[18]),gt[0]&4194304&&De!==(De=Ge[22]("routeEditor.healthCheckHealthyThresholdHelp")+"")&&v(ee,De)},d(Ge){Ge&&R(l),nt=!1,mt(Bt)}}}function ec(t){let l,e,n,r,a=t[22]("routeEditor.slowStartDurationMs")+"",f,u,d,c,p,m,g=t[22]("routeEditor.slowStartDurationMsHelp")+"",b,k,w,y,E,C=t[22]("routeEditor.slowStartInitialWeightFactor")+"",T,M,P,I,H,j,D=t[22]("routeEditor.slowStartInitialWeightFactorHelp")+"",B,N,V;return{c(){l=i("div"),e=i("div"),n=i("label"),r=i("span"),f=_(a),u=h(),d=i("input"),c=h(),p=i("div"),m=i("span"),b=_(g),k=h(),w=i("div"),y=i("label"),E=i("span"),T=_(C),M=h(),P=i("input"),I=h(),H=i("div"),j=i("span"),B=_(D),o(r,"class","label-text"),o(n,"class","label"),o(n,"for","slow-start-duration-ms"),o(d,"id","slow-start-duration-ms"),o(d,"type","number"),o(d,"placeholder","30000"),o(d,"class","input input-bordered input-sm"),o(d,"min","1000"),o(m,"class","label-text-alt text-xs"),o(p,"class","label"),o(e,"class","form-control"),o(E,"class","label-text"),o(y,"class","label"),o(y,"for","slow-start-initial-weight-factor"),o(P,"id","slow-start-initial-weight-factor"),o(P,"type","number"),o(P,"placeholder","0.1"),o(P,"class","input input-bordered input-sm"),o(P,"min","0.01"),o(P,"max","1"),o(P,"step","0.01"),o(j,"class","label-text-alt text-xs"),o(H,"class","label"),o(w,"class","form-control"),o(l,"class","grid grid-cols-1 md:grid-cols-2 gap-4")},m(Z,Y){q(Z,l,Y),s(l,e),s(e,n),s(n,r),s(r,f),s(e,u),s(e,d),G(d,t[20]),s(e,c),s(e,p),s(p,m),s(m,b),s(l,k),s(l,w),s(w,y),s(y,E),s(E,T),s(w,M),s(w,P),G(P,t[21]),s(w,I),s(w,H),s(H,j),s(j,B),N||(V=[O(d,"input",t[44]),O(P,"input",t[45])],N=!0)},p(Z,Y){Y[0]&4194304&&a!==(a=Z[22]("routeEditor.slowStartDurationMs")+"")&&v(f,a),Y[0]&1048576&&Ct(d.value)!==Z[20]&&G(d,Z[20]),Y[0]&4194304&&g!==(g=Z[22]("routeEditor.slowStartDurationMsHelp")+"")&&v(b,g),Y[0]&4194304&&C!==(C=Z[22]("routeEditor.slowStartInitialWeightFactor")+"")&&v(T,C),Y[0]&2097152&&Ct(P.value)!==Z[21]&&G(P,Z[21]),Y[0]&4194304&&D!==(D=Z[22]("routeEditor.slowStartInitialWeightFactorHelp")+"")&&v(B,D)},d(Z){Z&&R(l),N=!1,mt(V)}}}function Fm(t){let l,e,n,r,a,f,u,d,c,p,m,g,b=t[22]("routeEditor.enableFailover")+"",k,w,y,E,C=t[1]&&Xd(t),T=t[2]&&xd(t);return{c(){l=i("div"),e=i("div"),n=i("span"),r=_(t[0]),a=h(),C&&C.c(),f=h(),u=i("div"),d=i("div"),c=i("label"),p=i("input"),m=h(),g=i("span"),k=_(b),w=h(),T&&T.c(),o(n,"class","label-text font-semibold"),o(e,"class","label"),o(p,"type","checkbox"),o(p,"class","checkbox"),o(g,"class","label-text"),o(c,"class","label cursor-pointer justify-start gap-4"),o(d,"class","form-control"),o(u,"class","space-y-4"),o(l,"class","form-control w-full")},m(M,P){q(M,l,P),s(l,e),s(e,n),s(n,r),s(e,a),C&&C.m(e,null),s(l,f),s(l,u),s(u,d),s(d,c),s(c,p),p.checked=t[2],s(c,m),s(c,g),s(g,k),s(u,w),T&&T.m(u,null),y||(E=[O(p,"change",t[26]),O(p,"change",t[27])],y=!0)},p(M,P){P[0]&1&&v(r,M[0]),M[1]?C?C.p(M,P):(C=Xd(M),C.c(),C.m(e,null)):C&&(C.d(1),C=null),P[0]&4&&(p.checked=M[2]),P[0]&4194304&&b!==(b=M[22]("routeEditor.enableFailover")+"")&&v(k,b),M[2]?T?T.p(M,P):(T=xd(M),T.c(),T.m(u,null)):T&&(T.d(1),T=null)},i:ot,o:ot,d(M){M&&R(l),C&&C.d(),T&&T.d(),y=!1,mt(E)}}}function tc(t){return t.split(",").map(l=>parseInt(l.trim())).filter(l=>!isNaN(l)&&l>=100&&l<600)}function zm(t,l,e){let n;Nt(t,Dt,ce=>e(22,n=ce));let{value:r=void 0}=l,{label:a="Failover"}=l,{showHelp:f=!0}=l,u=!1,d=!1,c=[],p="",m,g,b,k,w,y,E=!1,C,T,M,P,I=[],H="",j,D,B=!1,N,V;function Z(){u=this.checked,e(2,u),e(3,d),e(23,r),e(24,c),e(25,I),e(5,m),e(6,g),e(7,b),e(8,k),e(9,w),e(10,y),e(11,E),e(12,C),e(13,T),e(14,M),e(15,P),e(17,j),e(18,D),e(19,B),e(20,N),e(21,V),e(4,p),e(16,H)}const Y=()=>{e(3,d=!0)};function x(){p=this.value,e(4,p),e(3,d),e(23,r),e(24,c),e(25,I),e(2,u),e(5,m),e(6,g),e(7,b),e(8,k),e(9,w),e(10,y),e(11,E),e(12,C),e(13,T),e(14,M),e(15,P),e(17,j),e(18,D),e(19,B),e(20,N),e(21,V),e(16,H)}function U(){m=Ct(this.value),e(5,m),e(3,d),e(23,r),e(24,c),e(25,I),e(2,u),e(6,g),e(7,b),e(8,k),e(9,w),e(10,y),e(11,E),e(12,C),e(13,T),e(14,M),e(15,P),e(17,j),e(18,D),e(19,B),e(20,N),e(21,V),e(4,p),e(16,H)}function Q(){g=Ct(this.value),e(6,g),e(3,d),e(23,r),e(24,c),e(25,I),e(2,u),e(5,m),e(7,b),e(8,k),e(9,w),e(10,y),e(11,E),e(12,C),e(13,T),e(14,M),e(15,P),e(17,j),e(18,D),e(19,B),e(20,N),e(21,V),e(4,p),e(16,H)}function S(){b=Ct(this.value),e(7,b),e(3,d),e(23,r),e(24,c),e(25,I),e(2,u),e(5,m),e(6,g),e(8,k),e(9,w),e(10,y),e(11,E),e(12,C),e(13,T),e(14,M),e(15,P),e(17,j),e(18,D),e(19,B),e(20,N),e(21,V),e(4,p),e(16,H)}function L(){k=Ct(this.value),e(8,k),e(3,d),e(23,r),e(24,c),e(25,I),e(2,u),e(5,m),e(6,g),e(7,b),e(9,w),e(10,y),e(11,E),e(12,C),e(13,T),e(14,M),e(15,P),e(17,j),e(18,D),e(19,B),e(20,N),e(21,V),e(4,p),e(16,H)}function F(){w=Ct(this.value),e(9,w),e(3,d),e(23,r),e(24,c),e(25,I),e(2,u),e(5,m),e(6,g),e(7,b),e(8,k),e(10,y),e(11,E),e(12,C),e(13,T),e(14,M),e(15,P),e(17,j),e(18,D),e(19,B),e(20,N),e(21,V),e(4,p),e(16,H)}function z(){y=Ct(this.value),e(10,y),e(3,d),e(23,r),e(24,c),e(25,I),e(2,u),e(5,m),e(6,g),e(7,b),e(8,k),e(9,w),e(11,E),e(12,C),e(13,T),e(14,M),e(15,P),e(17,j),e(18,D),e(19,B),e(20,N),e(21,V),e(4,p),e(16,H)}function J(){E=this.checked,e(11,E),e(3,d),e(23,r),e(24,c),e(25,I),e(2,u),e(5,m),e(6,g),e(7,b),e(8,k),e(9,w),e(10,y),e(12,C),e(13,T),e(14,M),e(15,P),e(17,j),e(18,D),e(19,B),e(20,N),e(21,V),e(4,p),e(16,H)}function se(){C=Ct(this.value),e(12,C),e(3,d),e(23,r),e(24,c),e(25,I),e(2,u),e(5,m),e(6,g),e(7,b),e(8,k),e(9,w),e(10,y),e(11,E),e(13,T),e(14,M),e(15,P),e(17,j),e(18,D),e(19,B),e(20,N),e(21,V),e(4,p),e(16,H)}function oe(){T=Ct(this.value),e(13,T),e(3,d),e(23,r),e(24,c),e(25,I),e(2,u),e(5,m),e(6,g),e(7,b),e(8,k),e(9,w),e(10,y),e(11,E),e(12,C),e(14,M),e(15,P),e(17,j),e(18,D),e(19,B),e(20,N),e(21,V),e(4,p),e(16,H)}function fe(){M=this.value,e(14,M),e(3,d),e(23,r),e(24,c),e(25,I),e(2,u),e(5,m),e(6,g),e(7,b),e(8,k),e(9,w),e(10,y),e(11,E),e(12,C),e(13,T),e(15,P),e(17,j),e(18,D),e(19,B),e(20,N),e(21,V),e(4,p),e(16,H)}function pe(){P=yl(this),e(15,P),e(3,d),e(23,r),e(24,c),e(25,I),e(2,u),e(5,m),e(6,g),e(7,b),e(8,k),e(9,w),e(10,y),e(11,E),e(12,C),e(13,T),e(14,M),e(17,j),e(18,D),e(19,B),e(20,N),e(21,V),e(4,p),e(16,H)}function ne(){H=this.value,e(16,H),e(3,d),e(23,r),e(24,c),e(25,I),e(2,u),e(5,m),e(6,g),e(7,b),e(8,k),e(9,w),e(10,y),e(11,E),e(12,C),e(13,T),e(14,M),e(15,P),e(17,j),e(18,D),e(19,B),e(20,N),e(21,V),e(4,p)}function de(){j=Ct(this.value),e(17,j),e(3,d),e(23,r),e(24,c),e(25,I),e(2,u),e(5,m),e(6,g),e(7,b),e(8,k),e(9,w),e(10,y),e(11,E),e(12,C),e(13,T),e(14,M),e(15,P),e(18,D),e(19,B),e(20,N),e(21,V),e(4,p),e(16,H)}function re(){D=Ct(this.value),e(18,D),e(3,d),e(23,r),e(24,c),e(25,I),e(2,u),e(5,m),e(6,g),e(7,b),e(8,k),e(9,w),e(10,y),e(11,E),e(12,C),e(13,T),e(14,M),e(15,P),e(17,j),e(19,B),e(20,N),e(21,V),e(4,p),e(16,H)}function A(){B=this.checked,e(19,B),e(3,d),e(23,r),e(24,c),e(25,I),e(2,u),e(5,m),e(6,g),e(7,b),e(8,k),e(9,w),e(10,y),e(11,E),e(12,C),e(13,T),e(14,M),e(15,P),e(17,j),e(18,D),e(20,N),e(21,V),e(4,p),e(16,H)}function le(){N=Ct(this.value),e(20,N),e(3,d),e(23,r),e(24,c),e(25,I),e(2,u),e(5,m),e(6,g),e(7,b),e(8,k),e(9,w),e(10,y),e(11,E),e(12,C),e(13,T),e(14,M),e(15,P),e(17,j),e(18,D),e(19,B),e(21,V),e(4,p),e(16,H)}function $(){V=Ct(this.value),e(21,V),e(3,d),e(23,r),e(24,c),e(25,I),e(2,u),e(5,m),e(6,g),e(7,b),e(8,k),e(9,w),e(10,y),e(11,E),e(12,C),e(13,T),e(14,M),e(15,P),e(17,j),e(18,D),e(19,B),e(20,N),e(4,p),e(16,H)}return t.$$set=ce=>{"value"in ce&&e(23,r=ce.value),"label"in ce&&e(0,a=ce.label),"showHelp"in ce&&e(1,f=ce.showHelp)},t.$$.update=()=>{t.$$.dirty[0]&62849004&&(!d&&r&&(e(2,u=r.enabled||!1),e(24,c=r.retryableStatusCodes||[500,502,503,504]),e(4,p=c.join(", ")),e(5,m=r.consecutiveFailuresThreshold),e(6,g=r.healthyThreshold),e(7,b=r.requestTimeoutMs),e(8,k=r.connectTimeoutMs),e(9,w=r.recoveryIntervalMs),e(10,y=r.recoveryTimeoutMs),r.healthCheck&&(e(11,E=r.healthCheck.enabled||!1),e(12,C=r.healthCheck.intervalMs),e(13,T=r.healthCheck.timeoutMs),e(14,M=r.healthCheck.path),e(15,P=r.healthCheck.method),e(25,I=r.healthCheck.expectedStatus||[200]),e(16,H=I.join(", ")),e(17,j=r.healthCheck.unhealthyThreshold),e(18,D=r.healthCheck.healthyThreshold)),r.slowStart&&(e(19,B=r.slowStart.enabled||!1),e(20,N=r.slowStart.durationMs),e(21,V=r.slowStart.initialWeightFactor)),e(3,d=!0)),u?r?(e(23,r.enabled=!0,r),e(23,r.retryableStatusCodes=c.length>0?c:[500,502,503,504],r),m!==void 0&&e(23,r.consecutiveFailuresThreshold=m,r),g!==void 0&&e(23,r.healthyThreshold=g,r),b!==void 0&&e(23,r.requestTimeoutMs=b,r),k!==void 0&&e(23,r.connectTimeoutMs=k,r),w!==void 0&&e(23,r.recoveryIntervalMs=w,r),y!==void 0&&e(23,r.recoveryTimeoutMs=y,r),E?e(23,r.healthCheck={enabled:!0,intervalMs:C,timeoutMs:T,path:M,method:P,expectedStatus:I.length>0?I:[200],unhealthyThreshold:j,healthyThreshold:D},r):e(23,r.healthCheck=void 0,r),B?e(23,r.slowStart={enabled:!0,durationMs:N,initialWeightFactor:V},r):e(23,r.slowStart=void 0,r)):e(23,r={enabled:!0,retryableStatusCodes:c.length>0?c:[500,502,503,504]}):e(23,r=void 0)),t.$$.dirty[0]&16&&e(24,c=tc(p)),t.$$.dirty[0]&65536&&e(25,I=tc(H))},[a,f,u,d,p,m,g,b,k,w,y,E,C,T,M,P,H,j,D,B,N,V,n,r,c,I,Z,Y,x,U,Q,S,L,F,z,J,se,oe,fe,pe,ne,de,re,A,le,$]}class Om extends Kt{constructor(l){super(),Gt(this,l,zm,Fm,Yt,{value:23,label:0,showHelp:1},null,[-1,-1])}}function Nm(t){let l,e,n,r=t[1]("routeEditor.failoverTitle")+"",a,f,u,d=t[1]("routeEditor.failoverHelp")+"",c,p,m,g,b;function k(y){t[2](y)}let w={label:t[1]("routeEditor.failoverTitle"),showHelp:!0,showLabel:!1};return t[0].failover!==void 0&&(w.value=t[0].failover),m=new Om({props:w}),Ll.push(()=>jl(m,"value",k)),{c(){l=i("div"),e=i("div"),n=i("h3"),a=_(r),f=h(),u=i("p"),c=_(d),p=h(),Ht(m.$$.fragment),o(n,"class","text-lg font-semibold"),o(u,"class","text-sm text-gray-500 mt-1"),o(l,"class","space-y-4")},m(y,E){q(y,l,E),s(l,e),s(e,n),s(n,a),s(e,f),s(e,u),s(u,c),s(l,p),qt(m,l,null),b=!0},p(y,[E]){(!b||E&2)&&r!==(r=y[1]("routeEditor.failoverTitle")+"")&&v(a,r),(!b||E&2)&&d!==(d=y[1]("routeEditor.failoverHelp")+"")&&v(c,d);const C={};E&2&&(C.label=y[1]("routeEditor.failoverTitle")),!g&&E&1&&(g=!0,C.value=y[0].failover,Dl(()=>g=!1)),m.$set(C)},i(y){b||($e(m.$$.fragment,y),b=!0)},o(y){lt(m.$$.fragment,y),b=!1},d(y){y&&R(l),Rt(m)}}}function Um(t,l,e){let n;Nt(t,Dt,f=>e(1,n=f));let{route:r}=l;function a(f){t.$$.not_equal(r.failover,f)&&(r.failover=f,e(0,r))}return t.$$set=f=>{"route"in f&&e(0,r=f.route)},[r,n,a]}class Vm extends Kt{constructor(l){super(),Gt(this,l,Um,Nm,Yt,{route:0})}}function lc(t,l,e){const n=t.slice();return n[8]=l[e],n[10]=e,n}function sc(t){let l;return{c(){l=i("span"),l.textContent="Transformer",o(l,"class","badge badge-xs badge-info ml-2")},m(e,n){q(e,l,n)},d(e){e&&R(l)}}}function oc(t){let l,e,n=(t[8].priority||t[10]+1)+"",r,a,f,u,d=(t[8].target||t[4]("routeEditor.notSet"))+"",c,p,m,g,b=t[4]("upstream.weight")+"",k,w,y=(t[8].weight||100)+"",E,C,T,M=t[8].plugins&&t[8].plugins.length>0&&sc();return{c(){l=i("div"),e=i("div"),r=_(n),a=h(),f=i("div"),u=i("div"),c=_(d),m=h(),g=i("div"),k=_(b),w=_(": "),E=_(y),C=h(),M&&M.c(),T=h(),o(e,"class","badge badge-primary"),o(u,"class","font-medium text-sm truncate"),o(u,"title",p=t[8].target),o(g,"class","text-xs text-gray-500"),o(f,"class","flex-1"),o(l,"class","flex items-center gap-3 p-3 bg-base-100 rounded-lg")},m(P,I){q(P,l,I),s(l,e),s(e,r),s(l,a),s(l,f),s(f,u),s(u,c),s(f,m),s(f,g),s(g,k),s(g,w),s(g,E),s(g,C),M&&M.m(g,null),s(l,T)},p(P,I){I&1&&n!==(n=(P[8].priority||P[10]+1)+"")&&v(r,n),I&17&&d!==(d=(P[8].target||P[4]("routeEditor.notSet"))+"")&&v(c,d),I&1&&p!==(p=P[8].target)&&o(u,"title",p),I&16&&b!==(b=P[4]("upstream.weight")+"")&&v(k,b),I&1&&y!==(y=(P[8].weight||100)+"")&&v(E,y),P[8].plugins&&P[8].plugins.length>0?M||(M=sc(),M.c(),M.m(g,null)):M&&(M.d(1),M=null)},d(P){P&&R(l),M&&M.d()}}}function nc(t){let l,e,n,r,a,f,u,d,c,p,m=t[4]("common.copy")+"",g,b,k;return{c(){l=i("div"),e=i("pre"),n=i("code"),r=_(t[3]),a=h(),f=i("div"),u=i("button"),d=ie("svg"),c=ie("path"),p=h(),g=_(m),o(l,"class","mockup-code mt-4"),o(c,"stroke-linecap","round"),o(c,"stroke-linejoin","round"),o(c,"stroke-width","2"),o(c,"d","M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"),o(d,"xmlns","http://www.w3.org/2000/svg"),o(d,"class","h-4 w-4"),o(d,"fill","none"),o(d,"viewBox","0 0 24 24"),o(d,"stroke","currentColor"),o(u,"type","button"),o(u,"class","btn btn-sm btn-outline"),o(f,"class","card-actions justify-end mt-4")},m(w,y){q(w,l,y),s(l,e),s(e,n),s(n,r),q(w,a,y),q(w,f,y),s(f,u),s(u,d),s(d,c),s(u,p),s(u,g),b||(k=O(u,"click",t[7]),b=!0)},p(w,y){y&8&&v(r,w[3]),y&16&&m!==(m=w[4]("common.copy")+"")&&v(g,m)},d(w){w&&(R(l),R(a),R(f)),b=!1,k()}}}function rc(t){let l,e,n,r,a=t[4]("auth.routeAuth")+"",f;return{c(){l=i("div"),e=i("div"),e.textContent="\u2713",n=h(),r=i("div"),f=_(a),o(e,"class","badge badge-sm badge-success"),o(r,"class","text-sm"),o(l,"class","flex items-center gap-3")},m(u,d){q(u,l,d),s(l,e),s(l,n),s(l,r),s(r,f)},p(u,d){d&16&&a!==(a=u[4]("auth.routeAuth")+"")&&v(f,a)},d(u){u&&R(l)}}}function ic(t){let l,e,n,r,a=t[4]("routeEditor.pathRewrite")+"",f;return{c(){l=i("div"),e=i("div"),e.textContent="\u2192",n=h(),r=i("div"),f=_(a),o(e,"class","badge badge-sm badge-info"),o(r,"class","text-sm"),o(l,"class","flex items-center gap-3")},m(u,d){q(u,l,d),s(l,e),s(l,n),s(l,r),s(r,f)},p(u,d){d&16&&a!==(a=u[4]("routeEditor.pathRewrite")+"")&&v(f,a)},d(u){u&&R(l)}}}function ac(t){let l,e,n,r,a=t[4]("routeEditor.transformer")+"",f;return{c(){l=i("div"),e=i("div"),e.textContent="\u26A1",n=h(),r=i("div"),f=_(a),o(e,"class","badge badge-sm badge-warning"),o(r,"class","text-sm"),o(l,"class","flex items-center gap-3")},m(u,d){q(u,l,d),s(l,e),s(l,n),s(l,r),s(r,f)},p(u,d){d&16&&a!==(a=u[4]("routeEditor.transformer")+"")&&v(f,a)},d(u){u&&R(l)}}}function uc(t){let l,e=t[4]("routeEditor.failoverEnabled")+"",n;return{c(){l=i("span"),n=_(e),o(l,"class","badge badge-xs badge-success ml-1")},m(r,a){q(r,l,a),s(l,n)},p(r,a){a&16&&e!==(e=r[4]("routeEditor.failoverEnabled")+"")&&v(n,e)},d(r){r&&R(l)}}}function Jm(t){let l,e,n,r=t[4]("routeEditor.preview")+"",a,f,u,d=t[4]("routeEditor.previewHelp")+"",c,p,m,g,b,k=t[4]("routeEditor.upstreams")+"",w,y,E,C=t[2].upstreamsCount+"",T,M,P,I=t[4]("routeEditor.totalWeight")+"",H,j,D=t[2].totalWeight+"",B,N,V,Z,Y=t[4]("routeEditor.features")+"",x,U,Q,S=[t[2].hasAuth,t[2].hasFailover,t[2].hasTransformer,t[2].hasPathRewrite].filter(Boolean).length+"",L,F,z,J=t[4]("routeEditor.featuresEnabled")+"",se,oe,fe,pe,ne=t[4]("routes.path")+"",de,re,A,le=(t[0].path||t[4]("routeEditor.notSet"))+"",$,ce,ae,Se,Fe=t[4]("routeEditor.routePath")+"",qe,he,je,Ie,Be,ke=t[4]("routeEditor.enabledFeatures")+"",Ce,Re,He,ze,Ne,te=t[2].hasAuth?"\u2713":"\u25CB",ve,ue,ge,Ee,ye=t[4]("auth.routeAuth")+"",We,Oe,et,Ke,we=t[2].hasFailover?"\u2713":"\u25CB",_e,Pe,Ze,Ae,Ve=t[4]("routeEditor.failoverTitle")+"",be,rt,dt,Me,Le=t[2].hasTransformer?"\u2713":"\u25CB",Te,it,Je,W,De=t[4]("routeEditor.transformer")+"",ee,nt,Bt,Ge,gt=t[2].hasPathRewrite?"\u2713":"\u25CB",Xe,at,Et,vt,Ft=t[4]("routeEditor.pathRewrite")+"",ut,_t,kt,ct,dl,st=t[4]("routeEditor.upstreams")+"",Mt,pt,Tt,ll,jt,sl,yt,bl,Jt=t[4]("routeEditor.jsonConfig")+"",Qt,Pt,Zt,El=(t[1]?t[4]("common.hide"):t[4]("common.show"))+"",Bl,al,ol,Ol,Ut,Tl,Ye=t[4]("routeEditor.requestFlow")+"",bt,cl,Ot,Il,Lt,Al,Fl,$l,nl=t[4]("routeEditor.clientRequest")+"",Ml,es,Jl,Nl=(t[0].path||"/")+"",Yl,Ps,pl,Rl,hl,Wl,ml,Sl,ul,zl,Kl,Hl=t[4]("routeEditor.selectUpstream")+"",Xt,Vt,zt,rl=t[2].upstreamsCount+"",il,xt,el=t[4]("routeEditor.upstreams")+"",gl,tl,xe,Ul,ts,Xl,xl,ls=t[4]("routeEditor.returnResponse")+"",Ds,ss,Os,_l=ft(t[0].upstreams),Wt=[];for(let Qe=0;Qe<_l.length;Qe+=1)Wt[Qe]=oc(lc(t,_l,Qe));let tt=t[1]&&nc(t),ht=t[2].hasAuth&&rc(t),fl=t[2].hasPathRewrite&&ic(t),Pl=t[2].hasTransformer&&ac(t),vl=t[2].hasFailover&&uc(t);return{c(){l=i("div"),e=i("div"),n=i("h3"),a=_(r),f=h(),u=i("p"),c=_(d),p=h(),m=i("div"),g=i("div"),b=i("div"),w=_(k),y=h(),E=i("div"),T=_(C),M=h(),P=i("div"),H=_(I),j=_(": "),B=_(D),N=h(),V=i("div"),Z=i("div"),x=_(Y),U=h(),Q=i("div"),L=_(S),F=h(),z=i("div"),se=_(J),oe=h(),fe=i("div"),pe=i("div"),de=_(ne),re=h(),A=i("div"),$=_(le),ae=h(),Se=i("div"),qe=_(Fe),he=h(),je=i("div"),Ie=i("div"),Be=i("h4"),Ce=_(ke),Re=h(),He=i("div"),ze=i("div"),Ne=i("div"),ve=_(te),ge=h(),Ee=i("span"),We=_(ye),Oe=h(),et=i("div"),Ke=i("div"),_e=_(we),Ze=h(),Ae=i("span"),be=_(Ve),rt=h(),dt=i("div"),Me=i("div"),Te=_(Le),Je=h(),W=i("span"),ee=_(De),nt=h(),Bt=i("div"),Ge=i("div"),Xe=_(gt),Et=h(),vt=i("span"),ut=_(Ft),_t=h(),kt=i("div"),ct=i("div"),dl=i("h4"),Mt=_(st),pt=h(),Tt=i("div");for(let Qe=0;Qe<Wt.length;Qe+=1)Wt[Qe].c();ll=h(),jt=i("div"),sl=i("div"),yt=i("div"),bl=i("h4"),Qt=_(Jt),Pt=h(),Zt=i("button"),Bl=_(El),al=h(),tt&&tt.c(),ol=h(),Ol=i("div"),Ut=i("div"),Tl=i("h4"),bt=_(Ye),cl=h(),Ot=i("div"),Il=i("div"),Lt=i("div"),Lt.textContent="1",Al=h(),Fl=i("div"),$l=i("div"),Ml=_(nl),es=h(),Jl=i("div"),Yl=_(Nl),Ps=h(),pl=i("div"),ht&&ht.c(),Rl=h(),fl&&fl.c(),hl=h(),Pl&&Pl.c(),Wl=h(),ml=i("div"),Sl=i("div"),Sl.textContent="2",ul=h(),zl=i("div"),Kl=i("div"),Xt=_(Hl),Vt=h(),zt=i("div"),il=_(rl),xt=h(),gl=_(el),tl=h(),vl&&vl.c(),xe=h(),Ul=i("div"),ts=i("div"),ts.textContent="3",Xl=h(),xl=i("div"),Ds=_(ls),o(n,"class","text-lg font-semibold"),o(u,"class","text-sm text-gray-500 mt-1"),o(b,"class","stat-title"),o(E,"class","stat-value text-primary"),o(P,"class","stat-desc"),o(g,"class","stat bg-base-200 rounded-lg"),o(Z,"class","stat-title"),o(Q,"class","stat-value text-2xl"),o(z,"class","stat-desc"),o(V,"class","stat bg-base-200 rounded-lg"),o(pe,"class","stat-title"),o(A,"class","stat-value text-sm truncate"),o(A,"title",ce=t[0].path),o(Se,"class","stat-desc"),o(fe,"class","stat bg-base-200 rounded-lg"),o(m,"class","grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4"),o(Be,"class","card-title text-base"),o(Ne,"class",ue=\`badge \${t[2].hasAuth?"badge-success":"badge-ghost"}\`),o(Ee,"class","text-sm"),o(ze,"class","flex items-center gap-2"),o(Ke,"class",Pe=\`badge \${t[2].hasFailover?"badge-success":"badge-ghost"}\`),o(Ae,"class","text-sm"),o(et,"class","flex items-center gap-2"),o(Me,"class",it=\`badge \${t[2].hasTransformer?"badge-success":"badge-ghost"}\`),o(W,"class","text-sm"),o(dt,"class","flex items-center gap-2"),o(Ge,"class",at=\`badge \${t[2].hasPathRewrite?"badge-success":"badge-ghost"}\`),o(vt,"class","text-sm"),o(Bt,"class","flex items-center gap-2"),o(He,"class","space-y-2"),o(Ie,"class","card-body"),o(je,"class","card bg-base-200"),o(dl,"class","card-title text-base"),o(Tt,"class","space-y-2"),o(ct,"class","card-body"),o(kt,"class","card bg-base-200"),o(bl,"class","card-title text-base"),o(Zt,"type","button"),o(Zt,"class","btn btn-sm btn-ghost"),o(yt,"class","flex justify-between items-center"),o(sl,"class","card-body"),o(jt,"class","card bg-base-200"),o(Tl,"class","card-title text-base"),o(Lt,"class","badge badge-lg badge-neutral"),o($l,"class","font-medium"),o(Jl,"class","text-xs text-gray-500"),o(Fl,"class","flex-1"),o(Il,"class","flex items-center gap-3"),o(Sl,"class","badge badge-lg badge-primary"),o(Kl,"class","font-medium"),o(zt,"class","text-xs text-gray-500"),o(zl,"class","flex-1"),o(ml,"class","flex items-center gap-3"),o(ts,"class","badge badge-lg badge-accent"),o(xl,"class","font-medium"),o(Ul,"class","flex items-center gap-3"),o(pl,"class","ml-6 border-l-2 border-base-300 pl-4 space-y-3"),o(Ot,"class","flex flex-col gap-3 mt-4"),o(Ut,"class","card-body"),o(Ol,"class","card bg-base-200"),o(l,"class","space-y-6")},m(Qe,wt){q(Qe,l,wt),s(l,e),s(e,n),s(n,a),s(e,f),s(e,u),s(u,c),s(l,p),s(l,m),s(m,g),s(g,b),s(b,w),s(g,y),s(g,E),s(E,T),s(g,M),s(g,P),s(P,H),s(P,j),s(P,B),s(m,N),s(m,V),s(V,Z),s(Z,x),s(V,U),s(V,Q),s(Q,L),s(V,F),s(V,z),s(z,se),s(m,oe),s(m,fe),s(fe,pe),s(pe,de),s(fe,re),s(fe,A),s(A,$),s(fe,ae),s(fe,Se),s(Se,qe),s(l,he),s(l,je),s(je,Ie),s(Ie,Be),s(Be,Ce),s(Ie,Re),s(Ie,He),s(He,ze),s(ze,Ne),s(Ne,ve),s(ze,ge),s(ze,Ee),s(Ee,We),s(He,Oe),s(He,et),s(et,Ke),s(Ke,_e),s(et,Ze),s(et,Ae),s(Ae,be),s(He,rt),s(He,dt),s(dt,Me),s(Me,Te),s(dt,Je),s(dt,W),s(W,ee),s(He,nt),s(He,Bt),s(Bt,Ge),s(Ge,Xe),s(Bt,Et),s(Bt,vt),s(vt,ut),s(l,_t),s(l,kt),s(kt,ct),s(ct,dl),s(dl,Mt),s(ct,pt),s(ct,Tt);for(let kl=0;kl<Wt.length;kl+=1)Wt[kl]&&Wt[kl].m(Tt,null);s(l,ll),s(l,jt),s(jt,sl),s(sl,yt),s(yt,bl),s(bl,Qt),s(yt,Pt),s(yt,Zt),s(Zt,Bl),s(sl,al),tt&&tt.m(sl,null),s(l,ol),s(l,Ol),s(Ol,Ut),s(Ut,Tl),s(Tl,bt),s(Ut,cl),s(Ut,Ot),s(Ot,Il),s(Il,Lt),s(Il,Al),s(Il,Fl),s(Fl,$l),s($l,Ml),s(Fl,es),s(Fl,Jl),s(Jl,Yl),s(Ot,Ps),s(Ot,pl),ht&&ht.m(pl,null),s(pl,Rl),fl&&fl.m(pl,null),s(pl,hl),Pl&&Pl.m(pl,null),s(pl,Wl),s(pl,ml),s(ml,Sl),s(ml,ul),s(ml,zl),s(zl,Kl),s(Kl,Xt),s(zl,Vt),s(zl,zt),s(zt,il),s(zt,xt),s(zt,gl),s(zt,tl),vl&&vl.m(zt,null),s(pl,xe),s(pl,Ul),s(Ul,ts),s(Ul,Xl),s(Ul,xl),s(xl,Ds),ss||(Os=O(Zt,"click",t[6]),ss=!0)},p(Qe,[wt]){if(wt&16&&r!==(r=Qe[4]("routeEditor.preview")+"")&&v(a,r),wt&16&&d!==(d=Qe[4]("routeEditor.previewHelp")+"")&&v(c,d),wt&16&&k!==(k=Qe[4]("routeEditor.upstreams")+"")&&v(w,k),wt&4&&C!==(C=Qe[2].upstreamsCount+"")&&v(T,C),wt&16&&I!==(I=Qe[4]("routeEditor.totalWeight")+"")&&v(H,I),wt&4&&D!==(D=Qe[2].totalWeight+"")&&v(B,D),wt&16&&Y!==(Y=Qe[4]("routeEditor.features")+"")&&v(x,Y),wt&4&&S!==(S=[Qe[2].hasAuth,Qe[2].hasFailover,Qe[2].hasTransformer,Qe[2].hasPathRewrite].filter(Boolean).length+"")&&v(L,S),wt&16&&J!==(J=Qe[4]("routeEditor.featuresEnabled")+"")&&v(se,J),wt&16&&ne!==(ne=Qe[4]("routes.path")+"")&&v(de,ne),wt&17&&le!==(le=(Qe[0].path||Qe[4]("routeEditor.notSet"))+"")&&v($,le),wt&1&&ce!==(ce=Qe[0].path)&&o(A,"title",ce),wt&16&&Fe!==(Fe=Qe[4]("routeEditor.routePath")+"")&&v(qe,Fe),wt&16&&ke!==(ke=Qe[4]("routeEditor.enabledFeatures")+"")&&v(Ce,ke),wt&4&&te!==(te=Qe[2].hasAuth?"\u2713":"\u25CB")&&v(ve,te),wt&4&&ue!==(ue=\`badge \${Qe[2].hasAuth?"badge-success":"badge-ghost"}\`)&&o(Ne,"class",ue),wt&16&&ye!==(ye=Qe[4]("auth.routeAuth")+"")&&v(We,ye),wt&4&&we!==(we=Qe[2].hasFailover?"\u2713":"\u25CB")&&v(_e,we),wt&4&&Pe!==(Pe=\`badge \${Qe[2].hasFailover?"badge-success":"badge-ghost"}\`)&&o(Ke,"class",Pe),wt&16&&Ve!==(Ve=Qe[4]("routeEditor.failoverTitle")+"")&&v(be,Ve),wt&4&&Le!==(Le=Qe[2].hasTransformer?"\u2713":"\u25CB")&&v(Te,Le),wt&4&&it!==(it=\`badge \${Qe[2].hasTransformer?"badge-success":"badge-ghost"}\`)&&o(Me,"class",it),wt&16&&De!==(De=Qe[4]("routeEditor.transformer")+"")&&v(ee,De),wt&4&&gt!==(gt=Qe[2].hasPathRewrite?"\u2713":"\u25CB")&&v(Xe,gt),wt&4&&at!==(at=\`badge \${Qe[2].hasPathRewrite?"badge-success":"badge-ghost"}\`)&&o(Ge,"class",at),wt&16&&Ft!==(Ft=Qe[4]("routeEditor.pathRewrite")+"")&&v(ut,Ft),wt&16&&st!==(st=Qe[4]("routeEditor.upstreams")+"")&&v(Mt,st),wt&17){_l=ft(Qe[0].upstreams);let kl;for(kl=0;kl<_l.length;kl+=1){const $n=lc(Qe,_l,kl);Wt[kl]?Wt[kl].p($n,wt):(Wt[kl]=oc($n),Wt[kl].c(),Wt[kl].m(Tt,null))}for(;kl<Wt.length;kl+=1)Wt[kl].d(1);Wt.length=_l.length}wt&16&&Jt!==(Jt=Qe[4]("routeEditor.jsonConfig")+"")&&v(Qt,Jt),wt&18&&El!==(El=(Qe[1]?Qe[4]("common.hide"):Qe[4]("common.show"))+"")&&v(Bl,El),Qe[1]?tt?tt.p(Qe,wt):(tt=nc(Qe),tt.c(),tt.m(sl,null)):tt&&(tt.d(1),tt=null),wt&16&&Ye!==(Ye=Qe[4]("routeEditor.requestFlow")+"")&&v(bt,Ye),wt&16&&nl!==(nl=Qe[4]("routeEditor.clientRequest")+"")&&v(Ml,nl),wt&1&&Nl!==(Nl=(Qe[0].path||"/")+"")&&v(Yl,Nl),Qe[2].hasAuth?ht?ht.p(Qe,wt):(ht=rc(Qe),ht.c(),ht.m(pl,Rl)):ht&&(ht.d(1),ht=null),Qe[2].hasPathRewrite?fl?fl.p(Qe,wt):(fl=ic(Qe),fl.c(),fl.m(pl,hl)):fl&&(fl.d(1),fl=null),Qe[2].hasTransformer?Pl?Pl.p(Qe,wt):(Pl=ac(Qe),Pl.c(),Pl.m(pl,Wl)):Pl&&(Pl.d(1),Pl=null),wt&16&&Hl!==(Hl=Qe[4]("routeEditor.selectUpstream")+"")&&v(Xt,Hl),wt&4&&rl!==(rl=Qe[2].upstreamsCount+"")&&v(il,rl),wt&16&&el!==(el=Qe[4]("routeEditor.upstreams")+"")&&v(gl,el),Qe[2].hasFailover?vl?vl.p(Qe,wt):(vl=uc(Qe),vl.c(),vl.m(zt,null)):vl&&(vl.d(1),vl=null),wt&16&&ls!==(ls=Qe[4]("routeEditor.returnResponse")+"")&&v(Ds,ls)},i:ot,o:ot,d(Qe){Qe&&R(l),$t(Wt,Qe),tt&&tt.d(),ht&&ht.d(),fl&&fl.d(),Pl&&Pl.d(),vl&&vl.d(),ss=!1,Os()}}}function Wm(t,l,e){let n,r,a,f;Nt(t,Dt,m=>e(4,f=m));let{route:u}=l,d=!1;const c=()=>e(1,d=!d),p=()=>{navigator.clipboard.writeText(r),alert(f("common.copied"))};return t.$$set=m=>{"route"in m&&e(0,u=m.route)},t.$$.update=()=>{t.$$.dirty&1&&e(5,n={...u,upstreams:u.upstreams.map(({_uid:m,...g})=>g)}),t.$$.dirty&32&&e(3,r=JSON.stringify(n,null,2)),t.$$.dirty&1&&e(2,a={upstreamsCount:u.upstreams.length,hasAuth:u.auth?.enabled||!1,hasFailover:u.failover?.enabled||!1,hasTransformer:u.plugins&&u.plugins.length>0||!1,hasPathRewrite:u.pathRewrite&&Object.keys(u.pathRewrite).length>0,totalWeight:u.upstreams.reduce((m,g)=>m+(g.weight||100),0)})},[u,d,a,r,f,n,c,p]}class Km extends Kt{constructor(l){super(),Gt(this,l,Wm,Jm,Yt,{route:0})}}function _0(){return typeof window>"u"||typeof navigator>"u"?!1:/Mac|iPhone|iPad|iPod/.test(navigator.platform)||/Mac/.test(navigator.userAgent)}function fc(){return _0()?"\u2318":"Ctrl"}function Gm(t){return _0()?t.metaKey:t.ctrlKey}function dc(t,l,e){const n=t.slice();return n[52]=l[e],n}function cc(t){let l,e;return{c(){l=i("code"),e=_(t[2]),o(l,"class","px-2 py-1 bg-base-200 rounded text-sm font-mono text-gray-600")},m(n,r){q(n,l,r),s(l,e)},p(n,r){r[0]&4&&v(e,n[2])},d(n){n&&R(l)}}}function Ym(t){let l,e,n,r,a,f,u,d,c,p=t[16]("routeEditor.basicInfo")+"",m,g,b,k,w,y,E,C=t[16]("routeEditor.upstreams")+"",T,M,P,I=t[0].upstreams.length+"",H,j,D,B,N,V,Z,Y,x=t[16]("routeEditor.requestModification")+"",U,Q,S,L,F,z,J,se=t[16]("auth.routeAuth")+"",oe,fe,pe,ne,de,re,A,le,$=t[16]("routeEditor.failoverTitle")+"",ce,ae,Se,Fe,qe,he,je,Ie,Be,ke=t[16]("routeEditor.preview")+"",Ce,Re,He,ze,Ne=t[16]("shortcuts.title")+"",te,ve,ue,ge,Ee,ye,We,Oe,et,Ke=t[16]("shortcuts.save")+"",we,_e,Pe,Ze,Ae,Ve,be,rt,dt=t[16]("shortcuts.switchSection")+"",Me,Le,Te,it,Je,W,De=t[16]("shortcuts.cancel")+"",ee,nt,Bt,Ge,gt,Xe,at,Et,vt,Ft,ut,_t=t[0].auth?.enabled&&pc(),kt=t[0].failover?.enabled&&hc(),ct=!t[1]&&mc(t);const dl=[tg,eg,$m,xm,Xm,Zm],st=[];function Mt(pt,Tt){return pt[6]==="basic"?0:pt[6]==="upstreams"?1:pt[6]==="modification"?2:pt[6]==="auth"?3:pt[6]==="failover"?4:pt[6]==="preview"?5:-1}return~(at=Mt(t))&&(Et=st[at]=dl[at](t)),{c(){l=i("div"),e=i("div"),n=i("div"),r=i("ul"),a=i("li"),f=i("button"),u=ie("svg"),d=ie("path"),c=h(),m=_(p),g=h(),b=i("li"),k=i("button"),w=ie("svg"),y=ie("path"),E=h(),T=_(C),M=h(),P=i("span"),H=_(I),D=h(),B=i("li"),N=i("button"),V=ie("svg"),Z=ie("path"),Y=h(),U=_(x),Q=h(),S=i("li"),L=i("button"),F=ie("svg"),z=ie("path"),J=h(),oe=_(se),fe=h(),_t&&_t.c(),pe=h(),ne=i("li"),de=i("button"),re=ie("svg"),A=ie("path"),le=h(),ce=_($),ae=h(),kt&&kt.c(),Se=h(),Fe=i("li"),qe=i("button"),he=ie("svg"),je=ie("path"),Ie=ie("path"),Be=h(),Ce=_(ke),Re=h(),He=i("div"),ze=i("div"),te=_(Ne),ve=h(),ue=i("div"),ge=i("div"),Ee=i("kbd"),Ee.textContent=\`\${fc()}\`,ye=_(" + "),We=i("kbd"),We.textContent="S",Oe=h(),et=i("span"),we=_(Ke),_e=h(),Pe=i("div"),Ze=i("kbd"),Ze.textContent=\`\${fc()}\`,Ae=_(" + "),Ve=i("kbd"),Ve.textContent="1-6",be=h(),rt=i("span"),Me=_(dt),Le=h(),Te=i("div"),it=i("kbd"),it.textContent="Esc",Je=h(),W=i("span"),ee=_(De),nt=h(),ct&&ct.c(),Bt=h(),Ge=i("div"),gt=i("div"),Xe=i("div"),Et&&Et.c(),o(d,"stroke-linecap","round"),o(d,"stroke-linejoin","round"),o(d,"stroke-width","2"),o(d,"d","M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"),o(u,"xmlns","http://www.w3.org/2000/svg"),o(u,"class","h-5 w-5"),o(u,"fill","none"),o(u,"viewBox","0 0 24 24"),o(u,"stroke","currentColor"),X(f,"active",t[6]==="basic"),o(y,"stroke-linecap","round"),o(y,"stroke-linejoin","round"),o(y,"stroke-width","2"),o(y,"d","M13 10V3L4 14h7v7l9-11h-7z"),o(w,"xmlns","http://www.w3.org/2000/svg"),o(w,"class","h-5 w-5"),o(w,"fill","none"),o(w,"viewBox","0 0 24 24"),o(w,"stroke","currentColor"),o(P,"class","badge badge-sm tooltip tooltip-right"),o(P,"data-tip",j=t[16]("routeEditor.upstreamCountTooltip",{values:{count:t[0].upstreams.length}})),X(k,"active",t[6]==="upstreams"),o(Z,"stroke-linecap","round"),o(Z,"stroke-linejoin","round"),o(Z,"stroke-width","2"),o(Z,"d","M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z"),o(V,"xmlns","http://www.w3.org/2000/svg"),o(V,"class","h-5 w-5"),o(V,"fill","none"),o(V,"viewBox","0 0 24 24"),o(V,"stroke","currentColor"),X(N,"active",t[6]==="modification"),o(z,"stroke-linecap","round"),o(z,"stroke-linejoin","round"),o(z,"stroke-width","2"),o(z,"d","M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z"),o(F,"xmlns","http://www.w3.org/2000/svg"),o(F,"class","h-5 w-5"),o(F,"fill","none"),o(F,"viewBox","0 0 24 24"),o(F,"stroke","currentColor"),X(L,"active",t[6]==="auth"),o(A,"stroke-linecap","round"),o(A,"stroke-linejoin","round"),o(A,"stroke-width","2"),o(A,"d","M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"),o(re,"xmlns","http://www.w3.org/2000/svg"),o(re,"class","h-5 w-5"),o(re,"fill","none"),o(re,"viewBox","0 0 24 24"),o(re,"stroke","currentColor"),X(de,"active",t[6]==="failover"),o(je,"stroke-linecap","round"),o(je,"stroke-linejoin","round"),o(je,"stroke-width","2"),o(je,"d","M15 12a3 3 0 11-6 0 3 3 0 016 0z"),o(Ie,"stroke-linecap","round"),o(Ie,"stroke-linejoin","round"),o(Ie,"stroke-width","2"),o(Ie,"d","M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z"),o(he,"xmlns","http://www.w3.org/2000/svg"),o(he,"class","h-5 w-5"),o(he,"fill","none"),o(he,"viewBox","0 0 24 24"),o(he,"stroke","currentColor"),X(qe,"active",t[6]==="preview"),o(r,"class","menu bg-base-100 rounded-box shadow-lg gap-1"),o(ze,"class","font-semibold mb-2"),o(Ee,"class","kbd kbd-xs"),o(We,"class","kbd kbd-xs"),o(et,"class","ml-1"),o(Ze,"class","kbd kbd-xs"),o(Ve,"class","kbd kbd-xs"),o(rt,"class","ml-1"),o(it,"class","kbd kbd-xs"),o(W,"class","ml-1"),o(ue,"class","space-y-1 text-gray-500"),o(He,"class","mt-4 p-3 bg-base-100 rounded-box shadow-lg text-xs"),o(n,"class","sticky top-24"),o(e,"class","w-56 flex-shrink-0 relative z-10"),o(Xe,"class","card-body"),o(gt,"class","card bg-base-100 shadow-md"),o(Ge,"class","flex-1 ml-6 relative"),o(l,"class","max-w-7xl mx-auto flex gap-0 p-6 pb-32")},m(pt,Tt){q(pt,l,Tt),s(l,e),s(e,n),s(n,r),s(r,a),s(a,f),s(f,u),s(u,d),s(f,c),s(f,m),s(r,g),s(r,b),s(b,k),s(k,w),s(w,y),s(k,E),s(k,T),s(k,M),s(k,P),s(P,H),s(r,D),s(r,B),s(B,N),s(N,V),s(V,Z),s(N,Y),s(N,U),s(r,Q),s(r,S),s(S,L),s(L,F),s(F,z),s(L,J),s(L,oe),s(L,fe),_t&&_t.m(L,null),s(r,pe),s(r,ne),s(ne,de),s(de,re),s(re,A),s(de,le),s(de,ce),s(de,ae),kt&&kt.m(de,null),s(r,Se),s(r,Fe),s(Fe,qe),s(qe,he),s(he,je),s(he,Ie),s(qe,Be),s(qe,Ce),s(n,Re),s(n,He),s(He,ze),s(ze,te),s(He,ve),s(He,ue),s(ue,ge),s(ge,Ee),s(ge,ye),s(ge,We),s(ge,Oe),s(ge,et),s(et,we),s(ue,_e),s(ue,Pe),s(Pe,Ze),s(Pe,Ae),s(Pe,Ve),s(Pe,be),s(Pe,rt),s(rt,Me),s(ue,Le),s(ue,Te),s(Te,it),s(Te,Je),s(Te,W),s(W,ee),s(n,nt),ct&&ct.m(n,null),s(l,Bt),s(l,Ge),s(Ge,gt),s(gt,Xe),~at&&st[at].m(Xe,null),vt=!0,Ft||(ut=[O(f,"click",t[27]),O(k,"click",t[28]),O(N,"click",t[29]),O(L,"click",t[30]),O(de,"click",t[31]),O(qe,"click",t[32])],Ft=!0)},p(pt,Tt){(!vt||Tt[0]&65536)&&p!==(p=pt[16]("routeEditor.basicInfo")+"")&&v(m,p),(!vt||Tt[0]&64)&&X(f,"active",pt[6]==="basic"),(!vt||Tt[0]&65536)&&C!==(C=pt[16]("routeEditor.upstreams")+"")&&v(T,C),(!vt||Tt[0]&1)&&I!==(I=pt[0].upstreams.length+"")&&v(H,I),(!vt||Tt[0]&65537&&j!==(j=pt[16]("routeEditor.upstreamCountTooltip",{values:{count:pt[0].upstreams.length}})))&&o(P,"data-tip",j),(!vt||Tt[0]&64)&&X(k,"active",pt[6]==="upstreams"),(!vt||Tt[0]&65536)&&x!==(x=pt[16]("routeEditor.requestModification")+"")&&v(U,x),(!vt||Tt[0]&64)&&X(N,"active",pt[6]==="modification"),(!vt||Tt[0]&65536)&&se!==(se=pt[16]("auth.routeAuth")+"")&&v(oe,se),pt[0].auth?.enabled?_t||(_t=pc(),_t.c(),_t.m(L,null)):_t&&(_t.d(1),_t=null),(!vt||Tt[0]&64)&&X(L,"active",pt[6]==="auth"),(!vt||Tt[0]&65536)&&$!==($=pt[16]("routeEditor.failoverTitle")+"")&&v(ce,$),pt[0].failover?.enabled?kt||(kt=hc(),kt.c(),kt.m(de,null)):kt&&(kt.d(1),kt=null),(!vt||Tt[0]&64)&&X(de,"active",pt[6]==="failover"),(!vt||Tt[0]&65536)&&ke!==(ke=pt[16]("routeEditor.preview")+"")&&v(Ce,ke),(!vt||Tt[0]&64)&&X(qe,"active",pt[6]==="preview"),(!vt||Tt[0]&65536)&&Ne!==(Ne=pt[16]("shortcuts.title")+"")&&v(te,Ne),(!vt||Tt[0]&65536)&&Ke!==(Ke=pt[16]("shortcuts.save")+"")&&v(we,Ke),(!vt||Tt[0]&65536)&&dt!==(dt=pt[16]("shortcuts.switchSection")+"")&&v(Me,dt),(!vt||Tt[0]&65536)&&De!==(De=pt[16]("shortcuts.cancel")+"")&&v(ee,De),pt[1]?ct&&(ct.d(1),ct=null):ct?ct.p(pt,Tt):(ct=mc(pt),ct.c(),ct.m(n,null));let ll=at;at=Mt(pt),at===ll?~at&&st[at].p(pt,Tt):(Et&&(Ql(),lt(st[ll],1,1,()=>{st[ll]=null}),Zl()),~at?(Et=st[at],Et?Et.p(pt,Tt):(Et=st[at]=dl[at](pt),Et.c()),$e(Et,1),Et.m(Xe,null)):Et=null)},i(pt){vt||($e(Et),vt=!0)},o(pt){lt(Et),vt=!1},d(pt){pt&&R(l),_t&&_t.d(),kt&&kt.d(),ct&&ct.d(),~at&&st[at].d(),Ft=!1,mt(ut)}}}function Qm(t){let l;return{c(){l=i("div"),l.innerHTML='<span class="loading loading-spinner loading-lg"></span>',o(l,"class","flex justify-center items-center h-64")},m(e,n){q(e,l,n)},p:ot,i:ot,o:ot,d(e){e&&R(l)}}}function pc(t){let l;return{c(){l=i("span"),l.textContent="\u2713",o(l,"class","badge badge-success badge-xs")},m(e,n){q(e,l,n)},d(e){e&&R(l)}}}function hc(t){let l;return{c(){l=i("span"),l.textContent="\u2713",o(l,"class","badge badge-success badge-xs")},m(e,n){q(e,l,n)},d(e){e&&R(l)}}}function mc(t){let l,e,n,r,a,f=t[16]("routeEditor.useTemplate")+"",u,d,c;return{c(){l=i("div"),e=i("button"),n=ie("svg"),r=ie("path"),a=h(),u=_(f),o(r,"stroke-linecap","round"),o(r,"stroke-linejoin","round"),o(r,"stroke-width","2"),o(r,"d","M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"),o(n,"xmlns","http://www.w3.org/2000/svg"),o(n,"class","h-4 w-4"),o(n,"fill","none"),o(n,"viewBox","0 0 24 24"),o(n,"stroke","currentColor"),o(e,"type","button"),o(e,"class","btn btn-sm btn-outline w-full gap-2"),o(l,"class","mt-4")},m(p,m){q(p,l,m),s(l,e),s(e,n),s(n,r),s(e,a),s(e,u),d||(c=O(e,"click",t[33]),d=!0)},p(p,m){m[0]&65536&&f!==(f=p[16]("routeEditor.useTemplate")+"")&&v(u,f)},d(p){p&&R(l),d=!1,c()}}}function Zm(t){let l,e;return l=new Km({props:{route:t[0]}}),{c(){Ht(l.$$.fragment)},m(n,r){qt(l,n,r),e=!0},p(n,r){const a={};r[0]&1&&(a.route=n[0]),l.$set(a)},i(n){e||($e(l.$$.fragment,n),e=!0)},o(n){lt(l.$$.fragment,n),e=!1},d(n){Rt(l,n)}}}function Xm(t){let l,e,n;function r(f){t[38](f)}let a={};return t[0]!==void 0&&(a.route=t[0]),l=new Vm({props:a}),Ll.push(()=>jl(l,"route",r)),{c(){Ht(l.$$.fragment)},m(f,u){qt(l,f,u),n=!0},p(f,u){const d={};!e&&u[0]&1&&(e=!0,d.route=f[0],Dl(()=>e=!1)),l.$set(d)},i(f){n||($e(l.$$.fragment,f),n=!0)},o(f){lt(l.$$.fragment,f),n=!1},d(f){Rt(l,f)}}}function xm(t){let l,e,n;function r(f){t[37](f)}let a={};return t[0]!==void 0&&(a.route=t[0]),l=new Am({props:a}),Ll.push(()=>jl(l,"route",r)),{c(){Ht(l.$$.fragment)},m(f,u){qt(l,f,u),n=!0},p(f,u){const d={};!e&&u[0]&1&&(e=!0,d.route=f[0],Dl(()=>e=!1)),l.$set(d)},i(f){n||($e(l.$$.fragment,f),n=!0)},o(f){lt(l.$$.fragment,f),n=!1},d(f){Rt(l,f)}}}function $m(t){let l,e,n;function r(f){t[36](f)}let a={};return t[0]!==void 0&&(a.route=t[0]),l=new Dm({props:a}),Ll.push(()=>jl(l,"route",r)),{c(){Ht(l.$$.fragment)},m(f,u){qt(l,f,u),n=!0},p(f,u){const d={};!e&&u[0]&1&&(e=!0,d.route=f[0],Dl(()=>e=!1)),l.$set(d)},i(f){n||($e(l.$$.fragment,f),n=!0)},o(f){lt(l.$$.fragment,f),n=!1},d(f){Rt(l,f)}}}function eg(t){let l,e,n;function r(f){t[35](f)}let a={errors:t[8],weightErrors:t[9]};return t[0]!==void 0&&(a.route=t[0]),l=new Rm({props:a}),Ll.push(()=>jl(l,"route",r)),{c(){Ht(l.$$.fragment)},m(f,u){qt(l,f,u),n=!0},p(f,u){const d={};u[0]&256&&(d.errors=f[8]),u[0]&512&&(d.weightErrors=f[9]),!e&&u[0]&1&&(e=!0,d.route=f[0],Dl(()=>e=!1)),l.$set(d)},i(f){n||($e(l.$$.fragment,f),n=!0)},o(f){lt(l.$$.fragment,f),n=!1},d(f){Rt(l,f)}}}function tg(t){let l,e,n;function r(f){t[34](f)}let a={errors:t[8]};return t[0]!==void 0&&(a.route=t[0]),l=new tm({props:a}),Ll.push(()=>jl(l,"route",r)),{c(){Ht(l.$$.fragment)},m(f,u){qt(l,f,u),n=!0},p(f,u){const d={};u[0]&256&&(d.errors=f[8]),!e&&u[0]&1&&(e=!0,d.route=f[0],Dl(()=>e=!1)),l.$set(d)},i(f){n||($e(l.$$.fragment,f),n=!0)},o(f){lt(l.$$.fragment,f),n=!1},d(f){Rt(l,f)}}}function gc(t){let l,e=t[16]("autosave.lastSaved")+"",n,r,a=t[19](t[12])+"",f;return{c(){l=i("span"),n=_(e),r=_(": "),f=_(a),o(l,"class","text-xs text-gray-500")},m(u,d){q(u,l,d),s(l,n),s(l,r),s(l,f)},p(u,d){d[0]&65536&&e!==(e=u[16]("autosave.lastSaved")+"")&&v(n,e),d[0]&4096&&a!==(a=u[19](u[12])+"")&&v(f,a)},d(u){u&&R(l)}}}function lg(t){let l,e,n,r,a,f=t[16]("validation.allGood")+"",u;return{c(){l=i("div"),e=ie("svg"),n=ie("path"),r=h(),a=i("span"),u=_(f),o(n,"stroke-linecap","round"),o(n,"stroke-linejoin","round"),o(n,"stroke-width","2"),o(n,"d","M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"),o(e,"xmlns","http://www.w3.org/2000/svg"),o(e,"class","h-5 w-5"),o(e,"fill","none"),o(e,"viewBox","0 0 24 24"),o(e,"stroke","currentColor"),o(a,"class","text-sm font-medium"),o(l,"class","flex items-center gap-2 text-success")},m(d,c){q(d,l,c),s(l,e),s(e,n),s(l,r),s(l,a),s(a,u)},p(d,c){c[0]&65536&&f!==(f=d[16]("validation.allGood")+"")&&v(u,f)},d(d){d&&R(l)}}}function sg(t){let l,e,n,r,a,f=t[10].length+"",u,d,c=t[16]("validation.errors")+"",p,m,g,b=(t[7]?t[16]("common.hide"):t[16]("common.show"))+"",k,w,y;return{c(){l=i("div"),e=ie("svg"),n=ie("path"),r=h(),a=i("span"),u=_(f),d=h(),p=_(c),m=h(),g=i("button"),k=_(b),o(n,"stroke-linecap","round"),o(n,"stroke-linejoin","round"),o(n,"stroke-width","2"),o(n,"d","M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"),o(e,"xmlns","http://www.w3.org/2000/svg"),o(e,"class","h-5 w-5"),o(e,"fill","none"),o(e,"viewBox","0 0 24 24"),o(e,"stroke","currentColor"),o(a,"class","text-sm font-medium"),o(g,"class","btn btn-xs btn-ghost"),o(l,"class","flex items-center gap-2 text-error")},m(E,C){q(E,l,C),s(l,e),s(e,n),s(l,r),s(l,a),s(a,u),s(a,d),s(a,p),s(l,m),s(l,g),s(g,k),w||(y=O(g,"click",t[39]),w=!0)},p(E,C){C[0]&1024&&f!==(f=E[10].length+"")&&v(u,f),C[0]&65536&&c!==(c=E[16]("validation.errors")+"")&&v(p,c),C[0]&65664&&b!==(b=(E[7]?E[16]("common.hide"):E[16]("common.show"))+"")&&v(k,b)},d(E){E&&R(l),w=!1,y()}}}function og(t){let l,e;return{c(){l=ie("svg"),e=ie("path"),o(e,"stroke-linecap","round"),o(e,"stroke-linejoin","round"),o(e,"stroke-width","2"),o(e,"d","M8 7H5a2 2 0 00-2 2v9a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-3m-1 4l-3 3m0 0l-3-3m3 3V4"),o(l,"xmlns","http://www.w3.org/2000/svg"),o(l,"class","h-5 w-5"),o(l,"fill","none"),o(l,"viewBox","0 0 24 24"),o(l,"stroke","currentColor")},m(n,r){q(n,l,r),s(l,e)},d(n){n&&R(l)}}}function ng(t){let l;return{c(){l=i("span"),o(l,"class","loading loading-spinner loading-sm")},m(e,n){q(e,l,n)},d(e){e&&R(l)}}}function _c(t){let l,e,n=ft(t[10]),r=[];for(let a=0;a<n.length;a+=1)r[a]=bc(dc(t,n,a));return{c(){l=i("div"),e=i("ul");for(let a=0;a<r.length;a+=1)r[a].c();o(e,"class","text-sm space-y-1"),o(l,"class","mt-3 p-3 bg-error/10 rounded-lg border border-error/20")},m(a,f){q(a,l,f),s(l,e);for(let u=0;u<r.length;u+=1)r[u]&&r[u].m(e,null)},p(a,f){if(f[0]&1024){n=ft(a[10]);let u;for(u=0;u<n.length;u+=1){const d=dc(a,n,u);r[u]?r[u].p(d,f):(r[u]=bc(d),r[u].c(),r[u].m(e,null))}for(;u<r.length;u+=1)r[u].d(1);r.length=n.length}},d(a){a&&R(l),$t(r,a)}}}function bc(t){let l,e,n,r,a=t[52].field+"",f,u,d=t[52].message+"",c,p;return{c(){l=i("li"),e=i("span"),e.textContent="\u2022",n=h(),r=i("span"),f=_(a),u=_(": "),c=_(d),p=h(),o(e,"class","text-error"),o(l,"class","flex items-start gap-2")},m(m,g){q(m,l,g),s(l,e),s(l,n),s(l,r),s(r,f),s(r,u),s(r,c),s(l,p)},p(m,g){g[0]&1024&&a!==(a=m[52].field+"")&&v(f,a),g[0]&1024&&d!==(d=m[52].message+"")&&v(c,d)},d(m){m&&R(l)}}}function rg(t){let l,e,n,r,a,f,u,d=t[16]("breadcrumb.home")+"",c,p,m,g,b=t[16]("breadcrumb.routes")+"",k,w,y,E,C,T=(t[1]?t[16]("breadcrumb.editRoute"):t[16]("breadcrumb.newRoute"))+"",M,P,I,H,j,D,B,N,V,Z,Y,x,U,Q,S,L=t[16]("common.cancel")+"",F,z,J,se,oe=t[16]("common.save")+"",fe,pe,ne,de,re,A,le,$,ce,ae,Se,Fe,qe,he,je,Ie,Be,ke=t[16]("confirmDialog.no")+"",Ce,Re,He,ze=t[16]("confirmDialog.yes")+"",Ne,te,ve,ue,ge,Ee,ye=t[1]&&cc(t);const We=[Qm,Ym],Oe=[];function et(Me,Le){return Me[3]?0:1}H=et(t),j=Oe[H]=We[H](t);let Ke=t[12]&&!t[1]&&gc(t);function we(Me,Le){if(Me[10].length>0)return sg;if(Me[11])return lg}let _e=we(t),Pe=_e&&_e(t);function Ze(Me,Le){return Me[4]?ng:og}let Ae=Ze(t),Ve=Ae(t),be=t[7]&&t[10].length>0&&_c(t);function rt(Me){t[40](Me)}let dt={};return t[5]!==void 0&&(dt.showTemplates=t[5]),re=new Jh({props:dt}),Ll.push(()=>jl(re,"showTemplates",rt)),re.$on("select",t[22]),{c(){l=i("div"),e=i("div"),n=i("div"),r=i("div"),a=i("ul"),f=i("li"),u=i("button"),c=_(d),p=h(),m=i("li"),g=i("button"),k=_(b),w=h(),y=i("li"),E=i("span"),C=i("span"),M=_(T),P=h(),ye&&ye.c(),I=h(),j.c(),D=h(),B=i("div"),N=i("div"),V=i("div"),Z=i("div"),Ke&&Ke.c(),Y=h(),x=i("div"),Pe&&Pe.c(),U=h(),Q=i("div"),S=i("button"),F=_(L),z=h(),J=i("button"),Ve.c(),se=h(),fe=_(oe),ne=h(),be&&be.c(),de=h(),Ht(re.$$.fragment),le=h(),$=i("dialog"),ce=i("div"),ae=i("h3"),Se=_(t[14]),Fe=h(),qe=i("p"),he=_(t[15]),je=h(),Ie=i("div"),Be=i("button"),Ce=_(ke),Re=h(),He=i("button"),Ne=_(ze),te=h(),ve=i("button"),o(u,"type","button"),o(u,"class","link link-hover"),o(g,"type","button"),o(g,"class","link link-hover"),o(E,"class","flex items-center gap-2"),o(r,"class","breadcrumbs text-sm"),o(n,"class","max-w-7xl mx-auto px-6 py-4"),o(e,"class","bg-base-100 border-b border-base-300"),o(Z,"class","flex items-center gap-4"),o(S,"class","btn btn-outline"),S.disabled=t[4],o(J,"class","btn btn-primary"),J.disabled=pe=!t[11]||t[4],o(Q,"class","flex gap-3"),o(x,"class","flex items-center gap-4"),o(V,"class","flex justify-between items-center"),o(N,"class","max-w-7xl mx-auto px-6 py-4"),o(B,"class","fixed bottom-0 left-0 right-0 bg-base-100 border-t border-base-300 shadow-2xl z-40"),o(ae,"class","font-bold text-lg"),o(qe,"class","py-4"),o(Be,"class","btn btn-ghost"),o(He,"class","btn btn-primary"),o(Ie,"class","modal-action"),o(ce,"class","modal-box"),o(ve,"type","button"),o(ve,"class","modal-backdrop"),o(ve,"aria-label","Close dialog"),o($,"class","modal"),X($,"modal-open",t[13]),o(l,"class","min-h-screen bg-base-200")},m(Me,Le){q(Me,l,Le),s(l,e),s(e,n),s(n,r),s(r,a),s(a,f),s(f,u),s(u,c),s(a,p),s(a,m),s(m,g),s(g,k),s(a,w),s(a,y),s(y,E),s(E,C),s(C,M),s(E,P),ye&&ye.m(E,null),s(l,I),Oe[H].m(l,null),s(l,D),s(l,B),s(B,N),s(N,V),s(V,Z),Ke&&Ke.m(Z,null),s(V,Y),s(V,x),Pe&&Pe.m(x,null),s(x,U),s(x,Q),s(Q,S),s(S,F),s(Q,z),s(Q,J),Ve.m(J,null),s(J,se),s(J,fe),s(N,ne),be&&be.m(N,null),s(l,de),qt(re,l,null),s(l,le),s(l,$),s($,ce),s(ce,ae),s(ae,Se),s(ce,Fe),s(ce,qe),s(qe,he),s(ce,je),s(ce,Ie),s(Ie,Be),s(Be,Ce),s(Ie,Re),s(Ie,He),s(He,Ne),s($,te),s($,ve),ue=!0,ge||(Ee=[O(u,"click",t[25]),O(g,"click",t[26]),O(S,"click",t[21]),O(J,"click",t[20]),O(Be,"click",t[18]),O(He,"click",t[17]),O(ve,"click",t[18])],ge=!0)},p(Me,Le){(!ue||Le[0]&65536)&&d!==(d=Me[16]("breadcrumb.home")+"")&&v(c,d),(!ue||Le[0]&65536)&&b!==(b=Me[16]("breadcrumb.routes")+"")&&v(k,b),(!ue||Le[0]&65538)&&T!==(T=(Me[1]?Me[16]("breadcrumb.editRoute"):Me[16]("breadcrumb.newRoute"))+"")&&v(M,T),Me[1]?ye?ye.p(Me,Le):(ye=cc(Me),ye.c(),ye.m(E,null)):ye&&(ye.d(1),ye=null);let Te=H;H=et(Me),H===Te?Oe[H].p(Me,Le):(Ql(),lt(Oe[Te],1,1,()=>{Oe[Te]=null}),Zl(),j=Oe[H],j?j.p(Me,Le):(j=Oe[H]=We[H](Me),j.c()),$e(j,1),j.m(l,D)),Me[12]&&!Me[1]?Ke?Ke.p(Me,Le):(Ke=gc(Me),Ke.c(),Ke.m(Z,null)):Ke&&(Ke.d(1),Ke=null),_e===(_e=we(Me))&&Pe?Pe.p(Me,Le):(Pe&&Pe.d(1),Pe=_e&&_e(Me),Pe&&(Pe.c(),Pe.m(x,U))),(!ue||Le[0]&65536)&&L!==(L=Me[16]("common.cancel")+"")&&v(F,L),(!ue||Le[0]&16)&&(S.disabled=Me[4]),Ae!==(Ae=Ze(Me))&&(Ve.d(1),Ve=Ae(Me),Ve&&(Ve.c(),Ve.m(J,se))),(!ue||Le[0]&65536)&&oe!==(oe=Me[16]("common.save")+"")&&v(fe,oe),(!ue||Le[0]&2064&&pe!==(pe=!Me[11]||Me[4]))&&(J.disabled=pe),Me[7]&&Me[10].length>0?be?be.p(Me,Le):(be=_c(Me),be.c(),be.m(N,null)):be&&(be.d(1),be=null);const it={};!A&&Le[0]&32&&(A=!0,it.showTemplates=Me[5],Dl(()=>A=!1)),re.$set(it),(!ue||Le[0]&16384)&&v(Se,Me[14]),(!ue||Le[0]&32768)&&v(he,Me[15]),(!ue||Le[0]&65536)&&ke!==(ke=Me[16]("confirmDialog.no")+"")&&v(Ce,ke),(!ue||Le[0]&65536)&&ze!==(ze=Me[16]("confirmDialog.yes")+"")&&v(Ne,ze),(!ue||Le[0]&8192)&&X($,"modal-open",Me[13])},i(Me){ue||($e(j),$e(re.$$.fragment,Me),ue=!0)},o(Me){lt(j),lt(re.$$.fragment,Me),ue=!1},d(Me){Me&&R(l),ye&&ye.d(),Oe[H].d(),Ke&&Ke.d(),Pe&&Pe.d(),Ve.d(),be&&be.d(),Rt(re),ge=!1,mt(Ee)}}}function ig(t,l,e){let n;Nt(t,Dt,ae=>e(16,n=ae));let{params:r={}}=l,a=!1,f="",u=!0,d=!1,c=!1,p="basic",m=!1,g={path:"",upstreams:[{_uid:lr(),target:"",weight:100,priority:1}],headers:{add:{},remove:[],default:{}},body:{add:{},remove:[],replace:{},default:{}},query:{add:{},remove:[],replace:{},default:{}}},b=[],k=[],w=[],y=!1,E=null,C=null,T=null,M=!1,P="",I="",H=null;function j(ae,Se,Fe){e(14,P=ae),e(15,I=Se),H=Fe,e(13,M=!0)}function D(){e(13,M=!1),H&&(H(),H=null)}function B(){e(13,M=!1),H=null}function N(ae){if((ae.metaKey||ae.ctrlKey)&&ae.key==="s"&&(ae.preventDefault(),y&&!d&&x()),ae.key==="Escape"&&U(),ae.key>="1"&&ae.key<="6"&&Gm(ae)&&!ae.altKey){const Fe=["basic","upstreams","modification","auth","failover","preview"][parseInt(ae.key)-1];Fe&&(e(6,p=Fe),ae.preventDefault())}}function V(){if(!a)try{localStorage.setItem("bungee-route-draft",JSON.stringify(g)),e(12,C=Date.now())}catch(ae){console.error("Failed to auto-save draft:",ae)}}function Z(ae){const Se=Math.floor((Date.now()-ae)/1e3);return Se<60?n("autosave.justNow"):Se<3600?n("autosave.minutesAgo",{values:{minutes:Math.floor(Se/60)}}):n("autosave.hoursAgo",{values:{hours:Math.floor(Se/3600)}})}async function Y(){try{const ae=await oh(g),Se=lh(g.upstreams);e(8,b=ae),e(9,k=Se),e(10,w=[...ae,...Se]),e(11,y=w.length===0&&g.upstreams.length>0)}catch(ae){console.error("Validation failed:",ae),e(11,y=!1)}}async function x(){if(!y){At.show(n("routeEditor.saveFailed",{values:{error:n("common.error")}}),"error");return}try{e(4,d=!0);const ae={...g,upstreams:L0(g.upstreams,[Se=>Se.priority??1]).map(({_uid:Se,...Fe})=>Fe)};a?(await go.update(f,ae),At.show(n("routeEditor.routeUpdated"),"success")):(await go.create(ae),At.show(n("routeEditor.routeSaved"),"success"),localStorage.removeItem("bungee-route-draft")),Qi()}catch(ae){At.show(n("routeEditor.saveFailed",{values:{error:ae.message}}),"error")}finally{e(4,d=!1)}}function U(){j(n("confirmDialog.cancelTitle"),n("confirmDialog.cancelMessage"),()=>Qi())}function Q(ae){const Se=ae.detail;e(0,g={...g,...Se,headers:Se.headers||g.headers,body:Se.body||g.body,query:Se.query||g.query,upstreams:Se.upstreams?.map(Fe=>({...Fe,_uid:lr(),headers:Fe.headers||{add:{},remove:[],default:{}},body:Fe.body||{add:{},remove:[],replace:{},default:{}},query:Fe.query||{add:{},remove:[],replace:{},default:{}}}))||g.upstreams}),At.show(n("routeEditor.templateApplied"),"success")}Hs(async()=>{if(window.addEventListener("keydown",N),T=setInterval(()=>{V()},3e4),r.path){e(1,a=!0),e(2,f=decodeURIComponent(r.path));try{const ae=await go.get(f);ae?(e(0,g=ae),e(0,g.headers=g.headers||{add:{},remove:[],default:{}},g),e(0,g.body=g.body||{add:{},remove:[],replace:{},default:{}},g),e(0,g.query=g.query||{add:{},remove:[],replace:{},default:{}},g),e(0,g.upstreams=g.upstreams.map(Se=>({...Se,_uid:lr(),headers:Se.headers||{add:{},remove:[],default:{}},body:Se.body||{add:{},remove:[],replace:{},default:{}},query:Se.query||{add:{},remove:[],replace:{},default:{}}})),g)):(At.show(n("routes.noRoutes"),"error"),Qi())}catch(ae){At.show(n("routeEditor.saveFailed",{values:{error:ae.message}}),"error"),Qi()}}else try{const ae=localStorage.getItem("bungee-route-draft");if(ae){const Se=JSON.parse(ae);j(n("confirmDialog.restoreDraftTitle"),n("confirmDialog.restoreDraftMessage"),()=>{e(0,g=Se)})}}catch(ae){console.error("Failed to restore draft:",ae)}e(3,u=!1)}),xn(()=>{window.removeEventListener("keydown",N),T&&clearInterval(T)});const S=()=>window.location.hash="/",L=()=>window.location.hash="/routes",F=()=>e(6,p="basic"),z=()=>e(6,p="upstreams"),J=()=>e(6,p="modification"),se=()=>e(6,p="auth"),oe=()=>e(6,p="failover"),fe=()=>e(6,p="preview"),pe=()=>e(5,c=!0);function ne(ae){g=ae,e(0,g)}function de(ae){g=ae,e(0,g)}function re(ae){g=ae,e(0,g)}function A(ae){g=ae,e(0,g)}function le(ae){g=ae,e(0,g)}const $=()=>e(7,m=!m);function ce(ae){c=ae,e(5,c)}return t.$$set=ae=>{"params"in ae&&e(23,r=ae.params)},t.$$.update=()=>{t.$$.dirty[0]&16777217&&g&&(E&&clearTimeout(E),e(24,E=setTimeout(()=>{Y()},300)))},[g,a,f,u,d,c,p,m,b,k,w,y,C,M,P,I,n,D,B,Z,x,U,Q,r,E,S,L,F,z,J,se,oe,fe,pe,ne,de,re,A,le,$,ce]}class b0 extends Kt{constructor(l){super(),Gt(this,l,ig,rg,Yt,{params:23},null,[-1,-1])}}function vc(t,l,e){const n=t.slice();return n[43]=l[e][0],n[44]=l[e][1],n}function kc(t,l,e){const n=t.slice();return n[43]=l[e][0],n[44]=l[e][1],n}function wc(t,l,e){const n=t.slice();return n[43]=l[e][0],n[44]=l[e][1],n}function yc(t,l,e){const n=t.slice();n[52]=l[e],n[61]=e;const r=n[51].durations[n[61]];n[53]=r;const a=n[51].relativeTime[n[61]];n[54]=a;const f=n[53]/n[51].totalDuration*100;n[55]=f;const u=n[54]/n[51].totalDuration*100;n[56]=u;const d=Gg(n[52].step);n[57]=d;const c=Kg(n[52].step);n[58]=c;const p=(n[53]/n[51].totalDuration*100).toFixed(1);return n[59]=p,n}function Cc(t,l,e){const n=t.slice();return n[62]=l[e],n}function Hu(t){const l=t.slice(),e=l[27]();return l[51]=e,l}function Ec(t,l,e){const n=t.slice();return n[52]=l[e],n}function ag(t){let l,e,n,r,a=t[24]("logs.detail.copyToClipboard")+"",f;return{c(){l=ie("svg"),e=ie("path"),n=h(),r=i("span"),f=_(a),o(e,"stroke-linecap","round"),o(e,"stroke-linejoin","round"),o(e,"stroke-width","2"),o(e,"d","M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"),o(l,"xmlns","http://www.w3.org/2000/svg"),o(l,"class","h-4 w-4"),o(l,"fill","none"),o(l,"viewBox","0 0 24 24"),o(l,"stroke","currentColor"),o(r,"class","hidden md:inline")},m(u,d){q(u,l,d),s(l,e),q(u,n,d),q(u,r,d),s(r,f)},p(u,d){d[0]&16777216&&a!==(a=u[24]("logs.detail.copyToClipboard")+"")&&v(f,a)},d(u){u&&(R(l),R(n),R(r))}}}function ug(t){let l,e=t[24]("logs.detail.copied")+"",n;return{c(){l=i("span"),n=_(e),o(l,"class","text-success")},m(r,a){q(r,l,a),s(l,n)},p(r,a){a[0]&16777216&&e!==(e=r[24]("logs.detail.copied")+"")&&v(n,e)},d(r){r&&R(l)}}}function fg(t){let l;return{c(){l=i("span"),l.textContent="No steps recorded",o(l,"class","text-sm opacity-40")},m(e,n){q(e,l,n)},p:ot,d(e){e&&R(l)}}}function dg(t){let l,e,n=ft(t[0].processingSteps.slice(0,3)),r=[];for(let f=0;f<n.length;f+=1)r[f]=Tc(Ec(t,n,f));let a=t[0].processingSteps.length>3&&Sc(t);return{c(){for(let f=0;f<r.length;f+=1)r[f].c();l=h(),a&&a.c(),e=Gl()},m(f,u){for(let d=0;d<r.length;d+=1)r[d]&&r[d].m(f,u);q(f,l,u),a&&a.m(f,u),q(f,e,u)},p(f,u){if(u[0]&67108865){n=ft(f[0].processingSteps.slice(0,3));let d;for(d=0;d<n.length;d+=1){const c=Ec(f,n,d);r[d]?r[d].p(c,u):(r[d]=Tc(c),r[d].c(),r[d].m(l.parentNode,l))}for(;d<r.length;d+=1)r[d].d(1);r.length=n.length}f[0].processingSteps.length>3?a?a.p(f,u):(a=Sc(f),a.c(),a.m(e.parentNode,e)):a&&(a.d(1),a=null)},d(f){f&&(R(l),R(e)),$t(r,f),a&&a.d(f)}}}function Tc(t){let l,e=t[26](t[52].step)+"",n;return{c(){l=i("span"),n=_(e),o(l,"class","badge badge-sm badge-outline")},m(r,a){q(r,l,a),s(l,n)},p(r,a){a[0]&1&&e!==(e=r[26](r[52].step)+"")&&v(n,e)},d(r){r&&R(l)}}}function Sc(t){let l,e,n=t[0].processingSteps.length-3+"",r,a;return{c(){l=i("span"),e=_("+"),r=_(n),a=_(" more"),o(l,"class","badge badge-sm badge-ghost")},m(f,u){q(f,l,u),s(l,e),s(l,r),s(l,a)},p(f,u){u[0]&1&&n!==(n=f[0].processingSteps.length-3+"")&&v(r,n)},d(f){f&&R(l)}}}function Mc(t){let l,e,n,r,a,f=t[24]("logs.detail.processingTimeline")+"",u,d,c,p=t[24]("logs.detail.totalSteps",{values:{count:t[0].processingSteps.length}})+"",m,g,b=t[24]("logs.detail.totalDuration",{values:{duration:_o(t[51].totalDuration)}})+"",k,w,y,E=(t[22]?t[24]("logs.detail.hideTimeline"):t[24]("logs.detail.showTimeline"))+"",C,T,M,P,I=t[22]&&Rc(t);return{c(){l=i("div"),e=i("div"),n=i("div"),r=i("div"),a=i("h4"),u=_(f),d=h(),c=i("p"),m=_(p),g=_(\`\uFF0C
21267
+ \`),k=_(b),w=h(),y=i("button"),C=_(E),T=h(),I&&I.c(),o(a,"class","card-title text-base"),o(c,"class","text-xs opacity-60 mt-1"),o(y,"class","btn btn-sm btn-ghost"),o(n,"class","flex items-center justify-between mb-2"),o(e,"class","card-body p-4"),o(l,"class","card bg-base-200")},m(H,j){q(H,l,j),s(l,e),s(e,n),s(n,r),s(r,a),s(a,u),s(r,d),s(r,c),s(c,m),s(c,g),s(c,k),s(n,w),s(n,y),s(y,C),s(e,T),I&&I.m(e,null),M||(P=O(y,"click",t[31]),M=!0)},p(H,j){j[0]&16777216&&f!==(f=H[24]("logs.detail.processingTimeline")+"")&&v(u,f),j[0]&16777217&&p!==(p=H[24]("logs.detail.totalSteps",{values:{count:H[0].processingSteps.length}})+"")&&v(m,p),j[0]&16777216&&b!==(b=H[24]("logs.detail.totalDuration",{values:{duration:_o(H[51].totalDuration)}})+"")&&v(k,b),j[0]&20971520&&E!==(E=(H[22]?H[24]("logs.detail.hideTimeline"):H[24]("logs.detail.showTimeline"))+"")&&v(C,E),H[22]?I?I.p(H,j):(I=Rc(H),I.c(),I.m(e,null)):I&&(I.d(1),I=null)},d(H){H&&R(l),I&&I.d(),M=!1,P()}}}function Rc(t){let l,e,n,r,a,f,u,d,c,p,m=ft(t[0].processingSteps),g=[];for(let b=0;b<m.length;b+=1)g[b]=Ic(yc(t,m,b));return{c(){l=i("div"),e=i("div"),n=i("span"),n.textContent="0ms",r=h(),a=i("div"),f=h(),u=i("span"),u.textContent=\`\${_o(t[51].totalDuration)}\`,d=h();for(let b=0;b<g.length;b+=1)g[b].c();c=h(),p=i("div"),p.innerHTML='<div class="flex flex-wrap gap-4 text-xs"><div class="flex items-center gap-2"><div class="w-3 h-3 rounded-full bg-blue-500"></div> <span>Authentication</span></div> <div class="flex items-center gap-2"><div class="w-3 h-3 rounded-full bg-purple-500"></div> <span>Plugin</span></div> <div class="flex items-center gap-2"><div class="w-3 h-3 rounded-full bg-green-500"></div> <span>Upstream</span></div> <div class="flex items-center gap-2"><div class="w-3 h-3 rounded-full bg-orange-500"></div> <span>Transform</span></div> <div class="flex items-center gap-2"><div class="w-3 h-3 rounded-full bg-red-500"></div> <span>Error</span></div> <div class="flex items-center gap-2"><div class="w-3 h-3 rounded-full bg-yellow-500"></div> <span>Retry/Recovery</span></div></div>',o(a,"class","flex-1 border-t border-dashed border-base-content/20"),o(u,"class","mr-32"),o(e,"class","mb-4 flex items-center gap-2 text-xs opacity-50 px-64"),o(l,"class","mt-4"),o(p,"class","mt-6 pt-4 border-t border-base-300")},m(b,k){q(b,l,k),s(l,e),s(e,n),s(e,r),s(e,a),s(e,f),s(e,u),s(l,d);for(let w=0;w<g.length;w+=1)g[w]&&g[w].m(l,null);q(b,c,k),q(b,p,k)},p(b,k){if(k[0]&201326593){m=ft(b[0].processingSteps);let w;for(w=0;w<m.length;w+=1){const y=yc(b,m,w);g[w]?g[w].p(y,k):(g[w]=Ic(y),g[w].c(),g[w].m(l,null))}for(;w<g.length;w+=1)g[w].d(1);g.length=m.length}},d(b){b&&(R(l),R(c),R(p)),$t(g,b)}}}function qc(t){let l;return{c(){l=i("div"),o(l,"class","w-px bg-base-content opacity-20 flex-1 min-h-[2.5rem]")},m(e,n){q(e,l,n)},d(e){e&&R(l)}}}function Hc(t){let l=t[52].detail.plugins&&Array.isArray(t[52].detail.plugins),e,n,r,a,f=l&&Pc(t),u=t[52].detail.target&&jc(t),d=t[52].detail.level&&Dc(t),c=t[52].detail.error&&Bc(t);return{c(){f&&f.c(),e=h(),u&&u.c(),n=h(),d&&d.c(),r=h(),c&&c.c(),a=Gl()},m(p,m){f&&f.m(p,m),q(p,e,m),u&&u.m(p,m),q(p,n,m),d&&d.m(p,m),q(p,r,m),c&&c.m(p,m),q(p,a,m)},p(p,m){m[0]&1&&(l=p[52].detail.plugins&&Array.isArray(p[52].detail.plugins)),l?f?f.p(p,m):(f=Pc(p),f.c(),f.m(e.parentNode,e)):f&&(f.d(1),f=null),p[52].detail.target?u?u.p(p,m):(u=jc(p),u.c(),u.m(n.parentNode,n)):u&&(u.d(1),u=null),p[52].detail.level?d?d.p(p,m):(d=Dc(p),d.c(),d.m(r.parentNode,r)):d&&(d.d(1),d=null),p[52].detail.error?c?c.p(p,m):(c=Bc(p),c.c(),c.m(a.parentNode,a)):c&&(c.d(1),c=null)},d(p){p&&(R(e),R(n),R(r),R(a)),f&&f.d(p),u&&u.d(p),d&&d.d(p),c&&c.d(p)}}}function Pc(t){let l,e=ft(t[52].detail.plugins),n=[];for(let r=0;r<e.length;r+=1)n[r]=Lc(Cc(t,e,r));return{c(){for(let r=0;r<n.length;r+=1)n[r].c();l=Gl()},m(r,a){for(let f=0;f<n.length;f+=1)n[f]&&n[f].m(r,a);q(r,l,a)},p(r,a){if(a[0]&1){e=ft(r[52].detail.plugins);let f;for(f=0;f<e.length;f+=1){const u=Cc(r,e,f);n[f]?n[f].p(u,a):(n[f]=Lc(u),n[f].c(),n[f].m(l.parentNode,l))}for(;f<n.length;f+=1)n[f].d(1);n.length=e.length}},d(r){r&&R(l),$t(n,r)}}}function Lc(t){let l,e=t[62]+"",n;return{c(){l=i("span"),n=_(e),o(l,"class","badge badge-xs badge-primary badge-outline")},m(r,a){q(r,l,a),s(l,n)},p(r,a){a[0]&1&&e!==(e=r[62]+"")&&v(n,e)},d(r){r&&R(l)}}}function jc(t){let l,e=t[52].detail.target+"",n;return{c(){l=i("span"),n=_(e),o(l,"class","badge badge-xs badge-info badge-outline"),o(l,"title","Target upstream")},m(r,a){q(r,l,a),s(l,n)},p(r,a){a[0]&1&&e!==(e=r[52].detail.target+"")&&v(n,e)},d(r){r&&R(l)}}}function Dc(t){let l,e=t[52].detail.level+"",n;return{c(){l=i("span"),n=_(e),o(l,"class","badge badge-xs badge-warning badge-outline")},m(r,a){q(r,l,a),s(l,n)},p(r,a){a[0]&1&&e!==(e=r[52].detail.level+"")&&v(n,e)},d(r){r&&R(l)}}}function Bc(t){let l,e,n;return{c(){l=i("span"),e=_("Error"),o(l,"class","badge badge-xs badge-error badge-outline"),o(l,"title",n=t[52].detail.error)},m(r,a){q(r,l,a),s(l,e)},p(r,a){a[0]&1&&n!==(n=r[52].detail.error)&&o(l,"title",n)},d(r){r&&R(l)}}}function cg(t){let l;return{c(){l=i("span"),l.textContent=\`\${t[59]}%\`,o(l,"class","text-xs text-white px-2 leading-7")},m(e,n){q(e,l,n)},p:ot,d(e){e&&R(l)}}}function Ic(t){let l,e,n,r,a,f,u,d,c,p=t[26](t[52].step)+"",m,g,b,k,w=t[57]+"",y,E,C,T,M,P,I,H,j,D,B,N,V,Z,Y,x,U=t[61]<t[0].processingSteps.length-1&&qc(),Q=t[52].detail&&Hc(t),S=t[55]>5&&cg(t);return{c(){l=i("div"),e=i("div"),n=i("div"),r=i("div"),f=h(),U&&U.c(),u=h(),d=i("div"),c=i("div"),m=_(p),g=h(),b=i("div"),k=i("span"),y=_(w),E=h(),Q&&Q.c(),C=h(),T=i("div"),M=i("div"),P=i("div"),S&&S.c(),j=h(),D=i("div"),B=i("div"),B.textContent=\`+\${t[54]}ms\`,N=h(),V=i("div"),V.textContent=\`\${_o(t[53])}\`,Z=h(),Y=i("div"),Y.textContent=\`\${t[59]}%\`,x=h(),o(r,"class",a="w-3 h-3 rounded-full "+t[58]+" z-10"),o(n,"class","flex flex-col items-center"),o(c,"class","text-sm font-medium"),o(k,"class","badge badge-xs badge-ghost"),o(b,"class","text-xs opacity-50 mt-0.5 flex items-center gap-2 flex-wrap"),o(d,"class","flex-1 -mt-0.5"),o(e,"class","flex gap-3 shrink-0 w-64"),o(P,"class",I="absolute h-full "+t[58]+" opacity-70 group-hover:opacity-90 transition-all cursor-pointer"),s1(P,"left",t[56]+"%"),s1(P,"width",Math.max(t[55],1)+"%"),o(P,"title",H=t[52].step+": "+_o(t[53])+" ("+t[59]+"%)"),o(M,"class","w-full h-7 relative bg-base-300/30 rounded overflow-hidden"),o(T,"class","flex-1 flex items-center"),o(B,"class","opacity-60"),o(V,"class","font-semibold"),o(Y,"class","opacity-40"),o(D,"class","shrink-0 w-32 text-xs space-y-0.5 font-mono"),o(l,"class","flex gap-4 group relative mb-3")},m(L,F){q(L,l,F),s(l,e),s(e,n),s(n,r),s(n,f),U&&U.m(n,null),s(e,u),s(e,d),s(d,c),s(c,m),s(d,g),s(d,b),s(b,k),s(k,y),s(b,E),Q&&Q.m(b,null),s(l,C),s(l,T),s(T,M),s(M,P),S&&S.m(P,null),s(l,j),s(l,D),s(D,B),s(D,N),s(D,V),s(D,Z),s(D,Y),s(l,x)},p(L,F){F[0]&1&&a!==(a="w-3 h-3 rounded-full "+L[58]+" z-10")&&o(r,"class",a),L[61]<L[0].processingSteps.length-1?U||(U=qc(),U.c(),U.m(n,null)):U&&(U.d(1),U=null),F[0]&1&&p!==(p=L[26](L[52].step)+"")&&v(m,p),F[0]&1&&w!==(w=L[57]+"")&&v(y,w),L[52].detail?Q?Q.p(L,F):(Q=Hc(L),Q.c(),Q.m(b,null)):Q&&(Q.d(1),Q=null),L[55]>5&&S.p(L,F),F[0]&1&&I!==(I="absolute h-full "+L[58]+" opacity-70 group-hover:opacity-90 transition-all cursor-pointer")&&o(P,"class",I),F[0]&1&&H!==(H=L[52].step+": "+_o(L[53])+" ("+L[59]+"%)")&&o(P,"title",H)},d(L){L&&R(l),U&&U.d(),Q&&Q.d(),S&&S.d()}}}function pg(t){let l,e,n=t[24]("logs.detail.path")+"",r,a,f,u=t[0].path+"",d;return{c(){l=i("div"),e=i("div"),r=_(n),a=h(),f=i("div"),d=_(u),o(e,"class","text-xs opacity-60 mb-1"),o(f,"class","font-mono text-sm bg-base-300 p-2 rounded break-all")},m(c,p){q(c,l,p),s(l,e),s(e,r),s(l,a),s(l,f),s(f,d)},p(c,p){p[0]&16777216&&n!==(n=c[24]("logs.detail.path")+"")&&v(r,n),p[0]&1&&u!==(u=c[0].path+"")&&v(d,u)},d(c){c&&R(l)}}}function hg(t){let l,e,n=t[24]("logs.detail.originalPath")+"",r,a,f,u=t[0].path+"",d,c,p,m,g=t[24]("logs.detail.transformedPath")+"",b,k,w,y=t[0].transformedPath+"",E;return{c(){l=i("div"),e=i("div"),r=_(n),a=h(),f=i("div"),d=_(u),c=h(),p=i("div"),m=i("div"),b=_(g),k=h(),w=i("div"),E=_(y),o(e,"class","text-xs opacity-60 mb-1"),o(f,"class","font-mono text-sm bg-base-300 p-2 rounded break-all"),o(m,"class","text-xs opacity-60 mb-1"),o(w,"class","font-mono text-sm bg-base-300 p-2 rounded break-all")},m(C,T){q(C,l,T),s(l,e),s(e,r),s(l,a),s(l,f),s(f,d),q(C,c,T),q(C,p,T),s(p,m),s(m,b),s(p,k),s(p,w),s(w,E)},p(C,T){T[0]&16777216&&n!==(n=C[24]("logs.detail.originalPath")+"")&&v(r,n),T[0]&1&&u!==(u=C[0].path+"")&&v(d,u),T[0]&16777216&&g!==(g=C[24]("logs.detail.transformedPath")+"")&&v(b,g),T[0]&1&&y!==(y=C[0].transformedPath+"")&&v(E,y)},d(C){C&&(R(l),R(c),R(p))}}}function Ac(t){let l,e,n=t[24]("logs.detail.query")+"",r,a,f,u=t[0].query+"",d;return{c(){l=i("div"),e=i("div"),r=_(n),a=h(),f=i("div"),d=_(u),o(e,"class","text-xs opacity-60 mb-1"),o(f,"class","font-mono text-sm bg-base-300 p-2 rounded break-all")},m(c,p){q(c,l,p),s(l,e),s(e,r),s(l,a),s(l,f),s(f,d)},p(c,p){p[0]&16777216&&n!==(n=c[24]("logs.detail.query")+"")&&v(r,n),p[0]&1&&u!==(u=c[0].query+"")&&v(d,u)},d(c){c&&R(l)}}}function Fc(t){let l,e,n,r=t[24]("logs.detail.routePath")+"",a,f,u,d=t[0].routePath+"",c;return{c(){l=i("div"),e=i("div"),n=i("h4"),a=_(r),f=h(),u=i("div"),c=_(d),o(n,"class","card-title text-base mb-2"),o(u,"class","font-mono text-sm"),o(e,"class","card-body p-4"),o(l,"class","card bg-base-200")},m(p,m){q(p,l,m),s(l,e),s(e,n),s(n,a),s(e,f),s(e,u),s(u,c)},p(p,m){m[0]&16777216&&r!==(r=p[24]("logs.detail.routePath")+"")&&v(a,r),m[0]&1&&d!==(d=p[0].routePath+"")&&v(c,d)},d(p){p&&R(l)}}}function zc(t){let l,e,n,r=t[24]("logs.detail.upstream")+"",a,f,u,d=t[0].upstream+"",c,p,m=t[0].transformer&&Oc(t);return{c(){l=i("div"),e=i("div"),n=i("h4"),a=_(r),f=h(),u=i("div"),c=_(d),p=h(),m&&m.c(),o(n,"class","card-title text-base mb-2"),o(u,"class","font-mono text-sm mb-2"),o(e,"class","card-body p-4"),o(l,"class","card bg-base-200")},m(g,b){q(g,l,b),s(l,e),s(e,n),s(n,a),s(e,f),s(e,u),s(u,c),s(e,p),m&&m.m(e,null)},p(g,b){b[0]&16777216&&r!==(r=g[24]("logs.detail.upstream")+"")&&v(a,r),b[0]&1&&d!==(d=g[0].upstream+"")&&v(c,d),g[0].transformer?m?m.p(g,b):(m=Oc(g),m.c(),m.m(e,null)):m&&(m.d(1),m=null)},d(g){g&&R(l),m&&m.d()}}}function Oc(t){let l,e=t[24]("logs.detail.transformer")+"",n,r,a=t[0].transformer+"",f;return{c(){l=i("div"),n=_(e),r=_(": "),f=_(a),o(l,"class","text-xs opacity-60")},m(u,d){q(u,l,d),s(l,n),s(l,r),s(l,f)},p(u,d){d[0]&16777216&&e!==(e=u[24]("logs.detail.transformer")+"")&&v(n,e),d[0]&1&&a!==(a=u[0].transformer+"")&&v(f,a)},d(u){u&&R(l)}}}function Nc(t){let l,e,n,r,a,f,u=t[24]("logs.detail.errorInfo")+"",d,c,p,m=t[0].errorMessage+"",g;return{c(){l=i("div"),e=ie("svg"),n=ie("path"),r=h(),a=i("div"),f=i("div"),d=_(u),c=h(),p=i("div"),g=_(m),o(n,"stroke-linecap","round"),o(n,"stroke-linejoin","round"),o(n,"stroke-width","2"),o(n,"d","M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z"),o(e,"xmlns","http://www.w3.org/2000/svg"),o(e,"class","stroke-current shrink-0 h-6 w-6"),o(e,"fill","none"),o(e,"viewBox","0 0 24 24"),o(f,"class","font-bold"),o(p,"class","font-mono text-sm"),o(l,"class","alert alert-error")},m(b,k){q(b,l,k),s(l,e),s(e,n),s(l,r),s(l,a),s(a,f),s(f,d),s(a,c),s(a,p),s(p,g)},p(b,k){k[0]&16777216&&u!==(u=b[24]("logs.detail.errorInfo")+"")&&v(d,u),k[0]&1&&m!==(m=b[0].errorMessage+"")&&v(g,m)},d(b){b&&R(l)}}}function Uc(t){let l;function e(a,f){return a[0].originalReqHeaderId||a[0].originalReqBodyId?gg:mg}let n=e(t),r=n(t);return{c(){l=i("div"),r.c(),o(l,"class","space-y-4")},m(a,f){q(a,l,f),r.m(l,null)},p(a,f){n===(n=e(a))&&r?r.p(a,f):(r.d(1),r=n(a),r&&(r.c(),r.m(l,null)))},d(a){a&&R(l),r.d()}}}function mg(t){let l,e=t[24]("logs.detail.noDataAvailable")+"",n;return{c(){l=i("div"),n=_(e),o(l,"class","text-center py-8 opacity-60")},m(r,a){q(r,l,a),s(l,n)},p(r,a){a[0]&16777216&&e!==(e=r[24]("logs.detail.noDataAvailable")+"")&&v(n,e)},d(r){r&&R(l)}}}function gg(t){let l,e,n=t[0].originalReqHeaderId&&Vc(t),r=t[8]&&t[0].originalReqBodyId&&Wc(t);return{c(){n&&n.c(),l=h(),r&&r.c(),e=Gl()},m(a,f){n&&n.m(a,f),q(a,l,f),r&&r.m(a,f),q(a,e,f)},p(a,f){a[0].originalReqHeaderId?n?n.p(a,f):(n=Vc(a),n.c(),n.m(l.parentNode,l)):n&&(n.d(1),n=null),a[8]&&a[0].originalReqBodyId?r?r.p(a,f):(r=Wc(a),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null)},d(a){a&&(R(l),R(e)),n&&n.d(a),r&&r.d(a)}}}function Vc(t){let l,e,n=t[24]("logs.detail.requestHeaders")+"",r,a;function f(c,p){return c[17]?kg:c[19]?vg:c[15]!==null?bg:_g}let u=f(t),d=u(t);return{c(){l=i("div"),e=i("div"),r=_(n),a=h(),d.c(),o(e,"class","text-sm font-semibold mb-2")},m(c,p){q(c,l,p),s(l,e),s(e,r),s(l,a),d.m(l,null)},p(c,p){p[0]&16777216&&n!==(n=c[24]("logs.detail.requestHeaders")+"")&&v(r,n),u===(u=f(c))&&d?d.p(c,p):(d.d(1),d=u(c),d&&(d.c(),d.m(l,null)))},d(c){c&&R(l),d.d()}}}function _g(t){let l,e=t[24]("logs.detail.noHeaders")+"",n;return{c(){l=i("div"),n=_(e),o(l,"class","text-sm opacity-60")},m(r,a){q(r,l,a),s(l,n)},p(r,a){a[0]&16777216&&e!==(e=r[24]("logs.detail.noHeaders")+"")&&v(n,e)},d(r){r&&R(l)}}}function bg(t){let l,e,n,r,a,f=ft(Object.entries(t[15])),u=[];for(let d=0;d<f.length;d+=1)u[d]=Jc(wc(t,f,d));return{c(){l=i("div"),e=i("table"),n=i("thead"),n.innerHTML='<tr><th class="w-1/3">Name</th> <th>Value</th></tr>',r=h(),a=i("tbody");for(let d=0;d<u.length;d+=1)u[d].c();o(e,"class","table table-sm table-zebra"),o(l,"class","overflow-x-auto")},m(d,c){q(d,l,c),s(l,e),s(e,n),s(e,r),s(e,a);for(let p=0;p<u.length;p+=1)u[p]&&u[p].m(a,null)},p(d,c){if(c[0]&32768){f=ft(Object.entries(d[15]));let p;for(p=0;p<f.length;p+=1){const m=wc(d,f,p);u[p]?u[p].p(m,c):(u[p]=Jc(m),u[p].c(),u[p].m(a,null))}for(;p<u.length;p+=1)u[p].d(1);u.length=f.length}},d(d){d&&R(l),$t(u,d)}}}function vg(t){let l,e,n;return{c(){l=i("div"),e=i("span"),n=_(t[19]),o(e,"class","text-sm"),o(l,"class","alert alert-error")},m(r,a){q(r,l,a),s(l,e),s(e,n)},p(r,a){a[0]&524288&&v(n,r[19])},d(r){r&&R(l)}}}function kg(t){let l,e,n,r,a=t[24]("common.loading")+"",f;return{c(){l=i("div"),e=i("span"),n=h(),r=i("span"),f=_(a),o(e,"class","loading loading-spinner loading-sm"),o(r,"class","text-sm"),o(l,"class","flex items-center gap-2")},m(u,d){q(u,l,d),s(l,e),s(l,n),s(l,r),s(r,f)},p(u,d){d[0]&16777216&&a!==(a=u[24]("common.loading")+"")&&v(f,a)},d(u){u&&R(l)}}}function Jc(t){let l,e,n=t[43]+"",r,a,f,u=t[44]+"",d,c;return{c(){l=i("tr"),e=i("td"),r=_(n),a=h(),f=i("td"),d=_(u),c=h(),o(e,"class","font-mono text-xs"),o(f,"class","font-mono text-xs break-all")},m(p,m){q(p,l,m),s(l,e),s(e,r),s(l,a),s(l,f),s(f,d),s(l,c)},p(p,m){m[0]&32768&&n!==(n=p[43]+"")&&v(r,n),m[0]&32768&&u!==(u=p[44]+"")&&v(d,u)},d(p){p&&R(l)}}}function Wc(t){let l,e,n=t[24]("logs.detail.requestBody")+"",r,a;function f(c,p){return c[18]?Eg:c[20]?Cg:c[16]!==null?yg:wg}let u=f(t),d=u(t);return{c(){l=i("div"),e=i("div"),r=_(n),a=h(),d.c(),o(e,"class","text-sm font-semibold mb-2")},m(c,p){q(c,l,p),s(l,e),s(e,r),s(l,a),d.m(l,null)},p(c,p){p[0]&16777216&&n!==(n=c[24]("logs.detail.requestBody")+"")&&v(r,n),u===(u=f(c))&&d?d.p(c,p):(d.d(1),d=u(c),d&&(d.c(),d.m(l,null)))},d(c){c&&R(l),d.d()}}}function wg(t){let l,e=t[24]("logs.detail.noBody")+"",n;return{c(){l=i("div"),n=_(e),o(l,"class","text-sm opacity-60")},m(r,a){q(r,l,a),s(l,n)},p(r,a){a[0]&16777216&&e!==(e=r[24]("logs.detail.noBody")+"")&&v(n,e)},d(r){r&&R(l)}}}function yg(t){let l,e=Zn(t[16])+"",n;return{c(){l=i("pre"),n=_(e),o(l,"class","bg-base-300 p-4 rounded overflow-x-auto text-xs max-h-96")},m(r,a){q(r,l,a),s(l,n)},p(r,a){a[0]&65536&&e!==(e=Zn(r[16])+"")&&v(n,e)},d(r){r&&R(l)}}}function Cg(t){let l,e,n;return{c(){l=i("div"),e=i("span"),n=_(t[20]),o(e,"class","text-sm"),o(l,"class","alert alert-error")},m(r,a){q(r,l,a),s(l,e),s(e,n)},p(r,a){a[0]&1048576&&v(n,r[20])},d(r){r&&R(l)}}}function Eg(t){let l,e,n,r,a=t[24]("common.loading")+"",f;return{c(){l=i("div"),e=i("span"),n=h(),r=i("span"),f=_(a),o(e,"class","loading loading-spinner loading-sm"),o(r,"class","text-sm"),o(l,"class","flex items-center gap-2")},m(u,d){q(u,l,d),s(l,e),s(l,n),s(l,r),s(r,f)},p(u,d){d[0]&16777216&&a!==(a=u[24]("common.loading")+"")&&v(f,a)},d(u){u&&R(l)}}}function Kc(t){let l;function e(a,f){return a[0].reqHeaderId||a[0].reqBodyId?Sg:Tg}let n=e(t),r=n(t);return{c(){l=i("div"),r.c(),o(l,"class","space-y-4")},m(a,f){q(a,l,f),r.m(l,null)},p(a,f){n===(n=e(a))&&r?r.p(a,f):(r.d(1),r=n(a),r&&(r.c(),r.m(l,null)))},d(a){a&&R(l),r.d()}}}function Tg(t){let l,e=t[24]("logs.detail.noDataAvailable")+"",n;return{c(){l=i("div"),n=_(e),o(l,"class","text-center py-8 opacity-60")},m(r,a){q(r,l,a),s(l,n)},p(r,a){a[0]&16777216&&e!==(e=r[24]("logs.detail.noDataAvailable")+"")&&v(n,e)},d(r){r&&R(l)}}}function Sg(t){let l,e,n=t[0].reqHeaderId&&Gc(t),r=t[8]&&t[0].reqBodyId&&Qc(t);return{c(){n&&n.c(),l=h(),r&&r.c(),e=Gl()},m(a,f){n&&n.m(a,f),q(a,l,f),r&&r.m(a,f),q(a,e,f)},p(a,f){a[0].reqHeaderId?n?n.p(a,f):(n=Gc(a),n.c(),n.m(l.parentNode,l)):n&&(n.d(1),n=null),a[8]&&a[0].reqBodyId?r?r.p(a,f):(r=Qc(a),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null)},d(a){a&&(R(l),R(e)),n&&n.d(a),r&&r.d(a)}}}function Gc(t){let l,e,n=t[24]("logs.detail.requestHeaders")+"",r,a;function f(c,p){return c[11]?Hg:c[13]?qg:c[9]!==null?Rg:Mg}let u=f(t),d=u(t);return{c(){l=i("div"),e=i("div"),r=_(n),a=h(),d.c(),o(e,"class","text-sm font-semibold mb-2")},m(c,p){q(c,l,p),s(l,e),s(e,r),s(l,a),d.m(l,null)},p(c,p){p[0]&16777216&&n!==(n=c[24]("logs.detail.requestHeaders")+"")&&v(r,n),u===(u=f(c))&&d?d.p(c,p):(d.d(1),d=u(c),d&&(d.c(),d.m(l,null)))},d(c){c&&R(l),d.d()}}}function Mg(t){let l,e=t[24]("logs.detail.noHeaders")+"",n;return{c(){l=i("div"),n=_(e),o(l,"class","text-sm opacity-60")},m(r,a){q(r,l,a),s(l,n)},p(r,a){a[0]&16777216&&e!==(e=r[24]("logs.detail.noHeaders")+"")&&v(n,e)},d(r){r&&R(l)}}}function Rg(t){let l,e,n,r,a,f=ft(Object.entries(t[9])),u=[];for(let d=0;d<f.length;d+=1)u[d]=Yc(kc(t,f,d));return{c(){l=i("div"),e=i("table"),n=i("thead"),n.innerHTML='<tr><th class="w-1/3">Name</th> <th>Value</th></tr>',r=h(),a=i("tbody");for(let d=0;d<u.length;d+=1)u[d].c();o(e,"class","table table-sm table-zebra"),o(l,"class","overflow-x-auto")},m(d,c){q(d,l,c),s(l,e),s(e,n),s(e,r),s(e,a);for(let p=0;p<u.length;p+=1)u[p]&&u[p].m(a,null)},p(d,c){if(c[0]&512){f=ft(Object.entries(d[9]));let p;for(p=0;p<f.length;p+=1){const m=kc(d,f,p);u[p]?u[p].p(m,c):(u[p]=Yc(m),u[p].c(),u[p].m(a,null))}for(;p<u.length;p+=1)u[p].d(1);u.length=f.length}},d(d){d&&R(l),$t(u,d)}}}function qg(t){let l,e,n;return{c(){l=i("div"),e=i("span"),n=_(t[13]),o(e,"class","text-sm"),o(l,"class","alert alert-error")},m(r,a){q(r,l,a),s(l,e),s(e,n)},p(r,a){a[0]&8192&&v(n,r[13])},d(r){r&&R(l)}}}function Hg(t){let l,e,n,r,a=t[24]("common.loading")+"",f;return{c(){l=i("div"),e=i("span"),n=h(),r=i("span"),f=_(a),o(e,"class","loading loading-spinner loading-sm"),o(r,"class","text-sm"),o(l,"class","flex items-center gap-2")},m(u,d){q(u,l,d),s(l,e),s(l,n),s(l,r),s(r,f)},p(u,d){d[0]&16777216&&a!==(a=u[24]("common.loading")+"")&&v(f,a)},d(u){u&&R(l)}}}function Yc(t){let l,e,n=t[43]+"",r,a,f,u=t[44]+"",d,c;return{c(){l=i("tr"),e=i("td"),r=_(n),a=h(),f=i("td"),d=_(u),c=h(),o(e,"class","font-mono text-xs"),o(f,"class","font-mono text-xs break-all")},m(p,m){q(p,l,m),s(l,e),s(e,r),s(l,a),s(l,f),s(f,d),s(l,c)},p(p,m){m[0]&512&&n!==(n=p[43]+"")&&v(r,n),m[0]&512&&u!==(u=p[44]+"")&&v(d,u)},d(p){p&&R(l)}}}function Qc(t){let l,e,n=t[24]("logs.detail.requestBody")+"",r,a;function f(c,p){return c[4]?Dg:c[6]?jg:c[2]!==null?Lg:Pg}let u=f(t),d=u(t);return{c(){l=i("div"),e=i("div"),r=_(n),a=h(),d.c(),o(e,"class","text-sm font-semibold mb-2")},m(c,p){q(c,l,p),s(l,e),s(e,r),s(l,a),d.m(l,null)},p(c,p){p[0]&16777216&&n!==(n=c[24]("logs.detail.requestBody")+"")&&v(r,n),u===(u=f(c))&&d?d.p(c,p):(d.d(1),d=u(c),d&&(d.c(),d.m(l,null)))},d(c){c&&R(l),d.d()}}}function Pg(t){let l,e=t[24]("logs.detail.noBody")+"",n;return{c(){l=i("div"),n=_(e),o(l,"class","text-sm opacity-60")},m(r,a){q(r,l,a),s(l,n)},p(r,a){a[0]&16777216&&e!==(e=r[24]("logs.detail.noBody")+"")&&v(n,e)},d(r){r&&R(l)}}}function Lg(t){let l,e=Zn(t[2])+"",n;return{c(){l=i("pre"),n=_(e),o(l,"class","bg-base-300 p-4 rounded overflow-x-auto text-xs max-h-96")},m(r,a){q(r,l,a),s(l,n)},p(r,a){a[0]&4&&e!==(e=Zn(r[2])+"")&&v(n,e)},d(r){r&&R(l)}}}function jg(t){let l,e,n;return{c(){l=i("div"),e=i("span"),n=_(t[6]),o(e,"class","text-sm"),o(l,"class","alert alert-error")},m(r,a){q(r,l,a),s(l,e),s(e,n)},p(r,a){a[0]&64&&v(n,r[6])},d(r){r&&R(l)}}}function Dg(t){let l,e,n,r,a=t[24]("common.loading")+"",f;return{c(){l=i("div"),e=i("span"),n=h(),r=i("span"),f=_(a),o(e,"class","loading loading-spinner loading-sm"),o(r,"class","text-sm"),o(l,"class","flex items-center gap-2")},m(u,d){q(u,l,d),s(l,e),s(l,n),s(l,r),s(r,f)},p(u,d){d[0]&16777216&&a!==(a=u[24]("common.loading")+"")&&v(f,a)},d(u){u&&R(l)}}}function Zc(t){let l;function e(a,f){return a[0].respHeaderId||a[0].respBodyId?Ig:Bg}let n=e(t),r=n(t);return{c(){l=i("div"),r.c(),o(l,"class","space-y-4")},m(a,f){q(a,l,f),r.m(l,null)},p(a,f){n===(n=e(a))&&r?r.p(a,f):(r.d(1),r=n(a),r&&(r.c(),r.m(l,null)))},d(a){a&&R(l),r.d()}}}function Bg(t){let l,e=t[24]("logs.detail.noDataAvailable")+"",n;return{c(){l=i("div"),n=_(e),o(l,"class","text-center py-8 opacity-60")},m(r,a){q(r,l,a),s(l,n)},p(r,a){a[0]&16777216&&e!==(e=r[24]("logs.detail.noDataAvailable")+"")&&v(n,e)},d(r){r&&R(l)}}}function Ig(t){let l,e,n=t[0].respHeaderId&&Xc(t),r=t[8]&&t[0].respBodyId&&$c(t);return{c(){n&&n.c(),l=h(),r&&r.c(),e=Gl()},m(a,f){n&&n.m(a,f),q(a,l,f),r&&r.m(a,f),q(a,e,f)},p(a,f){a[0].respHeaderId?n?n.p(a,f):(n=Xc(a),n.c(),n.m(l.parentNode,l)):n&&(n.d(1),n=null),a[8]&&a[0].respBodyId?r?r.p(a,f):(r=$c(a),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null)},d(a){a&&(R(l),R(e)),n&&n.d(a),r&&r.d(a)}}}function Xc(t){let l,e,n=t[24]("logs.detail.responseHeaders")+"",r,a;function f(c,p){return c[12]?Og:c[14]?zg:c[10]!==null?Fg:Ag}let u=f(t),d=u(t);return{c(){l=i("div"),e=i("div"),r=_(n),a=h(),d.c(),o(e,"class","text-sm font-semibold mb-2")},m(c,p){q(c,l,p),s(l,e),s(e,r),s(l,a),d.m(l,null)},p(c,p){p[0]&16777216&&n!==(n=c[24]("logs.detail.responseHeaders")+"")&&v(r,n),u===(u=f(c))&&d?d.p(c,p):(d.d(1),d=u(c),d&&(d.c(),d.m(l,null)))},d(c){c&&R(l),d.d()}}}function Ag(t){let l,e=t[24]("logs.detail.noHeaders")+"",n;return{c(){l=i("div"),n=_(e),o(l,"class","text-sm opacity-60")},m(r,a){q(r,l,a),s(l,n)},p(r,a){a[0]&16777216&&e!==(e=r[24]("logs.detail.noHeaders")+"")&&v(n,e)},d(r){r&&R(l)}}}function Fg(t){let l,e,n,r,a,f=ft(Object.entries(t[10])),u=[];for(let d=0;d<f.length;d+=1)u[d]=xc(vc(t,f,d));return{c(){l=i("div"),e=i("table"),n=i("thead"),n.innerHTML='<tr><th class="w-1/3">Name</th> <th>Value</th></tr>',r=h(),a=i("tbody");for(let d=0;d<u.length;d+=1)u[d].c();o(e,"class","table table-sm table-zebra"),o(l,"class","overflow-x-auto")},m(d,c){q(d,l,c),s(l,e),s(e,n),s(e,r),s(e,a);for(let p=0;p<u.length;p+=1)u[p]&&u[p].m(a,null)},p(d,c){if(c[0]&1024){f=ft(Object.entries(d[10]));let p;for(p=0;p<f.length;p+=1){const m=vc(d,f,p);u[p]?u[p].p(m,c):(u[p]=xc(m),u[p].c(),u[p].m(a,null))}for(;p<u.length;p+=1)u[p].d(1);u.length=f.length}},d(d){d&&R(l),$t(u,d)}}}function zg(t){let l,e,n;return{c(){l=i("div"),e=i("span"),n=_(t[14]),o(e,"class","text-sm"),o(l,"class","alert alert-error")},m(r,a){q(r,l,a),s(l,e),s(e,n)},p(r,a){a[0]&16384&&v(n,r[14])},d(r){r&&R(l)}}}function Og(t){let l,e,n,r,a=t[24]("common.loading")+"",f;return{c(){l=i("div"),e=i("span"),n=h(),r=i("span"),f=_(a),o(e,"class","loading loading-spinner loading-sm"),o(r,"class","text-sm"),o(l,"class","flex items-center gap-2")},m(u,d){q(u,l,d),s(l,e),s(l,n),s(l,r),s(r,f)},p(u,d){d[0]&16777216&&a!==(a=u[24]("common.loading")+"")&&v(f,a)},d(u){u&&R(l)}}}function xc(t){let l,e,n=t[43]+"",r,a,f,u=t[44]+"",d,c;return{c(){l=i("tr"),e=i("td"),r=_(n),a=h(),f=i("td"),d=_(u),c=h(),o(e,"class","font-mono text-xs"),o(f,"class","font-mono text-xs break-all")},m(p,m){q(p,l,m),s(l,e),s(e,r),s(l,a),s(l,f),s(f,d),s(l,c)},p(p,m){m[0]&1024&&n!==(n=p[43]+"")&&v(r,n),m[0]&1024&&u!==(u=p[44]+"")&&v(d,u)},d(p){p&&R(l)}}}function $c(t){let l,e,n=t[24]("logs.detail.responseBody")+"",r,a;function f(c,p){return c[5]?Jg:c[7]?Vg:c[3]!==null?Ug:Ng}let u=f(t),d=u(t);return{c(){l=i("div"),e=i("div"),r=_(n),a=h(),d.c(),o(e,"class","text-sm font-semibold mb-2")},m(c,p){q(c,l,p),s(l,e),s(e,r),s(l,a),d.m(l,null)},p(c,p){p[0]&16777216&&n!==(n=c[24]("logs.detail.responseBody")+"")&&v(r,n),u===(u=f(c))&&d?d.p(c,p):(d.d(1),d=u(c),d&&(d.c(),d.m(l,null)))},d(c){c&&R(l),d.d()}}}function Ng(t){let l,e=t[24]("logs.detail.noBody")+"",n;return{c(){l=i("div"),n=_(e),o(l,"class","text-sm opacity-60")},m(r,a){q(r,l,a),s(l,n)},p(r,a){a[0]&16777216&&e!==(e=r[24]("logs.detail.noBody")+"")&&v(n,e)},d(r){r&&R(l)}}}function Ug(t){let l,e=Zn(t[3])+"",n;return{c(){l=i("pre"),n=_(e),o(l,"class","bg-base-300 p-4 rounded overflow-x-auto text-xs max-h-96")},m(r,a){q(r,l,a),s(l,n)},p(r,a){a[0]&8&&e!==(e=Zn(r[3])+"")&&v(n,e)},d(r){r&&R(l)}}}function Vg(t){let l,e,n;return{c(){l=i("div"),e=i("span"),n=_(t[7]),o(e,"class","text-sm"),o(l,"class","alert alert-error")},m(r,a){q(r,l,a),s(l,e),s(e,n)},p(r,a){a[0]&128&&v(n,r[7])},d(r){r&&R(l)}}}function Jg(t){let l,e,n,r,a=t[24]("common.loading")+"",f;return{c(){l=i("div"),e=i("span"),n=h(),r=i("span"),f=_(a),o(e,"class","loading loading-spinner loading-sm"),o(r,"class","text-sm"),o(l,"class","flex items-center gap-2")},m(u,d){q(u,l,d),s(l,e),s(l,n),s(l,r),s(r,f)},p(u,d){d[0]&16777216&&a!==(a=u[24]("common.loading")+"")&&v(f,a)},d(u){u&&R(l)}}}function ep(t){let l,e,n,r=t[24]("logs.detail.authInfo")+"",a,f,u,d,c,p=t[24]("logs.detail.authLevel")+"",m,g,b,k=t[0].authLevel+"",w,y,E,C,T=t[24]("logs.detail.authResult")+"",M,P,I,H=(t[0].authSuccess?t[24]("logs.detail.authSuccess"):t[24]("logs.detail.authFailed"))+"",j,D;return{c(){l=i("div"),e=i("div"),n=i("h4"),a=_(r),f=h(),u=i("div"),d=i("div"),c=i("div"),m=_(p),g=h(),b=i("div"),w=_(k),y=h(),E=i("div"),C=i("div"),M=_(T),P=h(),I=i("span"),j=_(H),o(n,"class","card-title text-base mb-2"),o(c,"class","text-xs opacity-60 mb-1"),o(b,"class","text-sm"),o(C,"class","text-xs opacity-60 mb-1"),o(I,"class",D="badge "+(t[0].authSuccess?"badge-success":"badge-error")),o(u,"class","grid grid-cols-2 gap-4"),o(e,"class","card-body p-4"),o(l,"class","card bg-base-200")},m(B,N){q(B,l,N),s(l,e),s(e,n),s(n,a),s(e,f),s(e,u),s(u,d),s(d,c),s(c,m),s(d,g),s(d,b),s(b,w),s(u,y),s(u,E),s(E,C),s(C,M),s(E,P),s(E,I),s(I,j)},p(B,N){N[0]&16777216&&r!==(r=B[24]("logs.detail.authInfo")+"")&&v(a,r),N[0]&16777216&&p!==(p=B[24]("logs.detail.authLevel")+"")&&v(m,p),N[0]&1&&k!==(k=B[0].authLevel+"")&&v(w,k),N[0]&16777216&&T!==(T=B[24]("logs.detail.authResult")+"")&&v(M,T),N[0]&16777217&&H!==(H=(B[0].authSuccess?B[24]("logs.detail.authSuccess"):B[24]("logs.detail.authFailed"))+"")&&v(j,H),N[0]&1&&D!==(D="badge "+(B[0].authSuccess?"badge-success":"badge-error"))&&o(I,"class",D)},d(B){B&&R(l)}}}function Wg(t){let l,e,n,r,a=t[24]("logs.detail.title")+"",f,u,d,c,p,m,g,b,k,w,y,E=t[24]("logs.detail.downloadJson")+"",C,T,M,P,I,H,j,D,B,N=t[24]("logs.detail.overview")+"",V,Z,Y,x,U,Q=t[24]("logs.detail.status")+"",S,L,F,z=t[0].status+"",J,se,oe,fe,pe,ne=t[24]("logs.detail.method")+"",de,re,A,le=t[0].method+"",$,ce,ae,Se,Fe=t[24]("logs.requestType")+"",qe,he,je,Ie=t[25](t[0].requestType)+"",Be,ke,Ce,Re,He,ze,Ne=t[24]("logs.detail.duration")+"",te,ve,ue,ge=_o(t[0].duration)+"",Ee,ye,We,Oe,et=t[24]("logs.detail.timestamp")+"",Ke,we,_e,Pe=tp(t[0].timestamp)+"",Ze,Ae,Ve,be,rt=t[24]("logs.detail.requestId")+"",dt,Me,Le,Te=t[0].requestId+"",it,Je,W,De,ee=t[24]("logs.detail.processingSteps")+"",nt,Bt,Ge,gt,Xe,at,Et,vt,Ft=t[24]("logs.detail.requestInfo")+"",ut,_t,kt,ct,dl,st,Mt,pt,Tt,ll,jt,sl,yt,bl,Jt,Qt,Pt,Zt=t[24]("logs.detail.tabOriginalRequest")+"",El,Bl,al,ol,Ol,Ut,Tl=t[24]("logs.detail.tabFinalRequest")+"",Ye,bt,cl,Ot,Il,Lt,Al=t[24]("logs.detail.tabResponse")+"",Fl,$l,nl,Ml,es,Jl,Nl,Yl,Ps;function pl(tl,xe){return tl[23]?ug:ag}let Rl=pl(t),hl=Rl(t);function Wl(tl,xe){return tl[0].processingSteps&&tl[0].processingSteps.length>0?dg:fg}let ml=Wl(t),Sl=ml(t),ul=t[0].processingSteps&&t[0].processingSteps.length>0&&Mc(Hu(t));function zl(tl,xe){return tl[0].transformedPath&&tl[0].transformedPath!==tl[0].path?hg:pg}let Kl=zl(t),Hl=Kl(t),Xt=t[0].query&&Ac(t),Vt=t[0].routePath&&Fc(t),zt=t[0].upstream&&zc(t),rl=t[0].errorMessage&&Nc(t),il=t[21]==="original"&&Uc(t),xt=t[21]==="transformed"&&Kc(t),el=t[21]==="response"&&Zc(t),gl=t[0].authLevel&&ep(t);return Nl=Pu(t[33][0]),{c(){l=i("div"),e=i("div"),n=i("div"),r=i("h3"),f=_(a),u=h(),d=i("div"),c=i("button"),hl.c(),m=h(),g=i("button"),b=ie("svg"),k=ie("path"),w=h(),y=i("span"),C=_(E),M=h(),P=i("button"),P.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg>',I=h(),H=i("div"),j=i("div"),D=i("div"),B=i("h4"),V=_(N),Z=h(),Y=i("div"),x=i("div"),U=i("div"),S=_(Q),L=h(),F=i("span"),J=_(z),oe=h(),fe=i("div"),pe=i("div"),de=_(ne),re=h(),A=i("span"),$=_(le),ce=h(),ae=i("div"),Se=i("div"),qe=_(Fe),he=h(),je=i("span"),Be=_(Ie),Re=h(),He=i("div"),ze=i("div"),te=_(Ne),ve=h(),ue=i("div"),Ee=_(ge),ye=h(),We=i("div"),Oe=i("div"),Ke=_(et),we=h(),_e=i("div"),Ze=_(Pe),Ae=h(),Ve=i("div"),be=i("div"),dt=_(rt),Me=h(),Le=i("div"),it=_(Te),Je=h(),W=i("div"),De=i("div"),nt=_(ee),Bt=h(),Ge=i("div"),Sl.c(),gt=h(),ul&&ul.c(),Xe=h(),at=i("div"),Et=i("div"),vt=i("h4"),ut=_(Ft),_t=h(),kt=i("div"),Hl.c(),ct=h(),Xt&&Xt.c(),dl=h(),st=i("div"),Vt&&Vt.c(),Mt=h(),zt&&zt.c(),pt=h(),rl&&rl.c(),Tt=h(),ll=i("div"),jt=i("div"),sl=i("div"),yt=i("div"),bl=i("label"),Jt=i("input"),Qt=h(),Pt=i("span"),El=_(Zt),Bl=h(),al=i("label"),ol=i("input"),Ol=h(),Ut=i("span"),Ye=_(Tl),bt=h(),cl=i("label"),Ot=i("input"),Il=h(),Lt=i("span"),Fl=_(Al),$l=h(),nl=i("div"),il&&il.c(),Ml=h(),xt&&xt.c(),es=h(),el&&el.c(),Jl=h(),gl&&gl.c(),o(r,"id","modal-title"),o(r,"class","font-bold text-xl"),o(c,"class","btn btn-sm btn-ghost"),o(c,"title",p=t[24]("logs.detail.copyToClipboard")),o(k,"stroke-linecap","round"),o(k,"stroke-linejoin","round"),o(k,"stroke-width","2"),o(k,"d","M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"),o(b,"xmlns","http://www.w3.org/2000/svg"),o(b,"class","h-4 w-4"),o(b,"fill","none"),o(b,"viewBox","0 0 24 24"),o(b,"stroke","currentColor"),o(y,"class","hidden md:inline"),o(g,"class","btn btn-sm btn-ghost"),o(g,"title",T=t[24]("logs.detail.downloadJson")),o(P,"class","btn btn-sm btn-circle btn-ghost"),o(d,"class","flex items-center gap-2"),o(n,"class","flex items-center justify-between px-6 py-4 border-b border-base-300"),o(B,"class","card-title text-base mb-3"),o(U,"class","text-xs opacity-60 mb-1"),o(F,"class",se="badge "+lp(t[0].status)+" badge-lg"),o(pe,"class","text-xs opacity-60 mb-1"),o(A,"class","badge badge-lg"),o(Se,"class","text-xs opacity-60 mb-1"),o(je,"class",ke="badge "+sp(t[0].requestType)+" badge-lg"),o(je,"title",Ce=t[24](\`logs.requestType_\${t[0].requestType}_desc\`)),o(ze,"class","text-xs opacity-60 mb-1"),o(ue,"class","font-semibold"),o(Oe,"class","text-xs opacity-60 mb-1"),o(_e,"class","text-sm"),o(be,"class","text-xs opacity-60 mb-1"),o(Le,"class","font-mono text-xs break-all"),o(Ve,"class","col-span-2"),o(De,"class","text-xs opacity-60 mb-1"),o(Ge,"class","flex gap-2 flex-wrap"),o(W,"class","col-span-2 md:col-span-3 lg:col-span-6"),o(Y,"class","grid grid-cols-2 md:grid-cols-3 lg:grid-cols-6 gap-4"),o(D,"class","card-body p-4"),o(j,"class","card bg-base-200"),o(vt,"class","card-title text-base mb-3"),o(kt,"class","space-y-2"),o(Et,"class","card-body p-4"),o(at,"class","card bg-base-200"),o(st,"class","grid grid-cols-1 md:grid-cols-2 gap-4"),o(Jt,"class","sr-only"),o(Jt,"type","radio"),o(Jt,"name","activeTab"),Jt.__value="original",G(Jt,Jt.__value),o(Pt,"class","block px-4 py-1.5 text-sm font-medium rounded-md transition-all"),X(Pt,"bg-primary",t[21]==="original"),X(Pt,"text-primary-content",t[21]==="original"),X(Pt,"shadow",t[21]==="original"),X(Pt,"text-gray-700",t[21]!=="original"),X(Pt,"dark:text-gray-300",t[21]!=="original"),X(Pt,"hover:text-gray-900",t[21]!=="original"),X(Pt,"dark:hover:text-gray-100",t[21]!=="original"),o(bl,"class","cursor-pointer"),o(ol,"class","sr-only"),o(ol,"type","radio"),o(ol,"name","activeTab"),ol.__value="transformed",G(ol,ol.__value),o(Ut,"class","block px-4 py-1.5 text-sm font-medium rounded-md transition-all"),X(Ut,"bg-primary",t[21]==="transformed"),X(Ut,"text-primary-content",t[21]==="transformed"),X(Ut,"shadow",t[21]==="transformed"),X(Ut,"text-gray-700",t[21]!=="transformed"),X(Ut,"dark:text-gray-300",t[21]!=="transformed"),X(Ut,"hover:text-gray-900",t[21]!=="transformed"),X(Ut,"dark:hover:text-gray-100",t[21]!=="transformed"),o(al,"class","cursor-pointer"),o(Ot,"class","sr-only"),o(Ot,"type","radio"),o(Ot,"name","activeTab"),Ot.__value="response",G(Ot,Ot.__value),o(Lt,"class","block px-4 py-1.5 text-sm font-medium rounded-md transition-all"),X(Lt,"bg-primary",t[21]==="response"),X(Lt,"text-primary-content",t[21]==="response"),X(Lt,"shadow",t[21]==="response"),X(Lt,"text-gray-700",t[21]!=="response"),X(Lt,"dark:text-gray-300",t[21]!=="response"),X(Lt,"hover:text-gray-900",t[21]!=="response"),X(Lt,"dark:hover:text-gray-100",t[21]!=="response"),o(cl,"class","cursor-pointer"),o(yt,"class","inline-flex gap-1 p-1 bg-white dark:bg-gray-800 rounded-lg shadow-sm"),o(sl,"class","p-2 border-b border-base-300 flex justify-center"),o(nl,"class","p-4"),o(jt,"class","card-body p-0"),o(ll,"class","card bg-base-200"),o(H,"class","flex-1 overflow-y-auto px-6 py-4 space-y-6"),o(e,"class","modal-box max-w-6xl h-[90vh] flex flex-col p-0"),o(e,"role","dialog"),o(e,"aria-labelledby","modal-title"),o(e,"aria-modal","true"),o(l,"class","modal modal-open"),o(l,"role","presentation"),Nl.p(Jt,ol,Ot)},m(tl,xe){q(tl,l,xe),s(l,e),s(e,n),s(n,r),s(r,f),s(n,u),s(n,d),s(d,c),hl.m(c,null),s(d,m),s(d,g),s(g,b),s(b,k),s(g,w),s(g,y),s(y,C),s(d,M),s(d,P),s(e,I),s(e,H),s(H,j),s(j,D),s(D,B),s(B,V),s(D,Z),s(D,Y),s(Y,x),s(x,U),s(U,S),s(x,L),s(x,F),s(F,J),s(Y,oe),s(Y,fe),s(fe,pe),s(pe,de),s(fe,re),s(fe,A),s(A,$),s(Y,ce),s(Y,ae),s(ae,Se),s(Se,qe),s(ae,he),s(ae,je),s(je,Be),s(Y,Re),s(Y,He),s(He,ze),s(ze,te),s(He,ve),s(He,ue),s(ue,Ee),s(Y,ye),s(Y,We),s(We,Oe),s(Oe,Ke),s(We,we),s(We,_e),s(_e,Ze),s(Y,Ae),s(Y,Ve),s(Ve,be),s(be,dt),s(Ve,Me),s(Ve,Le),s(Le,it),s(Y,Je),s(Y,W),s(W,De),s(De,nt),s(W,Bt),s(W,Ge),Sl.m(Ge,null),s(H,gt),ul&&ul.m(H,null),s(H,Xe),s(H,at),s(at,Et),s(Et,vt),s(vt,ut),s(Et,_t),s(Et,kt),Hl.m(kt,null),s(kt,ct),Xt&&Xt.m(kt,null),s(H,dl),s(H,st),Vt&&Vt.m(st,null),s(st,Mt),zt&&zt.m(st,null),s(H,pt),rl&&rl.m(H,null),s(H,Tt),s(H,ll),s(ll,jt),s(jt,sl),s(sl,yt),s(yt,bl),s(bl,Jt),Jt.checked=Jt.__value===t[21],s(bl,Qt),s(bl,Pt),s(Pt,El),s(yt,Bl),s(yt,al),s(al,ol),ol.checked=ol.__value===t[21],s(al,Ol),s(al,Ut),s(Ut,Ye),s(yt,bt),s(yt,cl),s(cl,Ot),Ot.checked=Ot.__value===t[21],s(cl,Il),s(cl,Lt),s(Lt,Fl),s(jt,$l),s(jt,nl),il&&il.m(nl,null),s(nl,Ml),xt&&xt.m(nl,null),s(nl,es),el&&el.m(nl,null),s(H,Jl),gl&&gl.m(H,null),Yl||(Ps=[O(c,"click",t[29]),O(g,"click",t[30]),O(P,"click",function(){or(t[1])&&t[1].apply(this,arguments)}),O(Jt,"change",t[32]),O(ol,"change",t[34]),O(Ot,"change",t[35]),O(l,"click",t[28]),O(l,"keydown",t[36])],Yl=!0)},p(tl,xe){t=tl,xe[0]&16777216&&a!==(a=t[24]("logs.detail.title")+"")&&v(f,a),Rl===(Rl=pl(t))&&hl?hl.p(t,xe):(hl.d(1),hl=Rl(t),hl&&(hl.c(),hl.m(c,null))),xe[0]&16777216&&p!==(p=t[24]("logs.detail.copyToClipboard"))&&o(c,"title",p),xe[0]&16777216&&E!==(E=t[24]("logs.detail.downloadJson")+"")&&v(C,E),xe[0]&16777216&&T!==(T=t[24]("logs.detail.downloadJson"))&&o(g,"title",T),xe[0]&16777216&&N!==(N=t[24]("logs.detail.overview")+"")&&v(V,N),xe[0]&16777216&&Q!==(Q=t[24]("logs.detail.status")+"")&&v(S,Q),xe[0]&1&&z!==(z=t[0].status+"")&&v(J,z),xe[0]&1&&se!==(se="badge "+lp(t[0].status)+" badge-lg")&&o(F,"class",se),xe[0]&16777216&&ne!==(ne=t[24]("logs.detail.method")+"")&&v(de,ne),xe[0]&1&&le!==(le=t[0].method+"")&&v($,le),xe[0]&16777216&&Fe!==(Fe=t[24]("logs.requestType")+"")&&v(qe,Fe),xe[0]&1&&Ie!==(Ie=t[25](t[0].requestType)+"")&&v(Be,Ie),xe[0]&1&&ke!==(ke="badge "+sp(t[0].requestType)+" badge-lg")&&o(je,"class",ke),xe[0]&16777217&&Ce!==(Ce=t[24](\`logs.requestType_\${t[0].requestType}_desc\`))&&o(je,"title",Ce),xe[0]&16777216&&Ne!==(Ne=t[24]("logs.detail.duration")+"")&&v(te,Ne),xe[0]&1&&ge!==(ge=_o(t[0].duration)+"")&&v(Ee,ge),xe[0]&16777216&&et!==(et=t[24]("logs.detail.timestamp")+"")&&v(Ke,et),xe[0]&1&&Pe!==(Pe=tp(t[0].timestamp)+"")&&v(Ze,Pe),xe[0]&16777216&&rt!==(rt=t[24]("logs.detail.requestId")+"")&&v(dt,rt),xe[0]&1&&Te!==(Te=t[0].requestId+"")&&v(it,Te),xe[0]&16777216&&ee!==(ee=t[24]("logs.detail.processingSteps")+"")&&v(nt,ee),ml===(ml=Wl(t))&&Sl?Sl.p(t,xe):(Sl.d(1),Sl=ml(t),Sl&&(Sl.c(),Sl.m(Ge,null))),t[0].processingSteps&&t[0].processingSteps.length>0?ul?ul.p(Hu(t),xe):(ul=Mc(Hu(t)),ul.c(),ul.m(H,Xe)):ul&&(ul.d(1),ul=null),xe[0]&16777216&&Ft!==(Ft=t[24]("logs.detail.requestInfo")+"")&&v(ut,Ft),Kl===(Kl=zl(t))&&Hl?Hl.p(t,xe):(Hl.d(1),Hl=Kl(t),Hl&&(Hl.c(),Hl.m(kt,ct))),t[0].query?Xt?Xt.p(t,xe):(Xt=Ac(t),Xt.c(),Xt.m(kt,null)):Xt&&(Xt.d(1),Xt=null),t[0].routePath?Vt?Vt.p(t,xe):(Vt=Fc(t),Vt.c(),Vt.m(st,Mt)):Vt&&(Vt.d(1),Vt=null),t[0].upstream?zt?zt.p(t,xe):(zt=zc(t),zt.c(),zt.m(st,null)):zt&&(zt.d(1),zt=null),t[0].errorMessage?rl?rl.p(t,xe):(rl=Nc(t),rl.c(),rl.m(H,Tt)):rl&&(rl.d(1),rl=null),xe[0]&2097152&&(Jt.checked=Jt.__value===t[21]),xe[0]&16777216&&Zt!==(Zt=t[24]("logs.detail.tabOriginalRequest")+"")&&v(El,Zt),xe[0]&2097152&&X(Pt,"bg-primary",t[21]==="original"),xe[0]&2097152&&X(Pt,"text-primary-content",t[21]==="original"),xe[0]&2097152&&X(Pt,"shadow",t[21]==="original"),xe[0]&2097152&&X(Pt,"text-gray-700",t[21]!=="original"),xe[0]&2097152&&X(Pt,"dark:text-gray-300",t[21]!=="original"),xe[0]&2097152&&X(Pt,"hover:text-gray-900",t[21]!=="original"),xe[0]&2097152&&X(Pt,"dark:hover:text-gray-100",t[21]!=="original"),xe[0]&2097152&&(ol.checked=ol.__value===t[21]),xe[0]&16777216&&Tl!==(Tl=t[24]("logs.detail.tabFinalRequest")+"")&&v(Ye,Tl),xe[0]&2097152&&X(Ut,"bg-primary",t[21]==="transformed"),xe[0]&2097152&&X(Ut,"text-primary-content",t[21]==="transformed"),xe[0]&2097152&&X(Ut,"shadow",t[21]==="transformed"),xe[0]&2097152&&X(Ut,"text-gray-700",t[21]!=="transformed"),xe[0]&2097152&&X(Ut,"dark:text-gray-300",t[21]!=="transformed"),xe[0]&2097152&&X(Ut,"hover:text-gray-900",t[21]!=="transformed"),xe[0]&2097152&&X(Ut,"dark:hover:text-gray-100",t[21]!=="transformed"),xe[0]&2097152&&(Ot.checked=Ot.__value===t[21]),xe[0]&16777216&&Al!==(Al=t[24]("logs.detail.tabResponse")+"")&&v(Fl,Al),xe[0]&2097152&&X(Lt,"bg-primary",t[21]==="response"),xe[0]&2097152&&X(Lt,"text-primary-content",t[21]==="response"),xe[0]&2097152&&X(Lt,"shadow",t[21]==="response"),xe[0]&2097152&&X(Lt,"text-gray-700",t[21]!=="response"),xe[0]&2097152&&X(Lt,"dark:text-gray-300",t[21]!=="response"),xe[0]&2097152&&X(Lt,"hover:text-gray-900",t[21]!=="response"),xe[0]&2097152&&X(Lt,"dark:hover:text-gray-100",t[21]!=="response"),t[21]==="original"?il?il.p(t,xe):(il=Uc(t),il.c(),il.m(nl,Ml)):il&&(il.d(1),il=null),t[21]==="transformed"?xt?xt.p(t,xe):(xt=Kc(t),xt.c(),xt.m(nl,es)):xt&&(xt.d(1),xt=null),t[21]==="response"?el?el.p(t,xe):(el=Zc(t),el.c(),el.m(nl,null)):el&&(el.d(1),el=null),t[0].authLevel?gl?gl.p(t,xe):(gl=ep(t),gl.c(),gl.m(H,null)):gl&&(gl.d(1),gl=null)},i:ot,o:ot,d(tl){tl&&R(l),hl.d(),Sl.d(),ul&&ul.d(),Hl.d(),Xt&&Xt.d(),Vt&&Vt.d(),zt&&zt.d(),rl&&rl.d(),il&&il.d(),xt&&xt.d(),el&&el.d(),gl&&gl.d(),Nl.r(),Yl=!1,mt(Ps)}}}function tp(t){return new Date(t).toLocaleString()}function _o(t){return t<1e3?\`\${t}ms\`:\`\${(t/1e3).toFixed(2)}s\`}function lp(t){return t<300?"badge-success":t<400?"badge-info":t<500?"badge-warning":"badge-error"}function sp(t){return t==="final"?"badge-success":t==="retry"?"badge-warning":t==="recovery"?"badge-info":"badge-ghost"}function Zn(t){return JSON.stringify(t,null,2)}function Kg(t){const l=t.toLowerCase();return l.includes("auth")?"bg-blue-500":l.includes("plugin")?"bg-purple-500":l.includes("upstream")||l.includes("proxy")||l.includes("selected")?"bg-green-500":l.includes("transform")||l.includes("rewrite")?"bg-orange-500":l.includes("error")||l.includes("failed")?"bg-red-500":l.includes("retry")||l.includes("recover")||l.includes("circuit")?"bg-yellow-500":"bg-base-content/30"}function Gg(t){const l=t.toLowerCase();return l.includes("auth")?"Auth":l.includes("plugin")?"Plugin":l.includes("upstream")||l.includes("proxy")||l.includes("selected")?"Upstream":l.includes("transform")||l.includes("rewrite")?"Transform":l.includes("retry")||l.includes("recover")||l.includes("circuit")?"Retry":"Other"}function Yg(t,l,e){let n;Nt(t,Dt,A=>e(24,n=A));let{log:r}=l,{onClose:a}=l,f=null,u=null,d=!1,c=!1,p=null,m=null,g=!1,b=null,k=null,w=!1,y=!1,E=null,C=null,T=null,M=null,P=!1,I=!1,H=null,j=null,D="original",B=!1,N=!1;function V(A){return A?n(\`logs.requestType_\${A}\`):"-"}function Z(A){const le=\`logs.steps.\${A}\`,$=n(le);return $===le?A.split("_").map(ce=>ce.charAt(0).toUpperCase()+ce.slice(1)).join(" "):$}function Y(){if(!r.processingSteps||r.processingSteps.length===0)return{durations:[],relativeTime:[],totalDuration:0};const A=r.processingSteps,le=A[0].timestamp,$=A.map((Se,Fe)=>Fe===A.length-1?r.duration-(Se.timestamp-le):A[Fe+1].timestamp-Se.timestamp),ce=A.map(Se=>Se.timestamp-le),ae=r.duration;return{durations:$,relativeTime:ce,totalDuration:ae}}function x(A){A.target===A.currentTarget&&a()}async function U(){const A={requestId:r.requestId,timestamp:r.timestamp,method:r.method,path:r.path,status:r.status,duration:r.duration,originalRequestHeaders:T,originalRequestBody:M,requestHeaders:b,requestBody:f,responseHeaders:k,responseBody:u,processingSteps:r.processingSteps};try{await navigator.clipboard.writeText(JSON.stringify(A,null,2)),e(23,N=!0),setTimeout(()=>{e(23,N=!1)},2e3)}catch(le){console.error("Failed to copy:",le)}}async function Q(){const A={requestId:r.requestId,timestamp:r.timestamp,method:r.method,path:r.path,status:r.status,duration:r.duration,originalRequestHeaders:T,originalRequestBody:M,requestHeaders:b,requestBody:f,responseHeaders:k,responseBody:u,processingSteps:r.processingSteps},le=new Blob([JSON.stringify(A,null,2)],{type:"application/json"}),$=URL.createObjectURL(le),ce=document.createElement("a");ce.href=$,ce.download=\`log-\${r.requestId}.json\`,ce.click(),URL.revokeObjectURL($)}async function S(){if(!(!r.reqBodyId||f!==null)){e(4,d=!0),e(6,p=null);try{e(2,f=await Ru(r.reqBodyId))}catch(A){e(6,p=A instanceof Error?A.message:"Failed to load request body")}finally{e(4,d=!1)}}}async function L(){if(!(!r.respBodyId||u!==null)){e(5,c=!0),e(7,m=null);try{e(3,u=await Ru(r.respBodyId))}catch(A){e(7,m=A instanceof Error?A.message:"Failed to load response body")}finally{e(5,c=!1)}}}async function F(){if(!(!r.reqHeaderId||b!==null)){e(11,w=!0),e(13,E=null);try{e(9,b=await qu(r.reqHeaderId))}catch(A){e(13,E=A instanceof Error?A.message:"Failed to load request headers")}finally{e(11,w=!1)}}}async function z(){if(!(!r.respHeaderId||k!==null)){e(12,y=!0),e(14,C=null);try{e(10,k=await qu(r.respHeaderId))}catch(A){e(14,C=A instanceof Error?A.message:"Failed to load response headers")}finally{e(12,y=!1)}}}async function J(){if(!(!r.originalReqHeaderId||T!==null)){e(17,P=!0),e(19,H=null);try{e(15,T=await qu(r.originalReqHeaderId))}catch(A){e(19,H=A instanceof Error?A.message:"Failed to load original request headers")}finally{e(17,P=!1)}}}async function se(){if(!(!r.originalReqBodyId||M!==null)){e(18,I=!0),e(20,j=null);try{e(16,M=await Ru(r.originalReqBodyId))}catch(A){e(20,j=A instanceof Error?A.message:"Failed to load original request body")}finally{e(18,I=!1)}}}Hs(async()=>{try{const A=await Iu();e(8,g=A.logging?.body?.enabled||!1)}catch(A){console.error("Failed to load config:",A),e(8,g=!1)}r.originalReqHeaderId&&J(),r.originalReqBodyId&&se(),r.reqHeaderId&&F(),r.respHeaderId&&z(),r.reqBodyId&&S(),r.respBodyId&&L()});const oe=[[]],fe=()=>e(22,B=!B);function pe(){D=this.__value,e(21,D)}function ne(){D=this.__value,e(21,D)}function de(){D=this.__value,e(21,D)}const re=A=>A.key==="Escape"&&a();return t.$$set=A=>{"log"in A&&e(0,r=A.log),"onClose"in A&&e(1,a=A.onClose)},[r,a,f,u,d,c,p,m,g,b,k,w,y,E,C,T,M,P,I,H,j,D,B,N,n,V,Z,Y,x,U,Q,fe,pe,oe,ne,de,re]}class Qg extends Kt{constructor(l){super(),Gt(this,l,Yg,Wg,Yt,{log:0,onClose:1},null,[-1,-1,-1])}}function op(t,l,e){const n=t.slice();return n[104]=l[e],n}function np(t){let l,e,n,r,a,f=t[24]("logs.newDataAvailable")+"",u,d,c,p,m=t[24]("common.refresh")+"",g,b,k;return{c(){l=i("div"),e=ie("svg"),n=ie("path"),r=h(),a=i("span"),u=_(f),d=h(),c=i("div"),p=i("button"),g=_(m),o(n,"stroke-linecap","round"),o(n,"stroke-linejoin","round"),o(n,"stroke-width","2"),o(n,"d","M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"),o(e,"xmlns","http://www.w3.org/2000/svg"),o(e,"fill","none"),o(e,"viewBox","0 0 24 24"),o(e,"class","stroke-current shrink-0 w-6 h-6"),o(p,"class","btn btn-sm"),o(c,"class","flex-none"),o(l,"class","alert alert-info shadow-lg mb-4")},m(w,y){q(w,l,y),s(l,e),s(e,n),s(l,r),s(l,a),s(a,u),s(l,d),s(l,c),s(c,p),s(p,g),b||(k=O(p,"click",t[29]),b=!0)},p(w,y){y[0]&16777216&&f!==(f=w[24]("logs.newDataAvailable")+"")&&v(u,f),y[0]&16777216&&m!==(m=w[24]("common.refresh")+"")&&v(g,m)},d(w){w&&R(l),b=!1,k()}}}function rp(t){let l;return{c(){l=i("span"),l.textContent="1",o(l,"class","badge badge-sm")},m(e,n){q(e,l,n)},d(e){e&&R(l)}}}function ip(t){let l;return{c(){l=i("span"),l.textContent="1",o(l,"class","badge badge-sm")},m(e,n){q(e,l,n)},d(e){e&&R(l)}}}function ap(t){let l;return{c(){l=i("span"),l.textContent="1",o(l,"class","badge badge-sm")},m(e,n){q(e,l,n)},d(e){e&&R(l)}}}function up(t){let l,e=[t[5],t[8]!=="recent"||t[9]!==1,t[6]!=="timestamp"||t[7]!=="desc"].filter(Boolean).length+"",n;return{c(){l=i("span"),n=_(e),o(l,"class","badge badge-sm")},m(r,a){q(r,l,a),s(l,n)},p(r,a){a[0]&992&&e!==(e=[r[5],r[8]!=="recent"||r[9]!==1,r[6]!=="timestamp"||r[7]!=="desc"].filter(Boolean).length+"")&&v(n,e)},d(r){r&&R(l)}}}function fp(t){let l,e,n,r=t[24]("logs.recentHours")+"",a,f,u,d,c;return{c(){l=i("div"),e=i("div"),n=i("span"),a=_(r),f=h(),u=i("input"),o(n,"class","label-text text-xs font-semibold"),o(e,"class","label py-1"),o(u,"type","number"),o(u,"min","1"),o(u,"class","input input-bordered input-sm"),o(l,"class","form-control")},m(p,m){q(p,l,m),s(l,e),s(e,n),s(n,a),s(l,f),s(l,u),G(u,t[9]),d||(c=O(u,"input",t[45]),d=!0)},p(p,m){m[0]&16777216&&r!==(r=p[24]("logs.recentHours")+"")&&v(a,r),m[0]&512&&Ct(u.value)!==p[9]&&G(u,p[9])},d(p){p&&R(l),d=!1,c()}}}function dp(t){let l,e,n,r=t[24]("logs.startTime")+"",a,f,u,d,c,p,m,g=t[24]("logs.endTime")+"",b,k,w,y,E;return{c(){l=i("div"),e=i("div"),n=i("span"),a=_(r),f=h(),u=i("input"),d=h(),c=i("div"),p=i("div"),m=i("span"),b=_(g),k=h(),w=i("input"),o(n,"class","label-text text-xs font-semibold"),o(e,"class","label py-1"),o(u,"type","datetime-local"),o(u,"class","input input-bordered input-sm"),o(l,"class","form-control"),o(m,"class","label-text text-xs font-semibold"),o(p,"class","label py-1"),o(w,"type","datetime-local"),o(w,"class","input input-bordered input-sm"),o(c,"class","form-control")},m(C,T){q(C,l,T),s(l,e),s(e,n),s(n,a),s(l,f),s(l,u),G(u,t[10]),q(C,d,T),q(C,c,T),s(c,p),s(p,m),s(m,b),s(c,k),s(c,w),G(w,t[11]),y||(E=[O(u,"input",t[46]),O(w,"input",t[47])],y=!0)},p(C,T){T[0]&16777216&&r!==(r=C[24]("logs.startTime")+"")&&v(a,r),T[0]&1024&&G(u,C[10]),T[0]&16777216&&g!==(g=C[24]("logs.endTime")+"")&&v(b,g),T[0]&2048&&G(w,C[11])},d(C){C&&(R(l),R(d),R(c)),y=!1,mt(E)}}}function cp(t){let l,e;return{c(){l=i("span"),e=_(t[13]),o(l,"class","badge badge-sm badge-primary")},m(n,r){q(n,l,r),s(l,e)},p(n,r){r[0]&8192&&v(e,n[13])},d(n){n&&R(l)}}}function pp(t){let l,e,n,r=t[24]("logs.refreshInterval")+"",a,f,u,d,c=t[24]("logs.refreshEvery5s")+"",p,m,g=t[24]("logs.refreshEvery10s")+"",b,k,w=t[24]("logs.refreshEvery30s")+"",y,E,C=t[24]("logs.refreshEvery60s")+"",T,M,P;return{c(){l=i("div"),e=i("div"),n=i("span"),a=_(r),f=h(),u=i("select"),d=i("option"),p=_(c),m=i("option"),b=_(g),k=i("option"),y=_(w),E=i("option"),T=_(C),o(n,"class","label-text text-xs font-semibold"),o(e,"class","label py-1"),d.__value="5s",G(d,d.__value),m.__value="10s",G(m,m.__value),k.__value="30s",G(k,k.__value),E.__value="60s",G(E,E.__value),o(u,"class","select select-bordered select-sm"),t[13]===void 0&&Cl(()=>t[51].call(u)),o(l,"class","form-control")},m(I,H){q(I,l,H),s(l,e),s(e,n),s(n,a),s(l,f),s(l,u),s(u,d),s(d,p),s(u,m),s(m,b),s(u,k),s(k,y),s(u,E),s(E,T),St(u,t[13],!0),M||(P=O(u,"change",t[51]),M=!0)},p(I,H){H[0]&16777216&&r!==(r=I[24]("logs.refreshInterval")+"")&&v(a,r),H[0]&16777216&&c!==(c=I[24]("logs.refreshEvery5s")+"")&&v(p,c),H[0]&16777216&&g!==(g=I[24]("logs.refreshEvery10s")+"")&&v(b,g),H[0]&16777216&&w!==(w=I[24]("logs.refreshEvery30s")+"")&&v(y,w),H[0]&16777216&&C!==(C=I[24]("logs.refreshEvery60s")+"")&&v(T,C),H[0]&8192&&St(u,I[13])},d(I){I&&R(l),M=!1,P()}}}function hp(t){let l,e,n,r,a=t[24]("logs.clearFilters")+"",f,u,d;return{c(){l=i("button"),e=ie("svg"),n=ie("path"),r=h(),f=_(a),o(n,"stroke-linecap","round"),o(n,"stroke-linejoin","round"),o(n,"stroke-width","2"),o(n,"d","M6 18L18 6M6 6l12 12"),o(e,"xmlns","http://www.w3.org/2000/svg"),o(e,"class","h-4 w-4"),o(e,"fill","none"),o(e,"viewBox","0 0 24 24"),o(e,"stroke","currentColor"),o(l,"type","button"),o(l,"class","btn btn-sm btn-ghost gap-1")},m(c,p){q(c,l,p),s(l,e),s(e,n),s(l,r),s(l,f),u||(d=O(l,"click",t[28]),u=!0)},p(c,p){p[0]&16777216&&a!==(a=c[24]("logs.clearFilters")+"")&&v(f,a)},d(c){c&&R(l),u=!1,d()}}}function mp(t){let l,e=[t[2],t[3],t[4]!==void 0,t[5],t[8]!=="recent"||t[9]!==1,t[6]!=="timestamp"||t[7]!=="desc"].filter(Boolean).length+"",n;return{c(){l=i("span"),n=_(e),o(l,"class","badge badge-sm")},m(r,a){q(r,l,a),s(l,n)},p(r,a){a[0]&1020&&e!==(e=[r[2],r[3],r[4]!==void 0,r[5],r[8]!=="recent"||r[9]!==1,r[6]!=="timestamp"||r[7]!=="desc"].filter(Boolean).length+"")&&v(n,e)},d(r){r&&R(l)}}}function gp(t){let l,e,n,r=t[24]("logs.recentHours")+"",a,f,u,d,c;return{c(){l=i("div"),e=i("div"),n=i("span"),a=_(r),f=h(),u=i("input"),o(n,"class","label-text text-xs font-semibold"),o(e,"class","label py-1"),o(u,"type","number"),o(u,"min","1"),o(u,"class","input input-bordered input-sm"),o(l,"class","form-control")},m(p,m){q(p,l,m),s(l,e),s(e,n),s(n,a),s(l,f),s(l,u),G(u,t[9]),d||(c=O(u,"input",t[59]),d=!0)},p(p,m){m[0]&16777216&&r!==(r=p[24]("logs.recentHours")+"")&&v(a,r),m[0]&512&&Ct(u.value)!==p[9]&&G(u,p[9])},d(p){p&&R(l),d=!1,c()}}}function _p(t){let l,e,n,r=t[24]("logs.startTime")+"",a,f,u,d,c,p,m,g=t[24]("logs.endTime")+"",b,k,w,y,E;return{c(){l=i("div"),e=i("div"),n=i("span"),a=_(r),f=h(),u=i("input"),d=h(),c=i("div"),p=i("div"),m=i("span"),b=_(g),k=h(),w=i("input"),o(n,"class","label-text text-xs font-semibold"),o(e,"class","label py-1"),o(u,"type","datetime-local"),o(u,"class","input input-bordered input-sm"),o(l,"class","form-control"),o(m,"class","label-text text-xs font-semibold"),o(p,"class","label py-1"),o(w,"type","datetime-local"),o(w,"class","input input-bordered input-sm"),o(c,"class","form-control")},m(C,T){q(C,l,T),s(l,e),s(e,n),s(n,a),s(l,f),s(l,u),G(u,t[10]),q(C,d,T),q(C,c,T),s(c,p),s(p,m),s(m,b),s(c,k),s(c,w),G(w,t[11]),y||(E=[O(u,"input",t[60]),O(w,"input",t[61])],y=!0)},p(C,T){T[0]&16777216&&r!==(r=C[24]("logs.startTime")+"")&&v(a,r),T[0]&1024&&G(u,C[10]),T[0]&16777216&&g!==(g=C[24]("logs.endTime")+"")&&v(b,g),T[0]&2048&&G(w,C[11])},d(C){C&&(R(l),R(d),R(c)),y=!1,mt(E)}}}function bp(t){let l,e,n,r=t[24]("logs.refreshInterval")+"",a,f,u,d,c=t[24]("logs.refreshEvery5s")+"",p,m,g=t[24]("logs.refreshEvery10s")+"",b,k,w=t[24]("logs.refreshEvery30s")+"",y,E,C=t[24]("logs.refreshEvery60s")+"",T,M,P;return{c(){l=i("div"),e=i("div"),n=i("span"),a=_(r),f=h(),u=i("select"),d=i("option"),p=_(c),m=i("option"),b=_(g),k=i("option"),y=_(w),E=i("option"),T=_(C),o(n,"class","label-text text-xs font-semibold"),o(e,"class","label py-1"),d.__value="5s",G(d,d.__value),m.__value="10s",G(m,m.__value),k.__value="30s",G(k,k.__value),E.__value="60s",G(E,E.__value),o(u,"class","select select-bordered select-sm"),t[13]===void 0&&Cl(()=>t[65].call(u)),o(l,"class","form-control")},m(I,H){q(I,l,H),s(l,e),s(e,n),s(n,a),s(l,f),s(l,u),s(u,d),s(d,p),s(u,m),s(m,b),s(u,k),s(k,y),s(u,E),s(E,T),St(u,t[13],!0),M||(P=O(u,"change",t[65]),M=!0)},p(I,H){H[0]&16777216&&r!==(r=I[24]("logs.refreshInterval")+"")&&v(a,r),H[0]&16777216&&c!==(c=I[24]("logs.refreshEvery5s")+"")&&v(p,c),H[0]&16777216&&g!==(g=I[24]("logs.refreshEvery10s")+"")&&v(b,g),H[0]&16777216&&w!==(w=I[24]("logs.refreshEvery30s")+"")&&v(y,w),H[0]&16777216&&C!==(C=I[24]("logs.refreshEvery60s")+"")&&v(T,C),H[0]&8192&&St(u,I[13])},d(I){I&&R(l),M=!1,P()}}}function vp(t){let l,e=t[24]("logs.lastRefreshed")+"",n,r,a=new Date(t[21]).toLocaleTimeString()+"",f;return{c(){l=i("div"),n=_(e),r=_(": "),f=_(a),o(l,"class","text-xs text-gray-500 text-center")},m(u,d){q(u,l,d),s(l,n),s(l,r),s(l,f)},p(u,d){d[0]&16777216&&e!==(e=u[24]("logs.lastRefreshed")+"")&&v(n,e),d[0]&2097152&&a!==(a=new Date(u[21]).toLocaleTimeString()+"")&&v(f,a)},d(u){u&&R(l)}}}function kp(t){let l,e,n,r,a=t[24]("logs.clearFilters")+"",f,u,d;return{c(){l=i("button"),e=ie("svg"),n=ie("path"),r=h(),f=_(a),o(n,"stroke-linecap","round"),o(n,"stroke-linejoin","round"),o(n,"stroke-width","2"),o(n,"d","M6 18L18 6M6 6l12 12"),o(e,"xmlns","http://www.w3.org/2000/svg"),o(e,"class","h-4 w-4"),o(e,"fill","none"),o(e,"viewBox","0 0 24 24"),o(e,"stroke","currentColor"),o(l,"type","button"),o(l,"class","btn btn-sm btn-ghost gap-1")},m(c,p){q(c,l,p),s(l,e),s(e,n),s(l,r),s(l,f),u||(d=O(l,"click",t[28]),u=!0)},p(c,p){p[0]&16777216&&a!==(a=c[24]("logs.clearFilters")+"")&&v(f,a)},d(c){c&&R(l),u=!1,d()}}}function wp(t){let l;return{c(){l=i("span"),o(l,"class","badge badge-sm badge-primary")},m(e,n){q(e,l,n)},d(e){e&&R(l)}}}function yp(t){let l,e,n,r=t[24]("logs.recentHours")+"",a,f,u,d,c;return{c(){l=i("div"),e=i("div"),n=i("span"),a=_(r),f=h(),u=i("input"),o(n,"class","label-text text-xs font-semibold"),o(e,"class","label py-1"),o(u,"type","number"),o(u,"min","1"),o(u,"class","input input-bordered input-sm"),o(l,"class","form-control")},m(p,m){q(p,l,m),s(l,e),s(e,n),s(n,a),s(l,f),s(l,u),G(u,t[9]),d||(c=O(u,"input",t[73]),d=!0)},p(p,m){m[0]&16777216&&r!==(r=p[24]("logs.recentHours")+"")&&v(a,r),m[0]&512&&Ct(u.value)!==p[9]&&G(u,p[9])},d(p){p&&R(l),d=!1,c()}}}function Cp(t){let l,e,n,r=t[24]("logs.startTime")+"",a,f,u,d,c,p,m,g=t[24]("logs.endTime")+"",b,k,w,y,E;return{c(){l=i("div"),e=i("div"),n=i("span"),a=_(r),f=h(),u=i("input"),d=h(),c=i("div"),p=i("div"),m=i("span"),b=_(g),k=h(),w=i("input"),o(n,"class","label-text text-xs font-semibold"),o(e,"class","label py-1"),o(u,"type","datetime-local"),o(u,"class","input input-bordered input-sm"),o(l,"class","form-control"),o(m,"class","label-text text-xs font-semibold"),o(p,"class","label py-1"),o(w,"type","datetime-local"),o(w,"class","input input-bordered input-sm"),o(c,"class","form-control")},m(C,T){q(C,l,T),s(l,e),s(e,n),s(n,a),s(l,f),s(l,u),G(u,t[10]),q(C,d,T),q(C,c,T),s(c,p),s(p,m),s(m,b),s(c,k),s(c,w),G(w,t[11]),y||(E=[O(u,"input",t[74]),O(w,"input",t[75])],y=!0)},p(C,T){T[0]&16777216&&r!==(r=C[24]("logs.startTime")+"")&&v(a,r),T[0]&1024&&G(u,C[10]),T[0]&16777216&&g!==(g=C[24]("logs.endTime")+"")&&v(b,g),T[0]&2048&&G(w,C[11])},d(C){C&&(R(l),R(d),R(c)),y=!1,mt(E)}}}function Ep(t){let l,e,n,r=t[24]("logs.refreshInterval")+"",a,f,u,d,c=t[24]("logs.refreshEvery5s")+"",p,m,g=t[24]("logs.refreshEvery10s")+"",b,k,w=t[24]("logs.refreshEvery30s")+"",y,E,C=t[24]("logs.refreshEvery60s")+"",T,M,P;return{c(){l=i("div"),e=i("div"),n=i("span"),a=_(r),f=h(),u=i("select"),d=i("option"),p=_(c),m=i("option"),b=_(g),k=i("option"),y=_(w),E=i("option"),T=_(C),o(n,"class","label-text text-xs font-semibold"),o(e,"class","label py-1"),d.__value="5s",G(d,d.__value),m.__value="10s",G(m,m.__value),k.__value="30s",G(k,k.__value),E.__value="60s",G(E,E.__value),o(u,"class","select select-bordered select-sm"),t[13]===void 0&&Cl(()=>t[79].call(u)),o(l,"class","form-control")},m(I,H){q(I,l,H),s(l,e),s(e,n),s(n,a),s(l,f),s(l,u),s(u,d),s(d,p),s(u,m),s(m,b),s(u,k),s(k,y),s(u,E),s(E,T),St(u,t[13],!0),M||(P=O(u,"change",t[79]),M=!0)},p(I,H){H[0]&16777216&&r!==(r=I[24]("logs.refreshInterval")+"")&&v(a,r),H[0]&16777216&&c!==(c=I[24]("logs.refreshEvery5s")+"")&&v(p,c),H[0]&16777216&&g!==(g=I[24]("logs.refreshEvery10s")+"")&&v(b,g),H[0]&16777216&&w!==(w=I[24]("logs.refreshEvery30s")+"")&&v(y,w),H[0]&16777216&&C!==(C=I[24]("logs.refreshEvery60s")+"")&&v(T,C),H[0]&8192&&St(u,I[13])},d(I){I&&R(l),M=!1,P()}}}function Tp(t){let l,e,n,r,a,f,u=t[24]("logs.clearFilters")+"",d,c,p;return{c(){l=i("div"),e=h(),n=i("button"),r=ie("svg"),a=ie("path"),f=h(),d=_(u),o(l,"class","divider my-2"),o(a,"stroke-linecap","round"),o(a,"stroke-linejoin","round"),o(a,"stroke-width","2"),o(a,"d","M6 18L18 6M6 6l12 12"),o(r,"xmlns","http://www.w3.org/2000/svg"),o(r,"class","h-4 w-4"),o(r,"fill","none"),o(r,"viewBox","0 0 24 24"),o(r,"stroke","currentColor"),o(n,"type","button"),o(n,"class","btn btn-sm btn-ghost w-full gap-1")},m(m,g){q(m,l,g),q(m,e,g),q(m,n,g),s(n,r),s(r,a),s(n,f),s(n,d),c||(p=O(n,"click",t[28]),c=!0)},p(m,g){g[0]&16777216&&u!==(u=m[24]("logs.clearFilters")+"")&&v(d,u)},d(m){m&&(R(l),R(e),R(n)),c=!1,p()}}}function Sp(t){let l,e=t[1].trim(),n,r,a,f,u,d,c,p,m=e&&Mp(t),g=t[2]&&Rp(t),b=t[3]&&qp(t),k=t[4]!==void 0&&Hp(t),w=t[5]&&Pp(t),y=t[8]==="recent"&&t[9]!==1&&Lp(t),E=t[8]==="custom"&&jp(t),C=t[8]==="all"&&Dp(t),T=(t[6]!=="timestamp"||t[7]!=="desc")&&Bp(t);return{c(){l=i("div"),m&&m.c(),n=h(),g&&g.c(),r=h(),b&&b.c(),a=h(),k&&k.c(),f=h(),w&&w.c(),u=h(),y&&y.c(),d=h(),E&&E.c(),c=h(),C&&C.c(),p=h(),T&&T.c(),o(l,"class","flex items-center gap-2 flex-wrap px-1")},m(M,P){q(M,l,P),m&&m.m(l,null),s(l,n),g&&g.m(l,null),s(l,r),b&&b.m(l,null),s(l,a),k&&k.m(l,null),s(l,f),w&&w.m(l,null),s(l,u),y&&y.m(l,null),s(l,d),E&&E.m(l,null),s(l,c),C&&C.m(l,null),s(l,p),T&&T.m(l,null)},p(M,P){P[0]&2&&(e=M[1].trim()),e?m?m.p(M,P):(m=Mp(M),m.c(),m.m(l,n)):m&&(m.d(1),m=null),M[2]?g?g.p(M,P):(g=Rp(M),g.c(),g.m(l,r)):g&&(g.d(1),g=null),M[3]?b?b.p(M,P):(b=qp(M),b.c(),b.m(l,a)):b&&(b.d(1),b=null),M[4]!==void 0?k?k.p(M,P):(k=Hp(M),k.c(),k.m(l,f)):k&&(k.d(1),k=null),M[5]?w?w.p(M,P):(w=Pp(M),w.c(),w.m(l,u)):w&&(w.d(1),w=null),M[8]==="recent"&&M[9]!==1?y?y.p(M,P):(y=Lp(M),y.c(),y.m(l,d)):y&&(y.d(1),y=null),M[8]==="custom"?E?E.p(M,P):(E=jp(M),E.c(),E.m(l,c)):E&&(E.d(1),E=null),M[8]==="all"?C?C.p(M,P):(C=Dp(M),C.c(),C.m(l,p)):C&&(C.d(1),C=null),M[6]!=="timestamp"||M[7]!=="desc"?T?T.p(M,P):(T=Bp(M),T.c(),T.m(l,null)):T&&(T.d(1),T=null)},d(M){M&&R(l),m&&m.d(),g&&g.d(),b&&b.d(),k&&k.d(),w&&w.d(),y&&y.d(),E&&E.d(),C&&C.d(),T&&T.d()}}}function Mp(t){let l,e,n=t[24]("logs.searchTerm")+"",r,a,f,u,d,c,p,m,g;return{c(){l=i("div"),e=i("span"),r=_(n),a=_(":"),f=h(),u=i("span"),d=_(t[1]),c=h(),p=i("button"),p.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" class="h-3 w-3" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg>',o(e,"class","text-xs opacity-70"),o(u,"class","font-medium"),o(p,"type","button"),o(p,"class","btn btn-ghost btn-xs p-0 h-4 w-4 min-h-0"),o(l,"class","badge badge-lg gap-2")},m(b,k){q(b,l,k),s(l,e),s(e,r),s(e,a),s(l,f),s(l,u),s(u,d),s(l,c),s(l,p),m||(g=O(p,"click",t[82]),m=!0)},p(b,k){k[0]&16777216&&n!==(n=b[24]("logs.searchTerm")+"")&&v(r,n),k[0]&2&&v(d,b[1])},d(b){b&&R(l),m=!1,g()}}}function Rp(t){let l,e,n=t[24]("logs.method")+"",r,a,f,u,d,c,p,m,g;return{c(){l=i("div"),e=i("span"),r=_(n),a=_(":"),f=h(),u=i("span"),d=_(t[2]),c=h(),p=i("button"),p.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" class="h-3 w-3" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg>',o(e,"class","text-xs opacity-70"),o(u,"class","font-medium"),o(p,"type","button"),o(p,"class","btn btn-ghost btn-xs p-0 h-4 w-4 min-h-0"),o(l,"class","badge badge-primary badge-lg gap-2")},m(b,k){q(b,l,k),s(l,e),s(e,r),s(e,a),s(l,f),s(l,u),s(u,d),s(l,c),s(l,p),m||(g=O(p,"click",t[83]),m=!0)},p(b,k){k[0]&16777216&&n!==(n=b[24]("logs.method")+"")&&v(r,n),k[0]&4&&v(d,b[2])},d(b){b&&R(l),m=!1,g()}}}function qp(t){let l,e,n=t[24]("logs.status")+"",r,a,f,u,d,c,p,m,g;return{c(){l=i("div"),e=i("span"),r=_(n),a=_(":"),f=h(),u=i("span"),d=_(t[3]),c=h(),p=i("button"),p.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" class="h-3 w-3" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg>',o(e,"class","text-xs opacity-70"),o(u,"class","font-medium"),o(p,"type","button"),o(p,"class","btn btn-ghost btn-xs p-0 h-4 w-4 min-h-0"),o(l,"class","badge badge-primary badge-lg gap-2")},m(b,k){q(b,l,k),s(l,e),s(e,r),s(e,a),s(l,f),s(l,u),s(u,d),s(l,c),s(l,p),m||(g=O(p,"click",t[84]),m=!0)},p(b,k){k[0]&16777216&&n!==(n=b[24]("logs.status")+"")&&v(r,n),k[0]&8&&v(d,b[3])},d(b){b&&R(l),m=!1,g()}}}function Hp(t){let l,e,n=t[24]("logs.result")+"",r,a,f,u,d=(t[4]?t[24]("logs.success"):t[24]("logs.failed"))+"",c,p,m,g,b;return{c(){l=i("div"),e=i("span"),r=_(n),a=_(":"),f=h(),u=i("span"),c=_(d),p=h(),m=i("button"),m.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" class="h-3 w-3" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg>',o(e,"class","text-xs opacity-70"),o(u,"class","font-medium"),o(m,"type","button"),o(m,"class","btn btn-ghost btn-xs p-0 h-4 w-4 min-h-0"),o(l,"class","badge badge-primary badge-lg gap-2")},m(k,w){q(k,l,w),s(l,e),s(e,r),s(e,a),s(l,f),s(l,u),s(u,c),s(l,p),s(l,m),g||(b=O(m,"click",t[85]),g=!0)},p(k,w){w[0]&16777216&&n!==(n=k[24]("logs.result")+"")&&v(r,n),w[0]&16777232&&d!==(d=(k[4]?k[24]("logs.success"):k[24]("logs.failed"))+"")&&v(c,d)},d(k){k&&R(l),g=!1,b()}}}function Pp(t){let l,e,n=t[24]("logs.requestType")+"",r,a,f,u,d=t[24](\`logs.requestType_\${t[5]}\`)+"",c,p,m,g,b;return{c(){l=i("div"),e=i("span"),r=_(n),a=_(":"),f=h(),u=i("span"),c=_(d),p=h(),m=i("button"),m.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" class="h-3 w-3" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg>',o(e,"class","text-xs opacity-70"),o(u,"class","font-medium"),o(m,"type","button"),o(m,"class","btn btn-ghost btn-xs p-0 h-4 w-4 min-h-0"),o(l,"class","badge badge-primary badge-lg gap-2")},m(k,w){q(k,l,w),s(l,e),s(e,r),s(e,a),s(l,f),s(l,u),s(u,c),s(l,p),s(l,m),g||(b=O(m,"click",t[86]),g=!0)},p(k,w){w[0]&16777216&&n!==(n=k[24]("logs.requestType")+"")&&v(r,n),w[0]&16777248&&d!==(d=k[24](\`logs.requestType_\${k[5]}\`)+"")&&v(c,d)},d(k){k&&R(l),g=!1,b()}}}function Lp(t){let l,e,n=t[24]("logs.timeRange")+"",r,a,f,u,d=t[24]("logs.recentTime")+"",c,p,m,g,b,k,w,y;return{c(){l=i("div"),e=i("span"),r=_(n),a=_(":"),f=h(),u=i("span"),c=_(d),p=h(),m=_(t[9]),g=_("h"),b=h(),k=i("button"),k.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" class="h-3 w-3" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg>',o(e,"class","text-xs opacity-70"),o(u,"class","font-medium"),o(k,"type","button"),o(k,"class","btn btn-ghost btn-xs p-0 h-4 w-4 min-h-0"),o(l,"class","badge badge-primary badge-lg gap-2")},m(E,C){q(E,l,C),s(l,e),s(e,r),s(e,a),s(l,f),s(l,u),s(u,c),s(u,p),s(u,m),s(u,g),s(l,b),s(l,k),w||(y=O(k,"click",t[87]),w=!0)},p(E,C){C[0]&16777216&&n!==(n=E[24]("logs.timeRange")+"")&&v(r,n),C[0]&16777216&&d!==(d=E[24]("logs.recentTime")+"")&&v(c,d),C[0]&512&&v(m,E[9])},d(E){E&&R(l),w=!1,y()}}}function jp(t){let l,e,n=t[24]("logs.timeRange")+"",r,a,f,u,d=t[24]("logs.customTime")+"",c,p,m,g,b;return{c(){l=i("div"),e=i("span"),r=_(n),a=_(":"),f=h(),u=i("span"),c=_(d),p=h(),m=i("button"),m.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" class="h-3 w-3" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg>',o(e,"class","text-xs opacity-70"),o(u,"class","font-medium"),o(m,"type","button"),o(m,"class","btn btn-ghost btn-xs p-0 h-4 w-4 min-h-0"),o(l,"class","badge badge-primary badge-lg gap-2")},m(k,w){q(k,l,w),s(l,e),s(e,r),s(e,a),s(l,f),s(l,u),s(u,c),s(l,p),s(l,m),g||(b=O(m,"click",t[88]),g=!0)},p(k,w){w[0]&16777216&&n!==(n=k[24]("logs.timeRange")+"")&&v(r,n),w[0]&16777216&&d!==(d=k[24]("logs.customTime")+"")&&v(c,d)},d(k){k&&R(l),g=!1,b()}}}function Dp(t){let l,e,n=t[24]("logs.timeRange")+"",r,a,f,u,d=t[24]("logs.allTime")+"",c,p,m,g,b;return{c(){l=i("div"),e=i("span"),r=_(n),a=_(":"),f=h(),u=i("span"),c=_(d),p=h(),m=i("button"),m.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" class="h-3 w-3" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg>',o(e,"class","text-xs opacity-70"),o(u,"class","font-medium"),o(m,"type","button"),o(m,"class","btn btn-ghost btn-xs p-0 h-4 w-4 min-h-0"),o(l,"class","badge badge-primary badge-lg gap-2")},m(k,w){q(k,l,w),s(l,e),s(e,r),s(e,a),s(l,f),s(l,u),s(u,c),s(l,p),s(l,m),g||(b=O(m,"click",t[89]),g=!0)},p(k,w){w[0]&16777216&&n!==(n=k[24]("logs.timeRange")+"")&&v(r,n),w[0]&16777216&&d!==(d=k[24]("logs.allTime")+"")&&v(c,d)},d(k){k&&R(l),g=!1,b()}}}function Bp(t){let l,e,n=t[24]("logs.sortBy")+"",r,a,f,u,d=t[24](\`logs.sortBy\${t[6].charAt(0).toUpperCase()+t[6].slice(1)}\`)+"",c,p,m=t[7]==="asc"?"\u2191":"\u2193",g,b,k,w,y;return{c(){l=i("div"),e=i("span"),r=_(n),a=_(":"),f=h(),u=i("span"),c=_(d),p=h(),g=_(m),b=h(),k=i("button"),k.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" class="h-3 w-3" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg>',o(e,"class","text-xs opacity-70"),o(u,"class","font-medium"),o(k,"type","button"),o(k,"class","btn btn-ghost btn-xs p-0 h-4 w-4 min-h-0"),o(l,"class","badge badge-primary badge-lg gap-2")},m(E,C){q(E,l,C),s(l,e),s(e,r),s(e,a),s(l,f),s(l,u),s(u,c),s(u,p),s(u,g),s(l,b),s(l,k),w||(y=O(k,"click",t[90]),w=!0)},p(E,C){C[0]&16777216&&n!==(n=E[24]("logs.sortBy")+"")&&v(r,n),C[0]&16777280&&d!==(d=E[24](\`logs.sortBy\${E[6].charAt(0).toUpperCase()+E[6].slice(1)}\`)+"")&&v(c,d),C[0]&128&&m!==(m=E[7]==="asc"?"\u2191":"\u2193")&&v(g,m)},d(E){E&&R(l),w=!1,y()}}}function Zg(t){let l,e,n,r,a,f,u,d=t[24]("logs.time")+"",c,p,m,g=t[24]("logs.method")+"",b,k,w,y=t[24]("logs.path")+"",E,C,T,M=t[24]("logs.status")+"",P,I,H,j=t[24]("logs.requestType")+"",D,B,N,V=t[24]("logs.duration")+"",Z,Y,x,U=t[24]("logs.upstream")+"",Q,S,L,F=t[24]("logs.actions")+"",z,J,se,oe=[],fe=new Map,pe,ne,de,re=t[24]("logs.showing",{values:{start:(t[0]-1)*Yn+1,end:Math.min(t[0]*Yn,t[15]),total:t[15]}})+"",A,le,$,ce,ae,Se,Fe,qe,he=t[24]("logs.page",{values:{page:t[0],totalPages:t[16]}})+"",je,Ie,Be,ke,Ce,Re,He,ze=ft(t[14]);const Ne=te=>te[104].requestId;for(let te=0;te<ze.length;te+=1){let ve=op(t,ze,te),ue=Ne(ve);fe.set(ue,oe[te]=Ip(ue,ve))}return{c(){l=i("div"),e=i("div"),n=i("div"),r=i("table"),a=i("thead"),f=i("tr"),u=i("th"),c=_(d),p=h(),m=i("th"),b=_(g),k=h(),w=i("th"),E=_(y),C=h(),T=i("th"),P=_(M),I=h(),H=i("th"),D=_(j),B=h(),N=i("th"),Z=_(V),Y=h(),x=i("th"),Q=_(U),S=h(),L=i("th"),z=_(F),J=h(),se=i("tbody");for(let te=0;te<oe.length;te+=1)oe[te].c();pe=h(),ne=i("div"),de=i("div"),A=_(re),le=h(),$=i("div"),ce=i("button"),ae=_("\xAB"),Fe=h(),qe=i("button"),je=_(he),Ie=h(),Be=i("button"),ke=_("\xBB"),o(r,"class","table table-zebra table-sm"),o(n,"class","overflow-x-auto"),o(de,"class","text-sm"),o(ce,"class","join-item btn btn-sm"),ce.disabled=Se=t[0]<=1,o(qe,"class","join-item btn btn-sm"),o(Be,"class","join-item btn btn-sm"),Be.disabled=Ce=t[0]>=t[16],o($,"class","join"),o(ne,"class","flex justify-between items-center p-4"),o(e,"class","card-body p-0"),o(l,"class","card bg-base-100 shadow-xl")},m(te,ve){q(te,l,ve),s(l,e),s(e,n),s(n,r),s(r,a),s(a,f),s(f,u),s(u,c),s(f,p),s(f,m),s(m,b),s(f,k),s(f,w),s(w,E),s(f,C),s(f,T),s(T,P),s(f,I),s(f,H),s(H,D),s(f,B),s(f,N),s(N,Z),s(f,Y),s(f,x),s(x,Q),s(f,S),s(f,L),s(L,z),s(r,J),s(r,se);for(let ue=0;ue<oe.length;ue+=1)oe[ue]&&oe[ue].m(se,null);s(e,pe),s(e,ne),s(ne,de),s(de,A),s(ne,le),s(ne,$),s($,ce),s(ce,ae),s($,Fe),s($,qe),s(qe,je),s($,Ie),s($,Be),s(Be,ke),Re||(He=[O(ce,"click",t[92]),O(Be,"click",t[93])],Re=!0)},p(te,ve){ve[0]&16777216&&d!==(d=te[24]("logs.time")+"")&&v(c,d),ve[0]&16777216&&g!==(g=te[24]("logs.method")+"")&&v(b,g),ve[0]&16777216&&y!==(y=te[24]("logs.path")+"")&&v(E,y),ve[0]&16777216&&M!==(M=te[24]("logs.status")+"")&&v(P,M),ve[0]&16777216&&j!==(j=te[24]("logs.requestType")+"")&&v(D,j),ve[0]&16777216&&V!==(V=te[24]("logs.duration")+"")&&v(Z,V),ve[0]&16777216&&U!==(U=te[24]("logs.upstream")+"")&&v(Q,U),ve[0]&16777216&&F!==(F=te[24]("logs.actions")+"")&&v(z,F),ve[0]&218120192&&(ze=ft(te[14]),oe=na(oe,ve,Ne,1,te,ze,fe,se,Lu,Ip,null,op)),ve[0]&16809985&&re!==(re=te[24]("logs.showing",{values:{start:(te[0]-1)*Yn+1,end:Math.min(te[0]*Yn,te[15]),total:te[15]}})+"")&&v(A,re),ve[0]&1&&Se!==(Se=te[0]<=1)&&(ce.disabled=Se),ve[0]&16842753&&he!==(he=te[24]("logs.page",{values:{page:te[0],totalPages:te[16]}})+"")&&v(je,he),ve[0]&65537&&Ce!==(Ce=te[0]>=te[16])&&(Be.disabled=Ce)},d(te){te&&R(l);for(let ve=0;ve<oe.length;ve+=1)oe[ve].d();Re=!1,mt(He)}}}function Xg(t){let l,e,n,r,a,f=t[24]("logs.noData")+"",u;return{c(){l=i("div"),e=ie("svg"),n=ie("path"),r=h(),a=i("span"),u=_(f),o(n,"stroke-linecap","round"),o(n,"stroke-linejoin","round"),o(n,"stroke-width","2"),o(n,"d","M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"),o(e,"xmlns","http://www.w3.org/2000/svg"),o(e,"fill","none"),o(e,"viewBox","0 0 24 24"),o(e,"class","stroke-current shrink-0 w-6 h-6"),o(l,"class","alert alert-info")},m(d,c){q(d,l,c),s(l,e),s(e,n),s(l,r),s(l,a),s(a,u)},p(d,c){c[0]&16777216&&f!==(f=d[24]("logs.noData")+"")&&v(u,f)},d(d){d&&R(l)}}}function xg(t){let l,e,n,r,a,f=t[24]("common.error")+"",u,d,c;return{c(){l=i("div"),e=ie("svg"),n=ie("path"),r=h(),a=i("span"),u=_(f),d=_(": "),c=_(t[18]),o(n,"stroke-linecap","round"),o(n,"stroke-linejoin","round"),o(n,"stroke-width","2"),o(n,"d","M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z"),o(e,"xmlns","http://www.w3.org/2000/svg"),o(e,"class","stroke-current shrink-0 h-6 w-6"),o(e,"fill","none"),o(e,"viewBox","0 0 24 24"),o(l,"class","alert alert-error")},m(p,m){q(p,l,m),s(l,e),s(e,n),s(l,r),s(l,a),s(a,u),s(a,d),s(a,c)},p(p,m){m[0]&16777216&&f!==(f=p[24]("common.error")+"")&&v(u,f),m[0]&262144&&v(c,p[18])},d(p){p&&R(l)}}}function $g(t){let l;return{c(){l=i("div"),l.innerHTML='<span class="loading loading-spinner loading-lg"></span>',o(l,"class","flex justify-center items-center h-64")},m(e,n){q(e,l,n)},p:ot,d(e){e&&R(l)}}}function Ip(t,l){let e,n,r=Fp(l[104].timestamp)+"",a,f,u,d,c=l[104].method+"",p,m,g,b=l[104].path+"",k,w,y,E,C,T=l[104].status+"",M,P,I,H,j,D=l[27](l[104].requestType)+"",B,N,V,Z,Y,x=zp(l[104].duration)+"",U,Q,S,L=(l[104].upstream||"-")+"",F,z,J,se,oe,fe=l[24]("logs.viewDetail")+"",pe,ne,de,re;function A(){return l[91](l[104])}return{key:t,first:null,c(){e=i("tr"),n=i("td"),a=_(r),f=h(),u=i("td"),d=i("span"),p=_(c),m=h(),g=i("td"),k=_(b),y=h(),E=i("td"),C=i("span"),M=_(T),I=h(),H=i("td"),j=i("span"),B=_(D),Z=h(),Y=i("td"),U=_(x),Q=h(),S=i("td"),F=_(L),J=h(),se=i("td"),oe=i("button"),pe=_(fe),ne=h(),o(n,"class","text-xs"),o(d,"class","badge badge-sm"),o(g,"class","font-mono text-xs truncate max-w-xs"),o(g,"title",w=l[104].path),o(C,"class",P="badge badge-sm "+Op(l[104].status)),o(j,"class",N="badge badge-sm "+Np(l[104].requestType)),o(j,"title",V=l[24](\`logs.requestType_\${l[104].requestType}_desc\`)),o(Y,"class","text-xs"),o(S,"class","text-xs truncate max-w-xs"),o(S,"title",z=l[104].upstream||"-"),o(oe,"class","btn btn-xs btn-ghost"),o(e,"class","hover"),this.first=e},m(le,$){q(le,e,$),s(e,n),s(n,a),s(e,f),s(e,u),s(u,d),s(d,p),s(e,m),s(e,g),s(g,k),s(e,y),s(e,E),s(E,C),s(C,M),s(e,I),s(e,H),s(H,j),s(j,B),s(e,Z),s(e,Y),s(Y,U),s(e,Q),s(e,S),s(S,F),s(e,J),s(e,se),s(se,oe),s(oe,pe),s(e,ne),de||(re=O(oe,"click",A),de=!0)},p(le,$){l=le,$[0]&16384&&r!==(r=Fp(l[104].timestamp)+"")&&v(a,r),$[0]&16384&&c!==(c=l[104].method+"")&&v(p,c),$[0]&16384&&b!==(b=l[104].path+"")&&v(k,b),$[0]&16384&&w!==(w=l[104].path)&&o(g,"title",w),$[0]&16384&&T!==(T=l[104].status+"")&&v(M,T),$[0]&16384&&P!==(P="badge badge-sm "+Op(l[104].status))&&o(C,"class",P),$[0]&16384&&D!==(D=l[27](l[104].requestType)+"")&&v(B,D),$[0]&16384&&N!==(N="badge badge-sm "+Np(l[104].requestType))&&o(j,"class",N),$[0]&16793600&&V!==(V=l[24](\`logs.requestType_\${l[104].requestType}_desc\`))&&o(j,"title",V),$[0]&16384&&x!==(x=zp(l[104].duration)+"")&&v(U,x),$[0]&16384&&L!==(L=(l[104].upstream||"-")+"")&&v(F,L),$[0]&16384&&z!==(z=l[104].upstream||"-")&&o(S,"title",z),$[0]&16777216&&fe!==(fe=l[24]("logs.viewDetail")+"")&&v(pe,fe)},d(le){le&&R(e),de=!1,re()}}}function Ap(t){let l,e;return l=new Qg({props:{log:t[19],onClose:t[94]}}),{c(){Ht(l.$$.fragment)},m(n,r){qt(l,n,r),e=!0},p(n,r){const a={};r[0]&524288&&(a.log=n[19]),r[0]&1572864&&(a.onClose=n[94]),l.$set(a)},i(n){e||($e(l.$$.fragment,n),e=!0)},o(n){lt(l.$$.fragment,n),e=!1},d(n){Rt(l,n)}}}function e_(t){let l,e,n,r=t[24]("logs.title")+"",a,f,u,d,c,p,m,g,b,k,w,y,E,C=t[24]("logs.method")+"",T,M,P,I,H,j,D,B,N,V,Z=t[24]("logs.allMethods")+"",Y,x,U,Q,S,L,F,z,J,se,oe,fe,pe,ne,de,re,A,le,$,ce=t[24]("logs.status")+"",ae,Se,Fe,qe,he,je,Ie,Be,ke,Ce,Re,He=t[24]("logs.statusPlaceholder")+"",ze,Ne,te,ve,ue,ge,Ee=t[24]("logs.result")+"",ye,We,Oe,et,Ke,we,_e,Pe,Ze,Ae,Ve=t[24]("logs.allResults")+"",be,rt,dt,Me,Le=t[24]("logs.success")+"",Te,it,Je,W,De=t[24]("logs.failed")+"",ee,nt,Bt,Ge,gt=t[24]("logs.moreFilters")+"",Xe,at,Et,vt,Ft,ut,_t,kt,ct,dl,st,Mt,pt=t[24]("logs.requestTypeFilter")+"",Tt,ll,jt,sl,yt=t[24]("logs.requestType_all")+"",bl,Jt,Qt=t[24]("logs.requestType_final")+"",Pt,Zt,El=t[24]("logs.requestType_retry")+"",Bl,al,ol=t[24]("logs.requestType_recovery")+"",Ol,Ut,Tl,Ye,bt,cl=t[24]("logs.timeRange")+"",Ot,Il,Lt,Al,Fl=t[24]("logs.allTime")+"",$l,nl,Ml=t[24]("logs.recentTime")+"",es,Jl,Nl=t[24]("logs.customTime")+"",Yl,Ps,pl,Rl,hl,Wl,ml,Sl,ul,zl=t[24]("logs.sortBy")+"",Kl,Hl,Xt,Vt,zt,rl=t[24]("logs.sortByTimestamp")+"",il,xt,el=t[24]("logs.sortByDuration")+"",gl,tl,xe=t[24]("logs.sortByStatus")+"",Ul,ts,Xl,xl,ls=t[24]("logs.desc")+"",Ds,ss,Os=t[24]("logs.asc")+"",_l,Wt,tt,ht,fl,Pl,vl,Qe,wt,kl,$n,Fu,yo,bo,ir,Co,ar,ur=t[24]("logs.autoRefresh")+"",ra,zu,vo,Ou,Nu,Ns,Us,Eo,Uu,ia,fr=t[24]("common.refresh")+"",aa,Vu,To,ro,io,So,Ju,ua,dr=t[24]("logs.export")+"",fa,Wu,ao,da,cr,Ku,ca,pr,Gu,Yu,Bs,Mo,Ls,uo,Ro,Qu,hr=t[24]("logs.filters")+"",pa,Zu,mr,Xu,qo,wl,Ho,gr,_r,br=t[24]("logs.method")+"",ha,xu,Es,Po,vr=t[24]("logs.allMethods")+"",ma,Lo,jo,Do,Bo,Io,$u,Ao,kr,wr,yr=t[24]("logs.status")+"",ga,ef,lo,tf,Fo,Cr,Er,Tr=t[24]("logs.result")+"",_a,lf,Vs,zo,Sr=t[24]("logs.allResults")+"",ba,Oo,Mr=t[24]("logs.success")+"",va,No,Rr=t[24]("logs.failed")+"",ka,sf,wa,of,Uo,qr,Hr,Pr=t[24]("logs.requestTypeFilter")+"",ya,nf,Is,Vo,Lr=t[24]("logs.requestType_all")+"",Ca,Jo,jr=t[24]("logs.requestType_final")+"",Ea,Wo,Dr=t[24]("logs.requestType_retry")+"",Ta,Ko,Br=t[24]("logs.requestType_recovery")+"",Sa,rf,Go,Ir,Ar,Fr=t[24]("logs.timeRange")+"",Ma,af,Js,Yo,zr=t[24]("logs.allTime")+"",Ra,Qo,Or=t[24]("logs.recentTime")+"",qa,Zo,Nr=t[24]("logs.customTime")+"",Ha,uf,Pa,La,ja,ff,Xo,Ur,Vr,Jr=t[24]("logs.sortBy")+"",Da,df,xo,Ws,$o,Wr=t[24]("logs.sortByTimestamp")+"",Ba,en,Kr=t[24]("logs.sortByDuration")+"",Ia,tn,Gr=t[24]("logs.sortByStatus")+"",Aa,cf,so,ln,Yr=t[24]("logs.desc")+"",Fa,sn,Qr=t[24]("logs.asc")+"",za,pf,on,fo,Ks,nn,hf,Zr=t[24]("common.refresh")+"",Oa,mf,rn,os,Xr,an,xr,$r=t[24]("logs.autoRefresh")+"",Na,gf,ko,_f,Ua,Va,bf,Gs,Ys,un,vf,ei=t[24]("common.refresh")+"",Ja,kf,wf,fn,co,po,dn,yf,ti=t[24]("logs.export")+"",Wa,Cf,ho,Ka,li,Ef,Ga,si,Tf,Sf,oi,cn,As,mo,pn,Mf,ni=t[24]("logs.actions")+"",Ya,Rf,qf,hn,It,ri,ii=t[24]("logs.filters")+"",Qa,Hf,mn,ai,ui,fi=t[24]("logs.method")+"",Za,Pf,Ts,gn,di=t[24]("logs.allMethods")+"",Xa,_n,bn,vn,kn,wn,Lf,yn,ci,pi,hi=t[24]("logs.status")+"",xa,jf,oo,Df,Cn,mi,gi,_i=t[24]("logs.result")+"",$a,Bf,Qs,En,bi=t[24]("logs.allResults")+"",eu,Tn,vi=t[24]("logs.success")+"",tu,Sn,ki=t[24]("logs.failed")+"",lu,If,Mn,wi,yi,Ci=t[24]("logs.requestTypeFilter")+"",su,Af,Fs,Rn,Ei=t[24]("logs.requestType_all")+"",ou,qn,Ti=t[24]("logs.requestType_final")+"",nu,Hn,Si=t[24]("logs.requestType_retry")+"",ru,Pn,Mi=t[24]("logs.requestType_recovery")+"",iu,Ff,Ln,Ri,qi,Hi=t[24]("logs.timeRange")+"",au,zf,Zs,jn,Pi=t[24]("logs.allTime")+"",uu,Dn,Li=t[24]("logs.recentTime")+"",fu,Bn,ji=t[24]("logs.customTime")+"",du,Of,cu,pu,In,Di,Bi,Ii=t[24]("logs.sortBy")+"",hu,Nf,An,Xs,Fn,Ai=t[24]("logs.sortByTimestamp")+"",mu,zn,Fi=t[24]("logs.sortByDuration")+"",gu,On,zi=t[24]("logs.sortByStatus")+"",_u,Uf,no,Nn,Oi=t[24]("logs.desc")+"",bu,Un,Ni=t[24]("logs.asc")+"",vu,Vf,ku,Jf,Ui,Vi=t[24]("common.refresh")+"",wu,Wf,Ji,Vn,Wi,Ki=t[24]("logs.autoRefresh")+"",yu,Kf,wo,Gf,Cu,xs,$s,Jn,Yf,Gi=t[24]("common.refresh")+"",Eu,Qf,Tu,Zf,Wn,Kn,Xf,Gn,xf,$f,e1,Su,er,Ue,Mu,t1,ns=t[22]&&np(t),Ss=t[2]&&rp(),Ms=t[3]&&ip(),Rs=t[4]!==void 0&&ap(),rs=(t[5]||t[8]!=="recent"||t[9]!==1||t[6]!=="timestamp"||t[7]!=="desc")&&up(t),is=t[8]==="recent"&&fp(t),as=t[8]==="custom"&&dp(t),us=t[12]&&cp(t),fs=t[12]&&pp(t),ds=t[23]>0&&hp(t),cs=(t[2]||t[3]||t[4]!==void 0||t[5]||t[8]!=="recent"||t[9]!==1||t[6]!=="timestamp"||t[7]!=="desc")&&mp(t),ps=t[8]==="recent"&&gp(t),hs=t[8]==="custom"&&_p(t),ms=t[12]&&bp(t),gs=t[21]>0&&vp(t),_s=t[23]>0&&kp(t),qs=(t[2]||t[3]||t[4]!==void 0||t[5]||t[8]!=="recent"||t[9]!==1||t[6]!=="timestamp"||t[7]!=="desc"||t[12])&&wp(),bs=t[8]==="recent"&&yp(t),vs=t[8]==="custom"&&Cp(t),ks=t[12]&&Ep(t),ws=t[23]>0&&Tp(t),ys=t[23]>0&&Sp(t);function l1(K,me){return K[17]&&K[14].length===0?$g:K[18]?xg:K[14].length===0?Xg:Zg}let Yi=l1(t),eo=Yi(t),Vl=t[20]&&t[19]&&Ap(t);return{c(){l=i("div"),e=i("div"),n=i("h1"),a=_(r),f=h(),ns&&ns.c(),u=h(),d=i("div"),c=i("div"),p=i("div"),m=i("input"),b=h(),k=i("div"),w=i("div"),y=i("div"),E=i("div"),T=_(C),M=h(),Ss&&Ss.c(),P=h(),I=ie("svg"),H=ie("path"),D=h(),B=i("ul"),N=i("li"),V=i("button"),Y=_(Z),x=h(),U=i("li"),Q=i("button"),Q.textContent="GET",S=h(),L=i("li"),F=i("button"),F.textContent="POST",z=h(),J=i("li"),se=i("button"),se.textContent="PUT",oe=h(),fe=i("li"),pe=i("button"),pe.textContent="DELETE",ne=h(),de=i("li"),re=i("button"),re.textContent="PATCH",A=h(),le=i("div"),$=i("div"),ae=_(ce),Se=h(),Ms&&Ms.c(),Fe=h(),qe=ie("svg"),he=ie("path"),Ie=h(),Be=i("div"),ke=i("div"),Ce=i("div"),Re=i("span"),ze=_(He),Ne=h(),te=i("input"),ve=h(),ue=i("div"),ge=i("div"),ye=_(Ee),We=h(),Rs&&Rs.c(),Oe=h(),et=ie("svg"),Ke=ie("path"),_e=h(),Pe=i("ul"),Ze=i("li"),Ae=i("button"),be=_(Ve),rt=h(),dt=i("li"),Me=i("button"),Te=_(Le),it=h(),Je=i("li"),W=i("button"),ee=_(De),nt=h(),Bt=i("div"),Ge=i("div"),Xe=_(gt),at=h(),rs&&rs.c(),Et=h(),vt=ie("svg"),Ft=ie("path"),_t=h(),kt=i("div"),ct=i("div"),dl=i("div"),st=i("div"),Mt=i("span"),Tt=_(pt),ll=h(),jt=i("select"),sl=i("option"),bl=_(yt),Jt=i("option"),Pt=_(Qt),Zt=i("option"),Bl=_(El),al=i("option"),Ol=_(ol),Ut=h(),Tl=i("div"),Ye=i("div"),bt=i("span"),Ot=_(cl),Il=h(),Lt=i("select"),Al=i("option"),$l=_(Fl),nl=i("option"),es=_(Ml),Jl=i("option"),Yl=_(Nl),Ps=h(),is&&is.c(),pl=h(),as&&as.c(),Rl=h(),hl=i("div"),Wl=h(),ml=i("div"),Sl=i("div"),ul=i("span"),Kl=_(zl),Hl=h(),Xt=i("div"),Vt=i("select"),zt=i("option"),il=_(rl),xt=i("option"),gl=_(el),tl=i("option"),Ul=_(xe),ts=h(),Xl=i("select"),xl=i("option"),Ds=_(ls),ss=i("option"),_l=_(Os),Wt=h(),tt=i("div"),ht=h(),fl=i("div"),Pl=i("div"),vl=i("div"),Qe=ie("svg"),wt=ie("path"),kl=ie("path"),$n=h(),us&&us.c(),Fu=h(),yo=i("div"),bo=i("div"),ir=i("div"),Co=i("label"),ar=i("span"),ra=_(ur),zu=h(),vo=i("input"),Ou=h(),fs&&fs.c(),Nu=h(),Ns=i("button"),Us=ie("svg"),Eo=ie("path"),Uu=h(),ia=i("span"),aa=_(fr),Vu=h(),To=i("div"),ro=i("div"),io=ie("svg"),So=ie("path"),Ju=h(),ua=i("span"),fa=_(dr),Wu=h(),ao=i("ul"),da=i("li"),cr=i("button"),cr.textContent="JSON",Ku=h(),ca=i("li"),pr=i("button"),pr.textContent="CSV",Gu=h(),ds&&ds.c(),Yu=h(),Bs=i("div"),Mo=i("div"),Ls=i("div"),uo=ie("svg"),Ro=ie("path"),Qu=h(),pa=_(hr),Zu=h(),cs&&cs.c(),Xu=h(),qo=i("div"),wl=i("div"),Ho=i("div"),gr=i("div"),_r=i("span"),ha=_(br),xu=h(),Es=i("select"),Po=i("option"),ma=_(vr),Lo=i("option"),Lo.textContent="GET",jo=i("option"),jo.textContent="POST",Do=i("option"),Do.textContent="PUT",Bo=i("option"),Bo.textContent="DELETE",Io=i("option"),Io.textContent="PATCH",$u=h(),Ao=i("div"),kr=i("div"),wr=i("span"),ga=_(yr),ef=h(),lo=i("input"),tf=h(),Fo=i("div"),Cr=i("div"),Er=i("span"),_a=_(Tr),lf=h(),Vs=i("select"),zo=i("option"),ba=_(Sr),Oo=i("option"),va=_(Mr),No=i("option"),ka=_(Rr),sf=h(),wa=i("div"),of=h(),Uo=i("div"),qr=i("div"),Hr=i("span"),ya=_(Pr),nf=h(),Is=i("select"),Vo=i("option"),Ca=_(Lr),Jo=i("option"),Ea=_(jr),Wo=i("option"),Ta=_(Dr),Ko=i("option"),Sa=_(Br),rf=h(),Go=i("div"),Ir=i("div"),Ar=i("span"),Ma=_(Fr),af=h(),Js=i("select"),Yo=i("option"),Ra=_(zr),Qo=i("option"),qa=_(Or),Zo=i("option"),Ha=_(Nr),uf=h(),ps&&ps.c(),Pa=h(),hs&&hs.c(),La=h(),ja=i("div"),ff=h(),Xo=i("div"),Ur=i("div"),Vr=i("span"),Da=_(Jr),df=h(),xo=i("div"),Ws=i("select"),$o=i("option"),Ba=_(Wr),en=i("option"),Ia=_(Kr),tn=i("option"),Aa=_(Gr),cf=h(),so=i("select"),ln=i("option"),Fa=_(Yr),sn=i("option"),za=_(Qr),pf=h(),on=i("div"),fo=i("div"),Ks=ie("svg"),nn=ie("path"),hf=h(),Oa=_(Zr),mf=h(),rn=i("div"),os=i("div"),Xr=i("div"),an=i("label"),xr=i("span"),Na=_($r),gf=h(),ko=i("input"),_f=h(),ms&&ms.c(),Ua=h(),Va=i("div"),bf=h(),Gs=i("button"),Ys=ie("svg"),un=ie("path"),vf=h(),Ja=_(ei),kf=h(),gs&&gs.c(),wf=h(),fn=i("div"),co=i("div"),po=ie("svg"),dn=ie("path"),yf=h(),Wa=_(ti),Cf=h(),ho=i("ul"),Ka=i("li"),li=i("button"),li.textContent="JSON",Ef=h(),Ga=i("li"),si=i("button"),si.textContent="CSV",Tf=h(),_s&&_s.c(),Sf=h(),oi=i("div"),cn=i("div"),As=i("div"),mo=ie("svg"),pn=ie("path"),Mf=h(),Ya=_(ni),Rf=h(),qs&&qs.c(),qf=h(),hn=i("div"),It=i("div"),ri=i("h3"),Qa=_(ii),Hf=h(),mn=i("div"),ai=i("div"),ui=i("span"),Za=_(fi),Pf=h(),Ts=i("select"),gn=i("option"),Xa=_(di),_n=i("option"),_n.textContent="GET",bn=i("option"),bn.textContent="POST",vn=i("option"),vn.textContent="PUT",kn=i("option"),kn.textContent="DELETE",wn=i("option"),wn.textContent="PATCH",Lf=h(),yn=i("div"),ci=i("div"),pi=i("span"),xa=_(hi),jf=h(),oo=i("input"),Df=h(),Cn=i("div"),mi=i("div"),gi=i("span"),$a=_(_i),Bf=h(),Qs=i("select"),En=i("option"),eu=_(bi),Tn=i("option"),tu=_(vi),Sn=i("option"),lu=_(ki),If=h(),Mn=i("div"),wi=i("div"),yi=i("span"),su=_(Ci),Af=h(),Fs=i("select"),Rn=i("option"),ou=_(Ei),qn=i("option"),nu=_(Ti),Hn=i("option"),ru=_(Si),Pn=i("option"),iu=_(Mi),Ff=h(),Ln=i("div"),Ri=i("div"),qi=i("span"),au=_(Hi),zf=h(),Zs=i("select"),jn=i("option"),uu=_(Pi),Dn=i("option"),fu=_(Li),Bn=i("option"),du=_(ji),Of=h(),bs&&bs.c(),cu=h(),vs&&vs.c(),pu=h(),In=i("div"),Di=i("div"),Bi=i("span"),hu=_(Ii),Nf=h(),An=i("div"),Xs=i("select"),Fn=i("option"),mu=_(Ai),zn=i("option"),gu=_(Fi),On=i("option"),_u=_(zi),Uf=h(),no=i("select"),Nn=i("option"),bu=_(Oi),Un=i("option"),vu=_(Ni),Vf=h(),ku=i("div"),Jf=h(),Ui=i("h3"),wu=_(Vi),Wf=h(),Ji=i("div"),Vn=i("label"),Wi=i("span"),yu=_(Ki),Kf=h(),wo=i("input"),Gf=h(),ks&&ks.c(),Cu=h(),xs=i("button"),$s=ie("svg"),Jn=ie("path"),Yf=h(),Eu=_(Gi),Qf=h(),Tu=i("div"),Zf=h(),Wn=i("div"),Kn=i("button"),Kn.textContent="JSON",Xf=h(),Gn=i("button"),Gn.textContent="CSV",xf=h(),ws&&ws.c(),$f=h(),ys&&ys.c(),e1=h(),eo.c(),Su=h(),Vl&&Vl.c(),er=Gl(),o(n,"class","text-2xl lg:text-3xl font-bold"),o(e,"class","mb-6"),o(m,"type","text"),o(m,"placeholder",g=t[24]("logs.searchPlaceholder")),o(m,"class","input input-bordered input-sm w-full"),o(p,"class","flex-1 min-w-[200px] xl:max-w-md"),o(H,"stroke-linecap","round"),o(H,"stroke-linejoin","round"),o(H,"stroke-width","2"),o(H,"d","M19 9l-7 7-7-7"),o(I,"xmlns","http://www.w3.org/2000/svg"),o(I,"class","h-3 w-3"),o(I,"fill","none"),o(I,"viewBox","0 0 24 24"),o(I,"stroke","currentColor"),o(E,"role","button"),o(E,"tabindex","0"),o(E,"class",j="btn btn-sm "+(t[2]?"btn-primary":"btn-ghost")+" gap-1"),X(Q,"active",t[2]==="GET"),X(F,"active",t[2]==="POST"),X(se,"active",t[2]==="PUT"),X(pe,"active",t[2]==="DELETE"),X(re,"active",t[2]==="PATCH"),o(B,"role","menu"),o(B,"tabindex","0"),o(B,"class","dropdown-content menu p-2 shadow bg-base-100 rounded-box w-40 z-[1]"),o(y,"class","dropdown dropdown-end"),o(he,"stroke-linecap","round"),o(he,"stroke-linejoin","round"),o(he,"stroke-width","2"),o(he,"d","M19 9l-7 7-7-7"),o(qe,"xmlns","http://www.w3.org/2000/svg"),o(qe,"class","h-3 w-3"),o(qe,"fill","none"),o(qe,"viewBox","0 0 24 24"),o(qe,"stroke","currentColor"),o($,"role","button"),o($,"tabindex","0"),o($,"class",je="btn btn-sm "+(t[3]?"btn-primary":"btn-ghost")+" gap-1"),o(Re,"class","label-text text-xs"),o(Ce,"class","label py-1"),o(te,"type","text"),o(te,"placeholder","200, 404, 500"),o(te,"class","input input-bordered input-sm"),o(ke,"class","form-control"),o(Be,"role","menu"),o(Be,"tabindex","0"),o(Be,"class","dropdown-content bg-base-100 rounded-box p-3 shadow-lg w-48 z-[1]"),o(le,"class","dropdown dropdown-end"),o(Ke,"stroke-linecap","round"),o(Ke,"stroke-linejoin","round"),o(Ke,"stroke-width","2"),o(Ke,"d","M19 9l-7 7-7-7"),o(et,"xmlns","http://www.w3.org/2000/svg"),o(et,"class","h-3 w-3"),o(et,"fill","none"),o(et,"viewBox","0 0 24 24"),o(et,"stroke","currentColor"),o(ge,"role","button"),o(ge,"tabindex","0"),o(ge,"class",we="btn btn-sm "+(t[4]!==void 0?"btn-primary":"btn-ghost")+" gap-1"),X(Me,"active",t[4]===!0),X(W,"active",t[4]===!1),o(Pe,"role","menu"),o(Pe,"tabindex","0"),o(Pe,"class","dropdown-content menu p-2 shadow bg-base-100 rounded-box w-40 z-[1]"),o(ue,"class","dropdown dropdown-end"),o(Ft,"stroke-linecap","round"),o(Ft,"stroke-linejoin","round"),o(Ft,"stroke-width","2"),o(Ft,"d","M19 9l-7 7-7-7"),o(vt,"xmlns","http://www.w3.org/2000/svg"),o(vt,"class","h-3 w-3"),o(vt,"fill","none"),o(vt,"viewBox","0 0 24 24"),o(vt,"stroke","currentColor"),o(Ge,"role","button"),o(Ge,"tabindex","0"),o(Ge,"class",ut="btn btn-sm "+(t[5]||t[8]!=="recent"||t[9]!==1||t[6]!=="timestamp"||t[7]!=="desc"?"btn-primary":"btn-ghost")+" gap-1"),o(Mt,"class","label-text text-xs font-semibold"),o(st,"class","label py-1"),sl.__value="",G(sl,sl.__value),Jt.__value="final",G(Jt,Jt.__value),Zt.__value="retry",G(Zt,Zt.__value),al.__value="recovery",G(al,al.__value),o(jt,"class","select select-bordered select-sm"),t[5]===void 0&&Cl(()=>t[43].call(jt)),o(dl,"class","form-control"),o(bt,"class","label-text text-xs font-semibold"),o(Ye,"class","label py-1"),Al.__value="all",G(Al,Al.__value),nl.__value="recent",G(nl,nl.__value),Jl.__value="custom",G(Jl,Jl.__value),o(Lt,"class","select select-bordered select-sm"),t[8]===void 0&&Cl(()=>t[44].call(Lt)),o(Tl,"class","form-control"),o(hl,"class","divider my-2"),o(ul,"class","label-text text-xs font-semibold"),o(Sl,"class","label py-1"),zt.__value="timestamp",G(zt,zt.__value),xt.__value="duration",G(xt,xt.__value),tl.__value="status",G(tl,tl.__value),o(Vt,"class","select select-bordered select-sm flex-1"),t[6]===void 0&&Cl(()=>t[48].call(Vt)),xl.__value="desc",G(xl,xl.__value),ss.__value="asc",G(ss,ss.__value),o(Xl,"class","select select-bordered select-sm w-24"),t[7]===void 0&&Cl(()=>t[49].call(Xl)),o(Xt,"class","flex gap-2"),o(ml,"class","form-control"),o(ct,"class","space-y-3"),o(kt,"role","menu"),o(kt,"tabindex","0"),o(kt,"class","dropdown-content bg-base-100 rounded-box p-4 shadow-lg w-80 z-[1]"),o(Bt,"class","dropdown dropdown-end"),o(w,"class","flex items-center gap-2 flex-wrap"),o(tt,"class","flex-1"),o(wt,"stroke-linecap","round"),o(wt,"stroke-linejoin","round"),o(wt,"stroke-width","2"),o(wt,"d","M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"),o(kl,"stroke-linecap","round"),o(kl,"stroke-linejoin","round"),o(kl,"stroke-width","2"),o(kl,"d","M15 12a3 3 0 11-6 0 3 3 0 016 0z"),o(Qe,"xmlns","http://www.w3.org/2000/svg"),o(Qe,"class","h-4 w-4"),o(Qe,"fill","none"),o(Qe,"viewBox","0 0 24 24"),o(Qe,"stroke","currentColor"),o(vl,"role","button"),o(vl,"tabindex","0"),o(vl,"class","btn btn-sm btn-outline gap-1"),o(ar,"class","label-text"),o(vo,"type","checkbox"),o(vo,"class","toggle toggle-primary toggle-sm"),o(Co,"class","label cursor-pointer"),o(ir,"class","form-control"),o(bo,"class","space-y-3"),o(yo,"role","menu"),o(yo,"tabindex","0"),o(yo,"class","dropdown-content bg-base-100 rounded-box p-4 shadow-lg w-64 z-[1]"),o(Pl,"class","dropdown dropdown-end"),o(Eo,"stroke-linecap","round"),o(Eo,"stroke-linejoin","round"),o(Eo,"stroke-width","2"),o(Eo,"d","M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"),o(Us,"xmlns","http://www.w3.org/2000/svg"),o(Us,"class","h-4 w-4"),o(Us,"fill","none"),o(Us,"viewBox","0 0 24 24"),o(Us,"stroke","currentColor"),X(Us,"animate-spin",t[17]),o(Ns,"type","button"),o(Ns,"class","btn btn-sm btn-outline gap-2"),Ns.disabled=t[17],o(So,"stroke-linecap","round"),o(So,"stroke-linejoin","round"),o(So,"stroke-width","2"),o(So,"d","M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"),o(io,"xmlns","http://www.w3.org/2000/svg"),o(io,"class","h-4 w-4"),o(io,"fill","none"),o(io,"viewBox","0 0 24 24"),o(io,"stroke","currentColor"),o(ro,"role","button"),o(ro,"tabindex","0"),o(ro,"class","btn btn-sm btn-secondary gap-2"),o(ao,"role","menu"),o(ao,"tabindex","0"),o(ao,"class","dropdown-content menu p-2 shadow bg-base-100 rounded-box w-32 z-[1]"),o(To,"class","dropdown dropdown-end"),o(fl,"class","flex items-center gap-2 flex-wrap"),o(k,"class","hidden xl:flex items-center gap-2 flex-wrap flex-1"),o(Ro,"stroke-linecap","round"),o(Ro,"stroke-linejoin","round"),o(Ro,"stroke-width","2"),o(Ro,"d","M3 4a1 1 0 011-1h16a1 1 0 011 1v2.586a1 1 0 01-.293.707l-6.414 6.414a1 1 0 00-.293.707V17l-4 4v-6.586a1 1 0 00-.293-.707L3.293 7.293A1 1 0 013 6.586V4z"),o(uo,"xmlns","http://www.w3.org/2000/svg"),o(uo,"class","h-4 w-4"),o(uo,"fill","none"),o(uo,"viewBox","0 0 24 24"),o(uo,"stroke","currentColor"),o(Ls,"role","button"),o(Ls,"tabindex","0"),o(Ls,"class",mr="btn btn-sm "+(t[2]||t[3]||t[4]!==void 0||t[5]||t[8]!=="recent"||t[9]!==1||t[6]!=="timestamp"||t[7]!=="desc"?"btn-primary":"btn-ghost")+" gap-1"),o(_r,"class","label-text text-xs font-semibold"),o(gr,"class","label py-1"),Po.__value="",G(Po,Po.__value),Lo.__value="GET",G(Lo,Lo.__value),jo.__value="POST",G(jo,jo.__value),Do.__value="PUT",G(Do,Do.__value),Bo.__value="DELETE",G(Bo,Bo.__value),Io.__value="PATCH",G(Io,Io.__value),o(Es,"class","select select-bordered select-sm"),t[2]===void 0&&Cl(()=>t[54].call(Es)),o(Ho,"class","form-control"),o(wr,"class","label-text text-xs font-semibold"),o(kr,"class","label py-1"),o(lo,"type","text"),o(lo,"placeholder","200, 404, 500"),o(lo,"class","input input-bordered input-sm"),o(Ao,"class","form-control"),o(Er,"class","label-text text-xs font-semibold"),o(Cr,"class","label py-1"),zo.__value=void 0,G(zo,zo.__value),Oo.__value=!0,G(Oo,Oo.__value),No.__value=!1,G(No,No.__value),o(Vs,"class","select select-bordered select-sm"),t[4]===void 0&&Cl(()=>t[56].call(Vs)),o(Fo,"class","form-control"),o(wa,"class","divider my-2"),o(Hr,"class","label-text text-xs font-semibold"),o(qr,"class","label py-1"),Vo.__value="",G(Vo,Vo.__value),Jo.__value="final",G(Jo,Jo.__value),Wo.__value="retry",G(Wo,Wo.__value),Ko.__value="recovery",G(Ko,Ko.__value),o(Is,"class","select select-bordered select-sm"),t[5]===void 0&&Cl(()=>t[57].call(Is)),o(Uo,"class","form-control"),o(Ar,"class","label-text text-xs font-semibold"),o(Ir,"class","label py-1"),Yo.__value="all",G(Yo,Yo.__value),Qo.__value="recent",G(Qo,Qo.__value),Zo.__value="custom",G(Zo,Zo.__value),o(Js,"class","select select-bordered select-sm"),t[8]===void 0&&Cl(()=>t[58].call(Js)),o(Go,"class","form-control"),o(ja,"class","divider my-2"),o(Vr,"class","label-text text-xs font-semibold"),o(Ur,"class","label py-1"),$o.__value="timestamp",G($o,$o.__value),en.__value="duration",G(en,en.__value),tn.__value="status",G(tn,tn.__value),o(Ws,"class","select select-bordered select-sm flex-1"),t[6]===void 0&&Cl(()=>t[62].call(Ws)),ln.__value="desc",G(ln,ln.__value),sn.__value="asc",G(sn,sn.__value),o(so,"class","select select-bordered select-sm w-24"),t[7]===void 0&&Cl(()=>t[63].call(so)),o(xo,"class","flex gap-2"),o(Xo,"class","form-control"),o(wl,"class","space-y-3"),o(qo,"role","menu"),o(qo,"tabindex","0"),o(qo,"class","dropdown-content bg-base-100 rounded-box p-4 shadow-lg w-80 z-[1]"),o(Mo,"class","dropdown dropdown-end"),o(nn,"stroke-linecap","round"),o(nn,"stroke-linejoin","round"),o(nn,"stroke-width","2"),o(nn,"d","M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"),o(Ks,"xmlns","http://www.w3.org/2000/svg"),o(Ks,"class","h-4 w-4"),o(Ks,"fill","none"),o(Ks,"viewBox","0 0 24 24"),o(Ks,"stroke","currentColor"),X(Ks,"animate-spin",t[17]),o(fo,"role","button"),o(fo,"tabindex","0"),o(fo,"class","btn btn-sm btn-ghost gap-2"),o(xr,"class","label-text"),o(ko,"type","checkbox"),o(ko,"class","toggle toggle-primary toggle-sm"),o(an,"class","label cursor-pointer"),o(Xr,"class","form-control"),o(Va,"class","divider my-2"),o(un,"stroke-linecap","round"),o(un,"stroke-linejoin","round"),o(un,"stroke-width","2"),o(un,"d","M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"),o(Ys,"xmlns","http://www.w3.org/2000/svg"),o(Ys,"class","h-4 w-4"),o(Ys,"fill","none"),o(Ys,"viewBox","0 0 24 24"),o(Ys,"stroke","currentColor"),X(Ys,"animate-spin",t[17]),o(Gs,"type","button"),o(Gs,"class","btn btn-sm btn-primary w-full gap-2"),Gs.disabled=t[17],o(os,"class","space-y-3"),o(rn,"role","menu"),o(rn,"tabindex","0"),o(rn,"class","dropdown-content bg-base-100 rounded-box p-4 shadow-lg w-72 z-[1]"),o(on,"class","dropdown dropdown-end"),o(dn,"stroke-linecap","round"),o(dn,"stroke-linejoin","round"),o(dn,"stroke-width","2"),o(dn,"d","M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"),o(po,"xmlns","http://www.w3.org/2000/svg"),o(po,"class","h-4 w-4"),o(po,"fill","none"),o(po,"viewBox","0 0 24 24"),o(po,"stroke","currentColor"),o(co,"role","button"),o(co,"tabindex","0"),o(co,"class","btn btn-sm btn-secondary gap-2"),o(ho,"role","menu"),o(ho,"tabindex","0"),o(ho,"class","dropdown-content menu p-2 shadow bg-base-100 rounded-box w-32 z-[1]"),o(fn,"class","dropdown dropdown-end"),o(Bs,"class","hidden md:flex xl:hidden items-center gap-2"),o(pn,"stroke-linecap","round"),o(pn,"stroke-linejoin","round"),o(pn,"stroke-width","2"),o(pn,"d","M4 6h16M4 12h16M4 18h16"),o(mo,"xmlns","http://www.w3.org/2000/svg"),o(mo,"class","h-4 w-4"),o(mo,"fill","none"),o(mo,"viewBox","0 0 24 24"),o(mo,"stroke","currentColor"),o(As,"role","button"),o(As,"tabindex","0"),o(As,"class","btn btn-sm btn-ghost gap-1"),o(ri,"class","font-semibold text-sm"),o(ui,"class","label-text text-xs font-semibold"),o(ai,"class","label py-1"),gn.__value="",G(gn,gn.__value),_n.__value="GET",G(_n,_n.__value),bn.__value="POST",G(bn,bn.__value),vn.__value="PUT",G(vn,vn.__value),kn.__value="DELETE",G(kn,kn.__value),wn.__value="PATCH",G(wn,wn.__value),o(Ts,"class","select select-bordered select-sm"),t[2]===void 0&&Cl(()=>t[68].call(Ts)),o(mn,"class","form-control"),o(pi,"class","label-text text-xs font-semibold"),o(ci,"class","label py-1"),o(oo,"type","text"),o(oo,"placeholder","200, 404, 500"),o(oo,"class","input input-bordered input-sm"),o(yn,"class","form-control"),o(gi,"class","label-text text-xs font-semibold"),o(mi,"class","label py-1"),En.__value=void 0,G(En,En.__value),Tn.__value=!0,G(Tn,Tn.__value),Sn.__value=!1,G(Sn,Sn.__value),o(Qs,"class","select select-bordered select-sm"),t[4]===void 0&&Cl(()=>t[70].call(Qs)),o(Cn,"class","form-control"),o(yi,"class","label-text text-xs font-semibold"),o(wi,"class","label py-1"),Rn.__value="",G(Rn,Rn.__value),qn.__value="final",G(qn,qn.__value),Hn.__value="retry",G(Hn,Hn.__value),Pn.__value="recovery",G(Pn,Pn.__value),o(Fs,"class","select select-bordered select-sm"),t[5]===void 0&&Cl(()=>t[71].call(Fs)),o(Mn,"class","form-control"),o(qi,"class","label-text text-xs font-semibold"),o(Ri,"class","label py-1"),jn.__value="all",G(jn,jn.__value),Dn.__value="recent",G(Dn,Dn.__value),Bn.__value="custom",G(Bn,Bn.__value),o(Zs,"class","select select-bordered select-sm"),t[8]===void 0&&Cl(()=>t[72].call(Zs)),o(Ln,"class","form-control"),o(Bi,"class","label-text text-xs font-semibold"),o(Di,"class","label py-1"),Fn.__value="timestamp",G(Fn,Fn.__value),zn.__value="duration",G(zn,zn.__value),On.__value="status",G(On,On.__value),o(Xs,"class","select select-bordered select-sm flex-1"),t[6]===void 0&&Cl(()=>t[76].call(Xs)),Nn.__value="desc",G(Nn,Nn.__value),Un.__value="asc",G(Un,Un.__value),o(no,"class","select select-bordered select-sm w-24"),t[7]===void 0&&Cl(()=>t[77].call(no)),o(An,"class","flex gap-2"),o(In,"class","form-control"),o(ku,"class","divider my-2"),o(Ui,"class","font-semibold text-sm"),o(Wi,"class","label-text"),o(wo,"type","checkbox"),o(wo,"class","toggle toggle-primary toggle-sm"),o(Vn,"class","label cursor-pointer"),o(Ji,"class","form-control"),o(Jn,"stroke-linecap","round"),o(Jn,"stroke-linejoin","round"),o(Jn,"stroke-width","2"),o(Jn,"d","M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"),o($s,"xmlns","http://www.w3.org/2000/svg"),o($s,"class","h-4 w-4"),o($s,"fill","none"),o($s,"viewBox","0 0 24 24"),o($s,"stroke","currentColor"),X($s,"animate-spin",t[17]),o(xs,"type","button"),o(xs,"class","btn btn-sm btn-primary w-full gap-2"),xs.disabled=t[17],o(Tu,"class","divider my-2"),o(Kn,"type","button"),o(Kn,"class","btn btn-sm btn-secondary flex-1 gap-2"),o(Gn,"type","button"),o(Gn,"class","btn btn-sm btn-secondary flex-1 gap-2"),o(Wn,"class","flex gap-2"),o(It,"class","space-y-3"),o(hn,"role","menu"),o(hn,"tabindex","0"),o(hn,"class","dropdown-content bg-base-100 rounded-box p-4 shadow-lg w-80 z-[1]"),o(cn,"class","dropdown dropdown-end"),o(oi,"class","flex md:hidden items-center gap-2"),o(c,"class","flex items-center gap-2 mb-3"),o(d,"class","mb-6"),o(l,"class","p-6")},m(K,me){q(K,l,me),s(l,e),s(e,n),s(n,a),s(l,f),ns&&ns.m(l,null),s(l,u),s(l,d),s(d,c),s(c,p),s(p,m),G(m,t[1]),s(c,b),s(c,k),s(k,w),s(w,y),s(y,E),s(E,T),s(E,M),Ss&&Ss.m(E,null),s(E,P),s(E,I),s(I,H),s(y,D),s(y,B),s(B,N),s(N,V),s(V,Y),s(B,x),s(B,U),s(U,Q),s(B,S),s(B,L),s(L,F),s(B,z),s(B,J),s(J,se),s(B,oe),s(B,fe),s(fe,pe),s(B,ne),s(B,de),s(de,re),s(w,A),s(w,le),s(le,$),s($,ae),s($,Se),Ms&&Ms.m($,null),s($,Fe),s($,qe),s(qe,he),s(le,Ie),s(le,Be),s(Be,ke),s(ke,Ce),s(Ce,Re),s(Re,ze),s(ke,Ne),s(ke,te),G(te,t[3]),s(w,ve),s(w,ue),s(ue,ge),s(ge,ye),s(ge,We),Rs&&Rs.m(ge,null),s(ge,Oe),s(ge,et),s(et,Ke),s(ue,_e),s(ue,Pe),s(Pe,Ze),s(Ze,Ae),s(Ae,be),s(Pe,rt),s(Pe,dt),s(dt,Me),s(Me,Te),s(Pe,it),s(Pe,Je),s(Je,W),s(W,ee),s(w,nt),s(w,Bt),s(Bt,Ge),s(Ge,Xe),s(Ge,at),rs&&rs.m(Ge,null),s(Ge,Et),s(Ge,vt),s(vt,Ft),s(Bt,_t),s(Bt,kt),s(kt,ct),s(ct,dl),s(dl,st),s(st,Mt),s(Mt,Tt),s(dl,ll),s(dl,jt),s(jt,sl),s(sl,bl),s(jt,Jt),s(Jt,Pt),s(jt,Zt),s(Zt,Bl),s(jt,al),s(al,Ol),St(jt,t[5],!0),s(ct,Ut),s(ct,Tl),s(Tl,Ye),s(Ye,bt),s(bt,Ot),s(Tl,Il),s(Tl,Lt),s(Lt,Al),s(Al,$l),s(Lt,nl),s(nl,es),s(Lt,Jl),s(Jl,Yl),St(Lt,t[8],!0),s(ct,Ps),is&&is.m(ct,null),s(ct,pl),as&&as.m(ct,null),s(ct,Rl),s(ct,hl),s(ct,Wl),s(ct,ml),s(ml,Sl),s(Sl,ul),s(ul,Kl),s(ml,Hl),s(ml,Xt),s(Xt,Vt),s(Vt,zt),s(zt,il),s(Vt,xt),s(xt,gl),s(Vt,tl),s(tl,Ul),St(Vt,t[6],!0),s(Xt,ts),s(Xt,Xl),s(Xl,xl),s(xl,Ds),s(Xl,ss),s(ss,_l),St(Xl,t[7],!0),s(k,Wt),s(k,tt),s(k,ht),s(k,fl),s(fl,Pl),s(Pl,vl),s(vl,Qe),s(Qe,wt),s(Qe,kl),s(vl,$n),us&&us.m(vl,null),s(Pl,Fu),s(Pl,yo),s(yo,bo),s(bo,ir),s(ir,Co),s(Co,ar),s(ar,ra),s(Co,zu),s(Co,vo),vo.checked=t[12],s(bo,Ou),fs&&fs.m(bo,null),s(fl,Nu),s(fl,Ns),s(Ns,Us),s(Us,Eo),s(Ns,Uu),s(Ns,ia),s(ia,aa),s(fl,Vu),s(fl,To),s(To,ro),s(ro,io),s(io,So),s(ro,Ju),s(ro,ua),s(ua,fa),s(To,Wu),s(To,ao),s(ao,da),s(da,cr),s(ao,Ku),s(ao,ca),s(ca,pr),s(fl,Gu),ds&&ds.m(fl,null),s(c,Yu),s(c,Bs),s(Bs,Mo),s(Mo,Ls),s(Ls,uo),s(uo,Ro),s(Ls,Qu),s(Ls,pa),s(Ls,Zu),cs&&cs.m(Ls,null),s(Mo,Xu),s(Mo,qo),s(qo,wl),s(wl,Ho),s(Ho,gr),s(gr,_r),s(_r,ha),s(Ho,xu),s(Ho,Es),s(Es,Po),s(Po,ma),s(Es,Lo),s(Es,jo),s(Es,Do),s(Es,Bo),s(Es,Io),St(Es,t[2],!0),s(wl,$u),s(wl,Ao),s(Ao,kr),s(kr,wr),s(wr,ga),s(Ao,ef),s(Ao,lo),G(lo,t[3]),s(wl,tf),s(wl,Fo),s(Fo,Cr),s(Cr,Er),s(Er,_a),s(Fo,lf),s(Fo,Vs),s(Vs,zo),s(zo,ba),s(Vs,Oo),s(Oo,va),s(Vs,No),s(No,ka),St(Vs,t[4],!0),s(wl,sf),s(wl,wa),s(wl,of),s(wl,Uo),s(Uo,qr),s(qr,Hr),s(Hr,ya),s(Uo,nf),s(Uo,Is),s(Is,Vo),s(Vo,Ca),s(Is,Jo),s(Jo,Ea),s(Is,Wo),s(Wo,Ta),s(Is,Ko),s(Ko,Sa),St(Is,t[5],!0),s(wl,rf),s(wl,Go),s(Go,Ir),s(Ir,Ar),s(Ar,Ma),s(Go,af),s(Go,Js),s(Js,Yo),s(Yo,Ra),s(Js,Qo),s(Qo,qa),s(Js,Zo),s(Zo,Ha),St(Js,t[8],!0),s(wl,uf),ps&&ps.m(wl,null),s(wl,Pa),hs&&hs.m(wl,null),s(wl,La),s(wl,ja),s(wl,ff),s(wl,Xo),s(Xo,Ur),s(Ur,Vr),s(Vr,Da),s(Xo,df),s(Xo,xo),s(xo,Ws),s(Ws,$o),s($o,Ba),s(Ws,en),s(en,Ia),s(Ws,tn),s(tn,Aa),St(Ws,t[6],!0),s(xo,cf),s(xo,so),s(so,ln),s(ln,Fa),s(so,sn),s(sn,za),St(so,t[7],!0),s(Bs,pf),s(Bs,on),s(on,fo),s(fo,Ks),s(Ks,nn),s(fo,hf),s(fo,Oa),s(on,mf),s(on,rn),s(rn,os),s(os,Xr),s(Xr,an),s(an,xr),s(xr,Na),s(an,gf),s(an,ko),ko.checked=t[12],s(os,_f),ms&&ms.m(os,null),s(os,Ua),s(os,Va),s(os,bf),s(os,Gs),s(Gs,Ys),s(Ys,un),s(Gs,vf),s(Gs,Ja),s(os,kf),gs&&gs.m(os,null),s(Bs,wf),s(Bs,fn),s(fn,co),s(co,po),s(po,dn),s(co,yf),s(co,Wa),s(fn,Cf),s(fn,ho),s(ho,Ka),s(Ka,li),s(ho,Ef),s(ho,Ga),s(Ga,si),s(Bs,Tf),_s&&_s.m(Bs,null),s(c,Sf),s(c,oi),s(oi,cn),s(cn,As),s(As,mo),s(mo,pn),s(As,Mf),s(As,Ya),s(As,Rf),qs&&qs.m(As,null),s(cn,qf),s(cn,hn),s(hn,It),s(It,ri),s(ri,Qa),s(It,Hf),s(It,mn),s(mn,ai),s(ai,ui),s(ui,Za),s(mn,Pf),s(mn,Ts),s(Ts,gn),s(gn,Xa),s(Ts,_n),s(Ts,bn),s(Ts,vn),s(Ts,kn),s(Ts,wn),St(Ts,t[2],!0),s(It,Lf),s(It,yn),s(yn,ci),s(ci,pi),s(pi,xa),s(yn,jf),s(yn,oo),G(oo,t[3]),s(It,Df),s(It,Cn),s(Cn,mi),s(mi,gi),s(gi,$a),s(Cn,Bf),s(Cn,Qs),s(Qs,En),s(En,eu),s(Qs,Tn),s(Tn,tu),s(Qs,Sn),s(Sn,lu),St(Qs,t[4],!0),s(It,If),s(It,Mn),s(Mn,wi),s(wi,yi),s(yi,su),s(Mn,Af),s(Mn,Fs),s(Fs,Rn),s(Rn,ou),s(Fs,qn),s(qn,nu),s(Fs,Hn),s(Hn,ru),s(Fs,Pn),s(Pn,iu),St(Fs,t[5],!0),s(It,Ff),s(It,Ln),s(Ln,Ri),s(Ri,qi),s(qi,au),s(Ln,zf),s(Ln,Zs),s(Zs,jn),s(jn,uu),s(Zs,Dn),s(Dn,fu),s(Zs,Bn),s(Bn,du),St(Zs,t[8],!0),s(It,Of),bs&&bs.m(It,null),s(It,cu),vs&&vs.m(It,null),s(It,pu),s(It,In),s(In,Di),s(Di,Bi),s(Bi,hu),s(In,Nf),s(In,An),s(An,Xs),s(Xs,Fn),s(Fn,mu),s(Xs,zn),s(zn,gu),s(Xs,On),s(On,_u),St(Xs,t[6],!0),s(An,Uf),s(An,no),s(no,Nn),s(Nn,bu),s(no,Un),s(Un,vu),St(no,t[7],!0),s(It,Vf),s(It,ku),s(It,Jf),s(It,Ui),s(Ui,wu),s(It,Wf),s(It,Ji),s(Ji,Vn),s(Vn,Wi),s(Wi,yu),s(Vn,Kf),s(Vn,wo),wo.checked=t[12],s(It,Gf),ks&&ks.m(It,null),s(It,Cu),s(It,xs),s(xs,$s),s($s,Jn),s(xs,Yf),s(xs,Eu),s(It,Qf),s(It,Tu),s(It,Zf),s(It,Wn),s(Wn,Kn),s(Wn,Xf),s(Wn,Gn),s(It,xf),ws&&ws.m(It,null),s(d,$f),ys&&ys.m(d,null),s(l,e1),eo.m(l,null),q(K,Su,me),Vl&&Vl.m(K,me),q(K,er,me),Ue=!0,Mu||(t1=[O(m,"input",t[32]),O(V,"click",t[33]),O(Q,"click",t[34]),O(F,"click",t[35]),O(se,"click",t[36]),O(pe,"click",t[37]),O(re,"click",t[38]),O(te,"input",t[39]),O(Ae,"click",t[40]),O(Me,"click",t[41]),O(W,"click",t[42]),O(jt,"change",t[43]),O(Lt,"change",t[44]),O(Vt,"change",t[48]),O(Xl,"change",t[49]),O(vo,"change",t[50]),O(Ns,"click",t[29]),O(cr,"click",t[52]),O(pr,"click",t[53]),O(Es,"change",t[54]),O(lo,"input",t[55]),O(Vs,"change",t[56]),O(Is,"change",t[57]),O(Js,"change",t[58]),O(Ws,"change",t[62]),O(so,"change",t[63]),O(ko,"change",t[64]),O(Gs,"click",t[29]),O(li,"click",t[66]),O(si,"click",t[67]),O(Ts,"change",t[68]),O(oo,"input",t[69]),O(Qs,"change",t[70]),O(Fs,"change",t[71]),O(Zs,"change",t[72]),O(Xs,"change",t[76]),O(no,"change",t[77]),O(wo,"change",t[78]),O(xs,"click",t[29]),O(Kn,"click",t[80]),O(Gn,"click",t[81])],Mu=!0)},p(K,me){(!Ue||me[0]&16777216)&&r!==(r=K[24]("logs.title")+"")&&v(a,r),K[22]?ns?ns.p(K,me):(ns=np(K),ns.c(),ns.m(l,u)):ns&&(ns.d(1),ns=null),(!Ue||me[0]&16777216&&g!==(g=K[24]("logs.searchPlaceholder")))&&o(m,"placeholder",g),me[0]&2&&m.value!==K[1]&&G(m,K[1]),(!Ue||me[0]&16777216)&&C!==(C=K[24]("logs.method")+"")&&v(T,C),K[2]?Ss||(Ss=rp(),Ss.c(),Ss.m(E,P)):Ss&&(Ss.d(1),Ss=null),(!Ue||me[0]&4&&j!==(j="btn btn-sm "+(K[2]?"btn-primary":"btn-ghost")+" gap-1"))&&o(E,"class",j),(!Ue||me[0]&16777216)&&Z!==(Z=K[24]("logs.allMethods")+"")&&v(Y,Z),(!Ue||me[0]&4)&&X(Q,"active",K[2]==="GET"),(!Ue||me[0]&4)&&X(F,"active",K[2]==="POST"),(!Ue||me[0]&4)&&X(se,"active",K[2]==="PUT"),(!Ue||me[0]&4)&&X(pe,"active",K[2]==="DELETE"),(!Ue||me[0]&4)&&X(re,"active",K[2]==="PATCH"),(!Ue||me[0]&16777216)&&ce!==(ce=K[24]("logs.status")+"")&&v(ae,ce),K[3]?Ms||(Ms=ip(),Ms.c(),Ms.m($,Fe)):Ms&&(Ms.d(1),Ms=null),(!Ue||me[0]&8&&je!==(je="btn btn-sm "+(K[3]?"btn-primary":"btn-ghost")+" gap-1"))&&o($,"class",je),(!Ue||me[0]&16777216)&&He!==(He=K[24]("logs.statusPlaceholder")+"")&&v(ze,He),me[0]&8&&te.value!==K[3]&&G(te,K[3]),(!Ue||me[0]&16777216)&&Ee!==(Ee=K[24]("logs.result")+"")&&v(ye,Ee),K[4]!==void 0?Rs||(Rs=ap(),Rs.c(),Rs.m(ge,Oe)):Rs&&(Rs.d(1),Rs=null),(!Ue||me[0]&16&&we!==(we="btn btn-sm "+(K[4]!==void 0?"btn-primary":"btn-ghost")+" gap-1"))&&o(ge,"class",we),(!Ue||me[0]&16777216)&&Ve!==(Ve=K[24]("logs.allResults")+"")&&v(be,Ve),(!Ue||me[0]&16777216)&&Le!==(Le=K[24]("logs.success")+"")&&v(Te,Le),(!Ue||me[0]&16)&&X(Me,"active",K[4]===!0),(!Ue||me[0]&16777216)&&De!==(De=K[24]("logs.failed")+"")&&v(ee,De),(!Ue||me[0]&16)&&X(W,"active",K[4]===!1),(!Ue||me[0]&16777216)&&gt!==(gt=K[24]("logs.moreFilters")+"")&&v(Xe,gt),K[5]||K[8]!=="recent"||K[9]!==1||K[6]!=="timestamp"||K[7]!=="desc"?rs?rs.p(K,me):(rs=up(K),rs.c(),rs.m(Ge,Et)):rs&&(rs.d(1),rs=null),(!Ue||me[0]&992&&ut!==(ut="btn btn-sm "+(K[5]||K[8]!=="recent"||K[9]!==1||K[6]!=="timestamp"||K[7]!=="desc"?"btn-primary":"btn-ghost")+" gap-1"))&&o(Ge,"class",ut),(!Ue||me[0]&16777216)&&pt!==(pt=K[24]("logs.requestTypeFilter")+"")&&v(Tt,pt),(!Ue||me[0]&16777216)&&yt!==(yt=K[24]("logs.requestType_all")+"")&&v(bl,yt),(!Ue||me[0]&16777216)&&Qt!==(Qt=K[24]("logs.requestType_final")+"")&&v(Pt,Qt),(!Ue||me[0]&16777216)&&El!==(El=K[24]("logs.requestType_retry")+"")&&v(Bl,El),(!Ue||me[0]&16777216)&&ol!==(ol=K[24]("logs.requestType_recovery")+"")&&v(Ol,ol),me[0]&32&&St(jt,K[5]),(!Ue||me[0]&16777216)&&cl!==(cl=K[24]("logs.timeRange")+"")&&v(Ot,cl),(!Ue||me[0]&16777216)&&Fl!==(Fl=K[24]("logs.allTime")+"")&&v($l,Fl),(!Ue||me[0]&16777216)&&Ml!==(Ml=K[24]("logs.recentTime")+"")&&v(es,Ml),(!Ue||me[0]&16777216)&&Nl!==(Nl=K[24]("logs.customTime")+"")&&v(Yl,Nl),me[0]&256&&St(Lt,K[8]),K[8]==="recent"?is?is.p(K,me):(is=fp(K),is.c(),is.m(ct,pl)):is&&(is.d(1),is=null),K[8]==="custom"?as?as.p(K,me):(as=dp(K),as.c(),as.m(ct,Rl)):as&&(as.d(1),as=null),(!Ue||me[0]&16777216)&&zl!==(zl=K[24]("logs.sortBy")+"")&&v(Kl,zl),(!Ue||me[0]&16777216)&&rl!==(rl=K[24]("logs.sortByTimestamp")+"")&&v(il,rl),(!Ue||me[0]&16777216)&&el!==(el=K[24]("logs.sortByDuration")+"")&&v(gl,el),(!Ue||me[0]&16777216)&&xe!==(xe=K[24]("logs.sortByStatus")+"")&&v(Ul,xe),me[0]&64&&St(Vt,K[6]),(!Ue||me[0]&16777216)&&ls!==(ls=K[24]("logs.desc")+"")&&v(Ds,ls),(!Ue||me[0]&16777216)&&Os!==(Os=K[24]("logs.asc")+"")&&v(_l,Os),me[0]&128&&St(Xl,K[7]),K[12]?us?us.p(K,me):(us=cp(K),us.c(),us.m(vl,null)):us&&(us.d(1),us=null),(!Ue||me[0]&16777216)&&ur!==(ur=K[24]("logs.autoRefresh")+"")&&v(ra,ur),me[0]&4096&&(vo.checked=K[12]),K[12]?fs?fs.p(K,me):(fs=pp(K),fs.c(),fs.m(bo,null)):fs&&(fs.d(1),fs=null),(!Ue||me[0]&131072)&&X(Us,"animate-spin",K[17]),(!Ue||me[0]&16777216)&&fr!==(fr=K[24]("common.refresh")+"")&&v(aa,fr),(!Ue||me[0]&131072)&&(Ns.disabled=K[17]),(!Ue||me[0]&16777216)&&dr!==(dr=K[24]("logs.export")+"")&&v(fa,dr),K[23]>0?ds?ds.p(K,me):(ds=hp(K),ds.c(),ds.m(fl,null)):ds&&(ds.d(1),ds=null),(!Ue||me[0]&16777216)&&hr!==(hr=K[24]("logs.filters")+"")&&v(pa,hr),K[2]||K[3]||K[4]!==void 0||K[5]||K[8]!=="recent"||K[9]!==1||K[6]!=="timestamp"||K[7]!=="desc"?cs?cs.p(K,me):(cs=mp(K),cs.c(),cs.m(Ls,null)):cs&&(cs.d(1),cs=null),(!Ue||me[0]&1020&&mr!==(mr="btn btn-sm "+(K[2]||K[3]||K[4]!==void 0||K[5]||K[8]!=="recent"||K[9]!==1||K[6]!=="timestamp"||K[7]!=="desc"?"btn-primary":"btn-ghost")+" gap-1"))&&o(Ls,"class",mr),(!Ue||me[0]&16777216)&&br!==(br=K[24]("logs.method")+"")&&v(ha,br),(!Ue||me[0]&16777216)&&vr!==(vr=K[24]("logs.allMethods")+"")&&v(ma,vr),me[0]&4&&St(Es,K[2]),(!Ue||me[0]&16777216)&&yr!==(yr=K[24]("logs.status")+"")&&v(ga,yr),me[0]&8&&lo.value!==K[3]&&G(lo,K[3]),(!Ue||me[0]&16777216)&&Tr!==(Tr=K[24]("logs.result")+"")&&v(_a,Tr),(!Ue||me[0]&16777216)&&Sr!==(Sr=K[24]("logs.allResults")+"")&&v(ba,Sr),(!Ue||me[0]&16777216)&&Mr!==(Mr=K[24]("logs.success")+"")&&v(va,Mr),(!Ue||me[0]&16777216)&&Rr!==(Rr=K[24]("logs.failed")+"")&&v(ka,Rr),me[0]&16&&St(Vs,K[4]),(!Ue||me[0]&16777216)&&Pr!==(Pr=K[24]("logs.requestTypeFilter")+"")&&v(ya,Pr),(!Ue||me[0]&16777216)&&Lr!==(Lr=K[24]("logs.requestType_all")+"")&&v(Ca,Lr),(!Ue||me[0]&16777216)&&jr!==(jr=K[24]("logs.requestType_final")+"")&&v(Ea,jr),(!Ue||me[0]&16777216)&&Dr!==(Dr=K[24]("logs.requestType_retry")+"")&&v(Ta,Dr),(!Ue||me[0]&16777216)&&Br!==(Br=K[24]("logs.requestType_recovery")+"")&&v(Sa,Br),me[0]&32&&St(Is,K[5]),(!Ue||me[0]&16777216)&&Fr!==(Fr=K[24]("logs.timeRange")+"")&&v(Ma,Fr),(!Ue||me[0]&16777216)&&zr!==(zr=K[24]("logs.allTime")+"")&&v(Ra,zr),(!Ue||me[0]&16777216)&&Or!==(Or=K[24]("logs.recentTime")+"")&&v(qa,Or),(!Ue||me[0]&16777216)&&Nr!==(Nr=K[24]("logs.customTime")+"")&&v(Ha,Nr),me[0]&256&&St(Js,K[8]),K[8]==="recent"?ps?ps.p(K,me):(ps=gp(K),ps.c(),ps.m(wl,Pa)):ps&&(ps.d(1),ps=null),K[8]==="custom"?hs?hs.p(K,me):(hs=_p(K),hs.c(),hs.m(wl,La)):hs&&(hs.d(1),hs=null),(!Ue||me[0]&16777216)&&Jr!==(Jr=K[24]("logs.sortBy")+"")&&v(Da,Jr),(!Ue||me[0]&16777216)&&Wr!==(Wr=K[24]("logs.sortByTimestamp")+"")&&v(Ba,Wr),(!Ue||me[0]&16777216)&&Kr!==(Kr=K[24]("logs.sortByDuration")+"")&&v(Ia,Kr),(!Ue||me[0]&16777216)&&Gr!==(Gr=K[24]("logs.sortByStatus")+"")&&v(Aa,Gr),me[0]&64&&St(Ws,K[6]),(!Ue||me[0]&16777216)&&Yr!==(Yr=K[24]("logs.desc")+"")&&v(Fa,Yr),(!Ue||me[0]&16777216)&&Qr!==(Qr=K[24]("logs.asc")+"")&&v(za,Qr),me[0]&128&&St(so,K[7]),(!Ue||me[0]&131072)&&X(Ks,"animate-spin",K[17]),(!Ue||me[0]&16777216)&&Zr!==(Zr=K[24]("common.refresh")+"")&&v(Oa,Zr),(!Ue||me[0]&16777216)&&$r!==($r=K[24]("logs.autoRefresh")+"")&&v(Na,$r),me[0]&4096&&(ko.checked=K[12]),K[12]?ms?ms.p(K,me):(ms=bp(K),ms.c(),ms.m(os,Ua)):ms&&(ms.d(1),ms=null),(!Ue||me[0]&131072)&&X(Ys,"animate-spin",K[17]),(!Ue||me[0]&16777216)&&ei!==(ei=K[24]("common.refresh")+"")&&v(Ja,ei),(!Ue||me[0]&131072)&&(Gs.disabled=K[17]),K[21]>0?gs?gs.p(K,me):(gs=vp(K),gs.c(),gs.m(os,null)):gs&&(gs.d(1),gs=null),(!Ue||me[0]&16777216)&&ti!==(ti=K[24]("logs.export")+"")&&v(Wa,ti),K[23]>0?_s?_s.p(K,me):(_s=kp(K),_s.c(),_s.m(Bs,null)):_s&&(_s.d(1),_s=null),(!Ue||me[0]&16777216)&&ni!==(ni=K[24]("logs.actions")+"")&&v(Ya,ni),K[2]||K[3]||K[4]!==void 0||K[5]||K[8]!=="recent"||K[9]!==1||K[6]!=="timestamp"||K[7]!=="desc"||K[12]?qs||(qs=wp(),qs.c(),qs.m(As,null)):qs&&(qs.d(1),qs=null),(!Ue||me[0]&16777216)&&ii!==(ii=K[24]("logs.filters")+"")&&v(Qa,ii),(!Ue||me[0]&16777216)&&fi!==(fi=K[24]("logs.method")+"")&&v(Za,fi),(!Ue||me[0]&16777216)&&di!==(di=K[24]("logs.allMethods")+"")&&v(Xa,di),me[0]&4&&St(Ts,K[2]),(!Ue||me[0]&16777216)&&hi!==(hi=K[24]("logs.status")+"")&&v(xa,hi),me[0]&8&&oo.value!==K[3]&&G(oo,K[3]),(!Ue||me[0]&16777216)&&_i!==(_i=K[24]("logs.result")+"")&&v($a,_i),(!Ue||me[0]&16777216)&&bi!==(bi=K[24]("logs.allResults")+"")&&v(eu,bi),(!Ue||me[0]&16777216)&&vi!==(vi=K[24]("logs.success")+"")&&v(tu,vi),(!Ue||me[0]&16777216)&&ki!==(ki=K[24]("logs.failed")+"")&&v(lu,ki),me[0]&16&&St(Qs,K[4]),(!Ue||me[0]&16777216)&&Ci!==(Ci=K[24]("logs.requestTypeFilter")+"")&&v(su,Ci),(!Ue||me[0]&16777216)&&Ei!==(Ei=K[24]("logs.requestType_all")+"")&&v(ou,Ei),(!Ue||me[0]&16777216)&&Ti!==(Ti=K[24]("logs.requestType_final")+"")&&v(nu,Ti),(!Ue||me[0]&16777216)&&Si!==(Si=K[24]("logs.requestType_retry")+"")&&v(ru,Si),(!Ue||me[0]&16777216)&&Mi!==(Mi=K[24]("logs.requestType_recovery")+"")&&v(iu,Mi),me[0]&32&&St(Fs,K[5]),(!Ue||me[0]&16777216)&&Hi!==(Hi=K[24]("logs.timeRange")+"")&&v(au,Hi),(!Ue||me[0]&16777216)&&Pi!==(Pi=K[24]("logs.allTime")+"")&&v(uu,Pi),(!Ue||me[0]&16777216)&&Li!==(Li=K[24]("logs.recentTime")+"")&&v(fu,Li),(!Ue||me[0]&16777216)&&ji!==(ji=K[24]("logs.customTime")+"")&&v(du,ji),me[0]&256&&St(Zs,K[8]),K[8]==="recent"?bs?bs.p(K,me):(bs=yp(K),bs.c(),bs.m(It,cu)):bs&&(bs.d(1),bs=null),K[8]==="custom"?vs?vs.p(K,me):(vs=Cp(K),vs.c(),vs.m(It,pu)):vs&&(vs.d(1),vs=null),(!Ue||me[0]&16777216)&&Ii!==(Ii=K[24]("logs.sortBy")+"")&&v(hu,Ii),(!Ue||me[0]&16777216)&&Ai!==(Ai=K[24]("logs.sortByTimestamp")+"")&&v(mu,Ai),(!Ue||me[0]&16777216)&&Fi!==(Fi=K[24]("logs.sortByDuration")+"")&&v(gu,Fi),(!Ue||me[0]&16777216)&&zi!==(zi=K[24]("logs.sortByStatus")+"")&&v(_u,zi),me[0]&64&&St(Xs,K[6]),(!Ue||me[0]&16777216)&&Oi!==(Oi=K[24]("logs.desc")+"")&&v(bu,Oi),(!Ue||me[0]&16777216)&&Ni!==(Ni=K[24]("logs.asc")+"")&&v(vu,Ni),me[0]&128&&St(no,K[7]),(!Ue||me[0]&16777216)&&Vi!==(Vi=K[24]("common.refresh")+"")&&v(wu,Vi),(!Ue||me[0]&16777216)&&Ki!==(Ki=K[24]("logs.autoRefresh")+"")&&v(yu,Ki),me[0]&4096&&(wo.checked=K[12]),K[12]?ks?ks.p(K,me):(ks=Ep(K),ks.c(),ks.m(It,Cu)):ks&&(ks.d(1),ks=null),(!Ue||me[0]&131072)&&X($s,"animate-spin",K[17]),(!Ue||me[0]&16777216)&&Gi!==(Gi=K[24]("common.refresh")+"")&&v(Eu,Gi),(!Ue||me[0]&131072)&&(xs.disabled=K[17]),K[23]>0?ws?ws.p(K,me):(ws=Tp(K),ws.c(),ws.m(It,null)):ws&&(ws.d(1),ws=null),K[23]>0?ys?ys.p(K,me):(ys=Sp(K),ys.c(),ys.m(d,null)):ys&&(ys.d(1),ys=null),Yi===(Yi=l1(K))&&eo?eo.p(K,me):(eo.d(1),eo=Yi(K),eo&&(eo.c(),eo.m(l,null))),K[20]&&K[19]?Vl?(Vl.p(K,me),me[0]&1572864&&$e(Vl,1)):(Vl=Ap(K),Vl.c(),$e(Vl,1),Vl.m(er.parentNode,er)):Vl&&(Ql(),lt(Vl,1,1,()=>{Vl=null}),Zl())},i(K){Ue||($e(Vl),Ue=!0)},o(K){lt(Vl),Ue=!1},d(K){K&&(R(l),R(Su),R(er)),ns&&ns.d(),Ss&&Ss.d(),Ms&&Ms.d(),Rs&&Rs.d(),rs&&rs.d(),is&&is.d(),as&&as.d(),us&&us.d(),fs&&fs.d(),ds&&ds.d(),cs&&cs.d(),ps&&ps.d(),hs&&hs.d(),ms&&ms.d(),gs&&gs.d(),_s&&_s.d(),qs&&qs.d(),bs&&bs.d(),vs&&vs.d(),ks&&ks.d(),ws&&ws.d(),ys&&ys.d(),eo.d(),Vl&&Vl.d(K),Mu=!1,mt(t1)}}}let Yn=50;function Fp(t){return new Date(t).toLocaleString()}function zp(t){return t<1e3?\`\${t}ms\`:\`\${(t/1e3).toFixed(2)}s\`}function Op(t){return t<300?"badge-success":t<400?"badge-info":t<500?"badge-warning":"badge-error"}function Np(t){return t==="final"?"badge-success":t==="retry"?"badge-warning":t==="recovery"?"badge-info":"badge-ghost"}function t_(t,l,e){let n,r;Nt(t,Dt,st=>e(24,r=st));let a=1,f="",u="",d="",c,p="",m="timestamp",g="desc",b="recent",k=1,w="",y="",E=[],C=0,T=0,M=!0,P=null,I=null,H=!1,j=!0,D="30s",B=null,N=0,V=!1;const Z={"5s":5e3,"10s":1e4,"30s":3e4,"60s":6e4};let Y="",x="";async function U(){try{e(17,M=!0),e(18,P=null);const st={page:a,limit:Yn,sortBy:m,sortOrder:g};f.trim()&&(st.searchTerm=f.trim()),u&&(st.method=u),d&&(st.status=parseInt(d)),c!==void 0&&(st.success=c),p&&(st.requestType=p),b==="recent"?(st.endTime=Date.now(),st.startTime=Date.now()-k*60*60*1e3):b==="custom"&&(w&&(st.startTime=new Date(w).getTime()),y&&(st.endTime=new Date(y).getTime()));const Mt=await H2(st);e(14,E=Mt.data),e(15,C=Mt.total),e(16,T=Mt.totalPages)}catch(st){e(18,P=st.message)}finally{e(17,M=!1)}}async function Q(st){try{const Mt={};f.trim()&&(Mt.searchTerm=f.trim()),u&&(Mt.method=u),d&&(Mt.status=parseInt(d)),c!==void 0&&(Mt.success=c),p&&(Mt.requestType=p),b==="recent"?(Mt.endTime=Date.now(),Mt.startTime=Date.now()-k*60*60*1e3):b==="custom"&&(w&&(Mt.startTime=new Date(w).getTime()),y&&(Mt.endTime=new Date(y).getTime()));const pt=await P2(Mt,st),Tt=URL.createObjectURL(pt),ll=document.createElement("a");ll.href=Tt,ll.download=\`access-logs-\${Date.now()}.\${st}\`,ll.click(),URL.revokeObjectURL(Tt)}catch(Mt){alert(\`Export failed: \${Mt.message}\`)}}function S(st){e(19,I=st),e(20,H=!0)}function L(st){return st?r(\`logs.requestType_\${st}\`):"-"}function F(){e(1,f=""),e(2,u=""),e(3,d=""),e(4,c=void 0),e(5,p=""),e(8,b="recent"),e(9,k=1),e(10,w=""),e(11,y=""),e(6,m="timestamp"),e(7,g="desc"),e(0,a=1)}function z(){return!!(f||u||d||c!==void 0||p)}function J(){if(B&&clearInterval(B),j){const st=Z[D];B=window.setInterval(()=>{document.visibilityState==="visible"&&(z()?e(22,V=!0):(U(),e(21,N=Date.now()),e(22,V=!1)))},st)}}function se(){B&&(clearInterval(B),B=null)}async function oe(){await U(),e(21,N=Date.now()),e(22,V=!1)}function fe(){if(document.visibilityState==="visible"){const st=Date.now()-N,Mt=Z[D];st>=Mt&&U(),j&&J()}else se()}Hs(()=>{localStorage.getItem("logsAdvancedFiltersExpanded");const st=localStorage.getItem("logsRefreshInterval");st&&e(13,D=st);const Mt=localStorage.getItem("logsAutoRefresh");Mt!==null&&e(12,j=Mt==="true"),U(),J(),document.addEventListener("visibilitychange",fe)}),xn(()=>{se(),document.removeEventListener("visibilitychange",fe)});function pe(){f=this.value,e(1,f)}const ne=()=>e(2,u=""),de=()=>e(2,u="GET"),re=()=>e(2,u="POST"),A=()=>e(2,u="PUT"),le=()=>e(2,u="DELETE"),$=()=>e(2,u="PATCH");function ce(){d=this.value,e(3,d)}const ae=()=>e(4,c=void 0),Se=()=>e(4,c=!0),Fe=()=>e(4,c=!1);function qe(){p=yl(this),e(5,p)}function he(){b=yl(this),e(8,b)}function je(){k=Ct(this.value),e(9,k)}function Ie(){w=this.value,e(10,w)}function Be(){y=this.value,e(11,y)}function ke(){m=yl(this),e(6,m)}function Ce(){g=yl(this),e(7,g)}function Re(){j=this.checked,e(12,j)}function He(){D=yl(this),e(13,D)}const ze=()=>Q("json"),Ne=()=>Q("csv");function te(){u=yl(this),e(2,u)}function ve(){d=this.value,e(3,d)}function ue(){c=yl(this),e(4,c)}function ge(){p=yl(this),e(5,p)}function Ee(){b=yl(this),e(8,b)}function ye(){k=Ct(this.value),e(9,k)}function We(){w=this.value,e(10,w)}function Oe(){y=this.value,e(11,y)}function et(){m=yl(this),e(6,m)}function Ke(){g=yl(this),e(7,g)}function we(){j=this.checked,e(12,j)}function _e(){D=yl(this),e(13,D)}const Pe=()=>Q("json"),Ze=()=>Q("csv");function Ae(){u=yl(this),e(2,u)}function Ve(){d=this.value,e(3,d)}function be(){c=yl(this),e(4,c)}function rt(){p=yl(this),e(5,p)}function dt(){b=yl(this),e(8,b)}function Me(){k=Ct(this.value),e(9,k)}function Le(){w=this.value,e(10,w)}function Te(){y=this.value,e(11,y)}function it(){m=yl(this),e(6,m)}function Je(){g=yl(this),e(7,g)}function W(){j=this.checked,e(12,j)}function De(){D=yl(this),e(13,D)}const ee=()=>Q("json"),nt=()=>Q("csv"),Bt=()=>e(1,f=""),Ge=()=>e(2,u=""),gt=()=>e(3,d=""),Xe=()=>e(4,c=void 0),at=()=>e(5,p=""),Et=()=>e(9,k=1),vt=()=>{e(8,b="recent"),e(10,w=""),e(11,y="")},Ft=()=>e(8,b="recent"),ut=()=>{e(6,m="timestamp"),e(7,g="desc")},_t=st=>S(st),kt=()=>e(0,a=a-1),ct=()=>e(0,a=a+1),dl=()=>{e(20,H=!1),e(19,I=null)};return t.$$.update=()=>{if(t.$$.dirty[0]&4096&&(j?J():se()),t.$$.dirty[0]&12288&&(localStorage.setItem("logsRefreshInterval",D),localStorage.setItem("logsAutoRefresh",String(j))),t.$$.dirty[0]&1022&&e(23,n=[f.trim(),u,d,c!==void 0,p,b!=="all"&&b!=="recent"||k!==1,m!=="timestamp"||g!=="desc"].filter(Boolean).length),t.$$.dirty[0]&1073742846){const st=JSON.stringify({limit:Yn,searchTerm:f,method:u,statusFilter:d,successFilter:c,requestTypeFilter:p,sortBy:m,sortOrder:g,timeRangeType:b,recentHours:k});Y&&st!==Y&&e(0,a=1),e(30,Y=st)}if(t.$$.dirty[0]&3328|t.$$.dirty[1]&1){const st=JSON.stringify({customStartTime:w,customEndTime:y});b==="custom"&&x&&st!==x&&e(0,a=1),e(31,x=st)}t.$$.dirty[0]&4095&&U()},[a,f,u,d,c,p,m,g,b,k,w,y,j,D,E,C,T,M,P,I,H,N,V,n,r,Q,S,L,F,oe,Y,x,pe,ne,de,re,A,le,$,ce,ae,Se,Fe,qe,he,je,Ie,Be,ke,Ce,Re,He,ze,Ne,te,ve,ue,ge,Ee,ye,We,Oe,et,Ke,we,_e,Pe,Ze,Ae,Ve,be,rt,dt,Me,Le,Te,it,Je,W,De,ee,nt,Bt,Ge,gt,Xe,at,Et,vt,Ft,ut,_t,kt,ct,dl]}class l_ extends Kt{constructor(l){super(),Gt(this,l,t_,e_,Yt,{},null,[-1,-1,-1,-1])}}async function s_(t){return ql.post("/auth/login",{token:t})}function Up(t){let l,e,n;return{c(){l=i("div"),e=i("span"),n=_(t[2]),o(e,"class","label-text-alt text-error"),o(l,"class","label")},m(r,a){q(r,l,a),s(l,e),s(e,n)},p(r,a){a&4&&v(n,r[2])},d(r){r&&R(l)}}}function o_(t){let l,e,n,r,a,f,u,d,c=t[3]("login.title")+"",p,m,g,b=t[3]("login.subtitle")+"",k,w,y,E,C,T=t[3]("login.token")+"",M,P,I,H,j,D,B,N,V=(t[1]?t[3]("login.loggingIn"):t[3]("login.submit"))+"",Z,Y,x,U,Q,S=t[2]&&Up(t);return{c(){l=i("div"),e=i("div"),n=i("div"),r=i("div"),a=ie("svg"),f=ie("path"),u=h(),d=i("h1"),p=_(c),m=h(),g=i("p"),k=_(b),w=h(),y=i("div"),E=i("label"),C=i("span"),M=_(T),P=h(),I=i("input"),j=h(),S&&S.c(),D=h(),B=i("div"),N=i("button"),Z=_(V),Y=h(),x=i("div"),x.textContent="Bungee Reverse Proxy",o(f,"stroke-linecap","round"),o(f,"stroke-linejoin","round"),o(f,"stroke-width","2"),o(f,"d","M13 10V3L4 14h7v7l9-11h-7z"),o(a,"xmlns","http://www.w3.org/2000/svg"),o(a,"class","h-16 w-16 text-primary mb-4"),o(a,"fill","none"),o(a,"viewBox","0 0 24 24"),o(a,"stroke","currentColor"),o(d,"class","text-3xl font-bold text-center"),o(g,"class","text-sm text-base-content/60 text-center mt-2"),o(r,"class","flex flex-col items-center mb-6"),o(C,"class","label-text"),o(E,"class","label"),o(E,"for","token-input"),o(I,"id","token-input"),o(I,"type","password"),o(I,"placeholder",H=t[3]("login.tokenPlaceholder")),o(I,"class","input input-bordered w-full"),I.disabled=t[1],o(I,"autocomplete","off"),X(I,"input-error",!!t[2]),o(y,"class","form-control w-full"),o(N,"class","btn btn-primary"),N.disabled=t[1],X(N,"loading",t[1]),o(B,"class","form-control mt-6"),o(x,"class","divider text-xs opacity-50 mt-6"),o(n,"class","card-body"),o(e,"class","card w-full max-w-md bg-base-100 shadow-2xl svelte-1qok2wg"),o(l,"class","min-h-screen bg-base-200 flex items-center justify-center p-4")},m(L,F){q(L,l,F),s(l,e),s(e,n),s(n,r),s(r,a),s(a,f),s(r,u),s(r,d),s(d,p),s(r,m),s(r,g),s(g,k),s(n,w),s(n,y),s(y,E),s(E,C),s(C,M),s(y,P),s(y,I),G(I,t[0]),s(y,j),S&&S.m(y,null),s(n,D),s(n,B),s(B,N),s(N,Z),s(n,Y),s(n,x),U||(Q=[O(I,"input",t[6]),O(I,"keypress",t[5]),O(N,"click",t[4])],U=!0)},p(L,[F]){F&8&&c!==(c=L[3]("login.title")+"")&&v(p,c),F&8&&b!==(b=L[3]("login.subtitle")+"")&&v(k,b),F&8&&T!==(T=L[3]("login.token")+"")&&v(M,T),F&8&&H!==(H=L[3]("login.tokenPlaceholder"))&&o(I,"placeholder",H),F&2&&(I.disabled=L[1]),F&1&&I.value!==L[0]&&G(I,L[0]),F&4&&X(I,"input-error",!!L[2]),L[2]?S?S.p(L,F):(S=Up(L),S.c(),S.m(y,null)):S&&(S.d(1),S=null),F&10&&V!==(V=(L[1]?L[3]("login.loggingIn"):L[3]("login.submit"))+"")&&v(Z,V),F&2&&(N.disabled=L[1]),F&2&&X(N,"loading",L[1])},i:ot,o:ot,d(L){L&&R(l),S&&S.d(),U=!1,mt(Q)}}}function n_(t,l,e){let n;Nt(t,Dt,p=>e(3,n=p));let r="",a=!1,f="";async function u(){if(!r.trim()){e(2,f=n("login.required"));return}e(1,a=!0),e(2,f="");try{const p=await s_(r);p.success?(N0(r),At.show(n("login.success"),"success"),window.location.hash="#/"):e(2,f=p.error||n("login.unauthorized"))}catch(p){e(2,f=n("login.failed",{values:{error:p.message}}))}finally{e(1,a=!1)}}function d(p){p.key==="Enter"&&!a&&u()}function c(){r=this.value,e(0,r)}return[r,a,f,n,u,d,c]}class r_ extends Kt{constructor(l){super(),Gt(this,l,n_,o_,Yt,{})}}function i_(t){let l,e,n=t[0]("notFound.title")+"",r,a,f,u=t[0]("notFound.message")+"",d,c,p,m=t[0]("notFound.goHome")+"",g;return{c(){l=i("div"),e=i("h1"),r=_(n),a=h(),f=i("p"),d=_(u),c=h(),p=i("a"),g=_(m),o(e,"class","text-6xl font-bold mb-4"),o(f,"class","text-2xl mb-8"),o(p,"href","/__ui/#/"),o(p,"class","btn btn-primary"),o(l,"class","flex flex-col items-center justify-center h-screen")},m(b,k){q(b,l,k),s(l,e),s(e,r),s(l,a),s(l,f),s(f,d),s(l,c),s(l,p),s(p,g)},p(b,[k]){k&1&&n!==(n=b[0]("notFound.title")+"")&&v(r,n),k&1&&u!==(u=b[0]("notFound.message")+"")&&v(d,u),k&1&&m!==(m=b[0]("notFound.goHome")+"")&&v(g,m)},i:ot,o:ot,d(b){b&&R(l)}}}function a_(t,l,e){let n;return Nt(t,Dt,r=>e(0,n=r)),[n]}class u_ extends Kt{constructor(l){super(),Gt(this,l,a_,i_,Yt,{})}}function Vp(t,l,e){const n=t.slice();return n[3]=l[e],n}function Jp(t,l){let e,n,r;function a(){return l[2](l[3])}return n=new Nh({props:{message:l[3].message,type:l[3].type,duration:l[3].duration}}),n.$on("close",a),{key:t,first:null,c(){e=Gl(),Ht(n.$$.fragment),this.first=e},m(f,u){q(f,e,u),qt(n,f,u),r=!0},p(f,u){l=f;const d={};u&1&&(d.message=l[3].message),u&1&&(d.type=l[3].type),u&1&&(d.duration=l[3].duration),n.$set(d)},i(f){r||($e(n.$$.fragment,f),r=!0)},o(f){lt(n.$$.fragment,f),r=!1},d(f){f&&R(e),Rt(n,f)}}}function f_(t){let l=[],e=new Map,n,r,a=ft(t[0]);const f=u=>u[3].id;for(let u=0;u<a.length;u+=1){let d=Vp(t,a,u),c=f(d);e.set(c,l[u]=Jp(c,d))}return{c(){for(let u=0;u<l.length;u+=1)l[u].c();n=Gl()},m(u,d){for(let c=0;c<l.length;c+=1)l[c]&&l[c].m(u,d);q(u,n,d),r=!0},p(u,[d]){d&3&&(a=ft(u[0]),Ql(),l=na(l,d,f,1,u,a,e,n.parentNode,E0,Jp,n,Vp),Zl())},i(u){if(!r){for(let d=0;d<a.length;d+=1)$e(l[d]);r=!0}},o(u){for(let d=0;d<l.length;d+=1)lt(l[d]);r=!1},d(u){u&&R(n);for(let d=0;d<l.length;d+=1)l[d].d(u)}}}function d_(t,l,e){let n;Nt(t,At,f=>e(0,n=f));function r(f){At.remove(f)}return[n,r,f=>r(f.id)]}class c_ extends Kt{constructor(l){super(),Gt(this,l,d_,f_,Yt,{})}}function Wp(t,l,e){const n=t.slice();return n[11]=l[e],n}function p_(t){let l,e,n,r,a,f,u,d,c,p,m,g,b=t[0]("nav.dashboard")+"",k,w,y,E,C,T,M,P,I=t[0]("nav.routes")+"",H,j,D,B,N,V,Z,Y,x=t[0]("nav.logs")+"",U,Q,S,L,F,z,J,se,oe,fe=t[0]("nav.configuration")+"",pe,ne,de,re,A,le,$,ce,ae=Zi.find(t[8])?.name+"",Se,Fe,qe,he,je,Ie,Be,ke,Ce,Re=ft(Zi),He=[];for(let ue=0;ue<Re.length;ue+=1)He[ue]=Kp(Wp(t,Re,ue));let ze=t[4]&&t[5]&&Gp(t);const Ne=[y_,w_,k_,v_,b_,__,g_,m_],te=[];function ve(ue,ge){return ge&2&&(Ie=null),ue[1]==="/login"?0:ue[1]==="/"?1:ue[1]==="/routes"?2:(Ie==null&&(Ie=!!ue[1].startsWith("/routes/edit/")),Ie?3:ue[1]==="/routes/new"?4:ue[1]==="/logs"?5:ue[1]==="/config"?6:7)}return Be=ve(t,-1),ke=te[Be]=Ne[Be](t),{c(){l=i("div"),e=i("div"),n=i("div"),n.innerHTML='<a href="/__ui/#/" class="flex items-center gap-2 px-4 py-2 hover:bg-base-200 rounded-lg transition-colors"><svg xmlns="http://www.w3.org/2000/svg" class="h-8 w-8 text-primary" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 10V3L4 14h7v7l9-11h-7z"></path></svg> <div class="flex flex-col"><span class="text-xl font-bold">Bungee</span> <span class="text-xs text-base-content/60">Reverse Proxy</span></div></a>',r=h(),a=i("div"),f=i("ul"),u=i("li"),d=i("a"),c=ie("svg"),p=ie("path"),m=h(),g=i("span"),k=_(b),w=h(),y=i("li"),E=i("a"),C=ie("svg"),T=ie("path"),M=h(),P=i("span"),H=_(I),j=h(),D=i("li"),B=i("a"),N=ie("svg"),V=ie("path"),Z=h(),Y=i("span"),U=_(x),Q=h(),S=i("li"),L=i("a"),F=ie("svg"),z=ie("path"),J=ie("path"),se=h(),oe=i("span"),pe=_(fe),ne=h(),de=i("div"),re=i("div"),A=ie("svg"),le=ie("path"),$=h(),ce=i("span"),Se=_(ae),Fe=h(),qe=i("ul");for(let ue=0;ue<He.length;ue+=1)He[ue].c();he=h(),ze&&ze.c(),je=h(),ke.c(),o(n,"class","flex-1"),o(p,"stroke-linecap","round"),o(p,"stroke-linejoin","round"),o(p,"stroke-width","2"),o(p,"d","M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"),o(c,"xmlns","http://www.w3.org/2000/svg"),o(c,"class","h-4 w-4"),o(c,"fill","none"),o(c,"viewBox","0 0 24 24"),o(c,"stroke","currentColor"),o(d,"href","/__ui/#/"),o(d,"class","flex items-center gap-2 svelte-1fgps4v"),X(d,"active",t[1]==="/"),o(T,"stroke-linecap","round"),o(T,"stroke-linejoin","round"),o(T,"stroke-width","2"),o(T,"d","M9 20l-5.447-2.724A1 1 0 013 16.382V5.618a1 1 0 011.447-.894L9 7m0 13l6-3m-6 3V7m6 10l4.553 2.276A1 1 0 0021 18.382V7.618a1 1 0 00-.553-.894L15 4m0 13V4m0 0L9 7"),o(C,"xmlns","http://www.w3.org/2000/svg"),o(C,"class","h-4 w-4"),o(C,"fill","none"),o(C,"viewBox","0 0 24 24"),o(C,"stroke","currentColor"),o(E,"href","/__ui/#/routes"),o(E,"class","flex items-center gap-2 svelte-1fgps4v"),X(E,"active",t[1].startsWith("/routes")),o(V,"stroke-linecap","round"),o(V,"stroke-linejoin","round"),o(V,"stroke-width","2"),o(V,"d","M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"),o(N,"xmlns","http://www.w3.org/2000/svg"),o(N,"class","h-4 w-4"),o(N,"fill","none"),o(N,"viewBox","0 0 24 24"),o(N,"stroke","currentColor"),o(B,"href","/__ui/#/logs"),o(B,"class","flex items-center gap-2 svelte-1fgps4v"),X(B,"active",t[1]==="/logs"),o(z,"stroke-linecap","round"),o(z,"stroke-linejoin","round"),o(z,"stroke-width","2"),o(z,"d","M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"),o(J,"stroke-linecap","round"),o(J,"stroke-linejoin","round"),o(J,"stroke-width","2"),o(J,"d","M15 12a3 3 0 11-6 0 3 3 0 016 0z"),o(F,"xmlns","http://www.w3.org/2000/svg"),o(F,"class","h-4 w-4"),o(F,"fill","none"),o(F,"viewBox","0 0 24 24"),o(F,"stroke","currentColor"),o(L,"href","/__ui/#/config"),o(L,"class","flex items-center gap-2 svelte-1fgps4v"),X(L,"active",t[1]==="/config"),o(f,"class","menu menu-horizontal px-1 gap-1"),o(le,"stroke-linecap","round"),o(le,"stroke-linejoin","round"),o(le,"stroke-width","2"),o(le,"d","M3 5h12M9 3v2m1.048 9.5A18.022 18.022 0 016.412 9m6.088 9h7M11 21l5-10 5 10M12.751 5C11.783 10.77 8.07 15.61 3 18.129"),o(A,"xmlns","http://www.w3.org/2000/svg"),o(A,"class","h-4 w-4"),o(A,"fill","none"),o(A,"viewBox","0 0 24 24"),o(A,"stroke","currentColor"),o(ce,"class","text-xs"),o(re,"role","button"),o(re,"tabindex","0"),o(re,"class","btn btn-ghost btn-sm gap-1"),o(qe,"role","menu"),o(qe,"tabindex","0"),o(qe,"class","dropdown-content z-[1] menu p-2 shadow bg-base-100 rounded-box w-32 mt-2 gap-1"),o(de,"class","dropdown dropdown-end mx-2"),o(a,"class","flex-none"),o(e,"class","navbar bg-base-100 shadow-lg sticky top-0 z-50"),o(l,"class","min-h-screen bg-base-200")},m(ue,ge){q(ue,l,ge),s(l,e),s(e,n),s(e,r),s(e,a),s(a,f),s(f,u),s(u,d),s(d,c),s(c,p),s(d,m),s(d,g),s(g,k),s(f,w),s(f,y),s(y,E),s(E,C),s(C,T),s(E,M),s(E,P),s(P,H),s(f,j),s(f,D),s(D,B),s(B,N),s(N,V),s(B,Z),s(B,Y),s(Y,U),s(f,Q),s(f,S),s(S,L),s(L,F),s(F,z),s(F,J),s(L,se),s(L,oe),s(oe,pe),s(a,ne),s(a,de),s(de,re),s(re,A),s(A,le),s(re,$),s(re,ce),s(ce,Se),s(de,Fe),s(de,qe);for(let Ee=0;Ee<He.length;Ee+=1)He[Ee]&&He[Ee].m(qe,null);s(a,he),ze&&ze.m(a,null),s(l,je),te[Be].m(l,null),Ce=!0},p(ue,ge){if((!Ce||ge&1)&&b!==(b=ue[0]("nav.dashboard")+"")&&v(k,b),(!Ce||ge&2)&&X(d,"active",ue[1]==="/"),(!Ce||ge&1)&&I!==(I=ue[0]("nav.routes")+"")&&v(H,I),(!Ce||ge&2)&&X(E,"active",ue[1].startsWith("/routes")),(!Ce||ge&1)&&x!==(x=ue[0]("nav.logs")+"")&&v(U,x),(!Ce||ge&2)&&X(B,"active",ue[1]==="/logs"),(!Ce||ge&1)&&fe!==(fe=ue[0]("nav.configuration")+"")&&v(pe,fe),(!Ce||ge&2)&&X(L,"active",ue[1]==="/config"),(!Ce||ge&8)&&ae!==(ae=Zi.find(ue[8])?.name+"")&&v(Se,ae),ge&72){Re=ft(Zi);let ye;for(ye=0;ye<Re.length;ye+=1){const We=Wp(ue,Re,ye);He[ye]?He[ye].p(We,ge):(He[ye]=Kp(We),He[ye].c(),He[ye].m(qe,null))}for(;ye<He.length;ye+=1)He[ye].d(1);He.length=Re.length}ue[4]&&ue[5]?ze?ze.p(ue,ge):(ze=Gp(ue),ze.c(),ze.m(a,null)):ze&&(ze.d(1),ze=null);let Ee=Be;Be=ve(ue,ge),Be===Ee?te[Be].p(ue,ge):(Ql(),lt(te[Ee],1,1,()=>{te[Ee]=null}),Zl(),ke=te[Be],ke?ke.p(ue,ge):(ke=te[Be]=Ne[Be](ue),ke.c()),$e(ke,1),ke.m(l,null))},i(ue){Ce||($e(ke),Ce=!0)},o(ue){lt(ke),Ce=!1},d(ue){ue&&R(l),$t(He,ue),ze&&ze.d(),te[Be].d()}}}function h_(t){let l;return{c(){l=i("div"),l.innerHTML='<div class="flex flex-col items-center gap-4"><span class="loading loading-spinner loading-lg"></span> <p class="text-base-content/60">Loading...</p></div>',o(l,"class","min-h-screen bg-base-200 flex items-center justify-center")},m(e,n){q(e,l,n)},p:ot,i:ot,o:ot,d(e){e&&R(l)}}}function Kp(t){let l,e,n,r,a;function f(){return t[9](t[11])}return{c(){l=i("li"),e=i("button"),e.textContent=\`\${t[11].name}\`,n=h(),o(e,"class","svelte-1fgps4v"),X(e,"active",t[3]===t[11].code)},m(u,d){q(u,l,d),s(l,e),s(l,n),r||(a=O(e,"click",f),r=!0)},p(u,d){t=u,d&8&&X(e,"active",t[3]===t[11].code)},d(u){u&&R(l),r=!1,a()}}}function Gp(t){let l,e,n,r,a,f,u=t[0]("login.logout")+"",d,c,p;return{c(){l=i("div"),e=i("button"),n=ie("svg"),r=ie("path"),a=h(),f=i("span"),d=_(u),o(r,"stroke-linecap","round"),o(r,"stroke-linejoin","round"),o(r,"stroke-width","2"),o(r,"d","M17 16l4-4m0 0l-4-4m4 4H7m6 4v1a3 3 0 01-3 3H6a3 3 0 01-3-3V7a3 3 0 013-3h4a3 3 0 013 3v1"),o(n,"xmlns","http://www.w3.org/2000/svg"),o(n,"class","h-4 w-4"),o(n,"fill","none"),o(n,"viewBox","0 0 24 24"),o(n,"stroke","currentColor"),o(f,"class","text-xs hidden md:inline"),o(e,"class","btn btn-ghost btn-sm gap-1"),o(l,"class","mx-2")},m(m,g){q(m,l,g),s(l,e),s(e,n),s(n,r),s(e,a),s(e,f),s(f,d),c||(p=O(e,"click",t[7]),c=!0)},p(m,g){g&1&&u!==(u=m[0]("login.logout")+"")&&v(d,u)},d(m){m&&R(l),c=!1,p()}}}function m_(t){let l,e;return l=new u_({}),{c(){Ht(l.$$.fragment)},m(n,r){qt(l,n,r),e=!0},p:ot,i(n){e||($e(l.$$.fragment,n),e=!0)},o(n){lt(l.$$.fragment,n),e=!1},d(n){Rt(l,n)}}}function g_(t){let l,e;return l=new eh({}),{c(){Ht(l.$$.fragment)},m(n,r){qt(l,n,r),e=!0},p:ot,i(n){e||($e(l.$$.fragment,n),e=!0)},o(n){lt(l.$$.fragment,n),e=!1},d(n){Rt(l,n)}}}function __(t){let l,e;return l=new l_({}),{c(){Ht(l.$$.fragment)},m(n,r){qt(l,n,r),e=!0},p:ot,i(n){e||($e(l.$$.fragment,n),e=!0)},o(n){lt(l.$$.fragment,n),e=!1},d(n){Rt(l,n)}}}function b_(t){let l,e;return l=new b0({props:{params:{}}}),{c(){Ht(l.$$.fragment)},m(n,r){qt(l,n,r),e=!0},p:ot,i(n){e||($e(l.$$.fragment,n),e=!0)},o(n){lt(l.$$.fragment,n),e=!1},d(n){Rt(l,n)}}}function v_(t){let l,e;return l=new b0({props:{params:{path:t[1].replace("/routes/edit/","")}}}),{c(){Ht(l.$$.fragment)},m(n,r){qt(l,n,r),e=!0},p(n,r){const a={};r&2&&(a.params={path:n[1].replace("/routes/edit/","")}),l.$set(a)},i(n){e||($e(l.$$.fragment,n),e=!0)},o(n){lt(l.$$.fragment,n),e=!1},d(n){Rt(l,n)}}}function k_(t){let l,e;return l=new Dh({}),{c(){Ht(l.$$.fragment)},m(n,r){qt(l,n,r),e=!0},p:ot,i(n){e||($e(l.$$.fragment,n),e=!0)},o(n){lt(l.$$.fragment,n),e=!1},d(n){Rt(l,n)}}}function w_(t){let l,e;return l=new T2({}),{c(){Ht(l.$$.fragment)},m(n,r){qt(l,n,r),e=!0},p:ot,i(n){e||($e(l.$$.fragment,n),e=!0)},o(n){lt(l.$$.fragment,n),e=!1},d(n){Rt(l,n)}}}function y_(t){let l,e;return l=new r_({}),{c(){Ht(l.$$.fragment)},m(n,r){qt(l,n,r),e=!0},p:ot,i(n){e||($e(l.$$.fragment,n),e=!0)},o(n){lt(l.$$.fragment,n),e=!1},d(n){Rt(l,n)}}}function C_(t){let l,e,n,r,a;const f=[h_,p_],u=[];function d(c,p){return c[2]?0:1}return l=d(t),e=u[l]=f[l](t),r=new c_({}),{c(){e.c(),n=h(),Ht(r.$$.fragment)},m(c,p){u[l].m(c,p),q(c,n,p),qt(r,c,p),a=!0},p(c,[p]){let m=l;l=d(c),l===m?u[l].p(c,p):(Ql(),lt(u[m],1,1,()=>{u[m]=null}),Zl(),e=u[l],e?e.p(c,p):(e=u[l]=f[l](c),e.c()),$e(e,1),e.m(n.parentNode,n))},i(c){a||($e(e),$e(r.$$.fragment,c),a=!0)},o(c){lt(e),lt(r.$$.fragment,c),a=!1},d(c){c&&R(n),u[l].d(c),Rt(r,c)}}}function E_(t,l,e){let n,r,a,f,u,d;Nt(t,Dt,b=>e(0,n=b)),Nt(t,T0,b=>e(1,r=b)),Nt(t,S0,b=>e(2,a=b)),Nt(t,Qp,b=>e(3,f=b)),Nt(t,n1,b=>e(4,u=b)),Nt(t,sa,b=>e(5,d=b));function c(b){A0(b)}Hs(async()=>{try{const k=(await Iu()).auth?.enabled||!1;if(n1.set(k),k){const w=n0();sa.set(!!w),!w&&r!=="/login"&&(window.location.hash="#/login")}}catch(b){console.error("Failed to check auth status:",b)}});function p(){confirm(n("login.logoutConfirm"))&&(o0(),window.location.hash="#/login")}return[n,r,a,f,u,d,c,p,b=>b.code===f,b=>c(b.code)]}class T_ extends Kt{constructor(l){super(),Gt(this,l,E_,C_,Yt,{})}}new T_({target:document.getElementById("app")});
21261
21268
  `,
21262
- "vendor-C5kRSwys.js": 'import{C as Te,L as Tn,D as Sn,B as wn}from"./vendor-charts-Bo4qyjB7.js";function P(){}function N(e,t){for(const n in t)e[n]=t[n];return e}function jt(e){return e()}function yt(){return Object.create(null)}function X(e){e.forEach(jt)}function at(e){return typeof e=="function"}function fe(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function Bn(e){return Object.keys(e).length===0}function st(e,...t){if(e==null){for(const r of t)r(void 0);return P}const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function ra(e){let t;return st(e,n=>t=n)(),t}function ia(e,t,n){e.$$.on_destroy.push(st(t,n))}function G(e){const t={};for(const n in e)n[0]!=="$"&&(t[n]=e[n]);return t}function aa(e,t){e.appendChild(t)}function An(e,t,n){e.insertBefore(t,n||null)}function kt(e){e.parentNode&&e.parentNode.removeChild(e)}function sa(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function On(e){return document.createElement(e)}function oa(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function Vt(e){return document.createTextNode(e)}function ua(){return Vt(" ")}function ha(){return Vt("")}function Pn(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function Nn(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}const In=["width","height"];function Mn(e,t){const n=Object.getOwnPropertyDescriptors(e.__proto__);for(const r in t)t[r]==null?e.removeAttribute(r):r==="style"?e.style.cssText=t[r]:r==="__value"?e.value=e[r]=t[r]:n[r]&&n[r].set&&In.indexOf(r)===-1?e[r]=t[r]:Nn(e,r,t[r])}function fa(e){let t;return{p(...n){t=n,t.forEach(r=>e.push(r))},r(){t.forEach(n=>e.splice(e.indexOf(n),1))}}}function la(e){return e===""?null:+e}function Ln(e){return Array.from(e.childNodes)}function ca(e,t){t=""+t,e.data!==t&&(e.data=t)}function da(e,t){e.value=t??""}function ma(e,t,n,r){n==null?e.style.removeProperty(t):e.style.setProperty(t,n,"")}function ga(e,t,n){for(let r=0;r<e.options.length;r+=1){const i=e.options[r];if(i.__value===t){i.selected=!0;return}}(!n||t!==void 0)&&(e.selectedIndex=-1)}function ba(e){const t=e.querySelector(":checked");return t&&t.__value}function pa(e,t,n){e.classList.toggle(t,!!n)}function Cn(e,t,{bubbles:n=!1,cancelable:r=!1}={}){return new CustomEvent(e,{detail:t,bubbles:n,cancelable:r})}let Q;function se(e){Q=e}function Se(){if(!Q)throw new Error("Function called outside component initialization");return Q}function Xt(e){Se().$$.on_mount.push(e)}function Rn(e){Se().$$.after_update.push(e)}function Yt(e){Se().$$.on_destroy.push(e)}function _a(){const e=Se();return(t,n,{cancelable:r=!1}={})=>{const i=e.$$.callbacks[t];if(i){const a=Cn(t,n,{cancelable:r});return i.slice().forEach(o=>{o.call(e,a)}),!a.defaultPrevented}return!0}}function Un(e,t){const n=e.$$.callbacks[t.type];n&&n.slice().forEach(r=>r.call(this,t))}const z=[],R=[];let q=[];const Ze=[],Zt=Promise.resolve();let We=!1;function Wt(){We||(We=!0,Zt.then(qt))}function zt(){return Wt(),Zt}function ze(e){q.push(e)}function ot(e){Ze.push(e)}const Re=new Set;let Y=0;function qt(){if(Y!==0)return;const e=Q;do{try{for(;Y<z.length;){const t=z[Y];Y++,se(t),Fn(t.$$)}}catch(t){throw z.length=0,Y=0,t}for(se(null),z.length=0,Y=0;R.length;)R.pop()();for(let t=0;t<q.length;t+=1){const n=q[t];Re.has(n)||(Re.add(n),n())}q.length=0}while(z.length);for(;Ze.length;)Ze.pop()();We=!1,Re.clear(),se(e)}function Fn(e){if(e.fragment!==null){e.update(),X(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(ze)}}function Dn(e){const t=[],n=[];q.forEach(r=>e.indexOf(r)===-1?t.push(r):n.push(r)),n.forEach(r=>r()),q=t}const ye=new Set;let V;function ya(){V={r:0,c:[],p:V}}function xa(){V.r||X(V.c),V=V.p}function le(e,t){e&&e.i&&(ye.delete(e),e.i(t))}function we(e,t,n,r){if(e&&e.o){if(ye.has(e))return;ye.add(e),V.c.push(()=>{ye.delete(e),r&&(n&&e.d(1),r())}),e.o(t)}else r&&r()}function Ea(e){return e?.length!==void 0?e:Array.from(e)}function va(e,t){e.d(1),t.delete(e.key)}function Ha(e,t){we(e,1,1,()=>{t.delete(e.key)})}function Ta(e,t,n,r,i,a,o,s,u,h,f,c){let l=e.length,_=a.length,y=l;const v={};for(;y--;)v[e[y].key]=y;const B=[],d=new Map,m=new Map,g=[];for(y=_;y--;){const T=c(i,a,y),M=n(T);let L=o.get(M);L?g.push(()=>L.p(T,t)):(L=h(M,T),L.c()),d.set(M,B[y]=L),M in v&&m.set(M,Math.abs(y-v[M]))}const S=new Set,E=new Set;function I(T){le(T,1),T.m(s,f),o.set(T.key,T),f=T.first,_--}for(;l&&_;){const T=B[_-1],M=e[l-1],L=T.key,me=M.key;T===M?(f=T.first,l--,_--):d.has(me)?!o.has(L)||S.has(L)?I(T):E.has(me)?l--:m.get(L)>m.get(me)?(E.add(L),I(T)):(S.add(me),l--):(u(M,o),l--)}for(;l--;){const T=e[l];d.has(T.key)||u(T,o)}for(;_;)I(B[_-1]);return X(g),B}function ut(e,t){const n={},r={},i={$$scope:1};let a=e.length;for(;a--;){const o=e[a],s=t[a];if(s){for(const u in o)u in s||(r[u]=1);for(const u in s)i[u]||(n[u]=s[u],i[u]=1);e[a]=s}else for(const u in o)i[u]=1}for(const o in r)o in n||(n[o]=void 0);return n}function ht(e){return typeof e=="object"&&e!==null?e:{}}function ft(e,t,n){const r=e.$$.props[t];r!==void 0&&(e.$$.bound[r]=n,n(e.$$.ctx[r]))}function lt(e){e&&e.c()}function Be(e,t,n){const{fragment:r,after_update:i}=e.$$;r&&r.m(t,n),ze(()=>{const a=e.$$.on_mount.map(jt).filter(at);e.$$.on_destroy?e.$$.on_destroy.push(...a):X(a),e.$$.on_mount=[]}),i.forEach(ze)}function Ae(e,t){const n=e.$$;n.fragment!==null&&(Dn(n.after_update),X(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function Gn(e,t){e.$$.dirty[0]===-1&&(z.push(e),Wt(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function Oe(e,t,n,r,i,a,o=null,s=[-1]){const u=Q;se(e);const h=e.$$={fragment:null,ctx:[],props:a,update:P,not_equal:i,bound:yt(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(u?u.$$.context:[])),callbacks:yt(),dirty:s,skip_bound:!1,root:t.target||u.$$.root};o&&o(h.root);let f=!1;if(h.ctx=n?n(e,t.props||{},(c,l,..._)=>{const y=_.length?_[0]:l;return h.ctx&&i(h.ctx[c],h.ctx[c]=y)&&(!h.skip_bound&&h.bound[c]&&h.bound[c](y),f&&Gn(e,c)),l}):[],h.update(),f=!0,X(h.before_update),h.fragment=r?r(h.ctx):!1,t.target){if(t.hydrate){const c=Ln(t.target);h.fragment&&h.fragment.l(c),c.forEach(kt)}else h.fragment&&h.fragment.c();t.intro&&le(e.$$.fragment),Be(e,t.target,t.anchor),qt()}se(u)}class Pe{$$=void 0;$$set=void 0;$destroy(){Ae(this,1),this.$destroy=P}$on(t,n){if(!at(n))return P;const r=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return r.push(n),()=>{const i=r.indexOf(n);i!==-1&&r.splice(i,1)}}$set(t){this.$$set&&!Bn(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const jn="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(jn);const Z=[];function Qt(e,t){return{subscribe:Ne(e,t).subscribe}}function Ne(e,t=P){let n;const r=new Set;function i(s){if(fe(e,s)&&(e=s,n)){const u=!Z.length;for(const h of r)h[1](),Z.push(h,e);if(u){for(let h=0;h<Z.length;h+=2)Z[h][0](Z[h+1]);Z.length=0}}}function a(s){i(s(e))}function o(s,u=P){const h=[s,u];return r.add(h),r.size===1&&(n=t(i,a)||P),s(e),()=>{r.delete(h),r.size===0&&n&&(n(),n=null)}}return{set:i,update:a,subscribe:o}}function j(e,t,n){const r=!Array.isArray(e),i=r?[e]:e;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const a=t.length<2;return Qt(n,(o,s)=>{let u=!1;const h=[];let f=0,c=P;const l=()=>{if(f)return;c();const y=t(r?h[0]:h,o,s);a?o(y):c=at(y)?y:P},_=i.map((y,v)=>st(y,B=>{h[v]=B,f&=~(1<<v),u&&l()},()=>{f|=1<<v}));return u=!0,l(),function(){X(_),c(),u=!1}})}function xt(){const e=window.location.href.indexOf("#/");let t=e>-1?window.location.href.substr(e+1):"/";const n=t.indexOf("?");let r="";return n>-1&&(r=t.substr(n+1),t=t.substr(0,n)),{location:t,querystring:r}}const Jt=Qt(null,function(t){t(xt());const n=()=>{t(xt())};return window.addEventListener("hashchange",n,!1),function(){window.removeEventListener("hashchange",n,!1)}}),Sa=j(Jt,e=>e.location);j(Jt,e=>e.querystring);async function wa(e){if(!e||e.length<1||e.charAt(0)!="/"&&e.indexOf("#/")!==0)throw Error("Invalid parameter location");await zt(),history.replaceState({...history.state,__svelte_spa_router_scrollX:window.scrollX,__svelte_spa_router_scrollY:window.scrollY},void 0),window.location.hash=(e.charAt(0)=="#"?"":"#")+e}async function Ba(){await zt(),window.history.back()}function kn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ue,Et;function Vn(){if(Et)return Ue;Et=1;var e=function(m){return t(m)&&!n(m)};function t(d){return!!d&&typeof d=="object"}function n(d){var m=Object.prototype.toString.call(d);return m==="[object RegExp]"||m==="[object Date]"||a(d)}var r=typeof Symbol=="function"&&Symbol.for,i=r?Symbol.for("react.element"):60103;function a(d){return d.$$typeof===i}function o(d){return Array.isArray(d)?[]:{}}function s(d,m){return m.clone!==!1&&m.isMergeableObject(d)?v(o(d),d,m):d}function u(d,m,g){return d.concat(m).map(function(S){return s(S,g)})}function h(d,m){if(!m.customMerge)return v;var g=m.customMerge(d);return typeof g=="function"?g:v}function f(d){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(d).filter(function(m){return Object.propertyIsEnumerable.call(d,m)}):[]}function c(d){return Object.keys(d).concat(f(d))}function l(d,m){try{return m in d}catch{return!1}}function _(d,m){return l(d,m)&&!(Object.hasOwnProperty.call(d,m)&&Object.propertyIsEnumerable.call(d,m))}function y(d,m,g){var S={};return g.isMergeableObject(d)&&c(d).forEach(function(E){S[E]=s(d[E],g)}),c(m).forEach(function(E){_(d,E)||(l(d,E)&&g.isMergeableObject(m[E])?S[E]=h(E,g)(d[E],m[E],g):S[E]=s(m[E],g))}),S}function v(d,m,g){g=g||{},g.arrayMerge=g.arrayMerge||u,g.isMergeableObject=g.isMergeableObject||e,g.cloneUnlessOtherwiseSpecified=s;var S=Array.isArray(m),E=Array.isArray(d),I=S===E;return I?S?g.arrayMerge(d,m,g):y(d,m,g):s(m,g)}v.all=function(m,g){if(!Array.isArray(m))throw new Error("first argument should be an array");return m.reduce(function(S,E){return v(S,E,g)},{})};var B=v;return Ue=B,Ue}var Xn=Vn();const Yn=kn(Xn);var qe=function(e,t){return qe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},qe(e,t)};function Ie(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");qe(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var x=function(){return x=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},x.apply(this,arguments)};function Zn(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function Fe(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}function De(e,t){var n=t&&t.cache?t.cache:Kn,r=t&&t.serializer?t.serializer:Jn,i=t&&t.strategy?t.strategy:qn;return i(e,{cache:n,serializer:r})}function Wn(e){return e==null||typeof e=="number"||typeof e=="boolean"}function zn(e,t,n,r){var i=Wn(r)?r:n(r),a=t.get(i);return typeof a>"u"&&(a=e.call(this,r),t.set(i,a)),a}function $t(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),a=t.get(i);return typeof a>"u"&&(a=e.apply(this,r),t.set(i,a)),a}function Kt(e,t,n,r,i){return n.bind(t,e,r,i)}function qn(e,t){var n=e.length===1?zn:$t;return Kt(e,this,n,t.cache.create(),t.serializer)}function Qn(e,t){return Kt(e,this,$t,t.cache.create(),t.serializer)}var Jn=function(){return JSON.stringify(arguments)},$n=(function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(t){return this.cache[t]},e.prototype.set=function(t,n){this.cache[t]=n},e})(),Kn={create:function(){return new $n}},Ge={variadic:Qn},b;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(b||(b={}));var H;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(H||(H={}));var J;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(J||(J={}));function vt(e){return e.type===H.literal}function er(e){return e.type===H.argument}function en(e){return e.type===H.number}function tn(e){return e.type===H.date}function nn(e){return e.type===H.time}function rn(e){return e.type===H.select}function an(e){return e.type===H.plural}function tr(e){return e.type===H.pound}function sn(e){return e.type===H.tag}function on(e){return!!(e&&typeof e=="object"&&e.type===J.number)}function Qe(e){return!!(e&&typeof e=="object"&&e.type===J.dateTime)}var un=/[ \\xA0\\u1680\\u2000-\\u200A\\u202F\\u205F\\u3000]/,nr=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^\']*\'[^\']*\')*[^\']*$)/g;function rr(e){var t={};return e.replace(nr,function(n){var r=n.length;switch(n[0]){case"G":t.era=r===4?"long":r===5?"narrow":"short";break;case"y":t.year=r===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=r===4?"long":r===5?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][r-1];break;case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=r<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var ir=/[\\t-\\r \\x85\\u200E\\u200F\\u2028\\u2029]/i;function ar(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(ir).filter(function(l){return l.length>0}),n=[],r=0,i=t;r<i.length;r++){var a=i[r],o=a.split("/");if(o.length===0)throw new Error("Invalid number skeleton");for(var s=o[0],u=o.slice(1),h=0,f=u;h<f.length;h++){var c=f[h];if(c.length===0)throw new Error("Invalid number skeleton")}n.push({stem:s,options:u})}return n}function sr(e){return e.replace(/^(.*?)-/,"")}var Ht=/^\\.(?:(0+)(\\*)?|(#+)|(0+)(#+))$/g,hn=/^(@+)?(\\+|#+)?[rs]?$/g,or=/(\\*)(0+)|(#+)(0+)|(0+)/g,fn=/^(0+)$/;function Tt(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(hn,function(n,r,i){return typeof i!="string"?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):i==="+"?t.minimumSignificantDigits=r.length:r[0]==="#"?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+(typeof i=="string"?i.length:0)),""}),t}function ln(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function ur(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if(n==="+!"?(t.signDisplay="always",e=e.slice(2)):n==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!fn.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function St(e){var t={},n=ln(e);return n||t}function hr(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=sr(i.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=x(x(x({},t),{notation:"scientific"}),i.options.reduce(function(u,h){return x(x({},u),St(h))},{}));continue;case"engineering":t=x(x(x({},t),{notation:"engineering"}),i.options.reduce(function(u,h){return x(x({},u),St(h))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(or,function(u,h,f,c,l,_){if(h)t.minimumIntegerDigits=f.length;else{if(c&&l)throw new Error("We currently do not support maximum integer digits");if(_)throw new Error("We currently do not support exact integer digits")}return""});continue}if(fn.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(Ht.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Ht,function(u,h,f,c,l,_){return f==="*"?t.minimumFractionDigits=h.length:c&&c[0]==="#"?t.maximumFractionDigits=c.length:l&&_?(t.minimumFractionDigits=l.length,t.maximumFractionDigits=l.length+_.length):(t.minimumFractionDigits=h.length,t.maximumFractionDigits=h.length),""});var a=i.options[0];a==="w"?t=x(x({},t),{trailingZeroDisplay:"stripIfInteger"}):a&&(t=x(x({},t),Tt(a)));continue}if(hn.test(i.stem)){t=x(x({},t),Tt(i.stem));continue}var o=ln(i.stem);o&&(t=x(x({},t),o));var s=ur(i.stem);s&&(t=x(x({},t),s))}return t}var ge={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function fr(e,t){for(var n="",r=0;r<e.length;r++){var i=e.charAt(r);if(i==="j"){for(var a=0;r+1<e.length&&e.charAt(r+1)===i;)a++,r++;var o=1+(a&1),s=a<2?1:3+(a>>1),u="a",h=lr(t);for((h=="H"||h=="k")&&(s=0);s-- >0;)n+=u;for(;o-- >0;)n=h+n}else i==="J"?n+="H":n+=i}return n}function lr(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n=e.language,r;n!=="root"&&(r=e.maximize().region);var i=ge[r||""]||ge[n||""]||ge["".concat(n,"-001")]||ge["001"];return i[0]}var je,cr=new RegExp("^".concat(un.source,"*")),dr=new RegExp("".concat(un.source,"*$"));function p(e,t){return{start:e,end:t}}var mr=!!String.prototype.startsWith&&"_a".startsWith("a",1),gr=!!String.fromCodePoint,br=!!Object.fromEntries,pr=!!String.prototype.codePointAt,_r=!!String.prototype.trimStart,yr=!!String.prototype.trimEnd,xr=!!Number.isSafeInteger,Er=xr?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Je=!0;try{var vr=dn("([^\\\\p{White_Space}\\\\p{Pattern_Syntax}]*)","yu");Je=((je=vr.exec("a"))===null||je===void 0?void 0:je[0])==="a"}catch{Je=!1}var wt=mr?function(t,n,r){return t.startsWith(n,r)}:function(t,n,r){return t.slice(r,r+n.length)===n},$e=gr?String.fromCodePoint:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r="",i=t.length,a=0,o;i>a;){if(o=t[a++],o>1114111)throw RangeError(o+" is not a valid code point");r+=o<65536?String.fromCharCode(o):String.fromCharCode(((o-=65536)>>10)+55296,o%1024+56320)}return r},Bt=br?Object.fromEntries:function(t){for(var n={},r=0,i=t;r<i.length;r++){var a=i[r],o=a[0],s=a[1];n[o]=s}return n},cn=pr?function(t,n){return t.codePointAt(n)}:function(t,n){var r=t.length;if(!(n<0||n>=r)){var i=t.charCodeAt(n),a;return i<55296||i>56319||n+1===r||(a=t.charCodeAt(n+1))<56320||a>57343?i:(i-55296<<10)+(a-56320)+65536}},Hr=_r?function(t){return t.trimStart()}:function(t){return t.replace(cr,"")},Tr=yr?function(t){return t.trimEnd()}:function(t){return t.replace(dr,"")};function dn(e,t){return new RegExp(e,t)}var Ke;if(Je){var At=dn("([^\\\\p{White_Space}\\\\p{Pattern_Syntax}]*)","yu");Ke=function(t,n){var r;At.lastIndex=n;var i=At.exec(t);return(r=i[1])!==null&&r!==void 0?r:""}}else Ke=function(t,n){for(var r=[];;){var i=cn(t,n);if(i===void 0||mn(i)||Ar(i))break;r.push(i),n+=i>=65536?2:1}return $e.apply(void 0,r)};var Sr=(function(){function e(t,n){n===void 0&&(n={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!n.ignoreTag,this.locale=n.locale,this.requiresOtherClause=!!n.requiresOtherClause,this.shouldParseSkeletons=!!n.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,n,r){for(var i=[];!this.isEOF();){var a=this.char();if(a===123){var o=this.parseArgument(t,r);if(o.err)return o;i.push(o.val)}else{if(a===125&&t>0)break;if(a===35&&(n==="plural"||n==="selectordinal")){var s=this.clonePosition();this.bump(),i.push({type:H.pound,location:p(s,this.clonePosition())})}else if(a===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(b.UNMATCHED_CLOSING_TAG,p(this.clonePosition(),this.clonePosition()))}else if(a===60&&!this.ignoreTag&&et(this.peek()||0)){var o=this.parseTag(t,n);if(o.err)return o;i.push(o.val)}else{var o=this.parseLiteral(t,n);if(o.err)return o;i.push(o.val)}}}return{val:i,err:null}},e.prototype.parseTag=function(t,n){var r=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:H.literal,value:"<".concat(i,"/>"),location:p(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var a=this.parseMessage(t+1,n,!0);if(a.err)return a;var o=a.val,s=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!et(this.char()))return this.error(b.INVALID_TAG,p(s,this.clonePosition()));var u=this.clonePosition(),h=this.parseTagName();return i!==h?this.error(b.UNMATCHED_CLOSING_TAG,p(u,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:H.tag,value:i,children:o,location:p(r,this.clonePosition())},err:null}:this.error(b.INVALID_TAG,p(s,this.clonePosition())))}else return this.error(b.UNCLOSED_TAG,p(r,this.clonePosition()))}else return this.error(b.INVALID_TAG,p(r,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&Br(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,n){for(var r=this.clonePosition(),i="";;){var a=this.tryParseQuote(n);if(a){i+=a;continue}var o=this.tryParseUnquoted(t,n);if(o){i+=o;continue}var s=this.tryParseLeftAngleBracket();if(s){i+=s;continue}break}var u=p(r,this.clonePosition());return{val:{type:H.literal,value:i,location:u},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!wr(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"\'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var n=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(r===39)if(this.peek()===39)n.push(39),this.bump();else{this.bump();break}else n.push(r);this.bump()}return $e.apply(void 0,n)},e.prototype.tryParseUnquoted=function(t,n){if(this.isEOF())return null;var r=this.char();return r===60||r===123||r===35&&(n==="plural"||n==="selectordinal")||r===125&&t>0?null:(this.bump(),$e(r))},e.prototype.parseArgument=function(t,n){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE,p(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(b.EMPTY_ARGUMENT,p(r,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(b.MALFORMED_ARGUMENT,p(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE,p(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:H.argument,value:i,location:p(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE,p(r,this.clonePosition())):this.parseArgumentOptions(t,n,i,r);default:return this.error(b.MALFORMED_ARGUMENT,p(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),r=Ke(this.message,n),i=n+r.length;this.bumpTo(i);var a=this.clonePosition(),o=p(t,a);return{value:r,location:o}},e.prototype.parseArgumentOptions=function(t,n,r,i){var a,o=this.clonePosition(),s=this.parseIdentifierIfPossible().value,u=this.clonePosition();switch(s){case"":return this.error(b.EXPECT_ARGUMENT_TYPE,p(o,u));case"number":case"date":case"time":{this.bumpSpace();var h=null;if(this.bumpIf(",")){this.bumpSpace();var f=this.clonePosition(),c=this.parseSimpleArgStyleIfPossible();if(c.err)return c;var l=Tr(c.val);if(l.length===0)return this.error(b.EXPECT_ARGUMENT_STYLE,p(this.clonePosition(),this.clonePosition()));var _=p(f,this.clonePosition());h={style:l,styleLocation:_}}var y=this.tryParseArgumentClose(i);if(y.err)return y;var v=p(i,this.clonePosition());if(h&&wt(h?.style,"::",0)){var B=Hr(h.style.slice(2));if(s==="number"){var c=this.parseNumberSkeletonFromString(B,h.styleLocation);return c.err?c:{val:{type:H.number,value:r,location:v,style:c.val},err:null}}else{if(B.length===0)return this.error(b.EXPECT_DATE_TIME_SKELETON,v);var d=B;this.locale&&(d=fr(B,this.locale));var l={type:J.dateTime,pattern:d,location:h.styleLocation,parsedOptions:this.shouldParseSkeletons?rr(d):{}},m=s==="date"?H.date:H.time;return{val:{type:m,value:r,location:v,style:l},err:null}}}return{val:{type:s==="number"?H.number:s==="date"?H.date:H.time,value:r,location:v,style:(a=h?.style)!==null&&a!==void 0?a:null},err:null}}case"plural":case"selectordinal":case"select":{var g=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS,p(g,x({},g)));this.bumpSpace();var S=this.parseIdentifierIfPossible(),E=0;if(s!=="select"&&S.value==="offset"){if(!this.bumpIf(":"))return this.error(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,p(this.clonePosition(),this.clonePosition()));this.bumpSpace();var c=this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,b.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(c.err)return c;this.bumpSpace(),S=this.parseIdentifierIfPossible(),E=c.val}var I=this.tryParsePluralOrSelectOptions(t,s,n,S);if(I.err)return I;var y=this.tryParseArgumentClose(i);if(y.err)return y;var T=p(i,this.clonePosition());return s==="select"?{val:{type:H.select,value:r,options:Bt(I.val),location:T},err:null}:{val:{type:H.plural,value:r,options:Bt(I.val),offset:E,pluralType:s==="plural"?"cardinal":"ordinal",location:T},err:null}}default:return this.error(b.INVALID_ARGUMENT_TYPE,p(o,u))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE,p(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,n=this.clonePosition();!this.isEOF();){var r=this.char();switch(r){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("\'"))return this.error(b.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,p(i,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(n.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(n.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,n){var r=[];try{r=ar(t)}catch{return this.error(b.INVALID_NUMBER_SKELETON,n)}return{val:{type:J.number,tokens:r,location:n,parsedOptions:this.shouldParseSkeletons?hr(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,n,r,i){for(var a,o=!1,s=[],u=new Set,h=i.value,f=i.location;;){if(h.length===0){var c=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var l=this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_SELECTOR,b.INVALID_PLURAL_ARGUMENT_SELECTOR);if(l.err)return l;f=p(c,this.clonePosition()),h=this.message.slice(c.offset,this.offset())}else break}if(u.has(h))return this.error(n==="select"?b.DUPLICATE_SELECT_ARGUMENT_SELECTOR:b.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,f);h==="other"&&(o=!0),this.bumpSpace();var _=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?b.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:b.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,p(this.clonePosition(),this.clonePosition()));var y=this.parseMessage(t+1,n,r);if(y.err)return y;var v=this.tryParseArgumentClose(_);if(v.err)return v;s.push([h,{value:y.val,location:p(_,this.clonePosition())}]),u.add(h),this.bumpSpace(),a=this.parseIdentifierIfPossible(),h=a.value,f=a.location}return s.length===0?this.error(n==="select"?b.EXPECT_SELECT_ARGUMENT_SELECTOR:b.EXPECT_PLURAL_ARGUMENT_SELECTOR,p(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(b.MISSING_OTHER_CLAUSE,p(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(t,n){var r=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var a=!1,o=0;!this.isEOF();){var s=this.char();if(s>=48&&s<=57)a=!0,o=o*10+(s-48),this.bump();else break}var u=p(i,this.clonePosition());return a?(o*=r,Er(o)?{val:o,err:null}:this.error(n,u)):this.error(t,u)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var n=cn(this.message,t);if(n===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return n},e.prototype.error=function(t,n){return{val:null,err:{kind:t,message:this.message,location:n}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(wt(this.message,t,this.offset())){for(var n=0;n<t.length;n++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var n=this.offset(),r=this.message.indexOf(t,n);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var n=this.offset();if(n===t)break;if(n>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&mn(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),n=this.offset(),r=this.message.charCodeAt(n+(t>=65536?2:1));return r??null},e})();function et(e){return e>=97&&e<=122||e>=65&&e<=90}function wr(e){return et(e)||e===47}function Br(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function mn(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function Ar(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function tt(e){e.forEach(function(t){if(delete t.location,rn(t)||an(t))for(var n in t.options)delete t.options[n].location,tt(t.options[n].value);else en(t)&&on(t.style)||(tn(t)||nn(t))&&Qe(t.style)?delete t.style.location:sn(t)&&tt(t.children)})}function Or(e,t){t===void 0&&(t={}),t=x({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new Sr(e,t).parse();if(n.err){var r=SyntaxError(b[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return t?.captureLocation||tt(n.val),n.val}var $;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})($||($={}));var Me=(function(e){Ie(t,e);function t(n,r,i){var a=e.call(this,n)||this;return a.code=r,a.originalMessage=i,a}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t})(Error),Ot=(function(e){Ie(t,e);function t(n,r,i,a){return e.call(this,\'Invalid values for "\'.concat(n,\'": "\').concat(r,\'". Options are "\').concat(Object.keys(i).join(\'", "\'),\'"\'),$.INVALID_VALUE,a)||this}return t})(Me),Pr=(function(e){Ie(t,e);function t(n,r,i){return e.call(this,\'Value for "\'.concat(n,\'" must be of type \').concat(r),$.INVALID_VALUE,i)||this}return t})(Me),Nr=(function(e){Ie(t,e);function t(n,r){return e.call(this,\'The intl string context variable "\'.concat(n,\'" was not provided to the string "\').concat(r,\'"\'),$.MISSING_VALUE,r)||this}return t})(Me),A;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(A||(A={}));function Ir(e){return e.length<2?e:e.reduce(function(t,n){var r=t[t.length-1];return!r||r.type!==A.literal||n.type!==A.literal?t.push(n):r.value+=n.value,t},[])}function Mr(e){return typeof e=="function"}function xe(e,t,n,r,i,a,o){if(e.length===1&&vt(e[0]))return[{type:A.literal,value:e[0].value}];for(var s=[],u=0,h=e;u<h.length;u++){var f=h[u];if(vt(f)){s.push({type:A.literal,value:f.value});continue}if(tr(f)){typeof a=="number"&&s.push({type:A.literal,value:n.getNumberFormat(t).format(a)});continue}var c=f.value;if(!(i&&c in i))throw new Nr(c,o);var l=i[c];if(er(f)){(!l||typeof l=="string"||typeof l=="number")&&(l=typeof l=="string"||typeof l=="number"?String(l):""),s.push({type:typeof l=="string"?A.literal:A.object,value:l});continue}if(tn(f)){var _=typeof f.style=="string"?r.date[f.style]:Qe(f.style)?f.style.parsedOptions:void 0;s.push({type:A.literal,value:n.getDateTimeFormat(t,_).format(l)});continue}if(nn(f)){var _=typeof f.style=="string"?r.time[f.style]:Qe(f.style)?f.style.parsedOptions:r.time.medium;s.push({type:A.literal,value:n.getDateTimeFormat(t,_).format(l)});continue}if(en(f)){var _=typeof f.style=="string"?r.number[f.style]:on(f.style)?f.style.parsedOptions:void 0;_&&_.scale&&(l=l*(_.scale||1)),s.push({type:A.literal,value:n.getNumberFormat(t,_).format(l)});continue}if(sn(f)){var y=f.children,v=f.value,B=i[v];if(!Mr(B))throw new Pr(v,"function",o);var d=xe(y,t,n,r,i,a),m=B(d.map(function(E){return E.value}));Array.isArray(m)||(m=[m]),s.push.apply(s,m.map(function(E){return{type:typeof E=="string"?A.literal:A.object,value:E}}))}if(rn(f)){var g=f.options[l]||f.options.other;if(!g)throw new Ot(f.value,l,Object.keys(f.options),o);s.push.apply(s,xe(g.value,t,n,r,i));continue}if(an(f)){var g=f.options["=".concat(l)];if(!g){if(!Intl.PluralRules)throw new Me(`Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n`,$.MISSING_INTL_API,o);var S=n.getPluralRules(t,{type:f.pluralType}).select(l-(f.offset||0));g=f.options[S]||f.options.other}if(!g)throw new Ot(f.value,l,Object.keys(f.options),o);s.push.apply(s,xe(g.value,t,n,r,i,l-(f.offset||0)));continue}}return Ir(s)}function Lr(e,t){return t?x(x(x({},e||{}),t||{}),Object.keys(e).reduce(function(n,r){return n[r]=x(x({},e[r]),t[r]||{}),n},{})):e}function Cr(e,t){return t?Object.keys(e).reduce(function(n,r){return n[r]=Lr(e[r],t[r]),n},x({},e)):e}function ke(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function Rr(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:De(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.NumberFormat).bind.apply(t,Fe([void 0],n,!1)))},{cache:ke(e.number),strategy:Ge.variadic}),getDateTimeFormat:De(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.DateTimeFormat).bind.apply(t,Fe([void 0],n,!1)))},{cache:ke(e.dateTime),strategy:Ge.variadic}),getPluralRules:De(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.PluralRules).bind.apply(t,Fe([void 0],n,!1)))},{cache:ke(e.pluralRules),strategy:Ge.variadic})}}var gn=(function(){function e(t,n,r,i){n===void 0&&(n=e.defaultLocale);var a=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(u){var h=a.formatToParts(u);if(h.length===1)return h[0].value;var f=h.reduce(function(c,l){return!c.length||l.type!==A.literal||typeof c[c.length-1]!="string"?c.push(l.value):c[c.length-1]+=l.value,c},[]);return f.length<=1?f[0]||"":f},this.formatToParts=function(u){return xe(a.ast,a.locales,a.formatters,a.formats,u,void 0,a.message)},this.resolvedOptions=function(){var u;return{locale:((u=a.resolvedLocale)===null||u===void 0?void 0:u.toString())||Intl.NumberFormat.supportedLocalesOf(a.locales)[0]}},this.getAst=function(){return a.ast},this.locales=n,this.resolvedLocale=e.resolveLocale(n),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var o=i||{};o.formatters;var s=Zn(o,["formatters"]);this.ast=e.__parse(t,x(x({},s),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=Cr(e.formats,r),this.formatters=i&&i.formatters||Rr(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(!(typeof Intl.Locale>"u")){var n=Intl.NumberFormat.supportedLocalesOf(t);return n.length>0?new Intl.Locale(n[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=Or,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e})();function Ur(e,t){if(t==null)return;if(t in e)return e[t];const n=t.split(".");let r=e;for(let i=0;i<n.length;i++)if(typeof r=="object"){if(i>0){const a=n.slice(i,n.length).join(".");if(a in r){r=r[a];break}}r=r[n[i]]}else r=void 0;return r}const U={},Fr=(e,t,n)=>n&&(t in U||(U[t]={}),e in U[t]||(U[t][e]=n),n),bn=(e,t)=>{if(t==null)return;if(t in U&&e in U[t])return U[t][e];const n=ce(t);for(let r=0;r<n.length;r++){const i=n[r],a=Gr(i,e);if(a)return Fr(e,t,a)}};let ct;const ee=Ne({});function Dr(e){return ct[e]||null}function dt(e){return e in ct}function Gr(e,t){if(!dt(e))return null;const n=Dr(e);return Ur(n,t)}function jr(e){if(e==null)return;const t=ce(e);for(let n=0;n<t.length;n++){const r=t[n];if(dt(r))return r}}function kr(e,...t){delete U[e],ee.update(n=>(n[e]=Yn.all([n[e]||{},...t]),n))}j([ee],([e])=>Object.keys(e));ee.subscribe(e=>ct=e);const oe={};function Vr(e){oe[e]=new Set}function Xr(e,t){oe[e].delete(t),oe[e].size===0&&delete oe[e]}function ue(e){return oe[e]}function Yr(e){return ce(e).map(t=>{const n=ue(t);return[t,n?[...n]:[]]}).filter(([,t])=>t.length>0)}function Ee(e){return e==null?!1:ce(e).some(t=>{var n;return(n=ue(t))==null?void 0:n.size})}function Zr(e,t){return Promise.all(t.map(r=>(Xr(e,r),r().then(i=>i.default||i)))).then(r=>kr(e,...r))}const re={};function pn(e){if(!Ee(e))return e in re?re[e]:Promise.resolve();const t=Yr(e);return re[e]=Promise.all(t.map(([n,r])=>Zr(n,r))).then(()=>{if(Ee(e))return pn(e);delete re[e]}),re[e]}function Aa(e,t){ue(e)||Vr(e);const n=ue(e);ue(e).has(t)||(dt(e)||ee.update(r=>(r[e]={},r)),n.add(t))}var Pt=Object.getOwnPropertySymbols,Wr=Object.prototype.hasOwnProperty,zr=Object.prototype.propertyIsEnumerable,qr=(e,t)=>{var n={};for(var r in e)Wr.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Pt)for(var r of Pt(e))t.indexOf(r)<0&&zr.call(e,r)&&(n[r]=e[r]);return n};const Qr={number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}};function Jr({locale:e,id:t}){console.warn(`[svelte-i18n] The message "${t}" was not found in "${ce(e).join(\'", "\')}".${Ee(k())?`\n\nNote: there are at least one loader still registered to this locale that wasn\'t executed.`:""}`)}const $r={fallbackLocale:null,loadingDelay:200,formats:Qr,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},ie=$r;function K(){return ie}function Oa(e){const t=e,{formats:n}=t,r=qr(t,["formats"]);let i=e.fallbackLocale;if(e.initialLocale)try{gn.resolveLocale(e.initialLocale)&&(i=e.initialLocale)}catch{console.warn(`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`)}return r.warnOnMissingMessages&&(delete r.warnOnMissingMessages,r.handleMissingMessage==null?r.handleMissingMessage=Jr:console.warn(\'[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.\')),Object.assign(ie,r,{initialLocale:i}),n&&("number"in n&&Object.assign(ie.formats.number,n.number),"date"in n&&Object.assign(ie.formats.date,n.date),"time"in n&&Object.assign(ie.formats.time,n.time)),te.set(i)}const Ve=Ne(!1);var Kr=Object.defineProperty,ei=Object.defineProperties,ti=Object.getOwnPropertyDescriptors,Nt=Object.getOwnPropertySymbols,ni=Object.prototype.hasOwnProperty,ri=Object.prototype.propertyIsEnumerable,It=(e,t,n)=>t in e?Kr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ii=(e,t)=>{for(var n in t||(t={}))ni.call(t,n)&&It(e,n,t[n]);if(Nt)for(var n of Nt(t))ri.call(t,n)&&It(e,n,t[n]);return e},ai=(e,t)=>ei(e,ti(t));let nt;const ve=Ne(null);function Mt(e){return e.split("-").map((t,n,r)=>r.slice(0,n+1).join("-")).reverse()}function ce(e,t=K().fallbackLocale){const n=Mt(e);return t?[...new Set([...n,...Mt(t)])]:n}function k(){return nt??void 0}ve.subscribe(e=>{nt=e??void 0,typeof window<"u"&&e!=null&&document.documentElement.setAttribute("lang",e)});const si=e=>{if(e&&jr(e)&&Ee(e)){const{loadingDelay:t}=K();let n;return typeof window<"u"&&k()!=null&&t?n=window.setTimeout(()=>Ve.set(!0),t):Ve.set(!0),pn(e).then(()=>{ve.set(e)}).finally(()=>{clearTimeout(n),Ve.set(!1)})}return ve.set(e)},te=ai(ii({},ve),{set:si}),Pa=()=>typeof window>"u"?null:window.navigator.language||window.navigator.languages[0],Le=e=>{const t=Object.create(null);return r=>{const i=JSON.stringify(r);return i in t?t[i]:t[i]=e(r)}};var oi=Object.defineProperty,He=Object.getOwnPropertySymbols,_n=Object.prototype.hasOwnProperty,yn=Object.prototype.propertyIsEnumerable,Lt=(e,t,n)=>t in e?oi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,mt=(e,t)=>{for(var n in t||(t={}))_n.call(t,n)&&Lt(e,n,t[n]);if(He)for(var n of He(t))yn.call(t,n)&&Lt(e,n,t[n]);return e},ne=(e,t)=>{var n={};for(var r in e)_n.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&He)for(var r of He(e))t.indexOf(r)<0&&yn.call(e,r)&&(n[r]=e[r]);return n};const he=(e,t)=>{const{formats:n}=K();if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},ui=Le(e=>{var t=e,{locale:n,format:r}=t,i=ne(t,["locale","format"]);if(n==null)throw new Error(\'[svelte-i18n] A "locale" must be set to format numbers\');return r&&(i=he("number",r)),new Intl.NumberFormat(n,i)}),hi=Le(e=>{var t=e,{locale:n,format:r}=t,i=ne(t,["locale","format"]);if(n==null)throw new Error(\'[svelte-i18n] A "locale" must be set to format dates\');return r?i=he("date",r):Object.keys(i).length===0&&(i=he("date","short")),new Intl.DateTimeFormat(n,i)}),fi=Le(e=>{var t=e,{locale:n,format:r}=t,i=ne(t,["locale","format"]);if(n==null)throw new Error(\'[svelte-i18n] A "locale" must be set to format time values\');return r?i=he("time",r):Object.keys(i).length===0&&(i=he("time","short")),new Intl.DateTimeFormat(n,i)}),li=(e={})=>{var t=e,{locale:n=k()}=t,r=ne(t,["locale"]);return ui(mt({locale:n},r))},ci=(e={})=>{var t=e,{locale:n=k()}=t,r=ne(t,["locale"]);return hi(mt({locale:n},r))},di=(e={})=>{var t=e,{locale:n=k()}=t,r=ne(t,["locale"]);return fi(mt({locale:n},r))},mi=Le((e,t=k())=>new gn(e,t,K().formats,{ignoreTag:K().ignoreTag})),gi=(e,t={})=>{var n,r,i,a;let o=t;typeof e=="object"&&(o=e,e=o.id);const{values:s,locale:u=k(),default:h}=o;if(u==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let f=bn(e,u);if(!f)f=(a=(i=(r=(n=K()).handleMissingMessage)==null?void 0:r.call(n,{locale:u,id:e,defaultValue:h}))!=null?i:h)!=null?a:e;else if(typeof f!="string")return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof f}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),f;if(!s)return f;let c=f;try{c=mi(f,u).format(s)}catch(l){l instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,l.message)}return c},bi=(e,t)=>di(t).format(e),pi=(e,t)=>ci(t).format(e),_i=(e,t)=>li(t).format(e),yi=(e,t=k())=>bn(e,t),Na=j([te,ee],()=>gi);j([te],()=>bi);j([te],()=>pi);j([te],()=>_i);j([te,ee],()=>yi);/*!\n * @kurkle/color v0.3.4\n * https://github.com/kurkle/color#readme\n * (c) 2024 Jukka Kurkela\n * Released under the MIT License\n */function de(e){return e+.5|0}const F=(e,t,n)=>Math.max(Math.min(e,n),t);function ae(e){return F(de(e*2.55),0,255)}function D(e){return F(de(e*255),0,255)}function C(e){return F(de(e/2.55)/100,0,1)}function Ct(e){return F(de(e*100),0,100)}const O={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},rt=[..."0123456789ABCDEF"],xi=e=>rt[e&15],Ei=e=>rt[(e&240)>>4]+rt[e&15],be=e=>(e&240)>>4===(e&15),vi=e=>be(e.r)&&be(e.g)&&be(e.b)&&be(e.a);function Hi(e){var t=e.length,n;return e[0]==="#"&&(t===4||t===5?n={r:255&O[e[1]]*17,g:255&O[e[2]]*17,b:255&O[e[3]]*17,a:t===5?O[e[4]]*17:255}:(t===7||t===9)&&(n={r:O[e[1]]<<4|O[e[2]],g:O[e[3]]<<4|O[e[4]],b:O[e[5]]<<4|O[e[6]],a:t===9?O[e[7]]<<4|O[e[8]]:255})),n}const Ti=(e,t)=>e<255?t(e):"";function Si(e){var t=vi(e)?xi:Ei;return e?"#"+t(e.r)+t(e.g)+t(e.b)+Ti(e.a,t):void 0}const wi=/^(hsla?|hwb|hsv)\\(\\s*([-+.e\\d]+)(?:deg)?[\\s,]+([-+.e\\d]+)%[\\s,]+([-+.e\\d]+)%(?:[\\s,]+([-+.e\\d]+)(%)?)?\\s*\\)$/;function xn(e,t,n){const r=t*Math.min(n,1-n),i=(a,o=(a+e/30)%12)=>n-r*Math.max(Math.min(o-3,9-o,1),-1);return[i(0),i(8),i(4)]}function Bi(e,t,n){const r=(i,a=(i+e/60)%6)=>n-n*t*Math.max(Math.min(a,4-a,1),0);return[r(5),r(3),r(1)]}function Ai(e,t,n){const r=xn(e,1,.5);let i;for(t+n>1&&(i=1/(t+n),t*=i,n*=i),i=0;i<3;i++)r[i]*=1-t-n,r[i]+=t;return r}function Oi(e,t,n,r,i){return e===i?(t-n)/r+(t<n?6:0):t===i?(n-e)/r+2:(e-t)/r+4}function gt(e){const n=e.r/255,r=e.g/255,i=e.b/255,a=Math.max(n,r,i),o=Math.min(n,r,i),s=(a+o)/2;let u,h,f;return a!==o&&(f=a-o,h=s>.5?f/(2-a-o):f/(a+o),u=Oi(n,r,i,f,a),u=u*60+.5),[u|0,h||0,s]}function bt(e,t,n,r){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,r)).map(D)}function pt(e,t,n){return bt(xn,e,t,n)}function Pi(e,t,n){return bt(Ai,e,t,n)}function Ni(e,t,n){return bt(Bi,e,t,n)}function En(e){return(e%360+360)%360}function Ii(e){const t=wi.exec(e);let n=255,r;if(!t)return;t[5]!==r&&(n=t[6]?ae(+t[5]):D(+t[5]));const i=En(+t[2]),a=+t[3]/100,o=+t[4]/100;return t[1]==="hwb"?r=Pi(i,a,o):t[1]==="hsv"?r=Ni(i,a,o):r=pt(i,a,o),{r:r[0],g:r[1],b:r[2],a:n}}function Mi(e,t){var n=gt(e);n[0]=En(n[0]+t),n=pt(n),e.r=n[0],e.g=n[1],e.b=n[2]}function Li(e){if(!e)return;const t=gt(e),n=t[0],r=Ct(t[1]),i=Ct(t[2]);return e.a<255?`hsla(${n}, ${r}%, ${i}%, ${C(e.a)})`:`hsl(${n}, ${r}%, ${i}%)`}const Rt={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},Ut={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function Ci(){const e={},t=Object.keys(Ut),n=Object.keys(Rt);let r,i,a,o,s;for(r=0;r<t.length;r++){for(o=s=t[r],i=0;i<n.length;i++)a=n[i],s=s.replace(a,Rt[a]);a=parseInt(Ut[o],16),e[s]=[a>>16&255,a>>8&255,a&255]}return e}let pe;function Ri(e){pe||(pe=Ci(),pe.transparent=[0,0,0,0]);const t=pe[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const Ui=/^rgba?\\(\\s*([-+.\\d]+)(%)?[\\s,]+([-+.e\\d]+)(%)?[\\s,]+([-+.e\\d]+)(%)?(?:[\\s,/]+([-+.e\\d]+)(%)?)?\\s*\\)$/;function Fi(e){const t=Ui.exec(e);let n=255,r,i,a;if(t){if(t[7]!==r){const o=+t[7];n=t[8]?ae(o):F(o*255,0,255)}return r=+t[1],i=+t[3],a=+t[5],r=255&(t[2]?ae(r):F(r,0,255)),i=255&(t[4]?ae(i):F(i,0,255)),a=255&(t[6]?ae(a):F(a,0,255)),{r,g:i,b:a,a:n}}}function Di(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${C(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}const Xe=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,W=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function Gi(e,t,n){const r=W(C(e.r)),i=W(C(e.g)),a=W(C(e.b));return{r:D(Xe(r+n*(W(C(t.r))-r))),g:D(Xe(i+n*(W(C(t.g))-i))),b:D(Xe(a+n*(W(C(t.b))-a))),a:e.a+n*(t.a-e.a)}}function _e(e,t,n){if(e){let r=gt(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*n,t===0?360:1)),r=pt(r),e.r=r[0],e.g=r[1],e.b=r[2]}}function vn(e,t){return e&&Object.assign(t||{},e)}function Ft(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=D(e[3]))):(t=vn(e,{r:0,g:0,b:0,a:1}),t.a=D(t.a)),t}function ji(e){return e.charAt(0)==="r"?Fi(e):Ii(e)}class it{constructor(t){if(t instanceof it)return t;const n=typeof t;let r;n==="object"?r=Ft(t):n==="string"&&(r=Hi(t)||Ri(t)||ji(t)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var t=vn(this._rgb);return t&&(t.a=C(t.a)),t}set rgb(t){this._rgb=Ft(t)}rgbString(){return this._valid?Di(this._rgb):void 0}hexString(){return this._valid?Si(this._rgb):void 0}hslString(){return this._valid?Li(this._rgb):void 0}mix(t,n){if(t){const r=this.rgb,i=t.rgb;let a;const o=n===a?.5:n,s=2*o-1,u=r.a-i.a,h=((s*u===-1?s:(s+u)/(1+s*u))+1)/2;a=1-h,r.r=255&h*r.r+a*i.r+.5,r.g=255&h*r.g+a*i.g+.5,r.b=255&h*r.b+a*i.b+.5,r.a=o*r.a+(1-o)*i.a,this.rgb=r}return this}interpolate(t,n){return t&&(this._rgb=Gi(this._rgb,t._rgb,n)),this}clone(){return new it(this.rgb)}alpha(t){return this._rgb.a=D(t),this}clearer(t){const n=this._rgb;return n.a*=1-t,this}greyscale(){const t=this._rgb,n=de(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=n,this}opaquer(t){const n=this._rgb;return n.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return _e(this._rgb,2,t),this}darken(t){return _e(this._rgb,2,-t),this}saturate(t){return _e(this._rgb,1,t),this}desaturate(t){return _e(this._rgb,1,-t),this}rotate(t){return Mi(this._rgb,t),this}}const Dt=/^on/,Hn=[];Object.keys(globalThis).forEach(e=>{Dt.test(e)&&Hn.push(e.replace(Dt,""))});function Ce(e){const t=Q,n=[];function r(i){Un(t,i)}Xt(()=>{const i=e();Hn.forEach(i instanceof Element?a=>n.push(Pn(i,a,r)):a=>n.push(i.$on(a,r)))}),Yt(()=>{for(;n.length;)n.pop()()})}function ki(e){let t,n=[e[1]],r={};for(let i=0;i<n.length;i+=1)r=N(r,n[i]);return{c(){t=On("canvas"),Mn(t,r)},m(i,a){An(i,t,a),e[8](t)},p:P,i:P,o:P,d(i){i&&kt(t),e[8](null)}}}function Vi(e){let{data:t,type:n,options:r,plugins:i,children:a,$$scope:o,$$slots:s,...u}=e;return u}function Xi(e,t,n){let{type:r}=t,{data:i={datasets:[]}}=t,{options:a={}}=t,{plugins:o=[]}=t,{updateMode:s=void 0}=t,{chart:u=null}=t,h,f=Vi(t);Xt(()=>{n(2,u=new Te(h,{type:r,data:i,options:a,plugins:o}))}),Rn(()=>{u&&(n(2,u.data=i,u),Object.assign(u.options,a),u.update(s))}),Yt(()=>{u&&u.destroy(),n(2,u=null)}),Ce(()=>h);function c(l){R[l?"unshift":"push"](()=>{h=l,n(0,h)})}return e.$$set=l=>{n(9,t=N(N({},t),G(l))),"type"in l&&n(3,r=l.type),"data"in l&&n(4,i=l.data),"options"in l&&n(5,a=l.options),"plugins"in l&&n(6,o=l.plugins),"updateMode"in l&&n(7,s=l.updateMode),"chart"in l&&n(2,u=l.chart)},t=G(t),[h,f,u,r,i,a,o,s,c]}class _t extends Pe{constructor(t){super(),Oe(this,t,Xi,ki,fe,{type:3,data:4,options:5,plugins:6,updateMode:7,chart:2})}}function Yi(e){let t,n,r;const i=[{type:"line"},e[1]];function a(s){e[4](s)}let o={};for(let s=0;s<i.length;s+=1)o=N(o,i[s]);return e[0]!==void 0&&(o.chart=e[0]),t=new _t({props:o}),e[3](t),R.push(()=>ft(t,"chart",a)),{c(){lt(t.$$.fragment)},m(s,u){Be(t,s,u),r=!0},p(s,[u]){const h=u&2?ut(i,[i[0],ht(s[1])]):{};!n&&u&1&&(n=!0,h.chart=s[0],ot(()=>n=!1)),t.$set(h)},i(s){r||(le(t.$$.fragment,s),r=!0)},o(s){we(t.$$.fragment,s),r=!1},d(s){e[3](null),Ae(t,s)}}}function Zi(e,t,n){Te.register(Tn);let{chart:r=null}=t,i,a;Ce(()=>a);function o(u){R[u?"unshift":"push"](()=>{a=u,n(2,a)})}function s(u){r=u,n(0,r)}return e.$$set=u=>{n(5,t=N(N({},t),G(u))),"chart"in u&&n(0,r=u.chart)},e.$$.update=()=>{n(1,i=t)},t=G(t),[r,i,a,o,s]}class Ia extends Pe{constructor(t){super(),Oe(this,t,Zi,Yi,fe,{chart:0})}}function Wi(e){let t,n,r;const i=[{type:"doughnut"},e[1]];function a(s){e[4](s)}let o={};for(let s=0;s<i.length;s+=1)o=N(o,i[s]);return e[0]!==void 0&&(o.chart=e[0]),t=new _t({props:o}),e[3](t),R.push(()=>ft(t,"chart",a)),{c(){lt(t.$$.fragment)},m(s,u){Be(t,s,u),r=!0},p(s,[u]){const h=u&2?ut(i,[i[0],ht(s[1])]):{};!n&&u&1&&(n=!0,h.chart=s[0],ot(()=>n=!1)),t.$set(h)},i(s){r||(le(t.$$.fragment,s),r=!0)},o(s){we(t.$$.fragment,s),r=!1},d(s){e[3](null),Ae(t,s)}}}function zi(e,t,n){Te.register(Sn);let{chart:r=null}=t,i,a;Ce(()=>a);function o(u){R[u?"unshift":"push"](()=>{a=u,n(2,a)})}function s(u){r=u,n(0,r)}return e.$$set=u=>{n(5,t=N(N({},t),G(u))),"chart"in u&&n(0,r=u.chart)},e.$$.update=()=>{n(1,i=t)},t=G(t),[r,i,a,o,s]}class Ma extends Pe{constructor(t){super(),Oe(this,t,zi,Wi,fe,{chart:0})}}function qi(e){let t,n,r;const i=[{type:"bar"},e[1]];function a(s){e[4](s)}let o={};for(let s=0;s<i.length;s+=1)o=N(o,i[s]);return e[0]!==void 0&&(o.chart=e[0]),t=new _t({props:o}),e[3](t),R.push(()=>ft(t,"chart",a)),{c(){lt(t.$$.fragment)},m(s,u){Be(t,s,u),r=!0},p(s,[u]){const h=u&2?ut(i,[i[0],ht(s[1])]):{};!n&&u&1&&(n=!0,h.chart=s[0],ot(()=>n=!1)),t.$set(h)},i(s){r||(le(t.$$.fragment,s),r=!0)},o(s){we(t.$$.fragment,s),r=!1},d(s){e[3](null),Ae(t,s)}}}function Qi(e,t,n){Te.register(wn);let{chart:r=null}=t,i,a;Ce(()=>a);function o(u){R[u?"unshift":"push"](()=>{a=u,n(2,a)})}function s(u){r=u,n(0,r)}return e.$$set=u=>{n(5,t=N(N({},t),G(u))),"chart"in u&&n(0,r=u.chart)},e.$$.update=()=>{n(1,i=t)},t=G(t),[r,i,a,o,s]}class La extends Pe{constructor(t){super(),Oe(this,t,Qi,qi,fe,{chart:0})}}const w=[];for(let e=0;e<256;++e)w.push((e+256).toString(16).slice(1));function Ji(e,t=0){return(w[e[t+0]]+w[e[t+1]]+w[e[t+2]]+w[e[t+3]]+"-"+w[e[t+4]]+w[e[t+5]]+"-"+w[e[t+6]]+w[e[t+7]]+"-"+w[e[t+8]]+w[e[t+9]]+"-"+w[e[t+10]]+w[e[t+11]]+w[e[t+12]]+w[e[t+13]]+w[e[t+14]]+w[e[t+15]]).toLowerCase()}let Ye;const $i=new Uint8Array(16);function Ki(){if(!Ye){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Ye=crypto.getRandomValues.bind(crypto)}return Ye($i)}const ea=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Gt={randomUUID:ea};function ta(e,t,n){e=e||{};const r=e.random??e.rng?.()??Ki();if(r.length<16)throw new Error("Random bytes length must be >= 16");return r[6]=r[6]&15|64,r[8]=r[8]&63|128,Ji(r)}function Ca(e,t,n){return Gt.randomUUID&&!e?Gt.randomUUID():ta(e)}export{te as $,P as A,La as B,it as C,Ma as D,oa as E,fa as F,X as G,pa as H,Pn as I,da as J,Ea as K,Ia as L,sa as M,_a as N,la as O,ha as P,ba as Q,R,Pe as S,ft as T,ga as U,ot as V,ze as W,at as X,wa as Y,ra as Z,Ta as _,Oe as a,va as a0,Ca as a1,Ba as a2,ma as a3,Ha as a4,Sa as a5,Ve as a6,kt as b,Ae as c,j as d,le as e,An as f,Pa as g,On as h,Oa as i,lt as j,Nn as k,ia as l,Be as m,Yt as n,Xt as o,ca as p,ya as q,Aa as r,fe as s,we as t,xa as u,aa as v,Ne as w,Vt as x,ua as y,Na as z};\n',
21263
- "zh-CN-wPD53IzZ.js": 'const e={error:"\u9519\u8BEF",loading:"\u52A0\u8F7D\u4E2D...",save:"\u4FDD\u5B58",cancel:"\u53D6\u6D88",delete:"\u5220\u9664",edit:"\u7F16\u8F91",add:"\u6DFB\u52A0",confirm:"\u786E\u8BA4",reset:"\u91CD\u7F6E",refresh:"\u5237\u65B0",search:"\u641C\u7D22",filter:"\u7B5B\u9009",export:"\u5BFC\u51FA",import:"\u5BFC\u5165",close:"\u5173\u95ED",show:"\u663E\u793A",hide:"\u9690\u85CF",copy:"\u590D\u5236",copied:"\u5DF2\u590D\u5236"},t={dashboard:"\u4EEA\u8868\u677F",home:"\u9996\u9875",routes:"\u8DEF\u7531\u7BA1\u7406",logs:"\u8BF7\u6C42\u65E5\u5FD7",configuration:"\u914D\u7F6E\u4E2D\u5FC3"},r={home:"\u9996\u9875",routes:"\u8DEF\u7531\u7BA1\u7406",newRoute:"\u65B0\u5EFA\u8DEF\u7531",editRoute:"\u7F16\u8F91\u8DEF\u7531"},a={title:"\u4EEA\u8868\u677F",dataRange:"\u6570\u636E\u65F6\u95F4\u8303\u56F4",totalRequests:"\u603B\u8BF7\u6C42\u6570",requestsPerSec:"\u6BCF\u79D2\u8BF7\u6C42\u6570",requestsPerSecond:"\u6BCF\u79D2\u8BF7\u6C42\u6570",successRate:"\u6210\u529F\u7387",avgResponseTime:"\u5E73\u5747\u54CD\u5E94\u65F6\u95F4",upstreamAnalysis:"\u4E0A\u6E38\u5206\u6790",upstreamDistribution:"\u4E0A\u6E38\u8BF7\u6C42\u5206\u5E03",upstreamFailures:"\u4E0A\u6E38\u5931\u8D25\u7EDF\u8BA1",upstreamStatusCodes:"\u4E0A\u6E38\u72B6\u6001\u7801\u5206\u5E03",noUpstreamData:"\u6240\u9009\u65F6\u95F4\u8303\u56F4\u5185\u6682\u65E0\u4E0A\u6E38\u6570\u636E",noData:"\u6682\u65E0\u6570\u636E"},o={title:"\u76D1\u63A7\u56FE\u8868",range:{"1h":"1\u5C0F\u65F6","12h":"12\u5C0F\u65F6","24h":"24\u5C0F\u65F6",oneHour:"1\u5C0F\u65F6",twelveHours:"12\u5C0F\u65F6",twentyFourHours:"24\u5C0F\u65F6"},charts:{requestsTrend:"\u8BF7\u6C42\u6570\u8D8B\u52BF",periodRequests:"\u65F6\u6BB5\u8BF7\u6C42\u6570",requests:"\u8BF7\u6C42\u6570",responseTimeTrend:"\u54CD\u5E94\u65F6\u95F4\u8D8B\u52BF",avgResponseTime:"\u5E73\u5747\u54CD\u5E94\u65F6\u95F4 (ms)",milliseconds:"\u6BEB\u79D2 (ms)",successRateTrend:"\u6210\u529F\u7387\u8D8B\u52BF",successRate:"\u6210\u529F\u7387 (%)",percentage:"\u767E\u5206\u6BD4 (%)",errorsTrend:"\u9519\u8BEF\u6570\u8D8B\u52BF",periodErrors:"\u65F6\u6BB5\u9519\u8BEF\u6570",errors:"\u9519\u8BEF\u6570"},noData:"\u6682\u65E0\u5386\u53F2\u6570\u636E"},s={title:"\u8DEF\u7531\u7BA1\u7406",subtitle:"\u7BA1\u7406\u60A8\u7684\u53CD\u5411\u4EE3\u7406\u8DEF\u7531\u548C\u4E0A\u6E38\u670D\u52A1\u5668",addRoute:"\u6DFB\u52A0\u8DEF\u7531",newRoute:"+ \u65B0\u5EFA\u8DEF\u7531",createFirstRoute:"\u521B\u5EFA\u7B2C\u4E00\u4E2A\u8DEF\u7531",editRoute:"\u7F16\u8F91\u8DEF\u7531",deleteRoute:"\u5220\u9664\u8DEF\u7531",export:"\u5BFC\u51FA",import:"\u5BFC\u5165",path:"\u8DEF\u5F84",upstreams:"\u4E0A\u6E38\u670D\u52A1\u5668",actions:"\u64CD\u4F5C",searchPlaceholder:"\u641C\u7D22\u8DEF\u7531\u6216\u4E0A\u6E38\u670D\u52A1\u5668...",allTransformers:"\u6240\u6709\u8F6C\u6362\u5668",noRoutes:"\u6682\u65E0\u8DEF\u7531\u914D\u7F6E",noRoutesMessage:"\u521B\u5EFA\u60A8\u7684\u7B2C\u4E00\u4E2A\u8DEF\u7531\u4EE5\u5F00\u59CB\u4EE3\u7406\u8BF7\u6C42",noMatchingRoutes:"\u6CA1\u6709\u5339\u914D\u7684\u8DEF\u7531",noMatchingMessage:"\u8BF7\u5C1D\u8BD5\u8C03\u6574\u641C\u7D22\u6216\u7B5B\u9009\u6761\u4EF6",showingRoutes:"\u663E\u793A {count} / {total} \u4E2A\u8DEF\u7531",confirmDelete:"\u786E\u8BA4\u5220\u9664\u8DEF\u7531",confirmDeleteMessage:\'\u786E\u5B9A\u8981\u5220\u9664\u8DEF\u7531 "{path}" \u5417\uFF1F\u6B64\u64CD\u4F5C\u65E0\u6CD5\u64A4\u9500\u3002\',deleted:\'\u8DEF\u7531 "{path}" \u5DF2\u5220\u9664\',deleteFailed:"\u5220\u9664\u5931\u8D25: {error}",duplicated:\'\u8DEF\u7531 "{path}" \u5DF2\u590D\u5236\',duplicateFailed:"\u590D\u5236\u5931\u8D25: {error}",noRoutesToExport:"\u6CA1\u6709\u53EF\u5BFC\u51FA\u7684\u8DEF\u7531",exported:"\u8DEF\u7531\u5DF2\u5BFC\u51FA",importMustBeArray:"\u5BFC\u5165\u6587\u4EF6\u5FC5\u987B\u662F\u8DEF\u7531\u6570\u7EC4",importSuccess:"\u6210\u529F\u5BFC\u5165 {success} \u4E2A\u8DEF\u7531",importPartialSuccess:"\u6210\u529F\u5BFC\u5165 {success} \u4E2A\u8DEF\u7531\uFF0C\u5931\u8D25 {failed} \u4E2A",importFailed:"\u5BFC\u5165\u5931\u8D25: {error}",filterStatus:{all:"\u5168\u90E8\u72B6\u6001",healthy:"\u4EC5\u5065\u5EB7",unhealthy:"\u6709\u5F02\u5E38"}},l={title:"\u914D\u7F6E\u4E2D\u5FC3",subtitle:"\u7F16\u8F91\u548C\u7BA1\u7406\u7CFB\u7EDF\u914D\u7F6E",export:"\u5BFC\u51FA",import:"\u5BFC\u5165",reload:"\u91CD\u65B0\u52A0\u8F7D",restart:"\u91CD\u542F\u670D\u52A1",formEditor:"\u8868\u5355\u7F16\u8F91",jsonEditor:"JSON \u7F16\u8F91",systemSettings:"\u7CFB\u7EDF\u8BBE\u7F6E",serverPort:"\u670D\u52A1\u5668\u7AEF\u53E3",workerProcesses:"\u5DE5\u4F5C\u8FDB\u7A0B\u6570",workerProcessesHelp:"\u8981\u542F\u52A8\u7684\u5DE5\u4F5C\u8FDB\u7A0B\u6570\u91CF",logLevel:"\u65E5\u5FD7\u7EA7\u522B",bodyParserLimit:"\u8BF7\u6C42\u4F53\u5927\u5C0F\u9650\u5236",bodyParserLimitHelp:\'\u6700\u5927\u8BF7\u6C42\u4F53\u5927\u5C0F\uFF08\u4F8B\u5982\uFF1A"50mb"\u3001"100kb"\uFF09\',requiresRestart:"\u6CE8\u610F\uFF1A\u7AEF\u53E3\u3001\u5DE5\u4F5C\u8FDB\u7A0B\u6570\u3001\u65E5\u5FD7\u7EA7\u522B\u548C\u8BF7\u6C42\u4F53\u5927\u5C0F\u9650\u5236\u7684\u66F4\u6539\u9700\u8981\u91CD\u542F\u670D\u52A1\u624D\u80FD\u751F\u6548\u3002",routesConfigured:"{count} \u4E2A\u8DEF\u7531\u5DF2\u914D\u7F6E\u3002",manageRoutes:"\u4F7F\u7528\u8DEF\u7531\u9875\u9762\u7BA1\u7406\u8DEF\u7531\u3002",jsonConfiguration:"JSON \u914D\u7F6E",jsonParseError:"JSON \u89E3\u6790\u9519\u8BEF: {error}",jsonPlaceholder:"\u8F93\u5165 JSON \u914D\u7F6E...",jsonHelp:"\u7F16\u8F91\u539F\u59CB JSON \u914D\u7F6E\u3002\u4FDD\u5B58\u524D\u5C06\u9A8C\u8BC1\u66F4\u6539\u3002",unsavedChanges:"\u60A8\u6709\u672A\u4FDD\u5B58\u7684\u66F4\u6539",reset:"\u91CD\u7F6E",save:"\u4FDD\u5B58\u914D\u7F6E",confirmRestart:"\u786E\u8BA4\u91CD\u542F\u670D\u52A1",restartMessage:"\u786E\u5B9A\u8981\u91CD\u542F\u670D\u52A1\u5417\uFF1F\u8FD9\u5C06\u5BFC\u81F4\u77ED\u6682\u4E2D\u65AD\uFF08\u901A\u5E38 2-3 \u79D2\uFF09\uFF0C\u56E0\u4E3A\u670D\u52A1\u4F1A\u4F18\u96C5\u5730\u91CD\u542F\u3002",restartWarning:"\u6D3B\u52A8\u8FDE\u63A5\u53EF\u80FD\u4F1A\u6682\u65F6\u4E2D\u65AD\u3002",validationFailed:"\u914D\u7F6E\u9A8C\u8BC1\u5931\u8D25: {error}",saved:"\u914D\u7F6E\u5DF2\u4FDD\u5B58",saveFailed:"\u4FDD\u5B58\u5931\u8D25: {error}",exported:"\u914D\u7F6E\u5DF2\u5BFC\u51FA",imported:"\u914D\u7F6E\u5DF2\u5BFC\u5165",importFailed:"\u5BFC\u5165\u5931\u8D25: {error}",reloaded:"\u914D\u7F6E\u5DF2\u6210\u529F\u91CD\u65B0\u52A0\u8F7D",reloadFailed:"\u91CD\u65B0\u52A0\u8F7D\u5931\u8D25: {error}",restartSent:"\u91CD\u542F\u4FE1\u53F7\u5DF2\u53D1\u9001\uFF0C\u670D\u52A1\u5C06\u5728\u51E0\u79D2\u540E\u91CD\u542F",restartDaemonOnly:\'\u91CD\u542F\u529F\u80FD\u4EC5\u5728 daemon \u6A21\u5F0F\u4E0B\u53EF\u7528\u3002\u8BF7\u4F7F\u7528 "bungee restart" \u547D\u4EE4\u6216\u624B\u52A8\u91CD\u542F\u5F00\u53D1\u670D\u52A1\u5668\u3002\',restartFailed:"\u91CD\u542F\u5931\u8D25: {error}"},i={title:"404",message:"\u9875\u9762\u672A\u627E\u5230",goHome:"\u8FD4\u56DE\u9996\u9875"},n={newRoute:"\u65B0\u5EFA\u8DEF\u7531",editRoute:"\u7F16\u8F91\u8DEF\u7531",backToList:"\u8FD4\u56DE\u5217\u8868",routePath:"\u8DEF\u7531\u8DEF\u5F84",pathPlaceholder:"\u4F8B\u5982: /api/*",pathHelp:"\u652F\u6301\u901A\u914D\u7B26 (*) \u548C\u53C2\u6570 (:param)",pathHelpLong:"\u8DEF\u5F84\u652F\u6301\u901A\u914D\u7B26 (*) \u5339\u914D\u4EFB\u610F\u5B57\u7B26\uFF0C\u4EE5\u53CA\u53C2\u6570\u5360\u4F4D\u7B26 (:param) \u6355\u83B7\u8DEF\u5F84\u7247\u6BB5",pathCannotBeChanged:"\u7F16\u8F91\u6A21\u5F0F\u4E0B\u8DEF\u5F84\u4E0D\u53EF\u4FEE\u6539",pathRewrite:"\u8DEF\u5F84\u91CD\u5199",pathRewriteHelp:"\u4F7F\u7528\u6B63\u5219\u8868\u8FBE\u5F0F\u6A21\u5F0F\u4FEE\u6539\u8BF7\u6C42\u8DEF\u5F84",pathRewriteTooltip:"\u8DEF\u5F84\u91CD\u5199\u5141\u8BB8\u4F7F\u7528\u6B63\u5219\u8868\u8FBE\u5F0F\u5339\u914D\u548C\u66FF\u6362\u8BF7\u6C42\u8DEF\u5F84\u3002\u4F8B\u5982\uFF1A^/api/v1 \u2192 /api/v2 \u4F1A\u5C06\u6240\u6709 /api/v1 \u5F00\u5934\u7684\u8DEF\u5F84\u91CD\u5199\u4E3A /api/v2",addPathRewriteRule:"\u6DFB\u52A0\u8DEF\u5F84\u91CD\u5199\u89C4\u5219",patternPlaceholder:"\u5339\u914D\u6B63\u5219\u8868\u8FBE\u5F0F (\u5982 ^/test)",replacementPlaceholder:"\u91CD\u5199\u8DEF\u5F84 (\u5982 /v1)",confirmDeleteRule:"\u786E\u5B9A\u8981\u5220\u9664\u8FD9\u6761\u89C4\u5219\u5417\uFF1F",upstreamCountTooltip:"\u5DF2\u914D\u7F6E {count} \u4E2A\u4E0A\u6E38\u670D\u52A1\u5668",upstreams:"\u4E0A\u6E38\u670D\u52A1\u5668",upstreamsHelp:"\u914D\u7F6E\u4E00\u4E2A\u6216\u591A\u4E2A\u4E0A\u6E38\u670D\u52A1\u5668",addUpstream:"\u6DFB\u52A0\u4E0A\u6E38",transformer:"\u8DEF\u7531\u8F6C\u6362\u5668",transformerHelp:"\u5E94\u7528\u4E8E\u6574\u4E2A\u8DEF\u7531\u7684\u8F6C\u6362\u5668\uFF08\u53EF\u9009\uFF09",noPluginsAvailable:"\u5F53\u524D\u65E0\u53EF\u7528\u8DEF\u7531\u8F6C\u6362\u5668\u63D2\u4EF6",optional:"\u53EF\u9009",basicInfo:"\u57FA\u672C\u4FE1\u606F",requestModification:"\u8BF7\u6C42\u4FEE\u6539",requestModificationHelp:"\u4FEE\u6539\u53D1\u9001\u5230\u4E0A\u6E38\u7684\u8BF7\u6C42\u5934\u3001\u8BF7\u6C42\u4F53\u548C\u67E5\u8BE2\u53C2\u6570",routeLevelModificationNote:"\u8FD9\u4E9B\u89C4\u5219\u5E94\u7528\u4E8E\u6240\u6709\u4E0A\u6E38\u670D\u52A1\u5668",preview:"\u914D\u7F6E\u9884\u89C8",previewHelp:"\u67E5\u770B\u8DEF\u7531\u914D\u7F6E\u7684\u53EF\u89C6\u5316\u9884\u89C8",features:"\u529F\u80FD",featuresEnabled:"\u5DF2\u542F\u7528",enabledFeatures:"\u5DF2\u542F\u7528\u529F\u80FD",notSet:"\u672A\u8BBE\u7F6E",totalWeight:"\u603B\u6743\u91CD",jsonConfig:"JSON \u914D\u7F6E",requestFlow:"\u8BF7\u6C42\u6D41\u7A0B",clientRequest:"\u5BA2\u6237\u7AEF\u8BF7\u6C42",selectUpstream:"\u9009\u62E9\u4E0A\u6E38",returnResponse:"\u8FD4\u56DE\u54CD\u5E94",failoverEnabled:"\u6545\u969C\u8F6C\u79FB\u5DF2\u542F\u7528",templateApplied:"\u6A21\u677F\u5DF2\u5E94\u7528",confirmCancel:"\u786E\u5B9A\u8981\u53D6\u6D88\u5417\uFF1F\u672A\u4FDD\u5B58\u7684\u66F4\u6539\u5C06\u4E22\u5931\u3002",failoverTitle:"\u6545\u969C\u8F6C\u79FB",failoverHelp:"\u914D\u7F6E\u81EA\u52A8\u6545\u969C\u8F6C\u79FB\u548C\u5065\u5EB7\u68C0\u67E5\u673A\u5236",enableFailover:"\u542F\u7528\u81EA\u52A8\u6545\u969C\u8F6C\u79FB",retryableStatusCodes:"\u53EF\u91CD\u8BD5\u7684\u72B6\u6001\u7801",retryableStatusCodesPlaceholder:"\u9ED8\u8BA4: 500, 502, 503, 504\uFF08\u670D\u52A1\u5668\u9519\u8BEF\uFF09",retryableStatusCodesHelp:"\u9047\u5230\u8FD9\u4E9B\u72B6\u6001\u7801\u65F6\u5C06\u81EA\u52A8\u91CD\u8BD5\u5176\u4ED6\u4E0A\u6E38",passiveHealthCheck:"\u88AB\u52A8\u5065\u5EB7\u68C0\u67E5",passiveHealthCheckTooltip:"\u901A\u8FC7\u76D1\u63A7\u5B9E\u9645\u8BF7\u6C42\u7684\u6210\u529F\u5931\u8D25\u6765\u5224\u65AD\u4E0A\u6E38\u5065\u5EB7\u72B6\u6001\uFF0C\u65E0\u9700\u989D\u5916\u63A2\u6D4B\u8BF7\u6C42",consecutiveFailuresThreshold:"\u8FDE\u7EED\u5931\u8D25\u9608\u503C",consecutiveFailuresThresholdHelp:"\u8FDE\u7EED\u5931\u8D25\u591A\u5C11\u6B21\u540E\u6807\u8BB0\u4E3A\u4E0D\u5065\u5EB7\uFF08\u9ED8\u8BA4\uFF1A3\uFF09",healthyThreshold:"\u5065\u5EB7\u9608\u503C",healthyThresholdHelp:"\u8FDE\u7EED\u6210\u529F\u591A\u5C11\u6B21\u540E\u6062\u590D\u4E3A\u5065\u5EB7\uFF08\u9ED8\u8BA4\uFF1A2\uFF09",requestTimeoutMs:"\u8BF7\u6C42\u8D85\u65F6\uFF08\u6BEB\u79D2\uFF09",requestTimeoutMsHelp:"\u6B63\u5E38\u8BF7\u6C42\u7684\u8D85\u65F6\u65F6\u95F4\uFF08\u9ED8\u8BA4\uFF1A30000ms\uFF09",connectTimeoutMs:"\u8FDE\u63A5\u8D85\u65F6\uFF08\u6BEB\u79D2\uFF09",connectTimeoutMsHelp:"\u5EFA\u7ACB\u8FDE\u63A5\u7684\u8D85\u65F6\u65F6\u95F4\uFF08\u9ED8\u8BA4\uFF1A5000ms\uFF09",activeHealthCheck:"\u4E3B\u52A8\u5065\u5EB7\u68C0\u67E5",activeHealthCheckTooltip:"\u5B9A\u671F\u5411\u4E0A\u6E38\u53D1\u9001\u63A2\u6D4B\u8BF7\u6C42\u6765\u4E3B\u52A8\u68C0\u6D4B\u5065\u5EB7\u72B6\u6001\uFF0C\u72EC\u7ACB\u4E8E\u4E1A\u52A1\u6D41\u91CF",enableActiveHealthCheck:"\u542F\u7528\u4E3B\u52A8\u5065\u5EB7\u68C0\u67E5",healthCheckIntervalMs:"\u68C0\u67E5\u95F4\u9694\uFF08\u6BEB\u79D2\uFF09",healthCheckIntervalMsHelp:"\u6BCF\u9694\u591A\u4E45\u6267\u884C\u4E00\u6B21\u5065\u5EB7\u68C0\u67E5\uFF08\u9ED8\u8BA4\uFF1A10000ms\uFF09",healthCheckTimeoutMs:"\u68C0\u67E5\u8D85\u65F6\uFF08\u6BEB\u79D2\uFF09",healthCheckTimeoutMsHelp:"\u5065\u5EB7\u68C0\u67E5\u8BF7\u6C42\u7684\u8D85\u65F6\u65F6\u95F4\uFF08\u9ED8\u8BA4\uFF1A3000ms\uFF09",healthCheckPath:"\u68C0\u67E5\u8DEF\u5F84",healthCheckPathHelp:"\u5065\u5EB7\u68C0\u67E5\u7684 HTTP \u8DEF\u5F84\uFF08\u9ED8\u8BA4\uFF1A/health\uFF09",healthCheckMethod:"HTTP \u65B9\u6CD5",healthCheckExpectedStatus:"\u671F\u671B\u72B6\u6001\u7801",healthCheckExpectedStatusHelp:"\u5065\u5EB7\u68C0\u67E5\u671F\u671B\u8FD4\u56DE\u7684\u72B6\u6001\u7801\uFF08\u9ED8\u8BA4\uFF1A200\uFF09",healthCheckUnhealthyThreshold:"\u4E0D\u5065\u5EB7\u9608\u503C",healthCheckUnhealthyThresholdHelp:"\u8FDE\u7EED\u5931\u8D25\u591A\u5C11\u6B21\u6807\u8BB0\u4E3A\u4E0D\u5065\u5EB7\uFF08\u9ED8\u8BA4\uFF1A3\uFF09",healthCheckHealthyThreshold:"\u5065\u5EB7\u9608\u503C",healthCheckHealthyThresholdHelp:"\u8FDE\u7EED\u6210\u529F\u591A\u5C11\u6B21\u6062\u590D\u4E3A\u5065\u5EB7\uFF08\u9ED8\u8BA4\uFF1A2\uFF09",slowStart:"\u6162\u542F\u52A8",slowStartTooltip:"\u6062\u590D\u7684\u4E0A\u6E38\u9010\u6B65\u589E\u52A0\u6D41\u91CF\uFF0C\u907F\u514D\u77AC\u95F4\u538B\u529B\u5BFC\u81F4\u518D\u6B21\u6545\u969C",enableSlowStart:"\u542F\u7528\u6162\u542F\u52A8\u673A\u5236",slowStartDurationMs:"\u6162\u542F\u52A8\u6301\u7EED\u65F6\u95F4\uFF08\u6BEB\u79D2\uFF09",slowStartDurationMsHelp:"\u4ECE\u4E0D\u5065\u5EB7\u6062\u590D\u540E\u9010\u6B65\u589E\u52A0\u6743\u91CD\u7684\u65F6\u95F4\uFF08\u9ED8\u8BA4\uFF1A30000ms\uFF09",slowStartInitialWeightFactor:"\u521D\u59CB\u6743\u91CD\u56E0\u5B50",slowStartInitialWeightFactorHelp:"\u6062\u590D\u540E\u521D\u59CB\u6743\u91CD\u7684\u6BD4\u4F8B\uFF0C0.1 \u8868\u793A 10%\uFF08\u9ED8\u8BA4\uFF1A0.1\uFF09",failoverInfoNotice:"\u6545\u969C\u8F6C\u79FB\u529F\u80FD\u53EF\u4EE5\u81EA\u52A8\u68C0\u6D4B\u4E0A\u6E38\u5065\u5EB7\u72B6\u6001\uFF0C\u5728\u6545\u969C\u65F6\u5207\u6362\u5230\u5907\u7528\u4E0A\u6E38\uFF0C\u4FDD\u8BC1\u670D\u52A1\u53EF\u7528\u6027\u3002",recoveryIntervalMs:"\u6062\u590D\u68C0\u6D4B\u95F4\u9694\uFF08\u6BEB\u79D2\uFF09",recoveryIntervalPlaceholder:"5000",recoveryIntervalHelp:"\u4E0A\u6E38\u5931\u8D25\u540E\u7B49\u5F85\u591A\u4E45\u5C1D\u8BD5\u6062\u590D",recoveryTimeoutMs:"\u6062\u590D\u8D85\u65F6\u65F6\u95F4\uFF08\u6BEB\u79D2\uFF09",recoveryTimeoutPlaceholder:"3000",recoveryTimeoutHelp:"\u6062\u590D\u8BF7\u6C42\u7684\u8D85\u65F6\u65F6\u95F4\uFF0C\u907F\u514D\u957F\u65F6\u95F4 pending",saveRoute:"\u4FDD\u5B58\u8DEF\u7531",cancel:"\u53D6\u6D88",saving:"\u4FDD\u5B58\u4E2D...",loadingTemplates:"\u52A0\u8F7D\u6A21\u677F\u4E2D...",useTemplate:"\u4F7F\u7528\u6A21\u677F",routeSaved:"\u8DEF\u7531\u5DF2\u4FDD\u5B58",routeUpdated:"\u8DEF\u7531\u5DF2\u66F4\u65B0",saveFailed:"\u4FDD\u5B58\u5931\u8D25: {error}",pathRequired:"\u8DEF\u7531\u8DEF\u5F84\u4E0D\u80FD\u4E3A\u7A7A",upstreamRequired:"\u81F3\u5C11\u9700\u8981\u4E00\u4E2A\u4E0A\u6E38\u670D\u52A1\u5668"},u={upstreams:"{count} \u4E2A\u4E0A\u6E38",hasTransformer:"\u5E26\u8F6C\u6362\u5668",failover:"\u6545\u969C\u8F6C\u79FB",edit:"\u7F16\u8F91",duplicate:"\u590D\u5236",delete:"\u5220\u9664",duplicating:"\u590D\u5236\u4E2D...",deleting:"\u5220\u9664\u4E2D...",viewAll:"\u67E5\u770B\u5168\u90E8 {count} \u4E2A",moreActions:"\u66F4\u591A\u64CD\u4F5C",tableHeaders:{status:"\u72B6\u6001",target:"\u4E3B\u673A\u5730\u5740",weight:"\u6743\u91CD",priority:"\u4F18\u5148\u7EA7"},pathRewrite:{original:"\u539F\u59CB",rewriteTo:"\u91CD\u5199\u4E3A"}},d={title:"\u4E0A\u6E38\u670D\u52A1\u5668\u5217\u8868",close:"\u5173\u95ED",statusHealthy:"\u5065\u5EB7",statusUnhealthy:"\u5F02\u5E38",statusUnknown:"\u672A\u77E5"},c={title:"\u4E0A\u6E38\u670D\u52A1\u5668 #{index}",priority:"\u4F18\u5148\u7EA7",target:"\u76EE\u6807\u5730\u5740",targetUrl:"\u76EE\u6807\u5730\u5740",targetPlaceholder:"https://api.example.com",targetHelp:"\u4E0A\u6E38\u670D\u52A1\u5668\u7684\u5B8C\u6574 URL",weight:"\u6743\u91CD",weightHelp:"\u8D1F\u8F7D\u5747\u8861\u6743\u91CD\uFF081-100\uFF09",transformer:"\u4E0A\u6E38\u8F6C\u6362\u5668",transformerHelp:"\u4EC5\u5E94\u7528\u4E8E\u6B64\u4E0A\u6E38\u7684\u8F6C\u6362\u5668\uFF08\u53EF\u9009\uFF09",remove:"\u79FB\u9664\u4E0A\u6E38",targetRequired:"\u76EE\u6807\u5730\u5740\u4E0D\u80FD\u4E3A\u7A7A",invalidUrl:"\u65E0\u6548\u7684 URL \u683C\u5F0F"},p={selectPlugin:"\u9009\u62E9\u63D2\u4EF6",none:"\u65E0\u63D2\u4EF6",description:"\u63D2\u4EF6\u8BF4\u660E",testPlugin:"\u6D4B\u8BD5\u63D2\u4EF6",testing:"\u6D4B\u8BD5\u4E2D...",input:"\u8F93\u5165\uFF08\u539F\u59CB\u683C\u5F0F\uFF09",output:"\u8F93\u51FA\uFF08\u8F6C\u6362\u540E\u683C\u5F0F\uFF09",inputPlaceholder:"\u8F93\u5165\u6D4B\u8BD5\u6570\u636E...",testSuccess:"\u8F6C\u6362\u6210\u529F",testFailed:"\u8F6C\u6362\u5931\u8D25: {error}"},h={title:"\u8BF7\u6C42\u5934",add:"\u6DFB\u52A0",addHeader:"\u6DFB\u52A0\u8BF7\u6C42\u5934",name:"\u540D\u79F0",namePlaceholder:"Content-Type",value:"\u503C",valuePlaceholder:"application/json",remove:"\u79FB\u9664",replace:"\u66FF\u6362",default:"\u9ED8\u8BA4",empty:"\u6682\u65E0\u8BF7\u6C42\u5934"},m={title:"\u8BF7\u6C42\u4F53",bodyType:"\u8BF7\u6C42\u4F53\u7C7B\u578B",json:"JSON",text:"\u7EAF\u6587\u672C",form:"\u8868\u5355\u6570\u636E",none:"\u65E0\u8BF7\u6C42\u4F53",placeholder:"\u8F93\u5165\u8BF7\u6C42\u4F53\u5185\u5BB9...",jsonInvalid:"\u65E0\u6548\u7684 JSON \u683C\u5F0F",add:"\u6DFB\u52A0",remove:"\u79FB\u9664",replace:"\u66FF\u6362",default:"\u9ED8\u8BA4",empty:"\u6682\u65E0\u5B57\u6BB5"},g={title:"\u67E5\u8BE2\u53C2\u6570",name:"\u53C2\u6570\u540D",namePlaceholder:"\u53C2\u6570\u540D\u79F0",value:"\u53C2\u6570\u503C",valuePlaceholder:"\u53C2\u6570\u503C",add:"\u6DFB\u52A0",remove:"\u79FB\u9664",replace:"\u66FF\u6362",default:"\u9ED8\u8BA4",empty:"\u6682\u65E0\u53C2\u6570"},v={title:"\u6761\u4EF6\u8868\u8FBE\u5F0F",placeholder:"request.headers[\'User-Agent\'].includes(\'Mobile\')",help:"\u4F7F\u7528 JavaScript \u8868\u8FBE\u5F0F\uFF0C\u8FD4\u56DE true \u6216 false",examples:"\u793A\u4F8B",example1:"\u68C0\u67E5\u8BF7\u6C42\u5934",example2:"\u68C0\u67E5\u67E5\u8BE2\u53C2\u6570",example3:"\u68C0\u67E5\u8BF7\u6C42\u65B9\u6CD5",test:"\u6D4B\u8BD5\u8868\u8FBE\u5F0F",testResult:"\u6D4B\u8BD5\u7ED3\u679C",resultTrue:"\u6761\u4EF6\u4E3A\u771F",resultFalse:"\u6761\u4EF6\u4E3A\u5047",resultError:"\u8868\u8FBE\u5F0F\u9519\u8BEF: {error}"},y={title:"\u8DEF\u7531\u6A21\u677F",subtitle:"\u5FEB\u901F\u521B\u5EFA\u5E38\u7528\u8DEF\u7531\u914D\u7F6E",useTemplate:"\u4F7F\u7528\u6B64\u6A21\u677F",categories:{api:"API \u4EE3\u7406",static:"\u9759\u6001\u8D44\u6E90",websocket:"WebSocket",auth:"\u8BA4\u8BC1\u4EE3\u7406"},restApi:{name:"REST API \u4EE3\u7406",description:"\u6807\u51C6\u7684 RESTful API \u4EE3\u7406\u914D\u7F6E"},graphql:{name:"GraphQL API",description:"GraphQL \u7AEF\u70B9\u4EE3\u7406"},static:{name:"\u9759\u6001\u6587\u4EF6\u670D\u52A1",description:"\u4EE3\u7406\u9759\u6001\u8D44\u6E90\u6587\u4EF6"},websocket:{name:"WebSocket \u4EE3\u7406",description:"\u5B9E\u65F6\u901A\u4FE1 WebSocket \u4EE3\u7406"},loadBalancing:{name:"\u8D1F\u8F7D\u5747\u8861",description:"\u591A\u4E0A\u6E38\u8D1F\u8F7D\u5747\u8861\u914D\u7F6E"}},T={yes:"\u786E\u5B9A",no:"\u53D6\u6D88",cancelTitle:"\u786E\u8BA4\u53D6\u6D88",cancelMessage:"\u786E\u5B9A\u8981\u53D6\u6D88\u7F16\u8F91\u5E76\u8FD4\u56DE\u5417\uFF1F\u672A\u4FDD\u5B58\u7684\u66F4\u6539\u5C06\u4E22\u5931\u3002",restoreDraftTitle:"\u6062\u590D\u8349\u7A3F",restoreDraftMessage:"\u68C0\u6D4B\u5230\u6709\u672A\u4FDD\u5B58\u7684\u8349\u7A3F\uFF0C\u662F\u5426\u6062\u590D\uFF1F"},f={targetRequired:"\u76EE\u6807\u5730\u5740\u4E0D\u80FD\u4E3A\u7A7A",targetProtocol:"\u76EE\u6807\u5730\u5740\u5FC5\u987B\u4F7F\u7528 http \u6216 https \u534F\u8BAE",invalidUrl:"\u65E0\u6548\u7684 URL \u683C\u5F0F",weightPositive:"\u6743\u91CD\u5FC5\u987B\u662F\u6B63\u6570",priorityNonNegative:"\u4F18\u5148\u7EA7\u5FC5\u987B\u662F\u975E\u8D1F\u6570",totalWeightPositive:"\u603B\u6743\u91CD\u5FC5\u987B\u5927\u4E8E 0",unknownTransformer:"\u672A\u77E5\u7684\u8F6C\u6362\u5668: {transformer}\u3002\u53EF\u7528\u9009\u9879: {options}",pathRequired:"\u8DEF\u5F84\u4E0D\u80FD\u4E3A\u7A7A",pathStartSlash:"\u8DEF\u5F84\u5FC5\u987B\u4EE5 / \u5F00\u5934",upstreamRequired:"\u81F3\u5C11\u9700\u8981\u4E00\u4E2A\u4E0A\u6E38\u670D\u52A1\u5668",invalidRegex:"\u65E0\u6548\u7684\u6B63\u5219\u8868\u8FBE\u5F0F: {pattern}",invalidStatusCode:"\u65E0\u6548\u7684\u72B6\u6001\u7801: {code}",recoveryIntervalPositive:"\u6062\u590D\u95F4\u9694\u5FC5\u987B\u5927\u4E8E 0",recoveryTimeoutPositive:"\u6062\u590D\u8D85\u65F6\u65F6\u95F4\u5FC5\u987B\u5927\u4E8E 0",expressionEmpty:"\u8868\u8FBE\u5F0F\u4E0D\u80FD\u4E3A\u7A7A",mismatchedBraces:"{{ }} \u62EC\u53F7\u4E0D\u5339\u914D",mismatchedParentheses:"\u62EC\u53F7\u4E0D\u5339\u914D",mismatchedQuotes:"\u5F15\u53F7\u4E0D\u5339\u914D",valid:"\u914D\u7F6E\u6709\u6548",errors:"\u4E2A\u9519\u8BEF",allGood:"\u914D\u7F6E\u6B63\u786E"},R={title:"\u5FEB\u6377\u952E",save:"\u4FDD\u5B58",cancel:"\u53D6\u6D88",switchSection:"\u5207\u6362\u533A\u57DF"},S={lastSaved:"\u4E0A\u6B21\u4FDD\u5B58",justNow:"\u521A\u521A",minutesAgo:"{minutes} \u5206\u949F\u524D",hoursAgo:"{hours} \u5C0F\u65F6\u524D",restoreDraft:"\u68C0\u6D4B\u5230\u672A\u4FDD\u5B58\u7684\u8349\u7A3F\uFF0C\u662F\u5426\u6062\u590D\uFF1F"},b={globalAuth:"\u5168\u5C40\u8BA4\u8BC1",routeAuth:"\u8DEF\u7531\u8BA4\u8BC1",helpText:"\u4FDD\u62A4\u60A8\u7684 API \u7AEF\u70B9",enableAuth:"\u542F\u7528\u8BA4\u8BC1",enabled:"\u5DF2\u542F\u7528",disabled:"\u5DF2\u7981\u7528",tokens:"\u4EE4\u724C\u5217\u8868",tokenPlaceholder:"\u8F93\u5165 token \u6216\u4F7F\u7528 {{ env.TOKEN_NAME }}",addToken:"\u6DFB\u52A0\u4EE4\u724C",expressionSupport:"\u652F\u6301\u8868\u8FBE\u5F0F\u8BED\u6CD5\u6765\u5F15\u7528\u73AF\u5883\u53D8\u91CF\uFF1A",securityNotice:"\u542F\u7528\u8BA4\u8BC1\u540E\uFF0CAuthorization header \u4F1A\u81EA\u52A8\u79FB\u9664\uFF0C\u4E0D\u4F1A\u8F6C\u53D1\u7ED9\u4E0A\u6E38\u670D\u52A1\u5668\uFF08\u5B89\u5168\u63AA\u65BD\uFF09\u3002",routeAuthHelp:"\u8DEF\u7531\u7EA7\u8BA4\u8BC1\u5C06\u8986\u76D6\u5168\u5C40\u8BA4\u8BC1\u914D\u7F6E\u3002\u5982\u679C\u672A\u914D\u7F6E\uFF0C\u5219\u4F7F\u7528\u5168\u5C40\u8BA4\u8BC1\u8BBE\u7F6E\u3002"},H={title:"\u8BF7\u6C42\u65E5\u5FD7",filters:"\u7B5B\u9009\u5668",autoRefresh:"\u81EA\u52A8\u5237\u65B0",refreshInterval:"\u5237\u65B0\u95F4\u9694",refreshEvery5s:"\u6BCF 5 \u79D2",refreshEvery10s:"\u6BCF 10 \u79D2",refreshEvery30s:"\u6BCF 30 \u79D2",refreshEvery60s:"\u6BCF 60 \u79D2",lastRefreshed:"\u4E0A\u6B21\u5237\u65B0",newDataAvailable:"\u6709\u65B0\u6570\u636E\u53EF\u7528\uFF0C\u70B9\u51FB\u5237\u65B0\u67E5\u770B",searchTerm:"\u641C\u7D22",searchPlaceholder:"\u641C\u7D22\u8DEF\u5F84\u6216\u9519\u8BEF\u4FE1\u606F...",method:"HTTP \u65B9\u6CD5",allMethods:"\u6240\u6709\u65B9\u6CD5",status:"\u72B6\u6001\u7801",statusPlaceholder:"\u4F8B\u5982\uFF1A200\u3001404\u3001500",result:"\u7ED3\u679C",allResults:"\u5168\u90E8",success:"\u6210\u529F",failed:"\u5931\u8D25",timeRange:"\u65F6\u95F4\u8303\u56F4",allTime:"\u5168\u90E8\u65F6\u95F4",recentTime:"\u6700\u8FD1\u65F6\u95F4",customTime:"\u81EA\u5B9A\u4E49\u8303\u56F4",recentHours:"\u6700\u8FD1\u5C0F\u65F6\u6570",startTime:"\u5F00\u59CB\u65F6\u95F4",endTime:"\u7ED3\u675F\u65F6\u95F4",sortBy:"\u6392\u5E8F\u65B9\u5F0F",sortByTimestamp:"\u65F6\u95F4\u6233",sortByDuration:"\u6301\u7EED\u65F6\u95F4",sortByStatus:"\u72B6\u6001\u7801",sortOrder:"\u6392\u5E8F",asc:"\u5347\u5E8F",desc:"\u964D\u5E8F",time:"\u65F6\u95F4",path:"\u8DEF\u5F84",duration:"\u6301\u7EED\u65F6\u95F4",requestType:"\u7C7B\u578B",requestTypeFilter:"\u8BF7\u6C42\u7C7B\u578B",requestType_all:"\u5168\u90E8\u7C7B\u578B",requestType_final:"\u6700\u7EC8\u8BF7\u6C42",requestType_retry:"\u91CD\u8BD5\u8BF7\u6C42",requestType_recovery:"\u6062\u590D\u6D4B\u8BD5",requestType_final_desc:"\u8FD4\u56DE\u5BA2\u6237\u7AEF\u7684\u8BF7\u6C42",requestType_retry_desc:"\u91CD\u8BD5\u5C1D\u8BD5",requestType_recovery_desc:"\u6545\u969C\u6062\u590D\u6D4B\u8BD5",upstream:"\u4E0A\u6E38",actions:"\u64CD\u4F5C",viewDetail:"\u8BE6\u60C5",export:"\u5BFC\u51FA",startStream:"\u542F\u52A8\u6D41",stopStream:"\u505C\u6B62\u6D41",showing:"\u663E\u793A {start}-{end}\uFF0C\u5171 {total} \u6761",page:"\u7B2C {page} \u9875\uFF0C\u5171 {totalPages} \u9875",noData:"\u6682\u65E0\u65E5\u5FD7\u6570\u636E",advancedFilters:"\u9AD8\u7EA7\u7B5B\u9009",activeFilters:"\u4E2A\u7B5B\u9009\u6761\u4EF6",clearFilters:"\u6E05\u9664\u5168\u90E8",moreFilters:"\u66F4\u591A\u7B5B\u9009",detail:{title:"\u8BF7\u6C42\u65E5\u5FD7\u8BE6\u60C5",requestId:"\u8BF7\u6C42 ID",timestamp:"\u65F6\u95F4\u6233",method:"\u65B9\u6CD5",status:"\u72B6\u6001",duration:"\u6301\u7EED\u65F6\u95F4",success:"\u6210\u529F",requestInfo:"\u8BF7\u6C42\u4FE1\u606F",path:"\u8DEF\u5F84",originalPath:"\u539F\u59CB\u8DEF\u5F84",transformedPath:"\u8F6C\u6362\u540E",query:"\u67E5\u8BE2\u5B57\u7B26\u4E32",routePath:"\u5339\u914D\u8DEF\u7531",upstreamInfo:"\u4E0A\u6E38\u4FE1\u606F",upstream:"\u4E0A\u6E38",transformer:"\u8F6C\u6362\u5668",authInfo:"\u8BA4\u8BC1\u4FE1\u606F",authLevel:"\u8BA4\u8BC1\u7EA7\u522B",authResult:"\u7ED3\u679C",authSuccess:"\u5DF2\u8BA4\u8BC1",authFailed:"\u5931\u8D25",processingSteps:"\u5904\u7406\u6B65\u9AA4",errorInfo:"\u9519\u8BEF\u4FE1\u606F",requestBody:"\u8BF7\u6C42\u4F53",responseBody:"\u54CD\u5E94\u4F53",loadRequestBody:"\u52A0\u8F7D\u8BF7\u6C42\u4F53",loadResponseBody:"\u52A0\u8F7D\u54CD\u5E94\u4F53",bodyNotRecorded:"\u6B64\u8BF7\u6C42\u672A\u8BB0\u5F55 Body",bodyNotRecordedReason:"\u53EF\u80FD\u8D85\u8FC7\u5927\u5C0F\u9650\u5236\u6216\u4E3A\u7A7A",originalRequest:"\u539F\u59CB\u8BF7\u6C42\uFF08\u8F6C\u6362\u524D\uFF09",finalRequest:"\u6700\u7EC8\u8BF7\u6C42\uFF08\u53D1\u9001\u7ED9\u4E0A\u6E38\uFF09",responseData:"\u54CD\u5E94\u6570\u636E\uFF08\u4E0A\u6E38\u8FD4\u56DE\uFF09",originalHeaders:"\u539F\u59CB\u8BF7\u6C42\u5934",finalHeaders:"\u6700\u7EC8\u8BF7\u6C42\u5934",requestHeaders:"\u8BF7\u6C42\u5934",responseHeaders:"\u54CD\u5E94\u5934",bodyPreview:"Body \u9884\u89C8",bodyTooLarge:"Body \u8FC7\u5927 ({size})",clickToExpand:"\u70B9\u51FB\u5C55\u5F00",headers:"\u4E2A\u8BF7\u6C42\u5934",noHeaders:"\u6682\u65E0\u8BF7\u6C42\u5934",noBody:"\u6682\u65E0 Body \u6570\u636E",overview:"\u6982\u89C8",routeAndUpstream:"\u8DEF\u7531\u4E0E\u4E0A\u6E38",processingTimeline:"\u5904\u7406\u65F6\u95F4\u7EBF",totalSteps:"\u5171 {count} \u6B65",totalDuration:"\u603B\u8017\u65F6 {duration}",showTimeline:"\u663E\u793A\u65F6\u95F4\u7EBF",hideTimeline:"\u9690\u85CF\u65F6\u95F4\u7EBF",copyToClipboard:"\u590D\u5236",downloadJson:"\u4E0B\u8F7D JSON",copied:"\u5DF2\u590D\u5236\uFF01",tabOriginalRequest:"\u539F\u59CB\u8BF7\u6C42",tabFinalRequest:"\u8F6C\u6362\u540E",tabResponse:"\u54CD\u5E94\u6570\u636E",requestData:"\u8BF7\u6C42\u6570\u636E",noDataAvailable:"\u6682\u65E0\u6570\u636E",step:"\u6B65\u9AA4"},steps:{route_matched:"\u8DEF\u7531\u5339\u914D",request_snapshot_created:"\u8BF7\u6C42\u5FEB\u7167\u521B\u5EFA",auth_failed:"\u8BA4\u8BC1\u5931\u8D25",auth_success:"\u8BA4\u8BC1\u6210\u529F",upstream_selected:"\u4E0A\u6E38\u9009\u62E9",trying_upstream:"\u5C1D\u8BD5\u4E0A\u6E38",circuit_breaker_closed:"\u65AD\u8DEF\u5668\u5173\u95ED",circuit_breaker_opened:"\u65AD\u8DEF\u5668\u6253\u5F00",circuit_breaker_reopened:"\u65AD\u8DEF\u5668\u91CD\u65B0\u6253\u5F00",upstream_recovered:"\u4E0A\u6E38\u6062\u590D",upstream_retry:"\u4E0A\u6E38\u91CD\u8BD5",upstream_failed:"\u4E0A\u6E38\u5931\u8D25",plugin_request_init:"\u63D2\u4EF6\u8BF7\u6C42\u521D\u59CB\u5316",plugin_before_request:"\u63D2\u4EF6\u8BF7\u6C42\u524D\u5904\u7406",plugin_intercepted:"\u63D2\u4EF6\u62E6\u622A\u8BF7\u6C42",plugin_response:"\u63D2\u4EF6\u54CD\u5E94\u5904\u7406",plugin_error:"\u63D2\u4EF6\u9519\u8BEF\u5904\u7406"}},P={title:"\u65E5\u5FD7\u914D\u7F6E",bodyRecording:"\u542F\u7528\u8BF7\u6C42/\u54CD\u5E94\u4F53\u8BB0\u5F55",bodyRecordingHelp:"\u8BB0\u5F55\u8BF7\u6C42\u548C\u54CD\u5E94\u4F53\u7528\u4E8E\u95EE\u9898\u6392\u67E5\u548C\u5206\u6790",maxSize:"\u6700\u5927 Body \u5927\u5C0F",maxSizeHelp:"\u8D85\u8FC7\u6B64\u5927\u5C0F\u7684 Body \u5C06\u88AB\u8DF3\u8FC7\uFF081-100 KB\uFF09",retentionDays:"Body \u4FDD\u7559\u5929\u6570",retentionDaysHelp:"Body \u5C06\u5728\u8FD9\u4E9B\u5929\u6570\u540E\u81EA\u52A8\u5220\u9664",days:"\u5929",hours:"\u5C0F\u65F6",cleanupConfig:"\u6E05\u7406\u914D\u7F6E",cleanupStatus:"\u72B6\u6001",active:"\u6D3B\u8DC3",inactive:"\u672A\u6D3B\u8DC3",cleanupRetention:"\u4FDD\u7559\u65F6\u957F",cleanupInterval:"\u6E05\u7406\u95F4\u9694",manualCleanup:"\u624B\u52A8\u6E05\u7406",confirmCleanup:"\u786E\u5B9A\u8981\u624B\u52A8\u89E6\u53D1\u65E5\u5FD7\u6E05\u7406\u5417\uFF1F\u8FD9\u5C06\u5220\u9664\u6240\u6709\u8D85\u8FC7\u914D\u7F6E\u4FDD\u7559\u671F\u9650\u7684\u65E5\u5FD7\u548C Body\u3002",cleanupSuccess:"\u6E05\u7406\u6210\u529F\u5B8C\u6210",cleanupFailed:"\u6E05\u7406\u5931\u8D25: {error}",lastCleanup:"\u4E0A\u6B21\u6E05\u7406\u7ED3\u679C",deletedSqliteRecords:"\u5DF2\u5220\u9664 SQLite \u8BB0\u5F55",deletedFileLogFiles:"\u5DF2\u5220\u9664\u65E5\u5FD7\u6587\u4EF6",deletedBodyFiles:"\u5DF2\u5220\u9664 Body \u6587\u4EF6",dirs:"\u76EE\u5F55",files:"\u6587\u4EF6",duration:"\u8017\u65F6"},q={title:"\u767B\u5F55",subtitle:"\u8F93\u5165\u8BBF\u95EE\u4EE4\u724C\u4EE5\u7EE7\u7EED",token:"\u8BBF\u95EE\u4EE4\u724C",tokenPlaceholder:"\u8BF7\u8F93\u5165\u8BBF\u95EE\u4EE4\u724C...",submit:"\u767B\u5F55",loggingIn:"\u767B\u5F55\u4E2D...",success:"\u767B\u5F55\u6210\u529F",failed:"\u767B\u5F55\u5931\u8D25\uFF1A{error}",required:"\u8BBF\u95EE\u4EE4\u724C\u4E0D\u80FD\u4E3A\u7A7A",unauthorized:"\u8BBF\u95EE\u4EE4\u724C\u65E0\u6548",logout:"\u9000\u51FA\u767B\u5F55",logoutConfirm:"\u786E\u5B9A\u8981\u9000\u51FA\u767B\u5F55\u5417\uFF1F"},w={common:e,nav:t,breadcrumb:r,dashboard:a,monitoring:o,routes:s,configuration:l,notFound:i,routeEditor:n,routeCard:u,upstreamsModal:d,upstream:c,plugin:p,headers:h,body:m,query:g,expression:v,templates:y,confirmDialog:T,validation:f,shortcuts:R,autosave:S,auth:b,logs:H,logging:P,login:q};export{b as auth,S as autosave,m as body,r as breadcrumb,e as common,l as configuration,T as confirmDialog,a as dashboard,w as default,v as expression,h as headers,P as logging,q as login,H as logs,o as monitoring,t as nav,i as notFound,p as plugin,g as query,u as routeCard,n as routeEditor,s as routes,R as shortcuts,y as templates,c as upstream,d as upstreamsModal,f as validation};\n',
21264
- "index-D-TPeiTP.css": "*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: \"\"}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\",Segoe UI Symbol,\"Noto Color Emoji\";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}:root,[data-theme]{background-color:var(--fallback-b1,oklch(var(--b1)/1));color:var(--fallback-bc,oklch(var(--bc)/1))}@supports not (color: oklch(0% 0 0)){:root{color-scheme:light;--fallback-p: #491eff;--fallback-pc: #d4dbff;--fallback-s: #ff41c7;--fallback-sc: #fff9fc;--fallback-a: #00cfbd;--fallback-ac: #00100d;--fallback-n: #2b3440;--fallback-nc: #d7dde4;--fallback-b1: #ffffff;--fallback-b2: #e5e6e6;--fallback-b3: #e5e6e6;--fallback-bc: #1f2937;--fallback-in: #00b3f0;--fallback-inc: #000000;--fallback-su: #00ca92;--fallback-suc: #000000;--fallback-wa: #ffc22d;--fallback-wac: #000000;--fallback-er: #ff6f70;--fallback-erc: #000000}@media (prefers-color-scheme: dark){:root{color-scheme:dark;--fallback-p: #7582ff;--fallback-pc: #050617;--fallback-s: #ff71cf;--fallback-sc: #190211;--fallback-a: #00c7b5;--fallback-ac: #000e0c;--fallback-n: #2a323c;--fallback-nc: #a6adbb;--fallback-b1: #1d232a;--fallback-b2: #191e24;--fallback-b3: #15191e;--fallback-bc: #a6adbb;--fallback-in: #00b3f0;--fallback-inc: #000000;--fallback-su: #00ca92;--fallback-suc: #000000;--fallback-wa: #ffc22d;--fallback-wac: #000000;--fallback-er: #ff6f70;--fallback-erc: #000000}}}html{-webkit-tap-highlight-color:transparent}*{scrollbar-color:color-mix(in oklch,currentColor 35%,transparent) transparent}*:hover{scrollbar-color:color-mix(in oklch,currentColor 60%,transparent) transparent}:root{color-scheme:light;--in: 72.06% .191 231.6;--su: 64.8% .15 160;--wa: 84.71% .199 83.87;--er: 71.76% .221 22.18;--pc: 89.824% .06192 275.75;--ac: 15.352% .0368 183.61;--inc: 0% 0 0;--suc: 0% 0 0;--wac: 0% 0 0;--erc: 0% 0 0;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 49.12% .3096 275.75;--s: 69.71% .329 342.55;--sc: 98.71% .0106 342.55;--a: 76.76% .184 183.61;--n: 32.1785% .02476 255.701624;--nc: 89.4994% .011585 252.096176;--b1: 100% 0 0;--b2: 96.1151% 0 0;--b3: 92.4169% .00108 197.137559;--bc: 27.8078% .029596 256.847952}@media (prefers-color-scheme: dark){:root{color-scheme:dark;--in: 72.06% .191 231.6;--su: 64.8% .15 160;--wa: 84.71% .199 83.87;--er: 71.76% .221 22.18;--pc: 13.138% .0392 275.75;--sc: 14.96% .052 342.55;--ac: 14.902% .0334 183.61;--inc: 0% 0 0;--suc: 0% 0 0;--wac: 0% 0 0;--erc: 0% 0 0;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 65.69% .196 275.75;--s: 74.8% .26 342.55;--a: 74.51% .167 183.61;--n: 31.3815% .021108 254.139175;--nc: 74.6477% .0216 264.435964;--b1: 25.3267% .015896 252.417568;--b2: 23.2607% .013807 253.100675;--b3: 21.1484% .01165 254.087939;--bc: 74.6477% .0216 264.435964}}[data-theme=light]{color-scheme:light;--in: 72.06% .191 231.6;--su: 64.8% .15 160;--wa: 84.71% .199 83.87;--er: 71.76% .221 22.18;--pc: 89.824% .06192 275.75;--ac: 15.352% .0368 183.61;--inc: 0% 0 0;--suc: 0% 0 0;--wac: 0% 0 0;--erc: 0% 0 0;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 49.12% .3096 275.75;--s: 69.71% .329 342.55;--sc: 98.71% .0106 342.55;--a: 76.76% .184 183.61;--n: 32.1785% .02476 255.701624;--nc: 89.4994% .011585 252.096176;--b1: 100% 0 0;--b2: 96.1151% 0 0;--b3: 92.4169% .00108 197.137559;--bc: 27.8078% .029596 256.847952}[data-theme=dark]{color-scheme:dark;--in: 72.06% .191 231.6;--su: 64.8% .15 160;--wa: 84.71% .199 83.87;--er: 71.76% .221 22.18;--pc: 13.138% .0392 275.75;--sc: 14.96% .052 342.55;--ac: 14.902% .0334 183.61;--inc: 0% 0 0;--suc: 0% 0 0;--wac: 0% 0 0;--erc: 0% 0 0;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 65.69% .196 275.75;--s: 74.8% .26 342.55;--a: 74.51% .167 183.61;--n: 31.3815% .021108 254.139175;--nc: 74.6477% .0216 264.435964;--b1: 25.3267% .015896 252.417568;--b2: 23.2607% .013807 253.100675;--b3: 21.1484% .01165 254.087939;--bc: 74.6477% .0216 264.435964}.alert{display:grid;width:100%;grid-auto-flow:row;align-content:flex-start;align-items:center;justify-items:center;gap:1rem;text-align:center;border-radius:var(--rounded-box, 1rem);border-width:1px;--tw-border-opacity: 1;border-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-border-opacity)));padding:1rem;--tw-text-opacity: 1;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)));--alert-bg: var(--fallback-b2,oklch(var(--b2)/1));--alert-bg-mix: var(--fallback-b1,oklch(var(--b1)/1));background-color:var(--alert-bg)}@media (min-width: 640px){.alert{grid-auto-flow:column;grid-template-columns:auto minmax(auto,1fr);justify-items:start;text-align:start}}.avatar.placeholder>div{display:flex;align-items:center;justify-content:center}.badge{display:inline-flex;align-items:center;justify-content:center;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-timing-function:cubic-bezier(0,0,.2,1);transition-duration:.2s;height:1.25rem;font-size:.875rem;line-height:1.25rem;width:-moz-fit-content;width:fit-content;padding-left:.563rem;padding-right:.563rem;border-radius:var(--rounded-badge, 1.9rem);border-width:1px;--tw-border-opacity: 1;border-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-border-opacity)));--tw-bg-opacity: 1;background-color:var(--fallback-b1,oklch(var(--b1)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)))}.breadcrumbs{max-width:100%;overflow-x:auto;padding-top:.5rem;padding-bottom:.5rem}.breadcrumbs>ul,.breadcrumbs>ol{display:flex;align-items:center;white-space:nowrap;min-height:-moz-min-content;min-height:min-content}.breadcrumbs>ul>li,.breadcrumbs>ol>li{display:flex;align-items:center}.breadcrumbs>ul>li>a,.breadcrumbs>ol>li>a{display:flex;cursor:pointer;align-items:center}@media (hover:hover){.breadcrumbs>ul>li>a:hover,.breadcrumbs>ol>li>a:hover{text-decoration-line:underline}.link-hover:hover{text-decoration-line:underline}.label a:hover{--tw-text-opacity: 1;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)))}.menu li>*:not(ul,.menu-title,details,.btn):active,.menu li>*:not(ul,.menu-title,details,.btn).active,.menu li>details>summary:active{--tw-bg-opacity: 1;background-color:var(--fallback-n,oklch(var(--n)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-nc,oklch(var(--nc)/var(--tw-text-opacity)))}.tab:hover{--tw-text-opacity: 1}.tabs-boxed :is(.tab-active,[aria-selected=true]):not(.tab-disabled):not([disabled]):hover,.tabs-boxed :is(input:checked):hover{--tw-text-opacity: 1;color:var(--fallback-pc,oklch(var(--pc)/var(--tw-text-opacity)))}.table tr.hover:hover,.table tr.hover:nth-child(2n):hover{--tw-bg-opacity: 1;background-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-bg-opacity)))}.table-zebra tr.hover:hover,.table-zebra tr.hover:nth-child(2n):hover{--tw-bg-opacity: 1;background-color:var(--fallback-b3,oklch(var(--b3)/var(--tw-bg-opacity)))}}.btn{display:inline-flex;height:3rem;min-height:3rem;flex-shrink:0;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;flex-wrap:wrap;align-items:center;justify-content:center;border-radius:var(--rounded-btn, .5rem);border-color:transparent;border-color:oklch(var(--btn-color, var(--b2)) / var(--tw-border-opacity));padding-left:1rem;padding-right:1rem;text-align:center;font-size:.875rem;line-height:1em;gap:.5rem;font-weight:600;text-decoration-line:none;transition-duration:.2s;transition-timing-function:cubic-bezier(0,0,.2,1);border-width:var(--border-btn, 1px);transition-property:color,background-color,border-color,opacity,box-shadow,transform;--tw-text-opacity: 1;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)));--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);outline-color:var(--fallback-bc,oklch(var(--bc)/1));background-color:oklch(var(--btn-color, var(--b2)) / var(--tw-bg-opacity));--tw-bg-opacity: 1;--tw-border-opacity: 1}.btn-disabled,.btn[disabled],.btn:disabled{pointer-events:none}.btn-square{height:3rem;width:3rem;padding:0}.btn-circle{height:3rem;width:3rem;border-radius:9999px;padding:0}:where(.btn:is(input[type=checkbox])),:where(.btn:is(input[type=radio])){width:auto;-webkit-appearance:none;-moz-appearance:none;appearance:none}.btn:is(input[type=checkbox]):after,.btn:is(input[type=radio]):after{--tw-content: attr(aria-label);content:var(--tw-content)}.card{position:relative;display:flex;flex-direction:column;border-radius:var(--rounded-box, 1rem)}.card:focus{outline:2px solid transparent;outline-offset:2px}.card-body{display:flex;flex:1 1 auto;flex-direction:column;padding:var(--padding-card, 2rem);gap:.5rem}.card-body :where(p){flex-grow:1}.card-actions{display:flex;flex-wrap:wrap;align-items:flex-start;gap:.5rem}.card figure{display:flex;align-items:center;justify-content:center}.card.image-full{display:grid}.card.image-full:before{position:relative;content:\"\";z-index:10;border-radius:var(--rounded-box, 1rem);--tw-bg-opacity: 1;background-color:var(--fallback-n,oklch(var(--n)/var(--tw-bg-opacity)));opacity:.75}.card.image-full:before,.card.image-full>*{grid-column-start:1;grid-row-start:1}.card.image-full>figure img{height:100%;-o-object-fit:cover;object-fit:cover}.card.image-full>.card-body{position:relative;z-index:20;--tw-text-opacity: 1;color:var(--fallback-nc,oklch(var(--nc)/var(--tw-text-opacity)))}.checkbox{flex-shrink:0;--chkbg: var(--fallback-bc,oklch(var(--bc)/1));--chkfg: var(--fallback-b1,oklch(var(--b1)/1));height:1.5rem;width:1.5rem;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:var(--rounded-btn, .5rem);border-width:1px;border-color:var(--fallback-bc,oklch(var(--bc)/var(--tw-border-opacity)));--tw-border-opacity: .2}.collapse:not(td):not(tr):not(colgroup){visibility:visible}.collapse{position:relative;display:grid;overflow:hidden;grid-template-rows:max-content 0fr;transition:grid-template-rows .2s;width:100%;border-radius:var(--rounded-box, 1rem)}.collapse-title,.collapse>input[type=checkbox],.collapse>input[type=radio],.collapse-content{grid-column-start:1;grid-row-start:1}.collapse>input[type=checkbox],.collapse>input[type=radio]{-webkit-appearance:none;-moz-appearance:none;appearance:none;opacity:0}:where(.collapse>input[type=checkbox]),:where(.collapse>input[type=radio]){height:100%;width:100%;z-index:1}.collapse-content{visibility:hidden;grid-column-start:1;grid-row-start:2;min-height:0px;transition:visibility .2s;transition:padding .2s ease-out,background-color .2s ease-out;padding-left:1rem;padding-right:1rem;cursor:unset}.collapse[open],.collapse-open,.collapse:focus:not(.collapse-close){grid-template-rows:max-content 1fr}.collapse:not(.collapse-close):has(>input[type=checkbox]:checked),.collapse:not(.collapse-close):has(>input[type=radio]:checked){grid-template-rows:max-content 1fr}.collapse[open]>.collapse-content,.collapse-open>.collapse-content,.collapse:focus:not(.collapse-close)>.collapse-content,.collapse:not(.collapse-close)>input[type=checkbox]:checked~.collapse-content,.collapse:not(.collapse-close)>input[type=radio]:checked~.collapse-content{visibility:visible;min-height:-moz-fit-content;min-height:fit-content}.divider{display:flex;flex-direction:row;align-items:center;align-self:stretch;margin-top:1rem;margin-bottom:1rem;height:1rem;white-space:nowrap}.divider:before,.divider:after{height:.125rem;width:100%;flex-grow:1;--tw-content: \"\";content:var(--tw-content);background-color:var(--fallback-bc,oklch(var(--bc)/.1))}.dropdown{position:relative;display:inline-block}.dropdown>*:not(summary):focus{outline:2px solid transparent;outline-offset:2px}.dropdown .dropdown-content{position:absolute}.dropdown:is(:not(details)) .dropdown-content{visibility:hidden;opacity:0;transform-origin:top;--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-timing-function:cubic-bezier(0,0,.2,1);transition-duration:.2s}.dropdown-end .dropdown-content{inset-inline-end:0px}.dropdown-left .dropdown-content{bottom:auto;inset-inline-end:100%;top:0;transform-origin:right}.dropdown-right .dropdown-content{bottom:auto;inset-inline-start:100%;top:0;transform-origin:left}.dropdown-bottom .dropdown-content{bottom:auto;top:100%;transform-origin:top}.dropdown-top .dropdown-content{bottom:100%;top:auto;transform-origin:bottom}.dropdown-end.dropdown-right .dropdown-content,.dropdown-end.dropdown-left .dropdown-content{bottom:0;top:auto}.dropdown.dropdown-open .dropdown-content,.dropdown:not(.dropdown-hover):focus .dropdown-content,.dropdown:focus-within .dropdown-content{visibility:visible;opacity:1}@media (hover: hover){.dropdown.dropdown-hover:hover .dropdown-content{visibility:visible;opacity:1}.btm-nav>*.disabled:hover,.btm-nav>*[disabled]:hover{pointer-events:none;--tw-border-opacity: 0;background-color:var(--fallback-n,oklch(var(--n)/var(--tw-bg-opacity)));--tw-bg-opacity: .1;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)));--tw-text-opacity: .2}.btn:hover{--tw-border-opacity: 1;border-color:var(--fallback-b3,oklch(var(--b3)/var(--tw-border-opacity)));--tw-bg-opacity: 1;background-color:var(--fallback-b3,oklch(var(--b3)/var(--tw-bg-opacity)))}@supports (color: color-mix(in oklab,black,black)){.btn:hover{background-color:color-mix(in oklab,oklch(var(--btn-color, var(--b2)) / var(--tw-bg-opacity, 1)) 90%,black);border-color:color-mix(in oklab,oklch(var(--btn-color, var(--b2)) / var(--tw-border-opacity, 1)) 90%,black)}}@supports not (color: oklch(0% 0 0)){.btn:hover{background-color:var(--btn-color, var(--fallback-b2));border-color:var(--btn-color, var(--fallback-b2))}}.btn.glass:hover{--glass-opacity: 25%;--glass-border-opacity: 15%}.btn-ghost:hover{border-color:transparent}@supports (color: oklch(0% 0 0)){.btn-ghost:hover{background-color:var(--fallback-bc,oklch(var(--bc)/.2))}}.btn-outline:hover{--tw-border-opacity: 1;border-color:var(--fallback-bc,oklch(var(--bc)/var(--tw-border-opacity)));--tw-bg-opacity: 1;background-color:var(--fallback-bc,oklch(var(--bc)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-b1,oklch(var(--b1)/var(--tw-text-opacity)))}.btn-outline.btn-primary:hover{--tw-text-opacity: 1;color:var(--fallback-pc,oklch(var(--pc)/var(--tw-text-opacity)))}@supports (color: color-mix(in oklab,black,black)){.btn-outline.btn-primary:hover{background-color:color-mix(in oklab,var(--fallback-p,oklch(var(--p)/1)) 90%,black);border-color:color-mix(in oklab,var(--fallback-p,oklch(var(--p)/1)) 90%,black)}}.btn-outline.btn-secondary:hover{--tw-text-opacity: 1;color:var(--fallback-sc,oklch(var(--sc)/var(--tw-text-opacity)))}@supports (color: color-mix(in oklab,black,black)){.btn-outline.btn-secondary:hover{background-color:color-mix(in oklab,var(--fallback-s,oklch(var(--s)/1)) 90%,black);border-color:color-mix(in oklab,var(--fallback-s,oklch(var(--s)/1)) 90%,black)}}.btn-outline.btn-accent:hover{--tw-text-opacity: 1;color:var(--fallback-ac,oklch(var(--ac)/var(--tw-text-opacity)))}@supports (color: color-mix(in oklab,black,black)){.btn-outline.btn-accent:hover{background-color:color-mix(in oklab,var(--fallback-a,oklch(var(--a)/1)) 90%,black);border-color:color-mix(in oklab,var(--fallback-a,oklch(var(--a)/1)) 90%,black)}}.btn-outline.btn-success:hover{--tw-text-opacity: 1;color:var(--fallback-suc,oklch(var(--suc)/var(--tw-text-opacity)))}@supports (color: color-mix(in oklab,black,black)){.btn-outline.btn-success:hover{background-color:color-mix(in oklab,var(--fallback-su,oklch(var(--su)/1)) 90%,black);border-color:color-mix(in oklab,var(--fallback-su,oklch(var(--su)/1)) 90%,black)}}.btn-outline.btn-info:hover{--tw-text-opacity: 1;color:var(--fallback-inc,oklch(var(--inc)/var(--tw-text-opacity)))}@supports (color: color-mix(in oklab,black,black)){.btn-outline.btn-info:hover{background-color:color-mix(in oklab,var(--fallback-in,oklch(var(--in)/1)) 90%,black);border-color:color-mix(in oklab,var(--fallback-in,oklch(var(--in)/1)) 90%,black)}}.btn-outline.btn-warning:hover{--tw-text-opacity: 1;color:var(--fallback-wac,oklch(var(--wac)/var(--tw-text-opacity)))}@supports (color: color-mix(in oklab,black,black)){.btn-outline.btn-warning:hover{background-color:color-mix(in oklab,var(--fallback-wa,oklch(var(--wa)/1)) 90%,black);border-color:color-mix(in oklab,var(--fallback-wa,oklch(var(--wa)/1)) 90%,black)}}.btn-outline.btn-error:hover{--tw-text-opacity: 1;color:var(--fallback-erc,oklch(var(--erc)/var(--tw-text-opacity)))}@supports (color: color-mix(in oklab,black,black)){.btn-outline.btn-error:hover{background-color:color-mix(in oklab,var(--fallback-er,oklch(var(--er)/1)) 90%,black);border-color:color-mix(in oklab,var(--fallback-er,oklch(var(--er)/1)) 90%,black)}}.btn-disabled:hover,.btn[disabled]:hover,.btn:disabled:hover{--tw-border-opacity: 0;background-color:var(--fallback-n,oklch(var(--n)/var(--tw-bg-opacity)));--tw-bg-opacity: .2;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)));--tw-text-opacity: .2}@supports (color: color-mix(in oklab,black,black)){.btn:is(input[type=checkbox]:checked):hover,.btn:is(input[type=radio]:checked):hover{background-color:color-mix(in oklab,var(--fallback-p,oklch(var(--p)/1)) 90%,black);border-color:color-mix(in oklab,var(--fallback-p,oklch(var(--p)/1)) 90%,black)}}.dropdown.dropdown-hover:hover .dropdown-content{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}:where(.menu li:not(.menu-title,.disabled)>*:not(ul,details,.menu-title)):not(.active,.btn):hover,:where(.menu li:not(.menu-title,.disabled)>details>summary:not(.menu-title)):not(.active,.btn):hover{cursor:pointer;outline:2px solid transparent;outline-offset:2px}@supports (color: oklch(0% 0 0)){:where(.menu li:not(.menu-title,.disabled)>*:not(ul,details,.menu-title)):not(.active,.btn):hover,:where(.menu li:not(.menu-title,.disabled)>details>summary:not(.menu-title)):not(.active,.btn):hover{background-color:var(--fallback-bc,oklch(var(--bc)/.1))}}.tab[disabled],.tab[disabled]:hover{cursor:not-allowed;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)));--tw-text-opacity: .2}}.dropdown:is(details) summary::-webkit-details-marker{display:none}.form-control{display:flex;flex-direction:column}.label{display:flex;-webkit-user-select:none;-moz-user-select:none;user-select:none;align-items:center;justify-content:space-between;padding:.5rem .25rem}.indicator{position:relative;display:inline-flex;width:-moz-max-content;width:max-content}.indicator :where(.indicator-item){z-index:1;position:absolute;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));white-space:nowrap}.input{flex-shrink:1;-webkit-appearance:none;-moz-appearance:none;appearance:none;height:3rem;padding-left:1rem;padding-right:1rem;font-size:1rem;line-height:2;line-height:1.5rem;border-radius:var(--rounded-btn, .5rem);border-width:1px;border-color:transparent;--tw-bg-opacity: 1;background-color:var(--fallback-b1,oklch(var(--b1)/var(--tw-bg-opacity)))}.input[type=number]::-webkit-inner-spin-button,.input-md[type=number]::-webkit-inner-spin-button{margin-top:-1rem;margin-bottom:-1rem;margin-inline-end:-1rem}.input-sm[type=number]::-webkit-inner-spin-button{margin-top:0;margin-bottom:0;margin-inline-end:-0px}.join{display:inline-flex;align-items:stretch;border-radius:var(--rounded-btn, .5rem)}.join :where(.join-item){border-start-end-radius:0;border-end-end-radius:0;border-end-start-radius:0;border-start-start-radius:0}.join .join-item:not(:first-child):not(:last-child),.join *:not(:first-child):not(:last-child) .join-item{border-start-end-radius:0;border-end-end-radius:0;border-end-start-radius:0;border-start-start-radius:0}.join .join-item:first-child:not(:last-child),.join *:first-child:not(:last-child) .join-item{border-start-end-radius:0;border-end-end-radius:0}.join .dropdown .join-item:first-child:not(:last-child),.join *:first-child:not(:last-child) .dropdown .join-item{border-start-end-radius:inherit;border-end-end-radius:inherit}.join :where(.join-item:first-child:not(:last-child)),.join :where(*:first-child:not(:last-child) .join-item){border-end-start-radius:inherit;border-start-start-radius:inherit}.join .join-item:last-child:not(:first-child),.join *:last-child:not(:first-child) .join-item{border-end-start-radius:0;border-start-start-radius:0}.join :where(.join-item:last-child:not(:first-child)),.join :where(*:last-child:not(:first-child) .join-item){border-start-end-radius:inherit;border-end-end-radius:inherit}@supports not selector(:has(*)){:where(.join *){border-radius:inherit}}@supports selector(:has(*)){:where(.join *:has(.join-item)){border-radius:inherit}}.kbd{display:inline-flex;align-items:center;justify-content:center;border-radius:var(--rounded-btn, .5rem);border-width:1px;border-color:var(--fallback-bc,oklch(var(--bc)/var(--tw-border-opacity)));--tw-border-opacity: .2;--tw-bg-opacity: 1;background-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-bg-opacity)));padding-left:.5rem;padding-right:.5rem;--tw-text-opacity: 1;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)));border-bottom-width:2px;min-height:2.2em;min-width:2.2em}.link{cursor:pointer;text-decoration-line:underline}.link-hover{text-decoration-line:none}.menu{display:flex;flex-direction:column;flex-wrap:wrap;font-size:.875rem;line-height:1.25rem;padding:.5rem}.menu :where(li ul){position:relative;white-space:nowrap;margin-inline-start:1rem;padding-inline-start:.5rem}.menu :where(li:not(.menu-title)>*:not(ul,details,.menu-title,.btn)),.menu :where(li:not(.menu-title)>details>summary:not(.menu-title)){display:grid;grid-auto-flow:column;align-content:flex-start;align-items:center;gap:.5rem;grid-auto-columns:minmax(auto,max-content) auto max-content;-webkit-user-select:none;-moz-user-select:none;user-select:none}.menu li.disabled{cursor:not-allowed;-webkit-user-select:none;-moz-user-select:none;user-select:none;color:var(--fallback-bc,oklch(var(--bc)/.3))}.menu :where(li>.menu-dropdown:not(.menu-dropdown-show)){display:none}:where(.menu li){position:relative;display:flex;flex-shrink:0;flex-direction:column;flex-wrap:wrap;align-items:stretch}:where(.menu li) .badge{justify-self:end}.mockup-code{position:relative;overflow:hidden;overflow-x:auto;min-width:18rem;border-radius:var(--rounded-box, 1rem);--tw-bg-opacity: 1;background-color:var(--fallback-n,oklch(var(--n)/var(--tw-bg-opacity)));padding-top:1.25rem;padding-bottom:1.25rem;--tw-text-opacity: 1;color:var(--fallback-nc,oklch(var(--nc)/var(--tw-text-opacity)));direction:ltr}.mockup-code pre[data-prefix]:before{content:attr(data-prefix);display:inline-block;text-align:right;width:2rem;opacity:.5}.modal{pointer-events:none;position:fixed;inset:0;margin:0;display:grid;height:100%;max-height:none;width:100%;max-width:none;justify-items:center;padding:0;opacity:0;overscroll-behavior:contain;z-index:999;background-color:transparent;color:inherit;transition-duration:.2s;transition-timing-function:cubic-bezier(0,0,.2,1);transition-property:transform,opacity,visibility;overflow-y:hidden}:where(.modal){align-items:center}.modal-box{max-height:calc(100vh - 5em);grid-column-start:1;grid-row-start:1;width:91.666667%;max-width:32rem;--tw-scale-x: .9;--tw-scale-y: .9;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));border-bottom-right-radius:var(--rounded-box, 1rem);border-bottom-left-radius:var(--rounded-box, 1rem);border-top-left-radius:var(--rounded-box, 1rem);border-top-right-radius:var(--rounded-box, 1rem);--tw-bg-opacity: 1;background-color:var(--fallback-b1,oklch(var(--b1)/var(--tw-bg-opacity)));padding:1.5rem;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-timing-function:cubic-bezier(0,0,.2,1);transition-duration:.2s;box-shadow:#00000040 0 25px 50px -12px;overflow-y:auto;overscroll-behavior:contain}.modal-open,.modal:target,.modal-toggle:checked+.modal,.modal[open]{pointer-events:auto;visibility:visible;opacity:1}.modal-action{display:flex;margin-top:1.5rem;justify-content:flex-end}.modal-toggle{position:fixed;height:0px;width:0px;-webkit-appearance:none;-moz-appearance:none;appearance:none;opacity:0}:root:has(:is(.modal-open,.modal:target,.modal-toggle:checked+.modal,.modal[open])){overflow:hidden;scrollbar-gutter:stable}.navbar{display:flex;align-items:center;padding:var(--navbar-padding, .5rem);min-height:4rem;width:100%}:where(.navbar>*:not(script,style)){display:inline-flex;align-items:center}.radio{flex-shrink:0;--chkbg: var(--bc);height:1.5rem;width:1.5rem;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:9999px;border-width:1px;border-color:var(--fallback-bc,oklch(var(--bc)/var(--tw-border-opacity)));--tw-border-opacity: .2}.range{height:1.5rem;width:100%;cursor:pointer;-moz-appearance:none;appearance:none;-webkit-appearance:none;--range-shdw: var(--fallback-bc,oklch(var(--bc)/1));overflow:hidden;border-radius:var(--rounded-box, 1rem);background-color:transparent}.range:focus{outline:none}.select{display:inline-flex;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;height:3rem;min-height:3rem;padding-inline-start:1rem;padding-inline-end:2.5rem;font-size:.875rem;line-height:1.25rem;line-height:2;border-radius:var(--rounded-btn, .5rem);border-width:1px;border-color:transparent;--tw-bg-opacity: 1;background-color:var(--fallback-b1,oklch(var(--b1)/var(--tw-bg-opacity)));background-image:linear-gradient(45deg,transparent 50%,currentColor 50%),linear-gradient(135deg,currentColor 50%,transparent 50%);background-position:calc(100% - 20px) calc(1px + 50%),calc(100% - 16.1px) calc(1px + 50%);background-size:4px 4px,4px 4px;background-repeat:no-repeat}.select[multiple]{height:auto}.stats{display:inline-grid;border-radius:var(--rounded-box, 1rem);--tw-bg-opacity: 1;background-color:var(--fallback-b1,oklch(var(--b1)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)))}:where(.stats){grid-auto-flow:column;overflow-x:auto}.stat{display:inline-grid;width:100%;grid-template-columns:repeat(1,1fr);-moz-column-gap:1rem;column-gap:1rem;border-color:var(--fallback-bc,oklch(var(--bc)/var(--tw-border-opacity)));--tw-border-opacity: .1;padding:1rem 1.5rem}.stat-title{grid-column-start:1;white-space:nowrap;color:var(--fallback-bc,oklch(var(--bc)/.6))}.stat-value{grid-column-start:1;white-space:nowrap;font-size:2.25rem;line-height:2.5rem;font-weight:800}.stat-desc{grid-column-start:1;white-space:nowrap;font-size:.75rem;line-height:1rem;color:var(--fallback-bc,oklch(var(--bc)/.6))}.steps{display:inline-grid;grid-auto-flow:column;overflow:hidden;overflow-x:auto;counter-reset:step;grid-auto-columns:1fr}.steps .step{display:grid;grid-template-columns:repeat(1,minmax(0,1fr));grid-template-columns:auto;grid-template-rows:repeat(2,minmax(0,1fr));grid-template-rows:40px 1fr;place-items:center;text-align:center;min-width:4rem}.tabs{display:grid;align-items:flex-end}.tabs-lifted:has(.tab-content[class^=rounded-]) .tab:first-child:not(:is(.tab-active,[aria-selected=true])),.tabs-lifted:has(.tab-content[class*=\" rounded-\"]) .tab:first-child:not(:is(.tab-active,[aria-selected=true])){border-bottom-color:transparent}.tab{position:relative;grid-row-start:1;display:inline-flex;height:2rem;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;flex-wrap:wrap;align-items:center;justify-content:center;text-align:center;font-size:.875rem;line-height:1.25rem;line-height:2;--tab-padding: 1rem;--tw-text-opacity: .5;--tab-color: var(--fallback-bc,oklch(var(--bc)/1));--tab-bg: var(--fallback-b1,oklch(var(--b1)/1));--tab-border-color: var(--fallback-b3,oklch(var(--b3)/1));color:var(--tab-color);padding-inline-start:var(--tab-padding, 1rem);padding-inline-end:var(--tab-padding, 1rem)}.tab:is(input[type=radio]){width:auto;border-bottom-right-radius:0;border-bottom-left-radius:0}.tab:is(input[type=radio]):after{--tw-content: attr(aria-label);content:var(--tw-content)}.tab:not(input):empty{cursor:default;grid-column-start:span 9999}:checked+.tab-content:nth-child(2),:is(.tab-active,[aria-selected=true])+.tab-content:nth-child(2){border-start-start-radius:0px}input.tab:checked+.tab-content,:is(.tab-active,[aria-selected=true])+.tab-content{display:block}.table{position:relative;width:100%;border-radius:var(--rounded-box, 1rem);text-align:left;font-size:.875rem;line-height:1.25rem}.table :where(.table-pin-rows thead tr){position:sticky;top:0;z-index:1;--tw-bg-opacity: 1;background-color:var(--fallback-b1,oklch(var(--b1)/var(--tw-bg-opacity)))}.table :where(.table-pin-rows tfoot tr){position:sticky;bottom:0;z-index:1;--tw-bg-opacity: 1;background-color:var(--fallback-b1,oklch(var(--b1)/var(--tw-bg-opacity)))}.table :where(.table-pin-cols tr th){position:sticky;left:0;right:0;--tw-bg-opacity: 1;background-color:var(--fallback-b1,oklch(var(--b1)/var(--tw-bg-opacity)))}.table-zebra tbody tr:nth-child(2n) :where(.table-pin-cols tr th){--tw-bg-opacity: 1;background-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-bg-opacity)))}.textarea{min-height:3rem;flex-shrink:1;padding:.5rem 1rem;font-size:.875rem;line-height:1.25rem;line-height:2;border-radius:var(--rounded-btn, .5rem);border-width:1px;border-color:transparent;--tw-bg-opacity: 1;background-color:var(--fallback-b1,oklch(var(--b1)/var(--tw-bg-opacity)))}.toast{position:fixed;display:flex;min-width:-moz-fit-content;min-width:fit-content;flex-direction:column;white-space:nowrap;gap:.5rem;padding:1rem}.toggle{flex-shrink:0;--tglbg: var(--fallback-b1,oklch(var(--b1)/1));--handleoffset: 1.5rem;--handleoffsetcalculator: calc(var(--handleoffset) * -1);--togglehandleborder: 0 0;height:1.5rem;width:3rem;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:var(--rounded-badge, 1.9rem);border-width:1px;border-color:currentColor;background-color:currentColor;color:var(--fallback-bc,oklch(var(--bc)/.5));transition:background,box-shadow var(--animation-input, .2s) ease-out;box-shadow:var(--handleoffsetcalculator) 0 0 2px var(--tglbg) inset,0 0 0 2px var(--tglbg) inset,var(--togglehandleborder)}.alert-info{border-color:var(--fallback-in,oklch(var(--in)/.2));--tw-text-opacity: 1;color:var(--fallback-inc,oklch(var(--inc)/var(--tw-text-opacity)));--alert-bg: var(--fallback-in,oklch(var(--in)/1));--alert-bg-mix: var(--fallback-b1,oklch(var(--b1)/1))}.alert-success{border-color:var(--fallback-su,oklch(var(--su)/.2));--tw-text-opacity: 1;color:var(--fallback-suc,oklch(var(--suc)/var(--tw-text-opacity)));--alert-bg: var(--fallback-su,oklch(var(--su)/1));--alert-bg-mix: var(--fallback-b1,oklch(var(--b1)/1))}.alert-warning{border-color:var(--fallback-wa,oklch(var(--wa)/.2));--tw-text-opacity: 1;color:var(--fallback-wac,oklch(var(--wac)/var(--tw-text-opacity)));--alert-bg: var(--fallback-wa,oklch(var(--wa)/1));--alert-bg-mix: var(--fallback-b1,oklch(var(--b1)/1))}.alert-error{border-color:var(--fallback-er,oklch(var(--er)/.2));--tw-text-opacity: 1;color:var(--fallback-erc,oklch(var(--erc)/var(--tw-text-opacity)));--alert-bg: var(--fallback-er,oklch(var(--er)/1));--alert-bg-mix: var(--fallback-b1,oklch(var(--b1)/1))}.badge-neutral{--tw-border-opacity: 1;border-color:var(--fallback-n,oklch(var(--n)/var(--tw-border-opacity)));--tw-bg-opacity: 1;background-color:var(--fallback-n,oklch(var(--n)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-nc,oklch(var(--nc)/var(--tw-text-opacity)))}.badge-primary{--tw-border-opacity: 1;border-color:var(--fallback-p,oklch(var(--p)/var(--tw-border-opacity)));--tw-bg-opacity: 1;background-color:var(--fallback-p,oklch(var(--p)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-pc,oklch(var(--pc)/var(--tw-text-opacity)))}.badge-accent{--tw-border-opacity: 1;border-color:var(--fallback-a,oklch(var(--a)/var(--tw-border-opacity)));--tw-bg-opacity: 1;background-color:var(--fallback-a,oklch(var(--a)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-ac,oklch(var(--ac)/var(--tw-text-opacity)))}.badge-info{border-color:transparent;--tw-bg-opacity: 1;background-color:var(--fallback-in,oklch(var(--in)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-inc,oklch(var(--inc)/var(--tw-text-opacity)))}.badge-success{border-color:transparent;--tw-bg-opacity: 1;background-color:var(--fallback-su,oklch(var(--su)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-suc,oklch(var(--suc)/var(--tw-text-opacity)))}.badge-warning{border-color:transparent;--tw-bg-opacity: 1;background-color:var(--fallback-wa,oklch(var(--wa)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-wac,oklch(var(--wac)/var(--tw-text-opacity)))}.badge-error{border-color:transparent;--tw-bg-opacity: 1;background-color:var(--fallback-er,oklch(var(--er)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-erc,oklch(var(--erc)/var(--tw-text-opacity)))}.badge-ghost{--tw-border-opacity: 1;border-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-border-opacity)));--tw-bg-opacity: 1;background-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)))}.badge-outline{border-color:currentColor;--tw-border-opacity: .5;background-color:transparent;color:currentColor}.badge-outline.badge-neutral{--tw-text-opacity: 1;color:var(--fallback-n,oklch(var(--n)/var(--tw-text-opacity)))}.badge-outline.badge-primary{--tw-text-opacity: 1;color:var(--fallback-p,oklch(var(--p)/var(--tw-text-opacity)))}.badge-outline.badge-secondary{--tw-text-opacity: 1;color:var(--fallback-s,oklch(var(--s)/var(--tw-text-opacity)))}.badge-outline.badge-accent{--tw-text-opacity: 1;color:var(--fallback-a,oklch(var(--a)/var(--tw-text-opacity)))}.badge-outline.badge-info{--tw-text-opacity: 1;color:var(--fallback-in,oklch(var(--in)/var(--tw-text-opacity)))}.badge-outline.badge-success{--tw-text-opacity: 1;color:var(--fallback-su,oklch(var(--su)/var(--tw-text-opacity)))}.badge-outline.badge-warning{--tw-text-opacity: 1;color:var(--fallback-wa,oklch(var(--wa)/var(--tw-text-opacity)))}.badge-outline.badge-error{--tw-text-opacity: 1;color:var(--fallback-er,oklch(var(--er)/var(--tw-text-opacity)))}.btm-nav>*:where(.active){border-top-width:2px;--tw-bg-opacity: 1;background-color:var(--fallback-b1,oklch(var(--b1)/var(--tw-bg-opacity)))}.btm-nav>*.disabled,.btm-nav>*[disabled]{pointer-events:none;--tw-border-opacity: 0;background-color:var(--fallback-n,oklch(var(--n)/var(--tw-bg-opacity)));--tw-bg-opacity: .1;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)));--tw-text-opacity: .2}.btm-nav>* .label{font-size:1rem;line-height:1.5rem}.breadcrumbs>ul>li>a:focus,.breadcrumbs>ol>li>a:focus{outline:2px solid transparent;outline-offset:2px}.breadcrumbs>ul>li>a:focus-visible,.breadcrumbs>ol>li>a:focus-visible{outline:2px solid currentColor;outline-offset:2px}.breadcrumbs>ul>li+*:before,.breadcrumbs>ol>li+*:before{content:\"\";margin-left:.5rem;margin-right:.75rem;display:block;height:.375rem;width:.375rem;--tw-rotate: 45deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));opacity:.4;border-top:1px solid;border-right:1px solid;background-color:transparent}[dir=rtl] .breadcrumbs>ul>li+*:before,[dir=rtl] .breadcrumbs>ol>li+*:before{--tw-rotate: -135deg}@media (prefers-reduced-motion: no-preference){.btn{animation:button-pop var(--animation-btn, .25s) ease-out}}.btn:active:hover,.btn:active:focus{animation:button-pop 0s ease-out;transform:scale(var(--btn-focus-scale, .97))}@supports not (color: oklch(0% 0 0)){.btn{background-color:var(--btn-color, var(--fallback-b2));border-color:var(--btn-color, var(--fallback-b2))}.btn-primary{--btn-color: var(--fallback-p)}.btn-secondary{--btn-color: var(--fallback-s)}.btn-success{--btn-color: var(--fallback-su)}.btn-warning{--btn-color: var(--fallback-wa)}.btn-error{--btn-color: var(--fallback-er)}}@supports (color: color-mix(in oklab,black,black)){.btn-outline.btn-primary.btn-active{background-color:color-mix(in oklab,var(--fallback-p,oklch(var(--p)/1)) 90%,black);border-color:color-mix(in oklab,var(--fallback-p,oklch(var(--p)/1)) 90%,black)}.btn-outline.btn-secondary.btn-active{background-color:color-mix(in oklab,var(--fallback-s,oklch(var(--s)/1)) 90%,black);border-color:color-mix(in oklab,var(--fallback-s,oklch(var(--s)/1)) 90%,black)}.btn-outline.btn-accent.btn-active{background-color:color-mix(in oklab,var(--fallback-a,oklch(var(--a)/1)) 90%,black);border-color:color-mix(in oklab,var(--fallback-a,oklch(var(--a)/1)) 90%,black)}.btn-outline.btn-success.btn-active{background-color:color-mix(in oklab,var(--fallback-su,oklch(var(--su)/1)) 90%,black);border-color:color-mix(in oklab,var(--fallback-su,oklch(var(--su)/1)) 90%,black)}.btn-outline.btn-info.btn-active{background-color:color-mix(in oklab,var(--fallback-in,oklch(var(--in)/1)) 90%,black);border-color:color-mix(in oklab,var(--fallback-in,oklch(var(--in)/1)) 90%,black)}.btn-outline.btn-warning.btn-active{background-color:color-mix(in oklab,var(--fallback-wa,oklch(var(--wa)/1)) 90%,black);border-color:color-mix(in oklab,var(--fallback-wa,oklch(var(--wa)/1)) 90%,black)}.btn-outline.btn-error.btn-active{background-color:color-mix(in oklab,var(--fallback-er,oklch(var(--er)/1)) 90%,black);border-color:color-mix(in oklab,var(--fallback-er,oklch(var(--er)/1)) 90%,black)}}.btn:focus-visible{outline-style:solid;outline-width:2px;outline-offset:2px}.btn-primary{--tw-text-opacity: 1;color:var(--fallback-pc,oklch(var(--pc)/var(--tw-text-opacity)));outline-color:var(--fallback-p,oklch(var(--p)/1))}@supports (color: oklch(0% 0 0)){.btn-primary{--btn-color: var(--p)}.btn-secondary{--btn-color: var(--s)}.btn-success{--btn-color: var(--su)}.btn-warning{--btn-color: var(--wa)}.btn-error{--btn-color: var(--er)}}.btn-secondary{--tw-text-opacity: 1;color:var(--fallback-sc,oklch(var(--sc)/var(--tw-text-opacity)));outline-color:var(--fallback-s,oklch(var(--s)/1))}.btn-success{--tw-text-opacity: 1;color:var(--fallback-suc,oklch(var(--suc)/var(--tw-text-opacity)));outline-color:var(--fallback-su,oklch(var(--su)/1))}.btn-warning{--tw-text-opacity: 1;color:var(--fallback-wac,oklch(var(--wac)/var(--tw-text-opacity)));outline-color:var(--fallback-wa,oklch(var(--wa)/1))}.btn-error{--tw-text-opacity: 1;color:var(--fallback-erc,oklch(var(--erc)/var(--tw-text-opacity)));outline-color:var(--fallback-er,oklch(var(--er)/1))}.btn.glass{--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);outline-color:currentColor}.btn.glass.btn-active{--glass-opacity: 25%;--glass-border-opacity: 15%}.btn-ghost{border-width:1px;border-color:transparent;background-color:transparent;color:currentColor;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);outline-color:currentColor}.btn-ghost.btn-active{border-color:transparent;background-color:var(--fallback-bc,oklch(var(--bc)/.2))}.btn-outline{border-color:currentColor;background-color:transparent;--tw-text-opacity: 1;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)));--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.btn-outline.btn-active{--tw-border-opacity: 1;border-color:var(--fallback-bc,oklch(var(--bc)/var(--tw-border-opacity)));--tw-bg-opacity: 1;background-color:var(--fallback-bc,oklch(var(--bc)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-b1,oklch(var(--b1)/var(--tw-text-opacity)))}.btn-outline.btn-primary{--tw-text-opacity: 1;color:var(--fallback-p,oklch(var(--p)/var(--tw-text-opacity)))}.btn-outline.btn-primary.btn-active{--tw-text-opacity: 1;color:var(--fallback-pc,oklch(var(--pc)/var(--tw-text-opacity)))}.btn-outline.btn-secondary{--tw-text-opacity: 1;color:var(--fallback-s,oklch(var(--s)/var(--tw-text-opacity)))}.btn-outline.btn-secondary.btn-active{--tw-text-opacity: 1;color:var(--fallback-sc,oklch(var(--sc)/var(--tw-text-opacity)))}.btn-outline.btn-accent{--tw-text-opacity: 1;color:var(--fallback-a,oklch(var(--a)/var(--tw-text-opacity)))}.btn-outline.btn-accent.btn-active{--tw-text-opacity: 1;color:var(--fallback-ac,oklch(var(--ac)/var(--tw-text-opacity)))}.btn-outline.btn-success{--tw-text-opacity: 1;color:var(--fallback-su,oklch(var(--su)/var(--tw-text-opacity)))}.btn-outline.btn-success.btn-active{--tw-text-opacity: 1;color:var(--fallback-suc,oklch(var(--suc)/var(--tw-text-opacity)))}.btn-outline.btn-info{--tw-text-opacity: 1;color:var(--fallback-in,oklch(var(--in)/var(--tw-text-opacity)))}.btn-outline.btn-info.btn-active{--tw-text-opacity: 1;color:var(--fallback-inc,oklch(var(--inc)/var(--tw-text-opacity)))}.btn-outline.btn-warning{--tw-text-opacity: 1;color:var(--fallback-wa,oklch(var(--wa)/var(--tw-text-opacity)))}.btn-outline.btn-warning.btn-active{--tw-text-opacity: 1;color:var(--fallback-wac,oklch(var(--wac)/var(--tw-text-opacity)))}.btn-outline.btn-error{--tw-text-opacity: 1;color:var(--fallback-er,oklch(var(--er)/var(--tw-text-opacity)))}.btn-outline.btn-error.btn-active{--tw-text-opacity: 1;color:var(--fallback-erc,oklch(var(--erc)/var(--tw-text-opacity)))}.btn.btn-disabled,.btn[disabled],.btn:disabled{--tw-border-opacity: 0;background-color:var(--fallback-n,oklch(var(--n)/var(--tw-bg-opacity)));--tw-bg-opacity: .2;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)));--tw-text-opacity: .2}.btn:is(input[type=checkbox]:checked),.btn:is(input[type=radio]:checked){--tw-border-opacity: 1;border-color:var(--fallback-p,oklch(var(--p)/var(--tw-border-opacity)));--tw-bg-opacity: 1;background-color:var(--fallback-p,oklch(var(--p)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-pc,oklch(var(--pc)/var(--tw-text-opacity)))}.btn:is(input[type=checkbox]:checked):focus-visible,.btn:is(input[type=radio]:checked):focus-visible{outline-color:var(--fallback-p,oklch(var(--p)/1))}@keyframes button-pop{0%{transform:scale(var(--btn-focus-scale, .98))}40%{transform:scale(1.02)}to{transform:scale(1)}}.card :where(figure:first-child){overflow:hidden;border-start-start-radius:inherit;border-start-end-radius:inherit;border-end-start-radius:unset;border-end-end-radius:unset}.card :where(figure:last-child){overflow:hidden;border-start-start-radius:unset;border-start-end-radius:unset;border-end-start-radius:inherit;border-end-end-radius:inherit}.card:focus-visible{outline:2px solid currentColor;outline-offset:2px}.card.bordered{border-width:1px;--tw-border-opacity: 1;border-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-border-opacity)))}.card.compact .card-body{padding:1rem;font-size:.875rem;line-height:1.25rem}.card-title{display:flex;align-items:center;gap:.5rem;font-size:1.25rem;line-height:1.75rem;font-weight:600}.card.image-full :where(figure){overflow:hidden;border-radius:inherit}.checkbox:focus{box-shadow:none}.checkbox:focus-visible{outline-style:solid;outline-width:2px;outline-offset:2px;outline-color:var(--fallback-bc,oklch(var(--bc)/1))}.checkbox:disabled{border-width:0px;cursor:not-allowed;border-color:transparent;--tw-bg-opacity: 1;background-color:var(--fallback-bc,oklch(var(--bc)/var(--tw-bg-opacity)));opacity:.2}.checkbox:checked,.checkbox[aria-checked=true]{background-repeat:no-repeat;animation:checkmark var(--animation-input, .2s) ease-out;background-color:var(--chkbg);background-image:linear-gradient(-45deg,transparent 65%,var(--chkbg) 65.99%),linear-gradient(45deg,transparent 75%,var(--chkbg) 75.99%),linear-gradient(-45deg,var(--chkbg) 40%,transparent 40.99%),linear-gradient(45deg,var(--chkbg) 30%,var(--chkfg) 30.99%,var(--chkfg) 40%,transparent 40.99%),linear-gradient(-45deg,var(--chkfg) 50%,var(--chkbg) 50.99%)}.checkbox:indeterminate{--tw-bg-opacity: 1;background-color:var(--fallback-bc,oklch(var(--bc)/var(--tw-bg-opacity)));background-repeat:no-repeat;animation:checkmark var(--animation-input, .2s) ease-out;background-image:linear-gradient(90deg,transparent 80%,var(--chkbg) 80%),linear-gradient(-90deg,transparent 80%,var(--chkbg) 80%),linear-gradient(0deg,var(--chkbg) 43%,var(--chkfg) 43%,var(--chkfg) 57%,var(--chkbg) 57%)}@keyframes checkmark{0%{background-position-y:5px}50%{background-position-y:-2px}to{background-position-y:0}}details.collapse{width:100%}details.collapse summary{position:relative;display:block;outline:2px solid transparent;outline-offset:2px}details.collapse summary::-webkit-details-marker{display:none}.collapse:focus-visible{outline-style:solid;outline-width:2px;outline-offset:2px;outline-color:var(--fallback-bc,oklch(var(--bc)/1))}.collapse:has(.collapse-title:focus-visible),.collapse:has(>input[type=checkbox]:focus-visible),.collapse:has(>input[type=radio]:focus-visible){outline-style:solid;outline-width:2px;outline-offset:2px;outline-color:var(--fallback-bc,oklch(var(--bc)/1))}.collapse-arrow>.collapse-title:after{position:absolute;display:block;height:.5rem;width:.5rem;--tw-translate-y: -100%;--tw-rotate: 45deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-timing-function:cubic-bezier(0,0,.2,1);transition-duration:.15s;transition-duration:.2s;top:1.9rem;inset-inline-end:1.4rem;content:\"\";transform-origin:75% 75%;box-shadow:2px 2px;pointer-events:none}.collapse-plus>.collapse-title:after{position:absolute;display:block;height:.5rem;width:.5rem;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-timing-function:cubic-bezier(0,0,.2,1);transition-duration:.3s;top:.9rem;inset-inline-end:1.4rem;content:\"+\";pointer-events:none}.collapse:not(.collapse-open):not(.collapse-close)>input[type=checkbox],.collapse:not(.collapse-open):not(.collapse-close)>input[type=radio]:not(:checked),.collapse:not(.collapse-open):not(.collapse-close)>.collapse-title{cursor:pointer}.collapse:focus:not(.collapse-open):not(.collapse-close):not(.collapse[open])>.collapse-title{cursor:unset}.collapse-title{position:relative}.collapse-title,:where(.collapse>input[type=checkbox]),:where(.collapse>input[type=radio]){padding:1rem;padding-inline-end:3rem;min-height:3.75rem;transition:background-color .2s ease-out}.collapse[open]>:where(.collapse-content),.collapse-open>:where(.collapse-content),.collapse:focus:not(.collapse-close)>:where(.collapse-content),.collapse:not(.collapse-close)>:where(input[type=checkbox]:checked~.collapse-content),.collapse:not(.collapse-close)>:where(input[type=radio]:checked~.collapse-content){padding-bottom:1rem;transition:padding .2s ease-out,background-color .2s ease-out}.collapse[open].collapse-arrow>.collapse-title:after,.collapse-open.collapse-arrow>.collapse-title:after,.collapse-arrow:focus:not(.collapse-close)>.collapse-title:after,.collapse-arrow:not(.collapse-close)>input[type=checkbox]:checked~.collapse-title:after,.collapse-arrow:not(.collapse-close)>input[type=radio]:checked~.collapse-title:after{--tw-translate-y: -50%;--tw-rotate: 225deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.collapse[open].collapse-plus>.collapse-title:after,.collapse-open.collapse-plus>.collapse-title:after,.collapse-plus:focus:not(.collapse-close)>.collapse-title:after,.collapse-plus:not(.collapse-close)>input[type=checkbox]:checked~.collapse-title:after,.collapse-plus:not(.collapse-close)>input[type=radio]:checked~.collapse-title:after{content:\"\u2212\"}.divider:not(:empty){gap:1rem}.dropdown.dropdown-open .dropdown-content,.dropdown:focus .dropdown-content,.dropdown:focus-within .dropdown-content{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.label-text{font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)))}.label-text-alt{font-size:.75rem;line-height:1rem;--tw-text-opacity: 1;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)))}.input input{--tw-bg-opacity: 1;background-color:var(--fallback-p,oklch(var(--p)/var(--tw-bg-opacity)));background-color:transparent}.input input:focus{outline:2px solid transparent;outline-offset:2px}.input[list]::-webkit-calendar-picker-indicator{line-height:1em}.input-bordered{border-color:var(--fallback-bc,oklch(var(--bc)/.2))}.input:focus,.input:focus-within{box-shadow:none;border-color:var(--fallback-bc,oklch(var(--bc)/.2));outline-style:solid;outline-width:2px;outline-offset:2px;outline-color:var(--fallback-bc,oklch(var(--bc)/.2))}.input-error{--tw-border-opacity: 1;border-color:var(--fallback-er,oklch(var(--er)/var(--tw-border-opacity)))}.input-error:focus,.input-error:focus-within{--tw-border-opacity: 1;border-color:var(--fallback-er,oklch(var(--er)/var(--tw-border-opacity)));outline-color:var(--fallback-er,oklch(var(--er)/1))}.input:has(>input[disabled]),.input-disabled,.input:disabled,.input[disabled]{cursor:not-allowed;--tw-border-opacity: 1;border-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-border-opacity)));--tw-bg-opacity: 1;background-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-bg-opacity)));color:var(--fallback-bc,oklch(var(--bc)/.4))}.input:has(>input[disabled])::-moz-placeholder,.input-disabled::-moz-placeholder,.input:disabled::-moz-placeholder,.input[disabled]::-moz-placeholder{color:var(--fallback-bc,oklch(var(--bc)/var(--tw-placeholder-opacity)));--tw-placeholder-opacity: .2}.input:has(>input[disabled])::placeholder,.input-disabled::placeholder,.input:disabled::placeholder,.input[disabled]::placeholder{color:var(--fallback-bc,oklch(var(--bc)/var(--tw-placeholder-opacity)));--tw-placeholder-opacity: .2}.input:has(>input[disabled])>input[disabled]{cursor:not-allowed}.input::-webkit-date-and-time-value{text-align:inherit}.join>:where(*:not(:first-child)){margin-top:0;margin-bottom:0;margin-inline-start:-1px}.join>:where(*:not(:first-child)):is(.btn){margin-inline-start:calc(var(--border-btn) * -1)}.join-item:focus{isolation:isolate}.link:focus{outline:2px solid transparent;outline-offset:2px}.link:focus-visible{outline:2px solid currentColor;outline-offset:2px}.\\!loading{pointer-events:none!important;display:inline-block!important;aspect-ratio:1 / 1!important;width:1.5rem!important;background-color:currentColor!important;-webkit-mask-size:100%!important;mask-size:100%!important;-webkit-mask-repeat:no-repeat!important;mask-repeat:no-repeat!important;-webkit-mask-position:center!important;mask-position:center!important;-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg width='24' height='24' stroke='black' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg transform-origin='center'%3E%3Ccircle cx='12' cy='12' r='9.5' fill='none' stroke-width='3' stroke-linecap='round'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 12 12' to='360 12 12' dur='2s' repeatCount='indefinite'/%3E%3Canimate attributeName='stroke-dasharray' values='0,150;42,150;42,150' keyTimes='0;0.475;1' dur='1.5s' repeatCount='indefinite'/%3E%3Canimate attributeName='stroke-dashoffset' values='0;-16;-59' keyTimes='0;0.475;1' dur='1.5s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/g%3E%3C/svg%3E\")!important;mask-image:url(\"data:image/svg+xml,%3Csvg width='24' height='24' stroke='black' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg transform-origin='center'%3E%3Ccircle cx='12' cy='12' r='9.5' fill='none' stroke-width='3' stroke-linecap='round'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 12 12' to='360 12 12' dur='2s' repeatCount='indefinite'/%3E%3Canimate attributeName='stroke-dasharray' values='0,150;42,150;42,150' keyTimes='0;0.475;1' dur='1.5s' repeatCount='indefinite'/%3E%3Canimate attributeName='stroke-dashoffset' values='0;-16;-59' keyTimes='0;0.475;1' dur='1.5s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/g%3E%3C/svg%3E\")!important}.loading{pointer-events:none;display:inline-block;aspect-ratio:1 / 1;width:1.5rem;background-color:currentColor;-webkit-mask-size:100%;mask-size:100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:center;mask-position:center;-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg width='24' height='24' stroke='black' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg transform-origin='center'%3E%3Ccircle cx='12' cy='12' r='9.5' fill='none' stroke-width='3' stroke-linecap='round'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 12 12' to='360 12 12' dur='2s' repeatCount='indefinite'/%3E%3Canimate attributeName='stroke-dasharray' values='0,150;42,150;42,150' keyTimes='0;0.475;1' dur='1.5s' repeatCount='indefinite'/%3E%3Canimate attributeName='stroke-dashoffset' values='0;-16;-59' keyTimes='0;0.475;1' dur='1.5s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg width='24' height='24' stroke='black' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg transform-origin='center'%3E%3Ccircle cx='12' cy='12' r='9.5' fill='none' stroke-width='3' stroke-linecap='round'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 12 12' to='360 12 12' dur='2s' repeatCount='indefinite'/%3E%3Canimate attributeName='stroke-dasharray' values='0,150;42,150;42,150' keyTimes='0;0.475;1' dur='1.5s' repeatCount='indefinite'/%3E%3Canimate attributeName='stroke-dashoffset' values='0;-16;-59' keyTimes='0;0.475;1' dur='1.5s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/g%3E%3C/svg%3E\")}.loading-spinner{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg width='24' height='24' stroke='black' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg transform-origin='center'%3E%3Ccircle cx='12' cy='12' r='9.5' fill='none' stroke-width='3' stroke-linecap='round'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 12 12' to='360 12 12' dur='2s' repeatCount='indefinite'/%3E%3Canimate attributeName='stroke-dasharray' values='0,150;42,150;42,150' keyTimes='0;0.475;1' dur='1.5s' repeatCount='indefinite'/%3E%3Canimate attributeName='stroke-dashoffset' values='0;-16;-59' keyTimes='0;0.475;1' dur='1.5s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg width='24' height='24' stroke='black' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg transform-origin='center'%3E%3Ccircle cx='12' cy='12' r='9.5' fill='none' stroke-width='3' stroke-linecap='round'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 12 12' to='360 12 12' dur='2s' repeatCount='indefinite'/%3E%3Canimate attributeName='stroke-dasharray' values='0,150;42,150;42,150' keyTimes='0;0.475;1' dur='1.5s' repeatCount='indefinite'/%3E%3Canimate attributeName='stroke-dashoffset' values='0;-16;-59' keyTimes='0;0.475;1' dur='1.5s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/g%3E%3C/svg%3E\")}.loading-xs{width:1rem}.loading-sm{width:1.25rem}.loading-lg{width:2.5rem}:where(.menu li:empty){--tw-bg-opacity: 1;background-color:var(--fallback-bc,oklch(var(--bc)/var(--tw-bg-opacity)));opacity:.1;margin:.5rem 1rem;height:1px}.menu :where(li ul):before{position:absolute;bottom:.75rem;inset-inline-start:0px;top:.75rem;width:1px;--tw-bg-opacity: 1;background-color:var(--fallback-bc,oklch(var(--bc)/var(--tw-bg-opacity)));opacity:.1;content:\"\"}.menu :where(li:not(.menu-title)>*:not(ul,details,.menu-title,.btn)),.menu :where(li:not(.menu-title)>details>summary:not(.menu-title)){border-radius:var(--rounded-btn, .5rem);padding:.5rem 1rem;text-align:start;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-timing-function:cubic-bezier(0,0,.2,1);transition-duration:.2s;text-wrap:balance}:where(.menu li:not(.menu-title,.disabled)>*:not(ul,details,.menu-title)):not(summary,.active,.btn).focus,:where(.menu li:not(.menu-title,.disabled)>*:not(ul,details,.menu-title)):not(summary,.active,.btn):focus,:where(.menu li:not(.menu-title,.disabled)>*:not(ul,details,.menu-title)):is(summary):not(.active,.btn):focus-visible,:where(.menu li:not(.menu-title,.disabled)>details>summary:not(.menu-title)):not(summary,.active,.btn).focus,:where(.menu li:not(.menu-title,.disabled)>details>summary:not(.menu-title)):not(summary,.active,.btn):focus,:where(.menu li:not(.menu-title,.disabled)>details>summary:not(.menu-title)):is(summary):not(.active,.btn):focus-visible{cursor:pointer;background-color:var(--fallback-bc,oklch(var(--bc)/.1));--tw-text-opacity: 1;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)));outline:2px solid transparent;outline-offset:2px}.menu li>*:not(ul,.menu-title,details,.btn):active,.menu li>*:not(ul,.menu-title,details,.btn).active,.menu li>details>summary:active{--tw-bg-opacity: 1;background-color:var(--fallback-n,oklch(var(--n)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-nc,oklch(var(--nc)/var(--tw-text-opacity)))}.menu :where(li>details>summary)::-webkit-details-marker{display:none}.menu :where(li>details>summary):after,.menu :where(li>.menu-dropdown-toggle):after{justify-self:end;display:block;margin-top:-.5rem;height:.5rem;width:.5rem;transform:rotate(45deg);transition-property:transform,margin-top;transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1);content:\"\";transform-origin:75% 75%;box-shadow:2px 2px;pointer-events:none}.menu :where(li>details[open]>summary):after,.menu :where(li>.menu-dropdown-toggle.menu-dropdown-show):after{transform:rotate(225deg);margin-top:0}.mockup-code:before{content:\"\";margin-bottom:1rem;display:block;height:.75rem;width:.75rem;border-radius:9999px;opacity:.3;box-shadow:1.4em 0,2.8em 0,4.2em 0}.mockup-code pre{padding-right:1.25rem}.mockup-code pre:before{content:\"\";margin-right:2ch}.mockup-phone .display{overflow:hidden;border-radius:40px;margin-top:-25px}.mockup-browser .mockup-browser-toolbar .input{position:relative;margin-left:auto;margin-right:auto;display:block;height:1.75rem;width:24rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;--tw-bg-opacity: 1;background-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-bg-opacity)));padding-left:2rem;direction:ltr}.mockup-browser .mockup-browser-toolbar .input:before{content:\"\";position:absolute;left:.5rem;top:50%;aspect-ratio:1 / 1;height:.75rem;--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));border-radius:9999px;border-width:2px;border-color:currentColor;opacity:.6}.mockup-browser .mockup-browser-toolbar .input:after{content:\"\";position:absolute;left:1.25rem;top:50%;height:.5rem;--tw-translate-y: 25%;--tw-rotate: -45deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));border-radius:9999px;border-width:1px;border-color:currentColor;opacity:.6}.modal:not(dialog:not(.modal-open)),.modal::backdrop{background-color:#0006;animation:modal-pop .2s ease-out}.modal-backdrop{z-index:-1;grid-column-start:1;grid-row-start:1;display:grid;align-self:stretch;justify-self:stretch;color:transparent}.modal-open .modal-box,.modal-toggle:checked+.modal .modal-box,.modal:target .modal-box,.modal[open] .modal-box{--tw-translate-y: 0px;--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.modal-action>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.modal-action:where([dir=rtl],[dir=rtl] *)>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 1}@keyframes modal-pop{0%{opacity:0}}@keyframes progress-loading{50%{background-position-x:-115%}}.radio:focus{box-shadow:none}.radio:focus-visible{outline-style:solid;outline-width:2px;outline-offset:2px;outline-color:var(--fallback-bc,oklch(var(--bc)/1))}.radio:checked,.radio[aria-checked=true]{--tw-bg-opacity: 1;background-color:var(--fallback-bc,oklch(var(--bc)/var(--tw-bg-opacity)));background-image:none;animation:radiomark var(--animation-input, .2s) ease-out;box-shadow:0 0 0 4px var(--fallback-b1,oklch(var(--b1)/1)) inset,0 0 0 4px var(--fallback-b1,oklch(var(--b1)/1)) inset}.radio:disabled{cursor:not-allowed;opacity:.2}@keyframes radiomark{0%{box-shadow:0 0 0 12px var(--fallback-b1,oklch(var(--b1)/1)) inset,0 0 0 12px var(--fallback-b1,oklch(var(--b1)/1)) inset}50%{box-shadow:0 0 0 3px var(--fallback-b1,oklch(var(--b1)/1)) inset,0 0 0 3px var(--fallback-b1,oklch(var(--b1)/1)) inset}to{box-shadow:0 0 0 4px var(--fallback-b1,oklch(var(--b1)/1)) inset,0 0 0 4px var(--fallback-b1,oklch(var(--b1)/1)) inset}}.range:focus-visible::-webkit-slider-thumb{--focus-shadow: 0 0 0 6px var(--fallback-b1,oklch(var(--b1)/1)) inset, 0 0 0 2rem var(--range-shdw) inset}.range:focus-visible::-moz-range-thumb{--focus-shadow: 0 0 0 6px var(--fallback-b1,oklch(var(--b1)/1)) inset, 0 0 0 2rem var(--range-shdw) inset}.range::-webkit-slider-runnable-track{height:.5rem;width:100%;border-radius:var(--rounded-box, 1rem);background-color:var(--fallback-bc,oklch(var(--bc)/.1))}.range::-moz-range-track{height:.5rem;width:100%;border-radius:var(--rounded-box, 1rem);background-color:var(--fallback-bc,oklch(var(--bc)/.1))}.range::-webkit-slider-thumb{position:relative;height:1.5rem;width:1.5rem;border-radius:var(--rounded-box, 1rem);border-style:none;--tw-bg-opacity: 1;background-color:var(--fallback-b1,oklch(var(--b1)/var(--tw-bg-opacity)));appearance:none;-webkit-appearance:none;top:50%;color:var(--range-shdw);transform:translateY(-50%);--filler-size: 100rem;--filler-offset: .6rem;box-shadow:0 0 0 3px var(--range-shdw) inset,var(--focus-shadow, 0 0),calc(var(--filler-size) * -1 - var(--filler-offset)) 0 0 var(--filler-size)}.range::-moz-range-thumb{position:relative;height:1.5rem;width:1.5rem;border-radius:var(--rounded-box, 1rem);border-style:none;--tw-bg-opacity: 1;background-color:var(--fallback-b1,oklch(var(--b1)/var(--tw-bg-opacity)));top:50%;color:var(--range-shdw);--filler-size: 100rem;--filler-offset: .5rem;box-shadow:0 0 0 3px var(--range-shdw) inset,var(--focus-shadow, 0 0),calc(var(--filler-size) * -1 - var(--filler-offset)) 0 0 var(--filler-size)}@keyframes rating-pop{0%{transform:translateY(-.125em)}40%{transform:translateY(-.125em)}to{transform:translateY(0)}}.select-bordered{border-color:var(--fallback-bc,oklch(var(--bc)/.2))}.select:focus{box-shadow:none;border-color:var(--fallback-bc,oklch(var(--bc)/.2));outline-style:solid;outline-width:2px;outline-offset:2px;outline-color:var(--fallback-bc,oklch(var(--bc)/.2))}.select-disabled,.select:disabled,.select[disabled]{cursor:not-allowed;--tw-border-opacity: 1;border-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-border-opacity)));--tw-bg-opacity: 1;background-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-bg-opacity)));color:var(--fallback-bc,oklch(var(--bc)/.4))}.select-disabled::-moz-placeholder,.select:disabled::-moz-placeholder,.select[disabled]::-moz-placeholder{color:var(--fallback-bc,oklch(var(--bc)/var(--tw-placeholder-opacity)));--tw-placeholder-opacity: .2}.select-disabled::placeholder,.select:disabled::placeholder,.select[disabled]::placeholder{color:var(--fallback-bc,oklch(var(--bc)/var(--tw-placeholder-opacity)));--tw-placeholder-opacity: .2}.select-multiple,.select[multiple],.select[size].select:not([size=\"1\"]){background-image:none;padding-right:1rem}[dir=rtl] .select{background-position:calc(0% + 12px) calc(1px + 50%),calc(0% + 16px) calc(1px + 50%)}@keyframes skeleton{0%{background-position:150%}to{background-position:-50%}}:where(.stats)>:not([hidden])~:not([hidden]){--tw-divide-x-reverse: 0;border-right-width:calc(1px * var(--tw-divide-x-reverse));border-left-width:calc(1px * calc(1 - var(--tw-divide-x-reverse)));--tw-divide-y-reverse: 0;border-top-width:calc(0px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(0px * var(--tw-divide-y-reverse))}[dir=rtl] .stats>*:not([hidden])~*:not([hidden]){--tw-divide-x-reverse: 1}.steps .step:before{top:0;grid-column-start:1;grid-row-start:1;height:.5rem;width:100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));--tw-bg-opacity: 1;background-color:var(--fallback-b3,oklch(var(--b3)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)));content:\"\";margin-inline-start:-100%}.steps .step:after{content:counter(step);counter-increment:step;z-index:1;position:relative;grid-column-start:1;grid-row-start:1;display:grid;height:2rem;width:2rem;place-items:center;place-self:center;border-radius:9999px;--tw-bg-opacity: 1;background-color:var(--fallback-b3,oklch(var(--b3)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)))}.steps .step:first-child:before{content:none}.steps .step[data-content]:after{content:attr(data-content)}.steps .step-neutral+.step-neutral:before,.steps .step-neutral:after{--tw-bg-opacity: 1;background-color:var(--fallback-n,oklch(var(--n)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-nc,oklch(var(--nc)/var(--tw-text-opacity)))}.steps .step-primary+.step-primary:before,.steps .step-primary:after{--tw-bg-opacity: 1;background-color:var(--fallback-p,oklch(var(--p)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-pc,oklch(var(--pc)/var(--tw-text-opacity)))}.steps .step-secondary+.step-secondary:before,.steps .step-secondary:after{--tw-bg-opacity: 1;background-color:var(--fallback-s,oklch(var(--s)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-sc,oklch(var(--sc)/var(--tw-text-opacity)))}.steps .step-accent+.step-accent:before,.steps .step-accent:after{--tw-bg-opacity: 1;background-color:var(--fallback-a,oklch(var(--a)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-ac,oklch(var(--ac)/var(--tw-text-opacity)))}.steps .step-info+.step-info:before{--tw-bg-opacity: 1;background-color:var(--fallback-in,oklch(var(--in)/var(--tw-bg-opacity)))}.steps .step-info:after{--tw-bg-opacity: 1;background-color:var(--fallback-in,oklch(var(--in)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-inc,oklch(var(--inc)/var(--tw-text-opacity)))}.steps .step-success+.step-success:before{--tw-bg-opacity: 1;background-color:var(--fallback-su,oklch(var(--su)/var(--tw-bg-opacity)))}.steps .step-success:after{--tw-bg-opacity: 1;background-color:var(--fallback-su,oklch(var(--su)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-suc,oklch(var(--suc)/var(--tw-text-opacity)))}.steps .step-warning+.step-warning:before{--tw-bg-opacity: 1;background-color:var(--fallback-wa,oklch(var(--wa)/var(--tw-bg-opacity)))}.steps .step-warning:after{--tw-bg-opacity: 1;background-color:var(--fallback-wa,oklch(var(--wa)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-wac,oklch(var(--wac)/var(--tw-text-opacity)))}.steps .step-error+.step-error:before{--tw-bg-opacity: 1;background-color:var(--fallback-er,oklch(var(--er)/var(--tw-bg-opacity)))}.steps .step-error:after{--tw-bg-opacity: 1;background-color:var(--fallback-er,oklch(var(--er)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-erc,oklch(var(--erc)/var(--tw-text-opacity)))}.tabs-lifted>.tab:focus-visible{border-end-end-radius:0;border-end-start-radius:0}.tab:is(.tab-active,[aria-selected=true]):not(.tab-disabled):not([disabled]),.tab:is(input:checked){border-color:var(--fallback-bc,oklch(var(--bc)/var(--tw-border-opacity)));--tw-border-opacity: 1;--tw-text-opacity: 1}.tab:focus{outline:2px solid transparent;outline-offset:2px}.tab:focus-visible{outline:2px solid currentColor;outline-offset:-5px}.tab-disabled,.tab[disabled]{cursor:not-allowed;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)));--tw-text-opacity: .2}.tabs-bordered>.tab{border-color:var(--fallback-bc,oklch(var(--bc)/var(--tw-border-opacity)));--tw-border-opacity: .2;border-style:solid;border-bottom-width:calc(var(--tab-border, 1px) + 1px)}.tabs-lifted>.tab{border:var(--tab-border, 1px) solid transparent;border-width:0 0 var(--tab-border, 1px) 0;border-start-start-radius:var(--tab-radius, .5rem);border-start-end-radius:var(--tab-radius, .5rem);border-bottom-color:var(--tab-border-color);padding-inline-start:var(--tab-padding, 1rem);padding-inline-end:var(--tab-padding, 1rem);padding-top:var(--tab-border, 1px)}.tabs-lifted>.tab:is(.tab-active,[aria-selected=true]):not(.tab-disabled):not([disabled]),.tabs-lifted>.tab:is(input:checked){background-color:var(--tab-bg);border-width:var(--tab-border, 1px) var(--tab-border, 1px) 0 var(--tab-border, 1px);border-inline-start-color:var(--tab-border-color);border-inline-end-color:var(--tab-border-color);border-top-color:var(--tab-border-color);padding-inline-start:calc(var(--tab-padding, 1rem) - var(--tab-border, 1px));padding-inline-end:calc(var(--tab-padding, 1rem) - var(--tab-border, 1px));padding-bottom:var(--tab-border, 1px);padding-top:0}.tabs-lifted>.tab:is(.tab-active,[aria-selected=true]):not(.tab-disabled):not([disabled]):before,.tabs-lifted>.tab:is(input:checked):before{z-index:1;content:\"\";display:block;position:absolute;width:calc(100% + var(--tab-radius, .5rem) * 2);height:var(--tab-radius, .5rem);bottom:0;background-size:var(--tab-radius, .5rem);background-position:top left,top right;background-repeat:no-repeat;--tab-grad: calc(69% - var(--tab-border, 1px));--radius-start: radial-gradient( circle at top left, transparent var(--tab-grad), var(--tab-border-color) calc(var(--tab-grad) + .25px), var(--tab-border-color) calc(var(--tab-grad) + var(--tab-border, 1px)), var(--tab-bg) calc(var(--tab-grad) + var(--tab-border, 1px) + .25px) );--radius-end: radial-gradient( circle at top right, transparent var(--tab-grad), var(--tab-border-color) calc(var(--tab-grad) + .25px), var(--tab-border-color) calc(var(--tab-grad) + var(--tab-border, 1px)), var(--tab-bg) calc(var(--tab-grad) + var(--tab-border, 1px) + .25px) );background-image:var(--radius-start),var(--radius-end)}.tabs-lifted>.tab:is(.tab-active,[aria-selected=true]):not(.tab-disabled):not([disabled]):first-child:before,.tabs-lifted>.tab:is(input:checked):first-child:before{background-image:var(--radius-end);background-position:top right}[dir=rtl] .tabs-lifted>.tab:is(.tab-active,[aria-selected=true]):not(.tab-disabled):not([disabled]):first-child:before,[dir=rtl] .tabs-lifted>.tab:is(input:checked):first-child:before{background-image:var(--radius-start);background-position:top left}.tabs-lifted>.tab:is(.tab-active,[aria-selected=true]):not(.tab-disabled):not([disabled]):last-child:before,.tabs-lifted>.tab:is(input:checked):last-child:before{background-image:var(--radius-start);background-position:top left}[dir=rtl] .tabs-lifted>.tab:is(.tab-active,[aria-selected=true]):not(.tab-disabled):not([disabled]):last-child:before,[dir=rtl] .tabs-lifted>.tab:is(input:checked):last-child:before{background-image:var(--radius-end);background-position:top right}.tabs-lifted>:is(.tab-active,[aria-selected=true]):not(.tab-disabled):not([disabled])+.tabs-lifted :is(.tab-active,[aria-selected=true]):not(.tab-disabled):not([disabled]):before,.tabs-lifted>.tab:is(input:checked)+.tabs-lifted .tab:is(input:checked):before{background-image:var(--radius-end);background-position:top right}.tabs-boxed{border-radius:var(--rounded-btn, .5rem);--tw-bg-opacity: 1;background-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-bg-opacity)));padding:.25rem}.tabs-boxed .tab{border-radius:var(--rounded-btn, .5rem)}.tabs-boxed :is(.tab-active,[aria-selected=true]):not(.tab-disabled):not([disabled]),.tabs-boxed :is(input:checked){--tw-bg-opacity: 1;background-color:var(--fallback-p,oklch(var(--p)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-pc,oklch(var(--pc)/var(--tw-text-opacity)))}.table:where([dir=rtl],[dir=rtl] *){text-align:right}.table :where(th,td){padding:.75rem 1rem;vertical-align:middle}.table tr.active,.table tr.active:nth-child(2n),.table-zebra tbody tr:nth-child(2n){--tw-bg-opacity: 1;background-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-bg-opacity)))}.table-zebra tr.active,.table-zebra tr.active:nth-child(2n),.table-zebra-zebra tbody tr:nth-child(2n){--tw-bg-opacity: 1;background-color:var(--fallback-b3,oklch(var(--b3)/var(--tw-bg-opacity)))}.table :where(thead tr,tbody tr:not(:last-child),tbody tr:first-child:last-child){border-bottom-width:1px;--tw-border-opacity: 1;border-bottom-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-border-opacity)))}.table :where(thead,tfoot){white-space:nowrap;font-size:.75rem;line-height:1rem;font-weight:700;color:var(--fallback-bc,oklch(var(--bc)/.6))}.table :where(tfoot){border-top-width:1px;--tw-border-opacity: 1;border-top-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-border-opacity)))}.textarea-bordered{border-color:var(--fallback-bc,oklch(var(--bc)/.2))}.textarea:focus{box-shadow:none;border-color:var(--fallback-bc,oklch(var(--bc)/.2));outline-style:solid;outline-width:2px;outline-offset:2px;outline-color:var(--fallback-bc,oklch(var(--bc)/.2))}.textarea-disabled,.textarea:disabled,.textarea[disabled]{cursor:not-allowed;--tw-border-opacity: 1;border-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-border-opacity)));--tw-bg-opacity: 1;background-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-bg-opacity)));color:var(--fallback-bc,oklch(var(--bc)/.4))}.textarea-disabled::-moz-placeholder,.textarea:disabled::-moz-placeholder,.textarea[disabled]::-moz-placeholder{color:var(--fallback-bc,oklch(var(--bc)/var(--tw-placeholder-opacity)));--tw-placeholder-opacity: .2}.textarea-disabled::placeholder,.textarea:disabled::placeholder,.textarea[disabled]::placeholder{color:var(--fallback-bc,oklch(var(--bc)/var(--tw-placeholder-opacity)));--tw-placeholder-opacity: .2}.toast>*{animation:toast-pop .25s ease-out}@keyframes toast-pop{0%{transform:scale(.9);opacity:0}to{transform:scale(1);opacity:1}}[dir=rtl] .toggle{--handleoffsetcalculator: calc(var(--handleoffset) * 1)}.toggle:focus-visible{outline-style:solid;outline-width:2px;outline-offset:2px;outline-color:var(--fallback-bc,oklch(var(--bc)/.2))}.toggle:hover{background-color:currentColor}.toggle:checked,.toggle[aria-checked=true]{background-image:none;--handleoffsetcalculator: var(--handleoffset);--tw-text-opacity: 1;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)))}[dir=rtl] .toggle:checked,[dir=rtl] .toggle[aria-checked=true]{--handleoffsetcalculator: calc(var(--handleoffset) * -1)}.toggle:indeterminate{--tw-text-opacity: 1;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)));box-shadow:calc(var(--handleoffset) / 2) 0 0 2px var(--tglbg) inset,calc(var(--handleoffset) / -2) 0 0 2px var(--tglbg) inset,0 0 0 2px var(--tglbg) inset}[dir=rtl] .toggle:indeterminate{box-shadow:calc(var(--handleoffset) / 2) 0 0 2px var(--tglbg) inset,calc(var(--handleoffset) / -2) 0 0 2px var(--tglbg) inset,0 0 0 2px var(--tglbg) inset}.toggle-primary:focus-visible{outline-color:var(--fallback-p,oklch(var(--p)/1))}.toggle-primary:checked,.toggle-primary[aria-checked=true]{border-color:var(--fallback-p,oklch(var(--p)/var(--tw-border-opacity)));--tw-border-opacity: .1;--tw-bg-opacity: 1;background-color:var(--fallback-p,oklch(var(--p)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-pc,oklch(var(--pc)/var(--tw-text-opacity)))}.toggle:disabled{cursor:not-allowed;--tw-border-opacity: 1;border-color:var(--fallback-bc,oklch(var(--bc)/var(--tw-border-opacity)));background-color:transparent;opacity:.3;--togglehandleborder: 0 0 0 3px var(--fallback-bc,oklch(var(--bc)/1)) inset, var(--handleoffsetcalculator) 0 0 3px var(--fallback-bc,oklch(var(--bc)/1)) inset}.badge-xs{height:.75rem;font-size:.75rem;line-height:.75rem;padding-left:.313rem;padding-right:.313rem}.badge-sm{height:1rem;font-size:.75rem;line-height:1rem;padding-left:.438rem;padding-right:.438rem}.badge-lg{height:1.5rem;font-size:1rem;line-height:1.5rem;padding-left:.688rem;padding-right:.688rem}.btm-nav-xs>*:where(.active){border-top-width:1px}.btm-nav-sm>*:where(.active){border-top-width:2px}.btm-nav-md>*:where(.active){border-top-width:2px}.btm-nav-lg>*:where(.active){border-top-width:4px}.btn-xs{height:1.5rem;min-height:1.5rem;padding-left:.5rem;padding-right:.5rem;font-size:.75rem}.btn-sm{height:2rem;min-height:2rem;padding-left:.75rem;padding-right:.75rem;font-size:.875rem}.btn-square:where(.btn-xs){height:1.5rem;width:1.5rem;padding:0}.btn-square:where(.btn-sm){height:2rem;width:2rem;padding:0}.btn-square:where(.btn-md){height:3rem;width:3rem;padding:0}.btn-square:where(.btn-lg){height:4rem;width:4rem;padding:0}.btn-circle:where(.btn-xs){height:1.5rem;width:1.5rem;border-radius:9999px;padding:0}.btn-circle:where(.btn-sm){height:2rem;width:2rem;border-radius:9999px;padding:0}.btn-circle:where(.btn-md){height:3rem;width:3rem;border-radius:9999px;padding:0}.btn-circle:where(.btn-lg){height:4rem;width:4rem;border-radius:9999px;padding:0}[type=checkbox].checkbox-sm{height:1.25rem;width:1.25rem}.indicator :where(.indicator-item){bottom:auto;inset-inline-end:0px;inset-inline-start:auto;top:0;--tw-translate-y: -50%;--tw-translate-x: 50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.indicator :where(.indicator-item):where([dir=rtl],[dir=rtl] *){--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.indicator :where(.indicator-item.indicator-start){inset-inline-end:auto;inset-inline-start:0px;--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.indicator :where(.indicator-item.indicator-start):where([dir=rtl],[dir=rtl] *){--tw-translate-x: 50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.indicator :where(.indicator-item.indicator-center){inset-inline-end:50%;inset-inline-start:50%;--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.indicator :where(.indicator-item.indicator-center):where([dir=rtl],[dir=rtl] *){--tw-translate-x: 50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.indicator :where(.indicator-item.indicator-end){inset-inline-end:0px;inset-inline-start:auto;--tw-translate-x: 50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.indicator :where(.indicator-item.indicator-end):where([dir=rtl],[dir=rtl] *){--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.indicator :where(.indicator-item.indicator-bottom){bottom:0;top:auto;--tw-translate-y: 50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.indicator :where(.indicator-item.indicator-middle){bottom:50%;top:50%;--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.indicator :where(.indicator-item.indicator-top){bottom:auto;top:0;--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.input-sm{height:2rem;padding-left:.75rem;padding-right:.75rem;font-size:.875rem;line-height:2rem}.join.join-vertical{flex-direction:column}.join.join-vertical .join-item:first-child:not(:last-child),.join.join-vertical *:first-child:not(:last-child) .join-item{border-end-start-radius:0;border-end-end-radius:0;border-start-start-radius:inherit;border-start-end-radius:inherit}.join.join-vertical .join-item:last-child:not(:first-child),.join.join-vertical *:last-child:not(:first-child) .join-item{border-start-start-radius:0;border-start-end-radius:0;border-end-start-radius:inherit;border-end-end-radius:inherit}.join.join-horizontal{flex-direction:row}.join.join-horizontal .join-item:first-child:not(:last-child),.join.join-horizontal *:first-child:not(:last-child) .join-item{border-end-end-radius:0;border-start-end-radius:0;border-end-start-radius:inherit;border-start-start-radius:inherit}.join.join-horizontal .join-item:last-child:not(:first-child),.join.join-horizontal *:last-child:not(:first-child) .join-item{border-end-start-radius:0;border-start-start-radius:0;border-end-end-radius:inherit;border-start-end-radius:inherit}.kbd-xs{padding-left:.25rem;padding-right:.25rem;font-size:.75rem;line-height:1rem;min-height:1.2em;min-width:1.2em}.menu-horizontal{display:inline-flex;flex-direction:row}.menu-horizontal>li:not(.menu-title)>details>ul{position:absolute}.select-sm{height:2rem;min-height:2rem;padding-left:.75rem;padding-right:2rem;font-size:.875rem;line-height:2rem}[dir=rtl] .select-sm{padding-left:2rem;padding-right:.75rem}.steps-horizontal .step{display:grid;grid-template-columns:repeat(1,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));place-items:center;text-align:center}.steps-vertical .step{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(1,minmax(0,1fr))}.tabs-md :where(.tab){height:2rem;font-size:.875rem;line-height:1.25rem;line-height:2;--tab-padding: 1rem}.tabs-lg :where(.tab){height:3rem;font-size:1.125rem;line-height:1.75rem;line-height:2;--tab-padding: 1.25rem}.tabs-sm :where(.tab){height:1.5rem;font-size:.875rem;line-height:.75rem;--tab-padding: .75rem}.tabs-xs :where(.tab){height:1.25rem;font-size:.75rem;line-height:.75rem;--tab-padding: .5rem}.textarea-sm{padding:.25rem .75rem;font-size:.875rem;line-height:2rem}:where(.toast){bottom:0;inset-inline-end:0px;inset-inline-start:auto;top:auto;--tw-translate-x: 0px;--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.toast:where(.toast-start){inset-inline-end:auto;inset-inline-start:0px;--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.toast:where(.toast-center){inset-inline-end:50%;inset-inline-start:50%;--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.toast:where(.toast-center):where([dir=rtl],[dir=rtl] *){--tw-translate-x: 50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.toast:where(.toast-end){inset-inline-end:0px;inset-inline-start:auto;--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.toast:where(.toast-bottom){bottom:0;top:auto;--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.toast:where(.toast-middle){bottom:auto;top:50%;--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.toast:where(.toast-top){bottom:auto;top:0;--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}[type=checkbox].toggle-sm{--handleoffset: .75rem;height:1.25rem;width:2rem}.tooltip{position:relative;display:inline-block;--tooltip-offset: calc(100% + 1px + var(--tooltip-tail, 0px))}.tooltip:before{position:absolute;pointer-events:none;z-index:1;content:var(--tw-content);--tw-content: attr(data-tip)}.tooltip:before,.tooltip-top:before{transform:translate(-50%);top:auto;left:50%;right:auto;bottom:var(--tooltip-offset)}.tooltip-right:before{transform:translateY(-50%);top:50%;left:var(--tooltip-offset);right:auto;bottom:auto}.card-compact .card-body{padding:1rem;font-size:.875rem;line-height:1.25rem}.card-compact .card-title{margin-bottom:.25rem}.card-normal .card-body{padding:var(--padding-card, 2rem);font-size:1rem;line-height:1.5rem}.card-normal .card-title{margin-bottom:.75rem}.join.join-vertical>:where(*:not(:first-child)){margin-left:0;margin-right:0;margin-top:-1px}.join.join-vertical>:where(*:not(:first-child)):is(.btn){margin-top:calc(var(--border-btn) * -1)}.join.join-horizontal>:where(*:not(:first-child)){margin-top:0;margin-bottom:0;margin-inline-start:-1px}.join.join-horizontal>:where(*:not(:first-child)):is(.btn){margin-inline-start:calc(var(--border-btn) * -1);margin-top:0}.menu-horizontal>li:not(.menu-title)>details>ul{margin-inline-start:0px;margin-top:1rem;padding-top:.5rem;padding-bottom:.5rem;padding-inline-end:.5rem}.menu-horizontal>li>details>ul:before{content:none}:where(.menu-horizontal>li:not(.menu-title)>details>ul){border-radius:var(--rounded-box, 1rem);--tw-bg-opacity: 1;background-color:var(--fallback-b1,oklch(var(--b1)/var(--tw-bg-opacity)));--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.modal-top :where(.modal-box){width:100%;max-width:none;--tw-translate-y: -2.5rem;--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));border-bottom-right-radius:var(--rounded-box, 1rem);border-bottom-left-radius:var(--rounded-box, 1rem);border-top-left-radius:0;border-top-right-radius:0}.modal-middle :where(.modal-box){width:91.666667%;max-width:32rem;--tw-translate-y: 0px;--tw-scale-x: .9;--tw-scale-y: .9;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));border-top-left-radius:var(--rounded-box, 1rem);border-top-right-radius:var(--rounded-box, 1rem);border-bottom-right-radius:var(--rounded-box, 1rem);border-bottom-left-radius:var(--rounded-box, 1rem)}.modal-bottom :where(.modal-box){width:100%;max-width:none;--tw-translate-y: 2.5rem;--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));border-top-left-radius:var(--rounded-box, 1rem);border-top-right-radius:var(--rounded-box, 1rem);border-bottom-right-radius:0;border-bottom-left-radius:0}.steps-horizontal .step{grid-template-rows:40px 1fr;grid-template-columns:auto;min-width:4rem}.steps-horizontal .step:before{height:.5rem;width:100%;--tw-translate-x: 0px;--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));content:\"\";margin-inline-start:-100%}.steps-horizontal .step:where([dir=rtl],[dir=rtl] *):before{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.steps-vertical .step{gap:.5rem;grid-template-columns:40px 1fr;grid-template-rows:auto;min-height:4rem;justify-items:start}.steps-vertical .step:before{height:100%;width:.5rem;--tw-translate-x: -50%;--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));margin-inline-start:50%}.steps-vertical .step:where([dir=rtl],[dir=rtl] *):before{--tw-translate-x: 50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.table-xs :not(thead):not(tfoot) tr{font-size:.75rem;line-height:1rem}.table-xs :where(th,td){padding:.25rem .5rem}.table-sm :not(thead):not(tfoot) tr{font-size:.875rem;line-height:1.25rem}.table-sm :where(th,td){padding:.5rem .75rem}.tooltip{position:relative;display:inline-block;text-align:center;--tooltip-tail: .1875rem;--tooltip-color: var(--fallback-n,oklch(var(--n)/1));--tooltip-text-color: var(--fallback-nc,oklch(var(--nc)/1));--tooltip-tail-offset: calc(100% + .0625rem - var(--tooltip-tail))}.tooltip:before,.tooltip:after{opacity:0;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-delay:.1s;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.tooltip:after{position:absolute;content:\"\";border-style:solid;border-width:var(--tooltip-tail, 0);width:0;height:0;display:block}.tooltip:before{max-width:20rem;white-space:normal;border-radius:.25rem;padding:.25rem .5rem;font-size:.875rem;line-height:1.25rem;background-color:var(--tooltip-color);color:var(--tooltip-text-color);width:-moz-max-content;width:max-content}.tooltip.tooltip-open:before{opacity:1;transition-delay:75ms}.tooltip.tooltip-open:after{opacity:1;transition-delay:75ms}.tooltip:hover:before{opacity:1;transition-delay:75ms}.tooltip:hover:after{opacity:1;transition-delay:75ms}.tooltip:has(:focus-visible):after,.tooltip:has(:focus-visible):before{opacity:1;transition-delay:75ms}.tooltip:not([data-tip]):hover:before,.tooltip:not([data-tip]):hover:after{visibility:hidden;opacity:0}.tooltip:after,.tooltip-top:after{transform:translate(-50%);border-color:var(--tooltip-color) transparent transparent transparent;top:auto;left:50%;right:auto;bottom:var(--tooltip-tail-offset)}.tooltip-right:after{transform:translateY(-50%);border-color:transparent var(--tooltip-color) transparent transparent;top:50%;left:calc(var(--tooltip-tail-offset) + .0625rem);right:auto;bottom:auto}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.visible{visibility:visible}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.bottom-0{bottom:0}.left-0{left:0}.right-0{right:0}.top-0{top:0}.top-24{top:6rem}.z-10{z-index:10}.z-40{z-index:40}.z-50{z-index:50}.z-\\[1\\]{z-index:1}.col-span-2{grid-column:span 2 / span 2}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-auto{margin-left:auto;margin-right:auto}.my-2{margin-top:.5rem;margin-bottom:.5rem}.-mt-0\\.5{margin-top:-.125rem}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-6{margin-left:1.5rem}.ml-8{margin-left:2rem}.mr-1{margin-right:.25rem}.mr-32{margin-right:8rem}.mt-0\\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.block{display:block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.contents{display:contents}.hidden{display:none}.h-12{height:3rem}.h-16{height:4rem}.h-2\\.5{height:.625rem}.h-3{height:.75rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-64{height:16rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-96{height:24rem}.h-\\[90vh\\]{height:90vh}.h-full{height:100%}.h-screen{height:100vh}.max-h-32{max-height:8rem}.max-h-60{max-height:15rem}.max-h-96{max-height:24rem}.max-h-\\[60vh\\]{max-height:60vh}.max-h-\\[70vh\\]{max-height:70vh}.min-h-0{min-height:0px}.min-h-\\[2\\.5rem\\]{min-height:2.5rem}.min-h-screen{min-height:100vh}.w-1\\/3{width:33.333333%}.w-11\\/12{width:91.666667%}.w-12{width:3rem}.w-16{width:4rem}.w-2\\.5{width:.625rem}.w-20{width:5rem}.w-24{width:6rem}.w-3{width:.75rem}.w-32{width:8rem}.w-4{width:1rem}.w-40{width:10rem}.w-48{width:12rem}.w-5{width:1.25rem}.w-56{width:14rem}.w-6{width:1.5rem}.w-64{width:16rem}.w-72{width:18rem}.w-8{width:2rem}.w-80{width:20rem}.w-full{width:100%}.w-px{width:1px}.min-w-\\[200px\\]{min-width:200px}.max-w-3xl{max-width:48rem}.max-w-4xl{max-width:56rem}.max-w-6xl{max-width:72rem}.max-w-7xl{max-width:80rem}.max-w-md{max-width:28rem}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.flex-\\[2\\]{flex:2}.flex-none{flex:none}.flex-shrink-0,.shrink-0{flex-shrink:0}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-help{cursor:help}.cursor-pointer{cursor:pointer}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0{gap:0px}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.space-y-0\\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.125rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.125rem * var(--tw-space-y-reverse))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-box{border-radius:var(--rounded-box, 1rem)}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-l-2{border-left-width:2px}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.border-base-300{--tw-border-opacity: 1;border-color:var(--fallback-b3,oklch(var(--b3)/var(--tw-border-opacity, 1)))}.border-base-content\\/20{border-color:var(--fallback-bc,oklch(var(--bc)/.2))}.border-error\\/20{border-color:var(--fallback-er,oklch(var(--er)/.2))}.bg-base-100{--tw-bg-opacity: 1;background-color:var(--fallback-b1,oklch(var(--b1)/var(--tw-bg-opacity, 1)))}.bg-base-200{--tw-bg-opacity: 1;background-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-bg-opacity, 1)))}.bg-base-300{--tw-bg-opacity: 1;background-color:var(--fallback-b3,oklch(var(--b3)/var(--tw-bg-opacity, 1)))}.bg-base-300\\/30{background-color:var(--fallback-b3,oklch(var(--b3)/.3))}.bg-base-content{--tw-bg-opacity: 1;background-color:var(--fallback-bc,oklch(var(--bc)/var(--tw-bg-opacity, 1)))}.bg-base-content\\/30{background-color:var(--fallback-bc,oklch(var(--bc)/.3))}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity, 1))}.bg-error{--tw-bg-opacity: 1;background-color:var(--fallback-er,oklch(var(--er)/var(--tw-bg-opacity, 1)))}.bg-error\\/10{background-color:var(--fallback-er,oklch(var(--er)/.1))}.bg-green-500{--tw-bg-opacity: 1;background-color:rgb(34 197 94 / var(--tw-bg-opacity, 1))}.bg-orange-500{--tw-bg-opacity: 1;background-color:rgb(249 115 22 / var(--tw-bg-opacity, 1))}.bg-primary{--tw-bg-opacity: 1;background-color:var(--fallback-p,oklch(var(--p)/var(--tw-bg-opacity, 1)))}.bg-purple-500{--tw-bg-opacity: 1;background-color:rgb(168 85 247 / var(--tw-bg-opacity, 1))}.bg-red-500{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity, 1))}.bg-success{--tw-bg-opacity: 1;background-color:var(--fallback-su,oklch(var(--su)/var(--tw-bg-opacity, 1)))}.bg-warning{--tw-bg-opacity: 1;background-color:var(--fallback-wa,oklch(var(--wa)/var(--tw-bg-opacity, 1)))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-yellow-500{--tw-bg-opacity: 1;background-color:rgb(234 179 8 / var(--tw-bg-opacity, 1))}.stroke-current{stroke:currentColor}.p-0{padding:0}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-1\\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-64{padding-left:16rem;padding-right:16rem}.py-0\\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-32{padding-bottom:8rem}.pl-4{padding-left:1rem}.pt-4{padding-top:1rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-6xl{font-size:3.75rem;line-height:1}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.leading-7{line-height:1.75rem}.text-base-content{--tw-text-opacity: 1;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity, 1)))}.text-base-content\\/60{color:var(--fallback-bc,oklch(var(--bc)/.6))}.text-base-content\\/70{color:var(--fallback-bc,oklch(var(--bc)/.7))}.text-error{--tw-text-opacity: 1;color:var(--fallback-er,oklch(var(--er)/var(--tw-text-opacity, 1)))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.text-primary{--tw-text-opacity: 1;color:var(--fallback-p,oklch(var(--p)/var(--tw-text-opacity, 1)))}.text-primary-content{--tw-text-opacity: 1;color:var(--fallback-pc,oklch(var(--pc)/var(--tw-text-opacity, 1)))}.text-success{--tw-text-opacity: 1;color:var(--fallback-su,oklch(var(--su)/var(--tw-text-opacity, 1)))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.opacity-20{opacity:.2}.opacity-40{opacity:.4}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-2xl{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-filter{backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-shadow{transition-property:box-shadow;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace}.hover\\:bg-base-200:hover{--tw-bg-opacity: 1;background-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-bg-opacity, 1)))}.hover\\:bg-base-300:hover{--tw-bg-opacity: 1;background-color:var(--fallback-b3,oklch(var(--b3)/var(--tw-bg-opacity, 1)))}.hover\\:text-gray-900:hover{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.hover\\:shadow-lg:hover{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.group:hover .group-hover\\:opacity-90{opacity:.9}@media (min-width: 768px){.md\\:col-span-3{grid-column:span 3 / span 3}.md\\:inline{display:inline}.md\\:flex{display:flex}.md\\:hidden{display:none}.md\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (min-width: 1024px){.lg\\:col-span-2{grid-column:span 2 / span 2}.lg\\:col-span-6{grid-column:span 6 / span 6}.lg\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.lg\\:text-3xl{font-size:1.875rem;line-height:2.25rem}}@media (min-width: 1280px){.xl\\:flex{display:flex}.xl\\:hidden{display:none}.xl\\:max-w-md{max-width:28rem}}@media (prefers-color-scheme: dark){.dark\\:bg-gray-800{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity, 1))}.dark\\:text-gray-300{--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity, 1))}.dark\\:hover\\:text-gray-100:hover{--tw-text-opacity: 1;color:rgb(243 244 246 / var(--tw-text-opacity, 1))}}.card.svelte-1qok2wg{backdrop-filter:blur(10px)}.active.svelte-1fgps4v{background-color:hsl(var(--p) / .2)}\n",
21265
- "en-D_EcykrR.js": 'const e={error:"Error",loading:"Loading...",save:"Save",cancel:"Cancel",delete:"Delete",edit:"Edit",add:"Add",confirm:"Confirm",reset:"Reset",refresh:"Refresh",search:"Search",filter:"Filter",export:"Export",import:"Import",close:"Close",show:"Show",hide:"Hide",copy:"Copy",copied:"Copied"},t={dashboard:"Dashboard",home:"Home",routes:"Routes",logs:"Request Logs",configuration:"Configuration"},r={home:"Home",routes:"Route Management",newRoute:"New Route",editRoute:"Edit Route"},a={title:"Dashboard",dataRange:"Data Time Range",totalRequests:"Total Requests",requestsPerSec:"Requests/sec",requestsPerSecond:"Requests/sec",successRate:"Success Rate",avgResponseTime:"Avg Response Time",upstreamAnalysis:"Upstream Analysis",upstreamDistribution:"Upstream Request Distribution",upstreamFailures:"Upstream Failure Statistics",upstreamStatusCodes:"Upstream Status Code Distribution",noUpstreamData:"No upstream data available for the selected time range",noData:"No data available"},o={title:"Monitoring Charts",range:{"1h":"1 Hour","12h":"12 Hours","24h":"24 Hours",oneHour:"1 Hour",twelveHours:"12 Hours",twentyFourHours:"24 Hours"},charts:{requestsTrend:"Requests Trend",periodRequests:"Period Requests",requests:"Requests",responseTimeTrend:"Response Time Trend",avgResponseTime:"Avg Response Time (ms)",milliseconds:"Milliseconds (ms)",successRateTrend:"Success Rate Trend",successRate:"Success Rate (%)",percentage:"Percentage (%)",errorsTrend:"Errors Trend",periodErrors:"Period Errors",errors:"Errors"},noData:"No historical data available"},s={title:"Routes",subtitle:"Manage your reverse proxy routes and upstreams",addRoute:"Add Route",newRoute:"+ New Route",createFirstRoute:"Create First Route",editRoute:"Edit Route",deleteRoute:"Delete Route",export:"Export",import:"Import",path:"Path",upstreams:"Upstreams",actions:"Actions",searchPlaceholder:"Search routes or upstreams...",allTransformers:"All Transformers",noRoutes:"No routes configured",noRoutesMessage:"Create your first route to start proxying requests",noMatchingRoutes:"No matching routes",noMatchingMessage:"Try adjusting your search or filter criteria",showingRoutes:"Showing {count} of {total} route(s)",confirmDelete:"Confirm Delete Route",confirmDeleteMessage:\'Are you sure you want to delete route "{path}"? This action cannot be undone.\',deleted:\'Route "{path}" has been deleted\',deleteFailed:"Delete failed: {error}",duplicated:\'Route "{path}" has been duplicated\',duplicateFailed:"Duplicate failed: {error}",noRoutesToExport:"No routes to export",exported:"Routes exported",importMustBeArray:"Import file must be an array of routes",importSuccess:"Successfully imported {success} route(s)",importPartialSuccess:"Successfully imported {success} route(s), failed {failed}",importFailed:"Import failed: {error}",filterStatus:{all:"All Status",healthy:"Healthy Only",unhealthy:"Has Issues"}},i={title:"Configuration",subtitle:"Edit and manage system configuration",export:"Export",import:"Import",reload:"Reload",restart:"Restart Service",formEditor:"Form Editor",jsonEditor:"JSON Editor",systemSettings:"System Settings",serverPort:"Server Port",workerProcesses:"Worker Processes",workerProcessesHelp:"Number of worker processes to spawn",logLevel:"Log Level",bodyParserLimit:"Body Parser Limit",bodyParserLimitHelp:\'Maximum request body size (e.g., "50mb", "100kb")\',requiresRestart:"Note: Changes to Port, Workers, Log Level, and Body Parser Limit require a service restart to take effect.",routesConfigured:"{count} routes configured.",manageRoutes:"Use the Routes page to manage routes.",jsonConfiguration:"JSON Configuration",jsonParseError:"JSON Parse Error: {error}",jsonPlaceholder:"Enter JSON configuration...",jsonHelp:"Edit the raw JSON configuration. Changes will be validated before saving.",unsavedChanges:"You have unsaved changes",reset:"Reset",save:"Save Configuration",confirmRestart:"Confirm Service Restart",restartMessage:"Are you sure you want to restart the service? This will cause a brief interruption (typically 2-3 seconds) as the service gracefully restarts.",restartWarning:"Active connections may be temporarily interrupted.",validationFailed:"Configuration validation failed: {error}",saved:"Configuration saved",saveFailed:"Save failed: {error}",exported:"Configuration exported",imported:"Configuration imported",importFailed:"Import failed: {error}",reloaded:"Configuration successfully reloaded",reloadFailed:"Reload failed: {error}",restartSent:"Restart signal sent, service will restart in a few seconds",restartDaemonOnly:\'Restart feature is only available in daemon mode. Please use "bungee restart" command or manually restart the development server.\',restartFailed:"Restart failed: {error}"},l={title:"404",message:"Page Not Found",goHome:"Go Home"},n={newRoute:"New Route",editRoute:"Edit Route",backToList:"Back to List",routePath:"Route Path",pathPlaceholder:"e.g.: /api/*",pathHelp:"Supports wildcards (*) and parameters (:param)",pathHelpLong:"Paths support wildcards (*) to match any characters and parameter placeholders (:param) to capture path segments",pathRewrite:"Path Rewrite",pathRewriteHelp:"Regex patterns to modify request paths",pathRewriteTooltip:"Path rewrite allows using regex patterns to match and replace request paths. Example: ^/api/v1 \u2192 /api/v2 will rewrite all paths starting with /api/v1 to /api/v2",addPathRewriteRule:"Add Path Rewrite Rule",patternPlaceholder:"Match regex pattern (e.g. ^/test)",replacementPlaceholder:"Rewrite path (e.g. /v1)",confirmDeleteRule:"Are you sure you want to delete this rule?",upstreamCountTooltip:"Configured {count} upstream server(s)",upstreams:"Upstreams",addUpstream:"Add Upstream",transformer:"Route Transformer",transformerHelp:"Transformer applied to the entire route (optional)",noPluginsAvailable:"No route transformer plugins available",optional:"Optional",failoverTitle:"Failover",failoverHelp:"Configure automatic failover and health check mechanisms",enableFailover:"Enable automatic failover",retryableStatusCodes:"Retryable Status Codes",retryableStatusCodesPlaceholder:"Default: 500, 502, 503, 504 (Server Errors)",retryableStatusCodesHelp:"Automatically retry other upstreams when these status codes occur",passiveHealthCheck:"Passive Health Check",passiveHealthCheckTooltip:"Monitors actual request success/failure to determine upstream health, no extra probe requests",consecutiveFailuresThreshold:"Consecutive Failures Threshold",consecutiveFailuresThresholdHelp:"Mark as unhealthy after this many consecutive failures (default: 3)",healthyThreshold:"Healthy Threshold",healthyThresholdHelp:"Recover to healthy after this many consecutive successes (default: 2)",requestTimeoutMs:"Request Timeout (ms)",requestTimeoutMsHelp:"Timeout for normal requests (default: 30000ms)",connectTimeoutMs:"Connect Timeout (ms)",connectTimeoutMsHelp:"Timeout for establishing connection (default: 5000ms)",activeHealthCheck:"Active Health Check",activeHealthCheckTooltip:"Periodically sends probe requests to actively detect upstream health, independent of business traffic",enableActiveHealthCheck:"Enable active health check",healthCheckIntervalMs:"Check Interval (ms)",healthCheckIntervalMsHelp:"How often to perform health checks (default: 10000ms)",healthCheckTimeoutMs:"Check Timeout (ms)",healthCheckTimeoutMsHelp:"Timeout for health check requests (default: 3000ms)",healthCheckPath:"Check Path",healthCheckPathHelp:"HTTP path for health checks (default: /health)",healthCheckMethod:"HTTP Method",healthCheckExpectedStatus:"Expected Status Codes",healthCheckExpectedStatusHelp:"Expected status codes for health checks (default: 200)",healthCheckUnhealthyThreshold:"Unhealthy Threshold",healthCheckUnhealthyThresholdHelp:"Mark as unhealthy after this many consecutive failures (default: 3)",healthCheckHealthyThreshold:"Healthy Threshold",healthCheckHealthyThresholdHelp:"Recover to healthy after this many consecutive successes (default: 2)",slowStart:"Slow Start",slowStartTooltip:"Gradually increases traffic to recovered upstreams to prevent immediate overload and re-failure",enableSlowStart:"Enable slow start mechanism",slowStartDurationMs:"Slow Start Duration (ms)",slowStartDurationMsHelp:"Duration to gradually increase weight after recovery (default: 30000ms)",slowStartInitialWeightFactor:"Initial Weight Factor",slowStartInitialWeightFactorHelp:"Initial weight ratio after recovery, 0.1 means 10% (default: 0.1)",failoverInfoNotice:"Failover automatically detects upstream health status and switches to backup upstreams on failure to ensure service availability.",recoveryIntervalMs:"Recovery Interval (ms)",recoveryIntervalPlaceholder:"5000",recoveryIntervalHelp:"Wait time before attempting to recover a failed upstream",recoveryTimeoutMs:"Recovery Timeout (ms)",recoveryTimeoutPlaceholder:"3000",recoveryTimeoutHelp:"Timeout for recovery attempts to avoid long pending requests",saveRoute:"Save Route",cancel:"Cancel",saving:"Saving...",loadingTemplates:"Loading templates...",useTemplate:"Use Template",routeSaved:"Route saved",routeUpdated:"Route updated",saveFailed:"Save failed: {error}",pathRequired:"Route path cannot be empty",upstreamRequired:"At least one upstream is required"},u={upstreams:"{count} upstream(s)",hasTransformer:"With transformer",failover:"Failover",edit:"Edit",duplicate:"Duplicate",delete:"Delete",duplicating:"Duplicating...",deleting:"Deleting...",viewAll:"View all {count}",moreActions:"More Actions",tableHeaders:{status:"Status",target:"Target",weight:"Weight",priority:"Priority"},pathRewrite:{original:"Original",rewriteTo:"Rewrite to"}},d={title:"Upstream Servers",close:"Close",statusHealthy:"Healthy",statusUnhealthy:"Unhealthy",statusUnknown:"Unknown"},c={title:"Upstream #{index}",priority:"Priority",target:"Target",targetUrl:"Target URL",targetPlaceholder:"https://api.example.com",targetHelp:"Full URL of the upstream server",weight:"Weight",weightHelp:"Load balancing weight (1-100)",transformer:"Upstream Transformer",transformerHelp:"Transformer applied only to this upstream (optional)",remove:"Remove Upstream",targetRequired:"Target URL cannot be empty",invalidUrl:"Invalid URL format"},p={selectPlugin:"Select Plugin",none:"No Plugin",description:"Plugin Description",testPlugin:"Test Plugin",testing:"Testing...",input:"Input (Original Format)",output:"Output (Transformed Format)",inputPlaceholder:"Enter test data...",testSuccess:"Transform successful",testFailed:"Transform failed: {error}"},h={title:"Request Headers",add:"Add",addHeader:"Add Header",name:"Name",namePlaceholder:"Content-Type",value:"Value",valuePlaceholder:"application/json",remove:"Remove",replace:"Replace",default:"Default",empty:"No headers"},m={title:"Request Body",bodyType:"Body Type",json:"JSON",text:"Plain Text",form:"Form Data",none:"No Body",placeholder:"Enter request body content...",jsonInvalid:"Invalid JSON format",add:"Add",remove:"Remove",replace:"Replace",default:"Default",empty:"No fields"},g={title:"Query Parameters",name:"Name",namePlaceholder:"param_name",value:"Value",valuePlaceholder:"param_value",add:"Add",remove:"Remove",replace:"Replace",default:"Default",empty:"No parameters"},y={title:"Conditional Expression",placeholder:"request.headers[\'User-Agent\'].includes(\'Mobile\')",help:"Use JavaScript expressions that return true or false",examples:"Examples",example1:"Check request headers",example2:"Check query parameters",example3:"Check request method",test:"Test Expression",testResult:"Test Result",resultTrue:"Condition is true",resultFalse:"Condition is false",resultError:"Expression error: {error}"},f={title:"Route Templates",subtitle:"Quickly create common route configurations",useTemplate:"Use This Template",categories:{api:"API Proxy",static:"Static Resources",websocket:"WebSocket",auth:"Auth Proxy"},restApi:{name:"REST API Proxy",description:"Standard RESTful API proxy configuration"},graphql:{name:"GraphQL API",description:"GraphQL endpoint proxy"},static:{name:"Static File Server",description:"Proxy static resource files"},websocket:{name:"WebSocket Proxy",description:"Real-time communication WebSocket proxy"},loadBalancing:{name:"Load Balancing",description:"Multi-upstream load balancing configuration"}},v={yes:"Yes",no:"No",cancelTitle:"Confirm Cancel",cancelMessage:"Are you sure you want to cancel and go back? Any unsaved changes will be lost.",restoreDraftTitle:"Restore Draft",restoreDraftMessage:"An unsaved draft was detected. Would you like to restore it?"},R={targetRequired:"Target URL cannot be empty",targetProtocol:"Target URL must use http or https protocol",invalidUrl:"Invalid URL format",weightPositive:"Weight must be positive",priorityNonNegative:"Priority must be non-negative",totalWeightPositive:"Total weight must be greater than 0",unknownTransformer:"Unknown transformer: {transformer}. Available options: {options}",pathRequired:"Path cannot be empty",pathStartSlash:"Path must start with /",upstreamRequired:"At least one upstream is required",invalidRegex:"Invalid regular expression: {pattern}",invalidStatusCode:"Invalid status code: {code}",recoveryIntervalPositive:"Recovery interval must be greater than 0",recoveryTimeoutPositive:"Recovery timeout must be greater than 0",expressionEmpty:"Expression cannot be empty",mismatchedBraces:"Mismatched {{ }} braces",mismatchedParentheses:"Mismatched parentheses",mismatchedQuotes:"Mismatched quotes"},T={globalAuth:"Global Authentication",routeAuth:"Route Authentication",helpText:"Protect your API endpoints",enableAuth:"Enable Authentication",enabled:"Enabled",disabled:"Disabled",tokens:"Token List",tokenPlaceholder:"Enter token or use {{ env.TOKEN_NAME }}",addToken:"Add Token",expressionSupport:"Expression syntax is supported for referencing environment variables:",securityNotice:"When authentication is enabled, the Authorization header is automatically removed and will not be forwarded to upstream servers (security measure).",routeAuthHelp:"Route-level authentication will override global authentication configuration. If not configured, the global authentication settings will be used."},b={title:"Request Logs",filters:"Filters",autoRefresh:"Auto Refresh",refreshInterval:"Refresh Interval",refreshEvery5s:"Every 5s",refreshEvery10s:"Every 10s",refreshEvery30s:"Every 30s",refreshEvery60s:"Every 60s",lastRefreshed:"Last refreshed",newDataAvailable:"New data available, click refresh to view",searchTerm:"Search",searchPlaceholder:"Search path or error message...",method:"HTTP Method",allMethods:"All Methods",status:"Status Code",statusPlaceholder:"e.g., 200, 404, 500",result:"Result",allResults:"All",success:"Success",failed:"Failed",timeRange:"Time Range",allTime:"All Time",recentTime:"Recent Time",customTime:"Custom Range",recentHours:"Recent Hours",startTime:"Start Time",endTime:"End Time",sortBy:"Sort By",sortByTimestamp:"Timestamp",sortByDuration:"Duration",sortByStatus:"Status Code",sortOrder:"Order",asc:"Ascending",desc:"Descending",time:"Time",path:"Path",duration:"Duration",requestType:"Type",requestTypeFilter:"Request Type",requestType_all:"All Types",requestType_final:"Final",requestType_retry:"Retry",requestType_recovery:"Recovery",requestType_final_desc:"Request returned to client",requestType_retry_desc:"Retry attempt",requestType_recovery_desc:"Failover recovery test",upstream:"Upstream",actions:"Actions",viewDetail:"Details",export:"Export",startStream:"Start Stream",stopStream:"Stop Stream",showing:"Showing {start}-{end} of {total}",page:"Page {page} of {totalPages}",noData:"No log data available",advancedFilters:"Advanced Filters",activeFilters:"active filter(s)",clearFilters:"Clear All",moreFilters:"More Filters",detail:{title:"Request Log Details",requestId:"Request ID",timestamp:"Timestamp",method:"Method",status:"Status",duration:"Duration",success:"Success",requestInfo:"Request Information",path:"Path",originalPath:"Original Path",transformedPath:"Transformed Path",query:"Query String",routePath:"Matched Route",upstreamInfo:"Upstream Information",upstream:"Upstream",transformer:"Transformer",authInfo:"Authentication Information",authLevel:"Auth Level",authResult:"Result",authSuccess:"Authenticated",authFailed:"Failed",processingSteps:"Processing Steps",errorInfo:"Error Information",requestBody:"Request Body",responseBody:"Response Body",loadRequestBody:"Load Request Body",loadResponseBody:"Load Response Body",bodyNotRecorded:"Body not recorded for this request",bodyNotRecordedReason:"May have exceeded size limit or was empty",originalRequest:"Original Request (Before Transform)",finalRequest:"Final Request (To Upstream)",responseData:"Response Data (From Upstream)",originalHeaders:"Original Headers",finalHeaders:"Final Headers",requestHeaders:"Request Headers",responseHeaders:"Response Headers",bodyPreview:"Body Preview",bodyTooLarge:"Body too large ({size})",clickToExpand:"Click to expand",headers:"headers",noHeaders:"No headers available",noBody:"No body data",overview:"Overview",routeAndUpstream:"Route & Upstream",processingTimeline:"Processing Timeline",totalSteps:"{count} steps",totalDuration:"took {duration}",showTimeline:"Show Timeline",hideTimeline:"Hide Timeline",copyToClipboard:"Copy",downloadJson:"Download JSON",copied:"Copied!",tabOriginalRequest:"Original",tabFinalRequest:"Transformed",tabResponse:"Response",requestData:"Request Data",noDataAvailable:"No data available",step:"Step"},steps:{route_matched:"Route Matched",request_snapshot_created:"Request Snapshot Created",auth_failed:"Authentication Failed",auth_success:"Authentication Success",upstream_selected:"Upstream Selected",trying_upstream:"Trying Upstream",circuit_breaker_closed:"Circuit Breaker Closed",circuit_breaker_opened:"Circuit Breaker Opened",circuit_breaker_reopened:"Circuit Breaker Reopened",upstream_recovered:"Upstream Recovered",upstream_retry:"Upstream Retry",upstream_failed:"Upstream Failed",plugin_request_init:"Plugin Request Init",plugin_before_request:"Plugin Before Request",plugin_intercepted:"Plugin Intercepted Request",plugin_response:"Plugin Response",plugin_error:"Plugin Error"}},S={title:"Logging Configuration",bodyRecording:"Enable Request/Response Body Recording",bodyRecordingHelp:"Record request and response bodies for troubleshooting and analysis",maxSize:"Maximum Body Size",maxSizeHelp:"Bodies larger than this will be skipped (1-100 KB)",retentionDays:"Body Retention Days",retentionDaysHelp:"Bodies will be automatically deleted after this many days",days:"days",hours:"hours",cleanupConfig:"Cleanup Configuration",cleanupStatus:"Status",active:"Active",inactive:"Inactive",cleanupRetention:"Retention",cleanupInterval:"Cleanup Interval",manualCleanup:"Manual Cleanup",confirmCleanup:"Are you sure you want to manually trigger log cleanup? This will delete all logs and bodies older than the configured retention period.",cleanupSuccess:"Cleanup completed successfully",cleanupFailed:"Cleanup failed: {error}",lastCleanup:"Last Cleanup Results",deletedSqliteRecords:"Deleted SQLite records",deletedFileLogFiles:"Deleted log files",deletedBodyFiles:"Deleted body files",dirs:"directories",files:"files",duration:"Duration"},P={title:"Login",subtitle:"Enter your access token to continue",token:"Access Token",tokenPlaceholder:"Enter your access token...",submit:"Login",loggingIn:"Logging in...",success:"Login successful",failed:"Login failed: {error}",required:"Access token is required",unauthorized:"Invalid access token",logout:"Logout",logoutConfirm:"Are you sure you want to logout?"},w={common:e,nav:t,breadcrumb:r,dashboard:a,monitoring:o,routes:s,configuration:i,notFound:l,routeEditor:n,routeCard:u,upstreamsModal:d,upstream:c,plugin:p,headers:h,body:m,query:g,expression:y,templates:f,confirmDialog:v,validation:R,auth:T,logs:b,logging:S,login:P};export{T as auth,m as body,r as breadcrumb,e as common,i as configuration,v as confirmDialog,a as dashboard,w as default,y as expression,h as headers,S as logging,P as login,b as logs,o as monitoring,t as nav,l as notFound,p as plugin,g as query,u as routeCard,n as routeEditor,s as routes,f as templates,c as upstream,d as upstreamsModal,R as validation};\n',
21266
- "vendor-charts-Bo4qyjB7.js": `import{C as ds}from"./vendor-C5kRSwys.js";/*!
21269
+ "index-DsfEOypS.css": "*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: \"\"}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\",Segoe UI Symbol,\"Noto Color Emoji\";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}:root,[data-theme]{background-color:var(--fallback-b1,oklch(var(--b1)/1));color:var(--fallback-bc,oklch(var(--bc)/1))}@supports not (color: oklch(0% 0 0)){:root{color-scheme:light;--fallback-p: #491eff;--fallback-pc: #d4dbff;--fallback-s: #ff41c7;--fallback-sc: #fff9fc;--fallback-a: #00cfbd;--fallback-ac: #00100d;--fallback-n: #2b3440;--fallback-nc: #d7dde4;--fallback-b1: #ffffff;--fallback-b2: #e5e6e6;--fallback-b3: #e5e6e6;--fallback-bc: #1f2937;--fallback-in: #00b3f0;--fallback-inc: #000000;--fallback-su: #00ca92;--fallback-suc: #000000;--fallback-wa: #ffc22d;--fallback-wac: #000000;--fallback-er: #ff6f70;--fallback-erc: #000000}@media (prefers-color-scheme: dark){:root{color-scheme:dark;--fallback-p: #7582ff;--fallback-pc: #050617;--fallback-s: #ff71cf;--fallback-sc: #190211;--fallback-a: #00c7b5;--fallback-ac: #000e0c;--fallback-n: #2a323c;--fallback-nc: #a6adbb;--fallback-b1: #1d232a;--fallback-b2: #191e24;--fallback-b3: #15191e;--fallback-bc: #a6adbb;--fallback-in: #00b3f0;--fallback-inc: #000000;--fallback-su: #00ca92;--fallback-suc: #000000;--fallback-wa: #ffc22d;--fallback-wac: #000000;--fallback-er: #ff6f70;--fallback-erc: #000000}}}html{-webkit-tap-highlight-color:transparent}*{scrollbar-color:color-mix(in oklch,currentColor 35%,transparent) transparent}*:hover{scrollbar-color:color-mix(in oklch,currentColor 60%,transparent) transparent}:root{color-scheme:light;--in: 72.06% .191 231.6;--su: 64.8% .15 160;--wa: 84.71% .199 83.87;--er: 71.76% .221 22.18;--pc: 89.824% .06192 275.75;--ac: 15.352% .0368 183.61;--inc: 0% 0 0;--suc: 0% 0 0;--wac: 0% 0 0;--erc: 0% 0 0;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 49.12% .3096 275.75;--s: 69.71% .329 342.55;--sc: 98.71% .0106 342.55;--a: 76.76% .184 183.61;--n: 32.1785% .02476 255.701624;--nc: 89.4994% .011585 252.096176;--b1: 100% 0 0;--b2: 96.1151% 0 0;--b3: 92.4169% .00108 197.137559;--bc: 27.8078% .029596 256.847952}@media (prefers-color-scheme: dark){:root{color-scheme:dark;--in: 72.06% .191 231.6;--su: 64.8% .15 160;--wa: 84.71% .199 83.87;--er: 71.76% .221 22.18;--pc: 13.138% .0392 275.75;--sc: 14.96% .052 342.55;--ac: 14.902% .0334 183.61;--inc: 0% 0 0;--suc: 0% 0 0;--wac: 0% 0 0;--erc: 0% 0 0;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 65.69% .196 275.75;--s: 74.8% .26 342.55;--a: 74.51% .167 183.61;--n: 31.3815% .021108 254.139175;--nc: 74.6477% .0216 264.435964;--b1: 25.3267% .015896 252.417568;--b2: 23.2607% .013807 253.100675;--b3: 21.1484% .01165 254.087939;--bc: 74.6477% .0216 264.435964}}[data-theme=light]{color-scheme:light;--in: 72.06% .191 231.6;--su: 64.8% .15 160;--wa: 84.71% .199 83.87;--er: 71.76% .221 22.18;--pc: 89.824% .06192 275.75;--ac: 15.352% .0368 183.61;--inc: 0% 0 0;--suc: 0% 0 0;--wac: 0% 0 0;--erc: 0% 0 0;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 49.12% .3096 275.75;--s: 69.71% .329 342.55;--sc: 98.71% .0106 342.55;--a: 76.76% .184 183.61;--n: 32.1785% .02476 255.701624;--nc: 89.4994% .011585 252.096176;--b1: 100% 0 0;--b2: 96.1151% 0 0;--b3: 92.4169% .00108 197.137559;--bc: 27.8078% .029596 256.847952}[data-theme=dark]{color-scheme:dark;--in: 72.06% .191 231.6;--su: 64.8% .15 160;--wa: 84.71% .199 83.87;--er: 71.76% .221 22.18;--pc: 13.138% .0392 275.75;--sc: 14.96% .052 342.55;--ac: 14.902% .0334 183.61;--inc: 0% 0 0;--suc: 0% 0 0;--wac: 0% 0 0;--erc: 0% 0 0;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 65.69% .196 275.75;--s: 74.8% .26 342.55;--a: 74.51% .167 183.61;--n: 31.3815% .021108 254.139175;--nc: 74.6477% .0216 264.435964;--b1: 25.3267% .015896 252.417568;--b2: 23.2607% .013807 253.100675;--b3: 21.1484% .01165 254.087939;--bc: 74.6477% .0216 264.435964}.alert{display:grid;width:100%;grid-auto-flow:row;align-content:flex-start;align-items:center;justify-items:center;gap:1rem;text-align:center;border-radius:var(--rounded-box, 1rem);border-width:1px;--tw-border-opacity: 1;border-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-border-opacity)));padding:1rem;--tw-text-opacity: 1;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)));--alert-bg: var(--fallback-b2,oklch(var(--b2)/1));--alert-bg-mix: var(--fallback-b1,oklch(var(--b1)/1));background-color:var(--alert-bg)}@media (min-width: 640px){.alert{grid-auto-flow:column;grid-template-columns:auto minmax(auto,1fr);justify-items:start;text-align:start}}.avatar.placeholder>div{display:flex;align-items:center;justify-content:center}.badge{display:inline-flex;align-items:center;justify-content:center;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-timing-function:cubic-bezier(0,0,.2,1);transition-duration:.2s;height:1.25rem;font-size:.875rem;line-height:1.25rem;width:-moz-fit-content;width:fit-content;padding-left:.563rem;padding-right:.563rem;border-radius:var(--rounded-badge, 1.9rem);border-width:1px;--tw-border-opacity: 1;border-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-border-opacity)));--tw-bg-opacity: 1;background-color:var(--fallback-b1,oklch(var(--b1)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)))}.breadcrumbs{max-width:100%;overflow-x:auto;padding-top:.5rem;padding-bottom:.5rem}.breadcrumbs>ul,.breadcrumbs>ol{display:flex;align-items:center;white-space:nowrap;min-height:-moz-min-content;min-height:min-content}.breadcrumbs>ul>li,.breadcrumbs>ol>li{display:flex;align-items:center}.breadcrumbs>ul>li>a,.breadcrumbs>ol>li>a{display:flex;cursor:pointer;align-items:center}@media (hover:hover){.breadcrumbs>ul>li>a:hover,.breadcrumbs>ol>li>a:hover{text-decoration-line:underline}.link-hover:hover{text-decoration-line:underline}.checkbox-primary:hover{--tw-border-opacity: 1;border-color:var(--fallback-p,oklch(var(--p)/var(--tw-border-opacity)))}.checkbox-success:hover{--tw-border-opacity: 1;border-color:var(--fallback-su,oklch(var(--su)/var(--tw-border-opacity)))}.label a:hover{--tw-text-opacity: 1;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)))}.menu li>*:not(ul,.menu-title,details,.btn):active,.menu li>*:not(ul,.menu-title,details,.btn).active,.menu li>details>summary:active{--tw-bg-opacity: 1;background-color:var(--fallback-n,oklch(var(--n)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-nc,oklch(var(--nc)/var(--tw-text-opacity)))}.tab:hover{--tw-text-opacity: 1}.tabs-boxed :is(.tab-active,[aria-selected=true]):not(.tab-disabled):not([disabled]):hover,.tabs-boxed :is(input:checked):hover{--tw-text-opacity: 1;color:var(--fallback-pc,oklch(var(--pc)/var(--tw-text-opacity)))}.table tr.hover:hover,.table tr.hover:nth-child(2n):hover{--tw-bg-opacity: 1;background-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-bg-opacity)))}.table-zebra tr.hover:hover,.table-zebra tr.hover:nth-child(2n):hover{--tw-bg-opacity: 1;background-color:var(--fallback-b3,oklch(var(--b3)/var(--tw-bg-opacity)))}}.btn{display:inline-flex;height:3rem;min-height:3rem;flex-shrink:0;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;flex-wrap:wrap;align-items:center;justify-content:center;border-radius:var(--rounded-btn, .5rem);border-color:transparent;border-color:oklch(var(--btn-color, var(--b2)) / var(--tw-border-opacity));padding-left:1rem;padding-right:1rem;text-align:center;font-size:.875rem;line-height:1em;gap:.5rem;font-weight:600;text-decoration-line:none;transition-duration:.2s;transition-timing-function:cubic-bezier(0,0,.2,1);border-width:var(--border-btn, 1px);transition-property:color,background-color,border-color,opacity,box-shadow,transform;--tw-text-opacity: 1;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)));--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);outline-color:var(--fallback-bc,oklch(var(--bc)/1));background-color:oklch(var(--btn-color, var(--b2)) / var(--tw-bg-opacity));--tw-bg-opacity: 1;--tw-border-opacity: 1}.btn-disabled,.btn[disabled],.btn:disabled{pointer-events:none}.btn-square{height:3rem;width:3rem;padding:0}.btn-circle{height:3rem;width:3rem;border-radius:9999px;padding:0}:where(.btn:is(input[type=checkbox])),:where(.btn:is(input[type=radio])){width:auto;-webkit-appearance:none;-moz-appearance:none;appearance:none}.btn:is(input[type=checkbox]):after,.btn:is(input[type=radio]):after{--tw-content: attr(aria-label);content:var(--tw-content)}.card{position:relative;display:flex;flex-direction:column;border-radius:var(--rounded-box, 1rem)}.card:focus{outline:2px solid transparent;outline-offset:2px}.card-body{display:flex;flex:1 1 auto;flex-direction:column;padding:var(--padding-card, 2rem);gap:.5rem}.card-body :where(p){flex-grow:1}.card-actions{display:flex;flex-wrap:wrap;align-items:flex-start;gap:.5rem}.card figure{display:flex;align-items:center;justify-content:center}.card.image-full{display:grid}.card.image-full:before{position:relative;content:\"\";z-index:10;border-radius:var(--rounded-box, 1rem);--tw-bg-opacity: 1;background-color:var(--fallback-n,oklch(var(--n)/var(--tw-bg-opacity)));opacity:.75}.card.image-full:before,.card.image-full>*{grid-column-start:1;grid-row-start:1}.card.image-full>figure img{height:100%;-o-object-fit:cover;object-fit:cover}.card.image-full>.card-body{position:relative;z-index:20;--tw-text-opacity: 1;color:var(--fallback-nc,oklch(var(--nc)/var(--tw-text-opacity)))}.checkbox{flex-shrink:0;--chkbg: var(--fallback-bc,oklch(var(--bc)/1));--chkfg: var(--fallback-b1,oklch(var(--b1)/1));height:1.5rem;width:1.5rem;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:var(--rounded-btn, .5rem);border-width:1px;border-color:var(--fallback-bc,oklch(var(--bc)/var(--tw-border-opacity)));--tw-border-opacity: .2}.collapse:not(td):not(tr):not(colgroup){visibility:visible}.collapse{position:relative;display:grid;overflow:hidden;grid-template-rows:max-content 0fr;transition:grid-template-rows .2s;width:100%;border-radius:var(--rounded-box, 1rem)}.collapse-title,.collapse>input[type=checkbox],.collapse>input[type=radio],.collapse-content{grid-column-start:1;grid-row-start:1}.collapse>input[type=checkbox],.collapse>input[type=radio]{-webkit-appearance:none;-moz-appearance:none;appearance:none;opacity:0}:where(.collapse>input[type=checkbox]),:where(.collapse>input[type=radio]){height:100%;width:100%;z-index:1}.collapse-content{visibility:hidden;grid-column-start:1;grid-row-start:2;min-height:0px;transition:visibility .2s;transition:padding .2s ease-out,background-color .2s ease-out;padding-left:1rem;padding-right:1rem;cursor:unset}.collapse[open],.collapse-open,.collapse:focus:not(.collapse-close){grid-template-rows:max-content 1fr}.collapse:not(.collapse-close):has(>input[type=checkbox]:checked),.collapse:not(.collapse-close):has(>input[type=radio]:checked){grid-template-rows:max-content 1fr}.collapse[open]>.collapse-content,.collapse-open>.collapse-content,.collapse:focus:not(.collapse-close)>.collapse-content,.collapse:not(.collapse-close)>input[type=checkbox]:checked~.collapse-content,.collapse:not(.collapse-close)>input[type=radio]:checked~.collapse-content{visibility:visible;min-height:-moz-fit-content;min-height:fit-content}.divider{display:flex;flex-direction:row;align-items:center;align-self:stretch;margin-top:1rem;margin-bottom:1rem;height:1rem;white-space:nowrap}.divider:before,.divider:after{height:.125rem;width:100%;flex-grow:1;--tw-content: \"\";content:var(--tw-content);background-color:var(--fallback-bc,oklch(var(--bc)/.1))}.dropdown{position:relative;display:inline-block}.dropdown>*:not(summary):focus{outline:2px solid transparent;outline-offset:2px}.dropdown .dropdown-content{position:absolute}.dropdown:is(:not(details)) .dropdown-content{visibility:hidden;opacity:0;transform-origin:top;--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-timing-function:cubic-bezier(0,0,.2,1);transition-duration:.2s}.dropdown-end .dropdown-content{inset-inline-end:0px}.dropdown-left .dropdown-content{bottom:auto;inset-inline-end:100%;top:0;transform-origin:right}.dropdown-right .dropdown-content{bottom:auto;inset-inline-start:100%;top:0;transform-origin:left}.dropdown-bottom .dropdown-content{bottom:auto;top:100%;transform-origin:top}.dropdown-top .dropdown-content{bottom:100%;top:auto;transform-origin:bottom}.dropdown-end.dropdown-right .dropdown-content,.dropdown-end.dropdown-left .dropdown-content{bottom:0;top:auto}.dropdown.dropdown-open .dropdown-content,.dropdown:not(.dropdown-hover):focus .dropdown-content,.dropdown:focus-within .dropdown-content{visibility:visible;opacity:1}@media (hover: hover){.dropdown.dropdown-hover:hover .dropdown-content{visibility:visible;opacity:1}.btm-nav>*.disabled:hover,.btm-nav>*[disabled]:hover{pointer-events:none;--tw-border-opacity: 0;background-color:var(--fallback-n,oklch(var(--n)/var(--tw-bg-opacity)));--tw-bg-opacity: .1;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)));--tw-text-opacity: .2}.btn:hover{--tw-border-opacity: 1;border-color:var(--fallback-b3,oklch(var(--b3)/var(--tw-border-opacity)));--tw-bg-opacity: 1;background-color:var(--fallback-b3,oklch(var(--b3)/var(--tw-bg-opacity)))}@supports (color: color-mix(in oklab,black,black)){.btn:hover{background-color:color-mix(in oklab,oklch(var(--btn-color, var(--b2)) / var(--tw-bg-opacity, 1)) 90%,black);border-color:color-mix(in oklab,oklch(var(--btn-color, var(--b2)) / var(--tw-border-opacity, 1)) 90%,black)}}@supports not (color: oklch(0% 0 0)){.btn:hover{background-color:var(--btn-color, var(--fallback-b2));border-color:var(--btn-color, var(--fallback-b2))}}.btn.glass:hover{--glass-opacity: 25%;--glass-border-opacity: 15%}.btn-ghost:hover{border-color:transparent}@supports (color: oklch(0% 0 0)){.btn-ghost:hover{background-color:var(--fallback-bc,oklch(var(--bc)/.2))}}.btn-outline:hover{--tw-border-opacity: 1;border-color:var(--fallback-bc,oklch(var(--bc)/var(--tw-border-opacity)));--tw-bg-opacity: 1;background-color:var(--fallback-bc,oklch(var(--bc)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-b1,oklch(var(--b1)/var(--tw-text-opacity)))}.btn-outline.btn-primary:hover{--tw-text-opacity: 1;color:var(--fallback-pc,oklch(var(--pc)/var(--tw-text-opacity)))}@supports (color: color-mix(in oklab,black,black)){.btn-outline.btn-primary:hover{background-color:color-mix(in oklab,var(--fallback-p,oklch(var(--p)/1)) 90%,black);border-color:color-mix(in oklab,var(--fallback-p,oklch(var(--p)/1)) 90%,black)}}.btn-outline.btn-secondary:hover{--tw-text-opacity: 1;color:var(--fallback-sc,oklch(var(--sc)/var(--tw-text-opacity)))}@supports (color: color-mix(in oklab,black,black)){.btn-outline.btn-secondary:hover{background-color:color-mix(in oklab,var(--fallback-s,oklch(var(--s)/1)) 90%,black);border-color:color-mix(in oklab,var(--fallback-s,oklch(var(--s)/1)) 90%,black)}}.btn-outline.btn-accent:hover{--tw-text-opacity: 1;color:var(--fallback-ac,oklch(var(--ac)/var(--tw-text-opacity)))}@supports (color: color-mix(in oklab,black,black)){.btn-outline.btn-accent:hover{background-color:color-mix(in oklab,var(--fallback-a,oklch(var(--a)/1)) 90%,black);border-color:color-mix(in oklab,var(--fallback-a,oklch(var(--a)/1)) 90%,black)}}.btn-outline.btn-success:hover{--tw-text-opacity: 1;color:var(--fallback-suc,oklch(var(--suc)/var(--tw-text-opacity)))}@supports (color: color-mix(in oklab,black,black)){.btn-outline.btn-success:hover{background-color:color-mix(in oklab,var(--fallback-su,oklch(var(--su)/1)) 90%,black);border-color:color-mix(in oklab,var(--fallback-su,oklch(var(--su)/1)) 90%,black)}}.btn-outline.btn-info:hover{--tw-text-opacity: 1;color:var(--fallback-inc,oklch(var(--inc)/var(--tw-text-opacity)))}@supports (color: color-mix(in oklab,black,black)){.btn-outline.btn-info:hover{background-color:color-mix(in oklab,var(--fallback-in,oklch(var(--in)/1)) 90%,black);border-color:color-mix(in oklab,var(--fallback-in,oklch(var(--in)/1)) 90%,black)}}.btn-outline.btn-warning:hover{--tw-text-opacity: 1;color:var(--fallback-wac,oklch(var(--wac)/var(--tw-text-opacity)))}@supports (color: color-mix(in oklab,black,black)){.btn-outline.btn-warning:hover{background-color:color-mix(in oklab,var(--fallback-wa,oklch(var(--wa)/1)) 90%,black);border-color:color-mix(in oklab,var(--fallback-wa,oklch(var(--wa)/1)) 90%,black)}}.btn-outline.btn-error:hover{--tw-text-opacity: 1;color:var(--fallback-erc,oklch(var(--erc)/var(--tw-text-opacity)))}@supports (color: color-mix(in oklab,black,black)){.btn-outline.btn-error:hover{background-color:color-mix(in oklab,var(--fallback-er,oklch(var(--er)/1)) 90%,black);border-color:color-mix(in oklab,var(--fallback-er,oklch(var(--er)/1)) 90%,black)}}.btn-disabled:hover,.btn[disabled]:hover,.btn:disabled:hover{--tw-border-opacity: 0;background-color:var(--fallback-n,oklch(var(--n)/var(--tw-bg-opacity)));--tw-bg-opacity: .2;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)));--tw-text-opacity: .2}@supports (color: color-mix(in oklab,black,black)){.btn:is(input[type=checkbox]:checked):hover,.btn:is(input[type=radio]:checked):hover{background-color:color-mix(in oklab,var(--fallback-p,oklch(var(--p)/1)) 90%,black);border-color:color-mix(in oklab,var(--fallback-p,oklch(var(--p)/1)) 90%,black)}}.dropdown.dropdown-hover:hover .dropdown-content{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}:where(.menu li:not(.menu-title,.disabled)>*:not(ul,details,.menu-title)):not(.active,.btn):hover,:where(.menu li:not(.menu-title,.disabled)>details>summary:not(.menu-title)):not(.active,.btn):hover{cursor:pointer;outline:2px solid transparent;outline-offset:2px}@supports (color: oklch(0% 0 0)){:where(.menu li:not(.menu-title,.disabled)>*:not(ul,details,.menu-title)):not(.active,.btn):hover,:where(.menu li:not(.menu-title,.disabled)>details>summary:not(.menu-title)):not(.active,.btn):hover{background-color:var(--fallback-bc,oklch(var(--bc)/.1))}}.tab[disabled],.tab[disabled]:hover{cursor:not-allowed;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)));--tw-text-opacity: .2}}.dropdown:is(details) summary::-webkit-details-marker{display:none}.form-control{display:flex;flex-direction:column}.label{display:flex;-webkit-user-select:none;-moz-user-select:none;user-select:none;align-items:center;justify-content:space-between;padding:.5rem .25rem}.indicator{position:relative;display:inline-flex;width:-moz-max-content;width:max-content}.indicator :where(.indicator-item){z-index:1;position:absolute;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));white-space:nowrap}.input{flex-shrink:1;-webkit-appearance:none;-moz-appearance:none;appearance:none;height:3rem;padding-left:1rem;padding-right:1rem;font-size:1rem;line-height:2;line-height:1.5rem;border-radius:var(--rounded-btn, .5rem);border-width:1px;border-color:transparent;--tw-bg-opacity: 1;background-color:var(--fallback-b1,oklch(var(--b1)/var(--tw-bg-opacity)))}.input[type=number]::-webkit-inner-spin-button,.input-md[type=number]::-webkit-inner-spin-button{margin-top:-1rem;margin-bottom:-1rem;margin-inline-end:-1rem}.input-sm[type=number]::-webkit-inner-spin-button{margin-top:0;margin-bottom:0;margin-inline-end:-0px}.join{display:inline-flex;align-items:stretch;border-radius:var(--rounded-btn, .5rem)}.join :where(.join-item){border-start-end-radius:0;border-end-end-radius:0;border-end-start-radius:0;border-start-start-radius:0}.join .join-item:not(:first-child):not(:last-child),.join *:not(:first-child):not(:last-child) .join-item{border-start-end-radius:0;border-end-end-radius:0;border-end-start-radius:0;border-start-start-radius:0}.join .join-item:first-child:not(:last-child),.join *:first-child:not(:last-child) .join-item{border-start-end-radius:0;border-end-end-radius:0}.join .dropdown .join-item:first-child:not(:last-child),.join *:first-child:not(:last-child) .dropdown .join-item{border-start-end-radius:inherit;border-end-end-radius:inherit}.join :where(.join-item:first-child:not(:last-child)),.join :where(*:first-child:not(:last-child) .join-item){border-end-start-radius:inherit;border-start-start-radius:inherit}.join .join-item:last-child:not(:first-child),.join *:last-child:not(:first-child) .join-item{border-end-start-radius:0;border-start-start-radius:0}.join :where(.join-item:last-child:not(:first-child)),.join :where(*:last-child:not(:first-child) .join-item){border-start-end-radius:inherit;border-end-end-radius:inherit}@supports not selector(:has(*)){:where(.join *){border-radius:inherit}}@supports selector(:has(*)){:where(.join *:has(.join-item)){border-radius:inherit}}.kbd{display:inline-flex;align-items:center;justify-content:center;border-radius:var(--rounded-btn, .5rem);border-width:1px;border-color:var(--fallback-bc,oklch(var(--bc)/var(--tw-border-opacity)));--tw-border-opacity: .2;--tw-bg-opacity: 1;background-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-bg-opacity)));padding-left:.5rem;padding-right:.5rem;--tw-text-opacity: 1;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)));border-bottom-width:2px;min-height:2.2em;min-width:2.2em}.link{cursor:pointer;text-decoration-line:underline}.link-hover{text-decoration-line:none}.menu{display:flex;flex-direction:column;flex-wrap:wrap;font-size:.875rem;line-height:1.25rem;padding:.5rem}.menu :where(li ul){position:relative;white-space:nowrap;margin-inline-start:1rem;padding-inline-start:.5rem}.menu :where(li:not(.menu-title)>*:not(ul,details,.menu-title,.btn)),.menu :where(li:not(.menu-title)>details>summary:not(.menu-title)){display:grid;grid-auto-flow:column;align-content:flex-start;align-items:center;gap:.5rem;grid-auto-columns:minmax(auto,max-content) auto max-content;-webkit-user-select:none;-moz-user-select:none;user-select:none}.menu li.disabled{cursor:not-allowed;-webkit-user-select:none;-moz-user-select:none;user-select:none;color:var(--fallback-bc,oklch(var(--bc)/.3))}.menu :where(li>.menu-dropdown:not(.menu-dropdown-show)){display:none}:where(.menu li){position:relative;display:flex;flex-shrink:0;flex-direction:column;flex-wrap:wrap;align-items:stretch}:where(.menu li) .badge{justify-self:end}.mockup-code{position:relative;overflow:hidden;overflow-x:auto;min-width:18rem;border-radius:var(--rounded-box, 1rem);--tw-bg-opacity: 1;background-color:var(--fallback-n,oklch(var(--n)/var(--tw-bg-opacity)));padding-top:1.25rem;padding-bottom:1.25rem;--tw-text-opacity: 1;color:var(--fallback-nc,oklch(var(--nc)/var(--tw-text-opacity)));direction:ltr}.mockup-code pre[data-prefix]:before{content:attr(data-prefix);display:inline-block;text-align:right;width:2rem;opacity:.5}.modal{pointer-events:none;position:fixed;inset:0;margin:0;display:grid;height:100%;max-height:none;width:100%;max-width:none;justify-items:center;padding:0;opacity:0;overscroll-behavior:contain;z-index:999;background-color:transparent;color:inherit;transition-duration:.2s;transition-timing-function:cubic-bezier(0,0,.2,1);transition-property:transform,opacity,visibility;overflow-y:hidden}:where(.modal){align-items:center}.modal-box{max-height:calc(100vh - 5em);grid-column-start:1;grid-row-start:1;width:91.666667%;max-width:32rem;--tw-scale-x: .9;--tw-scale-y: .9;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));border-bottom-right-radius:var(--rounded-box, 1rem);border-bottom-left-radius:var(--rounded-box, 1rem);border-top-left-radius:var(--rounded-box, 1rem);border-top-right-radius:var(--rounded-box, 1rem);--tw-bg-opacity: 1;background-color:var(--fallback-b1,oklch(var(--b1)/var(--tw-bg-opacity)));padding:1.5rem;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-timing-function:cubic-bezier(0,0,.2,1);transition-duration:.2s;box-shadow:#00000040 0 25px 50px -12px;overflow-y:auto;overscroll-behavior:contain}.modal-open,.modal:target,.modal-toggle:checked+.modal,.modal[open]{pointer-events:auto;visibility:visible;opacity:1}.modal-action{display:flex;margin-top:1.5rem;justify-content:flex-end}.modal-toggle{position:fixed;height:0px;width:0px;-webkit-appearance:none;-moz-appearance:none;appearance:none;opacity:0}:root:has(:is(.modal-open,.modal:target,.modal-toggle:checked+.modal,.modal[open])){overflow:hidden;scrollbar-gutter:stable}.navbar{display:flex;align-items:center;padding:var(--navbar-padding, .5rem);min-height:4rem;width:100%}:where(.navbar>*:not(script,style)){display:inline-flex;align-items:center}.radio{flex-shrink:0;--chkbg: var(--bc);height:1.5rem;width:1.5rem;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:9999px;border-width:1px;border-color:var(--fallback-bc,oklch(var(--bc)/var(--tw-border-opacity)));--tw-border-opacity: .2}.range{height:1.5rem;width:100%;cursor:pointer;-moz-appearance:none;appearance:none;-webkit-appearance:none;--range-shdw: var(--fallback-bc,oklch(var(--bc)/1));overflow:hidden;border-radius:var(--rounded-box, 1rem);background-color:transparent}.range:focus{outline:none}.select{display:inline-flex;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;height:3rem;min-height:3rem;padding-inline-start:1rem;padding-inline-end:2.5rem;font-size:.875rem;line-height:1.25rem;line-height:2;border-radius:var(--rounded-btn, .5rem);border-width:1px;border-color:transparent;--tw-bg-opacity: 1;background-color:var(--fallback-b1,oklch(var(--b1)/var(--tw-bg-opacity)));background-image:linear-gradient(45deg,transparent 50%,currentColor 50%),linear-gradient(135deg,currentColor 50%,transparent 50%);background-position:calc(100% - 20px) calc(1px + 50%),calc(100% - 16.1px) calc(1px + 50%);background-size:4px 4px,4px 4px;background-repeat:no-repeat}.select[multiple]{height:auto}.stats{display:inline-grid;border-radius:var(--rounded-box, 1rem);--tw-bg-opacity: 1;background-color:var(--fallback-b1,oklch(var(--b1)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)))}:where(.stats){grid-auto-flow:column;overflow-x:auto}.stat{display:inline-grid;width:100%;grid-template-columns:repeat(1,1fr);-moz-column-gap:1rem;column-gap:1rem;border-color:var(--fallback-bc,oklch(var(--bc)/var(--tw-border-opacity)));--tw-border-opacity: .1;padding:1rem 1.5rem}.stat-title{grid-column-start:1;white-space:nowrap;color:var(--fallback-bc,oklch(var(--bc)/.6))}.stat-value{grid-column-start:1;white-space:nowrap;font-size:2.25rem;line-height:2.5rem;font-weight:800}.stat-desc{grid-column-start:1;white-space:nowrap;font-size:.75rem;line-height:1rem;color:var(--fallback-bc,oklch(var(--bc)/.6))}.steps{display:inline-grid;grid-auto-flow:column;overflow:hidden;overflow-x:auto;counter-reset:step;grid-auto-columns:1fr}.steps .step{display:grid;grid-template-columns:repeat(1,minmax(0,1fr));grid-template-columns:auto;grid-template-rows:repeat(2,minmax(0,1fr));grid-template-rows:40px 1fr;place-items:center;text-align:center;min-width:4rem}.tabs{display:grid;align-items:flex-end}.tabs-lifted:has(.tab-content[class^=rounded-]) .tab:first-child:not(:is(.tab-active,[aria-selected=true])),.tabs-lifted:has(.tab-content[class*=\" rounded-\"]) .tab:first-child:not(:is(.tab-active,[aria-selected=true])){border-bottom-color:transparent}.tab{position:relative;grid-row-start:1;display:inline-flex;height:2rem;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;flex-wrap:wrap;align-items:center;justify-content:center;text-align:center;font-size:.875rem;line-height:1.25rem;line-height:2;--tab-padding: 1rem;--tw-text-opacity: .5;--tab-color: var(--fallback-bc,oklch(var(--bc)/1));--tab-bg: var(--fallback-b1,oklch(var(--b1)/1));--tab-border-color: var(--fallback-b3,oklch(var(--b3)/1));color:var(--tab-color);padding-inline-start:var(--tab-padding, 1rem);padding-inline-end:var(--tab-padding, 1rem)}.tab:is(input[type=radio]){width:auto;border-bottom-right-radius:0;border-bottom-left-radius:0}.tab:is(input[type=radio]):after{--tw-content: attr(aria-label);content:var(--tw-content)}.tab:not(input):empty{cursor:default;grid-column-start:span 9999}:checked+.tab-content:nth-child(2),:is(.tab-active,[aria-selected=true])+.tab-content:nth-child(2){border-start-start-radius:0px}input.tab:checked+.tab-content,:is(.tab-active,[aria-selected=true])+.tab-content{display:block}.table{position:relative;width:100%;border-radius:var(--rounded-box, 1rem);text-align:left;font-size:.875rem;line-height:1.25rem}.table :where(.table-pin-rows thead tr){position:sticky;top:0;z-index:1;--tw-bg-opacity: 1;background-color:var(--fallback-b1,oklch(var(--b1)/var(--tw-bg-opacity)))}.table :where(.table-pin-rows tfoot tr){position:sticky;bottom:0;z-index:1;--tw-bg-opacity: 1;background-color:var(--fallback-b1,oklch(var(--b1)/var(--tw-bg-opacity)))}.table :where(.table-pin-cols tr th){position:sticky;left:0;right:0;--tw-bg-opacity: 1;background-color:var(--fallback-b1,oklch(var(--b1)/var(--tw-bg-opacity)))}.table-zebra tbody tr:nth-child(2n) :where(.table-pin-cols tr th){--tw-bg-opacity: 1;background-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-bg-opacity)))}.textarea{min-height:3rem;flex-shrink:1;padding:.5rem 1rem;font-size:.875rem;line-height:1.25rem;line-height:2;border-radius:var(--rounded-btn, .5rem);border-width:1px;border-color:transparent;--tw-bg-opacity: 1;background-color:var(--fallback-b1,oklch(var(--b1)/var(--tw-bg-opacity)))}.toast{position:fixed;display:flex;min-width:-moz-fit-content;min-width:fit-content;flex-direction:column;white-space:nowrap;gap:.5rem;padding:1rem}.toggle{flex-shrink:0;--tglbg: var(--fallback-b1,oklch(var(--b1)/1));--handleoffset: 1.5rem;--handleoffsetcalculator: calc(var(--handleoffset) * -1);--togglehandleborder: 0 0;height:1.5rem;width:3rem;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:var(--rounded-badge, 1.9rem);border-width:1px;border-color:currentColor;background-color:currentColor;color:var(--fallback-bc,oklch(var(--bc)/.5));transition:background,box-shadow var(--animation-input, .2s) ease-out;box-shadow:var(--handleoffsetcalculator) 0 0 2px var(--tglbg) inset,0 0 0 2px var(--tglbg) inset,var(--togglehandleborder)}.alert-info{border-color:var(--fallback-in,oklch(var(--in)/.2));--tw-text-opacity: 1;color:var(--fallback-inc,oklch(var(--inc)/var(--tw-text-opacity)));--alert-bg: var(--fallback-in,oklch(var(--in)/1));--alert-bg-mix: var(--fallback-b1,oklch(var(--b1)/1))}.alert-success{border-color:var(--fallback-su,oklch(var(--su)/.2));--tw-text-opacity: 1;color:var(--fallback-suc,oklch(var(--suc)/var(--tw-text-opacity)));--alert-bg: var(--fallback-su,oklch(var(--su)/1));--alert-bg-mix: var(--fallback-b1,oklch(var(--b1)/1))}.alert-warning{border-color:var(--fallback-wa,oklch(var(--wa)/.2));--tw-text-opacity: 1;color:var(--fallback-wac,oklch(var(--wac)/var(--tw-text-opacity)));--alert-bg: var(--fallback-wa,oklch(var(--wa)/1));--alert-bg-mix: var(--fallback-b1,oklch(var(--b1)/1))}.alert-error{border-color:var(--fallback-er,oklch(var(--er)/.2));--tw-text-opacity: 1;color:var(--fallback-erc,oklch(var(--erc)/var(--tw-text-opacity)));--alert-bg: var(--fallback-er,oklch(var(--er)/1));--alert-bg-mix: var(--fallback-b1,oklch(var(--b1)/1))}.badge-neutral{--tw-border-opacity: 1;border-color:var(--fallback-n,oklch(var(--n)/var(--tw-border-opacity)));--tw-bg-opacity: 1;background-color:var(--fallback-n,oklch(var(--n)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-nc,oklch(var(--nc)/var(--tw-text-opacity)))}.badge-primary{--tw-border-opacity: 1;border-color:var(--fallback-p,oklch(var(--p)/var(--tw-border-opacity)));--tw-bg-opacity: 1;background-color:var(--fallback-p,oklch(var(--p)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-pc,oklch(var(--pc)/var(--tw-text-opacity)))}.badge-accent{--tw-border-opacity: 1;border-color:var(--fallback-a,oklch(var(--a)/var(--tw-border-opacity)));--tw-bg-opacity: 1;background-color:var(--fallback-a,oklch(var(--a)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-ac,oklch(var(--ac)/var(--tw-text-opacity)))}.badge-info{border-color:transparent;--tw-bg-opacity: 1;background-color:var(--fallback-in,oklch(var(--in)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-inc,oklch(var(--inc)/var(--tw-text-opacity)))}.badge-success{border-color:transparent;--tw-bg-opacity: 1;background-color:var(--fallback-su,oklch(var(--su)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-suc,oklch(var(--suc)/var(--tw-text-opacity)))}.badge-warning{border-color:transparent;--tw-bg-opacity: 1;background-color:var(--fallback-wa,oklch(var(--wa)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-wac,oklch(var(--wac)/var(--tw-text-opacity)))}.badge-error{border-color:transparent;--tw-bg-opacity: 1;background-color:var(--fallback-er,oklch(var(--er)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-erc,oklch(var(--erc)/var(--tw-text-opacity)))}.badge-ghost{--tw-border-opacity: 1;border-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-border-opacity)));--tw-bg-opacity: 1;background-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)))}.badge-outline{border-color:currentColor;--tw-border-opacity: .5;background-color:transparent;color:currentColor}.badge-outline.badge-neutral{--tw-text-opacity: 1;color:var(--fallback-n,oklch(var(--n)/var(--tw-text-opacity)))}.badge-outline.badge-primary{--tw-text-opacity: 1;color:var(--fallback-p,oklch(var(--p)/var(--tw-text-opacity)))}.badge-outline.badge-secondary{--tw-text-opacity: 1;color:var(--fallback-s,oklch(var(--s)/var(--tw-text-opacity)))}.badge-outline.badge-accent{--tw-text-opacity: 1;color:var(--fallback-a,oklch(var(--a)/var(--tw-text-opacity)))}.badge-outline.badge-info{--tw-text-opacity: 1;color:var(--fallback-in,oklch(var(--in)/var(--tw-text-opacity)))}.badge-outline.badge-success{--tw-text-opacity: 1;color:var(--fallback-su,oklch(var(--su)/var(--tw-text-opacity)))}.badge-outline.badge-warning{--tw-text-opacity: 1;color:var(--fallback-wa,oklch(var(--wa)/var(--tw-text-opacity)))}.badge-outline.badge-error{--tw-text-opacity: 1;color:var(--fallback-er,oklch(var(--er)/var(--tw-text-opacity)))}.btm-nav>*:where(.active){border-top-width:2px;--tw-bg-opacity: 1;background-color:var(--fallback-b1,oklch(var(--b1)/var(--tw-bg-opacity)))}.btm-nav>*.disabled,.btm-nav>*[disabled]{pointer-events:none;--tw-border-opacity: 0;background-color:var(--fallback-n,oklch(var(--n)/var(--tw-bg-opacity)));--tw-bg-opacity: .1;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)));--tw-text-opacity: .2}.btm-nav>* .label{font-size:1rem;line-height:1.5rem}.breadcrumbs>ul>li>a:focus,.breadcrumbs>ol>li>a:focus{outline:2px solid transparent;outline-offset:2px}.breadcrumbs>ul>li>a:focus-visible,.breadcrumbs>ol>li>a:focus-visible{outline:2px solid currentColor;outline-offset:2px}.breadcrumbs>ul>li+*:before,.breadcrumbs>ol>li+*:before{content:\"\";margin-left:.5rem;margin-right:.75rem;display:block;height:.375rem;width:.375rem;--tw-rotate: 45deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));opacity:.4;border-top:1px solid;border-right:1px solid;background-color:transparent}[dir=rtl] .breadcrumbs>ul>li+*:before,[dir=rtl] .breadcrumbs>ol>li+*:before{--tw-rotate: -135deg}@media (prefers-reduced-motion: no-preference){.btn{animation:button-pop var(--animation-btn, .25s) ease-out}}.btn:active:hover,.btn:active:focus{animation:button-pop 0s ease-out;transform:scale(var(--btn-focus-scale, .97))}@supports not (color: oklch(0% 0 0)){.btn{background-color:var(--btn-color, var(--fallback-b2));border-color:var(--btn-color, var(--fallback-b2))}.btn-primary{--btn-color: var(--fallback-p)}.btn-secondary{--btn-color: var(--fallback-s)}.btn-success{--btn-color: var(--fallback-su)}.btn-warning{--btn-color: var(--fallback-wa)}.btn-error{--btn-color: var(--fallback-er)}}@supports (color: color-mix(in oklab,black,black)){.btn-outline.btn-primary.btn-active{background-color:color-mix(in oklab,var(--fallback-p,oklch(var(--p)/1)) 90%,black);border-color:color-mix(in oklab,var(--fallback-p,oklch(var(--p)/1)) 90%,black)}.btn-outline.btn-secondary.btn-active{background-color:color-mix(in oklab,var(--fallback-s,oklch(var(--s)/1)) 90%,black);border-color:color-mix(in oklab,var(--fallback-s,oklch(var(--s)/1)) 90%,black)}.btn-outline.btn-accent.btn-active{background-color:color-mix(in oklab,var(--fallback-a,oklch(var(--a)/1)) 90%,black);border-color:color-mix(in oklab,var(--fallback-a,oklch(var(--a)/1)) 90%,black)}.btn-outline.btn-success.btn-active{background-color:color-mix(in oklab,var(--fallback-su,oklch(var(--su)/1)) 90%,black);border-color:color-mix(in oklab,var(--fallback-su,oklch(var(--su)/1)) 90%,black)}.btn-outline.btn-info.btn-active{background-color:color-mix(in oklab,var(--fallback-in,oklch(var(--in)/1)) 90%,black);border-color:color-mix(in oklab,var(--fallback-in,oklch(var(--in)/1)) 90%,black)}.btn-outline.btn-warning.btn-active{background-color:color-mix(in oklab,var(--fallback-wa,oklch(var(--wa)/1)) 90%,black);border-color:color-mix(in oklab,var(--fallback-wa,oklch(var(--wa)/1)) 90%,black)}.btn-outline.btn-error.btn-active{background-color:color-mix(in oklab,var(--fallback-er,oklch(var(--er)/1)) 90%,black);border-color:color-mix(in oklab,var(--fallback-er,oklch(var(--er)/1)) 90%,black)}}.btn:focus-visible{outline-style:solid;outline-width:2px;outline-offset:2px}.btn-primary{--tw-text-opacity: 1;color:var(--fallback-pc,oklch(var(--pc)/var(--tw-text-opacity)));outline-color:var(--fallback-p,oklch(var(--p)/1))}@supports (color: oklch(0% 0 0)){.btn-primary{--btn-color: var(--p)}.btn-secondary{--btn-color: var(--s)}.btn-success{--btn-color: var(--su)}.btn-warning{--btn-color: var(--wa)}.btn-error{--btn-color: var(--er)}}.btn-secondary{--tw-text-opacity: 1;color:var(--fallback-sc,oklch(var(--sc)/var(--tw-text-opacity)));outline-color:var(--fallback-s,oklch(var(--s)/1))}.btn-success{--tw-text-opacity: 1;color:var(--fallback-suc,oklch(var(--suc)/var(--tw-text-opacity)));outline-color:var(--fallback-su,oklch(var(--su)/1))}.btn-warning{--tw-text-opacity: 1;color:var(--fallback-wac,oklch(var(--wac)/var(--tw-text-opacity)));outline-color:var(--fallback-wa,oklch(var(--wa)/1))}.btn-error{--tw-text-opacity: 1;color:var(--fallback-erc,oklch(var(--erc)/var(--tw-text-opacity)));outline-color:var(--fallback-er,oklch(var(--er)/1))}.btn.glass{--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);outline-color:currentColor}.btn.glass.btn-active{--glass-opacity: 25%;--glass-border-opacity: 15%}.btn-ghost{border-width:1px;border-color:transparent;background-color:transparent;color:currentColor;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);outline-color:currentColor}.btn-ghost.btn-active{border-color:transparent;background-color:var(--fallback-bc,oklch(var(--bc)/.2))}.btn-outline{border-color:currentColor;background-color:transparent;--tw-text-opacity: 1;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)));--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.btn-outline.btn-active{--tw-border-opacity: 1;border-color:var(--fallback-bc,oklch(var(--bc)/var(--tw-border-opacity)));--tw-bg-opacity: 1;background-color:var(--fallback-bc,oklch(var(--bc)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-b1,oklch(var(--b1)/var(--tw-text-opacity)))}.btn-outline.btn-primary{--tw-text-opacity: 1;color:var(--fallback-p,oklch(var(--p)/var(--tw-text-opacity)))}.btn-outline.btn-primary.btn-active{--tw-text-opacity: 1;color:var(--fallback-pc,oklch(var(--pc)/var(--tw-text-opacity)))}.btn-outline.btn-secondary{--tw-text-opacity: 1;color:var(--fallback-s,oklch(var(--s)/var(--tw-text-opacity)))}.btn-outline.btn-secondary.btn-active{--tw-text-opacity: 1;color:var(--fallback-sc,oklch(var(--sc)/var(--tw-text-opacity)))}.btn-outline.btn-accent{--tw-text-opacity: 1;color:var(--fallback-a,oklch(var(--a)/var(--tw-text-opacity)))}.btn-outline.btn-accent.btn-active{--tw-text-opacity: 1;color:var(--fallback-ac,oklch(var(--ac)/var(--tw-text-opacity)))}.btn-outline.btn-success{--tw-text-opacity: 1;color:var(--fallback-su,oklch(var(--su)/var(--tw-text-opacity)))}.btn-outline.btn-success.btn-active{--tw-text-opacity: 1;color:var(--fallback-suc,oklch(var(--suc)/var(--tw-text-opacity)))}.btn-outline.btn-info{--tw-text-opacity: 1;color:var(--fallback-in,oklch(var(--in)/var(--tw-text-opacity)))}.btn-outline.btn-info.btn-active{--tw-text-opacity: 1;color:var(--fallback-inc,oklch(var(--inc)/var(--tw-text-opacity)))}.btn-outline.btn-warning{--tw-text-opacity: 1;color:var(--fallback-wa,oklch(var(--wa)/var(--tw-text-opacity)))}.btn-outline.btn-warning.btn-active{--tw-text-opacity: 1;color:var(--fallback-wac,oklch(var(--wac)/var(--tw-text-opacity)))}.btn-outline.btn-error{--tw-text-opacity: 1;color:var(--fallback-er,oklch(var(--er)/var(--tw-text-opacity)))}.btn-outline.btn-error.btn-active{--tw-text-opacity: 1;color:var(--fallback-erc,oklch(var(--erc)/var(--tw-text-opacity)))}.btn.btn-disabled,.btn[disabled],.btn:disabled{--tw-border-opacity: 0;background-color:var(--fallback-n,oklch(var(--n)/var(--tw-bg-opacity)));--tw-bg-opacity: .2;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)));--tw-text-opacity: .2}.btn:is(input[type=checkbox]:checked),.btn:is(input[type=radio]:checked){--tw-border-opacity: 1;border-color:var(--fallback-p,oklch(var(--p)/var(--tw-border-opacity)));--tw-bg-opacity: 1;background-color:var(--fallback-p,oklch(var(--p)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-pc,oklch(var(--pc)/var(--tw-text-opacity)))}.btn:is(input[type=checkbox]:checked):focus-visible,.btn:is(input[type=radio]:checked):focus-visible{outline-color:var(--fallback-p,oklch(var(--p)/1))}@keyframes button-pop{0%{transform:scale(var(--btn-focus-scale, .98))}40%{transform:scale(1.02)}to{transform:scale(1)}}.card :where(figure:first-child){overflow:hidden;border-start-start-radius:inherit;border-start-end-radius:inherit;border-end-start-radius:unset;border-end-end-radius:unset}.card :where(figure:last-child){overflow:hidden;border-start-start-radius:unset;border-start-end-radius:unset;border-end-start-radius:inherit;border-end-end-radius:inherit}.card:focus-visible{outline:2px solid currentColor;outline-offset:2px}.card.bordered{border-width:1px;--tw-border-opacity: 1;border-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-border-opacity)))}.card.compact .card-body{padding:1rem;font-size:.875rem;line-height:1.25rem}.card-title{display:flex;align-items:center;gap:.5rem;font-size:1.25rem;line-height:1.75rem;font-weight:600}.card.image-full :where(figure){overflow:hidden;border-radius:inherit}.checkbox:focus{box-shadow:none}.checkbox:focus-visible{outline-style:solid;outline-width:2px;outline-offset:2px;outline-color:var(--fallback-bc,oklch(var(--bc)/1))}.checkbox:disabled{border-width:0px;cursor:not-allowed;border-color:transparent;--tw-bg-opacity: 1;background-color:var(--fallback-bc,oklch(var(--bc)/var(--tw-bg-opacity)));opacity:.2}.checkbox:checked,.checkbox[aria-checked=true]{background-repeat:no-repeat;animation:checkmark var(--animation-input, .2s) ease-out;background-color:var(--chkbg);background-image:linear-gradient(-45deg,transparent 65%,var(--chkbg) 65.99%),linear-gradient(45deg,transparent 75%,var(--chkbg) 75.99%),linear-gradient(-45deg,var(--chkbg) 40%,transparent 40.99%),linear-gradient(45deg,var(--chkbg) 30%,var(--chkfg) 30.99%,var(--chkfg) 40%,transparent 40.99%),linear-gradient(-45deg,var(--chkfg) 50%,var(--chkbg) 50.99%)}.checkbox:indeterminate{--tw-bg-opacity: 1;background-color:var(--fallback-bc,oklch(var(--bc)/var(--tw-bg-opacity)));background-repeat:no-repeat;animation:checkmark var(--animation-input, .2s) ease-out;background-image:linear-gradient(90deg,transparent 80%,var(--chkbg) 80%),linear-gradient(-90deg,transparent 80%,var(--chkbg) 80%),linear-gradient(0deg,var(--chkbg) 43%,var(--chkfg) 43%,var(--chkfg) 57%,var(--chkbg) 57%)}.checkbox-primary{--chkbg: var(--fallback-p,oklch(var(--p)/1));--chkfg: var(--fallback-pc,oklch(var(--pc)/1));--tw-border-opacity: 1;border-color:var(--fallback-p,oklch(var(--p)/var(--tw-border-opacity)))}.checkbox-primary:focus-visible{outline-color:var(--fallback-p,oklch(var(--p)/1))}.checkbox-primary:checked,.checkbox-primary[aria-checked=true]{--tw-border-opacity: 1;border-color:var(--fallback-p,oklch(var(--p)/var(--tw-border-opacity)));--tw-bg-opacity: 1;background-color:var(--fallback-p,oklch(var(--p)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-pc,oklch(var(--pc)/var(--tw-text-opacity)))}.checkbox-success{--chkbg: var(--fallback-su,oklch(var(--su)/1));--chkfg: var(--fallback-suc,oklch(var(--suc)/1));--tw-border-opacity: 1;border-color:var(--fallback-su,oklch(var(--su)/var(--tw-border-opacity)))}.checkbox-success:focus-visible{outline-color:var(--fallback-su,oklch(var(--su)/1))}.checkbox-success:checked,.checkbox-success[aria-checked=true]{--tw-border-opacity: 1;border-color:var(--fallback-su,oklch(var(--su)/var(--tw-border-opacity)));--tw-bg-opacity: 1;background-color:var(--fallback-su,oklch(var(--su)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-suc,oklch(var(--suc)/var(--tw-text-opacity)))}@keyframes checkmark{0%{background-position-y:5px}50%{background-position-y:-2px}to{background-position-y:0}}details.collapse{width:100%}details.collapse summary{position:relative;display:block;outline:2px solid transparent;outline-offset:2px}details.collapse summary::-webkit-details-marker{display:none}.collapse:focus-visible{outline-style:solid;outline-width:2px;outline-offset:2px;outline-color:var(--fallback-bc,oklch(var(--bc)/1))}.collapse:has(.collapse-title:focus-visible),.collapse:has(>input[type=checkbox]:focus-visible),.collapse:has(>input[type=radio]:focus-visible){outline-style:solid;outline-width:2px;outline-offset:2px;outline-color:var(--fallback-bc,oklch(var(--bc)/1))}.collapse-arrow>.collapse-title:after{position:absolute;display:block;height:.5rem;width:.5rem;--tw-translate-y: -100%;--tw-rotate: 45deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-timing-function:cubic-bezier(0,0,.2,1);transition-duration:.15s;transition-duration:.2s;top:1.9rem;inset-inline-end:1.4rem;content:\"\";transform-origin:75% 75%;box-shadow:2px 2px;pointer-events:none}.collapse-plus>.collapse-title:after{position:absolute;display:block;height:.5rem;width:.5rem;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-timing-function:cubic-bezier(0,0,.2,1);transition-duration:.3s;top:.9rem;inset-inline-end:1.4rem;content:\"+\";pointer-events:none}.collapse:not(.collapse-open):not(.collapse-close)>input[type=checkbox],.collapse:not(.collapse-open):not(.collapse-close)>input[type=radio]:not(:checked),.collapse:not(.collapse-open):not(.collapse-close)>.collapse-title{cursor:pointer}.collapse:focus:not(.collapse-open):not(.collapse-close):not(.collapse[open])>.collapse-title{cursor:unset}.collapse-title{position:relative}.collapse-title,:where(.collapse>input[type=checkbox]),:where(.collapse>input[type=radio]){padding:1rem;padding-inline-end:3rem;min-height:3.75rem;transition:background-color .2s ease-out}.collapse[open]>:where(.collapse-content),.collapse-open>:where(.collapse-content),.collapse:focus:not(.collapse-close)>:where(.collapse-content),.collapse:not(.collapse-close)>:where(input[type=checkbox]:checked~.collapse-content),.collapse:not(.collapse-close)>:where(input[type=radio]:checked~.collapse-content){padding-bottom:1rem;transition:padding .2s ease-out,background-color .2s ease-out}.collapse[open].collapse-arrow>.collapse-title:after,.collapse-open.collapse-arrow>.collapse-title:after,.collapse-arrow:focus:not(.collapse-close)>.collapse-title:after,.collapse-arrow:not(.collapse-close)>input[type=checkbox]:checked~.collapse-title:after,.collapse-arrow:not(.collapse-close)>input[type=radio]:checked~.collapse-title:after{--tw-translate-y: -50%;--tw-rotate: 225deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.collapse[open].collapse-plus>.collapse-title:after,.collapse-open.collapse-plus>.collapse-title:after,.collapse-plus:focus:not(.collapse-close)>.collapse-title:after,.collapse-plus:not(.collapse-close)>input[type=checkbox]:checked~.collapse-title:after,.collapse-plus:not(.collapse-close)>input[type=radio]:checked~.collapse-title:after{content:\"\u2212\"}.divider:not(:empty){gap:1rem}.dropdown.dropdown-open .dropdown-content,.dropdown:focus .dropdown-content,.dropdown:focus-within .dropdown-content{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.label-text{font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)))}.label-text-alt{font-size:.75rem;line-height:1rem;--tw-text-opacity: 1;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)))}.input input{--tw-bg-opacity: 1;background-color:var(--fallback-p,oklch(var(--p)/var(--tw-bg-opacity)));background-color:transparent}.input input:focus{outline:2px solid transparent;outline-offset:2px}.input[list]::-webkit-calendar-picker-indicator{line-height:1em}.input-bordered{border-color:var(--fallback-bc,oklch(var(--bc)/.2))}.input:focus,.input:focus-within{box-shadow:none;border-color:var(--fallback-bc,oklch(var(--bc)/.2));outline-style:solid;outline-width:2px;outline-offset:2px;outline-color:var(--fallback-bc,oklch(var(--bc)/.2))}.input-error{--tw-border-opacity: 1;border-color:var(--fallback-er,oklch(var(--er)/var(--tw-border-opacity)))}.input-error:focus,.input-error:focus-within{--tw-border-opacity: 1;border-color:var(--fallback-er,oklch(var(--er)/var(--tw-border-opacity)));outline-color:var(--fallback-er,oklch(var(--er)/1))}.input:has(>input[disabled]),.input-disabled,.input:disabled,.input[disabled]{cursor:not-allowed;--tw-border-opacity: 1;border-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-border-opacity)));--tw-bg-opacity: 1;background-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-bg-opacity)));color:var(--fallback-bc,oklch(var(--bc)/.4))}.input:has(>input[disabled])::-moz-placeholder,.input-disabled::-moz-placeholder,.input:disabled::-moz-placeholder,.input[disabled]::-moz-placeholder{color:var(--fallback-bc,oklch(var(--bc)/var(--tw-placeholder-opacity)));--tw-placeholder-opacity: .2}.input:has(>input[disabled])::placeholder,.input-disabled::placeholder,.input:disabled::placeholder,.input[disabled]::placeholder{color:var(--fallback-bc,oklch(var(--bc)/var(--tw-placeholder-opacity)));--tw-placeholder-opacity: .2}.input:has(>input[disabled])>input[disabled]{cursor:not-allowed}.input::-webkit-date-and-time-value{text-align:inherit}.join>:where(*:not(:first-child)){margin-top:0;margin-bottom:0;margin-inline-start:-1px}.join>:where(*:not(:first-child)):is(.btn){margin-inline-start:calc(var(--border-btn) * -1)}.join-item:focus{isolation:isolate}.link:focus{outline:2px solid transparent;outline-offset:2px}.link:focus-visible{outline:2px solid currentColor;outline-offset:2px}.\\!loading{pointer-events:none!important;display:inline-block!important;aspect-ratio:1 / 1!important;width:1.5rem!important;background-color:currentColor!important;-webkit-mask-size:100%!important;mask-size:100%!important;-webkit-mask-repeat:no-repeat!important;mask-repeat:no-repeat!important;-webkit-mask-position:center!important;mask-position:center!important;-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg width='24' height='24' stroke='black' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg transform-origin='center'%3E%3Ccircle cx='12' cy='12' r='9.5' fill='none' stroke-width='3' stroke-linecap='round'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 12 12' to='360 12 12' dur='2s' repeatCount='indefinite'/%3E%3Canimate attributeName='stroke-dasharray' values='0,150;42,150;42,150' keyTimes='0;0.475;1' dur='1.5s' repeatCount='indefinite'/%3E%3Canimate attributeName='stroke-dashoffset' values='0;-16;-59' keyTimes='0;0.475;1' dur='1.5s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/g%3E%3C/svg%3E\")!important;mask-image:url(\"data:image/svg+xml,%3Csvg width='24' height='24' stroke='black' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg transform-origin='center'%3E%3Ccircle cx='12' cy='12' r='9.5' fill='none' stroke-width='3' stroke-linecap='round'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 12 12' to='360 12 12' dur='2s' repeatCount='indefinite'/%3E%3Canimate attributeName='stroke-dasharray' values='0,150;42,150;42,150' keyTimes='0;0.475;1' dur='1.5s' repeatCount='indefinite'/%3E%3Canimate attributeName='stroke-dashoffset' values='0;-16;-59' keyTimes='0;0.475;1' dur='1.5s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/g%3E%3C/svg%3E\")!important}.loading{pointer-events:none;display:inline-block;aspect-ratio:1 / 1;width:1.5rem;background-color:currentColor;-webkit-mask-size:100%;mask-size:100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:center;mask-position:center;-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg width='24' height='24' stroke='black' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg transform-origin='center'%3E%3Ccircle cx='12' cy='12' r='9.5' fill='none' stroke-width='3' stroke-linecap='round'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 12 12' to='360 12 12' dur='2s' repeatCount='indefinite'/%3E%3Canimate attributeName='stroke-dasharray' values='0,150;42,150;42,150' keyTimes='0;0.475;1' dur='1.5s' repeatCount='indefinite'/%3E%3Canimate attributeName='stroke-dashoffset' values='0;-16;-59' keyTimes='0;0.475;1' dur='1.5s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg width='24' height='24' stroke='black' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg transform-origin='center'%3E%3Ccircle cx='12' cy='12' r='9.5' fill='none' stroke-width='3' stroke-linecap='round'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 12 12' to='360 12 12' dur='2s' repeatCount='indefinite'/%3E%3Canimate attributeName='stroke-dasharray' values='0,150;42,150;42,150' keyTimes='0;0.475;1' dur='1.5s' repeatCount='indefinite'/%3E%3Canimate attributeName='stroke-dashoffset' values='0;-16;-59' keyTimes='0;0.475;1' dur='1.5s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/g%3E%3C/svg%3E\")}.loading-spinner{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg width='24' height='24' stroke='black' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg transform-origin='center'%3E%3Ccircle cx='12' cy='12' r='9.5' fill='none' stroke-width='3' stroke-linecap='round'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 12 12' to='360 12 12' dur='2s' repeatCount='indefinite'/%3E%3Canimate attributeName='stroke-dasharray' values='0,150;42,150;42,150' keyTimes='0;0.475;1' dur='1.5s' repeatCount='indefinite'/%3E%3Canimate attributeName='stroke-dashoffset' values='0;-16;-59' keyTimes='0;0.475;1' dur='1.5s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg width='24' height='24' stroke='black' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg transform-origin='center'%3E%3Ccircle cx='12' cy='12' r='9.5' fill='none' stroke-width='3' stroke-linecap='round'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 12 12' to='360 12 12' dur='2s' repeatCount='indefinite'/%3E%3Canimate attributeName='stroke-dasharray' values='0,150;42,150;42,150' keyTimes='0;0.475;1' dur='1.5s' repeatCount='indefinite'/%3E%3Canimate attributeName='stroke-dashoffset' values='0;-16;-59' keyTimes='0;0.475;1' dur='1.5s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/g%3E%3C/svg%3E\")}.loading-xs{width:1rem}.loading-sm{width:1.25rem}.loading-lg{width:2.5rem}:where(.menu li:empty){--tw-bg-opacity: 1;background-color:var(--fallback-bc,oklch(var(--bc)/var(--tw-bg-opacity)));opacity:.1;margin:.5rem 1rem;height:1px}.menu :where(li ul):before{position:absolute;bottom:.75rem;inset-inline-start:0px;top:.75rem;width:1px;--tw-bg-opacity: 1;background-color:var(--fallback-bc,oklch(var(--bc)/var(--tw-bg-opacity)));opacity:.1;content:\"\"}.menu :where(li:not(.menu-title)>*:not(ul,details,.menu-title,.btn)),.menu :where(li:not(.menu-title)>details>summary:not(.menu-title)){border-radius:var(--rounded-btn, .5rem);padding:.5rem 1rem;text-align:start;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-timing-function:cubic-bezier(0,0,.2,1);transition-duration:.2s;text-wrap:balance}:where(.menu li:not(.menu-title,.disabled)>*:not(ul,details,.menu-title)):not(summary,.active,.btn).focus,:where(.menu li:not(.menu-title,.disabled)>*:not(ul,details,.menu-title)):not(summary,.active,.btn):focus,:where(.menu li:not(.menu-title,.disabled)>*:not(ul,details,.menu-title)):is(summary):not(.active,.btn):focus-visible,:where(.menu li:not(.menu-title,.disabled)>details>summary:not(.menu-title)):not(summary,.active,.btn).focus,:where(.menu li:not(.menu-title,.disabled)>details>summary:not(.menu-title)):not(summary,.active,.btn):focus,:where(.menu li:not(.menu-title,.disabled)>details>summary:not(.menu-title)):is(summary):not(.active,.btn):focus-visible{cursor:pointer;background-color:var(--fallback-bc,oklch(var(--bc)/.1));--tw-text-opacity: 1;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)));outline:2px solid transparent;outline-offset:2px}.menu li>*:not(ul,.menu-title,details,.btn):active,.menu li>*:not(ul,.menu-title,details,.btn).active,.menu li>details>summary:active{--tw-bg-opacity: 1;background-color:var(--fallback-n,oklch(var(--n)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-nc,oklch(var(--nc)/var(--tw-text-opacity)))}.menu :where(li>details>summary)::-webkit-details-marker{display:none}.menu :where(li>details>summary):after,.menu :where(li>.menu-dropdown-toggle):after{justify-self:end;display:block;margin-top:-.5rem;height:.5rem;width:.5rem;transform:rotate(45deg);transition-property:transform,margin-top;transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1);content:\"\";transform-origin:75% 75%;box-shadow:2px 2px;pointer-events:none}.menu :where(li>details[open]>summary):after,.menu :where(li>.menu-dropdown-toggle.menu-dropdown-show):after{transform:rotate(225deg);margin-top:0}.mockup-code:before{content:\"\";margin-bottom:1rem;display:block;height:.75rem;width:.75rem;border-radius:9999px;opacity:.3;box-shadow:1.4em 0,2.8em 0,4.2em 0}.mockup-code pre{padding-right:1.25rem}.mockup-code pre:before{content:\"\";margin-right:2ch}.mockup-phone .display{overflow:hidden;border-radius:40px;margin-top:-25px}.mockup-browser .mockup-browser-toolbar .input{position:relative;margin-left:auto;margin-right:auto;display:block;height:1.75rem;width:24rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;--tw-bg-opacity: 1;background-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-bg-opacity)));padding-left:2rem;direction:ltr}.mockup-browser .mockup-browser-toolbar .input:before{content:\"\";position:absolute;left:.5rem;top:50%;aspect-ratio:1 / 1;height:.75rem;--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));border-radius:9999px;border-width:2px;border-color:currentColor;opacity:.6}.mockup-browser .mockup-browser-toolbar .input:after{content:\"\";position:absolute;left:1.25rem;top:50%;height:.5rem;--tw-translate-y: 25%;--tw-rotate: -45deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));border-radius:9999px;border-width:1px;border-color:currentColor;opacity:.6}.modal:not(dialog:not(.modal-open)),.modal::backdrop{background-color:#0006;animation:modal-pop .2s ease-out}.modal-backdrop{z-index:-1;grid-column-start:1;grid-row-start:1;display:grid;align-self:stretch;justify-self:stretch;color:transparent}.modal-open .modal-box,.modal-toggle:checked+.modal .modal-box,.modal:target .modal-box,.modal[open] .modal-box{--tw-translate-y: 0px;--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.modal-action>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.modal-action:where([dir=rtl],[dir=rtl] *)>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 1}@keyframes modal-pop{0%{opacity:0}}@keyframes progress-loading{50%{background-position-x:-115%}}.radio:focus{box-shadow:none}.radio:focus-visible{outline-style:solid;outline-width:2px;outline-offset:2px;outline-color:var(--fallback-bc,oklch(var(--bc)/1))}.radio:checked,.radio[aria-checked=true]{--tw-bg-opacity: 1;background-color:var(--fallback-bc,oklch(var(--bc)/var(--tw-bg-opacity)));background-image:none;animation:radiomark var(--animation-input, .2s) ease-out;box-shadow:0 0 0 4px var(--fallback-b1,oklch(var(--b1)/1)) inset,0 0 0 4px var(--fallback-b1,oklch(var(--b1)/1)) inset}.radio:disabled{cursor:not-allowed;opacity:.2}@keyframes radiomark{0%{box-shadow:0 0 0 12px var(--fallback-b1,oklch(var(--b1)/1)) inset,0 0 0 12px var(--fallback-b1,oklch(var(--b1)/1)) inset}50%{box-shadow:0 0 0 3px var(--fallback-b1,oklch(var(--b1)/1)) inset,0 0 0 3px var(--fallback-b1,oklch(var(--b1)/1)) inset}to{box-shadow:0 0 0 4px var(--fallback-b1,oklch(var(--b1)/1)) inset,0 0 0 4px var(--fallback-b1,oklch(var(--b1)/1)) inset}}.range:focus-visible::-webkit-slider-thumb{--focus-shadow: 0 0 0 6px var(--fallback-b1,oklch(var(--b1)/1)) inset, 0 0 0 2rem var(--range-shdw) inset}.range:focus-visible::-moz-range-thumb{--focus-shadow: 0 0 0 6px var(--fallback-b1,oklch(var(--b1)/1)) inset, 0 0 0 2rem var(--range-shdw) inset}.range::-webkit-slider-runnable-track{height:.5rem;width:100%;border-radius:var(--rounded-box, 1rem);background-color:var(--fallback-bc,oklch(var(--bc)/.1))}.range::-moz-range-track{height:.5rem;width:100%;border-radius:var(--rounded-box, 1rem);background-color:var(--fallback-bc,oklch(var(--bc)/.1))}.range::-webkit-slider-thumb{position:relative;height:1.5rem;width:1.5rem;border-radius:var(--rounded-box, 1rem);border-style:none;--tw-bg-opacity: 1;background-color:var(--fallback-b1,oklch(var(--b1)/var(--tw-bg-opacity)));appearance:none;-webkit-appearance:none;top:50%;color:var(--range-shdw);transform:translateY(-50%);--filler-size: 100rem;--filler-offset: .6rem;box-shadow:0 0 0 3px var(--range-shdw) inset,var(--focus-shadow, 0 0),calc(var(--filler-size) * -1 - var(--filler-offset)) 0 0 var(--filler-size)}.range::-moz-range-thumb{position:relative;height:1.5rem;width:1.5rem;border-radius:var(--rounded-box, 1rem);border-style:none;--tw-bg-opacity: 1;background-color:var(--fallback-b1,oklch(var(--b1)/var(--tw-bg-opacity)));top:50%;color:var(--range-shdw);--filler-size: 100rem;--filler-offset: .5rem;box-shadow:0 0 0 3px var(--range-shdw) inset,var(--focus-shadow, 0 0),calc(var(--filler-size) * -1 - var(--filler-offset)) 0 0 var(--filler-size)}@keyframes rating-pop{0%{transform:translateY(-.125em)}40%{transform:translateY(-.125em)}to{transform:translateY(0)}}.select-bordered{border-color:var(--fallback-bc,oklch(var(--bc)/.2))}.select:focus{box-shadow:none;border-color:var(--fallback-bc,oklch(var(--bc)/.2));outline-style:solid;outline-width:2px;outline-offset:2px;outline-color:var(--fallback-bc,oklch(var(--bc)/.2))}.select-disabled,.select:disabled,.select[disabled]{cursor:not-allowed;--tw-border-opacity: 1;border-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-border-opacity)));--tw-bg-opacity: 1;background-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-bg-opacity)));color:var(--fallback-bc,oklch(var(--bc)/.4))}.select-disabled::-moz-placeholder,.select:disabled::-moz-placeholder,.select[disabled]::-moz-placeholder{color:var(--fallback-bc,oklch(var(--bc)/var(--tw-placeholder-opacity)));--tw-placeholder-opacity: .2}.select-disabled::placeholder,.select:disabled::placeholder,.select[disabled]::placeholder{color:var(--fallback-bc,oklch(var(--bc)/var(--tw-placeholder-opacity)));--tw-placeholder-opacity: .2}.select-multiple,.select[multiple],.select[size].select:not([size=\"1\"]){background-image:none;padding-right:1rem}[dir=rtl] .select{background-position:calc(0% + 12px) calc(1px + 50%),calc(0% + 16px) calc(1px + 50%)}@keyframes skeleton{0%{background-position:150%}to{background-position:-50%}}:where(.stats)>:not([hidden])~:not([hidden]){--tw-divide-x-reverse: 0;border-right-width:calc(1px * var(--tw-divide-x-reverse));border-left-width:calc(1px * calc(1 - var(--tw-divide-x-reverse)));--tw-divide-y-reverse: 0;border-top-width:calc(0px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(0px * var(--tw-divide-y-reverse))}[dir=rtl] .stats>*:not([hidden])~*:not([hidden]){--tw-divide-x-reverse: 1}.steps .step:before{top:0;grid-column-start:1;grid-row-start:1;height:.5rem;width:100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));--tw-bg-opacity: 1;background-color:var(--fallback-b3,oklch(var(--b3)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)));content:\"\";margin-inline-start:-100%}.steps .step:after{content:counter(step);counter-increment:step;z-index:1;position:relative;grid-column-start:1;grid-row-start:1;display:grid;height:2rem;width:2rem;place-items:center;place-self:center;border-radius:9999px;--tw-bg-opacity: 1;background-color:var(--fallback-b3,oklch(var(--b3)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)))}.steps .step:first-child:before{content:none}.steps .step[data-content]:after{content:attr(data-content)}.steps .step-neutral+.step-neutral:before,.steps .step-neutral:after{--tw-bg-opacity: 1;background-color:var(--fallback-n,oklch(var(--n)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-nc,oklch(var(--nc)/var(--tw-text-opacity)))}.steps .step-primary+.step-primary:before,.steps .step-primary:after{--tw-bg-opacity: 1;background-color:var(--fallback-p,oklch(var(--p)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-pc,oklch(var(--pc)/var(--tw-text-opacity)))}.steps .step-secondary+.step-secondary:before,.steps .step-secondary:after{--tw-bg-opacity: 1;background-color:var(--fallback-s,oklch(var(--s)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-sc,oklch(var(--sc)/var(--tw-text-opacity)))}.steps .step-accent+.step-accent:before,.steps .step-accent:after{--tw-bg-opacity: 1;background-color:var(--fallback-a,oklch(var(--a)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-ac,oklch(var(--ac)/var(--tw-text-opacity)))}.steps .step-info+.step-info:before{--tw-bg-opacity: 1;background-color:var(--fallback-in,oklch(var(--in)/var(--tw-bg-opacity)))}.steps .step-info:after{--tw-bg-opacity: 1;background-color:var(--fallback-in,oklch(var(--in)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-inc,oklch(var(--inc)/var(--tw-text-opacity)))}.steps .step-success+.step-success:before{--tw-bg-opacity: 1;background-color:var(--fallback-su,oklch(var(--su)/var(--tw-bg-opacity)))}.steps .step-success:after{--tw-bg-opacity: 1;background-color:var(--fallback-su,oklch(var(--su)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-suc,oklch(var(--suc)/var(--tw-text-opacity)))}.steps .step-warning+.step-warning:before{--tw-bg-opacity: 1;background-color:var(--fallback-wa,oklch(var(--wa)/var(--tw-bg-opacity)))}.steps .step-warning:after{--tw-bg-opacity: 1;background-color:var(--fallback-wa,oklch(var(--wa)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-wac,oklch(var(--wac)/var(--tw-text-opacity)))}.steps .step-error+.step-error:before{--tw-bg-opacity: 1;background-color:var(--fallback-er,oklch(var(--er)/var(--tw-bg-opacity)))}.steps .step-error:after{--tw-bg-opacity: 1;background-color:var(--fallback-er,oklch(var(--er)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-erc,oklch(var(--erc)/var(--tw-text-opacity)))}.tabs-lifted>.tab:focus-visible{border-end-end-radius:0;border-end-start-radius:0}.tab:is(.tab-active,[aria-selected=true]):not(.tab-disabled):not([disabled]),.tab:is(input:checked){border-color:var(--fallback-bc,oklch(var(--bc)/var(--tw-border-opacity)));--tw-border-opacity: 1;--tw-text-opacity: 1}.tab:focus{outline:2px solid transparent;outline-offset:2px}.tab:focus-visible{outline:2px solid currentColor;outline-offset:-5px}.tab-disabled,.tab[disabled]{cursor:not-allowed;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)));--tw-text-opacity: .2}.tabs-bordered>.tab{border-color:var(--fallback-bc,oklch(var(--bc)/var(--tw-border-opacity)));--tw-border-opacity: .2;border-style:solid;border-bottom-width:calc(var(--tab-border, 1px) + 1px)}.tabs-lifted>.tab{border:var(--tab-border, 1px) solid transparent;border-width:0 0 var(--tab-border, 1px) 0;border-start-start-radius:var(--tab-radius, .5rem);border-start-end-radius:var(--tab-radius, .5rem);border-bottom-color:var(--tab-border-color);padding-inline-start:var(--tab-padding, 1rem);padding-inline-end:var(--tab-padding, 1rem);padding-top:var(--tab-border, 1px)}.tabs-lifted>.tab:is(.tab-active,[aria-selected=true]):not(.tab-disabled):not([disabled]),.tabs-lifted>.tab:is(input:checked){background-color:var(--tab-bg);border-width:var(--tab-border, 1px) var(--tab-border, 1px) 0 var(--tab-border, 1px);border-inline-start-color:var(--tab-border-color);border-inline-end-color:var(--tab-border-color);border-top-color:var(--tab-border-color);padding-inline-start:calc(var(--tab-padding, 1rem) - var(--tab-border, 1px));padding-inline-end:calc(var(--tab-padding, 1rem) - var(--tab-border, 1px));padding-bottom:var(--tab-border, 1px);padding-top:0}.tabs-lifted>.tab:is(.tab-active,[aria-selected=true]):not(.tab-disabled):not([disabled]):before,.tabs-lifted>.tab:is(input:checked):before{z-index:1;content:\"\";display:block;position:absolute;width:calc(100% + var(--tab-radius, .5rem) * 2);height:var(--tab-radius, .5rem);bottom:0;background-size:var(--tab-radius, .5rem);background-position:top left,top right;background-repeat:no-repeat;--tab-grad: calc(69% - var(--tab-border, 1px));--radius-start: radial-gradient( circle at top left, transparent var(--tab-grad), var(--tab-border-color) calc(var(--tab-grad) + .25px), var(--tab-border-color) calc(var(--tab-grad) + var(--tab-border, 1px)), var(--tab-bg) calc(var(--tab-grad) + var(--tab-border, 1px) + .25px) );--radius-end: radial-gradient( circle at top right, transparent var(--tab-grad), var(--tab-border-color) calc(var(--tab-grad) + .25px), var(--tab-border-color) calc(var(--tab-grad) + var(--tab-border, 1px)), var(--tab-bg) calc(var(--tab-grad) + var(--tab-border, 1px) + .25px) );background-image:var(--radius-start),var(--radius-end)}.tabs-lifted>.tab:is(.tab-active,[aria-selected=true]):not(.tab-disabled):not([disabled]):first-child:before,.tabs-lifted>.tab:is(input:checked):first-child:before{background-image:var(--radius-end);background-position:top right}[dir=rtl] .tabs-lifted>.tab:is(.tab-active,[aria-selected=true]):not(.tab-disabled):not([disabled]):first-child:before,[dir=rtl] .tabs-lifted>.tab:is(input:checked):first-child:before{background-image:var(--radius-start);background-position:top left}.tabs-lifted>.tab:is(.tab-active,[aria-selected=true]):not(.tab-disabled):not([disabled]):last-child:before,.tabs-lifted>.tab:is(input:checked):last-child:before{background-image:var(--radius-start);background-position:top left}[dir=rtl] .tabs-lifted>.tab:is(.tab-active,[aria-selected=true]):not(.tab-disabled):not([disabled]):last-child:before,[dir=rtl] .tabs-lifted>.tab:is(input:checked):last-child:before{background-image:var(--radius-end);background-position:top right}.tabs-lifted>:is(.tab-active,[aria-selected=true]):not(.tab-disabled):not([disabled])+.tabs-lifted :is(.tab-active,[aria-selected=true]):not(.tab-disabled):not([disabled]):before,.tabs-lifted>.tab:is(input:checked)+.tabs-lifted .tab:is(input:checked):before{background-image:var(--radius-end);background-position:top right}.tabs-boxed{border-radius:var(--rounded-btn, .5rem);--tw-bg-opacity: 1;background-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-bg-opacity)));padding:.25rem}.tabs-boxed .tab{border-radius:var(--rounded-btn, .5rem)}.tabs-boxed :is(.tab-active,[aria-selected=true]):not(.tab-disabled):not([disabled]),.tabs-boxed :is(input:checked){--tw-bg-opacity: 1;background-color:var(--fallback-p,oklch(var(--p)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-pc,oklch(var(--pc)/var(--tw-text-opacity)))}.table:where([dir=rtl],[dir=rtl] *){text-align:right}.table :where(th,td){padding:.75rem 1rem;vertical-align:middle}.table tr.active,.table tr.active:nth-child(2n),.table-zebra tbody tr:nth-child(2n){--tw-bg-opacity: 1;background-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-bg-opacity)))}.table-zebra tr.active,.table-zebra tr.active:nth-child(2n),.table-zebra-zebra tbody tr:nth-child(2n){--tw-bg-opacity: 1;background-color:var(--fallback-b3,oklch(var(--b3)/var(--tw-bg-opacity)))}.table :where(thead tr,tbody tr:not(:last-child),tbody tr:first-child:last-child){border-bottom-width:1px;--tw-border-opacity: 1;border-bottom-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-border-opacity)))}.table :where(thead,tfoot){white-space:nowrap;font-size:.75rem;line-height:1rem;font-weight:700;color:var(--fallback-bc,oklch(var(--bc)/.6))}.table :where(tfoot){border-top-width:1px;--tw-border-opacity: 1;border-top-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-border-opacity)))}.textarea-bordered{border-color:var(--fallback-bc,oklch(var(--bc)/.2))}.textarea:focus{box-shadow:none;border-color:var(--fallback-bc,oklch(var(--bc)/.2));outline-style:solid;outline-width:2px;outline-offset:2px;outline-color:var(--fallback-bc,oklch(var(--bc)/.2))}.textarea-disabled,.textarea:disabled,.textarea[disabled]{cursor:not-allowed;--tw-border-opacity: 1;border-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-border-opacity)));--tw-bg-opacity: 1;background-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-bg-opacity)));color:var(--fallback-bc,oklch(var(--bc)/.4))}.textarea-disabled::-moz-placeholder,.textarea:disabled::-moz-placeholder,.textarea[disabled]::-moz-placeholder{color:var(--fallback-bc,oklch(var(--bc)/var(--tw-placeholder-opacity)));--tw-placeholder-opacity: .2}.textarea-disabled::placeholder,.textarea:disabled::placeholder,.textarea[disabled]::placeholder{color:var(--fallback-bc,oklch(var(--bc)/var(--tw-placeholder-opacity)));--tw-placeholder-opacity: .2}.toast>*{animation:toast-pop .25s ease-out}@keyframes toast-pop{0%{transform:scale(.9);opacity:0}to{transform:scale(1);opacity:1}}[dir=rtl] .toggle{--handleoffsetcalculator: calc(var(--handleoffset) * 1)}.toggle:focus-visible{outline-style:solid;outline-width:2px;outline-offset:2px;outline-color:var(--fallback-bc,oklch(var(--bc)/.2))}.toggle:hover{background-color:currentColor}.toggle:checked,.toggle[aria-checked=true]{background-image:none;--handleoffsetcalculator: var(--handleoffset);--tw-text-opacity: 1;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)))}[dir=rtl] .toggle:checked,[dir=rtl] .toggle[aria-checked=true]{--handleoffsetcalculator: calc(var(--handleoffset) * -1)}.toggle:indeterminate{--tw-text-opacity: 1;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)));box-shadow:calc(var(--handleoffset) / 2) 0 0 2px var(--tglbg) inset,calc(var(--handleoffset) / -2) 0 0 2px var(--tglbg) inset,0 0 0 2px var(--tglbg) inset}[dir=rtl] .toggle:indeterminate{box-shadow:calc(var(--handleoffset) / 2) 0 0 2px var(--tglbg) inset,calc(var(--handleoffset) / -2) 0 0 2px var(--tglbg) inset,0 0 0 2px var(--tglbg) inset}.toggle-primary:focus-visible{outline-color:var(--fallback-p,oklch(var(--p)/1))}.toggle-primary:checked,.toggle-primary[aria-checked=true]{border-color:var(--fallback-p,oklch(var(--p)/var(--tw-border-opacity)));--tw-border-opacity: .1;--tw-bg-opacity: 1;background-color:var(--fallback-p,oklch(var(--p)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-pc,oklch(var(--pc)/var(--tw-text-opacity)))}.toggle:disabled{cursor:not-allowed;--tw-border-opacity: 1;border-color:var(--fallback-bc,oklch(var(--bc)/var(--tw-border-opacity)));background-color:transparent;opacity:.3;--togglehandleborder: 0 0 0 3px var(--fallback-bc,oklch(var(--bc)/1)) inset, var(--handleoffsetcalculator) 0 0 3px var(--fallback-bc,oklch(var(--bc)/1)) inset}.badge-xs{height:.75rem;font-size:.75rem;line-height:.75rem;padding-left:.313rem;padding-right:.313rem}.badge-sm{height:1rem;font-size:.75rem;line-height:1rem;padding-left:.438rem;padding-right:.438rem}.badge-lg{height:1.5rem;font-size:1rem;line-height:1.5rem;padding-left:.688rem;padding-right:.688rem}.btm-nav-xs>*:where(.active){border-top-width:1px}.btm-nav-sm>*:where(.active){border-top-width:2px}.btm-nav-md>*:where(.active){border-top-width:2px}.btm-nav-lg>*:where(.active){border-top-width:4px}.btn-xs{height:1.5rem;min-height:1.5rem;padding-left:.5rem;padding-right:.5rem;font-size:.75rem}.btn-sm{height:2rem;min-height:2rem;padding-left:.75rem;padding-right:.75rem;font-size:.875rem}.btn-square:where(.btn-xs){height:1.5rem;width:1.5rem;padding:0}.btn-square:where(.btn-sm){height:2rem;width:2rem;padding:0}.btn-square:where(.btn-md){height:3rem;width:3rem;padding:0}.btn-square:where(.btn-lg){height:4rem;width:4rem;padding:0}.btn-circle:where(.btn-xs){height:1.5rem;width:1.5rem;border-radius:9999px;padding:0}.btn-circle:where(.btn-sm){height:2rem;width:2rem;border-radius:9999px;padding:0}.btn-circle:where(.btn-md){height:3rem;width:3rem;border-radius:9999px;padding:0}.btn-circle:where(.btn-lg){height:4rem;width:4rem;border-radius:9999px;padding:0}[type=checkbox].checkbox-sm{height:1.25rem;width:1.25rem}.indicator :where(.indicator-item){bottom:auto;inset-inline-end:0px;inset-inline-start:auto;top:0;--tw-translate-y: -50%;--tw-translate-x: 50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.indicator :where(.indicator-item):where([dir=rtl],[dir=rtl] *){--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.indicator :where(.indicator-item.indicator-start){inset-inline-end:auto;inset-inline-start:0px;--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.indicator :where(.indicator-item.indicator-start):where([dir=rtl],[dir=rtl] *){--tw-translate-x: 50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.indicator :where(.indicator-item.indicator-center){inset-inline-end:50%;inset-inline-start:50%;--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.indicator :where(.indicator-item.indicator-center):where([dir=rtl],[dir=rtl] *){--tw-translate-x: 50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.indicator :where(.indicator-item.indicator-end){inset-inline-end:0px;inset-inline-start:auto;--tw-translate-x: 50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.indicator :where(.indicator-item.indicator-end):where([dir=rtl],[dir=rtl] *){--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.indicator :where(.indicator-item.indicator-bottom){bottom:0;top:auto;--tw-translate-y: 50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.indicator :where(.indicator-item.indicator-middle){bottom:50%;top:50%;--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.indicator :where(.indicator-item.indicator-top){bottom:auto;top:0;--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.input-sm{height:2rem;padding-left:.75rem;padding-right:.75rem;font-size:.875rem;line-height:2rem}.join.join-vertical{flex-direction:column}.join.join-vertical .join-item:first-child:not(:last-child),.join.join-vertical *:first-child:not(:last-child) .join-item{border-end-start-radius:0;border-end-end-radius:0;border-start-start-radius:inherit;border-start-end-radius:inherit}.join.join-vertical .join-item:last-child:not(:first-child),.join.join-vertical *:last-child:not(:first-child) .join-item{border-start-start-radius:0;border-start-end-radius:0;border-end-start-radius:inherit;border-end-end-radius:inherit}.join.join-horizontal{flex-direction:row}.join.join-horizontal .join-item:first-child:not(:last-child),.join.join-horizontal *:first-child:not(:last-child) .join-item{border-end-end-radius:0;border-start-end-radius:0;border-end-start-radius:inherit;border-start-start-radius:inherit}.join.join-horizontal .join-item:last-child:not(:first-child),.join.join-horizontal *:last-child:not(:first-child) .join-item{border-end-start-radius:0;border-start-start-radius:0;border-end-end-radius:inherit;border-start-end-radius:inherit}.kbd-xs{padding-left:.25rem;padding-right:.25rem;font-size:.75rem;line-height:1rem;min-height:1.2em;min-width:1.2em}.menu-horizontal{display:inline-flex;flex-direction:row}.menu-horizontal>li:not(.menu-title)>details>ul{position:absolute}.select-sm{height:2rem;min-height:2rem;padding-left:.75rem;padding-right:2rem;font-size:.875rem;line-height:2rem}[dir=rtl] .select-sm{padding-left:2rem;padding-right:.75rem}.steps-horizontal .step{display:grid;grid-template-columns:repeat(1,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));place-items:center;text-align:center}.steps-vertical .step{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(1,minmax(0,1fr))}.tabs-md :where(.tab){height:2rem;font-size:.875rem;line-height:1.25rem;line-height:2;--tab-padding: 1rem}.tabs-lg :where(.tab){height:3rem;font-size:1.125rem;line-height:1.75rem;line-height:2;--tab-padding: 1.25rem}.tabs-sm :where(.tab){height:1.5rem;font-size:.875rem;line-height:.75rem;--tab-padding: .75rem}.tabs-xs :where(.tab){height:1.25rem;font-size:.75rem;line-height:.75rem;--tab-padding: .5rem}.textarea-sm{padding:.25rem .75rem;font-size:.875rem;line-height:2rem}:where(.toast){bottom:0;inset-inline-end:0px;inset-inline-start:auto;top:auto;--tw-translate-x: 0px;--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.toast:where(.toast-start){inset-inline-end:auto;inset-inline-start:0px;--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.toast:where(.toast-center){inset-inline-end:50%;inset-inline-start:50%;--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.toast:where(.toast-center):where([dir=rtl],[dir=rtl] *){--tw-translate-x: 50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.toast:where(.toast-end){inset-inline-end:0px;inset-inline-start:auto;--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.toast:where(.toast-bottom){bottom:0;top:auto;--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.toast:where(.toast-middle){bottom:auto;top:50%;--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.toast:where(.toast-top){bottom:auto;top:0;--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}[type=checkbox].toggle-sm{--handleoffset: .75rem;height:1.25rem;width:2rem}.tooltip{position:relative;display:inline-block;--tooltip-offset: calc(100% + 1px + var(--tooltip-tail, 0px))}.tooltip:before{position:absolute;pointer-events:none;z-index:1;content:var(--tw-content);--tw-content: attr(data-tip)}.tooltip:before,.tooltip-top:before{transform:translate(-50%);top:auto;left:50%;right:auto;bottom:var(--tooltip-offset)}.tooltip-right:before{transform:translateY(-50%);top:50%;left:var(--tooltip-offset);right:auto;bottom:auto}.card-compact .card-body{padding:1rem;font-size:.875rem;line-height:1.25rem}.card-compact .card-title{margin-bottom:.25rem}.card-normal .card-body{padding:var(--padding-card, 2rem);font-size:1rem;line-height:1.5rem}.card-normal .card-title{margin-bottom:.75rem}.join.join-vertical>:where(*:not(:first-child)){margin-left:0;margin-right:0;margin-top:-1px}.join.join-vertical>:where(*:not(:first-child)):is(.btn){margin-top:calc(var(--border-btn) * -1)}.join.join-horizontal>:where(*:not(:first-child)){margin-top:0;margin-bottom:0;margin-inline-start:-1px}.join.join-horizontal>:where(*:not(:first-child)):is(.btn){margin-inline-start:calc(var(--border-btn) * -1);margin-top:0}.menu-horizontal>li:not(.menu-title)>details>ul{margin-inline-start:0px;margin-top:1rem;padding-top:.5rem;padding-bottom:.5rem;padding-inline-end:.5rem}.menu-horizontal>li>details>ul:before{content:none}:where(.menu-horizontal>li:not(.menu-title)>details>ul){border-radius:var(--rounded-box, 1rem);--tw-bg-opacity: 1;background-color:var(--fallback-b1,oklch(var(--b1)/var(--tw-bg-opacity)));--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.modal-top :where(.modal-box){width:100%;max-width:none;--tw-translate-y: -2.5rem;--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));border-bottom-right-radius:var(--rounded-box, 1rem);border-bottom-left-radius:var(--rounded-box, 1rem);border-top-left-radius:0;border-top-right-radius:0}.modal-middle :where(.modal-box){width:91.666667%;max-width:32rem;--tw-translate-y: 0px;--tw-scale-x: .9;--tw-scale-y: .9;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));border-top-left-radius:var(--rounded-box, 1rem);border-top-right-radius:var(--rounded-box, 1rem);border-bottom-right-radius:var(--rounded-box, 1rem);border-bottom-left-radius:var(--rounded-box, 1rem)}.modal-bottom :where(.modal-box){width:100%;max-width:none;--tw-translate-y: 2.5rem;--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));border-top-left-radius:var(--rounded-box, 1rem);border-top-right-radius:var(--rounded-box, 1rem);border-bottom-right-radius:0;border-bottom-left-radius:0}.steps-horizontal .step{grid-template-rows:40px 1fr;grid-template-columns:auto;min-width:4rem}.steps-horizontal .step:before{height:.5rem;width:100%;--tw-translate-x: 0px;--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));content:\"\";margin-inline-start:-100%}.steps-horizontal .step:where([dir=rtl],[dir=rtl] *):before{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.steps-vertical .step{gap:.5rem;grid-template-columns:40px 1fr;grid-template-rows:auto;min-height:4rem;justify-items:start}.steps-vertical .step:before{height:100%;width:.5rem;--tw-translate-x: -50%;--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));margin-inline-start:50%}.steps-vertical .step:where([dir=rtl],[dir=rtl] *):before{--tw-translate-x: 50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.table-sm :not(thead):not(tfoot) tr{font-size:.875rem;line-height:1.25rem}.table-sm :where(th,td){padding:.5rem .75rem}.tooltip{position:relative;display:inline-block;text-align:center;--tooltip-tail: .1875rem;--tooltip-color: var(--fallback-n,oklch(var(--n)/1));--tooltip-text-color: var(--fallback-nc,oklch(var(--nc)/1));--tooltip-tail-offset: calc(100% + .0625rem - var(--tooltip-tail))}.tooltip:before,.tooltip:after{opacity:0;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-delay:.1s;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.tooltip:after{position:absolute;content:\"\";border-style:solid;border-width:var(--tooltip-tail, 0);width:0;height:0;display:block}.tooltip:before{max-width:20rem;white-space:normal;border-radius:.25rem;padding:.25rem .5rem;font-size:.875rem;line-height:1.25rem;background-color:var(--tooltip-color);color:var(--tooltip-text-color);width:-moz-max-content;width:max-content}.tooltip.tooltip-open:before{opacity:1;transition-delay:75ms}.tooltip.tooltip-open:after{opacity:1;transition-delay:75ms}.tooltip:hover:before{opacity:1;transition-delay:75ms}.tooltip:hover:after{opacity:1;transition-delay:75ms}.tooltip:has(:focus-visible):after,.tooltip:has(:focus-visible):before{opacity:1;transition-delay:75ms}.tooltip:not([data-tip]):hover:before,.tooltip:not([data-tip]):hover:after{visibility:hidden;opacity:0}.tooltip:after,.tooltip-top:after{transform:translate(-50%);border-color:var(--tooltip-color) transparent transparent transparent;top:auto;left:50%;right:auto;bottom:var(--tooltip-tail-offset)}.tooltip-right:after{transform:translateY(-50%);border-color:transparent var(--tooltip-color) transparent transparent;top:50%;left:calc(var(--tooltip-tail-offset) + .0625rem);right:auto;bottom:auto}.tooltip-error{--tooltip-color: var(--fallback-er,oklch(var(--er)/1));--tooltip-text-color: var(--fallback-erc,oklch(var(--erc)/1))}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.bottom-0{bottom:0}.left-0{left:0}.right-0{right:0}.top-0{top:0}.top-24{top:6rem}.z-10{z-index:10}.z-40{z-index:40}.z-50{z-index:50}.z-\\[1\\]{z-index:1}.col-span-2{grid-column:span 2 / span 2}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-auto{margin-left:auto;margin-right:auto}.my-2{margin-top:.5rem;margin-bottom:.5rem}.-mt-0\\.5{margin-top:-.125rem}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-6{margin-left:1.5rem}.ml-8{margin-left:2rem}.mr-1{margin-right:.25rem}.mr-32{margin-right:8rem}.mt-0\\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.block{display:block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.contents{display:contents}.hidden{display:none}.h-12{height:3rem}.h-16{height:4rem}.h-2\\.5{height:.625rem}.h-3{height:.75rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-64{height:16rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-96{height:24rem}.h-\\[90vh\\]{height:90vh}.h-full{height:100%}.h-screen{height:100vh}.max-h-32{max-height:8rem}.max-h-60{max-height:15rem}.max-h-96{max-height:24rem}.max-h-\\[60vh\\]{max-height:60vh}.max-h-\\[70vh\\]{max-height:70vh}.min-h-0{min-height:0px}.min-h-\\[2\\.5rem\\]{min-height:2.5rem}.min-h-screen{min-height:100vh}.w-1\\/3{width:33.333333%}.w-11\\/12{width:91.666667%}.w-12{width:3rem}.w-16{width:4rem}.w-2\\.5{width:.625rem}.w-20{width:5rem}.w-24{width:6rem}.w-3{width:.75rem}.w-32{width:8rem}.w-4{width:1rem}.w-40{width:10rem}.w-48{width:12rem}.w-5{width:1.25rem}.w-56{width:14rem}.w-6{width:1.5rem}.w-64{width:16rem}.w-72{width:18rem}.w-8{width:2rem}.w-80{width:20rem}.w-full{width:100%}.w-px{width:1px}.min-w-\\[200px\\]{min-width:200px}.max-w-3xl{max-width:48rem}.max-w-4xl{max-width:56rem}.max-w-6xl{max-width:72rem}.max-w-7xl{max-width:80rem}.max-w-md{max-width:28rem}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.flex-\\[2\\]{flex:2}.flex-none{flex:none}.flex-shrink-0,.shrink-0{flex-shrink:0}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-help{cursor:help}.cursor-pointer{cursor:pointer}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0{gap:0px}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.space-y-0\\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.125rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.125rem * var(--tw-space-y-reverse))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-box{border-radius:var(--rounded-box, 1rem)}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-l-2{border-left-width:2px}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.border-base-300{--tw-border-opacity: 1;border-color:var(--fallback-b3,oklch(var(--b3)/var(--tw-border-opacity, 1)))}.border-base-content\\/20{border-color:var(--fallback-bc,oklch(var(--bc)/.2))}.border-error\\/20{border-color:var(--fallback-er,oklch(var(--er)/.2))}.bg-base-100{--tw-bg-opacity: 1;background-color:var(--fallback-b1,oklch(var(--b1)/var(--tw-bg-opacity, 1)))}.bg-base-200{--tw-bg-opacity: 1;background-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-bg-opacity, 1)))}.bg-base-300{--tw-bg-opacity: 1;background-color:var(--fallback-b3,oklch(var(--b3)/var(--tw-bg-opacity, 1)))}.bg-base-300\\/30{background-color:var(--fallback-b3,oklch(var(--b3)/.3))}.bg-base-content{--tw-bg-opacity: 1;background-color:var(--fallback-bc,oklch(var(--bc)/var(--tw-bg-opacity, 1)))}.bg-base-content\\/30{background-color:var(--fallback-bc,oklch(var(--bc)/.3))}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity, 1))}.bg-error{--tw-bg-opacity: 1;background-color:var(--fallback-er,oklch(var(--er)/var(--tw-bg-opacity, 1)))}.bg-error\\/10{background-color:var(--fallback-er,oklch(var(--er)/.1))}.bg-gray-400{--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity, 1))}.bg-green-500{--tw-bg-opacity: 1;background-color:rgb(34 197 94 / var(--tw-bg-opacity, 1))}.bg-orange-500{--tw-bg-opacity: 1;background-color:rgb(249 115 22 / var(--tw-bg-opacity, 1))}.bg-primary{--tw-bg-opacity: 1;background-color:var(--fallback-p,oklch(var(--p)/var(--tw-bg-opacity, 1)))}.bg-purple-500{--tw-bg-opacity: 1;background-color:rgb(168 85 247 / var(--tw-bg-opacity, 1))}.bg-red-500{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity, 1))}.bg-success{--tw-bg-opacity: 1;background-color:var(--fallback-su,oklch(var(--su)/var(--tw-bg-opacity, 1)))}.bg-warning{--tw-bg-opacity: 1;background-color:var(--fallback-wa,oklch(var(--wa)/var(--tw-bg-opacity, 1)))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-yellow-500{--tw-bg-opacity: 1;background-color:rgb(234 179 8 / var(--tw-bg-opacity, 1))}.stroke-current{stroke:currentColor}.p-0{padding:0}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-1\\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-64{padding-left:16rem;padding-right:16rem}.py-0\\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-32{padding-bottom:8rem}.pl-4{padding-left:1rem}.pt-4{padding-top:1rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-6xl{font-size:3.75rem;line-height:1}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.leading-7{line-height:1.75rem}.text-base-content{--tw-text-opacity: 1;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity, 1)))}.text-base-content\\/60{color:var(--fallback-bc,oklch(var(--bc)/.6))}.text-base-content\\/70{color:var(--fallback-bc,oklch(var(--bc)/.7))}.text-error{--tw-text-opacity: 1;color:var(--fallback-er,oklch(var(--er)/var(--tw-text-opacity, 1)))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.text-primary{--tw-text-opacity: 1;color:var(--fallback-p,oklch(var(--p)/var(--tw-text-opacity, 1)))}.text-primary-content{--tw-text-opacity: 1;color:var(--fallback-pc,oklch(var(--pc)/var(--tw-text-opacity, 1)))}.text-success{--tw-text-opacity: 1;color:var(--fallback-su,oklch(var(--su)/var(--tw-text-opacity, 1)))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.opacity-20{opacity:.2}.opacity-40{opacity:.4}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-2xl{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-filter{backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-shadow{transition-property:box-shadow;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace}.hover\\:bg-base-200:hover{--tw-bg-opacity: 1;background-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-bg-opacity, 1)))}.hover\\:bg-base-300:hover{--tw-bg-opacity: 1;background-color:var(--fallback-b3,oklch(var(--b3)/var(--tw-bg-opacity, 1)))}.hover\\:text-gray-900:hover{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.hover\\:shadow-lg:hover{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.group:hover .group-hover\\:opacity-90{opacity:.9}@media (min-width: 768px){.md\\:col-span-3{grid-column:span 3 / span 3}.md\\:inline{display:inline}.md\\:flex{display:flex}.md\\:hidden{display:none}.md\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (min-width: 1024px){.lg\\:col-span-2{grid-column:span 2 / span 2}.lg\\:col-span-6{grid-column:span 6 / span 6}.lg\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.lg\\:text-3xl{font-size:1.875rem;line-height:2.25rem}}@media (min-width: 1280px){.xl\\:flex{display:flex}.xl\\:hidden{display:none}.xl\\:max-w-md{max-width:28rem}}@media (prefers-color-scheme: dark){.dark\\:bg-gray-800{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity, 1))}.dark\\:text-gray-300{--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity, 1))}.dark\\:hover\\:text-gray-100:hover{--tw-text-opacity: 1;color:rgb(243 244 246 / var(--tw-text-opacity, 1))}}.card.svelte-1qok2wg{backdrop-filter:blur(10px)}.active.svelte-1fgps4v{background-color:hsl(var(--p) / .2)}\n",
21270
+ "vendor-lodash-CRdCilnf.js": 'var Ir=typeof global=="object"&&global&&global.Object===Object&&global,Qr=typeof self=="object"&&self&&self.Object===Object&&self,T=Ir||Qr||Function("return this")(),y=T.Symbol,Gr=Object.prototype,Vr=Gr.hasOwnProperty,kr=Gr.toString,j=y?y.toStringTag:void 0;function rn(r){var n=Vr.call(r,j),t=r[j];try{r[j]=void 0;var e=!0}catch{}var i=kr.call(r);return e&&(n?r[j]=t:delete r[j]),i}var nn=Object.prototype,tn=nn.toString;function en(r){return tn.call(r)}var an="[object Null]",un="[object Undefined]",pr=y?y.toStringTag:void 0;function M(r){return r==null?r===void 0?un:an:pr&&pr in Object(r)?rn(r):en(r)}function C(r){return r!=null&&typeof r=="object"}var on="[object Symbol]";function L(r){return typeof r=="symbol"||C(r)&&M(r)==on}function B(r,n){for(var t=-1,e=r==null?0:r.length,i=Array(e);++t<e;)i[t]=n(r[t],t,r);return i}var _=Array.isArray,gr=y?y.prototype:void 0,dr=gr?gr.toString:void 0;function zr(r){if(typeof r=="string")return r;if(_(r))return B(r,zr)+"";if(L(r))return dr?dr.call(r):"";var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}function U(r){var n=typeof r;return r!=null&&(n=="object"||n=="function")}function H(r){return r}var fn="[object AsyncFunction]",sn="[object Function]",cn="[object GeneratorFunction]",ln="[object Proxy]";function Br(r){if(!U(r))return!1;var n=M(r);return n==sn||n==cn||n==fn||n==ln}var W=T["__core-js_shared__"],hr=(function(){var r=/[^.]+$/.exec(W&&W.keys&&W.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""})();function pn(r){return!!hr&&hr in r}var gn=Function.prototype,dn=gn.toString;function E(r){if(r!=null){try{return dn.call(r)}catch{}try{return r+""}catch{}}return""}var hn=/[\\\\^$.*+?()[\\]{}|]/g,_n=/^\\[object .+?Constructor\\]$/,yn=Function.prototype,vn=Object.prototype,bn=yn.toString,Tn=vn.hasOwnProperty,An=RegExp("^"+bn.call(Tn).replace(hn,"\\\\$&").replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g,"$1.*?")+"$");function wn(r){if(!U(r)||pn(r))return!1;var n=Br(r)?An:_n;return n.test(E(r))}function On(r,n){return r?.[n]}function x(r,n){var t=On(r,n);return wn(t)?t:void 0}var Q=x(T,"WeakMap");function Pn(r,n,t){switch(t.length){case 0:return r.call(n);case 1:return r.call(n,t[0]);case 2:return r.call(n,t[0],t[1]);case 3:return r.call(n,t[0],t[1],t[2])}return r.apply(n,t)}var $n=800,mn=16,Sn=Date.now;function En(r){var n=0,t=0;return function(){var e=Sn(),i=mn-(e-t);if(t=e,i>0){if(++n>=$n)return arguments[0]}else n=0;return r.apply(void 0,arguments)}}function xn(r){return function(){return r}}var _r=(function(){try{var r=x(Object,"defineProperty");return r({},"",{}),r}catch{}})(),Cn=_r?function(r,n){return _r(r,"toString",{configurable:!0,enumerable:!1,value:xn(n),writable:!0})}:H,Mn=En(Cn),jn=9007199254740991,Rn=/^(?:0|[1-9]\\d*)$/;function tr(r,n){var t=typeof r;return n=n??jn,!!n&&(t=="number"||t!="symbol"&&Rn.test(r))&&r>-1&&r%1==0&&r<n}function er(r,n){return r===n||r!==r&&n!==n}var yr=Math.max;function Ln(r,n,t){return n=yr(n===void 0?r.length-1:n,0),function(){for(var e=arguments,i=-1,a=yr(e.length-n,0),u=Array(a);++i<a;)u[i]=e[n+i];i=-1;for(var o=Array(n+1);++i<n;)o[i]=e[i];return o[n]=t(u),Pn(r,this,o)}}function Fn(r,n){return Mn(Ln(r,n,H),r+"")}var Dn=9007199254740991;function ar(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=Dn}function K(r){return r!=null&&ar(r.length)&&!Br(r)}function vr(r,n,t){if(!U(t))return!1;var e=typeof n;return(e=="number"?K(t)&&tr(n,t.length):e=="string"&&n in t)?er(t[n],r):!1}var In=Object.prototype;function Gn(r){var n=r&&r.constructor,t=typeof n=="function"&&n.prototype||In;return r===t}function zn(r,n){for(var t=-1,e=Array(r);++t<r;)e[t]=n(t);return e}var Bn="[object Arguments]";function br(r){return C(r)&&M(r)==Bn}var Nr=Object.prototype,Nn=Nr.hasOwnProperty,Un=Nr.propertyIsEnumerable,ir=br((function(){return arguments})())?br:function(r){return C(r)&&Nn.call(r,"callee")&&!Un.call(r,"callee")};function Hn(){return!1}var Ur=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Tr=Ur&&typeof module=="object"&&module&&!module.nodeType&&module,Kn=Tr&&Tr.exports===Ur,Ar=Kn?T.Buffer:void 0,Xn=Ar?Ar.isBuffer:void 0,V=Xn||Hn,qn="[object Arguments]",Zn="[object Array]",Wn="[object Boolean]",Jn="[object Date]",Yn="[object Error]",Qn="[object Function]",Vn="[object Map]",kn="[object Number]",rt="[object Object]",nt="[object RegExp]",tt="[object Set]",et="[object String]",at="[object WeakMap]",it="[object ArrayBuffer]",ut="[object DataView]",ot="[object Float32Array]",ft="[object Float64Array]",st="[object Int8Array]",ct="[object Int16Array]",lt="[object Int32Array]",pt="[object Uint8Array]",gt="[object Uint8ClampedArray]",dt="[object Uint16Array]",ht="[object Uint32Array]",c={};c[ot]=c[ft]=c[st]=c[ct]=c[lt]=c[pt]=c[gt]=c[dt]=c[ht]=!0;c[qn]=c[Zn]=c[it]=c[Wn]=c[ut]=c[Jn]=c[Yn]=c[Qn]=c[Vn]=c[kn]=c[rt]=c[nt]=c[tt]=c[et]=c[at]=!1;function _t(r){return C(r)&&ar(r.length)&&!!c[M(r)]}function Hr(r){return function(n){return r(n)}}var Kr=typeof exports=="object"&&exports&&!exports.nodeType&&exports,R=Kr&&typeof module=="object"&&module&&!module.nodeType&&module,yt=R&&R.exports===Kr,J=yt&&Ir.process,wr=(function(){try{var r=R&&R.require&&R.require("util").types;return r||J&&J.binding&&J.binding("util")}catch{}})(),Or=wr&&wr.isTypedArray,Xr=Or?Hr(Or):_t,vt=Object.prototype,bt=vt.hasOwnProperty;function Tt(r,n){var t=_(r),e=!t&&ir(r),i=!t&&!e&&V(r),a=!t&&!e&&!i&&Xr(r),u=t||e||i||a,o=u?zn(r.length,String):[],f=o.length;for(var s in r)bt.call(r,s)&&!(u&&(s=="length"||i&&(s=="offset"||s=="parent")||a&&(s=="buffer"||s=="byteLength"||s=="byteOffset")||tr(s,f)))&&o.push(s);return o}function At(r,n){return function(t){return r(n(t))}}var wt=At(Object.keys,Object),Ot=Object.prototype,Pt=Ot.hasOwnProperty;function $t(r){if(!Gn(r))return wt(r);var n=[];for(var t in Object(r))Pt.call(r,t)&&t!="constructor"&&n.push(t);return n}function ur(r){return K(r)?Tt(r):$t(r)}var mt=/\\.|\\[(?:[^[\\]]*|(["\'])(?:(?!\\1)[^\\\\]|\\\\.)*?\\1)\\]/,St=/^\\w*$/;function or(r,n){if(_(r))return!1;var t=typeof r;return t=="number"||t=="symbol"||t=="boolean"||r==null||L(r)?!0:St.test(r)||!mt.test(r)||n!=null&&r in Object(n)}var F=x(Object,"create");function Et(){this.__data__=F?F(null):{},this.size=0}function xt(r){var n=this.has(r)&&delete this.__data__[r];return this.size-=n?1:0,n}var Ct="__lodash_hash_undefined__",Mt=Object.prototype,jt=Mt.hasOwnProperty;function Rt(r){var n=this.__data__;if(F){var t=n[r];return t===Ct?void 0:t}return jt.call(n,r)?n[r]:void 0}var Lt=Object.prototype,Ft=Lt.hasOwnProperty;function Dt(r){var n=this.__data__;return F?n[r]!==void 0:Ft.call(n,r)}var It="__lodash_hash_undefined__";function Gt(r,n){var t=this.__data__;return this.size+=this.has(r)?0:1,t[r]=F&&n===void 0?It:n,this}function S(r){var n=-1,t=r==null?0:r.length;for(this.clear();++n<t;){var e=r[n];this.set(e[0],e[1])}}S.prototype.clear=Et;S.prototype.delete=xt;S.prototype.get=Rt;S.prototype.has=Dt;S.prototype.set=Gt;function zt(){this.__data__=[],this.size=0}function X(r,n){for(var t=r.length;t--;)if(er(r[t][0],n))return t;return-1}var Bt=Array.prototype,Nt=Bt.splice;function Ut(r){var n=this.__data__,t=X(n,r);if(t<0)return!1;var e=n.length-1;return t==e?n.pop():Nt.call(n,t,1),--this.size,!0}function Ht(r){var n=this.__data__,t=X(n,r);return t<0?void 0:n[t][1]}function Kt(r){return X(this.__data__,r)>-1}function Xt(r,n){var t=this.__data__,e=X(t,r);return e<0?(++this.size,t.push([r,n])):t[e][1]=n,this}function A(r){var n=-1,t=r==null?0:r.length;for(this.clear();++n<t;){var e=r[n];this.set(e[0],e[1])}}A.prototype.clear=zt;A.prototype.delete=Ut;A.prototype.get=Ht;A.prototype.has=Kt;A.prototype.set=Xt;var D=x(T,"Map");function qt(){this.size=0,this.__data__={hash:new S,map:new(D||A),string:new S}}function Zt(r){var n=typeof r;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?r!=="__proto__":r===null}function q(r,n){var t=r.__data__;return Zt(n)?t[typeof n=="string"?"string":"hash"]:t.map}function Wt(r){var n=q(this,r).delete(r);return this.size-=n?1:0,n}function Jt(r){return q(this,r).get(r)}function Yt(r){return q(this,r).has(r)}function Qt(r,n){var t=q(this,r),e=t.size;return t.set(r,n),this.size+=t.size==e?0:1,this}function w(r){var n=-1,t=r==null?0:r.length;for(this.clear();++n<t;){var e=r[n];this.set(e[0],e[1])}}w.prototype.clear=qt;w.prototype.delete=Wt;w.prototype.get=Jt;w.prototype.has=Yt;w.prototype.set=Qt;var Vt="Expected a function";function fr(r,n){if(typeof r!="function"||n!=null&&typeof n!="function")throw new TypeError(Vt);var t=function(){var e=arguments,i=n?n.apply(this,e):e[0],a=t.cache;if(a.has(i))return a.get(i);var u=r.apply(this,e);return t.cache=a.set(i,u)||a,u};return t.cache=new(fr.Cache||w),t}fr.Cache=w;var kt=500;function re(r){var n=fr(r,function(e){return t.size===kt&&t.clear(),e}),t=n.cache;return n}var ne=/[^.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|(["\'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))/g,te=/\\\\(\\\\)?/g,ee=re(function(r){var n=[];return r.charCodeAt(0)===46&&n.push(""),r.replace(ne,function(t,e,i,a){n.push(i?a.replace(te,"$1"):e||t)}),n});function ae(r){return r==null?"":zr(r)}function qr(r,n){return _(r)?r:or(r,n)?[r]:ee(ae(r))}function Z(r){if(typeof r=="string"||L(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}function sr(r,n){n=qr(n,r);for(var t=0,e=n.length;r!=null&&t<e;)r=r[Z(n[t++])];return t&&t==e?r:void 0}function ie(r,n,t){var e=r==null?void 0:sr(r,n);return e===void 0?t:e}function Zr(r,n){for(var t=-1,e=n.length,i=r.length;++t<e;)r[i+t]=n[t];return r}var Pr=y?y.isConcatSpreadable:void 0;function ue(r){return _(r)||ir(r)||!!(Pr&&r&&r[Pr])}function oe(r,n,t,e,i){var a=-1,u=r.length;for(t||(t=ue),i||(i=[]);++a<u;){var o=r[a];t(o)?Zr(i,o):i[i.length]=o}return i}function fe(){this.__data__=new A,this.size=0}function se(r){var n=this.__data__,t=n.delete(r);return this.size=n.size,t}function ce(r){return this.__data__.get(r)}function le(r){return this.__data__.has(r)}var pe=200;function ge(r,n){var t=this.__data__;if(t instanceof A){var e=t.__data__;if(!D||e.length<pe-1)return e.push([r,n]),this.size=++t.size,this;t=this.__data__=new w(e)}return t.set(r,n),this.size=t.size,this}function b(r){var n=this.__data__=new A(r);this.size=n.size}b.prototype.clear=fe;b.prototype.delete=se;b.prototype.get=ce;b.prototype.has=le;b.prototype.set=ge;function de(r,n){for(var t=-1,e=r==null?0:r.length,i=0,a=[];++t<e;){var u=r[t];n(u,t,r)&&(a[i++]=u)}return a}function he(){return[]}var _e=Object.prototype,ye=_e.propertyIsEnumerable,$r=Object.getOwnPropertySymbols,ve=$r?function(r){return r==null?[]:(r=Object(r),de($r(r),function(n){return ye.call(r,n)}))}:he;function be(r,n,t){var e=n(r);return _(r)?e:Zr(e,t(r))}function mr(r){return be(r,ur,ve)}var k=x(T,"DataView"),rr=x(T,"Promise"),nr=x(T,"Set"),Sr="[object Map]",Te="[object Object]",Er="[object Promise]",xr="[object Set]",Cr="[object WeakMap]",Mr="[object DataView]",Ae=E(k),we=E(D),Oe=E(rr),Pe=E(nr),$e=E(Q),P=M;(k&&P(new k(new ArrayBuffer(1)))!=Mr||D&&P(new D)!=Sr||rr&&P(rr.resolve())!=Er||nr&&P(new nr)!=xr||Q&&P(new Q)!=Cr)&&(P=function(r){var n=M(r),t=n==Te?r.constructor:void 0,e=t?E(t):"";if(e)switch(e){case Ae:return Mr;case we:return Sr;case Oe:return Er;case Pe:return xr;case $e:return Cr}return n});var jr=T.Uint8Array,me="__lodash_hash_undefined__";function Se(r){return this.__data__.set(r,me),this}function Ee(r){return this.__data__.has(r)}function N(r){var n=-1,t=r==null?0:r.length;for(this.__data__=new w;++n<t;)this.add(r[n])}N.prototype.add=N.prototype.push=Se;N.prototype.has=Ee;function xe(r,n){for(var t=-1,e=r==null?0:r.length;++t<e;)if(n(r[t],t,r))return!0;return!1}function Ce(r,n){return r.has(n)}var Me=1,je=2;function Wr(r,n,t,e,i,a){var u=t&Me,o=r.length,f=n.length;if(o!=f&&!(u&&f>o))return!1;var s=a.get(r),g=a.get(n);if(s&&g)return s==n&&g==r;var p=-1,l=!0,v=t&je?new N:void 0;for(a.set(r,n),a.set(n,r);++p<o;){var d=r[p],h=n[p];if(e)var O=u?e(h,d,p,n,r,a):e(d,h,p,r,n,a);if(O!==void 0){if(O)continue;l=!1;break}if(v){if(!xe(n,function($,m){if(!Ce(v,m)&&(d===$||i(d,$,t,e,a)))return v.push(m)})){l=!1;break}}else if(!(d===h||i(d,h,t,e,a))){l=!1;break}}return a.delete(r),a.delete(n),l}function Re(r){var n=-1,t=Array(r.size);return r.forEach(function(e,i){t[++n]=[i,e]}),t}function Le(r){var n=-1,t=Array(r.size);return r.forEach(function(e){t[++n]=e}),t}var Fe=1,De=2,Ie="[object Boolean]",Ge="[object Date]",ze="[object Error]",Be="[object Map]",Ne="[object Number]",Ue="[object RegExp]",He="[object Set]",Ke="[object String]",Xe="[object Symbol]",qe="[object ArrayBuffer]",Ze="[object DataView]",Rr=y?y.prototype:void 0,Y=Rr?Rr.valueOf:void 0;function We(r,n,t,e,i,a,u){switch(t){case Ze:if(r.byteLength!=n.byteLength||r.byteOffset!=n.byteOffset)return!1;r=r.buffer,n=n.buffer;case qe:return!(r.byteLength!=n.byteLength||!a(new jr(r),new jr(n)));case Ie:case Ge:case Ne:return er(+r,+n);case ze:return r.name==n.name&&r.message==n.message;case Ue:case Ke:return r==n+"";case Be:var o=Re;case He:var f=e&Fe;if(o||(o=Le),r.size!=n.size&&!f)return!1;var s=u.get(r);if(s)return s==n;e|=De,u.set(r,n);var g=Wr(o(r),o(n),e,i,a,u);return u.delete(r),g;case Xe:if(Y)return Y.call(r)==Y.call(n)}return!1}var Je=1,Ye=Object.prototype,Qe=Ye.hasOwnProperty;function Ve(r,n,t,e,i,a){var u=t&Je,o=mr(r),f=o.length,s=mr(n),g=s.length;if(f!=g&&!u)return!1;for(var p=f;p--;){var l=o[p];if(!(u?l in n:Qe.call(n,l)))return!1}var v=a.get(r),d=a.get(n);if(v&&d)return v==n&&d==r;var h=!0;a.set(r,n),a.set(n,r);for(var O=u;++p<f;){l=o[p];var $=r[l],m=n[l];if(e)var lr=u?e(m,$,l,n,r,a):e($,m,l,r,n,a);if(!(lr===void 0?$===m||i($,m,t,e,a):lr)){h=!1;break}O||(O=l=="constructor")}if(h&&!O){var I=r.constructor,G=n.constructor;I!=G&&"constructor"in r&&"constructor"in n&&!(typeof I=="function"&&I instanceof I&&typeof G=="function"&&G instanceof G)&&(h=!1)}return a.delete(r),a.delete(n),h}var ke=1,Lr="[object Arguments]",Fr="[object Array]",z="[object Object]",ra=Object.prototype,Dr=ra.hasOwnProperty;function na(r,n,t,e,i,a){var u=_(r),o=_(n),f=u?Fr:P(r),s=o?Fr:P(n);f=f==Lr?z:f,s=s==Lr?z:s;var g=f==z,p=s==z,l=f==s;if(l&&V(r)){if(!V(n))return!1;u=!0,g=!1}if(l&&!g)return a||(a=new b),u||Xr(r)?Wr(r,n,t,e,i,a):We(r,n,f,t,e,i,a);if(!(t&ke)){var v=g&&Dr.call(r,"__wrapped__"),d=p&&Dr.call(n,"__wrapped__");if(v||d){var h=v?r.value():r,O=d?n.value():n;return a||(a=new b),i(h,O,t,e,a)}}return l?(a||(a=new b),Ve(r,n,t,e,i,a)):!1}function cr(r,n,t,e,i){return r===n?!0:r==null||n==null||!C(r)&&!C(n)?r!==r&&n!==n:na(r,n,t,e,cr,i)}var ta=1,ea=2;function aa(r,n,t,e){var i=t.length,a=i;if(r==null)return!a;for(r=Object(r);i--;){var u=t[i];if(u[2]?u[1]!==r[u[0]]:!(u[0]in r))return!1}for(;++i<a;){u=t[i];var o=u[0],f=r[o],s=u[1];if(u[2]){if(f===void 0&&!(o in r))return!1}else{var g=new b,p;if(!(p===void 0?cr(s,f,ta|ea,e,g):p))return!1}}return!0}function Jr(r){return r===r&&!U(r)}function ia(r){for(var n=ur(r),t=n.length;t--;){var e=n[t],i=r[e];n[t]=[e,i,Jr(i)]}return n}function Yr(r,n){return function(t){return t==null?!1:t[r]===n&&(n!==void 0||r in Object(t))}}function ua(r){var n=ia(r);return n.length==1&&n[0][2]?Yr(n[0][0],n[0][1]):function(t){return t===r||aa(t,r,n)}}function oa(r,n){return r!=null&&n in Object(r)}function fa(r,n,t){n=qr(n,r);for(var e=-1,i=n.length,a=!1;++e<i;){var u=Z(n[e]);if(!(a=r!=null&&t(r,u)))break;r=r[u]}return a||++e!=i?a:(i=r==null?0:r.length,!!i&&ar(i)&&tr(u,i)&&(_(r)||ir(r)))}function sa(r,n){return r!=null&&fa(r,n,oa)}var ca=1,la=2;function pa(r,n){return or(r)&&Jr(n)?Yr(Z(r),n):function(t){var e=ie(t,r);return e===void 0&&e===n?sa(t,r):cr(n,e,ca|la)}}function ga(r){return function(n){return n?.[r]}}function da(r){return function(n){return sr(n,r)}}function ha(r){return or(r)?ga(Z(r)):da(r)}function _a(r){return typeof r=="function"?r:r==null?H:typeof r=="object"?_(r)?pa(r[0],r[1]):ua(r):ha(r)}function ya(r){return function(n,t,e){for(var i=-1,a=Object(n),u=e(n),o=u.length;o--;){var f=u[++i];if(t(a[f],f,a)===!1)break}return n}}var va=ya();function ba(r,n){return r&&va(r,n,ur)}function Ta(r,n){return function(t,e){if(t==null)return t;if(!K(t))return r(t,e);for(var i=t.length,a=-1,u=Object(t);++a<i&&e(u[a],a,u)!==!1;);return t}}var Aa=Ta(ba);function wa(r,n){var t=-1,e=K(r)?Array(r.length):[];return Aa(r,function(i,a,u){e[++t]=n(i,a,u)}),e}function Oa(r,n){var t=r.length;for(r.sort(n);t--;)r[t]=r[t].value;return r}function Pa(r,n){if(r!==n){var t=r!==void 0,e=r===null,i=r===r,a=L(r),u=n!==void 0,o=n===null,f=n===n,s=L(n);if(!o&&!s&&!a&&r>n||a&&u&&f&&!o&&!s||e&&u&&f||!t&&f||!i)return 1;if(!e&&!a&&!s&&r<n||s&&t&&i&&!e&&!a||o&&t&&i||!u&&i||!f)return-1}return 0}function $a(r,n,t){for(var e=-1,i=r.criteria,a=n.criteria,u=i.length,o=t.length;++e<u;){var f=Pa(i[e],a[e]);if(f){if(e>=o)return f;var s=t[e];return f*(s=="desc"?-1:1)}}return r.index-n.index}function ma(r,n,t){n.length?n=B(n,function(a){return _(a)?function(u){return sr(u,a.length===1?a[0]:a)}:a}):n=[H];var e=-1;n=B(n,Hr(_a));var i=wa(r,function(a,u,o){var f=B(n,function(s){return s(a)});return{criteria:f,index:++e,value:a}});return Oa(i,function(a,u){return $a(a,u,t)})}var Sa=Fn(function(r,n){if(r==null)return[];var t=n.length;return t>1&&vr(r,n[0],n[1])?n=[]:t>2&&vr(n[0],n[1],n[2])&&(n=[n[0]]),ma(r,oe(n),[])});export{Sa as s};\n',
21271
+ "vendor-charts-CBipcgT3.js": `import{C as ds}from"./vendor-COcP1wx5.js";/*!
21267
21272
  * Chart.js v4.5.0
21268
21273
  * https://www.chartjs.org
21269
21274
  * (c) 2025 Chart.js Contributors
@@ -21276,8 +21281,7 @@ var init_assets = __esm(() => {
21276
21281
  */class ko{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,s,n){const o=e.listeners[n],r=e.duration;o.forEach(a=>a({chart:t,initial:e.initial,numSteps:r,currentStep:Math.min(s-e.start,r)}))}_refresh(){this._request||(this._running=!0,this._request=_s.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let e=0;this._charts.forEach((s,n)=>{if(!s.running||!s.items.length)return;const o=s.items;let r=o.length-1,a=!1,l;for(;r>=0;--r)l=o[r],l._active?(l._total>s.duration&&(s.duration=l._total),l.tick(t),a=!0):(o[r]=o[o.length-1],o.pop());a&&(n.draw(),this._notify(n,s,t,"progress")),o.length||(s.running=!1,this._notify(n,s,t,"complete"),s.initial=!1),e+=o.length}),this._lastDate=t,e===0&&(this._running=!1)}_getAnims(t){const e=this._charts;let s=e.get(t);return s||(s={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,s)),s}listen(t,e,s){this._getAnims(t).listeners[e].push(s)}add(t,e){!e||!e.length||this._getAnims(t).items.push(...e)}has(t){return this._getAnims(t).items.length>0}start(t){const e=this._charts.get(t);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce((s,n)=>Math.max(s,n._duration),0),this._refresh())}running(t){if(!this._running)return!1;const e=this._charts.get(t);return!(!e||!e.running||!e.items.length)}stop(t){const e=this._charts.get(t);if(!e||!e.items.length)return;const s=e.items;let n=s.length-1;for(;n>=0;--n)s[n].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var rt=new ko;const yi="transparent",So={boolean(i,t,e){return e>.5?t:i},color(i,t,e){const s=ci(i||yi),n=s.valid&&ci(t||yi);return n&&n.valid?n.mix(s,e).hexString():t},number(i,t,e){return i+(t-i)*e}};class wo{constructor(t,e,s,n){const o=e[s];n=ee([t.to,n,o,t.from]);const r=ee([t.from,o,n]);this._active=!0,this._fn=t.fn||So[t.type||typeof r],this._easing=$t[t.easing]||$t.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=e,this._prop=s,this._from=r,this._to=n,this._promises=void 0}active(){return this._active}update(t,e,s){if(this._active){this._notify(!1);const n=this._target[this._prop],o=s-this._start,r=this._duration-o;this._start=s,this._duration=Math.floor(Math.max(r,t.duration)),this._total+=o,this._loop=!!t.loop,this._to=ee([t.to,e,n,t.from]),this._from=ee([t.from,n,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const e=t-this._start,s=this._duration,n=this._prop,o=this._from,r=this._loop,a=this._to;let l;if(this._active=o!==a&&(r||e<s),!this._active){this._target[n]=a,this._notify(!0);return}if(e<0){this._target[n]=o;return}l=e/s%2,l=r&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[n]=this._fn(o,a,l)}wait(){const t=this._promises||(this._promises=[]);return new Promise((e,s)=>{t.push({res:e,rej:s})})}_notify(t){const e=t?"res":"rej",s=this._promises||[];for(let n=0;n<s.length;n++)s[n][e]()}}class Ts{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!A(t))return;const e=Object.keys(W.animation),s=this._properties;Object.getOwnPropertyNames(t).forEach(n=>{const o=t[n];if(!A(o))return;const r={};for(const a of e)r[a]=o[a];(H(o.properties)&&o.properties||[n]).forEach(a=>{(a===n||!s.has(a))&&s.set(a,r)})})}_animateOptions(t,e){const s=e.options,n=Po(t,s);if(!n)return[];const o=this._createAnimations(n,s);return s.$shared&&Co(t.options.$animations,s).then(()=>{t.options=s},()=>{}),o}_createAnimations(t,e){const s=this._properties,n=[],o=t.$animations||(t.$animations={}),r=Object.keys(e),a=Date.now();let l;for(l=r.length-1;l>=0;--l){const c=r[l];if(c.charAt(0)==="$")continue;if(c==="options"){n.push(...this._animateOptions(t,e));continue}const h=e[c];let d=o[c];const u=s.get(c);if(d)if(u&&d.active()){d.update(u,h,a);continue}else d.cancel();if(!u||!u.duration){t[c]=h;continue}o[c]=d=new wo(u,t,c,h),n.push(d)}return n}update(t,e){if(this._properties.size===0){Object.assign(t,e);return}const s=this._createAnimations(t,e);if(s.length)return rt.add(this._chart,s),!0}}function Co(i,t){const e=[],s=Object.keys(t);for(let n=0;n<s.length;n++){const o=i[s[n]];o&&o.active()&&e.push(o.wait())}return Promise.all(e)}function Po(i,t){if(!t)return;let e=i.options;if(!e){i.options=t;return}return e.$shared&&(i.options=e=Object.assign({},e,{$shared:!1,$animations:{}})),e}function vi(i,t){const e=i&&i.options||{},s=e.reverse,n=e.min===void 0?t:0,o=e.max===void 0?t:0;return{start:s?o:n,end:s?n:o}}function Do(i,t,e){if(e===!1)return!1;const s=vi(i,e),n=vi(t,e);return{top:n.end,right:s.end,bottom:n.start,left:s.start}}function Oo(i){let t,e,s,n;return A(i)?(t=i.top,e=i.right,s=i.bottom,n=i.left):t=e=s=n=i,{top:t,right:e,bottom:s,left:n,disabled:i===!1}}function Rs(i,t){const e=[],s=i._getSortedDatasetMetas(t);let n,o;for(n=0,o=s.length;n<o;++n)e.push(s[n].index);return e}function Mi(i,t,e,s={}){const n=i.keys,o=s.mode==="single";let r,a,l,c;if(t===null)return;let h=!1;for(r=0,a=n.length;r<a;++r){if(l=+n[r],l===e){if(h=!0,s.all)continue;break}c=i.values[l],J(c)&&(o||t===0||nt(t)===nt(c))&&(t+=c)}return!h&&!s.all?0:t}function Ao(i,t){const{iScale:e,vScale:s}=t,n=e.axis==="x"?"x":"y",o=s.axis==="x"?"x":"y",r=Object.keys(i),a=new Array(r.length);let l,c,h;for(l=0,c=r.length;l<c;++l)h=r[l],a[l]={[n]:h,[o]:i[h]};return a}function Ce(i,t){const e=i&&i.options.stacked;return e||e===void 0&&t.stack!==void 0}function To(i,t,e){return\`\${i.id}.\${t.id}.\${e.stack||e.type}\`}function Ro(i){const{min:t,max:e,minDefined:s,maxDefined:n}=i.getUserBounds();return{min:s?t:Number.NEGATIVE_INFINITY,max:n?e:Number.POSITIVE_INFINITY}}function Lo(i,t,e){const s=i[t]||(i[t]={});return s[e]||(s[e]={})}function ki(i,t,e,s){for(const n of t.getMatchingVisibleMetas(s).reverse()){const o=i[n.index];if(e&&o>0||!e&&o<0)return n.index}return null}function Si(i,t){const{chart:e,_cachedMeta:s}=i,n=e._stacks||(e._stacks={}),{iScale:o,vScale:r,index:a}=s,l=o.axis,c=r.axis,h=To(o,r,s),d=t.length;let u;for(let f=0;f<d;++f){const p=t[f],{[l]:g,[c]:m}=p,b=p._stacks||(p._stacks={});u=b[c]=Lo(n,h,g),u[a]=m,u._top=ki(u,r,!0,s.type),u._bottom=ki(u,r,!1,s.type);const _=u._visualValues||(u._visualValues={});_[a]=m}}function Pe(i,t){const e=i.scales;return Object.keys(e).filter(s=>e[s].axis===t).shift()}function Io(i,t){return St(i,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function Eo(i,t,e){return St(i,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:e,index:t,mode:"default",type:"data"})}function Et(i,t){const e=i.controller.index,s=i.vScale&&i.vScale.axis;if(s){t=t||i._parsed;for(const n of t){const o=n._stacks;if(!o||o[s]===void 0||o[s][e]===void 0)return;delete o[s][e],o[s]._visualValues!==void 0&&o[s]._visualValues[e]!==void 0&&delete o[s]._visualValues[e]}}}const De=i=>i==="reset"||i==="none",wi=(i,t)=>t?i:Object.assign({},i),zo=(i,t,e)=>i&&!t.hidden&&t._stacked&&{keys:Rs(e,!0),values:null};class ve{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(t,e){this.chart=t,this._ctx=t.ctx,this.index=e,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=Ce(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&Et(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,e=this._cachedMeta,s=this.getDataset(),n=(d,u,f,p)=>d==="x"?u:d==="r"?p:f,o=e.xAxisID=P(s.xAxisID,Pe(t,"x")),r=e.yAxisID=P(s.yAxisID,Pe(t,"y")),a=e.rAxisID=P(s.rAxisID,Pe(t,"r")),l=e.indexAxis,c=e.iAxisID=n(l,o,r,a),h=e.vAxisID=n(l,r,o,a);e.xScale=this.getScaleForId(o),e.yScale=this.getScaleForId(r),e.rScale=this.getScaleForId(a),e.iScale=this.getScaleForId(c),e.vScale=this.getScaleForId(h)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const e=this._cachedMeta;return t===e.iScale?e.vScale:e.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&ri(this._data,this),t._stacked&&Et(t)}_dataCheck(){const t=this.getDataset(),e=t.data||(t.data=[]),s=this._data;if(A(e)){const n=this._cachedMeta;this._data=Ao(e,n)}else if(s!==e){if(s){ri(s,this);const n=this._cachedMeta;Et(n),n._parsed=[]}e&&Object.isExtensible(e)&&gn(e,this),this._syncList=[],this._data=e}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const e=this._cachedMeta,s=this.getDataset();let n=!1;this._dataCheck();const o=e._stacked;e._stacked=Ce(e.vScale,e),e.stack!==s.stack&&(n=!0,Et(e),e.stack=s.stack),this._resyncElements(t),(n||o!==e._stacked)&&(Si(this,e._parsed),e._stacked=Ce(e.vScale,e))}configure(){const t=this.chart.config,e=t.datasetScopeKeys(this._type),s=t.getOptionScopes(this.getDataset(),e,!0);this.options=t.createResolver(s,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,e){const{_cachedMeta:s,_data:n}=this,{iScale:o,_stacked:r}=s,a=o.axis;let l=t===0&&e===n.length?!0:s._sorted,c=t>0&&s._parsed[t-1],h,d,u;if(this._parsing===!1)s._parsed=n,s._sorted=!0,u=n;else{H(n[t])?u=this.parseArrayData(s,n,t,e):A(n[t])?u=this.parseObjectData(s,n,t,e):u=this.parsePrimitiveData(s,n,t,e);const f=()=>d[a]===null||c&&d[a]<c[a];for(h=0;h<e;++h)s._parsed[h+t]=d=u[h],l&&(f()&&(l=!1),c=d);s._sorted=l}r&&Si(this,u)}parsePrimitiveData(t,e,s,n){const{iScale:o,vScale:r}=t,a=o.axis,l=r.axis,c=o.getLabels(),h=o===r,d=new Array(n);let u,f,p;for(u=0,f=n;u<f;++u)p=u+s,d[u]={[a]:h||o.parse(c[p],p),[l]:r.parse(e[p],p)};return d}parseArrayData(t,e,s,n){const{xScale:o,yScale:r}=t,a=new Array(n);let l,c,h,d;for(l=0,c=n;l<c;++l)h=l+s,d=e[h],a[l]={x:o.parse(d[0],h),y:r.parse(d[1],h)};return a}parseObjectData(t,e,s,n){const{xScale:o,yScale:r}=t,{xAxisKey:a="x",yAxisKey:l="y"}=this._parsing,c=new Array(n);let h,d,u,f;for(h=0,d=n;h<d;++h)u=h+s,f=e[u],c[h]={x:o.parse(Mt(f,a),u),y:r.parse(Mt(f,l),u)};return c}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,e,s){const n=this.chart,o=this._cachedMeta,r=e[t.axis],a={keys:Rs(n,!0),values:e._stacks[t.axis]._visualValues};return Mi(a,r,o.index,{mode:s})}updateRangeFromParsed(t,e,s,n){const o=s[e.axis];let r=o===null?NaN:o;const a=n&&s._stacks[e.axis];n&&a&&(n.values=a,r=Mi(n,o,this._cachedMeta.index)),t.min=Math.min(t.min,r),t.max=Math.max(t.max,r)}getMinMax(t,e){const s=this._cachedMeta,n=s._parsed,o=s._sorted&&t===s.iScale,r=n.length,a=this._getOtherScale(t),l=zo(e,s,this.chart),c={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:h,max:d}=Ro(a);let u,f;function p(){f=n[u];const g=f[a.axis];return!J(f[t.axis])||h>g||d<g}for(u=0;u<r&&!(!p()&&(this.updateRangeFromParsed(c,t,f,l),o));++u);if(o){for(u=r-1;u>=0;--u)if(!p()){this.updateRangeFromParsed(c,t,f,l);break}}return c}getAllParsedValues(t){const e=this._cachedMeta._parsed,s=[];let n,o,r;for(n=0,o=e.length;n<o;++n)r=e[n][t.axis],J(r)&&s.push(r);return s}getMaxOverflow(){return!1}getLabelAndValue(t){const e=this._cachedMeta,s=e.iScale,n=e.vScale,o=this.getParsed(t);return{label:s?""+s.getLabelForValue(o[s.axis]):"",value:n?""+n.getLabelForValue(o[n.axis]):""}}_update(t){const e=this._cachedMeta;this.update(t||"default"),e._clip=Oo(P(this.options.clip,Do(e.xScale,e.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,e=this.chart,s=this._cachedMeta,n=s.data||[],o=e.chartArea,r=[],a=this._drawStart||0,l=this._drawCount||n.length-a,c=this.options.drawActiveElementsOnTop;let h;for(s.dataset&&s.dataset.draw(t,o,a,l),h=a;h<a+l;++h){const d=n[h];d.hidden||(d.active&&c?r.push(d):d.draw(t,o))}for(h=0;h<r.length;++h)r[h].draw(t,o)}getStyle(t,e){const s=e?"active":"default";return t===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(s):this.resolveDataElementOptions(t||0,s)}getContext(t,e,s){const n=this.getDataset();let o;if(t>=0&&t<this._cachedMeta.data.length){const r=this._cachedMeta.data[t];o=r.$context||(r.$context=Eo(this.getContext(),t,r)),o.parsed=this.getParsed(t),o.raw=n.data[t],o.index=o.dataIndex=t}else o=this.$context||(this.$context=Io(this.chart.getContext(),this.index)),o.dataset=n,o.index=o.datasetIndex=this.index;return o.active=!!e,o.mode=s,o}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,e){return this._resolveElementOptions(this.dataElementType.id,e,t)}_resolveElementOptions(t,e="default",s){const n=e==="active",o=this._cachedDataOpts,r=t+"-"+e,a=o[r],l=this.enableOptionSharing&&Xt(s);if(a)return wi(a,l);const c=this.chart.config,h=c.datasetElementScopeKeys(this._type,t),d=n?[\`\${t}Hover\`,"hover",t,""]:[t,""],u=c.getOptionScopes(this.getDataset(),h),f=Object.keys(W.elements[t]),p=()=>this.getContext(s,n,e),g=c.resolveNamedOptions(u,f,p,d);return g.$shared&&(g.$shared=l,o[r]=Object.freeze(wi(g,l))),g}_resolveAnimations(t,e,s){const n=this.chart,o=this._cachedDataOpts,r=\`animation-\${e}\`,a=o[r];if(a)return a;let l;if(n.options.animation!==!1){const h=this.chart.config,d=h.datasetAnimationScopeKeys(this._type,e),u=h.getOptionScopes(this.getDataset(),d);l=h.createResolver(u,this.getContext(t,s,e))}const c=new Ts(n,l&&l.animations);return l&&l._cacheable&&(o[r]=Object.freeze(c)),c}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||De(t)||this.chart._animationsDisabled}_getSharedOptions(t,e){const s=this.resolveDataElementOptions(t,e),n=this._sharedOptions,o=this.getSharedOptions(s),r=this.includeOptions(e,o)||o!==n;return this.updateSharedOptions(o,e,s),{sharedOptions:o,includeOptions:r}}updateElement(t,e,s,n){De(n)?Object.assign(t,s):this._resolveAnimations(e,n).update(t,s)}updateSharedOptions(t,e,s){t&&!De(e)&&this._resolveAnimations(void 0,e).update(t,s)}_setStyle(t,e,s,n){t.active=n;const o=this.getStyle(e,n);this._resolveAnimations(e,s,n).update(t,{options:!n&&this.getSharedOptions(o)||o})}removeHoverStyle(t,e,s){this._setStyle(t,s,"active",!1)}setHoverStyle(t,e,s){this._setStyle(t,s,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const e=this._data,s=this._cachedMeta.data;for(const[a,l,c]of this._syncList)this[a](l,c);this._syncList=[];const n=s.length,o=e.length,r=Math.min(o,n);r&&this.parse(0,r),o>n?this._insertElements(n,o-n,t):o<n&&this._removeElements(o,n-o)}_insertElements(t,e,s=!0){const n=this._cachedMeta,o=n.data,r=t+e;let a;const l=c=>{for(c.length+=e,a=c.length-1;a>=r;a--)c[a]=c[a-e]};for(l(o),a=t;a<r;++a)o[a]=new this.dataElementType;this._parsing&&l(n._parsed),this.parse(t,e),s&&this.updateElements(o,t,e,"reset")}updateElements(t,e,s,n){}_removeElements(t,e){const s=this._cachedMeta;if(this._parsing){const n=s._parsed.splice(t,e);s._stacked&&Et(s,n)}s.data.splice(t,e)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[e,s,n]=t;this[e](s,n)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,e){e&&this._sync(["_removeElements",t,e]);const s=arguments.length-2;s&&this._sync(["_insertElements",t,s])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function Fo(i,t){if(!i._cache.$bar){const e=i.getMatchingVisibleMetas(t);let s=[];for(let n=0,o=e.length;n<o;n++)s=s.concat(e[n].controller.getAllParsedValues(i));i._cache.$bar=bs(s.sort((n,o)=>n-o))}return i._cache.$bar}function Bo(i){const t=i.iScale,e=Fo(t,i.type);let s=t._length,n,o,r,a;const l=()=>{r===32767||r===-32768||(Xt(a)&&(s=Math.min(s,Math.abs(r-a)||s)),a=r)};for(n=0,o=e.length;n<o;++n)r=t.getPixelForValue(e[n]),l();for(a=void 0,n=0,o=t.ticks.length;n<o;++n)r=t.getPixelForTick(n),l();return s}function Wo(i,t,e,s){const n=e.barThickness;let o,r;return T(n)?(o=t.min*e.categoryPercentage,r=e.barPercentage):(o=n*s,r=1),{chunk:o/s,ratio:r,start:t.pixels[i]-o/2}}function Ho(i,t,e,s){const n=t.pixels,o=n[i];let r=i>0?n[i-1]:null,a=i<n.length-1?n[i+1]:null;const l=e.categoryPercentage;r===null&&(r=o-(a===null?t.end-t.start:a-o)),a===null&&(a=o+o-r);const c=o-(o-Math.min(r,a))/2*l;return{chunk:Math.abs(a-r)/2*l/s,ratio:e.barPercentage,start:c}}function No(i,t,e,s){const n=e.parse(i[0],s),o=e.parse(i[1],s),r=Math.min(n,o),a=Math.max(n,o);let l=r,c=a;Math.abs(r)>Math.abs(a)&&(l=a,c=r),t[e.axis]=c,t._custom={barStart:l,barEnd:c,start:n,end:o,min:r,max:a}}function Ls(i,t,e,s){return H(i)?No(i,t,e,s):t[e.axis]=e.parse(i,s),t}function Ci(i,t,e,s){const n=i.iScale,o=i.vScale,r=n.getLabels(),a=n===o,l=[];let c,h,d,u;for(c=e,h=e+s;c<h;++c)u=t[c],d={},d[n.axis]=a||n.parse(r[c],c),l.push(Ls(u,d,o,c));return l}function Oe(i){return i&&i.barStart!==void 0&&i.barEnd!==void 0}function Vo(i,t,e){return i!==0?nt(i):(t.isHorizontal()?1:-1)*(t.min>=e?1:-1)}function jo(i){let t,e,s,n,o;return i.horizontal?(t=i.base>i.x,e="left",s="right"):(t=i.base<i.y,e="bottom",s="top"),t?(n="end",o="start"):(n="start",o="end"),{start:e,end:s,reverse:t,top:n,bottom:o}}function $o(i,t,e,s){let n=t.borderSkipped;const o={};if(!n){i.borderSkipped=o;return}if(n===!0){i.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}const{start:r,end:a,reverse:l,top:c,bottom:h}=jo(i);n==="middle"&&e&&(i.enableBorderRadius=!0,(e._top||0)===s?n=c:(e._bottom||0)===s?n=h:(o[Pi(h,r,a,l)]=!0,n=c)),o[Pi(n,r,a,l)]=!0,i.borderSkipped=o}function Pi(i,t,e,s){return s?(i=Yo(i,t,e),i=Di(i,e,t)):i=Di(i,t,e),i}function Yo(i,t,e){return i===t?e:i===e?t:i}function Di(i,t,e){return i==="start"?t:i==="end"?e:i}function Uo(i,{inflateAmount:t},e){i.inflateAmount=t==="auto"?e===1?.33:0:t}class Ua extends ve{static id="bar";static defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};static overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};parsePrimitiveData(t,e,s,n){return Ci(t,e,s,n)}parseArrayData(t,e,s,n){return Ci(t,e,s,n)}parseObjectData(t,e,s,n){const{iScale:o,vScale:r}=t,{xAxisKey:a="x",yAxisKey:l="y"}=this._parsing,c=o.axis==="x"?a:l,h=r.axis==="x"?a:l,d=[];let u,f,p,g;for(u=s,f=s+n;u<f;++u)g=e[u],p={},p[o.axis]=o.parse(Mt(g,c),u),d.push(Ls(Mt(g,h),p,r,u));return d}updateRangeFromParsed(t,e,s,n){super.updateRangeFromParsed(t,e,s,n);const o=s._custom;o&&e===this._cachedMeta.vScale&&(t.min=Math.min(t.min,o.min),t.max=Math.max(t.max,o.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const e=this._cachedMeta,{iScale:s,vScale:n}=e,o=this.getParsed(t),r=o._custom,a=Oe(r)?"["+r.start+", "+r.end+"]":""+n.getLabelForValue(o[n.axis]);return{label:""+s.getLabelForValue(o[s.axis]),value:a}}initialize(){this.enableOptionSharing=!0,super.initialize();const t=this._cachedMeta;t.stack=this.getDataset().stack}update(t){const e=this._cachedMeta;this.updateElements(e.data,0,e.data.length,t)}updateElements(t,e,s,n){const o=n==="reset",{index:r,_cachedMeta:{vScale:a}}=this,l=a.getBasePixel(),c=a.isHorizontal(),h=this._getRuler(),{sharedOptions:d,includeOptions:u}=this._getSharedOptions(e,n);for(let f=e;f<e+s;f++){const p=this.getParsed(f),g=o||T(p[a.axis])?{base:l,head:l}:this._calculateBarValuePixels(f),m=this._calculateBarIndexPixels(f,h),b=(p._stacks||{})[a.axis],_={horizontal:c,base:g.base,enableBorderRadius:!b||Oe(p._custom)||r===b._top||r===b._bottom,x:c?g.head:m.center,y:c?m.center:g.head,height:c?m.size:Math.abs(g.size),width:c?Math.abs(g.size):m.size};u&&(_.options=d||this.resolveDataElementOptions(f,t[f].active?"active":n));const y=_.options||t[f].options;$o(_,y,b,r),Uo(_,y,h.ratio),this.updateElement(t[f],f,_,n)}}_getStacks(t,e){const{iScale:s}=this._cachedMeta,n=s.getMatchingVisibleMetas(this._type).filter(h=>h.controller.options.grouped),o=s.options.stacked,r=[],a=this._cachedMeta.controller.getParsed(e),l=a&&a[s.axis],c=h=>{const d=h._parsed.find(f=>f[s.axis]===l),u=d&&d[h.vScale.axis];if(T(u)||isNaN(u))return!0};for(const h of n)if(!(e!==void 0&&c(h))&&((o===!1||r.indexOf(h.stack)===-1||o===void 0&&h.stack===void 0)&&r.push(h.stack),h.index===t))break;return r.length||r.push(void 0),r}_getStackCount(t){return this._getStacks(void 0,t).length}_getAxisCount(){return this._getAxis().length}getFirstScaleIdForIndexAxis(){const t=this.chart.scales,e=this.chart.options.indexAxis;return Object.keys(t).filter(s=>t[s].axis===e).shift()}_getAxis(){const t={},e=this.getFirstScaleIdForIndexAxis();for(const s of this.chart.data.datasets)t[P(this.chart.options.indexAxis==="x"?s.xAxisID:s.yAxisID,e)]=!0;return Object.keys(t)}_getStackIndex(t,e,s){const n=this._getStacks(t,s),o=e!==void 0?n.indexOf(e):-1;return o===-1?n.length-1:o}_getRuler(){const t=this.options,e=this._cachedMeta,s=e.iScale,n=[];let o,r;for(o=0,r=e.data.length;o<r;++o)n.push(s.getPixelForValue(this.getParsed(o)[s.axis],o));const a=t.barThickness;return{min:a||Bo(e),pixels:n,start:s._startPixel,end:s._endPixel,stackCount:this._getStackCount(),scale:s,grouped:t.grouped,ratio:a?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:e,_stacked:s,index:n},options:{base:o,minBarLength:r}}=this,a=o||0,l=this.getParsed(t),c=l._custom,h=Oe(c);let d=l[e.axis],u=0,f=s?this.applyStack(e,l,s):d,p,g;f!==d&&(u=f-d,f=d),h&&(d=c.barStart,f=c.barEnd-c.barStart,d!==0&&nt(d)!==nt(c.barEnd)&&(u=0),u+=d);const m=!T(o)&&!h?o:u;let b=e.getPixelForValue(m);if(this.chart.getDataVisibility(t)?p=e.getPixelForValue(u+f):p=b,g=p-b,Math.abs(g)<r){g=Vo(g,e,a)*r,d===a&&(b-=g/2);const _=e.getPixelForDecimal(0),y=e.getPixelForDecimal(1),v=Math.min(_,y),x=Math.max(_,y);b=Math.max(Math.min(b,x),v),p=b+g,s&&!h&&(l._stacks[e.axis]._visualValues[n]=e.getValueForPixel(p)-e.getValueForPixel(b))}if(b===e.getPixelForValue(a)){const _=nt(g)*e.getLineWidthForValue(a)/2;b+=_,g-=_}return{size:g,base:b,head:p,center:p+g/2}}_calculateBarIndexPixels(t,e){const s=e.scale,n=this.options,o=n.skipNull,r=P(n.maxBarThickness,1/0);let a,l;const c=this._getAxisCount();if(e.grouped){const h=o?this._getStackCount(t):e.stackCount,d=n.barThickness==="flex"?Ho(t,e,n,h*c):Wo(t,e,n,h*c),u=this.chart.options.indexAxis==="x"?this.getDataset().xAxisID:this.getDataset().yAxisID,f=this._getAxis().indexOf(P(u,this.getFirstScaleIdForIndexAxis())),p=this._getStackIndex(this.index,this._cachedMeta.stack,o?t:void 0)+f;a=d.start+d.chunk*p+d.chunk/2,l=Math.min(r,d.chunk*d.ratio)}else a=s.getPixelForValue(this.getParsed(t)[s.axis],t),l=Math.min(r,e.min*e.ratio);return{base:a-l/2,head:a+l/2,center:a,size:l}}draw(){const t=this._cachedMeta,e=t.vScale,s=t.data,n=s.length;let o=0;for(;o<n;++o)this.getParsed(o)[e.axis]!==null&&!s[o].hidden&&s[o].draw(this._ctx)}}function Xo(i,t,e){let s=1,n=1,o=0,r=0;if(t<F){const a=i,l=a+t,c=Math.cos(a),h=Math.sin(a),d=Math.cos(l),u=Math.sin(l),f=(y,v,x)=>Gt(y,a,l,!0)?1:Math.max(v,v*e,x,x*e),p=(y,v,x)=>Gt(y,a,l,!0)?-1:Math.min(v,v*e,x,x*e),g=f(0,c,d),m=f(N,h,u),b=p(L,c,d),_=p(L+N,h,u);s=(g-b)/2,n=(m-_)/2,o=-(g+b)/2,r=-(m+_)/2}return{ratioX:s,ratioY:n,offsetX:o,offsetY:r}}class Xa extends ve{static id="doughnut";static defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"};static descriptors={_scriptable:t=>t!=="spacing",_indexable:t=>t!=="spacing"&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:s,color:n}}=t.legend.options;return e.labels.map((o,r)=>{const l=t.getDatasetMeta(0).controller.getStyle(r);return{text:o,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:n,lineWidth:l.borderWidth,pointStyle:s,hidden:!t.getDataVisibility(r),index:r}})}return[]}},onClick(t,e,s){s.chart.toggleDataVisibility(e.index),s.chart.update()}}}};constructor(t,e){super(t,e),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,e){const s=this.getDataset().data,n=this._cachedMeta;if(this._parsing===!1)n._parsed=s;else{let o=l=>+s[l];if(A(s[t])){const{key:l="value"}=this._parsing;o=c=>+Mt(s[c],l)}let r,a;for(r=t,a=t+e;r<a;++r)n._parsed[r]=o(r)}}_getRotation(){return lt(this.options.rotation-90)}_getCircumference(){return lt(this.options.circumference)}_getRotationExtents(){let t=F,e=-F;for(let s=0;s<this.chart.data.datasets.length;++s)if(this.chart.isDatasetVisible(s)&&this.chart.getDatasetMeta(s).type===this._type){const n=this.chart.getDatasetMeta(s).controller,o=n._getRotation(),r=n._getCircumference();t=Math.min(t,o),e=Math.max(e,o+r)}return{rotation:t,circumference:e-t}}update(t){const e=this.chart,{chartArea:s}=e,n=this._cachedMeta,o=n.data,r=this.getMaxBorderWidth()+this.getMaxOffset(o)+this.options.spacing,a=Math.max((Math.min(s.width,s.height)-r)/2,0),l=Math.min(qs(this.options.cutout,a),1),c=this._getRingWeight(this.index),{circumference:h,rotation:d}=this._getRotationExtents(),{ratioX:u,ratioY:f,offsetX:p,offsetY:g}=Xo(d,h,l),m=(s.width-r)/u,b=(s.height-r)/f,_=Math.max(Math.min(m,b)/2,0),y=us(this.options.radius,_),v=Math.max(y*l,0),x=(y-v)/this._getVisibleDatasetWeightTotal();this.offsetX=p*y,this.offsetY=g*y,n.total=this.calculateTotal(),this.outerRadius=y-x*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-x*c,0),this.updateElements(o,0,o.length,t)}_circumference(t,e){const s=this.options,n=this._cachedMeta,o=this._getCircumference();return e&&s.animation.animateRotate||!this.chart.getDataVisibility(t)||n._parsed[t]===null||n.data[t].hidden?0:this.calculateCircumference(n._parsed[t]*o/F)}updateElements(t,e,s,n){const o=n==="reset",r=this.chart,a=r.chartArea,c=r.options.animation,h=(a.left+a.right)/2,d=(a.top+a.bottom)/2,u=o&&c.animateScale,f=u?0:this.innerRadius,p=u?0:this.outerRadius,{sharedOptions:g,includeOptions:m}=this._getSharedOptions(e,n);let b=this._getRotation(),_;for(_=0;_<e;++_)b+=this._circumference(_,o);for(_=e;_<e+s;++_){const y=this._circumference(_,o),v=t[_],x={x:h+this.offsetX,y:d+this.offsetY,startAngle:b,endAngle:b+y,circumference:y,outerRadius:p,innerRadius:f};m&&(x.options=g||this.resolveDataElementOptions(_,v.active?"active":n)),b+=y,this.updateElement(v,_,x,n)}}calculateTotal(){const t=this._cachedMeta,e=t.data;let s=0,n;for(n=0;n<e.length;n++){const o=t._parsed[n];o!==null&&!isNaN(o)&&this.chart.getDataVisibility(n)&&!e[n].hidden&&(s+=Math.abs(o))}return s}calculateCircumference(t){const e=this._cachedMeta.total;return e>0&&!isNaN(t)?F*(Math.abs(t)/e):0}getLabelAndValue(t){const e=this._cachedMeta,s=this.chart,n=s.data.labels||[],o=Ye(e._parsed[t],s.options.locale);return{label:n[t]||"",value:o}}getMaxBorderWidth(t){let e=0;const s=this.chart;let n,o,r,a,l;if(!t){for(n=0,o=s.data.datasets.length;n<o;++n)if(s.isDatasetVisible(n)){r=s.getDatasetMeta(n),t=r.data,a=r.controller;break}}if(!t)return 0;for(n=0,o=t.length;n<o;++n)l=a.resolveDataElementOptions(n),l.borderAlign!=="inner"&&(e=Math.max(e,l.borderWidth||0,l.hoverBorderWidth||0));return e}getMaxOffset(t){let e=0;for(let s=0,n=t.length;s<n;++s){const o=this.resolveDataElementOptions(s);e=Math.max(e,o.offset||0,o.hoverOffset||0)}return e}_getRingWeightOffset(t){let e=0;for(let s=0;s<t;++s)this.chart.isDatasetVisible(s)&&(e+=this._getRingWeight(s));return e}_getRingWeight(t){return Math.max(P(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}class Ka extends ve{static id="line";static defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1};static overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const e=this._cachedMeta,{dataset:s,data:n=[],_dataset:o}=e,r=this.chart._animationsDisabled;let{start:a,count:l}=bn(e,n,r);this._drawStart=a,this._drawCount=l,_n(e)&&(a=0,l=n.length),s._chart=this.chart,s._datasetIndex=this.index,s._decimated=!!o._decimated,s.points=n;const c=this.resolveDatasetElementOptions(t);this.options.showLine||(c.borderWidth=0),c.segment=this.options.segment,this.updateElement(s,void 0,{animated:!r,options:c},t),this.updateElements(n,a,l,t)}updateElements(t,e,s,n){const o=n==="reset",{iScale:r,vScale:a,_stacked:l,_dataset:c}=this._cachedMeta,{sharedOptions:h,includeOptions:d}=this._getSharedOptions(e,n),u=r.axis,f=a.axis,{spanGaps:p,segment:g}=this.options,m=Kt(p)?p:Number.POSITIVE_INFINITY,b=this.chart._animationsDisabled||o||n==="none",_=e+s,y=t.length;let v=e>0&&this.getParsed(e-1);for(let x=0;x<y;++x){const k=t[x],S=b?k:{};if(x<e||x>=_){S.skip=!0;continue}const M=this.getParsed(x),w=T(M[f]),D=S[u]=r.getPixelForValue(M[u],x),C=S[f]=o||w?a.getBasePixel():a.getPixelForValue(l?this.applyStack(a,M,l):M[f],x);S.skip=isNaN(D)||isNaN(C)||w,S.stop=x>0&&Math.abs(M[u]-v[u])>m,g&&(S.parsed=M,S.raw=c.data[x]),d&&(S.options=h||this.resolveDataElementOptions(x,k.active?"active":n)),b||this.updateElement(k,x,S,n),v=M}}getMaxOverflow(){const t=this._cachedMeta,e=t.dataset,s=e.options&&e.options.borderWidth||0,n=t.data||[];if(!n.length)return s;const o=n[0].size(this.resolveDataElementOptions(0)),r=n[n.length-1].size(this.resolveDataElementOptions(n.length-1));return Math.max(s,o,r)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}function bt(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class ti{static override(t){Object.assign(ti.prototype,t)}options;constructor(t){this.options=t||{}}init(){}formats(){return bt()}parse(){return bt()}format(){return bt()}add(){return bt()}diff(){return bt()}startOf(){return bt()}endOf(){return bt()}}var Ko={_date:ti};function Go(i,t,e,s){const{controller:n,data:o,_sorted:r}=i,a=n._cachedMeta.iScale,l=i.dataset&&i.dataset.options?i.dataset.options.spanGaps:null;if(a&&t===a.axis&&t!=="r"&&r&&o.length){const c=a._reversePixels?un:yt;if(s){if(n._sharedOptions){const h=o[0],d=typeof h.getRange=="function"&&h.getRange(t);if(d){const u=c(o,t,e-d),f=c(o,t,e+d);return{lo:u.lo,hi:f.hi}}}}else{const h=c(o,t,e);if(l){const{vScale:d}=n._cachedMeta,{_parsed:u}=i,f=u.slice(0,h.lo+1).reverse().findIndex(g=>!T(g[d.axis]));h.lo-=Math.max(0,f);const p=u.slice(h.hi).findIndex(g=>!T(g[d.axis]));h.hi+=Math.max(0,p)}return h}}return{lo:0,hi:o.length-1}}function Me(i,t,e,s,n){const o=i.getSortedVisibleDatasetMetas(),r=e[t];for(let a=0,l=o.length;a<l;++a){const{index:c,data:h}=o[a],{lo:d,hi:u}=Go(o[a],t,r,n);for(let f=d;f<=u;++f){const p=h[f];p.skip||s(p,c,f)}}}function qo(i){const t=i.indexOf("x")!==-1,e=i.indexOf("y")!==-1;return function(s,n){const o=t?Math.abs(s.x-n.x):0,r=e?Math.abs(s.y-n.y):0;return Math.sqrt(Math.pow(o,2)+Math.pow(r,2))}}function Ae(i,t,e,s,n){const o=[];return!n&&!i.isPointInArea(t)||Me(i,e,t,function(a,l,c){!n&&!qt(a,i.chartArea,0)||a.inRange(t.x,t.y,s)&&o.push({element:a,datasetIndex:l,index:c})},!0),o}function Jo(i,t,e,s){let n=[];function o(r,a,l){const{startAngle:c,endAngle:h}=r.getProps(["startAngle","endAngle"],s),{angle:d}=ps(r,{x:t.x,y:t.y});Gt(d,c,h)&&n.push({element:r,datasetIndex:a,index:l})}return Me(i,e,t,o),n}function Qo(i,t,e,s,n,o){let r=[];const a=qo(e);let l=Number.POSITIVE_INFINITY;function c(h,d,u){const f=h.inRange(t.x,t.y,n);if(s&&!f)return;const p=h.getCenterPoint(n);if(!(!!o||i.isPointInArea(p))&&!f)return;const m=a(t,p);m<l?(r=[{element:h,datasetIndex:d,index:u}],l=m):m===l&&r.push({element:h,datasetIndex:d,index:u})}return Me(i,e,t,c),r}function Te(i,t,e,s,n,o){return!o&&!i.isPointInArea(t)?[]:e==="r"&&!s?Jo(i,t,e,n):Qo(i,t,e,s,n,o)}function Oi(i,t,e,s,n){const o=[],r=e==="x"?"inXRange":"inYRange";let a=!1;return Me(i,e,t,(l,c,h)=>{l[r]&&l[r](t[e],n)&&(o.push({element:l,datasetIndex:c,index:h}),a=a||l.inRange(t.x,t.y,n))}),s&&!a?[]:o}var Zo={modes:{index(i,t,e,s){const n=_t(t,i),o=e.axis||"x",r=e.includeInvisible||!1,a=e.intersect?Ae(i,n,o,s,r):Te(i,n,o,!1,s,r),l=[];return a.length?(i.getSortedVisibleDatasetMetas().forEach(c=>{const h=a[0].index,d=c.data[h];d&&!d.skip&&l.push({element:d,datasetIndex:c.index,index:h})}),l):[]},dataset(i,t,e,s){const n=_t(t,i),o=e.axis||"xy",r=e.includeInvisible||!1;let a=e.intersect?Ae(i,n,o,s,r):Te(i,n,o,!1,s,r);if(a.length>0){const l=a[0].datasetIndex,c=i.getDatasetMeta(l).data;a=[];for(let h=0;h<c.length;++h)a.push({element:c[h],datasetIndex:l,index:h})}return a},point(i,t,e,s){const n=_t(t,i),o=e.axis||"xy",r=e.includeInvisible||!1;return Ae(i,n,o,s,r)},nearest(i,t,e,s){const n=_t(t,i),o=e.axis||"xy",r=e.includeInvisible||!1;return Te(i,n,o,e.intersect,s,r)},x(i,t,e,s){const n=_t(t,i);return Oi(i,n,"x",e.intersect,s)},y(i,t,e,s){const n=_t(t,i);return Oi(i,n,"y",e.intersect,s)}}};const Is=["left","top","right","bottom"];function zt(i,t){return i.filter(e=>e.pos===t)}function Ai(i,t){return i.filter(e=>Is.indexOf(e.pos)===-1&&e.box.axis===t)}function Ft(i,t){return i.sort((e,s)=>{const n=t?s:e,o=t?e:s;return n.weight===o.weight?n.index-o.index:n.weight-o.weight})}function tr(i){const t=[];let e,s,n,o,r,a;for(e=0,s=(i||[]).length;e<s;++e)n=i[e],{position:o,options:{stack:r,stackWeight:a=1}}=n,t.push({index:e,box:n,pos:o,horizontal:n.isHorizontal(),weight:n.weight,stack:r&&o+r,stackWeight:a});return t}function er(i){const t={};for(const e of i){const{stack:s,pos:n,stackWeight:o}=e;if(!s||!Is.includes(n))continue;const r=t[s]||(t[s]={count:0,placed:0,weight:0,size:0});r.count++,r.weight+=o}return t}function ir(i,t){const e=er(i),{vBoxMaxWidth:s,hBoxMaxHeight:n}=t;let o,r,a;for(o=0,r=i.length;o<r;++o){a=i[o];const{fullSize:l}=a.box,c=e[a.stack],h=c&&a.stackWeight/c.weight;a.horizontal?(a.width=h?h*s:l&&t.availableWidth,a.height=n):(a.width=s,a.height=h?h*n:l&&t.availableHeight)}return e}function sr(i){const t=tr(i),e=Ft(t.filter(c=>c.box.fullSize),!0),s=Ft(zt(t,"left"),!0),n=Ft(zt(t,"right")),o=Ft(zt(t,"top"),!0),r=Ft(zt(t,"bottom")),a=Ai(t,"x"),l=Ai(t,"y");return{fullSize:e,leftAndTop:s.concat(o),rightAndBottom:n.concat(l).concat(r).concat(a),chartArea:zt(t,"chartArea"),vertical:s.concat(n).concat(l),horizontal:o.concat(r).concat(a)}}function Ti(i,t,e,s){return Math.max(i[e],t[e])+Math.max(i[s],t[s])}function Es(i,t){i.top=Math.max(i.top,t.top),i.left=Math.max(i.left,t.left),i.bottom=Math.max(i.bottom,t.bottom),i.right=Math.max(i.right,t.right)}function nr(i,t,e,s){const{pos:n,box:o}=e,r=i.maxPadding;if(!A(n)){e.size&&(i[n]-=e.size);const d=s[e.stack]||{size:0,count:1};d.size=Math.max(d.size,e.horizontal?o.height:o.width),e.size=d.size/d.count,i[n]+=e.size}o.getPadding&&Es(r,o.getPadding());const a=Math.max(0,t.outerWidth-Ti(r,i,"left","right")),l=Math.max(0,t.outerHeight-Ti(r,i,"top","bottom")),c=a!==i.w,h=l!==i.h;return i.w=a,i.h=l,e.horizontal?{same:c,other:h}:{same:h,other:c}}function or(i){const t=i.maxPadding;function e(s){const n=Math.max(t[s]-i[s],0);return i[s]+=n,n}i.y+=e("top"),i.x+=e("left"),e("right"),e("bottom")}function rr(i,t){const e=t.maxPadding;function s(n){const o={left:0,top:0,right:0,bottom:0};return n.forEach(r=>{o[r]=Math.max(t[r],e[r])}),o}return s(i?["left","right"]:["top","bottom"])}function Ht(i,t,e,s){const n=[];let o,r,a,l,c,h;for(o=0,r=i.length,c=0;o<r;++o){a=i[o],l=a.box,l.update(a.width||t.w,a.height||t.h,rr(a.horizontal,t));const{same:d,other:u}=nr(t,e,a,s);c|=d&&n.length,h=h||u,l.fullSize||n.push(a)}return c&&Ht(n,t,e,s)||h}function oe(i,t,e,s,n){i.top=e,i.left=t,i.right=t+s,i.bottom=e+n,i.width=s,i.height=n}function Ri(i,t,e,s){const n=e.padding;let{x:o,y:r}=t;for(const a of i){const l=a.box,c=s[a.stack]||{placed:0,weight:1},h=a.stackWeight/c.weight||1;if(a.horizontal){const d=t.w*h,u=c.size||l.height;Xt(c.start)&&(r=c.start),l.fullSize?oe(l,n.left,r,e.outerWidth-n.right-n.left,u):oe(l,t.left+c.placed,r,d,u),c.start=r,c.placed+=d,r=l.bottom}else{const d=t.h*h,u=c.size||l.width;Xt(c.start)&&(o=c.start),l.fullSize?oe(l,o,n.top,u,e.outerHeight-n.bottom-n.top):oe(l,o,t.top+c.placed,u,d),c.start=o,c.placed+=d,o=l.right}}t.x=o,t.y=r}var q={addBox(i,t){i.boxes||(i.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(e){t.draw(e)}}]},i.boxes.push(t)},removeBox(i,t){const e=i.boxes?i.boxes.indexOf(t):-1;e!==-1&&i.boxes.splice(e,1)},configure(i,t,e){t.fullSize=e.fullSize,t.position=e.position,t.weight=e.weight},update(i,t,e,s){if(!i)return;const n=Q(i.options.layout.padding),o=Math.max(t-n.width,0),r=Math.max(e-n.height,0),a=sr(i.boxes),l=a.vertical,c=a.horizontal;R(i.boxes,g=>{typeof g.beforeLayout=="function"&&g.beforeLayout()});const h=l.reduce((g,m)=>m.box.options&&m.box.options.display===!1?g:g+1,0)||1,d=Object.freeze({outerWidth:t,outerHeight:e,padding:n,availableWidth:o,availableHeight:r,vBoxMaxWidth:o/2/h,hBoxMaxHeight:r/2}),u=Object.assign({},n);Es(u,Q(s));const f=Object.assign({maxPadding:u,w:o,h:r,x:n.left,y:n.top},n),p=ir(l.concat(c),d);Ht(a.fullSize,f,d,p),Ht(l,f,d,p),Ht(c,f,d,p)&&Ht(l,f,d,p),or(f),Ri(a.leftAndTop,f,d,p),f.x+=f.w,f.y+=f.h,Ri(a.rightAndBottom,f,d,p),i.chartArea={left:f.left,top:f.top,right:f.left+f.w,bottom:f.top+f.h,height:f.h,width:f.w},R(a.chartArea,g=>{const m=g.box;Object.assign(m,i.chartArea),m.update(f.w,f.h,{left:0,top:0,right:0,bottom:0})})}};class zs{acquireContext(t,e){}releaseContext(t){return!1}addEventListener(t,e,s){}removeEventListener(t,e,s){}getDevicePixelRatio(){return 1}getMaximumSize(t,e,s,n){return e=Math.max(0,e||t.width),s=s||t.height,{width:e,height:Math.max(0,n?Math.floor(e/n):s)}}isAttached(t){return!0}updateConfig(t){}}class ar extends zs{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const de="$chartjs",lr={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Li=i=>i===null||i==="";function cr(i,t){const e=i.style,s=i.getAttribute("height"),n=i.getAttribute("width");if(i[de]={initial:{height:s,width:n,style:{display:e.display,height:e.height,width:e.width}}},e.display=e.display||"block",e.boxSizing=e.boxSizing||"border-box",Li(n)){const o=mi(i,"width");o!==void 0&&(i.width=o)}if(Li(s))if(i.style.height==="")i.height=i.width/(t||2);else{const o=mi(i,"height");o!==void 0&&(i.height=o)}return i}const Fs=ao?{passive:!0}:!1;function hr(i,t,e){i&&i.addEventListener(t,e,Fs)}function dr(i,t,e){i&&i.canvas&&i.canvas.removeEventListener(t,e,Fs)}function ur(i,t){const e=lr[i.type]||i.type,{x:s,y:n}=_t(i,t);return{type:e,chart:t,native:i,x:s!==void 0?s:null,y:n!==void 0?n:null}}function _e(i,t){for(const e of i)if(e===t||e.contains(t))return!0}function fr(i,t,e){const s=i.canvas,n=new MutationObserver(o=>{let r=!1;for(const a of o)r=r||_e(a.addedNodes,s),r=r&&!_e(a.removedNodes,s);r&&e()});return n.observe(document,{childList:!0,subtree:!0}),n}function gr(i,t,e){const s=i.canvas,n=new MutationObserver(o=>{let r=!1;for(const a of o)r=r||_e(a.removedNodes,s),r=r&&!_e(a.addedNodes,s);r&&e()});return n.observe(document,{childList:!0,subtree:!0}),n}const Qt=new Map;let Ii=0;function Bs(){const i=window.devicePixelRatio;i!==Ii&&(Ii=i,Qt.forEach((t,e)=>{e.currentDevicePixelRatio!==i&&t()}))}function pr(i,t){Qt.size||window.addEventListener("resize",Bs),Qt.set(i,t)}function mr(i){Qt.delete(i),Qt.size||window.removeEventListener("resize",Bs)}function br(i,t,e){const s=i.canvas,n=s&&Ze(s);if(!n)return;const o=xs((a,l)=>{const c=n.clientWidth;e(a,l),c<n.clientWidth&&e()},window),r=new ResizeObserver(a=>{const l=a[0],c=l.contentRect.width,h=l.contentRect.height;c===0&&h===0||o(c,h)});return r.observe(n),pr(i,o),r}function Re(i,t,e){e&&e.disconnect(),t==="resize"&&mr(i)}function _r(i,t,e){const s=i.canvas,n=xs(o=>{i.ctx!==null&&e(ur(o,i))},i);return hr(s,t,n),n}class xr extends zs{acquireContext(t,e){const s=t&&t.getContext&&t.getContext("2d");return s&&s.canvas===t?(cr(t,e),s):null}releaseContext(t){const e=t.canvas;if(!e[de])return!1;const s=e[de].initial;["height","width"].forEach(o=>{const r=s[o];T(r)?e.removeAttribute(o):e.setAttribute(o,r)});const n=s.style||{};return Object.keys(n).forEach(o=>{e.style[o]=n[o]}),e.width=e.width,delete e[de],!0}addEventListener(t,e,s){this.removeEventListener(t,e);const n=t.$proxies||(t.$proxies={}),r={attach:fr,detach:gr,resize:br}[e]||_r;n[e]=r(t,e,s)}removeEventListener(t,e){const s=t.$proxies||(t.$proxies={}),n=s[e];if(!n)return;({attach:Re,detach:Re,resize:Re}[e]||dr)(t,e,n),s[e]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,s,n){return ro(t,e,s,n)}isAttached(t){const e=t&&Ze(t);return!!(e&&e.isConnected)}}function yr(i){return!Qe()||typeof OffscreenCanvas<"u"&&i instanceof OffscreenCanvas?ar:xr}class ct{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(t){const{x:e,y:s}=this.getProps(["x","y"],t);return{x:e,y:s}}hasValue(){return Kt(this.x)&&Kt(this.y)}getProps(t,e){const s=this.$animations;if(!e||!s)return this;const n={};return t.forEach(o=>{n[o]=s[o]&&s[o].active()?s[o]._to:this[o]}),n}}function vr(i,t){const e=i.options.ticks,s=Mr(i),n=Math.min(e.maxTicksLimit||s,s),o=e.major.enabled?Sr(t):[],r=o.length,a=o[0],l=o[r-1],c=[];if(r>n)return wr(t,c,o,r/n),c;const h=kr(o,t,n);if(r>0){let d,u;const f=r>1?Math.round((l-a)/(r-1)):null;for(re(t,c,h,T(f)?0:a-f,a),d=0,u=r-1;d<u;d++)re(t,c,h,o[d],o[d+1]);return re(t,c,h,l,T(f)?t.length:l+f),c}return re(t,c,h),c}function Mr(i){const t=i.options.offset,e=i._tickSize(),s=i._length/e+(t?0:1),n=i._maxLength/e;return Math.floor(Math.min(s,n))}function kr(i,t,e){const s=Cr(i),n=t.length/e;if(!s)return Math.max(n,1);const o=on(s);for(let r=0,a=o.length-1;r<a;r++){const l=o[r];if(l>n)return l}return Math.max(n,1)}function Sr(i){const t=[];let e,s;for(e=0,s=i.length;e<s;e++)i[e].major&&t.push(e);return t}function wr(i,t,e,s){let n=0,o=e[0],r;for(s=Math.ceil(s),r=0;r<i.length;r++)r===o&&(t.push(i[r]),n++,o=e[n*s])}function re(i,t,e,s,n){const o=P(s,0),r=Math.min(P(n,i.length),i.length);let a=0,l,c,h;for(e=Math.ceil(e),n&&(l=n-s,e=l/Math.floor(l/e)),h=o;h<0;)a++,h=Math.round(o+a*e);for(c=Math.max(o,0);c<r;c++)c===h&&(t.push(i[c]),a++,h=Math.round(o+a*e))}function Cr(i){const t=i.length;let e,s;if(t<2)return!1;for(s=i[0],e=1;e<t;++e)if(i[e]-i[e-1]!==s)return!1;return s}const Pr=i=>i==="left"?"right":i==="right"?"left":i,Ei=(i,t,e)=>t==="top"||t==="left"?i[t]+e:i[t]-e,zi=(i,t)=>Math.min(t||i,i);function Fi(i,t){const e=[],s=i.length/t,n=i.length;let o=0;for(;o<n;o+=s)e.push(i[Math.floor(o)]);return e}function Dr(i,t,e){const s=i.ticks.length,n=Math.min(t,s-1),o=i._startPixel,r=i._endPixel,a=1e-6;let l=i.getPixelForTick(n),c;if(!(e&&(s===1?c=Math.max(l-o,r-l):t===0?c=(i.getPixelForTick(1)-l)/2:c=(l-i.getPixelForTick(n-1))/2,l+=n<t?c:-c,l<o-a||l>r+a)))return l}function Or(i,t){R(i,e=>{const s=e.gc,n=s.length/2;let o;if(n>t){for(o=0;o<n;++o)delete e.data[s[o]];s.splice(0,n)}})}function Bt(i){return i.drawTicks?i.tickLength:0}function Bi(i,t){if(!i.display)return 0;const e=U(i.font,t),s=Q(i.padding);return(H(i.text)?i.text.length:1)*e.lineHeight+s.height}function Ar(i,t){return St(i,{scale:t,type:"scale"})}function Tr(i,t,e){return St(i,{tick:e,index:t,type:"tick"})}function Rr(i,t,e){let s=je(i);return(e&&t!=="right"||!e&&t==="right")&&(s=Pr(s)),s}function Lr(i,t,e,s){const{top:n,left:o,bottom:r,right:a,chart:l}=i,{chartArea:c,scales:h}=l;let d=0,u,f,p;const g=r-n,m=a-o;if(i.isHorizontal()){if(f=$(s,o,a),A(e)){const b=Object.keys(e)[0],_=e[b];p=h[b].getPixelForValue(_)+g-t}else e==="center"?p=(c.bottom+c.top)/2+g-t:p=Ei(i,e,t);u=a-o}else{if(A(e)){const b=Object.keys(e)[0],_=e[b];f=h[b].getPixelForValue(_)-m+t}else e==="center"?f=(c.left+c.right)/2-m+t:f=Ei(i,e,t);p=$(s,r,n),d=e==="left"?-N:N}return{titleX:f,titleY:p,maxWidth:u,rotation:d}}class Rt extends ct{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,e){return t}getUserBounds(){let{_userMin:t,_userMax:e,_suggestedMin:s,_suggestedMax:n}=this;return t=et(t,Number.POSITIVE_INFINITY),e=et(e,Number.NEGATIVE_INFINITY),s=et(s,Number.POSITIVE_INFINITY),n=et(n,Number.NEGATIVE_INFINITY),{min:et(t,s),max:et(e,n),minDefined:J(t),maxDefined:J(e)}}getMinMax(t){let{min:e,max:s,minDefined:n,maxDefined:o}=this.getUserBounds(),r;if(n&&o)return{min:e,max:s};const a=this.getMatchingVisibleMetas();for(let l=0,c=a.length;l<c;++l)r=a[l].controller.getMinMax(this,t),n||(e=Math.min(e,r.min)),o||(s=Math.max(s,r.max));return e=o&&e>s?s:e,s=n&&e>s?e:s,{min:et(e,et(s,e)),max:et(s,et(e,s))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){E(this.options.beforeUpdate,[this])}update(t,e,s){const{beginAtZero:n,grace:o,ticks:r}=this.options,a=r.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=e,this._margins=s=Object.assign({left:0,right:0,top:0,bottom:0},s),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+s.left+s.right:this.height+s.top+s.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=Bn(this,o,n),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=a<this.ticks.length;this._convertTicksToLabels(l?Fi(this.ticks,a):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),r.display&&(r.autoSkip||r.source==="auto")&&(this.ticks=vr(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),l&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t=this.options.reverse,e,s;this.isHorizontal()?(e=this.left,s=this.right):(e=this.top,s=this.bottom,t=!t),this._startPixel=e,this._endPixel=s,this._reversePixels=t,this._length=s-e,this._alignToPixels=this.options.alignToPixels}afterUpdate(){E(this.options.afterUpdate,[this])}beforeSetDimensions(){E(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){E(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),E(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){E(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const e=this.options.ticks;let s,n,o;for(s=0,n=t.length;s<n;s++)o=t[s],o.label=E(e.callback,[o.value,s,t],this)}afterTickToLabelConversion(){E(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){E(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,e=t.ticks,s=zi(this.ticks.length,t.ticks.maxTicksLimit),n=e.minRotation||0,o=e.maxRotation;let r=n,a,l,c;if(!this._isVisible()||!e.display||n>=o||s<=1||!this.isHorizontal()){this.labelRotation=n;return}const h=this._getLabelSizes(),d=h.widest.width,u=h.highest.height,f=Y(this.chart.width-d,0,this.maxWidth);a=t.offset?this.maxWidth/s:f/(s-1),d+6>a&&(a=f/(s-(t.offset?.5:1)),l=this.maxHeight-Bt(t.grid)-e.padding-Bi(t.title,this.chart.options.font),c=Math.sqrt(d*d+u*u),r=cn(Math.min(Math.asin(Y((h.highest.height+6)/a,-1,1)),Math.asin(Y(l/c,-1,1))-Math.asin(Y(u/c,-1,1)))),r=Math.max(n,Math.min(o,r))),this.labelRotation=r}afterCalculateLabelRotation(){E(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){E(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:e,options:{ticks:s,title:n,grid:o}}=this,r=this._isVisible(),a=this.isHorizontal();if(r){const l=Bi(n,e.options.font);if(a?(t.width=this.maxWidth,t.height=Bt(o)+l):(t.height=this.maxHeight,t.width=Bt(o)+l),s.display&&this.ticks.length){const{first:c,last:h,widest:d,highest:u}=this._getLabelSizes(),f=s.padding*2,p=lt(this.labelRotation),g=Math.cos(p),m=Math.sin(p);if(a){const b=s.mirror?0:m*d.width+g*u.height;t.height=Math.min(this.maxHeight,t.height+b+f)}else{const b=s.mirror?0:g*d.width+m*u.height;t.width=Math.min(this.maxWidth,t.width+b+f)}this._calculatePadding(c,h,m,g)}}this._handleMargins(),a?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,e,s,n){const{ticks:{align:o,padding:r},position:a}=this.options,l=this.labelRotation!==0,c=a!=="top"&&this.axis==="x";if(this.isHorizontal()){const h=this.getPixelForTick(0)-this.left,d=this.right-this.getPixelForTick(this.ticks.length-1);let u=0,f=0;l?c?(u=n*t.width,f=s*e.height):(u=s*t.height,f=n*e.width):o==="start"?f=e.width:o==="end"?u=t.width:o!=="inner"&&(u=t.width/2,f=e.width/2),this.paddingLeft=Math.max((u-h+r)*this.width/(this.width-h),0),this.paddingRight=Math.max((f-d+r)*this.width/(this.width-d),0)}else{let h=e.height/2,d=t.height/2;o==="start"?(h=0,d=t.height):o==="end"&&(h=e.height,d=0),this.paddingTop=h+r,this.paddingBottom=d+r}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){E(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:e}=this.options;return e==="top"||e==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let e,s;for(e=0,s=t.length;e<s;e++)T(t[e].label)&&(t.splice(e,1),s--,e--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const e=this.options.ticks.sampleSize;let s=this.ticks;e<s.length&&(s=Fi(s,e)),this._labelSizes=t=this._computeLabelSizes(s,s.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,e,s){const{ctx:n,_longestTextCache:o}=this,r=[],a=[],l=Math.floor(e/zi(e,s));let c=0,h=0,d,u,f,p,g,m,b,_,y,v,x;for(d=0;d<e;d+=l){if(p=t[d].label,g=this._resolveTickFontOptions(d),n.font=m=g.string,b=o[m]=o[m]||{data:{},gc:[]},_=g.lineHeight,y=v=0,!T(p)&&!H(p))y=di(n,b.data,b.gc,y,p),v=_;else if(H(p))for(u=0,f=p.length;u<f;++u)x=p[u],!T(x)&&!H(x)&&(y=di(n,b.data,b.gc,y,x),v+=_);r.push(y),a.push(v),c=Math.max(y,c),h=Math.max(v,h)}Or(o,e);const k=r.indexOf(c),S=a.indexOf(h),M=w=>({width:r[w]||0,height:a[w]||0});return{first:M(0),last:M(e-1),widest:M(k),highest:M(S),widths:r,heights:a}}getLabelForValue(t){return t}getPixelForValue(t,e){return NaN}getValueForPixel(t){}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const e=this._startPixel+t*this._length;return dn(this._alignToPixels?mt(this.chart,e,0):e)}getDecimalForPixel(t){const e=(t-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:e}=this;return t<0&&e<0?e:t>0&&e>0?t:0}getContext(t){const e=this.ticks||[];if(t>=0&&t<e.length){const s=e[t];return s.$context||(s.$context=Tr(this.getContext(),t,s))}return this.$context||(this.$context=Ar(this.chart.getContext(),this))}_tickSize(){const t=this.options.ticks,e=lt(this.labelRotation),s=Math.abs(Math.cos(e)),n=Math.abs(Math.sin(e)),o=this._getLabelSizes(),r=t.autoSkipPadding||0,a=o?o.widest.width+r:0,l=o?o.highest.height+r:0;return this.isHorizontal()?l*s>a*n?a/s:l/n:l*n<a*s?l/s:a/n}_isVisible(){const t=this.options.display;return t!=="auto"?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const e=this.axis,s=this.chart,n=this.options,{grid:o,position:r,border:a}=n,l=o.offset,c=this.isHorizontal(),d=this.ticks.length+(l?1:0),u=Bt(o),f=[],p=a.setContext(this.getContext()),g=p.display?p.width:0,m=g/2,b=function(z){return mt(s,z,g)};let _,y,v,x,k,S,M,w,D,C,O,V;if(r==="top")_=b(this.bottom),S=this.bottom-u,w=_-m,C=b(t.top)+m,V=t.bottom;else if(r==="bottom")_=b(this.top),C=t.top,V=b(t.bottom)-m,S=_+m,w=this.top+u;else if(r==="left")_=b(this.right),k=this.right-u,M=_-m,D=b(t.left)+m,O=t.right;else if(r==="right")_=b(this.left),D=t.left,O=b(t.right)-m,k=_+m,M=this.left+u;else if(e==="x"){if(r==="center")_=b((t.top+t.bottom)/2+.5);else if(A(r)){const z=Object.keys(r)[0],B=r[z];_=b(this.chart.scales[z].getPixelForValue(B))}C=t.top,V=t.bottom,S=_+m,w=S+u}else if(e==="y"){if(r==="center")_=b((t.left+t.right)/2);else if(A(r)){const z=Object.keys(r)[0],B=r[z];_=b(this.chart.scales[z].getPixelForValue(B))}k=_-m,M=k-u,D=t.left,O=t.right}const G=P(n.ticks.maxTicksLimit,d),I=Math.max(1,Math.ceil(d/G));for(y=0;y<d;y+=I){const z=this.getContext(y),B=o.setContext(z),Z=a.setContext(z),j=B.lineWidth,wt=B.color,Zt=Z.dash||[],Ct=Z.dashOffset,Lt=B.tickWidth,ft=B.tickColor,It=B.tickBorderDash||[],gt=B.tickBorderDashOffset;v=Dr(this,y,l),v!==void 0&&(x=mt(s,v,j),c?k=M=D=O=x:S=w=C=V=x,f.push({tx1:k,ty1:S,tx2:M,ty2:w,x1:D,y1:C,x2:O,y2:V,width:j,color:wt,borderDash:Zt,borderDashOffset:Ct,tickWidth:Lt,tickColor:ft,tickBorderDash:It,tickBorderDashOffset:gt}))}return this._ticksLength=d,this._borderValue=_,f}_computeLabelItems(t){const e=this.axis,s=this.options,{position:n,ticks:o}=s,r=this.isHorizontal(),a=this.ticks,{align:l,crossAlign:c,padding:h,mirror:d}=o,u=Bt(s.grid),f=u+h,p=d?-h:f,g=-lt(this.labelRotation),m=[];let b,_,y,v,x,k,S,M,w,D,C,O,V="middle";if(n==="top")k=this.bottom-p,S=this._getXAxisLabelAlignment();else if(n==="bottom")k=this.top+p,S=this._getXAxisLabelAlignment();else if(n==="left"){const I=this._getYAxisLabelAlignment(u);S=I.textAlign,x=I.x}else if(n==="right"){const I=this._getYAxisLabelAlignment(u);S=I.textAlign,x=I.x}else if(e==="x"){if(n==="center")k=(t.top+t.bottom)/2+f;else if(A(n)){const I=Object.keys(n)[0],z=n[I];k=this.chart.scales[I].getPixelForValue(z)+f}S=this._getXAxisLabelAlignment()}else if(e==="y"){if(n==="center")x=(t.left+t.right)/2-f;else if(A(n)){const I=Object.keys(n)[0],z=n[I];x=this.chart.scales[I].getPixelForValue(z)}S=this._getYAxisLabelAlignment(u).textAlign}e==="y"&&(l==="start"?V="top":l==="end"&&(V="bottom"));const G=this._getLabelSizes();for(b=0,_=a.length;b<_;++b){y=a[b],v=y.label;const I=o.setContext(this.getContext(b));M=this.getPixelForTick(b)+o.labelOffset,w=this._resolveTickFontOptions(b),D=w.lineHeight,C=H(v)?v.length:1;const z=C/2,B=I.color,Z=I.textStrokeColor,j=I.textStrokeWidth;let wt=S;r?(x=M,S==="inner"&&(b===_-1?wt=this.options.reverse?"left":"right":b===0?wt=this.options.reverse?"right":"left":wt="center"),n==="top"?c==="near"||g!==0?O=-C*D+D/2:c==="center"?O=-G.highest.height/2-z*D+D:O=-G.highest.height+D/2:c==="near"||g!==0?O=D/2:c==="center"?O=G.highest.height/2-z*D:O=G.highest.height-C*D,d&&(O*=-1),g!==0&&!I.showLabelBackdrop&&(x+=D/2*Math.sin(g))):(k=M,O=(1-C)*D/2);let Zt;if(I.showLabelBackdrop){const Ct=Q(I.backdropPadding),Lt=G.heights[b],ft=G.widths[b];let It=O-Ct.top,gt=0-Ct.left;switch(V){case"middle":It-=Lt/2;break;case"bottom":It-=Lt;break}switch(S){case"center":gt-=ft/2;break;case"right":gt-=ft;break;case"inner":b===_-1?gt-=ft:b>0&&(gt-=ft/2);break}Zt={left:gt,top:It,width:ft+Ct.width,height:Lt+Ct.height,color:I.backdropColor}}m.push({label:v,font:w,textOffset:O,options:{rotation:g,color:B,strokeColor:Z,strokeWidth:j,textAlign:wt,textBaseline:V,translation:[x,k],backdrop:Zt}})}return m}_getXAxisLabelAlignment(){const{position:t,ticks:e}=this.options;if(-lt(this.labelRotation))return t==="top"?"left":"right";let n="center";return e.align==="start"?n="left":e.align==="end"?n="right":e.align==="inner"&&(n="inner"),n}_getYAxisLabelAlignment(t){const{position:e,ticks:{crossAlign:s,mirror:n,padding:o}}=this.options,r=this._getLabelSizes(),a=t+o,l=r.widest.width;let c,h;return e==="left"?n?(h=this.right+o,s==="near"?c="left":s==="center"?(c="center",h+=l/2):(c="right",h+=l)):(h=this.right-a,s==="near"?c="right":s==="center"?(c="center",h-=l/2):(c="left",h=this.left)):e==="right"?n?(h=this.left+o,s==="near"?c="right":s==="center"?(c="center",h-=l/2):(c="left",h-=l)):(h=this.left+a,s==="near"?c="left":s==="center"?(c="center",h+=l/2):(c="right",h=this.right)):c="right",{textAlign:c,x:h}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,e=this.options.position;if(e==="left"||e==="right")return{top:0,left:this.left,bottom:t.height,right:this.right};if(e==="top"||e==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:t.width}}drawBackground(){const{ctx:t,options:{backgroundColor:e},left:s,top:n,width:o,height:r}=this;e&&(t.save(),t.fillStyle=e,t.fillRect(s,n,o,r),t.restore())}getLineWidthForValue(t){const e=this.options.grid;if(!this._isVisible()||!e.display)return 0;const n=this.ticks.findIndex(o=>o.value===t);return n>=0?e.setContext(this.getContext(n)).lineWidth:0}drawGrid(t){const e=this.options.grid,s=this.ctx,n=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let o,r;const a=(l,c,h)=>{!h.width||!h.color||(s.save(),s.lineWidth=h.width,s.strokeStyle=h.color,s.setLineDash(h.borderDash||[]),s.lineDashOffset=h.borderDashOffset,s.beginPath(),s.moveTo(l.x,l.y),s.lineTo(c.x,c.y),s.stroke(),s.restore())};if(e.display)for(o=0,r=n.length;o<r;++o){const l=n[o];e.drawOnChartArea&&a({x:l.x1,y:l.y1},{x:l.x2,y:l.y2},l),e.drawTicks&&a({x:l.tx1,y:l.ty1},{x:l.tx2,y:l.ty2},{color:l.tickColor,width:l.tickWidth,borderDash:l.tickBorderDash,borderDashOffset:l.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:e,options:{border:s,grid:n}}=this,o=s.setContext(this.getContext()),r=s.display?o.width:0;if(!r)return;const a=n.setContext(this.getContext(0)).lineWidth,l=this._borderValue;let c,h,d,u;this.isHorizontal()?(c=mt(t,this.left,r)-r/2,h=mt(t,this.right,a)+a/2,d=u=l):(d=mt(t,this.top,r)-r/2,u=mt(t,this.bottom,a)+a/2,c=h=l),e.save(),e.lineWidth=o.width,e.strokeStyle=o.color,e.beginPath(),e.moveTo(c,d),e.lineTo(h,u),e.stroke(),e.restore()}drawLabels(t){if(!this.options.ticks.display)return;const s=this.ctx,n=this._computeLabelArea();n&&Ue(s,n);const o=this.getLabelItems(t);for(const r of o){const a=r.options,l=r.font,c=r.label,h=r.textOffset;Jt(s,c,0,h,l,a)}n&&Xe(s)}drawTitle(){const{ctx:t,options:{position:e,title:s,reverse:n}}=this;if(!s.display)return;const o=U(s.font),r=Q(s.padding),a=s.align;let l=o.lineHeight/2;e==="bottom"||e==="center"||A(e)?(l+=r.bottom,H(s.text)&&(l+=o.lineHeight*(s.text.length-1))):l+=r.top;const{titleX:c,titleY:h,maxWidth:d,rotation:u}=Lr(this,l,e,a);Jt(t,s.text,0,0,o,{color:s.color,maxWidth:d,rotation:u,textAlign:Rr(a,e,n),textBaseline:"middle",translation:[c,h]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,e=t.ticks&&t.ticks.z||0,s=P(t.grid&&t.grid.z,-1),n=P(t.border&&t.border.z,0);return!this._isVisible()||this.draw!==Rt.prototype.draw?[{z:e,draw:o=>{this.draw(o)}}]:[{z:s,draw:o=>{this.drawBackground(),this.drawGrid(o),this.drawTitle()}},{z:n,draw:()=>{this.drawBorder()}},{z:e,draw:o=>{this.drawLabels(o)}}]}getMatchingVisibleMetas(t){const e=this.chart.getSortedVisibleDatasetMetas(),s=this.axis+"AxisID",n=[];let o,r;for(o=0,r=e.length;o<r;++o){const a=e[o];a[s]===this.id&&(!t||a.type===t)&&n.push(a)}return n}_resolveTickFontOptions(t){const e=this.options.ticks.setContext(this.getContext(t));return U(e.font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class ae{constructor(t,e,s){this.type=t,this.scope=e,this.override=s,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const e=Object.getPrototypeOf(t);let s;zr(e)&&(s=this.register(e));const n=this.items,o=t.id,r=this.scope+"."+o;if(!o)throw new Error("class does not have id: "+t);return o in n||(n[o]=t,Ir(t,r,s),this.override&&W.override(t.id,t.overrides)),r}get(t){return this.items[t]}unregister(t){const e=this.items,s=t.id,n=this.scope;s in e&&delete e[s],n&&s in W[n]&&(delete W[n][s],this.override&&delete kt[s])}}function Ir(i,t,e){const s=Ut(Object.create(null),[e?W.get(e):{},W.get(t),i.defaults]);W.set(t,s),i.defaultRoutes&&Er(t,i.defaultRoutes),i.descriptors&&W.describe(t,i.descriptors)}function Er(i,t){Object.keys(t).forEach(e=>{const s=e.split("."),n=s.pop(),o=[i].concat(s).join("."),r=t[e].split("."),a=r.pop(),l=r.join(".");W.route(o,n,l,a)})}function zr(i){return"id"in i&&"defaults"in i}class Fr{constructor(){this.controllers=new ae(ve,"datasets",!0),this.elements=new ae(ct,"elements"),this.plugins=new ae(Object,"plugins"),this.scales=new ae(Rt,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,e,s){[...e].forEach(n=>{const o=s||this._getRegistryForType(n);s||o.isForType(n)||o===this.plugins&&n.id?this._exec(t,o,n):R(n,r=>{const a=s||this._getRegistryForType(r);this._exec(t,a,r)})})}_exec(t,e,s){const n=Ne(t);E(s["before"+n],[],s),e[t](s),E(s["after"+n],[],s)}_getRegistryForType(t){for(let e=0;e<this._typedRegistries.length;e++){const s=this._typedRegistries[e];if(s.isForType(t))return s}return this.plugins}_get(t,e,s){const n=e.get(t);if(n===void 0)throw new Error('"'+t+'" is not a registered '+s+".");return n}}var st=new Fr;class Br{constructor(){this._init=[]}notify(t,e,s,n){e==="beforeInit"&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const o=n?this._descriptors(t).filter(n):this._descriptors(t),r=this._notify(o,t,e,s);return e==="afterDestroy"&&(this._notify(o,t,"stop"),this._notify(this._init,t,"uninstall")),r}_notify(t,e,s,n){n=n||{};for(const o of t){const r=o.plugin,a=r[s],l=[e,n,o.options];if(E(a,l,r)===!1&&n.cancelable)return!1}return!0}invalidate(){T(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const e=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),e}_createDescriptors(t,e){const s=t&&t.config,n=P(s.options&&s.options.plugins,{}),o=Wr(s);return n===!1&&!e?[]:Nr(t,o,n,e)}_notifyStateChanges(t){const e=this._oldCache||[],s=this._cache,n=(o,r)=>o.filter(a=>!r.some(l=>a.plugin.id===l.plugin.id));this._notify(n(e,s),t,"stop"),this._notify(n(s,e),t,"start")}}function Wr(i){const t={},e=[],s=Object.keys(st.plugins.items);for(let o=0;o<s.length;o++)e.push(st.getPlugin(s[o]));const n=i.plugins||[];for(let o=0;o<n.length;o++){const r=n[o];e.indexOf(r)===-1&&(e.push(r),t[r.id]=!0)}return{plugins:e,localIds:t}}function Hr(i,t){return!t&&i===!1?null:i===!0?{}:i}function Nr(i,{plugins:t,localIds:e},s,n){const o=[],r=i.getContext();for(const a of t){const l=a.id,c=Hr(s[l],n);c!==null&&o.push({plugin:a,options:Vr(i.config,{plugin:a,local:e[l]},c,r)})}return o}function Vr(i,{plugin:t,local:e},s,n){const o=i.pluginScopeKeys(t),r=i.getOptionScopes(s,o);return e&&t.defaults&&r.push(t.defaults),i.createResolver(r,n,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function Be(i,t){const e=W.datasets[i]||{};return((t.datasets||{})[i]||{}).indexAxis||t.indexAxis||e.indexAxis||"x"}function jr(i,t){let e=i;return i==="_index_"?e=t:i==="_value_"&&(e=t==="x"?"y":"x"),e}function $r(i,t){return i===t?"_index_":"_value_"}function Wi(i){if(i==="x"||i==="y"||i==="r")return i}function Yr(i){if(i==="top"||i==="bottom")return"x";if(i==="left"||i==="right")return"y"}function We(i,...t){if(Wi(i))return i;for(const e of t){const s=e.axis||Yr(e.position)||i.length>1&&Wi(i[0].toLowerCase());if(s)return s}throw new Error(\`Cannot determine type of '\${i}' axis. Please provide 'axis' or 'position' option.\`)}function Hi(i,t,e){if(e[t+"AxisID"]===i)return{axis:t}}function Ur(i,t){if(t.data&&t.data.datasets){const e=t.data.datasets.filter(s=>s.xAxisID===i||s.yAxisID===i);if(e.length)return Hi(i,"x",e[0])||Hi(i,"y",e[0])}return{}}function Xr(i,t){const e=kt[i.type]||{scales:{}},s=t.scales||{},n=Be(i.type,t),o=Object.create(null);return Object.keys(s).forEach(r=>{const a=s[r];if(!A(a))return console.error(\`Invalid scale configuration for scale: \${r}\`);if(a._proxy)return console.warn(\`Ignoring resolver passed as options for scale: \${r}\`);const l=We(r,a,Ur(r,i),W.scales[a.type]),c=$r(l,n),h=e.scales||{};o[r]=Vt(Object.create(null),[{axis:l},a,h[l],h[c]])}),i.data.datasets.forEach(r=>{const a=r.type||i.type,l=r.indexAxis||Be(a,t),h=(kt[a]||{}).scales||{};Object.keys(h).forEach(d=>{const u=jr(d,l),f=r[u+"AxisID"]||u;o[f]=o[f]||Object.create(null),Vt(o[f],[{axis:u},s[f],h[d]])})}),Object.keys(o).forEach(r=>{const a=o[r];Vt(a,[W.scales[a.type],W.scale])}),o}function Ws(i){const t=i.options||(i.options={});t.plugins=P(t.plugins,{}),t.scales=Xr(i,t)}function Hs(i){return i=i||{},i.datasets=i.datasets||[],i.labels=i.labels||[],i}function Kr(i){return i=i||{},i.data=Hs(i.data),Ws(i),i}const Ni=new Map,Ns=new Set;function le(i,t){let e=Ni.get(i);return e||(e=t(),Ni.set(i,e),Ns.add(e)),e}const Wt=(i,t,e)=>{const s=Mt(t,e);s!==void 0&&i.add(s)};class Gr{constructor(t){this._config=Kr(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=Hs(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),Ws(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return le(t,()=>[[\`datasets.\${t}\`,""]])}datasetAnimationScopeKeys(t,e){return le(\`\${t}.transition.\${e}\`,()=>[[\`datasets.\${t}.transitions.\${e}\`,\`transitions.\${e}\`],[\`datasets.\${t}\`,""]])}datasetElementScopeKeys(t,e){return le(\`\${t}-\${e}\`,()=>[[\`datasets.\${t}.elements.\${e}\`,\`datasets.\${t}\`,\`elements.\${e}\`,""]])}pluginScopeKeys(t){const e=t.id,s=this.type;return le(\`\${s}-plugin-\${e}\`,()=>[[\`plugins.\${e}\`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,e){const s=this._scopeCache;let n=s.get(t);return(!n||e)&&(n=new Map,s.set(t,n)),n}getOptionScopes(t,e,s){const{options:n,type:o}=this,r=this._cachedScopes(t,s),a=r.get(e);if(a)return a;const l=new Set;e.forEach(h=>{t&&(l.add(t),h.forEach(d=>Wt(l,t,d))),h.forEach(d=>Wt(l,n,d)),h.forEach(d=>Wt(l,kt[o]||{},d)),h.forEach(d=>Wt(l,W,d)),h.forEach(d=>Wt(l,ze,d))});const c=Array.from(l);return c.length===0&&c.push(Object.create(null)),Ns.has(e)&&r.set(e,c),c}chartOptionScopes(){const{options:t,type:e}=this;return[t,kt[e]||{},W.datasets[e]||{},{type:e},W,ze]}resolveNamedOptions(t,e,s,n=[""]){const o={$shared:!0},{resolver:r,subPrefixes:a}=Vi(this._resolverCache,t,n);let l=r;if(Jr(r,e)){o.$shared=!1,s=ut(s)?s():s;const c=this.createResolver(t,s,a);l=At(r,s,c)}for(const c of e)o[c]=l[c];return o}createResolver(t,e,s=[""],n){const{resolver:o}=Vi(this._resolverCache,t,s);return A(e)?At(o,e,void 0,n):o}}function Vi(i,t,e){let s=i.get(t);s||(s=new Map,i.set(t,s));const n=e.join();let o=s.get(n);return o||(o={resolver:Ge(t,e),subPrefixes:e.filter(a=>!a.toLowerCase().includes("hover"))},s.set(n,o)),o}const qr=i=>A(i)&&Object.getOwnPropertyNames(i).some(t=>ut(i[t]));function Jr(i,t){const{isScriptable:e,isIndexable:s}=ks(i);for(const n of t){const o=e(n),r=s(n),a=(r||o)&&i[n];if(o&&(ut(a)||qr(a))||r&&H(a))return!0}return!1}var Qr="4.5.0";const Zr=["top","bottom","left","right","chartArea"];function ji(i,t){return i==="top"||i==="bottom"||Zr.indexOf(i)===-1&&t==="x"}function $i(i,t){return function(e,s){return e[i]===s[i]?e[t]-s[t]:e[i]-s[i]}}function Yi(i){const t=i.chart,e=t.options.animation;t.notifyPlugins("afterRender"),E(e&&e.onComplete,[i],t)}function ta(i){const t=i.chart,e=t.options.animation;E(e&&e.onProgress,[i],t)}function Vs(i){return Qe()&&typeof i=="string"?i=document.getElementById(i):i&&i.length&&(i=i[0]),i&&i.canvas&&(i=i.canvas),i}const ue={},Ui=i=>{const t=Vs(i);return Object.values(ue).filter(e=>e.canvas===t).pop()};function ea(i,t,e){const s=Object.keys(i);for(const n of s){const o=+n;if(o>=t){const r=i[n];delete i[n],(e>0||o>t)&&(i[o+e]=r)}}}function ia(i,t,e,s){return!e||i.type==="mouseout"?null:s?t:i}class sa{static defaults=W;static instances=ue;static overrides=kt;static registry=st;static version=Qr;static getChart=Ui;static register(...t){st.add(...t),Xi()}static unregister(...t){st.remove(...t),Xi()}constructor(t,e){const s=this.config=new Gr(e),n=Vs(t),o=Ui(n);if(o)throw new Error("Canvas is already in use. Chart with ID '"+o.id+"' must be destroyed before the canvas with ID '"+o.canvas.id+"' can be reused.");const r=s.createResolver(s.chartOptionScopes(),this.getContext());this.platform=new(s.platform||yr(n)),this.platform.updateConfig(s);const a=this.platform.acquireContext(n,r.aspectRatio),l=a&&a.canvas,c=l&&l.height,h=l&&l.width;if(this.id=Gs(),this.ctx=a,this.canvas=l,this.width=h,this.height=c,this._options=r,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new Br,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=pn(d=>this.update(d),r.resizeDelay||0),this._dataChanges=[],ue[this.id]=this,!a||!l){console.error("Failed to create chart: can't acquire context from the given item");return}rt.listen(this,"complete",Yi),rt.listen(this,"progress",ta),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:e},width:s,height:n,_aspectRatio:o}=this;return T(t)?e&&o?o:n?s/n:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return st}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():pi(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return ui(this.canvas,this.ctx),this}stop(){return rt.stop(this),this}resize(t,e){rt.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){const s=this.options,n=this.canvas,o=s.maintainAspectRatio&&this.aspectRatio,r=this.platform.getMaximumSize(n,t,e,o),a=s.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=r.width,this.height=r.height,this._aspectRatio=this.aspectRatio,pi(this,a,!0)&&(this.notifyPlugins("resize",{size:r}),E(s.onResize,[this,r],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const e=this.options.scales||{};R(e,(s,n)=>{s.id=n})}buildOrUpdateScales(){const t=this.options,e=t.scales,s=this.scales,n=Object.keys(s).reduce((r,a)=>(r[a]=!1,r),{});let o=[];e&&(o=o.concat(Object.keys(e).map(r=>{const a=e[r],l=We(r,a),c=l==="r",h=l==="x";return{options:a,dposition:c?"chartArea":h?"bottom":"left",dtype:c?"radialLinear":h?"category":"linear"}}))),R(o,r=>{const a=r.options,l=a.id,c=We(l,a),h=P(a.type,r.dtype);(a.position===void 0||ji(a.position,c)!==ji(r.dposition))&&(a.position=r.dposition),n[l]=!0;let d=null;if(l in s&&s[l].type===h)d=s[l];else{const u=st.getScale(h);d=new u({id:l,type:h,ctx:this.ctx,chart:this}),s[d.id]=d}d.init(a,t)}),R(n,(r,a)=>{r||delete s[a]}),R(s,r=>{q.configure(this,r,r.options),q.addBox(this,r)})}_updateMetasets(){const t=this._metasets,e=this.data.datasets.length,s=t.length;if(t.sort((n,o)=>n.index-o.index),s>e){for(let n=e;n<s;++n)this._destroyDatasetMeta(n);t.splice(e,s-e)}this._sortedMetasets=t.slice(0).sort($i("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:e}}=this;t.length>e.length&&delete this._stacks,t.forEach((s,n)=>{e.filter(o=>o===s._dataset).length===0&&this._destroyDatasetMeta(n)})}buildOrUpdateControllers(){const t=[],e=this.data.datasets;let s,n;for(this._removeUnreferencedMetasets(),s=0,n=e.length;s<n;s++){const o=e[s];let r=this.getDatasetMeta(s);const a=o.type||this.config.type;if(r.type&&r.type!==a&&(this._destroyDatasetMeta(s),r=this.getDatasetMeta(s)),r.type=a,r.indexAxis=o.indexAxis||Be(a,this.options),r.order=o.order||0,r.index=s,r.label=""+o.label,r.visible=this.isDatasetVisible(s),r.controller)r.controller.updateIndex(s),r.controller.linkScales();else{const l=st.getController(a),{datasetElementType:c,dataElementType:h}=W.datasets[a];Object.assign(l,{dataElementType:st.getElement(h),datasetElementType:c&&st.getElement(c)}),r.controller=new l(this,s),t.push(r.controller)}}return this._updateMetasets(),t}_resetElements(){R(this.data.datasets,(t,e)=>{this.getDatasetMeta(e).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const e=this.config;e.update();const s=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),n=this._animationsDisabled=!s.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const o=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let r=0;for(let c=0,h=this.data.datasets.length;c<h;c++){const{controller:d}=this.getDatasetMeta(c),u=!n&&o.indexOf(d)===-1;d.buildOrUpdateElements(u),r=Math.max(+d.getMaxOverflow(),r)}r=this._minPadding=s.layout.autoPadding?r:0,this._updateLayout(r),n||R(o,c=>{c.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort($i("z","_idx"));const{_active:a,_lastEvent:l}=this;l?this._eventHandler(l,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){R(this.scales,t=>{q.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,e=new Set(Object.keys(this._listeners)),s=new Set(t.events);(!ii(e,s)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,e=this._getUniformDataChanges()||[];for(const{method:s,start:n,count:o}of e){const r=s==="_removeElements"?-o:o;ea(t,n,r)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const e=this.data.datasets.length,s=o=>new Set(t.filter(r=>r[0]===o).map((r,a)=>a+","+r.splice(1).join(","))),n=s(0);for(let o=1;o<e;o++)if(!ii(n,s(o)))return;return Array.from(n).map(o=>o.split(",")).map(o=>({method:o[1],start:+o[2],count:+o[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;q.update(this,this.width,this.height,t);const e=this.chartArea,s=e.width<=0||e.height<=0;this._layers=[],R(this.boxes,n=>{s&&n.position==="chartArea"||(n.configure&&n.configure(),this._layers.push(...n._layers()))},this),this._layers.forEach((n,o)=>{n._idx=o}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let e=0,s=this.data.datasets.length;e<s;++e)this.getDatasetMeta(e).controller.configure();for(let e=0,s=this.data.datasets.length;e<s;++e)this._updateDataset(e,ut(t)?t({datasetIndex:e}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,e){const s=this.getDatasetMeta(t),n={meta:s,index:t,mode:e,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",n)!==!1&&(s.controller._update(e),n.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",n))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(rt.has(this)?this.attached&&!rt.running(this)&&rt.start(this):(this.draw(),Yi({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:s,height:n}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(s,n)}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const e=this._layers;for(t=0;t<e.length&&e[t].z<=0;++t)e[t].draw(this.chartArea);for(this._drawDatasets();t<e.length;++t)e[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const e=this._sortedMetasets,s=[];let n,o;for(n=0,o=e.length;n<o;++n){const r=e[n];(!t||r.visible)&&s.push(r)}return s}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const t=this.getSortedVisibleDatasetMetas();for(let e=t.length-1;e>=0;--e)this._drawDataset(t[e]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const e=this.ctx,s={meta:t,index:t.index,cancelable:!0},n=Mo(this,t);this.notifyPlugins("beforeDatasetDraw",s)!==!1&&(n&&Ue(e,n),t.controller.draw(),n&&Xe(e),s.cancelable=!1,this.notifyPlugins("afterDatasetDraw",s))}isPointInArea(t){return qt(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,e,s,n){const o=Zo.modes[e];return typeof o=="function"?o(this,t,s,n):[]}getDatasetMeta(t){const e=this.data.datasets[t],s=this._metasets;let n=s.filter(o=>o&&o._dataset===e).pop();return n||(n={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:e&&e.order||0,index:t,_dataset:e,_parsed:[],_sorted:!1},s.push(n)),n}getContext(){return this.$context||(this.$context=St(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const e=this.data.datasets[t];if(!e)return!1;const s=this.getDatasetMeta(t);return typeof s.hidden=="boolean"?!s.hidden:!e.hidden}setDatasetVisibility(t,e){const s=this.getDatasetMeta(t);s.hidden=!e}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,e,s){const n=s?"show":"hide",o=this.getDatasetMeta(t),r=o.controller._resolveAnimations(void 0,n);Xt(e)?(o.data[e].hidden=!s,this.update()):(this.setDatasetVisibility(t,s),r.update(o,{visible:s}),this.update(a=>a.datasetIndex===t?n:void 0))}hide(t,e){this._updateVisibility(t,e,!1)}show(t,e){this._updateVisibility(t,e,!0)}_destroyDatasetMeta(t){const e=this._metasets[t];e&&e.controller&&e.controller._destroy(),delete this._metasets[t]}_stop(){let t,e;for(this.stop(),rt.remove(this),t=0,e=this.data.datasets.length;t<e;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:e}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),ui(t,e),this.platform.releaseContext(e),this.canvas=null,this.ctx=null),delete ue[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,e=this.platform,s=(o,r)=>{e.addEventListener(this,o,r),t[o]=r},n=(o,r,a)=>{o.offsetX=r,o.offsetY=a,this._eventHandler(o)};R(this.options.events,o=>s(o,n))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,e=this.platform,s=(l,c)=>{e.addEventListener(this,l,c),t[l]=c},n=(l,c)=>{t[l]&&(e.removeEventListener(this,l,c),delete t[l])},o=(l,c)=>{this.canvas&&this.resize(l,c)};let r;const a=()=>{n("attach",a),this.attached=!0,this.resize(),s("resize",o),s("detach",r)};r=()=>{this.attached=!1,n("resize",o),this._stop(),this._resize(0,0),s("attach",a)},e.isAttached(this.canvas)?a():r()}unbindEvents(){R(this._listeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._listeners={},R(this._responsiveListeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,e,s){const n=s?"set":"remove";let o,r,a,l;for(e==="dataset"&&(o=this.getDatasetMeta(t[0].datasetIndex),o.controller["_"+n+"DatasetHoverStyle"]()),a=0,l=t.length;a<l;++a){r=t[a];const c=r&&this.getDatasetMeta(r.datasetIndex).controller;c&&c[n+"HoverStyle"](r.element,r.datasetIndex,r.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const e=this._active||[],s=t.map(({datasetIndex:o,index:r})=>{const a=this.getDatasetMeta(o);if(!a)throw new Error("No dataset found at index "+o);return{datasetIndex:o,element:a.data[r],index:r}});!fe(s,e)&&(this._active=s,this._lastEvent=null,this._updateHoverStyles(s,e))}notifyPlugins(t,e,s){return this._plugins.notify(this,t,e,s)}isPluginEnabled(t){return this._plugins._cache.filter(e=>e.plugin.id===t).length===1}_updateHoverStyles(t,e,s){const n=this.options.hover,o=(l,c)=>l.filter(h=>!c.some(d=>h.datasetIndex===d.datasetIndex&&h.index===d.index)),r=o(e,t),a=s?t:o(t,e);r.length&&this.updateHoverStyle(r,n.mode,!1),a.length&&n.mode&&this.updateHoverStyle(a,n.mode,!0)}_eventHandler(t,e){const s={event:t,replay:e,cancelable:!0,inChartArea:this.isPointInArea(t)},n=r=>(r.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",s,n)===!1)return;const o=this._handleEvent(t,e,s.inChartArea);return s.cancelable=!1,this.notifyPlugins("afterEvent",s,n),(o||s.changed)&&this.render(),this}_handleEvent(t,e,s){const{_active:n=[],options:o}=this,r=e,a=this._getActiveElements(t,n,s,r),l=en(t),c=ia(t,this._lastEvent,s,l);s&&(this._lastEvent=null,E(o.onHover,[t,a,this],this),l&&E(o.onClick,[t,a,this],this));const h=!fe(a,n);return(h||e)&&(this._active=a,this._updateHoverStyles(a,n,e)),this._lastEvent=c,h}_getActiveElements(t,e,s,n){if(t.type==="mouseout")return[];if(!s)return e;const o=this.options.hover;return this.getElementsAtEventForMode(t,o.mode,o,n)}}function Xi(){return R(sa.instances,i=>i._plugins.invalidate())}function na(i,t,e){const{startAngle:s,x:n,y:o,outerRadius:r,innerRadius:a,options:l}=t,{borderWidth:c,borderJoinStyle:h}=l,d=Math.min(c/r,tt(s-e));if(i.beginPath(),i.arc(n,o,r-c/2,s+d/2,e-d/2),a>0){const u=Math.min(c/a,tt(s-e));i.arc(n,o,a+c/2,e-u/2,s+u/2,!0)}else{const u=Math.min(c/2,r*tt(s-e));if(h==="round")i.arc(n,o,u,e-L/2,s+L/2,!0);else if(h==="bevel"){const f=2*u*u,p=-f*Math.cos(e+L/2)+n,g=-f*Math.sin(e+L/2)+o,m=f*Math.cos(s+L/2)+n,b=f*Math.sin(s+L/2)+o;i.lineTo(p,g),i.lineTo(m,b)}}i.closePath(),i.moveTo(0,0),i.rect(0,0,i.canvas.width,i.canvas.height),i.clip("evenodd")}function oa(i,t,e){const{startAngle:s,pixelMargin:n,x:o,y:r,outerRadius:a,innerRadius:l}=t;let c=n/a;i.beginPath(),i.arc(o,r,a,s-c,e+c),l>n?(c=n/l,i.arc(o,r,l,e+c,s-c,!0)):i.arc(o,r,n,e+N,s-N),i.closePath(),i.clip()}function ra(i){return Ke(i,["outerStart","outerEnd","innerStart","innerEnd"])}function aa(i,t,e,s){const n=ra(i.options.borderRadius),o=(e-t)/2,r=Math.min(o,s*t/2),a=l=>{const c=(e-Math.min(o,l))*s/2;return Y(l,0,Math.min(o,c))};return{outerStart:a(n.outerStart),outerEnd:a(n.outerEnd),innerStart:Y(n.innerStart,0,r),innerEnd:Y(n.innerEnd,0,r)}}function Pt(i,t,e,s){return{x:e+i*Math.cos(t),y:s+i*Math.sin(t)}}function xe(i,t,e,s,n,o){const{x:r,y:a,startAngle:l,pixelMargin:c,innerRadius:h}=t,d=Math.max(t.outerRadius+s+e-c,0),u=h>0?h+s+e+c:0;let f=0;const p=n-l;if(s){const I=h>0?h-s:0,z=d>0?d-s:0,B=(I+z)/2,Z=B!==0?p*B/(B+s):p;f=(p-Z)/2}const g=Math.max(.001,p*d-e/L)/d,m=(p-g)/2,b=l+m+f,_=n-m-f,{outerStart:y,outerEnd:v,innerStart:x,innerEnd:k}=aa(t,u,d,_-b),S=d-y,M=d-v,w=b+y/S,D=_-v/M,C=u+x,O=u+k,V=b+x/C,G=_-k/O;if(i.beginPath(),o){const I=(w+D)/2;if(i.arc(r,a,d,w,I),i.arc(r,a,d,I,D),v>0){const j=Pt(M,D,r,a);i.arc(j.x,j.y,v,D,_+N)}const z=Pt(O,_,r,a);if(i.lineTo(z.x,z.y),k>0){const j=Pt(O,G,r,a);i.arc(j.x,j.y,k,_+N,G+Math.PI)}const B=(_-k/u+(b+x/u))/2;if(i.arc(r,a,u,_-k/u,B,!0),i.arc(r,a,u,B,b+x/u,!0),x>0){const j=Pt(C,V,r,a);i.arc(j.x,j.y,x,V+Math.PI,b-N)}const Z=Pt(S,b,r,a);if(i.lineTo(Z.x,Z.y),y>0){const j=Pt(S,w,r,a);i.arc(j.x,j.y,y,b-N,w)}}else{i.moveTo(r,a);const I=Math.cos(w)*d+r,z=Math.sin(w)*d+a;i.lineTo(I,z);const B=Math.cos(D)*d+r,Z=Math.sin(D)*d+a;i.lineTo(B,Z)}i.closePath()}function la(i,t,e,s,n){const{fullCircles:o,startAngle:r,circumference:a}=t;let l=t.endAngle;if(o){xe(i,t,e,s,l,n);for(let c=0;c<o;++c)i.fill();isNaN(a)||(l=r+(a%F||F))}return xe(i,t,e,s,l,n),i.fill(),l}function ca(i,t,e,s,n){const{fullCircles:o,startAngle:r,circumference:a,options:l}=t,{borderWidth:c,borderJoinStyle:h,borderDash:d,borderDashOffset:u,borderRadius:f}=l,p=l.borderAlign==="inner";if(!c)return;i.setLineDash(d||[]),i.lineDashOffset=u,p?(i.lineWidth=c*2,i.lineJoin=h||"round"):(i.lineWidth=c,i.lineJoin=h||"bevel");let g=t.endAngle;if(o){xe(i,t,e,s,g,n);for(let m=0;m<o;++m)i.stroke();isNaN(a)||(g=r+(a%F||F))}p&&oa(i,t,g),l.selfJoin&&g-r>=L&&f===0&&h!=="miter"&&na(i,t,g),o||(xe(i,t,e,s,g,n),i.stroke())}class Ga extends ct{static id="arc";static defaults={borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0,selfJoin:!1};static defaultRoutes={backgroundColor:"backgroundColor"};static descriptors={_scriptable:!0,_indexable:t=>t!=="borderDash"};circumference;endAngle;fullCircles;innerRadius;outerRadius;pixelMargin;startAngle;constructor(t){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,t&&Object.assign(this,t)}inRange(t,e,s){const n=this.getProps(["x","y"],s),{angle:o,distance:r}=ps(n,{x:t,y:e}),{startAngle:a,endAngle:l,innerRadius:c,outerRadius:h,circumference:d}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],s),u=(this.options.spacing+this.options.borderWidth)/2,f=P(d,l-a),p=Gt(o,a,l)&&a!==l,g=f>=F||p,m=ht(r,c+u,h+u);return g&&m}getCenterPoint(t){const{x:e,y:s,startAngle:n,endAngle:o,innerRadius:r,outerRadius:a}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],t),{offset:l,spacing:c}=this.options,h=(n+o)/2,d=(r+a+c+l)/2;return{x:e+Math.cos(h)*d,y:s+Math.sin(h)*d}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const{options:e,circumference:s}=this,n=(e.offset||0)/4,o=(e.spacing||0)/2,r=e.circular;if(this.pixelMargin=e.borderAlign==="inner"?.33:0,this.fullCircles=s>F?Math.floor(s/F):0,s===0||this.innerRadius<0||this.outerRadius<0)return;t.save();const a=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(a)*n,Math.sin(a)*n);const l=1-Math.sin(Math.min(L,s||0)),c=n*l;t.fillStyle=e.backgroundColor,t.strokeStyle=e.borderColor,la(t,this,c,o,r),ca(t,this,c,o,r),t.restore()}}function js(i,t,e=t){i.lineCap=P(e.borderCapStyle,t.borderCapStyle),i.setLineDash(P(e.borderDash,t.borderDash)),i.lineDashOffset=P(e.borderDashOffset,t.borderDashOffset),i.lineJoin=P(e.borderJoinStyle,t.borderJoinStyle),i.lineWidth=P(e.borderWidth,t.borderWidth),i.strokeStyle=P(e.borderColor,t.borderColor)}function ha(i,t,e){i.lineTo(e.x,e.y)}function da(i){return i.stepped?On:i.tension||i.cubicInterpolationMode==="monotone"?An:ha}function $s(i,t,e={}){const s=i.length,{start:n=0,end:o=s-1}=e,{start:r,end:a}=t,l=Math.max(n,r),c=Math.min(o,a),h=n<r&&o<r||n>a&&o>a;return{count:s,start:l,loop:t.loop,ilen:c<l&&!h?s+c-l:c-l}}function ua(i,t,e,s){const{points:n,options:o}=t,{count:r,start:a,loop:l,ilen:c}=$s(n,e,s),h=da(o);let{move:d=!0,reverse:u}=s||{},f,p,g;for(f=0;f<=c;++f)p=n[(a+(u?c-f:f))%r],!p.skip&&(d?(i.moveTo(p.x,p.y),d=!1):h(i,g,p,u,o.stepped),g=p);return l&&(p=n[(a+(u?c:0))%r],h(i,g,p,u,o.stepped)),!!l}function fa(i,t,e,s){const n=t.points,{count:o,start:r,ilen:a}=$s(n,e,s),{move:l=!0,reverse:c}=s||{};let h=0,d=0,u,f,p,g,m,b;const _=v=>(r+(c?a-v:v))%o,y=()=>{g!==m&&(i.lineTo(h,m),i.lineTo(h,g),i.lineTo(h,b))};for(l&&(f=n[_(0)],i.moveTo(f.x,f.y)),u=0;u<=a;++u){if(f=n[_(u)],f.skip)continue;const v=f.x,x=f.y,k=v|0;k===p?(x<g?g=x:x>m&&(m=x),h=(d*h+v)/++d):(y(),i.lineTo(v,x),p=k,d=0,g=m=x),b=x}y()}function He(i){const t=i.options,e=t.borderDash&&t.borderDash.length;return!i._decimated&&!i._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!e?fa:ua}function ga(i){return i.stepped?lo:i.tension||i.cubicInterpolationMode==="monotone"?co:xt}function pa(i,t,e,s){let n=t._path;n||(n=t._path=new Path2D,t.path(n,e,s)&&n.closePath()),js(i,t.options),i.stroke(n)}function ma(i,t,e,s){const{segments:n,options:o}=t,r=He(t);for(const a of n)js(i,o,a.style),i.beginPath(),r(i,t,a,{start:e,end:e+s-1})&&i.closePath(),i.stroke()}const ba=typeof Path2D=="function";function _a(i,t,e,s){ba&&!t.options.segment?pa(i,t,e,s):ma(i,t,e,s)}class qa extends ct{static id="line";static defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};static descriptors={_scriptable:!0,_indexable:t=>t!=="borderDash"&&t!=="fill"};constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,e){const s=this.options;if((s.tension||s.cubicInterpolationMode==="monotone")&&!s.stepped&&!this._pointsUpdated){const n=s.spanGaps?this._loop:this._fullLoop;to(this._points,s,t,n,e),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=_o(this,this.options.segment))}first(){const t=this.segments,e=this.points;return t.length&&e[t[0].start]}last(){const t=this.segments,e=this.points,s=t.length;return s&&e[t[s-1].end]}interpolate(t,e){const s=this.options,n=t[e],o=this.points,r=po(this,{property:e,start:n,end:n});if(!r.length)return;const a=[],l=ga(s);let c,h;for(c=0,h=r.length;c<h;++c){const{start:d,end:u}=r[c],f=o[d],p=o[u];if(f===p){a.push(f);continue}const g=Math.abs((n-f[e])/(p[e]-f[e])),m=l(f,p,g,s.stepped);m[e]=t[e],a.push(m)}return a.length===1?a[0]:a}pathSegment(t,e,s){return He(this)(t,this,e,s)}path(t,e,s){const n=this.segments,o=He(this);let r=this._loop;e=e||0,s=s||this.points.length-e;for(const a of n)r&=o(t,this,a,{start:e,end:e+s-1});return!!r}draw(t,e,s,n){const o=this.options||{};(this.points||[]).length&&o.borderWidth&&(t.save(),_a(t,this,s,n),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}function Ki(i,t,e,s){const n=i.options,{[e]:o}=i.getProps([e],s);return Math.abs(t-o)<n.radius+n.hitRadius}class Ja extends ct{static id="point";parsed;skip;stop;static defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(t){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,t&&Object.assign(this,t)}inRange(t,e,s){const n=this.options,{x:o,y:r}=this.getProps(["x","y"],s);return Math.pow(t-o,2)+Math.pow(e-r,2)<Math.pow(n.hitRadius+n.radius,2)}inXRange(t,e){return Ki(this,t,"x",e)}inYRange(t,e){return Ki(this,t,"y",e)}getCenterPoint(t){const{x:e,y:s}=this.getProps(["x","y"],t);return{x:e,y:s}}size(t){t=t||this.options||{};let e=t.radius||0;e=Math.max(e,e&&t.hoverRadius||0);const s=e&&t.borderWidth||0;return(e+s)*2}draw(t,e){const s=this.options;this.skip||s.radius<.1||!qt(this,e,this.size(s)/2)||(t.strokeStyle=s.borderColor,t.lineWidth=s.borderWidth,t.fillStyle=s.backgroundColor,Fe(t,s,this.x,this.y))}getRange(){const t=this.options||{};return t.radius+t.hitRadius}}function Ys(i,t){const{x:e,y:s,base:n,width:o,height:r}=i.getProps(["x","y","base","width","height"],t);let a,l,c,h,d;return i.horizontal?(d=r/2,a=Math.min(e,n),l=Math.max(e,n),c=s-d,h=s+d):(d=o/2,a=e-d,l=e+d,c=Math.min(s,n),h=Math.max(s,n)),{left:a,top:c,right:l,bottom:h}}function dt(i,t,e,s){return i?0:Y(t,e,s)}function xa(i,t,e){const s=i.options.borderWidth,n=i.borderSkipped,o=Ms(s);return{t:dt(n.top,o.top,0,e),r:dt(n.right,o.right,0,t),b:dt(n.bottom,o.bottom,0,e),l:dt(n.left,o.left,0,t)}}function ya(i,t,e){const{enableBorderRadius:s}=i.getProps(["enableBorderRadius"]),n=i.options.borderRadius,o=Dt(n),r=Math.min(t,e),a=i.borderSkipped,l=s||A(n);return{topLeft:dt(!l||a.top||a.left,o.topLeft,0,r),topRight:dt(!l||a.top||a.right,o.topRight,0,r),bottomLeft:dt(!l||a.bottom||a.left,o.bottomLeft,0,r),bottomRight:dt(!l||a.bottom||a.right,o.bottomRight,0,r)}}function va(i){const t=Ys(i),e=t.right-t.left,s=t.bottom-t.top,n=xa(i,e/2,s/2),o=ya(i,e/2,s/2);return{outer:{x:t.left,y:t.top,w:e,h:s,radius:o},inner:{x:t.left+n.l,y:t.top+n.t,w:e-n.l-n.r,h:s-n.t-n.b,radius:{topLeft:Math.max(0,o.topLeft-Math.max(n.t,n.l)),topRight:Math.max(0,o.topRight-Math.max(n.t,n.r)),bottomLeft:Math.max(0,o.bottomLeft-Math.max(n.b,n.l)),bottomRight:Math.max(0,o.bottomRight-Math.max(n.b,n.r))}}}}function Le(i,t,e,s){const n=t===null,o=e===null,a=i&&!(n&&o)&&Ys(i,s);return a&&(n||ht(t,a.left,a.right))&&(o||ht(e,a.top,a.bottom))}function Ma(i){return i.topLeft||i.topRight||i.bottomLeft||i.bottomRight}function ka(i,t){i.rect(t.x,t.y,t.w,t.h)}function Ie(i,t,e={}){const s=i.x!==e.x?-t:0,n=i.y!==e.y?-t:0,o=(i.x+i.w!==e.x+e.w?t:0)-s,r=(i.y+i.h!==e.y+e.h?t:0)-n;return{x:i.x+s,y:i.y+n,w:i.w+o,h:i.h+r,radius:i.radius}}class Qa extends ct{static id="bar";static defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:e,options:{borderColor:s,backgroundColor:n}}=this,{inner:o,outer:r}=va(this),a=Ma(r.radius)?me:ka;t.save(),(r.w!==o.w||r.h!==o.h)&&(t.beginPath(),a(t,Ie(r,e,o)),t.clip(),a(t,Ie(o,-e,r)),t.fillStyle=s,t.fill("evenodd")),t.beginPath(),a(t,Ie(o,e)),t.fillStyle=n,t.fill(),t.restore()}inRange(t,e,s){return Le(this,t,e,s)}inXRange(t,e){return Le(this,t,null,e)}inYRange(t,e){return Le(this,null,t,e)}getCenterPoint(t){const{x:e,y:s,base:n,horizontal:o}=this.getProps(["x","y","base","horizontal"],t);return{x:o?(e+n)/2:e,y:o?s:(s+n)/2}}getRange(t){return t==="x"?this.width/2:this.height/2}}const Gi=(i,t)=>{let{boxHeight:e=t,boxWidth:s=t}=i;return i.usePointStyle&&(e=Math.min(e,t),s=i.pointStyleWidth||Math.min(s,t)),{boxWidth:s,boxHeight:e,itemHeight:Math.max(t,e)}},Sa=(i,t)=>i!==null&&t!==null&&i.datasetIndex===t.datasetIndex&&i.index===t.index;class qi extends ct{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e,s){this.maxWidth=t,this.maxHeight=e,this._margins=s,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let e=E(t.generateLabels,[this.chart],this)||[];t.filter&&(e=e.filter(s=>t.filter(s,this.chart.data))),t.sort&&(e=e.sort((s,n)=>t.sort(s,n,this.chart.data))),this.options.reverse&&e.reverse(),this.legendItems=e}fit(){const{options:t,ctx:e}=this;if(!t.display){this.width=this.height=0;return}const s=t.labels,n=U(s.font),o=n.size,r=this._computeTitleHeight(),{boxWidth:a,itemHeight:l}=Gi(s,o);let c,h;e.font=n.string,this.isHorizontal()?(c=this.maxWidth,h=this._fitRows(r,o,a,l)+10):(h=this.maxHeight,c=this._fitCols(r,n,a,l)+10),this.width=Math.min(c,t.maxWidth||this.maxWidth),this.height=Math.min(h,t.maxHeight||this.maxHeight)}_fitRows(t,e,s,n){const{ctx:o,maxWidth:r,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],h=n+a;let d=t;o.textAlign="left",o.textBaseline="middle";let u=-1,f=-h;return this.legendItems.forEach((p,g)=>{const m=s+e/2+o.measureText(p.text).width;(g===0||c[c.length-1]+m+2*a>r)&&(d+=h,c[c.length-(g>0?0:1)]=0,f+=h,u++),l[g]={left:0,top:f,row:u,width:m,height:n},c[c.length-1]+=m+a}),d}_fitCols(t,e,s,n){const{ctx:o,maxHeight:r,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],h=r-t;let d=a,u=0,f=0,p=0,g=0;return this.legendItems.forEach((m,b)=>{const{itemWidth:_,itemHeight:y}=wa(s,e,o,m,n);b>0&&f+y+2*a>h&&(d+=u+a,c.push({width:u,height:f}),p+=u+a,g++,u=f=0),l[b]={left:p,top:f,col:g,width:_,height:y},u=Math.max(u,_),f+=y+a}),d+=u,c.push({width:u,height:f}),d}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:s,labels:{padding:n},rtl:o}}=this,r=Ot(o,this.left,this.width);if(this.isHorizontal()){let a=0,l=$(s,this.left+n,this.right-this.lineWidths[a]);for(const c of e)a!==c.row&&(a=c.row,l=$(s,this.left+n,this.right-this.lineWidths[a])),c.top+=this.top+t+n,c.left=r.leftForLtr(r.x(l),c.width),l+=c.width+n}else{let a=0,l=$(s,this.top+t+n,this.bottom-this.columnSizes[a].height);for(const c of e)c.col!==a&&(a=c.col,l=$(s,this.top+t+n,this.bottom-this.columnSizes[a].height)),c.top=l,c.left+=this.left+n,c.left=r.leftForLtr(r.x(c.left),c.width),l+=c.height+n}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const t=this.ctx;Ue(t,this),this._draw(),Xe(t)}}_draw(){const{options:t,columnSizes:e,lineWidths:s,ctx:n}=this,{align:o,labels:r}=t,a=W.color,l=Ot(t.rtl,this.left,this.width),c=U(r.font),{padding:h}=r,d=c.size,u=d/2;let f;this.drawTitle(),n.textAlign=l.textAlign("left"),n.textBaseline="middle",n.lineWidth=.5,n.font=c.string;const{boxWidth:p,boxHeight:g,itemHeight:m}=Gi(r,d),b=function(k,S,M){if(isNaN(p)||p<=0||isNaN(g)||g<0)return;n.save();const w=P(M.lineWidth,1);if(n.fillStyle=P(M.fillStyle,a),n.lineCap=P(M.lineCap,"butt"),n.lineDashOffset=P(M.lineDashOffset,0),n.lineJoin=P(M.lineJoin,"miter"),n.lineWidth=w,n.strokeStyle=P(M.strokeStyle,a),n.setLineDash(P(M.lineDash,[])),r.usePointStyle){const D={radius:g*Math.SQRT2/2,pointStyle:M.pointStyle,rotation:M.rotation,borderWidth:w},C=l.xPlus(k,p/2),O=S+u;vs(n,D,C,O,r.pointStyleWidth&&p)}else{const D=S+Math.max((d-g)/2,0),C=l.leftForLtr(k,p),O=Dt(M.borderRadius);n.beginPath(),Object.values(O).some(V=>V!==0)?me(n,{x:C,y:D,w:p,h:g,radius:O}):n.rect(C,D,p,g),n.fill(),w!==0&&n.stroke()}n.restore()},_=function(k,S,M){Jt(n,M.text,k,S+m/2,c,{strikethrough:M.hidden,textAlign:l.textAlign(M.textAlign)})},y=this.isHorizontal(),v=this._computeTitleHeight();y?f={x:$(o,this.left+h,this.right-s[0]),y:this.top+h+v,line:0}:f={x:this.left+h,y:$(o,this.top+v+h,this.bottom-e[0].height),line:0},Ds(this.ctx,t.textDirection);const x=m+h;this.legendItems.forEach((k,S)=>{n.strokeStyle=k.fontColor,n.fillStyle=k.fontColor;const M=n.measureText(k.text).width,w=l.textAlign(k.textAlign||(k.textAlign=r.textAlign)),D=p+u+M;let C=f.x,O=f.y;l.setWidth(this.width),y?S>0&&C+D+h>this.right&&(O=f.y+=x,f.line++,C=f.x=$(o,this.left+h,this.right-s[f.line])):S>0&&O+x>this.bottom&&(C=f.x=C+e[f.line].width+h,f.line++,O=f.y=$(o,this.top+v+h,this.bottom-e[f.line].height));const V=l.x(C);if(b(V,O,k),C=mn(w,C+p+u,y?C+D:this.right,t.rtl),_(l.x(C),O,k),y)f.x+=D+h;else if(typeof k.text!="string"){const G=c.lineHeight;f.y+=Us(k,G)+h}else f.y+=x}),Os(this.ctx,t.textDirection)}drawTitle(){const t=this.options,e=t.title,s=U(e.font),n=Q(e.padding);if(!e.display)return;const o=Ot(t.rtl,this.left,this.width),r=this.ctx,a=e.position,l=s.size/2,c=n.top+l;let h,d=this.left,u=this.width;if(this.isHorizontal())u=Math.max(...this.lineWidths),h=this.top+c,d=$(t.align,d,this.right-u);else{const p=this.columnSizes.reduce((g,m)=>Math.max(g,m.height),0);h=c+$(t.align,this.top,this.bottom-p-t.labels.padding-this._computeTitleHeight())}const f=$(a,d,d+u);r.textAlign=o.textAlign(je(a)),r.textBaseline="middle",r.strokeStyle=e.color,r.fillStyle=e.color,r.font=s.string,Jt(r,e.text,f,h,s)}_computeTitleHeight(){const t=this.options.title,e=U(t.font),s=Q(t.padding);return t.display?e.lineHeight+s.height:0}_getLegendItemAt(t,e){let s,n,o;if(ht(t,this.left,this.right)&&ht(e,this.top,this.bottom)){for(o=this.legendHitBoxes,s=0;s<o.length;++s)if(n=o[s],ht(t,n.left,n.left+n.width)&&ht(e,n.top,n.top+n.height))return this.legendItems[s]}return null}handleEvent(t){const e=this.options;if(!Da(t.type,e))return;const s=this._getLegendItemAt(t.x,t.y);if(t.type==="mousemove"||t.type==="mouseout"){const n=this._hoveredItem,o=Sa(n,s);n&&!o&&E(e.onLeave,[t,n,this],this),this._hoveredItem=s,s&&!o&&E(e.onHover,[t,s,this],this)}else s&&E(e.onClick,[t,s,this],this)}}function wa(i,t,e,s,n){const o=Ca(s,i,t,e),r=Pa(n,s,t.lineHeight);return{itemWidth:o,itemHeight:r}}function Ca(i,t,e,s){let n=i.text;return n&&typeof n!="string"&&(n=n.reduce((o,r)=>o.length>r.length?o:r)),t+e.size/2+s.measureText(n).width}function Pa(i,t,e){let s=i;return typeof t.text!="string"&&(s=Us(t,e)),s}function Us(i,t){const e=i.text?i.text.length:0;return t*e}function Da(i,t){return!!((i==="mousemove"||i==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(i==="click"||i==="mouseup"))}var Za={id:"legend",_element:qi,start(i,t,e){const s=i.legend=new qi({ctx:i.ctx,options:e,chart:i});q.configure(i,s,e),q.addBox(i,s)},stop(i){q.removeBox(i,i.legend),delete i.legend},beforeUpdate(i,t,e){const s=i.legend;q.configure(i,s,e),s.options=e},afterUpdate(i){const t=i.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(i,t){t.replay||i.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(i,t,e){const s=t.datasetIndex,n=e.chart;n.isDatasetVisible(s)?(n.hide(s),t.hidden=!0):(n.show(s),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:i=>i.chart.options.color,boxWidth:40,padding:10,generateLabels(i){const t=i.data.datasets,{labels:{usePointStyle:e,pointStyle:s,textAlign:n,color:o,useBorderRadius:r,borderRadius:a}}=i.legend.options;return i._getSortedDatasetMetas().map(l=>{const c=l.controller.getStyle(e?0:void 0),h=Q(c.borderWidth);return{text:t[l.index].label,fillStyle:c.backgroundColor,fontColor:o,hidden:!l.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(h.width+h.height)/4,strokeStyle:c.borderColor,pointStyle:s||c.pointStyle,rotation:c.rotation,textAlign:n||c.textAlign,borderRadius:r&&(a||c.borderRadius),datasetIndex:l.index}},this)}},title:{color:i=>i.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:i=>!i.startsWith("on"),labels:{_scriptable:i=>!["generateLabels","filter","sort"].includes(i)}}};class Xs extends ct{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e){const s=this.options;if(this.left=0,this.top=0,!s.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=t,this.height=this.bottom=e;const n=H(s.text)?s.text.length:1;this._padding=Q(s.padding);const o=n*U(s.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=o:this.width=o}isHorizontal(){const t=this.options.position;return t==="top"||t==="bottom"}_drawArgs(t){const{top:e,left:s,bottom:n,right:o,options:r}=this,a=r.align;let l=0,c,h,d;return this.isHorizontal()?(h=$(a,s,o),d=e+t,c=o-s):(r.position==="left"?(h=s+t,d=$(a,n,e),l=L*-.5):(h=o-t,d=$(a,e,n),l=L*.5),c=n-e),{titleX:h,titleY:d,maxWidth:c,rotation:l}}draw(){const t=this.ctx,e=this.options;if(!e.display)return;const s=U(e.font),o=s.lineHeight/2+this._padding.top,{titleX:r,titleY:a,maxWidth:l,rotation:c}=this._drawArgs(o);Jt(t,e.text,0,0,s,{color:e.color,maxWidth:l,rotation:c,textAlign:je(e.align),textBaseline:"middle",translation:[r,a]})}}function Oa(i,t){const e=new Xs({ctx:i.ctx,options:t,chart:i});q.configure(i,e,t),q.addBox(i,e),i.titleBlock=e}var tl={id:"title",_element:Xs,start(i,t,e){Oa(i,e)},stop(i){const t=i.titleBlock;q.removeBox(i,t),delete i.titleBlock},beforeUpdate(i,t,e){const s=i.titleBlock;q.configure(i,s,e),s.options=e},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Nt={average(i){if(!i.length)return!1;let t,e,s=new Set,n=0,o=0;for(t=0,e=i.length;t<e;++t){const a=i[t].element;if(a&&a.hasValue()){const l=a.tooltipPosition();s.add(l.x),n+=l.y,++o}}return o===0||s.size===0?!1:{x:[...s].reduce((a,l)=>a+l)/s.size,y:n/o}},nearest(i,t){if(!i.length)return!1;let e=t.x,s=t.y,n=Number.POSITIVE_INFINITY,o,r,a;for(o=0,r=i.length;o<r;++o){const l=i[o].element;if(l&&l.hasValue()){const c=l.getCenterPoint(),h=Ee(t,c);h<n&&(n=h,a=l)}}if(a){const l=a.tooltipPosition();e=l.x,s=l.y}return{x:e,y:s}}};function it(i,t){return t&&(H(t)?Array.prototype.push.apply(i,t):i.push(t)),i}function at(i){return(typeof i=="string"||i instanceof String)&&i.indexOf(\`
21277
21282
  \`)>-1?i.split(\`
21278
21283
  \`):i}function Aa(i,t){const{element:e,datasetIndex:s,index:n}=t,o=i.getDatasetMeta(s).controller,{label:r,value:a}=o.getLabelAndValue(n);return{chart:i,label:r,parsed:o.getParsed(n),raw:i.data.datasets[s].data[n],formattedValue:a,dataset:o.getDataset(),dataIndex:n,datasetIndex:s,element:e}}function Ji(i,t){const e=i.chart.ctx,{body:s,footer:n,title:o}=i,{boxWidth:r,boxHeight:a}=t,l=U(t.bodyFont),c=U(t.titleFont),h=U(t.footerFont),d=o.length,u=n.length,f=s.length,p=Q(t.padding);let g=p.height,m=0,b=s.reduce((v,x)=>v+x.before.length+x.lines.length+x.after.length,0);if(b+=i.beforeBody.length+i.afterBody.length,d&&(g+=d*c.lineHeight+(d-1)*t.titleSpacing+t.titleMarginBottom),b){const v=t.displayColors?Math.max(a,l.lineHeight):l.lineHeight;g+=f*v+(b-f)*l.lineHeight+(b-1)*t.bodySpacing}u&&(g+=t.footerMarginTop+u*h.lineHeight+(u-1)*t.footerSpacing);let _=0;const y=function(v){m=Math.max(m,e.measureText(v).width+_)};return e.save(),e.font=c.string,R(i.title,y),e.font=l.string,R(i.beforeBody.concat(i.afterBody),y),_=t.displayColors?r+2+t.boxPadding:0,R(s,v=>{R(v.before,y),R(v.lines,y),R(v.after,y)}),_=0,e.font=h.string,R(i.footer,y),e.restore(),m+=p.width,{width:m,height:g}}function Ta(i,t){const{y:e,height:s}=t;return e<s/2?"top":e>i.height-s/2?"bottom":"center"}function Ra(i,t,e,s){const{x:n,width:o}=s,r=e.caretSize+e.caretPadding;if(i==="left"&&n+o+r>t.width||i==="right"&&n-o-r<0)return!0}function La(i,t,e,s){const{x:n,width:o}=e,{width:r,chartArea:{left:a,right:l}}=i;let c="center";return s==="center"?c=n<=(a+l)/2?"left":"right":n<=o/2?c="left":n>=r-o/2&&(c="right"),Ra(c,i,t,e)&&(c="center"),c}function Qi(i,t,e){const s=e.yAlign||t.yAlign||Ta(i,e);return{xAlign:e.xAlign||t.xAlign||La(i,t,e,s),yAlign:s}}function Ia(i,t){let{x:e,width:s}=i;return t==="right"?e-=s:t==="center"&&(e-=s/2),e}function Ea(i,t,e){let{y:s,height:n}=i;return t==="top"?s+=e:t==="bottom"?s-=n+e:s-=n/2,s}function Zi(i,t,e,s){const{caretSize:n,caretPadding:o,cornerRadius:r}=i,{xAlign:a,yAlign:l}=e,c=n+o,{topLeft:h,topRight:d,bottomLeft:u,bottomRight:f}=Dt(r);let p=Ia(t,a);const g=Ea(t,l,c);return l==="center"?a==="left"?p+=c:a==="right"&&(p-=c):a==="left"?p-=Math.max(h,u)+n:a==="right"&&(p+=Math.max(d,f)+n),{x:Y(p,0,s.width-t.width),y:Y(g,0,s.height-t.height)}}function ce(i,t,e){const s=Q(e.padding);return t==="center"?i.x+i.width/2:t==="right"?i.x+i.width-s.right:i.x+s.left}function ts(i){return it([],at(i))}function za(i,t,e){return St(i,{tooltip:t,tooltipItems:e,type:"tooltip"})}function es(i,t){const e=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return e?i.override(e):i}const Ks={beforeTitle:ot,title(i){if(i.length>0){const t=i[0],e=t.chart.data.labels,s=e?e.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(s>0&&t.dataIndex<s)return e[t.dataIndex]}return""},afterTitle:ot,beforeBody:ot,beforeLabel:ot,label(i){if(this&&this.options&&this.options.mode==="dataset")return i.label+": "+i.formattedValue||i.formattedValue;let t=i.dataset.label||"";t&&(t+=": ");const e=i.formattedValue;return T(e)||(t+=e),t},labelColor(i){const e=i.chart.getDatasetMeta(i.datasetIndex).controller.getStyle(i.dataIndex);return{borderColor:e.borderColor,backgroundColor:e.backgroundColor,borderWidth:e.borderWidth,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(i){const e=i.chart.getDatasetMeta(i.datasetIndex).controller.getStyle(i.dataIndex);return{pointStyle:e.pointStyle,rotation:e.rotation}},afterLabel:ot,afterBody:ot,beforeFooter:ot,footer:ot,afterFooter:ot};function X(i,t,e,s){const n=i[t].call(e,s);return typeof n>"u"?Ks[t].call(e,s):n}class is extends ct{static positioners=Nt;constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const e=this.chart,s=this.options.setContext(this.getContext()),n=s.enabled&&e.options.animation&&s.animations,o=new Ts(this.chart,n);return n._cacheable&&(this._cachedAnimations=Object.freeze(o)),o}getContext(){return this.$context||(this.$context=za(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,e){const{callbacks:s}=e,n=X(s,"beforeTitle",this,t),o=X(s,"title",this,t),r=X(s,"afterTitle",this,t);let a=[];return a=it(a,at(n)),a=it(a,at(o)),a=it(a,at(r)),a}getBeforeBody(t,e){return ts(X(e.callbacks,"beforeBody",this,t))}getBody(t,e){const{callbacks:s}=e,n=[];return R(t,o=>{const r={before:[],lines:[],after:[]},a=es(s,o);it(r.before,at(X(a,"beforeLabel",this,o))),it(r.lines,X(a,"label",this,o)),it(r.after,at(X(a,"afterLabel",this,o))),n.push(r)}),n}getAfterBody(t,e){return ts(X(e.callbacks,"afterBody",this,t))}getFooter(t,e){const{callbacks:s}=e,n=X(s,"beforeFooter",this,t),o=X(s,"footer",this,t),r=X(s,"afterFooter",this,t);let a=[];return a=it(a,at(n)),a=it(a,at(o)),a=it(a,at(r)),a}_createItems(t){const e=this._active,s=this.chart.data,n=[],o=[],r=[];let a=[],l,c;for(l=0,c=e.length;l<c;++l)a.push(Aa(this.chart,e[l]));return t.filter&&(a=a.filter((h,d,u)=>t.filter(h,d,u,s))),t.itemSort&&(a=a.sort((h,d)=>t.itemSort(h,d,s))),R(a,h=>{const d=es(t.callbacks,h);n.push(X(d,"labelColor",this,h)),o.push(X(d,"labelPointStyle",this,h)),r.push(X(d,"labelTextColor",this,h))}),this.labelColors=n,this.labelPointStyles=o,this.labelTextColors=r,this.dataPoints=a,a}update(t,e){const s=this.options.setContext(this.getContext()),n=this._active;let o,r=[];if(!n.length)this.opacity!==0&&(o={opacity:0});else{const a=Nt[s.position].call(this,n,this._eventPosition);r=this._createItems(s),this.title=this.getTitle(r,s),this.beforeBody=this.getBeforeBody(r,s),this.body=this.getBody(r,s),this.afterBody=this.getAfterBody(r,s),this.footer=this.getFooter(r,s);const l=this._size=Ji(this,s),c=Object.assign({},a,l),h=Qi(this.chart,s,c),d=Zi(s,c,h,this.chart);this.xAlign=h.xAlign,this.yAlign=h.yAlign,o={opacity:1,x:d.x,y:d.y,width:l.width,height:l.height,caretX:a.x,caretY:a.y}}this._tooltipItems=r,this.$context=void 0,o&&this._resolveAnimations().update(this,o),t&&s.external&&s.external.call(this,{chart:this.chart,tooltip:this,replay:e})}drawCaret(t,e,s,n){const o=this.getCaretPosition(t,s,n);e.lineTo(o.x1,o.y1),e.lineTo(o.x2,o.y2),e.lineTo(o.x3,o.y3)}getCaretPosition(t,e,s){const{xAlign:n,yAlign:o}=this,{caretSize:r,cornerRadius:a}=s,{topLeft:l,topRight:c,bottomLeft:h,bottomRight:d}=Dt(a),{x:u,y:f}=t,{width:p,height:g}=e;let m,b,_,y,v,x;return o==="center"?(v=f+g/2,n==="left"?(m=u,b=m-r,y=v+r,x=v-r):(m=u+p,b=m+r,y=v-r,x=v+r),_=m):(n==="left"?b=u+Math.max(l,h)+r:n==="right"?b=u+p-Math.max(c,d)-r:b=this.caretX,o==="top"?(y=f,v=y-r,m=b-r,_=b+r):(y=f+g,v=y+r,m=b+r,_=b-r),x=y),{x1:m,x2:b,x3:_,y1:y,y2:v,y3:x}}drawTitle(t,e,s){const n=this.title,o=n.length;let r,a,l;if(o){const c=Ot(s.rtl,this.x,this.width);for(t.x=ce(this,s.titleAlign,s),e.textAlign=c.textAlign(s.titleAlign),e.textBaseline="middle",r=U(s.titleFont),a=s.titleSpacing,e.fillStyle=s.titleColor,e.font=r.string,l=0;l<o;++l)e.fillText(n[l],c.x(t.x),t.y+r.lineHeight/2),t.y+=r.lineHeight+a,l+1===o&&(t.y+=s.titleMarginBottom-a)}}_drawColorBox(t,e,s,n,o){const r=this.labelColors[s],a=this.labelPointStyles[s],{boxHeight:l,boxWidth:c}=o,h=U(o.bodyFont),d=ce(this,"left",o),u=n.x(d),f=l<h.lineHeight?(h.lineHeight-l)/2:0,p=e.y+f;if(o.usePointStyle){const g={radius:Math.min(c,l)/2,pointStyle:a.pointStyle,rotation:a.rotation,borderWidth:1},m=n.leftForLtr(u,c)+c/2,b=p+l/2;t.strokeStyle=o.multiKeyBackground,t.fillStyle=o.multiKeyBackground,Fe(t,g,m,b),t.strokeStyle=r.borderColor,t.fillStyle=r.backgroundColor,Fe(t,g,m,b)}else{t.lineWidth=A(r.borderWidth)?Math.max(...Object.values(r.borderWidth)):r.borderWidth||1,t.strokeStyle=r.borderColor,t.setLineDash(r.borderDash||[]),t.lineDashOffset=r.borderDashOffset||0;const g=n.leftForLtr(u,c),m=n.leftForLtr(n.xPlus(u,1),c-2),b=Dt(r.borderRadius);Object.values(b).some(_=>_!==0)?(t.beginPath(),t.fillStyle=o.multiKeyBackground,me(t,{x:g,y:p,w:c,h:l,radius:b}),t.fill(),t.stroke(),t.fillStyle=r.backgroundColor,t.beginPath(),me(t,{x:m,y:p+1,w:c-2,h:l-2,radius:b}),t.fill()):(t.fillStyle=o.multiKeyBackground,t.fillRect(g,p,c,l),t.strokeRect(g,p,c,l),t.fillStyle=r.backgroundColor,t.fillRect(m,p+1,c-2,l-2))}t.fillStyle=this.labelTextColors[s]}drawBody(t,e,s){const{body:n}=this,{bodySpacing:o,bodyAlign:r,displayColors:a,boxHeight:l,boxWidth:c,boxPadding:h}=s,d=U(s.bodyFont);let u=d.lineHeight,f=0;const p=Ot(s.rtl,this.x,this.width),g=function(M){e.fillText(M,p.x(t.x+f),t.y+u/2),t.y+=u+o},m=p.textAlign(r);let b,_,y,v,x,k,S;for(e.textAlign=r,e.textBaseline="middle",e.font=d.string,t.x=ce(this,m,s),e.fillStyle=s.bodyColor,R(this.beforeBody,g),f=a&&m!=="right"?r==="center"?c/2+h:c+2+h:0,v=0,k=n.length;v<k;++v){for(b=n[v],_=this.labelTextColors[v],e.fillStyle=_,R(b.before,g),y=b.lines,a&&y.length&&(this._drawColorBox(e,t,v,p,s),u=Math.max(d.lineHeight,l)),x=0,S=y.length;x<S;++x)g(y[x]),u=d.lineHeight;R(b.after,g)}f=0,u=d.lineHeight,R(this.afterBody,g),t.y-=o}drawFooter(t,e,s){const n=this.footer,o=n.length;let r,a;if(o){const l=Ot(s.rtl,this.x,this.width);for(t.x=ce(this,s.footerAlign,s),t.y+=s.footerMarginTop,e.textAlign=l.textAlign(s.footerAlign),e.textBaseline="middle",r=U(s.footerFont),e.fillStyle=s.footerColor,e.font=r.string,a=0;a<o;++a)e.fillText(n[a],l.x(t.x),t.y+r.lineHeight/2),t.y+=r.lineHeight+s.footerSpacing}}drawBackground(t,e,s,n){const{xAlign:o,yAlign:r}=this,{x:a,y:l}=t,{width:c,height:h}=s,{topLeft:d,topRight:u,bottomLeft:f,bottomRight:p}=Dt(n.cornerRadius);e.fillStyle=n.backgroundColor,e.strokeStyle=n.borderColor,e.lineWidth=n.borderWidth,e.beginPath(),e.moveTo(a+d,l),r==="top"&&this.drawCaret(t,e,s,n),e.lineTo(a+c-u,l),e.quadraticCurveTo(a+c,l,a+c,l+u),r==="center"&&o==="right"&&this.drawCaret(t,e,s,n),e.lineTo(a+c,l+h-p),e.quadraticCurveTo(a+c,l+h,a+c-p,l+h),r==="bottom"&&this.drawCaret(t,e,s,n),e.lineTo(a+f,l+h),e.quadraticCurveTo(a,l+h,a,l+h-f),r==="center"&&o==="left"&&this.drawCaret(t,e,s,n),e.lineTo(a,l+d),e.quadraticCurveTo(a,l,a+d,l),e.closePath(),e.fill(),n.borderWidth>0&&e.stroke()}_updateAnimationTarget(t){const e=this.chart,s=this.$animations,n=s&&s.x,o=s&&s.y;if(n||o){const r=Nt[t.position].call(this,this._active,this._eventPosition);if(!r)return;const a=this._size=Ji(this,t),l=Object.assign({},r,this._size),c=Qi(e,t,l),h=Zi(t,l,c,e);(n._to!==h.x||o._to!==h.y)&&(this.xAlign=c.xAlign,this.yAlign=c.yAlign,this.width=a.width,this.height=a.height,this.caretX=r.x,this.caretY=r.y,this._resolveAnimations().update(this,h))}}_willRender(){return!!this.opacity}draw(t){const e=this.options.setContext(this.getContext());let s=this.opacity;if(!s)return;this._updateAnimationTarget(e);const n={width:this.width,height:this.height},o={x:this.x,y:this.y};s=Math.abs(s)<.001?0:s;const r=Q(e.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;e.enabled&&a&&(t.save(),t.globalAlpha=s,this.drawBackground(o,t,n,e),Ds(t,e.textDirection),o.y+=r.top,this.drawTitle(o,t,e),this.drawBody(o,t,e),this.drawFooter(o,t,e),Os(t,e.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,e){const s=this._active,n=t.map(({datasetIndex:a,index:l})=>{const c=this.chart.getDatasetMeta(a);if(!c)throw new Error("Cannot find a dataset at index "+a);return{datasetIndex:a,element:c.data[l],index:l}}),o=!fe(s,n),r=this._positionChanged(n,e);(o||r)&&(this._active=n,this._eventPosition=e,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,e,s=!0){if(e&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const n=this.options,o=this._active||[],r=this._getActiveElements(t,o,e,s),a=this._positionChanged(r,t),l=e||!fe(r,o)||a;return l&&(this._active=r,(n.enabled||n.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,e))),l}_getActiveElements(t,e,s,n){const o=this.options;if(t.type==="mouseout")return[];if(!n)return e.filter(a=>this.chart.data.datasets[a.datasetIndex]&&this.chart.getDatasetMeta(a.datasetIndex).controller.getParsed(a.index)!==void 0);const r=this.chart.getElementsAtEventForMode(t,o.mode,o,s);return o.reverse&&r.reverse(),r}_positionChanged(t,e){const{caretX:s,caretY:n,options:o}=this,r=Nt[o.position].call(this,t,e);return r!==!1&&(s!==r.x||n!==r.y)}}var el={id:"tooltip",_element:is,positioners:Nt,afterInit(i,t,e){e&&(i.tooltip=new is({chart:i,options:e}))},beforeUpdate(i,t,e){i.tooltip&&i.tooltip.initialize(e)},reset(i,t,e){i.tooltip&&i.tooltip.initialize(e)},afterDraw(i){const t=i.tooltip;if(t&&t._willRender()){const e={tooltip:t};if(i.notifyPlugins("beforeTooltipDraw",{...e,cancelable:!0})===!1)return;t.draw(i.ctx),i.notifyPlugins("afterTooltipDraw",e)}},afterEvent(i,t){if(i.tooltip){const e=t.replay;i.tooltip.handleEvent(t.event,e,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(i,t)=>t.bodyFont.size,boxWidth:(i,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:Ks},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:i=>i!=="filter"&&i!=="itemSort"&&i!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const Fa=(i,t,e,s)=>(typeof t=="string"?(e=i.push(t)-1,s.unshift({index:e,label:t})):isNaN(t)&&(e=null),e);function Ba(i,t,e,s){const n=i.indexOf(t);if(n===-1)return Fa(i,t,e,s);const o=i.lastIndexOf(t);return n!==o?e:n}const Wa=(i,t)=>i===null?null:Y(Math.round(i),0,t);function ss(i){const t=this.getLabels();return i>=0&&i<t.length?t[i]:i}class il extends Rt{static id="category";static defaults={ticks:{callback:ss}};constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const e=this._addedLabels;if(e.length){const s=this.getLabels();for(const{index:n,label:o}of e)s[n]===o&&s.splice(n,1);this._addedLabels=[]}super.init(t)}parse(t,e){if(T(t))return null;const s=this.getLabels();return e=isFinite(e)&&s[e]===t?e:Ba(s,t,P(e,t),this._addedLabels),Wa(e,s.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let{min:s,max:n}=this.getMinMax(!0);this.options.bounds==="ticks"&&(t||(s=0),e||(n=this.getLabels().length-1)),this.min=s,this.max=n}buildTicks(){const t=this.min,e=this.max,s=this.options.offset,n=[];let o=this.getLabels();o=t===0&&e===o.length-1?o:o.slice(t,e+1),this._valueRange=Math.max(o.length-(s?0:1),1),this._startValue=this.min-(s?.5:0);for(let r=t;r<=e;r++)n.push({value:r});return n}getLabelForValue(t){return ss.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return typeof t!="number"&&(t=this.parse(t)),t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}function Ha(i,t){const e=[],{bounds:n,step:o,min:r,max:a,precision:l,count:c,maxTicks:h,maxDigits:d,includeBounds:u}=i,f=o||1,p=h-1,{min:g,max:m}=t,b=!T(r),_=!T(a),y=!T(c),v=(m-g)/(d+1);let x=ni((m-g)/p/f)*f,k,S,M,w;if(x<1e-14&&!b&&!_)return[{value:g},{value:m}];w=Math.ceil(m/x)-Math.floor(g/x),w>p&&(x=ni(w*x/p/f)*f),T(l)||(k=Math.pow(10,l),x=Math.ceil(x*k)/k),n==="ticks"?(S=Math.floor(g/x)*x,M=Math.ceil(m/x)*x):(S=g,M=m),b&&_&&o&&an((a-r)/o,x/1e3)?(w=Math.round(Math.min((a-r)/x,h)),x=(a-r)/w,S=r,M=a):y?(S=b?r:S,M=_?a:M,w=c-1,x=(M-S)/w):(w=(M-S)/x,jt(w,Math.round(w),x/1e3)?w=Math.round(w):w=Math.ceil(w));const D=Math.max(oi(x),oi(S));k=Math.pow(10,T(l)?D:l),S=Math.round(S*k)/k,M=Math.round(M*k)/k;let C=0;for(b&&(u&&S!==r?(e.push({value:r}),S<r&&C++,jt(Math.round((S+C*x)*k)/k,r,ns(r,v,i))&&C++):S<r&&C++);C<w;++C){const O=Math.round((S+C*x)*k)/k;if(_&&O>a)break;e.push({value:O})}return _&&u&&M!==a?e.length&&jt(e[e.length-1].value,a,ns(a,v,i))?e[e.length-1].value=a:e.push({value:a}):(!_||M===a)&&e.push({value:M}),e}function ns(i,t,{horizontal:e,minRotation:s}){const n=lt(s),o=(e?Math.sin(n):Math.cos(n))||.001,r=.75*t*(""+i).length;return Math.min(t/o,r)}class Na extends Rt{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,e){return T(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:e,maxDefined:s}=this.getUserBounds();let{min:n,max:o}=this;const r=l=>n=e?n:l,a=l=>o=s?o:l;if(t){const l=nt(n),c=nt(o);l<0&&c<0?a(0):l>0&&c>0&&r(0)}if(n===o){let l=o===0?1:Math.abs(o*.05);a(o+l),t||r(n-l)}this.min=n,this.max=o}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:e,stepSize:s}=t,n;return s?(n=Math.ceil(this.max/s)-Math.floor(this.min/s)+1,n>1e3&&(console.warn(\`scales.\${this.id}.ticks.stepSize: \${s} would result generating up to \${n} ticks. Limiting to 1000.\`),n=1e3)):(n=this.computeTickLimit(),e=e||11),e&&(n=Math.min(e,n)),n}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,e=t.ticks;let s=this.getTickLimit();s=Math.max(2,s);const n={maxTicks:s,bounds:t.bounds,min:t.min,max:t.max,precision:e.precision,step:e.stepSize,count:e.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:e.minRotation||0,includeBounds:e.includeBounds!==!1},o=this._range||this,r=Ha(n,o);return t.bounds==="ticks"&&ln(r,this,"value"),t.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}configure(){const t=this.ticks;let e=this.min,s=this.max;if(super.configure(),this.options.offset&&t.length){const n=(s-e)/Math.max(t.length-1,1)/2;e-=n,s+=n}this._startValue=e,this._endValue=s,this._valueRange=s-e}getLabelForValue(t){return Ye(t,this.chart.options.locale,this.options.ticks.format)}}class sl extends Na{static id="linear";static defaults={ticks:{callback:ys.formatters.numeric}};determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=J(t)?t:0,this.max=J(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),e=t?this.width:this.height,s=lt(this.options.ticks.minRotation),n=(t?Math.sin(s):Math.cos(s))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,o.lineHeight/n))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}const ke={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},K=Object.keys(ke);function os(i,t){return i-t}function rs(i,t){if(T(t))return null;const e=i._adapter,{parser:s,round:n,isoWeekday:o}=i._parseOpts;let r=t;return typeof s=="function"&&(r=s(r)),J(r)||(r=typeof s=="string"?e.parse(r,s):e.parse(r)),r===null?null:(n&&(r=n==="week"&&(Kt(o)||o===!0)?e.startOf(r,"isoWeek",o):e.startOf(r,n)),+r)}function as(i,t,e,s){const n=K.length;for(let o=K.indexOf(i);o<n-1;++o){const r=ke[K[o]],a=r.steps?r.steps:Number.MAX_SAFE_INTEGER;if(r.common&&Math.ceil((e-t)/(a*r.size))<=s)return K[o]}return K[n-1]}function Va(i,t,e,s,n){for(let o=K.length-1;o>=K.indexOf(e);o--){const r=K[o];if(ke[r].common&&i._adapter.diff(n,s,r)>=t-1)return r}return K[e?K.indexOf(e):0]}function ja(i){for(let t=K.indexOf(i)+1,e=K.length;t<e;++t)if(ke[K[t]].common)return K[t]}function ls(i,t,e){if(!e)i[t]=!0;else if(e.length){const{lo:s,hi:n}=Ve(e,t),o=e[s]>=t?e[s]:e[n];i[o]=!0}}function $a(i,t,e,s){const n=i._adapter,o=+n.startOf(t[0].value,s),r=t[t.length-1].value;let a,l;for(a=o;a<=r;a=+n.add(a,1,s))l=e[a],l>=0&&(t[l].major=!0);return t}function cs(i,t,e){const s=[],n={},o=t.length;let r,a;for(r=0;r<o;++r)a=t[r],n[a]=r,s.push({value:a,major:!1});return o===0||!e?s:$a(i,s,n,e)}class hs extends Rt{static id="time";static defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}};constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,e={}){const s=t.time||(t.time={}),n=this._adapter=new Ko._date(t.adapters.date);n.init(e),Vt(s.displayFormats,n.formats()),this._parseOpts={parser:s.parser,round:s.round,isoWeekday:s.isoWeekday},super.init(t),this._normalized=e.normalized}parse(t,e){return t===void 0?null:rs(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,e=this._adapter,s=t.time.unit||"day";let{min:n,max:o,minDefined:r,maxDefined:a}=this.getUserBounds();function l(c){!r&&!isNaN(c.min)&&(n=Math.min(n,c.min)),!a&&!isNaN(c.max)&&(o=Math.max(o,c.max))}(!r||!a)&&(l(this._getLabelBounds()),(t.bounds!=="ticks"||t.ticks.source!=="labels")&&l(this.getMinMax(!1))),n=J(n)&&!isNaN(n)?n:+e.startOf(Date.now(),s),o=J(o)&&!isNaN(o)?o:+e.endOf(Date.now(),s)+1,this.min=Math.min(n,o-1),this.max=Math.max(n+1,o)}_getLabelBounds(){const t=this.getLabelTimestamps();let e=Number.POSITIVE_INFINITY,s=Number.NEGATIVE_INFINITY;return t.length&&(e=t[0],s=t[t.length-1]),{min:e,max:s}}buildTicks(){const t=this.options,e=t.time,s=t.ticks,n=s.source==="labels"?this.getLabelTimestamps():this._generate();t.bounds==="ticks"&&n.length&&(this.min=this._userMin||n[0],this.max=this._userMax||n[n.length-1]);const o=this.min,r=this.max,a=fn(n,o,r);return this._unit=e.unit||(s.autoSkip?as(e.minUnit,this.min,this.max,this._getLabelCapacity(o)):Va(this,a.length,e.minUnit,this.min,this.max)),this._majorUnit=!s.major.enabled||this._unit==="year"?void 0:ja(this._unit),this.initOffsets(n),t.reverse&&a.reverse(),cs(this,a,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t=[]){let e=0,s=0,n,o;this.options.offset&&t.length&&(n=this.getDecimalForValue(t[0]),t.length===1?e=1-n:e=(this.getDecimalForValue(t[1])-n)/2,o=this.getDecimalForValue(t[t.length-1]),t.length===1?s=o:s=(o-this.getDecimalForValue(t[t.length-2]))/2);const r=t.length<3?.5:.25;e=Y(e,0,r),s=Y(s,0,r),this._offsets={start:e,end:s,factor:1/(e+1+s)}}_generate(){const t=this._adapter,e=this.min,s=this.max,n=this.options,o=n.time,r=o.unit||as(o.minUnit,e,s,this._getLabelCapacity(e)),a=P(n.ticks.stepSize,1),l=r==="week"?o.isoWeekday:!1,c=Kt(l)||l===!0,h={};let d=e,u,f;if(c&&(d=+t.startOf(d,"isoWeek",l)),d=+t.startOf(d,c?"day":r),t.diff(s,e,r)>1e5*a)throw new Error(e+" and "+s+" are too far apart with stepSize of "+a+" "+r);const p=n.ticks.source==="data"&&this.getDataTimestamps();for(u=d,f=0;u<s;u=+t.add(u,a,r),f++)ls(h,u,p);return(u===s||n.bounds==="ticks"||f===1)&&ls(h,u,p),Object.keys(h).sort(os).map(g=>+g)}getLabelForValue(t){const e=this._adapter,s=this.options.time;return s.tooltipFormat?e.format(t,s.tooltipFormat):e.format(t,s.displayFormats.datetime)}format(t,e){const n=this.options.time.displayFormats,o=this._unit,r=e||n[o];return this._adapter.format(t,r)}_tickFormatFunction(t,e,s,n){const o=this.options,r=o.ticks.callback;if(r)return E(r,[t,e,s],this);const a=o.time.displayFormats,l=this._unit,c=this._majorUnit,h=l&&a[l],d=c&&a[c],u=s[e],f=c&&d&&u&&u.major;return this._adapter.format(t,n||(f?d:h))}generateTickLabels(t){let e,s,n;for(e=0,s=t.length;e<s;++e)n=t[e],n.label=this._tickFormatFunction(n.value,e,t)}getDecimalForValue(t){return t===null?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const e=this._offsets,s=this.getDecimalForValue(t);return this.getPixelForDecimal((e.start+s)*e.factor)}getValueForPixel(t){const e=this._offsets,s=this.getDecimalForPixel(t)/e.factor-e.end;return this.min+s*(this.max-this.min)}_getLabelSize(t){const e=this.options.ticks,s=this.ctx.measureText(t).width,n=lt(this.isHorizontal()?e.maxRotation:e.minRotation),o=Math.cos(n),r=Math.sin(n),a=this._resolveTickFontOptions(0).size;return{w:s*o+a*r,h:s*r+a*o}}_getLabelCapacity(t){const e=this.options.time,s=e.displayFormats,n=s[e.unit]||s.millisecond,o=this._tickFormatFunction(t,0,cs(this,[t],this._majorUnit),n),r=this._getLabelSize(o),a=Math.floor(this.isHorizontal()?this.width/r.w:this.height/r.h)-1;return a>0?a:1}getDataTimestamps(){let t=this._cache.data||[],e,s;if(t.length)return t;const n=this.getMatchingVisibleMetas();if(this._normalized&&n.length)return this._cache.data=n[0].controller.getAllParsedValues(this);for(e=0,s=n.length;e<s;++e)t=t.concat(n[e].controller.getAllParsedValues(this));return this._cache.data=this.normalize(t)}getLabelTimestamps(){const t=this._cache.labels||[];let e,s;if(t.length)return t;const n=this.getLabels();for(e=0,s=n.length;e<s;++e)t.push(rs(this,n[e]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return bs(t.sort(os))}}function he(i,t,e){let s=0,n=i.length-1,o,r,a,l;e?(t>=i[s].pos&&t<=i[n].pos&&({lo:s,hi:n}=yt(i,"pos",t)),{pos:o,time:a}=i[s],{pos:r,time:l}=i[n]):(t>=i[s].time&&t<=i[n].time&&({lo:s,hi:n}=yt(i,"time",t)),{time:o,pos:a}=i[s],{time:r,pos:l}=i[n]);const c=r-o;return c?a+(l-a)*(t-o)/c:a}class nl extends hs{static id="timeseries";static defaults=hs.defaults;constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),e=this._table=this.buildLookupTable(t);this._minPos=he(e,this.min),this._tableRange=he(e,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:e,max:s}=this,n=[],o=[];let r,a,l,c,h;for(r=0,a=t.length;r<a;++r)c=t[r],c>=e&&c<=s&&n.push(c);if(n.length<2)return[{time:e,pos:0},{time:s,pos:1}];for(r=0,a=n.length;r<a;++r)h=n[r+1],l=n[r-1],c=n[r],Math.round((h+l)/2)!==c&&o.push({time:c,pos:r/(a-1)});return o}_generate(){const t=this.min,e=this.max;let s=super.getDataTimestamps();return(!s.includes(t)||!s.length)&&s.splice(0,0,t),(!s.includes(e)||s.length===1)&&s.push(e),s.sort((n,o)=>n-o)}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const e=this.getDataTimestamps(),s=this.getLabelTimestamps();return e.length&&s.length?t=this.normalize(e.concat(s)):t=e.length?e:s,t=this._cache.all=t,t}getDecimalForValue(t){return(he(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const e=this._offsets,s=this.getDecimalForPixel(t)/e.factor-e.end;return he(this._table,s*this._tableRange+this._minPos,!0)}}export{Ga as A,Ua as B,sa as C,Xa as D,Ka as L,Ja as P,il as a,sl as b,qa as c,el as d,Za as e,Qa as f,tl as p};
21279
- `,
21280
- "vendor-lodash-CRdCilnf.js": 'var Ir=typeof global=="object"&&global&&global.Object===Object&&global,Qr=typeof self=="object"&&self&&self.Object===Object&&self,T=Ir||Qr||Function("return this")(),y=T.Symbol,Gr=Object.prototype,Vr=Gr.hasOwnProperty,kr=Gr.toString,j=y?y.toStringTag:void 0;function rn(r){var n=Vr.call(r,j),t=r[j];try{r[j]=void 0;var e=!0}catch{}var i=kr.call(r);return e&&(n?r[j]=t:delete r[j]),i}var nn=Object.prototype,tn=nn.toString;function en(r){return tn.call(r)}var an="[object Null]",un="[object Undefined]",pr=y?y.toStringTag:void 0;function M(r){return r==null?r===void 0?un:an:pr&&pr in Object(r)?rn(r):en(r)}function C(r){return r!=null&&typeof r=="object"}var on="[object Symbol]";function L(r){return typeof r=="symbol"||C(r)&&M(r)==on}function B(r,n){for(var t=-1,e=r==null?0:r.length,i=Array(e);++t<e;)i[t]=n(r[t],t,r);return i}var _=Array.isArray,gr=y?y.prototype:void 0,dr=gr?gr.toString:void 0;function zr(r){if(typeof r=="string")return r;if(_(r))return B(r,zr)+"";if(L(r))return dr?dr.call(r):"";var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}function U(r){var n=typeof r;return r!=null&&(n=="object"||n=="function")}function H(r){return r}var fn="[object AsyncFunction]",sn="[object Function]",cn="[object GeneratorFunction]",ln="[object Proxy]";function Br(r){if(!U(r))return!1;var n=M(r);return n==sn||n==cn||n==fn||n==ln}var W=T["__core-js_shared__"],hr=(function(){var r=/[^.]+$/.exec(W&&W.keys&&W.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""})();function pn(r){return!!hr&&hr in r}var gn=Function.prototype,dn=gn.toString;function E(r){if(r!=null){try{return dn.call(r)}catch{}try{return r+""}catch{}}return""}var hn=/[\\\\^$.*+?()[\\]{}|]/g,_n=/^\\[object .+?Constructor\\]$/,yn=Function.prototype,vn=Object.prototype,bn=yn.toString,Tn=vn.hasOwnProperty,An=RegExp("^"+bn.call(Tn).replace(hn,"\\\\$&").replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g,"$1.*?")+"$");function wn(r){if(!U(r)||pn(r))return!1;var n=Br(r)?An:_n;return n.test(E(r))}function On(r,n){return r?.[n]}function x(r,n){var t=On(r,n);return wn(t)?t:void 0}var Q=x(T,"WeakMap");function Pn(r,n,t){switch(t.length){case 0:return r.call(n);case 1:return r.call(n,t[0]);case 2:return r.call(n,t[0],t[1]);case 3:return r.call(n,t[0],t[1],t[2])}return r.apply(n,t)}var $n=800,mn=16,Sn=Date.now;function En(r){var n=0,t=0;return function(){var e=Sn(),i=mn-(e-t);if(t=e,i>0){if(++n>=$n)return arguments[0]}else n=0;return r.apply(void 0,arguments)}}function xn(r){return function(){return r}}var _r=(function(){try{var r=x(Object,"defineProperty");return r({},"",{}),r}catch{}})(),Cn=_r?function(r,n){return _r(r,"toString",{configurable:!0,enumerable:!1,value:xn(n),writable:!0})}:H,Mn=En(Cn),jn=9007199254740991,Rn=/^(?:0|[1-9]\\d*)$/;function tr(r,n){var t=typeof r;return n=n??jn,!!n&&(t=="number"||t!="symbol"&&Rn.test(r))&&r>-1&&r%1==0&&r<n}function er(r,n){return r===n||r!==r&&n!==n}var yr=Math.max;function Ln(r,n,t){return n=yr(n===void 0?r.length-1:n,0),function(){for(var e=arguments,i=-1,a=yr(e.length-n,0),u=Array(a);++i<a;)u[i]=e[n+i];i=-1;for(var o=Array(n+1);++i<n;)o[i]=e[i];return o[n]=t(u),Pn(r,this,o)}}function Fn(r,n){return Mn(Ln(r,n,H),r+"")}var Dn=9007199254740991;function ar(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=Dn}function K(r){return r!=null&&ar(r.length)&&!Br(r)}function vr(r,n,t){if(!U(t))return!1;var e=typeof n;return(e=="number"?K(t)&&tr(n,t.length):e=="string"&&n in t)?er(t[n],r):!1}var In=Object.prototype;function Gn(r){var n=r&&r.constructor,t=typeof n=="function"&&n.prototype||In;return r===t}function zn(r,n){for(var t=-1,e=Array(r);++t<r;)e[t]=n(t);return e}var Bn="[object Arguments]";function br(r){return C(r)&&M(r)==Bn}var Nr=Object.prototype,Nn=Nr.hasOwnProperty,Un=Nr.propertyIsEnumerable,ir=br((function(){return arguments})())?br:function(r){return C(r)&&Nn.call(r,"callee")&&!Un.call(r,"callee")};function Hn(){return!1}var Ur=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Tr=Ur&&typeof module=="object"&&module&&!module.nodeType&&module,Kn=Tr&&Tr.exports===Ur,Ar=Kn?T.Buffer:void 0,Xn=Ar?Ar.isBuffer:void 0,V=Xn||Hn,qn="[object Arguments]",Zn="[object Array]",Wn="[object Boolean]",Jn="[object Date]",Yn="[object Error]",Qn="[object Function]",Vn="[object Map]",kn="[object Number]",rt="[object Object]",nt="[object RegExp]",tt="[object Set]",et="[object String]",at="[object WeakMap]",it="[object ArrayBuffer]",ut="[object DataView]",ot="[object Float32Array]",ft="[object Float64Array]",st="[object Int8Array]",ct="[object Int16Array]",lt="[object Int32Array]",pt="[object Uint8Array]",gt="[object Uint8ClampedArray]",dt="[object Uint16Array]",ht="[object Uint32Array]",c={};c[ot]=c[ft]=c[st]=c[ct]=c[lt]=c[pt]=c[gt]=c[dt]=c[ht]=!0;c[qn]=c[Zn]=c[it]=c[Wn]=c[ut]=c[Jn]=c[Yn]=c[Qn]=c[Vn]=c[kn]=c[rt]=c[nt]=c[tt]=c[et]=c[at]=!1;function _t(r){return C(r)&&ar(r.length)&&!!c[M(r)]}function Hr(r){return function(n){return r(n)}}var Kr=typeof exports=="object"&&exports&&!exports.nodeType&&exports,R=Kr&&typeof module=="object"&&module&&!module.nodeType&&module,yt=R&&R.exports===Kr,J=yt&&Ir.process,wr=(function(){try{var r=R&&R.require&&R.require("util").types;return r||J&&J.binding&&J.binding("util")}catch{}})(),Or=wr&&wr.isTypedArray,Xr=Or?Hr(Or):_t,vt=Object.prototype,bt=vt.hasOwnProperty;function Tt(r,n){var t=_(r),e=!t&&ir(r),i=!t&&!e&&V(r),a=!t&&!e&&!i&&Xr(r),u=t||e||i||a,o=u?zn(r.length,String):[],f=o.length;for(var s in r)bt.call(r,s)&&!(u&&(s=="length"||i&&(s=="offset"||s=="parent")||a&&(s=="buffer"||s=="byteLength"||s=="byteOffset")||tr(s,f)))&&o.push(s);return o}function At(r,n){return function(t){return r(n(t))}}var wt=At(Object.keys,Object),Ot=Object.prototype,Pt=Ot.hasOwnProperty;function $t(r){if(!Gn(r))return wt(r);var n=[];for(var t in Object(r))Pt.call(r,t)&&t!="constructor"&&n.push(t);return n}function ur(r){return K(r)?Tt(r):$t(r)}var mt=/\\.|\\[(?:[^[\\]]*|(["\'])(?:(?!\\1)[^\\\\]|\\\\.)*?\\1)\\]/,St=/^\\w*$/;function or(r,n){if(_(r))return!1;var t=typeof r;return t=="number"||t=="symbol"||t=="boolean"||r==null||L(r)?!0:St.test(r)||!mt.test(r)||n!=null&&r in Object(n)}var F=x(Object,"create");function Et(){this.__data__=F?F(null):{},this.size=0}function xt(r){var n=this.has(r)&&delete this.__data__[r];return this.size-=n?1:0,n}var Ct="__lodash_hash_undefined__",Mt=Object.prototype,jt=Mt.hasOwnProperty;function Rt(r){var n=this.__data__;if(F){var t=n[r];return t===Ct?void 0:t}return jt.call(n,r)?n[r]:void 0}var Lt=Object.prototype,Ft=Lt.hasOwnProperty;function Dt(r){var n=this.__data__;return F?n[r]!==void 0:Ft.call(n,r)}var It="__lodash_hash_undefined__";function Gt(r,n){var t=this.__data__;return this.size+=this.has(r)?0:1,t[r]=F&&n===void 0?It:n,this}function S(r){var n=-1,t=r==null?0:r.length;for(this.clear();++n<t;){var e=r[n];this.set(e[0],e[1])}}S.prototype.clear=Et;S.prototype.delete=xt;S.prototype.get=Rt;S.prototype.has=Dt;S.prototype.set=Gt;function zt(){this.__data__=[],this.size=0}function X(r,n){for(var t=r.length;t--;)if(er(r[t][0],n))return t;return-1}var Bt=Array.prototype,Nt=Bt.splice;function Ut(r){var n=this.__data__,t=X(n,r);if(t<0)return!1;var e=n.length-1;return t==e?n.pop():Nt.call(n,t,1),--this.size,!0}function Ht(r){var n=this.__data__,t=X(n,r);return t<0?void 0:n[t][1]}function Kt(r){return X(this.__data__,r)>-1}function Xt(r,n){var t=this.__data__,e=X(t,r);return e<0?(++this.size,t.push([r,n])):t[e][1]=n,this}function A(r){var n=-1,t=r==null?0:r.length;for(this.clear();++n<t;){var e=r[n];this.set(e[0],e[1])}}A.prototype.clear=zt;A.prototype.delete=Ut;A.prototype.get=Ht;A.prototype.has=Kt;A.prototype.set=Xt;var D=x(T,"Map");function qt(){this.size=0,this.__data__={hash:new S,map:new(D||A),string:new S}}function Zt(r){var n=typeof r;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?r!=="__proto__":r===null}function q(r,n){var t=r.__data__;return Zt(n)?t[typeof n=="string"?"string":"hash"]:t.map}function Wt(r){var n=q(this,r).delete(r);return this.size-=n?1:0,n}function Jt(r){return q(this,r).get(r)}function Yt(r){return q(this,r).has(r)}function Qt(r,n){var t=q(this,r),e=t.size;return t.set(r,n),this.size+=t.size==e?0:1,this}function w(r){var n=-1,t=r==null?0:r.length;for(this.clear();++n<t;){var e=r[n];this.set(e[0],e[1])}}w.prototype.clear=qt;w.prototype.delete=Wt;w.prototype.get=Jt;w.prototype.has=Yt;w.prototype.set=Qt;var Vt="Expected a function";function fr(r,n){if(typeof r!="function"||n!=null&&typeof n!="function")throw new TypeError(Vt);var t=function(){var e=arguments,i=n?n.apply(this,e):e[0],a=t.cache;if(a.has(i))return a.get(i);var u=r.apply(this,e);return t.cache=a.set(i,u)||a,u};return t.cache=new(fr.Cache||w),t}fr.Cache=w;var kt=500;function re(r){var n=fr(r,function(e){return t.size===kt&&t.clear(),e}),t=n.cache;return n}var ne=/[^.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|(["\'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))/g,te=/\\\\(\\\\)?/g,ee=re(function(r){var n=[];return r.charCodeAt(0)===46&&n.push(""),r.replace(ne,function(t,e,i,a){n.push(i?a.replace(te,"$1"):e||t)}),n});function ae(r){return r==null?"":zr(r)}function qr(r,n){return _(r)?r:or(r,n)?[r]:ee(ae(r))}function Z(r){if(typeof r=="string"||L(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}function sr(r,n){n=qr(n,r);for(var t=0,e=n.length;r!=null&&t<e;)r=r[Z(n[t++])];return t&&t==e?r:void 0}function ie(r,n,t){var e=r==null?void 0:sr(r,n);return e===void 0?t:e}function Zr(r,n){for(var t=-1,e=n.length,i=r.length;++t<e;)r[i+t]=n[t];return r}var Pr=y?y.isConcatSpreadable:void 0;function ue(r){return _(r)||ir(r)||!!(Pr&&r&&r[Pr])}function oe(r,n,t,e,i){var a=-1,u=r.length;for(t||(t=ue),i||(i=[]);++a<u;){var o=r[a];t(o)?Zr(i,o):i[i.length]=o}return i}function fe(){this.__data__=new A,this.size=0}function se(r){var n=this.__data__,t=n.delete(r);return this.size=n.size,t}function ce(r){return this.__data__.get(r)}function le(r){return this.__data__.has(r)}var pe=200;function ge(r,n){var t=this.__data__;if(t instanceof A){var e=t.__data__;if(!D||e.length<pe-1)return e.push([r,n]),this.size=++t.size,this;t=this.__data__=new w(e)}return t.set(r,n),this.size=t.size,this}function b(r){var n=this.__data__=new A(r);this.size=n.size}b.prototype.clear=fe;b.prototype.delete=se;b.prototype.get=ce;b.prototype.has=le;b.prototype.set=ge;function de(r,n){for(var t=-1,e=r==null?0:r.length,i=0,a=[];++t<e;){var u=r[t];n(u,t,r)&&(a[i++]=u)}return a}function he(){return[]}var _e=Object.prototype,ye=_e.propertyIsEnumerable,$r=Object.getOwnPropertySymbols,ve=$r?function(r){return r==null?[]:(r=Object(r),de($r(r),function(n){return ye.call(r,n)}))}:he;function be(r,n,t){var e=n(r);return _(r)?e:Zr(e,t(r))}function mr(r){return be(r,ur,ve)}var k=x(T,"DataView"),rr=x(T,"Promise"),nr=x(T,"Set"),Sr="[object Map]",Te="[object Object]",Er="[object Promise]",xr="[object Set]",Cr="[object WeakMap]",Mr="[object DataView]",Ae=E(k),we=E(D),Oe=E(rr),Pe=E(nr),$e=E(Q),P=M;(k&&P(new k(new ArrayBuffer(1)))!=Mr||D&&P(new D)!=Sr||rr&&P(rr.resolve())!=Er||nr&&P(new nr)!=xr||Q&&P(new Q)!=Cr)&&(P=function(r){var n=M(r),t=n==Te?r.constructor:void 0,e=t?E(t):"";if(e)switch(e){case Ae:return Mr;case we:return Sr;case Oe:return Er;case Pe:return xr;case $e:return Cr}return n});var jr=T.Uint8Array,me="__lodash_hash_undefined__";function Se(r){return this.__data__.set(r,me),this}function Ee(r){return this.__data__.has(r)}function N(r){var n=-1,t=r==null?0:r.length;for(this.__data__=new w;++n<t;)this.add(r[n])}N.prototype.add=N.prototype.push=Se;N.prototype.has=Ee;function xe(r,n){for(var t=-1,e=r==null?0:r.length;++t<e;)if(n(r[t],t,r))return!0;return!1}function Ce(r,n){return r.has(n)}var Me=1,je=2;function Wr(r,n,t,e,i,a){var u=t&Me,o=r.length,f=n.length;if(o!=f&&!(u&&f>o))return!1;var s=a.get(r),g=a.get(n);if(s&&g)return s==n&&g==r;var p=-1,l=!0,v=t&je?new N:void 0;for(a.set(r,n),a.set(n,r);++p<o;){var d=r[p],h=n[p];if(e)var O=u?e(h,d,p,n,r,a):e(d,h,p,r,n,a);if(O!==void 0){if(O)continue;l=!1;break}if(v){if(!xe(n,function($,m){if(!Ce(v,m)&&(d===$||i(d,$,t,e,a)))return v.push(m)})){l=!1;break}}else if(!(d===h||i(d,h,t,e,a))){l=!1;break}}return a.delete(r),a.delete(n),l}function Re(r){var n=-1,t=Array(r.size);return r.forEach(function(e,i){t[++n]=[i,e]}),t}function Le(r){var n=-1,t=Array(r.size);return r.forEach(function(e){t[++n]=e}),t}var Fe=1,De=2,Ie="[object Boolean]",Ge="[object Date]",ze="[object Error]",Be="[object Map]",Ne="[object Number]",Ue="[object RegExp]",He="[object Set]",Ke="[object String]",Xe="[object Symbol]",qe="[object ArrayBuffer]",Ze="[object DataView]",Rr=y?y.prototype:void 0,Y=Rr?Rr.valueOf:void 0;function We(r,n,t,e,i,a,u){switch(t){case Ze:if(r.byteLength!=n.byteLength||r.byteOffset!=n.byteOffset)return!1;r=r.buffer,n=n.buffer;case qe:return!(r.byteLength!=n.byteLength||!a(new jr(r),new jr(n)));case Ie:case Ge:case Ne:return er(+r,+n);case ze:return r.name==n.name&&r.message==n.message;case Ue:case Ke:return r==n+"";case Be:var o=Re;case He:var f=e&Fe;if(o||(o=Le),r.size!=n.size&&!f)return!1;var s=u.get(r);if(s)return s==n;e|=De,u.set(r,n);var g=Wr(o(r),o(n),e,i,a,u);return u.delete(r),g;case Xe:if(Y)return Y.call(r)==Y.call(n)}return!1}var Je=1,Ye=Object.prototype,Qe=Ye.hasOwnProperty;function Ve(r,n,t,e,i,a){var u=t&Je,o=mr(r),f=o.length,s=mr(n),g=s.length;if(f!=g&&!u)return!1;for(var p=f;p--;){var l=o[p];if(!(u?l in n:Qe.call(n,l)))return!1}var v=a.get(r),d=a.get(n);if(v&&d)return v==n&&d==r;var h=!0;a.set(r,n),a.set(n,r);for(var O=u;++p<f;){l=o[p];var $=r[l],m=n[l];if(e)var lr=u?e(m,$,l,n,r,a):e($,m,l,r,n,a);if(!(lr===void 0?$===m||i($,m,t,e,a):lr)){h=!1;break}O||(O=l=="constructor")}if(h&&!O){var I=r.constructor,G=n.constructor;I!=G&&"constructor"in r&&"constructor"in n&&!(typeof I=="function"&&I instanceof I&&typeof G=="function"&&G instanceof G)&&(h=!1)}return a.delete(r),a.delete(n),h}var ke=1,Lr="[object Arguments]",Fr="[object Array]",z="[object Object]",ra=Object.prototype,Dr=ra.hasOwnProperty;function na(r,n,t,e,i,a){var u=_(r),o=_(n),f=u?Fr:P(r),s=o?Fr:P(n);f=f==Lr?z:f,s=s==Lr?z:s;var g=f==z,p=s==z,l=f==s;if(l&&V(r)){if(!V(n))return!1;u=!0,g=!1}if(l&&!g)return a||(a=new b),u||Xr(r)?Wr(r,n,t,e,i,a):We(r,n,f,t,e,i,a);if(!(t&ke)){var v=g&&Dr.call(r,"__wrapped__"),d=p&&Dr.call(n,"__wrapped__");if(v||d){var h=v?r.value():r,O=d?n.value():n;return a||(a=new b),i(h,O,t,e,a)}}return l?(a||(a=new b),Ve(r,n,t,e,i,a)):!1}function cr(r,n,t,e,i){return r===n?!0:r==null||n==null||!C(r)&&!C(n)?r!==r&&n!==n:na(r,n,t,e,cr,i)}var ta=1,ea=2;function aa(r,n,t,e){var i=t.length,a=i;if(r==null)return!a;for(r=Object(r);i--;){var u=t[i];if(u[2]?u[1]!==r[u[0]]:!(u[0]in r))return!1}for(;++i<a;){u=t[i];var o=u[0],f=r[o],s=u[1];if(u[2]){if(f===void 0&&!(o in r))return!1}else{var g=new b,p;if(!(p===void 0?cr(s,f,ta|ea,e,g):p))return!1}}return!0}function Jr(r){return r===r&&!U(r)}function ia(r){for(var n=ur(r),t=n.length;t--;){var e=n[t],i=r[e];n[t]=[e,i,Jr(i)]}return n}function Yr(r,n){return function(t){return t==null?!1:t[r]===n&&(n!==void 0||r in Object(t))}}function ua(r){var n=ia(r);return n.length==1&&n[0][2]?Yr(n[0][0],n[0][1]):function(t){return t===r||aa(t,r,n)}}function oa(r,n){return r!=null&&n in Object(r)}function fa(r,n,t){n=qr(n,r);for(var e=-1,i=n.length,a=!1;++e<i;){var u=Z(n[e]);if(!(a=r!=null&&t(r,u)))break;r=r[u]}return a||++e!=i?a:(i=r==null?0:r.length,!!i&&ar(i)&&tr(u,i)&&(_(r)||ir(r)))}function sa(r,n){return r!=null&&fa(r,n,oa)}var ca=1,la=2;function pa(r,n){return or(r)&&Jr(n)?Yr(Z(r),n):function(t){var e=ie(t,r);return e===void 0&&e===n?sa(t,r):cr(n,e,ca|la)}}function ga(r){return function(n){return n?.[r]}}function da(r){return function(n){return sr(n,r)}}function ha(r){return or(r)?ga(Z(r)):da(r)}function _a(r){return typeof r=="function"?r:r==null?H:typeof r=="object"?_(r)?pa(r[0],r[1]):ua(r):ha(r)}function ya(r){return function(n,t,e){for(var i=-1,a=Object(n),u=e(n),o=u.length;o--;){var f=u[++i];if(t(a[f],f,a)===!1)break}return n}}var va=ya();function ba(r,n){return r&&va(r,n,ur)}function Ta(r,n){return function(t,e){if(t==null)return t;if(!K(t))return r(t,e);for(var i=t.length,a=-1,u=Object(t);++a<i&&e(u[a],a,u)!==!1;);return t}}var Aa=Ta(ba);function wa(r,n){var t=-1,e=K(r)?Array(r.length):[];return Aa(r,function(i,a,u){e[++t]=n(i,a,u)}),e}function Oa(r,n){var t=r.length;for(r.sort(n);t--;)r[t]=r[t].value;return r}function Pa(r,n){if(r!==n){var t=r!==void 0,e=r===null,i=r===r,a=L(r),u=n!==void 0,o=n===null,f=n===n,s=L(n);if(!o&&!s&&!a&&r>n||a&&u&&f&&!o&&!s||e&&u&&f||!t&&f||!i)return 1;if(!e&&!a&&!s&&r<n||s&&t&&i&&!e&&!a||o&&t&&i||!u&&i||!f)return-1}return 0}function $a(r,n,t){for(var e=-1,i=r.criteria,a=n.criteria,u=i.length,o=t.length;++e<u;){var f=Pa(i[e],a[e]);if(f){if(e>=o)return f;var s=t[e];return f*(s=="desc"?-1:1)}}return r.index-n.index}function ma(r,n,t){n.length?n=B(n,function(a){return _(a)?function(u){return sr(u,a.length===1?a[0]:a)}:a}):n=[H];var e=-1;n=B(n,Hr(_a));var i=wa(r,function(a,u,o){var f=B(n,function(s){return s(a)});return{criteria:f,index:++e,value:a}});return Oa(i,function(a,u){return $a(a,u,t)})}var Sa=Fn(function(r,n){if(r==null)return[];var t=n.length;return t>1&&vr(r,n[0],n[1])?n=[]:t>2&&vr(n[0],n[1],n[2])&&(n=[n[0]]),ma(r,oe(n),[])});export{Sa as s};\n'
21284
+ `
21281
21285
  }
21282
21286
  };
21283
21287
  });
@@ -21386,6 +21390,8 @@ class ConfigHandler {
21386
21390
  target: upstream.target,
21387
21391
  ...upstream.weight !== undefined && { weight: upstream.weight },
21388
21392
  ...upstream.priority !== undefined && { priority: upstream.priority },
21393
+ ...upstream.disabled !== undefined && { disabled: upstream.disabled },
21394
+ ...upstream.description && { description: upstream.description },
21389
21395
  ...upstream.plugins && { plugins: upstream.plugins },
21390
21396
  ...this.sanitizeModificationRules(upstream)
21391
21397
  };