@kontent-ai/delivery-sdk 15.2.0 → 16.0.0-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/dist/bundles/kontent-delivery.umd.js +188 -2284
- package/dist/bundles/kontent-delivery.umd.js.map +1 -1
- package/dist/bundles/kontent-delivery.umd.min.js +1 -1
- package/dist/bundles/kontent-delivery.umd.min.js.map +1 -1
- package/dist/bundles/report.json +1 -1
- package/dist/bundles/report.min.json +1 -1
- package/dist/bundles/stats.json +4535 -9336
- package/dist/bundles/stats.min.json +2532 -7457
- package/dist/cjs/client/delivery-client.d.ts +14 -14
- package/dist/cjs/client/delivery-client.factory.d.ts +2 -1
- package/dist/cjs/client/delivery-client.factory.js.map +1 -1
- package/dist/cjs/client/delivery-client.js.map +1 -1
- package/dist/cjs/client/idelivery-client.interface.d.ts +14 -14
- package/dist/cjs/mappers/element.mapper.d.ts +4 -4
- package/dist/cjs/mappers/element.mapper.js.map +1 -1
- package/dist/cjs/mappers/item.mapper.d.ts +11 -11
- package/dist/cjs/mappers/item.mapper.js +1 -1
- package/dist/cjs/mappers/item.mapper.js.map +1 -1
- package/dist/cjs/mappers/language.mapper.d.ts +2 -2
- package/dist/cjs/mappers/language.mapper.js +5 -1
- package/dist/cjs/mappers/language.mapper.js.map +1 -1
- package/dist/cjs/mappers/taxonomy.mapper.d.ts +3 -3
- package/dist/cjs/mappers/taxonomy.mapper.js.map +1 -1
- package/dist/cjs/mappers/type.mapper.d.ts +3 -3
- package/dist/cjs/mappers/type.mapper.js.map +1 -1
- package/dist/cjs/models/content-type-models.d.ts +4 -4
- package/dist/cjs/models/item-models.d.ts +14 -4
- package/dist/cjs/models/language-models.d.ts +4 -4
- package/dist/cjs/models/responses.d.ts +29 -29
- package/dist/cjs/models/taxonomy-models.d.ts +4 -4
- package/dist/cjs/query/common/base-item-listing-query.class.d.ts +4 -4
- package/dist/cjs/query/common/base-item-listing-query.class.js.map +1 -1
- package/dist/cjs/query/common/base-listing-query.class.d.ts +4 -4
- package/dist/cjs/query/common/base-listing-query.class.js.map +1 -1
- package/dist/cjs/query/common/base-query.class.d.ts +4 -4
- package/dist/cjs/query/common/base-query.class.js.map +1 -1
- package/dist/cjs/query/element/element-query.class.d.ts +4 -4
- package/dist/cjs/query/element/element-query.class.js.map +1 -1
- package/dist/cjs/query/item/multiple-items-query.class.d.ts +14 -14
- package/dist/cjs/query/item/multiple-items-query.class.js +3 -1
- package/dist/cjs/query/item/multiple-items-query.class.js.map +1 -1
- package/dist/cjs/query/item/single-item-query.class.d.ts +9 -9
- package/dist/cjs/query/item/single-item-query.class.js.map +1 -1
- package/dist/cjs/query/items-feed/items-feed-query.class.d.ts +7 -7
- package/dist/cjs/query/items-feed/items-feed-query.class.js +3 -1
- package/dist/cjs/query/items-feed/items-feed-query.class.js.map +1 -1
- package/dist/cjs/query/language/languages-query.class.d.ts +7 -7
- package/dist/cjs/query/language/languages-query.class.js.map +1 -1
- package/dist/cjs/query/sync/initialize-sync-query.class.d.ts +4 -4
- package/dist/cjs/query/sync/initialize-sync-query.class.js.map +1 -1
- package/dist/cjs/query/sync/sync-changes-query.class.d.ts +4 -4
- package/dist/cjs/query/sync/sync-changes-query.class.js.map +1 -1
- package/dist/cjs/query/taxonomy/taxonomies-query.class.d.ts +7 -7
- package/dist/cjs/query/taxonomy/taxonomies-query.class.js.map +1 -1
- package/dist/cjs/query/taxonomy/taxonomy-query.class.d.ts +6 -6
- package/dist/cjs/query/taxonomy/taxonomy-query.class.js.map +1 -1
- package/dist/cjs/query/type/multiple-type-query.class.d.ts +9 -9
- package/dist/cjs/query/type/multiple-type-query.class.js.map +1 -1
- package/dist/cjs/query/type/single-type-query.class.d.ts +6 -6
- package/dist/cjs/query/type/single-type-query.class.js.map +1 -1
- package/dist/cjs/sdk-info.generated.js +1 -1
- package/dist/cjs/sdk-info.generated.js.map +1 -1
- package/dist/cjs/services/base-delivery-query.service.d.ts +4 -4
- package/dist/cjs/services/base-delivery-query.service.js.map +1 -1
- package/dist/cjs/services/delivery-query.service.d.ts +11 -11
- package/dist/cjs/services/delivery-query.service.js.map +1 -1
- package/dist/cjs/services/mapping.service.d.ts +19 -19
- package/dist/cjs/services/mapping.service.js +1 -1
- package/dist/cjs/services/mapping.service.js.map +1 -1
- package/dist/cjs/utilities/delivery-url.helper.d.ts +1 -1
- package/dist/cjs/utilities/delivery-url.helper.js +3 -6
- package/dist/cjs/utilities/delivery-url.helper.js.map +1 -1
- package/dist/cjs/utilities/index.d.ts +0 -2
- package/dist/cjs/utilities/index.js +0 -2
- package/dist/cjs/utilities/index.js.map +1 -1
- package/dist/es6/client/delivery-client.d.ts +14 -14
- package/dist/es6/client/delivery-client.factory.d.ts +2 -1
- package/dist/es6/client/delivery-client.factory.js.map +1 -1
- package/dist/es6/client/delivery-client.js.map +1 -1
- package/dist/es6/client/idelivery-client.interface.d.ts +14 -14
- package/dist/es6/mappers/element.mapper.d.ts +4 -4
- package/dist/es6/mappers/element.mapper.js.map +1 -1
- package/dist/es6/mappers/item.mapper.d.ts +11 -11
- package/dist/es6/mappers/item.mapper.js +1 -1
- package/dist/es6/mappers/item.mapper.js.map +1 -1
- package/dist/es6/mappers/language.mapper.d.ts +2 -2
- package/dist/es6/mappers/language.mapper.js +5 -1
- package/dist/es6/mappers/language.mapper.js.map +1 -1
- package/dist/es6/mappers/taxonomy.mapper.d.ts +3 -3
- package/dist/es6/mappers/taxonomy.mapper.js.map +1 -1
- package/dist/es6/mappers/type.mapper.d.ts +3 -3
- package/dist/es6/mappers/type.mapper.js.map +1 -1
- package/dist/es6/models/content-type-models.d.ts +4 -4
- package/dist/es6/models/item-models.d.ts +14 -4
- package/dist/es6/models/language-models.d.ts +4 -4
- package/dist/es6/models/responses.d.ts +29 -29
- package/dist/es6/models/taxonomy-models.d.ts +4 -4
- package/dist/es6/query/common/base-item-listing-query.class.d.ts +4 -4
- package/dist/es6/query/common/base-item-listing-query.class.js.map +1 -1
- package/dist/es6/query/common/base-listing-query.class.d.ts +4 -4
- package/dist/es6/query/common/base-listing-query.class.js.map +1 -1
- package/dist/es6/query/common/base-query.class.d.ts +4 -4
- package/dist/es6/query/common/base-query.class.js.map +1 -1
- package/dist/es6/query/element/element-query.class.d.ts +4 -4
- package/dist/es6/query/element/element-query.class.js.map +1 -1
- package/dist/es6/query/item/multiple-items-query.class.d.ts +14 -14
- package/dist/es6/query/item/multiple-items-query.class.js +3 -1
- package/dist/es6/query/item/multiple-items-query.class.js.map +1 -1
- package/dist/es6/query/item/single-item-query.class.d.ts +9 -9
- package/dist/es6/query/item/single-item-query.class.js.map +1 -1
- package/dist/es6/query/items-feed/items-feed-query.class.d.ts +7 -7
- package/dist/es6/query/items-feed/items-feed-query.class.js +3 -1
- package/dist/es6/query/items-feed/items-feed-query.class.js.map +1 -1
- package/dist/es6/query/language/languages-query.class.d.ts +7 -7
- package/dist/es6/query/language/languages-query.class.js.map +1 -1
- package/dist/es6/query/sync/initialize-sync-query.class.d.ts +4 -4
- package/dist/es6/query/sync/initialize-sync-query.class.js.map +1 -1
- package/dist/es6/query/sync/sync-changes-query.class.d.ts +4 -4
- package/dist/es6/query/sync/sync-changes-query.class.js.map +1 -1
- package/dist/es6/query/taxonomy/taxonomies-query.class.d.ts +7 -7
- package/dist/es6/query/taxonomy/taxonomies-query.class.js.map +1 -1
- package/dist/es6/query/taxonomy/taxonomy-query.class.d.ts +6 -6
- package/dist/es6/query/taxonomy/taxonomy-query.class.js.map +1 -1
- package/dist/es6/query/type/multiple-type-query.class.d.ts +9 -9
- package/dist/es6/query/type/multiple-type-query.class.js.map +1 -1
- package/dist/es6/query/type/single-type-query.class.d.ts +6 -6
- package/dist/es6/query/type/single-type-query.class.js.map +1 -1
- package/dist/es6/sdk-info.generated.js +1 -1
- package/dist/es6/sdk-info.generated.js.map +1 -1
- package/dist/es6/services/base-delivery-query.service.d.ts +4 -4
- package/dist/es6/services/base-delivery-query.service.js.map +1 -1
- package/dist/es6/services/delivery-query.service.d.ts +11 -11
- package/dist/es6/services/delivery-query.service.js.map +1 -1
- package/dist/es6/services/mapping.service.d.ts +19 -19
- package/dist/es6/services/mapping.service.js +1 -1
- package/dist/es6/services/mapping.service.js.map +1 -1
- package/dist/es6/utilities/delivery-url.helper.d.ts +1 -1
- package/dist/es6/utilities/delivery-url.helper.js +3 -6
- package/dist/es6/utilities/delivery-url.helper.js.map +1 -1
- package/dist/es6/utilities/index.d.ts +0 -2
- package/dist/es6/utilities/index.js +0 -2
- package/dist/es6/utilities/index.js.map +1 -1
- package/dist/esnext/client/delivery-client.d.ts +14 -14
- package/dist/esnext/client/delivery-client.factory.d.ts +2 -1
- package/dist/esnext/client/delivery-client.factory.js.map +1 -1
- package/dist/esnext/client/delivery-client.js.map +1 -1
- package/dist/esnext/client/idelivery-client.interface.d.ts +14 -14
- package/dist/esnext/mappers/element.mapper.d.ts +4 -4
- package/dist/esnext/mappers/element.mapper.js.map +1 -1
- package/dist/esnext/mappers/item.mapper.d.ts +11 -11
- package/dist/esnext/mappers/item.mapper.js +1 -1
- package/dist/esnext/mappers/item.mapper.js.map +1 -1
- package/dist/esnext/mappers/language.mapper.d.ts +2 -2
- package/dist/esnext/mappers/language.mapper.js +5 -1
- package/dist/esnext/mappers/language.mapper.js.map +1 -1
- package/dist/esnext/mappers/taxonomy.mapper.d.ts +3 -3
- package/dist/esnext/mappers/taxonomy.mapper.js.map +1 -1
- package/dist/esnext/mappers/type.mapper.d.ts +3 -3
- package/dist/esnext/mappers/type.mapper.js.map +1 -1
- package/dist/esnext/models/content-type-models.d.ts +4 -4
- package/dist/esnext/models/item-models.d.ts +14 -4
- package/dist/esnext/models/language-models.d.ts +4 -4
- package/dist/esnext/models/responses.d.ts +29 -29
- package/dist/esnext/models/taxonomy-models.d.ts +4 -4
- package/dist/esnext/query/common/base-item-listing-query.class.d.ts +4 -4
- package/dist/esnext/query/common/base-item-listing-query.class.js.map +1 -1
- package/dist/esnext/query/common/base-listing-query.class.d.ts +4 -4
- package/dist/esnext/query/common/base-listing-query.class.js.map +1 -1
- package/dist/esnext/query/common/base-query.class.d.ts +4 -4
- package/dist/esnext/query/common/base-query.class.js.map +1 -1
- package/dist/esnext/query/element/element-query.class.d.ts +4 -4
- package/dist/esnext/query/element/element-query.class.js.map +1 -1
- package/dist/esnext/query/item/multiple-items-query.class.d.ts +14 -14
- package/dist/esnext/query/item/multiple-items-query.class.js +3 -1
- package/dist/esnext/query/item/multiple-items-query.class.js.map +1 -1
- package/dist/esnext/query/item/single-item-query.class.d.ts +9 -9
- package/dist/esnext/query/item/single-item-query.class.js.map +1 -1
- package/dist/esnext/query/items-feed/items-feed-query.class.d.ts +7 -7
- package/dist/esnext/query/items-feed/items-feed-query.class.js +3 -1
- package/dist/esnext/query/items-feed/items-feed-query.class.js.map +1 -1
- package/dist/esnext/query/language/languages-query.class.d.ts +7 -7
- package/dist/esnext/query/language/languages-query.class.js.map +1 -1
- package/dist/esnext/query/sync/initialize-sync-query.class.d.ts +4 -4
- package/dist/esnext/query/sync/initialize-sync-query.class.js.map +1 -1
- package/dist/esnext/query/sync/sync-changes-query.class.d.ts +4 -4
- package/dist/esnext/query/sync/sync-changes-query.class.js.map +1 -1
- package/dist/esnext/query/taxonomy/taxonomies-query.class.d.ts +7 -7
- package/dist/esnext/query/taxonomy/taxonomies-query.class.js.map +1 -1
- package/dist/esnext/query/taxonomy/taxonomy-query.class.d.ts +6 -6
- package/dist/esnext/query/taxonomy/taxonomy-query.class.js.map +1 -1
- package/dist/esnext/query/type/multiple-type-query.class.d.ts +9 -9
- package/dist/esnext/query/type/multiple-type-query.class.js.map +1 -1
- package/dist/esnext/query/type/single-type-query.class.d.ts +6 -6
- package/dist/esnext/query/type/single-type-query.class.js.map +1 -1
- package/dist/esnext/sdk-info.generated.js +1 -1
- package/dist/esnext/sdk-info.generated.js.map +1 -1
- package/dist/esnext/services/base-delivery-query.service.d.ts +4 -4
- package/dist/esnext/services/base-delivery-query.service.js.map +1 -1
- package/dist/esnext/services/delivery-query.service.d.ts +11 -11
- package/dist/esnext/services/delivery-query.service.js.map +1 -1
- package/dist/esnext/services/mapping.service.d.ts +19 -19
- package/dist/esnext/services/mapping.service.js +1 -1
- package/dist/esnext/services/mapping.service.js.map +1 -1
- package/dist/esnext/utilities/delivery-url.helper.d.ts +1 -1
- package/dist/esnext/utilities/delivery-url.helper.js +3 -6
- package/dist/esnext/utilities/delivery-url.helper.js.map +1 -1
- package/dist/esnext/utilities/index.d.ts +0 -2
- package/dist/esnext/utilities/index.js +0 -2
- package/dist/esnext/utilities/index.js.map +1 -1
- package/lib/client/delivery-client.factory.ts +4 -1
- package/lib/client/delivery-client.ts +30 -20
- package/lib/client/idelivery-client.interface.ts +25 -14
- package/lib/mappers/element.mapper.ts +14 -14
- package/lib/mappers/item.mapper.ts +29 -20
- package/lib/mappers/language.mapper.ts +8 -4
- package/lib/mappers/taxonomy.mapper.ts +6 -6
- package/lib/mappers/type.mapper.ts +6 -6
- package/lib/models/content-type-models.ts +4 -4
- package/lib/models/item-models.ts +18 -4
- package/lib/models/language-models.ts +4 -4
- package/lib/models/responses.ts +59 -38
- package/lib/models/taxonomy-models.ts +4 -4
- package/lib/query/common/base-item-listing-query.class.ts +4 -2
- package/lib/query/common/base-listing-query.class.ts +5 -3
- package/lib/query/common/base-query.class.ts +15 -3
- package/lib/query/element/element-query.class.ts +5 -8
- package/lib/query/item/multiple-items-query.class.ts +37 -18
- package/lib/query/item/single-item-query.class.ts +23 -9
- package/lib/query/items-feed/items-feed-query.class.ts +23 -11
- package/lib/query/language/languages-query.class.ts +16 -14
- package/lib/query/sync/initialize-sync-query.class.ts +4 -2
- package/lib/query/sync/sync-changes-query.class.ts +4 -3
- package/lib/query/taxonomy/taxonomies-query.class.ts +10 -14
- package/lib/query/taxonomy/taxonomy-query.class.ts +10 -6
- package/lib/query/type/multiple-type-query.class.ts +18 -11
- package/lib/query/type/single-type-query.class.ts +10 -6
- package/lib/sdk-info.generated.ts +1 -1
- package/lib/services/base-delivery-query.service.ts +4 -3
- package/lib/services/delivery-query.service.ts +52 -15
- package/lib/services/mapping.service.ts +50 -30
- package/lib/utilities/delivery-url.helper.ts +3 -9
- package/lib/utilities/index.ts +0 -2
- package/package.json +15 -19
- package/dist/cjs/utilities/guid.helper.d.ts +0 -4
- package/dist/cjs/utilities/guid.helper.js +0 -12
- package/dist/cjs/utilities/guid.helper.js.map +0 -1
- package/dist/cjs/utilities/linked-items.helper.d.ts +0 -5
- package/dist/cjs/utilities/linked-items.helper.js +0 -15
- package/dist/cjs/utilities/linked-items.helper.js.map +0 -1
- package/dist/es6/utilities/guid.helper.d.ts +0 -4
- package/dist/es6/utilities/guid.helper.js +0 -8
- package/dist/es6/utilities/guid.helper.js.map +0 -1
- package/dist/es6/utilities/linked-items.helper.d.ts +0 -5
- package/dist/es6/utilities/linked-items.helper.js +0 -11
- package/dist/es6/utilities/linked-items.helper.js.map +0 -1
- package/dist/esnext/utilities/guid.helper.d.ts +0 -4
- package/dist/esnext/utilities/guid.helper.js +0 -8
- package/dist/esnext/utilities/guid.helper.js.map +0 -1
- package/dist/esnext/utilities/linked-items.helper.d.ts +0 -5
- package/dist/esnext/utilities/linked-items.helper.js +0 -11
- package/dist/esnext/utilities/linked-items.helper.js.map +0 -1
- package/lib/utilities/guid.helper.ts +0 -9
- package/lib/utilities/linked-items.helper.ts +0 -16
|
@@ -903,182 +903,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
903
903
|
|
|
904
904
|
//# sourceMappingURL=url.models.js.map
|
|
905
905
|
|
|
906
|
-
/***/ }),
|
|
907
|
-
|
|
908
|
-
/***/ "./node_modules/querystringify/index.js":
|
|
909
|
-
/*!**********************************************!*\
|
|
910
|
-
!*** ./node_modules/querystringify/index.js ***!
|
|
911
|
-
\**********************************************/
|
|
912
|
-
/***/ ((__unused_webpack_module, exports) => {
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
var has = Object.prototype.hasOwnProperty
|
|
917
|
-
, undef;
|
|
918
|
-
|
|
919
|
-
/**
|
|
920
|
-
* Decode a URI encoded string.
|
|
921
|
-
*
|
|
922
|
-
* @param {String} input The URI encoded string.
|
|
923
|
-
* @returns {String|Null} The decoded string.
|
|
924
|
-
* @api private
|
|
925
|
-
*/
|
|
926
|
-
function decode(input) {
|
|
927
|
-
try {
|
|
928
|
-
return decodeURIComponent(input.replace(/\+/g, ' '));
|
|
929
|
-
} catch (e) {
|
|
930
|
-
return null;
|
|
931
|
-
}
|
|
932
|
-
}
|
|
933
|
-
|
|
934
|
-
/**
|
|
935
|
-
* Attempts to encode a given input.
|
|
936
|
-
*
|
|
937
|
-
* @param {String} input The string that needs to be encoded.
|
|
938
|
-
* @returns {String|Null} The encoded string.
|
|
939
|
-
* @api private
|
|
940
|
-
*/
|
|
941
|
-
function encode(input) {
|
|
942
|
-
try {
|
|
943
|
-
return encodeURIComponent(input);
|
|
944
|
-
} catch (e) {
|
|
945
|
-
return null;
|
|
946
|
-
}
|
|
947
|
-
}
|
|
948
|
-
|
|
949
|
-
/**
|
|
950
|
-
* Simple query string parser.
|
|
951
|
-
*
|
|
952
|
-
* @param {String} query The query string that needs to be parsed.
|
|
953
|
-
* @returns {Object}
|
|
954
|
-
* @api public
|
|
955
|
-
*/
|
|
956
|
-
function querystring(query) {
|
|
957
|
-
var parser = /([^=?#&]+)=?([^&]*)/g
|
|
958
|
-
, result = {}
|
|
959
|
-
, part;
|
|
960
|
-
|
|
961
|
-
while (part = parser.exec(query)) {
|
|
962
|
-
var key = decode(part[1])
|
|
963
|
-
, value = decode(part[2]);
|
|
964
|
-
|
|
965
|
-
//
|
|
966
|
-
// Prevent overriding of existing properties. This ensures that build-in
|
|
967
|
-
// methods like `toString` or __proto__ are not overriden by malicious
|
|
968
|
-
// querystrings.
|
|
969
|
-
//
|
|
970
|
-
// In the case if failed decoding, we want to omit the key/value pairs
|
|
971
|
-
// from the result.
|
|
972
|
-
//
|
|
973
|
-
if (key === null || value === null || key in result) continue;
|
|
974
|
-
result[key] = value;
|
|
975
|
-
}
|
|
976
|
-
|
|
977
|
-
return result;
|
|
978
|
-
}
|
|
979
|
-
|
|
980
|
-
/**
|
|
981
|
-
* Transform a query string to an object.
|
|
982
|
-
*
|
|
983
|
-
* @param {Object} obj Object that should be transformed.
|
|
984
|
-
* @param {String} prefix Optional prefix.
|
|
985
|
-
* @returns {String}
|
|
986
|
-
* @api public
|
|
987
|
-
*/
|
|
988
|
-
function querystringify(obj, prefix) {
|
|
989
|
-
prefix = prefix || '';
|
|
990
|
-
|
|
991
|
-
var pairs = []
|
|
992
|
-
, value
|
|
993
|
-
, key;
|
|
994
|
-
|
|
995
|
-
//
|
|
996
|
-
// Optionally prefix with a '?' if needed
|
|
997
|
-
//
|
|
998
|
-
if ('string' !== typeof prefix) prefix = '?';
|
|
999
|
-
|
|
1000
|
-
for (key in obj) {
|
|
1001
|
-
if (has.call(obj, key)) {
|
|
1002
|
-
value = obj[key];
|
|
1003
|
-
|
|
1004
|
-
//
|
|
1005
|
-
// Edge cases where we actually want to encode the value to an empty
|
|
1006
|
-
// string instead of the stringified value.
|
|
1007
|
-
//
|
|
1008
|
-
if (!value && (value === null || value === undef || isNaN(value))) {
|
|
1009
|
-
value = '';
|
|
1010
|
-
}
|
|
1011
|
-
|
|
1012
|
-
key = encode(key);
|
|
1013
|
-
value = encode(value);
|
|
1014
|
-
|
|
1015
|
-
//
|
|
1016
|
-
// If we failed to encode the strings, we should bail out as we don't
|
|
1017
|
-
// want to add invalid strings to the query.
|
|
1018
|
-
//
|
|
1019
|
-
if (key === null || value === null) continue;
|
|
1020
|
-
pairs.push(key +'='+ value);
|
|
1021
|
-
}
|
|
1022
|
-
}
|
|
1023
|
-
|
|
1024
|
-
return pairs.length ? prefix + pairs.join('&') : '';
|
|
1025
|
-
}
|
|
1026
|
-
|
|
1027
|
-
//
|
|
1028
|
-
// Expose the module.
|
|
1029
|
-
//
|
|
1030
|
-
exports.stringify = querystringify;
|
|
1031
|
-
exports.parse = querystring;
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
/***/ }),
|
|
1035
|
-
|
|
1036
|
-
/***/ "./node_modules/requires-port/index.js":
|
|
1037
|
-
/*!*********************************************!*\
|
|
1038
|
-
!*** ./node_modules/requires-port/index.js ***!
|
|
1039
|
-
\*********************************************/
|
|
1040
|
-
/***/ ((module) => {
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
/**
|
|
1045
|
-
* Check if we're required to add a port number.
|
|
1046
|
-
*
|
|
1047
|
-
* @see https://url.spec.whatwg.org/#default-port
|
|
1048
|
-
* @param {Number|String} port Port number we need to check
|
|
1049
|
-
* @param {String} protocol Protocol we need to check against.
|
|
1050
|
-
* @returns {Boolean} Is it a default port for the given protocol
|
|
1051
|
-
* @api private
|
|
1052
|
-
*/
|
|
1053
|
-
module.exports = function required(port, protocol) {
|
|
1054
|
-
protocol = protocol.split(':')[0];
|
|
1055
|
-
port = +port;
|
|
1056
|
-
|
|
1057
|
-
if (!port) return false;
|
|
1058
|
-
|
|
1059
|
-
switch (protocol) {
|
|
1060
|
-
case 'http':
|
|
1061
|
-
case 'ws':
|
|
1062
|
-
return port !== 80;
|
|
1063
|
-
|
|
1064
|
-
case 'https':
|
|
1065
|
-
case 'wss':
|
|
1066
|
-
return port !== 443;
|
|
1067
|
-
|
|
1068
|
-
case 'ftp':
|
|
1069
|
-
return port !== 21;
|
|
1070
|
-
|
|
1071
|
-
case 'gopher':
|
|
1072
|
-
return port !== 70;
|
|
1073
|
-
|
|
1074
|
-
case 'file':
|
|
1075
|
-
return false;
|
|
1076
|
-
}
|
|
1077
|
-
|
|
1078
|
-
return port !== 0;
|
|
1079
|
-
};
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
906
|
/***/ }),
|
|
1083
907
|
|
|
1084
908
|
/***/ "./lib/client/delivery-client.factory.ts":
|
|
@@ -2161,7 +1985,7 @@ class ItemMapper {
|
|
|
2161
1985
|
preparedItems: preparedItems,
|
|
2162
1986
|
processingStartedForCodenames: processingStartedForCodenames
|
|
2163
1987
|
});
|
|
2164
|
-
mappedLinkedItems[
|
|
1988
|
+
mappedLinkedItems[item.system.codename] = itemResult.item;
|
|
2165
1989
|
}
|
|
2166
1990
|
return {
|
|
2167
1991
|
items: mappedMainItems,
|
|
@@ -2236,7 +2060,11 @@ class LanguageMapper {
|
|
|
2236
2060
|
throw Error(`Cannot map language`);
|
|
2237
2061
|
}
|
|
2238
2062
|
return {
|
|
2239
|
-
system:
|
|
2063
|
+
system: {
|
|
2064
|
+
codename: language.system.codename,
|
|
2065
|
+
id: language.system.id,
|
|
2066
|
+
name: language.system.name
|
|
2067
|
+
}
|
|
2240
2068
|
};
|
|
2241
2069
|
}
|
|
2242
2070
|
}
|
|
@@ -3762,7 +3590,9 @@ class MultipleItemsQuery extends base_item_listing_query_class_1.BaseItemListing
|
|
|
3762
3590
|
const allContentItems = [];
|
|
3763
3591
|
// process linked items (modular_content part of the response)
|
|
3764
3592
|
for (const response of responses) {
|
|
3765
|
-
allContentItems.push(...Object.values(response.data.linkedItems)
|
|
3593
|
+
allContentItems.push(...Object.values(response.data.linkedItems)
|
|
3594
|
+
.filter((m) => m !== undefined)
|
|
3595
|
+
.map((m) => m));
|
|
3766
3596
|
}
|
|
3767
3597
|
// add standard items
|
|
3768
3598
|
for (const item of items) {
|
|
@@ -3975,7 +3805,9 @@ class ItemsFeedQuery extends base_item_listing_query_class_1.BaseItemListingQuer
|
|
|
3975
3805
|
const allAvailableContentItems = [];
|
|
3976
3806
|
// process linked items (modular_content part of the response)
|
|
3977
3807
|
for (const response of responses) {
|
|
3978
|
-
allAvailableContentItems.push(...Object.values(response.data.linkedItems)
|
|
3808
|
+
allAvailableContentItems.push(...Object.values(response.data.linkedItems)
|
|
3809
|
+
.filter((m) => m !== undefined)
|
|
3810
|
+
.map((m) => m));
|
|
3979
3811
|
}
|
|
3980
3812
|
// add standard items
|
|
3981
3813
|
for (const item of items) {
|
|
@@ -4411,7 +4243,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
4411
4243
|
exports.sdkInfo = void 0;
|
|
4412
4244
|
exports.sdkInfo = {
|
|
4413
4245
|
host: 'npmjs.com',
|
|
4414
|
-
version: '
|
|
4246
|
+
version: '16.0.0-0',
|
|
4415
4247
|
name: '@kontent-ai/delivery-sdk'
|
|
4416
4248
|
};
|
|
4417
4249
|
|
|
@@ -5056,2056 +4888,175 @@ class MappingService {
|
|
|
5056
4888
|
linkedItems: itemsResult.linkedItems
|
|
5057
4889
|
};
|
|
5058
4890
|
}
|
|
5059
|
-
/**
|
|
5060
|
-
* Gets response for getting single taxonomy item
|
|
5061
|
-
* @param data Response data
|
|
5062
|
-
*/
|
|
5063
|
-
viewTaxonomyResponse(data) {
|
|
5064
|
-
return {
|
|
5065
|
-
taxonomy: this.taxonomyMapper.mapTaxonomy(data.system, data.terms)
|
|
5066
|
-
};
|
|
5067
|
-
}
|
|
5068
|
-
/**
|
|
5069
|
-
* Gets response for getting multiples taxonomies
|
|
5070
|
-
* @param data Response data
|
|
5071
|
-
*/
|
|
5072
|
-
listTaxonomiesResponse(data) {
|
|
5073
|
-
return {
|
|
5074
|
-
items: this.taxonomyMapper.mapTaxonomies(data.taxonomies),
|
|
5075
|
-
pagination: this.mapPagination(data.pagination),
|
|
5076
|
-
};
|
|
5077
|
-
}
|
|
5078
|
-
/**
|
|
5079
|
-
* Gets response for getting single content type element
|
|
5080
|
-
* @param data Response data
|
|
5081
|
-
*/
|
|
5082
|
-
viewContentTypeElementResponse(data) {
|
|
5083
|
-
return this.genericElementMapper.mapElement(data);
|
|
5084
|
-
}
|
|
5085
|
-
initializeContentSync(data) {
|
|
5086
|
-
return {
|
|
5087
|
-
items: data.items.map((m) => this.syncMapper.mapContentItemDelta(m))
|
|
5088
|
-
};
|
|
5089
|
-
}
|
|
5090
|
-
syncChanges(data) {
|
|
5091
|
-
return {
|
|
5092
|
-
items: data.items.map((m) => this.syncMapper.mapContentItemDelta(m))
|
|
5093
|
-
};
|
|
5094
|
-
}
|
|
5095
|
-
mapPagination(paginationContract) {
|
|
5096
|
-
var _a;
|
|
5097
|
-
return {
|
|
5098
|
-
skip: paginationContract.skip,
|
|
5099
|
-
count: paginationContract.count,
|
|
5100
|
-
limit: paginationContract.limit,
|
|
5101
|
-
nextPage: paginationContract.next_page,
|
|
5102
|
-
totalCount: (_a = paginationContract.total_count) !== null && _a !== void 0 ? _a : null
|
|
5103
|
-
};
|
|
5104
|
-
}
|
|
5105
|
-
}
|
|
5106
|
-
exports.MappingService = MappingService;
|
|
5107
|
-
|
|
5108
|
-
|
|
5109
|
-
/***/ }),
|
|
5110
|
-
|
|
5111
|
-
/***/ "./lib/utilities/codename.helper.ts":
|
|
5112
|
-
/*!******************************************!*\
|
|
5113
|
-
!*** ./lib/utilities/codename.helper.ts ***!
|
|
5114
|
-
\******************************************/
|
|
5115
|
-
/***/ ((__unused_webpack_module, exports) => {
|
|
5116
|
-
|
|
5117
|
-
|
|
5118
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
5119
|
-
exports.codenameHelper = exports.CodenameHelper = void 0;
|
|
5120
|
-
class CodenameHelper {
|
|
5121
|
-
/**
|
|
5122
|
-
* This is used to prevent errors caused by reserved names in content item codename (e.g. 'constructor')
|
|
5123
|
-
*/
|
|
5124
|
-
escapeCodenameInCodenameIndexer(codename) {
|
|
5125
|
-
return `_${codename}`;
|
|
5126
|
-
}
|
|
5127
|
-
}
|
|
5128
|
-
exports.CodenameHelper = CodenameHelper;
|
|
5129
|
-
exports.codenameHelper = new CodenameHelper();
|
|
5130
|
-
|
|
5131
|
-
|
|
5132
|
-
/***/ }),
|
|
5133
|
-
|
|
5134
|
-
/***/ "./lib/utilities/delivery-url.helper.ts":
|
|
5135
|
-
/*!**********************************************!*\
|
|
5136
|
-
!*** ./lib/utilities/delivery-url.helper.ts ***!
|
|
5137
|
-
\**********************************************/
|
|
5138
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
5139
|
-
|
|
5140
|
-
|
|
5141
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
5142
|
-
exports.deliveryUrlHelper = exports.DeliveryUrlHelper = void 0;
|
|
5143
|
-
const urlParse = __webpack_require__(/*! url-parse */ "./node_modules/url-parse/index.js");
|
|
5144
|
-
class DeliveryUrlHelper {
|
|
5145
|
-
replaceAssetDomain(originalAssetUrl, customDomain) {
|
|
5146
|
-
const urlPath = this.getUrlPathname(originalAssetUrl);
|
|
5147
|
-
return `${customDomain}${urlPath}`;
|
|
5148
|
-
}
|
|
5149
|
-
getUrlPathname(url) {
|
|
5150
|
-
const parsedUrl = urlParse(url);
|
|
5151
|
-
return parsedUrl.pathname;
|
|
5152
|
-
}
|
|
5153
|
-
}
|
|
5154
|
-
exports.DeliveryUrlHelper = DeliveryUrlHelper;
|
|
5155
|
-
exports.deliveryUrlHelper = new DeliveryUrlHelper();
|
|
5156
|
-
|
|
5157
|
-
|
|
5158
|
-
/***/ }),
|
|
5159
|
-
|
|
5160
|
-
/***/ "./lib/utilities/enum.helper.ts":
|
|
5161
|
-
/*!**************************************!*\
|
|
5162
|
-
!*** ./lib/utilities/enum.helper.ts ***!
|
|
5163
|
-
\**************************************/
|
|
5164
|
-
/***/ ((__unused_webpack_module, exports) => {
|
|
5165
|
-
|
|
5166
|
-
|
|
5167
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
5168
|
-
exports.enumHelper = exports.EnumHelper = void 0;
|
|
5169
|
-
class EnumHelper {
|
|
5170
|
-
getAllValues(T) {
|
|
5171
|
-
const allEnumValues = Object.keys(T).map((key) => T[key]);
|
|
5172
|
-
return allEnumValues;
|
|
5173
|
-
}
|
|
5174
|
-
getEnumFromValue(T, value) {
|
|
5175
|
-
try {
|
|
5176
|
-
if (!value) {
|
|
5177
|
-
return undefined;
|
|
5178
|
-
}
|
|
5179
|
-
// we can map back from index number directly
|
|
5180
|
-
if (this.isNumeric(value)) {
|
|
5181
|
-
return T[value];
|
|
5182
|
-
}
|
|
5183
|
-
// for strings, we need to compare each value separately
|
|
5184
|
-
const allEnumValues = this.getAllValues(T);
|
|
5185
|
-
const result = allEnumValues.find((m) => m.toLowerCase() === value.toString().toLowerCase());
|
|
5186
|
-
if (!result) {
|
|
5187
|
-
return undefined;
|
|
5188
|
-
}
|
|
5189
|
-
return result;
|
|
5190
|
-
}
|
|
5191
|
-
catch (err) {
|
|
5192
|
-
return undefined;
|
|
5193
|
-
}
|
|
5194
|
-
}
|
|
5195
|
-
isNumeric(value) {
|
|
5196
|
-
return !isNaN(parseFloat(value)) && isFinite(value);
|
|
5197
|
-
}
|
|
5198
|
-
}
|
|
5199
|
-
exports.EnumHelper = EnumHelper;
|
|
5200
|
-
exports.enumHelper = new EnumHelper();
|
|
5201
|
-
|
|
5202
|
-
|
|
5203
|
-
/***/ }),
|
|
5204
|
-
|
|
5205
|
-
/***/ "./lib/utilities/guid.helper.ts":
|
|
5206
|
-
/*!**************************************!*\
|
|
5207
|
-
!*** ./lib/utilities/guid.helper.ts ***!
|
|
5208
|
-
\**************************************/
|
|
5209
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
5210
|
-
|
|
5211
|
-
|
|
5212
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
5213
|
-
exports.guidHelper = exports.GuidHelper = void 0;
|
|
5214
|
-
const uuid_1 = __webpack_require__(/*! uuid */ "./node_modules/uuid/dist/commonjs-browser/index.js");
|
|
5215
|
-
class GuidHelper {
|
|
5216
|
-
genereateGuid() {
|
|
5217
|
-
return (0, uuid_1.v4)();
|
|
5218
|
-
}
|
|
5219
|
-
}
|
|
5220
|
-
exports.GuidHelper = GuidHelper;
|
|
5221
|
-
exports.guidHelper = new GuidHelper();
|
|
5222
|
-
|
|
5223
|
-
|
|
5224
|
-
/***/ }),
|
|
5225
|
-
|
|
5226
|
-
/***/ "./lib/utilities/index.ts":
|
|
5227
|
-
/*!********************************!*\
|
|
5228
|
-
!*** ./lib/utilities/index.ts ***!
|
|
5229
|
-
\********************************/
|
|
5230
|
-
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
5231
|
-
|
|
5232
|
-
|
|
5233
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5234
|
-
if (k2 === undefined) k2 = k;
|
|
5235
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5236
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
5237
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
5238
|
-
}
|
|
5239
|
-
Object.defineProperty(o, k2, desc);
|
|
5240
|
-
}) : (function(o, m, k, k2) {
|
|
5241
|
-
if (k2 === undefined) k2 = k;
|
|
5242
|
-
o[k2] = m[k];
|
|
5243
|
-
}));
|
|
5244
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
5245
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
5246
|
-
};
|
|
5247
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
5248
|
-
__exportStar(__webpack_require__(/*! ./codename.helper */ "./lib/utilities/codename.helper.ts"), exports);
|
|
5249
|
-
__exportStar(__webpack_require__(/*! ./delivery-url.helper */ "./lib/utilities/delivery-url.helper.ts"), exports);
|
|
5250
|
-
__exportStar(__webpack_require__(/*! ./enum.helper */ "./lib/utilities/enum.helper.ts"), exports);
|
|
5251
|
-
__exportStar(__webpack_require__(/*! ./guid.helper */ "./lib/utilities/guid.helper.ts"), exports);
|
|
5252
|
-
__exportStar(__webpack_require__(/*! ./linked-items.helper */ "./lib/utilities/linked-items.helper.ts"), exports);
|
|
5253
|
-
|
|
5254
|
-
|
|
5255
|
-
/***/ }),
|
|
5256
|
-
|
|
5257
|
-
/***/ "./lib/utilities/linked-items.helper.ts":
|
|
5258
|
-
/*!**********************************************!*\
|
|
5259
|
-
!*** ./lib/utilities/linked-items.helper.ts ***!
|
|
5260
|
-
\**********************************************/
|
|
5261
|
-
/***/ ((__unused_webpack_module, exports) => {
|
|
5262
|
-
|
|
5263
|
-
|
|
5264
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
5265
|
-
exports.linkedItemsHelper = exports.LinkedItemsHelper = void 0;
|
|
5266
|
-
class LinkedItemsHelper {
|
|
5267
|
-
convertLinkedItemsToArray(linkedItems) {
|
|
5268
|
-
const linkedItemsArray = [];
|
|
5269
|
-
for (const linkedItemKey of Object.keys(linkedItems)) {
|
|
5270
|
-
linkedItemsArray.push(linkedItems[linkedItemKey]);
|
|
5271
|
-
}
|
|
5272
|
-
return linkedItemsArray;
|
|
5273
|
-
}
|
|
5274
|
-
}
|
|
5275
|
-
exports.LinkedItemsHelper = LinkedItemsHelper;
|
|
5276
|
-
exports.linkedItemsHelper = new LinkedItemsHelper();
|
|
5277
|
-
|
|
5278
|
-
|
|
5279
|
-
/***/ }),
|
|
5280
|
-
|
|
5281
|
-
/***/ "./node_modules/url-parse/index.js":
|
|
5282
|
-
/*!*****************************************!*\
|
|
5283
|
-
!*** ./node_modules/url-parse/index.js ***!
|
|
5284
|
-
\*****************************************/
|
|
5285
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
5286
|
-
|
|
5287
|
-
|
|
5288
|
-
|
|
5289
|
-
var required = __webpack_require__(/*! requires-port */ "./node_modules/requires-port/index.js")
|
|
5290
|
-
, qs = __webpack_require__(/*! querystringify */ "./node_modules/querystringify/index.js")
|
|
5291
|
-
, controlOrWhitespace = /^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/
|
|
5292
|
-
, CRHTLF = /[\n\r\t]/g
|
|
5293
|
-
, slashes = /^[A-Za-z][A-Za-z0-9+-.]*:\/\//
|
|
5294
|
-
, port = /:\d+$/
|
|
5295
|
-
, protocolre = /^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i
|
|
5296
|
-
, windowsDriveLetter = /^[a-zA-Z]:/;
|
|
5297
|
-
|
|
5298
|
-
/**
|
|
5299
|
-
* Remove control characters and whitespace from the beginning of a string.
|
|
5300
|
-
*
|
|
5301
|
-
* @param {Object|String} str String to trim.
|
|
5302
|
-
* @returns {String} A new string representing `str` stripped of control
|
|
5303
|
-
* characters and whitespace from its beginning.
|
|
5304
|
-
* @public
|
|
5305
|
-
*/
|
|
5306
|
-
function trimLeft(str) {
|
|
5307
|
-
return (str ? str : '').toString().replace(controlOrWhitespace, '');
|
|
5308
|
-
}
|
|
5309
|
-
|
|
5310
|
-
/**
|
|
5311
|
-
* These are the parse rules for the URL parser, it informs the parser
|
|
5312
|
-
* about:
|
|
5313
|
-
*
|
|
5314
|
-
* 0. The char it Needs to parse, if it's a string it should be done using
|
|
5315
|
-
* indexOf, RegExp using exec and NaN means set as current value.
|
|
5316
|
-
* 1. The property we should set when parsing this value.
|
|
5317
|
-
* 2. Indication if it's backwards or forward parsing, when set as number it's
|
|
5318
|
-
* the value of extra chars that should be split off.
|
|
5319
|
-
* 3. Inherit from location if non existing in the parser.
|
|
5320
|
-
* 4. `toLowerCase` the resulting value.
|
|
5321
|
-
*/
|
|
5322
|
-
var rules = [
|
|
5323
|
-
['#', 'hash'], // Extract from the back.
|
|
5324
|
-
['?', 'query'], // Extract from the back.
|
|
5325
|
-
function sanitize(address, url) { // Sanitize what is left of the address
|
|
5326
|
-
return isSpecial(url.protocol) ? address.replace(/\\/g, '/') : address;
|
|
5327
|
-
},
|
|
5328
|
-
['/', 'pathname'], // Extract from the back.
|
|
5329
|
-
['@', 'auth', 1], // Extract from the front.
|
|
5330
|
-
[NaN, 'host', undefined, 1, 1], // Set left over value.
|
|
5331
|
-
[/:(\d*)$/, 'port', undefined, 1], // RegExp the back.
|
|
5332
|
-
[NaN, 'hostname', undefined, 1, 1] // Set left over.
|
|
5333
|
-
];
|
|
5334
|
-
|
|
5335
|
-
/**
|
|
5336
|
-
* These properties should not be copied or inherited from. This is only needed
|
|
5337
|
-
* for all non blob URL's as a blob URL does not include a hash, only the
|
|
5338
|
-
* origin.
|
|
5339
|
-
*
|
|
5340
|
-
* @type {Object}
|
|
5341
|
-
* @private
|
|
5342
|
-
*/
|
|
5343
|
-
var ignore = { hash: 1, query: 1 };
|
|
5344
|
-
|
|
5345
|
-
/**
|
|
5346
|
-
* The location object differs when your code is loaded through a normal page,
|
|
5347
|
-
* Worker or through a worker using a blob. And with the blobble begins the
|
|
5348
|
-
* trouble as the location object will contain the URL of the blob, not the
|
|
5349
|
-
* location of the page where our code is loaded in. The actual origin is
|
|
5350
|
-
* encoded in the `pathname` so we can thankfully generate a good "default"
|
|
5351
|
-
* location from it so we can generate proper relative URL's again.
|
|
5352
|
-
*
|
|
5353
|
-
* @param {Object|String} loc Optional default location object.
|
|
5354
|
-
* @returns {Object} lolcation object.
|
|
5355
|
-
* @public
|
|
5356
|
-
*/
|
|
5357
|
-
function lolcation(loc) {
|
|
5358
|
-
var globalVar;
|
|
5359
|
-
|
|
5360
|
-
if (typeof window !== 'undefined') globalVar = window;
|
|
5361
|
-
else if (typeof __webpack_require__.g !== 'undefined') globalVar = __webpack_require__.g;
|
|
5362
|
-
else if (typeof self !== 'undefined') globalVar = self;
|
|
5363
|
-
else globalVar = {};
|
|
5364
|
-
|
|
5365
|
-
var location = globalVar.location || {};
|
|
5366
|
-
loc = loc || location;
|
|
5367
|
-
|
|
5368
|
-
var finaldestination = {}
|
|
5369
|
-
, type = typeof loc
|
|
5370
|
-
, key;
|
|
5371
|
-
|
|
5372
|
-
if ('blob:' === loc.protocol) {
|
|
5373
|
-
finaldestination = new Url(unescape(loc.pathname), {});
|
|
5374
|
-
} else if ('string' === type) {
|
|
5375
|
-
finaldestination = new Url(loc, {});
|
|
5376
|
-
for (key in ignore) delete finaldestination[key];
|
|
5377
|
-
} else if ('object' === type) {
|
|
5378
|
-
for (key in loc) {
|
|
5379
|
-
if (key in ignore) continue;
|
|
5380
|
-
finaldestination[key] = loc[key];
|
|
5381
|
-
}
|
|
5382
|
-
|
|
5383
|
-
if (finaldestination.slashes === undefined) {
|
|
5384
|
-
finaldestination.slashes = slashes.test(loc.href);
|
|
5385
|
-
}
|
|
5386
|
-
}
|
|
5387
|
-
|
|
5388
|
-
return finaldestination;
|
|
5389
|
-
}
|
|
5390
|
-
|
|
5391
|
-
/**
|
|
5392
|
-
* Check whether a protocol scheme is special.
|
|
5393
|
-
*
|
|
5394
|
-
* @param {String} The protocol scheme of the URL
|
|
5395
|
-
* @return {Boolean} `true` if the protocol scheme is special, else `false`
|
|
5396
|
-
* @private
|
|
5397
|
-
*/
|
|
5398
|
-
function isSpecial(scheme) {
|
|
5399
|
-
return (
|
|
5400
|
-
scheme === 'file:' ||
|
|
5401
|
-
scheme === 'ftp:' ||
|
|
5402
|
-
scheme === 'http:' ||
|
|
5403
|
-
scheme === 'https:' ||
|
|
5404
|
-
scheme === 'ws:' ||
|
|
5405
|
-
scheme === 'wss:'
|
|
5406
|
-
);
|
|
5407
|
-
}
|
|
5408
|
-
|
|
5409
|
-
/**
|
|
5410
|
-
* @typedef ProtocolExtract
|
|
5411
|
-
* @type Object
|
|
5412
|
-
* @property {String} protocol Protocol matched in the URL, in lowercase.
|
|
5413
|
-
* @property {Boolean} slashes `true` if protocol is followed by "//", else `false`.
|
|
5414
|
-
* @property {String} rest Rest of the URL that is not part of the protocol.
|
|
5415
|
-
*/
|
|
5416
|
-
|
|
5417
|
-
/**
|
|
5418
|
-
* Extract protocol information from a URL with/without double slash ("//").
|
|
5419
|
-
*
|
|
5420
|
-
* @param {String} address URL we want to extract from.
|
|
5421
|
-
* @param {Object} location
|
|
5422
|
-
* @return {ProtocolExtract} Extracted information.
|
|
5423
|
-
* @private
|
|
5424
|
-
*/
|
|
5425
|
-
function extractProtocol(address, location) {
|
|
5426
|
-
address = trimLeft(address);
|
|
5427
|
-
address = address.replace(CRHTLF, '');
|
|
5428
|
-
location = location || {};
|
|
5429
|
-
|
|
5430
|
-
var match = protocolre.exec(address);
|
|
5431
|
-
var protocol = match[1] ? match[1].toLowerCase() : '';
|
|
5432
|
-
var forwardSlashes = !!match[2];
|
|
5433
|
-
var otherSlashes = !!match[3];
|
|
5434
|
-
var slashesCount = 0;
|
|
5435
|
-
var rest;
|
|
5436
|
-
|
|
5437
|
-
if (forwardSlashes) {
|
|
5438
|
-
if (otherSlashes) {
|
|
5439
|
-
rest = match[2] + match[3] + match[4];
|
|
5440
|
-
slashesCount = match[2].length + match[3].length;
|
|
5441
|
-
} else {
|
|
5442
|
-
rest = match[2] + match[4];
|
|
5443
|
-
slashesCount = match[2].length;
|
|
5444
|
-
}
|
|
5445
|
-
} else {
|
|
5446
|
-
if (otherSlashes) {
|
|
5447
|
-
rest = match[3] + match[4];
|
|
5448
|
-
slashesCount = match[3].length;
|
|
5449
|
-
} else {
|
|
5450
|
-
rest = match[4]
|
|
5451
|
-
}
|
|
5452
|
-
}
|
|
5453
|
-
|
|
5454
|
-
if (protocol === 'file:') {
|
|
5455
|
-
if (slashesCount >= 2) {
|
|
5456
|
-
rest = rest.slice(2);
|
|
5457
|
-
}
|
|
5458
|
-
} else if (isSpecial(protocol)) {
|
|
5459
|
-
rest = match[4];
|
|
5460
|
-
} else if (protocol) {
|
|
5461
|
-
if (forwardSlashes) {
|
|
5462
|
-
rest = rest.slice(2);
|
|
5463
|
-
}
|
|
5464
|
-
} else if (slashesCount >= 2 && isSpecial(location.protocol)) {
|
|
5465
|
-
rest = match[4];
|
|
5466
|
-
}
|
|
5467
|
-
|
|
5468
|
-
return {
|
|
5469
|
-
protocol: protocol,
|
|
5470
|
-
slashes: forwardSlashes || isSpecial(protocol),
|
|
5471
|
-
slashesCount: slashesCount,
|
|
5472
|
-
rest: rest
|
|
5473
|
-
};
|
|
5474
|
-
}
|
|
5475
|
-
|
|
5476
|
-
/**
|
|
5477
|
-
* Resolve a relative URL pathname against a base URL pathname.
|
|
5478
|
-
*
|
|
5479
|
-
* @param {String} relative Pathname of the relative URL.
|
|
5480
|
-
* @param {String} base Pathname of the base URL.
|
|
5481
|
-
* @return {String} Resolved pathname.
|
|
5482
|
-
* @private
|
|
5483
|
-
*/
|
|
5484
|
-
function resolve(relative, base) {
|
|
5485
|
-
if (relative === '') return base;
|
|
5486
|
-
|
|
5487
|
-
var path = (base || '/').split('/').slice(0, -1).concat(relative.split('/'))
|
|
5488
|
-
, i = path.length
|
|
5489
|
-
, last = path[i - 1]
|
|
5490
|
-
, unshift = false
|
|
5491
|
-
, up = 0;
|
|
5492
|
-
|
|
5493
|
-
while (i--) {
|
|
5494
|
-
if (path[i] === '.') {
|
|
5495
|
-
path.splice(i, 1);
|
|
5496
|
-
} else if (path[i] === '..') {
|
|
5497
|
-
path.splice(i, 1);
|
|
5498
|
-
up++;
|
|
5499
|
-
} else if (up) {
|
|
5500
|
-
if (i === 0) unshift = true;
|
|
5501
|
-
path.splice(i, 1);
|
|
5502
|
-
up--;
|
|
5503
|
-
}
|
|
5504
|
-
}
|
|
5505
|
-
|
|
5506
|
-
if (unshift) path.unshift('');
|
|
5507
|
-
if (last === '.' || last === '..') path.push('');
|
|
5508
|
-
|
|
5509
|
-
return path.join('/');
|
|
5510
|
-
}
|
|
5511
|
-
|
|
5512
|
-
/**
|
|
5513
|
-
* The actual URL instance. Instead of returning an object we've opted-in to
|
|
5514
|
-
* create an actual constructor as it's much more memory efficient and
|
|
5515
|
-
* faster and it pleases my OCD.
|
|
5516
|
-
*
|
|
5517
|
-
* It is worth noting that we should not use `URL` as class name to prevent
|
|
5518
|
-
* clashes with the global URL instance that got introduced in browsers.
|
|
5519
|
-
*
|
|
5520
|
-
* @constructor
|
|
5521
|
-
* @param {String} address URL we want to parse.
|
|
5522
|
-
* @param {Object|String} [location] Location defaults for relative paths.
|
|
5523
|
-
* @param {Boolean|Function} [parser] Parser for the query string.
|
|
5524
|
-
* @private
|
|
5525
|
-
*/
|
|
5526
|
-
function Url(address, location, parser) {
|
|
5527
|
-
address = trimLeft(address);
|
|
5528
|
-
address = address.replace(CRHTLF, '');
|
|
5529
|
-
|
|
5530
|
-
if (!(this instanceof Url)) {
|
|
5531
|
-
return new Url(address, location, parser);
|
|
5532
|
-
}
|
|
5533
|
-
|
|
5534
|
-
var relative, extracted, parse, instruction, index, key
|
|
5535
|
-
, instructions = rules.slice()
|
|
5536
|
-
, type = typeof location
|
|
5537
|
-
, url = this
|
|
5538
|
-
, i = 0;
|
|
5539
|
-
|
|
5540
|
-
//
|
|
5541
|
-
// The following if statements allows this module two have compatibility with
|
|
5542
|
-
// 2 different API:
|
|
5543
|
-
//
|
|
5544
|
-
// 1. Node.js's `url.parse` api which accepts a URL, boolean as arguments
|
|
5545
|
-
// where the boolean indicates that the query string should also be parsed.
|
|
5546
|
-
//
|
|
5547
|
-
// 2. The `URL` interface of the browser which accepts a URL, object as
|
|
5548
|
-
// arguments. The supplied object will be used as default values / fall-back
|
|
5549
|
-
// for relative paths.
|
|
5550
|
-
//
|
|
5551
|
-
if ('object' !== type && 'string' !== type) {
|
|
5552
|
-
parser = location;
|
|
5553
|
-
location = null;
|
|
5554
|
-
}
|
|
5555
|
-
|
|
5556
|
-
if (parser && 'function' !== typeof parser) parser = qs.parse;
|
|
5557
|
-
|
|
5558
|
-
location = lolcation(location);
|
|
5559
|
-
|
|
5560
|
-
//
|
|
5561
|
-
// Extract protocol information before running the instructions.
|
|
5562
|
-
//
|
|
5563
|
-
extracted = extractProtocol(address || '', location);
|
|
5564
|
-
relative = !extracted.protocol && !extracted.slashes;
|
|
5565
|
-
url.slashes = extracted.slashes || relative && location.slashes;
|
|
5566
|
-
url.protocol = extracted.protocol || location.protocol || '';
|
|
5567
|
-
address = extracted.rest;
|
|
5568
|
-
|
|
5569
|
-
//
|
|
5570
|
-
// When the authority component is absent the URL starts with a path
|
|
5571
|
-
// component.
|
|
5572
|
-
//
|
|
5573
|
-
if (
|
|
5574
|
-
extracted.protocol === 'file:' && (
|
|
5575
|
-
extracted.slashesCount !== 2 || windowsDriveLetter.test(address)) ||
|
|
5576
|
-
(!extracted.slashes &&
|
|
5577
|
-
(extracted.protocol ||
|
|
5578
|
-
extracted.slashesCount < 2 ||
|
|
5579
|
-
!isSpecial(url.protocol)))
|
|
5580
|
-
) {
|
|
5581
|
-
instructions[3] = [/(.*)/, 'pathname'];
|
|
5582
|
-
}
|
|
5583
|
-
|
|
5584
|
-
for (; i < instructions.length; i++) {
|
|
5585
|
-
instruction = instructions[i];
|
|
5586
|
-
|
|
5587
|
-
if (typeof instruction === 'function') {
|
|
5588
|
-
address = instruction(address, url);
|
|
5589
|
-
continue;
|
|
5590
|
-
}
|
|
5591
|
-
|
|
5592
|
-
parse = instruction[0];
|
|
5593
|
-
key = instruction[1];
|
|
5594
|
-
|
|
5595
|
-
if (parse !== parse) {
|
|
5596
|
-
url[key] = address;
|
|
5597
|
-
} else if ('string' === typeof parse) {
|
|
5598
|
-
index = parse === '@'
|
|
5599
|
-
? address.lastIndexOf(parse)
|
|
5600
|
-
: address.indexOf(parse);
|
|
5601
|
-
|
|
5602
|
-
if (~index) {
|
|
5603
|
-
if ('number' === typeof instruction[2]) {
|
|
5604
|
-
url[key] = address.slice(0, index);
|
|
5605
|
-
address = address.slice(index + instruction[2]);
|
|
5606
|
-
} else {
|
|
5607
|
-
url[key] = address.slice(index);
|
|
5608
|
-
address = address.slice(0, index);
|
|
5609
|
-
}
|
|
5610
|
-
}
|
|
5611
|
-
} else if ((index = parse.exec(address))) {
|
|
5612
|
-
url[key] = index[1];
|
|
5613
|
-
address = address.slice(0, index.index);
|
|
5614
|
-
}
|
|
5615
|
-
|
|
5616
|
-
url[key] = url[key] || (
|
|
5617
|
-
relative && instruction[3] ? location[key] || '' : ''
|
|
5618
|
-
);
|
|
5619
|
-
|
|
5620
|
-
//
|
|
5621
|
-
// Hostname, host and protocol should be lowercased so they can be used to
|
|
5622
|
-
// create a proper `origin`.
|
|
5623
|
-
//
|
|
5624
|
-
if (instruction[4]) url[key] = url[key].toLowerCase();
|
|
5625
|
-
}
|
|
5626
|
-
|
|
5627
|
-
//
|
|
5628
|
-
// Also parse the supplied query string in to an object. If we're supplied
|
|
5629
|
-
// with a custom parser as function use that instead of the default build-in
|
|
5630
|
-
// parser.
|
|
5631
|
-
//
|
|
5632
|
-
if (parser) url.query = parser(url.query);
|
|
5633
|
-
|
|
5634
|
-
//
|
|
5635
|
-
// If the URL is relative, resolve the pathname against the base URL.
|
|
5636
|
-
//
|
|
5637
|
-
if (
|
|
5638
|
-
relative
|
|
5639
|
-
&& location.slashes
|
|
5640
|
-
&& url.pathname.charAt(0) !== '/'
|
|
5641
|
-
&& (url.pathname !== '' || location.pathname !== '')
|
|
5642
|
-
) {
|
|
5643
|
-
url.pathname = resolve(url.pathname, location.pathname);
|
|
5644
|
-
}
|
|
5645
|
-
|
|
5646
|
-
//
|
|
5647
|
-
// Default to a / for pathname if none exists. This normalizes the URL
|
|
5648
|
-
// to always have a /
|
|
5649
|
-
//
|
|
5650
|
-
if (url.pathname.charAt(0) !== '/' && isSpecial(url.protocol)) {
|
|
5651
|
-
url.pathname = '/' + url.pathname;
|
|
5652
|
-
}
|
|
5653
|
-
|
|
5654
|
-
//
|
|
5655
|
-
// We should not add port numbers if they are already the default port number
|
|
5656
|
-
// for a given protocol. As the host also contains the port number we're going
|
|
5657
|
-
// override it with the hostname which contains no port number.
|
|
5658
|
-
//
|
|
5659
|
-
if (!required(url.port, url.protocol)) {
|
|
5660
|
-
url.host = url.hostname;
|
|
5661
|
-
url.port = '';
|
|
5662
|
-
}
|
|
5663
|
-
|
|
5664
|
-
//
|
|
5665
|
-
// Parse down the `auth` for the username and password.
|
|
5666
|
-
//
|
|
5667
|
-
url.username = url.password = '';
|
|
5668
|
-
|
|
5669
|
-
if (url.auth) {
|
|
5670
|
-
index = url.auth.indexOf(':');
|
|
5671
|
-
|
|
5672
|
-
if (~index) {
|
|
5673
|
-
url.username = url.auth.slice(0, index);
|
|
5674
|
-
url.username = encodeURIComponent(decodeURIComponent(url.username));
|
|
5675
|
-
|
|
5676
|
-
url.password = url.auth.slice(index + 1);
|
|
5677
|
-
url.password = encodeURIComponent(decodeURIComponent(url.password))
|
|
5678
|
-
} else {
|
|
5679
|
-
url.username = encodeURIComponent(decodeURIComponent(url.auth));
|
|
5680
|
-
}
|
|
5681
|
-
|
|
5682
|
-
url.auth = url.password ? url.username +':'+ url.password : url.username;
|
|
5683
|
-
}
|
|
5684
|
-
|
|
5685
|
-
url.origin = url.protocol !== 'file:' && isSpecial(url.protocol) && url.host
|
|
5686
|
-
? url.protocol +'//'+ url.host
|
|
5687
|
-
: 'null';
|
|
5688
|
-
|
|
5689
|
-
//
|
|
5690
|
-
// The href is just the compiled result.
|
|
5691
|
-
//
|
|
5692
|
-
url.href = url.toString();
|
|
5693
|
-
}
|
|
5694
|
-
|
|
5695
|
-
/**
|
|
5696
|
-
* This is convenience method for changing properties in the URL instance to
|
|
5697
|
-
* insure that they all propagate correctly.
|
|
5698
|
-
*
|
|
5699
|
-
* @param {String} part Property we need to adjust.
|
|
5700
|
-
* @param {Mixed} value The newly assigned value.
|
|
5701
|
-
* @param {Boolean|Function} fn When setting the query, it will be the function
|
|
5702
|
-
* used to parse the query.
|
|
5703
|
-
* When setting the protocol, double slash will be
|
|
5704
|
-
* removed from the final url if it is true.
|
|
5705
|
-
* @returns {URL} URL instance for chaining.
|
|
5706
|
-
* @public
|
|
5707
|
-
*/
|
|
5708
|
-
function set(part, value, fn) {
|
|
5709
|
-
var url = this;
|
|
5710
|
-
|
|
5711
|
-
switch (part) {
|
|
5712
|
-
case 'query':
|
|
5713
|
-
if ('string' === typeof value && value.length) {
|
|
5714
|
-
value = (fn || qs.parse)(value);
|
|
5715
|
-
}
|
|
5716
|
-
|
|
5717
|
-
url[part] = value;
|
|
5718
|
-
break;
|
|
5719
|
-
|
|
5720
|
-
case 'port':
|
|
5721
|
-
url[part] = value;
|
|
5722
|
-
|
|
5723
|
-
if (!required(value, url.protocol)) {
|
|
5724
|
-
url.host = url.hostname;
|
|
5725
|
-
url[part] = '';
|
|
5726
|
-
} else if (value) {
|
|
5727
|
-
url.host = url.hostname +':'+ value;
|
|
5728
|
-
}
|
|
5729
|
-
|
|
5730
|
-
break;
|
|
5731
|
-
|
|
5732
|
-
case 'hostname':
|
|
5733
|
-
url[part] = value;
|
|
5734
|
-
|
|
5735
|
-
if (url.port) value += ':'+ url.port;
|
|
5736
|
-
url.host = value;
|
|
5737
|
-
break;
|
|
5738
|
-
|
|
5739
|
-
case 'host':
|
|
5740
|
-
url[part] = value;
|
|
5741
|
-
|
|
5742
|
-
if (port.test(value)) {
|
|
5743
|
-
value = value.split(':');
|
|
5744
|
-
url.port = value.pop();
|
|
5745
|
-
url.hostname = value.join(':');
|
|
5746
|
-
} else {
|
|
5747
|
-
url.hostname = value;
|
|
5748
|
-
url.port = '';
|
|
5749
|
-
}
|
|
5750
|
-
|
|
5751
|
-
break;
|
|
5752
|
-
|
|
5753
|
-
case 'protocol':
|
|
5754
|
-
url.protocol = value.toLowerCase();
|
|
5755
|
-
url.slashes = !fn;
|
|
5756
|
-
break;
|
|
5757
|
-
|
|
5758
|
-
case 'pathname':
|
|
5759
|
-
case 'hash':
|
|
5760
|
-
if (value) {
|
|
5761
|
-
var char = part === 'pathname' ? '/' : '#';
|
|
5762
|
-
url[part] = value.charAt(0) !== char ? char + value : value;
|
|
5763
|
-
} else {
|
|
5764
|
-
url[part] = value;
|
|
5765
|
-
}
|
|
5766
|
-
break;
|
|
5767
|
-
|
|
5768
|
-
case 'username':
|
|
5769
|
-
case 'password':
|
|
5770
|
-
url[part] = encodeURIComponent(value);
|
|
5771
|
-
break;
|
|
5772
|
-
|
|
5773
|
-
case 'auth':
|
|
5774
|
-
var index = value.indexOf(':');
|
|
5775
|
-
|
|
5776
|
-
if (~index) {
|
|
5777
|
-
url.username = value.slice(0, index);
|
|
5778
|
-
url.username = encodeURIComponent(decodeURIComponent(url.username));
|
|
5779
|
-
|
|
5780
|
-
url.password = value.slice(index + 1);
|
|
5781
|
-
url.password = encodeURIComponent(decodeURIComponent(url.password));
|
|
5782
|
-
} else {
|
|
5783
|
-
url.username = encodeURIComponent(decodeURIComponent(value));
|
|
5784
|
-
}
|
|
5785
|
-
}
|
|
5786
|
-
|
|
5787
|
-
for (var i = 0; i < rules.length; i++) {
|
|
5788
|
-
var ins = rules[i];
|
|
5789
|
-
|
|
5790
|
-
if (ins[4]) url[ins[1]] = url[ins[1]].toLowerCase();
|
|
5791
|
-
}
|
|
5792
|
-
|
|
5793
|
-
url.auth = url.password ? url.username +':'+ url.password : url.username;
|
|
5794
|
-
|
|
5795
|
-
url.origin = url.protocol !== 'file:' && isSpecial(url.protocol) && url.host
|
|
5796
|
-
? url.protocol +'//'+ url.host
|
|
5797
|
-
: 'null';
|
|
5798
|
-
|
|
5799
|
-
url.href = url.toString();
|
|
5800
|
-
|
|
5801
|
-
return url;
|
|
5802
|
-
}
|
|
5803
|
-
|
|
5804
|
-
/**
|
|
5805
|
-
* Transform the properties back in to a valid and full URL string.
|
|
5806
|
-
*
|
|
5807
|
-
* @param {Function} stringify Optional query stringify function.
|
|
5808
|
-
* @returns {String} Compiled version of the URL.
|
|
5809
|
-
* @public
|
|
5810
|
-
*/
|
|
5811
|
-
function toString(stringify) {
|
|
5812
|
-
if (!stringify || 'function' !== typeof stringify) stringify = qs.stringify;
|
|
5813
|
-
|
|
5814
|
-
var query
|
|
5815
|
-
, url = this
|
|
5816
|
-
, host = url.host
|
|
5817
|
-
, protocol = url.protocol;
|
|
5818
|
-
|
|
5819
|
-
if (protocol && protocol.charAt(protocol.length - 1) !== ':') protocol += ':';
|
|
5820
|
-
|
|
5821
|
-
var result =
|
|
5822
|
-
protocol +
|
|
5823
|
-
((url.protocol && url.slashes) || isSpecial(url.protocol) ? '//' : '');
|
|
5824
|
-
|
|
5825
|
-
if (url.username) {
|
|
5826
|
-
result += url.username;
|
|
5827
|
-
if (url.password) result += ':'+ url.password;
|
|
5828
|
-
result += '@';
|
|
5829
|
-
} else if (url.password) {
|
|
5830
|
-
result += ':'+ url.password;
|
|
5831
|
-
result += '@';
|
|
5832
|
-
} else if (
|
|
5833
|
-
url.protocol !== 'file:' &&
|
|
5834
|
-
isSpecial(url.protocol) &&
|
|
5835
|
-
!host &&
|
|
5836
|
-
url.pathname !== '/'
|
|
5837
|
-
) {
|
|
5838
|
-
//
|
|
5839
|
-
// Add back the empty userinfo, otherwise the original invalid URL
|
|
5840
|
-
// might be transformed into a valid one with `url.pathname` as host.
|
|
5841
|
-
//
|
|
5842
|
-
result += '@';
|
|
5843
|
-
}
|
|
5844
|
-
|
|
5845
|
-
//
|
|
5846
|
-
// Trailing colon is removed from `url.host` when it is parsed. If it still
|
|
5847
|
-
// ends with a colon, then add back the trailing colon that was removed. This
|
|
5848
|
-
// prevents an invalid URL from being transformed into a valid one.
|
|
5849
|
-
//
|
|
5850
|
-
if (host[host.length - 1] === ':' || (port.test(url.hostname) && !url.port)) {
|
|
5851
|
-
host += ':';
|
|
5852
|
-
}
|
|
5853
|
-
|
|
5854
|
-
result += host + url.pathname;
|
|
5855
|
-
|
|
5856
|
-
query = 'object' === typeof url.query ? stringify(url.query) : url.query;
|
|
5857
|
-
if (query) result += '?' !== query.charAt(0) ? '?'+ query : query;
|
|
5858
|
-
|
|
5859
|
-
if (url.hash) result += url.hash;
|
|
5860
|
-
|
|
5861
|
-
return result;
|
|
5862
|
-
}
|
|
5863
|
-
|
|
5864
|
-
Url.prototype = { set: set, toString: toString };
|
|
5865
|
-
|
|
5866
|
-
//
|
|
5867
|
-
// Expose the URL parser and some additional properties that might be useful for
|
|
5868
|
-
// others or testing.
|
|
5869
|
-
//
|
|
5870
|
-
Url.extractProtocol = extractProtocol;
|
|
5871
|
-
Url.location = lolcation;
|
|
5872
|
-
Url.trimLeft = trimLeft;
|
|
5873
|
-
Url.qs = qs;
|
|
5874
|
-
|
|
5875
|
-
module.exports = Url;
|
|
5876
|
-
|
|
5877
|
-
|
|
5878
|
-
/***/ }),
|
|
5879
|
-
|
|
5880
|
-
/***/ "./node_modules/uuid/dist/commonjs-browser/index.js":
|
|
5881
|
-
/*!**********************************************************!*\
|
|
5882
|
-
!*** ./node_modules/uuid/dist/commonjs-browser/index.js ***!
|
|
5883
|
-
\**********************************************************/
|
|
5884
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
5885
|
-
|
|
5886
|
-
|
|
5887
|
-
|
|
5888
|
-
Object.defineProperty(exports, "__esModule", ({
|
|
5889
|
-
value: true
|
|
5890
|
-
}));
|
|
5891
|
-
Object.defineProperty(exports, "MAX", ({
|
|
5892
|
-
enumerable: true,
|
|
5893
|
-
get: function get() {
|
|
5894
|
-
return _max.default;
|
|
5895
|
-
}
|
|
5896
|
-
}));
|
|
5897
|
-
Object.defineProperty(exports, "NIL", ({
|
|
5898
|
-
enumerable: true,
|
|
5899
|
-
get: function get() {
|
|
5900
|
-
return _nil.default;
|
|
5901
|
-
}
|
|
5902
|
-
}));
|
|
5903
|
-
Object.defineProperty(exports, "parse", ({
|
|
5904
|
-
enumerable: true,
|
|
5905
|
-
get: function get() {
|
|
5906
|
-
return _parse.default;
|
|
5907
|
-
}
|
|
5908
|
-
}));
|
|
5909
|
-
Object.defineProperty(exports, "stringify", ({
|
|
5910
|
-
enumerable: true,
|
|
5911
|
-
get: function get() {
|
|
5912
|
-
return _stringify.default;
|
|
5913
|
-
}
|
|
5914
|
-
}));
|
|
5915
|
-
Object.defineProperty(exports, "v1", ({
|
|
5916
|
-
enumerable: true,
|
|
5917
|
-
get: function get() {
|
|
5918
|
-
return _v.default;
|
|
5919
|
-
}
|
|
5920
|
-
}));
|
|
5921
|
-
Object.defineProperty(exports, "v1ToV6", ({
|
|
5922
|
-
enumerable: true,
|
|
5923
|
-
get: function get() {
|
|
5924
|
-
return _v1ToV.default;
|
|
5925
|
-
}
|
|
5926
|
-
}));
|
|
5927
|
-
Object.defineProperty(exports, "v3", ({
|
|
5928
|
-
enumerable: true,
|
|
5929
|
-
get: function get() {
|
|
5930
|
-
return _v2.default;
|
|
5931
|
-
}
|
|
5932
|
-
}));
|
|
5933
|
-
Object.defineProperty(exports, "v4", ({
|
|
5934
|
-
enumerable: true,
|
|
5935
|
-
get: function get() {
|
|
5936
|
-
return _v3.default;
|
|
5937
|
-
}
|
|
5938
|
-
}));
|
|
5939
|
-
Object.defineProperty(exports, "v5", ({
|
|
5940
|
-
enumerable: true,
|
|
5941
|
-
get: function get() {
|
|
5942
|
-
return _v4.default;
|
|
5943
|
-
}
|
|
5944
|
-
}));
|
|
5945
|
-
Object.defineProperty(exports, "v6", ({
|
|
5946
|
-
enumerable: true,
|
|
5947
|
-
get: function get() {
|
|
5948
|
-
return _v5.default;
|
|
5949
|
-
}
|
|
5950
|
-
}));
|
|
5951
|
-
Object.defineProperty(exports, "v6ToV1", ({
|
|
5952
|
-
enumerable: true,
|
|
5953
|
-
get: function get() {
|
|
5954
|
-
return _v6ToV.default;
|
|
5955
|
-
}
|
|
5956
|
-
}));
|
|
5957
|
-
Object.defineProperty(exports, "v7", ({
|
|
5958
|
-
enumerable: true,
|
|
5959
|
-
get: function get() {
|
|
5960
|
-
return _v6.default;
|
|
5961
|
-
}
|
|
5962
|
-
}));
|
|
5963
|
-
Object.defineProperty(exports, "validate", ({
|
|
5964
|
-
enumerable: true,
|
|
5965
|
-
get: function get() {
|
|
5966
|
-
return _validate.default;
|
|
5967
|
-
}
|
|
5968
|
-
}));
|
|
5969
|
-
Object.defineProperty(exports, "version", ({
|
|
5970
|
-
enumerable: true,
|
|
5971
|
-
get: function get() {
|
|
5972
|
-
return _version.default;
|
|
5973
|
-
}
|
|
5974
|
-
}));
|
|
5975
|
-
var _max = _interopRequireDefault(__webpack_require__(/*! ./max.js */ "./node_modules/uuid/dist/commonjs-browser/max.js"));
|
|
5976
|
-
var _nil = _interopRequireDefault(__webpack_require__(/*! ./nil.js */ "./node_modules/uuid/dist/commonjs-browser/nil.js"));
|
|
5977
|
-
var _parse = _interopRequireDefault(__webpack_require__(/*! ./parse.js */ "./node_modules/uuid/dist/commonjs-browser/parse.js"));
|
|
5978
|
-
var _stringify = _interopRequireDefault(__webpack_require__(/*! ./stringify.js */ "./node_modules/uuid/dist/commonjs-browser/stringify.js"));
|
|
5979
|
-
var _v = _interopRequireDefault(__webpack_require__(/*! ./v1.js */ "./node_modules/uuid/dist/commonjs-browser/v1.js"));
|
|
5980
|
-
var _v1ToV = _interopRequireDefault(__webpack_require__(/*! ./v1ToV6.js */ "./node_modules/uuid/dist/commonjs-browser/v1ToV6.js"));
|
|
5981
|
-
var _v2 = _interopRequireDefault(__webpack_require__(/*! ./v3.js */ "./node_modules/uuid/dist/commonjs-browser/v3.js"));
|
|
5982
|
-
var _v3 = _interopRequireDefault(__webpack_require__(/*! ./v4.js */ "./node_modules/uuid/dist/commonjs-browser/v4.js"));
|
|
5983
|
-
var _v4 = _interopRequireDefault(__webpack_require__(/*! ./v5.js */ "./node_modules/uuid/dist/commonjs-browser/v5.js"));
|
|
5984
|
-
var _v5 = _interopRequireDefault(__webpack_require__(/*! ./v6.js */ "./node_modules/uuid/dist/commonjs-browser/v6.js"));
|
|
5985
|
-
var _v6ToV = _interopRequireDefault(__webpack_require__(/*! ./v6ToV1.js */ "./node_modules/uuid/dist/commonjs-browser/v6ToV1.js"));
|
|
5986
|
-
var _v6 = _interopRequireDefault(__webpack_require__(/*! ./v7.js */ "./node_modules/uuid/dist/commonjs-browser/v7.js"));
|
|
5987
|
-
var _validate = _interopRequireDefault(__webpack_require__(/*! ./validate.js */ "./node_modules/uuid/dist/commonjs-browser/validate.js"));
|
|
5988
|
-
var _version = _interopRequireDefault(__webpack_require__(/*! ./version.js */ "./node_modules/uuid/dist/commonjs-browser/version.js"));
|
|
5989
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
5990
|
-
|
|
5991
|
-
/***/ }),
|
|
5992
|
-
|
|
5993
|
-
/***/ "./node_modules/uuid/dist/commonjs-browser/max.js":
|
|
5994
|
-
/*!********************************************************!*\
|
|
5995
|
-
!*** ./node_modules/uuid/dist/commonjs-browser/max.js ***!
|
|
5996
|
-
\********************************************************/
|
|
5997
|
-
/***/ ((__unused_webpack_module, exports) => {
|
|
5998
|
-
|
|
5999
|
-
|
|
6000
|
-
|
|
6001
|
-
Object.defineProperty(exports, "__esModule", ({
|
|
6002
|
-
value: true
|
|
6003
|
-
}));
|
|
6004
|
-
exports["default"] = void 0;
|
|
6005
|
-
var _default = exports["default"] = 'ffffffff-ffff-ffff-ffff-ffffffffffff';
|
|
6006
|
-
|
|
6007
|
-
/***/ }),
|
|
6008
|
-
|
|
6009
|
-
/***/ "./node_modules/uuid/dist/commonjs-browser/md5.js":
|
|
6010
|
-
/*!********************************************************!*\
|
|
6011
|
-
!*** ./node_modules/uuid/dist/commonjs-browser/md5.js ***!
|
|
6012
|
-
\********************************************************/
|
|
6013
|
-
/***/ ((__unused_webpack_module, exports) => {
|
|
6014
|
-
|
|
6015
|
-
|
|
6016
|
-
|
|
6017
|
-
Object.defineProperty(exports, "__esModule", ({
|
|
6018
|
-
value: true
|
|
6019
|
-
}));
|
|
6020
|
-
exports["default"] = void 0;
|
|
6021
|
-
/*
|
|
6022
|
-
* Browser-compatible JavaScript MD5
|
|
6023
|
-
*
|
|
6024
|
-
* Modification of JavaScript MD5
|
|
6025
|
-
* https://github.com/blueimp/JavaScript-MD5
|
|
6026
|
-
*
|
|
6027
|
-
* Copyright 2011, Sebastian Tschan
|
|
6028
|
-
* https://blueimp.net
|
|
6029
|
-
*
|
|
6030
|
-
* Licensed under the MIT license:
|
|
6031
|
-
* https://opensource.org/licenses/MIT
|
|
6032
|
-
*
|
|
6033
|
-
* Based on
|
|
6034
|
-
* A JavaScript implementation of the RSA Data Security, Inc. MD5 Message
|
|
6035
|
-
* Digest Algorithm, as defined in RFC 1321.
|
|
6036
|
-
* Version 2.2 Copyright (C) Paul Johnston 1999 - 2009
|
|
6037
|
-
* Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet
|
|
6038
|
-
* Distributed under the BSD License
|
|
6039
|
-
* See http://pajhome.org.uk/crypt/md5 for more info.
|
|
6040
|
-
*/
|
|
6041
|
-
function md5(bytes) {
|
|
6042
|
-
if (typeof bytes === 'string') {
|
|
6043
|
-
var msg = unescape(encodeURIComponent(bytes)); // UTF8 escape
|
|
6044
|
-
|
|
6045
|
-
bytes = new Uint8Array(msg.length);
|
|
6046
|
-
for (var i = 0; i < msg.length; ++i) {
|
|
6047
|
-
bytes[i] = msg.charCodeAt(i);
|
|
6048
|
-
}
|
|
6049
|
-
}
|
|
6050
|
-
return md5ToHexEncodedArray(wordsToMd5(bytesToWords(bytes), bytes.length * 8));
|
|
6051
|
-
}
|
|
6052
|
-
|
|
6053
|
-
/*
|
|
6054
|
-
* Convert an array of little-endian words to an array of bytes
|
|
6055
|
-
*/
|
|
6056
|
-
function md5ToHexEncodedArray(input) {
|
|
6057
|
-
var output = [];
|
|
6058
|
-
var length32 = input.length * 32;
|
|
6059
|
-
var hexTab = '0123456789abcdef';
|
|
6060
|
-
for (var i = 0; i < length32; i += 8) {
|
|
6061
|
-
var x = input[i >> 5] >>> i % 32 & 0xff;
|
|
6062
|
-
var hex = parseInt(hexTab.charAt(x >>> 4 & 0x0f) + hexTab.charAt(x & 0x0f), 16);
|
|
6063
|
-
output.push(hex);
|
|
6064
|
-
}
|
|
6065
|
-
return output;
|
|
6066
|
-
}
|
|
6067
|
-
|
|
6068
|
-
/**
|
|
6069
|
-
* Calculate output length with padding and bit length
|
|
6070
|
-
*/
|
|
6071
|
-
function getOutputLength(inputLength8) {
|
|
6072
|
-
return (inputLength8 + 64 >>> 9 << 4) + 14 + 1;
|
|
6073
|
-
}
|
|
6074
|
-
|
|
6075
|
-
/*
|
|
6076
|
-
* Calculate the MD5 of an array of little-endian words, and a bit length.
|
|
6077
|
-
*/
|
|
6078
|
-
function wordsToMd5(x, len) {
|
|
6079
|
-
/* append padding */
|
|
6080
|
-
x[len >> 5] |= 0x80 << len % 32;
|
|
6081
|
-
x[getOutputLength(len) - 1] = len;
|
|
6082
|
-
var a = 1732584193;
|
|
6083
|
-
var b = -271733879;
|
|
6084
|
-
var c = -1732584194;
|
|
6085
|
-
var d = 271733878;
|
|
6086
|
-
for (var i = 0; i < x.length; i += 16) {
|
|
6087
|
-
var olda = a;
|
|
6088
|
-
var oldb = b;
|
|
6089
|
-
var oldc = c;
|
|
6090
|
-
var oldd = d;
|
|
6091
|
-
a = md5ff(a, b, c, d, x[i], 7, -680876936);
|
|
6092
|
-
d = md5ff(d, a, b, c, x[i + 1], 12, -389564586);
|
|
6093
|
-
c = md5ff(c, d, a, b, x[i + 2], 17, 606105819);
|
|
6094
|
-
b = md5ff(b, c, d, a, x[i + 3], 22, -1044525330);
|
|
6095
|
-
a = md5ff(a, b, c, d, x[i + 4], 7, -176418897);
|
|
6096
|
-
d = md5ff(d, a, b, c, x[i + 5], 12, 1200080426);
|
|
6097
|
-
c = md5ff(c, d, a, b, x[i + 6], 17, -1473231341);
|
|
6098
|
-
b = md5ff(b, c, d, a, x[i + 7], 22, -45705983);
|
|
6099
|
-
a = md5ff(a, b, c, d, x[i + 8], 7, 1770035416);
|
|
6100
|
-
d = md5ff(d, a, b, c, x[i + 9], 12, -1958414417);
|
|
6101
|
-
c = md5ff(c, d, a, b, x[i + 10], 17, -42063);
|
|
6102
|
-
b = md5ff(b, c, d, a, x[i + 11], 22, -1990404162);
|
|
6103
|
-
a = md5ff(a, b, c, d, x[i + 12], 7, 1804603682);
|
|
6104
|
-
d = md5ff(d, a, b, c, x[i + 13], 12, -40341101);
|
|
6105
|
-
c = md5ff(c, d, a, b, x[i + 14], 17, -1502002290);
|
|
6106
|
-
b = md5ff(b, c, d, a, x[i + 15], 22, 1236535329);
|
|
6107
|
-
a = md5gg(a, b, c, d, x[i + 1], 5, -165796510);
|
|
6108
|
-
d = md5gg(d, a, b, c, x[i + 6], 9, -1069501632);
|
|
6109
|
-
c = md5gg(c, d, a, b, x[i + 11], 14, 643717713);
|
|
6110
|
-
b = md5gg(b, c, d, a, x[i], 20, -373897302);
|
|
6111
|
-
a = md5gg(a, b, c, d, x[i + 5], 5, -701558691);
|
|
6112
|
-
d = md5gg(d, a, b, c, x[i + 10], 9, 38016083);
|
|
6113
|
-
c = md5gg(c, d, a, b, x[i + 15], 14, -660478335);
|
|
6114
|
-
b = md5gg(b, c, d, a, x[i + 4], 20, -405537848);
|
|
6115
|
-
a = md5gg(a, b, c, d, x[i + 9], 5, 568446438);
|
|
6116
|
-
d = md5gg(d, a, b, c, x[i + 14], 9, -1019803690);
|
|
6117
|
-
c = md5gg(c, d, a, b, x[i + 3], 14, -187363961);
|
|
6118
|
-
b = md5gg(b, c, d, a, x[i + 8], 20, 1163531501);
|
|
6119
|
-
a = md5gg(a, b, c, d, x[i + 13], 5, -1444681467);
|
|
6120
|
-
d = md5gg(d, a, b, c, x[i + 2], 9, -51403784);
|
|
6121
|
-
c = md5gg(c, d, a, b, x[i + 7], 14, 1735328473);
|
|
6122
|
-
b = md5gg(b, c, d, a, x[i + 12], 20, -1926607734);
|
|
6123
|
-
a = md5hh(a, b, c, d, x[i + 5], 4, -378558);
|
|
6124
|
-
d = md5hh(d, a, b, c, x[i + 8], 11, -2022574463);
|
|
6125
|
-
c = md5hh(c, d, a, b, x[i + 11], 16, 1839030562);
|
|
6126
|
-
b = md5hh(b, c, d, a, x[i + 14], 23, -35309556);
|
|
6127
|
-
a = md5hh(a, b, c, d, x[i + 1], 4, -1530992060);
|
|
6128
|
-
d = md5hh(d, a, b, c, x[i + 4], 11, 1272893353);
|
|
6129
|
-
c = md5hh(c, d, a, b, x[i + 7], 16, -155497632);
|
|
6130
|
-
b = md5hh(b, c, d, a, x[i + 10], 23, -1094730640);
|
|
6131
|
-
a = md5hh(a, b, c, d, x[i + 13], 4, 681279174);
|
|
6132
|
-
d = md5hh(d, a, b, c, x[i], 11, -358537222);
|
|
6133
|
-
c = md5hh(c, d, a, b, x[i + 3], 16, -722521979);
|
|
6134
|
-
b = md5hh(b, c, d, a, x[i + 6], 23, 76029189);
|
|
6135
|
-
a = md5hh(a, b, c, d, x[i + 9], 4, -640364487);
|
|
6136
|
-
d = md5hh(d, a, b, c, x[i + 12], 11, -421815835);
|
|
6137
|
-
c = md5hh(c, d, a, b, x[i + 15], 16, 530742520);
|
|
6138
|
-
b = md5hh(b, c, d, a, x[i + 2], 23, -995338651);
|
|
6139
|
-
a = md5ii(a, b, c, d, x[i], 6, -198630844);
|
|
6140
|
-
d = md5ii(d, a, b, c, x[i + 7], 10, 1126891415);
|
|
6141
|
-
c = md5ii(c, d, a, b, x[i + 14], 15, -1416354905);
|
|
6142
|
-
b = md5ii(b, c, d, a, x[i + 5], 21, -57434055);
|
|
6143
|
-
a = md5ii(a, b, c, d, x[i + 12], 6, 1700485571);
|
|
6144
|
-
d = md5ii(d, a, b, c, x[i + 3], 10, -1894986606);
|
|
6145
|
-
c = md5ii(c, d, a, b, x[i + 10], 15, -1051523);
|
|
6146
|
-
b = md5ii(b, c, d, a, x[i + 1], 21, -2054922799);
|
|
6147
|
-
a = md5ii(a, b, c, d, x[i + 8], 6, 1873313359);
|
|
6148
|
-
d = md5ii(d, a, b, c, x[i + 15], 10, -30611744);
|
|
6149
|
-
c = md5ii(c, d, a, b, x[i + 6], 15, -1560198380);
|
|
6150
|
-
b = md5ii(b, c, d, a, x[i + 13], 21, 1309151649);
|
|
6151
|
-
a = md5ii(a, b, c, d, x[i + 4], 6, -145523070);
|
|
6152
|
-
d = md5ii(d, a, b, c, x[i + 11], 10, -1120210379);
|
|
6153
|
-
c = md5ii(c, d, a, b, x[i + 2], 15, 718787259);
|
|
6154
|
-
b = md5ii(b, c, d, a, x[i + 9], 21, -343485551);
|
|
6155
|
-
a = safeAdd(a, olda);
|
|
6156
|
-
b = safeAdd(b, oldb);
|
|
6157
|
-
c = safeAdd(c, oldc);
|
|
6158
|
-
d = safeAdd(d, oldd);
|
|
6159
|
-
}
|
|
6160
|
-
return [a, b, c, d];
|
|
6161
|
-
}
|
|
6162
|
-
|
|
6163
|
-
/*
|
|
6164
|
-
* Convert an array bytes to an array of little-endian words
|
|
6165
|
-
* Characters >255 have their high-byte silently ignored.
|
|
6166
|
-
*/
|
|
6167
|
-
function bytesToWords(input) {
|
|
6168
|
-
if (input.length === 0) {
|
|
6169
|
-
return [];
|
|
6170
|
-
}
|
|
6171
|
-
var length8 = input.length * 8;
|
|
6172
|
-
var output = new Uint32Array(getOutputLength(length8));
|
|
6173
|
-
for (var i = 0; i < length8; i += 8) {
|
|
6174
|
-
output[i >> 5] |= (input[i / 8] & 0xff) << i % 32;
|
|
6175
|
-
}
|
|
6176
|
-
return output;
|
|
6177
|
-
}
|
|
6178
|
-
|
|
6179
|
-
/*
|
|
6180
|
-
* Add integers, wrapping at 2^32. This uses 16-bit operations internally
|
|
6181
|
-
* to work around bugs in some JS interpreters.
|
|
6182
|
-
*/
|
|
6183
|
-
function safeAdd(x, y) {
|
|
6184
|
-
var lsw = (x & 0xffff) + (y & 0xffff);
|
|
6185
|
-
var msw = (x >> 16) + (y >> 16) + (lsw >> 16);
|
|
6186
|
-
return msw << 16 | lsw & 0xffff;
|
|
6187
|
-
}
|
|
6188
|
-
|
|
6189
|
-
/*
|
|
6190
|
-
* Bitwise rotate a 32-bit number to the left.
|
|
6191
|
-
*/
|
|
6192
|
-
function bitRotateLeft(num, cnt) {
|
|
6193
|
-
return num << cnt | num >>> 32 - cnt;
|
|
6194
|
-
}
|
|
6195
|
-
|
|
6196
|
-
/*
|
|
6197
|
-
* These functions implement the four basic operations the algorithm uses.
|
|
6198
|
-
*/
|
|
6199
|
-
function md5cmn(q, a, b, x, s, t) {
|
|
6200
|
-
return safeAdd(bitRotateLeft(safeAdd(safeAdd(a, q), safeAdd(x, t)), s), b);
|
|
6201
|
-
}
|
|
6202
|
-
function md5ff(a, b, c, d, x, s, t) {
|
|
6203
|
-
return md5cmn(b & c | ~b & d, a, b, x, s, t);
|
|
6204
|
-
}
|
|
6205
|
-
function md5gg(a, b, c, d, x, s, t) {
|
|
6206
|
-
return md5cmn(b & d | c & ~d, a, b, x, s, t);
|
|
6207
|
-
}
|
|
6208
|
-
function md5hh(a, b, c, d, x, s, t) {
|
|
6209
|
-
return md5cmn(b ^ c ^ d, a, b, x, s, t);
|
|
6210
|
-
}
|
|
6211
|
-
function md5ii(a, b, c, d, x, s, t) {
|
|
6212
|
-
return md5cmn(c ^ (b | ~d), a, b, x, s, t);
|
|
6213
|
-
}
|
|
6214
|
-
var _default = exports["default"] = md5;
|
|
6215
|
-
|
|
6216
|
-
/***/ }),
|
|
6217
|
-
|
|
6218
|
-
/***/ "./node_modules/uuid/dist/commonjs-browser/native.js":
|
|
6219
|
-
/*!***********************************************************!*\
|
|
6220
|
-
!*** ./node_modules/uuid/dist/commonjs-browser/native.js ***!
|
|
6221
|
-
\***********************************************************/
|
|
6222
|
-
/***/ ((__unused_webpack_module, exports) => {
|
|
6223
|
-
|
|
6224
|
-
|
|
6225
|
-
|
|
6226
|
-
Object.defineProperty(exports, "__esModule", ({
|
|
6227
|
-
value: true
|
|
6228
|
-
}));
|
|
6229
|
-
exports["default"] = void 0;
|
|
6230
|
-
var randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
|
|
6231
|
-
var _default = exports["default"] = {
|
|
6232
|
-
randomUUID
|
|
6233
|
-
};
|
|
6234
|
-
|
|
6235
|
-
/***/ }),
|
|
6236
|
-
|
|
6237
|
-
/***/ "./node_modules/uuid/dist/commonjs-browser/nil.js":
|
|
6238
|
-
/*!********************************************************!*\
|
|
6239
|
-
!*** ./node_modules/uuid/dist/commonjs-browser/nil.js ***!
|
|
6240
|
-
\********************************************************/
|
|
6241
|
-
/***/ ((__unused_webpack_module, exports) => {
|
|
6242
|
-
|
|
6243
|
-
|
|
6244
|
-
|
|
6245
|
-
Object.defineProperty(exports, "__esModule", ({
|
|
6246
|
-
value: true
|
|
6247
|
-
}));
|
|
6248
|
-
exports["default"] = void 0;
|
|
6249
|
-
var _default = exports["default"] = '00000000-0000-0000-0000-000000000000';
|
|
6250
|
-
|
|
6251
|
-
/***/ }),
|
|
6252
|
-
|
|
6253
|
-
/***/ "./node_modules/uuid/dist/commonjs-browser/parse.js":
|
|
6254
|
-
/*!**********************************************************!*\
|
|
6255
|
-
!*** ./node_modules/uuid/dist/commonjs-browser/parse.js ***!
|
|
6256
|
-
\**********************************************************/
|
|
6257
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
6258
|
-
|
|
6259
|
-
|
|
6260
|
-
|
|
6261
|
-
Object.defineProperty(exports, "__esModule", ({
|
|
6262
|
-
value: true
|
|
6263
|
-
}));
|
|
6264
|
-
exports["default"] = void 0;
|
|
6265
|
-
var _validate = _interopRequireDefault(__webpack_require__(/*! ./validate.js */ "./node_modules/uuid/dist/commonjs-browser/validate.js"));
|
|
6266
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
6267
|
-
function parse(uuid) {
|
|
6268
|
-
if (!(0, _validate.default)(uuid)) {
|
|
6269
|
-
throw TypeError('Invalid UUID');
|
|
6270
|
-
}
|
|
6271
|
-
var v;
|
|
6272
|
-
var arr = new Uint8Array(16);
|
|
6273
|
-
|
|
6274
|
-
// Parse ########-....-....-....-............
|
|
6275
|
-
arr[0] = (v = parseInt(uuid.slice(0, 8), 16)) >>> 24;
|
|
6276
|
-
arr[1] = v >>> 16 & 0xff;
|
|
6277
|
-
arr[2] = v >>> 8 & 0xff;
|
|
6278
|
-
arr[3] = v & 0xff;
|
|
6279
|
-
|
|
6280
|
-
// Parse ........-####-....-....-............
|
|
6281
|
-
arr[4] = (v = parseInt(uuid.slice(9, 13), 16)) >>> 8;
|
|
6282
|
-
arr[5] = v & 0xff;
|
|
6283
|
-
|
|
6284
|
-
// Parse ........-....-####-....-............
|
|
6285
|
-
arr[6] = (v = parseInt(uuid.slice(14, 18), 16)) >>> 8;
|
|
6286
|
-
arr[7] = v & 0xff;
|
|
6287
|
-
|
|
6288
|
-
// Parse ........-....-....-####-............
|
|
6289
|
-
arr[8] = (v = parseInt(uuid.slice(19, 23), 16)) >>> 8;
|
|
6290
|
-
arr[9] = v & 0xff;
|
|
6291
|
-
|
|
6292
|
-
// Parse ........-....-....-....-############
|
|
6293
|
-
// (Use "/" to avoid 32-bit truncation when bit-shifting high-order bytes)
|
|
6294
|
-
arr[10] = (v = parseInt(uuid.slice(24, 36), 16)) / 0x10000000000 & 0xff;
|
|
6295
|
-
arr[11] = v / 0x100000000 & 0xff;
|
|
6296
|
-
arr[12] = v >>> 24 & 0xff;
|
|
6297
|
-
arr[13] = v >>> 16 & 0xff;
|
|
6298
|
-
arr[14] = v >>> 8 & 0xff;
|
|
6299
|
-
arr[15] = v & 0xff;
|
|
6300
|
-
return arr;
|
|
6301
|
-
}
|
|
6302
|
-
var _default = exports["default"] = parse;
|
|
6303
|
-
|
|
6304
|
-
/***/ }),
|
|
6305
|
-
|
|
6306
|
-
/***/ "./node_modules/uuid/dist/commonjs-browser/regex.js":
|
|
6307
|
-
/*!**********************************************************!*\
|
|
6308
|
-
!*** ./node_modules/uuid/dist/commonjs-browser/regex.js ***!
|
|
6309
|
-
\**********************************************************/
|
|
6310
|
-
/***/ ((__unused_webpack_module, exports) => {
|
|
6311
|
-
|
|
6312
|
-
|
|
6313
|
-
|
|
6314
|
-
Object.defineProperty(exports, "__esModule", ({
|
|
6315
|
-
value: true
|
|
6316
|
-
}));
|
|
6317
|
-
exports["default"] = void 0;
|
|
6318
|
-
var _default = exports["default"] = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i;
|
|
6319
|
-
|
|
6320
|
-
/***/ }),
|
|
6321
|
-
|
|
6322
|
-
/***/ "./node_modules/uuid/dist/commonjs-browser/rng.js":
|
|
6323
|
-
/*!********************************************************!*\
|
|
6324
|
-
!*** ./node_modules/uuid/dist/commonjs-browser/rng.js ***!
|
|
6325
|
-
\********************************************************/
|
|
6326
|
-
/***/ ((__unused_webpack_module, exports) => {
|
|
6327
|
-
|
|
6328
|
-
|
|
6329
|
-
|
|
6330
|
-
Object.defineProperty(exports, "__esModule", ({
|
|
6331
|
-
value: true
|
|
6332
|
-
}));
|
|
6333
|
-
exports["default"] = rng;
|
|
6334
|
-
// Unique ID creation requires a high quality random # generator. In the browser we therefore
|
|
6335
|
-
// require the crypto API and do not support built-in fallback to lower quality random number
|
|
6336
|
-
// generators (like Math.random()).
|
|
6337
|
-
|
|
6338
|
-
var getRandomValues;
|
|
6339
|
-
var rnds8 = new Uint8Array(16);
|
|
6340
|
-
function rng() {
|
|
6341
|
-
// lazy load so that environments that need to polyfill have a chance to do so
|
|
6342
|
-
if (!getRandomValues) {
|
|
6343
|
-
// getRandomValues needs to be invoked in a context where "this" is a Crypto implementation.
|
|
6344
|
-
getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto);
|
|
6345
|
-
if (!getRandomValues) {
|
|
6346
|
-
throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');
|
|
6347
|
-
}
|
|
6348
|
-
}
|
|
6349
|
-
return getRandomValues(rnds8);
|
|
6350
|
-
}
|
|
6351
|
-
|
|
6352
|
-
/***/ }),
|
|
6353
|
-
|
|
6354
|
-
/***/ "./node_modules/uuid/dist/commonjs-browser/sha1.js":
|
|
6355
|
-
/*!*********************************************************!*\
|
|
6356
|
-
!*** ./node_modules/uuid/dist/commonjs-browser/sha1.js ***!
|
|
6357
|
-
\*********************************************************/
|
|
6358
|
-
/***/ ((__unused_webpack_module, exports) => {
|
|
6359
|
-
|
|
6360
|
-
|
|
6361
|
-
|
|
6362
|
-
Object.defineProperty(exports, "__esModule", ({
|
|
6363
|
-
value: true
|
|
6364
|
-
}));
|
|
6365
|
-
exports["default"] = void 0;
|
|
6366
|
-
// Adapted from Chris Veness' SHA1 code at
|
|
6367
|
-
// http://www.movable-type.co.uk/scripts/sha1.html
|
|
6368
|
-
function f(s, x, y, z) {
|
|
6369
|
-
switch (s) {
|
|
6370
|
-
case 0:
|
|
6371
|
-
return x & y ^ ~x & z;
|
|
6372
|
-
case 1:
|
|
6373
|
-
return x ^ y ^ z;
|
|
6374
|
-
case 2:
|
|
6375
|
-
return x & y ^ x & z ^ y & z;
|
|
6376
|
-
case 3:
|
|
6377
|
-
return x ^ y ^ z;
|
|
6378
|
-
}
|
|
6379
|
-
}
|
|
6380
|
-
function ROTL(x, n) {
|
|
6381
|
-
return x << n | x >>> 32 - n;
|
|
6382
|
-
}
|
|
6383
|
-
function sha1(bytes) {
|
|
6384
|
-
var K = [0x5a827999, 0x6ed9eba1, 0x8f1bbcdc, 0xca62c1d6];
|
|
6385
|
-
var H = [0x67452301, 0xefcdab89, 0x98badcfe, 0x10325476, 0xc3d2e1f0];
|
|
6386
|
-
if (typeof bytes === 'string') {
|
|
6387
|
-
var msg = unescape(encodeURIComponent(bytes)); // UTF8 escape
|
|
6388
|
-
|
|
6389
|
-
bytes = [];
|
|
6390
|
-
for (var i = 0; i < msg.length; ++i) {
|
|
6391
|
-
bytes.push(msg.charCodeAt(i));
|
|
6392
|
-
}
|
|
6393
|
-
} else if (!Array.isArray(bytes)) {
|
|
6394
|
-
// Convert Array-like to Array
|
|
6395
|
-
bytes = Array.prototype.slice.call(bytes);
|
|
6396
|
-
}
|
|
6397
|
-
bytes.push(0x80);
|
|
6398
|
-
var l = bytes.length / 4 + 2;
|
|
6399
|
-
var N = Math.ceil(l / 16);
|
|
6400
|
-
var M = new Array(N);
|
|
6401
|
-
for (var _i = 0; _i < N; ++_i) {
|
|
6402
|
-
var arr = new Uint32Array(16);
|
|
6403
|
-
for (var j = 0; j < 16; ++j) {
|
|
6404
|
-
arr[j] = bytes[_i * 64 + j * 4] << 24 | bytes[_i * 64 + j * 4 + 1] << 16 | bytes[_i * 64 + j * 4 + 2] << 8 | bytes[_i * 64 + j * 4 + 3];
|
|
6405
|
-
}
|
|
6406
|
-
M[_i] = arr;
|
|
6407
|
-
}
|
|
6408
|
-
M[N - 1][14] = (bytes.length - 1) * 8 / Math.pow(2, 32);
|
|
6409
|
-
M[N - 1][14] = Math.floor(M[N - 1][14]);
|
|
6410
|
-
M[N - 1][15] = (bytes.length - 1) * 8 & 0xffffffff;
|
|
6411
|
-
for (var _i2 = 0; _i2 < N; ++_i2) {
|
|
6412
|
-
var W = new Uint32Array(80);
|
|
6413
|
-
for (var t = 0; t < 16; ++t) {
|
|
6414
|
-
W[t] = M[_i2][t];
|
|
6415
|
-
}
|
|
6416
|
-
for (var _t = 16; _t < 80; ++_t) {
|
|
6417
|
-
W[_t] = ROTL(W[_t - 3] ^ W[_t - 8] ^ W[_t - 14] ^ W[_t - 16], 1);
|
|
6418
|
-
}
|
|
6419
|
-
var a = H[0];
|
|
6420
|
-
var b = H[1];
|
|
6421
|
-
var c = H[2];
|
|
6422
|
-
var d = H[3];
|
|
6423
|
-
var e = H[4];
|
|
6424
|
-
for (var _t2 = 0; _t2 < 80; ++_t2) {
|
|
6425
|
-
var s = Math.floor(_t2 / 20);
|
|
6426
|
-
var T = ROTL(a, 5) + f(s, b, c, d) + e + K[s] + W[_t2] >>> 0;
|
|
6427
|
-
e = d;
|
|
6428
|
-
d = c;
|
|
6429
|
-
c = ROTL(b, 30) >>> 0;
|
|
6430
|
-
b = a;
|
|
6431
|
-
a = T;
|
|
6432
|
-
}
|
|
6433
|
-
H[0] = H[0] + a >>> 0;
|
|
6434
|
-
H[1] = H[1] + b >>> 0;
|
|
6435
|
-
H[2] = H[2] + c >>> 0;
|
|
6436
|
-
H[3] = H[3] + d >>> 0;
|
|
6437
|
-
H[4] = H[4] + e >>> 0;
|
|
6438
|
-
}
|
|
6439
|
-
return [H[0] >> 24 & 0xff, H[0] >> 16 & 0xff, H[0] >> 8 & 0xff, H[0] & 0xff, H[1] >> 24 & 0xff, H[1] >> 16 & 0xff, H[1] >> 8 & 0xff, H[1] & 0xff, H[2] >> 24 & 0xff, H[2] >> 16 & 0xff, H[2] >> 8 & 0xff, H[2] & 0xff, H[3] >> 24 & 0xff, H[3] >> 16 & 0xff, H[3] >> 8 & 0xff, H[3] & 0xff, H[4] >> 24 & 0xff, H[4] >> 16 & 0xff, H[4] >> 8 & 0xff, H[4] & 0xff];
|
|
6440
|
-
}
|
|
6441
|
-
var _default = exports["default"] = sha1;
|
|
6442
|
-
|
|
6443
|
-
/***/ }),
|
|
6444
|
-
|
|
6445
|
-
/***/ "./node_modules/uuid/dist/commonjs-browser/stringify.js":
|
|
6446
|
-
/*!**************************************************************!*\
|
|
6447
|
-
!*** ./node_modules/uuid/dist/commonjs-browser/stringify.js ***!
|
|
6448
|
-
\**************************************************************/
|
|
6449
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
6450
|
-
|
|
6451
|
-
|
|
6452
|
-
|
|
6453
|
-
Object.defineProperty(exports, "__esModule", ({
|
|
6454
|
-
value: true
|
|
6455
|
-
}));
|
|
6456
|
-
exports["default"] = void 0;
|
|
6457
|
-
exports.unsafeStringify = unsafeStringify;
|
|
6458
|
-
var _validate = _interopRequireDefault(__webpack_require__(/*! ./validate.js */ "./node_modules/uuid/dist/commonjs-browser/validate.js"));
|
|
6459
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
6460
|
-
/**
|
|
6461
|
-
* Convert array of 16 byte values to UUID string format of the form:
|
|
6462
|
-
* XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
|
|
6463
|
-
*/
|
|
6464
|
-
var byteToHex = [];
|
|
6465
|
-
for (var i = 0; i < 256; ++i) {
|
|
6466
|
-
byteToHex.push((i + 0x100).toString(16).slice(1));
|
|
6467
|
-
}
|
|
6468
|
-
function unsafeStringify(arr, offset = 0) {
|
|
6469
|
-
// Note: Be careful editing this code! It's been tuned for performance
|
|
6470
|
-
// and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
|
|
6471
|
-
//
|
|
6472
|
-
// Note to future-self: No, you can't remove the `toLowerCase()` call.
|
|
6473
|
-
// REF: https://github.com/uuidjs/uuid/pull/677#issuecomment-1757351351
|
|
6474
|
-
return (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase();
|
|
6475
|
-
}
|
|
6476
|
-
function stringify(arr, offset = 0) {
|
|
6477
|
-
var uuid = unsafeStringify(arr, offset);
|
|
6478
|
-
// Consistency check for valid UUID. If this throws, it's likely due to one
|
|
6479
|
-
// of the following:
|
|
6480
|
-
// - One or more input array values don't map to a hex octet (leading to
|
|
6481
|
-
// "undefined" in the uuid)
|
|
6482
|
-
// - Invalid input values for the RFC `version` or `variant` fields
|
|
6483
|
-
if (!(0, _validate.default)(uuid)) {
|
|
6484
|
-
throw TypeError('Stringified UUID is invalid');
|
|
6485
|
-
}
|
|
6486
|
-
return uuid;
|
|
6487
|
-
}
|
|
6488
|
-
var _default = exports["default"] = stringify;
|
|
6489
|
-
|
|
6490
|
-
/***/ }),
|
|
6491
|
-
|
|
6492
|
-
/***/ "./node_modules/uuid/dist/commonjs-browser/v1.js":
|
|
6493
|
-
/*!*******************************************************!*\
|
|
6494
|
-
!*** ./node_modules/uuid/dist/commonjs-browser/v1.js ***!
|
|
6495
|
-
\*******************************************************/
|
|
6496
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
6497
|
-
|
|
6498
|
-
|
|
6499
|
-
|
|
6500
|
-
Object.defineProperty(exports, "__esModule", ({
|
|
6501
|
-
value: true
|
|
6502
|
-
}));
|
|
6503
|
-
exports["default"] = void 0;
|
|
6504
|
-
var _rng = _interopRequireDefault(__webpack_require__(/*! ./rng.js */ "./node_modules/uuid/dist/commonjs-browser/rng.js"));
|
|
6505
|
-
var _stringify = __webpack_require__(/*! ./stringify.js */ "./node_modules/uuid/dist/commonjs-browser/stringify.js");
|
|
6506
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
6507
|
-
// **`v1()` - Generate time-based UUID**
|
|
6508
|
-
//
|
|
6509
|
-
// Inspired by https://github.com/LiosK/UUID.js
|
|
6510
|
-
// and http://docs.python.org/library/uuid.html
|
|
6511
|
-
|
|
6512
|
-
var _nodeId;
|
|
6513
|
-
var _clockseq;
|
|
6514
|
-
|
|
6515
|
-
// Previous uuid creation time
|
|
6516
|
-
var _lastMSecs = 0;
|
|
6517
|
-
var _lastNSecs = 0;
|
|
6518
|
-
|
|
6519
|
-
// See https://github.com/uuidjs/uuid for API details
|
|
6520
|
-
function v1(options, buf, offset) {
|
|
6521
|
-
var i = buf && offset || 0;
|
|
6522
|
-
var b = buf || new Array(16);
|
|
6523
|
-
options = options || {};
|
|
6524
|
-
var node = options.node;
|
|
6525
|
-
var clockseq = options.clockseq;
|
|
6526
|
-
|
|
6527
|
-
// v1 only: Use cached `node` and `clockseq` values
|
|
6528
|
-
if (!options._v6) {
|
|
6529
|
-
if (!node) {
|
|
6530
|
-
node = _nodeId;
|
|
6531
|
-
}
|
|
6532
|
-
if (clockseq == null) {
|
|
6533
|
-
clockseq = _clockseq;
|
|
6534
|
-
}
|
|
6535
|
-
}
|
|
6536
|
-
|
|
6537
|
-
// Handle cases where we need entropy. We do this lazily to minimize issues
|
|
6538
|
-
// related to insufficient system entropy. See #189
|
|
6539
|
-
if (node == null || clockseq == null) {
|
|
6540
|
-
var seedBytes = options.random || (options.rng || _rng.default)();
|
|
6541
|
-
|
|
6542
|
-
// Randomize node
|
|
6543
|
-
if (node == null) {
|
|
6544
|
-
node = [seedBytes[0], seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]];
|
|
6545
|
-
|
|
6546
|
-
// v1 only: cache node value for reuse
|
|
6547
|
-
if (!_nodeId && !options._v6) {
|
|
6548
|
-
// per RFC4122 4.5: Set MAC multicast bit (v1 only)
|
|
6549
|
-
node[0] |= 0x01; // Set multicast bit
|
|
6550
|
-
|
|
6551
|
-
_nodeId = node;
|
|
6552
|
-
}
|
|
6553
|
-
}
|
|
6554
|
-
|
|
6555
|
-
// Randomize clockseq
|
|
6556
|
-
if (clockseq == null) {
|
|
6557
|
-
// Per 4.2.2, randomize (14 bit) clockseq
|
|
6558
|
-
clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 0x3fff;
|
|
6559
|
-
if (_clockseq === undefined && !options._v6) {
|
|
6560
|
-
_clockseq = clockseq;
|
|
6561
|
-
}
|
|
6562
|
-
}
|
|
6563
|
-
}
|
|
6564
|
-
|
|
6565
|
-
// v1 & v6 timestamps are 100 nano-second units since the Gregorian epoch,
|
|
6566
|
-
// (1582-10-15 00:00). JSNumbers aren't precise enough for this, so time is
|
|
6567
|
-
// handled internally as 'msecs' (integer milliseconds) and 'nsecs'
|
|
6568
|
-
// (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00.
|
|
6569
|
-
var msecs = options.msecs !== undefined ? options.msecs : Date.now();
|
|
6570
|
-
|
|
6571
|
-
// Per 4.2.1.2, use count of uuid's generated during the current clock
|
|
6572
|
-
// cycle to simulate higher resolution clock
|
|
6573
|
-
var nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1;
|
|
6574
|
-
|
|
6575
|
-
// Time since last uuid creation (in msecs)
|
|
6576
|
-
var dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 10000;
|
|
6577
|
-
|
|
6578
|
-
// Per 4.2.1.2, Bump clockseq on clock regression
|
|
6579
|
-
if (dt < 0 && options.clockseq === undefined) {
|
|
6580
|
-
clockseq = clockseq + 1 & 0x3fff;
|
|
6581
|
-
}
|
|
6582
|
-
|
|
6583
|
-
// Reset nsecs if clock regresses (new clockseq) or we've moved onto a new
|
|
6584
|
-
// time interval
|
|
6585
|
-
if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === undefined) {
|
|
6586
|
-
nsecs = 0;
|
|
6587
|
-
}
|
|
6588
|
-
|
|
6589
|
-
// Per 4.2.1.2 Throw error if too many uuids are requested
|
|
6590
|
-
if (nsecs >= 10000) {
|
|
6591
|
-
throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");
|
|
6592
|
-
}
|
|
6593
|
-
_lastMSecs = msecs;
|
|
6594
|
-
_lastNSecs = nsecs;
|
|
6595
|
-
_clockseq = clockseq;
|
|
6596
|
-
|
|
6597
|
-
// Per 4.1.4 - Convert from unix epoch to Gregorian epoch
|
|
6598
|
-
msecs += 12219292800000;
|
|
6599
|
-
|
|
6600
|
-
// `time_low`
|
|
6601
|
-
var tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000;
|
|
6602
|
-
b[i++] = tl >>> 24 & 0xff;
|
|
6603
|
-
b[i++] = tl >>> 16 & 0xff;
|
|
6604
|
-
b[i++] = tl >>> 8 & 0xff;
|
|
6605
|
-
b[i++] = tl & 0xff;
|
|
6606
|
-
|
|
6607
|
-
// `time_mid`
|
|
6608
|
-
var tmh = msecs / 0x100000000 * 10000 & 0xfffffff;
|
|
6609
|
-
b[i++] = tmh >>> 8 & 0xff;
|
|
6610
|
-
b[i++] = tmh & 0xff;
|
|
6611
|
-
|
|
6612
|
-
// `time_high_and_version`
|
|
6613
|
-
b[i++] = tmh >>> 24 & 0xf | 0x10; // include version
|
|
6614
|
-
b[i++] = tmh >>> 16 & 0xff;
|
|
6615
|
-
|
|
6616
|
-
// `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant)
|
|
6617
|
-
b[i++] = clockseq >>> 8 | 0x80;
|
|
6618
|
-
|
|
6619
|
-
// `clock_seq_low`
|
|
6620
|
-
b[i++] = clockseq & 0xff;
|
|
6621
|
-
|
|
6622
|
-
// `node`
|
|
6623
|
-
for (var n = 0; n < 6; ++n) {
|
|
6624
|
-
b[i + n] = node[n];
|
|
6625
|
-
}
|
|
6626
|
-
return buf || (0, _stringify.unsafeStringify)(b);
|
|
6627
|
-
}
|
|
6628
|
-
var _default = exports["default"] = v1;
|
|
6629
|
-
|
|
6630
|
-
/***/ }),
|
|
6631
|
-
|
|
6632
|
-
/***/ "./node_modules/uuid/dist/commonjs-browser/v1ToV6.js":
|
|
6633
|
-
/*!***********************************************************!*\
|
|
6634
|
-
!*** ./node_modules/uuid/dist/commonjs-browser/v1ToV6.js ***!
|
|
6635
|
-
\***********************************************************/
|
|
6636
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
6637
|
-
|
|
6638
|
-
|
|
6639
|
-
|
|
6640
|
-
Object.defineProperty(exports, "__esModule", ({
|
|
6641
|
-
value: true
|
|
6642
|
-
}));
|
|
6643
|
-
exports["default"] = v1ToV6;
|
|
6644
|
-
var _parse = _interopRequireDefault(__webpack_require__(/*! ./parse.js */ "./node_modules/uuid/dist/commonjs-browser/parse.js"));
|
|
6645
|
-
var _stringify = __webpack_require__(/*! ./stringify.js */ "./node_modules/uuid/dist/commonjs-browser/stringify.js");
|
|
6646
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
6647
|
-
/**
|
|
6648
|
-
* Convert a v1 UUID to a v6 UUID
|
|
6649
|
-
*
|
|
6650
|
-
* @param {string|Uint8Array} uuid - The v1 UUID to convert to v6
|
|
6651
|
-
* @returns {string|Uint8Array} The v6 UUID as the same type as the `uuid` arg
|
|
6652
|
-
* (string or Uint8Array)
|
|
6653
|
-
*/
|
|
6654
|
-
function v1ToV6(uuid) {
|
|
6655
|
-
var v1Bytes = typeof uuid === 'string' ? (0, _parse.default)(uuid) : uuid;
|
|
6656
|
-
var v6Bytes = _v1ToV6(v1Bytes);
|
|
6657
|
-
return typeof uuid === 'string' ? (0, _stringify.unsafeStringify)(v6Bytes) : v6Bytes;
|
|
6658
|
-
}
|
|
6659
|
-
|
|
6660
|
-
// Do the field transformation needed for v1 -> v6
|
|
6661
|
-
function _v1ToV6(v1Bytes, randomize = false) {
|
|
6662
|
-
return Uint8Array.of((v1Bytes[6] & 0x0f) << 4 | v1Bytes[7] >> 4 & 0x0f, (v1Bytes[7] & 0x0f) << 4 | (v1Bytes[4] & 0xf0) >> 4, (v1Bytes[4] & 0x0f) << 4 | (v1Bytes[5] & 0xf0) >> 4, (v1Bytes[5] & 0x0f) << 4 | (v1Bytes[0] & 0xf0) >> 4, (v1Bytes[0] & 0x0f) << 4 | (v1Bytes[1] & 0xf0) >> 4, (v1Bytes[1] & 0x0f) << 4 | (v1Bytes[2] & 0xf0) >> 4, 0x60 | v1Bytes[2] & 0x0f, v1Bytes[3], v1Bytes[8], v1Bytes[9], v1Bytes[10], v1Bytes[11], v1Bytes[12], v1Bytes[13], v1Bytes[14], v1Bytes[15]);
|
|
6663
|
-
}
|
|
6664
|
-
|
|
6665
|
-
/***/ }),
|
|
6666
|
-
|
|
6667
|
-
/***/ "./node_modules/uuid/dist/commonjs-browser/v3.js":
|
|
6668
|
-
/*!*******************************************************!*\
|
|
6669
|
-
!*** ./node_modules/uuid/dist/commonjs-browser/v3.js ***!
|
|
6670
|
-
\*******************************************************/
|
|
6671
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
6672
|
-
|
|
6673
|
-
|
|
6674
|
-
|
|
6675
|
-
Object.defineProperty(exports, "__esModule", ({
|
|
6676
|
-
value: true
|
|
6677
|
-
}));
|
|
6678
|
-
exports["default"] = void 0;
|
|
6679
|
-
var _v = _interopRequireDefault(__webpack_require__(/*! ./v35.js */ "./node_modules/uuid/dist/commonjs-browser/v35.js"));
|
|
6680
|
-
var _md = _interopRequireDefault(__webpack_require__(/*! ./md5.js */ "./node_modules/uuid/dist/commonjs-browser/md5.js"));
|
|
6681
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
6682
|
-
var v3 = (0, _v.default)('v3', 0x30, _md.default);
|
|
6683
|
-
var _default = exports["default"] = v3;
|
|
6684
|
-
|
|
6685
|
-
/***/ }),
|
|
6686
|
-
|
|
6687
|
-
/***/ "./node_modules/uuid/dist/commonjs-browser/v35.js":
|
|
6688
|
-
/*!********************************************************!*\
|
|
6689
|
-
!*** ./node_modules/uuid/dist/commonjs-browser/v35.js ***!
|
|
6690
|
-
\********************************************************/
|
|
6691
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
6692
|
-
|
|
6693
|
-
|
|
6694
|
-
|
|
6695
|
-
Object.defineProperty(exports, "__esModule", ({
|
|
6696
|
-
value: true
|
|
6697
|
-
}));
|
|
6698
|
-
exports.URL = exports.DNS = void 0;
|
|
6699
|
-
exports["default"] = v35;
|
|
6700
|
-
var _stringify = __webpack_require__(/*! ./stringify.js */ "./node_modules/uuid/dist/commonjs-browser/stringify.js");
|
|
6701
|
-
var _parse = _interopRequireDefault(__webpack_require__(/*! ./parse.js */ "./node_modules/uuid/dist/commonjs-browser/parse.js"));
|
|
6702
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
6703
|
-
function stringToBytes(str) {
|
|
6704
|
-
str = unescape(encodeURIComponent(str)); // UTF8 escape
|
|
6705
|
-
|
|
6706
|
-
var bytes = [];
|
|
6707
|
-
for (var i = 0; i < str.length; ++i) {
|
|
6708
|
-
bytes.push(str.charCodeAt(i));
|
|
6709
|
-
}
|
|
6710
|
-
return bytes;
|
|
6711
|
-
}
|
|
6712
|
-
var DNS = exports.DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8';
|
|
6713
|
-
var URL = exports.URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8';
|
|
6714
|
-
function v35(name, version, hashfunc) {
|
|
6715
|
-
function generateUUID(value, namespace, buf, offset) {
|
|
6716
|
-
var _namespace;
|
|
6717
|
-
if (typeof value === 'string') {
|
|
6718
|
-
value = stringToBytes(value);
|
|
6719
|
-
}
|
|
6720
|
-
if (typeof namespace === 'string') {
|
|
6721
|
-
namespace = (0, _parse.default)(namespace);
|
|
6722
|
-
}
|
|
6723
|
-
if (((_namespace = namespace) === null || _namespace === void 0 ? void 0 : _namespace.length) !== 16) {
|
|
6724
|
-
throw TypeError('Namespace must be array-like (16 iterable integer values, 0-255)');
|
|
6725
|
-
}
|
|
6726
|
-
|
|
6727
|
-
// Compute hash of namespace and value, Per 4.3
|
|
6728
|
-
// Future: Use spread syntax when supported on all platforms, e.g. `bytes =
|
|
6729
|
-
// hashfunc([...namespace, ... value])`
|
|
6730
|
-
var bytes = new Uint8Array(16 + value.length);
|
|
6731
|
-
bytes.set(namespace);
|
|
6732
|
-
bytes.set(value, namespace.length);
|
|
6733
|
-
bytes = hashfunc(bytes);
|
|
6734
|
-
bytes[6] = bytes[6] & 0x0f | version;
|
|
6735
|
-
bytes[8] = bytes[8] & 0x3f | 0x80;
|
|
6736
|
-
if (buf) {
|
|
6737
|
-
offset = offset || 0;
|
|
6738
|
-
for (var i = 0; i < 16; ++i) {
|
|
6739
|
-
buf[offset + i] = bytes[i];
|
|
6740
|
-
}
|
|
6741
|
-
return buf;
|
|
4891
|
+
/**
|
|
4892
|
+
* Gets response for getting single taxonomy item
|
|
4893
|
+
* @param data Response data
|
|
4894
|
+
*/
|
|
4895
|
+
viewTaxonomyResponse(data) {
|
|
4896
|
+
return {
|
|
4897
|
+
taxonomy: this.taxonomyMapper.mapTaxonomy(data.system, data.terms)
|
|
4898
|
+
};
|
|
6742
4899
|
}
|
|
6743
|
-
|
|
6744
|
-
|
|
6745
|
-
|
|
6746
|
-
|
|
6747
|
-
|
|
6748
|
-
|
|
6749
|
-
|
|
6750
|
-
|
|
6751
|
-
|
|
6752
|
-
|
|
6753
|
-
|
|
6754
|
-
|
|
6755
|
-
|
|
6756
|
-
|
|
6757
|
-
|
|
6758
|
-
|
|
6759
|
-
|
|
6760
|
-
|
|
6761
|
-
|
|
6762
|
-
|
|
6763
|
-
|
|
6764
|
-
|
|
6765
|
-
|
|
6766
|
-
|
|
6767
|
-
|
|
6768
|
-
|
|
6769
|
-
}
|
|
6770
|
-
|
|
6771
|
-
var
|
|
6772
|
-
|
|
6773
|
-
|
|
6774
|
-
|
|
6775
|
-
|
|
6776
|
-
|
|
6777
|
-
|
|
6778
|
-
|
|
6779
|
-
options = options || {};
|
|
6780
|
-
var rnds = options.random || (options.rng || _rng.default)();
|
|
6781
|
-
|
|
6782
|
-
// Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
|
|
6783
|
-
rnds[6] = rnds[6] & 0x0f | 0x40;
|
|
6784
|
-
rnds[8] = rnds[8] & 0x3f | 0x80;
|
|
6785
|
-
|
|
6786
|
-
// Copy bytes to buffer, if provided
|
|
6787
|
-
if (buf) {
|
|
6788
|
-
offset = offset || 0;
|
|
6789
|
-
for (var i = 0; i < 16; ++i) {
|
|
6790
|
-
buf[offset + i] = rnds[i];
|
|
4900
|
+
/**
|
|
4901
|
+
* Gets response for getting multiples taxonomies
|
|
4902
|
+
* @param data Response data
|
|
4903
|
+
*/
|
|
4904
|
+
listTaxonomiesResponse(data) {
|
|
4905
|
+
return {
|
|
4906
|
+
items: this.taxonomyMapper.mapTaxonomies(data.taxonomies),
|
|
4907
|
+
pagination: this.mapPagination(data.pagination)
|
|
4908
|
+
};
|
|
4909
|
+
}
|
|
4910
|
+
/**
|
|
4911
|
+
* Gets response for getting single content type element
|
|
4912
|
+
* @param data Response data
|
|
4913
|
+
*/
|
|
4914
|
+
viewContentTypeElementResponse(data) {
|
|
4915
|
+
return this.genericElementMapper.mapElement(data);
|
|
4916
|
+
}
|
|
4917
|
+
initializeContentSync(data) {
|
|
4918
|
+
return {
|
|
4919
|
+
items: data.items.map((m) => this.syncMapper.mapContentItemDelta(m))
|
|
4920
|
+
};
|
|
4921
|
+
}
|
|
4922
|
+
syncChanges(data) {
|
|
4923
|
+
return {
|
|
4924
|
+
items: data.items.map((m) => this.syncMapper.mapContentItemDelta(m))
|
|
4925
|
+
};
|
|
4926
|
+
}
|
|
4927
|
+
mapPagination(paginationContract) {
|
|
4928
|
+
var _a;
|
|
4929
|
+
return {
|
|
4930
|
+
skip: paginationContract.skip,
|
|
4931
|
+
count: paginationContract.count,
|
|
4932
|
+
limit: paginationContract.limit,
|
|
4933
|
+
nextPage: paginationContract.next_page,
|
|
4934
|
+
totalCount: (_a = paginationContract.total_count) !== null && _a !== void 0 ? _a : null
|
|
4935
|
+
};
|
|
6791
4936
|
}
|
|
6792
|
-
return buf;
|
|
6793
|
-
}
|
|
6794
|
-
return (0, _stringify.unsafeStringify)(rnds);
|
|
6795
4937
|
}
|
|
6796
|
-
|
|
6797
|
-
|
|
6798
|
-
/***/ }),
|
|
6799
|
-
|
|
6800
|
-
/***/ "./node_modules/uuid/dist/commonjs-browser/v5.js":
|
|
6801
|
-
/*!*******************************************************!*\
|
|
6802
|
-
!*** ./node_modules/uuid/dist/commonjs-browser/v5.js ***!
|
|
6803
|
-
\*******************************************************/
|
|
6804
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
6805
|
-
|
|
6806
|
-
|
|
4938
|
+
exports.MappingService = MappingService;
|
|
6807
4939
|
|
|
6808
|
-
Object.defineProperty(exports, "__esModule", ({
|
|
6809
|
-
value: true
|
|
6810
|
-
}));
|
|
6811
|
-
exports["default"] = void 0;
|
|
6812
|
-
var _v = _interopRequireDefault(__webpack_require__(/*! ./v35.js */ "./node_modules/uuid/dist/commonjs-browser/v35.js"));
|
|
6813
|
-
var _sha = _interopRequireDefault(__webpack_require__(/*! ./sha1.js */ "./node_modules/uuid/dist/commonjs-browser/sha1.js"));
|
|
6814
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
6815
|
-
var v5 = (0, _v.default)('v5', 0x50, _sha.default);
|
|
6816
|
-
var _default = exports["default"] = v5;
|
|
6817
4940
|
|
|
6818
4941
|
/***/ }),
|
|
6819
4942
|
|
|
6820
|
-
/***/ "./
|
|
6821
|
-
|
|
6822
|
-
!*** ./
|
|
6823
|
-
|
|
6824
|
-
/***/ ((__unused_webpack_module, exports
|
|
6825
|
-
|
|
4943
|
+
/***/ "./lib/utilities/codename.helper.ts":
|
|
4944
|
+
/*!******************************************!*\
|
|
4945
|
+
!*** ./lib/utilities/codename.helper.ts ***!
|
|
4946
|
+
\******************************************/
|
|
4947
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
6826
4948
|
|
|
6827
4949
|
|
|
6828
|
-
Object.defineProperty(exports, "__esModule", ({
|
|
6829
|
-
|
|
6830
|
-
|
|
6831
|
-
|
|
6832
|
-
|
|
6833
|
-
|
|
6834
|
-
|
|
6835
|
-
|
|
6836
|
-
|
|
6837
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6838
|
-
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
6839
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
6840
|
-
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
6841
|
-
/**
|
|
6842
|
-
*
|
|
6843
|
-
* @param {object} options
|
|
6844
|
-
* @param {Uint8Array=} buf
|
|
6845
|
-
* @param {number=} offset
|
|
6846
|
-
* @returns
|
|
6847
|
-
*/
|
|
6848
|
-
function v6(options = {}, buf, offset = 0) {
|
|
6849
|
-
// v6 is v1 with different field layout, so we start with a v1 UUID, albeit
|
|
6850
|
-
// with slightly different behavior around how the clock_seq and node fields
|
|
6851
|
-
// are randomized, which is why we call v1 with _v6: true.
|
|
6852
|
-
var bytes = (0, _v.default)(_objectSpread(_objectSpread({}, options), {}, {
|
|
6853
|
-
_v6: true
|
|
6854
|
-
}), new Uint8Array(16));
|
|
6855
|
-
|
|
6856
|
-
// Reorder the fields to v6 layout.
|
|
6857
|
-
bytes = (0, _v1ToV.default)(bytes);
|
|
6858
|
-
|
|
6859
|
-
// Return as a byte array if requested
|
|
6860
|
-
if (buf) {
|
|
6861
|
-
for (var i = 0; i < 16; i++) {
|
|
6862
|
-
buf[offset + i] = bytes[i];
|
|
6863
|
-
}
|
|
6864
|
-
return buf;
|
|
6865
|
-
}
|
|
6866
|
-
return (0, _stringify.unsafeStringify)(bytes);
|
|
4950
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
4951
|
+
exports.codenameHelper = exports.CodenameHelper = void 0;
|
|
4952
|
+
class CodenameHelper {
|
|
4953
|
+
/**
|
|
4954
|
+
* This is used to prevent errors caused by reserved names in content item codename (e.g. 'constructor')
|
|
4955
|
+
*/
|
|
4956
|
+
escapeCodenameInCodenameIndexer(codename) {
|
|
4957
|
+
return `_${codename}`;
|
|
4958
|
+
}
|
|
6867
4959
|
}
|
|
4960
|
+
exports.CodenameHelper = CodenameHelper;
|
|
4961
|
+
exports.codenameHelper = new CodenameHelper();
|
|
6868
4962
|
|
|
6869
|
-
/***/ }),
|
|
6870
4963
|
|
|
6871
|
-
/***/
|
|
6872
|
-
/*!***********************************************************!*\
|
|
6873
|
-
!*** ./node_modules/uuid/dist/commonjs-browser/v6ToV1.js ***!
|
|
6874
|
-
\***********************************************************/
|
|
6875
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
4964
|
+
/***/ }),
|
|
6876
4965
|
|
|
4966
|
+
/***/ "./lib/utilities/delivery-url.helper.ts":
|
|
4967
|
+
/*!**********************************************!*\
|
|
4968
|
+
!*** ./lib/utilities/delivery-url.helper.ts ***!
|
|
4969
|
+
\**********************************************/
|
|
4970
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
6877
4971
|
|
|
6878
4972
|
|
|
6879
|
-
Object.defineProperty(exports, "__esModule", ({
|
|
6880
|
-
|
|
6881
|
-
|
|
6882
|
-
|
|
6883
|
-
|
|
6884
|
-
|
|
6885
|
-
|
|
6886
|
-
|
|
6887
|
-
|
|
6888
|
-
*
|
|
6889
|
-
* @param {string|Uint8Array} uuid - The v6 UUID to convert to v6
|
|
6890
|
-
* @returns {string|Uint8Array} The v1 UUID as the same type as the `uuid` arg
|
|
6891
|
-
* (string or Uint8Array)
|
|
6892
|
-
*/
|
|
6893
|
-
function v6ToV1(uuid) {
|
|
6894
|
-
var v6Bytes = typeof uuid === 'string' ? (0, _parse.default)(uuid) : uuid;
|
|
6895
|
-
var v1Bytes = _v6ToV1(v6Bytes);
|
|
6896
|
-
return typeof uuid === 'string' ? (0, _stringify.unsafeStringify)(v1Bytes) : v1Bytes;
|
|
4973
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
4974
|
+
exports.deliveryUrlHelper = exports.DeliveryUrlHelper = void 0;
|
|
4975
|
+
class DeliveryUrlHelper {
|
|
4976
|
+
replaceAssetDomain(originalAssetUrl, customDomain) {
|
|
4977
|
+
return `${customDomain}${this.getPathname(originalAssetUrl)}`;
|
|
4978
|
+
}
|
|
4979
|
+
getPathname(url) {
|
|
4980
|
+
return new URL(url).pathname;
|
|
4981
|
+
}
|
|
6897
4982
|
}
|
|
4983
|
+
exports.DeliveryUrlHelper = DeliveryUrlHelper;
|
|
4984
|
+
exports.deliveryUrlHelper = new DeliveryUrlHelper();
|
|
6898
4985
|
|
|
6899
|
-
// Do the field transformation needed for v6 -> v1
|
|
6900
|
-
function _v6ToV1(v6Bytes) {
|
|
6901
|
-
return Uint8Array.of((v6Bytes[3] & 0x0f) << 4 | v6Bytes[4] >> 4 & 0x0f, (v6Bytes[4] & 0x0f) << 4 | (v6Bytes[5] & 0xf0) >> 4, (v6Bytes[5] & 0x0f) << 4 | v6Bytes[6] & 0x0f, v6Bytes[7], (v6Bytes[1] & 0x0f) << 4 | (v6Bytes[2] & 0xf0) >> 4, (v6Bytes[2] & 0x0f) << 4 | (v6Bytes[3] & 0xf0) >> 4, 0x10 | (v6Bytes[0] & 0xf0) >> 4, (v6Bytes[0] & 0x0f) << 4 | (v6Bytes[1] & 0xf0) >> 4, v6Bytes[8], v6Bytes[9], v6Bytes[10], v6Bytes[11], v6Bytes[12], v6Bytes[13], v6Bytes[14], v6Bytes[15]);
|
|
6902
|
-
}
|
|
6903
4986
|
|
|
6904
4987
|
/***/ }),
|
|
6905
4988
|
|
|
6906
|
-
/***/ "./
|
|
6907
|
-
|
|
6908
|
-
!*** ./
|
|
6909
|
-
|
|
6910
|
-
/***/ ((__unused_webpack_module, exports
|
|
6911
|
-
|
|
6912
|
-
|
|
6913
|
-
|
|
6914
|
-
Object.defineProperty(exports, "__esModule", ({
|
|
6915
|
-
value: true
|
|
6916
|
-
}));
|
|
6917
|
-
exports["default"] = void 0;
|
|
6918
|
-
var _rng = _interopRequireDefault(__webpack_require__(/*! ./rng.js */ "./node_modules/uuid/dist/commonjs-browser/rng.js"));
|
|
6919
|
-
var _stringify = __webpack_require__(/*! ./stringify.js */ "./node_modules/uuid/dist/commonjs-browser/stringify.js");
|
|
6920
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
6921
|
-
/**
|
|
6922
|
-
* UUID V7 - Unix Epoch time-based UUID
|
|
6923
|
-
*
|
|
6924
|
-
* The IETF has published RFC9562, introducing 3 new UUID versions (6,7,8). This
|
|
6925
|
-
* implementation of V7 is based on the accepted, though not yet approved,
|
|
6926
|
-
* revisions.
|
|
6927
|
-
*
|
|
6928
|
-
* RFC 9562:https://www.rfc-editor.org/rfc/rfc9562.html Universally Unique
|
|
6929
|
-
* IDentifiers (UUIDs)
|
|
6930
|
-
|
|
6931
|
-
*
|
|
6932
|
-
* Sample V7 value:
|
|
6933
|
-
* https://www.rfc-editor.org/rfc/rfc9562.html#name-example-of-a-uuidv7-value
|
|
6934
|
-
*
|
|
6935
|
-
* Monotonic Bit Layout: RFC rfc9562.6.2 Method 1, Dedicated Counter Bits ref:
|
|
6936
|
-
* https://www.rfc-editor.org/rfc/rfc9562.html#section-6.2-5.1
|
|
6937
|
-
*
|
|
6938
|
-
* 0 1 2 3 0 1 2 3 4 5 6
|
|
6939
|
-
* 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
|
|
6940
|
-
* +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
|
6941
|
-
* | unix_ts_ms |
|
|
6942
|
-
* +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
|
6943
|
-
* | unix_ts_ms | ver | seq_hi |
|
|
6944
|
-
* +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
|
6945
|
-
* |var| seq_low | rand |
|
|
6946
|
-
* +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
|
6947
|
-
* | rand |
|
|
6948
|
-
* +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
|
6949
|
-
*
|
|
6950
|
-
* seq is a 31 bit serialized counter; comprised of 12 bit seq_hi and 19 bit
|
|
6951
|
-
* seq_low, and randomly initialized upon timestamp change. 31 bit counter size
|
|
6952
|
-
* was selected as any bitwise operations in node are done as _signed_ 32 bit
|
|
6953
|
-
* ints. we exclude the sign bit.
|
|
6954
|
-
*/
|
|
6955
|
-
|
|
6956
|
-
var _seqLow = null;
|
|
6957
|
-
var _seqHigh = null;
|
|
6958
|
-
var _msecs = 0;
|
|
6959
|
-
function v7(options, buf, offset) {
|
|
6960
|
-
options = options || {};
|
|
6961
|
-
|
|
6962
|
-
// initialize buffer and pointer
|
|
6963
|
-
var i = buf && offset || 0;
|
|
6964
|
-
var b = buf || new Uint8Array(16);
|
|
6965
|
-
|
|
6966
|
-
// rnds is Uint8Array(16) filled with random bytes
|
|
6967
|
-
var rnds = options.random || (options.rng || _rng.default)();
|
|
6968
|
-
|
|
6969
|
-
// milliseconds since unix epoch, 1970-01-01 00:00
|
|
6970
|
-
var msecs = options.msecs !== undefined ? options.msecs : Date.now();
|
|
6971
|
-
|
|
6972
|
-
// seq is user provided 31 bit counter
|
|
6973
|
-
var seq = options.seq !== undefined ? options.seq : null;
|
|
6974
|
-
|
|
6975
|
-
// initialize local seq high/low parts
|
|
6976
|
-
var seqHigh = _seqHigh;
|
|
6977
|
-
var seqLow = _seqLow;
|
|
4989
|
+
/***/ "./lib/utilities/enum.helper.ts":
|
|
4990
|
+
/*!**************************************!*\
|
|
4991
|
+
!*** ./lib/utilities/enum.helper.ts ***!
|
|
4992
|
+
\**************************************/
|
|
4993
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
6978
4994
|
|
|
6979
|
-
// check if clock has advanced and user has not provided msecs
|
|
6980
|
-
if (msecs > _msecs && options.msecs === undefined) {
|
|
6981
|
-
_msecs = msecs;
|
|
6982
4995
|
|
|
6983
|
-
|
|
6984
|
-
|
|
6985
|
-
|
|
6986
|
-
|
|
4996
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
4997
|
+
exports.enumHelper = exports.EnumHelper = void 0;
|
|
4998
|
+
class EnumHelper {
|
|
4999
|
+
getAllValues(T) {
|
|
5000
|
+
const allEnumValues = Object.keys(T).map((key) => T[key]);
|
|
5001
|
+
return allEnumValues;
|
|
6987
5002
|
}
|
|
6988
|
-
|
|
6989
|
-
|
|
6990
|
-
|
|
6991
|
-
|
|
6992
|
-
|
|
6993
|
-
|
|
6994
|
-
|
|
5003
|
+
getEnumFromValue(T, value) {
|
|
5004
|
+
try {
|
|
5005
|
+
if (!value) {
|
|
5006
|
+
return undefined;
|
|
5007
|
+
}
|
|
5008
|
+
// we can map back from index number directly
|
|
5009
|
+
if (this.isNumeric(value)) {
|
|
5010
|
+
return T[value];
|
|
5011
|
+
}
|
|
5012
|
+
// for strings, we need to compare each value separately
|
|
5013
|
+
const allEnumValues = this.getAllValues(T);
|
|
5014
|
+
const result = allEnumValues.find((m) => m.toLowerCase() === value.toString().toLowerCase());
|
|
5015
|
+
if (!result) {
|
|
5016
|
+
return undefined;
|
|
5017
|
+
}
|
|
5018
|
+
return result;
|
|
5019
|
+
}
|
|
5020
|
+
catch (err) {
|
|
5021
|
+
return undefined;
|
|
5022
|
+
}
|
|
6995
5023
|
}
|
|
6996
|
-
|
|
6997
|
-
|
|
6998
|
-
seqHigh = seq >>> 19 & 0xfff;
|
|
6999
|
-
seqLow = seq & 0x7ffff;
|
|
7000
|
-
}
|
|
7001
|
-
|
|
7002
|
-
// randomly initialize seq
|
|
7003
|
-
if (seqHigh === null || seqLow === null) {
|
|
7004
|
-
seqHigh = rnds[6] & 0x7f;
|
|
7005
|
-
seqHigh = seqHigh << 8 | rnds[7];
|
|
7006
|
-
seqLow = rnds[8] & 0x3f; // pad for var
|
|
7007
|
-
seqLow = seqLow << 8 | rnds[9];
|
|
7008
|
-
seqLow = seqLow << 5 | rnds[10] >>> 3;
|
|
7009
|
-
}
|
|
7010
|
-
|
|
7011
|
-
// increment seq if within msecs window
|
|
7012
|
-
if (msecs + 10000 > _msecs && seq === null) {
|
|
7013
|
-
if (++seqLow > 0x7ffff) {
|
|
7014
|
-
seqLow = 0;
|
|
7015
|
-
if (++seqHigh > 0xfff) {
|
|
7016
|
-
seqHigh = 0;
|
|
7017
|
-
|
|
7018
|
-
// increment internal _msecs. this allows us to continue incrementing
|
|
7019
|
-
// while staying monotonic. Note, once we hit 10k milliseconds beyond system
|
|
7020
|
-
// clock, we will reset breaking monotonicity (after (2^31)*10000 generations)
|
|
7021
|
-
_msecs++;
|
|
7022
|
-
}
|
|
5024
|
+
isNumeric(value) {
|
|
5025
|
+
return !isNaN(parseFloat(value)) && isFinite(value);
|
|
7023
5026
|
}
|
|
7024
|
-
} else {
|
|
7025
|
-
// resetting; we have advanced more than
|
|
7026
|
-
// 10k milliseconds beyond system clock
|
|
7027
|
-
_msecs = msecs;
|
|
7028
|
-
}
|
|
7029
|
-
_seqHigh = seqHigh;
|
|
7030
|
-
_seqLow = seqLow;
|
|
7031
|
-
|
|
7032
|
-
// [bytes 0-5] 48 bits of local timestamp
|
|
7033
|
-
b[i++] = _msecs / 0x10000000000 & 0xff;
|
|
7034
|
-
b[i++] = _msecs / 0x100000000 & 0xff;
|
|
7035
|
-
b[i++] = _msecs / 0x1000000 & 0xff;
|
|
7036
|
-
b[i++] = _msecs / 0x10000 & 0xff;
|
|
7037
|
-
b[i++] = _msecs / 0x100 & 0xff;
|
|
7038
|
-
b[i++] = _msecs & 0xff;
|
|
7039
|
-
|
|
7040
|
-
// [byte 6] - set 4 bits of version (7) with first 4 bits seq_hi
|
|
7041
|
-
b[i++] = seqHigh >>> 4 & 0x0f | 0x70;
|
|
7042
|
-
|
|
7043
|
-
// [byte 7] remaining 8 bits of seq_hi
|
|
7044
|
-
b[i++] = seqHigh & 0xff;
|
|
7045
|
-
|
|
7046
|
-
// [byte 8] - variant (2 bits), first 6 bits seq_low
|
|
7047
|
-
b[i++] = seqLow >>> 13 & 0x3f | 0x80;
|
|
7048
|
-
|
|
7049
|
-
// [byte 9] 8 bits seq_low
|
|
7050
|
-
b[i++] = seqLow >>> 5 & 0xff;
|
|
7051
|
-
|
|
7052
|
-
// [byte 10] remaining 5 bits seq_low, 3 bits random
|
|
7053
|
-
b[i++] = seqLow << 3 & 0xff | rnds[10] & 0x07;
|
|
7054
|
-
|
|
7055
|
-
// [bytes 11-15] always random
|
|
7056
|
-
b[i++] = rnds[11];
|
|
7057
|
-
b[i++] = rnds[12];
|
|
7058
|
-
b[i++] = rnds[13];
|
|
7059
|
-
b[i++] = rnds[14];
|
|
7060
|
-
b[i++] = rnds[15];
|
|
7061
|
-
return buf || (0, _stringify.unsafeStringify)(b);
|
|
7062
5027
|
}
|
|
7063
|
-
|
|
7064
|
-
|
|
7065
|
-
/***/ }),
|
|
7066
|
-
|
|
7067
|
-
/***/ "./node_modules/uuid/dist/commonjs-browser/validate.js":
|
|
7068
|
-
/*!*************************************************************!*\
|
|
7069
|
-
!*** ./node_modules/uuid/dist/commonjs-browser/validate.js ***!
|
|
7070
|
-
\*************************************************************/
|
|
7071
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
7072
|
-
|
|
7073
|
-
|
|
5028
|
+
exports.EnumHelper = EnumHelper;
|
|
5029
|
+
exports.enumHelper = new EnumHelper();
|
|
7074
5030
|
|
|
7075
|
-
Object.defineProperty(exports, "__esModule", ({
|
|
7076
|
-
value: true
|
|
7077
|
-
}));
|
|
7078
|
-
exports["default"] = void 0;
|
|
7079
|
-
var _regex = _interopRequireDefault(__webpack_require__(/*! ./regex.js */ "./node_modules/uuid/dist/commonjs-browser/regex.js"));
|
|
7080
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
7081
|
-
function validate(uuid) {
|
|
7082
|
-
return typeof uuid === 'string' && _regex.default.test(uuid);
|
|
7083
|
-
}
|
|
7084
|
-
var _default = exports["default"] = validate;
|
|
7085
5031
|
|
|
7086
5032
|
/***/ }),
|
|
7087
5033
|
|
|
7088
|
-
/***/ "./
|
|
7089
|
-
|
|
7090
|
-
!*** ./
|
|
7091
|
-
|
|
7092
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__)
|
|
7093
|
-
|
|
5034
|
+
/***/ "./lib/utilities/index.ts":
|
|
5035
|
+
/*!********************************!*\
|
|
5036
|
+
!*** ./lib/utilities/index.ts ***!
|
|
5037
|
+
\********************************/
|
|
5038
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
7094
5039
|
|
|
7095
5040
|
|
|
7096
|
-
Object.
|
|
7097
|
-
|
|
5041
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5042
|
+
if (k2 === undefined) k2 = k;
|
|
5043
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5044
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
5045
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
5046
|
+
}
|
|
5047
|
+
Object.defineProperty(o, k2, desc);
|
|
5048
|
+
}) : (function(o, m, k, k2) {
|
|
5049
|
+
if (k2 === undefined) k2 = k;
|
|
5050
|
+
o[k2] = m[k];
|
|
7098
5051
|
}));
|
|
7099
|
-
|
|
7100
|
-
var
|
|
7101
|
-
|
|
7102
|
-
|
|
7103
|
-
|
|
7104
|
-
|
|
7105
|
-
|
|
7106
|
-
|
|
7107
|
-
}
|
|
7108
|
-
var _default = exports["default"] = version;
|
|
5052
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
5053
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
5054
|
+
};
|
|
5055
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
5056
|
+
__exportStar(__webpack_require__(/*! ./codename.helper */ "./lib/utilities/codename.helper.ts"), exports);
|
|
5057
|
+
__exportStar(__webpack_require__(/*! ./delivery-url.helper */ "./lib/utilities/delivery-url.helper.ts"), exports);
|
|
5058
|
+
__exportStar(__webpack_require__(/*! ./enum.helper */ "./lib/utilities/enum.helper.ts"), exports);
|
|
5059
|
+
|
|
7109
5060
|
|
|
7110
5061
|
/***/ }),
|
|
7111
5062
|
|
|
@@ -8070,9 +6021,9 @@ class Axios {
|
|
|
8070
6021
|
return await this._request(configOrUrl, config);
|
|
8071
6022
|
} catch (err) {
|
|
8072
6023
|
if (err instanceof Error) {
|
|
8073
|
-
let dummy;
|
|
6024
|
+
let dummy = {};
|
|
8074
6025
|
|
|
8075
|
-
Error.captureStackTrace ? Error.captureStackTrace(dummy
|
|
6026
|
+
Error.captureStackTrace ? Error.captureStackTrace(dummy) : (dummy = new Error());
|
|
8076
6027
|
|
|
8077
6028
|
// slice off the Error: ... line
|
|
8078
6029
|
const stack = dummy.stack ? dummy.stack.replace(/^.+\n/, '') : '';
|
|
@@ -8127,6 +6078,11 @@ class Axios {
|
|
|
8127
6078
|
}
|
|
8128
6079
|
}
|
|
8129
6080
|
|
|
6081
|
+
_helpers_validator_js__WEBPACK_IMPORTED_MODULE_0__["default"].assertOptions(config, {
|
|
6082
|
+
baseUrl: validators.spelling('baseURL'),
|
|
6083
|
+
withXsrfToken: validators.spelling('withXSRFToken')
|
|
6084
|
+
}, true);
|
|
6085
|
+
|
|
8130
6086
|
// Set config.method
|
|
8131
6087
|
config.method = (config.method || this.defaults.method || 'get').toLowerCase();
|
|
8132
6088
|
|
|
@@ -8953,7 +6909,7 @@ function mergeConfig(config1, config2) {
|
|
|
8953
6909
|
config2 = config2 || {};
|
|
8954
6910
|
const config = {};
|
|
8955
6911
|
|
|
8956
|
-
function getMergedValue(target, source, caseless) {
|
|
6912
|
+
function getMergedValue(target, source, prop, caseless) {
|
|
8957
6913
|
if (_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isPlainObject(target) && _utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isPlainObject(source)) {
|
|
8958
6914
|
return _utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].merge.call({caseless}, target, source);
|
|
8959
6915
|
} else if (_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isPlainObject(source)) {
|
|
@@ -8965,11 +6921,11 @@ function mergeConfig(config1, config2) {
|
|
|
8965
6921
|
}
|
|
8966
6922
|
|
|
8967
6923
|
// eslint-disable-next-line consistent-return
|
|
8968
|
-
function mergeDeepProperties(a, b, caseless) {
|
|
6924
|
+
function mergeDeepProperties(a, b, prop , caseless) {
|
|
8969
6925
|
if (!_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isUndefined(b)) {
|
|
8970
|
-
return getMergedValue(a, b, caseless);
|
|
6926
|
+
return getMergedValue(a, b, prop , caseless);
|
|
8971
6927
|
} else if (!_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isUndefined(a)) {
|
|
8972
|
-
return getMergedValue(undefined, a, caseless);
|
|
6928
|
+
return getMergedValue(undefined, a, prop , caseless);
|
|
8973
6929
|
}
|
|
8974
6930
|
}
|
|
8975
6931
|
|
|
@@ -9027,7 +6983,7 @@ function mergeConfig(config1, config2) {
|
|
|
9027
6983
|
socketPath: defaultToConfig2,
|
|
9028
6984
|
responseEncoding: defaultToConfig2,
|
|
9029
6985
|
validateStatus: mergeDirectKeys,
|
|
9030
|
-
headers: (a, b) => mergeDeepProperties(headersToObject(a), headersToObject(b), true)
|
|
6986
|
+
headers: (a, b , prop) => mergeDeepProperties(headersToObject(a), headersToObject(b),prop, true)
|
|
9031
6987
|
};
|
|
9032
6988
|
|
|
9033
6989
|
_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].forEach(Object.keys(Object.assign({}, config1, config2)), function computeConfigValue(prop) {
|
|
@@ -9342,7 +7298,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
9342
7298
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9343
7299
|
/* harmony export */ VERSION: () => (/* binding */ VERSION)
|
|
9344
7300
|
/* harmony export */ });
|
|
9345
|
-
const VERSION = "1.7.
|
|
7301
|
+
const VERSION = "1.7.9";
|
|
9346
7302
|
|
|
9347
7303
|
/***/ }),
|
|
9348
7304
|
|
|
@@ -9565,7 +7521,7 @@ function encode(val) {
|
|
|
9565
7521
|
*
|
|
9566
7522
|
* @param {string} url The base of the url (e.g., http://www.google.com)
|
|
9567
7523
|
* @param {object} [params] The params to be appended
|
|
9568
|
-
* @param {?object} options
|
|
7524
|
+
* @param {?(object|Function)} options
|
|
9569
7525
|
*
|
|
9570
7526
|
* @returns {string} The formatted url
|
|
9571
7527
|
*/
|
|
@@ -9577,6 +7533,12 @@ function buildURL(url, params, options) {
|
|
|
9577
7533
|
|
|
9578
7534
|
const _encode = options && options.encode || encode;
|
|
9579
7535
|
|
|
7536
|
+
if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isFunction(options)) {
|
|
7537
|
+
options = {
|
|
7538
|
+
serialize: options
|
|
7539
|
+
};
|
|
7540
|
+
}
|
|
7541
|
+
|
|
9580
7542
|
const serializeFn = options && options.serialize;
|
|
9581
7543
|
|
|
9582
7544
|
let serializedParams;
|
|
@@ -9934,75 +7896,21 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
9934
7896
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9935
7897
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
9936
7898
|
/* harmony export */ });
|
|
9937
|
-
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./../utils.js */ "./node_modules/axios/lib/utils.js");
|
|
9938
7899
|
/* harmony import */ var _platform_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../platform/index.js */ "./node_modules/axios/lib/platform/index.js");
|
|
9939
7900
|
|
|
9940
7901
|
|
|
7902
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_platform_index_js__WEBPACK_IMPORTED_MODULE_0__["default"].hasStandardBrowserEnv ? ((origin, isMSIE) => (url) => {
|
|
7903
|
+
url = new URL(url, _platform_index_js__WEBPACK_IMPORTED_MODULE_0__["default"].origin);
|
|
9941
7904
|
|
|
9942
|
-
|
|
9943
|
-
|
|
9944
|
-
|
|
9945
|
-
|
|
9946
|
-
|
|
9947
|
-
|
|
9948
|
-
|
|
9949
|
-
|
|
9950
|
-
|
|
9951
|
-
let originURL;
|
|
9952
|
-
|
|
9953
|
-
/**
|
|
9954
|
-
* Parse a URL to discover its components
|
|
9955
|
-
*
|
|
9956
|
-
* @param {String} url The URL to be parsed
|
|
9957
|
-
* @returns {Object}
|
|
9958
|
-
*/
|
|
9959
|
-
function resolveURL(url) {
|
|
9960
|
-
let href = url;
|
|
9961
|
-
|
|
9962
|
-
if (msie) {
|
|
9963
|
-
// IE needs attribute set twice to normalize properties
|
|
9964
|
-
urlParsingNode.setAttribute('href', href);
|
|
9965
|
-
href = urlParsingNode.href;
|
|
9966
|
-
}
|
|
9967
|
-
|
|
9968
|
-
urlParsingNode.setAttribute('href', href);
|
|
9969
|
-
|
|
9970
|
-
// urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils
|
|
9971
|
-
return {
|
|
9972
|
-
href: urlParsingNode.href,
|
|
9973
|
-
protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',
|
|
9974
|
-
host: urlParsingNode.host,
|
|
9975
|
-
search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, '') : '',
|
|
9976
|
-
hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',
|
|
9977
|
-
hostname: urlParsingNode.hostname,
|
|
9978
|
-
port: urlParsingNode.port,
|
|
9979
|
-
pathname: (urlParsingNode.pathname.charAt(0) === '/') ?
|
|
9980
|
-
urlParsingNode.pathname :
|
|
9981
|
-
'/' + urlParsingNode.pathname
|
|
9982
|
-
};
|
|
9983
|
-
}
|
|
9984
|
-
|
|
9985
|
-
originURL = resolveURL(window.location.href);
|
|
9986
|
-
|
|
9987
|
-
/**
|
|
9988
|
-
* Determine if a URL shares the same origin as the current location
|
|
9989
|
-
*
|
|
9990
|
-
* @param {String} requestURL The URL to test
|
|
9991
|
-
* @returns {boolean} True if URL shares the same origin, otherwise false
|
|
9992
|
-
*/
|
|
9993
|
-
return function isURLSameOrigin(requestURL) {
|
|
9994
|
-
const parsed = (_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isString(requestURL)) ? resolveURL(requestURL) : requestURL;
|
|
9995
|
-
return (parsed.protocol === originURL.protocol &&
|
|
9996
|
-
parsed.host === originURL.host);
|
|
9997
|
-
};
|
|
9998
|
-
})() :
|
|
9999
|
-
|
|
10000
|
-
// Non standard browser envs (web workers, react-native) lack needed support.
|
|
10001
|
-
(function nonStandardBrowserEnv() {
|
|
10002
|
-
return function isURLSameOrigin() {
|
|
10003
|
-
return true;
|
|
10004
|
-
};
|
|
10005
|
-
})());
|
|
7905
|
+
return (
|
|
7906
|
+
origin.protocol === url.protocol &&
|
|
7907
|
+
origin.host === url.host &&
|
|
7908
|
+
(isMSIE || origin.port === url.port)
|
|
7909
|
+
);
|
|
7910
|
+
})(
|
|
7911
|
+
new URL(_platform_index_js__WEBPACK_IMPORTED_MODULE_0__["default"].origin),
|
|
7912
|
+
_platform_index_js__WEBPACK_IMPORTED_MODULE_0__["default"].navigator && /(msie|trident)/i.test(_platform_index_js__WEBPACK_IMPORTED_MODULE_0__["default"].navigator.userAgent)
|
|
7913
|
+
) : () => true);
|
|
10006
7914
|
|
|
10007
7915
|
|
|
10008
7916
|
/***/ }),
|
|
@@ -10864,6 +8772,14 @@ validators.transitional = function transitional(validator, version, message) {
|
|
|
10864
8772
|
};
|
|
10865
8773
|
};
|
|
10866
8774
|
|
|
8775
|
+
validators.spelling = function spelling(correctSpelling) {
|
|
8776
|
+
return (value, opt) => {
|
|
8777
|
+
// eslint-disable-next-line no-console
|
|
8778
|
+
console.warn(`${opt} is likely a misspelling of ${correctSpelling}`);
|
|
8779
|
+
return true;
|
|
8780
|
+
}
|
|
8781
|
+
};
|
|
8782
|
+
|
|
10867
8783
|
/**
|
|
10868
8784
|
* Assert object's properties type
|
|
10869
8785
|
*
|
|
@@ -11888,18 +9804,6 @@ const asap = typeof queueMicrotask !== 'undefined' ?
|
|
|
11888
9804
|
/******/ };
|
|
11889
9805
|
/******/ })();
|
|
11890
9806
|
/******/
|
|
11891
|
-
/******/ /* webpack/runtime/global */
|
|
11892
|
-
/******/ (() => {
|
|
11893
|
-
/******/ __webpack_require__.g = (function() {
|
|
11894
|
-
/******/ if (typeof globalThis === 'object') return globalThis;
|
|
11895
|
-
/******/ try {
|
|
11896
|
-
/******/ return this || new Function('return this')();
|
|
11897
|
-
/******/ } catch (e) {
|
|
11898
|
-
/******/ if (typeof window === 'object') return window;
|
|
11899
|
-
/******/ }
|
|
11900
|
-
/******/ })();
|
|
11901
|
-
/******/ })();
|
|
11902
|
-
/******/
|
|
11903
9807
|
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
11904
9808
|
/******/ (() => {
|
|
11905
9809
|
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|