the editable site (validation-lab)

This commit is contained in:
kpgarrod committed 2026-11-21 08:03:55 +01:00
commit 3ac81d5a52
13454 files changed
+2227005

No files matched your search

@@ -0,0 +1 @@
import{r as e}from"./_shared-module_42-B_M8U-E0.js";var ee=e[4][0],t=e[6][0],n=e[11],te=n[0],r=n[1],i=n[2],a=n[3],o=e[18],ne=o[0],re=o[1],ie=o[2],ae=o[3],s=e[27],oe=s[0],se=s[1],ce=s[2],le=s[3],ue=s[4],c=s[5],l=s[6],u=s[7],d=e[37][0],f=e[39][0],p=e[31][0],m=e[12],h=m[0],g=m[1],_=e[2],v=_[0],y=_[1],b=_[2],x=_[3],S=e[20],C=S[0],w=S[1],T=S[2],E=S[3],D=S[4],O=S[5],k=S[6],A=S[7],j=S[8],M=S[9],N=S[10],P=S[11],F=S[12],I=e[14],L=I[0],R=I[1],z=I[2],B=I[3],V=I[4],H=I[5],U=e[21][0],W=e[15],G=W[0],de=W[1],K=e[16],fe=K[0],pe=K[1],me=K[2],he=K[3],ge=e[10][0],_e=e[17][0],ve=e[19][0],ye=e[30][0],q=e[33],be=q[0],xe=q[1],J=e[38],Se=J[0],Ce=J[1],Y=e[24],we=Y[0],Te=Y[1],X=e[26],Ee=X[0],De=X[1],Oe=X[2],ke=X[3],Z=e[32],Ae=Z[0],je=Z[1],Me=Z[2],Ne=Z[3],Pe=Z[4],Fe=Z[5],Ie=Z[6],Le=Z[7],Re=Z[8],ze=Z[9],Be=Z[10],Ve=Z[11],He=Z[12],Ue=Z[13],We=Z[14],Ge=Z[15],Ke=Z[16],Q=e[47],qe=Q[0],Je=Q[1],Ye=Q[2],Xe=Q[3],$=e[48],Ze=$[0],Qe=$[1],$e=e[45][0],et=e[22][0],tt=e[34][0];export{H as $,ke as A,ne as At,ge as B,Ie as C,se as Ct,Ee as D,c as Dt,ze as E,ue as Et,be as F,r as Ft,G,pe as H,xe as I,i as It,L as J,de as K,ye as L,a as Lt,Te as M,ie as Mt,Se as N,ae as Nt,De as O,l as Ot,Ce as P,te as Pt,V as Q,ve as R,t as Rt,Fe as S,oe as St,Re as T,le as Tt,me as U,fe as V,he as W,z as X,R as Y,B as Z,Ge as _,h as _t,Qe as a,T as at,Ne as b,f as bt,Ye as c,O as ct,je as d,j as dt,C as et,Be as f,M as ft,We as g,x as gt,Ue as h,b as ht,Ze as i,F as it,we as j,re as jt,Oe as k,u as kt,Xe as l,k as lt,He as m,y as mt,et as n,N as nt,qe as o,E as ot,Ve as p,v as pt,U as q,$e as r,P as rt,Je as s,D as st,tt as t,w as tt,Ae as u,A as ut,Ke as v,g as vt,Le as w,ce as wt,Pe as x,d as xt,Me as y,p as yt,_e as z,ee as zt};
@@ -0,0 +1 @@
var e=globalThis[`__SVELTIA_CMS_MODULES_0.266.0_82a9571e9238`];if(!e)throw Error(`The chunk was built with another version of the CMS.`);var t=e[42],n=t[0],r=t[1];export{r as n,e as r,n as t};
+1
View File
@@ -0,0 +1 @@
var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t,n)=>()=>{if(n)throw n[0];try{return e&&(t=e(e=0)),t}catch(e){throw n=[e],e}},s=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t,t.exports),e=null),t.exports),c=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},l=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},u=(n,r,o)=>(o=n==null?{}:e(i(n)),l(r||!n||!n.__esModule||!a.call(n,`default`)?t(o,`default`,{value:n,enumerable:!0}):o,n)),d=e=>a.call(e,`module.exports`)?e[`module.exports`]:l(t({},`__esModule`,{value:!0}),e);export{u as a,d as i,o as n,c as r,s as t};
+84
View File
@@ -0,0 +1,84 @@
import{a as e,t}from"./assets/rolldown-runtime-BWaJ3C7D.js";var n=t((e=>{e.byteLength=c,e.toByteArray=u,e.fromByteArray=p;for(var t=[],n=[],r=typeof Uint8Array<`u`?Uint8Array:Array,i=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,a=0,o=i.length;a<o;++a)t[a]=i[a],n[i.charCodeAt(a)]=a;n[45]=62,n[95]=63;function s(e){var t=e.length;if(t%4>0)throw Error(`Invalid string. Length must be a multiple of 4`);var n=e.indexOf(`=`);n===-1&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function c(e){var t=s(e),n=t[0],r=t[1];return(n+r)*3/4-r}function l(e,t,n){return(t+n)*3/4-n}function u(e){for(var t,i=s(e),a=i[0],o=i[1],c=new r(l(e,a,o)),u=0,d=o>0?a-4:a,f=0;f<d;f+=4)t=n[e.charCodeAt(f)]<<18|n[e.charCodeAt(f+1)]<<12|n[e.charCodeAt(f+2)]<<6|n[e.charCodeAt(f+3)],c[u++]=t>>16&255,c[u++]=t>>8&255,c[u++]=t&255;return o===2&&(t=n[e.charCodeAt(f)]<<2|n[e.charCodeAt(f+1)]>>4,c[u++]=t&255),o===1&&(t=n[e.charCodeAt(f)]<<10|n[e.charCodeAt(f+1)]<<4|n[e.charCodeAt(f+2)]>>2,c[u++]=t>>8&255,c[u++]=t&255),c}function d(e){return t[e>>18&63]+t[e>>12&63]+t[e>>6&63]+t[e&63]}function f(e,t,n){for(var r,i=[],a=t;a<n;a+=3)r=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(e[a+2]&255),i.push(d(r));return i.join(``)}function p(e){for(var n,r=e.length,i=r%3,a=[],o=16383,s=0,c=r-i;s<c;s+=o)a.push(f(e,s,s+o>c?c:s+o));return i===1?(n=e[r-1],a.push(t[n>>2]+t[n<<4&63]+`==`)):i===2&&(n=(e[r-2]<<8)+e[r-1],a.push(t[n>>10]+t[n>>4&63]+t[n<<2&63]+`=`)),a.join(``)}})),r=t((e=>{
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
e.read=function(e,t,n,r,i){var a,o,s=i*8-r-1,c=(1<<s)-1,l=c>>1,u=-7,d=n?i-1:0,f=n?-1:1,p=e[t+d];for(d+=f,a=p&(1<<-u)-1,p>>=-u,u+=s;u>0;a=a*256+e[t+d],d+=f,u-=8);for(o=a&(1<<-u)-1,a>>=-u,u+=r;u>0;o=o*256+e[t+d],d+=f,u-=8);if(a===0)a=1-l;else if(a===c)return o?NaN:(p?-1:1)*(1/0);else o+=2**r,a-=l;return(p?-1:1)*o*2**(a-r)},e.write=function(e,t,n,r,i,a){var o,s,c,l=a*8-i-1,u=(1<<l)-1,d=u>>1,f=i===23?2**-24-2**-77:0,p=r?0:a-1,m=r?1:-1,h=+(t<0||t===0&&1/t<0);for(t=Math.abs(t),isNaN(t)||t===1/0?(s=+!!isNaN(t),o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(c=2**-o)<1&&(o--,c*=2),o+d>=1?t+=f/c:t+=f*2**(1-d),t*c>=2&&(o++,c/=2),o+d>=u?(s=0,o=u):o+d>=1?(s=(t*c-1)*2**i,o+=d):(s=t*2**(d-1)*2**i,o=0));i>=8;e[n+p]=s&255,p+=m,s/=256,i-=8);for(o=o<<i|s,l+=i;l>0;e[n+p]=o&255,p+=m,o/=256,l-=8);e[n+p-m]|=h*128}})),i=t((e=>{
/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/
var t=n(),i=r(),a=typeof Symbol==`function`&&typeof Symbol.for==`function`?Symbol.for(`nodejs.util.inspect.custom`):null;e.Buffer=l,e.SlowBuffer=b,e.INSPECT_MAX_BYTES=50;var o=2147483647;e.kMaxLength=o,l.TYPED_ARRAY_SUPPORT=s(),!l.TYPED_ARRAY_SUPPORT&&typeof console<`u`&&typeof console.error==`function`&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function s(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch{return!1}}Object.defineProperty(l.prototype,"parent",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.buffer}}),Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.byteOffset}});function c(e){if(e>o)throw RangeError(`The value "`+e+`" is invalid for option "size"`);let t=new Uint8Array(e);return Object.setPrototypeOf(t,l.prototype),t}function l(e,t,n){if(typeof e==`number`){if(typeof t==`string`)throw TypeError(`The "string" argument must be of type string. Received type number`);return p(e)}return u(e,t,n)}l.poolSize=8192;function u(e,t,n){if(typeof e==`string`)return m(e,t);if(ArrayBuffer.isView(e))return g(e);if(e==null)throw TypeError(`The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type `+typeof e);if(W(e,ArrayBuffer)||e&&W(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<`u`&&(W(e,SharedArrayBuffer)||e&&W(e.buffer,SharedArrayBuffer)))return _(e,t,n);if(typeof e==`number`)throw TypeError(`The "value" argument must not be of type number. Received type number`);let r=e.valueOf&&e.valueOf();if(r!=null&&r!==e)return l.from(r,t,n);let i=v(e);if(i)return i;if(typeof Symbol<`u`&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]==`function`)return l.from(e[Symbol.toPrimitive](`string`),t,n);throw TypeError(`The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type `+typeof e)}l.from=function(e,t,n){return u(e,t,n)},Object.setPrototypeOf(l.prototype,Uint8Array.prototype),Object.setPrototypeOf(l,Uint8Array);function d(e){if(typeof e!=`number`)throw TypeError(`"size" argument must be of type number`);if(e<0)throw RangeError(`The value "`+e+`" is invalid for option "size"`)}function f(e,t,n){return d(e),e<=0||t===void 0?c(e):typeof n==`string`?c(e).fill(t,n):c(e).fill(t)}l.alloc=function(e,t,n){return f(e,t,n)};function p(e){return d(e),c(e<0?0:y(e)|0)}l.allocUnsafe=function(e){return p(e)},l.allocUnsafeSlow=function(e){return p(e)};function m(e,t){if((typeof t!=`string`||t===``)&&(t=`utf8`),!l.isEncoding(t))throw TypeError(`Unknown encoding: `+t);let n=x(e,t)|0,r=c(n),i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}function h(e){let t=e.length<0?0:y(e.length)|0,n=c(t);for(let r=0;r<t;r+=1)n[r]=e[r]&255;return n}function g(e){if(W(e,Uint8Array)){let t=new Uint8Array(e);return _(t.buffer,t.byteOffset,t.byteLength)}return h(e)}function _(e,t,n){if(t<0||e.byteLength<t)throw RangeError(`"offset" is outside of buffer bounds`);if(e.byteLength<t+(n||0))throw RangeError(`"length" is outside of buffer bounds`);let r;return r=t===void 0&&n===void 0?new Uint8Array(e):n===void 0?new Uint8Array(e,t):new Uint8Array(e,t,n),Object.setPrototypeOf(r,l.prototype),r}function v(e){if(l.isBuffer(e)){let t=y(e.length)|0,n=c(t);return n.length===0||e.copy(n,0,0,t),n}if(e.length!==void 0)return typeof e.length!=`number`||G(e.length)?c(0):h(e);if(e.type===`Buffer`&&Array.isArray(e.data))return h(e.data)}function y(e){if(e>=o)throw RangeError(`Attempt to allocate Buffer larger than maximum size: 0x`+o.toString(16)+` bytes`);return e|0}function b(e){return+e!=e&&(e=0),l.alloc(+e)}l.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==l.prototype},l.compare=function(e,t){if(W(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),W(t,Uint8Array)&&(t=l.from(t,t.offset,t.byteLength)),!l.isBuffer(e)||!l.isBuffer(t))throw TypeError(`The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array`);if(e===t)return 0;let n=e.length,r=t.length;for(let i=0,a=Math.min(n,r);i<a;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:+(r<n)},l.isEncoding=function(e){switch(String(e).toLowerCase()){case`hex`:case`utf8`:case`utf-8`:case`ascii`:case`latin1`:case`binary`:case`base64`:case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return!0;default:return!1}},l.concat=function(e,t){if(!Array.isArray(e))throw TypeError(`"list" argument must be an Array of Buffers`);if(e.length===0)return l.alloc(0);let n;if(t===void 0)for(t=0,n=0;n<e.length;++n)t+=e[n].length;let r=l.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){let t=e[n];if(W(t,Uint8Array))i+t.length>r.length?(l.isBuffer(t)||(t=l.from(t)),t.copy(r,i)):Uint8Array.prototype.set.call(r,t,i);else if(l.isBuffer(t))t.copy(r,i);else throw TypeError(`"list" argument must be an Array of Buffers`);i+=t.lengthLine truncated
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
var n=i(),r=n.Buffer;function a(e,t){for(var n in e)t[n]=e[n]}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?t.exports=n:(a(n,e),e.Buffer=o);function o(e,t,n){return r(e,t,n)}o.prototype=Object.create(r.prototype),a(r,o),o.from=function(e,t,n){if(typeof e==`number`)throw TypeError(`Argument must not be a number`);return r(e,t,n)},o.alloc=function(e,t,n){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);var i=r(e);return t===void 0?i.fill(0):typeof n==`string`?i.fill(t,n):i.fill(t),i},o.allocUnsafe=function(e){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);return r(e)},o.allocUnsafeSlow=function(e){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);return n.SlowBuffer(e)}})),c=t(((e,t)=>{var n={}.toString;t.exports=Array.isArray||function(e){return n.call(e)==`[object Array]`}})),l=t(((e,t)=>{t.exports=TypeError})),u=t(((e,t)=>{t.exports=Object})),d=t(((e,t)=>{t.exports=Error})),f=t(((e,t)=>{t.exports=EvalError})),p=t(((e,t)=>{t.exports=RangeError})),m=t(((e,t)=>{t.exports=ReferenceError})),h=t(((e,t)=>{t.exports=SyntaxError})),g=t(((e,t)=>{t.exports=URIError})),_=t(((e,t)=>{t.exports=Math.abs})),v=t(((e,t)=>{t.exports=Math.floor})),y=t(((e,t)=>{t.exports=Math.max})),b=t(((e,t)=>{t.exports=Math.min})),x=t(((e,t)=>{t.exports=Math.pow})),S=t(((e,t)=>{t.exports=Math.round})),C=t(((e,t)=>{t.exports=Number.isNaN||function(e){return e!==e}})),w=t(((e,t)=>{var n=C();t.exports=function(e){return n(e)||e===0?e:e<0?-1:1}})),T=t(((e,t)=>{t.exports=Object.getOwnPropertyDescriptor})),E=t(((e,t)=>{var n=T();if(n)try{n([],`length`)}catch{n=null}t.exports=n})),D=t(((e,t)=>{var n=Object.defineProperty||!1;if(n)try{n({},`a`,{value:1})}catch{n=!1}t.exports=n})),ee=t(((e,t)=>{t.exports=function(){if(typeof Symbol!=`function`||typeof Object.getOwnPropertySymbols!=`function`)return!1;if(typeof Symbol.iterator==`symbol`)return!0;var e={},t=Symbol(`test`),n=Object(t);if(typeof t==`string`||Object.prototype.toString.call(t)!==`[object Symbol]`||Object.prototype.toString.call(n)!==`[object Symbol]`)return!1;var r=42;for(var i in e[t]=r,e)return!1;if(typeof Object.keys==`function`&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames==`function`&&Object.getOwnPropertyNames(e).length!==0)return!1;var a=Object.getOwnPropertySymbols(e);if(a.length!==1||a[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor==`function`){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==r||o.enumerable!==!0)return!1}return!0}})),te=t(((e,t)=>{var n=typeof Symbol<`u`&&Symbol,r=ee();t.exports=function(){return typeof n!=`function`||typeof Symbol!=`function`||typeof n(`foo`)!=`symbol`||typeof Symbol(`bar`)!=`symbol`?!1:r()}})),O=t(((e,t)=>{t.exports=typeof Reflect<`u`&&Reflect.getPrototypeOf||null})),k=t(((e,t)=>{t.exports=u().getPrototypeOf||null})),A=t(((e,t)=>{var n=Object.prototype.toString,r=Math.max,i=`[object Function]`,a=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var i=0;i<t.length;i+=1)n[i+e.length]=t[i];return n},o=function(e,t){for(var n=[],r=t||0,i=0;r<e.length;r+=1,i+=1)n[i]=e[r];return n},s=function(e,t){for(var n=``,r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n};t.exports=function(e){var t=this;if(typeof t!=`function`||n.apply(t)!==i)throw TypeError(`Function.prototype.bind called on incompatible `+t);for(var c=o(arguments,1),l,u=function(){if(this instanceof l){var n=t.apply(this,a(c,arguments));return Object(n)===n?n:this}return t.apply(e,a(c,arguments))},d=r(0,t.length-c.length),f=[],p=0;p<d;p++)f[p]=`$`+p;if(l=Function(`binder`,`return function (`+s(f,`,`)+`){ return binder.apply(this,arguments); }`)(u),t.prototype){var m=function(){};m.prototype=t.prototype,l.prototype=new m,m.prototype=null}return l}})),j=t(((e,t)=>{var n=A();t.exports=Function.prototype.bind||n})),M=t(((e,t)=>{t.exports=Function.prototype.call})),ne=t(((e,t)=>{t.exports=Function.prototype.apply})),re=t(((e,t)=>{t.exports=typeof Reflect<`u`&&Reflect&&Reflect.apply})),ie=t(((e,t)=>{var n=j(),r=ne(),i=M();t.exports=re()||n.call(i,r)})),ae=t(((e,t)=>{var n=j(),r=l(),i=M(),a=ie();t.exports=function(e){if(e.length<1||typeof e[0]!=`function`)throw new r(`a function is required`);return a(n,i,e)}})),N=t(((e,t)=>{var n=ae(),r=E(),i;try{i=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!=`object`||!(`code`in e)||e.code!==`ERR_PROTO_ACCESS`)throw e}var a=!!i&&r&&r(Object.prototype,`__proto__`),o=Object,s=o.getPrototypeOf;t.exports=a&&typeof a.get==`function`?n([a.get]):typeof s==`function`&&function(e){return s(e==null?e:o(e))}})),P=t(((e,t)=>{var n=O(),r=k(),i=N();t.exports=n?function(e){return n(e)}:r?function(e){if(!e||typeof e!=`object`&&typeof e!=`function`)throw TypeError(`getProto: not an object`);return r(e)}:i?function(e){return i(e)}:null})),oe=t(((e,t)=>{var n=Function.prototype.call,r=Object.prototype.hasOwnProperty;t.exports=j().call(n,r)})),se=t(((e,t)=>{var n,r=u(),i=d(),a=f(),o=p(),s=m(),c=h(),C=l(),T=g(),Line truncated
/*! crc32.js (C) 2014-present SheetJS -- http://sheetjs.com */
(function(t){typeof DO_NOT_EXPORT_CRC>`u`?typeof e==`object`?t(e):typeof define==`function`&&define.amd?define(function(){var e={};return t(e),e}):t({}):t({})})(function(e){e.version=`1.2.2`;function t(){for(var e=0,t=Array(256),n=0;n!=256;++n)e=n,e=e&1?-306674912^e>>>1:e>>>1,e=e&1?-306674912^e>>>1:e>>>1,e=e&1?-306674912^e>>>1:e>>>1,e=e&1?-306674912^e>>>1:e>>>1,e=e&1?-306674912^e>>>1:e>>>1,e=e&1?-306674912^e>>>1:e>>>1,e=e&1?-306674912^e>>>1:e>>>1,e=e&1?-306674912^e>>>1:e>>>1,t[n]=e;return typeof Int32Array<`u`?new Int32Array(t):t}var n=t();function r(e){var t=0,n=0,r=0,i=typeof Int32Array<`u`?new Int32Array(4096):Array(4096);for(r=0;r!=256;++r)i[r]=e[r];for(r=0;r!=256;++r)for(n=e[r],t=256+r;t<4096;t+=256)n=i[t]=n>>>8^e[n&255];var a=[];for(r=1;r!=16;++r)a[r-1]=typeof Int32Array<`u`?i.subarray(r*256,r*256+256):i.slice(r*256,r*256+256);return a}var i=r(n),a=i[0],o=i[1],s=i[2],c=i[3],l=i[4],u=i[5],d=i[6],f=i[7],p=i[8],m=i[9],h=i[10],g=i[11],_=i[12],v=i[13],y=i[14];function b(e,t){for(var r=t^-1,i=0,a=e.length;i<a;)r=r>>>8^n[(r^e.charCodeAt(i++))&255];return~r}function x(e,t){for(var r=t^-1,i=e.length-15,b=0;b<i;)r=y[e[b++]^r&255]^v[e[b++]^r>>8&255]^_[e[b++]^r>>16&255]^g[e[b++]^r>>>24]^h[e[b++]]^m[e[b++]]^p[e[b++]]^f[e[b++]]^d[e[b++]]^u[e[b++]]^l[e[b++]]^c[e[b++]]^s[e[b++]]^o[e[b++]]^a[e[b++]]^n[e[b++]];for(i+=15;b<i;)r=r>>>8^n[(r^e[b++])&255];return~r}function S(e,t){for(var r=t^-1,i=0,a=e.length,o=0,s=0;i<a;)o=e.charCodeAt(i++),o<128?r=r>>>8^n[(r^o)&255]:o<2048?(r=r>>>8^n[(r^(192|o>>6&31))&255],r=r>>>8^n[(r^(128|o&63))&255]):o>=55296&&o<57344?(o=(o&1023)+64,s=e.charCodeAt(i++)&1023,r=r>>>8^n[(r^(240|o>>8&7))&255],r=r>>>8^n[(r^(128|o>>2&63))&255],r=r>>>8^n[(r^(128|s>>6&15|(o&3)<<4))&255],r=r>>>8^n[(r^(128|s&63))&255]):(r=r>>>8^n[(r^(224|o>>12&15))&255],r=r>>>8^n[(r^(128|o>>6&63))&255],r=r>>>8^n[(r^(128|o&63))&255]);return~r}e.table=n,e.bstr=b,e.buf=x,e.str=S})})),J=t((e=>{var t=typeof Uint8Array<`u`&&typeof Uint16Array<`u`&&typeof Int32Array<`u`;function n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var r=t.shift();if(r){if(typeof r!=`object`)throw TypeError(r+`must be non-object`);for(var i in r)n(r,i)&&(e[i]=r[i])}}return e},e.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var r={arraySet:function(e,t,n,r,i){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+r),i);else for(var a=0;a<r;a++)e[i+a]=t[n+a]},flattenChunks:function(e){var t,n,r=0,i,a,o;for(t=0,n=e.length;t<n;t++)r+=e[t].length;for(o=new Uint8Array(r),i=0,t=0,n=e.length;t<n;t++)a=e[t],o.set(a,i),i+=a.length;return o}},i={arraySet:function(e,t,n,r,i){for(var a=0;a<r;a++)e[i+a]=t[n+a]},flattenChunks:function(e){return[].concat.apply([],e)}};e.setTyped=function(t){t?(e.Buf8=Uint8Array,e.Buf16=Uint16Array,e.Buf32=Int32Array,e.assign(e,r)):(e.Buf8=Array,e.Buf16=Array,e.Buf32=Array,e.assign(e,i))},e.setTyped(t)})),Y=t((e=>{var t=J(),n=4,r=0,i=1,a=2;function o(e){for(var t=e.length;--t>=0;)e[t]=0}var s=0,c=1,l=2,u=3,d=258,f=29,p=256,m=p+1+f,h=30,g=19,_=2*m+1,v=15,y=16,b=7,x=256,S=16,C=17,w=18,T=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],E=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],D=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],ee=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],te=512,O=Array((m+2)*2);o(O);var k=Array(h*2);o(k);var A=Array(te);o(A);var j=Array(d-u+1);o(j);var M=Array(f);o(M);var ne=Array(h);o(ne);function re(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}var ie,ae,N;function P(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function oe(e){return e<256?A[e]:A[256+(e>>>7)]}function se(e,t){e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255}function F(e,t,n){e.bi_valid>y-n?(e.bi_buf|=t<<e.bi_valid&65535,se(e,e.bi_buf),e.bi_buf=t>>y-e.bi_valid,e.bi_valid+=n-y):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)}function I(e,t,n){F(e,n[t*2],n[t*2+1])}function ce(e,t){var n=0;do n|=e&1,e>>>=1,n<<=1;while(--t>0);return n>>>1}function le(e){e.bi_valid===16?(se(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)}function ue(e,t){var n=t.dyn_tree,r=t.max_code,i=t.stat_desc.static_tree,a=t.stat_desc.has_stree,o=t.stat_desc.extra_bits,s=t.stat_desc.extra_base,c=t.stat_desc.max_length,l,u,d,f,p,m,h=0;for(f=0;f<=v;f++)e.bl_count[f]=0;for(n[e.heap[e.heap_max]*2+1]=0,l=e.heap_max+1;l<_;l++)u=e.heap[l],f=n[n[u*2+1]*2+1]+1,f>c&&(f=c,h++),n[u*2+1]=f,u>r||(e.bl_count[f]++,p=0,u>=s&&(p=o[u-s]),m=n[u*2],e.opt_len+=m*(f+p),a&&(e.static_len+=m*(i[u*2+1]+p)));if(h!==0){do{for(f=c-1;e.bl_count[f]===0;)f--;e.bl_count[f]--,e.bl_count[f+1]+=2,e.bl_count[c]--,h-=2}while(h>0);for(f=c;f!==0;f--)for(u=e.bl_count[f];u!==0;)d=e.heap[--l],d>r||(n[d*2+1]!==f&&(e.opt_len+=(f-n[d*2+1])*n[d*2],n[d*2+1]=f),u--)}}function de(e,t,n){for(var r=Array(v+1)Line truncated
`)}static async _entryToBuffer(e){let t=Buffer.from(e.path),n=ot(e),r=Math.ceil((62+(n?2:0)+t.length+1)/8)*8,i=Buffer.alloc(r),a=new Ve(i),o=Ye(e);return a.writeUInt32BE(o.ctimeSeconds),a.writeUInt32BE(o.ctimeNanoseconds),a.writeUInt32BE(o.mtimeSeconds),a.writeUInt32BE(o.mtimeNanoseconds),a.writeUInt32BE(o.dev),a.writeUInt32BE(o.ino),a.writeUInt32BE(o.mode),a.writeUInt32BE(o.uid),a.writeUInt32BE(o.gid),a.writeUInt32BE(o.size),a.write(e.oid,20,`hex`),a.writeUInt16BE(st(e)),n&&a.writeUInt16BE(ct(e)),a.write(e.path,t.length,`utf8`),i}async toObject(){let t=Buffer.alloc(12),n=new Ve(t);n.write(`DIRC`,4,`utf8`),n.writeUInt32BE(this.entriesFlat.some(ot)?3:2),n.writeUInt32BE(this.entriesFlat.length);let r=[];for(let t of this.entries)if(r.push(e._entryToBuffer(t)),t.stages.length>1)for(let n of t.stages)n&&n!==t&&r.push(e._entryToBuffer(n));r=await Promise.all(r);let i=Buffer.concat(r),a=Buffer.concat([t,i]),o=await $e(a);return Buffer.concat([a,Buffer.from(o,`hex`)])}};function ut(e,t,n=!0,r=!0){let i=Ye(e),a=Ye(t);return n&&i.mode!==a.mode||i.mtimeSeconds!==a.mtimeSeconds||i.mtimeNanoseconds!==a.mtimeNanoseconds||i.ctimeSeconds!==a.ctimeSeconds||i.ctimeNanoseconds!==a.ctimeNanoseconds||i.uid!==a.uid||i.gid!==a.gid||r&&i.ino!==a.ino||i.size!==a.size}var dt;function ft(){return dt===void 0&&(dt=new Ne.default({maxPending:1/0})),dt}function pt(e,t){return ft().acquire(e,t)}var mt=Symbol(`IndexCache`);function ht(){return{map:new Map,stats:new Map}}async function gt(e,t,n){let[r,i]=await Promise.all([e.lstat(t),e.read(t)]),a=await lt.from(i);n.map.set(t,a),n.stats.set(t,r)}async function _t(e,t,n){let r=n.stats.get(t);if(r===void 0)return!0;if(r===null)return!1;let i=await e.lstat(t);if(i===null)return!1;if(ut(r,i))return!0;let a=Ye(r),o=Ye(i);return a.mtimeNanoseconds!==o.mtimeNanoseconds||a.ctimeNanoseconds!==o.ctimeNanoseconds}var vt=class{static async acquire({fs:e,gitdir:t,cache:n,allowUnmerged:r=!0},i){n[mt]||(n[mt]=ht());let a=`${t}/index`,o,s=[];return await pt(a,async()=>{let t=n[mt];await _t(e,a,t)&&await gt(e,a,t);let c=t.map.get(a);if(s=c.unmergedPaths,s.length&&!r)throw new ze(s);if(o=await i(c),c._dirty){let n=await c.toObject();await e.write(a,n),t.stats.set(a,await e.lstat(a)),c._dirty=!1}}),o}};function yt(e){let t=Math.max(e.lastIndexOf(`/`),e.lastIndexOf(`\\`));return t>-1&&(e=e.slice(t+1)),e}function bt(e){let t=Math.max(e.lastIndexOf(`/`),e.lastIndexOf(`\\`));return t===-1?`.`:t===0?`/`:e.slice(0,t)}function xt(e){let t=new Map,n=function(e){if(!t.has(e)){let r={type:`tree`,fullpath:e,basename:yt(e),metadata:{},children:[]};t.set(e,r),r.parent=n(bt(e)),r.parent&&r.parent!==r&&r.parent.children.push(r)}return t.get(e)},r=function(e,r){if(!t.has(e)){let i={type:`blob`,fullpath:e,basename:yt(e),metadata:r,parent:n(bt(e)),children:[]};i.parent&&i.parent.children.push(i),t.set(e,i)}return t.get(e)};n(`.`);for(let t of e)r(t.path,t);return t}var St=class e extends Q{constructor(t){super(`Could not find ${t}.`),this.code=this.name=e.code,this.data={what:t}}};St.code=`NotFoundError`;var Ct=class e extends Q{constructor(t,n,r,i){super(`Object ${t} ${i?`at ${i}`:``}was anticipated to be a ${r} but it is a ${n}.`),this.code=this.name=e.code,this.data={oid:t,actual:n,expected:r,filepath:i}}};Ct.code=`ObjectTypeError`;var wt=class e extends Q{constructor(t){super(`Expected a 40-char hex object id but saw "${t}".`),this.code=this.name=e.code,this.data={value:t}}};wt.code=`InvalidOidError`;var Tt=class e extends Q{constructor(t,n){super(`"${t}" would be an invalid git reference. (Hint: a valid alternative would be "${n}".)`),this.code=this.name=e.code,this.data={ref:t,suggestion:n}}};Tt.code=`InvalidRefNameError`;var Et=class e extends Q{constructor(t){super(`Could not find a fetch refspec for remote "${t}". Make sure the config file has an entry like the following:
[remote "${t}"]
\tfetch = +refs/heads/*:refs/remotes/origin/*
`),this.code=this.name=e.code,this.data={remote:t}}};Et.code=`NoRefspecError`;var Dt=class e{constructor(e){if(this.refs=new Map,this.parsedConfig=[],e){let t=null;this.parsedConfig=e.trim().split(`
`).map(e=>{if(/^\s*#/.test(e))return{line:e,comment:!0};let n=e.indexOf(` `);if(e.startsWith(`^`)){let n=e.slice(1);return this.refs.set(t+`^{}`,n),{line:e,ref:t,peeled:n}}{let r=e.slice(0,n);return t=e.slice(n+1),this.refs.set(t,r),{line:e,ref:t,oid:r}}})}return this}static from(t){return new e(t)}delete(e){this.parsedConfig=this.parsedConfig.filter(t=>t.ref!==e),this.refs.delete(e)}toString(){return this.parsedConfig.map(({line:e})=>e).join(`
`)+`
`}},Ot=class e{constructor({remotePath:e,localPath:t,force:n,matchPrefix:r}){Object.assign(this,{remotePath:e,localPath:t,force:n,matchPrefix:r})}static from(t){let[n,r,i,a,o]=t.match(/^(\+?)(.*?)(\*?):(.*?)(\*?)$/).slice(1),s=n===`+`,c=i===`*`;if(c!==(o===`*`))throw new $(`Invalid refspec`);return new e({remotePath:r,localPath:a,force:s,matchPrefix:c})}translate(e){if(this.matchPrefix){if(e.startsWith(this.remotePath))return this.localPath+e.replace(this.remotePath,``)}else if(e===this.remotePath)return this.localPath;return null}reverseTranslate(e){if(this.matchPrefix){if(e.startsWith(this.localPath))return this.remotePath+e.replace(this.localPath,``)}else if(e===this.localPath)return this.remotePath;return null}},kt=class e{constructor(e=[]){this.rules=e}static from(t){let n=[];for(let e of t)n.push(Ot.from(e));return new e(n)}add(e){let t=Ot.from(e);this.rules.push(t)}translate(e){let t=[];for(let n of this.rules)for(let r of e){let e=n.translate(r);e&&t.push([r,e])}return t}translateOne(e){let t=null;for(let n of this.rules){let r=n.translate(e);r&&(t=r)}return t}localNamespaces(){return this.rules.filter(e=>e.matchPrefix).map(e=>e.localPath.replace(/\/$/,``))}};function At(e,t){let n=e.replace(/\^\{\}$/,``),r=t.replace(/\^\{\}$/,``),i=-(n<r)||+(n>r);return i===0?e.endsWith(`^{}`)?1:-1:i}var jt=/(^|[/.])([/.]|$)|^@$|@{|[\x00-\x20\x7f~^:?*[\\]|\.lock(\/|$)/;function Mt(e,t){if(typeof e!=`string`)throw TypeError(`Reference name must be a string`);return!jt.test(e)&&(!!t||e.includes(`/`))}
/*!
* This code for `path.join` is directly copied from @zenfs/core/path for bundle size improvements.
* SPDX-License-Identifier: LGPL-3.0-or-later
* Copyright (c) James Prevett and other ZenFS contributors.
*
* Windows support added:
* - Backslashes are normalised to forward slashes before processing.
* - Drive-letter prefixes (e.g. "C:") are detected and preserved through
* normalisation, so absolute Windows paths are handled correctly.
* - An absolute argument passed to join() resets the accumulated path,
* matching Node behaviour and handling worktree gitdir paths properly.
*
* Limitation: UNC paths (e.g. \\server\share) are not supported. The leading
* backslashes are normalised to forward slashes and then collapsed by
* normalizeString, losing the UNC root. Git on Windows works with
* drive-letter paths, so this is not expected to be a practical issue.
*/
function Nt(e,t){let n=``,r=0,i=-1,a=0,o=`\0`;for(let s=0;s<=e.length;++s){if(s<e.length)o=e[s];else if(o===`/`)break;else o=`/`;if(o===`/`){if(i!==s-1&&a!==1){if(a===2){if(n.length<2||r!==2||n.at(-1)!==`.`||n.at(-2)!==`.`){if(n.length>2){let e=n.lastIndexOf(`/`);e===-1?(n=``,r=0):(n=n.slice(0,e),r=n.length-1-n.lastIndexOf(`/`)),i=s,a=0;continue}if(n.length!==0){n=``,r=0,i=s,a=0;continue}}t&&(n+=n.length>0?`/..`:`..`,r=2)}else n.length>0?n+=`/`+e.slice(i+1,s):n=e.slice(i+1,s),r=s-i-1}i=s,a=0}else o===`.`&&a!==-1?++a:a=-1}return n}function Pt(e){return e.length>=2&&/^[a-zA-Z]:/.test(e)?e.slice(0,2):null}function Ft(e){if(!e.length)return`.`;e=e.replace(/\\/g,`/`);let t=Pt(e),n=e[0]===`/`||t!==null&&e[2]===`/`,r=e.at(-1)===`/`,i=Nt(t?e.slice(2):e,!n);if(!i.length){let e=t?n?t+`/`:t:n?`/`:`.`;return r&&!n?e+`/`:e}return r&&(i+=`/`),t?n?`${t}/${i}`:`${t}${i}`:n?`/${i}`:i}function It(...e){if(e.length===0)return`.`;let t;for(let n=0;n<e.length;++n){let r=e[n].replace(/\\/g,`/`);r.length!==0&&(/^[a-zA-Z]:\//.test(r)||t===void 0?t=r:t+=`/`+r)}return t===void 0?`.`:Ft(t)}var Lt=e=>{if(typeof e==`number`)return e;e=e.toLowerCase();let t=parseInt(e);return e.endsWith(`k`)&&(t*=1024),e.endsWith(`m`)&&(t*=1048576),e.endsWith(`g`)&&(t*=1073741824),t},Rt=e=>{if(typeof e==`boolean`)return e;if(e=e.trim().toLowerCase(),e===`true`||e===`yes`||e===`on`)return!0;if(e===`false`||e===`no`||e===`off`)return!1;throw Error(`Expected 'true', 'false', 'yes', 'no', 'on', or 'off', but got ${e}`)},zt={core:{filemode:Rt,bare:Rt,logallrefupdates:Rt,symlinks:Rt,ignorecase:Rt,bigFileThreshold:Lt}},Bt=/^\[([A-Za-z0-9-.]+)(?:[ \t]+"((?:[^"\\]|\\.)*)")?\][ \t]*(?:[#;].*)?$/,Vt=/^[A-Za-z0-9-.]+$/,Ht=/^([A-Za-z][A-Za-z0-9-]*)(?:\s*=\s*(.*))?$/,Ut=/^[A-Za-z][A-Za-z0-9-]*$/,Wt=e=>{let t=Bt.exec(e);if(t!=null){let[e,n]=t.slice(1);return[e,n&&n.replace(/\\(.)/g,`$1`)]}return null},Gt=e=>{let t=Ht.exec(e);if(t!=null){let[e,n=`true`]=t.slice(1);return[e,qt(n)]}return null},Kt=new Map([[`t`,` `],[`b`,`\b`],[`n`,`
`],[`\\`,`\\`],[`"`,`"`]]),qt=e=>{let t=``,n=``,r=!1;for(let i=0;i<e.length;i++){let a=e[i];if(!r&&/[ \t\r\v\f]/.test(a))t!==``&&(n+=a);else{if(!r&&(a===`#`||a===`;`))break;t+=n,n=``,a===`\\`&&Kt.has(e[i+1])?t+=Kt.get(e[++i]):a===`"`?r=!r:t+=a}}return t},Jt=e=>{if(typeof e!=`string`)return e;let t=e.startsWith(` `)||e.endsWith(` `)||/[#;]/.test(e)?`"`:``;return`${t}${e.replace(/[\\"\n\t]/g,e=>e===`
`?`\\n`:e===` `?`\\t`:`\\${e}`)}${t}`},Yt=e=>e==null?null:e.toLowerCase(),Xt=(e,t,n)=>[Yt(e),t,Yt(n)].filter(e=>e!=null).join(`.`),Zt=e=>{let t=e.split(`.`),n=t.shift(),r=t.pop(),i=t.length?t.join(`.`):void 0;return{section:n,subsection:i,name:r,path:Xt(n,i,r),sectionPath:Xt(n,i,null),isSection:!!n}},Qt=(e,t)=>e.reduce((e,n,r)=>t(n)?r:e,-1),$t=class e{constructor(e){let t=null,n=null;this.parsedConfig=e?e.split(`
`).map(e=>{let r=null,i=null,a=e.trim(),o=Wt(a),s=o!=null;if(s)[t,n]=o;else{let e=Gt(a);e!=null&&([r,i]=e)}let c=Xt(t,n,r);return{line:e,isSection:s,section:t,subsection:n,name:r,value:i,path:c}}):[]}static from(t){return new e(t)}async get(e,t=!1){let n=Zt(e).path,r=this.parsedConfig.filter(e=>e.path===n).map(({section:e,name:t,value:n})=>{let r=zt[e]&&zt[e][t];return r?r(n):n});return t?r:r.pop()}async getall(e){return this.get(e,!0)}async getSubsections(e){return this.parsedConfig.filter(t=>t.isSection&&t.section===e).map(e=>e.subsection)}async deleteSection(e,t){this.parsedConfig=this.parsedConfig.filter(n=>n.section!==e||n.subsection!==t)}async append(e,t){return this.set(e,t,!0)}async set(e,t,n=!1){let{section:r,subsection:i,name:a,path:o,sectionPath:s,isSection:c}=Zt(e),l=Qt(this.parsedConfig,e=>e.path===o);if(t==null)l!==-1&&this.parsedConfig.splice(l,1);else if(l!==-1){let e=this.parsedConfig[l],r=Object.assign({},e,{name:a,value:t,modified:!0});n?this.parsedConfig.splice(l+1,0,r):this.parsedConfig[l]=r}else{let e=this.parsedConfig.findIndex(e=>e.path===s),n={section:r,subsection:i,name:a,value:t,modified:!0,path:o};if(Vt.test(r)&&Ut.test(a)){if(e>=0)this.parsedConfig.splice(e+1,0,n);else{let e={isSection:c,section:r,subsection:i,modified:!0,path:s};this.parsedConfig.push(e,n)}}}}toString(){return this.parsedConfig.map(({line:e,section:t,subsection:n,name:r,value:i,modified:a=!1})=>a?r!=null&&i!=null?`\t${r} = ${Jt(i)}`:n==null?`[${t}]`:`[${t} "${n}"]`:e).join(`
`)}},en=class{static async get({fs:e,gitdir:t}){let n=await e.read(`${t}/config`,{encoding:`utf8`});return $t.from(n)}static async save({fs:e,gitdir:t,config:n}){await e.write(`${t}/config`,n.toString(),{encoding:`utf8`})}},tn=e=>[`${e}`,`refs/${e}`,`refs/tags/${e}`,`refs/heads/${e}`,`refs/remotes/${e}`,`refs/remotes/${e}/HEAD`],nn=[`config`,`description`,`index`,`shallow`,`commondir`];function rn(e){if(nn.includes(e))throw new Tt(e,`refs/heads/${e}`);if(!Mt(e,!0))throw new Tt(e,Pe.default.clean(e))}var an=class e{static async updateRemoteRefs({fs:t,gitdir:n,remote:r,refs:i,symrefs:a,tags:o,refspecs:s=void 0,prune:c=!1,pruneTags:l=!1}){for(let e of i.values())if(!e.match(/[0-9a-f]{40}/))throw new wt(e);let u=await en.get({fs:t,gitdir:n});if(!s){if(s=await u.getall(`remote.${r}.fetch`),s.length===0)throw new Et(r);s.unshift(`+HEAD:refs/remotes/${r}/HEAD`)}let d=kt.from(s),f=new Map,p=d.translate([...i.keys()]),m=[];for(let[e,t]of d.translate([...a.keys()])){let n=d.translateOne(a.get(e));n&&(rn(n),m.push([t,`ref: ${n}`]))}let h=o?[...i.keys()].filter(e=>e.startsWith(`refs/tags`)&&!e.endsWith(`^{}`)):[];for(let[,e]of p)rn(e);for(let[e]of m)rn(e);if(h.forEach(rn),l){let r=await e.listRefs({fs:t,gitdir:n,filepath:`refs/tags`});await e.deleteRefs({fs:t,gitdir:n,refs:r.map(e=>`refs/tags/${e}`)})}for(let r of h)if(!await e.exists({fs:t,gitdir:n,ref:r})){let e=i.get(r);f.set(r,e)}for(let[e,t]of p){let n=i.get(e);f.set(t,n)}for(let[e,t]of m)f.set(e,t);let g=[];if(c){for(let r of d.localNamespaces()){let i=(await e.listRefs({fs:t,gitdir:n,filepath:r})).map(e=>`${r}/${e}`);for(let e of i)f.has(e)||g.push(e)}g.length>0&&await e.deleteRefs({fs:t,gitdir:n,refs:g})}for(let[e,r]of f)await pt(e,async()=>t.write(It(n,e),`${r.trim()}\n`,`utf8`));return{pruned:g}}static async writeRef({fs:e,gitdir:t,ref:n,value:r}){if(rn(n),!r.match(/[0-9a-f]{40}/))throw new wt(r);await pt(n,async()=>e.write(It(t,n),`${r.trim()}\n`,`utf8`))}static async writeSymbolicRef({fs:e,gitdir:t,ref:n,value:r}){rn(n),await pt(n,async()=>e.write(It(t,n),`ref: ${r.trim()}\n`,`utf8`))}static async deleteRef({fs:t,gitdir:n,ref:r}){return e.deleteRefs({fs:t,gitdir:n,refs:[r]})}static async deleteRefs({fs:e,gitdir:t,refs:n}){n.forEach(rn),await Promise.all(n.map(n=>e.rm(It(t,n))));let r=await pt(`packed-refs`,async()=>e.read(`${t}/packed-refs`,{encoding:`utf8`})),i=Dt.from(r),a=i.refs.size;for(let e of n)i.refs.has(e)&&i.delete(e);i.refs.size<a&&(r=i.toString(),await pt(`packed-refs`,async()=>e.write(`${t}/packed-refs`,r,{encoding:`utf8`})))}static async resolve({fs:t,gitdir:n,ref:r,depth:i=void 0,visited:a=new Set}){if(i!==void 0&&(i--,i===-1))return r;if(r.startsWith(`ref: `))return r=r.slice(5),e.resolve({fs:t,gitdir:n,ref:r,depth:i,visited:a});if(r.length===40&&/[0-9a-f]{40}/.test(r))return r;let o=await e.packedRefs({fs:t,gitdir:n}),s=tn(r).filter(e=>!nn.includes(e));for(let r of s){let s=await pt(r,async()=>await t.read(`${n}/${r}`,{encoding:`utf8`})||o.get(r));if(s){if(a.has(r))throw new $(`Circular reference detected while resolving ref "${r}"`);return a.add(r),e.resolve({fs:t,gitdir:n,ref:s.trim(),depth:i,visited:a})}}throw new St(r)}static async isUnbornBranch({fs:t,gitdir:n,ref:r}){let i;try{i=await e.resolve({fs:t,gitdir:n,ref:`HEAD`,depth:2})}catch(e){if(e instanceof St)return!1;throw e}return i.startsWith(`refs/heads/`)?r===`HEAD`||tn(r).includes(i):!1}static async exists({fs:t,gitdir:n,ref:r}){try{return await e.expand({fs:t,gitdir:n,ref:r}),!0}catch(e){if(e instanceof St)return!1;throw e}}static async expand({fs:t,gitdir:n,ref:r}){if(r.length===40&&/[0-9a-f]{40}/.test(r))return r;let i=await e.packedRefs({fs:t,gitdir:n}),a=tn(r).filter(e=>!nn.includes(e));for(let e of a)if(await pt(e,async()=>t.exists(`${n}/${e}`))||i.has(e))return e;throw new St(r)}static async expandAgainstMap({ref:e,map:t}){let n=tn(e);for(let e of n)if(await t.has(e))return e;throw new St(e)}static resolveAgainstMap({ref:t,fullref:n=t,depth:r=void 0,map:i}){if(r!==void 0&&(r--,r===-1))return{fullref:n,oid:t};if(t.startsWith(`ref: `))return t=t.slice(5),e.resolveAgainstMap({ref:t,fullref:n,depth:r,map:i});if(t.length===40&&/[0-9a-f]{40}/.test(t))return{fullref:n,oid:t};let a=tn(t);for(let t of a){let n=i.get(t);if(n)return e.resolveAgainstMap({ref:n.trim(),fullref:t,depth:r,map:i})}throw new St(t)}static async packedRefs({fs:e,gitdir:t}){let n=await pt(`packed-refs`,async()=>e.read(`${t}/packed-refs`,{encoding:`utf8`}));return Dt.from(n).refs}static async listRefs({fs:t,gitdir:n,filepath:r}){let i=await e.packedRefs({fs:t,gitdir:n}),a=null;try{a=await t.readdirDeep(`${n}/${r}`),a=a.map(e=>e.replace(`${n}/${r}/`,``))}catch{a=[]}for(let e of i.keys())e.startsWith(r)&&(e=e.replace(r+`/`,``),a.includes(e)||a.push(e));return a.sort(At),a}static async listBranches({fs:t,gitdir:n,remote:r}){return r?e.listRefs({fs:t,gitdir:n,filepath:`refs/remotes/${r}`}):e.listRefs({fs:t,gitdir:n,filepath:`refs/heads`})}static async listTags({fs:t,gitdir:n}){return(await e.listRefs({fs:t,gitdir:n Line truncated
`)}toObject(){let e=[...this._entries];return e.sort(on),Buffer.concat(e.map(e=>{let t=Buffer.from(e.mode.replace(/^0/,``)),n=Buffer.from(` `),r=Buffer.from(e.path,`utf8`),i=Buffer.from([0]),a=Buffer.from(e.oid,`hex`);return Buffer.concat([t,n,r,i,a])}))}entries(){return this._entries}*[Symbol.iterator](){for(let e of this._entries)yield e}},pn=class{static wrap({type:e,object:t}){let n=`${e} ${t.length}\x00`,r=n.length,i=r+t.length,a=new Uint8Array(i);for(let e=0;e<r;e++)a[e]=n.charCodeAt(e);return a.set(t,r),a}static unwrap(e){let t=e.indexOf(32),n=e.indexOf(0),r=e.slice(0,t).toString(`utf8`),i=e.slice(t+1,n).toString(`utf8`),a=e.length-(n+1);if(parseInt(i)!==a)throw new $(`Length mismatch: expected ${i} bytes but got ${a} instead.`);return{type:r,object:Buffer.from(e.slice(n+1))}}};async function mn({fs:e,gitdir:t,oid:n}){let r=`objects/${n.slice(0,2)}/${n.slice(2)}`,i=await e.read(`${t}/${r}`);return i?{object:i,format:`deflated`,source:r}:null}function hn(e,t){let n=new Ve(e),r=gn(n);if(r!==t.byteLength)throw new $(`applyDelta expected source buffer to be ${r} bytes but the provided buffer was ${t.length} bytes`);let i=gn(n),a,o=vn(n,t);if(o.byteLength===i)a=o;else{let e=[o],r=o.byteLength;for(;!n.eof();){let i=vn(n,t);e.push(i),r+=i.byteLength}if(i!==r)throw new $(`applyDelta expected target buffer to be ${i} bytes but the resulting buffer was ${r} bytes`);a=Buffer.concat(e,i)}return a}function gn(e){let t=0,n=0,r=null;do r=e.readUInt8(),t|=(r&127)<<n,n+=7;while(r&128);return t}function _n(e,t,n){let r=0,i=0;for(;n--;)t&1&&(r|=e.readUInt8()<<i),t>>=1,i+=8;return r}function vn(e,t){let n=e.readUInt8();if(n&128){let r=_n(e,n&15,4),i=_n(e,(n&112)>>4,3);return i===0&&(i=65536),t.slice(r,r+i)}return e.slice(n)}function yn(e){let t=[e];return{next(){return Promise.resolve({done:t.length===0,value:t.pop()})},return(){return t=[],{}},[Symbol.asyncIterator](){return this}}}function bn(e){return e[Symbol.asyncIterator]?e[Symbol.asyncIterator]():e[Symbol.iterator]?e[Symbol.iterator]():e.next?e:yn(e)}var xn=class{constructor(e){if(typeof Buffer>`u`)throw Error(`Missing Buffer dependency`);this.stream=bn(e),this.buffer=null,this.cursor=0,this.undoCursor=0,this.started=!1,this._ended=!1,this._discardedBytes=0}eof(){return this._ended&&this.cursor===this.buffer.length}tell(){return this._discardedBytes+this.cursor}async byte(){if(!this.eof()&&(this.started||await this._init(),!(this.cursor===this.buffer.length&&(await this._loadnext(),this._ended))))return this._moveCursor(1),this.buffer[this.undoCursor]}async chunk(){if(!this.eof()&&(this.started||await this._init(),!(this.cursor===this.buffer.length&&(await this._loadnext(),this._ended))))return this._moveCursor(this.buffer.length),this.buffer.slice(this.undoCursor,this.cursor)}async read(e){if(!this.eof())return this.started||await this._init(),this.cursor+e>this.buffer.length&&(this._trim(),await this._accumulate(e)),this._moveCursor(e),this.buffer.slice(this.undoCursor,this.cursor)}async skip(e){this.eof()||(this.started||await this._init(),this.cursor+e>this.buffer.length&&(this._trim(),await this._accumulate(e)),this._moveCursor(e))}async undo(){this.cursor=this.undoCursor}async _next(){this.started=!0;let{done:e,value:t}=await this.stream.next();return e&&(this._ended=!0,!t)?Buffer.alloc(0):(t&&=Buffer.from(t),t)}_trim(){this.buffer=this.buffer.slice(this.undoCursor),this.cursor-=this.undoCursor,this._discardedBytes+=this.undoCursor,this.undoCursor=0}_moveCursor(e){this.undoCursor=this.cursor,this.cursor+=e,this.cursor>this.buffer.length&&(this.cursor=this.buffer.length)}async _accumulate(e){if(this._ended)return;let t=[this.buffer];for(;this.cursor+e>Sn(t);){let e=await this._next();if(this._ended)break;t.push(e)}this.buffer=Buffer.concat(t)}async _loadnext(){this._discardedBytes+=this.buffer.length,this.undoCursor=0,this.cursor=0,this.buffer=await this._next()}async _init(){this.buffer=await this._next()}};function Sn(e){return e.reduce((e,t)=>e+t.length,0)}async function Cn(e,t){let n=new xn(e),r=await n.read(4);if(r=r.toString(`utf8`),r!==`PACK`)throw new $(`Invalid PACK header '${r}'`);let i=await n.read(4);if(i=i.readUInt32BE(0),i!==2)throw new $(`Invalid packfile version: ${i}`);let a=await n.read(4);if(a=a.readUInt32BE(0),!(a<1))for(;!n.eof()&&a--;){let e=n.tell(),{type:r,length:i,ofs:o,reference:s}=await wn(n),c=new Ie.default.Inflate;for(;!c.result;){let l=await n.chunk();if(!l)break;if(c.push(l,!1),c.err)throw new $(`Pako error: ${c.msg}`);if(c.result){if(c.result.length!==i)throw new $(`Inflated object size is different from that stated in packfile.`);await n.undo(),await n.read(l.length-c.strm.avail_in);let u=n.tell();await t({data:c.result,type:r,num:a,offset:e,end:u,reference:s,ofs:o})}}}}async function wn(e){let t=await e.byte(),n=t>>4&7,r=t&15;if(t&128){let n=4;do t=await e.byte(),r|=(t&127)<<n,n+=7;while(t&128)}let i,a;if(n===6){let n=0;i=0;let r=[];do t=await e.byte(),i|=(t&127)<<n,n+=7,r.push(t);while(t&128);a=Buffer.from(r)}return n===7 Line truncated
`,e}function Sr(e){let[,t,n,r,i]=e.match(/^(.*) <(.*)> (.*) (.*)$/);return{name:t,email:n,timestamp:Number(r),timezoneOffset:Cr(i)}}function Cr(e){let[,t,n,r]=e.match(/(\+|-)(\d\d)(\d\d)/);return r=(t===`+`?1:-1)*(Number(n)*60+Number(r)),wr(r)}function wr(e){return e===0?e:-e}var Tr=class e{constructor(t){if(typeof t==`string`)this._tag=t;else if(Buffer.isBuffer(t))this._tag=t.toString(`utf8`);else if(typeof t==`object`)this._tag=e.render(t);else throw new $(`invalid type passed to GitAnnotatedTag constructor`)}static from(t){return new e(t)}static render(e){return`object ${e.object}
type ${e.type}
tag ${e.tag}
tagger ${_r(e.tagger)}
${e.message}
${e.gpgsig?e.gpgsig:``}`}justHeaders(){return this._tag.slice(0,this._tag.indexOf(`
`))}message(){let e=this.withoutSignature();return e.slice(e.indexOf(`
`)+2)}parse(){return Object.assign(this.headers(),{message:this.message(),gpgsig:this.gpgsig()})}render(){return this._tag}headers(){let e=this.justHeaders().split(`
`),t=[];for(let n of e)n[0]===` `?t[t.length-1]+=`
`+n.slice(1):t.push(n);let n={},r=new Set;for(let e of t){let t=e.slice(0,e.indexOf(` `)),i=e.slice(e.indexOf(` `)+1);r.has(t)||(r.add(t),n[t]=i)}return n.tagger&&=Sr(n.tagger),n.committer&&=Sr(n.committer),n}withoutSignature(){let e=xr(this._tag);return e.indexOf(`
-----BEGIN PGP SIGNATURE-----`)===-1?e:e.slice(0,e.lastIndexOf(`
-----BEGIN PGP SIGNATURE-----`))}gpgsig(){if(this._tag.indexOf(`
-----BEGIN PGP SIGNATURE-----`)!==-1)return xr(this._tag.slice(this._tag.indexOf(`-----BEGIN PGP SIGNATURE-----`),this._tag.indexOf(`-----END PGP SIGNATURE-----`)+27))}payload(){return this.withoutSignature()+`
`}toObject(){return Buffer.from(this._tag,`utf8`)}static async sign(t,n,r){let i=t.payload(),{signature:a}=await n({payload:i,secretKey:r});a=xr(a);let o=i+a;return e.from(o)}};function Er(e){return e.trim().split(`
`).map(e=>` `+e).join(`
`)+`
`}function Dr(e){return e.split(`
`).map(e=>e.replace(/^ /,``)).join(`
`)}var Or=class e{constructor(t){if(typeof t==`string`)this._commit=t;else if(Buffer.isBuffer(t))this._commit=t.toString(`utf8`);else if(typeof t==`object`)this._commit=e.render(t);else throw new $(`invalid type passed to GitCommit constructor`)}static fromPayloadSignature({payload:t,signature:n}){let r=e.justHeaders(t),i=e.justMessage(t),a=xr(r+`
gpgsig`+Er(n)+`
`+i);return new e(a)}static from(t){return new e(t)}toObject(){return Buffer.from(this._commit,`utf8`)}headers(){return this.parseHeaders()}message(){return e.justMessage(this._commit)}parse(){return Object.assign({message:this.message()},this.headers())}static justMessage(e){return xr(e.slice(e.indexOf(`
`)+2))}static justHeaders(e){return e.slice(0,e.indexOf(`
`))}parseHeaders(){let t=e.justHeaders(this._commit).split(`
`),n=[];for(let e of t)e[0]===` `?n[n.length-1]+=`
`+e.slice(1):n.push(e);let r={parent:[]},i=e=>e.slice(0,e.indexOf(` `)),a=e=>e.slice(e.indexOf(` `)+1);if(n.length===0||i(n[0])!==`tree`)throw new cr(`tree as the first commit header`,i(n[0]||``));r.tree=a(n[0]);let o=1;for(;o<n.length&&i(n[o])===`parent`;)r.parent.push(a(n[o])),o++;let s=new Set([`tree`,`parent`]);for(;o<n.length;o++){let e=i(n[o]);s.has(e)||(s.add(e),r[e]=a(n[o]))}return r.author&&=Sr(r.author),r.committer&&=Sr(r.committer),r}static renderHeaders(e){let t=``;if(e.tree?t+=`tree ${e.tree}\n`:t+=`tree 4b825dc642cb6eb9a060e54bf8d69288fbee4904
`,e.parent){if(e.parent.length===void 0)throw new $(`commit 'parent' property should be an array`);for(let n of e.parent)t+=`parent ${n}\n`}let n=e.author;t+=`author ${_r(n)}\n`;let r=e.committer||e.author;return t+=`committer ${_r(r)}\n`,e.gpgsig&&(t+=`gpgsig`+Er(e.gpgsig)),t}static render(t){return e.renderHeaders(t)+`
`+xr(t.message)}render(){return this._commit}withoutSignature(){let e=xr(this._commit);if(e.indexOf(`
gpgsig`)===-1)return e;let t=e.slice(0,e.indexOf(`
gpgsig`)),n=e.slice(e.indexOf(`-----END PGP SIGNATURE-----
`)+28);return xr(t+`
`+n)}isolateSignature(){return Dr(this._commit.slice(this._commit.indexOf(`-----BEGIN PGP SIGNATURE-----`),this._commit.indexOf(`-----END PGP SIGNATURE-----`)+27))}static async sign(t,n,r){let i=t.withoutSignature(),a=e.justMessage(t._commit),{signature:o}=await n({payload:i,secretKey:r});o=xr(o);let s=e.justHeaders(t._commit)+`
gpgsig`+Er(o)+`
`+a;return e.from(s)}};Array.prototype.flat;async function kr(e,t,n=10){try{await e(t)}catch(r){if(r===null||r.code===`EEXIST`)return;if(r.code!==`ENOENT`)throw r;let i=bt(t);if(i===`.`||i===`/`||i===t)throw r;await kr(e,i,n);for(let r=0;;r++)try{await e(t);return}catch(e){if(e===null||e.code===`EEXIST`)return;if(e.code===`ENOENT`&&r<n){await new Promise(e=>setTimeout(e,0));continue}throw e}}}async function Ar(e,t){let n=await e.readdir(t);n==null?await e.rm(t):n.length?await Promise.all(n.map(n=>{let r=It(t,n);return e.lstat(r).then(t=>{if(t)return t.isDirectory()?Ar(e,r):e.rm(r)})})).then(()=>e.rmdir(t)):await e.rmdir(t)}function jr(e){return Mr(e)&&Nr(e.then)&&Nr(e.catch)}function Mr(e){return e&&typeof e==`object`}function Nr(e){return typeof e==`function`}function Pr(e){let t=e.code;return typeof t==`string`?t===`ENOENT`||t===`ENOTDIR`||t.includes(`ENS`):!1}function Fr(e){return jr((e=>{try{return e.readFile().catch(e=>e)}catch(e){return e}})(e))}var Ir=[`readFile`,`writeFile`,`mkdir`,`rmdir`,`unlink`,`stat`,`lstat`,`readdir`,`readlink`,`symlink`];function Lr(e,t){if(Fr(t))for(let n of Ir)e[`_${n}`]=t[n].bind(t);else for(let n of Ir)e[`_${n}`]=(0,Le.default)(t[n].bind(t));Fr(t)?(t.cp&&(e._cp=t.cp.bind(t)),e._rm=t.rm?t.rm.bind(t):t.rmdir.length>1?t.rmdir.bind(t):Ar.bind(null,e)):(t.cp&&(e._cp=(0,Le.default)(t.cp.bind(t))),e._rm=t.rm?(0,Le.default)(t.rm.bind(t)):t.rmdir.length>2?(0,Le.default)(t.rmdir.bind(t)):Ar.bind(null,e))}var Rr=class{constructor(e){if(e._original_unwrapped_fs!==void 0)return e;let t=Object.getOwnPropertyDescriptor(e,`promises`);t&&t.enumerable?Lr(this,e.promises):Lr(this,e),this._original_unwrapped_fs=e}async exists(e,t={}){try{return await this._stat(e),!0}catch(e){if(Pr(e))return!1;throw console.log(`Unhandled error in "FileSystem.exists()" function`,e),e}}async read(e,t={}){let n;try{n=await this._readFile(e,t)}catch(e){if(Pr(e)||e.code===`EISDIR`)return null;throw e}if(n==null)return null;if(t.autocrlf===`true`)try{n=new TextDecoder(`utf8`,{fatal:!0}).decode(n),n=n.replace(/\r\n/g,`
`),n=new TextEncoder().encode(n)}catch{}return typeof n!=`string`&&(n=Buffer.from(n)),n}async write(e,t,n={}){try{await this._writeFile(e,t,n)}catch{await this.mkdir(bt(e)),await this._writeFile(e,t,n)}}async mkdir(e){await kr(this._mkdir,e)}async rm(e){try{await this._unlink(e)}catch(e){if(e.code!==`ENOENT`)throw e}}async rmdir(e,t){try{t&&t.recursive?await this._rm(e,t):await this._rmdir(e)}catch(e){if(e.code!==`ENOENT`)throw e}}async readdir(e){let t;try{t=await this._readdir(e)}catch(e){if(e.code===`ENOTDIR`)return null;if(Pr(e))return[];throw e}return t.sort(We),t}async readdirDeep(e){let t=await this._readdir(e);return(await Promise.all(t.map(async t=>{let n=e+`/`+t;return(await this._stat(n)).isDirectory()?this.readdirDeep(n):n}))).reduce((e,t)=>e.concat(t),[])}async lstat(e){try{return await this._lstat(e)}catch(e){if(Pr(e))return null;throw e}}async readlink(e,t={encoding:`buffer`}){try{let n=await this._readlink(e,t);return Buffer.isBuffer(n)?n:Buffer.from(n)}catch(e){if(Pr(e))return null;throw e}}async writelink(e,t){return this._symlink(t.toString(`utf8`),e)}};function zr(e,t){if(t===void 0)throw new or(e)}function Br(e){return e.startsWith(`/`)||/^[a-zA-Z]:[\\/]/.test(e)}async function Vr({fsp:e,dotgit:t}){zr(`fsp`,e),zr(`dotgit`,t);let n=await e._stat(t).catch(()=>({isFile:()=>!1,isDirectory:()=>!1}));return n.isDirectory()?t:n.isFile()?e._readFile(t,`utf8`).then(e=>e.trimRight().substr(8)).then(e=>Br(e)?e:It(bt(t),e)):t}var Hr=class{static async isIgnored({fs:e,dir:t,gitdir:n=It(t,`.git`),filepath:r}){if(yt(r)===`.git`)return!0;if(r===`.`)return!1;let i=``,a=It(n,`info`,`exclude`);await e.exists(a)&&(i=await e.read(a,`utf8`));let o=[{gitignore:It(t,`.gitignore`),filepath:r}],s=r.split(`/`).filter(Boolean);for(let e=1;e<s.length;e++){let n=s.slice(0,e).join(`/`),r=s.slice(e).join(`/`);o.push({gitignore:It(t,n,`.gitignore`),filepath:r})}let c=!1;for(let[t,n]of o.entries()){let r=await e.read(n.gitignore,`utf8`),a=(0,Re.default)();t===0&&a.add(i),a.add(r);let o=bt(n.filepath);if(o!==`.`&&a.ignores(o))return!0;c=c?!a.test(n.filepath).unignored:a.test(n.filepath).ignored}return c}};async function Ur({fs:e,gitdir:t,object:n,format:r,oid:i}){if(r!==`deflated`)throw new $(`GitObjectStoreLoose expects objects to write to be in deflated format`);let a=`${t}/${`objects/${i.slice(0,2)}/${i.slice(2)}`}`;await e.exists(a)||await e.write(a,n)}var Wr=null;async function Gr(e){return Wr===null&&(Wr=qr()),Wr?Kr(e):Ie.default.deflate(e)}async function Kr(e){let t=new CompressionStream(`deflate`),n=new Blob([e]).stream().pipeThrough(t);return new Uint8Array(await new Response(n).arrayBuffer())}function qr(){try{return new CompressionStream(`deflate`).writable.close(),new Blob([]).stream().cancel(),!0}catch{return!1}}async function Jr({fs:e,gitdir:t,type:n,object:r,format:i=`content`,oid:a=void 0,dryRun:o=!1}){return i!==`deflated`&&(i!==`wrapped`&&(r=pn.wrap({type:n,object:r})),a=await $e(r),r=Buffer.from(await Gr(r))),o||await Ur({fs:e,gitdir:t,object:r,format:`deflated`,oid:a}),a}async function Yr({fs:e,gitdir:t,oid:n}){let r=`objects/${n.slice(0,2)}/${n.slice(2)}`;return e.exists(`${t}/${r}`)}async function Xr({fs:e,cache:t,gitdir:n,oid:r,getExternalRefDelta:i}){let a=await e.readdir(It(n,`objects/pack`));a=a.filter(e=>e.endsWith(`.idx`));for(let o of a){let a=await Rn({fs:e,cache:t,filename:`${n}/objects/pack/${o}`,getExternalRefDelta:i});if(a.error)throw new $(a.error);if(a.offsets.has(r))return!0}return!1}async function Zr({fs:e,cache:t,gitdir:n,oid:r,format:i=`content`}){let a=r=>Hn({fs:e,cache:t,gitdir:n,oid:r}),o=await Yr({fs:e,gitdir:n,oid:r});return o||=await Xr({fs:e,cache:t,gitdir:n,oid:r,getExternalRefDelta:a}),o}async function Qr({fs:e,gitdir:t,path:n}){return(await en.get({fs:e,gitdir:t})).get(n)}function $r(e,...t){for(let n of t)if(n)for(let t of Object.keys(n)){let r=n[t];r!==void 0&&(e[t]=r)}return e}async function ei({fs:e,gitdir:t,author:n,commit:r}){let i=Math.floor(Date.now()/1e3),a=$r({},{name:await Qr({fs:e,gitdir:t,path:`user.name`}),email:await Qr({fs:e,gitdir:t,path:`user.email`})||``,timestamp:i,timezoneOffset:new Date(i*1e3).getTimezoneOffset()},r?r.author:void 0,n);if(a.name!==void 0)return a}async function ti({fs:e,gitdir:t,author:n,committer:r,commit:i}){let a=Math.floor(Date.now()/1e3),o=$r({},{name:await Qr({fs:e,gitdir:t,path:`user.name`}),email:await Qr({fs:e,gitdir:t,path:`user.email`})||``,timestamp:a,timezoneOffset:new Date(a*1e3).getTimezoneOffset()},i?i.committer:void 0,n,r);if(o.name!==void 0)return o}async function ni({fs:e,cache:t,gitdir:n,oid:r}){let{type:i,object:a}=await Hn({fs:e,cache:t,gitdir:n,oid:r});if(i===`tag`)return r=Tr.from(a).parse().object,ni({fs:e,cache:t,gitdir:n,oid:r});if(i!==`commit`)throw new Ct(r,i,`commit`);return{commit:Or.from(a),oid:r}}async function ri({fs:e,cache:t,gitdir:n,oid:r}){let{commit:i,oid:a}=await ni({fs:e,cache:t,gitdir:n,oid:r});return{oid:a,commit:i.parse(),payload:i.withoutSignature()}}var ii=`4b825dc642cb6eb9a060e54bf8d6928Line truncated
//# sourceMappingURL=git.js.map
+2
View File
@@ -0,0 +1,2 @@
import{$ as e,A as t,At as n,B as r,C as i,Ct as a,D as o,Dt as s,E as c,Et as l,F as u,Ft as d,G as f,H as p,J as m,K as h,L as g,M as _,Mt as v,Nt as y,O as b,Ot as x,P as ee,Pt as te,Q as ne,R as re,Rt as ie,S as ae,St as oe,T as se,Tt as S,U as ce,V as le,W as ue,X as de,Y as fe,Z as pe,_ as me,_t as he,a as ge,at as _e,b as ve,bt as C,c as w,ct as ye,d as be,dt as xe,et as Se,f as Ce,ft as we,g as Te,gt as Ee,h as De,ht as Oe,i as ke,it as Ae,j as je,k as Me,kt as T,l as Ne,lt as Pe,m as Fe,mt as Ie,n as Le,nt as Re,o as ze,ot as Be,p as Ve,pt as He,q as Ue,r as We,rt as Ge,s as Ke,t as E,tt as qe,u as Je,ut as Ye,vt as Xe,wt as Ze,x as Qe,xt as D,y as $e,yt as et,z as tt,zt as nt}from"./assets/_shared-module_34-Dz2DDLOA.js";import{n as rt,r as O}from"./assets/_shared-module_42-B_M8U-E0.js";var k={...oe},A=new Map,j,M=Ze({tree:`/src/branch`,blob:`/src/branch`,commit:`/commit`}),it=()=>{let e=D.account?.id;return A.has(e)||A.clear(),C(A,e,()=>d(l(k)))},at=async()=>{let e=String(k.branch),t=D.account?.id,n=await d(s(k,e));return j={branch:e,userId:t,result:n},n},N=async()=>{let e;try{e=await it()}catch(e){throw y(k,e?.cause?.status)}return{canRead:!!e.permissions?.pull,canWrite:!!e.permissions?.push}},ot=async()=>{let{canRead:e,canWrite:t}=await N();if(!t)throw v(k.repo,e)},st=async()=>{let{branch:e}=k,t=j;j=void 0,await ie(e,async e=>{let n=t?.branch===e&&t.userId===D.account?.id?t.result:await d(s(k,e));return{canPush:n.user_can_push,canMerge:n.user_can_merge}})},P=async()=>{let e=await it().catch(()=>void 0);return a(k,{found:!!e,branch:e?.default_branch,getBaseURLs:M})},ct=e=>et(e,k.service,{name:`full_name`,login:`login`,profileURL:`html_url`}),lt=e=>`${e}/user/settings/applications`,ut=e=>he({options:e,getUserProfile:ct}),F=O[9],I=F[0],dt=F[1],ft=F[2],pt=F[3],mt=F[4],ht=F[5],gt=F[6],_t=F[7],vt=F[8],yt=F[9],bt=O[0][0],L={isForgejo:!1},xt=28,St=async e=>{let{restBaseURL:t,includeCredentials:n}=te;try{let e=new URL(`../forgejo/v1/version`,`${t}/`).href,{ok:r,status:i,redirected:a}=await rt(e,n?{credentials:`include`}:{},{responseType:`raw`});if(!a&&(r||i===404))return r}catch{}return e<xt},Ct=async()=>{let{version:e}=await d(`/version`),t=Number.parseFloat(e),n=/\+gitea-/.test(e??``)||t>=2&&await St(t),r=n?`Forgejo`:`Gitea`,i=n?_t:vt;if(Object.assign(L,{isForgejo:n}),Object.assign(k,{label:r}),t<i)throw Error(`Unsupported ${r} version`,{cause:Error(bt(`backend_unsupported_version`,{values:{name:r,version:i}}))})},R=O[44][0],wt=50,Tt=()=>Be(ft),z=()=>Ye(k),Et=()=>_e(k),Dt=async()=>{let{id:e,login:t}=D.account,{data:n=[]}=await d(`/repos/search?uid=${e}&exclusive=true&mode=fork&limit=${wt}`),r=n.find(e=>e.owner?.login===t&&x(e.parent?.full_name,k));return r?T(r.full_name):void 0},Ot=async()=>await Et()??Dt(),kt=async()=>{if(!L.isForgejo)return!0;try{let{forks_disabled:e}=await d(`/settings/repository`);return!e}catch{return!0}},At=async e=>{let t=D.account?.login;return(await d(l({owner:t,repo:e}),{responseType:`raw`})).ok},jt=async()=>{let{owner:e,repo:t}=k,n=`${l(k)}/forks`,r=await Pe({repoPath:`${e}/${t}`,requestFork:()=>d(n,{method:`POST`,body:{}}),requestRenamedFork:()=>d(n,{method:`POST`,body:{name:`${e}-${t}`}}),conflictStatuses:[409],isNameTaken:()=>At(t)});return T(r.full_name)},Mt=async({owner:e,repo:t},n)=>{let{allowed:r,fork_commit:i,base_commit:a}=await d(`${l({owner:e,repo:t})}/sync_fork/${R(n)}`);return i&&i===a?`current`:r?`behind`:`diverged`},Nt=async e=>{let{branch:t}=k;await Re(e,t,L.isForgejo?async()=>{let n=await Mt(e,t);return n===`diverged`&&Ae(e),n===`behind`?d(`${l(e)}/sync_fork/${R(t)}`,{method:`POST`,responseType:`raw`}):void 0}:void 0)},Pt=async({owner:e,repo:t})=>{let{branch:r}=k;if(!(await d(s({owner:e,repo:t},r),{responseType:`raw`})).ok)throw n(`The fork does not have the configured branch`,`open_authoring.fork_branch_missing`,{fork:`${e}/${t}`,branch:r,repo:`${k.owner}/${k.repo}`})},Ft=async()=>{await we({repository:k,fetchAccess:N,fetchDefaultBranchName:P,fetchFork:Ot,prepareFork:async e=>{await Nt(e),await Pt(e)},fetchForkingAllowed:kt,createFork:jt})},It=async()=>{await xe(Ft)},B=async()=>{let{repo:e,branch:t}=k;try{let{commit:{id:e,message:t}}=await at();return{hash:e,message:t}}catch(n){throw n.cause?.status===404?pe(`branch_not_found`,{repo:e,branch:t}):n}},Lt=async({action:e,path:t,previousPath:n,previousSha:r},i)=>{if(e===`create`||r)return r;let a=l(i?z():k),o=i??Ue.current,s=e===`move`&&n||t;if(!o)throw Error(`The last known version of ${s} could not be determined.`);let c=R(s),{sha:u}=await d(`${a}/contents/${c}?ref=${encodeURIComponent(o)}`);return u},V=async(t,n)=>{Se(n);let r=l(n.branch?z():k),{branch:i=k.branch,startBranch:a}=n,o=e(de(t,n)),{name:s,email:c}=D.account,u=new Date().toJSON(),f=await Promise.all(t.map(async e=>{let{action:t,path:r,previousPath:i,data:a=``}=e,[o,s]=await Promise.all([Ie(a),Lt(e,n.branch)]);return{operation:t===`move`?`update`:t,path:r,content:o,from_path:i,sha:s}})),p=n.branch?void 0:Ue.current,m;try{m=await d(`${r}/contents`,Line truncated
//# sourceMappingURL=gitea.js.map
+105
View File
@@ -0,0 +1,105 @@
import{$ as e,A as t,At as n,B as r,Ct as i,D as a,F as o,Ft as s,G as c,H as l,I as u,It as d,J as f,K as p,L as m,Lt as h,M as g,Mt as ee,N as _,Nt as v,Ot as y,Q as b,R as x,Rt as S,St as C,U as te,V as w,W as ne,X as re,Y as T,Z as E,_t as ie,a as D,b as ae,bt as oe,c as se,ct as ce,dt as le,et as ue,f as de,ft as fe,ht as pe,i as me,j as he,jt as ge,lt as _e,m as ve,mt as ye,n as be,o as xe,ot as Se,q as Ce,r as we,rt as Te,s as Ee,st as De,t as Oe,tt as ke,ut as Ae,v as je,vt as Me,w as Ne,wt as Pe,x as Fe,xt as O,y as Ie,yt as Le,z as Re,zt as ze}from"./assets/_shared-module_34-Dz2DDLOA.js";import{r as k,t as Be}from"./assets/_shared-module_42-B_M8U-E0.js";var A=`gitlab`,Ve=`GitLab`,j=`https://gitlab.com/api/v4`,He=`https://api.netlify.com`,Ue=`auth`,We=`https://gitlab.com`,Ge=`oauth/authorize`,Ke=e=>Le(e,A,{name:`name`,login:`username`,profileURL:`web_url`}),qe=e=>`${e}/-/user_settings/personal_access_tokens?${new URLSearchParams({name:`Sveltia CMS`,scopes:`api,read_user`})}`,Je=e=>ie({options:e,getUserProfile:Ke}),Ye=k[7],Xe=Ye[0],Ze=Ye[1],Qe=/(?<owner>.+)\/(?<repo>[^/]+)$/,M={...C},N=e=>e.match(Qe)?.groups??{},P=e=>{let{owner:t,repo:n}=e??M;return encodeURIComponent(`${t}/${n}`)},F=(e,t)=>`/projects/${P(t)}/repository/branches/${encodeURIComponent(e)}`,$e=async(e,t)=>(await r(F(e,t)))?.commit?.id,et=Pe({tree:`/-/tree`,blob:`/-/blob`,commit:`/-/commit`}),tt=`
query($fullPath: ID!) {
project(fullPath: $fullPath) {
userPermissions {
pushCode
}
}
}
`,nt=async()=>{let e;try{e=await d(tt)}catch(e){let t=e?.cause?.status;throw v(M,t===404?void 0:t)}return{found:!!e.project,canPush:!!e.project?.userPermissions.pushCode}},rt=async()=>{let{found:e,canPush:t}=await nt();if(!t)throw ee(M.repo,e)},it=async()=>{await S(M.branch,async e=>({canPush:(await s(F(e))).can_push}))},at=`
query($fullPath: ID!) {
project(fullPath: $fullPath) {
repository {
rootRef
}
}
}
`,ot=async()=>{let e=await d(at),t=i(M,{found:!!e.project,branch:e.project?.repository?.rootRef,getBaseURLs:et});return Object.assign(h,{branch:t}),t},st=100,I={base:void 0,fork:void 0},ct=()=>Se(`gitlab`),L=()=>Ae(M),lt=async()=>{let{owner:e,repo:t}=M,{found:n,canPush:r}=await nt();if(!n)throw ge(`${e}/${t}`);return{canWrite:r}},ut=async()=>{let{owner:e,repo:t}=M,r;try{r=await s(`/projects/${P()}`)}catch{throw n(`Failed to read the repository.`,`open_authoring.permission_check_failed`,{repo:`${e}/${t}`})}let{id:i,forking_access_level:a}=r;return I.base=i,{allowForking:a!==`disabled`}},dt=async()=>{let{repo:e}=M,t=O.account?.login,n=await r(`/projects/${P({owner:t,repo:e})}`);if(n&&y(n.forked_from_project?.path_with_namespace,M)&&n.namespace?.kind===`user`&&n.namespace?.full_path===t)return I.fork=n.id,N(n.path_with_namespace)},ft=async()=>{let e=O.account?.login,t=(await s(`/projects/${P()}/forks?owned=true&per_page=${st}`)).find(({namespace:t})=>t?.kind===`user`&&t?.full_path===e);if(t)return I.fork=t.id,N(t.path_with_namespace)},pt=async()=>await dt()??ft(),mt=[`none`,`finished`],ht=async(e,t)=>{await De({repoPath:`${e.owner}/${e.repo}`,attemptsLeft:t,checkFork:async()=>{let t;try{({import_status:t}=await s(`/projects/${P(e)}`))}catch{return`pending`}return t===void 0||mt.includes(t)?`ready`:t===`failed`?`failed`:`pending`}})},gt=async()=>{let e=O.account?.login;try{return await s(`/projects/${P({owner:e,repo:M.repo})}`),!0}catch{return!1}},_t=async()=>{let{owner:e,repo:t}=M,n=`/projects/${P()}/fork`,r=`${e.replaceAll(`/`,`-`)}-${t}`,i=await _e({repoPath:`${e}/${t}`,requestFork:()=>s(n,{method:`POST`}),requestRenamedFork:()=>s(n,{method:`POST`,body:{name:r,path:r}}),conflictStatuses:[400,409],isNameTaken:gt}),a=N(i.path_with_namespace);return I.fork=i.id,await ht(a),a},vt=async()=>{let e=!1;await fe({repository:M,fetchAccess:lt,fetchFork:async()=>{let[t,n]=await Promise.all([ut(),pt()]);return{allowForking:e}=t,n},fetchForkingAllowed:()=>e,createFork:_t})},yt=async()=>{I.base=void 0,I.fork=void 0,await le(vt)},R=k[13],bt=R[0],xt=R[1],St=R[2],Ct=R[3],wt=R[4],Tt=k[40][0],Et=`
query($fullPath: ID!, $branch: String!) {
project(fullPath: $fullPath) {
repository {
tree(ref: $branch) {
lastCommit {
sha
message
}
}
}
}
}
`,z=async()=>{let{repo:e,branch:t}=M,n=await d(Et);if(!n.project)throw E(`repository_not_found`,{repo:e});let{lastCommit:r}=n.project.repository.tree??{};if(!r)throw E(`branch_not_found`,{repo:e,branch:t});let{sha:i,message:a}=r;return{hash:i,message:a}},Dt=67108864,Ot=new Set,B=e=>e!==void 0&&typeof e!=`string`,V=async(t,n)=>{ue(n);let r=n.branch?me.current:void 0,i=n.branch??M.branch,a=(n.branch?n.headOid:Ce.current)||void 0,o=a?{last_commit_id:a}:{},c=n.branch?new Set:Ot,l=[],u=[],d=[];t.forEach(e=>{e.action===`delete`?u.push(e.path):e.action===`move`?d.push(e):l.push(e)});let{queue:f,addedAgain:p}=Ct(await Promise.all(l.map(async({path:e,data:t=``},n)=>({index:n,path:e,data:t,contents:B(t)?await ye(t):t}))),new Set([...u,...d.map(({previousPath:e})=>e)])),m=({index:e,contents:t})=>{let{action:n,path:r,data:i}=l[e],a=B(i)?`base64`:`text`,s={action:`create`,content:t,encoding:a,file_path:r};return c.has(r)?[{action:`delete`,file_path:r},s]:n===`update`?B(i)?[{action:`delete`,file_path:r,...o},s]:[{action:n,content:t,encoding:a,file_path:r,...o}]:[s]},h=[...u.map(e=>({action:`delete`,file_path:e,...o})),...d.map(({path:e,previousPath:t,data:n})=>({action:`move`,...typeof n==`string`?{content:n,encoding:`text`}:{},file_path:e,previous_path:t,...o}))],g=`/projects/${P(r)}/repository/commits`,ee=e(re(t,n)),{startBranch:_}=n,v=r?{start_project:I.base}:{},y=a,b=Dt,x=0,S,C;try{do{Ze(x,x+bt(f,b));let e=wt(f,b),t=!f.length,o=xt(e),l={branch:i,commit_message:ee,actions:[...e.flatMap(m),...t?[...h,...p.flatMap(m)]:[]]};try{C=await s(g,{method:`POST`,body:_&&!x?{...l,start_branch:_,...v}:l,retryable:!0})}catch(t){if(e.length>1&&St(t)&&await $e(i,r).catch(()=>null)===y){f.unshift(...e),b=Math.floor(o/2);continue}let s=S===a?y:a;throw s&&!n.branch&&t.cause?.status===400&&await T(s,z),x&&!n.branch&&(Ce.current=s),t}x+=1;let u=C.parent_ids?.[0];(x===1||u!==y)&&(S=u),y=C.id,t||e.forEach(({path:e})=>c.add(e))}while(f.length)}finally{Xe()}c.clear();let{id:te,committed_date:w}=C,ne=await Promise.all(t.map(async({path:e,data:t})=>t===void 0?null:[e,{sha:await Tt(t)}]));return{sha:te,date:new Date(w),parentSha:S,files:Object.fromEntries(ne.filter(e=>!!e))}},kt=new Map,At=async e=>{try{return await oe(kt,e,async()=>{let{avatar_url:t}=await s(`/avatar?email=${encodeURIComponent(e)}&size=48`);return t||void 0})}catch{return}},jt=async e=>{let{branch:t}=M,n=P(),r=await b(e,e=>s(`/projects/${n}/repository/commits?ref_name=${encodeURIComponent(t??``)}&path=${encodeURIComponent(e)}&per_page=${f}`),e=>({sha:e.id,message:e.title??``,authorName:e.author_name,authorEmail:e.author_email,authorAvatarURL:void 0,date:new Date(e.committed_date)})),i=[...new Set(r.map(e=>e.authorEmail))].filter(e=>!!e),a=new Map;return await p(i,async e=>{a.set(e,await At(e))}),r.forEach(e=>{e.authorAvatarURL=a.get(e.authorEmail)}),r},Mt=100,Nt=6048e5,Pt={success:`ready`,pending:`pending`,running:`pending`,created:`pending`,preparing:`pending`,manual:`pending`,scheduled:`pending`,waiting_for_resource:`pending`,failed:`error`,canceled:`error`},Ft={success:`ready`,created:`pending`,running:`pending`,blocked:`pending`,failed:`error`,canceled:`error`},It=async()=>s(`/projects/${P()}/pipeline`,{method:`POST`,body:{ref:M.branch},responseType:`raw`}),Lt=()=>te(M.branch,e=>F(e)),Rt=async e=>{let t=new Date(Date.now()-Nt).toISOString(),n=[...await s(`/projects/${P()}/deployments?order_by=updated_at&sort=desc&per_page=${Mt}&updated_after=${encodeURIComponent(t)}`)??[]].reverse();Object.entries(e).forEach(([e,t])=>{w(t,n.filter(t=>t.sha===e),({status:e})=>Ft[e],({environment:e})=>({name:e?.name??``,url:e?.external_url,source:`deployment`}))})},zt=async({sha:e},t)=>{let n=await s(`/projects/${P()}/repository/commits/${encodeURIComponent(e)}/statuses?per_page=${Mt}`);w(t[e],n,({status:e})=>Pt[e],({name:e,target_url:t,description:n})=>({name:e??``,url:t,description:n,source:`status`}))},Bt=async(e,t)=>{await Promise.all([l(()=>Rt(t)),p(e,e=>l(()=>zt({sha:e,branch:``,kind:`preview`},t)))])},Vt=async e=>ne(e,{collect:Bt,selfURL:M.repoURL}),Ht=k[23][0],Ut=k[25][0],Wt=k[29][0],Gt=`
query($fullPath: ID!, $ref: String!, $path: String!, $cursor: String!) {
project(fullPath: $fullPath) {
repository {
tree(ref: $ref, path: $path) {
trees(after: $cursor) {
nodes {
name
sha
}
pageInfo {
endCursor
hasNextPage
}
}
}
}
}
}
`,Kt=`
query($fullPath: ID!, $branch: String!, $paths: [String!]!) {
project(fullPath: $fullPath) {
repository {
blobs(ref: $branch, paths: $paths) {
nodes {
path
size
rawTextBlob
}
}
}
}
}
`,H=async(e,t,n={})=>{let r;try{r=await d(t,{...n,paths:e})}catch(r){if(e.length===1)throw r;let i=Math.ceil(e.length/2),a=await H(e.slice(0,i),t,n),o=await H(e.slice(i),t,n);return[...a,...o]}return r.project.repository.blobs.nodes},U=async(e,t,n={})=>{if(!e.length)return[];let{isSelfHosted:r=!1}=M,i=r?20:100,a=r?2:4;return(await c(_(e,i),e=>H(e,t,n),{concurrency:a})).flat()},qt=e=>{let t=e?.split(`,`).find(e=>/;\s*rel="next"/.test(e))?.match(/<([^>]+)>/)?.[1],n=t?URL.parse(t)?.searchParams:void 0,r=n?.get(`page_token`),i=n?.get(`page`);return r?{page_token:r}:i?{page:i}:void 0},Jt=async(e,t)=>{let n={trees:[],blobs:[]},r;for(;;){let i=new URLSearchParams({...e&&{path:e},ref:t,per_page:`100`,pagination:`keyset`,...r}),a=await s(`/projects/${P()}/repository/tree?${i}`,{responseType:`raw`});if(a.status===404&&!r||(await Be(a,`Failed to list the files`),(await a.json()).forEach(({type:e,name:t,id:r})=>{e===`tree`?n.trees.push([t,r]):e===`blob`&&n.blobs.push([t,r])}),r=qt(a.headers.get(`Link`)),!r))return n}},{fetchDirSHA:Yt,resetDirLookups:Xt}=Re(M,async(e,t)=>{let{dirname:n=``,basename:r}=pe(t),i=``;for(;;){let{nodes:t=[],pageInfo:a}=(await d(Gt,{ref:e,path:n,cursor:i})).project?.repository?.tree?.trees??{},o=t.find(({name:e})=>e===r)?.sha;if(o||!a?.hasNextPage)return o;i=a.endCursor}}),Zt=async(e,t)=>{let n=t??M.branch;return Wt({repository:M,roots:(await c(e,async e=>e?{path:e,sha:await Yt(n,e)}:{path:e})).filter(({path:e,sha:t})=>!e||t),fetchTreeListing:e=>Jt(e,n),cacheable:!!t,concurrency:M.isSelfHosted?4:8})},Qt=`
query($fullPath: ID!, $branch: String!, $paths: [String!]!) {
project(fullPath: $fullPath) {
repository {
blobs(ref: $branch, paths: $paths) {
nodes {
path
oid
}
}
}
}
}
`,$t=async e=>{let t=o(),n=Ht();if(n){let{dirs:t,files:r}=n,[i,a]=await Promise.all([Zt(t.map(e=>u(e)),e),U(r.map(e=>u(e)),Qt,e?{branch:e}:{})]),o=[...i,...a.map(({path:e,oid:t})=>({type:`blob`,path:e,sha:t}))];if(o.length)return m(o)}return m(await Zt([t],e))},en=async(e,t,n={})=>{let r=await U(e,t,n);return Object.fromEntries(r.map(e=>[e.path,e]))},tn=({fetchingFiles:e,blobs:t})=>Object.fromEntries(e.map(({path:e,sha:n,type:r})=>{let i=t[e]?.rawTextBlob??void 0;return[e,{sha:n,size:0,text:i,meta:i===void 0&&r!==`asset`?void 0:{}}]})),nn=({projectId:e,path:t,ref:n,lfs:r=!1})=>`/projects/${e}/repository/files/${encodeURIComponent(t)}/raw?${r?`lfs=true&`:``}ref=${encodeURIComponent(n)}`,rn=async(e,{ref:t,projectId:n=P()})=>{let r=new TextEncoder,i=Object.entries(e).filter(([,{size:e,rawTextBlob:t}])=>typeof t==`string`&&t.length<Number(e??0)&&r.encode(t).length<Number(e));await c(i,async([e,r])=>{r.rawTextBlob=await s(nn({projectId:n,path:e,ref:t}),{responseType:`text`})})},an=async(e,t)=>{let n=Ut(e.length),r=e.filter(({type:e})=>e!==`asset`).map(({path:e})=>e),i;try{i=await en(r,Kt,t?{branch:t}:{}),await rn(i,{ref:t??M.branch})}finally{n()}return tn({fetchingFiles:e,blobs:i})},on=async({lastCommit:e}={})=>{await x({isOpenAuthoringConfigured:ct,initOpenAuthoring:yt,repository:M,checkAccess:rt,checkBranchAccess:it,fetchDefaultBranchName:ot,fetchLastCommit:z,lastCommit:e,fetchFileList:$t,fetchFileContents:an})},sn=async e=>{let{branch:t=``}=M,{path:n,workflow:r}=e,i=r?.branch??t,a=P(r?L():void 0);return s(nn({projectId:a,path:n,ref:i,lfs:!0}),{responseType:`blob`})},cn=k[28][0],ln=`https://status.gitlab.com/`,un=cn(`https://status-api.hostedstatus.com/1.0/status/5b36dc6502d06804c08349f7`,({result:{status_overall:{status_code:e}}})=>e===100?`none`:[200,300,400].includes(e)?`minor`:[500,600].includes(e)?`major`:void 0),W=e=>`/projects/${P()}/merge_requests/${e}`,G={mergeRequests:100,files:100,branches:100,authoredMergeRequests:100},K=a({regex:/^\s*(?:\[draft\]|\(draft\)|draft:)\s*/i,prefix:`Draft: `}),dn=e=>typeof e.user?.can_merge==`boolean`?e.user.can_merge:void 0,fn=e=>t({login:e?.username,name:e?.name,id:e?.id}),q=(e,t)=>({number:e.iid,nodeId:String(e.id),title:K.strip(e.title),url:e.web_url,branch:e.source_branch,headSHA:e.sha,status:t,createdDate:new Date(e.created_at),updatedDate:new Date(e.updated_at),author:fn(e.author),files:[],canMerge:dn(e),description:e.description??``}),pn=e=>{if(e.source_project_id!==e.target_project_id||e.target_branch!==M.branch)return;let t=Ee(e.labels??[]);if(t)return q(e,t)},J=e=>({path:e.deleted_file?e.old_path:e.new_path,sha:``,size:0,deleted:!!e.deleted_file,previousPath:e.renamed_file?e.old_path:void 0}),Y=e=>$e(e,L()),mn=async e=>{let{number:t,branch:n,headSHA:r}=e,i=`/projects/${P()}`,[a,o]=await Promise.all([Y(n),s(`${W(t)}/diffs?per_page=${G.files}`)]);if(!a||a===r){e.files=o.map(J);return}let{diffs:c=[]}=await s(`${i}/repository/compare?from=${encodeURIComponent(M.branch)}&to=${encodeURIComponent(a)}&straight=false`);Object.assign(e,{headSHA:a,files:c.map(J)})},hn=`
query($fullPath: ID!, $branch: String!, $paths: [String!]!) {
project(fullPath: $fullPath) {
repository {
blobs(ref: $branch, paths: $paths) {
nodes {
path
oid
size
rawTextBlob
}
}
}
}
}
`,gn=`
query($fullPath: ID!, $iids: [String!]) {
project(fullPath: $fullPath) {
mergeRequests(iids: $iids, first: 100) {
nodes {
iid
userPermissions {
canMerge
}
}
}
}
}
`,_n=async e=>{let t=new Map(e.map(e=>[String(e.number),e])),n=_([...t.keys()],G.mergeRequests);await p(n,async e=>{try{(await d(gn,{iids:e})).project?.mergeRequests?.nodes.forEach(({iid:e,userPermissions:n})=>{let r=t.get(String(e));r&&typeof n?.canMerge==`boolean`&&(r.canMerge=n.canMerge)})}catch{}})},vn=async e=>{let t=e.files.filter(({deleted:e})=>!e);if(!t.length)return;let n=L(),{owner:r,repo:i}=n,a=e.headSHA??e.branch,o=await en(t.map(({path:e})=>e),hn,{fullPath:`${r}/${i}`,branch:a});await rn(o,{ref:a,projectId:P(n)}),t.forEach(e=>{let t=Object.hasOwn(o,e.path)?o[e.path]:void 0;t?Object.assign(e,{sha:t.oid,size:Number(t.size)||0,text:t.rawTextBlob??void 0}):e.deleted=!0})},yn=async()=>{let e=new Map;await p(xe(),async t=>{(await s(`/projects/${P()}/merge_requests?state=opened&order_by=updated_at&per_page=${G.mergeRequests}&labels=${encodeURIComponent(t)}`)).forEach(t=>{let n=pn(t);n&&e.set(t.iid,n)})});let t=[...e.values()].sort((e,t)=>t.updatedDate.getTime()-e.updatedDate.getTime());return await Promise.all([_n(t),p(t,async e=>{await mn(e),await vn(e)})]),t},X=async e=>{await Fe({branch:e,path:F(e,L()),goneStatuses:[404]})},Z=async({branch:e,title:t,status:n,description:r})=>{let i=n===`draft`,a=me.current;return{...q(await s(`/projects/${P(a)}/merge_requests`,{method:`POST`,body:{title:K.format(t,i),source_branch:e,target_branch:M.branch,description:r,remove_source_branch:!0,...a?{target_project_id:I.base,allow_collaboration:!0}:{labels:se(n)}}}),n),title:t,branch:e,description:r}},bn=async(e,t=e=>e.source_project_id===e.target_project_id)=>(await s(`/projects/${P()}/merge_requests?state=opened&source_branch=${encodeURIComponent(e)}&per_page=${G.mergeRequests}`)).filter(t),Q=async e=>await s(W(e.number)),xn=async(e,t)=>{let n=t((await Q(e)).description??``);return await s(W(e.number),{method:`PUT`,body:{description:n}}),n},Sn=async()=>{let e=we(),t=await s(`/projects/${P(L())}/repository/branches?search=${encodeURIComponent(`^${e}`)}&per_page=${G.branches}`);return t.length===G.branches&&console.warn(`Only the first ${G.branches} Editorial Workflow branches in the fork are listed. Publish or discard some entries to see the rest.`),t},Cn=e=>e.source_project_id===I.fork&&e.target_branch===M.branch,$=e=>Cn(e)&&O.account?.id!==void 0&&e.author?.id===O.account.id,wn=async e=>{let t=new Map;if(!e.length)return t;let n=new Set(e);return(await s(`/projects/${P()}/merge_requests?state=all&order_by=created_at&sort=desc&author_id=${O.account?.id}&per_page=${G.authoredMergeRequests}`)).forEach(e=>{$(e)&&n.has(e.source_branch)&&!t.has(e.source_branch)&&t.set(e.source_branch,e)}),t},Tn=(e,t)=>{let{name:n,commit:r}=e,{id:i,message:a,committed_date:o,author_name:s,author_email:c}=r??{},l=t?.state===`merged`?void 0:t,u=l?.state===`opened`&&!l.draft,d=fn(l?.author)??(s&&{name:s,email:c??``});return{number:l?.iid,nodeId:l?String(l.id):void 0,title:l?K.strip(l.title):a??``,url:l?.web_url,branch:n,headSHA:i,status:u?`pending_review`:`draft`,createdDate:new Date(l?.created_at??o),updatedDate:new Date(l?.updated_at??o),author:d||void 0,files:[],canMerge:!1}},En=async e=>{let{branch:t=``}=M,{diffs:n=[]}=await s(`/projects/${P(L())}/repository/compare?from=${encodeURIComponent(t)}&to=${encodeURIComponent(e.branch)}&from_project_id=${I.base}`);e.files=n.map(J)},Dn=async()=>{let e=await Sn(),t=await wn(e.map(({name:e})=>e)),n=await ce(e,e=>{let n=t.get(e.name);return n?.state===`merged`&&n.sha===e.commit?.id?{leftover:e.name}:{pending:Tn(e,n)}},X);await p(n,En);let r=n.filter(({files:e})=>e.length);return await p(r,vn),r},On=({status:e,title:t,state:n,draft:r})=>e===`draft`?n===`opened`&&!r?{title:K.format(t,!0)}:{}:{...n===`closed`?{state_event:`reopen`}:{},...r?{title:t}:{}},kn=async(e,t)=>{Object.keys(t).length&&await s(W(e),{method:`PUT`,body:t})},An=409,jn=async({branch:e,title:t,status:r,description:i})=>{try{return await Z({branch:e,title:t,status:r,description:i})}catch(i){if(i.cause?.status!==An)throw i;let[a]=await bn(e,Cn);if(!a)throw i;if(!$(a))throw n(`The workflow branch is in use by another merge request.`,`workflow.branch_in_use`,{number:`!${a.iid}`});return await kn(a.iid,On({status:r,title:t,state:a.state,draft:a.draft})),{...q(a,r),title:t,branch:e}}},Mn=async e=>{let t=await Q(e);return{merged:t.state===`merged`,isEntryRequest:$(t),getMergedSHA:async()=>t.sha,state:t.state,draft:t.draft}},Nn=async({pullRequest:{number:e,title:t},status:n,state:r,draft:i})=>{await kn(e,On({status:n,title:t,state:r,draft:i}))},Pn=async(e,t)=>Te({pullRequest:e,status:t,requestKey:`number`,createRequest:jn,fetchRequest:Mn,applyStatus:Nn,fetchBranchHead:Y,deleteBranch:X}),Fn=[`preparing`,`unchecked`,`checking`,`approvals_syncing`],In=he,Ln=[...Fn,`ci_still_running`,`mergeable`],Rn=he,zn=async()=>D.current?Dn():yn(),Bn=async(e,t)=>{let{branch:n=``}=t,r=M.branch;return ae({branch:n,branchExistsStatus:400,commitFromStart:()=>V(e,{...t,startBranch:r}),commitOnBranch:()=>V(e,t),findOpenPullRequest:async()=>{let[e]=await bn(n);ret Line truncated
//# sourceMappingURL=gitlab.js.map
+2
View File
@@ -0,0 +1,2 @@
import{n as e,r as t}from"./assets/_shared-module_42-B_M8U-E0.js";var n=t[5][0],r=t[3][0],i=t[43][0],a=e=>Array.isArray(e)&&e.length>=2&&e.every(e=>typeof e==`number`&&Number.isFinite(e)),o=e=>Array.isArray(e)&&e.every(a),s=(e,t)=>t===`Point`?a(e):t===`LineString`?o(e):Array.isArray(e)&&e.every(o),c=(e,t=`Point`)=>{try{let n=JSON.parse(e);return r(n)&&n.type===t&&s(n.coordinates,t)?n:void 0}catch{return}},l=(e,t)=>!!c(e,t),u=(e,t)=>e.map(e=>Array.isArray(e)?e.map(e=>Array.isArray(e)?e.map(e=>i(e,t)):i(e,t)):i(e,t)),d=e=>{if(e.type===`Point`)return null;let t=e.type===`Polygon`?e.coordinates.flat(1):e.coordinates;if(!t.every(e=>Array.isArray(e)&&typeof e[0]==`number`&&typeof e[1]==`number`))return null;let n=t.map(e=>e[1]),r=t.map(e=>e[0]);return[[Math.min(...n),Math.min(...r)],[Math.max(...n),Math.max(...r)]]},f=600,p=({TerraDrawExtend:e,leaflet:t,map:n})=>{class r extends e.TerraDrawBaseAdapter{#e=n;#t=new Map;#n(e,t){let n=t,r=e[n.properties.mode](n),i=`terra-draw-${r.zIndex}`;return this.#e.getPane(i)||(this.#e.createPane(i).style.zIndex=String(f+r.zIndex)),{styles:r,pane:i}}#r(e,n,r){this.#i(n);let i=t.geoJSON(e,{pointToLayer:(e,n)=>{let{styles:i,pane:a}=this.#n(r,e);return t.circleMarker(n,{radius:i.pointWidth,stroke:!!i.pointOutlineWidth,color:i.pointOutlineColor,weight:i.pointOutlineWidth,opacity:i.pointOutlineOpacity??1,fillColor:i.pointColor,fillOpacity:i.pointOpacity??1,pane:a,interactive:!1})},style:e=>{let{type:t}=e.geometry;if(t===`Point`)return{};let{styles:n,pane:i}=this.#n(r,e);return t===`LineString`?{color:n.lineStringColor,weight:n.lineStringWidth,opacity:n.lineStringOpacity??1,pane:i,interactive:!1}:{stroke:!0,color:n.polygonOutlineColor,weight:n.polygonOutlineWidth,opacity:n.polygonOutlineOpacity??1,fillColor:n.polygonFillColor,fillOpacity:n.polygonFillOpacity,pane:i,interactive:!1}}});this.#t.set(n,i),this.#e.addLayer(i)}#i(e){let t=this.#t.get(e);t&&(this.#e.removeLayer(t),this.#t.delete(e))}getLngLatFromEvent(e){let{containerX:t,containerY:n}=this.getMapElementXYPosition(e),{lng:r,lat:i}=this.unproject(t,n);return Number.isNaN(r)||Number.isNaN(i)?null:{lng:r,lat:i}}getMapEventElement(){return this.#e.getContainer()}setDraggability(e){this.#e.dragging[e?`enable`:`disable`]()}setDoubleClickToZoom(e){this.#e.doubleClickZoom[e?`enable`:`disable`]()}project(e,t){let{x:n,y:r}=this.#e.latLngToContainerPoint({lng:e,lat:t});return{x:n,y:r}}unproject(e,t){let{lng:n,lat:r}=this.#e.containerPointToLatLng([e,t]);return{lng:n,lat:r}}setCursor(e){let{style:t}=this.getMapEventElement();e===`unset`?t.removeProperty(`cursor`):t.cursor=e}render({created:e,updated:t,deletedIds:n},r){n.forEach(e=>this.#i(String(e))),[...e,...t].forEach(e=>{e.id!==void 0&&this.#r(e,String(e.id),r)}),e.length||t.length||n.length||globalThis.setTimeout(()=>{[...this.#t].forEach(([e,t])=>{this.#r(t.toGeoJSON(),e,r)})})}clear(){this._currentModeCallbacks&&(this._currentModeCallbacks.onClear(),[...this.#t.keys()].forEach(e=>this.#i(e)))}register(e){super.register(e),this._currentModeCallbacks?.onReady?.()}}return new r({})},m=({snapshot:e,changeType:t,geometryType:n=`Point`,decimals:r})=>{let i=e.at(-1);if(i&&t===(n===`Point`?`create`:`delete`))return{value:JSON.stringify({type:n,coordinates:u(i.geometry.coordinates,r)}),staleIds:e.filter(e=>e.id!==i.id).map(e=>e.id)}},h=(e,t)=>{if(t.type===`Point`){let[n,r]=t.coordinates;typeof n==`number`&&typeof r==`number`&&e.setView([r,n],15);return}let n=d(t);n&&e.fitBounds(n)},g=async({leaflet:e,map:t,geometryType:r=`Point`,decimals:a,onChange:o,isCancelled:s})=>{let{TerraDraw:c,TerraDrawExtend:l,TerraDrawLineStringMode:u,TerraDrawPointMode:d,TerraDrawPolygonMode:f}=await n(`terra-draw`,`dist/terra-draw.module.js`);if(s())return;let g={Point:d,LineString:u,Polygon:f}[r],_=r.toLowerCase(),v=new c({adapter:p({TerraDrawExtend:l,leaflet:e,map:t}),modes:[new g]});v.start(),v.setMode(_),v.on(`change`,(e,t,n)=>{if(n&&`origin`in n)return;let i=m({snapshot:v.getSnapshot(),changeType:t,geometryType:r,decimals:a});i&&(o(i.value),i.staleIds.length&&v.removeFeatures(i.staleIds))});let y=(e,t)=>{v.clear(),v.addFeatures([{type:`Feature`,geometry:e,properties:{mode:t}}])};return{showGeometry:e=>{e?(y(e,_),h(t,e)):v.clear()},showDefaultView:({center:e,zoom:n})=>{t.setView(e?[e[1],e[0]]:[0,0],n??2)},setLocation:({latitude:e,longitude:n})=>{if(e=i(e,a),n=i(n,a),t.setView([e,n],15),r!==`Point`)return;let o={type:`Point`,coordinates:[n,e]};return y(o,`point`),JSON.stringify(o)},stop:()=>{v.stop()}}},_=`https://nominatim.openstreetmap.org/search`,v=async t=>{let n=t.trim();if(!n)return[];let r=new URLSearchParams({q:n,format:`jsonv2`});try{return await e(`${_}?${r}`)}catch{return[]}},y=class extends Error{constructor(){super(`Geolocation is not supported`),this.name=`GeolocationUnsupportedError`}},b=()=>new Promise((e,t)=>{navigator.geolocation?navigator.geolocation.getCurrentPosition(({coords:{latitude:t,longitude:n}})=>{e({latitude:t,longitude:n})},t):t(new y)});export{y as GeolocationUnsupportedError,g aLine truncated
//# sourceMappingURL=map.js.map
+9
View File
@@ -0,0 +1,9 @@
import{t as e}from"./assets/rolldown-runtime-BWaJ3C7D.js";var t=e(((e,t)=>{t.exports=function(){return typeof Promise==`function`&&Promise.prototype&&Promise.prototype.then}})),n=e((e=>{var t,n=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];e.getSymbolSize=function(e){if(!e)throw Error(`"version" cannot be null or undefined`);if(e<1||e>40)throw Error(`"version" should be in range from 1 to 40`);return e*4+17},e.getSymbolTotalCodewords=function(e){return n[e]},e.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t},e.setToSJISFunction=function(e){if(typeof e!=`function`)throw Error(`"toSJISFunc" is not a valid function.`);t=e},e.isKanjiModeEnabled=function(){return t!==void 0},e.toSJIS=function(e){return t(e)}})),r=e((e=>{e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(t){if(typeof t!=`string`)throw Error(`Param is not a string`);switch(t.toLowerCase()){case`l`:case`low`:return e.L;case`m`:case`medium`:return e.M;case`q`:case`quartile`:return e.Q;case`h`:case`high`:return e.H;default:throw Error(`Unknown EC Level: `+t)}}e.isValid=function(e){return e&&e.bit!==void 0&&e.bit>=0&&e.bit<4},e.from=function(n,r){if(e.isValid(n))return n;try{return t(n)}catch{return r}}})),i=e(((e,t)=>{function n(){this.buffer=[],this.length=0}n.prototype={get:function(e){let t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)==1},put:function(e,t){for(let n=0;n<t;n++)this.putBit((e>>>t-n-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(e){let t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},t.exports=n})),a=e(((e,t)=>{function n(e){if(!e||e<1)throw Error(`BitMatrix size must be defined and greater than 0`);this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}n.prototype.set=function(e,t,n,r){let i=e*this.size+t;this.data[i]=n,r&&(this.reservedBit[i]=!0)},n.prototype.get=function(e,t){return this.data[e*this.size+t]},n.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n},n.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]},t.exports=n})),o=e((e=>{var t=n().getSymbolSize;e.getRowColCoords=function(e){if(e===1)return[];let n=Math.floor(e/7)+2,r=t(e),i=r===145?26:Math.ceil((r-13)/(2*n-2))*2,a=[r-7];for(let e=1;e<n-1;e++)a[e]=a[e-1]-i;return a.push(6),a.reverse()},e.getPositions=function(t){let n=[],r=e.getRowColCoords(t),i=r.length;for(let e=0;e<i;e++)for(let t=0;t<i;t++)e===0&&t===0||e===0&&t===i-1||e===i-1&&t===0||n.push([r[e],r[t]]);return n}})),s=e((e=>{var t=n().getSymbolSize,r=7;e.getPositions=function(e){let n=t(e);return[[0,0],[n-r,0],[0,n-r]]}})),c=e((e=>{e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var t={N1:3,N2:3,N3:40,N4:10};e.isValid=function(e){return e!=null&&e!==``&&!isNaN(e)&&e>=0&&e<=7},e.from=function(t){return e.isValid(t)?parseInt(t,10):void 0},e.getPenaltyN1=function(e){let n=e.size,r=0,i=0,a=0,o=null,s=null;for(let c=0;c<n;c++){i=a=0,o=s=null;for(let l=0;l<n;l++){let n=e.get(c,l);n===o?i++:(i>=5&&(r+=t.N1+(i-5)),o=n,i=1),n=e.get(l,c),n===s?a++:(a>=5&&(r+=t.N1+(a-5)),s=n,a=1)}i>=5&&(r+=t.N1+(i-5)),a>=5&&(r+=t.N1+(a-5))}return r},e.getPenaltyN2=function(e){let n=e.size,r=0;for(let t=0;t<n-1;t++)for(let i=0;i<n-1;i++){let n=e.get(t,i)+e.get(t,i+1)+e.get(t+1,i)+e.get(t+1,i+1);(n===4||n===0)&&r++}return r*t.N2},e.getPenaltyN3=function(e){let n=e.size,r=0,i=0,a=0;for(let t=0;t<n;t++){i=a=0;for(let o=0;o<n;o++)i=i<<1&2047|e.get(t,o),o>=10&&(i===1488||i===93)&&r++,a=a<<1&2047|e.get(o,t),o>=10&&(a===1488||a===93)&&r++}return r*t.N3},e.getPenaltyN4=function(e){let n=0,r=e.data.length;for(let t=0;t<r;t++)n+=e.data[t];return Math.abs(Math.ceil(n*100/r/5)-10)*t.N4};function n(t,n,r){switch(t){case e.Patterns.PATTERN000:return(n+r)%2==0;case e.Patterns.PATTERN001:return n%2==0;case e.Patterns.PATTERN010:return r%3==0;case e.Patterns.PATTERN011:return(n+r)%3==0;case e.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(r/3))%2==0;case e.Patterns.PATTERN101:return n*r%2+n*r%3==0;case e.Patterns.PATTERN110:return(n*r%2+n*r%3)%2==0;case e.Patterns.PATTERN111:return(n*r%3+(n+r)%2)%2==0;default:throw Error(`bad maskPattern:`+t)}}e.applyMask=function(e,t){let r=t.size;for(let i=0;i<r;i++)for(let a=0;a<r;a++)t.isReserved(a,i)||t.xor(a,i,n(e,a,i))},e.getBestMask=function(t,n){let r=Object.keys(e.Patterns).length,i=0,a=1/0;for(let o=0;o<r;o++){n(o),e.applyMask(o,t);let r=e.getPenaltyN1(t)+e.getPenaltyN2(t)+e.getPenaltyN3(t)+e.getPenaltyN4(t);e.applyMask(o,t),r<a&&(a=r,i=o)}return i}})),l=e((e=>{var t=r(),n=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,3Line truncated
]))+`;e.KANJI=new RegExp(r,`g`),e.BYTE_KANJI=RegExp(`[^A-Z0-9 $%*+\\-./:]+`,`g`),e.BYTE=new RegExp(i,`g`),e.NUMERIC=new RegExp(t,`g`),e.ALPHANUMERIC=new RegExp(n,`g`);var a=RegExp(`^`+r+`$`),o=RegExp(`^[0-9]+$`),s=RegExp(`^[A-Z0-9 $%*+\\-./:]+$`);e.testKanji=function(e){return a.test(e)},e.testNumeric=function(e){return o.test(e)},e.testAlphanumeric=function(e){return s.test(e)}})),h=e((e=>{var t=p(),n=m();e.NUMERIC={id:`Numeric`,bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:`Alphanumeric`,bit:2,ccBits:[9,11,13]},e.BYTE={id:`Byte`,bit:4,ccBits:[8,16,16]},e.KANJI={id:`Kanji`,bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(e,n){if(!e.ccBits)throw Error(`Invalid mode: `+e);if(!t.isValid(n))throw Error(`Invalid version: `+n);return n>=1&&n<10?e.ccBits[0]:n<27?e.ccBits[1]:e.ccBits[2]},e.getBestModeForData=function(t){return n.testNumeric(t)?e.NUMERIC:n.testAlphanumeric(t)?e.ALPHANUMERIC:n.testKanji(t)?e.KANJI:e.BYTE},e.toString=function(e){if(e&&e.id)return e.id;throw Error(`Invalid mode`)},e.isValid=function(e){return e&&e.bit&&e.ccBits};function r(t){if(typeof t!=`string`)throw Error(`Param is not a string`);switch(t.toLowerCase()){case`numeric`:return e.NUMERIC;case`alphanumeric`:return e.ALPHANUMERIC;case`kanji`:return e.KANJI;case`byte`:return e.BYTE;default:throw Error(`Unknown mode: `+t)}}e.from=function(t,n){if(e.isValid(t))return t;try{return r(t)}catch{return n}}})),g=e((e=>{var t=n(),i=l(),a=r(),o=h(),s=p(),c=7973,u=t.getBCHDigit(c);function d(t,n,r){for(let i=1;i<=40;i++)if(n<=e.getCapacity(i,r,t))return i}function f(e,t){return o.getCharCountIndicator(e,t)+4}function m(e,t){let n=0;return e.forEach(function(e){let r=f(e.mode,t);n+=r+e.getBitsLength()}),n}function g(t,n){for(let r=1;r<=40;r++)if(m(t,r)<=e.getCapacity(r,n,o.MIXED))return r}e.from=function(e,t){return s.isValid(e)?parseInt(e,10):t},e.getCapacity=function(e,n,r){if(!s.isValid(e))throw Error(`Invalid QR Code version`);r===void 0&&(r=o.BYTE);let a=(t.getSymbolTotalCodewords(e)-i.getTotalCodewordsCount(e,n))*8;if(r===o.MIXED)return a;let c=a-f(r,e);switch(r){case o.NUMERIC:return Math.floor(c/10*3);case o.ALPHANUMERIC:return Math.floor(c/11*2);case o.KANJI:return Math.floor(c/13);case o.BYTE:default:return Math.floor(c/8)}},e.getBestVersionForData=function(e,t){let n,r=a.from(t,a.M);if(Array.isArray(e)){if(e.length>1)return g(e,r);if(e.length===0)return 1;n=e[0]}else n=e;return d(n.mode,n.getLength(),r)},e.getEncodedBits=function(e){if(!s.isValid(e)||e<7)throw Error(`Invalid QR Code version`);let n=e<<12;for(;t.getBCHDigit(n)-u>=0;)n^=c<<t.getBCHDigit(n)-u;return e<<12|n}})),_=e((e=>{var t=n(),r=1335,i=21522,a=t.getBCHDigit(r);e.getEncodedBits=function(e,n){let o=e.bit<<3|n,s=o<<10;for(;t.getBCHDigit(s)-a>=0;)s^=r<<t.getBCHDigit(s)-a;return(o<<10|s)^i}})),v=e(((e,t)=>{var n=h();function r(e){this.mode=n.NUMERIC,this.data=e.toString()}r.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(e){let t,n,r;for(t=0;t+3<=this.data.length;t+=3)n=this.data.substr(t,3),r=parseInt(n,10),e.put(r,10);let i=this.data.length-t;i>0&&(n=this.data.substr(t),r=parseInt(n,10),e.put(r,i*3+1))},t.exports=r})),y=e(((e,t)=>{var n=h(),r=`0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:`.split(``);function i(e){this.mode=n.ALPHANUMERIC,this.data=e}i.getBitsLength=function(e){return 11*Math.floor(e/2)+e%2*6},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){let t=0;for(;t+2<=this.data.length;t+=2){let n=r.indexOf(this.data[t])*45;n+=r.indexOf(this.data[t+1]),e.put(n,11)}this.data.length%2&&e.put(r.indexOf(this.data[t]),6)},t.exports=i})),b=e(((e,t)=>{var n=h();function r(e){this.mode=n.BYTE,this.data=typeof e==`string`?new TextEncoder().encode(e):new Uint8Array(e)}r.getBitsLength=function(e){return e*8},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(e){for(let t=0,n=this.data.length;t<n;t++)e.put(this.data[t],8)},t.exports=r})),x=e(((e,t)=>{var r=h(),i=n();function a(e){this.mode=r.KANJI,this.data=e}a.getBitsLength=function(e){return e*13},a.prototype.getLength=function(){return this.data.length},a.prototype.getBitsLength=function(){return a.getBitsLength(this.data.length)},a.prototype.write=function(e){let t=0;for(;t<this.data.length;t++){let n=i.toSJIS(this.data[t]);if(n>=33088&&n<=40956)n-=33088;else if(n>=57408&&n<=60351)n-=49472;else throw Error(`Invalid SJIS character: `+this.data[t]+`
Make sure your charset is UTF-8`);n=(n>>>8&255)*192+(n&255),e.put(n,13)}},t.exports=a})),S=e(((e,t)=>{var n={single_source_shortest_paths:function(e,t,r){var i={},a={};a[t]=0;var o=n.PriorityQueue.make();o.push(t,0);for(var s,c,l,u,d,f,p,m,h;!o.empty();)for(l in s=o.pop(),c=s.value,u=s.cost,d=e[c]||{},d)d.hasOwnProperty(l)&&(f=d[l],p=u+f,m=a[l],h=a[l]===void 0,(h||m>p)&&(a[l]=p,o.push(l,p),i[l]=c));if(r!==void 0&&a[r]===void 0){var g=[`Could not find a path from `,t,` to `,r,`.`].join(``);throw Error(g)}return i},extract_shortest_path_from_predecessor_list:function(e,t){for(var n=[],r=t;r;)n.push(r),e[r],r=e[r];return n.reverse(),n},find_path:function(e,t,r){var i=n.single_source_shortest_paths(e,t,r);return n.extract_shortest_path_from_predecessor_list(i,r)},PriorityQueue:{make:function(e){var t=n.PriorityQueue,r={},i;for(i in e||={},t)t.hasOwnProperty(i)&&(r[i]=t[i]);return r.queue=[],r.sorter=e.sorter||t.default_sorter,r},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){var n={value:e,cost:t};this.queue.push(n),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};t!==void 0&&(t.exports=n)})),C=e((e=>{var t=h(),r=v(),i=y(),a=b(),o=x(),s=m(),c=n(),l=S();function u(e){return unescape(encodeURIComponent(e)).length}function d(e,t,n){let r=[],i;for(;(i=e.exec(n))!==null;)r.push({data:i[0],index:i.index,mode:t,length:i[0].length});return r}function f(e){let n=d(s.NUMERIC,t.NUMERIC,e),r=d(s.ALPHANUMERIC,t.ALPHANUMERIC,e),i,a;return c.isKanjiModeEnabled()?(i=d(s.BYTE,t.BYTE,e),a=d(s.KANJI,t.KANJI,e)):(i=d(s.BYTE_KANJI,t.BYTE,e),a=[]),n.concat(r,i,a).sort(function(e,t){return e.index-t.index}).map(function(e){return{data:e.data,mode:e.mode,length:e.length}})}function p(e,n){switch(n){case t.NUMERIC:return r.getBitsLength(e);case t.ALPHANUMERIC:return i.getBitsLength(e);case t.KANJI:return o.getBitsLength(e);case t.BYTE:return a.getBitsLength(e)}}function g(e){return e.reduce(function(e,t){let n=e.length-1>=0?e[e.length-1]:null;return n&&n.mode===t.mode?(e[e.length-1].data+=t.data,e):(e.push(t),e)},[])}function _(e){let n=[];for(let r=0;r<e.length;r++){let i=e[r];switch(i.mode){case t.NUMERIC:n.push([i,{data:i.data,mode:t.ALPHANUMERIC,length:i.length},{data:i.data,mode:t.BYTE,length:i.length}]);break;case t.ALPHANUMERIC:n.push([i,{data:i.data,mode:t.BYTE,length:i.length}]);break;case t.KANJI:n.push([i,{data:i.data,mode:t.BYTE,length:u(i.data)}]);break;case t.BYTE:n.push([{data:i.data,mode:t.BYTE,length:u(i.data)}])}}return n}function C(e,n){let r={},i={start:{}},a=[`start`];for(let o=0;o<e.length;o++){let s=e[o],c=[];for(let e=0;e<s.length;e++){let l=s[e],u=``+o+e;c.push(u),r[u]={node:l,lastCount:0},i[u]={};for(let e=0;e<a.length;e++){let o=a[e];r[o]&&r[o].node.mode===l.mode?(i[o][u]=p(r[o].lastCount+l.length,l.mode)-p(r[o].lastCount,l.mode),r[o].lastCount+=l.length):(r[o]&&(r[o].lastCount=l.length),i[o][u]=p(l.length,l.mode)+4+t.getCharCountIndicator(l.mode,n))}}a=c}for(let e=0;e<a.length;e++)i[a[e]].end=0;return{map:i,table:r}}function w(e,n){let s,l=t.getBestModeForData(e);if(s=t.from(n,l),s!==t.BYTE&&s.bit<l.bit)throw Error(`"`+e+`" cannot be encoded with mode `+t.toString(s)+`.
Suggested mode is: `+t.toString(l));switch(s===t.KANJI&&!c.isKanjiModeEnabled()&&(s=t.BYTE),s){case t.NUMERIC:return new r(e);case t.ALPHANUMERIC:return new i(e);case t.KANJI:return new o(e);case t.BYTE:return new a(e)}}e.fromArray=function(e){return e.reduce(function(e,t){return typeof t==`string`?e.push(w(t,null)):t.data&&e.push(w(t.data,t.mode)),e},[])},e.fromString=function(t,n){let r=C(_(f(t,c.isKanjiModeEnabled())),n),i=l.find_path(r.map,`start`,`end`),a=[];for(let e=1;e<i.length-1;e++)a.push(r.table[i[e]].node);return e.fromArray(g(a))},e.rawSplit=function(t){return e.fromArray(f(t,c.isKanjiModeEnabled()))}})),w=e((e=>{var t=n(),u=r(),d=i(),p=a(),m=o(),v=s(),y=c(),b=l(),x=f(),S=g(),w=_(),T=h(),E=C();function D(e,t){let n=e.size,r=v.getPositions(t);for(let t=0;t<r.length;t++){let i=r[t][0],a=r[t][1];for(let t=-1;t<=7;t++)if(!(i+t<=-1||n<=i+t))for(let r=-1;r<=7;r++)a+r<=-1||n<=a+r||(t>=0&&t<=6&&(r===0||r===6)||r>=0&&r<=6&&(t===0||t===6)||t>=2&&t<=4&&r>=2&&r<=4?e.set(i+t,a+r,!0,!0):e.set(i+t,a+r,!1,!0))}}function O(e){let t=e.size;for(let n=8;n<t-8;n++){let t=n%2==0;e.set(n,6,t,!0),e.set(6,n,t,!0)}}function k(e,t){let n=m.getPositions(t);for(let t=0;t<n.length;t++){let r=n[t][0],i=n[t][1];for(let t=-2;t<=2;t++)for(let n=-2;n<=2;n++)t===-2||t===2||n===-2||n===2||t===0&&n===0?e.set(r+t,i+n,!0,!0):e.set(r+t,i+n,!1,!0)}}function A(e,t){let n=e.size,r=S.getEncodedBits(t),i,a,o;for(let t=0;t<18;t++)i=Math.floor(t/3),a=t%3+n-8-3,o=(r>>t&1)==1,e.set(i,a,o,!0),e.set(a,i,o,!0)}function j(e,t,n){let r=e.size,i=w.getEncodedBits(t,n),a,o;for(a=0;a<15;a++)o=(i>>a&1)==1,a<6?e.set(a,8,o,!0):a<8?e.set(a+1,8,o,!0):e.set(r-15+a,8,o,!0),a<8?e.set(8,r-a-1,o,!0):a<9?e.set(8,15-a-1+1,o,!0):e.set(8,15-a-1,o,!0);e.set(r-8,8,1,!0)}function M(e,t){let n=e.size,r=-1,i=n-1,a=7,o=0;for(let s=n-1;s>0;s-=2)for(s===6&&s--;;){for(let n=0;n<2;n++)if(!e.isReserved(i,s-n)){let r=!1;o<t.length&&(r=(t[o]>>>a&1)==1),e.set(i,s-n,r),a--,a===-1&&(o++,a=7)}if(i+=r,i<0||n<=i){i-=r,r=-r;break}}}function N(e,n,r){let i=new d;r.forEach(function(t){i.put(t.mode.bit,4),i.put(t.getLength(),T.getCharCountIndicator(t.mode,e)),t.write(i)});let a=(t.getSymbolTotalCodewords(e)-b.getTotalCodewordsCount(e,n))*8;for(i.getLengthInBits()+4<=a&&i.put(0,4);i.getLengthInBits()%8!=0;)i.putBit(0);let o=(a-i.getLengthInBits())/8;for(let e=0;e<o;e++)i.put(e%2?17:236,8);return P(i,e,n)}function P(e,n,r){let i=t.getSymbolTotalCodewords(n),a=i-b.getTotalCodewordsCount(n,r),o=b.getBlocksCount(n,r),s=o-i%o,c=Math.floor(i/o),l=Math.floor(a/o),u=l+1,d=c-l,f=new x(d),p=0,m=Array(o),h=Array(o),g=0,_=new Uint8Array(e.buffer);for(let e=0;e<o;e++){let t=e<s?l:u;m[e]=_.slice(p,p+t),h[e]=f.encode(m[e]),p+=t,g=Math.max(g,t)}let v=new Uint8Array(i),y=0,S,C;for(S=0;S<g;S++)for(C=0;C<o;C++)S<m[C].length&&(v[y++]=m[C][S]);for(S=0;S<d;S++)for(C=0;C<o;C++)v[y++]=h[C][S];return v}function F(e,n,r,i){let a;if(Array.isArray(e))a=E.fromArray(e);else if(typeof e==`string`){let t=n;if(!t){let n=E.rawSplit(e);t=S.getBestVersionForData(n,r)}a=E.fromString(e,t||40)}else throw Error(`Invalid data`);let o=S.getBestVersionForData(a,r);if(!o)throw Error(`The amount of data is too big to be stored in a QR Code`);if(!n)n=o;else if(n<o)throw Error(`
The chosen QR Code version cannot contain this amount of data.
Minimum version required to store current data is: `+o+`.
`);let s=N(n,r,a),c=new p(t.getSymbolSize(n));return D(c,n),O(c),k(c,n),j(c,r,0),n>=7&&A(c,n),M(c,s),isNaN(i)&&(i=y.getBestMask(c,j.bind(null,c,r))),y.applyMask(i,c),j(c,r,i),{modules:c,version:n,errorCorrectionLevel:r,maskPattern:i,segments:a}}e.create=function(e,n){if(e===void 0||e===``)throw Error(`No input text`);let r=u.M,i,a;return n!==void 0&&(r=u.from(n.errorCorrectionLevel,u.M),i=S.from(n.version),a=y.from(n.maskPattern),n.toSJISFunc&&t.setToSJISFunction(n.toSJISFunc)),F(e,i,r,a)}})),T=e((e=>{function t(e){if(typeof e==`number`&&(e=e.toString()),typeof e!=`string`)throw Error(`Color should be defined as hex string`);let t=e.slice().replace(`#`,``).split(``);if(t.length<3||t.length===5||t.length>8)throw Error(`Invalid hex color: `+e);(t.length===3||t.length===4)&&(t=Array.prototype.concat.apply([],t.map(function(e){return[e,e]}))),t.length===6&&t.push(`F`,`F`);let n=parseInt(t.join(``),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:n&255,hex:`#`+t.slice(0,6).join(``)}}e.getOptions=function(e){e||={},e.color||(e.color={});let n=e.margin===void 0||e.margin===null||e.margin<0?4:e.margin,r=e.width&&e.width>=21?e.width:void 0,i=e.scale||4;return{width:r,scale:r?4:i,margin:n,color:{dark:t(e.color.dark||`#000000ff`),light:t(e.color.light||`#ffffffff`)},type:e.type,rendererOpts:e.rendererOpts||{}}},e.getScale=function(e,t){return t.width&&t.width>=e+t.margin*2?t.width/(e+t.margin*2):t.scale},e.getImageWidth=function(t,n){let r=e.getScale(t,n);return Math.floor((t+n.margin*2)*r)},e.qrToImageData=function(t,n,r){let i=n.modules.size,a=n.modules.data,o=e.getScale(i,r),s=Math.floor((i+r.margin*2)*o),c=r.margin*o,l=[r.color.light,r.color.dark];for(let e=0;e<s;e++)for(let n=0;n<s;n++){let u=(e*s+n)*4,d=r.color.light;if(e>=c&&n>=c&&e<s-c&&n<s-c){let t=Math.floor((e-c)/o),r=Math.floor((n-c)/o);d=l[+!!a[t*i+r]]}t[u++]=d.r,t[u++]=d.g,t[u++]=d.b,t[u]=d.a}}})),E=e((e=>{var t=T();function n(e,t,n){e.clearRect(0,0,t.width,t.height),t.style||={},t.height=n,t.width=n,t.style.height=n+`px`,t.style.width=n+`px`}function r(){try{return document.createElement(`canvas`)}catch{throw Error(`You need to specify a canvas element`)}}e.render=function(e,i,a){let o=a,s=i;o!==void 0||i&&i.getContext||(o=i,i=void 0),i||(s=r()),o=t.getOptions(o);let c=t.getImageWidth(e.modules.size,o),l=s.getContext(`2d`),u=l.createImageData(c,c);return t.qrToImageData(u.data,e,o),n(l,s,c),l.putImageData(u,0,0),s},e.renderToDataURL=function(t,n,r){let i=r;i!==void 0||n&&n.getContext||(i=n,n=void 0),i||={};let a=e.render(t,n,i),o=i.type||`image/png`,s=i.rendererOpts||{};return a.toDataURL(o,s.quality)}})),D=e((e=>{var t=T();function n(e,t){let n=e.a/255,r=t+`="`+e.hex+`"`;return n<1?r+` `+t+`-opacity="`+n.toFixed(2).slice(1)+`"`:r}function r(e,t,n){let r=e+t;return n!==void 0&&(r+=` `+n),r}function i(e,t,n){let i=``,a=0,o=!1,s=0;for(let c=0;c<e.length;c++){let l=Math.floor(c%t),u=Math.floor(c/t);!l&&!o&&(o=!0),e[c]?(s++,c>0&&l>0&&e[c-1]||(i+=o?r(`M`,l+n,.5+u+n):r(`m`,a,0),a=0,o=!1),l+1<t&&e[c+1]||(i+=r(`h`,s),s=0)):a++}return i}e.render=function(e,r,a){let o=t.getOptions(r),s=e.modules.size,c=e.modules.data,l=s+o.margin*2,u=o.color.light.a?`<path `+n(o.color.light,`fill`)+` d="M0 0h`+l+`v`+l+`H0z"/>`:``,d=`<path `+n(o.color.dark,`stroke`)+` d="`+i(c,s,o.margin)+`"/>`,f=`viewBox="0 0 `+l+` `+l+`"`,p=`<svg xmlns="http://www.w3.org/2000/svg" `+(o.width?`width="`+o.width+`" height="`+o.width+`" `:``)+f+` shape-rendering="crispEdges">`+u+d+`</svg>
`;return typeof a==`function`&&a(null,p),p}})),O=e((e=>{var n=t(),r=w(),i=E(),a=D();function o(e,t,i,a,o){let s=[].slice.call(arguments,1),c=s.length,l=typeof s[c-1]==`function`;if(!l&&!n())throw Error(`Callback required as last argument`);if(l){if(c<2)throw Error(`Too few arguments provided`);c===2?(o=i,i=t,t=a=void 0):c===3&&(t.getContext&&o===void 0?(o=a,a=void 0):(o=a,a=i,i=t,t=void 0))}else{if(c<1)throw Error(`Too few arguments provided`);return c===1?(i=t,t=a=void 0):c===2&&!t.getContext&&(a=i,i=t,t=void 0),new Promise(function(n,o){try{n(e(r.create(i,a),t,a))}catch(e){o(e)}})}try{let n=r.create(i,a);o(null,e(n,t,a))}catch(e){o(e)}}e.create=r.create,e.toCanvas=o.bind(null,i.render),e.toDataURL=o.bind(null,i.renderToDataURL),e.toString=o.bind(null,function(e,t,n){return a.render(e,n)})}))().toCanvas;export{O as toCanvas};
//# sourceMappingURL=qrcode.js.map
+40
View File
@@ -0,0 +1,40 @@
import{i as e,n as t,r as n,t as r}from"./assets/rolldown-runtime-BWaJ3C7D.js";
/**
* @license React
* scheduler.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var i=r((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function ee(e){if(h=!1,b(e),!m){if(n(c)!==null)m=!0,te||(te=!0,oe());else{var t=n(l);t!==null&&le(ee,t.startTime-e)}}}var te=!1,ne=-1,re=5,ie=-1;function ae(){return g?!0:!(e.unstable_now()-ie<re)}function x(){if(g=!1,te){var t=e.unstable_now();ie=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(ne),ne=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&ae());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&le(ee,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?oe():te=!1}}}var oe;if(typeof y==`function`)oe=function(){y(x)};else if(typeof MessageChannel<`u`){var se=new MessageChannel,ce=se.port2;se.port1.onmessage=x,oe=function(){ce.postMessage(null)}}else oe=function(){_(x,0)};function le(t,n){ne=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):re=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(ne),ne=-1):h=!0,le(ee,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,te||(te=!0,oe()))),r},e.unstable_shouldYield=ae,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),a=r(((e,t)=>{t.exports=i()})),o=n({Activity:()=>c,Children:()=>l,Component:()=>u,Fragment:()=>d,Profiler:()=>f,PureComponent:()=>p,StrictMode:()=>m,Suspense:()=>h,ViewTransition:()=>g,__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE:()=>_,__COMPILER_RUNTIME:()=>v,addTransitionType:()=>y,cache:()=>b,cacheSignal:()=>ee,cloneElement:()=>te,createContext:()=>ne,createElement:()=>re,createRef:()=>ie,default:()=>s,forwardRef:()=>ae,isValidElement:()=>x,lazy:()=>oe,memo:()=>se,startTransition:()=>ce,unstable_useCacheRefresh:()=>le,use:()=>ue,useActionState:()=>de,useCallback:()=>fe,useContext:()=>pe,useDebugValue:()=>me,useDeferredValue:()=>he,useEffect:()=>ge,useEffectEvent:()=>_e,useId:()=>ve,useImperativeHandle:()=>ye,useInsertionEffect:()=>be,useLayoutEffect:()=>xe,useMemo:()=>Se,useOptimistic:()=>Ce,useReducer:()=>we,useRef:()=>Te,useState:()=>Ee,useSyncExternalStore:()=>De,useTransition:()=>Oe,version:()=>S}),s,c,l,u,d,f,p,m,h,g,_,v,y,b,ee,te,ne,re,ie,ae,x,oe,se,ce,le,ue,de,fe,pe,me,he,ge,_e,ve,ye,be,xe,Se,Ce,we,Te,Ee,De,Oe,S,ke=t((()=>{s=globalThis.__SVELTIA_CMS_REACT__,c=s.Activity,l=s.Children,u=s.Component,d=s.Fragment,f=s.Profiler,p=s.PureComponent,m=s.StrictMode,h=s.Suspense,g=s.ViewTransition,_=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,v=s.__COMPILER_RUNTIME,y=s.addTransitionType,b=s.cache,ee=s.cacheSignal,te=s.cloneElement,ne=s.createContext,re=s.createElement,ie=s.createRef,ae=s.forwardRef,x=s.isValidElement,oe=s.lazLine truncated
/**
* @license React
* react-dom.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var n=(ke(),e(o));function r(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function i(){}var a={d:{f:i,r:function(){throw Error(r(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},s=Symbol.for(`react.portal`),c=Symbol.for(`react.recoverable`),l=Symbol.for(`react.optimistic_key`);function u(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:r==null?null:r===l?l:``+r,children:e,containerInfo:t,implementation:n}}var d=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}t.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,t.browser=function(e){return{$$typeof:c,_reason:e}},t.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(r(299));return u(e,t,null,n)},t.flushSync=function(e){var t=d.T,n=a.p;try{if(d.T=null,a.p=2,e)return e()}finally{d.T=t,a.p=n,a.d.f()}},t.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,a.d.C(e,t))},t.prefetchDNS=function(e){typeof e==`string`&&a.d.D(e)},t.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=f(n,t.crossOrigin),i=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?a.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:i,fetchPriority:o}):n===`script`&&a.d.X(e,{crossOrigin:r,integrity:i,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},t.preinitModule=function(e,t){if(typeof e==`string`){if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=f(t.as,t.crossOrigin);a.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}}else t??a.d.M(e)}},t.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=f(n,t.crossOrigin);a.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},t.preloadModule=function(e,t){if(typeof e==`string`){if(t){var n=f(t.as,t.crossOrigin);a.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}else a.d.m(e)}},t.requestFormReset=function(e){a.d.r(e)},t.unstable_batchedUpdates=function(e,t){return e(t)},t.useFormState=function(e,t,n){return d.H.useFormState(e,t,n)},t.useFormStatus=function(){return d.H.useHostTransitionStatus()},t.version=`19.3.1`})),Ae=r(((e,t)=>{function n(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE==`function`)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=C()})),je=r((t=>{
/**
* @license React
* react-dom-client.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var n=a(),r=(ke(),e(o)),i=Ae();function s(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function c(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function l(e){for(var t=e,n=t;n&&!n.alternate;)t=n,t.flags&4098&&(e=t.return),n=t.return;for(;t.return;)t=t.return;return t.tag===3?e:null}function u(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function d(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function f(e){if(l(e)!==e)throw Error(s(188))}function p(e){var t=e.alternate;if(!t){if(t=l(e),t===null)throw Error(s(188));return t===e?e:null}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var a=i.alternate;if(a===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return f(i),e;if(a===r)return f(i),t;a=a.sibling}throw Error(s(188))}if(n.return!==r.return)n=i,r=a;else{for(var o=!1,c=i.child;c;){if(c===n){o=!0,n=i,r=a;break}if(c===r){o=!0,r=i,n=a;break}c=c.sibling}if(!o){for(c=a.child;c;){if(c===n){o=!0,n=a,r=i;break}if(c===r){o=!0,r=a,n=i;break}c=c.sibling}if(!o)throw Error(s(189))}}if(n.alternate!==r)throw Error(s(190))}if(n.tag!==3)throw Error(s(188));return n.stateNode.current===n?e:t}function m(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=m(e),t!==null)return t;e=e.sibling}return null}function h(e,t,n,r,i,a){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&n(e,r,i,a)||(e.tag!==22||e.memoizedState===null)&&(t||e.tag!==5&&e.tag!==27)&&h(e.child,t,n,r,i,a))return!0;e=e.sibling}return!1}function g(e){for(e=e.return;e!==null;){if(e.tag===3||e.tag===5||e.tag===27)return e;e=e.return}return null}function _(e){var t=!1;for(e=e.return;e!==null&&(e.tag===4&&(t=!0),e.tag!==3&&e.tag!==5&&e.tag!==27);)e=e.return;return t}function v(e){var t=[null,null],n=g(e);return n===null||y(t,e,n.child,{foundSelf:!1}),t}function y(e,t,n,r){for(;n!==null;){if(n===t)r.foundSelf=!0;else if(n.tag===5||n.tag===27||n.tag===6){if(r.foundSelf)return e[1]=n,!0;e[0]=n}else if((n.tag!==22||n.memoizedState===null)&&y(e,t,n.child,r))return!0;n=n.sibling}return!1}function b(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(s(559))}}var ee=null,te=null;function ne(e,t,n){return e===n||e===t&&(ee=e,!0)}function re(e,t,n){return e===n?(te=e,!1):e===t&&(te!==null&&(ee=e),!0)}function ie(e){if(e===null)return null;do e=e===null?null:e.return;while(e&&e.tag!==5&&e.tag!==27&&e.tag!==3);return e||null}function ae(e,t,n){for(var r=0,i=e;i;i=n(i))r++;i=0;for(var a=t;a;a=n(a))i++;for(;0<r-i;)e=n(e),r--;for(;0<i-r;)t=n(t),i--;for(;r--;){if(e===t||t!==null&&e===t.alternate)return e;e=n(e),t=n(t)}return null}var x=Object.assign,oe=Symbol.for(`react.element`),se=Symbol.for(`react.transitional.element`),ce=Symbol.for(`react.portal`),le=Symbol.for(`react.fragment`),ue=Symbol.for(`react.strict_mode`),de=Symbol.for(`react.profiler`),fe=Symbol.for(`react.consumer`),pe=Symbol.for(`react.context`),me=Symbol.for(`react.forward_ref`),he=Symbol.for(`react.suspense`),ge=Symbol.for(`react.suspense_list`),_e=Symbol.for(`react.memo`),ve=Symbol.for(`react.lazy`),ye=Symbol.for(`react.activity`),be=Symbol.for(`react.legacy_hidden`),xe=Symbol.for(`react.memo_cache_sentinel`),Se=Symbol.for(`react.view_transition`),Ce=Symbol.for(`react.recoverable`),we=Symbol.iterator;function Te(e){return typeof e!=`object`||!e?null:(e=we&&e[we]||e[`@@iterator`],typeof e==`function`?e:null)}var Ee=Symbol.for(`react.client.reference`);function De(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===Ee?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case le:return`Fragment`;case de:return`Profiler`;case ue:return`StrictMode`;case he:return`Suspense`;case ge:return`SuspenseList`;case ye:return`Activity`;case Se:return`ViewTransition`}if(typeof e==`object`)switch(e.$$typeof){case ce:return`Portal`;case pe:return e.displayName||`Context`;case fe:return(e._context.displayName||`Context`)+`.Consumer`;case me:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case _e:return t=e.displayName||null,t===null?De(e.type)||`Memo`:t;case ve:t=e._payload,e=e._init;try{return De(e(t))}catch{}}return null}var Oe=Array.isArray,S=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,C=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,je={pending:!1,data:null,method:null,action:null},Me=[],Ne=-1;function Pe(e){return{current:e}}fLine truncated
at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
`+We+e+Ge}var qe=!1;function Je(e,t){if(!e||qe)return``;qe=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}n=!1;try{var i=Object.getOwnPropertyDescriptor(e.prototype,`props`);Object.defineProperty(e.prototype,"props",{configurable:!0,set:function(){throw Error()}}),n=!0,new e}finally{n&&(i===void 0?delete e.prototype.props:Object.defineProperty(e.prototype,"props",i))}}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
`),l=s.split(`
`);for(i=r=0;r<c.length&&!c[r].includes(`DetermineComponentFrameRoot`);)r++;for(;i<l.length&&!l[i].includes(`DetermineComponentFrameRoot`);)i++;if(r===c.length||i===l.length)for(r=c.length-1,i=l.length-1;1<=r&&0<=i&&c[r]!==l[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==l[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==l[i]){var u=`
`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{qe=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?Ke(n):``}function Ye(e,t){switch(e.tag){case 26:case 27:case 5:return Ke(e.type);case 16:return Ke(`Lazy`);case 13:return e.child!==t&&t!==null?Ke(`Suspense Fallback`):Ke(`Suspense`);case 19:return Ke(`SuspenseList`);case 0:case 15:return Je(e.type,!1);case 11:return Je(e.type.render,!1);case 1:return Je(e.type,!0);case 31:return Ke(`Activity`);case 30:return Ke(`ViewTransition`);default:return``}}function Xe(e){try{var t=``,n=null;do t+=Ye(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
Error generating stack: `+e.message+`
`+e.stack}}var Ze=Object.prototype.hasOwnProperty,Qe=n.unstable_scheduleCallback,$e=n.unstable_cancelCallback,et=n.unstable_shouldYield,tt=n.unstable_requestPaint,nt=n.unstable_now,rt=n.unstable_getCurrentPriorityLevel,it=n.unstable_ImmediatePriority,at=n.unstable_UserBlockingPriority,ot=n.unstable_NormalPriority,st=n.unstable_LowPriority,ct=n.unstable_IdlePriority,lt=n.log,ut=n.unstable_setDisableYieldValue,dt=null,ft=null;function pt(e){if(typeof lt==`function`&&ut(e),ft&&typeof ft.setStrictMode==`function`)try{ft.setStrictMode(dt,e)}catch{}}var mt=Math.clz32?Math.clz32:_t,ht=Math.log,gt=Math.LN2;function _t(e){return e>>>=0,e===0?32:31-(ht(e)/gt|0)|0}var vt=256,yt=262144,bt=4194304;function xt(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&-e;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function St(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=xt(n))):i=xt(o):i=xt(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=xt(n))):i=xt(o)):i=xt(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function Ct(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function wt(e,t){t&8&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var r=31-mt(n),i=1<<r;t|=e[r],n&=~i}return t}function Tt(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Et(){var e=bt;return bt<<=1,!(bt&62914560)&&(bt=4194304),e}function Dt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ot(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function kt(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-mt(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&At(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function At(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-mt(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function jt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-mt(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function Mt(e,t){var n=t&-t;return n=n&42?1:Nt(n),(n&(e.suspendedLanes|t))===0?n:0}function Nt(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Pt(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function Ft(){var e=C.p;return e===0?(e=window.event,e===void 0?32:Th(e.type)):e}function It(e,t){var n=C.p;try{return C.p=e,t()}finally{C.p=n}}var Lt=Math.random().toString(36).slice(2),Rt=`__reactFiber$`+Lt,zt=`__reactProps$`+Lt,Bt=`__reactContainer$`+Lt,Vt=`__reactEvents$`+Lt,Ht=`__reactListeners$`+Lt,Ut=`__reactHandles$`+Lt,Wt=`__reactResources$`+Lt,Gt=`__reactMarker$`+Lt,Kt=`__reactLoad$`+Lt;function qt(e){delete e[Rt],delete e[zt],delete e[Ht],delete e[Ut]}function Jt(e){var t;if(t=e[Rt])return t;for(var n=e.parentNode;n;){if(t=n[Bt]||n[Rt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=mm(e);e!==null;){if(n=e[Rt])return n;e=mm(e)}return t}e=n,n=e.parentNode}return null}function Yt(e){if(e=e[Rt]||e[Bt]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Xt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function Zt(e){var t=e[Wt];return t||=e[Wt]={hoistableStyles:new Map,hoistableScripts:new Map},t}function T(e){e[Gt]=!0}function Qt(e){e[Kt]=void 0}var $t=new Set,en={};function tn(e,t){nn(e,t),nn(e+`Capture`,t)}function nn(e,t){for(en[e]=t,e=0;e<t.len Line truncated
`).replace(tp,``)}function rp(e,t){return t=np(t),np(e)===t}function Q(e,t,n,r,i,a){switch(n){case`children`:if(typeof r==`string`)t===`body`||t===`textarea`&&r===``||Tn(e,r);else if(typeof r==`number`||typeof r==`bigint`)t!==`body`&&Tn(e,``+r);else return;break;case`className`:un(e,`class`,r);break;case`tabIndex`:un(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:un(e,n,r);break;case`style`:On(e,r,a);return;case`data`:if(t!==`object`){un(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)||r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=Mn(r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')`);break}if(typeof a==`function`&&(n===`formAction`?(t!==`input`&&Q(e,t,`name`,i.name,i,null),Q(e,t,`formEncType`,i.formEncType,i,null),Q(e,t,`formMethod`,i.formMethod,i,null),Q(e,t,`formTarget`,i.formTarget,i,null)):(Q(e,t,`encType`,i.encType,i,null),Q(e,t,`method`,i.method,i,null),Q(e,t,`target`,i.target,i,null))),r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=Mn(r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=Nn);return;case`onScroll`:r!=null&&Z(`scroll`,e);return;case`onScrollEnd`:r!=null&&Z(`scrollend`,e);return;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(s(61));if(n=r.__html,n!=null){if(i.children!=null)throw Error(s(60));a?.__html!==n&&(e.innerHTML=n)}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=Mn(r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`credentialless`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:Z(`beforetoggle`,e),Z(`toggle`,e),ln(e,`popover`,r);break;case`xlinkActuate`:dn(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:dn(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:dn(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:dn(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:dn(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:dn(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:dn(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:dn(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:dn(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:ln(e,`is`,r);break;case`innerText`:case`textContent`:return;default:if(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)n=An.get(n)||n,ln(e,n,r);else return}E=!0}function ip(e,t,n,r,i,a){switch(n){case`style`:On(e,r,a);return;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(s(61));if(n=r.__html,n!=null){if(i.children!=null)throw Error(s(60));a?.__html!==n&&(e.innerHTML=n)}}break;case`children`:if(typeof r==`string`)Tn(e,r);else if(typeof r==`number`||typeof r==`bigint`)Tn(e,``+r);else return;break;case`onScroll`:r!=null&&Z(`scroll`,e);return;case`onScrollEnd`:r!=null&&Z(`scrollend`,e);return;case`onClick`:r!=null&&(e.onclick=Nn);return;case`suppressContent Line truncated
//# sourceMappingURL=react-dom.js.map