import{S as v,i as h,s as B,a as p,w as d,a6 as P,h as u,c,x as _,b as g,y,f as $,t as Q,B as q}from"../../chunks/index-de1c04e4.js";import{F as w,Q as D}from"../../chunks/FieldDetails-21194f2f.js";import{D as x,f as E}from"../../chunks/pages-f56e3710.js";import{P as F}from"../../chunks/PreviousNextPage-f47aff1c.js";import"../../chunks/paths-b0dcd44a.js";import"../../chunks/ChevronDown-d5276f7c.js";import"../../chunks/ArgsList-2d417662.js";function N(r){let n,s,t,o,a,f;return document.title=n="Query - "+r[0].name,t=new w({props:{field:r[0],type:D.QUERY}}),a=new F({props:{page:r[1]}}),{c(){s=p(),d(t.$$.fragment),o=p(),d(a.$$.fragment)},l(e){P('[data-svelte="svelte-qp7d7j"]',document.head).forEach(u),s=c(e),_(t.$$.fragment,e),o=c(e),_(a.$$.fragment,e)},m(e,i){g(e,s,i),y(t,e,i),g(e,o,i),y(a,e,i),f=!0},p(e,[i]){(!f||i&1)&&n!==(n="Query - "+e[0].name)&&(document.title=n);const m={};i&1&&(m.field=e[0]),t.$set(m);const l={};i&2&&(l.page=e[1]),a.$set(l)},i(e){f||($(t.$$.fragment,e),$(a.$$.fragment,e),f=!0)},o(e){Q(t.$$.fragment,e),Q(a.$$.fragment,e),f=!1},d(e){e&&u(s),q(t,e),e&&u(o),q(a,e)}}}function Y({params:r,url:n}){const s=x(r.query),t=E(n.pathname);return!s||!t?{status:404,error:`Query ${r.query} not found.`}:{props:{field:s,page:t}}}function S(r,n,s){let{field:t}=n,{page:o}=n;return r.$$set=a=>{"field"in a&&s(0,t=a.field),"page"in a&&s(1,o=a.page)},[t,o]}class k extends v{constructor(n){super(),h(this,n,S,N,B,{field:0,page:1})}}export{k as default,Y as load};
