Buckets:

download
raw
2.15 kB
import{r as u,d as h,p as g,c as _,b as p,a as b,h as d,e as m,m as k,s as y,f as w,g as $,E as x,i as A,j as F,k as E,l as v}from"./BrY_21Bg.js";function C(o){if(/^\/docs\//.test(o)){const e=o.slice(1).split("/");e.shift();const s=e.shift(),i=/^(?:(master|main)|v[\d.]+(rc\d+)?|pr_\d+)$/.test(e[0])?e.shift():"v0.42.0",a=/^[a-z]{2}(-[A-Za-z]{2})?$/.test(e[0])?e.shift():"pt",n=e.join("/");if(s==="diffusers"&&i==="v0.42.0"&&a==="pt")return`/docs/diffusers/v0.42.0/pt/${n}`}}class M{anchor;#t=new Map;#s=new Map;#e=new Map;#i=new Set;#a=!0;constructor(e,s=!0){this.anchor=e,this.#a=s}#r=e=>{if(this.#t.has(e)){var s=this.#t.get(e),t=this.#s.get(s);if(t)u(t),this.#i.delete(s);else{var i=this.#e.get(s);i&&(u(i.effect),this.#s.set(s,i.effect),this.#e.delete(s),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),t=i.effect)}for(const[a,n]of this.#t){if(this.#t.delete(a),a===e)break;const r=this.#e.get(n);r&&(h(r.effect),this.#e.delete(n))}for(const[a,n]of this.#s){if(a===s||this.#i.has(a))continue;const r=()=>{if(Array.from(this.#t.values()).includes(a)){var c=document.createDocumentFragment();k(n,c),c.append(_()),this.#e.set(a,{effect:n,fragment:c})}else h(n);this.#i.delete(a),this.#s.delete(a)};this.#a||!t?(this.#i.add(a),g(n,r,!1)):r()}}};#n=e=>{this.#t.delete(e);const s=Array.from(this.#t.values());for(const[t,i]of this.#e)s.includes(t)||(h(i.effect),this.#e.delete(t))};ensure(e,s){var t=b,i=y();if(s&&!this.#s.has(e)&&!this.#e.has(e))if(i){var a=document.createDocumentFragment(),n=_();a.append(n),this.#e.set(e,{effect:p(()=>s(n)),fragment:a})}else this.#s.set(e,p(()=>s(this.anchor)));if(this.#t.set(t,e),i){for(const[r,f]of this.#s)r===e?t.unskip_effect(f):t.skip_effect(f);for(const[r,f]of this.#e)r===e?t.unskip_effect(f.effect):t.skip_effect(f.effect);t.oncommit(this.#r),t.ondiscard(this.#n)}else d&&(this.anchor=m),this.#r(t)}}function D(o,e,s=!1){var t;d&&(t=m,$());var i=new M(o),a=s?x:0;function n(r,f){if(d){var c=A(t);if(r!==parseInt(c.substring(1))){var l=F();E(l),i.anchor=l,v(!1),i.ensure(r,f),v(!0);return}}i.ensure(r,f)}w(()=>{var r=!1;e((f,c=0)=>{r=!0,n(c,f)}),r||n(-1,null)},a)}export{M as B,C as g,D as i};

Xet Storage Details

Size:
2.15 kB
·
Xet hash:
ac5363bbb5a7326b1f0e2530e903bd61e1cb6a342ac6839eb1a8e79a32f6a898

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.