macros2-bdf45419.js 15 KB

1
  1. import{M as j,N as Sr}from"./index-808fa7dd.js";var q=Object.prototype.toString,yr=function(r){var e=q.call(r),t=e==="[object Arguments]";return t||(t=e!=="[object Array]"&&r!==null&&typeof r=="object"&&typeof r.length=="number"&&r.length>=0&&q.call(r.callee)==="[object Function]"),t},N,H;function wr(){if(H)return N;H=1;var o;if(!Object.keys){var r=Object.prototype.hasOwnProperty,e=Object.prototype.toString,t=yr,n=Object.prototype.propertyIsEnumerable,p=!n.call({toString:null},"toString"),u=n.call(function(){},"prototype"),y=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],s=function(l){var i=l.constructor;return i&&i.prototype===l},v={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},c=function(){if(typeof window>"u")return!1;for(var l in window)try{if(!v["$"+l]&&r.call(window,l)&&window[l]!==null&&typeof window[l]=="object")try{s(window[l])}catch{return!0}}catch{return!0}return!1}(),b=function(l){if(typeof window>"u"||!c)return s(l);try{return s(l)}catch{return!1}};o=function(i){var d=i!==null&&typeof i=="object",m=e.call(i)==="[object Function]",Y=t(i),hr=d&&e.call(i)==="[object String]",$=[];if(!d&&!m&&!Y)throw new TypeError("Object.keys called on a non-object");var Ar=u&&m;if(hr&&i.length>0&&!r.call(i,0))for(var k=0;k<i.length;++k)$.push(String(k));if(Y&&i.length>0)for(var _=0;_<i.length;++_)$.push(String(_));else for(var G in i)!(Ar&&G==="prototype")&&r.call(i,G)&&$.push(String(G));if(p)for(var Pr=b(i),F=0;F<y.length;++F)!(Pr&&y[F]==="constructor")&&r.call(i,y[F])&&$.push(y[F]);return $}}return N=o,N}var Or=Array.prototype.slice,Er=yr,X=Object.keys,x=X?function(r){return X(r)}:wr(),Q=Object.keys;x.shim=function(){if(Object.keys){var r=function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2);r||(Object.keys=function(t){return Er(t)?Q(Or.call(t)):Q(t)})}else Object.keys=x;return Object.keys||x};var Ir=x,$r=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},e=Symbol("test"),t=Object(e);if(typeof e=="string"||Object.prototype.toString.call(e)!=="[object Symbol]"||Object.prototype.toString.call(t)!=="[object Symbol]")return!1;var n=42;r[e]=n;for(e in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var p=Object.getOwnPropertySymbols(r);if(p.length!==1||p[0]!==e||!Object.prototype.propertyIsEnumerable.call(r,e))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var u=Object.getOwnPropertyDescriptor(r,e);if(u.value!==n||u.enumerable!==!0)return!1}return!0},Z=typeof Symbol<"u"&&Symbol,Fr=$r,jr=function(){return typeof Z!="function"||typeof Symbol!="function"||typeof Z("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Fr()},rr={foo:{}},Ur=Object,Rr=function(){return{__proto__:rr}.foo===rr.foo&&!({__proto__:null}instanceof Ur)},xr="Function.prototype.bind called on incompatible ",M=Array.prototype.slice,Br=Object.prototype.toString,Tr="[object Function]",Dr=function(r){var e=this;if(typeof e!="function"||Br.call(e)!==Tr)throw new TypeError(xr+e);for(var t=M.call(arguments,1),n,p=function(){if(this instanceof n){var c=e.apply(this,t.concat(M.call(arguments)));return Object(c)===c?c:this}else return e.apply(r,t.concat(M.call(arguments)))},u=Math.max(0,e.length-t.length),y=[],s=0;s<u;s++)y.push("$"+s);if(n=Function("binder","return function ("+y.join(",")+"){ return binder.apply(this,arguments); }")(p),e.prototype){var v=function(){};v.prototype=e.prototype,n.prototype=new v,v.prototype=null}return n},kr=Dr,lr=Function.prototype.bind||kr,_r=lr,Gr=_r.call(Function.call,Object.prototype.hasOwnProperty),a,I=SyntaxError,pr=Function,E=TypeError,C=function(o){try{return pr('"use strict"; return ('+o+").constructor;")()}catch{}},h=Object.getOwnPropertyDescriptor;if(h)try{h({},"")}catch{h=null}var W=function(){throw new E},Nr=h?function(){try{return arguments.callee,W}catch{try{return h(arguments,"callee").get}catch{return W}}}():W,P=jr(),Mr=Rr(),f=Object.getPrototypeOf||(Mr?function(o){return o.__proto__}:null),w={},Cr=typeof Uint8Array>"u"||!f?a:f(Uint8Array),A={"%AggregateError%":typeof AggregateError>"u"?a:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?a:ArrayBuffer,"%ArrayIteratorPrototype%":P&&f?f([][Symbol.iterator]()):a,"%AsyncFromSyncIteratorPrototype%":a,"%AsyncFunction%":w,"%AsyncGenerator%":w,"%AsyncGeneratorFunction%":w,"%AsyncIteratorPrototype%":w,"%Atomics%":typeof Atomics>"u"?a:Atomics,"%BigInt%":typeof BigInt>"u"?a:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?a:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?a:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?a:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?a:Float32Array,"%Float64Array%":typeof Float64Array>"u"?a:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?a:FinalizationRegistry,"%Function%":pr,"%GeneratorFunction%":w,"%Int8Array%":typeof Int8Array>"u"?a:Int8Array,"%Int16Array%":typeof Int16Array>"u"?a:Int16Array,"%Int32Array%":typeof Int32Array>"u"?a:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":P&&f?f(f([][Symbol.iterator]())):a,"%JSON%":typeof JSON=="object"?JSON:a,"%Map%":typeof Map>"u"?a:Map,"%MapIteratorPrototype%":typeof Map>"u"||!P||!f?a:f(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?a:Promise,"%Proxy%":typeof Proxy>"u"?a:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?a:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?a:Set,"%SetIteratorPrototype%":typeof Set>"u"||!P||!f?a:f(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?a:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":P&&f?f(""[Symbol.iterator]()):a,"%Symbol%":P?Symbol:a,"%SyntaxError%":I,"%ThrowTypeError%":Nr,"%TypedArray%":Cr,"%TypeError%":E,"%Uint8Array%":typeof Uint8Array>"u"?a:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?a:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?a:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?a:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?a:WeakMap,"%WeakRef%":typeof WeakRef>"u"?a:WeakRef,"%WeakSet%":typeof WeakSet>"u"?a:WeakSet};if(f)try{null.error}catch(o){var Wr=f(f(o));A["%Error.prototype%"]=Wr}var Jr=function o(r){var e;if(r==="%AsyncFunction%")e=C("async function () {}");else if(r==="%GeneratorFunction%")e=C("function* () {}");else if(r==="%AsyncGeneratorFunction%")e=C("async function* () {}");else if(r==="%AsyncGenerator%"){var t=o("%AsyncGeneratorFunction%");t&&(e=t.prototype)}else if(r==="%AsyncIteratorPrototype%"){var n=o("%AsyncGenerator%");n&&f&&(e=f(n.prototype))}return A[r]=e,e},er={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},R=lr,T=Gr,Lr=R.call(Function.call,Array.prototype.concat),Vr=R.call(Function.apply,Array.prototype.splice),tr=R.call(Function.call,String.prototype.replace),D=R.call(Function.call,String.prototype.slice),zr=R.call(Function.call,RegExp.prototype.exec),Kr=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Yr=/\\(\\)?/g,qr=function(r){var e=D(r,0,1),t=D(r,-1);if(e==="%"&&t!=="%")throw new I("invalid intrinsic syntax, expected closing `%`");if(t==="%"&&e!=="%")throw new I("invalid intrinsic syntax, expected opening `%`");var n=[];return tr(r,Kr,function(p,u,y,s){n[n.length]=y?tr(s,Yr,"$1"):u||p}),n},Hr=function(r,e){var t=r,n;if(T(er,t)&&(n=er[t],t="%"+n[0]+"%"),T(A,t)){var p=A[t];if(p===w&&(p=Jr(t)),typeof p>"u"&&!e)throw new E("intrinsic "+r+" exists, but is not available. Please file an issue!");return{alias:n,name:t,value:p}}throw new I("intrinsic "+r+" does not exist!")},z=function(r,e){if(typeof r!="string"||r.length===0)throw new E("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof e!="boolean")throw new E('"allowMissing" argument must be a boolean');if(zr(/^%?[^%]*%?$/,r)===null)throw new I("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var t=qr(r),n=t.length>0?t[0]:"",p=Hr("%"+n+"%",e),u=p.name,y=p.value,s=!1,v=p.alias;v&&(n=v[0],Vr(t,Lr([0,1],v)));for(var c=1,b=!0;c<t.length;c+=1){var l=t[c],i=D(l,0,1),d=D(l,-1);if((i==='"'||i==="'"||i==="`"||d==='"'||d==="'"||d==="`")&&i!==d)throw new I("property names with quotes must have matching quotes");if((l==="constructor"||!b)&&(s=!0),n+="."+l,u="%"+n+"%",T(A,u))y=A[u];else if(y!=null){if(!(l in y)){if(!e)throw new E("base intrinsic for "+r+" exists, but the property is not available.");return}if(h&&c+1>=t.length){var m=h(y,l);b=!!m,b&&"get"in m&&!("originalValue"in m.get)?y=m.get:y=y[l]}else b=T(y,l),y=y[l];b&&!s&&(A[u]=y)}}return y},Xr=z,L=Xr("%Object.defineProperty%",!0),V=function(){if(L)try{return L({},"a",{value:1}),!0}catch{return!1}return!1};V.hasArrayLengthDefineBug=function(){if(!V())return null;try{return L([],"length",{value:1}).length!==1}catch{return!0}};var sr=V,J,or;function Qr(){if(or)return J;or=1;var o=z,r=o("%Object.getOwnPropertyDescriptor%",!0);if(r)try{r([],"length")}catch{r=null}return J=r,J}var Zr=sr(),K=z,nr=Zr&&K("%Object.defineProperty%",!0),re=K("%SyntaxError%"),S=K("%TypeError%"),ar=Qr(),ee=function(r,e,t){if(!r||typeof r!="object"&&typeof r!="function")throw new S("`obj` must be an object or a function`");if(typeof e!="string"&&typeof e!="symbol")throw new S("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new S("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new S("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new S("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new S("`loose`, if provided, must be a boolean");var n=arguments.length>3?arguments[3]:null,p=arguments.length>4?arguments[4]:null,u=arguments.length>5?arguments[5]:null,y=arguments.length>6?arguments[6]:!1,s=!!ar&&ar(r,e);if(nr)nr(r,e,{configurable:u===null&&s?s.configurable:!u,enumerable:n===null&&s?s.enumerable:!n,value:t,writable:p===null&&s?s.writable:!p});else if(y||!n&&!p&&!u)r[e]=t;else throw new re("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},te=Ir,oe=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",ne=Object.prototype.toString,ae=Array.prototype.concat,ir=ee,ie=function(o){return typeof o=="function"&&ne.call(o)==="[object Function]"},fr=sr(),ye=function(o,r,e,t){if(r in o){if(t===!0){if(o[r]===e)return}else if(!ie(t)||!t())return}fr?ir(o,r,e,!0):ir(o,r,e)},ur=function(o,r){var e=arguments.length>2?arguments[2]:{},t=te(r);oe&&(t=ae.call(t,Object.getOwnPropertySymbols(r)));for(var n=0;n<t.length;n+=1)ye(o,t[n],r[t[n]],e[t[n]])};ur.supportsDescriptors=!!fr;var cr=ur,B={exports:{}};typeof self<"u"?B.exports=self:typeof window<"u"?B.exports=window:B.exports=Function("return this")();var gr=B.exports,le=gr,vr=function(){return typeof j!="object"||!j||j.Math!==Math||j.Array!==Array?le:j},pe=cr,se=vr,fe=function(){var r=se();if(pe.supportsDescriptors){var e=Object.getOwnPropertyDescriptor(r,"globalThis");(!e||e.configurable&&(e.enumerable||!e.writable||globalThis!==r))&&Object.defineProperty(r,"globalThis",{configurable:!0,enumerable:!1,value:r,writable:!0})}else(typeof globalThis!="object"||globalThis!==r)&&(r.globalThis=r);return r},ue=cr,ce=gr,br=vr,ge=fe,ve=br(),dr=function(){return ve};ue(dr,{getPolyfill:br,implementation:ce,shim:ge});var be=dr;const de=Sr(be),U=de(),mr={};function O(){}const me=["log","debug","info","warn","error","time","timeEnd","group","groupEnd"];me.forEach(o=>{mr[o]=O});U.console=console.hasOwnProperty("log")?console:mr;U.console.error,U.console.info,U.console.log,U.console.warn;const g=Object.create(null);g.Float32Array=Float32Array;g.Float64Array=Float64Array;g.Uint8Array=Uint8Array;g.Int8Array=Int8Array;g.Uint16Array=Uint16Array;g.Int16Array=Int16Array;g.Uint32Array=Uint32Array;g.Int32Array=Int32Array;g.Uint8ClampedArray=Uint8ClampedArray;try{g.BigInt64Array=BigInt64Array,g.BigUint64Array=BigUint64Array}catch{}