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

+4
View File
@@ -0,0 +1,4 @@
function e(e,t,n={}){let r;return t&&(r=(e,n)=>{let r=new WebAssembly.Instance(t,e);return n(r),r.exports}),e({noInitialRun:!0,instantiateWasm:r,...n})}var t=(()=>{var e=import.meta.url;return(function(t={}){var n=t,r,i,a=new Promise((e,t)=>{r=e,i=t});let o=globalThis.ServiceWorkerGlobalScope!==void 0&&typeof self<`u`&&globalThis.caches&&globalThis.caches.default!==void 0,s=typeof process==`object`&&process.release&&process.release.name===`node`;(o||s)&&(globalThis.ImageData||(globalThis.ImageData=class{constructor(e,t,n){this.data=e,this.width=t,this.height=n}}),typeof self<`u`&&self.location===void 0&&(self.location={href:``}));var c=Object.assign({},n),l=`./this.program`,u=typeof window==`object`,d=typeof importScripts==`function`;typeof process==`object`&&typeof process.versions==`object`&&process.versions.node;var f=``;function p(e){return n.locateFile?n.locateFile(e,f):f+e}var m;(u||d)&&(d?f=self.location.href:typeof document<`u`&&document.currentScript&&(f=document.currentScript.src),e&&(f=e),f=f.startsWith(`blob:`)?``:f.substr(0,f.replace(/[?#].*/,``).lastIndexOf(`/`)+1),d&&(m=e=>{var t=new XMLHttpRequest;return t.open(`GET`,e,!1),t.responseType=`arraybuffer`,t.send(null),new Uint8Array(t.response)}));var h=n.print||console.log.bind(console),g=n.printErr||console.error.bind(console);Object.assign(n,c),c=null,n.arguments&&n.arguments,n.thisProgram&&(l=n.thisProgram),n.quit&&n.quit;var _;n.wasmBinary&&(_=n.wasmBinary);var v,ee=!1,y,b,x,S,C,w,te,ne;function re(){var e=v.buffer;n.HEAP8=y=new Int8Array(e),n.HEAP16=x=new Int16Array(e),n.HEAPU8=b=new Uint8Array(e),n.HEAPU16=S=new Uint16Array(e),n.HEAP32=C=new Int32Array(e),n.HEAPU32=w=new Uint32Array(e),n.HEAPF32=te=new Float32Array(e),n.HEAPF64=ne=new Float64Array(e)}var ie=[],ae=[],oe=[];function se(){if(n.preRun)for(typeof n.preRun==`function`&&(n.preRun=[n.preRun]);n.preRun.length;)ue(n.preRun.shift());we(ie)}function ce(){we(ae)}function le(){if(n.postRun)for(typeof n.postRun==`function`&&(n.postRun=[n.postRun]);n.postRun.length;)fe(n.postRun.shift());we(oe)}function ue(e){ie.unshift(e)}function de(e){ae.unshift(e)}function fe(e){oe.unshift(e)}var T=0,pe=null,E=null;function me(e){T++,n.monitorRunDependencies?.(T)}function he(e){if(T--,n.monitorRunDependencies?.(T),T==0&&(pe!==null&&(clearInterval(pe),pe=null),E)){var t=E;E=null,t()}}function ge(e){n.onAbort?.(e),e=`Aborted(`+e+`)`,g(e),ee=!0,e+=`. Build with -sASSERTIONS for more info.`;var t=new WebAssembly.RuntimeError(e);throw i(t),t}var _e=`data:application/octet-stream;base64,`,ve=e=>e.startsWith(_e),D;n.locateFile?(D=`heic_dec.wasm`,ve(D)||(D=p(D))):D=new URL(new URL(`../assets/heic_dec-ojH1Dp2m.wasm`,import.meta.url).href,``+import.meta.url).href;function ye(e){if(e==D&&_)return new Uint8Array(_);if(m)return m(e);throw`both async and sync fetching of the wasm failed`}function be(e){return!_&&(u||d)&&typeof fetch==`function`?fetch(e,{credentials:`same-origin`}).then(t=>{if(!t.ok)throw`failed to load wasm binary file at '${e}'`;return t.arrayBuffer()}).catch(()=>ye(e)):Promise.resolve().then(()=>ye(e))}function xe(e,t,n){return be(e).then(e=>WebAssembly.instantiate(e,t)).then(n,e=>{g(`failed to asynchronously prepare wasm: ${e}`),ge(e)})}function Se(e,t,n,r){return!e&&typeof WebAssembly.instantiateStreaming==`function`&&!ve(t)&&typeof fetch==`function`?fetch(t,{credentials:`same-origin`}).then(e=>WebAssembly.instantiateStreaming(e,n).then(r,function(e){return g(`wasm streaming compile failed: ${e}`),g(`falling back to ArrayBuffer instantiation`),xe(t,n,r)})):xe(t,n,r)}function Ce(){var e={a:er};function t(e,t){return Z=e.exports,v=Z.P,re(),St=Z.U,de(Z.Q),he(`wasm-instantiate`),Z}me(`wasm-instantiate`);function r(e){t(e.instance)}if(n.instantiateWasm)try{return n.instantiateWasm(e,t)}catch(e){g(`Module.instantiateWasm callback failed with error: ${e}`),i(e)}return Se(_,D,e,r).catch(i),{}}var we=e=>{for(;e.length>0;)e.shift()(n)};n.noExitRuntime;class Te{constructor(e){this.excPtr=e,this.ptr=e-24}set_type(e){w[this.ptr+4>>2]=e}get_type(){return w[this.ptr+4>>2]}set_destructor(e){w[this.ptr+8>>2]=e}get_destructor(){return w[this.ptr+8>>2]}set_caught(e){e=+!!e,y[this.ptr+12]=e}get_caught(){return y[this.ptr+12]!=0}set_rethrown(e){e=+!!e,y[this.ptr+13]=e}get_rethrown(){return y[this.ptr+13]!=0}init(e,t){this.set_adjusted_ptr(0),this.set_type(e),this.set_destructor(t)}set_adjusted_ptr(e){w[this.ptr+16>>2]=e}get_adjusted_ptr(){return w[this.ptr+16>>2]}get_exception_ptr(){if(rr(this.get_type()))return w[this.excPtr>>2];var e=this.get_adjusted_ptr();return e===0?this.excPtr:e}}var Ee=0,De=0,Oe=(e,t,n)=>{throw new Te(e).init(t,n),Ee=e,De++,Ee},ke=(e,t,n,r)=>{if(!(r>0))return 0;for(var i=n,a=n+r-1,o=0;o<e.length;++o){var s=e.charCodeAt(o);if(s>=55296&&s<=57343){var c=e.charCodeAt(++o);s=65536+((s&1023)<<10)|c&1023}if(s<=127){if(n>=a)break;t[n++]=s}else if(s<=2047){if(n+1>=a)break;t[n++]=192|s>>6,t[n++]=128|s&63}else if(s<=65535){if(n+2>=a)break;t[n++]=224|s>>12,t[n++]=128|s>>6&63,t[n++]=128|s&63}else{if(nLine truncated
`+n.replace(/^Error(:[^\n]*)?\n/,``))});return n.prototype=Object.create(e.prototype),n.prototype.constructor=n,n.prototype.toString=function(){return this.message===void 0?this.name:`${this.name}: ${this.message}`},n},Dt,Ot=e=>{var t=tr(e),n=N(t);return Q(t),n},kt=(e,t)=>{var n=[],r={};function i(e){r[e]||A[e]||(j[e]?j[e].forEach(i):(n.push(e),r[e]=!0))}throw t.forEach(i),new Dt(`${e}: `+n.map(Ot).join([`, `]))},At=(e,t,n,r,i,a,o,s,c,l,u,d,f)=>{u=N(u),a=K(i,a),s&&=K(o,s),l&&=K(c,l),f=K(d,f);var p=pt(u);ut(p,function(){kt(`Cannot construct ${u} due to unbound types`,[r])}),ze([e,t,n],r?[r]:[],t=>{t=t[0];var n,i;r?(n=t.registeredClass,i=n.instancePrototype):i=U.prototype;var o=W(u,function(...e){if(Object.getPrototypeOf(this)!==c)throw new P(`Use 'new' to construct `+u);if(d.constructor_body===void 0)throw new P(u+` has no accessible constructor`);var t=d.constructor_body[e.length];if(t===void 0)throw new P(`Tried to invoke ctor of ${u} with invalid number of parameters (${e.length}) - expected (${Object.keys(d.constructor_body).toString()}) parameters instead!`);return t.apply(this,e)}),c=Object.create(i,{constructor:{value:o}});o.prototype=c;var d=new mt(u,o,c,f,n,a,s,l);d.baseClass&&(d.baseClass.__derivedClasses??=[],d.baseClass.__derivedClasses.push(d));var m=new G(u,d,!0,!1,!1),h=new G(u+`*`,d,!1,!1,!1),g=new G(u+` const*`,d,!1,!0,!1);return $e[e]={pointerType:h,constPointerType:g},bt(p,o),[m,h,g]})},jt=[],q=[],Mt=e=>{e>9&&--q[e+1]===0&&(q[e]=void 0,jt.push(e))},Nt=()=>q.length/2-5-jt.length,Pt=()=>{q.push(0,1,void 0,1,null,1,!0,1,!1,1),n.count_emval_handles=Nt},J={toValue:e=>(e||F(`Cannot use deleted val. handle = `+e),q[e]),toHandle:e=>{switch(e){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:{let t=jt.pop()||q.length;return q[t]=e,q[t+1]=1,t}}}},Ft={name:`emscripten::val`,fromWireType:e=>{var t=J.toValue(e);return Mt(e),t},toWireType:(e,t)=>J.toHandle(t),argPackAdvance:L,readValueFromPointer:O,destructorFunction:null},It=e=>I(e,Ft),Lt=(e,t,n)=>{switch(t){case 1:return n?function(e){return this.fromWireType(y[e])}:function(e){return this.fromWireType(b[e])};case 2:return n?function(e){return this.fromWireType(x[e>>1])}:function(e){return this.fromWireType(S[e>>1])};case 4:return n?function(e){return this.fromWireType(C[e>>2])}:function(e){return this.fromWireType(w[e>>2])};default:throw TypeError(`invalid integer width (${t}): ${e}`)}},Rt=(e,t,n,r)=>{t=N(t);function i(){}i.values={},I(e,{name:t,constructor:i,fromWireType:function(e){return this.constructor.values[e]},toWireType:(e,t)=>t.value,argPackAdvance:L,readValueFromPointer:Lt(t,n,r),destructorFunction:null}),ut(t,i)},zt=(e,t)=>{var n=A[e];return n===void 0&&F(`${t} has unknown type ${Ot(e)}`),n},Bt=(e,t,n)=>{var r=zt(e,`enum`);t=N(t);var i=r.constructor,a=Object.create(r.constructor.prototype,{value:{value:n},constructor:{value:W(`${r.name}_${t}`,function(){})}});i.values[n]=a,i[t]=a},Vt=e=>{if(e===null)return`null`;var t=typeof e;return t===`object`||t===`array`||t===`function`?e.toString():``+e},Ht=(e,t)=>{switch(t){case 4:return function(e){return this.fromWireType(te[e>>2])};case 8:return function(e){return this.fromWireType(ne[e>>3])};default:throw TypeError(`invalid float width (${t}): ${e}`)}},Ut=(e,t,n)=>{t=N(t),I(e,{name:t,fromWireType:e=>e,toWireType:(e,t)=>t,argPackAdvance:L,readValueFromPointer:Ht(t,n),destructorFunction:null})};function Wt(e){for(var t=1;t<e.length;++t)if(e[t]!==null&&e[t].destructorFunction===void 0)return!0;return!1}function Gt(e,t,n,r,i,a){var o=t.length;o<2&&F(`argTypes array size mismatch! Must at least get return value and 'this' types!`);var s=t[1]!==null&&n!==null,c=Wt(t),l=t[0].name!==`void`,u=o-2,d=Array(u),f=[],p=[];return W(e,function(...n){n.length!==u&&F(`function ${e} called with ${n.length} arguments, expected ${u}`),p.length=0;var a;f.length=s?2:1,f[0]=i,s&&(a=t[1].toWireType(p,this),f[1]=a);for(var o=0;o<u;++o)d[o]=t[o+2].toWireType(p,n[o]),f.push(d[o]);var m=r(...f);function h(e){if(c)Le(p);else for(var n=s?1:2;n<t.length;n++){var r=n===1?a:d[n-2];t[n].destructorFunction!==null&&t[n].destructorFunction(r)}if(l)return t[0].fromWireType(e)}return h(m)})}var Kt=(e,t)=>{for(var n=[],r=0;r<e;r++)n.push(w[t+r*4>>2]);return n},qt=e=>{e=e.trim();let t=e.indexOf(`(`);return t===-1?e:e.substr(0,t)},Jt=(e,t,n,r,i,a,o)=>{var s=Kt(t,n);e=N(e),e=qt(e),i=K(r,i),ut(e,function(){kt(`Cannot call ${e} due to unbound types`,s)},t-1),ze([],s,n=>{var r=[n[0],null].concat(n.slice(1));return bt(e,Gt(e,r,null,i,a,o),t-1),[]})},Yt=(e,t,n)=>{switch(t){case 1:return n?e=>y[e]:e=>b[e];case 2:return n?e=>x[e>>1]:e=>S[e>>1];case 4:return n?e=>C[e>>2]:e=>w[e>>2];default:throw TypeError(`invalid integer width (${t}): ${e}`)}},Xt=(e,t,n,r,i)=>{t=N(t),i===-1&&(i=4294967295);var a=e=>e;if(r===0){var o=32-8*n;a=e=>e<<o>>>o}var s=t.includes(`unsigned`)?function(e,t){return this.name,t>>>0}:function(e,t){return this.name,t};I(e,{name:t,fromWireType:a,toWireType:s,argPackAdvance:L,readValueFromPointer: Line truncated
`,"%p":e=>e.tm_hour>=0&&e.tm_hour<12?`AM`:`PM`,"%S":e=>f(e.tm_sec,2),"%t":()=>` `,"%u":e=>e.tm_wday||7,"%U":e=>{var t=e.tm_yday+7-e.tm_wday;return f(Math.floor(t/7),2)},"%V":e=>{var t=Math.floor((e.tm_yday+7-(e.tm_wday+6)%7)/7);if((e.tm_wday+371-e.tm_yday-2)%7<=2&&t++,!t){t=52;var n=(e.tm_wday+7-e.tm_yday-1)%7;(n==4||n==5&&X(e.tm_year%400-1))&&t++}else if(t==53){var r=(e.tm_wday+371-e.tm_yday)%7;r==4||r==3&&X(e.tm_year)||(t=1)}return f(t,2)},"%w":e=>e.tm_wday,"%W":e=>{var t=e.tm_yday+7-(e.tm_wday+6)%7;return f(Math.floor(t/7),2)},"%y":e=>(e.tm_year+1900).toString().substring(2),"%Y":e=>e.tm_year+1900,"%z":e=>{var t=e.tm_gmtoff,n=t>=0;return t=Math.abs(t)/60,t=t/60*100+t%60,(n?`+`:`-`)+String(`0000`+t).slice(-4)},"%Z":e=>e.tm_zone,"%%":()=>`%`};for(var c in o=o.replace(/%%/g,`\0\0`),g)o.includes(c)&&(o=o.replace(new RegExp(c,`g`),g[c](a)));o=o.replace(/\0\0/g,`%`);var _=Xn(o,!1);return _.length>t?0:(Zn(_,e),_.length-1)},$n=(e,t,n,r,i)=>Qn(e,t,n,r);Re=n.InternalError=class extends Error{constructor(e){super(e),this.name=`InternalError`}},He(),P=n.BindingError=class extends Error{constructor(e){super(e),this.name=`BindingError`}},ct(),it(),yt(),Dt=n.UnboundTypeError=Et(Error,`UnboundTypeError`),Pt();var er={n:Oe,H:je,J:Pe,F:Fe,M:Be,B:Ve,y:Ge,q:At,x:It,i:Rt,a:Bt,w:Ut,e:Jt,h:Xt,d:Zt,r:$t,m:sn,N:cn,p:ln,A:un,l:fn,u:hn,b:Mt,O:_n,j:Sn,t:Cn,s:wn,g:Tn,k:En,v:Dn,f:On,c:kn,D:An,E:Nn,K:Ln,L:Rn,o:zn,I:Bn,z:Hn,G:Gn,C:$n},Z=Ce(),tr=e=>(tr=Z.R)(e),nr=e=>(nr=Z.S)(e),Q=e=>(Q=Z.T)(e),rr=e=>(rr=Z.V)(e),ir=n.dynCall_ji=(e,t)=>(ir=n.dynCall_ji=Z.W)(e,t),ar=n.dynCall_iij=(e,t,r,i)=>(ar=n.dynCall_iij=Z.X)(e,t,r,i),or=n.dynCall_jijj=(e,t,r,i,a,o)=>(or=n.dynCall_jijj=Z.Y)(e,t,r,i,a,o),sr=n.dynCall_vijj=(e,t,r,i,a,o)=>(sr=n.dynCall_vijj=Z.Z)(e,t,r,i,a,o),cr=n.dynCall_jiji=(e,t,r,i,a)=>(cr=n.dynCall_jiji=Z._)(e,t,r,i,a),lr=n.dynCall_viijii=(e,t,r,i,a,o,s)=>(lr=n.dynCall_viijii=Z.$)(e,t,r,i,a,o,s),ur=n.dynCall_iiiiij=(e,t,r,i,a,o,s)=>(ur=n.dynCall_iiiiij=Z.aa)(e,t,r,i,a,o,s),dr=n.dynCall_iiiiijj=(e,t,r,i,a,o,s,c,l)=>(dr=n.dynCall_iiiiijj=Z.ba)(e,t,r,i,a,o,s,c,l),fr=n.dynCall_iiiiiijj=(e,t,r,i,a,o,s,c,l,u)=>(fr=n.dynCall_iiiiiijj=Z.ca)(e,t,r,i,a,o,s,c,l,u),$;E=function e(){$||pr(),$||(E=e)};function pr(){if(T>0||(se(),T>0))return;function e(){$||($=!0,n.calledRun=!0,ee||(ce(),r(n),n.onRuntimeInitialized&&n.onRuntimeInitialized(),le()))}n.setStatus?(n.setStatus(`Running...`),setTimeout(function(){setTimeout(function(){n.setStatus(``)},1),e()},1)):e()}if(n.preInit)for(typeof n.preInit==`function`&&(n.preInit=[n.preInit]);n.preInit.length>0;)n.preInit.pop()();return pr(),a})})(),n;async function r(r,i){let a=r,o=i;arguments.length===1&&!(r instanceof WebAssembly.Module)&&(a=void 0,o=r),n=e(t,a,o)}async function i(e){n||r();let t=(await n).decode(e);if(!t)throw Error(`Decoding error`);return t}export{i as decode};
//# sourceMappingURL=heic-B983Ak6s.js.map