1import{A as e,At as t,E as n,F as r,I as i,K as a,L as o,R as s,X as c,_t as l,a as u,at as d,et as f,ft as p,ht as m,it as h,jt as g,m as _,ot as v,pt as y,r as ee,rt as b,ut as x,vt as S,x as C}from"./index-client.CmB40IKf.chunk.js";import"./disclose-version.xihTtKlq.chunk.js";import{n as w}from"./esm.juTdiX-F.chunk.js";var T=typeof window<`u`?window:void 0;typeof window<`u`&&window.document,typeof window<`u`&&window.navigator,typeof window<`u`&&window.location;function E(e){let t=e.activeElement;for(;t?.shadowRoot;){let e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}new class{#e;#t;constructor(e={}){let{window:t=T,document:n=t?.document}=e;t!==void 0&&(this.#e=n,this.#t=r(e=>{let n=a(t,`focusin`,e),r=a(t,`focusout`,e);return()=>{n(),r()}}))}get current(){return this.#t?.(),this.#e?E(this.#e):null}};function D(e,t){switch(e){case`post`:d(t);break;case`pre`:v(t)}}function O(e,t,n,r={}){let{lazy:i=!1}=r,a=!i,o=Array.isArray(e)?[]:void 0;D(t,()=>{let t=Array.isArray(e)?e.map(e=>e()):e();if(!a){a=!0,o=t;return}let r=f(()=>n(t,o));return o=t,r})}function k(e,t,n){O(e,`post`,t,n)}function te(e,t,n){O(e,`pre`,t,n)}k.pre=te;function ne(e,t){switch(e){case`local`:return t.localStorage;case`session`:return t.sessionStorage}}var A=class{#e;#t;#n;#r;#i;#a=l(0);constructor(e,t,n={}){let{storage:i=`local`,serializer:o={serialize:JSON.stringify,deserialize:JSON.parse},syncTabs:s=!0,window:c=T}=n;if(this.#e=t,this.#t=e,this.#n=o,c===void 0)return;let l=ne(i,c);this.#r=l;let u=l.getItem(e);u===null?this.#c(t):this.#e=this.#s(u),s&&i===`local`&&(this.#i=r(()=>a(c,`storage`,this.#o)))}get current(){this.#i?.(),c(this.#a);let e=this.#s(this.#r?.getItem(this.#t))??this.#e,t=new WeakMap,n=r=>{if(r===null||r?.constructor.name===`Date`||typeof r!=`object`)return r;let i=t.get(r);return i||(i=new Proxy(r,{get:(e,t)=>(c(this.#a),n(Reflect.get(e,t))),set:(t,n,r)=>(m(this.#a,c(this.#a)+1),Reflect.set(t,n,r),this.#c(e),!0)}),t.set(r,i)),i};return n(e)}set current(e){this.#c(e),m(this.#a,c(this.#a)+1)}#o=e=>{e.key===this.#t&&e.newValue!==null&&(this.#e=this.#s(e.newValue),m(this.#a,c(this.#a)+1))};#s(e){try{return this.#n.deserialize(e)}catch(t){console.error(`Error when parsing "${e}" from persisted store "${this.#t}"`,t);return}}#c(e){try{e!=null&&this.#r?.setItem(this.#t,this.#n.serialize(e))}catch(e){console.error(`Error when writing value from persisted store "${this.#t}" to ${this.#r}`,e)}}};function j(e){return e.filter(e=>e.length>0)}var M={getItem:e=>null,setItem:(e,t)=>{}},N=typeof document<`u`;function re(e){return typeof e==`function`}function ie(e){return typeof e==`object`&&!!e}var P=Symbol(`box`),F=Symbol(`is-writable`);function ae(e){return ie(e)&&P in e}function oe(e){return I.isBox(e)&&F in e}function I(e){let t=l(y(e));return{[P]:!0,[F]:!0,get current(){return c(t)},set current(e){m(t,e,!0)}}}function se(e,t){let n=S(e);return t?{[P]:!0,[F]:!0,get current(){return c(n)},set current(e){t(e)}}:{[P]:!0,get current(){return e()}}}function ce(e){return I.isBox(e)?e:re(e)?I.with(e):I(e)}function le(e){return Object.entries(e).reduce((e,[t,n])=>I.isBox(n)?(I.isWritableBox(n)?Object.defineProperty(e,t,{get(){return n.current},set(e){n.current=e}}):Object.defineProperty(e,t,{get(){return n.current}}),e):Object.assign(e,{[t]:n}),{})}function ue(e){return I.isWritableBox(e)?{[P]:!0,get current(){return e.current}}:e}I.from=ce,I.with=se,I.flatten=le,I.readonly=ue,I.isBox=ae,I.isWritableBox=oe;function de(e,t){let n=RegExp(e,`g`);return e=>{if(typeof e!=`string`)throw TypeError(`expected an argument of type string, but got ${typeof e}`);return e.match(n)?e.replace(n,t):e}}var fe=de(/[A-Z]/,e=>`-${e.toLowerCase()}`);function pe(e){if(!e||typeof e!=`object`||Array.isArray(e))throw TypeError(`expected an argument of type object, but got ${typeof e}`);return Object.keys(e).map(t=>`${fe(t)}: ${e[t]};`).join(` 2`)}function me(e={}){return pe(e).replace(` 3`,` `)}me({position:`absolute`,width:`1px`,height:`1px`,padding:`0`,margin:`-1px`,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,borderWidth:`0`,transform:`translateX(-100%)`});var he=typeof window<`u`?window:void 0;typeof window<`u`&&window.document,typeof window<`u`&&window.navigator,typeof window<`u`&&window.location;function ge(e){let t=e.activeElement;for(;t?.shadowRoot;){let e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}new class{#e;#t;constructor(e={}){let{window:t=he,document:n=t?.document}=e;t!==void 0&&(this.#e=n,this.#t=r(e=>{let n=a(t,`focusin`,e),r=a(t,`focusout`,e);return()=>{n(),r()}}))}get current(){return this.#t?.(),this.#e?ge(this.#e):null}};var L=I(`mode-watcher-mode`),R=I(`mode-watcher-theme`),_e=[`dark`,`light`,`system`];function z(e){return typeof e==`string`&&_e.includes(e)}var ve=class{#e=`system`;#t=N?localStorage:M;#n=this.#t.getItem(L.current);#r=z(this.#n)?this.#n:this.#e;#i=l(y(this.#a()));#a(e=this.#r){return new A(L.current,e,{serializer:{serialize:e=>e,deserialize:e=>z(e)?e:this.#e}})}constructor(){b(()=>k.pre(()=>L.current,(e,t)=>{let n=c(this.#i).current;m(this.#i,this.#a(n),!0),t&&localStorage.removeItem(t)}))}get current(){return c(this.#i).current}set current(e){c(this.#i).current=e}},ye=class{#e=void 0;#t=!0;#n=l(y(this.#e));#r=typeof window<`u`&&typeof window.matchMedia==`function`?new w(`prefers-color-scheme: light`):{current:!1};query(){N&&m(this.#n,this.#r.current?`light`:`dark`,!0)}tracking(e){this.#t=e}constructor(){b(()=>{v(()=>{this.#t&&this.query()})}),this.query=this.query.bind(this),this.tracking=this.tracking.bind(this)}get current(){return c(this.#n)}},B=new ve,V=new ye,H=new class{#e=N?localStorage:M;#t=this.#e.getItem(R.current);#n=this.#t===null||this.#t===void 0?``:this.#t;#r=l(y(this.#i()));#i(e=this.#n){return new A(R.current,e,{serializer:{serialize:e=>typeof e==`string`?e:``,deserialize:e=>e}})}constructor(){b(()=>k.pre(()=>R.current,(e,t)=>{let n=c(this.#r).current;m(this.#r,this.#i(n),!0),t&&localStorage.removeItem(t)}))}get current(){return c(this.#r).current}set current(e){c(this.#r).current=e}},U,W,G=!1,K=null;function be(){return K||(K=document.createElement(`style`),K.appendChild(document.createTextNode(`* { 4 -webkit-transition: none !important; 5 -moz-transition: none !important; 6 -o-transition: none !important; 7 -ms-transition: none !important; 8 transition: none !important; 9 }`)),K)}function q(e,t=!1){if(typeof document>`u`)return;if(!G){G=!0,e();return}if(typeof window<`u`&&window.__vitest_worker__){e();return}clearTimeout(U),clearTimeout(W);let n=be(),r=()=>document.head.appendChild(n),i=()=>{n.parentNode&&document.head.removeChild(n)};function a(){e(),window.requestAnimationFrame(i)}if(window.requestAnimationFrame!==void 0){r(),t?a():window.requestAnimationFrame(()=>{a()});return}r(),U=window.setTimeout(()=>{e(),W=window.setTimeout(i,16)},16)}var J=I(void 0),Y=I(!0),X=I(!1),Z=I([]),Q=I([]);function xe(){let e=S(()=>
9{if(!N)return;let e=B.current===`system`?V.current:B.current,t=j(Z.current),n=j(Q.current);function r(){let r=document.documentElement,i=document.querySelector(`meta[name="theme-color"]`);e===`light`?(t.length&&r.classList.remove(...t),n.length&&r.classList.add(...n),r.style.colorScheme=`light`,i&&J.current&&i.setAttribute(`content`,J.current.light)):(n.length&&r.classList.remove(...n),t.length&&r.classList.add(...t),r.style.colorScheme=`dark`,i&&J.current&&i.setAttribute(`content`,J.current.dark))}return Y.current?q(r,X.current):r(),e});return{get current(){return c(e)}}}function Se(){let e=S(()=>{if(H.current,!N)return;function e(){document.documentElement.setAttribute(`data-theme`,H.current)}return Y.current?q(e,f(()=>X.current)):e(),H.current});return{get current(){return c(e)}}}var $=xe(),Ce=Se();function we(e){B.current=e}function Te(){B.current=`system`}function Ee(e){H.current=e}function De(e){return e}function Oe({defaultMode:e=`system`,themeColors:t,darkClassNames:n=[`dark`],lightClassNames:r=[],defaultTheme:i=``,modeStorageKey:a=`mode-watcher-mode`,themeStorageKey:o=`mode-watcher-theme`}){let s=document.documentElement,c=localStorage.getItem(a)??e,l=localStorage.getItem(o)??i,u=c===`light`||c===`system`&&window.matchMedia(`(prefers-color-scheme: light)`).matches;if(u?(n.length&&s.classList.remove(...n.filter(Boolean)),r.length&&s.classList.add(...r.filter(Boolean))):(r.length&&s.classList.remove(...r.filter(Boolean)),n.length&&s.classList.add(...n.filter(Boolean))),s.style.colorScheme=u?`light`:`dark`,t){let e=document.querySelector(`meta[name="theme-color"]`);e&&e.setAttribute(`content`,c===`light`?t.light:t.dark)}l&&(s.setAttribute(`data-theme`,l),localStorage.setItem(o,l)),localStorage.setItem(a,c)}var ke=s(`<meta name="theme-color"/>`);function Ae(n,r){g(r,!0);var a=o(),s=x(a),c=e=>{var t=ke();h(()=>_(t,`content`,r.themeColors.dark)),i(e,t)};e(s,e=>{r.themeColors&&e(c)}),i(n,a),t()}var je=s(`<meta name="theme-color"/>`),Me=s(`<!> <!>`,1);function Ne(r,a){g(a,!0);let o=u(a,`trueNonce`,3,``);C(`1funsus`,t=>{var r=Me(),s=x(r),c=e=>{var t=je();h(()=>_(t,`content`,a.themeColors.dark)),i(e,t)};e(s,e=>{a.themeColors&&e(c)});var l=p(s,2);n(l,()=>`<script${o()?` nonce=${o()}`:``}>(`+Oe.toString()+`)(`+JSON.stringify(a.initConfig)+`);<\/script>`),i(t,r)}),t()}function Pe(n,r){g(r,!0);let a=u(r,`track`,3,!0),s=u(r,`defaultMode`,3,`system`),l=u(r,`disableTransitions`,3,!0),d=u(r,`darkClassNames`,19,()=>[`dark`]),f=u(r,`lightClassNames`,19,()=>[]),p=u(r,`defaultTheme`,3,``),m=u(r,`nonce`,3,``),h=u(r,`themeStorageKey`,3,`mode-watcher-theme`),_=u(r,`modeStorageKey`,3,`mode-watcher-mode`),y=u(r,`disableHeadScriptInjection`,3,!1),b=u(r,`synchronousModeChanges`,3,!1);L.current=_(),R.current=h(),Z.current=d(),Q.current=f(),Y.current=l(),J.current=r.themeColors,X.current=b(),v(()=>{X.current=b()}),v(()=>{Y.current=l()}),v(()=>{J.current=r.themeColors}),v(()=>{Z.current=d()}),v(()=>{Q.current=f()}),v(()=>{L.current=_()}),v(()=>{R.current=h()}),v(()=>{$.current,L.current,R.current,Ce.current}),ee(()=>{V.tracking(a()),V.query();let e=localStorage.getItem(L.current);we(z(e)?e:s()),Ee(localStorage.getItem(R.current)||p())});let C=De({defaultMode:s(),themeColors:r.themeColors,darkClassNames:d(),lightClassNames:f(),defaultTheme:p(),modeStorageKey:_(),themeStorageKey:h()}),w=S(()=>typeof window>`u`?m():``);var T=o(),E=x(T),D=e=>{Ae(e,{get themeColors(){return J.current}})},O=e=>{Ne(e,{get trueNonce(){return c(w)},get initConfig(){return C},get themeColors(){return J.current}})};e(E,e=>{y()?e(D):e(O,-1)}),i(n,T),t()}export{$ as i,Te as n,we as r,Pe as t};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.