跳转到内容

MediaWiki:Gadget-libPolyfill-TypedArray.prototype.at.js

来自萌娘共享

注意:在发布之后,您可能需要清除浏览器缓存才能看到所作出的更改的影响。

  • Firefox或Safari:按住Shift的同时单击刷新,或按Ctrl-F5Ctrl-R(Mac为⌘-R
  • Google Chrome:Ctrl-Shift-R(Mac为⌘-Shift-R
  • Edge:按住Ctrl的同时单击刷新,或按Ctrl-F5
/**
 * -------------------------------------------------------------------------
 * !!! DON'T MODIFY THIS PAGE MANUALLY, YOUR CHANGES WILL BE OVERWRITTEN !!!
 * -------------------------------------------------------------------------
 */
var _addText = '{{GHIACode|page=GHIA:MoegirlPediaInterfaceCodes/blob/master/src/gadgets/libPolyfill/Gadget-libPolyfill-TypedArray.prototype.at.js|user=[[U:AnnAngela]]|co-authors=GH:github-actions[bot]|longId=103d1a563ea4ccc8ff29fb55c9bcd88329a56eb5|shortId=103d1a56|summary=feat: rename (#594)|body=<nowiki>Co-authored-by: github-actions[bot] <41898282+github-actions[bot]📧users.noreply.github.com></nowiki>}}'; 

/* <pre> */

"use strict";(()=>{if(!("Int8Array"in self)||!("at"in self.Int8Array.prototype)){function CreateMethodProperty(e,t,n){var a={value:n,writable:!0,enumerable:!1,configurable:!0};Object.defineProperty(e,t,a)}function ToNumber(e){return Number(e)}function ToIntegerOrInfinity(e){var t=ToNumber(e);if(isNaN(t)||0===t||1/t===-Infinity)return 0;if(Infinity===t)return Infinity;if(-Infinity===t)return-Infinity;var n=Math.floor(Math.abs(t));return t<0&&(n=-n),n}function Call(e,t){var n=arguments.length>2?arguments[2]:[];if(!1===IsCallable(e))throw new TypeError(Object.prototype.toString.call(e)+"is not a function.");return e.apply(t,n)}function ToObject(e){if(null==e)throw TypeError();return Object(e)}function IsCallable(e){return"function"==typeof e}function GetMethod(e,t){var n,a=(n=t,ToObject(e)[n]);if(null!=a){if(!1===IsCallable(a))throw new TypeError("Method not callable: "+t);return a}}function Get(e,t){return e[t]}function Type(e){switch(typeof e){case"undefined":return"undefined";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";default:return null===e?"null":"Symbol"in self&&(e instanceof self.Symbol||e.constructor===self.Symbol)?"symbol":"object"}}function OrdinaryToPrimitive(e,t){if("string"===t)var n=["toString","valueOf"];else n=["valueOf","toString"];for(var a=0;a<n.length;++a){var i=Get(e,n[a]);if(IsCallable(i)){var o=Call(i,e);if("object"!==Type(o))return o}}throw new TypeError("Cannot convert to primitive.")}function ToPrimitive(e){var t=arguments.length>1?arguments[1]:void 0;if("object"===Type(e)){if(arguments.length<2)var n="default";else t===String?n="string":t===Number&&(n="number");var a="function"==typeof self.Symbol&&"symbol"==typeof self.Symbol.toPrimitive?GetMethod(e,self.Symbol.toPrimitive):void 0;if(void 0!==a){var i=Call(a,e,[n]);if("object"!==Type(i))return i;throw new TypeError("Cannot convert exotic object to primitive.")}return"default"===n&&(n="number"),OrdinaryToPrimitive(e,n)}return e}function ToString(e){switch(Type(e)){case"symbol":throw new TypeError("Cannot convert a Symbol value to a string");case"object":return ToString(ToPrimitive(e,String));default:return String(e)}}"defineProperty"in Object&&function(){try{return Object.defineProperty({},"test",{value:42}),!0}catch(e){return!1}}()||(e=Object.defineProperty,t=Object.prototype.hasOwnProperty.call(Object.prototype,"__defineGetter__"),n="Getters & setters cannot be defined on this javascript engine",a="A property cannot both have accessors and be writable or have a value",Object.defineProperty=function defineProperty(i,o,u){if(e&&(i===window||i===document||i===Element.prototype||i instanceof Element))return e(i,o,u);if(null===i||!(i instanceof Object||"object"==typeof i))throw new TypeError("Object.defineProperty called on non-object");if(!(u instanceof Object))throw new TypeError("Property description must be an object");var f=String(o),c="value"in u||"writable"in u,s="get"in u&&typeof u.get,l="set"in u&&typeof u.set;if(s){if(void 0===s)return i;if("function"!==s)throw new TypeError("Getter must be a function");if(!t)throw new TypeError(n);if(c)throw new TypeError(a);Object.__defineGetter__.call(i,f,u.get)}else i[f]=u.value;if(l){if(void 0===l)return i;if("function"!==l)throw new TypeError("Setter must be a function");if(!t)throw new TypeError(n);if(c)throw new TypeError(a);Object.__defineSetter__.call(i,f,u.set)}return"value"in u&&(i[f]=u.value),i}),function(e){function Type(e){switch(typeof e){case"undefined":return"undefined";case"boolean":return"boolean";case"number":return"number";case"string":return"string";default:return null===e?"null":"object"}}function Class(e){return Object.prototype.toString.call(e).replace(/^\[object *|\]$/g,"")}function IsCallable(e){return"function"==typeof e}function ToObject(e){if(null===e||e===a)throw TypeError();return Object(e)}function ToInt32(e){return 0|e}function ToUint32(e){return e>>>0}function as_signed(e,t){var n=32-t;return e<<n>>n}function as_unsigned(e,t){var n=32-t;return e<<n>>>n}function packI8(e){return[255&e]}function unpackI8(e){return as_signed(e[0],8)}function packU8(e){return[255&e]}function unpackU8(e){return as_unsigned(e[0],8)}function packU8Clamped(e){return[(e=y(Number(e)))<0?0:e>255?255:255&e]}function packI16(e){return[255&e,e>>8&255]}function unpackI16(e){return as_signed(e[1]<<8|e[0],16)}function packU16(e){return[255&e,e>>8&255]}function unpackU16(e){return as_unsigned(e[1]<<8|e[0],16)}function packI32(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]}function unpackI32(e){return as_signed(e[3]<<24|e[2]<<16|e[1]<<8|e[0],32)}function packU32(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]}function unpackU32(e){return as_unsigned(e[3]<<24|e[2]<<16|e[1]<<8|e[0],32)}function packIEEE754(e,t,n){function roundToEven(e){var t=u(e),n=e-t;return n<.5?t:n>.5||t%2?t+1:t}var a,c,y,h=(1<<t-1)-1;if(e!=e)c=(1<<t)-1,y=l(2,n-1),a=0;else if(Infinity===e||-Infinity===e)c=(1<<t)-1,y=0,a=e<0?1:0;else if(0===e)c=0,y=0,a=1/e===-Infinity?1:0;else if(a=e<0,(e=o(e))>=l(2,1-h)){c=s(u(f(e)/i),1023);var b=e/l(2,c);b<1&&(c-=1,b*=2),b>=2&&(c+=1,b/=2);var p=l(2,n);c+=h,(y=roundToEven(b*p)-p)/p>=1&&(c+=1,y=0),c>2*h&&(c=(1<<t)-1,y=0)}else c=0,y=roundToEven(e/l(2,1-h-n));var v,T=[];for(v=n;v;v-=1)T.push(y%2?1:0),y=u(y/2);for(v=t;v;v-=1)T.push(c%2?1:0),c=u(c/2);T.push(a?1:0),T.reverse();for(var O=T.join(""),j=[];O.length;)j.unshift(parseInt(O.substring(0,8),2)),O=O.substring(8);return j}function unpackIEEE754(e,t,n){var a,i,o,u,f,c,s,y,h=[];for(a=0;a<e.length;++a)for(o=e[a],i=8;i;i-=1)h.push(o%2?1:0),o>>=1;return h.reverse(),u=h.join(""),f=(1<<t-1)-1,c=parseInt(u.substring(0,1),2)?-1:1,s=parseInt(u.substring(1,1+t),2),y=parseInt(u.substring(1+t),2),s===(1<<t)-1?0!==y?NaN:Infinity*c:s>0?c*l(2,s-f)*(1+y/l(2,n)):0!==y?c*l(2,-(f-1))*(y/l(2,n)):c<0?-0:0}function unpackF64(e){return unpackIEEE754(e,11,52)}function packF64(e){return packIEEE754(e,11,52)}function unpackF32(e){return unpackIEEE754(e,8,23)}function packF32(e){return packIEEE754(e,8,23)}var t,n,a=void 0,i=Math.LN2,o=Math.abs,u=Math.floor,f=Math.log,c=Math.max,s=Math.min,l=Math.pow,y=Math.round;t=Object.defineProperty,n=!function(){try{return Object.defineProperty({},"x",{})}catch(e){return!1}}(),t&&!n||(Object.defineProperty=function(e,n,a){if(t)try{return t(e,n,a)}catch(e){}if(e!==Object(e))throw TypeError("Object.defineProperty called on non-object");return Object.prototype.__defineGetter__&&"get"in a&&Object.prototype.__defineGetter__.call(e,n,a.get),Object.prototype.__defineSetter__&&"set"in a&&Object.prototype.__defineSetter__.call(e,n,a.set),"value"in a&&(e[n]=a.value),e}),function(){function ArrayBuffer(e){if((e=ToInt32(e))<0)throw RangeError("ArrayBuffer size is not a small enough positive integer.");Object.defineProperty(this,"byteLength",{value:e}),Object.defineProperty(this,"_bytes",{value:Array(e)});for(var t=0;t<e;t+=1)this._bytes[t]=0}function $TypedArray$(){if(!arguments.length||"object"!=typeof arguments[0])return function(e){if((e=ToInt32(e))<0)throw RangeError("length is not a small enough positive integer.");Object.defineProperty(this,"length",{value:e}),Object.defineProperty(this,"byteLength",{value:e*this.BYTES_PER_ELEMENT}),Object.defineProperty(this,"buffer",{value:new ArrayBuffer(this.byteLength)}),Object.defineProperty(this,"byteOffset",{value:0})}.apply(this,arguments);if(arguments.length>=1&&"object"===Type(arguments[0])&&arguments[0]instanceof $TypedArray$)return function(e){if(this.constructor!==e.constructor)throw TypeError();var t=e.length*this.BYTES_PER_ELEMENT;Object.defineProperty(this,"buffer",{value:new ArrayBuffer(t)}),Object.defineProperty(this,"byteLength",{value:t}),Object.defineProperty(this,"byteOffset",{value:0}),Object.defineProperty(this,"length",{value:e.length});for(var n=0;n<this.length;n+=1)this._setter(n,e._getter(n))}.apply(this,arguments);if(arguments.length>=1&&"object"===Type(arguments[0])&&!(arguments[0]instanceof $TypedArray$)&&!(arguments[0]instanceof ArrayBuffer||"ArrayBuffer"===Class(arguments[0])))return function(e){var t=e.length*this.BYTES_PER_ELEMENT;Object.defineProperty(this,"buffer",{value:new ArrayBuffer(t)}),Object.defineProperty(this,"byteLength",{value:t}),Object.defineProperty(this,"byteOffset",{value:0}),Object.defineProperty(this,"length",{value:e.length});for(var n=0;n<this.length;n+=1){var a=e[n];this._setter(n,Number(a))}}.apply(this,arguments);if(arguments.length>=1&&"object"===Type(arguments[0])&&(arguments[0]instanceof ArrayBuffer||"ArrayBuffer"===Class(arguments[0])))return function(e,t,n){if((t=ToUint32(t))>e.byteLength)throw RangeError("byteOffset out of range");if(t%this.BYTES_PER_ELEMENT)throw RangeError("buffer length minus the byteOffset is not a multiple of the element size.");if(n===a){var i=e.byteLength-t;if(i%this.BYTES_PER_ELEMENT)throw RangeError("length of buffer minus byteOffset not a multiple of the element size");n=i/this.BYTES_PER_ELEMENT}else i=(n=ToUint32(n))*this.BYTES_PER_ELEMENT;if(t+i>e.byteLength)throw RangeError("byteOffset and length reference an area beyond the end of the buffer");Object.defineProperty(this,"buffer",{value:e}),Object.defineProperty(this,"byteLength",{value:i}),Object.defineProperty(this,"byteOffset",{value:t}),Object.defineProperty(this,"length",{value:n})}.apply(this,arguments);throw TypeError()}function makeTypedArray(n,a,i){var TypedArray=function(){Object.defineProperty(this,"constructor",{value:TypedArray}),$TypedArray$.apply(this,arguments),function makeArrayAccessors(t){function makeArrayAccessor(e){try{Object.defineProperty(t,e,{get:function(){return t._getter(e)},set:function(n){t._setter(e,n)},enumerable:!0,configurable:!1})}catch(e){}}if(!("TYPED_ARRAY_POLYFILL_NO_ARRAY_ACCESSORS"in e)){if(t.length>1e5)throw RangeError("Array too large for polyfill");var n;for(n=0;n<t.length;n+=1)makeArrayAccessor(n)}}(this)};"__proto__"in TypedArray?TypedArray.__proto__=$TypedArray$:(TypedArray.from=$TypedArray$.from,TypedArray.of=$TypedArray$.of),TypedArray.BYTES_PER_ELEMENT=n;var TypedArrayPrototype=function(){};return TypedArrayPrototype.prototype=t,TypedArray.prototype=new TypedArrayPrototype,Object.defineProperty(TypedArray.prototype,"BYTES_PER_ELEMENT",{value:n}),
Object.defineProperty(TypedArray.prototype,"_pack",{value:a}),Object.defineProperty(TypedArray.prototype,"_unpack",{value:i}),TypedArray}e.ArrayBuffer=e.ArrayBuffer||ArrayBuffer,Object.defineProperty($TypedArray$,"from",{value:function(e){return new this(e)}}),Object.defineProperty($TypedArray$,"of",{value:function(){return new this(arguments)}});var t={};$TypedArray$.prototype=t,Object.defineProperty($TypedArray$.prototype,"_getter",{value:function(e){if(arguments.length<1)throw SyntaxError("Not enough arguments");if((e=ToUint32(e))>=this.length)return a;var t,n,i=[];for(t=0,n=this.byteOffset+e*this.BYTES_PER_ELEMENT;t<this.BYTES_PER_ELEMENT;t+=1,n+=1)i.push(this.buffer._bytes[n]);return this._unpack(i)}}),Object.defineProperty($TypedArray$.prototype,"get",{value:$TypedArray$.prototype._getter}),Object.defineProperty($TypedArray$.prototype,"_setter",{value:function(e,t){if(arguments.length<2)throw SyntaxError("Not enough arguments");if(!((e=ToUint32(e))>=this.length)){var n,a,i=this._pack(t);for(n=0,a=this.byteOffset+e*this.BYTES_PER_ELEMENT;n<this.BYTES_PER_ELEMENT;n+=1,a+=1)this.buffer._bytes[a]=i[n]}}}),Object.defineProperty($TypedArray$.prototype,"constructor",{value:$TypedArray$}),Object.defineProperty($TypedArray$.prototype,"copyWithin",{value:function(e,t){var n=arguments[2],i=ToObject(this),o=ToUint32(i.length);o=c(o,0);var u,f=ToInt32(e);u=f<0?c(o+f,0):s(f,o);var l,y,h,b=ToInt32(t);l=b<0?c(o+b,0):s(b,o),h=(y=n===a?o:ToInt32(n))<0?c(o+y,0):s(y,o);var p,v=s(h-l,o-u);for(l<u&&u<l+v?(p=-1,l=l+v-1,u=u+v-1):p=1;v>0;)i._setter(u,i._getter(l)),l+=p,u+=p,v-=1;return i}}),Object.defineProperty($TypedArray$.prototype,"every",{value:function(e){if(this===a||null===this)throw TypeError();var t=Object(this),n=ToUint32(t.length);if(!IsCallable(e))throw TypeError();for(var i=arguments[1],o=0;o<n;o++)if(!e.call(i,t._getter(o),o,t))return!1;return!0}}),Object.defineProperty($TypedArray$.prototype,"fill",{value:function(e){var t=arguments[1],n=arguments[2],i=ToObject(this),o=ToUint32(i.length);o=c(o,0);var u,f,l,y=ToInt32(t);for(u=y<0?c(o+y,0):s(y,o),l=(f=n===a?o:ToInt32(n))<0?c(o+f,0):s(f,o);u<l;)i._setter(u,e),u+=1;return i}}),Object.defineProperty($TypedArray$.prototype,"filter",{value:function(e){if(this===a||null===this)throw TypeError();var t=Object(this),n=ToUint32(t.length);if(!IsCallable(e))throw TypeError();for(var i=[],o=arguments[1],u=0;u<n;u++){var f=t._getter(u);e.call(o,f,u,t)&&i.push(f)}return new this.constructor(i)}}),Object.defineProperty($TypedArray$.prototype,"find",{value:function(e){var t=ToObject(this),n=ToUint32(t.length);if(!IsCallable(e))throw TypeError();for(var i=arguments.length>1?arguments[1]:a,o=0;o<n;){var u=t._getter(o),f=e.call(i,u,o,t);if(Boolean(f))return u;++o}return a}}),Object.defineProperty($TypedArray$.prototype,"findIndex",{value:function(e){var t=ToObject(this),n=ToUint32(t.length);if(!IsCallable(e))throw TypeError();for(var i=arguments.length>1?arguments[1]:a,o=0;o<n;){var u=t._getter(o),f=e.call(i,u,o,t);if(Boolean(f))return o;++o}return-1}}),Object.defineProperty($TypedArray$.prototype,"forEach",{value:function(e){if(this===a||null===this)throw TypeError();var t=Object(this),n=ToUint32(t.length);if(!IsCallable(e))throw TypeError();for(var i=arguments[1],o=0;o<n;o++)e.call(i,t._getter(o),o,t)}}),Object.defineProperty($TypedArray$.prototype,"indexOf",{value:function(e){if(this===a||null===this)throw TypeError();var t=Object(this),n=ToUint32(t.length);if(0===n)return-1;var i=0;if(arguments.length>0&&((i=Number(arguments[1]))!=i?i=0:0!==i&&i!==1/0&&i!==-1/0&&(i=(i>0||-1)*u(o(i)))),i>=n)return-1;for(var f=i>=0?i:c(n-o(i),0);f<n;f++)if(t._getter(f)===e)return f;return-1}}),Object.defineProperty($TypedArray$.prototype,"join",{value:function(e){if(this===a||null===this)throw TypeError();for(var t=Object(this),n=ToUint32(t.length),i=Array(n),o=0;o<n;++o)i[o]=t._getter(o);return i.join(e===a?",":e)}}),Object.defineProperty($TypedArray$.prototype,"lastIndexOf",{value:function(e){if(this===a||null===this)throw TypeError();var t=Object(this),n=ToUint32(t.length);if(0===n)return-1;var i=n;arguments.length>1&&((i=Number(arguments[1]))!=i?i=0:0!==i&&i!==1/0&&i!==-1/0&&(i=(i>0||-1)*u(o(i))));for(var f=i>=0?s(i,n-1):n-o(i);f>=0;f--)if(t._getter(f)===e)return f;return-1}}),Object.defineProperty($TypedArray$.prototype,"map",{value:function(e){if(this===a||null===this)throw TypeError();var t=Object(this),n=ToUint32(t.length);if(!IsCallable(e))throw TypeError();var i=[];i.length=n;for(var o=arguments[1],u=0;u<n;u++)i[u]=e.call(o,t._getter(u),u,t);return new this.constructor(i)}}),Object.defineProperty($TypedArray$.prototype,"reduce",{value:function(e){if(this===a||null===this)throw TypeError();var t=Object(this),n=ToUint32(t.length);if(!IsCallable(e))throw TypeError();if(0===n&&1===arguments.length)throw TypeError();var i,o=0;for(i=arguments.length>=2?arguments[1]:t._getter(o++);o<n;)i=e.call(a,i,t._getter(o),o,t),o++;return i}}),Object.defineProperty($TypedArray$.prototype,"reduceRight",{value:function(e){if(this===a||null===this)throw TypeError();var t=Object(this),n=ToUint32(t.length);if(!IsCallable(e))throw TypeError();if(0===n&&1===arguments.length)throw TypeError();var i,o=n-1;for(i=arguments.length>=2?arguments[1]:t._getter(o--);o>=0;)i=e.call(a,i,t._getter(o),o,t),o--;return i}}),Object.defineProperty($TypedArray$.prototype,"reverse",{value:function(){if(this===a||null===this)throw TypeError();for(var e=Object(this),t=ToUint32(e.length),n=u(t/2),i=0,o=t-1;i<n;++i,--o){var f=e._getter(i);e._setter(i,e._getter(o)),e._setter(o,f)}return e}}),Object.defineProperty($TypedArray$.prototype,"set",{value:function(e,t){if(arguments.length<1)throw SyntaxError("Not enough arguments");var n,a,i,o,u,f,c,s,l,y;if("object"==typeof e&&e.constructor===this.constructor){if(n=e,(i=ToUint32(t))+n.length>this.length)throw RangeError("Offset plus length of array is out of range");if(s=this.byteOffset+i*this.BYTES_PER_ELEMENT,l=n.length*this.BYTES_PER_ELEMENT,n.buffer===this.buffer){for(y=[],u=0,f=n.byteOffset;u<l;u+=1,f+=1)y[u]=n.buffer._bytes[f];for(u=0,c=s;u<l;u+=1,c+=1)this.buffer._bytes[c]=y[u]}else for(u=0,f=n.byteOffset,c=s;u<l;u+=1,f+=1,c+=1)this.buffer._bytes[c]=n.buffer._bytes[f]}else{if("object"!=typeof e||void 0===e.length)throw TypeError("Unexpected argument type(s)");if(o=ToUint32((a=e).length),(i=ToUint32(t))+o>this.length)throw RangeError("Offset plus length of array is out of range");for(u=0;u<o;u+=1)f=a[u],this._setter(i+u,Number(f))}}}),Object.defineProperty($TypedArray$.prototype,"slice",{value:function(e,t){for(var n=ToObject(this),i=ToUint32(n.length),o=ToInt32(e),u=o<0?c(i+o,0):s(o,i),f=t===a?i:ToInt32(t),l=f<0?c(i+f,0):s(f,i),y=l-u,h=new(0,n.constructor)(y),b=0;u<l;){var p=n._getter(u);h._setter(b,p),++u,++b}return h}}),Object.defineProperty($TypedArray$.prototype,"some",{value:function(e){if(this===a||null===this)throw TypeError();var t=Object(this),n=ToUint32(t.length);if(!IsCallable(e))throw TypeError();for(var i=arguments[1],o=0;o<n;o++)if(e.call(i,t._getter(o),o,t))return!0;return!1}}),Object.defineProperty($TypedArray$.prototype,"sort",{value:function(e){if(this===a||null===this)throw TypeError();for(var t=Object(this),n=ToUint32(t.length),i=Array(n),o=0;o<n;++o)i[o]=t._getter(o);for(i.sort(function sortCompare(t,n){return t!=t&&n!=n?0:t!=t?1:n!=n?-1:e!==a?e(t,n):t<n?-1:t>n?1:0}),o=0;o<n;++o)t._setter(o,i[o]);return t}}),Object.defineProperty($TypedArray$.prototype,"subarray",{value:function(e,t){function clamp(e,t,n){return e<t?t:e>n?n:e}e=ToInt32(e),t=ToInt32(t),arguments.length<1&&(e=0),arguments.length<2&&(t=this.length),e<0&&(e=this.length+e),t<0&&(t=this.length+t),e=clamp(e,0,this.length);var n=(t=clamp(t,0,this.length))-e;return n<0&&(n=0),new this.constructor(this.buffer,this.byteOffset+e*this.BYTES_PER_ELEMENT,n)}});var n=makeTypedArray(1,packI8,unpackI8),i=makeTypedArray(1,packU8,unpackU8),f=makeTypedArray(1,packU8Clamped,unpackU8),l=makeTypedArray(2,packI16,unpackI16),y=makeTypedArray(2,packU16,unpackU16),h=makeTypedArray(4,packI32,unpackI32),b=makeTypedArray(4,packU32,unpackU32),p=makeTypedArray(4,packF32,unpackF32),v=makeTypedArray(8,packF64,unpackF64);e.Int8Array=e.Int8Array||n,e.Uint8Array=e.Uint8Array||i,e.Uint8ClampedArray=e.Uint8ClampedArray||f,e.Int16Array=e.Int16Array||l,e.Uint16Array=e.Uint16Array||y,e.Int32Array=e.Int32Array||h,e.Uint32Array=e.Uint32Array||b,e.Float32Array=e.Float32Array||p,e.Float64Array=e.Float64Array||v}(),function(){function r(e,t){return IsCallable(e.get)?e.get(t):e[t]}function DataView(e,t,n){if(!(e instanceof ArrayBuffer||"ArrayBuffer"===Class(e)))throw TypeError();if((t=ToUint32(t))>e.byteLength)throw RangeError("byteOffset out of range");if(t+(n=n===a?e.byteLength-t:ToUint32(n))>e.byteLength)throw RangeError("byteOffset and length reference an area beyond the end of the buffer");Object.defineProperty(this,"buffer",{value:e}),Object.defineProperty(this,"byteLength",{value:n}),Object.defineProperty(this,"byteOffset",{value:t})}function makeGetter(e){return function GetViewValue(t,a){if((t=ToUint32(t))+e.BYTES_PER_ELEMENT>this.byteLength)throw RangeError("Array index out of range");t+=this.byteOffset;for(var i=new Uint8Array(this.buffer,t,e.BYTES_PER_ELEMENT),o=[],u=0;u<e.BYTES_PER_ELEMENT;u+=1)o.push(r(i,u));return Boolean(a)===Boolean(n)&&o.reverse(),r(new e(new Uint8Array(o).buffer),0)}}function makeSetter(e){return function SetViewValue(t,a,i){if((t=ToUint32(t))+e.BYTES_PER_ELEMENT>this.byteLength)throw RangeError("Array index out of range");var o,u=new e([a]),f=new Uint8Array(u.buffer),c=[];for(o=0;o<e.BYTES_PER_ELEMENT;o+=1)c.push(r(f,o));Boolean(i)===Boolean(n)&&c.reverse(),new Uint8Array(this.buffer,t,e.BYTES_PER_ELEMENT).set(c)}}var t,n=(t=new Uint16Array([4660]),18===r(new Uint8Array(t.buffer),0));Object.defineProperty(DataView.prototype,"getUint8",{value:makeGetter(Uint8Array)}),Object.defineProperty(DataView.prototype,"getInt8",{value:makeGetter(Int8Array)}),Object.defineProperty(DataView.prototype,"getUint16",{value:makeGetter(Uint16Array)}),Object.defineProperty(DataView.prototype,"getInt16",{value:makeGetter(Int16Array)}),Object.defineProperty(DataView.prototype,"getUint32",{value:makeGetter(Uint32Array)}),
Object.defineProperty(DataView.prototype,"getInt32",{value:makeGetter(Int32Array)}),Object.defineProperty(DataView.prototype,"getFloat32",{value:makeGetter(Float32Array)}),Object.defineProperty(DataView.prototype,"getFloat64",{value:makeGetter(Float64Array)}),Object.defineProperty(DataView.prototype,"setUint8",{value:makeSetter(Uint8Array)}),Object.defineProperty(DataView.prototype,"setInt8",{value:makeSetter(Int8Array)}),Object.defineProperty(DataView.prototype,"setUint16",{value:makeSetter(Uint16Array)}),Object.defineProperty(DataView.prototype,"setInt16",{value:makeSetter(Int16Array)}),Object.defineProperty(DataView.prototype,"setUint32",{value:makeSetter(Uint32Array)}),Object.defineProperty(DataView.prototype,"setInt32",{value:makeSetter(Int32Array)}),Object.defineProperty(DataView.prototype,"setFloat32",{value:makeSetter(Float32Array)}),Object.defineProperty(DataView.prototype,"setFloat64",{value:makeSetter(Float64Array)}),e.DataView=e.DataView||DataView}()}(self),function(){function at(e){var t=this.length,n=ToIntegerOrInfinity(e),a=n>=0?n:t+n;if(!(a<0||a>=t))return function getTypedArrayIndex(e,t){return typedArraysSupportIndexLookup?e[t]:e._getter(t)}(this,ToString(a))}var typedArraysSupportIndexLookup=function(){var e=new Uint8Array(2);return e[0]=42,42===e[0]};"__proto__"in self.Int8Array.prototype?CreateMethodProperty(self.Int8Array.prototype.__proto__,"at",at):(CreateMethodProperty(self.Int8Array.prototype,"at",at),CreateMethodProperty(self.Uint8Array.prototype,"at",at),CreateMethodProperty(self.Uint8ClampedArray.prototype,"at",at),CreateMethodProperty(self.Int16Array.prototype,"at",at),CreateMethodProperty(self.Uint16Array.prototype,"at",at),CreateMethodProperty(self.Int32Array.prototype,"at",at),CreateMethodProperty(self.Uint32Array.prototype,"at",at),CreateMethodProperty(self.Float32Array.prototype,"at",at),CreateMethodProperty(self.Float64Array.prototype,"at",at))}()}var e,t,n,a})(); 

/* </pre> */