Build 533169stable
Module 439619
8,212 characters · in no known chunkDependencies
Required by (17)
Lazily required by (0)none
Requires (25)
Lazily requires (0)none
Source Raw
function(e,t,n){"use strict";var r,i=n(624462),s=n(866307),a=n(216233),o=n(333654),l=n(896758),u=n(870064),c=n(741623),d=n(913789),_=n(603763),f=n(949893),p=n(783277),h=n(658471),m=n(327709),E=n(682587),g=n(138478),A=Function,I=function(e){try{return A('"use strict"; return ('+e+").constructor;")()}catch(e){}},T=n(267768),S=n(969001),y=function(){throw new c},v=T?function(){try{return arguments.callee,y}catch(e){try{return T(arguments,"callee").get}catch(e){return y}}}():y,N=n(912877)(),C=n(428495),R=n(755311),O=n(521033),b=n(343920),D=n(357522),L={},w="u">typeof Uint8Array&&C?C(Uint8Array):r,M={__proto__:null,"%AggregateError%":"u"<typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"u"<typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":N&&C?C([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":L,"%AsyncGenerator%":L,"%AsyncGeneratorFunction%":L,"%AsyncIteratorPrototype%":L,"%Atomics%":"u"<typeof Atomics?r:Atomics,"%BigInt%":"u"<typeof BigInt?r:BigInt,"%BigInt64Array%":"u"<typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"u"<typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"u"<typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":s,"%eval%":eval,"%EvalError%":a,"%Float16Array%":"u"<typeof Float16Array?r:Float16Array,"%Float32Array%":"u"<typeof Float32Array?r:Float32Array,"%Float64Array%":"u"<typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"u"<typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":A,"%GeneratorFunction%":L,"%Int8Array%":"u"<typeof Int8Array?r:Int8Array,"%Int16Array%":"u"<typeof Int16Array?r:Int16Array,"%Int32Array%":"u"<typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":N&&C?C(C([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"u"<typeof Map?r:Map,"%MapIteratorPrototype%":"u">typeof Map&&N&&C?C(new Map()[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":i,"%Object.getOwnPropertyDescriptor%":T,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"u"<typeof Promise?r:Promise,"%Proxy%":"u"<typeof Proxy?r:Proxy,"%RangeError%":o,"%ReferenceError%":l,"%Reflect%":"u"<typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"u"<typeof Set?r:Set,"%SetIteratorPrototype%":"u">typeof Set&&N&&C?C(new Set()[Symbol.iterator]()):r,"%SharedArrayBuffer%":"u"<typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":N&&C?C(""[Symbol.iterator]()):r,"%Symbol%":N?Symbol:r,"%SyntaxError%":u,"%ThrowTypeError%":v,"%TypedArray%":w,"%TypeError%":c,"%Uint8Array%":"u"<typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"u"<typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"u"<typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"u"<typeof Uint32Array?r:Uint32Array,"%URIError%":d,"%WeakMap%":"u"<typeof WeakMap?r:WeakMap,"%WeakRef%":"u"<typeof WeakRef?r:WeakRef,"%WeakSet%":"u"<typeof WeakSet?r:WeakSet,"%Function.prototype.call%":D,"%Function.prototype.apply%":b,"%Object.defineProperty%":S,"%Object.getPrototypeOf%":R,"%Math.abs%":_,"%Math.floor%":f,"%Math.max%":p,"%Math.min%":h,"%Math.pow%":m,"%Math.round%":E,"%Math.sign%":g,"%Reflect.getPrototypeOf%":O};if(C)try{null.error}catch(e){var P=C(C(e));M["%Error.prototype%"]=P}var x=function e(t){var n;if("%AsyncFunction%"===t)n=I("async function () {}");else if("%GeneratorFunction%"===t)n=I("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=I("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&C&&(n=C(i.prototype))}return M[t]=n,n},k={__proto__:null,"%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"]},U=n(94867),G=n(353841),F=U.call(D,Array.prototype.concat),V=U.call(b,Array.prototype.splice),B=U.call(D,String.prototype.replace),H=U.call(D,String.prototype.slice),j=U.call(D,RegExp.prototype.exec),Y=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,W=/\\(\\)?/g,K=function(e){var t=H(e,0,1),n=H(e,-1);if("%"===t&&"%"!==n)throw new u("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new u("invalid intrinsic syntax, expected opening `%`");var r=[];return B(e,Y,function(e,t,n,i){r[r.length]=n?B(i,W,"$1"):t||e}),r},$=function(e,t){var n,r=e;if(G(k,r)&&(r="%"+(n=k[r])[0]+"%"),G(M,r)){var i=M[r];if(i===L&&(i=x(r)),void 0===i&&!t)throw new c("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:i}}throw new u("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new c('"allowMissing" argument must be a boolean');if(null===j(/^%?[^%]*%?$/,e))throw new u("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=K(e),r=n.length>0?n[0]:"",i=$("%"+r+"%",t),s=i.name,a=i.value,o=!1,l=i.alias;l&&(r=l[0],V(n,F([0,1],l)));for(var d=1,_=!0;d<n.length;d+=1){var f=n[d],p=H(f,0,1),h=H(f,-1);if(('"'===p||"'"===p||"`"===p||'"'===h||"'"===h||"`"===h)&&p!==h)throw new u("property names with quotes must have matching quotes");if("constructor"!==f&&_||(o=!0),r+="."+f,G(M,s="%"+r+"%"))a=M[s];else if(null!=a){if(!(f in a)){if(!t)throw new c("base intrinsic for "+e+" exists, but the property is not available.");return}if(T&&d+1>=n.length){var m=T(a,f);a=(_=!!m)&&"get"in m&&!("originalValue"in m.get)?m.get:a[f]}else _=G(a,f),a=a[f];_&&!o&&(M[s]=a)}}return a}}