芝麻web文件管理V1.00
编辑当前文件:/home/freeclou/optimyar/wp-content/plugins/ithemes-security-pro/dist/3627.min.js
(globalThis.itsecWebpackJsonP=globalThis.itsecWebpackJsonP||[]).push([[3627],{7665:function(e){var t;t=()=>(()=>{"use strict";var e=[,(e,t,n)=>{n.r(t),n.d(t,{default:()=>a});var r,i=(r="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0,function(e={}){var t,n,i=e;function a(){function e(e){const a=r;n=t=0,r=new Map,a.forEach((t=>{try{t(e)}catch(e){console.error(e)}})),this.ob(),i&&i.Tb()}let t=0,n=0,r=new Map,i=null,a=null;this.requestAnimationFrame=function(i){t||(t=requestAnimationFrame(e.bind(this)));const a=++n;return r.set(a,i),a},this.cancelAnimationFrame=function(e){r.delete(e),t&&0==r.size&&(cancelAnimationFrame(t),t=0)},this.Rb=function(e){a&&(document.body.remove(a),a=null),e||(a=document.createElement("div"),a.style.backgroundColor="black",a.style.position="fixed",a.style.right=0,a.style.top=0,a.style.color="white",a.style.padding="4px",a.innerHTML="RIVE FPS",e=function(e){a.innerHTML="RIVE FPS "+e.toFixed(1)},document.body.appendChild(a)),i=new function(){let t=0,n=0;this.Tb=function(){var r=performance.now();n?(++t,1e3<(r-=n)&&(e(1e3*t/r),t=n=0)):(n=r,t=0)}}},this.Ob=function(){a&&(document.body.remove(a),a=null),i=null},this.ob=function(){}}function o(e){console.assert(!0);const t=new Map;let n=-1/0;this.push=function(r){return r=r+((1<
>e,t.has(r)&&clearTimeout(t.get(r)),t.set(r,setTimeout((function(){t.delete(r),0==t.length?n=-1/0:r==n&&(n=Math.max(...t.keys()),console.assert(n
{t=e,n=r}));const s=i.onRuntimeInitialized;i.onRuntimeInitialized=function(){s&&s();let e=i.decodeAudio;i.decodeAudio=function(t,n){n(t=e(t))};let t=i.decodeFont;i.decodeFont=function(e,n){n(e=t(e))};const n=i.FileAssetLoader;i.ptrToAsset=e=>{let t=i.ptrToFileAsset(e);return t.isImage?i.ptrToImageAsset(e):t.isFont?i.ptrToFontAsset(e):t.isAudio?i.ptrToAudioAsset(e):t},i.CustomFileAssetLoader=n.extend("CustomFileAssetLoader",{__construct:function({loadContents:e}){this.__parent.__construct.call(this),this.Gb=e},loadContents:function(e,t){return e=i.ptrToAsset(e),this.Gb(e,t)}}),i.CDNFileAssetLoader=n.extend("CDNFileAssetLoader",{__construct:function(){this.__parent.__construct.call(this)},loadContents:function(e){let t=i.ptrToAsset(e);return""!==(e=t.cdnUuid)&&(n=t.cdnBaseUrl+"/"+e,(r=new XMLHttpRequest).responseType="arraybuffer",r.onreadystatechange=function(){4==r.readyState&&200==r.status&&(e=>{t.decode(new Uint8Array(e.response))})(r)},r.open("GET",n,!0),r.send(null),!0);var n,r}}),i.FallbackFileAssetLoader=n.extend("FallbackFileAssetLoader",{__construct:function(){this.__parent.__construct.call(this),this.kb=[]},addLoader:function(e){this.kb.push(e)},loadContents:function(e,t){for(let n of this.kb)if(n.loadContents(e,t))return!0;return!1}});let r=i.computeAlignment;i.computeAlignment=function(e,t,n,i,a=1){return r.call(this,e,t,n,i,a)}};const u="createConicGradient createImageData createLinearGradient createPattern createRadialGradient getContextAttributes getImageData getLineDash getTransform isContextLost isPointInPath isPointInStroke measureText".split(" "),c=new function(){function e(){if(!t){var e=document.createElement("canvas"),o={alpha:1,depth:0,stencil:0,antialias:0,premultipliedAlpha:1,preserveDrawingBuffer:0,powerPreference:"high-performance",failIfMajorPerformanceCaveat:0,enableExtensionsByDefault:1,explicitSwapControl:1,renderViaOffscreenBackBuffer:1};let s;if(/iPhone|iPad|iPod/i.test(navigator.userAgent)){if(s=e.getContext("webgl",o),n=1,!s)return console.log("No WebGL support. Image mesh will not be drawn."),!1}else if(s=e.getContext("webgl2",o))n=2;else{if(!(s=e.getContext("webgl",o)))return console.log("No WebGL support. Image mesh will not be drawn."),!1;n=1}function u(e,t,n){if(t=s.createShader(t),s.shaderSource(t,n),s.compileShader(t),0<((n=s.getShaderInfoLog(t))||"").length)throw n;s.attachShader(e,t)}if(s=new Proxy(s,{get:(e,t)=>e.isContextLost()?(c||(console.error("Cannot render the mesh because the GL Context was lost. Tried to invoke ",t),c=!0),"function"==typeof e[t]?function(){}:void 0):"function"==typeof e[t]?function(...n){return e[t].apply(e,n)}:e[t],set(e,t,n){if(!e.isContextLost())return e[t]=n,!0;c||(console.error("Cannot render the mesh because the GL Context was lost. Tried to set property "+t),c=!0)}}),r=Math.min(s.getParameter(s.MAX_RENDERBUFFER_SIZE),s.getParameter(s.MAX_TEXTURE_SIZE)),u(e=s.createProgram(),s.VERTEX_SHADER,"attribute vec2 vertex;\n attribute vec2 uv;\n uniform vec4 mat;\n uniform vec2 translate;\n varying vec2 st;\n void main() {\n st = uv;\n gl_Position = vec4(mat2(mat) * vertex + translate, 0, 1);\n }"),u(e,s.FRAGMENT_SHADER,"precision highp float;\n uniform sampler2D image;\n varying vec2 st;\n void main() {\n gl_FragColor = texture2D(image, st);\n }"),s.bindAttribLocation(e,0,"vertex"),s.bindAttribLocation(e,1,"uv"),s.linkProgram(e),0<((o=s.getProgramInfoLog(e))||"").trim().length)throw o;i=s.getUniformLocation(e,"mat"),a=s.getUniformLocation(e,"translate"),s.useProgram(e),s.bindBuffer(s.ARRAY_BUFFER,s.createBuffer()),s.enableVertexAttribArray(0),s.enableVertexAttribArray(1),s.bindBuffer(s.ELEMENT_ARRAY_BUFFER,s.createBuffer()),s.uniform1i(s.getUniformLocation(e,"image"),0),s.pixelStorei(s.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0),t=s}return!0}let t=null,n=0,r=0,i=null,a=null,s=0,u=0,c=!1;e(),this.hc=function(){return e(),r},this.Mb=function(e){t.deleteTexture&&t.deleteTexture(e)},this.Lb=function(r){if(!e())return null;const i=t.createTexture();return i?(t.bindTexture(t.TEXTURE_2D,i),t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,r),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.LINEAR),2==n?(t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.LINEAR_MIPMAP_LINEAR),t.generateMipmap(t.TEXTURE_2D)):t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.LINEAR),i):null};const l=new o(8),h=new o(8),f=new o(10),d=new o(10);this.Qb=function(n,r,o,c,p){if(e()){var v=l.push(n),m=h.push(r);if(t.canvas){for(var g of(t.canvas.width==v&&t.canvas.height==m||(t.canvas.width=v,t.canvas.height=m),t.viewport(0,m-r,n,r),t.disable(t.SCISSOR_TEST),t.clearColor(0,0,0,0),t.clear(t.COLOR_BUFFER_BIT),t.enable(t.SCISSOR_TEST),o.sort(((e,t)=>t.wb-e.wb)),v=f.push(c),s!=v&&(t.bufferData(t.ARRAY_BUFFER,8*v,t.DYNAMIC_DRAW),s=v),v=0,o))t.bufferSubData(t.ARRAY_BUFFER,v,g.Ta),v+=4*g.Ta.length;for(var b of(console.assert(v==4*c),o))t.bufferSubData(t.ARRAY_BUFFER,v,b.Db),v+=4*b.Db.length;for(var y of(console.assert(v==8*c),v=d.push(p),u!=v&&(t.bufferData(t.ELEMENT_ARRAY_BUFFER,2*v,t.DYNAMIC_DRAW),u=v),g=0,o))t.bufferSubData(t.ELEMENT_ARRAY_BUFFER,g,y.indices),g+=2*y.indices.length;console.assert(g==2*p),y=0,b=!0,v=g=0;for(const e of o){e.image.Ka!=y&&(t.bindTexture(t.TEXTURE_2D,e.image.Ja||null),y=e.image.Ka),e.mc?(t.scissor(e.Ya,m-e.Za-e.jb,e.Ac,e.jb),b=!0):b&&(t.scissor(0,m-r,n,r),b=!1),o=2/n;const s=-2/r;t.uniform4f(i,e.ha[0]*o*e.Ba,e.ha[1]*s*e.Ca,e.ha[2]*o*e.Ba,e.ha[3]*s*e.Ca),t.uniform2f(a,e.ha[4]*o*e.Ba+o*(e.Ya-e.ic*e.Ba)-1,e.ha[5]*s*e.Ca+s*(e.Za-e.jc*e.Ca)+1),t.vertexAttribPointer(0,2,t.FLOAT,!1,0,v),t.vertexAttribPointer(1,2,t.FLOAT,!1,0,v+4*c),t.drawElements(t.TRIANGLES,e.indices.length,t.UNSIGNED_SHORT,g),v+=4*e.Ta.length,g+=2*e.indices.length}console.assert(v==4*c),console.assert(g==2*p)}}},this.canvas=function(){return e()&&t.canvas}},l=i.onRuntimeInitialized;i.onRuntimeInitialized=function(){function e(e){switch(e){case p.srcOver:return"source-over";case p.screen:return"screen";case p.overlay:return"overlay";case p.darken:return"darken";case p.lighten:return"lighten";case p.colorDodge:return"color-dodge";case p.colorBurn:return"color-burn";case p.hardLight:return"hard-light";case p.softLight:return"soft-light";case p.difference:return"difference";case p.exclusion:return"exclusion";case p.multiply:return"multiply";case p.hue:return"hue";case p.saturation:return"saturation";case p.color:return"color";case p.luminosity:return"luminosity"}}function t(e){return"rgba("+((16711680&e)>>>16)+","+((65280&e)>>>8)+","+((255&e)>>>0)+","+((4278190080&e)>>>24)/255+")"}function n(){0
e)throw"restore() called without matching save().";this.S.splice(e),this.H.push(this.C.restore.bind(this.C))},transform:function(e,t,n,r,i,a){const o=this.S,s=o.length-6;o.splice(s,6,o[s]*e+o[s+2]*t,o[s+1]*e+o[s+3]*t,o[s]*n+o[s+2]*r,o[s+1]*n+o[s+3]*r,o[s]*i+o[s+2]*a+o[s+4],o[s+1]*i+o[s+3]*a+o[s+5]),this.H.push(this.C.transform.bind(this.C,e,t,n,r,i,a))},rotate:function(e){const t=Math.sin(e);e=Math.cos(e),this.transform(e,t,-t,e,0,0)},_drawPath:function(e,t){this.H.push(t.draw.bind(t,this.C,e.T,e.Va===g?"evenodd":"nonzero"))},_drawRiveImage:function(t,n,r){var i=t.Fb;if(i){var a=this.C,o=e(n);this.H.push((function(){a.globalCompositeOperation=o,a.globalAlpha=r,a.drawImage(i,0,0),a.globalAlpha=1}))}},_getMatrix:function(e){const t=this.S,n=t.length-6;for(let r=0;6>r;++r)e[r]=t[n+r]},_drawImageMesh:function(t,r,a,o,s,u,l,h,f,d){var p=this.C.canvas.width,v=this.C.canvas.height;const m=f-l,g=d-h;l=Math.max(l,0),h=Math.max(h,0),f=Math.min(f,p),d=Math.min(d,v);const b=f-l,y=d-h;if(console.assert(b<=Math.min(m,p)),console.assert(y<=Math.min(g,v)),!(0>=b||0>=y)){f=b
v&&(d*=v/w,w=v),_>v&&(p*=v/_,_=v),C||(C=new i.DynamicRectanizer(v),C.reset(512,512)),0>(v=C.addRect(w,_))&&(n(),A.add(this),v=C.addRect(w,_),console.assert(0<=v));var P=65535&v,L=v>>16;R.push({ha:this.S.slice(this.S.length-6),image:t,Ya:P,Za:L,ic:l,jc:h,Ac:w,jb:_,Ba:d,Ca:p,Ta:new Float32Array(o),Db:new Float32Array(s),indices:new Uint16Array(u),mc:f,wb:t.Ka<<1|(f?1:0)}),E+=o.length,T+=u.length;var M=this.C,S=e(r);this.H.push((function(){M.save(),M.resetTransform(),M.globalCompositeOperation=S,M.globalAlpha=a;const e=c.canvas();e&&M.drawImage(e,P,L,w,_,l,h,b,y),M.restore()}))}},_clipPath:function(e){this.H.push(this.C.clip.bind(this.C,e.T,e.Va===g?"evenodd":"nonzero"))},clear:function(){A.add(this),this.H.push(this.C.clearRect.bind(this.C,0,0,this.Ua.width,this.Ua.height))},flush:function(){},translate:function(e,t){this.transform(1,0,0,1,e,t)}});i.makeRenderer=function(e){const t=new P(e),n=t.C;return new Proxy(t,{get(e,r){if("function"==typeof e[r])return function(...t){return e[r].apply(e,t)};if("function"==typeof n[r]){if(-1
{n[r]=i})),!0}})},i.decodeImage=function(e,t){new y({la:t}).decode(e)},i.renderFactory={makeRenderPaint:function(){return new _},makeRenderPath:function(){return new w},makeRenderImage:function(){let e=M;return new y({xa:()=>{e.total++},la:()=>{if(e.loaded++,e.loaded===e.total){const t=e.ready;t&&(t(),e.ready=null)}}})}};let L=i.load,M=null;i.load=function(e,t,n=!0){const r=new i.FallbackFileAssetLoader;return void 0!==t&&r.addLoader(t),n&&(t=new i.CDNFileAssetLoader,r.addLoader(t)),new Promise((function(t){let n=null;M={total:0,loaded:0,ready:function(){t(n)}},n=L(e,r),0==M.total&&t(n)}))};let S=i.RendererWrapper.prototype.align;i.RendererWrapper.prototype.align=function(e,t,n,r,i=1){S.call(this,e,t,n,r,i)},r=new a,i.requestAnimationFrame=r.requestAnimationFrame.bind(r),i.cancelAnimationFrame=r.cancelAnimationFrame.bind(r),i.enableFPSCounter=r.Rb.bind(r),i.disableFPSCounter=r.Ob,r.ob=n,i.resolveAnimationFrame=n,i.cleanup=function(){C&&C.delete()}};var h,f,d=Object.assign({},i),p="./this.program",v="object"==typeof window,m="function"==typeof importScripts,g="";(v||m)&&(m?g=self.location.href:"undefined"!=typeof document&&document.currentScript&&(g=document.currentScript.src),r&&(g=r),g=0!==g.indexOf("blob:")?g.substr(0,g.replace(/[?#].*/,"").lastIndexOf("/")+1):"",m&&(f=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}),h=(e,t,n)=>{var r=new XMLHttpRequest;r.open("GET",e,!0),r.responseType="arraybuffer",r.onload=()=>{200==r.status||0==r.status&&r.response?t(r.response):n()},r.onerror=n,r.send(null)});var b,y=i.print||console.log.bind(console),w=i.printErr||console.error.bind(console);Object.assign(i,d),d=null,i.thisProgram&&(p=i.thisProgram),i.wasmBinary&&(b=i.wasmBinary),i.noExitRuntime,"object"!=typeof WebAssembly&&z("no native wasm support detected");var _,A,C,R,E,T,P,L,M,S,x=!1;function O(){var e=_.buffer;i.HEAP8=C=new Int8Array(e),i.HEAP16=E=new Int16Array(e),i.HEAP32=P=new Int32Array(e),i.HEAPU8=R=new Uint8Array(e),i.HEAPU16=T=new Uint16Array(e),i.HEAPU32=L=new Uint32Array(e),i.HEAPF32=M=new Float32Array(e),i.HEAPF64=S=new Float64Array(e)}var F,j=[],k=[],I=[];function D(){var e=i.preRun.shift();j.unshift(e)}var U,B=0,W=null,N=null;function z(e){throw i.onAbort&&i.onAbort(e),w(e="Aborted("+e+")"),x=!0,e=new WebAssembly.RuntimeError(e+". Build with -sASSERTIONS for more info."),n(e),e}function $(e){return e.startsWith("data:application/octet-stream;base64,")}if(!$(U="canvas_advanced.wasm")){var H=U;U=i.locateFile?i.locateFile(H,g):g+H}function Y(e){if(e==U&&b)return new Uint8Array(b);if(f)return f(e);throw"both async and sync fetching of the wasm failed"}function V(e,t,n){return function(e){if(!b&&(v||m)){if("function"==typeof fetch&&!e.startsWith("file://"))return fetch(e,{credentials:"same-origin"}).then((t=>{if(!t.ok)throw"failed to load wasm binary file at '"+e+"'";return t.arrayBuffer()})).catch((()=>Y(e)));if(h)return new Promise(((t,n)=>{h(e,(e=>t(new Uint8Array(e))),n)}))}return Promise.resolve().then((()=>Y(e)))}(e).then((e=>WebAssembly.instantiate(e,t))).then((e=>e)).then(n,(e=>{w("failed to asynchronously prepare wasm: "+e),z(e)}))}var X,G,q={443532:(e,t,n,r,i)=>{if("undefined"==typeof window||void 0===(window.AudioContext||window.webkitAudioContext))return 0;if(void 0===window.h){window.h={Aa:0},window.h.I={},window.h.I.ya=e,window.h.I.capture=t,window.h.I.La=n,window.h.ga={},window.h.ga.stopped=r,window.h.ga.xb=i;let a=window.h;a.D=[],a.yc=function(e){for(var t=0;t
{Sn(t.pb)}),(e=>{console.error("Failed to resume audiocontext",e)}))}a.Bb.map((function(e){document.removeEventListener(e,a.unlock,!0)}))},a.Bb.map((function(e){document.addEventListener(e,a.unlock,!0)}))}return window.h.Aa+=1,1},445710:()=>{void 0!==window.h&&(--window.h.Aa,0===window.h.Aa&&delete window.h)},445874:()=>void 0!==navigator.mediaDevices&&void 0!==navigator.mediaDevices.getUserMedia,445978:()=>{try{var e=new(window.AudioContext||window.webkitAudioContext),t=e.sampleRate;return e.close(),t}catch(e){return 0}},446149:(e,t,n,r,i,a)=>{if(void 0===window.h)return-1;var o={},s={};return e==window.h.I.ya&&0!=n&&(s.sampleRate=n),o.J=new(window.AudioContext||window.webkitAudioContext)(s),o.J.suspend(),o.state=window.h.ga.stopped,n=0,e!=window.h.I.ya&&(n=t),o.Z=o.J.createScriptProcessor(r,n,t),o.Z.onaudioprocess=function(n){if(null!=o.sa&&0!=o.sa.length||(o.sa=new Float32Array(M.buffer,i,r*t)),e==window.h.I.capture||e==window.h.I.La){for(var s=0;s
window.h.ra(e).J.sampleRate,449099:e=>{void 0!==(e=window.h.ra(e)).Z&&(e.Z.onaudioprocess=function(){},e.Z.disconnect(),e.Z=void 0),void 0!==e.Da&&(e.Da.disconnect(),e.Da=void 0),e.J.close(),e.J=void 0,e.pb=void 0},449499:e=>{window.h.Cb(e)},449549:e=>{(e=window.h.ra(e)).J.resume(),e.state=window.h.ga.xb},449688:e=>{(e=window.h.ra(e)).J.suspend(),e.state=window.h.ga.stopped}},J=e=>{for(;0
{for(var n=0,r=e.length-1;0<=r;r--){var i=e[r];"."===i?e.splice(r,1):".."===i?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n;n--)e.unshift("..");return e},Z=e=>{var t="/"===e.charAt(0),n="/"===e.substr(-1);return(e=K(e.split("/").filter((e=>!!e)),!t).join("/"))||t||(e="."),e&&n&&(e+="/"),(t?"/":"")+e},Q=e=>{var t=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(e).slice(1);return e=t[0],t=t[1],e||t?(t&&(t=t.substr(0,t.length-1)),e+t):"."},ee=e=>{if("/"===e)return"/";var t=(e=(e=Z(e)).replace(/\/$/,"")).lastIndexOf("/");return-1===t?e:e.substr(t+1)},te=e=>(te=(()=>{if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues)return e=>crypto.getRandomValues(e);z("initRandomDevice")})())(e);function ne(){for(var e="",t=!1,n=arguments.length-1;-1<=n&&!t;n--){if("string"!=typeof(t=0<=n?arguments[n]:"/"))throw new TypeError("Arguments to path.resolve must be strings");if(!t)return"";e=t+"/"+e,t="/"===t.charAt(0)}return(t?"/":"")+(e=K(e.split("/").filter((e=>!!e)),!t).join("/"))||"."}var re="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0,ie=(e,t,n)=>{var r=t+n;for(n=t;e[n]&&!(n>=r);)++n;if(16
(i=224==(240&i)?(15&i)<<12|a<<6|o:(7&i)<<18|a<<12|o<<6|63&e[t++])?r+=String.fromCharCode(i):(i-=65536,r+=String.fromCharCode(55296|i>>10,56320|1023&i))}}else r+=String.fromCharCode(i)}return r},ae=[],oe=e=>{for(var t=0,n=0;n
=r?t++:2047>=r?t+=2:55296<=r&&57343>=r?(t+=4,++n):t+=3}return t},se=(e,t,n,r)=>{if(!(0
=o&&(o=65536+((1023&o)<<10)|1023&e.charCodeAt(++a)),127>=o){if(n>=r)break;t[n++]=o}else{if(2047>=o){if(n+1>=r)break;t[n++]=192|o>>6}else{if(65535>=o){if(n+2>=r)break;t[n++]=224|o>>12}else{if(n+3>=r)break;t[n++]=240|o>>18,t[n++]=128|o>>12&63}t[n++]=128|o>>6&63}t[n++]=128|63&o}}return t[n]=0,n-i};function ue(e,t){var n=Array(oe(e)+1);return e=se(e,n,0,n.length),t&&(n.length=e),n}var ce=[];function le(e,t){ce[e]={input:[],F:[],V:t},Be(e,he)}var he={open:function(e){var t=ce[e.node.za];if(!t)throw new Te(43);e.s=t,e.seekable=!1},close:function(e){e.s.V.qa(e.s)},qa:function(e){e.s.V.qa(e.s)},read:function(e,t,n,r){if(!e.s||!e.s.V.ib)throw new Te(60);for(var i=0,a=0;a
=t||(t=Math.max(t,n*(1048576>n?2:1.125)>>>0),0!=n&&(t=Math.max(t,256)),n=e.j,e.j=new Uint8Array(t),0
ye.createNode(null,"/",16895,0),createNode(e,t,n,r){if(24576==(61440&n)||4096==(61440&n))throw new Te(63);return ye.O||(ye.O={dir:{node:{Y:ye.l.Y,P:ye.l.P,ka:ye.l.ka,va:ye.l.va,ub:ye.l.ub,Ab:ye.l.Ab,vb:ye.l.vb,sb:ye.l.sb,Ea:ye.l.Ea},stream:{ba:ye.m.ba}},file:{node:{Y:ye.l.Y,P:ye.l.P},stream:{ba:ye.m.ba,read:ye.m.read,write:ye.m.write,pa:ye.m.pa,lb:ye.m.lb,nb:ye.m.nb}},link:{node:{Y:ye.l.Y,P:ye.l.P,ma:ye.l.ma},stream:{}},$a:{node:{Y:ye.l.Y,P:ye.l.P},stream:Ue}}),16384==(61440&(n=Oe(e,t,n,r)).mode)?(n.l=ye.O.dir.node,n.m=ye.O.dir.stream,n.j={}):32768==(61440&n.mode)?(n.l=ye.O.file.node,n.m=ye.O.file.stream,n.v=0,n.j=null):40960==(61440&n.mode)?(n.l=ye.O.link.node,n.m=ye.O.link.stream):8192==(61440&n.mode)&&(n.l=ye.O.$a.node,n.m=ye.O.$a.stream),n.timestamp=Date.now(),e&&(e.j[t]=n,e.timestamp=n.timestamp),n},Kc:e=>e.j?e.j.subarray?e.j.subarray(0,e.v):new Uint8Array(e.j):new Uint8Array(0),l:{Y(e){var t={};return t.Jc=8192==(61440&e.mode)?e.id:1,t.Mc=e.id,t.mode=e.mode,t.Oc=1,t.uid=0,t.Lc=0,t.za=e.za,16384==(61440&e.mode)?t.size=4096:32768==(61440&e.mode)?t.size=e.v:40960==(61440&e.mode)?t.size=e.link.length:t.size=0,t.Bc=new Date(e.timestamp),t.Nc=new Date(e.timestamp),t.Ic=new Date(e.timestamp),t.Jb=4096,t.Cc=Math.ceil(t.size/t.Jb),t},P(e,t){if(void 0!==t.mode&&(e.mode=t.mode),void 0!==t.timestamp&&(e.timestamp=t.timestamp),void 0!==t.size&&(t=t.size,e.v!=t))if(0==t)e.j=null,e.v=0;else{var n=e.j;e.j=new Uint8Array(t),n&&e.j.set(n.subarray(0,Math.min(t,e.v))),e.v=t}},ka(){throw Pe[44]},va:(e,t,n,r)=>ye.createNode(e,t,n,r),ub(e,t,n){if(16384==(61440&e.mode)){try{var r=xe(t,n)}catch(e){}if(r)for(var i in r.j)throw new Te(55)}delete e.parent.j[e.name],e.parent.timestamp=Date.now(),e.name=n,t.j[n]=e,t.timestamp=e.parent.timestamp,e.parent=t},Ab(e,t){delete e.j[t],e.timestamp=Date.now()},vb(e,t){var n,r=xe(e,t);for(n in r.j)throw new Te(55);delete e.j[t],e.timestamp=Date.now()},sb(e){var t,n=[".",".."];for(t in e.j)e.j.hasOwnProperty(t)&&n.push(t);return n},Ea:(e,t,n)=>((e=ye.createNode(e,t,41471,0)).link=n,e),ma(e){if(40960!=(61440&e.mode))throw new Te(28);return e.link}},m:{read(e,t,n,r,i){var a=e.node.j;if(i>=e.node.v)return 0;if(8<(e=Math.min(e.node.v-i,r))&&a.subarray)t.set(a.subarray(i,i+e),n);else for(r=0;r
t)throw new Te(28);return t},pa(e,t,n){pe(e.node,t+n),e.node.v=Math.max(e.node.v,t+n)},lb(e,t,n,r,i){if(32768!=(61440&e.node.mode))throw new Te(43);if(e=e.node.j,2&i||e.buffer!==C.buffer){if((0
(ye.m.write(e,t,0,r,n,!1),0)}},we=null,_e={},Ae=[],Ce=1,Re=null,Ee=!0,Te=null,Pe={},Le=(e,t={})=>{if(!(e=ne(e)))return{path:"",node:null};if(8<(t=Object.assign({gb:!0,Qa:0},t)).Qa)throw new Te(32);e=e.split("/").filter((e=>!!e));for(var n=we,r="/",i=0;i
{for(var t;;){if(e===e.parent)return e=e.U.mb,t?"/"!==e[e.length-1]?`${e}/${t}`:e+t:e;t=t?`${e.name}/${t}`:e.name,e=e.parent}},Se=(e,t)=>{for(var n=0,r=0;r
>>0)%Re.length},xe=(e,t)=>{var n;if(n=(n=je(e,"x"))?n:e.l.ka?0:2)throw new Te(n,e);for(n=Re[Se(e.id,t)];n;n=n.lc){var r=n.name;if(n.parent.id===e.id&&r===t)return n}return e.l.ka(e,t)},Oe=(e,t,n,r)=>(e=new Rn(e,t,n,r),t=Se(e.parent.id,e.name),e.lc=Re[t],Re[t]=e),Fe=e=>{var t=["r","w","rw"][3&e];return 512&e&&(t+="w"),t},je=(e,t)=>Ee?0:!t.includes("r")||292&e.mode?t.includes("w")&&!(146&e.mode)||t.includes("x")&&!(73&e.mode)?2:0:2,ke=(e,t)=>{try{return xe(e,t),20}catch(e){}return je(e,"wx")},Ie=e=>{if(!(e=Ae[e]))throw new Te(8);return e},De=(e,t=-1)=>(ge||((ge=function(){this.h={}}).prototype={},Object.defineProperties(ge.prototype,{object:{get(){return this.node},set(e){this.node=e}},flags:{get(){return this.h.flags},set(e){this.h.flags=e}},position:{get(){return this.h.position},set(e){this.h.position=e}}})),e=Object.assign(new ge,e),-1==t&&(t=(()=>{for(var e=0;4096>=e;e++)if(!Ae[e])return e;throw new Te(33)})()),e.X=t,Ae[t]=e),Ue={open:e=>{e.m=_e[e.node.za].m,e.m.open&&e.m.open(e)},ba:()=>{throw new Te(70)}},Be=(e,t)=>{_e[e]={m:t}},We=(e,t)=>{var n="/"===t,r=!t;if(n&&we)throw new Te(10);if(!n&&!r){var i=Le(t,{gb:!1});if(t=i.path,(i=i.node).wa)throw new Te(10);if(16384!=(61440&i.mode))throw new Te(54)}t={type:e,Qc:{},mb:t,kc:[]},(e=e.U(t)).U=t,t.root=e,n?we=e:i&&(i.wa=t,i.U&&i.U.kc.push(t))},Ne=(e,t,n)=>{var r=Le(e,{parent:!0}).node;if(!(e=ee(e))||"."===e||".."===e)throw new Te(28);var i=ke(r,e);if(i)throw new Te(i);if(!r.l.va)throw new Te(63);return r.l.va(r,e,t,n)},ze=(e,t,n)=>{void 0===n&&(n=t,t=438),Ne(e,8192|t,n)},$e=(e,t)=>{if(!ne(e))throw new Te(44);var n=Le(t,{parent:!0}).node;if(!n)throw new Te(44);t=ee(t);var r=ke(n,t);if(r)throw new Te(r);if(!n.l.Ea)throw new Te(63);n.l.Ea(n,t,e)},He=e=>{if(!(e=Le(e).node))throw new Te(44);if(!e.l.ma)throw new Te(28);return ne(Me(e.parent),e.l.ma(e))},Ye=(e,t,n)=>{if(""===e)throw new Te(44);if("string"==typeof t){var r={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090}[t];if(void 0===r)throw Error(`Unknown file open mode: ${t}`);t=r}if(n=64&t?4095&(void 0===n?438:n)|32768:0,"object"==typeof e)var a=e;else{e=Z(e);try{a=Le(e,{fb:!(131072&t)}).node}catch(e){}}if(r=!1,64&t)if(a){if(128&t)throw new Te(20)}else a=Ne(e,n,0),r=!0;if(!a)throw new Te(44);if(8192==(61440&a.mode)&&(t&=-513),65536&t&&16384!=(61440&a.mode))throw new Te(54);if(!r&&(n=a?40960==(61440&a.mode)?32:16384==(61440&a.mode)&&("r"!==Fe(t)||512&t)?31:je(a,Fe(t)):44))throw new Te(n);if(512&t&&!r){if(!(n="string"==typeof(n=a)?Le(n,{fb:!0}).node:n).l.P)throw new Te(63);if(16384==(61440&n.mode))throw new Te(31);if(32768!=(61440&n.mode))throw new Te(28);if(r=je(n,"w"))throw new Te(r);n.l.P(n,{size:0,timestamp:Date.now()})}return t&=-131713,(a=De({node:a,path:Me(a),flags:t,seekable:!0,position:0,m:a.m,zc:[],error:!1})).m.open&&a.m.open(a),!i.logReadFiles||1&t||(be||(be={}),e in be||(be[e]=1)),a},Ve=(e,t,n)=>{if(null===e.X)throw new Te(8);if(!e.seekable||!e.m.ba)throw new Te(70);if(0!=n&&1!=n&&2!=n)throw new Te(28);e.position=e.m.ba(e,t,n),e.zc=[]},Xe=()=>{Te||((Te=function(e,t){this.name="ErrnoError",this.node=t,this.pc=function(e){this.aa=e},this.pc(e),this.message="FS error"}).prototype=Error(),Te.prototype.constructor=Te,[44].forEach((e=>{Pe[e]=new Te(e),Pe[e].stack="
"})))},Ge=(e,t,n)=>{e=Z("/dev/"+e);var r=function(e,t){var n=0;return e&&(n|=365),t&&(n|=146),n}(!!t,!!n);me||(me=64);var i=me++<<8|0;Be(i,{open:e=>{e.seekable=!1},close:()=>{n&&n.buffer&&n.buffer.length&&n(10)},read:(e,n,r,i)=>{for(var a=0,o=0;o
{for(var a=0;a
>2]}function Ze(e){if(void 0===e)return"_unknown";var t=(e=e.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return 48<=t&&57>=t?`_${e}`:e}function Qe(e,t){return{[e=Ze(e)]:function(){return t.apply(this,arguments)}}[e]}function et(){this.M=[void 0],this.hb=[]}var tt=new et,nt=void 0;function rt(e){throw new nt(e)}var it=e=>(e||rt("Cannot use deleted val. handle = "+e),tt.get(e).value),at=e=>{switch(e){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:return tt.pa({tb:1,value:e})}};function ot(e){var t=Error,n=Qe(e,(function(t){this.name=e,this.message=t,void 0!==(t=Error(t).stack)&&(this.stack=this.toString()+"\n"+t.replace(/^Error(:[^\n]*)?\n/,""))}));return n.prototype=Object.create(t.prototype),n.prototype.constructor=n,n.prototype.toString=function(){return void 0===this.message?this.name:`${this.name}: ${this.message}`},n}var st=void 0,ut=void 0;function ct(e){for(var t="";R[e];)t+=ut[R[e++]];return t}var lt=[];function ht(){for(;lt.length;){var e=lt.pop();e.g.fa=!1,e.delete()}}var ft=void 0,dt={};function pt(e,t){for(void 0===t&&rt("ptr should not be undefined");e.A;)t=e.na(t),e=e.A;return t}var vt={};function mt(e){var t=ct(e=kn(e));return Ln(e),t}function gt(e,t){var n=vt[e];return void 0===n&&rt(t+" has unknown type "+mt(e)),n}function bt(){}var yt=!1;function wt(e){--e.count.value,0===e.count.value&&(e.G?e.L.W(e.G):e.u.i.W(e.o))}function _t(e,t,n){return t===n?e:void 0===n.A||null===(e=_t(e,t,n.A))?null:n.Pb(e)}var At={},Ct=void 0;function Rt(e){throw new Ct(e)}function Et(e,t){return t.u&&t.o||Rt("makeClassHandle requires ptr and ptrType"),!!t.L!=!!t.G&&Rt("Both smartPtrType and smartPtr must be specified"),t.count={value:1},Tt(Object.create(e,{g:{value:t}}))}function Tt(e){return"undefined"==typeof FinalizationRegistry?(Tt=e=>e,e):(yt=new FinalizationRegistry((e=>{wt(e.g)})),bt=e=>{yt.unregister(e)},(Tt=e=>{var t=e.g;return t.G&&yt.register(e,{g:t},e),e})(e))}var Pt={};function Lt(e){for(;e.length;){var t=e.pop();e.pop()(t)}}function Mt(e){return this.fromWireType(P[e>>2])}var St={},xt={};function Ot(e,t,n){function r(t){(t=n(t)).length!==e.length&&Rt("Mismatched type converter count");for(var r=0;r
{vt.hasOwnProperty(e)?i[t]=vt[e]:(a.push(e),St.hasOwnProperty(e)||(St[e]=[]),St[e].push((()=>{i[t]=vt[e],++o===a.length&&r(i)})))})),0===a.length&&r(i)}function Ft(e){switch(e){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError(`Unknown type size: ${e}`)}}function jt(e,t,n={}){if(!("argPackAdvance"in t))throw new TypeError("registerType registeredInstance requires argPackAdvance");!function(e,t,n={}){var r=t.name;if(e||rt(`type "${r}" must have a positive integer typeid pointer`),vt.hasOwnProperty(e)){if(n.$b)return;rt(`Cannot register type '${r}' twice`)}vt[e]=t,delete xt[e],St.hasOwnProperty(e)&&(t=St[e],delete St[e],t.forEach((e=>e())))}(e,t,n)}function kt(e){rt(e.g.u.i.name+" instance already deleted")}function It(){}function Dt(e,t,n){if(void 0===e[t].B){var r=e[t];e[t]=function(){return e[t].B.hasOwnProperty(arguments.length)||rt(`Function '${n}' called with an invalid number of arguments (${arguments.length}) - expects one of (${e[t].B})!`),e[t].B[arguments.length].apply(this,arguments)},e[t].B=[],e[t].B[r.ea]=r}}function Ut(e,t,n){i.hasOwnProperty(e)?((void 0===n||void 0!==i[e].B&&void 0!==i[e].B[n])&&rt(`Cannot register public name '${e}' twice`),Dt(i,e,e),i.hasOwnProperty(n)&&rt(`Cannot register multiple overloads of a function with the same number of arguments (${n})!`),i[e].B[n]=t):(i[e]=t,void 0!==n&&(i[e].Pc=n))}function Bt(e,t,n,r,i,a,o,s){this.name=e,this.constructor=t,this.N=n,this.W=r,this.A=i,this.Ub=a,this.na=o,this.Pb=s,this.qb=[]}function Wt(e,t,n){for(;t!==n;)t.na||rt(`Expected null or instance of ${n.name}, got an instance of ${t.name}`),e=t.na(e),t=t.A;return e}function Nt(e,t){return null===t?(this.Na&&rt(`null is not a valid ${this.name}`),0):(t.g||rt(`Cannot pass "${nn(t)}" as a ${this.name}`),t.g.o||rt(`Cannot pass deleted object as a pointer of type ${this.name}`),Wt(t.g.o,t.g.u.i,this.i))}function zt(e,t){if(null===t){if(this.Na&&rt(`null is not a valid ${this.name}`),this.ua){var n=this.Pa();return null!==e&&e.push(this.W,n),n}return 0}if(t.g||rt(`Cannot pass "${nn(t)}" as a ${this.name}`),t.g.o||rt(`Cannot pass deleted object as a pointer of type ${this.name}`),!this.ta&&t.g.u.ta&&rt(`Cannot convert argument of type ${t.g.L?t.g.L.name:t.g.u.name} to parameter type ${this.name}`),n=Wt(t.g.o,t.g.u.i,this.i),this.ua)switch(void 0===t.g.G&&rt("Passing raw pointer to smart pointer is illegal"),this.tc){case 0:t.g.L===this?n=t.g.G:rt(`Cannot convert argument of type ${t.g.L?t.g.L.name:t.g.u.name} to parameter type ${this.name}`);break;case 1:n=t.g.G;break;case 2:if(t.g.L===this)n=t.g.G;else{var r=t.clone();n=this.oc(n,at((function(){r.delete()}))),null!==e&&e.push(this.W,n)}break;default:rt("Unsupporting sharing policy")}return n}function $t(e,t){return null===t?(this.Na&&rt(`null is not a valid ${this.name}`),0):(t.g||rt(`Cannot pass "${nn(t)}" as a ${this.name}`),t.g.o||rt(`Cannot pass deleted object as a pointer of type ${this.name}`),t.g.u.ta&&rt(`Cannot convert argument of type ${t.g.u.name} to parameter type ${this.name}`),Wt(t.g.o,t.g.u.i,this.i))}function Ht(e,t,n,r){this.name=e,this.i=t,this.Na=n,this.ta=r,this.ua=!1,this.W=this.oc=this.Pa=this.rb=this.tc=this.nc=void 0,void 0!==t.A?this.toWireType=zt:(this.toWireType=r?Nt:$t,this.K=null)}function Yt(e,t,n){i.hasOwnProperty(e)||Rt("Replacing nonexistant public symbol"),void 0!==i[e].B&&void 0!==n?i[e].B[n]=t:(i[e]=t,i[e].ea=n)}var Vt=[],Xt=e=>{var t=Vt[e];return t||(e>=Vt.length&&(Vt.length=e+1),Vt[e]=t=F.get(e)),t};function Gt(e,t){var n=(e=ct(e)).includes("j")?((e,t)=>{var n=[];return function(){if(n.length=0,Object.assign(n,arguments),e.includes("j")){var r=i["dynCall_"+e];r=n&&n.length?r.apply(null,[t].concat(n)):r.call(null,t)}else r=Xt(t).apply(null,n);return r}})(e,t):Xt(t);return"function"!=typeof n&&rt(`unknown function pointer with signature ${e}: ${t}`),n}var qt=void 0;function Jt(e,t){var n=[],r={};throw t.forEach((function e(t){r[t]||vt[t]||(xt[t]?xt[t].forEach(e):(n.push(t),r[t]=!0))})),new qt(`${e}: `+n.map(mt).join([", "]))}function Kt(e,t,n,r,i){var a=t.length;2>a&&rt("argTypes array size mismatch! Must at least get return value and 'this' types!");var o=null!==t[1]&&null!==n,s=!1;for(n=1;n
>2]);return n}function Qt(e,t,n){return e instanceof Object||rt(`${n} with invalid "this": ${e}`),e instanceof t.i.constructor||rt(`${n} incompatible with "this" of type ${e.constructor.name}`),e.g.o||rt(`cannot call emscripten binding method ${n} on deleted object`),Wt(e.g.o,e.g.u.i,t.i)}function en(e){e>=tt.h&&0==--tt.get(e).tb&&tt.Zb(e)}function tn(e,t,n){switch(t){case 0:return function(e){return this.fromWireType((n?C:R)[e])};case 1:return function(e){return this.fromWireType((n?E:T)[e>>1])};case 2:return function(e){return this.fromWireType((n?P:L)[e>>2])};default:throw new TypeError("Unknown integer type: "+e)}}function nn(e){if(null===e)return"null";var t=typeof e;return"object"===t||"array"===t||"function"===t?e.toString():""+e}function rn(e,t){switch(t){case 2:return function(e){return this.fromWireType(M[e>>2])};case 3:return function(e){return this.fromWireType(S[e>>3])};default:throw new TypeError("Unknown float type: "+e)}}function an(e,t,n){switch(t){case 0:return n?function(e){return C[e]}:function(e){return R[e]};case 1:return n?function(e){return E[e>>1]}:function(e){return T[e>>1]};case 2:return n?function(e){return P[e>>2]}:function(e){return L[e>>2]};default:throw new TypeError("Unknown integer type: "+e)}}var on="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0,sn=(e,t)=>{for(var n=e>>1,r=n+t/2;!(n>=r)&&T[n];)++n;if(32<(n<<=1)-e&&on)return on.decode(R.subarray(e,n));for(n="",r=0;!(r>=t/2);++r){var i=E[e+2*r>>1];if(0==i)break;n+=String.fromCharCode(i)}return n},un=(e,t,n)=>{if(void 0===n&&(n=2147483647),2>n)return 0;var r=t;n=(n-=2)<2*e.length?n/2:e.length;for(var i=0;i
>1]=e.charCodeAt(i),t+=2;return E[t>>1]=0,t-r},cn=e=>2*e.length,ln=(e,t)=>{for(var n=0,r="";!(n>=t/4);){var i=P[e+4*n>>2];if(0==i)break;++n,65536<=i?(i-=65536,r+=String.fromCharCode(55296|i>>10,56320|1023&i)):r+=String.fromCharCode(i)}return r},hn=(e,t,n)=>{if(void 0===n&&(n=2147483647),4>n)return 0;var r=t;n=r+n-4;for(var i=0;i
=a&&(a=65536+((1023&a)<<10)|1023&e.charCodeAt(++i)),P[t>>2]=a,(t+=4)+4>n)break}return P[t>>2]=0,t-r},fn=e=>{for(var t=0,n=0;n
=r&&++n,t+=4}return t},dn={};function pn(e){var t=dn[e];return void 0===t?ct(e):t}var vn,mn=[],gn=[],bn=[],yn={},wn=()=>{if(!vn){var e,t={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:p||"./this.program"};for(e in yn)void 0===yn[e]?delete t[e]:t[e]=yn[e];var n=[];for(e in t)n.push(`${e}=${t[e]}`);vn=n}return vn},_n=e=>0==e%4&&(0!=e%100||0==e%400),An=[31,29,31,30,31,30,31,31,30,31,30,31],Cn=[31,28,31,30,31,30,31,31,30,31,30,31];function Rn(e,t,n,r){e||(e=this),this.parent=e,this.U=e.U,this.wa=null,this.id=Ce++,this.name=t,this.mode=n,this.l={},this.m={},this.za=r}Object.defineProperties(Rn.prototype,{read:{get:function(){return 365==(365&this.mode)},set:function(e){e?this.mode|=365:this.mode&=-366}},write:{get:function(){return 146==(146&this.mode)},set:function(e){e?this.mode|=146:this.mode&=-147}}}),Xe(),Re=Array(4096),We(ye,"/"),Ne("/tmp",16895,0),Ne("/home",16895,0),Ne("/home/web_user",16895,0),(()=>{Ne("/dev",16895,0),Be(259,{read:()=>0,write:(e,t,n,r)=>r}),ze("/dev/null",259),le(1280,fe),le(1536,de),ze("/dev/tty",1280),ze("/dev/tty1",1536);var e=new Uint8Array(1024),t=0,n=()=>(0===t&&(t=te(e).byteLength),e[--t]);Ge("random",n),Ge("urandom",n),Ne("/dev/shm",16895,0),Ne("/dev/shm/tmp",16895,0)})(),(()=>{Ne("/proc",16895,0);var e=Ne("/proc/self",16895,0);Ne("/proc/self/fd",16895,0),We({U:()=>{var t=Oe(e,"fd",16895,73);return t.l={ka:(e,t)=>{var n=Ie(+t);return(e={parent:null,U:{mb:"fake"},l:{ma:()=>n.path}}).parent=e}},t}},"/proc/self/fd")})(),Object.assign(et.prototype,{get(e){return this.M[e]},has(e){return void 0!==this.M[e]},pa(e){var t=this.hb.pop()||this.M.length;return this.M[t]=e,t},Zb(e){this.M[e]=void 0,this.hb.push(e)}}),nt=i.BindingError=class extends Error{constructor(e){super(e),this.name="BindingError"}},tt.M.push({value:void 0},{value:null},{value:!0},{value:!1}),tt.h=tt.M.length,i.count_emval_handles=function(){for(var e=0,t=tt.h;t
Tn;++Tn)En[Tn]=String.fromCharCode(Tn);ut=En,i.getInheritedInstanceCount=function(){return Object.keys(dt).length},i.getLiveInheritedInstances=function(){var e,t=[];for(e in dt)dt.hasOwnProperty(e)&&t.push(dt[e]);return t},i.flushPendingDeletes=ht,i.setDelayFunction=function(e){ft=e,lt.length&&ft&&ft(ht)},Ct=i.InternalError=class extends Error{constructor(e){super(e),this.name="InternalError"}},It.prototype.isAliasOf=function(e){if(!(this instanceof It&&e instanceof It))return!1;var t=this.g.u.i,n=this.g.o,r=e.g.u.i;for(e=e.g.o;t.A;)n=t.na(n),t=t.A;for(;r.A;)e=r.na(e),r=r.A;return t===r&&n===e},It.prototype.clone=function(){if(this.g.o||kt(this),this.g.ia)return this.g.count.value+=1,this;var e=Tt,t=Object,n=t.create,r=Object.getPrototypeOf(this),i=this.g;return(e=e(n.call(t,r,{g:{value:{count:i.count,fa:i.fa,ia:i.ia,o:i.o,u:i.u,G:i.G,L:i.L}}}))).g.count.value+=1,e.g.fa=!1,e},It.prototype.delete=function(){this.g.o||kt(this),this.g.fa&&!this.g.ia&&rt("Object already scheduled for deletion"),bt(this),wt(this.g),this.g.ia||(this.g.G=void 0,this.g.o=void 0)},It.prototype.isDeleted=function(){return!this.g.o},It.prototype.deleteLater=function(){return this.g.o||kt(this),this.g.fa&&!this.g.ia&&rt("Object already scheduled for deletion"),lt.push(this),1===lt.length&&ft&&ft(ht),this.g.fa=!0,this},Ht.prototype.Vb=function(e){return this.rb&&(e=this.rb(e)),e},Ht.prototype.ab=function(e){this.W&&this.W(e)},Ht.prototype.argPackAdvance=8,Ht.prototype.readValueFromPointer=Mt,Ht.prototype.deleteObject=function(e){null!==e&&e.delete()},Ht.prototype.fromWireType=function(e){function t(){return this.ua?Et(this.i.N,{u:this.nc,o:n,L:this,G:e}):Et(this.i.N,{u:this,o:e})}var n=this.Vb(e);if(!n)return this.ab(e),null;var r=function(e,t){return t=pt(e,t),dt[t]}(this.i,n);if(void 0!==r)return 0===r.g.count.value?(r.g.o=n,r.g.G=e,r.clone()):(r=r.clone(),this.ab(e),r);if(r=this.i.Ub(n),!(r=At[r]))return t.call(this);r=this.ta?r.Kb:r.pointerType;var i=_t(n,this.i,r.i);return null===i?t.call(this):this.ua?Et(r.i.N,{u:r,o:i,L:this,G:e}):Et(r.i.N,{u:r,o:i})},qt=i.UnboundTypeError=ot("UnboundTypeError");var Pn={__syscall_fcntl64:function(e,t,n){Je=n;try{var r=Ie(e);switch(t){case 0:var i=Ke();return 0>i?-28:De(r,i).X;case 1:case 2:case 6:case 7:return 0;case 3:return r.flags;case 4:return i=Ke(),r.flags|=i,0;case 5:return i=Ke(),E[i+0>>1]=2,0;case 16:case 8:default:return-28;case 9:return P[jn()>>2]=28,-1}}catch(e){if(void 0===qe||"ErrnoError"!==e.name)throw e;return-e.aa}},__syscall_ioctl:function(e,t,n){Je=n;try{var r=Ie(e);switch(t){case 21509:case 21510:case 21511:case 21512:case 21524:case 21515:return r.s?0:-59;case 21505:if(!r.s)return-59;if(r.s.V.bc){t=[3,28,127,21,4,0,1,0,17,19,26,0,18,15,23,22,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];var i=Ke();P[i>>2]=25856,P[i+4>>2]=5,P[i+8>>2]=191,P[i+12>>2]=35387;for(var a=0;32>a;a++)C[i+a+17>>0]=t[a]||0}return 0;case 21506:case 21507:case 21508:if(!r.s)return-59;if(r.s.V.cc)for(i=Ke(),t=[],a=0;32>a;a++)t.push(C[i+a+17>>0]);return 0;case 21519:return r.s?(i=Ke(),P[i>>2]=0):-59;case 21520:return r.s?-28:-59;case 21531:if(i=Ke(),!r.m.ac)throw new Te(59);return r.m.ac(r,t,i);case 21523:return r.s?(r.s.V.dc&&(a=[24,80],i=Ke(),E[i>>1]=a[0],E[i+2>>1]=a[1]),0):-59;default:return-28}}catch(e){if(void 0===qe||"ErrnoError"!==e.name)throw e;return-e.aa}},__syscall_openat:function(e,t,n,r){Je=r;try{var i=t=t?ie(R,t):"";if("/"===i.charAt(0))t=i;else{var a=-100===e?"/":Ie(e).path;if(0==i.length)throw new Te(44);t=Z(a+"/"+i)}var o=r?Ke():0;return Ye(t,n,o).X}catch(e){if(void 0===qe||"ErrnoError"!==e.name)throw e;return-e.aa}},_embind_create_inheriting_constructor:function(e,t,n){e=ct(e),t=gt(t,"wrapper"),n=it(n);var r=[].slice,i=t.i,a=i.N,o=i.A.N,s=i.A.constructor;for(var u in e=Qe(e,(function(){i.A.qb.forEach(function(e){if(this[e]===o[e])throw new st(`Pure virtual function ${e} must be implemented in JavaScript`)}.bind(this)),Object.defineProperty(this,"__parent",{value:a}),this.__construct.apply(this,r.call(arguments))})),a.__construct=function(){this===a&&rt("Pass correct 'this' to __construct");var e=s.implement.apply(void 0,[this].concat(r.call(arguments)));bt(e);var t=e.g;e.notifyOnDestruction(),t.ia=!0,Object.defineProperties(this,{g:{value:t}}),Tt(this),e=t.o,e=pt(i,e),dt.hasOwnProperty(e)?rt(`Tried to register registered instance: ${e}`):dt[e]=this},a.__destruct=function(){this===a&&rt("Pass correct 'this' to __destruct"),bt(this);var e=this.g.o;e=pt(i,e),dt.hasOwnProperty(e)?delete dt[e]:rt(`Tried to unregister unregistered instance: ${e}`)},e.prototype=Object.create(a),n)e.prototype[u]=n[u];return at(e)},_embind_finalize_value_object:function(e){var t=Pt[e];delete Pt[e];var n=t.Pa,r=t.W,i=t.eb;Ot([e],i.map((e=>e.Yb)).concat(i.map((e=>e.rc))),(e=>{var a={};return i.forEach(((t,n)=>{var r=e[n],o=t.Wb,s=t.Xb,u=e[n+i.length],c=t.qc,l=t.sc;a[t.Sb]={read:e=>r.fromWireType(o(s,e)),write:(e,t)=>{var n=[];c(l,e,u.toWireType(n,t)),Lt(n)}}})),[{name:t.name,fromWireType:function(e){var t,n={};for(t in a)n[t]=a[t].read(e);return r(e),n},toWireType:function(e,t){for(var i in a)if(!(i in t))throw new TypeError(`Missing field: "${i}"`);var o=n();for(i in a)a[i].write(o,t[i]);return null!==e&&e.push(r,o),o},argPackAdvance:8,readValueFromPointer:Mt,K:r}]}))},_embind_register_bigint:function(){},_embind_register_bool:function(e,t,n,r,i){var a=Ft(n);jt(e,{name:t=ct(t),fromWireType:function(e){return!!e},toWireType:function(e,t){return t?r:i},argPackAdvance:8,readValueFromPointer:function(e){if(1===n)var r=C;else if(2===n)r=E;else{if(4!==n)throw new TypeError("Unknown boolean type size: "+t);r=P}return this.fromWireType(r[e>>a])},K:null})},_embind_register_class:function(e,t,n,r,i,a,o,s,u,c,l,h,f){l=ct(l),a=Gt(i,a),s&&(s=Gt(o,s)),c&&(c=Gt(u,c)),f=Gt(h,f);var d=Ze(l);Ut(d,(function(){Jt(`Cannot construct ${l} due to unbound types`,[r])})),Ot([e,t,n],r?[r]:[],(function(t){if(t=t[0],r)var n=t.i,i=n.N;else i=It.prototype;t=Qe(d,(function(){if(Object.getPrototypeOf(this)!==o)throw new nt("Use 'new' to construct "+l);if(void 0===u.$)throw new nt(l+" has no accessible constructor");var e=u.$[arguments.length];if(void 0===e)throw new nt(`Tried to invoke ctor of ${l} with invalid number of parameters (${arguments.length}) - expected (${Object.keys(u.$).toString()}) parameters instead!`);return e.apply(this,arguments)}));var o=Object.create(i,{constructor:{value:t}});t.prototype=o;var u=new Bt(l,t,o,f,n,a,s,c);u.A&&(void 0===u.A.oa&&(u.A.oa=[]),u.A.oa.push(u)),n=new Ht(l,u,!0,!1),i=new Ht(l+"*",u,!1,!1);var h=new Ht(l+" const*",u,!1,!0);return At[e]={pointerType:i,Kb:h},Yt(d,t),[n,i,h]}))},_embind_register_class_class_function:function(e,t,n,r,i,a,o){var s=Zt(n,r);t=ct(t),a=Gt(i,a),Ot([],[e],(function(e){function r(){Jt(`Cannot call ${i} due to unbound types`,s)}var i=`${(e=e[0]).name}.${t}`;t.startsWith("@@")&&(t=Symbol[t.substring(2)]);var u=e.i.constructor;return void 0===u[t]?(r.ea=n-1,u[t]=r):(Dt(u,t,i),u[t].B[n-1]=r),Ot([],s,(function(r){if(r=Kt(i,[r[0],null].concat(r.slice(1)),null,a,o),void 0===u[t].B?(r.ea=n-1,u[t]=r):u[t].B[n-1]=r,e.i.oa)for(const n of e.i.oa)n.constructor.hasOwnProperty(t)||(n.constructor[t]=r);return[]})),[]}))},_embind_register_class_class_property:function(e,t,n,r,i,a,o,s){t=ct(t),a=Gt(i,a),Ot([],[e],(function(e){var i=`${(e=e[0]).name}.${t}`,u={get(){Jt(`Cannot access ${i} due to unbound types`,[n])},enumerable:!0,configurable:!0};return u.set=s?()=>{Jt(`Cannot access ${i} due to unbound types`,[n])}:()=>{rt(`${i} is a read-only property`)},Object.defineProperty(e.i.constructor,t,u),Ot([],[n],(function(n){n=n[0];var i={get:()=>n.fromWireType(a(r)),enumerable:!0};return s&&(s=Gt(o,s),i.set=e=>{var t=[];s(r,n.toWireType(t,e)),Lt(t)}),Object.defineProperty(e.i.constructor,t,i),[]})),[]}))},_embind_register_class_constructor:function(e,t,n,r,i,a){var o=Zt(t,n);i=Gt(r,i),Ot([],[e],(function(e){var n=`constructor ${(e=e[0]).name}`;if(void 0===e.i.$&&(e.i.$=[]),void 0!==e.i.$[t-1])throw new nt(`Cannot register multiple constructors with identical number of parameters (${t-1}) for class '${e.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return e.i.$[t-1]=()=>{Jt(`Cannot construct ${e.name} due to unbound types`,o)},Ot([],o,(function(r){return r.splice(1,0,null),e.i.$[t-1]=Kt(n,r,null,i,a),[]})),[]}))},_embind_register_class_function:function(e,t,n,r,i,a,o,s){var u=Zt(n,r);t=ct(t),a=Gt(i,a),Ot([],[e],(function(e){function r(){Jt(`Cannot call ${i} due to unbound types`,u)}var i=`${(e=e[0]).name}.${t}`;t.startsWith("@@")&&(t=Symbol[t.substring(2)]),s&&e.i.qb.push(t);var c=e.i.N,l=c[t];return void 0===l||void 0===l.B&&l.className!==e.name&&l.ea===n-2?(r.ea=n-2,r.className=e.name,c[t]=r):(Dt(c,t,i),c[t].B[n-2]=r),Ot([],u,(function(r){return r=Kt(i,r,e,a,o),void 0===c[t].B?(r.ea=n-2,c[t]=r):c[t].B[n-2]=r,[]})),[]}))},_embind_register_class_property:function(e,t,n,r,i,a,o,s,u,c){t=ct(t),i=Gt(r,i),Ot([],[e],(function(e){var r=`${(e=e[0]).name}.${t}`,l={get(){Jt(`Cannot access ${r} due to unbound types`,[n,o])},enumerable:!0,configurable:!0};return l.set=u?()=>{Jt(`Cannot access ${r} due to unbound types`,[n,o])}:()=>{rt(r+" is a read-only property")},Object.defineProperty(e.i.N,t,l),Ot([],u?[n,o]:[n],(function(n){var o=n[0],l={get(){var t=Qt(this,e,r+" getter");return o.fromWireType(i(a,t))},enumerable:!0};if(u){u=Gt(s,u);var h=n[1];l.set=function(t){var n=Qt(this,e,r+" setter"),i=[];u(c,n,h.toWireType(i,t)),Lt(i)}}return Object.defineProperty(e.i.N,t,l),[]})),[]}))},_embind_register_emval:function(e,t){jt(e,{name:t=ct(t),fromWireType:function(e){var t=it(e);return en(e),t},toWireType:function(e,t){return at(t)},argPackAdvance:8,readValueFromPointer:Mt,K:null})},_embind_register_enum:function(e,t,n,r){function i(){}n=Ft(n),t=ct(t),i.values={},jt(e,{name:t,constructor:i,fromWireType:function(e){return this.constructor.values[e]},toWireType:function(e,t){return t.value},argPackAdvance:8,readValueFromPointer:tn(t,n,r),K:null}),Ut(t,i)},_embind_register_enum_value:function(e,t,n){var r=gt(e,"enum");t=ct(t),e=r.constructor,r=Object.create(r.constructor.prototype,{value:{value:n},constructor:{value:Qe(`${r.name}_${t}`,(function(){}))}}),e.values[n]=r,e[t]=r},_embind_register_float:function(e,t,n){n=Ft(n),jt(e,{name:t=ct(t),fromWireType:function(e){return e},toWireType:function(e,t){return t},argPackAdvance:8,readValueFromPointer:rn(t,n),K:null})},_embind_register_function:function(e,t,n,r,i,a){var o=Zt(t,n);e=ct(e),i=Gt(r,i),Ut(e,(function(){Jt(`Cannot call ${e} due to unbound types`,o)}),t-1),Ot([],o,(function(n){return Yt(e,Kt(e,[n[0],null].concat(n.slice(1)),null,i,a),t-1),[]}))},_embind_register_integer:function(e,t,n,r,i){t=ct(t),-1===i&&(i=4294967295),i=Ft(n);var a=e=>e;if(0===r){var o=32-8*n;a=e=>e<
>>o}n=t.includes("unsigned")?function(e,t){return t>>>0}:function(e,t){return t},jt(e,{name:t,fromWireType:a,toWireType:n,argPackAdvance:8,readValueFromPointer:an(t,i,0!==r),K:null})},_embind_register_memory_view:function(e,t,n){function r(e){e>>=2;var t=L;return new i(t.buffer,t[e+1],t[e])}var i=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][t];jt(e,{name:n=ct(n),fromWireType:r,argPackAdvance:8,readValueFromPointer:r},{$b:!0})},_embind_register_std_string:function(e,t){var n="std::string"===(t=ct(t));jt(e,{name:t,fromWireType:function(e){var t=L[e>>2],r=e+4;if(n)for(var i=r,a=0;a<=t;++a){var o=r+a;if(a==t||0==R[o]){if(i=i?ie(R,i,o-i):"",void 0===s)var s=i;else s+=String.fromCharCode(0),s+=i;i=o+1}}else{for(s=Array(t),a=0;a
>2]=i,n&&r)se(t,R,o,i+1);else if(r)for(r=0;r
T,s=1;else 4===t&&(r=ln,i=hn,a=fn,o=()=>L,s=2);jt(e,{name:n,fromWireType:function(e){for(var n,i=L[e>>2],a=o(),u=e+4,c=0;c<=i;++c){var l=e+4+c*t;c!=i&&0!=a[l>>s]||(u=r(u,l-u),void 0===n?n=u:(n+=String.fromCharCode(0),n+=u),u=l+t)}return Ln(e),n},toWireType:function(e,r){"string"!=typeof r&&rt(`Cannot pass non-string to C++ string type ${n}`);var o=a(r),u=Mn(4+o+t);return L[u>>2]=o>>s,i(r,u+4,o+t),null!==e&&e.push(Ln,u),u},argPackAdvance:8,readValueFromPointer:Mt,K:function(e){Ln(e)}})},_embind_register_value_object:function(e,t,n,r,i,a){Pt[e]={name:ct(t),Pa:Gt(n,r),W:Gt(i,a),eb:[]}},_embind_register_value_object_field:function(e,t,n,r,i,a,o,s,u,c){Pt[e].eb.push({Sb:ct(t),Yb:n,Wb:Gt(r,i),Xb:a,rc:o,qc:Gt(s,u),sc:c})},_embind_register_void:function(e,t){jt(e,{fc:!0,name:t=ct(t),argPackAdvance:0,fromWireType:function(){},toWireType:function(){}})},_emscripten_get_now_is_monotonic:()=>!0,_emval_as:function(e,t,n){e=it(e),t=gt(t,"emval::as");var r=[],i=at(r);return L[n>>2]=i,t.toWireType(r,e)},_emval_call_method:function(e,t,n,r,i){e=mn[e],t=it(t),n=pn(n);var a=[];return L[r>>2]=at(a),e(t,n,a,i)},_emval_call_void_method:function(e,t,n,r){(e=mn[e])(t=it(t),n=pn(n),null,r)},_emval_decref:en,_emval_get_method_caller:function(e,t){var n=function(e,t){for(var n=Array(e),r=0;r
>2],"parameter "+r);return n}(e,t),r=n[0];t=r.name+"_$"+n.slice(1).map((function(e){return e.name})).join("_")+"$";var i=gn[t];if(void 0!==i)return i;var a=Array(e-1);return i=function(e){var t=mn.length;return mn.push(e),t}(((t,i,o,s)=>{for(var u=0,c=0;c
{z("")},emscripten_asm_const_int:(e,t,n)=>{var r;for(bn.length=0,n>>=2;r=R[t++];)n+=105!=r&n,bn.push(105==r?P[n]:S[n++>>1]),++n;return q[e].apply(null,bn)},emscripten_date_now:function(){return Date.now()},emscripten_get_now:()=>performance.now(),emscripten_memcpy_big:(e,t,n)=>R.copyWithin(e,t,t+n),emscripten_resize_heap:e=>{var t=R.length;if(2147483648<(e>>>=0))return!1;for(var n=1;4>=n;n*=2){var r=t*(1+.2/n);r=Math.min(r,e+100663296);var i=Math;r=Math.max(e,r);e:{i=i.min.call(i,2147483648,r+(65536-r%65536)%65536)-_.buffer.byteLength+65535>>>16;try{_.grow(i),O();var a=1;break e}catch(e){}a=void 0}if(a)return!0}return!1},environ_get:(e,t)=>{var n=0;return wn().forEach((function(r,i){var a=t+n;for(i=L[e+4*i>>2]=a,a=0;a
>0]=r.charCodeAt(a);C[i>>0]=0,n+=r.length+1})),0},environ_sizes_get:(e,t)=>{var n=wn();L[e>>2]=n.length;var r=0;return n.forEach((function(e){r+=e.length+1})),L[t>>2]=r,0},fd_close:function(e){try{var t=Ie(e);if(null===t.X)throw new Te(8);t.Ma&&(t.Ma=null);try{t.m.close&&t.m.close(t)}catch(e){throw e}finally{Ae[t.X]=null}return t.X=null,0}catch(e){if(void 0===qe||"ErrnoError"!==e.name)throw e;return e.aa}},fd_read:function(e,t,n,r){try{e:{var i=Ie(e);e=t;for(var a,o=t=0;o
>2],u=L[e+4>>2];e+=8;var c=i,l=s,h=u,f=a,d=C;if(0>h||0>f)throw new Te(28);if(null===c.X)throw new Te(8);if(1==(2097155&c.flags))throw new Te(8);if(16384==(61440&c.node.mode))throw new Te(31);if(!c.m.read)throw new Te(28);var p=void 0!==f;if(p){if(!c.seekable)throw new Te(70)}else f=c.position;var v=c.m.read(c,d,l,h,f);p||(c.position+=v);var m=v;if(0>m){var g=-1;break e}if(t+=m,m
>2]=g,0}catch(e){if(void 0===qe||"ErrnoError"!==e.name)throw e;return e.aa}},fd_seek:function(e,t,n,r,i){t=n+2097152>>>0<4194305-!!t?(t>>>0)+4294967296*n:NaN;try{if(isNaN(t))return 61;var a=Ie(e);return Ve(a,t,r),G=[a.position>>>0,(X=a.position,1<=+Math.abs(X)?0
>>0:~~+Math.ceil((X-+(~~X>>>0))/4294967296)>>>0:0)],P[i>>2]=G[0],P[i+4>>2]=G[1],a.Ma&&0===t&&0===r&&(a.Ma=null),0}catch(e){if(void 0===qe||"ErrnoError"!==e.name)throw e;return e.aa}},fd_write:function(e,t,n,r){try{e:{var i=Ie(e);e=t;for(var a,o=t=0;o
>2],u=L[e+4>>2];e+=8;var c=i,l=s,h=u,f=a,d=C;if(0>h||0>f)throw new Te(28);if(null===c.X)throw new Te(8);if(0==(2097155&c.flags))throw new Te(8);if(16384==(61440&c.node.mode))throw new Te(31);if(!c.m.write)throw new Te(28);c.seekable&&1024&c.flags&&Ve(c,0,2);var p=void 0!==f;if(p){if(!c.seekable)throw new Te(70)}else f=c.position;var v=c.m.write(c,d,l,h,f,void 0);p||(c.position+=v);var m=v;if(0>m){var g=-1;break e}t+=m,void 0!==a&&(a+=m)}g=t}return L[r>>2]=g,0}catch(e){if(void 0===qe||"ErrnoError"!==e.name)throw e;return e.aa}},strftime_l:(e,t,n,r)=>((e,t,n,r)=>{function i(e,t,n){for(e="number"==typeof e?e.toString():e||"";e.length
e?-1:0
r-e.getDate())){e.setDate(e.getDate()+t);break}t-=r-e.getDate()+1,e.setDate(1),11>n?e.setMonth(n+1):(e.setMonth(0),e.setFullYear(e.getFullYear()+1))}return n=new Date(e.getFullYear()+1,0,4),t=s(new Date(e.getFullYear(),0,4)),n=s(n),0>=o(t,e)?0>=o(n,e)?e.getFullYear()+1:e.getFullYear():e.getFullYear()-1}var c=P[r+40>>2];for(var l in r={wc:P[r>>2],vc:P[r+4>>2],Fa:P[r+8>>2],Sa:P[r+12>>2],Ga:P[r+16>>2],da:P[r+20>>2],R:P[r+24>>2],ca:P[r+28>>2],Rc:P[r+32>>2],uc:P[r+36>>2],xc:c&&c?ie(R,c):""},n=n?ie(R,n):"",c={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"})n=n.replace(new RegExp(l,"g"),c[l]);var h="Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),f="January February March April May June July August September October November December".split(" ");for(l in c={"%a":e=>h[e.R].substring(0,3),"%A":e=>h[e.R],"%b":e=>f[e.Ga].substring(0,3),"%B":e=>f[e.Ga],"%C":e=>a((e.da+1900)/100|0,2),"%d":e=>a(e.Sa,2),"%e":e=>i(e.Sa,2," "),"%g":e=>u(e).toString().substring(2),"%G":e=>u(e),"%H":e=>a(e.Fa,2),"%I":e=>(0==(e=e.Fa)?e=12:12
{for(var t=0,n=0;n<=e.Ga-1;t+=(_n(e.da+1900)?An:Cn)[n++]);return a(e.Sa+t,3)},"%m":e=>a(e.Ga+1,2),"%M":e=>a(e.vc,2),"%n":()=>"\n","%p":e=>0<=e.Fa&&12>e.Fa?"AM":"PM","%S":e=>a(e.wc,2),"%t":()=>"\t","%u":e=>e.R||7,"%U":e=>a(Math.floor((e.ca+7-e.R)/7),2),"%V":e=>{var t=Math.floor((e.ca+7-(e.R+6)%7)/7);if(2>=(e.R+371-e.ca-2)%7&&t++,t)53==t&&(4==(n=(e.R+371-e.ca)%7)||3==n&&_n(e.da)||(t=1));else{t=52;var n=(e.R+7-e.ca-1)%7;(4==n||5==n&&_n(e.da%400-1))&&t++}return a(t,2)},"%w":e=>e.R,"%W":e=>a(Math.floor((e.ca+7-(e.R+6)%7)/7),2),"%y":e=>(e.da+1900).toString().substring(2),"%Y":e=>e.da+1900,"%z":e=>{var t=0<=(e=e.uc);return e=Math.abs(e)/60,(t?"+":"-")+String("0000"+(e/60*100+e%60)).slice(-4)},"%Z":e=>e.xc,"%%":()=>"%"},n=n.replace(/%%/g,"\0\0"),c)n.includes(l)&&(n=n.replace(new RegExp(l,"g"),c[l](r)));return(l=ue(n=n.replace(/\0\0/g,"%"),!1)).length>t?0:(C.set(l,e),l.length-1)})(e,t,n,r)};!function(){function e(e){if(A=e=e.exports,_=A.memory,O(),F=A.__indirect_function_table,k.unshift(A.__wasm_call_ctors),B--,i.monitorRunDependencies&&i.monitorRunDependencies(B),0==B&&(null!==W&&(clearInterval(W),W=null),N)){var t=N;N=null,t()}return e}var t={env:Pn,wasi_snapshot_preview1:Pn};if(B++,i.monitorRunDependencies&&i.monitorRunDependencies(B),i.instantiateWasm)try{return i.instantiateWasm(t,e)}catch(e){w("Module.instantiateWasm callback failed with error: "+e),n(e)}(function(e,t){var n=U;return b||"function"!=typeof WebAssembly.instantiateStreaming||$(n)||n.startsWith("file://")||"function"!=typeof fetch?V(n,e,t):fetch(n,{credentials:"same-origin"}).then((r=>WebAssembly.instantiateStreaming(r,e).then(t,(function(r){return w("wasm streaming compile failed: "+r),w("falling back to ArrayBuffer instantiation"),V(n,e,t)}))))})(t,(function(t){e(t.instance)})).catch(n)}();var Ln=e=>(Ln=A.free)(e),Mn=e=>(Mn=A.malloc)(e),Sn=i._ma_device__on_notification_unlocked=e=>(Sn=i._ma_device__on_notification_unlocked=A.ma_device__on_notification_unlocked)(e);i._ma_malloc_emscripten=(e,t)=>(i._ma_malloc_emscripten=A.ma_malloc_emscripten)(e,t),i._ma_free_emscripten=(e,t)=>(i._ma_free_emscripten=A.ma_free_emscripten)(e,t);var xn,On=i._ma_device_process_pcm_frames_capture__webaudio=(e,t,n)=>(On=i._ma_device_process_pcm_frames_capture__webaudio=A.ma_device_process_pcm_frames_capture__webaudio)(e,t,n),Fn=i._ma_device_process_pcm_frames_playback__webaudio=(e,t,n)=>(Fn=i._ma_device_process_pcm_frames_playback__webaudio=A.ma_device_process_pcm_frames_playback__webaudio)(e,t,n),jn=()=>(jn=A.__errno_location)(),kn=e=>(kn=A.__getTypeName)(e);function In(){function e(){if(!xn&&(xn=!0,i.calledRun=!0,!x)){if(i.noFSInit||ve||(ve=!0,Xe(),i.stdin=i.stdin,i.stdout=i.stdout,i.stderr=i.stderr,i.stdin?Ge("stdin",i.stdin):$e("/dev/tty","/dev/stdin"),i.stdout?Ge("stdout",null,i.stdout):$e("/dev/tty","/dev/stdout"),i.stderr?Ge("stderr",null,i.stderr):$e("/dev/tty1","/dev/stderr"),Ye("/dev/stdin",0),Ye("/dev/stdout",1),Ye("/dev/stderr",1)),Ee=!1,J(k),t(i),i.onRuntimeInitialized&&i.onRuntimeInitialized(),i.postRun)for("function"==typeof i.postRun&&(i.postRun=[i.postRun]);i.postRun.length;){var e=i.postRun.shift();I.unshift(e)}J(I)}}if(!(0
(i.__embind_initialize_bindings=A._embind_initialize_bindings)(),i.dynCall_iiji=(e,t,n,r,a)=>(i.dynCall_iiji=A.dynCall_iiji)(e,t,n,r,a),i.dynCall_jiji=(e,t,n,r,a)=>(i.dynCall_jiji=A.dynCall_jiji)(e,t,n,r,a),i.dynCall_iiiji=(e,t,n,r,a,o)=>(i.dynCall_iiiji=A.dynCall_iiiji)(e,t,n,r,a,o),i.dynCall_iij=(e,t,n,r)=>(i.dynCall_iij=A.dynCall_iij)(e,t,n,r),i.dynCall_jii=(e,t,n)=>(i.dynCall_jii=A.dynCall_jii)(e,t,n),i.dynCall_viijii=(e,t,n,r,a,o,s)=>(i.dynCall_viijii=A.dynCall_viijii)(e,t,n,r,a,o,s),i.dynCall_iiiiij=(e,t,n,r,a,o,s)=>(i.dynCall_iiiiij=A.dynCall_iiiiij)(e,t,n,r,a,o,s),i.dynCall_iiiiijj=(e,t,n,r,a,o,s,u,c)=>(i.dynCall_iiiiijj=A.dynCall_iiiiijj)(e,t,n,r,a,o,s,u,c),i.dynCall_iiiiiijj=(e,t,n,r,a,o,s,u,c,l)=>(i.dynCall_iiiiiijj=A.dynCall_iiiiiijj)(e,t,n,r,a,o,s,u,c,l),N=function e(){xn||In(),xn||(N=e)},i.preInit)for("function"==typeof i.preInit&&(i.preInit=[i.preInit]);0
{e.exports=JSON.parse('{"name":"@rive-app/canvas","version":"2.23.10","description":"Rive\'s canvas based web api.","main":"rive.js","homepage":"https://rive.app","repository":{"type":"git","url":"https://github.com/rive-app/rive-wasm/tree/master/js"},"keywords":["rive","animation"],"author":"Rive","contributors":["Luigi Rosso
(https://rive.app)","Maxwell Talbot
(https://rive.app)","Arthur Vivian
(https://rive.app)","Umberto Sonnino
(https://rive.app)","Matthew Sullivan
(mailto:matt.j.sullivan@gmail.com)"],"license":"MIT","files":["rive.js","rive.js.map","rive.wasm","rive_fallback.wasm","rive.d.ts","rive_advanced.mjs.d.ts"],"typings":"rive.d.ts","dependencies":{},"browser":{"fs":false,"path":false}}')},(e,t,n)=>{n.r(t),n.d(t,{Animation:()=>r.Animation});var r=n(4)},(e,t,n)=>{n.r(t),n.d(t,{Animation:()=>r});var r=function(){function e(e,t,n,r){this.animation=e,this.artboard=t,this.playing=r,this.loopCount=0,this.scrubTo=null,this.instance=new n.LinearAnimationInstance(e,t)}return Object.defineProperty(e.prototype,"name",{get:function(){return this.animation.name},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"time",{get:function(){return this.instance.time},set:function(e){this.instance.time=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"loopValue",{get:function(){return this.animation.loopValue},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"needsScrub",{get:function(){return null!==this.scrubTo},enumerable:!1,configurable:!0}),e.prototype.advance=function(e){null===this.scrubTo?this.instance.advance(e):(this.instance.time=0,this.instance.advance(this.scrubTo),this.scrubTo=null)},e.prototype.apply=function(e){this.instance.apply(e)},e.prototype.cleanup=function(){this.instance.delete()},e}()},(e,t,n)=>{n.r(t),n.d(t,{BLANK_URL:()=>i.BLANK_URL,registerTouchInteractions:()=>r.registerTouchInteractions,sanitizeUrl:()=>i.sanitizeUrl});var r=n(6),i=n(7)},(e,t,n)=>{n.r(t),n.d(t,{registerTouchInteractions:()=>r});var r=function(e){var t=e.canvas,n=e.artboard,r=e.stateMachines,i=void 0===r?[]:r,a=e.renderer,o=e.rive,s=e.fit,u=e.alignment,c=e.isTouchScrollEnabled,l=void 0!==c&&c,h=e.layoutScaleFactor,f=void 0===h?1:h;if(!(t&&i.length&&a&&o&&n&&"undefined"!=typeof window))return null;var d=null,p=!1,v=function(e){if(p&&e instanceof MouseEvent)"mouseup"==e.type&&(p=!1);else{p=l&&"touchend"===e.type&&"touchstart"===d,d=e.type;var t=e.currentTarget.getBoundingClientRect(),r=function(e,t){var n,r;return["touchstart","touchmove"].indexOf(e.type)>-1&&(null===(n=e.touches)||void 0===n?void 0:n.length)?(t||e.preventDefault(),{clientX:e.touches[0].clientX,clientY:e.touches[0].clientY}):"touchend"===e.type&&(null===(r=e.changedTouches)||void 0===r?void 0:r.length)?{clientX:e.changedTouches[0].clientX,clientY:e.changedTouches[0].clientY}:{clientX:e.clientX,clientY:e.clientY}}(e,l),a=r.clientX,c=r.clientY;if(a||c){var h=a-t.left,v=c-t.top,m=o.computeAlignment(s,u,{minX:0,minY:0,maxX:t.width,maxY:t.height},n.bounds,f),g=new o.Mat2D;m.invert(g);var b=new o.Vec2D(h,v),y=o.mapXY(g,b),w=y.x(),_=y.y();switch(y.delete(),g.delete(),b.delete(),m.delete(),e.type){case"mouseout":for(var A=0,C=i;A
{n.r(t),n.d(t,{BLANK_URL:()=>c,sanitizeUrl:()=>l});var r=/^([^\w]*)(javascript|data|vbscript)/im,i=/(\w+)(^\w|;)?/g,a=/&(newline|tab);/gi,o=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,s=/^.+(:|:)/gim,u=[".","/"],c="about:blank";function l(e){if(!e)return c;var t,n=(t=e,t.replace(o,"").replace(i,(function(e,t){return String.fromCharCode(t)}))).replace(a,"").replace(o,"").trim();if(!n)return c;if(function(e){return u.indexOf(e[0])>-1}(n))return n;var l=n.match(s);if(!l)return n;var h=l[0];return r.test(h)?c:n}}],t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var a=t[r]={exports:{}};return e[r](a,a.exports,n),a.exports}n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return(()=>{n.r(r),n.d(r,{Alignment:()=>i,EventType:()=>g,Fit:()=>t,Layout:()=>d,LoopType:()=>b,Rive:()=>S,RiveEventType:()=>v,RiveFile:()=>M,RuntimeLoader:()=>p,StateMachineInput:()=>m,StateMachineInputType:()=>f,Testing:()=>F,decodeAudio:()=>j,decodeFont:()=>I,decodeImage:()=>k});var e,t,i,a=n(1),o=n(2),s=n(3),u=n(5),c=(e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}),l=function(e,t,n,r){return new(n||(n=Promise))((function(i,a){function o(e){try{u(r.next(e))}catch(e){a(e)}}function s(e){try{u(r.throw(e))}catch(e){a(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}u((r=r.apply(e,t||[])).next())}))},h=function(e,t){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]
0;)null===(n=e.callBackQueue.shift())||void 0===n||n(e.runtime)})).catch((function(t){var n={message:(null==t?void 0:t.message)||"Unknown error",type:(null==t?void 0:t.name)||"Error",wasmError:t instanceof WebAssembly.CompileError||t instanceof WebAssembly.RuntimeError,originalError:t};console.debug("Rive WASM load error details:",n);var r="https://cdn.jsdelivr.net/npm/".concat(o.name,"@").concat(o.version,"/rive_fallback.wasm");if(e.wasmURL.toLowerCase()!==r)console.warn("Failed to load WASM from ".concat(e.wasmURL," (").concat(n.message,"), trying jsdelivr as a backup")),e.setWasmUrl(r),e.loadRuntime();else{var i=["Could not load Rive WASM file from ".concat(e.wasmURL," or ").concat(r,"."),"Possible reasons:","- Network connection is down","- WebAssembly is not supported in this environment","- The WASM file is corrupted or incompatible","\nError details:","- Type: ".concat(n.type),"- Message: ".concat(n.message),"- WebAssembly-specific error: ".concat(n.wasmError),"\nTo resolve, you may need to:","1. Check your network connection","2. Set a new WASM source via RuntimeLoader.setWasmUrl()","3. Call RuntimeLoader.loadRuntime() again"].join("\n");console.error(i)}}))},e.getInstance=function(t){e.isLoading||(e.isLoading=!0,e.loadRuntime()),e.runtime?t(e.runtime):e.callBackQueue.push(t)},e.awaitInstance=function(){return new Promise((function(t){return e.getInstance((function(e){return t(e)}))}))},e.setWasmUrl=function(t){e.wasmURL=t},e.getWasmUrl=function(){return e.wasmURL},e.isLoading=!1,e.callBackQueue=[],e.wasmURL="https://unpkg.com/".concat(o.name,"@").concat(o.version,"/rive.wasm"),e}();!function(e){e[e.Number=56]="Number",e[e.Trigger=58]="Trigger",e[e.Boolean=59]="Boolean"}(f||(f={}));var v,m=function(){function e(e,t){this.type=e,this.runtimeInput=t}return Object.defineProperty(e.prototype,"name",{get:function(){return this.runtimeInput.name},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this.runtimeInput.value},set:function(e){this.runtimeInput.value=e},enumerable:!1,configurable:!0}),e.prototype.fire=function(){this.type===f.Trigger&&this.runtimeInput.fire()},e}();!function(e){e[e.General=128]="General",e[e.OpenUrl=131]="OpenUrl"}(v||(v={}));var g,b,y=function(){function e(e,t,n,r){this.stateMachine=e,this.playing=n,this.artboard=r,this.inputs=[],this.instance=new t.StateMachineInstance(e,r),this.initInputs(t)}return Object.defineProperty(e.prototype,"name",{get:function(){return this.stateMachine.name},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"statesChanged",{get:function(){for(var e=[],t=0;t
=0||u>=0)o>=0?this.animations[o].playing=t:this.stateMachines[u].playing=t;else{var c=this.artboard.animationByName(e[a]);if(c){var l=new s.Animation(c,this.artboard,this.runtime,t);l.advance(0),l.apply(1),this.animations.push(l)}else{var h=this.artboard.stateMachineByName(e[a]);if(h){var f=new y(h,this.runtime,t,this.artboard);this.stateMachines.push(f)}}}}return n&&(t?this.eventManager.fire({type:g.Play,data:this.playing}):this.eventManager.fire({type:g.Pause,data:this.paused})),t?this.playing:this.paused},e.prototype.initLinearAnimations=function(e,t){for(var n=this.animations.map((function(e){return e.name})),r=0;r
=0)this.animations[i].playing=t;else{var a=this.artboard.animationByName(e[r]);if(a){var o=new s.Animation(a,this.artboard,this.runtime,t);o.advance(0),o.apply(1),this.animations.push(o)}}}},e.prototype.initStateMachines=function(e,t){for(var n=this.stateMachines.map((function(e){return e.name})),r=0;r
=0)this.stateMachines[i].playing=t;else{var a=this.artboard.stateMachineByName(e[r]);if(a){var o=new y(a,this.runtime,t,this.artboard);this.stateMachines.push(o)}else this.initLinearAnimations([e[r]],t)}}},e.prototype.play=function(e){return this.add(e,!0)},e.prototype.pause=function(e){return this.add(e,!1)},e.prototype.scrub=function(e,t){var n=this.animations.filter((function(t){return e.includes(t.name)}));return n.forEach((function(e){return e.scrubTo=t})),n.map((function(e){return e.name}))},Object.defineProperty(e.prototype,"playing",{get:function(){return this.animations.filter((function(e){return e.playing})).map((function(e){return e.name})).concat(this.stateMachines.filter((function(e){return e.playing})).map((function(e){return e.name})))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"paused",{get:function(){return this.animations.filter((function(e){return!e.playing})).map((function(e){return e.name})).concat(this.stateMachines.filter((function(e){return!e.playing})).map((function(e){return e.name})))},enumerable:!1,configurable:!0}),e.prototype.stop=function(e){var t=this,n=[];if(0===(e=O(e)).length)n=this.animations.map((function(e){return e.name})).concat(this.stateMachines.map((function(e){return e.name}))),this.animations.forEach((function(e){return e.cleanup()})),this.stateMachines.forEach((function(e){return e.cleanup()})),this.animations.splice(0,this.animations.length),this.stateMachines.splice(0,this.stateMachines.length);else{var r=this.animations.filter((function(t){return e.includes(t.name)}));r.forEach((function(e){e.cleanup(),t.animations.splice(t.animations.indexOf(e),1)}));var i=this.stateMachines.filter((function(t){return e.includes(t.name)}));i.forEach((function(e){e.cleanup(),t.stateMachines.splice(t.stateMachines.indexOf(e),1)})),n=r.map((function(e){return e.name})).concat(i.map((function(e){return e.name})))}return this.eventManager.fire({type:g.Stop,data:n}),n},Object.defineProperty(e.prototype,"isPlaying",{get:function(){return this.animations.reduce((function(e,t){return e||t.playing}),!1)||this.stateMachines.reduce((function(e,t){return e||t.playing}),!1)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isPaused",{get:function(){return!this.isPlaying&&(this.animations.length>0||this.stateMachines.length>0)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isStopped",{get:function(){return 0===this.animations.length&&0===this.stateMachines.length},enumerable:!1,configurable:!0}),e.prototype.atLeastOne=function(e,t){var n;return void 0===t&&(t=!0),0===this.animations.length&&0===this.stateMachines.length&&(this.artboard.animationCount()>0?this.add([n=this.artboard.animationByIndex(0).name],e,t):this.artboard.stateMachineCount()>0&&this.add([n=this.artboard.stateMachineByIndex(0).name],e,t)),n},e.prototype.handleLooping=function(){for(var e=0,t=this.animations.filter((function(e){return e.playing}));e
1&&(this.eventManager.fire({type:g.Loop,data:{animation:n.name,type:b.PingPong}}),n.loopCount=0)}},e.prototype.handleStateChanges=function(){for(var e=[],t=0,n=this.stateMachines.filter((function(e){return e.playing}));t
0&&this.eventManager.fire({type:g.StateChange,data:e})},e.prototype.handleAdvancing=function(e){this.eventManager.fire({type:g.Advance,data:e})},e}();!function(e){e.Load="load",e.LoadError="loaderror",e.Play="play",e.Pause="pause",e.Stop="stop",e.Loop="loop",e.Draw="draw",e.Advance="advance",e.StateChange="statechange",e.RiveEvent="riveevent",e.AudioStatusChange="audiostatuschange"}(g||(g={})),function(e){e.OneShot="oneshot",e.Loop="loop",e.PingPong="pingpong"}(b||(b={}));var _,A=function(){function e(e){void 0===e&&(e=[]),this.listeners=e}return e.prototype.getListeners=function(e){return this.listeners.filter((function(t){return t.type===e}))},e.prototype.add=function(e){this.listeners.includes(e)||this.listeners.push(e)},e.prototype.remove=function(e){for(var t=0;t
0;){var e=this.queue.shift();(null==e?void 0:e.action)&&e.action(),(null==e?void 0:e.event)&&this.eventManager.fire(e.event)}},e}();!function(e){e[e.AVAILABLE=0]="AVAILABLE",e[e.UNAVAILABLE=1]="UNAVAILABLE"}(_||(_={}));var R=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._started=!1,t._enabled=!1,t._status=_.UNAVAILABLE,t}return c(t,e),t.prototype.delay=function(e){return l(this,void 0,void 0,(function(){return h(this,(function(t){return[2,new Promise((function(t){return setTimeout(t,e)}))]}))}))},t.prototype.timeout=function(){return l(this,void 0,void 0,(function(){return h(this,(function(e){return[2,new Promise((function(e,t){return setTimeout(t,50)}))]}))}))},t.prototype.reportToListeners=function(){this.fire({type:g.AudioStatusChange}),this.removeAll()},t.prototype.enableAudio=function(){return l(this,void 0,void 0,(function(){return h(this,(function(e){return this._enabled||(this._enabled=!0,this._status=_.AVAILABLE,this.reportToListeners()),[2]}))}))},t.prototype.testAudio=function(){return l(this,void 0,void 0,(function(){return h(this,(function(e){switch(e.label){case 0:if(this._status!==_.UNAVAILABLE||null===this._audioContext)return[3,4];e.label=1;case 1:return e.trys.push([1,3,,4]),[4,Promise.race([this._audioContext.resume(),this.timeout()])];case 2:return e.sent(),this.enableAudio(),[3,4];case 3:return e.sent(),[3,4];case 4:return[2]}}))}))},t.prototype._establishAudio=function(){return l(this,void 0,void 0,(function(){return h(this,(function(e){switch(e.label){case 0:return this._started?[3,5]:(this._started=!0,"undefined"!=typeof window?[3,1]:(this.enableAudio(),[3,5]));case 1:this._audioContext=new AudioContext,this.listenForUserAction(),e.label=2;case 2:return this._status!==_.UNAVAILABLE?[3,5]:[4,this.testAudio()];case 3:return e.sent(),[4,this.delay(1e3)];case 4:return e.sent(),[3,2];case 5:return[2]}}))}))},t.prototype.listenForUserAction=function(){var e=this;document.addEventListener("pointerdown",(function(){return l(e,void 0,void 0,(function(){return h(this,(function(e){return this.enableAudio(),[2]}))}))}),{once:!0})},t.prototype.establishAudio=function(){return l(this,void 0,void 0,(function(){return h(this,(function(e){return this._establishAudio(),[2]}))}))},Object.defineProperty(t.prototype,"systemVolume",{get:function(){return this._status===_.UNAVAILABLE?(this.testAudio(),0):1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"status",{get:function(){return this._status},enumerable:!1,configurable:!0}),t}(A),E=new R,T=function(){function e(){}return e.prototype.observe=function(){},e.prototype.unobserve=function(){},e.prototype.disconnect=function(){},e}(),P=globalThis.ResizeObserver||T,L=new(function(){function e(){var e=this;this._elementsMap=new Map,this._onObservedEntry=function(t){var n=e._elementsMap.get(t.target);null!==n?n.onResize(0==t.target.clientWidth||0==t.target.clientHeight):e._resizeObserver.unobserve(t.target)},this._onObserved=function(t){t.forEach(e._onObservedEntry)},this._resizeObserver=new P(this._onObserved)}return e.prototype.add=function(e,t){var n={onResize:t,element:e};return this._elementsMap.set(e,n),this._resizeObserver.observe(e),n},e.prototype.remove=function(e){this._resizeObserver.unobserve(e.element),this._elementsMap.delete(e.element)},e}()),M=function(){function e(e){this.enableRiveAssetCDN=!0,this.referenceCount=0,this.src=e.src,this.buffer=e.buffer,e.assetLoader&&(this.assetLoader=e.assetLoader),this.enableRiveAssetCDN="boolean"!=typeof e.enableRiveAssetCDN||e.enableRiveAssetCDN,this.eventManager=new A,e.onLoad&&this.on(g.Load,e.onLoad),e.onLoadError&&this.on(g.LoadError,e.onLoadError)}return e.prototype.initData=function(){return l(this,void 0,void 0,(function(){var t,n,r;return h(this,(function(i){switch(i.label){case 0:return this.src?(t=this,[4,x(this.src)]):[3,2];case 1:t.buffer=i.sent(),i.label=2;case 2:return this.assetLoader&&(n=new this.runtime.CustomFileAssetLoader({loadContents:this.assetLoader})),r=this,[4,this.runtime.load(new Uint8Array(this.buffer),n,this.enableRiveAssetCDN)];case 3:if(r.file=i.sent(),null===this.file)throw this.eventManager.fire({type:g.LoadError,data:null}),new Error(e.fileLoadErrorMessage);return this.eventManager.fire({type:g.Load,data:this}),[2]}}))}))},e.prototype.init=function(){return l(this,void 0,void 0,(function(){var t;return h(this,(function(n){switch(n.label){case 0:if(!this.src&&!this.buffer)throw new Error(e.missingErrorMessage);return t=this,[4,p.awaitInstance()];case 1:return t.runtime=n.sent(),[4,this.initData()];case 2:return n.sent(),[2]}}))}))},e.prototype.on=function(e,t){this.eventManager.add({type:e,callback:t})},e.prototype.off=function(e,t){this.eventManager.remove({type:e,callback:t})},e.prototype.cleanup=function(){var e;this.referenceCount-=1,this.referenceCount<=0&&(this.removeAllRiveEventListeners(),null===(e=this.file)||void 0===e||e.delete())},e.prototype.removeAllRiveEventListeners=function(e){this.eventManager.removeAll(e)},e.prototype.getInstance=function(){if(null!==this.file)return this.referenceCount+=1,this.file},e.missingErrorMessage="Rive source file or data buffer required",e.fileLoadErrorMessage="The file failed to load",e}(),S=function(){function e(e){var t,n=this;this.loaded=!1,this.readyForPlaying=!1,this.artboard=null,this.eventCleanup=null,this.shouldDisableRiveListeners=!1,this.automaticallyHandleEvents=!1,this.enableRiveAssetCDN=!0,this._volume=1,this._artboardWidth=void 0,this._artboardHeight=void 0,this._devicePixelRatioUsed=1,this._hasZeroSize=!1,this.durations=[],this.frameTimes=[],this.frameCount=0,this.isTouchScrollEnabled=!1,this.onCanvasResize=function(e){n._hasZeroSize=e,n._layout.maxX&&n._layout.maxY||n.resizeToCanvas()},this.renderSecondTimer=0,this.canvas=e.canvas,e.canvas.constructor===HTMLCanvasElement&&(this._observed=L.add(this.canvas,this.onCanvasResize)),this.src=e.src,this.buffer=e.buffer,this.riveFile=e.riveFile,this.layout=null!==(t=e.layout)&&void 0!==t?t:new d,this.shouldDisableRiveListeners=!!e.shouldDisableRiveListeners,this.isTouchScrollEnabled=!!e.isTouchScrollEnabled,this.automaticallyHandleEvents=!!e.automaticallyHandleEvents,this.enableRiveAssetCDN=void 0===e.enableRiveAssetCDN||e.enableRiveAssetCDN,this.eventManager=new A,e.onLoad&&this.on(g.Load,e.onLoad),e.onLoadError&&this.on(g.LoadError,e.onLoadError),e.onPlay&&this.on(g.Play,e.onPlay),e.onPause&&this.on(g.Pause,e.onPause),e.onStop&&this.on(g.Stop,e.onStop),e.onLoop&&this.on(g.Loop,e.onLoop),e.onStateChange&&this.on(g.StateChange,e.onStateChange),e.onAdvance&&this.on(g.Advance,e.onAdvance),e.onload&&!e.onLoad&&this.on(g.Load,e.onload),e.onloaderror&&!e.onLoadError&&this.on(g.LoadError,e.onloaderror),e.onplay&&!e.onPlay&&this.on(g.Play,e.onplay),e.onpause&&!e.onPause&&this.on(g.Pause,e.onpause),e.onstop&&!e.onStop&&this.on(g.Stop,e.onstop),e.onloop&&!e.onLoop&&this.on(g.Loop,e.onloop),e.onstatechange&&!e.onStateChange&&this.on(g.StateChange,e.onstatechange),e.assetLoader&&(this.assetLoader=e.assetLoader),this.taskQueue=new C(this.eventManager),this.init({src:this.src,buffer:this.buffer,riveFile:this.riveFile,autoplay:e.autoplay,animations:e.animations,stateMachines:e.stateMachines,artboard:e.artboard,useOffscreenRenderer:e.useOffscreenRenderer})}return e.new=function(t){return console.warn("This function is deprecated: please use `new Rive({})` instead"),new e(t)},e.prototype.onSystemAudioChanged=function(){this.volume=this._volume},e.prototype.init=function(t){var n=this,r=t.src,i=t.buffer,a=t.riveFile,o=t.animations,s=t.stateMachines,u=t.artboard,c=t.autoplay,l=void 0!==c&&c,h=t.useOffscreenRenderer,f=void 0!==h&&h;if(this.src=r,this.buffer=i,this.riveFile=a,!this.src&&!this.buffer&&!this.riveFile)throw new Error(e.missingErrorMessage);var d=O(o),v=O(s);this.loaded=!1,this.readyForPlaying=!1,p.awaitInstance().then((function(e){n.runtime=e,n.renderer=n.runtime.makeRenderer(n.canvas,f),n.canvas.width||n.canvas.height||n.resizeDrawingSurfaceToCanvas(),n.initData(u,d,v,l).then((function(){return n.setupRiveListeners()})).catch((function(e){console.error(e)}))})).catch((function(e){console.error(e)}))},e.prototype.setupRiveListeners=function(e){var t=this;if(!this.shouldDisableRiveListeners){var n=(this.animator.stateMachines||[]).filter((function(e){return e.playing&&t.runtime.hasListeners(e.instance)})).map((function(e){return e.instance})),r=this.isTouchScrollEnabled;e&&"isTouchScrollEnabled"in e&&(r=e.isTouchScrollEnabled),this.eventCleanup=(0,u.registerTouchInteractions)({canvas:this.canvas,artboard:this.artboard,stateMachines:n,renderer:this.renderer,rive:this.runtime,fit:this._layout.runtimeFit(this.runtime),alignment:this._layout.runtimeAlignment(this.runtime),isTouchScrollEnabled:r,layoutScaleFactor:this._layout.layoutScaleFactor})}},e.prototype.removeRiveListeners=function(){this.eventCleanup&&this.eventCleanup()},e.prototype.initializeAudio=function(){var e,t=this;E.status==_.UNAVAILABLE&&(null===(e=this.artboard)||void 0===e?void 0:e.hasAudio)&&(E.add({type:g.AudioStatusChange,callback:function(){return t.onSystemAudioChanged()}}),E.establishAudio())},e.prototype.initArtboardSize=function(){this.artboard&&(this._artboardWidth=this.artboard.width=this._artboardWidth||this.artboard.width,this._artboardHeight=this.artboard.height=this._artboardHeight||this.artboard.height)},e.prototype.initData=function(e,t,n,r){var i;return l(this,void 0,void 0,(function(){var a;return h(this,(function(o){switch(o.label){case 0:return o.trys.push([0,3,,4]),null!=this.riveFile?[3,2]:(this.riveFile=new M({src:this.src,buffer:this.buffer,enableRiveAssetCDN:this.enableRiveAssetCDN,assetLoader:this.assetLoader}),[4,this.riveFile.init()]);case 1:o.sent(),o.label=2;case 2:return this.file=this.riveFile.getInstance(),this.initArtboard(e,t,n,r),this.initArtboardSize(),this.initializeAudio(),this.loaded=!0,this.eventManager.fire({type:g.Load,data:null!==(i=this.src)&&void 0!==i?i:"buffer"}),this.readyForPlaying=!0,this.taskQueue.process(),this.drawFrame(),[2,Promise.resolve()];case 3:return o.sent(),a="Problem loading file; may be corrupt!",console.warn(a),this.eventManager.fire({type:g.LoadError,data:a}),[2,Promise.reject(a)];case 4:return[2]}}))}))},e.prototype.initArtboard=function(e,t,n,r){if(this.file){var i,a=e?this.file.artboardByName(e):this.file.defaultArtboard();if(!a){var o="Invalid artboard name or no default artboard";return console.warn(o),void this.eventManager.fire({type:g.LoadError,data:o})}if(this.artboard=a,a.volume=this._volume*E.systemVolume,this.artboard.animationCount()<1)throw o="Artboard has no animations",this.eventManager.fire({type:g.LoadError,data:o}),o;this.animator=new w(this.runtime,this.artboard,this.eventManager),t.length>0||n.length>0?(i=t.concat(n),this.animator.initLinearAnimations(t,r),this.animator.initStateMachines(n,r)):i=[this.animator.atLeastOne(r,!1)],this.taskQueue.add({event:{type:r?g.Play:g.Pause,data:i}})}},e.prototype.drawFrame=function(){this.startRendering()},e.prototype.draw=function(e,t){this.frameRequestId=null;var n=performance.now();this.lastRenderTime||(this.lastRenderTime=e),this.renderSecondTimer+=e-this.lastRenderTime,this.renderSecondTimer>5e3&&(this.renderSecondTimer=0,null==t||t());var r=(e-this.lastRenderTime)/1e3;this.lastRenderTime=e;for(var i=0,a=this.animator.animations.filter((function(e){return e.playing||e.needsScrub})).sort((function(e){return e.needsScrub?-1:1}));i
{Object.defineProperty(t,"__esModule",{value:!0});var r=n(99196),i=n(7665);function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=a(r),s=function(){return s=Object.assign||function(e){for(var t,n=1,r=arguments.length;n
0&&e.height>0&&e.top<(window.innerHeight||document.documentElement.clientHeight)&&e.bottom>0&&e.left<(window.innerWidth||document.documentElement.clientWidth)&&e.right>0&&(null==f||f.startRendering(),t=!1)}};return a&&!1!==v.shouldUseIntersectionObserver&&E(a,(function(r){r.isIntersecting?f&&f.startRendering():f&&f.stopRendering(),t=!r.isIntersecting,clearTimeout(e),r.isIntersecting||0!==r.boundingClientRect.width||(e=setTimeout(n,10))})),function(){a&&T(a)}}),[E,T,f,a,v.shouldUseIntersectionObserver]),r.useEffect((function(){return function(){f&&(f.cleanup(),d(null))}}),[f,a]);var P=null==e?void 0:e.animations;r.useEffect((function(){f&&P&&(f.isPlaying?(f.stop(f.animationNames),f.play(P)):f.isPaused&&(f.stop(f.animationNames),f.pause(P)))}),[P,f]);var L=r.useCallback((function(e){return o.default.createElement(R,s({setContainerRef:_,setCanvasRef:w},e))}),[w,_]);return{canvas:a,container:l.current,setCanvasRef:w,setContainerRef:_,rive:f,RiveComponent:L}}t.default=function(e){var t=e.src,n=e.artboard,r=e.animations,i=e.stateMachines,a=e.layout,c=e.useOffscreenRenderer,l=void 0===c||c,h=e.shouldDisableRiveListeners,f=void 0!==h&&h,d=e.shouldResizeCanvasToContainer,p=void 0===d||d,v=e.automaticallyHandleEvents,m=void 0!==v&&v,g=e.children,b=u(e,["src","artboard","animations","stateMachines","layout","useOffscreenRenderer","shouldDisableRiveListeners","shouldResizeCanvasToContainer","automaticallyHandleEvents","children"]),y=E({src:t,artboard:n,animations:r,layout:a,stateMachines:i,autoplay:!0,shouldDisableRiveListeners:f,automaticallyHandleEvents:m},{useOffscreenRenderer:l,shouldResizeCanvasToContainer:p}).RiveComponent;return o.default.createElement(y,s({},b),g)},t.useResizeCanvas=b,t.useRive=E,t.useRiveFile=function(e){var t=this,n=r.useState(null),a=n[0],o=n[1],s=r.useState("idle"),u=s[0],c=s[1];return r.useEffect((function(){var n=null;return function(e,t,n,r){new(n||(n=Promise))((function(t,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function o(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var r;e.done?t(e.value):(r=e.value,r instanceof n?r:new n((function(e){e(r)}))).then(a,o)}s((r=r.apply(e,[])).next())}))}(t,0,void 0,(function(){return function(e,t){var n,r,i,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return o.next=s(0),o.throw=s(1),o.return=s(2),"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]
{"use strict";n.d(t,{Z:()=>a});var r=n(6293),i=n(14776);const a=(0,r.createElement)(i.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)(i.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V7h15v12zM9 10H7v2h2v-2zm0 4H7v2h2v-2zm4-4h-2v2h2v-2zm4 0h-2v2h2v-2zm-4 4h-2v2h2v-2zm4 0h-2v2h2v-2z"}))},32010:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(6293),i=n(14776);const a=(0,r.createElement)(i.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)(i.Path,{d:"M6 5.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM4 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2V6zm11-.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5h-3a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM13 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2h-3a2 2 0 01-2-2V6zm5 8.5h-3a.5.5 0 00-.5.5v3a.5.5 0 00.5.5h3a.5.5 0 00.5-.5v-3a.5.5 0 00-.5-.5zM15 13a2 2 0 00-2 2v3a2 2 0 002 2h3a2 2 0 002-2v-3a2 2 0 00-2-2h-3zm-9 1.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5v-3a.5.5 0 01.5-.5zM4 15a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2v-3z",fillRule:"evenodd",clipRule:"evenodd"}))},65202:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(6293),i=n(14776);const a=(0,r.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(i.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"}))},67527:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(6293),i=n(14776);const a=(0,r.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(i.Path,{d:"M12 3.176l6.75 3.068v4.574c0 3.9-2.504 7.59-6.035 8.755a2.283 2.283 0 01-1.43 0c-3.53-1.164-6.035-4.856-6.035-8.755V6.244L12 3.176zM6.75 7.21v3.608c0 3.313 2.145 6.388 5.005 7.33.159.053.331.053.49 0 2.86-.942 5.005-4.017 5.005-7.33V7.21L12 4.824 6.75 7.21z",fillRule:"evenodd",clipRule:"evenodd"}))},35800:function(e,t,n){!function(e,t){"use strict";function n(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var r=n(t);function i(e,t){return i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}var a={error:null},o=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i
{"use strict";n.d(t,{r8:()=>o});var r=n(99196);function i(){return(i=Object.assign||function(e){for(var t=1;t
((e,t)=>{const n=Object.keys(t);let o=t,s=null;const u={};n.forEach((e=>{u[e]=new Set}));const c=(t,n)=>n.type===a?n.r?n.r(t):n.e:e(t,n),l=(e,t)=>{const n=n=>{return i({},n,{[e]:(r=n[e],a=t,"function"==typeof a?a(r):a)});var r,a};if(s)s({type:a,r:n});else{o=n(o);const t=o[e];u[e].forEach((e=>e(t)))}},h=(e,t)=>{n.forEach((n=>{const r=t[n];e[n]!==r&&u[n].forEach((e=>e(r)))}))};return{useGlobalStateProvider:()=>{const[e,t]=(0,r.useReducer)(c,o);(0,r.useEffect)((()=>{if(s)throw new Error("Only one global state provider is allowed");return s=t,t({type:a,e:o}),()=>{s=null}}),[]);const n=(0,r.useRef)(e);h(n.current,e),n.current=e,(0,r.useEffect)((()=>{o=e}),[e])},useGlobalState:e=>{const[t,n]=(0,r.useState)(o[e]);return(0,r.useEffect)((()=>(u[e].add(n),n(o[e]),()=>{u[e].delete(n)})),[e]),[t,(0,r.useCallback)((t=>l(e,t)),[e])]},getGlobalState:e=>o[e],setGlobalState:l,getState:()=>o,setState:e=>{if(s)s({type:a,e});else{const t=o;o=e,h(t,o)}},dispatch:t=>{if(s)s(t);else{const n=o;o=e(o,t),h(n,o)}return t}}})(((e,t)=>e),e)}}]);