mirror of
https://github.com/Sped0n/bridget.git
synced 2026-04-14 10:09:31 -07:00
1 line
22 KiB
JavaScript
1 line
22 KiB
JavaScript
const e={},t=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const t=document.querySelector("meta[property=csp-nonce]"),r=(null==t?void 0:t.nonce)||(null==t?void 0:t.getAttribute("nonce"));o=Promise.all(n.map((t=>{if((t=function(e){return"/"+e}(t))in e)return;e[t]=!0;const n=t.endsWith(".css"),o=n?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${t}"]${o}`))return;const s=document.createElement("link");return s.rel=n?"stylesheet":"modulepreload",n||(s.as="script",s.crossOrigin=""),s.href=t,r&&s.setAttribute("nonce",r),document.head.appendChild(s),n?new Promise(((e,n)=>{s.addEventListener("load",e),s.addEventListener("error",(()=>n(new Error(`Unable to preload CSS for ${t}`))))})):void 0})))}return o.then((()=>t())).catch((e=>{const t=new Event("vite:preloadError",{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}))},n={context:void 0,registry:void 0,effects:void 0,done:!1,getContextId(){return r(this.context.count)},getNextContextId(){return r(this.context.count++)}};function r(e){const t=String(e),r=t.length-1;return n.context.id+(r?String.fromCharCode(96+r):"")+t}function o(e){n.context=e}const s=Symbol("solid-proxy"),l="function"==typeof Proxy,i=Symbol("solid-track"),u={equals:(e,t)=>e===t};let c=V;const a=1,f=2,d={owned:null,cleanups:null,context:null,owner:null},h={};var p=null;let g=null,v=null,y=null,b=null,m=0;function w(e,t){const n=v,r=p,o=0===e.length,s=void 0===t?r:t,l=o?d:{owned:null,cleanups:null,context:s?s.context:null,owner:s},i=o?e:()=>e((()=>O((()=>R(l)))));p=l,v=null;try{return B(i,!0)}finally{v=n,p=r}}function x(e,t){const n={value:e,observers:null,observerSlots:null,comparator:(t=t?Object.assign({},u,t):u).equals||void 0};return[_.bind(n),e=>("function"==typeof e&&(e=e(n.value)),C(n,e))]}function A(e,t,n){I(M(e,t,!1,a))}function S(e,t,n){c=D;const r=M(e,t,!1,a);r.user=!0,b?b.push(r):I(r)}function E(e,t,n){n=n?Object.assign({},u,n):u;const r=M(e,t,!0,0);return r.observers=null,r.observerSlots=null,r.comparator=n.equals||void 0,I(r),_.bind(r)}function T(e,t,r){let o,s,l;o=!0,s=e,l={};let i=null,u=h,c=null,a=!1,f="initialValue"in l;const d=new Set,[p,g]=(l.storage||x)(l.initialValue),[y,b]=x(void 0),[m,w]=x(void 0,{equals:!1}),[A,S]=x(f?"ready":"unresolved");function E(e,t,n,r){return i===e&&(i=null,void 0!==r&&(f=!0),e!==u&&t!==u||!l.onHydrated||queueMicrotask((()=>l.onHydrated(r,{value:t}))),u=h,function(e,t){B((()=>{void 0===t&&g((()=>e)),S(void 0!==t?"errored":f?"ready":"unresolved"),b(t);for(const e of d.keys())e.decrement();d.clear()}),!1)}(t,n)),t}function T(){const e=p(),t=y();if(void 0!==t&&!i)throw t;return v&&v.user,e}function k(e=!0){if(!1!==e&&a)return;a=!1;const t=!0,n=u!==h?u:O((()=>s(t,{value:p(),refetching:e})));return(r=n)&&"object"==typeof r&&"then"in r?(i=n,"value"in n?("success"===n.status?E(i,n.value,void 0,t):E(i,void 0,F(n.value),t),n):(a=!0,queueMicrotask((()=>a=!1)),B((()=>{S(f?"refreshing":"pending"),w()}),!1),n.then((e=>E(n,e,void 0,t)),(e=>E(n,void 0,F(e),t))))):(E(i,n,void 0,t),n);var r}return n.context&&(c=n.getNextContextId(),"initial"===l.ssrLoadFrom?u=l.initialValue:n.load&&n.has(c)&&(u=n.load(c))),Object.defineProperties(T,{state:{get:()=>A()},error:{get:()=>y()},loading:{get(){const e=A();return"pending"===e||"refreshing"===e}},latest:{get(){if(!f)return T();const e=y();if(e&&!i)throw e;return p()}}}),k(!1),[T,{refetch:k,mutate:g}]}function k(e){return B(e,!1)}function O(e){if(null===v)return e();const t=v;v=null;try{return e()}finally{v=t}}function $(e,t,n){const r=Array.isArray(e);let o,s=n&&n.defer;return n=>{let l;if(r){l=Array(e.length);for(let t=0;t<e.length;t++)l[t]=e[t]()}else l=e();if(s)return s=!1,n;const i=O((()=>t(l,o,n)));return o=l,i}}function L(e){S((()=>O(e)))}function N(e){return null===p||(null===p.cleanups?p.cleanups=[e]:p.cleanups.push(e)),e}function j(){return v}function P(e){const t=E(e),n=E((()=>W(t())));return n.toArray=()=>{const e=n();return Array.isArray(e)?e:null!=e?[e]:[]},n}function _(){if(this.sources&&this.state)if(this.state===a)I(this);else{const e=y;y=null,B((()=>U(this)),!1),y=e}if(v){const e=this.observers?this.observers.length:0;v.sources?(v.sources.push(this),v.sourceSlots.push(e)):(v.sources=[this],v.sourceSlots=[e]),this.observers?(this.observers.push(v),this.observerSlots.push(v.sources.length-1)):(this.observers=[v],this.observerSlots=[v.sources.length-1])}return this.value}function C(e,t,n){let r=e.value;return e.comparator&&e.comparator(r,t)||(e.value=t,e.observers&&e.observers.length&&B((()=>{for(let t=0;t<e.observers.length;t+=1){const n=e.observers[t],r=g&&g.running;r&&g.disposed.has(n),(r?n.tState:n.state)||(n.pure?y.push(n):b.push(n),n.observers&&H(n)),r||(n.state=a)}if(y.length>1e6)throw y=[],new Error}),!1)),t}function I(e){if(!e.fn)return;R(e);const t=m;!function(e,t,n){let r;const o=p,s=v;v=p=e;try{r=e.fn(t)}catch(l){return e.pure&&(e.state=a,e.owned&&e.owned.forEach(R),e.owned=null),e.updatedAt=n+1,G(l)}finally{v=s,p=o}(!e.updatedAt||e.updatedAt<=n)&&(null!=e.updatedAt&&"observers"in e?C(e,r):e.value=r,e.updatedAt=n)}(e,e.value,t)}function M(e,t,n,r=a,o){const s={fn:e,state:r,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:p,context:p?p.context:null,pure:n};return null===p||p!==d&&(p.owned?p.owned.push(s):p.owned=[s]),s}function q(e){if(0===e.state)return;if(e.state===f)return U(e);if(e.suspense&&O(e.suspense.inFallback))return e.suspense.effects.push(e);const t=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<m);)e.state&&t.push(e);for(let n=t.length-1;n>=0;n--)if((e=t[n]).state===a)I(e);else if(e.state===f){const n=y;y=null,B((()=>U(e,t[0])),!1),y=n}}function B(e,t){if(y)return e();let n=!1;t||(y=[]),b?n=!0:b=[],m++;try{const t=e();return function(e){if(y&&(V(y),y=null),e)return;const t=b;b=null,t.length&&B((()=>c(t)),!1)}(n),t}catch(r){n||(b=null),y=null,G(r)}}function V(e){for(let t=0;t<e.length;t++)q(e[t])}function D(e){let t,r=0;for(t=0;t<e.length;t++){const n=e[t];n.user?e[r++]=n:q(n)}if(n.context){if(n.count)return n.effects||(n.effects=[]),void n.effects.push(...e.slice(0,r));o()}for(!n.effects||!n.done&&n.count||(e=[...n.effects,...e],r+=n.effects.length,delete n.effects),t=0;t<r;t++)q(e[t])}function U(e,t){e.state=0;for(let n=0;n<e.sources.length;n+=1){const r=e.sources[n];if(r.sources){const e=r.state;e===a?r!==t&&(!r.updatedAt||r.updatedAt<m)&&q(r):e===f&&U(r,t)}}}function H(e){for(let t=0;t<e.observers.length;t+=1){const n=e.observers[t];n.state||(n.state=f,n.pure?y.push(n):b.push(n),n.observers&&H(n))}}function R(e){let t;if(e.sources)for(;e.sources.length;){const t=e.sources.pop(),n=e.sourceSlots.pop(),r=t.observers;if(r&&r.length){const e=r.pop(),o=t.observerSlots.pop();n<r.length&&(e.sourceSlots[o]=n,r[n]=e,t.observerSlots[n]=o)}}if(e.tOwned){for(t=e.tOwned.length-1;t>=0;t--)R(e.tOwned[t]);delete e.tOwned}if(e.owned){for(t=e.owned.length-1;t>=0;t--)R(e.owned[t]);e.owned=null}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null}e.state=0}function F(e){return e instanceof Error?e:new Error("string"==typeof e?e:"Unknown error",{cause:e})}function G(e,t=p){throw F(e)}function W(e){if("function"==typeof e&&!e.length)return W(e());if(Array.isArray(e)){const t=[];for(let n=0;n<e.length;n++){const r=W(e[n]);Array.isArray(r)?t.push.apply(t,r):t.push(r)}return t}return e}function X(e,t){return function(t){let n;return A((()=>n=O((()=>(p.context={...p.context,[e]:t.value},P((()=>t.children)))))),void 0),n}}const z=Symbol("fallback");function K(e){for(let t=0;t<e.length;t++)e[t]()}function Y(e,t){return O((()=>e(t||{})))}function J(){return!0}const Q={get:(e,t,n)=>t===s?n:e.get(t),has:(e,t)=>t===s||e.has(t),set:J,deleteProperty:J,getOwnPropertyDescriptor:(e,t)=>({configurable:!0,enumerable:!0,get:()=>e.get(t),set:J,deleteProperty:J}),ownKeys:e=>e.keys()};function Z(e){return(e="function"==typeof e?e():e)?e:{}}function ee(){for(let e=0,t=this.length;e<t;++e){const t=this[e]();if(void 0!==t)return t}}function te(...e){let t=!1;for(let l=0;l<e.length;l++){const n=e[l];t=t||!!n&&s in n,e[l]="function"==typeof n?(t=!0,E(n)):n}if(l&&t)return new Proxy({get(t){for(let n=e.length-1;n>=0;n--){const r=Z(e[n])[t];if(void 0!==r)return r}},has(t){for(let n=e.length-1;n>=0;n--)if(t in Z(e[n]))return!0;return!1},keys(){const t=[];for(let n=0;n<e.length;n++)t.push(...Object.keys(Z(e[n])));return[...new Set(t)]}},Q);const n={},r=Object.create(null);for(let s=e.length-1;s>=0;s--){const t=e[s];if(!t)continue;const o=Object.getOwnPropertyNames(t);for(let e=o.length-1;e>=0;e--){const s=o[e];if("__proto__"===s||"constructor"===s)continue;const l=Object.getOwnPropertyDescriptor(t,s);if(r[s]){const e=n[s];e&&(l.get?e.push(l.get.bind(t)):void 0!==l.value&&e.push((()=>l.value)))}else r[s]=l.get?{enumerable:!0,configurable:!0,get:ee.bind(n[s]=[l.get.bind(t)])}:void 0!==l.value?l:void 0}}const o={},i=Object.keys(r);for(let s=i.length-1;s>=0;s--){const e=i[s],t=r[e];t&&t.get?Object.defineProperty(o,e,t):o[e]=t?t.value:void 0}return o}function ne(e){let t,r;const s=s=>{const l=n.context;if(l){const[s,i]=x();n.count||(n.count=0),n.count++,(r||(r=e())).then((e=>{!n.done&&o(l),n.count--,i((()=>e.default)),o()})),t=s}else if(!t){const[n]=T((()=>(r||(r=e())).then((e=>e.default))));t=n}let i;return E((()=>(i=t())?O((()=>{if(!l||n.done)return i(s);const e=n.context;o(l);const t=i(s);return o(e),t})):""))};return s.preload=()=>r||((r=e()).then((e=>t=()=>e.default)),r),s}const re=e=>`Stale read from <${e}>.`;function oe(e){const t="fallback"in e&&{fallback:()=>e.fallback};return E(function(e,t,n={}){let r=[],o=[],s=[],l=0,u=t.length>1?[]:null;return N((()=>K(s))),()=>{let c,a,f=e()||[],d=f.length;return f[i],O((()=>{let e,t,i,p,g,v,y,b,m;if(0===d)0!==l&&(K(s),s=[],r=[],o=[],l=0,u&&(u=[])),n.fallback&&(r=[z],o[0]=w((e=>(s[0]=e,n.fallback()))),l=1);else if(0===l){for(o=new Array(d),a=0;a<d;a++)r[a]=f[a],o[a]=w(h);l=d}else{for(i=new Array(d),p=new Array(d),u&&(g=new Array(d)),v=0,y=Math.min(l,d);v<y&&r[v]===f[v];v++);for(y=l-1,b=d-1;y>=v&&b>=v&&r[y]===f[b];y--,b--)i[b]=o[y],p[b]=s[y],u&&(g[b]=u[y]);for(e=new Map,t=new Array(b+1),a=b;a>=v;a--)m=f[a],c=e.get(m),t[a]=void 0===c?-1:c,e.set(m,a);for(c=v;c<=y;c++)m=r[c],a=e.get(m),void 0!==a&&-1!==a?(i[a]=o[c],p[a]=s[c],u&&(g[a]=u[c]),a=t[a],e.set(m,a)):s[c]();for(a=v;a<d;a++)a in i?(o[a]=i[a],s[a]=p[a],u&&(u[a]=g[a],u[a](a))):o[a]=w(h);o=o.slice(0,l=d),r=f.slice(0)}return o}));function h(e){if(s[a]=e,u){const[e,n]=x(a);return u[a]=n,t(f[a],e)}return t(f[a])}}}((()=>e.each),e.children,t||void 0))}function se(e){const t=e.keyed,n=E((()=>e.when),void 0,{equals:(e,n)=>t?e===n:!e==!n});return E((()=>{const r=n();if(r){const o=e.children;return"function"==typeof o&&o.length>0?O((()=>o(t?r:()=>{if(!O(n))throw re("Show");return e.when}))):o}return e.fallback}),void 0,void 0)}function le(e){let t=!1;const n=P((()=>e.children)),r=E((()=>{let e=n();Array.isArray(e)||(e=[e]);for(let n=0;n<e.length;n++){const r=e[n].when;if(r)return t=!!e[n].keyed,[n,r,e[n]]}return[-1]}),void 0,{equals:(e,n)=>(t?e[1]===n[1]:!e[1]==!n[1])&&e[2]===n[2]});return E((()=>{const[n,o,s]=r();if(n<0)return e.fallback;const l=s.children;return"function"==typeof l&&l.length>0?O((()=>l(t?o:()=>{if(O(r)[0]!==n)throw re("Match");return s.when}))):l}),void 0,void 0)}function ie(e){return e}const ue=new Set(["className","value","readOnly","formNoValidate","isMap","noModule","playsInline","allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected"]),ce=new Set(["innerHTML","textContent","innerText","children"]),ae=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),fe=Object.assign(Object.create(null),{class:"className",formnovalidate:{$:"formNoValidate",BUTTON:1,INPUT:1},ismap:{$:"isMap",IMG:1},nomodule:{$:"noModule",SCRIPT:1},playsinline:{$:"playsInline",VIDEO:1},readonly:{$:"readOnly",INPUT:1,TEXTAREA:1}}),de=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]),he="_$DX_DELEGATE";function pe(e,t,n){let r;const o=()=>(r||(r=(()=>{const t=document.createElement("template");return t.innerHTML=e,t.content.firstChild})())).cloneNode(!0);return o.cloneNode=o,o}function ge(e,t=window.document){const n=t[he]||(t[he]=new Set);for(let r=0,o=e.length;r<o;r++){const o=e[r];n.has(o)||(n.add(o),t.addEventListener(o,Se))}}function ve(e,t,n){we(e)||(null==n?e.removeAttribute(t):e.setAttribute(t,n))}function ye(e,t={},n,r){const o={};return A((()=>o.children=Ee(e,t.children,o.children))),A((()=>"function"==typeof t.ref&&be(t.ref,e))),A((()=>function(e,t,n,r,o={},s=!1){t||(t={});for(const l in o)if(!(l in t)){if("children"===l)continue;o[l]=Ae(e,l,null,o[l],0,s,t)}for(const l in t){if("children"===l)continue;const n=t[l];o[l]=Ae(e,l,n,o[l],0,s,t)}}(e,t,0,0,o,!0))),o}function be(e,t,n){return O((()=>e(t,n)))}function me(e,t,n,r){if(void 0===n||r||(r=[]),"function"!=typeof t)return Ee(e,t,r,n);A((r=>Ee(e,t(),r,n)),r)}function we(e){return!!n.context&&!n.done&&(!e||e.isConnected)}function xe(e,t,n){const r=t.trim().split(/\s+/);for(let o=0,s=r.length;o<s;o++)e.classList.toggle(r[o],n)}function Ae(e,t,n,r,o,s,l){let i,u,c,a,f;if("style"===t)return function(e,t,n){if(!t)return n?ve(e,"style"):t;const r=e.style;if("string"==typeof t)return r.cssText=t;let o,s;for(s in"string"==typeof n&&(r.cssText=n=void 0),n||(n={}),t||(t={}),n)null==t[s]&&r.removeProperty(s),delete n[s];for(s in t)o=t[s],o!==n[s]&&(r.setProperty(s,o),n[s]=o);return n}(e,n,r);if("classList"===t)return function(e,t,n={}){const r=Object.keys(t||{}),o=Object.keys(n);let s,l;for(s=0,l=o.length;s<l;s++){const r=o[s];r&&"undefined"!==r&&!t[r]&&(xe(e,r,!1),delete n[r])}for(s=0,l=r.length;s<l;s++){const o=r[s],l=!!t[o];o&&"undefined"!==o&&n[o]!==l&&l&&(xe(e,o,!0),n[o]=l)}return n}(e,n,r);if(n===r)return r;if("ref"===t)s||n(e);else if("on:"===t.slice(0,3)){const o=t.slice(3);r&&e.removeEventListener(o,r,"function"!=typeof r&&r),n&&e.addEventListener(o,n,"function"!=typeof n&&n)}else if("oncapture:"===t.slice(0,10)){const o=t.slice(10);r&&e.removeEventListener(o,r,!0),n&&e.addEventListener(o,n,!0)}else if("on"===t.slice(0,2)){const o=t.slice(2).toLowerCase(),s=de.has(o);if(!s&&r){const t=Array.isArray(r)?r[0]:r;e.removeEventListener(o,t)}(s||n)&&(function(e,t,n,r){if(r)Array.isArray(n)?(e[`$$${t}`]=n[0],e[`$$${t}Data`]=n[1]):e[`$$${t}`]=n;else if(Array.isArray(n)){const r=n[0];e.addEventListener(t,n[0]=t=>r.call(e,n[1],t))}else e.addEventListener(t,n,"function"!=typeof n&&n)}(e,o,n,s),s&&ge([o]))}else if("attr:"===t.slice(0,5))ve(e,t.slice(5),n);else if("bool:"===t.slice(0,5))!function(e,t,n){we(e)||(n?e.setAttribute(t,""):e.removeAttribute(t))}(e,t.slice(5),n);else if((f="prop:"===t.slice(0,5))||(c=ce.has(t))||(a=function(e,t){const n=fe[e];return"object"==typeof n?n[t]?n.$:void 0:n}(t,e.tagName))||(u=ue.has(t))||(i=e.nodeName.includes("-")||"is"in l)){if(f)t=t.slice(5),u=!0;else if(we(e))return n;"class"===t||"className"===t?function(e,t){we(e)||(null==t?e.removeAttribute("class"):e.className=t)}(e,n):!i||u||c?e[a||t]=n:e[(d=t,d.toLowerCase().replace(/-([a-z])/g,((e,t)=>t.toUpperCase())))]=n}else ve(e,ae[t]||t,n);var d;return n}function Se(e){if(n.registry&&n.events&&n.events.find((([t,n])=>n===e)))return;let t=e.target;const r=`$$${e.type}`,o=e.target,s=e.currentTarget,l=t=>Object.defineProperty(e,"target",{configurable:!0,value:t}),i=()=>{const n=t[r];if(n&&!t.disabled){const o=t[`${r}Data`];if(void 0!==o?n.call(t,o,e):n.call(t,e),e.cancelBubble)return}return t.host&&"string"!=typeof t.host&&!t.host._$host&&t.contains(e.target)&&l(t.host),!0},u=()=>{for(;i()&&(t=t._$host||t.parentNode||t.host););};if(Object.defineProperty(e,"currentTarget",{configurable:!0,get:()=>t||document}),n.registry&&!n.done&&(n.done=_$HY.done=!0),e.composedPath){const n=e.composedPath();l(n[0]);for(let e=0;e<n.length-2&&(t=n[e],i());e++){if(t._$host){t=t._$host,u();break}if(t.parentNode===s)break}}else u();l(o)}function Ee(e,t,n,r,o){const s=we(e);if(s){!n&&(n=[...e.childNodes]);let t=[];for(let e=0;e<n.length;e++){const r=n[e];8===r.nodeType&&"!$"===r.data.slice(0,2)?r.remove():t.push(r)}n=t}for(;"function"==typeof n;)n=n();if(t===n)return n;const l=typeof t,i=void 0!==r;if(e=i&&n[0]&&n[0].parentNode||e,"string"===l||"number"===l){if(s)return n;if("number"===l&&(t=t.toString())===n)return n;if(i){let o=n[0];o&&3===o.nodeType?o.data!==t&&(o.data=t):o=document.createTextNode(t),n=Oe(e,n,r,o)}else n=""!==n&&"string"==typeof n?e.firstChild.data=t:e.textContent=t}else if(null==t||"boolean"===l){if(s)return n;n=Oe(e,n,r)}else{if("function"===l)return A((()=>{let o=t();for(;"function"==typeof o;)o=o();n=Ee(e,o,n,r)})),()=>n;if(Array.isArray(t)){const l=[],u=n&&Array.isArray(n);if(Te(l,t,n,o))return A((()=>n=Ee(e,l,n,r,!0))),()=>n;if(s){if(!l.length)return n;if(void 0===r)return n=[...e.childNodes];let t=l[0];if(t.parentNode!==e)return n;const o=[t];for(;(t=t.nextSibling)!==r;)o.push(t);return n=o}if(0===l.length){if(n=Oe(e,n,r),i)return n}else u?0===n.length?ke(e,l,r):function(e,t,n){let r=n.length,o=t.length,s=r,l=0,i=0,u=t[o-1].nextSibling,c=null;for(;l<o||i<s;)if(t[l]!==n[i]){for(;t[o-1]===n[s-1];)o--,s--;if(o===l){const t=s<r?i?n[i-1].nextSibling:n[s-i]:u;for(;i<s;)e.insertBefore(n[i++],t)}else if(s===i)for(;l<o;)c&&c.has(t[l])||t[l].remove(),l++;else if(t[l]===n[s-1]&&n[i]===t[o-1]){const r=t[--o].nextSibling;e.insertBefore(n[i++],t[l++].nextSibling),e.insertBefore(n[--s],r),t[o]=n[s]}else{if(!c){c=new Map;let e=i;for(;e<s;)c.set(n[e],e++)}const r=c.get(t[l]);if(null!=r)if(i<r&&r<s){let u,a=l,f=1;for(;++a<o&&a<s&&null!=(u=c.get(t[a]))&&u===r+f;)f++;if(f>r-i){const o=t[l];for(;i<r;)e.insertBefore(n[i++],o)}else e.replaceChild(n[i++],t[l++])}else l++;else t[l++].remove()}}else l++,i++}(e,n,l):(n&&Oe(e),ke(e,l));n=l}else if(t.nodeType){if(s&&t.parentNode)return n=i?[t]:t;if(Array.isArray(n)){if(i)return n=Oe(e,n,r,t);Oe(e,n,null,t)}else null!=n&&""!==n&&e.firstChild?e.replaceChild(t,e.firstChild):e.appendChild(t);n=t}}return n}function Te(e,t,n,r){let o=!1;for(let s=0,l=t.length;s<l;s++){let l,i=t[s],u=n&&n[e.length];if(null==i||!0===i||!1===i);else if("object"==(l=typeof i)&&i.nodeType)e.push(i);else if(Array.isArray(i))o=Te(e,i,u)||o;else if("function"===l)if(r){for(;"function"==typeof i;)i=i();o=Te(e,Array.isArray(i)?i:[i],Array.isArray(u)?u:[u])||o}else e.push(i),o=!0;else{const t=String(i);u&&3===u.nodeType&&u.data===t?e.push(u):e.push(document.createTextNode(t))}}return o}function ke(e,t,n=null){for(let r=0,o=t.length;r<o;r++)e.insertBefore(t[r],n)}function Oe(e,t,n,r){if(void 0===n)return e.textContent="";const o=r||document.createTextNode("");if(t.length){let r=!1;for(let s=t.length-1;s>=0;s--){const l=t[s];if(o!==l){const t=l.parentNode===e;r||s?t&&l.remove():t?e.replaceChild(o,l):e.insertBefore(o,n)}else r=!0}}else e.insertBefore(o,n);return[o]}async function $e(){if("404"===document.title.split(" | ")[0])return[];try{const e=await fetch(`${window.location.href}index.json`,{headers:{Accept:"application/json"}});return(await e.json()).sort(((e,t)=>e.index<t.index?-1:1))}catch(e){return[]}}function Le(e,t){if(!e)throw new Error("Invariant failed")}function Ne(e,t){return(e+1)%t}function je(e,t){return(e+t-1)%t}function Pe(e){return("0000"+e.toString()).slice(-4)}async function _e(){return(await t((()=>import("./CqsBem.js")),[])).gsap}function Ce(){const e=sessionStorage.getItem("thresholdsIndex");return null===e?2:parseInt(e)}const Ie=[{threshold:20,trailLength:20},{threshold:40,trailLength:10},{threshold:80,trailLength:5},{threshold:140,trailLength:5},{threshold:200,trailLength:5}],Me=function(){const e=Symbol("context");return{id:e,Provider:X(e),defaultValue:void 0}}();function qe(e,t,n){const r=t.findIndex((t=>t.threshold===e))+n;return r<0||r>=t.length?t[r-n]:(sessionStorage.setItem("thresholdsIndex",r.toString()),t[r])}function Be(e){const t={index:-1,length:e.length,threshold:Ie[Ce()].threshold,trailLength:Ie[Ce()].trailLength},[n,r]=x(t),o=((e,t)=>[e,{setIndex:e=>{t((t=>({...t,index:e})))},incIndex:()=>{t((e=>({...e,index:Ne(e.index,e.length)})))},decIndex:()=>{t((e=>({...e,index:je(e.index,e.length)})))},incThreshold:()=>{t((e=>({...e,...qe(e.threshold,Ie,1)})))},decThreshold:()=>{t((e=>({...e,...qe(e.threshold,Ie,-1)})))}}])(n,r);return Y(Me.Provider,{value:o,get children(){return e.children}})}function Ve(){const e=function(e){let t;return p&&p.context&&void 0!==(t=p.context[e.id])?t:e.defaultValue}(Me);return Le(e),e}var De=pe("<div>Error");const Ue=document.getElementsByClassName("container")[0],He=ne((async()=>await t((()=>import("./BSNAnE.js")),[]))),Re=ne((async()=>await t((()=>import("./BPtQtF.js")),[])));function Fe(){const[e]=T($e),t=window.matchMedia("(hover: none)").matches&&!window.navigator.userAgent.includes("Win"),[n,r]=x(!0);return S((()=>{n()?Ue.classList.remove("disableScroll"):Ue.classList.add("disableScroll")})),Y(se,{get when(){return"ready"===e.state},get children(){return Y(Be,{get length(){var t;return(null==(t=e())?void 0:t.length)??0},get children(){return Y(le,{get fallback(){return De()},get children(){return[Y(ie,{when:t,get children(){return Y(Re,{get ijs(){return e()??[]},get closeText(){return Ue.dataset.close},get loadingText(){return Ue.dataset.loading},setScrollable:r})}}),Y(ie,{when:!t,get children(){return Y(He,{get ijs(){return e()??[]},get prevText(){return Ue.dataset.prev},get closeText(){return Ue.dataset.close},get nextText(){return Ue.dataset.next},get loadingText(){return Ue.dataset.loading}})}})]}})}})}})}!function(e,t,n,r={}){let o;w((r=>{o=r,t===document?e():me(t,e(),t.firstChild?null:void 0,n)}),r.owner)}((()=>Y(Fe,{})),Ue);export{s as $,oe as F,se as S,t as _,N as a,A as b,x as c,S as d,Pe as e,$ as f,Y as g,be as h,me as i,ge as j,je as k,_e as l,Ne as m,E as n,L as o,i as p,j as q,k as r,ve as s,pe as t,Ve as u,ye as v,te as w,Le as x}; |