@wexio/messenger-widget-react 1.0.15 → 1.0.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{widget-react-CApFAean.js → widget-react-5a308JRT.js} +2 -2
- package/dist/{widget-react-Dx1wNPEj2.js → widget-react-BSMmfqW72.js} +4 -4
- package/dist/{widget-react-tf213AGn.js → widget-react-BxWwGQRD.js} +2 -2
- package/dist/{widget-react-CXWfdJcE.js → widget-react-CQ4e_16G.js} +801 -785
- package/dist/{widget-react-FRbAvEjJ.js → widget-react-DDQvg3DT.js} +2 -2
- package/dist/{widget-react-k8bWxrAb2.js → widget-react-brIi2vMI2.js} +4 -4
- package/dist/widget-react.js +4 -4
- package/package.json +1 -1
|
@@ -575,69 +575,69 @@ function Ke(e) {
|
|
|
575
575
|
let t = e?.kind;
|
|
576
576
|
return typeof t == "string" && Ge.has(t);
|
|
577
577
|
}
|
|
578
|
-
var
|
|
578
|
+
var qe;
|
|
579
579
|
(function(e) {
|
|
580
580
|
e.QUERY = "query", e.MUTATION = "mutation", e.SUBSCRIPTION = "subscription";
|
|
581
|
-
})(
|
|
581
|
+
})(qe || (qe = {}));
|
|
582
582
|
//#endregion
|
|
583
583
|
//#region node_modules/graphql/language/directiveLocation.mjs
|
|
584
|
-
var
|
|
584
|
+
var Je;
|
|
585
585
|
(function(e) {
|
|
586
586
|
e.QUERY = "QUERY", e.MUTATION = "MUTATION", e.SUBSCRIPTION = "SUBSCRIPTION", e.FIELD = "FIELD", e.FRAGMENT_DEFINITION = "FRAGMENT_DEFINITION", e.FRAGMENT_SPREAD = "FRAGMENT_SPREAD", e.INLINE_FRAGMENT = "INLINE_FRAGMENT", e.VARIABLE_DEFINITION = "VARIABLE_DEFINITION", e.SCHEMA = "SCHEMA", e.SCALAR = "SCALAR", e.OBJECT = "OBJECT", e.FIELD_DEFINITION = "FIELD_DEFINITION", e.ARGUMENT_DEFINITION = "ARGUMENT_DEFINITION", e.INTERFACE = "INTERFACE", e.UNION = "UNION", e.ENUM = "ENUM", e.ENUM_VALUE = "ENUM_VALUE", e.INPUT_OBJECT = "INPUT_OBJECT", e.INPUT_FIELD_DEFINITION = "INPUT_FIELD_DEFINITION", e.DIRECTIVE_DEFINITION = "DIRECTIVE_DEFINITION";
|
|
587
|
-
})(
|
|
587
|
+
})(Je || (Je = {}));
|
|
588
588
|
//#endregion
|
|
589
589
|
//#region node_modules/graphql/language/kinds.mjs
|
|
590
|
-
var
|
|
590
|
+
var M;
|
|
591
591
|
(function(e) {
|
|
592
592
|
e.NAME = "Name", e.DOCUMENT = "Document", e.OPERATION_DEFINITION = "OperationDefinition", e.VARIABLE_DEFINITION = "VariableDefinition", e.SELECTION_SET = "SelectionSet", e.FIELD = "Field", e.ARGUMENT = "Argument", e.FRAGMENT_SPREAD = "FragmentSpread", e.INLINE_FRAGMENT = "InlineFragment", e.FRAGMENT_DEFINITION = "FragmentDefinition", e.VARIABLE = "Variable", e.INT = "IntValue", e.FLOAT = "FloatValue", e.STRING = "StringValue", e.BOOLEAN = "BooleanValue", e.NULL = "NullValue", e.ENUM = "EnumValue", e.LIST = "ListValue", e.OBJECT = "ObjectValue", e.OBJECT_FIELD = "ObjectField", e.DIRECTIVE = "Directive", e.NAMED_TYPE = "NamedType", e.LIST_TYPE = "ListType", e.NON_NULL_TYPE = "NonNullType", e.SCHEMA_DEFINITION = "SchemaDefinition", e.OPERATION_TYPE_DEFINITION = "OperationTypeDefinition", e.SCALAR_TYPE_DEFINITION = "ScalarTypeDefinition", e.OBJECT_TYPE_DEFINITION = "ObjectTypeDefinition", e.FIELD_DEFINITION = "FieldDefinition", e.INPUT_VALUE_DEFINITION = "InputValueDefinition", e.INTERFACE_TYPE_DEFINITION = "InterfaceTypeDefinition", e.UNION_TYPE_DEFINITION = "UnionTypeDefinition", e.ENUM_TYPE_DEFINITION = "EnumTypeDefinition", e.ENUM_VALUE_DEFINITION = "EnumValueDefinition", e.INPUT_OBJECT_TYPE_DEFINITION = "InputObjectTypeDefinition", e.DIRECTIVE_DEFINITION = "DirectiveDefinition", e.SCHEMA_EXTENSION = "SchemaExtension", e.DIRECTIVE_EXTENSION = "DirectiveExtension", e.SCALAR_TYPE_EXTENSION = "ScalarTypeExtension", e.OBJECT_TYPE_EXTENSION = "ObjectTypeExtension", e.INTERFACE_TYPE_EXTENSION = "InterfaceTypeExtension", e.UNION_TYPE_EXTENSION = "UnionTypeExtension", e.ENUM_TYPE_EXTENSION = "EnumTypeExtension", e.INPUT_OBJECT_TYPE_EXTENSION = "InputObjectTypeExtension", e.TYPE_COORDINATE = "TypeCoordinate", e.MEMBER_COORDINATE = "MemberCoordinate", e.ARGUMENT_COORDINATE = "ArgumentCoordinate", e.DIRECTIVE_COORDINATE = "DirectiveCoordinate", e.DIRECTIVE_ARGUMENT_COORDINATE = "DirectiveArgumentCoordinate";
|
|
593
|
-
})(
|
|
593
|
+
})(M || (M = {}));
|
|
594
594
|
//#endregion
|
|
595
595
|
//#region node_modules/graphql/language/characterClasses.mjs
|
|
596
|
-
function Je(e) {
|
|
597
|
-
return e === 9 || e === 32;
|
|
598
|
-
}
|
|
599
596
|
function Ye(e) {
|
|
600
|
-
return e
|
|
597
|
+
return e === 9 || e === 32;
|
|
601
598
|
}
|
|
602
599
|
function Xe(e) {
|
|
603
|
-
return e >=
|
|
600
|
+
return e >= 48 && e <= 57;
|
|
604
601
|
}
|
|
605
602
|
function Ze(e) {
|
|
606
|
-
return
|
|
603
|
+
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
607
604
|
}
|
|
608
605
|
function Qe(e) {
|
|
609
|
-
return
|
|
606
|
+
return Ze(e) || e === 95;
|
|
607
|
+
}
|
|
608
|
+
function $e(e) {
|
|
609
|
+
return Ze(e) || Xe(e) || e === 95;
|
|
610
610
|
}
|
|
611
611
|
//#endregion
|
|
612
612
|
//#region node_modules/graphql/language/blockString.mjs
|
|
613
|
-
function
|
|
613
|
+
function et(e) {
|
|
614
614
|
let t = 2 ** 53 - 1, n = null, r = -1;
|
|
615
615
|
for (let i = 0; i < e.length; ++i) {
|
|
616
|
-
let a = e[i], o =
|
|
616
|
+
let a = e[i], o = tt(a);
|
|
617
617
|
o !== a.length && (n = n ?? i, r = i, i !== 0 && o < t && (t = o));
|
|
618
618
|
}
|
|
619
619
|
return e.map((e, n) => n === 0 ? e : e.slice(t)).slice(n ?? 0, r + 1);
|
|
620
620
|
}
|
|
621
|
-
function
|
|
621
|
+
function tt(e) {
|
|
622
622
|
let t = 0;
|
|
623
|
-
for (; t < e.length &&
|
|
623
|
+
for (; t < e.length && Ye(e.charCodeAt(t));) ++t;
|
|
624
624
|
return t;
|
|
625
625
|
}
|
|
626
|
-
function
|
|
627
|
-
let n = e.replace(/"""/g, "\\\"\"\""), r = n.split(/\r\n|[\n\r]/g), i = r.length === 1, a = r.length > 1 && r.slice(1).every((e) => e.length === 0 ||
|
|
626
|
+
function nt(e, t) {
|
|
627
|
+
let n = e.replace(/"""/g, "\\\"\"\""), r = n.split(/\r\n|[\n\r]/g), i = r.length === 1, a = r.length > 1 && r.slice(1).every((e) => e.length === 0 || Ye(e.charCodeAt(0))), o = n.endsWith("\\\"\"\""), s = e.endsWith("\"") && !o, c = e.endsWith("\\"), l = s || c, u = !(t != null && t.minimize) && (!i || e.length > 70 || l || a || o), d = "", f = i && Ye(e.charCodeAt(0));
|
|
628
628
|
return (u && !f || a) && (d += "\n"), d += n, (u || l) && (d += "\n"), "\"\"\"" + d + "\"\"\"";
|
|
629
629
|
}
|
|
630
630
|
//#endregion
|
|
631
631
|
//#region node_modules/graphql/language/tokenKind.mjs
|
|
632
|
-
var
|
|
632
|
+
var N;
|
|
633
633
|
(function(e) {
|
|
634
634
|
e.SOF = "<SOF>", e.EOF = "<EOF>", e.BANG = "!", e.DOLLAR = "$", e.AMP = "&", e.PAREN_L = "(", e.PAREN_R = ")", e.DOT = ".", e.SPREAD = "...", e.COLON = ":", e.EQUALS = "=", e.AT = "@", e.BRACKET_L = "[", e.BRACKET_R = "]", e.BRACE_L = "{", e.PIPE = "|", e.BRACE_R = "}", e.NAME = "Name", e.INT = "Int", e.FLOAT = "Float", e.STRING = "String", e.BLOCK_STRING = "BlockString", e.COMMENT = "Comment";
|
|
635
|
-
})(
|
|
635
|
+
})(N || (N = {}));
|
|
636
636
|
//#endregion
|
|
637
637
|
//#region node_modules/graphql/language/lexer.mjs
|
|
638
|
-
var
|
|
638
|
+
var rt = class {
|
|
639
639
|
constructor(e) {
|
|
640
|
-
let t = new Ue(
|
|
640
|
+
let t = new Ue(N.SOF, 0, 0, 0, 0);
|
|
641
641
|
this.source = e, this.lastToken = t, this.token = t, this.line = 1, this.lineStart = 0;
|
|
642
642
|
}
|
|
643
643
|
get [Symbol.toStringTag]() {
|
|
@@ -648,45 +648,45 @@ var nt = class {
|
|
|
648
648
|
}
|
|
649
649
|
lookahead() {
|
|
650
650
|
let e = this.token;
|
|
651
|
-
if (e.kind !==
|
|
651
|
+
if (e.kind !== N.EOF) do
|
|
652
652
|
if (e.next) e = e.next;
|
|
653
653
|
else {
|
|
654
|
-
let t =
|
|
654
|
+
let t = lt(this, e.end);
|
|
655
655
|
e.next = t, t.prev = e, e = t;
|
|
656
656
|
}
|
|
657
|
-
while (e.kind ===
|
|
657
|
+
while (e.kind === N.COMMENT);
|
|
658
658
|
return e;
|
|
659
659
|
}
|
|
660
660
|
};
|
|
661
|
-
function rt(e) {
|
|
662
|
-
return e === P.BANG || e === P.DOLLAR || e === P.AMP || e === P.PAREN_L || e === P.PAREN_R || e === P.DOT || e === P.SPREAD || e === P.COLON || e === P.EQUALS || e === P.AT || e === P.BRACKET_L || e === P.BRACKET_R || e === P.BRACE_L || e === P.PIPE || e === P.BRACE_R;
|
|
663
|
-
}
|
|
664
661
|
function it(e) {
|
|
662
|
+
return e === N.BANG || e === N.DOLLAR || e === N.AMP || e === N.PAREN_L || e === N.PAREN_R || e === N.DOT || e === N.SPREAD || e === N.COLON || e === N.EQUALS || e === N.AT || e === N.BRACKET_L || e === N.BRACKET_R || e === N.BRACE_L || e === N.PIPE || e === N.BRACE_R;
|
|
663
|
+
}
|
|
664
|
+
function at(e) {
|
|
665
665
|
return e >= 0 && e <= 55295 || e >= 57344 && e <= 1114111;
|
|
666
666
|
}
|
|
667
|
-
function
|
|
668
|
-
return
|
|
667
|
+
function ot(e, t) {
|
|
668
|
+
return st(e.charCodeAt(t)) && ct(e.charCodeAt(t + 1));
|
|
669
669
|
}
|
|
670
|
-
function
|
|
670
|
+
function st(e) {
|
|
671
671
|
return e >= 55296 && e <= 56319;
|
|
672
672
|
}
|
|
673
|
-
function
|
|
673
|
+
function ct(e) {
|
|
674
674
|
return e >= 56320 && e <= 57343;
|
|
675
675
|
}
|
|
676
|
-
function
|
|
676
|
+
function P(e, t) {
|
|
677
677
|
let n = e.source.body.codePointAt(t);
|
|
678
|
-
if (n === void 0) return
|
|
678
|
+
if (n === void 0) return N.EOF;
|
|
679
679
|
if (n >= 32 && n <= 126) {
|
|
680
680
|
let e = String.fromCodePoint(n);
|
|
681
681
|
return e === "\"" ? "'\"'" : `"${e}"`;
|
|
682
682
|
}
|
|
683
683
|
return "U+" + n.toString(16).toUpperCase().padStart(4, "0");
|
|
684
684
|
}
|
|
685
|
-
function
|
|
685
|
+
function F(e, t, n, r, i) {
|
|
686
686
|
let a = e.line;
|
|
687
687
|
return new Ue(t, n, r, a, 1 + n - e.lineStart, i);
|
|
688
688
|
}
|
|
689
|
-
function
|
|
689
|
+
function lt(e, t) {
|
|
690
690
|
let n = e.source.body, r = n.length, i = t;
|
|
691
691
|
for (; i < r;) {
|
|
692
692
|
let t = n.charCodeAt(i);
|
|
@@ -703,111 +703,111 @@ function ct(e, t) {
|
|
|
703
703
|
case 13:
|
|
704
704
|
n.charCodeAt(i + 1) === 10 ? i += 2 : ++i, ++e.line, e.lineStart = i;
|
|
705
705
|
continue;
|
|
706
|
-
case 35: return
|
|
707
|
-
case 33: return
|
|
708
|
-
case 36: return
|
|
709
|
-
case 38: return
|
|
710
|
-
case 40: return
|
|
711
|
-
case 41: return
|
|
706
|
+
case 35: return ut(e, i);
|
|
707
|
+
case 33: return F(e, N.BANG, i, i + 1);
|
|
708
|
+
case 36: return F(e, N.DOLLAR, i, i + 1);
|
|
709
|
+
case 38: return F(e, N.AMP, i, i + 1);
|
|
710
|
+
case 40: return F(e, N.PAREN_L, i, i + 1);
|
|
711
|
+
case 41: return F(e, N.PAREN_R, i, i + 1);
|
|
712
712
|
case 46:
|
|
713
|
-
if (n.charCodeAt(i + 1) === 46 && n.charCodeAt(i + 2) === 46) return
|
|
713
|
+
if (n.charCodeAt(i + 1) === 46 && n.charCodeAt(i + 2) === 46) return F(e, N.SPREAD, i, i + 3);
|
|
714
714
|
break;
|
|
715
|
-
case 58: return
|
|
716
|
-
case 61: return
|
|
717
|
-
case 64: return
|
|
718
|
-
case 91: return
|
|
719
|
-
case 93: return
|
|
720
|
-
case 123: return
|
|
721
|
-
case 124: return
|
|
722
|
-
case 125: return
|
|
723
|
-
case 34: return n.charCodeAt(i + 1) === 34 && n.charCodeAt(i + 2) === 34 ?
|
|
715
|
+
case 58: return F(e, N.COLON, i, i + 1);
|
|
716
|
+
case 61: return F(e, N.EQUALS, i, i + 1);
|
|
717
|
+
case 64: return F(e, N.AT, i, i + 1);
|
|
718
|
+
case 91: return F(e, N.BRACKET_L, i, i + 1);
|
|
719
|
+
case 93: return F(e, N.BRACKET_R, i, i + 1);
|
|
720
|
+
case 123: return F(e, N.BRACE_L, i, i + 1);
|
|
721
|
+
case 124: return F(e, N.PIPE, i, i + 1);
|
|
722
|
+
case 125: return F(e, N.BRACE_R, i, i + 1);
|
|
723
|
+
case 34: return n.charCodeAt(i + 1) === 34 && n.charCodeAt(i + 2) === 34 ? yt(e, i) : pt(e, i);
|
|
724
724
|
}
|
|
725
|
-
if (
|
|
726
|
-
if (
|
|
727
|
-
throw j(e.source, i, t === 39 ? "Unexpected single quote character ('), did you mean to use a double quote (\")?" :
|
|
725
|
+
if (Xe(t) || t === 45) return dt(e, i, t);
|
|
726
|
+
if (Qe(t)) return bt(e, i);
|
|
727
|
+
throw j(e.source, i, t === 39 ? "Unexpected single quote character ('), did you mean to use a double quote (\")?" : at(t) || ot(n, i) ? `Unexpected character: ${P(e, i)}.` : `Invalid character: ${P(e, i)}.`);
|
|
728
728
|
}
|
|
729
|
-
return
|
|
729
|
+
return F(e, N.EOF, r, r);
|
|
730
730
|
}
|
|
731
|
-
function
|
|
731
|
+
function ut(e, t) {
|
|
732
732
|
let n = e.source.body, r = n.length, i = t + 1;
|
|
733
733
|
for (; i < r;) {
|
|
734
734
|
let e = n.charCodeAt(i);
|
|
735
735
|
if (e === 10 || e === 13) break;
|
|
736
|
-
if (
|
|
737
|
-
else if (
|
|
736
|
+
if (at(e)) ++i;
|
|
737
|
+
else if (ot(n, i)) i += 2;
|
|
738
738
|
else break;
|
|
739
739
|
}
|
|
740
|
-
return
|
|
740
|
+
return F(e, N.COMMENT, t, i, n.slice(t + 1, i));
|
|
741
741
|
}
|
|
742
|
-
function
|
|
742
|
+
function dt(e, t, n) {
|
|
743
743
|
let r = e.source.body, i = t, a = n, o = !1;
|
|
744
744
|
if (a === 45 && (a = r.charCodeAt(++i)), a === 48) {
|
|
745
|
-
if (a = r.charCodeAt(++i),
|
|
746
|
-
} else i =
|
|
747
|
-
if (a === 46 && (o = !0, a = r.charCodeAt(++i), i =
|
|
748
|
-
return
|
|
745
|
+
if (a = r.charCodeAt(++i), Xe(a)) throw j(e.source, i, `Invalid number, unexpected digit after 0: ${P(e, i)}.`);
|
|
746
|
+
} else i = ft(e, i, a), a = r.charCodeAt(i);
|
|
747
|
+
if (a === 46 && (o = !0, a = r.charCodeAt(++i), i = ft(e, i, a), a = r.charCodeAt(i)), (a === 69 || a === 101) && (o = !0, a = r.charCodeAt(++i), (a === 43 || a === 45) && (a = r.charCodeAt(++i)), i = ft(e, i, a), a = r.charCodeAt(i)), a === 46 || Qe(a)) throw j(e.source, i, `Invalid number, expected digit but got: ${P(e, i)}.`);
|
|
748
|
+
return F(e, o ? N.FLOAT : N.INT, t, i, r.slice(t, i));
|
|
749
749
|
}
|
|
750
|
-
function
|
|
751
|
-
if (!
|
|
750
|
+
function ft(e, t, n) {
|
|
751
|
+
if (!Xe(n)) throw j(e.source, t, `Invalid number, expected digit but got: ${P(e, t)}.`);
|
|
752
752
|
let r = e.source.body, i = t + 1;
|
|
753
|
-
for (;
|
|
753
|
+
for (; Xe(r.charCodeAt(i));) ++i;
|
|
754
754
|
return i;
|
|
755
755
|
}
|
|
756
|
-
function
|
|
756
|
+
function pt(e, t) {
|
|
757
757
|
let n = e.source.body, r = n.length, i = t + 1, a = i, o = "";
|
|
758
758
|
for (; i < r;) {
|
|
759
759
|
let r = n.charCodeAt(i);
|
|
760
|
-
if (r === 34) return o += n.slice(a, i),
|
|
760
|
+
if (r === 34) return o += n.slice(a, i), F(e, N.STRING, t, i + 1, o);
|
|
761
761
|
if (r === 92) {
|
|
762
762
|
o += n.slice(a, i);
|
|
763
|
-
let t = n.charCodeAt(i + 1) === 117 ? n.charCodeAt(i + 2) === 123 ?
|
|
763
|
+
let t = n.charCodeAt(i + 1) === 117 ? n.charCodeAt(i + 2) === 123 ? mt(e, i) : ht(e, i) : vt(e, i);
|
|
764
764
|
o += t.value, i += t.size, a = i;
|
|
765
765
|
continue;
|
|
766
766
|
}
|
|
767
767
|
if (r === 10 || r === 13) break;
|
|
768
|
-
if (
|
|
769
|
-
else if (
|
|
770
|
-
else throw j(e.source, i, `Invalid character within String: ${
|
|
768
|
+
if (at(r)) ++i;
|
|
769
|
+
else if (ot(n, i)) i += 2;
|
|
770
|
+
else throw j(e.source, i, `Invalid character within String: ${P(e, i)}.`);
|
|
771
771
|
}
|
|
772
772
|
throw j(e.source, i, "Unterminated string.");
|
|
773
773
|
}
|
|
774
|
-
function
|
|
774
|
+
function mt(e, t) {
|
|
775
775
|
let n = e.source.body, r = 0, i = 3;
|
|
776
776
|
for (; i < 12;) {
|
|
777
777
|
let e = n.charCodeAt(t + i++);
|
|
778
778
|
if (e === 125) {
|
|
779
|
-
if (i < 5 || !
|
|
779
|
+
if (i < 5 || !at(r)) break;
|
|
780
780
|
return {
|
|
781
781
|
value: String.fromCodePoint(r),
|
|
782
782
|
size: i
|
|
783
783
|
};
|
|
784
784
|
}
|
|
785
|
-
if (r = r << 4 |
|
|
785
|
+
if (r = r << 4 | _t(e), r < 0) break;
|
|
786
786
|
}
|
|
787
787
|
throw j(e.source, t, `Invalid Unicode escape sequence: "${n.slice(t, t + i)}".`);
|
|
788
788
|
}
|
|
789
|
-
function
|
|
790
|
-
let n = e.source.body, r =
|
|
791
|
-
if (
|
|
789
|
+
function ht(e, t) {
|
|
790
|
+
let n = e.source.body, r = gt(n, t + 2);
|
|
791
|
+
if (at(r)) return {
|
|
792
792
|
value: String.fromCodePoint(r),
|
|
793
793
|
size: 6
|
|
794
794
|
};
|
|
795
|
-
if (
|
|
796
|
-
let e =
|
|
797
|
-
if (
|
|
795
|
+
if (st(r) && n.charCodeAt(t + 6) === 92 && n.charCodeAt(t + 7) === 117) {
|
|
796
|
+
let e = gt(n, t + 8);
|
|
797
|
+
if (ct(e)) return {
|
|
798
798
|
value: String.fromCodePoint(r, e),
|
|
799
799
|
size: 12
|
|
800
800
|
};
|
|
801
801
|
}
|
|
802
802
|
throw j(e.source, t, `Invalid Unicode escape sequence: "${n.slice(t, t + 6)}".`);
|
|
803
803
|
}
|
|
804
|
-
function
|
|
805
|
-
return
|
|
804
|
+
function gt(e, t) {
|
|
805
|
+
return _t(e.charCodeAt(t)) << 12 | _t(e.charCodeAt(t + 1)) << 8 | _t(e.charCodeAt(t + 2)) << 4 | _t(e.charCodeAt(t + 3));
|
|
806
806
|
}
|
|
807
|
-
function
|
|
807
|
+
function _t(e) {
|
|
808
808
|
return e >= 48 && e <= 57 ? e - 48 : e >= 65 && e <= 70 ? e - 55 : e >= 97 && e <= 102 ? e - 87 : -1;
|
|
809
809
|
}
|
|
810
|
-
function
|
|
810
|
+
function vt(e, t) {
|
|
811
811
|
let n = e.source.body;
|
|
812
812
|
switch (n.charCodeAt(t + 1)) {
|
|
813
813
|
case 34: return {
|
|
@@ -845,13 +845,13 @@ function _t(e, t) {
|
|
|
845
845
|
}
|
|
846
846
|
throw j(e.source, t, `Invalid character escape sequence: "${n.slice(t, t + 2)}".`);
|
|
847
847
|
}
|
|
848
|
-
function
|
|
848
|
+
function yt(e, t) {
|
|
849
849
|
let n = e.source.body, r = n.length, i = e.lineStart, a = t + 3, o = a, s = "", c = [];
|
|
850
850
|
for (; a < r;) {
|
|
851
851
|
let r = n.charCodeAt(a);
|
|
852
852
|
if (r === 34 && n.charCodeAt(a + 1) === 34 && n.charCodeAt(a + 2) === 34) {
|
|
853
853
|
s += n.slice(o, a), c.push(s);
|
|
854
|
-
let r =
|
|
854
|
+
let r = F(e, N.BLOCK_STRING, t, a + 3, et(c).join("\n"));
|
|
855
855
|
return e.line += c.length - 1, e.lineStart = i, r;
|
|
856
856
|
}
|
|
857
857
|
if (r === 92 && n.charCodeAt(a + 1) === 34 && n.charCodeAt(a + 2) === 34 && n.charCodeAt(a + 3) === 34) {
|
|
@@ -862,56 +862,56 @@ function vt(e, t) {
|
|
|
862
862
|
s += n.slice(o, a), c.push(s), r === 13 && n.charCodeAt(a + 1) === 10 ? a += 2 : ++a, s = "", o = a, i = a;
|
|
863
863
|
continue;
|
|
864
864
|
}
|
|
865
|
-
if (
|
|
866
|
-
else if (
|
|
867
|
-
else throw j(e.source, a, `Invalid character within String: ${
|
|
865
|
+
if (at(r)) ++a;
|
|
866
|
+
else if (ot(n, a)) a += 2;
|
|
867
|
+
else throw j(e.source, a, `Invalid character within String: ${P(e, a)}.`);
|
|
868
868
|
}
|
|
869
869
|
throw j(e.source, a, "Unterminated string.");
|
|
870
870
|
}
|
|
871
|
-
function
|
|
871
|
+
function bt(e, t) {
|
|
872
872
|
let n = e.source.body, r = n.length, i = t + 1;
|
|
873
|
-
for (; i < r &&
|
|
874
|
-
return
|
|
873
|
+
for (; i < r && $e(n.charCodeAt(i));) ++i;
|
|
874
|
+
return F(e, N.NAME, t, i, n.slice(t, i));
|
|
875
875
|
}
|
|
876
876
|
//#endregion
|
|
877
877
|
//#region node_modules/graphql/jsutils/inspect.mjs
|
|
878
|
-
var
|
|
879
|
-
function
|
|
880
|
-
return
|
|
878
|
+
var xt = 10, St = 2;
|
|
879
|
+
function Ct(e) {
|
|
880
|
+
return wt(e, []);
|
|
881
881
|
}
|
|
882
|
-
function
|
|
882
|
+
function wt(e, t) {
|
|
883
883
|
switch (typeof e) {
|
|
884
884
|
case "string": return JSON.stringify(e);
|
|
885
885
|
case "function": return e.name ? `[function ${e.name}]` : "[function]";
|
|
886
|
-
case "object": return
|
|
886
|
+
case "object": return Tt(e, t);
|
|
887
887
|
default: return String(e);
|
|
888
888
|
}
|
|
889
889
|
}
|
|
890
|
-
function
|
|
890
|
+
function Tt(e, t) {
|
|
891
891
|
if (e === null) return "null";
|
|
892
892
|
if (t.includes(e)) return "[Circular]";
|
|
893
893
|
let n = [...t, e];
|
|
894
|
-
if (
|
|
894
|
+
if (Et(e)) {
|
|
895
895
|
let t = e.toJSON();
|
|
896
|
-
if (t !== e) return typeof t == "string" ? t :
|
|
897
|
-
} else if (Array.isArray(e)) return
|
|
898
|
-
return
|
|
896
|
+
if (t !== e) return typeof t == "string" ? t : wt(t, n);
|
|
897
|
+
} else if (Array.isArray(e)) return Ot(e, n);
|
|
898
|
+
return Dt(e, n);
|
|
899
899
|
}
|
|
900
|
-
function
|
|
900
|
+
function Et(e) {
|
|
901
901
|
return typeof e.toJSON == "function";
|
|
902
902
|
}
|
|
903
|
-
function
|
|
903
|
+
function Dt(e, t) {
|
|
904
904
|
let n = Object.entries(e);
|
|
905
|
-
return n.length === 0 ? "{}" : t.length >
|
|
905
|
+
return n.length === 0 ? "{}" : t.length > St ? "[" + kt(e) + "]" : "{ " + n.map(([e, n]) => e + ": " + wt(n, t)).join(", ") + " }";
|
|
906
906
|
}
|
|
907
|
-
function
|
|
907
|
+
function Ot(e, t) {
|
|
908
908
|
if (e.length === 0) return "[]";
|
|
909
|
-
if (t.length >
|
|
910
|
-
let n = Math.min(
|
|
911
|
-
for (let r = 0; r < n; ++r) i.push(
|
|
909
|
+
if (t.length > St) return "[Array]";
|
|
910
|
+
let n = Math.min(xt, e.length), r = e.length - n, i = [];
|
|
911
|
+
for (let r = 0; r < n; ++r) i.push(wt(e[r], t));
|
|
912
912
|
return r === 1 ? i.push("... 1 more item") : r > 1 && i.push(`... ${r} more items`), "[" + i.join(", ") + "]";
|
|
913
913
|
}
|
|
914
|
-
function
|
|
914
|
+
function kt(e) {
|
|
915
915
|
let t = Object.prototype.toString.call(e).replace(/^\[object /, "").replace(/]$/, "");
|
|
916
916
|
if (t === "Object" && typeof e.constructor == "function") {
|
|
917
917
|
let t = e.constructor.name;
|
|
@@ -919,14 +919,14 @@ function Ot(e) {
|
|
|
919
919
|
}
|
|
920
920
|
return t;
|
|
921
921
|
}
|
|
922
|
-
var
|
|
922
|
+
var At = globalThis.process ? function(e, t) {
|
|
923
923
|
return e instanceof t;
|
|
924
924
|
} : function(e, t) {
|
|
925
925
|
if (e instanceof t) return !0;
|
|
926
926
|
if (typeof e == "object" && e) {
|
|
927
927
|
let n = t.prototype[Symbol.toStringTag];
|
|
928
928
|
if (n === (Symbol.toStringTag in e ? e[Symbol.toStringTag] : e.constructor?.name)) {
|
|
929
|
-
let t =
|
|
929
|
+
let t = Ct(e);
|
|
930
930
|
throw Error(`Cannot use ${n} "${t}" from another module or realm.
|
|
931
931
|
|
|
932
932
|
Ensure that there is only one instance of "graphql" in the node_modules
|
|
@@ -942,36 +942,36 @@ spurious results.`);
|
|
|
942
942
|
}
|
|
943
943
|
}
|
|
944
944
|
return !1;
|
|
945
|
-
},
|
|
945
|
+
}, jt = class {
|
|
946
946
|
constructor(e, t = "GraphQL request", n = {
|
|
947
947
|
line: 1,
|
|
948
948
|
column: 1
|
|
949
949
|
}) {
|
|
950
|
-
typeof e == "string" || je(!1, `Body must be a string. Received: ${
|
|
950
|
+
typeof e == "string" || je(!1, `Body must be a string. Received: ${Ct(e)}.`), this.body = e, this.name = t, this.locationOffset = n, this.locationOffset.line > 0 || je(!1, "line in locationOffset is 1-indexed and must be positive."), this.locationOffset.column > 0 || je(!1, "column in locationOffset is 1-indexed and must be positive.");
|
|
951
951
|
}
|
|
952
952
|
get [Symbol.toStringTag]() {
|
|
953
953
|
return "Source";
|
|
954
954
|
}
|
|
955
955
|
};
|
|
956
|
-
function
|
|
957
|
-
return
|
|
956
|
+
function Mt(e) {
|
|
957
|
+
return At(e, jt);
|
|
958
958
|
}
|
|
959
959
|
//#endregion
|
|
960
960
|
//#region node_modules/graphql/language/parser.mjs
|
|
961
|
-
function
|
|
962
|
-
let n = new
|
|
961
|
+
function Nt(e, t) {
|
|
962
|
+
let n = new Pt(e, t), r = n.parseDocument();
|
|
963
963
|
return Object.defineProperty(r, "tokenCount", {
|
|
964
964
|
enumerable: !1,
|
|
965
965
|
value: n.tokenCount
|
|
966
966
|
}), r;
|
|
967
967
|
}
|
|
968
|
-
var
|
|
968
|
+
var Pt = class {
|
|
969
969
|
constructor(e, t = {}) {
|
|
970
970
|
let { lexer: n, ...r } = t;
|
|
971
971
|
if (n) this._lexer = n;
|
|
972
972
|
else {
|
|
973
|
-
let t =
|
|
974
|
-
this._lexer = new
|
|
973
|
+
let t = Mt(e) ? e : new jt(e);
|
|
974
|
+
this._lexer = new rt(t);
|
|
975
975
|
}
|
|
976
976
|
this._options = r, this._tokenCounter = 0;
|
|
977
977
|
}
|
|
@@ -979,23 +979,23 @@ var Nt = class {
|
|
|
979
979
|
return this._tokenCounter;
|
|
980
980
|
}
|
|
981
981
|
parseName() {
|
|
982
|
-
let e = this.expectToken(
|
|
982
|
+
let e = this.expectToken(N.NAME);
|
|
983
983
|
return this.node(e, {
|
|
984
|
-
kind:
|
|
984
|
+
kind: M.NAME,
|
|
985
985
|
value: e.value
|
|
986
986
|
});
|
|
987
987
|
}
|
|
988
988
|
parseDocument() {
|
|
989
989
|
return this.node(this._lexer.token, {
|
|
990
|
-
kind:
|
|
991
|
-
definitions: this.many(
|
|
990
|
+
kind: M.DOCUMENT,
|
|
991
|
+
definitions: this.many(N.SOF, this.parseDefinition, N.EOF)
|
|
992
992
|
});
|
|
993
993
|
}
|
|
994
994
|
parseDefinition() {
|
|
995
|
-
if (this.peek(
|
|
995
|
+
if (this.peek(N.BRACE_L)) return this.parseOperationDefinition();
|
|
996
996
|
let e = this.peekDescription(), t = e ? this._lexer.lookahead() : this._lexer.token;
|
|
997
|
-
if (e && t.kind ===
|
|
998
|
-
if (t.kind ===
|
|
997
|
+
if (e && t.kind === N.BRACE_L) throw j(this._lexer.source, this._lexer.token.start, "Unexpected description, descriptions are not supported on shorthand queries.");
|
|
998
|
+
if (t.kind === N.NAME) {
|
|
999
999
|
switch (t.value) {
|
|
1000
1000
|
case "schema": return this.parseSchemaDefinition();
|
|
1001
1001
|
case "scalar": return this.parseScalarTypeDefinition();
|
|
@@ -1021,9 +1021,9 @@ var Nt = class {
|
|
|
1021
1021
|
}
|
|
1022
1022
|
parseOperationDefinition() {
|
|
1023
1023
|
let e = this._lexer.token;
|
|
1024
|
-
if (this.peek(
|
|
1025
|
-
kind:
|
|
1026
|
-
operation:
|
|
1024
|
+
if (this.peek(N.BRACE_L)) return this.node(e, {
|
|
1025
|
+
kind: M.OPERATION_DEFINITION,
|
|
1026
|
+
operation: qe.QUERY,
|
|
1027
1027
|
description: void 0,
|
|
1028
1028
|
name: void 0,
|
|
1029
1029
|
variableDefinitions: [],
|
|
@@ -1031,8 +1031,8 @@ var Nt = class {
|
|
|
1031
1031
|
selectionSet: this.parseSelectionSet()
|
|
1032
1032
|
});
|
|
1033
1033
|
let t = this.parseDescription(), n = this.parseOperationType(), r;
|
|
1034
|
-
return this.peek(
|
|
1035
|
-
kind:
|
|
1034
|
+
return this.peek(N.NAME) && (r = this.parseName()), this.node(e, {
|
|
1035
|
+
kind: M.OPERATION_DEFINITION,
|
|
1036
1036
|
operation: n,
|
|
1037
1037
|
description: t,
|
|
1038
1038
|
name: r,
|
|
@@ -1042,62 +1042,62 @@ var Nt = class {
|
|
|
1042
1042
|
});
|
|
1043
1043
|
}
|
|
1044
1044
|
parseOperationType() {
|
|
1045
|
-
let e = this.expectToken(
|
|
1045
|
+
let e = this.expectToken(N.NAME);
|
|
1046
1046
|
switch (e.value) {
|
|
1047
|
-
case "query": return
|
|
1048
|
-
case "mutation": return
|
|
1049
|
-
case "subscription": return
|
|
1047
|
+
case "query": return qe.QUERY;
|
|
1048
|
+
case "mutation": return qe.MUTATION;
|
|
1049
|
+
case "subscription": return qe.SUBSCRIPTION;
|
|
1050
1050
|
}
|
|
1051
1051
|
throw this.unexpected(e);
|
|
1052
1052
|
}
|
|
1053
1053
|
parseVariableDefinitions() {
|
|
1054
|
-
return this.optionalMany(
|
|
1054
|
+
return this.optionalMany(N.PAREN_L, this.parseVariableDefinition, N.PAREN_R);
|
|
1055
1055
|
}
|
|
1056
1056
|
parseVariableDefinition() {
|
|
1057
1057
|
return this.node(this._lexer.token, {
|
|
1058
|
-
kind:
|
|
1058
|
+
kind: M.VARIABLE_DEFINITION,
|
|
1059
1059
|
description: this.parseDescription(),
|
|
1060
1060
|
variable: this.parseVariable(),
|
|
1061
|
-
type: (this.expectToken(
|
|
1062
|
-
defaultValue: this.expectOptionalToken(
|
|
1061
|
+
type: (this.expectToken(N.COLON), this.parseTypeReference()),
|
|
1062
|
+
defaultValue: this.expectOptionalToken(N.EQUALS) ? this.parseConstValueLiteral() : void 0,
|
|
1063
1063
|
directives: this.parseConstDirectives()
|
|
1064
1064
|
});
|
|
1065
1065
|
}
|
|
1066
1066
|
parseVariable() {
|
|
1067
1067
|
let e = this._lexer.token;
|
|
1068
|
-
return this.expectToken(
|
|
1069
|
-
kind:
|
|
1068
|
+
return this.expectToken(N.DOLLAR), this.node(e, {
|
|
1069
|
+
kind: M.VARIABLE,
|
|
1070
1070
|
name: this.parseName()
|
|
1071
1071
|
});
|
|
1072
1072
|
}
|
|
1073
1073
|
parseSelectionSet() {
|
|
1074
1074
|
return this.node(this._lexer.token, {
|
|
1075
|
-
kind:
|
|
1076
|
-
selections: this.many(
|
|
1075
|
+
kind: M.SELECTION_SET,
|
|
1076
|
+
selections: this.many(N.BRACE_L, this.parseSelection, N.BRACE_R)
|
|
1077
1077
|
});
|
|
1078
1078
|
}
|
|
1079
1079
|
parseSelection() {
|
|
1080
|
-
return this.peek(
|
|
1080
|
+
return this.peek(N.SPREAD) ? this.parseFragment() : this.parseField();
|
|
1081
1081
|
}
|
|
1082
1082
|
parseField() {
|
|
1083
1083
|
let e = this._lexer.token, t = this.parseName(), n, r;
|
|
1084
|
-
return this.expectOptionalToken(
|
|
1085
|
-
kind:
|
|
1084
|
+
return this.expectOptionalToken(N.COLON) ? (n = t, r = this.parseName()) : r = t, this.node(e, {
|
|
1085
|
+
kind: M.FIELD,
|
|
1086
1086
|
alias: n,
|
|
1087
1087
|
name: r,
|
|
1088
1088
|
arguments: this.parseArguments(!1),
|
|
1089
1089
|
directives: this.parseDirectives(!1),
|
|
1090
|
-
selectionSet: this.peek(
|
|
1090
|
+
selectionSet: this.peek(N.BRACE_L) ? this.parseSelectionSet() : void 0
|
|
1091
1091
|
});
|
|
1092
1092
|
}
|
|
1093
1093
|
parseArguments(e) {
|
|
1094
1094
|
let t = e ? this.parseConstArgument : this.parseArgument;
|
|
1095
|
-
return this.optionalMany(
|
|
1095
|
+
return this.optionalMany(N.PAREN_L, t, N.PAREN_R);
|
|
1096
1096
|
}
|
|
1097
1097
|
parseArgument(e = !1) {
|
|
1098
1098
|
let t = this._lexer.token, n = this.parseName();
|
|
1099
|
-
return this.expectToken(
|
|
1100
|
-
kind:
|
|
1099
|
+
return this.expectToken(N.COLON), this.node(t, {
|
|
1100
|
+
kind: M.ARGUMENT,
|
|
1101
1101
|
name: n,
|
|
1102
1102
|
value: this.parseValueLiteral(e)
|
|
1103
1103
|
});
|
|
@@ -1107,14 +1107,14 @@ var Nt = class {
|
|
|
1107
1107
|
}
|
|
1108
1108
|
parseFragment() {
|
|
1109
1109
|
let e = this._lexer.token;
|
|
1110
|
-
this.expectToken(
|
|
1110
|
+
this.expectToken(N.SPREAD);
|
|
1111
1111
|
let t = this.expectOptionalKeyword("on");
|
|
1112
|
-
return !t && this.peek(
|
|
1113
|
-
kind:
|
|
1112
|
+
return !t && this.peek(N.NAME) ? this.node(e, {
|
|
1113
|
+
kind: M.FRAGMENT_SPREAD,
|
|
1114
1114
|
name: this.parseFragmentName(),
|
|
1115
1115
|
directives: this.parseDirectives(!1)
|
|
1116
1116
|
}) : this.node(e, {
|
|
1117
|
-
kind:
|
|
1117
|
+
kind: M.INLINE_FRAGMENT,
|
|
1118
1118
|
typeCondition: t ? this.parseNamedType() : void 0,
|
|
1119
1119
|
directives: this.parseDirectives(!1),
|
|
1120
1120
|
selectionSet: this.parseSelectionSet()
|
|
@@ -1123,7 +1123,7 @@ var Nt = class {
|
|
|
1123
1123
|
parseFragmentDefinition() {
|
|
1124
1124
|
let e = this._lexer.token, t = this.parseDescription();
|
|
1125
1125
|
return this.expectKeyword("fragment"), this._options.allowLegacyFragmentVariables === !0 ? this.node(e, {
|
|
1126
|
-
kind:
|
|
1126
|
+
kind: M.FRAGMENT_DEFINITION,
|
|
1127
1127
|
description: t,
|
|
1128
1128
|
name: this.parseFragmentName(),
|
|
1129
1129
|
variableDefinitions: this.parseVariableDefinitions(),
|
|
@@ -1131,7 +1131,7 @@ var Nt = class {
|
|
|
1131
1131
|
directives: this.parseDirectives(!1),
|
|
1132
1132
|
selectionSet: this.parseSelectionSet()
|
|
1133
1133
|
}) : this.node(e, {
|
|
1134
|
-
kind:
|
|
1134
|
+
kind: M.FRAGMENT_DEFINITION,
|
|
1135
1135
|
description: t,
|
|
1136
1136
|
name: this.parseFragmentName(),
|
|
1137
1137
|
typeCondition: (this.expectKeyword("on"), this.parseNamedType()),
|
|
@@ -1146,35 +1146,35 @@ var Nt = class {
|
|
|
1146
1146
|
parseValueLiteral(e) {
|
|
1147
1147
|
let t = this._lexer.token;
|
|
1148
1148
|
switch (t.kind) {
|
|
1149
|
-
case
|
|
1150
|
-
case
|
|
1151
|
-
case
|
|
1152
|
-
kind:
|
|
1149
|
+
case N.BRACKET_L: return this.parseList(e);
|
|
1150
|
+
case N.BRACE_L: return this.parseObject(e);
|
|
1151
|
+
case N.INT: return this.advanceLexer(), this.node(t, {
|
|
1152
|
+
kind: M.INT,
|
|
1153
1153
|
value: t.value
|
|
1154
1154
|
});
|
|
1155
|
-
case
|
|
1156
|
-
kind:
|
|
1155
|
+
case N.FLOAT: return this.advanceLexer(), this.node(t, {
|
|
1156
|
+
kind: M.FLOAT,
|
|
1157
1157
|
value: t.value
|
|
1158
1158
|
});
|
|
1159
|
-
case
|
|
1160
|
-
case
|
|
1161
|
-
case
|
|
1159
|
+
case N.STRING:
|
|
1160
|
+
case N.BLOCK_STRING: return this.parseStringLiteral();
|
|
1161
|
+
case N.NAME: switch (this.advanceLexer(), t.value) {
|
|
1162
1162
|
case "true": return this.node(t, {
|
|
1163
|
-
kind:
|
|
1163
|
+
kind: M.BOOLEAN,
|
|
1164
1164
|
value: !0
|
|
1165
1165
|
});
|
|
1166
1166
|
case "false": return this.node(t, {
|
|
1167
|
-
kind:
|
|
1167
|
+
kind: M.BOOLEAN,
|
|
1168
1168
|
value: !1
|
|
1169
1169
|
});
|
|
1170
|
-
case "null": return this.node(t, { kind:
|
|
1170
|
+
case "null": return this.node(t, { kind: M.NULL });
|
|
1171
1171
|
default: return this.node(t, {
|
|
1172
|
-
kind:
|
|
1172
|
+
kind: M.ENUM,
|
|
1173
1173
|
value: t.value
|
|
1174
1174
|
});
|
|
1175
1175
|
}
|
|
1176
|
-
case
|
|
1177
|
-
if (e) if (this.expectToken(
|
|
1176
|
+
case N.DOLLAR:
|
|
1177
|
+
if (e) if (this.expectToken(N.DOLLAR), this._lexer.token.kind === N.NAME) {
|
|
1178
1178
|
let e = this._lexer.token.value;
|
|
1179
1179
|
throw j(this._lexer.source, t.start, `Unexpected variable "$${e}" in constant value.`);
|
|
1180
1180
|
} else throw this.unexpected(t);
|
|
@@ -1188,34 +1188,34 @@ var Nt = class {
|
|
|
1188
1188
|
parseStringLiteral() {
|
|
1189
1189
|
let e = this._lexer.token;
|
|
1190
1190
|
return this.advanceLexer(), this.node(e, {
|
|
1191
|
-
kind:
|
|
1191
|
+
kind: M.STRING,
|
|
1192
1192
|
value: e.value,
|
|
1193
|
-
block: e.kind ===
|
|
1193
|
+
block: e.kind === N.BLOCK_STRING
|
|
1194
1194
|
});
|
|
1195
1195
|
}
|
|
1196
1196
|
parseList(e) {
|
|
1197
1197
|
return this.node(this._lexer.token, {
|
|
1198
|
-
kind:
|
|
1199
|
-
values: this.any(
|
|
1198
|
+
kind: M.LIST,
|
|
1199
|
+
values: this.any(N.BRACKET_L, () => this.parseValueLiteral(e), N.BRACKET_R)
|
|
1200
1200
|
});
|
|
1201
1201
|
}
|
|
1202
1202
|
parseObject(e) {
|
|
1203
1203
|
return this.node(this._lexer.token, {
|
|
1204
|
-
kind:
|
|
1205
|
-
fields: this.any(
|
|
1204
|
+
kind: M.OBJECT,
|
|
1205
|
+
fields: this.any(N.BRACE_L, () => this.parseObjectField(e), N.BRACE_R)
|
|
1206
1206
|
});
|
|
1207
1207
|
}
|
|
1208
1208
|
parseObjectField(e) {
|
|
1209
1209
|
let t = this._lexer.token, n = this.parseName();
|
|
1210
|
-
return this.expectToken(
|
|
1211
|
-
kind:
|
|
1210
|
+
return this.expectToken(N.COLON), this.node(t, {
|
|
1211
|
+
kind: M.OBJECT_FIELD,
|
|
1212
1212
|
name: n,
|
|
1213
1213
|
value: this.parseValueLiteral(e)
|
|
1214
1214
|
});
|
|
1215
1215
|
}
|
|
1216
1216
|
parseDirectives(e) {
|
|
1217
1217
|
let t = [];
|
|
1218
|
-
for (; this.peek(
|
|
1218
|
+
for (; this.peek(N.AT);) t.push(this.parseDirective(e));
|
|
1219
1219
|
return t;
|
|
1220
1220
|
}
|
|
1221
1221
|
parseConstDirectives() {
|
|
@@ -1223,34 +1223,34 @@ var Nt = class {
|
|
|
1223
1223
|
}
|
|
1224
1224
|
parseDirective(e) {
|
|
1225
1225
|
let t = this._lexer.token;
|
|
1226
|
-
return this.expectToken(
|
|
1227
|
-
kind:
|
|
1226
|
+
return this.expectToken(N.AT), this.node(t, {
|
|
1227
|
+
kind: M.DIRECTIVE,
|
|
1228
1228
|
name: this.parseName(),
|
|
1229
1229
|
arguments: this.parseArguments(e)
|
|
1230
1230
|
});
|
|
1231
1231
|
}
|
|
1232
1232
|
parseTypeReference() {
|
|
1233
1233
|
let e = this._lexer.token, t;
|
|
1234
|
-
if (this.expectOptionalToken(
|
|
1234
|
+
if (this.expectOptionalToken(N.BRACKET_L)) {
|
|
1235
1235
|
let n = this.parseTypeReference();
|
|
1236
|
-
this.expectToken(
|
|
1237
|
-
kind:
|
|
1236
|
+
this.expectToken(N.BRACKET_R), t = this.node(e, {
|
|
1237
|
+
kind: M.LIST_TYPE,
|
|
1238
1238
|
type: n
|
|
1239
1239
|
});
|
|
1240
1240
|
} else t = this.parseNamedType();
|
|
1241
|
-
return this.expectOptionalToken(
|
|
1242
|
-
kind:
|
|
1241
|
+
return this.expectOptionalToken(N.BANG) ? this.node(e, {
|
|
1242
|
+
kind: M.NON_NULL_TYPE,
|
|
1243
1243
|
type: t
|
|
1244
1244
|
}) : t;
|
|
1245
1245
|
}
|
|
1246
1246
|
parseNamedType() {
|
|
1247
1247
|
return this.node(this._lexer.token, {
|
|
1248
|
-
kind:
|
|
1248
|
+
kind: M.NAMED_TYPE,
|
|
1249
1249
|
name: this.parseName()
|
|
1250
1250
|
});
|
|
1251
1251
|
}
|
|
1252
1252
|
peekDescription() {
|
|
1253
|
-
return this.peek(
|
|
1253
|
+
return this.peek(N.STRING) || this.peek(N.BLOCK_STRING);
|
|
1254
1254
|
}
|
|
1255
1255
|
parseDescription() {
|
|
1256
1256
|
if (this.peekDescription()) return this.parseStringLiteral();
|
|
@@ -1258,9 +1258,9 @@ var Nt = class {
|
|
|
1258
1258
|
parseSchemaDefinition() {
|
|
1259
1259
|
let e = this._lexer.token, t = this.parseDescription();
|
|
1260
1260
|
this.expectKeyword("schema");
|
|
1261
|
-
let n = this.parseConstDirectives(), r = this.many(
|
|
1261
|
+
let n = this.parseConstDirectives(), r = this.many(N.BRACE_L, this.parseOperationTypeDefinition, N.BRACE_R);
|
|
1262
1262
|
return this.node(e, {
|
|
1263
|
-
kind:
|
|
1263
|
+
kind: M.SCHEMA_DEFINITION,
|
|
1264
1264
|
description: t,
|
|
1265
1265
|
directives: n,
|
|
1266
1266
|
operationTypes: r
|
|
@@ -1268,10 +1268,10 @@ var Nt = class {
|
|
|
1268
1268
|
}
|
|
1269
1269
|
parseOperationTypeDefinition() {
|
|
1270
1270
|
let e = this._lexer.token, t = this.parseOperationType();
|
|
1271
|
-
this.expectToken(
|
|
1271
|
+
this.expectToken(N.COLON);
|
|
1272
1272
|
let n = this.parseNamedType();
|
|
1273
1273
|
return this.node(e, {
|
|
1274
|
-
kind:
|
|
1274
|
+
kind: M.OPERATION_TYPE_DEFINITION,
|
|
1275
1275
|
operation: t,
|
|
1276
1276
|
type: n
|
|
1277
1277
|
});
|
|
@@ -1281,7 +1281,7 @@ var Nt = class {
|
|
|
1281
1281
|
this.expectKeyword("scalar");
|
|
1282
1282
|
let n = this.parseName(), r = this.parseConstDirectives();
|
|
1283
1283
|
return this.node(e, {
|
|
1284
|
-
kind:
|
|
1284
|
+
kind: M.SCALAR_TYPE_DEFINITION,
|
|
1285
1285
|
description: t,
|
|
1286
1286
|
name: n,
|
|
1287
1287
|
directives: r
|
|
@@ -1292,7 +1292,7 @@ var Nt = class {
|
|
|
1292
1292
|
this.expectKeyword("type");
|
|
1293
1293
|
let n = this.parseName(), r = this.parseImplementsInterfaces(), i = this.parseConstDirectives(), a = this.parseFieldsDefinition();
|
|
1294
1294
|
return this.node(e, {
|
|
1295
|
-
kind:
|
|
1295
|
+
kind: M.OBJECT_TYPE_DEFINITION,
|
|
1296
1296
|
description: t,
|
|
1297
1297
|
name: n,
|
|
1298
1298
|
interfaces: r,
|
|
@@ -1301,17 +1301,17 @@ var Nt = class {
|
|
|
1301
1301
|
});
|
|
1302
1302
|
}
|
|
1303
1303
|
parseImplementsInterfaces() {
|
|
1304
|
-
return this.expectOptionalKeyword("implements") ? this.delimitedMany(
|
|
1304
|
+
return this.expectOptionalKeyword("implements") ? this.delimitedMany(N.AMP, this.parseNamedType) : [];
|
|
1305
1305
|
}
|
|
1306
1306
|
parseFieldsDefinition() {
|
|
1307
|
-
return this.optionalMany(
|
|
1307
|
+
return this.optionalMany(N.BRACE_L, this.parseFieldDefinition, N.BRACE_R);
|
|
1308
1308
|
}
|
|
1309
1309
|
parseFieldDefinition() {
|
|
1310
1310
|
let e = this._lexer.token, t = this.parseDescription(), n = this.parseName(), r = this.parseArgumentDefs();
|
|
1311
|
-
this.expectToken(
|
|
1311
|
+
this.expectToken(N.COLON);
|
|
1312
1312
|
let i = this.parseTypeReference(), a = this.parseConstDirectives();
|
|
1313
1313
|
return this.node(e, {
|
|
1314
|
-
kind:
|
|
1314
|
+
kind: M.FIELD_DEFINITION,
|
|
1315
1315
|
description: t,
|
|
1316
1316
|
name: n,
|
|
1317
1317
|
arguments: r,
|
|
@@ -1320,16 +1320,16 @@ var Nt = class {
|
|
|
1320
1320
|
});
|
|
1321
1321
|
}
|
|
1322
1322
|
parseArgumentDefs() {
|
|
1323
|
-
return this.optionalMany(
|
|
1323
|
+
return this.optionalMany(N.PAREN_L, this.parseInputValueDef, N.PAREN_R);
|
|
1324
1324
|
}
|
|
1325
1325
|
parseInputValueDef() {
|
|
1326
1326
|
let e = this._lexer.token, t = this.parseDescription(), n = this.parseName();
|
|
1327
|
-
this.expectToken(
|
|
1327
|
+
this.expectToken(N.COLON);
|
|
1328
1328
|
let r = this.parseTypeReference(), i;
|
|
1329
|
-
this.expectOptionalToken(
|
|
1329
|
+
this.expectOptionalToken(N.EQUALS) && (i = this.parseConstValueLiteral());
|
|
1330
1330
|
let a = this.parseConstDirectives();
|
|
1331
1331
|
return this.node(e, {
|
|
1332
|
-
kind:
|
|
1332
|
+
kind: M.INPUT_VALUE_DEFINITION,
|
|
1333
1333
|
description: t,
|
|
1334
1334
|
name: n,
|
|
1335
1335
|
type: r,
|
|
@@ -1342,7 +1342,7 @@ var Nt = class {
|
|
|
1342
1342
|
this.expectKeyword("interface");
|
|
1343
1343
|
let n = this.parseName(), r = this.parseImplementsInterfaces(), i = this.parseConstDirectives(), a = this.parseFieldsDefinition();
|
|
1344
1344
|
return this.node(e, {
|
|
1345
|
-
kind:
|
|
1345
|
+
kind: M.INTERFACE_TYPE_DEFINITION,
|
|
1346
1346
|
description: t,
|
|
1347
1347
|
name: n,
|
|
1348
1348
|
interfaces: r,
|
|
@@ -1355,7 +1355,7 @@ var Nt = class {
|
|
|
1355
1355
|
this.expectKeyword("union");
|
|
1356
1356
|
let n = this.parseName(), r = this.parseConstDirectives(), i = this.parseUnionMemberTypes();
|
|
1357
1357
|
return this.node(e, {
|
|
1358
|
-
kind:
|
|
1358
|
+
kind: M.UNION_TYPE_DEFINITION,
|
|
1359
1359
|
description: t,
|
|
1360
1360
|
name: n,
|
|
1361
1361
|
directives: r,
|
|
@@ -1363,14 +1363,14 @@ var Nt = class {
|
|
|
1363
1363
|
});
|
|
1364
1364
|
}
|
|
1365
1365
|
parseUnionMemberTypes() {
|
|
1366
|
-
return this.expectOptionalToken(
|
|
1366
|
+
return this.expectOptionalToken(N.EQUALS) ? this.delimitedMany(N.PIPE, this.parseNamedType) : [];
|
|
1367
1367
|
}
|
|
1368
1368
|
parseEnumTypeDefinition() {
|
|
1369
1369
|
let e = this._lexer.token, t = this.parseDescription();
|
|
1370
1370
|
this.expectKeyword("enum");
|
|
1371
1371
|
let n = this.parseName(), r = this.parseConstDirectives(), i = this.parseEnumValuesDefinition();
|
|
1372
1372
|
return this.node(e, {
|
|
1373
|
-
kind:
|
|
1373
|
+
kind: M.ENUM_TYPE_DEFINITION,
|
|
1374
1374
|
description: t,
|
|
1375
1375
|
name: n,
|
|
1376
1376
|
directives: r,
|
|
@@ -1378,19 +1378,19 @@ var Nt = class {
|
|
|
1378
1378
|
});
|
|
1379
1379
|
}
|
|
1380
1380
|
parseEnumValuesDefinition() {
|
|
1381
|
-
return this.optionalMany(
|
|
1381
|
+
return this.optionalMany(N.BRACE_L, this.parseEnumValueDefinition, N.BRACE_R);
|
|
1382
1382
|
}
|
|
1383
1383
|
parseEnumValueDefinition() {
|
|
1384
1384
|
let e = this._lexer.token, t = this.parseDescription(), n = this.parseEnumValueName(), r = this.parseConstDirectives();
|
|
1385
1385
|
return this.node(e, {
|
|
1386
|
-
kind:
|
|
1386
|
+
kind: M.ENUM_VALUE_DEFINITION,
|
|
1387
1387
|
description: t,
|
|
1388
1388
|
name: n,
|
|
1389
1389
|
directives: r
|
|
1390
1390
|
});
|
|
1391
1391
|
}
|
|
1392
1392
|
parseEnumValueName() {
|
|
1393
|
-
if (this._lexer.token.value === "true" || this._lexer.token.value === "false" || this._lexer.token.value === "null") throw j(this._lexer.source, this._lexer.token.start, `${
|
|
1393
|
+
if (this._lexer.token.value === "true" || this._lexer.token.value === "false" || this._lexer.token.value === "null") throw j(this._lexer.source, this._lexer.token.start, `${Ft(this._lexer.token)} is reserved and cannot be used for an enum value.`);
|
|
1394
1394
|
return this.parseName();
|
|
1395
1395
|
}
|
|
1396
1396
|
parseInputObjectTypeDefinition() {
|
|
@@ -1398,7 +1398,7 @@ var Nt = class {
|
|
|
1398
1398
|
this.expectKeyword("input");
|
|
1399
1399
|
let n = this.parseName(), r = this.parseConstDirectives(), i = this.parseInputFieldsDefinition();
|
|
1400
1400
|
return this.node(e, {
|
|
1401
|
-
kind:
|
|
1401
|
+
kind: M.INPUT_OBJECT_TYPE_DEFINITION,
|
|
1402
1402
|
description: t,
|
|
1403
1403
|
name: n,
|
|
1404
1404
|
directives: r,
|
|
@@ -1406,11 +1406,11 @@ var Nt = class {
|
|
|
1406
1406
|
});
|
|
1407
1407
|
}
|
|
1408
1408
|
parseInputFieldsDefinition() {
|
|
1409
|
-
return this.optionalMany(
|
|
1409
|
+
return this.optionalMany(N.BRACE_L, this.parseInputValueDef, N.BRACE_R);
|
|
1410
1410
|
}
|
|
1411
1411
|
parseTypeSystemExtension() {
|
|
1412
1412
|
let e = this._lexer.lookahead();
|
|
1413
|
-
if (e.kind ===
|
|
1413
|
+
if (e.kind === N.NAME) switch (e.value) {
|
|
1414
1414
|
case "schema": return this.parseSchemaExtension();
|
|
1415
1415
|
case "scalar": return this.parseScalarTypeExtension();
|
|
1416
1416
|
case "type": return this.parseObjectTypeExtension();
|
|
@@ -1427,10 +1427,10 @@ var Nt = class {
|
|
|
1427
1427
|
parseSchemaExtension() {
|
|
1428
1428
|
let e = this._lexer.token;
|
|
1429
1429
|
this.expectKeyword("extend"), this.expectKeyword("schema");
|
|
1430
|
-
let t = this.parseConstDirectives(), n = this.optionalMany(
|
|
1430
|
+
let t = this.parseConstDirectives(), n = this.optionalMany(N.BRACE_L, this.parseOperationTypeDefinition, N.BRACE_R);
|
|
1431
1431
|
if (t.length === 0 && n.length === 0) throw this.unexpected();
|
|
1432
1432
|
return this.node(e, {
|
|
1433
|
-
kind:
|
|
1433
|
+
kind: M.SCHEMA_EXTENSION,
|
|
1434
1434
|
directives: t,
|
|
1435
1435
|
operationTypes: n
|
|
1436
1436
|
});
|
|
@@ -1441,7 +1441,7 @@ var Nt = class {
|
|
|
1441
1441
|
let t = this.parseName(), n = this.parseConstDirectives();
|
|
1442
1442
|
if (n.length === 0) throw this.unexpected();
|
|
1443
1443
|
return this.node(e, {
|
|
1444
|
-
kind:
|
|
1444
|
+
kind: M.SCALAR_TYPE_EXTENSION,
|
|
1445
1445
|
name: t,
|
|
1446
1446
|
directives: n
|
|
1447
1447
|
});
|
|
@@ -1452,7 +1452,7 @@ var Nt = class {
|
|
|
1452
1452
|
let t = this.parseName(), n = this.parseImplementsInterfaces(), r = this.parseConstDirectives(), i = this.parseFieldsDefinition();
|
|
1453
1453
|
if (n.length === 0 && r.length === 0 && i.length === 0) throw this.unexpected();
|
|
1454
1454
|
return this.node(e, {
|
|
1455
|
-
kind:
|
|
1455
|
+
kind: M.OBJECT_TYPE_EXTENSION,
|
|
1456
1456
|
name: t,
|
|
1457
1457
|
interfaces: n,
|
|
1458
1458
|
directives: r,
|
|
@@ -1465,7 +1465,7 @@ var Nt = class {
|
|
|
1465
1465
|
let t = this.parseName(), n = this.parseImplementsInterfaces(), r = this.parseConstDirectives(), i = this.parseFieldsDefinition();
|
|
1466
1466
|
if (n.length === 0 && r.length === 0 && i.length === 0) throw this.unexpected();
|
|
1467
1467
|
return this.node(e, {
|
|
1468
|
-
kind:
|
|
1468
|
+
kind: M.INTERFACE_TYPE_EXTENSION,
|
|
1469
1469
|
name: t,
|
|
1470
1470
|
interfaces: n,
|
|
1471
1471
|
directives: r,
|
|
@@ -1478,7 +1478,7 @@ var Nt = class {
|
|
|
1478
1478
|
let t = this.parseName(), n = this.parseConstDirectives(), r = this.parseUnionMemberTypes();
|
|
1479
1479
|
if (n.length === 0 && r.length === 0) throw this.unexpected();
|
|
1480
1480
|
return this.node(e, {
|
|
1481
|
-
kind:
|
|
1481
|
+
kind: M.UNION_TYPE_EXTENSION,
|
|
1482
1482
|
name: t,
|
|
1483
1483
|
directives: n,
|
|
1484
1484
|
types: r
|
|
@@ -1490,7 +1490,7 @@ var Nt = class {
|
|
|
1490
1490
|
let t = this.parseName(), n = this.parseConstDirectives(), r = this.parseEnumValuesDefinition();
|
|
1491
1491
|
if (n.length === 0 && r.length === 0) throw this.unexpected();
|
|
1492
1492
|
return this.node(e, {
|
|
1493
|
-
kind:
|
|
1493
|
+
kind: M.ENUM_TYPE_EXTENSION,
|
|
1494
1494
|
name: t,
|
|
1495
1495
|
directives: n,
|
|
1496
1496
|
values: r
|
|
@@ -1502,7 +1502,7 @@ var Nt = class {
|
|
|
1502
1502
|
let t = this.parseName(), n = this.parseConstDirectives(), r = this.parseInputFieldsDefinition();
|
|
1503
1503
|
if (n.length === 0 && r.length === 0) throw this.unexpected();
|
|
1504
1504
|
return this.node(e, {
|
|
1505
|
-
kind:
|
|
1505
|
+
kind: M.INPUT_OBJECT_TYPE_EXTENSION,
|
|
1506
1506
|
name: t,
|
|
1507
1507
|
directives: n,
|
|
1508
1508
|
fields: r
|
|
@@ -1510,23 +1510,23 @@ var Nt = class {
|
|
|
1510
1510
|
}
|
|
1511
1511
|
parseDirectiveDefinitionExtension() {
|
|
1512
1512
|
let e = this._lexer.token;
|
|
1513
|
-
this.expectKeyword("extend"), this.expectKeyword("directive"), this.expectToken(
|
|
1513
|
+
this.expectKeyword("extend"), this.expectKeyword("directive"), this.expectToken(N.AT);
|
|
1514
1514
|
let t = this.parseName(), n = this.parseConstDirectives();
|
|
1515
1515
|
if (n.length === 0) throw this.unexpected();
|
|
1516
1516
|
return this.node(e, {
|
|
1517
|
-
kind:
|
|
1517
|
+
kind: M.DIRECTIVE_EXTENSION,
|
|
1518
1518
|
name: t,
|
|
1519
1519
|
directives: n
|
|
1520
1520
|
});
|
|
1521
1521
|
}
|
|
1522
1522
|
parseDirectiveDefinition() {
|
|
1523
1523
|
let e = this._lexer.token, t = this.parseDescription();
|
|
1524
|
-
this.expectKeyword("directive"), this.expectToken(
|
|
1524
|
+
this.expectKeyword("directive"), this.expectToken(N.AT);
|
|
1525
1525
|
let n = this.parseName(), r = this.parseArgumentDefs(), i = this._options.experimentalDirectivesOnDirectiveDefinitions ? this.parseConstDirectives() : [], a = this.expectOptionalKeyword("repeatable");
|
|
1526
1526
|
this.expectKeyword("on");
|
|
1527
1527
|
let o = this.parseDirectiveLocations();
|
|
1528
1528
|
return this.node(e, {
|
|
1529
|
-
kind:
|
|
1529
|
+
kind: M.DIRECTIVE_DEFINITION,
|
|
1530
1530
|
description: t,
|
|
1531
1531
|
name: n,
|
|
1532
1532
|
arguments: r,
|
|
@@ -1536,35 +1536,35 @@ var Nt = class {
|
|
|
1536
1536
|
});
|
|
1537
1537
|
}
|
|
1538
1538
|
parseDirectiveLocations() {
|
|
1539
|
-
return this.delimitedMany(
|
|
1539
|
+
return this.delimitedMany(N.PIPE, this.parseDirectiveLocation);
|
|
1540
1540
|
}
|
|
1541
1541
|
parseDirectiveLocation() {
|
|
1542
1542
|
let e = this._lexer.token, t = this.parseName();
|
|
1543
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
1543
|
+
if (Object.prototype.hasOwnProperty.call(Je, t.value)) return t;
|
|
1544
1544
|
throw this.unexpected(e);
|
|
1545
1545
|
}
|
|
1546
1546
|
parseSchemaCoordinate() {
|
|
1547
|
-
let e = this._lexer.token, t = this.expectOptionalToken(
|
|
1548
|
-
!t && this.expectOptionalToken(
|
|
1547
|
+
let e = this._lexer.token, t = this.expectOptionalToken(N.AT), n = this.parseName(), r;
|
|
1548
|
+
!t && this.expectOptionalToken(N.DOT) && (r = this.parseName());
|
|
1549
1549
|
let i;
|
|
1550
|
-
return (t || r) && this.expectOptionalToken(
|
|
1551
|
-
kind:
|
|
1550
|
+
return (t || r) && this.expectOptionalToken(N.PAREN_L) && (i = this.parseName(), this.expectToken(N.COLON), this.expectToken(N.PAREN_R)), t ? i ? this.node(e, {
|
|
1551
|
+
kind: M.DIRECTIVE_ARGUMENT_COORDINATE,
|
|
1552
1552
|
name: n,
|
|
1553
1553
|
argumentName: i
|
|
1554
1554
|
}) : this.node(e, {
|
|
1555
|
-
kind:
|
|
1555
|
+
kind: M.DIRECTIVE_COORDINATE,
|
|
1556
1556
|
name: n
|
|
1557
1557
|
}) : r ? i ? this.node(e, {
|
|
1558
|
-
kind:
|
|
1558
|
+
kind: M.ARGUMENT_COORDINATE,
|
|
1559
1559
|
name: n,
|
|
1560
1560
|
fieldName: r,
|
|
1561
1561
|
argumentName: i
|
|
1562
1562
|
}) : this.node(e, {
|
|
1563
|
-
kind:
|
|
1563
|
+
kind: M.MEMBER_COORDINATE,
|
|
1564
1564
|
name: n,
|
|
1565
1565
|
memberName: r
|
|
1566
1566
|
}) : this.node(e, {
|
|
1567
|
-
kind:
|
|
1567
|
+
kind: M.TYPE_COORDINATE,
|
|
1568
1568
|
name: n
|
|
1569
1569
|
});
|
|
1570
1570
|
}
|
|
@@ -1577,23 +1577,23 @@ var Nt = class {
|
|
|
1577
1577
|
expectToken(e) {
|
|
1578
1578
|
let t = this._lexer.token;
|
|
1579
1579
|
if (t.kind === e) return this.advanceLexer(), t;
|
|
1580
|
-
throw j(this._lexer.source, t.start, `Expected ${
|
|
1580
|
+
throw j(this._lexer.source, t.start, `Expected ${It(e)}, found ${Ft(t)}.`);
|
|
1581
1581
|
}
|
|
1582
1582
|
expectOptionalToken(e) {
|
|
1583
1583
|
return this._lexer.token.kind === e ? (this.advanceLexer(), !0) : !1;
|
|
1584
1584
|
}
|
|
1585
1585
|
expectKeyword(e) {
|
|
1586
1586
|
let t = this._lexer.token;
|
|
1587
|
-
if (t.kind ===
|
|
1588
|
-
else throw j(this._lexer.source, t.start, `Expected "${e}", found ${
|
|
1587
|
+
if (t.kind === N.NAME && t.value === e) this.advanceLexer();
|
|
1588
|
+
else throw j(this._lexer.source, t.start, `Expected "${e}", found ${Ft(t)}.`);
|
|
1589
1589
|
}
|
|
1590
1590
|
expectOptionalKeyword(e) {
|
|
1591
1591
|
let t = this._lexer.token;
|
|
1592
|
-
return t.kind ===
|
|
1592
|
+
return t.kind === N.NAME && t.value === e ? (this.advanceLexer(), !0) : !1;
|
|
1593
1593
|
}
|
|
1594
1594
|
unexpected(e) {
|
|
1595
1595
|
let t = e ?? this._lexer.token;
|
|
1596
|
-
return j(this._lexer.source, t.start, `Unexpected ${
|
|
1596
|
+
return j(this._lexer.source, t.start, `Unexpected ${Ft(t)}.`);
|
|
1597
1597
|
}
|
|
1598
1598
|
any(e, t, n) {
|
|
1599
1599
|
this.expectToken(e);
|
|
@@ -1629,22 +1629,22 @@ var Nt = class {
|
|
|
1629
1629
|
}
|
|
1630
1630
|
advanceLexer() {
|
|
1631
1631
|
let { maxTokens: e } = this._options, t = this._lexer.advance();
|
|
1632
|
-
if (t.kind !==
|
|
1632
|
+
if (t.kind !== N.EOF && (++this._tokenCounter, e !== void 0 && this._tokenCounter > e)) throw j(this._lexer.source, t.start, `Document contains more that ${e} tokens. Parsing aborted.`);
|
|
1633
1633
|
}
|
|
1634
1634
|
};
|
|
1635
|
-
function
|
|
1635
|
+
function Ft(e) {
|
|
1636
1636
|
let t = e.value;
|
|
1637
|
-
return
|
|
1637
|
+
return It(e.kind) + (t == null ? "" : ` "${t}"`);
|
|
1638
1638
|
}
|
|
1639
|
-
function
|
|
1640
|
-
return
|
|
1639
|
+
function It(e) {
|
|
1640
|
+
return it(e) ? `"${e}"` : e;
|
|
1641
1641
|
}
|
|
1642
1642
|
//#endregion
|
|
1643
1643
|
//#region node_modules/graphql/language/visitor.mjs
|
|
1644
|
-
var
|
|
1645
|
-
function
|
|
1644
|
+
var Lt = Object.freeze({});
|
|
1645
|
+
function Rt(e, t, n = We) {
|
|
1646
1646
|
let r = /* @__PURE__ */ new Map();
|
|
1647
|
-
for (let e of Object.values(
|
|
1647
|
+
for (let e of Object.values(M)) r.set(e, zt(t, e));
|
|
1648
1648
|
let i, a = Array.isArray(e), o = [e], s = -1, c = [], l = e, u, d, f = [], p = [];
|
|
1649
1649
|
do {
|
|
1650
1650
|
s++;
|
|
@@ -1668,7 +1668,7 @@ function Lt(e, t, n = We) {
|
|
|
1668
1668
|
}
|
|
1669
1669
|
let h;
|
|
1670
1670
|
if (!Array.isArray(l)) {
|
|
1671
|
-
if (Ke(l) || je(!1, `Invalid AST Node: ${
|
|
1671
|
+
if (Ke(l) || je(!1, `Invalid AST Node: ${Ct(l)}.`), h = (e ? r.get(l.kind)?.leave : r.get(l.kind)?.enter)?.call(t, l, u, d, f, p), h === Lt) break;
|
|
1672
1672
|
if (h === !1) {
|
|
1673
1673
|
if (!e) {
|
|
1674
1674
|
f.pop();
|
|
@@ -1690,7 +1690,7 @@ function Lt(e, t, n = We) {
|
|
|
1690
1690
|
} while (i !== void 0);
|
|
1691
1691
|
return c.length === 0 ? e : c[c.length - 1][1];
|
|
1692
1692
|
}
|
|
1693
|
-
function
|
|
1693
|
+
function zt(e, t) {
|
|
1694
1694
|
let n = e[t];
|
|
1695
1695
|
return typeof n == "object" ? n : typeof n == "function" ? {
|
|
1696
1696
|
enter: n,
|
|
@@ -1702,30 +1702,30 @@ function Rt(e, t) {
|
|
|
1702
1702
|
}
|
|
1703
1703
|
//#endregion
|
|
1704
1704
|
//#region node_modules/@apollo/client/utilities/graphql/directives.js
|
|
1705
|
-
function
|
|
1705
|
+
function Bt(e, t) {
|
|
1706
1706
|
var n = e.directives;
|
|
1707
|
-
return !n || !n.length ? !0 :
|
|
1707
|
+
return !n || !n.length ? !0 : Wt(n).every(function(e) {
|
|
1708
1708
|
var n = e.directive, r = e.ifArgument, i = !1;
|
|
1709
1709
|
return r.value.kind === "Variable" ? (i = t && t[r.value.name.value], A(i !== void 0, 105, n.name.value)) : i = r.value.value, n.name.value === "skip" ? !i : i;
|
|
1710
1710
|
});
|
|
1711
1711
|
}
|
|
1712
|
-
function
|
|
1712
|
+
function Vt(e, t, n) {
|
|
1713
1713
|
var r = new Set(e), i = r.size;
|
|
1714
|
-
return
|
|
1715
|
-
if (r.delete(e.name.value) && (!n || !r.size)) return
|
|
1714
|
+
return Rt(t, { Directive: function(e) {
|
|
1715
|
+
if (r.delete(e.name.value) && (!n || !r.size)) return Lt;
|
|
1716
1716
|
} }), n ? !r.size : r.size < i;
|
|
1717
1717
|
}
|
|
1718
|
-
function Vt(e) {
|
|
1719
|
-
return e && Bt(["client", "export"], e, !0);
|
|
1720
|
-
}
|
|
1721
1718
|
function Ht(e) {
|
|
1719
|
+
return e && Vt(["client", "export"], e, !0);
|
|
1720
|
+
}
|
|
1721
|
+
function Ut(e) {
|
|
1722
1722
|
var t = e.name.value;
|
|
1723
1723
|
return t === "skip" || t === "include";
|
|
1724
1724
|
}
|
|
1725
|
-
function
|
|
1725
|
+
function Wt(e) {
|
|
1726
1726
|
var t = [];
|
|
1727
1727
|
return e && e.length && e.forEach(function(e) {
|
|
1728
|
-
if (
|
|
1728
|
+
if (Ut(e)) {
|
|
1729
1729
|
var n = e.arguments, r = e.name.value;
|
|
1730
1730
|
A(n && n.length === 1, 106, r);
|
|
1731
1731
|
var i = n[0];
|
|
@@ -1738,7 +1738,7 @@ function Ut(e) {
|
|
|
1738
1738
|
}
|
|
1739
1739
|
}), t;
|
|
1740
1740
|
}
|
|
1741
|
-
function
|
|
1741
|
+
function Gt(e) {
|
|
1742
1742
|
var t = e.directives?.find(function(e) {
|
|
1743
1743
|
return e.name.value === "unmask";
|
|
1744
1744
|
});
|
|
@@ -1746,12 +1746,12 @@ function Wt(e) {
|
|
|
1746
1746
|
var n = t.arguments?.find(function(e) {
|
|
1747
1747
|
return e.name.value === "mode";
|
|
1748
1748
|
});
|
|
1749
|
-
return globalThis.__DEV__ !== !1 && n && (n.value.kind ===
|
|
1749
|
+
return globalThis.__DEV__ !== !1 && n && (n.value.kind === M.VARIABLE ? globalThis.__DEV__ !== !1 && A.warn(109) : n.value.kind === M.STRING ? n.value.value !== "migrate" && globalThis.__DEV__ !== !1 && A.warn(111, n.value.value) : globalThis.__DEV__ !== !1 && A.warn(110)), n && "value" in n.value && n.value.value === "migrate" ? "migrate" : "unmask";
|
|
1750
1750
|
}
|
|
1751
1751
|
//#endregion
|
|
1752
1752
|
//#region node_modules/@wry/trie/lib/index.js
|
|
1753
|
-
var
|
|
1754
|
-
constructor(e = !0, t =
|
|
1753
|
+
var Kt = () => Object.create(null), { forEach: qt, slice: Jt } = Array.prototype, { hasOwnProperty: Yt } = Object.prototype, Xt = class e {
|
|
1754
|
+
constructor(e = !0, t = Kt) {
|
|
1755
1755
|
this.weakness = e, this.makeData = t;
|
|
1756
1756
|
}
|
|
1757
1757
|
lookup() {
|
|
@@ -1759,7 +1759,7 @@ var Gt = () => Object.create(null), { forEach: Kt, slice: qt } = Array.prototype
|
|
|
1759
1759
|
}
|
|
1760
1760
|
lookupArray(e) {
|
|
1761
1761
|
let t = this;
|
|
1762
|
-
return
|
|
1762
|
+
return qt.call(e, (e) => t = t.getChildTrie(e)), Yt.call(t, "data") ? t.data : t.data = this.makeData(Jt.call(e));
|
|
1763
1763
|
}
|
|
1764
1764
|
peek() {
|
|
1765
1765
|
return this.peekArray(arguments);
|
|
@@ -1779,7 +1779,7 @@ var Gt = () => Object.create(null), { forEach: Kt, slice: qt } = Array.prototype
|
|
|
1779
1779
|
let t;
|
|
1780
1780
|
if (e.length) {
|
|
1781
1781
|
let n = e[0], r = this.mapFor(n, !1), i = r && r.get(n);
|
|
1782
|
-
i && (t = i.removeArray(
|
|
1782
|
+
i && (t = i.removeArray(Jt.call(e, 1)), !i.data && !i.weak && !(i.strong && i.strong.size) && r.delete(n));
|
|
1783
1783
|
} else t = this.data, delete this.data;
|
|
1784
1784
|
return t;
|
|
1785
1785
|
}
|
|
@@ -1788,10 +1788,10 @@ var Gt = () => Object.create(null), { forEach: Kt, slice: qt } = Array.prototype
|
|
|
1788
1788
|
return r || n.set(t, r = new e(this.weakness, this.makeData)), r;
|
|
1789
1789
|
}
|
|
1790
1790
|
mapFor(e, t) {
|
|
1791
|
-
return this.weakness &&
|
|
1791
|
+
return this.weakness && Zt(e) ? this.weak || (t ? this.weak = /* @__PURE__ */ new WeakMap() : void 0) : this.strong || (t ? this.strong = /* @__PURE__ */ new Map() : void 0);
|
|
1792
1792
|
}
|
|
1793
1793
|
};
|
|
1794
|
-
function
|
|
1794
|
+
function Zt(e) {
|
|
1795
1795
|
switch (typeof e) {
|
|
1796
1796
|
case "object": if (e === null) break;
|
|
1797
1797
|
case "function": return !0;
|
|
@@ -1800,21 +1800,21 @@ function Xt(e) {
|
|
|
1800
1800
|
}
|
|
1801
1801
|
//#endregion
|
|
1802
1802
|
//#region node_modules/@apollo/client/utilities/common/canUse.js
|
|
1803
|
-
var
|
|
1803
|
+
var Qt = k(function() {
|
|
1804
1804
|
return navigator.product;
|
|
1805
|
-
}) == "ReactNative",
|
|
1805
|
+
}) == "ReactNative", $t = typeof WeakMap == "function" && !(Qt && !global.HermesInternal), en = typeof WeakSet == "function", tn = typeof Symbol == "function" && typeof Symbol.for == "function", nn = tn && Symbol.asyncIterator, rn = typeof k(function() {
|
|
1806
1806
|
return window.document.createElement;
|
|
1807
|
-
}) == "function",
|
|
1807
|
+
}) == "function", an = k(function() {
|
|
1808
1808
|
return navigator.userAgent.indexOf("jsdom") >= 0;
|
|
1809
|
-
}) || !1,
|
|
1809
|
+
}) || !1, on = (rn || Qt) && !an;
|
|
1810
1810
|
//#endregion
|
|
1811
1811
|
//#region node_modules/@apollo/client/utilities/common/objects.js
|
|
1812
|
-
function
|
|
1812
|
+
function sn(e) {
|
|
1813
1813
|
return typeof e == "object" && !!e;
|
|
1814
1814
|
}
|
|
1815
1815
|
//#endregion
|
|
1816
1816
|
//#region node_modules/@apollo/client/utilities/graphql/fragments.js
|
|
1817
|
-
function
|
|
1817
|
+
function cn(e, t) {
|
|
1818
1818
|
var n = t, r = [];
|
|
1819
1819
|
return e.definitions.forEach(function(e) {
|
|
1820
1820
|
if (e.kind === "OperationDefinition") throw Te(112, e.operation, e.name ? ` named '${e.name.value}'` : "");
|
|
@@ -1834,14 +1834,14 @@ function sn(e, t) {
|
|
|
1834
1834
|
}
|
|
1835
1835
|
}], e.definitions, !0) });
|
|
1836
1836
|
}
|
|
1837
|
-
function
|
|
1837
|
+
function ln(e) {
|
|
1838
1838
|
e === void 0 && (e = []);
|
|
1839
1839
|
var t = {};
|
|
1840
1840
|
return e.forEach(function(e) {
|
|
1841
1841
|
t[e.name.value] = e;
|
|
1842
1842
|
}), t;
|
|
1843
1843
|
}
|
|
1844
|
-
function
|
|
1844
|
+
function un(e, t) {
|
|
1845
1845
|
switch (e.kind) {
|
|
1846
1846
|
case "InlineFragment": return e;
|
|
1847
1847
|
case "FragmentSpread":
|
|
@@ -1852,19 +1852,19 @@ function ln(e, t) {
|
|
|
1852
1852
|
default: return null;
|
|
1853
1853
|
}
|
|
1854
1854
|
}
|
|
1855
|
-
function
|
|
1855
|
+
function dn(e) {
|
|
1856
1856
|
var t = !0;
|
|
1857
|
-
return
|
|
1857
|
+
return Rt(e, { FragmentSpread: function(e) {
|
|
1858
1858
|
if (t = !!e.directives && e.directives.some(function(e) {
|
|
1859
1859
|
return e.name.value === "unmask";
|
|
1860
|
-
}), !t) return
|
|
1860
|
+
}), !t) return Lt;
|
|
1861
1861
|
} }), t;
|
|
1862
1862
|
}
|
|
1863
1863
|
//#endregion
|
|
1864
1864
|
//#region node_modules/@wry/caches/lib/strong.js
|
|
1865
|
-
function
|
|
1866
|
-
var
|
|
1867
|
-
constructor(e = Infinity, t =
|
|
1865
|
+
function fn() {}
|
|
1866
|
+
var pn = class {
|
|
1867
|
+
constructor(e = Infinity, t = fn) {
|
|
1868
1868
|
this.max = e, this.dispose = t, this.map = /* @__PURE__ */ new Map(), this.newest = null, this.oldest = null;
|
|
1869
1869
|
}
|
|
1870
1870
|
has(e) {
|
|
@@ -1904,27 +1904,27 @@ var fn = class {
|
|
|
1904
1904
|
};
|
|
1905
1905
|
//#endregion
|
|
1906
1906
|
//#region node_modules/@wry/caches/lib/weak.js
|
|
1907
|
-
function
|
|
1908
|
-
var
|
|
1907
|
+
function mn() {}
|
|
1908
|
+
var hn = mn, gn = typeof WeakRef < "u" ? WeakRef : function(e) {
|
|
1909
1909
|
return { deref: () => e };
|
|
1910
|
-
},
|
|
1910
|
+
}, _n = typeof WeakMap < "u" ? WeakMap : Map, vn = typeof FinalizationRegistry < "u" ? FinalizationRegistry : function() {
|
|
1911
1911
|
return {
|
|
1912
|
-
register:
|
|
1913
|
-
unregister:
|
|
1912
|
+
register: mn,
|
|
1913
|
+
unregister: mn
|
|
1914
1914
|
};
|
|
1915
|
-
},
|
|
1916
|
-
constructor(e = Infinity, t =
|
|
1917
|
-
this.max = e, this.dispose = t, this.map = new
|
|
1915
|
+
}, yn = 10024, bn = class {
|
|
1916
|
+
constructor(e = Infinity, t = hn) {
|
|
1917
|
+
this.max = e, this.dispose = t, this.map = new _n(), this.newest = null, this.oldest = null, this.unfinalizedNodes = /* @__PURE__ */ new Set(), this.finalizationScheduled = !1, this.size = 0, this.finalize = () => {
|
|
1918
1918
|
let e = this.unfinalizedNodes.values();
|
|
1919
|
-
for (let t = 0; t <
|
|
1919
|
+
for (let t = 0; t < yn; t++) {
|
|
1920
1920
|
let t = e.next().value;
|
|
1921
1921
|
if (!t) break;
|
|
1922
1922
|
this.unfinalizedNodes.delete(t);
|
|
1923
1923
|
let n = t.key;
|
|
1924
|
-
delete t.key, t.keyRef = new
|
|
1924
|
+
delete t.key, t.keyRef = new gn(n), this.registry.register(n, t, t);
|
|
1925
1925
|
}
|
|
1926
1926
|
this.unfinalizedNodes.size > 0 ? queueMicrotask(this.finalize) : this.finalizationScheduled = !1;
|
|
1927
|
-
}, this.registry = new
|
|
1927
|
+
}, this.registry = new vn(this.deleteNode.bind(this));
|
|
1928
1928
|
}
|
|
1929
1929
|
has(e) {
|
|
1930
1930
|
return this.map.has(e);
|
|
@@ -1965,30 +1965,30 @@ var mn = pn, hn = typeof WeakRef < "u" ? WeakRef : function(e) {
|
|
|
1965
1965
|
scheduleFinalization(e) {
|
|
1966
1966
|
this.unfinalizedNodes.add(e), this.finalizationScheduled || (this.finalizationScheduled = !0, queueMicrotask(this.finalize));
|
|
1967
1967
|
}
|
|
1968
|
-
},
|
|
1969
|
-
function
|
|
1970
|
-
e.size <= (e.max || -1) ||
|
|
1971
|
-
e.clean(),
|
|
1968
|
+
}, xn = /* @__PURE__ */ new WeakSet();
|
|
1969
|
+
function Sn(e) {
|
|
1970
|
+
e.size <= (e.max || -1) || xn.has(e) || (xn.add(e), setTimeout(function() {
|
|
1971
|
+
e.clean(), xn.delete(e);
|
|
1972
1972
|
}, 100));
|
|
1973
1973
|
}
|
|
1974
|
-
var
|
|
1975
|
-
var n = new
|
|
1974
|
+
var Cn = function(e, t) {
|
|
1975
|
+
var n = new bn(e, t);
|
|
1976
1976
|
return n.set = function(e, t) {
|
|
1977
|
-
var n =
|
|
1978
|
-
return
|
|
1977
|
+
var n = bn.prototype.set.call(this, e, t);
|
|
1978
|
+
return Sn(this), n;
|
|
1979
1979
|
}, n;
|
|
1980
|
-
},
|
|
1981
|
-
var n = new
|
|
1980
|
+
}, wn = function(e, t) {
|
|
1981
|
+
var n = new pn(e, t);
|
|
1982
1982
|
return n.set = function(e, t) {
|
|
1983
|
-
var n =
|
|
1984
|
-
return
|
|
1983
|
+
var n = pn.prototype.set.call(this, e, t);
|
|
1984
|
+
return Sn(this), n;
|
|
1985
1985
|
}, n;
|
|
1986
|
-
},
|
|
1987
|
-
function
|
|
1988
|
-
|
|
1986
|
+
}, Tn = E({}, be[Symbol.for("apollo.cacheSize")]), I = {};
|
|
1987
|
+
function En(e, t) {
|
|
1988
|
+
I[e] = t;
|
|
1989
1989
|
}
|
|
1990
|
-
var
|
|
1991
|
-
function
|
|
1990
|
+
var Dn = globalThis.__DEV__ === !1 ? void 0 : jn, On = globalThis.__DEV__ === !1 ? void 0 : Nn, kn = globalThis.__DEV__ === !1 ? void 0 : Mn;
|
|
1991
|
+
function An() {
|
|
1992
1992
|
return Object.fromEntries(Object.entries({
|
|
1993
1993
|
parser: 1e3,
|
|
1994
1994
|
canonicalStringify: 1e3,
|
|
@@ -2006,88 +2006,88 @@ function kn() {
|
|
|
2006
2006
|
"inMemoryCache.executeSubSelectedArray": 1e4
|
|
2007
2007
|
}).map(function(e) {
|
|
2008
2008
|
var t = e[0], n = e[1];
|
|
2009
|
-
return [t,
|
|
2009
|
+
return [t, Tn[t] || n];
|
|
2010
2010
|
}));
|
|
2011
2011
|
}
|
|
2012
|
-
function
|
|
2012
|
+
function jn() {
|
|
2013
2013
|
var e;
|
|
2014
2014
|
if (globalThis.__DEV__ === !1) throw Error("only supported in development mode");
|
|
2015
2015
|
return {
|
|
2016
|
-
limits:
|
|
2016
|
+
limits: An(),
|
|
2017
2017
|
sizes: E({
|
|
2018
|
-
print:
|
|
2019
|
-
parser:
|
|
2020
|
-
canonicalStringify:
|
|
2021
|
-
links:
|
|
2018
|
+
print: I.print?.call(I),
|
|
2019
|
+
parser: I.parser?.call(I),
|
|
2020
|
+
canonicalStringify: I.canonicalStringify?.call(I),
|
|
2021
|
+
links: Rn(this.link),
|
|
2022
2022
|
queryManager: {
|
|
2023
2023
|
getDocumentInfo: this.queryManager.transformCache.size,
|
|
2024
|
-
documentTransforms:
|
|
2024
|
+
documentTransforms: In(this.queryManager.documentTransform)
|
|
2025
2025
|
}
|
|
2026
2026
|
}, (e = this.cache).getMemoryInternals?.call(e))
|
|
2027
2027
|
};
|
|
2028
2028
|
}
|
|
2029
|
-
function jn() {
|
|
2030
|
-
return { cache: { fragmentQueryDocuments: R(this.getFragmentDoc) } };
|
|
2031
|
-
}
|
|
2032
2029
|
function Mn() {
|
|
2030
|
+
return { cache: { fragmentQueryDocuments: L(this.getFragmentDoc) } };
|
|
2031
|
+
}
|
|
2032
|
+
function Nn() {
|
|
2033
2033
|
var e = this.config.fragments;
|
|
2034
|
-
return E(E({},
|
|
2035
|
-
addTypenameDocumentTransform:
|
|
2034
|
+
return E(E({}, Mn.apply(this)), {
|
|
2035
|
+
addTypenameDocumentTransform: In(this.addTypenameTransform),
|
|
2036
2036
|
inMemoryCache: {
|
|
2037
|
-
executeSelectionSet:
|
|
2038
|
-
executeSubSelectedArray:
|
|
2039
|
-
maybeBroadcastWatch:
|
|
2037
|
+
executeSelectionSet: L(this.storeReader.executeSelectionSet),
|
|
2038
|
+
executeSubSelectedArray: L(this.storeReader.executeSubSelectedArray),
|
|
2039
|
+
maybeBroadcastWatch: L(this.maybeBroadcastWatch)
|
|
2040
2040
|
},
|
|
2041
2041
|
fragmentRegistry: {
|
|
2042
|
-
findFragmentSpreads:
|
|
2043
|
-
lookup:
|
|
2044
|
-
transform:
|
|
2042
|
+
findFragmentSpreads: L(e?.findFragmentSpreads),
|
|
2043
|
+
lookup: L(e?.lookup),
|
|
2044
|
+
transform: L(e?.transform)
|
|
2045
2045
|
}
|
|
2046
2046
|
});
|
|
2047
2047
|
}
|
|
2048
|
-
function
|
|
2048
|
+
function Pn(e) {
|
|
2049
2049
|
return !!e && "dirtyKey" in e;
|
|
2050
2050
|
}
|
|
2051
|
-
function
|
|
2052
|
-
return
|
|
2051
|
+
function L(e) {
|
|
2052
|
+
return Pn(e) ? e.size : void 0;
|
|
2053
2053
|
}
|
|
2054
|
-
function
|
|
2054
|
+
function Fn(e) {
|
|
2055
2055
|
return e != null;
|
|
2056
2056
|
}
|
|
2057
|
-
function
|
|
2058
|
-
return
|
|
2057
|
+
function In(e) {
|
|
2058
|
+
return Ln(e).map(function(e) {
|
|
2059
2059
|
return { cache: e };
|
|
2060
2060
|
});
|
|
2061
2061
|
}
|
|
2062
|
-
function In(e) {
|
|
2063
|
-
return e ? D(D([R(e?.performWork)], In(e?.left), !0), In(e?.right), !0).filter(Pn) : [];
|
|
2064
|
-
}
|
|
2065
2062
|
function Ln(e) {
|
|
2066
|
-
return e ? D(D([(e?.
|
|
2063
|
+
return e ? D(D([L(e?.performWork)], Ln(e?.left), !0), Ln(e?.right), !0).filter(Fn) : [];
|
|
2064
|
+
}
|
|
2065
|
+
function Rn(e) {
|
|
2066
|
+
return e ? D(D([(e?.getMemoryInternals)?.call(e)], Rn(e?.left), !0), Rn(e?.right), !0).filter(Fn) : [];
|
|
2067
2067
|
}
|
|
2068
2068
|
//#endregion
|
|
2069
2069
|
//#region node_modules/@apollo/client/utilities/common/canonicalStringify.js
|
|
2070
|
-
var
|
|
2071
|
-
return JSON.stringify(e,
|
|
2070
|
+
var zn = Object.assign(function(e) {
|
|
2071
|
+
return JSON.stringify(e, Vn);
|
|
2072
2072
|
}, { reset: function() {
|
|
2073
|
-
|
|
2073
|
+
Bn = new wn(Tn.canonicalStringify || 1e3);
|
|
2074
2074
|
} });
|
|
2075
|
-
globalThis.__DEV__ !== !1 &&
|
|
2076
|
-
return
|
|
2075
|
+
globalThis.__DEV__ !== !1 && En("canonicalStringify", function() {
|
|
2076
|
+
return Bn.size;
|
|
2077
2077
|
});
|
|
2078
|
-
var
|
|
2079
|
-
|
|
2080
|
-
function
|
|
2078
|
+
var Bn;
|
|
2079
|
+
zn.reset();
|
|
2080
|
+
function Vn(e, t) {
|
|
2081
2081
|
if (t && typeof t == "object") {
|
|
2082
2082
|
var n = Object.getPrototypeOf(t);
|
|
2083
2083
|
if (n === Object.prototype || n === null) {
|
|
2084
2084
|
var r = Object.keys(t);
|
|
2085
|
-
if (r.every(
|
|
2086
|
-
var i = JSON.stringify(r), a =
|
|
2085
|
+
if (r.every(Hn)) return t;
|
|
2086
|
+
var i = JSON.stringify(r), a = Bn.get(i);
|
|
2087
2087
|
if (!a) {
|
|
2088
2088
|
r.sort();
|
|
2089
2089
|
var o = JSON.stringify(r);
|
|
2090
|
-
a =
|
|
2090
|
+
a = Bn.get(o) || r, Bn.set(i, a), Bn.set(o, a);
|
|
2091
2091
|
}
|
|
2092
2092
|
var s = Object.create(n);
|
|
2093
2093
|
return a.forEach(function(e) {
|
|
@@ -2097,81 +2097,81 @@ function Bn(e, t) {
|
|
|
2097
2097
|
}
|
|
2098
2098
|
return t;
|
|
2099
2099
|
}
|
|
2100
|
-
function
|
|
2100
|
+
function Hn(e, t, n) {
|
|
2101
2101
|
return t === 0 || n[t - 1] <= e;
|
|
2102
2102
|
}
|
|
2103
2103
|
//#endregion
|
|
2104
2104
|
//#region node_modules/@apollo/client/utilities/graphql/storeUtils.js
|
|
2105
|
-
function Hn(e) {
|
|
2106
|
-
return { __ref: String(e) };
|
|
2107
|
-
}
|
|
2108
2105
|
function Un(e) {
|
|
2109
|
-
return
|
|
2106
|
+
return { __ref: String(e) };
|
|
2110
2107
|
}
|
|
2111
2108
|
function Wn(e) {
|
|
2112
|
-
return
|
|
2109
|
+
return !!(e && typeof e == "object" && typeof e.__ref == "string");
|
|
2113
2110
|
}
|
|
2114
2111
|
function Gn(e) {
|
|
2115
|
-
return e.kind === "
|
|
2112
|
+
return sn(e) && e.kind === "Document" && Array.isArray(e.definitions);
|
|
2116
2113
|
}
|
|
2117
2114
|
function Kn(e) {
|
|
2118
|
-
return e.kind === "
|
|
2115
|
+
return e.kind === "StringValue";
|
|
2119
2116
|
}
|
|
2120
2117
|
function qn(e) {
|
|
2121
|
-
return e.kind === "
|
|
2118
|
+
return e.kind === "BooleanValue";
|
|
2122
2119
|
}
|
|
2123
2120
|
function Jn(e) {
|
|
2124
|
-
return e.kind === "
|
|
2121
|
+
return e.kind === "IntValue";
|
|
2125
2122
|
}
|
|
2126
2123
|
function Yn(e) {
|
|
2127
|
-
return e.kind === "
|
|
2124
|
+
return e.kind === "FloatValue";
|
|
2128
2125
|
}
|
|
2129
2126
|
function Xn(e) {
|
|
2130
|
-
return e.kind === "
|
|
2127
|
+
return e.kind === "Variable";
|
|
2131
2128
|
}
|
|
2132
2129
|
function Zn(e) {
|
|
2133
|
-
return e.kind === "
|
|
2130
|
+
return e.kind === "ObjectValue";
|
|
2134
2131
|
}
|
|
2135
2132
|
function Qn(e) {
|
|
2136
|
-
return e.kind === "
|
|
2133
|
+
return e.kind === "ListValue";
|
|
2137
2134
|
}
|
|
2138
2135
|
function $n(e) {
|
|
2136
|
+
return e.kind === "EnumValue";
|
|
2137
|
+
}
|
|
2138
|
+
function er(e) {
|
|
2139
2139
|
return e.kind === "NullValue";
|
|
2140
2140
|
}
|
|
2141
|
-
function
|
|
2142
|
-
if (
|
|
2143
|
-
else if (
|
|
2144
|
-
else if (
|
|
2141
|
+
function tr(e, t, n, r) {
|
|
2142
|
+
if (Jn(n) || Yn(n)) e[t.value] = Number(n.value);
|
|
2143
|
+
else if (qn(n) || Kn(n)) e[t.value] = n.value;
|
|
2144
|
+
else if (Zn(n)) {
|
|
2145
2145
|
var i = {};
|
|
2146
2146
|
n.fields.map(function(e) {
|
|
2147
|
-
return
|
|
2147
|
+
return tr(i, e.name, e.value, r);
|
|
2148
2148
|
}), e[t.value] = i;
|
|
2149
|
-
} else if (
|
|
2149
|
+
} else if (Xn(n)) {
|
|
2150
2150
|
var a = (r || {})[n.name.value];
|
|
2151
2151
|
e[t.value] = a;
|
|
2152
|
-
} else if (
|
|
2152
|
+
} else if (Qn(n)) e[t.value] = n.values.map(function(e) {
|
|
2153
2153
|
var n = {};
|
|
2154
|
-
return
|
|
2154
|
+
return tr(n, t, e, r), n[t.value];
|
|
2155
2155
|
});
|
|
2156
|
-
else if (
|
|
2157
|
-
else if (
|
|
2156
|
+
else if ($n(n)) e[t.value] = n.value;
|
|
2157
|
+
else if (er(n)) e[t.value] = null;
|
|
2158
2158
|
else throw Te(123, t.value, n.kind);
|
|
2159
2159
|
}
|
|
2160
|
-
function
|
|
2160
|
+
function nr(e, t) {
|
|
2161
2161
|
var n = null;
|
|
2162
2162
|
e.directives && (n = {}, e.directives.forEach(function(e) {
|
|
2163
2163
|
n[e.name.value] = {}, e.arguments && e.arguments.forEach(function(r) {
|
|
2164
2164
|
var i = r.name, a = r.value;
|
|
2165
|
-
return
|
|
2165
|
+
return tr(n[e.name.value], i, a, t);
|
|
2166
2166
|
});
|
|
2167
2167
|
}));
|
|
2168
2168
|
var r = null;
|
|
2169
2169
|
return e.arguments && e.arguments.length && (r = {}, e.arguments.forEach(function(e) {
|
|
2170
2170
|
var n = e.name, i = e.value;
|
|
2171
|
-
return
|
|
2172
|
-
})),
|
|
2171
|
+
return tr(r, n, i, t);
|
|
2172
|
+
})), ar(e.name.value, r, n);
|
|
2173
2173
|
}
|
|
2174
|
-
var
|
|
2174
|
+
var rr = [
|
|
2175
2175
|
"connection",
|
|
2176
2176
|
"include",
|
|
2177
2177
|
"skip",
|
|
@@ -2179,62 +2179,62 @@ var nr = [
|
|
|
2179
2179
|
"rest",
|
|
2180
2180
|
"export",
|
|
2181
2181
|
"nonreactive"
|
|
2182
|
-
],
|
|
2182
|
+
], ir = zn, ar = Object.assign(function(e, t, n) {
|
|
2183
2183
|
if (t && n && n.connection && n.connection.key) if (n.connection.filter && n.connection.filter.length > 0) {
|
|
2184
2184
|
var r = n.connection.filter ? n.connection.filter : [];
|
|
2185
2185
|
r.sort();
|
|
2186
2186
|
var i = {};
|
|
2187
2187
|
return r.forEach(function(e) {
|
|
2188
2188
|
i[e] = t[e];
|
|
2189
|
-
}), `${n.connection.key}(${
|
|
2189
|
+
}), `${n.connection.key}(${ir(i)})`;
|
|
2190
2190
|
} else return n.connection.key;
|
|
2191
2191
|
var a = e;
|
|
2192
2192
|
if (t) {
|
|
2193
|
-
var o =
|
|
2193
|
+
var o = ir(t);
|
|
2194
2194
|
a += `(${o})`;
|
|
2195
2195
|
}
|
|
2196
2196
|
return n && Object.keys(n).forEach(function(e) {
|
|
2197
|
-
|
|
2197
|
+
rr.indexOf(e) === -1 && (n[e] && Object.keys(n[e]).length ? a += `@${e}(${ir(n[e])})` : a += `@${e}`);
|
|
2198
2198
|
}), a;
|
|
2199
2199
|
}, { setStringify: function(e) {
|
|
2200
|
-
var t =
|
|
2201
|
-
return
|
|
2200
|
+
var t = ir;
|
|
2201
|
+
return ir = e, t;
|
|
2202
2202
|
} });
|
|
2203
|
-
function
|
|
2203
|
+
function or(e, t) {
|
|
2204
2204
|
if (e.arguments && e.arguments.length) {
|
|
2205
2205
|
var n = {};
|
|
2206
2206
|
return e.arguments.forEach(function(e) {
|
|
2207
2207
|
var r = e.name, i = e.value;
|
|
2208
|
-
return
|
|
2208
|
+
return tr(n, r, i, t);
|
|
2209
2209
|
}), n;
|
|
2210
2210
|
}
|
|
2211
2211
|
return null;
|
|
2212
2212
|
}
|
|
2213
|
-
function
|
|
2213
|
+
function sr(e) {
|
|
2214
2214
|
return e.alias ? e.alias.value : e.name.value;
|
|
2215
2215
|
}
|
|
2216
|
-
function
|
|
2216
|
+
function cr(e, t, n) {
|
|
2217
2217
|
for (var r, i = 0, a = t.selections; i < a.length; i++) {
|
|
2218
2218
|
var o = a[i];
|
|
2219
|
-
if (
|
|
2220
|
-
if (o.name.value === "__typename") return e[
|
|
2219
|
+
if (lr(o)) {
|
|
2220
|
+
if (o.name.value === "__typename") return e[sr(o)];
|
|
2221
2221
|
} else r ? r.push(o) : r = [o];
|
|
2222
2222
|
}
|
|
2223
2223
|
if (typeof e.__typename == "string") return e.__typename;
|
|
2224
2224
|
if (r) for (var s = 0, c = r; s < c.length; s++) {
|
|
2225
|
-
var o = c[s], l =
|
|
2225
|
+
var o = c[s], l = cr(e, un(o, n).selectionSet, n);
|
|
2226
2226
|
if (typeof l == "string") return l;
|
|
2227
2227
|
}
|
|
2228
2228
|
}
|
|
2229
|
-
function
|
|
2229
|
+
function lr(e) {
|
|
2230
2230
|
return e.kind === "Field";
|
|
2231
2231
|
}
|
|
2232
|
-
function
|
|
2232
|
+
function ur(e) {
|
|
2233
2233
|
return e.kind === "InlineFragment";
|
|
2234
2234
|
}
|
|
2235
2235
|
//#endregion
|
|
2236
2236
|
//#region node_modules/@apollo/client/utilities/graphql/getFromAST.js
|
|
2237
|
-
function
|
|
2237
|
+
function dr(e) {
|
|
2238
2238
|
A(e && e.kind === "Document", 115);
|
|
2239
2239
|
var t = e.definitions.filter(function(e) {
|
|
2240
2240
|
return e.kind !== "FragmentDefinition";
|
|
@@ -2244,34 +2244,34 @@ function ur(e) {
|
|
|
2244
2244
|
});
|
|
2245
2245
|
return A(t.length <= 1, 117, t.length), e;
|
|
2246
2246
|
}
|
|
2247
|
-
function
|
|
2248
|
-
return
|
|
2247
|
+
function fr(e) {
|
|
2248
|
+
return dr(e), e.definitions.filter(function(e) {
|
|
2249
2249
|
return e.kind === "OperationDefinition";
|
|
2250
2250
|
})[0];
|
|
2251
2251
|
}
|
|
2252
|
-
function
|
|
2252
|
+
function pr(e) {
|
|
2253
2253
|
return e.definitions.filter(function(e) {
|
|
2254
2254
|
return e.kind === "OperationDefinition" && !!e.name;
|
|
2255
2255
|
}).map(function(e) {
|
|
2256
2256
|
return e.name.value;
|
|
2257
2257
|
})[0] || null;
|
|
2258
2258
|
}
|
|
2259
|
-
function
|
|
2259
|
+
function mr(e) {
|
|
2260
2260
|
return e.definitions.filter(function(e) {
|
|
2261
2261
|
return e.kind === "FragmentDefinition";
|
|
2262
2262
|
});
|
|
2263
2263
|
}
|
|
2264
|
-
function
|
|
2265
|
-
var t =
|
|
2264
|
+
function hr(e) {
|
|
2265
|
+
var t = fr(e);
|
|
2266
2266
|
return A(t && t.operation === "query", 118), t;
|
|
2267
2267
|
}
|
|
2268
|
-
function
|
|
2268
|
+
function gr(e) {
|
|
2269
2269
|
A(e.kind === "Document", 119), A(e.definitions.length <= 1, 120);
|
|
2270
2270
|
var t = e.definitions[0];
|
|
2271
2271
|
return A(t.kind === "FragmentDefinition", 121), t;
|
|
2272
2272
|
}
|
|
2273
|
-
function
|
|
2274
|
-
|
|
2273
|
+
function _r(e) {
|
|
2274
|
+
dr(e);
|
|
2275
2275
|
for (var t, n = 0, r = e.definitions; n < r.length; n++) {
|
|
2276
2276
|
var i = r[n];
|
|
2277
2277
|
if (i.kind === "OperationDefinition") {
|
|
@@ -2283,79 +2283,79 @@ function gr(e) {
|
|
|
2283
2283
|
if (t) return t;
|
|
2284
2284
|
throw Te(122);
|
|
2285
2285
|
}
|
|
2286
|
-
function
|
|
2286
|
+
function vr(e) {
|
|
2287
2287
|
var t = Object.create(null), n = e && e.variableDefinitions;
|
|
2288
2288
|
return n && n.length && n.forEach(function(e) {
|
|
2289
|
-
e.defaultValue &&
|
|
2289
|
+
e.defaultValue && tr(t, e.variable.name, e.defaultValue);
|
|
2290
2290
|
}), t;
|
|
2291
2291
|
}
|
|
2292
2292
|
//#endregion
|
|
2293
2293
|
//#region node_modules/@wry/context/lib/slot.js
|
|
2294
|
-
var
|
|
2294
|
+
var R = null, yr = {}, br = 1, xr = () => class {
|
|
2295
2295
|
constructor() {
|
|
2296
2296
|
this.id = [
|
|
2297
2297
|
"slot",
|
|
2298
|
-
|
|
2298
|
+
br++,
|
|
2299
2299
|
Date.now(),
|
|
2300
2300
|
Math.random().toString(36).slice(2)
|
|
2301
2301
|
].join(":");
|
|
2302
2302
|
}
|
|
2303
2303
|
hasValue() {
|
|
2304
|
-
for (let e =
|
|
2304
|
+
for (let e = R; e; e = e.parent) if (this.id in e.slots) {
|
|
2305
2305
|
let t = e.slots[this.id];
|
|
2306
|
-
if (t ===
|
|
2307
|
-
return e !==
|
|
2306
|
+
if (t === yr) break;
|
|
2307
|
+
return e !== R && (R.slots[this.id] = t), !0;
|
|
2308
2308
|
}
|
|
2309
|
-
return
|
|
2309
|
+
return R && (R.slots[this.id] = yr), !1;
|
|
2310
2310
|
}
|
|
2311
2311
|
getValue() {
|
|
2312
|
-
if (this.hasValue()) return
|
|
2312
|
+
if (this.hasValue()) return R.slots[this.id];
|
|
2313
2313
|
}
|
|
2314
2314
|
withValue(e, t, n, r) {
|
|
2315
2315
|
let i = {
|
|
2316
2316
|
__proto__: null,
|
|
2317
2317
|
[this.id]: e
|
|
2318
|
-
}, a =
|
|
2319
|
-
|
|
2318
|
+
}, a = R;
|
|
2319
|
+
R = {
|
|
2320
2320
|
parent: a,
|
|
2321
2321
|
slots: i
|
|
2322
2322
|
};
|
|
2323
2323
|
try {
|
|
2324
2324
|
return t.apply(r, n);
|
|
2325
2325
|
} finally {
|
|
2326
|
-
|
|
2326
|
+
R = a;
|
|
2327
2327
|
}
|
|
2328
2328
|
}
|
|
2329
2329
|
static bind(e) {
|
|
2330
|
-
let t =
|
|
2330
|
+
let t = R;
|
|
2331
2331
|
return function() {
|
|
2332
|
-
let n =
|
|
2332
|
+
let n = R;
|
|
2333
2333
|
try {
|
|
2334
|
-
return
|
|
2334
|
+
return R = t, e.apply(this, arguments);
|
|
2335
2335
|
} finally {
|
|
2336
|
-
|
|
2336
|
+
R = n;
|
|
2337
2337
|
}
|
|
2338
2338
|
};
|
|
2339
2339
|
}
|
|
2340
2340
|
static noContext(e, t, n) {
|
|
2341
|
-
if (
|
|
2342
|
-
let r =
|
|
2341
|
+
if (R) {
|
|
2342
|
+
let r = R;
|
|
2343
2343
|
try {
|
|
2344
|
-
return
|
|
2344
|
+
return R = null, e.apply(n, t);
|
|
2345
2345
|
} finally {
|
|
2346
|
-
|
|
2346
|
+
R = r;
|
|
2347
2347
|
}
|
|
2348
2348
|
} else return e.apply(n, t);
|
|
2349
2349
|
}
|
|
2350
2350
|
};
|
|
2351
|
-
function
|
|
2351
|
+
function Sr(e) {
|
|
2352
2352
|
try {
|
|
2353
2353
|
return e();
|
|
2354
2354
|
} catch {}
|
|
2355
2355
|
}
|
|
2356
|
-
var
|
|
2356
|
+
var Cr = "@wry/context:Slot", wr = Sr(() => globalThis) || Sr(() => global) || Object.create(null), Tr = wr[Cr] || Array[Cr] || (function(e) {
|
|
2357
2357
|
try {
|
|
2358
|
-
Object.defineProperty(
|
|
2358
|
+
Object.defineProperty(wr, Cr, {
|
|
2359
2359
|
value: e,
|
|
2360
2360
|
enumerable: !1,
|
|
2361
2361
|
writable: !1,
|
|
@@ -2364,76 +2364,76 @@ var Sr = "@wry/context:Slot", Cr = xr(() => globalThis) || xr(() => global) || O
|
|
|
2364
2364
|
} finally {
|
|
2365
2365
|
return e;
|
|
2366
2366
|
}
|
|
2367
|
-
})(
|
|
2367
|
+
})(xr()), { bind: Er, noContext: Dr } = Tr, Or = new Tr(), { hasOwnProperty: kr } = Object.prototype, Ar = Array.from || function(e) {
|
|
2368
2368
|
let t = [];
|
|
2369
2369
|
return e.forEach((e) => t.push(e)), t;
|
|
2370
2370
|
};
|
|
2371
|
-
function
|
|
2371
|
+
function jr(e) {
|
|
2372
2372
|
let { unsubscribe: t } = e;
|
|
2373
2373
|
typeof t == "function" && (e.unsubscribe = void 0, t());
|
|
2374
2374
|
}
|
|
2375
2375
|
//#endregion
|
|
2376
2376
|
//#region node_modules/optimism/lib/entry.js
|
|
2377
|
-
var
|
|
2378
|
-
function
|
|
2377
|
+
var Mr = [], Nr = 100;
|
|
2378
|
+
function Pr(e, t) {
|
|
2379
2379
|
if (!e) throw Error(t || "assertion failure");
|
|
2380
2380
|
}
|
|
2381
|
-
function
|
|
2381
|
+
function Fr(e, t) {
|
|
2382
2382
|
let n = e.length;
|
|
2383
2383
|
return n > 0 && n === t.length && e[n - 1] === t[n - 1];
|
|
2384
2384
|
}
|
|
2385
|
-
function
|
|
2385
|
+
function Ir(e) {
|
|
2386
2386
|
switch (e.length) {
|
|
2387
2387
|
case 0: throw Error("unknown value");
|
|
2388
2388
|
case 1: return e[0];
|
|
2389
2389
|
case 2: throw e[1];
|
|
2390
2390
|
}
|
|
2391
2391
|
}
|
|
2392
|
-
function
|
|
2392
|
+
function Lr(e) {
|
|
2393
2393
|
return e.slice(0);
|
|
2394
2394
|
}
|
|
2395
|
-
var
|
|
2395
|
+
var Rr = class e {
|
|
2396
2396
|
constructor(t) {
|
|
2397
2397
|
this.fn = t, this.parents = /* @__PURE__ */ new Set(), this.childValues = /* @__PURE__ */ new Map(), this.dirtyChildren = null, this.dirty = !0, this.recomputing = !1, this.value = [], this.deps = null, ++e.count;
|
|
2398
2398
|
}
|
|
2399
2399
|
peek() {
|
|
2400
|
-
if (this.value.length === 1 && !
|
|
2400
|
+
if (this.value.length === 1 && !z(this)) return zr(this), this.value[0];
|
|
2401
2401
|
}
|
|
2402
2402
|
recompute(e) {
|
|
2403
|
-
return
|
|
2403
|
+
return Pr(!this.recomputing, "already recomputing"), zr(this), z(this) ? Br(this, e) : Ir(this.value);
|
|
2404
2404
|
}
|
|
2405
2405
|
setDirty() {
|
|
2406
|
-
this.dirty || (this.dirty = !0,
|
|
2406
|
+
this.dirty || (this.dirty = !0, Ur(this), jr(this));
|
|
2407
2407
|
}
|
|
2408
2408
|
dispose() {
|
|
2409
|
-
this.setDirty(),
|
|
2410
|
-
e.setDirty(),
|
|
2409
|
+
this.setDirty(), Yr(this), Gr(this, (e, t) => {
|
|
2410
|
+
e.setDirty(), Xr(e, this);
|
|
2411
2411
|
});
|
|
2412
2412
|
}
|
|
2413
2413
|
forget() {
|
|
2414
2414
|
this.dispose();
|
|
2415
2415
|
}
|
|
2416
2416
|
dependOn(e) {
|
|
2417
|
-
e.add(this), this.deps || (this.deps =
|
|
2417
|
+
e.add(this), this.deps || (this.deps = Mr.pop() || /* @__PURE__ */ new Set()), this.deps.add(e);
|
|
2418
2418
|
}
|
|
2419
2419
|
forgetDeps() {
|
|
2420
|
-
this.deps && (
|
|
2420
|
+
this.deps && (Ar(this.deps).forEach((e) => e.delete(this)), this.deps.clear(), Mr.push(this.deps), this.deps = null);
|
|
2421
2421
|
}
|
|
2422
2422
|
};
|
|
2423
|
-
|
|
2424
|
-
function
|
|
2425
|
-
let t =
|
|
2426
|
-
if (t) return e.parents.add(t), t.childValues.has(e) || t.childValues.set(e, []),
|
|
2427
|
-
}
|
|
2428
|
-
function zr(e, t) {
|
|
2429
|
-
return Jr(e), Dr.withValue(e, Br, [e, t]), Xr(e, t) && Vr(e), Fr(e.value);
|
|
2423
|
+
Rr.count = 0;
|
|
2424
|
+
function zr(e) {
|
|
2425
|
+
let t = Or.getValue();
|
|
2426
|
+
if (t) return e.parents.add(t), t.childValues.has(e) || t.childValues.set(e, []), z(e) ? Kr(t, e) : qr(t, e), t;
|
|
2430
2427
|
}
|
|
2431
2428
|
function Br(e, t) {
|
|
2429
|
+
return Yr(e), Or.withValue(e, Vr, [e, t]), Zr(e, t) && Hr(e), Ir(e.value);
|
|
2430
|
+
}
|
|
2431
|
+
function Vr(e, t) {
|
|
2432
2432
|
e.recomputing = !0;
|
|
2433
2433
|
let { normalizeResult: n } = e, r;
|
|
2434
|
-
n && e.value.length === 1 && (r =
|
|
2434
|
+
n && e.value.length === 1 && (r = Lr(e.value)), e.value.length = 0;
|
|
2435
2435
|
try {
|
|
2436
|
-
if (e.value[0] = e.fn.apply(null, t), n && r && !
|
|
2436
|
+
if (e.value[0] = e.fn.apply(null, t), n && r && !Fr(r, e.value)) try {
|
|
2437
2437
|
e.value[0] = n(e.value[0], r[0]);
|
|
2438
2438
|
} catch {}
|
|
2439
2439
|
} catch (t) {
|
|
@@ -2441,52 +2441,52 @@ function Br(e, t) {
|
|
|
2441
2441
|
}
|
|
2442
2442
|
e.recomputing = !1;
|
|
2443
2443
|
}
|
|
2444
|
-
function
|
|
2444
|
+
function z(e) {
|
|
2445
2445
|
return e.dirty || !!(e.dirtyChildren && e.dirtyChildren.size);
|
|
2446
2446
|
}
|
|
2447
|
-
function Vr(e) {
|
|
2448
|
-
e.dirty = !1, !B(e) && Ur(e);
|
|
2449
|
-
}
|
|
2450
2447
|
function Hr(e) {
|
|
2451
|
-
|
|
2448
|
+
e.dirty = !1, !z(e) && Wr(e);
|
|
2452
2449
|
}
|
|
2453
2450
|
function Ur(e) {
|
|
2454
|
-
|
|
2451
|
+
Gr(e, Kr);
|
|
2455
2452
|
}
|
|
2456
|
-
function Wr(e
|
|
2453
|
+
function Wr(e) {
|
|
2454
|
+
Gr(e, qr);
|
|
2455
|
+
}
|
|
2456
|
+
function Gr(e, t) {
|
|
2457
2457
|
let n = e.parents.size;
|
|
2458
2458
|
if (n) {
|
|
2459
|
-
let r =
|
|
2459
|
+
let r = Ar(e.parents);
|
|
2460
2460
|
for (let i = 0; i < n; ++i) t(r[i], e);
|
|
2461
2461
|
}
|
|
2462
2462
|
}
|
|
2463
|
-
function
|
|
2464
|
-
|
|
2465
|
-
let n = !
|
|
2466
|
-
if (!e.dirtyChildren) e.dirtyChildren =
|
|
2463
|
+
function Kr(e, t) {
|
|
2464
|
+
Pr(e.childValues.has(t)), Pr(z(t));
|
|
2465
|
+
let n = !z(e);
|
|
2466
|
+
if (!e.dirtyChildren) e.dirtyChildren = Mr.pop() || /* @__PURE__ */ new Set();
|
|
2467
2467
|
else if (e.dirtyChildren.has(t)) return;
|
|
2468
|
-
e.dirtyChildren.add(t), n &&
|
|
2468
|
+
e.dirtyChildren.add(t), n && Ur(e);
|
|
2469
2469
|
}
|
|
2470
|
-
function
|
|
2471
|
-
|
|
2470
|
+
function qr(e, t) {
|
|
2471
|
+
Pr(e.childValues.has(t)), Pr(!z(t));
|
|
2472
2472
|
let n = e.childValues.get(t);
|
|
2473
|
-
n.length === 0 ? e.childValues.set(t,
|
|
2473
|
+
n.length === 0 ? e.childValues.set(t, Lr(t.value)) : Fr(n, t.value) || e.setDirty(), Jr(e, t), !z(e) && Wr(e);
|
|
2474
2474
|
}
|
|
2475
|
-
function
|
|
2475
|
+
function Jr(e, t) {
|
|
2476
2476
|
let n = e.dirtyChildren;
|
|
2477
|
-
n && (n.delete(t), n.size === 0 && (
|
|
2477
|
+
n && (n.delete(t), n.size === 0 && (Mr.length < Nr && Mr.push(n), e.dirtyChildren = null));
|
|
2478
2478
|
}
|
|
2479
|
-
function
|
|
2479
|
+
function Yr(e) {
|
|
2480
2480
|
e.childValues.size > 0 && e.childValues.forEach((t, n) => {
|
|
2481
|
-
|
|
2482
|
-
}), e.forgetDeps(),
|
|
2483
|
-
}
|
|
2484
|
-
function Yr(e, t) {
|
|
2485
|
-
t.parents.delete(e), e.childValues.delete(t), qr(e, t);
|
|
2481
|
+
Xr(e, n);
|
|
2482
|
+
}), e.forgetDeps(), Pr(e.dirtyChildren === null);
|
|
2486
2483
|
}
|
|
2487
2484
|
function Xr(e, t) {
|
|
2485
|
+
t.parents.delete(e), e.childValues.delete(t), Jr(e, t);
|
|
2486
|
+
}
|
|
2487
|
+
function Zr(e, t) {
|
|
2488
2488
|
if (typeof e.subscribe == "function") try {
|
|
2489
|
-
|
|
2489
|
+
jr(e), e.unsubscribe = e.subscribe.apply(null, t);
|
|
2490
2490
|
} catch {
|
|
2491
2491
|
return e.setDirty(), !1;
|
|
2492
2492
|
}
|
|
@@ -2494,43 +2494,43 @@ function Xr(e, t) {
|
|
|
2494
2494
|
}
|
|
2495
2495
|
//#endregion
|
|
2496
2496
|
//#region node_modules/optimism/lib/dep.js
|
|
2497
|
-
var
|
|
2497
|
+
var Qr = {
|
|
2498
2498
|
setDirty: !0,
|
|
2499
2499
|
dispose: !0,
|
|
2500
2500
|
forget: !0
|
|
2501
2501
|
};
|
|
2502
|
-
function
|
|
2502
|
+
function $r(e) {
|
|
2503
2503
|
let t = /* @__PURE__ */ new Map(), n = e && e.subscribe;
|
|
2504
2504
|
function r(e) {
|
|
2505
|
-
let r =
|
|
2505
|
+
let r = Or.getValue();
|
|
2506
2506
|
if (r) {
|
|
2507
2507
|
let i = t.get(e);
|
|
2508
|
-
i || t.set(e, i = /* @__PURE__ */ new Set()), r.dependOn(i), typeof n == "function" && (
|
|
2508
|
+
i || t.set(e, i = /* @__PURE__ */ new Set()), r.dependOn(i), typeof n == "function" && (jr(i), i.unsubscribe = n(e));
|
|
2509
2509
|
}
|
|
2510
2510
|
}
|
|
2511
2511
|
return r.dirty = function(e, n) {
|
|
2512
2512
|
let r = t.get(e);
|
|
2513
2513
|
if (r) {
|
|
2514
|
-
let i = n &&
|
|
2515
|
-
|
|
2514
|
+
let i = n && kr.call(Qr, n) ? n : "setDirty";
|
|
2515
|
+
Ar(r).forEach((e) => e[i]()), t.delete(e), jr(r);
|
|
2516
2516
|
}
|
|
2517
2517
|
}, r;
|
|
2518
2518
|
}
|
|
2519
2519
|
//#endregion
|
|
2520
2520
|
//#region node_modules/optimism/lib/index.js
|
|
2521
|
-
var
|
|
2522
|
-
function
|
|
2523
|
-
return (
|
|
2521
|
+
var ei;
|
|
2522
|
+
function ti(...e) {
|
|
2523
|
+
return (ei || (ei = new Xt(typeof WeakMap == "function"))).lookupArray(e);
|
|
2524
2524
|
}
|
|
2525
|
-
var
|
|
2526
|
-
function
|
|
2525
|
+
var ni = /* @__PURE__ */ new Set();
|
|
2526
|
+
function ri(e, { max: t = 2 ** 16, keyArgs: n, makeCacheKey: r = ti, normalizeResult: i, subscribe: a, cache: o = pn } = Object.create(null)) {
|
|
2527
2527
|
let s = typeof o == "function" ? new o(t, (e) => e.dispose()) : o, c = function() {
|
|
2528
2528
|
let t = r.apply(null, n ? n.apply(null, arguments) : arguments);
|
|
2529
2529
|
if (t === void 0) return e.apply(null, arguments);
|
|
2530
2530
|
let o = s.get(t);
|
|
2531
|
-
o || (s.set(t, o = new
|
|
2531
|
+
o || (s.set(t, o = new Rr(e)), o.normalizeResult = i, o.subscribe = a, o.forget = () => s.delete(t));
|
|
2532
2532
|
let c = o.recompute(Array.prototype.slice.call(arguments));
|
|
2533
|
-
return s.set(t, o),
|
|
2533
|
+
return s.set(t, o), ni.add(s), Or.hasValue() || (ni.forEach((e) => e.clean()), ni.clear()), c;
|
|
2534
2534
|
};
|
|
2535
2535
|
Object.defineProperty(c, "size", {
|
|
2536
2536
|
get: () => s.size,
|
|
@@ -2569,16 +2569,16 @@ function ni(e, { max: t = 2 ** 16, keyArgs: n, makeCacheKey: r = ei, normalizeRe
|
|
|
2569
2569
|
}
|
|
2570
2570
|
//#endregion
|
|
2571
2571
|
//#region node_modules/@apollo/client/utilities/common/arrays.js
|
|
2572
|
-
var
|
|
2573
|
-
function
|
|
2572
|
+
var ii = Array.isArray;
|
|
2573
|
+
function ai(e) {
|
|
2574
2574
|
return Array.isArray(e) && e.length > 0;
|
|
2575
2575
|
}
|
|
2576
2576
|
//#endregion
|
|
2577
2577
|
//#region node_modules/zen-observable-ts/module.js
|
|
2578
|
-
function
|
|
2578
|
+
function oi(e, t) {
|
|
2579
2579
|
var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
2580
2580
|
if (n) return (n = n.call(e)).next.bind(n);
|
|
2581
|
-
if (Array.isArray(e) || (n =
|
|
2581
|
+
if (Array.isArray(e) || (n = si(e)) || t && e && typeof e.length == "number") {
|
|
2582
2582
|
n && (e = n);
|
|
2583
2583
|
var r = 0;
|
|
2584
2584
|
return function() {
|
|
@@ -2590,53 +2590,53 @@ function ai(e, t) {
|
|
|
2590
2590
|
}
|
|
2591
2591
|
throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
2592
2592
|
}
|
|
2593
|
-
function
|
|
2593
|
+
function si(e, t) {
|
|
2594
2594
|
if (e) {
|
|
2595
|
-
if (typeof e == "string") return
|
|
2595
|
+
if (typeof e == "string") return ci(e, t);
|
|
2596
2596
|
var n = Object.prototype.toString.call(e).slice(8, -1);
|
|
2597
2597
|
if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set") return Array.from(e);
|
|
2598
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return
|
|
2598
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return ci(e, t);
|
|
2599
2599
|
}
|
|
2600
2600
|
}
|
|
2601
|
-
function
|
|
2601
|
+
function ci(e, t) {
|
|
2602
2602
|
(t == null || t > e.length) && (t = e.length);
|
|
2603
2603
|
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
2604
2604
|
return r;
|
|
2605
2605
|
}
|
|
2606
|
-
function
|
|
2606
|
+
function li(e, t) {
|
|
2607
2607
|
for (var n = 0; n < t.length; n++) {
|
|
2608
2608
|
var r = t[n];
|
|
2609
2609
|
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r);
|
|
2610
2610
|
}
|
|
2611
2611
|
}
|
|
2612
|
-
function
|
|
2613
|
-
return t &&
|
|
2612
|
+
function ui(e, t, n) {
|
|
2613
|
+
return t && li(e.prototype, t), n && li(e, n), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
2614
2614
|
}
|
|
2615
|
-
var
|
|
2615
|
+
var di = function() {
|
|
2616
2616
|
return typeof Symbol == "function";
|
|
2617
|
-
}, di = function(e) {
|
|
2618
|
-
return ui() && !!Symbol[e];
|
|
2619
2617
|
}, fi = function(e) {
|
|
2620
|
-
return di(
|
|
2618
|
+
return di() && !!Symbol[e];
|
|
2619
|
+
}, pi = function(e) {
|
|
2620
|
+
return fi(e) ? Symbol[e] : "@@" + e;
|
|
2621
2621
|
};
|
|
2622
|
-
|
|
2623
|
-
var
|
|
2624
|
-
function
|
|
2622
|
+
di() && !fi("observable") && (Symbol.observable = Symbol("observable"));
|
|
2623
|
+
var mi = pi("iterator"), hi = pi("observable"), gi = pi("species");
|
|
2624
|
+
function _i(e, t) {
|
|
2625
2625
|
var n = e[t];
|
|
2626
2626
|
if (n != null) {
|
|
2627
2627
|
if (typeof n != "function") throw TypeError(n + " is not a function");
|
|
2628
2628
|
return n;
|
|
2629
2629
|
}
|
|
2630
2630
|
}
|
|
2631
|
-
function
|
|
2631
|
+
function vi(e) {
|
|
2632
2632
|
var t = e.constructor;
|
|
2633
|
-
return t !== void 0 && (t = t[
|
|
2633
|
+
return t !== void 0 && (t = t[gi], t === null && (t = void 0)), t === void 0 ? Oi : t;
|
|
2634
2634
|
}
|
|
2635
|
-
function
|
|
2635
|
+
function yi(e) {
|
|
2636
2636
|
return e instanceof Oi;
|
|
2637
2637
|
}
|
|
2638
|
-
function
|
|
2639
|
-
|
|
2638
|
+
function B(e) {
|
|
2639
|
+
B.log ? B.log(e) : setTimeout(function() {
|
|
2640
2640
|
throw e;
|
|
2641
2641
|
});
|
|
2642
2642
|
}
|
|
@@ -2645,7 +2645,7 @@ function bi(e) {
|
|
|
2645
2645
|
try {
|
|
2646
2646
|
e();
|
|
2647
2647
|
} catch (e) {
|
|
2648
|
-
|
|
2648
|
+
B(e);
|
|
2649
2649
|
}
|
|
2650
2650
|
});
|
|
2651
2651
|
}
|
|
@@ -2654,11 +2654,11 @@ function xi(e) {
|
|
|
2654
2654
|
if (t !== void 0 && (e._cleanup = void 0, t)) try {
|
|
2655
2655
|
if (typeof t == "function") t();
|
|
2656
2656
|
else {
|
|
2657
|
-
var n =
|
|
2657
|
+
var n = _i(t, "unsubscribe");
|
|
2658
2658
|
n && n.call(t);
|
|
2659
2659
|
}
|
|
2660
2660
|
} catch (e) {
|
|
2661
|
-
|
|
2661
|
+
B(e);
|
|
2662
2662
|
}
|
|
2663
2663
|
}
|
|
2664
2664
|
function Si(e) {
|
|
@@ -2675,7 +2675,7 @@ function wi(e, t, n) {
|
|
|
2675
2675
|
e._state = "running";
|
|
2676
2676
|
var r = e._observer;
|
|
2677
2677
|
try {
|
|
2678
|
-
var i =
|
|
2678
|
+
var i = _i(r, t);
|
|
2679
2679
|
switch (t) {
|
|
2680
2680
|
case "next":
|
|
2681
2681
|
i && i.call(r, n);
|
|
@@ -2689,7 +2689,7 @@ function wi(e, t, n) {
|
|
|
2689
2689
|
break;
|
|
2690
2690
|
}
|
|
2691
2691
|
} catch (e) {
|
|
2692
|
-
|
|
2692
|
+
B(e);
|
|
2693
2693
|
}
|
|
2694
2694
|
e._state === "closed" ? xi(e) : e._state === "running" && (e._state = "ready");
|
|
2695
2695
|
}
|
|
@@ -2728,7 +2728,7 @@ var Ei = /* @__PURE__ */ function() {
|
|
|
2728
2728
|
var t = e.prototype;
|
|
2729
2729
|
return t.unsubscribe = function() {
|
|
2730
2730
|
this._state !== "closed" && (Si(this), xi(this));
|
|
2731
|
-
},
|
|
2731
|
+
}, ui(e, [{
|
|
2732
2732
|
key: "closed",
|
|
2733
2733
|
get: function() {
|
|
2734
2734
|
return this._state === "closed";
|
|
@@ -2745,7 +2745,7 @@ var Ei = /* @__PURE__ */ function() {
|
|
|
2745
2745
|
Ti(this._subscription, "error", e);
|
|
2746
2746
|
}, t.complete = function() {
|
|
2747
2747
|
Ti(this._subscription, "complete");
|
|
2748
|
-
},
|
|
2748
|
+
}, ui(e, [{
|
|
2749
2749
|
key: "closed",
|
|
2750
2750
|
get: function() {
|
|
2751
2751
|
return this._subscription._state === "closed";
|
|
@@ -2789,7 +2789,7 @@ var Ei = /* @__PURE__ */ function() {
|
|
|
2789
2789
|
}, t.map = function(e) {
|
|
2790
2790
|
var t = this;
|
|
2791
2791
|
if (typeof e != "function") throw TypeError(e + " is not a function");
|
|
2792
|
-
return new (
|
|
2792
|
+
return new (vi(this))(function(n) {
|
|
2793
2793
|
return t.subscribe({
|
|
2794
2794
|
next: function(t) {
|
|
2795
2795
|
try {
|
|
@@ -2810,7 +2810,7 @@ var Ei = /* @__PURE__ */ function() {
|
|
|
2810
2810
|
}, t.filter = function(e) {
|
|
2811
2811
|
var t = this;
|
|
2812
2812
|
if (typeof e != "function") throw TypeError(e + " is not a function");
|
|
2813
|
-
return new (
|
|
2813
|
+
return new (vi(this))(function(n) {
|
|
2814
2814
|
return t.subscribe({
|
|
2815
2815
|
next: function(t) {
|
|
2816
2816
|
try {
|
|
@@ -2831,7 +2831,7 @@ var Ei = /* @__PURE__ */ function() {
|
|
|
2831
2831
|
}, t.reduce = function(e) {
|
|
2832
2832
|
var t = this;
|
|
2833
2833
|
if (typeof e != "function") throw TypeError(e + " is not a function");
|
|
2834
|
-
var n =
|
|
2834
|
+
var n = vi(this), r = arguments.length > 1, i = !1, a = arguments[1];
|
|
2835
2835
|
return new n(function(n) {
|
|
2836
2836
|
return t.subscribe({
|
|
2837
2837
|
next: function(t) {
|
|
@@ -2853,7 +2853,7 @@ var Ei = /* @__PURE__ */ function() {
|
|
|
2853
2853
|
});
|
|
2854
2854
|
});
|
|
2855
2855
|
}, t.concat = function() {
|
|
2856
|
-
var e = this, t = [...arguments], n =
|
|
2856
|
+
var e = this, t = [...arguments], n = vi(this);
|
|
2857
2857
|
return new n(function(r) {
|
|
2858
2858
|
var i, a = 0;
|
|
2859
2859
|
function o(e) {
|
|
@@ -2876,7 +2876,7 @@ var Ei = /* @__PURE__ */ function() {
|
|
|
2876
2876
|
}, t.flatMap = function(e) {
|
|
2877
2877
|
var t = this;
|
|
2878
2878
|
if (typeof e != "function") throw TypeError(e + " is not a function");
|
|
2879
|
-
var n =
|
|
2879
|
+
var n = vi(this);
|
|
2880
2880
|
return new n(function(r) {
|
|
2881
2881
|
var i = [], a = t.subscribe({
|
|
2882
2882
|
next: function(t) {
|
|
@@ -2915,23 +2915,23 @@ var Ei = /* @__PURE__ */ function() {
|
|
|
2915
2915
|
}), a.unsubscribe();
|
|
2916
2916
|
};
|
|
2917
2917
|
});
|
|
2918
|
-
}, t[
|
|
2918
|
+
}, t[hi] = function() {
|
|
2919
2919
|
return this;
|
|
2920
2920
|
}, e.from = function(t) {
|
|
2921
2921
|
var n = typeof this == "function" ? this : e;
|
|
2922
2922
|
if (t == null) throw TypeError(t + " is not an object");
|
|
2923
|
-
var r =
|
|
2923
|
+
var r = _i(t, hi);
|
|
2924
2924
|
if (r) {
|
|
2925
2925
|
var i = r.call(t);
|
|
2926
2926
|
if (Object(i) !== i) throw TypeError(i + " is not an object");
|
|
2927
|
-
return
|
|
2927
|
+
return yi(i) && i.constructor === n ? i : new n(function(e) {
|
|
2928
2928
|
return i.subscribe(e);
|
|
2929
2929
|
});
|
|
2930
2930
|
}
|
|
2931
|
-
if (
|
|
2931
|
+
if (fi("iterator") && (r = _i(t, mi), r)) return new n(function(e) {
|
|
2932
2932
|
bi(function() {
|
|
2933
2933
|
if (!e.closed) {
|
|
2934
|
-
for (var n =
|
|
2934
|
+
for (var n = oi(r.call(t)), i; !(i = n()).done;) {
|
|
2935
2935
|
var a = i.value;
|
|
2936
2936
|
if (e.next(a), e.closed) return;
|
|
2937
2937
|
}
|
|
@@ -2958,17 +2958,17 @@ var Ei = /* @__PURE__ */ function() {
|
|
|
2958
2958
|
}
|
|
2959
2959
|
});
|
|
2960
2960
|
});
|
|
2961
|
-
},
|
|
2962
|
-
key:
|
|
2961
|
+
}, ui(e, null, [{
|
|
2962
|
+
key: gi,
|
|
2963
2963
|
get: function() {
|
|
2964
2964
|
return this;
|
|
2965
2965
|
}
|
|
2966
2966
|
}]), e;
|
|
2967
2967
|
}();
|
|
2968
|
-
|
|
2968
|
+
di() && Object.defineProperty(Oi, Symbol("extensions"), {
|
|
2969
2969
|
value: {
|
|
2970
|
-
symbol:
|
|
2971
|
-
hostReportError:
|
|
2970
|
+
symbol: hi,
|
|
2971
|
+
hostReportError: B
|
|
2972
2972
|
},
|
|
2973
2973
|
configurable: !0
|
|
2974
2974
|
});
|
|
@@ -3005,8 +3005,8 @@ function Mi(e, t) {
|
|
|
3005
3005
|
function Ni(e) {
|
|
3006
3006
|
var t = new Set([e]);
|
|
3007
3007
|
return t.forEach(function(e) {
|
|
3008
|
-
|
|
3009
|
-
|
|
3008
|
+
sn(e) && Pi(e) === e && Object.getOwnPropertyNames(e).forEach(function(n) {
|
|
3009
|
+
sn(e[n]) && t.add(e[n]);
|
|
3010
3010
|
});
|
|
3011
3011
|
}), e;
|
|
3012
3012
|
}
|
|
@@ -3038,7 +3038,7 @@ function Li(e) {
|
|
|
3038
3038
|
function t(t) {
|
|
3039
3039
|
Object.defineProperty(e, t, { value: Oi });
|
|
3040
3040
|
}
|
|
3041
|
-
return
|
|
3041
|
+
return tn && Symbol.species && t(Symbol.species), t("@@species"), e;
|
|
3042
3042
|
}
|
|
3043
3043
|
//#endregion
|
|
3044
3044
|
//#region node_modules/@apollo/client/utilities/common/compact.js
|
|
@@ -3058,7 +3058,7 @@ function zi(e, t) {
|
|
|
3058
3058
|
}
|
|
3059
3059
|
//#endregion
|
|
3060
3060
|
//#region node_modules/@apollo/client/utilities/deprecation/index.js
|
|
3061
|
-
var Bi = Symbol.for("apollo.deprecations"), Vi = Symbol.for("apollo.deprecations.slot"), Hi = be, Ui = Hi[Vi] ?? (Hi[Vi] = new
|
|
3061
|
+
var Bi = Symbol.for("apollo.deprecations"), Vi = Symbol.for("apollo.deprecations.slot"), Hi = be, Ui = Hi[Vi] ?? (Hi[Vi] = new Tr());
|
|
3062
3062
|
function Wi(e) {
|
|
3063
3063
|
return Hi[Bi] || (Ui.getValue() || []).includes(e);
|
|
3064
3064
|
}
|
|
@@ -3076,7 +3076,7 @@ function H(e, t) {
|
|
|
3076
3076
|
}
|
|
3077
3077
|
//#endregion
|
|
3078
3078
|
//#region node_modules/@apollo/client/react/context/ApolloContext.js
|
|
3079
|
-
var U = /* @__PURE__ */ l(Ae(), 1), Ki =
|
|
3079
|
+
var U = /* @__PURE__ */ l(Ae(), 1), Ki = tn ? Symbol.for("__APOLLO_CONTEXT__") : "__APOLLO_CONTEXT__";
|
|
3080
3080
|
function qi() {
|
|
3081
3081
|
A("createContext" in U, 69);
|
|
3082
3082
|
var e = U.createContext[Ki];
|
|
@@ -3102,7 +3102,7 @@ var Yi = !1, Xi = U.useSyncExternalStore || (function(e, t, n) {
|
|
|
3102
3102
|
value: r,
|
|
3103
3103
|
getSnapshot: t
|
|
3104
3104
|
} }), a = i[0].inst, o = i[1];
|
|
3105
|
-
return
|
|
3105
|
+
return on ? U.useLayoutEffect(function() {
|
|
3106
3106
|
Object.assign(a, {
|
|
3107
3107
|
value: r,
|
|
3108
3108
|
getSnapshot: t
|
|
@@ -3226,7 +3226,7 @@ function ua(e) {
|
|
|
3226
3226
|
var da = function(e) {
|
|
3227
3227
|
var t = D(D(D([], e.graphQLErrors, !0), e.clientErrors, !0), e.protocolErrors, !0);
|
|
3228
3228
|
return e.networkError && t.push(e.networkError), t.map(function(e) {
|
|
3229
|
-
return
|
|
3229
|
+
return sn(e) && e.message || "Error message not found.";
|
|
3230
3230
|
}).join("\n");
|
|
3231
3231
|
}, fa = function(e) {
|
|
3232
3232
|
ce(t, e);
|
|
@@ -3242,8 +3242,8 @@ var da = function(e) {
|
|
|
3242
3242
|
//#region node_modules/@apollo/client/core/equalByQuery.js
|
|
3243
3243
|
function pa(e, t, n, r) {
|
|
3244
3244
|
var i = t.data, a = le(t, ["data"]), o = n.data;
|
|
3245
|
-
return W(a, le(n, ["data"])) && ma(
|
|
3246
|
-
fragmentMap:
|
|
3245
|
+
return W(a, le(n, ["data"])) && ma(_r(e).selectionSet, i, o, {
|
|
3246
|
+
fragmentMap: ln(mr(e)),
|
|
3247
3247
|
variables: r
|
|
3248
3248
|
});
|
|
3249
3249
|
}
|
|
@@ -3251,9 +3251,9 @@ function ma(e, t, n, r) {
|
|
|
3251
3251
|
if (t === n) return !0;
|
|
3252
3252
|
var i = /* @__PURE__ */ new Set();
|
|
3253
3253
|
return e.selections.every(function(e) {
|
|
3254
|
-
if (i.has(e) || (i.add(e), !
|
|
3255
|
-
if (
|
|
3256
|
-
var a =
|
|
3254
|
+
if (i.has(e) || (i.add(e), !Bt(e, r.variables)) || ha(e)) return !0;
|
|
3255
|
+
if (lr(e)) {
|
|
3256
|
+
var a = sr(e), o = t && t[a], s = n && n[a], c = e.selectionSet;
|
|
3257
3257
|
if (!c) return W(o, s);
|
|
3258
3258
|
var l = Array.isArray(o), u = Array.isArray(s);
|
|
3259
3259
|
if (l !== u) return !1;
|
|
@@ -3265,7 +3265,7 @@ function ma(e, t, n, r) {
|
|
|
3265
3265
|
}
|
|
3266
3266
|
return ma(c, o, s, r);
|
|
3267
3267
|
} else {
|
|
3268
|
-
var p =
|
|
3268
|
+
var p = un(e, r.fragmentMap);
|
|
3269
3269
|
if (p) return ha(p) ? !0 : ma(p.selectionSet, t, n, r);
|
|
3270
3270
|
}
|
|
3271
3271
|
});
|
|
@@ -3311,7 +3311,7 @@ var va = Object.assign, ya = Object.hasOwnProperty, ba = function(e) {
|
|
|
3311
3311
|
initialFetchPolicy: m,
|
|
3312
3312
|
fetchPolicy: f
|
|
3313
3313
|
}), o.queryId = i.queryId || r.generateQueryId();
|
|
3314
|
-
var h =
|
|
3314
|
+
var h = fr(o.query);
|
|
3315
3315
|
return o.queryName = h && h.name && h.name.value, o;
|
|
3316
3316
|
}
|
|
3317
3317
|
return Object.defineProperty(t.prototype, "query", {
|
|
@@ -3383,7 +3383,7 @@ var va = Object.assign, ya = Object.hasOwnProperty, ba = function(e) {
|
|
|
3383
3383
|
}, t.prototype.refetch = function(e) {
|
|
3384
3384
|
var t = { pollInterval: 0 };
|
|
3385
3385
|
if (this.options.fetchPolicy === "no-cache" ? t.fetchPolicy = "no-cache" : t.fetchPolicy = "network-only", globalThis.__DEV__ !== !1 && e && ya.call(e, "variables")) {
|
|
3386
|
-
var n =
|
|
3386
|
+
var n = hr(this.query), r = n.variableDefinitions;
|
|
3387
3387
|
(!r || !r.some(function(e) {
|
|
3388
3388
|
return e.variable.name.value === "variables";
|
|
3389
3389
|
})) && globalThis.__DEV__ !== !1 && A.warn(28, e, n.name?.value || n);
|
|
@@ -3617,7 +3617,7 @@ var va = Object.assign, ya = Object.hasOwnProperty, ba = function(e) {
|
|
|
3617
3617
|
return this.nextFetchPolicy = n, typeof this.nextFetchPolicy == "function" ? this.nextFetchPolicy(e, r) : t;
|
|
3618
3618
|
}
|
|
3619
3619
|
}) : this.reobserve();
|
|
3620
|
-
}, t.inactiveOnCreation = new
|
|
3620
|
+
}, t.inactiveOnCreation = new Tr(), t;
|
|
3621
3621
|
}(Oi);
|
|
3622
3622
|
Li(ba);
|
|
3623
3623
|
function xa(e) {
|
|
@@ -3661,7 +3661,7 @@ function ja(e) {
|
|
|
3661
3661
|
function Ma(e) {
|
|
3662
3662
|
var t = Oa(e);
|
|
3663
3663
|
if (!wa.has(t)) {
|
|
3664
|
-
var n =
|
|
3664
|
+
var n = Nt(e, {
|
|
3665
3665
|
experimentalFragmentVariables: Da,
|
|
3666
3666
|
allowLegacyFragmentVariables: Da
|
|
3667
3667
|
});
|
|
@@ -3725,7 +3725,7 @@ function za(e) {
|
|
|
3725
3725
|
function Ba(e) {
|
|
3726
3726
|
H("parser", function() {
|
|
3727
3727
|
globalThis.__DEV__ !== !1 && A.warn(93);
|
|
3728
|
-
}), q || (q = new
|
|
3728
|
+
}), q || (q = new Cn(Tn.parser || 1e3));
|
|
3729
3729
|
var t = q.get(e);
|
|
3730
3730
|
if (t) return t;
|
|
3731
3731
|
var n, r, i;
|
|
@@ -3762,7 +3762,7 @@ function Ba(e) {
|
|
|
3762
3762
|
}
|
|
3763
3763
|
Ba.resetCache = function() {
|
|
3764
3764
|
q = void 0;
|
|
3765
|
-
}, globalThis.__DEV__ !== !1 &&
|
|
3765
|
+
}, globalThis.__DEV__ !== !1 && En("parser", function() {
|
|
3766
3766
|
return q ? q.size : 0;
|
|
3767
3767
|
});
|
|
3768
3768
|
function Va(e, t) {
|
|
@@ -3771,7 +3771,7 @@ function Va(e, t) {
|
|
|
3771
3771
|
}
|
|
3772
3772
|
//#endregion
|
|
3773
3773
|
//#region node_modules/@apollo/client/react/hooks/internal/useIsomorphicLayoutEffect.js
|
|
3774
|
-
var Ha =
|
|
3774
|
+
var Ha = rn ? U.useLayoutEffect : U.useEffect;
|
|
3775
3775
|
//#endregion
|
|
3776
3776
|
//#region node_modules/@apollo/client/react/hooks/internal/useWarnRemovedOption.js
|
|
3777
3777
|
function J(e, t, n, r) {
|
|
@@ -3926,7 +3926,7 @@ function no(e, t, n, r) {
|
|
|
3926
3926
|
}
|
|
3927
3927
|
function ro(e, t, n, r, i, a, o) {
|
|
3928
3928
|
var s = t.current;
|
|
3929
|
-
s && s.data && (t.previousData = s.data), !e.error &&
|
|
3929
|
+
s && s.data && (t.previousData = s.data), !e.error && ai(e.errors) && (e.error = new fa({ graphQLErrors: e.errors })), t.current = co(lo(e, n, i), t.previousData, n, r), a(), io(e, s?.networkStatus, o);
|
|
3930
3930
|
}
|
|
3931
3931
|
function io(e, t, n) {
|
|
3932
3932
|
if (!e.loading) {
|
|
@@ -3945,7 +3945,7 @@ function oo(e, t) {
|
|
|
3945
3945
|
return e?.fetchPolicy || t?.watchQuery?.fetchPolicy || "cache-first";
|
|
3946
3946
|
}
|
|
3947
3947
|
function so(e) {
|
|
3948
|
-
return
|
|
3948
|
+
return ai(e.errors) ? new fa({ graphQLErrors: e.errors }) : e.error;
|
|
3949
3949
|
}
|
|
3950
3950
|
function co(e, t, n, r) {
|
|
3951
3951
|
var i = e.data;
|
|
@@ -4280,50 +4280,66 @@ function Ao() {
|
|
|
4280
4280
|
}
|
|
4281
4281
|
//#endregion
|
|
4282
4282
|
//#region lib/api.ts
|
|
4283
|
-
var jo = "http://localhost:3001",
|
|
4284
|
-
function
|
|
4285
|
-
let e =
|
|
4283
|
+
var jo = "https://api.wexio.io", Mo = "http://localhost:3001", No = "https://local.api.wexio.io:3443";
|
|
4284
|
+
function Po() {
|
|
4285
|
+
let e = Fo("NEXT_PUBLIC_WEXIO_API_URL");
|
|
4286
4286
|
if (e) return e;
|
|
4287
4287
|
if (typeof window < "u") {
|
|
4288
4288
|
let { protocol: e, hostname: t } = window.location;
|
|
4289
|
-
if (e === "https:" && /^local\.[a-z-]+\.wexio\.io$/i.test(t)) return
|
|
4289
|
+
if (e === "https:" && /^local\.[a-z-]+\.wexio\.io$/i.test(t)) return No;
|
|
4290
4290
|
if (e === "https:" && /\.wexio\.io$/i.test(t)) {
|
|
4291
4291
|
let e = t.replace(/^(app|templates)\./i, "api.").replace(/\.(app|templates)\./i, ".api.");
|
|
4292
|
-
return e === t ?
|
|
4292
|
+
return e === t ? jo : `https://${e}`;
|
|
4293
4293
|
}
|
|
4294
|
+
if (t === "localhost" || t === "127.0.0.1" || t === "[::1]") return Mo;
|
|
4294
4295
|
}
|
|
4295
4296
|
return jo;
|
|
4296
4297
|
}
|
|
4297
|
-
|
|
4298
|
-
|
|
4298
|
+
function Fo(e) {
|
|
4299
|
+
try {
|
|
4300
|
+
if (e === "NEXT_PUBLIC_WEXIO_API_URL") {
|
|
4301
|
+
let e = process.env.NEXT_PUBLIC_WEXIO_API_URL;
|
|
4302
|
+
return typeof e == "string" ? e : "";
|
|
4303
|
+
}
|
|
4304
|
+
let t = process.env.NEXT_PUBLIC_WEXIO_DEMO_PK;
|
|
4305
|
+
return typeof t == "string" ? t : "";
|
|
4306
|
+
} catch {
|
|
4307
|
+
return "";
|
|
4308
|
+
}
|
|
4309
|
+
}
|
|
4310
|
+
function Io() {
|
|
4311
|
+
return Fo("NEXT_PUBLIC_WEXIO_DEMO_PK");
|
|
4312
|
+
}
|
|
4313
|
+
var Lo = /* @__PURE__ */ new Map();
|
|
4314
|
+
function Ro(e, t) {
|
|
4299
4315
|
if (!e) return Promise.resolve(null);
|
|
4300
|
-
let n = `${e}|${t ?? ""}`, r =
|
|
4316
|
+
let n = `${e}|${t ?? ""}`, r = Lo.get(n);
|
|
4301
4317
|
if (r) return r;
|
|
4302
4318
|
let i = (async () => {
|
|
4303
4319
|
try {
|
|
4304
|
-
let n = new URL(`${
|
|
4320
|
+
let n = new URL(`${Po()}/api/web/config/${encodeURIComponent(e)}`);
|
|
4305
4321
|
t && n.searchParams.set("locale", t);
|
|
4306
4322
|
let r = await fetch(n.toString(), {
|
|
4307
4323
|
method: "GET",
|
|
4308
4324
|
headers: { "x-web-public-key": e },
|
|
4309
4325
|
credentials: "omit"
|
|
4310
4326
|
});
|
|
4311
|
-
return r.ok ?
|
|
4327
|
+
return r.ok ? Uo(await r.json()) : null;
|
|
4312
4328
|
} catch {
|
|
4313
4329
|
return null;
|
|
4314
4330
|
}
|
|
4315
4331
|
})();
|
|
4316
|
-
return
|
|
4332
|
+
return Lo.set(n, i.then((e) => (e === null && Lo.delete(n), e))), Lo.get(n) ?? i;
|
|
4317
4333
|
}
|
|
4318
|
-
var
|
|
4334
|
+
var zo = [
|
|
4319
4335
|
"NAME",
|
|
4320
4336
|
"EMAIL",
|
|
4321
4337
|
"PHONE",
|
|
4322
4338
|
"CUSTOM_TEXT"
|
|
4323
|
-
],
|
|
4324
|
-
function
|
|
4339
|
+
], Bo = ["HINT", "SYSTEM"];
|
|
4340
|
+
function Vo(e) {
|
|
4325
4341
|
if (e === null || !e) return null;
|
|
4326
|
-
let t = Array.isArray(e.commands) ? e.commands.filter((e) => typeof e == "string" && e.length > 0).slice(0, 20) : [], n = Array.isArray(e.messages) ? e.messages.filter((e) => !!e && typeof e.text == "string" && e.text.length > 0 && typeof e.kind == "string" &&
|
|
4342
|
+
let t = Array.isArray(e.commands) ? e.commands.filter((e) => typeof e == "string" && e.length > 0).slice(0, 20) : [], n = Array.isArray(e.messages) ? e.messages.filter((e) => !!e && typeof e.text == "string" && e.text.length > 0 && typeof e.kind == "string" && Bo.includes(e.kind)).map((e) => ({
|
|
4327
4343
|
kind: e.kind,
|
|
4328
4344
|
text: e.text
|
|
4329
4345
|
})).slice(0, 10) : [];
|
|
@@ -4339,9 +4355,9 @@ function Ro(e) {
|
|
|
4339
4355
|
profile: Array.isArray(e.profile?.fields) && e.profile.fields.length > 0 ? { fields: e.profile.fields.filter((e) => typeof e == "string") } : null
|
|
4340
4356
|
};
|
|
4341
4357
|
}
|
|
4342
|
-
function
|
|
4358
|
+
function Ho(e) {
|
|
4343
4359
|
if (!e) return null;
|
|
4344
|
-
let t = (Array.isArray(e.fields) ? e.fields : []).filter((e) => e &&
|
|
4360
|
+
let t = (Array.isArray(e.fields) ? e.fields : []).filter((e) => e && zo.includes(e.kind)).map((e) => ({
|
|
4345
4361
|
kind: e.kind,
|
|
4346
4362
|
key: String(e.key ?? ""),
|
|
4347
4363
|
label: String(e.label ?? ""),
|
|
@@ -4352,7 +4368,7 @@ function zo(e) {
|
|
|
4352
4368
|
fields: t
|
|
4353
4369
|
};
|
|
4354
4370
|
}
|
|
4355
|
-
function
|
|
4371
|
+
function Uo(e) {
|
|
4356
4372
|
return {
|
|
4357
4373
|
status: e.status,
|
|
4358
4374
|
defaultTab: e.defaultTab?.toLowerCase() ?? "home",
|
|
@@ -4377,7 +4393,7 @@ function Bo(e) {
|
|
|
4377
4393
|
},
|
|
4378
4394
|
theme: e.theme ?? null,
|
|
4379
4395
|
themeMode: "auto",
|
|
4380
|
-
prechatForm:
|
|
4396
|
+
prechatForm: Ho(e.prechatForm),
|
|
4381
4397
|
operatorAvatars: Array.isArray(e.operatorAvatars) ? e.operatorAvatars.filter((e) => !!e?.src).map((e) => ({
|
|
4382
4398
|
src: e.src,
|
|
4383
4399
|
alt: e.alt ?? ""
|
|
@@ -4398,21 +4414,21 @@ function Bo(e) {
|
|
|
4398
4414
|
outboundSoundId: e.sounds.outboundSoundId ?? null,
|
|
4399
4415
|
volume: typeof e.sounds.volume == "number" ? Math.max(0, Math.min(1, e.sounds.volume)) : .5
|
|
4400
4416
|
} : null,
|
|
4401
|
-
messenger:
|
|
4417
|
+
messenger: Vo(e.messenger),
|
|
4402
4418
|
botProtection: e.botProtection?.turnstile?.enabled && e.botProtection.turnstile.siteKey ? { turnstile: {
|
|
4403
4419
|
enabled: !0,
|
|
4404
4420
|
siteKey: e.botProtection.turnstile.siteKey
|
|
4405
4421
|
} } : null
|
|
4406
4422
|
};
|
|
4407
4423
|
}
|
|
4408
|
-
var
|
|
4409
|
-
function
|
|
4424
|
+
var Wo = /* @__PURE__ */ new Map();
|
|
4425
|
+
function Go(e) {
|
|
4410
4426
|
if (!e) return Promise.resolve(null);
|
|
4411
|
-
let t =
|
|
4427
|
+
let t = Wo.get(e);
|
|
4412
4428
|
if (t) return t;
|
|
4413
4429
|
let n = (async () => {
|
|
4414
4430
|
try {
|
|
4415
|
-
let t = new URL(`${
|
|
4431
|
+
let t = new URL(`${Po()}/api/web/config/${encodeURIComponent(e)}`);
|
|
4416
4432
|
t.searchParams.set("view", "gate");
|
|
4417
4433
|
let n = await fetch(t.toString(), {
|
|
4418
4434
|
method: "GET",
|
|
@@ -4437,11 +4453,11 @@ function Ho(e) {
|
|
|
4437
4453
|
return null;
|
|
4438
4454
|
}
|
|
4439
4455
|
})();
|
|
4440
|
-
return
|
|
4456
|
+
return Wo.set(e, n.then((t) => (t === null && Wo.delete(e), t))), Wo.get(e) ?? n;
|
|
4441
4457
|
}
|
|
4442
4458
|
//#endregion
|
|
4443
4459
|
//#region dummy/authors.ts
|
|
4444
|
-
var
|
|
4460
|
+
var Ko = {
|
|
4445
4461
|
maya: {
|
|
4446
4462
|
_id: "demo-author-maya",
|
|
4447
4463
|
name: "Maya Chen",
|
|
@@ -4463,12 +4479,12 @@ var Uo = {
|
|
|
4463
4479
|
photo: { url: "https://i.pravatar.cc/96?img=68" }
|
|
4464
4480
|
}
|
|
4465
4481
|
};
|
|
4466
|
-
function
|
|
4467
|
-
return e.map((e) =>
|
|
4482
|
+
function qo(e) {
|
|
4483
|
+
return e.map((e) => Ko[e]);
|
|
4468
4484
|
}
|
|
4469
4485
|
//#endregion
|
|
4470
4486
|
//#region lib/theme-font.ts
|
|
4471
|
-
var
|
|
4487
|
+
var Jo = {
|
|
4472
4488
|
inter: "Inter:wght@400;500;600;700",
|
|
4473
4489
|
poppins: "Poppins:wght@400;500;600;700",
|
|
4474
4490
|
"dm sans": "DM+Sans:wght@400;500;600;700",
|
|
@@ -4480,11 +4496,11 @@ var Go = {
|
|
|
4480
4496
|
raleway: "Raleway:wght@400;500;600;700",
|
|
4481
4497
|
"work sans": "Work+Sans:wght@400;500;600;700"
|
|
4482
4498
|
};
|
|
4483
|
-
function
|
|
4499
|
+
function Yo(e) {
|
|
4484
4500
|
if (!e || typeof document > "u") return;
|
|
4485
4501
|
let t = e.split(",")[0]?.trim().replace(/^['"]|['"]$/g, "");
|
|
4486
4502
|
if (!t) return;
|
|
4487
|
-
let n =
|
|
4503
|
+
let n = Jo[t.toLowerCase()];
|
|
4488
4504
|
if (!n) return;
|
|
4489
4505
|
let r = `wexio-font-${t.toLowerCase().replace(/\s+/g, "-")}`;
|
|
4490
4506
|
if (document.getElementById(r)) return;
|
|
@@ -4493,7 +4509,7 @@ function Ko(e) {
|
|
|
4493
4509
|
}
|
|
4494
4510
|
//#endregion
|
|
4495
4511
|
//#region lib/widget-config.ts
|
|
4496
|
-
var
|
|
4512
|
+
var Xo = {
|
|
4497
4513
|
status: "active",
|
|
4498
4514
|
defaultTab: "home",
|
|
4499
4515
|
localeStrategy: "AUTO",
|
|
@@ -4564,7 +4580,7 @@ var qo = {
|
|
|
4564
4580
|
profile: null
|
|
4565
4581
|
},
|
|
4566
4582
|
botProtection: null
|
|
4567
|
-
},
|
|
4583
|
+
}, Zo = [
|
|
4568
4584
|
{ kind: "ask-question" },
|
|
4569
4585
|
{ kind: "recent-message" },
|
|
4570
4586
|
{ kind: "featured-article" },
|
|
@@ -4617,19 +4633,19 @@ var qo = {
|
|
|
4617
4633
|
];
|
|
4618
4634
|
//#endregion
|
|
4619
4635
|
//#region lib/use-widget-config.ts
|
|
4620
|
-
function
|
|
4636
|
+
function Qo() {
|
|
4621
4637
|
let e = Ao(), t = p(), [n, r] = C({
|
|
4622
4638
|
mode: "demo",
|
|
4623
|
-
config:
|
|
4639
|
+
config: Xo,
|
|
4624
4640
|
isDummy: !0,
|
|
4625
4641
|
isLoading: !0,
|
|
4626
4642
|
error: null
|
|
4627
4643
|
}), [i, a] = C(null);
|
|
4628
4644
|
b(() => {
|
|
4629
|
-
let n = new URL(window.location.href), i = n.searchParams.get("pk") ?? void 0, o =
|
|
4645
|
+
let n = new URL(window.location.href), i = n.searchParams.get("pk") ?? void 0, o = Io() || void 0, s = n.searchParams.get("mode"), c = e.publicKeyOverride ?? i ?? o, l = e.modeOverride ?? (c ? "production" : s === "preview" ? "preview" : "demo"), u = !1;
|
|
4630
4646
|
if ((async () => {
|
|
4631
4647
|
if (e.configBase) {
|
|
4632
|
-
let t = c ? await
|
|
4648
|
+
let t = c ? await Go(c) : null;
|
|
4633
4649
|
if (u) return;
|
|
4634
4650
|
let n = e.configBase.security, i = t?.security, a = {
|
|
4635
4651
|
requireAuth: n?.requireAuth ?? i?.requireAuth ?? !1,
|
|
@@ -4656,7 +4672,7 @@ function Yo() {
|
|
|
4656
4672
|
if (e.forceDummyData !== void 0) {
|
|
4657
4673
|
r({
|
|
4658
4674
|
mode: l,
|
|
4659
|
-
config:
|
|
4675
|
+
config: Xo,
|
|
4660
4676
|
isDummy: e.forceDummyData,
|
|
4661
4677
|
isLoading: !1,
|
|
4662
4678
|
error: null
|
|
@@ -4664,7 +4680,7 @@ function Yo() {
|
|
|
4664
4680
|
return;
|
|
4665
4681
|
}
|
|
4666
4682
|
if (c) {
|
|
4667
|
-
let e = await
|
|
4683
|
+
let e = await Ro(c, t);
|
|
4668
4684
|
if (u) return;
|
|
4669
4685
|
if (e) {
|
|
4670
4686
|
r({
|
|
@@ -4678,7 +4694,7 @@ function Yo() {
|
|
|
4678
4694
|
}
|
|
4679
4695
|
r({
|
|
4680
4696
|
mode: l,
|
|
4681
|
-
config:
|
|
4697
|
+
config: Xo,
|
|
4682
4698
|
isDummy: !0,
|
|
4683
4699
|
isLoading: !1,
|
|
4684
4700
|
error: "publicKeyInvalid"
|
|
@@ -4687,7 +4703,7 @@ function Yo() {
|
|
|
4687
4703
|
}
|
|
4688
4704
|
r({
|
|
4689
4705
|
mode: l,
|
|
4690
|
-
config:
|
|
4706
|
+
config: Xo,
|
|
4691
4707
|
isDummy: !0,
|
|
4692
4708
|
isLoading: !1,
|
|
4693
4709
|
error: null
|
|
@@ -4698,7 +4714,7 @@ function Yo() {
|
|
|
4698
4714
|
let d = (e) => {
|
|
4699
4715
|
if (!e.data || typeof e.data != "object" || e.data.type !== "wexio:preview-config:v1") return;
|
|
4700
4716
|
let t = e.data.config;
|
|
4701
|
-
t && a((e) =>
|
|
4717
|
+
t && a((e) => $o(e ?? {}, t));
|
|
4702
4718
|
};
|
|
4703
4719
|
return window.addEventListener("message", d), () => {
|
|
4704
4720
|
u = !0, window.removeEventListener("message", d);
|
|
@@ -4712,9 +4728,9 @@ function Yo() {
|
|
|
4712
4728
|
]);
|
|
4713
4729
|
let o = n.isDummy || e.forceDummyData === !0, s = S(() => {
|
|
4714
4730
|
let t = n.config;
|
|
4715
|
-
return i && (t =
|
|
4731
|
+
return i && (t = $o(t, i)), e.configOverride && (t = $o(t, e.configOverride)), o && t.operatorAvatars.length === 0 && (t = {
|
|
4716
4732
|
...t,
|
|
4717
|
-
operatorAvatars:
|
|
4733
|
+
operatorAvatars: Xo.operatorAvatars
|
|
4718
4734
|
}), t;
|
|
4719
4735
|
}, [
|
|
4720
4736
|
n.config,
|
|
@@ -4723,9 +4739,9 @@ function Yo() {
|
|
|
4723
4739
|
o
|
|
4724
4740
|
]), c = e.styleRoot;
|
|
4725
4741
|
ne(() => {
|
|
4726
|
-
s.theme &&
|
|
4742
|
+
s.theme && os(s.theme, c ?? document);
|
|
4727
4743
|
}, [s.theme, c]), b(() => {
|
|
4728
|
-
s.theme &&
|
|
4744
|
+
s.theme && Yo(s.theme.fontFamily);
|
|
4729
4745
|
}, [s.theme]);
|
|
4730
4746
|
let l = e.onLocaleStrategy;
|
|
4731
4747
|
return b(() => {
|
|
@@ -4743,7 +4759,7 @@ function Yo() {
|
|
|
4743
4759
|
error: n.error
|
|
4744
4760
|
};
|
|
4745
4761
|
}
|
|
4746
|
-
function
|
|
4762
|
+
function $o(e, t) {
|
|
4747
4763
|
return {
|
|
4748
4764
|
...e,
|
|
4749
4765
|
...t,
|
|
@@ -4758,7 +4774,7 @@ function Xo(e, t) {
|
|
|
4758
4774
|
theme: t.theme === void 0 ? e.theme : t.theme
|
|
4759
4775
|
};
|
|
4760
4776
|
}
|
|
4761
|
-
var
|
|
4777
|
+
var es = {
|
|
4762
4778
|
background: "--wx-bg",
|
|
4763
4779
|
surface: "--wx-bg-elevated",
|
|
4764
4780
|
surfaceElevated: "--wx-bg-elevated-2",
|
|
@@ -4774,30 +4790,30 @@ var Zo = {
|
|
|
4774
4790
|
launcherForeground: "--wx-launcher-fg",
|
|
4775
4791
|
success: "--wx-success",
|
|
4776
4792
|
danger: "--wx-danger"
|
|
4777
|
-
},
|
|
4793
|
+
}, ts = {
|
|
4778
4794
|
sm: "--wx-radius-sm",
|
|
4779
4795
|
md: "--wx-radius",
|
|
4780
4796
|
lg: "--wx-radius-lg",
|
|
4781
4797
|
xl: "--wx-radius-xl"
|
|
4782
4798
|
};
|
|
4783
|
-
function
|
|
4784
|
-
return e ? Object.entries(e).filter(([, e]) => typeof e == "string" && e.length > 0).map(([e, t]) => `${
|
|
4799
|
+
function ns(e) {
|
|
4800
|
+
return e ? Object.entries(e).filter(([, e]) => typeof e == "string" && e.length > 0).map(([e, t]) => `${es[e]}: ${t};`).join(" ") : "";
|
|
4785
4801
|
}
|
|
4786
|
-
function
|
|
4787
|
-
return e ? Object.entries(e).filter(([, e]) => typeof e == "number" && Number.isFinite(e)).map(([e, t]) => `${
|
|
4802
|
+
function rs(e) {
|
|
4803
|
+
return e ? Object.entries(e).filter(([, e]) => typeof e == "number" && Number.isFinite(e)).map(([e, t]) => `${ts[e]}: ${t}px;`).join(" ") : "";
|
|
4788
4804
|
}
|
|
4789
|
-
var
|
|
4790
|
-
function
|
|
4791
|
-
let t = [
|
|
4805
|
+
var is = /* @__PURE__ */ new WeakMap();
|
|
4806
|
+
function as(e) {
|
|
4807
|
+
let t = [rs(e.radii), typeof e.fontFamily == "string" && e.fontFamily.trim().length > 0 ? `--wx-font: ${e.fontFamily};` : ""].filter(Boolean).join(" "), n = [ns(e.light), t].filter(Boolean).join(" "), r = [ns(e.dark), t].filter(Boolean).join(" "), i = [];
|
|
4792
4808
|
return n && i.push(`:root, :host { ${n} }`), r && i.push(`[data-theme="dark"] { ${r} }`), i.join(" ");
|
|
4793
4809
|
}
|
|
4794
|
-
function
|
|
4795
|
-
let n =
|
|
4810
|
+
function os(e, t) {
|
|
4811
|
+
let n = as(e);
|
|
4796
4812
|
if (!(t instanceof Document)) {
|
|
4797
4813
|
let e = t;
|
|
4798
4814
|
if (typeof CSSStyleSheet < "u" && "replaceSync" in CSSStyleSheet.prototype) {
|
|
4799
|
-
let t =
|
|
4800
|
-
t || (t = new CSSStyleSheet(),
|
|
4815
|
+
let t = is.get(e);
|
|
4816
|
+
t || (t = new CSSStyleSheet(), is.set(e, t), e.adoptedStyleSheets = [...e.adoptedStyleSheets, t]), t.replaceSync(n);
|
|
4801
4817
|
return;
|
|
4802
4818
|
}
|
|
4803
4819
|
let r = e.querySelector("#wexio-theme-vars");
|
|
@@ -4807,19 +4823,19 @@ function rs(e, t) {
|
|
|
4807
4823
|
let r = t.getElementById("wexio-theme-vars");
|
|
4808
4824
|
r || (r = document.createElement("style"), r.id = "wexio-theme-vars", t.head.appendChild(r)), r.textContent = n;
|
|
4809
4825
|
}
|
|
4810
|
-
var
|
|
4826
|
+
var ss = m("check", [["path", {
|
|
4811
4827
|
d: "M20 6 9 17l-5-5",
|
|
4812
4828
|
key: "1gmf2c"
|
|
4813
|
-
}]]),
|
|
4829
|
+
}]]), cs = m("chevron-down", [["path", {
|
|
4814
4830
|
d: "m6 9 6 6 6-6",
|
|
4815
4831
|
key: "qrunsl"
|
|
4816
|
-
}]]),
|
|
4832
|
+
}]]), ls = m("chevron-left", [["path", {
|
|
4817
4833
|
d: "m15 18-6-6 6-6",
|
|
4818
4834
|
key: "1wnfg3"
|
|
4819
|
-
}]]),
|
|
4835
|
+
}]]), us = m("chevron-right", [["path", {
|
|
4820
4836
|
d: "m9 18 6-6-6-6",
|
|
4821
4837
|
key: "mthhwq"
|
|
4822
|
-
}]]),
|
|
4838
|
+
}]]), ds = m("x", [["path", {
|
|
4823
4839
|
d: "M18 6 6 18",
|
|
4824
4840
|
key: "1bl5f8"
|
|
4825
4841
|
}], ["path", {
|
|
@@ -4828,77 +4844,77 @@ var is = m("check", [["path", {
|
|
|
4828
4844
|
}]]);
|
|
4829
4845
|
//#endregion
|
|
4830
4846
|
//#region node_modules/@radix-ui/react-compose-refs/dist/index.mjs
|
|
4831
|
-
function
|
|
4847
|
+
function fs(e, t) {
|
|
4832
4848
|
if (typeof e == "function") return e(t);
|
|
4833
4849
|
e != null && (e.current = t);
|
|
4834
4850
|
}
|
|
4835
|
-
function
|
|
4851
|
+
function ps(...e) {
|
|
4836
4852
|
return (t) => {
|
|
4837
4853
|
let n = !1, r = e.map((e) => {
|
|
4838
|
-
let r =
|
|
4854
|
+
let r = fs(e, t);
|
|
4839
4855
|
return !n && typeof r == "function" && (n = !0), r;
|
|
4840
4856
|
});
|
|
4841
4857
|
if (n) return () => {
|
|
4842
4858
|
for (let t = 0; t < r.length; t++) {
|
|
4843
4859
|
let n = r[t];
|
|
4844
|
-
typeof n == "function" ? n() :
|
|
4860
|
+
typeof n == "function" ? n() : fs(e[t], null);
|
|
4845
4861
|
}
|
|
4846
4862
|
};
|
|
4847
4863
|
};
|
|
4848
4864
|
}
|
|
4849
4865
|
function Y(...e) {
|
|
4850
|
-
return h.useCallback(
|
|
4866
|
+
return h.useCallback(ps(...e), e);
|
|
4851
4867
|
}
|
|
4852
4868
|
//#endregion
|
|
4853
4869
|
//#region components/ui/card.tsx
|
|
4854
|
-
var
|
|
4870
|
+
var ms = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ w("div", {
|
|
4855
4871
|
ref: n,
|
|
4856
4872
|
className: f("rounded-wx-lg bg-wx-bg-elevated text-wx-fg", e),
|
|
4857
4873
|
...t
|
|
4858
4874
|
}));
|
|
4859
|
-
|
|
4860
|
-
var
|
|
4875
|
+
ms.displayName = "Card";
|
|
4876
|
+
var hs = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ w("div", {
|
|
4861
4877
|
ref: n,
|
|
4862
4878
|
className: f("rounded-wx bg-wx-bg-elevated-2 text-wx-fg", e),
|
|
4863
4879
|
...t
|
|
4864
4880
|
}));
|
|
4865
|
-
|
|
4866
|
-
var
|
|
4881
|
+
hs.displayName = "CardNested";
|
|
4882
|
+
var gs = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ w("div", {
|
|
4867
4883
|
ref: n,
|
|
4868
4884
|
className: f("flex flex-col gap-1 px-5 pt-5", e),
|
|
4869
4885
|
...t
|
|
4870
4886
|
}));
|
|
4871
|
-
|
|
4872
|
-
var
|
|
4887
|
+
gs.displayName = "CardHeader";
|
|
4888
|
+
var _s = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ w("p", {
|
|
4873
4889
|
ref: n,
|
|
4874
4890
|
className: f("text-base font-semibold text-wx-fg", e),
|
|
4875
4891
|
...t
|
|
4876
4892
|
}));
|
|
4877
|
-
|
|
4878
|
-
var
|
|
4893
|
+
_s.displayName = "CardTitle";
|
|
4894
|
+
var vs = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ w("p", {
|
|
4879
4895
|
ref: n,
|
|
4880
4896
|
className: f("text-sm text-wx-fg-muted", e),
|
|
4881
4897
|
...t
|
|
4882
4898
|
}));
|
|
4883
|
-
|
|
4884
|
-
var
|
|
4899
|
+
vs.displayName = "CardSubtitle";
|
|
4900
|
+
var ys = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ w("div", {
|
|
4885
4901
|
ref: n,
|
|
4886
4902
|
className: f("px-5 py-4", e),
|
|
4887
4903
|
...t
|
|
4888
4904
|
}));
|
|
4889
|
-
|
|
4890
|
-
var
|
|
4905
|
+
ys.displayName = "CardBody";
|
|
4906
|
+
var bs = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ w("div", {
|
|
4891
4907
|
ref: n,
|
|
4892
4908
|
className: f("flex items-center justify-between px-5 py-3 border-t border-wx-border", e),
|
|
4893
4909
|
...t
|
|
4894
4910
|
}));
|
|
4895
|
-
|
|
4911
|
+
bs.displayName = "CardFooter";
|
|
4896
4912
|
//#endregion
|
|
4897
4913
|
//#region node_modules/@radix-ui/react-primitive/node_modules/@radix-ui/react-slot/dist/index.mjs
|
|
4898
4914
|
/* @__NO_SIDE_EFFECTS__ */
|
|
4899
|
-
function
|
|
4900
|
-
let t = /* @__PURE__ */
|
|
4901
|
-
let { children: r, ...i } = e, a = h.Children.toArray(r), o = a.find(
|
|
4915
|
+
function xs(e) {
|
|
4916
|
+
let t = /* @__PURE__ */ Ss(e), n = h.forwardRef((e, n) => {
|
|
4917
|
+
let { children: r, ...i } = e, a = h.Children.toArray(r), o = a.find(ws);
|
|
4902
4918
|
if (o) {
|
|
4903
4919
|
let e = o.props.children, r = a.map((t) => t === o ? h.Children.count(e) > 1 ? h.Children.only(null) : h.isValidElement(e) ? e.props.children : null : t);
|
|
4904
4920
|
return /* @__PURE__ */ w(t, {
|
|
@@ -4916,22 +4932,22 @@ function vs(e) {
|
|
|
4916
4932
|
return n.displayName = `${e}.Slot`, n;
|
|
4917
4933
|
}
|
|
4918
4934
|
/* @__NO_SIDE_EFFECTS__ */
|
|
4919
|
-
function
|
|
4935
|
+
function Ss(e) {
|
|
4920
4936
|
let t = h.forwardRef((e, t) => {
|
|
4921
4937
|
let { children: n, ...r } = e;
|
|
4922
4938
|
if (h.isValidElement(n)) {
|
|
4923
|
-
let e =
|
|
4924
|
-
return n.type !== h.Fragment && (i.ref = t ?
|
|
4939
|
+
let e = Es(n), i = Ts(r, n.props);
|
|
4940
|
+
return n.type !== h.Fragment && (i.ref = t ? ps(t, e) : e), h.cloneElement(n, i);
|
|
4925
4941
|
}
|
|
4926
4942
|
return h.Children.count(n) > 1 ? h.Children.only(null) : null;
|
|
4927
4943
|
});
|
|
4928
4944
|
return t.displayName = `${e}.SlotClone`, t;
|
|
4929
4945
|
}
|
|
4930
|
-
var
|
|
4931
|
-
function
|
|
4932
|
-
return h.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId ===
|
|
4946
|
+
var Cs = Symbol("radix.slottable");
|
|
4947
|
+
function ws(e) {
|
|
4948
|
+
return h.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === Cs;
|
|
4933
4949
|
}
|
|
4934
|
-
function
|
|
4950
|
+
function Ts(e, t) {
|
|
4935
4951
|
let n = { ...t };
|
|
4936
4952
|
for (let r in t) {
|
|
4937
4953
|
let i = e[r], a = t[r];
|
|
@@ -4948,13 +4964,13 @@ function Ss(e, t) {
|
|
|
4948
4964
|
...n
|
|
4949
4965
|
};
|
|
4950
4966
|
}
|
|
4951
|
-
function
|
|
4967
|
+
function Es(e) {
|
|
4952
4968
|
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
4953
4969
|
return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
4954
4970
|
}
|
|
4955
4971
|
//#endregion
|
|
4956
4972
|
//#region node_modules/@radix-ui/react-primitive/dist/index.mjs
|
|
4957
|
-
var
|
|
4973
|
+
var Ds = [
|
|
4958
4974
|
"a",
|
|
4959
4975
|
"button",
|
|
4960
4976
|
"div",
|
|
@@ -4973,7 +4989,7 @@ var ws = [
|
|
|
4973
4989
|
"svg",
|
|
4974
4990
|
"ul"
|
|
4975
4991
|
].reduce((e, t) => {
|
|
4976
|
-
let n = /* @__PURE__ */
|
|
4992
|
+
let n = /* @__PURE__ */ xs(`Primitive.${t}`), r = h.forwardRef((e, r) => {
|
|
4977
4993
|
let { asChild: i, ...a } = e, o = i ? n : t;
|
|
4978
4994
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ w(o, {
|
|
4979
4995
|
...a,
|
|
@@ -4985,24 +5001,24 @@ var ws = [
|
|
|
4985
5001
|
[t]: r
|
|
4986
5002
|
};
|
|
4987
5003
|
}, {});
|
|
4988
|
-
function
|
|
5004
|
+
function Os(e, t) {
|
|
4989
5005
|
e && ae.flushSync(() => e.dispatchEvent(t));
|
|
4990
5006
|
}
|
|
4991
5007
|
//#endregion
|
|
4992
5008
|
//#region node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs
|
|
4993
|
-
var
|
|
5009
|
+
var ks = globalThis?.document ? h.useLayoutEffect : () => {};
|
|
4994
5010
|
//#endregion
|
|
4995
5011
|
//#region node_modules/@radix-ui/react-presence/dist/index.mjs
|
|
4996
|
-
function
|
|
5012
|
+
function As(e, t) {
|
|
4997
5013
|
return h.useReducer((e, n) => t[e][n] ?? e, e);
|
|
4998
5014
|
}
|
|
4999
|
-
var
|
|
5000
|
-
let { present: t, children: n } = e, r =
|
|
5015
|
+
var js = (e) => {
|
|
5016
|
+
let { present: t, children: n } = e, r = Ms(t), i = typeof n == "function" ? n({ present: r.isPresent }) : h.Children.only(n), a = Y(r.ref, Ps(i));
|
|
5001
5017
|
return typeof n == "function" || r.isPresent ? h.cloneElement(i, { ref: a }) : null;
|
|
5002
5018
|
};
|
|
5003
|
-
|
|
5004
|
-
function
|
|
5005
|
-
let [t, n] = h.useState(), r = h.useRef(null), i = h.useRef(e), a = h.useRef("none"), [o, s] =
|
|
5019
|
+
js.displayName = "Presence";
|
|
5020
|
+
function Ms(e) {
|
|
5021
|
+
let [t, n] = h.useState(), r = h.useRef(null), i = h.useRef(e), a = h.useRef("none"), [o, s] = As(e ? "mounted" : "unmounted", {
|
|
5006
5022
|
mounted: {
|
|
5007
5023
|
UNMOUNT: "unmounted",
|
|
5008
5024
|
ANIMATION_OUT: "unmountSuspended"
|
|
@@ -5014,18 +5030,18 @@ function ks(e) {
|
|
|
5014
5030
|
unmounted: { MOUNT: "mounted" }
|
|
5015
5031
|
});
|
|
5016
5032
|
return h.useEffect(() => {
|
|
5017
|
-
let e =
|
|
5033
|
+
let e = Ns(r.current);
|
|
5018
5034
|
a.current = o === "mounted" ? e : "none";
|
|
5019
|
-
}, [o]),
|
|
5035
|
+
}, [o]), ks(() => {
|
|
5020
5036
|
let t = r.current, n = i.current;
|
|
5021
5037
|
if (n !== e) {
|
|
5022
|
-
let r = a.current, o =
|
|
5038
|
+
let r = a.current, o = Ns(t);
|
|
5023
5039
|
e ? s("MOUNT") : o === "none" || t?.display === "none" ? s("UNMOUNT") : s(n && r !== o ? "ANIMATION_OUT" : "UNMOUNT"), i.current = e;
|
|
5024
5040
|
}
|
|
5025
|
-
}, [e, s]),
|
|
5041
|
+
}, [e, s]), ks(() => {
|
|
5026
5042
|
if (t) {
|
|
5027
5043
|
let e, n = t.ownerDocument.defaultView ?? window, o = (a) => {
|
|
5028
|
-
let o =
|
|
5044
|
+
let o = Ns(r.current).includes(CSS.escape(a.animationName));
|
|
5029
5045
|
if (a.target === t && o && (s("ANIMATION_END"), !i.current)) {
|
|
5030
5046
|
let r = t.style.animationFillMode;
|
|
5031
5047
|
t.style.animationFillMode = "forwards", e = n.setTimeout(() => {
|
|
@@ -5033,7 +5049,7 @@ function ks(e) {
|
|
|
5033
5049
|
});
|
|
5034
5050
|
}
|
|
5035
5051
|
}, c = (e) => {
|
|
5036
|
-
e.target === t && (a.current =
|
|
5052
|
+
e.target === t && (a.current = Ns(r.current));
|
|
5037
5053
|
};
|
|
5038
5054
|
return t.addEventListener("animationstart", c), t.addEventListener("animationcancel", o), t.addEventListener("animationend", o), () => {
|
|
5039
5055
|
n.clearTimeout(e), t.removeEventListener("animationstart", c), t.removeEventListener("animationcancel", o), t.removeEventListener("animationend", o);
|
|
@@ -5046,16 +5062,16 @@ function ks(e) {
|
|
|
5046
5062
|
}, [])
|
|
5047
5063
|
};
|
|
5048
5064
|
}
|
|
5049
|
-
function
|
|
5065
|
+
function Ns(e) {
|
|
5050
5066
|
return e?.animationName || "none";
|
|
5051
5067
|
}
|
|
5052
|
-
function
|
|
5068
|
+
function Ps(e) {
|
|
5053
5069
|
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
5054
5070
|
return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
5055
5071
|
}
|
|
5056
5072
|
//#endregion
|
|
5057
5073
|
//#region node_modules/@radix-ui/react-context/dist/index.mjs
|
|
5058
|
-
function
|
|
5074
|
+
function Fs(e, t = []) {
|
|
5059
5075
|
let n = [];
|
|
5060
5076
|
function r(t, r) {
|
|
5061
5077
|
let i = h.createContext(r), a = n.length;
|
|
@@ -5086,9 +5102,9 @@ function Ms(e, t = []) {
|
|
|
5086
5102
|
} }), [n, r]);
|
|
5087
5103
|
};
|
|
5088
5104
|
};
|
|
5089
|
-
return i.scopeName = e, [r,
|
|
5105
|
+
return i.scopeName = e, [r, Is(i, ...t)];
|
|
5090
5106
|
}
|
|
5091
|
-
function
|
|
5107
|
+
function Is(...e) {
|
|
5092
5108
|
let t = e[0];
|
|
5093
5109
|
if (e.length === 1) return t;
|
|
5094
5110
|
let n = () => {
|
|
@@ -5119,14 +5135,14 @@ function X(e) {
|
|
|
5119
5135
|
}
|
|
5120
5136
|
//#endregion
|
|
5121
5137
|
//#region node_modules/@radix-ui/react-direction/dist/index.mjs
|
|
5122
|
-
var
|
|
5123
|
-
function
|
|
5124
|
-
let t = h.useContext(
|
|
5138
|
+
var Ls = h.createContext(void 0);
|
|
5139
|
+
function Rs(e) {
|
|
5140
|
+
let t = h.useContext(Ls);
|
|
5125
5141
|
return e || t || "ltr";
|
|
5126
5142
|
}
|
|
5127
5143
|
//#endregion
|
|
5128
5144
|
//#region node_modules/@radix-ui/number/dist/index.mjs
|
|
5129
|
-
function
|
|
5145
|
+
function zs(e, [t, n]) {
|
|
5130
5146
|
return Math.min(n, Math.max(t, e));
|
|
5131
5147
|
}
|
|
5132
5148
|
typeof window < "u" && window.document && window.document.createElement;
|
|
@@ -5137,12 +5153,12 @@ function Z(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
|
5137
5153
|
}
|
|
5138
5154
|
//#endregion
|
|
5139
5155
|
//#region node_modules/@radix-ui/react-scroll-area/dist/index.mjs
|
|
5140
|
-
function
|
|
5156
|
+
function Bs(e, t) {
|
|
5141
5157
|
return h.useReducer((e, n) => t[e][n] ?? e, e);
|
|
5142
5158
|
}
|
|
5143
|
-
var
|
|
5144
|
-
let { __scopeScrollArea: n, type: r = "hover", dir: i, scrollHideDelay: a = 600, ...o } = e, [s, c] = h.useState(null), [l, u] = h.useState(null), [d, f] = h.useState(null), [p, m] = h.useState(null), [g, _] = h.useState(null), [v, y] = h.useState(0), [ee, b] = h.useState(0), [x, te] = h.useState(!1), [ne, S] = h.useState(!1), re = Y(t, (e) => c(e)), C =
|
|
5145
|
-
return /* @__PURE__ */ w(
|
|
5159
|
+
var Vs = "ScrollArea", [Hs, Us] = Fs(Vs), [Ws, Q] = Hs(Vs), Gs = h.forwardRef((e, t) => {
|
|
5160
|
+
let { __scopeScrollArea: n, type: r = "hover", dir: i, scrollHideDelay: a = 600, ...o } = e, [s, c] = h.useState(null), [l, u] = h.useState(null), [d, f] = h.useState(null), [p, m] = h.useState(null), [g, _] = h.useState(null), [v, y] = h.useState(0), [ee, b] = h.useState(0), [x, te] = h.useState(!1), [ne, S] = h.useState(!1), re = Y(t, (e) => c(e)), C = Rs(i);
|
|
5161
|
+
return /* @__PURE__ */ w(Ws, {
|
|
5146
5162
|
scope: n,
|
|
5147
5163
|
type: r,
|
|
5148
5164
|
dir: C,
|
|
@@ -5162,7 +5178,7 @@ var Rs = "ScrollArea", [zs, Bs] = Ms(Rs), [Vs, Q] = zs(Rs), Hs = h.forwardRef((e
|
|
|
5162
5178
|
onScrollbarYEnabledChange: S,
|
|
5163
5179
|
onCornerWidthChange: y,
|
|
5164
5180
|
onCornerHeightChange: b,
|
|
5165
|
-
children: /* @__PURE__ */ w(
|
|
5181
|
+
children: /* @__PURE__ */ w(Ds.div, {
|
|
5166
5182
|
dir: C,
|
|
5167
5183
|
...o,
|
|
5168
5184
|
ref: re,
|
|
@@ -5175,13 +5191,13 @@ var Rs = "ScrollArea", [zs, Bs] = Ms(Rs), [Vs, Q] = zs(Rs), Hs = h.forwardRef((e
|
|
|
5175
5191
|
})
|
|
5176
5192
|
});
|
|
5177
5193
|
});
|
|
5178
|
-
|
|
5179
|
-
var
|
|
5180
|
-
let { __scopeScrollArea: n, children: r, nonce: i, ...a } = e, o = Q(
|
|
5194
|
+
Gs.displayName = Vs;
|
|
5195
|
+
var Ks = "ScrollAreaViewport", qs = h.forwardRef((e, t) => {
|
|
5196
|
+
let { __scopeScrollArea: n, children: r, nonce: i, ...a } = e, o = Q(Ks, n), s = Y(t, h.useRef(null), o.onViewportChange);
|
|
5181
5197
|
return /* @__PURE__ */ T(ie, { children: [/* @__PURE__ */ w("style", {
|
|
5182
5198
|
dangerouslySetInnerHTML: { __html: "[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}" },
|
|
5183
5199
|
nonce: i
|
|
5184
|
-
}), /* @__PURE__ */ w(
|
|
5200
|
+
}), /* @__PURE__ */ w(Ds.div, {
|
|
5185
5201
|
"data-radix-scroll-area-viewport": "",
|
|
5186
5202
|
...a,
|
|
5187
5203
|
ref: s,
|
|
@@ -5200,8 +5216,8 @@ var Us = "ScrollAreaViewport", Ws = h.forwardRef((e, t) => {
|
|
|
5200
5216
|
})
|
|
5201
5217
|
})] });
|
|
5202
5218
|
});
|
|
5203
|
-
|
|
5204
|
-
var $ = "ScrollAreaScrollbar",
|
|
5219
|
+
qs.displayName = Ks;
|
|
5220
|
+
var $ = "ScrollAreaScrollbar", Js = h.forwardRef((e, t) => {
|
|
5205
5221
|
let { forceMount: n, ...r } = e, i = Q($, e.__scopeScrollArea), { onScrollbarXEnabledChange: a, onScrollbarYEnabledChange: o } = i, s = e.orientation === "horizontal";
|
|
5206
5222
|
return h.useEffect(() => (s ? a(!0) : o(!0), () => {
|
|
5207
5223
|
s ? a(!1) : o(!1);
|
|
@@ -5209,25 +5225,25 @@ var $ = "ScrollAreaScrollbar", Gs = h.forwardRef((e, t) => {
|
|
|
5209
5225
|
s,
|
|
5210
5226
|
a,
|
|
5211
5227
|
o
|
|
5212
|
-
]), i.type === "hover" ? /* @__PURE__ */ w(
|
|
5228
|
+
]), i.type === "hover" ? /* @__PURE__ */ w(Ys, {
|
|
5213
5229
|
...r,
|
|
5214
5230
|
ref: t,
|
|
5215
5231
|
forceMount: n
|
|
5216
|
-
}) : i.type === "scroll" ? /* @__PURE__ */ w(
|
|
5232
|
+
}) : i.type === "scroll" ? /* @__PURE__ */ w(Xs, {
|
|
5217
5233
|
...r,
|
|
5218
5234
|
ref: t,
|
|
5219
5235
|
forceMount: n
|
|
5220
|
-
}) : i.type === "auto" ? /* @__PURE__ */ w(
|
|
5236
|
+
}) : i.type === "auto" ? /* @__PURE__ */ w(Zs, {
|
|
5221
5237
|
...r,
|
|
5222
5238
|
ref: t,
|
|
5223
5239
|
forceMount: n
|
|
5224
|
-
}) : i.type === "always" ? /* @__PURE__ */ w(
|
|
5240
|
+
}) : i.type === "always" ? /* @__PURE__ */ w(Qs, {
|
|
5225
5241
|
...r,
|
|
5226
5242
|
ref: t
|
|
5227
5243
|
}) : null;
|
|
5228
5244
|
});
|
|
5229
|
-
|
|
5230
|
-
var
|
|
5245
|
+
Js.displayName = $;
|
|
5246
|
+
var Ys = h.forwardRef((e, t) => {
|
|
5231
5247
|
let { forceMount: n, ...r } = e, i = Q($, e.__scopeScrollArea), [a, o] = h.useState(!1);
|
|
5232
5248
|
return h.useEffect(() => {
|
|
5233
5249
|
let e = i.scrollArea, t = 0;
|
|
@@ -5241,16 +5257,16 @@ var Ks = h.forwardRef((e, t) => {
|
|
|
5241
5257
|
window.clearTimeout(t), e.removeEventListener("pointerenter", n), e.removeEventListener("pointerleave", r);
|
|
5242
5258
|
};
|
|
5243
5259
|
}
|
|
5244
|
-
}, [i.scrollArea, i.scrollHideDelay]), /* @__PURE__ */ w(
|
|
5260
|
+
}, [i.scrollArea, i.scrollHideDelay]), /* @__PURE__ */ w(js, {
|
|
5245
5261
|
present: n || a,
|
|
5246
|
-
children: /* @__PURE__ */ w(
|
|
5262
|
+
children: /* @__PURE__ */ w(Zs, {
|
|
5247
5263
|
"data-state": a ? "visible" : "hidden",
|
|
5248
5264
|
...r,
|
|
5249
5265
|
ref: t
|
|
5250
5266
|
})
|
|
5251
5267
|
});
|
|
5252
|
-
}),
|
|
5253
|
-
let { forceMount: n, ...r } = e, i = Q($, e.__scopeScrollArea), a = e.orientation === "horizontal", o =
|
|
5268
|
+
}), Xs = h.forwardRef((e, t) => {
|
|
5269
|
+
let { forceMount: n, ...r } = e, i = Q($, e.__scopeScrollArea), a = e.orientation === "horizontal", o = vc(() => c("SCROLL_END"), 100), [s, c] = Bs("hidden", {
|
|
5254
5270
|
hidden: { SCROLL: "scrolling" },
|
|
5255
5271
|
scrolling: {
|
|
5256
5272
|
SCROLL_END: "idle",
|
|
@@ -5289,9 +5305,9 @@ var Ks = h.forwardRef((e, t) => {
|
|
|
5289
5305
|
a,
|
|
5290
5306
|
c,
|
|
5291
5307
|
o
|
|
5292
|
-
]), /* @__PURE__ */ w(
|
|
5308
|
+
]), /* @__PURE__ */ w(js, {
|
|
5293
5309
|
present: n || s !== "hidden",
|
|
5294
|
-
children: /* @__PURE__ */ w(
|
|
5310
|
+
children: /* @__PURE__ */ w(Qs, {
|
|
5295
5311
|
"data-state": s === "hidden" ? "hidden" : "visible",
|
|
5296
5312
|
...r,
|
|
5297
5313
|
ref: t,
|
|
@@ -5299,22 +5315,22 @@ var Ks = h.forwardRef((e, t) => {
|
|
|
5299
5315
|
onPointerLeave: Z(e.onPointerLeave, () => c("POINTER_LEAVE"))
|
|
5300
5316
|
})
|
|
5301
5317
|
});
|
|
5302
|
-
}),
|
|
5303
|
-
let n = Q($, e.__scopeScrollArea), { forceMount: r, ...i } = e, [a, o] = h.useState(!1), s = e.orientation === "horizontal", c =
|
|
5318
|
+
}), Zs = h.forwardRef((e, t) => {
|
|
5319
|
+
let n = Q($, e.__scopeScrollArea), { forceMount: r, ...i } = e, [a, o] = h.useState(!1), s = e.orientation === "horizontal", c = vc(() => {
|
|
5304
5320
|
if (n.viewport) {
|
|
5305
5321
|
let e = n.viewport.offsetWidth < n.viewport.scrollWidth, t = n.viewport.offsetHeight < n.viewport.scrollHeight;
|
|
5306
5322
|
o(s ? e : t);
|
|
5307
5323
|
}
|
|
5308
5324
|
}, 10);
|
|
5309
|
-
return
|
|
5325
|
+
return yc(n.viewport, c), yc(n.content, c), /* @__PURE__ */ w(js, {
|
|
5310
5326
|
present: r || a,
|
|
5311
|
-
children: /* @__PURE__ */ w(
|
|
5327
|
+
children: /* @__PURE__ */ w(Qs, {
|
|
5312
5328
|
"data-state": a ? "visible" : "hidden",
|
|
5313
5329
|
...i,
|
|
5314
5330
|
ref: t
|
|
5315
5331
|
})
|
|
5316
5332
|
});
|
|
5317
|
-
}),
|
|
5333
|
+
}), Qs = h.forwardRef((e, t) => {
|
|
5318
5334
|
let { orientation: n = "vertical", ...r } = e, i = Q($, e.__scopeScrollArea), a = h.useRef(null), o = h.useRef(0), [s, c] = h.useState({
|
|
5319
5335
|
content: 0,
|
|
5320
5336
|
viewport: 0,
|
|
@@ -5323,7 +5339,7 @@ var Ks = h.forwardRef((e, t) => {
|
|
|
5323
5339
|
paddingStart: 0,
|
|
5324
5340
|
paddingEnd: 0
|
|
5325
5341
|
}
|
|
5326
|
-
}), l =
|
|
5342
|
+
}), l = dc(s.viewport, s.content), u = {
|
|
5327
5343
|
...r,
|
|
5328
5344
|
sizes: s,
|
|
5329
5345
|
onSizesChange: c,
|
|
@@ -5333,14 +5349,14 @@ var Ks = h.forwardRef((e, t) => {
|
|
|
5333
5349
|
onThumbPointerDown: (e) => o.current = e
|
|
5334
5350
|
};
|
|
5335
5351
|
function d(e, t) {
|
|
5336
|
-
return
|
|
5352
|
+
return pc(e, o.current, s, t);
|
|
5337
5353
|
}
|
|
5338
|
-
return n === "horizontal" ? /* @__PURE__ */ w(
|
|
5354
|
+
return n === "horizontal" ? /* @__PURE__ */ w($s, {
|
|
5339
5355
|
...u,
|
|
5340
5356
|
ref: t,
|
|
5341
5357
|
onThumbPositionChange: () => {
|
|
5342
5358
|
if (i.viewport && a.current) {
|
|
5343
|
-
let e = i.viewport.scrollLeft, t =
|
|
5359
|
+
let e = i.viewport.scrollLeft, t = mc(e, s, i.dir);
|
|
5344
5360
|
a.current.style.transform = `translate3d(${t}px, 0, 0)`;
|
|
5345
5361
|
}
|
|
5346
5362
|
},
|
|
@@ -5350,12 +5366,12 @@ var Ks = h.forwardRef((e, t) => {
|
|
|
5350
5366
|
onDragScroll: (e) => {
|
|
5351
5367
|
i.viewport && (i.viewport.scrollLeft = d(e, i.dir));
|
|
5352
5368
|
}
|
|
5353
|
-
}) : n === "vertical" ? /* @__PURE__ */ w(
|
|
5369
|
+
}) : n === "vertical" ? /* @__PURE__ */ w(ec, {
|
|
5354
5370
|
...u,
|
|
5355
5371
|
ref: t,
|
|
5356
5372
|
onThumbPositionChange: () => {
|
|
5357
5373
|
if (i.viewport && a.current) {
|
|
5358
|
-
let e = i.viewport.scrollTop, t =
|
|
5374
|
+
let e = i.viewport.scrollTop, t = mc(e, s);
|
|
5359
5375
|
a.current.style.transform = `translate3d(0, ${t}px, 0)`;
|
|
5360
5376
|
}
|
|
5361
5377
|
},
|
|
@@ -5366,11 +5382,11 @@ var Ks = h.forwardRef((e, t) => {
|
|
|
5366
5382
|
i.viewport && (i.viewport.scrollTop = d(e));
|
|
5367
5383
|
}
|
|
5368
5384
|
}) : null;
|
|
5369
|
-
}),
|
|
5385
|
+
}), $s = h.forwardRef((e, t) => {
|
|
5370
5386
|
let { sizes: n, onSizesChange: r, ...i } = e, a = Q($, e.__scopeScrollArea), [o, s] = h.useState(), c = h.useRef(null), l = Y(t, c, a.onScrollbarXChange);
|
|
5371
5387
|
return h.useEffect(() => {
|
|
5372
5388
|
c.current && s(getComputedStyle(c.current));
|
|
5373
|
-
}, [c]), /* @__PURE__ */ w(
|
|
5389
|
+
}, [c]), /* @__PURE__ */ w(rc, {
|
|
5374
5390
|
"data-orientation": "horizontal",
|
|
5375
5391
|
...i,
|
|
5376
5392
|
ref: l,
|
|
@@ -5379,7 +5395,7 @@ var Ks = h.forwardRef((e, t) => {
|
|
|
5379
5395
|
bottom: 0,
|
|
5380
5396
|
left: a.dir === "rtl" ? "var(--radix-scroll-area-corner-width)" : 0,
|
|
5381
5397
|
right: a.dir === "ltr" ? "var(--radix-scroll-area-corner-width)" : 0,
|
|
5382
|
-
"--radix-scroll-area-thumb-width":
|
|
5398
|
+
"--radix-scroll-area-thumb-width": fc(n) + "px",
|
|
5383
5399
|
...e.style
|
|
5384
5400
|
},
|
|
5385
5401
|
onThumbPointerDown: (t) => e.onThumbPointerDown(t.x),
|
|
@@ -5387,7 +5403,7 @@ var Ks = h.forwardRef((e, t) => {
|
|
|
5387
5403
|
onWheelScroll: (t, n) => {
|
|
5388
5404
|
if (a.viewport) {
|
|
5389
5405
|
let r = a.viewport.scrollLeft + t.deltaX;
|
|
5390
|
-
e.onWheelScroll(r),
|
|
5406
|
+
e.onWheelScroll(r), gc(r, n) && t.preventDefault();
|
|
5391
5407
|
}
|
|
5392
5408
|
},
|
|
5393
5409
|
onResize: () => {
|
|
@@ -5396,17 +5412,17 @@ var Ks = h.forwardRef((e, t) => {
|
|
|
5396
5412
|
viewport: a.viewport.offsetWidth,
|
|
5397
5413
|
scrollbar: {
|
|
5398
5414
|
size: c.current.clientWidth,
|
|
5399
|
-
paddingStart:
|
|
5400
|
-
paddingEnd:
|
|
5415
|
+
paddingStart: uc(o.paddingLeft),
|
|
5416
|
+
paddingEnd: uc(o.paddingRight)
|
|
5401
5417
|
}
|
|
5402
5418
|
});
|
|
5403
5419
|
}
|
|
5404
5420
|
});
|
|
5405
|
-
}),
|
|
5421
|
+
}), ec = h.forwardRef((e, t) => {
|
|
5406
5422
|
let { sizes: n, onSizesChange: r, ...i } = e, a = Q($, e.__scopeScrollArea), [o, s] = h.useState(), c = h.useRef(null), l = Y(t, c, a.onScrollbarYChange);
|
|
5407
5423
|
return h.useEffect(() => {
|
|
5408
5424
|
c.current && s(getComputedStyle(c.current));
|
|
5409
|
-
}, [c]), /* @__PURE__ */ w(
|
|
5425
|
+
}, [c]), /* @__PURE__ */ w(rc, {
|
|
5410
5426
|
"data-orientation": "vertical",
|
|
5411
5427
|
...i,
|
|
5412
5428
|
ref: l,
|
|
@@ -5416,7 +5432,7 @@ var Ks = h.forwardRef((e, t) => {
|
|
|
5416
5432
|
right: a.dir === "ltr" ? 0 : void 0,
|
|
5417
5433
|
left: a.dir === "rtl" ? 0 : void 0,
|
|
5418
5434
|
bottom: "var(--radix-scroll-area-corner-height)",
|
|
5419
|
-
"--radix-scroll-area-thumb-height":
|
|
5435
|
+
"--radix-scroll-area-thumb-height": fc(n) + "px",
|
|
5420
5436
|
...e.style
|
|
5421
5437
|
},
|
|
5422
5438
|
onThumbPointerDown: (t) => e.onThumbPointerDown(t.y),
|
|
@@ -5424,7 +5440,7 @@ var Ks = h.forwardRef((e, t) => {
|
|
|
5424
5440
|
onWheelScroll: (t, n) => {
|
|
5425
5441
|
if (a.viewport) {
|
|
5426
5442
|
let r = a.viewport.scrollTop + t.deltaY;
|
|
5427
|
-
e.onWheelScroll(r),
|
|
5443
|
+
e.onWheelScroll(r), gc(r, n) && t.preventDefault();
|
|
5428
5444
|
}
|
|
5429
5445
|
},
|
|
5430
5446
|
onResize: () => {
|
|
@@ -5433,14 +5449,14 @@ var Ks = h.forwardRef((e, t) => {
|
|
|
5433
5449
|
viewport: a.viewport.offsetHeight,
|
|
5434
5450
|
scrollbar: {
|
|
5435
5451
|
size: c.current.clientHeight,
|
|
5436
|
-
paddingStart:
|
|
5437
|
-
paddingEnd:
|
|
5452
|
+
paddingStart: uc(o.paddingTop),
|
|
5453
|
+
paddingEnd: uc(o.paddingBottom)
|
|
5438
5454
|
}
|
|
5439
5455
|
});
|
|
5440
5456
|
}
|
|
5441
5457
|
});
|
|
5442
|
-
}), [
|
|
5443
|
-
let { __scopeScrollArea: n, sizes: r, hasThumb: i, onThumbChange: a, onThumbPointerUp: o, onThumbPointerDown: s, onThumbPositionChange: c, onDragScroll: l, onWheelScroll: u, onResize: d, ...f } = e, p = Q($, n), [m, g] = h.useState(null), _ = Y(t, (e) => g(e)), v = h.useRef(null), y = h.useRef(""), ee = p.viewport, b = r.content - r.viewport, x = X(u), te = X(c), ne =
|
|
5458
|
+
}), [tc, nc] = Hs($), rc = h.forwardRef((e, t) => {
|
|
5459
|
+
let { __scopeScrollArea: n, sizes: r, hasThumb: i, onThumbChange: a, onThumbPointerUp: o, onThumbPointerDown: s, onThumbPositionChange: c, onDragScroll: l, onWheelScroll: u, onResize: d, ...f } = e, p = Q($, n), [m, g] = h.useState(null), _ = Y(t, (e) => g(e)), v = h.useRef(null), y = h.useRef(""), ee = p.viewport, b = r.content - r.viewport, x = X(u), te = X(c), ne = vc(d, 10);
|
|
5444
5460
|
function S(e) {
|
|
5445
5461
|
v.current && l({
|
|
5446
5462
|
x: e.clientX - v.current.left,
|
|
@@ -5458,7 +5474,7 @@ var Ks = h.forwardRef((e, t) => {
|
|
|
5458
5474
|
m,
|
|
5459
5475
|
b,
|
|
5460
5476
|
x
|
|
5461
|
-
]), h.useEffect(te, [r, te]),
|
|
5477
|
+
]), h.useEffect(te, [r, te]), yc(m, ne), yc(p.content, ne), /* @__PURE__ */ w(tc, {
|
|
5462
5478
|
scope: n,
|
|
5463
5479
|
scrollbar: m,
|
|
5464
5480
|
hasThumb: i,
|
|
@@ -5466,7 +5482,7 @@ var Ks = h.forwardRef((e, t) => {
|
|
|
5466
5482
|
onThumbPointerUp: X(o),
|
|
5467
5483
|
onThumbPositionChange: te,
|
|
5468
5484
|
onThumbPointerDown: X(s),
|
|
5469
|
-
children: /* @__PURE__ */ w(
|
|
5485
|
+
children: /* @__PURE__ */ w(Ds.div, {
|
|
5470
5486
|
...f,
|
|
5471
5487
|
ref: _,
|
|
5472
5488
|
style: {
|
|
@@ -5483,24 +5499,24 @@ var Ks = h.forwardRef((e, t) => {
|
|
|
5483
5499
|
})
|
|
5484
5500
|
})
|
|
5485
5501
|
});
|
|
5486
|
-
}),
|
|
5487
|
-
let { forceMount: n, ...r } = e, i =
|
|
5488
|
-
return /* @__PURE__ */ w(
|
|
5502
|
+
}), ic = "ScrollAreaThumb", ac = h.forwardRef((e, t) => {
|
|
5503
|
+
let { forceMount: n, ...r } = e, i = nc(ic, e.__scopeScrollArea);
|
|
5504
|
+
return /* @__PURE__ */ w(js, {
|
|
5489
5505
|
present: n || i.hasThumb,
|
|
5490
|
-
children: /* @__PURE__ */ w(
|
|
5506
|
+
children: /* @__PURE__ */ w(oc, {
|
|
5491
5507
|
ref: t,
|
|
5492
5508
|
...r
|
|
5493
5509
|
})
|
|
5494
5510
|
});
|
|
5495
|
-
}),
|
|
5496
|
-
let { __scopeScrollArea: n, style: r, ...i } = e, a = Q(
|
|
5511
|
+
}), oc = h.forwardRef((e, t) => {
|
|
5512
|
+
let { __scopeScrollArea: n, style: r, ...i } = e, a = Q(ic, n), o = nc(ic, n), { onThumbPositionChange: s } = o, c = Y(t, (e) => o.onThumbChange(e)), l = h.useRef(void 0), u = vc(() => {
|
|
5497
5513
|
l.current && (l.current(), l.current = void 0);
|
|
5498
5514
|
}, 100);
|
|
5499
5515
|
return h.useEffect(() => {
|
|
5500
5516
|
let e = a.viewport;
|
|
5501
5517
|
if (e) {
|
|
5502
5518
|
let t = () => {
|
|
5503
|
-
u(), l.current || (l.current =
|
|
5519
|
+
u(), l.current || (l.current = _c(e, s), s());
|
|
5504
5520
|
};
|
|
5505
5521
|
return s(), e.addEventListener("scroll", t), () => e.removeEventListener("scroll", t);
|
|
5506
5522
|
}
|
|
@@ -5508,7 +5524,7 @@ var Ks = h.forwardRef((e, t) => {
|
|
|
5508
5524
|
a.viewport,
|
|
5509
5525
|
u,
|
|
5510
5526
|
s
|
|
5511
|
-
]), /* @__PURE__ */ w(
|
|
5527
|
+
]), /* @__PURE__ */ w(Ds.div, {
|
|
5512
5528
|
"data-state": o.hasThumb ? "visible" : "hidden",
|
|
5513
5529
|
...i,
|
|
5514
5530
|
ref: c,
|
|
@@ -5527,24 +5543,24 @@ var Ks = h.forwardRef((e, t) => {
|
|
|
5527
5543
|
onPointerUp: Z(e.onPointerUp, o.onThumbPointerUp)
|
|
5528
5544
|
});
|
|
5529
5545
|
});
|
|
5530
|
-
|
|
5531
|
-
var
|
|
5532
|
-
let n = Q(
|
|
5533
|
-
return n.type !== "scroll" && r ? /* @__PURE__ */ w(
|
|
5546
|
+
ac.displayName = ic;
|
|
5547
|
+
var sc = "ScrollAreaCorner", cc = h.forwardRef((e, t) => {
|
|
5548
|
+
let n = Q(sc, e.__scopeScrollArea), r = !!(n.scrollbarX && n.scrollbarY);
|
|
5549
|
+
return n.type !== "scroll" && r ? /* @__PURE__ */ w(lc, {
|
|
5534
5550
|
...e,
|
|
5535
5551
|
ref: t
|
|
5536
5552
|
}) : null;
|
|
5537
5553
|
});
|
|
5538
|
-
|
|
5539
|
-
var
|
|
5540
|
-
let { __scopeScrollArea: n, ...r } = e, i = Q(
|
|
5541
|
-
return
|
|
5554
|
+
cc.displayName = sc;
|
|
5555
|
+
var lc = h.forwardRef((e, t) => {
|
|
5556
|
+
let { __scopeScrollArea: n, ...r } = e, i = Q(sc, n), [a, o] = h.useState(0), [s, c] = h.useState(0), l = !!(a && s);
|
|
5557
|
+
return yc(i.scrollbarX, () => {
|
|
5542
5558
|
let e = i.scrollbarX?.offsetHeight || 0;
|
|
5543
5559
|
i.onCornerHeightChange(e), c(e);
|
|
5544
|
-
}),
|
|
5560
|
+
}), yc(i.scrollbarY, () => {
|
|
5545
5561
|
let e = i.scrollbarY?.offsetWidth || 0;
|
|
5546
5562
|
i.onCornerWidthChange(e), o(e);
|
|
5547
|
-
}), l ? /* @__PURE__ */ w(
|
|
5563
|
+
}), l ? /* @__PURE__ */ w(Ds.div, {
|
|
5548
5564
|
...r,
|
|
5549
5565
|
ref: t,
|
|
5550
5566
|
style: {
|
|
@@ -5558,36 +5574,36 @@ var oc = h.forwardRef((e, t) => {
|
|
|
5558
5574
|
}
|
|
5559
5575
|
}) : null;
|
|
5560
5576
|
});
|
|
5561
|
-
function
|
|
5577
|
+
function uc(e) {
|
|
5562
5578
|
return e ? parseInt(e, 10) : 0;
|
|
5563
5579
|
}
|
|
5564
|
-
function
|
|
5580
|
+
function dc(e, t) {
|
|
5565
5581
|
let n = e / t;
|
|
5566
5582
|
return isNaN(n) ? 0 : n;
|
|
5567
5583
|
}
|
|
5568
|
-
function
|
|
5569
|
-
let t =
|
|
5584
|
+
function fc(e) {
|
|
5585
|
+
let t = dc(e.viewport, e.content), n = e.scrollbar.paddingStart + e.scrollbar.paddingEnd, r = (e.scrollbar.size - n) * t;
|
|
5570
5586
|
return Math.max(r, 18);
|
|
5571
5587
|
}
|
|
5572
|
-
function
|
|
5573
|
-
let i =
|
|
5574
|
-
return
|
|
5588
|
+
function pc(e, t, n, r = "ltr") {
|
|
5589
|
+
let i = fc(n), a = i / 2, o = t || a, s = i - o, c = n.scrollbar.paddingStart + o, l = n.scrollbar.size - n.scrollbar.paddingEnd - s, u = n.content - n.viewport, d = r === "ltr" ? [0, u] : [u * -1, 0];
|
|
5590
|
+
return hc([c, l], d)(e);
|
|
5575
5591
|
}
|
|
5576
|
-
function
|
|
5577
|
-
let r =
|
|
5578
|
-
return
|
|
5592
|
+
function mc(e, t, n = "ltr") {
|
|
5593
|
+
let r = fc(t), i = t.scrollbar.paddingStart + t.scrollbar.paddingEnd, a = t.scrollbar.size - i, o = t.content - t.viewport, s = a - r, c = zs(e, n === "ltr" ? [0, o] : [o * -1, 0]);
|
|
5594
|
+
return hc([0, o], [0, s])(c);
|
|
5579
5595
|
}
|
|
5580
|
-
function
|
|
5596
|
+
function hc(e, t) {
|
|
5581
5597
|
return (n) => {
|
|
5582
5598
|
if (e[0] === e[1] || t[0] === t[1]) return t[0];
|
|
5583
5599
|
let r = (t[1] - t[0]) / (e[1] - e[0]);
|
|
5584
5600
|
return t[0] + r * (n - e[0]);
|
|
5585
5601
|
};
|
|
5586
5602
|
}
|
|
5587
|
-
function
|
|
5603
|
+
function gc(e, t) {
|
|
5588
5604
|
return e > 0 && e < t;
|
|
5589
5605
|
}
|
|
5590
|
-
var
|
|
5606
|
+
var _c = (e, t = () => {}) => {
|
|
5591
5607
|
let n = {
|
|
5592
5608
|
left: e.scrollLeft,
|
|
5593
5609
|
top: e.scrollTop
|
|
@@ -5600,15 +5616,15 @@ var mc = (e, t = () => {}) => {
|
|
|
5600
5616
|
(o || s) && t(), n = a, r = window.requestAnimationFrame(i);
|
|
5601
5617
|
})(), () => window.cancelAnimationFrame(r);
|
|
5602
5618
|
};
|
|
5603
|
-
function
|
|
5619
|
+
function vc(e, t) {
|
|
5604
5620
|
let n = X(e), r = h.useRef(0);
|
|
5605
5621
|
return h.useEffect(() => () => window.clearTimeout(r.current), []), h.useCallback(() => {
|
|
5606
5622
|
window.clearTimeout(r.current), r.current = window.setTimeout(n, t);
|
|
5607
5623
|
}, [n, t]);
|
|
5608
5624
|
}
|
|
5609
|
-
function
|
|
5625
|
+
function yc(e, t) {
|
|
5610
5626
|
let n = X(t);
|
|
5611
|
-
|
|
5627
|
+
ks(() => {
|
|
5612
5628
|
let t = 0;
|
|
5613
5629
|
if (e) {
|
|
5614
5630
|
let r = new ResizeObserver(() => {
|
|
@@ -5620,34 +5636,34 @@ function gc(e, t) {
|
|
|
5620
5636
|
}
|
|
5621
5637
|
}, [e, n]);
|
|
5622
5638
|
}
|
|
5623
|
-
var
|
|
5639
|
+
var bc = Gs, xc = qs, Sc = cc;
|
|
5624
5640
|
//#endregion
|
|
5625
5641
|
//#region components/ui/scroll-area.tsx
|
|
5626
|
-
function
|
|
5627
|
-
return /* @__PURE__ */ T(
|
|
5642
|
+
function Cc({ className: e, viewportRef: t, children: n, onScroll: r, ...i }) {
|
|
5643
|
+
return /* @__PURE__ */ T(bc, {
|
|
5628
5644
|
"data-slot": "scroll-area",
|
|
5629
5645
|
className: f("relative min-h-0 min-w-0 overflow-hidden", e),
|
|
5630
5646
|
...i,
|
|
5631
5647
|
children: [
|
|
5632
|
-
/* @__PURE__ */ w(
|
|
5648
|
+
/* @__PURE__ */ w(xc, {
|
|
5633
5649
|
ref: t,
|
|
5634
5650
|
"data-slot": "scroll-area-viewport",
|
|
5635
5651
|
onScroll: r,
|
|
5636
5652
|
className: f("h-full w-full rounded-[inherit]", "[&>div]:!block [&>div]:!w-full [&>div]:!max-w-full", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-wx-primary/40"),
|
|
5637
5653
|
children: n
|
|
5638
5654
|
}),
|
|
5639
|
-
/* @__PURE__ */ w(
|
|
5640
|
-
/* @__PURE__ */ w(
|
|
5655
|
+
/* @__PURE__ */ w(wc, {}),
|
|
5656
|
+
/* @__PURE__ */ w(Sc, {})
|
|
5641
5657
|
]
|
|
5642
5658
|
});
|
|
5643
5659
|
}
|
|
5644
|
-
function
|
|
5645
|
-
return /* @__PURE__ */ w(
|
|
5660
|
+
function wc({ className: e, orientation: t = "vertical", ...n }) {
|
|
5661
|
+
return /* @__PURE__ */ w(Js, {
|
|
5646
5662
|
"data-slot": "scroll-area-scrollbar",
|
|
5647
5663
|
orientation: t,
|
|
5648
5664
|
className: f("flex touch-none select-none transition-opacity duration-150", "opacity-0 data-[state=visible]:opacity-100", "hover:opacity-100", t === "vertical" && "h-full w-1.5 border-l border-l-transparent p-px", t === "horizontal" && "h-1.5 flex-col border-t border-t-transparent p-px", e),
|
|
5649
5665
|
...n,
|
|
5650
|
-
children: /* @__PURE__ */ w(
|
|
5666
|
+
children: /* @__PURE__ */ w(ac, {
|
|
5651
5667
|
"data-slot": "scroll-area-thumb",
|
|
5652
5668
|
className: f("relative flex-1 rounded-full", "bg-wx-fg-muted/40 hover:bg-wx-fg-muted/60 transition-colors")
|
|
5653
5669
|
})
|
|
@@ -5655,7 +5671,7 @@ function xc({ className: e, orientation: t = "vertical", ...n }) {
|
|
|
5655
5671
|
}
|
|
5656
5672
|
//#endregion
|
|
5657
5673
|
//#region components/widget/tabs/messages-tab/message/media-lightbox.tsx
|
|
5658
|
-
function
|
|
5674
|
+
function Tc({ items: e, initialIndex: t, open: r, onClose: i }) {
|
|
5659
5675
|
let a = d("lightbox"), [o, s] = C(t), c = Ao(), l = !(c.embedded ?? !1) || (c.lightboxViewport ?? !0);
|
|
5660
5676
|
b(() => {
|
|
5661
5677
|
r && s(t);
|
|
@@ -5701,7 +5717,7 @@ function Sc({ items: e, initialIndex: t, open: r, onClose: i }) {
|
|
|
5701
5717
|
},
|
|
5702
5718
|
"aria-label": a("close"),
|
|
5703
5719
|
className: f("absolute top-4 right-4 z-10 flex h-9 w-9 items-center justify-center rounded-full", "bg-white/10 text-white transition-colors hover:bg-white/20"),
|
|
5704
|
-
children: /* @__PURE__ */ w(
|
|
5720
|
+
children: /* @__PURE__ */ w(ds, { size: 18 })
|
|
5705
5721
|
}),
|
|
5706
5722
|
u > 1 && /* @__PURE__ */ T(ie, { children: [/* @__PURE__ */ w("button", {
|
|
5707
5723
|
type: "button",
|
|
@@ -5710,7 +5726,7 @@ function Sc({ items: e, initialIndex: t, open: r, onClose: i }) {
|
|
|
5710
5726
|
},
|
|
5711
5727
|
"aria-label": a("previous"),
|
|
5712
5728
|
className: f("absolute left-4 top-1/2 z-10 -translate-y-1/2 flex h-10 w-10 items-center justify-center rounded-full", "bg-white/10 text-white transition-colors hover:bg-white/20"),
|
|
5713
|
-
children: /* @__PURE__ */ w(
|
|
5729
|
+
children: /* @__PURE__ */ w(ls, { size: 20 })
|
|
5714
5730
|
}), /* @__PURE__ */ w("button", {
|
|
5715
5731
|
type: "button",
|
|
5716
5732
|
onClick: (e) => {
|
|
@@ -5718,7 +5734,7 @@ function Sc({ items: e, initialIndex: t, open: r, onClose: i }) {
|
|
|
5718
5734
|
},
|
|
5719
5735
|
"aria-label": a("next"),
|
|
5720
5736
|
className: f("absolute right-4 top-1/2 z-10 -translate-y-1/2 flex h-10 w-10 items-center justify-center rounded-full", "bg-white/10 text-white transition-colors hover:bg-white/20"),
|
|
5721
|
-
children: /* @__PURE__ */ w(
|
|
5737
|
+
children: /* @__PURE__ */ w(us, { size: 20 })
|
|
5722
5738
|
})] }),
|
|
5723
5739
|
/* @__PURE__ */ w(n.div, {
|
|
5724
5740
|
initial: {
|
|
@@ -5780,7 +5796,7 @@ function Sc({ items: e, initialIndex: t, open: r, onClose: i }) {
|
|
|
5780
5796
|
}
|
|
5781
5797
|
//#endregion
|
|
5782
5798
|
//#region lib/content-languages.ts
|
|
5783
|
-
var
|
|
5799
|
+
var Ec = [
|
|
5784
5800
|
{
|
|
5785
5801
|
value: "en",
|
|
5786
5802
|
label: "English"
|
|
@@ -5914,13 +5930,13 @@ var Cc = [
|
|
|
5914
5930
|
label: "中文(繁體)"
|
|
5915
5931
|
}
|
|
5916
5932
|
];
|
|
5917
|
-
function
|
|
5918
|
-
let t =
|
|
5933
|
+
function Dc(e) {
|
|
5934
|
+
let t = Ec.find((t) => t.value === e);
|
|
5919
5935
|
if (t) return t.label;
|
|
5920
|
-
let n = e.split("-")[0].toLowerCase(), r =
|
|
5936
|
+
let n = e.split("-")[0].toLowerCase(), r = Ec.find((e) => e.value === n);
|
|
5921
5937
|
return r ? r.label : n.toUpperCase();
|
|
5922
5938
|
}
|
|
5923
5939
|
//#endregion
|
|
5924
|
-
export { H as $,
|
|
5940
|
+
export { H as $, Rt as $t, mo as A, nr as At, ba as B, un as Bt, Zo as C, cr as Ct, Ao as D, Wn as Dt, ko as E, ur as Et, Ja as F, En as Ft, fa as G, $t as Gt, G as H, dn as Ht, Za as I, Tn as It, ua as J, Gt as Jt, ca as K, en as Kt, J as L, Cn as Lt, oo as M, kn as Mt, no as N, Dn as Nt, Eo as O, Un as Ot, co as P, On as Pt, V as Q, Lt as Qt, Ha as R, bn as Rt, Qo as S, ar as St, Po as T, lr as Tt, _a as U, sn as Ut, Sa as V, cn as Vt, pa as W, nn as Wt, Ji as X, Vt as Xt, W as Y, Ht as Yt, qi as Z, Bt as Zt, Y as _, _r as _t, zs as a, Ce as an, Fi as at, cs as b, hr as bt, Fs as c, ye as cn, ii as ct, Os as d, ce as dn, $r as dt, nt as en, Gi as et, ms as f, de as fn, Tr as ft, ps as g, mr as gt, _s as h, gr as ht, Z as i, Te as in, Ii as it, to as j, zn as jt, wo as k, sr as kt, ks as l, E as ln, ai as lt, vs as m, D as mn, vr as mt, Tc as n, Ae as nn, Ri as nt, Rs as o, Se as on, ji as ot, ys as p, le as pn, dr as pt, la as q, Xt as qt, Cc as r, A as rn, Li as rt, X as s, k as sn, Oi as st, Dc as t, M as tn, zi as tt, Ds as u, ue as un, ri as ut, ds as v, fr as vt, qo as w, Gn as wt, ss as x, or as xt, us as y, pr as yt, Na as z, ln as zt };
|
|
5925
5941
|
|
|
5926
|
-
//# sourceMappingURL=widget-react-
|
|
5942
|
+
//# sourceMappingURL=widget-react-CQ4e_16G.js.map
|