fix(es/transforms/base): Reimplement hygiene (#2408)

swc_ecma_transforms_base:
 - Reimplement `hygiene`.
This commit is contained in:
Donny/강동윤 2021-10-21 14:12:50 +09:00 committed by GitHub
parent ecf0d7507c
commit 26944e159d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2243 changed files with 22772 additions and 21801 deletions

5
Cargo.lock generated
View File

@ -2601,7 +2601,7 @@ dependencies = [
[[package]]
name = "swc_ecma_codegen"
version = "0.77.0"
version = "0.77.1"
dependencies = [
"bitflags",
"memchr",
@ -2788,7 +2788,7 @@ dependencies = [
[[package]]
name = "swc_ecma_transforms_base"
version = "0.40.0"
version = "0.40.1"
dependencies = [
"once_cell",
"phf",
@ -2804,6 +2804,7 @@ dependencies = [
"swc_ecma_utils",
"swc_ecma_visit",
"testing",
"tracing",
]
[[package]]

View File

@ -20,7 +20,9 @@ use swc_ecma_ast::{
ModuleDecl, Str,
};
use swc_ecma_transforms_base::resolver::resolver_with_mark;
use swc_ecma_visit::{noop_visit_type, FoldWith, Node, Visit, VisitWith};
use swc_ecma_visit::{
noop_visit_mut_type, noop_visit_type, FoldWith, Node, Visit, VisitMut, VisitMutWith, VisitWith,
};
/// Module after applying transformations.
#[derive(Debug, Clone)]
pub(crate) struct TransformedModule {
@ -126,12 +128,14 @@ where
fn analyze(
&self,
file_name: &FileName,
data: ModuleData,
mut data: ModuleData,
) -> Result<(TransformedModule, Vec<(Source, Lrc<FileName>)>), Error> {
self.run(|| {
tracing::trace!("transform_module({})", data.fm.name);
let (id, local_mark, export_mark) = self.scope.module_id_gen.gen(file_name);
data.module.visit_mut_with(&mut ClearMark);
let mut module = data.module.fold_with(&mut resolver_with_mark(local_mark));
// {
@ -475,3 +479,13 @@ impl Visit for Es6ModuleDetector {
}
}
}
#[derive(Clone, Copy)]
struct ClearMark;
impl VisitMut for ClearMark {
noop_visit_mut_type!();
fn visit_mut_ident(&mut self, ident: &mut Ident) {
ident.span.ctxt = SyntaxContext::empty();
}
}

View File

@ -1,4 +1,4 @@
const a1 = 'a';
const c1 = 'c';
export { a1 as a };
export { c1 as c };
const a = 'a';
const c = 'c';
export { a as a };
export { c as c };

View File

@ -1,4 +1,4 @@
const a1 = 'a';
const c1 = 'c';
export { a1 as a };
export { c1 as c };
const a = 'a';
const c = 'c';
export { a as a };
export { c as c };

View File

@ -1,4 +1,4 @@
const dbPool1 = 1;
const dbPool = 1;
function d() {
}
async function fn() {
@ -12,4 +12,4 @@ function router() {
fn1();
}
router();
export { dbPool1 as dbPool };
export { dbPool as dbPool };

View File

@ -1,4 +1,4 @@
const dbPool1 = 1;
const dbPool = 1;
function d() {
}
async function fn() {
@ -12,4 +12,4 @@ function router() {
fn1();
}
router();
export { dbPool1 as dbPool };
export { dbPool as dbPool };

View File

@ -1,6 +1,6 @@
async function foo1() {
async function foo() {
}
const mod = {
foo: foo1
foo: foo
};
export { mod as foo };

View File

@ -1,6 +1,6 @@
async function foo1() {
async function foo() {
}
const mod = {
foo: foo1
foo: foo
};
export { mod as foo };

View File

@ -1,5 +1,5 @@
class Zone1 {
class Zone {
}
class FixedOffsetZone1 extends Zone1 {
class FixedOffsetZone extends Zone {
}
export { Zone1 as Zone, FixedOffsetZone1 as FixedOffsetZone };
export { Zone as Zone, FixedOffsetZone as FixedOffsetZone };

View File

@ -1,5 +1,5 @@
class Zone1 {
class Zone {
}
class FixedOffsetZone1 extends Zone1 {
class FixedOffsetZone extends Zone {
}
export { Zone1 as Zone, FixedOffsetZone1 as FixedOffsetZone };
export { Zone as Zone, FixedOffsetZone as FixedOffsetZone };

View File

@ -1,10 +1,10 @@
class Zone1 {
class Zone {
}
class FixedOffsetZone1 extends Zone1 {
class FixedOffsetZone extends Zone {
}
class Info1 {
class Info {
use() {
console.log(FixedOffsetZone1);
console.log(FixedOffsetZone);
}
}
export { Zone1 as Zone, Info1 as Info, FixedOffsetZone1 as FixedOffsetZone };
export { Zone as Zone, Info as Info, FixedOffsetZone as FixedOffsetZone };

View File

@ -1,10 +1,10 @@
class Zone1 {
class Zone {
}
class FixedOffsetZone1 extends Zone1 {
class FixedOffsetZone extends Zone {
}
class Info1 {
class Info {
use() {
console.log(FixedOffsetZone1);
console.log(FixedOffsetZone);
}
}
export { Zone1 as Zone, Info1 as Info, FixedOffsetZone1 as FixedOffsetZone };
export { Zone as Zone, Info as Info, FixedOffsetZone as FixedOffsetZone };

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1,4 +1,4 @@
const showValue1 = (v)=>{
const showValue = (v)=>{
if (v === 0) {
return showList([
v
@ -7,11 +7,11 @@ const showValue1 = (v)=>{
return `${v}`;
};
const showList = (v)=>{
return `[${v.map(showValue1).join(', ')}]`;
return `[${v.map(showValue).join(', ')}]`;
};
console.log(showList([
1,
2,
3
]));
export { showValue1 as showValue };
export { showValue as showValue };

View File

@ -1,4 +1,4 @@
const showValue1 = (v)=>{
const showValue = (v)=>{
if (v === 0) {
return showList([
v
@ -7,11 +7,11 @@ const showValue1 = (v)=>{
return `${v}`;
};
const showList = (v)=>{
return `[${v.map(showValue1).join(', ')}]`;
return `[${v.map(showValue).join(', ')}]`;
};
console.log(showList([
1,
2,
3
]));
export { showValue1 as showValue };
export { showValue as showValue };

View File

@ -146,7 +146,7 @@ function noop() {
}
var on = noop;
var addListener = noop;
var once1 = noop;
var once = noop;
var off = noop;
var removeListener = noop;
var removeAllListeners = noop;
@ -203,7 +203,7 @@ var process = {
versions,
on,
addListener,
once: once1,
once,
off,
removeListener,
removeAllListeners,
@ -548,8 +548,8 @@ const DEFAULTS = {
};
const endpoint = withDefaults(null, DEFAULTS);
class Deprecation extends Error {
constructor(message){
super(message);
constructor(message2){
super(message2);
if (Error.captureStackTrace) {
Error.captureStackTrace(this, this.constructor);
}
@ -579,12 +579,12 @@ function wrappy(fn, cb) {
return ret;
}
}
var once_1 = wrappy_1(once4);
var once_1 = wrappy_1(once1);
var strict = wrappy_1(onceStrict);
once4.proto = once4(function() {
once1.proto = once1(function() {
Object.defineProperty(Function.prototype, "once", {
value: function() {
return once4(this);
return once1(this);
},
configurable: true
});
@ -595,7 +595,7 @@ once4.proto = once4(function() {
configurable: true
});
});
function once4(fn) {
function once1(fn) {
var f = function() {
if (f.called) return f.value;
f.called = true;
@ -619,8 +619,8 @@ once_1.strict = strict;
const logOnce = once_1((deprecation2)=>console.warn(deprecation2)
);
class RequestError extends Error {
constructor(message, statusCode, options){
super(message);
constructor(message1, statusCode, options){
super(message1);
if (Error.captureStackTrace) {
Error.captureStackTrace(this, this.constructor);
}
@ -772,11 +772,11 @@ const request = withDefaults1(endpoint, {
"user-agent": `octokit-request.js/${VERSION1} ${getUserAgent()}`
}
});
const { data } = await request('GET /repos/{owner}/{repo}/license', {
const { data: data1 } = await request('GET /repos/{owner}/{repo}/license', {
headers: {
authorization: `token ${Deno.env.get('GITHUB_TOKEN')}`
},
owner: 'denoland',
repo: 'deno'
});
console.log(data.license.name);
console.log(data1.license.name);

View File

@ -146,7 +146,7 @@ function noop() {
}
var on = noop;
var addListener = noop;
var once1 = noop;
var once = noop;
var off = noop;
var removeListener = noop;
var removeAllListeners = noop;
@ -203,7 +203,7 @@ var process = {
versions,
on,
addListener,
once: once1,
once,
off,
removeListener,
removeAllListeners,
@ -548,8 +548,8 @@ const DEFAULTS = {
};
const endpoint = withDefaults(null, DEFAULTS);
class Deprecation extends Error {
constructor(message){
super(message);
constructor(message2){
super(message2);
if (Error.captureStackTrace) {
Error.captureStackTrace(this, this.constructor);
}
@ -579,12 +579,12 @@ function wrappy(fn, cb) {
return ret;
}
}
var once_1 = wrappy_1(once4);
var once_1 = wrappy_1(once1);
var strict = wrappy_1(onceStrict);
once4.proto = once4(function() {
once1.proto = once1(function() {
Object.defineProperty(Function.prototype, "once", {
value: function() {
return once4(this);
return once1(this);
},
configurable: true
});
@ -595,7 +595,7 @@ once4.proto = once4(function() {
configurable: true
});
});
function once4(fn) {
function once1(fn) {
var f = function() {
if (f.called) return f.value;
f.called = true;
@ -619,8 +619,8 @@ once_1.strict = strict;
const logOnce = once_1((deprecation2)=>console.warn(deprecation2)
);
class RequestError extends Error {
constructor(message, statusCode, options){
super(message);
constructor(message1, statusCode, options){
super(message1);
if (Error.captureStackTrace) {
Error.captureStackTrace(this, this.constructor);
}
@ -772,11 +772,11 @@ const request = withDefaults1(endpoint, {
"user-agent": `octokit-request.js/${VERSION1} ${getUserAgent()}`
}
});
const { data } = await request('GET /repos/{owner}/{repo}/license', {
const { data: data1 } = await request('GET /repos/{owner}/{repo}/license', {
headers: {
authorization: `token ${Deno.env.get('GITHUB_TOKEN')}`
},
owner: 'denoland',
repo: 'deno'
});
console.log(data.license.name);
console.log(data1.license.name);

View File

@ -2,14 +2,14 @@ const m = "test";
if (!m) {
throw new Error('b');
}
class Comparator1 {
class Comparator {
constructor(comp, optionsOrLoose = {
}){
}
parse(comp) {
parse(comp1) {
const m = "another";
if (!m) {
throw new TypeError("Invalid comparator: " + comp);
throw new TypeError("Invalid comparator: " + comp1);
}
const m1 = m[1];
console.log(m1);
@ -18,6 +18,6 @@ class Comparator1 {
}
}
}
const x = new Comparator1('boo');
const x = new Comparator('boo');
x.parse('test');
export { Comparator1 as Comparator };
export { Comparator as Comparator };

View File

@ -2,14 +2,14 @@ const m = "test";
if (!m) {
throw new Error('b');
}
class Comparator1 {
class Comparator {
constructor(comp, optionsOrLoose = {
}){
}
parse(comp) {
parse(comp1) {
const m = "another";
if (!m) {
throw new TypeError("Invalid comparator: " + comp);
throw new TypeError("Invalid comparator: " + comp1);
}
const m1 = m[1];
console.log(m1);
@ -18,6 +18,6 @@ class Comparator1 {
}
}
}
const x = new Comparator1('boo');
const x = new Comparator('boo');
x.parse('test');
export { Comparator1 as Comparator };
export { Comparator as Comparator };

View File

@ -1,4 +1,4 @@
const f = ()=>"hello world"
;
const any1 = f;
export { any1 as any };
const any = f;
export { any as any };

View File

@ -1,4 +1,4 @@
const f = ()=>"hello world"
;
const any1 = f;
export { any1 as any };
const any = f;
export { any as any };

View File

@ -3,7 +3,7 @@ class MyError extends Error {
super("I'm in?");
}
}
function example1() {
function example() {
throw new MyError();
}
export { example1 as example };
export { example as example };

View File

@ -3,7 +3,7 @@ class MyError extends Error {
super("I'm in?");
}
}
function example1() {
function example() {
throw new MyError();
}
export { example1 as example };
export { example as example };

View File

@ -3,7 +3,7 @@ class MyError extends Error {
super("I'm in?");
}
}
function example1() {
function example() {
throw new MyError();
}
export { example1 as example };
export { example as example };

View File

@ -3,7 +3,7 @@ class MyError extends Error {
super("I'm in?");
}
}
function example1() {
function example() {
throw new MyError();
}
export { example1 as example };
export { example as example };

View File

@ -1,7 +1,7 @@
function foo1() {
function foo() {
}
export { foo1 as foo };
export { foo as foo };
const mod = {
foo: foo1
foo
};
export { mod as lib };

View File

@ -1,7 +1,7 @@
function foo1() {
function foo() {
}
export { foo1 as foo };
export { foo as foo };
const mod = {
foo: foo1
foo
};
export { mod as lib };

View File

@ -1,27 +1,27 @@
var G = Object.create, _ = Object.defineProperty, J = Object.getPrototypeOf, K = Object.prototype.hasOwnProperty, Q = Object.getOwnPropertyNames, X = Object.getOwnPropertyDescriptor;
var Z = (e)=>_(e, "__esModule", {
var G1 = Object.create, _1 = Object.defineProperty, J1 = Object.getPrototypeOf, K1 = Object.prototype.hasOwnProperty, Q1 = Object.getOwnPropertyNames, X1 = Object.getOwnPropertyDescriptor;
var Z1 = (e)=>_1(e, "__esModule", {
value: !0
})
;
var g = (e, r)=>()=>(r || (r = {
var g1 = (e, r)=>()=>(r || (r = {
exports: {
}
}, e(r.exports, r)), r.exports)
;
var ee = (e, r, t)=>{
if (Z(e), r && typeof r == "object" || typeof r == "function") for (let n of Q(r))!K.call(e, n) && n !== "default" && _(e, n, {
var ee1 = (e, r, t)=>{
if (Z1(e), r && typeof r == "object" || typeof r == "function") for (let n of Q1(r))!K1.call(e, n) && n !== "default" && _1(e, n, {
get: ()=>r[n]
,
enumerable: !(t = X(r, n)) || t.enumerable
enumerable: !(t = X1(r, n)) || t.enumerable
});
return e;
}, re = (e)=>e && e.__esModule ? e : ee(_(e != null ? G(J(e)) : {
}, re1 = (e)=>e && e.__esModule ? e : ee1(_1(e != null ? G1(J1(e)) : {
}, "default", {
value: e,
enumerable: !0
}), e)
;
var P = g((Te, k)=>{
var P1 = g1((Te, k)=>{
"use strict";
var $ = Object.getOwnPropertySymbols, te = Object.prototype.hasOwnProperty, ne = Object.prototype.propertyIsEnumerable;
function oe(e) {
@ -61,9 +61,9 @@ var P = g((Te, k)=>{
return n;
};
});
var z = g((u)=>{
var z1 = g1((u)=>{
"use strict";
var E = P(), y = 60103, b = 60106;
var E = P1(), y = 60103, b = 60106;
u.Fragment = 60107;
u.StrictMode = 60108;
u.Profiler = 60114;
@ -363,11 +363,11 @@ var z = g((u)=>{
};
u.version = "17.0.1";
});
var W = g((Be, H)=>{
var W1 = g1((Be, H)=>{
"use strict";
H.exports = z();
H.exports = z1();
});
var Y = re(W()), { Fragment: ae , StrictMode: pe , Profiler: ye , Suspense: de , Children: ve , Component: me , PureComponent: he , __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: _e , cloneElement: ge , createContext: Ee , createElement: Oe , createFactory: je , createRef: Se , forwardRef: Ce , isValidElement: Re , lazy: ke , memo: $e , useCallback: Pe , useContext: be , useDebugValue: we , useEffect: xe , useImperativeHandle: Ie , useLayoutEffect: Ne , useMemo: qe , useReducer: Ae , useRef: Fe , useState: Le , version: Ue } = Y, De = Y;
var Y1 = re1(W1()), { Fragment: ae1 , StrictMode: pe1 , Profiler: ye1 , Suspense: de1 , Children: ve1 , Component: me1 , PureComponent: he1 , __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: _e1 , cloneElement: ge1 , createContext: Ee1 , createElement: Oe1 , createFactory: je , createRef: Se1 , forwardRef: Ce1 , isValidElement: Re1 , lazy: ke1 , memo: $e1 , useCallback: Pe1 , useContext: be1 , useDebugValue: we1 , useEffect: xe1 , useImperativeHandle: Ie1 , useLayoutEffect: Ne1 , useMemo: qe1 , useReducer: Ae1 , useRef: Fe1 , useState: Le1 , version: Ue1 } = Y1, De = Y1;
var ca = Object.create, Zr = Object.defineProperty, da = Object.getPrototypeOf, pa = Object.prototype.hasOwnProperty, ma = Object.getOwnPropertyNames, ha = Object.getOwnPropertyDescriptor;
var va = (e)=>Zr(e, "__esModule", {
value: !0
@ -1346,7 +1346,7 @@ var ia = Bn((re)=>{
Dl = !0;
}
}), window.addEventListener("test", vn, vn), window.removeEventListener("test", vn, vn);
} catch (e) {
} catch (e1) {
Dl = !1;
}
var vn;
@ -1842,11 +1842,11 @@ var ia = Bn((re)=>{
var Re = null, Xl = null, sr = null;
function uu() {
if (sr) return sr;
var e1, n = Xl, t = n.length, r, l = "value" in Re ? Re.value : Re.textContent, i = l.length;
for(e1 = 0; e1 < t && n[e1] === l[e1]; e1++);
var o = t - e1;
var e, n = Xl, t = n.length, r, l = "value" in Re ? Re.value : Re.textContent, i = l.length;
for(e = 0; e < t && n[e] === l[e]; e++);
var o = t - e;
for(r = 1; r <= o && n[t - r] === l[i - r]; r++);
return sr = l.slice(e1, 1 < r ? 1 - r : void 0);
return sr = l.slice(e, 1 < r ? 1 - r : void 0);
}
function ar(e) {
var n = e.keyCode;
@ -2231,15 +2231,15 @@ var ia = Bn((re)=>{
return e && n ? e === n ? !0 : e && e.nodeType === 3 ? !1 : n && n.nodeType === 3 ? Cu(e, n.parentNode) : "contains" in e ? e.contains(n) : e.compareDocumentPosition ? !!(e.compareDocumentPosition(n) & 16) : !1 : !1;
}
function Nu() {
for(var e1 = window, n = Jt(); n instanceof e1.HTMLIFrameElement;){
for(var e = window, n = Jt(); n instanceof e.HTMLIFrameElement;){
try {
var t = typeof n.contentWindow.location.href == "string";
} catch (r) {
t = !1;
}
if (t) e1 = n.contentWindow;
if (t) e = n.contentWindow;
else break;
n = Jt(e1.document);
n = Jt(e.document);
}
return n;
}
@ -3344,7 +3344,7 @@ var ia = Bn((re)=>{
}
var jn = [];
function Pi() {
for(var e1 = 0; e1 < jn.length; e1++)jn[e1]._workInProgressVersionPrimary = null;
for(var e = 0; e < jn.length; e++)jn[e]._workInProgressVersionPrimary = null;
jn.length = 0;
}
var _t = Ge.ReactCurrentDispatcher, ue = Ge.ReactCurrentBatchConfig, Ct = 0, D = null, Y = null, W = null, jr = !1, Nt = !1;
@ -3368,14 +3368,14 @@ var ia = Bn((re)=>{
return e;
}
function ln() {
var e1 = {
var e = {
memoizedState: null,
baseState: null,
baseQueue: null,
queue: null,
next: null
};
return W === null ? D.memoizedState = W = e1 : W = W.next = e1, W;
return W === null ? D.memoizedState = W = e : W = W.next = e, W;
}
function on() {
if (Y === null) {
@ -3473,8 +3473,8 @@ var ia = Bn((re)=>{
return ds(l, n, t);
}), d = s[1], y = s[0];
s = W;
var _1 = e.memoizedState, h = _1.refs, k = h.getSnapshot, E = _1.source;
_1 = _1.subscribe;
var _ = e.memoizedState, h = _.refs, k = h.getSnapshot, E = _.source;
_ = _.subscribe;
var S = D;
return e.memoizedState = {
refs: h,
@ -3510,7 +3510,7 @@ var ia = Bn((re)=>{
}, [
n,
r
]), le(k, t) && le(E, n) && le(_1, r) || (e = {
]), le(k, t) && le(E, n) && le(_, r) || (e = {
pending: null,
dispatch: null,
lastRenderedReducer: ye,
@ -3717,9 +3717,9 @@ var ia = Bn((re)=>{
]), t;
},
useTransition: function() {
var e1 = Lt(!1), n = e1[0];
return e1 = Xf.bind(null, e1[1]), hs(e1), [
e1,
var e = Lt(!1), n = e[0];
return e = Xf.bind(null, e[1]), hs(e), [
e,
n
];
},
@ -3775,10 +3775,10 @@ var ia = Bn((re)=>{
]), t;
},
useTransition: function() {
var e1 = Pt(ye)[0];
var e = Pt(ye)[0];
return [
Fr().current,
e1
e
];
},
useMutableSource: ms,
@ -3815,10 +3815,10 @@ var ia = Bn((re)=>{
]), t;
},
useTransition: function() {
var e1 = Tt(ye)[0];
var e = Tt(ye)[0];
return [
Fr().current,
e1
e
];
},
useMutableSource: ms,
@ -5034,8 +5034,8 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
}while (1)
}
function Zs() {
var e1 = Hr.current;
return Hr.current = Ir, e1 === null ? Ir : e1;
var e = Hr.current;
return Hr.current = Ir, e === null ? Ir : e;
}
function It(e, n) {
var t = x;
@ -5188,9 +5188,9 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
}
g = g.nextEffect;
}
} catch (P1) {
} catch (P2) {
if (g === null) throw Error(v(330));
Qe(g, P1), g = g.nextEffect;
Qe(g, P2), g = g.nextEffect;
}
while (g !== null)
if (m = oi, p = Nu(), f = m.focusedElem, o = m.selectionRange, p !== f && f && f.ownerDocument && Cu(f.ownerDocument.documentElement, f)) {
@ -5222,9 +5222,9 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
}
g = g.nextEffect;
}
} catch (P2) {
} catch (P3) {
if (g === null) throw Error(v(330));
Qe(g, P2), g = g.nextEffect;
Qe(g, P3), g = g.nextEffect;
}
while (g !== null)
g = null, Hf(), x = l;
@ -5267,7 +5267,7 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
}
function cc() {
if (zt === null) return !1;
var e1 = zt;
var e = zt;
if (zt = null, (x & 48) != 0) throw Error(v(331));
var n = x;
x |= 32;
@ -5292,7 +5292,7 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
Qe(i, s);
}
}
for(u = e1.current.firstEffect; u !== null;)e1 = u.nextEffect, u.nextEffect = null, u.flags & 8 && (u.sibling = null, u.stateNode = null), u = e1;
for(u = e.current.firstEffect; u !== null;)e = u.nextEffect, u.nextEffect = null, u.flags & 8 && (u.sibling = null, u.stateNode = null), u = e;
return x = n, me(), !0;
}
function ta(e, n, t) {
@ -5661,8 +5661,8 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
Kr(e, this._internalRoot, null, null);
};
oo.prototype.unmount = function() {
var e1 = this._internalRoot, n = e1.containerInfo;
Kr(null, e1, null, function() {
var e = this._internalRoot, n = e.containerInfo;
Kr(null, e, null, function() {
n[Cn] = null;
});
};
@ -5814,7 +5814,7 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
};
if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ != "undefined" && (Ut = __REACT_DEVTOOLS_GLOBAL_HOOK__, !Ut.isDisabled && Ut.supportsFiber)) try {
ci = Ut.inject(wc), nn = Ut;
} catch (e1) {
} catch (e2) {
}
var Ut;
re.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = gc;
@ -5876,4 +5876,4 @@ var sa = Bn((Fc, oa)=>{
});
var aa = ga(sa()), { __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: kc , createPortal: Sc , findDOMNode: Ec , flushSync: xc , hydrate: _c , render: Cc , unmountComponentAtNode: Nc , unstable_batchedUpdates: Pc , unstable_createPortal: Tc , unstable_renderSubtreeIntoContainer: Lc , version: Oc } = aa;
const { document: document1 } = window;
Cc(Oe('p', null, 'hello world!'), document1.body);
Cc(Oe1('p', null, 'hello world!'), document1.body);

View File

@ -1,27 +1,27 @@
var G = Object.create, _ = Object.defineProperty, J = Object.getPrototypeOf, K = Object.prototype.hasOwnProperty, Q = Object.getOwnPropertyNames, X = Object.getOwnPropertyDescriptor;
var Z = (e)=>_(e, "__esModule", {
var G1 = Object.create, _1 = Object.defineProperty, J1 = Object.getPrototypeOf, K1 = Object.prototype.hasOwnProperty, Q1 = Object.getOwnPropertyNames, X1 = Object.getOwnPropertyDescriptor;
var Z1 = (e)=>_1(e, "__esModule", {
value: !0
})
;
var g = (e, r)=>()=>(r || (r = {
var g1 = (e, r)=>()=>(r || (r = {
exports: {
}
}, e(r.exports, r)), r.exports)
;
var ee = (e, r, t)=>{
if (Z(e), r && typeof r == "object" || typeof r == "function") for (let n of Q(r))!K.call(e, n) && n !== "default" && _(e, n, {
var ee1 = (e, r, t)=>{
if (Z1(e), r && typeof r == "object" || typeof r == "function") for (let n of Q1(r))!K1.call(e, n) && n !== "default" && _1(e, n, {
get: ()=>r[n]
,
enumerable: !(t = X(r, n)) || t.enumerable
enumerable: !(t = X1(r, n)) || t.enumerable
});
return e;
}, re = (e)=>e && e.__esModule ? e : ee(_(e != null ? G(J(e)) : {
}, re1 = (e)=>e && e.__esModule ? e : ee1(_1(e != null ? G1(J1(e)) : {
}, "default", {
value: e,
enumerable: !0
}), e)
;
var P = g((Te, k)=>{
var P1 = g1((Te, k)=>{
"use strict";
var $ = Object.getOwnPropertySymbols, te = Object.prototype.hasOwnProperty, ne = Object.prototype.propertyIsEnumerable;
function oe(e) {
@ -61,9 +61,9 @@ var P = g((Te, k)=>{
return n;
};
});
var z = g((u)=>{
var z1 = g1((u)=>{
"use strict";
var E = P(), y = 60103, b = 60106;
var E = P1(), y = 60103, b = 60106;
u.Fragment = 60107;
u.StrictMode = 60108;
u.Profiler = 60114;
@ -363,11 +363,11 @@ var z = g((u)=>{
};
u.version = "17.0.1";
});
var W = g((Be, H)=>{
var W1 = g1((Be, H)=>{
"use strict";
H.exports = z();
H.exports = z1();
});
var Y = re(W()), { Fragment: ae , StrictMode: pe , Profiler: ye , Suspense: de , Children: ve , Component: me , PureComponent: he , __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: _e , cloneElement: ge , createContext: Ee , createElement: Oe , createFactory: je , createRef: Se , forwardRef: Ce , isValidElement: Re , lazy: ke , memo: $e , useCallback: Pe , useContext: be , useDebugValue: we , useEffect: xe , useImperativeHandle: Ie , useLayoutEffect: Ne , useMemo: qe , useReducer: Ae , useRef: Fe , useState: Le , version: Ue } = Y, De = Y;
var Y1 = re1(W1()), { Fragment: ae1 , StrictMode: pe1 , Profiler: ye1 , Suspense: de1 , Children: ve1 , Component: me1 , PureComponent: he1 , __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: _e1 , cloneElement: ge1 , createContext: Ee1 , createElement: Oe1 , createFactory: je , createRef: Se1 , forwardRef: Ce1 , isValidElement: Re1 , lazy: ke1 , memo: $e1 , useCallback: Pe1 , useContext: be1 , useDebugValue: we1 , useEffect: xe1 , useImperativeHandle: Ie1 , useLayoutEffect: Ne1 , useMemo: qe1 , useReducer: Ae1 , useRef: Fe1 , useState: Le1 , version: Ue1 } = Y1, De = Y1;
var ca = Object.create, Zr = Object.defineProperty, da = Object.getPrototypeOf, pa = Object.prototype.hasOwnProperty, ma = Object.getOwnPropertyNames, ha = Object.getOwnPropertyDescriptor;
var va = (e)=>Zr(e, "__esModule", {
value: !0
@ -1346,7 +1346,7 @@ var ia = Bn((re)=>{
Dl = !0;
}
}), window.addEventListener("test", vn, vn), window.removeEventListener("test", vn, vn);
} catch (e) {
} catch (e1) {
Dl = !1;
}
var vn;
@ -1842,11 +1842,11 @@ var ia = Bn((re)=>{
var Re = null, Xl = null, sr = null;
function uu() {
if (sr) return sr;
var e1, n = Xl, t = n.length, r, l = "value" in Re ? Re.value : Re.textContent, i = l.length;
for(e1 = 0; e1 < t && n[e1] === l[e1]; e1++);
var o = t - e1;
var e, n = Xl, t = n.length, r, l = "value" in Re ? Re.value : Re.textContent, i = l.length;
for(e = 0; e < t && n[e] === l[e]; e++);
var o = t - e;
for(r = 1; r <= o && n[t - r] === l[i - r]; r++);
return sr = l.slice(e1, 1 < r ? 1 - r : void 0);
return sr = l.slice(e, 1 < r ? 1 - r : void 0);
}
function ar(e) {
var n = e.keyCode;
@ -2231,15 +2231,15 @@ var ia = Bn((re)=>{
return e && n ? e === n ? !0 : e && e.nodeType === 3 ? !1 : n && n.nodeType === 3 ? Cu(e, n.parentNode) : "contains" in e ? e.contains(n) : e.compareDocumentPosition ? !!(e.compareDocumentPosition(n) & 16) : !1 : !1;
}
function Nu() {
for(var e1 = window, n = Jt(); n instanceof e1.HTMLIFrameElement;){
for(var e = window, n = Jt(); n instanceof e.HTMLIFrameElement;){
try {
var t = typeof n.contentWindow.location.href == "string";
} catch (r) {
t = !1;
}
if (t) e1 = n.contentWindow;
if (t) e = n.contentWindow;
else break;
n = Jt(e1.document);
n = Jt(e.document);
}
return n;
}
@ -3344,7 +3344,7 @@ var ia = Bn((re)=>{
}
var jn = [];
function Pi() {
for(var e1 = 0; e1 < jn.length; e1++)jn[e1]._workInProgressVersionPrimary = null;
for(var e = 0; e < jn.length; e++)jn[e]._workInProgressVersionPrimary = null;
jn.length = 0;
}
var _t = Ge.ReactCurrentDispatcher, ue = Ge.ReactCurrentBatchConfig, Ct = 0, D = null, Y = null, W = null, jr = !1, Nt = !1;
@ -3368,14 +3368,14 @@ var ia = Bn((re)=>{
return e;
}
function ln() {
var e1 = {
var e = {
memoizedState: null,
baseState: null,
baseQueue: null,
queue: null,
next: null
};
return W === null ? D.memoizedState = W = e1 : W = W.next = e1, W;
return W === null ? D.memoizedState = W = e : W = W.next = e, W;
}
function on() {
if (Y === null) {
@ -3473,8 +3473,8 @@ var ia = Bn((re)=>{
return ds(l, n, t);
}), d = s[1], y = s[0];
s = W;
var _1 = e.memoizedState, h = _1.refs, k = h.getSnapshot, E = _1.source;
_1 = _1.subscribe;
var _ = e.memoizedState, h = _.refs, k = h.getSnapshot, E = _.source;
_ = _.subscribe;
var S = D;
return e.memoizedState = {
refs: h,
@ -3510,7 +3510,7 @@ var ia = Bn((re)=>{
}, [
n,
r
]), le(k, t) && le(E, n) && le(_1, r) || (e = {
]), le(k, t) && le(E, n) && le(_, r) || (e = {
pending: null,
dispatch: null,
lastRenderedReducer: ye,
@ -3717,9 +3717,9 @@ var ia = Bn((re)=>{
]), t;
},
useTransition: function() {
var e1 = Lt(!1), n = e1[0];
return e1 = Xf.bind(null, e1[1]), hs(e1), [
e1,
var e = Lt(!1), n = e[0];
return e = Xf.bind(null, e[1]), hs(e), [
e,
n
];
},
@ -3775,10 +3775,10 @@ var ia = Bn((re)=>{
]), t;
},
useTransition: function() {
var e1 = Pt(ye)[0];
var e = Pt(ye)[0];
return [
Fr().current,
e1
e
];
},
useMutableSource: ms,
@ -3815,10 +3815,10 @@ var ia = Bn((re)=>{
]), t;
},
useTransition: function() {
var e1 = Tt(ye)[0];
var e = Tt(ye)[0];
return [
Fr().current,
e1
e
];
},
useMutableSource: ms,
@ -5034,8 +5034,8 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
}while (1)
}
function Zs() {
var e1 = Hr.current;
return Hr.current = Ir, e1 === null ? Ir : e1;
var e = Hr.current;
return Hr.current = Ir, e === null ? Ir : e;
}
function It(e, n) {
var t = x;
@ -5188,9 +5188,9 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
}
g = g.nextEffect;
}
} catch (P1) {
} catch (P2) {
if (g === null) throw Error(v(330));
Qe(g, P1), g = g.nextEffect;
Qe(g, P2), g = g.nextEffect;
}
while (g !== null)
if (m = oi, p = Nu(), f = m.focusedElem, o = m.selectionRange, p !== f && f && f.ownerDocument && Cu(f.ownerDocument.documentElement, f)) {
@ -5222,9 +5222,9 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
}
g = g.nextEffect;
}
} catch (P2) {
} catch (P3) {
if (g === null) throw Error(v(330));
Qe(g, P2), g = g.nextEffect;
Qe(g, P3), g = g.nextEffect;
}
while (g !== null)
g = null, Hf(), x = l;
@ -5267,7 +5267,7 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
}
function cc() {
if (zt === null) return !1;
var e1 = zt;
var e = zt;
if (zt = null, (x & 48) != 0) throw Error(v(331));
var n = x;
x |= 32;
@ -5292,7 +5292,7 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
Qe(i, s);
}
}
for(u = e1.current.firstEffect; u !== null;)e1 = u.nextEffect, u.nextEffect = null, u.flags & 8 && (u.sibling = null, u.stateNode = null), u = e1;
for(u = e.current.firstEffect; u !== null;)e = u.nextEffect, u.nextEffect = null, u.flags & 8 && (u.sibling = null, u.stateNode = null), u = e;
return x = n, me(), !0;
}
function ta(e, n, t) {
@ -5661,8 +5661,8 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
Kr(e, this._internalRoot, null, null);
};
oo.prototype.unmount = function() {
var e1 = this._internalRoot, n = e1.containerInfo;
Kr(null, e1, null, function() {
var e = this._internalRoot, n = e.containerInfo;
Kr(null, e, null, function() {
n[Cn] = null;
});
};
@ -5814,7 +5814,7 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
};
if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ != "undefined" && (Ut = __REACT_DEVTOOLS_GLOBAL_HOOK__, !Ut.isDisabled && Ut.supportsFiber)) try {
ci = Ut.inject(wc), nn = Ut;
} catch (e1) {
} catch (e2) {
}
var Ut;
re.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = gc;
@ -5876,4 +5876,4 @@ var sa = Bn((Fc, oa)=>{
});
var aa = ga(sa()), { __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: kc , createPortal: Sc , findDOMNode: Ec , flushSync: xc , hydrate: _c , render: Cc , unmountComponentAtNode: Nc , unstable_batchedUpdates: Pc , unstable_createPortal: Tc , unstable_renderSubtreeIntoContainer: Lc , version: Oc } = aa;
const { document: document1 } = window;
Cc(Oe('p', null, 'hello world!'), document1.body);
Cc(Oe1('p', null, 'hello world!'), document1.body);

View File

@ -30,10 +30,10 @@ function hasKey(obj, keys) {
o = get(o, key) ?? {
};
});
const key = keys[keys.length - 1];
return key in o;
const key1 = keys[keys.length - 1];
return key1 in o;
}
function parse(args, { "--": doubleDash = false , alias ={
function parse(args, { "--": doubleDash = false , alias: alias2 = {
} , boolean: __boolean = false , default: defaults = {
} , stopEarly =false , string =[] , unknown =(i)=>i
} = {
@ -60,9 +60,9 @@ function parse(args, { "--": doubleDash = false , alias ={
}
const aliases = {
};
if (alias !== undefined) {
for(const key in alias){
const val = getForce(alias, key);
if (alias2 !== undefined) {
for(const key in alias2){
const val = getForce(alias2, key);
if (typeof val === "string") {
aliases[key] = [
val
@ -107,14 +107,14 @@ function parse(args, { "--": doubleDash = false , alias ={
}
o = get(o, key);
});
const key = keys[keys.length - 1];
if (get(o, key) === undefined || get(flags.bools, key) || typeof get(o, key) === "boolean") {
o[key] = value;
} else if (Array.isArray(get(o, key))) {
o[key].push(value);
const key4 = keys[keys.length - 1];
if (get(o, key4) === undefined || get(flags.bools, key4) || typeof get(o, key4) === "boolean") {
o[key4] = value;
} else if (Array.isArray(get(o, key4))) {
o[key4].push(value);
} else {
o[key] = [
get(o, key),
o[key4] = [
get(o, key4),
value
];
}
@ -136,8 +136,8 @@ function parse(args, { "--": doubleDash = false , alias ={
return getForce(aliases, key).some((x)=>typeof get(flags.bools, x) === "boolean"
);
}
for (const key of Object.keys(flags.bools)){
setArg(key, defaults[key] === undefined ? false : defaults[key]);
for (const key3 of Object.keys(flags.bools)){
setArg(key3, defaults[key3] === undefined ? false : defaults[key3]);
}
let notFlags = [];
if (args.includes("--")) {
@ -223,12 +223,12 @@ function parse(args, { "--": doubleDash = false , alias ={
}
}
}
for (const key1 of Object.keys(defaults)){
if (!hasKey(argv, key1.split("."))) {
setKey(argv, key1.split("."), defaults[key1]);
if (aliases[key1]) {
for (const x of aliases[key1]){
setKey(argv, x.split("."), defaults[key1]);
for (const key2 of Object.keys(defaults)){
if (!hasKey(argv, key2.split("."))) {
setKey(argv, key2.split("."), defaults[key2]);
if (aliases[key2]) {
for (const x of aliases[key2]){
setKey(argv, x.split("."), defaults[key2]);
}
}
}
@ -245,7 +245,7 @@ function parse(args, { "--": doubleDash = false , alias ={
}
return argv;
}
const args = parse(Deno.args, {
const args1 = parse(Deno.args, {
boolean: [
"help",
"verbose",
@ -258,4 +258,4 @@ const args = parse(Deno.args, {
verbose: false
}
});
console.dir(args);
console.dir(args1);

View File

@ -30,10 +30,10 @@ function hasKey(obj, keys) {
o = get(o, key) ?? {
};
});
const key = keys[keys.length - 1];
return key in o;
const key1 = keys[keys.length - 1];
return key1 in o;
}
function parse(args, { "--": doubleDash = false , alias ={
function parse(args, { "--": doubleDash = false , alias: alias2 = {
} , boolean: __boolean = false , default: defaults = {
} , stopEarly =false , string =[] , unknown =(i)=>i
} = {
@ -60,9 +60,9 @@ function parse(args, { "--": doubleDash = false , alias ={
}
const aliases = {
};
if (alias !== undefined) {
for(const key in alias){
const val = getForce(alias, key);
if (alias2 !== undefined) {
for(const key in alias2){
const val = getForce(alias2, key);
if (typeof val === "string") {
aliases[key] = [
val
@ -107,14 +107,14 @@ function parse(args, { "--": doubleDash = false , alias ={
}
o = get(o, key);
});
const key = keys[keys.length - 1];
if (get(o, key) === undefined || get(flags.bools, key) || typeof get(o, key) === "boolean") {
o[key] = value;
} else if (Array.isArray(get(o, key))) {
o[key].push(value);
const key4 = keys[keys.length - 1];
if (get(o, key4) === undefined || get(flags.bools, key4) || typeof get(o, key4) === "boolean") {
o[key4] = value;
} else if (Array.isArray(get(o, key4))) {
o[key4].push(value);
} else {
o[key] = [
get(o, key),
o[key4] = [
get(o, key4),
value
];
}
@ -136,8 +136,8 @@ function parse(args, { "--": doubleDash = false , alias ={
return getForce(aliases, key).some((x)=>typeof get(flags.bools, x) === "boolean"
);
}
for (const key of Object.keys(flags.bools)){
setArg(key, defaults[key] === undefined ? false : defaults[key]);
for (const key3 of Object.keys(flags.bools)){
setArg(key3, defaults[key3] === undefined ? false : defaults[key3]);
}
let notFlags = [];
if (args.includes("--")) {
@ -223,12 +223,12 @@ function parse(args, { "--": doubleDash = false , alias ={
}
}
}
for (const key1 of Object.keys(defaults)){
if (!hasKey(argv, key1.split("."))) {
setKey(argv, key1.split("."), defaults[key1]);
if (aliases[key1]) {
for (const x of aliases[key1]){
setKey(argv, x.split("."), defaults[key1]);
for (const key2 of Object.keys(defaults)){
if (!hasKey(argv, key2.split("."))) {
setKey(argv, key2.split("."), defaults[key2]);
if (aliases[key2]) {
for (const x of aliases[key2]){
setKey(argv, x.split("."), defaults[key2]);
}
}
}
@ -245,7 +245,7 @@ function parse(args, { "--": doubleDash = false , alias ={
}
return argv;
}
const args = parse(Deno.args, {
const args1 = parse(Deno.args, {
boolean: [
"help",
"verbose",
@ -258,4 +258,4 @@ const args = parse(Deno.args, {
verbose: false
}
});
console.dir(args);
console.dir(args1);

View File

@ -1,6 +1,6 @@
class Image {
getPixel(x, y) {
const index = x + y * this.width;
getPixel(x2, y2) {
const index = x2 + y2 * this.width;
const rntVal = {
r: this.data[index * 4],
g: this.data[index * 4 + 1],
@ -9,8 +9,8 @@ class Image {
};
return rntVal;
}
setPixel(x, y, pix) {
const index = x + y * this.width;
setPixel(x1, y1, pix) {
const index = x1 + y1 * this.width;
this.data[index * 4] = pix.r;
this.data[index * 4 + 1] = pix.g;
this.data[index * 4 + 2] = pix.b;
@ -316,7 +316,7 @@ const JpegImage = function jpegImage() {
decode(component, component.blocks[blockRow][blockCol]);
}
const componentsLength = components.length;
let component, i, j, k, n;
let component1, i, j, k1, n1;
let decodeFn;
if (progressive) {
if (spectralStart === 0) {
@ -327,7 +327,7 @@ const JpegImage = function jpegImage() {
} else {
decodeFn = decodeBaseline;
}
let mcu = 0, marker;
let mcu1 = 0, marker;
let mcuExpected;
if (componentsLength == 1) {
mcuExpected = components[0].blocksPerLine * components[0].blocksPerColumn;
@ -338,31 +338,31 @@ const JpegImage = function jpegImage() {
resetInterval = mcuExpected;
}
let h, v;
while(mcu < mcuExpected){
while(mcu1 < mcuExpected){
for(i = 0; i < componentsLength; i++){
components[i].pred = 0;
}
eobrun = 0;
if (componentsLength == 1) {
component = components[0];
for(n = 0; n < resetInterval; n++){
decodeBlock(component, decodeFn, mcu);
mcu++;
component1 = components[0];
for(n1 = 0; n1 < resetInterval; n1++){
decodeBlock(component1, decodeFn, mcu1);
mcu1++;
}
} else {
for(n = 0; n < resetInterval; n++){
for(n1 = 0; n1 < resetInterval; n1++){
for(i = 0; i < componentsLength; i++){
component = components[i];
h = component.h;
v = component.v;
component1 = components[i];
h = component1.h;
v = component1.v;
for(j = 0; j < v; j++){
for(k = 0; k < h; k++){
decodeMcu(component, decodeFn, mcu, j, k);
for(k1 = 0; k1 < h; k1++){
decodeMcu(component1, decodeFn, mcu1, j, k1);
}
}
}
mcu++;
if (mcu === mcuExpected) {
mcu1++;
if (mcu1 === mcuExpected) {
break;
}
}
@ -509,10 +509,10 @@ const JpegImage = function jpegImage() {
dataOut[i] = sample < 0 ? 0 : sample > 255 ? 255 : sample;
}
}
let i, j;
let i1, j;
for(let blockRow = 0; blockRow < blocksPerColumn; blockRow++){
const scanLine = blockRow << 3;
for(i = 0; i < 8; i++){
for(i1 = 0; i1 < 8; i1++){
lines.push(new Uint8Array(samplesPerLine));
}
for(let blockCol = 0; blockCol < blocksPerLine; blockCol++){
@ -520,8 +520,8 @@ const JpegImage = function jpegImage() {
let offset = 0, sample = blockCol << 3;
for(j = 0; j < 8; j++){
const line = lines[scanLine + j];
for(i = 0; i < 8; i++){
line[sample + i] = r[offset++];
for(i1 = 0; i1 < 8; i1++){
line[sample + i1] = r[offset++];
}
}
}
@ -590,7 +590,7 @@ const JpegImage = function jpegImage() {
}
let jfif = null;
let adobe = null;
let frame, resetInterval;
let frame1, resetInterval;
const quantizationTables = [], frames = [];
const huffmanTablesAC = [], huffmanTablesDC = [];
let fileMarker = readUint16();
@ -674,32 +674,32 @@ const JpegImage = function jpegImage() {
case 65473:
case 65474:
readUint16();
frame = {
frame1 = {
};
frame.extended = fileMarker === 65473;
frame.progressive = fileMarker === 65474;
frame.precision = data[offset++];
frame.scanLines = readUint16();
frame.samplesPerLine = readUint16();
frame.components = {
frame1.extended = fileMarker === 65473;
frame1.progressive = fileMarker === 65474;
frame1.precision = data[offset++];
frame1.scanLines = readUint16();
frame1.samplesPerLine = readUint16();
frame1.components = {
};
frame.componentsOrder = [];
frame1.componentsOrder = [];
let componentsCount = data[offset++], componentId;
for(i = 0; i < componentsCount; i++){
componentId = data[offset];
const h = data[offset + 1] >> 4;
const v = data[offset + 1] & 15;
const qId = data[offset + 2];
frame.componentsOrder.push(componentId);
frame.components[componentId] = {
frame1.componentsOrder.push(componentId);
frame1.components[componentId] = {
h: h,
v: v,
quantizationIdx: qId
};
offset += 3;
}
prepareComponents(frame);
frames.push(frame);
prepareComponents(frame1);
frames.push(frame1);
break;
case 65476:
const huffmanLength = readUint16();
@ -727,7 +727,7 @@ const JpegImage = function jpegImage() {
const selectorsCount = data[offset++];
let components = [], component;
for(i = 0; i < selectorsCount; i++){
component = frame.components[data[offset++]];
component = frame1.components[data[offset++]];
const tableSpec = data[offset++];
component.huffmanTableDC = huffmanTablesDC[tableSpec >> 4];
component.huffmanTableAC = huffmanTablesAC[tableSpec & 15];
@ -736,7 +736,7 @@ const JpegImage = function jpegImage() {
const spectralStart = data[offset++];
const spectralEnd = data[offset++];
const successiveApproximation = data[offset++];
const processed = decodeScan(data, offset, frame, components, resetInterval, spectralStart, spectralEnd, successiveApproximation >> 4, successiveApproximation & 15);
const processed = decodeScan(data, offset, frame1, components, resetInterval, spectralStart, spectralEnd, successiveApproximation >> 4, successiveApproximation & 15);
offset += processed;
break;
case 65535:
@ -756,24 +756,24 @@ const JpegImage = function jpegImage() {
if (frames.length != 1) {
throw new Error("only single frame JPEGs supported");
}
for(let i = 0; i < frames.length; i++){
const cp = frames[i].components;
for(let i3 = 0; i3 < frames.length; i3++){
const cp = frames[i3].components;
for(const j in cp){
cp[j].quantizationTable = quantizationTables[cp[j].quantizationIdx];
delete cp[j].quantizationIdx;
}
}
this.width = frame.samplesPerLine;
this.height = frame.scanLines;
this.width = frame1.samplesPerLine;
this.height = frame1.scanLines;
this.jfif = jfif;
this.adobe = adobe;
this.components = [];
for(let i1 = 0; i1 < frame.componentsOrder.length; i1++){
const component = frame.components[frame.componentsOrder[i1]];
for(let i2 = 0; i2 < frame1.componentsOrder.length; i2++){
const component = frame1.components[frame1.componentsOrder[i2]];
this.components.push({
lines: buildComponentData(frame, component),
scaleX: component.h / frame.maxH,
scaleY: component.v / frame.maxV
lines: buildComponentData(frame1, component),
scaleX: component.h / frame1.maxH,
scaleY: component.v / frame1.maxV
});
}
},

View File

@ -1,6 +1,6 @@
class Image {
getPixel(x, y) {
const index = x + y * this.width;
getPixel(x2, y2) {
const index = x2 + y2 * this.width;
const rntVal = {
r: this.data[index * 4],
g: this.data[index * 4 + 1],
@ -9,8 +9,8 @@ class Image {
};
return rntVal;
}
setPixel(x, y, pix) {
const index = x + y * this.width;
setPixel(x1, y1, pix) {
const index = x1 + y1 * this.width;
this.data[index * 4] = pix.r;
this.data[index * 4 + 1] = pix.g;
this.data[index * 4 + 2] = pix.b;
@ -316,7 +316,7 @@ const JpegImage = function jpegImage() {
decode(component, component.blocks[blockRow][blockCol]);
}
const componentsLength = components.length;
let component, i, j, k, n;
let component1, i, j, k1, n1;
let decodeFn;
if (progressive) {
if (spectralStart === 0) {
@ -327,7 +327,7 @@ const JpegImage = function jpegImage() {
} else {
decodeFn = decodeBaseline;
}
let mcu = 0, marker;
let mcu1 = 0, marker;
let mcuExpected;
if (componentsLength == 1) {
mcuExpected = components[0].blocksPerLine * components[0].blocksPerColumn;
@ -338,31 +338,31 @@ const JpegImage = function jpegImage() {
resetInterval = mcuExpected;
}
let h, v;
while(mcu < mcuExpected){
while(mcu1 < mcuExpected){
for(i = 0; i < componentsLength; i++){
components[i].pred = 0;
}
eobrun = 0;
if (componentsLength == 1) {
component = components[0];
for(n = 0; n < resetInterval; n++){
decodeBlock(component, decodeFn, mcu);
mcu++;
component1 = components[0];
for(n1 = 0; n1 < resetInterval; n1++){
decodeBlock(component1, decodeFn, mcu1);
mcu1++;
}
} else {
for(n = 0; n < resetInterval; n++){
for(n1 = 0; n1 < resetInterval; n1++){
for(i = 0; i < componentsLength; i++){
component = components[i];
h = component.h;
v = component.v;
component1 = components[i];
h = component1.h;
v = component1.v;
for(j = 0; j < v; j++){
for(k = 0; k < h; k++){
decodeMcu(component, decodeFn, mcu, j, k);
for(k1 = 0; k1 < h; k1++){
decodeMcu(component1, decodeFn, mcu1, j, k1);
}
}
}
mcu++;
if (mcu === mcuExpected) {
mcu1++;
if (mcu1 === mcuExpected) {
break;
}
}
@ -509,10 +509,10 @@ const JpegImage = function jpegImage() {
dataOut[i] = sample < 0 ? 0 : sample > 255 ? 255 : sample;
}
}
let i, j;
let i1, j;
for(let blockRow = 0; blockRow < blocksPerColumn; blockRow++){
const scanLine = blockRow << 3;
for(i = 0; i < 8; i++){
for(i1 = 0; i1 < 8; i1++){
lines.push(new Uint8Array(samplesPerLine));
}
for(let blockCol = 0; blockCol < blocksPerLine; blockCol++){
@ -520,8 +520,8 @@ const JpegImage = function jpegImage() {
let offset = 0, sample = blockCol << 3;
for(j = 0; j < 8; j++){
const line = lines[scanLine + j];
for(i = 0; i < 8; i++){
line[sample + i] = r[offset++];
for(i1 = 0; i1 < 8; i1++){
line[sample + i1] = r[offset++];
}
}
}
@ -590,7 +590,7 @@ const JpegImage = function jpegImage() {
}
let jfif = null;
let adobe = null;
let frame, resetInterval;
let frame1, resetInterval;
const quantizationTables = [], frames = [];
const huffmanTablesAC = [], huffmanTablesDC = [];
let fileMarker = readUint16();
@ -674,32 +674,32 @@ const JpegImage = function jpegImage() {
case 65473:
case 65474:
readUint16();
frame = {
frame1 = {
};
frame.extended = fileMarker === 65473;
frame.progressive = fileMarker === 65474;
frame.precision = data[offset++];
frame.scanLines = readUint16();
frame.samplesPerLine = readUint16();
frame.components = {
frame1.extended = fileMarker === 65473;
frame1.progressive = fileMarker === 65474;
frame1.precision = data[offset++];
frame1.scanLines = readUint16();
frame1.samplesPerLine = readUint16();
frame1.components = {
};
frame.componentsOrder = [];
frame1.componentsOrder = [];
let componentsCount = data[offset++], componentId;
for(i = 0; i < componentsCount; i++){
componentId = data[offset];
const h = data[offset + 1] >> 4;
const v = data[offset + 1] & 15;
const qId = data[offset + 2];
frame.componentsOrder.push(componentId);
frame.components[componentId] = {
frame1.componentsOrder.push(componentId);
frame1.components[componentId] = {
h: h,
v: v,
quantizationIdx: qId
};
offset += 3;
}
prepareComponents(frame);
frames.push(frame);
prepareComponents(frame1);
frames.push(frame1);
break;
case 65476:
const huffmanLength = readUint16();
@ -727,7 +727,7 @@ const JpegImage = function jpegImage() {
const selectorsCount = data[offset++];
let components = [], component;
for(i = 0; i < selectorsCount; i++){
component = frame.components[data[offset++]];
component = frame1.components[data[offset++]];
const tableSpec = data[offset++];
component.huffmanTableDC = huffmanTablesDC[tableSpec >> 4];
component.huffmanTableAC = huffmanTablesAC[tableSpec & 15];
@ -736,7 +736,7 @@ const JpegImage = function jpegImage() {
const spectralStart = data[offset++];
const spectralEnd = data[offset++];
const successiveApproximation = data[offset++];
const processed = decodeScan(data, offset, frame, components, resetInterval, spectralStart, spectralEnd, successiveApproximation >> 4, successiveApproximation & 15);
const processed = decodeScan(data, offset, frame1, components, resetInterval, spectralStart, spectralEnd, successiveApproximation >> 4, successiveApproximation & 15);
offset += processed;
break;
case 65535:
@ -756,24 +756,24 @@ const JpegImage = function jpegImage() {
if (frames.length != 1) {
throw new Error("only single frame JPEGs supported");
}
for(let i = 0; i < frames.length; i++){
const cp = frames[i].components;
for(let i3 = 0; i3 < frames.length; i3++){
const cp = frames[i3].components;
for(const j in cp){
cp[j].quantizationTable = quantizationTables[cp[j].quantizationIdx];
delete cp[j].quantizationIdx;
}
}
this.width = frame.samplesPerLine;
this.height = frame.scanLines;
this.width = frame1.samplesPerLine;
this.height = frame1.scanLines;
this.jfif = jfif;
this.adobe = adobe;
this.components = [];
for(let i1 = 0; i1 < frame.componentsOrder.length; i1++){
const component = frame.components[frame.componentsOrder[i1]];
for(let i2 = 0; i2 < frame1.componentsOrder.length; i2++){
const component = frame1.components[frame1.componentsOrder[i2]];
this.components.push({
lines: buildComponentData(frame, component),
scaleX: component.h / frame.maxH,
scaleY: component.v / frame.maxV
lines: buildComponentData(frame1, component),
scaleX: component.h / frame1.maxH,
scaleY: component.v / frame1.maxV
});
}
},

View File

@ -1,13 +1,13 @@
const water = 'Water';
function isWater1(x) {
function isWater(x) {
return x === water;
}
const mod = {
water: water,
isWater: isWater1
isWater: isWater
};
function foo1(x) {
function foo(x) {
return mod[x];
}
export { foo1 as foo };
export { isWater1 as isWater };
export { foo as foo };
export { isWater as isWater };

View File

@ -1,13 +1,13 @@
const water = 'Water';
function isWater1(x) {
function isWater(x) {
return x === water;
}
const mod = {
water: water,
isWater: isWater1
isWater: isWater
};
function foo1(x) {
function foo(x) {
return mod[x];
}
export { foo1 as foo };
export { isWater1 as isWater };
export { foo as foo };
export { isWater as isWater };

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -122,8 +122,8 @@ async function copyN(r, dest, size) {
}
BigInt(Number.MAX_SAFE_INTEGER);
class StringReader extends Deno.Buffer {
constructor(s){
super(new TextEncoder().encode(s).buffer);
constructor(s1){
super(new TextEncoder().encode(s1).buffer);
}
}
class MultiReader {
@ -162,7 +162,7 @@ function assertPath(path) {
function isPosixPathSeparator(code) {
return code === 47;
}
function isPathSeparator(code) {
function isPathSeparator1(code) {
return isPosixPathSeparator(code) || code === 92;
}
function isWindowsDeviceRoot(code) {
@ -229,7 +229,7 @@ function _format(sep, pathObject) {
if (dir === pathObject.root) return dir + base;
return dir + sep + base;
}
const sep = "\\";
const sep3 = "\\";
const delimiter = ";";
function resolve(...pathSegments) {
let resolvedDevice = "";
@ -261,24 +261,24 @@ function resolve(...pathSegments) {
let isAbsolute = false;
const code = path.charCodeAt(0);
if (len > 1) {
if (isPathSeparator(code)) {
if (isPathSeparator1(code)) {
isAbsolute = true;
if (isPathSeparator(path.charCodeAt(1))) {
if (isPathSeparator1(path.charCodeAt(1))) {
let j = 2;
let last = j;
for(; j < len; ++j){
if (isPathSeparator(path.charCodeAt(j))) break;
if (isPathSeparator1(path.charCodeAt(j))) break;
}
if (j < len && j !== last) {
const firstPart = path.slice(last, j);
last = j;
for(; j < len; ++j){
if (!isPathSeparator(path.charCodeAt(j))) break;
if (!isPathSeparator1(path.charCodeAt(j))) break;
}
if (j < len && j !== last) {
last = j;
for(; j < len; ++j){
if (isPathSeparator(path.charCodeAt(j))) break;
if (isPathSeparator1(path.charCodeAt(j))) break;
}
if (j === len) {
device = `\\\\${firstPart}\\${path.slice(last)}`;
@ -297,14 +297,14 @@ function resolve(...pathSegments) {
device = path.slice(0, 2);
rootEnd = 2;
if (len > 2) {
if (isPathSeparator(path.charCodeAt(2))) {
if (isPathSeparator1(path.charCodeAt(2))) {
isAbsolute = true;
rootEnd = 3;
}
}
}
}
} else if (isPathSeparator(code)) {
} else if (isPathSeparator1(code)) {
rootEnd = 1;
isAbsolute = true;
}
@ -320,7 +320,7 @@ function resolve(...pathSegments) {
}
if (resolvedAbsolute && resolvedDevice.length > 0) break;
}
resolvedTail = normalizeString(resolvedTail, !resolvedAbsolute, "\\", isPathSeparator);
resolvedTail = normalizeString(resolvedTail, !resolvedAbsolute, "\\", isPathSeparator1);
return resolvedDevice + (resolvedAbsolute ? "\\" : "") + resolvedTail || ".";
}
function normalize(path) {
@ -332,24 +332,24 @@ function normalize(path) {
let isAbsolute = false;
const code = path.charCodeAt(0);
if (len > 1) {
if (isPathSeparator(code)) {
if (isPathSeparator1(code)) {
isAbsolute = true;
if (isPathSeparator(path.charCodeAt(1))) {
if (isPathSeparator1(path.charCodeAt(1))) {
let j = 2;
let last = j;
for(; j < len; ++j){
if (isPathSeparator(path.charCodeAt(j))) break;
if (isPathSeparator1(path.charCodeAt(j))) break;
}
if (j < len && j !== last) {
const firstPart = path.slice(last, j);
last = j;
for(; j < len; ++j){
if (!isPathSeparator(path.charCodeAt(j))) break;
if (!isPathSeparator1(path.charCodeAt(j))) break;
}
if (j < len && j !== last) {
last = j;
for(; j < len; ++j){
if (isPathSeparator(path.charCodeAt(j))) break;
if (isPathSeparator1(path.charCodeAt(j))) break;
}
if (j === len) {
return `\\\\${firstPart}\\${path.slice(last)}\\`;
@ -367,24 +367,24 @@ function normalize(path) {
device = path.slice(0, 2);
rootEnd = 2;
if (len > 2) {
if (isPathSeparator(path.charCodeAt(2))) {
if (isPathSeparator1(path.charCodeAt(2))) {
isAbsolute = true;
rootEnd = 3;
}
}
}
}
} else if (isPathSeparator(code)) {
} else if (isPathSeparator1(code)) {
return "\\";
}
let tail;
if (rootEnd < len) {
tail = normalizeString(path.slice(rootEnd), !isAbsolute, "\\", isPathSeparator);
tail = normalizeString(path.slice(rootEnd), !isAbsolute, "\\", isPathSeparator1);
} else {
tail = "";
}
if (tail.length === 0 && !isAbsolute) tail = ".";
if (tail.length > 0 && isPathSeparator(path.charCodeAt(len - 1))) {
if (tail.length > 0 && isPathSeparator1(path.charCodeAt(len - 1))) {
tail += "\\";
}
if (device === undefined) {
@ -405,16 +405,16 @@ function normalize(path) {
return device;
}
}
function isAbsolute(path) {
function isAbsolute3(path) {
assertPath(path);
const len = path.length;
if (len === 0) return false;
const code = path.charCodeAt(0);
if (isPathSeparator(code)) {
if (isPathSeparator1(code)) {
return true;
} else if (isWindowsDeviceRoot(code)) {
if (len > 2 && path.charCodeAt(1) === 58) {
if (isPathSeparator(path.charCodeAt(2))) return true;
if (isPathSeparator1(path.charCodeAt(2))) return true;
}
}
return false;
@ -436,14 +436,14 @@ function join(...paths) {
let needsReplace = true;
let slashCount = 0;
assert(firstPart != null);
if (isPathSeparator(firstPart.charCodeAt(0))) {
if (isPathSeparator1(firstPart.charCodeAt(0))) {
++slashCount;
const firstLen = firstPart.length;
if (firstLen > 1) {
if (isPathSeparator(firstPart.charCodeAt(1))) {
if (isPathSeparator1(firstPart.charCodeAt(1))) {
++slashCount;
if (firstLen > 2) {
if (isPathSeparator(firstPart.charCodeAt(2))) ++slashCount;
if (isPathSeparator1(firstPart.charCodeAt(2))) ++slashCount;
else {
needsReplace = false;
}
@ -453,7 +453,7 @@ function join(...paths) {
}
if (needsReplace) {
for(; slashCount < joined.length; ++slashCount){
if (!isPathSeparator(joined.charCodeAt(slashCount))) break;
if (!isPathSeparator1(joined.charCodeAt(slashCount))) break;
}
if (slashCount >= 2) joined = `\\${joined.slice(slashCount)}`;
}
@ -562,23 +562,23 @@ function dirname(path) {
let offset = 0;
const code = path.charCodeAt(0);
if (len > 1) {
if (isPathSeparator(code)) {
if (isPathSeparator1(code)) {
rootEnd = offset = 1;
if (isPathSeparator(path.charCodeAt(1))) {
if (isPathSeparator1(path.charCodeAt(1))) {
let j = 2;
let last = j;
for(; j < len; ++j){
if (isPathSeparator(path.charCodeAt(j))) break;
if (isPathSeparator1(path.charCodeAt(j))) break;
}
if (j < len && j !== last) {
last = j;
for(; j < len; ++j){
if (!isPathSeparator(path.charCodeAt(j))) break;
if (!isPathSeparator1(path.charCodeAt(j))) break;
}
if (j < len && j !== last) {
last = j;
for(; j < len; ++j){
if (isPathSeparator(path.charCodeAt(j))) break;
if (isPathSeparator1(path.charCodeAt(j))) break;
}
if (j === len) {
return path;
@ -593,15 +593,15 @@ function dirname(path) {
if (path.charCodeAt(1) === 58) {
rootEnd = offset = 2;
if (len > 2) {
if (isPathSeparator(path.charCodeAt(2))) rootEnd = offset = 3;
if (isPathSeparator1(path.charCodeAt(2))) rootEnd = offset = 3;
}
}
}
} else if (isPathSeparator(code)) {
} else if (isPathSeparator1(code)) {
return path;
}
for(let i = len - 1; i >= offset; --i){
if (isPathSeparator(path.charCodeAt(i))) {
if (isPathSeparator1(path.charCodeAt(i))) {
if (!matchedSlash) {
end = i;
break;
@ -637,7 +637,7 @@ function basename(path, ext = "") {
let firstNonSlashEnd = -1;
for(i = path.length - 1; i >= start; --i){
const code = path.charCodeAt(i);
if (isPathSeparator(code)) {
if (isPathSeparator1(code)) {
if (!matchedSlash) {
start = i + 1;
break;
@ -664,7 +664,7 @@ function basename(path, ext = "") {
return path.slice(start, end);
} else {
for(i = path.length - 1; i >= start; --i){
if (isPathSeparator(path.charCodeAt(i))) {
if (isPathSeparator1(path.charCodeAt(i))) {
if (!matchedSlash) {
start = i + 1;
break;
@ -691,7 +691,7 @@ function extname(path) {
}
for(let i = path.length - 1; i >= start; --i){
const code = path.charCodeAt(i);
if (isPathSeparator(code)) {
if (isPathSeparator1(code)) {
if (!matchedSlash) {
startPart = i + 1;
break;
@ -734,23 +734,23 @@ function parse(path) {
let rootEnd = 0;
let code = path.charCodeAt(0);
if (len > 1) {
if (isPathSeparator(code)) {
if (isPathSeparator1(code)) {
rootEnd = 1;
if (isPathSeparator(path.charCodeAt(1))) {
if (isPathSeparator1(path.charCodeAt(1))) {
let j = 2;
let last = j;
for(; j < len; ++j){
if (isPathSeparator(path.charCodeAt(j))) break;
if (isPathSeparator1(path.charCodeAt(j))) break;
}
if (j < len && j !== last) {
last = j;
for(; j < len; ++j){
if (!isPathSeparator(path.charCodeAt(j))) break;
if (!isPathSeparator1(path.charCodeAt(j))) break;
}
if (j < len && j !== last) {
last = j;
for(; j < len; ++j){
if (isPathSeparator(path.charCodeAt(j))) break;
if (isPathSeparator1(path.charCodeAt(j))) break;
}
if (j === len) {
rootEnd = j;
@ -764,7 +764,7 @@ function parse(path) {
if (path.charCodeAt(1) === 58) {
rootEnd = 2;
if (len > 2) {
if (isPathSeparator(path.charCodeAt(2))) {
if (isPathSeparator1(path.charCodeAt(2))) {
if (len === 3) {
ret.root = ret.dir = path;
return ret;
@ -777,7 +777,7 @@ function parse(path) {
}
}
}
} else if (isPathSeparator(code)) {
} else if (isPathSeparator1(code)) {
ret.root = ret.dir = path;
return ret;
}
@ -790,7 +790,7 @@ function parse(path) {
let preDotState = 0;
for(; i >= rootEnd; --i){
code = path.charCodeAt(i);
if (isPathSeparator(code)) {
if (isPathSeparator1(code)) {
if (!matchedSlash) {
startPart = i + 1;
break;
@ -834,7 +834,7 @@ function fromFileUrl(url) {
return path;
}
function toFileUrl(path) {
if (!isAbsolute(path)) {
if (!isAbsolute3(path)) {
throw new TypeError("Must be an absolute path.");
}
const [, hostname, pathname] = path.match(/^(?:[/\\]{2}([^/\\]+)(?=[/\\][^/\\]))?(.*)/);
@ -849,11 +849,11 @@ function toFileUrl(path) {
return url;
}
const mod = {
sep: sep,
sep: sep3,
delimiter: delimiter,
resolve: resolve,
normalize: normalize,
isAbsolute: isAbsolute,
isAbsolute: isAbsolute3,
join: join,
relative: relative,
toNamespacedPath: toNamespacedPath,
@ -1195,8 +1195,8 @@ const mod1 = {
fromFileUrl: fromFileUrl1,
toFileUrl: toFileUrl1
};
const path = isWindows ? mod : mod1;
const { basename: basename2 , delimiter: delimiter2 , dirname: dirname2 , extname: extname2 , format: format2 , fromFileUrl: fromFileUrl2 , isAbsolute: isAbsolute2 , join: join2 , normalize: normalize2 , parse: parse2 , relative: relative2 , resolve: resolve2 , sep: sep2 , toFileUrl: toFileUrl2 , toNamespacedPath: toNamespacedPath2 , } = path;
const path1 = isWindows ? mod : mod1;
const { basename: basename2 , delimiter: delimiter2 , dirname: dirname2 , extname: extname2 , format: format2 , fromFileUrl: fromFileUrl2 , isAbsolute: isAbsolute2 , join: join2 , normalize: normalize2 , parse: parse2 , relative: relative2 , resolve: resolve2 , sep: sep2 , toFileUrl: toFileUrl2 , toNamespacedPath: toNamespacedPath2 , } = path1;
const DEFAULT_BUF_SIZE = 4096;
const MIN_BUF_SIZE = 16;
const CR = "\r".charCodeAt(0);
@ -1218,14 +1218,14 @@ class BufReader {
static create(r, size = 4096) {
return r instanceof BufReader ? r : new BufReader(r, size);
}
constructor(rd, size = 4096){
constructor(rd, size1 = 4096){
this.r = 0;
this.w = 0;
this.eof = false;
if (size < 16) {
size = MIN_BUF_SIZE;
if (size1 < 16) {
size1 = MIN_BUF_SIZE;
}
this._reset(new Uint8Array(size), rd);
this._reset(new Uint8Array(size1), rd);
}
size() {
return this.buf.byteLength;
@ -1256,20 +1256,20 @@ class BufReader {
}
throw new Error(`No progress after ${100} read() calls`);
}
reset(r) {
this._reset(this.buf, r);
reset(r1) {
this._reset(this.buf, r1);
}
_reset(buf, rd) {
this.buf = buf;
this.rd = rd;
_reset(buf1, rd1) {
this.buf = buf1;
this.rd = rd1;
this.eof = false;
}
async read(p) {
let rr = p.byteLength;
if (p.byteLength === 0) return rr;
async read(p1) {
let rr = p1.byteLength;
if (p1.byteLength === 0) return rr;
if (this.r === this.w) {
if (p.byteLength >= this.buf.byteLength) {
const rr = await this.rd.read(p);
if (p1.byteLength >= this.buf.byteLength) {
const rr = await this.rd.read(p1);
const nread = rr ?? 0;
assert(nread >= 0, "negative read");
return rr;
@ -1281,15 +1281,15 @@ class BufReader {
assert(rr >= 0, "negative read");
this.w += rr;
}
const copied = copy(this.buf.subarray(this.r, this.w), p, 0);
const copied = copy(this.buf.subarray(this.r, this.w), p1, 0);
this.r += copied;
return copied;
}
async readFull(p) {
async readFull(p2) {
let bytesRead = 0;
while(bytesRead < p.length){
while(bytesRead < p2.length){
try {
const rr = await this.read(p.subarray(bytesRead));
const rr = await this.read(p2.subarray(bytesRead));
if (rr === null) {
if (bytesRead === 0) {
return null;
@ -1299,11 +1299,11 @@ class BufReader {
}
bytesRead += rr;
} catch (err) {
err.partial = p.subarray(0, bytesRead);
err.partial = p2.subarray(0, bytesRead);
throw err;
}
}
return p;
return p2;
}
async readByte() {
while(this.r === this.w){
@ -1363,11 +1363,11 @@ class BufReader {
more: false
};
}
async readSlice(delim) {
async readSlice(delim1) {
let s = 0;
let slice;
while(true){
let i = this.buf.subarray(this.r + s, this.w).indexOf(delim);
let i = this.buf.subarray(this.r + s, this.w).indexOf(delim1);
if (i >= 0) {
i += s;
slice = this.buf.subarray(this.r, this.r + i + 1);
@ -1439,16 +1439,16 @@ class AbstractBufBase {
}
}
class BufWriter extends AbstractBufBase {
static create(writer, size = 4096) {
return writer instanceof BufWriter ? writer : new BufWriter(writer, size);
static create(writer, size2 = 4096) {
return writer instanceof BufWriter ? writer : new BufWriter(writer, size2);
}
constructor(writer, size = 4096){
constructor(writer1, size3 = 4096){
super();
this.writer = writer;
if (size <= 0) {
size = DEFAULT_BUF_SIZE;
this.writer = writer1;
if (size3 <= 0) {
size3 = DEFAULT_BUF_SIZE;
}
this.buf = new Uint8Array(size);
this.buf = new Uint8Array(size3);
}
reset(w) {
this.err = null;
@ -1495,21 +1495,21 @@ class BufWriter extends AbstractBufBase {
}
}
class BufWriterSync extends AbstractBufBase {
static create(writer, size = 4096) {
return writer instanceof BufWriterSync ? writer : new BufWriterSync(writer, size);
static create(writer2, size4 = 4096) {
return writer2 instanceof BufWriterSync ? writer2 : new BufWriterSync(writer2, size4);
}
constructor(writer, size = 4096){
constructor(writer3, size5 = 4096){
super();
this.writer = writer;
if (size <= 0) {
size = DEFAULT_BUF_SIZE;
this.writer = writer3;
if (size5 <= 0) {
size5 = DEFAULT_BUF_SIZE;
}
this.buf = new Uint8Array(size);
this.buf = new Uint8Array(size5);
}
reset(w) {
reset(w1) {
this.err = null;
this.usedBufferBytes = 0;
this.writer = w;
this.writer = w1;
}
flush() {
if (this.err !== null) throw this.err;
@ -1523,28 +1523,28 @@ class BufWriterSync extends AbstractBufBase {
this.buf = new Uint8Array(this.buf.length);
this.usedBufferBytes = 0;
}
writeSync(data) {
writeSync(data1) {
if (this.err !== null) throw this.err;
if (data.length === 0) return 0;
if (data1.length === 0) return 0;
let totalBytesWritten = 0;
let numBytesWritten = 0;
while(data.byteLength > this.available()){
while(data1.byteLength > this.available()){
if (this.buffered() === 0) {
try {
numBytesWritten = this.writer.writeSync(data);
numBytesWritten = this.writer.writeSync(data1);
} catch (e) {
this.err = e;
throw e;
}
} else {
numBytesWritten = copy(data, this.buf, this.usedBufferBytes);
numBytesWritten = copy(data1, this.buf, this.usedBufferBytes);
this.usedBufferBytes += numBytesWritten;
this.flush();
}
totalBytesWritten += numBytesWritten;
data = data.subarray(numBytesWritten);
data1 = data1.subarray(numBytesWritten);
}
numBytesWritten = copy(data, this.buf, this.usedBufferBytes);
numBytesWritten = copy(data1, this.buf, this.usedBufferBytes);
this.usedBufferBytes += numBytesWritten;
totalBytesWritten += numBytesWritten;
return totalBytesWritten;
@ -1562,8 +1562,8 @@ function charCode(s) {
return s.charCodeAt(0);
}
class TextProtoReader {
constructor(r){
this.r = r;
constructor(r2){
this.r = r2;
}
async readLine() {
const s = await this.readLineSlice();
@ -1692,7 +1692,7 @@ class PartReader {
this.n = 0;
this.total = 0;
}
async read(p) {
async read(p3) {
const br = this.mr.bufReader;
let peekLength = 1;
while(this.n === 0){
@ -1711,8 +1711,8 @@ class PartReader {
if (this.n === null) {
return null;
}
const nread = Math.min(p.length, this.n);
const buf = p.subarray(0, nread);
const nread = Math.min(p3.length, this.n);
const buf = p3.subarray(0, nread);
const r = await br.readFull(buf);
assert(r === buf);
this.n -= nread;
@ -1767,8 +1767,8 @@ function skipLWSPChar(u) {
return ret.slice(0, j);
}
class MultipartReader {
constructor(reader, boundary){
this.boundary = boundary;
constructor(reader, boundary1){
this.boundary = boundary1;
this.newLine = encoder.encode("\r\n");
this.newLineDashBoundary = encoder.encode(`\r\n--${this.boundary}`);
this.dashBoundaryDash = encoder.encode(`--${this.boundary}--`);
@ -1902,11 +1902,11 @@ class MultipartReader {
const rest = line.slice(this.dashBoundaryDash.length, line.length);
return rest.length === 0 || equals(skipLWSPChar(rest), this.newLine);
}
isBoundaryDelimiterLine(line) {
if (!startsWith(line, this.dashBoundary)) {
isBoundaryDelimiterLine(line1) {
if (!startsWith(line1, this.dashBoundary)) {
return false;
}
const rest = line.slice(this.dashBoundary.length);
const rest = line1.slice(this.dashBoundary.length);
return equals(skipLWSPChar(rest), this.newLine);
}
}

View File

@ -122,8 +122,8 @@ async function copyN(r, dest, size) {
}
BigInt(Number.MAX_SAFE_INTEGER);
class StringReader extends Deno.Buffer {
constructor(s){
super(new TextEncoder().encode(s).buffer);
constructor(s1){
super(new TextEncoder().encode(s1).buffer);
}
}
class MultiReader {
@ -170,7 +170,7 @@ function assertPath(path) {
function isPosixPathSeparator(code) {
return code === CHAR_FORWARD_SLASH;
}
function isPathSeparator(code) {
function isPathSeparator1(code) {
return isPosixPathSeparator(code) || code === CHAR_BACKWARD_SLASH;
}
function isWindowsDeviceRoot(code) {
@ -237,7 +237,7 @@ function _format(sep, pathObject) {
if (dir === pathObject.root) return dir + base;
return dir + sep + base;
}
const sep = "\\";
const sep3 = "\\";
const delimiter = ";";
function resolve(...pathSegments) {
let resolvedDevice = "";
@ -269,24 +269,24 @@ function resolve(...pathSegments) {
let isAbsolute = false;
const code = path.charCodeAt(0);
if (len > 1) {
if (isPathSeparator(code)) {
if (isPathSeparator1(code)) {
isAbsolute = true;
if (isPathSeparator(path.charCodeAt(1))) {
if (isPathSeparator1(path.charCodeAt(1))) {
let j = 2;
let last = j;
for(; j < len; ++j){
if (isPathSeparator(path.charCodeAt(j))) break;
if (isPathSeparator1(path.charCodeAt(j))) break;
}
if (j < len && j !== last) {
const firstPart = path.slice(last, j);
last = j;
for(; j < len; ++j){
if (!isPathSeparator(path.charCodeAt(j))) break;
if (!isPathSeparator1(path.charCodeAt(j))) break;
}
if (j < len && j !== last) {
last = j;
for(; j < len; ++j){
if (isPathSeparator(path.charCodeAt(j))) break;
if (isPathSeparator1(path.charCodeAt(j))) break;
}
if (j === len) {
device = `\\\\${firstPart}\\${path.slice(last)}`;
@ -305,14 +305,14 @@ function resolve(...pathSegments) {
device = path.slice(0, 2);
rootEnd = 2;
if (len > 2) {
if (isPathSeparator(path.charCodeAt(2))) {
if (isPathSeparator1(path.charCodeAt(2))) {
isAbsolute = true;
rootEnd = 3;
}
}
}
}
} else if (isPathSeparator(code)) {
} else if (isPathSeparator1(code)) {
rootEnd = 1;
isAbsolute = true;
}
@ -328,7 +328,7 @@ function resolve(...pathSegments) {
}
if (resolvedAbsolute && resolvedDevice.length > 0) break;
}
resolvedTail = normalizeString(resolvedTail, !resolvedAbsolute, "\\", isPathSeparator);
resolvedTail = normalizeString(resolvedTail, !resolvedAbsolute, "\\", isPathSeparator1);
return resolvedDevice + (resolvedAbsolute ? "\\" : "") + resolvedTail || ".";
}
function normalize(path) {
@ -340,24 +340,24 @@ function normalize(path) {
let isAbsolute = false;
const code = path.charCodeAt(0);
if (len > 1) {
if (isPathSeparator(code)) {
if (isPathSeparator1(code)) {
isAbsolute = true;
if (isPathSeparator(path.charCodeAt(1))) {
if (isPathSeparator1(path.charCodeAt(1))) {
let j = 2;
let last = j;
for(; j < len; ++j){
if (isPathSeparator(path.charCodeAt(j))) break;
if (isPathSeparator1(path.charCodeAt(j))) break;
}
if (j < len && j !== last) {
const firstPart = path.slice(last, j);
last = j;
for(; j < len; ++j){
if (!isPathSeparator(path.charCodeAt(j))) break;
if (!isPathSeparator1(path.charCodeAt(j))) break;
}
if (j < len && j !== last) {
last = j;
for(; j < len; ++j){
if (isPathSeparator(path.charCodeAt(j))) break;
if (isPathSeparator1(path.charCodeAt(j))) break;
}
if (j === len) {
return `\\\\${firstPart}\\${path.slice(last)}\\`;
@ -375,24 +375,24 @@ function normalize(path) {
device = path.slice(0, 2);
rootEnd = 2;
if (len > 2) {
if (isPathSeparator(path.charCodeAt(2))) {
if (isPathSeparator1(path.charCodeAt(2))) {
isAbsolute = true;
rootEnd = 3;
}
}
}
}
} else if (isPathSeparator(code)) {
} else if (isPathSeparator1(code)) {
return "\\";
}
let tail;
if (rootEnd < len) {
tail = normalizeString(path.slice(rootEnd), !isAbsolute, "\\", isPathSeparator);
tail = normalizeString(path.slice(rootEnd), !isAbsolute, "\\", isPathSeparator1);
} else {
tail = "";
}
if (tail.length === 0 && !isAbsolute) tail = ".";
if (tail.length > 0 && isPathSeparator(path.charCodeAt(len - 1))) {
if (tail.length > 0 && isPathSeparator1(path.charCodeAt(len - 1))) {
tail += "\\";
}
if (device === undefined) {
@ -413,16 +413,16 @@ function normalize(path) {
return device;
}
}
function isAbsolute(path) {
function isAbsolute3(path) {
assertPath(path);
const len = path.length;
if (len === 0) return false;
const code = path.charCodeAt(0);
if (isPathSeparator(code)) {
if (isPathSeparator1(code)) {
return true;
} else if (isWindowsDeviceRoot(code)) {
if (len > 2 && path.charCodeAt(1) === CHAR_COLON) {
if (isPathSeparator(path.charCodeAt(2))) return true;
if (isPathSeparator1(path.charCodeAt(2))) return true;
}
}
return false;
@ -444,14 +444,14 @@ function join(...paths) {
let needsReplace = true;
let slashCount = 0;
assert(firstPart != null);
if (isPathSeparator(firstPart.charCodeAt(0))) {
if (isPathSeparator1(firstPart.charCodeAt(0))) {
++slashCount;
const firstLen = firstPart.length;
if (firstLen > 1) {
if (isPathSeparator(firstPart.charCodeAt(1))) {
if (isPathSeparator1(firstPart.charCodeAt(1))) {
++slashCount;
if (firstLen > 2) {
if (isPathSeparator(firstPart.charCodeAt(2))) ++slashCount;
if (isPathSeparator1(firstPart.charCodeAt(2))) ++slashCount;
else {
needsReplace = false;
}
@ -461,7 +461,7 @@ function join(...paths) {
}
if (needsReplace) {
for(; slashCount < joined.length; ++slashCount){
if (!isPathSeparator(joined.charCodeAt(slashCount))) break;
if (!isPathSeparator1(joined.charCodeAt(slashCount))) break;
}
if (slashCount >= 2) joined = `\\${joined.slice(slashCount)}`;
}
@ -570,23 +570,23 @@ function dirname(path) {
let offset = 0;
const code = path.charCodeAt(0);
if (len > 1) {
if (isPathSeparator(code)) {
if (isPathSeparator1(code)) {
rootEnd = offset = 1;
if (isPathSeparator(path.charCodeAt(1))) {
if (isPathSeparator1(path.charCodeAt(1))) {
let j = 2;
let last = j;
for(; j < len; ++j){
if (isPathSeparator(path.charCodeAt(j))) break;
if (isPathSeparator1(path.charCodeAt(j))) break;
}
if (j < len && j !== last) {
last = j;
for(; j < len; ++j){
if (!isPathSeparator(path.charCodeAt(j))) break;
if (!isPathSeparator1(path.charCodeAt(j))) break;
}
if (j < len && j !== last) {
last = j;
for(; j < len; ++j){
if (isPathSeparator(path.charCodeAt(j))) break;
if (isPathSeparator1(path.charCodeAt(j))) break;
}
if (j === len) {
return path;
@ -601,15 +601,15 @@ function dirname(path) {
if (path.charCodeAt(1) === CHAR_COLON) {
rootEnd = offset = 2;
if (len > 2) {
if (isPathSeparator(path.charCodeAt(2))) rootEnd = offset = 3;
if (isPathSeparator1(path.charCodeAt(2))) rootEnd = offset = 3;
}
}
}
} else if (isPathSeparator(code)) {
} else if (isPathSeparator1(code)) {
return path;
}
for(let i = len - 1; i >= offset; --i){
if (isPathSeparator(path.charCodeAt(i))) {
if (isPathSeparator1(path.charCodeAt(i))) {
if (!matchedSlash) {
end = i;
break;
@ -645,7 +645,7 @@ function basename(path, ext = "") {
let firstNonSlashEnd = -1;
for(i = path.length - 1; i >= start; --i){
const code = path.charCodeAt(i);
if (isPathSeparator(code)) {
if (isPathSeparator1(code)) {
if (!matchedSlash) {
start = i + 1;
break;
@ -672,7 +672,7 @@ function basename(path, ext = "") {
return path.slice(start, end);
} else {
for(i = path.length - 1; i >= start; --i){
if (isPathSeparator(path.charCodeAt(i))) {
if (isPathSeparator1(path.charCodeAt(i))) {
if (!matchedSlash) {
start = i + 1;
break;
@ -699,7 +699,7 @@ function extname(path) {
}
for(let i = path.length - 1; i >= start; --i){
const code = path.charCodeAt(i);
if (isPathSeparator(code)) {
if (isPathSeparator1(code)) {
if (!matchedSlash) {
startPart = i + 1;
break;
@ -742,23 +742,23 @@ function parse(path) {
let rootEnd = 0;
let code = path.charCodeAt(0);
if (len > 1) {
if (isPathSeparator(code)) {
if (isPathSeparator1(code)) {
rootEnd = 1;
if (isPathSeparator(path.charCodeAt(1))) {
if (isPathSeparator1(path.charCodeAt(1))) {
let j = 2;
let last = j;
for(; j < len; ++j){
if (isPathSeparator(path.charCodeAt(j))) break;
if (isPathSeparator1(path.charCodeAt(j))) break;
}
if (j < len && j !== last) {
last = j;
for(; j < len; ++j){
if (!isPathSeparator(path.charCodeAt(j))) break;
if (!isPathSeparator1(path.charCodeAt(j))) break;
}
if (j < len && j !== last) {
last = j;
for(; j < len; ++j){
if (isPathSeparator(path.charCodeAt(j))) break;
if (isPathSeparator1(path.charCodeAt(j))) break;
}
if (j === len) {
rootEnd = j;
@ -772,7 +772,7 @@ function parse(path) {
if (path.charCodeAt(1) === CHAR_COLON) {
rootEnd = 2;
if (len > 2) {
if (isPathSeparator(path.charCodeAt(2))) {
if (isPathSeparator1(path.charCodeAt(2))) {
if (len === 3) {
ret.root = ret.dir = path;
return ret;
@ -785,7 +785,7 @@ function parse(path) {
}
}
}
} else if (isPathSeparator(code)) {
} else if (isPathSeparator1(code)) {
ret.root = ret.dir = path;
return ret;
}
@ -798,7 +798,7 @@ function parse(path) {
let preDotState = 0;
for(; i >= rootEnd; --i){
code = path.charCodeAt(i);
if (isPathSeparator(code)) {
if (isPathSeparator1(code)) {
if (!matchedSlash) {
startPart = i + 1;
break;
@ -842,7 +842,7 @@ function fromFileUrl(url) {
return path;
}
function toFileUrl(path) {
if (!isAbsolute(path)) {
if (!isAbsolute3(path)) {
throw new TypeError("Must be an absolute path.");
}
const [, hostname, pathname] = path.match(/^(?:[/\\]{2}([^/\\]+)(?=[/\\][^/\\]))?(.*)/);
@ -857,11 +857,11 @@ function toFileUrl(path) {
return url;
}
const mod = {
sep: sep,
sep: sep3,
delimiter: delimiter,
resolve: resolve,
normalize: normalize,
isAbsolute: isAbsolute,
isAbsolute: isAbsolute3,
join: join,
relative: relative,
toNamespacedPath: toNamespacedPath,
@ -1203,8 +1203,8 @@ const mod1 = {
fromFileUrl: fromFileUrl1,
toFileUrl: toFileUrl1
};
const path = isWindows ? mod : mod1;
const { basename: basename2 , delimiter: delimiter2 , dirname: dirname2 , extname: extname2 , format: format2 , fromFileUrl: fromFileUrl2 , isAbsolute: isAbsolute2 , join: join2 , normalize: normalize2 , parse: parse2 , relative: relative2 , resolve: resolve2 , sep: sep2 , toFileUrl: toFileUrl2 , toNamespacedPath: toNamespacedPath2 , } = path;
const path1 = isWindows ? mod : mod1;
const { basename: basename2 , delimiter: delimiter2 , dirname: dirname2 , extname: extname2 , format: format2 , fromFileUrl: fromFileUrl2 , isAbsolute: isAbsolute2 , join: join2 , normalize: normalize2 , parse: parse2 , relative: relative2 , resolve: resolve2 , sep: sep2 , toFileUrl: toFileUrl2 , toNamespacedPath: toNamespacedPath2 , } = path1;
const DEFAULT_BUF_SIZE = 4096;
const MIN_BUF_SIZE = 16;
const MAX_CONSECUTIVE_EMPTY_READS = 100;
@ -1227,14 +1227,14 @@ class BufReader {
static create(r, size = DEFAULT_BUF_SIZE) {
return r instanceof BufReader ? r : new BufReader(r, size);
}
constructor(rd, size = DEFAULT_BUF_SIZE){
constructor(rd, size1 = DEFAULT_BUF_SIZE){
this.r = 0;
this.w = 0;
this.eof = false;
if (size < MIN_BUF_SIZE) {
size = MIN_BUF_SIZE;
if (size1 < MIN_BUF_SIZE) {
size1 = MIN_BUF_SIZE;
}
this._reset(new Uint8Array(size), rd);
this._reset(new Uint8Array(size1), rd);
}
size() {
return this.buf.byteLength;
@ -1265,20 +1265,20 @@ class BufReader {
}
throw new Error(`No progress after ${MAX_CONSECUTIVE_EMPTY_READS} read() calls`);
}
reset(r) {
this._reset(this.buf, r);
reset(r1) {
this._reset(this.buf, r1);
}
_reset(buf, rd) {
this.buf = buf;
this.rd = rd;
_reset(buf1, rd1) {
this.buf = buf1;
this.rd = rd1;
this.eof = false;
}
async read(p) {
let rr = p.byteLength;
if (p.byteLength === 0) return rr;
async read(p1) {
let rr = p1.byteLength;
if (p1.byteLength === 0) return rr;
if (this.r === this.w) {
if (p.byteLength >= this.buf.byteLength) {
const rr = await this.rd.read(p);
if (p1.byteLength >= this.buf.byteLength) {
const rr = await this.rd.read(p1);
const nread = rr ?? 0;
assert(nread >= 0, "negative read");
return rr;
@ -1290,15 +1290,15 @@ class BufReader {
assert(rr >= 0, "negative read");
this.w += rr;
}
const copied = copy(this.buf.subarray(this.r, this.w), p, 0);
const copied = copy(this.buf.subarray(this.r, this.w), p1, 0);
this.r += copied;
return copied;
}
async readFull(p) {
async readFull(p2) {
let bytesRead = 0;
while(bytesRead < p.length){
while(bytesRead < p2.length){
try {
const rr = await this.read(p.subarray(bytesRead));
const rr = await this.read(p2.subarray(bytesRead));
if (rr === null) {
if (bytesRead === 0) {
return null;
@ -1308,11 +1308,11 @@ class BufReader {
}
bytesRead += rr;
} catch (err) {
err.partial = p.subarray(0, bytesRead);
err.partial = p2.subarray(0, bytesRead);
throw err;
}
}
return p;
return p2;
}
async readByte() {
while(this.r === this.w){
@ -1372,11 +1372,11 @@ class BufReader {
more: false
};
}
async readSlice(delim) {
async readSlice(delim1) {
let s = 0;
let slice;
while(true){
let i = this.buf.subarray(this.r + s, this.w).indexOf(delim);
let i = this.buf.subarray(this.r + s, this.w).indexOf(delim1);
if (i >= 0) {
i += s;
slice = this.buf.subarray(this.r, this.r + i + 1);
@ -1448,16 +1448,16 @@ class AbstractBufBase {
}
}
class BufWriter extends AbstractBufBase {
static create(writer, size = DEFAULT_BUF_SIZE) {
return writer instanceof BufWriter ? writer : new BufWriter(writer, size);
static create(writer, size2 = DEFAULT_BUF_SIZE) {
return writer instanceof BufWriter ? writer : new BufWriter(writer, size2);
}
constructor(writer, size = DEFAULT_BUF_SIZE){
constructor(writer1, size3 = DEFAULT_BUF_SIZE){
super();
this.writer = writer;
if (size <= 0) {
size = DEFAULT_BUF_SIZE;
this.writer = writer1;
if (size3 <= 0) {
size3 = DEFAULT_BUF_SIZE;
}
this.buf = new Uint8Array(size);
this.buf = new Uint8Array(size3);
}
reset(w) {
this.err = null;
@ -1504,21 +1504,21 @@ class BufWriter extends AbstractBufBase {
}
}
class BufWriterSync extends AbstractBufBase {
static create(writer, size = DEFAULT_BUF_SIZE) {
return writer instanceof BufWriterSync ? writer : new BufWriterSync(writer, size);
static create(writer2, size4 = DEFAULT_BUF_SIZE) {
return writer2 instanceof BufWriterSync ? writer2 : new BufWriterSync(writer2, size4);
}
constructor(writer, size = DEFAULT_BUF_SIZE){
constructor(writer3, size5 = DEFAULT_BUF_SIZE){
super();
this.writer = writer;
if (size <= 0) {
size = DEFAULT_BUF_SIZE;
this.writer = writer3;
if (size5 <= 0) {
size5 = DEFAULT_BUF_SIZE;
}
this.buf = new Uint8Array(size);
this.buf = new Uint8Array(size5);
}
reset(w) {
reset(w1) {
this.err = null;
this.usedBufferBytes = 0;
this.writer = w;
this.writer = w1;
}
flush() {
if (this.err !== null) throw this.err;
@ -1532,28 +1532,28 @@ class BufWriterSync extends AbstractBufBase {
this.buf = new Uint8Array(this.buf.length);
this.usedBufferBytes = 0;
}
writeSync(data) {
writeSync(data1) {
if (this.err !== null) throw this.err;
if (data.length === 0) return 0;
if (data1.length === 0) return 0;
let totalBytesWritten = 0;
let numBytesWritten = 0;
while(data.byteLength > this.available()){
while(data1.byteLength > this.available()){
if (this.buffered() === 0) {
try {
numBytesWritten = this.writer.writeSync(data);
numBytesWritten = this.writer.writeSync(data1);
} catch (e) {
this.err = e;
throw e;
}
} else {
numBytesWritten = copy(data, this.buf, this.usedBufferBytes);
numBytesWritten = copy(data1, this.buf, this.usedBufferBytes);
this.usedBufferBytes += numBytesWritten;
this.flush();
}
totalBytesWritten += numBytesWritten;
data = data.subarray(numBytesWritten);
data1 = data1.subarray(numBytesWritten);
}
numBytesWritten = copy(data, this.buf, this.usedBufferBytes);
numBytesWritten = copy(data1, this.buf, this.usedBufferBytes);
this.usedBufferBytes += numBytesWritten;
totalBytesWritten += numBytesWritten;
return totalBytesWritten;
@ -1571,8 +1571,8 @@ function charCode(s) {
return s.charCodeAt(0);
}
class TextProtoReader {
constructor(r){
this.r = r;
constructor(r2){
this.r = r2;
}
async readLine() {
const s = await this.readLineSlice();
@ -1701,7 +1701,7 @@ class PartReader {
this.n = 0;
this.total = 0;
}
async read(p) {
async read(p3) {
const br = this.mr.bufReader;
let peekLength = 1;
while(this.n === 0){
@ -1720,8 +1720,8 @@ class PartReader {
if (this.n === null) {
return null;
}
const nread = Math.min(p.length, this.n);
const buf = p.subarray(0, nread);
const nread = Math.min(p3.length, this.n);
const buf = p3.subarray(0, nread);
const r = await br.readFull(buf);
assert(r === buf);
this.n -= nread;
@ -1776,8 +1776,8 @@ function skipLWSPChar(u) {
return ret.slice(0, j);
}
class MultipartReader {
constructor(reader, boundary){
this.boundary = boundary;
constructor(reader, boundary1){
this.boundary = boundary1;
this.newLine = encoder.encode("\r\n");
this.newLineDashBoundary = encoder.encode(`\r\n--${this.boundary}`);
this.dashBoundaryDash = encoder.encode(`--${this.boundary}--`);
@ -1911,11 +1911,11 @@ class MultipartReader {
const rest = line.slice(this.dashBoundaryDash.length, line.length);
return rest.length === 0 || equals(skipLWSPChar(rest), this.newLine);
}
isBoundaryDelimiterLine(line) {
if (!startsWith(line, this.dashBoundary)) {
isBoundaryDelimiterLine(line1) {
if (!startsWith(line1, this.dashBoundary)) {
return false;
}
const rest = line.slice(this.dashBoundary.length);
const rest = line1.slice(this.dashBoundary.length);
return equals(skipLWSPChar(rest), this.newLine);
}
}

View File

@ -1,9 +1,9 @@
const content1 = `--------------------------366796e1c748a2fb\r
const content = `--------------------------366796e1c748a2fb\r
Content-Disposition: form-data; name="payload"\r
Content-Type: text/plain\r
\r
CONTENT\r
--------------------------366796e1c748a2fb--`;
const boundary1 = "------------------------366796e1c748a2fb";
export { content1 as content };
export { boundary1 as boundary };
const boundary = "------------------------366796e1c748a2fb";
export { content as content };
export { boundary as boundary };

View File

@ -1,9 +1,9 @@
const content1 = `--------------------------366796e1c748a2fb\r
const content = `--------------------------366796e1c748a2fb\r
Content-Disposition: form-data; name="payload"\r
Content-Type: text/plain\r
\r
CONTENT\r
--------------------------366796e1c748a2fb--`;
const boundary1 = "------------------------366796e1c748a2fb";
export { content1 as content };
export { boundary1 as boundary };
const boundary = "------------------------366796e1c748a2fb";
export { content as content };
export { boundary as boundary };

View File

@ -14,8 +14,8 @@ class A {
#c;
constructor(o = {
}){
const { a: a1 = a , c , } = o;
this.#a = a1;
const { a: a2 = a , c , } = o;
this.#a = a2;
this.#c = c;
}
a() {

View File

@ -14,8 +14,8 @@ class A {
#c;
constructor(o = {
}){
const { a: a1 = a , c , } = o;
this.#a = a1;
const { a: a2 = a , c , } = o;
this.#a = a2;
this.#c = c;
}
a() {

View File

@ -14,8 +14,8 @@ class A {
#c;
constructor(o = {
}){
const { a: a1 = a , c , } = o;
this.#a = a1;
const { a: a2 = a , c , } = o;
this.#a = a2;
this.#c = c;
}
a() {

View File

@ -14,8 +14,8 @@ class A {
#c;
constructor(o = {
}){
const { a: a1 = a , c , } = o;
this.#a = a1;
const { a: a2 = a , c , } = o;
this.#a = a2;
this.#c = c;
}
a() {

View File

@ -22,6 +22,6 @@ var load = __swcpack_require__.bind(void 0, function(module, exports) {
module.exports = lodash;
exports.memoize = memoize;
});
const _cjs_module_ = load(), memoize = _cjs_module_.memoize;
const name = memoize();
const _cjs_module_ = load(), memoize1 = _cjs_module_.memoize;
const name = memoize1();
console.log(name);

View File

@ -22,6 +22,6 @@ var load = __swcpack_require__.bind(void 0, function(module, exports) {
module.exports = lodash;
exports.memoize = memoize;
});
const _cjs_module_ = load(), memoize = _cjs_module_.memoize;
const name = memoize();
const _cjs_module_ = load(), memoize1 = _cjs_module_.memoize;
const name = memoize1();
console.log(name);

View File

@ -0,0 +1,8 @@
import * as test from "./mod2";
for (var i = 0; i < 10; i++) {
var property = "test";
console.log(property);
}
console.log(test.property(1, 2));

View File

@ -0,0 +1,3 @@
export function property(a, b) {
return a + b;
}

View File

@ -0,0 +1,8 @@
function property(a, b) {
return a + b;
}
for(var i = 0; i < 10; i++){
var property1 = "test";
console.log(property1);
}
console.log(property(1, 2));

View File

@ -0,0 +1,8 @@
function property(a, b) {
return a + b;
}
for(var i = 0; i < 10; i++){
var property1 = "test";
console.log(property1);
}
console.log(property(1, 2));

View File

@ -1,8 +1,8 @@
const a1 = 1;
function foo1() {
const a = 1;
function foo() {
}
class Class1 {
class Class {
}
export { a1 as a };
export { foo1 as foo };
export { Class1 as Class };
export { a as a };
export { foo as foo };
export { Class as Class };

View File

@ -1,8 +1,8 @@
const a1 = 1;
function foo1() {
const a = 1;
function foo() {
}
class Class1 {
class Class {
}
export { a1 as a };
export { foo1 as foo };
export { Class1 as Class };
export { a as a };
export { foo as foo };
export { Class as Class };

View File

@ -1,11 +1,11 @@
var A;
var A1;
(function(A) {
A[A["b"] = 5] = "b";
A[A["c"] = 28] = "c";
})(A || (A = {
})(A1 || (A1 = {
}));
function foo() {
console.log(A);
console.log(A1);
}
function lazy() {
foo();

View File

@ -1,11 +1,11 @@
var A;
var A1;
(function(A) {
A[A["b"] = 5] = "b";
A[A["c"] = 28] = "c";
})(A || (A = {
})(A1 || (A1 = {
}));
function foo() {
console.log(A);
console.log(A1);
}
function lazy() {
foo();

View File

@ -89,6 +89,7 @@
"pointee",
"prec",
"PREC",
"proto",
"punct",
"putc",
"qself",
@ -111,6 +112,7 @@
"swcify",
"swcpack",
"swcrc",
"systemjs",
"termcolor",
"typeofs",
"uncons",

View File

@ -7,7 +7,7 @@ include = ["Cargo.toml", "src/**/*.rs"]
license = "Apache-2.0/MIT"
name = "swc_ecma_codegen"
repository = "https://github.com/swc-project/swc.git"
version = "0.77.0"
version = "0.77.1"
[dependencies]
bitflags = "1"

View File

@ -209,7 +209,10 @@ where
fn emit_ts_external_module_ref(&mut self, n: &TsExternalModuleRef) -> Result {
self.emit_leading_comments_of_span(n.span(), false)?;
unimplemented!("emit_ts_external_module_ref")
keyword!("require");
punct!("(");
emit!(n.expr);
punct!(")");
}
#[emitter]

View File

@ -1,13 +1,12 @@
use super::list::ListFormat;
use std::{rc::Rc, sync::Arc};
use swc_common::{
errors::SourceMapper, BytePos, SourceMap, SourceMapperDyn, Span, Spanned, SyntaxContext,
};
use swc_common::{errors::SourceMapper, BytePos, SourceMap, SourceMapperDyn, Span, Spanned};
use swc_ecma_ast::*;
pub trait SpanExt: Spanned {
#[inline]
fn is_synthesized(&self) -> bool {
self.span().ctxt() != SyntaxContext::empty()
false
}
fn starts_on_new_line(&self, format: ListFormat) -> bool {

View File

@ -18,12 +18,12 @@ function _defineProperty(obj, key, value) {
writable: !0
}) : obj[key] = value, obj;
}
var ClassA = function ClassA() {
var ClassA1 = function ClassA() {
"use strict";
_classCallCheck(this, ClassA);
};
module.exports = (function() {
var ClassB = function() {
var ClassB1 = function() {
"use strict";
function ClassB() {
_classCallCheck(this, ClassB);
@ -37,5 +37,5 @@ module.exports = (function() {
}
]), ClassB;
}();
return _defineProperty(ClassB, "MyA", ClassA), ClassB;
return _defineProperty(ClassB1, "MyA", ClassA1), ClassB1;
})();

View File

@ -25,7 +25,7 @@ function newDate(y, m, d) {
};
}
export default function formatLocale(locale) {
var locale_dateTime = locale.dateTime, locale_date = locale.date, locale_time = locale.time, locale_periods = locale.periods, locale_weekdays = locale.days, locale_shortWeekdays = locale.shortDays, locale_months = locale.months, locale_shortMonths = locale.shortMonths, periodRe = formatRe(locale_periods), periodLookup = formatLookup(locale_periods), weekdayRe = formatRe(locale_weekdays), weekdayLookup = formatLookup(locale_weekdays), shortWeekdayRe = formatRe(locale_shortWeekdays), shortWeekdayLookup = formatLookup(locale_shortWeekdays), monthRe = formatRe(locale_months), monthLookup = formatLookup(locale_months), shortMonthRe = formatRe(locale_shortMonths), shortMonthLookup = formatLookup(locale_shortMonths), formats = {
var locale_dateTime = locale.dateTime, locale_date = locale.date, locale_time = locale.time, locale_periods = locale.periods, locale_weekdays = locale.days, locale_shortWeekdays = locale.shortDays, locale_months = locale.months, locale_shortMonths = locale.shortMonths, periodRe = formatRe(locale_periods), periodLookup = formatLookup(locale_periods), weekdayRe = formatRe(locale_weekdays), weekdayLookup = formatLookup(locale_weekdays), shortWeekdayRe = formatRe(locale_shortWeekdays), shortWeekdayLookup = formatLookup(locale_shortWeekdays), monthRe = formatRe(locale_months), monthLookup = formatLookup(locale_months), shortMonthRe = formatRe(locale_shortMonths), shortMonthLookup = formatLookup(locale_shortMonths), formats1 = {
a: function(d) {
return locale_shortWeekdays[d.getDay()];
},
@ -199,9 +199,9 @@ export default function formatLocale(locale) {
}
return j;
}
return formats.x = newFormat(locale_date, formats), formats.X = newFormat(locale_time, formats), formats.c = newFormat(locale_dateTime, formats), utcFormats.x = newFormat(locale_date, utcFormats), utcFormats.X = newFormat(locale_time, utcFormats), utcFormats.c = newFormat(locale_dateTime, utcFormats), {
return formats1.x = newFormat(locale_date, formats1), formats1.X = newFormat(locale_time, formats1), formats1.c = newFormat(locale_dateTime, formats1), utcFormats.x = newFormat(locale_date, utcFormats), utcFormats.X = newFormat(locale_time, utcFormats), utcFormats.c = newFormat(locale_dateTime, utcFormats), {
format: function(specifier) {
var f = newFormat(specifier += "", formats);
var f = newFormat(specifier += "", formats1);
return f.toString = function() {
return specifier;
}, f;
@ -231,7 +231,7 @@ var pads = {
"_": " ",
"0": "0"
}, numberRe = /^\s*\d+/, percentRe = /^%/, requoteRe = /[\\^$*+?|[\]().{}]/g;
function pad(value, fill, width) {
function pad1(value, fill, width) {
var sign = value < 0 ? "-" : "", string = (sign ? -value : value) + "", length = string.length;
return sign + (length < width ? new Array(width - length + 1).join(fill) + string : string);
}
@ -329,128 +329,128 @@ function parseUnixTimestampSeconds(d, string, i) {
return n ? (d.s = +n[0], i + n[0].length) : -1;
}
function formatDayOfMonth(d, p) {
return pad(d.getDate(), p, 2);
return pad1(d.getDate(), p, 2);
}
function formatHour24(d, p) {
return pad(d.getHours(), p, 2);
return pad1(d.getHours(), p, 2);
}
function formatHour12(d, p) {
return pad(d.getHours() % 12 || 12, p, 2);
return pad1(d.getHours() % 12 || 12, p, 2);
}
function formatDayOfYear(d, p) {
return pad(1 + timeDay.count(timeYear(d), d), p, 3);
return pad1(1 + timeDay.count(timeYear(d), d), p, 3);
}
function formatMilliseconds(d, p) {
return pad(d.getMilliseconds(), p, 3);
return pad1(d.getMilliseconds(), p, 3);
}
function formatMicroseconds(d, p) {
return formatMilliseconds(d, p) + "000";
}
function formatMonthNumber(d, p) {
return pad(d.getMonth() + 1, p, 2);
return pad1(d.getMonth() + 1, p, 2);
}
function formatMinutes(d, p) {
return pad(d.getMinutes(), p, 2);
return pad1(d.getMinutes(), p, 2);
}
function formatSeconds(d, p) {
return pad(d.getSeconds(), p, 2);
return pad1(d.getSeconds(), p, 2);
}
function formatWeekdayNumberMonday(d) {
var day = d.getDay();
return 0 === day ? 7 : day;
}
function formatWeekNumberSunday(d, p) {
return pad(timeSunday.count(timeYear(d) - 1, d), p, 2);
return pad1(timeSunday.count(timeYear(d) - 1, d), p, 2);
}
function dISO(d) {
var day = d.getDay();
return day >= 4 || 0 === day ? timeThursday(d) : timeThursday.ceil(d);
}
function formatWeekNumberISO(d, p) {
return d = dISO(d), pad(timeThursday.count(timeYear(d), d) + (4 === timeYear(d).getDay()), p, 2);
return d = dISO(d), pad1(timeThursday.count(timeYear(d), d) + (4 === timeYear(d).getDay()), p, 2);
}
function formatWeekdayNumberSunday(d) {
return d.getDay();
}
function formatWeekNumberMonday(d, p) {
return pad(timeMonday.count(timeYear(d) - 1, d), p, 2);
return pad1(timeMonday.count(timeYear(d) - 1, d), p, 2);
}
function formatYear(d, p) {
return pad(d.getFullYear() % 100, p, 2);
return pad1(d.getFullYear() % 100, p, 2);
}
function formatYearISO(d, p) {
return pad((d = dISO(d)).getFullYear() % 100, p, 2);
return pad1((d = dISO(d)).getFullYear() % 100, p, 2);
}
function formatFullYear(d, p) {
return pad(d.getFullYear() % 10000, p, 4);
return pad1(d.getFullYear() % 10000, p, 4);
}
function formatFullYearISO(d, p) {
var day = d.getDay();
return pad((d = day >= 4 || 0 === day ? timeThursday(d) : timeThursday.ceil(d)).getFullYear() % 10000, p, 4);
return pad1((d = day >= 4 || 0 === day ? timeThursday(d) : timeThursday.ceil(d)).getFullYear() % 10000, p, 4);
}
function formatZone(d) {
var z = d.getTimezoneOffset();
return (z > 0 ? "-" : (z *= -1, "+")) + pad(z / 60 | 0, "0", 2) + pad(z % 60, "0", 2);
return (z > 0 ? "-" : (z *= -1, "+")) + pad1(z / 60 | 0, "0", 2) + pad1(z % 60, "0", 2);
}
function formatUTCDayOfMonth(d, p) {
return pad(d.getUTCDate(), p, 2);
return pad1(d.getUTCDate(), p, 2);
}
function formatUTCHour24(d, p) {
return pad(d.getUTCHours(), p, 2);
return pad1(d.getUTCHours(), p, 2);
}
function formatUTCHour12(d, p) {
return pad(d.getUTCHours() % 12 || 12, p, 2);
return pad1(d.getUTCHours() % 12 || 12, p, 2);
}
function formatUTCDayOfYear(d, p) {
return pad(1 + utcDay.count(utcYear(d), d), p, 3);
return pad1(1 + utcDay.count(utcYear(d), d), p, 3);
}
function formatUTCMilliseconds(d, p) {
return pad(d.getUTCMilliseconds(), p, 3);
return pad1(d.getUTCMilliseconds(), p, 3);
}
function formatUTCMicroseconds(d, p) {
return formatUTCMilliseconds(d, p) + "000";
}
function formatUTCMonthNumber(d, p) {
return pad(d.getUTCMonth() + 1, p, 2);
return pad1(d.getUTCMonth() + 1, p, 2);
}
function formatUTCMinutes(d, p) {
return pad(d.getUTCMinutes(), p, 2);
return pad1(d.getUTCMinutes(), p, 2);
}
function formatUTCSeconds(d, p) {
return pad(d.getUTCSeconds(), p, 2);
return pad1(d.getUTCSeconds(), p, 2);
}
function formatUTCWeekdayNumberMonday(d) {
var dow = d.getUTCDay();
return 0 === dow ? 7 : dow;
}
function formatUTCWeekNumberSunday(d, p) {
return pad(utcSunday.count(utcYear(d) - 1, d), p, 2);
return pad1(utcSunday.count(utcYear(d) - 1, d), p, 2);
}
function UTCdISO(d) {
var day = d.getUTCDay();
return day >= 4 || 0 === day ? utcThursday(d) : utcThursday.ceil(d);
}
function formatUTCWeekNumberISO(d, p) {
return d = UTCdISO(d), pad(utcThursday.count(utcYear(d), d) + (4 === utcYear(d).getUTCDay()), p, 2);
return d = UTCdISO(d), pad1(utcThursday.count(utcYear(d), d) + (4 === utcYear(d).getUTCDay()), p, 2);
}
function formatUTCWeekdayNumberSunday(d) {
return d.getUTCDay();
}
function formatUTCWeekNumberMonday(d, p) {
return pad(utcMonday.count(utcYear(d) - 1, d), p, 2);
return pad1(utcMonday.count(utcYear(d) - 1, d), p, 2);
}
function formatUTCYear(d, p) {
return pad(d.getUTCFullYear() % 100, p, 2);
return pad1(d.getUTCFullYear() % 100, p, 2);
}
function formatUTCYearISO(d, p) {
return pad((d = UTCdISO(d)).getUTCFullYear() % 100, p, 2);
return pad1((d = UTCdISO(d)).getUTCFullYear() % 100, p, 2);
}
function formatUTCFullYear(d, p) {
return pad(d.getUTCFullYear() % 10000, p, 4);
return pad1(d.getUTCFullYear() % 10000, p, 4);
}
function formatUTCFullYearISO(d, p) {
var day = d.getUTCDay();
return pad((d = day >= 4 || 0 === day ? utcThursday(d) : utcThursday.ceil(d)).getUTCFullYear() % 10000, p, 4);
return pad1((d = day >= 4 || 0 === day ? utcThursday(d) : utcThursday.ceil(d)).getUTCFullYear() % 10000, p, 4);
}
function formatUTCZone() {
return "+0000";

View File

@ -10,7 +10,7 @@
return createTimeScale;
}
});
var locale, bisector = __webpack_require__(24852), src_ticks = __webpack_require__(73002), t0 = new Date(), t1 = new Date();
var locale1, bisector = __webpack_require__(24852), src_ticks = __webpack_require__(73002), t0 = new Date(), t1 = new Date();
function newInterval(floori, offseti, count, field) {
function interval(date) {
return floori(date = 0 === arguments.length ? new Date() : new Date(+date)), date;
@ -74,7 +74,7 @@
return date.getUTCSeconds();
}), src_second = second;
second.range;
var minute = newInterval(function(date) {
var minute1 = newInterval(function(date) {
date.setTime(date - date.getMilliseconds() - 1000 * date.getSeconds());
}, function(date, step) {
date.setTime(+date + 60000 * step);
@ -83,8 +83,8 @@
}, function(date) {
return date.getMinutes();
});
minute.range;
var hour = newInterval(function(date) {
minute1.range;
var hour1 = newInterval(function(date) {
date.setTime(date - date.getMilliseconds() - 1000 * date.getSeconds() - 60000 * date.getMinutes());
}, function(date, step) {
date.setTime(+date + 3600000 * step);
@ -93,12 +93,12 @@
}, function(date) {
return date.getHours();
});
hour.range;
var day = newInterval((date)=>date.setHours(0, 0, 0, 0)
hour1.range;
var day1 = newInterval((date)=>date.setHours(0, 0, 0, 0)
, (date, step)=>date.setDate(date.getDate() + step)
, (start, end)=>(end - start - (end.getTimezoneOffset() - start.getTimezoneOffset()) * 60000) / 86400000
, (date)=>date.getDate() - 1
), src_day = day;
), src_day = day1;
function weekday(i) {
return newInterval(function(date) {
date.setDate(date.getDate() - (date.getDay() + 7 - i) % 7), date.setHours(0, 0, 0, 0);
@ -108,10 +108,10 @@
return (end - start - (end.getTimezoneOffset() - start.getTimezoneOffset()) * 60000) / 604800000;
});
}
day.range;
day1.range;
var sunday = weekday(0), monday = weekday(1), tuesday = weekday(2), wednesday = weekday(3), thursday = weekday(4), friday = weekday(5), saturday = weekday(6);
sunday.range, monday.range, tuesday.range, wednesday.range, thursday.range, friday.range, saturday.range;
var month = newInterval(function(date) {
var month1 = newInterval(function(date) {
date.setDate(1), date.setHours(0, 0, 0, 0);
}, function(date, step) {
date.setMonth(date.getMonth() + step);
@ -120,8 +120,8 @@
}, function(date) {
return date.getMonth();
});
month.range;
var year = newInterval(function(date) {
month1.range;
var year1 = newInterval(function(date) {
date.setMonth(0, 1), date.setHours(0, 0, 0, 0);
}, function(date, step) {
date.setFullYear(date.getFullYear() + step);
@ -130,15 +130,15 @@
}, function(date) {
return date.getFullYear();
});
year.every = function(k) {
year1.every = function(k) {
return isFinite(k = Math.floor(k)) && k > 0 ? newInterval(function(date) {
date.setFullYear(Math.floor(date.getFullYear() / k) * k), date.setMonth(0, 1), date.setHours(0, 0, 0, 0);
}, function(date, step) {
date.setFullYear(date.getFullYear() + step * k);
}) : null;
};
var src_year = year;
year.range;
var src_year = year1;
year1.range;
var utcMinute = newInterval(function(date) {
date.setUTCSeconds(0, 0);
}, function(date, step) {
@ -305,10 +305,11 @@
).right(tickIntervals, target);
if (i === tickIntervals.length) return year.every((0, src_ticks.ly)(start / 31536000000, stop / 31536000000, count));
if (0 === i) return src_millisecond.every(Math.max((0, src_ticks.ly)(start, stop, count), 1));
const [t, step] = tickIntervals[target / tickIntervals[i - 1][2] < tickIntervals[i][2] / target ? i - 1 : i];
return t.every(step);
const [t, step1] = tickIntervals[target / tickIntervals[i - 1][2] < tickIntervals[i][2] / target ? i - 1 : i];
return t.every(step1);
}
return [function(start, stop, count) {
return [
function(start, stop, count) {
const reverse = stop < start;
reverse && ([start, stop] = [
stop,
@ -316,11 +317,12 @@
]);
const interval = count && "function" == typeof count.range ? count : tickInterval(start, stop, count), ticks = interval ? interval.range(start, +stop + 1) : [];
return reverse ? ticks.reverse() : ticks;
}, tickInterval
},
tickInterval
];
}
utcYear.range;
const [utcTicks, utcTickInterval] = ticker(src_utcYear, utcMonth, utcSunday, src_utcDay, utcHour, utcMinute), [timeTicks, timeTickInterval] = ticker(src_year, month, sunday, src_day, hour, minute);
const [utcTicks, utcTickInterval] = ticker(src_utcYear, utcMonth, utcSunday, src_utcDay, utcHour, utcMinute), [timeTicks, timeTickInterval] = ticker(src_year, month1, sunday, src_day, hour1, minute1);
function localDate(d) {
if (0 <= d.y && d.y < 100) {
var date = new Date(-1, d.m, d.d, d.H, d.M, d.S, d.L);
@ -351,7 +353,7 @@
_: " ",
0: "0"
}, numberRe = /^\s*\d+/, percentRe = /^%/, requoteRe = /[\\^$*+?|[\]().{}]/g;
function pad(value, fill, width) {
function pad1(value, fill, width) {
var sign = value < 0 ? "-" : "", string = (sign ? -value : value) + "", length = string.length;
return sign + (length < width ? new Array(width - length + 1).join(fill) + string : string);
}
@ -449,128 +451,128 @@
return n ? (d.s = +n[0], i + n[0].length) : -1;
}
function formatDayOfMonth(d, p) {
return pad(d.getDate(), p, 2);
return pad1(d.getDate(), p, 2);
}
function formatHour24(d, p) {
return pad(d.getHours(), p, 2);
return pad1(d.getHours(), p, 2);
}
function formatHour12(d, p) {
return pad(d.getHours() % 12 || 12, p, 2);
return pad1(d.getHours() % 12 || 12, p, 2);
}
function formatDayOfYear(d, p) {
return pad(1 + src_day.count(src_year(d), d), p, 3);
return pad1(1 + src_day.count(src_year(d), d), p, 3);
}
function formatMilliseconds(d, p) {
return pad(d.getMilliseconds(), p, 3);
return pad1(d.getMilliseconds(), p, 3);
}
function formatMicroseconds(d, p) {
return formatMilliseconds(d, p) + "000";
}
function formatMonthNumber(d, p) {
return pad(d.getMonth() + 1, p, 2);
return pad1(d.getMonth() + 1, p, 2);
}
function formatMinutes(d, p) {
return pad(d.getMinutes(), p, 2);
return pad1(d.getMinutes(), p, 2);
}
function formatSeconds(d, p) {
return pad(d.getSeconds(), p, 2);
return pad1(d.getSeconds(), p, 2);
}
function formatWeekdayNumberMonday(d) {
var day1 = d.getDay();
return 0 === day1 ? 7 : day1;
var day = d.getDay();
return 0 === day ? 7 : day;
}
function formatWeekNumberSunday(d, p) {
return pad(sunday.count(src_year(d) - 1, d), p, 2);
return pad1(sunday.count(src_year(d) - 1, d), p, 2);
}
function dISO(d) {
var day1 = d.getDay();
return day1 >= 4 || 0 === day1 ? thursday(d) : thursday.ceil(d);
var day = d.getDay();
return day >= 4 || 0 === day ? thursday(d) : thursday.ceil(d);
}
function formatWeekNumberISO(d, p) {
return d = dISO(d), pad(thursday.count(src_year(d), d) + (4 === src_year(d).getDay()), p, 2);
return d = dISO(d), pad1(thursday.count(src_year(d), d) + (4 === src_year(d).getDay()), p, 2);
}
function formatWeekdayNumberSunday(d) {
return d.getDay();
}
function formatWeekNumberMonday(d, p) {
return pad(monday.count(src_year(d) - 1, d), p, 2);
return pad1(monday.count(src_year(d) - 1, d), p, 2);
}
function formatYear(d, p) {
return pad(d.getFullYear() % 100, p, 2);
return pad1(d.getFullYear() % 100, p, 2);
}
function formatYearISO(d, p) {
return pad((d = dISO(d)).getFullYear() % 100, p, 2);
return pad1((d = dISO(d)).getFullYear() % 100, p, 2);
}
function formatFullYear(d, p) {
return pad(d.getFullYear() % 10000, p, 4);
return pad1(d.getFullYear() % 10000, p, 4);
}
function formatFullYearISO(d, p) {
var day1 = d.getDay();
return pad((d = day1 >= 4 || 0 === day1 ? thursday(d) : thursday.ceil(d)).getFullYear() % 10000, p, 4);
var day = d.getDay();
return pad1((d = day >= 4 || 0 === day ? thursday(d) : thursday.ceil(d)).getFullYear() % 10000, p, 4);
}
function formatZone(d) {
var z = d.getTimezoneOffset();
return (z > 0 ? "-" : (z *= -1, "+")) + pad(z / 60 | 0, "0", 2) + pad(z % 60, "0", 2);
return (z > 0 ? "-" : (z *= -1, "+")) + pad1(z / 60 | 0, "0", 2) + pad1(z % 60, "0", 2);
}
function formatUTCDayOfMonth(d, p) {
return pad(d.getUTCDate(), p, 2);
return pad1(d.getUTCDate(), p, 2);
}
function formatUTCHour24(d, p) {
return pad(d.getUTCHours(), p, 2);
return pad1(d.getUTCHours(), p, 2);
}
function formatUTCHour12(d, p) {
return pad(d.getUTCHours() % 12 || 12, p, 2);
return pad1(d.getUTCHours() % 12 || 12, p, 2);
}
function formatUTCDayOfYear(d, p) {
return pad(1 + src_utcDay.count(src_utcYear(d), d), p, 3);
return pad1(1 + src_utcDay.count(src_utcYear(d), d), p, 3);
}
function formatUTCMilliseconds(d, p) {
return pad(d.getUTCMilliseconds(), p, 3);
return pad1(d.getUTCMilliseconds(), p, 3);
}
function formatUTCMicroseconds(d, p) {
return formatUTCMilliseconds(d, p) + "000";
}
function formatUTCMonthNumber(d, p) {
return pad(d.getUTCMonth() + 1, p, 2);
return pad1(d.getUTCMonth() + 1, p, 2);
}
function formatUTCMinutes(d, p) {
return pad(d.getUTCMinutes(), p, 2);
return pad1(d.getUTCMinutes(), p, 2);
}
function formatUTCSeconds(d, p) {
return pad(d.getUTCSeconds(), p, 2);
return pad1(d.getUTCSeconds(), p, 2);
}
function formatUTCWeekdayNumberMonday(d) {
var dow = d.getUTCDay();
return 0 === dow ? 7 : dow;
}
function formatUTCWeekNumberSunday(d, p) {
return pad(utcSunday.count(src_utcYear(d) - 1, d), p, 2);
return pad1(utcSunday.count(src_utcYear(d) - 1, d), p, 2);
}
function UTCdISO(d) {
var day1 = d.getUTCDay();
return day1 >= 4 || 0 === day1 ? utcThursday(d) : utcThursday.ceil(d);
var day = d.getUTCDay();
return day >= 4 || 0 === day ? utcThursday(d) : utcThursday.ceil(d);
}
function formatUTCWeekNumberISO(d, p) {
return d = UTCdISO(d), pad(utcThursday.count(src_utcYear(d), d) + (4 === src_utcYear(d).getUTCDay()), p, 2);
return d = UTCdISO(d), pad1(utcThursday.count(src_utcYear(d), d) + (4 === src_utcYear(d).getUTCDay()), p, 2);
}
function formatUTCWeekdayNumberSunday(d) {
return d.getUTCDay();
}
function formatUTCWeekNumberMonday(d, p) {
return pad(utcMonday.count(src_utcYear(d) - 1, d), p, 2);
return pad1(utcMonday.count(src_utcYear(d) - 1, d), p, 2);
}
function formatUTCYear(d, p) {
return pad(d.getUTCFullYear() % 100, p, 2);
return pad1(d.getUTCFullYear() % 100, p, 2);
}
function formatUTCYearISO(d, p) {
return pad((d = UTCdISO(d)).getUTCFullYear() % 100, p, 2);
return pad1((d = UTCdISO(d)).getUTCFullYear() % 100, p, 2);
}
function formatUTCFullYear(d, p) {
return pad(d.getUTCFullYear() % 10000, p, 4);
return pad1(d.getUTCFullYear() % 10000, p, 4);
}
function formatUTCFullYearISO(d, p) {
var day1 = d.getUTCDay();
return pad((d = day1 >= 4 || 0 === day1 ? utcThursday(d) : utcThursday.ceil(d)).getUTCFullYear() % 10000, p, 4);
var day = d.getUTCDay();
return pad1((d = day >= 4 || 0 === day ? utcThursday(d) : utcThursday.ceil(d)).getUTCFullYear() % 10000, p, 4);
}
function formatUTCZone() {
return "+0000";
@ -584,8 +586,8 @@
function formatUnixTimestampSeconds(d) {
return Math.floor(+d / 1000);
}
(locale = (function(locale) {
var locale_dateTime = locale.dateTime, locale_date = locale.date, locale_time = locale.time, locale_periods = locale.periods, locale_weekdays = locale.days, locale_shortWeekdays = locale.shortDays, locale_months = locale.months, locale_shortMonths = locale.shortMonths, periodRe = formatRe(locale_periods), periodLookup = formatLookup(locale_periods), weekdayRe = formatRe(locale_weekdays), weekdayLookup = formatLookup(locale_weekdays), shortWeekdayRe = formatRe(locale_shortWeekdays), shortWeekdayLookup = formatLookup(locale_shortWeekdays), monthRe = formatRe(locale_months), monthLookup = formatLookup(locale_months), shortMonthRe = formatRe(locale_shortMonths), shortMonthLookup = formatLookup(locale_shortMonths), formats = {
(locale1 = (function(locale) {
var locale_dateTime = locale.dateTime, locale_date = locale.date, locale_time = locale.time, locale_periods = locale.periods, locale_weekdays = locale.days, locale_shortWeekdays = locale.shortDays, locale_months = locale.months, locale_shortMonths = locale.shortMonths, periodRe = formatRe(locale_periods), periodLookup = formatLookup(locale_periods), weekdayRe = formatRe(locale_weekdays), weekdayLookup = formatLookup(locale_weekdays), shortWeekdayRe = formatRe(locale_shortWeekdays), shortWeekdayLookup = formatLookup(locale_shortWeekdays), monthRe = formatRe(locale_months), monthLookup = formatLookup(locale_months), shortMonthRe = formatRe(locale_shortMonths), shortMonthLookup = formatLookup(locale_shortMonths), formats1 = {
a: function(d) {
return locale_shortWeekdays[d.getDay()];
},
@ -759,9 +761,9 @@
}
return j;
}
return formats.x = newFormat(locale_date, formats), formats.X = newFormat(locale_time, formats), formats.c = newFormat(locale_dateTime, formats), utcFormats.x = newFormat(locale_date, utcFormats), utcFormats.X = newFormat(locale_time, utcFormats), utcFormats.c = newFormat(locale_dateTime, utcFormats), {
return formats1.x = newFormat(locale_date, formats1), formats1.X = newFormat(locale_time, formats1), formats1.c = newFormat(locale_dateTime, formats1), utcFormats.x = newFormat(locale_date, utcFormats), utcFormats.X = newFormat(locale_time, utcFormats), utcFormats.c = newFormat(locale_dateTime, utcFormats), {
format: function(specifier) {
var f = newFormat(specifier += "", formats);
var f = newFormat(specifier += "", formats1);
return f.toString = function() {
return specifier;
}, f;
@ -839,7 +841,7 @@
"Nov",
"Dec",
]
})).format, locale.parse, locale.utcFormat, locale.utcParse, __webpack_require__(73516), __webpack_require__(42287);
})).format, locale1.parse, locale1.utcFormat, locale1.utcParse, __webpack_require__(73516), __webpack_require__(42287);
}
},
]);

View File

@ -1,5 +1,5 @@
"use strict";
var _a, util = require("@firebase/util"), tslib = require("tslib"), component = require("@firebase/component"), modularAPIs = require("@firebase/app"), logger$1 = require("@firebase/logger");
var _a1, util = require("@firebase/util"), tslib = require("tslib"), component1 = require("@firebase/component"), modularAPIs = require("@firebase/app"), logger$1 = require("@firebase/logger");
function _interopNamespace(e) {
if (e && e.__esModule) return e;
var n = Object.create(null);
@ -15,10 +15,10 @@ function _interopNamespace(e) {
}
}), n.default = e, Object.freeze(n);
}
var modularAPIs__namespace = _interopNamespace(modularAPIs), FirebaseAppImpl = function() {
var modularAPIs__namespace = _interopNamespace(modularAPIs), FirebaseAppImpl1 = function() {
function FirebaseAppImpl(_delegate, firebase) {
var _this = this;
this._delegate = _delegate, this.firebase = firebase, modularAPIs._addComponent(_delegate, new component.Component("app-compat", function() {
this._delegate = _delegate, this.firebase = firebase, modularAPIs._addComponent(_delegate, new component1.Component("app-compat", function() {
return _this;
}, "PUBLIC")), this.container = _delegate.container;
}
@ -70,8 +70,8 @@ var modularAPIs__namespace = _interopNamespace(modularAPIs), FirebaseAppImpl = f
options: this.options
};
}, FirebaseAppImpl;
}(), ERRORS = ((_a = {
})["no-app"] = "No Firebase App '{$appName}' has been created - call Firebase App.initializeApp()", _a["invalid-app-argument"] = "firebase.{$appName}() takes either no argument or a Firebase App instance.", _a), ERROR_FACTORY = new util.ErrorFactory("app-compat", "Firebase", ERRORS);
}(), ERRORS = ((_a1 = {
})["no-app"] = "No Firebase App '{$appName}' has been created - call Firebase App.initializeApp()", _a1["invalid-app-argument"] = "firebase.{$appName}() takes either no argument or a Firebase App instance.", _a1), ERROR_FACTORY = new util.ErrorFactory("app-compat", "Firebase", ERRORS);
function createFirebaseNamespaceCore(firebaseAppImpl) {
var apps = {
}, namespace = {
@ -84,7 +84,7 @@ function createFirebaseNamespaceCore(firebaseAppImpl) {
var appCompat = new firebaseAppImpl(app, namespace);
return apps[app.name] = appCompat, appCompat;
},
app: app,
app: app1,
registerVersion: modularAPIs__namespace.registerVersion,
setLogLevel: modularAPIs__namespace.setLogLevel,
onLog: modularAPIs__namespace.onLog,
@ -95,7 +95,7 @@ function createFirebaseNamespaceCore(firebaseAppImpl) {
var componentName = component.name, componentNameWithoutCompat = componentName.replace("-compat", "");
if (modularAPIs__namespace._registerComponent(component) && "PUBLIC" === component.type) {
var serviceNamespace = function(appArg) {
if (void 0 === appArg && (appArg = app()), "function" != typeof appArg[componentNameWithoutCompat]) throw ERROR_FACTORY.create("invalid-app-argument", {
if (void 0 === appArg && (appArg = app1()), "function" != typeof appArg[componentNameWithoutCompat]) throw ERROR_FACTORY.create("invalid-app-argument", {
appName: componentName
});
return appArg[componentNameWithoutCompat]();
@ -116,7 +116,7 @@ function createFirebaseNamespaceCore(firebaseAppImpl) {
modularAPIs: modularAPIs__namespace
}
};
function app(name) {
function app1(name) {
if (name = name || modularAPIs__namespace._DEFAULT_ENTRY_NAME, !util.contains(apps, name)) throw ERROR_FACTORY.create("no-app", {
appName: name
});
@ -128,10 +128,10 @@ function createFirebaseNamespaceCore(firebaseAppImpl) {
return apps[name];
});
}
}), app.App = firebaseAppImpl, namespace;
}), app1.App = firebaseAppImpl, namespace;
}
function createFirebaseNamespace() {
var namespace = createFirebaseNamespaceCore(FirebaseAppImpl);
var namespace = createFirebaseNamespaceCore(FirebaseAppImpl1);
return namespace.INTERNAL = tslib.__assign(tslib.__assign({
}, namespace.INTERNAL), {
createFirebaseNamespace: createFirebaseNamespace,
@ -143,14 +143,14 @@ function createFirebaseNamespace() {
deepExtend: util.deepExtend
}), namespace;
}
var firebase$1 = createFirebaseNamespace(), logger = new logger$1.Logger("@firebase/app-compat"), name = "@firebase/app-compat", version = "0.1.5";
var firebase$1 = createFirebaseNamespace(), logger = new logger$1.Logger("@firebase/app-compat"), name1 = "@firebase/app-compat", version = "0.1.5";
function registerCoreComponents(variant) {
modularAPIs.registerVersion(name, version, variant);
modularAPIs.registerVersion(name1, version, variant);
}
if (util.isBrowser() && void 0 !== self.firebase) {
logger.warn("\n Warning: Firebase is already defined in the global scope. Please make sure\n Firebase library is only loaded once.\n ");
var sdkVersion = self.firebase.SDK_VERSION;
sdkVersion && sdkVersion.indexOf("LITE") >= 0 && logger.warn("\n Warning: You are trying to load Firebase while using Firebase Performance standalone script.\n You should load Firebase Performance with this instance of Firebase to avoid loading duplicate code.\n ");
}
var firebase = firebase$1;
registerCoreComponents(), module.exports = firebase;
var firebase1 = firebase$1;
registerCoreComponents(), module.exports = firebase1;

View File

@ -29,12 +29,12 @@ function _getRequireWildcardCache() {
return cache;
}, cache;
}
function _typeof(obj) {
function _typeof(obj1) {
return (_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj) {
return typeof obj;
} : function(obj) {
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
})(obj);
})(obj1);
}
function _extends() {
return (_extends = Object.assign || function(target) {
@ -65,15 +65,15 @@ function _assertThisInitialized(self) {
if (void 0 === self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
return self;
}
function _getPrototypeOf(o) {
function _getPrototypeOf(o1) {
return (_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function(o) {
return o.__proto__ || Object.getPrototypeOf(o);
})(o);
})(o1);
}
function _setPrototypeOf(o, p) {
function _setPrototypeOf(o2, p1) {
return (_setPrototypeOf = Object.setPrototypeOf || function(o, p) {
return o.__proto__ = p, o;
})(o, p);
})(o2, p1);
}
function _defineProperty(obj, key, value) {
return key in obj ? Object.defineProperty(obj, key, {
@ -83,7 +83,7 @@ function _defineProperty(obj, key, value) {
writable: !0
}) : obj[key] = value, obj;
}
var ItemsList = function(_Component) {
var ItemsList1 = function(_Component) {
!function(subClass, superClass) {
if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function");
subClass.prototype = Object.create(superClass && superClass.prototype, {
@ -94,7 +94,7 @@ var ItemsList = function(_Component) {
}
}), superClass && _setPrototypeOf(subClass, superClass);
}(ItemsList, _Component);
var Constructor, protoProps, staticProps, _super = function(Derived) {
var Constructor1, protoProps, staticProps, _super = function(Derived) {
return function() {
var self, call, result, Super = _getPrototypeOf(Derived);
if ((function() {
@ -126,7 +126,7 @@ var ItemsList = function(_Component) {
_this.props.onHighlightedItemChange(null === highlightedItem ? null : highlightedItem.item);
}), _this;
}
return Constructor = ItemsList, protoProps = [
return Constructor1 = ItemsList, protoProps = [
{
key: "shouldComponentUpdate",
value: function(nextProps) {
@ -173,9 +173,9 @@ var ItemsList = function(_Component) {
}));
}
}
], _defineProperties(Constructor.prototype, protoProps), staticProps && _defineProperties(Constructor, staticProps), ItemsList;
], _defineProperties(Constructor1.prototype, protoProps), staticProps && _defineProperties(Constructor1, staticProps), ItemsList;
}(_react.Component);
exports.default = ItemsList, _defineProperty(ItemsList, "propTypes", {
exports.default = ItemsList1, _defineProperty(ItemsList1, "propTypes", {
items: _propTypes.default.array.isRequired,
itemProps: _propTypes.default.oneOfType([
_propTypes.default.object,
@ -189,6 +189,6 @@ exports.default = ItemsList, _defineProperty(ItemsList, "propTypes", {
getItemId: _propTypes.default.func.isRequired,
theme: _propTypes.default.func.isRequired,
keyPrefix: _propTypes.default.string.isRequired
}), _defineProperty(ItemsList, "defaultProps", {
}), _defineProperty(ItemsList1, "defaultProps", {
sectionIndex: null
});

View File

@ -1,5 +1,5 @@
import { jsx as _jsx } from "react/jsx-runtime";
import React, { Component } from "react";
import React, { Component as Component1 } from "react";
import PropTypes from "prop-types";
import Item from "./Item";
import compareObjects from "./compareObjects";
@ -17,10 +17,10 @@ function _defineProperty(obj, key, value) {
writable: !0
}) : obj[key] = value, obj;
}
function _getPrototypeOf(o) {
function _getPrototypeOf(o1) {
return (_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function(o) {
return o.__proto__ || Object.getPrototypeOf(o);
})(o);
})(o1);
}
function _objectSpread(target) {
for(var i = 1; i < arguments.length; i++){
@ -34,22 +34,22 @@ function _objectSpread(target) {
}
return target;
}
function _setPrototypeOf(o, p) {
function _setPrototypeOf(o2, p1) {
return (_setPrototypeOf = Object.setPrototypeOf || function(o, p) {
return o.__proto__ = p, o;
})(o, p);
})(o2, p1);
}
var ItemsList = function(Component) {
var ItemsList1 = function(Component) {
"use strict";
var Constructor, protoProps, staticProps;
var Constructor1, protoProps, staticProps;
function ItemsList() {
var _this, self, call, obj;
var _this, self1, call, obj;
return !function(instance, Constructor) {
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
}(this, ItemsList), self = this, call = _getPrototypeOf(ItemsList).apply(this, arguments), (_this = call && ("object" == ((obj = call) && "undefined" != typeof Symbol && obj.constructor === Symbol ? "symbol" : typeof obj) || "function" == typeof call) ? call : (function(self) {
}(this, ItemsList), self1 = this, call = _getPrototypeOf(ItemsList).apply(this, arguments), (_this = call && ("object" == ((obj = call) && "undefined" != typeof Symbol && obj.constructor === Symbol ? "symbol" : typeof obj) || "function" == typeof call) ? call : (function(self) {
if (void 0 === self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
return self;
})(self)).storeHighlightedItemReference = function(highlightedItem) {
})(self1)).storeHighlightedItemReference = function(highlightedItem) {
_this.props.onHighlightedItemChange(null === highlightedItem ? null : highlightedItem.item);
}, _this;
}
@ -62,7 +62,7 @@ var ItemsList = function(Component) {
configurable: !0
}
}), superClass && _setPrototypeOf(subClass, superClass);
}(ItemsList, Component), Constructor = ItemsList, protoProps = [
}(ItemsList, Component), Constructor1 = ItemsList, protoProps = [
{
key: "shouldComponentUpdate",
value: function(nextProps) {
@ -99,9 +99,9 @@ var ItemsList = function(Component) {
}));
}
}
], _defineProperties(Constructor.prototype, protoProps), staticProps && _defineProperties(Constructor, staticProps), ItemsList;
}(Component);
ItemsList.propTypes = {
], _defineProperties(Constructor1.prototype, protoProps), staticProps && _defineProperties(Constructor1, staticProps), ItemsList;
}(Component1);
ItemsList1.propTypes = {
items: PropTypes.array.isRequired,
itemProps: PropTypes.oneOfType([
PropTypes.object,
@ -115,7 +115,7 @@ ItemsList.propTypes = {
getItemId: PropTypes.func.isRequired,
theme: PropTypes.func.isRequired,
keyPrefix: PropTypes.string.isRequired
}, ItemsList.defaultProps = {
}, ItemsList1.defaultProps = {
sectionIndex: null
};
export { ItemsList as default };
export { ItemsList1 as default };

View File

@ -31,7 +31,7 @@ function serializeQueryParameters(parameters) {
}
export default function createInstantSearchManager({ indexName , initialState ={
} , searchClient , resultsState , stalledSearchDelay , }) {
var results;
var results1;
const helper = algoliasearchHelper(searchClient, indexName, {
...HIGHLIGHT_TAGS
});
@ -86,12 +86,12 @@ export default function createInstantSearchManager({ indexName , initialState ={
const store = createStore({
widgets: initialState,
metadata: hydrateMetadata(resultsState),
results: (results = resultsState) ? Array.isArray(results.results) ? results.results.reduce((acc, result)=>({
results: (results1 = resultsState) ? Array.isArray(results1.results) ? results1.results.reduce((acc, result)=>({
...acc,
[result._internalIndexId]: new algoliasearchHelper.SearchResults(new algoliasearchHelper.SearchParameters(result.state), result.rawResults)
})
, {
}) : new algoliasearchHelper.SearchResults(new algoliasearchHelper.SearchParameters(results.state), results.rawResults) : null,
}) : new algoliasearchHelper.SearchResults(new algoliasearchHelper.SearchParameters(results1.state), results1.rawResults) : null,
error: null,
searching: !1,
isSearchStalled: !0,

View File

@ -51,7 +51,7 @@ function serializeQueryParameters(parameters) {
}
export default function createInstantSearchManager({ indexName , initialState ={
} , searchClient , resultsState , stalledSearchDelay , }) {
var results;
var results1;
const helper = algoliasearchHelper(searchClient, indexName, {
...HIGHLIGHT_TAGS
});
@ -106,12 +106,12 @@ export default function createInstantSearchManager({ indexName , initialState ={
const store = createStore({
widgets: initialState,
metadata: hydrateMetadata(resultsState),
results: (results = resultsState) ? Array.isArray(results.results) ? results.results.reduce((acc, result)=>({
results: (results1 = resultsState) ? Array.isArray(results1.results) ? results1.results.reduce((acc, result)=>({
...acc,
[result._internalIndexId]: new algoliasearchHelper.SearchResults(new algoliasearchHelper.SearchParameters(result.state), result.rawResults)
})
, {
}) : new algoliasearchHelper.SearchResults(new algoliasearchHelper.SearchParameters(results.state), results.rawResults) : null,
}) : new algoliasearchHelper.SearchResults(new algoliasearchHelper.SearchParameters(results1.state), results1.rawResults) : null,
error: null,
searching: !1,
isSearchStalled: !0,

View File

@ -36,8 +36,8 @@ function serializeQueryParameters(parameters) {
return encode("%s=%s", key, (value = parameters[key], "[object Object]" === Object.prototype.toString.call(value) || "[object Array]" === Object.prototype.toString.call(value)) ? JSON.stringify(parameters[key]) : parameters[key]);
}).join("&");
}
export default function createInstantSearchManager(param) {
var indexName = param.indexName, _initialState = param.initialState, searchClient = param.searchClient, resultsState = param.resultsState, stalledSearchDelay = param.stalledSearchDelay, getMetadata = function(state) {
export default function createInstantSearchManager(param1) {
var indexName = param1.indexName, _initialState = param1.initialState, searchClient = param1.searchClient, resultsState = param1.resultsState, stalledSearchDelay = param1.stalledSearchDelay, getMetadata = function(state) {
return widgetsManager.getWidgets().filter(function(widget) {
return Boolean(widget.getMetadata);
}).map(function(widget) {
@ -251,26 +251,26 @@ export default function createInstantSearchManager(param) {
hydrateSearchClientWithSingleIndexRequest(client, results);
}
}(searchClient, resultsState);
var results, state, listeners, store = (state = {
var results1, state1, listeners, store = (state1 = {
widgets: void 0 === _initialState ? {
} : _initialState,
metadata: hydrateMetadata(resultsState),
results: (results = resultsState) ? Array.isArray(results.results) ? results.results.reduce(function(acc, result) {
results: (results1 = resultsState) ? Array.isArray(results1.results) ? results1.results.reduce(function(acc, result) {
return swcHelpers.objectSpread({
}, acc, swcHelpers.defineProperty({
}, result._internalIndexId, new algoliasearchHelper.SearchResults(new algoliasearchHelper.SearchParameters(result.state), result.rawResults)));
}, {
}) : new algoliasearchHelper.SearchResults(new algoliasearchHelper.SearchParameters(results.state), results.rawResults) : null,
}) : new algoliasearchHelper.SearchResults(new algoliasearchHelper.SearchParameters(results1.state), results1.rawResults) : null,
error: null,
searching: !1,
isSearchStalled: !0,
searchingForFacetValues: !1
}, listeners = [], {
getState: function() {
return state;
return state1;
},
setState: function(nextState) {
state = nextState, listeners.forEach(function(listener) {
state1 = nextState, listeners.forEach(function(listener) {
return listener();
});
},

View File

@ -5,7 +5,7 @@ const manager = function() {
function j(k) {
return c.has(k) ? c.get(k) : c.set(k, new Map()).get(k);
}
function g(u, v) {
function g1(u, v) {
for (let w of u){
const x = j(v), y = x.get(w.target);
y && y(w);
@ -18,7 +18,7 @@ const manager = function() {
const h = b(g);
for (const i of c.keys())if (a(i, h)) return i;
return null;
})(e) || new IntersectionObserver(g, e);
})(e) || new IntersectionObserver(g1, e);
},
l: function(m, n, o) {
const p = j(m);

View File

@ -1,11 +1,11 @@
export const obj = {
create: function(model, options) {
if (options = options ? _.clone(options) : {
}, !(model = this._prepareModel(model, options))) return !1;
options.wait || this.add(model, options);
var collection = this, success = options.success;
return options.success = function(model, resp, options) {
create: function(model1, options1) {
if (options1 = options1 ? _.clone(options1) : {
}, !(model1 = this._prepareModel(model1, options1))) return !1;
options1.wait || this.add(model1, options1);
var collection = this, success = options1.success;
return options1.success = function(model, resp, options) {
options.wait && collection.add(model, options), success && success(model, resp, options);
}, model.save(null, options), model;
}, model1.save(null, options1), model1;
}
};

View File

@ -1,4 +1,4 @@
export const obj = {
const obj1 = {
each: function(obj, callback, args) {
var i = 0, length = obj.length, isArray = isArraylike(obj);
if (args) {
@ -9,3 +9,4 @@ export const obj = {
return obj;
}
};
export { obj1 as obj, };

View File

@ -16,11 +16,14 @@
},
8484: function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
(window.__NEXT_P = window.__NEXT_P || []).push([
"/about", function() {
"/about",
function() {
return __webpack_require__(4426);
}, ]);
},
]);
}
}, function(__webpack_require__) {
},
function(__webpack_require__) {
__webpack_require__.O(0, [
774,
888,
@ -28,4 +31,5 @@
], function() {
return __webpack_require__(__webpack_require__.s = 8484);
}), _N_E = __webpack_require__.O();
}, ]);
},
]);

View File

@ -18,11 +18,14 @@
},
2856: function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
(window.__NEXT_P = window.__NEXT_P || []).push([
"/hmr/about", function() {
"/hmr/about",
function() {
return __webpack_require__(1962);
}, ]);
},
]);
}
}, function(__webpack_require__) {
},
function(__webpack_require__) {
__webpack_require__.O(0, [
774,
888,
@ -30,4 +33,5 @@
], function() {
return __webpack_require__(__webpack_require__.s = 2856);
}), _N_E = __webpack_require__.O();
}, ]);
},
]);

View File

@ -18,11 +18,14 @@
},
8000: function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
(window.__NEXT_P = window.__NEXT_P || []).push([
"/hmr/about1", function() {
"/hmr/about1",
function() {
return __webpack_require__(1107);
}, ]);
},
]);
}
}, function(__webpack_require__) {
},
function(__webpack_require__) {
__webpack_require__.O(0, [
774,
888,
@ -30,4 +33,5 @@
], function() {
return __webpack_require__(__webpack_require__.s = 8000);
}), _N_E = __webpack_require__.O();
}, ]);
},
]);

View File

@ -18,11 +18,14 @@
},
9354: function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
(window.__NEXT_P = window.__NEXT_P || []).push([
"/hmr/about2", function() {
"/hmr/about2",
function() {
return __webpack_require__(388);
}, ]);
},
]);
}
}, function(__webpack_require__) {
},
function(__webpack_require__) {
__webpack_require__.O(0, [
774,
888,
@ -30,4 +33,5 @@
], function() {
return __webpack_require__(__webpack_require__.s = 9354);
}), _N_E = __webpack_require__.O();
}, ]);
},
]);

View File

@ -18,11 +18,14 @@
},
357: function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
(window.__NEXT_P = window.__NEXT_P || []).push([
"/hmr/about3", function() {
"/hmr/about3",
function() {
return __webpack_require__(7407);
}, ]);
},
]);
}
}, function(__webpack_require__) {
},
function(__webpack_require__) {
__webpack_require__.O(0, [
774,
888,
@ -30,4 +33,5 @@
], function() {
return __webpack_require__(__webpack_require__.s = 357);
}), _N_E = __webpack_require__.O();
}, ]);
},
]);

View File

@ -18,11 +18,14 @@
},
6055: function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
(window.__NEXT_P = window.__NEXT_P || []).push([
"/hmr/about4", function() {
"/hmr/about4",
function() {
return __webpack_require__(6787);
}, ]);
},
]);
}
}, function(__webpack_require__) {
},
function(__webpack_require__) {
__webpack_require__.O(0, [
774,
888,
@ -30,4 +33,5 @@
], function() {
return __webpack_require__(__webpack_require__.s = 6055);
}), _N_E = __webpack_require__.O();
}, ]);
},
]);

View File

@ -18,11 +18,14 @@
},
8758: function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
(window.__NEXT_P = window.__NEXT_P || []).push([
"/hmr/about5", function() {
"/hmr/about5",
function() {
return __webpack_require__(6298);
}, ]);
},
]);
}
}, function(__webpack_require__) {
},
function(__webpack_require__) {
__webpack_require__.O(0, [
774,
888,
@ -30,4 +33,5 @@
], function() {
return __webpack_require__(__webpack_require__.s = 8758);
}), _N_E = __webpack_require__.O();
}, ]);
},
]);

View File

@ -18,11 +18,14 @@
},
5754: function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
(window.__NEXT_P = window.__NEXT_P || []).push([
"/hmr/about6", function() {
"/hmr/about6",
function() {
return __webpack_require__(9249);
}, ]);
},
]);
}
}, function(__webpack_require__) {
},
function(__webpack_require__) {
__webpack_require__.O(0, [
774,
888,
@ -30,4 +33,5 @@
], function() {
return __webpack_require__(__webpack_require__.s = 5754);
}), _N_E = __webpack_require__.O();
}, ]);
},
]);

View File

@ -18,11 +18,14 @@
},
9037: function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
(window.__NEXT_P = window.__NEXT_P || []).push([
"/hmr/about7", function() {
"/hmr/about7",
function() {
return __webpack_require__(4208);
}, ]);
},
]);
}
}, function(__webpack_require__) {
},
function(__webpack_require__) {
__webpack_require__.O(0, [
774,
888,
@ -30,4 +33,5 @@
], function() {
return __webpack_require__(__webpack_require__.s = 9037);
}), _N_E = __webpack_require__.O();
}, ]);
},
]);

View File

@ -18,11 +18,14 @@
},
2574: function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
(window.__NEXT_P = window.__NEXT_P || []).push([
"/hmr/contact", function() {
"/hmr/contact",
function() {
return __webpack_require__(8897);
}, ]);
},
]);
}
}, function(__webpack_require__) {
},
function(__webpack_require__) {
__webpack_require__.O(0, [
774,
888,
@ -30,4 +33,5 @@
], function() {
return __webpack_require__(__webpack_require__.s = 2574);
}), _N_E = __webpack_require__.O();
}, ]);
},
]);

View File

@ -29,11 +29,14 @@
},
9675: function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
(window.__NEXT_P = window.__NEXT_P || []).push([
"/hmr/style", function() {
"/hmr/style",
function() {
return __webpack_require__(1501);
}, ]);
},
]);
}
}, function(__webpack_require__) {
},
function(__webpack_require__) {
__webpack_require__.O(0, [
774,
266,
@ -42,4 +45,5 @@
], function() {
return __webpack_require__(__webpack_require__.s = 9675);
}), _N_E = __webpack_require__.O();
}, ]);
},
]);

View File

@ -16,11 +16,14 @@
},
1220: function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
(window.__NEXT_P = window.__NEXT_P || []).push([
"/process-env", function() {
"/process-env",
function() {
return __webpack_require__(736);
}, ]);
},
]);
}
}, function(__webpack_require__) {
},
function(__webpack_require__) {
__webpack_require__.O(0, [
774,
888,
@ -28,4 +31,5 @@
], function() {
return __webpack_require__(__webpack_require__.s = 1220);
}), _N_E = __webpack_require__.O();
}, ]);
},
]);

View File

@ -98,8 +98,8 @@
Object.defineProperty(exports, "__esModule", {
value: !0
}), exports.default = void 0;
var obj, _react = (obj = __webpack_require__(2735)) && obj.__esModule ? obj : {
default: obj
var obj1, _react = (obj1 = __webpack_require__(2735)) && obj1.__esModule ? obj1 : {
default: obj1
}, _useSubscription = __webpack_require__(4234), _loadableContext = __webpack_require__(8183), ALL_INITIALIZERS = [], READY_INITIALIZERS = [], initialized = !1;
function load(loader) {
var promise = loader(), state = {
@ -113,7 +113,7 @@
throw state.loading = !1, state.error = err, err;
}), state;
}
var LoadableSubscription = function() {
var LoadableSubscription1 = function() {
function LoadableSubscription(loadFn, opts) {
_classCallCheck(this, LoadableSubscription), this._loadFn = loadFn, this._opts = opts, this._callbacks = new Set(), this._delay = null, this._timeout = null, this.retry();
}
@ -200,7 +200,7 @@
}, options), subscription = null;
function init() {
if (!subscription) {
var sub = new LoadableSubscription(loadFn, opts);
var sub = new LoadableSubscription1(loadFn, opts);
subscription = {
getCurrentValue: sub.getCurrentValue.bind(sub),
subscribe: sub.subscribe.bind(sub),
@ -213,27 +213,27 @@
if (!initialized && "function" == typeof opts.webpack) {
var moduleIds = opts.webpack();
READY_INITIALIZERS.push(function(ids) {
var _step, _iterator = function(o, allowArrayLike) {
if ("undefined" == typeof Symbol || null == o[Symbol.iterator]) {
if (Array.isArray(o) || (it = (function(o, minLen) {
var _step, _iterator = function(o1, allowArrayLike) {
if ("undefined" == typeof Symbol || null == o1[Symbol.iterator]) {
if (Array.isArray(o1) || (it = (function(o, minLen) {
if (o) {
if ("string" == typeof o) return _arrayLikeToArray(o, minLen);
var n = Object.prototype.toString.call(o).slice(8, -1);
if ("Object" === n && o.constructor && (n = o.constructor.name), "Map" === n || "Set" === n) return Array.from(o);
if ("Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
}
})(o)) || 0) {
it && (o = it);
})(o1)) || 0) {
it && (o1 = it);
var i = 0, F = function() {
};
return {
s: F,
n: function() {
return i >= o.length ? {
return i >= o1.length ? {
done: !0
} : {
done: !1,
value: o[i++]
value: o1[i++]
};
},
e: function(_e) {
@ -247,7 +247,7 @@
var it, err, normalCompletion = !0, didErr = !1;
return {
s: function() {
it = o[Symbol.iterator]();
it = o1[Symbol.iterator]();
},
n: function() {
var step = it.next();
@ -352,14 +352,17 @@
},
4196: function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
(window.__NEXT_P = window.__NEXT_P || []).push([
"/dynamic/chunkfilename", function() {
"/dynamic/chunkfilename",
function() {
return __webpack_require__(284);
}, ]);
},
]);
},
4652: function(module, __unused_webpack_exports, __webpack_require__) {
module.exports = __webpack_require__(8551);
}
}, function(__webpack_require__) {
},
function(__webpack_require__) {
__webpack_require__.O(0, [
774,
888,
@ -367,4 +370,5 @@
], function() {
return __webpack_require__(__webpack_require__.s = 4196);
}), _N_E = __webpack_require__.O();
}, ]);
},
]);

View File

@ -98,8 +98,8 @@
Object.defineProperty(exports, "__esModule", {
value: !0
}), exports.default = void 0;
var obj, _react = (obj = __webpack_require__(2735)) && obj.__esModule ? obj : {
default: obj
var obj1, _react = (obj1 = __webpack_require__(2735)) && obj1.__esModule ? obj1 : {
default: obj1
}, _useSubscription = __webpack_require__(4234), _loadableContext = __webpack_require__(8183), ALL_INITIALIZERS = [], READY_INITIALIZERS = [], initialized = !1;
function load(loader) {
var promise = loader(), state = {
@ -113,7 +113,7 @@
throw state.loading = !1, state.error = err, err;
}), state;
}
var LoadableSubscription = function() {
var LoadableSubscription1 = function() {
function LoadableSubscription(loadFn, opts) {
_classCallCheck(this, LoadableSubscription), this._loadFn = loadFn, this._opts = opts, this._callbacks = new Set(), this._delay = null, this._timeout = null, this.retry();
}
@ -200,7 +200,7 @@
}, options), subscription = null;
function init() {
if (!subscription) {
var sub = new LoadableSubscription(loadFn, opts);
var sub = new LoadableSubscription1(loadFn, opts);
subscription = {
getCurrentValue: sub.getCurrentValue.bind(sub),
subscribe: sub.subscribe.bind(sub),
@ -213,27 +213,27 @@
if (!initialized && "function" == typeof opts.webpack) {
var moduleIds = opts.webpack();
READY_INITIALIZERS.push(function(ids) {
var _step, _iterator = function(o, allowArrayLike) {
if ("undefined" == typeof Symbol || null == o[Symbol.iterator]) {
if (Array.isArray(o) || (it = (function(o, minLen) {
var _step, _iterator = function(o1, allowArrayLike) {
if ("undefined" == typeof Symbol || null == o1[Symbol.iterator]) {
if (Array.isArray(o1) || (it = (function(o, minLen) {
if (o) {
if ("string" == typeof o) return _arrayLikeToArray(o, minLen);
var n = Object.prototype.toString.call(o).slice(8, -1);
if ("Object" === n && o.constructor && (n = o.constructor.name), "Map" === n || "Set" === n) return Array.from(o);
if ("Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
}
})(o)) || 0) {
it && (o = it);
})(o1)) || 0) {
it && (o1 = it);
var i = 0, F = function() {
};
return {
s: F,
n: function() {
return i >= o.length ? {
return i >= o1.length ? {
done: !0
} : {
done: !1,
value: o[i++]
value: o1[i++]
};
},
e: function(_e) {
@ -247,7 +247,7 @@
var it, err, normalCompletion = !0, didErr = !1;
return {
s: function() {
it = o[Symbol.iterator]();
it = o1[Symbol.iterator]();
},
n: function() {
var step = it.next();
@ -352,14 +352,17 @@
},
6994: function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
(window.__NEXT_P = window.__NEXT_P || []).push([
"/dynamic/function", function() {
"/dynamic/function",
function() {
return __webpack_require__(1118);
}, ]);
},
]);
},
4652: function(module, __unused_webpack_exports, __webpack_require__) {
module.exports = __webpack_require__(8551);
}
}, function(__webpack_require__) {
},
function(__webpack_require__) {
__webpack_require__.O(0, [
774,
888,
@ -367,4 +370,5 @@
], function() {
return __webpack_require__(__webpack_require__.s = 6994);
}), _N_E = __webpack_require__.O();
}, ]);
},
]);

View File

@ -130,8 +130,8 @@
Object.defineProperty(exports, "__esModule", {
value: !0
}), exports.default = void 0;
var obj, _react = (obj = __webpack_require__(2735)) && obj.__esModule ? obj : {
default: obj
var obj1, _react = (obj1 = __webpack_require__(2735)) && obj1.__esModule ? obj1 : {
default: obj1
}, _useSubscription = __webpack_require__(4234), _loadableContext = __webpack_require__(8183), ALL_INITIALIZERS = [], READY_INITIALIZERS = [], initialized = !1;
function load(loader) {
var promise = loader(), state = {
@ -145,7 +145,7 @@
throw state.loading = !1, state.error = err, err;
}), state;
}
var LoadableSubscription = function() {
var LoadableSubscription1 = function() {
function LoadableSubscription(loadFn, opts) {
_classCallCheck(this, LoadableSubscription), this._loadFn = loadFn, this._opts = opts, this._callbacks = new Set(), this._delay = null, this._timeout = null, this.retry();
}
@ -232,7 +232,7 @@
}, options), subscription = null;
function init() {
if (!subscription) {
var sub = new LoadableSubscription(loadFn, opts);
var sub = new LoadableSubscription1(loadFn, opts);
subscription = {
getCurrentValue: sub.getCurrentValue.bind(sub),
subscribe: sub.subscribe.bind(sub),
@ -245,27 +245,27 @@
if (!initialized && "function" == typeof opts.webpack) {
var moduleIds = opts.webpack();
READY_INITIALIZERS.push(function(ids) {
var _step, _iterator = function(o, allowArrayLike) {
if ("undefined" == typeof Symbol || null == o[Symbol.iterator]) {
if (Array.isArray(o) || (it = (function(o, minLen) {
var _step, _iterator = function(o1, allowArrayLike) {
if ("undefined" == typeof Symbol || null == o1[Symbol.iterator]) {
if (Array.isArray(o1) || (it = (function(o, minLen) {
if (o) {
if ("string" == typeof o) return _arrayLikeToArray(o, minLen);
var n = Object.prototype.toString.call(o).slice(8, -1);
if ("Object" === n && o.constructor && (n = o.constructor.name), "Map" === n || "Set" === n) return Array.from(o);
if ("Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
}
})(o)) || 0) {
it && (o = it);
})(o1)) || 0) {
it && (o1 = it);
var i = 0, F = function() {
};
return {
s: F,
n: function() {
return i >= o.length ? {
return i >= o1.length ? {
done: !0
} : {
done: !1,
value: o[i++]
value: o1[i++]
};
},
e: function(_e) {
@ -279,7 +279,7 @@
var it, err, normalCompletion = !0, didErr = !1;
return {
s: function() {
it = o[Symbol.iterator]();
it = o1[Symbol.iterator]();
},
n: function() {
var step = it.next();
@ -400,9 +400,11 @@
},
2250: function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
(window.__NEXT_P = window.__NEXT_P || []).push([
"/dynamic/head", function() {
"/dynamic/head",
function() {
return __webpack_require__(1804);
}, ]);
},
]);
},
4652: function(module, __unused_webpack_exports, __webpack_require__) {
module.exports = __webpack_require__(8551);
@ -410,7 +412,8 @@
1843: function(module, __unused_webpack_exports, __webpack_require__) {
module.exports = __webpack_require__(3396);
}
}, function(__webpack_require__) {
},
function(__webpack_require__) {
__webpack_require__.O(0, [
774,
888,
@ -418,4 +421,5 @@
], function() {
return __webpack_require__(__webpack_require__.s = 2250);
}), _N_E = __webpack_require__.O();
}, ]);
},
]);

View File

@ -98,8 +98,8 @@
Object.defineProperty(exports, "__esModule", {
value: !0
}), exports.default = void 0;
var obj, _react = (obj = __webpack_require__(2735)) && obj.__esModule ? obj : {
default: obj
var obj1, _react = (obj1 = __webpack_require__(2735)) && obj1.__esModule ? obj1 : {
default: obj1
}, _useSubscription = __webpack_require__(4234), _loadableContext = __webpack_require__(8183), ALL_INITIALIZERS = [], READY_INITIALIZERS = [], initialized = !1;
function load(loader) {
var promise = loader(), state = {
@ -113,7 +113,7 @@
throw state.loading = !1, state.error = err, err;
}), state;
}
var LoadableSubscription = function() {
var LoadableSubscription1 = function() {
function LoadableSubscription(loadFn, opts) {
_classCallCheck(this, LoadableSubscription), this._loadFn = loadFn, this._opts = opts, this._callbacks = new Set(), this._delay = null, this._timeout = null, this.retry();
}
@ -200,7 +200,7 @@
}, options), subscription = null;
function init() {
if (!subscription) {
var sub = new LoadableSubscription(loadFn, opts);
var sub = new LoadableSubscription1(loadFn, opts);
subscription = {
getCurrentValue: sub.getCurrentValue.bind(sub),
subscribe: sub.subscribe.bind(sub),
@ -213,27 +213,27 @@
if (!initialized && "function" == typeof opts.webpack) {
var moduleIds = opts.webpack();
READY_INITIALIZERS.push(function(ids) {
var _step, _iterator = function(o, allowArrayLike) {
if ("undefined" == typeof Symbol || null == o[Symbol.iterator]) {
if (Array.isArray(o) || (it = (function(o, minLen) {
var _step, _iterator = function(o1, allowArrayLike) {
if ("undefined" == typeof Symbol || null == o1[Symbol.iterator]) {
if (Array.isArray(o1) || (it = (function(o, minLen) {
if (o) {
if ("string" == typeof o) return _arrayLikeToArray(o, minLen);
var n = Object.prototype.toString.call(o).slice(8, -1);
if ("Object" === n && o.constructor && (n = o.constructor.name), "Map" === n || "Set" === n) return Array.from(o);
if ("Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
}
})(o)) || 0) {
it && (o = it);
})(o1)) || 0) {
it && (o1 = it);
var i = 0, F = function() {
};
return {
s: F,
n: function() {
return i >= o.length ? {
return i >= o1.length ? {
done: !0
} : {
done: !1,
value: o[i++]
value: o1[i++]
};
},
e: function(_e) {
@ -247,7 +247,7 @@
var it, err, normalCompletion = !0, didErr = !1;
return {
s: function() {
it = o[Symbol.iterator]();
it = o1[Symbol.iterator]();
},
n: function() {
var step = it.next();
@ -381,14 +381,17 @@
},
5717: function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
(window.__NEXT_P = window.__NEXT_P || []).push([
"/dynamic/multiple-modules", function() {
"/dynamic/multiple-modules",
function() {
return __webpack_require__(3483);
}, ]);
},
]);
},
4652: function(module, __unused_webpack_exports, __webpack_require__) {
module.exports = __webpack_require__(8551);
}
}, function(__webpack_require__) {
},
function(__webpack_require__) {
__webpack_require__.O(0, [
774,
888,
@ -396,4 +399,5 @@
], function() {
return __webpack_require__(__webpack_require__.s = 5717);
}), _N_E = __webpack_require__.O();
}, ]);
},
]);

View File

@ -98,8 +98,8 @@
Object.defineProperty(exports, "__esModule", {
value: !0
}), exports.default = void 0;
var obj, _react = (obj = __webpack_require__(2735)) && obj.__esModule ? obj : {
default: obj
var obj1, _react = (obj1 = __webpack_require__(2735)) && obj1.__esModule ? obj1 : {
default: obj1
}, _useSubscription = __webpack_require__(4234), _loadableContext = __webpack_require__(8183), ALL_INITIALIZERS = [], READY_INITIALIZERS = [], initialized = !1;
function load(loader) {
var promise = loader(), state = {
@ -113,7 +113,7 @@
throw state.loading = !1, state.error = err, err;
}), state;
}
var LoadableSubscription = function() {
var LoadableSubscription1 = function() {
function LoadableSubscription(loadFn, opts) {
_classCallCheck(this, LoadableSubscription), this._loadFn = loadFn, this._opts = opts, this._callbacks = new Set(), this._delay = null, this._timeout = null, this.retry();
}
@ -200,7 +200,7 @@
}, options), subscription = null;
function init() {
if (!subscription) {
var sub = new LoadableSubscription(loadFn, opts);
var sub = new LoadableSubscription1(loadFn, opts);
subscription = {
getCurrentValue: sub.getCurrentValue.bind(sub),
subscribe: sub.subscribe.bind(sub),
@ -213,27 +213,27 @@
if (!initialized && "function" == typeof opts.webpack) {
var moduleIds = opts.webpack();
READY_INITIALIZERS.push(function(ids) {
var _step, _iterator = function(o, allowArrayLike) {
if ("undefined" == typeof Symbol || null == o[Symbol.iterator]) {
if (Array.isArray(o) || (it = (function(o, minLen) {
var _step, _iterator = function(o1, allowArrayLike) {
if ("undefined" == typeof Symbol || null == o1[Symbol.iterator]) {
if (Array.isArray(o1) || (it = (function(o, minLen) {
if (o) {
if ("string" == typeof o) return _arrayLikeToArray(o, minLen);
var n = Object.prototype.toString.call(o).slice(8, -1);
if ("Object" === n && o.constructor && (n = o.constructor.name), "Map" === n || "Set" === n) return Array.from(o);
if ("Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
}
})(o)) || 0) {
it && (o = it);
})(o1)) || 0) {
it && (o1 = it);
var i = 0, F = function() {
};
return {
s: F,
n: function() {
return i >= o.length ? {
return i >= o1.length ? {
done: !0
} : {
done: !1,
value: o[i++]
value: o1[i++]
};
},
e: function(_e) {
@ -247,7 +247,7 @@
var it, err, normalCompletion = !0, didErr = !1;
return {
s: function() {
it = o[Symbol.iterator]();
it = o1[Symbol.iterator]();
},
n: function() {
var step = it.next();
@ -352,14 +352,17 @@
},
4136: function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
(window.__NEXT_P = window.__NEXT_P || []).push([
"/dynamic/nested", function() {
"/dynamic/nested",
function() {
return __webpack_require__(5561);
}, ]);
},
]);
},
4652: function(module, __unused_webpack_exports, __webpack_require__) {
module.exports = __webpack_require__(8551);
}
}, function(__webpack_require__) {
},
function(__webpack_require__) {
__webpack_require__.O(0, [
774,
888,
@ -367,4 +370,5 @@
], function() {
return __webpack_require__(__webpack_require__.s = 4136);
}), _N_E = __webpack_require__.O();
}, ]);
},
]);

View File

@ -61,10 +61,10 @@
},
2374: function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
"use strict";
function _getPrototypeOf(o) {
function _getPrototypeOf(o1) {
return (_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function(o) {
return o.__proto__ || Object.getPrototypeOf(o);
})(o);
})(o1);
}
__webpack_require__.d(__webpack_exports__, {
Z: function() {
@ -74,10 +74,10 @@
},
3001: function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
"use strict";
function _setPrototypeOf(o, p) {
function _setPrototypeOf(o2, p1) {
return (_setPrototypeOf = Object.setPrototypeOf || function(o, p) {
return o.__proto__ = p, o;
})(o, p);
})(o2, p1);
}
function _inherits(subClass, superClass) {
if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function");
@ -97,12 +97,12 @@
},
7130: function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
"use strict";
function _typeof(obj) {
function _typeof(obj1) {
return (_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj) {
return typeof obj;
} : function(obj) {
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
})(obj);
})(obj1);
}
__webpack_require__.d(__webpack_exports__, {
Z: function() {
@ -209,8 +209,8 @@
Object.defineProperty(exports, "__esModule", {
value: !0
}), exports.default = void 0;
var obj, _react = (obj = __webpack_require__(2735)) && obj.__esModule ? obj : {
default: obj
var obj2, _react = (obj2 = __webpack_require__(2735)) && obj2.__esModule ? obj2 : {
default: obj2
}, _useSubscription = __webpack_require__(4234), _loadableContext = __webpack_require__(8183), ALL_INITIALIZERS = [], READY_INITIALIZERS = [], initialized = !1;
function load(loader) {
var promise = loader(), state = {
@ -224,7 +224,7 @@
throw state.loading = !1, state.error = err, err;
}), state;
}
var LoadableSubscription = function() {
var LoadableSubscription1 = function() {
function LoadableSubscription(loadFn, opts) {
_classCallCheck(this, LoadableSubscription), this._loadFn = loadFn, this._opts = opts, this._callbacks = new Set(), this._delay = null, this._timeout = null, this.retry();
}
@ -311,7 +311,7 @@
}, options), subscription = null;
function init() {
if (!subscription) {
var sub = new LoadableSubscription(loadFn, opts);
var sub = new LoadableSubscription1(loadFn, opts);
subscription = {
getCurrentValue: sub.getCurrentValue.bind(sub),
subscribe: sub.subscribe.bind(sub),
@ -324,27 +324,27 @@
if (!initialized && "function" == typeof opts.webpack) {
var moduleIds = opts.webpack();
READY_INITIALIZERS.push(function(ids) {
var _step, _iterator = function(o, allowArrayLike) {
if ("undefined" == typeof Symbol || null == o[Symbol.iterator]) {
if (Array.isArray(o) || (it = (function(o, minLen) {
var _step, _iterator = function(o3, allowArrayLike) {
if ("undefined" == typeof Symbol || null == o3[Symbol.iterator]) {
if (Array.isArray(o3) || (it = (function(o, minLen) {
if (o) {
if ("string" == typeof o) return _arrayLikeToArray(o, minLen);
var n = Object.prototype.toString.call(o).slice(8, -1);
if ("Object" === n && o.constructor && (n = o.constructor.name), "Map" === n || "Set" === n) return Array.from(o);
if ("Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
}
})(o)) || 0) {
it && (o = it);
})(o3)) || 0) {
it && (o3 = it);
var i = 0, F = function() {
};
return {
s: F,
n: function() {
return i >= o.length ? {
return i >= o3.length ? {
done: !0
} : {
done: !1,
value: o[i++]
value: o3[i++]
};
},
e: function(_e) {
@ -358,7 +358,7 @@
var it, err, normalCompletion = !0, didErr = !1;
return {
s: function() {
it = o[Symbol.iterator]();
it = o3[Symbol.iterator]();
},
n: function() {
var step = it.next();
@ -443,10 +443,10 @@
"use strict";
__webpack_require__.r(__webpack_exports__), __webpack_require__.d(__webpack_exports__, {
default: function() {
return Welcome;
return Welcome1;
}
});
var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4512), _Users_timneutkens_projects_next_js_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(8436), _Users_timneutkens_projects_next_js_node_modules_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(8370), _Users_timneutkens_projects_next_js_node_modules_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(2911), _Users_timneutkens_projects_next_js_node_modules_babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(3001), _Users_timneutkens_projects_next_js_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7130), _Users_timneutkens_projects_next_js_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2374), _Users_timneutkens_projects_next_js_node_modules_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(9178), Welcome = function(_React$Component) {
var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4512), _Users_timneutkens_projects_next_js_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(8436), _Users_timneutkens_projects_next_js_node_modules_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(8370), _Users_timneutkens_projects_next_js_node_modules_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(2911), _Users_timneutkens_projects_next_js_node_modules_babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(3001), _Users_timneutkens_projects_next_js_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7130), _Users_timneutkens_projects_next_js_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2374), _Users_timneutkens_projects_next_js_node_modules_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(9178), Welcome1 = function(_React$Component) {
(0, _Users_timneutkens_projects_next_js_node_modules_babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_4__.Z)(Welcome, _React$Component);
var _super = function(Derived) {
var hasNativeReflectConstruct = function() {
@ -536,14 +536,17 @@
},
5279: function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
(window.__NEXT_P = window.__NEXT_P || []).push([
"/dynamic/no-chunk", function() {
"/dynamic/no-chunk",
function() {
return __webpack_require__(8837);
}, ]);
},
]);
},
4652: function(module, __unused_webpack_exports, __webpack_require__) {
module.exports = __webpack_require__(8551);
}
}, function(__webpack_require__) {
},
function(__webpack_require__) {
__webpack_require__.O(0, [
774,
888,
@ -551,4 +554,5 @@
], function() {
return __webpack_require__(__webpack_require__.s = 5279);
}), _N_E = __webpack_require__.O();
}, ]);
},
]);

View File

@ -98,8 +98,8 @@
Object.defineProperty(exports, "__esModule", {
value: !0
}), exports.default = void 0;
var obj, _react = (obj = __webpack_require__(2735)) && obj.__esModule ? obj : {
default: obj
var obj1, _react = (obj1 = __webpack_require__(2735)) && obj1.__esModule ? obj1 : {
default: obj1
}, _useSubscription = __webpack_require__(4234), _loadableContext = __webpack_require__(8183), ALL_INITIALIZERS = [], READY_INITIALIZERS = [], initialized = !1;
function load(loader) {
var promise = loader(), state = {
@ -113,7 +113,7 @@
throw state.loading = !1, state.error = err, err;
}), state;
}
var LoadableSubscription = function() {
var LoadableSubscription1 = function() {
function LoadableSubscription(loadFn, opts) {
_classCallCheck(this, LoadableSubscription), this._loadFn = loadFn, this._opts = opts, this._callbacks = new Set(), this._delay = null, this._timeout = null, this.retry();
}
@ -200,7 +200,7 @@
}, options), subscription = null;
function init() {
if (!subscription) {
var sub = new LoadableSubscription(loadFn, opts);
var sub = new LoadableSubscription1(loadFn, opts);
subscription = {
getCurrentValue: sub.getCurrentValue.bind(sub),
subscribe: sub.subscribe.bind(sub),
@ -213,27 +213,27 @@
if (!initialized && "function" == typeof opts.webpack) {
var moduleIds = opts.webpack();
READY_INITIALIZERS.push(function(ids) {
var _step, _iterator = function(o, allowArrayLike) {
if ("undefined" == typeof Symbol || null == o[Symbol.iterator]) {
if (Array.isArray(o) || (it = (function(o, minLen) {
var _step, _iterator = function(o1, allowArrayLike) {
if ("undefined" == typeof Symbol || null == o1[Symbol.iterator]) {
if (Array.isArray(o1) || (it = (function(o, minLen) {
if (o) {
if ("string" == typeof o) return _arrayLikeToArray(o, minLen);
var n = Object.prototype.toString.call(o).slice(8, -1);
if ("Object" === n && o.constructor && (n = o.constructor.name), "Map" === n || "Set" === n) return Array.from(o);
if ("Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
}
})(o)) || 0) {
it && (o = it);
})(o1)) || 0) {
it && (o1 = it);
var i = 0, F = function() {
};
return {
s: F,
n: function() {
return i >= o.length ? {
return i >= o1.length ? {
done: !0
} : {
done: !1,
value: o[i++]
value: o1[i++]
};
},
e: function(_e) {
@ -247,7 +247,7 @@
var it, err, normalCompletion = !0, didErr = !1;
return {
s: function() {
it = o[Symbol.iterator]();
it = o1[Symbol.iterator]();
},
n: function() {
var step = it.next();
@ -353,14 +353,17 @@
},
8996: function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
(window.__NEXT_P = window.__NEXT_P || []).push([
"/dynamic/no-ssr", function() {
"/dynamic/no-ssr",
function() {
return __webpack_require__(6318);
}, ]);
},
]);
},
4652: function(module, __unused_webpack_exports, __webpack_require__) {
module.exports = __webpack_require__(8551);
}
}, function(__webpack_require__) {
},
function(__webpack_require__) {
__webpack_require__.O(0, [
774,
888,
@ -368,4 +371,5 @@
], function() {
return __webpack_require__(__webpack_require__.s = 8996);
}), _N_E = __webpack_require__.O();
}, ]);
},
]);

View File

@ -98,8 +98,8 @@
Object.defineProperty(exports, "__esModule", {
value: !0
}), exports.default = void 0;
var obj, _react = (obj = __webpack_require__(2735)) && obj.__esModule ? obj : {
default: obj
var obj1, _react = (obj1 = __webpack_require__(2735)) && obj1.__esModule ? obj1 : {
default: obj1
}, _useSubscription = __webpack_require__(4234), _loadableContext = __webpack_require__(8183), ALL_INITIALIZERS = [], READY_INITIALIZERS = [], initialized = !1;
function load(loader) {
var promise = loader(), state = {
@ -113,7 +113,7 @@
throw state.loading = !1, state.error = err, err;
}), state;
}
var LoadableSubscription = function() {
var LoadableSubscription1 = function() {
function LoadableSubscription(loadFn, opts) {
_classCallCheck(this, LoadableSubscription), this._loadFn = loadFn, this._opts = opts, this._callbacks = new Set(), this._delay = null, this._timeout = null, this.retry();
}
@ -200,7 +200,7 @@
}, options), subscription = null;
function init() {
if (!subscription) {
var sub = new LoadableSubscription(loadFn, opts);
var sub = new LoadableSubscription1(loadFn, opts);
subscription = {
getCurrentValue: sub.getCurrentValue.bind(sub),
subscribe: sub.subscribe.bind(sub),
@ -213,27 +213,27 @@
if (!initialized && "function" == typeof opts.webpack) {
var moduleIds = opts.webpack();
READY_INITIALIZERS.push(function(ids) {
var _step, _iterator = function(o, allowArrayLike) {
if ("undefined" == typeof Symbol || null == o[Symbol.iterator]) {
if (Array.isArray(o) || (it = (function(o, minLen) {
var _step, _iterator = function(o1, allowArrayLike) {
if ("undefined" == typeof Symbol || null == o1[Symbol.iterator]) {
if (Array.isArray(o1) || (it = (function(o, minLen) {
if (o) {
if ("string" == typeof o) return _arrayLikeToArray(o, minLen);
var n = Object.prototype.toString.call(o).slice(8, -1);
if ("Object" === n && o.constructor && (n = o.constructor.name), "Map" === n || "Set" === n) return Array.from(o);
if ("Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
}
})(o)) || 0) {
it && (o = it);
})(o1)) || 0) {
it && (o1 = it);
var i = 0, F = function() {
};
return {
s: F,
n: function() {
return i >= o.length ? {
return i >= o1.length ? {
done: !0
} : {
done: !1,
value: o[i++]
value: o1[i++]
};
},
e: function(_e) {
@ -247,7 +247,7 @@
var it, err, normalCompletion = !0, didErr = !1;
return {
s: function() {
it = o[Symbol.iterator]();
it = o1[Symbol.iterator]();
},
n: function() {
var step = it.next();
@ -355,14 +355,17 @@
},
6637: function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
(window.__NEXT_P = window.__NEXT_P || []).push([
"/dynamic/no-ssr-custom-loading", function() {
"/dynamic/no-ssr-custom-loading",
function() {
return __webpack_require__(6502);
}, ]);
},
]);
},
4652: function(module, __unused_webpack_exports, __webpack_require__) {
module.exports = __webpack_require__(8551);
}
}, function(__webpack_require__) {
},
function(__webpack_require__) {
__webpack_require__.O(0, [
774,
888,
@ -370,4 +373,5 @@
], function() {
return __webpack_require__(__webpack_require__.s = 6637);
}), _N_E = __webpack_require__.O();
}, ]);
},
]);

View File

@ -98,8 +98,8 @@
Object.defineProperty(exports, "__esModule", {
value: !0
}), exports.default = void 0;
var obj, _react = (obj = __webpack_require__(2735)) && obj.__esModule ? obj : {
default: obj
var obj1, _react = (obj1 = __webpack_require__(2735)) && obj1.__esModule ? obj1 : {
default: obj1
}, _useSubscription = __webpack_require__(4234), _loadableContext = __webpack_require__(8183), ALL_INITIALIZERS = [], READY_INITIALIZERS = [], initialized = !1;
function load(loader) {
var promise = loader(), state = {
@ -113,7 +113,7 @@
throw state.loading = !1, state.error = err, err;
}), state;
}
var LoadableSubscription = function() {
var LoadableSubscription1 = function() {
function LoadableSubscription(loadFn, opts) {
_classCallCheck(this, LoadableSubscription), this._loadFn = loadFn, this._opts = opts, this._callbacks = new Set(), this._delay = null, this._timeout = null, this.retry();
}
@ -200,7 +200,7 @@
}, options), subscription = null;
function init() {
if (!subscription) {
var sub = new LoadableSubscription(loadFn, opts);
var sub = new LoadableSubscription1(loadFn, opts);
subscription = {
getCurrentValue: sub.getCurrentValue.bind(sub),
subscribe: sub.subscribe.bind(sub),
@ -213,27 +213,27 @@
if (!initialized && "function" == typeof opts.webpack) {
var moduleIds = opts.webpack();
READY_INITIALIZERS.push(function(ids) {
var _step, _iterator = function(o, allowArrayLike) {
if ("undefined" == typeof Symbol || null == o[Symbol.iterator]) {
if (Array.isArray(o) || (it = (function(o, minLen) {
var _step, _iterator = function(o1, allowArrayLike) {
if ("undefined" == typeof Symbol || null == o1[Symbol.iterator]) {
if (Array.isArray(o1) || (it = (function(o, minLen) {
if (o) {
if ("string" == typeof o) return _arrayLikeToArray(o, minLen);
var n = Object.prototype.toString.call(o).slice(8, -1);
if ("Object" === n && o.constructor && (n = o.constructor.name), "Map" === n || "Set" === n) return Array.from(o);
if ("Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
}
})(o)) || 0) {
it && (o = it);
})(o1)) || 0) {
it && (o1 = it);
var i = 0, F = function() {
};
return {
s: F,
n: function() {
return i >= o.length ? {
return i >= o1.length ? {
done: !0
} : {
done: !1,
value: o[i++]
value: o1[i++]
};
},
e: function(_e) {
@ -247,7 +247,7 @@
var it, err, normalCompletion = !0, didErr = !1;
return {
s: function() {
it = o[Symbol.iterator]();
it = o1[Symbol.iterator]();
},
n: function() {
var step = it.next();
@ -352,14 +352,17 @@
},
5006: function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
(window.__NEXT_P = window.__NEXT_P || []).push([
"/dynamic/ssr", function() {
"/dynamic/ssr",
function() {
return __webpack_require__(8584);
}, ]);
},
]);
},
4652: function(module, __unused_webpack_exports, __webpack_require__) {
module.exports = __webpack_require__(8551);
}
}, function(__webpack_require__) {
},
function(__webpack_require__) {
__webpack_require__.O(0, [
774,
888,
@ -367,4 +370,5 @@
], function() {
return __webpack_require__(__webpack_require__.s = 5006);
}), _N_E = __webpack_require__.O();
}, ]);
},
]);

View File

@ -98,8 +98,8 @@
Object.defineProperty(exports, "__esModule", {
value: !0
}), exports.default = void 0;
var obj, _react = (obj = __webpack_require__(2735)) && obj.__esModule ? obj : {
default: obj
var obj1, _react = (obj1 = __webpack_require__(2735)) && obj1.__esModule ? obj1 : {
default: obj1
}, _useSubscription = __webpack_require__(4234), _loadableContext = __webpack_require__(8183), ALL_INITIALIZERS = [], READY_INITIALIZERS = [], initialized = !1;
function load(loader) {
var promise = loader(), state = {
@ -113,7 +113,7 @@
throw state.loading = !1, state.error = err, err;
}), state;
}
var LoadableSubscription = function() {
var LoadableSubscription1 = function() {
function LoadableSubscription(loadFn, opts) {
_classCallCheck(this, LoadableSubscription), this._loadFn = loadFn, this._opts = opts, this._callbacks = new Set(), this._delay = null, this._timeout = null, this.retry();
}
@ -200,7 +200,7 @@
}, options), subscription = null;
function init() {
if (!subscription) {
var sub = new LoadableSubscription(loadFn, opts);
var sub = new LoadableSubscription1(loadFn, opts);
subscription = {
getCurrentValue: sub.getCurrentValue.bind(sub),
subscribe: sub.subscribe.bind(sub),
@ -213,27 +213,27 @@
if (!initialized && "function" == typeof opts.webpack) {
var moduleIds = opts.webpack();
READY_INITIALIZERS.push(function(ids) {
var _step, _iterator = function(o, allowArrayLike) {
if ("undefined" == typeof Symbol || null == o[Symbol.iterator]) {
if (Array.isArray(o) || (it = (function(o, minLen) {
var _step, _iterator = function(o1, allowArrayLike) {
if ("undefined" == typeof Symbol || null == o1[Symbol.iterator]) {
if (Array.isArray(o1) || (it = (function(o, minLen) {
if (o) {
if ("string" == typeof o) return _arrayLikeToArray(o, minLen);
var n = Object.prototype.toString.call(o).slice(8, -1);
if ("Object" === n && o.constructor && (n = o.constructor.name), "Map" === n || "Set" === n) return Array.from(o);
if ("Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
}
})(o)) || 0) {
it && (o = it);
})(o1)) || 0) {
it && (o1 = it);
var i = 0, F = function() {
};
return {
s: F,
n: function() {
return i >= o.length ? {
return i >= o1.length ? {
done: !0
} : {
done: !1,
value: o[i++]
value: o1[i++]
};
},
e: function(_e) {
@ -247,7 +247,7 @@
var it, err, normalCompletion = !0, didErr = !1;
return {
s: function() {
it = o[Symbol.iterator]();
it = o1[Symbol.iterator]();
},
n: function() {
var step = it.next();
@ -353,14 +353,17 @@
},
4420: function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
(window.__NEXT_P = window.__NEXT_P || []).push([
"/dynamic/ssr-true", function() {
"/dynamic/ssr-true",
function() {
return __webpack_require__(6403);
}, ]);
},
]);
},
4652: function(module, __unused_webpack_exports, __webpack_require__) {
module.exports = __webpack_require__(8551);
}
}, function(__webpack_require__) {
},
function(__webpack_require__) {
__webpack_require__.O(0, [
774,
888,
@ -368,4 +371,5 @@
], function() {
return __webpack_require__(__webpack_require__.s = 4420);
}), _N_E = __webpack_require__.O();
}, ]);
},
]);

View File

@ -1,5 +1,5 @@
function validatePropTypes(element) {
var propTypes, type = element.type;
function validatePropTypes(element1) {
var propTypes, type = element1.type;
if (null != type && "string" != typeof type) {
if ("function" == typeof type) propTypes = type.propTypes;
else {
@ -23,7 +23,7 @@ function validatePropTypes(element) {
}
!error$1 || error$1 instanceof Error || (setCurrentlyValidatingElement(element), error("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", componentName || "React class", location, typeSpecName, typeof error$1), setCurrentlyValidatingElement(null)), error$1 instanceof Error && !(error$1.message in loggedTypeFailures) && (loggedTypeFailures[error$1.message] = !0, setCurrentlyValidatingElement(element), error("Failed %s type: %s", location, error$1.message), setCurrentlyValidatingElement(null));
}
}(propTypes, element.props, "prop", name, element);
}(propTypes, element1.props, "prop", name, element1);
} else void 0 === type.PropTypes || propTypesMisspellWarningShown || (propTypesMisspellWarningShown = !0, error("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", getComponentName(type) || "Unknown"));
"function" != typeof type.getDefaultProps || type.getDefaultProps.isReactClassApproved || error("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
}

Some files were not shown because too many files have changed in this diff Show More