PageSourceSearch

https://carv.io/assets/text-encoding-utf-8-8n0zOTux.js

js carv.io collected 2026-10-02 04:56:28 UTC 4,607 bytes, 2 lines download raw bytes

vendor: 4,607 bytes, lines 1-2
1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},r=(new e.Error).stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="9cde9686-2210-4ac8-9d42-b8873fb337ae",e._sentryDebugIdIdentifier="sentry-dbid-9cde9686-2210-4ac8-9d42-b8873fb337ae")}catch(l){}import{g as e}from"./abort-controller-MJeV0szj.js";function r(e,r,t){return r<=e&&e<=t}function t(e){if(void 0===e)return{};if(e===Object(e))return e;throw TypeError("Could not convert argument to dictionary")}function n(e){this.tokens=[].slice.call(e)}n.prototype={endOfStream:function(){return!this.tokens.length},read:function(){return this.tokens.length?this.tokens.shift():-1},prepend:function(e){if(Array.isArray(e))for(var r=e;r.length;)this.tokens.unshift(r.pop());else this.tokens.unshift(e)},push:function(e){if(Array.isArray(e))for(var r=e;r.length;)this.tokens.push(r.shift());else this.tokens.push(e)}};var i=-1;function o(e,r){if(e)throw TypeError("Decoder error");return r||65533}var s="utf-8";function a(e,r){if(!(this instanceof a))return new a(e,r);if((e=void 0!==e?String(e).toLowerCase():s)!==s)throw new Error("Encoding not supported. Only utf-8 is supported");r=t(r),this._streaming=!1,this._BOMseen=!1,this._decoder=null,this._fatal=Boolean(r.fatal),this._ignoreBOM=Boolean(r.ignoreBOM),Object.defineProperty(this,"encoding",{value:"utf-8"}),Object.defineProperty(this,"fatal",{value:this._fatal}),Object.defineProperty(this,"ignoreBOM",{value:this._ignoreBOM})}function f(e,r){if(!(this instanceof f))return new f(e,r);if((e=void 0!==e?String(e).toLowerCase():s)!==s)throw new Error("Encoding not supported. Only utf-8 is supported");r=t(r),this._streaming=!1,this._encoder=null,this._options={fatal:Boolean(r.fatal)},Object.defineProperty(this,"encoding",{value:"utf-8"})}function u(e){var t=e.fatal,n=0,s=0,a=0,f=128,u=191;this.handler=function(e,h){if(-1===h&&0!==a)return a=0,o(t);if(-1===h)return i;if(0===a){if(r(h,0,127))return h;if(r(h,194,223))a=1,n=h-192;else if(r(h,224,239))224===h&&(f=160),237===h&&(u=159),a=2,n=h-224;else{if(!r(h,240,244))return o(t);240===h&&(f=144),244===h&&(u=143),a=3,n=h-240}return n<<=6*a,null}if(!r(h,f,u))return n=a=s=0,f=128,u=191,e.prepend(h),o(t);if(f=128,u=191,n+=h-128<<6*(a-(s+=1)),s!==a)return null;var d=n;return n=a=s=0,d}}function h(e){e.fatal,this.handler=function(e,t){if(-1===t)return i;if(r(t,0,127))return t;var n,o;r(t,128,2047)?(n=1,o=192):r(t,2048,65535)?(n=2,o=224):r(t,65536,1114111)&&(n=3,o=240);for(var s=[(t>>6*n)+o];n>0;){var a=t>>6*(n-1);s.push(128|63&a),n-=1}return s}}a.prototype={decode:function(e,r){var o;o="object"==typeof e&&e instanceof ArrayBuffer?new Uint8Array(e):"object"==typeof e&&"buffer"in e&&e.buffer instanceof ArrayBuffer?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):new Uint8Array(0),r=t(r),this._streaming||(this._decoder=new u({fatal:this._fatal}),this._BOMseen=!1),this._streaming=Boolean(r.stream);for(var s,a=new n(o),f=[];!a.endOfStream()&&(s=this._decoder.handler(a,a.read()))!==i;)null!==s&&(Array.isArray(s)?f.push.apply(f,s):f.push(s));if(!this._streaming){do{if((s=this._decoder.handler(a,a.read()))===i)break;null!==s&&(Array.isArray(s)?f.push.apply(f,s):f.push(s))}while(!a.endOfStream());this._decoder=null}return f.length&&(-1===["utf-8"].indexOf(this.encoding)||this._ignoreBOM||this._BOMseen||(65279===f[0]?(this._BOMseen=!0,f.shift()):this._BOMseen=!0)),function(e){for(var r="",t=0;t<e.length;++t){var n=e[t];n<=65535?r+=String.fromCharCode(n):(n-=65536,r+=String.fromCharCode(55296+(n>>10),56320+(1023&n)))}return r}(f)}},f.prototype={encode:function(e,r){e=e?String(e):"",r=t(r),this._streaming||(this._encoder=new h(this._options)),this._streaming=Boolean(r.stream);for(var o,s=[],a=new n(function(e){for(var r=String(e),t=r.length,n=0,i=[];n<t;){var o=r.charCodeAt(n);if(o<55296||o>57343)i.push(o);else if(56320<=o&&o<=57343)i.push(65533);else if(55296<=o&&o<=56319)if(n===t-1)i.push(65533);else{var s=e.charCodeAt(n+1);if(56320<=s&&s<=57343){var a=1023&o,f=1023&s;i.push(65536+(a<<10)+f),n+=1}else i.push(65533)}n+=1}return i}(e));!a.endOfStream()&&(o=this._encoder.handler(a,a.read()))!==i;)Array.isArray(o)?s.push.apply(s,o):s.push(o);if(!this._streaming){for(;(o=this._encoder.handler(a,a.read()))!==i;)Array.isArray(o)?s.push.apply(s,o):s.push(o);this._encoder=null}return new Uint8Array(s)}};const d=e(Object.freeze(Object.defineProperty({__proto__:null,TextDecoder:a,TextEncoder:f},Symbol.toStringTag,{value:"Module"})));export{d as r};
2//# sourceMappingURL=text-encoding-utf-8-8n0zOTux.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.