antd-mobile 5.34.0 → 5.35.0
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/2x/bundle/antd-mobile.cjs.development.js +427 -1385
- package/2x/bundle/antd-mobile.cjs.js +7 -7
- package/2x/bundle/antd-mobile.es.development.js +428 -1386
- package/2x/bundle/antd-mobile.es.js +6409 -7003
- package/2x/bundle/antd-mobile.umd.development.js +427 -1385
- package/2x/bundle/antd-mobile.umd.js +7 -7
- package/2x/bundle/css-vars-patch.css +3 -3
- package/2x/bundle/style.css +6 -10
- package/2x/cjs/components/button/button.d.ts +1 -1
- package/2x/cjs/components/button/button.patch.css +3 -3
- package/2x/cjs/components/cascader-view/use-cascader-value-extend.js +10 -5
- package/2x/cjs/components/checkbox/native-input.js +1 -1
- package/2x/cjs/components/config-provider/config-provider.d.ts +3 -2
- package/2x/cjs/components/error-block/create-error-block.d.ts +1 -0
- package/2x/cjs/components/error-block/create-error-block.js +1 -0
- package/2x/cjs/components/error-block/index.d.ts +0 -1
- package/2x/cjs/components/error-block/index.js +2 -3
- package/2x/cjs/components/form/form-item.js +1 -0
- package/2x/cjs/components/form/form.js +2 -2
- package/2x/cjs/components/infinite-scroll/infinite-scroll.js +8 -4
- package/2x/cjs/components/picker-view/wheel.js +7 -4
- package/2x/cjs/components/popover/index.d.ts +1 -1
- package/2x/cjs/components/popover/popover.d.ts +1 -1
- package/2x/cjs/components/radio/radio.css +1 -1
- package/2x/cjs/components/radio/radio.d.ts +1 -1
- package/2x/cjs/components/radio/radio.js +5 -5
- package/2x/cjs/components/result-page/result-page.css +5 -5
- package/2x/cjs/components/swipe-action/swipe-action.d.ts +1 -1
- package/2x/cjs/components/text-area/text-area.css +0 -4
- package/2x/cjs/global/css-vars-patch.css +3 -3
- package/2x/cjs/index.d.ts +1 -1
- package/2x/cjs/index.js +6 -0
- package/2x/cjs/locales/hu-HU.d.ts +139 -0
- package/2x/cjs/locales/hu-HU.js +148 -0
- package/2x/cjs/locales/th-TH.d.ts +139 -0
- package/2x/cjs/locales/th-TH.js +149 -0
- package/2x/cjs/utils/with-default-props.js +8 -9
- package/2x/cjs/utils/with-stop-propagation.d.ts +1 -1
- package/2x/cjs/utils/with-stop-propagation.js +2 -1
- package/2x/es/components/button/button.d.ts +1 -1
- package/2x/es/components/button/button.patch.css +3 -3
- package/2x/es/components/cascader-view/use-cascader-value-extend.js +8 -3
- package/2x/es/components/checkbox/native-input.js +1 -1
- package/2x/es/components/config-provider/config-provider.d.ts +3 -2
- package/2x/es/components/error-block/create-error-block.d.ts +1 -0
- package/2x/es/components/error-block/create-error-block.js +1 -0
- package/2x/es/components/error-block/index.d.ts +0 -1
- package/2x/es/components/error-block/index.js +0 -1
- package/2x/es/components/form/form-item.js +1 -0
- package/2x/es/components/form/form.js +2 -2
- package/2x/es/components/infinite-scroll/infinite-scroll.js +8 -4
- package/2x/es/components/picker-view/wheel.js +6 -3
- package/2x/es/components/popover/index.d.ts +1 -1
- package/2x/es/components/popover/popover.d.ts +1 -1
- package/2x/es/components/radio/radio.css +1 -1
- package/2x/es/components/radio/radio.d.ts +1 -1
- package/2x/es/components/radio/radio.js +4 -4
- package/2x/es/components/result-page/result-page.css +5 -5
- package/2x/es/components/swipe-action/swipe-action.d.ts +1 -1
- package/2x/es/components/text-area/text-area.css +0 -4
- package/2x/es/global/css-vars-patch.css +3 -3
- package/2x/es/index.d.ts +1 -1
- package/2x/es/index.js +1 -1
- package/2x/es/locales/hu-HU.d.ts +139 -0
- package/2x/es/locales/hu-HU.js +140 -0
- package/2x/es/locales/th-TH.d.ts +139 -0
- package/2x/es/locales/th-TH.js +142 -0
- package/2x/es/utils/with-default-props.js +8 -8
- package/2x/es/utils/with-stop-propagation.d.ts +1 -1
- package/2x/es/utils/with-stop-propagation.js +2 -1
- package/2x/package.json +11 -3
- package/bundle/antd-mobile.cjs.development.js +427 -1385
- package/bundle/antd-mobile.cjs.js +7 -7
- package/bundle/antd-mobile.compatible.umd.js +1 -1
- package/bundle/antd-mobile.es.development.js +428 -1386
- package/bundle/antd-mobile.es.js +6409 -7003
- package/bundle/antd-mobile.umd.development.js +427 -1385
- package/bundle/antd-mobile.umd.js +7 -7
- package/bundle/css-vars-patch.css +3 -3
- package/bundle/style.css +1 -1
- package/cjs/components/button/button.d.ts +1 -1
- package/cjs/components/button/button.patch.css +3 -3
- package/cjs/components/cascader-view/use-cascader-value-extend.js +10 -5
- package/cjs/components/checkbox/native-input.js +1 -1
- package/cjs/components/config-provider/config-provider.d.ts +3 -2
- package/cjs/components/error-block/create-error-block.d.ts +1 -0
- package/cjs/components/error-block/create-error-block.js +1 -0
- package/cjs/components/error-block/index.d.ts +0 -1
- package/cjs/components/error-block/index.js +2 -3
- package/cjs/components/form/form-item.js +1 -0
- package/cjs/components/form/form.js +2 -2
- package/cjs/components/infinite-scroll/infinite-scroll.js +8 -4
- package/cjs/components/picker-view/wheel.js +7 -4
- package/cjs/components/popover/index.d.ts +1 -1
- package/cjs/components/popover/popover.d.ts +1 -1
- package/cjs/components/radio/radio.css +1 -1
- package/cjs/components/radio/radio.d.ts +1 -1
- package/cjs/components/radio/radio.js +5 -5
- package/cjs/components/result-page/result-page.css +5 -5
- package/cjs/components/swipe-action/swipe-action.d.ts +1 -1
- package/cjs/components/text-area/text-area.css +0 -3
- package/cjs/global/css-vars-patch.css +3 -3
- package/cjs/index.d.ts +1 -1
- package/cjs/index.js +6 -0
- package/cjs/locales/hu-HU.d.ts +139 -0
- package/cjs/locales/hu-HU.js +148 -0
- package/cjs/locales/th-TH.d.ts +139 -0
- package/cjs/locales/th-TH.js +149 -0
- package/cjs/utils/with-default-props.js +8 -9
- package/cjs/utils/with-stop-propagation.d.ts +1 -1
- package/cjs/utils/with-stop-propagation.js +2 -1
- package/es/components/button/button.d.ts +1 -1
- package/es/components/button/button.patch.css +3 -3
- package/es/components/cascader-view/use-cascader-value-extend.js +8 -3
- package/es/components/checkbox/native-input.js +1 -1
- package/es/components/config-provider/config-provider.d.ts +3 -2
- package/es/components/error-block/create-error-block.d.ts +1 -0
- package/es/components/error-block/create-error-block.js +1 -0
- package/es/components/error-block/index.d.ts +0 -1
- package/es/components/error-block/index.js +0 -1
- package/es/components/form/form-item.js +1 -0
- package/es/components/form/form.js +2 -2
- package/es/components/infinite-scroll/infinite-scroll.js +8 -4
- package/es/components/picker-view/wheel.js +6 -3
- package/es/components/popover/index.d.ts +1 -1
- package/es/components/popover/popover.d.ts +1 -1
- package/es/components/radio/radio.css +1 -1
- package/es/components/radio/radio.d.ts +1 -1
- package/es/components/radio/radio.js +4 -4
- package/es/components/result-page/result-page.css +5 -5
- package/es/components/swipe-action/swipe-action.d.ts +1 -1
- package/es/components/text-area/text-area.css +0 -3
- package/es/global/css-vars-patch.css +3 -3
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/locales/hu-HU.d.ts +139 -0
- package/es/locales/hu-HU.js +140 -0
- package/es/locales/th-TH.d.ts +139 -0
- package/es/locales/th-TH.js +142 -0
- package/es/utils/with-default-props.js +8 -8
- package/es/utils/with-stop-propagation.d.ts +1 -1
- package/es/utils/with-stop-propagation.js +2 -1
- package/package.json +11 -3
- package/umd/antd-mobile.js +1 -1
|
@@ -603,466 +603,15 @@
|
|
|
603
603
|
}
|
|
604
604
|
return React$1.cloneElement(element, p);
|
|
605
605
|
}
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
var root$8 = _root;
|
|
613
|
-
var Symbol$4 = root$8.Symbol;
|
|
614
|
-
var _Symbol = Symbol$4;
|
|
615
|
-
var Symbol$3 = _Symbol;
|
|
616
|
-
var objectProto$e = Object.prototype;
|
|
617
|
-
var hasOwnProperty$b = objectProto$e.hasOwnProperty;
|
|
618
|
-
var nativeObjectToString$1 = objectProto$e.toString;
|
|
619
|
-
var symToStringTag$1 = Symbol$3 ? Symbol$3.toStringTag : void 0;
|
|
620
|
-
function getRawTag$1(value) {
|
|
621
|
-
var isOwn = hasOwnProperty$b.call(value, symToStringTag$1), tag = value[symToStringTag$1];
|
|
622
|
-
try {
|
|
623
|
-
value[symToStringTag$1] = void 0;
|
|
624
|
-
var unmasked = true;
|
|
625
|
-
} catch (e2) {
|
|
626
|
-
}
|
|
627
|
-
var result = nativeObjectToString$1.call(value);
|
|
628
|
-
if (unmasked) {
|
|
629
|
-
if (isOwn) {
|
|
630
|
-
value[symToStringTag$1] = tag;
|
|
631
|
-
} else {
|
|
632
|
-
delete value[symToStringTag$1];
|
|
633
|
-
}
|
|
634
|
-
}
|
|
635
|
-
return result;
|
|
636
|
-
}
|
|
637
|
-
var _getRawTag = getRawTag$1;
|
|
638
|
-
var objectProto$d = Object.prototype;
|
|
639
|
-
var nativeObjectToString = objectProto$d.toString;
|
|
640
|
-
function objectToString$1(value) {
|
|
641
|
-
return nativeObjectToString.call(value);
|
|
642
|
-
}
|
|
643
|
-
var _objectToString = objectToString$1;
|
|
644
|
-
var Symbol$2 = _Symbol, getRawTag = _getRawTag, objectToString = _objectToString;
|
|
645
|
-
var nullTag = "[object Null]", undefinedTag = "[object Undefined]";
|
|
646
|
-
var symToStringTag = Symbol$2 ? Symbol$2.toStringTag : void 0;
|
|
647
|
-
function baseGetTag$6(value) {
|
|
648
|
-
if (value == null) {
|
|
649
|
-
return value === void 0 ? undefinedTag : nullTag;
|
|
650
|
-
}
|
|
651
|
-
return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value);
|
|
652
|
-
}
|
|
653
|
-
var _baseGetTag = baseGetTag$6;
|
|
654
|
-
function isObject$b(value) {
|
|
655
|
-
var type = typeof value;
|
|
656
|
-
return value != null && (type == "object" || type == "function");
|
|
657
|
-
}
|
|
658
|
-
var isObject_1 = isObject$b;
|
|
659
|
-
var baseGetTag$5 = _baseGetTag, isObject$a = isObject_1;
|
|
660
|
-
var asyncTag = "[object AsyncFunction]", funcTag$1 = "[object Function]", genTag = "[object GeneratorFunction]", proxyTag = "[object Proxy]";
|
|
661
|
-
function isFunction$4(value) {
|
|
662
|
-
if (!isObject$a(value)) {
|
|
663
|
-
return false;
|
|
664
|
-
}
|
|
665
|
-
var tag = baseGetTag$5(value);
|
|
666
|
-
return tag == funcTag$1 || tag == genTag || tag == asyncTag || tag == proxyTag;
|
|
667
|
-
}
|
|
668
|
-
var isFunction_1 = isFunction$4;
|
|
669
|
-
var root$7 = _root;
|
|
670
|
-
var coreJsData$1 = root$7["__core-js_shared__"];
|
|
671
|
-
var _coreJsData = coreJsData$1;
|
|
672
|
-
var coreJsData = _coreJsData;
|
|
673
|
-
var maskSrcKey = function() {
|
|
674
|
-
var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || "");
|
|
675
|
-
return uid ? "Symbol(src)_1." + uid : "";
|
|
676
|
-
}();
|
|
677
|
-
function isMasked$1(func) {
|
|
678
|
-
return !!maskSrcKey && maskSrcKey in func;
|
|
679
|
-
}
|
|
680
|
-
var _isMasked = isMasked$1;
|
|
681
|
-
var funcProto$2 = Function.prototype;
|
|
682
|
-
var funcToString$2 = funcProto$2.toString;
|
|
683
|
-
function toSource$2(func) {
|
|
684
|
-
if (func != null) {
|
|
685
|
-
try {
|
|
686
|
-
return funcToString$2.call(func);
|
|
687
|
-
} catch (e2) {
|
|
688
|
-
}
|
|
689
|
-
try {
|
|
690
|
-
return func + "";
|
|
691
|
-
} catch (e2) {
|
|
692
|
-
}
|
|
693
|
-
}
|
|
694
|
-
return "";
|
|
695
|
-
}
|
|
696
|
-
var _toSource = toSource$2;
|
|
697
|
-
var isFunction$3 = isFunction_1, isMasked = _isMasked, isObject$9 = isObject_1, toSource$1 = _toSource;
|
|
698
|
-
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
|
|
699
|
-
var reIsHostCtor = /^\[object .+?Constructor\]$/;
|
|
700
|
-
var funcProto$1 = Function.prototype, objectProto$c = Object.prototype;
|
|
701
|
-
var funcToString$1 = funcProto$1.toString;
|
|
702
|
-
var hasOwnProperty$a = objectProto$c.hasOwnProperty;
|
|
703
|
-
var reIsNative = RegExp(
|
|
704
|
-
"^" + funcToString$1.call(hasOwnProperty$a).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
705
|
-
);
|
|
706
|
-
function baseIsNative$1(value) {
|
|
707
|
-
if (!isObject$9(value) || isMasked(value)) {
|
|
708
|
-
return false;
|
|
709
|
-
}
|
|
710
|
-
var pattern = isFunction$3(value) ? reIsNative : reIsHostCtor;
|
|
711
|
-
return pattern.test(toSource$1(value));
|
|
712
|
-
}
|
|
713
|
-
var _baseIsNative = baseIsNative$1;
|
|
714
|
-
function getValue$3(object, key) {
|
|
715
|
-
return object == null ? void 0 : object[key];
|
|
716
|
-
}
|
|
717
|
-
var _getValue = getValue$3;
|
|
718
|
-
var baseIsNative = _baseIsNative, getValue$2 = _getValue;
|
|
719
|
-
function getNative$7(object, key) {
|
|
720
|
-
var value = getValue$2(object, key);
|
|
721
|
-
return baseIsNative(value) ? value : void 0;
|
|
722
|
-
}
|
|
723
|
-
var _getNative = getNative$7;
|
|
724
|
-
var getNative$6 = _getNative;
|
|
725
|
-
var defineProperty$2 = function() {
|
|
726
|
-
try {
|
|
727
|
-
var func = getNative$6(Object, "defineProperty");
|
|
728
|
-
func({}, "", {});
|
|
729
|
-
return func;
|
|
730
|
-
} catch (e2) {
|
|
731
|
-
}
|
|
732
|
-
}();
|
|
733
|
-
var _defineProperty$2 = defineProperty$2;
|
|
734
|
-
var defineProperty$1 = _defineProperty$2;
|
|
735
|
-
function baseAssignValue$3(object, key, value) {
|
|
736
|
-
if (key == "__proto__" && defineProperty$1) {
|
|
737
|
-
defineProperty$1(object, key, {
|
|
738
|
-
"configurable": true,
|
|
739
|
-
"enumerable": true,
|
|
740
|
-
"value": value,
|
|
741
|
-
"writable": true
|
|
742
|
-
});
|
|
743
|
-
} else {
|
|
744
|
-
object[key] = value;
|
|
745
|
-
}
|
|
746
|
-
}
|
|
747
|
-
var _baseAssignValue = baseAssignValue$3;
|
|
748
|
-
function eq$5(value, other) {
|
|
749
|
-
return value === other || value !== value && other !== other;
|
|
750
|
-
}
|
|
751
|
-
var eq_1 = eq$5;
|
|
752
|
-
var baseAssignValue$2 = _baseAssignValue, eq$4 = eq_1;
|
|
753
|
-
var objectProto$b = Object.prototype;
|
|
754
|
-
var hasOwnProperty$9 = objectProto$b.hasOwnProperty;
|
|
755
|
-
function assignValue$1(object, key, value) {
|
|
756
|
-
var objValue = object[key];
|
|
757
|
-
if (!(hasOwnProperty$9.call(object, key) && eq$4(objValue, value)) || value === void 0 && !(key in object)) {
|
|
758
|
-
baseAssignValue$2(object, key, value);
|
|
759
|
-
}
|
|
760
|
-
}
|
|
761
|
-
var _assignValue = assignValue$1;
|
|
762
|
-
var assignValue = _assignValue, baseAssignValue$1 = _baseAssignValue;
|
|
763
|
-
function copyObject$2(source, props, object, customizer) {
|
|
764
|
-
var isNew = !object;
|
|
765
|
-
object || (object = {});
|
|
766
|
-
var index2 = -1, length = props.length;
|
|
767
|
-
while (++index2 < length) {
|
|
768
|
-
var key = props[index2];
|
|
769
|
-
var newValue = customizer ? customizer(object[key], source[key], key, object, source) : void 0;
|
|
770
|
-
if (newValue === void 0) {
|
|
771
|
-
newValue = source[key];
|
|
772
|
-
}
|
|
773
|
-
if (isNew) {
|
|
774
|
-
baseAssignValue$1(object, key, newValue);
|
|
775
|
-
} else {
|
|
776
|
-
assignValue(object, key, newValue);
|
|
777
|
-
}
|
|
778
|
-
}
|
|
779
|
-
return object;
|
|
780
|
-
}
|
|
781
|
-
var _copyObject = copyObject$2;
|
|
782
|
-
function identity$3(value) {
|
|
783
|
-
return value;
|
|
784
|
-
}
|
|
785
|
-
var identity_1 = identity$3;
|
|
786
|
-
function apply$2(func, thisArg, args) {
|
|
787
|
-
switch (args.length) {
|
|
788
|
-
case 0:
|
|
789
|
-
return func.call(thisArg);
|
|
790
|
-
case 1:
|
|
791
|
-
return func.call(thisArg, args[0]);
|
|
792
|
-
case 2:
|
|
793
|
-
return func.call(thisArg, args[0], args[1]);
|
|
794
|
-
case 3:
|
|
795
|
-
return func.call(thisArg, args[0], args[1], args[2]);
|
|
796
|
-
}
|
|
797
|
-
return func.apply(thisArg, args);
|
|
798
|
-
}
|
|
799
|
-
var _apply = apply$2;
|
|
800
|
-
var apply$1 = _apply;
|
|
801
|
-
var nativeMax$1 = Math.max;
|
|
802
|
-
function overRest$1(func, start2, transform) {
|
|
803
|
-
start2 = nativeMax$1(start2 === void 0 ? func.length - 1 : start2, 0);
|
|
804
|
-
return function() {
|
|
805
|
-
var args = arguments, index2 = -1, length = nativeMax$1(args.length - start2, 0), array = Array(length);
|
|
806
|
-
while (++index2 < length) {
|
|
807
|
-
array[index2] = args[start2 + index2];
|
|
808
|
-
}
|
|
809
|
-
index2 = -1;
|
|
810
|
-
var otherArgs = Array(start2 + 1);
|
|
811
|
-
while (++index2 < start2) {
|
|
812
|
-
otherArgs[index2] = args[index2];
|
|
813
|
-
}
|
|
814
|
-
otherArgs[start2] = transform(array);
|
|
815
|
-
return apply$1(func, this, otherArgs);
|
|
816
|
-
};
|
|
817
|
-
}
|
|
818
|
-
var _overRest = overRest$1;
|
|
819
|
-
function constant$1(value) {
|
|
820
|
-
return function() {
|
|
821
|
-
return value;
|
|
822
|
-
};
|
|
823
|
-
}
|
|
824
|
-
var constant_1 = constant$1;
|
|
825
|
-
var constant = constant_1, defineProperty = _defineProperty$2, identity$2 = identity_1;
|
|
826
|
-
var baseSetToString$1 = !defineProperty ? identity$2 : function(func, string2) {
|
|
827
|
-
return defineProperty(func, "toString", {
|
|
828
|
-
"configurable": true,
|
|
829
|
-
"enumerable": false,
|
|
830
|
-
"value": constant(string2),
|
|
831
|
-
"writable": true
|
|
832
|
-
});
|
|
833
|
-
};
|
|
834
|
-
var _baseSetToString = baseSetToString$1;
|
|
835
|
-
var HOT_COUNT = 800, HOT_SPAN = 16;
|
|
836
|
-
var nativeNow = Date.now;
|
|
837
|
-
function shortOut$1(func) {
|
|
838
|
-
var count = 0, lastCalled = 0;
|
|
839
|
-
return function() {
|
|
840
|
-
var stamp = nativeNow(), remaining = HOT_SPAN - (stamp - lastCalled);
|
|
841
|
-
lastCalled = stamp;
|
|
842
|
-
if (remaining > 0) {
|
|
843
|
-
if (++count >= HOT_COUNT) {
|
|
844
|
-
return arguments[0];
|
|
845
|
-
}
|
|
846
|
-
} else {
|
|
847
|
-
count = 0;
|
|
848
|
-
}
|
|
849
|
-
return func.apply(void 0, arguments);
|
|
850
|
-
};
|
|
851
|
-
}
|
|
852
|
-
var _shortOut = shortOut$1;
|
|
853
|
-
var baseSetToString = _baseSetToString, shortOut = _shortOut;
|
|
854
|
-
var setToString$1 = shortOut(baseSetToString);
|
|
855
|
-
var _setToString = setToString$1;
|
|
856
|
-
var identity$1 = identity_1, overRest = _overRest, setToString = _setToString;
|
|
857
|
-
function baseRest$1(func, start2) {
|
|
858
|
-
return setToString(overRest(func, start2, identity$1), func + "");
|
|
859
|
-
}
|
|
860
|
-
var _baseRest = baseRest$1;
|
|
861
|
-
var MAX_SAFE_INTEGER$1 = 9007199254740991;
|
|
862
|
-
function isLength$2(value) {
|
|
863
|
-
return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER$1;
|
|
864
|
-
}
|
|
865
|
-
var isLength_1 = isLength$2;
|
|
866
|
-
var isFunction$2 = isFunction_1, isLength$1 = isLength_1;
|
|
867
|
-
function isArrayLike$4(value) {
|
|
868
|
-
return value != null && isLength$1(value.length) && !isFunction$2(value);
|
|
869
|
-
}
|
|
870
|
-
var isArrayLike_1 = isArrayLike$4;
|
|
871
|
-
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
872
|
-
var reIsUint = /^(?:0|[1-9]\d*)$/;
|
|
873
|
-
function isIndex$2(value, length) {
|
|
874
|
-
var type = typeof value;
|
|
875
|
-
length = length == null ? MAX_SAFE_INTEGER : length;
|
|
876
|
-
return !!length && (type == "number" || type != "symbol" && reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length);
|
|
877
|
-
}
|
|
878
|
-
var _isIndex = isIndex$2;
|
|
879
|
-
var eq$3 = eq_1, isArrayLike$3 = isArrayLike_1, isIndex$1 = _isIndex, isObject$8 = isObject_1;
|
|
880
|
-
function isIterateeCall$1(value, index2, object) {
|
|
881
|
-
if (!isObject$8(object)) {
|
|
882
|
-
return false;
|
|
883
|
-
}
|
|
884
|
-
var type = typeof index2;
|
|
885
|
-
if (type == "number" ? isArrayLike$3(object) && isIndex$1(index2, object.length) : type == "string" && index2 in object) {
|
|
886
|
-
return eq$3(object[index2], value);
|
|
887
|
-
}
|
|
888
|
-
return false;
|
|
889
|
-
}
|
|
890
|
-
var _isIterateeCall = isIterateeCall$1;
|
|
891
|
-
var baseRest = _baseRest, isIterateeCall = _isIterateeCall;
|
|
892
|
-
function createAssigner$2(assigner) {
|
|
893
|
-
return baseRest(function(object, sources) {
|
|
894
|
-
var index2 = -1, length = sources.length, customizer = length > 1 ? sources[length - 1] : void 0, guard = length > 2 ? sources[2] : void 0;
|
|
895
|
-
customizer = assigner.length > 3 && typeof customizer == "function" ? (length--, customizer) : void 0;
|
|
896
|
-
if (guard && isIterateeCall(sources[0], sources[1], guard)) {
|
|
897
|
-
customizer = length < 3 ? void 0 : customizer;
|
|
898
|
-
length = 1;
|
|
899
|
-
}
|
|
900
|
-
object = Object(object);
|
|
901
|
-
while (++index2 < length) {
|
|
902
|
-
var source = sources[index2];
|
|
903
|
-
if (source) {
|
|
904
|
-
assigner(object, source, index2, customizer);
|
|
606
|
+
function mergeProps(...items) {
|
|
607
|
+
const ret = {};
|
|
608
|
+
items.forEach((item) => {
|
|
609
|
+
Object.keys(item).forEach((key) => {
|
|
610
|
+
if (item[key] !== void 0) {
|
|
611
|
+
ret[key] = item[key];
|
|
905
612
|
}
|
|
906
|
-
}
|
|
907
|
-
return object;
|
|
613
|
+
});
|
|
908
614
|
});
|
|
909
|
-
}
|
|
910
|
-
var _createAssigner = createAssigner$2;
|
|
911
|
-
function baseTimes$1(n2, iteratee) {
|
|
912
|
-
var index2 = -1, result = Array(n2);
|
|
913
|
-
while (++index2 < n2) {
|
|
914
|
-
result[index2] = iteratee(index2);
|
|
915
|
-
}
|
|
916
|
-
return result;
|
|
917
|
-
}
|
|
918
|
-
var _baseTimes = baseTimes$1;
|
|
919
|
-
function isObjectLike$7(value) {
|
|
920
|
-
return value != null && typeof value == "object";
|
|
921
|
-
}
|
|
922
|
-
var isObjectLike_1 = isObjectLike$7;
|
|
923
|
-
var baseGetTag$4 = _baseGetTag, isObjectLike$6 = isObjectLike_1;
|
|
924
|
-
var argsTag$2 = "[object Arguments]";
|
|
925
|
-
function baseIsArguments$1(value) {
|
|
926
|
-
return isObjectLike$6(value) && baseGetTag$4(value) == argsTag$2;
|
|
927
|
-
}
|
|
928
|
-
var _baseIsArguments = baseIsArguments$1;
|
|
929
|
-
var baseIsArguments = _baseIsArguments, isObjectLike$5 = isObjectLike_1;
|
|
930
|
-
var objectProto$a = Object.prototype;
|
|
931
|
-
var hasOwnProperty$8 = objectProto$a.hasOwnProperty;
|
|
932
|
-
var propertyIsEnumerable$1 = objectProto$a.propertyIsEnumerable;
|
|
933
|
-
var isArguments$2 = baseIsArguments(/* @__PURE__ */ function() {
|
|
934
|
-
return arguments;
|
|
935
|
-
}()) ? baseIsArguments : function(value) {
|
|
936
|
-
return isObjectLike$5(value) && hasOwnProperty$8.call(value, "callee") && !propertyIsEnumerable$1.call(value, "callee");
|
|
937
|
-
};
|
|
938
|
-
var isArguments_1 = isArguments$2;
|
|
939
|
-
var isArray$4 = Array.isArray;
|
|
940
|
-
var isArray_1 = isArray$4;
|
|
941
|
-
var isBuffer$3 = { exports: {} };
|
|
942
|
-
function stubFalse() {
|
|
943
|
-
return false;
|
|
944
|
-
}
|
|
945
|
-
var stubFalse_1 = stubFalse;
|
|
946
|
-
isBuffer$3.exports;
|
|
947
|
-
(function(module2, exports3) {
|
|
948
|
-
var root2 = _root, stubFalse2 = stubFalse_1;
|
|
949
|
-
var freeExports = exports3 && !exports3.nodeType && exports3;
|
|
950
|
-
var freeModule = freeExports && true && module2 && !module2.nodeType && module2;
|
|
951
|
-
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
952
|
-
var Buffer = moduleExports ? root2.Buffer : void 0;
|
|
953
|
-
var nativeIsBuffer = Buffer ? Buffer.isBuffer : void 0;
|
|
954
|
-
var isBuffer2 = nativeIsBuffer || stubFalse2;
|
|
955
|
-
module2.exports = isBuffer2;
|
|
956
|
-
})(isBuffer$3, isBuffer$3.exports);
|
|
957
|
-
var isBufferExports = isBuffer$3.exports;
|
|
958
|
-
var baseGetTag$3 = _baseGetTag, isLength = isLength_1, isObjectLike$4 = isObjectLike_1;
|
|
959
|
-
var argsTag$1 = "[object Arguments]", arrayTag$1 = "[object Array]", boolTag$1 = "[object Boolean]", dateTag$1 = "[object Date]", errorTag$1 = "[object Error]", funcTag = "[object Function]", mapTag$2 = "[object Map]", numberTag$1 = "[object Number]", objectTag$3 = "[object Object]", regexpTag$1 = "[object RegExp]", setTag$2 = "[object Set]", stringTag$1 = "[object String]", weakMapTag$1 = "[object WeakMap]";
|
|
960
|
-
var arrayBufferTag$1 = "[object ArrayBuffer]", dataViewTag$2 = "[object DataView]", float32Tag = "[object Float32Array]", float64Tag = "[object Float64Array]", int8Tag = "[object Int8Array]", int16Tag = "[object Int16Array]", int32Tag = "[object Int32Array]", uint8Tag = "[object Uint8Array]", uint8ClampedTag = "[object Uint8ClampedArray]", uint16Tag = "[object Uint16Array]", uint32Tag = "[object Uint32Array]";
|
|
961
|
-
var typedArrayTags = {};
|
|
962
|
-
typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = typedArrayTags[uint32Tag] = true;
|
|
963
|
-
typedArrayTags[argsTag$1] = typedArrayTags[arrayTag$1] = typedArrayTags[arrayBufferTag$1] = typedArrayTags[boolTag$1] = typedArrayTags[dataViewTag$2] = typedArrayTags[dateTag$1] = typedArrayTags[errorTag$1] = typedArrayTags[funcTag] = typedArrayTags[mapTag$2] = typedArrayTags[numberTag$1] = typedArrayTags[objectTag$3] = typedArrayTags[regexpTag$1] = typedArrayTags[setTag$2] = typedArrayTags[stringTag$1] = typedArrayTags[weakMapTag$1] = false;
|
|
964
|
-
function baseIsTypedArray$1(value) {
|
|
965
|
-
return isObjectLike$4(value) && isLength(value.length) && !!typedArrayTags[baseGetTag$3(value)];
|
|
966
|
-
}
|
|
967
|
-
var _baseIsTypedArray = baseIsTypedArray$1;
|
|
968
|
-
function baseUnary$1(func) {
|
|
969
|
-
return function(value) {
|
|
970
|
-
return func(value);
|
|
971
|
-
};
|
|
972
|
-
}
|
|
973
|
-
var _baseUnary = baseUnary$1;
|
|
974
|
-
var _nodeUtil = { exports: {} };
|
|
975
|
-
_nodeUtil.exports;
|
|
976
|
-
(function(module2, exports3) {
|
|
977
|
-
var freeGlobal2 = _freeGlobal;
|
|
978
|
-
var freeExports = exports3 && !exports3.nodeType && exports3;
|
|
979
|
-
var freeModule = freeExports && true && module2 && !module2.nodeType && module2;
|
|
980
|
-
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
981
|
-
var freeProcess = moduleExports && freeGlobal2.process;
|
|
982
|
-
var nodeUtil2 = function() {
|
|
983
|
-
try {
|
|
984
|
-
var types2 = freeModule && freeModule.require && freeModule.require("util").types;
|
|
985
|
-
if (types2) {
|
|
986
|
-
return types2;
|
|
987
|
-
}
|
|
988
|
-
return freeProcess && freeProcess.binding && freeProcess.binding("util");
|
|
989
|
-
} catch (e2) {
|
|
990
|
-
}
|
|
991
|
-
}();
|
|
992
|
-
module2.exports = nodeUtil2;
|
|
993
|
-
})(_nodeUtil, _nodeUtil.exports);
|
|
994
|
-
var _nodeUtilExports = _nodeUtil.exports;
|
|
995
|
-
var baseIsTypedArray = _baseIsTypedArray, baseUnary = _baseUnary, nodeUtil = _nodeUtilExports;
|
|
996
|
-
var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
|
|
997
|
-
var isTypedArray$3 = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
|
|
998
|
-
var isTypedArray_1 = isTypedArray$3;
|
|
999
|
-
var baseTimes = _baseTimes, isArguments$1 = isArguments_1, isArray$3 = isArray_1, isBuffer$2 = isBufferExports, isIndex = _isIndex, isTypedArray$2 = isTypedArray_1;
|
|
1000
|
-
var objectProto$9 = Object.prototype;
|
|
1001
|
-
var hasOwnProperty$7 = objectProto$9.hasOwnProperty;
|
|
1002
|
-
function arrayLikeKeys$2(value, inherited) {
|
|
1003
|
-
var isArr = isArray$3(value), isArg = !isArr && isArguments$1(value), isBuff = !isArr && !isArg && isBuffer$2(value), isType = !isArr && !isArg && !isBuff && isTypedArray$2(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes(value.length, String) : [], length = result.length;
|
|
1004
|
-
for (var key in value) {
|
|
1005
|
-
if ((inherited || hasOwnProperty$7.call(value, key)) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
1006
|
-
(key == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
1007
|
-
isBuff && (key == "offset" || key == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
1008
|
-
isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || // Skip index properties.
|
|
1009
|
-
isIndex(key, length)))) {
|
|
1010
|
-
result.push(key);
|
|
1011
|
-
}
|
|
1012
|
-
}
|
|
1013
|
-
return result;
|
|
1014
|
-
}
|
|
1015
|
-
var _arrayLikeKeys = arrayLikeKeys$2;
|
|
1016
|
-
var objectProto$8 = Object.prototype;
|
|
1017
|
-
function isPrototype$3(value) {
|
|
1018
|
-
var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto$8;
|
|
1019
|
-
return value === proto;
|
|
1020
|
-
}
|
|
1021
|
-
var _isPrototype = isPrototype$3;
|
|
1022
|
-
function overArg$2(func, transform) {
|
|
1023
|
-
return function(arg) {
|
|
1024
|
-
return func(transform(arg));
|
|
1025
|
-
};
|
|
1026
|
-
}
|
|
1027
|
-
var _overArg = overArg$2;
|
|
1028
|
-
var overArg$1 = _overArg;
|
|
1029
|
-
var nativeKeys$1 = overArg$1(Object.keys, Object);
|
|
1030
|
-
var _nativeKeys = nativeKeys$1;
|
|
1031
|
-
var isPrototype$2 = _isPrototype, nativeKeys = _nativeKeys;
|
|
1032
|
-
var objectProto$7 = Object.prototype;
|
|
1033
|
-
var hasOwnProperty$6 = objectProto$7.hasOwnProperty;
|
|
1034
|
-
function baseKeys$1(object) {
|
|
1035
|
-
if (!isPrototype$2(object)) {
|
|
1036
|
-
return nativeKeys(object);
|
|
1037
|
-
}
|
|
1038
|
-
var result = [];
|
|
1039
|
-
for (var key in Object(object)) {
|
|
1040
|
-
if (hasOwnProperty$6.call(object, key) && key != "constructor") {
|
|
1041
|
-
result.push(key);
|
|
1042
|
-
}
|
|
1043
|
-
}
|
|
1044
|
-
return result;
|
|
1045
|
-
}
|
|
1046
|
-
var _baseKeys = baseKeys$1;
|
|
1047
|
-
var arrayLikeKeys$1 = _arrayLikeKeys, baseKeys = _baseKeys, isArrayLike$2 = isArrayLike_1;
|
|
1048
|
-
function keys$2(object) {
|
|
1049
|
-
return isArrayLike$2(object) ? arrayLikeKeys$1(object) : baseKeys(object);
|
|
1050
|
-
}
|
|
1051
|
-
var keys_1 = keys$2;
|
|
1052
|
-
var copyObject$1 = _copyObject, createAssigner$1 = _createAssigner, keys$1 = keys_1;
|
|
1053
|
-
var assignWith = createAssigner$1(function(object, source, srcIndex, customizer) {
|
|
1054
|
-
copyObject$1(source, keys$1(source), object, customizer);
|
|
1055
|
-
});
|
|
1056
|
-
var assignWith_1 = assignWith;
|
|
1057
|
-
const assignWith$1 = /* @__PURE__ */ getDefaultExportFromCjs(assignWith_1);
|
|
1058
|
-
function mergeProps(...items) {
|
|
1059
|
-
function customizer(objValue, srcValue) {
|
|
1060
|
-
return srcValue === void 0 ? objValue : srcValue;
|
|
1061
|
-
}
|
|
1062
|
-
let ret = Object.assign({}, items[0]);
|
|
1063
|
-
for (let i2 = 1; i2 < items.length; i2++) {
|
|
1064
|
-
ret = assignWith$1(ret, items[i2], customizer);
|
|
1065
|
-
}
|
|
1066
615
|
return ret;
|
|
1067
616
|
}
|
|
1068
617
|
var createUpdateEffect = function(hook) {
|
|
@@ -1082,7 +631,7 @@
|
|
|
1082
631
|
}, deps);
|
|
1083
632
|
};
|
|
1084
633
|
};
|
|
1085
|
-
var isFunction
|
|
634
|
+
var isFunction = function(value) {
|
|
1086
635
|
return typeof value === "function";
|
|
1087
636
|
};
|
|
1088
637
|
var isNumber = function(value) {
|
|
@@ -1092,7 +641,7 @@
|
|
|
1092
641
|
const isDev$1 = isDev;
|
|
1093
642
|
function useMemoizedFn(fn) {
|
|
1094
643
|
if (isDev$1) {
|
|
1095
|
-
if (!isFunction
|
|
644
|
+
if (!isFunction(fn)) {
|
|
1096
645
|
console.error("useMemoizedFn expected parameter is a function, got ".concat(typeof fn));
|
|
1097
646
|
}
|
|
1098
647
|
}
|
|
@@ -1129,7 +678,7 @@
|
|
|
1129
678
|
}
|
|
1130
679
|
var useUnmount = function(fn) {
|
|
1131
680
|
if (isDev$1) {
|
|
1132
|
-
if (!isFunction
|
|
681
|
+
if (!isFunction(fn)) {
|
|
1133
682
|
console.error("useUnmount expected parameter is a function, got ".concat(typeof fn));
|
|
1134
683
|
}
|
|
1135
684
|
}
|
|
@@ -1141,9 +690,20 @@
|
|
|
1141
690
|
}, []);
|
|
1142
691
|
};
|
|
1143
692
|
const useUnmount$1 = useUnmount;
|
|
1144
|
-
|
|
693
|
+
function isObject$4(value) {
|
|
694
|
+
var type = typeof value;
|
|
695
|
+
return value != null && (type == "object" || type == "function");
|
|
696
|
+
}
|
|
697
|
+
var isObject_1 = isObject$4;
|
|
698
|
+
var freeGlobal$1 = typeof commonjsGlobal == "object" && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
|
|
699
|
+
var _freeGlobal = freeGlobal$1;
|
|
700
|
+
var freeGlobal = _freeGlobal;
|
|
701
|
+
var freeSelf = typeof self == "object" && self && self.Object === Object && self;
|
|
702
|
+
var root$2 = freeGlobal || freeSelf || Function("return this")();
|
|
703
|
+
var _root = root$2;
|
|
704
|
+
var root$1 = _root;
|
|
1145
705
|
var now$1 = function() {
|
|
1146
|
-
return root$
|
|
706
|
+
return root$1.Date.now();
|
|
1147
707
|
};
|
|
1148
708
|
var now_1 = now$1;
|
|
1149
709
|
var reWhitespace = /\s/;
|
|
@@ -1160,13 +720,59 @@
|
|
|
1160
720
|
return string2 ? string2.slice(0, trimmedEndIndex(string2) + 1).replace(reTrimStart, "") : string2;
|
|
1161
721
|
}
|
|
1162
722
|
var _baseTrim = baseTrim$1;
|
|
1163
|
-
var
|
|
1164
|
-
var
|
|
723
|
+
var root = _root;
|
|
724
|
+
var Symbol$3 = root.Symbol;
|
|
725
|
+
var _Symbol = Symbol$3;
|
|
726
|
+
var Symbol$2 = _Symbol;
|
|
727
|
+
var objectProto$1 = Object.prototype;
|
|
728
|
+
var hasOwnProperty = objectProto$1.hasOwnProperty;
|
|
729
|
+
var nativeObjectToString$1 = objectProto$1.toString;
|
|
730
|
+
var symToStringTag$1 = Symbol$2 ? Symbol$2.toStringTag : void 0;
|
|
731
|
+
function getRawTag$1(value) {
|
|
732
|
+
var isOwn = hasOwnProperty.call(value, symToStringTag$1), tag = value[symToStringTag$1];
|
|
733
|
+
try {
|
|
734
|
+
value[symToStringTag$1] = void 0;
|
|
735
|
+
var unmasked = true;
|
|
736
|
+
} catch (e2) {
|
|
737
|
+
}
|
|
738
|
+
var result = nativeObjectToString$1.call(value);
|
|
739
|
+
if (unmasked) {
|
|
740
|
+
if (isOwn) {
|
|
741
|
+
value[symToStringTag$1] = tag;
|
|
742
|
+
} else {
|
|
743
|
+
delete value[symToStringTag$1];
|
|
744
|
+
}
|
|
745
|
+
}
|
|
746
|
+
return result;
|
|
747
|
+
}
|
|
748
|
+
var _getRawTag = getRawTag$1;
|
|
749
|
+
var objectProto = Object.prototype;
|
|
750
|
+
var nativeObjectToString = objectProto.toString;
|
|
751
|
+
function objectToString$1(value) {
|
|
752
|
+
return nativeObjectToString.call(value);
|
|
753
|
+
}
|
|
754
|
+
var _objectToString = objectToString$1;
|
|
755
|
+
var Symbol$1 = _Symbol, getRawTag = _getRawTag, objectToString = _objectToString;
|
|
756
|
+
var nullTag = "[object Null]", undefinedTag = "[object Undefined]";
|
|
757
|
+
var symToStringTag = Symbol$1 ? Symbol$1.toStringTag : void 0;
|
|
758
|
+
function baseGetTag$1(value) {
|
|
759
|
+
if (value == null) {
|
|
760
|
+
return value === void 0 ? undefinedTag : nullTag;
|
|
761
|
+
}
|
|
762
|
+
return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value);
|
|
763
|
+
}
|
|
764
|
+
var _baseGetTag = baseGetTag$1;
|
|
765
|
+
function isObjectLike$1(value) {
|
|
766
|
+
return value != null && typeof value == "object";
|
|
767
|
+
}
|
|
768
|
+
var isObjectLike_1 = isObjectLike$1;
|
|
769
|
+
var baseGetTag = _baseGetTag, isObjectLike = isObjectLike_1;
|
|
770
|
+
var symbolTag = "[object Symbol]";
|
|
1165
771
|
function isSymbol$1(value) {
|
|
1166
|
-
return typeof value == "symbol" || isObjectLike
|
|
772
|
+
return typeof value == "symbol" || isObjectLike(value) && baseGetTag(value) == symbolTag;
|
|
1167
773
|
}
|
|
1168
774
|
var isSymbol_1 = isSymbol$1;
|
|
1169
|
-
var baseTrim = _baseTrim, isObject$
|
|
775
|
+
var baseTrim = _baseTrim, isObject$3 = isObject_1, isSymbol = isSymbol_1;
|
|
1170
776
|
var NAN = 0 / 0;
|
|
1171
777
|
var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
|
|
1172
778
|
var reIsBinary = /^0b[01]+$/i;
|
|
@@ -1179,9 +785,9 @@
|
|
|
1179
785
|
if (isSymbol(value)) {
|
|
1180
786
|
return NAN;
|
|
1181
787
|
}
|
|
1182
|
-
if (isObject$
|
|
788
|
+
if (isObject$3(value)) {
|
|
1183
789
|
var other = typeof value.valueOf == "function" ? value.valueOf() : value;
|
|
1184
|
-
value = isObject$
|
|
790
|
+
value = isObject$3(other) ? other + "" : other;
|
|
1185
791
|
}
|
|
1186
792
|
if (typeof value != "string") {
|
|
1187
793
|
return value === 0 ? value : +value;
|
|
@@ -1191,16 +797,16 @@
|
|
|
1191
797
|
return isBinary || reIsOctal.test(value) ? freeParseInt(value.slice(2), isBinary ? 2 : 8) : reIsBadHex.test(value) ? NAN : +value;
|
|
1192
798
|
}
|
|
1193
799
|
var toNumber_1 = toNumber$1;
|
|
1194
|
-
var isObject$
|
|
1195
|
-
var FUNC_ERROR_TEXT$
|
|
800
|
+
var isObject$2 = isObject_1, now = now_1, toNumber = toNumber_1;
|
|
801
|
+
var FUNC_ERROR_TEXT$1 = "Expected a function";
|
|
1196
802
|
var nativeMax = Math.max, nativeMin = Math.min;
|
|
1197
803
|
function debounce$1(func, wait, options) {
|
|
1198
804
|
var lastArgs, lastThis, maxWait, result, timerId, lastCallTime, lastInvokeTime = 0, leading = false, maxing = false, trailing = true;
|
|
1199
805
|
if (typeof func != "function") {
|
|
1200
|
-
throw new TypeError(FUNC_ERROR_TEXT$
|
|
806
|
+
throw new TypeError(FUNC_ERROR_TEXT$1);
|
|
1201
807
|
}
|
|
1202
808
|
wait = toNumber(wait) || 0;
|
|
1203
|
-
if (isObject$
|
|
809
|
+
if (isObject$2(options)) {
|
|
1204
810
|
leading = !!options.leading;
|
|
1205
811
|
maxing = "maxWait" in options;
|
|
1206
812
|
maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
|
|
@@ -1279,14 +885,14 @@
|
|
|
1279
885
|
const debounce$2 = /* @__PURE__ */ getDefaultExportFromCjs(debounce_1);
|
|
1280
886
|
var isBrowser$2 = !!(typeof window !== "undefined" && window.document && window.document.createElement);
|
|
1281
887
|
const isBrowser$3 = isBrowser$2;
|
|
1282
|
-
var debounce = debounce_1, isObject$
|
|
1283
|
-
var FUNC_ERROR_TEXT
|
|
888
|
+
var debounce = debounce_1, isObject$1 = isObject_1;
|
|
889
|
+
var FUNC_ERROR_TEXT = "Expected a function";
|
|
1284
890
|
function throttle$1(func, wait, options) {
|
|
1285
891
|
var leading = true, trailing = true;
|
|
1286
892
|
if (typeof func != "function") {
|
|
1287
|
-
throw new TypeError(FUNC_ERROR_TEXT
|
|
893
|
+
throw new TypeError(FUNC_ERROR_TEXT);
|
|
1288
894
|
}
|
|
1289
|
-
if (isObject$
|
|
895
|
+
if (isObject$1(options)) {
|
|
1290
896
|
leading = "leading" in options ? !!options.leading : leading;
|
|
1291
897
|
trailing = "trailing" in options ? !!options.trailing : trailing;
|
|
1292
898
|
}
|
|
@@ -1300,7 +906,7 @@
|
|
|
1300
906
|
const throttle$2 = /* @__PURE__ */ getDefaultExportFromCjs(throttle_1);
|
|
1301
907
|
var useMount = function(fn) {
|
|
1302
908
|
if (isDev$1) {
|
|
1303
|
-
if (!isFunction
|
|
909
|
+
if (!isFunction(fn)) {
|
|
1304
910
|
console.error('useMount: parameter `fn` expected to be a function, but got "'.concat(typeof fn, '".'));
|
|
1305
911
|
}
|
|
1306
912
|
}
|
|
@@ -1324,7 +930,7 @@
|
|
|
1324
930
|
return defaultElement;
|
|
1325
931
|
}
|
|
1326
932
|
var targetElement;
|
|
1327
|
-
if (isFunction
|
|
933
|
+
if (isFunction(target)) {
|
|
1328
934
|
targetElement = target();
|
|
1329
935
|
} else if ("current" in target) {
|
|
1330
936
|
targetElement = target.current;
|
|
@@ -1719,7 +1325,7 @@
|
|
|
1719
1325
|
function useDebounceFn(fn, options) {
|
|
1720
1326
|
var _a;
|
|
1721
1327
|
if (isDev$1) {
|
|
1722
|
-
if (!isFunction
|
|
1328
|
+
if (!isFunction(fn)) {
|
|
1723
1329
|
console.error("useDebounceFn expected parameter is a function, got ".concat(typeof fn));
|
|
1724
1330
|
}
|
|
1725
1331
|
}
|
|
@@ -1753,590 +1359,6 @@
|
|
|
1753
1359
|
}, deps);
|
|
1754
1360
|
useUpdateEffect(effect, [flag]);
|
|
1755
1361
|
}
|
|
1756
|
-
function listCacheClear$1() {
|
|
1757
|
-
this.__data__ = [];
|
|
1758
|
-
this.size = 0;
|
|
1759
|
-
}
|
|
1760
|
-
var _listCacheClear = listCacheClear$1;
|
|
1761
|
-
var eq$2 = eq_1;
|
|
1762
|
-
function assocIndexOf$4(array, key) {
|
|
1763
|
-
var length = array.length;
|
|
1764
|
-
while (length--) {
|
|
1765
|
-
if (eq$2(array[length][0], key)) {
|
|
1766
|
-
return length;
|
|
1767
|
-
}
|
|
1768
|
-
}
|
|
1769
|
-
return -1;
|
|
1770
|
-
}
|
|
1771
|
-
var _assocIndexOf = assocIndexOf$4;
|
|
1772
|
-
var assocIndexOf$3 = _assocIndexOf;
|
|
1773
|
-
var arrayProto = Array.prototype;
|
|
1774
|
-
var splice = arrayProto.splice;
|
|
1775
|
-
function listCacheDelete$1(key) {
|
|
1776
|
-
var data = this.__data__, index2 = assocIndexOf$3(data, key);
|
|
1777
|
-
if (index2 < 0) {
|
|
1778
|
-
return false;
|
|
1779
|
-
}
|
|
1780
|
-
var lastIndex = data.length - 1;
|
|
1781
|
-
if (index2 == lastIndex) {
|
|
1782
|
-
data.pop();
|
|
1783
|
-
} else {
|
|
1784
|
-
splice.call(data, index2, 1);
|
|
1785
|
-
}
|
|
1786
|
-
--this.size;
|
|
1787
|
-
return true;
|
|
1788
|
-
}
|
|
1789
|
-
var _listCacheDelete = listCacheDelete$1;
|
|
1790
|
-
var assocIndexOf$2 = _assocIndexOf;
|
|
1791
|
-
function listCacheGet$1(key) {
|
|
1792
|
-
var data = this.__data__, index2 = assocIndexOf$2(data, key);
|
|
1793
|
-
return index2 < 0 ? void 0 : data[index2][1];
|
|
1794
|
-
}
|
|
1795
|
-
var _listCacheGet = listCacheGet$1;
|
|
1796
|
-
var assocIndexOf$1 = _assocIndexOf;
|
|
1797
|
-
function listCacheHas$1(key) {
|
|
1798
|
-
return assocIndexOf$1(this.__data__, key) > -1;
|
|
1799
|
-
}
|
|
1800
|
-
var _listCacheHas = listCacheHas$1;
|
|
1801
|
-
var assocIndexOf = _assocIndexOf;
|
|
1802
|
-
function listCacheSet$1(key, value) {
|
|
1803
|
-
var data = this.__data__, index2 = assocIndexOf(data, key);
|
|
1804
|
-
if (index2 < 0) {
|
|
1805
|
-
++this.size;
|
|
1806
|
-
data.push([key, value]);
|
|
1807
|
-
} else {
|
|
1808
|
-
data[index2][1] = value;
|
|
1809
|
-
}
|
|
1810
|
-
return this;
|
|
1811
|
-
}
|
|
1812
|
-
var _listCacheSet = listCacheSet$1;
|
|
1813
|
-
var listCacheClear = _listCacheClear, listCacheDelete = _listCacheDelete, listCacheGet = _listCacheGet, listCacheHas = _listCacheHas, listCacheSet = _listCacheSet;
|
|
1814
|
-
function ListCache$4(entries) {
|
|
1815
|
-
var index2 = -1, length = entries == null ? 0 : entries.length;
|
|
1816
|
-
this.clear();
|
|
1817
|
-
while (++index2 < length) {
|
|
1818
|
-
var entry = entries[index2];
|
|
1819
|
-
this.set(entry[0], entry[1]);
|
|
1820
|
-
}
|
|
1821
|
-
}
|
|
1822
|
-
ListCache$4.prototype.clear = listCacheClear;
|
|
1823
|
-
ListCache$4.prototype["delete"] = listCacheDelete;
|
|
1824
|
-
ListCache$4.prototype.get = listCacheGet;
|
|
1825
|
-
ListCache$4.prototype.has = listCacheHas;
|
|
1826
|
-
ListCache$4.prototype.set = listCacheSet;
|
|
1827
|
-
var _ListCache = ListCache$4;
|
|
1828
|
-
var ListCache$3 = _ListCache;
|
|
1829
|
-
function stackClear$1() {
|
|
1830
|
-
this.__data__ = new ListCache$3();
|
|
1831
|
-
this.size = 0;
|
|
1832
|
-
}
|
|
1833
|
-
var _stackClear = stackClear$1;
|
|
1834
|
-
function stackDelete$1(key) {
|
|
1835
|
-
var data = this.__data__, result = data["delete"](key);
|
|
1836
|
-
this.size = data.size;
|
|
1837
|
-
return result;
|
|
1838
|
-
}
|
|
1839
|
-
var _stackDelete = stackDelete$1;
|
|
1840
|
-
function stackGet$1(key) {
|
|
1841
|
-
return this.__data__.get(key);
|
|
1842
|
-
}
|
|
1843
|
-
var _stackGet = stackGet$1;
|
|
1844
|
-
function stackHas$1(key) {
|
|
1845
|
-
return this.__data__.has(key);
|
|
1846
|
-
}
|
|
1847
|
-
var _stackHas = stackHas$1;
|
|
1848
|
-
var getNative$5 = _getNative, root$5 = _root;
|
|
1849
|
-
var Map$4 = getNative$5(root$5, "Map");
|
|
1850
|
-
var _Map = Map$4;
|
|
1851
|
-
var getNative$4 = _getNative;
|
|
1852
|
-
var nativeCreate$4 = getNative$4(Object, "create");
|
|
1853
|
-
var _nativeCreate = nativeCreate$4;
|
|
1854
|
-
var nativeCreate$3 = _nativeCreate;
|
|
1855
|
-
function hashClear$1() {
|
|
1856
|
-
this.__data__ = nativeCreate$3 ? nativeCreate$3(null) : {};
|
|
1857
|
-
this.size = 0;
|
|
1858
|
-
}
|
|
1859
|
-
var _hashClear = hashClear$1;
|
|
1860
|
-
function hashDelete$1(key) {
|
|
1861
|
-
var result = this.has(key) && delete this.__data__[key];
|
|
1862
|
-
this.size -= result ? 1 : 0;
|
|
1863
|
-
return result;
|
|
1864
|
-
}
|
|
1865
|
-
var _hashDelete = hashDelete$1;
|
|
1866
|
-
var nativeCreate$2 = _nativeCreate;
|
|
1867
|
-
var HASH_UNDEFINED$2 = "__lodash_hash_undefined__";
|
|
1868
|
-
var objectProto$6 = Object.prototype;
|
|
1869
|
-
var hasOwnProperty$5 = objectProto$6.hasOwnProperty;
|
|
1870
|
-
function hashGet$1(key) {
|
|
1871
|
-
var data = this.__data__;
|
|
1872
|
-
if (nativeCreate$2) {
|
|
1873
|
-
var result = data[key];
|
|
1874
|
-
return result === HASH_UNDEFINED$2 ? void 0 : result;
|
|
1875
|
-
}
|
|
1876
|
-
return hasOwnProperty$5.call(data, key) ? data[key] : void 0;
|
|
1877
|
-
}
|
|
1878
|
-
var _hashGet = hashGet$1;
|
|
1879
|
-
var nativeCreate$1 = _nativeCreate;
|
|
1880
|
-
var objectProto$5 = Object.prototype;
|
|
1881
|
-
var hasOwnProperty$4 = objectProto$5.hasOwnProperty;
|
|
1882
|
-
function hashHas$1(key) {
|
|
1883
|
-
var data = this.__data__;
|
|
1884
|
-
return nativeCreate$1 ? data[key] !== void 0 : hasOwnProperty$4.call(data, key);
|
|
1885
|
-
}
|
|
1886
|
-
var _hashHas = hashHas$1;
|
|
1887
|
-
var nativeCreate = _nativeCreate;
|
|
1888
|
-
var HASH_UNDEFINED$1 = "__lodash_hash_undefined__";
|
|
1889
|
-
function hashSet$1(key, value) {
|
|
1890
|
-
var data = this.__data__;
|
|
1891
|
-
this.size += this.has(key) ? 0 : 1;
|
|
1892
|
-
data[key] = nativeCreate && value === void 0 ? HASH_UNDEFINED$1 : value;
|
|
1893
|
-
return this;
|
|
1894
|
-
}
|
|
1895
|
-
var _hashSet = hashSet$1;
|
|
1896
|
-
var hashClear = _hashClear, hashDelete = _hashDelete, hashGet = _hashGet, hashHas = _hashHas, hashSet = _hashSet;
|
|
1897
|
-
function Hash$1(entries) {
|
|
1898
|
-
var index2 = -1, length = entries == null ? 0 : entries.length;
|
|
1899
|
-
this.clear();
|
|
1900
|
-
while (++index2 < length) {
|
|
1901
|
-
var entry = entries[index2];
|
|
1902
|
-
this.set(entry[0], entry[1]);
|
|
1903
|
-
}
|
|
1904
|
-
}
|
|
1905
|
-
Hash$1.prototype.clear = hashClear;
|
|
1906
|
-
Hash$1.prototype["delete"] = hashDelete;
|
|
1907
|
-
Hash$1.prototype.get = hashGet;
|
|
1908
|
-
Hash$1.prototype.has = hashHas;
|
|
1909
|
-
Hash$1.prototype.set = hashSet;
|
|
1910
|
-
var _Hash = Hash$1;
|
|
1911
|
-
var Hash = _Hash, ListCache$2 = _ListCache, Map$3 = _Map;
|
|
1912
|
-
function mapCacheClear$1() {
|
|
1913
|
-
this.size = 0;
|
|
1914
|
-
this.__data__ = {
|
|
1915
|
-
"hash": new Hash(),
|
|
1916
|
-
"map": new (Map$3 || ListCache$2)(),
|
|
1917
|
-
"string": new Hash()
|
|
1918
|
-
};
|
|
1919
|
-
}
|
|
1920
|
-
var _mapCacheClear = mapCacheClear$1;
|
|
1921
|
-
function isKeyable$1(value) {
|
|
1922
|
-
var type = typeof value;
|
|
1923
|
-
return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null;
|
|
1924
|
-
}
|
|
1925
|
-
var _isKeyable = isKeyable$1;
|
|
1926
|
-
var isKeyable = _isKeyable;
|
|
1927
|
-
function getMapData$4(map, key) {
|
|
1928
|
-
var data = map.__data__;
|
|
1929
|
-
return isKeyable(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
|
|
1930
|
-
}
|
|
1931
|
-
var _getMapData = getMapData$4;
|
|
1932
|
-
var getMapData$3 = _getMapData;
|
|
1933
|
-
function mapCacheDelete$1(key) {
|
|
1934
|
-
var result = getMapData$3(this, key)["delete"](key);
|
|
1935
|
-
this.size -= result ? 1 : 0;
|
|
1936
|
-
return result;
|
|
1937
|
-
}
|
|
1938
|
-
var _mapCacheDelete = mapCacheDelete$1;
|
|
1939
|
-
var getMapData$2 = _getMapData;
|
|
1940
|
-
function mapCacheGet$1(key) {
|
|
1941
|
-
return getMapData$2(this, key).get(key);
|
|
1942
|
-
}
|
|
1943
|
-
var _mapCacheGet = mapCacheGet$1;
|
|
1944
|
-
var getMapData$1 = _getMapData;
|
|
1945
|
-
function mapCacheHas$1(key) {
|
|
1946
|
-
return getMapData$1(this, key).has(key);
|
|
1947
|
-
}
|
|
1948
|
-
var _mapCacheHas = mapCacheHas$1;
|
|
1949
|
-
var getMapData = _getMapData;
|
|
1950
|
-
function mapCacheSet$1(key, value) {
|
|
1951
|
-
var data = getMapData(this, key), size = data.size;
|
|
1952
|
-
data.set(key, value);
|
|
1953
|
-
this.size += data.size == size ? 0 : 1;
|
|
1954
|
-
return this;
|
|
1955
|
-
}
|
|
1956
|
-
var _mapCacheSet = mapCacheSet$1;
|
|
1957
|
-
var mapCacheClear = _mapCacheClear, mapCacheDelete = _mapCacheDelete, mapCacheGet = _mapCacheGet, mapCacheHas = _mapCacheHas, mapCacheSet = _mapCacheSet;
|
|
1958
|
-
function MapCache$3(entries) {
|
|
1959
|
-
var index2 = -1, length = entries == null ? 0 : entries.length;
|
|
1960
|
-
this.clear();
|
|
1961
|
-
while (++index2 < length) {
|
|
1962
|
-
var entry = entries[index2];
|
|
1963
|
-
this.set(entry[0], entry[1]);
|
|
1964
|
-
}
|
|
1965
|
-
}
|
|
1966
|
-
MapCache$3.prototype.clear = mapCacheClear;
|
|
1967
|
-
MapCache$3.prototype["delete"] = mapCacheDelete;
|
|
1968
|
-
MapCache$3.prototype.get = mapCacheGet;
|
|
1969
|
-
MapCache$3.prototype.has = mapCacheHas;
|
|
1970
|
-
MapCache$3.prototype.set = mapCacheSet;
|
|
1971
|
-
var _MapCache = MapCache$3;
|
|
1972
|
-
var ListCache$1 = _ListCache, Map$2 = _Map, MapCache$2 = _MapCache;
|
|
1973
|
-
var LARGE_ARRAY_SIZE = 200;
|
|
1974
|
-
function stackSet$1(key, value) {
|
|
1975
|
-
var data = this.__data__;
|
|
1976
|
-
if (data instanceof ListCache$1) {
|
|
1977
|
-
var pairs = data.__data__;
|
|
1978
|
-
if (!Map$2 || pairs.length < LARGE_ARRAY_SIZE - 1) {
|
|
1979
|
-
pairs.push([key, value]);
|
|
1980
|
-
this.size = ++data.size;
|
|
1981
|
-
return this;
|
|
1982
|
-
}
|
|
1983
|
-
data = this.__data__ = new MapCache$2(pairs);
|
|
1984
|
-
}
|
|
1985
|
-
data.set(key, value);
|
|
1986
|
-
this.size = data.size;
|
|
1987
|
-
return this;
|
|
1988
|
-
}
|
|
1989
|
-
var _stackSet = stackSet$1;
|
|
1990
|
-
var ListCache = _ListCache, stackClear = _stackClear, stackDelete = _stackDelete, stackGet = _stackGet, stackHas = _stackHas, stackSet = _stackSet;
|
|
1991
|
-
function Stack$2(entries) {
|
|
1992
|
-
var data = this.__data__ = new ListCache(entries);
|
|
1993
|
-
this.size = data.size;
|
|
1994
|
-
}
|
|
1995
|
-
Stack$2.prototype.clear = stackClear;
|
|
1996
|
-
Stack$2.prototype["delete"] = stackDelete;
|
|
1997
|
-
Stack$2.prototype.get = stackGet;
|
|
1998
|
-
Stack$2.prototype.has = stackHas;
|
|
1999
|
-
Stack$2.prototype.set = stackSet;
|
|
2000
|
-
var _Stack = Stack$2;
|
|
2001
|
-
var HASH_UNDEFINED = "__lodash_hash_undefined__";
|
|
2002
|
-
function setCacheAdd$1(value) {
|
|
2003
|
-
this.__data__.set(value, HASH_UNDEFINED);
|
|
2004
|
-
return this;
|
|
2005
|
-
}
|
|
2006
|
-
var _setCacheAdd = setCacheAdd$1;
|
|
2007
|
-
function setCacheHas$1(value) {
|
|
2008
|
-
return this.__data__.has(value);
|
|
2009
|
-
}
|
|
2010
|
-
var _setCacheHas = setCacheHas$1;
|
|
2011
|
-
var MapCache$1 = _MapCache, setCacheAdd = _setCacheAdd, setCacheHas = _setCacheHas;
|
|
2012
|
-
function SetCache$1(values) {
|
|
2013
|
-
var index2 = -1, length = values == null ? 0 : values.length;
|
|
2014
|
-
this.__data__ = new MapCache$1();
|
|
2015
|
-
while (++index2 < length) {
|
|
2016
|
-
this.add(values[index2]);
|
|
2017
|
-
}
|
|
2018
|
-
}
|
|
2019
|
-
SetCache$1.prototype.add = SetCache$1.prototype.push = setCacheAdd;
|
|
2020
|
-
SetCache$1.prototype.has = setCacheHas;
|
|
2021
|
-
var _SetCache = SetCache$1;
|
|
2022
|
-
function arraySome$1(array, predicate) {
|
|
2023
|
-
var index2 = -1, length = array == null ? 0 : array.length;
|
|
2024
|
-
while (++index2 < length) {
|
|
2025
|
-
if (predicate(array[index2], index2, array)) {
|
|
2026
|
-
return true;
|
|
2027
|
-
}
|
|
2028
|
-
}
|
|
2029
|
-
return false;
|
|
2030
|
-
}
|
|
2031
|
-
var _arraySome = arraySome$1;
|
|
2032
|
-
function cacheHas$1(cache, key) {
|
|
2033
|
-
return cache.has(key);
|
|
2034
|
-
}
|
|
2035
|
-
var _cacheHas = cacheHas$1;
|
|
2036
|
-
var SetCache = _SetCache, arraySome = _arraySome, cacheHas = _cacheHas;
|
|
2037
|
-
var COMPARE_PARTIAL_FLAG$3 = 1, COMPARE_UNORDERED_FLAG$1 = 2;
|
|
2038
|
-
function equalArrays$2(array, other, bitmask, customizer, equalFunc, stack) {
|
|
2039
|
-
var isPartial = bitmask & COMPARE_PARTIAL_FLAG$3, arrLength = array.length, othLength = other.length;
|
|
2040
|
-
if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
|
|
2041
|
-
return false;
|
|
2042
|
-
}
|
|
2043
|
-
var arrStacked = stack.get(array);
|
|
2044
|
-
var othStacked = stack.get(other);
|
|
2045
|
-
if (arrStacked && othStacked) {
|
|
2046
|
-
return arrStacked == other && othStacked == array;
|
|
2047
|
-
}
|
|
2048
|
-
var index2 = -1, result = true, seen = bitmask & COMPARE_UNORDERED_FLAG$1 ? new SetCache() : void 0;
|
|
2049
|
-
stack.set(array, other);
|
|
2050
|
-
stack.set(other, array);
|
|
2051
|
-
while (++index2 < arrLength) {
|
|
2052
|
-
var arrValue = array[index2], othValue = other[index2];
|
|
2053
|
-
if (customizer) {
|
|
2054
|
-
var compared = isPartial ? customizer(othValue, arrValue, index2, other, array, stack) : customizer(arrValue, othValue, index2, array, other, stack);
|
|
2055
|
-
}
|
|
2056
|
-
if (compared !== void 0) {
|
|
2057
|
-
if (compared) {
|
|
2058
|
-
continue;
|
|
2059
|
-
}
|
|
2060
|
-
result = false;
|
|
2061
|
-
break;
|
|
2062
|
-
}
|
|
2063
|
-
if (seen) {
|
|
2064
|
-
if (!arraySome(other, function(othValue2, othIndex) {
|
|
2065
|
-
if (!cacheHas(seen, othIndex) && (arrValue === othValue2 || equalFunc(arrValue, othValue2, bitmask, customizer, stack))) {
|
|
2066
|
-
return seen.push(othIndex);
|
|
2067
|
-
}
|
|
2068
|
-
})) {
|
|
2069
|
-
result = false;
|
|
2070
|
-
break;
|
|
2071
|
-
}
|
|
2072
|
-
} else if (!(arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
|
|
2073
|
-
result = false;
|
|
2074
|
-
break;
|
|
2075
|
-
}
|
|
2076
|
-
}
|
|
2077
|
-
stack["delete"](array);
|
|
2078
|
-
stack["delete"](other);
|
|
2079
|
-
return result;
|
|
2080
|
-
}
|
|
2081
|
-
var _equalArrays = equalArrays$2;
|
|
2082
|
-
var root$4 = _root;
|
|
2083
|
-
var Uint8Array$2 = root$4.Uint8Array;
|
|
2084
|
-
var _Uint8Array = Uint8Array$2;
|
|
2085
|
-
function mapToArray$1(map) {
|
|
2086
|
-
var index2 = -1, result = Array(map.size);
|
|
2087
|
-
map.forEach(function(value, key) {
|
|
2088
|
-
result[++index2] = [key, value];
|
|
2089
|
-
});
|
|
2090
|
-
return result;
|
|
2091
|
-
}
|
|
2092
|
-
var _mapToArray = mapToArray$1;
|
|
2093
|
-
function setToArray$1(set2) {
|
|
2094
|
-
var index2 = -1, result = Array(set2.size);
|
|
2095
|
-
set2.forEach(function(value) {
|
|
2096
|
-
result[++index2] = value;
|
|
2097
|
-
});
|
|
2098
|
-
return result;
|
|
2099
|
-
}
|
|
2100
|
-
var _setToArray = setToArray$1;
|
|
2101
|
-
var Symbol$1 = _Symbol, Uint8Array$1 = _Uint8Array, eq$1 = eq_1, equalArrays$1 = _equalArrays, mapToArray = _mapToArray, setToArray = _setToArray;
|
|
2102
|
-
var COMPARE_PARTIAL_FLAG$2 = 1, COMPARE_UNORDERED_FLAG = 2;
|
|
2103
|
-
var boolTag = "[object Boolean]", dateTag = "[object Date]", errorTag = "[object Error]", mapTag$1 = "[object Map]", numberTag = "[object Number]", regexpTag = "[object RegExp]", setTag$1 = "[object Set]", stringTag = "[object String]", symbolTag = "[object Symbol]";
|
|
2104
|
-
var arrayBufferTag = "[object ArrayBuffer]", dataViewTag$1 = "[object DataView]";
|
|
2105
|
-
var symbolProto = Symbol$1 ? Symbol$1.prototype : void 0, symbolValueOf = symbolProto ? symbolProto.valueOf : void 0;
|
|
2106
|
-
function equalByTag$1(object, other, tag, bitmask, customizer, equalFunc, stack) {
|
|
2107
|
-
switch (tag) {
|
|
2108
|
-
case dataViewTag$1:
|
|
2109
|
-
if (object.byteLength != other.byteLength || object.byteOffset != other.byteOffset) {
|
|
2110
|
-
return false;
|
|
2111
|
-
}
|
|
2112
|
-
object = object.buffer;
|
|
2113
|
-
other = other.buffer;
|
|
2114
|
-
case arrayBufferTag:
|
|
2115
|
-
if (object.byteLength != other.byteLength || !equalFunc(new Uint8Array$1(object), new Uint8Array$1(other))) {
|
|
2116
|
-
return false;
|
|
2117
|
-
}
|
|
2118
|
-
return true;
|
|
2119
|
-
case boolTag:
|
|
2120
|
-
case dateTag:
|
|
2121
|
-
case numberTag:
|
|
2122
|
-
return eq$1(+object, +other);
|
|
2123
|
-
case errorTag:
|
|
2124
|
-
return object.name == other.name && object.message == other.message;
|
|
2125
|
-
case regexpTag:
|
|
2126
|
-
case stringTag:
|
|
2127
|
-
return object == other + "";
|
|
2128
|
-
case mapTag$1:
|
|
2129
|
-
var convert = mapToArray;
|
|
2130
|
-
case setTag$1:
|
|
2131
|
-
var isPartial = bitmask & COMPARE_PARTIAL_FLAG$2;
|
|
2132
|
-
convert || (convert = setToArray);
|
|
2133
|
-
if (object.size != other.size && !isPartial) {
|
|
2134
|
-
return false;
|
|
2135
|
-
}
|
|
2136
|
-
var stacked = stack.get(object);
|
|
2137
|
-
if (stacked) {
|
|
2138
|
-
return stacked == other;
|
|
2139
|
-
}
|
|
2140
|
-
bitmask |= COMPARE_UNORDERED_FLAG;
|
|
2141
|
-
stack.set(object, other);
|
|
2142
|
-
var result = equalArrays$1(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
|
|
2143
|
-
stack["delete"](object);
|
|
2144
|
-
return result;
|
|
2145
|
-
case symbolTag:
|
|
2146
|
-
if (symbolValueOf) {
|
|
2147
|
-
return symbolValueOf.call(object) == symbolValueOf.call(other);
|
|
2148
|
-
}
|
|
2149
|
-
}
|
|
2150
|
-
return false;
|
|
2151
|
-
}
|
|
2152
|
-
var _equalByTag = equalByTag$1;
|
|
2153
|
-
function arrayPush$1(array, values) {
|
|
2154
|
-
var index2 = -1, length = values.length, offset2 = array.length;
|
|
2155
|
-
while (++index2 < length) {
|
|
2156
|
-
array[offset2 + index2] = values[index2];
|
|
2157
|
-
}
|
|
2158
|
-
return array;
|
|
2159
|
-
}
|
|
2160
|
-
var _arrayPush = arrayPush$1;
|
|
2161
|
-
var arrayPush = _arrayPush, isArray$2 = isArray_1;
|
|
2162
|
-
function baseGetAllKeys$1(object, keysFunc, symbolsFunc) {
|
|
2163
|
-
var result = keysFunc(object);
|
|
2164
|
-
return isArray$2(object) ? result : arrayPush(result, symbolsFunc(object));
|
|
2165
|
-
}
|
|
2166
|
-
var _baseGetAllKeys = baseGetAllKeys$1;
|
|
2167
|
-
function arrayFilter$1(array, predicate) {
|
|
2168
|
-
var index2 = -1, length = array == null ? 0 : array.length, resIndex = 0, result = [];
|
|
2169
|
-
while (++index2 < length) {
|
|
2170
|
-
var value = array[index2];
|
|
2171
|
-
if (predicate(value, index2, array)) {
|
|
2172
|
-
result[resIndex++] = value;
|
|
2173
|
-
}
|
|
2174
|
-
}
|
|
2175
|
-
return result;
|
|
2176
|
-
}
|
|
2177
|
-
var _arrayFilter = arrayFilter$1;
|
|
2178
|
-
function stubArray$1() {
|
|
2179
|
-
return [];
|
|
2180
|
-
}
|
|
2181
|
-
var stubArray_1 = stubArray$1;
|
|
2182
|
-
var arrayFilter = _arrayFilter, stubArray = stubArray_1;
|
|
2183
|
-
var objectProto$4 = Object.prototype;
|
|
2184
|
-
var propertyIsEnumerable = objectProto$4.propertyIsEnumerable;
|
|
2185
|
-
var nativeGetSymbols = Object.getOwnPropertySymbols;
|
|
2186
|
-
var getSymbols$1 = !nativeGetSymbols ? stubArray : function(object) {
|
|
2187
|
-
if (object == null) {
|
|
2188
|
-
return [];
|
|
2189
|
-
}
|
|
2190
|
-
object = Object(object);
|
|
2191
|
-
return arrayFilter(nativeGetSymbols(object), function(symbol) {
|
|
2192
|
-
return propertyIsEnumerable.call(object, symbol);
|
|
2193
|
-
});
|
|
2194
|
-
};
|
|
2195
|
-
var _getSymbols = getSymbols$1;
|
|
2196
|
-
var baseGetAllKeys = _baseGetAllKeys, getSymbols = _getSymbols, keys = keys_1;
|
|
2197
|
-
function getAllKeys$1(object) {
|
|
2198
|
-
return baseGetAllKeys(object, keys, getSymbols);
|
|
2199
|
-
}
|
|
2200
|
-
var _getAllKeys = getAllKeys$1;
|
|
2201
|
-
var getAllKeys = _getAllKeys;
|
|
2202
|
-
var COMPARE_PARTIAL_FLAG$1 = 1;
|
|
2203
|
-
var objectProto$3 = Object.prototype;
|
|
2204
|
-
var hasOwnProperty$3 = objectProto$3.hasOwnProperty;
|
|
2205
|
-
function equalObjects$1(object, other, bitmask, customizer, equalFunc, stack) {
|
|
2206
|
-
var isPartial = bitmask & COMPARE_PARTIAL_FLAG$1, objProps = getAllKeys(object), objLength = objProps.length, othProps = getAllKeys(other), othLength = othProps.length;
|
|
2207
|
-
if (objLength != othLength && !isPartial) {
|
|
2208
|
-
return false;
|
|
2209
|
-
}
|
|
2210
|
-
var index2 = objLength;
|
|
2211
|
-
while (index2--) {
|
|
2212
|
-
var key = objProps[index2];
|
|
2213
|
-
if (!(isPartial ? key in other : hasOwnProperty$3.call(other, key))) {
|
|
2214
|
-
return false;
|
|
2215
|
-
}
|
|
2216
|
-
}
|
|
2217
|
-
var objStacked = stack.get(object);
|
|
2218
|
-
var othStacked = stack.get(other);
|
|
2219
|
-
if (objStacked && othStacked) {
|
|
2220
|
-
return objStacked == other && othStacked == object;
|
|
2221
|
-
}
|
|
2222
|
-
var result = true;
|
|
2223
|
-
stack.set(object, other);
|
|
2224
|
-
stack.set(other, object);
|
|
2225
|
-
var skipCtor = isPartial;
|
|
2226
|
-
while (++index2 < objLength) {
|
|
2227
|
-
key = objProps[index2];
|
|
2228
|
-
var objValue = object[key], othValue = other[key];
|
|
2229
|
-
if (customizer) {
|
|
2230
|
-
var compared = isPartial ? customizer(othValue, objValue, key, other, object, stack) : customizer(objValue, othValue, key, object, other, stack);
|
|
2231
|
-
}
|
|
2232
|
-
if (!(compared === void 0 ? objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack) : compared)) {
|
|
2233
|
-
result = false;
|
|
2234
|
-
break;
|
|
2235
|
-
}
|
|
2236
|
-
skipCtor || (skipCtor = key == "constructor");
|
|
2237
|
-
}
|
|
2238
|
-
if (result && !skipCtor) {
|
|
2239
|
-
var objCtor = object.constructor, othCtor = other.constructor;
|
|
2240
|
-
if (objCtor != othCtor && ("constructor" in object && "constructor" in other) && !(typeof objCtor == "function" && objCtor instanceof objCtor && typeof othCtor == "function" && othCtor instanceof othCtor)) {
|
|
2241
|
-
result = false;
|
|
2242
|
-
}
|
|
2243
|
-
}
|
|
2244
|
-
stack["delete"](object);
|
|
2245
|
-
stack["delete"](other);
|
|
2246
|
-
return result;
|
|
2247
|
-
}
|
|
2248
|
-
var _equalObjects = equalObjects$1;
|
|
2249
|
-
var getNative$3 = _getNative, root$3 = _root;
|
|
2250
|
-
var DataView$1 = getNative$3(root$3, "DataView");
|
|
2251
|
-
var _DataView = DataView$1;
|
|
2252
|
-
var getNative$2 = _getNative, root$2 = _root;
|
|
2253
|
-
var Promise$2 = getNative$2(root$2, "Promise");
|
|
2254
|
-
var _Promise = Promise$2;
|
|
2255
|
-
var getNative$1 = _getNative, root$1 = _root;
|
|
2256
|
-
var Set$2 = getNative$1(root$1, "Set");
|
|
2257
|
-
var _Set = Set$2;
|
|
2258
|
-
var getNative = _getNative, root = _root;
|
|
2259
|
-
var WeakMap$2 = getNative(root, "WeakMap");
|
|
2260
|
-
var _WeakMap = WeakMap$2;
|
|
2261
|
-
var DataView = _DataView, Map$1 = _Map, Promise$1 = _Promise, Set$1 = _Set, WeakMap$1 = _WeakMap, baseGetTag$1 = _baseGetTag, toSource = _toSource;
|
|
2262
|
-
var mapTag = "[object Map]", objectTag$2 = "[object Object]", promiseTag = "[object Promise]", setTag = "[object Set]", weakMapTag = "[object WeakMap]";
|
|
2263
|
-
var dataViewTag = "[object DataView]";
|
|
2264
|
-
var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map$1), promiseCtorString = toSource(Promise$1), setCtorString = toSource(Set$1), weakMapCtorString = toSource(WeakMap$1);
|
|
2265
|
-
var getTag$1 = baseGetTag$1;
|
|
2266
|
-
if (DataView && getTag$1(new DataView(new ArrayBuffer(1))) != dataViewTag || Map$1 && getTag$1(new Map$1()) != mapTag || Promise$1 && getTag$1(Promise$1.resolve()) != promiseTag || Set$1 && getTag$1(new Set$1()) != setTag || WeakMap$1 && getTag$1(new WeakMap$1()) != weakMapTag) {
|
|
2267
|
-
getTag$1 = function(value) {
|
|
2268
|
-
var result = baseGetTag$1(value), Ctor = result == objectTag$2 ? value.constructor : void 0, ctorString = Ctor ? toSource(Ctor) : "";
|
|
2269
|
-
if (ctorString) {
|
|
2270
|
-
switch (ctorString) {
|
|
2271
|
-
case dataViewCtorString:
|
|
2272
|
-
return dataViewTag;
|
|
2273
|
-
case mapCtorString:
|
|
2274
|
-
return mapTag;
|
|
2275
|
-
case promiseCtorString:
|
|
2276
|
-
return promiseTag;
|
|
2277
|
-
case setCtorString:
|
|
2278
|
-
return setTag;
|
|
2279
|
-
case weakMapCtorString:
|
|
2280
|
-
return weakMapTag;
|
|
2281
|
-
}
|
|
2282
|
-
}
|
|
2283
|
-
return result;
|
|
2284
|
-
};
|
|
2285
|
-
}
|
|
2286
|
-
var _getTag = getTag$1;
|
|
2287
|
-
var Stack$1 = _Stack, equalArrays = _equalArrays, equalByTag = _equalByTag, equalObjects = _equalObjects, getTag = _getTag, isArray$1 = isArray_1, isBuffer$1 = isBufferExports, isTypedArray$1 = isTypedArray_1;
|
|
2288
|
-
var COMPARE_PARTIAL_FLAG = 1;
|
|
2289
|
-
var argsTag = "[object Arguments]", arrayTag = "[object Array]", objectTag$1 = "[object Object]";
|
|
2290
|
-
var objectProto$2 = Object.prototype;
|
|
2291
|
-
var hasOwnProperty$2 = objectProto$2.hasOwnProperty;
|
|
2292
|
-
function baseIsEqualDeep$1(object, other, bitmask, customizer, equalFunc, stack) {
|
|
2293
|
-
var objIsArr = isArray$1(object), othIsArr = isArray$1(other), objTag = objIsArr ? arrayTag : getTag(object), othTag = othIsArr ? arrayTag : getTag(other);
|
|
2294
|
-
objTag = objTag == argsTag ? objectTag$1 : objTag;
|
|
2295
|
-
othTag = othTag == argsTag ? objectTag$1 : othTag;
|
|
2296
|
-
var objIsObj = objTag == objectTag$1, othIsObj = othTag == objectTag$1, isSameTag = objTag == othTag;
|
|
2297
|
-
if (isSameTag && isBuffer$1(object)) {
|
|
2298
|
-
if (!isBuffer$1(other)) {
|
|
2299
|
-
return false;
|
|
2300
|
-
}
|
|
2301
|
-
objIsArr = true;
|
|
2302
|
-
objIsObj = false;
|
|
2303
|
-
}
|
|
2304
|
-
if (isSameTag && !objIsObj) {
|
|
2305
|
-
stack || (stack = new Stack$1());
|
|
2306
|
-
return objIsArr || isTypedArray$1(object) ? equalArrays(object, other, bitmask, customizer, equalFunc, stack) : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
|
|
2307
|
-
}
|
|
2308
|
-
if (!(bitmask & COMPARE_PARTIAL_FLAG)) {
|
|
2309
|
-
var objIsWrapped = objIsObj && hasOwnProperty$2.call(object, "__wrapped__"), othIsWrapped = othIsObj && hasOwnProperty$2.call(other, "__wrapped__");
|
|
2310
|
-
if (objIsWrapped || othIsWrapped) {
|
|
2311
|
-
var objUnwrapped = objIsWrapped ? object.value() : object, othUnwrapped = othIsWrapped ? other.value() : other;
|
|
2312
|
-
stack || (stack = new Stack$1());
|
|
2313
|
-
return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
|
|
2314
|
-
}
|
|
2315
|
-
}
|
|
2316
|
-
if (!isSameTag) {
|
|
2317
|
-
return false;
|
|
2318
|
-
}
|
|
2319
|
-
stack || (stack = new Stack$1());
|
|
2320
|
-
return equalObjects(object, other, bitmask, customizer, equalFunc, stack);
|
|
2321
|
-
}
|
|
2322
|
-
var _baseIsEqualDeep = baseIsEqualDeep$1;
|
|
2323
|
-
var baseIsEqualDeep = _baseIsEqualDeep, isObjectLike$2 = isObjectLike_1;
|
|
2324
|
-
function baseIsEqual$1(value, other, bitmask, customizer, stack) {
|
|
2325
|
-
if (value === other) {
|
|
2326
|
-
return true;
|
|
2327
|
-
}
|
|
2328
|
-
if (value == null || other == null || !isObjectLike$2(value) && !isObjectLike$2(other)) {
|
|
2329
|
-
return value !== value && other !== other;
|
|
2330
|
-
}
|
|
2331
|
-
return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual$1, stack);
|
|
2332
|
-
}
|
|
2333
|
-
var _baseIsEqual = baseIsEqual$1;
|
|
2334
|
-
var baseIsEqual = _baseIsEqual;
|
|
2335
|
-
function isEqual$1(value, other) {
|
|
2336
|
-
return baseIsEqual(value, other);
|
|
2337
|
-
}
|
|
2338
|
-
var isEqual_1 = isEqual$1;
|
|
2339
|
-
const isEqual$2 = /* @__PURE__ */ getDefaultExportFromCjs(isEqual_1);
|
|
2340
1362
|
function useGetState(initialState) {
|
|
2341
1363
|
var _a = __read(React$1.useState(initialState), 2), state = _a[0], setState = _a[1];
|
|
2342
1364
|
var stateRef = React$1.useRef(state);
|
|
@@ -2977,27 +1999,6 @@
|
|
|
2977
1999
|
});
|
|
2978
2000
|
return [state, setRafState];
|
|
2979
2001
|
}
|
|
2980
|
-
var overArg = _overArg;
|
|
2981
|
-
var getPrototype$2 = overArg(Object.getPrototypeOf, Object);
|
|
2982
|
-
var _getPrototype = getPrototype$2;
|
|
2983
|
-
var baseGetTag = _baseGetTag, getPrototype$1 = _getPrototype, isObjectLike$1 = isObjectLike_1;
|
|
2984
|
-
var objectTag = "[object Object]";
|
|
2985
|
-
var funcProto = Function.prototype, objectProto$1 = Object.prototype;
|
|
2986
|
-
var funcToString = funcProto.toString;
|
|
2987
|
-
var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
|
|
2988
|
-
var objectCtorString = funcToString.call(Object);
|
|
2989
|
-
function isPlainObject$1(value) {
|
|
2990
|
-
if (!isObjectLike$1(value) || baseGetTag(value) != objectTag) {
|
|
2991
|
-
return false;
|
|
2992
|
-
}
|
|
2993
|
-
var proto = getPrototype$1(value);
|
|
2994
|
-
if (proto === null) {
|
|
2995
|
-
return true;
|
|
2996
|
-
}
|
|
2997
|
-
var Ctor = hasOwnProperty$1.call(proto, "constructor") && proto.constructor;
|
|
2998
|
-
return typeof Ctor == "function" && Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString;
|
|
2999
|
-
}
|
|
3000
|
-
var isPlainObject_1 = isPlainObject$1;
|
|
3001
2002
|
var useUnmountedRef = function() {
|
|
3002
2003
|
var unmountedRef = React$1.useRef(false);
|
|
3003
2004
|
React$1.useEffect(function() {
|
|
@@ -3537,7 +2538,7 @@
|
|
|
3537
2538
|
function useThrottleFn(fn, options) {
|
|
3538
2539
|
var _a;
|
|
3539
2540
|
if (isDev$1) {
|
|
3540
|
-
if (!isFunction
|
|
2541
|
+
if (!isFunction(fn)) {
|
|
3541
2542
|
console.error("useThrottleFn expected parameter is a function, got ".concat(typeof fn));
|
|
3542
2543
|
}
|
|
3543
2544
|
}
|
|
@@ -3917,7 +2918,7 @@
|
|
|
3917
2918
|
num: (a) => typeof a === "number",
|
|
3918
2919
|
und: (a) => a === void 0
|
|
3919
2920
|
};
|
|
3920
|
-
function isEqual(a, b) {
|
|
2921
|
+
function isEqual$1(a, b) {
|
|
3921
2922
|
if (is.arr(a)) {
|
|
3922
2923
|
if (!is.arr(b) || a.length !== b.length)
|
|
3923
2924
|
return false;
|
|
@@ -5000,13 +4001,13 @@
|
|
|
5000
4001
|
const getDefaultProp = (props, key) => props.default === true ? props[key] : props.default ? props.default[key] : void 0;
|
|
5001
4002
|
const noopTransform = (value) => value;
|
|
5002
4003
|
const getDefaultProps = (props, transform = noopTransform) => {
|
|
5003
|
-
let
|
|
4004
|
+
let keys = DEFAULT_PROPS;
|
|
5004
4005
|
if (props.default && props.default !== true) {
|
|
5005
4006
|
props = props.default;
|
|
5006
|
-
|
|
4007
|
+
keys = Object.keys(props);
|
|
5007
4008
|
}
|
|
5008
4009
|
const defaults2 = {};
|
|
5009
|
-
for (const key of
|
|
4010
|
+
for (const key of keys) {
|
|
5010
4011
|
const value = transform(props[key], key);
|
|
5011
4012
|
if (!is.und(value)) {
|
|
5012
4013
|
defaults2[key] = value;
|
|
@@ -5837,12 +4838,12 @@
|
|
|
5837
4838
|
}
|
|
5838
4839
|
if (props.reverse)
|
|
5839
4840
|
[to2, from] = [from, to2];
|
|
5840
|
-
const hasFromChanged = !isEqual(from, prevFrom);
|
|
4841
|
+
const hasFromChanged = !isEqual$1(from, prevFrom);
|
|
5841
4842
|
if (hasFromChanged) {
|
|
5842
4843
|
anim.from = from;
|
|
5843
4844
|
}
|
|
5844
4845
|
from = getFluidValue(from);
|
|
5845
|
-
const hasToChanged = !isEqual(to2, prevTo);
|
|
4846
|
+
const hasToChanged = !isEqual$1(to2, prevTo);
|
|
5846
4847
|
if (hasToChanged) {
|
|
5847
4848
|
this._focus(to2);
|
|
5848
4849
|
}
|
|
@@ -5884,10 +4885,10 @@
|
|
|
5884
4885
|
if (!started) {
|
|
5885
4886
|
const hasValueChanged = reset || !hasAnimated(this) && hasFromChanged;
|
|
5886
4887
|
if (hasToChanged || hasValueChanged) {
|
|
5887
|
-
finished = isEqual(computeGoal(value), goal);
|
|
4888
|
+
finished = isEqual$1(computeGoal(value), goal);
|
|
5888
4889
|
started = !finished;
|
|
5889
4890
|
}
|
|
5890
|
-
if (!isEqual(anim.immediate, immediate) && !immediate || !isEqual(config2.decay, decay) || !isEqual(config2.velocity, velocity)) {
|
|
4891
|
+
if (!isEqual$1(anim.immediate, immediate) && !immediate || !isEqual$1(config2.decay, decay) || !isEqual$1(config2.velocity, velocity)) {
|
|
5891
4892
|
started = true;
|
|
5892
4893
|
}
|
|
5893
4894
|
}
|
|
@@ -5979,7 +4980,7 @@
|
|
|
5979
4980
|
const value = getFluidValue(arg);
|
|
5980
4981
|
if (!is.und(value)) {
|
|
5981
4982
|
const oldNode = getAnimated(this);
|
|
5982
|
-
if (!oldNode || !isEqual(value, oldNode.getValue())) {
|
|
4983
|
+
if (!oldNode || !isEqual$1(value, oldNode.getValue())) {
|
|
5983
4984
|
const nodeType = getAnimatedType(value);
|
|
5984
4985
|
if (!oldNode || oldNode.constructor != nodeType) {
|
|
5985
4986
|
setAnimated(this, nodeType.create(value));
|
|
@@ -6056,7 +5057,7 @@
|
|
|
6056
5057
|
function checkFinished(target, to2) {
|
|
6057
5058
|
const goal = computeGoal(to2);
|
|
6058
5059
|
const value = computeGoal(target.get());
|
|
6059
|
-
return isEqual(value, goal);
|
|
5060
|
+
return isEqual$1(value, goal);
|
|
6060
5061
|
}
|
|
6061
5062
|
function createLoopUpdate(props, loop2 = props.loop, to2 = props.to) {
|
|
6062
5063
|
let loopRet = callProp(loop2);
|
|
@@ -6079,12 +5080,12 @@
|
|
|
6079
5080
|
to: to2,
|
|
6080
5081
|
from
|
|
6081
5082
|
} = props = inferTo(props);
|
|
6082
|
-
const
|
|
5083
|
+
const keys = /* @__PURE__ */ new Set();
|
|
6083
5084
|
if (is.obj(to2))
|
|
6084
|
-
findDefined(to2,
|
|
5085
|
+
findDefined(to2, keys);
|
|
6085
5086
|
if (is.obj(from))
|
|
6086
|
-
findDefined(from,
|
|
6087
|
-
props.keys =
|
|
5087
|
+
findDefined(from, keys);
|
|
5088
|
+
props.keys = keys.size ? Array.from(keys) : null;
|
|
6088
5089
|
return props;
|
|
6089
5090
|
}
|
|
6090
5091
|
function declareUpdate(props) {
|
|
@@ -6094,8 +5095,8 @@
|
|
|
6094
5095
|
}
|
|
6095
5096
|
return update2;
|
|
6096
5097
|
}
|
|
6097
|
-
function findDefined(values,
|
|
6098
|
-
eachProp(values, (value, key) => value != null &&
|
|
5098
|
+
function findDefined(values, keys) {
|
|
5099
|
+
eachProp(values, (value, key) => value != null && keys.add(key));
|
|
6099
5100
|
}
|
|
6100
5101
|
const ACTIVE_EVENTS = ["onStart", "onRest", "onChange", "onPause", "onResume"];
|
|
6101
5102
|
function mergeActiveFn(target, props, type) {
|
|
@@ -6187,38 +5188,38 @@
|
|
|
6187
5188
|
prepareKeys(this, queue);
|
|
6188
5189
|
return flushUpdateQueue(this, queue);
|
|
6189
5190
|
}
|
|
6190
|
-
stop(arg,
|
|
5191
|
+
stop(arg, keys) {
|
|
6191
5192
|
if (arg !== !!arg) {
|
|
6192
|
-
|
|
5193
|
+
keys = arg;
|
|
6193
5194
|
}
|
|
6194
|
-
if (
|
|
5195
|
+
if (keys) {
|
|
6195
5196
|
const springs = this.springs;
|
|
6196
|
-
each(toArray$3(
|
|
5197
|
+
each(toArray$3(keys), (key) => springs[key].stop(!!arg));
|
|
6197
5198
|
} else {
|
|
6198
5199
|
stopAsync(this._state, this._lastAsyncId);
|
|
6199
5200
|
this.each((spring) => spring.stop(!!arg));
|
|
6200
5201
|
}
|
|
6201
5202
|
return this;
|
|
6202
5203
|
}
|
|
6203
|
-
pause(
|
|
6204
|
-
if (is.und(
|
|
5204
|
+
pause(keys) {
|
|
5205
|
+
if (is.und(keys)) {
|
|
6205
5206
|
this.start({
|
|
6206
5207
|
pause: true
|
|
6207
5208
|
});
|
|
6208
5209
|
} else {
|
|
6209
5210
|
const springs = this.springs;
|
|
6210
|
-
each(toArray$3(
|
|
5211
|
+
each(toArray$3(keys), (key) => springs[key].pause());
|
|
6211
5212
|
}
|
|
6212
5213
|
return this;
|
|
6213
5214
|
}
|
|
6214
|
-
resume(
|
|
6215
|
-
if (is.und(
|
|
5215
|
+
resume(keys) {
|
|
5216
|
+
if (is.und(keys)) {
|
|
6216
5217
|
this.start({
|
|
6217
5218
|
pause: false
|
|
6218
5219
|
});
|
|
6219
5220
|
} else {
|
|
6220
5221
|
const springs = this.springs;
|
|
6221
|
-
each(toArray$3(
|
|
5222
|
+
each(toArray$3(keys), (key) => springs[key].resume());
|
|
6222
5223
|
}
|
|
6223
5224
|
return this;
|
|
6224
5225
|
}
|
|
@@ -6274,7 +5275,7 @@
|
|
|
6274
5275
|
}
|
|
6275
5276
|
async function flushUpdate(ctrl, props, isLoop) {
|
|
6276
5277
|
const {
|
|
6277
|
-
keys
|
|
5278
|
+
keys,
|
|
6278
5279
|
to: to2,
|
|
6279
5280
|
from,
|
|
6280
5281
|
loop: loop2,
|
|
@@ -6332,7 +5333,7 @@
|
|
|
6332
5333
|
} else if (state.paused) {
|
|
6333
5334
|
props.pause = true;
|
|
6334
5335
|
}
|
|
6335
|
-
const promises = (
|
|
5336
|
+
const promises = (keys || Object.keys(ctrl.springs)).map((key) => ctrl.springs[key].start(props));
|
|
6336
5337
|
const cancel = props.cancel === true || getDefaultProp(props, "cancel") === true;
|
|
6337
5338
|
if (asyncTo || cancel && state.asyncId) {
|
|
6338
5339
|
promises.push(scheduleProps(++ctrl["_lastAsyncId"], {
|
|
@@ -6641,7 +5642,7 @@
|
|
|
6641
5642
|
advance(_dt) {
|
|
6642
5643
|
const value = this._get();
|
|
6643
5644
|
const oldValue = this.get();
|
|
6644
|
-
if (!isEqual(value, oldValue)) {
|
|
5645
|
+
if (!isEqual$1(value, oldValue)) {
|
|
6645
5646
|
getAnimated(this).setValue(value);
|
|
6646
5647
|
this._onChange(value, this.idle);
|
|
6647
5648
|
}
|
|
@@ -6966,7 +5967,8 @@
|
|
|
6966
5967
|
return !destroyOnClose;
|
|
6967
5968
|
}
|
|
6968
5969
|
const eventToPropRecord$1 = {
|
|
6969
|
-
"click": "onClick"
|
|
5970
|
+
"click": "onClick",
|
|
5971
|
+
"touchstart": "onTouchStart"
|
|
6970
5972
|
};
|
|
6971
5973
|
function withStopPropagation(events, element) {
|
|
6972
5974
|
const props = Object.assign({}, element.props);
|
|
@@ -7703,18 +6705,18 @@
|
|
|
7703
6705
|
v1[1] -= v2[1];
|
|
7704
6706
|
}
|
|
7705
6707
|
};
|
|
7706
|
-
function rubberband$1(distance, dimension,
|
|
6708
|
+
function rubberband$1(distance, dimension, constant) {
|
|
7707
6709
|
if (dimension === 0 || Math.abs(dimension) === Infinity)
|
|
7708
|
-
return Math.pow(distance,
|
|
7709
|
-
return distance * dimension *
|
|
6710
|
+
return Math.pow(distance, constant * 5);
|
|
6711
|
+
return distance * dimension * constant / (dimension + constant * distance);
|
|
7710
6712
|
}
|
|
7711
|
-
function rubberbandIfOutOfBounds$1(position, min2, max2,
|
|
7712
|
-
if (
|
|
6713
|
+
function rubberbandIfOutOfBounds$1(position, min2, max2, constant = 0.15) {
|
|
6714
|
+
if (constant === 0)
|
|
7713
6715
|
return clamp$1(position, min2, max2);
|
|
7714
6716
|
if (position < min2)
|
|
7715
|
-
return -rubberband$1(min2 - position, max2 - min2,
|
|
6717
|
+
return -rubberband$1(min2 - position, max2 - min2, constant) + min2;
|
|
7716
6718
|
if (position > max2)
|
|
7717
|
-
return +rubberband$1(position - max2, max2 - min2,
|
|
6719
|
+
return +rubberband$1(position - max2, max2 - min2, constant) + max2;
|
|
7718
6720
|
return position;
|
|
7719
6721
|
}
|
|
7720
6722
|
function computeRubberband(bounds, [Vx, Vy], [Rx, Ry]) {
|
|
@@ -8661,11 +7663,11 @@ This message will only show in development mode. It won't appear in production.
|
|
|
8661
7663
|
pointer: {
|
|
8662
7664
|
capture = true,
|
|
8663
7665
|
buttons = 1,
|
|
8664
|
-
keys
|
|
7666
|
+
keys = true
|
|
8665
7667
|
} = {}
|
|
8666
7668
|
}) {
|
|
8667
7669
|
this.pointerButtons = buttons;
|
|
8668
|
-
this.keys =
|
|
7670
|
+
this.keys = keys;
|
|
8669
7671
|
return !this.pointerLock && this.device === "pointer" && capture;
|
|
8670
7672
|
},
|
|
8671
7673
|
threshold(value, _k, {
|
|
@@ -11027,7 +10029,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11027
10029
|
*/
|
|
11028
10030
|
{
|
|
11029
10031
|
(function() {
|
|
11030
|
-
var
|
|
10032
|
+
var REACT_ELEMENT_TYPE2 = Symbol.for("react.element");
|
|
11031
10033
|
var REACT_PORTAL_TYPE = Symbol.for("react.portal");
|
|
11032
10034
|
var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
|
11033
10035
|
var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
|
|
@@ -11072,7 +10074,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11072
10074
|
if (typeof object === "object" && object !== null) {
|
|
11073
10075
|
var $$typeof = object.$$typeof;
|
|
11074
10076
|
switch ($$typeof) {
|
|
11075
|
-
case
|
|
10077
|
+
case REACT_ELEMENT_TYPE2:
|
|
11076
10078
|
var type = object.type;
|
|
11077
10079
|
switch (type) {
|
|
11078
10080
|
case REACT_FRAGMENT_TYPE:
|
|
@@ -11103,7 +10105,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11103
10105
|
}
|
|
11104
10106
|
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
11105
10107
|
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
11106
|
-
var Element2 =
|
|
10108
|
+
var Element2 = REACT_ELEMENT_TYPE2;
|
|
11107
10109
|
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
11108
10110
|
var Fragment = REACT_FRAGMENT_TYPE;
|
|
11109
10111
|
var Lazy = REACT_LAZY_TYPE;
|
|
@@ -11140,7 +10142,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11140
10142
|
return typeOf(object) === REACT_PROVIDER_TYPE;
|
|
11141
10143
|
}
|
|
11142
10144
|
function isElement2(object) {
|
|
11143
|
-
return typeof object === "object" && object !== null && object.$$typeof ===
|
|
10145
|
+
return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE2;
|
|
11144
10146
|
}
|
|
11145
10147
|
function isForwardRef(object) {
|
|
11146
10148
|
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
|
@@ -11335,18 +10337,108 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11335
10337
|
onClick: props.onClick
|
|
11336
10338
|
}, renderHeader(), renderBody()));
|
|
11337
10339
|
};
|
|
11338
|
-
function rubberband(distance, dimension,
|
|
11339
|
-
return distance * dimension *
|
|
10340
|
+
function rubberband(distance, dimension, constant) {
|
|
10341
|
+
return distance * dimension * constant / (dimension + constant * distance);
|
|
11340
10342
|
}
|
|
11341
|
-
function rubberbandIfOutOfBounds(position, min2, max2, dimension,
|
|
11342
|
-
if (
|
|
10343
|
+
function rubberbandIfOutOfBounds(position, min2, max2, dimension, constant = 0.15) {
|
|
10344
|
+
if (constant === 0)
|
|
11343
10345
|
return bound(position, min2, max2);
|
|
11344
10346
|
if (position < min2)
|
|
11345
|
-
return -rubberband(min2 - position, dimension,
|
|
10347
|
+
return -rubberband(min2 - position, dimension, constant) + min2;
|
|
11346
10348
|
if (position > max2)
|
|
11347
|
-
return +rubberband(position - max2, dimension,
|
|
10349
|
+
return +rubberband(position - max2, dimension, constant) + max2;
|
|
11348
10350
|
return position;
|
|
11349
10351
|
}
|
|
10352
|
+
var hasElementType = typeof Element !== "undefined";
|
|
10353
|
+
var hasMap = typeof Map === "function";
|
|
10354
|
+
var hasSet = typeof Set === "function";
|
|
10355
|
+
var hasArrayBuffer = typeof ArrayBuffer === "function" && !!ArrayBuffer.isView;
|
|
10356
|
+
function equal(a, b) {
|
|
10357
|
+
if (a === b)
|
|
10358
|
+
return true;
|
|
10359
|
+
if (a && b && typeof a == "object" && typeof b == "object") {
|
|
10360
|
+
if (a.constructor !== b.constructor)
|
|
10361
|
+
return false;
|
|
10362
|
+
var length, i2, keys;
|
|
10363
|
+
if (Array.isArray(a)) {
|
|
10364
|
+
length = a.length;
|
|
10365
|
+
if (length != b.length)
|
|
10366
|
+
return false;
|
|
10367
|
+
for (i2 = length; i2-- !== 0; )
|
|
10368
|
+
if (!equal(a[i2], b[i2]))
|
|
10369
|
+
return false;
|
|
10370
|
+
return true;
|
|
10371
|
+
}
|
|
10372
|
+
var it;
|
|
10373
|
+
if (hasMap && a instanceof Map && b instanceof Map) {
|
|
10374
|
+
if (a.size !== b.size)
|
|
10375
|
+
return false;
|
|
10376
|
+
it = a.entries();
|
|
10377
|
+
while (!(i2 = it.next()).done)
|
|
10378
|
+
if (!b.has(i2.value[0]))
|
|
10379
|
+
return false;
|
|
10380
|
+
it = a.entries();
|
|
10381
|
+
while (!(i2 = it.next()).done)
|
|
10382
|
+
if (!equal(i2.value[1], b.get(i2.value[0])))
|
|
10383
|
+
return false;
|
|
10384
|
+
return true;
|
|
10385
|
+
}
|
|
10386
|
+
if (hasSet && a instanceof Set && b instanceof Set) {
|
|
10387
|
+
if (a.size !== b.size)
|
|
10388
|
+
return false;
|
|
10389
|
+
it = a.entries();
|
|
10390
|
+
while (!(i2 = it.next()).done)
|
|
10391
|
+
if (!b.has(i2.value[0]))
|
|
10392
|
+
return false;
|
|
10393
|
+
return true;
|
|
10394
|
+
}
|
|
10395
|
+
if (hasArrayBuffer && ArrayBuffer.isView(a) && ArrayBuffer.isView(b)) {
|
|
10396
|
+
length = a.length;
|
|
10397
|
+
if (length != b.length)
|
|
10398
|
+
return false;
|
|
10399
|
+
for (i2 = length; i2-- !== 0; )
|
|
10400
|
+
if (a[i2] !== b[i2])
|
|
10401
|
+
return false;
|
|
10402
|
+
return true;
|
|
10403
|
+
}
|
|
10404
|
+
if (a.constructor === RegExp)
|
|
10405
|
+
return a.source === b.source && a.flags === b.flags;
|
|
10406
|
+
if (a.valueOf !== Object.prototype.valueOf && typeof a.valueOf === "function" && typeof b.valueOf === "function")
|
|
10407
|
+
return a.valueOf() === b.valueOf();
|
|
10408
|
+
if (a.toString !== Object.prototype.toString && typeof a.toString === "function" && typeof b.toString === "function")
|
|
10409
|
+
return a.toString() === b.toString();
|
|
10410
|
+
keys = Object.keys(a);
|
|
10411
|
+
length = keys.length;
|
|
10412
|
+
if (length !== Object.keys(b).length)
|
|
10413
|
+
return false;
|
|
10414
|
+
for (i2 = length; i2-- !== 0; )
|
|
10415
|
+
if (!Object.prototype.hasOwnProperty.call(b, keys[i2]))
|
|
10416
|
+
return false;
|
|
10417
|
+
if (hasElementType && a instanceof Element)
|
|
10418
|
+
return false;
|
|
10419
|
+
for (i2 = length; i2-- !== 0; ) {
|
|
10420
|
+
if ((keys[i2] === "_owner" || keys[i2] === "__v" || keys[i2] === "__o") && a.$$typeof) {
|
|
10421
|
+
continue;
|
|
10422
|
+
}
|
|
10423
|
+
if (!equal(a[keys[i2]], b[keys[i2]]))
|
|
10424
|
+
return false;
|
|
10425
|
+
}
|
|
10426
|
+
return true;
|
|
10427
|
+
}
|
|
10428
|
+
return a !== a && b !== b;
|
|
10429
|
+
}
|
|
10430
|
+
var reactFastCompare = function isEqual2(a, b) {
|
|
10431
|
+
try {
|
|
10432
|
+
return equal(a, b);
|
|
10433
|
+
} catch (error) {
|
|
10434
|
+
if ((error.message || "").match(/stack|recursion/i)) {
|
|
10435
|
+
console.warn("react-fast-compare cannot handle circular refs");
|
|
10436
|
+
return false;
|
|
10437
|
+
}
|
|
10438
|
+
throw error;
|
|
10439
|
+
}
|
|
10440
|
+
};
|
|
10441
|
+
const isEqual = /* @__PURE__ */ getDefaultExportFromCjs(reactFastCompare);
|
|
11350
10442
|
function measureCSSLength(raw) {
|
|
11351
10443
|
if (raw === null || raw === void 0 || raw === "") {
|
|
11352
10444
|
{
|
|
@@ -11583,8 +10675,10 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11583
10675
|
}
|
|
11584
10676
|
return React$1.createElement("div", {
|
|
11585
10677
|
key: (_a = item.key) !== null && _a !== void 0 ? _a : item.value,
|
|
11586
|
-
"data-selected":
|
|
11587
|
-
className: `${classPrefix$18}-column-item`,
|
|
10678
|
+
"data-selected": selected,
|
|
10679
|
+
className: classNames(`${classPrefix$18}-column-item`, {
|
|
10680
|
+
[`${classPrefix$18}-column-item-active`]: selected
|
|
10681
|
+
}),
|
|
11588
10682
|
onClick: handleClick,
|
|
11589
10683
|
"aria-hidden": !selected,
|
|
11590
10684
|
"aria-label": selected ? "active" : ""
|
|
@@ -11603,7 +10697,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11603
10697
|
return false;
|
|
11604
10698
|
if (prev.mouseWheel !== next.mouseWheel)
|
|
11605
10699
|
return false;
|
|
11606
|
-
if (!isEqual
|
|
10700
|
+
if (!isEqual(prev.column, next.column))
|
|
11607
10701
|
return false;
|
|
11608
10702
|
return true;
|
|
11609
10703
|
});
|
|
@@ -12570,34 +11664,82 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
12570
11664
|
const CheckList = attachPropertiesToComponent(CheckList$1, {
|
|
12571
11665
|
Item: CheckListItem
|
|
12572
11666
|
});
|
|
12573
|
-
var
|
|
12574
|
-
|
|
12575
|
-
|
|
12576
|
-
|
|
12577
|
-
|
|
12578
|
-
}
|
|
12579
|
-
var
|
|
12580
|
-
|
|
12581
|
-
|
|
12582
|
-
|
|
12583
|
-
|
|
12584
|
-
|
|
12585
|
-
|
|
12586
|
-
|
|
11667
|
+
function $cf838c15c8b009ba$var$vrgs(f) {
|
|
11668
|
+
var s = f + "", i2 = s.indexOf("...");
|
|
11669
|
+
return i2 >= 0 && (i2 < s.indexOf(")") || s.indexOf("arguments") >= 0);
|
|
11670
|
+
}
|
|
11671
|
+
function $cf838c15c8b009ba$export$22f15dd4e5be7e52(fn, o) {
|
|
11672
|
+
o || (o = {});
|
|
11673
|
+
var vargs = o.vargs || $cf838c15c8b009ba$var$vrgs(fn), k = [], cache = /* @__PURE__ */ new Map(), u, to2, d = function(key) {
|
|
11674
|
+
return to2 = setTimeout(function() {
|
|
11675
|
+
if (u) {
|
|
11676
|
+
cache.delete(key);
|
|
11677
|
+
return;
|
|
11678
|
+
}
|
|
11679
|
+
k.splice(key, 1);
|
|
11680
|
+
}, o.maxAge);
|
|
11681
|
+
}, c = o.maxAge > 0 && o.maxAge < Infinity ? d : 0, eq = o.equals ? o.equals : 0, maxargs = o.maxArgs, srlz = o.serializer, f;
|
|
11682
|
+
if (fn.length === 1 && !o.equals && !vargs) {
|
|
11683
|
+
f = function(a) {
|
|
11684
|
+
if (srlz)
|
|
11685
|
+
a = srlz(a);
|
|
11686
|
+
var r;
|
|
11687
|
+
return cache.get(a) || (!c || c(a), cache.set(a, r = fn.call(this, a)), r);
|
|
11688
|
+
};
|
|
11689
|
+
u = 1;
|
|
11690
|
+
} else if (eq)
|
|
11691
|
+
f = function() {
|
|
11692
|
+
var l = maxargs || arguments.length, kl = k.length, i2 = -1;
|
|
11693
|
+
while (++i2 < kl)
|
|
11694
|
+
if (k[i2].length === l) {
|
|
11695
|
+
var j = -1;
|
|
11696
|
+
while (++j < l && eq(arguments[j], k[i2][j]))
|
|
11697
|
+
;
|
|
11698
|
+
if (j === l)
|
|
11699
|
+
return k[i2].val;
|
|
11700
|
+
}
|
|
11701
|
+
k[i2] = arguments;
|
|
11702
|
+
return !c || c(i2), arguments.val = fn.apply(this, k[i2]);
|
|
11703
|
+
};
|
|
11704
|
+
else
|
|
11705
|
+
f = function() {
|
|
11706
|
+
var l = maxargs || arguments.length, kl = k.length, i2 = -1;
|
|
11707
|
+
while (++i2 < kl)
|
|
11708
|
+
if (k[i2].length === l) {
|
|
11709
|
+
var j = -1;
|
|
11710
|
+
while (++j < l && arguments[j] === k[i2][j])
|
|
11711
|
+
;
|
|
11712
|
+
if (j === l)
|
|
11713
|
+
return k[i2].val;
|
|
11714
|
+
}
|
|
11715
|
+
k[i2] = arguments;
|
|
11716
|
+
return !c || c(i2), arguments.val = fn.apply(this, k[i2]);
|
|
11717
|
+
};
|
|
11718
|
+
f.clear = function() {
|
|
11719
|
+
if (to2)
|
|
11720
|
+
clearTimeout(to2);
|
|
11721
|
+
cache.clear();
|
|
11722
|
+
k = [];
|
|
11723
|
+
};
|
|
11724
|
+
f.keys = function() {
|
|
11725
|
+
return u ? [
|
|
11726
|
+
...cache.keys()
|
|
11727
|
+
] : k.slice();
|
|
11728
|
+
};
|
|
11729
|
+
f.values = function() {
|
|
11730
|
+
return u ? [
|
|
11731
|
+
...cache.values()
|
|
11732
|
+
] : k.map((args) => args.val);
|
|
12587
11733
|
};
|
|
12588
|
-
|
|
12589
|
-
return memoized;
|
|
11734
|
+
return f;
|
|
12590
11735
|
}
|
|
12591
|
-
memoize.Cache = MapCache;
|
|
12592
|
-
var memoize_1 = memoize;
|
|
12593
|
-
const memoize$1 = /* @__PURE__ */ getDefaultExportFromCjs(memoize_1);
|
|
12594
11736
|
function useCascaderValueExtend(options, fieldNames) {
|
|
12595
11737
|
const {
|
|
12596
11738
|
valueName,
|
|
12597
11739
|
childrenName
|
|
12598
11740
|
} = fieldNames;
|
|
12599
11741
|
const generateItems = React$1.useMemo(() => {
|
|
12600
|
-
return
|
|
11742
|
+
return $cf838c15c8b009ba$export$22f15dd4e5be7e52((val) => {
|
|
12601
11743
|
const ret = [];
|
|
12602
11744
|
let currentOptions = options;
|
|
12603
11745
|
for (const v of val) {
|
|
@@ -12611,16 +11753,20 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
12611
11753
|
currentOptions = target[childrenName];
|
|
12612
11754
|
}
|
|
12613
11755
|
return ret;
|
|
12614
|
-
},
|
|
11756
|
+
}, {
|
|
11757
|
+
equals: isEqual
|
|
11758
|
+
});
|
|
12615
11759
|
}, [options]);
|
|
12616
11760
|
const generateIsLeaf = React$1.useMemo(() => {
|
|
12617
|
-
return
|
|
11761
|
+
return $cf838c15c8b009ba$export$22f15dd4e5be7e52((val) => {
|
|
12618
11762
|
const children = val.reduce((currentOptions, v) => {
|
|
12619
11763
|
var _a;
|
|
12620
11764
|
return ((_a = currentOptions.find((option) => option[valueName] === v)) === null || _a === void 0 ? void 0 : _a[childrenName]) || [];
|
|
12621
11765
|
}, options);
|
|
12622
11766
|
return children.length === 0;
|
|
12623
|
-
},
|
|
11767
|
+
}, {
|
|
11768
|
+
equals: isEqual
|
|
11769
|
+
});
|
|
12624
11770
|
}, [options]);
|
|
12625
11771
|
function generateValueExtend(val) {
|
|
12626
11772
|
return {
|
|
@@ -12661,10 +11807,10 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
12661
11807
|
};
|
|
12662
11808
|
const SkeletonParagraph = (p) => {
|
|
12663
11809
|
const props = mergeProps(defaultSkeletonParagraphProps, p);
|
|
12664
|
-
const
|
|
11810
|
+
const keys = generateIntArray(1, props.lineCount);
|
|
12665
11811
|
const node = React$1.createElement("div", {
|
|
12666
11812
|
className: `${classPrefix$$}-paragraph`
|
|
12667
|
-
},
|
|
11813
|
+
}, keys.map((key) => React$1.createElement(Skeleton$1, {
|
|
12668
11814
|
key,
|
|
12669
11815
|
animated: props.animated,
|
|
12670
11816
|
className: `${classPrefix$$}-paragraph-line`
|
|
@@ -16691,8 +15837,8 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
16691
15837
|
options.messages = this.messages();
|
|
16692
15838
|
}
|
|
16693
15839
|
var series = {};
|
|
16694
|
-
var
|
|
16695
|
-
|
|
15840
|
+
var keys = options.keys || Object.keys(this.rules);
|
|
15841
|
+
keys.forEach(function(z) {
|
|
16696
15842
|
var arr = _this2.rules[z];
|
|
16697
15843
|
var value = source[z];
|
|
16698
15844
|
arr.forEach(function(r) {
|
|
@@ -16845,12 +15991,12 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
16845
15991
|
if (typeof rule.validator === "function") {
|
|
16846
15992
|
return rule.validator;
|
|
16847
15993
|
}
|
|
16848
|
-
var
|
|
16849
|
-
var messageIndex =
|
|
15994
|
+
var keys = Object.keys(rule);
|
|
15995
|
+
var messageIndex = keys.indexOf("message");
|
|
16850
15996
|
if (messageIndex !== -1) {
|
|
16851
|
-
|
|
15997
|
+
keys.splice(messageIndex, 1);
|
|
16852
15998
|
}
|
|
16853
|
-
if (
|
|
15999
|
+
if (keys.length === 1 && keys[0] === "required") {
|
|
16854
16000
|
return validators.required;
|
|
16855
16001
|
}
|
|
16856
16002
|
return validators[this.getType(rule)] || void 0;
|
|
@@ -17009,7 +16155,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
17009
16155
|
return matchNamePath(path, namePath);
|
|
17010
16156
|
});
|
|
17011
16157
|
}
|
|
17012
|
-
function isObject
|
|
16158
|
+
function isObject(obj) {
|
|
17013
16159
|
return _typeof$1(obj) === "object" && obj !== null && Object.getPrototypeOf(obj) === Object.prototype;
|
|
17014
16160
|
}
|
|
17015
16161
|
function internalSetValues(store, values) {
|
|
@@ -17020,7 +16166,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
17020
16166
|
Object.keys(values).forEach(function(key) {
|
|
17021
16167
|
var prevValue = newStore[key];
|
|
17022
16168
|
var value = values[key];
|
|
17023
|
-
var recursive = isObject
|
|
16169
|
+
var recursive = isObject(prevValue) && isObject(value);
|
|
17024
16170
|
newStore[key] = recursive ? internalSetValues(prevValue, value || {}) : cloneDeep(value);
|
|
17025
16171
|
});
|
|
17026
16172
|
return newStore;
|
|
@@ -17053,8 +16199,8 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
17053
16199
|
}
|
|
17054
16200
|
var sourceKeys = Object.keys(source);
|
|
17055
16201
|
var targetKeys = Object.keys(target);
|
|
17056
|
-
var
|
|
17057
|
-
return _toConsumableArray(
|
|
16202
|
+
var keys = new Set([].concat(sourceKeys, targetKeys));
|
|
16203
|
+
return _toConsumableArray(keys).every(function(key) {
|
|
17058
16204
|
var sourceValue = source[key];
|
|
17059
16205
|
var targetValue = target[key];
|
|
17060
16206
|
if (typeof sourceValue === "function" && typeof targetValue === "function") {
|
|
@@ -18930,215 +18076,103 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
18930
18076
|
const FormContext = React$1.createContext(defaultFormContext);
|
|
18931
18077
|
const NoStyleItemContext = React$1.createContext(null);
|
|
18932
18078
|
const Header = () => null;
|
|
18933
|
-
var
|
|
18934
|
-
|
|
18935
|
-
|
|
18936
|
-
|
|
18937
|
-
|
|
18938
|
-
}
|
|
18939
|
-
var _assignMergeValue = assignMergeValue$2;
|
|
18940
|
-
function createBaseFor$1(fromRight) {
|
|
18941
|
-
return function(object, iteratee, keysFunc) {
|
|
18942
|
-
var index2 = -1, iterable = Object(object), props = keysFunc(object), length = props.length;
|
|
18943
|
-
while (length--) {
|
|
18944
|
-
var key = props[fromRight ? length : ++index2];
|
|
18945
|
-
if (iteratee(iterable[key], key, iterable) === false) {
|
|
18946
|
-
break;
|
|
18947
|
-
}
|
|
18948
|
-
}
|
|
18949
|
-
return object;
|
|
18950
|
-
};
|
|
18079
|
+
var isMergeableObject = function isMergeableObject2(value) {
|
|
18080
|
+
return isNonNullObject(value) && !isSpecial(value);
|
|
18081
|
+
};
|
|
18082
|
+
function isNonNullObject(value) {
|
|
18083
|
+
return !!value && typeof value === "object";
|
|
18951
18084
|
}
|
|
18952
|
-
|
|
18953
|
-
|
|
18954
|
-
|
|
18955
|
-
var _baseFor = baseFor$1;
|
|
18956
|
-
var _cloneBuffer = { exports: {} };
|
|
18957
|
-
_cloneBuffer.exports;
|
|
18958
|
-
(function(module2, exports3) {
|
|
18959
|
-
var root2 = _root;
|
|
18960
|
-
var freeExports = exports3 && !exports3.nodeType && exports3;
|
|
18961
|
-
var freeModule = freeExports && true && module2 && !module2.nodeType && module2;
|
|
18962
|
-
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
18963
|
-
var Buffer = moduleExports ? root2.Buffer : void 0, allocUnsafe = Buffer ? Buffer.allocUnsafe : void 0;
|
|
18964
|
-
function cloneBuffer2(buffer, isDeep) {
|
|
18965
|
-
if (isDeep) {
|
|
18966
|
-
return buffer.slice();
|
|
18967
|
-
}
|
|
18968
|
-
var length = buffer.length, result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
|
|
18969
|
-
buffer.copy(result);
|
|
18970
|
-
return result;
|
|
18971
|
-
}
|
|
18972
|
-
module2.exports = cloneBuffer2;
|
|
18973
|
-
})(_cloneBuffer, _cloneBuffer.exports);
|
|
18974
|
-
var _cloneBufferExports = _cloneBuffer.exports;
|
|
18975
|
-
var Uint8Array = _Uint8Array;
|
|
18976
|
-
function cloneArrayBuffer$1(arrayBuffer) {
|
|
18977
|
-
var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
|
|
18978
|
-
new Uint8Array(result).set(new Uint8Array(arrayBuffer));
|
|
18979
|
-
return result;
|
|
18085
|
+
function isSpecial(value) {
|
|
18086
|
+
var stringValue = Object.prototype.toString.call(value);
|
|
18087
|
+
return stringValue === "[object RegExp]" || stringValue === "[object Date]" || isReactElement(value);
|
|
18980
18088
|
}
|
|
18981
|
-
var
|
|
18982
|
-
var
|
|
18983
|
-
function
|
|
18984
|
-
|
|
18985
|
-
return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
|
|
18089
|
+
var canUseSymbol = typeof Symbol === "function" && Symbol.for;
|
|
18090
|
+
var REACT_ELEMENT_TYPE = canUseSymbol ? Symbol.for("react.element") : 60103;
|
|
18091
|
+
function isReactElement(value) {
|
|
18092
|
+
return value.$$typeof === REACT_ELEMENT_TYPE;
|
|
18986
18093
|
}
|
|
18987
|
-
|
|
18988
|
-
|
|
18989
|
-
var index2 = -1, length = source.length;
|
|
18990
|
-
array || (array = Array(length));
|
|
18991
|
-
while (++index2 < length) {
|
|
18992
|
-
array[index2] = source[index2];
|
|
18993
|
-
}
|
|
18994
|
-
return array;
|
|
18094
|
+
function emptyTarget(val) {
|
|
18095
|
+
return Array.isArray(val) ? [] : {};
|
|
18995
18096
|
}
|
|
18996
|
-
|
|
18997
|
-
|
|
18998
|
-
var objectCreate = Object.create;
|
|
18999
|
-
var baseCreate$1 = /* @__PURE__ */ function() {
|
|
19000
|
-
function object() {
|
|
19001
|
-
}
|
|
19002
|
-
return function(proto) {
|
|
19003
|
-
if (!isObject$3(proto)) {
|
|
19004
|
-
return {};
|
|
19005
|
-
}
|
|
19006
|
-
if (objectCreate) {
|
|
19007
|
-
return objectCreate(proto);
|
|
19008
|
-
}
|
|
19009
|
-
object.prototype = proto;
|
|
19010
|
-
var result = new object();
|
|
19011
|
-
object.prototype = void 0;
|
|
19012
|
-
return result;
|
|
19013
|
-
};
|
|
19014
|
-
}();
|
|
19015
|
-
var _baseCreate = baseCreate$1;
|
|
19016
|
-
var baseCreate = _baseCreate, getPrototype = _getPrototype, isPrototype$1 = _isPrototype;
|
|
19017
|
-
function initCloneObject$1(object) {
|
|
19018
|
-
return typeof object.constructor == "function" && !isPrototype$1(object) ? baseCreate(getPrototype(object)) : {};
|
|
19019
|
-
}
|
|
19020
|
-
var _initCloneObject = initCloneObject$1;
|
|
19021
|
-
var isArrayLike$1 = isArrayLike_1, isObjectLike = isObjectLike_1;
|
|
19022
|
-
function isArrayLikeObject$1(value) {
|
|
19023
|
-
return isObjectLike(value) && isArrayLike$1(value);
|
|
19024
|
-
}
|
|
19025
|
-
var isArrayLikeObject_1 = isArrayLikeObject$1;
|
|
19026
|
-
function safeGet$2(object, key) {
|
|
19027
|
-
if (key === "constructor" && typeof object[key] === "function") {
|
|
19028
|
-
return;
|
|
19029
|
-
}
|
|
19030
|
-
if (key == "__proto__") {
|
|
19031
|
-
return;
|
|
19032
|
-
}
|
|
19033
|
-
return object[key];
|
|
18097
|
+
function cloneUnlessOtherwiseSpecified(value, options) {
|
|
18098
|
+
return options.clone !== false && options.isMergeableObject(value) ? deepmerge(emptyTarget(value), value, options) : value;
|
|
19034
18099
|
}
|
|
19035
|
-
|
|
19036
|
-
|
|
19037
|
-
|
|
19038
|
-
|
|
19039
|
-
for (var key in Object(object)) {
|
|
19040
|
-
result.push(key);
|
|
19041
|
-
}
|
|
19042
|
-
}
|
|
19043
|
-
return result;
|
|
18100
|
+
function defaultArrayMerge(target, source, options) {
|
|
18101
|
+
return target.concat(source).map(function(element) {
|
|
18102
|
+
return cloneUnlessOtherwiseSpecified(element, options);
|
|
18103
|
+
});
|
|
19044
18104
|
}
|
|
19045
|
-
|
|
19046
|
-
|
|
19047
|
-
|
|
19048
|
-
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
19049
|
-
function baseKeysIn$1(object) {
|
|
19050
|
-
if (!isObject$2(object)) {
|
|
19051
|
-
return nativeKeysIn(object);
|
|
18105
|
+
function getMergeFunction(key, options) {
|
|
18106
|
+
if (!options.customMerge) {
|
|
18107
|
+
return deepmerge;
|
|
19052
18108
|
}
|
|
19053
|
-
var
|
|
19054
|
-
|
|
19055
|
-
|
|
19056
|
-
|
|
19057
|
-
|
|
18109
|
+
var customMerge = options.customMerge(key);
|
|
18110
|
+
return typeof customMerge === "function" ? customMerge : deepmerge;
|
|
18111
|
+
}
|
|
18112
|
+
function getEnumerableOwnPropertySymbols(target) {
|
|
18113
|
+
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(target).filter(function(symbol) {
|
|
18114
|
+
return Object.propertyIsEnumerable.call(target, symbol);
|
|
18115
|
+
}) : [];
|
|
18116
|
+
}
|
|
18117
|
+
function getKeys(target) {
|
|
18118
|
+
return Object.keys(target).concat(getEnumerableOwnPropertySymbols(target));
|
|
18119
|
+
}
|
|
18120
|
+
function propertyIsOnObject(object, property) {
|
|
18121
|
+
try {
|
|
18122
|
+
return property in object;
|
|
18123
|
+
} catch (_) {
|
|
18124
|
+
return false;
|
|
19058
18125
|
}
|
|
19059
|
-
return result;
|
|
19060
18126
|
}
|
|
19061
|
-
|
|
19062
|
-
|
|
19063
|
-
|
|
19064
|
-
|
|
19065
|
-
|
|
19066
|
-
|
|
19067
|
-
|
|
19068
|
-
|
|
19069
|
-
|
|
19070
|
-
}
|
|
19071
|
-
var toPlainObject_1 = toPlainObject$1;
|
|
19072
|
-
var assignMergeValue$1 = _assignMergeValue, cloneBuffer = _cloneBufferExports, cloneTypedArray = _cloneTypedArray, copyArray = _copyArray, initCloneObject = _initCloneObject, isArguments = isArguments_1, isArray = isArray_1, isArrayLikeObject = isArrayLikeObject_1, isBuffer = isBufferExports, isFunction = isFunction_1, isObject$1 = isObject_1, isPlainObject = isPlainObject_1, isTypedArray = isTypedArray_1, safeGet$1 = _safeGet, toPlainObject = toPlainObject_1;
|
|
19073
|
-
function baseMergeDeep$1(object, source, key, srcIndex, mergeFunc, customizer, stack) {
|
|
19074
|
-
var objValue = safeGet$1(object, key), srcValue = safeGet$1(source, key), stacked = stack.get(srcValue);
|
|
19075
|
-
if (stacked) {
|
|
19076
|
-
assignMergeValue$1(object, key, stacked);
|
|
19077
|
-
return;
|
|
18127
|
+
function propertyIsUnsafe(target, key) {
|
|
18128
|
+
return propertyIsOnObject(target, key) && !(Object.hasOwnProperty.call(target, key) && Object.propertyIsEnumerable.call(target, key));
|
|
18129
|
+
}
|
|
18130
|
+
function mergeObject(target, source, options) {
|
|
18131
|
+
var destination = {};
|
|
18132
|
+
if (options.isMergeableObject(target)) {
|
|
18133
|
+
getKeys(target).forEach(function(key) {
|
|
18134
|
+
destination[key] = cloneUnlessOtherwiseSpecified(target[key], options);
|
|
18135
|
+
});
|
|
19078
18136
|
}
|
|
19079
|
-
|
|
19080
|
-
|
|
19081
|
-
|
|
19082
|
-
|
|
19083
|
-
|
|
19084
|
-
|
|
19085
|
-
if (isArray(objValue)) {
|
|
19086
|
-
newValue = objValue;
|
|
19087
|
-
} else if (isArrayLikeObject(objValue)) {
|
|
19088
|
-
newValue = copyArray(objValue);
|
|
19089
|
-
} else if (isBuff) {
|
|
19090
|
-
isCommon = false;
|
|
19091
|
-
newValue = cloneBuffer(srcValue, true);
|
|
19092
|
-
} else if (isTyped) {
|
|
19093
|
-
isCommon = false;
|
|
19094
|
-
newValue = cloneTypedArray(srcValue, true);
|
|
19095
|
-
} else {
|
|
19096
|
-
newValue = [];
|
|
19097
|
-
}
|
|
19098
|
-
} else if (isPlainObject(srcValue) || isArguments(srcValue)) {
|
|
19099
|
-
newValue = objValue;
|
|
19100
|
-
if (isArguments(objValue)) {
|
|
19101
|
-
newValue = toPlainObject(objValue);
|
|
19102
|
-
} else if (!isObject$1(objValue) || isFunction(objValue)) {
|
|
19103
|
-
newValue = initCloneObject(srcValue);
|
|
19104
|
-
}
|
|
18137
|
+
getKeys(source).forEach(function(key) {
|
|
18138
|
+
if (propertyIsUnsafe(target, key)) {
|
|
18139
|
+
return;
|
|
18140
|
+
}
|
|
18141
|
+
if (propertyIsOnObject(target, key) && options.isMergeableObject(source[key])) {
|
|
18142
|
+
destination[key] = getMergeFunction(key, options)(target[key], source[key], options);
|
|
19105
18143
|
} else {
|
|
19106
|
-
|
|
18144
|
+
destination[key] = cloneUnlessOtherwiseSpecified(source[key], options);
|
|
19107
18145
|
}
|
|
18146
|
+
});
|
|
18147
|
+
return destination;
|
|
18148
|
+
}
|
|
18149
|
+
function deepmerge(target, source, options) {
|
|
18150
|
+
options = options || {};
|
|
18151
|
+
options.arrayMerge = options.arrayMerge || defaultArrayMerge;
|
|
18152
|
+
options.isMergeableObject = options.isMergeableObject || isMergeableObject;
|
|
18153
|
+
options.cloneUnlessOtherwiseSpecified = cloneUnlessOtherwiseSpecified;
|
|
18154
|
+
var sourceIsArray = Array.isArray(source);
|
|
18155
|
+
var targetIsArray = Array.isArray(target);
|
|
18156
|
+
var sourceAndTargetTypesMatch = sourceIsArray === targetIsArray;
|
|
18157
|
+
if (!sourceAndTargetTypesMatch) {
|
|
18158
|
+
return cloneUnlessOtherwiseSpecified(source, options);
|
|
18159
|
+
} else if (sourceIsArray) {
|
|
18160
|
+
return options.arrayMerge(target, source, options);
|
|
18161
|
+
} else {
|
|
18162
|
+
return mergeObject(target, source, options);
|
|
19108
18163
|
}
|
|
19109
|
-
if (isCommon) {
|
|
19110
|
-
stack.set(srcValue, newValue);
|
|
19111
|
-
mergeFunc(newValue, srcValue, srcIndex, customizer, stack);
|
|
19112
|
-
stack["delete"](srcValue);
|
|
19113
|
-
}
|
|
19114
|
-
assignMergeValue$1(object, key, newValue);
|
|
19115
18164
|
}
|
|
19116
|
-
|
|
19117
|
-
|
|
19118
|
-
|
|
19119
|
-
if (object === source) {
|
|
19120
|
-
return;
|
|
18165
|
+
deepmerge.all = function deepmergeAll(array, options) {
|
|
18166
|
+
if (!Array.isArray(array)) {
|
|
18167
|
+
throw new Error("first argument should be an array");
|
|
19121
18168
|
}
|
|
19122
|
-
|
|
19123
|
-
|
|
19124
|
-
|
|
19125
|
-
|
|
19126
|
-
|
|
19127
|
-
|
|
19128
|
-
|
|
19129
|
-
newValue = srcValue;
|
|
19130
|
-
}
|
|
19131
|
-
assignMergeValue(object, key, newValue);
|
|
19132
|
-
}
|
|
19133
|
-
}, keysIn);
|
|
19134
|
-
}
|
|
19135
|
-
var _baseMerge = baseMerge$1;
|
|
19136
|
-
var baseMerge = _baseMerge, createAssigner = _createAssigner;
|
|
19137
|
-
var merge = createAssigner(function(object, source, srcIndex) {
|
|
19138
|
-
baseMerge(object, source, srcIndex);
|
|
19139
|
-
});
|
|
19140
|
-
var merge_1 = merge;
|
|
19141
|
-
const merge$1 = /* @__PURE__ */ getDefaultExportFromCjs(merge_1);
|
|
18169
|
+
return array.reduce(function(prev, next) {
|
|
18170
|
+
return deepmerge(prev, next, options);
|
|
18171
|
+
}, {});
|
|
18172
|
+
};
|
|
18173
|
+
var deepmerge_1 = deepmerge;
|
|
18174
|
+
var cjs = deepmerge_1;
|
|
18175
|
+
const merge = /* @__PURE__ */ getDefaultExportFromCjs(cjs);
|
|
19142
18176
|
const FormArray = (props) => {
|
|
19143
18177
|
return React$1.createElement(List, {
|
|
19144
18178
|
name: props.name,
|
|
@@ -19189,7 +18223,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
19189
18223
|
const {
|
|
19190
18224
|
locale
|
|
19191
18225
|
} = useConfig();
|
|
19192
|
-
const validateMessages = React$1.useMemo(() => merge
|
|
18226
|
+
const validateMessages = React$1.useMemo(() => merge(locale.Form.defaultValidateMessages, formProps.validateMessages || {}), [locale.Form.defaultValidateMessages, formProps.validateMessages]);
|
|
19193
18227
|
const lists = [];
|
|
19194
18228
|
let currentHeader = null;
|
|
19195
18229
|
let items = [];
|
|
@@ -21126,6 +20160,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
21126
20160
|
}, React$1.createElement("span", {
|
|
21127
20161
|
className: `${classPrefix$L}-label-help`,
|
|
21128
20162
|
onClick: (e2) => {
|
|
20163
|
+
e2.stopPropagation();
|
|
21129
20164
|
e2.preventDefault();
|
|
21130
20165
|
}
|
|
21131
20166
|
}, React$1.createElement(QuestionCircleOutline, null))));
|
|
@@ -22388,8 +21423,11 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
22388
21423
|
if (current >= elementTop - props.threshold) {
|
|
22389
21424
|
const nextFlag = {};
|
|
22390
21425
|
nextFlagRef.current = nextFlag;
|
|
22391
|
-
|
|
22392
|
-
|
|
21426
|
+
try {
|
|
21427
|
+
yield doLoadMore(false);
|
|
21428
|
+
setFlag(nextFlag);
|
|
21429
|
+
} catch (e2) {
|
|
21430
|
+
}
|
|
22393
21431
|
}
|
|
22394
21432
|
}), {
|
|
22395
21433
|
wait: 100,
|
|
@@ -22416,8 +21454,11 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
22416
21454
|
function retry() {
|
|
22417
21455
|
return __awaiter(this, void 0, void 0, function* () {
|
|
22418
21456
|
setFailed(false);
|
|
22419
|
-
|
|
22420
|
-
|
|
21457
|
+
try {
|
|
21458
|
+
yield doLoadMore(true);
|
|
21459
|
+
setFlag(nextFlagRef.current);
|
|
21460
|
+
} catch (e2) {
|
|
21461
|
+
}
|
|
22421
21462
|
});
|
|
22422
21463
|
}
|
|
22423
21464
|
return withNativeProps(props, React$1.createElement("div", {
|
|
@@ -22992,7 +22033,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
22992
22033
|
locale
|
|
22993
22034
|
} = useConfig();
|
|
22994
22035
|
const keyboardRef = React$1.useRef(null);
|
|
22995
|
-
const
|
|
22036
|
+
const keys = React$1.useMemo(() => {
|
|
22996
22037
|
const defaultKeys = ["1", "2", "3", "4", "5", "6", "7", "8", "9"];
|
|
22997
22038
|
const keyList = randomOrder ? shuffle(defaultKeys) : defaultKeys;
|
|
22998
22039
|
const customKeys = Array.isArray(customKey) ? customKey : [customKey];
|
|
@@ -23069,7 +22110,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
23069
22110
|
const className = classNames(`${classPrefix$w}-key`, {
|
|
23070
22111
|
[`${classPrefix$w}-key-number`]: isNumberKey,
|
|
23071
22112
|
[`${classPrefix$w}-key-sign`]: !isNumberKey && key,
|
|
23072
|
-
[`${classPrefix$w}-key-mid`]: index2 === 9 && !!confirmText &&
|
|
22113
|
+
[`${classPrefix$w}-key-mid`]: index2 === 9 && !!confirmText && keys.length < 12
|
|
23073
22114
|
});
|
|
23074
22115
|
const ariaProps = key ? {
|
|
23075
22116
|
role: "button",
|
|
@@ -23114,7 +22155,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
23114
22155
|
className: classNames(`${classPrefix$w}-main`, {
|
|
23115
22156
|
[`${classPrefix$w}-main-confirmed-style`]: !!confirmText
|
|
23116
22157
|
})
|
|
23117
|
-
},
|
|
22158
|
+
}, keys.map(renderKey)), !!confirmText && React$1.createElement("div", {
|
|
23118
22159
|
className: `${classPrefix$w}-confirm`
|
|
23119
22160
|
}, React$1.createElement("div", {
|
|
23120
22161
|
className: `${classPrefix$w}-key ${classPrefix$w}-key-extra ${classPrefix$w}-key-bs`,
|
|
@@ -25370,9 +24411,9 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
25370
24411
|
function mergeFuncProps(p1, p2) {
|
|
25371
24412
|
const p1Keys = Object.keys(p1);
|
|
25372
24413
|
const p2Keys = Object.keys(p2);
|
|
25373
|
-
const
|
|
24414
|
+
const keys = /* @__PURE__ */ new Set([...p1Keys, ...p2Keys]);
|
|
25374
24415
|
const res = {};
|
|
25375
|
-
|
|
24416
|
+
keys.forEach((key) => {
|
|
25376
24417
|
const p1Value = p1[key];
|
|
25377
24418
|
const p2Value = p2[key];
|
|
25378
24419
|
if (typeof p1Value === "function" && typeof p2Value === "function") {
|
|
@@ -26288,7 +25329,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
26288
25329
|
defaultValue: props.defaultValue
|
|
26289
25330
|
});
|
|
26290
25331
|
const getLeafKeys = (option) => {
|
|
26291
|
-
const
|
|
25332
|
+
const keys = [];
|
|
26292
25333
|
const walker = (op) => {
|
|
26293
25334
|
var _a;
|
|
26294
25335
|
if (!op) {
|
|
@@ -26297,11 +25338,11 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
26297
25338
|
if ((_a = op[childrenName]) === null || _a === void 0 ? void 0 : _a.length) {
|
|
26298
25339
|
op[childrenName].forEach((i2) => walker(i2));
|
|
26299
25340
|
} else {
|
|
26300
|
-
|
|
25341
|
+
keys.push(op[valueName]);
|
|
26301
25342
|
}
|
|
26302
25343
|
};
|
|
26303
25344
|
walker(option);
|
|
26304
|
-
return
|
|
25345
|
+
return keys;
|
|
26305
25346
|
};
|
|
26306
25347
|
const [deep, optionsMap, optionsParentMap] = React$1.useMemo(() => {
|
|
26307
25348
|
const deep2 = getTreeDeep(props.options, childrenName);
|
|
@@ -26347,8 +25388,8 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
26347
25388
|
var _a;
|
|
26348
25389
|
let groupKeys = [...targetKeys];
|
|
26349
25390
|
let unusedKeys = [];
|
|
26350
|
-
const walker = (
|
|
26351
|
-
|
|
25391
|
+
const walker = (keys) => {
|
|
25392
|
+
keys.forEach((key) => {
|
|
26352
25393
|
var _a2;
|
|
26353
25394
|
if (unusedKeys.includes(key)) {
|
|
26354
25395
|
return;
|
|
@@ -26381,9 +25422,9 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
26381
25422
|
const next = optionsParentMap.get(current[valueName]);
|
|
26382
25423
|
current = next;
|
|
26383
25424
|
}
|
|
26384
|
-
const
|
|
26385
|
-
setExpandKeys(
|
|
26386
|
-
(_a = props.onExpand) === null || _a === void 0 ? void 0 : _a.call(props,
|
|
25425
|
+
const keys = parentNodes.map((i2) => i2[valueName]);
|
|
25426
|
+
setExpandKeys(keys);
|
|
25427
|
+
(_a = props.onExpand) === null || _a === void 0 ? void 0 : _a.call(props, keys, parentNodes);
|
|
26387
25428
|
};
|
|
26388
25429
|
const renderSelectAllItem = (columnOptions, index2) => {
|
|
26389
25430
|
var _a;
|
|
@@ -26833,5 +25874,6 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
26833
25874
|
exports2.reduceMotion = reduceMotion;
|
|
26834
25875
|
exports2.restoreMotion = restoreMotion;
|
|
26835
25876
|
exports2.setDefaultConfig = setDefaultConfig;
|
|
25877
|
+
exports2.useConfig = useConfig;
|
|
26836
25878
|
Object.defineProperty(exports2, Symbol.toStringTag, { value: "Module" });
|
|
26837
25879
|
});
|