@teambit/env 1.0.465 → 1.0.467
Sign up to get free protection for your applications and to get access to all the features.
- package/artifacts/__bit_junit.xml +1 -1
- package/artifacts/env-template/public/{182.8be4776dfcdf5580c75e.js → 182.647f0b8210ad78130721.js} +4 -4
- package/artifacts/env-template/public/{464.520c83c8980da56bd4db.js → 739.8868b904008fe833ddef.js} +2 -2
- package/artifacts/env-template/public/{587.e526ecee1d625fc8caab.js → 953.49910864b01115c11670.js} +13 -13
- package/artifacts/env-template/public/assets-manifest.json +14 -14
- package/artifacts/env-template/public/{compositions.9c34ff65eb6e695f3f19.js → compositions.dcdd42654415442678e1.js} +1 -1
- package/artifacts/env-template/public/compositions.html +1 -1
- package/artifacts/env-template/public/{overview.573dbf20a20562c9677a.js → overview.b2086a633eaad2d0fe63.js} +1 -1
- package/artifacts/env-template/public/overview.html +1 -1
- package/artifacts/env-template/public/peers.ce6ef5fb27448a058da6.js +1 -0
- package/artifacts/env-template/public/{preview-root.25e199389e49c0b3da51.js → preview-root.75d2c9a6c48d70e5c905.js} +1 -1
- package/artifacts/preview/teambit_envs_env-preview.js +1 -1
- package/artifacts/schema.json +1 -1
- package/{compositions-1731900045011.js → compositions-1731986398447.js} +1 -1
- package/dist/{preview-1731900045011.js → preview-1731986398447.js} +2 -2
- package/{overview-1731900045011.js → overview-1731986398447.js} +1 -1
- package/package.json +10 -10
- package/artifacts/env-template/public/peers.16fb3f52ff9755064a07.js +0 -1
package/artifacts/env-template/public/{587.e526ecee1d625fc8caab.js → 953.49910864b01115c11670.js}
RENAMED
@@ -1,21 +1,21 @@
|
|
1
|
-
(self.__loadChunks_EnvTemplate=self.__loadChunks_EnvTemplate||[]).push([[
|
1
|
+
(self.__loadChunks_EnvTemplate=self.__loadChunks_EnvTemplate||[]).push([[953],{5640:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.BitError=void 0;class BitError extends Error{constructor(msg){super(msg||"");this.isUserError=!0,this.name=this.constructor.name}report(){return this.message}}exports.BitError=BitError},17781:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.BitError=void 0;var bit_error_1=__webpack_require__(5640);Object.defineProperty(exports,"BitError",{enumerable:!0,get:function(){return bit_error_1.BitError}})},32651:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ComponentIdList=void 0;const lodash_1=__webpack_require__(81743),component_version_1=__webpack_require__(60378),component_id_1=__webpack_require__(22884);class ComponentIdList extends Array{toStringArray(){return this.map(componentId=>componentId.toString())}has(componentId){return Boolean(this.search(componentId))}hasWithoutVersion(componentId){return Boolean(this.searchWithoutVersion(componentId))}hasWithoutScopeAndVersion(componentId){return Boolean(this.searchWithoutScopeAndVersion(componentId))}search(componentId){return this.find(id=>id.fullName===componentId.fullName&&id.scope===componentId.scope&&id._legacy.hasSameVersion(componentId._legacy))}searchWithoutVersion(componentId){return this.find(id=>id.fullName===componentId.fullName&&id.scope===componentId.scope)}searchWithoutScopeAndVersion(componentId){return this.find(id=>id.fullName===componentId.fullName)}searchStrWithoutVersion(idStr){return this.find(id=>id.toStringWithoutVersion()===idStr)}filterExact(componentId){return this.filter(id=>id.fullName===componentId.fullName&&id.scope===componentId.scope&&id.hasSameVersion(componentId))}filterWithoutVersion(componentId){return this.filter(id=>id.fullName===componentId.fullName&&id.scope===componentId.scope)}removeIfExist(componentId){return ComponentIdList.fromArray(this.filter(id=>!id.isEqual(componentId)))}toObject(){return this.reduce((acc,componentId)=>(acc[componentId.toString()]=componentId,acc),{})}toString(){return this.map(id=>id.toString()).join(", ")}toGroupByIdWithoutVersion(){return this.reduce((acc,current)=>{const idStrWithoutVer=current.toStringWithoutVersion();return acc[idStrWithoutVer]?acc[idStrWithoutVer].push(current):acc[idStrWithoutVer]=new ComponentIdList(current),acc},{})}toGroupByScopeName(){return this.reduce((acc,current)=>{const scopeName=current.scope;return acc[scopeName]?acc[scopeName].push(current):acc[scopeName]=new ComponentIdList(current),acc},{})}findDuplicationsIgnoreVersion(){const duplications={};return this.forEach(id=>{const sameIds=this.filterWithoutVersion(id);sameIds.length>1&&(duplications[id.toStringWithoutVersion()]=sameIds)}),duplications}add(componentIds){componentIds.forEach(componentId=>{this.search(componentId)||this.push(componentId)})}static fromArray(ids){const componentIds=new ComponentIdList;return ids.forEach(id=>componentIds.push(id)),componentIds}static uniqFromArray(componentIds){const uniq=(0,lodash_1.uniqBy)(componentIds,id=>id.toString());return ComponentIdList.fromArray(uniq)}static fromStringArray(idsStr=[]){return ComponentIdList.fromArray(idsStr.map(id=>component_id_1.ComponentID.fromString(id)))}throwForDuplicationIgnoreVersion(){this.forEach(componentId=>{const found=this.filterWithoutVersion(componentId);if(found.length>1)throw new Error(`componentIds has "${componentId.toStringWithoutVersion()}" duplicated as following:
|
2
2
|
${found.map(id=>id.toString()).join(`
|
3
|
-
`)}`)})}toVersionLatest(){return ComponentIdList.uniqFromArray(this.map(id=>id.changeVersion(component_version_1.LATEST_VERSION)))}clone(){return ComponentIdList.fromArray(this.map(id=>id.clone()))}}exports.ComponentIdList=ComponentIdList},
|
3
|
+
`)}`)})}toVersionLatest(){return ComponentIdList.uniqFromArray(this.map(id=>id.changeVersion(component_version_1.LATEST_VERSION)))}clone(){return ComponentIdList.fromArray(this.map(id=>id.clone()))}}exports.ComponentIdList=ComponentIdList},22884:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ComponentID=void 0;const legacy_bit_id_1=__webpack_require__(83117),exceptions_1=__webpack_require__(94241);class ComponentID{constructor(_legacy,_scope){if(this._legacy=_legacy,this._scope=_scope,!_legacy.name)throw new Error(`ComponentID expects to get an object with "name" prop. got ${_legacy}`);if(!_scope&&!_legacy.scope)throw new exceptions_1.MissingScope(_legacy)}hasVersion(){return this._legacy.hasVersion()}get version(){return this._legacy.version}get namespace(){return this._legacy.name.split("/").slice(0,-1).join("/")}get fullName(){return this._legacy.name}get name(){const arr=this._legacy.name.split("/");return arr[arr.length-1]}get scope(){const scope=this._legacy.scope;if(scope)return scope;if(!this._scope)throw new Error("scope cannot be undefined");return this._scope}changeScope(scopeName){const legacyId=this._legacy.changeScope(scopeName);return ComponentID.fromLegacy(legacyId,this.scope)}changeDefaultScope(scopeName){return ComponentID.fromLegacy(this._legacy,scopeName)}changeVersion(version){const legacyId=this._legacy.changeVersion(version);return ComponentID.fromLegacy(legacyId,this.scope)}isEqual(id,opts){return ComponentID.isEqual(this,id,opts)}isEqualWithoutVersion(id){return this.isEqual(id,{ignoreVersion:!0})}isLocal(scopeName){return this._legacy.isLocal(scopeName)}hasScope(){return this._legacy.hasScope()}serialize(){return this.toObject()}static deserialize(id){return ComponentID.fromObject(id)}static isValidVersion(version){return legacy_bit_id_1.BitId.isValidVersion(version)}static getVersionFromString(id){return id.split(legacy_bit_id_1.VERSION_DELIMITER)[1]}static getStringWithoutVersion(id){return id.split(legacy_bit_id_1.VERSION_DELIMITER)[0]}getVersionPreReleaseData(){return this._legacy.getVersionPreReleaseData()}toStringWithoutVersion(){let id=this._legacy;return this._scope&&!this._legacy.scope&&(id=id.changeScope(this._scope)),id.toStringWithoutVersion()}hasSameVersion(id){return this._legacy.hasSameVersion(id._legacy)}toString(opts={}){let id=this._legacy;this._scope&&!this._legacy.scope&&(id=id.changeScope(this._scope));const idStr=id.toString(!1,opts.ignoreVersion);return opts.fsCompatible?idStr.replace(/\//g,"_").replace(/\./g,"_").replace(/-/g,"_"):idStr}toObject(){const object=this._legacy.serialize();return object.scope||(object.scope=this.scope),object}clone(){return ComponentID.fromLegacy(this._legacy.clone(),this._scope)}static tryFromString(idStr,scope){try{return ComponentID.fromString(idStr,scope)}catch{return}}static isValidCompIdStr(idStr){return Boolean(ComponentID.tryFromString(idStr))}static fromString(idStr,scope){const legacyId=legacy_bit_id_1.BitId.parse(idStr,!0);if(!scope&&!legacyId.scope)throw new exceptions_1.MissingScope(idStr);return new ComponentID(legacyId,scope)}static fromLegacyString(idStr,scope){const legacyId=legacy_bit_id_1.BitId.parse(idStr,!1);return new ComponentID(legacyId,scope)}static fromObject(object,scope){if(object instanceof ComponentID)throw new Error(`ComponentID.fromObject expect to get an object, got an instance of ComponentID: ${object.toString()}`);return ComponentID.fromLegacy(new legacy_bit_id_1.BitId(object),scope)}static isValidObject(o){return typeof o=="object"&&typeof o.name=="string"&&typeof o.scope=="string"}static isEqual(a,b,opts={}){if(!a&&!b)return!0;if(!a||!b)return!1;const result=a.scope===b.scope&&a.toString({ignoreVersion:opts.ignoreVersion})===b.toString({ignoreVersion:opts.ignoreVersion});return opts.ignoreVersion?result:result&&a.hasSameVersion(b)}static isEqualObj(a,b,opts={}){if(!a&&!b)return!0;if(!a||!b)return!1;let result=a.scope===b.scope&&a.name===b.name;return opts.ignoreVersion||(result=result&&a.version===b.version),result}static fromLegacy(legacyId,scope){if(!scope&&!legacyId.scope)throw new exceptions_1.MissingScope(legacyId);return new ComponentID(legacyId,scope)}static sortIds(ids){return ids.sort((a,b)=>a.toString().localeCompare(b.toString()))}}exports.ComponentID=ComponentID},94241:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.MissingScope=void 0;const missing_scope_1=__webpack_require__(59013);Object.defineProperty(exports,"MissingScope",{enumerable:!0,get:function(){return missing_scope_1.MissingScope}})},59013:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.MissingScope=void 0;class MissingScope extends Error{constructor(src){super(`scope is missing from a component-id "${src.toString()}".
|
4
4
|
in case you just upgraded bit version to >= 1.2.10 and you're getting this error, please run "bit cc" and then "bit status" to fix it.
|
5
|
-
if you're still getting the same error, run "bit reset --never-exported"`)}report(){return this.message}}exports.MissingScope=MissingScope},
|
5
|
+
if you're still getting the same error, run "bit reset --never-exported"`)}report(){return this.message}}exports.MissingScope=MissingScope},84638:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ComponentIdList=exports.ComponentID=void 0;var component_id_1=__webpack_require__(22884);Object.defineProperty(exports,"ComponentID",{enumerable:!0,get:function(){return component_id_1.ComponentID}});var component_id_list_1=__webpack_require__(32651);Object.defineProperty(exports,"ComponentIdList",{enumerable:!0,get:function(){return component_id_list_1.ComponentIdList}})},76237:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.InvalidVersion=void 0;const invalid_version_1=__importDefault(__webpack_require__(6712));exports.InvalidVersion=invalid_version_1.default},6712:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const bit_error_1=__webpack_require__(17781);class InvalidVersion extends bit_error_1.BitError{constructor(version){super(`error: version ${version||"(empty)"} is not a valid semantic version. learn more: https://semver.org`)}}exports.default=InvalidVersion},60378:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)k!=="default"&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result};Object.defineProperty(exports,"__esModule",{value:!0}),exports.SHORT_HASH_MINIMUM_SIZE=exports.HASH_SIZE=exports.InvalidVersion=exports.isTag=exports.isSnap=exports.isHash=exports.versionParser=exports.LATEST_VERSION=exports.Version=void 0;const version_1=__webpack_require__(76211);Object.defineProperty(exports,"Version",{enumerable:!0,get:function(){return version_1.Version}}),Object.defineProperty(exports,"LATEST_VERSION",{enumerable:!0,get:function(){return version_1.LATEST_VERSION}});const version_parser_1=__importStar(__webpack_require__(67372));exports.versionParser=version_parser_1.default,Object.defineProperty(exports,"isHash",{enumerable:!0,get:function(){return version_parser_1.isHash}}),Object.defineProperty(exports,"isSnap",{enumerable:!0,get:function(){return version_parser_1.isSnap}}),Object.defineProperty(exports,"isTag",{enumerable:!0,get:function(){return version_parser_1.isTag}}),Object.defineProperty(exports,"HASH_SIZE",{enumerable:!0,get:function(){return version_parser_1.HASH_SIZE}}),Object.defineProperty(exports,"SHORT_HASH_MINIMUM_SIZE",{enumerable:!0,get:function(){return version_parser_1.SHORT_HASH_MINIMUM_SIZE}});const exceptions_1=__webpack_require__(76237);Object.defineProperty(exports,"InvalidVersion",{enumerable:!0,get:function(){return exceptions_1.InvalidVersion}})},67372:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.isSnap=exports.isTag=exports.isHash=exports.SHORT_HASH_MINIMUM_SIZE=exports.HASH_SIZE=void 0;const semver_1=__importDefault(__webpack_require__(97765)),exceptions_1=__webpack_require__(76237),version_1=__webpack_require__(76211);exports.HASH_SIZE=40,exports.SHORT_HASH_MINIMUM_SIZE=3;function isLatest(versionStr){return versionStr===version_1.LATEST_VERSION}function isSemverValid(versionStr){return Boolean(semver_1.default.valid(versionStr))}function returnSemver(versionStr){return new version_1.Version(versionStr,!1)}function returnLatest(){return new version_1.Version(null,!0)}function returnSnap(hash){return new version_1.Version(hash,!1)}function isHash(str){return typeof str=="string"&&isHex(str)&&str.length>=exports.SHORT_HASH_MINIMUM_SIZE&&str.length<=exports.HASH_SIZE}exports.isHash=isHash;function isTag(str){return typeof str=="string"&&isSemverValid(str)}exports.isTag=isTag;function isSnap(str){return isHash(str)&&typeof str=="string"&&str.length===exports.HASH_SIZE}exports.isSnap=isSnap;function versionParser(versionStr){if(!versionStr||isLatest(versionStr))return returnLatest();if(isSemverValid(versionStr))return returnSemver(versionStr);if(isHash(versionStr))return returnSnap(versionStr);throw new exceptions_1.InvalidVersion(versionStr.toString())}exports.default=versionParser;function isHex(str){return/^[0-9a-fA-F]+$/.test(str)}},76211:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Version=exports.LATEST_VERSION=void 0;const semver_1=__importDefault(__webpack_require__(97765)),exceptions_1=__webpack_require__(76237);exports.LATEST_VERSION="latest";class Version{constructor(versionNum,latest){if(this.versionNum=versionNum,this.latest=latest,versionNum&&latest)throw new Error('a component version cannot have both: version and "latest"')}toString(){if(!this.versionNum&&this.latest)return"latest";if(this.versionNum&&!this.latest)return this.versionNum.toString();throw new exceptions_1.InvalidVersion(this.versionNum)}isLaterThan(otherVersion){return!this.versionNum||this.versionNum===exports.LATEST_VERSION?!0:!otherVersion.versionNum||otherVersion.versionNum===exports.LATEST_VERSION?!1:semver_1.default.gt(this.versionNum,otherVersion.versionNum)}}exports.Version=Version},69702:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Aspect=void 0;class Aspect{constructor(id,dependencies,slots,defaultConfig={},declareRuntime,files){this.id=id,this.dependencies=dependencies,this.slots=slots,this.defaultConfig=defaultConfig,this.declareRuntime=declareRuntime,this.files=files,this._runtimes=[]}addRuntime(runtimeManifest){return this._runtimes.push(runtimeManifest),this}getRuntime(runtimeDef){return this._runtimes.find(runtime=>typeof runtime.runtime=="string"?runtime.runtime===runtimeDef.name:runtime.runtime.name===runtimeDef.name)}getRuntimes(){return this._runtimes}static create(manifest){return new Aspect(manifest.id,manifest.dependencies||[],manifest.slots||[],manifest.defaultConfig,manifest.declareRuntime,manifest.files||[])}}exports.Aspect=Aspect},44963:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Config=void 0;class Config{constructor(raw){this.raw=raw}toObject(){return Array.from(this.raw.entries()).reduce((acc,[id,config])=>(acc[id]=config,acc),{})}set(id,config){this.raw.set(id,config)}get(id){return this.raw.get(id)}static from(raw){return new Config(new Map(Object.entries(raw)))}}exports.Config=Config},9854:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Config=void 0;var config_1=__webpack_require__(44963);Object.defineProperty(exports,"Config",{enumerable:!0,get:function(){return config_1.Config}})},97012:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ExtensionInstantiationException=void 0;class ExtensionInstantiationException extends Error{}exports.ExtensionInstantiationException=ExtensionInstantiationException},28486:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0});class ExtensionLoadError extends Error{constructor(extension,originalError,msg){super();this.extension=extension,this.originalError=originalError,this.msg=msg}toString(){return`failed to load extension: ${this.extension.name} with error:
|
6
6
|
|
7
|
-
${this.msg||this.originalError.stack}`}}exports.default=ExtensionLoadError},
|
7
|
+
${this.msg||this.originalError.stack}`}}exports.default=ExtensionLoadError},31910:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const harmony_error_1=__webpack_require__(39487);class ExtensionPotentialCircular extends harmony_error_1.HarmonyError{constructor(extension,validDeps){super();this.extension=extension,this.validDeps=validDeps}toString(){return`Failed to load the dependencies for extension .
|
8
8
|
This may result from a wrong import or from circular dependencies in imports.
|
9
|
-
The following dependencies succeeded loading:`}}exports.default=ExtensionPotentialCircular},49641:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.HarmonyAlreadyRunning=void 0;class HarmonyAlreadyRunning extends Error{}exports.HarmonyAlreadyRunning=HarmonyAlreadyRunning},49221:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.HarmonyError=void 0;class HarmonyError extends Error{}exports.HarmonyError=HarmonyError},84375:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.HookNotFound=void 0;class HookNotFound extends Error{}exports.HookNotFound=HookNotFound},27816:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.ExtensionInstantiationException=exports.HookNotFound=exports.HarmonyAlreadyRunning=exports.ExtensionPotentialCircular=exports.ExtensionLoadError=void 0;var extension_load_error_1=__webpack_require__(41336);Object.defineProperty(exports,"ExtensionLoadError",{enumerable:!0,get:function(){return __importDefault(extension_load_error_1).default}});var extension_potential_circular_1=__webpack_require__(30853);Object.defineProperty(exports,"ExtensionPotentialCircular",{enumerable:!0,get:function(){return __importDefault(extension_potential_circular_1).default}});var harmony_already_running_1=__webpack_require__(49641);Object.defineProperty(exports,"HarmonyAlreadyRunning",{enumerable:!0,get:function(){return harmony_already_running_1.HarmonyAlreadyRunning}});var hook_not_found_1=__webpack_require__(84375);Object.defineProperty(exports,"HookNotFound",{enumerable:!0,get:function(){return hook_not_found_1.HookNotFound}});var extension_init_error_1=__webpack_require__(44403);Object.defineProperty(exports,"ExtensionInstantiationException",{enumerable:!0,get:function(){return extension_init_error_1.ExtensionInstantiationException}})},46154:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __awaiter=this&&this.__awaiter||function(thisArg,_arguments,P,generator){function adopt(value){return value instanceof P?value:new P(function(resolve){resolve(value)})}return new(P||(P=Promise))(function(resolve,reject){function fulfilled(value){try{step(generator.next(value))}catch(e){reject(e)}}function rejected(value){try{step(generator.throw(value))}catch(e){reject(e)}}function step(result){result.done?resolve(result.value):adopt(result.value).then(fulfilled,rejected)}step((generator=generator.apply(thisArg,_arguments||[])).next())})};Object.defineProperty(exports,"__esModule",{value:!0});const cleargraph_1=__webpack_require__(45233),from_extension_1=__webpack_require__(7606);function getName(manifest){return Reflect.getMetadata("harmony:name",manifest)||manifest.id||manifest.name}class DependencyGraph extends cleargraph_1.Graph{constructor(){super(...arguments);this.cache=new Map}getRuntimeDependencies(aspect,runtime,options={}){const dependencies=this.successors(aspect.name),runtimeDeps=this.successors(aspect.name,edge=>edge.runtime?edge.runtime===runtime.name:!1),runtimeManifest=aspect.getRuntime(runtime);return runtimeManifest?runtimeDeps&&runtimeDeps.size?this.sortDeps(runtimeManifest.dependencies,Array.from(runtimeDeps.values()),options):this.sortDeps(runtimeManifest.dependencies,Array.from(dependencies.values()),options):Array.from(dependencies.values())}sortDeps(originalDependencies,targetDependencies,options={}){const _originalDependencies=options.getName?originalDependencies?.map(aspect=>(options.getName&&(aspect.id=options.getName(aspect)),aspect))||[]:originalDependencies;return targetDependencies.sort((a,b)=>_originalDependencies.findIndex(item=>item.id===a.id)-_originalDependencies.findIndex(item=>item.id===b.id))}byExecutionOrder(){return this.toposort(!0)}enrichRuntimeExtension(id,aspect,runtime,runtimes,requireFn,options={}){return __awaiter(this,void 0,void 0,function*(){yield requireFn(aspect,runtime);const runtimeManifest=aspect.getRuntime(runtime);if(!runtimeManifest)return;const deps=runtimeManifest.dependencies;if(!deps)return;const promises=deps.map(dep=>__awaiter(this,void 0,void 0,function*(){const depId=options.getName?options.getName(dep):dep.id;if(!this.hasNode(depId)){this.add(dep),dep.declareRuntime&&runtimes.add(dep.declareRuntime);const node=this.get(depId);if(!node)return;yield requireFn(node,runtime),yield this.enrichRuntimeExtension(depId,this.get(depId),runtime,runtimes,requireFn)}this.setEdge(id,depId,{runtime:runtime.name,type:"runtime-dependency"})}));return Promise.all(promises)})}enrichRuntime(runtime,runtimes,requireFn,options={}){return __awaiter(this,void 0,void 0,function*(){const promises=Array.from(this.nodes.entries()).map(([id,aspect])=>__awaiter(this,void 0,void 0,function*(){return this.enrichRuntimeExtension(id,aspect,runtime,runtimes,requireFn,options)}));return Promise.all(promises)})}add(manifest){const{vertices,edges}=(0,from_extension_1.fromExtension)(manifest);return this.setNodes(vertices),this.setEdges(edges),this}load(extensions){const newExtensions=extensions.filter(extension=>extension.id?!this.get(extension.id):!1),{vertices,edges}=(0,from_extension_1.fromExtensions)(newExtensions);return this.setNodes(vertices,!1),this.setEdges(edges),this}getExtension(manifest){const id=getName(manifest),cachedVertex=this.cache.get(id);if(cachedVertex)return cachedVertex;const res=this.node(id);return res?(this.cache.set(res.name,res),res):null}get extensions(){return Array.from(this.nodes.values())}get aspects(){return this.extensions}get(id){const cachedVertex=this.cache.get(id);if(cachedVertex)return cachedVertex;const res=this.node(id);return res?(this.cache.set(res.name,res),res):null}static fromRoot(extension){const{vertices,edges}=(0,from_extension_1.fromExtension)(extension);return new DependencyGraph(vertices,edges)}static from(extensions,options={}){const{vertices,edges}=(0,from_extension_1.fromExtensions)(extensions,options);return new DependencyGraph(vertices,edges)}}exports.default=DependencyGraph},7606:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.fromExtensions=exports.fromExtension=void 0;const factory_1=__webpack_require__(40009),extension_potential_circular_1=__importDefault(__webpack_require__(30853));function getName(manifest){return Reflect.getMetadata("harmony:name",manifest)||manifest.id||manifest.name}function fromExtension(extension,options={}){const vertices={};let edges=[];function iterate(root){const id=options.getName?options.getName(root):getName(root);if(vertices[id])return;const instance=(0,factory_1.extensionFactory)(root),validDeps=instance.dependencies.filter(dep=>dep).map(dep=>(0,factory_1.extensionFactory)(dep));if(instance.dependencies.length>validDeps.length)throw new extension_potential_circular_1.default(instance,validDeps);vertices[id]=instance;const newEdges=validDeps.map(dep=>({sourceId:id,targetId:dep.name,edge:{type:"dependency"}}));edges=edges.concat(newEdges),instance.dependencies.forEach(dep=>iterate(dep))}iterate(extension);let vertexArray=[];for(let[key,value]of Object.entries(vertices))vertexArray.push({id:key,node:value});return{vertices:vertexArray,edges}}exports.fromExtension=fromExtension;function fromExtensions(extensions,options={}){return extensions.map(ext=>fromExtension(ext,options)).reduce((acc,subgraph)=>(acc.edges=acc.edges.concat(subgraph.edges),acc.vertices=acc.vertices.concat(subgraph.vertices),acc),{vertices:[],edges:[]})}exports.fromExtensions=fromExtensions},34814:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.HookRegistry=exports.hook=exports.createHook=exports.register=exports.provider=exports.ExtensionDecorator=void 0;const map={};function ExtensionDecorator({name,dependencies}={}){function classDecorator(constructor){Reflect.defineMetadata("harmony:name",name||constructor.name,constructor),Reflect.defineMetadata("harmony:dependencies",calculateDependnecies(constructor,dependencies),constructor)}return classDecorator}exports.ExtensionDecorator=ExtensionDecorator;function provider(){return function(target,propertyKey,descriptor){const keys=Reflect.getMetadata("design:paramtypes",descriptor)}}exports.provider=provider;function providerFn(classExtension){return classExtension.provide?classExtension.provide:classExtension.provider}function calculateDependnecies(classExtension,deps){function fromMetadata(){return providerFn(classExtension)?[]:Reflect.getMetadata("design:paramtypes",classExtension)}const dependnecies=deps||fromMetadata()||[],hookDeps=classExtension.__hookDeps?classExtension.__hookDeps:[];return dependnecies.concat(hookDeps)||[]}function register(extension,name){return function(target,propertyKey,descriptor){const extensionName=Reflect.getMetadata("harmony:name",extension);map[extensionName]||(map[extensionName]={});const hook2=map[extensionName][name||propertyKey];!hook2||hook2.register(target[propertyKey])}}exports.register=register;function createHook(){const randomId=Math.random().toString(36).substring(2);map[randomId]=HookRegistry.create();const decorator=function(target,propertyKey,descriptor){map[randomId].register(descriptor.value)};return decorator.hash=randomId,decorator}exports.createHook=createHook;function hook(name){return function(target,propertyKey){let instance=HookRegistry.create();const extensionName=Reflect.getMetadata("harmony:name",target.constructor),hookName=name||propertyKey;map[extensionName]?map[extensionName][hookName]=instance:map[extensionName]={[hookName]:instance},Object.defineProperty(target,propertyKey,{get:()=>instance,set:value=>{instance=value}})}}exports.hook=hook;class HookRegistry{constructor(fillers,hash){this.fillers=fillers,this.hash=hash}register(filler){this.fillers.push(filler)}list(){return this.fillers}static of(hook2){return map[hook2.hash]}static create(){return new HookRegistry([])}}exports.HookRegistry=HookRegistry},70807:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __awaiter=this&&this.__awaiter||function(thisArg,_arguments,P,generator){function adopt(value){return value instanceof P?value:new P(function(resolve){resolve(value)})}return new(P||(P=Promise))(function(resolve,reject){function fulfilled(value){try{step(generator.next(value))}catch(e){reject(e)}}function rejected(value){try{step(generator.throw(value))}catch(e){reject(e)}}function step(result){result.done?resolve(result.value):adopt(result.value).then(fulfilled,rejected)}step((generator=generator.apply(thisArg,_arguments||[])).next())})};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Extension=void 0;const extension_init_error_1=__webpack_require__(44403);class Extension{constructor(manifest){this.manifest=manifest,this._instance=null,this._loaded=!1}get instance(){return this._instance}get name(){return Reflect.getMetadata("harmony:name",this.manifest)||this.manifest.id||this.manifest.name}get id(){return this.name}get dependencies(){return Reflect.getMetadata("harmony:dependencies",this.manifest)||this.manifest.dependencies||[]}get provider(){return Reflect.getMetadata("harmony:provider",this.manifest)||this.manifest.provider}get files(){return this.manifest.files}get loaded(){return this._loaded}toString(){return JSON.stringify(this.name)}buildSlotRegistries(slots,context){return slots.map(slot=>slot(()=>context.current))}get declareRuntime(){return this.manifest.declareRuntime}getRuntime(runtime){return this.manifest.getRuntime(runtime)}getRuntimes(){return this.manifest.getRuntimes()}getSlots(extensionRuntime){return extensionRuntime.slots&&extensionRuntime.slots.length?extensionRuntime.slots:this.manifest.slots||[]}getConfig(context,extensionRuntime){const defaultConfig=extensionRuntime.defaultConfig||this.manifest.defaultConfig||{},config=context.config.get(this.name)||{};return Object.assign({},defaultConfig,config)}__run(dependencies,context,runtime){return __awaiter(this,void 0,void 0,function*(){const name=this.name;context.initExtension(name);const extensionRuntime=this.getRuntime(runtime);if(!extensionRuntime)return;const registries=this.buildSlotRegistries(this.getSlots(extensionRuntime),context),config=this.getConfig(context,extensionRuntime);if(!this.loaded){if(extensionRuntime.provider)this._instance=yield extensionRuntime.provider(dependencies,config,registries,context);else try{this._instance=new extensionRuntime.manifest(...dependencies)}catch(err){throw new extension_init_error_1.ExtensionInstantiationException(err.toString())}return this._loaded=!0,this._instance}return context.endExtension(),Promise.resolve(this.instance)})}}exports.Extension=Extension},93820:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.createHook=exports.provider=exports.HookRegistry=exports.hook=exports.register=exports.ExtensionDecorator=exports.Extension=void 0;var extension_1=__webpack_require__(70807);Object.defineProperty(exports,"Extension",{enumerable:!0,get:function(){return extension_1.Extension}});var decorator_1=__webpack_require__(34814);Object.defineProperty(exports,"ExtensionDecorator",{enumerable:!0,get:function(){return decorator_1.ExtensionDecorator}}),Object.defineProperty(exports,"register",{enumerable:!0,get:function(){return decorator_1.register}}),Object.defineProperty(exports,"hook",{enumerable:!0,get:function(){return decorator_1.hook}}),Object.defineProperty(exports,"HookRegistry",{enumerable:!0,get:function(){return decorator_1.HookRegistry}}),Object.defineProperty(exports,"provider",{enumerable:!0,get:function(){return decorator_1.provider}}),Object.defineProperty(exports,"createHook",{enumerable:!0,get:function(){return decorator_1.createHook}})},83597:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.extensionFactory=void 0;const extension_1=__webpack_require__(70807);function extensionFactory(manifest){return manifest.provide&&(manifest.provider=manifest.provide),new extension_1.Extension(manifest)}exports.extensionFactory=extensionFactory},40009:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.extensionFactory=void 0;var extension_factory_1=__webpack_require__(83597);Object.defineProperty(exports,"extensionFactory",{enumerable:!0,get:function(){return extension_factory_1.extensionFactory}})},85079:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __awaiter=this&&this.__awaiter||function(thisArg,_arguments,P,generator){function adopt(value){return value instanceof P?value:new P(function(resolve){resolve(value)})}return new(P||(P=Promise))(function(resolve,reject){function fulfilled(value){try{step(generator.next(value))}catch(e){reject(e)}}function rejected(value){try{step(generator.throw(value))}catch(e){reject(e)}}function step(result){result.done?resolve(result.value):adopt(result.value).then(fulfilled,rejected)}step((generator=generator.apply(thisArg,_arguments||[])).next())})},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Harmony=void 0,__webpack_require__(24521);const extension_graph_1=__importDefault(__webpack_require__(46154)),exceptions_1=__webpack_require__(27816),utils_1=__webpack_require__(17619),config_1=__webpack_require__(91489),runtimes_1=__webpack_require__(23522),exceptions_2=__webpack_require__(35555);class Harmony{constructor(graph,config,runtimes,activeRuntime,depOptions){this.graph=graph,this.config=config,this.runtimes=runtimes,this.activeRuntime=activeRuntime,this.depOptions=depOptions,this.current=null}get extensions(){return this.graph.nodes}get extensionsIds(){return[...this.graph.nodes.keys()]}load(extensions){return __awaiter(this,void 0,void 0,function*(){return this.set(extensions)})}set(extensions){return __awaiter(this,void 0,void 0,function*(){this.graph.load(extensions);const extensionsToLoad=extensions.map(ext=>Reflect.getMetadata("harmony:name",ext)||ext.id||ext.name);yield this.graph.enrichRuntime(this.runtime,this.runtimes,()=>{});const subgraphs=this.graph.successorsSubgraph(extensionsToLoad);if(subgraphs){const executionOrder=subgraphs.toposort(!0);yield(0,utils_1.asyncForEach)(executionOrder,ext=>__awaiter(this,void 0,void 0,function*(){if(!this.runtime)throw new exceptions_2.RuntimeNotDefined(this.activeRuntime);yield this.runOne(ext,this.runtime)}))}})}runOne(extension,runtime){return __awaiter(this,void 0,void 0,function*(){if(extension.loaded)return;const instances=this.graph.getRuntimeDependencies(extension,runtime,this.depOptions).map(extension2=>extension2.instance);try{return extension.__run(instances,this,runtime)}catch(err){throw new exceptions_1.ExtensionLoadError(extension,err)}})}getDependencies(aspect){if(!this.runtime)throw new exceptions_2.RuntimeNotDefined(this.activeRuntime);return this.graph.getRuntimeDependencies(aspect,this.runtime,this.depOptions)}initExtension(id){this.current=id}endExtension(){this.current=null}get(id){const extension=this.graph.get(id);if(!extension||!extension.instance)throw new Error(`failed loading extension ${id}`);return extension.instance}resolveRuntime(name){return this.runtimes.get(name)}run(requireFn){return __awaiter(this,void 0,void 0,function*(){const runtime=this.resolveRuntime(this.activeRuntime);this.runtime=runtime;const defaultRequireFn=(aspect,runtime2)=>__awaiter(this,void 0,void 0,function*(){runtime2.getRuntimeFile(aspect.files)});yield this.graph.enrichRuntime(runtime,this.runtimes,requireFn||defaultRequireFn,this.depOptions);const executionOrder=this.graph.byExecutionOrder();yield(0,utils_1.asyncForEach)(executionOrder,ext=>__awaiter(this,void 0,void 0,function*(){yield this.runOne(ext,runtime)}))})}static load(aspects,runtime,globalConfig,options={}){return __awaiter(this,void 0,void 0,function*(){const aspectGraph=extension_graph_1.default.from(aspects,options),runtimes=yield runtimes_1.Runtimes.load(aspectGraph);return new Harmony(aspectGraph,config_1.Config.from(globalConfig),runtimes,runtime,options)})}}exports.Harmony=Harmony},88759:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.AspectGraph=exports.RuntimeDefinition=exports.Aspect=exports.HarmonyError=exports.SlotRegistry=exports.Slot=exports.Harmony=exports.createHook=exports.provider=exports.hook=exports.HookRegistry=exports.register=exports.Extension=exports.ExtensionDecorator=void 0;var extension_1=__webpack_require__(93820);Object.defineProperty(exports,"ExtensionDecorator",{enumerable:!0,get:function(){return extension_1.ExtensionDecorator}}),Object.defineProperty(exports,"Extension",{enumerable:!0,get:function(){return extension_1.Extension}}),Object.defineProperty(exports,"register",{enumerable:!0,get:function(){return extension_1.register}}),Object.defineProperty(exports,"HookRegistry",{enumerable:!0,get:function(){return extension_1.HookRegistry}}),Object.defineProperty(exports,"hook",{enumerable:!0,get:function(){return extension_1.hook}}),Object.defineProperty(exports,"provider",{enumerable:!0,get:function(){return extension_1.provider}}),Object.defineProperty(exports,"createHook",{enumerable:!0,get:function(){return extension_1.createHook}});var harmony_1=__webpack_require__(85079);Object.defineProperty(exports,"Harmony",{enumerable:!0,get:function(){return harmony_1.Harmony}});var slots_1=__webpack_require__(80368);Object.defineProperty(exports,"Slot",{enumerable:!0,get:function(){return slots_1.Slot}}),Object.defineProperty(exports,"SlotRegistry",{enumerable:!0,get:function(){return slots_1.SlotRegistry}});var harmony_error_1=__webpack_require__(49221);Object.defineProperty(exports,"HarmonyError",{enumerable:!0,get:function(){return harmony_error_1.HarmonyError}});var aspect_1=__webpack_require__(6896);Object.defineProperty(exports,"Aspect",{enumerable:!0,get:function(){return aspect_1.Aspect}});var runtimes_1=__webpack_require__(34952);Object.defineProperty(exports,"RuntimeDefinition",{enumerable:!0,get:function(){return runtimes_1.RuntimeDefinition}});var extension_graph_1=__webpack_require__(46154);Object.defineProperty(exports,"AspectGraph",{enumerable:!0,get:function(){return __importDefault(extension_graph_1).default}})},35555:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.RuntimeModuleError=exports.RuntimeNotDefined=void 0;var runtime_not_defined_1=__webpack_require__(44691);Object.defineProperty(exports,"RuntimeNotDefined",{enumerable:!0,get:function(){return runtime_not_defined_1.RuntimeNotDefined}});var runtime_module_error_1=__webpack_require__(20536);Object.defineProperty(exports,"RuntimeModuleError",{enumerable:!0,get:function(){return runtime_module_error_1.RuntimeModuleError}})},20536:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.RuntimeModuleError=void 0;class RuntimeModuleError extends Error{constructor(err){super(`failed to load Harmony aspect with error message: ${err.message}`);this.err=err}get stack(){return this.err.stack}}exports.RuntimeModuleError=RuntimeModuleError},44691:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.RuntimeNotDefined=void 0;class RuntimeNotDefined extends Error{constructor(name){super(`runtime: '${name}' was not defined by any aspect`)}}exports.RuntimeNotDefined=RuntimeNotDefined},34952:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.RuntimeDefinition=exports.Runtimes=void 0;var runtimes_1=__webpack_require__(23522);Object.defineProperty(exports,"Runtimes",{enumerable:!0,get:function(){return runtimes_1.Runtimes}});var runtime_definition_1=__webpack_require__(61124);Object.defineProperty(exports,"RuntimeDefinition",{enumerable:!0,get:function(){return runtime_definition_1.RuntimeDefinition}})},61124:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.RuntimeDefinition=void 0;const DEFAULT_PREDICATE=(filePath,name)=>filePath.includes(`.${name}.`);class RuntimeDefinition{constructor(name,filePredicate=DEFAULT_PREDICATE){this.name=name,this.filePredicate=filePredicate}getRuntimeFile(paths){return paths.find(path=>this.filePredicate(path,this.name))}require(file){}static create(def){return new RuntimeDefinition(def.name)}}exports.RuntimeDefinition=RuntimeDefinition},23522:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __awaiter=this&&this.__awaiter||function(thisArg,_arguments,P,generator){function adopt(value){return value instanceof P?value:new P(function(resolve){resolve(value)})}return new(P||(P=Promise))(function(resolve,reject){function fulfilled(value){try{step(generator.next(value))}catch(e){reject(e)}}function rejected(value){try{step(generator.throw(value))}catch(e){reject(e)}}function step(result){result.done?resolve(result.value):adopt(result.value).then(fulfilled,rejected)}step((generator=generator.apply(thisArg,_arguments||[])).next())})};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Runtimes=void 0;const exceptions_1=__webpack_require__(35555);class Runtimes{constructor(runtimeDefinition){this.runtimeDefinition=runtimeDefinition}add(runtime){return this.runtimeDefinition[runtime.name]=runtime,this}get(name){if(!this.runtimeDefinition[name])throw new exceptions_1.RuntimeNotDefined(name);return this.runtimeDefinition[name]}dispose(){}static load(graph){return __awaiter(this,void 0,void 0,function*(){const runtimes={};return graph.extensions.forEach(manifest=>{!manifest.declareRuntime||(runtimes[manifest.declareRuntime.name]=manifest.declareRuntime)}),new Runtimes(runtimes)})}}exports.Runtimes=Runtimes},80368:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.SlotRegistry=exports.Slot=void 0;var slot_1=__webpack_require__(32645);Object.defineProperty(exports,"Slot",{enumerable:!0,get:function(){return slot_1.Slot}});var registry_1=__webpack_require__(81149);Object.defineProperty(exports,"SlotRegistry",{enumerable:!0,get:function(){return registry_1.SlotRegistry}})},81149:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.SlotRegistry=void 0;class SlotRegistry{constructor(registerFn,map=new Map){this.registerFn=registerFn,this.map=map}get(id){return this.map.get(id)}toArray(){return Array.from(this.map.entries())}values(){return Array.from(this.map.values())}register(value){const id=this.registerFn();this.map.set(id,value)}}exports.SlotRegistry=SlotRegistry},32645:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Slot=void 0;const registry_1=__webpack_require__(81149);class Slot{static withType(){return registerFn=>new registry_1.SlotRegistry(registerFn)}}exports.Slot=Slot},42197:function(__unused_webpack_module,exports){"use strict";var __awaiter=this&&this.__awaiter||function(thisArg,_arguments,P,generator){function adopt(value){return value instanceof P?value:new P(function(resolve){resolve(value)})}return new(P||(P=Promise))(function(resolve,reject){function fulfilled(value){try{step(generator.next(value))}catch(e){reject(e)}}function rejected(value){try{step(generator.throw(value))}catch(e){reject(e)}}function step(result){result.done?resolve(result.value):adopt(result.value).then(fulfilled,rejected)}step((generator=generator.apply(thisArg,_arguments||[])).next())})};Object.defineProperty(exports,"__esModule",{value:!0}),exports.asyncForEach=void 0;function asyncForEach(array,callback){return __awaiter(this,void 0,void 0,function*(){for(let index=0;index<array.length;index+=1)yield callback(array[index],index,array)})}exports.asyncForEach=asyncForEach},17619:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.asyncForEach=void 0;var async_for_each_1=__webpack_require__(42197);Object.defineProperty(exports,"asyncForEach",{enumerable:!0,get:function(){return async_for_each_1.asyncForEach}})},92679:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)k!=="default"&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.VERSION_DELIMITER=void 0;const decamelize_1=__importDefault(__webpack_require__(14930)),path=__importStar(__webpack_require__(62005)),semver=__importStar(__webpack_require__(46285)),lodash_1=__webpack_require__(15510),component_version_1=__webpack_require__(55142),is_valid_id_chunk_1=__importDefault(__webpack_require__(6582)),is_valid_scope_name_1=__importDefault(__webpack_require__(83843)),exceptions_1=__webpack_require__(43096);exports.VERSION_DELIMITER="@";class BitId{constructor({scope,box,name,version}){if(!name)throw new exceptions_1.InvalidName(name);this.scope=scope||null,this.box=void 0,this.name=box?`${box}/${name}`:name,this.version=version||void 0,Object.freeze(this)}clone(){return new BitId(this)}changeScope(newScope){return new BitId({scope:newScope,name:this.name,version:this.version})}changeVersion(newVersion){return new BitId({scope:this.scope,name:this.name,version:newVersion})}isLocal(scopeName){return!this.scope||Boolean(scopeName&&scopeName===this.scope)}getVersion(){return(0,component_version_1.versionParser)(this.version)}hasVersion(){return Boolean(this.version&&this.version!==component_version_1.LATEST_VERSION)}hasScope(){return Boolean(this.scope)}hasSameName(id){return this.name===id.name}hasSameScope(id){return this.hasScope()&&id.hasScope()?this.scope===id.scope:!this.hasScope()&&!id.hasScope()}hasSameVersion(id){return this.hasVersion()&&id.hasVersion()?this.version===id.version:!this.hasVersion()&&!id.hasVersion()}toString(ignoreScope=!1,ignoreVersion=!1){const{name,version}=this,scope=this.scope,componentStr=ignoreScope||!scope?name:[scope,name].join("/");return ignoreVersion||!this.hasVersion()?componentStr:componentStr.concat(`${exports.VERSION_DELIMITER}${version}`)}toStringWithoutScope(){return this.toString(!0)}toStringWithoutVersion(){return this.toString(!1,!0)}toStringWithoutScopeAndVersion(){return this.toString(!0,!0)}isEqual(bitId){return this.hasSameName(bitId)&&this.hasSameScope(bitId)&&this.hasSameVersion(bitId)}isEqualWithoutVersion(bitId){return this.hasSameName(bitId)&&this.hasSameScope(bitId)}isEqualWithoutScopeAndVersion(bitId){return this.hasSameName(bitId)}serialize(){const obj={scope:this.scope,name:this.name,version:this.version};return this.hasVersion()||delete obj.version,this.hasScope()||delete obj.scope,obj}toFullPath(){if(!this.scope||!this.version)throw new Error("BitId.toFullPath is unable to generate a path without a scope or a version");return path.join(this.name,this.scope,this.version)}isVersionSnap(){return!(0,component_version_1.isTag)(this.version)}getVersionPreReleaseData(){return this.version?semver.prerelease(this.version):null}static getStringWithoutVersion(id){const splitted=id.split(exports.VERSION_DELIMITER);let res=splitted[0];return id.startsWith(exports.VERSION_DELIMITER)&&(res=`${exports.VERSION_DELIMITER}${splitted[1]}`),res}static getVersionOnlyFromString(id){return id.split(exports.VERSION_DELIMITER)[1]}static parse(id,hasScope=!0,version=component_version_1.LATEST_VERSION){if(typeof id!="string")throw new TypeError(`BitId.parse expects to get "id" as a string, instead, got ${typeof id}`);if(id.includes(exports.VERSION_DELIMITER)&&id.lastIndexOf(exports.VERSION_DELIMITER)>0){const[newId,newVersion]=id.split(exports.VERSION_DELIMITER);id=newId,version=newVersion}const getScopeAndName=()=>hasScope?BitId.getScopeAndName(id):{scope:void 0,name:id},{scope,name}=getScopeAndName();if(!(0,is_valid_id_chunk_1.default)(name))throw new exceptions_1.InvalidName(name);if(scope&&!(0,is_valid_scope_name_1.default)(scope))throw new exceptions_1.InvalidScopeName(scope,id);return new BitId({scope,name,version})}static getScopeAndName(id){const delimiterIndex=id.indexOf("/");if(delimiterIndex<0)throw new exceptions_1.InvalidBitId(id);const scope=id.substring(0,delimiterIndex),name=id.substring(delimiterIndex+1);return{scope,name}}static parseObsolete(id,version=component_version_1.LATEST_VERSION){if(id.includes(exports.VERSION_DELIMITER)){const[newId,newVersion]=id.split(exports.VERSION_DELIMITER);id=newId,version=newVersion}const idSplit=id.split("/");if(idSplit.length===3){const[scope,box,name]=idSplit;if(!(0,is_valid_id_chunk_1.default)(name,!1)||!(0,is_valid_id_chunk_1.default)(box,!1)||!(0,is_valid_scope_name_1.default)(scope))throw new exceptions_1.InvalidIdChunk(`${scope}/${box}/${name}`);return new BitId({scope,box,name,version})}if(idSplit.length===2){const[box,name]=idSplit;if(!(0,is_valid_id_chunk_1.default)(name,!1)||!(0,is_valid_id_chunk_1.default)(box,!1))throw new exceptions_1.InvalidIdChunk(`${box}/${name}`);return new BitId({box,name,version})}if(idSplit.length===1){const[name]=idSplit;if(!(0,is_valid_id_chunk_1.default)(name))throw new exceptions_1.InvalidIdChunk(name);return new BitId({name,version})}throw new exceptions_1.InvalidBitId(id)}static parseBackwardCompatible(id){return typeof id=="string"?BitId.parseObsolete(id):new BitId(id)}static getValidScopeName(scope){let cleanName=scope.toLowerCase().split("").map(char=>/^[$\-_!.a-z0-9]+$/.test(char)?char:"").join("");const nameSplitByDot=cleanName.split(".");if(nameSplitByDot.length>1&&(cleanName=`${(0,lodash_1.head)(nameSplitByDot)}.${(0,lodash_1.tail)(nameSplitByDot).join("")}`),!cleanName)throw new Error("scope name created by directory name have to contains at least one character or number");return cleanName}static getValidIdChunk(chunk){return(0,is_valid_id_chunk_1.default)(chunk)||(chunk=chunk.replace(/\./g,""),chunk=chunk.replace(/ /g,"-"),chunk=(0,decamelize_1.default)(chunk,"-")),chunk}static getValidBitId(box,name){return new BitId({name:BitId.getValidIdChunk(name),box:box?BitId.getValidIdChunk(box):void 0})}static isValidVersion(version){return(0,component_version_1.isTag)(version)||(0,component_version_1.isHash)(version)}static isValidSemver(version){return Boolean(semver.valid(version))}}exports.default=BitId},51862:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0});const lodash_1=__webpack_require__(15510),component_version_1=__webpack_require__(55142),bit_id_1=__importDefault(__webpack_require__(92679));class BitIds extends Array{serialize(){return this.map(bitId=>bitId.toString())}has(bitId){return Boolean(this.search(bitId))}hasWithoutVersion(bitId){return Boolean(this.searchWithoutVersion(bitId))}hasWithoutScope(bitId){return Boolean(this.searchWithoutScope(bitId))}hasWithoutScopeAndVersion(bitId){return Boolean(this.searchWithoutScopeAndVersion(bitId))}hasWithoutScopeAndVersionAsString(bitIdStr){return Boolean(this.find(id=>id.name===bitIdStr))}search(bitId){return this.find(id=>id.hasSameName(bitId)&&id.hasSameScope(bitId)&&id.hasSameVersion(bitId))}searchWithoutVersion(bitId){return this.find(id=>id.hasSameName(bitId)&&id.hasSameScope(bitId))}searchWithoutScopeAndVersion(bitId){return this.find(id=>id.hasSameName(bitId))}searchWithoutScope(bitId){return this.find(id=>id.hasSameName(bitId)&&id.hasSameVersion(bitId))}searchStrWithoutVersion(idStr){return this.find(id=>id.toStringWithoutVersion()===idStr)}searchStrWithoutScopeAndVersion(idStr){return this.find(id=>id.toStringWithoutScopeAndVersion()===idStr)}filterExact(bitId){return this.filter(id=>id.hasSameName(bitId)&&id.hasSameScope(bitId)&&id.hasSameVersion(bitId))}filterWithoutVersion(bitId){return this.filter(id=>id.hasSameName(bitId)&&id.hasSameScope(bitId))}filterWithoutScopeAndVersion(bitId){return this.filter(id=>id.hasSameName(bitId))}removeIfExist(bitId){return BitIds.fromArray(this.filter(id=>!id.isEqual(bitId)))}difference(bitIds){return BitIds.fromArray(this.filter(id=>!bitIds.search(id)))}removeIfExistWithoutVersion(bitId){return BitIds.fromArray(this.filter(id=>!id.isEqualWithoutVersion(bitId)))}removeMultipleIfExistWithoutVersion(bitIds){return BitIds.fromArray(this.filter(id=>!bitIds.hasWithoutVersion(id)))}toObject(){return this.reduce((acc,bitId)=>(acc[bitId.toString()]=bitId,acc),{})}static deserialize(array=[]){return new BitIds(...array.map(id=>bit_id_1.default.parse(id,!0)))}static deserializeObsolete(array=[]){return new BitIds(...array.map(id=>bit_id_1.default.parseObsolete(id)))}toString(){return this.map(id=>id.toString()).join(", ")}toGroupByIdWithoutVersion(){return this.reduce((acc,current)=>{const idStrWithoutVer=current.toStringWithoutVersion();return acc[idStrWithoutVer]?acc[idStrWithoutVer].push(current):acc[idStrWithoutVer]=new BitIds(current),acc},{})}toGroupByScopeName(idsWithDefaultScope){return this.reduce((acc,current)=>{const scopeName=(()=>{if(current.scope)return current.scope;const idWithDefaultScope=idsWithDefaultScope.searchWithoutScopeAndVersion(current);return idWithDefaultScope?idWithDefaultScope.scope:null})();if(!scopeName)throw new Error(`toGroupByScopeName() expect ids to have a scope name, got ${current.toString()}`);return acc[scopeName]?acc[scopeName].push(current):acc[scopeName]=new BitIds(current),acc},{})}findDuplicationsIgnoreVersion(){const duplications={};return this.forEach(id=>{const sameIds=this.filterWithoutVersion(id);sameIds.length>1&&(duplications[id.toStringWithoutVersion()]=sameIds)}),duplications}add(bitIds){bitIds.forEach(bitId=>{this.search(bitId)||this.push(bitId)})}static fromObject(dependencies){const array=[];return(0,lodash_1.forEach)(dependencies,(version,id)=>{array.push(bit_id_1.default.parse(id,!0,version))}),new BitIds(...array)}static fromArray(ids){const bitIds=new BitIds;return ids.forEach(id=>bitIds.push(id)),bitIds}static uniqFromArray(bitIds){const uniq=(0,lodash_1.uniqBy)(bitIds,id=>id.toString());return BitIds.fromArray(uniq)}throwForDuplicationIgnoreVersion(){this.forEach(bitId=>{const found=this.filterWithoutVersion(bitId);if(found.length>1)throw new Error(`bitIds has "${bitId.toStringWithoutVersion()}" duplicated as following:
|
9
|
+
The following dependencies succeeded loading:`}}exports.default=ExtensionPotentialCircular},73375:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.HarmonyAlreadyRunning=void 0;class HarmonyAlreadyRunning extends Error{}exports.HarmonyAlreadyRunning=HarmonyAlreadyRunning},39487:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.HarmonyError=void 0;class HarmonyError extends Error{}exports.HarmonyError=HarmonyError},20361:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.HookNotFound=void 0;class HookNotFound extends Error{}exports.HookNotFound=HookNotFound},11374:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.ExtensionInstantiationException=exports.HookNotFound=exports.HarmonyAlreadyRunning=exports.ExtensionPotentialCircular=exports.ExtensionLoadError=void 0;var extension_load_error_1=__webpack_require__(28486);Object.defineProperty(exports,"ExtensionLoadError",{enumerable:!0,get:function(){return __importDefault(extension_load_error_1).default}});var extension_potential_circular_1=__webpack_require__(31910);Object.defineProperty(exports,"ExtensionPotentialCircular",{enumerable:!0,get:function(){return __importDefault(extension_potential_circular_1).default}});var harmony_already_running_1=__webpack_require__(73375);Object.defineProperty(exports,"HarmonyAlreadyRunning",{enumerable:!0,get:function(){return harmony_already_running_1.HarmonyAlreadyRunning}});var hook_not_found_1=__webpack_require__(20361);Object.defineProperty(exports,"HookNotFound",{enumerable:!0,get:function(){return hook_not_found_1.HookNotFound}});var extension_init_error_1=__webpack_require__(97012);Object.defineProperty(exports,"ExtensionInstantiationException",{enumerable:!0,get:function(){return extension_init_error_1.ExtensionInstantiationException}})},58801:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __awaiter=this&&this.__awaiter||function(thisArg,_arguments,P,generator){function adopt(value){return value instanceof P?value:new P(function(resolve){resolve(value)})}return new(P||(P=Promise))(function(resolve,reject){function fulfilled(value){try{step(generator.next(value))}catch(e){reject(e)}}function rejected(value){try{step(generator.throw(value))}catch(e){reject(e)}}function step(result){result.done?resolve(result.value):adopt(result.value).then(fulfilled,rejected)}step((generator=generator.apply(thisArg,_arguments||[])).next())})};Object.defineProperty(exports,"__esModule",{value:!0});const cleargraph_1=__webpack_require__(74793),from_extension_1=__webpack_require__(63816);function getName(manifest){return Reflect.getMetadata("harmony:name",manifest)||manifest.id||manifest.name}class DependencyGraph extends cleargraph_1.Graph{constructor(){super(...arguments);this.cache=new Map}getRuntimeDependencies(aspect,runtime,options={}){const dependencies=this.successors(aspect.name),runtimeDeps=this.successors(aspect.name,edge=>edge.runtime?edge.runtime===runtime.name:!1),runtimeManifest=aspect.getRuntime(runtime);return runtimeManifest?runtimeDeps&&runtimeDeps.size?this.sortDeps(runtimeManifest.dependencies,Array.from(runtimeDeps.values()),options):this.sortDeps(runtimeManifest.dependencies,Array.from(dependencies.values()),options):Array.from(dependencies.values())}sortDeps(originalDependencies,targetDependencies,options={}){const _originalDependencies=options.getName?originalDependencies?.map(aspect=>(options.getName&&(aspect.id=options.getName(aspect)),aspect))||[]:originalDependencies;return targetDependencies.sort((a,b)=>_originalDependencies.findIndex(item=>item.id===a.id)-_originalDependencies.findIndex(item=>item.id===b.id))}byExecutionOrder(){return this.toposort(!0)}enrichRuntimeExtension(id,aspect,runtime,runtimes,requireFn,options={}){return __awaiter(this,void 0,void 0,function*(){yield requireFn(aspect,runtime);const runtimeManifest=aspect.getRuntime(runtime);if(!runtimeManifest)return;const deps=runtimeManifest.dependencies;if(!deps)return;const promises=deps.map(dep=>__awaiter(this,void 0,void 0,function*(){const depId=options.getName?options.getName(dep):dep.id;if(!this.hasNode(depId)){this.add(dep),dep.declareRuntime&&runtimes.add(dep.declareRuntime);const node=this.get(depId);if(!node)return;yield requireFn(node,runtime),yield this.enrichRuntimeExtension(depId,this.get(depId),runtime,runtimes,requireFn)}this.setEdge(id,depId,{runtime:runtime.name,type:"runtime-dependency"})}));return Promise.all(promises)})}enrichRuntime(runtime,runtimes,requireFn,options={}){return __awaiter(this,void 0,void 0,function*(){const promises=Array.from(this.nodes.entries()).map(([id,aspect])=>__awaiter(this,void 0,void 0,function*(){return this.enrichRuntimeExtension(id,aspect,runtime,runtimes,requireFn,options)}));return Promise.all(promises)})}add(manifest){const{vertices,edges}=(0,from_extension_1.fromExtension)(manifest);return this.setNodes(vertices),this.setEdges(edges),this}load(extensions){const newExtensions=extensions.filter(extension=>extension.id?!this.get(extension.id):!1),{vertices,edges}=(0,from_extension_1.fromExtensions)(newExtensions);return this.setNodes(vertices,!1),this.setEdges(edges),this}getExtension(manifest){const id=getName(manifest),cachedVertex=this.cache.get(id);if(cachedVertex)return cachedVertex;const res=this.node(id);return res?(this.cache.set(res.name,res),res):null}get extensions(){return Array.from(this.nodes.values())}get aspects(){return this.extensions}get(id){const cachedVertex=this.cache.get(id);if(cachedVertex)return cachedVertex;const res=this.node(id);return res?(this.cache.set(res.name,res),res):null}static fromRoot(extension){const{vertices,edges}=(0,from_extension_1.fromExtension)(extension);return new DependencyGraph(vertices,edges)}static from(extensions,options={}){const{vertices,edges}=(0,from_extension_1.fromExtensions)(extensions,options);return new DependencyGraph(vertices,edges)}}exports.default=DependencyGraph},63816:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.fromExtensions=exports.fromExtension=void 0;const factory_1=__webpack_require__(73436),extension_potential_circular_1=__importDefault(__webpack_require__(31910));function getName(manifest){return Reflect.getMetadata("harmony:name",manifest)||manifest.id||manifest.name}function fromExtension(extension,options={}){const vertices={};let edges=[];function iterate(root){const id=options.getName?options.getName(root):getName(root);if(vertices[id])return;const instance=(0,factory_1.extensionFactory)(root),validDeps=instance.dependencies.filter(dep=>dep).map(dep=>(0,factory_1.extensionFactory)(dep));if(instance.dependencies.length>validDeps.length)throw new extension_potential_circular_1.default(instance,validDeps);vertices[id]=instance;const newEdges=validDeps.map(dep=>({sourceId:id,targetId:dep.name,edge:{type:"dependency"}}));edges=edges.concat(newEdges),instance.dependencies.forEach(dep=>iterate(dep))}iterate(extension);let vertexArray=[];for(let[key,value]of Object.entries(vertices))vertexArray.push({id:key,node:value});return{vertices:vertexArray,edges}}exports.fromExtension=fromExtension;function fromExtensions(extensions,options={}){return extensions.map(ext=>fromExtension(ext,options)).reduce((acc,subgraph)=>(acc.edges=acc.edges.concat(subgraph.edges),acc.vertices=acc.vertices.concat(subgraph.vertices),acc),{vertices:[],edges:[]})}exports.fromExtensions=fromExtensions},17714:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.HookRegistry=exports.hook=exports.createHook=exports.register=exports.provider=exports.ExtensionDecorator=void 0;const map={};function ExtensionDecorator({name,dependencies}={}){function classDecorator(constructor){Reflect.defineMetadata("harmony:name",name||constructor.name,constructor),Reflect.defineMetadata("harmony:dependencies",calculateDependnecies(constructor,dependencies),constructor)}return classDecorator}exports.ExtensionDecorator=ExtensionDecorator;function provider(){return function(target,propertyKey,descriptor){const keys=Reflect.getMetadata("design:paramtypes",descriptor)}}exports.provider=provider;function providerFn(classExtension){return classExtension.provide?classExtension.provide:classExtension.provider}function calculateDependnecies(classExtension,deps){function fromMetadata(){return providerFn(classExtension)?[]:Reflect.getMetadata("design:paramtypes",classExtension)}const dependnecies=deps||fromMetadata()||[],hookDeps=classExtension.__hookDeps?classExtension.__hookDeps:[];return dependnecies.concat(hookDeps)||[]}function register(extension,name){return function(target,propertyKey,descriptor){const extensionName=Reflect.getMetadata("harmony:name",extension);map[extensionName]||(map[extensionName]={});const hook2=map[extensionName][name||propertyKey];!hook2||hook2.register(target[propertyKey])}}exports.register=register;function createHook(){const randomId=Math.random().toString(36).substring(2);map[randomId]=HookRegistry.create();const decorator=function(target,propertyKey,descriptor){map[randomId].register(descriptor.value)};return decorator.hash=randomId,decorator}exports.createHook=createHook;function hook(name){return function(target,propertyKey){let instance=HookRegistry.create();const extensionName=Reflect.getMetadata("harmony:name",target.constructor),hookName=name||propertyKey;map[extensionName]?map[extensionName][hookName]=instance:map[extensionName]={[hookName]:instance},Object.defineProperty(target,propertyKey,{get:()=>instance,set:value=>{instance=value}})}}exports.hook=hook;class HookRegistry{constructor(fillers,hash){this.fillers=fillers,this.hash=hash}register(filler){this.fillers.push(filler)}list(){return this.fillers}static of(hook2){return map[hook2.hash]}static create(){return new HookRegistry([])}}exports.HookRegistry=HookRegistry},86560:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __awaiter=this&&this.__awaiter||function(thisArg,_arguments,P,generator){function adopt(value){return value instanceof P?value:new P(function(resolve){resolve(value)})}return new(P||(P=Promise))(function(resolve,reject){function fulfilled(value){try{step(generator.next(value))}catch(e){reject(e)}}function rejected(value){try{step(generator.throw(value))}catch(e){reject(e)}}function step(result){result.done?resolve(result.value):adopt(result.value).then(fulfilled,rejected)}step((generator=generator.apply(thisArg,_arguments||[])).next())})};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Extension=void 0;const extension_init_error_1=__webpack_require__(97012);class Extension{constructor(manifest){this.manifest=manifest,this._instance=null,this._loaded=!1}get instance(){return this._instance}get name(){return Reflect.getMetadata("harmony:name",this.manifest)||this.manifest.id||this.manifest.name}get id(){return this.name}get dependencies(){return Reflect.getMetadata("harmony:dependencies",this.manifest)||this.manifest.dependencies||[]}get provider(){return Reflect.getMetadata("harmony:provider",this.manifest)||this.manifest.provider}get files(){return this.manifest.files}get loaded(){return this._loaded}toString(){return JSON.stringify(this.name)}buildSlotRegistries(slots,context){return slots.map(slot=>slot(()=>context.current))}get declareRuntime(){return this.manifest.declareRuntime}getRuntime(runtime){return this.manifest.getRuntime(runtime)}getRuntimes(){return this.manifest.getRuntimes()}getSlots(extensionRuntime){return extensionRuntime.slots&&extensionRuntime.slots.length?extensionRuntime.slots:this.manifest.slots||[]}getConfig(context,extensionRuntime){const defaultConfig=extensionRuntime.defaultConfig||this.manifest.defaultConfig||{},config=context.config.get(this.name)||{};return Object.assign({},defaultConfig,config)}__run(dependencies,context,runtime){return __awaiter(this,void 0,void 0,function*(){const name=this.name;context.initExtension(name);const extensionRuntime=this.getRuntime(runtime);if(!extensionRuntime)return;const registries=this.buildSlotRegistries(this.getSlots(extensionRuntime),context),config=this.getConfig(context,extensionRuntime);if(!this.loaded){if(extensionRuntime.provider)this._instance=yield extensionRuntime.provider(dependencies,config,registries,context);else try{this._instance=new extensionRuntime.manifest(...dependencies)}catch(err){throw new extension_init_error_1.ExtensionInstantiationException(err.toString())}return this._loaded=!0,this._instance}return context.endExtension(),Promise.resolve(this.instance)})}}exports.Extension=Extension},56876:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.createHook=exports.provider=exports.HookRegistry=exports.hook=exports.register=exports.ExtensionDecorator=exports.Extension=void 0;var extension_1=__webpack_require__(86560);Object.defineProperty(exports,"Extension",{enumerable:!0,get:function(){return extension_1.Extension}});var decorator_1=__webpack_require__(17714);Object.defineProperty(exports,"ExtensionDecorator",{enumerable:!0,get:function(){return decorator_1.ExtensionDecorator}}),Object.defineProperty(exports,"register",{enumerable:!0,get:function(){return decorator_1.register}}),Object.defineProperty(exports,"hook",{enumerable:!0,get:function(){return decorator_1.hook}}),Object.defineProperty(exports,"HookRegistry",{enumerable:!0,get:function(){return decorator_1.HookRegistry}}),Object.defineProperty(exports,"provider",{enumerable:!0,get:function(){return decorator_1.provider}}),Object.defineProperty(exports,"createHook",{enumerable:!0,get:function(){return decorator_1.createHook}})},5669:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.extensionFactory=void 0;const extension_1=__webpack_require__(86560);function extensionFactory(manifest){return manifest.provide&&(manifest.provider=manifest.provide),new extension_1.Extension(manifest)}exports.extensionFactory=extensionFactory},73436:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.extensionFactory=void 0;var extension_factory_1=__webpack_require__(5669);Object.defineProperty(exports,"extensionFactory",{enumerable:!0,get:function(){return extension_factory_1.extensionFactory}})},10769:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __awaiter=this&&this.__awaiter||function(thisArg,_arguments,P,generator){function adopt(value){return value instanceof P?value:new P(function(resolve){resolve(value)})}return new(P||(P=Promise))(function(resolve,reject){function fulfilled(value){try{step(generator.next(value))}catch(e){reject(e)}}function rejected(value){try{step(generator.throw(value))}catch(e){reject(e)}}function step(result){result.done?resolve(result.value):adopt(result.value).then(fulfilled,rejected)}step((generator=generator.apply(thisArg,_arguments||[])).next())})},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Harmony=void 0,__webpack_require__(93880);const extension_graph_1=__importDefault(__webpack_require__(58801)),exceptions_1=__webpack_require__(11374),utils_1=__webpack_require__(25405),config_1=__webpack_require__(9854),runtimes_1=__webpack_require__(67242),exceptions_2=__webpack_require__(41318);class Harmony{constructor(graph,config,runtimes,activeRuntime,depOptions){this.graph=graph,this.config=config,this.runtimes=runtimes,this.activeRuntime=activeRuntime,this.depOptions=depOptions,this.current=null}get extensions(){return this.graph.nodes}get extensionsIds(){return[...this.graph.nodes.keys()]}load(extensions){return __awaiter(this,void 0,void 0,function*(){return this.set(extensions)})}set(extensions){return __awaiter(this,void 0,void 0,function*(){this.graph.load(extensions);const extensionsToLoad=extensions.map(ext=>Reflect.getMetadata("harmony:name",ext)||ext.id||ext.name);yield this.graph.enrichRuntime(this.runtime,this.runtimes,()=>{});const subgraphs=this.graph.successorsSubgraph(extensionsToLoad);if(subgraphs){const executionOrder=subgraphs.toposort(!0);yield(0,utils_1.asyncForEach)(executionOrder,ext=>__awaiter(this,void 0,void 0,function*(){if(!this.runtime)throw new exceptions_2.RuntimeNotDefined(this.activeRuntime);yield this.runOne(ext,this.runtime)}))}})}runOne(extension,runtime){return __awaiter(this,void 0,void 0,function*(){if(extension.loaded)return;const instances=this.graph.getRuntimeDependencies(extension,runtime,this.depOptions).map(extension2=>extension2.instance);try{return extension.__run(instances,this,runtime)}catch(err){throw new exceptions_1.ExtensionLoadError(extension,err)}})}getDependencies(aspect){if(!this.runtime)throw new exceptions_2.RuntimeNotDefined(this.activeRuntime);return this.graph.getRuntimeDependencies(aspect,this.runtime,this.depOptions)}initExtension(id){this.current=id}endExtension(){this.current=null}get(id){const extension=this.graph.get(id);if(!extension||!extension.instance)throw new Error(`failed loading extension ${id}`);return extension.instance}resolveRuntime(name){return this.runtimes.get(name)}run(requireFn){return __awaiter(this,void 0,void 0,function*(){const runtime=this.resolveRuntime(this.activeRuntime);this.runtime=runtime;const defaultRequireFn=(aspect,runtime2)=>__awaiter(this,void 0,void 0,function*(){runtime2.getRuntimeFile(aspect.files)});yield this.graph.enrichRuntime(runtime,this.runtimes,requireFn||defaultRequireFn,this.depOptions);const executionOrder=this.graph.byExecutionOrder();yield(0,utils_1.asyncForEach)(executionOrder,ext=>__awaiter(this,void 0,void 0,function*(){yield this.runOne(ext,runtime)}))})}static load(aspects,runtime,globalConfig,options={}){return __awaiter(this,void 0,void 0,function*(){const aspectGraph=extension_graph_1.default.from(aspects,options),runtimes=yield runtimes_1.Runtimes.load(aspectGraph);return new Harmony(aspectGraph,config_1.Config.from(globalConfig),runtimes,runtime,options)})}}exports.Harmony=Harmony},83138:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.AspectGraph=exports.RuntimeDefinition=exports.Aspect=exports.HarmonyError=exports.SlotRegistry=exports.Slot=exports.Harmony=exports.createHook=exports.provider=exports.hook=exports.HookRegistry=exports.register=exports.Extension=exports.ExtensionDecorator=void 0;var extension_1=__webpack_require__(56876);Object.defineProperty(exports,"ExtensionDecorator",{enumerable:!0,get:function(){return extension_1.ExtensionDecorator}}),Object.defineProperty(exports,"Extension",{enumerable:!0,get:function(){return extension_1.Extension}}),Object.defineProperty(exports,"register",{enumerable:!0,get:function(){return extension_1.register}}),Object.defineProperty(exports,"HookRegistry",{enumerable:!0,get:function(){return extension_1.HookRegistry}}),Object.defineProperty(exports,"hook",{enumerable:!0,get:function(){return extension_1.hook}}),Object.defineProperty(exports,"provider",{enumerable:!0,get:function(){return extension_1.provider}}),Object.defineProperty(exports,"createHook",{enumerable:!0,get:function(){return extension_1.createHook}});var harmony_1=__webpack_require__(10769);Object.defineProperty(exports,"Harmony",{enumerable:!0,get:function(){return harmony_1.Harmony}});var slots_1=__webpack_require__(14021);Object.defineProperty(exports,"Slot",{enumerable:!0,get:function(){return slots_1.Slot}}),Object.defineProperty(exports,"SlotRegistry",{enumerable:!0,get:function(){return slots_1.SlotRegistry}});var harmony_error_1=__webpack_require__(39487);Object.defineProperty(exports,"HarmonyError",{enumerable:!0,get:function(){return harmony_error_1.HarmonyError}});var aspect_1=__webpack_require__(69702);Object.defineProperty(exports,"Aspect",{enumerable:!0,get:function(){return aspect_1.Aspect}});var runtimes_1=__webpack_require__(43466);Object.defineProperty(exports,"RuntimeDefinition",{enumerable:!0,get:function(){return runtimes_1.RuntimeDefinition}});var extension_graph_1=__webpack_require__(58801);Object.defineProperty(exports,"AspectGraph",{enumerable:!0,get:function(){return __importDefault(extension_graph_1).default}})},41318:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.RuntimeModuleError=exports.RuntimeNotDefined=void 0;var runtime_not_defined_1=__webpack_require__(85545);Object.defineProperty(exports,"RuntimeNotDefined",{enumerable:!0,get:function(){return runtime_not_defined_1.RuntimeNotDefined}});var runtime_module_error_1=__webpack_require__(67633);Object.defineProperty(exports,"RuntimeModuleError",{enumerable:!0,get:function(){return runtime_module_error_1.RuntimeModuleError}})},67633:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.RuntimeModuleError=void 0;class RuntimeModuleError extends Error{constructor(err){super(`failed to load Harmony aspect with error message: ${err.message}`);this.err=err}get stack(){return this.err.stack}}exports.RuntimeModuleError=RuntimeModuleError},85545:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.RuntimeNotDefined=void 0;class RuntimeNotDefined extends Error{constructor(name){super(`runtime: '${name}' was not defined by any aspect`)}}exports.RuntimeNotDefined=RuntimeNotDefined},43466:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.RuntimeDefinition=exports.Runtimes=void 0;var runtimes_1=__webpack_require__(67242);Object.defineProperty(exports,"Runtimes",{enumerable:!0,get:function(){return runtimes_1.Runtimes}});var runtime_definition_1=__webpack_require__(55273);Object.defineProperty(exports,"RuntimeDefinition",{enumerable:!0,get:function(){return runtime_definition_1.RuntimeDefinition}})},55273:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.RuntimeDefinition=void 0;const DEFAULT_PREDICATE=(filePath,name)=>filePath.includes(`.${name}.`);class RuntimeDefinition{constructor(name,filePredicate=DEFAULT_PREDICATE){this.name=name,this.filePredicate=filePredicate}getRuntimeFile(paths){return paths.find(path=>this.filePredicate(path,this.name))}require(file){}static create(def){return new RuntimeDefinition(def.name)}}exports.RuntimeDefinition=RuntimeDefinition},67242:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __awaiter=this&&this.__awaiter||function(thisArg,_arguments,P,generator){function adopt(value){return value instanceof P?value:new P(function(resolve){resolve(value)})}return new(P||(P=Promise))(function(resolve,reject){function fulfilled(value){try{step(generator.next(value))}catch(e){reject(e)}}function rejected(value){try{step(generator.throw(value))}catch(e){reject(e)}}function step(result){result.done?resolve(result.value):adopt(result.value).then(fulfilled,rejected)}step((generator=generator.apply(thisArg,_arguments||[])).next())})};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Runtimes=void 0;const exceptions_1=__webpack_require__(41318);class Runtimes{constructor(runtimeDefinition){this.runtimeDefinition=runtimeDefinition}add(runtime){return this.runtimeDefinition[runtime.name]=runtime,this}get(name){if(!this.runtimeDefinition[name])throw new exceptions_1.RuntimeNotDefined(name);return this.runtimeDefinition[name]}dispose(){}static load(graph){return __awaiter(this,void 0,void 0,function*(){const runtimes={};return graph.extensions.forEach(manifest=>{!manifest.declareRuntime||(runtimes[manifest.declareRuntime.name]=manifest.declareRuntime)}),new Runtimes(runtimes)})}}exports.Runtimes=Runtimes},14021:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.SlotRegistry=exports.Slot=void 0;var slot_1=__webpack_require__(76959);Object.defineProperty(exports,"Slot",{enumerable:!0,get:function(){return slot_1.Slot}});var registry_1=__webpack_require__(62623);Object.defineProperty(exports,"SlotRegistry",{enumerable:!0,get:function(){return registry_1.SlotRegistry}})},62623:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.SlotRegistry=void 0;class SlotRegistry{constructor(registerFn,map=new Map){this.registerFn=registerFn,this.map=map}get(id){return this.map.get(id)}toArray(){return Array.from(this.map.entries())}values(){return Array.from(this.map.values())}register(value){const id=this.registerFn();this.map.set(id,value)}}exports.SlotRegistry=SlotRegistry},76959:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Slot=void 0;const registry_1=__webpack_require__(62623);class Slot{static withType(){return registerFn=>new registry_1.SlotRegistry(registerFn)}}exports.Slot=Slot},26926:function(__unused_webpack_module,exports){"use strict";var __awaiter=this&&this.__awaiter||function(thisArg,_arguments,P,generator){function adopt(value){return value instanceof P?value:new P(function(resolve){resolve(value)})}return new(P||(P=Promise))(function(resolve,reject){function fulfilled(value){try{step(generator.next(value))}catch(e){reject(e)}}function rejected(value){try{step(generator.throw(value))}catch(e){reject(e)}}function step(result){result.done?resolve(result.value):adopt(result.value).then(fulfilled,rejected)}step((generator=generator.apply(thisArg,_arguments||[])).next())})};Object.defineProperty(exports,"__esModule",{value:!0}),exports.asyncForEach=void 0;function asyncForEach(array,callback){return __awaiter(this,void 0,void 0,function*(){for(let index=0;index<array.length;index+=1)yield callback(array[index],index,array)})}exports.asyncForEach=asyncForEach},25405:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.asyncForEach=void 0;var async_for_each_1=__webpack_require__(26926);Object.defineProperty(exports,"asyncForEach",{enumerable:!0,get:function(){return async_for_each_1.asyncForEach}})},93266:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)k!=="default"&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.VERSION_DELIMITER=void 0;const decamelize_1=__importDefault(__webpack_require__(52523)),path=__importStar(__webpack_require__(62005)),semver=__importStar(__webpack_require__(97765)),lodash_1=__webpack_require__(81743),component_version_1=__webpack_require__(60378),is_valid_id_chunk_1=__importDefault(__webpack_require__(50298)),is_valid_scope_name_1=__importDefault(__webpack_require__(6626)),exceptions_1=__webpack_require__(48561);exports.VERSION_DELIMITER="@";class BitId{constructor({scope,box,name,version}){if(!name)throw new exceptions_1.InvalidName(name);this.scope=scope||null,this.box=void 0,this.name=box?`${box}/${name}`:name,this.version=version||void 0,Object.freeze(this)}clone(){return new BitId(this)}changeScope(newScope){return new BitId({scope:newScope,name:this.name,version:this.version})}changeVersion(newVersion){return new BitId({scope:this.scope,name:this.name,version:newVersion})}isLocal(scopeName){return!this.scope||Boolean(scopeName&&scopeName===this.scope)}getVersion(){return(0,component_version_1.versionParser)(this.version)}hasVersion(){return Boolean(this.version&&this.version!==component_version_1.LATEST_VERSION)}hasScope(){return Boolean(this.scope)}hasSameName(id){return this.name===id.name}hasSameScope(id){return this.hasScope()&&id.hasScope()?this.scope===id.scope:!this.hasScope()&&!id.hasScope()}hasSameVersion(id){return this.hasVersion()&&id.hasVersion()?this.version===id.version:!this.hasVersion()&&!id.hasVersion()}toString(ignoreScope=!1,ignoreVersion=!1){const{name,version}=this,scope=this.scope,componentStr=ignoreScope||!scope?name:[scope,name].join("/");return ignoreVersion||!this.hasVersion()?componentStr:componentStr.concat(`${exports.VERSION_DELIMITER}${version}`)}toStringWithoutScope(){return this.toString(!0)}toStringWithoutVersion(){return this.toString(!1,!0)}toStringWithoutScopeAndVersion(){return this.toString(!0,!0)}isEqual(bitId){return this.hasSameName(bitId)&&this.hasSameScope(bitId)&&this.hasSameVersion(bitId)}isEqualWithoutVersion(bitId){return this.hasSameName(bitId)&&this.hasSameScope(bitId)}isEqualWithoutScopeAndVersion(bitId){return this.hasSameName(bitId)}serialize(){const obj={scope:this.scope,name:this.name,version:this.version};return this.hasVersion()||delete obj.version,this.hasScope()||delete obj.scope,obj}toFullPath(){if(!this.scope||!this.version)throw new Error("BitId.toFullPath is unable to generate a path without a scope or a version");return path.join(this.name,this.scope,this.version)}isVersionSnap(){return!(0,component_version_1.isTag)(this.version)}getVersionPreReleaseData(){return this.version?semver.prerelease(this.version):null}static getStringWithoutVersion(id){const splitted=id.split(exports.VERSION_DELIMITER);let res=splitted[0];return id.startsWith(exports.VERSION_DELIMITER)&&(res=`${exports.VERSION_DELIMITER}${splitted[1]}`),res}static getVersionOnlyFromString(id){return id.split(exports.VERSION_DELIMITER)[1]}static parse(id,hasScope=!0,version=component_version_1.LATEST_VERSION){if(typeof id!="string")throw new TypeError(`BitId.parse expects to get "id" as a string, instead, got ${typeof id}`);if(id.includes(exports.VERSION_DELIMITER)&&id.lastIndexOf(exports.VERSION_DELIMITER)>0){const[newId,newVersion]=id.split(exports.VERSION_DELIMITER);id=newId,version=newVersion}const getScopeAndName=()=>hasScope?BitId.getScopeAndName(id):{scope:void 0,name:id},{scope,name}=getScopeAndName();if(!(0,is_valid_id_chunk_1.default)(name))throw new exceptions_1.InvalidName(name);if(scope&&!(0,is_valid_scope_name_1.default)(scope))throw new exceptions_1.InvalidScopeName(scope,id);return new BitId({scope,name,version})}static getScopeAndName(id){const delimiterIndex=id.indexOf("/");if(delimiterIndex<0)throw new exceptions_1.InvalidBitId(id);const scope=id.substring(0,delimiterIndex),name=id.substring(delimiterIndex+1);return{scope,name}}static parseObsolete(id,version=component_version_1.LATEST_VERSION){if(id.includes(exports.VERSION_DELIMITER)){const[newId,newVersion]=id.split(exports.VERSION_DELIMITER);id=newId,version=newVersion}const idSplit=id.split("/");if(idSplit.length===3){const[scope,box,name]=idSplit;if(!(0,is_valid_id_chunk_1.default)(name,!1)||!(0,is_valid_id_chunk_1.default)(box,!1)||!(0,is_valid_scope_name_1.default)(scope))throw new exceptions_1.InvalidIdChunk(`${scope}/${box}/${name}`);return new BitId({scope,box,name,version})}if(idSplit.length===2){const[box,name]=idSplit;if(!(0,is_valid_id_chunk_1.default)(name,!1)||!(0,is_valid_id_chunk_1.default)(box,!1))throw new exceptions_1.InvalidIdChunk(`${box}/${name}`);return new BitId({box,name,version})}if(idSplit.length===1){const[name]=idSplit;if(!(0,is_valid_id_chunk_1.default)(name))throw new exceptions_1.InvalidIdChunk(name);return new BitId({name,version})}throw new exceptions_1.InvalidBitId(id)}static parseBackwardCompatible(id){return typeof id=="string"?BitId.parseObsolete(id):new BitId(id)}static getValidScopeName(scope){let cleanName=scope.toLowerCase().split("").map(char=>/^[$\-_!.a-z0-9]+$/.test(char)?char:"").join("");const nameSplitByDot=cleanName.split(".");if(nameSplitByDot.length>1&&(cleanName=`${(0,lodash_1.head)(nameSplitByDot)}.${(0,lodash_1.tail)(nameSplitByDot).join("")}`),!cleanName)throw new Error("scope name created by directory name have to contains at least one character or number");return cleanName}static getValidIdChunk(chunk){return(0,is_valid_id_chunk_1.default)(chunk)||(chunk=chunk.replace(/\./g,""),chunk=chunk.replace(/ /g,"-"),chunk=(0,decamelize_1.default)(chunk,"-")),chunk}static getValidBitId(box,name){return new BitId({name:BitId.getValidIdChunk(name),box:box?BitId.getValidIdChunk(box):void 0})}static isValidVersion(version){return(0,component_version_1.isTag)(version)||(0,component_version_1.isHash)(version)}static isValidSemver(version){return Boolean(semver.valid(version))}}exports.default=BitId},39328:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0});const lodash_1=__webpack_require__(81743),component_version_1=__webpack_require__(60378),bit_id_1=__importDefault(__webpack_require__(93266));class BitIds extends Array{serialize(){return this.map(bitId=>bitId.toString())}has(bitId){return Boolean(this.search(bitId))}hasWithoutVersion(bitId){return Boolean(this.searchWithoutVersion(bitId))}hasWithoutScope(bitId){return Boolean(this.searchWithoutScope(bitId))}hasWithoutScopeAndVersion(bitId){return Boolean(this.searchWithoutScopeAndVersion(bitId))}hasWithoutScopeAndVersionAsString(bitIdStr){return Boolean(this.find(id=>id.name===bitIdStr))}search(bitId){return this.find(id=>id.hasSameName(bitId)&&id.hasSameScope(bitId)&&id.hasSameVersion(bitId))}searchWithoutVersion(bitId){return this.find(id=>id.hasSameName(bitId)&&id.hasSameScope(bitId))}searchWithoutScopeAndVersion(bitId){return this.find(id=>id.hasSameName(bitId))}searchWithoutScope(bitId){return this.find(id=>id.hasSameName(bitId)&&id.hasSameVersion(bitId))}searchStrWithoutVersion(idStr){return this.find(id=>id.toStringWithoutVersion()===idStr)}searchStrWithoutScopeAndVersion(idStr){return this.find(id=>id.toStringWithoutScopeAndVersion()===idStr)}filterExact(bitId){return this.filter(id=>id.hasSameName(bitId)&&id.hasSameScope(bitId)&&id.hasSameVersion(bitId))}filterWithoutVersion(bitId){return this.filter(id=>id.hasSameName(bitId)&&id.hasSameScope(bitId))}filterWithoutScopeAndVersion(bitId){return this.filter(id=>id.hasSameName(bitId))}removeIfExist(bitId){return BitIds.fromArray(this.filter(id=>!id.isEqual(bitId)))}difference(bitIds){return BitIds.fromArray(this.filter(id=>!bitIds.search(id)))}removeIfExistWithoutVersion(bitId){return BitIds.fromArray(this.filter(id=>!id.isEqualWithoutVersion(bitId)))}removeMultipleIfExistWithoutVersion(bitIds){return BitIds.fromArray(this.filter(id=>!bitIds.hasWithoutVersion(id)))}toObject(){return this.reduce((acc,bitId)=>(acc[bitId.toString()]=bitId,acc),{})}static deserialize(array=[]){return new BitIds(...array.map(id=>bit_id_1.default.parse(id,!0)))}static deserializeObsolete(array=[]){return new BitIds(...array.map(id=>bit_id_1.default.parseObsolete(id)))}toString(){return this.map(id=>id.toString()).join(", ")}toGroupByIdWithoutVersion(){return this.reduce((acc,current)=>{const idStrWithoutVer=current.toStringWithoutVersion();return acc[idStrWithoutVer]?acc[idStrWithoutVer].push(current):acc[idStrWithoutVer]=new BitIds(current),acc},{})}toGroupByScopeName(idsWithDefaultScope){return this.reduce((acc,current)=>{const scopeName=(()=>{if(current.scope)return current.scope;const idWithDefaultScope=idsWithDefaultScope.searchWithoutScopeAndVersion(current);return idWithDefaultScope?idWithDefaultScope.scope:null})();if(!scopeName)throw new Error(`toGroupByScopeName() expect ids to have a scope name, got ${current.toString()}`);return acc[scopeName]?acc[scopeName].push(current):acc[scopeName]=new BitIds(current),acc},{})}findDuplicationsIgnoreVersion(){const duplications={};return this.forEach(id=>{const sameIds=this.filterWithoutVersion(id);sameIds.length>1&&(duplications[id.toStringWithoutVersion()]=sameIds)}),duplications}add(bitIds){bitIds.forEach(bitId=>{this.search(bitId)||this.push(bitId)})}static fromObject(dependencies){const array=[];return(0,lodash_1.forEach)(dependencies,(version,id)=>{array.push(bit_id_1.default.parse(id,!0,version))}),new BitIds(...array)}static fromArray(ids){const bitIds=new BitIds;return ids.forEach(id=>bitIds.push(id)),bitIds}static uniqFromArray(bitIds){const uniq=(0,lodash_1.uniqBy)(bitIds,id=>id.toString());return BitIds.fromArray(uniq)}throwForDuplicationIgnoreVersion(){this.forEach(bitId=>{const found=this.filterWithoutVersion(bitId);if(found.length>1)throw new Error(`bitIds has "${bitId.toStringWithoutVersion()}" duplicated as following:
|
10
10
|
${found.map(id=>id.toString()).join(`
|
11
|
-
`)}`)})}toVersionLatest(){return BitIds.uniqFromArray(this.map(id=>id.changeVersion(component_version_1.LATEST_VERSION)))}clone(){const cloneIds=this.map(id=>id.clone());return new BitIds(...cloneIds)}}exports.default=BitIds},
|
11
|
+
`)}`)})}toVersionLatest(){return BitIds.uniqFromArray(this.map(id=>id.changeVersion(component_version_1.LATEST_VERSION)))}clone(){const cloneIds=this.map(id=>id.clone());return new BitIds(...cloneIds)}}exports.default=BitIds},48561:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.InvalidScopeNameFromRemote=exports.InvalidScopeName=exports.InvalidName=exports.InvalidIdChunk=exports.InvalidBitId=void 0;const invalid_bit_id_1=__importDefault(__webpack_require__(21189));exports.InvalidBitId=invalid_bit_id_1.default;const invalid_id_chunk_1=__importDefault(__webpack_require__(17558));exports.InvalidIdChunk=invalid_id_chunk_1.default;const invalid_name_1=__importDefault(__webpack_require__(26802));exports.InvalidName=invalid_name_1.default;const invalid_scope_name_1=__importDefault(__webpack_require__(75144));exports.InvalidScopeName=invalid_scope_name_1.default;const invalid_scope_name_from_remote_1=__importDefault(__webpack_require__(22610));exports.InvalidScopeNameFromRemote=invalid_scope_name_from_remote_1.default},21189:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const bit_error_1=__webpack_require__(17781);class InvalidBitId extends bit_error_1.BitError{constructor(id){super(`error: component ID "${id}" is invalid, please use the following format: [scope]/<name>`)}}exports.default=InvalidBitId},17558:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const bit_error_1=__webpack_require__(17781);class InvalidIdChunk extends bit_error_1.BitError{constructor(id){super(`error: "${id}" is invalid, component IDs can only contain alphanumeric, lowercase characters, and the following ["-", "_", "$", "!"]`)}}exports.default=InvalidIdChunk},26802:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const bit_error_1=__webpack_require__(17781);class InvalidName extends bit_error_1.BitError{constructor(componentName){super(`error: "${componentName}" is invalid, component names can only contain alphanumeric, lowercase characters, and the following ["-", "_", "$", "!", "/"]`)}}exports.default=InvalidName},22610:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const bit_error_1=__webpack_require__(17781);class InvalidScopeNameFromRemote extends bit_error_1.BitError{constructor(scopeName){super(`cannot find scope '${scopeName}'.
|
12
12
|
if you are targeting a self-hosted scope, please ensure the scope is configured in your remotes (via "bit remote" command) and that the scope name is correct.
|
13
|
-
if this is a scope on bit.cloud please add the organization name before the scope (yourOrg.some-scope-name)`);this.scopeName=scopeName}}exports.default=InvalidScopeNameFromRemote},
|
13
|
+
if this is a scope on bit.cloud please add the organization name before the scope (yourOrg.some-scope-name)`);this.scopeName=scopeName}}exports.default=InvalidScopeNameFromRemote},75144:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const bit_error_1=__webpack_require__(17781);class InvalidScopeName extends bit_error_1.BitError{constructor(scopeName,id,variant){const variantStr=variant?`configured in variant "${variant}" `:"";super(`error: "${id||scopeName}" ${variantStr}is invalid, component scope names can only contain alphanumeric, lowercase characters, and the following ["-", "_", "$", "!"]`)}}exports.default=InvalidScopeName},83117:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)k!=="default"&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.InvalidScopeNameFromRemote=exports.InvalidScopeName=exports.InvalidName=exports.isValidIdChunk=exports.isValidScopeName=exports.VERSION_DELIMITER=exports.BitIds=exports.BitId=void 0;const bit_id_1=__importStar(__webpack_require__(93266));exports.BitId=bit_id_1.default,Object.defineProperty(exports,"VERSION_DELIMITER",{enumerable:!0,get:function(){return bit_id_1.VERSION_DELIMITER}});const bit_ids_1=__importDefault(__webpack_require__(39328));exports.BitIds=bit_ids_1.default;const exceptions_1=__webpack_require__(48561);Object.defineProperty(exports,"InvalidName",{enumerable:!0,get:function(){return exceptions_1.InvalidName}}),Object.defineProperty(exports,"InvalidScopeName",{enumerable:!0,get:function(){return exceptions_1.InvalidScopeName}}),Object.defineProperty(exports,"InvalidScopeNameFromRemote",{enumerable:!0,get:function(){return exceptions_1.InvalidScopeNameFromRemote}});const is_valid_scope_name_1=__importDefault(__webpack_require__(6626));exports.isValidScopeName=is_valid_scope_name_1.default;const is_valid_id_chunk_1=__importDefault(__webpack_require__(50298));exports.isValidIdChunk=is_valid_id_chunk_1.default},50298:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const validationRegExp=/^[-_a-z0-9/]+$/,validationRegExpDisallowSlash=/^[-_a-z0-9]+$/;function isValidIdChunk(val,allowSlash=!0){return typeof val!="string"||val.includes("//")?!1:(allowSlash?validationRegExp:validationRegExpDisallowSlash).test(val)}exports.default=isValidIdChunk},6626:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const validationRegExp=/^[$\-_!a-z0-9]+[.]?[$\-_!a-z0-9]+$/;function isValidScopeName(val){return typeof val!="string"?!1:validationRegExp.test(val)}exports.default=isValidScopeName},52195:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.linkModules=exports.PreviewModules=exports.PREVIEW_MODULES=void 0;var preview_modules_1=__webpack_require__(22293);Object.defineProperty(exports,"PREVIEW_MODULES",{enumerable:!0,get:function(){return preview_modules_1.PREVIEW_MODULES}}),Object.defineProperty(exports,"PreviewModules",{enumerable:!0,get:function(){return preview_modules_1.PreviewModules}}),Object.defineProperty(exports,"linkModules",{enumerable:!0,get:function(){return preview_modules_1.linkModules}})},22293:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.linkModules=exports.PREVIEW_MODULES=exports.PreviewModules=void 0;class PreviewModules extends Map{constructor(){super(...arguments);this.onSet=new Set}set(id,preview){return super.set(id,preview),this.onSet.forEach(callback=>callback()),this}loadComponentPreviews(compId,previews){Object.entries(previews).forEach(([previewName,moduleFile])=>{const preview=this.get(previewName);!preview||(preview.componentMap[compId]=moduleFile)})}}exports.PreviewModules=PreviewModules;function getPreviewModules(){return typeof window<"u"?(window.__bit_preview_modules||(window.__bit_preview_modules=new PreviewModules),window.__bit_preview_modules):new PreviewModules}exports.PREVIEW_MODULES=getPreviewModules();function linkModules(previewName,previewModule){exports.PREVIEW_MODULES.set(previewName,previewModule)}exports.linkModules=linkModules},86415:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ClickInsideAnIframeEvent=void 0;function _pubsub(){const data=__webpack_require__(95404);return _pubsub=function(){return data},data}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}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return typeof i=="symbol"?i:i+""}function _toPrimitive(t,r){if(typeof t!="object"||!t)return t;var e=t[Symbol.toPrimitive];if(e!==void 0){var i=e.call(t,r||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}class ClickInsideAnIframeEventData{constructor(clickEvent){this.clickEvent=clickEvent}}class ClickInsideAnIframeEvent extends _pubsub().BitBaseEvent{constructor(timestamp=Date.now(),clickEvent){super(ClickInsideAnIframeEvent.TYPE,"0.0.1",timestamp,new ClickInsideAnIframeEventData(clickEvent));this.timestamp=timestamp,this.clickEvent=clickEvent}}exports.ClickInsideAnIframeEvent=ClickInsideAnIframeEvent,_defineProperty(ClickInsideAnIframeEvent,"TYPE","click-inside-an-iframe")},49470:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var _clickInsideAnIframe=__webpack_require__(86415);Object.keys(_clickInsideAnIframe).forEach(function(key){key==="default"||key==="__esModule"||key in exports&&exports[key]===_clickInsideAnIframe[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function(){return _clickInsideAnIframe[key]}})})},54556:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.BundlingStrategyNotFound=void 0;class BundlingStrategyNotFound extends Error{constructor(strategyName){super(`bundling strategy with name ${strategyName} was not found`);this.strategyName=strategyName}}exports.BundlingStrategyNotFound=BundlingStrategyNotFound},70611:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"BundlingStrategyNotFound",{enumerable:!0,get:function(){return _bundlingStrategyNotFound().BundlingStrategyNotFound}}),Object.defineProperty(exports,"PreviewArtifactNotFound",{enumerable:!0,get:function(){return _previewArtifactNotFound().PreviewArtifactNotFound}}),Object.defineProperty(exports,"PreviewNotFound",{enumerable:!0,get:function(){return _previewNotFound().PreviewNotFound}}),Object.defineProperty(exports,"PreviewOutputFileNotFound",{enumerable:!0,get:function(){return _previewOutputFileNotFound().PreviewOutputFileNotFound}});function _previewNotFound(){const data=__webpack_require__(87774);return _previewNotFound=function(){return data},data}function _previewArtifactNotFound(){const data=__webpack_require__(5684);return _previewArtifactNotFound=function(){return data},data}function _bundlingStrategyNotFound(){const data=__webpack_require__(54556);return _bundlingStrategyNotFound=function(){return data},data}function _previewOutputFileNotFound(){const data=__webpack_require__(77385);return _previewOutputFileNotFound=function(){return data},data}},5684:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.PreviewArtifactNotFound=void 0;function _bitError(){const data=__webpack_require__(17781);return _bitError=function(){return data},data}class PreviewArtifactNotFound extends _bitError().BitError{constructor(componentId){super(`preview for component ${componentId.toString()} was not found`)}}exports.PreviewArtifactNotFound=PreviewArtifactNotFound},87774:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.PreviewNotFound=void 0;class PreviewNotFound extends Error{constructor(name){super(`Preview for name: ${name} was not found`)}}exports.PreviewNotFound=PreviewNotFound},77385:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.PreviewOutputFileNotFound=void 0;function _bitError(){const data=__webpack_require__(17781);return _bitError=function(){return data},data}class PreviewOutputFileNotFound extends _bitError().BitError{constructor(componentId,filePath){super(`preview output file for component: "${componentId.toString()}" was not found in the path: "${filePath}".
|
14
14
|
|
15
15
|
This is usually a result of an error during the bundling process.
|
16
16
|
The error might be an error of another component that uses the same env.
|
17
17
|
Run "bit build" with "--dev" to see more info.
|
18
|
-
Run "bit envs" to see other components that uses the same env`)}}exports.PreviewOutputFileNotFound=PreviewOutputFileNotFound},
|
18
|
+
Run "bit envs" to see other components that uses the same env`)}}exports.PreviewOutputFileNotFound=PreviewOutputFileNotFound},3124:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.fetchComponentAspects=fetchComponentAspects;function _graphqlRequest(){const data=__webpack_require__(32906);return _graphqlRequest=function(){return data},data}const GQL_SERVER="/graphql",GET_COMPONENT_ASPECTS=(0,_graphqlRequest().gql)`
|
19
19
|
query getComponentAspects($id: String!) {
|
20
20
|
getHost {
|
21
21
|
id
|
@@ -26,7 +26,7 @@ Run "bit envs" to see other components that uses the same env`)}}exports.Preview
|
|
26
26
|
}
|
27
27
|
}
|
28
28
|
}
|
29
|
-
`;async function fetchComponentAspects(componentId){try{return(await(0,_graphqlRequest().request)(GQL_SERVER,GET_COMPONENT_ASPECTS,{id:componentId.toString()})).getHost.get.aspects.map(x=>x.id)}catch(err){console.error(`[gql] error on "getComponentAspects" - "${err.toString()}"`);return}}},29450:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.loadLink=loadLink,exports.loadScript=loadScript;function loadScript({src}){return new Promise((resolve,reject)=>{const script=document.createElement("script");script.setAttribute("defer","defer"),script.src=src,script.onload=()=>resolve(),script.onerror=(message,_,_1,_2,error)=>reject(error||new Error(`[preview.preview] failed to load script: ${message}`)),document.head.appendChild(script)})}function loadLink({href}){return new Promise((resolve,reject)=>{const link=document.createElement("link");href.endsWith(".css")&&link.setAttribute("rel","stylesheet"),link.setAttribute("href",href),link.onload=()=>resolve(),link.onerror=(message,_,_1,_2,error)=>reject(error||new Error(`[preview.preview] failed to load link: ${message}`)),document.head.appendChild(link)})}},56522:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"PREVIEW_MODULES",{enumerable:!0,get:function(){return _previewModules().PREVIEW_MODULES}}),Object.defineProperty(exports,"PreviewModules",{enumerable:!0,get:function(){return _previewModules().PreviewModules}}),Object.defineProperty(exports,"linkModules",{enumerable:!0,get:function(){return _previewModules().linkModules}});function _previewModules(){const data=__webpack_require__(23449);return _previewModules=function(){return data},data}},62557:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.PreviewRuntime=exports.PreviewAspect=void 0;function _harmony(){const data=__webpack_require__(88759);return _harmony=function(){return data},data}const PreviewRuntime=exports.PreviewRuntime=new(_harmony()).RuntimeDefinition("preview"),PreviewAspect=exports.PreviewAspect=_harmony().Aspect.create({id:"teambit.preview/preview",dependencies:[],defaultConfig:{},declareRuntime:PreviewRuntime});var _default=exports.default=PreviewAspect},52134:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";var __webpack_unused_export__;__webpack_unused_export__={value:!0},__webpack_unused_export__=void 0,Object.defineProperty(exports,"Bu",{enumerable:!0,get:function(){return _previewModules().linkModules}});function _pubsub(){const data=__webpack_require__(1937);return _pubsub=function(){return data},data}function _harmony(){const data=__webpack_require__(88759);return _harmony=function(){return data},data}function _componentId(){const data=__webpack_require__(51299);return _componentId=function(){return data},data}function _crossFetch(){const data=_interopRequireDefault(__webpack_require__(70203));return _crossFetch=function(){return data},data}function _memoizee(){const data=_interopRequireDefault(__webpack_require__(76893));return _memoizee=function(){return data},data}function _lodash(){const data=__webpack_require__(15510);return _lodash=function(){return data},data}function _exceptions(){const data=__webpack_require__(2460);return _exceptions=function(){return data},data}function _preview(){const data=__webpack_require__(62557);return _preview=function(){return data},data}function _events(){const data=__webpack_require__(76825);return _events=function(){return data},data}function _renderingContext(){const data=__webpack_require__(26492);return _renderingContext=function(){return data},data}function _fetchComponentAspects(){const data=__webpack_require__(55307);return _fetchComponentAspects=function(){return data},data}function _previewModules(){const data=__webpack_require__(56522);return _previewModules=function(){return data},data}function _htmlUtils(){const data=__webpack_require__(29450);return _htmlUtils=function(){return data},data}function _sizeEvent(){const data=__webpack_require__(43102);return _sizeEvent=function(){return data},data}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}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}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return typeof i=="symbol"?i:i+""}function _toPrimitive(t,r){if(typeof t!="object"||!t)return t;var e=t[Symbol.toPrimitive];if(e!==void 0){var i=e.call(t,r||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}class PreviewPreview{constructor(pubsub,previewSlot,renderingContextSlot){this.pubsub=pubsub,this.previewSlot=previewSlot,this.renderingContextSlot=renderingContextSlot,_defineProperty(this,"isDev",!1),_defineProperty(this,"_setupPromise",void 0),_defineProperty(this,"setup",()=>this.isReady()?Promise.resolve():(this._setupPromise??=new Promise(resolve=>{_previewModules().PREVIEW_MODULES.onSet.add(()=>{this.isReady()&&resolve()})}),this._setupPromise)),_defineProperty(this,"render",async rootExt=>{window.document.body.style.width="fit-content";const{previewName,componentId,envId}=this.getLocation(),name=previewName||this.getDefault();rootExt&&(this.isDev=rootExt==="teambit.workspace/workspace");const preview=this.getPreview(name);if(!preview||!componentId)throw new(_exceptions()).PreviewNotFound(previewName);const includesAll=await Promise.all((preview.include||[]).map(async inclPreviewName=>{const includedPreview=this.getPreview(inclPreviewName);if(!includedPreview)return;const inclPreviewModule=await this.getPreviewModule(inclPreviewName,componentId);return includedPreview.selectPreviewModel?.(componentId.fullName,inclPreviewModule)})),query=this.getQuery(),includes=this.getParam(query,"onlyOverview")==="true"?[]:includesAll.filter(module=>!!module).map(module=>{if(!module.default||!(0,_lodash().isObject)(module.default))return module;const keysWithoutDefault=Object.keys(module).filter(key=>key!=="default"),defaultKeys=Object.keys(module.default);return(0,_lodash().intersection)(keysWithoutDefault,defaultKeys).length===defaultKeys.length?module.default:module}),componentAspects=this.isDev?await this.getComponentAspects(componentId.toString()):void 0,previewModule=await this.getPreviewModule(name,componentId),render=preview.render(componentId,envId||"",previewModule,includes,this.getRenderingContext(componentAspects));return this.reportSize(),this.setViewport(),this.setFullScreen(),render}),_defineProperty(this,"getComponentAspects",(0,_memoizee().default)(_fetchComponentAspects().fetchComponentAspects,{max:100,maxAge:12*60*60*1e3})),this.registerClickPubSub()}registerClickPubSub(){window.addEventListener("click",e=>{const timestamp=Date.now(),clickEvent=Object.assign({},e);this.pubsub.pub(_preview().PreviewAspect.id,new(_events()).ClickInsideAnIframeEvent(timestamp,clickEvent))})}isReady(){const{previewName}=this.getLocation(),name=previewName||this.getDefault();if(!_previewModules().PREVIEW_MODULES.has(name))return!1;const preview=this.getPreview(name);return!(!preview||!(preview.include?.every(included=>_previewModules().PREVIEW_MODULES.has(included))??!0))}setFullScreen(){const query=this.getQuery();if(!this.getParam(query,"fullscreen"))return;const root=window.document.getElementById("root");root&&(root.style.height="100vh")}setViewport(){const query=this.getQuery(),viewPort=this.getParam(query,"viewport");if(!viewPort){window.document.body.style.width="100%";return}window.document.body.style.maxWidth=`${viewPort}px`}reportSize(){if(!window?.parent||!window?.document)return;const sendPubsubEvent=()=>{this.pubsub.pub(_preview().PreviewAspect.id,new(_sizeEvent()).SizeEvent({width:window.document.body.offsetWidth,height:window.document.body.offsetHeight}))};window.document.body.addEventListener("resize",(0,_lodash().debounce)(sendPubsubEvent,300));let counter=0;const interval=setInterval(()=>{if(counter+=1,counter>10){clearInterval(interval);return}this.pubsub.pub(_preview().PreviewAspect.id,new(_sizeEvent()).SizeEvent({width:window.document.body.offsetWidth,height:window.document.body.offsetHeight}))},200)}async getPreviewModule(previewName,id){const compShortId=id.fullName,relevantModel=_previewModules().PREVIEW_MODULES.get(previewName);if(!relevantModel)throw new Error(`[preview.preview] missing preview "${previewName}"`);if(relevantModel.componentMap[compShortId])return relevantModel;const componentPreviews=await this.fetchComponentPreview(id,previewName);_previewModules().PREVIEW_MODULES.loadComponentPreviews(compShortId,componentPreviews);const component=componentPreviews[previewName],metadata=componentPreviews[`${previewName}_metadata`];return{modulesMap:relevantModel.modulesMap,componentMap:{[id.fullName]:component},componentMapMetadata:{[id.fullName]:metadata}}}async fetchComponentPreview(id,name){let previewFile;const allFiles=await this.fetchComponentPreviewFiles(id,name);return allFiles===null?{}:(await Promise.all(allFiles.map(file=>{if(file.endsWith("-preview.js")){previewFile=file;return}return this.addComponentFileElement(id,file)})),previewFile?this.loadPreviewScript(id,name,previewFile):{})}addComponentFileElement(id,previewBundleFileName){if(previewBundleFileName.endsWith(".js"))return this.addComponentFileScriptElement(id,previewBundleFileName);this.addComponentFileLinkElement(id,previewBundleFileName).catch(err=>{throw new Error(`[preview.preview] failed loading asset "${previewBundleFileName}". Error - "${err?.toString()}"`)})}async fetchComponentPreviewFiles(id,previewName){const previewAssetsRoute="~aspect/preview-assets",url=`/api/${id.toString()}/${previewAssetsRoute}`,res=await(0,_crossFetch().default)(url);if(res.status>=400)throw new(_exceptions()).PreviewNotFound(previewName);const parsed=await res.json();if(parsed.isBundledWithEnv)return null;if(!parsed.files||!parsed.files.length)throw new(_exceptions()).PreviewNotFound(previewName);return parsed.files}addComponentFileScriptElement(id,previewBundleFileName){const previewRoute="~aspect/component-preview",src=`/api/${id.toString()}/${previewRoute}/${previewBundleFileName}`;return(0,_htmlUtils().loadScript)({src})}addComponentFileLinkElement(id,previewBundleFileName){const href=`/api/${id.toString()}/~aspect/component-preview/${previewBundleFileName}`;return(0,_htmlUtils().loadLink)({href})}async loadPreviewScript(id,previewName,previewBundleFileName){const previewRoute="~aspect/component-preview",src=`/api/${id.toString()}/${previewRoute}/${previewBundleFileName}`;await(0,_htmlUtils().loadScript)({src});const globalId=`${id.toStringWithoutVersion()}-preview`,componentPreview=window[globalId];if(!componentPreview)throw new(_exceptions()).PreviewNotFound(previewName);return componentPreview}registerPreview(preview){return this.previewSlot.register(preview),this}getRenderingContext(aspectsFilter){return new(_renderingContext()).RenderingContext(this.renderingContextSlot,{aspectsFilter})}registerRenderContext(renderContext){return this.renderingContextSlot.register(renderContext),this}getDefault(){const previews=this.previewSlot.values();return previews.find(previewCandidate=>previewCandidate.default)?.name||previews[0].name}getPreview(previewName){return this.previewSlot.values().find(previewCandidate=>previewCandidate.name===previewName)}getParam(query,param){return new URLSearchParams(query).get(param)}getQuery(){const withoutHash=window.location.hash.substring(1),[,after]=withoutHash.split("?");return after}getLocation(){const withoutHash=window.location.hash.substring(1),[before,after]=withoutHash.split("?");return{previewName:this.getParam(after,"preview"),envId:this.getParam(after,"env"),componentId:_componentId().ComponentID.tryFromString(before)}}static async provider([pubsub],config,[previewSlot,renderingContextSlot]){const preview=new PreviewPreview(pubsub,previewSlot,renderingContextSlot);return window.addEventListener("hashchange",()=>{preview.render()}),preview}}__webpack_unused_export__=PreviewPreview,_defineProperty(PreviewPreview,"runtime",_preview().PreviewRuntime),_defineProperty(PreviewPreview,"dependencies",[_pubsub().PubsubAspect]),_defineProperty(PreviewPreview,"slots",[_harmony().Slot.withType(),_harmony().Slot.withType()]),_preview().PreviewAspect.addRuntime(PreviewPreview)},26492:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.RenderingContext=void 0;class RenderingContext{constructor(contexts,options={}){this.contexts=contexts,this.options=options}get(aspectId){return this.contexts.get(aspectId)?.(this.options)}}exports.RenderingContext=RenderingContext},43102:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.SizeEvent=void 0;function _pubsub(){const data=__webpack_require__(1937);return _pubsub=function(){return data},data}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}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return typeof i=="symbol"?i:i+""}function _toPrimitive(t,r){if(typeof t!="object"||!t)return t;var e=t[Symbol.toPrimitive];if(e!==void 0){var i=e.call(t,r||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}class SizeEvent extends _pubsub().BitBaseEvent{constructor(sizeEvent){super(SizeEvent.TYPE,"0.0.1",new Date().getTime(),sizeEvent)}}exports.SizeEvent=SizeEvent,_defineProperty(SizeEvent,"TYPE","preview-size")},92979:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.BitBaseEvent=void 0;class BitBaseEvent{constructor(type,version,timestamp,data){this.type=type,this.version=version,this.timestamp=timestamp,this.data=data}}exports.BitBaseEvent=BitBaseEvent},1937:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"BitBaseEvent",{enumerable:!0,get:function(){return _bitBaseEvent().BitBaseEvent}}),Object.defineProperty(exports,"PubsubAspect",{enumerable:!0,get:function(){return _pubsub().PubsubAspect}}),Object.defineProperty(exports,"default",{enumerable:!0,get:function(){return _pubsub().PubsubAspect}}),Object.defineProperty(exports,"usePubSub",{enumerable:!0,get:function(){return _pubsubContext().usePubSub}}),Object.defineProperty(exports,"usePubSubIframe",{enumerable:!0,get:function(){return _pubsubContext().usePubSubIframe}});function _pubsub(){const data=__webpack_require__(30144);return _pubsub=function(){return data},data}function _bitBaseEvent(){const data=__webpack_require__(92979);return _bitBaseEvent=function(){return data},data}function _pubsubContext(){const data=__webpack_require__(47338);return _pubsubContext=function(){return data},data}},47338:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.createProvider=createProvider,exports.pubsubRegistry=void 0,exports.usePubSub=usePubSub,exports.usePubSubIframe=usePubSubIframe;function _react(){const data=_interopRequireWildcard(__webpack_require__(59496));return _react=function(){return data},data}function _getRequireWildcardCache(e){if(typeof WeakMap!="function")return null;var r=new WeakMap,t=new WeakMap;return(_getRequireWildcardCache=function(e2){return e2?t:r})(e)}function _interopRequireWildcard(e,r){if(!r&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=_getRequireWildcardCache(r);if(t&&t.has(e))return t.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if(u!=="default"&&{}.hasOwnProperty.call(e,u)){var i=a?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(n,u,i):n[u]=e[u]}return n.default=e,t&&t.set(e,n),n}const pubsubRegistry=exports.pubsubRegistry=(0,_react().createContext)(void 0);function createProvider(pubSubContext){return({children})=>_react().default.createElement(pubsubRegistry.Provider,{value:pubSubContext},children)}function usePubSub(){return(0,_react().useContext)(pubsubRegistry)}function usePubSubIframe(ref){const pubSub=usePubSub();(0,_react().useEffect)(()=>{if(!ref?.current||!pubSub)return()=>{};const destroyConnection=pubSub.connect(ref.current);return()=>destroyConnection()},[ref?.current,pubSub])}},30144:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.PubsubAspect=void 0;function _harmony(){const data=__webpack_require__(88759);return _harmony=function(){return data},data}const PubsubAspect=exports.PubsubAspect=_harmony().Aspect.create({id:"teambit.harmony/pubsub",dependencies:[]});var _default=exports.default=PubsubAspect},88137:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var tarjan_1=__webpack_require__(19892);exports.tarjan=tarjan_1.tarjan},19892:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0});const lodash_1=__importDefault(__webpack_require__(15510));function tarjan(g){var index=0,stack=[],visited={},results=[];function dfs(v){var entry=visited[v]={onStack:!0,lowlink:index,index:index++};if(stack.push(v),[...g.successors(v).keys()].forEach(function(w2){lodash_1.default.has(visited,w2)?visited[w2].onStack&&(entry.lowlink=Math.min(entry.lowlink,visited[w2].index)):(dfs(w2),entry.lowlink=Math.min(entry.lowlink,visited[w2].lowlink))}),entry.lowlink===entry.index){var cmpt=[],w;do w=stack.pop(),visited[w].onStack=!1,cmpt.push(w);while(v!==w);results.push(cmpt)}}return[...g.nodes.keys()].forEach(function(v){lodash_1.default.has(visited,v)||dfs(v)}),results}exports.tarjan=tarjan},43518:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0});class GraphEdge{constructor(sourceId,targetId,attr){this.sourceId=sourceId,this.targetId=targetId,this.sourceId=sourceId,this.targetId=targetId,this.attr=attr}stringify(){let attrStr="";return!!this.attr.stringify&&typeof this.attr.stringify=="function"?attrStr=this.attr.stringify():attrStr=JSON.stringify(this.attr),attrStr}static fromObject(obj,parseEdge){if(!obj.hasOwnProperty("sourceId"))throw Error("missing source id");if(!obj.hasOwnProperty("targetId"))throw Error("missing target id");return{sourceId:obj.sourceId,targetId:obj.targetId,edge:parseEdge(obj.edge)}}static edgeId(sourceId,targetId){return`${sourceId}->${targetId}`}static parseEdgeId(id){const spl=id.split("->");return spl.length===2?{sourceId:spl[0],targetId:spl[1]}:{sourceId:"",targetId:""}}get nodes(){return[this.sourceId,this.targetId]}}exports.GraphEdge=GraphEdge;function genericParseEdge(edge){return Object.keys(edge).length===0&&edge.constructor===Object||typeof edge!="object"?edge:JSON.parse(edge)}exports.genericParseEdge=genericParseEdge;function genericEdgeToJson(edge){return edge}exports.genericEdgeToJson=genericEdgeToJson},28265:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0});class CyclicError extends Error{constructor(message){super(message);Object.setPrototypeOf(this,new.target.prototype)}}exports.CyclicError=CyclicError;class NodeDoesntExist extends Error{constructor(message){super(message);Object.setPrototypeOf(this,new.target.prototype)}}exports.NodeDoesntExist=NodeDoesntExist},74682:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0});const index_1=__webpack_require__(45233),index_2=__webpack_require__(45233),index_3=__webpack_require__(45233),lodash_1=__importDefault(__webpack_require__(15510)),algorithms_1=__webpack_require__(88137),node_1=__webpack_require__(47351),edge_1=__webpack_require__(43518);class Graph{constructor(nodes=[],edges=[]){this._nodes=new Map,this._edges=new Map,nodes.forEach(elem=>this.setNode(elem.id,elem.node)),edges.forEach(elem=>this.setEdge(elem.sourceId,elem.targetId,elem.edge))}create(nodes=[],edges=[]){return new Graph(nodes,edges)}get _userNodes(){return this._transformToUserNodeMap(this._nodes)}get _userEdges(){return this._transformToUserEdgeMap(this._edges)}_transformToUserNodeMap(map){let newMap=new Map;for(const[key,value]of map.entries())newMap.set(key,value.attr);return newMap}_transformToUserEdgeMap(map){let newMap=new Map;for(const[key,value]of map.entries())newMap.set(key,value.attr);return newMap}setNode(id,node,overrideExisting=!0){if(this.hasNode(id)){if(overrideExisting){let existingNode=this._node(id);existingNode&&(existingNode.attr=node)}}else{let graphNode=new index_1.GraphNode(id,node);this._nodes.set(id,graphNode)}return this}setEdge(sourceId,targetId,edge,overrideExisting=!0){if(this.hasEdge(sourceId,targetId))if(overrideExisting){let existingEdge=this._edge(sourceId,targetId);return existingEdge&&(existingEdge.attr=edge),this}else return this;const id=index_2.GraphEdge.edgeId(sourceId,targetId);let graphEdge=new index_2.GraphEdge(sourceId,targetId,edge);if(this._edges.set(id,graphEdge),this._nodes.has(sourceId)){let sourceNode=this._nodes.get(sourceId);sourceNode!==void 0&&sourceNode.setOutEdge(id)}else throw Error("source node does not exist");if(this._nodes.has(targetId)){let targetNode=this._nodes.get(targetId);targetNode!==void 0&&targetNode.setInEdge(id)}else throw Error("target node does not exist");return this}setNodes(nodes,overrideExisting=!0){return nodes.forEach(elem=>{if(!this.hasNode(elem.id))this.setNode(elem.id,elem.node);else if(overrideExisting){let existingNode=this._node(elem.id);existingNode&&(existingNode.attr=elem.node)}}),this}setEdges(edges,overrideExisting=!0){return edges.forEach(elem=>{if(!this.hasEdge(elem.sourceId,elem.targetId))this.setEdge(elem.sourceId,elem.targetId,elem.edge);else if(overrideExisting){let existingEdge=this._edge(elem.sourceId,elem.targetId);existingEdge&&(existingEdge.attr=elem.edge)}}),this}hasNode(id){return this._nodes.has(id)}hasEdge(sourceId,targetId){return this._edges.has(index_2.GraphEdge.edgeId(sourceId,targetId))}node(id){var _a;return(_a=this._nodes.get(id))===null||_a===void 0?void 0:_a.attr}edge(sourceId,targetId){var _a;return(_a=this._edges.get(index_2.GraphEdge.edgeId(sourceId,targetId)))===null||_a===void 0?void 0:_a.attr}_node(id){return this._nodes.get(id)}_edge(sourceId,targetId){return this._edges.get(index_2.GraphEdge.edgeId(sourceId,targetId))}_edgeById(edgeId){return this._edges.get(edgeId)}edgeNodesById(edgeId){var _a,_b;return{sourceId:(_a=this._edges.get(edgeId))===null||_a===void 0?void 0:_a.sourceId,targetId:(_b=this._edges.get(edgeId))===null||_b===void 0?void 0:_b.targetId}}get nodes(){return this._userNodes}get graphNodes(){return this._nodes}get edges(){return this._userEdges}get graphEdges(){return this._edges}nodeCount(){return[...this._nodes.keys()].length}edgeCount(){return[...this._edges.keys()].length}sources(){return[...this._nodes.values()].filter(node=>node.isSource()).map(elem=>elem.attr)}sinks(){return[...this._nodes.values()].filter(node=>node.isSink()).map(elem=>elem.attr)}deleteNode(id){const node=this._node(id);typeof node>"u"||(node.nodeEdges.forEach(edgeId=>{const{sourceId,targetId}=index_2.GraphEdge.parseEdgeId(edgeId);this.deleteEdge(sourceId,targetId)}),this._nodes.delete(id))}deleteEdge(sourceId,targetId){const edgeId=index_2.GraphEdge.edgeId(sourceId,targetId);if(this._edges.get(edgeId)!==void 0){let sourceNode=this._nodes.get(sourceId);sourceNode!==void 0&&sourceNode.deleteEdge(edgeId);let targetNode=this._nodes.get(targetId);targetNode!==void 0&&targetNode.deleteEdge(edgeId)}this._edges.delete(edgeId)}inEdges(nodeId){return this._transformToUserEdgeMap(this._inEdges(nodeId))}outEdges(nodeId){return this._transformToUserEdgeMap(this._outEdges(nodeId))}nodeEdges(nodeId){return this._transformToUserEdgeMap(this._nodeEdges(nodeId))}_inEdges(nodeId){let newEdges=new Map;const node=this._node(nodeId);return node===void 0||node.inEdges.forEach(edgeId=>{let{sourceId,targetId}=index_2.GraphEdge.parseEdgeId(edgeId),edge=this._edge(sourceId,targetId);edge!==void 0&&newEdges.set(edgeId,edge)}),newEdges}_outEdges(nodeId){let newEdges=new Map;const node=this._node(nodeId);return node===void 0||node.outEdges.forEach(edgeId=>{let{sourceId,targetId}=index_2.GraphEdge.parseEdgeId(edgeId),edge=this._edge(sourceId,targetId);edge!==void 0&&newEdges.set(edgeId,edge)}),newEdges}_nodeEdges(nodeId){let newEdges=new Map;const node=this._node(nodeId);return node===void 0||node.nodeEdges.forEach(edgeId=>{let{sourceId,targetId}=index_2.GraphEdge.parseEdgeId(edgeId),edge=this._edge(sourceId,targetId);edge!==void 0&&newEdges.set(edgeId,edge)}),newEdges}successors(nodeId,filterPredicate=returnTrue){return this._transformToUserNodeMap(this._successors(nodeId,filterPredicate))}predecessors(nodeId,filterPredicate=returnTrue){return this._transformToUserNodeMap(this._predecessors(nodeId,filterPredicate))}neighbors(nodeId,filterPredicate=returnTrue){return this._transformToUserNodeMap(this._neighbors(nodeId,filterPredicate))}_successors(nodeId,filterPredicate=returnTrue){let successors=new Map;const node=this._node(nodeId);return node===void 0||node.outEdges.forEach(edgeId=>{var _a;const edge=(_a=this._edges.get(edgeId))===null||_a===void 0?void 0:_a.attr;if(edge!=null&&filterPredicate(edge)){const{sourceId,targetId}=index_2.GraphEdge.parseEdgeId(edgeId),targetNode=this._node(targetId);!!targetId&&targetNode!==void 0&&successors.set(targetId,targetNode)}}),successors}_predecessors(nodeId,filterPredicate=returnTrue){let predecessors=new Map;const node=this._node(nodeId);return node===void 0||node.inEdges.forEach(edgeId=>{var _a;const edge=(_a=this._edges.get(edgeId))===null||_a===void 0?void 0:_a.attr;if(edge!=null&&filterPredicate(edge)){const{sourceId,targetId}=index_2.GraphEdge.parseEdgeId(edgeId),sourceNode=this._node(sourceId);!!sourceId&&sourceNode!==void 0&&predecessors.set(sourceId,sourceNode)}}),predecessors}_neighbors(nodeId,filterPredicate=returnTrue){return new Map([...this._predecessors(nodeId,filterPredicate),...this._successors(nodeId,filterPredicate)])}successorsSubgraph(nodeIds,filterPredicate=returnTrue){return this._buildSubgraphs(nodeIds,filterPredicate,"successors")}_alreadyProcessed(nodeId,subgraphs){for(const graph of subgraphs)if(graph.hasNode(nodeId))return!0;return!1}_buildSubgraphs(nodeIds,filterPredicate,order){let subgraphs=[];if(!Array.isArray(nodeIds))return this._buildSubgraph(nodeIds,filterPredicate,order);if(nodeIds.forEach(nodeId=>{this._alreadyProcessed(nodeId,subgraphs)||subgraphs.push(this._buildSubgraph(nodeId,filterPredicate,order))}),subgraphs.length===1)return subgraphs[0];let mergedGraphs=this.create();return subgraphs.length&&(mergedGraphs=subgraphs[0].merge(subgraphs)),mergedGraphs}_buildSubgraph(nodeId,filterPredicate,order){let g=this.create(),graphNode=this._node(nodeId);if(graphNode)g.setNode(nodeId,graphNode.attr);else throw new Error("Node does not exist on graph");return order==="successors"?this._successorsSubgraphUtil(nodeId,g,{},filterPredicate):this._predecessorsSubgraphUtil(nodeId,g,{},filterPredicate)}_successorsSubgraphUtil(nodeId,successorsGraph,visited={},filterPredicate){const successors=[...this._successors(nodeId,filterPredicate).keys()];return successors.length>0&&!visited[nodeId]&&successors.forEach(successor=>{visited[nodeId]=!0;const newNode=this._nodes.get(successor),newEdge=this._edges.get(index_2.GraphEdge.edgeId(nodeId,successor));if(newNode!==void 0&&newEdge!=null)return successorsGraph.setNode(successor,newNode.attr),successorsGraph.setEdge(nodeId,successor,newEdge.attr),this._successorsSubgraphUtil(successor,successorsGraph,visited,filterPredicate)}),successorsGraph}successorsArray(nodeId,filterPredicate=returnTrue){const successorIds=lodash_1.default.uniq(this._successorsArrayUtil(nodeId,[],{},filterPredicate));let successors=[];return successorIds.forEach(id=>{let node=this.node(id);node!=null&&successors.push(node)}),successors}_successorsArrayUtil(nodeId,successorsList=[],visited={},filterPredicate=returnTrue){const successors=[...this._successors(nodeId,filterPredicate).keys()];return successors.length>0&&!visited[nodeId]&&successors.forEach(successor=>(visited[nodeId]=!0,successorsList.push(successor),this._successorsArrayUtil(successor,successorsList,visited,filterPredicate))),successorsList}successorsLayers(nodeKey,filterPredicate=returnTrue,order="fromSource"){let successorsGraph=this.successorsSubgraph(nodeKey,filterPredicate);if(this.isCyclic(successorsGraph))throw new Error("cyclic dependency");let layers=[];layers[0]=[nodeKey];let floor=0,rawLayers=this._successorsLayersUtil([nodeKey],layers,floor,filterPredicate);return arrangeLayers(rawLayers,order)}_successorsLayersUtil(nodeKeys,layers,floor,filterPredicate=returnTrue){if(nodeKeys.length>0){let nextFloor=floor+1;return layers.push([]),layers[floor].forEach(successor=>{const successors=[...this.successors(successor,filterPredicate).keys()];layers[nextFloor]=layers[nextFloor].concat(successors)}),this._successorsLayersUtil(layers[nextFloor],layers,nextFloor,filterPredicate)}return layers}predecessorsSubgraph(nodeIds,filterPredicate=returnTrue){return this._buildSubgraphs(nodeIds,filterPredicate,"predecessors")}_predecessorsSubgraphUtil(nodeId,predecessorsGraph,visited={},filterPredicate=returnTrue){const predecessors=[...this._predecessors(nodeId,filterPredicate).keys()];return predecessors.length>0&&!visited[nodeId]&&predecessors.forEach(predecessor=>{visited[nodeId]=!0;const newNode=this._nodes.get(predecessor),newEdge=this._edges.get(index_2.GraphEdge.edgeId(predecessor,nodeId));if(newNode!==void 0&&newEdge!=null)return predecessorsGraph.setNode(predecessor,newNode.attr),predecessorsGraph.setEdge(predecessor,nodeId,newEdge.attr),this._predecessorsSubgraphUtil(predecessor,predecessorsGraph,visited,filterPredicate)}),predecessorsGraph}predecessorsArray(nodeId,filterPredicate=returnTrue){const predecessorIds=lodash_1.default.uniq(this._predecessorsArrayUtil(nodeId,[],{},filterPredicate));let predecessors=[];return predecessorIds.forEach(id=>{let node=this.node(id);node!=null&&predecessors.push(node)}),predecessors}_predecessorsArrayUtil(nodeId,predecessorsList=[],visited={},filterPredicate=returnTrue){const predecessors=[...this._predecessors(nodeId,filterPredicate).keys()];return predecessors.length>0&&!visited[nodeId]&&predecessors.forEach(predecessor=>(visited[nodeId]=!0,predecessorsList.push(predecessor),this._predecessorsArrayUtil(predecessor,predecessorsList,visited,filterPredicate))),predecessorsList}predecessorsLayers(nodeKey,filterPredicate=returnTrue,order="fromSource"){let successorsGraph=this.predecessorsSubgraph(nodeKey,filterPredicate);if(this.isCyclic(successorsGraph))throw new Error("cyclic sub-graph");let layers=[];layers[0]=[nodeKey];let floor=0,rawLayers=this._predecessorsLayersUtil([nodeKey],layers,floor,filterPredicate);return arrangeLayers(rawLayers,order)}_predecessorsLayersUtil(nodeKeys,layers,floor,filterPredicate=returnTrue){if(nodeKeys.length>0){let nextFloor=floor+1;return layers.push([]),layers[floor].forEach(predecessor=>{const predecessors=[...this.predecessors(predecessor,filterPredicate).keys()];layers[nextFloor]=layers[nextFloor].concat(predecessors)}),this._predecessorsLayersUtil(layers[nextFloor],layers,nextFloor,filterPredicate)}return layers}toposort(reverse=!1){let nodes=this._toposort().map(nodeId=>this.node(nodeId));return nodes=lodash_1.default.compact(nodes),reverse?nodes.reverse():nodes}_transformEdges(){let edges=[];return this._edges.forEach(originalEdge=>{edges.push([originalEdge.sourceId,originalEdge.targetId])}),edges}_toposort(){const nodes=[...this._nodes.keys()],edges=this._transformEdges();var cursor=nodes.length,sorted=new Array(cursor),visited={},i=cursor,outgoingEdges=makeOutgoingEdges(edges),nodesHash=makeNodesHash(nodes);for(edges.forEach(function(edge){if(!nodesHash.has(edge[0])||!nodesHash.has(edge[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});i--;)visited[i]||visit(nodes[i],i,new Set);return sorted;function visit(node,i2,predecessors){if(predecessors.has(node)){var nodeRep;try{nodeRep=", node was:"+JSON.stringify(node)}catch{nodeRep=""}throw new index_3.CyclicError("Cyclic dependency"+nodeRep)}if(!nodesHash.has(node))throw new Error("Found unknown node. Make sure to provide all involved nodes. Unknown node: "+JSON.stringify(node));if(!visited[i2]){visited[i2]=!0;var outgoing=outgoingEdges.get(node)||new Set;if(outgoing=Array.from(outgoing),i2=outgoing.length){predecessors.add(node);do{var child=outgoing[--i2];visit(child,nodesHash.get(child),predecessors)}while(i2);predecessors.delete(node)}sorted[--cursor]=node}}}isCyclic(graph=this){try{graph.toposort()}catch(e){if(e instanceof index_3.CyclicError)return!0;throw e}return!1}findCycles(graph=this){return findCycles(graph)}merge(graphs){let mergedGraph=this;return graphs.forEach(incomingGraph=>{var _a,_b;for(let[nodeId,nodeData]of incomingGraph.nodes)mergedGraph.setNode(nodeId,nodeData);for(let[edgeId,edgeData]of incomingGraph.edges){const sourceId=(_a=incomingGraph._edges.get(edgeId))===null||_a===void 0?void 0:_a.sourceId,targetId=(_b=incomingGraph._edges.get(edgeId))===null||_b===void 0?void 0:_b.targetId;if(mergedGraph.edges.has(edgeId)&&!!sourceId&&!!targetId)mergedGraph.setEdge(sourceId,targetId,edgeData);else if(!!sourceId&&!!targetId&&mergedGraph.hasNode(sourceId)&&mergedGraph.hasNode(targetId))mergedGraph.setEdge(sourceId,targetId,edgeData);else throw index_3.NodeDoesntExist}}),mergedGraph}allPaths(sourceId,targetId){return this._allPaths(sourceId,targetId,[],[])}_allPaths(source,target,currPath,paths,visited={}){return visited[source]=!0,currPath.push(source),source===target?paths.push(lodash_1.default.cloneDeep(currPath)):[...this._successors(source).keys()].forEach(nodeId=>{visited[nodeId]||this._allPaths(nodeId,target,currPath,paths,visited)}),currPath.pop(),visited[source]=!1,paths}toJson(graph){return graph?this._toJson(graph,"object"):this._toJson(this,"object")}stringify(graph){return graph?this._toJson(graph,"string"):this._toJson(this,"string")}static parse(json,parseNode=node_1.genericParseNode,parseEdge=edge_1.genericParseEdge){return this._fromJson(json,parseNode,parseEdge)}_toJson(graph,returnType){let nodeArray=[];for(let[nodeId,nodeData]of graph.nodes.entries()){const graphNode=graph._node(nodeId);if(graphNode){let convertedNode;returnType==="object"?!!graphNode.attr.toJson&&typeof graphNode.attr.toJson=="function"?convertedNode=graphNode.attr.toJson():convertedNode=node_1.genericNodeToJson(graphNode.attr):convertedNode=graphNode.stringify(),nodeArray.push({id:nodeId,node:convertedNode})}}let edgeArray=[];for(let[edgeId,edgeData]of graph.edges.entries()){const graphEdge=graph._edgeById(edgeId);if(graphEdge){let convertedEdge;returnType==="object"?!!graphEdge.attr.toJson&&typeof graphEdge.attr.toJson=="function"?convertedEdge=graphEdge.attr.toJson():convertedEdge=node_1.genericNodeToJson(graphEdge.attr):convertedEdge=graphEdge.stringify(),edgeArray.push({sourceId:graphEdge.sourceId,targetId:graphEdge.targetId,edge:convertedEdge})}}let json={nodes:nodeArray,edges:edgeArray};return returnType==="object"?json:JSON.stringify(json)}static _fromJson(json,parseNode,parseEdge){const obj=typeof json=="string"?JSON.parse(json):json;let graph=new Graph;if(!obj.hasOwnProperty("nodes")||!obj.hasOwnProperty("edges"))throw Error("missing properties on JSON. Should contain nodes: {id: string, node: N}[], and edges: {sourceId: string, targetId: string, edge:E}[]");return obj.nodes.forEach(nodeObj=>{const res=index_1.GraphNode.fromObject(nodeObj,parseNode);graph.setNode(res.id,res.node)}),obj.edges.forEach(edgeObj=>{const res=index_2.GraphEdge.fromObject(edgeObj,parseEdge);graph.setEdge(res.sourceId,res.targetId,res.edge)}),graph}bfs(){}dfs(){}}exports.Graph=Graph;function returnTrue(){return!0}function makeOutgoingEdges(arr){for(var edges=new Map,i=0,len=arr.length;i<len;i++){var edge=arr[i];edges.has(edge[0])||edges.set(edge[0],new Set),edges.has(edge[1])||edges.set(edge[1],new Set),edges.get(edge[0]).add(edge[1])}return edges}function makeNodesHash(arr){for(var res=new Map,i=0,len=arr.length;i<len;i++)res.set(arr[i],i);return res}function findCycles(g){return lodash_1.default.filter(algorithms_1.tarjan(g),function(cmpt){return cmpt.length>1||cmpt.length===1&&g.hasEdge(cmpt[0],cmpt[0])})}function arrangeLayers(layers,order){let finalLayers=[],seenNodes=[];layers=layers.reverse();let i=0;return layers.forEach(layer=>{layer.length>0&&(finalLayers.push([]),layer.forEach(node=>{seenNodes.indexOf(node)==-1&&(seenNodes.push(node),finalLayers[i].push(node))}),i++)}),order==="fromSource"?finalLayers.reverse():finalLayers}},45233:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var edge_1=__webpack_require__(43518);exports.GraphEdge=edge_1.GraphEdge;var node_1=__webpack_require__(47351);exports.GraphNode=node_1.GraphNode;var error_1=__webpack_require__(28265);exports.CyclicError=error_1.CyclicError,exports.NodeDoesntExist=error_1.NodeDoesntExist;var graph_1=__webpack_require__(74682);exports.Graph=graph_1.Graph},47351:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0});const lodash_1=__webpack_require__(15510),lodash_2=__importDefault(__webpack_require__(15510));class GraphNode{constructor(id,attr,inEdges,outEdges){this.id=id,this.attr=attr,this._inEdges=inEdges||[],this._outEdges=outEdges||[]}setInEdge(edgeId){this._inEdges.push(edgeId)}setOutEdge(edgeId){this._outEdges.push(edgeId)}deleteEdge(edgeId){lodash_2.default.remove(this._inEdges,function(edge){return edge===edgeId}),lodash_2.default.remove(this._outEdges,function(edge){return edge===edgeId})}get inEdges(){return this._inEdges}get outEdges(){return this._outEdges}get nodeEdges(){return this._inEdges.concat(this._outEdges)}isSource(){return this._inEdges.length===0&&this._outEdges.length>0}isSink(){return this._inEdges.length>0&&this._outEdges.length===0}equals(node){return this.id!==node.id?!1:lodash_1.isEqual(this.attr,node.attr)}stringify(){let attrStr="";return!!this.attr.stringify&&typeof this.attr.stringify=="function"?attrStr=this.attr.stringify():attrStr=JSON.stringify(this.attr),attrStr}static fromObject(obj,parseNode){if(!obj.hasOwnProperty("id"))throw Error("missing object id");return{id:obj.id,node:parseNode(obj.node)}}}exports.GraphNode=GraphNode;function genericParseNode(node){return Object.keys(node).length===0&&node.constructor===Object||typeof node!="object"?node:JSON.parse(node)}exports.genericParseNode=genericParseNode;function genericNodeToJson(node){return node}exports.genericNodeToJson=genericNodeToJson},70203:function(module,exports){var global=typeof self<"u"?self:this,__self__=function(){function F(){this.fetch=!1,this.DOMException=global.DOMException}return F.prototype=global,new F}();(function(self2){var irrelevant=function(exports2){var support={searchParams:"URLSearchParams"in self2,iterable:"Symbol"in self2&&"iterator"in Symbol,blob:"FileReader"in self2&&"Blob"in self2&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in self2,arrayBuffer:"ArrayBuffer"in self2};function isDataView(obj){return obj&&DataView.prototype.isPrototypeOf(obj)}if(support.arrayBuffer)var viewClasses=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],isArrayBufferView=ArrayBuffer.isView||function(obj){return obj&&viewClasses.indexOf(Object.prototype.toString.call(obj))>-1};function normalizeName(name){if(typeof name!="string"&&(name=String(name)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(name))throw new TypeError("Invalid character in header field name");return name.toLowerCase()}function normalizeValue(value){return typeof value!="string"&&(value=String(value)),value}function iteratorFor(items){var iterator={next:function(){var value=items.shift();return{done:value===void 0,value}}};return support.iterable&&(iterator[Symbol.iterator]=function(){return iterator}),iterator}function Headers2(headers){this.map={},headers instanceof Headers2?headers.forEach(function(value,name){this.append(name,value)},this):Array.isArray(headers)?headers.forEach(function(header){this.append(header[0],header[1])},this):headers&&Object.getOwnPropertyNames(headers).forEach(function(name){this.append(name,headers[name])},this)}Headers2.prototype.append=function(name,value){name=normalizeName(name),value=normalizeValue(value);var oldValue=this.map[name];this.map[name]=oldValue?oldValue+", "+value:value},Headers2.prototype.delete=function(name){delete this.map[normalizeName(name)]},Headers2.prototype.get=function(name){return name=normalizeName(name),this.has(name)?this.map[name]:null},Headers2.prototype.has=function(name){return this.map.hasOwnProperty(normalizeName(name))},Headers2.prototype.set=function(name,value){this.map[normalizeName(name)]=normalizeValue(value)},Headers2.prototype.forEach=function(callback,thisArg){for(var name in this.map)this.map.hasOwnProperty(name)&&callback.call(thisArg,this.map[name],name,this)},Headers2.prototype.keys=function(){var items=[];return this.forEach(function(value,name){items.push(name)}),iteratorFor(items)},Headers2.prototype.values=function(){var items=[];return this.forEach(function(value){items.push(value)}),iteratorFor(items)},Headers2.prototype.entries=function(){var items=[];return this.forEach(function(value,name){items.push([name,value])}),iteratorFor(items)},support.iterable&&(Headers2.prototype[Symbol.iterator]=Headers2.prototype.entries);function consumed(body){if(body.bodyUsed)return Promise.reject(new TypeError("Already read"));body.bodyUsed=!0}function fileReaderReady(reader){return new Promise(function(resolve,reject){reader.onload=function(){resolve(reader.result)},reader.onerror=function(){reject(reader.error)}})}function readBlobAsArrayBuffer(blob){var reader=new FileReader,promise=fileReaderReady(reader);return reader.readAsArrayBuffer(blob),promise}function readBlobAsText(blob){var reader=new FileReader,promise=fileReaderReady(reader);return reader.readAsText(blob),promise}function readArrayBufferAsText(buf){for(var view=new Uint8Array(buf),chars=new Array(view.length),i=0;i<view.length;i++)chars[i]=String.fromCharCode(view[i]);return chars.join("")}function bufferClone(buf){if(buf.slice)return buf.slice(0);var view=new Uint8Array(buf.byteLength);return view.set(new Uint8Array(buf)),view.buffer}function Body(){return this.bodyUsed=!1,this._initBody=function(body){this._bodyInit=body,body?typeof body=="string"?this._bodyText=body:support.blob&&Blob.prototype.isPrototypeOf(body)?this._bodyBlob=body:support.formData&&FormData.prototype.isPrototypeOf(body)?this._bodyFormData=body:support.searchParams&&URLSearchParams.prototype.isPrototypeOf(body)?this._bodyText=body.toString():support.arrayBuffer&&support.blob&&isDataView(body)?(this._bodyArrayBuffer=bufferClone(body.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):support.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(body)||isArrayBufferView(body))?this._bodyArrayBuffer=bufferClone(body):this._bodyText=body=Object.prototype.toString.call(body):this._bodyText="",this.headers.get("content-type")||(typeof body=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):support.searchParams&&URLSearchParams.prototype.isPrototypeOf(body)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},support.blob&&(this.blob=function(){var rejected=consumed(this);if(rejected)return rejected;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?consumed(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(readBlobAsArrayBuffer)}),this.text=function(){var rejected=consumed(this);if(rejected)return rejected;if(this._bodyBlob)return readBlobAsText(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(readArrayBufferAsText(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},support.formData&&(this.formData=function(){return this.text().then(decode)}),this.json=function(){return this.text().then(JSON.parse)},this}var methods=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function normalizeMethod(method){var upcased=method.toUpperCase();return methods.indexOf(upcased)>-1?upcased:method}function Request(input,options){options=options||{};var body=options.body;if(input instanceof Request){if(input.bodyUsed)throw new TypeError("Already read");this.url=input.url,this.credentials=input.credentials,options.headers||(this.headers=new Headers2(input.headers)),this.method=input.method,this.mode=input.mode,this.signal=input.signal,!body&&input._bodyInit!=null&&(body=input._bodyInit,input.bodyUsed=!0)}else this.url=String(input);if(this.credentials=options.credentials||this.credentials||"same-origin",(options.headers||!this.headers)&&(this.headers=new Headers2(options.headers)),this.method=normalizeMethod(options.method||this.method||"GET"),this.mode=options.mode||this.mode||null,this.signal=options.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&body)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(body)}Request.prototype.clone=function(){return new Request(this,{body:this._bodyInit})};function decode(body){var form=new FormData;return body.trim().split("&").forEach(function(bytes){if(bytes){var split=bytes.split("="),name=split.shift().replace(/\+/g," "),value=split.join("=").replace(/\+/g," ");form.append(decodeURIComponent(name),decodeURIComponent(value))}}),form}function parseHeaders(rawHeaders){var headers=new Headers2,preProcessedHeaders=rawHeaders.replace(/\r?\n[\t ]+/g," ");return preProcessedHeaders.split(/\r?\n/).forEach(function(line){var parts=line.split(":"),key=parts.shift().trim();if(key){var value=parts.join(":").trim();headers.append(key,value)}}),headers}Body.call(Request.prototype);function Response(bodyInit,options){options||(options={}),this.type="default",this.status=options.status===void 0?200:options.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in options?options.statusText:"OK",this.headers=new Headers2(options.headers),this.url=options.url||"",this._initBody(bodyInit)}Body.call(Response.prototype),Response.prototype.clone=function(){return new Response(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new Headers2(this.headers),url:this.url})},Response.error=function(){var response=new Response(null,{status:0,statusText:""});return response.type="error",response};var redirectStatuses=[301,302,303,307,308];Response.redirect=function(url,status){if(redirectStatuses.indexOf(status)===-1)throw new RangeError("Invalid status code");return new Response(null,{status,headers:{location:url}})},exports2.DOMException=self2.DOMException;try{new exports2.DOMException}catch{exports2.DOMException=function(message,name){this.message=message,this.name=name;var error=Error(message);this.stack=error.stack},exports2.DOMException.prototype=Object.create(Error.prototype),exports2.DOMException.prototype.constructor=exports2.DOMException}function fetch(input,init){return new Promise(function(resolve,reject){var request=new Request(input,init);if(request.signal&&request.signal.aborted)return reject(new exports2.DOMException("Aborted","AbortError"));var xhr=new XMLHttpRequest;function abortXhr(){xhr.abort()}xhr.onload=function(){var options={status:xhr.status,statusText:xhr.statusText,headers:parseHeaders(xhr.getAllResponseHeaders()||"")};options.url="responseURL"in xhr?xhr.responseURL:options.headers.get("X-Request-URL");var body="response"in xhr?xhr.response:xhr.responseText;resolve(new Response(body,options))},xhr.onerror=function(){reject(new TypeError("Network request failed"))},xhr.ontimeout=function(){reject(new TypeError("Network request failed"))},xhr.onabort=function(){reject(new exports2.DOMException("Aborted","AbortError"))},xhr.open(request.method,request.url,!0),request.credentials==="include"?xhr.withCredentials=!0:request.credentials==="omit"&&(xhr.withCredentials=!1),"responseType"in xhr&&support.blob&&(xhr.responseType="blob"),request.headers.forEach(function(value,name){xhr.setRequestHeader(name,value)}),request.signal&&(request.signal.addEventListener("abort",abortXhr),xhr.onreadystatechange=function(){xhr.readyState===4&&request.signal.removeEventListener("abort",abortXhr)}),xhr.send(typeof request._bodyInit>"u"?null:request._bodyInit)})}return fetch.polyfill=!0,self2.fetch||(self2.fetch=fetch,self2.Headers=Headers2,self2.Request=Request,self2.Response=Response),exports2.Headers=Headers2,exports2.Request=Request,exports2.Response=Response,exports2.fetch=fetch,Object.defineProperty(exports2,"__esModule",{value:!0}),exports2}({})})(__self__),__self__.fetch.ponyfill=!0,delete __self__.fetch.polyfill;var ctx=__self__;exports=ctx.fetch,exports.default=ctx.fetch,exports.fetch=ctx.fetch,exports.Headers=ctx.Headers,exports.Request=ctx.Request,exports.Response=ctx.Response,module.exports=exports},88539:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var isValue=__webpack_require__(36866),isPlainFunction=__webpack_require__(41879),assign=__webpack_require__(86023),normalizeOpts=__webpack_require__(53923),contains=__webpack_require__(97201),d=module.exports=function(dscr,value){var c,e,w,options,desc;return arguments.length<2||typeof dscr!="string"?(options=value,value=dscr,dscr=null):options=arguments[2],isValue(dscr)?(c=contains.call(dscr,"c"),e=contains.call(dscr,"e"),w=contains.call(dscr,"w")):(c=w=!0,e=!1),desc={value,configurable:c,enumerable:e,writable:w},options?assign(normalizeOpts(options),desc):desc};d.gs=function(dscr,get,set){var c,e,options,desc;return typeof dscr!="string"?(options=set,set=get,get=dscr,dscr=null):options=arguments[3],isValue(get)?isPlainFunction(get)?isValue(set)?isPlainFunction(set)||(options=set,set=void 0):set=void 0:(options=get,get=set=void 0):get=void 0,isValue(dscr)?(c=contains.call(dscr,"c"),e=contains.call(dscr,"e")):(c=!0,e=!1),desc={get,set,configurable:c,enumerable:e},options?assign(normalizeOpts(options),desc):desc}},14930:module=>{"use strict";module.exports=function(str,sep){if(typeof str!="string")throw new TypeError("Expected a string");return sep=typeof sep>"u"?"_":sep,str.replace(/([a-z\d])([A-Z])/g,"$1"+sep+"$2").replace(/([A-Z]+)([A-Z][a-z\d]+)/g,"$1"+sep+"$2").toLowerCase()}},11992:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var numberIsNaN=__webpack_require__(55466),toPosInt=__webpack_require__(61895),value=__webpack_require__(93600),indexOf=Array.prototype.indexOf,objHasOwnProperty=Object.prototype.hasOwnProperty,abs=Math.abs,floor=Math.floor;module.exports=function(searchElement){var i,length,fromIndex,val;if(!numberIsNaN(searchElement))return indexOf.apply(this,arguments);for(length=toPosInt(value(this).length),fromIndex=arguments[1],isNaN(fromIndex)?fromIndex=0:fromIndex>=0?fromIndex=floor(fromIndex):fromIndex=toPosInt(this.length)-floor(abs(fromIndex)),i=fromIndex;i<length;++i)if(objHasOwnProperty.call(this,i)&&(val=this[i],numberIsNaN(val)))return i;return-1}},3642:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=__webpack_require__(38760)()?Array.from:__webpack_require__(58015)},38760:module=>{"use strict";module.exports=function(){var from=Array.from,arr,result;return typeof from!="function"?!1:(arr=["raz","dwa"],result=from(arr),Boolean(result&&result!==arr&&result[1]==="dwa"))}},58015:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var iteratorSymbol=__webpack_require__(45768).iterator,isArguments=__webpack_require__(3930),isFunction=__webpack_require__(63959),toPosInt=__webpack_require__(61895),callable=__webpack_require__(67446),validValue=__webpack_require__(93600),isValue=__webpack_require__(53095),isString=__webpack_require__(65819),isArray=Array.isArray,call=Function.prototype.call,desc={configurable:!0,enumerable:!0,writable:!0,value:null},defineProperty=Object.defineProperty;module.exports=function(arrayLike){var mapFn=arguments[1],thisArg=arguments[2],Context,i,j,arr,length,code,iterator,result,getIterator,value;if(arrayLike=Object(validValue(arrayLike)),isValue(mapFn)&&callable(mapFn),!this||this===Array||!isFunction(this)){if(!mapFn){if(isArguments(arrayLike))return length=arrayLike.length,length!==1?Array.apply(null,arrayLike):(arr=new Array(1),arr[0]=arrayLike[0],arr);if(isArray(arrayLike)){for(arr=new Array(length=arrayLike.length),i=0;i<length;++i)arr[i]=arrayLike[i];return arr}}arr=[]}else Context=this;if(!isArray(arrayLike)){if((getIterator=arrayLike[iteratorSymbol])!==void 0){for(iterator=callable(getIterator).call(arrayLike),Context&&(arr=new Context),result=iterator.next(),i=0;!result.done;)value=mapFn?call.call(mapFn,thisArg,result.value,i):result.value,Context?(desc.value=value,defineProperty(arr,i,desc)):arr[i]=value,result=iterator.next(),++i;length=i}else if(isString(arrayLike)){for(length=arrayLike.length,Context&&(arr=new Context),i=0,j=0;i<length;++i)value=arrayLike[i],i+1<length&&(code=value.charCodeAt(0),code>=55296&&code<=56319&&(value+=arrayLike[++i])),value=mapFn?call.call(mapFn,thisArg,value,j):value,Context?(desc.value=value,defineProperty(arr,j,desc)):arr[j]=value,++j;length=j}}if(length===void 0)for(length=toPosInt(arrayLike.length),Context&&(arr=new Context(length)),i=0;i<length;++i)value=mapFn?call.call(mapFn,thisArg,arrayLike[i],i):arrayLike[i],Context?(desc.value=value,defineProperty(arr,i,desc)):arr[i]=value;return Context&&(desc.value=null,arr.length=length),arr}},28813:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var from=__webpack_require__(3642),isArray=Array.isArray;module.exports=function(arrayLike){return isArray(arrayLike)?arrayLike:from(arrayLike)}},99655:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var assign=__webpack_require__(86023),isObject=__webpack_require__(68381),isValue=__webpack_require__(53095),captureStackTrace=Error.captureStackTrace;module.exports=function(message){var err=new Error(message),code=arguments[1],ext=arguments[2];return isValue(ext)||isObject(code)&&(ext=code,code=null),isValue(ext)&&assign(err,ext),isValue(code)&&(err.code=code),captureStackTrace&&captureStackTrace(err,module.exports),err}},19733:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var toPosInt=__webpack_require__(61895),test=function(arg1,arg2){return arg2},desc,defineProperty,generate,mixin;try{Object.defineProperty(test,"length",{configurable:!0,writable:!1,enumerable:!1,value:1})}catch{}test.length===1?(desc={configurable:!0,writable:!1,enumerable:!1},defineProperty=Object.defineProperty,module.exports=function(fn,length){return length=toPosInt(length),fn.length===length?fn:(desc.value=length,defineProperty(fn,"length",desc))}):(mixin=__webpack_require__(52602),generate=function(){var cache=[];return function(length){var args,i=0;if(cache[length])return cache[length];for(args=[];length--;)args.push("a"+(++i).toString(36));return new Function("fn","return function ("+args.join(", ")+") { return fn.apply(this, arguments); };")}}(),module.exports=function(src,length){var target;if(length=toPosInt(length),src.length===length)return src;target=generate(length)(src);try{mixin(target,src)}catch{}return target})},3930:module=>{"use strict";var objToString=Object.prototype.toString,id=objToString.call(function(){return arguments}());module.exports=function(value){return objToString.call(value)===id}},63959:module=>{"use strict";var objToString=Object.prototype.toString,isFunctionStringTag=RegExp.prototype.test.bind(/^[object [A-Za-z0-9]*Function]$/);module.exports=function(value){return typeof value=="function"&&isFunctionStringTag(objToString.call(value))}},69412:module=>{"use strict";module.exports=function(){}},13601:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=__webpack_require__(583)()?Math.sign:__webpack_require__(98750)},583:module=>{"use strict";module.exports=function(){var sign=Math.sign;return typeof sign!="function"?!1:sign(10)===1&&sign(-20)===-1}},98750:module=>{"use strict";module.exports=function(value){return value=Number(value),isNaN(value)||value===0?value:value>0?1:-1}},55466:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=__webpack_require__(25291)()?Number.isNaN:__webpack_require__(89180)},25291:module=>{"use strict";module.exports=function(){var numberIsNaN=Number.isNaN;return typeof numberIsNaN!="function"?!1:!numberIsNaN({})&&numberIsNaN(NaN)&&!numberIsNaN(34)}},89180:module=>{"use strict";module.exports=function(value){return value!==value}},42897:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var sign=__webpack_require__(13601),abs=Math.abs,floor=Math.floor;module.exports=function(value){return isNaN(value)?0:(value=Number(value),value===0||!isFinite(value)?value:sign(value)*floor(abs(value)))}},61895:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var toInteger=__webpack_require__(42897),max=Math.max;module.exports=function(value){return max(0,toInteger(value))}},56894:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var callable=__webpack_require__(67446),value=__webpack_require__(93600),bind=Function.prototype.bind,call=Function.prototype.call,keys=Object.keys,objPropertyIsEnumerable=Object.prototype.propertyIsEnumerable;module.exports=function(method,defVal){return function(obj,cb){var list,thisArg=arguments[2],compareFn=arguments[3];return obj=Object(value(obj)),callable(cb),list=keys(obj),compareFn&&list.sort(typeof compareFn=="function"?bind.call(compareFn,obj):void 0),typeof method!="function"&&(method=list[method]),call.call(method,list,function(key,index){return objPropertyIsEnumerable.call(obj,key)?call.call(cb,thisArg,obj[key],key,obj,index):defVal})}}},86023:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=__webpack_require__(42725)()?Object.assign:__webpack_require__(96494)},42725:module=>{"use strict";module.exports=function(){var assign=Object.assign,obj;return typeof assign!="function"?!1:(obj={foo:"raz"},assign(obj,{bar:"dwa"},{trzy:"trzy"}),obj.foo+obj.bar+obj.trzy==="razdwatrzy")}},96494:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var keys=__webpack_require__(49950),value=__webpack_require__(93600),max=Math.max;module.exports=function(dest,src){var error,i,length=max(arguments.length,2),assign;for(dest=Object(value(dest)),assign=function(key){try{dest[key]=src[key]}catch(e){error||(error=e)}},i=1;i<length;++i)src=arguments[i],keys(src).forEach(assign);if(error!==void 0)throw error;return dest}},79845:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=__webpack_require__(56894)("forEach")},50788:module=>{"use strict";module.exports=function(obj){return typeof obj=="function"}},68381:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var isValue=__webpack_require__(53095),map={function:!0,object:!0};module.exports=function(value){return isValue(value)&&map[typeof value]||!1}},53095:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var _undefined=__webpack_require__(69412)();module.exports=function(val){return val!==_undefined&&val!==null}},49950:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=__webpack_require__(25182)()?Object.keys:__webpack_require__(87400)},25182:module=>{"use strict";module.exports=function(){try{return Object.keys("primitive"),!0}catch{return!1}}},87400:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var isValue=__webpack_require__(53095),keys=Object.keys;module.exports=function(object){return keys(isValue(object)?Object(object):object)}},68762:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var callable=__webpack_require__(67446),forEach=__webpack_require__(79845),call=Function.prototype.call;module.exports=function(obj,cb){var result={},thisArg=arguments[2];return callable(cb),forEach(obj,function(value,key,targetObj,index){result[key]=call.call(cb,thisArg,value,key,targetObj,index)}),result}},52602:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var value=__webpack_require__(93600),defineProperty=Object.defineProperty,getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor,getOwnPropertyNames=Object.getOwnPropertyNames,getOwnPropertySymbols=Object.getOwnPropertySymbols;module.exports=function(target,source){var error,sourceObject=Object(value(source));if(target=Object(value(target)),getOwnPropertyNames(sourceObject).forEach(function(name){try{defineProperty(target,name,getOwnPropertyDescriptor(source,name))}catch(e){error=e}}),typeof getOwnPropertySymbols=="function"&&getOwnPropertySymbols(sourceObject).forEach(function(symbol){try{defineProperty(target,symbol,getOwnPropertyDescriptor(source,symbol))}catch(e){error=e}}),error!==void 0)throw error;return target}},53923:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var isValue=__webpack_require__(53095),forEach=Array.prototype.forEach,create=Object.create,process=function(src,obj){var key;for(key in src)obj[key]=src[key]};module.exports=function(opts1){var result=create(null);return forEach.call(arguments,function(options){!isValue(options)||process(Object(options),result)}),result}},37291:module=>{"use strict";var forEach=Array.prototype.forEach,create=Object.create;module.exports=function(arg){var set=create(null);return forEach.call(arguments,function(name){set[name]=!0}),set}},67446:module=>{"use strict";module.exports=function(fn){if(typeof fn!="function")throw new TypeError(fn+" is not a function");return fn}},93600:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var isValue=__webpack_require__(53095);module.exports=function(value){if(!isValue(value))throw new TypeError("Cannot use null or undefined");return value}},97551:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var ensureValue=__webpack_require__(93600),stringifiable=__webpack_require__(99799);module.exports=function(value){return stringifiable(ensureValue(value))}},99799:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var isCallable=__webpack_require__(50788);module.exports=function(stringifiable){try{return stringifiable&&isCallable(stringifiable.toString)?stringifiable.toString():String(stringifiable)}catch{throw new TypeError("Passed argument cannot be stringifed")}}},22423:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var isCallable=__webpack_require__(50788);module.exports=function(value){try{return value&&isCallable(value.toString)?value.toString():String(value)}catch{return"<Non-coercible to string value>"}}},97201:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=__webpack_require__(53030)()?String.prototype.contains:__webpack_require__(23108)},53030:module=>{"use strict";var str="razdwatrzy";module.exports=function(){return typeof str.contains!="function"?!1:str.contains("dwa")===!0&&str.contains("foo")===!1}},23108:module=>{"use strict";var indexOf=String.prototype.indexOf;module.exports=function(searchString){return indexOf.call(this,searchString,arguments[1])>-1}},65819:module=>{"use strict";var objToString=Object.prototype.toString,id=objToString.call("");module.exports=function(value){return typeof value=="string"||value&&typeof value=="object"&&(value instanceof String||objToString.call(value)===id)||!1}},12213:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var safeToString=__webpack_require__(22423),reNewLine=/[\n\r\u2028\u2029]/g;module.exports=function(value){var string=safeToString(value);return string.length>100&&(string=string.slice(0,99)+"\u2026"),string=string.replace(reNewLine,function(char){return JSON.stringify(char).slice(1,-1)}),string}},45768:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=__webpack_require__(92070)()?__webpack_require__(31800).Symbol:__webpack_require__(31747)},92070:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var global=__webpack_require__(31800),validTypes={object:!0,symbol:!0};module.exports=function(){var Symbol2=global.Symbol,symbol;if(typeof Symbol2!="function")return!1;symbol=Symbol2("test symbol");try{String(symbol)}catch{return!1}return!(!validTypes[typeof Symbol2.iterator]||!validTypes[typeof Symbol2.toPrimitive]||!validTypes[typeof Symbol2.toStringTag])}},37537:module=>{"use strict";module.exports=function(value){return value?typeof value=="symbol"?!0:!value.constructor||value.constructor.name!=="Symbol"?!1:value[value.constructor.toStringTag]==="Symbol":!1}},49745:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var d=__webpack_require__(88539),create=Object.create,defineProperty=Object.defineProperty,objPrototype=Object.prototype,created=create(null);module.exports=function(desc){for(var postfix=0,name,ie11BugWorkaround;created[desc+(postfix||"")];)++postfix;return desc+=postfix||"",created[desc]=!0,name="@@"+desc,defineProperty(objPrototype,name,d.gs(null,function(value){ie11BugWorkaround||(ie11BugWorkaround=!0,defineProperty(this,name,d(value)),ie11BugWorkaround=!1)})),name}},77713:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var d=__webpack_require__(88539),NativeSymbol=__webpack_require__(31800).Symbol;module.exports=function(SymbolPolyfill){return Object.defineProperties(SymbolPolyfill,{hasInstance:d("",NativeSymbol&&NativeSymbol.hasInstance||SymbolPolyfill("hasInstance")),isConcatSpreadable:d("",NativeSymbol&&NativeSymbol.isConcatSpreadable||SymbolPolyfill("isConcatSpreadable")),iterator:d("",NativeSymbol&&NativeSymbol.iterator||SymbolPolyfill("iterator")),match:d("",NativeSymbol&&NativeSymbol.match||SymbolPolyfill("match")),replace:d("",NativeSymbol&&NativeSymbol.replace||SymbolPolyfill("replace")),search:d("",NativeSymbol&&NativeSymbol.search||SymbolPolyfill("search")),species:d("",NativeSymbol&&NativeSymbol.species||SymbolPolyfill("species")),split:d("",NativeSymbol&&NativeSymbol.split||SymbolPolyfill("split")),toPrimitive:d("",NativeSymbol&&NativeSymbol.toPrimitive||SymbolPolyfill("toPrimitive")),toStringTag:d("",NativeSymbol&&NativeSymbol.toStringTag||SymbolPolyfill("toStringTag")),unscopables:d("",NativeSymbol&&NativeSymbol.unscopables||SymbolPolyfill("unscopables"))})}},84328:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var d=__webpack_require__(88539),validateSymbol=__webpack_require__(10566),registry=Object.create(null);module.exports=function(SymbolPolyfill){return Object.defineProperties(SymbolPolyfill,{for:d(function(key){return registry[key]?registry[key]:registry[key]=SymbolPolyfill(String(key))}),keyFor:d(function(symbol){var key;validateSymbol(symbol);for(key in registry)if(registry[key]===symbol)return key})})}},31747:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var d=__webpack_require__(88539),validateSymbol=__webpack_require__(10566),NativeSymbol=__webpack_require__(31800).Symbol,generateName=__webpack_require__(49745),setupStandardSymbols=__webpack_require__(77713),setupSymbolRegistry=__webpack_require__(84328),create=Object.create,defineProperties=Object.defineProperties,defineProperty=Object.defineProperty,SymbolPolyfill,HiddenSymbol,isNativeSafe;if(typeof NativeSymbol=="function")try{String(NativeSymbol()),isNativeSafe=!0}catch{}else NativeSymbol=null;HiddenSymbol=function(description){if(this instanceof HiddenSymbol)throw new TypeError("Symbol is not a constructor");return SymbolPolyfill(description)},module.exports=SymbolPolyfill=function Symbol2(description){var symbol;if(this instanceof Symbol2)throw new TypeError("Symbol is not a constructor");return isNativeSafe?NativeSymbol(description):(symbol=create(HiddenSymbol.prototype),description=description===void 0?"":String(description),defineProperties(symbol,{__description__:d("",description),__name__:d("",generateName(description))}))},setupStandardSymbols(SymbolPolyfill),setupSymbolRegistry(SymbolPolyfill),defineProperties(HiddenSymbol.prototype,{constructor:d(SymbolPolyfill),toString:d("",function(){return this.__name__})}),defineProperties(SymbolPolyfill.prototype,{toString:d(function(){return"Symbol ("+validateSymbol(this).__description__+")"}),valueOf:d(function(){return validateSymbol(this)})}),defineProperty(SymbolPolyfill.prototype,SymbolPolyfill.toPrimitive,d("",function(){var symbol=validateSymbol(this);return typeof symbol=="symbol"?symbol:symbol.toString()})),defineProperty(SymbolPolyfill.prototype,SymbolPolyfill.toStringTag,d("c","Symbol")),defineProperty(HiddenSymbol.prototype,SymbolPolyfill.toStringTag,d("c",SymbolPolyfill.prototype[SymbolPolyfill.toStringTag])),defineProperty(HiddenSymbol.prototype,SymbolPolyfill.toPrimitive,d("c",SymbolPolyfill.prototype[SymbolPolyfill.toPrimitive]))},10566:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var isSymbol=__webpack_require__(37537);module.exports=function(value){if(!isSymbol(value))throw new TypeError(value+" is not a symbol");return value}},78421:(module,exports,__webpack_require__)=>{"use strict";var d=__webpack_require__(88539),callable=__webpack_require__(67446),apply=Function.prototype.apply,call=Function.prototype.call,create=Object.create,defineProperty=Object.defineProperty,defineProperties=Object.defineProperties,hasOwnProperty2=Object.prototype.hasOwnProperty,descriptor={configurable:!0,enumerable:!1,writable:!0},on,once,off,emit,methods,descriptors,base;on=function(type,listener){var data;return callable(listener),hasOwnProperty2.call(this,"__ee__")?data=this.__ee__:(data=descriptor.value=create(null),defineProperty(this,"__ee__",descriptor),descriptor.value=null),data[type]?typeof data[type]=="object"?data[type].push(listener):data[type]=[data[type],listener]:data[type]=listener,this},once=function(type,listener){var once2,self2;return callable(listener),self2=this,on.call(this,type,once2=function(){off.call(self2,type,once2),apply.call(listener,this,arguments)}),once2.__eeOnceListener__=listener,this},off=function(type,listener){var data,listeners,candidate,i;if(callable(listener),!hasOwnProperty2.call(this,"__ee__"))return this;if(data=this.__ee__,!data[type])return this;if(listeners=data[type],typeof listeners=="object")for(i=0;candidate=listeners[i];++i)(candidate===listener||candidate.__eeOnceListener__===listener)&&(listeners.length===2?data[type]=listeners[i?0:1]:listeners.splice(i,1));else(listeners===listener||listeners.__eeOnceListener__===listener)&&delete data[type];return this},emit=function(type){var i,l,listener,listeners,args;if(!!hasOwnProperty2.call(this,"__ee__")&&(listeners=this.__ee__[type],!!listeners))if(typeof listeners=="object"){for(l=arguments.length,args=new Array(l-1),i=1;i<l;++i)args[i-1]=arguments[i];for(listeners=listeners.slice(),i=0;listener=listeners[i];++i)apply.call(listener,this,args)}else switch(arguments.length){case 1:call.call(listeners,this);break;case 2:call.call(listeners,this,arguments[1]);break;case 3:call.call(listeners,this,arguments[1],arguments[2]);break;default:for(l=arguments.length,args=new Array(l-1),i=1;i<l;++i)args[i-1]=arguments[i];apply.call(listeners,this,args)}},methods={on,once,off,emit},descriptors={on:d(on),once:d(once),off:d(off),emit:d(emit)},base=defineProperties({},descriptors),module.exports=exports=function(o){return o==null?create(base):defineProperties(Object(o),descriptors)},exports.methods=methods},71922:module=>{var naiveFallback=function(){if(typeof self=="object"&&self)return self;if(typeof window=="object"&&window)return window;throw new Error("Unable to resolve global `this`")};module.exports=function(){if(this)return this;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch{return naiveFallback()}try{return __global__||naiveFallback()}finally{delete Object.prototype.__global__}}()},31800:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=__webpack_require__(89857)()?globalThis:__webpack_require__(71922)},89857:module=>{"use strict";module.exports=function(){return typeof globalThis!="object"||!globalThis?!1:globalThis.Array===Array}},23711:module=>{module.exports=isPromise,module.exports.default=isPromise;function isPromise(obj){return!!obj&&(typeof obj=="object"||typeof obj=="function")&&typeof obj.then=="function"}},15510:function(module,exports,__webpack_require__){module=__webpack_require__.nmd(module);var __WEBPACK_AMD_DEFINE_RESULT__;/**
|
29
|
+
`;async function fetchComponentAspects(componentId){try{return(await(0,_graphqlRequest().request)(GQL_SERVER,GET_COMPONENT_ASPECTS,{id:componentId.toString()})).getHost.get.aspects.map(x=>x.id)}catch(err){console.error(`[gql] error on "getComponentAspects" - "${err.toString()}"`);return}}},38733:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.loadLink=loadLink,exports.loadScript=loadScript;function loadScript({src}){return new Promise((resolve,reject)=>{const script=document.createElement("script");script.setAttribute("defer","defer"),script.src=src,script.onload=()=>resolve(),script.onerror=(message,_,_1,_2,error)=>reject(error||new Error(`[preview.preview] failed to load script: ${message}`)),document.head.appendChild(script)})}function loadLink({href}){return new Promise((resolve,reject)=>{const link=document.createElement("link");href.endsWith(".css")&&link.setAttribute("rel","stylesheet"),link.setAttribute("href",href),link.onload=()=>resolve(),link.onerror=(message,_,_1,_2,error)=>reject(error||new Error(`[preview.preview] failed to load link: ${message}`)),document.head.appendChild(link)})}},73409:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"PREVIEW_MODULES",{enumerable:!0,get:function(){return _previewModules().PREVIEW_MODULES}}),Object.defineProperty(exports,"PreviewModules",{enumerable:!0,get:function(){return _previewModules().PreviewModules}}),Object.defineProperty(exports,"linkModules",{enumerable:!0,get:function(){return _previewModules().linkModules}});function _previewModules(){const data=__webpack_require__(52195);return _previewModules=function(){return data},data}},6931:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.PreviewRuntime=exports.PreviewAspect=void 0;function _harmony(){const data=__webpack_require__(83138);return _harmony=function(){return data},data}const PreviewRuntime=exports.PreviewRuntime=new(_harmony()).RuntimeDefinition("preview"),PreviewAspect=exports.PreviewAspect=_harmony().Aspect.create({id:"teambit.preview/preview",dependencies:[],defaultConfig:{},declareRuntime:PreviewRuntime});var _default=exports.default=PreviewAspect},52487:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";var __webpack_unused_export__;__webpack_unused_export__={value:!0},__webpack_unused_export__=void 0,Object.defineProperty(exports,"Bu",{enumerable:!0,get:function(){return _previewModules().linkModules}});function _pubsub(){const data=__webpack_require__(95404);return _pubsub=function(){return data},data}function _harmony(){const data=__webpack_require__(83138);return _harmony=function(){return data},data}function _componentId(){const data=__webpack_require__(84638);return _componentId=function(){return data},data}function _crossFetch(){const data=_interopRequireDefault(__webpack_require__(38882));return _crossFetch=function(){return data},data}function _memoizee(){const data=_interopRequireDefault(__webpack_require__(96265));return _memoizee=function(){return data},data}function _lodash(){const data=__webpack_require__(81743);return _lodash=function(){return data},data}function _exceptions(){const data=__webpack_require__(70611);return _exceptions=function(){return data},data}function _preview(){const data=__webpack_require__(6931);return _preview=function(){return data},data}function _events(){const data=__webpack_require__(49470);return _events=function(){return data},data}function _renderingContext(){const data=__webpack_require__(47472);return _renderingContext=function(){return data},data}function _fetchComponentAspects(){const data=__webpack_require__(3124);return _fetchComponentAspects=function(){return data},data}function _previewModules(){const data=__webpack_require__(73409);return _previewModules=function(){return data},data}function _htmlUtils(){const data=__webpack_require__(38733);return _htmlUtils=function(){return data},data}function _sizeEvent(){const data=__webpack_require__(11034);return _sizeEvent=function(){return data},data}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}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}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return typeof i=="symbol"?i:i+""}function _toPrimitive(t,r){if(typeof t!="object"||!t)return t;var e=t[Symbol.toPrimitive];if(e!==void 0){var i=e.call(t,r||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}class PreviewPreview{constructor(pubsub,previewSlot,renderingContextSlot){this.pubsub=pubsub,this.previewSlot=previewSlot,this.renderingContextSlot=renderingContextSlot,_defineProperty(this,"isDev",!1),_defineProperty(this,"_setupPromise",void 0),_defineProperty(this,"setup",()=>this.isReady()?Promise.resolve():(this._setupPromise??=new Promise(resolve=>{_previewModules().PREVIEW_MODULES.onSet.add(()=>{this.isReady()&&resolve()})}),this._setupPromise)),_defineProperty(this,"render",async rootExt=>{window.document.body.style.width="fit-content";const{previewName,componentId,envId}=this.getLocation(),name=previewName||this.getDefault();rootExt&&(this.isDev=rootExt==="teambit.workspace/workspace");const preview=this.getPreview(name);if(!preview||!componentId)throw new(_exceptions()).PreviewNotFound(previewName);const includesAll=await Promise.all((preview.include||[]).map(async inclPreviewName=>{const includedPreview=this.getPreview(inclPreviewName);if(!includedPreview)return;const inclPreviewModule=await this.getPreviewModule(inclPreviewName,componentId);return includedPreview.selectPreviewModel?.(componentId.fullName,inclPreviewModule)})),query=this.getQuery(),includes=this.getParam(query,"onlyOverview")==="true"?[]:includesAll.filter(module=>!!module).map(module=>{if(!module.default||!(0,_lodash().isObject)(module.default))return module;const keysWithoutDefault=Object.keys(module).filter(key=>key!=="default"),defaultKeys=Object.keys(module.default);return(0,_lodash().intersection)(keysWithoutDefault,defaultKeys).length===defaultKeys.length?module.default:module}),componentAspects=this.isDev?await this.getComponentAspects(componentId.toString()):void 0,previewModule=await this.getPreviewModule(name,componentId),render=preview.render(componentId,envId||"",previewModule,includes,this.getRenderingContext(componentAspects));return this.reportSize(),this.setViewport(),this.setFullScreen(),render}),_defineProperty(this,"getComponentAspects",(0,_memoizee().default)(_fetchComponentAspects().fetchComponentAspects,{max:100,maxAge:12*60*60*1e3})),this.registerClickPubSub()}registerClickPubSub(){window.addEventListener("click",e=>{const timestamp=Date.now(),clickEvent=Object.assign({},e);this.pubsub.pub(_preview().PreviewAspect.id,new(_events()).ClickInsideAnIframeEvent(timestamp,clickEvent))})}isReady(){const{previewName}=this.getLocation(),name=previewName||this.getDefault();if(!_previewModules().PREVIEW_MODULES.has(name))return!1;const preview=this.getPreview(name);return!(!preview||!(preview.include?.every(included=>_previewModules().PREVIEW_MODULES.has(included))??!0))}setFullScreen(){const query=this.getQuery();if(!this.getParam(query,"fullscreen"))return;const root=window.document.getElementById("root");root&&(root.style.height="100vh")}setViewport(){const query=this.getQuery(),viewPort=this.getParam(query,"viewport");if(!viewPort){window.document.body.style.width="100%";return}window.document.body.style.maxWidth=`${viewPort}px`}reportSize(){if(!window?.parent||!window?.document)return;const sendPubsubEvent=()=>{this.pubsub.pub(_preview().PreviewAspect.id,new(_sizeEvent()).SizeEvent({width:window.document.body.offsetWidth,height:window.document.body.offsetHeight}))};window.document.body.addEventListener("resize",(0,_lodash().debounce)(sendPubsubEvent,300));let counter=0;const interval=setInterval(()=>{if(counter+=1,counter>10){clearInterval(interval);return}this.pubsub.pub(_preview().PreviewAspect.id,new(_sizeEvent()).SizeEvent({width:window.document.body.offsetWidth,height:window.document.body.offsetHeight}))},200)}async getPreviewModule(previewName,id){const compShortId=id.fullName,relevantModel=_previewModules().PREVIEW_MODULES.get(previewName);if(!relevantModel)throw new Error(`[preview.preview] missing preview "${previewName}"`);if(relevantModel.componentMap[compShortId])return relevantModel;const componentPreviews=await this.fetchComponentPreview(id,previewName);_previewModules().PREVIEW_MODULES.loadComponentPreviews(compShortId,componentPreviews);const component=componentPreviews[previewName],metadata=componentPreviews[`${previewName}_metadata`];return{modulesMap:relevantModel.modulesMap,componentMap:{[id.fullName]:component},componentMapMetadata:{[id.fullName]:metadata}}}async fetchComponentPreview(id,name){let previewFile;const allFiles=await this.fetchComponentPreviewFiles(id,name);return allFiles===null?{}:(await Promise.all(allFiles.map(file=>{if(file.endsWith("-preview.js")){previewFile=file;return}return this.addComponentFileElement(id,file)})),previewFile?this.loadPreviewScript(id,name,previewFile):{})}addComponentFileElement(id,previewBundleFileName){if(previewBundleFileName.endsWith(".js"))return this.addComponentFileScriptElement(id,previewBundleFileName);this.addComponentFileLinkElement(id,previewBundleFileName).catch(err=>{throw new Error(`[preview.preview] failed loading asset "${previewBundleFileName}". Error - "${err?.toString()}"`)})}async fetchComponentPreviewFiles(id,previewName){const previewAssetsRoute="~aspect/preview-assets",url=`/api/${id.toString()}/${previewAssetsRoute}`,res=await(0,_crossFetch().default)(url);if(res.status>=400)throw new(_exceptions()).PreviewNotFound(previewName);const parsed=await res.json();if(parsed.isBundledWithEnv)return null;if(!parsed.files||!parsed.files.length)throw new(_exceptions()).PreviewNotFound(previewName);return parsed.files}addComponentFileScriptElement(id,previewBundleFileName){const previewRoute="~aspect/component-preview",src=`/api/${id.toString()}/${previewRoute}/${previewBundleFileName}`;return(0,_htmlUtils().loadScript)({src})}addComponentFileLinkElement(id,previewBundleFileName){const href=`/api/${id.toString()}/~aspect/component-preview/${previewBundleFileName}`;return(0,_htmlUtils().loadLink)({href})}async loadPreviewScript(id,previewName,previewBundleFileName){const previewRoute="~aspect/component-preview",src=`/api/${id.toString()}/${previewRoute}/${previewBundleFileName}`;await(0,_htmlUtils().loadScript)({src});const globalId=`${id.toStringWithoutVersion()}-preview`,componentPreview=window[globalId];if(!componentPreview)throw new(_exceptions()).PreviewNotFound(previewName);return componentPreview}registerPreview(preview){return this.previewSlot.register(preview),this}getRenderingContext(aspectsFilter){return new(_renderingContext()).RenderingContext(this.renderingContextSlot,{aspectsFilter})}registerRenderContext(renderContext){return this.renderingContextSlot.register(renderContext),this}getDefault(){const previews=this.previewSlot.values();return previews.find(previewCandidate=>previewCandidate.default)?.name||previews[0].name}getPreview(previewName){return this.previewSlot.values().find(previewCandidate=>previewCandidate.name===previewName)}getParam(query,param){return new URLSearchParams(query).get(param)}getQuery(){const withoutHash=window.location.hash.substring(1),[,after]=withoutHash.split("?");return after}getLocation(){const withoutHash=window.location.hash.substring(1),[before,after]=withoutHash.split("?");return{previewName:this.getParam(after,"preview"),envId:this.getParam(after,"env"),componentId:_componentId().ComponentID.tryFromString(before)}}static async provider([pubsub],config,[previewSlot,renderingContextSlot]){const preview=new PreviewPreview(pubsub,previewSlot,renderingContextSlot);return window.addEventListener("hashchange",()=>{preview.render()}),preview}}__webpack_unused_export__=PreviewPreview,_defineProperty(PreviewPreview,"runtime",_preview().PreviewRuntime),_defineProperty(PreviewPreview,"dependencies",[_pubsub().PubsubAspect]),_defineProperty(PreviewPreview,"slots",[_harmony().Slot.withType(),_harmony().Slot.withType()]),_preview().PreviewAspect.addRuntime(PreviewPreview)},47472:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.RenderingContext=void 0;class RenderingContext{constructor(contexts,options={}){this.contexts=contexts,this.options=options}get(aspectId){return this.contexts.get(aspectId)?.(this.options)}}exports.RenderingContext=RenderingContext},11034:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.SizeEvent=void 0;function _pubsub(){const data=__webpack_require__(95404);return _pubsub=function(){return data},data}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}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return typeof i=="symbol"?i:i+""}function _toPrimitive(t,r){if(typeof t!="object"||!t)return t;var e=t[Symbol.toPrimitive];if(e!==void 0){var i=e.call(t,r||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}class SizeEvent extends _pubsub().BitBaseEvent{constructor(sizeEvent){super(SizeEvent.TYPE,"0.0.1",new Date().getTime(),sizeEvent)}}exports.SizeEvent=SizeEvent,_defineProperty(SizeEvent,"TYPE","preview-size")},84260:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.BitBaseEvent=void 0;class BitBaseEvent{constructor(type,version,timestamp,data){this.type=type,this.version=version,this.timestamp=timestamp,this.data=data}}exports.BitBaseEvent=BitBaseEvent},95404:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"BitBaseEvent",{enumerable:!0,get:function(){return _bitBaseEvent().BitBaseEvent}}),Object.defineProperty(exports,"PubsubAspect",{enumerable:!0,get:function(){return _pubsub().PubsubAspect}}),Object.defineProperty(exports,"default",{enumerable:!0,get:function(){return _pubsub().PubsubAspect}}),Object.defineProperty(exports,"usePubSub",{enumerable:!0,get:function(){return _pubsubContext().usePubSub}}),Object.defineProperty(exports,"usePubSubIframe",{enumerable:!0,get:function(){return _pubsubContext().usePubSubIframe}});function _pubsub(){const data=__webpack_require__(54017);return _pubsub=function(){return data},data}function _bitBaseEvent(){const data=__webpack_require__(84260);return _bitBaseEvent=function(){return data},data}function _pubsubContext(){const data=__webpack_require__(14591);return _pubsubContext=function(){return data},data}},14591:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.createProvider=createProvider,exports.pubsubRegistry=void 0,exports.usePubSub=usePubSub,exports.usePubSubIframe=usePubSubIframe;function _react(){const data=_interopRequireWildcard(__webpack_require__(59496));return _react=function(){return data},data}function _getRequireWildcardCache(e){if(typeof WeakMap!="function")return null;var r=new WeakMap,t=new WeakMap;return(_getRequireWildcardCache=function(e2){return e2?t:r})(e)}function _interopRequireWildcard(e,r){if(!r&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=_getRequireWildcardCache(r);if(t&&t.has(e))return t.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if(u!=="default"&&{}.hasOwnProperty.call(e,u)){var i=a?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(n,u,i):n[u]=e[u]}return n.default=e,t&&t.set(e,n),n}const pubsubRegistry=exports.pubsubRegistry=(0,_react().createContext)(void 0);function createProvider(pubSubContext){return({children})=>_react().default.createElement(pubsubRegistry.Provider,{value:pubSubContext},children)}function usePubSub(){return(0,_react().useContext)(pubsubRegistry)}function usePubSubIframe(ref){const pubSub=usePubSub();(0,_react().useEffect)(()=>{if(!ref?.current||!pubSub)return()=>{};const destroyConnection=pubSub.connect(ref.current);return()=>destroyConnection()},[ref?.current,pubSub])}},54017:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.PubsubAspect=void 0;function _harmony(){const data=__webpack_require__(83138);return _harmony=function(){return data},data}const PubsubAspect=exports.PubsubAspect=_harmony().Aspect.create({id:"teambit.harmony/pubsub",dependencies:[]});var _default=exports.default=PubsubAspect},740:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var tarjan_1=__webpack_require__(32780);exports.tarjan=tarjan_1.tarjan},32780:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0});const lodash_1=__importDefault(__webpack_require__(81743));function tarjan(g){var index=0,stack=[],visited={},results=[];function dfs(v){var entry=visited[v]={onStack:!0,lowlink:index,index:index++};if(stack.push(v),[...g.successors(v).keys()].forEach(function(w2){lodash_1.default.has(visited,w2)?visited[w2].onStack&&(entry.lowlink=Math.min(entry.lowlink,visited[w2].index)):(dfs(w2),entry.lowlink=Math.min(entry.lowlink,visited[w2].lowlink))}),entry.lowlink===entry.index){var cmpt=[],w;do w=stack.pop(),visited[w].onStack=!1,cmpt.push(w);while(v!==w);results.push(cmpt)}}return[...g.nodes.keys()].forEach(function(v){lodash_1.default.has(visited,v)||dfs(v)}),results}exports.tarjan=tarjan},46470:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0});class GraphEdge{constructor(sourceId,targetId,attr){this.sourceId=sourceId,this.targetId=targetId,this.sourceId=sourceId,this.targetId=targetId,this.attr=attr}stringify(){let attrStr="";return!!this.attr.stringify&&typeof this.attr.stringify=="function"?attrStr=this.attr.stringify():attrStr=JSON.stringify(this.attr),attrStr}static fromObject(obj,parseEdge){if(!obj.hasOwnProperty("sourceId"))throw Error("missing source id");if(!obj.hasOwnProperty("targetId"))throw Error("missing target id");return{sourceId:obj.sourceId,targetId:obj.targetId,edge:parseEdge(obj.edge)}}static edgeId(sourceId,targetId){return`${sourceId}->${targetId}`}static parseEdgeId(id){const spl=id.split("->");return spl.length===2?{sourceId:spl[0],targetId:spl[1]}:{sourceId:"",targetId:""}}get nodes(){return[this.sourceId,this.targetId]}}exports.GraphEdge=GraphEdge;function genericParseEdge(edge){return Object.keys(edge).length===0&&edge.constructor===Object||typeof edge!="object"?edge:JSON.parse(edge)}exports.genericParseEdge=genericParseEdge;function genericEdgeToJson(edge){return edge}exports.genericEdgeToJson=genericEdgeToJson},9719:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0});class CyclicError extends Error{constructor(message){super(message);Object.setPrototypeOf(this,new.target.prototype)}}exports.CyclicError=CyclicError;class NodeDoesntExist extends Error{constructor(message){super(message);Object.setPrototypeOf(this,new.target.prototype)}}exports.NodeDoesntExist=NodeDoesntExist},2806:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0});const index_1=__webpack_require__(74793),index_2=__webpack_require__(74793),index_3=__webpack_require__(74793),lodash_1=__importDefault(__webpack_require__(81743)),algorithms_1=__webpack_require__(740),node_1=__webpack_require__(13292),edge_1=__webpack_require__(46470);class Graph{constructor(nodes=[],edges=[]){this._nodes=new Map,this._edges=new Map,nodes.forEach(elem=>this.setNode(elem.id,elem.node)),edges.forEach(elem=>this.setEdge(elem.sourceId,elem.targetId,elem.edge))}create(nodes=[],edges=[]){return new Graph(nodes,edges)}get _userNodes(){return this._transformToUserNodeMap(this._nodes)}get _userEdges(){return this._transformToUserEdgeMap(this._edges)}_transformToUserNodeMap(map){let newMap=new Map;for(const[key,value]of map.entries())newMap.set(key,value.attr);return newMap}_transformToUserEdgeMap(map){let newMap=new Map;for(const[key,value]of map.entries())newMap.set(key,value.attr);return newMap}setNode(id,node,overrideExisting=!0){if(this.hasNode(id)){if(overrideExisting){let existingNode=this._node(id);existingNode&&(existingNode.attr=node)}}else{let graphNode=new index_1.GraphNode(id,node);this._nodes.set(id,graphNode)}return this}setEdge(sourceId,targetId,edge,overrideExisting=!0){if(this.hasEdge(sourceId,targetId))if(overrideExisting){let existingEdge=this._edge(sourceId,targetId);return existingEdge&&(existingEdge.attr=edge),this}else return this;const id=index_2.GraphEdge.edgeId(sourceId,targetId);let graphEdge=new index_2.GraphEdge(sourceId,targetId,edge);if(this._edges.set(id,graphEdge),this._nodes.has(sourceId)){let sourceNode=this._nodes.get(sourceId);sourceNode!==void 0&&sourceNode.setOutEdge(id)}else throw Error("source node does not exist");if(this._nodes.has(targetId)){let targetNode=this._nodes.get(targetId);targetNode!==void 0&&targetNode.setInEdge(id)}else throw Error("target node does not exist");return this}setNodes(nodes,overrideExisting=!0){return nodes.forEach(elem=>{if(!this.hasNode(elem.id))this.setNode(elem.id,elem.node);else if(overrideExisting){let existingNode=this._node(elem.id);existingNode&&(existingNode.attr=elem.node)}}),this}setEdges(edges,overrideExisting=!0){return edges.forEach(elem=>{if(!this.hasEdge(elem.sourceId,elem.targetId))this.setEdge(elem.sourceId,elem.targetId,elem.edge);else if(overrideExisting){let existingEdge=this._edge(elem.sourceId,elem.targetId);existingEdge&&(existingEdge.attr=elem.edge)}}),this}hasNode(id){return this._nodes.has(id)}hasEdge(sourceId,targetId){return this._edges.has(index_2.GraphEdge.edgeId(sourceId,targetId))}node(id){var _a;return(_a=this._nodes.get(id))===null||_a===void 0?void 0:_a.attr}edge(sourceId,targetId){var _a;return(_a=this._edges.get(index_2.GraphEdge.edgeId(sourceId,targetId)))===null||_a===void 0?void 0:_a.attr}_node(id){return this._nodes.get(id)}_edge(sourceId,targetId){return this._edges.get(index_2.GraphEdge.edgeId(sourceId,targetId))}_edgeById(edgeId){return this._edges.get(edgeId)}edgeNodesById(edgeId){var _a,_b;return{sourceId:(_a=this._edges.get(edgeId))===null||_a===void 0?void 0:_a.sourceId,targetId:(_b=this._edges.get(edgeId))===null||_b===void 0?void 0:_b.targetId}}get nodes(){return this._userNodes}get graphNodes(){return this._nodes}get edges(){return this._userEdges}get graphEdges(){return this._edges}nodeCount(){return[...this._nodes.keys()].length}edgeCount(){return[...this._edges.keys()].length}sources(){return[...this._nodes.values()].filter(node=>node.isSource()).map(elem=>elem.attr)}sinks(){return[...this._nodes.values()].filter(node=>node.isSink()).map(elem=>elem.attr)}deleteNode(id){const node=this._node(id);typeof node>"u"||(node.nodeEdges.forEach(edgeId=>{const{sourceId,targetId}=index_2.GraphEdge.parseEdgeId(edgeId);this.deleteEdge(sourceId,targetId)}),this._nodes.delete(id))}deleteEdge(sourceId,targetId){const edgeId=index_2.GraphEdge.edgeId(sourceId,targetId);if(this._edges.get(edgeId)!==void 0){let sourceNode=this._nodes.get(sourceId);sourceNode!==void 0&&sourceNode.deleteEdge(edgeId);let targetNode=this._nodes.get(targetId);targetNode!==void 0&&targetNode.deleteEdge(edgeId)}this._edges.delete(edgeId)}inEdges(nodeId){return this._transformToUserEdgeMap(this._inEdges(nodeId))}outEdges(nodeId){return this._transformToUserEdgeMap(this._outEdges(nodeId))}nodeEdges(nodeId){return this._transformToUserEdgeMap(this._nodeEdges(nodeId))}_inEdges(nodeId){let newEdges=new Map;const node=this._node(nodeId);return node===void 0||node.inEdges.forEach(edgeId=>{let{sourceId,targetId}=index_2.GraphEdge.parseEdgeId(edgeId),edge=this._edge(sourceId,targetId);edge!==void 0&&newEdges.set(edgeId,edge)}),newEdges}_outEdges(nodeId){let newEdges=new Map;const node=this._node(nodeId);return node===void 0||node.outEdges.forEach(edgeId=>{let{sourceId,targetId}=index_2.GraphEdge.parseEdgeId(edgeId),edge=this._edge(sourceId,targetId);edge!==void 0&&newEdges.set(edgeId,edge)}),newEdges}_nodeEdges(nodeId){let newEdges=new Map;const node=this._node(nodeId);return node===void 0||node.nodeEdges.forEach(edgeId=>{let{sourceId,targetId}=index_2.GraphEdge.parseEdgeId(edgeId),edge=this._edge(sourceId,targetId);edge!==void 0&&newEdges.set(edgeId,edge)}),newEdges}successors(nodeId,filterPredicate=returnTrue){return this._transformToUserNodeMap(this._successors(nodeId,filterPredicate))}predecessors(nodeId,filterPredicate=returnTrue){return this._transformToUserNodeMap(this._predecessors(nodeId,filterPredicate))}neighbors(nodeId,filterPredicate=returnTrue){return this._transformToUserNodeMap(this._neighbors(nodeId,filterPredicate))}_successors(nodeId,filterPredicate=returnTrue){let successors=new Map;const node=this._node(nodeId);return node===void 0||node.outEdges.forEach(edgeId=>{var _a;const edge=(_a=this._edges.get(edgeId))===null||_a===void 0?void 0:_a.attr;if(edge!=null&&filterPredicate(edge)){const{sourceId,targetId}=index_2.GraphEdge.parseEdgeId(edgeId),targetNode=this._node(targetId);!!targetId&&targetNode!==void 0&&successors.set(targetId,targetNode)}}),successors}_predecessors(nodeId,filterPredicate=returnTrue){let predecessors=new Map;const node=this._node(nodeId);return node===void 0||node.inEdges.forEach(edgeId=>{var _a;const edge=(_a=this._edges.get(edgeId))===null||_a===void 0?void 0:_a.attr;if(edge!=null&&filterPredicate(edge)){const{sourceId,targetId}=index_2.GraphEdge.parseEdgeId(edgeId),sourceNode=this._node(sourceId);!!sourceId&&sourceNode!==void 0&&predecessors.set(sourceId,sourceNode)}}),predecessors}_neighbors(nodeId,filterPredicate=returnTrue){return new Map([...this._predecessors(nodeId,filterPredicate),...this._successors(nodeId,filterPredicate)])}successorsSubgraph(nodeIds,filterPredicate=returnTrue){return this._buildSubgraphs(nodeIds,filterPredicate,"successors")}_alreadyProcessed(nodeId,subgraphs){for(const graph of subgraphs)if(graph.hasNode(nodeId))return!0;return!1}_buildSubgraphs(nodeIds,filterPredicate,order){let subgraphs=[];if(!Array.isArray(nodeIds))return this._buildSubgraph(nodeIds,filterPredicate,order);if(nodeIds.forEach(nodeId=>{this._alreadyProcessed(nodeId,subgraphs)||subgraphs.push(this._buildSubgraph(nodeId,filterPredicate,order))}),subgraphs.length===1)return subgraphs[0];let mergedGraphs=this.create();return subgraphs.length&&(mergedGraphs=subgraphs[0].merge(subgraphs)),mergedGraphs}_buildSubgraph(nodeId,filterPredicate,order){let g=this.create(),graphNode=this._node(nodeId);if(graphNode)g.setNode(nodeId,graphNode.attr);else throw new Error("Node does not exist on graph");return order==="successors"?this._successorsSubgraphUtil(nodeId,g,{},filterPredicate):this._predecessorsSubgraphUtil(nodeId,g,{},filterPredicate)}_successorsSubgraphUtil(nodeId,successorsGraph,visited={},filterPredicate){const successors=[...this._successors(nodeId,filterPredicate).keys()];return successors.length>0&&!visited[nodeId]&&successors.forEach(successor=>{visited[nodeId]=!0;const newNode=this._nodes.get(successor),newEdge=this._edges.get(index_2.GraphEdge.edgeId(nodeId,successor));if(newNode!==void 0&&newEdge!=null)return successorsGraph.setNode(successor,newNode.attr),successorsGraph.setEdge(nodeId,successor,newEdge.attr),this._successorsSubgraphUtil(successor,successorsGraph,visited,filterPredicate)}),successorsGraph}successorsArray(nodeId,filterPredicate=returnTrue){const successorIds=lodash_1.default.uniq(this._successorsArrayUtil(nodeId,[],{},filterPredicate));let successors=[];return successorIds.forEach(id=>{let node=this.node(id);node!=null&&successors.push(node)}),successors}_successorsArrayUtil(nodeId,successorsList=[],visited={},filterPredicate=returnTrue){const successors=[...this._successors(nodeId,filterPredicate).keys()];return successors.length>0&&!visited[nodeId]&&successors.forEach(successor=>(visited[nodeId]=!0,successorsList.push(successor),this._successorsArrayUtil(successor,successorsList,visited,filterPredicate))),successorsList}successorsLayers(nodeKey,filterPredicate=returnTrue,order="fromSource"){let successorsGraph=this.successorsSubgraph(nodeKey,filterPredicate);if(this.isCyclic(successorsGraph))throw new Error("cyclic dependency");let layers=[];layers[0]=[nodeKey];let floor=0,rawLayers=this._successorsLayersUtil([nodeKey],layers,floor,filterPredicate);return arrangeLayers(rawLayers,order)}_successorsLayersUtil(nodeKeys,layers,floor,filterPredicate=returnTrue){if(nodeKeys.length>0){let nextFloor=floor+1;return layers.push([]),layers[floor].forEach(successor=>{const successors=[...this.successors(successor,filterPredicate).keys()];layers[nextFloor]=layers[nextFloor].concat(successors)}),this._successorsLayersUtil(layers[nextFloor],layers,nextFloor,filterPredicate)}return layers}predecessorsSubgraph(nodeIds,filterPredicate=returnTrue){return this._buildSubgraphs(nodeIds,filterPredicate,"predecessors")}_predecessorsSubgraphUtil(nodeId,predecessorsGraph,visited={},filterPredicate=returnTrue){const predecessors=[...this._predecessors(nodeId,filterPredicate).keys()];return predecessors.length>0&&!visited[nodeId]&&predecessors.forEach(predecessor=>{visited[nodeId]=!0;const newNode=this._nodes.get(predecessor),newEdge=this._edges.get(index_2.GraphEdge.edgeId(predecessor,nodeId));if(newNode!==void 0&&newEdge!=null)return predecessorsGraph.setNode(predecessor,newNode.attr),predecessorsGraph.setEdge(predecessor,nodeId,newEdge.attr),this._predecessorsSubgraphUtil(predecessor,predecessorsGraph,visited,filterPredicate)}),predecessorsGraph}predecessorsArray(nodeId,filterPredicate=returnTrue){const predecessorIds=lodash_1.default.uniq(this._predecessorsArrayUtil(nodeId,[],{},filterPredicate));let predecessors=[];return predecessorIds.forEach(id=>{let node=this.node(id);node!=null&&predecessors.push(node)}),predecessors}_predecessorsArrayUtil(nodeId,predecessorsList=[],visited={},filterPredicate=returnTrue){const predecessors=[...this._predecessors(nodeId,filterPredicate).keys()];return predecessors.length>0&&!visited[nodeId]&&predecessors.forEach(predecessor=>(visited[nodeId]=!0,predecessorsList.push(predecessor),this._predecessorsArrayUtil(predecessor,predecessorsList,visited,filterPredicate))),predecessorsList}predecessorsLayers(nodeKey,filterPredicate=returnTrue,order="fromSource"){let successorsGraph=this.predecessorsSubgraph(nodeKey,filterPredicate);if(this.isCyclic(successorsGraph))throw new Error("cyclic sub-graph");let layers=[];layers[0]=[nodeKey];let floor=0,rawLayers=this._predecessorsLayersUtil([nodeKey],layers,floor,filterPredicate);return arrangeLayers(rawLayers,order)}_predecessorsLayersUtil(nodeKeys,layers,floor,filterPredicate=returnTrue){if(nodeKeys.length>0){let nextFloor=floor+1;return layers.push([]),layers[floor].forEach(predecessor=>{const predecessors=[...this.predecessors(predecessor,filterPredicate).keys()];layers[nextFloor]=layers[nextFloor].concat(predecessors)}),this._predecessorsLayersUtil(layers[nextFloor],layers,nextFloor,filterPredicate)}return layers}toposort(reverse=!1){let nodes=this._toposort().map(nodeId=>this.node(nodeId));return nodes=lodash_1.default.compact(nodes),reverse?nodes.reverse():nodes}_transformEdges(){let edges=[];return this._edges.forEach(originalEdge=>{edges.push([originalEdge.sourceId,originalEdge.targetId])}),edges}_toposort(){const nodes=[...this._nodes.keys()],edges=this._transformEdges();var cursor=nodes.length,sorted=new Array(cursor),visited={},i=cursor,outgoingEdges=makeOutgoingEdges(edges),nodesHash=makeNodesHash(nodes);for(edges.forEach(function(edge){if(!nodesHash.has(edge[0])||!nodesHash.has(edge[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});i--;)visited[i]||visit(nodes[i],i,new Set);return sorted;function visit(node,i2,predecessors){if(predecessors.has(node)){var nodeRep;try{nodeRep=", node was:"+JSON.stringify(node)}catch{nodeRep=""}throw new index_3.CyclicError("Cyclic dependency"+nodeRep)}if(!nodesHash.has(node))throw new Error("Found unknown node. Make sure to provide all involved nodes. Unknown node: "+JSON.stringify(node));if(!visited[i2]){visited[i2]=!0;var outgoing=outgoingEdges.get(node)||new Set;if(outgoing=Array.from(outgoing),i2=outgoing.length){predecessors.add(node);do{var child=outgoing[--i2];visit(child,nodesHash.get(child),predecessors)}while(i2);predecessors.delete(node)}sorted[--cursor]=node}}}isCyclic(graph=this){try{graph.toposort()}catch(e){if(e instanceof index_3.CyclicError)return!0;throw e}return!1}findCycles(graph=this){return findCycles(graph)}merge(graphs){let mergedGraph=this;return graphs.forEach(incomingGraph=>{var _a,_b;for(let[nodeId,nodeData]of incomingGraph.nodes)mergedGraph.setNode(nodeId,nodeData);for(let[edgeId,edgeData]of incomingGraph.edges){const sourceId=(_a=incomingGraph._edges.get(edgeId))===null||_a===void 0?void 0:_a.sourceId,targetId=(_b=incomingGraph._edges.get(edgeId))===null||_b===void 0?void 0:_b.targetId;if(mergedGraph.edges.has(edgeId)&&!!sourceId&&!!targetId)mergedGraph.setEdge(sourceId,targetId,edgeData);else if(!!sourceId&&!!targetId&&mergedGraph.hasNode(sourceId)&&mergedGraph.hasNode(targetId))mergedGraph.setEdge(sourceId,targetId,edgeData);else throw index_3.NodeDoesntExist}}),mergedGraph}allPaths(sourceId,targetId){return this._allPaths(sourceId,targetId,[],[])}_allPaths(source,target,currPath,paths,visited={}){return visited[source]=!0,currPath.push(source),source===target?paths.push(lodash_1.default.cloneDeep(currPath)):[...this._successors(source).keys()].forEach(nodeId=>{visited[nodeId]||this._allPaths(nodeId,target,currPath,paths,visited)}),currPath.pop(),visited[source]=!1,paths}toJson(graph){return graph?this._toJson(graph,"object"):this._toJson(this,"object")}stringify(graph){return graph?this._toJson(graph,"string"):this._toJson(this,"string")}static parse(json,parseNode=node_1.genericParseNode,parseEdge=edge_1.genericParseEdge){return this._fromJson(json,parseNode,parseEdge)}_toJson(graph,returnType){let nodeArray=[];for(let[nodeId,nodeData]of graph.nodes.entries()){const graphNode=graph._node(nodeId);if(graphNode){let convertedNode;returnType==="object"?!!graphNode.attr.toJson&&typeof graphNode.attr.toJson=="function"?convertedNode=graphNode.attr.toJson():convertedNode=node_1.genericNodeToJson(graphNode.attr):convertedNode=graphNode.stringify(),nodeArray.push({id:nodeId,node:convertedNode})}}let edgeArray=[];for(let[edgeId,edgeData]of graph.edges.entries()){const graphEdge=graph._edgeById(edgeId);if(graphEdge){let convertedEdge;returnType==="object"?!!graphEdge.attr.toJson&&typeof graphEdge.attr.toJson=="function"?convertedEdge=graphEdge.attr.toJson():convertedEdge=node_1.genericNodeToJson(graphEdge.attr):convertedEdge=graphEdge.stringify(),edgeArray.push({sourceId:graphEdge.sourceId,targetId:graphEdge.targetId,edge:convertedEdge})}}let json={nodes:nodeArray,edges:edgeArray};return returnType==="object"?json:JSON.stringify(json)}static _fromJson(json,parseNode,parseEdge){const obj=typeof json=="string"?JSON.parse(json):json;let graph=new Graph;if(!obj.hasOwnProperty("nodes")||!obj.hasOwnProperty("edges"))throw Error("missing properties on JSON. Should contain nodes: {id: string, node: N}[], and edges: {sourceId: string, targetId: string, edge:E}[]");return obj.nodes.forEach(nodeObj=>{const res=index_1.GraphNode.fromObject(nodeObj,parseNode);graph.setNode(res.id,res.node)}),obj.edges.forEach(edgeObj=>{const res=index_2.GraphEdge.fromObject(edgeObj,parseEdge);graph.setEdge(res.sourceId,res.targetId,res.edge)}),graph}bfs(){}dfs(){}}exports.Graph=Graph;function returnTrue(){return!0}function makeOutgoingEdges(arr){for(var edges=new Map,i=0,len=arr.length;i<len;i++){var edge=arr[i];edges.has(edge[0])||edges.set(edge[0],new Set),edges.has(edge[1])||edges.set(edge[1],new Set),edges.get(edge[0]).add(edge[1])}return edges}function makeNodesHash(arr){for(var res=new Map,i=0,len=arr.length;i<len;i++)res.set(arr[i],i);return res}function findCycles(g){return lodash_1.default.filter(algorithms_1.tarjan(g),function(cmpt){return cmpt.length>1||cmpt.length===1&&g.hasEdge(cmpt[0],cmpt[0])})}function arrangeLayers(layers,order){let finalLayers=[],seenNodes=[];layers=layers.reverse();let i=0;return layers.forEach(layer=>{layer.length>0&&(finalLayers.push([]),layer.forEach(node=>{seenNodes.indexOf(node)==-1&&(seenNodes.push(node),finalLayers[i].push(node))}),i++)}),order==="fromSource"?finalLayers.reverse():finalLayers}},74793:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var edge_1=__webpack_require__(46470);exports.GraphEdge=edge_1.GraphEdge;var node_1=__webpack_require__(13292);exports.GraphNode=node_1.GraphNode;var error_1=__webpack_require__(9719);exports.CyclicError=error_1.CyclicError,exports.NodeDoesntExist=error_1.NodeDoesntExist;var graph_1=__webpack_require__(2806);exports.Graph=graph_1.Graph},13292:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0});const lodash_1=__webpack_require__(81743),lodash_2=__importDefault(__webpack_require__(81743));class GraphNode{constructor(id,attr,inEdges,outEdges){this.id=id,this.attr=attr,this._inEdges=inEdges||[],this._outEdges=outEdges||[]}setInEdge(edgeId){this._inEdges.push(edgeId)}setOutEdge(edgeId){this._outEdges.push(edgeId)}deleteEdge(edgeId){lodash_2.default.remove(this._inEdges,function(edge){return edge===edgeId}),lodash_2.default.remove(this._outEdges,function(edge){return edge===edgeId})}get inEdges(){return this._inEdges}get outEdges(){return this._outEdges}get nodeEdges(){return this._inEdges.concat(this._outEdges)}isSource(){return this._inEdges.length===0&&this._outEdges.length>0}isSink(){return this._inEdges.length>0&&this._outEdges.length===0}equals(node){return this.id!==node.id?!1:lodash_1.isEqual(this.attr,node.attr)}stringify(){let attrStr="";return!!this.attr.stringify&&typeof this.attr.stringify=="function"?attrStr=this.attr.stringify():attrStr=JSON.stringify(this.attr),attrStr}static fromObject(obj,parseNode){if(!obj.hasOwnProperty("id"))throw Error("missing object id");return{id:obj.id,node:parseNode(obj.node)}}}exports.GraphNode=GraphNode;function genericParseNode(node){return Object.keys(node).length===0&&node.constructor===Object||typeof node!="object"?node:JSON.parse(node)}exports.genericParseNode=genericParseNode;function genericNodeToJson(node){return node}exports.genericNodeToJson=genericNodeToJson},38882:function(module,exports){var global=typeof self<"u"?self:this,__self__=function(){function F(){this.fetch=!1,this.DOMException=global.DOMException}return F.prototype=global,new F}();(function(self2){var irrelevant=function(exports2){var support={searchParams:"URLSearchParams"in self2,iterable:"Symbol"in self2&&"iterator"in Symbol,blob:"FileReader"in self2&&"Blob"in self2&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in self2,arrayBuffer:"ArrayBuffer"in self2};function isDataView(obj){return obj&&DataView.prototype.isPrototypeOf(obj)}if(support.arrayBuffer)var viewClasses=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],isArrayBufferView=ArrayBuffer.isView||function(obj){return obj&&viewClasses.indexOf(Object.prototype.toString.call(obj))>-1};function normalizeName(name){if(typeof name!="string"&&(name=String(name)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(name))throw new TypeError("Invalid character in header field name");return name.toLowerCase()}function normalizeValue(value){return typeof value!="string"&&(value=String(value)),value}function iteratorFor(items){var iterator={next:function(){var value=items.shift();return{done:value===void 0,value}}};return support.iterable&&(iterator[Symbol.iterator]=function(){return iterator}),iterator}function Headers2(headers){this.map={},headers instanceof Headers2?headers.forEach(function(value,name){this.append(name,value)},this):Array.isArray(headers)?headers.forEach(function(header){this.append(header[0],header[1])},this):headers&&Object.getOwnPropertyNames(headers).forEach(function(name){this.append(name,headers[name])},this)}Headers2.prototype.append=function(name,value){name=normalizeName(name),value=normalizeValue(value);var oldValue=this.map[name];this.map[name]=oldValue?oldValue+", "+value:value},Headers2.prototype.delete=function(name){delete this.map[normalizeName(name)]},Headers2.prototype.get=function(name){return name=normalizeName(name),this.has(name)?this.map[name]:null},Headers2.prototype.has=function(name){return this.map.hasOwnProperty(normalizeName(name))},Headers2.prototype.set=function(name,value){this.map[normalizeName(name)]=normalizeValue(value)},Headers2.prototype.forEach=function(callback,thisArg){for(var name in this.map)this.map.hasOwnProperty(name)&&callback.call(thisArg,this.map[name],name,this)},Headers2.prototype.keys=function(){var items=[];return this.forEach(function(value,name){items.push(name)}),iteratorFor(items)},Headers2.prototype.values=function(){var items=[];return this.forEach(function(value){items.push(value)}),iteratorFor(items)},Headers2.prototype.entries=function(){var items=[];return this.forEach(function(value,name){items.push([name,value])}),iteratorFor(items)},support.iterable&&(Headers2.prototype[Symbol.iterator]=Headers2.prototype.entries);function consumed(body){if(body.bodyUsed)return Promise.reject(new TypeError("Already read"));body.bodyUsed=!0}function fileReaderReady(reader){return new Promise(function(resolve,reject){reader.onload=function(){resolve(reader.result)},reader.onerror=function(){reject(reader.error)}})}function readBlobAsArrayBuffer(blob){var reader=new FileReader,promise=fileReaderReady(reader);return reader.readAsArrayBuffer(blob),promise}function readBlobAsText(blob){var reader=new FileReader,promise=fileReaderReady(reader);return reader.readAsText(blob),promise}function readArrayBufferAsText(buf){for(var view=new Uint8Array(buf),chars=new Array(view.length),i=0;i<view.length;i++)chars[i]=String.fromCharCode(view[i]);return chars.join("")}function bufferClone(buf){if(buf.slice)return buf.slice(0);var view=new Uint8Array(buf.byteLength);return view.set(new Uint8Array(buf)),view.buffer}function Body(){return this.bodyUsed=!1,this._initBody=function(body){this._bodyInit=body,body?typeof body=="string"?this._bodyText=body:support.blob&&Blob.prototype.isPrototypeOf(body)?this._bodyBlob=body:support.formData&&FormData.prototype.isPrototypeOf(body)?this._bodyFormData=body:support.searchParams&&URLSearchParams.prototype.isPrototypeOf(body)?this._bodyText=body.toString():support.arrayBuffer&&support.blob&&isDataView(body)?(this._bodyArrayBuffer=bufferClone(body.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):support.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(body)||isArrayBufferView(body))?this._bodyArrayBuffer=bufferClone(body):this._bodyText=body=Object.prototype.toString.call(body):this._bodyText="",this.headers.get("content-type")||(typeof body=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):support.searchParams&&URLSearchParams.prototype.isPrototypeOf(body)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},support.blob&&(this.blob=function(){var rejected=consumed(this);if(rejected)return rejected;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?consumed(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(readBlobAsArrayBuffer)}),this.text=function(){var rejected=consumed(this);if(rejected)return rejected;if(this._bodyBlob)return readBlobAsText(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(readArrayBufferAsText(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},support.formData&&(this.formData=function(){return this.text().then(decode)}),this.json=function(){return this.text().then(JSON.parse)},this}var methods=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function normalizeMethod(method){var upcased=method.toUpperCase();return methods.indexOf(upcased)>-1?upcased:method}function Request(input,options){options=options||{};var body=options.body;if(input instanceof Request){if(input.bodyUsed)throw new TypeError("Already read");this.url=input.url,this.credentials=input.credentials,options.headers||(this.headers=new Headers2(input.headers)),this.method=input.method,this.mode=input.mode,this.signal=input.signal,!body&&input._bodyInit!=null&&(body=input._bodyInit,input.bodyUsed=!0)}else this.url=String(input);if(this.credentials=options.credentials||this.credentials||"same-origin",(options.headers||!this.headers)&&(this.headers=new Headers2(options.headers)),this.method=normalizeMethod(options.method||this.method||"GET"),this.mode=options.mode||this.mode||null,this.signal=options.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&body)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(body)}Request.prototype.clone=function(){return new Request(this,{body:this._bodyInit})};function decode(body){var form=new FormData;return body.trim().split("&").forEach(function(bytes){if(bytes){var split=bytes.split("="),name=split.shift().replace(/\+/g," "),value=split.join("=").replace(/\+/g," ");form.append(decodeURIComponent(name),decodeURIComponent(value))}}),form}function parseHeaders(rawHeaders){var headers=new Headers2,preProcessedHeaders=rawHeaders.replace(/\r?\n[\t ]+/g," ");return preProcessedHeaders.split(/\r?\n/).forEach(function(line){var parts=line.split(":"),key=parts.shift().trim();if(key){var value=parts.join(":").trim();headers.append(key,value)}}),headers}Body.call(Request.prototype);function Response(bodyInit,options){options||(options={}),this.type="default",this.status=options.status===void 0?200:options.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in options?options.statusText:"OK",this.headers=new Headers2(options.headers),this.url=options.url||"",this._initBody(bodyInit)}Body.call(Response.prototype),Response.prototype.clone=function(){return new Response(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new Headers2(this.headers),url:this.url})},Response.error=function(){var response=new Response(null,{status:0,statusText:""});return response.type="error",response};var redirectStatuses=[301,302,303,307,308];Response.redirect=function(url,status){if(redirectStatuses.indexOf(status)===-1)throw new RangeError("Invalid status code");return new Response(null,{status,headers:{location:url}})},exports2.DOMException=self2.DOMException;try{new exports2.DOMException}catch{exports2.DOMException=function(message,name){this.message=message,this.name=name;var error=Error(message);this.stack=error.stack},exports2.DOMException.prototype=Object.create(Error.prototype),exports2.DOMException.prototype.constructor=exports2.DOMException}function fetch(input,init){return new Promise(function(resolve,reject){var request=new Request(input,init);if(request.signal&&request.signal.aborted)return reject(new exports2.DOMException("Aborted","AbortError"));var xhr=new XMLHttpRequest;function abortXhr(){xhr.abort()}xhr.onload=function(){var options={status:xhr.status,statusText:xhr.statusText,headers:parseHeaders(xhr.getAllResponseHeaders()||"")};options.url="responseURL"in xhr?xhr.responseURL:options.headers.get("X-Request-URL");var body="response"in xhr?xhr.response:xhr.responseText;resolve(new Response(body,options))},xhr.onerror=function(){reject(new TypeError("Network request failed"))},xhr.ontimeout=function(){reject(new TypeError("Network request failed"))},xhr.onabort=function(){reject(new exports2.DOMException("Aborted","AbortError"))},xhr.open(request.method,request.url,!0),request.credentials==="include"?xhr.withCredentials=!0:request.credentials==="omit"&&(xhr.withCredentials=!1),"responseType"in xhr&&support.blob&&(xhr.responseType="blob"),request.headers.forEach(function(value,name){xhr.setRequestHeader(name,value)}),request.signal&&(request.signal.addEventListener("abort",abortXhr),xhr.onreadystatechange=function(){xhr.readyState===4&&request.signal.removeEventListener("abort",abortXhr)}),xhr.send(typeof request._bodyInit>"u"?null:request._bodyInit)})}return fetch.polyfill=!0,self2.fetch||(self2.fetch=fetch,self2.Headers=Headers2,self2.Request=Request,self2.Response=Response),exports2.Headers=Headers2,exports2.Request=Request,exports2.Response=Response,exports2.fetch=fetch,Object.defineProperty(exports2,"__esModule",{value:!0}),exports2}({})})(__self__),__self__.fetch.ponyfill=!0,delete __self__.fetch.polyfill;var ctx=__self__;exports=ctx.fetch,exports.default=ctx.fetch,exports.fetch=ctx.fetch,exports.Headers=ctx.Headers,exports.Request=ctx.Request,exports.Response=ctx.Response,module.exports=exports},26708:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var isValue=__webpack_require__(50283),isPlainFunction=__webpack_require__(97661),assign=__webpack_require__(72646),normalizeOpts=__webpack_require__(82453),contains=__webpack_require__(69717),d=module.exports=function(dscr,value){var c,e,w,options,desc;return arguments.length<2||typeof dscr!="string"?(options=value,value=dscr,dscr=null):options=arguments[2],isValue(dscr)?(c=contains.call(dscr,"c"),e=contains.call(dscr,"e"),w=contains.call(dscr,"w")):(c=w=!0,e=!1),desc={value,configurable:c,enumerable:e,writable:w},options?assign(normalizeOpts(options),desc):desc};d.gs=function(dscr,get,set){var c,e,options,desc;return typeof dscr!="string"?(options=set,set=get,get=dscr,dscr=null):options=arguments[3],isValue(get)?isPlainFunction(get)?isValue(set)?isPlainFunction(set)||(options=set,set=void 0):set=void 0:(options=get,get=set=void 0):get=void 0,isValue(dscr)?(c=contains.call(dscr,"c"),e=contains.call(dscr,"e")):(c=!0,e=!1),desc={get,set,configurable:c,enumerable:e},options?assign(normalizeOpts(options),desc):desc}},52523:module=>{"use strict";module.exports=function(str,sep){if(typeof str!="string")throw new TypeError("Expected a string");return sep=typeof sep>"u"?"_":sep,str.replace(/([a-z\d])([A-Z])/g,"$1"+sep+"$2").replace(/([A-Z]+)([A-Z][a-z\d]+)/g,"$1"+sep+"$2").toLowerCase()}},98120:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var numberIsNaN=__webpack_require__(61531),toPosInt=__webpack_require__(45031),value=__webpack_require__(38456),indexOf=Array.prototype.indexOf,objHasOwnProperty=Object.prototype.hasOwnProperty,abs=Math.abs,floor=Math.floor;module.exports=function(searchElement){var i,length,fromIndex,val;if(!numberIsNaN(searchElement))return indexOf.apply(this,arguments);for(length=toPosInt(value(this).length),fromIndex=arguments[1],isNaN(fromIndex)?fromIndex=0:fromIndex>=0?fromIndex=floor(fromIndex):fromIndex=toPosInt(this.length)-floor(abs(fromIndex)),i=fromIndex;i<length;++i)if(objHasOwnProperty.call(this,i)&&(val=this[i],numberIsNaN(val)))return i;return-1}},15373:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=__webpack_require__(97558)()?Array.from:__webpack_require__(73837)},97558:module=>{"use strict";module.exports=function(){var from=Array.from,arr,result;return typeof from!="function"?!1:(arr=["raz","dwa"],result=from(arr),Boolean(result&&result!==arr&&result[1]==="dwa"))}},73837:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var iteratorSymbol=__webpack_require__(32649).iterator,isArguments=__webpack_require__(98248),isFunction=__webpack_require__(83729),toPosInt=__webpack_require__(45031),callable=__webpack_require__(18050),validValue=__webpack_require__(38456),isValue=__webpack_require__(11029),isString=__webpack_require__(50634),isArray=Array.isArray,call=Function.prototype.call,desc={configurable:!0,enumerable:!0,writable:!0,value:null},defineProperty=Object.defineProperty;module.exports=function(arrayLike){var mapFn=arguments[1],thisArg=arguments[2],Context,i,j,arr,length,code,iterator,result,getIterator,value;if(arrayLike=Object(validValue(arrayLike)),isValue(mapFn)&&callable(mapFn),!this||this===Array||!isFunction(this)){if(!mapFn){if(isArguments(arrayLike))return length=arrayLike.length,length!==1?Array.apply(null,arrayLike):(arr=new Array(1),arr[0]=arrayLike[0],arr);if(isArray(arrayLike)){for(arr=new Array(length=arrayLike.length),i=0;i<length;++i)arr[i]=arrayLike[i];return arr}}arr=[]}else Context=this;if(!isArray(arrayLike)){if((getIterator=arrayLike[iteratorSymbol])!==void 0){for(iterator=callable(getIterator).call(arrayLike),Context&&(arr=new Context),result=iterator.next(),i=0;!result.done;)value=mapFn?call.call(mapFn,thisArg,result.value,i):result.value,Context?(desc.value=value,defineProperty(arr,i,desc)):arr[i]=value,result=iterator.next(),++i;length=i}else if(isString(arrayLike)){for(length=arrayLike.length,Context&&(arr=new Context),i=0,j=0;i<length;++i)value=arrayLike[i],i+1<length&&(code=value.charCodeAt(0),code>=55296&&code<=56319&&(value+=arrayLike[++i])),value=mapFn?call.call(mapFn,thisArg,value,j):value,Context?(desc.value=value,defineProperty(arr,j,desc)):arr[j]=value,++j;length=j}}if(length===void 0)for(length=toPosInt(arrayLike.length),Context&&(arr=new Context(length)),i=0;i<length;++i)value=mapFn?call.call(mapFn,thisArg,arrayLike[i],i):arrayLike[i],Context?(desc.value=value,defineProperty(arr,i,desc)):arr[i]=value;return Context&&(desc.value=null,arr.length=length),arr}},87761:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var from=__webpack_require__(15373),isArray=Array.isArray;module.exports=function(arrayLike){return isArray(arrayLike)?arrayLike:from(arrayLike)}},85231:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var assign=__webpack_require__(72646),isObject=__webpack_require__(51909),isValue=__webpack_require__(11029),captureStackTrace=Error.captureStackTrace;module.exports=function(message){var err=new Error(message),code=arguments[1],ext=arguments[2];return isValue(ext)||isObject(code)&&(ext=code,code=null),isValue(ext)&&assign(err,ext),isValue(code)&&(err.code=code),captureStackTrace&&captureStackTrace(err,module.exports),err}},61568:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var toPosInt=__webpack_require__(45031),test=function(arg1,arg2){return arg2},desc,defineProperty,generate,mixin;try{Object.defineProperty(test,"length",{configurable:!0,writable:!1,enumerable:!1,value:1})}catch{}test.length===1?(desc={configurable:!0,writable:!1,enumerable:!1},defineProperty=Object.defineProperty,module.exports=function(fn,length){return length=toPosInt(length),fn.length===length?fn:(desc.value=length,defineProperty(fn,"length",desc))}):(mixin=__webpack_require__(15747),generate=function(){var cache=[];return function(length){var args,i=0;if(cache[length])return cache[length];for(args=[];length--;)args.push("a"+(++i).toString(36));return new Function("fn","return function ("+args.join(", ")+") { return fn.apply(this, arguments); };")}}(),module.exports=function(src,length){var target;if(length=toPosInt(length),src.length===length)return src;target=generate(length)(src);try{mixin(target,src)}catch{}return target})},98248:module=>{"use strict";var objToString=Object.prototype.toString,id=objToString.call(function(){return arguments}());module.exports=function(value){return objToString.call(value)===id}},83729:module=>{"use strict";var objToString=Object.prototype.toString,isFunctionStringTag=RegExp.prototype.test.bind(/^[object [A-Za-z0-9]*Function]$/);module.exports=function(value){return typeof value=="function"&&isFunctionStringTag(objToString.call(value))}},1060:module=>{"use strict";module.exports=function(){}},53273:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=__webpack_require__(83865)()?Math.sign:__webpack_require__(16960)},83865:module=>{"use strict";module.exports=function(){var sign=Math.sign;return typeof sign!="function"?!1:sign(10)===1&&sign(-20)===-1}},16960:module=>{"use strict";module.exports=function(value){return value=Number(value),isNaN(value)||value===0?value:value>0?1:-1}},61531:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=__webpack_require__(95628)()?Number.isNaN:__webpack_require__(10697)},95628:module=>{"use strict";module.exports=function(){var numberIsNaN=Number.isNaN;return typeof numberIsNaN!="function"?!1:!numberIsNaN({})&&numberIsNaN(NaN)&&!numberIsNaN(34)}},10697:module=>{"use strict";module.exports=function(value){return value!==value}},53211:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var sign=__webpack_require__(53273),abs=Math.abs,floor=Math.floor;module.exports=function(value){return isNaN(value)?0:(value=Number(value),value===0||!isFinite(value)?value:sign(value)*floor(abs(value)))}},45031:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var toInteger=__webpack_require__(53211),max=Math.max;module.exports=function(value){return max(0,toInteger(value))}},85319:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var callable=__webpack_require__(18050),value=__webpack_require__(38456),bind=Function.prototype.bind,call=Function.prototype.call,keys=Object.keys,objPropertyIsEnumerable=Object.prototype.propertyIsEnumerable;module.exports=function(method,defVal){return function(obj,cb){var list,thisArg=arguments[2],compareFn=arguments[3];return obj=Object(value(obj)),callable(cb),list=keys(obj),compareFn&&list.sort(typeof compareFn=="function"?bind.call(compareFn,obj):void 0),typeof method!="function"&&(method=list[method]),call.call(method,list,function(key,index){return objPropertyIsEnumerable.call(obj,key)?call.call(cb,thisArg,obj[key],key,obj,index):defVal})}}},72646:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=__webpack_require__(66629)()?Object.assign:__webpack_require__(66210)},66629:module=>{"use strict";module.exports=function(){var assign=Object.assign,obj;return typeof assign!="function"?!1:(obj={foo:"raz"},assign(obj,{bar:"dwa"},{trzy:"trzy"}),obj.foo+obj.bar+obj.trzy==="razdwatrzy")}},66210:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var keys=__webpack_require__(13991),value=__webpack_require__(38456),max=Math.max;module.exports=function(dest,src){var error,i,length=max(arguments.length,2),assign;for(dest=Object(value(dest)),assign=function(key){try{dest[key]=src[key]}catch(e){error||(error=e)}},i=1;i<length;++i)src=arguments[i],keys(src).forEach(assign);if(error!==void 0)throw error;return dest}},69890:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=__webpack_require__(85319)("forEach")},61472:module=>{"use strict";module.exports=function(obj){return typeof obj=="function"}},51909:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var isValue=__webpack_require__(11029),map={function:!0,object:!0};module.exports=function(value){return isValue(value)&&map[typeof value]||!1}},11029:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var _undefined=__webpack_require__(1060)();module.exports=function(val){return val!==_undefined&&val!==null}},13991:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=__webpack_require__(45260)()?Object.keys:__webpack_require__(16083)},45260:module=>{"use strict";module.exports=function(){try{return Object.keys("primitive"),!0}catch{return!1}}},16083:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var isValue=__webpack_require__(11029),keys=Object.keys;module.exports=function(object){return keys(isValue(object)?Object(object):object)}},41601:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var callable=__webpack_require__(18050),forEach=__webpack_require__(69890),call=Function.prototype.call;module.exports=function(obj,cb){var result={},thisArg=arguments[2];return callable(cb),forEach(obj,function(value,key,targetObj,index){result[key]=call.call(cb,thisArg,value,key,targetObj,index)}),result}},15747:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var value=__webpack_require__(38456),defineProperty=Object.defineProperty,getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor,getOwnPropertyNames=Object.getOwnPropertyNames,getOwnPropertySymbols=Object.getOwnPropertySymbols;module.exports=function(target,source){var error,sourceObject=Object(value(source));if(target=Object(value(target)),getOwnPropertyNames(sourceObject).forEach(function(name){try{defineProperty(target,name,getOwnPropertyDescriptor(source,name))}catch(e){error=e}}),typeof getOwnPropertySymbols=="function"&&getOwnPropertySymbols(sourceObject).forEach(function(symbol){try{defineProperty(target,symbol,getOwnPropertyDescriptor(source,symbol))}catch(e){error=e}}),error!==void 0)throw error;return target}},82453:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var isValue=__webpack_require__(11029),forEach=Array.prototype.forEach,create=Object.create,process=function(src,obj){var key;for(key in src)obj[key]=src[key]};module.exports=function(opts1){var result=create(null);return forEach.call(arguments,function(options){!isValue(options)||process(Object(options),result)}),result}},85127:module=>{"use strict";var forEach=Array.prototype.forEach,create=Object.create;module.exports=function(arg){var set=create(null);return forEach.call(arguments,function(name){set[name]=!0}),set}},18050:module=>{"use strict";module.exports=function(fn){if(typeof fn!="function")throw new TypeError(fn+" is not a function");return fn}},38456:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var isValue=__webpack_require__(11029);module.exports=function(value){if(!isValue(value))throw new TypeError("Cannot use null or undefined");return value}},51002:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var ensureValue=__webpack_require__(38456),stringifiable=__webpack_require__(13338);module.exports=function(value){return stringifiable(ensureValue(value))}},13338:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var isCallable=__webpack_require__(61472);module.exports=function(stringifiable){try{return stringifiable&&isCallable(stringifiable.toString)?stringifiable.toString():String(stringifiable)}catch{throw new TypeError("Passed argument cannot be stringifed")}}},43130:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var isCallable=__webpack_require__(61472);module.exports=function(value){try{return value&&isCallable(value.toString)?value.toString():String(value)}catch{return"<Non-coercible to string value>"}}},69717:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=__webpack_require__(31134)()?String.prototype.contains:__webpack_require__(12851)},31134:module=>{"use strict";var str="razdwatrzy";module.exports=function(){return typeof str.contains!="function"?!1:str.contains("dwa")===!0&&str.contains("foo")===!1}},12851:module=>{"use strict";var indexOf=String.prototype.indexOf;module.exports=function(searchString){return indexOf.call(this,searchString,arguments[1])>-1}},50634:module=>{"use strict";var objToString=Object.prototype.toString,id=objToString.call("");module.exports=function(value){return typeof value=="string"||value&&typeof value=="object"&&(value instanceof String||objToString.call(value)===id)||!1}},56338:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var safeToString=__webpack_require__(43130),reNewLine=/[\n\r\u2028\u2029]/g;module.exports=function(value){var string=safeToString(value);return string.length>100&&(string=string.slice(0,99)+"\u2026"),string=string.replace(reNewLine,function(char){return JSON.stringify(char).slice(1,-1)}),string}},32649:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=__webpack_require__(29896)()?__webpack_require__(41121).Symbol:__webpack_require__(33906)},29896:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var global=__webpack_require__(41121),validTypes={object:!0,symbol:!0};module.exports=function(){var Symbol2=global.Symbol,symbol;if(typeof Symbol2!="function")return!1;symbol=Symbol2("test symbol");try{String(symbol)}catch{return!1}return!(!validTypes[typeof Symbol2.iterator]||!validTypes[typeof Symbol2.toPrimitive]||!validTypes[typeof Symbol2.toStringTag])}},62768:module=>{"use strict";module.exports=function(value){return value?typeof value=="symbol"?!0:!value.constructor||value.constructor.name!=="Symbol"?!1:value[value.constructor.toStringTag]==="Symbol":!1}},87846:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var d=__webpack_require__(26708),create=Object.create,defineProperty=Object.defineProperty,objPrototype=Object.prototype,created=create(null);module.exports=function(desc){for(var postfix=0,name,ie11BugWorkaround;created[desc+(postfix||"")];)++postfix;return desc+=postfix||"",created[desc]=!0,name="@@"+desc,defineProperty(objPrototype,name,d.gs(null,function(value){ie11BugWorkaround||(ie11BugWorkaround=!0,defineProperty(this,name,d(value)),ie11BugWorkaround=!1)})),name}},41048:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var d=__webpack_require__(26708),NativeSymbol=__webpack_require__(41121).Symbol;module.exports=function(SymbolPolyfill){return Object.defineProperties(SymbolPolyfill,{hasInstance:d("",NativeSymbol&&NativeSymbol.hasInstance||SymbolPolyfill("hasInstance")),isConcatSpreadable:d("",NativeSymbol&&NativeSymbol.isConcatSpreadable||SymbolPolyfill("isConcatSpreadable")),iterator:d("",NativeSymbol&&NativeSymbol.iterator||SymbolPolyfill("iterator")),match:d("",NativeSymbol&&NativeSymbol.match||SymbolPolyfill("match")),replace:d("",NativeSymbol&&NativeSymbol.replace||SymbolPolyfill("replace")),search:d("",NativeSymbol&&NativeSymbol.search||SymbolPolyfill("search")),species:d("",NativeSymbol&&NativeSymbol.species||SymbolPolyfill("species")),split:d("",NativeSymbol&&NativeSymbol.split||SymbolPolyfill("split")),toPrimitive:d("",NativeSymbol&&NativeSymbol.toPrimitive||SymbolPolyfill("toPrimitive")),toStringTag:d("",NativeSymbol&&NativeSymbol.toStringTag||SymbolPolyfill("toStringTag")),unscopables:d("",NativeSymbol&&NativeSymbol.unscopables||SymbolPolyfill("unscopables"))})}},85677:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var d=__webpack_require__(26708),validateSymbol=__webpack_require__(25767),registry=Object.create(null);module.exports=function(SymbolPolyfill){return Object.defineProperties(SymbolPolyfill,{for:d(function(key){return registry[key]?registry[key]:registry[key]=SymbolPolyfill(String(key))}),keyFor:d(function(symbol){var key;validateSymbol(symbol);for(key in registry)if(registry[key]===symbol)return key})})}},33906:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var d=__webpack_require__(26708),validateSymbol=__webpack_require__(25767),NativeSymbol=__webpack_require__(41121).Symbol,generateName=__webpack_require__(87846),setupStandardSymbols=__webpack_require__(41048),setupSymbolRegistry=__webpack_require__(85677),create=Object.create,defineProperties=Object.defineProperties,defineProperty=Object.defineProperty,SymbolPolyfill,HiddenSymbol,isNativeSafe;if(typeof NativeSymbol=="function")try{String(NativeSymbol()),isNativeSafe=!0}catch{}else NativeSymbol=null;HiddenSymbol=function(description){if(this instanceof HiddenSymbol)throw new TypeError("Symbol is not a constructor");return SymbolPolyfill(description)},module.exports=SymbolPolyfill=function Symbol2(description){var symbol;if(this instanceof Symbol2)throw new TypeError("Symbol is not a constructor");return isNativeSafe?NativeSymbol(description):(symbol=create(HiddenSymbol.prototype),description=description===void 0?"":String(description),defineProperties(symbol,{__description__:d("",description),__name__:d("",generateName(description))}))},setupStandardSymbols(SymbolPolyfill),setupSymbolRegistry(SymbolPolyfill),defineProperties(HiddenSymbol.prototype,{constructor:d(SymbolPolyfill),toString:d("",function(){return this.__name__})}),defineProperties(SymbolPolyfill.prototype,{toString:d(function(){return"Symbol ("+validateSymbol(this).__description__+")"}),valueOf:d(function(){return validateSymbol(this)})}),defineProperty(SymbolPolyfill.prototype,SymbolPolyfill.toPrimitive,d("",function(){var symbol=validateSymbol(this);return typeof symbol=="symbol"?symbol:symbol.toString()})),defineProperty(SymbolPolyfill.prototype,SymbolPolyfill.toStringTag,d("c","Symbol")),defineProperty(HiddenSymbol.prototype,SymbolPolyfill.toStringTag,d("c",SymbolPolyfill.prototype[SymbolPolyfill.toStringTag])),defineProperty(HiddenSymbol.prototype,SymbolPolyfill.toPrimitive,d("c",SymbolPolyfill.prototype[SymbolPolyfill.toPrimitive]))},25767:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var isSymbol=__webpack_require__(62768);module.exports=function(value){if(!isSymbol(value))throw new TypeError(value+" is not a symbol");return value}},40867:(module,exports,__webpack_require__)=>{"use strict";var d=__webpack_require__(26708),callable=__webpack_require__(18050),apply=Function.prototype.apply,call=Function.prototype.call,create=Object.create,defineProperty=Object.defineProperty,defineProperties=Object.defineProperties,hasOwnProperty2=Object.prototype.hasOwnProperty,descriptor={configurable:!0,enumerable:!1,writable:!0},on,once,off,emit,methods,descriptors,base;on=function(type,listener){var data;return callable(listener),hasOwnProperty2.call(this,"__ee__")?data=this.__ee__:(data=descriptor.value=create(null),defineProperty(this,"__ee__",descriptor),descriptor.value=null),data[type]?typeof data[type]=="object"?data[type].push(listener):data[type]=[data[type],listener]:data[type]=listener,this},once=function(type,listener){var once2,self2;return callable(listener),self2=this,on.call(this,type,once2=function(){off.call(self2,type,once2),apply.call(listener,this,arguments)}),once2.__eeOnceListener__=listener,this},off=function(type,listener){var data,listeners,candidate,i;if(callable(listener),!hasOwnProperty2.call(this,"__ee__"))return this;if(data=this.__ee__,!data[type])return this;if(listeners=data[type],typeof listeners=="object")for(i=0;candidate=listeners[i];++i)(candidate===listener||candidate.__eeOnceListener__===listener)&&(listeners.length===2?data[type]=listeners[i?0:1]:listeners.splice(i,1));else(listeners===listener||listeners.__eeOnceListener__===listener)&&delete data[type];return this},emit=function(type){var i,l,listener,listeners,args;if(!!hasOwnProperty2.call(this,"__ee__")&&(listeners=this.__ee__[type],!!listeners))if(typeof listeners=="object"){for(l=arguments.length,args=new Array(l-1),i=1;i<l;++i)args[i-1]=arguments[i];for(listeners=listeners.slice(),i=0;listener=listeners[i];++i)apply.call(listener,this,args)}else switch(arguments.length){case 1:call.call(listeners,this);break;case 2:call.call(listeners,this,arguments[1]);break;case 3:call.call(listeners,this,arguments[1],arguments[2]);break;default:for(l=arguments.length,args=new Array(l-1),i=1;i<l;++i)args[i-1]=arguments[i];apply.call(listeners,this,args)}},methods={on,once,off,emit},descriptors={on:d(on),once:d(once),off:d(off),emit:d(emit)},base=defineProperties({},descriptors),module.exports=exports=function(o){return o==null?create(base):defineProperties(Object(o),descriptors)},exports.methods=methods},94301:module=>{var naiveFallback=function(){if(typeof self=="object"&&self)return self;if(typeof window=="object"&&window)return window;throw new Error("Unable to resolve global `this`")};module.exports=function(){if(this)return this;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch{return naiveFallback()}try{return __global__||naiveFallback()}finally{delete Object.prototype.__global__}}()},41121:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=__webpack_require__(16921)()?globalThis:__webpack_require__(94301)},16921:module=>{"use strict";module.exports=function(){return typeof globalThis!="object"||!globalThis?!1:globalThis.Array===Array}},65844:module=>{module.exports=isPromise,module.exports.default=isPromise;function isPromise(obj){return!!obj&&(typeof obj=="object"||typeof obj=="function")&&typeof obj.then=="function"}},81743:function(module,exports,__webpack_require__){module=__webpack_require__.nmd(module);var __WEBPACK_AMD_DEFINE_RESULT__;/**
|
30
30
|
* @license
|
31
31
|
* Lodash <https://lodash.com/>
|
32
32
|
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
@@ -52,8 +52,8 @@ __p += '`),interpolateValue&&(source+=`' +
|
|
52
52
|
function print() { __p += __j.call(arguments, '') }
|
53
53
|
`:`;
|
54
54
|
`)+source+`return __p
|
55
|
-
}`;var result2=attempt(function(){return Function2(importsKeys,sourceURL+"return "+source).apply(undefined2,importsValues)});if(result2.source=source,isError(result2))throw result2;return result2}function toLower(value){return toString(value).toLowerCase()}function toUpper(value){return toString(value).toUpperCase()}function trim(string,chars,guard){if(string=toString(string),string&&(guard||chars===undefined2))return baseTrim(string);if(!string||!(chars=baseToString(chars)))return string;var strSymbols=stringToArray(string),chrSymbols=stringToArray(chars),start=charsStartIndex(strSymbols,chrSymbols),end=charsEndIndex(strSymbols,chrSymbols)+1;return castSlice(strSymbols,start,end).join("")}function trimEnd(string,chars,guard){if(string=toString(string),string&&(guard||chars===undefined2))return string.slice(0,trimmedEndIndex(string)+1);if(!string||!(chars=baseToString(chars)))return string;var strSymbols=stringToArray(string),end=charsEndIndex(strSymbols,stringToArray(chars))+1;return castSlice(strSymbols,0,end).join("")}function trimStart(string,chars,guard){if(string=toString(string),string&&(guard||chars===undefined2))return string.replace(reTrimStart,"");if(!string||!(chars=baseToString(chars)))return string;var strSymbols=stringToArray(string),start=charsStartIndex(strSymbols,stringToArray(chars));return castSlice(strSymbols,start).join("")}function truncate(string,options){var length=DEFAULT_TRUNC_LENGTH,omission=DEFAULT_TRUNC_OMISSION;if(isObject(options)){var separator="separator"in options?options.separator:separator;length="length"in options?toInteger(options.length):length,omission="omission"in options?baseToString(options.omission):omission}string=toString(string);var strLength=string.length;if(hasUnicode(string)){var strSymbols=stringToArray(string);strLength=strSymbols.length}if(length>=strLength)return string;var end=length-stringSize(omission);if(end<1)return omission;var result2=strSymbols?castSlice(strSymbols,0,end).join(""):string.slice(0,end);if(separator===undefined2)return result2+omission;if(strSymbols&&(end+=result2.length-end),isRegExp(separator)){if(string.slice(end).search(separator)){var match,substring=result2;for(separator.global||(separator=RegExp2(separator.source,toString(reFlags.exec(separator))+"g")),separator.lastIndex=0;match=separator.exec(substring);)var newEnd=match.index;result2=result2.slice(0,newEnd===undefined2?end:newEnd)}}else if(string.indexOf(baseToString(separator),end)!=end){var index=result2.lastIndexOf(separator);index>-1&&(result2=result2.slice(0,index))}return result2+omission}function unescape2(string){return string=toString(string),string&&reHasEscapedHtml.test(string)?string.replace(reEscapedHtml,unescapeHtmlChar):string}var upperCase=createCompounder(function(result2,word,index){return result2+(index?" ":"")+word.toUpperCase()}),upperFirst=createCaseFirst("toUpperCase");function words(string,pattern,guard){return string=toString(string),pattern=guard?undefined2:pattern,pattern===undefined2?hasUnicodeWord(string)?unicodeWords(string):asciiWords(string):string.match(pattern)||[]}var attempt=baseRest(function(func,args){try{return apply(func,undefined2,args)}catch(e){return isError(e)?e:new Error2(e)}}),bindAll=flatRest(function(object,methodNames){return arrayEach(methodNames,function(key){key=toKey(key),baseAssignValue(object,key,bind(object[key],object))}),object});function cond(pairs){var length=pairs==null?0:pairs.length,toIteratee=getIteratee();return pairs=length?arrayMap(pairs,function(pair){if(typeof pair[1]!="function")throw new TypeError2(FUNC_ERROR_TEXT);return[toIteratee(pair[0]),pair[1]]}):[],baseRest(function(args){for(var index=-1;++index<length;){var pair=pairs[index];if(apply(pair[0],this,args))return apply(pair[1],this,args)}})}function conforms(source){return baseConforms(baseClone(source,CLONE_DEEP_FLAG))}function constant(value){return function(){return value}}function defaultTo(value,defaultValue){return value==null||value!==value?defaultValue:value}var flow=createFlow(),flowRight=createFlow(!0);function identity(value){return value}function iteratee(func){return baseIteratee(typeof func=="function"?func:baseClone(func,CLONE_DEEP_FLAG))}function matches(source){return baseMatches(baseClone(source,CLONE_DEEP_FLAG))}function matchesProperty(path,srcValue){return baseMatchesProperty(path,baseClone(srcValue,CLONE_DEEP_FLAG))}var method=baseRest(function(path,args){return function(object){return baseInvoke(object,path,args)}}),methodOf=baseRest(function(object,args){return function(path){return baseInvoke(object,path,args)}});function mixin(object,source,options){var props=keys(source),methodNames=baseFunctions(source,props);options==null&&!(isObject(source)&&(methodNames.length||!props.length))&&(options=source,source=object,object=this,methodNames=baseFunctions(source,keys(source)));var chain2=!(isObject(options)&&"chain"in options)||!!options.chain,isFunc=isFunction(object);return arrayEach(methodNames,function(methodName){var func=source[methodName];object[methodName]=func,isFunc&&(object.prototype[methodName]=function(){var chainAll=this.__chain__;if(chain2||chainAll){var result2=object(this.__wrapped__),actions=result2.__actions__=copyArray(this.__actions__);return actions.push({func,args:arguments,thisArg:object}),result2.__chain__=chainAll,result2}return func.apply(object,arrayPush([this.value()],arguments))})}),object}function noConflict(){return root._===this&&(root._=oldDash),this}function noop(){}function nthArg(n){return n=toInteger(n),baseRest(function(args){return baseNth(args,n)})}var over=createOver(arrayMap),overEvery=createOver(arrayEvery),overSome=createOver(arraySome);function property(path){return isKey(path)?baseProperty(toKey(path)):basePropertyDeep(path)}function propertyOf(object){return function(path){return object==null?undefined2:baseGet(object,path)}}var range=createRange(),rangeRight=createRange(!0);function stubArray(){return[]}function stubFalse(){return!1}function stubObject(){return{}}function stubString(){return""}function stubTrue(){return!0}function times(n,iteratee2){if(n=toInteger(n),n<1||n>MAX_SAFE_INTEGER)return[];var index=MAX_ARRAY_LENGTH,length=nativeMin(n,MAX_ARRAY_LENGTH);iteratee2=getIteratee(iteratee2),n-=MAX_ARRAY_LENGTH;for(var result2=baseTimes(length,iteratee2);++index<n;)iteratee2(index);return result2}function toPath(value){return isArray(value)?arrayMap(value,toKey):isSymbol(value)?[value]:copyArray(stringToPath(toString(value)))}function uniqueId(prefix){var id=++idCounter;return toString(prefix)+id}var add=createMathOperation(function(augend,addend){return augend+addend},0),ceil=createRound("ceil"),divide=createMathOperation(function(dividend,divisor){return dividend/divisor},1),floor=createRound("floor");function max(array){return array&&array.length?baseExtremum(array,identity,baseGt):undefined2}function maxBy(array,iteratee2){return array&&array.length?baseExtremum(array,getIteratee(iteratee2,2),baseGt):undefined2}function mean(array){return baseMean(array,identity)}function meanBy(array,iteratee2){return baseMean(array,getIteratee(iteratee2,2))}function min(array){return array&&array.length?baseExtremum(array,identity,baseLt):undefined2}function minBy(array,iteratee2){return array&&array.length?baseExtremum(array,getIteratee(iteratee2,2),baseLt):undefined2}var multiply=createMathOperation(function(multiplier,multiplicand){return multiplier*multiplicand},1),round=createRound("round"),subtract=createMathOperation(function(minuend,subtrahend){return minuend-subtrahend},0);function sum(array){return array&&array.length?baseSum(array,identity):0}function sumBy(array,iteratee2){return array&&array.length?baseSum(array,getIteratee(iteratee2,2)):0}return lodash.after=after,lodash.ary=ary,lodash.assign=assign,lodash.assignIn=assignIn,lodash.assignInWith=assignInWith,lodash.assignWith=assignWith,lodash.at=at,lodash.before=before,lodash.bind=bind,lodash.bindAll=bindAll,lodash.bindKey=bindKey,lodash.castArray=castArray,lodash.chain=chain,lodash.chunk=chunk,lodash.compact=compact,lodash.concat=concat,lodash.cond=cond,lodash.conforms=conforms,lodash.constant=constant,lodash.countBy=countBy,lodash.create=create,lodash.curry=curry,lodash.curryRight=curryRight,lodash.debounce=debounce,lodash.defaults=defaults,lodash.defaultsDeep=defaultsDeep,lodash.defer=defer,lodash.delay=delay,lodash.difference=difference,lodash.differenceBy=differenceBy,lodash.differenceWith=differenceWith,lodash.drop=drop,lodash.dropRight=dropRight,lodash.dropRightWhile=dropRightWhile,lodash.dropWhile=dropWhile,lodash.fill=fill,lodash.filter=filter,lodash.flatMap=flatMap,lodash.flatMapDeep=flatMapDeep,lodash.flatMapDepth=flatMapDepth,lodash.flatten=flatten,lodash.flattenDeep=flattenDeep,lodash.flattenDepth=flattenDepth,lodash.flip=flip,lodash.flow=flow,lodash.flowRight=flowRight,lodash.fromPairs=fromPairs,lodash.functions=functions,lodash.functionsIn=functionsIn,lodash.groupBy=groupBy,lodash.initial=initial,lodash.intersection=intersection,lodash.intersectionBy=intersectionBy,lodash.intersectionWith=intersectionWith,lodash.invert=invert,lodash.invertBy=invertBy,lodash.invokeMap=invokeMap,lodash.iteratee=iteratee,lodash.keyBy=keyBy,lodash.keys=keys,lodash.keysIn=keysIn,lodash.map=map,lodash.mapKeys=mapKeys,lodash.mapValues=mapValues,lodash.matches=matches,lodash.matchesProperty=matchesProperty,lodash.memoize=memoize,lodash.merge=merge,lodash.mergeWith=mergeWith,lodash.method=method,lodash.methodOf=methodOf,lodash.mixin=mixin,lodash.negate=negate,lodash.nthArg=nthArg,lodash.omit=omit,lodash.omitBy=omitBy,lodash.once=once,lodash.orderBy=orderBy,lodash.over=over,lodash.overArgs=overArgs,lodash.overEvery=overEvery,lodash.overSome=overSome,lodash.partial=partial,lodash.partialRight=partialRight,lodash.partition=partition,lodash.pick=pick,lodash.pickBy=pickBy,lodash.property=property,lodash.propertyOf=propertyOf,lodash.pull=pull,lodash.pullAll=pullAll,lodash.pullAllBy=pullAllBy,lodash.pullAllWith=pullAllWith,lodash.pullAt=pullAt,lodash.range=range,lodash.rangeRight=rangeRight,lodash.rearg=rearg,lodash.reject=reject,lodash.remove=remove,lodash.rest=rest,lodash.reverse=reverse,lodash.sampleSize=sampleSize,lodash.set=set,lodash.setWith=setWith,lodash.shuffle=shuffle,lodash.slice=slice,lodash.sortBy=sortBy,lodash.sortedUniq=sortedUniq,lodash.sortedUniqBy=sortedUniqBy,lodash.split=split,lodash.spread=spread,lodash.tail=tail,lodash.take=take,lodash.takeRight=takeRight,lodash.takeRightWhile=takeRightWhile,lodash.takeWhile=takeWhile,lodash.tap=tap,lodash.throttle=throttle,lodash.thru=thru,lodash.toArray=toArray,lodash.toPairs=toPairs,lodash.toPairsIn=toPairsIn,lodash.toPath=toPath,lodash.toPlainObject=toPlainObject,lodash.transform=transform,lodash.unary=unary,lodash.union=union,lodash.unionBy=unionBy,lodash.unionWith=unionWith,lodash.uniq=uniq,lodash.uniqBy=uniqBy,lodash.uniqWith=uniqWith,lodash.unset=unset,lodash.unzip=unzip,lodash.unzipWith=unzipWith,lodash.update=update,lodash.updateWith=updateWith,lodash.values=values,lodash.valuesIn=valuesIn,lodash.without=without,lodash.words=words,lodash.wrap=wrap,lodash.xor=xor,lodash.xorBy=xorBy,lodash.xorWith=xorWith,lodash.zip=zip,lodash.zipObject=zipObject,lodash.zipObjectDeep=zipObjectDeep,lodash.zipWith=zipWith,lodash.entries=toPairs,lodash.entriesIn=toPairsIn,lodash.extend=assignIn,lodash.extendWith=assignInWith,mixin(lodash,lodash),lodash.add=add,lodash.attempt=attempt,lodash.camelCase=camelCase,lodash.capitalize=capitalize,lodash.ceil=ceil,lodash.clamp=clamp,lodash.clone=clone,lodash.cloneDeep=cloneDeep,lodash.cloneDeepWith=cloneDeepWith,lodash.cloneWith=cloneWith,lodash.conformsTo=conformsTo,lodash.deburr=deburr,lodash.defaultTo=defaultTo,lodash.divide=divide,lodash.endsWith=endsWith,lodash.eq=eq,lodash.escape=escape,lodash.escapeRegExp=escapeRegExp,lodash.every=every,lodash.find=find,lodash.findIndex=findIndex,lodash.findKey=findKey,lodash.findLast=findLast,lodash.findLastIndex=findLastIndex,lodash.findLastKey=findLastKey,lodash.floor=floor,lodash.forEach=forEach,lodash.forEachRight=forEachRight,lodash.forIn=forIn,lodash.forInRight=forInRight,lodash.forOwn=forOwn,lodash.forOwnRight=forOwnRight,lodash.get=get,lodash.gt=gt,lodash.gte=gte,lodash.has=has,lodash.hasIn=hasIn,lodash.head=head,lodash.identity=identity,lodash.includes=includes,lodash.indexOf=indexOf,lodash.inRange=inRange,lodash.invoke=invoke,lodash.isArguments=isArguments,lodash.isArray=isArray,lodash.isArrayBuffer=isArrayBuffer,lodash.isArrayLike=isArrayLike,lodash.isArrayLikeObject=isArrayLikeObject,lodash.isBoolean=isBoolean,lodash.isBuffer=isBuffer,lodash.isDate=isDate,lodash.isElement=isElement,lodash.isEmpty=isEmpty,lodash.isEqual=isEqual,lodash.isEqualWith=isEqualWith,lodash.isError=isError,lodash.isFinite=isFinite2,lodash.isFunction=isFunction,lodash.isInteger=isInteger,lodash.isLength=isLength,lodash.isMap=isMap,lodash.isMatch=isMatch,lodash.isMatchWith=isMatchWith,lodash.isNaN=isNaN2,lodash.isNative=isNative,lodash.isNil=isNil,lodash.isNull=isNull,lodash.isNumber=isNumber,lodash.isObject=isObject,lodash.isObjectLike=isObjectLike,lodash.isPlainObject=isPlainObject,lodash.isRegExp=isRegExp,lodash.isSafeInteger=isSafeInteger,lodash.isSet=isSet,lodash.isString=isString,lodash.isSymbol=isSymbol,lodash.isTypedArray=isTypedArray,lodash.isUndefined=isUndefined,lodash.isWeakMap=isWeakMap,lodash.isWeakSet=isWeakSet,lodash.join=join,lodash.kebabCase=kebabCase,lodash.last=last,lodash.lastIndexOf=lastIndexOf,lodash.lowerCase=lowerCase,lodash.lowerFirst=lowerFirst,lodash.lt=lt,lodash.lte=lte,lodash.max=max,lodash.maxBy=maxBy,lodash.mean=mean,lodash.meanBy=meanBy,lodash.min=min,lodash.minBy=minBy,lodash.stubArray=stubArray,lodash.stubFalse=stubFalse,lodash.stubObject=stubObject,lodash.stubString=stubString,lodash.stubTrue=stubTrue,lodash.multiply=multiply,lodash.nth=nth,lodash.noConflict=noConflict,lodash.noop=noop,lodash.now=now,lodash.pad=pad,lodash.padEnd=padEnd,lodash.padStart=padStart,lodash.parseInt=parseInt2,lodash.random=random,lodash.reduce=reduce,lodash.reduceRight=reduceRight,lodash.repeat=repeat,lodash.replace=replace,lodash.result=result,lodash.round=round,lodash.runInContext=runInContext2,lodash.sample=sample,lodash.size=size,lodash.snakeCase=snakeCase,lodash.some=some,lodash.sortedIndex=sortedIndex,lodash.sortedIndexBy=sortedIndexBy,lodash.sortedIndexOf=sortedIndexOf,lodash.sortedLastIndex=sortedLastIndex,lodash.sortedLastIndexBy=sortedLastIndexBy,lodash.sortedLastIndexOf=sortedLastIndexOf,lodash.startCase=startCase,lodash.startsWith=startsWith,lodash.subtract=subtract,lodash.sum=sum,lodash.sumBy=sumBy,lodash.template=template,lodash.times=times,lodash.toFinite=toFinite,lodash.toInteger=toInteger,lodash.toLength=toLength,lodash.toLower=toLower,lodash.toNumber=toNumber,lodash.toSafeInteger=toSafeInteger,lodash.toString=toString,lodash.toUpper=toUpper,lodash.trim=trim,lodash.trimEnd=trimEnd,lodash.trimStart=trimStart,lodash.truncate=truncate,lodash.unescape=unescape2,lodash.uniqueId=uniqueId,lodash.upperCase=upperCase,lodash.upperFirst=upperFirst,lodash.each=forEach,lodash.eachRight=forEachRight,lodash.first=head,mixin(lodash,function(){var source={};return baseForOwn(lodash,function(func,methodName){hasOwnProperty2.call(lodash.prototype,methodName)||(source[methodName]=func)}),source}(),{chain:!1}),lodash.VERSION=VERSION,arrayEach(["bind","bindKey","curry","curryRight","partial","partialRight"],function(methodName){lodash[methodName].placeholder=lodash}),arrayEach(["drop","take"],function(methodName,index){LazyWrapper.prototype[methodName]=function(n){n=n===undefined2?1:nativeMax(toInteger(n),0);var result2=this.__filtered__&&!index?new LazyWrapper(this):this.clone();return result2.__filtered__?result2.__takeCount__=nativeMin(n,result2.__takeCount__):result2.__views__.push({size:nativeMin(n,MAX_ARRAY_LENGTH),type:methodName+(result2.__dir__<0?"Right":"")}),result2},LazyWrapper.prototype[methodName+"Right"]=function(n){return this.reverse()[methodName](n).reverse()}}),arrayEach(["filter","map","takeWhile"],function(methodName,index){var type=index+1,isFilter=type==LAZY_FILTER_FLAG||type==LAZY_WHILE_FLAG;LazyWrapper.prototype[methodName]=function(iteratee2){var result2=this.clone();return result2.__iteratees__.push({iteratee:getIteratee(iteratee2,3),type}),result2.__filtered__=result2.__filtered__||isFilter,result2}}),arrayEach(["head","last"],function(methodName,index){var takeName="take"+(index?"Right":"");LazyWrapper.prototype[methodName]=function(){return this[takeName](1).value()[0]}}),arrayEach(["initial","tail"],function(methodName,index){var dropName="drop"+(index?"":"Right");LazyWrapper.prototype[methodName]=function(){return this.__filtered__?new LazyWrapper(this):this[dropName](1)}}),LazyWrapper.prototype.compact=function(){return this.filter(identity)},LazyWrapper.prototype.find=function(predicate){return this.filter(predicate).head()},LazyWrapper.prototype.findLast=function(predicate){return this.reverse().find(predicate)},LazyWrapper.prototype.invokeMap=baseRest(function(path,args){return typeof path=="function"?new LazyWrapper(this):this.map(function(value){return baseInvoke(value,path,args)})}),LazyWrapper.prototype.reject=function(predicate){return this.filter(negate(getIteratee(predicate)))},LazyWrapper.prototype.slice=function(start,end){start=toInteger(start);var result2=this;return result2.__filtered__&&(start>0||end<0)?new LazyWrapper(result2):(start<0?result2=result2.takeRight(-start):start&&(result2=result2.drop(start)),end!==undefined2&&(end=toInteger(end),result2=end<0?result2.dropRight(-end):result2.take(end-start)),result2)},LazyWrapper.prototype.takeRightWhile=function(predicate){return this.reverse().takeWhile(predicate).reverse()},LazyWrapper.prototype.toArray=function(){return this.take(MAX_ARRAY_LENGTH)},baseForOwn(LazyWrapper.prototype,function(func,methodName){var checkIteratee=/^(?:filter|find|map|reject)|While$/.test(methodName),isTaker=/^(?:head|last)$/.test(methodName),lodashFunc=lodash[isTaker?"take"+(methodName=="last"?"Right":""):methodName],retUnwrapped=isTaker||/^find/.test(methodName);!lodashFunc||(lodash.prototype[methodName]=function(){var value=this.__wrapped__,args=isTaker?[1]:arguments,isLazy=value instanceof LazyWrapper,iteratee2=args[0],useLazy=isLazy||isArray(value),interceptor=function(value2){var result3=lodashFunc.apply(lodash,arrayPush([value2],args));return isTaker&&chainAll?result3[0]:result3};useLazy&&checkIteratee&&typeof iteratee2=="function"&&iteratee2.length!=1&&(isLazy=useLazy=!1);var chainAll=this.__chain__,isHybrid=!!this.__actions__.length,isUnwrapped=retUnwrapped&&!chainAll,onlyLazy=isLazy&&!isHybrid;if(!retUnwrapped&&useLazy){value=onlyLazy?value:new LazyWrapper(this);var result2=func.apply(value,args);return result2.__actions__.push({func:thru,args:[interceptor],thisArg:undefined2}),new LodashWrapper(result2,chainAll)}return isUnwrapped&&onlyLazy?func.apply(this,args):(result2=this.thru(interceptor),isUnwrapped?isTaker?result2.value()[0]:result2.value():result2)})}),arrayEach(["pop","push","shift","sort","splice","unshift"],function(methodName){var func=arrayProto[methodName],chainName=/^(?:push|sort|unshift)$/.test(methodName)?"tap":"thru",retUnwrapped=/^(?:pop|shift)$/.test(methodName);lodash.prototype[methodName]=function(){var args=arguments;if(retUnwrapped&&!this.__chain__){var value=this.value();return func.apply(isArray(value)?value:[],args)}return this[chainName](function(value2){return func.apply(isArray(value2)?value2:[],args)})}}),baseForOwn(LazyWrapper.prototype,function(func,methodName){var lodashFunc=lodash[methodName];if(lodashFunc){var key=lodashFunc.name+"";hasOwnProperty2.call(realNames,key)||(realNames[key]=[]),realNames[key].push({name:methodName,func:lodashFunc})}}),realNames[createHybrid(undefined2,WRAP_BIND_KEY_FLAG).name]=[{name:"wrapper",func:undefined2}],LazyWrapper.prototype.clone=lazyClone,LazyWrapper.prototype.reverse=lazyReverse,LazyWrapper.prototype.value=lazyValue,lodash.prototype.at=wrapperAt,lodash.prototype.chain=wrapperChain,lodash.prototype.commit=wrapperCommit,lodash.prototype.next=wrapperNext,lodash.prototype.plant=wrapperPlant,lodash.prototype.reverse=wrapperReverse,lodash.prototype.toJSON=lodash.prototype.valueOf=lodash.prototype.value=wrapperValue,lodash.prototype.first=lodash.prototype.head,symIterator&&(lodash.prototype[symIterator]=wrapperToIterator),lodash},_=runInContext();root._=_,__WEBPACK_AMD_DEFINE_RESULT__=function(){return _}.call(exports,__webpack_require__,exports,module),__WEBPACK_AMD_DEFINE_RESULT__!==undefined2&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)}).call(this)},82698:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";const Yallist=__webpack_require__(38871),MAX=Symbol("max"),LENGTH=Symbol("length"),LENGTH_CALCULATOR=Symbol("lengthCalculator"),ALLOW_STALE=Symbol("allowStale"),MAX_AGE=Symbol("maxAge"),DISPOSE=Symbol("dispose"),NO_DISPOSE_ON_SET=Symbol("noDisposeOnSet"),LRU_LIST=Symbol("lruList"),CACHE=Symbol("cache"),UPDATE_AGE_ON_GET=Symbol("updateAgeOnGet"),naiveLength=()=>1;class LRUCache{constructor(options){if(typeof options=="number"&&(options={max:options}),options||(options={}),options.max&&(typeof options.max!="number"||options.max<0))throw new TypeError("max must be a non-negative number");const max=this[MAX]=options.max||1/0,lc=options.length||naiveLength;if(this[LENGTH_CALCULATOR]=typeof lc!="function"?naiveLength:lc,this[ALLOW_STALE]=options.stale||!1,options.maxAge&&typeof options.maxAge!="number")throw new TypeError("maxAge must be a number");this[MAX_AGE]=options.maxAge||0,this[DISPOSE]=options.dispose,this[NO_DISPOSE_ON_SET]=options.noDisposeOnSet||!1,this[UPDATE_AGE_ON_GET]=options.updateAgeOnGet||!1,this.reset()}set max(mL){if(typeof mL!="number"||mL<0)throw new TypeError("max must be a non-negative number");this[MAX]=mL||1/0,trim(this)}get max(){return this[MAX]}set allowStale(allowStale){this[ALLOW_STALE]=!!allowStale}get allowStale(){return this[ALLOW_STALE]}set maxAge(mA){if(typeof mA!="number")throw new TypeError("maxAge must be a non-negative number");this[MAX_AGE]=mA,trim(this)}get maxAge(){return this[MAX_AGE]}set lengthCalculator(lC){typeof lC!="function"&&(lC=naiveLength),lC!==this[LENGTH_CALCULATOR]&&(this[LENGTH_CALCULATOR]=lC,this[LENGTH]=0,this[LRU_LIST].forEach(hit=>{hit.length=this[LENGTH_CALCULATOR](hit.value,hit.key),this[LENGTH]+=hit.length})),trim(this)}get lengthCalculator(){return this[LENGTH_CALCULATOR]}get length(){return this[LENGTH]}get itemCount(){return this[LRU_LIST].length}rforEach(fn,thisp){thisp=thisp||this;for(let walker=this[LRU_LIST].tail;walker!==null;){const prev=walker.prev;forEachStep(this,fn,walker,thisp),walker=prev}}forEach(fn,thisp){thisp=thisp||this;for(let walker=this[LRU_LIST].head;walker!==null;){const next=walker.next;forEachStep(this,fn,walker,thisp),walker=next}}keys(){return this[LRU_LIST].toArray().map(k=>k.key)}values(){return this[LRU_LIST].toArray().map(k=>k.value)}reset(){this[DISPOSE]&&this[LRU_LIST]&&this[LRU_LIST].length&&this[LRU_LIST].forEach(hit=>this[DISPOSE](hit.key,hit.value)),this[CACHE]=new Map,this[LRU_LIST]=new Yallist,this[LENGTH]=0}dump(){return this[LRU_LIST].map(hit=>isStale(this,hit)?!1:{k:hit.key,v:hit.value,e:hit.now+(hit.maxAge||0)}).toArray().filter(h=>h)}dumpLru(){return this[LRU_LIST]}set(key,value,maxAge){if(maxAge=maxAge||this[MAX_AGE],maxAge&&typeof maxAge!="number")throw new TypeError("maxAge must be a number");const now=maxAge?Date.now():0,len=this[LENGTH_CALCULATOR](value,key);if(this[CACHE].has(key)){if(len>this[MAX])return del(this,this[CACHE].get(key)),!1;const item=this[CACHE].get(key).value;return this[DISPOSE]&&(this[NO_DISPOSE_ON_SET]||this[DISPOSE](key,item.value)),item.now=now,item.maxAge=maxAge,item.value=value,this[LENGTH]+=len-item.length,item.length=len,this.get(key),trim(this),!0}const hit=new Entry(key,value,len,now,maxAge);return hit.length>this[MAX]?(this[DISPOSE]&&this[DISPOSE](key,value),!1):(this[LENGTH]+=hit.length,this[LRU_LIST].unshift(hit),this[CACHE].set(key,this[LRU_LIST].head),trim(this),!0)}has(key){if(!this[CACHE].has(key))return!1;const hit=this[CACHE].get(key).value;return!isStale(this,hit)}get(key){return get(this,key,!0)}peek(key){return get(this,key,!1)}pop(){const node=this[LRU_LIST].tail;return node?(del(this,node),node.value):null}del(key){del(this,this[CACHE].get(key))}load(arr){this.reset();const now=Date.now();for(let l=arr.length-1;l>=0;l--){const hit=arr[l],expiresAt=hit.e||0;if(expiresAt===0)this.set(hit.k,hit.v);else{const maxAge=expiresAt-now;maxAge>0&&this.set(hit.k,hit.v,maxAge)}}}prune(){this[CACHE].forEach((value,key)=>get(this,key,!1))}}const get=(self2,key,doUse)=>{const node=self2[CACHE].get(key);if(node){const hit=node.value;if(isStale(self2,hit)){if(del(self2,node),!self2[ALLOW_STALE])return}else doUse&&(self2[UPDATE_AGE_ON_GET]&&(node.value.now=Date.now()),self2[LRU_LIST].unshiftNode(node));return hit.value}},isStale=(self2,hit)=>{if(!hit||!hit.maxAge&&!self2[MAX_AGE])return!1;const diff=Date.now()-hit.now;return hit.maxAge?diff>hit.maxAge:self2[MAX_AGE]&&diff>self2[MAX_AGE]},trim=self2=>{if(self2[LENGTH]>self2[MAX])for(let walker=self2[LRU_LIST].tail;self2[LENGTH]>self2[MAX]&&walker!==null;){const prev=walker.prev;del(self2,walker),walker=prev}},del=(self2,node)=>{if(node){const hit=node.value;self2[DISPOSE]&&self2[DISPOSE](hit.key,hit.value),self2[LENGTH]-=hit.length,self2[CACHE].delete(hit.key),self2[LRU_LIST].removeNode(node)}};class Entry{constructor(key,value,length,now,maxAge){this.key=key,this.value=value,this.length=length,this.now=now,this.maxAge=maxAge||0}}const forEachStep=(self2,fn,node,thisp)=>{let hit=node.value;isStale(self2,hit)&&(del(self2,node),self2[ALLOW_STALE]||(hit=void 0)),hit&&fn.call(thisp,hit.value,hit.key,self2)};module.exports=LRUCache},4203:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var toPosInt=__webpack_require__(61895),create=Object.create,hasOwnProperty2=Object.prototype.hasOwnProperty;module.exports=function(limit){var size=0,base=1,queue=create(null),map=create(null),index=0,del;return limit=toPosInt(limit),{hit:function(id){var oldIndex=map[id],nuIndex=++index;if(queue[nuIndex]=id,map[id]=nuIndex,!oldIndex)return++size,size<=limit?void 0:(id=queue[base],del(id),id);if(delete queue[oldIndex],base===oldIndex)for(;!hasOwnProperty2.call(queue,++base););},delete:del=function(id){var oldIndex=map[id];if(!!oldIndex&&(delete queue[oldIndex],delete map[id],--size,base===oldIndex)){if(!size){index=0,base=1;return}for(;!hasOwnProperty2.call(queue,++base););}},clear:function(){size=0,base=1,queue=create(null),map=create(null),index=0}}}},90953:(__unused_webpack_module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var aFrom=__webpack_require__(3642),objectMap=__webpack_require__(68762),mixin=__webpack_require__(52602),defineLength=__webpack_require__(19733),nextTick=__webpack_require__(50460),slice=Array.prototype.slice,apply=Function.prototype.apply,create=Object.create;__webpack_require__(67196).async=function(tbi,conf){var waiting=create(null),cache=create(null),base=conf.memoized,original=conf.original,currentCallback,currentContext,currentArgs;conf.memoized=defineLength(function(arg){var args=arguments,last=args[args.length-1];return typeof last=="function"&&(currentCallback=last,args=slice.call(args,0,-1)),base.apply(currentContext=this,currentArgs=args)},base);try{mixin(conf.memoized,base)}catch{}conf.on("get",function(id){var cb,context,args;if(!!currentCallback){if(waiting[id]){typeof waiting[id]=="function"?waiting[id]=[waiting[id],currentCallback]:waiting[id].push(currentCallback),currentCallback=null;return}cb=currentCallback,context=currentContext,args=currentArgs,currentCallback=currentContext=currentArgs=null,nextTick(function(){var data;hasOwnProperty.call(cache,id)?(data=cache[id],conf.emit("getasync",id,args,context),apply.call(cb,data.context,data.args)):(currentCallback=cb,currentContext=context,currentArgs=args,base.apply(context,args))})}}),conf.original=function(){var args,cb,origCb,result;return currentCallback?(args=aFrom(arguments),cb=function self2(err){var cb2,args2,id=self2.id;if(id==null){nextTick(apply.bind(self2,this,arguments));return}if(delete self2.id,cb2=waiting[id],delete waiting[id],!!cb2)return args2=aFrom(arguments),conf.has(id)&&(err?conf.delete(id):(cache[id]={context:this,args:args2},conf.emit("setasync",id,typeof cb2=="function"?1:cb2.length))),typeof cb2=="function"?result=apply.call(cb2,this,args2):cb2.forEach(function(cb3){result=apply.call(cb3,this,args2)},this),result},origCb=currentCallback,currentCallback=currentContext=currentArgs=null,args.push(cb),result=apply.call(original,this,args),cb.cb=origCb,currentCallback=cb,result):apply.call(original,this,arguments)},conf.on("set",function(id){if(!currentCallback){conf.delete(id);return}waiting[id]?typeof waiting[id]=="function"?waiting[id]=[waiting[id],currentCallback.cb]:waiting[id].push(currentCallback.cb):waiting[id]=currentCallback.cb,delete currentCallback.cb,currentCallback.id=id,currentCallback=null}),conf.on("delete",function(id){var result;hasOwnProperty.call(waiting,id)||!cache[id]||(result=cache[id],delete cache[id],conf.emit("deleteasync",id,slice.call(result.args,1)))}),conf.on("clear",function(){var oldCache=cache;cache=create(null),conf.emit("clearasync",objectMap(oldCache,function(data){return slice.call(data.args,1)}))})}},7766:(__unused_webpack_module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var callable=__webpack_require__(67446),forEach=__webpack_require__(79845),extensions=__webpack_require__(67196),apply=Function.prototype.apply;extensions.dispose=function(dispose,conf,options){var del;if(callable(dispose),options.async&&extensions.async||options.promise&&extensions.promise){conf.on("deleteasync",del=function(id,resultArray){apply.call(dispose,null,resultArray)}),conf.on("clearasync",function(cache){forEach(cache,function(result,id){del(id,result)})});return}conf.on("delete",del=function(id,result){dispose(result)}),conf.on("clear",function(cache){forEach(cache,function(result,id){del(id,result)})})}},37570:(__unused_webpack_module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var aFrom=__webpack_require__(3642),forEach=__webpack_require__(79845),nextTick=__webpack_require__(50460),isPromise=__webpack_require__(23711),timeout=__webpack_require__(5493),extensions=__webpack_require__(67196),noop=Function.prototype,max=Math.max,min=Math.min,create=Object.create;extensions.maxAge=function(maxAge,conf,options){var timeouts,postfix,preFetchAge,preFetchTimeouts;maxAge=timeout(maxAge),maxAge&&(timeouts=create(null),postfix=options.async&&extensions.async||options.promise&&extensions.promise?"async":"",conf.on("set"+postfix,function(id){timeouts[id]=setTimeout(function(){conf.delete(id)},maxAge),typeof timeouts[id].unref=="function"&&timeouts[id].unref(),preFetchTimeouts&&(preFetchTimeouts[id]&&preFetchTimeouts[id]!=="nextTick"&&clearTimeout(preFetchTimeouts[id]),preFetchTimeouts[id]=setTimeout(function(){delete preFetchTimeouts[id]},preFetchAge),typeof preFetchTimeouts[id].unref=="function"&&preFetchTimeouts[id].unref())}),conf.on("delete"+postfix,function(id){clearTimeout(timeouts[id]),delete timeouts[id],preFetchTimeouts&&(preFetchTimeouts[id]!=="nextTick"&&clearTimeout(preFetchTimeouts[id]),delete preFetchTimeouts[id])}),options.preFetch&&(options.preFetch===!0||isNaN(options.preFetch)?preFetchAge=.333:preFetchAge=max(min(Number(options.preFetch),1),0),preFetchAge&&(preFetchTimeouts={},preFetchAge=(1-preFetchAge)*maxAge,conf.on("get"+postfix,function(id,args,context){preFetchTimeouts[id]||(preFetchTimeouts[id]="nextTick",nextTick(function(){var result;preFetchTimeouts[id]==="nextTick"&&(delete preFetchTimeouts[id],conf.delete(id),options.async&&(args=aFrom(args),args.push(noop)),result=conf.memoized.apply(context,args),options.promise&&isPromise(result)&&(typeof result.done=="function"?result.done(noop,noop):result.then(noop,noop)))}))}))),conf.on("clear"+postfix,function(){forEach(timeouts,function(id){clearTimeout(id)}),timeouts={},preFetchTimeouts&&(forEach(preFetchTimeouts,function(id){id!=="nextTick"&&clearTimeout(id)}),preFetchTimeouts={})}))}},14080:(__unused_webpack_module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var toPosInteger=__webpack_require__(61895),lruQueue=__webpack_require__(4203),extensions=__webpack_require__(67196);extensions.max=function(max,conf,options){var postfix,queue,hit;max=toPosInteger(max),max&&(queue=lruQueue(max),postfix=options.async&&extensions.async||options.promise&&extensions.promise?"async":"",conf.on("set"+postfix,hit=function(id){id=queue.hit(id),id!==void 0&&conf.delete(id)}),conf.on("get"+postfix,hit),conf.on("delete"+postfix,queue.delete),conf.on("clear"+postfix,queue.clear))}},16159:(__unused_webpack_module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var objectMap=__webpack_require__(68762),primitiveSet=__webpack_require__(37291),ensureString=__webpack_require__(97551),toShortString=__webpack_require__(12213),isPromise=__webpack_require__(23711),nextTick=__webpack_require__(50460),create=Object.create,supportedModes=primitiveSet("then","then:finally","done","done:finally");__webpack_require__(67196).promise=function(mode,conf){var waiting=create(null),cache=create(null),promises=create(null);if(mode===!0)mode=null;else if(mode=ensureString(mode),!supportedModes[mode])throw new TypeError("'"+toShortString(mode)+"' is not valid promise mode");conf.on("set",function(id,ignore,promise){var isFailed=!1;if(!isPromise(promise)){cache[id]=promise,conf.emit("setasync",id,1);return}waiting[id]=1,promises[id]=promise;var onSuccess=function(result){var count=waiting[id];if(isFailed)throw new Error(`Memoizee error: Detected unordered then|done & finally resolution, which in turn makes proper detection of success/failure impossible (when in 'done:finally' mode)
|
56
|
-
Consider to rely on 'then' or 'done' mode instead.`);!count||(delete waiting[id],cache[id]=result,conf.emit("setasync",id,count))},onFailure=function(){isFailed=!0,waiting[id]&&(delete waiting[id],delete promises[id],conf.delete(id))},resolvedMode=mode;if(resolvedMode||(resolvedMode="then"),resolvedMode==="then"){var nextTickFailure=function(){nextTick(onFailure)};promise=promise.then(function(result){nextTick(onSuccess.bind(this,result))},nextTickFailure),typeof promise.finally=="function"&&promise.finally(nextTickFailure)}else if(resolvedMode==="done"){if(typeof promise.done!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'done' in 'done' mode");promise.done(onSuccess,onFailure)}else if(resolvedMode==="done:finally"){if(typeof promise.done!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'done' in 'done:finally' mode");if(typeof promise.finally!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'finally' in 'done:finally' mode");promise.done(onSuccess),promise.finally(onFailure)}}),conf.on("get",function(id,args,context){var promise;if(waiting[id]){++waiting[id];return}promise=promises[id];var emit=function(){conf.emit("getasync",id,args,context)};isPromise(promise)?typeof promise.done=="function"?promise.done(emit):promise.then(function(){nextTick(emit)}):emit()}),conf.on("delete",function(id){if(delete promises[id],waiting[id]){delete waiting[id];return}if(!!hasOwnProperty.call(cache,id)){var result=cache[id];delete cache[id],conf.emit("deleteasync",id,[result])}}),conf.on("clear",function(){var oldCache=cache;cache=create(null),waiting=create(null),promises=create(null),conf.emit("clearasync",objectMap(oldCache,function(data){return[data]}))})}},81324:(__unused_webpack_module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var d=__webpack_require__(88539),extensions=__webpack_require__(67196),create=Object.create,defineProperties=Object.defineProperties;extensions.refCounter=function(ignore,conf,options){var cache,postfix;cache=create(null),postfix=options.async&&extensions.async||options.promise&&extensions.promise?"async":"",conf.on("set"+postfix,function(id,length){cache[id]=length||1}),conf.on("get"+postfix,function(id){++cache[id]}),conf.on("delete"+postfix,function(id){delete cache[id]}),conf.on("clear"+postfix,function(){cache={}}),defineProperties(conf.memoized,{deleteRef:d(function(){var id=conf.get(arguments);return id===null||!cache[id]?null:--cache[id]?!1:(conf.delete(id),!0)}),getRefCount:d(function(){var id=conf.get(arguments);return id===null||!cache[id]?0:cache[id]})})}},76893:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var normalizeOpts=__webpack_require__(53923),resolveLength=__webpack_require__(84918),plain=__webpack_require__(11460);module.exports=function(fn){var options=normalizeOpts(arguments[1]),length;return options.normalizer||(length=options.length=resolveLength(options.length,fn.length,options.async),length!==0&&(options.primitive?length===!1?options.normalizer=__webpack_require__(28458):length>1&&(options.normalizer=__webpack_require__(47651)(length)):length===!1?options.normalizer=__webpack_require__(31956)():length===1?options.normalizer=__webpack_require__(39985)():options.normalizer=__webpack_require__(77768)(length))),options.async&&__webpack_require__(90953),options.promise&&__webpack_require__(16159),options.dispose&&__webpack_require__(7766),options.maxAge&&__webpack_require__(37570),options.max&&__webpack_require__(14080),options.refCounter&&__webpack_require__(81324),plain(fn,options)}},75762:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var customError=__webpack_require__(99655),defineLength=__webpack_require__(19733),d=__webpack_require__(88539),ee=__webpack_require__(78421).methods,resolveResolve=__webpack_require__(53015),resolveNormalize=__webpack_require__(98008),apply=Function.prototype.apply,call=Function.prototype.call,create=Object.create,defineProperties=Object.defineProperties,on=ee.on,emit=ee.emit;module.exports=function(original,length,options){var cache=create(null),conf,memLength,get,set,del,clear,extDel,extGet,extHas,normalizer,getListeners,setListeners,deleteListeners,memoized,resolve;return length!==!1?memLength=length:isNaN(original.length)?memLength=1:memLength=original.length,options.normalizer&&(normalizer=resolveNormalize(options.normalizer),get=normalizer.get,set=normalizer.set,del=normalizer.delete,clear=normalizer.clear),options.resolvers!=null&&(resolve=resolveResolve(options.resolvers)),get?memoized=defineLength(function(arg){var id,result,args=arguments;if(resolve&&(args=resolve(args)),id=get(args),id!==null&&hasOwnProperty.call(cache,id))return getListeners&&conf.emit("get",id,args,this),cache[id];if(args.length===1?result=call.call(original,this,args[0]):result=apply.call(original,this,args),id===null){if(id=get(args),id!==null)throw customError("Circular invocation","CIRCULAR_INVOCATION");id=set(args)}else if(hasOwnProperty.call(cache,id))throw customError("Circular invocation","CIRCULAR_INVOCATION");return cache[id]=result,setListeners&&conf.emit("set",id,null,result),result},memLength):length===0?memoized=function(){var result;if(hasOwnProperty.call(cache,"data"))return getListeners&&conf.emit("get","data",arguments,this),cache.data;if(arguments.length?result=apply.call(original,this,arguments):result=call.call(original,this),hasOwnProperty.call(cache,"data"))throw customError("Circular invocation","CIRCULAR_INVOCATION");return cache.data=result,setListeners&&conf.emit("set","data",null,result),result}:memoized=function(arg){var result,args=arguments,id;if(resolve&&(args=resolve(arguments)),id=String(args[0]),hasOwnProperty.call(cache,id))return getListeners&&conf.emit("get",id,args,this),cache[id];if(args.length===1?result=call.call(original,this,args[0]):result=apply.call(original,this,args),hasOwnProperty.call(cache,id))throw customError("Circular invocation","CIRCULAR_INVOCATION");return cache[id]=result,setListeners&&conf.emit("set",id,null,result),result},conf={original,memoized,profileName:options.profileName,get:function(args){return resolve&&(args=resolve(args)),get?get(args):String(args[0])},has:function(id){return hasOwnProperty.call(cache,id)},delete:function(id){var result;!hasOwnProperty.call(cache,id)||(del&&del(id),result=cache[id],delete cache[id],deleteListeners&&conf.emit("delete",id,result))},clear:function(){var oldCache=cache;clear&&clear(),cache=create(null),conf.emit("clear",oldCache)},on:function(type,listener){return type==="get"?getListeners=!0:type==="set"?setListeners=!0:type==="delete"&&(deleteListeners=!0),on.call(this,type,listener)},emit,updateEnv:function(){original=conf.original}},get?extDel=defineLength(function(arg){var id,args=arguments;resolve&&(args=resolve(args)),id=get(args),id!==null&&conf.delete(id)},memLength):length===0?extDel=function(){return conf.delete("data")}:extDel=function(arg){return resolve&&(arg=resolve(arguments)[0]),conf.delete(arg)},extGet=defineLength(function(){var id,args=arguments;return length===0?cache.data:(resolve&&(args=resolve(args)),get?id=get(args):id=String(args[0]),cache[id])}),extHas=defineLength(function(){var id,args=arguments;return length===0?conf.has("data"):(resolve&&(args=resolve(args)),get?id=get(args):id=String(args[0]),id===null?!1:conf.has(id))}),defineProperties(memoized,{__memoized__:d(!0),delete:d(extDel),clear:d(conf.clear),_get:d(extGet),_has:d(extHas)}),conf}},67196:()=>{"use strict"},84918:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var toPosInt=__webpack_require__(61895);module.exports=function(optsLength,fnLength,isAsync){var length;return isNaN(optsLength)?(length=fnLength,length>=0?isAsync&&length?length-1:length:1):optsLength===!1?!1:toPosInt(optsLength)}},98008:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var callable=__webpack_require__(67446);module.exports=function(userNormalizer){var normalizer;return typeof userNormalizer=="function"?{set:userNormalizer,get:userNormalizer}:(normalizer={get:callable(userNormalizer.get)},userNormalizer.set!==void 0?(normalizer.set=callable(userNormalizer.set),userNormalizer.delete&&(normalizer.delete=callable(userNormalizer.delete)),userNormalizer.clear&&(normalizer.clear=callable(userNormalizer.clear)),normalizer):(normalizer.set=normalizer.get,normalizer))}},53015:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var toArray=__webpack_require__(28813),isValue=__webpack_require__(53095),callable=__webpack_require__(67446),slice=Array.prototype.slice,resolveArgs;resolveArgs=function(args){return this.map(function(resolve,i){return resolve?resolve(args[i]):args[i]}).concat(slice.call(args,this.length))},module.exports=function(resolvers){return resolvers=toArray(resolvers),resolvers.forEach(function(resolve){isValue(resolve)&&callable(resolve)}),resolveArgs.bind(resolvers)}},39985:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var indexOf=__webpack_require__(11992);module.exports=function(){var lastId=0,argsMap=[],cache=[];return{get:function(args){var index=indexOf.call(argsMap,args[0]);return index===-1?null:cache[index]},set:function(args){return argsMap.push(args[0]),cache.push(++lastId),lastId},delete:function(id){var index=indexOf.call(cache,id);index!==-1&&(argsMap.splice(index,1),cache.splice(index,1))},clear:function(){argsMap=[],cache=[]}}}},77768:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var indexOf=__webpack_require__(11992),create=Object.create;module.exports=function(length){var lastId=0,map=[[],[]],cache=create(null);return{get:function(args){for(var index=0,set=map,i;index<length-1;){if(i=indexOf.call(set[0],args[index]),i===-1)return null;set=set[1][i],++index}return i=indexOf.call(set[0],args[index]),i===-1?null:set[1][i]||null},set:function(args){for(var index=0,set=map,i;index<length-1;)i=indexOf.call(set[0],args[index]),i===-1&&(i=set[0].push(args[index])-1,set[1].push([[],[]])),set=set[1][i],++index;return i=indexOf.call(set[0],args[index]),i===-1&&(i=set[0].push(args[index])-1),set[1][i]=++lastId,cache[lastId]=args,lastId},delete:function(id){for(var index=0,set=map,i,path=[],args=cache[id];index<length-1;){if(i=indexOf.call(set[0],args[index]),i===-1)return;path.push(set,i),set=set[1][i],++index}if(i=indexOf.call(set[0],args[index]),i!==-1){for(id=set[1][i],set[0].splice(i,1),set[1].splice(i,1);!set[0].length&&path.length;)i=path.pop(),set=path.pop(),set[0].splice(i,1),set[1].splice(i,1);delete cache[id]}},clear:function(){map=[[],[]],cache=create(null)}}}},47651:module=>{"use strict";module.exports=function(length){return length?function(args){for(var id=String(args[0]),i=0,currentLength=length;--currentLength;)id+=""+args[++i];return id}:function(){return""}}},31956:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var indexOf=__webpack_require__(11992),create=Object.create;module.exports=function(){var lastId=0,map=[],cache=create(null);return{get:function(args){var index=0,set=map,i,length=args.length;if(length===0)return set[length]||null;if(set=set[length]){for(;index<length-1;){if(i=indexOf.call(set[0],args[index]),i===-1)return null;set=set[1][i],++index}return i=indexOf.call(set[0],args[index]),i===-1?null:set[1][i]||null}return null},set:function(args){var index=0,set=map,i,length=args.length;if(length===0)set[length]=++lastId;else{for(set[length]||(set[length]=[[],[]]),set=set[length];index<length-1;)i=indexOf.call(set[0],args[index]),i===-1&&(i=set[0].push(args[index])-1,set[1].push([[],[]])),set=set[1][i],++index;i=indexOf.call(set[0],args[index]),i===-1&&(i=set[0].push(args[index])-1),set[1][i]=++lastId}return cache[lastId]=args,lastId},delete:function(id){var index=0,set=map,i,args=cache[id],length=args.length,path=[];if(length===0)delete set[length];else if(set=set[length]){for(;index<length-1;){if(i=indexOf.call(set[0],args[index]),i===-1)return;path.push(set,i),set=set[1][i],++index}if(i=indexOf.call(set[0],args[index]),i===-1)return;for(id=set[1][i],set[0].splice(i,1),set[1].splice(i,1);!set[0].length&&path.length;)i=path.pop(),set=path.pop(),set[0].splice(i,1),set[1].splice(i,1)}delete cache[id]},clear:function(){map=[],cache=create(null)}}}},28458:module=>{"use strict";module.exports=function(args){var id,i,length=args.length;if(!length)return"";for(id=String(args[i=0]);--length;)id+=""+args[++i];return id}},11460:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var callable=__webpack_require__(67446),forEach=__webpack_require__(79845),extensions=__webpack_require__(67196),configure=__webpack_require__(75762),resolveLength=__webpack_require__(84918);module.exports=function self2(fn){var options,length,conf;if(callable(fn),options=Object(arguments[1]),options.async&&options.promise)throw new Error("Options 'async' and 'promise' cannot be used together");return hasOwnProperty.call(fn,"__memoized__")&&!options.force?fn:(length=resolveLength(options.length,fn.length,options.async&&extensions.async),conf=configure(fn,length,options),forEach(extensions,function(extFn,name){options[name]&&extFn(options[name],conf,options)}),self2.__profiler__&&self2.__profiler__(conf),conf.updateEnv(),conf.memoized)}},50460:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var process=__webpack_require__(14224),ensureCallable=function(fn){if(typeof fn!="function")throw new TypeError(fn+" is not a function");return fn},byObserver=function(Observer){var node=document.createTextNode(""),queue,currentQueue,i=0;return new Observer(function(){var callback;if(queue)currentQueue&&(queue=currentQueue.concat(queue));else{if(!currentQueue)return;queue=currentQueue}if(currentQueue=queue,queue=null,typeof currentQueue=="function"){callback=currentQueue,currentQueue=null,callback();return}for(node.data=i=++i%2;currentQueue;)callback=currentQueue.shift(),currentQueue.length||(currentQueue=null),callback()}).observe(node,{characterData:!0}),function(fn){if(ensureCallable(fn),queue){typeof queue=="function"?queue=[queue,fn]:queue.push(fn);return}queue=fn,node.data=i=++i%2}};module.exports=function(){if(typeof process=="object"&&process&&typeof process.nextTick=="function")return process.nextTick;if(typeof queueMicrotask=="function")return function(cb){queueMicrotask(ensureCallable(cb))};if(typeof document=="object"&&document){if(typeof MutationObserver=="function")return byObserver(MutationObserver);if(typeof WebKitMutationObserver=="function")return byObserver(WebKitMutationObserver)}return typeof setImmediate=="function"?function(cb){setImmediate(ensureCallable(cb))}:typeof setTimeout=="function"||typeof setTimeout=="object"?function(cb){setTimeout(ensureCallable(cb),0)}:null}()},24521:(__unused_webpack_module,__unused_webpack_exports,__webpack_require__)=>{var process=__webpack_require__(14224);/*! *****************************************************************************
|
55
|
+
}`;var result2=attempt(function(){return Function2(importsKeys,sourceURL+"return "+source).apply(undefined2,importsValues)});if(result2.source=source,isError(result2))throw result2;return result2}function toLower(value){return toString(value).toLowerCase()}function toUpper(value){return toString(value).toUpperCase()}function trim(string,chars,guard){if(string=toString(string),string&&(guard||chars===undefined2))return baseTrim(string);if(!string||!(chars=baseToString(chars)))return string;var strSymbols=stringToArray(string),chrSymbols=stringToArray(chars),start=charsStartIndex(strSymbols,chrSymbols),end=charsEndIndex(strSymbols,chrSymbols)+1;return castSlice(strSymbols,start,end).join("")}function trimEnd(string,chars,guard){if(string=toString(string),string&&(guard||chars===undefined2))return string.slice(0,trimmedEndIndex(string)+1);if(!string||!(chars=baseToString(chars)))return string;var strSymbols=stringToArray(string),end=charsEndIndex(strSymbols,stringToArray(chars))+1;return castSlice(strSymbols,0,end).join("")}function trimStart(string,chars,guard){if(string=toString(string),string&&(guard||chars===undefined2))return string.replace(reTrimStart,"");if(!string||!(chars=baseToString(chars)))return string;var strSymbols=stringToArray(string),start=charsStartIndex(strSymbols,stringToArray(chars));return castSlice(strSymbols,start).join("")}function truncate(string,options){var length=DEFAULT_TRUNC_LENGTH,omission=DEFAULT_TRUNC_OMISSION;if(isObject(options)){var separator="separator"in options?options.separator:separator;length="length"in options?toInteger(options.length):length,omission="omission"in options?baseToString(options.omission):omission}string=toString(string);var strLength=string.length;if(hasUnicode(string)){var strSymbols=stringToArray(string);strLength=strSymbols.length}if(length>=strLength)return string;var end=length-stringSize(omission);if(end<1)return omission;var result2=strSymbols?castSlice(strSymbols,0,end).join(""):string.slice(0,end);if(separator===undefined2)return result2+omission;if(strSymbols&&(end+=result2.length-end),isRegExp(separator)){if(string.slice(end).search(separator)){var match,substring=result2;for(separator.global||(separator=RegExp2(separator.source,toString(reFlags.exec(separator))+"g")),separator.lastIndex=0;match=separator.exec(substring);)var newEnd=match.index;result2=result2.slice(0,newEnd===undefined2?end:newEnd)}}else if(string.indexOf(baseToString(separator),end)!=end){var index=result2.lastIndexOf(separator);index>-1&&(result2=result2.slice(0,index))}return result2+omission}function unescape2(string){return string=toString(string),string&&reHasEscapedHtml.test(string)?string.replace(reEscapedHtml,unescapeHtmlChar):string}var upperCase=createCompounder(function(result2,word,index){return result2+(index?" ":"")+word.toUpperCase()}),upperFirst=createCaseFirst("toUpperCase");function words(string,pattern,guard){return string=toString(string),pattern=guard?undefined2:pattern,pattern===undefined2?hasUnicodeWord(string)?unicodeWords(string):asciiWords(string):string.match(pattern)||[]}var attempt=baseRest(function(func,args){try{return apply(func,undefined2,args)}catch(e){return isError(e)?e:new Error2(e)}}),bindAll=flatRest(function(object,methodNames){return arrayEach(methodNames,function(key){key=toKey(key),baseAssignValue(object,key,bind(object[key],object))}),object});function cond(pairs){var length=pairs==null?0:pairs.length,toIteratee=getIteratee();return pairs=length?arrayMap(pairs,function(pair){if(typeof pair[1]!="function")throw new TypeError2(FUNC_ERROR_TEXT);return[toIteratee(pair[0]),pair[1]]}):[],baseRest(function(args){for(var index=-1;++index<length;){var pair=pairs[index];if(apply(pair[0],this,args))return apply(pair[1],this,args)}})}function conforms(source){return baseConforms(baseClone(source,CLONE_DEEP_FLAG))}function constant(value){return function(){return value}}function defaultTo(value,defaultValue){return value==null||value!==value?defaultValue:value}var flow=createFlow(),flowRight=createFlow(!0);function identity(value){return value}function iteratee(func){return baseIteratee(typeof func=="function"?func:baseClone(func,CLONE_DEEP_FLAG))}function matches(source){return baseMatches(baseClone(source,CLONE_DEEP_FLAG))}function matchesProperty(path,srcValue){return baseMatchesProperty(path,baseClone(srcValue,CLONE_DEEP_FLAG))}var method=baseRest(function(path,args){return function(object){return baseInvoke(object,path,args)}}),methodOf=baseRest(function(object,args){return function(path){return baseInvoke(object,path,args)}});function mixin(object,source,options){var props=keys(source),methodNames=baseFunctions(source,props);options==null&&!(isObject(source)&&(methodNames.length||!props.length))&&(options=source,source=object,object=this,methodNames=baseFunctions(source,keys(source)));var chain2=!(isObject(options)&&"chain"in options)||!!options.chain,isFunc=isFunction(object);return arrayEach(methodNames,function(methodName){var func=source[methodName];object[methodName]=func,isFunc&&(object.prototype[methodName]=function(){var chainAll=this.__chain__;if(chain2||chainAll){var result2=object(this.__wrapped__),actions=result2.__actions__=copyArray(this.__actions__);return actions.push({func,args:arguments,thisArg:object}),result2.__chain__=chainAll,result2}return func.apply(object,arrayPush([this.value()],arguments))})}),object}function noConflict(){return root._===this&&(root._=oldDash),this}function noop(){}function nthArg(n){return n=toInteger(n),baseRest(function(args){return baseNth(args,n)})}var over=createOver(arrayMap),overEvery=createOver(arrayEvery),overSome=createOver(arraySome);function property(path){return isKey(path)?baseProperty(toKey(path)):basePropertyDeep(path)}function propertyOf(object){return function(path){return object==null?undefined2:baseGet(object,path)}}var range=createRange(),rangeRight=createRange(!0);function stubArray(){return[]}function stubFalse(){return!1}function stubObject(){return{}}function stubString(){return""}function stubTrue(){return!0}function times(n,iteratee2){if(n=toInteger(n),n<1||n>MAX_SAFE_INTEGER)return[];var index=MAX_ARRAY_LENGTH,length=nativeMin(n,MAX_ARRAY_LENGTH);iteratee2=getIteratee(iteratee2),n-=MAX_ARRAY_LENGTH;for(var result2=baseTimes(length,iteratee2);++index<n;)iteratee2(index);return result2}function toPath(value){return isArray(value)?arrayMap(value,toKey):isSymbol(value)?[value]:copyArray(stringToPath(toString(value)))}function uniqueId(prefix){var id=++idCounter;return toString(prefix)+id}var add=createMathOperation(function(augend,addend){return augend+addend},0),ceil=createRound("ceil"),divide=createMathOperation(function(dividend,divisor){return dividend/divisor},1),floor=createRound("floor");function max(array){return array&&array.length?baseExtremum(array,identity,baseGt):undefined2}function maxBy(array,iteratee2){return array&&array.length?baseExtremum(array,getIteratee(iteratee2,2),baseGt):undefined2}function mean(array){return baseMean(array,identity)}function meanBy(array,iteratee2){return baseMean(array,getIteratee(iteratee2,2))}function min(array){return array&&array.length?baseExtremum(array,identity,baseLt):undefined2}function minBy(array,iteratee2){return array&&array.length?baseExtremum(array,getIteratee(iteratee2,2),baseLt):undefined2}var multiply=createMathOperation(function(multiplier,multiplicand){return multiplier*multiplicand},1),round=createRound("round"),subtract=createMathOperation(function(minuend,subtrahend){return minuend-subtrahend},0);function sum(array){return array&&array.length?baseSum(array,identity):0}function sumBy(array,iteratee2){return array&&array.length?baseSum(array,getIteratee(iteratee2,2)):0}return lodash.after=after,lodash.ary=ary,lodash.assign=assign,lodash.assignIn=assignIn,lodash.assignInWith=assignInWith,lodash.assignWith=assignWith,lodash.at=at,lodash.before=before,lodash.bind=bind,lodash.bindAll=bindAll,lodash.bindKey=bindKey,lodash.castArray=castArray,lodash.chain=chain,lodash.chunk=chunk,lodash.compact=compact,lodash.concat=concat,lodash.cond=cond,lodash.conforms=conforms,lodash.constant=constant,lodash.countBy=countBy,lodash.create=create,lodash.curry=curry,lodash.curryRight=curryRight,lodash.debounce=debounce,lodash.defaults=defaults,lodash.defaultsDeep=defaultsDeep,lodash.defer=defer,lodash.delay=delay,lodash.difference=difference,lodash.differenceBy=differenceBy,lodash.differenceWith=differenceWith,lodash.drop=drop,lodash.dropRight=dropRight,lodash.dropRightWhile=dropRightWhile,lodash.dropWhile=dropWhile,lodash.fill=fill,lodash.filter=filter,lodash.flatMap=flatMap,lodash.flatMapDeep=flatMapDeep,lodash.flatMapDepth=flatMapDepth,lodash.flatten=flatten,lodash.flattenDeep=flattenDeep,lodash.flattenDepth=flattenDepth,lodash.flip=flip,lodash.flow=flow,lodash.flowRight=flowRight,lodash.fromPairs=fromPairs,lodash.functions=functions,lodash.functionsIn=functionsIn,lodash.groupBy=groupBy,lodash.initial=initial,lodash.intersection=intersection,lodash.intersectionBy=intersectionBy,lodash.intersectionWith=intersectionWith,lodash.invert=invert,lodash.invertBy=invertBy,lodash.invokeMap=invokeMap,lodash.iteratee=iteratee,lodash.keyBy=keyBy,lodash.keys=keys,lodash.keysIn=keysIn,lodash.map=map,lodash.mapKeys=mapKeys,lodash.mapValues=mapValues,lodash.matches=matches,lodash.matchesProperty=matchesProperty,lodash.memoize=memoize,lodash.merge=merge,lodash.mergeWith=mergeWith,lodash.method=method,lodash.methodOf=methodOf,lodash.mixin=mixin,lodash.negate=negate,lodash.nthArg=nthArg,lodash.omit=omit,lodash.omitBy=omitBy,lodash.once=once,lodash.orderBy=orderBy,lodash.over=over,lodash.overArgs=overArgs,lodash.overEvery=overEvery,lodash.overSome=overSome,lodash.partial=partial,lodash.partialRight=partialRight,lodash.partition=partition,lodash.pick=pick,lodash.pickBy=pickBy,lodash.property=property,lodash.propertyOf=propertyOf,lodash.pull=pull,lodash.pullAll=pullAll,lodash.pullAllBy=pullAllBy,lodash.pullAllWith=pullAllWith,lodash.pullAt=pullAt,lodash.range=range,lodash.rangeRight=rangeRight,lodash.rearg=rearg,lodash.reject=reject,lodash.remove=remove,lodash.rest=rest,lodash.reverse=reverse,lodash.sampleSize=sampleSize,lodash.set=set,lodash.setWith=setWith,lodash.shuffle=shuffle,lodash.slice=slice,lodash.sortBy=sortBy,lodash.sortedUniq=sortedUniq,lodash.sortedUniqBy=sortedUniqBy,lodash.split=split,lodash.spread=spread,lodash.tail=tail,lodash.take=take,lodash.takeRight=takeRight,lodash.takeRightWhile=takeRightWhile,lodash.takeWhile=takeWhile,lodash.tap=tap,lodash.throttle=throttle,lodash.thru=thru,lodash.toArray=toArray,lodash.toPairs=toPairs,lodash.toPairsIn=toPairsIn,lodash.toPath=toPath,lodash.toPlainObject=toPlainObject,lodash.transform=transform,lodash.unary=unary,lodash.union=union,lodash.unionBy=unionBy,lodash.unionWith=unionWith,lodash.uniq=uniq,lodash.uniqBy=uniqBy,lodash.uniqWith=uniqWith,lodash.unset=unset,lodash.unzip=unzip,lodash.unzipWith=unzipWith,lodash.update=update,lodash.updateWith=updateWith,lodash.values=values,lodash.valuesIn=valuesIn,lodash.without=without,lodash.words=words,lodash.wrap=wrap,lodash.xor=xor,lodash.xorBy=xorBy,lodash.xorWith=xorWith,lodash.zip=zip,lodash.zipObject=zipObject,lodash.zipObjectDeep=zipObjectDeep,lodash.zipWith=zipWith,lodash.entries=toPairs,lodash.entriesIn=toPairsIn,lodash.extend=assignIn,lodash.extendWith=assignInWith,mixin(lodash,lodash),lodash.add=add,lodash.attempt=attempt,lodash.camelCase=camelCase,lodash.capitalize=capitalize,lodash.ceil=ceil,lodash.clamp=clamp,lodash.clone=clone,lodash.cloneDeep=cloneDeep,lodash.cloneDeepWith=cloneDeepWith,lodash.cloneWith=cloneWith,lodash.conformsTo=conformsTo,lodash.deburr=deburr,lodash.defaultTo=defaultTo,lodash.divide=divide,lodash.endsWith=endsWith,lodash.eq=eq,lodash.escape=escape,lodash.escapeRegExp=escapeRegExp,lodash.every=every,lodash.find=find,lodash.findIndex=findIndex,lodash.findKey=findKey,lodash.findLast=findLast,lodash.findLastIndex=findLastIndex,lodash.findLastKey=findLastKey,lodash.floor=floor,lodash.forEach=forEach,lodash.forEachRight=forEachRight,lodash.forIn=forIn,lodash.forInRight=forInRight,lodash.forOwn=forOwn,lodash.forOwnRight=forOwnRight,lodash.get=get,lodash.gt=gt,lodash.gte=gte,lodash.has=has,lodash.hasIn=hasIn,lodash.head=head,lodash.identity=identity,lodash.includes=includes,lodash.indexOf=indexOf,lodash.inRange=inRange,lodash.invoke=invoke,lodash.isArguments=isArguments,lodash.isArray=isArray,lodash.isArrayBuffer=isArrayBuffer,lodash.isArrayLike=isArrayLike,lodash.isArrayLikeObject=isArrayLikeObject,lodash.isBoolean=isBoolean,lodash.isBuffer=isBuffer,lodash.isDate=isDate,lodash.isElement=isElement,lodash.isEmpty=isEmpty,lodash.isEqual=isEqual,lodash.isEqualWith=isEqualWith,lodash.isError=isError,lodash.isFinite=isFinite2,lodash.isFunction=isFunction,lodash.isInteger=isInteger,lodash.isLength=isLength,lodash.isMap=isMap,lodash.isMatch=isMatch,lodash.isMatchWith=isMatchWith,lodash.isNaN=isNaN2,lodash.isNative=isNative,lodash.isNil=isNil,lodash.isNull=isNull,lodash.isNumber=isNumber,lodash.isObject=isObject,lodash.isObjectLike=isObjectLike,lodash.isPlainObject=isPlainObject,lodash.isRegExp=isRegExp,lodash.isSafeInteger=isSafeInteger,lodash.isSet=isSet,lodash.isString=isString,lodash.isSymbol=isSymbol,lodash.isTypedArray=isTypedArray,lodash.isUndefined=isUndefined,lodash.isWeakMap=isWeakMap,lodash.isWeakSet=isWeakSet,lodash.join=join,lodash.kebabCase=kebabCase,lodash.last=last,lodash.lastIndexOf=lastIndexOf,lodash.lowerCase=lowerCase,lodash.lowerFirst=lowerFirst,lodash.lt=lt,lodash.lte=lte,lodash.max=max,lodash.maxBy=maxBy,lodash.mean=mean,lodash.meanBy=meanBy,lodash.min=min,lodash.minBy=minBy,lodash.stubArray=stubArray,lodash.stubFalse=stubFalse,lodash.stubObject=stubObject,lodash.stubString=stubString,lodash.stubTrue=stubTrue,lodash.multiply=multiply,lodash.nth=nth,lodash.noConflict=noConflict,lodash.noop=noop,lodash.now=now,lodash.pad=pad,lodash.padEnd=padEnd,lodash.padStart=padStart,lodash.parseInt=parseInt2,lodash.random=random,lodash.reduce=reduce,lodash.reduceRight=reduceRight,lodash.repeat=repeat,lodash.replace=replace,lodash.result=result,lodash.round=round,lodash.runInContext=runInContext2,lodash.sample=sample,lodash.size=size,lodash.snakeCase=snakeCase,lodash.some=some,lodash.sortedIndex=sortedIndex,lodash.sortedIndexBy=sortedIndexBy,lodash.sortedIndexOf=sortedIndexOf,lodash.sortedLastIndex=sortedLastIndex,lodash.sortedLastIndexBy=sortedLastIndexBy,lodash.sortedLastIndexOf=sortedLastIndexOf,lodash.startCase=startCase,lodash.startsWith=startsWith,lodash.subtract=subtract,lodash.sum=sum,lodash.sumBy=sumBy,lodash.template=template,lodash.times=times,lodash.toFinite=toFinite,lodash.toInteger=toInteger,lodash.toLength=toLength,lodash.toLower=toLower,lodash.toNumber=toNumber,lodash.toSafeInteger=toSafeInteger,lodash.toString=toString,lodash.toUpper=toUpper,lodash.trim=trim,lodash.trimEnd=trimEnd,lodash.trimStart=trimStart,lodash.truncate=truncate,lodash.unescape=unescape2,lodash.uniqueId=uniqueId,lodash.upperCase=upperCase,lodash.upperFirst=upperFirst,lodash.each=forEach,lodash.eachRight=forEachRight,lodash.first=head,mixin(lodash,function(){var source={};return baseForOwn(lodash,function(func,methodName){hasOwnProperty2.call(lodash.prototype,methodName)||(source[methodName]=func)}),source}(),{chain:!1}),lodash.VERSION=VERSION,arrayEach(["bind","bindKey","curry","curryRight","partial","partialRight"],function(methodName){lodash[methodName].placeholder=lodash}),arrayEach(["drop","take"],function(methodName,index){LazyWrapper.prototype[methodName]=function(n){n=n===undefined2?1:nativeMax(toInteger(n),0);var result2=this.__filtered__&&!index?new LazyWrapper(this):this.clone();return result2.__filtered__?result2.__takeCount__=nativeMin(n,result2.__takeCount__):result2.__views__.push({size:nativeMin(n,MAX_ARRAY_LENGTH),type:methodName+(result2.__dir__<0?"Right":"")}),result2},LazyWrapper.prototype[methodName+"Right"]=function(n){return this.reverse()[methodName](n).reverse()}}),arrayEach(["filter","map","takeWhile"],function(methodName,index){var type=index+1,isFilter=type==LAZY_FILTER_FLAG||type==LAZY_WHILE_FLAG;LazyWrapper.prototype[methodName]=function(iteratee2){var result2=this.clone();return result2.__iteratees__.push({iteratee:getIteratee(iteratee2,3),type}),result2.__filtered__=result2.__filtered__||isFilter,result2}}),arrayEach(["head","last"],function(methodName,index){var takeName="take"+(index?"Right":"");LazyWrapper.prototype[methodName]=function(){return this[takeName](1).value()[0]}}),arrayEach(["initial","tail"],function(methodName,index){var dropName="drop"+(index?"":"Right");LazyWrapper.prototype[methodName]=function(){return this.__filtered__?new LazyWrapper(this):this[dropName](1)}}),LazyWrapper.prototype.compact=function(){return this.filter(identity)},LazyWrapper.prototype.find=function(predicate){return this.filter(predicate).head()},LazyWrapper.prototype.findLast=function(predicate){return this.reverse().find(predicate)},LazyWrapper.prototype.invokeMap=baseRest(function(path,args){return typeof path=="function"?new LazyWrapper(this):this.map(function(value){return baseInvoke(value,path,args)})}),LazyWrapper.prototype.reject=function(predicate){return this.filter(negate(getIteratee(predicate)))},LazyWrapper.prototype.slice=function(start,end){start=toInteger(start);var result2=this;return result2.__filtered__&&(start>0||end<0)?new LazyWrapper(result2):(start<0?result2=result2.takeRight(-start):start&&(result2=result2.drop(start)),end!==undefined2&&(end=toInteger(end),result2=end<0?result2.dropRight(-end):result2.take(end-start)),result2)},LazyWrapper.prototype.takeRightWhile=function(predicate){return this.reverse().takeWhile(predicate).reverse()},LazyWrapper.prototype.toArray=function(){return this.take(MAX_ARRAY_LENGTH)},baseForOwn(LazyWrapper.prototype,function(func,methodName){var checkIteratee=/^(?:filter|find|map|reject)|While$/.test(methodName),isTaker=/^(?:head|last)$/.test(methodName),lodashFunc=lodash[isTaker?"take"+(methodName=="last"?"Right":""):methodName],retUnwrapped=isTaker||/^find/.test(methodName);!lodashFunc||(lodash.prototype[methodName]=function(){var value=this.__wrapped__,args=isTaker?[1]:arguments,isLazy=value instanceof LazyWrapper,iteratee2=args[0],useLazy=isLazy||isArray(value),interceptor=function(value2){var result3=lodashFunc.apply(lodash,arrayPush([value2],args));return isTaker&&chainAll?result3[0]:result3};useLazy&&checkIteratee&&typeof iteratee2=="function"&&iteratee2.length!=1&&(isLazy=useLazy=!1);var chainAll=this.__chain__,isHybrid=!!this.__actions__.length,isUnwrapped=retUnwrapped&&!chainAll,onlyLazy=isLazy&&!isHybrid;if(!retUnwrapped&&useLazy){value=onlyLazy?value:new LazyWrapper(this);var result2=func.apply(value,args);return result2.__actions__.push({func:thru,args:[interceptor],thisArg:undefined2}),new LodashWrapper(result2,chainAll)}return isUnwrapped&&onlyLazy?func.apply(this,args):(result2=this.thru(interceptor),isUnwrapped?isTaker?result2.value()[0]:result2.value():result2)})}),arrayEach(["pop","push","shift","sort","splice","unshift"],function(methodName){var func=arrayProto[methodName],chainName=/^(?:push|sort|unshift)$/.test(methodName)?"tap":"thru",retUnwrapped=/^(?:pop|shift)$/.test(methodName);lodash.prototype[methodName]=function(){var args=arguments;if(retUnwrapped&&!this.__chain__){var value=this.value();return func.apply(isArray(value)?value:[],args)}return this[chainName](function(value2){return func.apply(isArray(value2)?value2:[],args)})}}),baseForOwn(LazyWrapper.prototype,function(func,methodName){var lodashFunc=lodash[methodName];if(lodashFunc){var key=lodashFunc.name+"";hasOwnProperty2.call(realNames,key)||(realNames[key]=[]),realNames[key].push({name:methodName,func:lodashFunc})}}),realNames[createHybrid(undefined2,WRAP_BIND_KEY_FLAG).name]=[{name:"wrapper",func:undefined2}],LazyWrapper.prototype.clone=lazyClone,LazyWrapper.prototype.reverse=lazyReverse,LazyWrapper.prototype.value=lazyValue,lodash.prototype.at=wrapperAt,lodash.prototype.chain=wrapperChain,lodash.prototype.commit=wrapperCommit,lodash.prototype.next=wrapperNext,lodash.prototype.plant=wrapperPlant,lodash.prototype.reverse=wrapperReverse,lodash.prototype.toJSON=lodash.prototype.valueOf=lodash.prototype.value=wrapperValue,lodash.prototype.first=lodash.prototype.head,symIterator&&(lodash.prototype[symIterator]=wrapperToIterator),lodash},_=runInContext();root._=_,__WEBPACK_AMD_DEFINE_RESULT__=function(){return _}.call(exports,__webpack_require__,exports,module),__WEBPACK_AMD_DEFINE_RESULT__!==undefined2&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)}).call(this)},41864:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";const Yallist=__webpack_require__(15766),MAX=Symbol("max"),LENGTH=Symbol("length"),LENGTH_CALCULATOR=Symbol("lengthCalculator"),ALLOW_STALE=Symbol("allowStale"),MAX_AGE=Symbol("maxAge"),DISPOSE=Symbol("dispose"),NO_DISPOSE_ON_SET=Symbol("noDisposeOnSet"),LRU_LIST=Symbol("lruList"),CACHE=Symbol("cache"),UPDATE_AGE_ON_GET=Symbol("updateAgeOnGet"),naiveLength=()=>1;class LRUCache{constructor(options){if(typeof options=="number"&&(options={max:options}),options||(options={}),options.max&&(typeof options.max!="number"||options.max<0))throw new TypeError("max must be a non-negative number");const max=this[MAX]=options.max||1/0,lc=options.length||naiveLength;if(this[LENGTH_CALCULATOR]=typeof lc!="function"?naiveLength:lc,this[ALLOW_STALE]=options.stale||!1,options.maxAge&&typeof options.maxAge!="number")throw new TypeError("maxAge must be a number");this[MAX_AGE]=options.maxAge||0,this[DISPOSE]=options.dispose,this[NO_DISPOSE_ON_SET]=options.noDisposeOnSet||!1,this[UPDATE_AGE_ON_GET]=options.updateAgeOnGet||!1,this.reset()}set max(mL){if(typeof mL!="number"||mL<0)throw new TypeError("max must be a non-negative number");this[MAX]=mL||1/0,trim(this)}get max(){return this[MAX]}set allowStale(allowStale){this[ALLOW_STALE]=!!allowStale}get allowStale(){return this[ALLOW_STALE]}set maxAge(mA){if(typeof mA!="number")throw new TypeError("maxAge must be a non-negative number");this[MAX_AGE]=mA,trim(this)}get maxAge(){return this[MAX_AGE]}set lengthCalculator(lC){typeof lC!="function"&&(lC=naiveLength),lC!==this[LENGTH_CALCULATOR]&&(this[LENGTH_CALCULATOR]=lC,this[LENGTH]=0,this[LRU_LIST].forEach(hit=>{hit.length=this[LENGTH_CALCULATOR](hit.value,hit.key),this[LENGTH]+=hit.length})),trim(this)}get lengthCalculator(){return this[LENGTH_CALCULATOR]}get length(){return this[LENGTH]}get itemCount(){return this[LRU_LIST].length}rforEach(fn,thisp){thisp=thisp||this;for(let walker=this[LRU_LIST].tail;walker!==null;){const prev=walker.prev;forEachStep(this,fn,walker,thisp),walker=prev}}forEach(fn,thisp){thisp=thisp||this;for(let walker=this[LRU_LIST].head;walker!==null;){const next=walker.next;forEachStep(this,fn,walker,thisp),walker=next}}keys(){return this[LRU_LIST].toArray().map(k=>k.key)}values(){return this[LRU_LIST].toArray().map(k=>k.value)}reset(){this[DISPOSE]&&this[LRU_LIST]&&this[LRU_LIST].length&&this[LRU_LIST].forEach(hit=>this[DISPOSE](hit.key,hit.value)),this[CACHE]=new Map,this[LRU_LIST]=new Yallist,this[LENGTH]=0}dump(){return this[LRU_LIST].map(hit=>isStale(this,hit)?!1:{k:hit.key,v:hit.value,e:hit.now+(hit.maxAge||0)}).toArray().filter(h=>h)}dumpLru(){return this[LRU_LIST]}set(key,value,maxAge){if(maxAge=maxAge||this[MAX_AGE],maxAge&&typeof maxAge!="number")throw new TypeError("maxAge must be a number");const now=maxAge?Date.now():0,len=this[LENGTH_CALCULATOR](value,key);if(this[CACHE].has(key)){if(len>this[MAX])return del(this,this[CACHE].get(key)),!1;const item=this[CACHE].get(key).value;return this[DISPOSE]&&(this[NO_DISPOSE_ON_SET]||this[DISPOSE](key,item.value)),item.now=now,item.maxAge=maxAge,item.value=value,this[LENGTH]+=len-item.length,item.length=len,this.get(key),trim(this),!0}const hit=new Entry(key,value,len,now,maxAge);return hit.length>this[MAX]?(this[DISPOSE]&&this[DISPOSE](key,value),!1):(this[LENGTH]+=hit.length,this[LRU_LIST].unshift(hit),this[CACHE].set(key,this[LRU_LIST].head),trim(this),!0)}has(key){if(!this[CACHE].has(key))return!1;const hit=this[CACHE].get(key).value;return!isStale(this,hit)}get(key){return get(this,key,!0)}peek(key){return get(this,key,!1)}pop(){const node=this[LRU_LIST].tail;return node?(del(this,node),node.value):null}del(key){del(this,this[CACHE].get(key))}load(arr){this.reset();const now=Date.now();for(let l=arr.length-1;l>=0;l--){const hit=arr[l],expiresAt=hit.e||0;if(expiresAt===0)this.set(hit.k,hit.v);else{const maxAge=expiresAt-now;maxAge>0&&this.set(hit.k,hit.v,maxAge)}}}prune(){this[CACHE].forEach((value,key)=>get(this,key,!1))}}const get=(self2,key,doUse)=>{const node=self2[CACHE].get(key);if(node){const hit=node.value;if(isStale(self2,hit)){if(del(self2,node),!self2[ALLOW_STALE])return}else doUse&&(self2[UPDATE_AGE_ON_GET]&&(node.value.now=Date.now()),self2[LRU_LIST].unshiftNode(node));return hit.value}},isStale=(self2,hit)=>{if(!hit||!hit.maxAge&&!self2[MAX_AGE])return!1;const diff=Date.now()-hit.now;return hit.maxAge?diff>hit.maxAge:self2[MAX_AGE]&&diff>self2[MAX_AGE]},trim=self2=>{if(self2[LENGTH]>self2[MAX])for(let walker=self2[LRU_LIST].tail;self2[LENGTH]>self2[MAX]&&walker!==null;){const prev=walker.prev;del(self2,walker),walker=prev}},del=(self2,node)=>{if(node){const hit=node.value;self2[DISPOSE]&&self2[DISPOSE](hit.key,hit.value),self2[LENGTH]-=hit.length,self2[CACHE].delete(hit.key),self2[LRU_LIST].removeNode(node)}};class Entry{constructor(key,value,length,now,maxAge){this.key=key,this.value=value,this.length=length,this.now=now,this.maxAge=maxAge||0}}const forEachStep=(self2,fn,node,thisp)=>{let hit=node.value;isStale(self2,hit)&&(del(self2,node),self2[ALLOW_STALE]||(hit=void 0)),hit&&fn.call(thisp,hit.value,hit.key,self2)};module.exports=LRUCache},52903:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var toPosInt=__webpack_require__(45031),create=Object.create,hasOwnProperty2=Object.prototype.hasOwnProperty;module.exports=function(limit){var size=0,base=1,queue=create(null),map=create(null),index=0,del;return limit=toPosInt(limit),{hit:function(id){var oldIndex=map[id],nuIndex=++index;if(queue[nuIndex]=id,map[id]=nuIndex,!oldIndex)return++size,size<=limit?void 0:(id=queue[base],del(id),id);if(delete queue[oldIndex],base===oldIndex)for(;!hasOwnProperty2.call(queue,++base););},delete:del=function(id){var oldIndex=map[id];if(!!oldIndex&&(delete queue[oldIndex],delete map[id],--size,base===oldIndex)){if(!size){index=0,base=1;return}for(;!hasOwnProperty2.call(queue,++base););}},clear:function(){size=0,base=1,queue=create(null),map=create(null),index=0}}}},52257:(__unused_webpack_module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var aFrom=__webpack_require__(15373),objectMap=__webpack_require__(41601),mixin=__webpack_require__(15747),defineLength=__webpack_require__(61568),nextTick=__webpack_require__(68436),slice=Array.prototype.slice,apply=Function.prototype.apply,create=Object.create;__webpack_require__(18272).async=function(tbi,conf){var waiting=create(null),cache=create(null),base=conf.memoized,original=conf.original,currentCallback,currentContext,currentArgs;conf.memoized=defineLength(function(arg){var args=arguments,last=args[args.length-1];return typeof last=="function"&&(currentCallback=last,args=slice.call(args,0,-1)),base.apply(currentContext=this,currentArgs=args)},base);try{mixin(conf.memoized,base)}catch{}conf.on("get",function(id){var cb,context,args;if(!!currentCallback){if(waiting[id]){typeof waiting[id]=="function"?waiting[id]=[waiting[id],currentCallback]:waiting[id].push(currentCallback),currentCallback=null;return}cb=currentCallback,context=currentContext,args=currentArgs,currentCallback=currentContext=currentArgs=null,nextTick(function(){var data;hasOwnProperty.call(cache,id)?(data=cache[id],conf.emit("getasync",id,args,context),apply.call(cb,data.context,data.args)):(currentCallback=cb,currentContext=context,currentArgs=args,base.apply(context,args))})}}),conf.original=function(){var args,cb,origCb,result;return currentCallback?(args=aFrom(arguments),cb=function self2(err){var cb2,args2,id=self2.id;if(id==null){nextTick(apply.bind(self2,this,arguments));return}if(delete self2.id,cb2=waiting[id],delete waiting[id],!!cb2)return args2=aFrom(arguments),conf.has(id)&&(err?conf.delete(id):(cache[id]={context:this,args:args2},conf.emit("setasync",id,typeof cb2=="function"?1:cb2.length))),typeof cb2=="function"?result=apply.call(cb2,this,args2):cb2.forEach(function(cb3){result=apply.call(cb3,this,args2)},this),result},origCb=currentCallback,currentCallback=currentContext=currentArgs=null,args.push(cb),result=apply.call(original,this,args),cb.cb=origCb,currentCallback=cb,result):apply.call(original,this,arguments)},conf.on("set",function(id){if(!currentCallback){conf.delete(id);return}waiting[id]?typeof waiting[id]=="function"?waiting[id]=[waiting[id],currentCallback.cb]:waiting[id].push(currentCallback.cb):waiting[id]=currentCallback.cb,delete currentCallback.cb,currentCallback.id=id,currentCallback=null}),conf.on("delete",function(id){var result;hasOwnProperty.call(waiting,id)||!cache[id]||(result=cache[id],delete cache[id],conf.emit("deleteasync",id,slice.call(result.args,1)))}),conf.on("clear",function(){var oldCache=cache;cache=create(null),conf.emit("clearasync",objectMap(oldCache,function(data){return slice.call(data.args,1)}))})}},73463:(__unused_webpack_module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var callable=__webpack_require__(18050),forEach=__webpack_require__(69890),extensions=__webpack_require__(18272),apply=Function.prototype.apply;extensions.dispose=function(dispose,conf,options){var del;if(callable(dispose),options.async&&extensions.async||options.promise&&extensions.promise){conf.on("deleteasync",del=function(id,resultArray){apply.call(dispose,null,resultArray)}),conf.on("clearasync",function(cache){forEach(cache,function(result,id){del(id,result)})});return}conf.on("delete",del=function(id,result){dispose(result)}),conf.on("clear",function(cache){forEach(cache,function(result,id){del(id,result)})})}},31745:(__unused_webpack_module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var aFrom=__webpack_require__(15373),forEach=__webpack_require__(69890),nextTick=__webpack_require__(68436),isPromise=__webpack_require__(65844),timeout=__webpack_require__(76105),extensions=__webpack_require__(18272),noop=Function.prototype,max=Math.max,min=Math.min,create=Object.create;extensions.maxAge=function(maxAge,conf,options){var timeouts,postfix,preFetchAge,preFetchTimeouts;maxAge=timeout(maxAge),maxAge&&(timeouts=create(null),postfix=options.async&&extensions.async||options.promise&&extensions.promise?"async":"",conf.on("set"+postfix,function(id){timeouts[id]=setTimeout(function(){conf.delete(id)},maxAge),typeof timeouts[id].unref=="function"&&timeouts[id].unref(),preFetchTimeouts&&(preFetchTimeouts[id]&&preFetchTimeouts[id]!=="nextTick"&&clearTimeout(preFetchTimeouts[id]),preFetchTimeouts[id]=setTimeout(function(){delete preFetchTimeouts[id]},preFetchAge),typeof preFetchTimeouts[id].unref=="function"&&preFetchTimeouts[id].unref())}),conf.on("delete"+postfix,function(id){clearTimeout(timeouts[id]),delete timeouts[id],preFetchTimeouts&&(preFetchTimeouts[id]!=="nextTick"&&clearTimeout(preFetchTimeouts[id]),delete preFetchTimeouts[id])}),options.preFetch&&(options.preFetch===!0||isNaN(options.preFetch)?preFetchAge=.333:preFetchAge=max(min(Number(options.preFetch),1),0),preFetchAge&&(preFetchTimeouts={},preFetchAge=(1-preFetchAge)*maxAge,conf.on("get"+postfix,function(id,args,context){preFetchTimeouts[id]||(preFetchTimeouts[id]="nextTick",nextTick(function(){var result;preFetchTimeouts[id]==="nextTick"&&(delete preFetchTimeouts[id],conf.delete(id),options.async&&(args=aFrom(args),args.push(noop)),result=conf.memoized.apply(context,args),options.promise&&isPromise(result)&&(typeof result.done=="function"?result.done(noop,noop):result.then(noop,noop)))}))}))),conf.on("clear"+postfix,function(){forEach(timeouts,function(id){clearTimeout(id)}),timeouts={},preFetchTimeouts&&(forEach(preFetchTimeouts,function(id){id!=="nextTick"&&clearTimeout(id)}),preFetchTimeouts={})}))}},70645:(__unused_webpack_module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var toPosInteger=__webpack_require__(45031),lruQueue=__webpack_require__(52903),extensions=__webpack_require__(18272);extensions.max=function(max,conf,options){var postfix,queue,hit;max=toPosInteger(max),max&&(queue=lruQueue(max),postfix=options.async&&extensions.async||options.promise&&extensions.promise?"async":"",conf.on("set"+postfix,hit=function(id){id=queue.hit(id),id!==void 0&&conf.delete(id)}),conf.on("get"+postfix,hit),conf.on("delete"+postfix,queue.delete),conf.on("clear"+postfix,queue.clear))}},39976:(__unused_webpack_module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var objectMap=__webpack_require__(41601),primitiveSet=__webpack_require__(85127),ensureString=__webpack_require__(51002),toShortString=__webpack_require__(56338),isPromise=__webpack_require__(65844),nextTick=__webpack_require__(68436),create=Object.create,supportedModes=primitiveSet("then","then:finally","done","done:finally");__webpack_require__(18272).promise=function(mode,conf){var waiting=create(null),cache=create(null),promises=create(null);if(mode===!0)mode=null;else if(mode=ensureString(mode),!supportedModes[mode])throw new TypeError("'"+toShortString(mode)+"' is not valid promise mode");conf.on("set",function(id,ignore,promise){var isFailed=!1;if(!isPromise(promise)){cache[id]=promise,conf.emit("setasync",id,1);return}waiting[id]=1,promises[id]=promise;var onSuccess=function(result){var count=waiting[id];if(isFailed)throw new Error(`Memoizee error: Detected unordered then|done & finally resolution, which in turn makes proper detection of success/failure impossible (when in 'done:finally' mode)
|
56
|
+
Consider to rely on 'then' or 'done' mode instead.`);!count||(delete waiting[id],cache[id]=result,conf.emit("setasync",id,count))},onFailure=function(){isFailed=!0,waiting[id]&&(delete waiting[id],delete promises[id],conf.delete(id))},resolvedMode=mode;if(resolvedMode||(resolvedMode="then"),resolvedMode==="then"){var nextTickFailure=function(){nextTick(onFailure)};promise=promise.then(function(result){nextTick(onSuccess.bind(this,result))},nextTickFailure),typeof promise.finally=="function"&&promise.finally(nextTickFailure)}else if(resolvedMode==="done"){if(typeof promise.done!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'done' in 'done' mode");promise.done(onSuccess,onFailure)}else if(resolvedMode==="done:finally"){if(typeof promise.done!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'done' in 'done:finally' mode");if(typeof promise.finally!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'finally' in 'done:finally' mode");promise.done(onSuccess),promise.finally(onFailure)}}),conf.on("get",function(id,args,context){var promise;if(waiting[id]){++waiting[id];return}promise=promises[id];var emit=function(){conf.emit("getasync",id,args,context)};isPromise(promise)?typeof promise.done=="function"?promise.done(emit):promise.then(function(){nextTick(emit)}):emit()}),conf.on("delete",function(id){if(delete promises[id],waiting[id]){delete waiting[id];return}if(!!hasOwnProperty.call(cache,id)){var result=cache[id];delete cache[id],conf.emit("deleteasync",id,[result])}}),conf.on("clear",function(){var oldCache=cache;cache=create(null),waiting=create(null),promises=create(null),conf.emit("clearasync",objectMap(oldCache,function(data){return[data]}))})}},12920:(__unused_webpack_module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var d=__webpack_require__(26708),extensions=__webpack_require__(18272),create=Object.create,defineProperties=Object.defineProperties;extensions.refCounter=function(ignore,conf,options){var cache,postfix;cache=create(null),postfix=options.async&&extensions.async||options.promise&&extensions.promise?"async":"",conf.on("set"+postfix,function(id,length){cache[id]=length||1}),conf.on("get"+postfix,function(id){++cache[id]}),conf.on("delete"+postfix,function(id){delete cache[id]}),conf.on("clear"+postfix,function(){cache={}}),defineProperties(conf.memoized,{deleteRef:d(function(){var id=conf.get(arguments);return id===null||!cache[id]?null:--cache[id]?!1:(conf.delete(id),!0)}),getRefCount:d(function(){var id=conf.get(arguments);return id===null||!cache[id]?0:cache[id]})})}},96265:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var normalizeOpts=__webpack_require__(82453),resolveLength=__webpack_require__(20190),plain=__webpack_require__(66363);module.exports=function(fn){var options=normalizeOpts(arguments[1]),length;return options.normalizer||(length=options.length=resolveLength(options.length,fn.length,options.async),length!==0&&(options.primitive?length===!1?options.normalizer=__webpack_require__(78264):length>1&&(options.normalizer=__webpack_require__(84009)(length)):length===!1?options.normalizer=__webpack_require__(53578)():length===1?options.normalizer=__webpack_require__(47910)():options.normalizer=__webpack_require__(68353)(length))),options.async&&__webpack_require__(52257),options.promise&&__webpack_require__(39976),options.dispose&&__webpack_require__(73463),options.maxAge&&__webpack_require__(31745),options.max&&__webpack_require__(70645),options.refCounter&&__webpack_require__(12920),plain(fn,options)}},18912:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var customError=__webpack_require__(85231),defineLength=__webpack_require__(61568),d=__webpack_require__(26708),ee=__webpack_require__(40867).methods,resolveResolve=__webpack_require__(73896),resolveNormalize=__webpack_require__(14269),apply=Function.prototype.apply,call=Function.prototype.call,create=Object.create,defineProperties=Object.defineProperties,on=ee.on,emit=ee.emit;module.exports=function(original,length,options){var cache=create(null),conf,memLength,get,set,del,clear,extDel,extGet,extHas,normalizer,getListeners,setListeners,deleteListeners,memoized,resolve;return length!==!1?memLength=length:isNaN(original.length)?memLength=1:memLength=original.length,options.normalizer&&(normalizer=resolveNormalize(options.normalizer),get=normalizer.get,set=normalizer.set,del=normalizer.delete,clear=normalizer.clear),options.resolvers!=null&&(resolve=resolveResolve(options.resolvers)),get?memoized=defineLength(function(arg){var id,result,args=arguments;if(resolve&&(args=resolve(args)),id=get(args),id!==null&&hasOwnProperty.call(cache,id))return getListeners&&conf.emit("get",id,args,this),cache[id];if(args.length===1?result=call.call(original,this,args[0]):result=apply.call(original,this,args),id===null){if(id=get(args),id!==null)throw customError("Circular invocation","CIRCULAR_INVOCATION");id=set(args)}else if(hasOwnProperty.call(cache,id))throw customError("Circular invocation","CIRCULAR_INVOCATION");return cache[id]=result,setListeners&&conf.emit("set",id,null,result),result},memLength):length===0?memoized=function(){var result;if(hasOwnProperty.call(cache,"data"))return getListeners&&conf.emit("get","data",arguments,this),cache.data;if(arguments.length?result=apply.call(original,this,arguments):result=call.call(original,this),hasOwnProperty.call(cache,"data"))throw customError("Circular invocation","CIRCULAR_INVOCATION");return cache.data=result,setListeners&&conf.emit("set","data",null,result),result}:memoized=function(arg){var result,args=arguments,id;if(resolve&&(args=resolve(arguments)),id=String(args[0]),hasOwnProperty.call(cache,id))return getListeners&&conf.emit("get",id,args,this),cache[id];if(args.length===1?result=call.call(original,this,args[0]):result=apply.call(original,this,args),hasOwnProperty.call(cache,id))throw customError("Circular invocation","CIRCULAR_INVOCATION");return cache[id]=result,setListeners&&conf.emit("set",id,null,result),result},conf={original,memoized,profileName:options.profileName,get:function(args){return resolve&&(args=resolve(args)),get?get(args):String(args[0])},has:function(id){return hasOwnProperty.call(cache,id)},delete:function(id){var result;!hasOwnProperty.call(cache,id)||(del&&del(id),result=cache[id],delete cache[id],deleteListeners&&conf.emit("delete",id,result))},clear:function(){var oldCache=cache;clear&&clear(),cache=create(null),conf.emit("clear",oldCache)},on:function(type,listener){return type==="get"?getListeners=!0:type==="set"?setListeners=!0:type==="delete"&&(deleteListeners=!0),on.call(this,type,listener)},emit,updateEnv:function(){original=conf.original}},get?extDel=defineLength(function(arg){var id,args=arguments;resolve&&(args=resolve(args)),id=get(args),id!==null&&conf.delete(id)},memLength):length===0?extDel=function(){return conf.delete("data")}:extDel=function(arg){return resolve&&(arg=resolve(arguments)[0]),conf.delete(arg)},extGet=defineLength(function(){var id,args=arguments;return length===0?cache.data:(resolve&&(args=resolve(args)),get?id=get(args):id=String(args[0]),cache[id])}),extHas=defineLength(function(){var id,args=arguments;return length===0?conf.has("data"):(resolve&&(args=resolve(args)),get?id=get(args):id=String(args[0]),id===null?!1:conf.has(id))}),defineProperties(memoized,{__memoized__:d(!0),delete:d(extDel),clear:d(conf.clear),_get:d(extGet),_has:d(extHas)}),conf}},18272:()=>{"use strict"},20190:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var toPosInt=__webpack_require__(45031);module.exports=function(optsLength,fnLength,isAsync){var length;return isNaN(optsLength)?(length=fnLength,length>=0?isAsync&&length?length-1:length:1):optsLength===!1?!1:toPosInt(optsLength)}},14269:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var callable=__webpack_require__(18050);module.exports=function(userNormalizer){var normalizer;return typeof userNormalizer=="function"?{set:userNormalizer,get:userNormalizer}:(normalizer={get:callable(userNormalizer.get)},userNormalizer.set!==void 0?(normalizer.set=callable(userNormalizer.set),userNormalizer.delete&&(normalizer.delete=callable(userNormalizer.delete)),userNormalizer.clear&&(normalizer.clear=callable(userNormalizer.clear)),normalizer):(normalizer.set=normalizer.get,normalizer))}},73896:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var toArray=__webpack_require__(87761),isValue=__webpack_require__(11029),callable=__webpack_require__(18050),slice=Array.prototype.slice,resolveArgs;resolveArgs=function(args){return this.map(function(resolve,i){return resolve?resolve(args[i]):args[i]}).concat(slice.call(args,this.length))},module.exports=function(resolvers){return resolvers=toArray(resolvers),resolvers.forEach(function(resolve){isValue(resolve)&&callable(resolve)}),resolveArgs.bind(resolvers)}},47910:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var indexOf=__webpack_require__(98120);module.exports=function(){var lastId=0,argsMap=[],cache=[];return{get:function(args){var index=indexOf.call(argsMap,args[0]);return index===-1?null:cache[index]},set:function(args){return argsMap.push(args[0]),cache.push(++lastId),lastId},delete:function(id){var index=indexOf.call(cache,id);index!==-1&&(argsMap.splice(index,1),cache.splice(index,1))},clear:function(){argsMap=[],cache=[]}}}},68353:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var indexOf=__webpack_require__(98120),create=Object.create;module.exports=function(length){var lastId=0,map=[[],[]],cache=create(null);return{get:function(args){for(var index=0,set=map,i;index<length-1;){if(i=indexOf.call(set[0],args[index]),i===-1)return null;set=set[1][i],++index}return i=indexOf.call(set[0],args[index]),i===-1?null:set[1][i]||null},set:function(args){for(var index=0,set=map,i;index<length-1;)i=indexOf.call(set[0],args[index]),i===-1&&(i=set[0].push(args[index])-1,set[1].push([[],[]])),set=set[1][i],++index;return i=indexOf.call(set[0],args[index]),i===-1&&(i=set[0].push(args[index])-1),set[1][i]=++lastId,cache[lastId]=args,lastId},delete:function(id){for(var index=0,set=map,i,path=[],args=cache[id];index<length-1;){if(i=indexOf.call(set[0],args[index]),i===-1)return;path.push(set,i),set=set[1][i],++index}if(i=indexOf.call(set[0],args[index]),i!==-1){for(id=set[1][i],set[0].splice(i,1),set[1].splice(i,1);!set[0].length&&path.length;)i=path.pop(),set=path.pop(),set[0].splice(i,1),set[1].splice(i,1);delete cache[id]}},clear:function(){map=[[],[]],cache=create(null)}}}},84009:module=>{"use strict";module.exports=function(length){return length?function(args){for(var id=String(args[0]),i=0,currentLength=length;--currentLength;)id+=""+args[++i];return id}:function(){return""}}},53578:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var indexOf=__webpack_require__(98120),create=Object.create;module.exports=function(){var lastId=0,map=[],cache=create(null);return{get:function(args){var index=0,set=map,i,length=args.length;if(length===0)return set[length]||null;if(set=set[length]){for(;index<length-1;){if(i=indexOf.call(set[0],args[index]),i===-1)return null;set=set[1][i],++index}return i=indexOf.call(set[0],args[index]),i===-1?null:set[1][i]||null}return null},set:function(args){var index=0,set=map,i,length=args.length;if(length===0)set[length]=++lastId;else{for(set[length]||(set[length]=[[],[]]),set=set[length];index<length-1;)i=indexOf.call(set[0],args[index]),i===-1&&(i=set[0].push(args[index])-1,set[1].push([[],[]])),set=set[1][i],++index;i=indexOf.call(set[0],args[index]),i===-1&&(i=set[0].push(args[index])-1),set[1][i]=++lastId}return cache[lastId]=args,lastId},delete:function(id){var index=0,set=map,i,args=cache[id],length=args.length,path=[];if(length===0)delete set[length];else if(set=set[length]){for(;index<length-1;){if(i=indexOf.call(set[0],args[index]),i===-1)return;path.push(set,i),set=set[1][i],++index}if(i=indexOf.call(set[0],args[index]),i===-1)return;for(id=set[1][i],set[0].splice(i,1),set[1].splice(i,1);!set[0].length&&path.length;)i=path.pop(),set=path.pop(),set[0].splice(i,1),set[1].splice(i,1)}delete cache[id]},clear:function(){map=[],cache=create(null)}}}},78264:module=>{"use strict";module.exports=function(args){var id,i,length=args.length;if(!length)return"";for(id=String(args[i=0]);--length;)id+=""+args[++i];return id}},66363:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var callable=__webpack_require__(18050),forEach=__webpack_require__(69890),extensions=__webpack_require__(18272),configure=__webpack_require__(18912),resolveLength=__webpack_require__(20190);module.exports=function self2(fn){var options,length,conf;if(callable(fn),options=Object(arguments[1]),options.async&&options.promise)throw new Error("Options 'async' and 'promise' cannot be used together");return hasOwnProperty.call(fn,"__memoized__")&&!options.force?fn:(length=resolveLength(options.length,fn.length,options.async&&extensions.async),conf=configure(fn,length,options),forEach(extensions,function(extFn,name){options[name]&&extFn(options[name],conf,options)}),self2.__profiler__&&self2.__profiler__(conf),conf.updateEnv(),conf.memoized)}},68436:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var process=__webpack_require__(14224),ensureCallable=function(fn){if(typeof fn!="function")throw new TypeError(fn+" is not a function");return fn},byObserver=function(Observer){var node=document.createTextNode(""),queue,currentQueue,i=0;return new Observer(function(){var callback;if(queue)currentQueue&&(queue=currentQueue.concat(queue));else{if(!currentQueue)return;queue=currentQueue}if(currentQueue=queue,queue=null,typeof currentQueue=="function"){callback=currentQueue,currentQueue=null,callback();return}for(node.data=i=++i%2;currentQueue;)callback=currentQueue.shift(),currentQueue.length||(currentQueue=null),callback()}).observe(node,{characterData:!0}),function(fn){if(ensureCallable(fn),queue){typeof queue=="function"?queue=[queue,fn]:queue.push(fn);return}queue=fn,node.data=i=++i%2}};module.exports=function(){if(typeof process=="object"&&process&&typeof process.nextTick=="function")return process.nextTick;if(typeof queueMicrotask=="function")return function(cb){queueMicrotask(ensureCallable(cb))};if(typeof document=="object"&&document){if(typeof MutationObserver=="function")return byObserver(MutationObserver);if(typeof WebKitMutationObserver=="function")return byObserver(WebKitMutationObserver)}return typeof setImmediate=="function"?function(cb){setImmediate(ensureCallable(cb))}:typeof setTimeout=="function"||typeof setTimeout=="object"?function(cb){setTimeout(ensureCallable(cb),0)}:null}()},93880:(__unused_webpack_module,__unused_webpack_exports,__webpack_require__)=>{var process=__webpack_require__(14224);/*! *****************************************************************************
|
57
57
|
Copyright (C) Microsoft. All rights reserved.
|
58
58
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
59
59
|
this file except in compliance with the License. You may obtain a copy of the
|
@@ -66,14 +66,14 @@ MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
66
66
|
|
67
67
|
See the Apache Version 2.0 License for specific language governing permissions
|
68
68
|
and limitations under the License.
|
69
|
-
***************************************************************************** */var Reflect2;(function(Reflect3){(function(factory){var root=typeof __webpack_require__.g=="object"?__webpack_require__.g:typeof self=="object"?self:typeof this=="object"?this:Function("return this;")(),exporter=makeExporter(Reflect3);typeof root.Reflect>"u"?root.Reflect=Reflect3:exporter=makeExporter(root.Reflect,exporter),factory(exporter);function makeExporter(target,previous){return function(key,value){typeof target[key]!="function"&&Object.defineProperty(target,key,{configurable:!0,writable:!0,value}),previous&&previous(key,value)}}})(function(exporter){var hasOwn=Object.prototype.hasOwnProperty,supportsSymbol=typeof Symbol=="function",toPrimitiveSymbol=supportsSymbol&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",iteratorSymbol=supportsSymbol&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",supportsCreate=typeof Object.create=="function",supportsProto={__proto__:[]}instanceof Array,downLevel=!supportsCreate&&!supportsProto,HashMap={create:supportsCreate?function(){return MakeDictionary(Object.create(null))}:supportsProto?function(){return MakeDictionary({__proto__:null})}:function(){return MakeDictionary({})},has:downLevel?function(map,key){return hasOwn.call(map,key)}:function(map,key){return key in map},get:downLevel?function(map,key){return hasOwn.call(map,key)?map[key]:void 0}:function(map,key){return map[key]}},functionPrototype=Object.getPrototypeOf(Function),usePolyfill=typeof process=="object"&&process.env&&process.env.REFLECT_METADATA_USE_MAP_POLYFILL==="true",_Map=!usePolyfill&&typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:CreateMapPolyfill(),_Set=!usePolyfill&&typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:CreateSetPolyfill(),_WeakMap=!usePolyfill&&typeof WeakMap=="function"?WeakMap:CreateWeakMapPolyfill(),Metadata=new _WeakMap;function decorate(decorators,target,propertyKey,attributes){if(IsUndefined(propertyKey)){if(!IsArray(decorators))throw new TypeError;if(!IsConstructor(target))throw new TypeError;return DecorateConstructor(decorators,target)}else{if(!IsArray(decorators))throw new TypeError;if(!IsObject(target))throw new TypeError;if(!IsObject(attributes)&&!IsUndefined(attributes)&&!IsNull(attributes))throw new TypeError;return IsNull(attributes)&&(attributes=void 0),propertyKey=ToPropertyKey(propertyKey),DecorateProperty(decorators,target,propertyKey,attributes)}}exporter("decorate",decorate);function metadata(metadataKey,metadataValue){function decorator(target,propertyKey){if(!IsObject(target))throw new TypeError;if(!IsUndefined(propertyKey)&&!IsPropertyKey(propertyKey))throw new TypeError;OrdinaryDefineOwnMetadata(metadataKey,metadataValue,target,propertyKey)}return decorator}exporter("metadata",metadata);function defineMetadata(metadataKey,metadataValue,target,propertyKey){if(!IsObject(target))throw new TypeError;return IsUndefined(propertyKey)||(propertyKey=ToPropertyKey(propertyKey)),OrdinaryDefineOwnMetadata(metadataKey,metadataValue,target,propertyKey)}exporter("defineMetadata",defineMetadata);function hasMetadata(metadataKey,target,propertyKey){if(!IsObject(target))throw new TypeError;return IsUndefined(propertyKey)||(propertyKey=ToPropertyKey(propertyKey)),OrdinaryHasMetadata(metadataKey,target,propertyKey)}exporter("hasMetadata",hasMetadata);function hasOwnMetadata(metadataKey,target,propertyKey){if(!IsObject(target))throw new TypeError;return IsUndefined(propertyKey)||(propertyKey=ToPropertyKey(propertyKey)),OrdinaryHasOwnMetadata(metadataKey,target,propertyKey)}exporter("hasOwnMetadata",hasOwnMetadata);function getMetadata(metadataKey,target,propertyKey){if(!IsObject(target))throw new TypeError;return IsUndefined(propertyKey)||(propertyKey=ToPropertyKey(propertyKey)),OrdinaryGetMetadata(metadataKey,target,propertyKey)}exporter("getMetadata",getMetadata);function getOwnMetadata(metadataKey,target,propertyKey){if(!IsObject(target))throw new TypeError;return IsUndefined(propertyKey)||(propertyKey=ToPropertyKey(propertyKey)),OrdinaryGetOwnMetadata(metadataKey,target,propertyKey)}exporter("getOwnMetadata",getOwnMetadata);function getMetadataKeys(target,propertyKey){if(!IsObject(target))throw new TypeError;return IsUndefined(propertyKey)||(propertyKey=ToPropertyKey(propertyKey)),OrdinaryMetadataKeys(target,propertyKey)}exporter("getMetadataKeys",getMetadataKeys);function getOwnMetadataKeys(target,propertyKey){if(!IsObject(target))throw new TypeError;return IsUndefined(propertyKey)||(propertyKey=ToPropertyKey(propertyKey)),OrdinaryOwnMetadataKeys(target,propertyKey)}exporter("getOwnMetadataKeys",getOwnMetadataKeys);function deleteMetadata(metadataKey,target,propertyKey){if(!IsObject(target))throw new TypeError;IsUndefined(propertyKey)||(propertyKey=ToPropertyKey(propertyKey));var metadataMap=GetOrCreateMetadataMap(target,propertyKey,!1);if(IsUndefined(metadataMap)||!metadataMap.delete(metadataKey))return!1;if(metadataMap.size>0)return!0;var targetMetadata=Metadata.get(target);return targetMetadata.delete(propertyKey),targetMetadata.size>0||Metadata.delete(target),!0}exporter("deleteMetadata",deleteMetadata);function DecorateConstructor(decorators,target){for(var i=decorators.length-1;i>=0;--i){var decorator=decorators[i],decorated=decorator(target);if(!IsUndefined(decorated)&&!IsNull(decorated)){if(!IsConstructor(decorated))throw new TypeError;target=decorated}}return target}function DecorateProperty(decorators,target,propertyKey,descriptor){for(var i=decorators.length-1;i>=0;--i){var decorator=decorators[i],decorated=decorator(target,propertyKey,descriptor);if(!IsUndefined(decorated)&&!IsNull(decorated)){if(!IsObject(decorated))throw new TypeError;descriptor=decorated}}return descriptor}function GetOrCreateMetadataMap(O,P,Create){var targetMetadata=Metadata.get(O);if(IsUndefined(targetMetadata)){if(!Create)return;targetMetadata=new _Map,Metadata.set(O,targetMetadata)}var metadataMap=targetMetadata.get(P);if(IsUndefined(metadataMap)){if(!Create)return;metadataMap=new _Map,targetMetadata.set(P,metadataMap)}return metadataMap}function OrdinaryHasMetadata(MetadataKey,O,P){var hasOwn2=OrdinaryHasOwnMetadata(MetadataKey,O,P);if(hasOwn2)return!0;var parent=OrdinaryGetPrototypeOf(O);return IsNull(parent)?!1:OrdinaryHasMetadata(MetadataKey,parent,P)}function OrdinaryHasOwnMetadata(MetadataKey,O,P){var metadataMap=GetOrCreateMetadataMap(O,P,!1);return IsUndefined(metadataMap)?!1:ToBoolean(metadataMap.has(MetadataKey))}function OrdinaryGetMetadata(MetadataKey,O,P){var hasOwn2=OrdinaryHasOwnMetadata(MetadataKey,O,P);if(hasOwn2)return OrdinaryGetOwnMetadata(MetadataKey,O,P);var parent=OrdinaryGetPrototypeOf(O);if(!IsNull(parent))return OrdinaryGetMetadata(MetadataKey,parent,P)}function OrdinaryGetOwnMetadata(MetadataKey,O,P){var metadataMap=GetOrCreateMetadataMap(O,P,!1);if(!IsUndefined(metadataMap))return metadataMap.get(MetadataKey)}function OrdinaryDefineOwnMetadata(MetadataKey,MetadataValue,O,P){var metadataMap=GetOrCreateMetadataMap(O,P,!0);metadataMap.set(MetadataKey,MetadataValue)}function OrdinaryMetadataKeys(O,P){var ownKeys=OrdinaryOwnMetadataKeys(O,P),parent=OrdinaryGetPrototypeOf(O);if(parent===null)return ownKeys;var parentKeys=OrdinaryMetadataKeys(parent,P);if(parentKeys.length<=0)return ownKeys;if(ownKeys.length<=0)return parentKeys;for(var set=new _Set,keys=[],_i=0,ownKeys_1=ownKeys;_i<ownKeys_1.length;_i++){var key=ownKeys_1[_i],hasKey=set.has(key);hasKey||(set.add(key),keys.push(key))}for(var _a=0,parentKeys_1=parentKeys;_a<parentKeys_1.length;_a++){var key=parentKeys_1[_a],hasKey=set.has(key);hasKey||(set.add(key),keys.push(key))}return keys}function OrdinaryOwnMetadataKeys(O,P){var keys=[],metadataMap=GetOrCreateMetadataMap(O,P,!1);if(IsUndefined(metadataMap))return keys;for(var keysObj=metadataMap.keys(),iterator=GetIterator(keysObj),k=0;;){var next=IteratorStep(iterator);if(!next)return keys.length=k,keys;var nextValue=IteratorValue(next);try{keys[k]=nextValue}catch(e){try{IteratorClose(iterator)}finally{throw e}}k++}}function Type(x){if(x===null)return 1;switch(typeof x){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return x===null?1:6;default:return 6}}function IsUndefined(x){return x===void 0}function IsNull(x){return x===null}function IsSymbol(x){return typeof x=="symbol"}function IsObject(x){return typeof x=="object"?x!==null:typeof x=="function"}function ToPrimitive(input,PreferredType){switch(Type(input)){case 0:return input;case 1:return input;case 2:return input;case 3:return input;case 4:return input;case 5:return input}var hint=PreferredType===3?"string":PreferredType===5?"number":"default",exoticToPrim=GetMethod(input,toPrimitiveSymbol);if(exoticToPrim!==void 0){var result=exoticToPrim.call(input,hint);if(IsObject(result))throw new TypeError;return result}return OrdinaryToPrimitive(input,hint==="default"?"number":hint)}function OrdinaryToPrimitive(O,hint){if(hint==="string"){var toString_1=O.toString;if(IsCallable(toString_1)){var result=toString_1.call(O);if(!IsObject(result))return result}var valueOf=O.valueOf;if(IsCallable(valueOf)){var result=valueOf.call(O);if(!IsObject(result))return result}}else{var valueOf=O.valueOf;if(IsCallable(valueOf)){var result=valueOf.call(O);if(!IsObject(result))return result}var toString_2=O.toString;if(IsCallable(toString_2)){var result=toString_2.call(O);if(!IsObject(result))return result}}throw new TypeError}function ToBoolean(argument){return!!argument}function ToString(argument){return""+argument}function ToPropertyKey(argument){var key=ToPrimitive(argument,3);return IsSymbol(key)?key:ToString(key)}function IsArray(argument){return Array.isArray?Array.isArray(argument):argument instanceof Object?argument instanceof Array:Object.prototype.toString.call(argument)==="[object Array]"}function IsCallable(argument){return typeof argument=="function"}function IsConstructor(argument){return typeof argument=="function"}function IsPropertyKey(argument){switch(Type(argument)){case 3:return!0;case 4:return!0;default:return!1}}function GetMethod(V,P){var func=V[P];if(func!=null){if(!IsCallable(func))throw new TypeError;return func}}function GetIterator(obj){var method=GetMethod(obj,iteratorSymbol);if(!IsCallable(method))throw new TypeError;var iterator=method.call(obj);if(!IsObject(iterator))throw new TypeError;return iterator}function IteratorValue(iterResult){return iterResult.value}function IteratorStep(iterator){var result=iterator.next();return result.done?!1:result}function IteratorClose(iterator){var f=iterator.return;f&&f.call(iterator)}function OrdinaryGetPrototypeOf(O){var proto=Object.getPrototypeOf(O);if(typeof O!="function"||O===functionPrototype||proto!==functionPrototype)return proto;var prototype=O.prototype,prototypeProto=prototype&&Object.getPrototypeOf(prototype);if(prototypeProto==null||prototypeProto===Object.prototype)return proto;var constructor=prototypeProto.constructor;return typeof constructor!="function"||constructor===O?proto:constructor}function CreateMapPolyfill(){var cacheSentinel={},arraySentinel=[],MapIterator=function(){function MapIterator2(keys,values,selector){this._index=0,this._keys=keys,this._values=values,this._selector=selector}return MapIterator2.prototype["@@iterator"]=function(){return this},MapIterator2.prototype[iteratorSymbol]=function(){return this},MapIterator2.prototype.next=function(){var index=this._index;if(index>=0&&index<this._keys.length){var result=this._selector(this._keys[index],this._values[index]);return index+1>=this._keys.length?(this._index=-1,this._keys=arraySentinel,this._values=arraySentinel):this._index++,{value:result,done:!1}}return{value:void 0,done:!0}},MapIterator2.prototype.throw=function(error){throw this._index>=0&&(this._index=-1,this._keys=arraySentinel,this._values=arraySentinel),error},MapIterator2.prototype.return=function(value){return this._index>=0&&(this._index=-1,this._keys=arraySentinel,this._values=arraySentinel),{value,done:!0}},MapIterator2}();return function(){function Map2(){this._keys=[],this._values=[],this._cacheKey=cacheSentinel,this._cacheIndex=-2}return Object.defineProperty(Map2.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),Map2.prototype.has=function(key){return this._find(key,!1)>=0},Map2.prototype.get=function(key){var index=this._find(key,!1);return index>=0?this._values[index]:void 0},Map2.prototype.set=function(key,value){var index=this._find(key,!0);return this._values[index]=value,this},Map2.prototype.delete=function(key){var index=this._find(key,!1);if(index>=0){for(var size=this._keys.length,i=index+1;i<size;i++)this._keys[i-1]=this._keys[i],this._values[i-1]=this._values[i];return this._keys.length--,this._values.length--,key===this._cacheKey&&(this._cacheKey=cacheSentinel,this._cacheIndex=-2),!0}return!1},Map2.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=cacheSentinel,this._cacheIndex=-2},Map2.prototype.keys=function(){return new MapIterator(this._keys,this._values,getKey)},Map2.prototype.values=function(){return new MapIterator(this._keys,this._values,getValue)},Map2.prototype.entries=function(){return new MapIterator(this._keys,this._values,getEntry)},Map2.prototype["@@iterator"]=function(){return this.entries()},Map2.prototype[iteratorSymbol]=function(){return this.entries()},Map2.prototype._find=function(key,insert){return this._cacheKey!==key&&(this._cacheIndex=this._keys.indexOf(this._cacheKey=key)),this._cacheIndex<0&&insert&&(this._cacheIndex=this._keys.length,this._keys.push(key),this._values.push(void 0)),this._cacheIndex},Map2}();function getKey(key,_){return key}function getValue(_,value){return value}function getEntry(key,value){return[key,value]}}function CreateSetPolyfill(){return function(){function Set2(){this._map=new _Map}return Object.defineProperty(Set2.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),Set2.prototype.has=function(value){return this._map.has(value)},Set2.prototype.add=function(value){return this._map.set(value,value),this},Set2.prototype.delete=function(value){return this._map.delete(value)},Set2.prototype.clear=function(){this._map.clear()},Set2.prototype.keys=function(){return this._map.keys()},Set2.prototype.values=function(){return this._map.values()},Set2.prototype.entries=function(){return this._map.entries()},Set2.prototype["@@iterator"]=function(){return this.keys()},Set2.prototype[iteratorSymbol]=function(){return this.keys()},Set2}()}function CreateWeakMapPolyfill(){var UUID_SIZE=16,keys=HashMap.create(),rootKey=CreateUniqueKey();return function(){function WeakMap2(){this._key=CreateUniqueKey()}return WeakMap2.prototype.has=function(target){var table=GetOrCreateWeakMapTable(target,!1);return table!==void 0?HashMap.has(table,this._key):!1},WeakMap2.prototype.get=function(target){var table=GetOrCreateWeakMapTable(target,!1);return table!==void 0?HashMap.get(table,this._key):void 0},WeakMap2.prototype.set=function(target,value){var table=GetOrCreateWeakMapTable(target,!0);return table[this._key]=value,this},WeakMap2.prototype.delete=function(target){var table=GetOrCreateWeakMapTable(target,!1);return table!==void 0?delete table[this._key]:!1},WeakMap2.prototype.clear=function(){this._key=CreateUniqueKey()},WeakMap2}();function CreateUniqueKey(){var key;do key="@@WeakMap@@"+CreateUUID();while(HashMap.has(keys,key));return keys[key]=!0,key}function GetOrCreateWeakMapTable(target,create){if(!hasOwn.call(target,rootKey)){if(!create)return;Object.defineProperty(target,rootKey,{value:HashMap.create()})}return target[rootKey]}function FillRandomBytes(buffer,size){for(var i=0;i<size;++i)buffer[i]=Math.random()*255|0;return buffer}function GenRandomBytes(size){return typeof Uint8Array=="function"?typeof crypto<"u"?crypto.getRandomValues(new Uint8Array(size)):typeof msCrypto<"u"?msCrypto.getRandomValues(new Uint8Array(size)):FillRandomBytes(new Uint8Array(size),size):FillRandomBytes(new Array(size),size)}function CreateUUID(){var data=GenRandomBytes(UUID_SIZE);data[6]=data[6]&79|64,data[8]=data[8]&191|128;for(var result="",offset=0;offset<UUID_SIZE;++offset){var byte=data[offset];(offset===4||offset===6||offset===8)&&(result+="-"),byte<16&&(result+="0"),result+=byte.toString(16).toLowerCase()}return result}}function MakeDictionary(obj){return obj.__=void 0,delete obj.__,obj}})})(Reflect2||(Reflect2={}))},62836:(module,__unused_webpack_exports,__webpack_require__)=>{const ANY=Symbol("SemVer ANY");class Comparator{static get ANY(){return ANY}constructor(comp,options){if(options=parseOptions(options),comp instanceof Comparator){if(comp.loose===!!options.loose)return comp;comp=comp.value}comp=comp.trim().split(/\s+/).join(" "),debug("comparator",comp,options),this.options=options,this.loose=!!options.loose,this.parse(comp),this.semver===ANY?this.value="":this.value=this.operator+this.semver.version,debug("comp",this)}parse(comp){const r=this.options.loose?re[t.COMPARATORLOOSE]:re[t.COMPARATOR],m=comp.match(r);if(!m)throw new TypeError(`Invalid comparator: ${comp}`);this.operator=m[1]!==void 0?m[1]:"",this.operator==="="&&(this.operator=""),m[2]?this.semver=new SemVer(m[2],this.options.loose):this.semver=ANY}toString(){return this.value}test(version){if(debug("Comparator.test",version,this.options.loose),this.semver===ANY||version===ANY)return!0;if(typeof version=="string")try{version=new SemVer(version,this.options)}catch{return!1}return cmp(version,this.operator,this.semver,this.options)}intersects(comp,options){if(!(comp instanceof Comparator))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new Range(comp.value,options).test(this.value):comp.operator===""?comp.value===""?!0:new Range(this.value,options).test(comp.semver):(options=parseOptions(options),options.includePrerelease&&(this.value==="<0.0.0-0"||comp.value==="<0.0.0-0")||!options.includePrerelease&&(this.value.startsWith("<0.0.0")||comp.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&comp.operator.startsWith(">")||this.operator.startsWith("<")&&comp.operator.startsWith("<")||this.semver.version===comp.semver.version&&this.operator.includes("=")&&comp.operator.includes("=")||cmp(this.semver,"<",comp.semver,options)&&this.operator.startsWith(">")&&comp.operator.startsWith("<")||cmp(this.semver,">",comp.semver,options)&&this.operator.startsWith("<")&&comp.operator.startsWith(">")))}}module.exports=Comparator;const parseOptions=__webpack_require__(89705),{safeRe:re,t}=__webpack_require__(69565),cmp=__webpack_require__(27934),debug=__webpack_require__(69612),SemVer=__webpack_require__(99343),Range=__webpack_require__(69381)},69381:(module,__unused_webpack_exports,__webpack_require__)=>{class Range{constructor(range,options){if(options=parseOptions(options),range instanceof Range)return range.loose===!!options.loose&&range.includePrerelease===!!options.includePrerelease?range:new Range(range.raw,options);if(range instanceof Comparator)return this.raw=range.value,this.set=[[range]],this.format(),this;if(this.options=options,this.loose=!!options.loose,this.includePrerelease=!!options.includePrerelease,this.raw=range.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(r=>this.parseRange(r)).filter(c=>c.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const first=this.set[0];if(this.set=this.set.filter(c=>!isNullSet(c[0])),this.set.length===0)this.set=[first];else if(this.set.length>1){for(const c of this.set)if(c.length===1&&isAny(c[0])){this.set=[c];break}}}this.format()}format(){return this.range=this.set.map(comps=>comps.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(range){const memoKey=((this.options.includePrerelease&&FLAG_INCLUDE_PRERELEASE)|(this.options.loose&&FLAG_LOOSE))+":"+range,cached=cache.get(memoKey);if(cached)return cached;const loose=this.options.loose,hr=loose?re[t.HYPHENRANGELOOSE]:re[t.HYPHENRANGE];range=range.replace(hr,hyphenReplace(this.options.includePrerelease)),debug("hyphen replace",range),range=range.replace(re[t.COMPARATORTRIM],comparatorTrimReplace),debug("comparator trim",range),range=range.replace(re[t.TILDETRIM],tildeTrimReplace),range=range.replace(re[t.CARETTRIM],caretTrimReplace);let rangeList=range.split(" ").map(comp=>parseComparator(comp,this.options)).join(" ").split(/\s+/).map(comp=>replaceGTE0(comp,this.options));loose&&(rangeList=rangeList.filter(comp=>(debug("loose invalid filter",comp,this.options),!!comp.match(re[t.COMPARATORLOOSE])))),debug("range list",rangeList);const rangeMap=new Map,comparators=rangeList.map(comp=>new Comparator(comp,this.options));for(const comp of comparators){if(isNullSet(comp))return[comp];rangeMap.set(comp.value,comp)}rangeMap.size>1&&rangeMap.has("")&&rangeMap.delete("");const result=[...rangeMap.values()];return cache.set(memoKey,result),result}intersects(range,options){if(!(range instanceof Range))throw new TypeError("a Range is required");return this.set.some(thisComparators=>isSatisfiable(thisComparators,options)&&range.set.some(rangeComparators=>isSatisfiable(rangeComparators,options)&&thisComparators.every(thisComparator=>rangeComparators.every(rangeComparator=>thisComparator.intersects(rangeComparator,options)))))}test(version){if(!version)return!1;if(typeof version=="string")try{version=new SemVer(version,this.options)}catch{return!1}for(let i=0;i<this.set.length;i++)if(testSet(this.set[i],version,this.options))return!0;return!1}}module.exports=Range;const LRU=__webpack_require__(82698),cache=new LRU({max:1e3}),parseOptions=__webpack_require__(89705),Comparator=__webpack_require__(62836),debug=__webpack_require__(69612),SemVer=__webpack_require__(99343),{safeRe:re,t,comparatorTrimReplace,tildeTrimReplace,caretTrimReplace}=__webpack_require__(69565),{FLAG_INCLUDE_PRERELEASE,FLAG_LOOSE}=__webpack_require__(70289),isNullSet=c=>c.value==="<0.0.0-0",isAny=c=>c.value==="",isSatisfiable=(comparators,options)=>{let result=!0;const remainingComparators=comparators.slice();let testComparator=remainingComparators.pop();for(;result&&remainingComparators.length;)result=remainingComparators.every(otherComparator=>testComparator.intersects(otherComparator,options)),testComparator=remainingComparators.pop();return result},parseComparator=(comp,options)=>(debug("comp",comp,options),comp=replaceCarets(comp,options),debug("caret",comp),comp=replaceTildes(comp,options),debug("tildes",comp),comp=replaceXRanges(comp,options),debug("xrange",comp),comp=replaceStars(comp,options),debug("stars",comp),comp),isX=id=>!id||id.toLowerCase()==="x"||id==="*",replaceTildes=(comp,options)=>comp.trim().split(/\s+/).map(c=>replaceTilde(c,options)).join(" "),replaceTilde=(comp,options)=>{const r=options.loose?re[t.TILDELOOSE]:re[t.TILDE];return comp.replace(r,(_,M,m,p,pr)=>{debug("tilde",comp,_,M,m,p,pr);let ret;return isX(M)?ret="":isX(m)?ret=`>=${M}.0.0 <${+M+1}.0.0-0`:isX(p)?ret=`>=${M}.${m}.0 <${M}.${+m+1}.0-0`:pr?(debug("replaceTilde pr",pr),ret=`>=${M}.${m}.${p}-${pr} <${M}.${+m+1}.0-0`):ret=`>=${M}.${m}.${p} <${M}.${+m+1}.0-0`,debug("tilde return",ret),ret})},replaceCarets=(comp,options)=>comp.trim().split(/\s+/).map(c=>replaceCaret(c,options)).join(" "),replaceCaret=(comp,options)=>{debug("caret",comp,options);const r=options.loose?re[t.CARETLOOSE]:re[t.CARET],z=options.includePrerelease?"-0":"";return comp.replace(r,(_,M,m,p,pr)=>{debug("caret",comp,_,M,m,p,pr);let ret;return isX(M)?ret="":isX(m)?ret=`>=${M}.0.0${z} <${+M+1}.0.0-0`:isX(p)?M==="0"?ret=`>=${M}.${m}.0${z} <${M}.${+m+1}.0-0`:ret=`>=${M}.${m}.0${z} <${+M+1}.0.0-0`:pr?(debug("replaceCaret pr",pr),M==="0"?m==="0"?ret=`>=${M}.${m}.${p}-${pr} <${M}.${m}.${+p+1}-0`:ret=`>=${M}.${m}.${p}-${pr} <${M}.${+m+1}.0-0`:ret=`>=${M}.${m}.${p}-${pr} <${+M+1}.0.0-0`):(debug("no pr"),M==="0"?m==="0"?ret=`>=${M}.${m}.${p}${z} <${M}.${m}.${+p+1}-0`:ret=`>=${M}.${m}.${p}${z} <${M}.${+m+1}.0-0`:ret=`>=${M}.${m}.${p} <${+M+1}.0.0-0`),debug("caret return",ret),ret})},replaceXRanges=(comp,options)=>(debug("replaceXRanges",comp,options),comp.split(/\s+/).map(c=>replaceXRange(c,options)).join(" ")),replaceXRange=(comp,options)=>{comp=comp.trim();const r=options.loose?re[t.XRANGELOOSE]:re[t.XRANGE];return comp.replace(r,(ret,gtlt,M,m,p,pr)=>{debug("xRange",comp,ret,gtlt,M,m,p,pr);const xM=isX(M),xm=xM||isX(m),xp=xm||isX(p),anyX=xp;return gtlt==="="&&anyX&&(gtlt=""),pr=options.includePrerelease?"-0":"",xM?gtlt===">"||gtlt==="<"?ret="<0.0.0-0":ret="*":gtlt&&anyX?(xm&&(m=0),p=0,gtlt===">"?(gtlt=">=",xm?(M=+M+1,m=0,p=0):(m=+m+1,p=0)):gtlt==="<="&&(gtlt="<",xm?M=+M+1:m=+m+1),gtlt==="<"&&(pr="-0"),ret=`${gtlt+M}.${m}.${p}${pr}`):xm?ret=`>=${M}.0.0${pr} <${+M+1}.0.0-0`:xp&&(ret=`>=${M}.${m}.0${pr} <${M}.${+m+1}.0-0`),debug("xRange return",ret),ret})},replaceStars=(comp,options)=>(debug("replaceStars",comp,options),comp.trim().replace(re[t.STAR],"")),replaceGTE0=(comp,options)=>(debug("replaceGTE0",comp,options),comp.trim().replace(re[options.includePrerelease?t.GTE0PRE:t.GTE0],"")),hyphenReplace=incPr=>($0,from,fM,fm,fp,fpr,fb,to,tM,tm,tp,tpr,tb)=>(isX(fM)?from="":isX(fm)?from=`>=${fM}.0.0${incPr?"-0":""}`:isX(fp)?from=`>=${fM}.${fm}.0${incPr?"-0":""}`:fpr?from=`>=${from}`:from=`>=${from}${incPr?"-0":""}`,isX(tM)?to="":isX(tm)?to=`<${+tM+1}.0.0-0`:isX(tp)?to=`<${tM}.${+tm+1}.0-0`:tpr?to=`<=${tM}.${tm}.${tp}-${tpr}`:incPr?to=`<${tM}.${tm}.${+tp+1}-0`:to=`<=${to}`,`${from} ${to}`.trim()),testSet=(set,version,options)=>{for(let i=0;i<set.length;i++)if(!set[i].test(version))return!1;if(version.prerelease.length&&!options.includePrerelease){for(let i=0;i<set.length;i++)if(debug(set[i].semver),set[i].semver!==Comparator.ANY&&set[i].semver.prerelease.length>0){const allowed=set[i].semver;if(allowed.major===version.major&&allowed.minor===version.minor&&allowed.patch===version.patch)return!0}return!1}return!0}},99343:(module,__unused_webpack_exports,__webpack_require__)=>{const debug=__webpack_require__(69612),{MAX_LENGTH,MAX_SAFE_INTEGER}=__webpack_require__(70289),{safeRe:re,t}=__webpack_require__(69565),parseOptions=__webpack_require__(89705),{compareIdentifiers}=__webpack_require__(4236);class SemVer{constructor(version,options){if(options=parseOptions(options),version instanceof SemVer){if(version.loose===!!options.loose&&version.includePrerelease===!!options.includePrerelease)return version;version=version.version}else if(typeof version!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version}".`);if(version.length>MAX_LENGTH)throw new TypeError(`version is longer than ${MAX_LENGTH} characters`);debug("SemVer",version,options),this.options=options,this.loose=!!options.loose,this.includePrerelease=!!options.includePrerelease;const m=version.trim().match(options.loose?re[t.LOOSE]:re[t.FULL]);if(!m)throw new TypeError(`Invalid Version: ${version}`);if(this.raw=version,this.major=+m[1],this.minor=+m[2],this.patch=+m[3],this.major>MAX_SAFE_INTEGER||this.major<0)throw new TypeError("Invalid major version");if(this.minor>MAX_SAFE_INTEGER||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>MAX_SAFE_INTEGER||this.patch<0)throw new TypeError("Invalid patch version");m[4]?this.prerelease=m[4].split(".").map(id=>{if(/^[0-9]+$/.test(id)){const num=+id;if(num>=0&&num<MAX_SAFE_INTEGER)return num}return id}):this.prerelease=[],this.build=m[5]?m[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(other){if(debug("SemVer.compare",this.version,this.options,other),!(other instanceof SemVer)){if(typeof other=="string"&&other===this.version)return 0;other=new SemVer(other,this.options)}return other.version===this.version?0:this.compareMain(other)||this.comparePre(other)}compareMain(other){return other instanceof SemVer||(other=new SemVer(other,this.options)),compareIdentifiers(this.major,other.major)||compareIdentifiers(this.minor,other.minor)||compareIdentifiers(this.patch,other.patch)}comparePre(other){if(other instanceof SemVer||(other=new SemVer(other,this.options)),this.prerelease.length&&!other.prerelease.length)return-1;if(!this.prerelease.length&&other.prerelease.length)return 1;if(!this.prerelease.length&&!other.prerelease.length)return 0;let i=0;do{const a=this.prerelease[i],b=other.prerelease[i];if(debug("prerelease compare",i,a,b),a===void 0&&b===void 0)return 0;if(b===void 0)return 1;if(a===void 0)return-1;if(a===b)continue;return compareIdentifiers(a,b)}while(++i)}compareBuild(other){other instanceof SemVer||(other=new SemVer(other,this.options));let i=0;do{const a=this.build[i],b=other.build[i];if(debug("prerelease compare",i,a,b),a===void 0&&b===void 0)return 0;if(b===void 0)return 1;if(a===void 0)return-1;if(a===b)continue;return compareIdentifiers(a,b)}while(++i)}inc(release,identifier,identifierBase){switch(release){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",identifier,identifierBase);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",identifier,identifierBase);break;case"prepatch":this.prerelease.length=0,this.inc("patch",identifier,identifierBase),this.inc("pre",identifier,identifierBase);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",identifier,identifierBase),this.inc("pre",identifier,identifierBase);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{const base=Number(identifierBase)?1:0;if(!identifier&&identifierBase===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[base];else{let i=this.prerelease.length;for(;--i>=0;)typeof this.prerelease[i]=="number"&&(this.prerelease[i]++,i=-2);if(i===-1){if(identifier===this.prerelease.join(".")&&identifierBase===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(base)}}if(identifier){let prerelease=[identifier,base];identifierBase===!1&&(prerelease=[identifier]),compareIdentifiers(this.prerelease[0],identifier)===0?isNaN(this.prerelease[1])&&(this.prerelease=prerelease):this.prerelease=prerelease}break}default:throw new Error(`invalid increment argument: ${release}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}module.exports=SemVer},18553:(module,__unused_webpack_exports,__webpack_require__)=>{const parse=__webpack_require__(17405),clean=(version,options)=>{const s=parse(version.trim().replace(/^[=v]+/,""),options);return s?s.version:null};module.exports=clean},27934:(module,__unused_webpack_exports,__webpack_require__)=>{const eq=__webpack_require__(19632),neq=__webpack_require__(10491),gt=__webpack_require__(38958),gte=__webpack_require__(72681),lt=__webpack_require__(97076),lte=__webpack_require__(83984),cmp=(a,op,b,loose)=>{switch(op){case"===":return typeof a=="object"&&(a=a.version),typeof b=="object"&&(b=b.version),a===b;case"!==":return typeof a=="object"&&(a=a.version),typeof b=="object"&&(b=b.version),a!==b;case"":case"=":case"==":return eq(a,b,loose);case"!=":return neq(a,b,loose);case">":return gt(a,b,loose);case">=":return gte(a,b,loose);case"<":return lt(a,b,loose);case"<=":return lte(a,b,loose);default:throw new TypeError(`Invalid operator: ${op}`)}};module.exports=cmp},46392:(module,__unused_webpack_exports,__webpack_require__)=>{const SemVer=__webpack_require__(99343),parse=__webpack_require__(17405),{safeRe:re,t}=__webpack_require__(69565),coerce=(version,options)=>{if(version instanceof SemVer)return version;if(typeof version=="number"&&(version=String(version)),typeof version!="string")return null;options=options||{};let match=null;if(!options.rtl)match=version.match(re[t.COERCE]);else{let next;for(;(next=re[t.COERCERTL].exec(version))&&(!match||match.index+match[0].length!==version.length);)(!match||next.index+next[0].length!==match.index+match[0].length)&&(match=next),re[t.COERCERTL].lastIndex=next.index+next[1].length+next[2].length;re[t.COERCERTL].lastIndex=-1}return match===null?null:parse(`${match[2]}.${match[3]||"0"}.${match[4]||"0"}`,options)};module.exports=coerce},295:(module,__unused_webpack_exports,__webpack_require__)=>{const SemVer=__webpack_require__(99343),compareBuild=(a,b,loose)=>{const versionA=new SemVer(a,loose),versionB=new SemVer(b,loose);return versionA.compare(versionB)||versionA.compareBuild(versionB)};module.exports=compareBuild},2361:(module,__unused_webpack_exports,__webpack_require__)=>{const compare=__webpack_require__(82570),compareLoose=(a,b)=>compare(a,b,!0);module.exports=compareLoose},82570:(module,__unused_webpack_exports,__webpack_require__)=>{const SemVer=__webpack_require__(99343),compare=(a,b,loose)=>new SemVer(a,loose).compare(new SemVer(b,loose));module.exports=compare},78774:(module,__unused_webpack_exports,__webpack_require__)=>{const parse=__webpack_require__(17405),diff=(version1,version2)=>{const v1=parse(version1,null,!0),v2=parse(version2,null,!0),comparison=v1.compare(v2);if(comparison===0)return null;const v1Higher=comparison>0,highVersion=v1Higher?v1:v2,lowVersion=v1Higher?v2:v1,highHasPre=!!highVersion.prerelease.length;if(!!lowVersion.prerelease.length&&!highHasPre)return!lowVersion.patch&&!lowVersion.minor?"major":highVersion.patch?"patch":highVersion.minor?"minor":"major";const prefix=highHasPre?"pre":"";return v1.major!==v2.major?prefix+"major":v1.minor!==v2.minor?prefix+"minor":v1.patch!==v2.patch?prefix+"patch":"prerelease"};module.exports=diff},19632:(module,__unused_webpack_exports,__webpack_require__)=>{const compare=__webpack_require__(82570),eq=(a,b,loose)=>compare(a,b,loose)===0;module.exports=eq},38958:(module,__unused_webpack_exports,__webpack_require__)=>{const compare=__webpack_require__(82570),gt=(a,b,loose)=>compare(a,b,loose)>0;module.exports=gt},72681:(module,__unused_webpack_exports,__webpack_require__)=>{const compare=__webpack_require__(82570),gte=(a,b,loose)=>compare(a,b,loose)>=0;module.exports=gte},89508:(module,__unused_webpack_exports,__webpack_require__)=>{const SemVer=__webpack_require__(99343),inc=(version,release,options,identifier,identifierBase)=>{typeof options=="string"&&(identifierBase=identifier,identifier=options,options=void 0);try{return new SemVer(version instanceof SemVer?version.version:version,options).inc(release,identifier,identifierBase).version}catch{return null}};module.exports=inc},97076:(module,__unused_webpack_exports,__webpack_require__)=>{const compare=__webpack_require__(82570),lt=(a,b,loose)=>compare(a,b,loose)<0;module.exports=lt},83984:(module,__unused_webpack_exports,__webpack_require__)=>{const compare=__webpack_require__(82570),lte=(a,b,loose)=>compare(a,b,loose)<=0;module.exports=lte},12579:(module,__unused_webpack_exports,__webpack_require__)=>{const SemVer=__webpack_require__(99343),major=(a,loose)=>new SemVer(a,loose).major;module.exports=major},74617:(module,__unused_webpack_exports,__webpack_require__)=>{const SemVer=__webpack_require__(99343),minor=(a,loose)=>new SemVer(a,loose).minor;module.exports=minor},10491:(module,__unused_webpack_exports,__webpack_require__)=>{const compare=__webpack_require__(82570),neq=(a,b,loose)=>compare(a,b,loose)!==0;module.exports=neq},17405:(module,__unused_webpack_exports,__webpack_require__)=>{const SemVer=__webpack_require__(99343),parse=(version,options,throwErrors=!1)=>{if(version instanceof SemVer)return version;try{return new SemVer(version,options)}catch(er){if(!throwErrors)return null;throw er}};module.exports=parse},36948:(module,__unused_webpack_exports,__webpack_require__)=>{const SemVer=__webpack_require__(99343),patch=(a,loose)=>new SemVer(a,loose).patch;module.exports=patch},94572:(module,__unused_webpack_exports,__webpack_require__)=>{const parse=__webpack_require__(17405),prerelease=(version,options)=>{const parsed=parse(version,options);return parsed&&parsed.prerelease.length?parsed.prerelease:null};module.exports=prerelease},50977:(module,__unused_webpack_exports,__webpack_require__)=>{const compare=__webpack_require__(82570),rcompare=(a,b,loose)=>compare(b,a,loose);module.exports=rcompare},20253:(module,__unused_webpack_exports,__webpack_require__)=>{const compareBuild=__webpack_require__(295),rsort=(list,loose)=>list.sort((a,b)=>compareBuild(b,a,loose));module.exports=rsort},76694:(module,__unused_webpack_exports,__webpack_require__)=>{const Range=__webpack_require__(69381),satisfies=(version,range,options)=>{try{range=new Range(range,options)}catch{return!1}return range.test(version)};module.exports=satisfies},58038:(module,__unused_webpack_exports,__webpack_require__)=>{const compareBuild=__webpack_require__(295),sort=(list,loose)=>list.sort((a,b)=>compareBuild(a,b,loose));module.exports=sort},749:(module,__unused_webpack_exports,__webpack_require__)=>{const parse=__webpack_require__(17405),valid=(version,options)=>{const v=parse(version,options);return v?v.version:null};module.exports=valid},46285:(module,__unused_webpack_exports,__webpack_require__)=>{const internalRe=__webpack_require__(69565),constants=__webpack_require__(70289),SemVer=__webpack_require__(99343),identifiers=__webpack_require__(4236),parse=__webpack_require__(17405),valid=__webpack_require__(749),clean=__webpack_require__(18553),inc=__webpack_require__(89508),diff=__webpack_require__(78774),major=__webpack_require__(12579),minor=__webpack_require__(74617),patch=__webpack_require__(36948),prerelease=__webpack_require__(94572),compare=__webpack_require__(82570),rcompare=__webpack_require__(50977),compareLoose=__webpack_require__(2361),compareBuild=__webpack_require__(295),sort=__webpack_require__(58038),rsort=__webpack_require__(20253),gt=__webpack_require__(38958),lt=__webpack_require__(97076),eq=__webpack_require__(19632),neq=__webpack_require__(10491),gte=__webpack_require__(72681),lte=__webpack_require__(83984),cmp=__webpack_require__(27934),coerce=__webpack_require__(46392),Comparator=__webpack_require__(62836),Range=__webpack_require__(69381),satisfies=__webpack_require__(76694),toComparators=__webpack_require__(11734),maxSatisfying=__webpack_require__(64e3),minSatisfying=__webpack_require__(34601),minVersion=__webpack_require__(63987),validRange=__webpack_require__(20881),outside=__webpack_require__(9622),gtr=__webpack_require__(49148),ltr=__webpack_require__(57022),intersects=__webpack_require__(21217),simplifyRange=__webpack_require__(95283),subset=__webpack_require__(27695);module.exports={parse,valid,clean,inc,diff,major,minor,patch,prerelease,compare,rcompare,compareLoose,compareBuild,sort,rsort,gt,lt,eq,neq,gte,lte,cmp,coerce,Comparator,Range,satisfies,toComparators,maxSatisfying,minSatisfying,minVersion,validRange,outside,gtr,ltr,intersects,simplifyRange,subset,SemVer,re:internalRe.re,src:internalRe.src,tokens:internalRe.t,SEMVER_SPEC_VERSION:constants.SEMVER_SPEC_VERSION,RELEASE_TYPES:constants.RELEASE_TYPES,compareIdentifiers:identifiers.compareIdentifiers,rcompareIdentifiers:identifiers.rcompareIdentifiers}},70289:module=>{const SEMVER_SPEC_VERSION="2.0.0",MAX_SAFE_INTEGER=Number.MAX_SAFE_INTEGER||9007199254740991,MAX_SAFE_COMPONENT_LENGTH=16,RELEASE_TYPES=["major","premajor","minor","preminor","patch","prepatch","prerelease"];module.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH,MAX_SAFE_INTEGER,RELEASE_TYPES,SEMVER_SPEC_VERSION,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},69612:(module,__unused_webpack_exports,__webpack_require__)=>{var process=__webpack_require__(14224);const debug=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...args)=>console.error("SEMVER",...args):()=>{};module.exports=debug},4236:module=>{const numeric=/^[0-9]+$/,compareIdentifiers=(a,b)=>{const anum=numeric.test(a),bnum=numeric.test(b);return anum&&bnum&&(a=+a,b=+b),a===b?0:anum&&!bnum?-1:bnum&&!anum?1:a<b?-1:1},rcompareIdentifiers=(a,b)=>compareIdentifiers(b,a);module.exports={compareIdentifiers,rcompareIdentifiers}},89705:module=>{const looseOption=Object.freeze({loose:!0}),emptyOpts=Object.freeze({}),parseOptions=options=>options?typeof options!="object"?looseOption:options:emptyOpts;module.exports=parseOptions},69565:(module,exports,__webpack_require__)=>{const{MAX_SAFE_COMPONENT_LENGTH}=__webpack_require__(70289),debug=__webpack_require__(69612);exports=module.exports={};const re=exports.re=[],safeRe=exports.safeRe=[],src=exports.src=[],t=exports.t={};let R=0;const createToken=(name,value,isGlobal)=>{const safe=value.split("\\s*").join("\\s{0,1}").split("\\s+").join("\\s"),index=R++;debug(name,index,value),t[name]=index,src[index]=value,re[index]=new RegExp(value,isGlobal?"g":void 0),safeRe[index]=new RegExp(safe,isGlobal?"g":void 0)};createToken("NUMERICIDENTIFIER","0|[1-9]\\d*"),createToken("NUMERICIDENTIFIERLOOSE","[0-9]+"),createToken("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),createToken("MAINVERSION",`(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})`),createToken("MAINVERSIONLOOSE",`(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})`),createToken("PRERELEASEIDENTIFIER",`(?:${src[t.NUMERICIDENTIFIER]}|${src[t.NONNUMERICIDENTIFIER]})`),createToken("PRERELEASEIDENTIFIERLOOSE",`(?:${src[t.NUMERICIDENTIFIERLOOSE]}|${src[t.NONNUMERICIDENTIFIER]})`),createToken("PRERELEASE",`(?:-(${src[t.PRERELEASEIDENTIFIER]}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`),createToken("PRERELEASELOOSE",`(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`),createToken("BUILDIDENTIFIER","[0-9A-Za-z-]+"),createToken("BUILD",`(?:\\+(${src[t.BUILDIDENTIFIER]}(?:\\.${src[t.BUILDIDENTIFIER]})*))`),createToken("FULLPLAIN",`v?${src[t.MAINVERSION]}${src[t.PRERELEASE]}?${src[t.BUILD]}?`),createToken("FULL",`^${src[t.FULLPLAIN]}$`),createToken("LOOSEPLAIN",`[v=\\s]*${src[t.MAINVERSIONLOOSE]}${src[t.PRERELEASELOOSE]}?${src[t.BUILD]}?`),createToken("LOOSE",`^${src[t.LOOSEPLAIN]}$`),createToken("GTLT","((?:<|>)?=?)"),createToken("XRANGEIDENTIFIERLOOSE",`${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),createToken("XRANGEIDENTIFIER",`${src[t.NUMERICIDENTIFIER]}|x|X|\\*`),createToken("XRANGEPLAIN",`[v=\\s]*(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:${src[t.PRERELEASE]})?${src[t.BUILD]}?)?)?`),createToken("XRANGEPLAINLOOSE",`[v=\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:${src[t.PRERELEASELOOSE]})?${src[t.BUILD]}?)?)?`),createToken("XRANGE",`^${src[t.GTLT]}\\s*${src[t.XRANGEPLAIN]}$`),createToken("XRANGELOOSE",`^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`),createToken("COERCE",`(^|[^\\d])(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}})(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:$|[^\\d])`),createToken("COERCERTL",src[t.COERCE],!0),createToken("LONETILDE","(?:~>?)"),createToken("TILDETRIM",`(\\s*)${src[t.LONETILDE]}\\s+`,!0),exports.tildeTrimReplace="$1~",createToken("TILDE",`^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`),createToken("TILDELOOSE",`^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`),createToken("LONECARET","(?:\\^)"),createToken("CARETTRIM",`(\\s*)${src[t.LONECARET]}\\s+`,!0),exports.caretTrimReplace="$1^",createToken("CARET",`^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`),createToken("CARETLOOSE",`^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`),createToken("COMPARATORLOOSE",`^${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]})$|^$`),createToken("COMPARATOR",`^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`),createToken("COMPARATORTRIM",`(\\s*)${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`,!0),exports.comparatorTrimReplace="$1$2$3",createToken("HYPHENRANGE",`^\\s*(${src[t.XRANGEPLAIN]})\\s+-\\s+(${src[t.XRANGEPLAIN]})\\s*$`),createToken("HYPHENRANGELOOSE",`^\\s*(${src[t.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t.XRANGEPLAINLOOSE]})\\s*$`),createToken("STAR","(<|>)?=?\\s*\\*"),createToken("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),createToken("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},49148:(module,__unused_webpack_exports,__webpack_require__)=>{const outside=__webpack_require__(9622),gtr=(version,range,options)=>outside(version,range,">",options);module.exports=gtr},21217:(module,__unused_webpack_exports,__webpack_require__)=>{const Range=__webpack_require__(69381),intersects=(r1,r2,options)=>(r1=new Range(r1,options),r2=new Range(r2,options),r1.intersects(r2,options));module.exports=intersects},57022:(module,__unused_webpack_exports,__webpack_require__)=>{const outside=__webpack_require__(9622),ltr=(version,range,options)=>outside(version,range,"<",options);module.exports=ltr},64e3:(module,__unused_webpack_exports,__webpack_require__)=>{const SemVer=__webpack_require__(99343),Range=__webpack_require__(69381),maxSatisfying=(versions,range,options)=>{let max=null,maxSV=null,rangeObj=null;try{rangeObj=new Range(range,options)}catch{return null}return versions.forEach(v=>{rangeObj.test(v)&&(!max||maxSV.compare(v)===-1)&&(max=v,maxSV=new SemVer(max,options))}),max};module.exports=maxSatisfying},34601:(module,__unused_webpack_exports,__webpack_require__)=>{const SemVer=__webpack_require__(99343),Range=__webpack_require__(69381),minSatisfying=(versions,range,options)=>{let min=null,minSV=null,rangeObj=null;try{rangeObj=new Range(range,options)}catch{return null}return versions.forEach(v=>{rangeObj.test(v)&&(!min||minSV.compare(v)===1)&&(min=v,minSV=new SemVer(min,options))}),min};module.exports=minSatisfying},63987:(module,__unused_webpack_exports,__webpack_require__)=>{const SemVer=__webpack_require__(99343),Range=__webpack_require__(69381),gt=__webpack_require__(38958),minVersion=(range,loose)=>{range=new Range(range,loose);let minver=new SemVer("0.0.0");if(range.test(minver)||(minver=new SemVer("0.0.0-0"),range.test(minver)))return minver;minver=null;for(let i=0;i<range.set.length;++i){const comparators=range.set[i];let setMin=null;comparators.forEach(comparator=>{const compver=new SemVer(comparator.semver.version);switch(comparator.operator){case">":compver.prerelease.length===0?compver.patch++:compver.prerelease.push(0),compver.raw=compver.format();case"":case">=":(!setMin||gt(compver,setMin))&&(setMin=compver);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${comparator.operator}`)}}),setMin&&(!minver||gt(minver,setMin))&&(minver=setMin)}return minver&&range.test(minver)?minver:null};module.exports=minVersion},9622:(module,__unused_webpack_exports,__webpack_require__)=>{const SemVer=__webpack_require__(99343),Comparator=__webpack_require__(62836),{ANY}=Comparator,Range=__webpack_require__(69381),satisfies=__webpack_require__(76694),gt=__webpack_require__(38958),lt=__webpack_require__(97076),lte=__webpack_require__(83984),gte=__webpack_require__(72681),outside=(version,range,hilo,options)=>{version=new SemVer(version,options),range=new Range(range,options);let gtfn,ltefn,ltfn,comp,ecomp;switch(hilo){case">":gtfn=gt,ltefn=lte,ltfn=lt,comp=">",ecomp=">=";break;case"<":gtfn=lt,ltefn=gte,ltfn=gt,comp="<",ecomp="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(satisfies(version,range,options))return!1;for(let i=0;i<range.set.length;++i){const comparators=range.set[i];let high=null,low=null;if(comparators.forEach(comparator=>{comparator.semver===ANY&&(comparator=new Comparator(">=0.0.0")),high=high||comparator,low=low||comparator,gtfn(comparator.semver,high.semver,options)?high=comparator:ltfn(comparator.semver,low.semver,options)&&(low=comparator)}),high.operator===comp||high.operator===ecomp||(!low.operator||low.operator===comp)&<efn(version,low.semver))return!1;if(low.operator===ecomp&<fn(version,low.semver))return!1}return!0};module.exports=outside},95283:(module,__unused_webpack_exports,__webpack_require__)=>{const satisfies=__webpack_require__(76694),compare=__webpack_require__(82570);module.exports=(versions,range,options)=>{const set=[];let first=null,prev=null;const v=versions.sort((a,b)=>compare(a,b,options));for(const version of v)satisfies(version,range,options)?(prev=version,first||(first=version)):(prev&&set.push([first,prev]),prev=null,first=null);first&&set.push([first,null]);const ranges=[];for(const[min,max]of set)min===max?ranges.push(min):!max&&min===v[0]?ranges.push("*"):max?min===v[0]?ranges.push(`<=${max}`):ranges.push(`${min} - ${max}`):ranges.push(`>=${min}`);const simplified=ranges.join(" || "),original=typeof range.raw=="string"?range.raw:String(range);return simplified.length<original.length?simplified:range}},27695:(module,__unused_webpack_exports,__webpack_require__)=>{const Range=__webpack_require__(69381),Comparator=__webpack_require__(62836),{ANY}=Comparator,satisfies=__webpack_require__(76694),compare=__webpack_require__(82570),subset=(sub,dom,options={})=>{if(sub===dom)return!0;sub=new Range(sub,options),dom=new Range(dom,options);let sawNonNull=!1;OUTER:for(const simpleSub of sub.set){for(const simpleDom of dom.set){const isSub=simpleSubset(simpleSub,simpleDom,options);if(sawNonNull=sawNonNull||isSub!==null,isSub)continue OUTER}if(sawNonNull)return!1}return!0},minimumVersionWithPreRelease=[new Comparator(">=0.0.0-0")],minimumVersion=[new Comparator(">=0.0.0")],simpleSubset=(sub,dom,options)=>{if(sub===dom)return!0;if(sub.length===1&&sub[0].semver===ANY){if(dom.length===1&&dom[0].semver===ANY)return!0;options.includePrerelease?sub=minimumVersionWithPreRelease:sub=minimumVersion}if(dom.length===1&&dom[0].semver===ANY){if(options.includePrerelease)return!0;dom=minimumVersion}const eqSet=new Set;let gt,lt;for(const c of sub)c.operator===">"||c.operator===">="?gt=higherGT(gt,c,options):c.operator==="<"||c.operator==="<="?lt=lowerLT(lt,c,options):eqSet.add(c.semver);if(eqSet.size>1)return null;let gtltComp;if(gt&<){if(gtltComp=compare(gt.semver,lt.semver,options),gtltComp>0)return null;if(gtltComp===0&&(gt.operator!==">="||lt.operator!=="<="))return null}for(const eq of eqSet){if(gt&&!satisfies(eq,String(gt),options)||lt&&!satisfies(eq,String(lt),options))return null;for(const c of dom)if(!satisfies(eq,String(c),options))return!1;return!0}let higher,lower,hasDomLT,hasDomGT,needDomLTPre=lt&&!options.includePrerelease&<.semver.prerelease.length?lt.semver:!1,needDomGTPre=gt&&!options.includePrerelease&>.semver.prerelease.length?gt.semver:!1;needDomLTPre&&needDomLTPre.prerelease.length===1&<.operator==="<"&&needDomLTPre.prerelease[0]===0&&(needDomLTPre=!1);for(const c of dom){if(hasDomGT=hasDomGT||c.operator===">"||c.operator===">=",hasDomLT=hasDomLT||c.operator==="<"||c.operator==="<=",gt){if(needDomGTPre&&c.semver.prerelease&&c.semver.prerelease.length&&c.semver.major===needDomGTPre.major&&c.semver.minor===needDomGTPre.minor&&c.semver.patch===needDomGTPre.patch&&(needDomGTPre=!1),c.operator===">"||c.operator===">="){if(higher=higherGT(gt,c,options),higher===c&&higher!==gt)return!1}else if(gt.operator===">="&&!satisfies(gt.semver,String(c),options))return!1}if(lt){if(needDomLTPre&&c.semver.prerelease&&c.semver.prerelease.length&&c.semver.major===needDomLTPre.major&&c.semver.minor===needDomLTPre.minor&&c.semver.patch===needDomLTPre.patch&&(needDomLTPre=!1),c.operator==="<"||c.operator==="<="){if(lower=lowerLT(lt,c,options),lower===c&&lower!==lt)return!1}else if(lt.operator==="<="&&!satisfies(lt.semver,String(c),options))return!1}if(!c.operator&&(lt||gt)&>ltComp!==0)return!1}return!(gt&&hasDomLT&&!lt&>ltComp!==0||lt&&hasDomGT&&!gt&>ltComp!==0||needDomGTPre||needDomLTPre)},higherGT=(a,b,options)=>{if(!a)return b;const comp=compare(a.semver,b.semver,options);return comp>0?a:comp<0||b.operator===">"&&a.operator===">="?b:a},lowerLT=(a,b,options)=>{if(!a)return b;const comp=compare(a.semver,b.semver,options);return comp<0?a:comp>0||b.operator==="<"&&a.operator==="<="?b:a};module.exports=subset},11734:(module,__unused_webpack_exports,__webpack_require__)=>{const Range=__webpack_require__(69381),toComparators=(range,options)=>new Range(range,options).set.map(comp=>comp.map(c=>c.value).join(" ").trim().split(" "));module.exports=toComparators},20881:(module,__unused_webpack_exports,__webpack_require__)=>{const Range=__webpack_require__(69381),validRange=(range,options)=>{try{return new Range(range,options).range||"*"}catch{return null}};module.exports=validRange},65959:module=>{"use strict";module.exports=2147483647},5493:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var toPosInt=__webpack_require__(61895),maxTimeout=__webpack_require__(65959);module.exports=function(value){if(value=toPosInt(value),value>maxTimeout)throw new TypeError(value+" exceeds maximum possible timeout");return value}},49723:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var isPrototype=__webpack_require__(47141);module.exports=function(value){if(typeof value!="function"||!hasOwnProperty.call(value,"length"))return!1;try{if(typeof value.length!="number"||typeof value.call!="function"||typeof value.apply!="function")return!1}catch{return!1}return!isPrototype(value)}},27886:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var isValue=__webpack_require__(36866),possibleTypes={object:!0,function:!0,undefined:!0};module.exports=function(value){return isValue(value)?hasOwnProperty.call(possibleTypes,typeof value):!1}},41879:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var isFunction=__webpack_require__(49723),classRe=/^\s*class[\s{/}]/,functionToString=Function.prototype.toString;module.exports=function(value){return!(!isFunction(value)||classRe.test(functionToString.call(value)))}},47141:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var isObject=__webpack_require__(27886);module.exports=function(value){if(!isObject(value))return!1;try{return value.constructor?value.constructor.prototype===value:!1}catch{return!1}}},36866:module=>{"use strict";var _undefined=void 0;module.exports=function(value){return value!==_undefined&&value!==null}},1307:module=>{"use strict";module.exports=function(Yallist){Yallist.prototype[Symbol.iterator]=function*(){for(let walker=this.head;walker;walker=walker.next)yield walker.value}}},38871:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=Yallist,Yallist.Node=Node,Yallist.create=Yallist;function Yallist(list){var self2=this;if(self2 instanceof Yallist||(self2=new Yallist),self2.tail=null,self2.head=null,self2.length=0,list&&typeof list.forEach=="function")list.forEach(function(item){self2.push(item)});else if(arguments.length>0)for(var i=0,l=arguments.length;i<l;i++)self2.push(arguments[i]);return self2}Yallist.prototype.removeNode=function(node){if(node.list!==this)throw new Error("removing node which does not belong to this list");var next=node.next,prev=node.prev;return next&&(next.prev=prev),prev&&(prev.next=next),node===this.head&&(this.head=next),node===this.tail&&(this.tail=prev),node.list.length--,node.next=null,node.prev=null,node.list=null,next},Yallist.prototype.unshiftNode=function(node){if(node!==this.head){node.list&&node.list.removeNode(node);var head=this.head;node.list=this,node.next=head,head&&(head.prev=node),this.head=node,this.tail||(this.tail=node),this.length++}},Yallist.prototype.pushNode=function(node){if(node!==this.tail){node.list&&node.list.removeNode(node);var tail=this.tail;node.list=this,node.prev=tail,tail&&(tail.next=node),this.tail=node,this.head||(this.head=node),this.length++}},Yallist.prototype.push=function(){for(var i=0,l=arguments.length;i<l;i++)push(this,arguments[i]);return this.length},Yallist.prototype.unshift=function(){for(var i=0,l=arguments.length;i<l;i++)unshift(this,arguments[i]);return this.length},Yallist.prototype.pop=function(){if(!!this.tail){var res=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,res}},Yallist.prototype.shift=function(){if(!!this.head){var res=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,res}},Yallist.prototype.forEach=function(fn,thisp){thisp=thisp||this;for(var walker=this.head,i=0;walker!==null;i++)fn.call(thisp,walker.value,i,this),walker=walker.next},Yallist.prototype.forEachReverse=function(fn,thisp){thisp=thisp||this;for(var walker=this.tail,i=this.length-1;walker!==null;i--)fn.call(thisp,walker.value,i,this),walker=walker.prev},Yallist.prototype.get=function(n){for(var i=0,walker=this.head;walker!==null&&i<n;i++)walker=walker.next;if(i===n&&walker!==null)return walker.value},Yallist.prototype.getReverse=function(n){for(var i=0,walker=this.tail;walker!==null&&i<n;i++)walker=walker.prev;if(i===n&&walker!==null)return walker.value},Yallist.prototype.map=function(fn,thisp){thisp=thisp||this;for(var res=new Yallist,walker=this.head;walker!==null;)res.push(fn.call(thisp,walker.value,this)),walker=walker.next;return res},Yallist.prototype.mapReverse=function(fn,thisp){thisp=thisp||this;for(var res=new Yallist,walker=this.tail;walker!==null;)res.push(fn.call(thisp,walker.value,this)),walker=walker.prev;return res},Yallist.prototype.reduce=function(fn,initial){var acc,walker=this.head;if(arguments.length>1)acc=initial;else if(this.head)walker=this.head.next,acc=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=0;walker!==null;i++)acc=fn(acc,walker.value,i),walker=walker.next;return acc},Yallist.prototype.reduceReverse=function(fn,initial){var acc,walker=this.tail;if(arguments.length>1)acc=initial;else if(this.tail)walker=this.tail.prev,acc=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=this.length-1;walker!==null;i--)acc=fn(acc,walker.value,i),walker=walker.prev;return acc},Yallist.prototype.toArray=function(){for(var arr=new Array(this.length),i=0,walker=this.head;walker!==null;i++)arr[i]=walker.value,walker=walker.next;return arr},Yallist.prototype.toArrayReverse=function(){for(var arr=new Array(this.length),i=0,walker=this.tail;walker!==null;i++)arr[i]=walker.value,walker=walker.prev;return arr},Yallist.prototype.slice=function(from,to){to=to||this.length,to<0&&(to+=this.length),from=from||0,from<0&&(from+=this.length);var ret=new Yallist;if(to<from||to<0)return ret;from<0&&(from=0),to>this.length&&(to=this.length);for(var i=0,walker=this.head;walker!==null&&i<from;i++)walker=walker.next;for(;walker!==null&&i<to;i++,walker=walker.next)ret.push(walker.value);return ret},Yallist.prototype.sliceReverse=function(from,to){to=to||this.length,to<0&&(to+=this.length),from=from||0,from<0&&(from+=this.length);var ret=new Yallist;if(to<from||to<0)return ret;from<0&&(from=0),to>this.length&&(to=this.length);for(var i=this.length,walker=this.tail;walker!==null&&i>to;i--)walker=walker.prev;for(;walker!==null&&i>from;i--,walker=walker.prev)ret.push(walker.value);return ret},Yallist.prototype.splice=function(start,deleteCount,...nodes){start>this.length&&(start=this.length-1),start<0&&(start=this.length+start);for(var i=0,walker=this.head;walker!==null&&i<start;i++)walker=walker.next;for(var ret=[],i=0;walker&&i<deleteCount;i++)ret.push(walker.value),walker=this.removeNode(walker);walker===null&&(walker=this.tail),walker!==this.head&&walker!==this.tail&&(walker=walker.prev);for(var i=0;i<nodes.length;i++)walker=insert(this,walker,nodes[i]);return ret},Yallist.prototype.reverse=function(){for(var head=this.head,tail=this.tail,walker=head;walker!==null;walker=walker.prev){var p=walker.prev;walker.prev=walker.next,walker.next=p}return this.head=tail,this.tail=head,this};function insert(self2,node,value){var inserted=node===self2.head?new Node(value,null,node,self2):new Node(value,node,node.next,self2);return inserted.next===null&&(self2.tail=inserted),inserted.prev===null&&(self2.head=inserted),self2.length++,inserted}function push(self2,item){self2.tail=new Node(item,self2.tail,null,self2),self2.head||(self2.head=self2.tail),self2.length++}function unshift(self2,item){self2.head=new Node(item,null,self2.head,self2),self2.tail||(self2.tail=self2.head),self2.length++}function Node(value,prev,next,list){if(!(this instanceof Node))return new Node(value,prev,next,list);this.list=list,this.value=value,prev?(prev.next=this,this.prev=prev):this.prev=null,next?(next.prev=this,this.next=next):this.next=null}try{__webpack_require__(1307)(Yallist)}catch{}},36676:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.NavigationProvider=exports.useNavigation=exports.useNavigate=exports.useLocation=exports.Link=void 0;var link_1=__webpack_require__(65513);Object.defineProperty(exports,"Link",{enumerable:!0,get:function(){return link_1.Link}});var use_location_1=__webpack_require__(33808);Object.defineProperty(exports,"useLocation",{enumerable:!0,get:function(){return use_location_1.useLocation}});var use_navigate_1=__webpack_require__(20786);Object.defineProperty(exports,"useNavigate",{enumerable:!0,get:function(){return use_navigate_1.useNavigate}});var navigation_provider_1=__webpack_require__(89994);Object.defineProperty(exports,"useNavigation",{enumerable:!0,get:function(){return navigation_provider_1.useNavigation}}),Object.defineProperty(exports,"NavigationProvider",{enumerable:!0,get:function(){return navigation_provider_1.NavigationProvider}})},65513:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k),Object.defineProperty(o,k2,{enumerable:!0,get:function(){return m[k]}})}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)k!=="default"&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Link=void 0;const react_1=__importStar(__webpack_require__(59496)),navigation_provider_1=__webpack_require__(89994),native_link_1=__webpack_require__(44210);exports.Link=(0,react_1.forwardRef)(function(props,ref){const ActualLink=(0,navigation_provider_1.useNavigation)().Link||native_link_1.NativeLink;return props.native||props.external?react_1.default.createElement(native_link_1.NativeLink,Object.assign({},props,{ref})):react_1.default.createElement(ActualLink,Object.assign({},props,{ref}))})},44210:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k),Object.defineProperty(o,k2,{enumerable:!0,get:function(){return m[k]}})}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)k!=="default"&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.NativeLink=void 0;const react_1=__importStar(__webpack_require__(59496)),classnames_1=__importDefault(__webpack_require__(19803)),base_ui_routing_compare_url_1=__webpack_require__(33789),use_location_1=__webpack_require__(33808),externalLinkAttributes={rel:"noopener",target:"_blank"};exports.NativeLink=(0,react_1.forwardRef)(function(_a,ref){var{className,style,activeClassName,activeStyle,active,strict,exact,href,external,native,state}=_a,rest=__rest(_a,["className","style","activeClassName","activeStyle","active","strict","exact","href","external","native","state"]);const location=(0,use_location_1.useLocation)(),shouldCalcActive=!!activeClassName||!!activeStyle,isActive=(0,react_1.useMemo)(()=>shouldCalcActive?typeof active=="boolean"?active:!location||!href?!1:(0,base_ui_routing_compare_url_1.compareUrl)(location.pathname,href,{exact,strict}):!1,[active,href,location,shouldCalcActive]),externalProps=external?externalLinkAttributes:{},combinedStyles=(0,react_1.useMemo)(()=>isActive&&activeStyle?Object.assign(Object.assign({},style),activeStyle):style,[isActive,style]);return react_1.default.createElement("a",Object.assign({},externalProps,rest,{ref,href,className:(0,classnames_1.default)(className,isActive&&activeClassName),style:combinedStyles}))})},89994:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k),Object.defineProperty(o,k2,{enumerable:!0,get:function(){return m[k]}})}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)k!=="default"&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result};Object.defineProperty(exports,"__esModule",{value:!0}),exports.NavigationProvider=exports.useNavigation=exports.NavigationContext=void 0;const react_1=__importStar(__webpack_require__(59496));exports.NavigationContext=react_1.default.createContext({});function useNavigation(){return(0,react_1.useContext)(exports.NavigationContext)}exports.useNavigation=useNavigation;function NavigationProvider({children,implementation}){return react_1.default.createElement(exports.NavigationContext.Provider,{value:implementation},children)}exports.NavigationProvider=NavigationProvider},33808:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.useLocation=void 0;const navigation_provider_1=__webpack_require__(89994);function useLocation(){return((0,navigation_provider_1.useNavigation)().useLocation||NativeUseLocation)()}exports.useLocation=useLocation;function NativeUseLocation(){if(!(typeof window>"u"))return window.location}},20786:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.useNavigate=void 0;const navigation_provider_1=__webpack_require__(89994);function useNavigate(){var _a;const nav=(0,navigation_provider_1.useNavigation)();return((_a=nav.useNavigate)===null||_a===void 0?void 0:_a.call(nav))||nativeNavigator}exports.useNavigate=useNavigate;function nativeNavigator(target,{replace}={}){if(typeof window>"u")throw new Error("base-react.navigation.use-location - cannot use native navigator outside of browser. Inject a custom useNavigate, or use navigation after mount");const{location,history}=window;typeof target=="number"?history.go(target):replace?location.replace(target):location.assign(target)}},75076:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.LoaderRibbon=void 0;var loader_ribbon_1=__webpack_require__(85798);Object.defineProperty(exports,"LoaderRibbon",{enumerable:!0,get:function(){return loader_ribbon_1.LoaderRibbon}})},85798:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.LoaderRibbon=void 0;const classnames_1=__importDefault(__webpack_require__(97754)),react_1=__importDefault(__webpack_require__(59496)),loader_ribbon_module_scss_1=__importDefault(__webpack_require__(2700));function LoaderRibbon(_a){var{active,className}=_a,rest=__rest(_a,["active","className"]);return react_1.default.createElement("div",Object.assign({},rest,{className:classnames_1.default(className,loader_ribbon_module_scss_1.default.loader,active&&loader_ribbon_module_scss_1.default.loading)}),react_1.default.createElement("div",{className:loader_ribbon_module_scss_1.default.progress}))}exports.LoaderRibbon=LoaderRibbon},90398:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.compareUrl=void 0;const url_parse_1=__importDefault(__webpack_require__(54386));function compareUrl(baseUrl,toMatchUrl,{exact,strict}={}){if(baseUrl===toMatchUrl)return!0;strict||(baseUrl=baseUrl.replace(/\/(?=[?#]|$)/,""),toMatchUrl=toMatchUrl.replace(/\/(?=[?#]|$)/,""));const base=url_parse_1.default(baseUrl),match=url_parse_1.default(toMatchUrl),subUrl=isSubUrl(base,match),exactMatch=!exact||isExactMatch(base,match),strictMatch=!strict||isStrictMatch(base,match);return subUrl&&exactMatch&&strictMatch}exports.compareUrl=compareUrl;function isSubUrl(base,match){return(!match.protocol||match.protocol===base.protocol)&&(!match.hostname||match.hostname===base.hostname)&&(!match.port||match.port===base.port)&&(!match.pathname||base.pathname.startsWith(match.pathname))&&(!match.query||isSubObject(match.query,base.query))&&(!match.hash||match.hash===base.hash)&&(!match.password||match.password===base.password)&&(!match.username||match.username===base.username)}function isExactMatch(base,match){return(!match.pathname||base.pathname===match.pathname)&&(!match.query||isSubObject(base.query,match.query))}function isStrictMatch(base,match){return!match.pathname||base.pathname.endsWith("/")===match.pathname.endsWith("/")}function isSubObject(source,target){return Object.keys(source).every(key=>source[key]===target[key])}},33789:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.compareUrl=void 0;var compare_url_1=__webpack_require__(90398);Object.defineProperty(exports,"compareUrl",{enumerable:!0,get:function(){return compare_url_1.compareUrl}})},93155:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Composer=void 0;const react_1=__importDefault(__webpack_require__(59496));function Composer(props){const{components=[],children}=props,arrayified=components.map(tuple=>Array.isArray(tuple)?tuple:[tuple,void 0]);return react_1.default.createElement(react_1.default.Fragment,null,arrayified.reduceRight((acc,[Comp,forwardProps])=>react_1.default.createElement(Comp,Object.assign({},forwardProps),acc),children))}exports.Composer=Composer},80893:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Composer=void 0;var composer_1=__webpack_require__(93155);Object.defineProperty(exports,"Composer",{enumerable:!0,get:function(){return composer_1.Composer}})},93042:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.links=void 0;var links_1=__webpack_require__(39204);Object.defineProperty(exports,"links",{enumerable:!0,get:function(){return links_1.links}})},39204:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.links=void 0,exports.links={docs:"https://bit.dev/docs",github:"https://github.com/teambit/bit",slack:"https://join.slack.com/t/bit-dev-community/shared_invite/zt-1el4b4sb5-FpgRefqUiZbUH9lvnHgwRg",blog:"https://bit.cloud/blog",twitter:"https://twitter.com/bitdev_",linkedin:"https://www.linkedin.com/company/bit-dev",bitRegistry:"https://node.bit.cloud",youtube:"https://www.youtube.com/c/Bitdev/videos",careers:"https://bit.breezy.hr"}},33515:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.ContactIcons=void 0;const react_1=__importDefault(__webpack_require__(59496)),base_react_navigation_link_1=__webpack_require__(36676),community_constants_links_1=__webpack_require__(93042),styles={link:{textDecoration:"none",lineHeight:"inherit",color:"unset"},logo:{width:"24px",height:"24px",margin:"0 13px"}};function ContactIcons(props){return react_1.default.createElement("div",Object.assign({style:Object.assign(Object.assign({},styles.iconLine),props.style)},props),react_1.default.createElement(base_react_navigation_link_1.Link,{external:!0,style:styles.link,href:community_constants_links_1.links.slack},react_1.default.createElement("img",{alt:"slack",style:styles.logo,src:"https://static.bit.dev/harmony/slack-round-icon.svg"})),react_1.default.createElement(base_react_navigation_link_1.Link,{external:!0,style:styles.link,href:community_constants_links_1.links.github},react_1.default.createElement("img",{alt:"github",style:styles.logo,src:"https://static.bit.dev/harmony/github.svg"})),react_1.default.createElement(base_react_navigation_link_1.Link,{external:!0,style:styles.link,href:community_constants_links_1.links.docs},react_1.default.createElement("img",{alt:"bit docs",style:styles.logo,src:"https://static.bit.dev/bit-logo.svg"})))}exports.ContactIcons=ContactIcons},16382:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.ErrorPage=void 0;const react_1=__importDefault(__webpack_require__(59496)),styles={errorPage:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",margin:"auto",padding:"24px",textAlign:"center"},title:{fontWeight:"bold",margin:"0 0 24px 0"},img:{maxWidth:"700px",marginBottom:"24px",width:"100%"}},inlineStyles=`
|
69
|
+
***************************************************************************** */var Reflect2;(function(Reflect3){(function(factory){var root=typeof __webpack_require__.g=="object"?__webpack_require__.g:typeof self=="object"?self:typeof this=="object"?this:Function("return this;")(),exporter=makeExporter(Reflect3);typeof root.Reflect>"u"?root.Reflect=Reflect3:exporter=makeExporter(root.Reflect,exporter),factory(exporter);function makeExporter(target,previous){return function(key,value){typeof target[key]!="function"&&Object.defineProperty(target,key,{configurable:!0,writable:!0,value}),previous&&previous(key,value)}}})(function(exporter){var hasOwn=Object.prototype.hasOwnProperty,supportsSymbol=typeof Symbol=="function",toPrimitiveSymbol=supportsSymbol&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",iteratorSymbol=supportsSymbol&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",supportsCreate=typeof Object.create=="function",supportsProto={__proto__:[]}instanceof Array,downLevel=!supportsCreate&&!supportsProto,HashMap={create:supportsCreate?function(){return MakeDictionary(Object.create(null))}:supportsProto?function(){return MakeDictionary({__proto__:null})}:function(){return MakeDictionary({})},has:downLevel?function(map,key){return hasOwn.call(map,key)}:function(map,key){return key in map},get:downLevel?function(map,key){return hasOwn.call(map,key)?map[key]:void 0}:function(map,key){return map[key]}},functionPrototype=Object.getPrototypeOf(Function),usePolyfill=typeof process=="object"&&process.env&&process.env.REFLECT_METADATA_USE_MAP_POLYFILL==="true",_Map=!usePolyfill&&typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:CreateMapPolyfill(),_Set=!usePolyfill&&typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:CreateSetPolyfill(),_WeakMap=!usePolyfill&&typeof WeakMap=="function"?WeakMap:CreateWeakMapPolyfill(),Metadata=new _WeakMap;function decorate(decorators,target,propertyKey,attributes){if(IsUndefined(propertyKey)){if(!IsArray(decorators))throw new TypeError;if(!IsConstructor(target))throw new TypeError;return DecorateConstructor(decorators,target)}else{if(!IsArray(decorators))throw new TypeError;if(!IsObject(target))throw new TypeError;if(!IsObject(attributes)&&!IsUndefined(attributes)&&!IsNull(attributes))throw new TypeError;return IsNull(attributes)&&(attributes=void 0),propertyKey=ToPropertyKey(propertyKey),DecorateProperty(decorators,target,propertyKey,attributes)}}exporter("decorate",decorate);function metadata(metadataKey,metadataValue){function decorator(target,propertyKey){if(!IsObject(target))throw new TypeError;if(!IsUndefined(propertyKey)&&!IsPropertyKey(propertyKey))throw new TypeError;OrdinaryDefineOwnMetadata(metadataKey,metadataValue,target,propertyKey)}return decorator}exporter("metadata",metadata);function defineMetadata(metadataKey,metadataValue,target,propertyKey){if(!IsObject(target))throw new TypeError;return IsUndefined(propertyKey)||(propertyKey=ToPropertyKey(propertyKey)),OrdinaryDefineOwnMetadata(metadataKey,metadataValue,target,propertyKey)}exporter("defineMetadata",defineMetadata);function hasMetadata(metadataKey,target,propertyKey){if(!IsObject(target))throw new TypeError;return IsUndefined(propertyKey)||(propertyKey=ToPropertyKey(propertyKey)),OrdinaryHasMetadata(metadataKey,target,propertyKey)}exporter("hasMetadata",hasMetadata);function hasOwnMetadata(metadataKey,target,propertyKey){if(!IsObject(target))throw new TypeError;return IsUndefined(propertyKey)||(propertyKey=ToPropertyKey(propertyKey)),OrdinaryHasOwnMetadata(metadataKey,target,propertyKey)}exporter("hasOwnMetadata",hasOwnMetadata);function getMetadata(metadataKey,target,propertyKey){if(!IsObject(target))throw new TypeError;return IsUndefined(propertyKey)||(propertyKey=ToPropertyKey(propertyKey)),OrdinaryGetMetadata(metadataKey,target,propertyKey)}exporter("getMetadata",getMetadata);function getOwnMetadata(metadataKey,target,propertyKey){if(!IsObject(target))throw new TypeError;return IsUndefined(propertyKey)||(propertyKey=ToPropertyKey(propertyKey)),OrdinaryGetOwnMetadata(metadataKey,target,propertyKey)}exporter("getOwnMetadata",getOwnMetadata);function getMetadataKeys(target,propertyKey){if(!IsObject(target))throw new TypeError;return IsUndefined(propertyKey)||(propertyKey=ToPropertyKey(propertyKey)),OrdinaryMetadataKeys(target,propertyKey)}exporter("getMetadataKeys",getMetadataKeys);function getOwnMetadataKeys(target,propertyKey){if(!IsObject(target))throw new TypeError;return IsUndefined(propertyKey)||(propertyKey=ToPropertyKey(propertyKey)),OrdinaryOwnMetadataKeys(target,propertyKey)}exporter("getOwnMetadataKeys",getOwnMetadataKeys);function deleteMetadata(metadataKey,target,propertyKey){if(!IsObject(target))throw new TypeError;IsUndefined(propertyKey)||(propertyKey=ToPropertyKey(propertyKey));var metadataMap=GetOrCreateMetadataMap(target,propertyKey,!1);if(IsUndefined(metadataMap)||!metadataMap.delete(metadataKey))return!1;if(metadataMap.size>0)return!0;var targetMetadata=Metadata.get(target);return targetMetadata.delete(propertyKey),targetMetadata.size>0||Metadata.delete(target),!0}exporter("deleteMetadata",deleteMetadata);function DecorateConstructor(decorators,target){for(var i=decorators.length-1;i>=0;--i){var decorator=decorators[i],decorated=decorator(target);if(!IsUndefined(decorated)&&!IsNull(decorated)){if(!IsConstructor(decorated))throw new TypeError;target=decorated}}return target}function DecorateProperty(decorators,target,propertyKey,descriptor){for(var i=decorators.length-1;i>=0;--i){var decorator=decorators[i],decorated=decorator(target,propertyKey,descriptor);if(!IsUndefined(decorated)&&!IsNull(decorated)){if(!IsObject(decorated))throw new TypeError;descriptor=decorated}}return descriptor}function GetOrCreateMetadataMap(O,P,Create){var targetMetadata=Metadata.get(O);if(IsUndefined(targetMetadata)){if(!Create)return;targetMetadata=new _Map,Metadata.set(O,targetMetadata)}var metadataMap=targetMetadata.get(P);if(IsUndefined(metadataMap)){if(!Create)return;metadataMap=new _Map,targetMetadata.set(P,metadataMap)}return metadataMap}function OrdinaryHasMetadata(MetadataKey,O,P){var hasOwn2=OrdinaryHasOwnMetadata(MetadataKey,O,P);if(hasOwn2)return!0;var parent=OrdinaryGetPrototypeOf(O);return IsNull(parent)?!1:OrdinaryHasMetadata(MetadataKey,parent,P)}function OrdinaryHasOwnMetadata(MetadataKey,O,P){var metadataMap=GetOrCreateMetadataMap(O,P,!1);return IsUndefined(metadataMap)?!1:ToBoolean(metadataMap.has(MetadataKey))}function OrdinaryGetMetadata(MetadataKey,O,P){var hasOwn2=OrdinaryHasOwnMetadata(MetadataKey,O,P);if(hasOwn2)return OrdinaryGetOwnMetadata(MetadataKey,O,P);var parent=OrdinaryGetPrototypeOf(O);if(!IsNull(parent))return OrdinaryGetMetadata(MetadataKey,parent,P)}function OrdinaryGetOwnMetadata(MetadataKey,O,P){var metadataMap=GetOrCreateMetadataMap(O,P,!1);if(!IsUndefined(metadataMap))return metadataMap.get(MetadataKey)}function OrdinaryDefineOwnMetadata(MetadataKey,MetadataValue,O,P){var metadataMap=GetOrCreateMetadataMap(O,P,!0);metadataMap.set(MetadataKey,MetadataValue)}function OrdinaryMetadataKeys(O,P){var ownKeys=OrdinaryOwnMetadataKeys(O,P),parent=OrdinaryGetPrototypeOf(O);if(parent===null)return ownKeys;var parentKeys=OrdinaryMetadataKeys(parent,P);if(parentKeys.length<=0)return ownKeys;if(ownKeys.length<=0)return parentKeys;for(var set=new _Set,keys=[],_i=0,ownKeys_1=ownKeys;_i<ownKeys_1.length;_i++){var key=ownKeys_1[_i],hasKey=set.has(key);hasKey||(set.add(key),keys.push(key))}for(var _a=0,parentKeys_1=parentKeys;_a<parentKeys_1.length;_a++){var key=parentKeys_1[_a],hasKey=set.has(key);hasKey||(set.add(key),keys.push(key))}return keys}function OrdinaryOwnMetadataKeys(O,P){var keys=[],metadataMap=GetOrCreateMetadataMap(O,P,!1);if(IsUndefined(metadataMap))return keys;for(var keysObj=metadataMap.keys(),iterator=GetIterator(keysObj),k=0;;){var next=IteratorStep(iterator);if(!next)return keys.length=k,keys;var nextValue=IteratorValue(next);try{keys[k]=nextValue}catch(e){try{IteratorClose(iterator)}finally{throw e}}k++}}function Type(x){if(x===null)return 1;switch(typeof x){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return x===null?1:6;default:return 6}}function IsUndefined(x){return x===void 0}function IsNull(x){return x===null}function IsSymbol(x){return typeof x=="symbol"}function IsObject(x){return typeof x=="object"?x!==null:typeof x=="function"}function ToPrimitive(input,PreferredType){switch(Type(input)){case 0:return input;case 1:return input;case 2:return input;case 3:return input;case 4:return input;case 5:return input}var hint=PreferredType===3?"string":PreferredType===5?"number":"default",exoticToPrim=GetMethod(input,toPrimitiveSymbol);if(exoticToPrim!==void 0){var result=exoticToPrim.call(input,hint);if(IsObject(result))throw new TypeError;return result}return OrdinaryToPrimitive(input,hint==="default"?"number":hint)}function OrdinaryToPrimitive(O,hint){if(hint==="string"){var toString_1=O.toString;if(IsCallable(toString_1)){var result=toString_1.call(O);if(!IsObject(result))return result}var valueOf=O.valueOf;if(IsCallable(valueOf)){var result=valueOf.call(O);if(!IsObject(result))return result}}else{var valueOf=O.valueOf;if(IsCallable(valueOf)){var result=valueOf.call(O);if(!IsObject(result))return result}var toString_2=O.toString;if(IsCallable(toString_2)){var result=toString_2.call(O);if(!IsObject(result))return result}}throw new TypeError}function ToBoolean(argument){return!!argument}function ToString(argument){return""+argument}function ToPropertyKey(argument){var key=ToPrimitive(argument,3);return IsSymbol(key)?key:ToString(key)}function IsArray(argument){return Array.isArray?Array.isArray(argument):argument instanceof Object?argument instanceof Array:Object.prototype.toString.call(argument)==="[object Array]"}function IsCallable(argument){return typeof argument=="function"}function IsConstructor(argument){return typeof argument=="function"}function IsPropertyKey(argument){switch(Type(argument)){case 3:return!0;case 4:return!0;default:return!1}}function GetMethod(V,P){var func=V[P];if(func!=null){if(!IsCallable(func))throw new TypeError;return func}}function GetIterator(obj){var method=GetMethod(obj,iteratorSymbol);if(!IsCallable(method))throw new TypeError;var iterator=method.call(obj);if(!IsObject(iterator))throw new TypeError;return iterator}function IteratorValue(iterResult){return iterResult.value}function IteratorStep(iterator){var result=iterator.next();return result.done?!1:result}function IteratorClose(iterator){var f=iterator.return;f&&f.call(iterator)}function OrdinaryGetPrototypeOf(O){var proto=Object.getPrototypeOf(O);if(typeof O!="function"||O===functionPrototype||proto!==functionPrototype)return proto;var prototype=O.prototype,prototypeProto=prototype&&Object.getPrototypeOf(prototype);if(prototypeProto==null||prototypeProto===Object.prototype)return proto;var constructor=prototypeProto.constructor;return typeof constructor!="function"||constructor===O?proto:constructor}function CreateMapPolyfill(){var cacheSentinel={},arraySentinel=[],MapIterator=function(){function MapIterator2(keys,values,selector){this._index=0,this._keys=keys,this._values=values,this._selector=selector}return MapIterator2.prototype["@@iterator"]=function(){return this},MapIterator2.prototype[iteratorSymbol]=function(){return this},MapIterator2.prototype.next=function(){var index=this._index;if(index>=0&&index<this._keys.length){var result=this._selector(this._keys[index],this._values[index]);return index+1>=this._keys.length?(this._index=-1,this._keys=arraySentinel,this._values=arraySentinel):this._index++,{value:result,done:!1}}return{value:void 0,done:!0}},MapIterator2.prototype.throw=function(error){throw this._index>=0&&(this._index=-1,this._keys=arraySentinel,this._values=arraySentinel),error},MapIterator2.prototype.return=function(value){return this._index>=0&&(this._index=-1,this._keys=arraySentinel,this._values=arraySentinel),{value,done:!0}},MapIterator2}();return function(){function Map2(){this._keys=[],this._values=[],this._cacheKey=cacheSentinel,this._cacheIndex=-2}return Object.defineProperty(Map2.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),Map2.prototype.has=function(key){return this._find(key,!1)>=0},Map2.prototype.get=function(key){var index=this._find(key,!1);return index>=0?this._values[index]:void 0},Map2.prototype.set=function(key,value){var index=this._find(key,!0);return this._values[index]=value,this},Map2.prototype.delete=function(key){var index=this._find(key,!1);if(index>=0){for(var size=this._keys.length,i=index+1;i<size;i++)this._keys[i-1]=this._keys[i],this._values[i-1]=this._values[i];return this._keys.length--,this._values.length--,key===this._cacheKey&&(this._cacheKey=cacheSentinel,this._cacheIndex=-2),!0}return!1},Map2.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=cacheSentinel,this._cacheIndex=-2},Map2.prototype.keys=function(){return new MapIterator(this._keys,this._values,getKey)},Map2.prototype.values=function(){return new MapIterator(this._keys,this._values,getValue)},Map2.prototype.entries=function(){return new MapIterator(this._keys,this._values,getEntry)},Map2.prototype["@@iterator"]=function(){return this.entries()},Map2.prototype[iteratorSymbol]=function(){return this.entries()},Map2.prototype._find=function(key,insert){return this._cacheKey!==key&&(this._cacheIndex=this._keys.indexOf(this._cacheKey=key)),this._cacheIndex<0&&insert&&(this._cacheIndex=this._keys.length,this._keys.push(key),this._values.push(void 0)),this._cacheIndex},Map2}();function getKey(key,_){return key}function getValue(_,value){return value}function getEntry(key,value){return[key,value]}}function CreateSetPolyfill(){return function(){function Set2(){this._map=new _Map}return Object.defineProperty(Set2.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),Set2.prototype.has=function(value){return this._map.has(value)},Set2.prototype.add=function(value){return this._map.set(value,value),this},Set2.prototype.delete=function(value){return this._map.delete(value)},Set2.prototype.clear=function(){this._map.clear()},Set2.prototype.keys=function(){return this._map.keys()},Set2.prototype.values=function(){return this._map.values()},Set2.prototype.entries=function(){return this._map.entries()},Set2.prototype["@@iterator"]=function(){return this.keys()},Set2.prototype[iteratorSymbol]=function(){return this.keys()},Set2}()}function CreateWeakMapPolyfill(){var UUID_SIZE=16,keys=HashMap.create(),rootKey=CreateUniqueKey();return function(){function WeakMap2(){this._key=CreateUniqueKey()}return WeakMap2.prototype.has=function(target){var table=GetOrCreateWeakMapTable(target,!1);return table!==void 0?HashMap.has(table,this._key):!1},WeakMap2.prototype.get=function(target){var table=GetOrCreateWeakMapTable(target,!1);return table!==void 0?HashMap.get(table,this._key):void 0},WeakMap2.prototype.set=function(target,value){var table=GetOrCreateWeakMapTable(target,!0);return table[this._key]=value,this},WeakMap2.prototype.delete=function(target){var table=GetOrCreateWeakMapTable(target,!1);return table!==void 0?delete table[this._key]:!1},WeakMap2.prototype.clear=function(){this._key=CreateUniqueKey()},WeakMap2}();function CreateUniqueKey(){var key;do key="@@WeakMap@@"+CreateUUID();while(HashMap.has(keys,key));return keys[key]=!0,key}function GetOrCreateWeakMapTable(target,create){if(!hasOwn.call(target,rootKey)){if(!create)return;Object.defineProperty(target,rootKey,{value:HashMap.create()})}return target[rootKey]}function FillRandomBytes(buffer,size){for(var i=0;i<size;++i)buffer[i]=Math.random()*255|0;return buffer}function GenRandomBytes(size){return typeof Uint8Array=="function"?typeof crypto<"u"?crypto.getRandomValues(new Uint8Array(size)):typeof msCrypto<"u"?msCrypto.getRandomValues(new Uint8Array(size)):FillRandomBytes(new Uint8Array(size),size):FillRandomBytes(new Array(size),size)}function CreateUUID(){var data=GenRandomBytes(UUID_SIZE);data[6]=data[6]&79|64,data[8]=data[8]&191|128;for(var result="",offset=0;offset<UUID_SIZE;++offset){var byte=data[offset];(offset===4||offset===6||offset===8)&&(result+="-"),byte<16&&(result+="0"),result+=byte.toString(16).toLowerCase()}return result}}function MakeDictionary(obj){return obj.__=void 0,delete obj.__,obj}})})(Reflect2||(Reflect2={}))},14116:(module,__unused_webpack_exports,__webpack_require__)=>{const ANY=Symbol("SemVer ANY");class Comparator{static get ANY(){return ANY}constructor(comp,options){if(options=parseOptions(options),comp instanceof Comparator){if(comp.loose===!!options.loose)return comp;comp=comp.value}comp=comp.trim().split(/\s+/).join(" "),debug("comparator",comp,options),this.options=options,this.loose=!!options.loose,this.parse(comp),this.semver===ANY?this.value="":this.value=this.operator+this.semver.version,debug("comp",this)}parse(comp){const r=this.options.loose?re[t.COMPARATORLOOSE]:re[t.COMPARATOR],m=comp.match(r);if(!m)throw new TypeError(`Invalid comparator: ${comp}`);this.operator=m[1]!==void 0?m[1]:"",this.operator==="="&&(this.operator=""),m[2]?this.semver=new SemVer(m[2],this.options.loose):this.semver=ANY}toString(){return this.value}test(version){if(debug("Comparator.test",version,this.options.loose),this.semver===ANY||version===ANY)return!0;if(typeof version=="string")try{version=new SemVer(version,this.options)}catch{return!1}return cmp(version,this.operator,this.semver,this.options)}intersects(comp,options){if(!(comp instanceof Comparator))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new Range(comp.value,options).test(this.value):comp.operator===""?comp.value===""?!0:new Range(this.value,options).test(comp.semver):(options=parseOptions(options),options.includePrerelease&&(this.value==="<0.0.0-0"||comp.value==="<0.0.0-0")||!options.includePrerelease&&(this.value.startsWith("<0.0.0")||comp.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&comp.operator.startsWith(">")||this.operator.startsWith("<")&&comp.operator.startsWith("<")||this.semver.version===comp.semver.version&&this.operator.includes("=")&&comp.operator.includes("=")||cmp(this.semver,"<",comp.semver,options)&&this.operator.startsWith(">")&&comp.operator.startsWith("<")||cmp(this.semver,">",comp.semver,options)&&this.operator.startsWith("<")&&comp.operator.startsWith(">")))}}module.exports=Comparator;const parseOptions=__webpack_require__(81930),{safeRe:re,t}=__webpack_require__(920),cmp=__webpack_require__(33364),debug=__webpack_require__(8335),SemVer=__webpack_require__(13973),Range=__webpack_require__(48139)},48139:(module,__unused_webpack_exports,__webpack_require__)=>{class Range{constructor(range,options){if(options=parseOptions(options),range instanceof Range)return range.loose===!!options.loose&&range.includePrerelease===!!options.includePrerelease?range:new Range(range.raw,options);if(range instanceof Comparator)return this.raw=range.value,this.set=[[range]],this.format(),this;if(this.options=options,this.loose=!!options.loose,this.includePrerelease=!!options.includePrerelease,this.raw=range.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(r=>this.parseRange(r)).filter(c=>c.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const first=this.set[0];if(this.set=this.set.filter(c=>!isNullSet(c[0])),this.set.length===0)this.set=[first];else if(this.set.length>1){for(const c of this.set)if(c.length===1&&isAny(c[0])){this.set=[c];break}}}this.format()}format(){return this.range=this.set.map(comps=>comps.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(range){const memoKey=((this.options.includePrerelease&&FLAG_INCLUDE_PRERELEASE)|(this.options.loose&&FLAG_LOOSE))+":"+range,cached=cache.get(memoKey);if(cached)return cached;const loose=this.options.loose,hr=loose?re[t.HYPHENRANGELOOSE]:re[t.HYPHENRANGE];range=range.replace(hr,hyphenReplace(this.options.includePrerelease)),debug("hyphen replace",range),range=range.replace(re[t.COMPARATORTRIM],comparatorTrimReplace),debug("comparator trim",range),range=range.replace(re[t.TILDETRIM],tildeTrimReplace),range=range.replace(re[t.CARETTRIM],caretTrimReplace);let rangeList=range.split(" ").map(comp=>parseComparator(comp,this.options)).join(" ").split(/\s+/).map(comp=>replaceGTE0(comp,this.options));loose&&(rangeList=rangeList.filter(comp=>(debug("loose invalid filter",comp,this.options),!!comp.match(re[t.COMPARATORLOOSE])))),debug("range list",rangeList);const rangeMap=new Map,comparators=rangeList.map(comp=>new Comparator(comp,this.options));for(const comp of comparators){if(isNullSet(comp))return[comp];rangeMap.set(comp.value,comp)}rangeMap.size>1&&rangeMap.has("")&&rangeMap.delete("");const result=[...rangeMap.values()];return cache.set(memoKey,result),result}intersects(range,options){if(!(range instanceof Range))throw new TypeError("a Range is required");return this.set.some(thisComparators=>isSatisfiable(thisComparators,options)&&range.set.some(rangeComparators=>isSatisfiable(rangeComparators,options)&&thisComparators.every(thisComparator=>rangeComparators.every(rangeComparator=>thisComparator.intersects(rangeComparator,options)))))}test(version){if(!version)return!1;if(typeof version=="string")try{version=new SemVer(version,this.options)}catch{return!1}for(let i=0;i<this.set.length;i++)if(testSet(this.set[i],version,this.options))return!0;return!1}}module.exports=Range;const LRU=__webpack_require__(41864),cache=new LRU({max:1e3}),parseOptions=__webpack_require__(81930),Comparator=__webpack_require__(14116),debug=__webpack_require__(8335),SemVer=__webpack_require__(13973),{safeRe:re,t,comparatorTrimReplace,tildeTrimReplace,caretTrimReplace}=__webpack_require__(920),{FLAG_INCLUDE_PRERELEASE,FLAG_LOOSE}=__webpack_require__(82335),isNullSet=c=>c.value==="<0.0.0-0",isAny=c=>c.value==="",isSatisfiable=(comparators,options)=>{let result=!0;const remainingComparators=comparators.slice();let testComparator=remainingComparators.pop();for(;result&&remainingComparators.length;)result=remainingComparators.every(otherComparator=>testComparator.intersects(otherComparator,options)),testComparator=remainingComparators.pop();return result},parseComparator=(comp,options)=>(debug("comp",comp,options),comp=replaceCarets(comp,options),debug("caret",comp),comp=replaceTildes(comp,options),debug("tildes",comp),comp=replaceXRanges(comp,options),debug("xrange",comp),comp=replaceStars(comp,options),debug("stars",comp),comp),isX=id=>!id||id.toLowerCase()==="x"||id==="*",replaceTildes=(comp,options)=>comp.trim().split(/\s+/).map(c=>replaceTilde(c,options)).join(" "),replaceTilde=(comp,options)=>{const r=options.loose?re[t.TILDELOOSE]:re[t.TILDE];return comp.replace(r,(_,M,m,p,pr)=>{debug("tilde",comp,_,M,m,p,pr);let ret;return isX(M)?ret="":isX(m)?ret=`>=${M}.0.0 <${+M+1}.0.0-0`:isX(p)?ret=`>=${M}.${m}.0 <${M}.${+m+1}.0-0`:pr?(debug("replaceTilde pr",pr),ret=`>=${M}.${m}.${p}-${pr} <${M}.${+m+1}.0-0`):ret=`>=${M}.${m}.${p} <${M}.${+m+1}.0-0`,debug("tilde return",ret),ret})},replaceCarets=(comp,options)=>comp.trim().split(/\s+/).map(c=>replaceCaret(c,options)).join(" "),replaceCaret=(comp,options)=>{debug("caret",comp,options);const r=options.loose?re[t.CARETLOOSE]:re[t.CARET],z=options.includePrerelease?"-0":"";return comp.replace(r,(_,M,m,p,pr)=>{debug("caret",comp,_,M,m,p,pr);let ret;return isX(M)?ret="":isX(m)?ret=`>=${M}.0.0${z} <${+M+1}.0.0-0`:isX(p)?M==="0"?ret=`>=${M}.${m}.0${z} <${M}.${+m+1}.0-0`:ret=`>=${M}.${m}.0${z} <${+M+1}.0.0-0`:pr?(debug("replaceCaret pr",pr),M==="0"?m==="0"?ret=`>=${M}.${m}.${p}-${pr} <${M}.${m}.${+p+1}-0`:ret=`>=${M}.${m}.${p}-${pr} <${M}.${+m+1}.0-0`:ret=`>=${M}.${m}.${p}-${pr} <${+M+1}.0.0-0`):(debug("no pr"),M==="0"?m==="0"?ret=`>=${M}.${m}.${p}${z} <${M}.${m}.${+p+1}-0`:ret=`>=${M}.${m}.${p}${z} <${M}.${+m+1}.0-0`:ret=`>=${M}.${m}.${p} <${+M+1}.0.0-0`),debug("caret return",ret),ret})},replaceXRanges=(comp,options)=>(debug("replaceXRanges",comp,options),comp.split(/\s+/).map(c=>replaceXRange(c,options)).join(" ")),replaceXRange=(comp,options)=>{comp=comp.trim();const r=options.loose?re[t.XRANGELOOSE]:re[t.XRANGE];return comp.replace(r,(ret,gtlt,M,m,p,pr)=>{debug("xRange",comp,ret,gtlt,M,m,p,pr);const xM=isX(M),xm=xM||isX(m),xp=xm||isX(p),anyX=xp;return gtlt==="="&&anyX&&(gtlt=""),pr=options.includePrerelease?"-0":"",xM?gtlt===">"||gtlt==="<"?ret="<0.0.0-0":ret="*":gtlt&&anyX?(xm&&(m=0),p=0,gtlt===">"?(gtlt=">=",xm?(M=+M+1,m=0,p=0):(m=+m+1,p=0)):gtlt==="<="&&(gtlt="<",xm?M=+M+1:m=+m+1),gtlt==="<"&&(pr="-0"),ret=`${gtlt+M}.${m}.${p}${pr}`):xm?ret=`>=${M}.0.0${pr} <${+M+1}.0.0-0`:xp&&(ret=`>=${M}.${m}.0${pr} <${M}.${+m+1}.0-0`),debug("xRange return",ret),ret})},replaceStars=(comp,options)=>(debug("replaceStars",comp,options),comp.trim().replace(re[t.STAR],"")),replaceGTE0=(comp,options)=>(debug("replaceGTE0",comp,options),comp.trim().replace(re[options.includePrerelease?t.GTE0PRE:t.GTE0],"")),hyphenReplace=incPr=>($0,from,fM,fm,fp,fpr,fb,to,tM,tm,tp,tpr,tb)=>(isX(fM)?from="":isX(fm)?from=`>=${fM}.0.0${incPr?"-0":""}`:isX(fp)?from=`>=${fM}.${fm}.0${incPr?"-0":""}`:fpr?from=`>=${from}`:from=`>=${from}${incPr?"-0":""}`,isX(tM)?to="":isX(tm)?to=`<${+tM+1}.0.0-0`:isX(tp)?to=`<${tM}.${+tm+1}.0-0`:tpr?to=`<=${tM}.${tm}.${tp}-${tpr}`:incPr?to=`<${tM}.${tm}.${+tp+1}-0`:to=`<=${to}`,`${from} ${to}`.trim()),testSet=(set,version,options)=>{for(let i=0;i<set.length;i++)if(!set[i].test(version))return!1;if(version.prerelease.length&&!options.includePrerelease){for(let i=0;i<set.length;i++)if(debug(set[i].semver),set[i].semver!==Comparator.ANY&&set[i].semver.prerelease.length>0){const allowed=set[i].semver;if(allowed.major===version.major&&allowed.minor===version.minor&&allowed.patch===version.patch)return!0}return!1}return!0}},13973:(module,__unused_webpack_exports,__webpack_require__)=>{const debug=__webpack_require__(8335),{MAX_LENGTH,MAX_SAFE_INTEGER}=__webpack_require__(82335),{safeRe:re,t}=__webpack_require__(920),parseOptions=__webpack_require__(81930),{compareIdentifiers}=__webpack_require__(53082);class SemVer{constructor(version,options){if(options=parseOptions(options),version instanceof SemVer){if(version.loose===!!options.loose&&version.includePrerelease===!!options.includePrerelease)return version;version=version.version}else if(typeof version!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version}".`);if(version.length>MAX_LENGTH)throw new TypeError(`version is longer than ${MAX_LENGTH} characters`);debug("SemVer",version,options),this.options=options,this.loose=!!options.loose,this.includePrerelease=!!options.includePrerelease;const m=version.trim().match(options.loose?re[t.LOOSE]:re[t.FULL]);if(!m)throw new TypeError(`Invalid Version: ${version}`);if(this.raw=version,this.major=+m[1],this.minor=+m[2],this.patch=+m[3],this.major>MAX_SAFE_INTEGER||this.major<0)throw new TypeError("Invalid major version");if(this.minor>MAX_SAFE_INTEGER||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>MAX_SAFE_INTEGER||this.patch<0)throw new TypeError("Invalid patch version");m[4]?this.prerelease=m[4].split(".").map(id=>{if(/^[0-9]+$/.test(id)){const num=+id;if(num>=0&&num<MAX_SAFE_INTEGER)return num}return id}):this.prerelease=[],this.build=m[5]?m[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(other){if(debug("SemVer.compare",this.version,this.options,other),!(other instanceof SemVer)){if(typeof other=="string"&&other===this.version)return 0;other=new SemVer(other,this.options)}return other.version===this.version?0:this.compareMain(other)||this.comparePre(other)}compareMain(other){return other instanceof SemVer||(other=new SemVer(other,this.options)),compareIdentifiers(this.major,other.major)||compareIdentifiers(this.minor,other.minor)||compareIdentifiers(this.patch,other.patch)}comparePre(other){if(other instanceof SemVer||(other=new SemVer(other,this.options)),this.prerelease.length&&!other.prerelease.length)return-1;if(!this.prerelease.length&&other.prerelease.length)return 1;if(!this.prerelease.length&&!other.prerelease.length)return 0;let i=0;do{const a=this.prerelease[i],b=other.prerelease[i];if(debug("prerelease compare",i,a,b),a===void 0&&b===void 0)return 0;if(b===void 0)return 1;if(a===void 0)return-1;if(a===b)continue;return compareIdentifiers(a,b)}while(++i)}compareBuild(other){other instanceof SemVer||(other=new SemVer(other,this.options));let i=0;do{const a=this.build[i],b=other.build[i];if(debug("prerelease compare",i,a,b),a===void 0&&b===void 0)return 0;if(b===void 0)return 1;if(a===void 0)return-1;if(a===b)continue;return compareIdentifiers(a,b)}while(++i)}inc(release,identifier,identifierBase){switch(release){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",identifier,identifierBase);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",identifier,identifierBase);break;case"prepatch":this.prerelease.length=0,this.inc("patch",identifier,identifierBase),this.inc("pre",identifier,identifierBase);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",identifier,identifierBase),this.inc("pre",identifier,identifierBase);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{const base=Number(identifierBase)?1:0;if(!identifier&&identifierBase===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[base];else{let i=this.prerelease.length;for(;--i>=0;)typeof this.prerelease[i]=="number"&&(this.prerelease[i]++,i=-2);if(i===-1){if(identifier===this.prerelease.join(".")&&identifierBase===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(base)}}if(identifier){let prerelease=[identifier,base];identifierBase===!1&&(prerelease=[identifier]),compareIdentifiers(this.prerelease[0],identifier)===0?isNaN(this.prerelease[1])&&(this.prerelease=prerelease):this.prerelease=prerelease}break}default:throw new Error(`invalid increment argument: ${release}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}module.exports=SemVer},84597:(module,__unused_webpack_exports,__webpack_require__)=>{const parse=__webpack_require__(11364),clean=(version,options)=>{const s=parse(version.trim().replace(/^[=v]+/,""),options);return s?s.version:null};module.exports=clean},33364:(module,__unused_webpack_exports,__webpack_require__)=>{const eq=__webpack_require__(4382),neq=__webpack_require__(81398),gt=__webpack_require__(59066),gte=__webpack_require__(96929),lt=__webpack_require__(22048),lte=__webpack_require__(26719),cmp=(a,op,b,loose)=>{switch(op){case"===":return typeof a=="object"&&(a=a.version),typeof b=="object"&&(b=b.version),a===b;case"!==":return typeof a=="object"&&(a=a.version),typeof b=="object"&&(b=b.version),a!==b;case"":case"=":case"==":return eq(a,b,loose);case"!=":return neq(a,b,loose);case">":return gt(a,b,loose);case">=":return gte(a,b,loose);case"<":return lt(a,b,loose);case"<=":return lte(a,b,loose);default:throw new TypeError(`Invalid operator: ${op}`)}};module.exports=cmp},14761:(module,__unused_webpack_exports,__webpack_require__)=>{const SemVer=__webpack_require__(13973),parse=__webpack_require__(11364),{safeRe:re,t}=__webpack_require__(920),coerce=(version,options)=>{if(version instanceof SemVer)return version;if(typeof version=="number"&&(version=String(version)),typeof version!="string")return null;options=options||{};let match=null;if(!options.rtl)match=version.match(re[t.COERCE]);else{let next;for(;(next=re[t.COERCERTL].exec(version))&&(!match||match.index+match[0].length!==version.length);)(!match||next.index+next[0].length!==match.index+match[0].length)&&(match=next),re[t.COERCERTL].lastIndex=next.index+next[1].length+next[2].length;re[t.COERCERTL].lastIndex=-1}return match===null?null:parse(`${match[2]}.${match[3]||"0"}.${match[4]||"0"}`,options)};module.exports=coerce},61239:(module,__unused_webpack_exports,__webpack_require__)=>{const SemVer=__webpack_require__(13973),compareBuild=(a,b,loose)=>{const versionA=new SemVer(a,loose),versionB=new SemVer(b,loose);return versionA.compare(versionB)||versionA.compareBuild(versionB)};module.exports=compareBuild},54061:(module,__unused_webpack_exports,__webpack_require__)=>{const compare=__webpack_require__(76914),compareLoose=(a,b)=>compare(a,b,!0);module.exports=compareLoose},76914:(module,__unused_webpack_exports,__webpack_require__)=>{const SemVer=__webpack_require__(13973),compare=(a,b,loose)=>new SemVer(a,loose).compare(new SemVer(b,loose));module.exports=compare},4494:(module,__unused_webpack_exports,__webpack_require__)=>{const parse=__webpack_require__(11364),diff=(version1,version2)=>{const v1=parse(version1,null,!0),v2=parse(version2,null,!0),comparison=v1.compare(v2);if(comparison===0)return null;const v1Higher=comparison>0,highVersion=v1Higher?v1:v2,lowVersion=v1Higher?v2:v1,highHasPre=!!highVersion.prerelease.length;if(!!lowVersion.prerelease.length&&!highHasPre)return!lowVersion.patch&&!lowVersion.minor?"major":highVersion.patch?"patch":highVersion.minor?"minor":"major";const prefix=highHasPre?"pre":"";return v1.major!==v2.major?prefix+"major":v1.minor!==v2.minor?prefix+"minor":v1.patch!==v2.patch?prefix+"patch":"prerelease"};module.exports=diff},4382:(module,__unused_webpack_exports,__webpack_require__)=>{const compare=__webpack_require__(76914),eq=(a,b,loose)=>compare(a,b,loose)===0;module.exports=eq},59066:(module,__unused_webpack_exports,__webpack_require__)=>{const compare=__webpack_require__(76914),gt=(a,b,loose)=>compare(a,b,loose)>0;module.exports=gt},96929:(module,__unused_webpack_exports,__webpack_require__)=>{const compare=__webpack_require__(76914),gte=(a,b,loose)=>compare(a,b,loose)>=0;module.exports=gte},55098:(module,__unused_webpack_exports,__webpack_require__)=>{const SemVer=__webpack_require__(13973),inc=(version,release,options,identifier,identifierBase)=>{typeof options=="string"&&(identifierBase=identifier,identifier=options,options=void 0);try{return new SemVer(version instanceof SemVer?version.version:version,options).inc(release,identifier,identifierBase).version}catch{return null}};module.exports=inc},22048:(module,__unused_webpack_exports,__webpack_require__)=>{const compare=__webpack_require__(76914),lt=(a,b,loose)=>compare(a,b,loose)<0;module.exports=lt},26719:(module,__unused_webpack_exports,__webpack_require__)=>{const compare=__webpack_require__(76914),lte=(a,b,loose)=>compare(a,b,loose)<=0;module.exports=lte},6191:(module,__unused_webpack_exports,__webpack_require__)=>{const SemVer=__webpack_require__(13973),major=(a,loose)=>new SemVer(a,loose).major;module.exports=major},27231:(module,__unused_webpack_exports,__webpack_require__)=>{const SemVer=__webpack_require__(13973),minor=(a,loose)=>new SemVer(a,loose).minor;module.exports=minor},81398:(module,__unused_webpack_exports,__webpack_require__)=>{const compare=__webpack_require__(76914),neq=(a,b,loose)=>compare(a,b,loose)!==0;module.exports=neq},11364:(module,__unused_webpack_exports,__webpack_require__)=>{const SemVer=__webpack_require__(13973),parse=(version,options,throwErrors=!1)=>{if(version instanceof SemVer)return version;try{return new SemVer(version,options)}catch(er){if(!throwErrors)return null;throw er}};module.exports=parse},8708:(module,__unused_webpack_exports,__webpack_require__)=>{const SemVer=__webpack_require__(13973),patch=(a,loose)=>new SemVer(a,loose).patch;module.exports=patch},59006:(module,__unused_webpack_exports,__webpack_require__)=>{const parse=__webpack_require__(11364),prerelease=(version,options)=>{const parsed=parse(version,options);return parsed&&parsed.prerelease.length?parsed.prerelease:null};module.exports=prerelease},6122:(module,__unused_webpack_exports,__webpack_require__)=>{const compare=__webpack_require__(76914),rcompare=(a,b,loose)=>compare(b,a,loose);module.exports=rcompare},13372:(module,__unused_webpack_exports,__webpack_require__)=>{const compareBuild=__webpack_require__(61239),rsort=(list,loose)=>list.sort((a,b)=>compareBuild(b,a,loose));module.exports=rsort},13229:(module,__unused_webpack_exports,__webpack_require__)=>{const Range=__webpack_require__(48139),satisfies=(version,range,options)=>{try{range=new Range(range,options)}catch{return!1}return range.test(version)};module.exports=satisfies},51672:(module,__unused_webpack_exports,__webpack_require__)=>{const compareBuild=__webpack_require__(61239),sort=(list,loose)=>list.sort((a,b)=>compareBuild(a,b,loose));module.exports=sort},26799:(module,__unused_webpack_exports,__webpack_require__)=>{const parse=__webpack_require__(11364),valid=(version,options)=>{const v=parse(version,options);return v?v.version:null};module.exports=valid},97765:(module,__unused_webpack_exports,__webpack_require__)=>{const internalRe=__webpack_require__(920),constants=__webpack_require__(82335),SemVer=__webpack_require__(13973),identifiers=__webpack_require__(53082),parse=__webpack_require__(11364),valid=__webpack_require__(26799),clean=__webpack_require__(84597),inc=__webpack_require__(55098),diff=__webpack_require__(4494),major=__webpack_require__(6191),minor=__webpack_require__(27231),patch=__webpack_require__(8708),prerelease=__webpack_require__(59006),compare=__webpack_require__(76914),rcompare=__webpack_require__(6122),compareLoose=__webpack_require__(54061),compareBuild=__webpack_require__(61239),sort=__webpack_require__(51672),rsort=__webpack_require__(13372),gt=__webpack_require__(59066),lt=__webpack_require__(22048),eq=__webpack_require__(4382),neq=__webpack_require__(81398),gte=__webpack_require__(96929),lte=__webpack_require__(26719),cmp=__webpack_require__(33364),coerce=__webpack_require__(14761),Comparator=__webpack_require__(14116),Range=__webpack_require__(48139),satisfies=__webpack_require__(13229),toComparators=__webpack_require__(70074),maxSatisfying=__webpack_require__(82487),minSatisfying=__webpack_require__(92945),minVersion=__webpack_require__(85020),validRange=__webpack_require__(70958),outside=__webpack_require__(28553),gtr=__webpack_require__(42178),ltr=__webpack_require__(67407),intersects=__webpack_require__(32830),simplifyRange=__webpack_require__(15989),subset=__webpack_require__(56823);module.exports={parse,valid,clean,inc,diff,major,minor,patch,prerelease,compare,rcompare,compareLoose,compareBuild,sort,rsort,gt,lt,eq,neq,gte,lte,cmp,coerce,Comparator,Range,satisfies,toComparators,maxSatisfying,minSatisfying,minVersion,validRange,outside,gtr,ltr,intersects,simplifyRange,subset,SemVer,re:internalRe.re,src:internalRe.src,tokens:internalRe.t,SEMVER_SPEC_VERSION:constants.SEMVER_SPEC_VERSION,RELEASE_TYPES:constants.RELEASE_TYPES,compareIdentifiers:identifiers.compareIdentifiers,rcompareIdentifiers:identifiers.rcompareIdentifiers}},82335:module=>{const SEMVER_SPEC_VERSION="2.0.0",MAX_SAFE_INTEGER=Number.MAX_SAFE_INTEGER||9007199254740991,MAX_SAFE_COMPONENT_LENGTH=16,RELEASE_TYPES=["major","premajor","minor","preminor","patch","prepatch","prerelease"];module.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH,MAX_SAFE_INTEGER,RELEASE_TYPES,SEMVER_SPEC_VERSION,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},8335:(module,__unused_webpack_exports,__webpack_require__)=>{var process=__webpack_require__(14224);const debug=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...args)=>console.error("SEMVER",...args):()=>{};module.exports=debug},53082:module=>{const numeric=/^[0-9]+$/,compareIdentifiers=(a,b)=>{const anum=numeric.test(a),bnum=numeric.test(b);return anum&&bnum&&(a=+a,b=+b),a===b?0:anum&&!bnum?-1:bnum&&!anum?1:a<b?-1:1},rcompareIdentifiers=(a,b)=>compareIdentifiers(b,a);module.exports={compareIdentifiers,rcompareIdentifiers}},81930:module=>{const looseOption=Object.freeze({loose:!0}),emptyOpts=Object.freeze({}),parseOptions=options=>options?typeof options!="object"?looseOption:options:emptyOpts;module.exports=parseOptions},920:(module,exports,__webpack_require__)=>{const{MAX_SAFE_COMPONENT_LENGTH}=__webpack_require__(82335),debug=__webpack_require__(8335);exports=module.exports={};const re=exports.re=[],safeRe=exports.safeRe=[],src=exports.src=[],t=exports.t={};let R=0;const createToken=(name,value,isGlobal)=>{const safe=value.split("\\s*").join("\\s{0,1}").split("\\s+").join("\\s"),index=R++;debug(name,index,value),t[name]=index,src[index]=value,re[index]=new RegExp(value,isGlobal?"g":void 0),safeRe[index]=new RegExp(safe,isGlobal?"g":void 0)};createToken("NUMERICIDENTIFIER","0|[1-9]\\d*"),createToken("NUMERICIDENTIFIERLOOSE","[0-9]+"),createToken("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),createToken("MAINVERSION",`(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})`),createToken("MAINVERSIONLOOSE",`(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})`),createToken("PRERELEASEIDENTIFIER",`(?:${src[t.NUMERICIDENTIFIER]}|${src[t.NONNUMERICIDENTIFIER]})`),createToken("PRERELEASEIDENTIFIERLOOSE",`(?:${src[t.NUMERICIDENTIFIERLOOSE]}|${src[t.NONNUMERICIDENTIFIER]})`),createToken("PRERELEASE",`(?:-(${src[t.PRERELEASEIDENTIFIER]}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`),createToken("PRERELEASELOOSE",`(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`),createToken("BUILDIDENTIFIER","[0-9A-Za-z-]+"),createToken("BUILD",`(?:\\+(${src[t.BUILDIDENTIFIER]}(?:\\.${src[t.BUILDIDENTIFIER]})*))`),createToken("FULLPLAIN",`v?${src[t.MAINVERSION]}${src[t.PRERELEASE]}?${src[t.BUILD]}?`),createToken("FULL",`^${src[t.FULLPLAIN]}$`),createToken("LOOSEPLAIN",`[v=\\s]*${src[t.MAINVERSIONLOOSE]}${src[t.PRERELEASELOOSE]}?${src[t.BUILD]}?`),createToken("LOOSE",`^${src[t.LOOSEPLAIN]}$`),createToken("GTLT","((?:<|>)?=?)"),createToken("XRANGEIDENTIFIERLOOSE",`${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),createToken("XRANGEIDENTIFIER",`${src[t.NUMERICIDENTIFIER]}|x|X|\\*`),createToken("XRANGEPLAIN",`[v=\\s]*(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:${src[t.PRERELEASE]})?${src[t.BUILD]}?)?)?`),createToken("XRANGEPLAINLOOSE",`[v=\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:${src[t.PRERELEASELOOSE]})?${src[t.BUILD]}?)?)?`),createToken("XRANGE",`^${src[t.GTLT]}\\s*${src[t.XRANGEPLAIN]}$`),createToken("XRANGELOOSE",`^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`),createToken("COERCE",`(^|[^\\d])(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}})(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:$|[^\\d])`),createToken("COERCERTL",src[t.COERCE],!0),createToken("LONETILDE","(?:~>?)"),createToken("TILDETRIM",`(\\s*)${src[t.LONETILDE]}\\s+`,!0),exports.tildeTrimReplace="$1~",createToken("TILDE",`^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`),createToken("TILDELOOSE",`^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`),createToken("LONECARET","(?:\\^)"),createToken("CARETTRIM",`(\\s*)${src[t.LONECARET]}\\s+`,!0),exports.caretTrimReplace="$1^",createToken("CARET",`^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`),createToken("CARETLOOSE",`^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`),createToken("COMPARATORLOOSE",`^${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]})$|^$`),createToken("COMPARATOR",`^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`),createToken("COMPARATORTRIM",`(\\s*)${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`,!0),exports.comparatorTrimReplace="$1$2$3",createToken("HYPHENRANGE",`^\\s*(${src[t.XRANGEPLAIN]})\\s+-\\s+(${src[t.XRANGEPLAIN]})\\s*$`),createToken("HYPHENRANGELOOSE",`^\\s*(${src[t.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t.XRANGEPLAINLOOSE]})\\s*$`),createToken("STAR","(<|>)?=?\\s*\\*"),createToken("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),createToken("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},42178:(module,__unused_webpack_exports,__webpack_require__)=>{const outside=__webpack_require__(28553),gtr=(version,range,options)=>outside(version,range,">",options);module.exports=gtr},32830:(module,__unused_webpack_exports,__webpack_require__)=>{const Range=__webpack_require__(48139),intersects=(r1,r2,options)=>(r1=new Range(r1,options),r2=new Range(r2,options),r1.intersects(r2,options));module.exports=intersects},67407:(module,__unused_webpack_exports,__webpack_require__)=>{const outside=__webpack_require__(28553),ltr=(version,range,options)=>outside(version,range,"<",options);module.exports=ltr},82487:(module,__unused_webpack_exports,__webpack_require__)=>{const SemVer=__webpack_require__(13973),Range=__webpack_require__(48139),maxSatisfying=(versions,range,options)=>{let max=null,maxSV=null,rangeObj=null;try{rangeObj=new Range(range,options)}catch{return null}return versions.forEach(v=>{rangeObj.test(v)&&(!max||maxSV.compare(v)===-1)&&(max=v,maxSV=new SemVer(max,options))}),max};module.exports=maxSatisfying},92945:(module,__unused_webpack_exports,__webpack_require__)=>{const SemVer=__webpack_require__(13973),Range=__webpack_require__(48139),minSatisfying=(versions,range,options)=>{let min=null,minSV=null,rangeObj=null;try{rangeObj=new Range(range,options)}catch{return null}return versions.forEach(v=>{rangeObj.test(v)&&(!min||minSV.compare(v)===1)&&(min=v,minSV=new SemVer(min,options))}),min};module.exports=minSatisfying},85020:(module,__unused_webpack_exports,__webpack_require__)=>{const SemVer=__webpack_require__(13973),Range=__webpack_require__(48139),gt=__webpack_require__(59066),minVersion=(range,loose)=>{range=new Range(range,loose);let minver=new SemVer("0.0.0");if(range.test(minver)||(minver=new SemVer("0.0.0-0"),range.test(minver)))return minver;minver=null;for(let i=0;i<range.set.length;++i){const comparators=range.set[i];let setMin=null;comparators.forEach(comparator=>{const compver=new SemVer(comparator.semver.version);switch(comparator.operator){case">":compver.prerelease.length===0?compver.patch++:compver.prerelease.push(0),compver.raw=compver.format();case"":case">=":(!setMin||gt(compver,setMin))&&(setMin=compver);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${comparator.operator}`)}}),setMin&&(!minver||gt(minver,setMin))&&(minver=setMin)}return minver&&range.test(minver)?minver:null};module.exports=minVersion},28553:(module,__unused_webpack_exports,__webpack_require__)=>{const SemVer=__webpack_require__(13973),Comparator=__webpack_require__(14116),{ANY}=Comparator,Range=__webpack_require__(48139),satisfies=__webpack_require__(13229),gt=__webpack_require__(59066),lt=__webpack_require__(22048),lte=__webpack_require__(26719),gte=__webpack_require__(96929),outside=(version,range,hilo,options)=>{version=new SemVer(version,options),range=new Range(range,options);let gtfn,ltefn,ltfn,comp,ecomp;switch(hilo){case">":gtfn=gt,ltefn=lte,ltfn=lt,comp=">",ecomp=">=";break;case"<":gtfn=lt,ltefn=gte,ltfn=gt,comp="<",ecomp="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(satisfies(version,range,options))return!1;for(let i=0;i<range.set.length;++i){const comparators=range.set[i];let high=null,low=null;if(comparators.forEach(comparator=>{comparator.semver===ANY&&(comparator=new Comparator(">=0.0.0")),high=high||comparator,low=low||comparator,gtfn(comparator.semver,high.semver,options)?high=comparator:ltfn(comparator.semver,low.semver,options)&&(low=comparator)}),high.operator===comp||high.operator===ecomp||(!low.operator||low.operator===comp)&<efn(version,low.semver))return!1;if(low.operator===ecomp&<fn(version,low.semver))return!1}return!0};module.exports=outside},15989:(module,__unused_webpack_exports,__webpack_require__)=>{const satisfies=__webpack_require__(13229),compare=__webpack_require__(76914);module.exports=(versions,range,options)=>{const set=[];let first=null,prev=null;const v=versions.sort((a,b)=>compare(a,b,options));for(const version of v)satisfies(version,range,options)?(prev=version,first||(first=version)):(prev&&set.push([first,prev]),prev=null,first=null);first&&set.push([first,null]);const ranges=[];for(const[min,max]of set)min===max?ranges.push(min):!max&&min===v[0]?ranges.push("*"):max?min===v[0]?ranges.push(`<=${max}`):ranges.push(`${min} - ${max}`):ranges.push(`>=${min}`);const simplified=ranges.join(" || "),original=typeof range.raw=="string"?range.raw:String(range);return simplified.length<original.length?simplified:range}},56823:(module,__unused_webpack_exports,__webpack_require__)=>{const Range=__webpack_require__(48139),Comparator=__webpack_require__(14116),{ANY}=Comparator,satisfies=__webpack_require__(13229),compare=__webpack_require__(76914),subset=(sub,dom,options={})=>{if(sub===dom)return!0;sub=new Range(sub,options),dom=new Range(dom,options);let sawNonNull=!1;OUTER:for(const simpleSub of sub.set){for(const simpleDom of dom.set){const isSub=simpleSubset(simpleSub,simpleDom,options);if(sawNonNull=sawNonNull||isSub!==null,isSub)continue OUTER}if(sawNonNull)return!1}return!0},minimumVersionWithPreRelease=[new Comparator(">=0.0.0-0")],minimumVersion=[new Comparator(">=0.0.0")],simpleSubset=(sub,dom,options)=>{if(sub===dom)return!0;if(sub.length===1&&sub[0].semver===ANY){if(dom.length===1&&dom[0].semver===ANY)return!0;options.includePrerelease?sub=minimumVersionWithPreRelease:sub=minimumVersion}if(dom.length===1&&dom[0].semver===ANY){if(options.includePrerelease)return!0;dom=minimumVersion}const eqSet=new Set;let gt,lt;for(const c of sub)c.operator===">"||c.operator===">="?gt=higherGT(gt,c,options):c.operator==="<"||c.operator==="<="?lt=lowerLT(lt,c,options):eqSet.add(c.semver);if(eqSet.size>1)return null;let gtltComp;if(gt&<){if(gtltComp=compare(gt.semver,lt.semver,options),gtltComp>0)return null;if(gtltComp===0&&(gt.operator!==">="||lt.operator!=="<="))return null}for(const eq of eqSet){if(gt&&!satisfies(eq,String(gt),options)||lt&&!satisfies(eq,String(lt),options))return null;for(const c of dom)if(!satisfies(eq,String(c),options))return!1;return!0}let higher,lower,hasDomLT,hasDomGT,needDomLTPre=lt&&!options.includePrerelease&<.semver.prerelease.length?lt.semver:!1,needDomGTPre=gt&&!options.includePrerelease&>.semver.prerelease.length?gt.semver:!1;needDomLTPre&&needDomLTPre.prerelease.length===1&<.operator==="<"&&needDomLTPre.prerelease[0]===0&&(needDomLTPre=!1);for(const c of dom){if(hasDomGT=hasDomGT||c.operator===">"||c.operator===">=",hasDomLT=hasDomLT||c.operator==="<"||c.operator==="<=",gt){if(needDomGTPre&&c.semver.prerelease&&c.semver.prerelease.length&&c.semver.major===needDomGTPre.major&&c.semver.minor===needDomGTPre.minor&&c.semver.patch===needDomGTPre.patch&&(needDomGTPre=!1),c.operator===">"||c.operator===">="){if(higher=higherGT(gt,c,options),higher===c&&higher!==gt)return!1}else if(gt.operator===">="&&!satisfies(gt.semver,String(c),options))return!1}if(lt){if(needDomLTPre&&c.semver.prerelease&&c.semver.prerelease.length&&c.semver.major===needDomLTPre.major&&c.semver.minor===needDomLTPre.minor&&c.semver.patch===needDomLTPre.patch&&(needDomLTPre=!1),c.operator==="<"||c.operator==="<="){if(lower=lowerLT(lt,c,options),lower===c&&lower!==lt)return!1}else if(lt.operator==="<="&&!satisfies(lt.semver,String(c),options))return!1}if(!c.operator&&(lt||gt)&>ltComp!==0)return!1}return!(gt&&hasDomLT&&!lt&>ltComp!==0||lt&&hasDomGT&&!gt&>ltComp!==0||needDomGTPre||needDomLTPre)},higherGT=(a,b,options)=>{if(!a)return b;const comp=compare(a.semver,b.semver,options);return comp>0?a:comp<0||b.operator===">"&&a.operator===">="?b:a},lowerLT=(a,b,options)=>{if(!a)return b;const comp=compare(a.semver,b.semver,options);return comp<0?a:comp>0||b.operator==="<"&&a.operator==="<="?b:a};module.exports=subset},70074:(module,__unused_webpack_exports,__webpack_require__)=>{const Range=__webpack_require__(48139),toComparators=(range,options)=>new Range(range,options).set.map(comp=>comp.map(c=>c.value).join(" ").trim().split(" "));module.exports=toComparators},70958:(module,__unused_webpack_exports,__webpack_require__)=>{const Range=__webpack_require__(48139),validRange=(range,options)=>{try{return new Range(range,options).range||"*"}catch{return null}};module.exports=validRange},84161:module=>{"use strict";module.exports=2147483647},76105:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var toPosInt=__webpack_require__(45031),maxTimeout=__webpack_require__(84161);module.exports=function(value){if(value=toPosInt(value),value>maxTimeout)throw new TypeError(value+" exceeds maximum possible timeout");return value}},61106:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var isPrototype=__webpack_require__(18122);module.exports=function(value){if(typeof value!="function"||!hasOwnProperty.call(value,"length"))return!1;try{if(typeof value.length!="number"||typeof value.call!="function"||typeof value.apply!="function")return!1}catch{return!1}return!isPrototype(value)}},62386:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var isValue=__webpack_require__(50283),possibleTypes={object:!0,function:!0,undefined:!0};module.exports=function(value){return isValue(value)?hasOwnProperty.call(possibleTypes,typeof value):!1}},97661:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var isFunction=__webpack_require__(61106),classRe=/^\s*class[\s{/}]/,functionToString=Function.prototype.toString;module.exports=function(value){return!(!isFunction(value)||classRe.test(functionToString.call(value)))}},18122:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var isObject=__webpack_require__(62386);module.exports=function(value){if(!isObject(value))return!1;try{return value.constructor?value.constructor.prototype===value:!1}catch{return!1}}},50283:module=>{"use strict";var _undefined=void 0;module.exports=function(value){return value!==_undefined&&value!==null}},99720:module=>{"use strict";module.exports=function(Yallist){Yallist.prototype[Symbol.iterator]=function*(){for(let walker=this.head;walker;walker=walker.next)yield walker.value}}},15766:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=Yallist,Yallist.Node=Node,Yallist.create=Yallist;function Yallist(list){var self2=this;if(self2 instanceof Yallist||(self2=new Yallist),self2.tail=null,self2.head=null,self2.length=0,list&&typeof list.forEach=="function")list.forEach(function(item){self2.push(item)});else if(arguments.length>0)for(var i=0,l=arguments.length;i<l;i++)self2.push(arguments[i]);return self2}Yallist.prototype.removeNode=function(node){if(node.list!==this)throw new Error("removing node which does not belong to this list");var next=node.next,prev=node.prev;return next&&(next.prev=prev),prev&&(prev.next=next),node===this.head&&(this.head=next),node===this.tail&&(this.tail=prev),node.list.length--,node.next=null,node.prev=null,node.list=null,next},Yallist.prototype.unshiftNode=function(node){if(node!==this.head){node.list&&node.list.removeNode(node);var head=this.head;node.list=this,node.next=head,head&&(head.prev=node),this.head=node,this.tail||(this.tail=node),this.length++}},Yallist.prototype.pushNode=function(node){if(node!==this.tail){node.list&&node.list.removeNode(node);var tail=this.tail;node.list=this,node.prev=tail,tail&&(tail.next=node),this.tail=node,this.head||(this.head=node),this.length++}},Yallist.prototype.push=function(){for(var i=0,l=arguments.length;i<l;i++)push(this,arguments[i]);return this.length},Yallist.prototype.unshift=function(){for(var i=0,l=arguments.length;i<l;i++)unshift(this,arguments[i]);return this.length},Yallist.prototype.pop=function(){if(!!this.tail){var res=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,res}},Yallist.prototype.shift=function(){if(!!this.head){var res=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,res}},Yallist.prototype.forEach=function(fn,thisp){thisp=thisp||this;for(var walker=this.head,i=0;walker!==null;i++)fn.call(thisp,walker.value,i,this),walker=walker.next},Yallist.prototype.forEachReverse=function(fn,thisp){thisp=thisp||this;for(var walker=this.tail,i=this.length-1;walker!==null;i--)fn.call(thisp,walker.value,i,this),walker=walker.prev},Yallist.prototype.get=function(n){for(var i=0,walker=this.head;walker!==null&&i<n;i++)walker=walker.next;if(i===n&&walker!==null)return walker.value},Yallist.prototype.getReverse=function(n){for(var i=0,walker=this.tail;walker!==null&&i<n;i++)walker=walker.prev;if(i===n&&walker!==null)return walker.value},Yallist.prototype.map=function(fn,thisp){thisp=thisp||this;for(var res=new Yallist,walker=this.head;walker!==null;)res.push(fn.call(thisp,walker.value,this)),walker=walker.next;return res},Yallist.prototype.mapReverse=function(fn,thisp){thisp=thisp||this;for(var res=new Yallist,walker=this.tail;walker!==null;)res.push(fn.call(thisp,walker.value,this)),walker=walker.prev;return res},Yallist.prototype.reduce=function(fn,initial){var acc,walker=this.head;if(arguments.length>1)acc=initial;else if(this.head)walker=this.head.next,acc=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=0;walker!==null;i++)acc=fn(acc,walker.value,i),walker=walker.next;return acc},Yallist.prototype.reduceReverse=function(fn,initial){var acc,walker=this.tail;if(arguments.length>1)acc=initial;else if(this.tail)walker=this.tail.prev,acc=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=this.length-1;walker!==null;i--)acc=fn(acc,walker.value,i),walker=walker.prev;return acc},Yallist.prototype.toArray=function(){for(var arr=new Array(this.length),i=0,walker=this.head;walker!==null;i++)arr[i]=walker.value,walker=walker.next;return arr},Yallist.prototype.toArrayReverse=function(){for(var arr=new Array(this.length),i=0,walker=this.tail;walker!==null;i++)arr[i]=walker.value,walker=walker.prev;return arr},Yallist.prototype.slice=function(from,to){to=to||this.length,to<0&&(to+=this.length),from=from||0,from<0&&(from+=this.length);var ret=new Yallist;if(to<from||to<0)return ret;from<0&&(from=0),to>this.length&&(to=this.length);for(var i=0,walker=this.head;walker!==null&&i<from;i++)walker=walker.next;for(;walker!==null&&i<to;i++,walker=walker.next)ret.push(walker.value);return ret},Yallist.prototype.sliceReverse=function(from,to){to=to||this.length,to<0&&(to+=this.length),from=from||0,from<0&&(from+=this.length);var ret=new Yallist;if(to<from||to<0)return ret;from<0&&(from=0),to>this.length&&(to=this.length);for(var i=this.length,walker=this.tail;walker!==null&&i>to;i--)walker=walker.prev;for(;walker!==null&&i>from;i--,walker=walker.prev)ret.push(walker.value);return ret},Yallist.prototype.splice=function(start,deleteCount,...nodes){start>this.length&&(start=this.length-1),start<0&&(start=this.length+start);for(var i=0,walker=this.head;walker!==null&&i<start;i++)walker=walker.next;for(var ret=[],i=0;walker&&i<deleteCount;i++)ret.push(walker.value),walker=this.removeNode(walker);walker===null&&(walker=this.tail),walker!==this.head&&walker!==this.tail&&(walker=walker.prev);for(var i=0;i<nodes.length;i++)walker=insert(this,walker,nodes[i]);return ret},Yallist.prototype.reverse=function(){for(var head=this.head,tail=this.tail,walker=head;walker!==null;walker=walker.prev){var p=walker.prev;walker.prev=walker.next,walker.next=p}return this.head=tail,this.tail=head,this};function insert(self2,node,value){var inserted=node===self2.head?new Node(value,null,node,self2):new Node(value,node,node.next,self2);return inserted.next===null&&(self2.tail=inserted),inserted.prev===null&&(self2.head=inserted),self2.length++,inserted}function push(self2,item){self2.tail=new Node(item,self2.tail,null,self2),self2.head||(self2.head=self2.tail),self2.length++}function unshift(self2,item){self2.head=new Node(item,null,self2.head,self2),self2.tail||(self2.tail=self2.head),self2.length++}function Node(value,prev,next,list){if(!(this instanceof Node))return new Node(value,prev,next,list);this.list=list,this.value=value,prev?(prev.next=this,this.prev=prev):this.prev=null,next?(next.prev=this,this.next=next):this.next=null}try{__webpack_require__(99720)(Yallist)}catch{}},36676:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.NavigationProvider=exports.useNavigation=exports.useNavigate=exports.useLocation=exports.Link=void 0;var link_1=__webpack_require__(65513);Object.defineProperty(exports,"Link",{enumerable:!0,get:function(){return link_1.Link}});var use_location_1=__webpack_require__(33808);Object.defineProperty(exports,"useLocation",{enumerable:!0,get:function(){return use_location_1.useLocation}});var use_navigate_1=__webpack_require__(20786);Object.defineProperty(exports,"useNavigate",{enumerable:!0,get:function(){return use_navigate_1.useNavigate}});var navigation_provider_1=__webpack_require__(89994);Object.defineProperty(exports,"useNavigation",{enumerable:!0,get:function(){return navigation_provider_1.useNavigation}}),Object.defineProperty(exports,"NavigationProvider",{enumerable:!0,get:function(){return navigation_provider_1.NavigationProvider}})},65513:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k),Object.defineProperty(o,k2,{enumerable:!0,get:function(){return m[k]}})}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)k!=="default"&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Link=void 0;const react_1=__importStar(__webpack_require__(59496)),navigation_provider_1=__webpack_require__(89994),native_link_1=__webpack_require__(44210);exports.Link=(0,react_1.forwardRef)(function(props,ref){const ActualLink=(0,navigation_provider_1.useNavigation)().Link||native_link_1.NativeLink;return props.native||props.external?react_1.default.createElement(native_link_1.NativeLink,Object.assign({},props,{ref})):react_1.default.createElement(ActualLink,Object.assign({},props,{ref}))})},44210:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k),Object.defineProperty(o,k2,{enumerable:!0,get:function(){return m[k]}})}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)k!=="default"&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.NativeLink=void 0;const react_1=__importStar(__webpack_require__(59496)),classnames_1=__importDefault(__webpack_require__(19803)),base_ui_routing_compare_url_1=__webpack_require__(33789),use_location_1=__webpack_require__(33808),externalLinkAttributes={rel:"noopener",target:"_blank"};exports.NativeLink=(0,react_1.forwardRef)(function(_a,ref){var{className,style,activeClassName,activeStyle,active,strict,exact,href,external,native,state}=_a,rest=__rest(_a,["className","style","activeClassName","activeStyle","active","strict","exact","href","external","native","state"]);const location=(0,use_location_1.useLocation)(),shouldCalcActive=!!activeClassName||!!activeStyle,isActive=(0,react_1.useMemo)(()=>shouldCalcActive?typeof active=="boolean"?active:!location||!href?!1:(0,base_ui_routing_compare_url_1.compareUrl)(location.pathname,href,{exact,strict}):!1,[active,href,location,shouldCalcActive]),externalProps=external?externalLinkAttributes:{},combinedStyles=(0,react_1.useMemo)(()=>isActive&&activeStyle?Object.assign(Object.assign({},style),activeStyle):style,[isActive,style]);return react_1.default.createElement("a",Object.assign({},externalProps,rest,{ref,href,className:(0,classnames_1.default)(className,isActive&&activeClassName),style:combinedStyles}))})},89994:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k),Object.defineProperty(o,k2,{enumerable:!0,get:function(){return m[k]}})}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)k!=="default"&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result};Object.defineProperty(exports,"__esModule",{value:!0}),exports.NavigationProvider=exports.useNavigation=exports.NavigationContext=void 0;const react_1=__importStar(__webpack_require__(59496));exports.NavigationContext=react_1.default.createContext({});function useNavigation(){return(0,react_1.useContext)(exports.NavigationContext)}exports.useNavigation=useNavigation;function NavigationProvider({children,implementation}){return react_1.default.createElement(exports.NavigationContext.Provider,{value:implementation},children)}exports.NavigationProvider=NavigationProvider},33808:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.useLocation=void 0;const navigation_provider_1=__webpack_require__(89994);function useLocation(){return((0,navigation_provider_1.useNavigation)().useLocation||NativeUseLocation)()}exports.useLocation=useLocation;function NativeUseLocation(){if(!(typeof window>"u"))return window.location}},20786:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.useNavigate=void 0;const navigation_provider_1=__webpack_require__(89994);function useNavigate(){var _a;const nav=(0,navigation_provider_1.useNavigation)();return((_a=nav.useNavigate)===null||_a===void 0?void 0:_a.call(nav))||nativeNavigator}exports.useNavigate=useNavigate;function nativeNavigator(target,{replace}={}){if(typeof window>"u")throw new Error("base-react.navigation.use-location - cannot use native navigator outside of browser. Inject a custom useNavigate, or use navigation after mount");const{location,history}=window;typeof target=="number"?history.go(target):replace?location.replace(target):location.assign(target)}},75076:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.LoaderRibbon=void 0;var loader_ribbon_1=__webpack_require__(85798);Object.defineProperty(exports,"LoaderRibbon",{enumerable:!0,get:function(){return loader_ribbon_1.LoaderRibbon}})},85798:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.LoaderRibbon=void 0;const classnames_1=__importDefault(__webpack_require__(97754)),react_1=__importDefault(__webpack_require__(59496)),loader_ribbon_module_scss_1=__importDefault(__webpack_require__(2700));function LoaderRibbon(_a){var{active,className}=_a,rest=__rest(_a,["active","className"]);return react_1.default.createElement("div",Object.assign({},rest,{className:classnames_1.default(className,loader_ribbon_module_scss_1.default.loader,active&&loader_ribbon_module_scss_1.default.loading)}),react_1.default.createElement("div",{className:loader_ribbon_module_scss_1.default.progress}))}exports.LoaderRibbon=LoaderRibbon},90398:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.compareUrl=void 0;const url_parse_1=__importDefault(__webpack_require__(54386));function compareUrl(baseUrl,toMatchUrl,{exact,strict}={}){if(baseUrl===toMatchUrl)return!0;strict||(baseUrl=baseUrl.replace(/\/(?=[?#]|$)/,""),toMatchUrl=toMatchUrl.replace(/\/(?=[?#]|$)/,""));const base=url_parse_1.default(baseUrl),match=url_parse_1.default(toMatchUrl),subUrl=isSubUrl(base,match),exactMatch=!exact||isExactMatch(base,match),strictMatch=!strict||isStrictMatch(base,match);return subUrl&&exactMatch&&strictMatch}exports.compareUrl=compareUrl;function isSubUrl(base,match){return(!match.protocol||match.protocol===base.protocol)&&(!match.hostname||match.hostname===base.hostname)&&(!match.port||match.port===base.port)&&(!match.pathname||base.pathname.startsWith(match.pathname))&&(!match.query||isSubObject(match.query,base.query))&&(!match.hash||match.hash===base.hash)&&(!match.password||match.password===base.password)&&(!match.username||match.username===base.username)}function isExactMatch(base,match){return(!match.pathname||base.pathname===match.pathname)&&(!match.query||isSubObject(base.query,match.query))}function isStrictMatch(base,match){return!match.pathname||base.pathname.endsWith("/")===match.pathname.endsWith("/")}function isSubObject(source,target){return Object.keys(source).every(key=>source[key]===target[key])}},33789:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.compareUrl=void 0;var compare_url_1=__webpack_require__(90398);Object.defineProperty(exports,"compareUrl",{enumerable:!0,get:function(){return compare_url_1.compareUrl}})},93155:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Composer=void 0;const react_1=__importDefault(__webpack_require__(59496));function Composer(props){const{components=[],children}=props,arrayified=components.map(tuple=>Array.isArray(tuple)?tuple:[tuple,void 0]);return react_1.default.createElement(react_1.default.Fragment,null,arrayified.reduceRight((acc,[Comp,forwardProps])=>react_1.default.createElement(Comp,Object.assign({},forwardProps),acc),children))}exports.Composer=Composer},80893:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Composer=void 0;var composer_1=__webpack_require__(93155);Object.defineProperty(exports,"Composer",{enumerable:!0,get:function(){return composer_1.Composer}})},93042:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.links=void 0;var links_1=__webpack_require__(39204);Object.defineProperty(exports,"links",{enumerable:!0,get:function(){return links_1.links}})},39204:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.links=void 0,exports.links={docs:"https://bit.dev/docs",github:"https://github.com/teambit/bit",slack:"https://join.slack.com/t/bit-dev-community/shared_invite/zt-1el4b4sb5-FpgRefqUiZbUH9lvnHgwRg",blog:"https://bit.cloud/blog",twitter:"https://twitter.com/bitdev_",linkedin:"https://www.linkedin.com/company/bit-dev",bitRegistry:"https://node.bit.cloud",youtube:"https://www.youtube.com/c/Bitdev/videos",careers:"https://bit.breezy.hr"}},33515:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.ContactIcons=void 0;const react_1=__importDefault(__webpack_require__(59496)),base_react_navigation_link_1=__webpack_require__(36676),community_constants_links_1=__webpack_require__(93042),styles={link:{textDecoration:"none",lineHeight:"inherit",color:"unset"},logo:{width:"24px",height:"24px",margin:"0 13px"}};function ContactIcons(props){return react_1.default.createElement("div",Object.assign({style:Object.assign(Object.assign({},styles.iconLine),props.style)},props),react_1.default.createElement(base_react_navigation_link_1.Link,{external:!0,style:styles.link,href:community_constants_links_1.links.slack},react_1.default.createElement("img",{alt:"slack",style:styles.logo,src:"https://static.bit.dev/harmony/slack-round-icon.svg"})),react_1.default.createElement(base_react_navigation_link_1.Link,{external:!0,style:styles.link,href:community_constants_links_1.links.github},react_1.default.createElement("img",{alt:"github",style:styles.logo,src:"https://static.bit.dev/harmony/github.svg"})),react_1.default.createElement(base_react_navigation_link_1.Link,{external:!0,style:styles.link,href:community_constants_links_1.links.docs},react_1.default.createElement("img",{alt:"bit docs",style:styles.logo,src:"https://static.bit.dev/bit-logo.svg"})))}exports.ContactIcons=ContactIcons},16382:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.ErrorPage=void 0;const react_1=__importDefault(__webpack_require__(59496)),styles={errorPage:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",margin:"auto",padding:"24px",textAlign:"center"},title:{fontWeight:"bold",margin:"0 0 24px 0"},img:{maxWidth:"700px",marginBottom:"24px",width:"100%"}},inlineStyles=`
|
70
70
|
.bit-error-page-title { font-size: 36px; }
|
71
71
|
@media screen and (max-width: 480px) { .bit-error-page-title { font-size: 24px; } }
|
72
72
|
`;function ErrorPage(_a){var{code,title,style,children}=_a,rest=__rest(_a,["code","title","style","children"]);return react_1.default.createElement("div",Object.assign({},rest,{style:Object.assign(Object.assign({},styles.errorPage),style)}),react_1.default.createElement("style",null,inlineStyles),react_1.default.createElement("h1",{style:styles.title,className:"bit-error-page-title"},title),react_1.default.createElement("img",{alt:"error-image",style:styles.img,src:`https://static.bit.dev/harmony/${code}.svg`}),children)}exports.ErrorPage=ErrorPage},36641:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__exportStar=this&&this.__exportStar||function(m,exports2){for(var p in m)p!=="default"&&!Object.prototype.hasOwnProperty.call(exports2,p)&&__createBinding(exports2,m,p)};Object.defineProperty(exports,"__esModule",{value:!0}),exports.ContactIcons=void 0,__exportStar(__webpack_require__(16382),exports);var contact_footer_1=__webpack_require__(33515);Object.defineProperty(exports,"ContactIcons",{enumerable:!0,get:function(){return contact_footer_1.ContactIcons}})},19139:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.NotFoundPage=void 0;var not_found_page_1=__webpack_require__(32989);Object.defineProperty(exports,"NotFoundPage",{enumerable:!0,get:function(){return not_found_page_1.NotFoundPage}})},32989:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.NotFoundPage=void 0;const react_1=__importDefault(__webpack_require__(59496)),design_ui_error_page_1=__webpack_require__(36641);function NotFoundPage(_a){var rest=__rest(_a,[]);return react_1.default.createElement(design_ui_error_page_1.ErrorPage,Object.assign({},rest,{code:404,title:"Page not found"}),react_1.default.createElement(design_ui_error_page_1.ContactIcons,null))}exports.NotFoundPage=NotFoundPage},31378:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__exportStar=this&&this.__exportStar||function(m,exports2){for(var p in m)p!=="default"&&!Object.prototype.hasOwnProperty.call(exports2,p)&&__createBinding(exports2,m,p)};Object.defineProperty(exports,"__esModule",{value:!0}),__exportStar(__webpack_require__(39649),exports)},39649:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.StandaloneNotFoundPage=void 0;const react_1=__importDefault(__webpack_require__(59496)),design_ui_pages_not_found_1=__webpack_require__(19139);function StandaloneNotFoundPage(){return react_1.default.createElement(design_ui_pages_not_found_1.NotFoundPage,{style:{fontFamily:'"Helvetica Neue",Helvetica, sans-serif'}})}exports.StandaloneNotFoundPage=StandaloneNotFoundPage},19803:(module,exports)=>{var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;/*!
|
73
73
|
Copyright (c) 2018 Jed Watson.
|
74
74
|
Licensed under the MIT License (MIT), see
|
75
75
|
http://jedwatson.github.io/classnames
|
76
|
-
*/(function(){"use strict";var hasOwn={}.hasOwnProperty;function classNames(){for(var classes=[],i=0;i<arguments.length;i++){var arg=arguments[i];if(!!arg){var argType=typeof arg;if(argType==="string"||argType==="number")classes.push(arg);else if(Array.isArray(arg)){if(arg.length){var inner=classNames.apply(null,arg);inner&&classes.push(inner)}}else if(argType==="object")if(arg.toString===Object.prototype.toString)for(var key in arg)hasOwn.call(arg,key)&&arg[key]&&classes.push(key);else classes.push(arg.toString())}}return classes.join(" ")}module.exports?(classNames.default=classNames,module.exports=classNames):(__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return classNames}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))})()},2700:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:()=>__WEBPACK_DEFAULT_EXPORT__});const __WEBPACK_DEFAULT_EXPORT__={loader:"loader-ribbon_loader__21nqZ",loading:"loader-ribbon_loading__2GQtq",progress:"loader-ribbon_progress__1lyMP",completed:"loader-ribbon_completed__9n1S5"}},98878:(__unused_webpack_module,exports)=>{"use strict";var has=Object.prototype.hasOwnProperty,undef;function decode(input){try{return decodeURIComponent(input.replace(/\+/g," "))}catch{return null}}function encode(input){try{return encodeURIComponent(input)}catch{return null}}function querystring(query){for(var parser=/([^=?#&]+)=?([^&]*)/g,result={},part;part=parser.exec(query);){var key=decode(part[1]),value=decode(part[2]);key===null||value===null||key in result||(result[key]=value)}return result}function querystringify(obj,prefix){prefix=prefix||"";var pairs=[],value,key;typeof prefix!="string"&&(prefix="?");for(key in obj)if(has.call(obj,key)){if(value=obj[key],!value&&(value===null||value===undef||isNaN(value))&&(value=""),key=encode(key),value=encode(value),key===null||value===null)continue;pairs.push(key+"="+value)}return pairs.length?prefix+pairs.join("&"):""}exports.stringify=querystringify,exports.parse=querystring},41384:module=>{"use strict";module.exports=function(port,protocol){if(protocol=protocol.split(":")[0],port=+port,!port)return!1;switch(protocol){case"http":case"ws":return port!==80;case"https":case"wss":return port!==443;case"ftp":return port!==21;case"gopher":return port!==70;case"file":return!1}return port!==0}},54386:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var required=__webpack_require__(41384),qs=__webpack_require__(98878),slashes=/^[A-Za-z][A-Za-z0-9+-.]*:[\\/]+/,protocolre=/^([a-z][a-z0-9.+-]*:)?([\\/]{1,})?([\S\s]*)/i,whitespace="[\\x09\\x0A\\x0B\\x0C\\x0D\\x20\\xA0\\u1680\\u180E\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200A\\u202F\\u205F\\u3000\\u2028\\u2029\\uFEFF]",left=new RegExp("^"+whitespace+"+");function trimLeft(str){return(str||"").toString().replace(left,"")}var rules=[["#","hash"],["?","query"],function(address){return address.replace("\\","/")},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d+)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],ignore={hash:1,query:1};function lolcation(loc){var globalVar;typeof window<"u"?globalVar=window:typeof __webpack_require__.g<"u"?globalVar=__webpack_require__.g:typeof self<"u"?globalVar=self:globalVar={};var location=globalVar.location||{};loc=loc||location;var finaldestination={},type=typeof loc,key;if(loc.protocol==="blob:")finaldestination=new Url(unescape(loc.pathname),{});else if(type==="string"){finaldestination=new Url(loc,{});for(key in ignore)delete finaldestination[key]}else if(type==="object"){for(key in loc)key in ignore||(finaldestination[key]=loc[key]);finaldestination.slashes===void 0&&(finaldestination.slashes=slashes.test(loc.href))}return finaldestination}function extractProtocol(address){address=trimLeft(address);var match=protocolre.exec(address),protocol=match[1]?match[1].toLowerCase():"",slashes2=!!(match[2]&&match[2].length>=2),rest=match[2]&&match[2].length===1?"/"+match[3]:match[3];return{protocol,slashes:slashes2,rest}}function resolve(relative,base){if(relative==="")return base;for(var path=(base||"/").split("/").slice(0,-1).concat(relative.split("/")),i=path.length,last=path[i-1],unshift=!1,up=0;i--;)path[i]==="."?path.splice(i,1):path[i]===".."?(path.splice(i,1),up++):up&&(i===0&&(unshift=!0),path.splice(i,1),up--);return unshift&&path.unshift(""),(last==="."||last==="..")&&path.push(""),path.join("/")}function Url(address,location,parser){if(address=trimLeft(address),!(this instanceof Url))return new Url(address,location,parser);var relative,extracted,parse,instruction,index,key,instructions=rules.slice(),type=typeof location,url=this,i=0;for(type!=="object"&&type!=="string"&&(parser=location,location=null),parser&&typeof parser!="function"&&(parser=qs.parse),location=lolcation(location),extracted=extractProtocol(address||""),relative=!extracted.protocol&&!extracted.slashes,url.slashes=extracted.slashes||relative&&location.slashes,url.protocol=extracted.protocol||location.protocol||"",address=extracted.rest,extracted.slashes||(instructions[3]=[/(.*)/,"pathname"]);i<instructions.length;i++){if(instruction=instructions[i],typeof instruction=="function"){address=instruction(address);continue}parse=instruction[0],key=instruction[1],parse!==parse?url[key]=address:typeof parse=="string"?~(index=address.indexOf(parse))&&(typeof instruction[2]=="number"?(url[key]=address.slice(0,index),address=address.slice(index+instruction[2])):(url[key]=address.slice(index),address=address.slice(0,index))):(index=parse.exec(address))&&(url[key]=index[1],address=address.slice(0,index.index)),url[key]=url[key]||relative&&instruction[3]&&location[key]||"",instruction[4]&&(url[key]=url[key].toLowerCase())}parser&&(url.query=parser(url.query)),relative&&location.slashes&&url.pathname.charAt(0)!=="/"&&(url.pathname!==""||location.pathname!=="")&&(url.pathname=resolve(url.pathname,location.pathname)),url.pathname.charAt(0)!=="/"&&url.hostname&&(url.pathname="/"+url.pathname),required(url.port,url.protocol)||(url.host=url.hostname,url.port=""),url.username=url.password="",url.auth&&(instruction=url.auth.split(":"),url.username=instruction[0]||"",url.password=instruction[1]||""),url.origin=url.protocol&&url.host&&url.protocol!=="file:"?url.protocol+"//"+url.host:"null",url.href=url.toString()}function set(part,value,fn){var url=this;switch(part){case"query":typeof value=="string"&&value.length&&(value=(fn||qs.parse)(value)),url[part]=value;break;case"port":url[part]=value,required(value,url.protocol)?value&&(url.host=url.hostname+":"+value):(url.host=url.hostname,url[part]="");break;case"hostname":url[part]=value,url.port&&(value+=":"+url.port),url.host=value;break;case"host":url[part]=value,/:\d+$/.test(value)?(value=value.split(":"),url.port=value.pop(),url.hostname=value.join(":")):(url.hostname=value,url.port="");break;case"protocol":url.protocol=value.toLowerCase(),url.slashes=!fn;break;case"pathname":case"hash":if(value){var char=part==="pathname"?"/":"#";url[part]=value.charAt(0)!==char?char+value:value}else url[part]=value;break;default:url[part]=value}for(var i=0;i<rules.length;i++){var ins=rules[i];ins[4]&&(url[ins[1]]=url[ins[1]].toLowerCase())}return url.origin=url.protocol&&url.host&&url.protocol!=="file:"?url.protocol+"//"+url.host:"null",url.href=url.toString(),url}function toString(stringify){(!stringify||typeof stringify!="function")&&(stringify=qs.stringify);var query,url=this,protocol=url.protocol;protocol&&protocol.charAt(protocol.length-1)!==":"&&(protocol+=":");var result=protocol+(url.slashes?"//":"");return url.username&&(result+=url.username,url.password&&(result+=":"+url.password),result+="@"),result+=url.host+url.pathname,query=typeof url.query=="object"?stringify(url.query):url.query,query&&(result+=query.charAt(0)!=="?"?"?"+query:query),url.hash&&(result+=url.hash),result}Url.prototype={set,toString},Url.extractProtocol=extractProtocol,Url.location=lolcation,Url.trimLeft=trimLeft,Url.qs=qs,module.exports=Url},51166:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.CompositionsApp=void 0;const react_1=__importDefault(__webpack_require__(59496)),base_ui_utils_composer_1=__webpack_require__(80893),design_ui_pages_standalone_not_found_page_1=__webpack_require__(31378),react_ui_loader_fallback_1=__webpack_require__(4603),hideScrollbars="body::-webkit-scrollbar {display: none;}";function CompositionsApp({Composition,previewContext}){const{providers=[]}=previewContext?.get("teambit.react/react")||{},safeComposition=(0,react_ui_loader_fallback_1.useFallback)(Composition&&react_1.default.createElement(Composition,null),react_1.default.createElement(design_ui_pages_standalone_not_found_page_1.StandaloneNotFoundPage,null));return react_1.default.createElement(base_ui_utils_composer_1.Composer,{components:providers},react_1.default.createElement("style",null,hideScrollbars),safeComposition)}exports.CompositionsApp=CompositionsApp},40105:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0});const react_1=__importDefault(__webpack_require__(59496)),react_dom_1=__importDefault(__webpack_require__(87995)),compositions_app_1=__webpack_require__(51166);exports.default=(Composition,previewContext)=>{react_dom_1.default.render(react_1.default.createElement(compositions_app_1.CompositionsApp,{Composition,previewContext}),document.getElementById("root"))}},5659:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.CompositionsApp=void 0;var compositions_app_1=__webpack_require__(51166);Object.defineProperty(exports,"CompositionsApp",{enumerable:!0,get:function(){return compositions_app_1.CompositionsApp}});var compositions_app_root_1=__webpack_require__(40105);Object.defineProperty(exports,"default",{enumerable:!0,get:function(){return __importDefault(compositions_app_root_1).default}})},4603:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.useFallback=exports.LoaderFallback=void 0;var loader_fallback_1=__webpack_require__(48767);Object.defineProperty(exports,"LoaderFallback",{enumerable:!0,get:function(){return loader_fallback_1.LoaderFallback}}),Object.defineProperty(exports,"useFallback",{enumerable:!0,get:function(){return loader_fallback_1.useFallback}})},48767:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)k!=="default"&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result};Object.defineProperty(exports,"__esModule",{value:!0}),exports.useFallback=exports.LoaderFallback=void 0;const react_1=__importStar(__webpack_require__(59496)),base_ui_loaders_loader_ribbon_1=__webpack_require__(75076);function LoaderFallback({Target,Loader=LoaderComponent,DefaultComponent,timeout=15e3}){return useFallback(Target&&react_1.default.createElement(Target,null),react_1.default.createElement(DefaultComponent,null),{timeout,loader:react_1.default.createElement(Loader,null)})}exports.LoaderFallback=LoaderFallback;function useFallback(target,fallback,{timeout=15e3,loader=react_1.default.createElement(LoaderComponent,null)}={}){const[working,setWorking]=(0,react_1.useState)(!!target),hasTarget=!!target;return(0,react_1.useEffect)(()=>{if(timeout<=0)return()=>{};if(hasTarget)return setWorking(!0),()=>{};const tmId=setTimeout(()=>setWorking(!1),timeout);return()=>clearTimeout(tmId)},[hasTarget,timeout]),target||(working&&timeout>0?loader:fallback)}exports.useFallback=useFallback;function LoaderComponent(){return react_1.default.createElement(base_ui_loaders_loader_ribbon_1.LoaderRibbon,{active:!0,style:{position:"fixed",top:0,left:0,right:0}})}},37025:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.defaultJsonSerializer=void 0,exports.defaultJsonSerializer=JSON},16980:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.GraphQLWebSocketClient=void 0;const resolveRequestDocument_js_1=__webpack_require__(73746),types_js_1=__webpack_require__(4189),CONNECTION_INIT="connection_init",CONNECTION_ACK="connection_ack",PING="ping",PONG="pong",SUBSCRIBE="subscribe",NEXT="next",ERROR="error",COMPLETE="complete";class GraphQLWebSocketMessage{get type(){return this._type}get id(){return this._id}get payload(){return this._payload}constructor(type,payload,id){this._type=type,this._payload=payload,this._id=id}get text(){const result={type:this.type};return this.id!=null&&this.id!=null&&(result.id=this.id),this.payload!=null&&this.payload!=null&&(result.payload=this.payload),JSON.stringify(result)}static parse(data,f){const{type,payload,id}=JSON.parse(data);return new GraphQLWebSocketMessage(type,f(payload),id)}}class GraphQLWebSocketClient{constructor(socket,{onInit,onAcknowledged,onPing,onPong}){this.socketState={acknowledged:!1,lastRequestId:0,subscriptions:{}},this.socket=socket,socket.addEventListener("open",async e=>{this.socketState.acknowledged=!1,this.socketState.subscriptions={},socket.send(ConnectionInit(onInit?await onInit():null).text)}),socket.addEventListener("close",e=>{this.socketState.acknowledged=!1,this.socketState.subscriptions={}}),socket.addEventListener("error",e=>{console.error(e)}),socket.addEventListener("message",e=>{try{const message=parseMessage(e.data);switch(message.type){case CONNECTION_ACK:{this.socketState.acknowledged?console.warn("Duplicate CONNECTION_ACK message ignored"):(this.socketState.acknowledged=!0,onAcknowledged&&onAcknowledged(message.payload));return}case PING:{onPing?onPing(message.payload).then(r=>socket.send(Pong(r).text)):socket.send(Pong(null).text);return}case PONG:{onPong&&onPong(message.payload);return}}if(!this.socketState.acknowledged||message.id===void 0||message.id===null||!this.socketState.subscriptions[message.id])return;const{query,variables,subscriber}=this.socketState.subscriptions[message.id];switch(message.type){case NEXT:{!message.payload.errors&&message.payload.data&&subscriber.next&&subscriber.next(message.payload.data),message.payload.errors&&subscriber.error&&subscriber.error(new types_js_1.ClientError({...message.payload,status:200},{query,variables}));return}case ERROR:{subscriber.error&&subscriber.error(new types_js_1.ClientError({errors:message.payload,status:200},{query,variables}));return}case COMPLETE:{subscriber.complete&&subscriber.complete(),delete this.socketState.subscriptions[message.id];return}}}catch(e2){console.error(e2),socket.close(1006)}socket.close(4400,"Unknown graphql-ws message.")})}makeSubscribe(query,operationName,subscriber,variables){const subscriptionId=(this.socketState.lastRequestId++).toString();return this.socketState.subscriptions[subscriptionId]={query,variables,subscriber},this.socket.send(Subscribe(subscriptionId,{query,operationName,variables}).text),()=>{this.socket.send(Complete(subscriptionId).text),delete this.socketState.subscriptions[subscriptionId]}}rawRequest(query,variables){return new Promise((resolve,reject)=>{let result;this.rawSubscribe(query,{next:(data,extensions)=>result={data,extensions},error:reject,complete:()=>resolve(result)},variables)})}request(document2,variables){return new Promise((resolve,reject)=>{let result;this.subscribe(document2,{next:data=>result=data,error:reject,complete:()=>resolve(result)},variables)})}subscribe(document2,subscriber,variables){const{query,operationName}=(0,resolveRequestDocument_js_1.resolveRequestDocument)(document2);return this.makeSubscribe(query,operationName,subscriber,variables)}rawSubscribe(query,subscriber,variables){return this.makeSubscribe(query,void 0,subscriber,variables)}ping(payload){this.socket.send(Ping(payload).text)}close(){this.socket.close(1e3)}}GraphQLWebSocketClient.PROTOCOL="graphql-transport-ws",exports.GraphQLWebSocketClient=GraphQLWebSocketClient;function parseMessage(data,f=a=>a){return GraphQLWebSocketMessage.parse(data,f)}function ConnectionInit(payload){return new GraphQLWebSocketMessage(CONNECTION_INIT,payload)}function Ping(payload){return new GraphQLWebSocketMessage(PING,payload,void 0)}function Pong(payload){return new GraphQLWebSocketMessage(PONG,payload,void 0)}function Subscribe(id,payload){return new GraphQLWebSocketMessage(SUBSCRIBE,payload,id)}function Complete(id){return new GraphQLWebSocketMessage(COMPLETE,void 0,id)}},22578:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.HeadersInstanceToPlainObject=exports.uppercase=void 0;const uppercase=str=>str.toUpperCase();exports.uppercase=uppercase;const HeadersInstanceToPlainObject=headers=>{const o={};return headers.forEach((v,k)=>{o[k]=v}),o};exports.HeadersInstanceToPlainObject=HeadersInstanceToPlainObject},20604:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)k!=="default"&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result};Object.defineProperty(exports,"__esModule",{value:!0}),exports.request=exports.rawRequest=exports.GraphQLClient=exports.ClientError=exports.batchRequests=exports.resolveRequestDocument=exports.GraphQLWebSocketClient=exports.gql=void 0;const defaultJsonSerializer_js_1=__webpack_require__(37025),helpers_js_1=__webpack_require__(22578),parseArgs_js_1=__webpack_require__(25082),resolveRequestDocument_js_1=__webpack_require__(73746),types_js_1=__webpack_require__(4189);Object.defineProperty(exports,"ClientError",{enumerable:!0,get:function(){return types_js_1.ClientError}});const cross_fetch_1=__importStar(__webpack_require__(70203)),CrossFetch=cross_fetch_1,resolveHeaders=headers=>{let oHeaders={};return headers&&(typeof Headers<"u"&&headers instanceof Headers||CrossFetch&&CrossFetch.Headers&&headers instanceof CrossFetch.Headers?oHeaders=(0,helpers_js_1.HeadersInstanceToPlainObject)(headers):Array.isArray(headers)?headers.forEach(([name,value])=>{name&&value!==void 0&&(oHeaders[name]=value)}):oHeaders=headers),oHeaders},cleanQuery=str=>str.replace(/([\s,]|#[^\n\r]+)+/g," ").trim(),buildRequestConfig=params=>{if(!Array.isArray(params.query)){const params_2=params,search=[`query=${encodeURIComponent(cleanQuery(params_2.query))}`];return params.variables&&search.push(`variables=${encodeURIComponent(params_2.jsonSerializer.stringify(params_2.variables))}`),params_2.operationName&&search.push(`operationName=${encodeURIComponent(params_2.operationName)}`),search.join("&")}if(typeof params.variables<"u"&&!Array.isArray(params.variables))throw new Error("Cannot create query with given variable type, array expected");const params_=params,payload=params.query.reduce((acc,currentQuery,index)=>(acc.push({query:cleanQuery(currentQuery),variables:params_.variables?params_.jsonSerializer.stringify(params_.variables[index]):void 0}),acc),[]);return`query=${encodeURIComponent(params_.jsonSerializer.stringify(payload))}`},createHttpMethodFetcher=method=>async params=>{const{url,query,variables,operationName,fetch,fetchOptions,middleware}=params,headers={...params.headers};let queryParams="",body;method==="POST"?(body=createRequestBody(query,variables,operationName,fetchOptions.jsonSerializer),typeof body=="string"&&(headers["Content-Type"]="application/json")):queryParams=buildRequestConfig({query,variables,operationName,jsonSerializer:fetchOptions.jsonSerializer??defaultJsonSerializer_js_1.defaultJsonSerializer});const init={method,headers,body,...fetchOptions};let urlResolved=url,initResolved=init;if(middleware){const result=await Promise.resolve(middleware({...init,url,operationName,variables})),{url:urlNew,...initNew}=result;urlResolved=urlNew,initResolved=initNew}return queryParams&&(urlResolved=`${urlResolved}?${queryParams}`),await fetch(urlResolved,initResolved)};class GraphQLClient{constructor(url,requestConfig={}){this.url=url,this.requestConfig=requestConfig,this.rawRequest=async(...args)=>{const[queryOrOptions,variables,requestHeaders]=args,rawRequestOptions=(0,parseArgs_js_1.parseRawRequestArgs)(queryOrOptions,variables,requestHeaders),{headers,fetch=cross_fetch_1.default,method="POST",requestMiddleware,responseMiddleware,...fetchOptions}=this.requestConfig,{url:url2}=this;rawRequestOptions.signal!==void 0&&(fetchOptions.signal=rawRequestOptions.signal);const{operationName}=(0,resolveRequestDocument_js_1.resolveRequestDocument)(rawRequestOptions.query);return makeRequest({url:url2,query:rawRequestOptions.query,variables:rawRequestOptions.variables,headers:{...resolveHeaders(callOrIdentity(headers)),...resolveHeaders(rawRequestOptions.requestHeaders)},operationName,fetch,method,fetchOptions,middleware:requestMiddleware}).then(response=>(responseMiddleware&&responseMiddleware(response),response)).catch(error=>{throw responseMiddleware&&responseMiddleware(error),error})}}async request(documentOrOptions,...variablesAndRequestHeaders){const[variables,requestHeaders]=variablesAndRequestHeaders,requestOptions=(0,parseArgs_js_1.parseRequestArgs)(documentOrOptions,variables,requestHeaders),{headers,fetch=cross_fetch_1.default,method="POST",requestMiddleware,responseMiddleware,...fetchOptions}=this.requestConfig,{url}=this;requestOptions.signal!==void 0&&(fetchOptions.signal=requestOptions.signal);const{query,operationName}=(0,resolveRequestDocument_js_1.resolveRequestDocument)(requestOptions.document);return makeRequest({url,query,variables:requestOptions.variables,headers:{...resolveHeaders(callOrIdentity(headers)),...resolveHeaders(requestOptions.requestHeaders)},operationName,fetch,method,fetchOptions,middleware:requestMiddleware}).then(response=>(responseMiddleware&&responseMiddleware(response),response.data)).catch(error=>{throw responseMiddleware&&responseMiddleware(error),error})}batchRequests(documentsOrOptions,requestHeaders){const batchRequestOptions=(0,parseArgs_js_1.parseBatchRequestArgs)(documentsOrOptions,requestHeaders),{headers,...fetchOptions}=this.requestConfig;batchRequestOptions.signal!==void 0&&(fetchOptions.signal=batchRequestOptions.signal);const queries=batchRequestOptions.documents.map(({document:document2})=>(0,resolveRequestDocument_js_1.resolveRequestDocument)(document2).query),variables=batchRequestOptions.documents.map(({variables:variables2})=>variables2);return makeRequest({url:this.url,query:queries,variables,headers:{...resolveHeaders(callOrIdentity(headers)),...resolveHeaders(batchRequestOptions.requestHeaders)},operationName:void 0,fetch:this.requestConfig.fetch??cross_fetch_1.default,method:this.requestConfig.method||"POST",fetchOptions,middleware:this.requestConfig.requestMiddleware}).then(response=>(this.requestConfig.responseMiddleware&&this.requestConfig.responseMiddleware(response),response.data)).catch(error=>{throw this.requestConfig.responseMiddleware&&this.requestConfig.responseMiddleware(error),error})}setHeaders(headers){return this.requestConfig.headers=headers,this}setHeader(key,value){const{headers}=this.requestConfig;return headers?headers[key]=value:this.requestConfig.headers={[key]:value},this}setEndpoint(value){return this.url=value,this}}exports.GraphQLClient=GraphQLClient;const makeRequest=async params=>{const{query,variables,fetchOptions}=params,fetcher=createHttpMethodFetcher((0,helpers_js_1.uppercase)(params.method??"post")),isBatchingQuery=Array.isArray(params.query),response=await fetcher(params),result=await getResult(response,fetchOptions.jsonSerializer??defaultJsonSerializer_js_1.defaultJsonSerializer),successfullyReceivedData=Array.isArray(result)?!result.some(({data})=>!data):Boolean(result.data),successfullyPassedErrorPolicy=Array.isArray(result)||!result.errors||Array.isArray(result.errors)&&!result.errors.length||fetchOptions.errorPolicy==="all"||fetchOptions.errorPolicy==="ignore";if(response.ok&&successfullyPassedErrorPolicy&&successfullyReceivedData){const{errors:_,...rest}=(Array.isArray(result),result),data=fetchOptions.errorPolicy==="ignore"?rest:result;return{...isBatchingQuery?{data}:data,headers:response.headers,status:response.status}}else{const errorResult=typeof result=="string"?{error:result}:result;throw new types_js_1.ClientError({...errorResult,status:response.status,headers:response.headers},{query,variables})}},rawRequest=async(...args)=>{const[urlOrOptions,query,...variablesAndRequestHeaders]=args,requestOptions=(0,parseArgs_js_1.parseRawRequestExtendedArgs)(urlOrOptions,query,...variablesAndRequestHeaders);return new GraphQLClient(requestOptions.url).rawRequest({...requestOptions})};exports.rawRequest=rawRequest;async function request(urlOrOptions,document2,...variablesAndRequestHeaders){const requestOptions=(0,parseArgs_js_1.parseRequestExtendedArgs)(urlOrOptions,document2,...variablesAndRequestHeaders);return new GraphQLClient(requestOptions.url).request({...requestOptions})}exports.request=request;const batchRequests=async(...args)=>{const params=parseBatchRequestsArgsExtended(args);return new GraphQLClient(params.url).batchRequests(params)};exports.batchRequests=batchRequests;const parseBatchRequestsArgsExtended=args=>args.length===1?args[0]:{url:args[0],documents:args[1],requestHeaders:args[2],signal:void 0},createRequestBody=(query,variables,operationName,jsonSerializer)=>{const jsonSerializer_=jsonSerializer??defaultJsonSerializer_js_1.defaultJsonSerializer;if(!Array.isArray(query))return jsonSerializer_.stringify({query,variables,operationName});if(typeof variables<"u"&&!Array.isArray(variables))throw new Error("Cannot create request body with given variable type, array expected");const payload=query.reduce((acc,currentQuery,index)=>(acc.push({query:currentQuery,variables:variables?variables[index]:void 0}),acc),[]);return jsonSerializer_.stringify(payload)},getResult=async(response,jsonSerializer)=>{let contentType;return response.headers.forEach((value,key)=>{key.toLowerCase()==="content-type"&&(contentType=value)}),contentType&&(contentType.toLowerCase().startsWith("application/json")||contentType.toLowerCase().startsWith("application/graphql+json")||contentType.toLowerCase().startsWith("application/graphql-response+json"))?jsonSerializer.parse(await response.text()):response.text()},callOrIdentity=value=>typeof value=="function"?value():value,gql=(chunks,...variables)=>chunks.reduce((acc,chunk,index)=>`${acc}${chunk}${index in variables?String(variables[index]):""}`,"");exports.gql=gql;var graphql_ws_js_1=__webpack_require__(16980);Object.defineProperty(exports,"GraphQLWebSocketClient",{enumerable:!0,get:function(){return graphql_ws_js_1.GraphQLWebSocketClient}});var resolveRequestDocument_js_2=__webpack_require__(73746);Object.defineProperty(exports,"resolveRequestDocument",{enumerable:!0,get:function(){return resolveRequestDocument_js_2.resolveRequestDocument}}),exports.default=request},25082:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.parseRawRequestExtendedArgs=exports.parseRequestExtendedArgs=exports.parseBatchRequestArgs=exports.parseRawRequestArgs=exports.parseRequestArgs=void 0;const parseRequestArgs=(documentOrOptions,variables,requestHeaders)=>documentOrOptions.document?documentOrOptions:{document:documentOrOptions,variables,requestHeaders,signal:void 0};exports.parseRequestArgs=parseRequestArgs;const parseRawRequestArgs=(queryOrOptions,variables,requestHeaders)=>queryOrOptions.query?queryOrOptions:{query:queryOrOptions,variables,requestHeaders,signal:void 0};exports.parseRawRequestArgs=parseRawRequestArgs;const parseBatchRequestArgs=(documentsOrOptions,requestHeaders)=>documentsOrOptions.documents?documentsOrOptions:{documents:documentsOrOptions,requestHeaders,signal:void 0};exports.parseBatchRequestArgs=parseBatchRequestArgs;const parseRequestExtendedArgs=(urlOrOptions,document2,...variablesAndRequestHeaders)=>{const[variables,requestHeaders]=variablesAndRequestHeaders;return urlOrOptions.document?urlOrOptions:{url:urlOrOptions,document:document2,variables,requestHeaders,signal:void 0}};exports.parseRequestExtendedArgs=parseRequestExtendedArgs;const parseRawRequestExtendedArgs=(urlOrOptions,query,...variablesAndRequestHeaders)=>{const[variables,requestHeaders]=variablesAndRequestHeaders;return urlOrOptions.query?urlOrOptions:{url:urlOrOptions,query,variables,requestHeaders,signal:void 0}};exports.parseRawRequestExtendedArgs=parseRawRequestExtendedArgs},73746:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.resolveRequestDocument=void 0;const graphql_1=__webpack_require__(11146),extractOperationName=document2=>{let operationName;const operationDefinitions=document2.definitions.filter(definition=>definition.kind==="OperationDefinition");return operationDefinitions.length===1&&(operationName=operationDefinitions[0]?.name?.value),operationName},resolveRequestDocument=document2=>{if(typeof document2=="string"){let operationName2;try{const parsedDocument=(0,graphql_1.parse)(document2);operationName2=extractOperationName(parsedDocument)}catch{}return{query:document2,operationName:operationName2}}const operationName=extractOperationName(document2);return{query:(0,graphql_1.print)(document2),operationName}};exports.resolveRequestDocument=resolveRequestDocument},4189:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ClientError=void 0;class ClientError extends Error{constructor(response,request){const message=`${ClientError.extractMessage(response)}: ${JSON.stringify({response,request})}`;super(message);Object.setPrototypeOf(this,ClientError.prototype),this.response=response,this.request=request,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,ClientError)}static extractMessage(response){return response.errors?.[0]?.message??`GraphQL Error (Code: ${response.status})`}}exports.ClientError=ClientError},11146:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{BREAK:()=>BREAK,BreakingChangeType:()=>BreakingChangeType,DEFAULT_DEPRECATION_REASON:()=>DEFAULT_DEPRECATION_REASON,DangerousChangeType:()=>DangerousChangeType,DirectiveLocation:()=>DirectiveLocation,ExecutableDefinitionsRule:()=>ExecutableDefinitionsRule,FieldsOnCorrectTypeRule:()=>FieldsOnCorrectTypeRule,FragmentsOnCompositeTypesRule:()=>FragmentsOnCompositeTypesRule,GraphQLBoolean:()=>GraphQLBoolean,GraphQLDeprecatedDirective:()=>GraphQLDeprecatedDirective,GraphQLDirective:()=>GraphQLDirective,GraphQLEnumType:()=>GraphQLEnumType,GraphQLError:()=>GraphQLError,GraphQLFloat:()=>GraphQLFloat,GraphQLID:()=>GraphQLID,GraphQLIncludeDirective:()=>GraphQLIncludeDirective,GraphQLInputObjectType:()=>GraphQLInputObjectType,GraphQLInt:()=>GraphQLInt,GraphQLInterfaceType:()=>GraphQLInterfaceType,GraphQLList:()=>GraphQLList,GraphQLNonNull:()=>GraphQLNonNull,GraphQLObjectType:()=>GraphQLObjectType,GraphQLScalarType:()=>GraphQLScalarType,GraphQLSchema:()=>GraphQLSchema,GraphQLSkipDirective:()=>GraphQLSkipDirective,GraphQLSpecifiedByDirective:()=>GraphQLSpecifiedByDirective,GraphQLString:()=>GraphQLString,GraphQLUnionType:()=>GraphQLUnionType,Kind:()=>Kind,KnownArgumentNamesRule:()=>KnownArgumentNamesRule,KnownDirectivesRule:()=>KnownDirectivesRule,KnownFragmentNamesRule:()=>KnownFragmentNamesRule,KnownTypeNamesRule:()=>KnownTypeNamesRule,Lexer:()=>Lexer,Location:()=>Location,LoneAnonymousOperationRule:()=>LoneAnonymousOperationRule,LoneSchemaDefinitionRule:()=>LoneSchemaDefinitionRule,NoDeprecatedCustomRule:()=>NoDeprecatedCustomRule,NoFragmentCyclesRule:()=>NoFragmentCyclesRule,NoSchemaIntrospectionCustomRule:()=>NoSchemaIntrospectionCustomRule,NoUndefinedVariablesRule:()=>NoUndefinedVariablesRule,NoUnusedFragmentsRule:()=>NoUnusedFragmentsRule,NoUnusedVariablesRule:()=>NoUnusedVariablesRule,OverlappingFieldsCanBeMergedRule:()=>OverlappingFieldsCanBeMergedRule,PossibleFragmentSpreadsRule:()=>PossibleFragmentSpreadsRule,PossibleTypeExtensionsRule:()=>PossibleTypeExtensionsRule,ProvidedRequiredArgumentsRule:()=>ProvidedRequiredArgumentsRule,ScalarLeafsRule:()=>ScalarLeafsRule,SchemaMetaFieldDef:()=>SchemaMetaFieldDef,SingleFieldSubscriptionsRule:()=>SingleFieldSubscriptionsRule,Source:()=>Source,Token:()=>Token,TokenKind:()=>TokenKind,TypeInfo:()=>TypeInfo,TypeKind:()=>TypeKind,TypeMetaFieldDef:()=>TypeMetaFieldDef,TypeNameMetaFieldDef:()=>TypeNameMetaFieldDef,UniqueArgumentNamesRule:()=>UniqueArgumentNamesRule,UniqueDirectiveNamesRule:()=>UniqueDirectiveNamesRule,UniqueDirectivesPerLocationRule:()=>UniqueDirectivesPerLocationRule,UniqueEnumValueNamesRule:()=>UniqueEnumValueNamesRule,UniqueFieldDefinitionNamesRule:()=>UniqueFieldDefinitionNamesRule,UniqueFragmentNamesRule:()=>UniqueFragmentNamesRule,UniqueInputFieldNamesRule:()=>UniqueInputFieldNamesRule,UniqueOperationNamesRule:()=>UniqueOperationNamesRule,UniqueOperationTypesRule:()=>UniqueOperationTypesRule,UniqueTypeNamesRule:()=>UniqueTypeNamesRule,UniqueVariableNamesRule:()=>UniqueVariableNamesRule,ValidationContext:()=>ValidationContext,ValuesOfCorrectTypeRule:()=>ValuesOfCorrectTypeRule,VariablesAreInputTypesRule:()=>VariablesAreInputTypesRule,VariablesInAllowedPositionRule:()=>VariablesInAllowedPositionRule,__Directive:()=>__Directive,__DirectiveLocation:()=>__DirectiveLocation,__EnumValue:()=>__EnumValue,__Field:()=>__Field,__InputValue:()=>__InputValue,__Schema:()=>__Schema,__Type:()=>__Type,__TypeKind:()=>__TypeKind,assertAbstractType:()=>assertAbstractType,assertCompositeType:()=>assertCompositeType,assertDirective:()=>assertDirective,assertEnumType:()=>assertEnumType,assertInputObjectType:()=>assertInputObjectType,assertInputType:()=>assertInputType,assertInterfaceType:()=>assertInterfaceType,assertLeafType:()=>assertLeafType,assertListType:()=>assertListType,assertNamedType:()=>assertNamedType,assertNonNullType:()=>assertNonNullType,assertNullableType:()=>assertNullableType,assertObjectType:()=>assertObjectType,assertOutputType:()=>assertOutputType,assertScalarType:()=>assertScalarType,assertSchema:()=>assertSchema,assertType:()=>assertType,assertUnionType:()=>assertUnionType,assertValidName:()=>assertValidName,assertValidSchema:()=>assertValidSchema,assertWrappingType:()=>assertWrappingType,astFromValue:()=>astFromValue,buildASTSchema:()=>buildASTSchema,buildClientSchema:()=>buildClientSchema,buildSchema:()=>buildSchema,coerceInputValue:()=>coerceInputValue,concatAST:()=>concatAST,createSourceEventStream:()=>createSourceEventStream,defaultFieldResolver:()=>defaultFieldResolver,defaultTypeResolver:()=>defaultTypeResolver,doTypesOverlap:()=>doTypesOverlap,execute:()=>execute,executeSync:()=>executeSync,extendSchema:()=>extendSchema,findBreakingChanges:()=>findBreakingChanges,findDangerousChanges:()=>findDangerousChanges,findDeprecatedUsages:()=>findDeprecatedUsages,formatError:()=>formatError,getDescription:()=>getDescription,getDirectiveValues:()=>getDirectiveValues,getIntrospectionQuery:()=>getIntrospectionQuery,getLocation:()=>getLocation,getNamedType:()=>getNamedType,getNullableType:()=>getNullableType,getOperationAST:()=>getOperationAST,getOperationRootType:()=>getOperationRootType,getVisitFn:()=>getVisitFn,graphql:()=>graphql,graphqlSync:()=>graphqlSync,introspectionFromSchema:()=>introspectionFromSchema,introspectionTypes:()=>introspectionTypes,isAbstractType:()=>isAbstractType,isCompositeType:()=>isCompositeType,isDefinitionNode:()=>isDefinitionNode,isDirective:()=>isDirective,isEnumType:()=>isEnumType,isEqualType:()=>isEqualType,isExecutableDefinitionNode:()=>isExecutableDefinitionNode,isInputObjectType:()=>isInputObjectType,isInputType:()=>isInputType,isInterfaceType:()=>isInterfaceType,isIntrospectionType:()=>isIntrospectionType,isLeafType:()=>isLeafType,isListType:()=>isListType,isNamedType:()=>isNamedType,isNonNullType:()=>isNonNullType,isNullableType:()=>isNullableType,isObjectType:()=>isObjectType,isOutputType:()=>isOutputType,isRequiredArgument:()=>isRequiredArgument,isRequiredInputField:()=>isRequiredInputField,isScalarType:()=>isScalarType,isSchema:()=>isSchema,isSelectionNode:()=>isSelectionNode,isSpecifiedDirective:()=>isSpecifiedDirective,isSpecifiedScalarType:()=>isSpecifiedScalarType,isType:()=>isType,isTypeDefinitionNode:()=>isTypeDefinitionNode,isTypeExtensionNode:()=>isTypeExtensionNode,isTypeNode:()=>isTypeNode,isTypeSubTypeOf:()=>isTypeSubTypeOf,isTypeSystemDefinitionNode:()=>isTypeSystemDefinitionNode,isTypeSystemExtensionNode:()=>isTypeSystemExtensionNode,isUnionType:()=>isUnionType,isValidNameError:()=>isValidNameError,isValueNode:()=>isValueNode,isWrappingType:()=>isWrappingType,lexicographicSortSchema:()=>lexicographicSortSchema,locatedError:()=>locatedError,parse:()=>parse,parseType:()=>parseType,parseValue:()=>parseValue,print:()=>print,printError:()=>printError,printIntrospectionSchema:()=>printIntrospectionSchema,printLocation:()=>printLocation,printSchema:()=>printSchema,printSourceLocation:()=>printSourceLocation,printType:()=>printType,responsePathAsArray:()=>pathToArray,separateOperations:()=>separateOperations,specifiedDirectives:()=>specifiedDirectives,specifiedRules:()=>specifiedRules,specifiedScalarTypes:()=>specifiedScalarTypes,stripIgnoredCharacters:()=>stripIgnoredCharacters,subscribe:()=>subscribe,syntaxError:()=>syntaxError,typeFromAST:()=>typeFromAST,validate:()=>validate,validateSchema:()=>validateSchema,valueFromAST:()=>valueFromAST,valueFromASTUntyped:()=>valueFromASTUntyped,version:()=>version,versionInfo:()=>versionInfo,visit:()=>visit,visitInParallel:()=>visitInParallel,visitWithTypeInfo:()=>visitWithTypeInfo});var version="15.8.0",versionInfo=Object.freeze({major:15,minor:8,patch:0,preReleaseTag:null});function isPromise(value){return typeof value?.then=="function"}function _typeof(obj){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof=function(obj2){return typeof obj2}:_typeof=function(obj2){return obj2&&typeof Symbol=="function"&&obj2.constructor===Symbol&&obj2!==Symbol.prototype?"symbol":typeof obj2},_typeof(obj)}function isObjectLike(value){return _typeof(value)=="object"&&value!==null}var SYMBOL_ITERATOR=typeof Symbol=="function"&&Symbol.iterator!=null?Symbol.iterator:"@@iterator",SYMBOL_ASYNC_ITERATOR=typeof Symbol=="function"&&Symbol.asyncIterator!=null?Symbol.asyncIterator:"@@asyncIterator",SYMBOL_TO_STRING_TAG=typeof Symbol=="function"&&Symbol.toStringTag!=null?Symbol.toStringTag:"@@toStringTag";function getLocation(source,position){for(var lineRegexp=/\r\n|[\n\r]/g,line=1,column=position+1,match;(match=lineRegexp.exec(source.body))&&match.index<position;)line+=1,column=position+1-(match.index+match[0].length);return{line,column}}function printLocation(location){return printSourceLocation(location.source,getLocation(location.source,location.start))}function printSourceLocation(source,sourceLocation){var firstLineColumnOffset=source.locationOffset.column-1,body=whitespace(firstLineColumnOffset)+source.body,lineIndex=sourceLocation.line-1,lineOffset=source.locationOffset.line-1,lineNum=sourceLocation.line+lineOffset,columnOffset=sourceLocation.line===1?firstLineColumnOffset:0,columnNum=sourceLocation.column+columnOffset,locationStr="".concat(source.name,":").concat(lineNum,":").concat(columnNum,`
|
76
|
+
*/(function(){"use strict";var hasOwn={}.hasOwnProperty;function classNames(){for(var classes=[],i=0;i<arguments.length;i++){var arg=arguments[i];if(!!arg){var argType=typeof arg;if(argType==="string"||argType==="number")classes.push(arg);else if(Array.isArray(arg)){if(arg.length){var inner=classNames.apply(null,arg);inner&&classes.push(inner)}}else if(argType==="object")if(arg.toString===Object.prototype.toString)for(var key in arg)hasOwn.call(arg,key)&&arg[key]&&classes.push(key);else classes.push(arg.toString())}}return classes.join(" ")}module.exports?(classNames.default=classNames,module.exports=classNames):(__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return classNames}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))})()},2700:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:()=>__WEBPACK_DEFAULT_EXPORT__});const __WEBPACK_DEFAULT_EXPORT__={loader:"loader-ribbon_loader__21nqZ",loading:"loader-ribbon_loading__2GQtq",progress:"loader-ribbon_progress__1lyMP",completed:"loader-ribbon_completed__9n1S5"}},98878:(__unused_webpack_module,exports)=>{"use strict";var has=Object.prototype.hasOwnProperty,undef;function decode(input){try{return decodeURIComponent(input.replace(/\+/g," "))}catch{return null}}function encode(input){try{return encodeURIComponent(input)}catch{return null}}function querystring(query){for(var parser=/([^=?#&]+)=?([^&]*)/g,result={},part;part=parser.exec(query);){var key=decode(part[1]),value=decode(part[2]);key===null||value===null||key in result||(result[key]=value)}return result}function querystringify(obj,prefix){prefix=prefix||"";var pairs=[],value,key;typeof prefix!="string"&&(prefix="?");for(key in obj)if(has.call(obj,key)){if(value=obj[key],!value&&(value===null||value===undef||isNaN(value))&&(value=""),key=encode(key),value=encode(value),key===null||value===null)continue;pairs.push(key+"="+value)}return pairs.length?prefix+pairs.join("&"):""}exports.stringify=querystringify,exports.parse=querystring},41384:module=>{"use strict";module.exports=function(port,protocol){if(protocol=protocol.split(":")[0],port=+port,!port)return!1;switch(protocol){case"http":case"ws":return port!==80;case"https":case"wss":return port!==443;case"ftp":return port!==21;case"gopher":return port!==70;case"file":return!1}return port!==0}},54386:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var required=__webpack_require__(41384),qs=__webpack_require__(98878),slashes=/^[A-Za-z][A-Za-z0-9+-.]*:[\\/]+/,protocolre=/^([a-z][a-z0-9.+-]*:)?([\\/]{1,})?([\S\s]*)/i,whitespace="[\\x09\\x0A\\x0B\\x0C\\x0D\\x20\\xA0\\u1680\\u180E\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200A\\u202F\\u205F\\u3000\\u2028\\u2029\\uFEFF]",left=new RegExp("^"+whitespace+"+");function trimLeft(str){return(str||"").toString().replace(left,"")}var rules=[["#","hash"],["?","query"],function(address){return address.replace("\\","/")},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d+)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],ignore={hash:1,query:1};function lolcation(loc){var globalVar;typeof window<"u"?globalVar=window:typeof __webpack_require__.g<"u"?globalVar=__webpack_require__.g:typeof self<"u"?globalVar=self:globalVar={};var location=globalVar.location||{};loc=loc||location;var finaldestination={},type=typeof loc,key;if(loc.protocol==="blob:")finaldestination=new Url(unescape(loc.pathname),{});else if(type==="string"){finaldestination=new Url(loc,{});for(key in ignore)delete finaldestination[key]}else if(type==="object"){for(key in loc)key in ignore||(finaldestination[key]=loc[key]);finaldestination.slashes===void 0&&(finaldestination.slashes=slashes.test(loc.href))}return finaldestination}function extractProtocol(address){address=trimLeft(address);var match=protocolre.exec(address),protocol=match[1]?match[1].toLowerCase():"",slashes2=!!(match[2]&&match[2].length>=2),rest=match[2]&&match[2].length===1?"/"+match[3]:match[3];return{protocol,slashes:slashes2,rest}}function resolve(relative,base){if(relative==="")return base;for(var path=(base||"/").split("/").slice(0,-1).concat(relative.split("/")),i=path.length,last=path[i-1],unshift=!1,up=0;i--;)path[i]==="."?path.splice(i,1):path[i]===".."?(path.splice(i,1),up++):up&&(i===0&&(unshift=!0),path.splice(i,1),up--);return unshift&&path.unshift(""),(last==="."||last==="..")&&path.push(""),path.join("/")}function Url(address,location,parser){if(address=trimLeft(address),!(this instanceof Url))return new Url(address,location,parser);var relative,extracted,parse,instruction,index,key,instructions=rules.slice(),type=typeof location,url=this,i=0;for(type!=="object"&&type!=="string"&&(parser=location,location=null),parser&&typeof parser!="function"&&(parser=qs.parse),location=lolcation(location),extracted=extractProtocol(address||""),relative=!extracted.protocol&&!extracted.slashes,url.slashes=extracted.slashes||relative&&location.slashes,url.protocol=extracted.protocol||location.protocol||"",address=extracted.rest,extracted.slashes||(instructions[3]=[/(.*)/,"pathname"]);i<instructions.length;i++){if(instruction=instructions[i],typeof instruction=="function"){address=instruction(address);continue}parse=instruction[0],key=instruction[1],parse!==parse?url[key]=address:typeof parse=="string"?~(index=address.indexOf(parse))&&(typeof instruction[2]=="number"?(url[key]=address.slice(0,index),address=address.slice(index+instruction[2])):(url[key]=address.slice(index),address=address.slice(0,index))):(index=parse.exec(address))&&(url[key]=index[1],address=address.slice(0,index.index)),url[key]=url[key]||relative&&instruction[3]&&location[key]||"",instruction[4]&&(url[key]=url[key].toLowerCase())}parser&&(url.query=parser(url.query)),relative&&location.slashes&&url.pathname.charAt(0)!=="/"&&(url.pathname!==""||location.pathname!=="")&&(url.pathname=resolve(url.pathname,location.pathname)),url.pathname.charAt(0)!=="/"&&url.hostname&&(url.pathname="/"+url.pathname),required(url.port,url.protocol)||(url.host=url.hostname,url.port=""),url.username=url.password="",url.auth&&(instruction=url.auth.split(":"),url.username=instruction[0]||"",url.password=instruction[1]||""),url.origin=url.protocol&&url.host&&url.protocol!=="file:"?url.protocol+"//"+url.host:"null",url.href=url.toString()}function set(part,value,fn){var url=this;switch(part){case"query":typeof value=="string"&&value.length&&(value=(fn||qs.parse)(value)),url[part]=value;break;case"port":url[part]=value,required(value,url.protocol)?value&&(url.host=url.hostname+":"+value):(url.host=url.hostname,url[part]="");break;case"hostname":url[part]=value,url.port&&(value+=":"+url.port),url.host=value;break;case"host":url[part]=value,/:\d+$/.test(value)?(value=value.split(":"),url.port=value.pop(),url.hostname=value.join(":")):(url.hostname=value,url.port="");break;case"protocol":url.protocol=value.toLowerCase(),url.slashes=!fn;break;case"pathname":case"hash":if(value){var char=part==="pathname"?"/":"#";url[part]=value.charAt(0)!==char?char+value:value}else url[part]=value;break;default:url[part]=value}for(var i=0;i<rules.length;i++){var ins=rules[i];ins[4]&&(url[ins[1]]=url[ins[1]].toLowerCase())}return url.origin=url.protocol&&url.host&&url.protocol!=="file:"?url.protocol+"//"+url.host:"null",url.href=url.toString(),url}function toString(stringify){(!stringify||typeof stringify!="function")&&(stringify=qs.stringify);var query,url=this,protocol=url.protocol;protocol&&protocol.charAt(protocol.length-1)!==":"&&(protocol+=":");var result=protocol+(url.slashes?"//":"");return url.username&&(result+=url.username,url.password&&(result+=":"+url.password),result+="@"),result+=url.host+url.pathname,query=typeof url.query=="object"?stringify(url.query):url.query,query&&(result+=query.charAt(0)!=="?"?"?"+query:query),url.hash&&(result+=url.hash),result}Url.prototype={set,toString},Url.extractProtocol=extractProtocol,Url.location=lolcation,Url.trimLeft=trimLeft,Url.qs=qs,module.exports=Url},51166:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.CompositionsApp=void 0;const react_1=__importDefault(__webpack_require__(59496)),base_ui_utils_composer_1=__webpack_require__(80893),design_ui_pages_standalone_not_found_page_1=__webpack_require__(31378),react_ui_loader_fallback_1=__webpack_require__(4603),hideScrollbars="body::-webkit-scrollbar {display: none;}";function CompositionsApp({Composition,previewContext}){const{providers=[]}=previewContext?.get("teambit.react/react")||{},safeComposition=(0,react_ui_loader_fallback_1.useFallback)(Composition&&react_1.default.createElement(Composition,null),react_1.default.createElement(design_ui_pages_standalone_not_found_page_1.StandaloneNotFoundPage,null));return react_1.default.createElement(base_ui_utils_composer_1.Composer,{components:providers},react_1.default.createElement("style",null,hideScrollbars),safeComposition)}exports.CompositionsApp=CompositionsApp},40105:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0});const react_1=__importDefault(__webpack_require__(59496)),react_dom_1=__importDefault(__webpack_require__(87995)),compositions_app_1=__webpack_require__(51166);exports.default=(Composition,previewContext)=>{react_dom_1.default.render(react_1.default.createElement(compositions_app_1.CompositionsApp,{Composition,previewContext}),document.getElementById("root"))}},5659:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.CompositionsApp=void 0;var compositions_app_1=__webpack_require__(51166);Object.defineProperty(exports,"CompositionsApp",{enumerable:!0,get:function(){return compositions_app_1.CompositionsApp}});var compositions_app_root_1=__webpack_require__(40105);Object.defineProperty(exports,"default",{enumerable:!0,get:function(){return __importDefault(compositions_app_root_1).default}})},4603:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.useFallback=exports.LoaderFallback=void 0;var loader_fallback_1=__webpack_require__(48767);Object.defineProperty(exports,"LoaderFallback",{enumerable:!0,get:function(){return loader_fallback_1.LoaderFallback}}),Object.defineProperty(exports,"useFallback",{enumerable:!0,get:function(){return loader_fallback_1.useFallback}})},48767:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)k!=="default"&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result};Object.defineProperty(exports,"__esModule",{value:!0}),exports.useFallback=exports.LoaderFallback=void 0;const react_1=__importStar(__webpack_require__(59496)),base_ui_loaders_loader_ribbon_1=__webpack_require__(75076);function LoaderFallback({Target,Loader=LoaderComponent,DefaultComponent,timeout=15e3}){return useFallback(Target&&react_1.default.createElement(Target,null),react_1.default.createElement(DefaultComponent,null),{timeout,loader:react_1.default.createElement(Loader,null)})}exports.LoaderFallback=LoaderFallback;function useFallback(target,fallback,{timeout=15e3,loader=react_1.default.createElement(LoaderComponent,null)}={}){const[working,setWorking]=(0,react_1.useState)(!!target),hasTarget=!!target;return(0,react_1.useEffect)(()=>{if(timeout<=0)return()=>{};if(hasTarget)return setWorking(!0),()=>{};const tmId=setTimeout(()=>setWorking(!1),timeout);return()=>clearTimeout(tmId)},[hasTarget,timeout]),target||(working&&timeout>0?loader:fallback)}exports.useFallback=useFallback;function LoaderComponent(){return react_1.default.createElement(base_ui_loaders_loader_ribbon_1.LoaderRibbon,{active:!0,style:{position:"fixed",top:0,left:0,right:0}})}},36478:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.defaultJsonSerializer=void 0,exports.defaultJsonSerializer=JSON},2580:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.GraphQLWebSocketClient=void 0;const resolveRequestDocument_js_1=__webpack_require__(2284),types_js_1=__webpack_require__(481),CONNECTION_INIT="connection_init",CONNECTION_ACK="connection_ack",PING="ping",PONG="pong",SUBSCRIBE="subscribe",NEXT="next",ERROR="error",COMPLETE="complete";class GraphQLWebSocketMessage{get type(){return this._type}get id(){return this._id}get payload(){return this._payload}constructor(type,payload,id){this._type=type,this._payload=payload,this._id=id}get text(){const result={type:this.type};return this.id!=null&&this.id!=null&&(result.id=this.id),this.payload!=null&&this.payload!=null&&(result.payload=this.payload),JSON.stringify(result)}static parse(data,f){const{type,payload,id}=JSON.parse(data);return new GraphQLWebSocketMessage(type,f(payload),id)}}class GraphQLWebSocketClient{constructor(socket,{onInit,onAcknowledged,onPing,onPong}){this.socketState={acknowledged:!1,lastRequestId:0,subscriptions:{}},this.socket=socket,socket.addEventListener("open",async e=>{this.socketState.acknowledged=!1,this.socketState.subscriptions={},socket.send(ConnectionInit(onInit?await onInit():null).text)}),socket.addEventListener("close",e=>{this.socketState.acknowledged=!1,this.socketState.subscriptions={}}),socket.addEventListener("error",e=>{console.error(e)}),socket.addEventListener("message",e=>{try{const message=parseMessage(e.data);switch(message.type){case CONNECTION_ACK:{this.socketState.acknowledged?console.warn("Duplicate CONNECTION_ACK message ignored"):(this.socketState.acknowledged=!0,onAcknowledged&&onAcknowledged(message.payload));return}case PING:{onPing?onPing(message.payload).then(r=>socket.send(Pong(r).text)):socket.send(Pong(null).text);return}case PONG:{onPong&&onPong(message.payload);return}}if(!this.socketState.acknowledged||message.id===void 0||message.id===null||!this.socketState.subscriptions[message.id])return;const{query,variables,subscriber}=this.socketState.subscriptions[message.id];switch(message.type){case NEXT:{!message.payload.errors&&message.payload.data&&subscriber.next&&subscriber.next(message.payload.data),message.payload.errors&&subscriber.error&&subscriber.error(new types_js_1.ClientError({...message.payload,status:200},{query,variables}));return}case ERROR:{subscriber.error&&subscriber.error(new types_js_1.ClientError({errors:message.payload,status:200},{query,variables}));return}case COMPLETE:{subscriber.complete&&subscriber.complete(),delete this.socketState.subscriptions[message.id];return}}}catch(e2){console.error(e2),socket.close(1006)}socket.close(4400,"Unknown graphql-ws message.")})}makeSubscribe(query,operationName,subscriber,variables){const subscriptionId=(this.socketState.lastRequestId++).toString();return this.socketState.subscriptions[subscriptionId]={query,variables,subscriber},this.socket.send(Subscribe(subscriptionId,{query,operationName,variables}).text),()=>{this.socket.send(Complete(subscriptionId).text),delete this.socketState.subscriptions[subscriptionId]}}rawRequest(query,variables){return new Promise((resolve,reject)=>{let result;this.rawSubscribe(query,{next:(data,extensions)=>result={data,extensions},error:reject,complete:()=>resolve(result)},variables)})}request(document2,variables){return new Promise((resolve,reject)=>{let result;this.subscribe(document2,{next:data=>result=data,error:reject,complete:()=>resolve(result)},variables)})}subscribe(document2,subscriber,variables){const{query,operationName}=(0,resolveRequestDocument_js_1.resolveRequestDocument)(document2);return this.makeSubscribe(query,operationName,subscriber,variables)}rawSubscribe(query,subscriber,variables){return this.makeSubscribe(query,void 0,subscriber,variables)}ping(payload){this.socket.send(Ping(payload).text)}close(){this.socket.close(1e3)}}GraphQLWebSocketClient.PROTOCOL="graphql-transport-ws",exports.GraphQLWebSocketClient=GraphQLWebSocketClient;function parseMessage(data,f=a=>a){return GraphQLWebSocketMessage.parse(data,f)}function ConnectionInit(payload){return new GraphQLWebSocketMessage(CONNECTION_INIT,payload)}function Ping(payload){return new GraphQLWebSocketMessage(PING,payload,void 0)}function Pong(payload){return new GraphQLWebSocketMessage(PONG,payload,void 0)}function Subscribe(id,payload){return new GraphQLWebSocketMessage(SUBSCRIBE,payload,id)}function Complete(id){return new GraphQLWebSocketMessage(COMPLETE,void 0,id)}},64337:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.HeadersInstanceToPlainObject=exports.uppercase=void 0;const uppercase=str=>str.toUpperCase();exports.uppercase=uppercase;const HeadersInstanceToPlainObject=headers=>{const o={};return headers.forEach((v,k)=>{o[k]=v}),o};exports.HeadersInstanceToPlainObject=HeadersInstanceToPlainObject},32906:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)k!=="default"&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result};Object.defineProperty(exports,"__esModule",{value:!0}),exports.request=exports.rawRequest=exports.GraphQLClient=exports.ClientError=exports.batchRequests=exports.resolveRequestDocument=exports.GraphQLWebSocketClient=exports.gql=void 0;const defaultJsonSerializer_js_1=__webpack_require__(36478),helpers_js_1=__webpack_require__(64337),parseArgs_js_1=__webpack_require__(35520),resolveRequestDocument_js_1=__webpack_require__(2284),types_js_1=__webpack_require__(481);Object.defineProperty(exports,"ClientError",{enumerable:!0,get:function(){return types_js_1.ClientError}});const cross_fetch_1=__importStar(__webpack_require__(38882)),CrossFetch=cross_fetch_1,resolveHeaders=headers=>{let oHeaders={};return headers&&(typeof Headers<"u"&&headers instanceof Headers||CrossFetch&&CrossFetch.Headers&&headers instanceof CrossFetch.Headers?oHeaders=(0,helpers_js_1.HeadersInstanceToPlainObject)(headers):Array.isArray(headers)?headers.forEach(([name,value])=>{name&&value!==void 0&&(oHeaders[name]=value)}):oHeaders=headers),oHeaders},cleanQuery=str=>str.replace(/([\s,]|#[^\n\r]+)+/g," ").trim(),buildRequestConfig=params=>{if(!Array.isArray(params.query)){const params_2=params,search=[`query=${encodeURIComponent(cleanQuery(params_2.query))}`];return params.variables&&search.push(`variables=${encodeURIComponent(params_2.jsonSerializer.stringify(params_2.variables))}`),params_2.operationName&&search.push(`operationName=${encodeURIComponent(params_2.operationName)}`),search.join("&")}if(typeof params.variables<"u"&&!Array.isArray(params.variables))throw new Error("Cannot create query with given variable type, array expected");const params_=params,payload=params.query.reduce((acc,currentQuery,index)=>(acc.push({query:cleanQuery(currentQuery),variables:params_.variables?params_.jsonSerializer.stringify(params_.variables[index]):void 0}),acc),[]);return`query=${encodeURIComponent(params_.jsonSerializer.stringify(payload))}`},createHttpMethodFetcher=method=>async params=>{const{url,query,variables,operationName,fetch,fetchOptions,middleware}=params,headers={...params.headers};let queryParams="",body;method==="POST"?(body=createRequestBody(query,variables,operationName,fetchOptions.jsonSerializer),typeof body=="string"&&(headers["Content-Type"]="application/json")):queryParams=buildRequestConfig({query,variables,operationName,jsonSerializer:fetchOptions.jsonSerializer??defaultJsonSerializer_js_1.defaultJsonSerializer});const init={method,headers,body,...fetchOptions};let urlResolved=url,initResolved=init;if(middleware){const result=await Promise.resolve(middleware({...init,url,operationName,variables})),{url:urlNew,...initNew}=result;urlResolved=urlNew,initResolved=initNew}return queryParams&&(urlResolved=`${urlResolved}?${queryParams}`),await fetch(urlResolved,initResolved)};class GraphQLClient{constructor(url,requestConfig={}){this.url=url,this.requestConfig=requestConfig,this.rawRequest=async(...args)=>{const[queryOrOptions,variables,requestHeaders]=args,rawRequestOptions=(0,parseArgs_js_1.parseRawRequestArgs)(queryOrOptions,variables,requestHeaders),{headers,fetch=cross_fetch_1.default,method="POST",requestMiddleware,responseMiddleware,...fetchOptions}=this.requestConfig,{url:url2}=this;rawRequestOptions.signal!==void 0&&(fetchOptions.signal=rawRequestOptions.signal);const{operationName}=(0,resolveRequestDocument_js_1.resolveRequestDocument)(rawRequestOptions.query);return makeRequest({url:url2,query:rawRequestOptions.query,variables:rawRequestOptions.variables,headers:{...resolveHeaders(callOrIdentity(headers)),...resolveHeaders(rawRequestOptions.requestHeaders)},operationName,fetch,method,fetchOptions,middleware:requestMiddleware}).then(response=>(responseMiddleware&&responseMiddleware(response),response)).catch(error=>{throw responseMiddleware&&responseMiddleware(error),error})}}async request(documentOrOptions,...variablesAndRequestHeaders){const[variables,requestHeaders]=variablesAndRequestHeaders,requestOptions=(0,parseArgs_js_1.parseRequestArgs)(documentOrOptions,variables,requestHeaders),{headers,fetch=cross_fetch_1.default,method="POST",requestMiddleware,responseMiddleware,...fetchOptions}=this.requestConfig,{url}=this;requestOptions.signal!==void 0&&(fetchOptions.signal=requestOptions.signal);const{query,operationName}=(0,resolveRequestDocument_js_1.resolveRequestDocument)(requestOptions.document);return makeRequest({url,query,variables:requestOptions.variables,headers:{...resolveHeaders(callOrIdentity(headers)),...resolveHeaders(requestOptions.requestHeaders)},operationName,fetch,method,fetchOptions,middleware:requestMiddleware}).then(response=>(responseMiddleware&&responseMiddleware(response),response.data)).catch(error=>{throw responseMiddleware&&responseMiddleware(error),error})}batchRequests(documentsOrOptions,requestHeaders){const batchRequestOptions=(0,parseArgs_js_1.parseBatchRequestArgs)(documentsOrOptions,requestHeaders),{headers,...fetchOptions}=this.requestConfig;batchRequestOptions.signal!==void 0&&(fetchOptions.signal=batchRequestOptions.signal);const queries=batchRequestOptions.documents.map(({document:document2})=>(0,resolveRequestDocument_js_1.resolveRequestDocument)(document2).query),variables=batchRequestOptions.documents.map(({variables:variables2})=>variables2);return makeRequest({url:this.url,query:queries,variables,headers:{...resolveHeaders(callOrIdentity(headers)),...resolveHeaders(batchRequestOptions.requestHeaders)},operationName:void 0,fetch:this.requestConfig.fetch??cross_fetch_1.default,method:this.requestConfig.method||"POST",fetchOptions,middleware:this.requestConfig.requestMiddleware}).then(response=>(this.requestConfig.responseMiddleware&&this.requestConfig.responseMiddleware(response),response.data)).catch(error=>{throw this.requestConfig.responseMiddleware&&this.requestConfig.responseMiddleware(error),error})}setHeaders(headers){return this.requestConfig.headers=headers,this}setHeader(key,value){const{headers}=this.requestConfig;return headers?headers[key]=value:this.requestConfig.headers={[key]:value},this}setEndpoint(value){return this.url=value,this}}exports.GraphQLClient=GraphQLClient;const makeRequest=async params=>{const{query,variables,fetchOptions}=params,fetcher=createHttpMethodFetcher((0,helpers_js_1.uppercase)(params.method??"post")),isBatchingQuery=Array.isArray(params.query),response=await fetcher(params),result=await getResult(response,fetchOptions.jsonSerializer??defaultJsonSerializer_js_1.defaultJsonSerializer),successfullyReceivedData=Array.isArray(result)?!result.some(({data})=>!data):Boolean(result.data),successfullyPassedErrorPolicy=Array.isArray(result)||!result.errors||Array.isArray(result.errors)&&!result.errors.length||fetchOptions.errorPolicy==="all"||fetchOptions.errorPolicy==="ignore";if(response.ok&&successfullyPassedErrorPolicy&&successfullyReceivedData){const{errors:_,...rest}=(Array.isArray(result),result),data=fetchOptions.errorPolicy==="ignore"?rest:result;return{...isBatchingQuery?{data}:data,headers:response.headers,status:response.status}}else{const errorResult=typeof result=="string"?{error:result}:result;throw new types_js_1.ClientError({...errorResult,status:response.status,headers:response.headers},{query,variables})}},rawRequest=async(...args)=>{const[urlOrOptions,query,...variablesAndRequestHeaders]=args,requestOptions=(0,parseArgs_js_1.parseRawRequestExtendedArgs)(urlOrOptions,query,...variablesAndRequestHeaders);return new GraphQLClient(requestOptions.url).rawRequest({...requestOptions})};exports.rawRequest=rawRequest;async function request(urlOrOptions,document2,...variablesAndRequestHeaders){const requestOptions=(0,parseArgs_js_1.parseRequestExtendedArgs)(urlOrOptions,document2,...variablesAndRequestHeaders);return new GraphQLClient(requestOptions.url).request({...requestOptions})}exports.request=request;const batchRequests=async(...args)=>{const params=parseBatchRequestsArgsExtended(args);return new GraphQLClient(params.url).batchRequests(params)};exports.batchRequests=batchRequests;const parseBatchRequestsArgsExtended=args=>args.length===1?args[0]:{url:args[0],documents:args[1],requestHeaders:args[2],signal:void 0},createRequestBody=(query,variables,operationName,jsonSerializer)=>{const jsonSerializer_=jsonSerializer??defaultJsonSerializer_js_1.defaultJsonSerializer;if(!Array.isArray(query))return jsonSerializer_.stringify({query,variables,operationName});if(typeof variables<"u"&&!Array.isArray(variables))throw new Error("Cannot create request body with given variable type, array expected");const payload=query.reduce((acc,currentQuery,index)=>(acc.push({query:currentQuery,variables:variables?variables[index]:void 0}),acc),[]);return jsonSerializer_.stringify(payload)},getResult=async(response,jsonSerializer)=>{let contentType;return response.headers.forEach((value,key)=>{key.toLowerCase()==="content-type"&&(contentType=value)}),contentType&&(contentType.toLowerCase().startsWith("application/json")||contentType.toLowerCase().startsWith("application/graphql+json")||contentType.toLowerCase().startsWith("application/graphql-response+json"))?jsonSerializer.parse(await response.text()):response.text()},callOrIdentity=value=>typeof value=="function"?value():value,gql=(chunks,...variables)=>chunks.reduce((acc,chunk,index)=>`${acc}${chunk}${index in variables?String(variables[index]):""}`,"");exports.gql=gql;var graphql_ws_js_1=__webpack_require__(2580);Object.defineProperty(exports,"GraphQLWebSocketClient",{enumerable:!0,get:function(){return graphql_ws_js_1.GraphQLWebSocketClient}});var resolveRequestDocument_js_2=__webpack_require__(2284);Object.defineProperty(exports,"resolveRequestDocument",{enumerable:!0,get:function(){return resolveRequestDocument_js_2.resolveRequestDocument}}),exports.default=request},35520:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.parseRawRequestExtendedArgs=exports.parseRequestExtendedArgs=exports.parseBatchRequestArgs=exports.parseRawRequestArgs=exports.parseRequestArgs=void 0;const parseRequestArgs=(documentOrOptions,variables,requestHeaders)=>documentOrOptions.document?documentOrOptions:{document:documentOrOptions,variables,requestHeaders,signal:void 0};exports.parseRequestArgs=parseRequestArgs;const parseRawRequestArgs=(queryOrOptions,variables,requestHeaders)=>queryOrOptions.query?queryOrOptions:{query:queryOrOptions,variables,requestHeaders,signal:void 0};exports.parseRawRequestArgs=parseRawRequestArgs;const parseBatchRequestArgs=(documentsOrOptions,requestHeaders)=>documentsOrOptions.documents?documentsOrOptions:{documents:documentsOrOptions,requestHeaders,signal:void 0};exports.parseBatchRequestArgs=parseBatchRequestArgs;const parseRequestExtendedArgs=(urlOrOptions,document2,...variablesAndRequestHeaders)=>{const[variables,requestHeaders]=variablesAndRequestHeaders;return urlOrOptions.document?urlOrOptions:{url:urlOrOptions,document:document2,variables,requestHeaders,signal:void 0}};exports.parseRequestExtendedArgs=parseRequestExtendedArgs;const parseRawRequestExtendedArgs=(urlOrOptions,query,...variablesAndRequestHeaders)=>{const[variables,requestHeaders]=variablesAndRequestHeaders;return urlOrOptions.query?urlOrOptions:{url:urlOrOptions,query,variables,requestHeaders,signal:void 0}};exports.parseRawRequestExtendedArgs=parseRawRequestExtendedArgs},2284:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.resolveRequestDocument=void 0;const graphql_1=__webpack_require__(76040),extractOperationName=document2=>{let operationName;const operationDefinitions=document2.definitions.filter(definition=>definition.kind==="OperationDefinition");return operationDefinitions.length===1&&(operationName=operationDefinitions[0]?.name?.value),operationName},resolveRequestDocument=document2=>{if(typeof document2=="string"){let operationName2;try{const parsedDocument=(0,graphql_1.parse)(document2);operationName2=extractOperationName(parsedDocument)}catch{}return{query:document2,operationName:operationName2}}const operationName=extractOperationName(document2);return{query:(0,graphql_1.print)(document2),operationName}};exports.resolveRequestDocument=resolveRequestDocument},481:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ClientError=void 0;class ClientError extends Error{constructor(response,request){const message=`${ClientError.extractMessage(response)}: ${JSON.stringify({response,request})}`;super(message);Object.setPrototypeOf(this,ClientError.prototype),this.response=response,this.request=request,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,ClientError)}static extractMessage(response){return response.errors?.[0]?.message??`GraphQL Error (Code: ${response.status})`}}exports.ClientError=ClientError},76040:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{BREAK:()=>BREAK,BreakingChangeType:()=>BreakingChangeType,DEFAULT_DEPRECATION_REASON:()=>DEFAULT_DEPRECATION_REASON,DangerousChangeType:()=>DangerousChangeType,DirectiveLocation:()=>DirectiveLocation,ExecutableDefinitionsRule:()=>ExecutableDefinitionsRule,FieldsOnCorrectTypeRule:()=>FieldsOnCorrectTypeRule,FragmentsOnCompositeTypesRule:()=>FragmentsOnCompositeTypesRule,GraphQLBoolean:()=>GraphQLBoolean,GraphQLDeprecatedDirective:()=>GraphQLDeprecatedDirective,GraphQLDirective:()=>GraphQLDirective,GraphQLEnumType:()=>GraphQLEnumType,GraphQLError:()=>GraphQLError,GraphQLFloat:()=>GraphQLFloat,GraphQLID:()=>GraphQLID,GraphQLIncludeDirective:()=>GraphQLIncludeDirective,GraphQLInputObjectType:()=>GraphQLInputObjectType,GraphQLInt:()=>GraphQLInt,GraphQLInterfaceType:()=>GraphQLInterfaceType,GraphQLList:()=>GraphQLList,GraphQLNonNull:()=>GraphQLNonNull,GraphQLObjectType:()=>GraphQLObjectType,GraphQLScalarType:()=>GraphQLScalarType,GraphQLSchema:()=>GraphQLSchema,GraphQLSkipDirective:()=>GraphQLSkipDirective,GraphQLSpecifiedByDirective:()=>GraphQLSpecifiedByDirective,GraphQLString:()=>GraphQLString,GraphQLUnionType:()=>GraphQLUnionType,Kind:()=>Kind,KnownArgumentNamesRule:()=>KnownArgumentNamesRule,KnownDirectivesRule:()=>KnownDirectivesRule,KnownFragmentNamesRule:()=>KnownFragmentNamesRule,KnownTypeNamesRule:()=>KnownTypeNamesRule,Lexer:()=>Lexer,Location:()=>Location,LoneAnonymousOperationRule:()=>LoneAnonymousOperationRule,LoneSchemaDefinitionRule:()=>LoneSchemaDefinitionRule,NoDeprecatedCustomRule:()=>NoDeprecatedCustomRule,NoFragmentCyclesRule:()=>NoFragmentCyclesRule,NoSchemaIntrospectionCustomRule:()=>NoSchemaIntrospectionCustomRule,NoUndefinedVariablesRule:()=>NoUndefinedVariablesRule,NoUnusedFragmentsRule:()=>NoUnusedFragmentsRule,NoUnusedVariablesRule:()=>NoUnusedVariablesRule,OverlappingFieldsCanBeMergedRule:()=>OverlappingFieldsCanBeMergedRule,PossibleFragmentSpreadsRule:()=>PossibleFragmentSpreadsRule,PossibleTypeExtensionsRule:()=>PossibleTypeExtensionsRule,ProvidedRequiredArgumentsRule:()=>ProvidedRequiredArgumentsRule,ScalarLeafsRule:()=>ScalarLeafsRule,SchemaMetaFieldDef:()=>SchemaMetaFieldDef,SingleFieldSubscriptionsRule:()=>SingleFieldSubscriptionsRule,Source:()=>Source,Token:()=>Token,TokenKind:()=>TokenKind,TypeInfo:()=>TypeInfo,TypeKind:()=>TypeKind,TypeMetaFieldDef:()=>TypeMetaFieldDef,TypeNameMetaFieldDef:()=>TypeNameMetaFieldDef,UniqueArgumentNamesRule:()=>UniqueArgumentNamesRule,UniqueDirectiveNamesRule:()=>UniqueDirectiveNamesRule,UniqueDirectivesPerLocationRule:()=>UniqueDirectivesPerLocationRule,UniqueEnumValueNamesRule:()=>UniqueEnumValueNamesRule,UniqueFieldDefinitionNamesRule:()=>UniqueFieldDefinitionNamesRule,UniqueFragmentNamesRule:()=>UniqueFragmentNamesRule,UniqueInputFieldNamesRule:()=>UniqueInputFieldNamesRule,UniqueOperationNamesRule:()=>UniqueOperationNamesRule,UniqueOperationTypesRule:()=>UniqueOperationTypesRule,UniqueTypeNamesRule:()=>UniqueTypeNamesRule,UniqueVariableNamesRule:()=>UniqueVariableNamesRule,ValidationContext:()=>ValidationContext,ValuesOfCorrectTypeRule:()=>ValuesOfCorrectTypeRule,VariablesAreInputTypesRule:()=>VariablesAreInputTypesRule,VariablesInAllowedPositionRule:()=>VariablesInAllowedPositionRule,__Directive:()=>__Directive,__DirectiveLocation:()=>__DirectiveLocation,__EnumValue:()=>__EnumValue,__Field:()=>__Field,__InputValue:()=>__InputValue,__Schema:()=>__Schema,__Type:()=>__Type,__TypeKind:()=>__TypeKind,assertAbstractType:()=>assertAbstractType,assertCompositeType:()=>assertCompositeType,assertDirective:()=>assertDirective,assertEnumType:()=>assertEnumType,assertInputObjectType:()=>assertInputObjectType,assertInputType:()=>assertInputType,assertInterfaceType:()=>assertInterfaceType,assertLeafType:()=>assertLeafType,assertListType:()=>assertListType,assertNamedType:()=>assertNamedType,assertNonNullType:()=>assertNonNullType,assertNullableType:()=>assertNullableType,assertObjectType:()=>assertObjectType,assertOutputType:()=>assertOutputType,assertScalarType:()=>assertScalarType,assertSchema:()=>assertSchema,assertType:()=>assertType,assertUnionType:()=>assertUnionType,assertValidName:()=>assertValidName,assertValidSchema:()=>assertValidSchema,assertWrappingType:()=>assertWrappingType,astFromValue:()=>astFromValue,buildASTSchema:()=>buildASTSchema,buildClientSchema:()=>buildClientSchema,buildSchema:()=>buildSchema,coerceInputValue:()=>coerceInputValue,concatAST:()=>concatAST,createSourceEventStream:()=>createSourceEventStream,defaultFieldResolver:()=>defaultFieldResolver,defaultTypeResolver:()=>defaultTypeResolver,doTypesOverlap:()=>doTypesOverlap,execute:()=>execute,executeSync:()=>executeSync,extendSchema:()=>extendSchema,findBreakingChanges:()=>findBreakingChanges,findDangerousChanges:()=>findDangerousChanges,findDeprecatedUsages:()=>findDeprecatedUsages,formatError:()=>formatError,getDescription:()=>getDescription,getDirectiveValues:()=>getDirectiveValues,getIntrospectionQuery:()=>getIntrospectionQuery,getLocation:()=>getLocation,getNamedType:()=>getNamedType,getNullableType:()=>getNullableType,getOperationAST:()=>getOperationAST,getOperationRootType:()=>getOperationRootType,getVisitFn:()=>getVisitFn,graphql:()=>graphql,graphqlSync:()=>graphqlSync,introspectionFromSchema:()=>introspectionFromSchema,introspectionTypes:()=>introspectionTypes,isAbstractType:()=>isAbstractType,isCompositeType:()=>isCompositeType,isDefinitionNode:()=>isDefinitionNode,isDirective:()=>isDirective,isEnumType:()=>isEnumType,isEqualType:()=>isEqualType,isExecutableDefinitionNode:()=>isExecutableDefinitionNode,isInputObjectType:()=>isInputObjectType,isInputType:()=>isInputType,isInterfaceType:()=>isInterfaceType,isIntrospectionType:()=>isIntrospectionType,isLeafType:()=>isLeafType,isListType:()=>isListType,isNamedType:()=>isNamedType,isNonNullType:()=>isNonNullType,isNullableType:()=>isNullableType,isObjectType:()=>isObjectType,isOutputType:()=>isOutputType,isRequiredArgument:()=>isRequiredArgument,isRequiredInputField:()=>isRequiredInputField,isScalarType:()=>isScalarType,isSchema:()=>isSchema,isSelectionNode:()=>isSelectionNode,isSpecifiedDirective:()=>isSpecifiedDirective,isSpecifiedScalarType:()=>isSpecifiedScalarType,isType:()=>isType,isTypeDefinitionNode:()=>isTypeDefinitionNode,isTypeExtensionNode:()=>isTypeExtensionNode,isTypeNode:()=>isTypeNode,isTypeSubTypeOf:()=>isTypeSubTypeOf,isTypeSystemDefinitionNode:()=>isTypeSystemDefinitionNode,isTypeSystemExtensionNode:()=>isTypeSystemExtensionNode,isUnionType:()=>isUnionType,isValidNameError:()=>isValidNameError,isValueNode:()=>isValueNode,isWrappingType:()=>isWrappingType,lexicographicSortSchema:()=>lexicographicSortSchema,locatedError:()=>locatedError,parse:()=>parse,parseType:()=>parseType,parseValue:()=>parseValue,print:()=>print,printError:()=>printError,printIntrospectionSchema:()=>printIntrospectionSchema,printLocation:()=>printLocation,printSchema:()=>printSchema,printSourceLocation:()=>printSourceLocation,printType:()=>printType,responsePathAsArray:()=>pathToArray,separateOperations:()=>separateOperations,specifiedDirectives:()=>specifiedDirectives,specifiedRules:()=>specifiedRules,specifiedScalarTypes:()=>specifiedScalarTypes,stripIgnoredCharacters:()=>stripIgnoredCharacters,subscribe:()=>subscribe,syntaxError:()=>syntaxError,typeFromAST:()=>typeFromAST,validate:()=>validate,validateSchema:()=>validateSchema,valueFromAST:()=>valueFromAST,valueFromASTUntyped:()=>valueFromASTUntyped,version:()=>version,versionInfo:()=>versionInfo,visit:()=>visit,visitInParallel:()=>visitInParallel,visitWithTypeInfo:()=>visitWithTypeInfo});var version="15.8.0",versionInfo=Object.freeze({major:15,minor:8,patch:0,preReleaseTag:null});function isPromise(value){return typeof value?.then=="function"}function _typeof(obj){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof=function(obj2){return typeof obj2}:_typeof=function(obj2){return obj2&&typeof Symbol=="function"&&obj2.constructor===Symbol&&obj2!==Symbol.prototype?"symbol":typeof obj2},_typeof(obj)}function isObjectLike(value){return _typeof(value)=="object"&&value!==null}var SYMBOL_ITERATOR=typeof Symbol=="function"&&Symbol.iterator!=null?Symbol.iterator:"@@iterator",SYMBOL_ASYNC_ITERATOR=typeof Symbol=="function"&&Symbol.asyncIterator!=null?Symbol.asyncIterator:"@@asyncIterator",SYMBOL_TO_STRING_TAG=typeof Symbol=="function"&&Symbol.toStringTag!=null?Symbol.toStringTag:"@@toStringTag";function getLocation(source,position){for(var lineRegexp=/\r\n|[\n\r]/g,line=1,column=position+1,match;(match=lineRegexp.exec(source.body))&&match.index<position;)line+=1,column=position+1-(match.index+match[0].length);return{line,column}}function printLocation(location){return printSourceLocation(location.source,getLocation(location.source,location.start))}function printSourceLocation(source,sourceLocation){var firstLineColumnOffset=source.locationOffset.column-1,body=whitespace(firstLineColumnOffset)+source.body,lineIndex=sourceLocation.line-1,lineOffset=source.locationOffset.line-1,lineNum=sourceLocation.line+lineOffset,columnOffset=sourceLocation.line===1?firstLineColumnOffset:0,columnNum=sourceLocation.column+columnOffset,locationStr="".concat(source.name,":").concat(lineNum,":").concat(columnNum,`
|
77
77
|
`),lines=body.split(/\r\n|[\n\r]/g),locationLine=lines[lineIndex];if(locationLine.length>120){for(var subLineIndex=Math.floor(columnNum/80),subLineColumnNum=columnNum%80,subLines=[],i=0;i<locationLine.length;i+=80)subLines.push(locationLine.slice(i,i+80));return locationStr+printPrefixedLines([["".concat(lineNum),subLines[0]]].concat(subLines.slice(1,subLineIndex+1).map(function(subLine){return["",subLine]}),[[" ",whitespace(subLineColumnNum-1)+"^"],["",subLines[subLineIndex+1]]]))}return locationStr+printPrefixedLines([["".concat(lineNum-1),lines[lineIndex-1]],["".concat(lineNum),locationLine],["",whitespace(columnNum-1)+"^"],["".concat(lineNum+1),lines[lineIndex+1]]])}function printPrefixedLines(lines){var existingLines=lines.filter(function(_ref){var _=_ref[0],line=_ref[1];return line!==void 0}),padLen=Math.max.apply(Math,existingLines.map(function(_ref2){var prefix=_ref2[0];return prefix.length}));return existingLines.map(function(_ref3){var prefix=_ref3[0],line=_ref3[1];return leftPad(padLen,prefix)+(line?" | "+line:" |")}).join(`
|
78
78
|
`)}function whitespace(len){return Array(len+1).join(" ")}function leftPad(len,str){return whitespace(len-str.length)+str}function GraphQLError_typeof(obj){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?GraphQLError_typeof=function(obj2){return typeof obj2}:GraphQLError_typeof=function(obj2){return obj2&&typeof Symbol=="function"&&obj2.constructor===Symbol&&obj2!==Symbol.prototype?"symbol":typeof obj2},GraphQLError_typeof(obj)}function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter(function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable})),keys.push.apply(keys,symbols)}return keys}function _objectSpread(target){for(var i=1;i<arguments.length;i++){var source=arguments[i]!=null?arguments[i]:{};i%2?ownKeys(Object(source),!0).forEach(function(key){_defineProperty(target,key,source[key])}):Object.getOwnPropertyDescriptors?Object.defineProperties(target,Object.getOwnPropertyDescriptors(source)):ownKeys(Object(source)).forEach(function(key){Object.defineProperty(target,key,Object.getOwnPropertyDescriptor(source,key))})}return target}function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Constructor}function _inherits(subClass,superClass){if(typeof superClass!="function"&&superClass!==null)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),superClass&&_setPrototypeOf(subClass,superClass)}function _createSuper(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct();return function(){var Super=_getPrototypeOf(Derived),result;if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget)}else result=Super.apply(this,arguments);return _possibleConstructorReturn(this,result)}}function _possibleConstructorReturn(self2,call){return call&&(GraphQLError_typeof(call)==="object"||typeof call=="function")?call:_assertThisInitialized(self2)}function _assertThisInitialized(self2){if(self2===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self2}function _wrapNativeSuper(Class){var _cache=typeof Map=="function"?new Map:void 0;return _wrapNativeSuper=function(Class2){if(Class2===null||!_isNativeFunction(Class2))return Class2;if(typeof Class2!="function")throw new TypeError("Super expression must either be null or a function");if(typeof _cache<"u"){if(_cache.has(Class2))return _cache.get(Class2);_cache.set(Class2,Wrapper)}function Wrapper(){return _construct(Class2,arguments,_getPrototypeOf(this).constructor)}return Wrapper.prototype=Object.create(Class2.prototype,{constructor:{value:Wrapper,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(Wrapper,Class2)},_wrapNativeSuper(Class)}function _construct(Parent,args,Class){return _isNativeReflectConstruct()?_construct=Reflect.construct:_construct=function(Parent2,args2,Class2){var a=[null];a.push.apply(a,args2);var Constructor=Function.bind.apply(Parent2,a),instance=new Constructor;return Class2&&_setPrototypeOf(instance,Class2.prototype),instance},_construct.apply(null,arguments)}function _isNativeReflectConstruct(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function _isNativeFunction(fn){return Function.toString.call(fn).indexOf("[native code]")!==-1}function _setPrototypeOf(o,p){return _setPrototypeOf=Object.setPrototypeOf||function(o2,p2){return o2.__proto__=p2,o2},_setPrototypeOf(o,p)}function _getPrototypeOf(o){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(o2){return o2.__proto__||Object.getPrototypeOf(o2)},_getPrototypeOf(o)}var GraphQLError=function(_Error){_inherits(GraphQLError2,_Error);var _super=_createSuper(GraphQLError2);function GraphQLError2(message,nodes,source,positions,path,originalError,extensions){var _nodeLocations,_nodeLocations2,_nodeLocations3,_this;_classCallCheck(this,GraphQLError2),_this=_super.call(this,message),_this.name="GraphQLError",_this.originalError=originalError??void 0,_this.nodes=undefinedIfEmpty(Array.isArray(nodes)?nodes:nodes?[nodes]:void 0);for(var nodeLocations=[],_i2=0,_ref3=(_this$nodes=_this.nodes)!==null&&_this$nodes!==void 0?_this$nodes:[];_i2<_ref3.length;_i2++){var _this$nodes,_ref4=_ref3[_i2],loc=_ref4.loc;loc!=null&&nodeLocations.push(loc)}nodeLocations=undefinedIfEmpty(nodeLocations),_this.source=source??((_nodeLocations=nodeLocations)===null||_nodeLocations===void 0?void 0:_nodeLocations[0].source),_this.positions=positions??((_nodeLocations2=nodeLocations)===null||_nodeLocations2===void 0?void 0:_nodeLocations2.map(function(loc2){return loc2.start})),_this.locations=positions&&source?positions.map(function(pos){return getLocation(source,pos)}):(_nodeLocations3=nodeLocations)===null||_nodeLocations3===void 0?void 0:_nodeLocations3.map(function(loc2){return getLocation(loc2.source,loc2.start)}),_this.path=path??void 0;var originalExtensions=originalError?.extensions;return extensions==null&&isObjectLike(originalExtensions)?_this.extensions=_objectSpread({},originalExtensions):_this.extensions=extensions??{},Object.defineProperties(_assertThisInitialized(_this),{message:{enumerable:!0},locations:{enumerable:_this.locations!=null},path:{enumerable:_this.path!=null},extensions:{enumerable:_this.extensions!=null&&Object.keys(_this.extensions).length>0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),originalError!=null&&originalError.stack?(Object.defineProperty(_assertThisInitialized(_this),"stack",{value:originalError.stack,writable:!0,configurable:!0}),_possibleConstructorReturn(_this)):(Error.captureStackTrace?Error.captureStackTrace(_assertThisInitialized(_this),GraphQLError2):Object.defineProperty(_assertThisInitialized(_this),"stack",{value:Error().stack,writable:!0,configurable:!0}),_this)}return _createClass(GraphQLError2,[{key:"toString",value:function(){return printError(this)}},{key:SYMBOL_TO_STRING_TAG,get:function(){return"Object"}}]),GraphQLError2}(_wrapNativeSuper(Error));function undefinedIfEmpty(array){return array===void 0||array.length===0?void 0:array}function printError(error){var output=error.message;if(error.nodes)for(var _i4=0,_error$nodes2=error.nodes;_i4<_error$nodes2.length;_i4++){var node=_error$nodes2[_i4];node.loc&&(output+=`
|
79
79
|
|