From be67d92bccb0f085a35b4e797c1f5dab97d3e249 Mon Sep 17 00:00:00 2001 From: LinasKo Date: Wed, 3 Jul 2024 10:50:33 +0300 Subject: [PATCH] Updates --- .../{entry.CFEbw8AJ.js => entry.NeV8fPgx.js} | 2 +- _app/immutable/chunks/paths.CHuV8m5c.js | 1 + _app/immutable/chunks/paths.DlIhxnJZ.js | 1 - .../{app.D0JKdPNc.js => app.A3OzJbZe.js} | 4 +- _app/immutable/entry/start.9tDZHVgU.js | 1 - _app/immutable/entry/start.DbUNUlZH.js | 1 + .../nodes/{1.DiDDlYrt.js => 1.CcAuloRU.js} | 2 +- _app/immutable/nodes/2.C0d6rBmj.js | 265 ------------------ _app/immutable/nodes/2.Cskh4VA0.js | 265 ++++++++++++++++++ _app/version.json | 2 +- index.html | 16 +- 11 files changed, 280 insertions(+), 280 deletions(-) rename _app/immutable/chunks/{entry.CFEbw8AJ.js => entry.NeV8fPgx.js} (99%) create mode 100644 _app/immutable/chunks/paths.CHuV8m5c.js delete mode 100644 _app/immutable/chunks/paths.DlIhxnJZ.js rename _app/immutable/entry/{app.D0JKdPNc.js => app.A3OzJbZe.js} (95%) delete mode 100644 _app/immutable/entry/start.9tDZHVgU.js create mode 100644 _app/immutable/entry/start.DbUNUlZH.js rename _app/immutable/nodes/{1.DiDDlYrt.js => 1.CcAuloRU.js} (93%) delete mode 100644 _app/immutable/nodes/2.C0d6rBmj.js create mode 100644 _app/immutable/nodes/2.Cskh4VA0.js diff --git a/_app/immutable/chunks/entry.CFEbw8AJ.js b/_app/immutable/chunks/entry.NeV8fPgx.js similarity index 99% rename from _app/immutable/chunks/entry.CFEbw8AJ.js rename to _app/immutable/chunks/entry.NeV8fPgx.js index 7f94fae..1fbcfad 100644 --- a/_app/immutable/chunks/entry.CFEbw8AJ.js +++ b/_app/immutable/chunks/entry.NeV8fPgx.js @@ -1,3 +1,3 @@ -import{v as ot}from"./scheduler.CR9fYKd2.js";import{w as pe}from"./index.Br0CiCGi.js";import{a as st,b as P}from"./paths.DlIhxnJZ.js";new URL("sveltekit-internal://");function it(e,n){return e==="/"||n==="ignore"?e:n==="never"?e.endsWith("/")?e.slice(0,-1):e:n==="always"&&!e.endsWith("/")?e+"/":e}function ct(e){return e.split("%25").map(decodeURI).join("%25")}function lt(e){for(const n in e)e[n]=decodeURIComponent(e[n]);return e}function ce({href:e}){return e.split("#")[0]}const ft=["href","pathname","search","toString","toJSON"];function ut(e,n,t){const a=new URL(e);Object.defineProperty(a,"searchParams",{value:new Proxy(a.searchParams,{get(r,o){if(o==="get"||o==="getAll"||o==="has")return s=>(t(s),r[o](s));n();const i=Reflect.get(r,o);return typeof i=="function"?i.bind(r):i}}),enumerable:!0,configurable:!0});for(const r of ft)Object.defineProperty(a,r,{get(){return n(),e[r]},enumerable:!0,configurable:!0});return a}const dt="/__data.json",ht=".html__data.json";function pt(e){return e.endsWith(".html")?e.replace(/\.html$/,ht):e.replace(/\/$/,"")+dt}function gt(...e){let n=5381;for(const t of e)if(typeof t=="string"){let a=t.length;for(;a;)n=n*33^t.charCodeAt(--a)}else if(ArrayBuffer.isView(t)){const a=new Uint8Array(t.buffer,t.byteOffset,t.byteLength);let r=a.length;for(;r;)n=n*33^a[--r]}else throw new TypeError("value must be a string or TypedArray");return(n>>>0).toString(36)}function mt(e){const n=atob(e),t=new Uint8Array(n.length);for(let a=0;a((e instanceof Request?e.method:(n==null?void 0:n.method)||"GET")!=="GET"&&q.delete(ge(e)),je(e,n));const q=new Map;function _t(e,n){const t=ge(e,n),a=document.querySelector(t);if(a!=null&&a.textContent){let{body:r,...o}=JSON.parse(a.textContent);const i=a.getAttribute("data-ttl");return i&&q.set(t,{body:r,init:o,ttl:1e3*Number(i)}),a.getAttribute("data-b64")!==null&&(r=mt(r)),Promise.resolve(new Response(r,o))}return window.fetch(e,n)}function yt(e,n,t){if(q.size>0){const a=ge(e,t),r=q.get(a);if(r){if(performance.now(){const r=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(a);if(r)return n.push({name:r[1],matcher:r[2],optional:!1,rest:!0,chained:!0}),"(?:/(.*))?";const o=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(a);if(o)return n.push({name:o[1],matcher:o[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!a)return;const i=a.split(/\[(.+?)\](?!\])/);return"/"+i.map((c,f)=>{if(f%2){if(c.startsWith("x+"))return le(String.fromCharCode(parseInt(c.slice(2),16)));if(c.startsWith("u+"))return le(String.fromCharCode(...c.slice(2).split("-").map(l=>parseInt(l,16))));const u=wt.exec(c),[,h,g,d,_]=u;return n.push({name:d,matcher:_,optional:!!h,rest:!!g,chained:g?f===1&&i[0]==="":!1}),g?"(.*?)":h?"([^/]*)?":"([^/]+?)"}return le(c)}).join("")}).join("")}/?$`),params:n}}function bt(e){return!/^\([^)]+\)$/.test(e)}function Et(e){return e.slice(1).split("/").filter(bt)}function kt(e,n,t){const a={},r=e.slice(1),o=r.filter(s=>s!==void 0);let i=0;for(let s=0;su).join("/"),i=0),f===void 0){c.rest&&(a[c.name]="");continue}if(!c.matcher||t[c.matcher](f)){a[c.name]=f;const u=n[s+1],h=r[s+1];u&&!u.rest&&u.optional&&h&&c.chained&&(i=0),!u&&!h&&Object.keys(a).length===o.length&&(i=0);continue}if(c.optional&&c.chained){i++;continue}return}if(!i)return a}function le(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function St({nodes:e,server_loads:n,dictionary:t,matchers:a}){const r=new Set(n);return Object.entries(t).map(([s,[c,f,u]])=>{const{pattern:h,params:g}=vt(s),d={id:s,exec:_=>{const l=h.exec(_);if(l)return kt(l,g,a)},errors:[1,...u||[]].map(_=>e[_]),layouts:[0,...f||[]].map(i),leaf:o(c)};return d.errors.length=d.layouts.length=Math.max(d.errors.length,d.layouts.length),d});function o(s){const c=s<0;return c&&(s=~s),[c,e[s]]}function i(s){return s===void 0?s:[r.has(s),e[s]]}}function De(e,n=JSON.parse){try{return n(sessionStorage[e])}catch{}}function Ie(e,n,t=JSON.stringify){const a=t(n);try{sessionStorage[e]=a}catch{}}const At="1719992983213",$e="sveltekit:snapshot",Ce="sveltekit:scroll",Ve="sveltekit:states",Rt="sveltekit:pageurl",D="sveltekit:history",M="sveltekit:navigation",J={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},K=location.origin;function Fe(e){if(e instanceof URL)return e;let n=document.baseURI;if(!n){const t=document.getElementsByTagName("base");n=t.length?t[0].href:document.URL}return new URL(e,n)}function me(){return{x:pageXOffset,y:pageYOffset}}function O(e,n){return e.getAttribute(`data-sveltekit-${n}`)}const Le={...J,"":J.hover};function qe(e){let n=e.assignedSlot??e.parentNode;return(n==null?void 0:n.nodeType)===11&&(n=n.host),n}function Ge(e,n){for(;e&&e!==n;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=qe(e)}}function ue(e,n){let t;try{t=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI)}catch{}const a=e instanceof SVGAElement?e.target.baseVal:e.target,r=!t||!!a||ne(t,n)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),o=(t==null?void 0:t.origin)===K&&e.hasAttribute("download");return{url:t,external:r,target:a,download:o}}function W(e){let n=null,t=null,a=null,r=null,o=null,i=null,s=e;for(;s&&s!==document.documentElement;)a===null&&(a=O(s,"preload-code")),r===null&&(r=O(s,"preload-data")),n===null&&(n=O(s,"keepfocus")),t===null&&(t=O(s,"noscroll")),o===null&&(o=O(s,"reload")),i===null&&(i=O(s,"replacestate")),s=qe(s);function c(f){switch(f){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:Le[a??"off"],preload_data:Le[r??"off"],keepfocus:c(n),noscroll:c(t),reload:c(o),replace_state:c(i)}}function Pe(e){const n=pe(e);let t=!0;function a(){t=!0,n.update(i=>i)}function r(i){t=!1,n.set(i)}function o(i){let s;return n.subscribe(c=>{(s===void 0||t&&c!==s)&&i(s=c)})}return{notify:a,set:r,subscribe:o}}function It(){const{set:e,subscribe:n}=pe(!1);let t;async function a(){clearTimeout(t);try{const r=await fetch(`${st}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!r.ok)return!1;const i=(await r.json()).version!==At;return i&&(e(!0),clearTimeout(t)),i}catch{return!1}}return{subscribe:n,check:a}}function ne(e,n){return e.origin!==K||!e.pathname.startsWith(n)}const Lt=-1,Pt=-2,Tt=-3,Ut=-4,xt=-5,Nt=-6;function Ot(e,n){if(typeof e=="number")return r(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const t=e,a=Array(t.length);function r(o,i=!1){if(o===Lt)return;if(o===Tt)return NaN;if(o===Ut)return 1/0;if(o===xt)return-1/0;if(o===Nt)return-0;if(i)throw new Error("Invalid input");if(o in a)return a[o];const s=t[o];if(!s||typeof s!="object")a[o]=s;else if(Array.isArray(s))if(typeof s[0]=="string"){const c=s[0],f=n==null?void 0:n[c];if(f)return a[o]=f(r(s[1]));switch(c){case"Date":a[o]=new Date(s[1]);break;case"Set":const u=new Set;a[o]=u;for(let d=1;dn!=null)}class ae{constructor(n,t){this.status=n,typeof t=="string"?this.body={message:t}:t?this.body=t:this.body={message:`Error: ${n}`}}toString(){return JSON.stringify(this.body)}}class He{constructor(n,t){this.status=n,this.location=t}}class _e extends Error{constructor(n,t,a){super(a),this.status=n,this.text=t}}const $t="x-sveltekit-invalidated",Ct="x-sveltekit-trailing-slash";function z(e){return e instanceof ae||e instanceof _e?e.status:500}function Vt(e){return e instanceof _e?e.text:"Internal Error"}const N=De(Ce)??{},H=De($e)??{},U={url:Pe({}),page:Pe({}),navigating:pe(null),updated:It()};function ye(e){N[e]=me()}function Ft(e,n){let t=e+1;for(;N[t];)delete N[t],t+=1;for(t=n+1;H[t];)delete H[t],t+=1}function C(e){return location.href=e.href,new Promise(()=>{})}function Te(){}let re,de,X,T,he,V;const Be=[],Z=[];let R=null;const Ke=[],qt=[];let j=[],y={branch:[],error:null,url:null},we=!1,Q=!1,Ue=!0,B=!1,F=!1,Ye=!1,ve=!1,be,S,L,I,ee;const G=new Set;async function en(e,n,t){var r,o;document.URL!==location.href&&(location.href=location.href),V=e,re=St(e),T=document.documentElement,he=n,de=e.nodes[0],X=e.nodes[1],de(),X(),S=(r=history.state)==null?void 0:r[D],L=(o=history.state)==null?void 0:o[M],S||(S=L=Date.now(),history.replaceState({...history.state,[D]:S,[M]:L},""));const a=N[S];a&&(history.scrollRestoration="manual",scrollTo(a.x,a.y)),t?await Wt(he,t):Yt(location.href,{replaceState:!0}),Jt()}function Gt(){Be.length=0,ve=!1}function Je(e){Z.some(n=>n==null?void 0:n.snapshot)&&(H[e]=Z.map(n=>{var t;return(t=n==null?void 0:n.snapshot)==null?void 0:t.capture()}))}function We(e){var n;(n=H[e])==null||n.forEach((t,a)=>{var r,o;(o=(r=Z[a])==null?void 0:r.snapshot)==null||o.restore(t)})}function xe(){ye(S),Ie(Ce,N),Je(L),Ie($e,H)}async function ze(e,n,t,a){return Y({type:"goto",url:Fe(e),keepfocus:n.keepFocus,noscroll:n.noScroll,replace_state:n.replaceState,state:n.state,redirect_count:t,nav_token:a,accept:()=>{n.invalidateAll&&(ve=!0)}})}async function Mt(e){if(e.id!==(R==null?void 0:R.id)){const n={};G.add(n),R={id:e.id,token:n,promise:Ze({...e,preload:n}).then(t=>(G.delete(n),t.type==="loaded"&&t.state.error&&(R=null),t))}}return R.promise}async function fe(e){const n=re.find(t=>t.exec(Qe(e)));n&&await Promise.all([...n.layouts,n.leaf].map(t=>t==null?void 0:t[1]()))}function Xe(e,n,t){var o;y=e.state;const a=document.querySelector("style[data-sveltekit]");a&&a.remove(),I=e.props.page,be=new V.root({target:n,props:{...e.props,stores:U,components:Z},hydrate:t}),We(L);const r={from:null,to:{params:y.params,route:{id:((o=y.route)==null?void 0:o.id)??null},url:new URL(location.href)},willUnload:!1,type:"enter",complete:Promise.resolve()};j.forEach(i=>i(r)),Q=!0}function te({url:e,params:n,branch:t,status:a,error:r,route:o,form:i}){let s="never";if(P&&(e.pathname===P||e.pathname===P+"/"))s="always";else for(const d of t)(d==null?void 0:d.slash)!==void 0&&(s=d.slash);e.pathname=it(e.pathname,s),e.search=e.search;const c={type:"loaded",state:{url:e,params:n,branch:t,error:r,route:o},props:{constructors:Dt(t).map(d=>d.node.component),page:I}};i!==void 0&&(c.props.form=i);let f={},u=!I,h=0;for(let d=0;d(s&&(c.route=!0),l[m])}),params:new Proxy(a,{get:(l,m)=>(s&&c.params.add(m),l[m])}),data:(o==null?void 0:o.data)??null,url:ut(t,()=>{s&&(c.url=!0)},l=>{s&&c.search_params.add(l)}),async fetch(l,m){let b;l instanceof Request?(b=l.url,m={body:l.method==="GET"||l.method==="HEAD"?void 0:await l.blob(),cache:l.cache,credentials:l.credentials,headers:l.headers,integrity:l.integrity,keepalive:l.keepalive,method:l.method,mode:l.mode,redirect:l.redirect,referrer:l.referrer,referrerPolicy:l.referrerPolicy,signal:l.signal,...m}):b=l;const A=new URL(b,t);return s&&d(A.href),A.origin===t.origin&&(b=A.href.slice(t.origin.length)),Q?yt(b,A.href,m):_t(b,m)},setHeaders:()=>{},depends:d,parent(){return s&&(c.parent=!0),n()},untrack(l){s=!1;try{return l()}finally{s=!0}}};i=await f.universal.load.call(null,_)??null}return{node:f,loader:e,server:o,universal:(h=f.universal)!=null&&h.load?{type:"data",data:i,uses:c}:null,data:i??(o==null?void 0:o.data)??null,slash:((g=f.universal)==null?void 0:g.trailingSlash)??(o==null?void 0:o.slash)}}function Ne(e,n,t,a,r,o){if(ve)return!0;if(!r)return!1;if(r.parent&&e||r.route&&n||r.url&&t)return!0;for(const i of r.search_params)if(a.has(i))return!0;for(const i of r.params)if(o[i]!==y.params[i])return!0;for(const i of r.dependencies)if(Be.some(s=>s(new URL(i))))return!0;return!1}function ke(e,n){return(e==null?void 0:e.type)==="data"?e:(e==null?void 0:e.type)==="skip"?n??null:null}function Ht(e,n){if(!e)return new Set(n.searchParams.keys());const t=new Set([...e.searchParams.keys(),...n.searchParams.keys()]);for(const a of t){const r=e.searchParams.getAll(a),o=n.searchParams.getAll(a);r.every(i=>o.includes(i))&&o.every(i=>r.includes(i))&&t.delete(a)}return t}function Oe({error:e,url:n,route:t,params:a}){return{type:"loaded",state:{error:e,url:n,route:t,params:a,branch:[]},props:{page:I,constructors:[]}}}async function Ze({id:e,invalidating:n,url:t,params:a,route:r,preload:o}){if((R==null?void 0:R.id)===e)return G.delete(R.token),R.promise;const{errors:i,layouts:s,leaf:c}=r,f=[...s,c];i.forEach(p=>p==null?void 0:p().catch(()=>{})),f.forEach(p=>p==null?void 0:p[1]().catch(()=>{}));let u=null;const h=y.url?e!==y.url.pathname+y.url.search:!1,g=y.route?r.id!==y.route.id:!1,d=Ht(y.url,t);let _=!1;const l=f.map((p,v)=>{var x;const E=y.branch[v],k=!!(p!=null&&p[0])&&((E==null?void 0:E.loader)!==p[1]||Ne(_,g,h,d,(x=E.server)==null?void 0:x.uses,a));return k&&(_=!0),k});if(l.some(Boolean)){try{u=await nt(t,l)}catch(p){const v=await $(p,{url:t,params:a,route:{id:e}});return G.has(o)?Oe({error:v,url:t,params:a,route:r}):oe({status:z(p),error:v,url:t,route:r})}if(u.type==="redirect")return u}const m=u==null?void 0:u.nodes;let b=!1;const A=f.map(async(p,v)=>{var se;if(!p)return;const E=y.branch[v],k=m==null?void 0:m[v];if((!k||k.type==="skip")&&p[1]===(E==null?void 0:E.loader)&&!Ne(b,g,h,d,(se=E.universal)==null?void 0:se.uses,a))return E;if(b=!0,(k==null?void 0:k.type)==="error")throw k;return Ee({loader:p[1],url:t,params:a,route:r,parent:async()=>{var Re;const Ae={};for(let ie=0;ie{});const w=[];for(let p=0;pPromise.resolve({}),server_data_node:ke(o)}),c={node:await X(),loader:X,universal:null,server:null,data:null};return te({url:t,params:r,branch:[s,c],status:e,error:n,route:null})}function Se(e,n){if(!e||ne(e,P))return;let t;try{t=V.hooks.reroute({url:new URL(e)})??e.pathname}catch{return}const a=Qe(t);for(const r of re){const o=r.exec(a);if(o)return{id:e.pathname+e.search,invalidating:n,route:r,params:lt(o),url:e}}}function Qe(e){return ct(e.slice(P.length)||"/")}function et({url:e,type:n,intent:t,delta:a}){let r=!1;const o=rt(y,t,e,n);a!==void 0&&(o.navigation.delta=a);const i={...o.navigation,cancel:()=>{r=!0,o.reject(new Error("navigation cancelled"))}};return B||Ke.forEach(s=>s(i)),r?null:o}async function Y({type:e,url:n,popped:t,keepfocus:a,noscroll:r,replace_state:o,state:i={},redirect_count:s=0,nav_token:c={},accept:f=Te,block:u=Te}){const h=Se(n,!1),g=et({url:n,type:e,delta:t==null?void 0:t.delta,intent:h});if(!g){u();return}const d=S,_=L;f(),B=!0,Q&&U.navigating.set(g.navigation),ee=c;let l=h&&await Ze(h);if(!l){if(ne(n,P))return await C(n);l=await tt(n,{id:null},await $(new _e(404,"Not Found",`Not found: ${n.pathname}`),{url:n,params:{},route:{id:null}}),404)}if(n=(h==null?void 0:h.url)||n,ee!==c)return g.reject(new Error("navigation aborted")),!1;if(l.type==="redirect")if(s>=20)l=await oe({status:500,error:await $(new Error("Redirect loop"),{url:n,params:{},route:{id:null}}),url:n,route:{id:null}});else return ze(new URL(l.location,n).href,{},s+1,c),!1;else l.props.page.status>=400&&await U.updated.check()&&await C(n);if(Gt(),ye(d),Je(_),l.props.page.url.pathname!==n.pathname&&(n.pathname=l.props.page.url.pathname),i=t?t.state:i,!t){const w=o?0:1,p={[D]:S+=w,[M]:L+=w,[Ve]:i};(o?history.replaceState:history.pushState).call(history,p,"",n),o||Ft(S,L)}if(R=null,l.props.page.state=i,Q){y=l.state,l.props.page&&(l.props.page.url=n);const w=(await Promise.all(qt.map(p=>p(g.navigation)))).filter(p=>typeof p=="function");if(w.length>0){let p=function(){j=j.filter(v=>!w.includes(v))};w.push(p),j.push(...w)}be.$set(l.props),Ye=!0}else Xe(l,he,!1);const{activeElement:m}=document;await ot();const b=t?t.scroll:r?me():null;if(Ue){const w=n.hash&&document.getElementById(decodeURIComponent(n.hash.slice(1)));b?scrollTo(b.x,b.y):w?w.scrollIntoView():scrollTo(0,0)}const A=document.activeElement!==m&&document.activeElement!==document.body;!a&&!A&&zt(),Ue=!0,l.props.page&&(I=l.props.page),B=!1,e==="popstate"&&We(L),g.fulfil(void 0),j.forEach(w=>w(g.navigation)),U.navigating.set(null)}async function tt(e,n,t,a){return e.origin===K&&e.pathname===location.pathname&&!we?await oe({status:a,error:t,url:e,route:n}):await C(e)}function Kt(){let e;T.addEventListener("mousemove",o=>{const i=o.target;clearTimeout(e),e=setTimeout(()=>{a(i,2)},20)});function n(o){a(o.composedPath()[0],1)}T.addEventListener("mousedown",n),T.addEventListener("touchstart",n,{passive:!0});const t=new IntersectionObserver(o=>{for(const i of o)i.isIntersecting&&(fe(i.target.href),t.unobserve(i.target))},{threshold:0});function a(o,i){const s=Ge(o,T);if(!s)return;const{url:c,external:f,download:u}=ue(s,P);if(f||u)return;const h=W(s);if(!h.reload)if(i<=h.preload_data){const g=Se(c,!1);g&&Mt(g)}else i<=h.preload_code&&fe(c.pathname)}function r(){t.disconnect();for(const o of T.querySelectorAll("a")){const{url:i,external:s,download:c}=ue(o,P);if(s||c)continue;const f=W(o);f.reload||(f.preload_code===J.viewport&&t.observe(o),f.preload_code===J.eager&&fe(i.pathname))}}j.push(r),r()}function $(e,n){if(e instanceof ae)return e.body;const t=z(e),a=Vt(e);return V.hooks.handleError({error:e,event:n,status:t,message:a})??{message:a}}function Yt(e,n={}){return e=Fe(e),e.origin!==K?Promise.reject(new Error("goto: invalid URL")):ze(e,n,0)}function Jt(){var n;history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let a=!1;if(xe(),!B){const r=rt(y,void 0,null,"leave"),o={...r.navigation,cancel:()=>{a=!0,r.reject(new Error("navigation cancelled"))}};Ke.forEach(i=>i(o))}a?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&xe()}),(n=navigator.connection)!=null&&n.saveData||Kt(),T.addEventListener("click",async t=>{var g;if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const a=Ge(t.composedPath()[0],T);if(!a)return;const{url:r,external:o,target:i,download:s}=ue(a,P);if(!r)return;if(i==="_parent"||i==="_top"){if(window.parent!==window)return}else if(i&&i!=="_self")return;const c=W(a);if(!(a instanceof SVGAElement)&&r.protocol!==location.protocol&&!(r.protocol==="https:"||r.protocol==="http:")||s)return;if(o||c.reload){et({url:r,type:"link"})?B=!0:t.preventDefault();return}const[u,h]=r.href.split("#");if(h!==void 0&&u===ce(location)){const[,d]=y.url.href.split("#");if(d===h){t.preventDefault(),h===""||h==="top"&&a.ownerDocument.getElementById("top")===null?window.scrollTo({top:0}):(g=a.ownerDocument.getElementById(h))==null||g.scrollIntoView();return}if(F=!0,ye(S),e(r),!c.replace_state)return;F=!1}t.preventDefault(),await new Promise(d=>{requestAnimationFrame(()=>{setTimeout(d,0)}),setTimeout(d,100)}),Y({type:"link",url:r,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??r.href===location.href})}),T.addEventListener("submit",t=>{if(t.defaultPrevented)return;const a=HTMLFormElement.prototype.cloneNode.call(t.target),r=t.submitter;if(((r==null?void 0:r.formMethod)||a.method)!=="get")return;const i=new URL((r==null?void 0:r.hasAttribute("formaction"))&&(r==null?void 0:r.formAction)||a.action);if(ne(i,P))return;const s=t.target,c=W(s);if(c.reload)return;t.preventDefault(),t.stopPropagation();const f=new FormData(s),u=r==null?void 0:r.getAttribute("name");u&&f.append(u,(r==null?void 0:r.getAttribute("value"))??""),i.search=new URLSearchParams(f).toString(),Y({type:"form",url:i,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??i.href===location.href})}),addEventListener("popstate",async t=>{var a;if((a=t.state)!=null&&a[D]){const r=t.state[D];if(ee={},r===S)return;const o=N[r],i=t.state[Ve]??{},s=new URL(t.state[Rt]??location.href),c=t.state[M],f=ce(location)===ce(y.url);if(c===L&&(Ye||f)){e(s),N[S]=me(),o&&scrollTo(o.x,o.y),i!==I.state&&(I={...I,state:i},be.$set({page:I})),S=r;return}const h=r-S;await Y({type:"popstate",url:s,popped:{state:i,scroll:o,delta:h},accept:()=>{S=r,L=c},block:()=>{history.go(-h)},nav_token:ee})}else if(!F){const r=new URL(location.href);e(r)}}),addEventListener("hashchange",()=>{F&&(F=!1,history.replaceState({...history.state,[D]:++S,[M]:L},"",location.href))});for(const t of document.querySelectorAll("link"))t.rel==="icon"&&(t.href=t.href);addEventListener("pageshow",t=>{t.persisted&&U.navigating.set(null)});function e(t){y.url=t,U.page.set({...I,url:t}),U.page.notify()}}async function Wt(e,{status:n=200,error:t,node_ids:a,params:r,route:o,data:i,form:s}){we=!0;const c=new URL(location.href);({params:r={},route:o={id:null}}=Se(c,!1)||{});let f;try{const u=a.map(async(d,_)=>{const l=i[_];return l!=null&&l.uses&&(l.uses=at(l.uses)),Ee({loader:V.nodes[d],url:c,params:r,route:o,parent:async()=>{const m={};for(let b=0;b<_;b+=1)Object.assign(m,(await u[b]).data);return m},server_data_node:ke(l)})}),h=await Promise.all(u),g=re.find(({id:d})=>d===o.id);if(g){const d=g.layouts;for(let _=0;_o?"1":"0").join(""));const a=await je(t.href);if(!a.ok){let o;throw(r=a.headers.get("content-type"))!=null&&r.includes("application/json")?o=await a.json():a.status===404?o="Not Found":a.status===500&&(o="Internal Error"),new ae(a.status,o)}return new Promise(async o=>{var h;const i=new Map,s=a.body.getReader(),c=new TextDecoder;function f(g){return Ot(g,{Promise:d=>new Promise((_,l)=>{i.set(d,{fulfil:_,reject:l})})})}let u="";for(;;){const{done:g,value:d}=await s.read();if(g&&!u)break;for(u+=!d&&u?` +import{v as ot}from"./scheduler.CR9fYKd2.js";import{w as pe}from"./index.Br0CiCGi.js";import{a as st,b as P}from"./paths.CHuV8m5c.js";new URL("sveltekit-internal://");function it(e,n){return e==="/"||n==="ignore"?e:n==="never"?e.endsWith("/")?e.slice(0,-1):e:n==="always"&&!e.endsWith("/")?e+"/":e}function ct(e){return e.split("%25").map(decodeURI).join("%25")}function lt(e){for(const n in e)e[n]=decodeURIComponent(e[n]);return e}function ce({href:e}){return e.split("#")[0]}const ft=["href","pathname","search","toString","toJSON"];function ut(e,n,t){const a=new URL(e);Object.defineProperty(a,"searchParams",{value:new Proxy(a.searchParams,{get(r,o){if(o==="get"||o==="getAll"||o==="has")return s=>(t(s),r[o](s));n();const i=Reflect.get(r,o);return typeof i=="function"?i.bind(r):i}}),enumerable:!0,configurable:!0});for(const r of ft)Object.defineProperty(a,r,{get(){return n(),e[r]},enumerable:!0,configurable:!0});return a}const dt="/__data.json",ht=".html__data.json";function pt(e){return e.endsWith(".html")?e.replace(/\.html$/,ht):e.replace(/\/$/,"")+dt}function gt(...e){let n=5381;for(const t of e)if(typeof t=="string"){let a=t.length;for(;a;)n=n*33^t.charCodeAt(--a)}else if(ArrayBuffer.isView(t)){const a=new Uint8Array(t.buffer,t.byteOffset,t.byteLength);let r=a.length;for(;r;)n=n*33^a[--r]}else throw new TypeError("value must be a string or TypedArray");return(n>>>0).toString(36)}function mt(e){const n=atob(e),t=new Uint8Array(n.length);for(let a=0;a((e instanceof Request?e.method:(n==null?void 0:n.method)||"GET")!=="GET"&&q.delete(ge(e)),je(e,n));const q=new Map;function _t(e,n){const t=ge(e,n),a=document.querySelector(t);if(a!=null&&a.textContent){let{body:r,...o}=JSON.parse(a.textContent);const i=a.getAttribute("data-ttl");return i&&q.set(t,{body:r,init:o,ttl:1e3*Number(i)}),a.getAttribute("data-b64")!==null&&(r=mt(r)),Promise.resolve(new Response(r,o))}return window.fetch(e,n)}function yt(e,n,t){if(q.size>0){const a=ge(e,t),r=q.get(a);if(r){if(performance.now(){const r=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(a);if(r)return n.push({name:r[1],matcher:r[2],optional:!1,rest:!0,chained:!0}),"(?:/(.*))?";const o=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(a);if(o)return n.push({name:o[1],matcher:o[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!a)return;const i=a.split(/\[(.+?)\](?!\])/);return"/"+i.map((c,f)=>{if(f%2){if(c.startsWith("x+"))return le(String.fromCharCode(parseInt(c.slice(2),16)));if(c.startsWith("u+"))return le(String.fromCharCode(...c.slice(2).split("-").map(l=>parseInt(l,16))));const u=wt.exec(c),[,h,g,d,_]=u;return n.push({name:d,matcher:_,optional:!!h,rest:!!g,chained:g?f===1&&i[0]==="":!1}),g?"(.*?)":h?"([^/]*)?":"([^/]+?)"}return le(c)}).join("")}).join("")}/?$`),params:n}}function bt(e){return!/^\([^)]+\)$/.test(e)}function Et(e){return e.slice(1).split("/").filter(bt)}function kt(e,n,t){const a={},r=e.slice(1),o=r.filter(s=>s!==void 0);let i=0;for(let s=0;su).join("/"),i=0),f===void 0){c.rest&&(a[c.name]="");continue}if(!c.matcher||t[c.matcher](f)){a[c.name]=f;const u=n[s+1],h=r[s+1];u&&!u.rest&&u.optional&&h&&c.chained&&(i=0),!u&&!h&&Object.keys(a).length===o.length&&(i=0);continue}if(c.optional&&c.chained){i++;continue}return}if(!i)return a}function le(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function St({nodes:e,server_loads:n,dictionary:t,matchers:a}){const r=new Set(n);return Object.entries(t).map(([s,[c,f,u]])=>{const{pattern:h,params:g}=vt(s),d={id:s,exec:_=>{const l=h.exec(_);if(l)return kt(l,g,a)},errors:[1,...u||[]].map(_=>e[_]),layouts:[0,...f||[]].map(i),leaf:o(c)};return d.errors.length=d.layouts.length=Math.max(d.errors.length,d.layouts.length),d});function o(s){const c=s<0;return c&&(s=~s),[c,e[s]]}function i(s){return s===void 0?s:[r.has(s),e[s]]}}function De(e,n=JSON.parse){try{return n(sessionStorage[e])}catch{}}function Ie(e,n,t=JSON.stringify){const a=t(n);try{sessionStorage[e]=a}catch{}}const At="1719993028341",$e="sveltekit:snapshot",Ce="sveltekit:scroll",Ve="sveltekit:states",Rt="sveltekit:pageurl",D="sveltekit:history",M="sveltekit:navigation",J={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},K=location.origin;function Fe(e){if(e instanceof URL)return e;let n=document.baseURI;if(!n){const t=document.getElementsByTagName("base");n=t.length?t[0].href:document.URL}return new URL(e,n)}function me(){return{x:pageXOffset,y:pageYOffset}}function O(e,n){return e.getAttribute(`data-sveltekit-${n}`)}const Le={...J,"":J.hover};function qe(e){let n=e.assignedSlot??e.parentNode;return(n==null?void 0:n.nodeType)===11&&(n=n.host),n}function Ge(e,n){for(;e&&e!==n;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=qe(e)}}function ue(e,n){let t;try{t=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI)}catch{}const a=e instanceof SVGAElement?e.target.baseVal:e.target,r=!t||!!a||ne(t,n)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),o=(t==null?void 0:t.origin)===K&&e.hasAttribute("download");return{url:t,external:r,target:a,download:o}}function W(e){let n=null,t=null,a=null,r=null,o=null,i=null,s=e;for(;s&&s!==document.documentElement;)a===null&&(a=O(s,"preload-code")),r===null&&(r=O(s,"preload-data")),n===null&&(n=O(s,"keepfocus")),t===null&&(t=O(s,"noscroll")),o===null&&(o=O(s,"reload")),i===null&&(i=O(s,"replacestate")),s=qe(s);function c(f){switch(f){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:Le[a??"off"],preload_data:Le[r??"off"],keepfocus:c(n),noscroll:c(t),reload:c(o),replace_state:c(i)}}function Pe(e){const n=pe(e);let t=!0;function a(){t=!0,n.update(i=>i)}function r(i){t=!1,n.set(i)}function o(i){let s;return n.subscribe(c=>{(s===void 0||t&&c!==s)&&i(s=c)})}return{notify:a,set:r,subscribe:o}}function It(){const{set:e,subscribe:n}=pe(!1);let t;async function a(){clearTimeout(t);try{const r=await fetch(`${st}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!r.ok)return!1;const i=(await r.json()).version!==At;return i&&(e(!0),clearTimeout(t)),i}catch{return!1}}return{subscribe:n,check:a}}function ne(e,n){return e.origin!==K||!e.pathname.startsWith(n)}const Lt=-1,Pt=-2,Tt=-3,Ut=-4,xt=-5,Nt=-6;function Ot(e,n){if(typeof e=="number")return r(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const t=e,a=Array(t.length);function r(o,i=!1){if(o===Lt)return;if(o===Tt)return NaN;if(o===Ut)return 1/0;if(o===xt)return-1/0;if(o===Nt)return-0;if(i)throw new Error("Invalid input");if(o in a)return a[o];const s=t[o];if(!s||typeof s!="object")a[o]=s;else if(Array.isArray(s))if(typeof s[0]=="string"){const c=s[0],f=n==null?void 0:n[c];if(f)return a[o]=f(r(s[1]));switch(c){case"Date":a[o]=new Date(s[1]);break;case"Set":const u=new Set;a[o]=u;for(let d=1;dn!=null)}class ae{constructor(n,t){this.status=n,typeof t=="string"?this.body={message:t}:t?this.body=t:this.body={message:`Error: ${n}`}}toString(){return JSON.stringify(this.body)}}class He{constructor(n,t){this.status=n,this.location=t}}class _e extends Error{constructor(n,t,a){super(a),this.status=n,this.text=t}}const $t="x-sveltekit-invalidated",Ct="x-sveltekit-trailing-slash";function z(e){return e instanceof ae||e instanceof _e?e.status:500}function Vt(e){return e instanceof _e?e.text:"Internal Error"}const N=De(Ce)??{},H=De($e)??{},U={url:Pe({}),page:Pe({}),navigating:pe(null),updated:It()};function ye(e){N[e]=me()}function Ft(e,n){let t=e+1;for(;N[t];)delete N[t],t+=1;for(t=n+1;H[t];)delete H[t],t+=1}function C(e){return location.href=e.href,new Promise(()=>{})}function Te(){}let re,de,X,T,he,V;const Be=[],Z=[];let R=null;const Ke=[],qt=[];let j=[],y={branch:[],error:null,url:null},we=!1,Q=!1,Ue=!0,B=!1,F=!1,Ye=!1,ve=!1,be,S,L,I,ee;const G=new Set;async function en(e,n,t){var r,o;document.URL!==location.href&&(location.href=location.href),V=e,re=St(e),T=document.documentElement,he=n,de=e.nodes[0],X=e.nodes[1],de(),X(),S=(r=history.state)==null?void 0:r[D],L=(o=history.state)==null?void 0:o[M],S||(S=L=Date.now(),history.replaceState({...history.state,[D]:S,[M]:L},""));const a=N[S];a&&(history.scrollRestoration="manual",scrollTo(a.x,a.y)),t?await Wt(he,t):Yt(location.href,{replaceState:!0}),Jt()}function Gt(){Be.length=0,ve=!1}function Je(e){Z.some(n=>n==null?void 0:n.snapshot)&&(H[e]=Z.map(n=>{var t;return(t=n==null?void 0:n.snapshot)==null?void 0:t.capture()}))}function We(e){var n;(n=H[e])==null||n.forEach((t,a)=>{var r,o;(o=(r=Z[a])==null?void 0:r.snapshot)==null||o.restore(t)})}function xe(){ye(S),Ie(Ce,N),Je(L),Ie($e,H)}async function ze(e,n,t,a){return Y({type:"goto",url:Fe(e),keepfocus:n.keepFocus,noscroll:n.noScroll,replace_state:n.replaceState,state:n.state,redirect_count:t,nav_token:a,accept:()=>{n.invalidateAll&&(ve=!0)}})}async function Mt(e){if(e.id!==(R==null?void 0:R.id)){const n={};G.add(n),R={id:e.id,token:n,promise:Ze({...e,preload:n}).then(t=>(G.delete(n),t.type==="loaded"&&t.state.error&&(R=null),t))}}return R.promise}async function fe(e){const n=re.find(t=>t.exec(Qe(e)));n&&await Promise.all([...n.layouts,n.leaf].map(t=>t==null?void 0:t[1]()))}function Xe(e,n,t){var o;y=e.state;const a=document.querySelector("style[data-sveltekit]");a&&a.remove(),I=e.props.page,be=new V.root({target:n,props:{...e.props,stores:U,components:Z},hydrate:t}),We(L);const r={from:null,to:{params:y.params,route:{id:((o=y.route)==null?void 0:o.id)??null},url:new URL(location.href)},willUnload:!1,type:"enter",complete:Promise.resolve()};j.forEach(i=>i(r)),Q=!0}function te({url:e,params:n,branch:t,status:a,error:r,route:o,form:i}){let s="never";if(P&&(e.pathname===P||e.pathname===P+"/"))s="always";else for(const d of t)(d==null?void 0:d.slash)!==void 0&&(s=d.slash);e.pathname=it(e.pathname,s),e.search=e.search;const c={type:"loaded",state:{url:e,params:n,branch:t,error:r,route:o},props:{constructors:Dt(t).map(d=>d.node.component),page:I}};i!==void 0&&(c.props.form=i);let f={},u=!I,h=0;for(let d=0;d(s&&(c.route=!0),l[m])}),params:new Proxy(a,{get:(l,m)=>(s&&c.params.add(m),l[m])}),data:(o==null?void 0:o.data)??null,url:ut(t,()=>{s&&(c.url=!0)},l=>{s&&c.search_params.add(l)}),async fetch(l,m){let b;l instanceof Request?(b=l.url,m={body:l.method==="GET"||l.method==="HEAD"?void 0:await l.blob(),cache:l.cache,credentials:l.credentials,headers:l.headers,integrity:l.integrity,keepalive:l.keepalive,method:l.method,mode:l.mode,redirect:l.redirect,referrer:l.referrer,referrerPolicy:l.referrerPolicy,signal:l.signal,...m}):b=l;const A=new URL(b,t);return s&&d(A.href),A.origin===t.origin&&(b=A.href.slice(t.origin.length)),Q?yt(b,A.href,m):_t(b,m)},setHeaders:()=>{},depends:d,parent(){return s&&(c.parent=!0),n()},untrack(l){s=!1;try{return l()}finally{s=!0}}};i=await f.universal.load.call(null,_)??null}return{node:f,loader:e,server:o,universal:(h=f.universal)!=null&&h.load?{type:"data",data:i,uses:c}:null,data:i??(o==null?void 0:o.data)??null,slash:((g=f.universal)==null?void 0:g.trailingSlash)??(o==null?void 0:o.slash)}}function Ne(e,n,t,a,r,o){if(ve)return!0;if(!r)return!1;if(r.parent&&e||r.route&&n||r.url&&t)return!0;for(const i of r.search_params)if(a.has(i))return!0;for(const i of r.params)if(o[i]!==y.params[i])return!0;for(const i of r.dependencies)if(Be.some(s=>s(new URL(i))))return!0;return!1}function ke(e,n){return(e==null?void 0:e.type)==="data"?e:(e==null?void 0:e.type)==="skip"?n??null:null}function Ht(e,n){if(!e)return new Set(n.searchParams.keys());const t=new Set([...e.searchParams.keys(),...n.searchParams.keys()]);for(const a of t){const r=e.searchParams.getAll(a),o=n.searchParams.getAll(a);r.every(i=>o.includes(i))&&o.every(i=>r.includes(i))&&t.delete(a)}return t}function Oe({error:e,url:n,route:t,params:a}){return{type:"loaded",state:{error:e,url:n,route:t,params:a,branch:[]},props:{page:I,constructors:[]}}}async function Ze({id:e,invalidating:n,url:t,params:a,route:r,preload:o}){if((R==null?void 0:R.id)===e)return G.delete(R.token),R.promise;const{errors:i,layouts:s,leaf:c}=r,f=[...s,c];i.forEach(p=>p==null?void 0:p().catch(()=>{})),f.forEach(p=>p==null?void 0:p[1]().catch(()=>{}));let u=null;const h=y.url?e!==y.url.pathname+y.url.search:!1,g=y.route?r.id!==y.route.id:!1,d=Ht(y.url,t);let _=!1;const l=f.map((p,v)=>{var x;const E=y.branch[v],k=!!(p!=null&&p[0])&&((E==null?void 0:E.loader)!==p[1]||Ne(_,g,h,d,(x=E.server)==null?void 0:x.uses,a));return k&&(_=!0),k});if(l.some(Boolean)){try{u=await nt(t,l)}catch(p){const v=await $(p,{url:t,params:a,route:{id:e}});return G.has(o)?Oe({error:v,url:t,params:a,route:r}):oe({status:z(p),error:v,url:t,route:r})}if(u.type==="redirect")return u}const m=u==null?void 0:u.nodes;let b=!1;const A=f.map(async(p,v)=>{var se;if(!p)return;const E=y.branch[v],k=m==null?void 0:m[v];if((!k||k.type==="skip")&&p[1]===(E==null?void 0:E.loader)&&!Ne(b,g,h,d,(se=E.universal)==null?void 0:se.uses,a))return E;if(b=!0,(k==null?void 0:k.type)==="error")throw k;return Ee({loader:p[1],url:t,params:a,route:r,parent:async()=>{var Re;const Ae={};for(let ie=0;ie{});const w=[];for(let p=0;pPromise.resolve({}),server_data_node:ke(o)}),c={node:await X(),loader:X,universal:null,server:null,data:null};return te({url:t,params:r,branch:[s,c],status:e,error:n,route:null})}function Se(e,n){if(!e||ne(e,P))return;let t;try{t=V.hooks.reroute({url:new URL(e)})??e.pathname}catch{return}const a=Qe(t);for(const r of re){const o=r.exec(a);if(o)return{id:e.pathname+e.search,invalidating:n,route:r,params:lt(o),url:e}}}function Qe(e){return ct(e.slice(P.length)||"/")}function et({url:e,type:n,intent:t,delta:a}){let r=!1;const o=rt(y,t,e,n);a!==void 0&&(o.navigation.delta=a);const i={...o.navigation,cancel:()=>{r=!0,o.reject(new Error("navigation cancelled"))}};return B||Ke.forEach(s=>s(i)),r?null:o}async function Y({type:e,url:n,popped:t,keepfocus:a,noscroll:r,replace_state:o,state:i={},redirect_count:s=0,nav_token:c={},accept:f=Te,block:u=Te}){const h=Se(n,!1),g=et({url:n,type:e,delta:t==null?void 0:t.delta,intent:h});if(!g){u();return}const d=S,_=L;f(),B=!0,Q&&U.navigating.set(g.navigation),ee=c;let l=h&&await Ze(h);if(!l){if(ne(n,P))return await C(n);l=await tt(n,{id:null},await $(new _e(404,"Not Found",`Not found: ${n.pathname}`),{url:n,params:{},route:{id:null}}),404)}if(n=(h==null?void 0:h.url)||n,ee!==c)return g.reject(new Error("navigation aborted")),!1;if(l.type==="redirect")if(s>=20)l=await oe({status:500,error:await $(new Error("Redirect loop"),{url:n,params:{},route:{id:null}}),url:n,route:{id:null}});else return ze(new URL(l.location,n).href,{},s+1,c),!1;else l.props.page.status>=400&&await U.updated.check()&&await C(n);if(Gt(),ye(d),Je(_),l.props.page.url.pathname!==n.pathname&&(n.pathname=l.props.page.url.pathname),i=t?t.state:i,!t){const w=o?0:1,p={[D]:S+=w,[M]:L+=w,[Ve]:i};(o?history.replaceState:history.pushState).call(history,p,"",n),o||Ft(S,L)}if(R=null,l.props.page.state=i,Q){y=l.state,l.props.page&&(l.props.page.url=n);const w=(await Promise.all(qt.map(p=>p(g.navigation)))).filter(p=>typeof p=="function");if(w.length>0){let p=function(){j=j.filter(v=>!w.includes(v))};w.push(p),j.push(...w)}be.$set(l.props),Ye=!0}else Xe(l,he,!1);const{activeElement:m}=document;await ot();const b=t?t.scroll:r?me():null;if(Ue){const w=n.hash&&document.getElementById(decodeURIComponent(n.hash.slice(1)));b?scrollTo(b.x,b.y):w?w.scrollIntoView():scrollTo(0,0)}const A=document.activeElement!==m&&document.activeElement!==document.body;!a&&!A&&zt(),Ue=!0,l.props.page&&(I=l.props.page),B=!1,e==="popstate"&&We(L),g.fulfil(void 0),j.forEach(w=>w(g.navigation)),U.navigating.set(null)}async function tt(e,n,t,a){return e.origin===K&&e.pathname===location.pathname&&!we?await oe({status:a,error:t,url:e,route:n}):await C(e)}function Kt(){let e;T.addEventListener("mousemove",o=>{const i=o.target;clearTimeout(e),e=setTimeout(()=>{a(i,2)},20)});function n(o){a(o.composedPath()[0],1)}T.addEventListener("mousedown",n),T.addEventListener("touchstart",n,{passive:!0});const t=new IntersectionObserver(o=>{for(const i of o)i.isIntersecting&&(fe(i.target.href),t.unobserve(i.target))},{threshold:0});function a(o,i){const s=Ge(o,T);if(!s)return;const{url:c,external:f,download:u}=ue(s,P);if(f||u)return;const h=W(s);if(!h.reload)if(i<=h.preload_data){const g=Se(c,!1);g&&Mt(g)}else i<=h.preload_code&&fe(c.pathname)}function r(){t.disconnect();for(const o of T.querySelectorAll("a")){const{url:i,external:s,download:c}=ue(o,P);if(s||c)continue;const f=W(o);f.reload||(f.preload_code===J.viewport&&t.observe(o),f.preload_code===J.eager&&fe(i.pathname))}}j.push(r),r()}function $(e,n){if(e instanceof ae)return e.body;const t=z(e),a=Vt(e);return V.hooks.handleError({error:e,event:n,status:t,message:a})??{message:a}}function Yt(e,n={}){return e=Fe(e),e.origin!==K?Promise.reject(new Error("goto: invalid URL")):ze(e,n,0)}function Jt(){var n;history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let a=!1;if(xe(),!B){const r=rt(y,void 0,null,"leave"),o={...r.navigation,cancel:()=>{a=!0,r.reject(new Error("navigation cancelled"))}};Ke.forEach(i=>i(o))}a?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&xe()}),(n=navigator.connection)!=null&&n.saveData||Kt(),T.addEventListener("click",async t=>{var g;if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const a=Ge(t.composedPath()[0],T);if(!a)return;const{url:r,external:o,target:i,download:s}=ue(a,P);if(!r)return;if(i==="_parent"||i==="_top"){if(window.parent!==window)return}else if(i&&i!=="_self")return;const c=W(a);if(!(a instanceof SVGAElement)&&r.protocol!==location.protocol&&!(r.protocol==="https:"||r.protocol==="http:")||s)return;if(o||c.reload){et({url:r,type:"link"})?B=!0:t.preventDefault();return}const[u,h]=r.href.split("#");if(h!==void 0&&u===ce(location)){const[,d]=y.url.href.split("#");if(d===h){t.preventDefault(),h===""||h==="top"&&a.ownerDocument.getElementById("top")===null?window.scrollTo({top:0}):(g=a.ownerDocument.getElementById(h))==null||g.scrollIntoView();return}if(F=!0,ye(S),e(r),!c.replace_state)return;F=!1}t.preventDefault(),await new Promise(d=>{requestAnimationFrame(()=>{setTimeout(d,0)}),setTimeout(d,100)}),Y({type:"link",url:r,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??r.href===location.href})}),T.addEventListener("submit",t=>{if(t.defaultPrevented)return;const a=HTMLFormElement.prototype.cloneNode.call(t.target),r=t.submitter;if(((r==null?void 0:r.formMethod)||a.method)!=="get")return;const i=new URL((r==null?void 0:r.hasAttribute("formaction"))&&(r==null?void 0:r.formAction)||a.action);if(ne(i,P))return;const s=t.target,c=W(s);if(c.reload)return;t.preventDefault(),t.stopPropagation();const f=new FormData(s),u=r==null?void 0:r.getAttribute("name");u&&f.append(u,(r==null?void 0:r.getAttribute("value"))??""),i.search=new URLSearchParams(f).toString(),Y({type:"form",url:i,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??i.href===location.href})}),addEventListener("popstate",async t=>{var a;if((a=t.state)!=null&&a[D]){const r=t.state[D];if(ee={},r===S)return;const o=N[r],i=t.state[Ve]??{},s=new URL(t.state[Rt]??location.href),c=t.state[M],f=ce(location)===ce(y.url);if(c===L&&(Ye||f)){e(s),N[S]=me(),o&&scrollTo(o.x,o.y),i!==I.state&&(I={...I,state:i},be.$set({page:I})),S=r;return}const h=r-S;await Y({type:"popstate",url:s,popped:{state:i,scroll:o,delta:h},accept:()=>{S=r,L=c},block:()=>{history.go(-h)},nav_token:ee})}else if(!F){const r=new URL(location.href);e(r)}}),addEventListener("hashchange",()=>{F&&(F=!1,history.replaceState({...history.state,[D]:++S,[M]:L},"",location.href))});for(const t of document.querySelectorAll("link"))t.rel==="icon"&&(t.href=t.href);addEventListener("pageshow",t=>{t.persisted&&U.navigating.set(null)});function e(t){y.url=t,U.page.set({...I,url:t}),U.page.notify()}}async function Wt(e,{status:n=200,error:t,node_ids:a,params:r,route:o,data:i,form:s}){we=!0;const c=new URL(location.href);({params:r={},route:o={id:null}}=Se(c,!1)||{});let f;try{const u=a.map(async(d,_)=>{const l=i[_];return l!=null&&l.uses&&(l.uses=at(l.uses)),Ee({loader:V.nodes[d],url:c,params:r,route:o,parent:async()=>{const m={};for(let b=0;b<_;b+=1)Object.assign(m,(await u[b]).data);return m},server_data_node:ke(l)})}),h=await Promise.all(u),g=re.find(({id:d})=>d===o.id);if(g){const d=g.layouts;for(let _=0;_o?"1":"0").join(""));const a=await je(t.href);if(!a.ok){let o;throw(r=a.headers.get("content-type"))!=null&&r.includes("application/json")?o=await a.json():a.status===404?o="Not Found":a.status===500&&(o="Internal Error"),new ae(a.status,o)}return new Promise(async o=>{var h;const i=new Map,s=a.body.getReader(),c=new TextDecoder;function f(g){return Ot(g,{Promise:d=>new Promise((_,l)=>{i.set(d,{fulfil:_,reject:l})})})}let u="";for(;;){const{done:g,value:d}=await s.read();if(g&&!u)break;for(u+=!d&&u?` `:c.decode(d,{stream:!0});;){const _=u.indexOf(` `);if(_===-1)break;const l=JSON.parse(u.slice(0,_));if(u=u.slice(_+1),l.type==="redirect")return o(l);if(l.type==="data")(h=l.nodes)==null||h.forEach(m=>{(m==null?void 0:m.type)==="data"&&(m.uses=at(m.uses),m.data=f(m.data))}),o(l);else if(l.type==="chunk"){const{id:m,data:b,error:A}=l,w=i.get(m);i.delete(m),A?w.reject(f(A)):w.fulfil(f(b))}}}})}function at(e){return{dependencies:new Set((e==null?void 0:e.dependencies)??[]),params:new Set((e==null?void 0:e.params)??[]),parent:!!(e!=null&&e.parent),route:!!(e!=null&&e.route),url:!!(e!=null&&e.url),search_params:new Set((e==null?void 0:e.search_params)??[])}}function zt(){const e=document.querySelector("[autofocus]");if(e)e.focus();else{const n=document.body,t=n.getAttribute("tabindex");n.tabIndex=-1,n.focus({preventScroll:!0,focusVisible:!1}),t!==null?n.setAttribute("tabindex",t):n.removeAttribute("tabindex");const a=getSelection();if(a&&a.type!=="None"){const r=[];for(let o=0;o{if(a.rangeCount===r.length){for(let o=0;o{r=u,o=h});return i.catch(()=>{}),{navigation:{from:{params:e.params,route:{id:((c=e.route)==null?void 0:c.id)??null},url:e.url},to:t&&{params:(n==null?void 0:n.params)??null,route:{id:((f=n==null?void 0:n.route)==null?void 0:f.id)??null},url:t},willUnload:!n,type:a,complete:i},fulfil:r,reject:o}}export{en as a,U as s}; diff --git a/_app/immutable/chunks/paths.CHuV8m5c.js b/_app/immutable/chunks/paths.CHuV8m5c.js new file mode 100644 index 0000000..5135680 --- /dev/null +++ b/_app/immutable/chunks/paths.CHuV8m5c.js @@ -0,0 +1 @@ +var s;const a=((s=globalThis.__sveltekit_a6updg)==null?void 0:s.base)??"/cheatsheet-supervision";var e;const t=((e=globalThis.__sveltekit_a6updg)==null?void 0:e.assets)??a;export{t as a,a as b}; diff --git a/_app/immutable/chunks/paths.DlIhxnJZ.js b/_app/immutable/chunks/paths.DlIhxnJZ.js deleted file mode 100644 index 80b7194..0000000 --- a/_app/immutable/chunks/paths.DlIhxnJZ.js +++ /dev/null @@ -1 +0,0 @@ -var s;const t=((s=globalThis.__sveltekit_1w1vt97)==null?void 0:s.base)??"/cheatsheet-supervision";var e;const a=((e=globalThis.__sveltekit_1w1vt97)==null?void 0:e.assets)??t;export{a,t as b}; diff --git a/_app/immutable/entry/app.D0JKdPNc.js b/_app/immutable/entry/app.A3OzJbZe.js similarity index 95% rename from _app/immutable/entry/app.D0JKdPNc.js rename to _app/immutable/entry/app.A3OzJbZe.js index a9bd67c..26e686a 100644 --- a/_app/immutable/entry/app.D0JKdPNc.js +++ b/_app/immutable/entry/app.A3OzJbZe.js @@ -1,2 +1,2 @@ -const __vite__fileDeps=["../nodes/0.4bkws2iQ.js","../chunks/scheduler.CR9fYKd2.js","../chunks/index.CM4teq7i.js","../chunks/SvelteToast.svelte_svelte_type_style_lang.khwlsV__.js","../chunks/index.Br0CiCGi.js","../assets/SvelteToast.DbLvtVfH.css","../assets/0.C6EfzVYB.css","../nodes/1.DiDDlYrt.js","../chunks/entry.CFEbw8AJ.js","../chunks/paths.DlIhxnJZ.js","../nodes/2.C0d6rBmj.js","../assets/2.BznyKz_D.css"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); -import{s as V,a as B,l as h,g as U,i as k,f as p,m as j,o as W,e as z,c as F,b as G,p as A,q as d,t as H,d as J,j as K,r as q,u as E,v as Q}from"../chunks/scheduler.CR9fYKd2.js";import{S as X,i as Y,t as g,c as L,a as w,g as S,b as y,d as D,m as R,e as P}from"../chunks/index.CM4teq7i.js";const Z="modulepreload",M=function(a,e){return new URL(a,e).href},I={},C=function(e,n,i){let s=Promise.resolve();if(n&&n.length>0){const u=document.getElementsByTagName("link"),t=document.querySelector("meta[property=csp-nonce]"),r=(t==null?void 0:t.nonce)||(t==null?void 0:t.getAttribute("nonce"));s=Promise.all(n.map(o=>{if(o=M(o,i),o in I)return;I[o]=!0;const f=o.endsWith(".css"),l=f?'[rel="stylesheet"]':"";if(!!i)for(let b=u.length-1;b>=0;b--){const v=u[b];if(v.href===o&&(!f||v.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${o}"]${l}`))return;const _=document.createElement("link");if(_.rel=f?"stylesheet":Z,f||(_.as="script",_.crossOrigin=""),_.href=o,r&&_.setAttribute("nonce",r),document.head.appendChild(_),f)return new Promise((b,v)=>{_.addEventListener("load",b),_.addEventListener("error",()=>v(new Error(`Unable to preload CSS for ${o}`)))})}))}return s.then(()=>e()).catch(u=>{const t=new Event("vite:preloadError",{cancelable:!0});if(t.payload=u,window.dispatchEvent(t),!t.defaultPrevented)throw u})},re={};function $(a){let e,n,i;var s=a[1][0];function u(t,r){return{props:{data:t[3],form:t[2]}}}return s&&(e=E(s,u(a)),a[12](e)),{c(){e&&y(e.$$.fragment),n=h()},l(t){e&&D(e.$$.fragment,t),n=h()},m(t,r){e&&R(e,t,r),k(t,n,r),i=!0},p(t,r){if(r&2&&s!==(s=t[1][0])){if(e){S();const o=e;g(o.$$.fragment,1,0,()=>{P(o,1)}),L()}s?(e=E(s,u(t)),t[12](e),y(e.$$.fragment),w(e.$$.fragment,1),R(e,n.parentNode,n)):e=null}else if(s){const o={};r&8&&(o.data=t[3]),r&4&&(o.form=t[2]),e.$set(o)}},i(t){i||(e&&w(e.$$.fragment,t),i=!0)},o(t){e&&g(e.$$.fragment,t),i=!1},d(t){t&&p(n),a[12](null),e&&P(e,t)}}}function x(a){let e,n,i;var s=a[1][0];function u(t,r){return{props:{data:t[3],$$slots:{default:[ee]},$$scope:{ctx:t}}}}return s&&(e=E(s,u(a)),a[11](e)),{c(){e&&y(e.$$.fragment),n=h()},l(t){e&&D(e.$$.fragment,t),n=h()},m(t,r){e&&R(e,t,r),k(t,n,r),i=!0},p(t,r){if(r&2&&s!==(s=t[1][0])){if(e){S();const o=e;g(o.$$.fragment,1,0,()=>{P(o,1)}),L()}s?(e=E(s,u(t)),t[11](e),y(e.$$.fragment),w(e.$$.fragment,1),R(e,n.parentNode,n)):e=null}else if(s){const o={};r&8&&(o.data=t[3]),r&8215&&(o.$$scope={dirty:r,ctx:t}),e.$set(o)}},i(t){i||(e&&w(e.$$.fragment,t),i=!0)},o(t){e&&g(e.$$.fragment,t),i=!1},d(t){t&&p(n),a[11](null),e&&P(e,t)}}}function ee(a){let e,n,i;var s=a[1][1];function u(t,r){return{props:{data:t[4],form:t[2]}}}return s&&(e=E(s,u(a)),a[10](e)),{c(){e&&y(e.$$.fragment),n=h()},l(t){e&&D(e.$$.fragment,t),n=h()},m(t,r){e&&R(e,t,r),k(t,n,r),i=!0},p(t,r){if(r&2&&s!==(s=t[1][1])){if(e){S();const o=e;g(o.$$.fragment,1,0,()=>{P(o,1)}),L()}s?(e=E(s,u(t)),t[10](e),y(e.$$.fragment),w(e.$$.fragment,1),R(e,n.parentNode,n)):e=null}else if(s){const o={};r&16&&(o.data=t[4]),r&4&&(o.form=t[2]),e.$set(o)}},i(t){i||(e&&w(e.$$.fragment,t),i=!0)},o(t){e&&g(e.$$.fragment,t),i=!1},d(t){t&&p(n),a[10](null),e&&P(e,t)}}}function N(a){let e,n=a[6]&&O(a);return{c(){e=z("div"),n&&n.c(),this.h()},l(i){e=F(i,"DIV",{id:!0,"aria-live":!0,"aria-atomic":!0,style:!0});var s=G(e);n&&n.l(s),s.forEach(p),this.h()},h(){A(e,"id","svelte-announcer"),A(e,"aria-live","assertive"),A(e,"aria-atomic","true"),d(e,"position","absolute"),d(e,"left","0"),d(e,"top","0"),d(e,"clip","rect(0 0 0 0)"),d(e,"clip-path","inset(50%)"),d(e,"overflow","hidden"),d(e,"white-space","nowrap"),d(e,"width","1px"),d(e,"height","1px")},m(i,s){k(i,e,s),n&&n.m(e,null)},p(i,s){i[6]?n?n.p(i,s):(n=O(i),n.c(),n.m(e,null)):n&&(n.d(1),n=null)},d(i){i&&p(e),n&&n.d()}}}function O(a){let e;return{c(){e=H(a[7])},l(n){e=J(n,a[7])},m(n,i){k(n,e,i)},p(n,i){i&128&&K(e,n[7])},d(n){n&&p(e)}}}function te(a){let e,n,i,s,u;const t=[x,$],r=[];function o(l,m){return l[1][1]?0:1}e=o(a),n=r[e]=t[e](a);let f=a[5]&&N(a);return{c(){n.c(),i=B(),f&&f.c(),s=h()},l(l){n.l(l),i=U(l),f&&f.l(l),s=h()},m(l,m){r[e].m(l,m),k(l,i,m),f&&f.m(l,m),k(l,s,m),u=!0},p(l,[m]){let _=e;e=o(l),e===_?r[e].p(l,m):(S(),g(r[_],1,1,()=>{r[_]=null}),L(),n=r[e],n?n.p(l,m):(n=r[e]=t[e](l),n.c()),w(n,1),n.m(i.parentNode,i)),l[5]?f?f.p(l,m):(f=N(l),f.c(),f.m(s.parentNode,s)):f&&(f.d(1),f=null)},i(l){u||(w(n),u=!0)},o(l){g(n),u=!1},d(l){l&&(p(i),p(s)),r[e].d(l),f&&f.d(l)}}}function ne(a,e,n){let{stores:i}=e,{page:s}=e,{constructors:u}=e,{components:t=[]}=e,{form:r}=e,{data_0:o=null}=e,{data_1:f=null}=e;j(i.page.notify);let l=!1,m=!1,_=null;W(()=>{const c=i.page.subscribe(()=>{l&&(n(6,m=!0),Q().then(()=>{n(7,_=document.title||"untitled page")}))});return n(5,l=!0),c});function b(c){q[c?"unshift":"push"](()=>{t[1]=c,n(0,t)})}function v(c){q[c?"unshift":"push"](()=>{t[0]=c,n(0,t)})}function T(c){q[c?"unshift":"push"](()=>{t[0]=c,n(0,t)})}return a.$$set=c=>{"stores"in c&&n(8,i=c.stores),"page"in c&&n(9,s=c.page),"constructors"in c&&n(1,u=c.constructors),"components"in c&&n(0,t=c.components),"form"in c&&n(2,r=c.form),"data_0"in c&&n(3,o=c.data_0),"data_1"in c&&n(4,f=c.data_1)},a.$$.update=()=>{a.$$.dirty&768&&i.page.set(s)},[t,u,r,o,f,l,m,_,i,s,b,v,T]}class oe extends X{constructor(e){super(),Y(this,e,ne,te,V,{stores:8,page:9,constructors:1,components:0,form:2,data_0:3,data_1:4})}}const ae=[()=>C(()=>import("../nodes/0.4bkws2iQ.js"),__vite__mapDeps([0,1,2,3,4,5,6]),import.meta.url),()=>C(()=>import("../nodes/1.DiDDlYrt.js"),__vite__mapDeps([7,1,2,8,4,9]),import.meta.url),()=>C(()=>import("../nodes/2.C0d6rBmj.js"),__vite__mapDeps([10,1,2,9,3,4,5,11]),import.meta.url)],le=[],fe={"/":[2]},ce={handleError:({error:a})=>{console.error(a)},reroute:()=>{}};export{fe as dictionary,ce as hooks,re as matchers,ae as nodes,oe as root,le as server_loads}; +const __vite__fileDeps=["../nodes/0.4bkws2iQ.js","../chunks/scheduler.CR9fYKd2.js","../chunks/index.CM4teq7i.js","../chunks/SvelteToast.svelte_svelte_type_style_lang.khwlsV__.js","../chunks/index.Br0CiCGi.js","../assets/SvelteToast.DbLvtVfH.css","../assets/0.C6EfzVYB.css","../nodes/1.CcAuloRU.js","../chunks/entry.NeV8fPgx.js","../chunks/paths.CHuV8m5c.js","../nodes/2.Cskh4VA0.js","../assets/2.BznyKz_D.css"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); +import{s as V,a as B,l as h,g as U,i as k,f as p,m as j,o as W,e as z,c as F,b as G,p as A,q as d,t as H,d as J,j as K,r as q,u as E,v as Q}from"../chunks/scheduler.CR9fYKd2.js";import{S as X,i as Y,t as g,c as L,a as w,g as S,b as y,d as D,m as R,e as P}from"../chunks/index.CM4teq7i.js";const Z="modulepreload",M=function(a,e){return new URL(a,e).href},I={},C=function(e,n,i){let s=Promise.resolve();if(n&&n.length>0){const u=document.getElementsByTagName("link"),t=document.querySelector("meta[property=csp-nonce]"),r=(t==null?void 0:t.nonce)||(t==null?void 0:t.getAttribute("nonce"));s=Promise.all(n.map(o=>{if(o=M(o,i),o in I)return;I[o]=!0;const f=o.endsWith(".css"),l=f?'[rel="stylesheet"]':"";if(!!i)for(let b=u.length-1;b>=0;b--){const v=u[b];if(v.href===o&&(!f||v.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${o}"]${l}`))return;const _=document.createElement("link");if(_.rel=f?"stylesheet":Z,f||(_.as="script",_.crossOrigin=""),_.href=o,r&&_.setAttribute("nonce",r),document.head.appendChild(_),f)return new Promise((b,v)=>{_.addEventListener("load",b),_.addEventListener("error",()=>v(new Error(`Unable to preload CSS for ${o}`)))})}))}return s.then(()=>e()).catch(u=>{const t=new Event("vite:preloadError",{cancelable:!0});if(t.payload=u,window.dispatchEvent(t),!t.defaultPrevented)throw u})},re={};function $(a){let e,n,i;var s=a[1][0];function u(t,r){return{props:{data:t[3],form:t[2]}}}return s&&(e=E(s,u(a)),a[12](e)),{c(){e&&y(e.$$.fragment),n=h()},l(t){e&&D(e.$$.fragment,t),n=h()},m(t,r){e&&R(e,t,r),k(t,n,r),i=!0},p(t,r){if(r&2&&s!==(s=t[1][0])){if(e){S();const o=e;g(o.$$.fragment,1,0,()=>{P(o,1)}),L()}s?(e=E(s,u(t)),t[12](e),y(e.$$.fragment),w(e.$$.fragment,1),R(e,n.parentNode,n)):e=null}else if(s){const o={};r&8&&(o.data=t[3]),r&4&&(o.form=t[2]),e.$set(o)}},i(t){i||(e&&w(e.$$.fragment,t),i=!0)},o(t){e&&g(e.$$.fragment,t),i=!1},d(t){t&&p(n),a[12](null),e&&P(e,t)}}}function x(a){let e,n,i;var s=a[1][0];function u(t,r){return{props:{data:t[3],$$slots:{default:[ee]},$$scope:{ctx:t}}}}return s&&(e=E(s,u(a)),a[11](e)),{c(){e&&y(e.$$.fragment),n=h()},l(t){e&&D(e.$$.fragment,t),n=h()},m(t,r){e&&R(e,t,r),k(t,n,r),i=!0},p(t,r){if(r&2&&s!==(s=t[1][0])){if(e){S();const o=e;g(o.$$.fragment,1,0,()=>{P(o,1)}),L()}s?(e=E(s,u(t)),t[11](e),y(e.$$.fragment),w(e.$$.fragment,1),R(e,n.parentNode,n)):e=null}else if(s){const o={};r&8&&(o.data=t[3]),r&8215&&(o.$$scope={dirty:r,ctx:t}),e.$set(o)}},i(t){i||(e&&w(e.$$.fragment,t),i=!0)},o(t){e&&g(e.$$.fragment,t),i=!1},d(t){t&&p(n),a[11](null),e&&P(e,t)}}}function ee(a){let e,n,i;var s=a[1][1];function u(t,r){return{props:{data:t[4],form:t[2]}}}return s&&(e=E(s,u(a)),a[10](e)),{c(){e&&y(e.$$.fragment),n=h()},l(t){e&&D(e.$$.fragment,t),n=h()},m(t,r){e&&R(e,t,r),k(t,n,r),i=!0},p(t,r){if(r&2&&s!==(s=t[1][1])){if(e){S();const o=e;g(o.$$.fragment,1,0,()=>{P(o,1)}),L()}s?(e=E(s,u(t)),t[10](e),y(e.$$.fragment),w(e.$$.fragment,1),R(e,n.parentNode,n)):e=null}else if(s){const o={};r&16&&(o.data=t[4]),r&4&&(o.form=t[2]),e.$set(o)}},i(t){i||(e&&w(e.$$.fragment,t),i=!0)},o(t){e&&g(e.$$.fragment,t),i=!1},d(t){t&&p(n),a[10](null),e&&P(e,t)}}}function N(a){let e,n=a[6]&&O(a);return{c(){e=z("div"),n&&n.c(),this.h()},l(i){e=F(i,"DIV",{id:!0,"aria-live":!0,"aria-atomic":!0,style:!0});var s=G(e);n&&n.l(s),s.forEach(p),this.h()},h(){A(e,"id","svelte-announcer"),A(e,"aria-live","assertive"),A(e,"aria-atomic","true"),d(e,"position","absolute"),d(e,"left","0"),d(e,"top","0"),d(e,"clip","rect(0 0 0 0)"),d(e,"clip-path","inset(50%)"),d(e,"overflow","hidden"),d(e,"white-space","nowrap"),d(e,"width","1px"),d(e,"height","1px")},m(i,s){k(i,e,s),n&&n.m(e,null)},p(i,s){i[6]?n?n.p(i,s):(n=O(i),n.c(),n.m(e,null)):n&&(n.d(1),n=null)},d(i){i&&p(e),n&&n.d()}}}function O(a){let e;return{c(){e=H(a[7])},l(n){e=J(n,a[7])},m(n,i){k(n,e,i)},p(n,i){i&128&&K(e,n[7])},d(n){n&&p(e)}}}function te(a){let e,n,i,s,u;const t=[x,$],r=[];function o(l,m){return l[1][1]?0:1}e=o(a),n=r[e]=t[e](a);let f=a[5]&&N(a);return{c(){n.c(),i=B(),f&&f.c(),s=h()},l(l){n.l(l),i=U(l),f&&f.l(l),s=h()},m(l,m){r[e].m(l,m),k(l,i,m),f&&f.m(l,m),k(l,s,m),u=!0},p(l,[m]){let _=e;e=o(l),e===_?r[e].p(l,m):(S(),g(r[_],1,1,()=>{r[_]=null}),L(),n=r[e],n?n.p(l,m):(n=r[e]=t[e](l),n.c()),w(n,1),n.m(i.parentNode,i)),l[5]?f?f.p(l,m):(f=N(l),f.c(),f.m(s.parentNode,s)):f&&(f.d(1),f=null)},i(l){u||(w(n),u=!0)},o(l){g(n),u=!1},d(l){l&&(p(i),p(s)),r[e].d(l),f&&f.d(l)}}}function ne(a,e,n){let{stores:i}=e,{page:s}=e,{constructors:u}=e,{components:t=[]}=e,{form:r}=e,{data_0:o=null}=e,{data_1:f=null}=e;j(i.page.notify);let l=!1,m=!1,_=null;W(()=>{const c=i.page.subscribe(()=>{l&&(n(6,m=!0),Q().then(()=>{n(7,_=document.title||"untitled page")}))});return n(5,l=!0),c});function b(c){q[c?"unshift":"push"](()=>{t[1]=c,n(0,t)})}function v(c){q[c?"unshift":"push"](()=>{t[0]=c,n(0,t)})}function T(c){q[c?"unshift":"push"](()=>{t[0]=c,n(0,t)})}return a.$$set=c=>{"stores"in c&&n(8,i=c.stores),"page"in c&&n(9,s=c.page),"constructors"in c&&n(1,u=c.constructors),"components"in c&&n(0,t=c.components),"form"in c&&n(2,r=c.form),"data_0"in c&&n(3,o=c.data_0),"data_1"in c&&n(4,f=c.data_1)},a.$$.update=()=>{a.$$.dirty&768&&i.page.set(s)},[t,u,r,o,f,l,m,_,i,s,b,v,T]}class oe extends X{constructor(e){super(),Y(this,e,ne,te,V,{stores:8,page:9,constructors:1,components:0,form:2,data_0:3,data_1:4})}}const ae=[()=>C(()=>import("../nodes/0.4bkws2iQ.js"),__vite__mapDeps([0,1,2,3,4,5,6]),import.meta.url),()=>C(()=>import("../nodes/1.CcAuloRU.js"),__vite__mapDeps([7,1,2,8,4,9]),import.meta.url),()=>C(()=>import("../nodes/2.Cskh4VA0.js"),__vite__mapDeps([10,1,2,9,3,4,5,11]),import.meta.url)],le=[],fe={"/":[2]},ce={handleError:({error:a})=>{console.error(a)},reroute:()=>{}};export{fe as dictionary,ce as hooks,re as matchers,ae as nodes,oe as root,le as server_loads}; diff --git a/_app/immutable/entry/start.9tDZHVgU.js b/_app/immutable/entry/start.9tDZHVgU.js deleted file mode 100644 index c2b648b..0000000 --- a/_app/immutable/entry/start.9tDZHVgU.js +++ /dev/null @@ -1 +0,0 @@ -import{a as t}from"../chunks/entry.CFEbw8AJ.js";export{t as start}; diff --git a/_app/immutable/entry/start.DbUNUlZH.js b/_app/immutable/entry/start.DbUNUlZH.js new file mode 100644 index 0000000..43a1ee4 --- /dev/null +++ b/_app/immutable/entry/start.DbUNUlZH.js @@ -0,0 +1 @@ +import{a as t}from"../chunks/entry.NeV8fPgx.js";export{t as start}; diff --git a/_app/immutable/nodes/1.DiDDlYrt.js b/_app/immutable/nodes/1.CcAuloRU.js similarity index 93% rename from _app/immutable/nodes/1.DiDDlYrt.js rename to _app/immutable/nodes/1.CcAuloRU.js index 0398305..aff6b61 100644 --- a/_app/immutable/nodes/1.DiDDlYrt.js +++ b/_app/immutable/nodes/1.CcAuloRU.js @@ -1 +1 @@ -import{s as S,e as _,t as f,a as x,c as d,b as g,d as h,f as u,g as j,i as m,h as v,j as $,n as E,k}from"../chunks/scheduler.CR9fYKd2.js";import{S as q,i as y}from"../chunks/index.CM4teq7i.js";import{s as C}from"../chunks/entry.CFEbw8AJ.js";const H=()=>{const s=C;return{page:{subscribe:s.page.subscribe},navigating:{subscribe:s.navigating.subscribe},updated:s.updated}},P={subscribe(s){return H().page.subscribe(s)}};function w(s){var b;let t,r=s[0].status+"",o,n,i,c=((b=s[0].error)==null?void 0:b.message)+"",l;return{c(){t=_("h1"),o=f(r),n=x(),i=_("p"),l=f(c)},l(e){t=d(e,"H1",{});var a=g(t);o=h(a,r),a.forEach(u),n=j(e),i=d(e,"P",{});var p=g(i);l=h(p,c),p.forEach(u)},m(e,a){m(e,t,a),v(t,o),m(e,n,a),m(e,i,a),v(i,l)},p(e,[a]){var p;a&1&&r!==(r=e[0].status+"")&&$(o,r),a&1&&c!==(c=((p=e[0].error)==null?void 0:p.message)+"")&&$(l,c)},i:E,o:E,d(e){e&&(u(t),u(n),u(i))}}}function z(s,t,r){let o;return k(s,P,n=>r(0,o=n)),[o]}let F=class extends q{constructor(t){super(),y(this,t,z,w,S,{})}};export{F as component}; +import{s as S,e as _,t as f,a as x,c as d,b as g,d as h,f as u,g as j,i as m,h as v,j as $,n as E,k}from"../chunks/scheduler.CR9fYKd2.js";import{S as q,i as y}from"../chunks/index.CM4teq7i.js";import{s as C}from"../chunks/entry.NeV8fPgx.js";const H=()=>{const s=C;return{page:{subscribe:s.page.subscribe},navigating:{subscribe:s.navigating.subscribe},updated:s.updated}},P={subscribe(s){return H().page.subscribe(s)}};function w(s){var b;let t,r=s[0].status+"",o,n,i,c=((b=s[0].error)==null?void 0:b.message)+"",l;return{c(){t=_("h1"),o=f(r),n=x(),i=_("p"),l=f(c)},l(e){t=d(e,"H1",{});var a=g(t);o=h(a,r),a.forEach(u),n=j(e),i=d(e,"P",{});var p=g(i);l=h(p,c),p.forEach(u)},m(e,a){m(e,t,a),v(t,o),m(e,n,a),m(e,i,a),v(i,l)},p(e,[a]){var p;a&1&&r!==(r=e[0].status+"")&&$(o,r),a&1&&c!==(c=((p=e[0].error)==null?void 0:p.message)+"")&&$(l,c)},i:E,o:E,d(e){e&&(u(t),u(n),u(i))}}}function z(s,t,r){let o;return k(s,P,n=>r(0,o=n)),[o]}let F=class extends q{constructor(t){super(),y(this,t,z,w,S,{})}};export{F as component}; diff --git a/_app/immutable/nodes/2.C0d6rBmj.js b/_app/immutable/nodes/2.C0d6rBmj.js deleted file mode 100644 index df3ff2f..0000000 --- a/_app/immutable/nodes/2.C0d6rBmj.js +++ /dev/null @@ -1,265 +0,0 @@ -import{s as fe,W as me,e as I,t as Be,a as y,c as T,b as H,d as Ce,f as p,g as S,p as L,V as ht,i as R,h as A,j as Pe,X as $e,Y as _e,Z as he,_ as oe,P as be,Q as we,$ as et,n as z,a0 as Ne,a1 as bt,T as Gt,l as tt,U as Kt,a2 as Wt,m as Yt,R as Xt,a3 as qt}from"../chunks/scheduler.CR9fYKd2.js";import{S as ue,i as ge,a as $,t as _,b as h,d as b,m as v,e as E}from"../chunks/index.CM4teq7i.js";import{b as vt}from"../chunks/paths.DlIhxnJZ.js";import{g as Et,a as Zt,t as Jt}from"../chunks/SvelteToast.svelte_svelte_type_style_lang.khwlsV__.js";const Qt=n=>({}),nt=n=>({}),en=n=>({}),st=n=>({});function tn(n){let e,t,s,i,a,r,o,l,c,u;const f=n[2].col1,g=me(f,n,n[1],st),d=n[2].col2,w=me(d,n,n[1],nt);return{c(){e=I("div"),t=I("div"),s=I("h1"),i=Be(n[0]),a=y(),r=I("div"),o=I("div"),g&&g.c(),l=y(),c=I("div"),w&&w.c(),this.h()},l(M){e=T(M,"DIV",{class:!0});var V=H(e);t=T(V,"DIV",{class:!0});var Y=H(t);s=T(Y,"H1",{});var J=H(s);i=Ce(J,n[0]),J.forEach(p),Y.forEach(p),a=S(V),r=T(V,"DIV",{class:!0});var C=H(r);o=T(C,"DIV",{class:!0});var j=H(o);g&&g.l(j),j.forEach(p),l=S(C),c=T(C,"DIV",{class:!0});var W=H(c);w&&w.l(W),W.forEach(p),C.forEach(p),V.forEach(p),this.h()},h(){L(t,"class","bg-[#8622FF] text-white p-2 text-2xl font-inter font-bold"),L(o,"class","shrink-0 xl:w-1/2 overflow-hidden"),L(c,"class","border-slate-200 border-l shrink-0 xl:w-1/2 overflow-hidden"),L(r,"class","flex-grow flex flex-col xl:flex-row justify-evenly"),L(e,"class",ht("w-[562px] xl:w-[1124px] pb-2 flex flex-col bg-white page-root overflow-hidden")+" svelte-khlbev")},m(M,V){R(M,e,V),A(e,t),A(t,s),A(s,i),A(e,a),A(e,r),A(r,o),g&&g.m(o,null),A(r,l),A(r,c),w&&w.m(c,null),u=!0},p(M,[V]){(!u||V&1)&&Pe(i,M[0]),g&&g.p&&(!u||V&2)&&$e(g,f,M,M[1],u?he(f,M[1],V,en):_e(M[1]),st),w&&w.p&&(!u||V&2)&&$e(w,d,M,M[1],u?he(d,M[1],V,Qt):_e(M[1]),nt)},i(M){u||($(g,M),$(w,M),u=!0)},o(M){_(g,M),_(w,M),u=!1},d(M){M&&p(e),g&&g.d(M),w&&w.d(M)}}}function nn(n,e,t){let{$$slots:s={},$$scope:i}=e,{header:a}=e;return n.$$set=r=>{"header"in r&&t(0,a=r.header),"$$scope"in r&&t(1,i=r.$$scope)},[a,i,s]}class ke extends ue{constructor(e){super(),ge(this,e,nn,tn,fe,{header:0})}}const sn=n=>({}),rt=n=>({}),rn=n=>({}),ot=n=>({});function on(n){let e,t,s=`banner
Author: - Linas Kondrackis -   - Contributors: - Bhavay Malhota -    supervision v0.21.0 -   - July 2, 2024
`,i,a,r,o,l,c;const u=n[1].col1,f=me(u,n,n[0],ot),g=n[1].col2,d=me(g,n,n[0],rt);return{c(){e=I("div"),t=I("div"),t.innerHTML=s,i=y(),a=I("div"),r=I("div"),f&&f.c(),o=y(),l=I("div"),d&&d.c(),this.h()},l(w){e=T(w,"DIV",{class:!0});var M=H(e);t=T(M,"DIV",{class:!0,"data-svelte-h":!0}),oe(t)!=="svelte-1t84lpn"&&(t.innerHTML=s),i=S(M),a=T(M,"DIV",{class:!0});var V=H(a);r=T(V,"DIV",{class:!0});var Y=H(r);f&&f.l(Y),Y.forEach(p),o=S(V),l=T(V,"DIV",{class:!0});var J=H(l);d&&d.l(J),J.forEach(p),V.forEach(p),M.forEach(p),this.h()},h(){L(t,"class","p-1 flex justify-center flex-col items-center mb-2"),L(r,"class","shrink-0 xl:w-1/2 overflow-hidden"),L(l,"class","border-slate-200 border-l shrink-0 xl:w-1/2 overflow-hidden"),L(a,"class","flex-grow flex flex-col xl:flex-row justify-evenly border-"),L(e,"class",ht("w-[562px] xl:w-[1124px] pb-2 flex flex-col bg-white page-root overflow-hidden")+" svelte-khlbev")},m(w,M){R(w,e,M),A(e,t),A(e,i),A(e,a),A(a,r),f&&f.m(r,null),A(a,o),A(a,l),d&&d.m(l,null),c=!0},p(w,[M]){f&&f.p&&(!c||M&1)&&$e(f,u,w,w[0],c?he(u,w[0],M,rn):_e(w[0]),ot),d&&d.p&&(!c||M&1)&&$e(d,g,w,w[0],c?he(g,w[0],M,sn):_e(w[0]),rt)},i(w){c||($(f,w),$(d,w),c=!0)},o(w){_(f,w),_(d,w),c=!1},d(w){w&&p(e),f&&f.d(w),d&&d.d(w)}}}function an(n,e,t){let{$$slots:s={},$$scope:i}=e;return n.$$set=a=>{"$$scope"in a&&t(0,i=a.$$scope)},[i,s]}class ln extends ue{constructor(e){super(),ge(this,e,an,on,fe,{})}}function cn(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function wt(n){return n instanceof Map?n.clear=n.delete=n.set=function(){throw new Error("map is read-only")}:n instanceof Set&&(n.add=n.clear=n.delete=function(){throw new Error("set is read-only")}),Object.freeze(n),Object.getOwnPropertyNames(n).forEach(e=>{const t=n[e],s=typeof t;(s==="object"||s==="function")&&!Object.isFrozen(t)&&wt(t)}),n}class it{constructor(e){e.data===void 0&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function kt(n){return n.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function ae(n,...e){const t=Object.create(null);for(const s in n)t[s]=n[s];return e.forEach(function(s){for(const i in s)t[i]=s[i]}),t}const fn="",at=n=>!!n.scope,un=(n,{prefix:e})=>{if(n.startsWith("language:"))return n.replace("language:","language-");if(n.includes(".")){const t=n.split(".");return[`${e}${t.shift()}`,...t.map((s,i)=>`${s}${"_".repeat(i+1)}`)].join(" ")}return`${e}${n}`};class gn{constructor(e,t){this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=kt(e)}openNode(e){if(!at(e))return;const t=un(e.scope,{prefix:this.classPrefix});this.span(t)}closeNode(e){at(e)&&(this.buffer+=fn)}value(){return this.buffer}span(e){this.buffer+=``}}const lt=(n={})=>{const e={children:[]};return Object.assign(e,n),e};class ze{constructor(){this.rootNode=lt(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){const t=lt({scope:e});this.add(t),this.stack.push(t)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,t){return typeof t=="string"?e.addText(t):t.children&&(e.openNode(t),t.children.forEach(s=>this._walk(e,s)),e.closeNode(t)),e}static _collapse(e){typeof e!="string"&&e.children&&(e.children.every(t=>typeof t=="string")?e.children=[e.children.join("")]:e.children.forEach(t=>{ze._collapse(t)}))}}class dn extends ze{constructor(e){super(),this.options=e}addText(e){e!==""&&this.add(e)}startScope(e){this.openNode(e)}endScope(){this.closeNode()}__addSublanguage(e,t){const s=e.root;t&&(s.scope=`language:${t}`),this.add(s)}toHTML(){return new gn(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function ye(n){return n?typeof n=="string"?n:n.source:null}function yt(n){return de("(?=",n,")")}function pn(n){return de("(?:",n,")*")}function mn(n){return de("(?:",n,")?")}function de(...n){return n.map(t=>ye(t)).join("")}function $n(n){const e=n[n.length-1];return typeof e=="object"&&e.constructor===Object?(n.splice(n.length-1,1),e):{}}function Ge(...n){return"("+($n(n).capture?"":"?:")+n.map(s=>ye(s)).join("|")+")"}function St(n){return new RegExp(n.toString()+"|").exec("").length-1}function _n(n,e){const t=n&&n.exec(e);return t&&t.index===0}const hn=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function Ke(n,{joinWith:e}){let t=0;return n.map(s=>{t+=1;const i=t;let a=ye(s),r="";for(;a.length>0;){const o=hn.exec(a);if(!o){r+=a;break}r+=a.substring(0,o.index),a=a.substring(o.index+o[0].length),o[0][0]==="\\"&&o[1]?r+="\\"+String(Number(o[1])+i):(r+=o[0],o[0]==="("&&t++)}return r}).map(s=>`(${s})`).join(e)}const bn=/\b\B/,xt="[a-zA-Z]\\w*",We="[a-zA-Z_]\\w*",At="\\b\\d+(\\.\\d+)?",Mt="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",Ot="\\b(0b[01]+)",vn="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",En=(n={})=>{const e=/^#![ ]*\//;return n.binary&&(n.begin=de(e,/.*\b/,n.binary,/\b.*/)),ae({scope:"meta",begin:e,end:/$/,relevance:0,"on:begin":(t,s)=>{t.index!==0&&s.ignoreMatch()}},n)},Se={begin:"\\\\[\\s\\S]",relevance:0},wn={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[Se]},kn={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[Se]},yn={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},He=function(n,e,t={}){const s=ae({scope:"comment",begin:n,end:e,contains:[]},t);s.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const i=Ge("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return s.contains.push({begin:de(/[ ]+/,"(",i,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),s},Sn=He("//","$"),xn=He("/\\*","\\*/"),An=He("#","$"),Mn={scope:"number",begin:At,relevance:0},On={scope:"number",begin:Mt,relevance:0},Rn={scope:"number",begin:Ot,relevance:0},Dn={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[Se,{begin:/\[/,end:/\]/,relevance:0,contains:[Se]}]},In={scope:"title",begin:xt,relevance:0},Tn={scope:"title",begin:We,relevance:0},Nn={begin:"\\.\\s*"+We,relevance:0},Ln=function(n){return Object.assign(n,{"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}})};var Te=Object.freeze({__proto__:null,APOS_STRING_MODE:wn,BACKSLASH_ESCAPE:Se,BINARY_NUMBER_MODE:Rn,BINARY_NUMBER_RE:Ot,COMMENT:He,C_BLOCK_COMMENT_MODE:xn,C_LINE_COMMENT_MODE:Sn,C_NUMBER_MODE:On,C_NUMBER_RE:Mt,END_SAME_AS_BEGIN:Ln,HASH_COMMENT_MODE:An,IDENT_RE:xt,MATCH_NOTHING_RE:bn,METHOD_GUARD:Nn,NUMBER_MODE:Mn,NUMBER_RE:At,PHRASAL_WORDS_MODE:yn,QUOTE_STRING_MODE:kn,REGEXP_MODE:Dn,RE_STARTERS_RE:vn,SHEBANG:En,TITLE_MODE:In,UNDERSCORE_IDENT_RE:We,UNDERSCORE_TITLE_MODE:Tn});function Bn(n,e){n.input[n.index-1]==="."&&e.ignoreMatch()}function Cn(n,e){n.className!==void 0&&(n.scope=n.className,delete n.className)}function Pn(n,e){e&&n.beginKeywords&&(n.begin="\\b("+n.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",n.__beforeBegin=Bn,n.keywords=n.keywords||n.beginKeywords,delete n.beginKeywords,n.relevance===void 0&&(n.relevance=0))}function Hn(n,e){Array.isArray(n.illegal)&&(n.illegal=Ge(...n.illegal))}function jn(n,e){if(n.match){if(n.begin||n.end)throw new Error("begin & end are not supported with match");n.begin=n.match,delete n.match}}function Un(n,e){n.relevance===void 0&&(n.relevance=1)}const Vn=(n,e)=>{if(!n.beforeMatch)return;if(n.starts)throw new Error("beforeMatch cannot be used with starts");const t=Object.assign({},n);Object.keys(n).forEach(s=>{delete n[s]}),n.keywords=t.keywords,n.begin=de(t.beforeMatch,yt(t.begin)),n.starts={relevance:0,contains:[Object.assign(t,{endsParent:!0})]},n.relevance=0,delete t.beforeMatch},Fn=["of","and","for","in","not","or","if","then","parent","list","value"],zn="keyword";function Rt(n,e,t=zn){const s=Object.create(null);return typeof n=="string"?i(t,n.split(" ")):Array.isArray(n)?i(t,n):Object.keys(n).forEach(function(a){Object.assign(s,Rt(n[a],e,a))}),s;function i(a,r){e&&(r=r.map(o=>o.toLowerCase())),r.forEach(function(o){const l=o.split("|");s[l[0]]=[a,Gn(l[0],l[1])]})}}function Gn(n,e){return e?Number(e):Kn(n)?0:1}function Kn(n){return Fn.includes(n.toLowerCase())}const ct={},ce=n=>{console.error(n)},ft=(n,...e)=>{console.log(`WARN: ${n}`,...e)},pe=(n,e)=>{ct[`${n}/${e}`]||(console.log(`Deprecated as of ${n}. ${e}`),ct[`${n}/${e}`]=!0)},Le=new Error;function Dt(n,e,{key:t}){let s=0;const i=n[t],a={},r={};for(let o=1;o<=e.length;o++)r[o+s]=i[o],a[o+s]=!0,s+=St(e[o-1]);n[t]=r,n[t]._emit=a,n[t]._multi=!0}function Wn(n){if(Array.isArray(n.begin)){if(n.skip||n.excludeBegin||n.returnBegin)throw ce("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),Le;if(typeof n.beginScope!="object"||n.beginScope===null)throw ce("beginScope must be object"),Le;Dt(n,n.begin,{key:"beginScope"}),n.begin=Ke(n.begin,{joinWith:""})}}function Yn(n){if(Array.isArray(n.end)){if(n.skip||n.excludeEnd||n.returnEnd)throw ce("skip, excludeEnd, returnEnd not compatible with endScope: {}"),Le;if(typeof n.endScope!="object"||n.endScope===null)throw ce("endScope must be object"),Le;Dt(n,n.end,{key:"endScope"}),n.end=Ke(n.end,{joinWith:""})}}function Xn(n){n.scope&&typeof n.scope=="object"&&n.scope!==null&&(n.beginScope=n.scope,delete n.scope)}function qn(n){Xn(n),typeof n.beginScope=="string"&&(n.beginScope={_wrap:n.beginScope}),typeof n.endScope=="string"&&(n.endScope={_wrap:n.endScope}),Wn(n),Yn(n)}function Zn(n){function e(r,o){return new RegExp(ye(r),"m"+(n.case_insensitive?"i":"")+(n.unicodeRegex?"u":"")+(o?"g":""))}class t{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(o,l){l.position=this.position++,this.matchIndexes[this.matchAt]=l,this.regexes.push([l,o]),this.matchAt+=St(o)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const o=this.regexes.map(l=>l[1]);this.matcherRe=e(Ke(o,{joinWith:"|"}),!0),this.lastIndex=0}exec(o){this.matcherRe.lastIndex=this.lastIndex;const l=this.matcherRe.exec(o);if(!l)return null;const c=l.findIndex((f,g)=>g>0&&f!==void 0),u=this.matchIndexes[c];return l.splice(0,c),Object.assign(l,u)}}class s{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(o){if(this.multiRegexes[o])return this.multiRegexes[o];const l=new t;return this.rules.slice(o).forEach(([c,u])=>l.addRule(c,u)),l.compile(),this.multiRegexes[o]=l,l}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(o,l){this.rules.push([o,l]),l.type==="begin"&&this.count++}exec(o){const l=this.getMatcher(this.regexIndex);l.lastIndex=this.lastIndex;let c=l.exec(o);if(this.resumingScanAtSamePosition()&&!(c&&c.index===this.lastIndex)){const u=this.getMatcher(0);u.lastIndex=this.lastIndex+1,c=u.exec(o)}return c&&(this.regexIndex+=c.position+1,this.regexIndex===this.count&&this.considerAll()),c}}function i(r){const o=new s;return r.contains.forEach(l=>o.addRule(l.begin,{rule:l,type:"begin"})),r.terminatorEnd&&o.addRule(r.terminatorEnd,{type:"end"}),r.illegal&&o.addRule(r.illegal,{type:"illegal"}),o}function a(r,o){const l=r;if(r.isCompiled)return l;[Cn,jn,qn,Vn].forEach(u=>u(r,o)),n.compilerExtensions.forEach(u=>u(r,o)),r.__beforeBegin=null,[Pn,Hn,Un].forEach(u=>u(r,o)),r.isCompiled=!0;let c=null;return typeof r.keywords=="object"&&r.keywords.$pattern&&(r.keywords=Object.assign({},r.keywords),c=r.keywords.$pattern,delete r.keywords.$pattern),c=c||/\w+/,r.keywords&&(r.keywords=Rt(r.keywords,n.case_insensitive)),l.keywordPatternRe=e(c,!0),o&&(r.begin||(r.begin=/\B|\b/),l.beginRe=e(l.begin),!r.end&&!r.endsWithParent&&(r.end=/\B|\b/),r.end&&(l.endRe=e(l.end)),l.terminatorEnd=ye(l.end)||"",r.endsWithParent&&o.terminatorEnd&&(l.terminatorEnd+=(r.end?"|":"")+o.terminatorEnd)),r.illegal&&(l.illegalRe=e(r.illegal)),r.contains||(r.contains=[]),r.contains=[].concat(...r.contains.map(function(u){return Jn(u==="self"?r:u)})),r.contains.forEach(function(u){a(u,l)}),r.starts&&a(r.starts,o),l.matcher=i(l),l}if(n.compilerExtensions||(n.compilerExtensions=[]),n.contains&&n.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return n.classNameAliases=ae(n.classNameAliases||{}),a(n)}function It(n){return n?n.endsWithParent||It(n.starts):!1}function Jn(n){return n.variants&&!n.cachedVariants&&(n.cachedVariants=n.variants.map(function(e){return ae(n,{variants:null},e)})),n.cachedVariants?n.cachedVariants:It(n)?ae(n,{starts:n.starts?ae(n.starts):null}):Object.isFrozen(n)?ae(n):n}var Qn="11.9.0";class es extends Error{constructor(e,t){super(e),this.name="HTMLInjectionError",this.html=t}}const Fe=kt,ut=ae,gt=Symbol("nomatch"),ts=7,Tt=function(n){const e=Object.create(null),t=Object.create(null),s=[];let i=!0;const a="Could not find the language '{}', did you forget to load/include a language module?",r={disableAutodetect:!0,name:"Plain text",contains:[]};let o={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:dn};function l(m){return o.noHighlightRe.test(m)}function c(m){let O=m.className+" ";O+=m.parentNode?m.parentNode.className:"";const P=o.languageDetectRe.exec(O);if(P){const F=ee(P[1]);return F||(ft(a.replace("{}",P[1])),ft("Falling back to no-highlight mode for this block.",m)),F?P[1]:"no-highlight"}return O.split(/\s+/).find(F=>l(F)||ee(F))}function u(m,O,P){let F="",X="";typeof O=="object"?(F=m,P=O.ignoreIllegals,X=O.language):(pe("10.7.0","highlight(lang, code, ...args) has been deprecated."),pe("10.7.0",`Please use highlight(code, options) instead. -https://github.com/highlightjs/highlight.js/issues/2277`),X=m,F=O),P===void 0&&(P=!0);const te={code:F,language:X};Oe("before:highlight",te);const ie=te.result?te.result:f(te.language,te.code,P);return ie.code=te.code,Oe("after:highlight",ie),ie}function f(m,O,P,F){const X=Object.create(null);function te(k,x){return k.keywords[x]}function ie(){if(!N.keywords){q.addText(G);return}let k=0;N.keywordPatternRe.lastIndex=0;let x=N.keywordPatternRe.exec(G),B="";for(;x;){B+=G.substring(k,x.index);const U=se.case_insensitive?x[0].toLowerCase():x[0],Z=te(N,U);if(Z){const[re,Ft]=Z;if(q.addText(B),B="",X[U]=(X[U]||0)+1,X[U]<=ts&&(Ie+=Ft),re.startsWith("_"))B+=x[0];else{const zt=se.classNameAliases[re]||re;ne(x[0],zt)}}else B+=x[0];k=N.keywordPatternRe.lastIndex,x=N.keywordPatternRe.exec(G)}B+=G.substring(k),q.addText(B)}function Re(){if(G==="")return;let k=null;if(typeof N.subLanguage=="string"){if(!e[N.subLanguage]){q.addText(G);return}k=f(N.subLanguage,G,!0,Qe[N.subLanguage]),Qe[N.subLanguage]=k._top}else k=d(G,N.subLanguage.length?N.subLanguage:null);N.relevance>0&&(Ie+=k.relevance),q.__addSublanguage(k._emitter,k.language)}function Q(){N.subLanguage!=null?Re():ie(),G=""}function ne(k,x){k!==""&&(q.startScope(x),q.addText(k),q.endScope())}function Xe(k,x){let B=1;const U=x.length-1;for(;B<=U;){if(!k._emit[B]){B++;continue}const Z=se.classNameAliases[k[B]]||k[B],re=x[B];Z?ne(re,Z):(G=re,ie(),G=""),B++}}function qe(k,x){return k.scope&&typeof k.scope=="string"&&q.openNode(se.classNameAliases[k.scope]||k.scope),k.beginScope&&(k.beginScope._wrap?(ne(G,se.classNameAliases[k.beginScope._wrap]||k.beginScope._wrap),G=""):k.beginScope._multi&&(Xe(k.beginScope,x),G="")),N=Object.create(k,{parent:{value:N}}),N}function Ze(k,x,B){let U=_n(k.endRe,B);if(U){if(k["on:end"]){const Z=new it(k);k["on:end"](x,Z),Z.isMatchIgnored&&(U=!1)}if(U){for(;k.endsParent&&k.parent;)k=k.parent;return k}}if(k.endsWithParent)return Ze(k.parent,x,B)}function Pt(k){return N.matcher.regexIndex===0?(G+=k[0],1):(Ve=!0,0)}function Ht(k){const x=k[0],B=k.rule,U=new it(B),Z=[B.__beforeBegin,B["on:begin"]];for(const re of Z)if(re&&(re(k,U),U.isMatchIgnored))return Pt(x);return B.skip?G+=x:(B.excludeBegin&&(G+=x),Q(),!B.returnBegin&&!B.excludeBegin&&(G=x)),qe(B,k),B.returnBegin?0:x.length}function jt(k){const x=k[0],B=O.substring(k.index),U=Ze(N,k,B);if(!U)return gt;const Z=N;N.endScope&&N.endScope._wrap?(Q(),ne(x,N.endScope._wrap)):N.endScope&&N.endScope._multi?(Q(),Xe(N.endScope,k)):Z.skip?G+=x:(Z.returnEnd||Z.excludeEnd||(G+=x),Q(),Z.excludeEnd&&(G=x));do N.scope&&q.closeNode(),!N.skip&&!N.subLanguage&&(Ie+=N.relevance),N=N.parent;while(N!==U.parent);return U.starts&&qe(U.starts,k),Z.returnEnd?0:x.length}function Ut(){const k=[];for(let x=N;x!==se;x=x.parent)x.scope&&k.unshift(x.scope);k.forEach(x=>q.openNode(x))}let De={};function Je(k,x){const B=x&&x[0];if(G+=k,B==null)return Q(),0;if(De.type==="begin"&&x.type==="end"&&De.index===x.index&&B===""){if(G+=O.slice(x.index,x.index+1),!i){const U=new Error(`0 width match regex (${m})`);throw U.languageName=m,U.badRule=De.rule,U}return 1}if(De=x,x.type==="begin")return Ht(x);if(x.type==="illegal"&&!P){const U=new Error('Illegal lexeme "'+B+'" for mode "'+(N.scope||"")+'"');throw U.mode=N,U}else if(x.type==="end"){const U=jt(x);if(U!==gt)return U}if(x.type==="illegal"&&B==="")return 1;if(Ue>1e5&&Ue>x.index*3)throw new Error("potential infinite loop, way more iterations than matches");return G+=B,B.length}const se=ee(m);if(!se)throw ce(a.replace("{}",m)),new Error('Unknown language: "'+m+'"');const Vt=Zn(se);let je="",N=F||Vt;const Qe={},q=new o.__emitter(o);Ut();let G="",Ie=0,le=0,Ue=0,Ve=!1;try{if(se.__emitTokens)se.__emitTokens(O,q);else{for(N.matcher.considerAll();;){Ue++,Ve?Ve=!1:N.matcher.considerAll(),N.matcher.lastIndex=le;const k=N.matcher.exec(O);if(!k)break;const x=O.substring(le,k.index),B=Je(x,k);le=k.index+B}Je(O.substring(le))}return q.finalize(),je=q.toHTML(),{language:m,value:je,relevance:Ie,illegal:!1,_emitter:q,_top:N}}catch(k){if(k.message&&k.message.includes("Illegal"))return{language:m,value:Fe(O),illegal:!0,relevance:0,_illegalBy:{message:k.message,index:le,context:O.slice(le-100,le+100),mode:k.mode,resultSoFar:je},_emitter:q};if(i)return{language:m,value:Fe(O),illegal:!1,relevance:0,errorRaised:k,_emitter:q,_top:N};throw k}}function g(m){const O={value:Fe(m),illegal:!1,relevance:0,_top:r,_emitter:new o.__emitter(o)};return O._emitter.addText(m),O}function d(m,O){O=O||o.languages||Object.keys(e);const P=g(m),F=O.filter(ee).filter(Ye).map(Q=>f(Q,m,!1));F.unshift(P);const X=F.sort((Q,ne)=>{if(Q.relevance!==ne.relevance)return ne.relevance-Q.relevance;if(Q.language&&ne.language){if(ee(Q.language).supersetOf===ne.language)return 1;if(ee(ne.language).supersetOf===Q.language)return-1}return 0}),[te,ie]=X,Re=te;return Re.secondBest=ie,Re}function w(m,O,P){const F=O&&t[O]||P;m.classList.add("hljs"),m.classList.add(`language-${F}`)}function M(m){let O=null;const P=c(m);if(l(P))return;if(Oe("before:highlightElement",{el:m,language:P}),m.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",m);return}if(m.children.length>0&&(o.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(m)),o.throwUnescapedHTML))throw new es("One of your code blocks includes unescaped HTML.",m.innerHTML);O=m;const F=O.textContent,X=P?u(F,{language:P,ignoreIllegals:!0}):d(F);m.innerHTML=X.value,m.dataset.highlighted="yes",w(m,P,X.language),m.result={language:X.language,re:X.relevance,relevance:X.relevance},X.secondBest&&(m.secondBest={language:X.secondBest.language,relevance:X.secondBest.relevance}),Oe("after:highlightElement",{el:m,result:X,text:F})}function V(m){o=ut(o,m)}const Y=()=>{j(),pe("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function J(){j(),pe("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let C=!1;function j(){if(document.readyState==="loading"){C=!0;return}document.querySelectorAll(o.cssSelector).forEach(M)}function W(){C&&j()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",W,!1);function xe(m,O){let P=null;try{P=O(n)}catch(F){if(ce("Language definition for '{}' could not be registered.".replace("{}",m)),i)ce(F);else throw F;P=r}P.name||(P.name=m),e[m]=P,P.rawDefinition=O.bind(null,n),P.aliases&&Ee(P.aliases,{languageName:m})}function Ae(m){delete e[m];for(const O of Object.keys(t))t[O]===m&&delete t[O]}function Me(){return Object.keys(e)}function ee(m){return m=(m||"").toLowerCase(),e[m]||e[t[m]]}function Ee(m,{languageName:O}){typeof m=="string"&&(m=[m]),m.forEach(P=>{t[P.toLowerCase()]=O})}function Ye(m){const O=ee(m);return O&&!O.disableAutodetect}function Nt(m){m["before:highlightBlock"]&&!m["before:highlightElement"]&&(m["before:highlightElement"]=O=>{m["before:highlightBlock"](Object.assign({block:O.el},O))}),m["after:highlightBlock"]&&!m["after:highlightElement"]&&(m["after:highlightElement"]=O=>{m["after:highlightBlock"](Object.assign({block:O.el},O))})}function Lt(m){Nt(m),s.push(m)}function Bt(m){const O=s.indexOf(m);O!==-1&&s.splice(O,1)}function Oe(m,O){const P=m;s.forEach(function(F){F[P]&&F[P](O)})}function Ct(m){return pe("10.7.0","highlightBlock will be removed entirely in v12.0"),pe("10.7.0","Please use highlightElement now."),M(m)}Object.assign(n,{highlight:u,highlightAuto:d,highlightAll:j,highlightElement:M,highlightBlock:Ct,configure:V,initHighlighting:Y,initHighlightingOnLoad:J,registerLanguage:xe,unregisterLanguage:Ae,listLanguages:Me,getLanguage:ee,registerAliases:Ee,autoDetection:Ye,inherit:ut,addPlugin:Lt,removePlugin:Bt}),n.debugMode=function(){i=!1},n.safeMode=function(){i=!0},n.versionString=Qn,n.regex={concat:de,lookahead:yt,either:Ge,optional:mn,anyNumberOfTimes:pn};for(const m in Te)typeof Te[m]=="object"&&wt(Te[m]);return Object.assign(n,Te),n},ve=Tt({});ve.newInstance=()=>Tt({});var ns=ve;ve.HighlightJS=ve;ve.default=ve;const dt=cn(ns);function ss(n){let e;return{c(){e=Be(n[0])},l(t){e=Ce(t,n[0])},m(t,s){R(t,e,s)},p(t,s){s&1&&Pe(e,t[0])},d(t){t&&p(e)}}}function rs(n){let e,t;return{c(){e=new Gt(!1),t=tt(),this.h()},l(s){e=Kt(s,!1),t=tt(),this.h()},h(){e.a=t},m(s,i){e.m(n[1],s,i),R(s,t,i)},p(s,i){i&2&&e.p(s[1])},d(s){s&&(p(t),e.d())}}}function os(n){let e,t;function s(l,c){return l[1]?rs:ss}let i=s(n),a=i(n),r=[{"data-language":n[2]},n[4]],o={};for(let l=0;l{e=be(be({},e),bt(c)),t(4,i=Ne(e,s)),"code"in c&&t(0,a=c.code),"highlighted"in c&&t(1,r=c.highlighted),"languageName"in c&&t(2,o=c.languageName),"langtag"in c&&t(3,l=c.langtag)},[a,r,o,l,i]}class as extends ue{constructor(e){super(),ge(this,e,is,os,fe,{code:0,highlighted:1,languageName:2,langtag:3})}}const ls=n=>({highlighted:n&8}),pt=n=>({highlighted:n[3]});function cs(n){let e,t;const s=[n[4],{languageName:n[0].name},{langtag:n[2]},{highlighted:n[3]},{code:n[1]}];let i={};for(let a=0;a{f&&u("highlight",{highlighted:f})}),n.$$set=g=>{e=be(be({},e),bt(g)),t(4,i=Ne(e,s)),"language"in g&&t(0,o=g.language),"code"in g&&t(1,l=g.code),"langtag"in g&&t(2,c=g.langtag),"$$scope"in g&&t(5,r=g.$$scope)},n.$$.update=()=>{n.$$.dirty&3&&(dt.registerLanguage(o.name,o.register),t(3,f=dt.highlight(l,{language:o.name}).value))},[o,l,c,f,i,r,a]}class gs extends ue{constructor(e){super(),ge(this,e,us,fs,fe,{language:0,code:1,langtag:2})}}function ds(n){const e=n.regex,t=new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*","u"),s=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],o={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:s,built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},l={className:"meta",begin:/^(>>>|\.\.\.) /},c={className:"subst",begin:/\{/,end:/\}/,keywords:o,illegal:/#/},u={begin:/\{\{/,relevance:0},f={className:"string",contains:[n.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[n.BACKSLASH_ESCAPE,l],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[n.BACKSLASH_ESCAPE,l],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[n.BACKSLASH_ESCAPE,l,u,c]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[n.BACKSLASH_ESCAPE,l,u,c]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[n.BACKSLASH_ESCAPE,u,c]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[n.BACKSLASH_ESCAPE,u,c]},n.APOS_STRING_MODE,n.QUOTE_STRING_MODE]},g="[0-9](_?[0-9])*",d=`(\\b(${g}))?\\.(${g})|\\b(${g})\\.`,w=`\\b|${s.join("|")}`,M={className:"number",relevance:0,variants:[{begin:`(\\b(${g})|(${d}))[eE][+-]?(${g})[jJ]?(?=${w})`},{begin:`(${d})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${w})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${w})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${w})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${w})`},{begin:`\\b(${g})[jJ](?=${w})`}]},V={className:"comment",begin:e.lookahead(/# type:/),end:/$/,keywords:o,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},Y={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:o,contains:["self",l,M,f,n.HASH_COMMENT_MODE]}]};return c.contains=[f,M,l],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:o,illegal:/(<\/|\?)|=>/,contains:[l,M,{begin:/\bself\b/},{beginKeywords:"if",relevance:0},f,V,n.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,t],scope:{1:"keyword",3:"title.function"},contains:[Y]},{variants:[{match:[/\bclass/,/\s+/,t,/\s*/,/\(\s*/,t,/\s*\)/]},{match:[/\bclass/,/\s+/,t]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[M,Y,f]}]}}const mt={name:"python",register:ds};function ps(n){const e=n.regex,t={},s={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[t]}]};Object.assign(t,{className:"variable",variants:[{begin:e.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},s]});const i={className:"subst",begin:/\$\(/,end:/\)/,contains:[n.BACKSLASH_ESCAPE]},a={begin:/<<-?\s*(?=\w+)/,starts:{contains:[n.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},r={className:"string",begin:/"/,end:/"/,contains:[n.BACKSLASH_ESCAPE,t,i]};i.contains.push(r);const o={match:/\\"/},l={className:"string",begin:/'/,end:/'/},c={match:/\\'/},u={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},n.NUMBER_MODE,t]},f=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],g=n.SHEBANG({binary:`(${f.join("|")})`,relevance:10}),d={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[n.inherit(n.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},w=["if","then","else","elif","fi","for","while","until","in","do","done","case","esac","function","select"],M=["true","false"],V={match:/(\/[a-z._-]+)+/},Y=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],J=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","type","typeset","ulimit","unalias"],C=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],j=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:w,literal:M,built_in:[...Y,...J,"set","shopt",...C,...j]},contains:[g,n.SHEBANG(),d,u,n.HASH_COMMENT_MODE,a,V,r,o,l,c,t]}}const $t={name:"bash",register:ps};function _t(n){let e,t;return{c(){e=I("p"),t=Be(n[1]),this.h()},l(s){e=T(s,"P",{class:!0});var i=H(e);t=Ce(i,n[1]),i.forEach(p),this.h()},h(){L(e,"class","text-xs px-2 opacity-90")},m(s,i){R(s,e,i),A(e,t)},p(s,i){i&2&&Pe(t,s[1])},d(s){s&&p(e)}}}function ms(n){let e,t,s,i,a,r,o=`Copy`,l,c,u,f=n[1]&&_t(n);return i=new gs({props:{language:n[2]?$t:mt,code:n[0],class:"text-xs opacity-85"}}),{c(){e=I("div"),f&&f.c(),t=y(),s=I("div"),h(i.$$.fragment),a=y(),r=I("button"),r.innerHTML=o,this.h()},l(g){e=T(g,"DIV",{class:!0});var d=H(e);f&&f.l(d),t=S(d),s=T(d,"DIV",{class:!0});var w=H(s);b(i.$$.fragment,w),a=S(w),r=T(w,"BUTTON",{class:!0,"data-svelte-h":!0}),oe(r)!=="svelte-hm96ti"&&(r.innerHTML=o),w.forEach(p),d.forEach(p),this.h()},h(){L(r,"class","copy-button svelte-klct9p"),L(s,"class","bg-slate-300 relative"),L(e,"class","bg-[#f2e5ff] mb-2")},m(g,d){R(g,e,d),f&&f.m(e,null),A(e,t),A(e,s),v(i,s,null),A(s,a),A(s,r),l=!0,c||(u=Xt(r,"click",n[3]),c=!0)},p(g,[d]){g[1]?f?f.p(g,d):(f=_t(g),f.c(),f.m(e,t)):f&&(f.d(1),f=null);const w={};d&4&&(w.language=g[2]?$t:mt),d&1&&(w.code=g[0]),i.$set(w)},i(g){l||($(i.$$.fragment,g),l=!0)},o(g){_(i.$$.fragment,g),l=!1},d(g){g&&p(e),f&&f.d(),E(i),c=!1,u()}}}function $s(n,e,t){let{code:s}=e,{preface:i=""}=e,{isBash:a=!1}=e;function r(){navigator.clipboard.writeText(s),Jt.push("📋 Copied to clipboard!",{theme:{"--toastBackground":"#444","--toastColor":"#fff"}})}return n.$$set=o=>{"code"in o&&t(0,s=o.code),"preface"in o&&t(1,i=o.preface),"isBash"in o&&t(2,a=o.isBash)},[s,i,a,r]}class D extends ue{constructor(e){super(),ge(this,e,$s,ms,fe,{code:0,preface:1,isBash:2})}}function _s(n){let e,t,s,i="›",a,r,o,l;const c=n[2].default,u=me(c,n,n[1],null);return{c(){e=I("div"),t=I("h2"),s=I("span"),s.textContent=i,a=y(),r=Be(n[0]),o=y(),u&&u.c(),this.h()},l(f){e=T(f,"DIV",{class:!0});var g=H(e);t=T(g,"H2",{class:!0});var d=H(t);s=T(d,"SPAN",{class:!0,"data-svelte-h":!0}),oe(s)!=="svelte-6hn1qy"&&(s.textContent=i),a=S(d),r=Ce(d,n[0]),d.forEach(p),o=S(g),u&&u.l(g),g.forEach(p),this.h()},h(){L(s,"class","text-[#8622FF] text-xl ml-1 mb-1"),L(t,"class","text-xl font-inter"),L(e,"class","flex flex-col")},m(f,g){R(f,e,g),A(e,t),A(t,s),A(t,a),A(t,r),A(e,o),u&&u.m(e,null),l=!0},p(f,[g]){(!l||g&1)&&Pe(r,f[0]),u&&u.p&&(!l||g&2)&&$e(u,c,f,f[1],l?he(c,f[1],g,null):_e(f[1]),null)},i(f){l||($(u,f),l=!0)},o(f){_(u,f),l=!1},d(f){f&&p(e),u&&u.d(f)}}}function hs(n,e,t){let{$$slots:s={},$$scope:i}=e,{header:a}=e;return n.$$set=r=>{"header"in r&&t(0,a=r.header),"$$scope"in r&&t(1,i=r.$$scope)},[a,i,s]}class K extends ue{constructor(e){super(),ge(this,e,hs,_s,fe,{header:0})}}const bs=[`bounding_box_annotator = sv.BoundingBoxAnnotator() -label_annotator = sv.LabelAnnotator() - -annotated_image = bounding_box_annotator.annotate( - scene=image.copy(), detections=detections) -annotated_image = label_annotator.annotate( - scene=annotated_image, detections=detections) - -sv.plot_image(annotated_image)`],vs=[`mask_annotator = sv.MaskAnnotator() -label_annotator = sv.LabelAnnotator() - -annotated_image = mask_annotator.annotate( - scene=image.copy(), detections=detections) -annotated_image = label_annotator.annotate( - scene=annotated_image, detections=detections) - -sv.plot_image(annotated_image)`],Es=[`vertex_annotator = sv.VertexAnnotator(radius=10) -edge_annotator = sv.EdgeAnnotator(thickness=5) - -annotated_frame = edge_annotator.annotate( - scene=image.copy(), - key_points=key_points -) -annotated_frame = vertex_annotator.annotate( - scene=annotated_frame, - key_points=key_points -)`],ws=[`from inference import get_model - -model = get_model(model_id="yolov8n-640") -results = model.infer(image)[0] -detections = sv.Detections.from_inference(results)`],ks=[`from ultralytics import YOLO - -model = YOLO("yolov8n.pt") -results = model(image)[0] -detections = sv.Detections.from_ultralytics(results)`],ys=[`import torch -from PIL import Image -from transformers import DetrImageProcessor, DetrForObjectDetection - -processor = DetrImageProcessor.from_pretrained("facebook/detr-resnet-50") -model = DetrForObjectDetection.from_pretrained("facebook/detr-resnet-50") - -image = Image.open("dog.jpeg") -inputs = processor(images=image, return_tensors="pt") - -with torch.no_grad(): - outputs = model(**inputs) - -target_size = torch.tensor([[image.size[1], image.size[0]]]) -results = processor.post_process_object_detection( - outputs=outputs, target_sizes=target_size)[0] - -detections = sv.Detections.from_transformers( - transformers_results=results, - id2label=model.config.id2label)`],Ss=[`from inference import get_model - -model = get_model(model_id="yolov8n-seg-640") -results = model.infer(image)[0] -detections = sv.Detections.from_inference(results)`],xs=[`from ultralytics import YOLO - -model = YOLO("yolov8n-seg.pt") -results = model(image)[0] -detections = sv.Detections.from_ultralytics(results)`];function As(n){let e,t='

Supervision simplifies the process of working with vision models. It offers connectors to popular model libraries, a plethora of visualizers (annotators), powerful post-processing features and an easy learning curve.

Load image or video » Load the model » Run the model » Annotate';return{c(){e=I("div"),e.innerHTML=t,this.h()},l(s){e=T(s,"DIV",{class:!0,"data-svelte-h":!0}),oe(e)!=="svelte-10ber7h"&&(e.innerHTML=t),this.h()},h(){L(e,"class","text-xs xl:text-sm px-2 pb-2")},m(s,i){R(s,e,i)},p:z,d(s){s&&p(e)}}}function Ms(n){let e,t,s,i,a,r,o,l,c,u;return e=new D({props:{isBash:!0,code:"pip install supervision inference -q"}}),s=new D({props:{isBash:!0,code:"wget https://media.roboflow.com/notebooks/examples/dog.jpeg"}}),a=new D({props:{code:`import cv2 -import supervision as sv -from inference import get_model`}}),o=new D({props:{code:`image = cv2.imread("dog.jpeg") -model = get_model(model_id="yolov8n-640") -results = model.infer(image)[0] -detections = sv.Detections.from_inference(results)`}}),c=new D({props:{code:`annotated_image = sv.BoundingBoxAnnotator().annotate( - scene=image.copy(), detections=detections -) -annotated_image = sv.LabelAnnotator().annotate( - scene=annotated_image, detections=detections -) -sv.plot_image(annotated_image) -`}}),{c(){h(e.$$.fragment),t=y(),h(s.$$.fragment),i=y(),h(a.$$.fragment),r=y(),h(o.$$.fragment),l=y(),h(c.$$.fragment)},l(f){b(e.$$.fragment,f),t=S(f),b(s.$$.fragment,f),i=S(f),b(a.$$.fragment,f),r=S(f),b(o.$$.fragment,f),l=S(f),b(c.$$.fragment,f)},m(f,g){v(e,f,g),R(f,t,g),v(s,f,g),R(f,i,g),v(a,f,g),R(f,r,g),v(o,f,g),R(f,l,g),v(c,f,g),u=!0},p:z,i(f){u||($(e.$$.fragment,f),$(s.$$.fragment,f),$(a.$$.fragment,f),$(o.$$.fragment,f),$(c.$$.fragment,f),u=!0)},o(f){_(e.$$.fragment,f),_(s.$$.fragment,f),_(a.$$.fragment,f),_(o.$$.fragment,f),_(c.$$.fragment,f),u=!1},d(f){f&&(p(t),p(i),p(r),p(l)),E(e,f),E(s,f),E(a,f),E(o,f),E(c,f)}}}function Os(n){let e,t,s,i,a,r,o;return t=new K({props:{header:"Basic Principles",$$slots:{default:[As]},$$scope:{ctx:n}}}),r=new K({props:{header:"Quickstart",$$slots:{default:[Ms]},$$scope:{ctx:n}}}),{c(){e=I("div"),h(t.$$.fragment),s=y(),i=I("div"),a=y(),h(r.$$.fragment),this.h()},l(l){e=T(l,"DIV",{slot:!0});var c=H(e);b(t.$$.fragment,c),s=S(c),i=T(c,"DIV",{class:!0}),H(i).forEach(p),a=S(c),b(r.$$.fragment,c),c.forEach(p),this.h()},h(){L(i,"class","mt-2"),L(e,"slot","col1")},m(l,c){R(l,e,c),v(t,e,null),A(e,s),A(e,i),A(e,a),v(r,e,null),o=!0},p(l,c){const u={};c&1&&(u.$$scope={dirty:c,ctx:l}),t.$set(u);const f={};c&1&&(f.$$scope={dirty:c,ctx:l}),r.$set(f)},i(l){o||($(t.$$.fragment,l),$(r.$$.fragment,l),o=!0)},o(l){_(t.$$.fragment,l),_(r.$$.fragment,l),o=!1},d(l){l&&p(e),E(t),E(r)}}}function Rs(n){let e,t=`
  • sv.Detections: Common class for model both object detection and segmentation. - Contains fields: xyxy, mask, class_id, tracker_id, data. -
  • import supervision as sv: All useful functions available in global scope
  • A selection of models: - Load popular, - fine-tuned, - or Universe models.
  • sv.Detections.from_X: Load from one of 12 sources.
  • Annotators: Draw the detections with one of 20 annotators.
  • More features: This sheet contains < 50% of supervision's features. Find others here!
  • `;return{c(){e=I("ul"),e.innerHTML=t,this.h()},l(s){e=T(s,"UL",{class:!0,"data-svelte-h":!0}),oe(e)!=="svelte-1lcxblo"&&(e.innerHTML=t),this.h()},h(){L(e,"class","list-disc list-inside ml-2 svelte-1li3azr")},m(s,i){R(s,e,i)},p:z,d(s){s&&p(e)}}}function Ds(n){let e,t,s,i,a,r;return e=new D({props:{preface:"Load a single image",code:`import cv2 -image = cv2.imread("dog.jpeg")`}}),s=new D({props:{preface:"Iterate over video frames",code:`for frame in sv.get_video_frames_generator(source_path=): - print(frame.shape)`}}),a=new D({props:{preface:"Run a function over every frame, save output",code:`import numpy as np - -def callback(scene: np.ndarray, index: int) -> np.ndarray: - print(f"Processing frame {index}") - return scene; - -sv.process_video( - source_path=, - target_path="out.mp4", - callback=callback)`}}),{c(){h(e.$$.fragment),t=y(),h(s.$$.fragment),i=y(),h(a.$$.fragment)},l(o){b(e.$$.fragment,o),t=S(o),b(s.$$.fragment,o),i=S(o),b(a.$$.fragment,o)},m(o,l){v(e,o,l),R(o,t,l),v(s,o,l),R(o,i,l),v(a,o,l),r=!0},p:z,i(o){r||($(e.$$.fragment,o),$(s.$$.fragment,o),$(a.$$.fragment,o),r=!0)},o(o){_(e.$$.fragment,o),_(s.$$.fragment,o),_(a.$$.fragment,o),r=!1},d(o){o&&(p(t),p(i)),E(e,o),E(s,o),E(a,o)}}}function Is(n){let e,t,s,i,a,r,o;return t=new K({props:{header:"Core Concepts",$$slots:{default:[Rs]},$$scope:{ctx:n}}}),r=new K({props:{header:"Read images & Videos",$$slots:{default:[Ds]},$$scope:{ctx:n}}}),{c(){e=I("div"),h(t.$$.fragment),s=y(),i=I("div"),a=y(),h(r.$$.fragment),this.h()},l(l){e=T(l,"DIV",{slot:!0});var c=H(e);b(t.$$.fragment,c),s=S(c),i=T(c,"DIV",{class:!0}),H(i).forEach(p),a=S(c),b(r.$$.fragment,c),c.forEach(p),this.h()},h(){L(i,"class","mt-4"),L(e,"slot","col2")},m(l,c){R(l,e,c),v(t,e,null),A(e,s),A(e,i),A(e,a),v(r,e,null),o=!0},p(l,c){const u={};c&1&&(u.$$scope={dirty:c,ctx:l}),t.$set(u);const f={};c&1&&(f.$$scope={dirty:c,ctx:l}),r.$set(f)},i(l){o||($(t.$$.fragment,l),$(r.$$.fragment,l),o=!0)},o(l){_(t.$$.fragment,l),_(r.$$.fragment,l),o=!1},d(l){l&&p(e),E(t),E(r)}}}function Ts(n){let e,t,s,i,a,r;return e=new D({props:{code:ws[0]}}),s=new D({props:{code:ks[0]}}),a=new D({props:{code:ys[0]}}),{c(){h(e.$$.fragment),t=y(),h(s.$$.fragment),i=y(),h(a.$$.fragment)},l(o){b(e.$$.fragment,o),t=S(o),b(s.$$.fragment,o),i=S(o),b(a.$$.fragment,o)},m(o,l){v(e,o,l),R(o,t,l),v(s,o,l),R(o,i,l),v(a,o,l),r=!0},p:z,i(o){r||($(e.$$.fragment,o),$(s.$$.fragment,o),$(a.$$.fragment,o),r=!0)},o(o){_(e.$$.fragment,o),_(s.$$.fragment,o),_(a.$$.fragment,o),r=!1},d(o){o&&(p(t),p(i)),E(e,o),E(s,o),E(a,o)}}}function Ns(n){let e,t,s,i,a,r,o='+9 more connectors ⚡',l;return t=new D({props:{code:`import cv2 -import supervision as sv - -image = cv2.imread("dog.jpeg")`}}),i=new K({props:{header:"Frequent choices: Inference, Ultralytics & Transfomers",$$slots:{default:[Ts]},$$scope:{ctx:n}}}),{c(){e=I("div"),h(t.$$.fragment),s=y(),h(i.$$.fragment),a=y(),r=I("div"),r.innerHTML=o,this.h()},l(c){e=T(c,"DIV",{slot:!0});var u=H(e);b(t.$$.fragment,u),s=S(u),b(i.$$.fragment,u),a=S(u),r=T(u,"DIV",{class:!0,"data-svelte-h":!0}),oe(r)!=="svelte-bfew51"&&(r.innerHTML=o),u.forEach(p),this.h()},h(){L(r,"class","flex flex-row justify-center text-lg font-bold"),L(e,"slot","col1")},m(c,u){R(c,e,u),v(t,e,null),A(e,s),v(i,e,null),A(e,a),A(e,r),l=!0},p(c,u){const f={};u&1&&(f.$$scope={dirty:u,ctx:c}),i.$set(f)},i(c){l||($(t.$$.fragment,c),$(i.$$.fragment,c),l=!0)},o(c){_(t.$$.fragment,c),_(i.$$.fragment,c),l=!1},d(c){c&&p(e),E(t),E(i)}}}function Ls(n){let e,t,s,i='+18 more annotators 🎨',a;return e=new D({props:{code:bs[0]}}),{c(){h(e.$$.fragment),t=y(),s=I("div"),s.innerHTML=i,this.h()},l(r){b(e.$$.fragment,r),t=S(r),s=T(r,"DIV",{class:!0,"data-svelte-h":!0}),oe(s)!=="svelte-1lcfdfr"&&(s.innerHTML=i),this.h()},h(){L(s,"class","flex flex-row justify-center text-lg font-bold")},m(r,o){v(e,r,o),R(r,t,o),R(r,s,o),a=!0},p:z,i(r){a||($(e.$$.fragment,r),a=!0)},o(r){_(e.$$.fragment,r),a=!1},d(r){r&&(p(t),p(s)),E(e,r)}}}function Bs(n){let e,t='For inference and ultralytics, you only need to change the model ID:',s,i,a,r,o;return i=new D({props:{code:Ss[0]}}),r=new D({props:{code:xs[0]}}),{c(){e=I("div"),e.innerHTML=t,s=y(),h(i.$$.fragment),a=y(),h(r.$$.fragment),this.h()},l(l){e=T(l,"DIV",{class:!0,"data-svelte-h":!0}),oe(e)!=="svelte-1x6ubdi"&&(e.innerHTML=t),s=S(l),b(i.$$.fragment,l),a=S(l),b(r.$$.fragment,l),this.h()},h(){L(e,"class","flex flex-row justify-center text-sm font-bold")},m(l,c){R(l,e,c),R(l,s,c),v(i,l,c),R(l,a,c),v(r,l,c),o=!0},p:z,i(l){o||($(i.$$.fragment,l),$(r.$$.fragment,l),o=!0)},o(l){_(i.$$.fragment,l),_(r.$$.fragment,l),o=!1},d(l){l&&(p(e),p(s),p(a)),E(i,l),E(r,l)}}}function Cs(n){let e,t;return e=new D({props:{code:vs[0]}}),{c(){h(e.$$.fragment)},l(s){b(e.$$.fragment,s)},m(s,i){v(e,s,i),t=!0},p:z,i(s){t||($(e.$$.fragment,s),t=!0)},o(s){_(e.$$.fragment,s),t=!1},d(s){E(e,s)}}}function Ps(n){let e,t,s,i,a,r,o;return t=new K({props:{header:"Annotate Detection",$$slots:{default:[Ls]},$$scope:{ctx:n}}}),i=new K({props:{header:"Segmentation",$$slots:{default:[Bs]},$$scope:{ctx:n}}}),r=new K({props:{header:"Annotate Segmentation",$$slots:{default:[Cs]},$$scope:{ctx:n}}}),{c(){e=I("div"),h(t.$$.fragment),s=y(),h(i.$$.fragment),a=y(),h(r.$$.fragment),this.h()},l(l){e=T(l,"DIV",{slot:!0});var c=H(e);b(t.$$.fragment,c),s=S(c),b(i.$$.fragment,c),a=S(c),b(r.$$.fragment,c),c.forEach(p),this.h()},h(){L(e,"slot","col2")},m(l,c){R(l,e,c),v(t,e,null),A(e,s),v(i,e,null),A(e,a),v(r,e,null),o=!0},p(l,c){const u={};c&1&&(u.$$scope={dirty:c,ctx:l}),t.$set(u);const f={};c&1&&(f.$$scope={dirty:c,ctx:l}),i.$set(f);const g={};c&1&&(g.$$scope={dirty:c,ctx:l}),r.$set(g)},i(l){o||($(t.$$.fragment,l),$(i.$$.fragment,l),$(r.$$.fragment,l),o=!0)},o(l){_(t.$$.fragment,l),_(i.$$.fragment,l),_(r.$$.fragment,l),o=!1},d(l){l&&p(e),E(t),E(i),E(r)}}}function Hs(n){let e,t;return e=new D({props:{code:`from inference import get_model - -model = get_model(model_id="yolov8s-pose-640") - -results = model.infer(image)[0] -key_points = sv.KeyPoints.from_inference(results) -`}}),{c(){h(e.$$.fragment)},l(s){b(e.$$.fragment,s)},m(s,i){v(e,s,i),t=!0},p:z,i(s){t||($(e.$$.fragment,s),t=!0)},o(s){_(e.$$.fragment,s),t=!1},d(s){E(e,s)}}}function js(n){let e,t;return e=new D({props:{code:`from ultralytics import YOLO - -model = YOLO("yolov8s-pose.pt") - -results = model(image)[0] -key_points = sv.KeyPoints.from_ultralytics(results)`}}),{c(){h(e.$$.fragment)},l(s){b(e.$$.fragment,s)},m(s,i){v(e,s,i),t=!0},p:z,i(s){t||($(e.$$.fragment,s),t=!0)},o(s){_(e.$$.fragment,s),t=!1},d(s){E(e,s)}}}function Us(n){let e,t;return e=new D({props:{code:`import torch -import super_gradients - -device = "cuda" if torch.cuda.is_available() else "cpu" -model = super_gradients.training.models.get( - "yolo_nas_pose_s", pretrained_weights="coco_pose").to(device) - -results = model.predict(image, conf=0.1) -key_points = sv.KeyPoints.from_yolo_nas(results)`}}),{c(){h(e.$$.fragment)},l(s){b(e.$$.fragment,s)},m(s,i){v(e,s,i),t=!0},p:z,i(s){t||($(e.$$.fragment,s),t=!0)},o(s){_(e.$$.fragment,s),t=!1},d(s){E(e,s)}}}function Vs(n){let e,t,s,i,a,r,o,l,c;return t=new D({props:{code:`import cv2 -import supervision as sv - -image = cv2.imread("dog.jpeg")`}}),i=new K({props:{header:"Inference",$$slots:{default:[Hs]},$$scope:{ctx:n}}}),r=new K({props:{header:"Ultralytics",$$slots:{default:[js]},$$scope:{ctx:n}}}),l=new K({props:{header:"Yolo NAS",$$slots:{default:[Us]},$$scope:{ctx:n}}}),{c(){e=I("div"),h(t.$$.fragment),s=y(),h(i.$$.fragment),a=y(),h(r.$$.fragment),o=y(),h(l.$$.fragment),this.h()},l(u){e=T(u,"DIV",{slot:!0});var f=H(e);b(t.$$.fragment,f),s=S(f),b(i.$$.fragment,f),a=S(f),b(r.$$.fragment,f),o=S(f),b(l.$$.fragment,f),f.forEach(p),this.h()},h(){L(e,"slot","col1")},m(u,f){R(u,e,f),v(t,e,null),A(e,s),v(i,e,null),A(e,a),v(r,e,null),A(e,o),v(l,e,null),c=!0},p(u,f){const g={};f&1&&(g.$$scope={dirty:f,ctx:u}),i.$set(g);const d={};f&1&&(d.$$scope={dirty:f,ctx:u}),r.$set(d);const w={};f&1&&(w.$$scope={dirty:f,ctx:u}),l.$set(w)},i(u){c||($(t.$$.fragment,u),$(i.$$.fragment,u),$(r.$$.fragment,u),$(l.$$.fragment,u),c=!0)},o(u){_(t.$$.fragment,u),_(i.$$.fragment,u),_(r.$$.fragment,u),_(l.$$.fragment,u),c=!1},d(u){u&&p(e),E(t),E(i),E(r),E(l)}}}function Fs(n){let e,t,s,i='+1 more annotator 🎨',a;return e=new D({props:{code:Es[0]}}),{c(){h(e.$$.fragment),t=y(),s=I("div"),s.innerHTML=i,this.h()},l(r){b(e.$$.fragment,r),t=S(r),s=T(r,"DIV",{class:!0,"data-svelte-h":!0}),oe(s)!=="svelte-9ymj2a"&&(s.innerHTML=i),this.h()},h(){L(s,"class","flex flex-row justify-center text-lg font-bold")},m(r,o){v(e,r,o),R(r,t,o),R(r,s,o),a=!0},p:z,i(r){a||($(e.$$.fragment,r),a=!0)},o(r){_(e.$$.fragment,r),a=!1},d(r){r&&(p(t),p(s)),E(e,r)}}}function zs(n){let e,t,s,i,a;return t=new D({props:{preface:"⚠️ Available in pre-release: pip install git+https://github.com/roboflow/supervision.git@develop ",code:`import mediapipe as mp - -image = cv2.imread("dog.jpeg") -image_height, image_width, _ = image.shape -mediapipe_image = mp.Image( - image_format=mp.ImageFormat.SRGB, - data=cv2.cvtColor(image, cv2.COLOR_BGR2RGB)) - -options = mp.tasks.vision.PoseLandmarkerOptions( - base_options=mp.tasks.BaseOptions( - model_asset_path="pose_landmarker_heavy.task" - ), - running_mode=mp.tasks.vision.RunningMode.IMAGE, - num_poses=2) - -PoseLandmarker = mp.tasks.vision.PoseLandmarker -with PoseLandmarker.create_from_options(options) as landmarker: - pose_landmarker_result = landmarker.detect(mediapipe_image) - -key_points = sv.KeyPoints.from_mediapipe( - pose_landmarker_result, (image_width, image_height))`}}),i=new K({props:{header:"Annotate KeyPoints",$$slots:{default:[Fs]},$$scope:{ctx:n}}}),{c(){e=I("div"),h(t.$$.fragment),s=y(),h(i.$$.fragment),this.h()},l(r){e=T(r,"DIV",{slot:!0});var o=H(e);b(t.$$.fragment,o),s=S(o),b(i.$$.fragment,o),o.forEach(p),this.h()},h(){L(e,"slot","col2")},m(r,o){R(r,e,o),v(t,e,null),A(e,s),v(i,e,null),a=!0},p(r,o){const l={};o&1&&(l.$$scope={dirty:o,ctx:r}),i.$set(l)},i(r){a||($(t.$$.fragment,r),$(i.$$.fragment,r),a=!0)},o(r){_(t.$$.fragment,r),_(i.$$.fragment,r),a=!1},d(r){r&&p(e),E(t),E(i)}}}function Gs(n){let e,t;return e=new D({props:{code:`video_info = sv.VideoInfo.from_video_path(video_path=) -frames_generator = sv.get_video_frames_generator(source_path=) - -model = get_model("yolov8s-640") -tracker = sv.ByteTrack(frame_rate=video_info.fps) -smoother = sv.DetectionsSmoother() - -trace_annotator = sv.TraceAnnotator() - -with sv.VideoSink(target_path="out.mp4", video_info=video_info) as sink: - for frame in frames_generator: - results = model.infer(frame)[0] - detections = sv.Detections.from_inference(results) - detections = tracker.update_with_detections(detections) - detections = smoother.update_with_detections(detections) - - annotated_frame = trace_annotator.annotate( - frame.copy(), detections) - - sink.write_frame(frame=frame)`}}),{c(){h(e.$$.fragment)},l(s){b(e.$$.fragment,s)},m(s,i){v(e,s,i),t=!0},p:z,i(s){t||($(e.$$.fragment,s),t=!0)},o(s){_(e.$$.fragment,s),t=!1},d(s){E(e,s)}}}function Ks(n){let e,t;return e=new D({props:{code:`frames_generator = sv.get_video_frames_generator(source_path=) -model = get_model("yolov8s-640") -tracker = sv.ByteTrack() - -start, end = sv.Point(x=0, y=500), sv.Point(x=200, y=1000) -line_zone = sv.LineZone(start=start, end=end) - -for frame in frames_generator: - results = model.infer(frame)[0] - detections = sv.Detections.from_inference(results) - detections = tracker.update_with_detections(detections) - crossed_in, crossed_out = line_zone.trigger(detections) -print(line_zone.in_count, line_zone.out_count)`}}),{c(){h(e.$$.fragment)},l(s){b(e.$$.fragment,s)},m(s,i){v(e,s,i),t=!0},p:z,i(s){t||($(e.$$.fragment,s),t=!0)},o(s){_(e.$$.fragment,s),t=!1},d(s){E(e,s)}}}function Ws(n){let e,t,s,i,a,r,o;return t=new D({props:{code:`import cv2 -import supervision as sv -from inference import get_model - -`}}),i=new K({props:{header:"Track Object Movement",$$slots:{default:[Gs]},$$scope:{ctx:n}}}),r=new K({props:{header:"Count objects crossing a LineZone",$$slots:{default:[Ks]},$$scope:{ctx:n}}}),{c(){e=I("div"),h(t.$$.fragment),s=y(),h(i.$$.fragment),a=y(),h(r.$$.fragment),this.h()},l(l){e=T(l,"DIV",{slot:!0});var c=H(e);b(t.$$.fragment,c),s=S(c),b(i.$$.fragment,c),a=S(c),b(r.$$.fragment,c),c.forEach(p),this.h()},h(){L(e,"slot","col1")},m(l,c){R(l,e,c),v(t,e,null),A(e,s),v(i,e,null),A(e,a),v(r,e,null),o=!0},p(l,c){const u={};c&1&&(u.$$scope={dirty:c,ctx:l}),i.$set(u);const f={};c&1&&(f.$$scope={dirty:c,ctx:l}),r.$set(f)},i(l){o||($(t.$$.fragment,l),$(i.$$.fragment,l),$(r.$$.fragment,l),o=!0)},o(l){_(t.$$.fragment,l),_(i.$$.fragment,l),_(r.$$.fragment,l),o=!1},d(l){l&&p(e),E(t),E(i),E(r)}}}function Ys(n){let e,t;return e=new D({props:{preface:"InferenceSlicer breaks the image into small parts and runs the model on each one",code:`import cv2 -import supervision as sv -from inference import get_model - -image = cv2.imread("dog.jpeg") -model = get_model("yolov8s-640") - -def callback(image_slice: np.ndarray) -> sv.Detections: - results = model.infer(image_slice)[0] - return sv.Detections.from_inference(results) - -slicer = sv.InferenceSlicer( - callback=callback, - overlap_filter_strategy=sv.OverlapFilter.NON_MAX_SUPPRESSION, -) - -detections = slicer(image)`}}),{c(){h(e.$$.fragment)},l(s){b(e.$$.fragment,s)},m(s,i){v(e,s,i),t=!0},p:z,i(s){t||($(e.$$.fragment,s),t=!0)},o(s){_(e.$$.fragment,s),t=!1},d(s){E(e,s)}}}function Xs(n){let e,t;return e=new D({props:{code:`frames_generator = sv.get_video_frames_generator(source_path=) -model = get_model("yolov8s-640") -tracker = sv.ByteTrack() - -polygon = np.array([[100, 200], [200, 100], [300, 200], [200, 300]]) -polygon_zone = sv.PolygonZone(polygon=polygon) - -for frame in frames_generator: - results = model.infer(frame)[0] - detections = sv.Detections.from_inference(results) - detections = tracker.update_with_detections(detections) - is_detections_in_zone = polygon_zone.trigger(detections) - print(polygon_zone.current_count)`}}),{c(){h(e.$$.fragment)},l(s){b(e.$$.fragment,s)},m(s,i){v(e,s,i),t=!0},p:z,i(s){t||($(e.$$.fragment,s),t=!0)},o(s){_(e.$$.fragment,s),t=!1},d(s){E(e,s)}}}function qs(n){let e,t,s,i,a;return t=new K({props:{header:"Detect Small Objects",$$slots:{default:[Ys]},$$scope:{ctx:n}}}),i=new K({props:{header:"Count objects inside PolygonZone",$$slots:{default:[Xs]},$$scope:{ctx:n}}}),{c(){e=I("div"),h(t.$$.fragment),s=y(),h(i.$$.fragment),this.h()},l(r){e=T(r,"DIV",{slot:!0});var o=H(e);b(t.$$.fragment,o),s=S(o),b(i.$$.fragment,o),o.forEach(p),this.h()},h(){L(e,"slot","col2")},m(r,o){R(r,e,o),v(t,e,null),A(e,s),v(i,e,null),a=!0},p(r,o){const l={};o&1&&(l.$$scope={dirty:o,ctx:r}),t.$set(l);const c={};o&1&&(c.$$scope={dirty:o,ctx:r}),i.$set(c)},i(r){a||($(t.$$.fragment,r),$(i.$$.fragment,r),a=!0)},o(r){_(t.$$.fragment,r),_(i.$$.fragment,r),a=!1},d(r){r&&p(e),E(t),E(i)}}}function Zs(n){let e,t;return e=new D({props:{code:`frames_generator = sv.get_video_frames_generator() -model = get_model("yolov8s-640") - -csv_sink = sv.CSVSink("out.csv") -with csv_sink as sink: - for frame in frames_generator: - results = model.infer(frame)[0] - detections = sv.Detections.from_inference(results) - sink.append( - detections, custom_data={"":""})`}}),{c(){h(e.$$.fragment)},l(s){b(e.$$.fragment,s)},m(s,i){v(e,s,i),t=!0},p:z,i(s){t||($(e.$$.fragment,s),t=!0)},o(s){_(e.$$.fragment,s),t=!1},d(s){E(e,s)}}}function Js(n){let e,t;return e=new D({props:{code:`frames_generator = sv.get_video_frames_generator() -model = get_model("yolov8s-640") - -json_sink = sv.JSONSink("out.json") -with json_sink as sink: - for frame in frames_generator: - results = model.infer(frame)[0] - detections = sv.Detections.from_inference(results) - sink.append( - detections, custom_data={"":""})`}}),{c(){h(e.$$.fragment)},l(s){b(e.$$.fragment,s)},m(s,i){v(e,s,i),t=!0},p:z,i(s){t||($(e.$$.fragment,s),t=!0)},o(s){_(e.$$.fragment,s),t=!1},d(s){E(e,s)}}}function Qs(n){let e,t,s,i,a;return t=new K({props:{header:"Save Detections to CSV",$$slots:{default:[Zs]},$$scope:{ctx:n}}}),i=new K({props:{header:"Save Detections to JSON",$$slots:{default:[Js]},$$scope:{ctx:n}}}),{c(){e=I("div"),h(t.$$.fragment),s=y(),h(i.$$.fragment),this.h()},l(r){e=T(r,"DIV",{slot:!0});var o=H(e);b(t.$$.fragment,o),s=S(o),b(i.$$.fragment,o),o.forEach(p),this.h()},h(){L(e,"slot","col1")},m(r,o){R(r,e,o),v(t,e,null),A(e,s),v(i,e,null),a=!0},p(r,o){const l={};o&1&&(l.$$scope={dirty:o,ctx:r}),t.$set(l);const c={};o&1&&(c.$$scope={dirty:o,ctx:r}),i.$set(c)},i(r){a||($(t.$$.fragment,r),$(i.$$.fragment,r),a=!0)},o(r){_(t.$$.fragment,r),_(i.$$.fragment,r),a=!1},d(r){r&&p(e),E(t),E(i)}}}function er(n){let e,t,s,i;return e=new D({props:{code:"pip install peft -q",isBash:!0}}),s=new D({props:{code:`from inference.models.paligemma.paligemma import PaliGemma -from PIL import Image - -image = Image.open("dog.jpeg") -prompt = "Detect the dog." - -pg = PaliGemma(model_id= api_key="") -results = pg.predict(image, prompt) - -detections = sv.Detections.from_lmm( - sv.LMM.PALIGEMMA, - results, - resolution_wh=(1000, 1000), - classes=["cat", "dog"] -) -`}}),{c(){h(e.$$.fragment),t=y(),h(s.$$.fragment)},l(a){b(e.$$.fragment,a),t=S(a),b(s.$$.fragment,a)},m(a,r){v(e,a,r),R(a,t,r),v(s,a,r),i=!0},p:z,i(a){i||($(e.$$.fragment,a),$(s.$$.fragment,a),i=!0)},o(a){_(e.$$.fragment,a),_(s.$$.fragment,a),i=!1},d(a){a&&p(t),E(e,a),E(s,a)}}}function tr(n){let e,t;return e=new D({props:{code:`dataset = sv.DetectionDataset.from_yolo("") - -model = get_model("yolov8s-640") -def callback(image: np.ndarray) -> sv.Detections: - results = model.infer(image)[0] - return sv.Detections.from_inference(results) - -confusion_matrix = sv.ConfusionMatrix.benchmark( - dataset=dataset, callback=callback -) -print(confusion_matrix.matrix) - `}}),{c(){h(e.$$.fragment)},l(s){b(e.$$.fragment,s)},m(s,i){v(e,s,i),t=!0},p:z,i(s){t||($(e.$$.fragment,s),t=!0)},o(s){_(e.$$.fragment,s),t=!1},d(s){E(e,s)}}}function nr(n){let e,t,s,i,a;return t=new K({props:{header:"Run a fine-tuned LMM",$$slots:{default:[er]},$$scope:{ctx:n}}}),i=new K({props:{header:"Compute Metrics",$$slots:{default:[tr]},$$scope:{ctx:n}}}),{c(){e=I("div"),h(t.$$.fragment),s=y(),h(i.$$.fragment),this.h()},l(r){e=T(r,"DIV",{slot:!0});var o=H(e);b(t.$$.fragment,o),s=S(o),b(i.$$.fragment,o),o.forEach(p),this.h()},h(){L(e,"slot","col2")},m(r,o){R(r,e,o),v(t,e,null),A(e,s),v(i,e,null),a=!0},p(r,o){const l={};o&1&&(l.$$scope={dirty:o,ctx:r}),t.$set(l);const c={};o&1&&(c.$$scope={dirty:o,ctx:r}),i.$set(c)},i(r){a||($(t.$$.fragment,r),$(i.$$.fragment,r),a=!0)},o(r){_(t.$$.fragment,r),_(i.$$.fragment,r),a=!1},d(r){r&&p(e),E(t),E(i)}}}function sr(n){let e,t,s,i,a,r,o,l,c,u,f,g;return e=new D({props:{preface:"Empty detections. Returned by every model when nothing is detected.",code:`empty_detections = sv.Detections.empty() -if empty_detections.is_empty(): - print("Nothing was detected!")`}}),s=new D({props:{preface:"Count detected objects",code:"len(detections)"}}),a=new D({props:{preface:"Loop over detection results",code:`for xyxy, mask, confidence, class_id, tracker_id, data in detections: - print(xyxy, mask, confidence, class_id, tracker_id, data)`}}),o=new D({props:{preface:"Filter detections by class",code:`detections = sv.Detections.from_inference(results) -detections = detections[detections.class_id == 0]`}}),c=new D({props:{preface:"Filter by class name",code:`detections = sv.Detections.from_inference(results) -detections = detections[detections.data["class_name"] == "cat"]`}}),f=new D({props:{preface:"Merge multiple sv.Detections",code:`detections1 = sv.Detections.from_inference(results1) -detections2 = sv.Detections.from_inference(results2) -merged_detections = sv.Detections.merge([detections1, detections2])`}}),{c(){h(e.$$.fragment),t=y(),h(s.$$.fragment),i=y(),h(a.$$.fragment),r=y(),h(o.$$.fragment),l=y(),h(c.$$.fragment),u=y(),h(f.$$.fragment)},l(d){b(e.$$.fragment,d),t=S(d),b(s.$$.fragment,d),i=S(d),b(a.$$.fragment,d),r=S(d),b(o.$$.fragment,d),l=S(d),b(c.$$.fragment,d),u=S(d),b(f.$$.fragment,d)},m(d,w){v(e,d,w),R(d,t,w),v(s,d,w),R(d,i,w),v(a,d,w),R(d,r,w),v(o,d,w),R(d,l,w),v(c,d,w),R(d,u,w),v(f,d,w),g=!0},p:z,i(d){g||($(e.$$.fragment,d),$(s.$$.fragment,d),$(a.$$.fragment,d),$(o.$$.fragment,d),$(c.$$.fragment,d),$(f.$$.fragment,d),g=!0)},o(d){_(e.$$.fragment,d),_(s.$$.fragment,d),_(a.$$.fragment,d),_(o.$$.fragment,d),_(c.$$.fragment,d),_(f.$$.fragment,d),g=!1},d(d){d&&(p(t),p(i),p(r),p(l),p(u)),E(e,d),E(s,d),E(a,d),E(o,d),E(c,d),E(f,d)}}}function rr(n){let e,t,s,i;return e=new D({props:{isBash:!0,preface:"supervision provides a handful of videos for testing",code:'pip install "supervision[assets]" -q'}}),s=new D({props:{code:`from supervision.assets import download_assets, VideoAssets - -download_assets(VideoAssets.VEHICLES) -print(VideoAssets.VEHICLES.value)`}}),{c(){h(e.$$.fragment),t=y(),h(s.$$.fragment)},l(a){b(e.$$.fragment,a),t=S(a),b(s.$$.fragment,a)},m(a,r){v(e,a,r),R(a,t,r),v(s,a,r),i=!0},p:z,i(a){i||($(e.$$.fragment,a),$(s.$$.fragment,a),i=!0)},o(a){_(e.$$.fragment,a),_(s.$$.fragment,a),i=!1},d(a){a&&p(t),E(e,a),E(s,a)}}}function or(n){let e,t,s,i,a;return t=new K({props:{header:"sv.Detections Operations",$$slots:{default:[sr]},$$scope:{ctx:n}}}),i=new K({props:{header:"Video Assets",$$slots:{default:[rr]},$$scope:{ctx:n}}}),{c(){e=I("div"),h(t.$$.fragment),s=y(),h(i.$$.fragment),this.h()},l(r){e=T(r,"DIV",{slot:!0});var o=H(e);b(t.$$.fragment,o),s=S(o),b(i.$$.fragment,o),o.forEach(p),this.h()},h(){L(e,"slot","col1")},m(r,o){R(r,e,o),v(t,e,null),A(e,s),v(i,e,null),a=!0},p(r,o){const l={};o&1&&(l.$$scope={dirty:o,ctx:r}),t.$set(l);const c={};o&1&&(c.$$scope={dirty:o,ctx:r}),i.$set(c)},i(r){a||($(t.$$.fragment,r),$(i.$$.fragment,r),a=!0)},o(r){_(t.$$.fragment,r),_(i.$$.fragment,r),a=!1},d(r){r&&p(e),E(t),E(i)}}}function ir(n){let e,t,s,i,a,r,o,l,c,u;return e=new D({props:{preface:"Crop image",code:"cropped_image = sv.crop_image(image=image, xyxy=[200, 400, 600, 800])"}}),s=new D({props:{preface:"Scale image",code:"scaled_image = sv.scale_image(image=image, scale_factor=0.5)"}}),a=new D({props:{preface:"Resize image",code:`resized_image = sv.resize_image( - image=image, resolution_wh=(1000, 1000), keep_aspect_ratio=True)`}}),o=new D({props:{preface:"Letterbox image (resize + pad)",code:`letterboxed_image = sv.letterbox_image( - image=image, resolution_wh=(1000, 1000))`}}),c=new D({props:{preface:"Overlay image",code:`overlay = np.zeros((400, 400, 3), dtype=np.uint8) -resulting_image = sv.overlay_image( - image=image, overlay=overlay, anchor=(200, 400)`}}),{c(){h(e.$$.fragment),t=y(),h(s.$$.fragment),i=y(),h(a.$$.fragment),r=y(),h(o.$$.fragment),l=y(),h(c.$$.fragment)},l(f){b(e.$$.fragment,f),t=S(f),b(s.$$.fragment,f),i=S(f),b(a.$$.fragment,f),r=S(f),b(o.$$.fragment,f),l=S(f),b(c.$$.fragment,f)},m(f,g){v(e,f,g),R(f,t,g),v(s,f,g),R(f,i,g),v(a,f,g),R(f,r,g),v(o,f,g),R(f,l,g),v(c,f,g),u=!0},p:z,i(f){u||($(e.$$.fragment,f),$(s.$$.fragment,f),$(a.$$.fragment,f),$(o.$$.fragment,f),$(c.$$.fragment,f),u=!0)},o(f){_(e.$$.fragment,f),_(s.$$.fragment,f),_(a.$$.fragment,f),_(o.$$.fragment,f),_(c.$$.fragment,f),u=!1},d(f){f&&(p(t),p(i),p(r),p(l)),E(e,f),E(s,f),E(a,f),E(o,f),E(c,f)}}}function ar(n){let e,t,s,i,a,r;return e=new D({props:{preface:"Install custom branch of supervision",isBash:!0,code:"pip install git+https://github.com/YourName/supervision.git@your-branch"}}),s=new D({props:{preface:"Display image in Colab by converting to PIL",isBash:!0,code:"sv.cv2_to_pillow(frame)"}}),a=new D({props:{preface:"Display image in Colab by plotting with matplotlib",isBash:!0,code:`%matplotlib inline -sv.plot_image(frame)`}}),{c(){h(e.$$.fragment),t=y(),h(s.$$.fragment),i=y(),h(a.$$.fragment)},l(o){b(e.$$.fragment,o),t=S(o),b(s.$$.fragment,o),i=S(o),b(a.$$.fragment,o)},m(o,l){v(e,o,l),R(o,t,l),v(s,o,l),R(o,i,l),v(a,o,l),r=!0},p:z,i(o){r||($(e.$$.fragment,o),$(s.$$.fragment,o),$(a.$$.fragment,o),r=!0)},o(o){_(e.$$.fragment,o),_(s.$$.fragment,o),_(a.$$.fragment,o),r=!1},d(o){o&&(p(t),p(i)),E(e,o),E(s,o),E(a,o)}}}function lr(n){let e,t,s,i,a;return t=new K({props:{header:"Image Utilities",$$slots:{default:[ir]},$$scope:{ctx:n}}}),i=new K({props:{header:"for Google Colab",$$slots:{default:[ar]},$$scope:{ctx:n}}}),{c(){e=I("div"),h(t.$$.fragment),s=y(),h(i.$$.fragment),this.h()},l(r){e=T(r,"DIV",{slot:!0});var o=H(e);b(t.$$.fragment,o),s=S(o),b(i.$$.fragment,o),o.forEach(p),this.h()},h(){L(e,"slot","col2")},m(r,o){R(r,e,o),v(t,e,null),A(e,s),v(i,e,null),a=!0},p(r,o){const l={};o&1&&(l.$$scope={dirty:o,ctx:r}),t.$set(l);const c={};o&1&&(c.$$scope={dirty:o,ctx:r}),i.$set(c)},i(r){a||($(t.$$.fragment,r),$(i.$$.fragment,r),a=!0)},o(r){_(t.$$.fragment,r),_(i.$$.fragment,r),a=!1},d(r){r&&p(e),E(t),E(i)}}}function cr(n){let e,t,s,i,a,r,o,l,c,u,f,g,d,w,M,V,Y,J;return o=new ln({props:{$$slots:{col2:[Is],col1:[Os]},$$scope:{ctx:n}}}),c=new ke({props:{header:"Object Detection & Segmentation",$$slots:{col2:[Ps],col1:[Ns]},$$scope:{ctx:n}}}),f=new ke({props:{header:"Keypoints",$$slots:{col2:[zs],col1:[Vs]},$$scope:{ctx:n}}}),d=new ke({props:{header:"What can supervision do?",$$slots:{col2:[qs],col1:[Ws]},$$scope:{ctx:n}}}),M=new ke({props:{header:"What can supervision do? (continued)",$$slots:{col2:[nr],col1:[Qs]},$$scope:{ctx:n}}}),Y=new ke({props:{header:"Utilities",$$slots:{col2:[lr],col1:[or]},$$scope:{ctx:n}}}),{c(){e=I("meta"),t=I("html"),s=y(),i=I("div"),a=I("br"),r=y(),h(o.$$.fragment),l=y(),h(c.$$.fragment),u=y(),h(f.$$.fragment),g=y(),h(d.$$.fragment),w=y(),h(M.$$.fragment),V=y(),h(Y.$$.fragment),this.h()},l(C){const j=qt("svelte-a04337",document.head);e=T(j,"META",{name:!0,content:!0}),t=T(j,"HTML",{lang:!0}),H(t).forEach(p),j.forEach(p),s=S(C),i=T(C,"DIV",{class:!0});var W=H(i);a=T(W,"BR",{}),r=S(W),b(o.$$.fragment,W),l=S(W),b(c.$$.fragment,W),u=S(W),b(f.$$.fragment,W),g=S(W),b(d.$$.fragment,W),w=S(W),b(M.$$.fragment,W),V=S(W),b(Y.$$.fragment,W),W.forEach(p),this.h()},h(){document.title="Cheatsheet • supervision",L(e,"name","robots"),L(e,"content","noindex nofollow"),L(t,"lang","en"),L(i,"class","justify-center w-full flex flex-col items-center gap-12 pb-36")},m(C,j){A(document.head,e),A(document.head,t),R(C,s,j),R(C,i,j),A(i,a),A(i,r),v(o,i,null),A(i,l),v(c,i,null),A(i,u),v(f,i,null),A(i,g),v(d,i,null),A(i,w),v(M,i,null),A(i,V),v(Y,i,null),J=!0},p(C,[j]){const W={};j&1&&(W.$$scope={dirty:j,ctx:C}),o.$set(W);const xe={};j&1&&(xe.$$scope={dirty:j,ctx:C}),c.$set(xe);const Ae={};j&1&&(Ae.$$scope={dirty:j,ctx:C}),f.$set(Ae);const Me={};j&1&&(Me.$$scope={dirty:j,ctx:C}),d.$set(Me);const ee={};j&1&&(ee.$$scope={dirty:j,ctx:C}),M.$set(ee);const Ee={};j&1&&(Ee.$$scope={dirty:j,ctx:C}),Y.$set(Ee)},i(C){J||($(o.$$.fragment,C),$(c.$$.fragment,C),$(f.$$.fragment,C),$(d.$$.fragment,C),$(M.$$.fragment,C),$(Y.$$.fragment,C),J=!0)},o(C){_(o.$$.fragment,C),_(c.$$.fragment,C),_(f.$$.fragment,C),_(d.$$.fragment,C),_(M.$$.fragment,C),_(Y.$$.fragment,C),J=!1},d(C){C&&(p(s),p(i)),p(e),p(t),E(o),E(c),E(f),E(d),E(M),E(Y)}}}class pr extends ue{constructor(e){super(),ge(this,e,null,cr,fe,{})}}export{pr as component}; diff --git a/_app/immutable/nodes/2.Cskh4VA0.js b/_app/immutable/nodes/2.Cskh4VA0.js new file mode 100644 index 0000000..f8c456e --- /dev/null +++ b/_app/immutable/nodes/2.Cskh4VA0.js @@ -0,0 +1,265 @@ +import{s as fe,W as me,e as T,t as Le,a as y,c as N,b as H,d as Be,f as _,g as S,p as C,V as ht,i as R,h as O,j as Ce,X as $e,Y as _e,Z as he,_ as se,P as be,Q as Ee,$ as et,n as G,a0 as Te,a1 as bt,T as Gt,l as tt,U as Kt,a2 as Wt,m as Yt,R as Xt,a3 as qt}from"../chunks/scheduler.CR9fYKd2.js";import{S as ue,i as ge,a as m,t as $,b as h,d as b,m as v,e as E}from"../chunks/index.CM4teq7i.js";import{b as vt}from"../chunks/paths.CHuV8m5c.js";import{g as Et,a as Zt,t as Jt}from"../chunks/SvelteToast.svelte_svelte_type_style_lang.khwlsV__.js";const Qt=n=>({}),nt=n=>({}),en=n=>({}),st=n=>({});function tn(n){let e,t,s,i,a,r,o,l,c,u;const f=n[2].col1,g=me(f,n,n[1],st),d=n[2].col2,w=me(d,n,n[1],nt);return{c(){e=T("div"),t=T("div"),s=T("h1"),i=Le(n[0]),a=y(),r=T("div"),o=T("div"),g&&g.c(),l=y(),c=T("div"),w&&w.c(),this.h()},l(A){e=N(A,"DIV",{class:!0});var U=H(e);t=N(U,"DIV",{class:!0});var L=H(t);s=N(L,"H1",{});var F=H(s);i=Be(F,n[0]),F.forEach(_),L.forEach(_),a=S(U),r=N(U,"DIV",{class:!0});var V=H(r);o=N(V,"DIV",{class:!0});var J=H(o);g&&g.l(J),J.forEach(_),l=S(V),c=N(V,"DIV",{class:!0});var ae=H(c);w&&w.l(ae),ae.forEach(_),V.forEach(_),U.forEach(_),this.h()},h(){C(t,"class","bg-[#8622FF] text-white p-2 text-2xl font-inter font-bold"),C(o,"class","shrink-0 xl:w-1/2 overflow-hidden"),C(c,"class","border-slate-200 border-l shrink-0 xl:w-1/2 overflow-hidden"),C(r,"class","flex-grow flex flex-col xl:flex-row justify-evenly"),C(e,"class",ht("w-[562px] xl:w-[1124px] pb-2 flex flex-col bg-white page-root overflow-hidden")+" svelte-khlbev")},m(A,U){R(A,e,U),O(e,t),O(t,s),O(s,i),O(e,a),O(e,r),O(r,o),g&&g.m(o,null),O(r,l),O(r,c),w&&w.m(c,null),u=!0},p(A,[U]){(!u||U&1)&&Ce(i,A[0]),g&&g.p&&(!u||U&2)&&$e(g,f,A,A[1],u?he(f,A[1],U,en):_e(A[1]),st),w&&w.p&&(!u||U&2)&&$e(w,d,A,A[1],u?he(d,A[1],U,Qt):_e(A[1]),nt)},i(A){u||(m(g,A),m(w,A),u=!0)},o(A){$(g,A),$(w,A),u=!1},d(A){A&&_(e),g&&g.d(A),w&&w.d(A)}}}function nn(n,e,t){let{$$slots:s={},$$scope:i}=e,{header:a}=e;return n.$$set=r=>{"header"in r&&t(0,a=r.header),"$$scope"in r&&t(1,i=r.$$scope)},[a,i,s]}class we extends ue{constructor(e){super(),ge(this,e,nn,tn,fe,{header:0})}}const sn=n=>({}),rt=n=>({}),rn=n=>({}),ot=n=>({});function on(n){let e,t,s=`banner
    Author: + Linas Kondrackis +   + Contributors: + Bhavay Malhota +    supervision v0.21.0 +   + July 2, 2024
    `,i,a,r,o,l,c;const u=n[1].col1,f=me(u,n,n[0],ot),g=n[1].col2,d=me(g,n,n[0],rt);return{c(){e=T("div"),t=T("div"),t.innerHTML=s,i=y(),a=T("div"),r=T("div"),f&&f.c(),o=y(),l=T("div"),d&&d.c(),this.h()},l(w){e=N(w,"DIV",{class:!0});var A=H(e);t=N(A,"DIV",{class:!0,"data-svelte-h":!0}),se(t)!=="svelte-1t84lpn"&&(t.innerHTML=s),i=S(A),a=N(A,"DIV",{class:!0});var U=H(a);r=N(U,"DIV",{class:!0});var L=H(r);f&&f.l(L),L.forEach(_),o=S(U),l=N(U,"DIV",{class:!0});var F=H(l);d&&d.l(F),F.forEach(_),U.forEach(_),A.forEach(_),this.h()},h(){C(t,"class","p-1 flex justify-center flex-col items-center mb-2"),C(r,"class","shrink-0 xl:w-1/2 overflow-hidden"),C(l,"class","border-slate-200 border-l shrink-0 xl:w-1/2 overflow-hidden"),C(a,"class","flex-grow flex flex-col xl:flex-row justify-evenly border-"),C(e,"class",ht("w-[562px] xl:w-[1124px] pb-2 flex flex-col bg-white page-root overflow-hidden")+" svelte-khlbev")},m(w,A){R(w,e,A),O(e,t),O(e,i),O(e,a),O(a,r),f&&f.m(r,null),O(a,o),O(a,l),d&&d.m(l,null),c=!0},p(w,[A]){f&&f.p&&(!c||A&1)&&$e(f,u,w,w[0],c?he(u,w[0],A,rn):_e(w[0]),ot),d&&d.p&&(!c||A&1)&&$e(d,g,w,w[0],c?he(g,w[0],A,sn):_e(w[0]),rt)},i(w){c||(m(f,w),m(d,w),c=!0)},o(w){$(f,w),$(d,w),c=!1},d(w){w&&_(e),f&&f.d(w),d&&d.d(w)}}}function an(n,e,t){let{$$slots:s={},$$scope:i}=e;return n.$$set=a=>{"$$scope"in a&&t(0,i=a.$$scope)},[i,s]}class ln extends ue{constructor(e){super(),ge(this,e,an,on,fe,{})}}function cn(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function wt(n){return n instanceof Map?n.clear=n.delete=n.set=function(){throw new Error("map is read-only")}:n instanceof Set&&(n.add=n.clear=n.delete=function(){throw new Error("set is read-only")}),Object.freeze(n),Object.getOwnPropertyNames(n).forEach(e=>{const t=n[e],s=typeof t;(s==="object"||s==="function")&&!Object.isFrozen(t)&&wt(t)}),n}class it{constructor(e){e.data===void 0&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function kt(n){return n.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function ie(n,...e){const t=Object.create(null);for(const s in n)t[s]=n[s];return e.forEach(function(s){for(const i in s)t[i]=s[i]}),t}const fn="
    ",at=n=>!!n.scope,un=(n,{prefix:e})=>{if(n.startsWith("language:"))return n.replace("language:","language-");if(n.includes(".")){const t=n.split(".");return[`${e}${t.shift()}`,...t.map((s,i)=>`${s}${"_".repeat(i+1)}`)].join(" ")}return`${e}${n}`};class gn{constructor(e,t){this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=kt(e)}openNode(e){if(!at(e))return;const t=un(e.scope,{prefix:this.classPrefix});this.span(t)}closeNode(e){at(e)&&(this.buffer+=fn)}value(){return this.buffer}span(e){this.buffer+=``}}const lt=(n={})=>{const e={children:[]};return Object.assign(e,n),e};class Fe{constructor(){this.rootNode=lt(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){const t=lt({scope:e});this.add(t),this.stack.push(t)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,t){return typeof t=="string"?e.addText(t):t.children&&(e.openNode(t),t.children.forEach(s=>this._walk(e,s)),e.closeNode(t)),e}static _collapse(e){typeof e!="string"&&e.children&&(e.children.every(t=>typeof t=="string")?e.children=[e.children.join("")]:e.children.forEach(t=>{Fe._collapse(t)}))}}class dn extends Fe{constructor(e){super(),this.options=e}addText(e){e!==""&&this.add(e)}startScope(e){this.openNode(e)}endScope(){this.closeNode()}__addSublanguage(e,t){const s=e.root;t&&(s.scope=`language:${t}`),this.add(s)}toHTML(){return new gn(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function ke(n){return n?typeof n=="string"?n:n.source:null}function yt(n){return de("(?=",n,")")}function pn(n){return de("(?:",n,")*")}function mn(n){return de("(?:",n,")?")}function de(...n){return n.map(t=>ke(t)).join("")}function $n(n){const e=n[n.length-1];return typeof e=="object"&&e.constructor===Object?(n.splice(n.length-1,1),e):{}}function ze(...n){return"("+($n(n).capture?"":"?:")+n.map(s=>ke(s)).join("|")+")"}function St(n){return new RegExp(n.toString()+"|").exec("").length-1}function _n(n,e){const t=n&&n.exec(e);return t&&t.index===0}const hn=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function Ge(n,{joinWith:e}){let t=0;return n.map(s=>{t+=1;const i=t;let a=ke(s),r="";for(;a.length>0;){const o=hn.exec(a);if(!o){r+=a;break}r+=a.substring(0,o.index),a=a.substring(o.index+o[0].length),o[0][0]==="\\"&&o[1]?r+="\\"+String(Number(o[1])+i):(r+=o[0],o[0]==="("&&t++)}return r}).map(s=>`(${s})`).join(e)}const bn=/\b\B/,xt="[a-zA-Z]\\w*",Ke="[a-zA-Z_]\\w*",At="\\b\\d+(\\.\\d+)?",Ot="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",Mt="\\b(0b[01]+)",vn="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",En=(n={})=>{const e=/^#![ ]*\//;return n.binary&&(n.begin=de(e,/.*\b/,n.binary,/\b.*/)),ie({scope:"meta",begin:e,end:/$/,relevance:0,"on:begin":(t,s)=>{t.index!==0&&s.ignoreMatch()}},n)},ye={begin:"\\\\[\\s\\S]",relevance:0},wn={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[ye]},kn={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[ye]},yn={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},Pe=function(n,e,t={}){const s=ie({scope:"comment",begin:n,end:e,contains:[]},t);s.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const i=ze("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return s.contains.push({begin:de(/[ ]+/,"(",i,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),s},Sn=Pe("//","$"),xn=Pe("/\\*","\\*/"),An=Pe("#","$"),On={scope:"number",begin:At,relevance:0},Mn={scope:"number",begin:Ot,relevance:0},Rn={scope:"number",begin:Mt,relevance:0},Dn={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[ye,{begin:/\[/,end:/\]/,relevance:0,contains:[ye]}]},In={scope:"title",begin:xt,relevance:0},Tn={scope:"title",begin:Ke,relevance:0},Nn={begin:"\\.\\s*"+Ke,relevance:0},Ln=function(n){return Object.assign(n,{"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}})};var Ie=Object.freeze({__proto__:null,APOS_STRING_MODE:wn,BACKSLASH_ESCAPE:ye,BINARY_NUMBER_MODE:Rn,BINARY_NUMBER_RE:Mt,COMMENT:Pe,C_BLOCK_COMMENT_MODE:xn,C_LINE_COMMENT_MODE:Sn,C_NUMBER_MODE:Mn,C_NUMBER_RE:Ot,END_SAME_AS_BEGIN:Ln,HASH_COMMENT_MODE:An,IDENT_RE:xt,MATCH_NOTHING_RE:bn,METHOD_GUARD:Nn,NUMBER_MODE:On,NUMBER_RE:At,PHRASAL_WORDS_MODE:yn,QUOTE_STRING_MODE:kn,REGEXP_MODE:Dn,RE_STARTERS_RE:vn,SHEBANG:En,TITLE_MODE:In,UNDERSCORE_IDENT_RE:Ke,UNDERSCORE_TITLE_MODE:Tn});function Bn(n,e){n.input[n.index-1]==="."&&e.ignoreMatch()}function Cn(n,e){n.className!==void 0&&(n.scope=n.className,delete n.className)}function Pn(n,e){e&&n.beginKeywords&&(n.begin="\\b("+n.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",n.__beforeBegin=Bn,n.keywords=n.keywords||n.beginKeywords,delete n.beginKeywords,n.relevance===void 0&&(n.relevance=0))}function Hn(n,e){Array.isArray(n.illegal)&&(n.illegal=ze(...n.illegal))}function jn(n,e){if(n.match){if(n.begin||n.end)throw new Error("begin & end are not supported with match");n.begin=n.match,delete n.match}}function Un(n,e){n.relevance===void 0&&(n.relevance=1)}const Vn=(n,e)=>{if(!n.beforeMatch)return;if(n.starts)throw new Error("beforeMatch cannot be used with starts");const t=Object.assign({},n);Object.keys(n).forEach(s=>{delete n[s]}),n.keywords=t.keywords,n.begin=de(t.beforeMatch,yt(t.begin)),n.starts={relevance:0,contains:[Object.assign(t,{endsParent:!0})]},n.relevance=0,delete t.beforeMatch},Fn=["of","and","for","in","not","or","if","then","parent","list","value"],zn="keyword";function Rt(n,e,t=zn){const s=Object.create(null);return typeof n=="string"?i(t,n.split(" ")):Array.isArray(n)?i(t,n):Object.keys(n).forEach(function(a){Object.assign(s,Rt(n[a],e,a))}),s;function i(a,r){e&&(r=r.map(o=>o.toLowerCase())),r.forEach(function(o){const l=o.split("|");s[l[0]]=[a,Gn(l[0],l[1])]})}}function Gn(n,e){return e?Number(e):Kn(n)?0:1}function Kn(n){return Fn.includes(n.toLowerCase())}const ct={},ce=n=>{console.error(n)},ft=(n,...e)=>{console.log(`WARN: ${n}`,...e)},pe=(n,e)=>{ct[`${n}/${e}`]||(console.log(`Deprecated as of ${n}. ${e}`),ct[`${n}/${e}`]=!0)},Ne=new Error;function Dt(n,e,{key:t}){let s=0;const i=n[t],a={},r={};for(let o=1;o<=e.length;o++)r[o+s]=i[o],a[o+s]=!0,s+=St(e[o-1]);n[t]=r,n[t]._emit=a,n[t]._multi=!0}function Wn(n){if(Array.isArray(n.begin)){if(n.skip||n.excludeBegin||n.returnBegin)throw ce("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),Ne;if(typeof n.beginScope!="object"||n.beginScope===null)throw ce("beginScope must be object"),Ne;Dt(n,n.begin,{key:"beginScope"}),n.begin=Ge(n.begin,{joinWith:""})}}function Yn(n){if(Array.isArray(n.end)){if(n.skip||n.excludeEnd||n.returnEnd)throw ce("skip, excludeEnd, returnEnd not compatible with endScope: {}"),Ne;if(typeof n.endScope!="object"||n.endScope===null)throw ce("endScope must be object"),Ne;Dt(n,n.end,{key:"endScope"}),n.end=Ge(n.end,{joinWith:""})}}function Xn(n){n.scope&&typeof n.scope=="object"&&n.scope!==null&&(n.beginScope=n.scope,delete n.scope)}function qn(n){Xn(n),typeof n.beginScope=="string"&&(n.beginScope={_wrap:n.beginScope}),typeof n.endScope=="string"&&(n.endScope={_wrap:n.endScope}),Wn(n),Yn(n)}function Zn(n){function e(r,o){return new RegExp(ke(r),"m"+(n.case_insensitive?"i":"")+(n.unicodeRegex?"u":"")+(o?"g":""))}class t{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(o,l){l.position=this.position++,this.matchIndexes[this.matchAt]=l,this.regexes.push([l,o]),this.matchAt+=St(o)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const o=this.regexes.map(l=>l[1]);this.matcherRe=e(Ge(o,{joinWith:"|"}),!0),this.lastIndex=0}exec(o){this.matcherRe.lastIndex=this.lastIndex;const l=this.matcherRe.exec(o);if(!l)return null;const c=l.findIndex((f,g)=>g>0&&f!==void 0),u=this.matchIndexes[c];return l.splice(0,c),Object.assign(l,u)}}class s{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(o){if(this.multiRegexes[o])return this.multiRegexes[o];const l=new t;return this.rules.slice(o).forEach(([c,u])=>l.addRule(c,u)),l.compile(),this.multiRegexes[o]=l,l}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(o,l){this.rules.push([o,l]),l.type==="begin"&&this.count++}exec(o){const l=this.getMatcher(this.regexIndex);l.lastIndex=this.lastIndex;let c=l.exec(o);if(this.resumingScanAtSamePosition()&&!(c&&c.index===this.lastIndex)){const u=this.getMatcher(0);u.lastIndex=this.lastIndex+1,c=u.exec(o)}return c&&(this.regexIndex+=c.position+1,this.regexIndex===this.count&&this.considerAll()),c}}function i(r){const o=new s;return r.contains.forEach(l=>o.addRule(l.begin,{rule:l,type:"begin"})),r.terminatorEnd&&o.addRule(r.terminatorEnd,{type:"end"}),r.illegal&&o.addRule(r.illegal,{type:"illegal"}),o}function a(r,o){const l=r;if(r.isCompiled)return l;[Cn,jn,qn,Vn].forEach(u=>u(r,o)),n.compilerExtensions.forEach(u=>u(r,o)),r.__beforeBegin=null,[Pn,Hn,Un].forEach(u=>u(r,o)),r.isCompiled=!0;let c=null;return typeof r.keywords=="object"&&r.keywords.$pattern&&(r.keywords=Object.assign({},r.keywords),c=r.keywords.$pattern,delete r.keywords.$pattern),c=c||/\w+/,r.keywords&&(r.keywords=Rt(r.keywords,n.case_insensitive)),l.keywordPatternRe=e(c,!0),o&&(r.begin||(r.begin=/\B|\b/),l.beginRe=e(l.begin),!r.end&&!r.endsWithParent&&(r.end=/\B|\b/),r.end&&(l.endRe=e(l.end)),l.terminatorEnd=ke(l.end)||"",r.endsWithParent&&o.terminatorEnd&&(l.terminatorEnd+=(r.end?"|":"")+o.terminatorEnd)),r.illegal&&(l.illegalRe=e(r.illegal)),r.contains||(r.contains=[]),r.contains=[].concat(...r.contains.map(function(u){return Jn(u==="self"?r:u)})),r.contains.forEach(function(u){a(u,l)}),r.starts&&a(r.starts,o),l.matcher=i(l),l}if(n.compilerExtensions||(n.compilerExtensions=[]),n.contains&&n.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return n.classNameAliases=ie(n.classNameAliases||{}),a(n)}function It(n){return n?n.endsWithParent||It(n.starts):!1}function Jn(n){return n.variants&&!n.cachedVariants&&(n.cachedVariants=n.variants.map(function(e){return ie(n,{variants:null},e)})),n.cachedVariants?n.cachedVariants:It(n)?ie(n,{starts:n.starts?ie(n.starts):null}):Object.isFrozen(n)?ie(n):n}var Qn="11.9.0";class es extends Error{constructor(e,t){super(e),this.name="HTMLInjectionError",this.html=t}}const Ve=kt,ut=ie,gt=Symbol("nomatch"),ts=7,Tt=function(n){const e=Object.create(null),t=Object.create(null),s=[];let i=!0;const a="Could not find the language '{}', did you forget to load/include a language module?",r={disableAutodetect:!0,name:"Plain text",contains:[]};let o={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:dn};function l(p){return o.noHighlightRe.test(p)}function c(p){let M=p.className+" ";M+=p.parentNode?p.parentNode.className:"";const P=o.languageDetectRe.exec(M);if(P){const z=re(P[1]);return z||(ft(a.replace("{}",P[1])),ft("Falling back to no-highlight mode for this block.",p)),z?P[1]:"no-highlight"}return M.split(/\s+/).find(z=>l(z)||re(z))}function u(p,M,P){let z="",Y="";typeof M=="object"?(z=p,P=M.ignoreIllegals,Y=M.language):(pe("10.7.0","highlight(lang, code, ...args) has been deprecated."),pe("10.7.0",`Please use highlight(code, options) instead. +https://github.com/highlightjs/highlight.js/issues/2277`),Y=p,z=M),P===void 0&&(P=!0);const Q={code:z,language:Y};Oe("before:highlight",Q);const oe=Q.result?Q.result:f(Q.language,Q.code,P);return oe.code=Q.code,Oe("after:highlight",oe),oe}function f(p,M,P,z){const Y=Object.create(null);function Q(k,x){return k.keywords[x]}function oe(){if(!I.keywords){X.addText(K);return}let k=0;I.keywordPatternRe.lastIndex=0;let x=I.keywordPatternRe.exec(K),B="";for(;x;){B+=K.substring(k,x.index);const j=te.case_insensitive?x[0].toLowerCase():x[0],q=Q(I,j);if(q){const[ne,Ft]=q;if(X.addText(B),B="",Y[j]=(Y[j]||0)+1,Y[j]<=ts&&(De+=Ft),ne.startsWith("_"))B+=x[0];else{const zt=te.classNameAliases[ne]||ne;ee(x[0],zt)}}else B+=x[0];k=I.keywordPatternRe.lastIndex,x=I.keywordPatternRe.exec(K)}B+=K.substring(k),X.addText(B)}function Me(){if(K==="")return;let k=null;if(typeof I.subLanguage=="string"){if(!e[I.subLanguage]){X.addText(K);return}k=f(I.subLanguage,K,!0,Qe[I.subLanguage]),Qe[I.subLanguage]=k._top}else k=d(K,I.subLanguage.length?I.subLanguage:null);I.relevance>0&&(De+=k.relevance),X.__addSublanguage(k._emitter,k.language)}function Z(){I.subLanguage!=null?Me():oe(),K=""}function ee(k,x){k!==""&&(X.startScope(x),X.addText(k),X.endScope())}function Xe(k,x){let B=1;const j=x.length-1;for(;B<=j;){if(!k._emit[B]){B++;continue}const q=te.classNameAliases[k[B]]||k[B],ne=x[B];q?ee(ne,q):(K=ne,oe(),K=""),B++}}function qe(k,x){return k.scope&&typeof k.scope=="string"&&X.openNode(te.classNameAliases[k.scope]||k.scope),k.beginScope&&(k.beginScope._wrap?(ee(K,te.classNameAliases[k.beginScope._wrap]||k.beginScope._wrap),K=""):k.beginScope._multi&&(Xe(k.beginScope,x),K="")),I=Object.create(k,{parent:{value:I}}),I}function Ze(k,x,B){let j=_n(k.endRe,B);if(j){if(k["on:end"]){const q=new it(k);k["on:end"](x,q),q.isMatchIgnored&&(j=!1)}if(j){for(;k.endsParent&&k.parent;)k=k.parent;return k}}if(k.endsWithParent)return Ze(k.parent,x,B)}function Pt(k){return I.matcher.regexIndex===0?(K+=k[0],1):(Ue=!0,0)}function Ht(k){const x=k[0],B=k.rule,j=new it(B),q=[B.__beforeBegin,B["on:begin"]];for(const ne of q)if(ne&&(ne(k,j),j.isMatchIgnored))return Pt(x);return B.skip?K+=x:(B.excludeBegin&&(K+=x),Z(),!B.returnBegin&&!B.excludeBegin&&(K=x)),qe(B,k),B.returnBegin?0:x.length}function jt(k){const x=k[0],B=M.substring(k.index),j=Ze(I,k,B);if(!j)return gt;const q=I;I.endScope&&I.endScope._wrap?(Z(),ee(x,I.endScope._wrap)):I.endScope&&I.endScope._multi?(Z(),Xe(I.endScope,k)):q.skip?K+=x:(q.returnEnd||q.excludeEnd||(K+=x),Z(),q.excludeEnd&&(K=x));do I.scope&&X.closeNode(),!I.skip&&!I.subLanguage&&(De+=I.relevance),I=I.parent;while(I!==j.parent);return j.starts&&qe(j.starts,k),q.returnEnd?0:x.length}function Ut(){const k=[];for(let x=I;x!==te;x=x.parent)x.scope&&k.unshift(x.scope);k.forEach(x=>X.openNode(x))}let Re={};function Je(k,x){const B=x&&x[0];if(K+=k,B==null)return Z(),0;if(Re.type==="begin"&&x.type==="end"&&Re.index===x.index&&B===""){if(K+=M.slice(x.index,x.index+1),!i){const j=new Error(`0 width match regex (${p})`);throw j.languageName=p,j.badRule=Re.rule,j}return 1}if(Re=x,x.type==="begin")return Ht(x);if(x.type==="illegal"&&!P){const j=new Error('Illegal lexeme "'+B+'" for mode "'+(I.scope||"")+'"');throw j.mode=I,j}else if(x.type==="end"){const j=jt(x);if(j!==gt)return j}if(x.type==="illegal"&&B==="")return 1;if(je>1e5&&je>x.index*3)throw new Error("potential infinite loop, way more iterations than matches");return K+=B,B.length}const te=re(p);if(!te)throw ce(a.replace("{}",p)),new Error('Unknown language: "'+p+'"');const Vt=Zn(te);let He="",I=z||Vt;const Qe={},X=new o.__emitter(o);Ut();let K="",De=0,le=0,je=0,Ue=!1;try{if(te.__emitTokens)te.__emitTokens(M,X);else{for(I.matcher.considerAll();;){je++,Ue?Ue=!1:I.matcher.considerAll(),I.matcher.lastIndex=le;const k=I.matcher.exec(M);if(!k)break;const x=M.substring(le,k.index),B=Je(x,k);le=k.index+B}Je(M.substring(le))}return X.finalize(),He=X.toHTML(),{language:p,value:He,relevance:De,illegal:!1,_emitter:X,_top:I}}catch(k){if(k.message&&k.message.includes("Illegal"))return{language:p,value:Ve(M),illegal:!0,relevance:0,_illegalBy:{message:k.message,index:le,context:M.slice(le-100,le+100),mode:k.mode,resultSoFar:He},_emitter:X};if(i)return{language:p,value:Ve(M),illegal:!1,relevance:0,errorRaised:k,_emitter:X,_top:I};throw k}}function g(p){const M={value:Ve(p),illegal:!1,relevance:0,_top:r,_emitter:new o.__emitter(o)};return M._emitter.addText(p),M}function d(p,M){M=M||o.languages||Object.keys(e);const P=g(p),z=M.filter(re).filter(Ye).map(Z=>f(Z,p,!1));z.unshift(P);const Y=z.sort((Z,ee)=>{if(Z.relevance!==ee.relevance)return ee.relevance-Z.relevance;if(Z.language&&ee.language){if(re(Z.language).supersetOf===ee.language)return 1;if(re(ee.language).supersetOf===Z.language)return-1}return 0}),[Q,oe]=Y,Me=Q;return Me.secondBest=oe,Me}function w(p,M,P){const z=M&&t[M]||P;p.classList.add("hljs"),p.classList.add(`language-${z}`)}function A(p){let M=null;const P=c(p);if(l(P))return;if(Oe("before:highlightElement",{el:p,language:P}),p.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",p);return}if(p.children.length>0&&(o.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(p)),o.throwUnescapedHTML))throw new es("One of your code blocks includes unescaped HTML.",p.innerHTML);M=p;const z=M.textContent,Y=P?u(z,{language:P,ignoreIllegals:!0}):d(z);p.innerHTML=Y.value,p.dataset.highlighted="yes",w(p,P,Y.language),p.result={language:Y.language,re:Y.relevance,relevance:Y.relevance},Y.secondBest&&(p.secondBest={language:Y.secondBest.language,relevance:Y.secondBest.relevance}),Oe("after:highlightElement",{el:p,result:Y,text:z})}function U(p){o=ut(o,p)}const L=()=>{J(),pe("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function F(){J(),pe("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let V=!1;function J(){if(document.readyState==="loading"){V=!0;return}document.querySelectorAll(o.cssSelector).forEach(A)}function ae(){V&&J()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",ae,!1);function Se(p,M){let P=null;try{P=M(n)}catch(z){if(ce("Language definition for '{}' could not be registered.".replace("{}",p)),i)ce(z);else throw z;P=r}P.name||(P.name=p),e[p]=P,P.rawDefinition=M.bind(null,n),P.aliases&&We(P.aliases,{languageName:p})}function xe(p){delete e[p];for(const M of Object.keys(t))t[M]===p&&delete t[M]}function Ae(){return Object.keys(e)}function re(p){return p=(p||"").toLowerCase(),e[p]||e[t[p]]}function We(p,{languageName:M}){typeof p=="string"&&(p=[p]),p.forEach(P=>{t[P.toLowerCase()]=M})}function Ye(p){const M=re(p);return M&&!M.disableAutodetect}function Nt(p){p["before:highlightBlock"]&&!p["before:highlightElement"]&&(p["before:highlightElement"]=M=>{p["before:highlightBlock"](Object.assign({block:M.el},M))}),p["after:highlightBlock"]&&!p["after:highlightElement"]&&(p["after:highlightElement"]=M=>{p["after:highlightBlock"](Object.assign({block:M.el},M))})}function Lt(p){Nt(p),s.push(p)}function Bt(p){const M=s.indexOf(p);M!==-1&&s.splice(M,1)}function Oe(p,M){const P=p;s.forEach(function(z){z[P]&&z[P](M)})}function Ct(p){return pe("10.7.0","highlightBlock will be removed entirely in v12.0"),pe("10.7.0","Please use highlightElement now."),A(p)}Object.assign(n,{highlight:u,highlightAuto:d,highlightAll:J,highlightElement:A,highlightBlock:Ct,configure:U,initHighlighting:L,initHighlightingOnLoad:F,registerLanguage:Se,unregisterLanguage:xe,listLanguages:Ae,getLanguage:re,registerAliases:We,autoDetection:Ye,inherit:ut,addPlugin:Lt,removePlugin:Bt}),n.debugMode=function(){i=!1},n.safeMode=function(){i=!0},n.versionString=Qn,n.regex={concat:de,lookahead:yt,either:ze,optional:mn,anyNumberOfTimes:pn};for(const p in Ie)typeof Ie[p]=="object"&&wt(Ie[p]);return Object.assign(n,Ie),n},ve=Tt({});ve.newInstance=()=>Tt({});var ns=ve;ve.HighlightJS=ve;ve.default=ve;const dt=cn(ns);function ss(n){let e;return{c(){e=Le(n[0])},l(t){e=Be(t,n[0])},m(t,s){R(t,e,s)},p(t,s){s&1&&Ce(e,t[0])},d(t){t&&_(e)}}}function rs(n){let e,t;return{c(){e=new Gt(!1),t=tt(),this.h()},l(s){e=Kt(s,!1),t=tt(),this.h()},h(){e.a=t},m(s,i){e.m(n[1],s,i),R(s,t,i)},p(s,i){i&2&&e.p(s[1])},d(s){s&&(_(t),e.d())}}}function os(n){let e,t;function s(l,c){return l[1]?rs:ss}let i=s(n),a=i(n),r=[{"data-language":n[2]},n[4]],o={};for(let l=0;l{e=be(be({},e),bt(c)),t(4,i=Te(e,s)),"code"in c&&t(0,a=c.code),"highlighted"in c&&t(1,r=c.highlighted),"languageName"in c&&t(2,o=c.languageName),"langtag"in c&&t(3,l=c.langtag)},[a,r,o,l,i]}class as extends ue{constructor(e){super(),ge(this,e,is,os,fe,{code:0,highlighted:1,languageName:2,langtag:3})}}const ls=n=>({highlighted:n&8}),pt=n=>({highlighted:n[3]});function cs(n){let e,t;const s=[n[4],{languageName:n[0].name},{langtag:n[2]},{highlighted:n[3]},{code:n[1]}];let i={};for(let a=0;a{f&&u("highlight",{highlighted:f})}),n.$$set=g=>{e=be(be({},e),bt(g)),t(4,i=Te(e,s)),"language"in g&&t(0,o=g.language),"code"in g&&t(1,l=g.code),"langtag"in g&&t(2,c=g.langtag),"$$scope"in g&&t(5,r=g.$$scope)},n.$$.update=()=>{n.$$.dirty&3&&(dt.registerLanguage(o.name,o.register),t(3,f=dt.highlight(l,{language:o.name}).value))},[o,l,c,f,i,r,a]}class gs extends ue{constructor(e){super(),ge(this,e,us,fs,fe,{language:0,code:1,langtag:2})}}function ds(n){const e=n.regex,t=new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*","u"),s=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],o={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:s,built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},l={className:"meta",begin:/^(>>>|\.\.\.) /},c={className:"subst",begin:/\{/,end:/\}/,keywords:o,illegal:/#/},u={begin:/\{\{/,relevance:0},f={className:"string",contains:[n.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[n.BACKSLASH_ESCAPE,l],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[n.BACKSLASH_ESCAPE,l],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[n.BACKSLASH_ESCAPE,l,u,c]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[n.BACKSLASH_ESCAPE,l,u,c]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[n.BACKSLASH_ESCAPE,u,c]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[n.BACKSLASH_ESCAPE,u,c]},n.APOS_STRING_MODE,n.QUOTE_STRING_MODE]},g="[0-9](_?[0-9])*",d=`(\\b(${g}))?\\.(${g})|\\b(${g})\\.`,w=`\\b|${s.join("|")}`,A={className:"number",relevance:0,variants:[{begin:`(\\b(${g})|(${d}))[eE][+-]?(${g})[jJ]?(?=${w})`},{begin:`(${d})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${w})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${w})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${w})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${w})`},{begin:`\\b(${g})[jJ](?=${w})`}]},U={className:"comment",begin:e.lookahead(/# type:/),end:/$/,keywords:o,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},L={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:o,contains:["self",l,A,f,n.HASH_COMMENT_MODE]}]};return c.contains=[f,A,l],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:o,illegal:/(<\/|\?)|=>/,contains:[l,A,{begin:/\bself\b/},{beginKeywords:"if",relevance:0},f,U,n.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,t],scope:{1:"keyword",3:"title.function"},contains:[L]},{variants:[{match:[/\bclass/,/\s+/,t,/\s*/,/\(\s*/,t,/\s*\)/]},{match:[/\bclass/,/\s+/,t]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[A,L,f]}]}}const mt={name:"python",register:ds};function ps(n){const e=n.regex,t={},s={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[t]}]};Object.assign(t,{className:"variable",variants:[{begin:e.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},s]});const i={className:"subst",begin:/\$\(/,end:/\)/,contains:[n.BACKSLASH_ESCAPE]},a={begin:/<<-?\s*(?=\w+)/,starts:{contains:[n.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},r={className:"string",begin:/"/,end:/"/,contains:[n.BACKSLASH_ESCAPE,t,i]};i.contains.push(r);const o={match:/\\"/},l={className:"string",begin:/'/,end:/'/},c={match:/\\'/},u={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},n.NUMBER_MODE,t]},f=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],g=n.SHEBANG({binary:`(${f.join("|")})`,relevance:10}),d={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[n.inherit(n.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},w=["if","then","else","elif","fi","for","while","until","in","do","done","case","esac","function","select"],A=["true","false"],U={match:/(\/[a-z._-]+)+/},L=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],F=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","type","typeset","ulimit","unalias"],V=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],J=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:w,literal:A,built_in:[...L,...F,"set","shopt",...V,...J]},contains:[g,n.SHEBANG(),d,u,n.HASH_COMMENT_MODE,a,U,r,o,l,c,t]}}const $t={name:"bash",register:ps};function _t(n){let e,t;return{c(){e=T("p"),t=Le(n[1]),this.h()},l(s){e=N(s,"P",{class:!0});var i=H(e);t=Be(i,n[1]),i.forEach(_),this.h()},h(){C(e,"class","text-xs px-2 opacity-90")},m(s,i){R(s,e,i),O(e,t)},p(s,i){i&2&&Ce(t,s[1])},d(s){s&&_(e)}}}function ms(n){let e,t,s,i,a,r,o=`Copy`,l,c,u,f=n[1]&&_t(n);return i=new gs({props:{language:n[2]?$t:mt,code:n[0],class:"text-xs opacity-85"}}),{c(){e=T("div"),f&&f.c(),t=y(),s=T("div"),h(i.$$.fragment),a=y(),r=T("button"),r.innerHTML=o,this.h()},l(g){e=N(g,"DIV",{class:!0});var d=H(e);f&&f.l(d),t=S(d),s=N(d,"DIV",{class:!0});var w=H(s);b(i.$$.fragment,w),a=S(w),r=N(w,"BUTTON",{class:!0,"data-svelte-h":!0}),se(r)!=="svelte-hm96ti"&&(r.innerHTML=o),w.forEach(_),d.forEach(_),this.h()},h(){C(r,"class","copy-button svelte-klct9p"),C(s,"class","bg-slate-300 relative"),C(e,"class","bg-[#f2e5ff] mb-2")},m(g,d){R(g,e,d),f&&f.m(e,null),O(e,t),O(e,s),v(i,s,null),O(s,a),O(s,r),l=!0,c||(u=Xt(r,"click",n[3]),c=!0)},p(g,[d]){g[1]?f?f.p(g,d):(f=_t(g),f.c(),f.m(e,t)):f&&(f.d(1),f=null);const w={};d&4&&(w.language=g[2]?$t:mt),d&1&&(w.code=g[0]),i.$set(w)},i(g){l||(m(i.$$.fragment,g),l=!0)},o(g){$(i.$$.fragment,g),l=!1},d(g){g&&_(e),f&&f.d(),E(i),c=!1,u()}}}function $s(n,e,t){let{code:s}=e,{preface:i=""}=e,{isBash:a=!1}=e;function r(){navigator.clipboard.writeText(s),Jt.push("📋 Copied to clipboard!",{theme:{"--toastBackground":"#444","--toastColor":"#fff"}})}return n.$$set=o=>{"code"in o&&t(0,s=o.code),"preface"in o&&t(1,i=o.preface),"isBash"in o&&t(2,a=o.isBash)},[s,i,a,r]}class D extends ue{constructor(e){super(),ge(this,e,$s,ms,fe,{code:0,preface:1,isBash:2})}}function _s(n){let e,t,s,i="›",a,r,o,l;const c=n[2].default,u=me(c,n,n[1],null);return{c(){e=T("div"),t=T("h2"),s=T("span"),s.textContent=i,a=y(),r=Le(n[0]),o=y(),u&&u.c(),this.h()},l(f){e=N(f,"DIV",{class:!0});var g=H(e);t=N(g,"H2",{class:!0});var d=H(t);s=N(d,"SPAN",{class:!0,"data-svelte-h":!0}),se(s)!=="svelte-6hn1qy"&&(s.textContent=i),a=S(d),r=Be(d,n[0]),d.forEach(_),o=S(g),u&&u.l(g),g.forEach(_),this.h()},h(){C(s,"class","text-[#8622FF] text-xl ml-1 mb-1"),C(t,"class","text-xl font-inter"),C(e,"class","flex flex-col")},m(f,g){R(f,e,g),O(e,t),O(t,s),O(t,a),O(t,r),O(e,o),u&&u.m(e,null),l=!0},p(f,[g]){(!l||g&1)&&Ce(r,f[0]),u&&u.p&&(!l||g&2)&&$e(u,c,f,f[1],l?he(c,f[1],g,null):_e(f[1]),null)},i(f){l||(m(u,f),l=!0)},o(f){$(u,f),l=!1},d(f){f&&_(e),u&&u.d(f)}}}function hs(n,e,t){let{$$slots:s={},$$scope:i}=e,{header:a}=e;return n.$$set=r=>{"header"in r&&t(0,a=r.header),"$$scope"in r&&t(1,i=r.$$scope)},[a,i,s]}class W extends ue{constructor(e){super(),ge(this,e,hs,_s,fe,{header:0})}}const bs=[`bounding_box_annotator = sv.BoundingBoxAnnotator() +label_annotator = sv.LabelAnnotator() + +annotated_image = bounding_box_annotator.annotate( + scene=image.copy(), detections=detections) +annotated_image = label_annotator.annotate( + scene=annotated_image, detections=detections) + +sv.plot_image(annotated_image)`],vs=[`mask_annotator = sv.MaskAnnotator() +label_annotator = sv.LabelAnnotator() + +annotated_image = mask_annotator.annotate( + scene=image.copy(), detections=detections) +annotated_image = label_annotator.annotate( + scene=annotated_image, detections=detections) + +sv.plot_image(annotated_image)`],Es=[`vertex_annotator = sv.VertexAnnotator(radius=10) +edge_annotator = sv.EdgeAnnotator(thickness=5) + +annotated_frame = edge_annotator.annotate( + scene=image.copy(), + key_points=key_points +) +annotated_frame = vertex_annotator.annotate( + scene=annotated_frame, + key_points=key_points +)`],ws=[`from inference import get_model + +model = get_model(model_id="yolov8n-640") +results = model.infer(image)[0] +detections = sv.Detections.from_inference(results)`],ks=[`from ultralytics import YOLO + +model = YOLO("yolov8n.pt") +results = model(image)[0] +detections = sv.Detections.from_ultralytics(results)`],ys=[`import torch +from PIL import Image +from transformers import DetrImageProcessor, DetrForObjectDetection + +processor = DetrImageProcessor.from_pretrained("facebook/detr-resnet-50") +model = DetrForObjectDetection.from_pretrained("facebook/detr-resnet-50") + +image = Image.open("dog.jpeg") +inputs = processor(images=image, return_tensors="pt") + +with torch.no_grad(): + outputs = model(**inputs) + +target_size = torch.tensor([[image.size[1], image.size[0]]]) +results = processor.post_process_object_detection( + outputs=outputs, target_sizes=target_size)[0] + +detections = sv.Detections.from_transformers( + transformers_results=results, + id2label=model.config.id2label)`],Ss=[`from inference import get_model + +model = get_model(model_id="yolov8n-seg-640") +results = model.infer(image)[0] +detections = sv.Detections.from_inference(results)`],xs=[`from ultralytics import YOLO + +model = YOLO("yolov8n-seg.pt") +results = model(image)[0] +detections = sv.Detections.from_ultralytics(results)`];function As(n){let e,t='

    Supervision simplifies the process of working with vision models. It offers connectors to popular model libraries, a plethora of visualizers (annotators), powerful post-processing features and an easy learning curve.

    Load image or video » Load the model » Run the model » Annotate';return{c(){e=T("div"),e.innerHTML=t,this.h()},l(s){e=N(s,"DIV",{class:!0,"data-svelte-h":!0}),se(e)!=="svelte-10ber7h"&&(e.innerHTML=t),this.h()},h(){C(e,"class","text-xs xl:text-sm px-2 pb-2")},m(s,i){R(s,e,i)},p:G,d(s){s&&_(e)}}}function Os(n){let e,t,s,i,a,r,o,l,c,u;return e=new D({props:{isBash:!0,code:"pip install supervision inference -q"}}),s=new D({props:{isBash:!0,code:"wget https://media.roboflow.com/notebooks/examples/dog.jpeg"}}),a=new D({props:{code:`import cv2 +import supervision as sv +from inference import get_model`}}),o=new D({props:{code:`image = cv2.imread("dog.jpeg") +model = get_model(model_id="yolov8n-640") +results = model.infer(image)[0] +detections = sv.Detections.from_inference(results)`}}),c=new D({props:{code:`annotated_image = sv.BoundingBoxAnnotator().annotate( + scene=image.copy(), detections=detections +) +annotated_image = sv.LabelAnnotator().annotate( + scene=annotated_image, detections=detections +) +sv.plot_image(annotated_image) +`}}),{c(){h(e.$$.fragment),t=y(),h(s.$$.fragment),i=y(),h(a.$$.fragment),r=y(),h(o.$$.fragment),l=y(),h(c.$$.fragment)},l(f){b(e.$$.fragment,f),t=S(f),b(s.$$.fragment,f),i=S(f),b(a.$$.fragment,f),r=S(f),b(o.$$.fragment,f),l=S(f),b(c.$$.fragment,f)},m(f,g){v(e,f,g),R(f,t,g),v(s,f,g),R(f,i,g),v(a,f,g),R(f,r,g),v(o,f,g),R(f,l,g),v(c,f,g),u=!0},p:G,i(f){u||(m(e.$$.fragment,f),m(s.$$.fragment,f),m(a.$$.fragment,f),m(o.$$.fragment,f),m(c.$$.fragment,f),u=!0)},o(f){$(e.$$.fragment,f),$(s.$$.fragment,f),$(a.$$.fragment,f),$(o.$$.fragment,f),$(c.$$.fragment,f),u=!1},d(f){f&&(_(t),_(i),_(r),_(l)),E(e,f),E(s,f),E(a,f),E(o,f),E(c,f)}}}function Ms(n){let e,t,s,i,a,r,o;return t=new W({props:{header:"Basic Principles",$$slots:{default:[As]},$$scope:{ctx:n}}}),r=new W({props:{header:"Quickstart",$$slots:{default:[Os]},$$scope:{ctx:n}}}),{c(){e=T("div"),h(t.$$.fragment),s=y(),i=T("div"),a=y(),h(r.$$.fragment),this.h()},l(l){e=N(l,"DIV",{slot:!0});var c=H(e);b(t.$$.fragment,c),s=S(c),i=N(c,"DIV",{class:!0}),H(i).forEach(_),a=S(c),b(r.$$.fragment,c),c.forEach(_),this.h()},h(){C(i,"class","mt-2"),C(e,"slot","col1")},m(l,c){R(l,e,c),v(t,e,null),O(e,s),O(e,i),O(e,a),v(r,e,null),o=!0},p(l,c){const u={};c&1&&(u.$$scope={dirty:c,ctx:l}),t.$set(u);const f={};c&1&&(f.$$scope={dirty:c,ctx:l}),r.$set(f)},i(l){o||(m(t.$$.fragment,l),m(r.$$.fragment,l),o=!0)},o(l){$(t.$$.fragment,l),$(r.$$.fragment,l),o=!1},d(l){l&&_(e),E(t),E(r)}}}function Rs(n){let e,t=`
  • sv.Detections: Common class for model both object detection and segmentation. + Contains fields: xyxy, mask, class_id, tracker_id, data. +
  • import supervision as sv: All useful functions available in global scope
  • A selection of models: + Load popular, + fine-tuned, + or Universe models.
  • sv.Detections.from_X: Load from one of 12 sources.
  • Annotators: Draw the detections with one of 20 annotators.
  • More features: This sheet contains < 50% of supervision's features. Find others here!
  • `;return{c(){e=T("ul"),e.innerHTML=t,this.h()},l(s){e=N(s,"UL",{class:!0,"data-svelte-h":!0}),se(e)!=="svelte-1lcxblo"&&(e.innerHTML=t),this.h()},h(){C(e,"class","list-disc list-inside ml-2 svelte-1li3azr")},m(s,i){R(s,e,i)},p:G,d(s){s&&_(e)}}}function Ds(n){let e,t,s,i,a,r;return e=new D({props:{preface:"Load a single image",code:`import cv2 +image = cv2.imread("dog.jpeg")`}}),s=new D({props:{preface:"Iterate over video frames",code:`for frame in sv.get_video_frames_generator(source_path=): + print(frame.shape)`}}),a=new D({props:{preface:"Run a function over every frame, save output",code:`import numpy as np + +def callback(scene: np.ndarray, index: int) -> np.ndarray: + print(f"Processing frame {index}") + return scene; + +sv.process_video( + source_path=, + target_path="out.mp4", + callback=callback)`}}),{c(){h(e.$$.fragment),t=y(),h(s.$$.fragment),i=y(),h(a.$$.fragment)},l(o){b(e.$$.fragment,o),t=S(o),b(s.$$.fragment,o),i=S(o),b(a.$$.fragment,o)},m(o,l){v(e,o,l),R(o,t,l),v(s,o,l),R(o,i,l),v(a,o,l),r=!0},p:G,i(o){r||(m(e.$$.fragment,o),m(s.$$.fragment,o),m(a.$$.fragment,o),r=!0)},o(o){$(e.$$.fragment,o),$(s.$$.fragment,o),$(a.$$.fragment,o),r=!1},d(o){o&&(_(t),_(i)),E(e,o),E(s,o),E(a,o)}}}function Is(n){let e,t,s,i,a,r,o;return t=new W({props:{header:"Core Concepts",$$slots:{default:[Rs]},$$scope:{ctx:n}}}),r=new W({props:{header:"Read images & Videos",$$slots:{default:[Ds]},$$scope:{ctx:n}}}),{c(){e=T("div"),h(t.$$.fragment),s=y(),i=T("div"),a=y(),h(r.$$.fragment),this.h()},l(l){e=N(l,"DIV",{slot:!0});var c=H(e);b(t.$$.fragment,c),s=S(c),i=N(c,"DIV",{class:!0}),H(i).forEach(_),a=S(c),b(r.$$.fragment,c),c.forEach(_),this.h()},h(){C(i,"class","mt-4"),C(e,"slot","col2")},m(l,c){R(l,e,c),v(t,e,null),O(e,s),O(e,i),O(e,a),v(r,e,null),o=!0},p(l,c){const u={};c&1&&(u.$$scope={dirty:c,ctx:l}),t.$set(u);const f={};c&1&&(f.$$scope={dirty:c,ctx:l}),r.$set(f)},i(l){o||(m(t.$$.fragment,l),m(r.$$.fragment,l),o=!0)},o(l){$(t.$$.fragment,l),$(r.$$.fragment,l),o=!1},d(l){l&&_(e),E(t),E(r)}}}function Ts(n){let e,t,s,i,a,r;return e=new D({props:{code:ws[0]}}),s=new D({props:{code:ks[0]}}),a=new D({props:{code:ys[0]}}),{c(){h(e.$$.fragment),t=y(),h(s.$$.fragment),i=y(),h(a.$$.fragment)},l(o){b(e.$$.fragment,o),t=S(o),b(s.$$.fragment,o),i=S(o),b(a.$$.fragment,o)},m(o,l){v(e,o,l),R(o,t,l),v(s,o,l),R(o,i,l),v(a,o,l),r=!0},p:G,i(o){r||(m(e.$$.fragment,o),m(s.$$.fragment,o),m(a.$$.fragment,o),r=!0)},o(o){$(e.$$.fragment,o),$(s.$$.fragment,o),$(a.$$.fragment,o),r=!1},d(o){o&&(_(t),_(i)),E(e,o),E(s,o),E(a,o)}}}function Ns(n){let e,t,s,i,a,r,o='+9 more connectors ⚡',l;return t=new D({props:{code:`import cv2 +import supervision as sv + +image = cv2.imread("dog.jpeg")`}}),i=new W({props:{header:"Frequent choices: Inference, Ultralytics & Transfomers",$$slots:{default:[Ts]},$$scope:{ctx:n}}}),{c(){e=T("div"),h(t.$$.fragment),s=y(),h(i.$$.fragment),a=y(),r=T("div"),r.innerHTML=o,this.h()},l(c){e=N(c,"DIV",{slot:!0});var u=H(e);b(t.$$.fragment,u),s=S(u),b(i.$$.fragment,u),a=S(u),r=N(u,"DIV",{class:!0,"data-svelte-h":!0}),se(r)!=="svelte-bfew51"&&(r.innerHTML=o),u.forEach(_),this.h()},h(){C(r,"class","flex flex-row justify-center text-lg font-bold"),C(e,"slot","col1")},m(c,u){R(c,e,u),v(t,e,null),O(e,s),v(i,e,null),O(e,a),O(e,r),l=!0},p(c,u){const f={};u&1&&(f.$$scope={dirty:u,ctx:c}),i.$set(f)},i(c){l||(m(t.$$.fragment,c),m(i.$$.fragment,c),l=!0)},o(c){$(t.$$.fragment,c),$(i.$$.fragment,c),l=!1},d(c){c&&_(e),E(t),E(i)}}}function Ls(n){let e,t,s,i='+18 more annotators 🎨',a;return e=new D({props:{code:bs[0]}}),{c(){h(e.$$.fragment),t=y(),s=T("div"),s.innerHTML=i,this.h()},l(r){b(e.$$.fragment,r),t=S(r),s=N(r,"DIV",{class:!0,"data-svelte-h":!0}),se(s)!=="svelte-1lcfdfr"&&(s.innerHTML=i),this.h()},h(){C(s,"class","flex flex-row justify-center text-lg font-bold")},m(r,o){v(e,r,o),R(r,t,o),R(r,s,o),a=!0},p:G,i(r){a||(m(e.$$.fragment,r),a=!0)},o(r){$(e.$$.fragment,r),a=!1},d(r){r&&(_(t),_(s)),E(e,r)}}}function Bs(n){let e,t='For inference and ultralytics, you only need to change the model ID:',s,i,a,r,o;return i=new D({props:{code:Ss[0]}}),r=new D({props:{code:xs[0]}}),{c(){e=T("div"),e.innerHTML=t,s=y(),h(i.$$.fragment),a=y(),h(r.$$.fragment),this.h()},l(l){e=N(l,"DIV",{class:!0,"data-svelte-h":!0}),se(e)!=="svelte-1x6ubdi"&&(e.innerHTML=t),s=S(l),b(i.$$.fragment,l),a=S(l),b(r.$$.fragment,l),this.h()},h(){C(e,"class","flex flex-row justify-center text-sm font-bold")},m(l,c){R(l,e,c),R(l,s,c),v(i,l,c),R(l,a,c),v(r,l,c),o=!0},p:G,i(l){o||(m(i.$$.fragment,l),m(r.$$.fragment,l),o=!0)},o(l){$(i.$$.fragment,l),$(r.$$.fragment,l),o=!1},d(l){l&&(_(e),_(s),_(a)),E(i,l),E(r,l)}}}function Cs(n){let e,t;return e=new D({props:{code:vs[0]}}),{c(){h(e.$$.fragment)},l(s){b(e.$$.fragment,s)},m(s,i){v(e,s,i),t=!0},p:G,i(s){t||(m(e.$$.fragment,s),t=!0)},o(s){$(e.$$.fragment,s),t=!1},d(s){E(e,s)}}}function Ps(n){let e,t,s,i,a,r,o;return t=new W({props:{header:"Annotate Detection",$$slots:{default:[Ls]},$$scope:{ctx:n}}}),i=new W({props:{header:"Segmentation",$$slots:{default:[Bs]},$$scope:{ctx:n}}}),r=new W({props:{header:"Annotate Segmentation",$$slots:{default:[Cs]},$$scope:{ctx:n}}}),{c(){e=T("div"),h(t.$$.fragment),s=y(),h(i.$$.fragment),a=y(),h(r.$$.fragment),this.h()},l(l){e=N(l,"DIV",{slot:!0});var c=H(e);b(t.$$.fragment,c),s=S(c),b(i.$$.fragment,c),a=S(c),b(r.$$.fragment,c),c.forEach(_),this.h()},h(){C(e,"slot","col2")},m(l,c){R(l,e,c),v(t,e,null),O(e,s),v(i,e,null),O(e,a),v(r,e,null),o=!0},p(l,c){const u={};c&1&&(u.$$scope={dirty:c,ctx:l}),t.$set(u);const f={};c&1&&(f.$$scope={dirty:c,ctx:l}),i.$set(f);const g={};c&1&&(g.$$scope={dirty:c,ctx:l}),r.$set(g)},i(l){o||(m(t.$$.fragment,l),m(i.$$.fragment,l),m(r.$$.fragment,l),o=!0)},o(l){$(t.$$.fragment,l),$(i.$$.fragment,l),$(r.$$.fragment,l),o=!1},d(l){l&&_(e),E(t),E(i),E(r)}}}function Hs(n){let e,t;return e=new D({props:{code:`from inference import get_model + +model = get_model(model_id="yolov8s-pose-640") + +results = model.infer(image)[0] +key_points = sv.KeyPoints.from_inference(results) +`}}),{c(){h(e.$$.fragment)},l(s){b(e.$$.fragment,s)},m(s,i){v(e,s,i),t=!0},p:G,i(s){t||(m(e.$$.fragment,s),t=!0)},o(s){$(e.$$.fragment,s),t=!1},d(s){E(e,s)}}}function js(n){let e,t;return e=new D({props:{code:`from ultralytics import YOLO + +model = YOLO("yolov8s-pose.pt") + +results = model(image)[0] +key_points = sv.KeyPoints.from_ultralytics(results)`}}),{c(){h(e.$$.fragment)},l(s){b(e.$$.fragment,s)},m(s,i){v(e,s,i),t=!0},p:G,i(s){t||(m(e.$$.fragment,s),t=!0)},o(s){$(e.$$.fragment,s),t=!1},d(s){E(e,s)}}}function Us(n){let e,t;return e=new D({props:{code:`import torch +import super_gradients + +device = "cuda" if torch.cuda.is_available() else "cpu" +model = super_gradients.training.models.get( + "yolo_nas_pose_s", pretrained_weights="coco_pose").to(device) + +results = model.predict(image, conf=0.1) +key_points = sv.KeyPoints.from_yolo_nas(results)`}}),{c(){h(e.$$.fragment)},l(s){b(e.$$.fragment,s)},m(s,i){v(e,s,i),t=!0},p:G,i(s){t||(m(e.$$.fragment,s),t=!0)},o(s){$(e.$$.fragment,s),t=!1},d(s){E(e,s)}}}function Vs(n){let e,t,s,i,a,r,o,l,c;return t=new D({props:{code:`import cv2 +import supervision as sv + +image = cv2.imread("dog.jpeg")`}}),i=new W({props:{header:"Inference",$$slots:{default:[Hs]},$$scope:{ctx:n}}}),r=new W({props:{header:"Ultralytics",$$slots:{default:[js]},$$scope:{ctx:n}}}),l=new W({props:{header:"Yolo NAS",$$slots:{default:[Us]},$$scope:{ctx:n}}}),{c(){e=T("div"),h(t.$$.fragment),s=y(),h(i.$$.fragment),a=y(),h(r.$$.fragment),o=y(),h(l.$$.fragment),this.h()},l(u){e=N(u,"DIV",{slot:!0});var f=H(e);b(t.$$.fragment,f),s=S(f),b(i.$$.fragment,f),a=S(f),b(r.$$.fragment,f),o=S(f),b(l.$$.fragment,f),f.forEach(_),this.h()},h(){C(e,"slot","col1")},m(u,f){R(u,e,f),v(t,e,null),O(e,s),v(i,e,null),O(e,a),v(r,e,null),O(e,o),v(l,e,null),c=!0},p(u,f){const g={};f&1&&(g.$$scope={dirty:f,ctx:u}),i.$set(g);const d={};f&1&&(d.$$scope={dirty:f,ctx:u}),r.$set(d);const w={};f&1&&(w.$$scope={dirty:f,ctx:u}),l.$set(w)},i(u){c||(m(t.$$.fragment,u),m(i.$$.fragment,u),m(r.$$.fragment,u),m(l.$$.fragment,u),c=!0)},o(u){$(t.$$.fragment,u),$(i.$$.fragment,u),$(r.$$.fragment,u),$(l.$$.fragment,u),c=!1},d(u){u&&_(e),E(t),E(i),E(r),E(l)}}}function Fs(n){let e,t,s,i='+1 more annotator 🎨',a;return e=new D({props:{code:Es[0]}}),{c(){h(e.$$.fragment),t=y(),s=T("div"),s.innerHTML=i,this.h()},l(r){b(e.$$.fragment,r),t=S(r),s=N(r,"DIV",{class:!0,"data-svelte-h":!0}),se(s)!=="svelte-9ymj2a"&&(s.innerHTML=i),this.h()},h(){C(s,"class","flex flex-row justify-center text-lg font-bold")},m(r,o){v(e,r,o),R(r,t,o),R(r,s,o),a=!0},p:G,i(r){a||(m(e.$$.fragment,r),a=!0)},o(r){$(e.$$.fragment,r),a=!1},d(r){r&&(_(t),_(s)),E(e,r)}}}function zs(n){let e,t,s,i,a;return t=new D({props:{preface:"⚠️ Available in pre-release: pip install git+https://github.com/roboflow/supervision.git@develop ",code:`import mediapipe as mp + +image = cv2.imread("dog.jpeg") +image_height, image_width, _ = image.shape +mediapipe_image = mp.Image( + image_format=mp.ImageFormat.SRGB, + data=cv2.cvtColor(image, cv2.COLOR_BGR2RGB)) + +options = mp.tasks.vision.PoseLandmarkerOptions( + base_options=mp.tasks.BaseOptions( + model_asset_path="pose_landmarker_heavy.task" + ), + running_mode=mp.tasks.vision.RunningMode.IMAGE, + num_poses=2) + +PoseLandmarker = mp.tasks.vision.PoseLandmarker +with PoseLandmarker.create_from_options(options) as landmarker: + pose_landmarker_result = landmarker.detect(mediapipe_image) + +key_points = sv.KeyPoints.from_mediapipe( + pose_landmarker_result, (image_width, image_height))`}}),i=new W({props:{header:"Annotate KeyPoints",$$slots:{default:[Fs]},$$scope:{ctx:n}}}),{c(){e=T("div"),h(t.$$.fragment),s=y(),h(i.$$.fragment),this.h()},l(r){e=N(r,"DIV",{slot:!0});var o=H(e);b(t.$$.fragment,o),s=S(o),b(i.$$.fragment,o),o.forEach(_),this.h()},h(){C(e,"slot","col2")},m(r,o){R(r,e,o),v(t,e,null),O(e,s),v(i,e,null),a=!0},p(r,o){const l={};o&1&&(l.$$scope={dirty:o,ctx:r}),i.$set(l)},i(r){a||(m(t.$$.fragment,r),m(i.$$.fragment,r),a=!0)},o(r){$(t.$$.fragment,r),$(i.$$.fragment,r),a=!1},d(r){r&&_(e),E(t),E(i)}}}function Gs(n){let e,t;return e=new D({props:{code:`video_info = sv.VideoInfo.from_video_path(video_path=) +frames_generator = sv.get_video_frames_generator(source_path=) + +model = get_model("yolov8s-640") +tracker = sv.ByteTrack(frame_rate=video_info.fps) +smoother = sv.DetectionsSmoother() + +trace_annotator = sv.TraceAnnotator() + +with sv.VideoSink(target_path="out.mp4", video_info=video_info) as sink: + for frame in frames_generator: + results = model.infer(frame)[0] + detections = sv.Detections.from_inference(results) + detections = tracker.update_with_detections(detections) + detections = smoother.update_with_detections(detections) + + annotated_frame = trace_annotator.annotate( + frame.copy(), detections) + + sink.write_frame(frame=frame)`}}),{c(){h(e.$$.fragment)},l(s){b(e.$$.fragment,s)},m(s,i){v(e,s,i),t=!0},p:G,i(s){t||(m(e.$$.fragment,s),t=!0)},o(s){$(e.$$.fragment,s),t=!1},d(s){E(e,s)}}}function Ks(n){let e,t;return e=new D({props:{code:`frames_generator = sv.get_video_frames_generator(source_path=) +model = get_model("yolov8s-640") +tracker = sv.ByteTrack() + +start, end = sv.Point(x=0, y=500), sv.Point(x=200, y=1000) +line_zone = sv.LineZone(start=start, end=end) + +for frame in frames_generator: + results = model.infer(frame)[0] + detections = sv.Detections.from_inference(results) + detections = tracker.update_with_detections(detections) + crossed_in, crossed_out = line_zone.trigger(detections) +print(line_zone.in_count, line_zone.out_count)`}}),{c(){h(e.$$.fragment)},l(s){b(e.$$.fragment,s)},m(s,i){v(e,s,i),t=!0},p:G,i(s){t||(m(e.$$.fragment,s),t=!0)},o(s){$(e.$$.fragment,s),t=!1},d(s){E(e,s)}}}function Ws(n){let e,t,s,i,a,r,o;return t=new D({props:{code:`import cv2 +import supervision as sv +from inference import get_model + +`}}),i=new W({props:{header:"Track Object Movement",$$slots:{default:[Gs]},$$scope:{ctx:n}}}),r=new W({props:{header:"Count objects crossing a LineZone",$$slots:{default:[Ks]},$$scope:{ctx:n}}}),{c(){e=T("div"),h(t.$$.fragment),s=y(),h(i.$$.fragment),a=y(),h(r.$$.fragment),this.h()},l(l){e=N(l,"DIV",{slot:!0});var c=H(e);b(t.$$.fragment,c),s=S(c),b(i.$$.fragment,c),a=S(c),b(r.$$.fragment,c),c.forEach(_),this.h()},h(){C(e,"slot","col1")},m(l,c){R(l,e,c),v(t,e,null),O(e,s),v(i,e,null),O(e,a),v(r,e,null),o=!0},p(l,c){const u={};c&1&&(u.$$scope={dirty:c,ctx:l}),i.$set(u);const f={};c&1&&(f.$$scope={dirty:c,ctx:l}),r.$set(f)},i(l){o||(m(t.$$.fragment,l),m(i.$$.fragment,l),m(r.$$.fragment,l),o=!0)},o(l){$(t.$$.fragment,l),$(i.$$.fragment,l),$(r.$$.fragment,l),o=!1},d(l){l&&_(e),E(t),E(i),E(r)}}}function Ys(n){let e,t;return e=new D({props:{preface:"InferenceSlicer breaks the image into small parts and runs the model on each one",code:`import cv2 +import supervision as sv +from inference import get_model + +image = cv2.imread("dog.jpeg") +model = get_model("yolov8s-640") + +def callback(image_slice: np.ndarray) -> sv.Detections: + results = model.infer(image_slice)[0] + return sv.Detections.from_inference(results) + +slicer = sv.InferenceSlicer( + callback=callback, + overlap_filter_strategy=sv.OverlapFilter.NON_MAX_SUPPRESSION, +) + +detections = slicer(image)`}}),{c(){h(e.$$.fragment)},l(s){b(e.$$.fragment,s)},m(s,i){v(e,s,i),t=!0},p:G,i(s){t||(m(e.$$.fragment,s),t=!0)},o(s){$(e.$$.fragment,s),t=!1},d(s){E(e,s)}}}function Xs(n){let e,t;return e=new D({props:{code:`frames_generator = sv.get_video_frames_generator(source_path=) +model = get_model("yolov8s-640") +tracker = sv.ByteTrack() + +polygon = np.array([[100, 200], [200, 100], [300, 200], [200, 300]]) +polygon_zone = sv.PolygonZone(polygon=polygon) + +for frame in frames_generator: + results = model.infer(frame)[0] + detections = sv.Detections.from_inference(results) + detections = tracker.update_with_detections(detections) + is_detections_in_zone = polygon_zone.trigger(detections) + print(polygon_zone.current_count)`}}),{c(){h(e.$$.fragment)},l(s){b(e.$$.fragment,s)},m(s,i){v(e,s,i),t=!0},p:G,i(s){t||(m(e.$$.fragment,s),t=!0)},o(s){$(e.$$.fragment,s),t=!1},d(s){E(e,s)}}}function qs(n){let e,t,s,i,a;return t=new W({props:{header:"Detect Small Objects",$$slots:{default:[Ys]},$$scope:{ctx:n}}}),i=new W({props:{header:"Count objects inside PolygonZone",$$slots:{default:[Xs]},$$scope:{ctx:n}}}),{c(){e=T("div"),h(t.$$.fragment),s=y(),h(i.$$.fragment),this.h()},l(r){e=N(r,"DIV",{slot:!0});var o=H(e);b(t.$$.fragment,o),s=S(o),b(i.$$.fragment,o),o.forEach(_),this.h()},h(){C(e,"slot","col2")},m(r,o){R(r,e,o),v(t,e,null),O(e,s),v(i,e,null),a=!0},p(r,o){const l={};o&1&&(l.$$scope={dirty:o,ctx:r}),t.$set(l);const c={};o&1&&(c.$$scope={dirty:o,ctx:r}),i.$set(c)},i(r){a||(m(t.$$.fragment,r),m(i.$$.fragment,r),a=!0)},o(r){$(t.$$.fragment,r),$(i.$$.fragment,r),a=!1},d(r){r&&_(e),E(t),E(i)}}}function Zs(n){let e,t;return e=new D({props:{code:`frames_generator = sv.get_video_frames_generator() +model = get_model("yolov8s-640") + +csv_sink = sv.CSVSink("out.csv") +with csv_sink as sink: + for frame in frames_generator: + results = model.infer(frame)[0] + detections = sv.Detections.from_inference(results) + sink.append( + detections, custom_data={"":""})`}}),{c(){h(e.$$.fragment)},l(s){b(e.$$.fragment,s)},m(s,i){v(e,s,i),t=!0},p:G,i(s){t||(m(e.$$.fragment,s),t=!0)},o(s){$(e.$$.fragment,s),t=!1},d(s){E(e,s)}}}function Js(n){let e,t;return e=new D({props:{code:`frames_generator = sv.get_video_frames_generator() +model = get_model("yolov8s-640") + +json_sink = sv.JSONSink("out.json") +with json_sink as sink: + for frame in frames_generator: + results = model.infer(frame)[0] + detections = sv.Detections.from_inference(results) + sink.append( + detections, custom_data={"":""})`}}),{c(){h(e.$$.fragment)},l(s){b(e.$$.fragment,s)},m(s,i){v(e,s,i),t=!0},p:G,i(s){t||(m(e.$$.fragment,s),t=!0)},o(s){$(e.$$.fragment,s),t=!1},d(s){E(e,s)}}}function Qs(n){let e,t,s,i,a;return t=new W({props:{header:"Save Detections to CSV",$$slots:{default:[Zs]},$$scope:{ctx:n}}}),i=new W({props:{header:"Save Detections to JSON",$$slots:{default:[Js]},$$scope:{ctx:n}}}),{c(){e=T("div"),h(t.$$.fragment),s=y(),h(i.$$.fragment),this.h()},l(r){e=N(r,"DIV",{slot:!0});var o=H(e);b(t.$$.fragment,o),s=S(o),b(i.$$.fragment,o),o.forEach(_),this.h()},h(){C(e,"slot","col1")},m(r,o){R(r,e,o),v(t,e,null),O(e,s),v(i,e,null),a=!0},p(r,o){const l={};o&1&&(l.$$scope={dirty:o,ctx:r}),t.$set(l);const c={};o&1&&(c.$$scope={dirty:o,ctx:r}),i.$set(c)},i(r){a||(m(t.$$.fragment,r),m(i.$$.fragment,r),a=!0)},o(r){$(t.$$.fragment,r),$(i.$$.fragment,r),a=!1},d(r){r&&_(e),E(t),E(i)}}}function er(n){let e,t,s,i;return e=new D({props:{code:"pip install peft -q",isBash:!0}}),s=new D({props:{code:`from inference.models.paligemma.paligemma import PaliGemma +from PIL import Image + +image = Image.open("dog.jpeg") +prompt = "Detect the dog." + +pg = PaliGemma(model_id= api_key="") +results = pg.predict(image, prompt) + +detections = sv.Detections.from_lmm( + sv.LMM.PALIGEMMA, + results, + resolution_wh=(1000, 1000), + classes=["cat", "dog"] +) +`}}),{c(){h(e.$$.fragment),t=y(),h(s.$$.fragment)},l(a){b(e.$$.fragment,a),t=S(a),b(s.$$.fragment,a)},m(a,r){v(e,a,r),R(a,t,r),v(s,a,r),i=!0},p:G,i(a){i||(m(e.$$.fragment,a),m(s.$$.fragment,a),i=!0)},o(a){$(e.$$.fragment,a),$(s.$$.fragment,a),i=!1},d(a){a&&_(t),E(e,a),E(s,a)}}}function tr(n){let e,t;return e=new D({props:{code:`dataset = sv.DetectionDataset.from_yolo("") + +model = get_model("yolov8s-640") +def callback(image: np.ndarray) -> sv.Detections: + results = model.infer(image)[0] + return sv.Detections.from_inference(results) + +confusion_matrix = sv.ConfusionMatrix.benchmark( + dataset=dataset, callback=callback +) +print(confusion_matrix.matrix) + `}}),{c(){h(e.$$.fragment)},l(s){b(e.$$.fragment,s)},m(s,i){v(e,s,i),t=!0},p:G,i(s){t||(m(e.$$.fragment,s),t=!0)},o(s){$(e.$$.fragment,s),t=!1},d(s){E(e,s)}}}function nr(n){let e,t,s,i,a;return t=new W({props:{header:"Run a fine-tuned LMM",$$slots:{default:[er]},$$scope:{ctx:n}}}),i=new W({props:{header:"Compute Metrics",$$slots:{default:[tr]},$$scope:{ctx:n}}}),{c(){e=T("div"),h(t.$$.fragment),s=y(),h(i.$$.fragment),this.h()},l(r){e=N(r,"DIV",{slot:!0});var o=H(e);b(t.$$.fragment,o),s=S(o),b(i.$$.fragment,o),o.forEach(_),this.h()},h(){C(e,"slot","col2")},m(r,o){R(r,e,o),v(t,e,null),O(e,s),v(i,e,null),a=!0},p(r,o){const l={};o&1&&(l.$$scope={dirty:o,ctx:r}),t.$set(l);const c={};o&1&&(c.$$scope={dirty:o,ctx:r}),i.$set(c)},i(r){a||(m(t.$$.fragment,r),m(i.$$.fragment,r),a=!0)},o(r){$(t.$$.fragment,r),$(i.$$.fragment,r),a=!1},d(r){r&&_(e),E(t),E(i)}}}function sr(n){let e,t,s,i,a,r,o,l,c,u,f,g;return e=new D({props:{preface:"Empty detections. Returned by every model when nothing is detected.",code:`empty_detections = sv.Detections.empty() +if empty_detections.is_empty(): + print("Nothing was detected!")`}}),s=new D({props:{preface:"Count detected objects",code:"len(detections)"}}),a=new D({props:{preface:"Loop over detection results",code:`for xyxy, mask, confidence, class_id, tracker_id, data in detections: + print(xyxy, mask, confidence, class_id, tracker_id, data)`}}),o=new D({props:{preface:"Filter detections by class",code:`detections = sv.Detections.from_inference(results) +detections = detections[detections.class_id == 0]`}}),c=new D({props:{preface:"Filter by class name",code:`detections = sv.Detections.from_inference(results) +detections = detections[detections.data["class_name"] == "cat"]`}}),f=new D({props:{preface:"Merge multiple sv.Detections",code:`detections1 = sv.Detections.from_inference(results1) +detections2 = sv.Detections.from_inference(results2) +merged_detections = sv.Detections.merge([detections1, detections2])`}}),{c(){h(e.$$.fragment),t=y(),h(s.$$.fragment),i=y(),h(a.$$.fragment),r=y(),h(o.$$.fragment),l=y(),h(c.$$.fragment),u=y(),h(f.$$.fragment)},l(d){b(e.$$.fragment,d),t=S(d),b(s.$$.fragment,d),i=S(d),b(a.$$.fragment,d),r=S(d),b(o.$$.fragment,d),l=S(d),b(c.$$.fragment,d),u=S(d),b(f.$$.fragment,d)},m(d,w){v(e,d,w),R(d,t,w),v(s,d,w),R(d,i,w),v(a,d,w),R(d,r,w),v(o,d,w),R(d,l,w),v(c,d,w),R(d,u,w),v(f,d,w),g=!0},p:G,i(d){g||(m(e.$$.fragment,d),m(s.$$.fragment,d),m(a.$$.fragment,d),m(o.$$.fragment,d),m(c.$$.fragment,d),m(f.$$.fragment,d),g=!0)},o(d){$(e.$$.fragment,d),$(s.$$.fragment,d),$(a.$$.fragment,d),$(o.$$.fragment,d),$(c.$$.fragment,d),$(f.$$.fragment,d),g=!1},d(d){d&&(_(t),_(i),_(r),_(l),_(u)),E(e,d),E(s,d),E(a,d),E(o,d),E(c,d),E(f,d)}}}function rr(n){let e,t,s,i;return e=new D({props:{isBash:!0,preface:"supervision provides a handful of videos for testing",code:'pip install "supervision[assets]" -q'}}),s=new D({props:{code:`from supervision.assets import download_assets, VideoAssets + +download_assets(VideoAssets.VEHICLES) +print(VideoAssets.VEHICLES.value)`}}),{c(){h(e.$$.fragment),t=y(),h(s.$$.fragment)},l(a){b(e.$$.fragment,a),t=S(a),b(s.$$.fragment,a)},m(a,r){v(e,a,r),R(a,t,r),v(s,a,r),i=!0},p:G,i(a){i||(m(e.$$.fragment,a),m(s.$$.fragment,a),i=!0)},o(a){$(e.$$.fragment,a),$(s.$$.fragment,a),i=!1},d(a){a&&_(t),E(e,a),E(s,a)}}}function or(n){let e,t,s,i,a;return t=new W({props:{header:"sv.Detections Operations",$$slots:{default:[sr]},$$scope:{ctx:n}}}),i=new W({props:{header:"Video Assets",$$slots:{default:[rr]},$$scope:{ctx:n}}}),{c(){e=T("div"),h(t.$$.fragment),s=y(),h(i.$$.fragment),this.h()},l(r){e=N(r,"DIV",{slot:!0});var o=H(e);b(t.$$.fragment,o),s=S(o),b(i.$$.fragment,o),o.forEach(_),this.h()},h(){C(e,"slot","col1")},m(r,o){R(r,e,o),v(t,e,null),O(e,s),v(i,e,null),a=!0},p(r,o){const l={};o&1&&(l.$$scope={dirty:o,ctx:r}),t.$set(l);const c={};o&1&&(c.$$scope={dirty:o,ctx:r}),i.$set(c)},i(r){a||(m(t.$$.fragment,r),m(i.$$.fragment,r),a=!0)},o(r){$(t.$$.fragment,r),$(i.$$.fragment,r),a=!1},d(r){r&&_(e),E(t),E(i)}}}function ir(n){let e,t,s,i,a,r,o,l,c,u;return e=new D({props:{preface:"Crop image",code:"cropped_image = sv.crop_image(image=image, xyxy=[200, 400, 600, 800])"}}),s=new D({props:{preface:"Scale image",code:"scaled_image = sv.scale_image(image=image, scale_factor=0.5)"}}),a=new D({props:{preface:"Resize image",code:`resized_image = sv.resize_image( + image=image, resolution_wh=(1000, 1000), keep_aspect_ratio=True)`}}),o=new D({props:{preface:"Letterbox image (resize + pad)",code:`letterboxed_image = sv.letterbox_image( + image=image, resolution_wh=(1000, 1000))`}}),c=new D({props:{preface:"Overlay image",code:`overlay = np.zeros((400, 400, 3), dtype=np.uint8) +resulting_image = sv.overlay_image( + image=image, overlay=overlay, anchor=(200, 400)`}}),{c(){h(e.$$.fragment),t=y(),h(s.$$.fragment),i=y(),h(a.$$.fragment),r=y(),h(o.$$.fragment),l=y(),h(c.$$.fragment)},l(f){b(e.$$.fragment,f),t=S(f),b(s.$$.fragment,f),i=S(f),b(a.$$.fragment,f),r=S(f),b(o.$$.fragment,f),l=S(f),b(c.$$.fragment,f)},m(f,g){v(e,f,g),R(f,t,g),v(s,f,g),R(f,i,g),v(a,f,g),R(f,r,g),v(o,f,g),R(f,l,g),v(c,f,g),u=!0},p:G,i(f){u||(m(e.$$.fragment,f),m(s.$$.fragment,f),m(a.$$.fragment,f),m(o.$$.fragment,f),m(c.$$.fragment,f),u=!0)},o(f){$(e.$$.fragment,f),$(s.$$.fragment,f),$(a.$$.fragment,f),$(o.$$.fragment,f),$(c.$$.fragment,f),u=!1},d(f){f&&(_(t),_(i),_(r),_(l)),E(e,f),E(s,f),E(a,f),E(o,f),E(c,f)}}}function ar(n){let e,t,s,i,a,r;return e=new D({props:{preface:"Install custom branch of supervision",isBash:!0,code:"pip install git+https://github.com/YourName/supervision.git@your-branch"}}),s=new D({props:{preface:"Display image in Colab by converting to PIL",isBash:!0,code:"sv.cv2_to_pillow(frame)"}}),a=new D({props:{preface:"Display image in Colab by plotting with matplotlib",isBash:!0,code:`%matplotlib inline +sv.plot_image(frame)`}}),{c(){h(e.$$.fragment),t=y(),h(s.$$.fragment),i=y(),h(a.$$.fragment)},l(o){b(e.$$.fragment,o),t=S(o),b(s.$$.fragment,o),i=S(o),b(a.$$.fragment,o)},m(o,l){v(e,o,l),R(o,t,l),v(s,o,l),R(o,i,l),v(a,o,l),r=!0},p:G,i(o){r||(m(e.$$.fragment,o),m(s.$$.fragment,o),m(a.$$.fragment,o),r=!0)},o(o){$(e.$$.fragment,o),$(s.$$.fragment,o),$(a.$$.fragment,o),r=!1},d(o){o&&(_(t),_(i)),E(e,o),E(s,o),E(a,o)}}}function lr(n){let e,t,s,i,a;return t=new W({props:{header:"Image Utilities",$$slots:{default:[ir]},$$scope:{ctx:n}}}),i=new W({props:{header:"for Google Colab",$$slots:{default:[ar]},$$scope:{ctx:n}}}),{c(){e=T("div"),h(t.$$.fragment),s=y(),h(i.$$.fragment),this.h()},l(r){e=N(r,"DIV",{slot:!0});var o=H(e);b(t.$$.fragment,o),s=S(o),b(i.$$.fragment,o),o.forEach(_),this.h()},h(){C(e,"slot","col2")},m(r,o){R(r,e,o),v(t,e,null),O(e,s),v(i,e,null),a=!0},p(r,o){const l={};o&1&&(l.$$scope={dirty:o,ctx:r}),t.$set(l);const c={};o&1&&(c.$$scope={dirty:o,ctx:r}),i.$set(c)},i(r){a||(m(t.$$.fragment,r),m(i.$$.fragment,r),a=!0)},o(r){$(t.$$.fragment,r),$(i.$$.fragment,r),a=!1},d(r){r&&_(e),E(t),E(i)}}}function cr(n){let e,t,s,i,a,r,o,l,c,u,f,g,d,w,A,U;return a=new ln({props:{$$slots:{col2:[Is],col1:[Ms]},$$scope:{ctx:n}}}),o=new we({props:{header:"Object Detection & Segmentation",$$slots:{col2:[Ps],col1:[Ns]},$$scope:{ctx:n}}}),c=new we({props:{header:"Keypoints",$$slots:{col2:[zs],col1:[Vs]},$$scope:{ctx:n}}}),f=new we({props:{header:"What can supervision do?",$$slots:{col2:[qs],col1:[Ws]},$$scope:{ctx:n}}}),d=new we({props:{header:"What can supervision do? (continued)",$$slots:{col2:[nr],col1:[Qs]},$$scope:{ctx:n}}}),A=new we({props:{header:"Utilities",$$slots:{col2:[lr],col1:[or]},$$scope:{ctx:n}}}),{c(){e=y(),t=T("div"),s=T("br"),i=y(),h(a.$$.fragment),r=y(),h(o.$$.fragment),l=y(),h(c.$$.fragment),u=y(),h(f.$$.fragment),g=y(),h(d.$$.fragment),w=y(),h(A.$$.fragment),this.h()},l(L){qt("svelte-lqbnw9",document.head).forEach(_),e=S(L),t=N(L,"DIV",{class:!0});var V=H(t);s=N(V,"BR",{}),i=S(V),b(a.$$.fragment,V),r=S(V),b(o.$$.fragment,V),l=S(V),b(c.$$.fragment,V),u=S(V),b(f.$$.fragment,V),g=S(V),b(d.$$.fragment,V),w=S(V),b(A.$$.fragment,V),V.forEach(_),this.h()},h(){document.title="Cheatsheet • supervision",C(t,"class","justify-center w-full flex flex-col items-center gap-12 pb-36")},m(L,F){R(L,e,F),R(L,t,F),O(t,s),O(t,i),v(a,t,null),O(t,r),v(o,t,null),O(t,l),v(c,t,null),O(t,u),v(f,t,null),O(t,g),v(d,t,null),O(t,w),v(A,t,null),U=!0},p(L,[F]){const V={};F&1&&(V.$$scope={dirty:F,ctx:L}),a.$set(V);const J={};F&1&&(J.$$scope={dirty:F,ctx:L}),o.$set(J);const ae={};F&1&&(ae.$$scope={dirty:F,ctx:L}),c.$set(ae);const Se={};F&1&&(Se.$$scope={dirty:F,ctx:L}),f.$set(Se);const xe={};F&1&&(xe.$$scope={dirty:F,ctx:L}),d.$set(xe);const Ae={};F&1&&(Ae.$$scope={dirty:F,ctx:L}),A.$set(Ae)},i(L){U||(m(a.$$.fragment,L),m(o.$$.fragment,L),m(c.$$.fragment,L),m(f.$$.fragment,L),m(d.$$.fragment,L),m(A.$$.fragment,L),U=!0)},o(L){$(a.$$.fragment,L),$(o.$$.fragment,L),$(c.$$.fragment,L),$(f.$$.fragment,L),$(d.$$.fragment,L),$(A.$$.fragment,L),U=!1},d(L){L&&(_(e),_(t)),E(a),E(o),E(c),E(f),E(d),E(A)}}}class pr extends ue{constructor(e){super(),ge(this,e,null,cr,fe,{})}}export{pr as component}; diff --git a/_app/version.json b/_app/version.json index 33d4d35..64f0730 100644 --- a/_app/version.json +++ b/_app/version.json @@ -1 +1 @@ -{"version":"1719992983213"} \ No newline at end of file +{"version":"1719993028341"} \ No newline at end of file diff --git a/index.html b/index.html index e11e42b..831691c 100644 --- a/index.html +++ b/index.html @@ -8,16 +8,16 @@ - - + + - - + + - Cheatsheet • supervision + Cheatsheet • supervision @@ -291,7 +291,7 @@