diff --git a/index.js b/index.js index a63aa9c..27a8607 100644 --- a/index.js +++ b/index.js @@ -1,21 +1,21 @@ -"use strict";(()=>{var Ah=Object.create;var Vn=Object.defineProperty;var xh=Object.getOwnPropertyDescriptor;var Mh=Object.getOwnPropertyNames;var Ih=Object.getPrototypeOf,jh=Object.prototype.hasOwnProperty;var ru=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(r,o)=>(typeof require<"u"?require:r)[o]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var Es=(t,r)=>()=>(t&&(r=t(t=0)),r);var Ve=(t,r)=>()=>(r||t((r={exports:{}}).exports,r),r.exports),ws=(t,r)=>{for(var o in r)Vn(t,o,{get:r[o],enumerable:!0})},ou=(t,r,o,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let s of Mh(r))!jh.call(t,s)&&s!==o&&Vn(t,s,{get:()=>r[s],enumerable:!(n=xh(r,s))||n.enumerable});return t};var Ke=(t,r,o)=>(o=t!=null?Ah(Ih(t)):{},ou(r||!t||!t.__esModule?Vn(o,"default",{value:t,enumerable:!0}):o,t)),As=t=>ou(Vn({},"__esModule",{value:!0}),t);var vu={};ws(vu,{Component:()=>ht,Fragment:()=>Oe,cloneElement:()=>Cs,createContext:()=>Wo,createElement:()=>bt,createRef:()=>ko,h:()=>bt,hydrate:()=>qn,isValidElement:()=>uu,options:()=>ge,render:()=>jr,toChildArray:()=>kt});function nr(t,r){for(var o in r)t[o]=r[o];return t}function fu(t){var r=t.parentNode;r&&r.removeChild(t)}function bt(t,r,o){var n,s,l,m={};for(l in r)l=="key"?n=r[l]:l=="ref"?s=r[l]:m[l]=r[l];if(arguments.length>2&&(m.children=arguments.length>3?Uo.call(arguments,2):o),typeof t=="function"&&t.defaultProps!=null)for(l in t.defaultProps)m[l]===void 0&&(m[l]=t.defaultProps[l]);return Bo(t,m,n,s,null)}function Bo(t,r,o,n,s){var l={type:t,props:r,key:o,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:s??++lu,__i:-1};return s==null&&ge.vnode!=null&&ge.vnode(l),l}function ko(){return{current:null}}function Oe(t){return t.children}function ht(t,r){this.props=t,this.context=r}function Fo(t,r){if(r==null)return t.__?Fo(t.__,t.__i+1):null;for(var o;rr&&Ir.sort(xs));Gn.__r=0}function hu(t,r,o,n,s,l,m,S,w,R,D){var M,H,V,$,K,le,oe,se,ne,he=0,ce=n&&n.__k||cu,ie=ce.length,Pe=ie,Ue=r.length;for(o.__k=[],M=0;M0?Bo($.type,$.props,$.key,$.ref?$.ref:null,$.__v):$)!=null?($.__=o,$.__b=o.__b+1,$.__i=M,(se=Ch($,ce,oe=M+he,Pe))===-1?V=zr:(V=ce[se]||zr,ce[se]=void 0,Pe--),js(t,$,V,s,l,m,S,w,R,D),K=$.__e,(H=$.ref)&&V.ref!=H&&(V.ref&&Rs(V.ref,null,$),D.push(H,$.__c||K,$)),le==null&&K!=null&&(le=K),(ne=V===zr||V.__v===null)?se==-1&&he--:se!==oe&&(se===oe+1?he++:se>oe?Pe>Ue-oe?he+=se-oe:he--:he=se(w!=null?1:0))for(;m>=0||S=0){if((w=r[m])&&s==w.key&&l===w.type)return m;m--}if(S2&&(S.children=arguments.length>3?Uo.call(arguments,2):o),Bo(t.type,S,n||t.key,s||t.ref,null)}function Wo(t,r){var o={__c:r="__cC"+pu++,__:t,Consumer:function(n,s){return n.children(s)},Provider:function(n){var s,l;return this.getChildContext||(s=[],(l={})[r]=this,this.getChildContext=function(){return l},this.shouldComponentUpdate=function(m){this.props.value!==m.value&&s.some(function(S){S.__e=!0,Ms(S)})},this.sub=function(m){s.push(m);var S=m.componentWillUnmount;m.componentWillUnmount=function(){s.splice(s.indexOf(m),1),S&&S.call(m)}}),n.children}};return o.Provider.__=o.Consumer.contextType=o}var Uo,ge,lu,uu,Ir,nu,gu,xs,pu,zr,cu,Rh,Yn,Rr=Es(()=>{zr={},cu=[],Rh=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Yn=Array.isArray;Uo=cu.slice,ge={__e:function(t,r,o,n){for(var s,l,m;r=r.__;)if((s=r.__c)&&!s.__)try{if((l=s.constructor)&&l.getDerivedStateFromError!=null&&(s.setState(l.getDerivedStateFromError(t)),m=s.__d),s.componentDidCatch!=null&&(s.componentDidCatch(t,n||{}),m=s.__d),m)return s.__E=s}catch(S){t=S}throw t}},lu=0,uu=function(t){return t!=null&&t.constructor==null},ht.prototype.setState=function(t,r){var o;o=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=nr({},this.state),typeof t=="function"&&(t=t(nr({},o),this.props)),t&&nr(o,t),t!=null&&this.__v&&(r&&this._sb.push(r),Ms(this))},ht.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),Ms(this))},ht.prototype.render=Oe,Ir=[],gu=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,xs=function(t,r){return t.__v.__b-r.__v.__b},Gn.__r=0,pu=0});var Ru={};ws(Ru,{useCallback:()=>Zn,useContext:()=>ei,useDebugValue:()=>ti,useEffect:()=>zo,useErrorBoundary:()=>Iu,useId:()=>ri,useImperativeHandle:()=>Qn,useLayoutEffect:()=>Or,useMemo:()=>$r,useReducer:()=>Ho,useRef:()=>Jn,useState:()=>Gr});function Cr(t,r){ge.__h&&ge.__h(ke,t,Vr||r),Vr=0;var o=ke.__H||(ke.__H={__:[],__h:[]});return t>=o.__.length&&o.__.push({__V:Kn}),o.__[t]}function Gr(t){return Vr=1,Ho(ju,t)}function Ho(t,r,o){var n=Cr(ir++,2);if(n.t=t,!n.__c&&(n.__=[o?o(r):ju(void 0,r),function(S){var w=n.__N?n.__N[0]:n.__[0],R=n.t(w,S);w!==R&&(n.__N=[R,n.__[1]],n.__c.setState({}))}],n.__c=ke,!ke.u)){var s=function(S,w,R){if(!n.__c.__H)return!0;var D=n.__c.__H.__.filter(function(H){return H.__c});if(D.every(function(H){return!H.__N}))return!l||l.call(this,S,w,R);var M=!1;return D.forEach(function(H){if(H.__N){var V=H.__[0];H.__=H.__N,H.__N=void 0,V!==H.__[0]&&(M=!0)}}),!(!M&&n.__c.props===S)&&(!l||l.call(this,S,w,R))};ke.u=!0;var l=ke.shouldComponentUpdate,m=ke.componentWillUpdate;ke.componentWillUpdate=function(S,w,R){if(this.__e){var D=l;l=void 0,s(S,w,R),l=D}m&&m.call(this,S,w,R)},ke.shouldComponentUpdate=s}return n.__N||n.__}function zo(t,r){var o=Cr(ir++,3);!ge.__s&&Ds(o.__H,r)&&(o.__=t,o.i=r,ke.__H.__h.push(o))}function Or(t,r){var o=Cr(ir++,4);!ge.__s&&Ds(o.__H,r)&&(o.__=t,o.i=r,ke.__h.push(o))}function Jn(t){return Vr=5,$r(function(){return{current:t}},[])}function Qn(t,r,o){Vr=6,Or(function(){return typeof t=="function"?(t(r()),function(){return t(null)}):t?(t.current=r(),function(){return t.current=null}):void 0},o==null?o:o.concat(t))}function $r(t,r){var o=Cr(ir++,7);return Ds(o.__H,r)?(o.__V=t(),o.i=r,o.__h=t,o.__V):o.__}function Zn(t,r){return Vr=8,$r(function(){return t},r)}function ei(t){var r=ke.context[t.__c],o=Cr(ir++,9);return o.c=t,r?(o.__==null&&(o.__=!0,r.sub(ke)),r.props.value):t.__}function ti(t,r){ge.useDebugValue&&ge.useDebugValue(r?r(t):t)}function Iu(t){var r=Cr(ir++,10),o=Gr();return r.__=t,ke.componentDidCatch||(ke.componentDidCatch=function(n,s){r.__&&r.__(n,s),o[1](n)}),[o[0],function(){o[1](void 0)}]}function ri(){var t=Cr(ir++,11);if(!t.__){for(var r=ke.__v;r!==null&&!r.__m&&r.__!==null;)r=r.__;var o=r.__m||(r.__m=[0,0]);t.__="P"+o[0]+"-"+o[1]++}return t.__}function Nh(){for(var t;t=Mu.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(Xn),t.__H.__h.forEach(Ps),t.__H.__h=[]}catch(r){t.__H.__h=[],ge.__e(r,t.__v)}}function Lh(t){var r,o=function(){clearTimeout(n),xu&&cancelAnimationFrame(r),setTimeout(t)},n=setTimeout(o,100);xu&&(r=requestAnimationFrame(o))}function Xn(t){var r=ke,o=t.__c;typeof o=="function"&&(t.__c=void 0,o()),ke=r}function Ps(t){var r=ke;t.__c=t.__(),ke=r}function Ds(t,r){return!t||t.length!==r.length||r.some(function(o,n){return o!==t[n]})}function ju(t,r){return typeof r=="function"?r(t):r}var ir,ke,Os,bu,Vr,Mu,Kn,Su,Tu,Eu,wu,Au,xu,oi=Es(()=>{Rr();Vr=0,Mu=[],Kn=[],Su=ge.__b,Tu=ge.__r,Eu=ge.diffed,wu=ge.__c,Au=ge.unmount;ge.__b=function(t){ke=null,Su&&Su(t)},ge.__r=function(t){Tu&&Tu(t),ir=0;var r=(ke=t.__c).__H;r&&(Os===ke?(r.__h=[],ke.__h=[],r.__.forEach(function(o){o.__N&&(o.__=o.__N),o.__V=Kn,o.__N=o.i=void 0})):(r.__h.forEach(Xn),r.__h.forEach(Ps),r.__h=[],ir=0)),Os=ke},ge.diffed=function(t){Eu&&Eu(t);var r=t.__c;r&&r.__H&&(r.__H.__h.length&&(Mu.push(r)!==1&&bu===ge.requestAnimationFrame||((bu=ge.requestAnimationFrame)||Lh)(Nh)),r.__H.__.forEach(function(o){o.i&&(o.__H=o.i),o.__V!==Kn&&(o.__=o.__V),o.i=void 0,o.__V=Kn})),Os=ke=null},ge.__c=function(t,r){r.some(function(o){try{o.__h.forEach(Xn),o.__h=o.__h.filter(function(n){return!n.__||Ps(n)})}catch(n){r.some(function(s){s.__h&&(s.__h=[])}),r=[],ge.__e(n,o.__v)}}),wu&&wu(t,r)},ge.unmount=function(t){Au&&Au(t);var r,o=t.__c;o&&o.__H&&(o.__H.__.forEach(function(n){try{Xn(n)}catch(s){r=s}}),o.__H=void 0,r&&ge.__e(r,o.__v))};xu=typeof requestAnimationFrame=="function"});var pg={};ws(pg,{Children:()=>Hu,Component:()=>ht,Fragment:()=>Oe,PureComponent:()=>ni,StrictMode:()=>ig,Suspense:()=>Vo,SuspenseList:()=>Yr,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:()=>Ju,cloneElement:()=>eg,createContext:()=>Wo,createElement:()=>bt,createFactory:()=>Qu,createPortal:()=>Yu,createRef:()=>ko,default:()=>Jh,findDOMNode:()=>rg,flushSync:()=>ng,forwardRef:()=>Wu,hydrate:()=>Xu,isElement:()=>ug,isFragment:()=>Zu,isValidElement:()=>Go,lazy:()=>$u,memo:()=>ku,render:()=>Ku,startTransition:()=>Fs,unmountComponentAtNode:()=>tg,unstable_batchedUpdates:()=>og,useCallback:()=>Zn,useContext:()=>ei,useDebugValue:()=>ti,useDeferredValue:()=>sg,useEffect:()=>zo,useErrorBoundary:()=>Iu,useId:()=>ri,useImperativeHandle:()=>Qn,useInsertionEffect:()=>lg,useLayoutEffect:()=>Or,useMemo:()=>$r,useReducer:()=>Ho,useRef:()=>Jn,useState:()=>Gr,useSyncExternalStore:()=>gg,useTransition:()=>ag,version:()=>Xh});function Uu(t,r){for(var o in r)t[o]=r[o];return t}function Ls(t,r){for(var o in t)if(o!=="__source"&&!(o in r))return!0;for(var n in r)if(n!=="__source"&&t[n]!==r[n])return!0;return!1}function ni(t){this.props=t}function ku(t,r){function o(s){var l=this.props.ref,m=l==s.ref;return!m&&l&&(l.call?l(null):l.current=null),r?!r(this.props,s)||!m:Ls(this.props,s)}function n(s){return this.shouldComponentUpdate=o,bt(t,s)}return n.displayName="Memo("+(t.displayName||t.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}function Wu(t){function r(o){var n=Uu({},o);return delete n.ref,t(n,o.ref||null)}return r.$$typeof=Bh,r.render=r,r.prototype.isReactComponent=r.__f=!0,r.displayName="ForwardRef("+(t.displayName||t.name)+")",r}function zu(t,r,o){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach(function(n){typeof n.__c=="function"&&n.__c()}),t.__c.__H=null),(t=Uu({},t)).__c!=null&&(t.__c.__P===o&&(t.__c.__P=r),t.__c=null),t.__k=t.__k&&t.__k.map(function(n){return zu(n,r,o)})),t}function Vu(t,r,o){return t&&o&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(n){return Vu(n,r,o)}),t.__c&&t.__c.__P===r&&(t.__e&&o.appendChild(t.__e),t.__c.__e=!0,t.__c.__P=o)),t}function Vo(){this.__u=0,this.t=null,this.__b=null}function Gu(t){var r=t.__.__c;return r&&r.__a&&r.__a(t)}function $u(t){var r,o,n;function s(l){if(r||(r=t()).then(function(m){o=m.default||m},function(m){n=m}),n)throw n;if(!o)throw r;return bt(o,l)}return s.displayName="Lazy",s.__f=!0,s}function Yr(){this.u=null,this.o=null}function Uh(t){return this.getChildContext=function(){return t.context},t.children}function kh(t){var r=this,o=t.i;r.componentWillUnmount=function(){jr(null,r.l),r.l=null,r.i=null},r.i&&r.i!==o&&r.componentWillUnmount(),r.l||(r.i=o,r.l={nodeType:1,parentNode:o,childNodes:[],appendChild:function(n){this.childNodes.push(n),r.i.appendChild(n)},insertBefore:function(n,s){this.childNodes.push(n),r.i.appendChild(n)},removeChild:function(n){this.childNodes.splice(this.childNodes.indexOf(n)>>>1,1),r.i.removeChild(n)}}),jr(bt(Uh,{context:r.context},t.__v),r.l)}function Yu(t,r){var o=bt(kh,{__v:t,i:r});return o.containerInfo=r,o}function Ku(t,r,o){return r.__k==null&&(r.textContent=""),jr(t,r),typeof o=="function"&&o(),t?t.__c:null}function Xu(t,r,o){return qn(t,r),typeof o=="function"&&o(),t?t.__c:null}function $h(){}function Yh(){return this.cancelBubble}function qh(){return this.defaultPrevented}function Qu(t){return bt.bind(null,t)}function Go(t){return!!t&&t.$$typeof===qu}function Zu(t){return Go(t)&&t.type===Oe}function eg(t){return Go(t)?Cs.apply(null,arguments):t}function tg(t){return!!t.__k&&(jr(null,t),!0)}function rg(t){return t&&(t.base||t.nodeType===1&&t)||null}function Fs(t){t()}function sg(t){return t}function ag(){return[!1,Fs]}function gg(t,r){var o=r(),n=Gr({h:{__:o,v:r}}),s=n[0].h,l=n[1];return Or(function(){s.__=o,s.v=r,Ns(s)&&l({h:s})},[t,o,r]),zo(function(){return Ns(s)&&l({h:s}),t(function(){Ns(s)&&l({h:s})})},[t]),o}function Ns(t){var r,o,n=t.v,s=t.__;try{var l=n();return!((r=s)===(o=l)&&(r!==0||1/r==1/o)||r!=r&&o!=o)}catch{return!0}}var Cu,Bh,Ou,Hu,Fh,Pu,Du,qu,Wh,Hh,zh,Vh,Gh,Nu,Bs,Kh,Lu,Bu,Fu,Ju,Xh,og,ng,ig,lg,ug,Jh,cg=Es(()=>{Rr();Rr();oi();oi();(ni.prototype=new ht).isPureReactComponent=!0,ni.prototype.shouldComponentUpdate=function(t,r){return Ls(this.props,t)||Ls(this.state,r)};Cu=ge.__b;ge.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),Cu&&Cu(t)};Bh=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;Ou=function(t,r){return t==null?null:kt(kt(t).map(r))},Hu={map:Ou,forEach:Ou,count:function(t){return t?kt(t).length:0},only:function(t){var r=kt(t);if(r.length!==1)throw"Children.only";return r[0]},toArray:kt},Fh=ge.__e;ge.__e=function(t,r,o,n){if(t.then){for(var s,l=r;l=l.__;)if((s=l.__c)&&s.__c)return r.__e==null&&(r.__e=o.__e,r.__k=o.__k),s.__c(t,r)}Fh(t,r,o,n)};Pu=ge.unmount;ge.unmount=function(t){var r=t.__c;r&&r.__R&&r.__R(),r&&t.__h===!0&&(t.type=null),Pu&&Pu(t)},(Vo.prototype=new ht).__c=function(t,r){var o=r.__c,n=this;n.t==null&&(n.t=[]),n.t.push(o);var s=Gu(n.__v),l=!1,m=function(){l||(l=!0,o.__R=null,s?s(S):S())};o.__R=m;var S=function(){if(!--n.__u){if(n.state.__a){var R=n.state.__a;n.__v.__k[0]=Vu(R,R.__c.__P,R.__c.__O)}var D;for(n.setState({__a:n.__b=null});D=n.t.pop();)D.forceUpdate()}},w=r.__h===!0;n.__u++||w||n.setState({__a:n.__b=n.__v.__k[0]}),t.then(m,m)},Vo.prototype.componentWillUnmount=function(){this.t=[]},Vo.prototype.render=function(t,r){if(this.__b){if(this.__v.__k){var o=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=zu(this.__b,o,n.__O=n.__P)}this.__b=null}var s=r.__a&&bt(Oe,null,t.fallback);return s&&(s.__h=null),[bt(Oe,null,r.__a?null:t.children),s]};Du=function(t,r,o){if(++o[1]===o[0]&&t.o.delete(r),t.props.revealOrder&&(t.props.revealOrder[0]!=="t"||!t.o.size))for(o=t.u;o;){for(;o.length>3;)o.pop()();if(o[1]{var{render:Qh,hydrate:Zh,unmountComponentAtNode:em}=(cg(),As(pg));function fg(t){return{render(r){Qh(r,t)},unmount(){em(t)}}}Us.createRoot=fg;Us.hydrateRoot=function(t,r){return Zh(r,t),fg(t)}});var Ht=Ve(Ie=>{var _e=(Rr(),As(vu)),it=(oi(),As(Ru));function xg(t,r){for(var o in r)t[o]=r[o];return t}function Xs(t,r){for(var o in t)if(o!=="__source"&&!(o in r))return!0;for(var n in r)if(n!=="__source"&&t[n]!==r[n])return!0;return!1}function ai(t){this.props=t}function Mg(t,r){function o(s){var l=this.props.ref,m=l==s.ref;return!m&&l&&(l.call?l(null):l.current=null),r?!r(this.props,s)||!m:Xs(this.props,s)}function n(s){return this.shouldComponentUpdate=o,_e.createElement(t,s)}return n.displayName="Memo("+(t.displayName||t.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}(ai.prototype=new _e.Component).isPureReactComponent=!0,ai.prototype.shouldComponentUpdate=function(t,r){return Xs(this.props,t)||Xs(this.state,r)};var _g=_e.options.__b;_e.options.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),_g&&_g(t)};var sm=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Ig(t){function r(o){var n=xg({},o);return delete n.ref,t(n,o.ref||null)}return r.$$typeof=sm,r.render=r,r.prototype.isReactComponent=r.__f=!0,r.displayName="ForwardRef("+(t.displayName||t.name)+")",r}var vg=function(t,r){return t==null?null:_e.toChildArray(_e.toChildArray(t).map(r))},jg={map:vg,forEach:vg,count:function(t){return t?_e.toChildArray(t).length:0},only:function(t){var r=_e.toChildArray(t);if(r.length!==1)throw"Children.only";return r[0]},toArray:_e.toChildArray},am=_e.options.__e;_e.options.__e=function(t,r,o,n){if(t.then){for(var s,l=r;l=l.__;)if((s=l.__c)&&s.__c)return r.__e==null&&(r.__e=o.__e,r.__k=o.__k),s.__c(t,r)}am(t,r,o,n)};var bg=_e.options.unmount;function Rg(t,r,o){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach(function(n){typeof n.__c=="function"&&n.__c()}),t.__c.__H=null),(t=xg({},t)).__c!=null&&(t.__c.__P===o&&(t.__c.__P=r),t.__c=null),t.__k=t.__k&&t.__k.map(function(n){return Rg(n,r,o)})),t}function Cg(t,r,o){return t&&o&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(n){return Cg(n,r,o)}),t.__c&&t.__c.__P===r&&(t.__e&&o.appendChild(t.__e),t.__c.__e=!0,t.__c.__P=o)),t}function Ko(){this.__u=0,this.t=null,this.__b=null}function Og(t){var r=t.__.__c;return r&&r.__a&&r.__a(t)}function Pg(t){var r,o,n;function s(l){if(r||(r=t()).then(function(m){o=m.default||m},function(m){n=m}),n)throw n;if(!o)throw r;return _e.createElement(o,l)}return s.displayName="Lazy",s.__f=!0,s}function qr(){this.u=null,this.o=null}_e.options.unmount=function(t){var r=t.__c;r&&r.__R&&r.__R(),r&&t.__h===!0&&(t.type=null),bg&&bg(t)},(Ko.prototype=new _e.Component).__c=function(t,r){var o=r.__c,n=this;n.t==null&&(n.t=[]),n.t.push(o);var s=Og(n.__v),l=!1,m=function(){l||(l=!0,o.__R=null,s?s(S):S())};o.__R=m;var S=function(){if(!--n.__u){if(n.state.__a){var R=n.state.__a;n.__v.__k[0]=Cg(R,R.__c.__P,R.__c.__O)}var D;for(n.setState({__a:n.__b=null});D=n.t.pop();)D.forceUpdate()}},w=r.__h===!0;n.__u++||w||n.setState({__a:n.__b=n.__v.__k[0]}),t.then(m,m)},Ko.prototype.componentWillUnmount=function(){this.t=[]},Ko.prototype.render=function(t,r){if(this.__b){if(this.__v.__k){var o=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=Rg(this.__b,o,n.__O=n.__P)}this.__b=null}var s=r.__a&&_e.createElement(_e.Fragment,null,t.fallback);return s&&(s.__h=null),[_e.createElement(_e.Fragment,null,r.__a?null:t.children),s]};var Sg=function(t,r,o){if(++o[1]===o[0]&&t.o.delete(r),t.props.revealOrder&&(t.props.revealOrder[0]!=="t"||!t.o.size))for(o=t.u;o;){for(;o.length>3;)o.pop()();if(o[1]>>1,1),r.i.removeChild(n)}}),_e.render(_e.createElement(lm,{context:r.context},t.__v),r.l)}function Dg(t,r){var o=_e.createElement(um,{__v:t,i:r});return o.containerInfo=r,o}(qr.prototype=new _e.Component).__a=function(t){var r=this,o=Og(r.__v),n=r.o.get(t);return n[0]++,function(s){var l=function(){r.props.revealOrder?(n.push(s),Sg(r,t,n)):s()};o?o(l):l()}},qr.prototype.render=function(t){this.u=null,this.o=new Map;var r=_e.toChildArray(t.children);t.revealOrder&&t.revealOrder[0]==="b"&&r.reverse();for(var o=r.length;o--;)this.o.set(r[o],this.u=[1,0,this.u]);return t.children},qr.prototype.componentDidUpdate=qr.prototype.componentDidMount=function(){var t=this;this.o.forEach(function(r,o){Sg(t,o,r)})};var Ng=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,gm=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,pm=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,cm=/[A-Z0-9]/g,fm=typeof document<"u",dm=function(t){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(t)};function Lg(t,r,o){return r.__k==null&&(r.textContent=""),_e.render(t,r),typeof o=="function"&&o(),t?t.__c:null}function Bg(t,r,o){return _e.hydrate(t,r),typeof o=="function"&&o(),t?t.__c:null}_e.Component.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(_e.Component.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(r){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:r})}})});var Tg=_e.options.event;function hm(){}function mm(){return this.cancelBubble}function ym(){return this.defaultPrevented}_e.options.event=function(t){return Tg&&(t=Tg(t)),t.persist=hm,t.isPropagationStopped=mm,t.isDefaultPrevented=ym,t.nativeEvent=t};var Js,_m={enumerable:!1,configurable:!0,get:function(){return this.class}},Eg=_e.options.vnode;_e.options.vnode=function(t){typeof t.type=="string"&&function(r){var o=r.props,n=r.type,s={};for(var l in o){var m=o[l];if(!(l==="value"&&"defaultValue"in o&&m==null||fm&&l==="children"&&n==="noscript"||l==="class"||l==="className")){var S=l.toLowerCase();l==="defaultValue"&&"value"in o&&o.value==null?l="value":l==="download"&&m===!0?m="":S==="ondoubleclick"?l="ondblclick":S!=="onchange"||n!=="input"&&n!=="textarea"||dm(o.type)?S==="onfocus"?l="onfocusin":S==="onblur"?l="onfocusout":pm.test(l)?l=S:n.indexOf("-")===-1&&gm.test(l)?l=l.replace(cm,"-$&").toLowerCase():m===null&&(m=void 0):S=l="oninput",S==="oninput"&&s[l=S]&&(l="oninputCapture"),s[l]=m}}n=="select"&&s.multiple&&Array.isArray(s.value)&&(s.value=_e.toChildArray(o.children).forEach(function(w){w.props.selected=s.value.indexOf(w.props.value)!=-1})),n=="select"&&s.defaultValue!=null&&(s.value=_e.toChildArray(o.children).forEach(function(w){w.props.selected=s.multiple?s.defaultValue.indexOf(w.props.value)!=-1:s.defaultValue==w.props.value})),o.class&&!o.className?(s.class=o.class,Object.defineProperty(s,"className",_m)):(o.className&&!o.class||o.class&&o.className)&&(s.class=s.className=o.className),r.props=s}(t),t.$$typeof=Ng,Eg&&Eg(t)};var wg=_e.options.__r;_e.options.__r=function(t){wg&&wg(t),Js=t.__c};var Ag=_e.options.diffed;_e.options.diffed=function(t){Ag&&Ag(t);var r=t.props,o=t.__e;o!=null&&t.type==="textarea"&&"value"in r&&r.value!==o.value&&(o.value=r.value==null?"":r.value),Js=null};var Fg={ReactCurrentDispatcher:{current:{readContext:function(t){return Js.__n[t.__c].props.value}}}};function Ug(t){return _e.createElement.bind(null,t)}function Xo(t){return!!t&&t.$$typeof===Ng}function kg(t){return Xo(t)&&t.type===_e.Fragment}function Wg(t){return Xo(t)?_e.cloneElement.apply(null,arguments):t}function Hg(t){return!!t.__k&&(_e.render(null,t),!0)}function zg(t){return t&&(t.base||t.nodeType===1&&t)||null}var Vg=function(t,r){return t(r)},Gg=function(t,r){return t(r)},$g=_e.Fragment;function Qs(t){t()}function Yg(t){return t}function qg(){return[!1,Qs]}var Kg=it.useLayoutEffect,Xg=Xo;function Jg(t,r){var o=r(),n=it.useState({p:{__:o,h:r}}),s=n[0].p,l=n[1];return it.useLayoutEffect(function(){s.__=o,s.h=r,Ks(s)&&l({p:s})},[t,o,r]),it.useEffect(function(){return Ks(s)&&l({p:s}),t(function(){Ks(s)&&l({p:s})})},[t]),o}function Ks(t){var r,o,n=t.h,s=t.__;try{var l=n();return!((r=s)===(o=l)&&(r!==0||1/r==1/o)||r!=r&&o!=o)}catch{return!0}}var vm={useState:it.useState,useId:it.useId,useReducer:it.useReducer,useEffect:it.useEffect,useLayoutEffect:it.useLayoutEffect,useInsertionEffect:Kg,useTransition:qg,useDeferredValue:Yg,useSyncExternalStore:Jg,startTransition:Qs,useRef:it.useRef,useImperativeHandle:it.useImperativeHandle,useMemo:it.useMemo,useCallback:it.useCallback,useContext:it.useContext,useDebugValue:it.useDebugValue,version:"17.0.2",Children:jg,render:Lg,hydrate:Bg,unmountComponentAtNode:Hg,createPortal:Dg,createElement:_e.createElement,createContext:_e.createContext,createFactory:Ug,cloneElement:Wg,createRef:_e.createRef,Fragment:_e.Fragment,isValidElement:Xo,isElement:Xg,isFragment:kg,findDOMNode:zg,Component:_e.Component,PureComponent:ai,memo:Mg,forwardRef:Ig,flushSync:Gg,unstable_batchedUpdates:Vg,StrictMode:$g,Suspense:Ko,SuspenseList:qr,lazy:Pg,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Fg};Object.defineProperty(Ie,"Component",{enumerable:!0,get:function(){return _e.Component}}),Object.defineProperty(Ie,"Fragment",{enumerable:!0,get:function(){return _e.Fragment}}),Object.defineProperty(Ie,"createContext",{enumerable:!0,get:function(){return _e.createContext}}),Object.defineProperty(Ie,"createElement",{enumerable:!0,get:function(){return _e.createElement}}),Object.defineProperty(Ie,"createRef",{enumerable:!0,get:function(){return _e.createRef}}),Ie.Children=jg,Ie.PureComponent=ai,Ie.StrictMode=$g,Ie.Suspense=Ko,Ie.SuspenseList=qr,Ie.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Fg,Ie.cloneElement=Wg,Ie.createFactory=Ug,Ie.createPortal=Dg,Ie.default=vm,Ie.findDOMNode=zg,Ie.flushSync=Gg,Ie.forwardRef=Ig,Ie.hydrate=Bg,Ie.isElement=Xg,Ie.isFragment=kg,Ie.isValidElement=Xo,Ie.lazy=Pg,Ie.memo=Mg,Ie.render=Lg,Ie.startTransition=Qs,Ie.unmountComponentAtNode=Hg,Ie.unstable_batchedUpdates=Vg,Ie.useDeferredValue=Yg,Ie.useInsertionEffect=Kg,Ie.useSyncExternalStore=Jg,Ie.useTransition=qg,Ie.version="17.0.2",Object.keys(it).forEach(function(t){t==="default"||Ie.hasOwnProperty(t)||Object.defineProperty(Ie,t,{enumerable:!0,get:function(){return it[t]}})})});var Zg=Ve(Qg=>{"use strict";var Kr=Ht();function bm(t,r){return t===r&&(t!==0||1/t===1/r)||t!==t&&r!==r}var Sm=typeof Object.is=="function"?Object.is:bm,Tm=Kr.useState,Em=Kr.useEffect,wm=Kr.useLayoutEffect,Am=Kr.useDebugValue;function xm(t,r){var o=r(),n=Tm({inst:{value:o,getSnapshot:r}}),s=n[0].inst,l=n[1];return wm(function(){s.value=o,s.getSnapshot=r,Zs(s)&&l({inst:s})},[t,o,r]),Em(function(){return Zs(s)&&l({inst:s}),t(function(){Zs(s)&&l({inst:s})})},[t]),Am(o),o}function Zs(t){var r=t.getSnapshot;t=t.value;try{var o=r();return!Sm(t,o)}catch{return!0}}function Mm(t,r){return r()}var Im=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Mm:xm;Qg.useSyncExternalStore=Kr.useSyncExternalStore!==void 0?Kr.useSyncExternalStore:Im});var tp=Ve((vb,ep)=>{"use strict";ep.exports=Zg()});var Zt=Ve((Ib,li)=>{(function(){"use strict";var t={}.hasOwnProperty,r="[native code]";function o(){for(var n=[],s=0;s{var ip=(()=>{var t=typeof document<"u"&&document.currentScript?document.currentScript.src:void 0;return typeof __filename<"u"&&(t=t||__filename),function(r={}){var o=r,n,s;o.ready=new Promise((i,u)=>{n=i,s=u}),function(i){i.Td=i.Td||[],i.Td.push(function(){i.MakeSWCanvasSurface=function(u){var g=u,y=typeof OffscreenCanvas<"u"&&g instanceof OffscreenCanvas;if(!(typeof HTMLCanvasElement<"u"&&g instanceof HTMLCanvasElement||y||(g=document.getElementById(u),g)))throw"Canvas with id "+u+" was not found";return(u=i.MakeSurface(g.width,g.height))&&(u.Ld=g),u},i.MakeCanvasSurface||(i.MakeCanvasSurface=i.MakeSWCanvasSurface),i.MakeSurface=function(u,g){var y={width:u,height:g,colorType:i.ColorType.RGBA_8888,alphaType:i.AlphaType.Unpremul,colorSpace:i.ColorSpace.SRGB},v=u*g*4,A=i._malloc(v);return(y=i.Surface._makeRasterDirect(y,A,4*u))&&(y.Ld=null,y.Hf=u,y.Df=g,y.Ff=v,y.bf=A,y.getCanvas().clear(i.TRANSPARENT)),y},i.MakeRasterDirectSurface=function(u,g,y){return i.Surface._makeRasterDirect(u,g.byteOffset,y)},i.Surface.prototype.flush=function(u){if(i.Md(this.Kd),this._flush(),this.Ld){var g=new Uint8ClampedArray(i.HEAPU8.buffer,this.bf,this.Ff);g=new ImageData(g,this.Hf,this.Df),u?this.Ld.getContext("2d").putImageData(g,0,0,u[0],u[1],u[2]-u[0],u[3]-u[1]):this.Ld.getContext("2d").putImageData(g,0,0)}},i.Surface.prototype.dispose=function(){this.bf&&i._free(this.bf),this.delete()},i.Md=i.Md||function(){},i.Te=i.Te||function(){return null}})}(o),function(i){i.Td=i.Td||[],i.Td.push(function(){function u(x,I,N){return x&&x.hasOwnProperty(I)?x[I]:N}function g(x){var I=kr(Mt);return Mt[I]=x,I}function y(x){return x.naturalHeight||x.videoHeight||x.displayHeight||x.height}function v(x){return x.naturalWidth||x.videoWidth||x.displayWidth||x.width}function A(x,I,N,q){return x.bindTexture(x.TEXTURE_2D,I),q||N.alphaType!==i.AlphaType.Premul||x.pixelStorei(x.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0),I}function P(x,I,N){N||I.alphaType!==i.AlphaType.Premul||x.pixelStorei(x.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1),x.bindTexture(x.TEXTURE_2D,null)}i.GetWebGLContext=function(x,I){if(!x)throw"null canvas passed into makeWebGLContext";var N={alpha:u(I,"alpha",1),depth:u(I,"depth",1),stencil:u(I,"stencil",8),antialias:u(I,"antialias",0),premultipliedAlpha:u(I,"premultipliedAlpha",1),preserveDrawingBuffer:u(I,"preserveDrawingBuffer",0),preferLowPowerToHighPerformance:u(I,"preferLowPowerToHighPerformance",0),failIfMajorPerformanceCaveat:u(I,"failIfMajorPerformanceCaveat",0),enableExtensionsByDefault:u(I,"enableExtensionsByDefault",1),explicitSwapControl:u(I,"explicitSwapControl",0),renderViaOffscreenBackBuffer:u(I,"renderViaOffscreenBackBuffer",0)};if(N.majorVersion=I&&I.majorVersion?I.majorVersion:typeof WebGL2RenderingContext<"u"?2:1,N.explicitSwapControl)throw"explicitSwapControl is not supported";return x=Zd(x,N),x?(Bl(x),Te.fe.getExtension("WEBGL_debug_renderer_info"),x):0},i.deleteContext=function(x){Te===Jt[x]&&(Te=null),typeof JSEvents=="object"&&JSEvents.ug(Jt[x].fe.canvas),Jt[x]&&Jt[x].fe.canvas&&(Jt[x].fe.canvas.zf=void 0),Jt[x]=null},i._setTextureCleanup({deleteTexture:function(x,I){var N=Mt[I];N&&Jt[x].fe.deleteTexture(N),Mt[I]=null}}),i.MakeWebGLContext=function(x){if(!this.Md(x))return null;var I=this._MakeGrContext();if(!I)return null;I.Kd=x;var N=I.delete.bind(I);return I.delete=function(){i.Md(this.Kd),N()}.bind(I),Te.ff=I},i.MakeGrContext=i.MakeWebGLContext,i.GrDirectContext.prototype.getResourceCacheLimitBytes=function(){i.Md(this.Kd),this._getResourceCacheLimitBytes()},i.GrDirectContext.prototype.getResourceCacheUsageBytes=function(){i.Md(this.Kd),this._getResourceCacheUsageBytes()},i.GrDirectContext.prototype.releaseResourcesAndAbandonContext=function(){i.Md(this.Kd),this._releaseResourcesAndAbandonContext()},i.GrDirectContext.prototype.setResourceCacheLimitBytes=function(x){i.Md(this.Kd),this._setResourceCacheLimitBytes(x)},i.MakeOnScreenGLSurface=function(x,I,N,q,Q,ae){return!this.Md(x.Kd)||(I=Q===void 0||ae===void 0?this._MakeOnScreenGLSurface(x,I,N,q):this._MakeOnScreenGLSurface(x,I,N,q,Q,ae),!I)?null:(I.Kd=x.Kd,I)},i.MakeRenderTarget=function(){var x=arguments[0];if(!this.Md(x.Kd))return null;if(arguments.length===3){var I=this._MakeRenderTargetWH(x,arguments[1],arguments[2]);if(!I)return null}else if(arguments.length===2){if(I=this._MakeRenderTargetII(x,arguments[1]),!I)return null}else return null;return I.Kd=x.Kd,I},i.MakeWebGLCanvasSurface=function(x,I,N){I=I||null;var q=x,Q=typeof OffscreenCanvas<"u"&&q instanceof OffscreenCanvas;if(!(typeof HTMLCanvasElement<"u"&&q instanceof HTMLCanvasElement||Q||(q=document.getElementById(x),q)))throw"Canvas with id "+x+" was not found";if(x=this.GetWebGLContext(q,N),!x||0>x)throw"failed to create webgl context: err "+x;return x=this.MakeWebGLContext(x),I=this.MakeOnScreenGLSurface(x,q.width,q.height,I),I||(I=q.cloneNode(!0),q.parentNode.replaceChild(I,q),I.classList.add("ck-replaced"),i.MakeSWCanvasSurface(I))},i.MakeCanvasSurface=i.MakeWebGLCanvasSurface,i.Surface.prototype.makeImageFromTexture=function(x,I){return i.Md(this.Kd),x=g(x),(I=this._makeImageFromTexture(this.Kd,x,I))&&(I.Le=x),I},i.Surface.prototype.makeImageFromTextureSource=function(x,I,N){I||(I={height:y(x),width:v(x),colorType:i.ColorType.RGBA_8888,alphaType:N?i.AlphaType.Premul:i.AlphaType.Unpremul}),I.colorSpace||(I.colorSpace=i.ColorSpace.SRGB),i.Md(this.Kd);var q=Te.fe;return N=A(q,q.createTexture(),I,N),Te.version===2?q.texImage2D(q.TEXTURE_2D,0,q.RGBA,I.width,I.height,0,q.RGBA,q.UNSIGNED_BYTE,x):q.texImage2D(q.TEXTURE_2D,0,q.RGBA,q.RGBA,q.UNSIGNED_BYTE,x),P(q,I),this._resetContext(),this.makeImageFromTexture(N,I)},i.Surface.prototype.updateTextureFromSource=function(x,I,N){if(x.Le){i.Md(this.Kd);var q=x.getImageInfo(),Q=Te.fe,ae=A(Q,Mt[x.Le],q,N);Te.version===2?Q.texImage2D(Q.TEXTURE_2D,0,Q.RGBA,v(I),y(I),0,Q.RGBA,Q.UNSIGNED_BYTE,I):Q.texImage2D(Q.TEXTURE_2D,0,Q.RGBA,Q.RGBA,Q.UNSIGNED_BYTE,I),P(Q,q,N),this._resetContext(),Mt[x.Le]=null,x.Le=g(ae),q.colorSpace=x.getColorSpace(),I=this._makeImageFromTexture(this.Kd,x.Le,q),N=x.Jd.Rd,Q=x.Jd.Yd,x.Jd.Rd=I.Jd.Rd,x.Jd.Yd=I.Jd.Yd,I.Jd.Rd=N,I.Jd.Yd=Q,I.delete(),q.colorSpace.delete()}},i.MakeLazyImageFromTextureSource=function(x,I,N){I||(I={height:y(x),width:v(x),colorType:i.ColorType.RGBA_8888,alphaType:N?i.AlphaType.Premul:i.AlphaType.Unpremul}),I.colorSpace||(I.colorSpace=i.ColorSpace.SRGB);var q={makeTexture:function(){var Q=Te,ae=Q.fe,U=A(ae,ae.createTexture(),I,N);return Q.version===2?ae.texImage2D(ae.TEXTURE_2D,0,ae.RGBA,I.width,I.height,0,ae.RGBA,ae.UNSIGNED_BYTE,x):ae.texImage2D(ae.TEXTURE_2D,0,ae.RGBA,ae.RGBA,ae.UNSIGNED_BYTE,x),P(ae,I,N),g(U)},freeSrc:function(){}};return x.constructor.name==="VideoFrame"&&(q.freeSrc=function(){x.close()}),i.Image._makeFromGenerator(I,q)},i.Md=function(x){return x?Bl(x):!1},i.Te=function(){return Te&&Te.ff&&!Te.ff.isDeleted()?Te.ff:null}})}(o),function(i){function u(h,p,_,E,O){for(var F=0;F>>0}function A(h){if(h&&h._ck)return h;if(h instanceof Float32Array){for(var p=Math.floor(h.length/4),_=new Uint32Array(p),E=0;EG;G++)i.HEAPF32[O+E]=h[F][G],E++;h=_}else h=je;p.be=h}else throw"Invalid argument to copyFlexibleColorArray, Not a color array "+typeof h;return p}function Q(h){if(!h)return je;var p=ys.toTypedArray();if(h.length){if(h.length===6||h.length===9)return N(h,"HEAPF32",dr),h.length===6&&i.HEAPF32.set(Eh,6+dr/4),dr;if(h.length===16)return p[0]=h[0],p[1]=h[1],p[2]=h[3],p[3]=h[4],p[4]=h[5],p[5]=h[7],p[6]=h[12],p[7]=h[13],p[8]=h[15],dr;throw"invalid matrix size"}if(h.m11===void 0)throw"invalid matrix argument";return p[0]=h.m11,p[1]=h.m21,p[2]=h.m41,p[3]=h.m12,p[4]=h.m22,p[5]=h.m42,p[6]=h.m14,p[7]=h.m24,p[8]=h.m44,dr}function ae(h){if(!h)return je;var p=_s.toTypedArray();if(h.length){if(h.length!==16&&h.length!==6&&h.length!==9)throw"invalid matrix size";return h.length===16?N(h,"HEAPF32",Hr):(p.fill(0),p[0]=h[0],p[1]=h[1],p[3]=h[2],p[4]=h[3],p[5]=h[4],p[7]=h[5],p[10]=1,p[12]=h[6],p[13]=h[7],p[15]=h[8],h.length===6&&(p[12]=0,p[13]=0,p[15]=1),Hr)}if(h.m11===void 0)throw"invalid matrix argument";return p[0]=h.m11,p[1]=h.m21,p[2]=h.m31,p[3]=h.m41,p[4]=h.m12,p[5]=h.m22,p[6]=h.m32,p[7]=h.m42,p[8]=h.m13,p[9]=h.m23,p[10]=h.m33,p[11]=h.m43,p[12]=h.m14,p[13]=h.m24,p[14]=h.m34,p[15]=h.m44,Hr}function U(h,p){return N(h,"HEAPF32",p||Mr)}function de(h,p,_,E){var O=vs.toTypedArray();return O[0]=h,O[1]=p,O[2]=_,O[3]=E,Mr}function Ae(h){for(var p=new Float32Array(4),_=0;4>_;_++)p[_]=i.HEAPF32[h/4+_];return p}function Ee(h,p){return N(h,"HEAPF32",p||Ze)}function dt(h,p){return N(h,"HEAPF32",p||Ts)}function nt(){for(var h=0,p=0;p>>0},i.Color4f=function(h,p,_,E){return E===void 0&&(E=1),Float32Array.of(h,p,_,E)},Object.defineProperty(i,"TRANSPARENT",{get:function(){return i.Color4f(0,0,0,0)}}),Object.defineProperty(i,"BLACK",{get:function(){return i.Color4f(0,0,0,1)}}),Object.defineProperty(i,"WHITE",{get:function(){return i.Color4f(1,1,1,1)}}),Object.defineProperty(i,"RED",{get:function(){return i.Color4f(1,0,0,1)}}),Object.defineProperty(i,"GREEN",{get:function(){return i.Color4f(0,1,0,1)}}),Object.defineProperty(i,"BLUE",{get:function(){return i.Color4f(0,0,1,1)}}),Object.defineProperty(i,"YELLOW",{get:function(){return i.Color4f(1,1,0,1)}}),Object.defineProperty(i,"CYAN",{get:function(){return i.Color4f(0,1,1,1)}}),Object.defineProperty(i,"MAGENTA",{get:function(){return i.Color4f(1,0,1,1)}}),i.getColorComponents=function(h){return[Math.floor(255*h[0]),Math.floor(255*h[1]),Math.floor(255*h[2]),h[3]]},i.parseColorString=function(h,p){if(h=h.toLowerCase(),h.startsWith("#")){switch(p=255,h.length){case 9:p=parseInt(h.slice(7,9),16);case 7:var _=parseInt(h.slice(1,3),16),E=parseInt(h.slice(3,5),16),O=parseInt(h.slice(5,7),16);break;case 5:p=17*parseInt(h.slice(4,5),16);case 4:_=17*parseInt(h.slice(1,2),16),E=17*parseInt(h.slice(2,3),16),O=17*parseInt(h.slice(3,4),16)}return i.Color(_,E,O,p/255)}return h.startsWith("rgba")?(h=h.slice(5,-1),h=h.split(","),i.Color(+h[0],+h[1],+h[2],P(h[3]))):h.startsWith("rgb")?(h=h.slice(4,-1),h=h.split(","),i.Color(+h[0],+h[1],+h[2],P(h[3]))):h.startsWith("gray(")||h.startsWith("hsl")||!p||(h=p[h],h===void 0)?i.BLACK:h},i.multiplyByAlpha=function(h,p){return h=h.slice(),h[3]=Math.max(0,Math.min(h[3]*p,1)),h},i.Malloc=function(h,p){var _=i._malloc(p*h.BYTES_PER_ELEMENT);return{_ck:!0,length:p,byteOffset:_,qe:null,subarray:function(E,O){return E=this.toTypedArray().subarray(E,O),E._ck=!0,E},toTypedArray:function(){return this.qe&&this.qe.length?this.qe:(this.qe=new h(i.HEAPU8.buffer,_,p),this.qe._ck=!0,this.qe)}}},i.Free=function(h){i._free(h.byteOffset),h.byteOffset=je,h.toTypedArray=null,h.qe=null};var dr=je,ys,Hr=je,_s,Mr=je,vs,Ut,Ze=je,Xl,hr=je,Jl,bs=je,Ql,Ss=je,zn,Do=je,Zl,Ts=je,eu,tu=je,Eh=Float32Array.of(0,0,1),je=0;i.onRuntimeInitialized=function(){function h(p,_,E,O,F,G,re){G||(G=4*O.width,O.colorType===i.ColorType.RGBA_F16?G*=2:O.colorType===i.ColorType.RGBA_F32&&(G*=4));var ve=G*O.height,ye=F?F.byteOffset:i._malloc(ve);if(re?!p._readPixels(O,ye,G,_,E,re):!p._readPixels(O,ye,G,_,E))return F||i._free(ye),null;if(F)return F.toTypedArray();switch(O.colorType){case i.ColorType.RGBA_8888:case i.ColorType.RGBA_F16:p=new Uint8Array(i.HEAPU8.buffer,ye,ve).slice();break;case i.ColorType.RGBA_F32:p=new Float32Array(i.HEAPU8.buffer,ye,ve).slice();break;default:return null}return i._free(ye),p}vs=i.Malloc(Float32Array,4),Mr=vs.byteOffset,_s=i.Malloc(Float32Array,16),Hr=_s.byteOffset,ys=i.Malloc(Float32Array,9),dr=ys.byteOffset,Zl=i.Malloc(Float32Array,12),Ts=Zl.byteOffset,eu=i.Malloc(Float32Array,12),tu=eu.byteOffset,Ut=i.Malloc(Float32Array,4),Ze=Ut.byteOffset,Xl=i.Malloc(Float32Array,4),hr=Xl.byteOffset,Jl=i.Malloc(Float32Array,3),bs=Jl.byteOffset,Ql=i.Malloc(Float32Array,3),Ss=Ql.byteOffset,zn=i.Malloc(Int32Array,4),Do=zn.byteOffset,i.ColorSpace.SRGB=i.ColorSpace._MakeSRGB(),i.ColorSpace.DISPLAY_P3=i.ColorSpace._MakeDisplayP3(),i.ColorSpace.ADOBE_RGB=i.ColorSpace._MakeAdobeRGB(),i.GlyphRunFlags={IsWhiteSpace:i._GlyphRunFlags_isWhiteSpace},i.Path.MakeFromCmds=function(p){var _=N(p,"HEAPF32"),E=i.Path._MakeFromCmds(_,p.length);return I(_,p),E},i.Path.MakeFromVerbsPointsWeights=function(p,_,E){var O=N(p,"HEAPU8"),F=N(_,"HEAPF32"),G=N(E,"HEAPF32"),re=i.Path._MakeFromVerbsPointsWeights(O,p.length,F,_.length,G,E&&E.length||0);return I(O,p),I(F,_),I(G,E),re},i.Path.prototype.addArc=function(p,_,E){return p=Ee(p),this._addArc(p,_,E),this},i.Path.prototype.addCircle=function(p,_,E,O){return this._addCircle(p,_,E,!!O),this},i.Path.prototype.addOval=function(p,_,E){return E===void 0&&(E=1),p=Ee(p),this._addOval(p,!!_,E),this},i.Path.prototype.addPath=function(){var p=Array.prototype.slice.call(arguments),_=p[0],E=!1;if(typeof p[p.length-1]=="boolean"&&(E=p.pop()),p.length===1)this._addPath(_,1,0,0,0,1,0,0,0,1,E);else if(p.length===2)p=p[1],this._addPath(_,p[0],p[1],p[2],p[3],p[4],p[5],p[6]||0,p[7]||0,p[8]||1,E);else if(p.length===7||p.length===10)this._addPath(_,p[1],p[2],p[3],p[4],p[5],p[6],p[7]||0,p[8]||0,p[9]||1,E);else return null;return this},i.Path.prototype.addPoly=function(p,_){var E=N(p,"HEAPF32");return this._addPoly(E,p.length/2,_),I(E,p),this},i.Path.prototype.addRect=function(p,_){return p=Ee(p),this._addRect(p,!!_),this},i.Path.prototype.addRRect=function(p,_){return p=dt(p),this._addRRect(p,!!_),this},i.Path.prototype.addVerbsPointsWeights=function(p,_,E){var O=N(p,"HEAPU8"),F=N(_,"HEAPF32"),G=N(E,"HEAPF32");this._addVerbsPointsWeights(O,p.length,F,_.length,G,E&&E.length||0),I(O,p),I(F,_),I(G,E)},i.Path.prototype.arc=function(p,_,E,O,F,G){return p=i.LTRBRect(p-E,_-E,p+E,_+E),F=(F-O)/Math.PI*180-360*!!G,G=new i.Path,G.addArc(p,O/Math.PI*180,F),this.addPath(G,!0),G.delete(),this},i.Path.prototype.arcToOval=function(p,_,E,O){return p=Ee(p),this._arcToOval(p,_,E,O),this},i.Path.prototype.arcToRotated=function(p,_,E,O,F,G,re){return this._arcToRotated(p,_,E,!!O,!!F,G,re),this},i.Path.prototype.arcToTangent=function(p,_,E,O,F){return this._arcToTangent(p,_,E,O,F),this},i.Path.prototype.close=function(){return this._close(),this},i.Path.prototype.conicTo=function(p,_,E,O,F){return this._conicTo(p,_,E,O,F),this},i.Path.prototype.computeTightBounds=function(p){this._computeTightBounds(Ze);var _=Ut.toTypedArray();return p?(p.set(_),p):_.slice()},i.Path.prototype.cubicTo=function(p,_,E,O,F,G){return this._cubicTo(p,_,E,O,F,G),this},i.Path.prototype.dash=function(p,_,E){return this._dash(p,_,E)?this:null},i.Path.prototype.getBounds=function(p){this._getBounds(Ze);var _=Ut.toTypedArray();return p?(p.set(_),p):_.slice()},i.Path.prototype.lineTo=function(p,_){return this._lineTo(p,_),this},i.Path.prototype.moveTo=function(p,_){return this._moveTo(p,_),this},i.Path.prototype.offset=function(p,_){return this._transform(1,0,p,0,1,_,0,0,1),this},i.Path.prototype.quadTo=function(p,_,E,O){return this._quadTo(p,_,E,O),this},i.Path.prototype.rArcTo=function(p,_,E,O,F,G,re){return this._rArcTo(p,_,E,O,F,G,re),this},i.Path.prototype.rConicTo=function(p,_,E,O,F){return this._rConicTo(p,_,E,O,F),this},i.Path.prototype.rCubicTo=function(p,_,E,O,F,G){return this._rCubicTo(p,_,E,O,F,G),this},i.Path.prototype.rLineTo=function(p,_){return this._rLineTo(p,_),this},i.Path.prototype.rMoveTo=function(p,_){return this._rMoveTo(p,_),this},i.Path.prototype.rQuadTo=function(p,_,E,O){return this._rQuadTo(p,_,E,O),this},i.Path.prototype.stroke=function(p){return p=p||{},p.width=p.width||1,p.miter_limit=p.miter_limit||4,p.cap=p.cap||i.StrokeCap.Butt,p.join=p.join||i.StrokeJoin.Miter,p.precision=p.precision||1,this._stroke(p)?this:null},i.Path.prototype.transform=function(){if(arguments.length===1){var p=arguments[0];this._transform(p[0],p[1],p[2],p[3],p[4],p[5],p[6]||0,p[7]||0,p[8]||1)}else if(arguments.length===6||arguments.length===9)p=arguments,this._transform(p[0],p[1],p[2],p[3],p[4],p[5],p[6]||0,p[7]||0,p[8]||1);else throw"transform expected to take 1 or 9 arguments. Got "+arguments.length;return this},i.Path.prototype.trim=function(p,_,E){return this._trim(p,_,!!E)?this:null},i.Image.prototype.encodeToBytes=function(p,_){var E=i.Te();return p=p||i.ImageFormat.PNG,_=_||100,E?this._encodeToBytes(p,_,E):this._encodeToBytes(p,_)},i.Image.prototype.makeShaderCubic=function(p,_,E,O,F){return F=Q(F),this._makeShaderCubic(p,_,E,O,F)},i.Image.prototype.makeShaderOptions=function(p,_,E,O,F){return F=Q(F),this._makeShaderOptions(p,_,E,O,F)},i.Image.prototype.readPixels=function(p,_,E,O,F){var G=i.Te();return h(this,p,_,E,O,F,G)},i.Canvas.prototype.clear=function(p){i.Md(this.Kd),p=U(p),this._clear(p)},i.Canvas.prototype.clipRRect=function(p,_,E){i.Md(this.Kd),p=dt(p),this._clipRRect(p,_,E)},i.Canvas.prototype.clipRect=function(p,_,E){i.Md(this.Kd),p=Ee(p),this._clipRect(p,_,E)},i.Canvas.prototype.concat=function(p){i.Md(this.Kd),p=ae(p),this._concat(p)},i.Canvas.prototype.drawArc=function(p,_,E,O,F){i.Md(this.Kd),p=Ee(p),this._drawArc(p,_,E,O,F)},i.Canvas.prototype.drawAtlas=function(p,_,E,O,F,G,re){if(p&&O&&_&&E&&_.length===E.length){i.Md(this.Kd),F||(F=i.BlendMode.SrcOver);var ve=N(_,"HEAPF32"),ye=N(E,"HEAPF32"),Ce=E.length/4,Ne=N(A(G),"HEAPU32");if(re&&"B"in re&&"C"in re)this._drawAtlasCubic(p,ye,ve,Ne,Ce,F,re.B,re.C,O);else{let C=i.FilterMode.Linear,Y=i.MipmapMode.None;re&&(C=re.filter,"mipmap"in re&&(Y=re.mipmap)),this._drawAtlasOptions(p,ye,ve,Ne,Ce,F,C,Y,O)}I(ve,_),I(ye,E),I(Ne,G)}},i.Canvas.prototype.drawCircle=function(p,_,E,O){i.Md(this.Kd),this._drawCircle(p,_,E,O)},i.Canvas.prototype.drawColor=function(p,_){i.Md(this.Kd),p=U(p),_!==void 0?this._drawColor(p,_):this._drawColor(p)},i.Canvas.prototype.drawColorInt=function(p,_){i.Md(this.Kd),this._drawColorInt(p,_||i.BlendMode.SrcOver)},i.Canvas.prototype.drawColorComponents=function(p,_,E,O,F){i.Md(this.Kd),p=de(p,_,E,O),F!==void 0?this._drawColor(p,F):this._drawColor(p)},i.Canvas.prototype.drawDRRect=function(p,_,E){i.Md(this.Kd),p=dt(p,Ts),_=dt(_,tu),this._drawDRRect(p,_,E)},i.Canvas.prototype.drawImage=function(p,_,E,O){i.Md(this.Kd),this._drawImage(p,_,E,O||null)},i.Canvas.prototype.drawImageCubic=function(p,_,E,O,F,G){i.Md(this.Kd),this._drawImageCubic(p,_,E,O,F,G||null)},i.Canvas.prototype.drawImageOptions=function(p,_,E,O,F,G){i.Md(this.Kd),this._drawImageOptions(p,_,E,O,F,G||null)},i.Canvas.prototype.drawImageNine=function(p,_,E,O,F){i.Md(this.Kd),_=N(_,"HEAP32",Do),E=Ee(E),this._drawImageNine(p,_,E,O,F||null)},i.Canvas.prototype.drawImageRect=function(p,_,E,O,F){i.Md(this.Kd),Ee(_,Ze),Ee(E,hr),this._drawImageRect(p,Ze,hr,O,!!F)},i.Canvas.prototype.drawImageRectCubic=function(p,_,E,O,F,G){i.Md(this.Kd),Ee(_,Ze),Ee(E,hr),this._drawImageRectCubic(p,Ze,hr,O,F,G||null)},i.Canvas.prototype.drawImageRectOptions=function(p,_,E,O,F,G){i.Md(this.Kd),Ee(_,Ze),Ee(E,hr),this._drawImageRectOptions(p,Ze,hr,O,F,G||null)},i.Canvas.prototype.drawLine=function(p,_,E,O,F){i.Md(this.Kd),this._drawLine(p,_,E,O,F)},i.Canvas.prototype.drawOval=function(p,_){i.Md(this.Kd),p=Ee(p),this._drawOval(p,_)},i.Canvas.prototype.drawPaint=function(p){i.Md(this.Kd),this._drawPaint(p)},i.Canvas.prototype.drawParagraph=function(p,_,E){i.Md(this.Kd),this._drawParagraph(p,_,E)},i.Canvas.prototype.drawPatch=function(p,_,E,O,F){if(24>p.length)throw"Need 12 cubic points";if(_&&4>_.length)throw"Need 4 colors";if(E&&8>E.length)throw"Need 4 shader coordinates";i.Md(this.Kd);let G=N(p,"HEAPF32"),re=_?N(A(_),"HEAPU32"):je,ve=E?N(E,"HEAPF32"):je;O||(O=i.BlendMode.Modulate),this._drawPatch(G,re,ve,O,F),I(ve,E),I(re,_),I(G,p)},i.Canvas.prototype.drawPath=function(p,_){i.Md(this.Kd),this._drawPath(p,_)},i.Canvas.prototype.drawPicture=function(p){i.Md(this.Kd),this._drawPicture(p)},i.Canvas.prototype.drawPoints=function(p,_,E){i.Md(this.Kd);var O=N(_,"HEAPF32");this._drawPoints(p,O,_.length/2,E),I(O,_)},i.Canvas.prototype.drawRRect=function(p,_){i.Md(this.Kd),p=dt(p),this._drawRRect(p,_)},i.Canvas.prototype.drawRect=function(p,_){i.Md(this.Kd),p=Ee(p),this._drawRect(p,_)},i.Canvas.prototype.drawRect4f=function(p,_,E,O,F){i.Md(this.Kd),this._drawRect4f(p,_,E,O,F)},i.Canvas.prototype.drawShadow=function(p,_,E,O,F,G,re){i.Md(this.Kd);var ve=N(F,"HEAPF32"),ye=N(G,"HEAPF32");_=N(_,"HEAPF32",bs),E=N(E,"HEAPF32",Ss),this._drawShadow(p,_,E,O,ve,ye,re),I(ve,F),I(ye,G)},i.getShadowLocalBounds=function(p,_,E,O,F,G,re){return p=Q(p),E=N(E,"HEAPF32",bs),O=N(O,"HEAPF32",Ss),this._getShadowLocalBounds(p,_,E,O,F,G,Ze)?(_=Ut.toTypedArray(),re?(re.set(_),re):_.slice()):null},i.Canvas.prototype.drawTextBlob=function(p,_,E,O){i.Md(this.Kd),this._drawTextBlob(p,_,E,O)},i.Canvas.prototype.drawVertices=function(p,_,E){i.Md(this.Kd),this._drawVertices(p,_,E)},i.Canvas.prototype.getDeviceClipBounds=function(p){this._getDeviceClipBounds(Do);var _=zn.toTypedArray();return p?p.set(_):p=_.slice(),p},i.Canvas.prototype.getLocalToDevice=function(){this._getLocalToDevice(Hr);for(var p=Hr,_=Array(16),E=0;16>E;E++)_[E]=i.HEAPF32[p/4+E];return _},i.Canvas.prototype.getTotalMatrix=function(){this._getTotalMatrix(dr);for(var p=Array(9),_=0;9>_;_++)p[_]=i.HEAPF32[dr/4+_];return p},i.Canvas.prototype.makeSurface=function(p){return p=this._makeSurface(p),p.Kd=this.Kd,p},i.Canvas.prototype.readPixels=function(p,_,E,O,F){return i.Md(this.Kd),h(this,p,_,E,O,F)},i.Canvas.prototype.saveLayer=function(p,_,E,O){return _=Ee(_),this._saveLayer(p||null,_,E||null,O||0)},i.Canvas.prototype.writePixels=function(p,_,E,O,F,G,re,ve){if(p.byteLength%(_*E))throw"pixels length must be a multiple of the srcWidth * srcHeight";i.Md(this.Kd);var ye=p.byteLength/(_*E);G=G||i.AlphaType.Unpremul,re=re||i.ColorType.RGBA_8888,ve=ve||i.ColorSpace.SRGB;var Ce=ye*_;return ye=N(p,"HEAPU8"),_=this._writePixels({width:_,height:E,colorType:re,alphaType:G,colorSpace:ve},ye,Ce,O,F),I(ye,p),_},i.ColorFilter.MakeBlend=function(p,_,E){return p=U(p),E=E||i.ColorSpace.SRGB,i.ColorFilter._MakeBlend(p,_,E)},i.ColorFilter.MakeMatrix=function(p){if(!p||p.length!==20)throw"invalid color matrix";var _=N(p,"HEAPF32"),E=i.ColorFilter._makeMatrix(_);return I(_,p),E},i.ContourMeasure.prototype.getPosTan=function(p,_){return this._getPosTan(p,Ze),p=Ut.toTypedArray(),_?(_.set(p),_):p.slice()},i.ImageFilter.prototype.getOutputBounds=function(p,_,E){return p=Ee(p,Ze),_=Q(_),this._getOutputBounds(p,_,Do),_=zn.toTypedArray(),E?(E.set(_),E):_.slice()},i.ImageFilter.MakeDropShadow=function(p,_,E,O,F,G){return F=U(F,Mr),i.ImageFilter._MakeDropShadow(p,_,E,O,F,G)},i.ImageFilter.MakeDropShadowOnly=function(p,_,E,O,F,G){return F=U(F,Mr),i.ImageFilter._MakeDropShadowOnly(p,_,E,O,F,G)},i.ImageFilter.MakeImage=function(p,_,E,O){if(E=Ee(E,Ze),O=Ee(O,hr),"B"in _&&"C"in _)return i.ImageFilter._MakeImageCubic(p,_.B,_.C,E,O);let F=_.filter,G=i.MipmapMode.None;return"mipmap"in _&&(G=_.mipmap),i.ImageFilter._MakeImageOptions(p,F,G,E,O)},i.ImageFilter.MakeMatrixTransform=function(p,_,E){if(p=Q(p),"B"in _&&"C"in _)return i.ImageFilter._MakeMatrixTransformCubic(p,_.B,_.C,E);let O=_.filter,F=i.MipmapMode.None;return"mipmap"in _&&(F=_.mipmap),i.ImageFilter._MakeMatrixTransformOptions(p,O,F,E)},i.Paint.prototype.getColor=function(){return this._getColor(Mr),Ae(Mr)},i.Paint.prototype.setColor=function(p,_){_=_||null,p=U(p),this._setColor(p,_)},i.Paint.prototype.setColorComponents=function(p,_,E,O,F){F=F||null,p=de(p,_,E,O),this._setColor(p,F)},i.Path.prototype.getPoint=function(p,_){return this._getPoint(p,Ze),p=Ut.toTypedArray(),_?(_[0]=p[0],_[1]=p[1],_):p.slice(0,2)},i.Picture.prototype.makeShader=function(p,_,E,O,F){return O=Q(O),F=Ee(F),this._makeShader(p,_,E,O,F)},i.Picture.prototype.cullRect=function(p){this._cullRect(Ze);var _=Ut.toTypedArray();return p?(p.set(_),p):_.slice()},i.PictureRecorder.prototype.beginRecording=function(p,_){return p=Ee(p),this._beginRecording(p,!!_)},i.Surface.prototype.getCanvas=function(){var p=this._getCanvas();return p.Kd=this.Kd,p},i.Surface.prototype.makeImageSnapshot=function(p){return i.Md(this.Kd),p=N(p,"HEAP32",Do),this._makeImageSnapshot(p)},i.Surface.prototype.makeSurface=function(p){return i.Md(this.Kd),p=this._makeSurface(p),p.Kd=this.Kd,p},i.Surface.prototype.Gf=function(p,_){return this.He||(this.He=this.getCanvas()),requestAnimationFrame(function(){i.Md(this.Kd),p(this.He),this.flush(_)}.bind(this))},i.Surface.prototype.requestAnimationFrame||(i.Surface.prototype.requestAnimationFrame=i.Surface.prototype.Gf),i.Surface.prototype.Cf=function(p,_){this.He||(this.He=this.getCanvas()),requestAnimationFrame(function(){i.Md(this.Kd),p(this.He),this.flush(_),this.dispose()}.bind(this))},i.Surface.prototype.drawOnce||(i.Surface.prototype.drawOnce=i.Surface.prototype.Cf),i.PathEffect.MakeDash=function(p,_){if(_||(_=0),!p.length||p.length%2===1)throw"Intervals array must have even length";var E=N(p,"HEAPF32");return _=i.PathEffect._MakeDash(E,p.length,_),I(E,p),_},i.PathEffect.MakeLine2D=function(p,_){return _=Q(_),i.PathEffect._MakeLine2D(p,_)},i.PathEffect.MakePath2D=function(p,_){return p=Q(p),i.PathEffect._MakePath2D(p,_)},i.Shader.MakeColor=function(p,_){return _=_||null,p=U(p),i.Shader._MakeColor(p,_)},i.Shader.Blend=i.Shader.MakeBlend,i.Shader.Color=i.Shader.MakeColor,i.Shader.MakeLinearGradient=function(p,_,E,O,F,G,re,ve){ve=ve||null;var ye=q(E),Ce=N(O,"HEAPF32");re=re||0,G=Q(G);var Ne=Ut.toTypedArray();return Ne.set(p),Ne.set(_,2),p=i.Shader._MakeLinearGradient(Ze,ye.be,ye.colorType,Ce,ye.count,F,re,G,ve),I(ye.be,E),O&&I(Ce,O),p},i.Shader.MakeRadialGradient=function(p,_,E,O,F,G,re,ve){ve=ve||null;var ye=q(E),Ce=N(O,"HEAPF32");return re=re||0,G=Q(G),p=i.Shader._MakeRadialGradient(p[0],p[1],_,ye.be,ye.colorType,Ce,ye.count,F,re,G,ve),I(ye.be,E),O&&I(Ce,O),p},i.Shader.MakeSweepGradient=function(p,_,E,O,F,G,re,ve,ye,Ce){Ce=Ce||null;var Ne=q(E),C=N(O,"HEAPF32");return re=re||0,ve=ve||0,ye=ye||360,G=Q(G),p=i.Shader._MakeSweepGradient(p,_,Ne.be,Ne.colorType,C,Ne.count,F,ve,ye,re,G,Ce),I(Ne.be,E),O&&I(C,O),p},i.Shader.MakeTwoPointConicalGradient=function(p,_,E,O,F,G,re,ve,ye,Ce){Ce=Ce||null;var Ne=q(F),C=N(G,"HEAPF32");ye=ye||0,ve=Q(ve);var Y=Ut.toTypedArray();return Y.set(p),Y.set(E,2),p=i.Shader._MakeTwoPointConicalGradient(Ze,_,O,Ne.be,Ne.colorType,C,Ne.count,re,ye,ve,Ce),I(Ne.be,F),G&&I(C,G),p},i.Vertices.prototype.bounds=function(p){this._bounds(Ze);var _=Ut.toTypedArray();return p?(p.set(_),p):_.slice()},i.Td&&i.Td.forEach(function(p){p()})},i.computeTonalColors=function(h){var p=N(h.ambient,"HEAPF32"),_=N(h.spot,"HEAPF32");this._computeTonalColors(p,_);var E={ambient:Ae(p),spot:Ae(_)};return I(p,h.ambient),I(_,h.spot),E},i.LTRBRect=function(h,p,_,E){return Float32Array.of(h,p,_,E)},i.XYWHRect=function(h,p,_,E){return Float32Array.of(h,p,h+_,p+E)},i.LTRBiRect=function(h,p,_,E){return Int32Array.of(h,p,_,E)},i.XYWHiRect=function(h,p,_,E){return Int32Array.of(h,p,h+_,p+E)},i.RRectXY=function(h,p,_){return Float32Array.of(h[0],h[1],h[2],h[3],p,_,p,_,p,_,p,_)},i.MakeAnimatedImageFromEncoded=function(h){h=new Uint8Array(h);var p=i._malloc(h.byteLength);return i.HEAPU8.set(h,p),(h=i._decodeAnimatedImage(p,h.byteLength))?h:null},i.MakeImageFromEncoded=function(h){h=new Uint8Array(h);var p=i._malloc(h.byteLength);return i.HEAPU8.set(h,p),(h=i._decodeImage(p,h.byteLength))?h:null};var No=null;i.MakeImageFromCanvasImageSource=function(h){var p=h.width,_=h.height;No||(No=document.createElement("canvas")),No.width=p,No.height=_;var E=No.getContext("2d",{willReadFrequently:!0});return E.drawImage(h,0,0),h=E.getImageData(0,0,p,_),i.MakeImage({width:p,height:_,alphaType:i.AlphaType.Unpremul,colorType:i.ColorType.RGBA_8888,colorSpace:i.ColorSpace.SRGB},h.data,4*p)},i.MakeImage=function(h,p,_){var E=i._malloc(p.length);return i.HEAPU8.set(p,E),i._MakeImage(h,E,p.length,_)},i.MakeVertices=function(h,p,_,E,O,F){var G=O&&O.length||0,re=0;return _&&_.length&&(re|=1),E&&E.length&&(re|=2),F===void 0||F||(re|=4),h=new i._VerticesBuilder(h,p.length/2,G,re),N(p,"HEAPF32",h.positions()),h.texCoords()&&N(_,"HEAPF32",h.texCoords()),h.colors()&&N(A(E),"HEAPU32",h.colors()),h.indices()&&N(O,"HEAPU16",h.indices()),h.detach()},i.Matrix={},i.Matrix.identity=function(){return g(3)},i.Matrix.invert=function(h){var p=h[0]*h[4]*h[8]+h[1]*h[5]*h[6]+h[2]*h[3]*h[7]-h[2]*h[4]*h[6]-h[1]*h[3]*h[8]-h[0]*h[5]*h[7];return p?[(h[4]*h[8]-h[5]*h[7])/p,(h[2]*h[7]-h[1]*h[8])/p,(h[1]*h[5]-h[2]*h[4])/p,(h[5]*h[6]-h[3]*h[8])/p,(h[0]*h[8]-h[2]*h[6])/p,(h[2]*h[3]-h[0]*h[5])/p,(h[3]*h[7]-h[4]*h[6])/p,(h[1]*h[6]-h[0]*h[7])/p,(h[0]*h[4]-h[1]*h[3])/p]:null},i.Matrix.mapPoints=function(h,p){for(var _=0;_O;O+=5){for(var F=0;4>F;F++)_[E++]=h[O]*p[F]+h[O+1]*p[F+5]+h[O+2]*p[F+10]+h[O+3]*p[F+15];_[E++]=h[O]*p[4]+h[O+1]*p[9]+h[O+2]*p[14]+h[O+3]*p[19]+h[O+4]}return _},function(h){h.Td=h.Td||[],h.Td.push(function(){function p(C){return C&&(C.dir=C.dir===0?h.TextDirection.RTL:h.TextDirection.LTR),C}function _(C){if(!C||!C.length)return[];for(var Y=[],xe=0;xep?(i._free(h),null):(O=new Uint16Array(i.HEAPU8.buffer,h,p),_?(_.set(O),i._free(h),_):(_=Uint16Array.from(O),i._free(h),_))},i.Font.prototype.getGlyphIntercepts=function(h,p,_,E){var O=N(h,"HEAPU16"),F=N(p,"HEAPF32");return this._getGlyphIntercepts(O,h.length,!(h&&h._ck),F,p.length,!(p&&p._ck),_,E)},i.Font.prototype.getGlyphWidths=function(h,p,_){var E=N(h,"HEAPU16"),O=i._malloc(4*h.length);return this._getGlyphWidthBounds(E,h.length,O,je,p||null),p=new Float32Array(i.HEAPU8.buffer,O,h.length),I(E,h),_?(_.set(p),i._free(O),_):(h=Float32Array.from(p),i._free(O),h)},i.FontMgr.FromData=function(){if(!arguments.length)return null;var h=arguments;if(h.length===1&&Array.isArray(h[0])&&(h=arguments[0]),!h.length)return null;for(var p=[],_=[],E=0;Ep?(i._free(h),null):(O=new Uint16Array(i.HEAPU8.buffer,h,p),_?(_.set(O),i._free(h),_):(_=Uint16Array.from(O),i._free(h),_))},i.TextBlob.MakeOnPath=function(h,p,_,E){if(h&&h.length&&p&&p.countPoints()){if(p.countPoints()===1)return this.MakeFromText(h,_);E||(E=0);var O=_.getGlyphIDs(h);O=_.getGlyphWidths(O);var F=[];p=new i.ContourMeasureIter(p,!1,1);for(var G=p.next(),re=new Float32Array(4),ve=0;veG.length()){if(G.delete(),G=p.next(),!G){h=h.substring(0,ve);break}E=ye/2}G.getPosTan(E,re);var Ce=re[2],Ne=re[3];F.push(Ce,Ne,re[0]-ye/2*Ce,re[1]-ye/2*Ne),E+=ye/2}return h=this.MakeFromRSXform(h,F,_),G&&G.delete(),p.delete(),h}},i.TextBlob.MakeFromRSXform=function(h,p,_){var E=Lt(h)+1,O=i._malloc(E);return Nt(h,te,O,E),h=N(p,"HEAPF32"),_=i.TextBlob._MakeFromRSXform(O,E-1,h,_),i._free(O),_||null},i.TextBlob.MakeFromRSXformGlyphs=function(h,p,_){var E=N(h,"HEAPU16");return p=N(p,"HEAPF32"),_=i.TextBlob._MakeFromRSXformGlyphs(E,2*h.length,p,_),I(E,h),_||null},i.TextBlob.MakeFromGlyphs=function(h,p){var _=N(h,"HEAPU16");return p=i.TextBlob._MakeFromGlyphs(_,2*h.length,p),I(_,h),p||null},i.TextBlob.MakeFromText=function(h,p){var _=Lt(h)+1,E=i._malloc(_);return Nt(h,te,E,_),h=i.TextBlob._MakeFromText(E,_-1,p),i._free(E),h||null},i.MallocGlyphIDs=function(h){return i.Malloc(Uint16Array,h)}}),i.Td=i.Td||[],i.Td.push(function(){i.MakePicture=function(h){h=new Uint8Array(h);var p=i._malloc(h.byteLength);return i.HEAPU8.set(h,p),(h=i._MakePicture(p,h.byteLength))?h:null}}),i.Td=i.Td||[],i.Td.push(function(){i.RuntimeEffect.Make=function(h,p){return i.RuntimeEffect._Make(h,{onError:p||function(_){console.log("RuntimeEffect error",_)}})},i.RuntimeEffect.MakeForBlender=function(h,p){return i.RuntimeEffect._MakeForBlender(h,{onError:p||function(_){console.log("RuntimeEffect error",_)}})},i.RuntimeEffect.prototype.makeShader=function(h,p){var _=!h._ck,E=N(h,"HEAPF32");return p=Q(p),this._makeShader(E,4*h.length,_,p)},i.RuntimeEffect.prototype.makeShaderWithChildren=function(h,p,_){var E=!h._ck,O=N(h,"HEAPF32");_=Q(_);for(var F=[],G=0;GT||1=T||!T||(this.Ke=T,this.Od.setStrokeWidth(T))}}),Object.defineProperty(this,"miterLimit",{enumerable:!0,get:function(){return this.Od.getStrokeMiter()},set:function(T){0>=T||!T||this.Od.setStrokeMiter(T)}}),Object.defineProperty(this,"shadowBlur",{enumerable:!0,get:function(){return this.ve},set:function(T){0>T||!isFinite(T)||(this.ve=T)}}),Object.defineProperty(this,"shadowColor",{enumerable:!0,get:function(){return p(this.Je)},set:function(T){this.Je=_(T)}}),Object.defineProperty(this,"shadowOffsetX",{enumerable:!0,get:function(){return this.we},set:function(T){isFinite(T)&&(this.we=T)}}),Object.defineProperty(this,"shadowOffsetY",{enumerable:!0,get:function(){return this.xe},set:function(T){isFinite(T)&&(this.xe=T)}}),Object.defineProperty(this,"strokeStyle",{enumerable:!0,get:function(){return p(this.ge)},set:function(T){typeof T=="string"?this.ge=_(T):T.te&&(this.ge=T)}}),this.arc=function(T,j,k,z,X,Z){C(this.Qd,T,j,k,k,0,z,X,Z)},this.arcTo=function(T,j,k,z,X){ye(this.Qd,T,j,k,z,X)},this.beginPath=function(){this.Qd.delete(),this.Qd=new i.Path},this.bezierCurveTo=function(T,j,k,z,X,Z){var ue=this.Qd;h([T,j,k,z,X,Z])&&(ue.isEmpty()&&ue.moveTo(T,j),ue.cubicTo(T,j,k,z,X,Z))},this.clearRect=function(T,j,k,z){this.Od.setStyle(i.PaintStyle.Fill),this.Od.setBlendMode(i.BlendMode.Clear),this.Ld.drawRect(i.XYWHRect(T,j,k,z),this.Od),this.Od.setBlendMode(this.Nd)},this.clip=function(T,j){typeof T=="string"?(j=T,T=this.Qd):T&&T.af&&(T=T.Ud),T||(T=this.Qd),T=T.copy(),j&&j.toLowerCase()==="evenodd"?T.setFillType(i.FillType.EvenOdd):T.setFillType(i.FillType.Winding),this.Ld.clipPath(T,i.ClipOp.Intersect,!0),T.delete()},this.closePath=function(){Ce(this.Qd)},this.createImageData=function(){if(arguments.length===1){var T=arguments[0];return new re(new Uint8ClampedArray(4*T.width*T.height),T.width,T.height)}if(arguments.length===2){T=arguments[0];var j=arguments[1];return new re(new Uint8ClampedArray(4*T*j),T,j)}throw"createImageData expects 1 or 2 arguments, got "+arguments.length},this.createLinearGradient=function(T,j,k,z){if(h(arguments)){var X=new ve(T,j,k,z);return this.Be.push(X),X}},this.createPattern=function(T,j){return T=new Fe(T,j),this.Be.push(T),T},this.createRadialGradient=function(T,j,k,z,X,Z){if(h(arguments)){var ue=new et(T,j,k,z,X,Z);return this.Be.push(ue),ue}},this.drawImage=function(T){T instanceof G&&(T=T.tf());var j=this.Qe();if(arguments.length===3||arguments.length===5)var k=i.XYWHRect(arguments[1],arguments[2],arguments[3]||T.width(),arguments[4]||T.height()),z=i.XYWHRect(0,0,T.width(),T.height());else if(arguments.length===9)k=i.XYWHRect(arguments[5],arguments[6],arguments[7],arguments[8]),z=i.XYWHRect(arguments[1],arguments[2],arguments[3],arguments[4]);else throw"invalid number of args for drawImage, need 3, 5, or 9; got "+arguments.length;this.Ld.drawImageRect(T,z,k,j,!1),j.dispose()},this.ellipse=function(T,j,k,z,X,Z,ue,He){C(this.Qd,T,j,k,z,X,Z,ue,He)},this.Qe=function(){var T=this.Od.copy();if(T.setStyle(i.PaintStyle.Fill),y(this.ae)){var j=i.multiplyByAlpha(this.ae,this.ie);T.setColor(j)}else j=this.ae.te(this.Sd),T.setColor(i.Color(0,0,0,this.ie)),T.setShader(j);return T.dispose=function(){this.delete()},T},this.fill=function(T,j){if(typeof T=="string"?(j=T,T=this.Qd):T&&T.af&&(T=T.Ud),j==="evenodd")this.Qd.setFillType(i.FillType.EvenOdd);else{if(j!=="nonzero"&&j)throw"invalid fill rule";this.Qd.setFillType(i.FillType.Winding)}T||(T=this.Qd),j=this.Qe();var k=this.ye(j);k&&(this.Ld.save(),this.re(),this.Ld.drawPath(T,k),this.Ld.restore(),k.dispose()),this.Ld.drawPath(T,j),j.dispose()},this.fillRect=function(T,j,k,z){var X=this.Qe(),Z=this.ye(X);Z&&(this.Ld.save(),this.re(),this.Ld.drawRect(i.XYWHRect(T,j,k,z),Z),this.Ld.restore(),Z.dispose()),this.Ld.drawRect(i.XYWHRect(T,j,k,z),X),X.dispose()},this.fillText=function(T,j,k){var z=this.Qe();T=i.TextBlob.MakeFromText(T,this.me);var X=this.ye(z);X&&(this.Ld.save(),this.re(),this.Ld.drawTextBlob(T,j,k,X),this.Ld.restore(),X.dispose()),this.Ld.drawTextBlob(T,j,k,z),T.delete(),z.dispose()},this.getImageData=function(T,j,k,z){return(T=this.Ld.readPixels(T,j,{width:k,height:z,colorType:i.ColorType.RGBA_8888,alphaType:i.AlphaType.Unpremul,colorSpace:i.ColorSpace.SRGB}))?new re(new Uint8ClampedArray(T.buffer),k,z):null},this.getLineDash=function(){return this.ue.slice()},this.mf=function(T){var j=i.Matrix.invert(this.Sd);return i.Matrix.mapPoints(j,T),T},this.isPointInPath=function(T,j,k){var z=arguments;if(z.length===3)var X=this.Qd;else if(z.length===4)X=z[0],T=z[1],j=z[2],k=z[3];else throw"invalid arg count, need 3 or 4, got "+z.length;return!isFinite(T)||!isFinite(j)||(k=k||"nonzero",k!=="nonzero"&&k!=="evenodd")?!1:(z=this.mf([T,j]),T=z[0],j=z[1],X.setFillType(k==="nonzero"?i.FillType.Winding:i.FillType.EvenOdd),X.contains(T,j))},this.isPointInStroke=function(T,j){var k=arguments;if(k.length===2)var z=this.Qd;else if(k.length===3)z=k[0],T=k[1],j=k[2];else throw"invalid arg count, need 2 or 3, got "+k.length;return!isFinite(T)||!isFinite(j)?!1:(k=this.mf([T,j]),T=k[0],j=k[1],z=z.copy(),z.setFillType(i.FillType.Winding),z.stroke({width:this.lineWidth,miter_limit:this.miterLimit,cap:this.Od.getStrokeCap(),join:this.Od.getStrokeJoin(),precision:.3}),k=z.contains(T,j),z.delete(),k)},this.lineTo=function(T,j){Y(this.Qd,T,j)},this.measureText=function(T){T=this.me.getGlyphIDs(T),T=this.me.getGlyphWidths(T);let j=0;for(let k of T)j+=k;return{width:j}},this.moveTo=function(T,j){var k=this.Qd;h([T,j])&&k.moveTo(T,j)},this.putImageData=function(T,j,k,z,X,Z,ue){if(h([j,k,z,X,Z,ue])){if(z===void 0)this.Ld.writePixels(T.data,T.width,T.height,j,k);else if(z=z||0,X=X||0,Z=Z||T.width,ue=ue||T.height,0>Z&&(z+=Z,Z=Math.abs(Z)),0>ue&&(X+=ue,ue=Math.abs(ue)),0>z&&(Z+=z,z=0),0>X&&(ue+=X,X=0),!(0>=Z||0>=ue)){T=i.MakeImage({width:T.width,height:T.height,alphaType:i.AlphaType.Unpremul,colorType:i.ColorType.RGBA_8888,colorSpace:i.ColorSpace.SRGB},T.data,4*T.width);var He=i.XYWHRect(z,X,Z,ue);j=i.XYWHRect(j+z,k+X,Z,ue),k=i.Matrix.invert(this.Sd),this.Ld.save(),this.Ld.concat(k),this.Ld.drawImageRect(T,He,j,null,!1),this.Ld.restore(),T.delete()}}},this.quadraticCurveTo=function(T,j,k,z){var X=this.Qd;h([T,j,k,z])&&(X.isEmpty()&&X.moveTo(T,j),X.quadTo(T,j,k,z))},this.rect=function(T,j,k,z){var X=this.Qd;T=i.XYWHRect(T,j,k,z),h(T)&&X.addRect(T)},this.resetTransform=function(){this.Qd.transform(this.Sd);var T=i.Matrix.invert(this.Sd);this.Ld.concat(T),this.Sd=this.Ld.getTotalMatrix()},this.restore=function(){var T=this.lf.pop();if(T){var j=i.Matrix.multiply(this.Sd,i.Matrix.invert(T.Jf));this.Qd.transform(j),this.Od.delete(),this.Od=T.ag,this.ue=T.Zf,this.Ke=T.mg,this.ge=T.lg,this.ae=T.fs,this.we=T.jg,this.xe=T.kg,this.ve=T.sb,this.Je=T.ig,this.ie=T.ga,this.Nd=T.Qf,this.Ie=T.$f,this.Re=T.Pf,this.Ld.restore(),this.Sd=this.Ld.getTotalMatrix()}},this.rotate=function(T){if(isFinite(T)){var j=i.Matrix.rotated(-T);this.Qd.transform(j),this.Ld.rotate(T/Math.PI*180,0,0),this.Sd=this.Ld.getTotalMatrix()}},this.save=function(){if(this.ae.se){var T=this.ae.se();this.Be.push(T)}else T=this.ae;if(this.ge.se){var j=this.ge.se();this.Be.push(j)}else j=this.ge;this.lf.push({Jf:this.Sd.slice(),Zf:this.ue.slice(),mg:this.Ke,lg:j,fs:T,jg:this.we,kg:this.xe,sb:this.ve,ig:this.Je,ga:this.ie,$f:this.Ie,Qf:this.Nd,ag:this.Od.copy(),Pf:this.Re}),this.Ld.save()},this.scale=function(T,j){if(h(arguments)){var k=i.Matrix.scaled(1/T,1/j);this.Qd.transform(k),this.Ld.scale(T,j),this.Sd=this.Ld.getTotalMatrix()}},this.setLineDash=function(T){for(var j=0;jT[j])return;T.length%2===1&&Array.prototype.push.apply(T,T),this.ue=T},this.setTransform=function(T,j,k,z,X,Z){h(arguments)&&(this.resetTransform(),this.transform(T,j,k,z,X,Z))},this.re=function(){var T=i.Matrix.invert(this.Sd);this.Ld.concat(T),this.Ld.concat(i.Matrix.translated(this.we,this.xe)),this.Ld.concat(this.Sd)},this.ye=function(T){var j=i.multiplyByAlpha(this.Je,this.ie);if(!i.getColorComponents(j)[3]||!(this.ve||this.xe||this.we))return null;T=T.copy(),T.setColor(j);var k=i.MaskFilter.MakeBlur(i.BlurStyle.Normal,this.ve/2,!1);return T.setMaskFilter(k),T.dispose=function(){k.delete(),this.delete()},T},this.cf=function(){var T=this.Od.copy();if(T.setStyle(i.PaintStyle.Stroke),y(this.ge)){var j=i.multiplyByAlpha(this.ge,this.ie);T.setColor(j)}else j=this.ge.te(this.Sd),T.setColor(i.Color(0,0,0,this.ie)),T.setShader(j);if(T.setStrokeWidth(this.Ke),this.ue.length){var k=i.PathEffect.MakeDash(this.ue,this.Ie);T.setPathEffect(k)}return T.dispose=function(){k&&k.delete(),this.delete()},T},this.stroke=function(T){T=T?T.Ud:this.Qd;var j=this.cf(),k=this.ye(j);k&&(this.Ld.save(),this.re(),this.Ld.drawPath(T,k),this.Ld.restore(),k.dispose()),this.Ld.drawPath(T,j),j.dispose()},this.strokeRect=function(T,j,k,z){var X=this.cf(),Z=this.ye(X);Z&&(this.Ld.save(),this.re(),this.Ld.drawRect(i.XYWHRect(T,j,k,z),Z),this.Ld.restore(),Z.dispose()),this.Ld.drawRect(i.XYWHRect(T,j,k,z),X),X.dispose()},this.strokeText=function(T,j,k){var z=this.cf();T=i.TextBlob.MakeFromText(T,this.me);var X=this.ye(z);X&&(this.Ld.save(),this.re(),this.Ld.drawTextBlob(T,j,k,X),this.Ld.restore(),X.dispose()),this.Ld.drawTextBlob(T,j,k,z),T.delete(),z.dispose()},this.translate=function(T,j){if(h(arguments)){var k=i.Matrix.translated(-T,-j);this.Qd.transform(k),this.Ld.translate(T,j),this.Sd=this.Ld.getTotalMatrix()}},this.transform=function(T,j,k,z,X,Z){T=[T,k,X,j,z,Z,0,0,1],j=i.Matrix.invert(T),this.Qd.transform(j),this.Ld.concat(T),this.Sd=this.Ld.getTotalMatrix()},this.addHitRegion=function(){},this.clearHitRegions=function(){},this.drawFocusIfNeeded=function(){},this.removeHitRegion=function(){},this.scrollPathIntoView=function(){},Object.defineProperty(this,"canvas",{value:null,writable:!1})}function F(J){this.df=J,this.Kd=new O(J.getCanvas()),this.Se=[],this.decodeImage=function(T){if(T=i.MakeImageFromEncoded(T),!T)throw"Invalid input";return this.Se.push(T),new G(T)},this.loadFont=function(T,j){if(T=i.Typeface.MakeFreeTypeFaceFromData(T),!T)return null;this.Se.push(T);var k=(j.style||"normal")+"|"+(j.variant||"normal")+"|"+(j.weight||"normal");j=j.family,gt[j]||(gt[j]={"*":T}),gt[j][k]=T},this.makePath2D=function(T){return T=new xe(T),this.Se.push(T.Ud),T},this.getContext=function(T){return T==="2d"?this.Kd:null},this.toDataURL=function(T,j){this.df.flush();var k=this.df.makeImageSnapshot();if(k){T=T||"image/png";var z=i.ImageFormat.PNG;if(T==="image/jpeg"&&(z=i.ImageFormat.JPEG),j=k.encodeToBytes(z,j||.92)){if(k.delete(),T="data:"+T+";base64,",typeof Buffer<"u")j=Buffer.from(j).toString("base64");else{k=0,z=j.length;for(var X="",Z;kz||1z);Z++);this.Zd.splice(Z,0,z),this.ce.splice(Z,0,X)}},this.se=function(){var z=new ve(J,T,j,k);return z.ce=this.ce.slice(),z.Zd=this.Zd.slice(),z},this.le=function(){this.Wd&&(this.Wd.delete(),this.Wd=null)},this.te=function(z){var X=[J,T,j,k];i.Matrix.mapPoints(z,X),z=X[0];var Z=X[1],ue=X[2];return X=X[3],this.le(),this.Wd=i.Shader.MakeLinearGradient([z,Z],[ue,X],this.ce,this.Zd,i.TileMode.Clamp)}}function ye(J,T,j,k,z,X){if(h([T,j,k,z,X])){if(0>X)throw"radii cannot be negative";J.isEmpty()&&J.moveTo(T,j),J.arcToTangent(T,j,k,z,X)}}function Ce(J){if(!J.isEmpty()){var T=J.getBounds();(T[3]-T[1]||T[2]-T[0])&&J.close()}}function Ne(J,T,j,k,z,X,Z){Z=(Z-X)/Math.PI*180,X=X/Math.PI*180,T=i.LTRBRect(T-k,j-z,T+k,j+z),1e-5>Math.abs(Math.abs(Z)-360)?(j=Z/2,J.arcToOval(T,X,j,!1),J.arcToOval(T,X+j,j,!1)):J.arcToOval(T,X,Z,!1)}function C(J,T,j,k,z,X,Z,ue,He){if(h([T,j,k,z,X,Z,ue])){if(0>k||0>z)throw"radii cannot be negative";var ze=2*Math.PI,Qt=Z%ze;0>Qt&&(Qt+=ze);var Lo=Qt-Z;Z=Qt,ue+=Lo,!He&&ue-Z>=ze?ue=Z+ze:He&&Z-ue>=ze?ue=Z-ze:!He&&Z>ue?ue=Z+(ze-(Z-ue)%ze):He&&ZZ||1Z);He++);this.Zd.splice(He,0,Z),this.ce.splice(He,0,ue)}},this.se=function(){var Z=new et(J,T,j,k,z,X);return Z.ce=this.ce.slice(),Z.Zd=this.Zd.slice(),Z},this.le=function(){this.Wd&&(this.Wd.delete(),this.Wd=null)},this.te=function(Z){var ue=[J,T,k,z];i.Matrix.mapPoints(Z,ue);var He=ue[0],ze=ue[1],Qt=ue[2];ue=ue[3];var Lo=(Math.abs(Z[0])+Math.abs(Z[4]))/2;return Z=j*Lo,Lo*=X,this.le(),this.Wd=i.Shader.MakeTwoPointConicalGradient([He,ze],Z,[Qt,ue],Lo,this.ce,this.Zd,i.TileMode.Clamp)}}i._testing={};var It={aliceblue:Float32Array.of(.941,.973,1,1),antiquewhite:Float32Array.of(.98,.922,.843,1),aqua:Float32Array.of(0,1,1,1),aquamarine:Float32Array.of(.498,1,.831,1),azure:Float32Array.of(.941,1,1,1),beige:Float32Array.of(.961,.961,.863,1),bisque:Float32Array.of(1,.894,.769,1),black:Float32Array.of(0,0,0,1),blanchedalmond:Float32Array.of(1,.922,.804,1),blue:Float32Array.of(0,0,1,1),blueviolet:Float32Array.of(.541,.169,.886,1),brown:Float32Array.of(.647,.165,.165,1),burlywood:Float32Array.of(.871,.722,.529,1),cadetblue:Float32Array.of(.373,.62,.627,1),chartreuse:Float32Array.of(.498,1,0,1),chocolate:Float32Array.of(.824,.412,.118,1),coral:Float32Array.of(1,.498,.314,1),cornflowerblue:Float32Array.of(.392,.584,.929,1),cornsilk:Float32Array.of(1,.973,.863,1),crimson:Float32Array.of(.863,.078,.235,1),cyan:Float32Array.of(0,1,1,1),darkblue:Float32Array.of(0,0,.545,1),darkcyan:Float32Array.of(0,.545,.545,1),darkgoldenrod:Float32Array.of(.722,.525,.043,1),darkgray:Float32Array.of(.663,.663,.663,1),darkgreen:Float32Array.of(0,.392,0,1),darkgrey:Float32Array.of(.663,.663,.663,1),darkkhaki:Float32Array.of(.741,.718,.42,1),darkmagenta:Float32Array.of(.545,0,.545,1),darkolivegreen:Float32Array.of(.333,.42,.184,1),darkorange:Float32Array.of(1,.549,0,1),darkorchid:Float32Array.of(.6,.196,.8,1),darkred:Float32Array.of(.545,0,0,1),darksalmon:Float32Array.of(.914,.588,.478,1),darkseagreen:Float32Array.of(.561,.737,.561,1),darkslateblue:Float32Array.of(.282,.239,.545,1),darkslategray:Float32Array.of(.184,.31,.31,1),darkslategrey:Float32Array.of(.184,.31,.31,1),darkturquoise:Float32Array.of(0,.808,.82,1),darkviolet:Float32Array.of(.58,0,.827,1),deeppink:Float32Array.of(1,.078,.576,1),deepskyblue:Float32Array.of(0,.749,1,1),dimgray:Float32Array.of(.412,.412,.412,1),dimgrey:Float32Array.of(.412,.412,.412,1),dodgerblue:Float32Array.of(.118,.565,1,1),firebrick:Float32Array.of(.698,.133,.133,1),floralwhite:Float32Array.of(1,.98,.941,1),forestgreen:Float32Array.of(.133,.545,.133,1),fuchsia:Float32Array.of(1,0,1,1),gainsboro:Float32Array.of(.863,.863,.863,1),ghostwhite:Float32Array.of(.973,.973,1,1),gold:Float32Array.of(1,.843,0,1),goldenrod:Float32Array.of(.855,.647,.125,1),gray:Float32Array.of(.502,.502,.502,1),green:Float32Array.of(0,.502,0,1),greenyellow:Float32Array.of(.678,1,.184,1),grey:Float32Array.of(.502,.502,.502,1),honeydew:Float32Array.of(.941,1,.941,1),hotpink:Float32Array.of(1,.412,.706,1),indianred:Float32Array.of(.804,.361,.361,1),indigo:Float32Array.of(.294,0,.51,1),ivory:Float32Array.of(1,1,.941,1),khaki:Float32Array.of(.941,.902,.549,1),lavender:Float32Array.of(.902,.902,.98,1),lavenderblush:Float32Array.of(1,.941,.961,1),lawngreen:Float32Array.of(.486,.988,0,1),lemonchiffon:Float32Array.of(1,.98,.804,1),lightblue:Float32Array.of(.678,.847,.902,1),lightcoral:Float32Array.of(.941,.502,.502,1),lightcyan:Float32Array.of(.878,1,1,1),lightgoldenrodyellow:Float32Array.of(.98,.98,.824,1),lightgray:Float32Array.of(.827,.827,.827,1),lightgreen:Float32Array.of(.565,.933,.565,1),lightgrey:Float32Array.of(.827,.827,.827,1),lightpink:Float32Array.of(1,.714,.757,1),lightsalmon:Float32Array.of(1,.627,.478,1),lightseagreen:Float32Array.of(.125,.698,.667,1),lightskyblue:Float32Array.of(.529,.808,.98,1),lightslategray:Float32Array.of(.467,.533,.6,1),lightslategrey:Float32Array.of(.467,.533,.6,1),lightsteelblue:Float32Array.of(.69,.769,.871,1),lightyellow:Float32Array.of(1,1,.878,1),lime:Float32Array.of(0,1,0,1),limegreen:Float32Array.of(.196,.804,.196,1),linen:Float32Array.of(.98,.941,.902,1),magenta:Float32Array.of(1,0,1,1),maroon:Float32Array.of(.502,0,0,1),mediumaquamarine:Float32Array.of(.4,.804,.667,1),mediumblue:Float32Array.of(0,0,.804,1),mediumorchid:Float32Array.of(.729,.333,.827,1),mediumpurple:Float32Array.of(.576,.439,.859,1),mediumseagreen:Float32Array.of(.235,.702,.443,1),mediumslateblue:Float32Array.of(.482,.408,.933,1),mediumspringgreen:Float32Array.of(0,.98,.604,1),mediumturquoise:Float32Array.of(.282,.82,.8,1),mediumvioletred:Float32Array.of(.78,.082,.522,1),midnightblue:Float32Array.of(.098,.098,.439,1),mintcream:Float32Array.of(.961,1,.98,1),mistyrose:Float32Array.of(1,.894,.882,1),moccasin:Float32Array.of(1,.894,.71,1),navajowhite:Float32Array.of(1,.871,.678,1),navy:Float32Array.of(0,0,.502,1),oldlace:Float32Array.of(.992,.961,.902,1),olive:Float32Array.of(.502,.502,0,1),olivedrab:Float32Array.of(.42,.557,.137,1),orange:Float32Array.of(1,.647,0,1),orangered:Float32Array.of(1,.271,0,1),orchid:Float32Array.of(.855,.439,.839,1),palegoldenrod:Float32Array.of(.933,.91,.667,1),palegreen:Float32Array.of(.596,.984,.596,1),paleturquoise:Float32Array.of(.686,.933,.933,1),palevioletred:Float32Array.of(.859,.439,.576,1),papayawhip:Float32Array.of(1,.937,.835,1),peachpuff:Float32Array.of(1,.855,.725,1),peru:Float32Array.of(.804,.522,.247,1),pink:Float32Array.of(1,.753,.796,1),plum:Float32Array.of(.867,.627,.867,1),powderblue:Float32Array.of(.69,.878,.902,1),purple:Float32Array.of(.502,0,.502,1),rebeccapurple:Float32Array.of(.4,.2,.6,1),red:Float32Array.of(1,0,0,1),rosybrown:Float32Array.of(.737,.561,.561,1),royalblue:Float32Array.of(.255,.412,.882,1),saddlebrown:Float32Array.of(.545,.271,.075,1),salmon:Float32Array.of(.98,.502,.447,1),sandybrown:Float32Array.of(.957,.643,.376,1),seagreen:Float32Array.of(.18,.545,.341,1),seashell:Float32Array.of(1,.961,.933,1),sienna:Float32Array.of(.627,.322,.176,1),silver:Float32Array.of(.753,.753,.753,1),skyblue:Float32Array.of(.529,.808,.922,1),slateblue:Float32Array.of(.416,.353,.804,1),slategray:Float32Array.of(.439,.502,.565,1),slategrey:Float32Array.of(.439,.502,.565,1),snow:Float32Array.of(1,.98,.98,1),springgreen:Float32Array.of(0,1,.498,1),steelblue:Float32Array.of(.275,.51,.706,1),tan:Float32Array.of(.824,.706,.549,1),teal:Float32Array.of(0,.502,.502,1),thistle:Float32Array.of(.847,.749,.847,1),tomato:Float32Array.of(1,.388,.278,1),transparent:Float32Array.of(0,0,0,0),turquoise:Float32Array.of(.251,.878,.816,1),violet:Float32Array.of(.933,.51,.933,1),wheat:Float32Array.of(.961,.871,.702,1),white:Float32Array.of(1,1,1,1),whitesmoke:Float32Array.of(.961,.961,.961,1),yellow:Float32Array.of(1,1,0,1),yellowgreen:Float32Array.of(.604,.804,.196,1)};i._testing.parseColor=_,i._testing.colorToString=p;var jt=RegExp("(italic|oblique|normal|)\\s*(small-caps|normal|)\\s*(bold|bolder|lighter|[1-9]00|normal|)\\s*([\\d\\.]+)(px|pt|pc|in|cm|mm|%|em|ex|ch|rem|q)(.+)"),gt={"Noto Mono":{"*":null},monospace:{"*":null}};i._testing.parseFontString=E,i.MakeCanvas=function(J,T){return(J=i.MakeSurface(J,T))?new F(J):null},i.ImageData=function(){if(arguments.length===2){var J=arguments[0],T=arguments[1];return new re(new Uint8ClampedArray(4*J*T),J,T)}if(arguments.length===3){var j=arguments[0];if(j.prototype.constructor!==Uint8ClampedArray)throw"bytes must be given as a Uint8ClampedArray";if(J=arguments[1],T=arguments[2],j%4)throw"bytes must be given in a multiple of 4";if(j%J)throw"bytes must divide evenly by width";if(T&&T!==j/(4*J))throw"invalid height given";return new re(j,J,j/(4*J))}throw"invalid number of arguments - takes 2 or 3, saw "+arguments.length}}()}(o);var l=Object.assign({},o),m="./this.program",S=(i,u)=>{throw u},w=typeof window=="object",R=typeof importScripts=="function",D=typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node=="string",M="",H,V,$;if(D){var K=ru("fs"),le=ru("path");M=R?le.dirname(M)+"/":__dirname+"/",H=(i,u)=>(i=i.startsWith("file://")?new URL(i):le.normalize(i),K.readFileSync(i,u?void 0:"utf8")),$=i=>(i=H(i,!0),i.buffer||(i=new Uint8Array(i)),i),V=(i,u,g,y=!0)=>{i=i.startsWith("file://")?new URL(i):le.normalize(i),K.readFile(i,y?void 0:"utf8",(v,A)=>{v?g(v):u(y?A.buffer:A)})},!o.thisProgram&&1{throw process.exitCode=i,u},o.inspect=()=>"[Emscripten Module object]"}else(w||R)&&(R?M=self.location.href:typeof document<"u"&&document.currentScript&&(M=document.currentScript.src),t&&(M=t),M.indexOf("blob:")!==0?M=M.substr(0,M.replace(/[?#].*/,"").lastIndexOf("/")+1):M="",H=i=>{var u=new XMLHttpRequest;return u.open("GET",i,!1),u.send(null),u.responseText},R&&($=i=>{var u=new XMLHttpRequest;return u.open("GET",i,!1),u.responseType="arraybuffer",u.send(null),new Uint8Array(u.response)}),V=(i,u,g)=>{var y=new XMLHttpRequest;y.open("GET",i,!0),y.responseType="arraybuffer",y.onload=()=>{y.status==200||y.status==0&&y.response?u(y.response):g()},y.onerror=g,y.send(null)});var oe=o.print||console.log.bind(console),se=o.printErr||console.error.bind(console);Object.assign(o,l),l=null,o.thisProgram&&(m=o.thisProgram),o.quit&&(S=o.quit);var ne;o.wasmBinary&&(ne=o.wasmBinary);var he=o.noExitRuntime||!0;typeof WebAssembly!="object"&&rr("no native wasm support detected");var ce,ie,Pe=!1,Ue,te,me,fe,ee,Me,pe,_t;function tt(){var i=ce.buffer;o.HEAP8=Ue=new Int8Array(i),o.HEAP16=me=new Int16Array(i),o.HEAP32=ee=new Int32Array(i),o.HEAPU8=te=new Uint8Array(i),o.HEAPU16=fe=new Uint16Array(i),o.HEAPU32=Me=new Uint32Array(i),o.HEAPF32=pe=new Float32Array(i),o.HEAPF64=_t=new Float64Array(i)}var qe,_o=[],Ot=[],Sn=[];function ts(){var i=o.preRun.shift();_o.unshift(i)}var Pt=0,Yt=null,pr=null;function rr(i){throw o.onAbort&&o.onAbort(i),i="Aborted("+i+")",se(i),Pe=!0,i=new WebAssembly.RuntimeError(i+". Build with -sASSERTIONS for more info."),s(i),i}function Br(i){return i.startsWith("data:application/octet-stream;base64,")}var qt;if(qt="canvaskit.wasm",!Br(qt)){var vo=qt;qt=o.locateFile?o.locateFile(vo,M):M+vo}function bo(i){if(i==qt&&ne)return new Uint8Array(ne);if($)return $(i);throw"both async and sync fetching of the wasm failed"}function rs(i){if(!ne&&(w||R)){if(typeof fetch=="function"&&!i.startsWith("file://"))return fetch(i,{credentials:"same-origin"}).then(u=>{if(!u.ok)throw"failed to load wasm binary file at '"+i+"'";return u.arrayBuffer()}).catch(()=>bo(i));if(V)return new Promise((u,g)=>{V(i,y=>u(new Uint8Array(y)),g)})}return Promise.resolve().then(()=>bo(i))}function So(i,u,g){return rs(i).then(y=>WebAssembly.instantiate(y,u)).then(y=>y).then(g,y=>{se("failed to asynchronously prepare wasm: "+y),rr(y)})}function Tn(i,u){var g=qt;return ne||typeof WebAssembly.instantiateStreaming!="function"||Br(g)||g.startsWith("file://")||D||typeof fetch!="function"?So(g,i,u):fetch(g,{credentials:"same-origin"}).then(y=>WebAssembly.instantiateStreaming(y,i).then(u,function(v){return se("wasm streaming compile failed: "+v),se("falling back to ArrayBuffer instantiation"),So(g,i,u)}))}function En(i){this.name="ExitStatus",this.message=`Program terminated with exit(${i})`,this.status=i}var os=i=>{for(;0{var y=u+g;for(g=u;i[g]&&!(g>=y);)++g;if(16v?y+=String.fromCharCode(v):(v-=65536,y+=String.fromCharCode(55296|v>>10,56320|v&1023))}}else y+=String.fromCharCode(v)}return y},wn={};function ns(i){for(;i.length;){var u=i.pop();i.pop()(u)}}function To(i){return this.fromWireType(ee[i>>2])}var Fr={},wr={},An={},_l=void 0;function xn(i){throw new _l(i)}function Dt(i,u,g){function y(x){x=g(x),x.length!==i.length&&xn("Mismatched type converter count");for(var I=0;I{wr.hasOwnProperty(x)?v[I]=wr[x]:(A.push(x),Fr.hasOwnProperty(x)||(Fr[x]=[]),Fr[x].push(()=>{v[I]=wr[x],++P,P===A.length&&y(v)}))}),A.length===0&&y(v)}function Mn(i){switch(i){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError(`Unknown type size: ${i}`)}}var vl=void 0;function Xe(i){for(var u="";te[i];)u+=vl[te[i++]];return u}var Ur=void 0;function De(i){throw new Ur(i)}function Rd(i,u,g={}){var y=u.name;if(i||De(`type "${y}" must have a positive integer typeid pointer`),wr.hasOwnProperty(i)){if(g.Wf)return;De(`Cannot register type '${y}' twice`)}wr[i]=u,delete An[i],Fr.hasOwnProperty(i)&&(u=Fr[i],delete Fr[i],u.forEach(v=>v()))}function Kt(i,u,g={}){if(!("argPackAdvance"in u))throw new TypeError("registerType registeredInstance requires argPackAdvance");Rd(i,u,g)}function is(i){De(i.Jd.Vd.Pd.name+" instance already deleted")}var ss=!1;function bl(){}function Sl(i){--i.count.value,i.count.value===0&&(i.Yd?i.ee.ke(i.Yd):i.Vd.Pd.ke(i.Rd))}function Tl(i,u,g){return u===g?i:g.$d===void 0?null:(i=Tl(i,u,g.$d),i===null?null:g.Mf(i))}var El={},Eo=[];function as(){for(;Eo.length;){var i=Eo.pop();i.Jd.Ee=!1,i.delete()}}var wo=void 0,Ao={};function Cd(i,u){for(u===void 0&&De("ptr should not be undefined");i.$d;)u=i.Oe(u),i=i.$d;return Ao[u]}function In(i,u){return u.Vd&&u.Rd||xn("makeClassHandle requires ptr and ptrType"),!!u.ee!=!!u.Yd&&xn("Both smartPtrType and smartPtr must be specified"),u.count={value:1},xo(Object.create(i,{Jd:{value:u}}))}function xo(i){return typeof FinalizationRegistry>"u"?(xo=u=>u,i):(ss=new FinalizationRegistry(u=>{Sl(u.Jd)}),xo=u=>{var g=u.Jd;return g.Yd&&ss.register(u,{Jd:g},u),u},bl=u=>{ss.unregister(u)},xo(i))}function cr(){}function wl(i){if(i===void 0)return"_unknown";i=i.replace(/[^a-zA-Z0-9_]/g,"$");var u=i.charCodeAt(0);return 48<=u&&57>=u?`_${i}`:i}function ls(i,u){return i=wl(i),{[i]:function(){return u.apply(this,arguments)}}[i]}function us(i,u,g){if(i[u].Xd===void 0){var y=i[u];i[u]=function(){return i[u].Xd.hasOwnProperty(arguments.length)||De(`Function '${g}' called with an invalid number of arguments (${arguments.length}) - expects one of (${i[u].Xd})!`),i[u].Xd[arguments.length].apply(this,arguments)},i[u].Xd=[],i[u].Xd[y.Ce]=y}}function gs(i,u,g){o.hasOwnProperty(i)?((g===void 0||o[i].Xd!==void 0&&o[i].Xd[g]!==void 0)&&De(`Cannot register public name '${i}' twice`),us(o,i,i),o.hasOwnProperty(g)&&De(`Cannot register multiple overloads of a function with the same number of arguments (${g})!`),o[i].Xd[g]=u):(o[i]=u,g!==void 0&&(o[i].tg=g))}function Od(i,u,g,y,v,A,P,x){this.name=i,this.constructor=u,this.Fe=g,this.ke=y,this.$d=v,this.Rf=A,this.Oe=P,this.Mf=x,this.cg=[]}function ps(i,u,g){for(;u!==g;)u.Oe||De(`Expected null or instance of ${g.name}, got an instance of ${u.name}`),i=u.Oe(i),u=u.$d;return i}function Pd(i,u){return u===null?(this.gf&&De(`null is not a valid ${this.name}`),0):(u.Jd||De(`Cannot pass "${fs(u)}" as a ${this.name}`),u.Jd.Rd||De(`Cannot pass deleted object as a pointer of type ${this.name}`),ps(u.Jd.Rd,u.Jd.Vd.Pd,this.Pd))}function Dd(i,u){if(u===null){if(this.gf&&De(`null is not a valid ${this.name}`),this.Ve){var g=this.hf();return i!==null&&i.push(this.ke,g),g}return 0}if(u.Jd||De(`Cannot pass "${fs(u)}" as a ${this.name}`),u.Jd.Rd||De(`Cannot pass deleted object as a pointer of type ${this.name}`),!this.Ue&&u.Jd.Vd.Ue&&De(`Cannot convert argument of type ${u.Jd.ee?u.Jd.ee.name:u.Jd.Vd.name} to parameter type ${this.name}`),g=ps(u.Jd.Rd,u.Jd.Vd.Pd,this.Pd),this.Ve)switch(u.Jd.Yd===void 0&&De("Passing raw pointer to smart pointer is illegal"),this.hg){case 0:u.Jd.ee===this?g=u.Jd.Yd:De(`Cannot convert argument of type ${u.Jd.ee?u.Jd.ee.name:u.Jd.Vd.name} to parameter type ${this.name}`);break;case 1:g=u.Jd.Yd;break;case 2:if(u.Jd.ee===this)g=u.Jd.Yd;else{var y=u.clone();g=this.dg(g,xt(function(){y.delete()})),i!==null&&i.push(this.ke,g)}break;default:De("Unsupporting sharing policy")}return g}function Nd(i,u){return u===null?(this.gf&&De(`null is not a valid ${this.name}`),0):(u.Jd||De(`Cannot pass "${fs(u)}" as a ${this.name}`),u.Jd.Rd||De(`Cannot pass deleted object as a pointer of type ${this.name}`),u.Jd.Vd.Ue&&De(`Cannot convert argument of type ${u.Jd.Vd.name} to parameter type ${this.name}`),ps(u.Jd.Rd,u.Jd.Vd.Pd,this.Pd))}function Xt(i,u,g,y,v,A,P,x,I,N,q){this.name=i,this.Pd=u,this.gf=g,this.Ue=y,this.Ve=v,this.bg=A,this.hg=P,this.vf=x,this.hf=I,this.dg=N,this.ke=q,v||u.$d!==void 0?this.toWireType=Dd:(this.toWireType=y?Pd:Nd,this.de=null)}function Al(i,u,g){o.hasOwnProperty(i)||xn("Replacing nonexistant public symbol"),o[i].Xd!==void 0&&g!==void 0?o[i].Xd[g]=u:(o[i]=u,o[i].Ce=g)}var Ld=(i,u)=>{var g=[];return function(){if(g.length=0,Object.assign(g,arguments),i.includes("j")){var y=o["dynCall_"+i];y=g&&g.length?y.apply(null,[u].concat(g)):y.call(null,u)}else y=qe.get(u).apply(null,g);return y}};function st(i,u){i=Xe(i);var g=i.includes("j")?Ld(i,u):qe.get(u);return typeof g!="function"&&De(`unknown function pointer with signature ${i}: ${u}`),g}var xl=void 0;function Ml(i){i=ql(i);var u=Xe(i);return or(i),u}function Mo(i,u){function g(A){v[A]||wr[A]||(An[A]?An[A].forEach(g):(y.push(A),v[A]=!0))}var y=[],v={};throw u.forEach(g),new xl(`${i}: `+y.map(Ml).join([", "]))}function jn(i,u,g,y,v){var A=u.length;2>A&&De("argTypes array size mismatch! Must at least get return value and 'this' types!");var P=u[1]!==null&&g!==null,x=!1;for(g=1;g>2]);return g}function Il(){this.je=[void 0],this.sf=[]}var wt=new Il;function cs(i){i>=wt.Ge&&--wt.get(i).wf===0&&wt.Bf(i)}var At=i=>(i||De("Cannot use deleted val. handle = "+i),wt.get(i).value),xt=i=>{switch(i){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:return wt.Af({wf:1,value:i})}};function Bd(i,u,g){switch(u){case 0:return function(y){return this.fromWireType((g?Ue:te)[y])};case 1:return function(y){return this.fromWireType((g?me:fe)[y>>1])};case 2:return function(y){return this.fromWireType((g?ee:Me)[y>>2])};default:throw new TypeError("Unknown integer type: "+i)}}function Io(i,u){var g=wr[i];return g===void 0&&De(u+" has unknown type "+Ml(i)),g}function fs(i){if(i===null)return"null";var u=typeof i;return u==="object"||u==="array"||u==="function"?i.toString():""+i}function Fd(i,u){switch(u){case 2:return function(g){return this.fromWireType(pe[g>>2])};case 3:return function(g){return this.fromWireType(_t[g>>3])};default:throw new TypeError("Unknown float type: "+i)}}function Ud(i,u,g){switch(u){case 0:return g?function(y){return Ue[y]}:function(y){return te[y]};case 1:return g?function(y){return me[y>>1]}:function(y){return fe[y>>1]};case 2:return g?function(y){return ee[y>>2]}:function(y){return Me[y>>2]};default:throw new TypeError("Unknown integer type: "+i)}}var Nt=(i,u,g,y)=>{if(!(0=P){var x=i.charCodeAt(++A);P=65536+((P&1023)<<10)|x&1023}if(127>=P){if(g>=y)break;u[g++]=P}else{if(2047>=P){if(g+1>=y)break;u[g++]=192|P>>6}else{if(65535>=P){if(g+2>=y)break;u[g++]=224|P>>12}else{if(g+3>=y)break;u[g++]=240|P>>18,u[g++]=128|P>>12&63}u[g++]=128|P>>6&63}u[g++]=128|P&63}}return u[g]=0,g-v},Lt=i=>{for(var u=0,g=0;g=y?u++:2047>=y?u+=2:55296<=y&&57343>=y?(u+=4,++g):u+=3}return u},jl=typeof TextDecoder<"u"?new TextDecoder("utf-16le"):void 0,kd=(i,u)=>{for(var g=i>>1,y=g+u/2;!(g>=y)&&fe[g];)++g;if(g<<=1,32=u/2);++y){var v=me[i+2*y>>1];if(v==0)break;g+=String.fromCharCode(v)}return g},Wd=(i,u,g)=>{if(g===void 0&&(g=2147483647),2>g)return 0;g-=2;var y=u;g=g<2*i.length?g/2:i.length;for(var v=0;v>1]=i.charCodeAt(v),u+=2;return me[u>>1]=0,u-y},Hd=i=>2*i.length,zd=(i,u)=>{for(var g=0,y="";!(g>=u/4);){var v=ee[i+4*g>>2];if(v==0)break;++g,65536<=v?(v-=65536,y+=String.fromCharCode(55296|v>>10,56320|v&1023)):y+=String.fromCharCode(v)}return y},Vd=(i,u,g)=>{if(g===void 0&&(g=2147483647),4>g)return 0;var y=u;g=y+g-4;for(var v=0;v=A){var P=i.charCodeAt(++v);A=65536+((A&1023)<<10)|P&1023}if(ee[u>>2]=A,u+=4,u+4>g)break}return ee[u>>2]=0,u-y},Gd=i=>{for(var u=0,g=0;g=y&&++g,u+=4}return u},$d={};function Cn(i){var u=$d[i];return u===void 0?Xe(i):u}var On=[];function Rl(){function i(u){u.$$$embind_global$$$=u;var g=typeof $$$embind_global$$$=="object"&&u.$$$embind_global$$$==u;return g||delete u.$$$embind_global$$$,g}if(typeof globalThis=="object")return globalThis;if(typeof $$$embind_global$$$=="object"||(typeof global=="object"&&i(global)?$$$embind_global$$$=global:typeof self=="object"&&i(self)&&($$$embind_global$$$=self),typeof $$$embind_global$$$=="object"))return $$$embind_global$$$;throw Error("unable to get global object.")}function Yd(i){var u=On.length;return On.push(i),u}function qd(i,u){for(var g=Array(i),y=0;y>2],"parameter "+y);return g}var Cl=[];function Kd(i){var u=Array(i+1);return function(g,y,v){u[0]=g;for(var A=0;A>2],"parameter "+A);u[A+1]=P.readValueFromPointer(v),v+=P.argPackAdvance}return g=new(g.bind.apply(g,u)),xt(g)}}var Ol={};function Xd(i){var u=i.getExtension("ANGLE_instanced_arrays");u&&(i.vertexAttribDivisor=function(g,y){u.vertexAttribDivisorANGLE(g,y)},i.drawArraysInstanced=function(g,y,v,A){u.drawArraysInstancedANGLE(g,y,v,A)},i.drawElementsInstanced=function(g,y,v,A,P){u.drawElementsInstancedANGLE(g,y,v,A,P)})}function Jd(i){var u=i.getExtension("OES_vertex_array_object");u&&(i.createVertexArray=function(){return u.createVertexArrayOES()},i.deleteVertexArray=function(g){u.deleteVertexArrayOES(g)},i.bindVertexArray=function(g){u.bindVertexArrayOES(g)},i.isVertexArray=function(g){return u.isVertexArrayOES(g)})}function Qd(i){var u=i.getExtension("WEBGL_draw_buffers");u&&(i.drawBuffers=function(g,y){u.drawBuffersWEBGL(g,y)})}var Pl=1,Pn=[],Bt=[],Dn=[],jo=[],Mt=[],Ft=[],Nn=[],Jt=[],Ar=[],xr=[],Dl={},Nl={},Ll=4;function We(i){Ln||(Ln=i)}function kr(i){for(var u=Pl++,g=i.length;g"u"||u.Nf)&&th(y),g}function Bl(i){return Te=Jt[i],o.rg=B=Te&&Te.fe,!(i&&!B)}function th(i){if(i||(i=Te),!i.Xf){i.Xf=!0;var u=i.fe;Xd(u),Jd(u),Qd(u),u.pf=u.getExtension("WEBGL_draw_instanced_base_vertex_base_instance"),u.uf=u.getExtension("WEBGL_multi_draw_instanced_base_vertex_base_instance"),2<=i.version&&(u.qf=u.getExtension("EXT_disjoint_timer_query_webgl2")),(2>i.version||!u.qf)&&(u.qf=u.getExtension("EXT_disjoint_timer_query")),u.sg=u.getExtension("WEBGL_multi_draw"),(u.getSupportedExtensions()||[]).forEach(function(g){g.includes("lose_context")||g.includes("debug")||u.getExtension(g)})}}var Te,Ln,ds={},Fl=()=>{if(!hs){var i={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:m||"./this.program"},u;for(u in ds)ds[u]===void 0?delete i[u]:i[u]=ds[u];var g=[];for(u in i)g.push(`${u}=${i[u]}`);hs=g}return hs},hs,rh=[null,[],[]];function Ul(i){B.bindVertexArray(Nn[i])}function kl(i,u){for(var g=0;g>2];B.deleteVertexArray(Nn[y]),Nn[y]=null}}var Bn=[];function Wl(i,u,g,y){B.drawElements(i,u,g,y)}function Wr(i,u,g,y){for(var v=0;v>2]=P}}function Hl(i,u){Wr(i,u,"createVertexArray",Nn)}function zl(i,u,g){if(u){var y=void 0;switch(i){case 36346:y=1;break;case 36344:g!=0&&g!=1&&We(1280);return;case 34814:case 36345:y=0;break;case 34466:var v=B.getParameter(34467);y=v?v.length:0;break;case 33309:if(2>Te.version){We(1282);return}y=2*(B.getSupportedExtensions()||[]).length;break;case 33307:case 33308:if(2>Te.version){We(1280);return}y=i==33307?3:0}if(y===void 0)switch(v=B.getParameter(i),typeof v){case"number":y=v;break;case"boolean":y=v?1:0;break;case"string":We(1280);return;case"object":if(v===null)switch(i){case 34964:case 35725:case 34965:case 36006:case 36007:case 32873:case 34229:case 36662:case 36663:case 35053:case 35055:case 36010:case 35097:case 35869:case 32874:case 36389:case 35983:case 35368:case 34068:y=0;break;default:We(1280);return}else{if(v instanceof Float32Array||v instanceof Uint32Array||v instanceof Int32Array||v instanceof Array){for(i=0;i>2]=v[i];break;case 2:pe[u+4*i>>2]=v[i];break;case 4:Ue[u+i>>0]=v[i]?1:0}return}try{y=v.name|0}catch(A){We(1280),se("GL_INVALID_ENUM in glGet"+g+"v: Unknown object returned from WebGL getParameter("+i+")! (error: "+A+")");return}}break;default:We(1280),se("GL_INVALID_ENUM in glGet"+g+"v: Native code calling glGet"+g+"v("+i+") and it returns "+v+" of type "+typeof v+"!");return}switch(g){case 1:g=y,Me[u>>2]=g,Me[u+4>>2]=(g-Me[u>>2])/4294967296;break;case 0:ee[u>>2]=y;break;case 2:pe[u>>2]=y;break;case 4:Ue[u>>0]=y?1:0}}else We(1281)}var Ro=i=>{var u=Lt(i)+1,g=Wn(u);return g&&Nt(i,te,g,u),g};function Vl(i){return i.slice(-1)=="]"&&i.lastIndexOf("[")}function Fn(i){return i-=5120,i==0?Ue:i==1?te:i==2?me:i==4?ee:i==6?pe:i==5||i==28922||i==28520||i==30779||i==30782?Me:fe}function ms(i,u,g,y,v){i=Fn(i);var A=31-Math.clz32(i.BYTES_PER_ELEMENT),P=Ll;return i.subarray(v>>A,v+y*(g*({5:3,6:4,8:2,29502:3,29504:4,26917:2,26918:2,29846:3,29847:4}[u-6402]||1)*(1<>A)}function Be(i){var u=B.Kf;if(u){var g=u.Ne[i];return typeof g=="number"&&(u.Ne[i]=g=B.getUniformLocation(u,u.xf[i]+(0i%4===0&&(i%100!==0||i%400===0),Gl=[31,29,31,30,31,30,31,31,30,31,30,31],$l=[31,28,31,30,31,30,31,31,30,31,30,31];function oh(i){var u=Array(Lt(i)+1);return Nt(i,u,0,u.length),u}var nh=(i,u,g,y)=>{function v(U,de,Ae){for(U=typeof U=="number"?U.toString():U||"";U.lengthdt?-1:0Ee-U.getDate())de-=Ee-U.getDate()+1,U.setDate(1),11>Ae?U.setMonth(Ae+1):(U.setMonth(0),U.setFullYear(U.getFullYear()+1));else{U.setDate(U.getDate()+de);break}}return Ae=new Date(U.getFullYear()+1,0,4),de=x(new Date(U.getFullYear(),0,4)),Ae=x(Ae),0>=P(de,U)?0>=P(Ae,U)?U.getFullYear()+1:U.getFullYear():U.getFullYear()-1}var N=ee[y+40>>2];y={pg:ee[y>>2],og:ee[y+4>>2],Ze:ee[y+8>>2],jf:ee[y+12>>2],$e:ee[y+16>>2],pe:ee[y+20>>2],he:ee[y+24>>2],oe:ee[y+28>>2],vg:ee[y+32>>2],ng:ee[y+36>>2],qg:N&&N?Er(te,N):""},g=g?Er(te,g):"",N={"%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"};for(var q in N)g=g.replace(new RegExp(q,"g"),N[q]);var Q="Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),ae="January February March April May June July August September October November December".split(" ");N={"%a":U=>Q[U.he].substring(0,3),"%A":U=>Q[U.he],"%b":U=>ae[U.$e].substring(0,3),"%B":U=>ae[U.$e],"%C":U=>A((U.pe+1900)/100|0,2),"%d":U=>A(U.jf,2),"%e":U=>v(U.jf,2," "),"%g":U=>I(U).toString().substring(2),"%G":U=>I(U),"%H":U=>A(U.Ze,2),"%I":U=>(U=U.Ze,U==0?U=12:12{for(var de=0,Ae=0;Ae<=U.$e-1;de+=(Un(U.pe+1900)?Gl:$l)[Ae++]);return A(U.jf+de,3)},"%m":U=>A(U.$e+1,2),"%M":U=>A(U.og,2),"%n":()=>` -`,"%p":U=>0<=U.Ze&&12>U.Ze?"AM":"PM","%S":U=>A(U.pg,2),"%t":()=>" ","%u":U=>U.he||7,"%U":U=>A(Math.floor((U.oe+7-U.he)/7),2),"%V":U=>{var de=Math.floor((U.oe+7-(U.he+6)%7)/7);if(2>=(U.he+371-U.oe-2)%7&&de++,de)de==53&&(Ae=(U.he+371-U.oe)%7,Ae==4||Ae==3&&Un(U.pe)||(de=1));else{de=52;var Ae=(U.he+7-U.oe-1)%7;(Ae==4||Ae==5&&Un(U.pe%400-1))&&de++}return A(de,2)},"%w":U=>U.he,"%W":U=>A(Math.floor((U.oe+7-(U.he+6)%7)/7),2),"%y":U=>(U.pe+1900).toString().substring(2),"%Y":U=>U.pe+1900,"%z":U=>{U=U.ng;var de=0<=U;return U=Math.abs(U)/60,(de?"+":"-")+("0000"+(U/60*100+U%60)).slice(-4)},"%Z":U=>U.qg,"%%":()=>"%"},g=g.replace(/%%/g,"\0\0");for(q in N)g.includes(q)&&(g=g.replace(new RegExp(q,"g"),N[q](y)));return g=g.replace(/\0\0/g,"%"),q=oh(g),q.length>u?0:(Ue.set(q,i),q.length-1)};_l=o.InternalError=class extends Error{constructor(i){super(i),this.name="InternalError"}};for(var Yl=Array(256),kn=0;256>kn;++kn)Yl[kn]=String.fromCharCode(kn);vl=Yl,Ur=o.BindingError=class extends Error{constructor(i){super(i),this.name="BindingError"}},cr.prototype.isAliasOf=function(i){if(!(this instanceof cr&&i instanceof cr))return!1;var u=this.Jd.Vd.Pd,g=this.Jd.Rd,y=i.Jd.Vd.Pd;for(i=i.Jd.Rd;u.$d;)g=u.Oe(g),u=u.$d;for(;y.$d;)i=y.Oe(i),y=y.$d;return u===y&&g===i},cr.prototype.clone=function(){if(this.Jd.Rd||is(this),this.Jd.Me)return this.Jd.count.value+=1,this;var i=xo,u=Object,g=u.create,y=Object.getPrototypeOf(this),v=this.Jd;return i=i(g.call(u,y,{Jd:{value:{count:v.count,Ee:v.Ee,Me:v.Me,Rd:v.Rd,Vd:v.Vd,Yd:v.Yd,ee:v.ee}}})),i.Jd.count.value+=1,i.Jd.Ee=!1,i},cr.prototype.delete=function(){this.Jd.Rd||is(this),this.Jd.Ee&&!this.Jd.Me&&De("Object already scheduled for deletion"),bl(this),Sl(this.Jd),this.Jd.Me||(this.Jd.Yd=void 0,this.Jd.Rd=void 0)},cr.prototype.isDeleted=function(){return!this.Jd.Rd},cr.prototype.deleteLater=function(){return this.Jd.Rd||is(this),this.Jd.Ee&&!this.Jd.Me&&De("Object already scheduled for deletion"),Eo.push(this),Eo.length===1&&wo&&wo(as),this.Jd.Ee=!0,this},o.getInheritedInstanceCount=function(){return Object.keys(Ao).length},o.getLiveInheritedInstances=function(){var i=[],u;for(u in Ao)Ao.hasOwnProperty(u)&&i.push(Ao[u]);return i},o.flushPendingDeletes=as,o.setDelayFunction=function(i){wo=i,Eo.length&&wo&&wo(as)},Xt.prototype.Sf=function(i){return this.vf&&(i=this.vf(i)),i},Xt.prototype.nf=function(i){this.ke&&this.ke(i)},Xt.prototype.argPackAdvance=8,Xt.prototype.readValueFromPointer=To,Xt.prototype.deleteObject=function(i){i!==null&&i.delete()},Xt.prototype.fromWireType=function(i){function u(){return this.Ve?In(this.Pd.Fe,{Vd:this.bg,Rd:g,ee:this,Yd:i}):In(this.Pd.Fe,{Vd:this,Rd:i})}var g=this.Sf(i);if(!g)return this.nf(i),null;var y=Cd(this.Pd,g);if(y!==void 0)return y.Jd.count.value===0?(y.Jd.Rd=g,y.Jd.Yd=i,y.clone()):(y=y.clone(),this.nf(i),y);if(y=this.Pd.Rf(g),y=El[y],!y)return u.call(this);y=this.Ue?y.If:y.pointerType;var v=Tl(g,this.Pd,y.Pd);return v===null?u.call(this):this.Ve?In(y.Pd.Fe,{Vd:y,Rd:v,ee:this,Yd:i}):In(y.Pd.Fe,{Vd:y,Rd:v})},xl=o.UnboundTypeError=function(i,u){var g=ls(u,function(y){this.name=u,this.message=y,y=Error(y).stack,y!==void 0&&(this.stack=this.toString()+` -`+y.replace(/^Error(:[^\n]*)?\n/,""))});return g.prototype=Object.create(i.prototype),g.prototype.constructor=g,g.prototype.toString=function(){return this.message===void 0?this.name:`${this.name}: ${this.message}`},g}(Error,"UnboundTypeError"),Object.assign(Il.prototype,{get(i){return this.je[i]},has(i){return this.je[i]!==void 0},Af(i){var u=this.sf.pop()||this.je.length;return this.je[u]=i,u},Bf(i){this.je[i]=void 0,this.sf.push(i)}}),wt.je.push({value:void 0},{value:null},{value:!0},{value:!1}),wt.Ge=wt.je.length,o.count_emval_handles=function(){for(var i=0,u=wt.Ge;uvt;++vt)Bn.push(Array(vt));var ih=new Float32Array(288);for(vt=0;288>vt;++vt)fr[vt]=ih.subarray(0,vt+1);var sh=new Int32Array(288);for(vt=0;288>vt;++vt)Co[vt]=sh.subarray(0,vt+1);var ah={T:function(){return 0},Bb:()=>{},Db:function(){return 0},yb:()=>{},zb:()=>{},U:function(){},Ab:()=>{},C:function(i){var u=wn[i];delete wn[i];var g=u.hf,y=u.ke,v=u.rf,A=v.map(P=>P.Vf).concat(v.map(P=>P.fg));Dt([i],A,P=>{var x={};return v.forEach((I,N)=>{var q=P[N],Q=I.Tf,ae=I.Uf,U=P[N+v.length],de=I.eg,Ae=I.gg;x[I.Of]={read:Ee=>q.fromWireType(Q(ae,Ee)),write:(Ee,dt)=>{var nt=[];de(Ae,Ee,U.toWireType(nt,dt)),ns(nt)}}}),[{name:u.name,fromWireType:function(I){var N={},q;for(q in x)N[q]=x[q].read(I);return y(I),N},toWireType:function(I,N){for(var q in x)if(!(q in N))throw new TypeError(`Missing field: "${q}"`);var Q=g();for(q in x)x[q].write(Q,N[q]);return I!==null&&I.push(y,Q),Q},argPackAdvance:8,readValueFromPointer:To,de:y}]})},qb:function(){},Hb:function(i,u,g,y,v){var A=Mn(g);u=Xe(u),Kt(i,{name:u,fromWireType:function(P){return!!P},toWireType:function(P,x){return x?y:v},argPackAdvance:8,readValueFromPointer:function(P){if(g===1)var x=Ue;else if(g===2)x=me;else if(g===4)x=ee;else throw new TypeError("Unknown boolean type size: "+u);return this.fromWireType(x[P>>A])},de:null})},m:function(i,u,g,y,v,A,P,x,I,N,q,Q,ae){q=Xe(q),A=st(v,A),x&&(x=st(P,x)),N&&(N=st(I,N)),ae=st(Q,ae);var U=wl(q);gs(U,function(){Mo(`Cannot construct ${q} due to unbound types`,[y])}),Dt([i,u,g],y?[y]:[],function(de){if(de=de[0],y)var Ae=de.Pd,Ee=Ae.Fe;else Ee=cr.prototype;de=ls(U,function(){if(Object.getPrototypeOf(this)!==dt)throw new Ur("Use 'new' to construct "+q);if(nt.ne===void 0)throw new Ur(q+" has no accessible constructor");var Po=nt.ne[arguments.length];if(Po===void 0)throw new Ur(`Tried to invoke ctor of ${q} with invalid number of parameters (${arguments.length}) - expected (${Object.keys(nt.ne).toString()}) parameters instead!`);return Po.apply(this,arguments)});var dt=Object.create(Ee,{constructor:{value:de}});de.prototype=dt;var nt=new Od(q,de,dt,ae,Ae,A,x,N);nt.$d&&(nt.$d.Pe===void 0&&(nt.$d.Pe=[]),nt.$d.Pe.push(nt)),Ae=new Xt(q,nt,!0,!1,!1),Ee=new Xt(q+"*",nt,!1,!1,!1);var Oo=new Xt(q+" const*",nt,!1,!0,!1);return El[i]={pointerType:Ee,If:Oo},Al(U,de),[Ae,Ee,Oo]})},f:function(i,u,g,y,v,A,P){var x=Rn(g,y);u=Xe(u),A=st(v,A),Dt([],[i],function(I){function N(){Mo(`Cannot call ${q} due to unbound types`,x)}I=I[0];var q=`${I.name}.${u}`;u.startsWith("@@")&&(u=Symbol[u.substring(2)]);var Q=I.Pd.constructor;return Q[u]===void 0?(N.Ce=g-1,Q[u]=N):(us(Q,u,q),Q[u].Xd[g-1]=N),Dt([],x,function(ae){if(ae=[ae[0],null].concat(ae.slice(1)),ae=jn(q,ae,null,A,P),Q[u].Xd===void 0?(ae.Ce=g-1,Q[u]=ae):Q[u].Xd[g-1]=ae,I.Pd.Pe)for(let U of I.Pd.Pe)U.constructor.hasOwnProperty(u)||(U.constructor[u]=ae);return[]}),[]})},A:function(i,u,g,y,v,A){var P=Rn(u,g);v=st(y,v),Dt([],[i],function(x){x=x[0];var I=`constructor ${x.name}`;if(x.Pd.ne===void 0&&(x.Pd.ne=[]),x.Pd.ne[u-1]!==void 0)throw new Ur(`Cannot register multiple constructors with identical number of parameters (${u-1}) for class '${x.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return x.Pd.ne[u-1]=()=>{Mo(`Cannot construct ${x.name} due to unbound types`,P)},Dt([],P,function(N){return N.splice(1,0,null),x.Pd.ne[u-1]=jn(I,N,null,v,A),[]}),[]})},b:function(i,u,g,y,v,A,P,x){var I=Rn(g,y);u=Xe(u),A=st(v,A),Dt([],[i],function(N){function q(){Mo(`Cannot call ${Q} due to unbound types`,I)}N=N[0];var Q=`${N.name}.${u}`;u.startsWith("@@")&&(u=Symbol[u.substring(2)]),x&&N.Pd.cg.push(u);var ae=N.Pd.Fe,U=ae[u];return U===void 0||U.Xd===void 0&&U.className!==N.name&&U.Ce===g-2?(q.Ce=g-2,q.className=N.name,ae[u]=q):(us(ae,u,Q),ae[u].Xd[g-2]=q),Dt([],I,function(de){return de=jn(Q,de,N,A,P),ae[u].Xd===void 0?(de.Ce=g-2,ae[u]=de):ae[u].Xd[g-2]=de,[]}),[]})},t:function(i,u,g){i=Xe(i),Dt([],[u],function(y){return y=y[0],o[i]=y.fromWireType(g),[]})},Gb:function(i,u){u=Xe(u),Kt(i,{name:u,fromWireType:function(g){var y=At(g);return cs(g),y},toWireType:function(g,y){return xt(y)},argPackAdvance:8,readValueFromPointer:To,de:null})},l:function(i,u,g,y){function v(){}g=Mn(g),u=Xe(u),v.values={},Kt(i,{name:u,constructor:v,fromWireType:function(A){return this.constructor.values[A]},toWireType:function(A,P){return P.value},argPackAdvance:8,readValueFromPointer:Bd(u,g,y),de:null}),gs(u,v)},c:function(i,u,g){var y=Io(i,"enum");u=Xe(u),i=y.constructor,y=Object.create(y.constructor.prototype,{value:{value:g},constructor:{value:ls(`${y.name}_${u}`,function(){})}}),i.values[g]=y,i[u]=y},W:function(i,u,g){g=Mn(g),u=Xe(u),Kt(i,{name:u,fromWireType:function(y){return y},toWireType:function(y,v){return v},argPackAdvance:8,readValueFromPointer:Fd(u,g),de:null})},y:function(i,u,g,y,v,A){var P=Rn(u,g);i=Xe(i),v=st(y,v),gs(i,function(){Mo(`Cannot call ${i} due to unbound types`,P)},u-1),Dt([],P,function(x){return x=[x[0],null].concat(x.slice(1)),Al(i,jn(i,x,null,v,A),u-1),[]})},E:function(i,u,g,y,v){u=Xe(u),v===-1&&(v=4294967295),v=Mn(g);var A=x=>x;if(y===0){var P=32-8*g;A=x=>x<

>>P}g=u.includes("unsigned")?function(x,I){return I>>>0}:function(x,I){return I},Kt(i,{name:u,fromWireType:A,toWireType:g,argPackAdvance:8,readValueFromPointer:Ud(u,v,y!==0),de:null})},s:function(i,u,g){function y(A){A>>=2;var P=Me;return new v(P.buffer,P[A+1],P[A])}var v=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][u];g=Xe(g),Kt(i,{name:g,fromWireType:y,argPackAdvance:8,readValueFromPointer:y},{Wf:!0})},q:function(i,u,g,y,v,A,P,x,I,N,q,Q){g=Xe(g),A=st(v,A),x=st(P,x),N=st(I,N),Q=st(q,Q),Dt([i],[u],function(ae){return ae=ae[0],[new Xt(g,ae.Pd,!1,!1,!0,ae,y,A,x,N,Q)]})},V:function(i,u){u=Xe(u);var g=u==="std::string";Kt(i,{name:u,fromWireType:function(y){var v=Me[y>>2],A=y+4;if(g)for(var P=A,x=0;x<=v;++x){var I=A+x;if(x==v||te[I]==0){if(P=P?Er(te,P,I-P):"",N===void 0)var N=P;else N+=String.fromCharCode(0),N+=P;P=I+1}}else{for(N=Array(v),x=0;x>2]=P,g&&A)Nt(v,te,I,P+1);else if(A)for(A=0;Afe,x=1;else u===4&&(y=zd,v=Vd,A=Gd,P=()=>Me,x=2);Kt(i,{name:g,fromWireType:function(I){for(var N=Me[I>>2],q=P(),Q,ae=I+4,U=0;U<=N;++U){var de=I+4+U*u;(U==N||q[de>>x]==0)&&(ae=y(ae,de-ae),Q===void 0?Q=ae:(Q+=String.fromCharCode(0),Q+=ae),ae=de+u)}return or(I),Q},toWireType:function(I,N){typeof N!="string"&&De(`Cannot pass non-string to C++ string type ${g}`);var q=A(N),Q=Wn(4+q+u);return Me[Q>>2]=q>>x,v(N,Q+4,q+u),I!==null&&I.push(or,Q),Q},argPackAdvance:8,readValueFromPointer:To,de:function(I){or(I)}})},D:function(i,u,g,y,v,A){wn[i]={name:Xe(u),hf:st(g,y),ke:st(v,A),rf:[]}},e:function(i,u,g,y,v,A,P,x,I,N){wn[i].rf.push({Of:Xe(u),Vf:g,Tf:st(y,v),Uf:A,fg:P,eg:st(x,I),gg:N})},Ib:function(i,u){u=Xe(u),Kt(i,{Yf:!0,name:u,argPackAdvance:0,fromWireType:function(){},toWireType:function(){}})},Fb:()=>!0,ub:()=>{throw 1/0},F:function(i,u,g){i=At(i),u=Io(u,"emval::as");var y=[],v=xt(y);return Me[g>>2]=v,u.toWireType(y,i)},Z:function(i,u,g,y,v){i=On[i],u=At(u),g=Cn(g);var A=[];return Me[y>>2]=xt(A),i(u,g,A,v)},w:function(i,u,g,y){i=On[i],u=At(u),g=Cn(g),i(u,g,null,y)},d:cs,K:function(i){return i===0?xt(Rl()):(i=Cn(i),xt(Rl()[i]))},u:function(i,u){var g=qd(i,u),y=g[0];u=y.name+"_$"+g.slice(1).map(function(P){return P.name}).join("_")+"$";var v=Cl[u];if(v!==void 0)return v;var A=Array(i-1);return v=Yd((P,x,I,N)=>{for(var q=0,Q=0;Q{rr("")},Eb:()=>performance.now(),vb:i=>{var u=te.length;if(i>>>=0,2147483648=g;g*=2){var y=u*(1+.2/g);y=Math.min(y,i+100663296);var v=Math;y=Math.max(i,y);e:{v=v.min.call(v,2147483648,y+(65536-y%65536)%65536)-ce.buffer.byteLength+65535>>>16;try{ce.grow(v),tt();var A=1;break e}catch{}A=void 0}if(A)return!0}return!1},lb:function(){return Te?Te.handle:0},wb:(i,u)=>{var g=0;return Fl().forEach(function(y,v){var A=u+g;for(v=Me[i+4*v>>2]=A,A=0;A>0]=y.charCodeAt(A);Ue[v>>0]=0,g+=y.length+1}),0},xb:(i,u)=>{var g=Fl();Me[i>>2]=g.length;var y=0;return g.forEach(function(v){y+=v.length+1}),Me[u>>2]=y,0},Jb:i=>{he||(o.onExit&&o.onExit(i),Pe=!0),S(i,new En(i))},M:()=>52,mb:function(){return 52},Cb:()=>52,pb:function(){return 70},S:(i,u,g,y)=>{for(var v=0,A=0;A>2],x=Me[u+4>>2];u+=8;for(var I=0;I>2]=v,0},aa:function(i){B.activeTexture(i)},ba:function(i,u){B.attachShader(Bt[i],Ft[u])},ca:function(i,u,g){B.bindAttribLocation(Bt[i],u,g?Er(te,g):"")},da:function(i,u){i==35051?B.ef=u:i==35052&&(B.De=u),B.bindBuffer(i,Pn[u])},$:function(i,u){B.bindFramebuffer(i,Dn[u])},fc:function(i,u){B.bindRenderbuffer(i,jo[u])},Rb:function(i,u){B.bindSampler(i,Ar[u])},ea:function(i,u){B.bindTexture(i,Mt[u])},zc:Ul,Cc:Ul,fa:function(i,u,g,y){B.blendColor(i,u,g,y)},ga:function(i){B.blendEquation(i)},ha:function(i,u){B.blendFunc(i,u)},$b:function(i,u,g,y,v,A,P,x,I,N){B.blitFramebuffer(i,u,g,y,v,A,P,x,I,N)},ia:function(i,u,g,y){2<=Te.version?g&&u?B.bufferData(i,te,y,g,u):B.bufferData(i,u,y):B.bufferData(i,g?te.subarray(g,g+u):u,y)},ja:function(i,u,g,y){2<=Te.version?g&&B.bufferSubData(i,u,te,y,g):B.bufferSubData(i,u,te.subarray(y,y+g))},gc:function(i){return B.checkFramebufferStatus(i)},Q:function(i){B.clear(i)},_:function(i,u,g,y){B.clearColor(i,u,g,y)},R:function(i){B.clearStencil(i)},sb:function(i,u,g,y){return B.clientWaitSync(xr[i],u,(g>>>0)+4294967296*y)},ka:function(i,u,g,y){B.colorMask(!!i,!!u,!!g,!!y)},la:function(i){B.compileShader(Ft[i])},ma:function(i,u,g,y,v,A,P,x){2<=Te.version?B.De||!P?B.compressedTexImage2D(i,u,g,y,v,A,P,x):B.compressedTexImage2D(i,u,g,y,v,A,te,x,P):B.compressedTexImage2D(i,u,g,y,v,A,x?te.subarray(x,x+P):null)},na:function(i,u,g,y,v,A,P,x,I){2<=Te.version?B.De||!x?B.compressedTexSubImage2D(i,u,g,y,v,A,P,x,I):B.compressedTexSubImage2D(i,u,g,y,v,A,P,te,I,x):B.compressedTexSubImage2D(i,u,g,y,v,A,P,I?te.subarray(I,I+x):null)},Zb:function(i,u,g,y,v){B.copyBufferSubData(i,u,g,y,v)},oa:function(i,u,g,y,v,A,P,x){B.copyTexSubImage2D(i,u,g,y,v,A,P,x)},pa:function(){var i=kr(Bt),u=B.createProgram();return u.name=i,u.Ye=u.We=u.Xe=0,u.kf=1,Bt[i]=u,i},qa:function(i){var u=kr(Ft);return Ft[u]=B.createShader(i),u},ra:function(i){B.cullFace(i)},sa:function(i,u){for(var g=0;g>2],v=Pn[y];v&&(B.deleteBuffer(v),v.name=0,Pn[y]=null,y==B.ef&&(B.ef=0),y==B.De&&(B.De=0))}},hc:function(i,u){for(var g=0;g>2],v=Dn[y];v&&(B.deleteFramebuffer(v),v.name=0,Dn[y]=null)}},ta:function(i){if(i){var u=Bt[i];u?(B.deleteProgram(u),u.name=0,Bt[i]=null):We(1281)}},ic:function(i,u){for(var g=0;g>2],v=jo[y];v&&(B.deleteRenderbuffer(v),v.name=0,jo[y]=null)}},Sb:function(i,u){for(var g=0;g>2],v=Ar[y];v&&(B.deleteSampler(v),v.name=0,Ar[y]=null)}},ua:function(i){if(i){var u=Ft[i];u?(B.deleteShader(u),Ft[i]=null):We(1281)}},_b:function(i){if(i){var u=xr[i];u?(B.deleteSync(u),u.name=0,xr[i]=null):We(1281)}},va:function(i,u){for(var g=0;g>2],v=Mt[y];v&&(B.deleteTexture(v),v.name=0,Mt[y]=null)}},Ac:kl,Dc:kl,wa:function(i){B.depthMask(!!i)},xa:function(i){B.disable(i)},ya:function(i){B.disableVertexAttribArray(i)},za:function(i,u,g){B.drawArrays(i,u,g)},xc:function(i,u,g,y){B.drawArraysInstanced(i,u,g,y)},vc:function(i,u,g,y,v){B.pf.drawArraysInstancedBaseInstanceWEBGL(i,u,g,y,v)},tc:function(i,u){for(var g=Bn[i],y=0;y>2];B.drawBuffers(g)},Aa:Wl,yc:function(i,u,g,y,v){B.drawElementsInstanced(i,u,g,y,v)},wc:function(i,u,g,y,v,A,P){B.pf.drawElementsInstancedBaseVertexBaseInstanceWEBGL(i,u,g,y,v,A,P)},nc:function(i,u,g,y,v,A){Wl(i,y,v,A)},Ba:function(i){B.enable(i)},Ca:function(i){B.enableVertexAttribArray(i)},Xb:function(i,u){return(i=B.fenceSync(i,u))?(u=kr(xr),i.name=u,xr[u]=i,u):0},Da:function(){B.finish()},Ea:function(){B.flush()},jc:function(i,u,g,y){B.framebufferRenderbuffer(i,u,g,jo[y])},kc:function(i,u,g,y,v){B.framebufferTexture2D(i,u,g,Mt[y],v)},Fa:function(i){B.frontFace(i)},Ga:function(i,u){Wr(i,u,"createBuffer",Pn)},lc:function(i,u){Wr(i,u,"createFramebuffer",Dn)},mc:function(i,u){Wr(i,u,"createRenderbuffer",jo)},Tb:function(i,u){Wr(i,u,"createSampler",Ar)},Ha:function(i,u){Wr(i,u,"createTexture",Mt)},Bc:Hl,Ec:Hl,bc:function(i){B.generateMipmap(i)},Ia:function(i,u,g){g?ee[g>>2]=B.getBufferParameter(i,u):We(1281)},Ja:function(){var i=B.getError()||Ln;return Ln=0,i},Ka:function(i,u){zl(i,u,2)},cc:function(i,u,g,y){i=B.getFramebufferAttachmentParameter(i,u,g),(i instanceof WebGLRenderbuffer||i instanceof WebGLTexture)&&(i=i.name|0),ee[y>>2]=i},L:function(i,u){zl(i,u,0)},La:function(i,u,g,y){i=B.getProgramInfoLog(Bt[i]),i===null&&(i="(unknown error)"),u=0>2]=u)},Ma:function(i,u,g){if(g)if(i>=Pl)We(1281);else if(i=Bt[i],u==35716)i=B.getProgramInfoLog(i),i===null&&(i="(unknown error)"),ee[g>>2]=i.length+1;else if(u==35719){if(!i.Ye)for(u=0;u>2]=i.Ye}else if(u==35722){if(!i.We)for(u=0;u>2]=i.We}else if(u==35381){if(!i.Xe)for(u=0;u>2]=i.Xe}else ee[g>>2]=B.getProgramParameter(i,u);else We(1281)},dc:function(i,u,g){g?ee[g>>2]=B.getRenderbufferParameter(i,u):We(1281)},Na:function(i,u,g,y){i=B.getShaderInfoLog(Ft[i]),i===null&&(i="(unknown error)"),u=0>2]=u)},Ob:function(i,u,g,y){i=B.getShaderPrecisionFormat(i,u),ee[g>>2]=i.rangeMin,ee[g+4>>2]=i.rangeMax,ee[y>>2]=i.precision},Oa:function(i,u,g){g?u==35716?(i=B.getShaderInfoLog(Ft[i]),i===null&&(i="(unknown error)"),ee[g>>2]=i?i.length+1:0):u==35720?(i=B.getShaderSource(Ft[i]),ee[g>>2]=i?i.length+1:0):ee[g>>2]=B.getShaderParameter(Ft[i],u):We(1281)},P:function(i){var u=Dl[i];if(!u){switch(i){case 7939:u=B.getSupportedExtensions()||[],u=u.concat(u.map(function(y){return"GL_"+y})),u=Ro(u.join(" "));break;case 7936:case 7937:case 37445:case 37446:(u=B.getParameter(i))||We(1280),u=u&&Ro(u);break;case 7938:u=B.getParameter(7938),u=2<=Te.version?"OpenGL ES 3.0 ("+u+")":"OpenGL ES 2.0 ("+u+")",u=Ro(u);break;case 35724:u=B.getParameter(35724);var g=u.match(/^WebGL GLSL ES ([0-9]\.[0-9][0-9]?)(?:$| .*)/);g!==null&&(g[1].length==3&&(g[1]+="0"),u="OpenGL ES GLSL ES "+g[1]+" ("+u+")"),u=Ro(u);break;default:We(1280)}Dl[i]=u}return u},jb:function(i,u){if(2>Te.version)return We(1282),0;var g=Nl[i];if(g)return 0>u||u>=g.length?(We(1281),0):g[u];switch(i){case 7939:return g=B.getSupportedExtensions()||[],g=g.concat(g.map(function(y){return"GL_"+y})),g=g.map(function(y){return Ro(y)}),g=Nl[i]=g,0>u||u>=g.length?(We(1281),0):g[u];default:return We(1280),0}},Pa:function(i,u){if(u=u?Er(te,u):"",i=Bt[i]){var g=i,y=g.Ne,v=g.yf,A;if(!y)for(g.Ne=y={},g.xf={},A=0;A>>0,v=u.slice(0,A)),(v=i.yf[v])&&y>2];B.invalidateFramebuffer(i,y)},Qb:function(i,u,g,y,v,A,P){for(var x=Bn[u],I=0;I>2];B.invalidateSubFramebuffer(i,x,y,v,A,P)},Yb:function(i){return B.isSync(xr[i])},Qa:function(i){return(i=Mt[i])?B.isTexture(i):0},Ra:function(i){B.lineWidth(i)},Sa:function(i){i=Bt[i],B.linkProgram(i),i.Ne=0,i.yf={}},rc:function(i,u,g,y,v,A){B.uf.multiDrawArraysInstancedBaseInstanceWEBGL(i,ee,u>>2,ee,g>>2,ee,y>>2,Me,v>>2,A)},sc:function(i,u,g,y,v,A,P,x){B.uf.multiDrawElementsInstancedBaseVertexBaseInstanceWEBGL(i,ee,u>>2,g,ee,y>>2,ee,v>>2,ee,A>>2,Me,P>>2,x)},Ta:function(i,u){i==3317&&(Ll=u),B.pixelStorei(i,u)},uc:function(i){B.readBuffer(i)},Ua:function(i,u,g,y,v,A,P){if(2<=Te.version)if(B.ef)B.readPixels(i,u,g,y,v,A,P);else{var x=Fn(A);B.readPixels(i,u,g,y,v,A,x,P>>31-Math.clz32(x.BYTES_PER_ELEMENT))}else(P=ms(A,v,g,y,P))?B.readPixels(i,u,g,y,v,A,P):We(1280)},ec:function(i,u,g,y){B.renderbufferStorage(i,u,g,y)},ac:function(i,u,g,y,v){B.renderbufferStorageMultisample(i,u,g,y,v)},Ub:function(i,u,g){B.samplerParameterf(Ar[i],u,g)},Vb:function(i,u,g){B.samplerParameteri(Ar[i],u,g)},Wb:function(i,u,g){B.samplerParameteri(Ar[i],u,ee[g>>2])},Va:function(i,u,g,y){B.scissor(i,u,g,y)},Wa:function(i,u,g,y){for(var v="",A=0;A>2]:-1,x=ee[g+4*A>>2];P=x?Er(te,x,0>P?void 0:P):"",v+=P}B.shaderSource(Ft[i],v)},Xa:function(i,u,g){B.stencilFunc(i,u,g)},Ya:function(i,u,g,y){B.stencilFuncSeparate(i,u,g,y)},Za:function(i){B.stencilMask(i)},_a:function(i,u){B.stencilMaskSeparate(i,u)},$a:function(i,u,g){B.stencilOp(i,u,g)},ab:function(i,u,g,y){B.stencilOpSeparate(i,u,g,y)},bb:function(i,u,g,y,v,A,P,x,I){if(2<=Te.version)if(B.De)B.texImage2D(i,u,g,y,v,A,P,x,I);else if(I){var N=Fn(x);B.texImage2D(i,u,g,y,v,A,P,x,N,I>>31-Math.clz32(N.BYTES_PER_ELEMENT))}else B.texImage2D(i,u,g,y,v,A,P,x,null);else B.texImage2D(i,u,g,y,v,A,P,x,I?ms(x,P,y,v,I):null)},cb:function(i,u,g){B.texParameterf(i,u,g)},db:function(i,u,g){B.texParameterf(i,u,pe[g>>2])},eb:function(i,u,g){B.texParameteri(i,u,g)},fb:function(i,u,g){B.texParameteri(i,u,ee[g>>2])},oc:function(i,u,g,y,v){B.texStorage2D(i,u,g,y,v)},gb:function(i,u,g,y,v,A,P,x,I){if(2<=Te.version)if(B.De)B.texSubImage2D(i,u,g,y,v,A,P,x,I);else if(I){var N=Fn(x);B.texSubImage2D(i,u,g,y,v,A,P,x,N,I>>31-Math.clz32(N.BYTES_PER_ELEMENT))}else B.texSubImage2D(i,u,g,y,v,A,P,x,null);else N=null,I&&(N=ms(x,P,v,A,I)),B.texSubImage2D(i,u,g,y,v,A,P,x,N)},hb:function(i,u){B.uniform1f(Be(i),u)},ib:function(i,u,g){if(2<=Te.version)u&&B.uniform1fv(Be(i),pe,g>>2,u);else{if(288>=u)for(var y=fr[u-1],v=0;v>2];else y=pe.subarray(g>>2,g+4*u>>2);B.uniform1fv(Be(i),y)}},Zc:function(i,u){B.uniform1i(Be(i),u)},_c:function(i,u,g){if(2<=Te.version)u&&B.uniform1iv(Be(i),ee,g>>2,u);else{if(288>=u)for(var y=Co[u-1],v=0;v>2];else y=ee.subarray(g>>2,g+4*u>>2);B.uniform1iv(Be(i),y)}},$c:function(i,u,g){B.uniform2f(Be(i),u,g)},ad:function(i,u,g){if(2<=Te.version)u&&B.uniform2fv(Be(i),pe,g>>2,2*u);else{if(144>=u)for(var y=fr[2*u-1],v=0;v<2*u;v+=2)y[v]=pe[g+4*v>>2],y[v+1]=pe[g+(4*v+4)>>2];else y=pe.subarray(g>>2,g+8*u>>2);B.uniform2fv(Be(i),y)}},Yc:function(i,u,g){B.uniform2i(Be(i),u,g)},Xc:function(i,u,g){if(2<=Te.version)u&&B.uniform2iv(Be(i),ee,g>>2,2*u);else{if(144>=u)for(var y=Co[2*u-1],v=0;v<2*u;v+=2)y[v]=ee[g+4*v>>2],y[v+1]=ee[g+(4*v+4)>>2];else y=ee.subarray(g>>2,g+8*u>>2);B.uniform2iv(Be(i),y)}},Wc:function(i,u,g,y){B.uniform3f(Be(i),u,g,y)},Vc:function(i,u,g){if(2<=Te.version)u&&B.uniform3fv(Be(i),pe,g>>2,3*u);else{if(96>=u)for(var y=fr[3*u-1],v=0;v<3*u;v+=3)y[v]=pe[g+4*v>>2],y[v+1]=pe[g+(4*v+4)>>2],y[v+2]=pe[g+(4*v+8)>>2];else y=pe.subarray(g>>2,g+12*u>>2);B.uniform3fv(Be(i),y)}},Uc:function(i,u,g,y){B.uniform3i(Be(i),u,g,y)},Tc:function(i,u,g){if(2<=Te.version)u&&B.uniform3iv(Be(i),ee,g>>2,3*u);else{if(96>=u)for(var y=Co[3*u-1],v=0;v<3*u;v+=3)y[v]=ee[g+4*v>>2],y[v+1]=ee[g+(4*v+4)>>2],y[v+2]=ee[g+(4*v+8)>>2];else y=ee.subarray(g>>2,g+12*u>>2);B.uniform3iv(Be(i),y)}},Sc:function(i,u,g,y,v){B.uniform4f(Be(i),u,g,y,v)},Rc:function(i,u,g){if(2<=Te.version)u&&B.uniform4fv(Be(i),pe,g>>2,4*u);else{if(72>=u){var y=fr[4*u-1],v=pe;g>>=2;for(var A=0;A<4*u;A+=4){var P=g+A;y[A]=v[P],y[A+1]=v[P+1],y[A+2]=v[P+2],y[A+3]=v[P+3]}}else y=pe.subarray(g>>2,g+16*u>>2);B.uniform4fv(Be(i),y)}},Fc:function(i,u,g,y,v){B.uniform4i(Be(i),u,g,y,v)},Gc:function(i,u,g){if(2<=Te.version)u&&B.uniform4iv(Be(i),ee,g>>2,4*u);else{if(72>=u)for(var y=Co[4*u-1],v=0;v<4*u;v+=4)y[v]=ee[g+4*v>>2],y[v+1]=ee[g+(4*v+4)>>2],y[v+2]=ee[g+(4*v+8)>>2],y[v+3]=ee[g+(4*v+12)>>2];else y=ee.subarray(g>>2,g+16*u>>2);B.uniform4iv(Be(i),y)}},Hc:function(i,u,g,y){if(2<=Te.version)u&&B.uniformMatrix2fv(Be(i),!!g,pe,y>>2,4*u);else{if(72>=u)for(var v=fr[4*u-1],A=0;A<4*u;A+=4)v[A]=pe[y+4*A>>2],v[A+1]=pe[y+(4*A+4)>>2],v[A+2]=pe[y+(4*A+8)>>2],v[A+3]=pe[y+(4*A+12)>>2];else v=pe.subarray(y>>2,y+16*u>>2);B.uniformMatrix2fv(Be(i),!!g,v)}},Ic:function(i,u,g,y){if(2<=Te.version)u&&B.uniformMatrix3fv(Be(i),!!g,pe,y>>2,9*u);else{if(32>=u)for(var v=fr[9*u-1],A=0;A<9*u;A+=9)v[A]=pe[y+4*A>>2],v[A+1]=pe[y+(4*A+4)>>2],v[A+2]=pe[y+(4*A+8)>>2],v[A+3]=pe[y+(4*A+12)>>2],v[A+4]=pe[y+(4*A+16)>>2],v[A+5]=pe[y+(4*A+20)>>2],v[A+6]=pe[y+(4*A+24)>>2],v[A+7]=pe[y+(4*A+28)>>2],v[A+8]=pe[y+(4*A+32)>>2];else v=pe.subarray(y>>2,y+36*u>>2);B.uniformMatrix3fv(Be(i),!!g,v)}},Jc:function(i,u,g,y){if(2<=Te.version)u&&B.uniformMatrix4fv(Be(i),!!g,pe,y>>2,16*u);else{if(18>=u){var v=fr[16*u-1],A=pe;y>>=2;for(var P=0;P<16*u;P+=16){var x=y+P;v[P]=A[x],v[P+1]=A[x+1],v[P+2]=A[x+2],v[P+3]=A[x+3],v[P+4]=A[x+4],v[P+5]=A[x+5],v[P+6]=A[x+6],v[P+7]=A[x+7],v[P+8]=A[x+8],v[P+9]=A[x+9],v[P+10]=A[x+10],v[P+11]=A[x+11],v[P+12]=A[x+12],v[P+13]=A[x+13],v[P+14]=A[x+14],v[P+15]=A[x+15]}}else v=pe.subarray(y>>2,y+64*u>>2);B.uniformMatrix4fv(Be(i),!!g,v)}},Kc:function(i){i=Bt[i],B.useProgram(i),B.Kf=i},Lc:function(i,u){B.vertexAttrib1f(i,u)},Mc:function(i,u){B.vertexAttrib2f(i,pe[u>>2],pe[u+4>>2])},Nc:function(i,u){B.vertexAttrib3f(i,pe[u>>2],pe[u+4>>2],pe[u+8>>2])},Oc:function(i,u){B.vertexAttrib4f(i,pe[u>>2],pe[u+4>>2],pe[u+8>>2],pe[u+12>>2])},pc:function(i,u){B.vertexAttribDivisor(i,u)},qc:function(i,u,g,y,v){B.vertexAttribIPointer(i,u,g,y,v)},Pc:function(i,u,g,y,v,A){B.vertexAttribPointer(i,u,g,!!y,v,A)},Qc:function(i,u,g,y){B.viewport(i,u,g,y)},rb:function(i,u,g,y){B.waitSync(xr[i],u,(g>>>0)+4294967296*y)},j:uh,n:mh,k:lh,I:_h,Lb:vh,Y:bh,X:Th,O:fh,o:hh,x:ch,r:ph,v:dh,Kb:Sh,Mb:yh,Nb:gh,tb:(i,u,g,y)=>nh(i,u,g,y)};(function(){function i(g){if(ie=g=g.exports,ce=ie.bd,tt(),qe=ie.dd,Ot.unshift(ie.cd),Pt--,o.monitorRunDependencies&&o.monitorRunDependencies(Pt),Pt==0&&(Yt!==null&&(clearInterval(Yt),Yt=null),pr)){var y=pr;pr=null,y()}return g}var u={a:ah};if(Pt++,o.monitorRunDependencies&&o.monitorRunDependencies(Pt),o.instantiateWasm)try{return o.instantiateWasm(u,i)}catch(g){se("Module.instantiateWasm callback failed with error: "+g),s(g)}return Tn(u,function(g){i(g.instance)}).catch(s),{}})();var or=o._free=i=>(or=o._free=ie.ed)(i),Wn=o._malloc=i=>(Wn=o._malloc=ie.fd)(i),ql=i=>(ql=ie.gd)(i);o.__embind_initialize_bindings=()=>(o.__embind_initialize_bindings=ie.hd)();var at=(i,u)=>(at=ie.id)(i,u),lt=()=>(lt=ie.jd)(),ut=i=>(ut=ie.kd)(i);o.dynCall_viji=(i,u,g,y,v)=>(o.dynCall_viji=ie.ld)(i,u,g,y,v),o.dynCall_vijiii=(i,u,g,y,v,A,P)=>(o.dynCall_vijiii=ie.md)(i,u,g,y,v,A,P),o.dynCall_viiiiij=(i,u,g,y,v,A,P,x)=>(o.dynCall_viiiiij=ie.nd)(i,u,g,y,v,A,P,x),o.dynCall_jiiiijiiiii=(i,u,g,y,v,A,P,x,I,N,q,Q)=>(o.dynCall_jiiiijiiiii=ie.od)(i,u,g,y,v,A,P,x,I,N,q,Q),o.dynCall_viiij=(i,u,g,y,v,A)=>(o.dynCall_viiij=ie.pd)(i,u,g,y,v,A),o.dynCall_jii=(i,u,g)=>(o.dynCall_jii=ie.qd)(i,u,g),o.dynCall_vij=(i,u,g,y)=>(o.dynCall_vij=ie.rd)(i,u,g,y),o.dynCall_iiij=(i,u,g,y,v)=>(o.dynCall_iiij=ie.sd)(i,u,g,y,v),o.dynCall_iiiij=(i,u,g,y,v,A)=>(o.dynCall_iiiij=ie.td)(i,u,g,y,v,A),o.dynCall_viij=(i,u,g,y,v)=>(o.dynCall_viij=ie.ud)(i,u,g,y,v),o.dynCall_ji=(i,u)=>(o.dynCall_ji=ie.vd)(i,u),o.dynCall_iij=(i,u,g,y)=>(o.dynCall_iij=ie.wd)(i,u,g,y),o.dynCall_jiiiiii=(i,u,g,y,v,A,P)=>(o.dynCall_jiiiiii=ie.xd)(i,u,g,y,v,A,P),o.dynCall_jiiiiji=(i,u,g,y,v,A,P,x)=>(o.dynCall_jiiiiji=ie.yd)(i,u,g,y,v,A,P,x),o.dynCall_iijj=(i,u,g,y,v,A)=>(o.dynCall_iijj=ie.zd)(i,u,g,y,v,A),o.dynCall_iiiji=(i,u,g,y,v,A)=>(o.dynCall_iiiji=ie.Ad)(i,u,g,y,v,A),o.dynCall_iiji=(i,u,g,y,v)=>(o.dynCall_iiji=ie.Bd)(i,u,g,y,v),o.dynCall_iijjiii=(i,u,g,y,v,A,P,x,I)=>(o.dynCall_iijjiii=ie.Cd)(i,u,g,y,v,A,P,x,I),o.dynCall_vijjjii=(i,u,g,y,v,A,P,x,I,N)=>(o.dynCall_vijjjii=ie.Dd)(i,u,g,y,v,A,P,x,I,N),o.dynCall_jiji=(i,u,g,y,v)=>(o.dynCall_jiji=ie.Ed)(i,u,g,y,v),o.dynCall_viijii=(i,u,g,y,v,A,P)=>(o.dynCall_viijii=ie.Fd)(i,u,g,y,v,A,P),o.dynCall_iiiiij=(i,u,g,y,v,A,P)=>(o.dynCall_iiiiij=ie.Gd)(i,u,g,y,v,A,P),o.dynCall_iiiiijj=(i,u,g,y,v,A,P,x,I)=>(o.dynCall_iiiiijj=ie.Hd)(i,u,g,y,v,A,P,x,I),o.dynCall_iiiiiijj=(i,u,g,y,v,A,P,x,I,N)=>(o.dynCall_iiiiiijj=ie.Id)(i,u,g,y,v,A,P,x,I,N);function lh(i,u,g,y){var v=lt();try{return qe.get(i)(u,g,y)}catch(A){if(ut(v),A!==A+0)throw A;at(1,0)}}function uh(i,u){var g=lt();try{return qe.get(i)(u)}catch(y){if(ut(g),y!==y+0)throw y;at(1,0)}}function gh(i,u,g,y,v,A,P,x,I,N){var q=lt();try{qe.get(i)(u,g,y,v,A,P,x,I,N)}catch(Q){if(ut(q),Q!==Q+0)throw Q;at(1,0)}}function ph(i,u,g,y){var v=lt();try{qe.get(i)(u,g,y)}catch(A){if(ut(v),A!==A+0)throw A;at(1,0)}}function ch(i,u,g){var y=lt();try{qe.get(i)(u,g)}catch(v){if(ut(y),v!==v+0)throw v;at(1,0)}}function fh(i){var u=lt();try{qe.get(i)()}catch(g){if(ut(u),g!==g+0)throw g;at(1,0)}}function dh(i,u,g,y,v){var A=lt();try{qe.get(i)(u,g,y,v)}catch(P){if(ut(A),P!==P+0)throw P;at(1,0)}}function hh(i,u){var g=lt();try{qe.get(i)(u)}catch(y){if(ut(g),y!==y+0)throw y;at(1,0)}}function mh(i,u,g){var y=lt();try{return qe.get(i)(u,g)}catch(v){if(ut(y),v!==v+0)throw v;at(1,0)}}function yh(i,u,g,y,v,A,P){var x=lt();try{qe.get(i)(u,g,y,v,A,P)}catch(I){if(ut(x),I!==I+0)throw I;at(1,0)}}function _h(i,u,g,y,v){var A=lt();try{return qe.get(i)(u,g,y,v)}catch(P){if(ut(A),P!==P+0)throw P;at(1,0)}}function vh(i,u,g,y,v,A){var P=lt();try{return qe.get(i)(u,g,y,v,A)}catch(x){if(ut(P),x!==x+0)throw x;at(1,0)}}function bh(i,u,g,y,v,A,P){var x=lt();try{return qe.get(i)(u,g,y,v,A,P)}catch(I){if(ut(x),I!==I+0)throw I;at(1,0)}}function Sh(i,u,g,y,v,A){var P=lt();try{qe.get(i)(u,g,y,v,A)}catch(x){if(ut(P),x!==x+0)throw x;at(1,0)}}function Th(i,u,g,y,v,A,P,x,I,N){var q=lt();try{return qe.get(i)(u,g,y,v,A,P,x,I,N)}catch(Q){if(ut(q),Q!==Q+0)throw Q;at(1,0)}}var Hn;pr=function i(){Hn||Kl(),Hn||(pr=i)};function Kl(){function i(){if(!Hn&&(Hn=!0,o.calledRun=!0,!Pe)){if(os(Ot),n(o),o.onRuntimeInitialized&&o.onRuntimeInitialized(),o.postRun)for(typeof o.postRun=="function"&&(o.postRun=[o.postRun]);o.postRun.length;){var u=o.postRun.shift();Sn.unshift(u)}os(Sn)}}if(!(0ip)});var jp=Ve((exports,module)=>{var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(t,r,o){t instanceof String&&(t=String(t));for(var n=t.length,s=0;s=s}},"es6","es3");$jscomp.polyfill("Array.prototype.find",function(t){return t||function(r,o){return $jscomp.findInternal(this,r,o).v}},"es6","es3");$jscomp.polyfill("String.prototype.startsWith",function(t){return t||function(r,o){var n=$jscomp.checkStringArgs(this,r,"startsWith");r+="";var s=n.length,l=r.length;o=Math.max(0,Math.min(o|0,n.length));for(var m=0;m=l}},"es6","es3");$jscomp.polyfill("String.prototype.repeat",function(t){return t||function(r){var o=$jscomp.checkStringArgs(this,null,"repeat");if(0>r||1342177279>>=1)&&(o+=o);return n}},"es6","es3");var COMPILED=!0,goog=goog||{};goog.global=exports||self;goog.exportPath_=function(t,r,o){t=t.split("."),o=o||goog.global,t[0]in o||typeof o.execScript>"u"||o.execScript("var "+t[0]);for(var n;t.length&&(n=t.shift());)t.length||r===void 0?o=o[n]&&o[n]!==Object.prototype[n]?o[n]:o[n]={}:o[n]=r};goog.define=function(t,r){if(!COMPILED){var o=goog.global.CLOSURE_UNCOMPILED_DEFINES,n=goog.global.CLOSURE_DEFINES;o&&o.nodeType===void 0&&Object.prototype.hasOwnProperty.call(o,t)?r=o[t]:n&&n.nodeType===void 0&&Object.prototype.hasOwnProperty.call(n,t)&&(r=n[t])}return r};goog.FEATURESET_YEAR=2012;goog.DEBUG=!0;goog.LOCALE="en";goog.TRUSTED_SITE=!0;goog.STRICT_MODE_COMPATIBLE=!1;goog.DISALLOW_TEST_ONLY_CODE=COMPILED&&!goog.DEBUG;goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING=!1;goog.provide=function(t){if(goog.isInModuleLoader_())throw Error("goog.provide cannot be used within a module.");if(!COMPILED&&goog.isProvided_(t))throw Error('Namespace "'+t+'" already declared.');goog.constructNamespace_(t)};goog.constructNamespace_=function(t,r){if(!COMPILED){delete goog.implicitNamespaces_[t];for(var o=t;(o=o.substring(0,o.lastIndexOf(".")))&&!goog.getObjectByName(o);)goog.implicitNamespaces_[o]=!0}goog.exportPath_(t,r)};goog.getScriptNonce=function(t){return t&&t!=goog.global?goog.getScriptNonce_(t.document):(goog.cspNonce_===null&&(goog.cspNonce_=goog.getScriptNonce_(goog.global.document)),goog.cspNonce_)};goog.NONCE_PATTERN_=/^[\w+/_-]+[=]{0,2}$/;goog.cspNonce_=null;goog.getScriptNonce_=function(t){return(t=t.querySelector&&t.querySelector("script[nonce]"))&&(t=t.nonce||t.getAttribute("nonce"))&&goog.NONCE_PATTERN_.test(t)?t:""};goog.VALID_MODULE_RE_=/^[a-zA-Z_$][a-zA-Z0-9._$]*$/;goog.module=function(t){if(typeof t!="string"||!t||t.search(goog.VALID_MODULE_RE_)==-1)throw Error("Invalid module identifier");if(!goog.isInGoogModuleLoader_())throw Error("Module "+t+" has been loaded incorrectly. Note, modules cannot be loaded as normal scripts. They require some kind of pre-processing step. You're likely trying to load a module via a script tag or as a part of a concatenated bundle without rewriting the module. For more info see: https://github.com/google/closure-library/wiki/goog.module:-an-ES6-module-like-alternative-to-goog.provide.");if(goog.moduleLoaderState_.moduleName)throw Error("goog.module may only be called once per module.");if(goog.moduleLoaderState_.moduleName=t,!COMPILED){if(goog.isProvided_(t))throw Error('Namespace "'+t+'" already declared.');delete goog.implicitNamespaces_[t]}};goog.module.get=function(t){return goog.module.getInternal_(t)};goog.module.getInternal_=function(t){if(!COMPILED){if(t in goog.loadedModules_)return goog.loadedModules_[t].exports;if(!goog.implicitNamespaces_[t])return t=goog.getObjectByName(t),t??null}return null};goog.ModuleType={ES6:"es6",GOOG:"goog"};goog.moduleLoaderState_=null;goog.isInModuleLoader_=function(){return goog.isInGoogModuleLoader_()||goog.isInEs6ModuleLoader_()};goog.isInGoogModuleLoader_=function(){return!!goog.moduleLoaderState_&&goog.moduleLoaderState_.type==goog.ModuleType.GOOG};goog.isInEs6ModuleLoader_=function(){if(goog.moduleLoaderState_&&goog.moduleLoaderState_.type==goog.ModuleType.ES6)return!0;var t=goog.global.$jscomp;return t?typeof t.getCurrentModulePath!="function"?!1:!!t.getCurrentModulePath():!1};goog.module.declareLegacyNamespace=function(){if(!COMPILED&&!goog.isInGoogModuleLoader_())throw Error("goog.module.declareLegacyNamespace must be called from within a goog.module");if(!COMPILED&&!goog.moduleLoaderState_.moduleName)throw Error("goog.module must be called prior to goog.module.declareLegacyNamespace.");goog.moduleLoaderState_.declareLegacyNamespace=!0};goog.declareModuleId=function(t){if(!COMPILED){if(!goog.isInEs6ModuleLoader_())throw Error("goog.declareModuleId may only be called from within an ES6 module");if(goog.moduleLoaderState_&&goog.moduleLoaderState_.moduleName)throw Error("goog.declareModuleId may only be called once per module.");if(t in goog.loadedModules_)throw Error('Module with namespace "'+t+'" already exists.')}if(goog.moduleLoaderState_)goog.moduleLoaderState_.moduleName=t;else{var r=goog.global.$jscomp;if(!r||typeof r.getCurrentModulePath!="function")throw Error('Module with namespace "'+t+'" has been loaded incorrectly.');r=r.require(r.getCurrentModulePath()),goog.loadedModules_[t]={exports:r,type:goog.ModuleType.ES6,moduleId:t}}};goog.setTestOnly=function(t){if(goog.DISALLOW_TEST_ONLY_CODE)throw t=t||"",Error("Importing test-only code into non-debug environment"+(t?": "+t:"."))};goog.forwardDeclare=function(t){};COMPILED||(goog.isProvided_=function(t){return t in goog.loadedModules_||!goog.implicitNamespaces_[t]&&goog.getObjectByName(t)!=null},goog.implicitNamespaces_={"goog.module":!0});goog.getObjectByName=function(t,r){t=t.split("."),r=r||goog.global;for(var o=0;o{var Eh=Object.create;var $n=Object.defineProperty;var wh=Object.getOwnPropertyDescriptor;var xh=Object.getOwnPropertyNames;var Ah=Object.getPrototypeOf,Mh=Object.prototype.hasOwnProperty;var Rs=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(r,o)=>(typeof require<"u"?require:r)[o]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var Cs=(t,r)=>()=>(t&&(r=t(t=0)),r);var Ve=(t,r)=>()=>(r||t((r={exports:{}}).exports,r),r.exports),Os=(t,r)=>{for(var o in r)$n(t,o,{get:r[o],enumerable:!0})},uu=(t,r,o,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let s of xh(r))!Mh.call(t,s)&&s!==o&&$n(t,s,{get:()=>r[s],enumerable:!(n=wh(r,s))||n.enumerable});return t};var Ke=(t,r,o)=>(o=t!=null?Eh(Ah(t)):{},uu(r||!t||!t.__esModule?$n(o,"default",{value:t,enumerable:!0}):o,t)),Ps=t=>uu($n({},"__esModule",{value:!0}),t);var wu={};Os(wu,{Component:()=>_t,Fragment:()=>Re,cloneElement:()=>Fs,createContext:()=>Go,createElement:()=>Et,createRef:()=>Vo,h:()=>Et,hydrate:()=>Kn,isValidElement:()=>hu,options:()=>ie,render:()=>Or,toChildArray:()=>zt});function sr(t,r){for(var o in r)t[o]=r[o];return t}function vu(t){var r=t.parentNode;r&&r.removeChild(t)}function Et(t,r,o){var n,s,l,m={};for(l in r)l=="key"?n=r[l]:l=="ref"?s=r[l]:m[l]=r[l];if(arguments.length>2&&(m.children=arguments.length>3?zo.call(arguments,2):o),typeof t=="function"&&t.defaultProps!=null)for(l in t.defaultProps)m[l]===void 0&&(m[l]=t.defaultProps[l]);return Wo(t,m,n,s,null)}function Wo(t,r,o,n,s){var l={type:t,props:r,key:o,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:s??++du,__i:-1,__u:0};return s==null&&ie.vnode!=null&&ie.vnode(l),l}function Vo(){return{current:null}}function Re(t){return t.children}function _t(t,r){this.props=t,this.context=r}function Gr(t,r){if(r==null)return t.__?Gr(t.__,t.__i+1):null;for(var o;rr&&Cr.sort(Ds));Xn.__r=0}function Su(t,r,o,n,s,l,m,v,w,M,P){var j,H,z,Q,J,ne=n&&n.__k||_u,ee=r.length;for(o.__d=w,Ih(o,r,ne),w=o.__d,j=0;j0?Wo(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):s)!=null?(s.__=t,s.__b=t.__b+1,v=Rh(s,o,m=n+j,P),s.__i=v,l=null,v!==-1&&(P--,(l=o[v])&&(l.__u|=131072)),l==null||l.__v===null?(v==-1&&j--,typeof s.type!="function"&&(s.__u|=65536)):v!==m&&(v===m+1?j++:v>m?P>w-m?j+=v-m:j--:j=v(w!=null&&!(131072&w.__u)?1:0))for(;m>=0||v=0){if((w=r[m])&&!(131072&w.__u)&&s==w.key&&l===w.type)return m;m--}if(v2&&(v.children=arguments.length>3?zo.call(arguments,2):o),Wo(t.type,v,n||t.key,s||t.ref,null)}function Go(t,r){var o={__c:r="__cC"+yu++,__:t,Consumer:function(n,s){return n.children(s)},Provider:function(n){var s,l;return this.getChildContext||(s=[],(l={})[r]=this,this.getChildContext=function(){return l},this.shouldComponentUpdate=function(m){this.props.value!==m.value&&s.some(function(v){v.__e=!0,Ns(v)})},this.sub=function(m){s.push(m);var v=m.componentWillUnmount;m.componentWillUnmount=function(){s.splice(s.indexOf(m),1),v&&v.call(m)}}),n.children}};return o.Provider.__=o.Consumer.contextType=o}var zo,ie,du,hu,Cr,gu,mu,Ds,yu,Ho,_u,jh,Zn,Pr=Cs(()=>{Ho={},_u=[],jh=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Zn=Array.isArray;zo=_u.slice,ie={__e:function(t,r,o,n){for(var s,l,m;r=r.__;)if((s=r.__c)&&!s.__)try{if((l=s.constructor)&&l.getDerivedStateFromError!=null&&(s.setState(l.getDerivedStateFromError(t)),m=s.__d),s.componentDidCatch!=null&&(s.componentDidCatch(t,n||{}),m=s.__d),m)return s.__E=s}catch(v){t=v}throw t}},du=0,hu=function(t){return t!=null&&t.constructor==null},_t.prototype.setState=function(t,r){var o;o=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=sr({},this.state),typeof t=="function"&&(t=t(sr({},o),this.props)),t&&sr(o,t),t!=null&&this.__v&&(r&&this._sb.push(r),Ns(this))},_t.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),Ns(this))},_t.prototype.render=Re,Cr=[],mu=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Ds=function(t,r){return t.__v.__b-r.__v.__b},Xn.__r=0,yu=0});var Nu={};Os(Nu,{useCallback:()=>ti,useContext:()=>ri,useDebugValue:()=>oi,useEffect:()=>qo,useErrorBoundary:()=>Pu,useId:()=>ni,useImperativeHandle:()=>ei,useLayoutEffect:()=>Nr,useMemo:()=>Xr,useReducer:()=>$o,useRef:()=>Qn,useState:()=>qr});function Dr(t,r){ie.__h&&ie.__h(ke,t,$r||r),$r=0;var o=ke.__H||(ke.__H={__:[],__h:[]});return t>=o.__.length&&o.__.push({__V:Yn}),o.__[t]}function qr(t){return $r=1,$o(Du,t)}function $o(t,r,o){var n=Dr(ar++,2);if(n.t=t,!n.__c&&(n.__=[o?o(r):Du(void 0,r),function(v){var w=n.__N?n.__N[0]:n.__[0],M=n.t(w,v);w!==M&&(n.__N=[M,n.__[1]],n.__c.setState({}))}],n.__c=ke,!ke.u)){var s=function(v,w,M){if(!n.__c.__H)return!0;var P=n.__c.__H.__.filter(function(H){return H.__c});if(P.every(function(H){return!H.__N}))return!l||l.call(this,v,w,M);var j=!1;return P.forEach(function(H){if(H.__N){var z=H.__[0];H.__=H.__N,H.__N=void 0,z!==H.__[0]&&(j=!0)}}),!(!j&&n.__c.props===v)&&(!l||l.call(this,v,w,M))};ke.u=!0;var l=ke.shouldComponentUpdate,m=ke.componentWillUpdate;ke.componentWillUpdate=function(v,w,M){if(this.__e){var P=l;l=void 0,s(v,w,M),l=P}m&&m.call(this,v,w,M)},ke.shouldComponentUpdate=s}return n.__N||n.__}function qo(t,r){var o=Dr(ar++,3);!ie.__s&&Hs(o.__H,r)&&(o.__=t,o.i=r,ke.__H.__h.push(o))}function Nr(t,r){var o=Dr(ar++,4);!ie.__s&&Hs(o.__H,r)&&(o.__=t,o.i=r,ke.__h.push(o))}function Qn(t){return $r=5,Xr(function(){return{current:t}},[])}function ei(t,r,o){$r=6,Nr(function(){return typeof t=="function"?(t(r()),function(){return t(null)}):t?(t.current=r(),function(){return t.current=null}):void 0},o==null?o:o.concat(t))}function Xr(t,r){var o=Dr(ar++,7);return Hs(o.__H,r)?(o.__V=t(),o.i=r,o.__h=t,o.__V):o.__}function ti(t,r){return $r=8,Xr(function(){return t},r)}function ri(t){var r=ke.context[t.__c],o=Dr(ar++,9);return o.c=t,r?(o.__==null&&(o.__=!0,r.sub(ke)),r.props.value):t.__}function oi(t,r){ie.useDebugValue&&ie.useDebugValue(r?r(t):t)}function Pu(t){var r=Dr(ar++,10),o=qr();return r.__=t,ke.componentDidCatch||(ke.componentDidCatch=function(n,s){r.__&&r.__(n,s),o[1](n)}),[o[0],function(){o[1](void 0)}]}function ni(){var t=Dr(ar++,11);if(!t.__){for(var r=ke.__v;r!==null&&!r.__m&&r.__!==null;)r=r.__;var o=r.__m||(r.__m=[0,0]);t.__="P"+o[0]+"-"+o[1]++}return t.__}function Ph(){for(var t;t=Ou.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(Jn),t.__H.__h.forEach(Ws),t.__H.__h=[]}catch(r){t.__H.__h=[],ie.__e(r,t.__v)}}function Dh(t){var r,o=function(){clearTimeout(n),Cu&&cancelAnimationFrame(r),setTimeout(t)},n=setTimeout(o,100);Cu&&(r=requestAnimationFrame(o))}function Jn(t){var r=ke,o=t.__c;typeof o=="function"&&(t.__c=void 0,o()),ke=r}function Ws(t){var r=ke;t.__c=t.__(),ke=r}function Hs(t,r){return!t||t.length!==r.length||r.some(function(o,n){return o!==t[n]})}function Du(t,r){return typeof r=="function"?r(t):r}var ar,ke,ks,xu,$r,Ou,Yn,Au,Mu,ju,Iu,Ru,Cu,ii=Cs(()=>{Pr();$r=0,Ou=[],Yn=[],Au=ie.__b,Mu=ie.__r,ju=ie.diffed,Iu=ie.__c,Ru=ie.unmount;ie.__b=function(t){ke=null,Au&&Au(t)},ie.__r=function(t){Mu&&Mu(t),ar=0;var r=(ke=t.__c).__H;r&&(ks===ke?(r.__h=[],ke.__h=[],r.__.forEach(function(o){o.__N&&(o.__=o.__N),o.__V=Yn,o.__N=o.i=void 0})):(r.__h.forEach(Jn),r.__h.forEach(Ws),r.__h=[],ar=0)),ks=ke},ie.diffed=function(t){ju&&ju(t);var r=t.__c;r&&r.__H&&(r.__H.__h.length&&(Ou.push(r)!==1&&xu===ie.requestAnimationFrame||((xu=ie.requestAnimationFrame)||Dh)(Ph)),r.__H.__.forEach(function(o){o.i&&(o.__H=o.i),o.__V!==Yn&&(o.__=o.__V),o.i=void 0,o.__V=Yn})),ks=ke=null},ie.__c=function(t,r){r.some(function(o){try{o.__h.forEach(Jn),o.__h=o.__h.filter(function(n){return!n.__||Ws(n)})}catch(n){r.some(function(s){s.__h&&(s.__h=[])}),r=[],ie.__e(n,o.__v)}}),Iu&&Iu(t,r)},ie.unmount=function(t){Ru&&Ru(t);var r,o=t.__c;o&&o.__H&&(o.__H.__.forEach(function(n){try{Jn(n)}catch(s){r=s}}),o.__H=void 0,r&&ie.__e(r,o.__v))};Cu=typeof requestAnimationFrame=="function"});var mg={};Os(mg,{Children:()=>qu,Component:()=>_t,Fragment:()=>Re,PureComponent:()=>si,StrictMode:()=>gg,Suspense:()=>Xo,SuspenseList:()=>Zr,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:()=>rg,cloneElement:()=>ig,createContext:()=>Go,createElement:()=>Et,createFactory:()=>og,createPortal:()=>Ju,createRef:()=>Vo,default:()=>Zh,findDOMNode:()=>ag,flushSync:()=>ug,forwardRef:()=>$u,hydrate:()=>tg,isElement:()=>dg,isFragment:()=>ng,isValidElement:()=>Zo,lazy:()=>Yu,memo:()=>Gu,render:()=>eg,startTransition:()=>$s,unmountComponentAtNode:()=>sg,unstable_batchedUpdates:()=>lg,useCallback:()=>ti,useContext:()=>ri,useDebugValue:()=>oi,useDeferredValue:()=>cg,useEffect:()=>qo,useErrorBoundary:()=>Pu,useId:()=>ni,useImperativeHandle:()=>ei,useInsertionEffect:()=>fg,useLayoutEffect:()=>Nr,useMemo:()=>Xr,useReducer:()=>$o,useRef:()=>Qn,useState:()=>qr,useSyncExternalStore:()=>hg,useTransition:()=>pg,version:()=>Xh});function Vu(t,r){for(var o in r)t[o]=r[o];return t}function Vs(t,r){for(var o in t)if(o!=="__source"&&!(o in r))return!0;for(var n in r)if(n!=="__source"&&t[n]!==r[n])return!0;return!1}function si(t){this.props=t}function Gu(t,r){function o(s){var l=this.props.ref,m=l==s.ref;return!m&&l&&(l.call?l(null):l.current=null),r?!r(this.props,s)||!m:Vs(this.props,s)}function n(s){return this.shouldComponentUpdate=o,Et(t,s)}return n.displayName="Memo("+(t.displayName||t.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}function $u(t){function r(o){var n=Vu({},o);return delete n.ref,t(n,o.ref||null)}return r.$$typeof=Nh,r.render=r,r.prototype.isReactComponent=r.__f=!0,r.displayName="ForwardRef("+(t.displayName||t.name)+")",r}function Xu(t,r,o){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach(function(n){typeof n.__c=="function"&&n.__c()}),t.__c.__H=null),(t=Vu({},t)).__c!=null&&(t.__c.__P===o&&(t.__c.__P=r),t.__c=null),t.__k=t.__k&&t.__k.map(function(n){return Xu(n,r,o)})),t}function Zu(t,r,o){return t&&o&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(n){return Zu(n,r,o)}),t.__c&&t.__c.__P===r&&(t.__e&&o.appendChild(t.__e),t.__c.__e=!0,t.__c.__P=o)),t}function Xo(){this.__u=0,this.t=null,this.__b=null}function Ku(t){var r=t.__.__c;return r&&r.__a&&r.__a(t)}function Yu(t){var r,o,n;function s(l){if(r||(r=t()).then(function(m){o=m.default||m},function(m){n=m}),n)throw n;if(!o)throw r;return Et(o,l)}return s.displayName="Lazy",s.__f=!0,s}function Zr(){this.u=null,this.o=null}function Bh(t){return this.getChildContext=function(){return t.context},t.children}function Uh(t){var r=this,o=t.i;r.componentWillUnmount=function(){Or(null,r.l),r.l=null,r.i=null},r.i&&r.i!==o&&r.componentWillUnmount(),r.l||(r.i=o,r.l={nodeType:1,parentNode:o,childNodes:[],appendChild:function(n){this.childNodes.push(n),r.i.appendChild(n)},insertBefore:function(n,s){this.childNodes.push(n),r.i.appendChild(n)},removeChild:function(n){this.childNodes.splice(this.childNodes.indexOf(n)>>>1,1),r.i.removeChild(n)}}),Or(Et(Bh,{context:r.context},t.__v),r.l)}function Ju(t,r){var o=Et(Uh,{__v:t,i:r});return o.containerInfo=r,o}function eg(t,r,o){return r.__k==null&&(r.textContent=""),Or(t,r),typeof o=="function"&&o(),t?t.__c:null}function tg(t,r,o){return Kn(t,r),typeof o=="function"&&o(),t?t.__c:null}function Vh(){}function Gh(){return this.cancelBubble}function $h(){return this.defaultPrevented}function og(t){return Et.bind(null,t)}function Zo(t){return!!t&&t.$$typeof===Qu}function ng(t){return Zo(t)&&t.type===Re}function ig(t){return Zo(t)?Fs.apply(null,arguments):t}function sg(t){return!!t.__k&&(Or(null,t),!0)}function ag(t){return t&&(t.base||t.nodeType===1&&t)||null}function $s(t){t()}function cg(t){return t}function pg(){return[!1,$s]}function hg(t,r){var o=r(),n=qr({h:{__:o,v:r}}),s=n[0].h,l=n[1];return Nr(function(){s.__=o,s.v=r,zs(s)&&l({h:s})},[t,o,r]),qo(function(){return zs(s)&&l({h:s}),t(function(){zs(s)&&l({h:s})})},[t]),o}function zs(t){var r,o,n=t.v,s=t.__;try{var l=n();return!((r=s)===(o=l)&&(r!==0||1/r==1/o)||r!=r&&o!=o)}catch{return!0}}var Lu,Nh,Bu,qu,Lh,Uu,Fu,Qu,Fh,kh,Wh,Hh,zh,ku,Gs,qh,Wu,Hu,zu,rg,Xh,lg,ug,gg,fg,dg,Zh,yg=Cs(()=>{Pr();Pr();ii();ii();(si.prototype=new _t).isPureReactComponent=!0,si.prototype.shouldComponentUpdate=function(t,r){return Vs(this.props,t)||Vs(this.state,r)};Lu=ie.__b;ie.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),Lu&&Lu(t)};Nh=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;Bu=function(t,r){return t==null?null:zt(zt(t).map(r))},qu={map:Bu,forEach:Bu,count:function(t){return t?zt(t).length:0},only:function(t){var r=zt(t);if(r.length!==1)throw"Children.only";return r[0]},toArray:zt},Lh=ie.__e;ie.__e=function(t,r,o,n){if(t.then){for(var s,l=r;l=l.__;)if((s=l.__c)&&s.__c)return r.__e==null&&(r.__e=o.__e,r.__k=o.__k),s.__c(t,r)}Lh(t,r,o,n)};Uu=ie.unmount;ie.unmount=function(t){var r=t.__c;r&&r.__R&&r.__R(),r&&32&t.__u&&(t.type=null),Uu&&Uu(t)},(Xo.prototype=new _t).__c=function(t,r){var o=r.__c,n=this;n.t==null&&(n.t=[]),n.t.push(o);var s=Ku(n.__v),l=!1,m=function(){l||(l=!0,o.__R=null,s?s(v):v())};o.__R=m;var v=function(){if(!--n.__u){if(n.state.__a){var w=n.state.__a;n.__v.__k[0]=Zu(w,w.__c.__P,w.__c.__O)}var M;for(n.setState({__a:n.__b=null});M=n.t.pop();)M.forceUpdate()}};n.__u++||32&r.__u||n.setState({__a:n.__b=n.__v.__k[0]}),t.then(m,m)},Xo.prototype.componentWillUnmount=function(){this.t=[]},Xo.prototype.render=function(t,r){if(this.__b){if(this.__v.__k){var o=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=Xu(this.__b,o,n.__O=n.__P)}this.__b=null}var s=r.__a&&Et(Re,null,t.fallback);return s&&(s.__u&=-33),[Et(Re,null,r.__a?null:t.children),s]};Fu=function(t,r,o){if(++o[1]===o[0]&&t.o.delete(r),t.props.revealOrder&&(t.props.revealOrder[0]!=="t"||!t.o.size))for(o=t.u;o;){for(;o.length>3;)o.pop()();if(o[1]{var{render:Kh,hydrate:Yh,unmountComponentAtNode:Jh}=(yg(),Ps(mg));function _g(t){return{render(r){Kh(r,t)},unmount(){Jh(t)}}}qs.createRoot=_g;qs.hydrateRoot=function(t,r){return Yh(r,t),_g(t)}});var Gt=Ve(Me=>{var fe=(Pr(),Ps(wu)),at=(ii(),Ps(Nu));function Cg(t,r){for(var o in r)t[o]=r[o];return t}function na(t,r){for(var o in t)if(o!=="__source"&&!(o in r))return!0;for(var n in r)if(n!=="__source"&&t[n]!==r[n])return!0;return!1}function ui(t){this.props=t}function Og(t,r){function o(s){var l=this.props.ref,m=l==s.ref;return!m&&l&&(l.call?l(null):l.current=null),r?!r(this.props,s)||!m:na(this.props,s)}function n(s){return this.shouldComponentUpdate=o,fe.createElement(t,s)}return n.displayName="Memo("+(t.displayName||t.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}(ui.prototype=new fe.Component).isPureReactComponent=!0,ui.prototype.shouldComponentUpdate=function(t,r){return na(this.props,t)||na(this.state,r)};var Eg=fe.options.__b;fe.options.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),Eg&&Eg(t)};var nm=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Pg(t){function r(o){var n=Cg({},o);return delete n.ref,t(n,o.ref||null)}return r.$$typeof=nm,r.render=r,r.prototype.isReactComponent=r.__f=!0,r.displayName="ForwardRef("+(t.displayName||t.name)+")",r}var wg=function(t,r){return t==null?null:fe.toChildArray(fe.toChildArray(t).map(r))},Dg={map:wg,forEach:wg,count:function(t){return t?fe.toChildArray(t).length:0},only:function(t){var r=fe.toChildArray(t);if(r.length!==1)throw"Children.only";return r[0]},toArray:fe.toChildArray},im=fe.options.__e;fe.options.__e=function(t,r,o,n){if(t.then){for(var s,l=r;l=l.__;)if((s=l.__c)&&s.__c)return r.__e==null&&(r.__e=o.__e,r.__k=o.__k),s.__c(t,r)}im(t,r,o,n)};var xg=fe.options.unmount;function Ng(t,r,o){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach(function(n){typeof n.__c=="function"&&n.__c()}),t.__c.__H=null),(t=Cg({},t)).__c!=null&&(t.__c.__P===o&&(t.__c.__P=r),t.__c=null),t.__k=t.__k&&t.__k.map(function(n){return Ng(n,r,o)})),t}function Lg(t,r,o){return t&&o&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(n){return Lg(n,r,o)}),t.__c&&t.__c.__P===r&&(t.__e&&o.appendChild(t.__e),t.__c.__e=!0,t.__c.__P=o)),t}function Qo(){this.__u=0,this.t=null,this.__b=null}function Bg(t){var r=t.__.__c;return r&&r.__a&&r.__a(t)}function Ug(t){var r,o,n;function s(l){if(r||(r=t()).then(function(m){o=m.default||m},function(m){n=m}),n)throw n;if(!o)throw r;return fe.createElement(o,l)}return s.displayName="Lazy",s.__f=!0,s}function Kr(){this.u=null,this.o=null}fe.options.unmount=function(t){var r=t.__c;r&&r.__R&&r.__R(),r&&32&t.__u&&(t.type=null),xg&&xg(t)},(Qo.prototype=new fe.Component).__c=function(t,r){var o=r.__c,n=this;n.t==null&&(n.t=[]),n.t.push(o);var s=Bg(n.__v),l=!1,m=function(){l||(l=!0,o.__R=null,s?s(v):v())};o.__R=m;var v=function(){if(!--n.__u){if(n.state.__a){var w=n.state.__a;n.__v.__k[0]=Lg(w,w.__c.__P,w.__c.__O)}var M;for(n.setState({__a:n.__b=null});M=n.t.pop();)M.forceUpdate()}};n.__u++||32&r.__u||n.setState({__a:n.__b=n.__v.__k[0]}),t.then(m,m)},Qo.prototype.componentWillUnmount=function(){this.t=[]},Qo.prototype.render=function(t,r){if(this.__b){if(this.__v.__k){var o=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=Ng(this.__b,o,n.__O=n.__P)}this.__b=null}var s=r.__a&&fe.createElement(fe.Fragment,null,t.fallback);return s&&(s.__u&=-33),[fe.createElement(fe.Fragment,null,r.__a?null:t.children),s]};var Ag=function(t,r,o){if(++o[1]===o[0]&&t.o.delete(r),t.props.revealOrder&&(t.props.revealOrder[0]!=="t"||!t.o.size))for(o=t.u;o;){for(;o.length>3;)o.pop()();if(o[1]>>1,1),r.i.removeChild(n)}}),fe.render(fe.createElement(sm,{context:r.context},t.__v),r.l)}function Fg(t,r){var o=fe.createElement(am,{__v:t,i:r});return o.containerInfo=r,o}(Kr.prototype=new fe.Component).__a=function(t){var r=this,o=Bg(r.__v),n=r.o.get(t);return n[0]++,function(s){var l=function(){r.props.revealOrder?(n.push(s),Ag(r,t,n)):s()};o?o(l):l()}},Kr.prototype.render=function(t){this.u=null,this.o=new Map;var r=fe.toChildArray(t.children);t.revealOrder&&t.revealOrder[0]==="b"&&r.reverse();for(var o=r.length;o--;)this.o.set(r[o],this.u=[1,0,this.u]);return t.children},Kr.prototype.componentDidUpdate=Kr.prototype.componentDidMount=function(){var t=this;this.o.forEach(function(r,o){Ag(t,o,r)})};var kg=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,lm=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,um=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,gm=/[A-Z0-9]/g,cm=typeof document<"u",pm=function(t){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(t)};function Wg(t,r,o){return r.__k==null&&(r.textContent=""),fe.render(t,r),typeof o=="function"&&o(),t?t.__c:null}function Hg(t,r,o){return fe.hydrate(t,r),typeof o=="function"&&o(),t?t.__c:null}fe.Component.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(fe.Component.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(r){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:r})}})});var Mg=fe.options.event;function fm(){}function dm(){return this.cancelBubble}function hm(){return this.defaultPrevented}fe.options.event=function(t){return Mg&&(t=Mg(t)),t.persist=fm,t.isPropagationStopped=dm,t.isDefaultPrevented=hm,t.nativeEvent=t};var ia,mm={enumerable:!1,configurable:!0,get:function(){return this.class}},jg=fe.options.vnode;fe.options.vnode=function(t){typeof t.type=="string"&&function(r){var o=r.props,n=r.type,s={};for(var l in o){var m=o[l];if(!(l==="value"&&"defaultValue"in o&&m==null||cm&&l==="children"&&n==="noscript"||l==="class"||l==="className")){var v=l.toLowerCase();l==="defaultValue"&&"value"in o&&o.value==null?l="value":l==="download"&&m===!0?m="":v==="ondoubleclick"?l="ondblclick":v!=="onchange"||n!=="input"&&n!=="textarea"||pm(o.type)?v==="onfocus"?l="onfocusin":v==="onblur"?l="onfocusout":um.test(l)?l=v:n.indexOf("-")===-1&&lm.test(l)?l=l.replace(gm,"-$&").toLowerCase():m===null&&(m=void 0):v=l="oninput",v==="oninput"&&s[l=v]&&(l="oninputCapture"),s[l]=m}}n=="select"&&s.multiple&&Array.isArray(s.value)&&(s.value=fe.toChildArray(o.children).forEach(function(w){w.props.selected=s.value.indexOf(w.props.value)!=-1})),n=="select"&&s.defaultValue!=null&&(s.value=fe.toChildArray(o.children).forEach(function(w){w.props.selected=s.multiple?s.defaultValue.indexOf(w.props.value)!=-1:s.defaultValue==w.props.value})),o.class&&!o.className?(s.class=o.class,Object.defineProperty(s,"className",mm)):(o.className&&!o.class||o.class&&o.className)&&(s.class=s.className=o.className),r.props=s}(t),t.$$typeof=kg,jg&&jg(t)};var Ig=fe.options.__r;fe.options.__r=function(t){Ig&&Ig(t),ia=t.__c};var Rg=fe.options.diffed;fe.options.diffed=function(t){Rg&&Rg(t);var r=t.props,o=t.__e;o!=null&&t.type==="textarea"&&"value"in r&&r.value!==o.value&&(o.value=r.value==null?"":r.value),ia=null};var zg={ReactCurrentDispatcher:{current:{readContext:function(t){return ia.__n[t.__c].props.value}}}};function Vg(t){return fe.createElement.bind(null,t)}function en(t){return!!t&&t.$$typeof===kg}function Gg(t){return en(t)&&t.type===fe.Fragment}function $g(t){return en(t)?fe.cloneElement.apply(null,arguments):t}function qg(t){return!!t.__k&&(fe.render(null,t),!0)}function Xg(t){return t&&(t.base||t.nodeType===1&&t)||null}var Zg=function(t,r){return t(r)},Kg=function(t,r){return t(r)},Yg=fe.Fragment;function sa(t){t()}function Jg(t){return t}function Qg(){return[!1,sa]}var ec=at.useLayoutEffect,tc=en;function rc(t,r){var o=r(),n=at.useState({p:{__:o,h:r}}),s=n[0].p,l=n[1];return at.useLayoutEffect(function(){s.__=o,s.h=r,oa(s)&&l({p:s})},[t,o,r]),at.useEffect(function(){return oa(s)&&l({p:s}),t(function(){oa(s)&&l({p:s})})},[t]),o}function oa(t){var r,o,n=t.h,s=t.__;try{var l=n();return!((r=s)===(o=l)&&(r!==0||1/r==1/o)||r!=r&&o!=o)}catch{return!0}}var ym={useState:at.useState,useId:at.useId,useReducer:at.useReducer,useEffect:at.useEffect,useLayoutEffect:at.useLayoutEffect,useInsertionEffect:ec,useTransition:Qg,useDeferredValue:Jg,useSyncExternalStore:rc,startTransition:sa,useRef:at.useRef,useImperativeHandle:at.useImperativeHandle,useMemo:at.useMemo,useCallback:at.useCallback,useContext:at.useContext,useDebugValue:at.useDebugValue,version:"17.0.2",Children:Dg,render:Wg,hydrate:Hg,unmountComponentAtNode:qg,createPortal:Fg,createElement:fe.createElement,createContext:fe.createContext,createFactory:Vg,cloneElement:$g,createRef:fe.createRef,Fragment:fe.Fragment,isValidElement:en,isElement:tc,isFragment:Gg,findDOMNode:Xg,Component:fe.Component,PureComponent:ui,memo:Og,forwardRef:Pg,flushSync:Kg,unstable_batchedUpdates:Zg,StrictMode:Yg,Suspense:Qo,SuspenseList:Kr,lazy:Ug,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:zg};Object.defineProperty(Me,"Component",{enumerable:!0,get:function(){return fe.Component}}),Object.defineProperty(Me,"Fragment",{enumerable:!0,get:function(){return fe.Fragment}}),Object.defineProperty(Me,"createContext",{enumerable:!0,get:function(){return fe.createContext}}),Object.defineProperty(Me,"createElement",{enumerable:!0,get:function(){return fe.createElement}}),Object.defineProperty(Me,"createRef",{enumerable:!0,get:function(){return fe.createRef}}),Me.Children=Dg,Me.PureComponent=ui,Me.StrictMode=Yg,Me.Suspense=Qo,Me.SuspenseList=Kr,Me.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=zg,Me.cloneElement=$g,Me.createFactory=Vg,Me.createPortal=Fg,Me.default=ym,Me.findDOMNode=Xg,Me.flushSync=Kg,Me.forwardRef=Pg,Me.hydrate=Hg,Me.isElement=tc,Me.isFragment=Gg,Me.isValidElement=en,Me.lazy=Ug,Me.memo=Og,Me.render=Wg,Me.startTransition=sa,Me.unmountComponentAtNode=qg,Me.unstable_batchedUpdates=Zg,Me.useDeferredValue=Jg,Me.useInsertionEffect=ec,Me.useSyncExternalStore=rc,Me.useTransition=Qg,Me.version="17.0.2",Object.keys(at).forEach(function(t){t==="default"||Me.hasOwnProperty(t)||Object.defineProperty(Me,t,{enumerable:!0,get:function(){return at[t]}})})});var nc=Ve(oc=>{"use strict";var Yr=Gt();function _m(t,r){return t===r&&(t!==0||1/t===1/r)||t!==t&&r!==r}var vm=typeof Object.is=="function"?Object.is:_m,bm=Yr.useState,Sm=Yr.useEffect,Tm=Yr.useLayoutEffect,Em=Yr.useDebugValue;function wm(t,r){var o=r(),n=bm({inst:{value:o,getSnapshot:r}}),s=n[0].inst,l=n[1];return Tm(function(){s.value=o,s.getSnapshot=r,aa(s)&&l({inst:s})},[t,o,r]),Sm(function(){return aa(s)&&l({inst:s}),t(function(){aa(s)&&l({inst:s})})},[t]),Em(o),o}function aa(t){var r=t.getSnapshot;t=t.value;try{var o=r();return!vm(t,o)}catch{return!0}}function xm(t,r){return r()}var Am=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?xm:wm;oc.useSyncExternalStore=Yr.useSyncExternalStore!==void 0?Yr.useSyncExternalStore:Am});var sc=Ve((yb,ic)=>{"use strict";ic.exports=nc()});var rr=Ve((Ab,gi)=>{(function(){"use strict";var t={}.hasOwnProperty,r="[native code]";function o(){for(var n=[],s=0;s{var ga=(()=>{var t=typeof document<"u"&&document.currentScript?document.currentScript.src:void 0;return typeof __filename<"u"&&(t=t||__filename),function(r){r=r||{};var o;o||(o=typeof r<"u"?r:{});var n,s;o.ready=new Promise(function(i,u){n=i,s=u}),function(i){i.Vd=i.Vd||[],i.Vd.push(function(){i.MakeSWCanvasSurface=function(u){var p=u;if(p.tagName!=="CANVAS"&&(p=document.getElementById(u),!p))throw"Canvas with id "+u+" was not found";return(u=i.MakeSurface(p.width,p.height))&&(u.Nd=p),u},i.MakeCanvasSurface||(i.MakeCanvasSurface=i.MakeSWCanvasSurface),i.MakeSurface=function(u,p){var y={width:u,height:p,colorType:i.ColorType.RGBA_8888,alphaType:i.AlphaType.Unpremul,colorSpace:i.ColorSpace.SRGB},S=u*p*4,x=i._malloc(S);return(y=i.Surface._makeRasterDirect(y,x,4*u))&&(y.Nd=null,y.Ef=u,y.Af=p,y.Cf=S,y.af=x,y.getCanvas().clear(i.TRANSPARENT)),y},i.MakeRasterDirectSurface=function(u,p,y){return i.Surface._makeRasterDirect(u,p.byteOffset,y)},i.Surface.prototype.flush=function(u){if(i.Od(this.Md),this._flush(),this.Nd){var p=new Uint8ClampedArray(i.HEAPU8.buffer,this.af,this.Cf);p=new ImageData(p,this.Ef,this.Af),u?this.Nd.getContext("2d").putImageData(p,0,0,u[0],u[1],u[2]-u[0],u[3]-u[1]):this.Nd.getContext("2d").putImageData(p,0,0)}},i.Surface.prototype.dispose=function(){this.af&&i._free(this.af),this.delete()},i.Od=i.Od||function(){},i.Se=i.Se||function(){return null}})}(o),function(i){i.Vd=i.Vd||[],i.Vd.push(function(){function u(A,R,N){return A&&A.hasOwnProperty(R)?A[R]:N}function p(A){var R=zr(Ot);return Ot[R]=A,R}function y(A){return A.naturalHeight||A.videoHeight||A.displayHeight||A.height}function S(A){return A.naturalWidth||A.videoWidth||A.displayWidth||A.width}function x(A,R,N,q){return A.bindTexture(A.TEXTURE_2D,R),q||N.alphaType!==i.AlphaType.Premul||A.pixelStorei(A.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0),R}function D(A,R,N){N||R.alphaType!==i.AlphaType.Premul||A.pixelStorei(A.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1),A.bindTexture(A.TEXTURE_2D,null)}i.GetWebGLContext=function(A,R){if(!A)throw"null canvas passed into makeWebGLContext";var N={alpha:u(R,"alpha",1),depth:u(R,"depth",1),stencil:u(R,"stencil",8),antialias:u(R,"antialias",0),premultipliedAlpha:u(R,"premultipliedAlpha",1),preserveDrawingBuffer:u(R,"preserveDrawingBuffer",0),preferLowPowerToHighPerformance:u(R,"preferLowPowerToHighPerformance",0),failIfMajorPerformanceCaveat:u(R,"failIfMajorPerformanceCaveat",0),enableExtensionsByDefault:u(R,"enableExtensionsByDefault",1),explicitSwapControl:u(R,"explicitSwapControl",0),renderViaOffscreenBackBuffer:u(R,"renderViaOffscreenBackBuffer",0)};if(N.majorVersion=R&&R.majorVersion?R.majorVersion:typeof WebGL2RenderingContext<"u"?2:1,N.explicitSwapControl)throw"explicitSwapControl is not supported";return A=Yd(A,N),A?(Xl(A),Te.ge.getExtension("WEBGL_debug_renderer_info"),A):0},i.deleteContext=function(A){Te===Qt[A]&&(Te=null),typeof JSEvents=="object"&&JSEvents.ug(Qt[A].ge.canvas),Qt[A]&&Qt[A].ge.canvas&&(Qt[A].ge.canvas.yf=void 0),Qt[A]=null},i._setTextureCleanup({deleteTexture:function(A,R){var N=Ot[R];N&&Qt[A].ge.deleteTexture(N),Ot[R]=null}}),i.MakeWebGLContext=function(A){if(!this.Od(A))return null;var R=this._MakeGrContext();if(!R)return null;R.Md=A;var N=R.delete.bind(R);return R.delete=function(){i.Od(this.Md),N()}.bind(R),Te.ef=R},i.MakeGrContext=i.MakeWebGLContext,i.GrDirectContext.prototype.getResourceCacheLimitBytes=function(){i.Od(this.Md),this._getResourceCacheLimitBytes()},i.GrDirectContext.prototype.getResourceCacheUsageBytes=function(){i.Od(this.Md),this._getResourceCacheUsageBytes()},i.GrDirectContext.prototype.releaseResourcesAndAbandonContext=function(){i.Od(this.Md),this._releaseResourcesAndAbandonContext()},i.GrDirectContext.prototype.setResourceCacheLimitBytes=function(A){i.Od(this.Md),this._setResourceCacheLimitBytes(A)},i.MakeOnScreenGLSurface=function(A,R,N,q,Z,se){return!this.Od(A.Md)||(R=Z===void 0||se===void 0?this._MakeOnScreenGLSurface(A,R,N,q):this._MakeOnScreenGLSurface(A,R,N,q,Z,se),!R)?null:(R.Md=A.Md,R)},i.MakeRenderTarget=function(){var A=arguments[0];if(!this.Od(A.Md))return null;if(arguments.length===3){var R=this._MakeRenderTargetWH(A,arguments[1],arguments[2]);if(!R)return null}else if(arguments.length===2){if(R=this._MakeRenderTargetII(A,arguments[1]),!R)return null}else return null;return R.Md=A.Md,R},i.MakeWebGLCanvasSurface=function(A,R,N){R=R||null;var q=A,Z=typeof OffscreenCanvas<"u"&&q instanceof OffscreenCanvas;if(!(typeof HTMLCanvasElement<"u"&&q instanceof HTMLCanvasElement||Z||(q=document.getElementById(A),q)))throw"Canvas with id "+A+" was not found";if(A=this.GetWebGLContext(q,N),!A||0>A)throw"failed to create webgl context: err "+A;return A=this.MakeWebGLContext(A),R=this.MakeOnScreenGLSurface(A,q.width,q.height,R),R||(R=q.cloneNode(!0),q.parentNode.replaceChild(R,q),R.classList.add("ck-replaced"),i.MakeSWCanvasSurface(R))},i.MakeCanvasSurface=i.MakeWebGLCanvasSurface,i.Surface.prototype.makeImageFromTexture=function(A,R){return i.Od(this.Md),A=p(A),(R=this._makeImageFromTexture(this.Md,A,R))&&(R.Le=A),R},i.Surface.prototype.makeImageFromTextureSource=function(A,R,N){R||(R={height:y(A),width:S(A),colorType:i.ColorType.RGBA_8888,alphaType:N?i.AlphaType.Premul:i.AlphaType.Unpremul}),R.colorSpace||(R.colorSpace=i.ColorSpace.SRGB),i.Od(this.Md);var q=Te.ge;return N=x(q,q.createTexture(),R,N),Te.version===2?q.texImage2D(q.TEXTURE_2D,0,q.RGBA,R.width,R.height,0,q.RGBA,q.UNSIGNED_BYTE,A):q.texImage2D(q.TEXTURE_2D,0,q.RGBA,q.RGBA,q.UNSIGNED_BYTE,A),D(q,R),this._resetContext(),this.makeImageFromTexture(N,R)},i.Surface.prototype.updateTextureFromSource=function(A,R,N){if(A.Le){i.Od(this.Md);var q=A.getImageInfo(),Z=Te.ge,se=x(Z,Ot[A.Le],q,N);Te.version===2?Z.texImage2D(Z.TEXTURE_2D,0,Z.RGBA,S(R),y(R),0,Z.RGBA,Z.UNSIGNED_BYTE,R):Z.texImage2D(Z.TEXTURE_2D,0,Z.RGBA,Z.RGBA,Z.UNSIGNED_BYTE,R),D(Z,q,N),this._resetContext(),Ot[A.Le]=null,A.Le=p(se),q.colorSpace=A.getColorSpace(),R=this._makeImageFromTexture(this.Md,A.Le,q),N=A.Ld.Td,Z=A.Ld.$d,A.Ld.Td=R.Ld.Td,A.Ld.$d=R.Ld.$d,R.Ld.Td=N,R.Ld.$d=Z,R.delete(),q.colorSpace.delete()}},i.MakeLazyImageFromTextureSource=function(A,R,N){R||(R={height:y(A),width:S(A),colorType:i.ColorType.RGBA_8888,alphaType:N?i.AlphaType.Premul:i.AlphaType.Unpremul}),R.colorSpace||(R.colorSpace=i.ColorSpace.SRGB);var q={makeTexture:function(){var Z=Te,se=Z.ge,F=x(se,se.createTexture(),R,N);return Z.version===2?se.texImage2D(se.TEXTURE_2D,0,se.RGBA,R.width,R.height,0,se.RGBA,se.UNSIGNED_BYTE,A):se.texImage2D(se.TEXTURE_2D,0,se.RGBA,se.RGBA,se.UNSIGNED_BYTE,A),D(se,R,N),p(F)},freeSrc:function(){}};return A.constructor.name==="VideoFrame"&&(q.freeSrc=function(){A.close()}),i.Image._makeFromGenerator(R,q)},i.Od=function(A){return A?Xl(A):!1},i.Se=function(){return Te&&Te.ef&&!Te.ef.isDeleted()?Te.ef:null}})}(o),function(i){function u(h,g,_,E,O){for(var U=0;U>>0}function x(h){if(h&&h._ck)return h;if(h instanceof Float32Array){for(var g=Math.floor(h.length/4),_=new Uint32Array(g),E=0;EG;G++)i.HEAPF32[O+E]=h[U][G],E++;h=_}else h=je;g.ce=h}else throw"Invalid argument to copyFlexibleColorArray, Not a color array "+typeof h;return g}function Z(h){if(!h)return je;var g=Es.toTypedArray();if(h.length){if(h.length===6||h.length===9)return N(h,"HEAPF32",mr),h.length===6&&i.HEAPF32.set(Sh,6+mr/4),mr;if(h.length===16)return g[0]=h[0],g[1]=h[1],g[2]=h[3],g[3]=h[4],g[4]=h[5],g[5]=h[7],g[6]=h[12],g[7]=h[13],g[8]=h[15],mr;throw"invalid matrix size"}if(h.m11===void 0)throw"invalid matrix argument";return g[0]=h.m11,g[1]=h.m21,g[2]=h.m41,g[3]=h.m12,g[4]=h.m22,g[5]=h.m42,g[6]=h.m14,g[7]=h.m24,g[8]=h.m44,mr}function se(h){if(!h)return je;var g=ws.toTypedArray();if(h.length){if(h.length!==16&&h.length!==6&&h.length!==9)throw"invalid matrix size";return h.length===16?N(h,"HEAPF32",Vr):(g.fill(0),g[0]=h[0],g[1]=h[1],g[3]=h[2],g[4]=h[3],g[5]=h[4],g[7]=h[5],g[10]=1,g[12]=h[6],g[13]=h[7],g[15]=h[8],h.length===6&&(g[12]=0,g[13]=0,g[15]=1),Vr)}if(h.m11===void 0)throw"invalid matrix argument";return g[0]=h.m11,g[1]=h.m21,g[2]=h.m31,g[3]=h.m41,g[4]=h.m12,g[5]=h.m22,g[6]=h.m32,g[7]=h.m42,g[8]=h.m13,g[9]=h.m23,g[10]=h.m33,g[11]=h.m43,g[12]=h.m14,g[13]=h.m24,g[14]=h.m34,g[15]=h.m44,Vr}function F(h,g){return N(h,"HEAPF32",g||Rr)}function ge(h,g,_,E){var O=xs.toTypedArray();return O[0]=h,O[1]=g,O[2]=_,O[3]=E,Rr}function we(h){for(var g=new Float32Array(4),_=0;4>_;_++)g[_]=i.HEAPF32[h/4+_];return g}function xe(h,g){return N(h,"HEAPF32",g||st)}function yt(h,g){return N(h,"HEAPF32",g||Is)}function Pt(){for(var h=0,g=0;g>>0},i.Color4f=function(h,g,_,E){return E===void 0&&(E=1),Float32Array.of(h,g,_,E)},Object.defineProperty(i,"TRANSPARENT",{get:function(){return i.Color4f(0,0,0,0)}}),Object.defineProperty(i,"BLACK",{get:function(){return i.Color4f(0,0,0,1)}}),Object.defineProperty(i,"WHITE",{get:function(){return i.Color4f(1,1,1,1)}}),Object.defineProperty(i,"RED",{get:function(){return i.Color4f(1,0,0,1)}}),Object.defineProperty(i,"GREEN",{get:function(){return i.Color4f(0,1,0,1)}}),Object.defineProperty(i,"BLUE",{get:function(){return i.Color4f(0,0,1,1)}}),Object.defineProperty(i,"YELLOW",{get:function(){return i.Color4f(1,1,0,1)}}),Object.defineProperty(i,"CYAN",{get:function(){return i.Color4f(0,1,1,1)}}),Object.defineProperty(i,"MAGENTA",{get:function(){return i.Color4f(1,0,1,1)}}),i.getColorComponents=function(h){return[Math.floor(255*h[0]),Math.floor(255*h[1]),Math.floor(255*h[2]),h[3]]},i.parseColorString=function(h,g){if(h=h.toLowerCase(),h.startsWith("#")){switch(g=255,h.length){case 9:g=parseInt(h.slice(7,9),16);case 7:var _=parseInt(h.slice(1,3),16),E=parseInt(h.slice(3,5),16),O=parseInt(h.slice(5,7),16);break;case 5:g=17*parseInt(h.slice(4,5),16);case 4:_=17*parseInt(h.slice(1,2),16),E=17*parseInt(h.slice(2,3),16),O=17*parseInt(h.slice(3,4),16)}return i.Color(_,E,O,g/255)}return h.startsWith("rgba")?(h=h.slice(5,-1),h=h.split(","),i.Color(+h[0],+h[1],+h[2],D(h[3]))):h.startsWith("rgb")?(h=h.slice(4,-1),h=h.split(","),i.Color(+h[0],+h[1],+h[2],D(h[3]))):h.startsWith("gray(")||h.startsWith("hsl")||!g||(h=g[h],h===void 0)?i.BLACK:h},i.multiplyByAlpha=function(h,g){return h=h.slice(),h[3]=Math.max(0,Math.min(h[3]*g,1)),h},i.Malloc=function(h,g){var _=i._malloc(g*h.BYTES_PER_ELEMENT);return{_ck:!0,length:g,byteOffset:_,re:null,subarray:function(E,O){return E=this.toTypedArray().subarray(E,O),E._ck=!0,E},toTypedArray:function(){return this.re&&this.re.length?this.re:(this.re=new h(i.HEAPU8.buffer,_,g),this.re._ck=!0,this.re)}}},i.Free=function(h){i._free(h.byteOffset),h.byteOffset=je,h.toTypedArray=null,h.re=null};var mr=je,Es,Vr=je,ws,Rr=je,xs,er,st=je,ou,yr=je,nu,As=je,iu,Ms=je,js,Gn=je,su,Is=je,au,lu=je,Sh=Float32Array.of(0,0,1),je=0;i.onRuntimeInitialized=function(){function h(g,_,E,O,U,G,oe){G||(G=4*O.width,O.colorType===i.ColorType.RGBA_F16?G*=2:O.colorType===i.ColorType.RGBA_F32&&(G*=4));var he=G*O.height,pe=U?U.byteOffset:i._malloc(he);if(oe?!g._readPixels(O,pe,G,_,E,oe):!g._readPixels(O,pe,G,_,E))return U||i._free(pe),null;if(U)return U.toTypedArray();switch(O.colorType){case i.ColorType.RGBA_8888:case i.ColorType.RGBA_F16:g=new Uint8Array(i.HEAPU8.buffer,pe,he).slice();break;case i.ColorType.RGBA_F32:g=new Float32Array(i.HEAPU8.buffer,pe,he).slice();break;default:return null}return i._free(pe),g}xs=i.Malloc(Float32Array,4),Rr=xs.byteOffset,ws=i.Malloc(Float32Array,16),Vr=ws.byteOffset,Es=i.Malloc(Float32Array,9),mr=Es.byteOffset,su=i.Malloc(Float32Array,12),Is=su.byteOffset,au=i.Malloc(Float32Array,12),lu=au.byteOffset,er=i.Malloc(Float32Array,4),st=er.byteOffset,ou=i.Malloc(Float32Array,4),yr=ou.byteOffset,nu=i.Malloc(Float32Array,3),As=nu.byteOffset,iu=i.Malloc(Float32Array,3),Ms=iu.byteOffset,js=i.Malloc(Int32Array,4),Gn=js.byteOffset,i.ColorSpace.SRGB=i.ColorSpace._MakeSRGB(),i.ColorSpace.DISPLAY_P3=i.ColorSpace._MakeDisplayP3(),i.ColorSpace.ADOBE_RGB=i.ColorSpace._MakeAdobeRGB(),i.GlyphRunFlags={IsWhiteSpace:i._GlyphRunFlags_isWhiteSpace},i.Path.MakeFromCmds=function(g){var _=N(g,"HEAPF32"),E=i.Path._MakeFromCmds(_,g.length);return R(_,g),E},i.Path.MakeFromVerbsPointsWeights=function(g,_,E){var O=N(g,"HEAPU8"),U=N(_,"HEAPF32"),G=N(E,"HEAPF32"),oe=i.Path._MakeFromVerbsPointsWeights(O,g.length,U,_.length,G,E&&E.length||0);return R(O,g),R(U,_),R(G,E),oe},i.Path.prototype.addArc=function(g,_,E){return g=xe(g),this._addArc(g,_,E),this},i.Path.prototype.addCircle=function(g,_,E,O){return this._addCircle(g,_,E,!!O),this},i.Path.prototype.addOval=function(g,_,E){return E===void 0&&(E=1),g=xe(g),this._addOval(g,!!_,E),this},i.Path.prototype.addPath=function(){var g=Array.prototype.slice.call(arguments),_=g[0],E=!1;if(typeof g[g.length-1]=="boolean"&&(E=g.pop()),g.length===1)this._addPath(_,1,0,0,0,1,0,0,0,1,E);else if(g.length===2)g=g[1],this._addPath(_,g[0],g[1],g[2],g[3],g[4],g[5],g[6]||0,g[7]||0,g[8]||1,E);else if(g.length===7||g.length===10)this._addPath(_,g[1],g[2],g[3],g[4],g[5],g[6],g[7]||0,g[8]||0,g[9]||1,E);else return null;return this},i.Path.prototype.addPoly=function(g,_){var E=N(g,"HEAPF32");return this._addPoly(E,g.length/2,_),R(E,g),this},i.Path.prototype.addRect=function(g,_){return g=xe(g),this._addRect(g,!!_),this},i.Path.prototype.addRRect=function(g,_){return g=yt(g),this._addRRect(g,!!_),this},i.Path.prototype.addVerbsPointsWeights=function(g,_,E){var O=N(g,"HEAPU8"),U=N(_,"HEAPF32"),G=N(E,"HEAPF32");this._addVerbsPointsWeights(O,g.length,U,_.length,G,E&&E.length||0),R(O,g),R(U,_),R(G,E)},i.Path.prototype.arc=function(g,_,E,O,U,G){return g=i.LTRBRect(g-E,_-E,g+E,_+E),U=(U-O)/Math.PI*180-360*!!G,G=new i.Path,G.addArc(g,O/Math.PI*180,U),this.addPath(G,!0),G.delete(),this},i.Path.prototype.arcToOval=function(g,_,E,O){return g=xe(g),this._arcToOval(g,_,E,O),this},i.Path.prototype.arcToRotated=function(g,_,E,O,U,G,oe){return this._arcToRotated(g,_,E,!!O,!!U,G,oe),this},i.Path.prototype.arcToTangent=function(g,_,E,O,U){return this._arcToTangent(g,_,E,O,U),this},i.Path.prototype.close=function(){return this._close(),this},i.Path.prototype.conicTo=function(g,_,E,O,U){return this._conicTo(g,_,E,O,U),this},i.Path.prototype.computeTightBounds=function(g){this._computeTightBounds(st);var _=er.toTypedArray();return g?(g.set(_),g):_.slice()},i.Path.prototype.cubicTo=function(g,_,E,O,U,G){return this._cubicTo(g,_,E,O,U,G),this},i.Path.prototype.dash=function(g,_,E){return this._dash(g,_,E)?this:null},i.Path.prototype.getBounds=function(g){this._getBounds(st);var _=er.toTypedArray();return g?(g.set(_),g):_.slice()},i.Path.prototype.lineTo=function(g,_){return this._lineTo(g,_),this},i.Path.prototype.moveTo=function(g,_){return this._moveTo(g,_),this},i.Path.prototype.offset=function(g,_){return this._transform(1,0,g,0,1,_,0,0,1),this},i.Path.prototype.quadTo=function(g,_,E,O){return this._quadTo(g,_,E,O),this},i.Path.prototype.rArcTo=function(g,_,E,O,U,G,oe){return this._rArcTo(g,_,E,O,U,G,oe),this},i.Path.prototype.rConicTo=function(g,_,E,O,U){return this._rConicTo(g,_,E,O,U),this},i.Path.prototype.rCubicTo=function(g,_,E,O,U,G){return this._rCubicTo(g,_,E,O,U,G),this},i.Path.prototype.rLineTo=function(g,_){return this._rLineTo(g,_),this},i.Path.prototype.rMoveTo=function(g,_){return this._rMoveTo(g,_),this},i.Path.prototype.rQuadTo=function(g,_,E,O){return this._rQuadTo(g,_,E,O),this},i.Path.prototype.stroke=function(g){return g=g||{},g.width=g.width||1,g.miter_limit=g.miter_limit||4,g.cap=g.cap||i.StrokeCap.Butt,g.join=g.join||i.StrokeJoin.Miter,g.precision=g.precision||1,this._stroke(g)?this:null},i.Path.prototype.transform=function(){if(arguments.length===1){var g=arguments[0];this._transform(g[0],g[1],g[2],g[3],g[4],g[5],g[6]||0,g[7]||0,g[8]||1)}else if(arguments.length===6||arguments.length===9)g=arguments,this._transform(g[0],g[1],g[2],g[3],g[4],g[5],g[6]||0,g[7]||0,g[8]||1);else throw"transform expected to take 1 or 9 arguments. Got "+arguments.length;return this},i.Path.prototype.trim=function(g,_,E){return this._trim(g,_,!!E)?this:null},i.Image.prototype.encodeToBytes=function(g,_){var E=i.Se();return g=g||i.ImageFormat.PNG,_=_||100,E?this._encodeToBytes(g,_,E):this._encodeToBytes(g,_)},i.Image.prototype.makeShaderCubic=function(g,_,E,O,U){return U=Z(U),this._makeShaderCubic(g,_,E,O,U)},i.Image.prototype.makeShaderOptions=function(g,_,E,O,U){return U=Z(U),this._makeShaderOptions(g,_,E,O,U)},i.Image.prototype.readPixels=function(g,_,E,O,U){var G=i.Se();return h(this,g,_,E,O,U,G)},i.Canvas.prototype.clear=function(g){i.Od(this.Md),g=F(g),this._clear(g)},i.Canvas.prototype.clipRRect=function(g,_,E){i.Od(this.Md),g=yt(g),this._clipRRect(g,_,E)},i.Canvas.prototype.clipRect=function(g,_,E){i.Od(this.Md),g=xe(g),this._clipRect(g,_,E)},i.Canvas.prototype.concat=function(g){i.Od(this.Md),g=se(g),this._concat(g)},i.Canvas.prototype.drawArc=function(g,_,E,O,U){i.Od(this.Md),g=xe(g),this._drawArc(g,_,E,O,U)},i.Canvas.prototype.drawAtlas=function(g,_,E,O,U,G,oe){if(g&&O&&_&&E&&_.length===E.length){i.Od(this.Md),U||(U=i.BlendMode.SrcOver);var he=N(_,"HEAPF32"),pe=N(E,"HEAPF32"),Oe=E.length/4,C=N(x(G),"HEAPU32");if(oe&&"B"in oe&&"C"in oe)this._drawAtlasCubic(g,pe,he,C,Oe,U,oe.B,oe.C,O);else{let $=i.FilterMode.Linear,be=i.MipmapMode.None;oe&&($=oe.filter,"mipmap"in oe&&(be=oe.mipmap)),this._drawAtlasOptions(g,pe,he,C,Oe,U,$,be,O)}R(he,_),R(pe,E),R(C,G)}},i.Canvas.prototype.drawCircle=function(g,_,E,O){i.Od(this.Md),this._drawCircle(g,_,E,O)},i.Canvas.prototype.drawColor=function(g,_){i.Od(this.Md),g=F(g),_!==void 0?this._drawColor(g,_):this._drawColor(g)},i.Canvas.prototype.drawColorInt=function(g,_){i.Od(this.Md),this._drawColorInt(g,_||i.BlendMode.SrcOver)},i.Canvas.prototype.drawColorComponents=function(g,_,E,O,U){i.Od(this.Md),g=ge(g,_,E,O),U!==void 0?this._drawColor(g,U):this._drawColor(g)},i.Canvas.prototype.drawDRRect=function(g,_,E){i.Od(this.Md),g=yt(g,Is),_=yt(_,lu),this._drawDRRect(g,_,E)},i.Canvas.prototype.drawImage=function(g,_,E,O){i.Od(this.Md),this._drawImage(g,_,E,O||null)},i.Canvas.prototype.drawImageCubic=function(g,_,E,O,U,G){i.Od(this.Md),this._drawImageCubic(g,_,E,O,U,G||null)},i.Canvas.prototype.drawImageOptions=function(g,_,E,O,U,G){i.Od(this.Md),this._drawImageOptions(g,_,E,O,U,G||null)},i.Canvas.prototype.drawImageNine=function(g,_,E,O,U){i.Od(this.Md),_=N(_,"HEAP32",Gn),E=xe(E),this._drawImageNine(g,_,E,O,U||null)},i.Canvas.prototype.drawImageRect=function(g,_,E,O,U){i.Od(this.Md),xe(_,st),xe(E,yr),this._drawImageRect(g,st,yr,O,!!U)},i.Canvas.prototype.drawImageRectCubic=function(g,_,E,O,U,G){i.Od(this.Md),xe(_,st),xe(E,yr),this._drawImageRectCubic(g,st,yr,O,U,G||null)},i.Canvas.prototype.drawImageRectOptions=function(g,_,E,O,U,G){i.Od(this.Md),xe(_,st),xe(E,yr),this._drawImageRectOptions(g,st,yr,O,U,G||null)},i.Canvas.prototype.drawLine=function(g,_,E,O,U){i.Od(this.Md),this._drawLine(g,_,E,O,U)},i.Canvas.prototype.drawOval=function(g,_){i.Od(this.Md),g=xe(g),this._drawOval(g,_)},i.Canvas.prototype.drawPaint=function(g){i.Od(this.Md),this._drawPaint(g)},i.Canvas.prototype.drawParagraph=function(g,_,E){i.Od(this.Md),this._drawParagraph(g,_,E)},i.Canvas.prototype.drawPatch=function(g,_,E,O,U){if(24>g.length)throw"Need 12 cubic points";if(_&&4>_.length)throw"Need 4 colors";if(E&&8>E.length)throw"Need 4 shader coordinates";i.Od(this.Md);let G=N(g,"HEAPF32"),oe=_?N(x(_),"HEAPU32"):je,he=E?N(E,"HEAPF32"):je;O||(O=i.BlendMode.Modulate),this._drawPatch(G,oe,he,O,U),R(he,E),R(oe,_),R(G,g)},i.Canvas.prototype.drawPath=function(g,_){i.Od(this.Md),this._drawPath(g,_)},i.Canvas.prototype.drawPicture=function(g){i.Od(this.Md),this._drawPicture(g)},i.Canvas.prototype.drawPoints=function(g,_,E){i.Od(this.Md);var O=N(_,"HEAPF32");this._drawPoints(g,O,_.length/2,E),R(O,_)},i.Canvas.prototype.drawRRect=function(g,_){i.Od(this.Md),g=yt(g),this._drawRRect(g,_)},i.Canvas.prototype.drawRect=function(g,_){i.Od(this.Md),g=xe(g),this._drawRect(g,_)},i.Canvas.prototype.drawRect4f=function(g,_,E,O,U){i.Od(this.Md),this._drawRect4f(g,_,E,O,U)},i.Canvas.prototype.drawShadow=function(g,_,E,O,U,G,oe){i.Od(this.Md);var he=N(U,"HEAPF32"),pe=N(G,"HEAPF32");_=N(_,"HEAPF32",As),E=N(E,"HEAPF32",Ms),this._drawShadow(g,_,E,O,he,pe,oe),R(he,U),R(pe,G)},i.getShadowLocalBounds=function(g,_,E,O,U,G,oe){return g=Z(g),E=N(E,"HEAPF32",As),O=N(O,"HEAPF32",Ms),this._getShadowLocalBounds(g,_,E,O,U,G,st)?(_=er.toTypedArray(),oe?(oe.set(_),oe):_.slice()):null},i.Canvas.prototype.drawTextBlob=function(g,_,E,O){i.Od(this.Md),this._drawTextBlob(g,_,E,O)},i.Canvas.prototype.drawVertices=function(g,_,E){i.Od(this.Md),this._drawVertices(g,_,E)},i.Canvas.prototype.getDeviceClipBounds=function(g){this._getDeviceClipBounds(Gn);var _=js.toTypedArray();return g?g.set(_):g=_.slice(),g},i.Canvas.prototype.getLocalToDevice=function(){this._getLocalToDevice(Vr);for(var g=Vr,_=Array(16),E=0;16>E;E++)_[E]=i.HEAPF32[g/4+E];return _},i.Canvas.prototype.getTotalMatrix=function(){this._getTotalMatrix(mr);for(var g=Array(9),_=0;9>_;_++)g[_]=i.HEAPF32[mr/4+_];return g},i.Canvas.prototype.makeSurface=function(g){return g=this._makeSurface(g),g.Md=this.Md,g},i.Canvas.prototype.readPixels=function(g,_,E,O,U){return i.Od(this.Md),h(this,g,_,E,O,U)},i.Canvas.prototype.saveLayer=function(g,_,E,O){return _=xe(_),this._saveLayer(g||null,_,E||null,O||0)},i.Canvas.prototype.writePixels=function(g,_,E,O,U,G,oe,he){if(g.byteLength%(_*E))throw"pixels length must be a multiple of the srcWidth * srcHeight";i.Od(this.Md);var pe=g.byteLength/(_*E);G=G||i.AlphaType.Unpremul,oe=oe||i.ColorType.RGBA_8888,he=he||i.ColorSpace.SRGB;var Oe=pe*_;return pe=N(g,"HEAPU8"),_=this._writePixels({width:_,height:E,colorType:oe,alphaType:G,colorSpace:he},pe,Oe,O,U),R(pe,g),_},i.ColorFilter.MakeBlend=function(g,_,E){return g=F(g),E=E||i.ColorSpace.SRGB,i.ColorFilter._MakeBlend(g,_,E)},i.ColorFilter.MakeMatrix=function(g){if(!g||g.length!==20)throw"invalid color matrix";var _=N(g,"HEAPF32"),E=i.ColorFilter._makeMatrix(_);return R(_,g),E},i.ContourMeasure.prototype.getPosTan=function(g,_){return this._getPosTan(g,st),g=er.toTypedArray(),_?(_.set(g),_):g.slice()},i.ImageFilter.MakeDropShadow=function(g,_,E,O,U,G){return U=F(U,Rr),i.ImageFilter._MakeDropShadow(g,_,E,O,U,G)},i.ImageFilter.MakeDropShadowOnly=function(g,_,E,O,U,G){return U=F(U,Rr),i.ImageFilter._MakeDropShadowOnly(g,_,E,O,U,G)},i.ImageFilter.MakeImage=function(g,_,E,O){if(E=xe(E,st),O=xe(O,yr),"B"in _&&"C"in _)return i.ImageFilter._MakeImageCubic(g,_.B,_.C,E,O);let U=_.filter,G=i.MipmapMode.None;return"mipmap"in _&&(G=_.mipmap),i.ImageFilter._MakeImageOptions(g,U,G,E,O)},i.ImageFilter.MakeMatrixTransform=function(g,_,E){if(g=Z(g),"B"in _&&"C"in _)return i.ImageFilter._MakeMatrixTransformCubic(g,_.B,_.C,E);let O=_.filter,U=i.MipmapMode.None;return"mipmap"in _&&(U=_.mipmap),i.ImageFilter._MakeMatrixTransformOptions(g,O,U,E)},i.Paint.prototype.getColor=function(){return this._getColor(Rr),we(Rr)},i.Paint.prototype.setColor=function(g,_){_=_||null,g=F(g),this._setColor(g,_)},i.Paint.prototype.setColorComponents=function(g,_,E,O,U){U=U||null,g=ge(g,_,E,O),this._setColor(g,U)},i.Path.prototype.getPoint=function(g,_){return this._getPoint(g,st),g=er.toTypedArray(),_?(_[0]=g[0],_[1]=g[1],_):g.slice(0,2)},i.Picture.prototype.makeShader=function(g,_,E,O,U){return O=Z(O),U=xe(U),this._makeShader(g,_,E,O,U)},i.PictureRecorder.prototype.beginRecording=function(g){return g=xe(g),this._beginRecording(g)},i.Surface.prototype.getCanvas=function(){var g=this._getCanvas();return g.Md=this.Md,g},i.Surface.prototype.makeImageSnapshot=function(g){return i.Od(this.Md),g=N(g,"HEAP32",Gn),this._makeImageSnapshot(g)},i.Surface.prototype.makeSurface=function(g){return i.Od(this.Md),g=this._makeSurface(g),g.Md=this.Md,g},i.Surface.prototype.Df=function(g,_){return this.He||(this.He=this.getCanvas()),requestAnimationFrame(function(){i.Od(this.Md),g(this.He),this.flush(_)}.bind(this))},i.Surface.prototype.requestAnimationFrame||(i.Surface.prototype.requestAnimationFrame=i.Surface.prototype.Df),i.Surface.prototype.zf=function(g,_){this.He||(this.He=this.getCanvas()),requestAnimationFrame(function(){i.Od(this.Md),g(this.He),this.flush(_),this.dispose()}.bind(this))},i.Surface.prototype.drawOnce||(i.Surface.prototype.drawOnce=i.Surface.prototype.zf),i.PathEffect.MakeDash=function(g,_){if(_||(_=0),!g.length||g.length%2===1)throw"Intervals array must have even length";var E=N(g,"HEAPF32");return _=i.PathEffect._MakeDash(E,g.length,_),R(E,g),_},i.PathEffect.MakeLine2D=function(g,_){return _=Z(_),i.PathEffect._MakeLine2D(g,_)},i.PathEffect.MakePath2D=function(g,_){return g=Z(g),i.PathEffect._MakePath2D(g,_)},i.Shader.MakeColor=function(g,_){return _=_||null,g=F(g),i.Shader._MakeColor(g,_)},i.Shader.Blend=i.Shader.MakeBlend,i.Shader.Color=i.Shader.MakeColor,i.Shader.MakeLinearGradient=function(g,_,E,O,U,G,oe,he){he=he||null;var pe=q(E),Oe=N(O,"HEAPF32");oe=oe||0,G=Z(G);var C=er.toTypedArray();return C.set(g),C.set(_,2),g=i.Shader._MakeLinearGradient(st,pe.ce,pe.colorType,Oe,pe.count,U,oe,G,he),R(pe.ce,E),O&&R(Oe,O),g},i.Shader.MakeRadialGradient=function(g,_,E,O,U,G,oe,he){he=he||null;var pe=q(E),Oe=N(O,"HEAPF32");return oe=oe||0,G=Z(G),g=i.Shader._MakeRadialGradient(g[0],g[1],_,pe.ce,pe.colorType,Oe,pe.count,U,oe,G,he),R(pe.ce,E),O&&R(Oe,O),g},i.Shader.MakeSweepGradient=function(g,_,E,O,U,G,oe,he,pe,Oe){Oe=Oe||null;var C=q(E),$=N(O,"HEAPF32");return oe=oe||0,he=he||0,pe=pe||360,G=Z(G),g=i.Shader._MakeSweepGradient(g,_,C.ce,C.colorType,$,C.count,U,he,pe,oe,G,Oe),R(C.ce,E),O&&R($,O),g},i.Shader.MakeTwoPointConicalGradient=function(g,_,E,O,U,G,oe,he,pe,Oe){Oe=Oe||null;var C=q(U),$=N(G,"HEAPF32");pe=pe||0,he=Z(he);var be=er.toTypedArray();return be.set(g),be.set(E,2),g=i.Shader._MakeTwoPointConicalGradient(st,_,O,C.ce,C.colorType,$,C.count,oe,pe,he,Oe),R(C.ce,U),G&&R($,G),g},i.Vertices.prototype.bounds=function(g){this._bounds(st);var _=er.toTypedArray();return g?(g.set(_),g):_.slice()},i.Vd&&i.Vd.forEach(function(g){g()})},i.computeTonalColors=function(h){var g=N(h.ambient,"HEAPF32"),_=N(h.spot,"HEAPF32");this._computeTonalColors(g,_);var E={ambient:we(g),spot:we(_)};return R(g,h.ambient),R(_,h.spot),E},i.LTRBRect=function(h,g,_,E){return Float32Array.of(h,g,_,E)},i.XYWHRect=function(h,g,_,E){return Float32Array.of(h,g,h+_,g+E)},i.LTRBiRect=function(h,g,_,E){return Int32Array.of(h,g,_,E)},i.XYWHiRect=function(h,g,_,E){return Int32Array.of(h,g,h+_,g+E)},i.RRectXY=function(h,g,_){return Float32Array.of(h[0],h[1],h[2],h[3],g,_,g,_,g,_,g,_)},i.MakeAnimatedImageFromEncoded=function(h){h=new Uint8Array(h);var g=i._malloc(h.byteLength);return i.HEAPU8.set(h,g),(h=i._decodeAnimatedImage(g,h.byteLength))?h:null},i.MakeImageFromEncoded=function(h){h=new Uint8Array(h);var g=i._malloc(h.byteLength);return i.HEAPU8.set(h,g),(h=i._decodeImage(g,h.byteLength))?h:null};var Fo=null;i.MakeImageFromCanvasImageSource=function(h){var g=h.width,_=h.height;Fo||(Fo=document.createElement("canvas")),Fo.width=g,Fo.height=_;var E=Fo.getContext("2d",{wg:!0});return E.drawImage(h,0,0),h=E.getImageData(0,0,g,_),i.MakeImage({width:g,height:_,alphaType:i.AlphaType.Unpremul,colorType:i.ColorType.RGBA_8888,colorSpace:i.ColorSpace.SRGB},h.data,4*g)},i.MakeImage=function(h,g,_){var E=i._malloc(g.length);return i.HEAPU8.set(g,E),i._MakeImage(h,E,g.length,_)},i.MakeVertices=function(h,g,_,E,O,U){var G=O&&O.length||0,oe=0;return _&&_.length&&(oe|=1),E&&E.length&&(oe|=2),U===void 0||U||(oe|=4),h=new i._VerticesBuilder(h,g.length/2,G,oe),N(g,"HEAPF32",h.positions()),h.texCoords()&&N(_,"HEAPF32",h.texCoords()),h.colors()&&N(x(E),"HEAPU32",h.colors()),h.indices()&&N(O,"HEAPU16",h.indices()),h.detach()},i.Matrix={},i.Matrix.identity=function(){return p(3)},i.Matrix.invert=function(h){var g=h[0]*h[4]*h[8]+h[1]*h[5]*h[6]+h[2]*h[3]*h[7]-h[2]*h[4]*h[6]-h[1]*h[3]*h[8]-h[0]*h[5]*h[7];return g?[(h[4]*h[8]-h[5]*h[7])/g,(h[2]*h[7]-h[1]*h[8])/g,(h[1]*h[5]-h[2]*h[4])/g,(h[5]*h[6]-h[3]*h[8])/g,(h[0]*h[8]-h[2]*h[6])/g,(h[2]*h[3]-h[0]*h[5])/g,(h[3]*h[7]-h[4]*h[6])/g,(h[1]*h[6]-h[0]*h[7])/g,(h[0]*h[4]-h[1]*h[3])/g]:null},i.Matrix.mapPoints=function(h,g){for(var _=0;_O;O+=5){for(var U=0;4>U;U++)_[E++]=h[O]*g[U]+h[O+1]*g[U+5]+h[O+2]*g[U+10]+h[O+3]*g[U+15];_[E++]=h[O]*g[4]+h[O+1]*g[9]+h[O+2]*g[14]+h[O+3]*g[19]+h[O+4]}return _},function(h){h.Vd=h.Vd||[],h.Vd.push(function(){function g(C){if(!C||!C.length)return[];for(var $=[],be=0;beg?(i._free(h),null):(O=new Uint16Array(i.HEAPU8.buffer,h,g),_?(_.set(O),i._free(h),_):(_=Uint16Array.from(O),i._free(h),_))},i.Font.prototype.getGlyphIntercepts=function(h,g,_,E){var O=N(h,"HEAPU16"),U=N(g,"HEAPF32");return this._getGlyphIntercepts(O,h.length,!(h&&h._ck),U,g.length,!(g&&g._ck),_,E)},i.Font.prototype.getGlyphWidths=function(h,g,_){var E=N(h,"HEAPU16"),O=i._malloc(4*h.length);return this._getGlyphWidthBounds(E,h.length,O,je,g||null),g=new Float32Array(i.HEAPU8.buffer,O,h.length),R(E,h),_?(_.set(g),i._free(O),_):(h=Float32Array.from(g),i._free(O),h)},i.FontMgr.FromData=function(){if(!arguments.length)return null;var h=arguments;if(h.length===1&&Array.isArray(h[0])&&(h=arguments[0]),!h.length)return null;for(var g=[],_=[],E=0;Eg?(i._free(h),null):(O=new Uint16Array(i.HEAPU8.buffer,h,g),_?(_.set(O),i._free(h),_):(_=Uint16Array.from(O),i._free(h),_))},i.TextBlob.MakeOnPath=function(h,g,_,E){if(h&&h.length&&g&&g.countPoints()){if(g.countPoints()===1)return this.MakeFromText(h,_);E||(E=0);var O=_.getGlyphIDs(h);O=_.getGlyphWidths(O);var U=[];g=new i.ContourMeasureIter(g,!1,1);for(var G=g.next(),oe=new Float32Array(4),he=0;heG.length()){if(G.delete(),G=g.next(),!G){h=h.substring(0,he);break}E=pe/2}G.getPosTan(E,oe);var Oe=oe[2],C=oe[3];U.push(Oe,C,oe[0]-pe/2*Oe,oe[1]-pe/2*C),E+=pe/2}return h=this.MakeFromRSXform(h,U,_),G&&G.delete(),g.delete(),h}},i.TextBlob.MakeFromRSXform=function(h,g,_){var E=Ze(h)+1,O=i._malloc(E);return De(h,Ae,O,E),h=N(g,"HEAPF32"),_=i.TextBlob._MakeFromRSXform(O,E-1,h,_),i._free(O),_||null},i.TextBlob.MakeFromRSXformGlyphs=function(h,g,_){var E=N(h,"HEAPU16");return g=N(g,"HEAPF32"),_=i.TextBlob._MakeFromRSXformGlyphs(E,2*h.length,g,_),R(E,h),_||null},i.TextBlob.MakeFromGlyphs=function(h,g){var _=N(h,"HEAPU16");return g=i.TextBlob._MakeFromGlyphs(_,2*h.length,g),R(_,h),g||null},i.TextBlob.MakeFromText=function(h,g){var _=Ze(h)+1,E=i._malloc(_);return De(h,Ae,E,_),h=i.TextBlob._MakeFromText(E,_-1,g),i._free(E),h||null},i.MallocGlyphIDs=function(h){return i.Malloc(Uint16Array,h)}}),i.Vd=i.Vd||[],i.Vd.push(function(){i.MakePicture=function(h){h=new Uint8Array(h);var g=i._malloc(h.byteLength);return i.HEAPU8.set(h,g),(h=i._MakePicture(g,h.byteLength))?h:null}}),i.Vd=i.Vd||[],i.Vd.push(function(){i.RuntimeEffect.Make=function(h,g){return i.RuntimeEffect._Make(h,{onError:g||function(_){console.log("RuntimeEffect error",_)}})},i.RuntimeEffect.prototype.makeShader=function(h,g){var _=!h._ck,E=N(h,"HEAPF32");return g=Z(g),this._makeShader(E,4*h.length,_,g)},i.RuntimeEffect.prototype.makeShaderWithChildren=function(h,g,_){var E=!h._ck,O=N(h,"HEAPF32");_=Z(_);for(var U=[],G=0;GT||1=T||!T||(this.Ke=T,this.Qd.setStrokeWidth(T))}}),Object.defineProperty(this,"miterLimit",{enumerable:!0,get:function(){return this.Qd.getStrokeMiter()},set:function(T){0>=T||!T||this.Qd.setStrokeMiter(T)}}),Object.defineProperty(this,"shadowBlur",{enumerable:!0,get:function(){return this.we},set:function(T){0>T||!isFinite(T)||(this.we=T)}}),Object.defineProperty(this,"shadowColor",{enumerable:!0,get:function(){return g(this.Je)},set:function(T){this.Je=_(T)}}),Object.defineProperty(this,"shadowOffsetX",{enumerable:!0,get:function(){return this.xe},set:function(T){isFinite(T)&&(this.xe=T)}}),Object.defineProperty(this,"shadowOffsetY",{enumerable:!0,get:function(){return this.ye},set:function(T){isFinite(T)&&(this.ye=T)}}),Object.defineProperty(this,"strokeStyle",{enumerable:!0,get:function(){return g(this.he)},set:function(T){typeof T=="string"?this.he=_(T):T.ue&&(this.he=T)}}),this.arc=function(T,I,k,V,X,K){$(this.Sd,T,I,k,k,0,V,X,K)},this.arcTo=function(T,I,k,V,X){pe(this.Sd,T,I,k,V,X)},this.beginPath=function(){this.Sd.delete(),this.Sd=new i.Path},this.bezierCurveTo=function(T,I,k,V,X,K){var ae=this.Sd;h([T,I,k,V,X,K])&&(ae.isEmpty()&&ae.moveTo(T,I),ae.cubicTo(T,I,k,V,X,K))},this.clearRect=function(T,I,k,V){this.Qd.setStyle(i.PaintStyle.Fill),this.Qd.setBlendMode(i.BlendMode.Clear),this.Nd.drawRect(i.XYWHRect(T,I,k,V),this.Qd),this.Qd.setBlendMode(this.Pd)},this.clip=function(T,I){typeof T=="string"?(I=T,T=this.Sd):T&&T.$e&&(T=T.Wd),T||(T=this.Sd),T=T.copy(),I&&I.toLowerCase()==="evenodd"?T.setFillType(i.FillType.EvenOdd):T.setFillType(i.FillType.Winding),this.Nd.clipPath(T,i.ClipOp.Intersect,!0),T.delete()},this.closePath=function(){Oe(this.Sd)},this.createImageData=function(){if(arguments.length===1){var T=arguments[0];return new oe(new Uint8ClampedArray(4*T.width*T.height),T.width,T.height)}if(arguments.length===2){T=arguments[0];var I=arguments[1];return new oe(new Uint8ClampedArray(4*T*I),T,I)}throw"createImageData expects 1 or 2 arguments, got "+arguments.length},this.createLinearGradient=function(T,I,k,V){if(h(arguments)){var X=new he(T,I,k,V);return this.Ce.push(X),X}},this.createPattern=function(T,I){return T=new et(T,I),this.Ce.push(T),T},this.createRadialGradient=function(T,I,k,V,X,K){if(h(arguments)){var ae=new Tt(T,I,k,V,X,K);return this.Ce.push(ae),ae}},this.drawImage=function(T){T instanceof G&&(T=T.tf());var I=this.Pe();if(arguments.length===3||arguments.length===5)var k=i.XYWHRect(arguments[1],arguments[2],arguments[3]||T.width(),arguments[4]||T.height()),V=i.XYWHRect(0,0,T.width(),T.height());else if(arguments.length===9)k=i.XYWHRect(arguments[5],arguments[6],arguments[7],arguments[8]),V=i.XYWHRect(arguments[1],arguments[2],arguments[3],arguments[4]);else throw"invalid number of args for drawImage, need 3, 5, or 9; got "+arguments.length;this.Nd.drawImageRect(T,V,k,I,!1),I.dispose()},this.ellipse=function(T,I,k,V,X,K,ae,He){$(this.Sd,T,I,k,V,X,K,ae,He)},this.Pe=function(){var T=this.Qd.copy();if(T.setStyle(i.PaintStyle.Fill),y(this.be)){var I=i.multiplyByAlpha(this.be,this.ke);T.setColor(I)}else I=this.be.ue(this.Ud),T.setColor(i.Color(0,0,0,this.ke)),T.setShader(I);return T.dispose=function(){this.delete()},T},this.fill=function(T,I){if(typeof T=="string"?(I=T,T=this.Sd):T&&T.$e&&(T=T.Wd),I==="evenodd")this.Sd.setFillType(i.FillType.EvenOdd);else{if(I!=="nonzero"&&I)throw"invalid fill rule";this.Sd.setFillType(i.FillType.Winding)}T||(T=this.Sd),I=this.Pe();var k=this.ze(I);k&&(this.Nd.save(),this.se(),this.Nd.drawPath(T,k),this.Nd.restore(),k.dispose()),this.Nd.drawPath(T,I),I.dispose()},this.fillRect=function(T,I,k,V){var X=this.Pe(),K=this.ze(X);K&&(this.Nd.save(),this.se(),this.Nd.drawRect(i.XYWHRect(T,I,k,V),K),this.Nd.restore(),K.dispose()),this.Nd.drawRect(i.XYWHRect(T,I,k,V),X),X.dispose()},this.fillText=function(T,I,k){var V=this.Pe();T=i.TextBlob.MakeFromText(T,this.ne);var X=this.ze(V);X&&(this.Nd.save(),this.se(),this.Nd.drawTextBlob(T,I,k,X),this.Nd.restore(),X.dispose()),this.Nd.drawTextBlob(T,I,k,V),T.delete(),V.dispose()},this.getImageData=function(T,I,k,V){return(T=this.Nd.readPixels(T,I,{width:k,height:V,colorType:i.ColorType.RGBA_8888,alphaType:i.AlphaType.Unpremul,colorSpace:i.ColorSpace.SRGB}))?new oe(new Uint8ClampedArray(T.buffer),k,V):null},this.getLineDash=function(){return this.ve.slice()},this.nf=function(T){var I=i.Matrix.invert(this.Ud);return i.Matrix.mapPoints(I,T),T},this.isPointInPath=function(T,I,k){var V=arguments;if(V.length===3)var X=this.Sd;else if(V.length===4)X=V[0],T=V[1],I=V[2],k=V[3];else throw"invalid arg count, need 3 or 4, got "+V.length;return!isFinite(T)||!isFinite(I)||(k=k||"nonzero",k!=="nonzero"&&k!=="evenodd")?!1:(V=this.nf([T,I]),T=V[0],I=V[1],X.setFillType(k==="nonzero"?i.FillType.Winding:i.FillType.EvenOdd),X.contains(T,I))},this.isPointInStroke=function(T,I){var k=arguments;if(k.length===2)var V=this.Sd;else if(k.length===3)V=k[0],T=k[1],I=k[2];else throw"invalid arg count, need 2 or 3, got "+k.length;return!isFinite(T)||!isFinite(I)?!1:(k=this.nf([T,I]),T=k[0],I=k[1],V=V.copy(),V.setFillType(i.FillType.Winding),V.stroke({width:this.lineWidth,miter_limit:this.miterLimit,cap:this.Qd.getStrokeCap(),join:this.Qd.getStrokeJoin(),precision:.3}),k=V.contains(T,I),V.delete(),k)},this.lineTo=function(T,I){be(this.Sd,T,I)},this.measureText=function(T){T=this.ne.getGlyphIDs(T),T=this.ne.getGlyphWidths(T);let I=0;for(let k of T)I+=k;return{width:I}},this.moveTo=function(T,I){var k=this.Sd;h([T,I])&&k.moveTo(T,I)},this.putImageData=function(T,I,k,V,X,K,ae){if(h([I,k,V,X,K,ae])){if(V===void 0)this.Nd.writePixels(T.data,T.width,T.height,I,k);else if(V=V||0,X=X||0,K=K||T.width,ae=ae||T.height,0>K&&(V+=K,K=Math.abs(K)),0>ae&&(X+=ae,ae=Math.abs(ae)),0>V&&(K+=V,V=0),0>X&&(ae+=X,X=0),!(0>=K||0>=ae)){T=i.MakeImage({width:T.width,height:T.height,alphaType:i.AlphaType.Unpremul,colorType:i.ColorType.RGBA_8888,colorSpace:i.ColorSpace.SRGB},T.data,4*T.width);var He=i.XYWHRect(V,X,K,ae);I=i.XYWHRect(I+V,k+X,K,ae),k=i.Matrix.invert(this.Ud),this.Nd.save(),this.Nd.concat(k),this.Nd.drawImageRect(T,He,I,null,!1),this.Nd.restore(),T.delete()}}},this.quadraticCurveTo=function(T,I,k,V){var X=this.Sd;h([T,I,k,V])&&(X.isEmpty()&&X.moveTo(T,I),X.quadTo(T,I,k,V))},this.rect=function(T,I,k,V){var X=this.Sd;T=i.XYWHRect(T,I,k,V),h(T)&&X.addRect(T)},this.resetTransform=function(){this.Sd.transform(this.Ud);var T=i.Matrix.invert(this.Ud);this.Nd.concat(T),this.Ud=this.Nd.getTotalMatrix()},this.restore=function(){var T=this.mf.pop();if(T){var I=i.Matrix.multiply(this.Ud,i.Matrix.invert(T.Gf));this.Sd.transform(I),this.Qd.delete(),this.Qd=T.$f,this.ve=T.Yf,this.Ke=T.mg,this.he=T.lg,this.be=T.fs,this.xe=T.jg,this.ye=T.kg,this.we=T.dg,this.Je=T.ig,this.ke=T.Nf,this.Pd=T.Of,this.Ie=T.Zf,this.Qe=T.Mf,this.Nd.restore(),this.Ud=this.Nd.getTotalMatrix()}},this.rotate=function(T){if(isFinite(T)){var I=i.Matrix.rotated(-T);this.Sd.transform(I),this.Nd.rotate(T/Math.PI*180,0,0),this.Ud=this.Nd.getTotalMatrix()}},this.save=function(){if(this.be.te){var T=this.be.te();this.Ce.push(T)}else T=this.be;if(this.he.te){var I=this.he.te();this.Ce.push(I)}else I=this.he;this.mf.push({Gf:this.Ud.slice(),Yf:this.ve.slice(),mg:this.Ke,lg:I,fs:T,jg:this.xe,kg:this.ye,dg:this.we,ig:this.Je,Nf:this.ke,Zf:this.Ie,Of:this.Pd,$f:this.Qd.copy(),Mf:this.Qe}),this.Nd.save()},this.scale=function(T,I){if(h(arguments)){var k=i.Matrix.scaled(1/T,1/I);this.Sd.transform(k),this.Nd.scale(T,I),this.Ud=this.Nd.getTotalMatrix()}},this.setLineDash=function(T){for(var I=0;IT[I])return;T.length%2===1&&Array.prototype.push.apply(T,T),this.ve=T},this.setTransform=function(T,I,k,V,X,K){h(arguments)&&(this.resetTransform(),this.transform(T,I,k,V,X,K))},this.se=function(){var T=i.Matrix.invert(this.Ud);this.Nd.concat(T),this.Nd.concat(i.Matrix.translated(this.xe,this.ye)),this.Nd.concat(this.Ud)},this.ze=function(T){var I=i.multiplyByAlpha(this.Je,this.ke);if(!i.getColorComponents(I)[3]||!(this.we||this.ye||this.xe))return null;T=T.copy(),T.setColor(I);var k=i.MaskFilter.MakeBlur(i.BlurStyle.Normal,this.we/2,!1);return T.setMaskFilter(k),T.dispose=function(){k.delete(),this.delete()},T},this.bf=function(){var T=this.Qd.copy();if(T.setStyle(i.PaintStyle.Stroke),y(this.he)){var I=i.multiplyByAlpha(this.he,this.ke);T.setColor(I)}else I=this.he.ue(this.Ud),T.setColor(i.Color(0,0,0,this.ke)),T.setShader(I);if(T.setStrokeWidth(this.Ke),this.ve.length){var k=i.PathEffect.MakeDash(this.ve,this.Ie);T.setPathEffect(k)}return T.dispose=function(){k&&k.delete(),this.delete()},T},this.stroke=function(T){T=T?T.Wd:this.Sd;var I=this.bf(),k=this.ze(I);k&&(this.Nd.save(),this.se(),this.Nd.drawPath(T,k),this.Nd.restore(),k.dispose()),this.Nd.drawPath(T,I),I.dispose()},this.strokeRect=function(T,I,k,V){var X=this.bf(),K=this.ze(X);K&&(this.Nd.save(),this.se(),this.Nd.drawRect(i.XYWHRect(T,I,k,V),K),this.Nd.restore(),K.dispose()),this.Nd.drawRect(i.XYWHRect(T,I,k,V),X),X.dispose()},this.strokeText=function(T,I,k){var V=this.bf();T=i.TextBlob.MakeFromText(T,this.ne);var X=this.ze(V);X&&(this.Nd.save(),this.se(),this.Nd.drawTextBlob(T,I,k,X),this.Nd.restore(),X.dispose()),this.Nd.drawTextBlob(T,I,k,V),T.delete(),V.dispose()},this.translate=function(T,I){if(h(arguments)){var k=i.Matrix.translated(-T,-I);this.Sd.transform(k),this.Nd.translate(T,I),this.Ud=this.Nd.getTotalMatrix()}},this.transform=function(T,I,k,V,X,K){T=[T,k,X,I,V,K,0,0,1],I=i.Matrix.invert(T),this.Sd.transform(I),this.Nd.concat(T),this.Ud=this.Nd.getTotalMatrix()},this.addHitRegion=function(){},this.clearHitRegions=function(){},this.drawFocusIfNeeded=function(){},this.removeHitRegion=function(){},this.scrollPathIntoView=function(){},Object.defineProperty(this,"canvas",{value:null,writable:!1})}function U(Y){this.cf=Y,this.Md=new O(Y.getCanvas()),this.Re=[],this.decodeImage=function(T){if(T=i.MakeImageFromEncoded(T),!T)throw"Invalid input";return this.Re.push(T),new G(T)},this.loadFont=function(T,I){if(T=i.Typeface.MakeFreeTypeFaceFromData(T),!T)return null;this.Re.push(T);var k=(I.style||"normal")+"|"+(I.variant||"normal")+"|"+(I.weight||"normal");I=I.family,$e[I]||($e[I]={"*":T}),$e[I][k]=T},this.makePath2D=function(T){return T=new Fe(T),this.Re.push(T.Wd),T},this.getContext=function(T){return T==="2d"?this.Md:null},this.toDataURL=function(T,I){this.cf.flush();var k=this.cf.makeImageSnapshot();if(k){T=T||"image/png";var V=i.ImageFormat.PNG;if(T==="image/jpeg"&&(V=i.ImageFormat.JPEG),I=k.encodeToBytes(V,I||.92)){if(k.delete(),T="data:"+T+";base64,",typeof Buffer<"u")I=Buffer.from(I).toString("base64");else{k=0,V=I.length;for(var X="",K;kV||1V);K++);this.ae.splice(K,0,V),this.de.splice(K,0,X)}},this.te=function(){var V=new he(Y,T,I,k);return V.de=this.de.slice(),V.ae=this.ae.slice(),V},this.me=function(){this.Yd&&(this.Yd.delete(),this.Yd=null)},this.ue=function(V){var X=[Y,T,I,k];i.Matrix.mapPoints(V,X),V=X[0];var K=X[1],ae=X[2];return X=X[3],this.me(),this.Yd=i.Shader.MakeLinearGradient([V,K],[ae,X],this.de,this.ae,i.TileMode.Clamp)}}function pe(Y,T,I,k,V,X){if(h([T,I,k,V,X])){if(0>X)throw"radii cannot be negative";Y.isEmpty()&&Y.moveTo(T,I),Y.arcToTangent(T,I,k,V,X)}}function Oe(Y){if(!Y.isEmpty()){var T=Y.getBounds();(T[3]-T[1]||T[2]-T[0])&&Y.close()}}function C(Y,T,I,k,V,X,K){K=(K-X)/Math.PI*180,X=X/Math.PI*180,T=i.LTRBRect(T-k,I-V,T+k,I+V),1e-5>Math.abs(Math.abs(K)-360)?(I=K/2,Y.arcToOval(T,X,I,!1),Y.arcToOval(T,X+I,I,!1)):Y.arcToOval(T,X,K,!1)}function $(Y,T,I,k,V,X,K,ae,He){if(h([T,I,k,V,X,K,ae])){if(0>k||0>V)throw"radii cannot be negative";var ze=2*Math.PI,tr=K%ze;0>tr&&(tr+=ze);var ko=tr-K;K=tr,ae+=ko,!He&&ae-K>=ze?ae=K+ze:He&&K-ae>=ze?ae=K-ze:!He&&K>ae?ae=K+(ze-(K-ae)%ze):He&&KK||1K);He++);this.ae.splice(He,0,K),this.de.splice(He,0,ae)}},this.te=function(){var K=new Tt(Y,T,I,k,V,X);return K.de=this.de.slice(),K.ae=this.ae.slice(),K},this.me=function(){this.Yd&&(this.Yd.delete(),this.Yd=null)},this.ue=function(K){var ae=[Y,T,k,V];i.Matrix.mapPoints(K,ae);var He=ae[0],ze=ae[1],tr=ae[2];ae=ae[3];var ko=(Math.abs(K[0])+Math.abs(K[4]))/2;return K=I*ko,ko*=X,this.me(),this.Yd=i.Shader.MakeTwoPointConicalGradient([He,ze],K,[tr,ae],ko,this.de,this.ae,i.TileMode.Clamp)}}i._testing={};var Dt={aliceblue:Float32Array.of(.941,.973,1,1),antiquewhite:Float32Array.of(.98,.922,.843,1),aqua:Float32Array.of(0,1,1,1),aquamarine:Float32Array.of(.498,1,.831,1),azure:Float32Array.of(.941,1,1,1),beige:Float32Array.of(.961,.961,.863,1),bisque:Float32Array.of(1,.894,.769,1),black:Float32Array.of(0,0,0,1),blanchedalmond:Float32Array.of(1,.922,.804,1),blue:Float32Array.of(0,0,1,1),blueviolet:Float32Array.of(.541,.169,.886,1),brown:Float32Array.of(.647,.165,.165,1),burlywood:Float32Array.of(.871,.722,.529,1),cadetblue:Float32Array.of(.373,.62,.627,1),chartreuse:Float32Array.of(.498,1,0,1),chocolate:Float32Array.of(.824,.412,.118,1),coral:Float32Array.of(1,.498,.314,1),cornflowerblue:Float32Array.of(.392,.584,.929,1),cornsilk:Float32Array.of(1,.973,.863,1),crimson:Float32Array.of(.863,.078,.235,1),cyan:Float32Array.of(0,1,1,1),darkblue:Float32Array.of(0,0,.545,1),darkcyan:Float32Array.of(0,.545,.545,1),darkgoldenrod:Float32Array.of(.722,.525,.043,1),darkgray:Float32Array.of(.663,.663,.663,1),darkgreen:Float32Array.of(0,.392,0,1),darkgrey:Float32Array.of(.663,.663,.663,1),darkkhaki:Float32Array.of(.741,.718,.42,1),darkmagenta:Float32Array.of(.545,0,.545,1),darkolivegreen:Float32Array.of(.333,.42,.184,1),darkorange:Float32Array.of(1,.549,0,1),darkorchid:Float32Array.of(.6,.196,.8,1),darkred:Float32Array.of(.545,0,0,1),darksalmon:Float32Array.of(.914,.588,.478,1),darkseagreen:Float32Array.of(.561,.737,.561,1),darkslateblue:Float32Array.of(.282,.239,.545,1),darkslategray:Float32Array.of(.184,.31,.31,1),darkslategrey:Float32Array.of(.184,.31,.31,1),darkturquoise:Float32Array.of(0,.808,.82,1),darkviolet:Float32Array.of(.58,0,.827,1),deeppink:Float32Array.of(1,.078,.576,1),deepskyblue:Float32Array.of(0,.749,1,1),dimgray:Float32Array.of(.412,.412,.412,1),dimgrey:Float32Array.of(.412,.412,.412,1),dodgerblue:Float32Array.of(.118,.565,1,1),firebrick:Float32Array.of(.698,.133,.133,1),floralwhite:Float32Array.of(1,.98,.941,1),forestgreen:Float32Array.of(.133,.545,.133,1),fuchsia:Float32Array.of(1,0,1,1),gainsboro:Float32Array.of(.863,.863,.863,1),ghostwhite:Float32Array.of(.973,.973,1,1),gold:Float32Array.of(1,.843,0,1),goldenrod:Float32Array.of(.855,.647,.125,1),gray:Float32Array.of(.502,.502,.502,1),green:Float32Array.of(0,.502,0,1),greenyellow:Float32Array.of(.678,1,.184,1),grey:Float32Array.of(.502,.502,.502,1),honeydew:Float32Array.of(.941,1,.941,1),hotpink:Float32Array.of(1,.412,.706,1),indianred:Float32Array.of(.804,.361,.361,1),indigo:Float32Array.of(.294,0,.51,1),ivory:Float32Array.of(1,1,.941,1),khaki:Float32Array.of(.941,.902,.549,1),lavender:Float32Array.of(.902,.902,.98,1),lavenderblush:Float32Array.of(1,.941,.961,1),lawngreen:Float32Array.of(.486,.988,0,1),lemonchiffon:Float32Array.of(1,.98,.804,1),lightblue:Float32Array.of(.678,.847,.902,1),lightcoral:Float32Array.of(.941,.502,.502,1),lightcyan:Float32Array.of(.878,1,1,1),lightgoldenrodyellow:Float32Array.of(.98,.98,.824,1),lightgray:Float32Array.of(.827,.827,.827,1),lightgreen:Float32Array.of(.565,.933,.565,1),lightgrey:Float32Array.of(.827,.827,.827,1),lightpink:Float32Array.of(1,.714,.757,1),lightsalmon:Float32Array.of(1,.627,.478,1),lightseagreen:Float32Array.of(.125,.698,.667,1),lightskyblue:Float32Array.of(.529,.808,.98,1),lightslategray:Float32Array.of(.467,.533,.6,1),lightslategrey:Float32Array.of(.467,.533,.6,1),lightsteelblue:Float32Array.of(.69,.769,.871,1),lightyellow:Float32Array.of(1,1,.878,1),lime:Float32Array.of(0,1,0,1),limegreen:Float32Array.of(.196,.804,.196,1),linen:Float32Array.of(.98,.941,.902,1),magenta:Float32Array.of(1,0,1,1),maroon:Float32Array.of(.502,0,0,1),mediumaquamarine:Float32Array.of(.4,.804,.667,1),mediumblue:Float32Array.of(0,0,.804,1),mediumorchid:Float32Array.of(.729,.333,.827,1),mediumpurple:Float32Array.of(.576,.439,.859,1),mediumseagreen:Float32Array.of(.235,.702,.443,1),mediumslateblue:Float32Array.of(.482,.408,.933,1),mediumspringgreen:Float32Array.of(0,.98,.604,1),mediumturquoise:Float32Array.of(.282,.82,.8,1),mediumvioletred:Float32Array.of(.78,.082,.522,1),midnightblue:Float32Array.of(.098,.098,.439,1),mintcream:Float32Array.of(.961,1,.98,1),mistyrose:Float32Array.of(1,.894,.882,1),moccasin:Float32Array.of(1,.894,.71,1),navajowhite:Float32Array.of(1,.871,.678,1),navy:Float32Array.of(0,0,.502,1),oldlace:Float32Array.of(.992,.961,.902,1),olive:Float32Array.of(.502,.502,0,1),olivedrab:Float32Array.of(.42,.557,.137,1),orange:Float32Array.of(1,.647,0,1),orangered:Float32Array.of(1,.271,0,1),orchid:Float32Array.of(.855,.439,.839,1),palegoldenrod:Float32Array.of(.933,.91,.667,1),palegreen:Float32Array.of(.596,.984,.596,1),paleturquoise:Float32Array.of(.686,.933,.933,1),palevioletred:Float32Array.of(.859,.439,.576,1),papayawhip:Float32Array.of(1,.937,.835,1),peachpuff:Float32Array.of(1,.855,.725,1),peru:Float32Array.of(.804,.522,.247,1),pink:Float32Array.of(1,.753,.796,1),plum:Float32Array.of(.867,.627,.867,1),powderblue:Float32Array.of(.69,.878,.902,1),purple:Float32Array.of(.502,0,.502,1),rebeccapurple:Float32Array.of(.4,.2,.6,1),red:Float32Array.of(1,0,0,1),rosybrown:Float32Array.of(.737,.561,.561,1),royalblue:Float32Array.of(.255,.412,.882,1),saddlebrown:Float32Array.of(.545,.271,.075,1),salmon:Float32Array.of(.98,.502,.447,1),sandybrown:Float32Array.of(.957,.643,.376,1),seagreen:Float32Array.of(.18,.545,.341,1),seashell:Float32Array.of(1,.961,.933,1),sienna:Float32Array.of(.627,.322,.176,1),silver:Float32Array.of(.753,.753,.753,1),skyblue:Float32Array.of(.529,.808,.922,1),slateblue:Float32Array.of(.416,.353,.804,1),slategray:Float32Array.of(.439,.502,.565,1),slategrey:Float32Array.of(.439,.502,.565,1),snow:Float32Array.of(1,.98,.98,1),springgreen:Float32Array.of(0,1,.498,1),steelblue:Float32Array.of(.275,.51,.706,1),tan:Float32Array.of(.824,.706,.549,1),teal:Float32Array.of(0,.502,.502,1),thistle:Float32Array.of(.847,.749,.847,1),tomato:Float32Array.of(1,.388,.278,1),transparent:Float32Array.of(0,0,0,0),turquoise:Float32Array.of(.251,.878,.816,1),violet:Float32Array.of(.933,.51,.933,1),wheat:Float32Array.of(.961,.871,.702,1),white:Float32Array.of(1,1,1,1),whitesmoke:Float32Array.of(.961,.961,.961,1),yellow:Float32Array.of(1,1,0,1),yellowgreen:Float32Array.of(.604,.804,.196,1)};i._testing.parseColor=_,i._testing.colorToString=g;var Ht=RegExp("(italic|oblique|normal|)\\s*(small-caps|normal|)\\s*(bold|bolder|lighter|[1-9]00|normal|)\\s*([\\d\\.]+)(px|pt|pc|in|cm|mm|%|em|ex|ch|rem|q)(.+)"),$e={"Noto Mono":{"*":null},monospace:{"*":null}};i._testing.parseFontString=E,i.MakeCanvas=function(Y,T){return(Y=i.MakeSurface(Y,T))?new U(Y):null},i.ImageData=function(){if(arguments.length===2){var Y=arguments[0],T=arguments[1];return new oe(new Uint8ClampedArray(4*Y*T),Y,T)}if(arguments.length===3){var I=arguments[0];if(I.prototype.constructor!==Uint8ClampedArray)throw"bytes must be given as a Uint8ClampedArray";if(Y=arguments[1],T=arguments[2],I%4)throw"bytes must be given in a multiple of 4";if(I%Y)throw"bytes must divide evenly by width";if(T&&T!==I/(4*Y))throw"invalid height given";return new oe(I,Y,I/(4*Y))}throw"invalid number of arguments - takes 2 or 3, saw "+arguments.length}}()}(o);var l=Object.assign({},o),m="./this.program",v=(i,u)=>{throw u},w=typeof window=="object",M=typeof importScripts=="function",P=typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node=="string",j="",H,z,Q,J,ne,ee;P?(j=M?Rs("path").dirname(j)+"/":__dirname+"/",ee=()=>{ne||(J=Rs("fs"),ne=Rs("path"))},H=function(i,u){return ee(),i=ne.normalize(i),J.readFileSync(i,u?void 0:"utf8")},Q=i=>(i=H(i,!0),i.buffer||(i=new Uint8Array(i)),i),z=(i,u,p)=>{ee(),i=ne.normalize(i),J.readFile(i,function(y,S){y?p(y):u(S.buffer)})},1{if(Ie)throw process.exitCode=i,u;u instanceof ru||re("exiting due to exception: "+u),process.exit(i)},o.inspect=function(){return"[Emscripten Module object]"}):(w||M)&&(M?j=self.location.href:typeof document<"u"&&document.currentScript&&(j=document.currentScript.src),t&&(j=t),j.indexOf("blob:")!==0?j=j.substr(0,j.replace(/[?#].*/,"").lastIndexOf("/")+1):j="",H=i=>{var u=new XMLHttpRequest;return u.open("GET",i,!1),u.send(null),u.responseText},M&&(Q=i=>{var u=new XMLHttpRequest;return u.open("GET",i,!1),u.responseType="arraybuffer",u.send(null),new Uint8Array(u.response)}),z=(i,u,p)=>{var y=new XMLHttpRequest;y.open("GET",i,!0),y.responseType="arraybuffer",y.onload=()=>{y.status==200||y.status==0&&y.response?u(y.response):p()},y.onerror=p,y.send(null)});var ce=o.print||console.log.bind(console),re=o.printErr||console.warn.bind(console);Object.assign(o,l),l=null,o.thisProgram&&(m=o.thisProgram),o.quit&&(v=o.quit);var me=0,ye;o.wasmBinary&&(ye=o.wasmBinary);var Ie=o.noExitRuntime||!0;typeof WebAssembly!="object"&&Ao("no native wasm support detected");var Ue,ot=!1,le=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function _e(i,u,p){var y=u+p;for(p=u;i[p]&&!(p>=y);)++p;if(16S?y+=String.fromCharCode(S):(S-=65536,y+=String.fromCharCode(55296|S>>10,56320|S&1023))}}else y+=String.fromCharCode(S)}return y}function ue(i,u){return i?_e(Ae,i,u):""}function De(i,u,p,y){if(!(0=D){var A=i.charCodeAt(++x);D=65536+((D&1023)<<10)|A&1023}if(127>=D){if(p>=y)break;u[p++]=D}else{if(2047>=D){if(p+1>=y)break;u[p++]=192|D>>6}else{if(65535>=D){if(p+2>=y)break;u[p++]=224|D>>12}else{if(p+3>=y)break;u[p++]=240|D>>18,u[p++]=128|D>>12&63}u[p++]=128|D>>6&63}u[p++]=128|D&63}}return u[p]=0,p-S}function Ze(i){for(var u=0,p=0;p=y&&(y=65536+((y&1023)<<10)|i.charCodeAt(++p)&1023),127>=y?++u:u=2047>=y?u+2:65535>=y?u+3:u+4}return u}var ht=typeof TextDecoder<"u"?new TextDecoder("utf-16le"):void 0;function Mt(i,u){for(var p=i>>1,y=p+u/2;!(p>=y)&&jt[p];)++p;if(p<<=1,32=u/2);++y){var S=Bt[i+2*y>>1];if(S==0)break;p+=String.fromCharCode(S)}return p}function nt(i,u,p){if(p===void 0&&(p=2147483647),2>p)return 0;p-=2;var y=u;p=p<2*i.length?p/2:i.length;for(var S=0;S>1]=i.charCodeAt(S),u+=2;return Bt[u>>1]=0,u-y}function kr(i){return 2*i.length}function xn(i,u){for(var p=0,y="";!(p>=u/4);){var S=te[i+4*p>>2];if(S==0)break;++p,65536<=S?(S-=65536,y+=String.fromCharCode(55296|S>>10,56320|S&1023)):y+=String.fromCharCode(S)}return y}function Kt(i,u,p){if(p===void 0&&(p=2147483647),4>p)return 0;var y=u;p=y+p-4;for(var S=0;S=x){var D=i.charCodeAt(++S);x=65536+((x&1023)<<10)|D&1023}if(te[u>>2]=x,u+=4,u+4>p)break}return te[u>>2]=0,u-y}function ns(i){for(var u=0,p=0;p=y&&++p,u+=4}return u}var bo,mt,Ae,Bt,jt,te,Le,de,So;function An(){var i=Ue.buffer;bo=i,o.HEAP8=mt=new Int8Array(i),o.HEAP16=Bt=new Int16Array(i),o.HEAP32=te=new Int32Array(i),o.HEAPU8=Ae=new Uint8Array(i),o.HEAPU16=jt=new Uint16Array(i),o.HEAPU32=Le=new Uint32Array(i),o.HEAPF32=de=new Float32Array(i),o.HEAPF64=So=new Float64Array(i)}var To,Eo=[],wo=[],Al=[];function Pd(){var i=o.preRun.shift();Eo.unshift(i)}var xr=0,is=null,xo=null;function Ao(i){throw o.onAbort&&o.onAbort(i),i="Aborted("+i+")",re(i),ot=!0,i=new WebAssembly.RuntimeError(i+". Build with -sASSERTIONS for more info."),s(i),i}function Ml(){return It.startsWith("data:application/octet-stream;base64,")}var It;if(It="canvaskit.wasm",!Ml()){var jl=It;It=o.locateFile?o.locateFile(jl,j):j+jl}function Il(){var i=It;try{if(i==It&&ye)return new Uint8Array(ye);if(Q)return Q(i);throw"both async and sync fetching of the wasm failed"}catch(u){Ao(u)}}function Dd(){if(!ye&&(w||M)){if(typeof fetch=="function"&&!It.startsWith("file://"))return fetch(It,{credentials:"same-origin"}).then(function(i){if(!i.ok)throw"failed to load wasm binary file at '"+It+"'";return i.arrayBuffer()}).catch(function(){return Il()});if(z)return new Promise(function(i,u){z(It,function(p){i(new Uint8Array(p))},u)})}return Promise.resolve().then(function(){return Il()})}function ss(i){for(;0>2])}var Wr={},Ar={},jn={};function Rl(i){if(i===void 0)return"_unknown";i=i.replace(/[^a-zA-Z0-9_]/g,"$");var u=i.charCodeAt(0);return 48<=u&&57>=u?"_"+i:i}function ls(i,u){return i=Rl(i),function(){return u.apply(this,arguments)}}function us(i){var u=Error,p=ls(i,function(y){this.name=i,this.message=y,y=Error(y).stack,y!==void 0&&(this.stack=this.toString()+` +`+y.replace(/^Error(:[^\n]*)?\n/,""))});return p.prototype=Object.create(u.prototype),p.prototype.constructor=p,p.prototype.toString=function(){return this.message===void 0?this.name:this.name+": "+this.message},p}var Cl=void 0;function In(i){throw new Cl(i)}function Ut(i,u,p){function y(A){A=p(A),A.length!==i.length&&In("Mismatched type converter count");for(var R=0;R{Ar.hasOwnProperty(A)?S[R]=Ar[A]:(x.push(A),Wr.hasOwnProperty(A)||(Wr[A]=[]),Wr[A].push(()=>{S[R]=Ar[A],++D,D===x.length&&y(S)}))}),x.length===0&&y(S)}function Rn(i){switch(i){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError("Unknown type size: "+i)}}var Ol=void 0;function Ye(i){for(var u="";Ae[i];)u+=Ol[Ae[i++]];return u}var Hr=void 0;function Pe(i){throw new Hr(i)}function Yt(i,u,p={}){if(!("argPackAdvance"in u))throw new TypeError("registerType registeredInstance requires argPackAdvance");var y=u.name;if(i||Pe('type "'+y+'" must have a positive integer typeid pointer'),Ar.hasOwnProperty(i)){if(p.Vf)return;Pe("Cannot register type '"+y+"' twice")}Ar[i]=u,delete jn[i],Wr.hasOwnProperty(i)&&(u=Wr[i],delete Wr[i],u.forEach(S=>S()))}function gs(i){Pe(i.Ld.Xd.Rd.name+" instance already deleted")}var cs=!1;function Pl(){}function Dl(i){--i.count.value,i.count.value===0&&(i.$d?i.fe.le(i.$d):i.Xd.Rd.le(i.Td))}function Nl(i,u,p){return u===p?i:p.ie===void 0?null:(i=Nl(i,u,p.ie),i===null?null:p.Jf(i))}var Ll={},jo=[];function ps(){for(;jo.length;){var i=jo.pop();i.Ld.Fe=!1,i.delete()}}var Io=void 0,Ro={};function Nd(i,u){for(u===void 0&&Pe("ptr should not be undefined");i.ie;)u=i.Oe(u),i=i.ie;return Ro[u]}function Cn(i,u){return u.Xd&&u.Td||In("makeClassHandle requires ptr and ptrType"),!!u.fe!=!!u.$d&&In("Both smartPtrType and smartPtr must be specified"),u.count={value:1},Co(Object.create(i,{Ld:{value:u}}))}function Co(i){return typeof FinalizationRegistry>"u"?(Co=u=>u,i):(cs=new FinalizationRegistry(u=>{Dl(u.Ld)}),Co=u=>{var p=u.Ld;return p.$d&&cs.register(u,{Ld:p},u),u},Pl=u=>{cs.unregister(u)},Co(i))}function fr(){}function fs(i,u,p){if(i[u].Zd===void 0){var y=i[u];i[u]=function(){return i[u].Zd.hasOwnProperty(arguments.length)||Pe("Function '"+p+"' called with an invalid number of arguments ("+arguments.length+") - expects one of ("+i[u].Zd+")!"),i[u].Zd[arguments.length].apply(this,arguments)},i[u].Zd=[],i[u].Zd[y.De]=y}}function ds(i,u,p){o.hasOwnProperty(i)?((p===void 0||o[i].Zd!==void 0&&o[i].Zd[p]!==void 0)&&Pe("Cannot register public name '"+i+"' twice"),fs(o,i,i),o.hasOwnProperty(p)&&Pe("Cannot register multiple overloads of a function with the same number of arguments ("+p+")!"),o[i].Zd[p]=u):(o[i]=u,p!==void 0&&(o[i].tg=p))}function Ld(i,u,p,y,S,x,D,A){this.name=i,this.constructor=u,this.Ge=p,this.le=y,this.ie=S,this.Pf=x,this.Oe=D,this.Jf=A,this.bg=[]}function hs(i,u,p){for(;u!==p;)u.Oe||Pe("Expected null or instance of "+p.name+", got an instance of "+u.name),i=u.Oe(i),u=u.ie;return i}function Bd(i,u){return u===null?(this.ff&&Pe("null is not a valid "+this.name),0):(u.Ld||Pe('Cannot pass "'+_s(u)+'" as a '+this.name),u.Ld.Td||Pe("Cannot pass deleted object as a pointer of type "+this.name),hs(u.Ld.Td,u.Ld.Xd.Rd,this.Rd))}function Ud(i,u){if(u===null){if(this.ff&&Pe("null is not a valid "+this.name),this.Ue){var p=this.gf();return i!==null&&i.push(this.le,p),p}return 0}if(u.Ld||Pe('Cannot pass "'+_s(u)+'" as a '+this.name),u.Ld.Td||Pe("Cannot pass deleted object as a pointer of type "+this.name),!this.Te&&u.Ld.Xd.Te&&Pe("Cannot convert argument of type "+(u.Ld.fe?u.Ld.fe.name:u.Ld.Xd.name)+" to parameter type "+this.name),p=hs(u.Ld.Td,u.Ld.Xd.Rd,this.Rd),this.Ue)switch(u.Ld.$d===void 0&&Pe("Passing raw pointer to smart pointer is illegal"),this.hg){case 0:u.Ld.fe===this?p=u.Ld.$d:Pe("Cannot convert argument of type "+(u.Ld.fe?u.Ld.fe.name:u.Ld.Xd.name)+" to parameter type "+this.name);break;case 1:p=u.Ld.$d;break;case 2:if(u.Ld.fe===this)p=u.Ld.$d;else{var y=u.clone();p=this.cg(p,Ct(function(){y.delete()})),i!==null&&i.push(this.le,p)}break;default:Pe("Unsupporting sharing policy")}return p}function Fd(i,u){return u===null?(this.ff&&Pe("null is not a valid "+this.name),0):(u.Ld||Pe('Cannot pass "'+_s(u)+'" as a '+this.name),u.Ld.Td||Pe("Cannot pass deleted object as a pointer of type "+this.name),u.Ld.Xd.Te&&Pe("Cannot convert argument of type "+u.Ld.Xd.name+" to parameter type "+this.name),hs(u.Ld.Td,u.Ld.Xd.Rd,this.Rd))}function Jt(i,u,p,y,S,x,D,A,R,N,q){this.name=i,this.Rd=u,this.ff=p,this.Te=y,this.Ue=S,this.ag=x,this.hg=D,this.vf=A,this.gf=R,this.cg=N,this.le=q,S||u.ie!==void 0?this.toWireType=Ud:(this.toWireType=y?Bd:Fd,this.ee=null)}function Bl(i,u,p){o.hasOwnProperty(i)||In("Replacing nonexistant public symbol"),o[i].Zd!==void 0&&p!==void 0?o[i].Zd[p]=u:(o[i]=u,o[i].De=p)}function kd(i,u){var p=[];return function(){if(p.length=0,Object.assign(p,arguments),i.includes("j")){var y=o["dynCall_"+i];y=p&&p.length?y.apply(null,[u].concat(p)):y.call(null,u)}else y=it(u).apply(null,p);return y}}function lt(i,u){i=Ye(i);var p=i.includes("j")?kd(i,u):it(u);return typeof p!="function"&&Pe("unknown function pointer with signature "+i+": "+u),p}var Ul=void 0;function Fl(i){i=tu(i);var u=Ye(i);return ir(i),u}function Oo(i,u){function p(x){S[x]||Ar[x]||(jn[x]?jn[x].forEach(p):(y.push(x),S[x]=!0))}var y=[],S={};throw u.forEach(p),new Ul(i+": "+y.map(Fl).join([", "]))}function On(i,u,p,y,S){var x=u.length;2>x&&Pe("argTypes array size mismatch! Must at least get return value and 'this' types!");var D=u[1]!==null&&p!==null,A=!1;for(p=1;p>2]);return p}var ms=[],Ft=[{},{value:void 0},{value:null},{value:!0},{value:!1}];function ys(i){4(i||Pe("Cannot use deleted val. handle = "+i),Ft[i].value),Ct=i=>{switch(i){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:var u=ms.length?ms.pop():Ft.length;return Ft[u]={hf:1,value:i},u}};function Wd(i,u,p){switch(u){case 0:return function(y){return this.fromWireType((p?mt:Ae)[y])};case 1:return function(y){return this.fromWireType((p?Bt:jt)[y>>1])};case 2:return function(y){return this.fromWireType((p?te:Le)[y>>2])};default:throw new TypeError("Unknown integer type: "+i)}}function Po(i,u){var p=Ar[i];return p===void 0&&Pe(u+" has unknown type "+Fl(i)),p}function _s(i){if(i===null)return"null";var u=typeof i;return u==="object"||u==="array"||u==="function"?i.toString():""+i}function Hd(i,u){switch(u){case 2:return function(p){return this.fromWireType(de[p>>2])};case 3:return function(p){return this.fromWireType(So[p>>3])};default:throw new TypeError("Unknown float type: "+i)}}function zd(i,u,p){switch(u){case 0:return p?function(y){return mt[y]}:function(y){return Ae[y]};case 1:return p?function(y){return Bt[y>>1]}:function(y){return jt[y>>1]};case 2:return p?function(y){return te[y>>2]}:function(y){return Le[y>>2]};default:throw new TypeError("Unknown integer type: "+i)}}var Vd={};function Dn(i){var u=Vd[i];return u===void 0?Ye(i):u}var Nn=[];function kl(){function i(u){u.$$$embind_global$$$=u;var p=typeof $$$embind_global$$$=="object"&&u.$$$embind_global$$$==u;return p||delete u.$$$embind_global$$$,p}if(typeof globalThis=="object")return globalThis;if(typeof $$$embind_global$$$=="object"||(typeof global=="object"&&i(global)?$$$embind_global$$$=global:typeof self=="object"&&i(self)&&($$$embind_global$$$=self),typeof $$$embind_global$$$=="object"))return $$$embind_global$$$;throw Error("unable to get global object.")}function Gd(i){var u=Nn.length;return Nn.push(i),u}function $d(i,u){for(var p=Array(i),y=0;y>2],"parameter "+y);return p}var Wl=[];function qd(i){var u=Array(i+1);return function(p,y,S){u[0]=p;for(var x=0;x>2],"parameter "+x);u[x+1]=D.readValueFromPointer(S),S+=D.argPackAdvance}return p=new(p.bind.apply(p,u)),Ct(p)}}var Hl={},zl;zl=P?()=>{var i=process.hrtime();return 1e3*i[0]+i[1]/1e6}:()=>performance.now();function Xd(i){var u=i.getExtension("ANGLE_instanced_arrays");u&&(i.vertexAttribDivisor=function(p,y){u.vertexAttribDivisorANGLE(p,y)},i.drawArraysInstanced=function(p,y,S,x){u.drawArraysInstancedANGLE(p,y,S,x)},i.drawElementsInstanced=function(p,y,S,x,D){u.drawElementsInstancedANGLE(p,y,S,x,D)})}function Zd(i){var u=i.getExtension("OES_vertex_array_object");u&&(i.createVertexArray=function(){return u.createVertexArrayOES()},i.deleteVertexArray=function(p){u.deleteVertexArrayOES(p)},i.bindVertexArray=function(p){u.bindVertexArrayOES(p)},i.isVertexArray=function(p){return u.isVertexArrayOES(p)})}function Kd(i){var u=i.getExtension("WEBGL_draw_buffers");u&&(i.drawBuffers=function(p,y){u.drawBuffersWEBGL(p,y)})}var Vl=1,Ln=[],kt=[],Bn=[],Do=[],Ot=[],Wt=[],dr=[],Qt=[],Mr=[],jr=[],Gl={},$l={},ql=4;function We(i){Un||(Un=i)}function zr(i){for(var u=Vl++,p=i.length;p"u"||u.Kf)&&Qd(y),p}function Xl(i){return Te=Qt[i],o.rg=L=Te&&Te.ge,!(i&&!L)}function Qd(i){if(i||(i=Te),!i.Wf){i.Wf=!0;var u=i.ge;Xd(u),Zd(u),Kd(u),u.qf=u.getExtension("WEBGL_draw_instanced_base_vertex_base_instance"),u.uf=u.getExtension("WEBGL_multi_draw_instanced_base_vertex_base_instance"),2<=i.version&&(u.rf=u.getExtension("EXT_disjoint_timer_query_webgl2")),(2>i.version||!u.rf)&&(u.rf=u.getExtension("EXT_disjoint_timer_query")),u.sg=u.getExtension("WEBGL_multi_draw"),(u.getSupportedExtensions()||[]).forEach(function(p){p.includes("lose_context")||p.includes("debug")||u.getExtension(p)})}}var Te,Un,Fn=[];function Ir(i,u,p,y){for(var S=0;S>2]=D}}function Zl(i,u,p){if(u){var y=void 0;switch(i){case 36346:y=1;break;case 36344:p!=0&&p!=1&&We(1280);return;case 34814:case 36345:y=0;break;case 34466:var S=L.getParameter(34467);y=S?S.length:0;break;case 33309:if(2>Te.version){We(1282);return}y=2*(L.getSupportedExtensions()||[]).length;break;case 33307:case 33308:if(2>Te.version){We(1280);return}y=i==33307?3:0}if(y===void 0)switch(S=L.getParameter(i),typeof S){case"number":y=S;break;case"boolean":y=S?1:0;break;case"string":We(1280);return;case"object":if(S===null)switch(i){case 34964:case 35725:case 34965:case 36006:case 36007:case 32873:case 34229:case 36662:case 36663:case 35053:case 35055:case 36010:case 35097:case 35869:case 32874:case 36389:case 35983:case 35368:case 34068:y=0;break;default:We(1280);return}else{if(S instanceof Float32Array||S instanceof Uint32Array||S instanceof Int32Array||S instanceof Array){for(i=0;i>2]=S[i];break;case 2:de[u+4*i>>2]=S[i];break;case 4:mt[u+i>>0]=S[i]?1:0}return}try{y=S.name|0}catch(x){We(1280),re("GL_INVALID_ENUM in glGet"+p+"v: Unknown object returned from WebGL getParameter("+i+")! (error: "+x+")");return}}break;default:We(1280),re("GL_INVALID_ENUM in glGet"+p+"v: Native code calling glGet"+p+"v("+i+") and it returns "+S+" of type "+typeof S+"!");return}switch(p){case 1:p=y,Le[u>>2]=p,Le[u+4>>2]=(p-Le[u>>2])/4294967296;break;case 0:te[u>>2]=y;break;case 2:de[u>>2]=y;break;case 4:mt[u>>0]=y?1:0}}else We(1281)}function No(i){var u=Ze(i)+1,p=zn(u);return De(i,Ae,p,u),p}function Kl(i){return i.slice(-1)=="]"&&i.lastIndexOf("[")}function kn(i){return i-=5120,i==0?mt:i==1?Ae:i==2?Bt:i==4?te:i==6?de:i==5||i==28922||i==28520||i==30779||i==30782?Le:jt}function vs(i,u,p,y,S){i=kn(i);var x=31-Math.clz32(i.BYTES_PER_ELEMENT),D=ql;return i.subarray(S>>x,S+y*(p*({5:3,6:4,8:2,29502:3,29504:4,26917:2,26918:2,29846:3,29847:4}[u-6402]||1)*(1<>x)}function Be(i){var u=L.Hf;if(u){var p=u.Ne[i];return typeof p=="number"&&(u.Ne[i]=p=L.getUniformLocation(u,u.wf[i]+(0yt?-1:0xe-F.getDate())ge-=xe-F.getDate()+1,F.setDate(1),11>we?F.setMonth(we+1):(F.setMonth(0),F.setFullYear(F.getFullYear()+1));else{F.setDate(F.getDate()+ge);break}}return we=new Date(F.getFullYear()+1,0,4),ge=A(new Date(F.getFullYear(),0,4)),we=A(we),0>=D(ge,F)?0>=D(we,F)?F.getFullYear()+1:F.getFullYear():F.getFullYear()-1}var N=te[y+40>>2];y={pg:te[y>>2],og:te[y+4>>2],Ye:te[y+8>>2],jf:te[y+12>>2],Ze:te[y+16>>2],qe:te[y+20>>2],je:te[y+24>>2],pe:te[y+28>>2],vg:te[y+32>>2],ng:te[y+36>>2],qg:N?ue(N):""},p=ue(p),N={"%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"};for(var q in N)p=p.replace(new RegExp(q,"g"),N[q]);var Z="Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),se="January February March April May June July August September October November December".split(" ");N={"%a":function(F){return Z[F.je].substring(0,3)},"%A":function(F){return Z[F.je]},"%b":function(F){return se[F.Ze].substring(0,3)},"%B":function(F){return se[F.Ze]},"%C":function(F){return x((F.qe+1900)/100|0,2)},"%d":function(F){return x(F.jf,2)},"%e":function(F){return S(F.jf,2," ")},"%g":function(F){return R(F).toString().substring(2)},"%G":function(F){return R(F)},"%H":function(F){return x(F.Ye,2)},"%I":function(F){return F=F.Ye,F==0?F=12:12F.Ye?"AM":"PM"},"%S":function(F){return x(F.pg,2)},"%t":function(){return" "},"%u":function(F){return F.je||7},"%U":function(F){return x(Math.floor((F.pe+7-F.je)/7),2)},"%V":function(F){var ge=Math.floor((F.pe+7-(F.je+6)%7)/7);if(2>=(F.je+371-F.pe-2)%7&&ge++,ge)ge==53&&(we=(F.je+371-F.pe)%7,we==4||we==3&&Wn(F.qe)||(ge=1));else{ge=52;var we=(F.je+7-F.pe-1)%7;(we==4||we==5&&Wn(F.qe%400-1))&&ge++}return x(ge,2)},"%w":function(F){return F.je},"%W":function(F){return x(Math.floor((F.pe+7-(F.je+6)%7)/7),2)},"%y":function(F){return(F.qe+1900).toString().substring(2)},"%Y":function(F){return F.qe+1900},"%z":function(F){F=F.ng;var ge=0<=F;return F=Math.abs(F)/60,(ge?"+":"-")+("0000"+(F/60*100+F%60)).slice(-4)},"%Z":function(F){return F.qg},"%%":function(){return"%"}},p=p.replace(/%%/g,"\0\0");for(q in N)p.includes(q)&&(p=p.replace(new RegExp(q,"g"),N[q](y)));return p=p.replace(/\0\0/g,"%"),q=nh(p),q.length>u?0:(mt.set(q,i),q.length-1)}Cl=o.InternalError=us("InternalError");for(var eu=Array(256),Hn=0;256>Hn;++Hn)eu[Hn]=String.fromCharCode(Hn);Ol=eu,Hr=o.BindingError=us("BindingError"),fr.prototype.isAliasOf=function(i){if(!(this instanceof fr&&i instanceof fr))return!1;var u=this.Ld.Xd.Rd,p=this.Ld.Td,y=i.Ld.Xd.Rd;for(i=i.Ld.Td;u.ie;)p=u.Oe(p),u=u.ie;for(;y.ie;)i=y.Oe(i),y=y.ie;return u===y&&p===i},fr.prototype.clone=function(){if(this.Ld.Td||gs(this),this.Ld.Me)return this.Ld.count.value+=1,this;var i=Co,u=Object,p=u.create,y=Object.getPrototypeOf(this),S=this.Ld;return i=i(p.call(u,y,{Ld:{value:{count:S.count,Fe:S.Fe,Me:S.Me,Td:S.Td,Xd:S.Xd,$d:S.$d,fe:S.fe}}})),i.Ld.count.value+=1,i.Ld.Fe=!1,i},fr.prototype.delete=function(){this.Ld.Td||gs(this),this.Ld.Fe&&!this.Ld.Me&&Pe("Object already scheduled for deletion"),Pl(this),Dl(this.Ld),this.Ld.Me||(this.Ld.$d=void 0,this.Ld.Td=void 0)},fr.prototype.isDeleted=function(){return!this.Ld.Td},fr.prototype.deleteLater=function(){return this.Ld.Td||gs(this),this.Ld.Fe&&!this.Ld.Me&&Pe("Object already scheduled for deletion"),jo.push(this),jo.length===1&&Io&&Io(ps),this.Ld.Fe=!0,this},o.getInheritedInstanceCount=function(){return Object.keys(Ro).length},o.getLiveInheritedInstances=function(){var i=[],u;for(u in Ro)Ro.hasOwnProperty(u)&&i.push(Ro[u]);return i},o.flushPendingDeletes=ps,o.setDelayFunction=function(i){Io=i,jo.length&&Io&&Io(ps)},Jt.prototype.Qf=function(i){return this.vf&&(i=this.vf(i)),i},Jt.prototype.pf=function(i){this.le&&this.le(i)},Jt.prototype.argPackAdvance=8,Jt.prototype.readValueFromPointer=Mo,Jt.prototype.deleteObject=function(i){i!==null&&i.delete()},Jt.prototype.fromWireType=function(i){function u(){return this.Ue?Cn(this.Rd.Ge,{Xd:this.ag,Td:p,fe:this,$d:i}):Cn(this.Rd.Ge,{Xd:this,Td:i})}var p=this.Qf(i);if(!p)return this.pf(i),null;var y=Nd(this.Rd,p);if(y!==void 0)return y.Ld.count.value===0?(y.Ld.Td=p,y.Ld.$d=i,y.clone()):(y=y.clone(),this.pf(i),y);if(y=this.Rd.Pf(p),y=Ll[y],!y)return u.call(this);y=this.Te?y.Ff:y.pointerType;var S=Nl(p,this.Rd,y.Rd);return S===null?u.call(this):this.Ue?Cn(y.Rd.Ge,{Xd:y,Td:S,fe:this,$d:i}):Cn(y.Rd.Ge,{Xd:y,Td:S})},Ul=o.UnboundTypeError=us("UnboundTypeError"),o.count_emval_handles=function(){for(var i=0,u=5;uSt;++St)Fn.push(Array(St));var rh=new Float32Array(288);for(St=0;288>St;++St)hr[St]=rh.subarray(0,St+1);var oh=new Int32Array(288);for(St=0;288>St;++St)Lo[St]=oh.subarray(0,St+1);function nh(i){var u=Array(Ze(i)+1);return De(i,u,0,u.length),u}var ih={U:function(){return 0},Bb:function(){},Db:function(){return 0},yb:function(){},zb:function(){},V:function(){},Ab:function(){},C:function(i){var u=Mn[i];delete Mn[i];var p=u.gf,y=u.le,S=u.sf,x=S.map(D=>D.Tf).concat(S.map(D=>D.fg));Ut([i],x,D=>{var A={};return S.forEach((R,N)=>{var q=D[N],Z=R.Rf,se=R.Sf,F=D[N+S.length],ge=R.eg,we=R.gg;A[R.Lf]={read:xe=>q.fromWireType(Z(se,xe)),write:(xe,yt)=>{var Pt=[];ge(we,xe,F.toWireType(Pt,yt)),as(Pt)}}}),[{name:u.name,fromWireType:function(R){var N={},q;for(q in A)N[q]=A[q].read(R);return y(R),N},toWireType:function(R,N){for(var q in A)if(!(q in N))throw new TypeError('Missing field: "'+q+'"');var Z=p();for(q in A)A[q].write(Z,N[q]);return R!==null&&R.push(y,Z),Z},argPackAdvance:8,readValueFromPointer:Mo,ee:y}]})},qb:function(){},Hb:function(i,u,p,y,S){var x=Rn(p);u=Ye(u),Yt(i,{name:u,fromWireType:function(D){return!!D},toWireType:function(D,A){return A?y:S},argPackAdvance:8,readValueFromPointer:function(D){if(p===1)var A=mt;else if(p===2)A=Bt;else if(p===4)A=te;else throw new TypeError("Unknown boolean type size: "+u);return this.fromWireType(A[D>>x])},ee:null})},q:function(i,u,p,y,S,x,D,A,R,N,q,Z,se){q=Ye(q),x=lt(S,x),A&&(A=lt(D,A)),N&&(N=lt(R,N)),se=lt(Z,se);var F=Rl(q);ds(F,function(){Oo("Cannot construct "+q+" due to unbound types",[y])}),Ut([i,u,p],y?[y]:[],function(ge){if(ge=ge[0],y)var we=ge.Rd,xe=we.Ge;else xe=fr.prototype;ge=ls(F,function(){if(Object.getPrototypeOf(this)!==yt)throw new Hr("Use 'new' to construct "+q);if(Pt.oe===void 0)throw new Hr(q+" has no accessible constructor");var Uo=Pt.oe[arguments.length];if(Uo===void 0)throw new Hr("Tried to invoke ctor of "+q+" with invalid number of parameters ("+arguments.length+") - expected ("+Object.keys(Pt.oe).toString()+") parameters instead!");return Uo.apply(this,arguments)});var yt=Object.create(xe,{constructor:{value:ge}});ge.prototype=yt;var Pt=new Ld(q,ge,yt,se,we,x,A,N);we=new Jt(q,Pt,!0,!1,!1),xe=new Jt(q+"*",Pt,!1,!1,!1);var Bo=new Jt(q+" const*",Pt,!1,!0,!1);return Ll[i]={pointerType:xe,Ff:Bo},Bl(F,ge),[we,xe,Bo]})},h:function(i,u,p,y,S,x,D){var A=Pn(p,y);u=Ye(u),x=lt(S,x),Ut([],[i],function(R){function N(){Oo("Cannot call "+q+" due to unbound types",A)}R=R[0];var q=R.name+"."+u;u.startsWith("@@")&&(u=Symbol[u.substring(2)]);var Z=R.Rd.constructor;return Z[u]===void 0?(N.De=p-1,Z[u]=N):(fs(Z,u,q),Z[u].Zd[p-1]=N),Ut([],A,function(se){return se=[se[0],null].concat(se.slice(1)),se=On(q,se,null,x,D),Z[u].Zd===void 0?(se.De=p-1,Z[u]=se):Z[u].Zd[p-1]=se,[]}),[]})},B:function(i,u,p,y,S,x){0{Oo("Cannot construct "+A.name+" due to unbound types",D)},Ut([],D,function(N){return N.splice(1,0,null),A.Rd.oe[u-1]=On(R,N,null,S,x),[]}),[]})},b:function(i,u,p,y,S,x,D,A){var R=Pn(p,y);u=Ye(u),x=lt(S,x),Ut([],[i],function(N){function q(){Oo("Cannot call "+Z+" due to unbound types",R)}N=N[0];var Z=N.name+"."+u;u.startsWith("@@")&&(u=Symbol[u.substring(2)]),A&&N.Rd.bg.push(u);var se=N.Rd.Ge,F=se[u];return F===void 0||F.Zd===void 0&&F.className!==N.name&&F.De===p-2?(q.De=p-2,q.className=N.name,se[u]=q):(fs(se,u,Z),se[u].Zd[p-2]=q),Ut([],R,function(ge){return ge=On(Z,ge,N,x,D),se[u].Zd===void 0?(ge.De=p-2,se[u]=ge):se[u].Zd[p-2]=ge,[]}),[]})},u:function(i,u,p){i=Ye(i),Ut([],[u],function(y){return y=y[0],o[i]=y.fromWireType(p),[]})},Gb:function(i,u){u=Ye(u),Yt(i,{name:u,fromWireType:function(p){var y=Rt(p);return ys(p),y},toWireType:function(p,y){return Ct(y)},argPackAdvance:8,readValueFromPointer:Mo,ee:null})},n:function(i,u,p,y){function S(){}p=Rn(p),u=Ye(u),S.values={},Yt(i,{name:u,constructor:S,fromWireType:function(x){return this.constructor.values[x]},toWireType:function(x,D){return D.value},argPackAdvance:8,readValueFromPointer:Wd(u,p,y),ee:null}),ds(u,S)},e:function(i,u,p){var y=Po(i,"enum");u=Ye(u),i=y.constructor,y=Object.create(y.constructor.prototype,{value:{value:p},constructor:{value:ls(y.name+"_"+u,function(){})}}),i.values[p]=y,i[u]=y},Y:function(i,u,p){p=Rn(p),u=Ye(u),Yt(i,{name:u,fromWireType:function(y){return y},toWireType:function(y,S){return S},argPackAdvance:8,readValueFromPointer:Hd(u,p),ee:null})},y:function(i,u,p,y,S,x){var D=Pn(u,p);i=Ye(i),S=lt(y,S),ds(i,function(){Oo("Cannot call "+i+" due to unbound types",D)},u-1),Ut([],D,function(A){return A=[A[0],null].concat(A.slice(1)),Bl(i,On(i,A,null,S,x),u-1),[]})},E:function(i,u,p,y,S){u=Ye(u),S===-1&&(S=4294967295),S=Rn(p);var x=A=>A;if(y===0){var D=32-8*p;x=A=>A<>>D}p=u.includes("unsigned")?function(A,R){return R>>>0}:function(A,R){return R},Yt(i,{name:u,fromWireType:x,toWireType:p,argPackAdvance:8,readValueFromPointer:zd(u,S,y!==0),ee:null})},v:function(i,u,p){function y(x){x>>=2;var D=Le;return new S(bo,D[x+1],D[x])}var S=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][u];p=Ye(p),Yt(i,{name:p,fromWireType:y,argPackAdvance:8,readValueFromPointer:y},{Vf:!0})},t:function(i,u,p,y,S,x,D,A,R,N,q,Z){p=Ye(p),x=lt(S,x),A=lt(D,A),N=lt(R,N),Z=lt(q,Z),Ut([i],[u],function(se){return se=se[0],[new Jt(p,se.Rd,!1,!1,!0,se,y,x,A,N,Z)]})},X:function(i,u){u=Ye(u);var p=u==="std::string";Yt(i,{name:u,fromWireType:function(y){var S=Le[y>>2],x=y+4;if(p)for(var D=x,A=0;A<=S;++A){var R=x+A;if(A==S||Ae[R]==0){if(D=ue(D,R-D),N===void 0)var N=D;else N+="\0",N+=D;D=R+1}}else{for(N=Array(S),A=0;A>2]=D,p&&x)De(S,Ae,R,D+1);else if(x)for(x=0;xjt,A=1;else u===4&&(y=xn,S=Kt,x=ns,D=()=>Le,A=2);Yt(i,{name:p,fromWireType:function(R){for(var N=Le[R>>2],q=D(),Z,se=R+4,F=0;F<=N;++F){var ge=R+4+F*u;(F==N||q[ge>>A]==0)&&(se=y(se,ge-se),Z===void 0?Z=se:(Z+="\0",Z+=se),se=ge+u)}return ir(R),Z},toWireType:function(R,N){typeof N!="string"&&Pe("Cannot pass non-string to C++ string type "+p);var q=x(N),Z=zn(4+q+u);return Le[Z>>2]=q>>A,S(N,Z+4,q+u),R!==null&&R.push(ir,Z),Z},argPackAdvance:8,readValueFromPointer:Mo,ee:function(R){ir(R)}})},D:function(i,u,p,y,S,x){Mn[i]={name:Ye(u),gf:lt(p,y),le:lt(S,x),sf:[]}},g:function(i,u,p,y,S,x,D,A,R,N){Mn[i].sf.push({Lf:Ye(u),Tf:p,Rf:lt(y,S),Sf:x,fg:D,eg:lt(A,R),gg:N})},Ib:function(i,u){u=Ye(u),Yt(i,{Xf:!0,name:u,argPackAdvance:0,fromWireType:function(){},toWireType:function(){}})},Fb:function(){return!0},sb:function(){throw 1/0},I:function(i,u,p){i=Rt(i),u=Po(u,"emval::as");var y=[],S=Ct(y);return Le[p>>2]=S,u.toWireType(y,i)},$:function(i,u,p,y,S){i=Nn[i],u=Rt(u),p=Dn(p);var x=[];return Le[y>>2]=Ct(x),i(u,p,x,S)},A:function(i,u,p,y){i=Nn[i],u=Rt(u),p=Dn(p),i(u,p,null,y)},f:ys,M:function(i){return i===0?Ct(kl()):(i=Dn(i),Ct(kl()[i]))},z:function(i,u){var p=$d(i,u),y=p[0];u=y.name+"_$"+p.slice(1).map(function(D){return D.name}).join("_")+"$";var S=Wl[u];if(S!==void 0)return S;var x=Array(i-1);return S=Gd((D,A,R,N)=>{for(var q=0,Z=0;Z>>0)+4294967296*y)},ka:function(i,u,p,y){L.colorMask(!!i,!!u,!!p,!!y)},la:function(i){L.compileShader(Wt[i])},ma:function(i,u,p,y,S,x,D,A){2<=Te.version?L.Ee||!D?L.compressedTexImage2D(i,u,p,y,S,x,D,A):L.compressedTexImage2D(i,u,p,y,S,x,Ae,A,D):L.compressedTexImage2D(i,u,p,y,S,x,A?Ae.subarray(A,A+D):null)},na:function(i,u,p,y,S,x,D,A,R){2<=Te.version?L.Ee||!A?L.compressedTexSubImage2D(i,u,p,y,S,x,D,A,R):L.compressedTexSubImage2D(i,u,p,y,S,x,D,Ae,R,A):L.compressedTexSubImage2D(i,u,p,y,S,x,D,R?Ae.subarray(R,R+A):null)},Zb:function(i,u,p,y,S){L.copyBufferSubData(i,u,p,y,S)},oa:function(i,u,p,y,S,x,D,A){L.copyTexSubImage2D(i,u,p,y,S,x,D,A)},pa:function(){var i=zr(kt),u=L.createProgram();return u.name=i,u.Xe=u.Ve=u.We=0,u.kf=1,kt[i]=u,i},qa:function(i){var u=zr(Wt);return Wt[u]=L.createShader(i),u},ra:function(i){L.cullFace(i)},sa:function(i,u){for(var p=0;p>2],S=Ln[y];S&&(L.deleteBuffer(S),S.name=0,Ln[y]=null,y==L.df&&(L.df=0),y==L.Ee&&(L.Ee=0))}},hc:function(i,u){for(var p=0;p>2],S=Bn[y];S&&(L.deleteFramebuffer(S),S.name=0,Bn[y]=null)}},ta:function(i){if(i){var u=kt[i];u?(L.deleteProgram(u),u.name=0,kt[i]=null):We(1281)}},ic:function(i,u){for(var p=0;p>2],S=Do[y];S&&(L.deleteRenderbuffer(S),S.name=0,Do[y]=null)}},Sb:function(i,u){for(var p=0;p>2],S=Mr[y];S&&(L.deleteSampler(S),S.name=0,Mr[y]=null)}},ua:function(i){if(i){var u=Wt[i];u?(L.deleteShader(u),Wt[i]=null):We(1281)}},_b:function(i){if(i){var u=jr[i];u?(L.deleteSync(u),u.name=0,jr[i]=null):We(1281)}},va:function(i,u){for(var p=0;p>2],S=Ot[y];S&&(L.deleteTexture(S),S.name=0,Ot[y]=null)}},Dc:function(i,u){for(var p=0;p>2];L.deleteVertexArray(dr[y]),dr[y]=null}},yc:function(i,u){for(var p=0;p>2];L.deleteVertexArray(dr[y]),dr[y]=null}},wa:function(i){L.depthMask(!!i)},xa:function(i){L.disable(i)},ya:function(i){L.disableVertexAttribArray(i)},za:function(i,u,p){L.drawArrays(i,u,p)},Ac:function(i,u,p,y){L.drawArraysInstanced(i,u,p,y)},vc:function(i,u,p,y,S){L.qf.drawArraysInstancedBaseInstanceWEBGL(i,u,p,y,S)},tc:function(i,u){for(var p=Fn[i],y=0;y>2];L.drawBuffers(p)},Aa:function(i,u,p,y){L.drawElements(i,u,p,y)},Bc:function(i,u,p,y,S){L.drawElementsInstanced(i,u,p,y,S)},wc:function(i,u,p,y,S,x,D){L.qf.drawElementsInstancedBaseVertexBaseInstanceWEBGL(i,u,p,y,S,x,D)},nc:function(i,u,p,y,S,x){L.drawElements(i,y,S,x)},Ba:function(i){L.enable(i)},Ca:function(i){L.enableVertexAttribArray(i)},Xb:function(i,u){return(i=L.fenceSync(i,u))?(u=zr(jr),i.name=u,jr[u]=i,u):0},Da:function(){L.finish()},Ea:function(){L.flush()},jc:function(i,u,p,y){L.framebufferRenderbuffer(i,u,p,Do[y])},kc:function(i,u,p,y,S){L.framebufferTexture2D(i,u,p,Ot[y],S)},Fa:function(i){L.frontFace(i)},Ga:function(i,u){Ir(i,u,"createBuffer",Ln)},lc:function(i,u){Ir(i,u,"createFramebuffer",Bn)},mc:function(i,u){Ir(i,u,"createRenderbuffer",Do)},Tb:function(i,u){Ir(i,u,"createSampler",Mr)},Ha:function(i,u){Ir(i,u,"createTexture",Ot)},Ec:function(i,u){Ir(i,u,"createVertexArray",dr)},zc:function(i,u){Ir(i,u,"createVertexArray",dr)},bc:function(i){L.generateMipmap(i)},Ia:function(i,u,p){p?te[p>>2]=L.getBufferParameter(i,u):We(1281)},Ja:function(){var i=L.getError()||Un;return Un=0,i},Ka:function(i,u){Zl(i,u,2)},cc:function(i,u,p,y){i=L.getFramebufferAttachmentParameter(i,u,p),(i instanceof WebGLRenderbuffer||i instanceof WebGLTexture)&&(i=i.name|0),te[y>>2]=i},N:function(i,u){Zl(i,u,0)},La:function(i,u,p,y){i=L.getProgramInfoLog(kt[i]),i===null&&(i="(unknown error)"),u=0>2]=u)},Ma:function(i,u,p){if(p)if(i>=Vl)We(1281);else if(i=kt[i],u==35716)i=L.getProgramInfoLog(i),i===null&&(i="(unknown error)"),te[p>>2]=i.length+1;else if(u==35719){if(!i.Xe)for(u=0;u>2]=i.Xe}else if(u==35722){if(!i.Ve)for(u=0;u>2]=i.Ve}else if(u==35381){if(!i.We)for(u=0;u>2]=i.We}else te[p>>2]=L.getProgramParameter(i,u);else We(1281)},dc:function(i,u,p){p?te[p>>2]=L.getRenderbufferParameter(i,u):We(1281)},Na:function(i,u,p,y){i=L.getShaderInfoLog(Wt[i]),i===null&&(i="(unknown error)"),u=0>2]=u)},Ob:function(i,u,p,y){i=L.getShaderPrecisionFormat(i,u),te[p>>2]=i.rangeMin,te[p+4>>2]=i.rangeMax,te[y>>2]=i.precision},Oa:function(i,u,p){p?u==35716?(i=L.getShaderInfoLog(Wt[i]),i===null&&(i="(unknown error)"),te[p>>2]=i?i.length+1:0):u==35720?(i=L.getShaderSource(Wt[i]),te[p>>2]=i?i.length+1:0):te[p>>2]=L.getShaderParameter(Wt[i],u):We(1281)},R:function(i){var u=Gl[i];if(!u){switch(i){case 7939:u=L.getSupportedExtensions()||[],u=u.concat(u.map(function(y){return"GL_"+y})),u=No(u.join(" "));break;case 7936:case 7937:case 37445:case 37446:(u=L.getParameter(i))||We(1280),u=u&&No(u);break;case 7938:u=L.getParameter(7938),u=2<=Te.version?"OpenGL ES 3.0 ("+u+")":"OpenGL ES 2.0 ("+u+")",u=No(u);break;case 35724:u=L.getParameter(35724);var p=u.match(/^WebGL GLSL ES ([0-9]\.[0-9][0-9]?)(?:$| .*)/);p!==null&&(p[1].length==3&&(p[1]+="0"),u="OpenGL ES GLSL ES "+p[1]+" ("+u+")"),u=No(u);break;default:We(1280)}Gl[i]=u}return u},jb:function(i,u){if(2>Te.version)return We(1282),0;var p=$l[i];if(p)return 0>u||u>=p.length?(We(1281),0):p[u];switch(i){case 7939:return p=L.getSupportedExtensions()||[],p=p.concat(p.map(function(y){return"GL_"+y})),p=p.map(function(y){return No(y)}),p=$l[i]=p,0>u||u>=p.length?(We(1281),0):p[u];default:return We(1280),0}},Pa:function(i,u){if(u=ue(u),i=kt[i]){var p=i,y=p.Ne,S=p.xf,x;if(!y)for(p.Ne=y={},p.wf={},x=0;x>>0,S=u.slice(0,x)),(S=i.xf[S])&&y>2];L.invalidateFramebuffer(i,y)},Qb:function(i,u,p,y,S,x,D){for(var A=Fn[u],R=0;R>2];L.invalidateSubFramebuffer(i,A,y,S,x,D)},Yb:function(i){return L.isSync(jr[i])},Qa:function(i){return(i=Ot[i])?L.isTexture(i):0},Ra:function(i){L.lineWidth(i)},Sa:function(i){i=kt[i],L.linkProgram(i),i.Ne=0,i.xf={}},rc:function(i,u,p,y,S,x){L.uf.multiDrawArraysInstancedBaseInstanceWEBGL(i,te,u>>2,te,p>>2,te,y>>2,Le,S>>2,x)},sc:function(i,u,p,y,S,x,D,A){L.uf.multiDrawElementsInstancedBaseVertexBaseInstanceWEBGL(i,te,u>>2,p,te,y>>2,te,S>>2,te,x>>2,Le,D>>2,A)},Ta:function(i,u){i==3317&&(ql=u),L.pixelStorei(i,u)},uc:function(i){L.readBuffer(i)},Ua:function(i,u,p,y,S,x,D){if(2<=Te.version)if(L.df)L.readPixels(i,u,p,y,S,x,D);else{var A=kn(x);L.readPixels(i,u,p,y,S,x,A,D>>31-Math.clz32(A.BYTES_PER_ELEMENT))}else(D=vs(x,S,p,y,D))?L.readPixels(i,u,p,y,S,x,D):We(1280)},ec:function(i,u,p,y){L.renderbufferStorage(i,u,p,y)},ac:function(i,u,p,y,S){L.renderbufferStorageMultisample(i,u,p,y,S)},Ub:function(i,u,p){L.samplerParameterf(Mr[i],u,p)},Vb:function(i,u,p){L.samplerParameteri(Mr[i],u,p)},Wb:function(i,u,p){L.samplerParameteri(Mr[i],u,te[p>>2])},Va:function(i,u,p,y){L.scissor(i,u,p,y)},Wa:function(i,u,p,y){for(var S="",x=0;x>2]:-1;S+=ue(te[p+4*x>>2],0>D?void 0:D)}L.shaderSource(Wt[i],S)},Xa:function(i,u,p){L.stencilFunc(i,u,p)},Ya:function(i,u,p,y){L.stencilFuncSeparate(i,u,p,y)},Za:function(i){L.stencilMask(i)},_a:function(i,u){L.stencilMaskSeparate(i,u)},$a:function(i,u,p){L.stencilOp(i,u,p)},ab:function(i,u,p,y){L.stencilOpSeparate(i,u,p,y)},bb:function(i,u,p,y,S,x,D,A,R){if(2<=Te.version)if(L.Ee)L.texImage2D(i,u,p,y,S,x,D,A,R);else if(R){var N=kn(A);L.texImage2D(i,u,p,y,S,x,D,A,N,R>>31-Math.clz32(N.BYTES_PER_ELEMENT))}else L.texImage2D(i,u,p,y,S,x,D,A,null);else L.texImage2D(i,u,p,y,S,x,D,A,R?vs(A,D,y,S,R):null)},cb:function(i,u,p){L.texParameterf(i,u,p)},db:function(i,u,p){L.texParameterf(i,u,de[p>>2])},eb:function(i,u,p){L.texParameteri(i,u,p)},fb:function(i,u,p){L.texParameteri(i,u,te[p>>2])},oc:function(i,u,p,y,S){L.texStorage2D(i,u,p,y,S)},gb:function(i,u,p,y,S,x,D,A,R){if(2<=Te.version)if(L.Ee)L.texSubImage2D(i,u,p,y,S,x,D,A,R);else if(R){var N=kn(A);L.texSubImage2D(i,u,p,y,S,x,D,A,N,R>>31-Math.clz32(N.BYTES_PER_ELEMENT))}else L.texSubImage2D(i,u,p,y,S,x,D,A,null);else N=null,R&&(N=vs(A,D,S,x,R)),L.texSubImage2D(i,u,p,y,S,x,D,A,N)},hb:function(i,u){L.uniform1f(Be(i),u)},ib:function(i,u,p){if(2<=Te.version)u&&L.uniform1fv(Be(i),de,p>>2,u);else{if(288>=u)for(var y=hr[u-1],S=0;S>2];else y=de.subarray(p>>2,p+4*u>>2);L.uniform1fv(Be(i),y)}},Zc:function(i,u){L.uniform1i(Be(i),u)},_c:function(i,u,p){if(2<=Te.version)u&&L.uniform1iv(Be(i),te,p>>2,u);else{if(288>=u)for(var y=Lo[u-1],S=0;S>2];else y=te.subarray(p>>2,p+4*u>>2);L.uniform1iv(Be(i),y)}},$c:function(i,u,p){L.uniform2f(Be(i),u,p)},ad:function(i,u,p){if(2<=Te.version)u&&L.uniform2fv(Be(i),de,p>>2,2*u);else{if(144>=u)for(var y=hr[2*u-1],S=0;S<2*u;S+=2)y[S]=de[p+4*S>>2],y[S+1]=de[p+(4*S+4)>>2];else y=de.subarray(p>>2,p+8*u>>2);L.uniform2fv(Be(i),y)}},Yc:function(i,u,p){L.uniform2i(Be(i),u,p)},Xc:function(i,u,p){if(2<=Te.version)u&&L.uniform2iv(Be(i),te,p>>2,2*u);else{if(144>=u)for(var y=Lo[2*u-1],S=0;S<2*u;S+=2)y[S]=te[p+4*S>>2],y[S+1]=te[p+(4*S+4)>>2];else y=te.subarray(p>>2,p+8*u>>2);L.uniform2iv(Be(i),y)}},Wc:function(i,u,p,y){L.uniform3f(Be(i),u,p,y)},Vc:function(i,u,p){if(2<=Te.version)u&&L.uniform3fv(Be(i),de,p>>2,3*u);else{if(96>=u)for(var y=hr[3*u-1],S=0;S<3*u;S+=3)y[S]=de[p+4*S>>2],y[S+1]=de[p+(4*S+4)>>2],y[S+2]=de[p+(4*S+8)>>2];else y=de.subarray(p>>2,p+12*u>>2);L.uniform3fv(Be(i),y)}},Uc:function(i,u,p,y){L.uniform3i(Be(i),u,p,y)},Tc:function(i,u,p){if(2<=Te.version)u&&L.uniform3iv(Be(i),te,p>>2,3*u);else{if(96>=u)for(var y=Lo[3*u-1],S=0;S<3*u;S+=3)y[S]=te[p+4*S>>2],y[S+1]=te[p+(4*S+4)>>2],y[S+2]=te[p+(4*S+8)>>2];else y=te.subarray(p>>2,p+12*u>>2);L.uniform3iv(Be(i),y)}},Sc:function(i,u,p,y,S){L.uniform4f(Be(i),u,p,y,S)},Rc:function(i,u,p){if(2<=Te.version)u&&L.uniform4fv(Be(i),de,p>>2,4*u);else{if(72>=u){var y=hr[4*u-1],S=de;p>>=2;for(var x=0;x<4*u;x+=4){var D=p+x;y[x]=S[D],y[x+1]=S[D+1],y[x+2]=S[D+2],y[x+3]=S[D+3]}}else y=de.subarray(p>>2,p+16*u>>2);L.uniform4fv(Be(i),y)}},Fc:function(i,u,p,y,S){L.uniform4i(Be(i),u,p,y,S)},Gc:function(i,u,p){if(2<=Te.version)u&&L.uniform4iv(Be(i),te,p>>2,4*u);else{if(72>=u)for(var y=Lo[4*u-1],S=0;S<4*u;S+=4)y[S]=te[p+4*S>>2],y[S+1]=te[p+(4*S+4)>>2],y[S+2]=te[p+(4*S+8)>>2],y[S+3]=te[p+(4*S+12)>>2];else y=te.subarray(p>>2,p+16*u>>2);L.uniform4iv(Be(i),y)}},Hc:function(i,u,p,y){if(2<=Te.version)u&&L.uniformMatrix2fv(Be(i),!!p,de,y>>2,4*u);else{if(72>=u)for(var S=hr[4*u-1],x=0;x<4*u;x+=4)S[x]=de[y+4*x>>2],S[x+1]=de[y+(4*x+4)>>2],S[x+2]=de[y+(4*x+8)>>2],S[x+3]=de[y+(4*x+12)>>2];else S=de.subarray(y>>2,y+16*u>>2);L.uniformMatrix2fv(Be(i),!!p,S)}},Ic:function(i,u,p,y){if(2<=Te.version)u&&L.uniformMatrix3fv(Be(i),!!p,de,y>>2,9*u);else{if(32>=u)for(var S=hr[9*u-1],x=0;x<9*u;x+=9)S[x]=de[y+4*x>>2],S[x+1]=de[y+(4*x+4)>>2],S[x+2]=de[y+(4*x+8)>>2],S[x+3]=de[y+(4*x+12)>>2],S[x+4]=de[y+(4*x+16)>>2],S[x+5]=de[y+(4*x+20)>>2],S[x+6]=de[y+(4*x+24)>>2],S[x+7]=de[y+(4*x+28)>>2],S[x+8]=de[y+(4*x+32)>>2];else S=de.subarray(y>>2,y+36*u>>2);L.uniformMatrix3fv(Be(i),!!p,S)}},Jc:function(i,u,p,y){if(2<=Te.version)u&&L.uniformMatrix4fv(Be(i),!!p,de,y>>2,16*u);else{if(18>=u){var S=hr[16*u-1],x=de;y>>=2;for(var D=0;D<16*u;D+=16){var A=y+D;S[D]=x[A],S[D+1]=x[A+1],S[D+2]=x[A+2],S[D+3]=x[A+3],S[D+4]=x[A+4],S[D+5]=x[A+5],S[D+6]=x[A+6],S[D+7]=x[A+7],S[D+8]=x[A+8],S[D+9]=x[A+9],S[D+10]=x[A+10],S[D+11]=x[A+11],S[D+12]=x[A+12],S[D+13]=x[A+13],S[D+14]=x[A+14],S[D+15]=x[A+15]}}else S=de.subarray(y>>2,y+64*u>>2);L.uniformMatrix4fv(Be(i),!!p,S)}},Kc:function(i){i=kt[i],L.useProgram(i),L.Hf=i},Lc:function(i,u){L.vertexAttrib1f(i,u)},Mc:function(i,u){L.vertexAttrib2f(i,de[u>>2],de[u+4>>2])},Nc:function(i,u){L.vertexAttrib3f(i,de[u>>2],de[u+4>>2],de[u+8>>2])},Oc:function(i,u){L.vertexAttrib4f(i,de[u>>2],de[u+4>>2],de[u+8>>2],de[u+12>>2])},pc:function(i,u){L.vertexAttribDivisor(i,u)},qc:function(i,u,p,y,S){L.vertexAttribIPointer(i,u,p,y,S)},Pc:function(i,u,p,y,S,x){L.vertexAttribPointer(i,u,p,!!y,S,x)},Qc:function(i,u,p,y){L.viewport(i,u,p,y)},lb:function(i,u,p,y){L.waitSync(jr[i],u,(p>>>0)+4294967296*y)},tb:function(i){var u=Ae.length;if(i>>>=0,2147483648=p;p*=2){var y=u*(1+.2/p);y=Math.min(y,i+100663296);var S=Math;y=Math.max(i,y),S=S.min.call(S,2147483648,y+(65536-y%65536)%65536);e:{try{Ue.grow(S-bo.byteLength+65535>>>16),An();var x=1;break e}catch{}x=void 0}if(x)return!0}return!1},nb:function(){return Te?Te.Uf:0},wb:function(i,u){var p=0;return Yl().forEach(function(y,S){var x=u+p;for(S=Le[i+4*S>>2]=x,x=0;x>0]=y.charCodeAt(x);mt[S>>0]=0,p+=y.length+1}),0},xb:function(i,u){var p=Yl();Le[i>>2]=p.length;var y=0;return p.forEach(function(S){y+=S.length+1}),Le[u>>2]=y,0},Jb:function(i){Ie||(o.onExit&&o.onExit(i),ot=!0),v(i,new ru(i))},O:function(){return 52},ob:function(){return 52},Cb:function(){return 52},pb:function(){return 70},T:function(i,u,p,y){for(var S=0,x=0;x>2],A=Le[u+4>>2];u+=8;for(var R=0;R>2]=S,0},c:function(){return me},k:ah,o:dh,l:sh,K:mh,Lb:yh,_:_h,Z:bh,Q:ch,p:fh,x:gh,s:uh,w:ph,Kb:vh,Mb:hh,Nb:lh,d:function(i){me=i},rb:function(i,u,p,y){return th(i,u,p,y)}};(function(){function i(S){o.asm=S.exports,Ue=o.asm.dd,An(),To=o.asm.fd,wo.unshift(o.asm.ed),xr--,o.monitorRunDependencies&&o.monitorRunDependencies(xr),xr==0&&(is!==null&&(clearInterval(is),is=null),xo&&(S=xo,xo=null,S()))}function u(S){i(S.instance)}function p(S){return Dd().then(function(x){return WebAssembly.instantiate(x,y)}).then(function(x){return x}).then(S,function(x){re("failed to asynchronously prepare wasm: "+x),Ao(x)})}var y={a:ih};if(xr++,o.monitorRunDependencies&&o.monitorRunDependencies(xr),o.instantiateWasm)try{return o.instantiateWasm(y,i)}catch(S){return re("Module.instantiateWasm callback failed with error: "+S),!1}return function(){return ye||typeof WebAssembly.instantiateStreaming!="function"||Ml()||It.startsWith("file://")||P||typeof fetch!="function"?p(u):fetch(It,{credentials:"same-origin"}).then(function(S){return WebAssembly.instantiateStreaming(S,y).then(u,function(x){return re("wasm streaming compile failed: "+x),re("falling back to ArrayBuffer instantiation"),p(u)})})}().catch(s),{}})(),o.___wasm_call_ctors=function(){return(o.___wasm_call_ctors=o.asm.ed).apply(null,arguments)};var ir=o._free=function(){return(ir=o._free=o.asm.gd).apply(null,arguments)},zn=o._malloc=function(){return(zn=o._malloc=o.asm.hd).apply(null,arguments)},tu=o.___getTypeName=function(){return(tu=o.___getTypeName=o.asm.id).apply(null,arguments)};o.___embind_register_native_and_builtin_types=function(){return(o.___embind_register_native_and_builtin_types=o.asm.jd).apply(null,arguments)};var ut=o._setThrew=function(){return(ut=o._setThrew=o.asm.kd).apply(null,arguments)},gt=o.stackSave=function(){return(gt=o.stackSave=o.asm.ld).apply(null,arguments)},ct=o.stackRestore=function(){return(ct=o.stackRestore=o.asm.md).apply(null,arguments)};o.dynCall_viji=function(){return(o.dynCall_viji=o.asm.nd).apply(null,arguments)},o.dynCall_vijiii=function(){return(o.dynCall_vijiii=o.asm.od).apply(null,arguments)},o.dynCall_viiiiij=function(){return(o.dynCall_viiiiij=o.asm.pd).apply(null,arguments)},o.dynCall_jiiiijiiiii=function(){return(o.dynCall_jiiiijiiiii=o.asm.qd).apply(null,arguments)},o.dynCall_viiij=function(){return(o.dynCall_viiij=o.asm.rd).apply(null,arguments)},o.dynCall_jii=function(){return(o.dynCall_jii=o.asm.sd).apply(null,arguments)},o.dynCall_vij=function(){return(o.dynCall_vij=o.asm.td).apply(null,arguments)},o.dynCall_iiij=function(){return(o.dynCall_iiij=o.asm.ud).apply(null,arguments)},o.dynCall_iiiij=function(){return(o.dynCall_iiiij=o.asm.vd).apply(null,arguments)},o.dynCall_viij=function(){return(o.dynCall_viij=o.asm.wd).apply(null,arguments)},o.dynCall_ji=function(){return(o.dynCall_ji=o.asm.xd).apply(null,arguments)},o.dynCall_iij=function(){return(o.dynCall_iij=o.asm.yd).apply(null,arguments)},o.dynCall_jiiiiii=function(){return(o.dynCall_jiiiiii=o.asm.zd).apply(null,arguments)},o.dynCall_jiiiiji=function(){return(o.dynCall_jiiiiji=o.asm.Ad).apply(null,arguments)},o.dynCall_iijj=function(){return(o.dynCall_iijj=o.asm.Bd).apply(null,arguments)},o.dynCall_iiiji=function(){return(o.dynCall_iiiji=o.asm.Cd).apply(null,arguments)},o.dynCall_iiji=function(){return(o.dynCall_iiji=o.asm.Dd).apply(null,arguments)},o.dynCall_iijjiii=function(){return(o.dynCall_iijjiii=o.asm.Ed).apply(null,arguments)},o.dynCall_vijjjii=function(){return(o.dynCall_vijjjii=o.asm.Fd).apply(null,arguments)},o.dynCall_jiji=function(){return(o.dynCall_jiji=o.asm.Gd).apply(null,arguments)},o.dynCall_viijii=function(){return(o.dynCall_viijii=o.asm.Hd).apply(null,arguments)},o.dynCall_iiiiij=function(){return(o.dynCall_iiiiij=o.asm.Id).apply(null,arguments)},o.dynCall_iiiiijj=function(){return(o.dynCall_iiiiijj=o.asm.Jd).apply(null,arguments)},o.dynCall_iiiiiijj=function(){return(o.dynCall_iiiiiijj=o.asm.Kd).apply(null,arguments)};function sh(i,u,p,y){var S=gt();try{return it(i)(u,p,y)}catch(x){if(ct(S),x!==x+0)throw x;ut(1,0)}}function ah(i,u){var p=gt();try{return it(i)(u)}catch(y){if(ct(p),y!==y+0)throw y;ut(1,0)}}function lh(i,u,p,y,S,x,D,A,R,N){var q=gt();try{it(i)(u,p,y,S,x,D,A,R,N)}catch(Z){if(ct(q),Z!==Z+0)throw Z;ut(1,0)}}function uh(i,u,p,y){var S=gt();try{it(i)(u,p,y)}catch(x){if(ct(S),x!==x+0)throw x;ut(1,0)}}function gh(i,u,p){var y=gt();try{it(i)(u,p)}catch(S){if(ct(y),S!==S+0)throw S;ut(1,0)}}function ch(i){var u=gt();try{it(i)()}catch(p){if(ct(u),p!==p+0)throw p;ut(1,0)}}function ph(i,u,p,y,S){var x=gt();try{it(i)(u,p,y,S)}catch(D){if(ct(x),D!==D+0)throw D;ut(1,0)}}function fh(i,u){var p=gt();try{it(i)(u)}catch(y){if(ct(p),y!==y+0)throw y;ut(1,0)}}function dh(i,u,p){var y=gt();try{return it(i)(u,p)}catch(S){if(ct(y),S!==S+0)throw S;ut(1,0)}}function hh(i,u,p,y,S,x,D){var A=gt();try{it(i)(u,p,y,S,x,D)}catch(R){if(ct(A),R!==R+0)throw R;ut(1,0)}}function mh(i,u,p,y,S){var x=gt();try{return it(i)(u,p,y,S)}catch(D){if(ct(x),D!==D+0)throw D;ut(1,0)}}function yh(i,u,p,y,S,x){var D=gt();try{return it(i)(u,p,y,S,x)}catch(A){if(ct(D),A!==A+0)throw A;ut(1,0)}}function _h(i,u,p,y,S,x,D){var A=gt();try{return it(i)(u,p,y,S,x,D)}catch(R){if(ct(A),R!==R+0)throw R;ut(1,0)}}function vh(i,u,p,y,S,x){var D=gt();try{it(i)(u,p,y,S,x)}catch(A){if(ct(D),A!==A+0)throw A;ut(1,0)}}function bh(i,u,p,y,S,x,D,A,R,N){var q=gt();try{return it(i)(u,p,y,S,x,D,A,R,N)}catch(Z){if(ct(q),Z!==Z+0)throw Z;ut(1,0)}}var Vn;function ru(i){this.name="ExitStatus",this.message="Program terminated with exit("+i+")",this.status=i}xo=function i(){Vn||Ts(),Vn||(xo=i)};function Ts(){function i(){if(!Vn&&(Vn=!0,o.calledRun=!0,!ot)){if(ss(wo),n(o),o.onRuntimeInitialized&&o.onRuntimeInitialized(),o.postRun)for(typeof o.postRun=="function"&&(o.postRun=[o.postRun]);o.postRun.length;){var u=o.postRun.shift();Al.unshift(u)}ss(Al)}}if(!(0{var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(t,r,o){t instanceof String&&(t=String(t));for(var n=t.length,s=0;s=s}},"es6","es3");$jscomp.polyfill("Array.prototype.find",function(t){return t||function(r,o){return $jscomp.findInternal(this,r,o).v}},"es6","es3");$jscomp.polyfill("String.prototype.startsWith",function(t){return t||function(r,o){var n=$jscomp.checkStringArgs(this,r,"startsWith");r+="";var s=n.length,l=r.length;o=Math.max(0,Math.min(o|0,n.length));for(var m=0;m=l}},"es6","es3");$jscomp.polyfill("String.prototype.repeat",function(t){return t||function(r){var o=$jscomp.checkStringArgs(this,null,"repeat");if(0>r||1342177279>>=1)&&(o+=o);return n}},"es6","es3");var COMPILED=!0,goog=goog||{};goog.global=exports||self;goog.exportPath_=function(t,r,o){t=t.split("."),o=o||goog.global,t[0]in o||typeof o.execScript>"u"||o.execScript("var "+t[0]);for(var n;t.length&&(n=t.shift());)t.length||r===void 0?o=o[n]&&o[n]!==Object.prototype[n]?o[n]:o[n]={}:o[n]=r};goog.define=function(t,r){if(!COMPILED){var o=goog.global.CLOSURE_UNCOMPILED_DEFINES,n=goog.global.CLOSURE_DEFINES;o&&o.nodeType===void 0&&Object.prototype.hasOwnProperty.call(o,t)?r=o[t]:n&&n.nodeType===void 0&&Object.prototype.hasOwnProperty.call(n,t)&&(r=n[t])}return r};goog.FEATURESET_YEAR=2012;goog.DEBUG=!0;goog.LOCALE="en";goog.TRUSTED_SITE=!0;goog.STRICT_MODE_COMPATIBLE=!1;goog.DISALLOW_TEST_ONLY_CODE=COMPILED&&!goog.DEBUG;goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING=!1;goog.provide=function(t){if(goog.isInModuleLoader_())throw Error("goog.provide cannot be used within a module.");if(!COMPILED&&goog.isProvided_(t))throw Error('Namespace "'+t+'" already declared.');goog.constructNamespace_(t)};goog.constructNamespace_=function(t,r){if(!COMPILED){delete goog.implicitNamespaces_[t];for(var o=t;(o=o.substring(0,o.lastIndexOf(".")))&&!goog.getObjectByName(o);)goog.implicitNamespaces_[o]=!0}goog.exportPath_(t,r)};goog.getScriptNonce=function(t){return t&&t!=goog.global?goog.getScriptNonce_(t.document):(goog.cspNonce_===null&&(goog.cspNonce_=goog.getScriptNonce_(goog.global.document)),goog.cspNonce_)};goog.NONCE_PATTERN_=/^[\w+/_-]+[=]{0,2}$/;goog.cspNonce_=null;goog.getScriptNonce_=function(t){return(t=t.querySelector&&t.querySelector("script[nonce]"))&&(t=t.nonce||t.getAttribute("nonce"))&&goog.NONCE_PATTERN_.test(t)?t:""};goog.VALID_MODULE_RE_=/^[a-zA-Z_$][a-zA-Z0-9._$]*$/;goog.module=function(t){if(typeof t!="string"||!t||t.search(goog.VALID_MODULE_RE_)==-1)throw Error("Invalid module identifier");if(!goog.isInGoogModuleLoader_())throw Error("Module "+t+" has been loaded incorrectly. Note, modules cannot be loaded as normal scripts. They require some kind of pre-processing step. You're likely trying to load a module via a script tag or as a part of a concatenated bundle without rewriting the module. For more info see: https://github.com/google/closure-library/wiki/goog.module:-an-ES6-module-like-alternative-to-goog.provide.");if(goog.moduleLoaderState_.moduleName)throw Error("goog.module may only be called once per module.");if(goog.moduleLoaderState_.moduleName=t,!COMPILED){if(goog.isProvided_(t))throw Error('Namespace "'+t+'" already declared.');delete goog.implicitNamespaces_[t]}};goog.module.get=function(t){return goog.module.getInternal_(t)};goog.module.getInternal_=function(t){if(!COMPILED){if(t in goog.loadedModules_)return goog.loadedModules_[t].exports;if(!goog.implicitNamespaces_[t])return t=goog.getObjectByName(t),t??null}return null};goog.ModuleType={ES6:"es6",GOOG:"goog"};goog.moduleLoaderState_=null;goog.isInModuleLoader_=function(){return goog.isInGoogModuleLoader_()||goog.isInEs6ModuleLoader_()};goog.isInGoogModuleLoader_=function(){return!!goog.moduleLoaderState_&&goog.moduleLoaderState_.type==goog.ModuleType.GOOG};goog.isInEs6ModuleLoader_=function(){if(goog.moduleLoaderState_&&goog.moduleLoaderState_.type==goog.ModuleType.ES6)return!0;var t=goog.global.$jscomp;return t?typeof t.getCurrentModulePath!="function"?!1:!!t.getCurrentModulePath():!1};goog.module.declareLegacyNamespace=function(){if(!COMPILED&&!goog.isInGoogModuleLoader_())throw Error("goog.module.declareLegacyNamespace must be called from within a goog.module");if(!COMPILED&&!goog.moduleLoaderState_.moduleName)throw Error("goog.module must be called prior to goog.module.declareLegacyNamespace.");goog.moduleLoaderState_.declareLegacyNamespace=!0};goog.declareModuleId=function(t){if(!COMPILED){if(!goog.isInEs6ModuleLoader_())throw Error("goog.declareModuleId may only be called from within an ES6 module");if(goog.moduleLoaderState_&&goog.moduleLoaderState_.moduleName)throw Error("goog.declareModuleId may only be called once per module.");if(t in goog.loadedModules_)throw Error('Module with namespace "'+t+'" already exists.')}if(goog.moduleLoaderState_)goog.moduleLoaderState_.moduleName=t;else{var r=goog.global.$jscomp;if(!r||typeof r.getCurrentModulePath!="function")throw Error('Module with namespace "'+t+'" has been loaded incorrectly.');r=r.require(r.getCurrentModulePath()),goog.loadedModules_[t]={exports:r,type:goog.ModuleType.ES6,moduleId:t}}};goog.setTestOnly=function(t){if(goog.DISALLOW_TEST_ONLY_CODE)throw t=t||"",Error("Importing test-only code into non-debug environment"+(t?": "+t:"."))};goog.forwardDeclare=function(t){};COMPILED||(goog.isProvided_=function(t){return t in goog.loadedModules_||!goog.implicitNamespaces_[t]&&goog.getObjectByName(t)!=null},goog.implicitNamespaces_={"goog.module":!0});goog.getObjectByName=function(t,r){t=t.split("."),r=r||goog.global;for(var o=0;o"u")return"object";return r};goog.isArray=function(t){return goog.typeOf(t)=="array"};goog.isArrayLike=function(t){var r=goog.typeOf(t);return r=="array"||r=="object"&&typeof t.length=="number"};goog.isDateLike=function(t){return goog.isObject(t)&&typeof t.getFullYear=="function"};goog.isFunction=function(t){return goog.typeOf(t)=="function"};goog.isObject=function(t){var r=typeof t;return r=="object"&&t!=null||r=="function"};goog.getUid=function(t){return Object.prototype.hasOwnProperty.call(t,goog.UID_PROPERTY_)&&t[goog.UID_PROPERTY_]||(t[goog.UID_PROPERTY_]=++goog.uidCounter_)};goog.hasUid=function(t){return!!t[goog.UID_PROPERTY_]};goog.removeUid=function(t){t!==null&&"removeAttribute"in t&&t.removeAttribute(goog.UID_PROPERTY_);try{delete t[goog.UID_PROPERTY_]}catch{}};goog.UID_PROPERTY_="closure_uid_"+(1e9*Math.random()>>>0);goog.uidCounter_=0;goog.getHashCode=goog.getUid;goog.removeHashCode=goog.removeUid;goog.cloneObject=function(t){var r=goog.typeOf(t);if(r=="object"||r=="array"){if(typeof t.clone=="function")return t.clone();r=r=="array"?[]:{};for(var o in t)r[o]=goog.cloneObject(t[o]);return r}return t};goog.bindNative_=function(t,r,o){return t.call.apply(t.bind,arguments)};goog.bindJs_=function(t,r,o){if(!t)throw Error();if(2{"use strict";class X{constructor(){if(new.target!=String)throw 1;this.x=42}}let q=Reflect.construct(X,[],String);if(q.x!=42||!(q instanceof String))throw 1;for(const a of[2,3]){if(a==2)continue;function f(z={a}){let a=0;return z.a}{function f(){return 0;}}return f()==3}})()')}),a("es7",function(){return b("2 ** 2 == 4")}),a("es8",function(){return b("async () => 1, true")}),a("es9",function(){return b("({...rest} = {}), true")}),a("es_next",function(){return!1}),{target:c,map:d}},goog.Transpiler.prototype.needsTranspile=function(t,r){if(goog.TRANSPILE=="always")return!0;if(goog.TRANSPILE=="never")return!1;if(!this.requiresTranspilation_){var o=this.createRequiresTranspilation_();this.requiresTranspilation_=o.map,this.transpilationTarget_=this.transpilationTarget_||o.target}if(t in this.requiresTranspilation_)return this.requiresTranspilation_[t]?!0:!(!goog.inHtmlDocument_()||r!="es6"||"noModule"in goog.global.document.createElement("script"));throw Error("Unknown language mode: "+t)},goog.Transpiler.prototype.transpile=function(t,r){return goog.transpile_(t,r,this.transpilationTarget_)},goog.transpiler_=new goog.Transpiler,goog.protectScriptTag_=function(t){return t.replace(/<\/(SCRIPT)/ig,"\\x3c/$1")},goog.DebugLoader_=function(){this.dependencies_={},this.idToPath_={},this.written_={},this.loadingDeps_=[],this.depsToLoad_=[],this.paused_=!1,this.factory_=new goog.DependencyFactory(goog.transpiler_),this.deferredCallbacks_={},this.deferredQueue_=[]},goog.DebugLoader_.prototype.bootstrap=function(t,r){function o(){n&&(goog.global.setTimeout(n,0),n=null)}var n=r;if(t.length){r=[];for(var s=0;s<\/script>",r.write(goog.TRUSTED_TYPES_POLICY_?goog.TRUSTED_TYPES_POLICY_.createHTML(n):n)}else{var s=r.createElement("script");s.defer=goog.Dependency.defer_,s.async=!1,s.type="text/javascript",(n=goog.getScriptNonce())&&s.setAttribute("nonce",n),goog.DebugLoader_.IS_OLD_IE_?(t.pause(),s.onreadystatechange=function(){(s.readyState=="loaded"||s.readyState=="complete")&&(t.loaded(),t.resume())}):s.onload=function(){s.onload=null,t.loaded()},s.src=goog.TRUSTED_TYPES_POLICY_?goog.TRUSTED_TYPES_POLICY_.createScriptURL(this.path):this.path,r.head.appendChild(s)}}else goog.logToConsole_("Cannot use default debug loader outside of HTML documents."),this.relativePath=="deps.js"?(goog.logToConsole_("Consider setting CLOSURE_IMPORT_SCRIPT before loading base.js, or setting CLOSURE_NO_DEPS to true."),t.loaded()):t.pause()},goog.Es6ModuleDependency=function(t,r,o,n,s){goog.Dependency.call(this,t,r,o,n,s)},goog.inherits(goog.Es6ModuleDependency,goog.Dependency),goog.Es6ModuleDependency.prototype.load=function(t){function r(R,D){R=D?'