aiware-js 2.21.0 → 2.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.esm.css +92 -92
- package/index.esm.js +1 -1
- package/js-core.esm.js +12 -12
- package/js-core.esm18.js +2 -2
- package/js-core.esm19.js +3 -3
- package/js-core.esm2.js +1 -1
- package/js-core.esm28.js +1 -1
- package/js-core.esm30.js +2 -2
- package/js-core.esm31.js +2 -2
- package/js-core.esm32.js +1 -1
- package/js-core.esm33.js +1 -1
- package/js-core.esm34.js +1 -1
- package/js-core.esm35.js +13 -2
- package/js-core.esm36.js +1 -1
- package/js-core.esm37.js +2 -2
- package/js-core.esm38.js +1 -37
- package/js-core.esm4.js +1 -1
- package/js-core.esm40.js +37 -1
- package/js-core.esm41.js +1 -1
- package/js-core.esm42.js +1 -1
- package/js-core.esm43.js +1 -1
- package/js-core.esm44.js +1 -31
- package/js-core.esm45.js +31 -32
- package/js-core.esm46.js +31 -51
- package/js-core.esm47.js +53 -1
- package/js-core.esm48.js +1 -108
- package/js-core.esm49.js +104 -65
- package/js-core.esm5.js +2 -2
- package/js-core.esm50.js +87 -0
- package/js-core.esm51.js +1 -0
- package/js-core.esm52.js +15 -0
- package/js-core.esm7.js +3 -3
- package/js-core.umd.css +92 -92
- package/js-core.umd.js +181 -137
- package/locales/en.json +1 -1
- package/locales/es.json +1 -1
- package/locales/fr.json +1 -1
- package/package.json +4 -2
package/js-core.esm46.js
CHANGED
|
@@ -1,52 +1,32 @@
|
|
|
1
|
-
import{bc as createSvgIcon,j as jsxRuntime,H as createSlice,cd as createSelector,O as rootApiSelector,R as graphEndpointSelector,Q as sessionTokenSelector,cc as combineReducers,F as FormattedMessage,m as makeStyles,B as Box$1,T as Typography$1,eD as injectIntl,k as useSelector,i as useDispatch,r as react,ae as Skeleton,a7 as Divider,fN as ErrorState,a8 as Tooltip,a9 as IconButton,bU as Hide,cf as AIWareThemeProvider,K as lib,A as AIWareIntlProvider,bw as CacheProvider,bx as muiCache,a2 as all,fM as selectIsUserAdmin,dh as useIntl,bi as React,cx as CustomTabs,w as TextField,cm as InputAdornment,cl as default_1,ck as TabPanel,ey as userSelector,at as Button$1,fb as betaFeaturesSelector,G as Grid,g5 as NoApps,eb as hidePanel,aY as default_1$1,Z as List,d4 as takeEvery$1,cy as useBackupImg,cz as img$1u,p as lodash,S as Switch,fP as NullState,bM as Avatar,fL as selectOrgId,$ as ListItem,eI as ListItemAvatar,a1 as ListItemText,cg as Stack,g6 as green,fS as Lock,eN as ListItemSecondaryAction,cq as mountPanel,ai as select,ah as put,ak as call$g,aV as Select,aW as MenuItem,cB as baseGraphQLApiWithError}from"./js-core.esm.js";import{C as Container}from"./js-core.esm21.js";import{A as Autocomplete}from"./js-core.esm20.js";import{C as Chip$1}from"./js-core.esm26.js";var match,version,store,wmget,wmhas,wmset,set$1,get,has,STATE,activeXDocument,IteratorPrototype$2,PrototypeOfArrayIteratorPrototype,arrayIterator,Add=createSvgIcon(jsxRuntime.exports.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add"),commonjsGlobal=(!function(){var e={};try{if(process)return process.env=Object.assign({},process.env),Object.assign(process.env,e)}catch(e){}globalThis.process={env:e}}(),"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{}),check=function(e){return e&&e.Math==Math&&e},global$k=check("object"==typeof globalThis&&globalThis)||check("object"==typeof window&&window)||check("object"==typeof self&&self)||check("object"==typeof commonjsGlobal&&commonjsGlobal)||function(){return this}()||Function("return this")(),objectGetOwnPropertyDescriptor={},fails$h=function(e){try{return!!e()}catch(e){return!0}},fails$g=fails$h,descriptors=!fails$h(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),fails$f=fails$h,functionBindNative=!fails$h(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}),NATIVE_BIND$3=functionBindNative,call$f=Function.prototype.call,functionCall=NATIVE_BIND$3?call$f.bind(call$f):function(){return call$f.apply(call$f,arguments)},objectPropertyIsEnumerable={},$propertyIsEnumerable={}.propertyIsEnumerable,getOwnPropertyDescriptor$2=Object.getOwnPropertyDescriptor,NASHORN_BUG=getOwnPropertyDescriptor$2&&!$propertyIsEnumerable.call({1:2},1),createPropertyDescriptor$4=(objectPropertyIsEnumerable.f=NASHORN_BUG?function(e){e=getOwnPropertyDescriptor$2(this,e);return!!e&&e.enumerable}:$propertyIsEnumerable,function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}),NATIVE_BIND$2=functionBindNative,FunctionPrototype$2=Function.prototype,bind$5=FunctionPrototype$2.bind,call$e=FunctionPrototype$2.call,uncurryThis$i=NATIVE_BIND$2&&bind$5.bind(call$e,call$e),functionUncurryThis=NATIVE_BIND$2?function(e){return e&&uncurryThis$i(e)}:function(e){return e&&function(){return call$e.apply(e,arguments)}},uncurryThis$h=functionUncurryThis,toString$6=uncurryThis$h({}.toString),stringSlice$1=uncurryThis$h("".slice),classofRaw$1=function(e){return stringSlice$1(toString$6(e),8,-1)},uncurryThis$g=functionUncurryThis,fails$e=fails$h,classof$6=classofRaw$1,$Object$4=Object,split=functionUncurryThis("".split),indexedObject=fails$e(function(){return!$Object$4("z").propertyIsEnumerable(0)})?function(e){return"String"==classof$6(e)?split(e,""):$Object$4(e)}:$Object$4,$TypeError$e=TypeError,requireObjectCoercible$4=function(e){if(null==e)throw $TypeError$e("Can't call method on "+e);return e},IndexedObject$2=indexedObject,requireObjectCoercible$3=requireObjectCoercible$4,toIndexedObject$5=function(e){return IndexedObject$2(requireObjectCoercible$3(e))},isCallable$l=function(e){return"function"==typeof e},isCallable$k=isCallable$l,isObject$8=function(e){return"object"==typeof e?null!==e:isCallable$k(e)},global$j=global$k,isCallable$j=isCallable$l,aFunction=function(e){return isCallable$j(e)?e:void 0},getBuiltIn$8=function(e,t){return arguments.length<2?aFunction(global$j[e]):global$j[e]&&global$j[e][t]},uncurryThis$f=functionUncurryThis,objectIsPrototypeOf=functionUncurryThis({}.isPrototypeOf),getBuiltIn$7=getBuiltIn$8,engineUserAgent=getBuiltIn$8("navigator","userAgent")||"",global$i=global$k,userAgent$5=engineUserAgent,process$4=global$i.process,Deno$1=global$i.Deno,versions=process$4&&process$4.versions||Deno$1&&Deno$1.version,v8=versions&&versions.v8,engineV8Version=version=!(version=v8?0<(match=v8.split("."))[0]&&match[0]<4?1:+(match[0]+match[1]):version)&&userAgent$5&&(!(match=userAgent$5.match(/Edge\/(\d+)/))||74<=match[1])&&(match=userAgent$5.match(/Chrome\/(\d+)/))?+match[1]:version,V8_VERSION$1=engineV8Version,fails$d=fails$h,nativeSymbol=!!Object.getOwnPropertySymbols&&!fails$d(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&V8_VERSION$1&&V8_VERSION$1<41}),NATIVE_SYMBOL$2=nativeSymbol,useSymbolAsUid=nativeSymbol&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,getBuiltIn$6=getBuiltIn$8,isCallable$i=isCallable$l,isPrototypeOf$4=objectIsPrototypeOf,USE_SYMBOL_AS_UID$1=useSymbolAsUid,$Object$3=Object,isSymbol$2=useSymbolAsUid?function(e){return"symbol"==typeof e}:function(e){var t=getBuiltIn$6("Symbol");return isCallable$i(t)&&isPrototypeOf$4(t.prototype,$Object$3(e))},$String$3=String,tryToString$5=function(e){try{return $String$3(e)}catch(e){return"Object"}},isCallable$h=isCallable$l,tryToString$4=tryToString$5,$TypeError$d=TypeError,aCallable$9=function(e){if(isCallable$h(e))return e;throw $TypeError$d(tryToString$4(e)+" is not a function")},aCallable$8=aCallable$9,getMethod$3=function(e,t){e=e[t];return null==e?void 0:aCallable$8(e)},call$d=functionCall,isCallable$g=isCallable$l,isObject$7=isObject$8,$TypeError$c=TypeError,ordinaryToPrimitive$1=function(e,t){var n,r;if("string"===t&&isCallable$g(n=e.toString)&&!isObject$7(r=call$d(n,e)))return r;if(isCallable$g(n=e.valueOf)&&!isObject$7(r=call$d(n,e)))return r;if("string"!==t&&isCallable$g(n=e.toString)&&!isObject$7(r=call$d(n,e)))return r;throw $TypeError$c("Can't convert object to primitive value")},shared$3={exports:{}},global$h=global$k,defineProperty$6=Object.defineProperty,defineGlobalProperty$3=function(t,n){try{defineProperty$6(global$h,t,{value:n,configurable:!0,writable:!0})}catch(e){global$h[t]=n}return n},global$g=global$k,defineGlobalProperty$2=defineGlobalProperty$3,SHARED="__core-js_shared__",store$3=global$k[SHARED]||defineGlobalProperty$2(SHARED,{}),sharedStore=store$3,store$2=sharedStore,requireObjectCoercible$2=((shared$3.exports=function(e,t){return store$2[e]||(store$2[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.24.1",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.24.1/LICENSE",source:"https://github.com/zloirock/core-js"}),requireObjectCoercible$4),$Object$2=Object,toObject$5=function(e){return $Object$2(requireObjectCoercible$2(e))},uncurryThis$e=functionUncurryThis,toObject$4=toObject$5,hasOwnProperty=functionUncurryThis({}.hasOwnProperty),hasOwnProperty_1=Object.hasOwn||function(e,t){return hasOwnProperty(toObject$4(e),t)},uncurryThis$d=functionUncurryThis,id=0,postfix=Math.random(),toString$5=uncurryThis$d(1..toString),uid$2=function(e){return"Symbol("+(void 0===e?"":e)+")_"+toString$5(++id+postfix,36)},global$f=global$k,shared$2=shared$3.exports,hasOwn$b=hasOwnProperty_1,uid$1=uid$2,NATIVE_SYMBOL$1=nativeSymbol,USE_SYMBOL_AS_UID=useSymbolAsUid,WellKnownSymbolsStore=shared$2("wks"),Symbol$1=global$f.Symbol,symbolFor=Symbol$1&&Symbol$1.for,createWellKnownSymbol=USE_SYMBOL_AS_UID?Symbol$1:Symbol$1&&Symbol$1.withoutSetter||uid$1,wellKnownSymbol$g=function(e){var t;return hasOwn$b(WellKnownSymbolsStore,e)&&(NATIVE_SYMBOL$1||"string"==typeof WellKnownSymbolsStore[e])||(t="Symbol."+e,NATIVE_SYMBOL$1&&hasOwn$b(Symbol$1,e)?WellKnownSymbolsStore[e]=Symbol$1[e]:WellKnownSymbolsStore[e]=(USE_SYMBOL_AS_UID&&symbolFor?symbolFor:createWellKnownSymbol)(t)),WellKnownSymbolsStore[e]},call$c=functionCall,isObject$6=isObject$8,isSymbol$1=isSymbol$2,getMethod$2=getMethod$3,ordinaryToPrimitive=ordinaryToPrimitive$1,wellKnownSymbol$f=wellKnownSymbol$g,$TypeError$b=TypeError,TO_PRIMITIVE=wellKnownSymbol$g("toPrimitive"),toPrimitive$1=function(e,t){if(!isObject$6(e)||isSymbol$1(e))return e;var n=getMethod$2(e,TO_PRIMITIVE);if(n){if(n=call$c(n,e,t=void 0===t?"default":t),!isObject$6(n)||isSymbol$1(n))return n;throw $TypeError$b("Can't convert object to primitive value")}return ordinaryToPrimitive(e,t=void 0===t?"number":t)},toPrimitive=toPrimitive$1,isSymbol=isSymbol$2,toPropertyKey$3=function(e){e=toPrimitive(e,"string");return isSymbol(e)?e:e+""},global$e=global$k,isObject$5=isObject$8,document$3=global$k.document,EXISTS$1=isObject$5(document$3)&&isObject$5(document$3.createElement),documentCreateElement$2=function(e){return EXISTS$1?document$3.createElement(e):{}},DESCRIPTORS$b=descriptors,fails$c=fails$h,createElement$1=documentCreateElement$2,ie8DomDefine=!descriptors&&!fails$h(function(){return 7!=Object.defineProperty(createElement$1("div"),"a",{get:function(){return 7}}).a}),DESCRIPTORS$a=descriptors,call$b=functionCall,propertyIsEnumerableModule$1=objectPropertyIsEnumerable,createPropertyDescriptor$3=createPropertyDescriptor$4,toIndexedObject$4=toIndexedObject$5,toPropertyKey$2=toPropertyKey$3,hasOwn$a=hasOwnProperty_1,IE8_DOM_DEFINE$1=ie8DomDefine,$getOwnPropertyDescriptor$1=Object.getOwnPropertyDescriptor,objectDefineProperty=(objectGetOwnPropertyDescriptor.f=DESCRIPTORS$a?$getOwnPropertyDescriptor$1:function(e,t){if(e=toIndexedObject$4(e),t=toPropertyKey$2(t),IE8_DOM_DEFINE$1)try{return $getOwnPropertyDescriptor$1(e,t)}catch(e){}if(hasOwn$a(e,t))return createPropertyDescriptor$3(!call$b(propertyIsEnumerableModule$1.f,e,t),e[t])},{}),DESCRIPTORS$9=descriptors,fails$b=fails$h,v8PrototypeDefineBug=descriptors&&fails$h(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),isObject$4=isObject$8,$String$2=String,$TypeError$a=TypeError,anObject$c=function(e){if(isObject$4(e))return e;throw $TypeError$a($String$2(e)+" is not an object")},DESCRIPTORS$8=descriptors,IE8_DOM_DEFINE=ie8DomDefine,V8_PROTOTYPE_DEFINE_BUG$1=v8PrototypeDefineBug,anObject$b=anObject$c,toPropertyKey$1=toPropertyKey$3,$TypeError$9=TypeError,$defineProperty=Object.defineProperty,$getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor,ENUMERABLE="enumerable",CONFIGURABLE$1="configurable",WRITABLE="writable",DESCRIPTORS$7=(objectDefineProperty.f=DESCRIPTORS$8?V8_PROTOTYPE_DEFINE_BUG$1?function(e,t,n){var r;return anObject$b(e),t=toPropertyKey$1(t),anObject$b(n),"function"==typeof e&&"prototype"===t&&"value"in n&&WRITABLE in n&&!n[WRITABLE]&&((r=$getOwnPropertyDescriptor(e,t))&&r[WRITABLE]&&(e[t]=n.value,n={configurable:(CONFIGURABLE$1 in n?n:r)[CONFIGURABLE$1],enumerable:(ENUMERABLE in n?n:r)[ENUMERABLE],writable:!1})),$defineProperty(e,t,n)}:$defineProperty:function(e,t,n){if(anObject$b(e),t=toPropertyKey$1(t),anObject$b(n),IE8_DOM_DEFINE)try{return $defineProperty(e,t,n)}catch(e){}if("get"in n||"set"in n)throw $TypeError$9("Accessors not supported");return"value"in n&&(e[t]=n.value),e},descriptors),definePropertyModule$5=objectDefineProperty,createPropertyDescriptor$2=createPropertyDescriptor$4,createNonEnumerableProperty$4=DESCRIPTORS$7?function(e,t,n){return definePropertyModule$5.f(e,t,createPropertyDescriptor$2(1,n))}:function(e,t,n){return e[t]=n,e},makeBuiltIn$2={exports:{}},DESCRIPTORS$6=descriptors,hasOwn$9=hasOwnProperty_1,FunctionPrototype$1=Function.prototype,getDescriptor=DESCRIPTORS$6&&Object.getOwnPropertyDescriptor,EXISTS=hasOwn$9(FunctionPrototype$1,"name"),PROPER=EXISTS&&"something"===function(){}.name,CONFIGURABLE=EXISTS&&(!DESCRIPTORS$6||getDescriptor(FunctionPrototype$1,"name").configurable),functionName={EXISTS:EXISTS,PROPER:PROPER,CONFIGURABLE:CONFIGURABLE},uncurryThis$c=functionUncurryThis,isCallable$f=isCallable$l,store$1=sharedStore,functionToString=functionUncurryThis(Function.toString),inspectSource$4=(isCallable$f(store$1.inspectSource)||(store$1.inspectSource=function(e){return functionToString(e)}),store$1.inspectSource),global$d=global$k,isCallable$e=isCallable$l,inspectSource$3=inspectSource$4,WeakMap$1=global$k.WeakMap,nativeWeakMap=isCallable$e(WeakMap$1)&&/native code/.test(inspectSource$3(WeakMap$1)),shared$1=shared$3.exports,uid=uid$2,keys=shared$1("keys"),sharedKey$3=function(e){return keys[e]||(keys[e]=uid(e))},hiddenKeys$4={},NATIVE_WEAK_MAP=nativeWeakMap,global$c=global$k,uncurryThis$b=functionUncurryThis,isObject$3=isObject$8,createNonEnumerableProperty$3=createNonEnumerableProperty$4,hasOwn$8=hasOwnProperty_1,shared=sharedStore,sharedKey$2=sharedKey$3,hiddenKeys$3=hiddenKeys$4,OBJECT_ALREADY_INITIALIZED="Object already initialized",TypeError$2=global$c.TypeError,WeakMap=global$c.WeakMap,enforce=function(e){return has(e)?get(e):set$1(e,{})},getterFor=function(t){return function(e){if(isObject$3(e)&&(e=get(e)).type===t)return e;throw TypeError$2("Incompatible receiver, "+t+" required")}},internalState=(has=NATIVE_WEAK_MAP||shared.state?(store=shared.state||(shared.state=new WeakMap),wmget=uncurryThis$b(store.get),wmhas=uncurryThis$b(store.has),wmset=uncurryThis$b(store.set),set$1=function(e,t){if(wmhas(store,e))throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);return t.facade=e,wmset(store,e,t),t},get=function(e){return wmget(store,e)||{}},function(e){return wmhas(store,e)}):(STATE=sharedKey$2("state"),hiddenKeys$3[STATE]=!0,set$1=function(e,t){if(hasOwn$8(e,STATE))throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);return t.facade=e,createNonEnumerableProperty$3(e,STATE,t),t},get=function(e){return hasOwn$8(e,STATE)?e[STATE]:{}},function(e){return hasOwn$8(e,STATE)}),{set:set$1,get:get,has:has,enforce:enforce,getterFor:getterFor}),fails$a=fails$h,isCallable$d=isCallable$l,hasOwn$7=hasOwnProperty_1,DESCRIPTORS$5=descriptors,CONFIGURABLE_FUNCTION_NAME$1=functionName.CONFIGURABLE,inspectSource$2=inspectSource$4,InternalStateModule$2=internalState,enforceInternalState=InternalStateModule$2.enforce,getInternalState$1=InternalStateModule$2.get,defineProperty$5=Object.defineProperty,CONFIGURABLE_LENGTH=DESCRIPTORS$5&&!fails$a(function(){return 8!==defineProperty$5(function(){},"length",{value:8}).length}),TEMPLATE=String(String).split("String"),makeBuiltIn$1=makeBuiltIn$2.exports=function(e,t,n){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!hasOwn$7(e,"name")||CONFIGURABLE_FUNCTION_NAME$1&&e.name!==t)&&(DESCRIPTORS$5?defineProperty$5(e,"name",{value:t,configurable:!0}):e.name=t),CONFIGURABLE_LENGTH&&n&&hasOwn$7(n,"arity")&&e.length!==n.arity&&defineProperty$5(e,"length",{value:n.arity});try{n&&hasOwn$7(n,"constructor")&&n.constructor?DESCRIPTORS$5&&defineProperty$5(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}n=enforceInternalState(e);return hasOwn$7(n,"source")||(n.source=TEMPLATE.join("string"==typeof t?t:"")),e},isCallable$c=(Function.prototype.toString=makeBuiltIn$1(function(){return isCallable$d(this)&&getInternalState$1(this).source||inspectSource$2(this)},"toString"),isCallable$l),definePropertyModule$4=objectDefineProperty,makeBuiltIn=makeBuiltIn$2.exports,defineGlobalProperty$1=defineGlobalProperty$3,defineBuiltIn$6=function(e,t,n,r){var i=(r=r||{}).enumerable,o=void 0!==r.name?r.name:t;if(isCallable$c(n)&&makeBuiltIn(n,o,r),r.global)i?e[t]=n:defineGlobalProperty$1(t,n);else{try{r.unsafe?e[t]&&(i=!0):delete e[t]}catch(e){}i?e[t]=n:definePropertyModule$4.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e},objectGetOwnPropertyNames={},ceil=Math.ceil,floor$1=Math.floor,mathTrunc=Math.trunc||function(e){e=+e;return(0<e?floor$1:ceil)(e)},trunc=mathTrunc,toIntegerOrInfinity$2=function(e){e=+e;return e!=e||0==e?0:trunc(e)},toIntegerOrInfinity$1=toIntegerOrInfinity$2,max$1=Math.max,min$1=Math.min,toAbsoluteIndex$2=function(e,t){e=toIntegerOrInfinity$1(e);return e<0?max$1(e+t,0):min$1(e,t)},toIntegerOrInfinity=toIntegerOrInfinity$2,min=Math.min,toLength$1=function(e){return 0<e?min(toIntegerOrInfinity(e),9007199254740991):0},toLength=toLength$1,lengthOfArrayLike$5=function(e){return toLength(e.length)},toIndexedObject$3=toIndexedObject$5,toAbsoluteIndex$1=toAbsoluteIndex$2,lengthOfArrayLike$4=lengthOfArrayLike$5,createMethod$2=function(s){return function(e,t,n){var r,i=toIndexedObject$3(e),o=lengthOfArrayLike$4(i),a=toAbsoluteIndex$1(n,o);if(s&&t!=t){for(;a<o;)if((r=i[a++])!=r)return!0}else for(;a<o;a++)if((s||a in i)&&i[a]===t)return s||a||0;return!s&&-1}},arrayIncludes={includes:createMethod$2(!0),indexOf:createMethod$2(!1)},uncurryThis$a=functionUncurryThis,hasOwn$6=hasOwnProperty_1,toIndexedObject$2=toIndexedObject$5,indexOf=arrayIncludes.indexOf,hiddenKeys$2=hiddenKeys$4,push$1=uncurryThis$a([].push),objectKeysInternal=function(e,t){var n,r=toIndexedObject$2(e),i=0,o=[];for(n in r)!hasOwn$6(hiddenKeys$2,n)&&hasOwn$6(r,n)&&push$1(o,n);for(;t.length>i;)!hasOwn$6(r,n=t[i++])||~indexOf(o,n)||push$1(o,n);return o},enumBugKeys$3=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],internalObjectKeys$1=objectKeysInternal,enumBugKeys$2=enumBugKeys$3,hiddenKeys$1=enumBugKeys$3.concat("length","prototype"),objectGetOwnPropertySymbols=(objectGetOwnPropertyNames.f=Object.getOwnPropertyNames||function(e){return internalObjectKeys$1(e,hiddenKeys$1)},{}),getBuiltIn$5=(objectGetOwnPropertySymbols.f=Object.getOwnPropertySymbols,getBuiltIn$8),uncurryThis$9=functionUncurryThis,getOwnPropertyNamesModule=objectGetOwnPropertyNames,getOwnPropertySymbolsModule$1=objectGetOwnPropertySymbols,anObject$a=anObject$c,concat$1=functionUncurryThis([].concat),ownKeys$1=getBuiltIn$5("Reflect","ownKeys")||function(e){var t=getOwnPropertyNamesModule.f(anObject$a(e)),n=getOwnPropertySymbolsModule$1.f;return n?concat$1(t,n(e)):t},hasOwn$5=hasOwnProperty_1,ownKeys=ownKeys$1,getOwnPropertyDescriptorModule=objectGetOwnPropertyDescriptor,definePropertyModule$3=objectDefineProperty,copyConstructorProperties$2=function(e,t,n){for(var r=ownKeys(t),i=definePropertyModule$3.f,o=getOwnPropertyDescriptorModule.f,a=0;a<r.length;a++){var s=r[a];hasOwn$5(e,s)||n&&hasOwn$5(n,s)||i(e,s,o(t,s))}},fails$9=fails$h,isCallable$b=isCallable$l,replacement=/#|\.prototype\./,isForced$2=function(e,t){e=data[normalize(e)];return e==POLYFILL||e!=NATIVE&&(isCallable$b(t)?fails$9(t):!!t)},normalize=isForced$2.normalize=function(e){return String(e).replace(replacement,".").toLowerCase()},data=isForced$2.data={},NATIVE=isForced$2.NATIVE="N",POLYFILL=isForced$2.POLYFILL="P",isForced_1=isForced$2,global$b=global$k,getOwnPropertyDescriptor$1=objectGetOwnPropertyDescriptor.f,createNonEnumerableProperty$2=createNonEnumerableProperty$4,defineBuiltIn$5=defineBuiltIn$6,defineGlobalProperty=defineGlobalProperty$3,copyConstructorProperties$1=copyConstructorProperties$2,isForced$1=isForced_1,_export=function(e,t){var n,r,i,o=e.target,a=e.global,s=e.stat,l=a?global$b:s?global$b[o]||defineGlobalProperty(o,{}):(global$b[o]||{}).prototype;if(l)for(n in t){if(r=t[n],i=e.dontCallGetSet?(i=getOwnPropertyDescriptor$1(l,n))&&i.value:l[n],!isForced$1(a?n:o+(s?".":"#")+n,e.forced)&&void 0!==i){if(typeof r==typeof i)continue;copyConstructorProperties$1(r,i)}(e.sham||i&&i.sham)&&createNonEnumerableProperty$2(r,"sham",!0),defineBuiltIn$5(l,n,r,e)}},internalObjectKeys=objectKeysInternal,enumBugKeys$1=enumBugKeys$3,objectKeys$2=Object.keys||function(e){return internalObjectKeys(e,enumBugKeys$1)},DESCRIPTORS$4=descriptors,uncurryThis$8=functionUncurryThis,call$a=functionCall,fails$8=fails$h,objectKeys$1=objectKeys$2,getOwnPropertySymbolsModule=objectGetOwnPropertySymbols,propertyIsEnumerableModule=objectPropertyIsEnumerable,toObject$3=toObject$5,IndexedObject$1=indexedObject,$assign=Object.assign,defineProperty$4=Object.defineProperty,concat=uncurryThis$8([].concat),objectAssign=!$assign||fails$8(function(){if(DESCRIPTORS$4&&1!==$assign({b:1},$assign(defineProperty$4({},"a",{enumerable:!0,get:function(){defineProperty$4(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=$assign({},e)[n]||objectKeys$1($assign({},t)).join("")!=r})?function(e,t){for(var n=toObject$3(e),r=arguments.length,i=1,o=getOwnPropertySymbolsModule.f,a=propertyIsEnumerableModule.f;i<r;)for(var s,l=IndexedObject$1(arguments[i++]),c=o?concat(objectKeys$1(l),o(l)):objectKeys$1(l),p=c.length,u=0;u<p;)s=c[u++],DESCRIPTORS$4&&!call$a(a,l,s)||(n[s]=l[s]);return n}:$assign,$$c=_export,assign=objectAssign,objectDefineProperties=(_export({target:"Object",stat:!0,arity:2,forced:Object.assign!==assign},{assign:assign}),{}),DESCRIPTORS$3=descriptors,V8_PROTOTYPE_DEFINE_BUG=v8PrototypeDefineBug,definePropertyModule$2=objectDefineProperty,anObject$9=anObject$c,toIndexedObject$1=toIndexedObject$5,objectKeys=objectKeys$2,getBuiltIn$4=(objectDefineProperties.f=DESCRIPTORS$3&&!V8_PROTOTYPE_DEFINE_BUG?Object.defineProperties:function(e,t){anObject$9(e);for(var n,r=toIndexedObject$1(t),i=objectKeys(t),o=i.length,a=0;a<o;)definePropertyModule$2.f(e,n=i[a++],r[n]);return e},getBuiltIn$8),html$2=getBuiltIn$8("document","documentElement"),anObject$8=anObject$c,definePropertiesModule=objectDefineProperties,enumBugKeys=enumBugKeys$3,hiddenKeys=hiddenKeys$4,html$1=html$2,documentCreateElement$1=documentCreateElement$2,sharedKey$1=sharedKey$3,GT=">",LT="<",PROTOTYPE="prototype",SCRIPT="script",IE_PROTO$1=sharedKey$3("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(e){return LT+SCRIPT+GT+e+LT+"/"+SCRIPT+GT},NullProtoObjectViaActiveX=function(e){e.write(scriptTag("")),e.close();var t=e.parentWindow.Object;return e=null,t},NullProtoObjectViaIFrame=function(){var e=documentCreateElement$1("iframe"),t="java"+SCRIPT+":";return e.style.display="none",html$1.appendChild(e),e.src=String(t),(t=e.contentWindow.document).open(),t.write(scriptTag("document.F=Object")),t.close(),t.F},NullProtoObject=function(){try{activeXDocument=new ActiveXObject("htmlfile")}catch(e){}NullProtoObject="undefined"==typeof document||document.domain&&activeXDocument?NullProtoObjectViaActiveX(activeXDocument):NullProtoObjectViaIFrame();for(var e=enumBugKeys.length;e--;)delete NullProtoObject[PROTOTYPE][enumBugKeys[e]];return NullProtoObject()},objectCreate=(hiddenKeys[IE_PROTO$1]=!0,Object.create||function(e,t){var n;return null!==e?(EmptyConstructor[PROTOTYPE]=anObject$8(e),n=new EmptyConstructor,EmptyConstructor[PROTOTYPE]=null,n[IE_PROTO$1]=e):n=NullProtoObject(),void 0===t?n:definePropertiesModule.f(n,t)}),wellKnownSymbol$e=wellKnownSymbol$g,create$1=objectCreate,defineProperty$3=objectDefineProperty.f,UNSCOPABLES=wellKnownSymbol$e("unscopables"),ArrayPrototype$1=Array.prototype,addToUnscopables$1=(null==ArrayPrototype$1[UNSCOPABLES]&&defineProperty$3(ArrayPrototype$1,UNSCOPABLES,{configurable:!0,value:create$1(null)}),function(e){ArrayPrototype$1[UNSCOPABLES][e]=!0}),iterators={},fails$7=fails$h,correctPrototypeGetter=!fails$h(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),hasOwn$4=hasOwnProperty_1,isCallable$a=isCallable$l,toObject$2=toObject$5,sharedKey=sharedKey$3,CORRECT_PROTOTYPE_GETTER=correctPrototypeGetter,IE_PROTO=sharedKey$3("IE_PROTO"),$Object$1=Object,ObjectPrototype=$Object$1.prototype,objectGetPrototypeOf=CORRECT_PROTOTYPE_GETTER?$Object$1.getPrototypeOf:function(e){e=toObject$2(e);if(hasOwn$4(e,IE_PROTO))return e[IE_PROTO];var t=e.constructor;return isCallable$a(t)&&e instanceof t?t.prototype:e instanceof $Object$1?ObjectPrototype:null},fails$6=fails$h,isCallable$9=isCallable$l,getPrototypeOf$1=objectGetPrototypeOf,defineBuiltIn$4=defineBuiltIn$6,wellKnownSymbol$d=wellKnownSymbol$g,ITERATOR$5=wellKnownSymbol$g("iterator"),BUGGY_SAFARI_ITERATORS$1=!1,NEW_ITERATOR_PROTOTYPE=([].keys&&("next"in(arrayIterator=[].keys())?(PrototypeOfArrayIteratorPrototype=getPrototypeOf$1(getPrototypeOf$1(arrayIterator)))!==Object.prototype&&(IteratorPrototype$2=PrototypeOfArrayIteratorPrototype):BUGGY_SAFARI_ITERATORS$1=!0),null==IteratorPrototype$2||fails$6(function(){var e={};return IteratorPrototype$2[ITERATOR$5].call(e)!==e})),iteratorsCore=(isCallable$9((IteratorPrototype$2=NEW_ITERATOR_PROTOTYPE?{}:IteratorPrototype$2)[ITERATOR$5])||defineBuiltIn$4(IteratorPrototype$2,ITERATOR$5,function(){return this}),{IteratorPrototype:IteratorPrototype$2,BUGGY_SAFARI_ITERATORS:BUGGY_SAFARI_ITERATORS$1}),defineProperty$2=objectDefineProperty.f,hasOwn$3=hasOwnProperty_1,wellKnownSymbol$c=wellKnownSymbol$g,TO_STRING_TAG$3=wellKnownSymbol$g("toStringTag"),setToStringTag$3=function(e,t,n){(e=e&&!n?e.prototype:e)&&!hasOwn$3(e,TO_STRING_TAG$3)&&defineProperty$2(e,TO_STRING_TAG$3,{configurable:!0,value:t})},IteratorPrototype$1=iteratorsCore.IteratorPrototype,create=objectCreate,createPropertyDescriptor$1=createPropertyDescriptor$4,setToStringTag$2=setToStringTag$3,Iterators$4=iterators,returnThis$1=function(){return this},createIteratorConstructor$1=function(e,t,n,r){t+=" Iterator";return e.prototype=create(IteratorPrototype$1,{next:createPropertyDescriptor$1(+!r,n)}),setToStringTag$2(e,t,!1),Iterators$4[t]=returnThis$1,e},isCallable$8=isCallable$l,$String$1=String,$TypeError$8=TypeError,aPossiblePrototype$1=function(e){if("object"==typeof e||isCallable$8(e))return e;throw $TypeError$8("Can't set "+$String$1(e)+" as a prototype")},uncurryThis$7=functionUncurryThis,anObject$7=anObject$c,aPossiblePrototype=aPossiblePrototype$1,objectSetPrototypeOf=Object.setPrototypeOf||("__proto__"in{}?function(){var n,r=!1,e={};try{(n=uncurryThis$7(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(e,[]),r=e instanceof Array}catch(e){}return function(e,t){return anObject$7(e),aPossiblePrototype(t),r?n(e,t):e.__proto__=t,e}}():void 0),$$b=_export,call$9=functionCall,FunctionName=functionName,isCallable$7=isCallable$l,createIteratorConstructor=createIteratorConstructor$1,getPrototypeOf=objectGetPrototypeOf,setPrototypeOf$1=objectSetPrototypeOf,setToStringTag$1=setToStringTag$3,createNonEnumerableProperty$1=createNonEnumerableProperty$4,defineBuiltIn$3=defineBuiltIn$6,wellKnownSymbol$b=wellKnownSymbol$g,Iterators$3=iterators,IteratorsCore=iteratorsCore,PROPER_FUNCTION_NAME$2=FunctionName.PROPER,CONFIGURABLE_FUNCTION_NAME=FunctionName.CONFIGURABLE,IteratorPrototype=IteratorsCore.IteratorPrototype,BUGGY_SAFARI_ITERATORS=IteratorsCore.BUGGY_SAFARI_ITERATORS,ITERATOR$4=wellKnownSymbol$b("iterator"),KEYS="keys",VALUES="values",ENTRIES="entries",returnThis=function(){return this},defineIterator$1=function(e,t,n,r,i,o,a){createIteratorConstructor(n,t,r);function s(e){if(e===i&&$)return $;if(!BUGGY_SAFARI_ITERATORS&&e in u)return u[e];switch(e){case KEYS:case VALUES:case ENTRIES:return function(){return new n(this,e)}}return function(){return new n(this)}}var l,c,r=t+" Iterator",p=!1,u=e.prototype,d=u[ITERATOR$4]||u["@@iterator"]||i&&u[i],$=!BUGGY_SAFARI_ITERATORS&&d||s(i),g="Array"==t&&u.entries||d;if(g&&(g=getPrototypeOf(g.call(new e)))!==Object.prototype&&g.next&&(getPrototypeOf(g)!==IteratorPrototype&&(setPrototypeOf$1?setPrototypeOf$1(g,IteratorPrototype):isCallable$7(g[ITERATOR$4])||defineBuiltIn$3(g,ITERATOR$4,returnThis)),setToStringTag$1(g,r,!0)),PROPER_FUNCTION_NAME$2&&i==VALUES&&d&&d.name!==VALUES&&(CONFIGURABLE_FUNCTION_NAME?createNonEnumerableProperty$1(u,"name",VALUES):(p=!0,$=function(){return call$9(d,this)})),i)if(l={values:s(VALUES),keys:o?$:s(KEYS),entries:s(ENTRIES)},a)for(c in l)!BUGGY_SAFARI_ITERATORS&&!p&&c in u||defineBuiltIn$3(u,c,l[c]);else $$b({target:t,proto:!0,forced:BUGGY_SAFARI_ITERATORS||p},l);return u[ITERATOR$4]!==$&&defineBuiltIn$3(u,ITERATOR$4,$,{name:i}),Iterators$3[t]=$,l},toIndexedObject=toIndexedObject$5,addToUnscopables=addToUnscopables$1,Iterators$2=iterators,InternalStateModule$1=internalState,defineProperty$1=objectDefineProperty.f,defineIterator=defineIterator$1,DESCRIPTORS$2=descriptors,ARRAY_ITERATOR="Array Iterator",setInternalState$1=InternalStateModule$1.set,getInternalState=InternalStateModule$1.getterFor(ARRAY_ITERATOR),es_array_iterator=defineIterator(Array,"Array",function(e,t){setInternalState$1(this,{type:ARRAY_ITERATOR,target:toIndexedObject(e),index:0,kind:t})},function(){var e=getInternalState(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?{value:e.target=void 0,done:!0}:"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values"),values=Iterators$2.Arguments=Iterators$2.Array;if(addToUnscopables("keys"),addToUnscopables("values"),addToUnscopables("entries"),DESCRIPTORS$2&&"values"!==values.name)try{defineProperty$1(values,"name",{value:"values"})}catch(e){}var COLLECTION_NAME,domIterables={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},documentCreateElement=documentCreateElement$2,classList=documentCreateElement$2("span").classList,DOMTokenListPrototype$1=classList&&classList.constructor&&classList.constructor.prototype,domTokenListPrototype=DOMTokenListPrototype$1===Object.prototype?void 0:DOMTokenListPrototype$1,global$a=global$k,DOMIterables=domIterables,DOMTokenListPrototype=domTokenListPrototype,ArrayIteratorMethods=es_array_iterator,createNonEnumerableProperty=createNonEnumerableProperty$4,wellKnownSymbol$a=wellKnownSymbol$g,ITERATOR$3=wellKnownSymbol$a("iterator"),TO_STRING_TAG$2=wellKnownSymbol$a("toStringTag"),ArrayValues=ArrayIteratorMethods.values,handlePrototype=function(t,e){if(t){if(t[ITERATOR$3]!==ArrayValues)try{createNonEnumerableProperty(t,ITERATOR$3,ArrayValues)}catch(e){t[ITERATOR$3]=ArrayValues}if(t[TO_STRING_TAG$2]||createNonEnumerableProperty(t,TO_STRING_TAG$2,e),DOMIterables[e])for(var n in ArrayIteratorMethods)if(t[n]!==ArrayIteratorMethods[n])try{createNonEnumerableProperty(t,n,ArrayIteratorMethods[n])}catch(e){t[n]=ArrayIteratorMethods[n]}}};for(COLLECTION_NAME in DOMIterables)handlePrototype(global$a[COLLECTION_NAME]&&global$a[COLLECTION_NAME].prototype,COLLECTION_NAME);handlePrototype(DOMTokenListPrototype,"DOMTokenList");var EmptyStringDescriptionStore,SymbolWrapper,NATIVE_SYMBOL,symbolToString,symbolValueOf,regexp,replace$1,stringSlice,EApplicationStatus,EConfigTypes,isObject$2=isObject$8,classof$5=classofRaw$1,wellKnownSymbol$9=wellKnownSymbol$g,MATCH$1=wellKnownSymbol$g("match"),isRegexp=function(e){var t;return isObject$2(e)&&(void 0!==(t=e[MATCH$1])?!!t:"RegExp"==classof$5(e))},isRegExp=isRegexp,$TypeError$7=TypeError,notARegexp=function(e){if(isRegExp(e))throw $TypeError$7("The method doesn't accept regular expressions");return e},wellKnownSymbol$8=wellKnownSymbol$g,TO_STRING_TAG$1=wellKnownSymbol$g("toStringTag"),test$1={},toStringTagSupport=(test$1[TO_STRING_TAG$1]="z","[object z]"===String(test$1)),TO_STRING_TAG_SUPPORT=toStringTagSupport,isCallable$6=isCallable$l,classofRaw=classofRaw$1,wellKnownSymbol$7=wellKnownSymbol$g,TO_STRING_TAG=wellKnownSymbol$g("toStringTag"),$Object=Object,CORRECT_ARGUMENTS="Arguments"==classofRaw(function(){return arguments}()),tryGet=function(e,t){try{return e[t]}catch(e){}},classof$4=TO_STRING_TAG_SUPPORT?classofRaw:function(e){var t;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(t=tryGet(e=$Object(e),TO_STRING_TAG))?t:CORRECT_ARGUMENTS?classofRaw(e):"Object"==(t=classofRaw(e))&&isCallable$6(e.callee)?"Arguments":t},classof$3=classof$4,$String=String,toString$4=function(e){if("Symbol"===classof$3(e))throw TypeError("Cannot convert a Symbol value to a string");return $String(e)},wellKnownSymbol$6=wellKnownSymbol$g,MATCH=wellKnownSymbol$g("match"),correctIsRegexpLogic=function(t){var n=/./;try{"/./"[t](n)}catch(e){try{return n[MATCH]=!1,"/./"[t](n)}catch(e){}}return!1},$$a=_export,uncurryThis$6=functionUncurryThis,notARegExp=notARegexp,requireObjectCoercible$1=requireObjectCoercible$4,toString$3=toString$4,correctIsRegExpLogic=correctIsRegexpLogic,stringIndexOf=functionUncurryThis("".indexOf),$$9=($$a({target:"String",proto:!0,forced:!correctIsRegExpLogic("includes")},{includes:function(e){return!!~stringIndexOf(toString$3(requireObjectCoercible$1(this)),toString$3(notARegExp(e)),1<arguments.length?arguments[1]:void 0)}}),_export),DESCRIPTORS$1=descriptors,global$9=global$k,uncurryThis$5=functionUncurryThis,hasOwn$2=hasOwnProperty_1,isCallable$5=isCallable$l,isPrototypeOf$3=objectIsPrototypeOf,toString$2=toString$4,defineProperty=objectDefineProperty.f,copyConstructorProperties=copyConstructorProperties$2,NativeSymbol=global$9.Symbol,SymbolPrototype=NativeSymbol&&NativeSymbol.prototype,anObject$6=(!DESCRIPTORS$1||!isCallable$5(NativeSymbol)||"description"in SymbolPrototype&&void 0===NativeSymbol().description||(EmptyStringDescriptionStore={},copyConstructorProperties(SymbolWrapper=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:toString$2(arguments[0]),t=isPrototypeOf$3(SymbolPrototype,this)?new NativeSymbol(e):void 0===e?NativeSymbol():NativeSymbol(e);return""===e&&(EmptyStringDescriptionStore[t]=!0),t},NativeSymbol),(SymbolWrapper.prototype=SymbolPrototype).constructor=SymbolWrapper,NATIVE_SYMBOL="Symbol(test)"==String(NativeSymbol("test")),symbolToString=uncurryThis$5(SymbolPrototype.toString),symbolValueOf=uncurryThis$5(SymbolPrototype.valueOf),regexp=/^Symbol\((.*)\)[^)]+$/,replace$1=uncurryThis$5("".replace),stringSlice=uncurryThis$5("".slice),defineProperty(SymbolPrototype,"description",{configurable:!0,get:function(){var e=symbolValueOf(this),t=symbolToString(e);if(hasOwn$2(EmptyStringDescriptionStore,e))return"";e=NATIVE_SYMBOL?stringSlice(t,7,-1):replace$1(t,regexp,"$1");return""===e?void 0:e}}),$$9({global:!0,constructor:!0,forced:!0},{Symbol:SymbolWrapper})),anObject$c),regexpFlags=function(){var e=anObject$6(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},call$8=functionCall,hasOwn$1=hasOwnProperty_1,isPrototypeOf$2=objectIsPrototypeOf,regExpFlags=regexpFlags,RegExpPrototype$1=RegExp.prototype,regexpGetFlags=function(e){var t=e.flags;return void 0!==t||"flags"in RegExpPrototype$1||hasOwn$1(e,"flags")||!isPrototypeOf$2(RegExpPrototype$1,e)?t:call$8(regExpFlags,e)},PROPER_FUNCTION_NAME$1=functionName.PROPER,defineBuiltIn$2=defineBuiltIn$6,anObject$5=anObject$c,$toString=toString$4,fails$5=fails$h,getRegExpFlags=regexpGetFlags,TO_STRING="toString",RegExpPrototype=RegExp.prototype,n$ToString=RegExpPrototype[TO_STRING],NOT_GENERIC=fails$5(function(){return"/a/b"!=n$ToString.call({source:"a",flags:"b"})}),INCORRECT_NAME=PROPER_FUNCTION_NAME$1&&n$ToString.name!=TO_STRING;(NOT_GENERIC||INCORRECT_NAME)&&defineBuiltIn$2(RegExp.prototype,TO_STRING,function(){var e=anObject$5(this);return"/"+$toString(e.source)+"/"+$toString(getRegExpFlags(e))},{unsafe:!0});const ApplicationListItem=({app:e,onOpenApplicationDetailPanel:t,showInstalledChip:n=!1,isAppInstalled:r})=>{const{name:i,description:o,iconUrl:a,id:s,ownerOrganizationId:l}=e,c=useSelector(selectOrgId);var e=c&&l&&l.toString()===c.toString(),p={height:"18px",borderRadius:"30px",mb:1},u={fontWeight:"800",fontSize:"9px",lineHeight:"12px",textTransform:"uppercase"};return jsxRuntime.exports.jsxs(react.exports.Fragment,{children:[jsxRuntime.exports.jsxs(ListItem,Object.assign({alignItems:"center",sx:{minHeight:"134px",p:4}},{children:[jsxRuntime.exports.jsx(ListItemAvatar,Object.assign({sx:{alignSelf:"flex-start"}},{children:jsxRuntime.exports.jsx(Avatar,Object.assign({src:a,alt:i},{children:jsxRuntime.exports.jsx(Avatar,{children:i[0]})}))})),jsxRuntime.exports.jsx(ListItemText,{sx:{display:"inline",maxWidth:"390px",alignSelf:"flex-start",m:0},primary:jsxRuntime.exports.jsxs(react.exports.Fragment,{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",sx:{color:"#2A323C",fontWeight:"400"}},{children:i})),jsxRuntime.exports.jsxs(Stack,Object.assign({direction:"row",spacing:1},{children:[n&&r&&r(s)&&jsxRuntime.exports.jsx(Chip$1,{label:jsxRuntime.exports.jsx(Typography$1,Object.assign({sx:Object.assign({color:green[700]},u)},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"admin-center-applications-installed-badge-123132",defaultMessage:"Installed",description:"installed application badge"})})),color:"success",size:"small",sx:Object.assign({background:"rgba(27, 94, 32, 0.2)",width:"70px"},p)}),e&&jsxRuntime.exports.jsx(Chip$1,{icon:jsxRuntime.exports.jsx(Lock,{style:{height:"12px",width:"12px"}}),label:jsxRuntime.exports.jsx(Typography$1,Object.assign({sx:Object.assign({color:"#4F5863"},u)},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"admin-center-applications-org-owned-badge-123112",defaultMessage:"org owned",description:"org owned application badge"})})),variant:"outlined",size:"small",sx:Object.assign({width:"90px"},p)})]}))]}),secondary:jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",sx:{mt:1}},{children:o}))}),jsxRuntime.exports.jsx(ListItemSecondaryAction,{children:jsxRuntime.exports.jsx(Button$1,Object.assign({onClick:t,variant:"outlined",color:"primary","data-testid":"admin-center-application-details-panel-open-button"},{children:"View Details"}))})]})),jsxRuntime.exports.jsx(Divider,{})]})},LoaderSkeletonItem=()=>jsxRuntime.exports.jsxs(ListItem,Object.assign({alignItems:"center",sx:{height:"134px"}},{children:[jsxRuntime.exports.jsx(ListItemAvatar,{children:jsxRuntime.exports.jsx(Skeleton,{variant:"circular",width:40,height:40})}),jsxRuntime.exports.jsx(ListItemText,{children:jsxRuntime.exports.jsx(Skeleton,{variant:"text",width:150,height:30})}),jsxRuntime.exports.jsx(ListItemSecondaryAction,{children:jsxRuntime.exports.jsx(Skeleton,{variant:"rectangular",width:87,height:35})})]})),LoaderSkeleton=()=>jsxRuntime.exports.jsxs(List,{children:[jsxRuntime.exports.jsx(LoaderSkeletonItem,{}),jsxRuntime.exports.jsx(Divider,{}),jsxRuntime.exports.jsx(LoaderSkeletonItem,{}),jsxRuntime.exports.jsx(Divider,{}),jsxRuntime.exports.jsx(LoaderSkeletonItem,{}),jsxRuntime.exports.jsx(Divider,{})]}),ApplicationList=({apps:e,uiStatus:t,onRetry:n,showInstalledChip:r=!1,isAppInstalled:i})=>{const o=useDispatch();return"loading"===t?jsxRuntime.exports.jsx(LoaderSkeleton,{}):"failure"===t?jsxRuntime.exports.jsx(ErrorState,{onRetry:n,errorMessage:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-applications.error-message",defaultMessage:"Something went wrong while loading applications.",description:"admin center applications error state"})}):jsxRuntime.exports.jsx(List,Object.assign({sx:{maxHeight:"95%",overflowY:"auto"}},{children:e.map(e=>jsxRuntime.exports.jsx(ApplicationListItem,{app:e,onOpenApplicationDetailPanel:(e=>()=>{o(mountPanel({panelId:"APPLICATION_DETAILS_PANEL",microFrontend:{name:"APPLICATION_DETAILS_PANEL",config:{applicationId:e.id,initValue:e}},panelConfig:{type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,marginStart:80,size:"large",zIndex:1002,parentPanelId:"ADMIN_CENTER_BROWSE",dimmed:0,dimmedStatus:"dimParent",borderBottom:!0}}))})(e),showInstalledChip:r,isAppInstalled:i}))}))},SLICE_NAME$1="adminCenterApplication",namespace$2=(!function(e){e.active="active",e.draft="draft",e.deleted="deleted",e.pending="pending",e.rejected="rejected",e.approved="approved",e.disabled="disabled"}(EApplicationStatus=EApplicationStatus||{}),!function(e){e.string="String",e.json="JSON",e.boolean="Boolean"}(EConfigTypes=EConfigTypes||{}),"adminCenterApplications"),initialState$2={allApplications:[],installedApplications:[],allAppStatus:"idle",installedAppStatus:"idle"},adminCenterApplicationSlice=createSlice({name:SLICE_NAME$1+"/"+namespace$2,initialState:initialState$2,reducers:{fetchAllApplicationsStart(e){e.allAppStatus="loading"},fetchAllApplicationsSuccess(e,t){e.allAppStatus="success",e.allApplications=t.payload},fetchAllApplicationsFailure(e){e.allAppStatus="failure"},fetchInstalledApplicationsStart(e){e.installedAppStatus="loading"},fetchInstalledApplicationsSuccess(e,t){e.installedAppStatus="success",e.installedApplications=t.payload},fetchInstalledApplicationsFailure(e){e.installedAppStatus="failure"}}}),actions$2=adminCenterApplicationSlice.actions;var Status,adminCenterApplications_state=adminCenterApplicationSlice.reducer;const selectInstalledApps=e=>{return null==(e=null==(e=null==e?void 0:e[SLICE_NAME$1])?void 0:e[namespace$2])?void 0:e.installedApplications},selectAllApps=e=>{return null==(e=null==(e=null==e?void 0:e[SLICE_NAME$1])?void 0:e[namespace$2])?void 0:e.allApplications},selectAllAppsUiStatus=e=>{return null==(e=null==(e=null==e?void 0:e[SLICE_NAME$1])?void 0:e[namespace$2])?void 0:e.allAppStatus},selectInstalledAppsUiStatus=e=>{return null==(e=null==(e=null==e?void 0:e[SLICE_NAME$1])?void 0:e[namespace$2])?void 0:e.installedAppStatus},selectApiConfigs=createSelector([rootApiSelector,graphEndpointSelector,sessionTokenSelector],(e,t,n)=>({apiRoot:e,graphQLEndpoint:t,token:n}));function __rest(e,t){var n={};for(i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n}function __awaiter(e,a,s,l){return new(s=s||Promise)(function(n,t){function r(e){try{o(l.next(e))}catch(e){t(e)}}function i(e){try{o(l.throw(e))}catch(e){t(e)}}function o(e){var t;e.done?n(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(r,i)}o((l=l.apply(e,a||[])).next())})}const SLICE_NAME="applications",namespace$1=(!function(e){e.idle="idle",e.loading="loading",e.success="success",e.failure="failure"}(Status=Status||{}),"applicationDetail"),initialState$1={status:"idle",application:{},ownerOrganization:{name:""},allRoles:[],appRoles:[],applicationUsers:[],modifiedUsers:[],userSearchResults:[],usersStatus:"idle",userSearchTerm:"",saveUsersEnabled:!1},createUserMod=e=>({id:e.id,roleIds:e.roles.map(e=>e.id)}),applicationDetailSlice=createSlice({name:SLICE_NAME+"/"+namespace$1,initialState:initialState$1,reducers:{setInitialApplicationValue(e,t){var n=t.payload,r=n["ownerOrganization"],n=__rest(n,["ownerOrganization"]);e.initValue=t.payload,e.application=n,e.ownerOrganization=r,e.status=Status.success},fetchApplicationStart(e,t){var n,{applicationId:t,initValue:r}=t.payload;e.applicationId=t,r?(t=r["ownerOrganization"],n=__rest(r,["ownerOrganization"]),e.initValue=r,e.application=n,e.ownerOrganization=t,e.status=Status.success):e.status=Status.loading},fetchApplicationSuccess(e,t){var{application:t,organization:n}=t.payload;e.application=t,e.ownerOrganization=n,e.status=Status.success},fetchApplicationError(e){e.status=Status.failure},setStatus(e,t){e.status=t.payload},installAppStart(e,t){e.status=Status.loading},installAppSuccess(e,t){e.status=Status.success,e.application=t.payload},installAppFailure(e){e.status=Status.failure},initApplicationUsers(e,t){e.applicationId=t.payload.applicationId,e.applicationKey=t.payload.applicationKey},fetchApplicationUsersStart(e){e.usersStatus=Status.loading},fetchApplicationUsersSuccess(t,e){t.usersStatus=Status.success,t.applicationUsers=e.payload.filter(e=>e.roles.find(e=>e.appName===t.applicationKey))},fetchApplicationUsersFailure(e){e.usersStatus=Status.failure},fetchApplicationRolesStart(e){e.usersStatus=Status.loading},fetchApplicationRolesSuccess(t,e){t.usersStatus=Status.success,t.allRoles=e.payload,t.appRoles=t.allRoles.filter(e=>e.appName===t.applicationKey)},fetchApplicationRolesFailure(e){e.usersStatus=Status.failure},searchApplicationUsersStart(e,t){e.usersStatus=Status.loading,e.userSearchTerm=t.payload},searchApplicationUsersSuccess(e,t){e.usersStatus=Status.success,e.userSearchResults=t.payload},searchApplicationUsersFailure(e){e.usersStatus=Status.failure},selectUser(e,t){e.applicationUsers=[...e.applicationUsers,t.payload],e.userSearchResults=[]},updateApplicationUserRole(t,e){const{userId:n,roleId:r}=e.payload;var e=t.applicationUsers.findIndex(e=>e.id===n),i=t.modifiedUsers.findIndex(e=>e.id===n),o=t.appRoles.find(e=>e.id===r);const a=t.applicationUsers[e].roles.filter(e=>e.appName!==t.applicationKey);o&&a.push(o),t.applicationUsers[e]=Object.assign(Object.assign({},t.applicationUsers[e]),{roles:a}),-1===i?t.modifiedUsers=[...t.modifiedUsers,createUserMod(t.applicationUsers[e])]:t.modifiedUsers[i]=createUserMod(t.applicationUsers[e])},saveApplicationUsersStart(e){e.usersStatus=Status.loading},saveApplicationUsersSuccess(e){e.usersStatus=Status.success,e.modifiedUsers=[]},saveApplicationUsersFailure(e){e.usersStatus=Status.failure}}}),actions$1=applicationDetailSlice.actions;var applicationDetailsPanelReducer=applicationDetailSlice.reducer;const namespace=SLICE_NAME$1,initialState={[namespace$2]:initialState$2,[namespace$1]:initialState$1},actions={[namespace$2]:actions$2,[namespace$1]:actions$1},rootReducer=combineReducers({[namespace$2]:adminCenterApplications_state,[namespace$1]:applicationDetailsPanelReducer});var location,defer,channel,port,tryToString$3=tryToString$5,$TypeError$6=TypeError,deletePropertyOrThrow$1=function(e,t){if(!delete e[t])throw $TypeError$6("Cannot delete property "+tryToString$3(t)+" of "+tryToString$3(e))},toPropertyKey=toPropertyKey$3,definePropertyModule$1=objectDefineProperty,createPropertyDescriptor=createPropertyDescriptor$4,createProperty$1=function(e,t,n){t=toPropertyKey(t);t in e?definePropertyModule$1.f(e,t,createPropertyDescriptor(0,n)):e[t]=n},toAbsoluteIndex=toAbsoluteIndex$2,lengthOfArrayLike$3=lengthOfArrayLike$5,createProperty=createProperty$1,$Array=Array,max=Math.max,arraySliceSimple=function(e,t,n){for(var r=lengthOfArrayLike$3(e),i=toAbsoluteIndex(t,r),o=toAbsoluteIndex(void 0===n?r:n,r),a=$Array(max(o-i,0)),s=0;i<o;i++,s++)createProperty(a,s,e[i]);return a.length=s,a},arraySlice$2=arraySliceSimple,floor=Math.floor,mergeSort=function(e,t){var n=e.length,r=floor(n/2);return n<8?insertionSort(e,t):merge(e,mergeSort(arraySlice$2(e,0,r),t),mergeSort(arraySlice$2(e,r),t),t)},insertionSort=function(e,t){for(var n,r,i=e.length,o=1;o<i;){for(n=e[r=o];r&&0<t(e[r-1],n);)e[r]=e[--r];r!==o++&&(e[r]=n)}return e},merge=function(e,t,n,r){for(var i=t.length,o=n.length,a=0,s=0;a<i||s<o;)e[a+s]=a<i&&s<o?r(t[a],n[s])<=0?t[a++]:n[s++]:a<i?t[a++]:n[s++];return e},arraySort=mergeSort,fails$4=fails$h,arrayMethodIsStrict$2=function(e,t){var n=[][e];return!!n&&fails$4(function(){n.call(null,t||function(){return 1},1)})},userAgent$4=engineUserAgent,firefox=engineUserAgent.match(/firefox\/(\d+)/i),engineFfVersion=!!firefox&&+firefox[1],UA=engineUserAgent,engineIsIeOrEdge=/MSIE|Trident/.test(UA),userAgent$3=engineUserAgent,webkit=engineUserAgent.match(/AppleWebKit\/(\d+)\./),engineWebkitVersion=!!webkit&&+webkit[1],$$8=_export,uncurryThis$4=functionUncurryThis,aCallable$7=aCallable$9,toObject$1=toObject$5,lengthOfArrayLike$2=lengthOfArrayLike$5,deletePropertyOrThrow=deletePropertyOrThrow$1,toString$1=toString$4,fails$3=fails$h,internalSort=arraySort,arrayMethodIsStrict$1=arrayMethodIsStrict$2,FF=engineFfVersion,IE_OR_EDGE=engineIsIeOrEdge,V8=engineV8Version,WEBKIT=engineWebkitVersion,test=[],un$Sort=uncurryThis$4(test.sort),push=uncurryThis$4(test.push),FAILS_ON_UNDEFINED=fails$3(function(){test.sort(void 0)}),FAILS_ON_NULL=fails$3(function(){test.sort(null)}),STRICT_METHOD$1=arrayMethodIsStrict$1("sort"),STABLE_SORT=!fails$3(function(){if(V8)return V8<70;if(!(FF&&3<FF)){if(IE_OR_EDGE)return!0;if(WEBKIT)return WEBKIT<603;for(var e,t,n,r="",i=65;i<76;i++){switch(e=String.fromCharCode(i),i){case 66:case 69:case 70:case 72:t=3;break;case 68:case 71:t=4;break;default:t=2}for(n=0;n<47;n++)test.push({k:e+n,v:t})}for(test.sort(function(e,t){return t.v-e.v}),n=0;n<test.length;n++)e=test[n].k.charAt(0),r.charAt(r.length-1)!==e&&(r+=e);return"DGBEFHACIJK"!==r}}),FORCED=FAILS_ON_UNDEFINED||!FAILS_ON_NULL||!STRICT_METHOD$1||!STABLE_SORT,getSortCompare=function(n){return function(e,t){return void 0===t?-1:void 0===e?1:void 0!==n?+n(e,t)||0:toString$1(e)>toString$1(t)?1:-1}},classof$2=($$8({target:"Array",proto:!0,forced:FORCED},{sort:function(e){void 0!==e&&aCallable$7(e);var t=toObject$1(this);if(STABLE_SORT)return void 0===e?un$Sort(t):un$Sort(t,e);for(var n,r=[],i=lengthOfArrayLike$2(t),o=0;o<i;o++)o in t&&push(r,t[o]);for(internalSort(r,getSortCompare(e)),n=r.length,o=0;o<n;)t[o]=r[o++];for(;o<i;)deletePropertyOrThrow(t,o++);return t}}),classofRaw$1),global$8=global$k,engineIsNode="process"==classofRaw$1(global$k.process),getBuiltIn$3=getBuiltIn$8,definePropertyModule=objectDefineProperty,wellKnownSymbol$5=wellKnownSymbol$g,DESCRIPTORS=descriptors,SPECIES$2=wellKnownSymbol$g("species"),setSpecies$1=function(e){var e=getBuiltIn$3(e),t=definePropertyModule.f;DESCRIPTORS&&e&&!e[SPECIES$2]&&t(e,SPECIES$2,{configurable:!0,get:function(){return this}})},isPrototypeOf$1=objectIsPrototypeOf,$TypeError$5=TypeError,anInstance$1=function(e,t){if(isPrototypeOf$1(t,e))return e;throw $TypeError$5("Incorrect invocation")},uncurryThis$3=functionUncurryThis,fails$2=fails$h,isCallable$4=isCallable$l,classof$1=classof$4,getBuiltIn$2=getBuiltIn$8,inspectSource$1=inspectSource$4,noop=function(){},empty=[],construct=getBuiltIn$8("Reflect","construct"),constructorRegExp=/^\s*(?:class|function)\b/,exec=uncurryThis$3(constructorRegExp.exec),INCORRECT_TO_STRING=!constructorRegExp.exec(noop),isConstructorModern=function(e){if(!isCallable$4(e))return!1;try{return construct(noop,empty,e),!0}catch(e){return!1}},isConstructorLegacy=function(e){if(!isCallable$4(e))return!1;switch(classof$1(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return INCORRECT_TO_STRING||!!exec(constructorRegExp,inspectSource$1(e))}catch(e){return!0}},isConstructor$1=(isConstructorLegacy.sham=!0,!construct||fails$2(function(){var e;return isConstructorModern(isConstructorModern.call)||!isConstructorModern(Object)||!isConstructorModern(function(){e=!0})||e})?isConstructorLegacy:isConstructorModern),isConstructor=isConstructor$1,tryToString$2=tryToString$5,$TypeError$4=TypeError,aConstructor$1=function(e){if(isConstructor(e))return e;throw $TypeError$4(tryToString$2(e)+" is not a constructor")},anObject$4=anObject$c,aConstructor=aConstructor$1,wellKnownSymbol$4=wellKnownSymbol$g,SPECIES$1=wellKnownSymbol$g("species"),speciesConstructor$1=function(e,t){var e=anObject$4(e).constructor;return void 0===e||null==(e=anObject$4(e)[SPECIES$1])?t:aConstructor(e)},NATIVE_BIND$1=functionBindNative,FunctionPrototype=Function.prototype,apply$1=FunctionPrototype.apply,call$7=FunctionPrototype.call,functionApply="object"==typeof Reflect&&Reflect.apply||(NATIVE_BIND$1?call$7.bind(apply$1):function(){return call$7.apply(apply$1,arguments)}),uncurryThis$2=functionUncurryThis,aCallable$6=aCallable$9,NATIVE_BIND=functionBindNative,bind$4=functionUncurryThis(functionUncurryThis.bind),functionBindContext=function(e,t){return aCallable$6(e),void 0===t?e:NATIVE_BIND?bind$4(e,t):function(){return e.apply(t,arguments)}},uncurryThis$1=functionUncurryThis,arraySlice$1=functionUncurryThis([].slice),$TypeError$3=TypeError,validateArgumentsLength$1=function(e,t){if(e<t)throw $TypeError$3("Not enough arguments");return e},userAgent$2=engineUserAgent,engineIsIos=/(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2),global$7=global$k,apply=functionApply,bind$3=functionBindContext,isCallable$3=isCallable$l,hasOwn=hasOwnProperty_1,fails$1=fails$h,html=html$2,arraySlice=arraySlice$1,createElement=documentCreateElement$2,validateArgumentsLength=validateArgumentsLength$1,IS_IOS$1=engineIsIos,IS_NODE$4=engineIsNode,set=global$7.setImmediate,clear=global$7.clearImmediate,process$3=global$7.process,Dispatch=global$7.Dispatch,Function$1=global$7.Function,MessageChannel=global$7.MessageChannel,String$1=global$7.String,counter=0,queue$1={},ONREADYSTATECHANGE="onreadystatechange";try{location=global$7.location}catch(e){}var flush,head,last,notify$1,toggle,node,promise,then,Internal,OwnPromiseCapability,PromiseWrapper,nativeThen,run=function(e){var t;hasOwn(queue$1,e)&&(t=queue$1[e],delete queue$1[e],t())},runner=function(e){return function(){run(e)}},listener=function(e){run(e.data)},post=function(e){global$7.postMessage(String$1(e),location.protocol+"//"+location.host)},task$1=(set&&clear||(set=function(e){validateArgumentsLength(arguments.length,1);var t=isCallable$3(e)?e:Function$1(e),n=arraySlice(arguments,1);return queue$1[++counter]=function(){apply(t,void 0,n)},defer(counter),counter},clear=function(e){delete queue$1[e]},IS_NODE$4?defer=function(e){process$3.nextTick(runner(e))}:Dispatch&&Dispatch.now?defer=function(e){Dispatch.now(runner(e))}:MessageChannel&&!IS_IOS$1?(port=(channel=new MessageChannel).port2,channel.port1.onmessage=listener,defer=bind$3(port.postMessage,port)):global$7.addEventListener&&isCallable$3(global$7.postMessage)&&!global$7.importScripts&&location&&"file:"!==location.protocol&&!fails$1(post)?(defer=post,global$7.addEventListener("message",listener,!1)):defer=ONREADYSTATECHANGE in createElement("script")?function(e){html.appendChild(createElement("script"))[ONREADYSTATECHANGE]=function(){html.removeChild(this),run(e)}}:function(e){setTimeout(runner(e),0)}),{set:set,clear:clear}),userAgent$1=engineUserAgent,global$6=global$k,engineIsIosPebble=/ipad|iphone|ipod/i.test(userAgent$1)&&void 0!==global$6.Pebble,userAgent=engineUserAgent,engineIsWebosWebkit=/web0s(?!.*chrome)/i.test(userAgent),global$5=global$k,bind$2=functionBindContext,getOwnPropertyDescriptor=objectGetOwnPropertyDescriptor.f,macrotask=task$1.set,IS_IOS=engineIsIos,IS_IOS_PEBBLE=engineIsIosPebble,IS_WEBOS_WEBKIT=engineIsWebosWebkit,IS_NODE$3=engineIsNode,MutationObserver=global$5.MutationObserver||global$5.WebKitMutationObserver,document$2=global$5.document,process$2=global$5.process,Promise$1=global$5.Promise,queueMicrotaskDescriptor=getOwnPropertyDescriptor(global$5,"queueMicrotask"),queueMicrotask=queueMicrotaskDescriptor&&queueMicrotaskDescriptor.value,microtask$1=(queueMicrotask||(flush=function(){var e,t;for(IS_NODE$3&&(e=process$2.domain)&&e.exit();head;){t=head.fn,head=head.next;try{t()}catch(e){throw head?notify$1():last=void 0,e}}last=void 0,e&&e.enter()},notify$1=IS_IOS||IS_NODE$3||IS_WEBOS_WEBKIT||!MutationObserver||!document$2?!IS_IOS_PEBBLE&&Promise$1&&Promise$1.resolve?((promise=Promise$1.resolve(void 0)).constructor=Promise$1,then=bind$2(promise.then,promise),function(){then(flush)}):IS_NODE$3?function(){process$2.nextTick(flush)}:(macrotask=bind$2(macrotask,global$5),function(){macrotask(flush)}):(toggle=!0,node=document$2.createTextNode(""),new MutationObserver(flush).observe(node,{characterData:!0}),function(){node.data=toggle=!toggle})),queueMicrotask||function(e){e={fn:e,next:void 0};last&&(last.next=e),head||(head=e,notify$1()),last=e}),global$4=global$k,hostReportErrors$1=function(e,t){var n=global$4.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))},perform$3=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},Queue$1=function(){this.head=null,this.tail=null},queue=(Queue$1.prototype={add:function(e){e={item:e,next:null};this.head?this.tail.next=e:this.head=e,this.tail=e},get:function(){var e=this.head;if(e)return this.head=e.next,this.tail===e&&(this.tail=null),e.item}},Queue$1),global$3=global$k,promiseNativeConstructor=global$k.Promise,engineIsDeno="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,IS_DENO$1=engineIsDeno,IS_NODE$2=engineIsNode,engineIsBrowser=!engineIsDeno&&!engineIsNode&&"object"==typeof window&&"object"==typeof document,global$2=global$k,NativePromiseConstructor$3=promiseNativeConstructor,isCallable$2=isCallable$l,isForced=isForced_1,inspectSource=inspectSource$4,wellKnownSymbol$3=wellKnownSymbol$g,IS_BROWSER=engineIsBrowser,IS_DENO=engineIsDeno,V8_VERSION=engineV8Version,SPECIES=(NativePromiseConstructor$3&&NativePromiseConstructor$3.prototype,wellKnownSymbol$3("species")),SUBCLASSING=!1,NATIVE_PROMISE_REJECTION_EVENT$1=isCallable$2(global$2.PromiseRejectionEvent),FORCED_PROMISE_CONSTRUCTOR$5=isForced("Promise",function(){var e=inspectSource(NativePromiseConstructor$3),t=e!==String(NativePromiseConstructor$3);if(!t&&66===V8_VERSION)return!0;if(!V8_VERSION||V8_VERSION<51||!/native code/.test(e)){function n(e){e(function(){},function(){})}e=new NativePromiseConstructor$3(function(e){e(1)});if((e.constructor={})[SPECIES]=n,!(SUBCLASSING=e.then(function(){})instanceof n))return!0}return!t&&(IS_BROWSER||IS_DENO)&&!NATIVE_PROMISE_REJECTION_EVENT$1}),promiseConstructorDetection={CONSTRUCTOR:FORCED_PROMISE_CONSTRUCTOR$5,REJECTION_EVENT:NATIVE_PROMISE_REJECTION_EVENT$1,SUBCLASSING:SUBCLASSING},newPromiseCapability$2={},aCallable$5=aCallable$9,PromiseCapability=function(e){var n,r;this.promise=new e(function(e,t){if(void 0!==n||void 0!==r)throw TypeError("Bad Promise constructor");n=e,r=t}),this.resolve=aCallable$5(n),this.reject=aCallable$5(r)},$$7=(newPromiseCapability$2.f=function(e){return new PromiseCapability(e)},_export),IS_NODE$1=engineIsNode,global$1=global$k,call$6=functionCall,defineBuiltIn$1=defineBuiltIn$6,setPrototypeOf=objectSetPrototypeOf,setToStringTag=setToStringTag$3,setSpecies=setSpecies$1,aCallable$4=aCallable$9,isCallable$1=isCallable$l,isObject$1=isObject$8,anInstance=anInstance$1,speciesConstructor=speciesConstructor$1,task=task$1.set,microtask=microtask$1,hostReportErrors=hostReportErrors$1,perform$2=perform$3,Queue=queue,InternalStateModule=internalState,NativePromiseConstructor$2=promiseNativeConstructor,PromiseConstructorDetection=promiseConstructorDetection,newPromiseCapabilityModule$3=newPromiseCapability$2,PROMISE="Promise",FORCED_PROMISE_CONSTRUCTOR$4=PromiseConstructorDetection.CONSTRUCTOR,NATIVE_PROMISE_REJECTION_EVENT=PromiseConstructorDetection.REJECTION_EVENT,NATIVE_PROMISE_SUBCLASSING=PromiseConstructorDetection.SUBCLASSING,getInternalPromiseState=InternalStateModule.getterFor(PROMISE),setInternalState=InternalStateModule.set,NativePromisePrototype$1=NativePromiseConstructor$2&&NativePromiseConstructor$2.prototype,PromiseConstructor=NativePromiseConstructor$2,PromisePrototype=NativePromisePrototype$1,TypeError$1=global$1.TypeError,document$1=global$1.document,process$1=global$1.process,newPromiseCapability$1=newPromiseCapabilityModule$3.f,newGenericPromiseCapability=newPromiseCapability$1,DISPATCH_EVENT=!!(document$1&&document$1.createEvent&&global$1.dispatchEvent),UNHANDLED_REJECTION="unhandledrejection",REJECTION_HANDLED="rejectionhandled",PENDING=0,FULFILLED=1,REJECTED=2,HANDLED=1,UNHANDLED=2,isThenable=function(e){var t;return!(!isObject$1(e)||!isCallable$1(t=e.then))&&t},callReaction=function(e,t){var n,r,i,o=t.value,a=t.state==FULFILLED,s=a?e.ok:e.fail,l=e.resolve,c=e.reject,p=e.domain;try{s?(a||(t.rejection===UNHANDLED&&onHandleUnhandled(t),t.rejection=HANDLED),!0===s?n=o:(p&&p.enter(),n=s(o),p&&(p.exit(),i=!0)),n===e.promise?c(TypeError$1("Promise-chain cycle")):(r=isThenable(n))?call$6(r,n,l,c):l(n)):c(o)}catch(e){p&&!i&&p.exit(),c(e)}},notify=function(n,r){n.notified||(n.notified=!0,microtask(function(){for(var e,t=n.reactions;e=t.get();)callReaction(e,n);n.notified=!1,r&&!n.rejection&&onUnhandled(n)}))},dispatchEvent=function(e,t,n){var r;DISPATCH_EVENT?((r=document$1.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),global$1.dispatchEvent(r)):r={promise:t,reason:n},!NATIVE_PROMISE_REJECTION_EVENT&&(t=global$1["on"+e])?t(r):e===UNHANDLED_REJECTION&&hostReportErrors("Unhandled promise rejection",n)},onUnhandled=function(r){call$6(task,global$1,function(){var e=r.facade,t=r.value,n=isUnhandled(r);if(n&&(n=perform$2(function(){IS_NODE$1?process$1.emit("unhandledRejection",t,e):dispatchEvent(UNHANDLED_REJECTION,e,t)}),r.rejection=IS_NODE$1||isUnhandled(r)?UNHANDLED:HANDLED,n.error))throw n.value})},isUnhandled=function(e){return e.rejection!==HANDLED&&!e.parent},onHandleUnhandled=function(t){call$6(task,global$1,function(){var e=t.facade;IS_NODE$1?process$1.emit("rejectionHandled",e):dispatchEvent(REJECTION_HANDLED,e,t.value)})},bind$1=function(t,n,r){return function(e){t(n,e,r)}},internalReject=function(e,t,n){e.done||(e.done=!0,(e=n?n:e).value=t,e.state=REJECTED,notify(e,!0))},internalResolve=function(n,e,t){if(!n.done){n.done=!0,t&&(n=t);try{if(n.facade===e)throw TypeError$1("Promise can't be resolved itself");var r=isThenable(e);r?microtask(function(){var t={done:!1};try{call$6(r,e,bind$1(internalResolve,t,n),bind$1(internalReject,t,n))}catch(e){internalReject(t,e,n)}}):(n.value=e,n.state=FULFILLED,notify(n,!1))}catch(e){internalReject({done:!1},e,n)}}};if(FORCED_PROMISE_CONSTRUCTOR$4&&(PromisePrototype=(PromiseConstructor=function(e){anInstance(this,PromisePrototype),aCallable$4(e),call$6(Internal,this);var t=getInternalPromiseState(this);try{e(bind$1(internalResolve,t),bind$1(internalReject,t))}catch(e){internalReject(t,e)}}).prototype,(Internal=function(e){setInternalState(this,{type:PROMISE,done:!1,notified:!1,parent:!1,reactions:new Queue,rejection:!1,state:PENDING,value:void 0})}).prototype=defineBuiltIn$1(PromisePrototype,"then",function(e,t){var n=getInternalPromiseState(this),r=newPromiseCapability$1(speciesConstructor(this,PromiseConstructor));return n.parent=!0,r.ok=!isCallable$1(e)||e,r.fail=isCallable$1(t)&&t,r.domain=IS_NODE$1?process$1.domain:void 0,n.state==PENDING?n.reactions.add(r):microtask(function(){callReaction(r,n)}),r.promise}),OwnPromiseCapability=function(){var e=new Internal,t=getInternalPromiseState(e);this.promise=e,this.resolve=bind$1(internalResolve,t),this.reject=bind$1(internalReject,t)},newPromiseCapabilityModule$3.f=newPromiseCapability$1=function(e){return e===PromiseConstructor||e===PromiseWrapper?new OwnPromiseCapability(e):newGenericPromiseCapability(e)},isCallable$1(NativePromiseConstructor$2)&&NativePromisePrototype$1!==Object.prototype)){nativeThen=NativePromisePrototype$1.then,NATIVE_PROMISE_SUBCLASSING||defineBuiltIn$1(NativePromisePrototype$1,"then",function(e,t){var n=this;return new PromiseConstructor(function(e,t){call$6(nativeThen,n,e,t)}).then(e,t)},{unsafe:!0});try{delete NativePromisePrototype$1.constructor}catch(e){}setPrototypeOf&&setPrototypeOf(NativePromisePrototype$1,PromisePrototype)}$$7({global:!0,constructor:!0,wrap:!0,forced:FORCED_PROMISE_CONSTRUCTOR$4},{Promise:PromiseConstructor}),setToStringTag(PromiseConstructor,PROMISE,!1),setSpecies(PROMISE);var wellKnownSymbol$2=wellKnownSymbol$g,Iterators$1=iterators,ITERATOR$2=wellKnownSymbol$g("iterator"),ArrayPrototype=Array.prototype,isArrayIteratorMethod$1=function(e){return void 0!==e&&(Iterators$1.Array===e||ArrayPrototype[ITERATOR$2]===e)},classof=classof$4,getMethod$1=getMethod$3,Iterators=iterators,wellKnownSymbol$1=wellKnownSymbol$g,ITERATOR$1=wellKnownSymbol$g("iterator"),getIteratorMethod$2=function(e){if(null!=e)return getMethod$1(e,ITERATOR$1)||getMethod$1(e,"@@iterator")||Iterators[classof(e)]},call$5=functionCall,aCallable$3=aCallable$9,anObject$3=anObject$c,tryToString$1=tryToString$5,getIteratorMethod$1=getIteratorMethod$2,$TypeError$2=TypeError,getIterator$1=function(e,t){var n=arguments.length<2?getIteratorMethod$1(e):t;if(aCallable$3(n))return anObject$3(call$5(n,e));throw $TypeError$2(tryToString$1(e)+" is not iterable")},call$4=functionCall,anObject$2=anObject$c,getMethod=getMethod$3,iteratorClose$1=function(e,t,n){var r,i;anObject$2(e);try{if(!(r=getMethod(e,"return"))){if("throw"===t)throw n;return n}r=call$4(r,e)}catch(e){i=!0,r=e}if("throw"===t)throw n;if(i)throw r;return anObject$2(r),n},bind=functionBindContext,call$3=functionCall,anObject$1=anObject$c,tryToString=tryToString$5,isArrayIteratorMethod=isArrayIteratorMethod$1,lengthOfArrayLike$1=lengthOfArrayLike$5,isPrototypeOf=objectIsPrototypeOf,getIterator=getIterator$1,getIteratorMethod=getIteratorMethod$2,iteratorClose=iteratorClose$1,$TypeError$1=TypeError,Result=function(e,t){this.stopped=e,this.result=t},ResultPrototype=Result.prototype,iterate$2=function(e,t,n){function r(e){return o&&iteratorClose(o,"normal",e),new Result(!0,e)}function i(e){return d?(anObject$1(e),m?f(e[0],e[1],r):f(e[0],e[1])):m?f(e,r):f(e)}var o,a,s,l,c,p,u=n&&n.that,d=!(!n||!n.AS_ENTRIES),$=!(!n||!n.IS_RECORD),g=!(!n||!n.IS_ITERATOR),m=!(!n||!n.INTERRUPTED),f=bind(t,u);if($)o=e.iterator;else if(g)o=e;else{if(!(n=getIteratorMethod(e)))throw $TypeError$1(tryToString(e)+" is not iterable");if(isArrayIteratorMethod(n)){for(a=0,s=lengthOfArrayLike$1(e);a<s;a++)if((l=i(e[a]))&&isPrototypeOf(ResultPrototype,l))return l;return new Result(!1)}o=getIterator(e,n)}for(c=($?e:o).next;!(p=call$3(c,o)).done;){try{l=i(p.value)}catch(e){iteratorClose(o,"throw",e)}if("object"==typeof l&&l&&isPrototypeOf(ResultPrototype,l))return l}return new Result(!1)},wellKnownSymbol=wellKnownSymbol$g,ITERATOR=wellKnownSymbol$g("iterator"),SAFE_CLOSING=!1;try{var called=0,iteratorWithReturn={next:function(){return{done:!!called++}},return:function(){SAFE_CLOSING=!0}};iteratorWithReturn[ITERATOR]=function(){return this},Array.from(iteratorWithReturn,function(){throw 2})}catch(e){}var method,checkCorrectnessOfIteration$1=function(e,t){if(!t&&!SAFE_CLOSING)return!1;var n=!1;try{var r={};r[ITERATOR]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},NativePromiseConstructor$1=promiseNativeConstructor,checkCorrectnessOfIteration=checkCorrectnessOfIteration$1,FORCED_PROMISE_CONSTRUCTOR$3=promiseConstructorDetection.CONSTRUCTOR,promiseStaticsIncorrectIteration=FORCED_PROMISE_CONSTRUCTOR$3||!checkCorrectnessOfIteration(function(e){NativePromiseConstructor$1.all(e).then(void 0,function(){})}),$$6=_export,call$2=functionCall,aCallable$2=aCallable$9,newPromiseCapabilityModule$2=newPromiseCapability$2,perform$1=perform$3,iterate$1=iterate$2,PROMISE_STATICS_INCORRECT_ITERATION$1=promiseStaticsIncorrectIteration,$$5=(_export({target:"Promise",stat:!0,forced:promiseStaticsIncorrectIteration},{all:function(e){var s=this,t=newPromiseCapabilityModule$2.f(s),l=t.resolve,c=t.reject,n=perform$1(function(){var r=aCallable$2(s.resolve),i=[],o=0,a=1;iterate$1(e,function(e){var t=o++,n=!1;a++,call$2(r,s,e).then(function(e){n||(n=!0,i[t]=e,--a||l(i))},c)}),--a||l(i)});return n.error&&c(n.value),t.promise}}),_export),FORCED_PROMISE_CONSTRUCTOR$2=promiseConstructorDetection.CONSTRUCTOR,NativePromiseConstructor=promiseNativeConstructor,getBuiltIn$1=getBuiltIn$8,isCallable=isCallable$l,defineBuiltIn=defineBuiltIn$6,NativePromisePrototype=NativePromiseConstructor&&NativePromiseConstructor.prototype,$$4=($$5({target:"Promise",proto:!0,forced:FORCED_PROMISE_CONSTRUCTOR$2,real:!0},{catch:function(e){return this.then(void 0,e)}}),isCallable(NativePromiseConstructor)&&(method=getBuiltIn$1("Promise").prototype.catch,NativePromisePrototype.catch!==method&&defineBuiltIn(NativePromisePrototype,"catch",method,{unsafe:!0})),_export),call$1=functionCall,aCallable$1=aCallable$9,newPromiseCapabilityModule$1=newPromiseCapability$2,perform=perform$3,iterate=iterate$2,PROMISE_STATICS_INCORRECT_ITERATION=promiseStaticsIncorrectIteration,$$3=(_export({target:"Promise",stat:!0,forced:promiseStaticsIncorrectIteration},{race:function(e){var n=this,r=newPromiseCapabilityModule$1.f(n),i=r.reject,t=perform(function(){var t=aCallable$1(n.resolve);iterate(e,function(e){call$1(t,n,e).then(r.resolve,i)})});return t.error&&i(t.value),r.promise}}),_export),call=functionCall,newPromiseCapabilityModule=newPromiseCapability$2,FORCED_PROMISE_CONSTRUCTOR$1=promiseConstructorDetection.CONSTRUCTOR,anObject=($$3({target:"Promise",stat:!0,forced:FORCED_PROMISE_CONSTRUCTOR$1},{reject:function(e){var t=newPromiseCapabilityModule.f(this);return call(t.reject,void 0,e),t.promise}}),anObject$c),isObject=isObject$8,newPromiseCapability=newPromiseCapability$2,promiseResolve$1=function(e,t){if(anObject(e),isObject(t)&&t.constructor===e)return t;e=newPromiseCapability.f(e);return(0,e.resolve)(t),e.promise},$$2=_export,getBuiltIn=getBuiltIn$8,FORCED_PROMISE_CONSTRUCTOR=promiseConstructorDetection.CONSTRUCTOR,promiseResolve=promiseResolve$1;function fetchOrgsApplications(n,r){return __awaiter(this,void 0,void 0,function*(){var e="fetchOrgsApplications",t="applications";return(yield baseGraphQLApiWithError(Object.assign({query:`
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import{bc as createSvgIcon,j as jsxRuntime,m as makeStyles,H as createSlice,g0 as md5,cc as combineReducers,i as useDispatch,k as useSelector,ez as userSelector,r as react,B as Box$1,T as Typography,F as FormattedMessage,at as Button,g1 as AddUser,cf as AIWareThemeProvider,a2 as all,G as Grid,a7 as Divider,cq as mountPanel,d4 as takeEvery$1,fN as ErrorState,ai as select,fd as selectApiConfigs,ah as put,bD as CircularProgress,bM as Avatar,a8 as Tooltip,a9 as IconButton,cB as baseGraphQLApiWithError,fi as Popover,fj as MenuList,aW as MenuItem,g2 as Users,g3 as ApplicationTabIcon,fS as Lock,g4 as SecurityGroup,fQ as Group,K as lib,A as AIWareIntlProvider,eT as panelsSelector,fq as Hamburger,ci as FullscreenExit,cj as Fullscreen,bU as Hide,fb as betaFeaturesSelector,b0 as Tabs,x as classNames,b1 as Tab,Y as Portal,ak as call$b}from"./js-core.esm.js";import{GroupsPanel,getAdminCenterGroupsModule}from"./js-core.esm40.js";import{PermissionSets,AccessControl,getAdminCenterPermissionsModule}from"./js-core.esm37.js";import{ApplicationsTab,getAdminCenterApplicationsModule}from"./js-core.esm47.js";import{organizationSelectors as organizations_selector,actions as actions$3,getOrganizationPanelModule}from"./js-core.esm31.js";import{A as AutoSizer,I as InfiniteLoader}from"./js-core.esm38.js";import{V as VariableSizeList}from"./js-core.esm25.js";import"./js-core.esm8.js";import"./js-core.esm20.js";import"./js-core.esm26.js";import"./js-core.esm41.js";import"./js-core.esm33.js";import"./js-core.esm21.js";import"./js-core.esm6.js";import"./js-core.esm9.js";import"./js-core.esm10.js";import"./js-core.esm11.js";var match,version,store,wmget,wmhas,wmset,set,get,has,STATE,activeXDocument,IteratorPrototype$2,PrototypeOfArrayIteratorPrototype,arrayIterator,MoreVert=createSvgIcon(jsxRuntime.exports.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreVert"),commonjsGlobal=(!function(){var e={};try{if(process)return process.env=Object.assign({},process.env),Object.assign(process.env,e)}catch(e){}globalThis.process={env:e}}(),"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{}),check=function(e){return e&&e.Math==Math&&e},global$f=check("object"==typeof globalThis&&globalThis)||check("object"==typeof window&&window)||check("object"==typeof self&&self)||check("object"==typeof commonjsGlobal&&commonjsGlobal)||function(){return this}()||Function("return this")(),objectGetOwnPropertyDescriptor={},fails$i=function(e){try{return!!e()}catch(e){return!0}},fails$h=fails$i,descriptors=!fails$i(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),fails$g=fails$i,functionBindNative=!fails$i(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}),NATIVE_BIND$2=functionBindNative,call$a=Function.prototype.call,functionCall=NATIVE_BIND$2?call$a.bind(call$a):function(){return call$a.apply(call$a,arguments)},objectPropertyIsEnumerable={},$propertyIsEnumerable={}.propertyIsEnumerable,getOwnPropertyDescriptor$1=Object.getOwnPropertyDescriptor,NASHORN_BUG=getOwnPropertyDescriptor$1&&!$propertyIsEnumerable.call({1:2},1),createPropertyDescriptor$4=(objectPropertyIsEnumerable.f=NASHORN_BUG?function(e){e=getOwnPropertyDescriptor$1(this,e);return!!e&&e.enumerable}:$propertyIsEnumerable,function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}),NATIVE_BIND$1=functionBindNative,FunctionPrototype$2=Function.prototype,bind=FunctionPrototype$2.bind,call$9=FunctionPrototype$2.call,uncurryThis$i=NATIVE_BIND$1&&bind.bind(call$9,call$9),functionUncurryThis=NATIVE_BIND$1?function(e){return e&&uncurryThis$i(e)}:function(e){return e&&function(){return call$9.apply(e,arguments)}},uncurryThis$h=functionUncurryThis,toString$7=uncurryThis$h({}.toString),stringSlice$3=uncurryThis$h("".slice),classofRaw$1=function(e){return stringSlice$3(toString$7(e),8,-1)},uncurryThis$g=functionUncurryThis,fails$f=fails$i,classof$5=classofRaw$1,$Object$4=Object,split=functionUncurryThis("".split),indexedObject=fails$f(function(){return!$Object$4("z").propertyIsEnumerable(0)})?function(e){return"String"==classof$5(e)?split(e,""):$Object$4(e)}:$Object$4,$TypeError$8=TypeError,requireObjectCoercible$5=function(e){if(null==e)throw $TypeError$8("Can't call method on "+e);return e},IndexedObject$1=indexedObject,requireObjectCoercible$4=requireObjectCoercible$5,toIndexedObject$5=function(e){return IndexedObject$1(requireObjectCoercible$4(e))},isCallable$h=function(e){return"function"==typeof e},isCallable$g=isCallable$h,isObject$6=function(e){return"object"==typeof e?null!==e:isCallable$g(e)},global$e=global$f,isCallable$f=isCallable$h,aFunction=function(e){return isCallable$f(e)?e:void 0},getBuiltIn$5=function(e,t){return arguments.length<2?aFunction(global$e[e]):global$e[e]&&global$e[e][t]},uncurryThis$f=functionUncurryThis,objectIsPrototypeOf=functionUncurryThis({}.isPrototypeOf),getBuiltIn$4=getBuiltIn$5,engineUserAgent=getBuiltIn$5("navigator","userAgent")||"",global$d=global$f,userAgent=engineUserAgent,process$1=global$d.process,Deno=global$d.Deno,versions=process$1&&process$1.versions||Deno&&Deno.version,v8=versions&&versions.v8,engineV8Version=version=!(version=v8?0<(match=v8.split("."))[0]&&match[0]<4?1:+(match[0]+match[1]):version)&&userAgent&&(!(match=userAgent.match(/Edge\/(\d+)/))||74<=match[1])&&(match=userAgent.match(/Chrome\/(\d+)/))?+match[1]:version,V8_VERSION=version,fails$e=fails$i,nativeSymbol=!!Object.getOwnPropertySymbols&&!fails$e(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&V8_VERSION&&V8_VERSION<41}),NATIVE_SYMBOL$1=nativeSymbol,useSymbolAsUid=nativeSymbol&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,getBuiltIn$3=getBuiltIn$5,isCallable$e=isCallable$h,isPrototypeOf=objectIsPrototypeOf,USE_SYMBOL_AS_UID$1=useSymbolAsUid,$Object$3=Object,isSymbol$2=useSymbolAsUid?function(e){return"symbol"==typeof e}:function(e){var t=getBuiltIn$3("Symbol");return isCallable$e(t)&&isPrototypeOf(t.prototype,$Object$3(e))},$String$3=String,tryToString$2=function(e){try{return $String$3(e)}catch(e){return"Object"}},isCallable$d=isCallable$h,tryToString$1=tryToString$2,$TypeError$7=TypeError,aCallable$1=function(e){if(isCallable$d(e))return e;throw $TypeError$7(tryToString$1(e)+" is not a function")},aCallable=aCallable$1,getMethod$2=function(e,t){e=e[t];return null==e?void 0:aCallable(e)},call$8=functionCall,isCallable$c=isCallable$h,isObject$5=isObject$6,$TypeError$6=TypeError,ordinaryToPrimitive$1=function(e,t){var r,n;if("string"===t&&isCallable$c(r=e.toString)&&!isObject$5(n=call$8(r,e)))return n;if(isCallable$c(r=e.valueOf)&&!isObject$5(n=call$8(r,e)))return n;if("string"!==t&&isCallable$c(r=e.toString)&&!isObject$5(n=call$8(r,e)))return n;throw $TypeError$6("Can't convert object to primitive value")},shared$4={exports:{}},global$c=global$f,defineProperty$5=Object.defineProperty,defineGlobalProperty$3=function(t,r){try{defineProperty$5(global$c,t,{value:r,configurable:!0,writable:!0})}catch(e){global$c[t]=r}return r},global$b=global$f,defineGlobalProperty$2=defineGlobalProperty$3,SHARED="__core-js_shared__",store$3=global$f[SHARED]||defineGlobalProperty$2(SHARED,{}),sharedStore=store$3,store$2=sharedStore,requireObjectCoercible$3=((shared$4.exports=function(e,t){return store$2[e]||(store$2[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.24.1",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.24.1/LICENSE",source:"https://github.com/zloirock/core-js"}),requireObjectCoercible$5),$Object$2=Object,toObject$3=function(e){return $Object$2(requireObjectCoercible$3(e))},uncurryThis$e=functionUncurryThis,toObject$2=toObject$3,hasOwnProperty=functionUncurryThis({}.hasOwnProperty),hasOwnProperty_1=Object.hasOwn||function(e,t){return hasOwnProperty(toObject$2(e),t)},uncurryThis$d=functionUncurryThis,id=0,postfix=Math.random(),toString$6=uncurryThis$d(1..toString),uid$2=function(e){return"Symbol("+(void 0===e?"":e)+")_"+toString$6(++id+postfix,36)},global$a=global$f,shared$3=shared$4.exports,hasOwn$8=hasOwnProperty_1,uid$1=uid$2,NATIVE_SYMBOL=nativeSymbol,USE_SYMBOL_AS_UID=useSymbolAsUid,WellKnownSymbolsStore=shared$3("wks"),Symbol$2=global$a.Symbol,symbolFor=Symbol$2&&Symbol$2.for,createWellKnownSymbol=USE_SYMBOL_AS_UID?Symbol$2:Symbol$2&&Symbol$2.withoutSetter||uid$1,wellKnownSymbol$b=function(e){var t;return hasOwn$8(WellKnownSymbolsStore,e)&&(NATIVE_SYMBOL||"string"==typeof WellKnownSymbolsStore[e])||(t="Symbol."+e,NATIVE_SYMBOL&&hasOwn$8(Symbol$2,e)?WellKnownSymbolsStore[e]=Symbol$2[e]:WellKnownSymbolsStore[e]=(USE_SYMBOL_AS_UID&&symbolFor?symbolFor:createWellKnownSymbol)(t)),WellKnownSymbolsStore[e]},call$7=functionCall,isObject$4=isObject$6,isSymbol$1=isSymbol$2,getMethod$1=getMethod$2,ordinaryToPrimitive=ordinaryToPrimitive$1,wellKnownSymbol$a=wellKnownSymbol$b,$TypeError$5=TypeError,TO_PRIMITIVE=wellKnownSymbol$b("toPrimitive"),toPrimitive$1=function(e,t){if(!isObject$4(e)||isSymbol$1(e))return e;var r=getMethod$1(e,TO_PRIMITIVE);if(r){if(r=call$7(r,e,t=void 0===t?"default":t),!isObject$4(r)||isSymbol$1(r))return r;throw $TypeError$5("Can't convert object to primitive value")}return ordinaryToPrimitive(e,t=void 0===t?"number":t)},toPrimitive=toPrimitive$1,isSymbol=isSymbol$2,toPropertyKey$3=function(e){e=toPrimitive(e,"string");return isSymbol(e)?e:e+""},global$9=global$f,isObject$3=isObject$6,document$1=global$f.document,EXISTS$1=isObject$3(document$1)&&isObject$3(document$1.createElement),documentCreateElement$2=function(e){return EXISTS$1?document$1.createElement(e):{}},DESCRIPTORS$9=descriptors,fails$d=fails$i,createElement=documentCreateElement$2,ie8DomDefine=!descriptors&&!fails$i(function(){return 7!=Object.defineProperty(createElement("div"),"a",{get:function(){return 7}}).a}),DESCRIPTORS$8=descriptors,call$6=functionCall,propertyIsEnumerableModule$1=objectPropertyIsEnumerable,createPropertyDescriptor$3=createPropertyDescriptor$4,toIndexedObject$4=toIndexedObject$5,toPropertyKey$2=toPropertyKey$3,hasOwn$7=hasOwnProperty_1,IE8_DOM_DEFINE$1=ie8DomDefine,$getOwnPropertyDescriptor$1=Object.getOwnPropertyDescriptor,objectDefineProperty=(objectGetOwnPropertyDescriptor.f=DESCRIPTORS$8?$getOwnPropertyDescriptor$1:function(e,t){if(e=toIndexedObject$4(e),t=toPropertyKey$2(t),IE8_DOM_DEFINE$1)try{return $getOwnPropertyDescriptor$1(e,t)}catch(e){}if(hasOwn$7(e,t))return createPropertyDescriptor$3(!call$6(propertyIsEnumerableModule$1.f,e,t),e[t])},{}),DESCRIPTORS$7=descriptors,fails$c=fails$i,v8PrototypeDefineBug=descriptors&&fails$i(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),isObject$2=isObject$6,$String$2=String,$TypeError$4=TypeError,anObject$9=function(e){if(isObject$2(e))return e;throw $TypeError$4($String$2(e)+" is not an object")},DESCRIPTORS$6=descriptors,IE8_DOM_DEFINE=ie8DomDefine,V8_PROTOTYPE_DEFINE_BUG$1=v8PrototypeDefineBug,anObject$8=anObject$9,toPropertyKey$1=toPropertyKey$3,$TypeError$3=TypeError,$defineProperty=Object.defineProperty,$getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor,ENUMERABLE="enumerable",CONFIGURABLE$1="configurable",WRITABLE="writable",DESCRIPTORS$5=(objectDefineProperty.f=DESCRIPTORS$6?V8_PROTOTYPE_DEFINE_BUG$1?function(e,t,r){var n;return anObject$8(e),t=toPropertyKey$1(t),anObject$8(r),"function"==typeof e&&"prototype"===t&&"value"in r&&WRITABLE in r&&!r[WRITABLE]&&((n=$getOwnPropertyDescriptor(e,t))&&n[WRITABLE]&&(e[t]=r.value,r={configurable:(CONFIGURABLE$1 in r?r:n)[CONFIGURABLE$1],enumerable:(ENUMERABLE in r?r:n)[ENUMERABLE],writable:!1})),$defineProperty(e,t,r)}:$defineProperty:function(e,t,r){if(anObject$8(e),t=toPropertyKey$1(t),anObject$8(r),IE8_DOM_DEFINE)try{return $defineProperty(e,t,r)}catch(e){}if("get"in r||"set"in r)throw $TypeError$3("Accessors not supported");return"value"in r&&(e[t]=r.value),e},descriptors),definePropertyModule$4=objectDefineProperty,createPropertyDescriptor$2=createPropertyDescriptor$4,createNonEnumerableProperty$5=DESCRIPTORS$5?function(e,t,r){return definePropertyModule$4.f(e,t,createPropertyDescriptor$2(1,r))}:function(e,t,r){return e[t]=r,e},makeBuiltIn$2={exports:{}},DESCRIPTORS$4=descriptors,hasOwn$6=hasOwnProperty_1,FunctionPrototype$1=Function.prototype,getDescriptor=DESCRIPTORS$4&&Object.getOwnPropertyDescriptor,EXISTS=hasOwn$6(FunctionPrototype$1,"name"),PROPER=EXISTS&&"something"===function(){}.name,CONFIGURABLE=EXISTS&&(!DESCRIPTORS$4||getDescriptor(FunctionPrototype$1,"name").configurable),functionName={EXISTS:EXISTS,PROPER:PROPER,CONFIGURABLE:CONFIGURABLE},uncurryThis$c=functionUncurryThis,isCallable$b=isCallable$h,store$1=sharedStore,functionToString=functionUncurryThis(Function.toString),inspectSource$3=(isCallable$b(store$1.inspectSource)||(store$1.inspectSource=function(e){return functionToString(e)}),store$1.inspectSource),global$8=global$f,isCallable$a=isCallable$h,inspectSource$2=inspectSource$3,WeakMap$1=global$f.WeakMap,nativeWeakMap=isCallable$a(WeakMap$1)&&/native code/.test(inspectSource$2(WeakMap$1)),shared$2=shared$4.exports,uid=uid$2,keys=shared$2("keys"),sharedKey$3=function(e){return keys[e]||(keys[e]=uid(e))},hiddenKeys$4={},NATIVE_WEAK_MAP=nativeWeakMap,global$7=global$f,uncurryThis$b=functionUncurryThis,isObject$1=isObject$6,createNonEnumerableProperty$4=createNonEnumerableProperty$5,hasOwn$5=hasOwnProperty_1,shared$1=sharedStore,sharedKey$2=sharedKey$3,hiddenKeys$3=hiddenKeys$4,OBJECT_ALREADY_INITIALIZED="Object already initialized",TypeError$1=global$7.TypeError,WeakMap=global$7.WeakMap,enforce=function(e){return has(e)?get(e):set(e,{})},getterFor=function(t){return function(e){if(isObject$1(e)&&(e=get(e)).type===t)return e;throw TypeError$1("Incompatible receiver, "+t+" required")}},internalState=(has=NATIVE_WEAK_MAP||shared$1.state?(store=shared$1.state||(shared$1.state=new WeakMap),wmget=uncurryThis$b(store.get),wmhas=uncurryThis$b(store.has),wmset=uncurryThis$b(store.set),set=function(e,t){if(wmhas(store,e))throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);return t.facade=e,wmset(store,e,t),t},get=function(e){return wmget(store,e)||{}},function(e){return wmhas(store,e)}):(STATE=sharedKey$2("state"),hiddenKeys$3[STATE]=!0,set=function(e,t){if(hasOwn$5(e,STATE))throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);return t.facade=e,createNonEnumerableProperty$4(e,STATE,t),t},get=function(e){return hasOwn$5(e,STATE)?e[STATE]:{}},function(e){return hasOwn$5(e,STATE)}),{set:set,get:get,has:has,enforce:enforce,getterFor:getterFor}),fails$b=fails$i,isCallable$9=isCallable$h,hasOwn$4=hasOwnProperty_1,DESCRIPTORS$3=descriptors,CONFIGURABLE_FUNCTION_NAME$1=functionName.CONFIGURABLE,inspectSource$1=inspectSource$3,InternalStateModule$1=internalState,enforceInternalState=InternalStateModule$1.enforce,getInternalState$2=InternalStateModule$1.get,defineProperty$4=Object.defineProperty,CONFIGURABLE_LENGTH=DESCRIPTORS$3&&!fails$b(function(){return 8!==defineProperty$4(function(){},"length",{value:8}).length}),TEMPLATE=String(String).split("String"),makeBuiltIn$1=makeBuiltIn$2.exports=function(e,t,r){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!hasOwn$4(e,"name")||CONFIGURABLE_FUNCTION_NAME$1&&e.name!==t)&&(DESCRIPTORS$3?defineProperty$4(e,"name",{value:t,configurable:!0}):e.name=t),CONFIGURABLE_LENGTH&&r&&hasOwn$4(r,"arity")&&e.length!==r.arity&&defineProperty$4(e,"length",{value:r.arity});try{r&&hasOwn$4(r,"constructor")&&r.constructor?DESCRIPTORS$3&&defineProperty$4(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}r=enforceInternalState(e);return hasOwn$4(r,"source")||(r.source=TEMPLATE.join("string"==typeof t?t:"")),e},isCallable$8=(Function.prototype.toString=makeBuiltIn$1(function(){return isCallable$9(this)&&getInternalState$2(this).source||inspectSource$1(this)},"toString"),isCallable$h),definePropertyModule$3=objectDefineProperty,makeBuiltIn=makeBuiltIn$2.exports,defineGlobalProperty$1=defineGlobalProperty$3,defineBuiltIn$4=function(e,t,r,n){var s=(n=n||{}).enumerable,o=void 0!==n.name?n.name:t;if(isCallable$8(r)&&makeBuiltIn(r,o,n),n.global)s?e[t]=r:defineGlobalProperty$1(t,r);else{try{n.unsafe?e[t]&&(s=!0):delete e[t]}catch(e){}s?e[t]=r:definePropertyModule$3.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e},objectGetOwnPropertyNames={},ceil=Math.ceil,floor=Math.floor,mathTrunc=Math.trunc||function(e){e=+e;return(0<e?floor:ceil)(e)},trunc=mathTrunc,toIntegerOrInfinity$3=function(e){e=+e;return e!=e||0==e?0:trunc(e)},toIntegerOrInfinity$2=toIntegerOrInfinity$3,max$1=Math.max,min$2=Math.min,toAbsoluteIndex$2=function(e,t){e=toIntegerOrInfinity$2(e);return e<0?max$1(e+t,0):min$2(e,t)},toIntegerOrInfinity$1=toIntegerOrInfinity$3,min$1=Math.min,toLength$2=function(e){return 0<e?min$1(toIntegerOrInfinity$1(e),9007199254740991):0},toLength$1=toLength$2,lengthOfArrayLike$2=function(e){return toLength$1(e.length)},toIndexedObject$3=toIndexedObject$5,toAbsoluteIndex$1=toAbsoluteIndex$2,lengthOfArrayLike$1=lengthOfArrayLike$2,createMethod$2=function(a){return function(e,t,r){var n,s=toIndexedObject$3(e),o=lengthOfArrayLike$1(s),i=toAbsoluteIndex$1(r,o);if(a&&t!=t){for(;i<o;)if((n=s[i++])!=n)return!0}else for(;i<o;i++)if((a||i in s)&&s[i]===t)return a||i||0;return!a&&-1}},arrayIncludes={includes:createMethod$2(!0),indexOf:createMethod$2(!1)},uncurryThis$a=functionUncurryThis,hasOwn$3=hasOwnProperty_1,toIndexedObject$2=toIndexedObject$5,indexOf$1=arrayIncludes.indexOf,hiddenKeys$2=hiddenKeys$4,push$1=uncurryThis$a([].push),objectKeysInternal=function(e,t){var r,n=toIndexedObject$2(e),s=0,o=[];for(r in n)!hasOwn$3(hiddenKeys$2,r)&&hasOwn$3(n,r)&&push$1(o,r);for(;t.length>s;)!hasOwn$3(n,r=t[s++])||~indexOf$1(o,r)||push$1(o,r);return o},enumBugKeys$3=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],internalObjectKeys$1=objectKeysInternal,enumBugKeys$2=enumBugKeys$3,hiddenKeys$1=enumBugKeys$3.concat("length","prototype"),objectGetOwnPropertySymbols=(objectGetOwnPropertyNames.f=Object.getOwnPropertyNames||function(e){return internalObjectKeys$1(e,hiddenKeys$1)},{}),getBuiltIn$2=(objectGetOwnPropertySymbols.f=Object.getOwnPropertySymbols,getBuiltIn$5),uncurryThis$9=functionUncurryThis,getOwnPropertyNamesModule=objectGetOwnPropertyNames,getOwnPropertySymbolsModule$1=objectGetOwnPropertySymbols,anObject$7=anObject$9,concat$1=functionUncurryThis([].concat),ownKeys$1=getBuiltIn$2("Reflect","ownKeys")||function(e){var t=getOwnPropertyNamesModule.f(anObject$7(e)),r=getOwnPropertySymbolsModule$1.f;return r?concat$1(t,r(e)):t},hasOwn$2=hasOwnProperty_1,ownKeys=ownKeys$1,getOwnPropertyDescriptorModule=objectGetOwnPropertyDescriptor,definePropertyModule$2=objectDefineProperty,copyConstructorProperties$1=function(e,t,r){for(var n=ownKeys(t),s=definePropertyModule$2.f,o=getOwnPropertyDescriptorModule.f,i=0;i<n.length;i++){var a=n[i];hasOwn$2(e,a)||r&&hasOwn$2(r,a)||s(e,a,o(t,a))}},fails$a=fails$i,isCallable$7=isCallable$h,replacement=/#|\.prototype\./,isForced$1=function(e,t){e=data[normalize(e)];return e==POLYFILL||e!=NATIVE&&(isCallable$7(t)?fails$a(t):!!t)},normalize=isForced$1.normalize=function(e){return String(e).replace(replacement,".").toLowerCase()},data=isForced$1.data={},NATIVE=isForced$1.NATIVE="N",POLYFILL=isForced$1.POLYFILL="P",isForced_1=isForced$1,global$6=global$f,getOwnPropertyDescriptor=objectGetOwnPropertyDescriptor.f,createNonEnumerableProperty$3=createNonEnumerableProperty$5,defineBuiltIn$3=defineBuiltIn$4,defineGlobalProperty=defineGlobalProperty$3,copyConstructorProperties=copyConstructorProperties$1,isForced=isForced_1,_export=function(e,t){var r,n,s,o=e.target,i=e.global,a=e.stat,l=i?global$6:a?global$6[o]||defineGlobalProperty(o,{}):(global$6[o]||{}).prototype;if(l)for(r in t){if(n=t[r],s=e.dontCallGetSet?(s=getOwnPropertyDescriptor(l,r))&&s.value:l[r],!isForced(i?r:o+(a?".":"#")+r,e.forced)&&void 0!==s){if(typeof n==typeof s)continue;copyConstructorProperties(n,s)}(e.sham||s&&s.sham)&&createNonEnumerableProperty$3(n,"sham",!0),defineBuiltIn$3(l,r,n,e)}},internalObjectKeys=objectKeysInternal,enumBugKeys$1=enumBugKeys$3,objectKeys$2=Object.keys||function(e){return internalObjectKeys(e,enumBugKeys$1)},DESCRIPTORS$2=descriptors,uncurryThis$8=functionUncurryThis,call$5=functionCall,fails$9=fails$i,objectKeys$1=objectKeys$2,getOwnPropertySymbolsModule=objectGetOwnPropertySymbols,propertyIsEnumerableModule=objectPropertyIsEnumerable,toObject$1=toObject$3,IndexedObject=indexedObject,$assign=Object.assign,defineProperty$3=Object.defineProperty,concat=uncurryThis$8([].concat),objectAssign=!$assign||fails$9(function(){if(DESCRIPTORS$2&&1!==$assign({b:1},$assign(defineProperty$3({},"a",{enumerable:!0,get:function(){defineProperty$3(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol(),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach(function(e){t[e]=e}),7!=$assign({},e)[r]||objectKeys$1($assign({},t)).join("")!=n})?function(e,t){for(var r=toObject$1(e),n=arguments.length,s=1,o=getOwnPropertySymbolsModule.f,i=propertyIsEnumerableModule.f;s<n;)for(var a,l=IndexedObject(arguments[s++]),c=o?concat(objectKeys$1(l),o(l)):objectKeys$1(l),u=c.length,p=0;p<u;)a=c[p++],DESCRIPTORS$2&&!call$5(i,l,a)||(r[a]=l[a]);return r}:$assign,$$3=_export,assign=objectAssign,wellKnownSymbol$9=(_export({target:"Object",stat:!0,arity:2,forced:Object.assign!==assign},{assign:assign}),wellKnownSymbol$b),TO_STRING_TAG$3=wellKnownSymbol$b("toStringTag"),test={},toStringTagSupport=(test[TO_STRING_TAG$3]="z","[object z]"===String(test)),TO_STRING_TAG_SUPPORT=toStringTagSupport,isCallable$6=isCallable$h,classofRaw=classofRaw$1,wellKnownSymbol$8=wellKnownSymbol$b,TO_STRING_TAG$2=wellKnownSymbol$b("toStringTag"),$Object$1=Object,CORRECT_ARGUMENTS="Arguments"==classofRaw(function(){return arguments}()),tryGet=function(e,t){try{return e[t]}catch(e){}},classof$4=TO_STRING_TAG_SUPPORT?classofRaw:function(e){var t;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(t=tryGet(e=$Object$1(e),TO_STRING_TAG$2))?t:CORRECT_ARGUMENTS?classofRaw(e):"Object"==(t=classofRaw(e))&&isCallable$6(e.callee)?"Arguments":t},classof$3=classof$4,$String$1=String,toString$5=function(e){if("Symbol"===classof$3(e))throw TypeError("Cannot convert a Symbol value to a string");return $String$1(e)},anObject$6=anObject$9,regexpFlags$1=function(){var e=anObject$6(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},fails$8=fails$i,global$5=global$f,$RegExp$2=global$f.RegExp,UNSUPPORTED_Y$2=fails$8(function(){var e=$RegExp$2("a","y");return e.lastIndex=2,null!=e.exec("abcd")}),MISSED_STICKY=UNSUPPORTED_Y$2||fails$8(function(){return!$RegExp$2("a","y").sticky}),BROKEN_CARET=UNSUPPORTED_Y$2||fails$8(function(){var e=$RegExp$2("^r","gy");return e.lastIndex=2,null!=e.exec("str")}),regexpStickyHelpers={BROKEN_CARET:BROKEN_CARET,MISSED_STICKY:MISSED_STICKY,UNSUPPORTED_Y:UNSUPPORTED_Y$2},objectDefineProperties={},DESCRIPTORS$1=descriptors,V8_PROTOTYPE_DEFINE_BUG=v8PrototypeDefineBug,definePropertyModule$1=objectDefineProperty,anObject$5=anObject$9,toIndexedObject$1=toIndexedObject$5,objectKeys=objectKeys$2,getBuiltIn$1=(objectDefineProperties.f=DESCRIPTORS$1&&!V8_PROTOTYPE_DEFINE_BUG?Object.defineProperties:function(e,t){anObject$5(e);for(var r,n=toIndexedObject$1(t),s=objectKeys(t),o=s.length,i=0;i<o;)definePropertyModule$1.f(e,r=s[i++],n[r]);return e},getBuiltIn$5),html$1=getBuiltIn$5("document","documentElement"),anObject$4=anObject$9,definePropertiesModule=objectDefineProperties,enumBugKeys=enumBugKeys$3,hiddenKeys=hiddenKeys$4,html=html$1,documentCreateElement$1=documentCreateElement$2,sharedKey$1=sharedKey$3,GT=">",LT="<",PROTOTYPE="prototype",SCRIPT="script",IE_PROTO$1=sharedKey$3("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(e){return LT+SCRIPT+GT+e+LT+"/"+SCRIPT+GT},NullProtoObjectViaActiveX=function(e){e.write(scriptTag("")),e.close();var t=e.parentWindow.Object;return e=null,t},NullProtoObjectViaIFrame=function(){var e=documentCreateElement$1("iframe"),t="java"+SCRIPT+":";return e.style.display="none",html.appendChild(e),e.src=String(t),(t=e.contentWindow.document).open(),t.write(scriptTag("document.F=Object")),t.close(),t.F},NullProtoObject=function(){try{activeXDocument=new ActiveXObject("htmlfile")}catch(e){}NullProtoObject="undefined"==typeof document||document.domain&&activeXDocument?NullProtoObjectViaActiveX(activeXDocument):NullProtoObjectViaIFrame();for(var e=enumBugKeys.length;e--;)delete NullProtoObject[PROTOTYPE][enumBugKeys[e]];return NullProtoObject()},objectCreate=(hiddenKeys[IE_PROTO$1]=!0,Object.create||function(e,t){var r;return null!==e?(EmptyConstructor[PROTOTYPE]=anObject$4(e),r=new EmptyConstructor,EmptyConstructor[PROTOTYPE]=null,r[IE_PROTO$1]=e):r=NullProtoObject(),void 0===t?r:definePropertiesModule.f(r,t)}),fails$7=fails$i,global$4=global$f,$RegExp$1=global$f.RegExp,regexpUnsupportedDotAll=fails$7(function(){var e=$RegExp$1(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)}),fails$6=fails$i,global$3=global$f,$RegExp=global$f.RegExp,regexpUnsupportedNcg=fails$6(function(){var e=$RegExp("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}),call$4=functionCall,uncurryThis$7=functionUncurryThis,toString$4=toString$5,regexpFlags=regexpFlags$1,stickyHelpers$1=regexpStickyHelpers,shared=shared$4.exports,create$2=objectCreate,getInternalState$1=internalState.get,UNSUPPORTED_DOT_ALL=regexpUnsupportedDotAll,UNSUPPORTED_NCG=regexpUnsupportedNcg,nativeReplace=shared("native-string-replace",String.prototype.replace),nativeExec=RegExp.prototype.exec,patchedExec=nativeExec,charAt$2=uncurryThis$7("".charAt),indexOf=uncurryThis$7("".indexOf),replace$1=uncurryThis$7("".replace),stringSlice$2=uncurryThis$7("".slice),UPDATES_LAST_INDEX_WRONG=function(){var e=/a/,t=/b*/g;return call$4(nativeExec,e,"a"),call$4(nativeExec,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),UNSUPPORTED_Y$1=stickyHelpers$1.BROKEN_CARET,NPCG_INCLUDED=void 0!==/()??/.exec("")[1],PATCH=UPDATES_LAST_INDEX_WRONG||NPCG_INCLUDED||UNSUPPORTED_Y$1||UNSUPPORTED_DOT_ALL||UNSUPPORTED_NCG,regexpExec$3=patchedExec=PATCH?function(e){var t,r,n,s,o,i,a=this,l=getInternalState$1(a),e=toString$4(e),c=l.raw;if(c)return c.lastIndex=a.lastIndex,p=call$4(patchedExec,c,e),a.lastIndex=c.lastIndex,p;var u=l.groups,c=UNSUPPORTED_Y$1&&a.sticky,p=call$4(regexpFlags,a),l=a.source,d=0,$=e;if(c&&(p=replace$1(p,"y",""),-1===indexOf(p,"g")&&(p+="g"),$=stringSlice$2(e,a.lastIndex),0<a.lastIndex&&(!a.multiline||a.multiline&&"\n"!==charAt$2(e,a.lastIndex-1))&&(l="(?: "+l+")",$=" "+$,d++),t=new RegExp("^(?:"+l+")",p)),NPCG_INCLUDED&&(t=new RegExp("^"+l+"$(?!\\s)",p)),UPDATES_LAST_INDEX_WRONG&&(r=a.lastIndex),n=call$4(nativeExec,c?t:a,$),c?n?(n.input=stringSlice$2(n.input,d),n[0]=stringSlice$2(n[0],d),n.index=a.lastIndex,a.lastIndex+=n[0].length):a.lastIndex=0:UPDATES_LAST_INDEX_WRONG&&n&&(a.lastIndex=a.global?n.index+n[0].length:r),NPCG_INCLUDED&&n&&1<n.length&&call$4(nativeReplace,n[0],t,function(){for(s=1;s<arguments.length-2;s++)void 0===arguments[s]&&(n[s]=void 0)}),n&&u)for(n.groups=o=create$2(null),s=0;s<u.length;s++)o[(i=u[s])[0]]=n[i[1]];return n}:patchedExec,$$2=_export,exec$3=regexpExec$3,NATIVE_BIND=(_export({target:"RegExp",proto:!0,forced:/./.exec!==exec$3},{exec:exec$3}),functionBindNative),FunctionPrototype=Function.prototype,apply$1=FunctionPrototype.apply,call$3=FunctionPrototype.call,functionApply="object"==typeof Reflect&&Reflect.apply||(NATIVE_BIND?call$3.bind(apply$1):function(){return call$3.apply(apply$1,arguments)}),uncurryThis$6=functionUncurryThis,defineBuiltIn$2=defineBuiltIn$4,regexpExec$2=regexpExec$3,fails$5=fails$i,wellKnownSymbol$7=wellKnownSymbol$b,createNonEnumerableProperty$2=createNonEnumerableProperty$5,SPECIES$1=wellKnownSymbol$7("species"),RegExpPrototype=RegExp.prototype,fixRegexpWellKnownSymbolLogic=function(r,e,t,n){var i,s=wellKnownSymbol$7(r),a=!fails$5(function(){var e={};return e[s]=function(){return 7},7!=""[r](e)}),o=a&&!fails$5(function(){var e=!1,t=/a/;return"split"===r&&((t={constructor:{}}).constructor[SPECIES$1]=function(){return t},t.flags="",t[s]=/./[s]),t.exec=function(){return e=!0,null},t[s](""),!e});a&&o&&!t||(i=uncurryThis$6(/./[s]),o=e(s,""[r],function(e,t,r,n,s){var e=uncurryThis$6(e),o=t.exec;return o===regexpExec$2||o===RegExpPrototype.exec?a&&!s?{done:!0,value:i(t,r,n)}:{done:!0,value:e(r,t,n)}:{done:!1}}),defineBuiltIn$2(String.prototype,r,o[0]),defineBuiltIn$2(RegExpPrototype,s,o[1])),n&&createNonEnumerableProperty$2(RegExpPrototype[s],"sham",!0)},isObject=isObject$6,classof$2=classofRaw$1,wellKnownSymbol$6=wellKnownSymbol$b,MATCH=wellKnownSymbol$b("match"),isRegexp=function(e){var t;return isObject(e)&&(void 0!==(t=e[MATCH])?!!t:"RegExp"==classof$2(e))},uncurryThis$5=functionUncurryThis,fails$4=fails$i,isCallable$5=isCallable$h,classof$1=classof$4,getBuiltIn=getBuiltIn$5,inspectSource=inspectSource$3,noop=function(){},empty=[],construct=getBuiltIn$5("Reflect","construct"),constructorRegExp=/^\s*(?:class|function)\b/,exec$2=uncurryThis$5(constructorRegExp.exec),INCORRECT_TO_STRING=!constructorRegExp.exec(noop),isConstructorModern=function(e){if(!isCallable$5(e))return!1;try{return construct(noop,empty,e),!0}catch(e){return!1}},isConstructorLegacy=function(e){if(!isCallable$5(e))return!1;switch(classof$1(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return INCORRECT_TO_STRING||!!exec$2(constructorRegExp,inspectSource(e))}catch(e){return!0}},isConstructor$1=(isConstructorLegacy.sham=!0,!construct||fails$4(function(){var e;return isConstructorModern(isConstructorModern.call)||!isConstructorModern(Object)||!isConstructorModern(function(){e=!0})||e})?isConstructorLegacy:isConstructorModern),isConstructor=isConstructor$1,tryToString=tryToString$2,$TypeError$2=TypeError,aConstructor$1=function(e){if(isConstructor(e))return e;throw $TypeError$2(tryToString(e)+" is not a constructor")},anObject$3=anObject$9,aConstructor=aConstructor$1,wellKnownSymbol$5=wellKnownSymbol$b,SPECIES=wellKnownSymbol$b("species"),speciesConstructor$1=function(e,t){var e=anObject$3(e).constructor;return void 0===e||null==(e=anObject$3(e)[SPECIES])?t:aConstructor(e)},uncurryThis$4=functionUncurryThis,toIntegerOrInfinity=toIntegerOrInfinity$3,toString$3=toString$5,requireObjectCoercible$2=requireObjectCoercible$5,charAt$1=uncurryThis$4("".charAt),charCodeAt=uncurryThis$4("".charCodeAt),stringSlice$1=uncurryThis$4("".slice),createMethod$1=function(s){return function(e,t){var r,e=toString$3(requireObjectCoercible$2(e)),t=toIntegerOrInfinity(t),n=e.length;return t<0||n<=t?s?"":void 0:(r=charCodeAt(e,t))<55296||56319<r||t+1===n||(n=charCodeAt(e,t+1))<56320||57343<n?s?charAt$1(e,t):r:s?stringSlice$1(e,t,t+2):n-56320+(r-55296<<10)+65536}},stringMultibyte={codeAt:createMethod$1(!1),charAt:createMethod$1(!0)},charAt=stringMultibyte.charAt,advanceStringIndex$1=function(e,t,r){return t+(r?charAt(e,t).length:1)},toPropertyKey=toPropertyKey$3,definePropertyModule=objectDefineProperty,createPropertyDescriptor$1=createPropertyDescriptor$4,createProperty$1=function(e,t,r){t=toPropertyKey(t);t in e?definePropertyModule.f(e,t,createPropertyDescriptor$1(0,r)):e[t]=r},toAbsoluteIndex=toAbsoluteIndex$2,lengthOfArrayLike=lengthOfArrayLike$2,createProperty=createProperty$1,$Array=Array,max=Math.max,arraySliceSimple=function(e,t,r){for(var n=lengthOfArrayLike(e),s=toAbsoluteIndex(t,n),o=toAbsoluteIndex(void 0===r?n:r,n),i=$Array(max(o-s,0)),a=0;s<o;s++,a++)createProperty(i,a,e[s]);return i.length=a,i},call$2=functionCall,anObject$2=anObject$9,isCallable$4=isCallable$h,classof=classofRaw$1,regexpExec$1=regexpExec$3,$TypeError$1=TypeError,regexpExecAbstract=function(e,t){var r=e.exec;if(isCallable$4(r))return null!==(r=call$2(r,e,t))&&anObject$2(r),r;if("RegExp"===classof(e))return call$2(regexpExec$1,e,t);throw $TypeError$1("RegExp#exec called on incompatible receiver")},apply=functionApply,call$1=functionCall,uncurryThis$3=functionUncurryThis,fixRegExpWellKnownSymbolLogic=fixRegexpWellKnownSymbolLogic,isRegExp=isRegexp,anObject$1=anObject$9,requireObjectCoercible$1=requireObjectCoercible$5,speciesConstructor=speciesConstructor$1,advanceStringIndex=advanceStringIndex$1,toLength=toLength$2,toString$2=toString$5,getMethod=getMethod$2,arraySlice=arraySliceSimple,callRegExpExec=regexpExecAbstract,regexpExec=regexpExec$3,stickyHelpers=regexpStickyHelpers,fails$3=fails$i,UNSUPPORTED_Y=regexpStickyHelpers.UNSUPPORTED_Y,MAX_UINT32=4294967295,min=Math.min,$push=[].push,exec$1=uncurryThis$3(/./.exec),push=uncurryThis$3($push),stringSlice=uncurryThis$3("".slice),SPLIT_WORKS_WITH_OVERWRITTEN_EXEC=!fails$3(function(){var e=/(?:)/,t=e.exec,e=(e.exec=function(){return t.apply(this,arguments)},"ab".split(e));return 2!==e.length||"a"!==e[0]||"b"!==e[1]}),wellKnownSymbol$4=(fixRegExpWellKnownSymbolLogic("split",function(s,g,b){var m="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||1<".".split(/()()/).length||"".split(/.?/).length?function(e,t){var r=toString$2(requireObjectCoercible$1(this)),n=void 0===t?MAX_UINT32:t>>>0;if(0===n)return[];if(void 0===e)return[r];if(!isRegExp(e))return call$1(g,r,e,n);for(var s,o,i,a=[],t=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),l=0,c=new RegExp(e.source,t+"g");(s=call$1(regexpExec,c,r))&&!(l<(o=c.lastIndex)&&(push(a,stringSlice(r,l,s.index)),1<s.length&&s.index<r.length&&apply($push,a,arraySlice(s,1)),i=s[0].length,l=o,n<=a.length));)c.lastIndex===s.index&&c.lastIndex++;return l===r.length?!i&&exec$1(c,"")||push(a,""):push(a,stringSlice(r,l)),n<a.length?arraySlice(a,0,n):a}:"0".split(void 0,0).length?function(e,t){return void 0===e&&0===t?[]:call$1(g,this,e,t)}:g;return[function(e,t){var r=requireObjectCoercible$1(this),n=null==e?void 0:getMethod(e,s);return n?call$1(n,e,r,t):call$1(m,toString$2(r),e,t)},function(e,t){var r=anObject$1(this),n=toString$2(e),e=b(m,r,n,t,m!==g);if(e.done)return e.value;var e=speciesConstructor(r,RegExp),s=r.unicode,o=(r.ignoreCase?"i":"")+(r.multiline?"m":"")+(r.unicode?"u":"")+(UNSUPPORTED_Y?"g":"y"),i=new e(UNSUPPORTED_Y?"^(?:"+r.source+")":r,o),a=void 0===t?MAX_UINT32:t>>>0;if(0===a)return[];if(0===n.length)return null===callRegExpExec(i,n)?[n]:[];for(var l=0,c=0,u=[];c<n.length;){i.lastIndex=UNSUPPORTED_Y?0:c;var p,d=callRegExpExec(i,UNSUPPORTED_Y?stringSlice(n,c):n);if(null===d||(p=min(toLength(i.lastIndex+(UNSUPPORTED_Y?c:0)),n.length))===l)c=advanceStringIndex(n,c,s);else{if(push(u,stringSlice(n,l,c)),u.length===a)return u;for(var $=1;$<=d.length-1;$++)if(push(u,d[$]),u.length===a)return u;c=l=p}}return push(u,stringSlice(n,l)),u}]},!SPLIT_WORKS_WITH_OVERWRITTEN_EXEC,UNSUPPORTED_Y),wellKnownSymbol$b),create$1=objectCreate,defineProperty$2=objectDefineProperty.f,UNSCOPABLES=wellKnownSymbol$4("unscopables"),ArrayPrototype=Array.prototype,addToUnscopables$1=(null==ArrayPrototype[UNSCOPABLES]&&defineProperty$2(ArrayPrototype,UNSCOPABLES,{configurable:!0,value:create$1(null)}),function(e){ArrayPrototype[UNSCOPABLES][e]=!0}),iterators={},fails$2=fails$i,correctPrototypeGetter=!fails$i(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),hasOwn$1=hasOwnProperty_1,isCallable$3=isCallable$h,toObject=toObject$3,sharedKey=sharedKey$3,CORRECT_PROTOTYPE_GETTER=correctPrototypeGetter,IE_PROTO=sharedKey$3("IE_PROTO"),$Object=Object,ObjectPrototype=$Object.prototype,objectGetPrototypeOf=CORRECT_PROTOTYPE_GETTER?$Object.getPrototypeOf:function(e){e=toObject(e);if(hasOwn$1(e,IE_PROTO))return e[IE_PROTO];var t=e.constructor;return isCallable$3(t)&&e instanceof t?t.prototype:e instanceof $Object?ObjectPrototype:null},fails$1=fails$i,isCallable$2=isCallable$h,getPrototypeOf$1=objectGetPrototypeOf,defineBuiltIn$1=defineBuiltIn$4,wellKnownSymbol$3=wellKnownSymbol$b,ITERATOR$3=wellKnownSymbol$b("iterator"),BUGGY_SAFARI_ITERATORS$1=!1,NEW_ITERATOR_PROTOTYPE=([].keys&&("next"in(arrayIterator=[].keys())?(PrototypeOfArrayIteratorPrototype=getPrototypeOf$1(getPrototypeOf$1(arrayIterator)))!==Object.prototype&&(IteratorPrototype$2=PrototypeOfArrayIteratorPrototype):BUGGY_SAFARI_ITERATORS$1=!0),null==IteratorPrototype$2||fails$1(function(){var e={};return IteratorPrototype$2[ITERATOR$3].call(e)!==e})),iteratorsCore=(isCallable$2((IteratorPrototype$2=NEW_ITERATOR_PROTOTYPE?{}:IteratorPrototype$2)[ITERATOR$3])||defineBuiltIn$1(IteratorPrototype$2,ITERATOR$3,function(){return this}),{IteratorPrototype:IteratorPrototype$2,BUGGY_SAFARI_ITERATORS:BUGGY_SAFARI_ITERATORS$1}),defineProperty$1=objectDefineProperty.f,hasOwn=hasOwnProperty_1,wellKnownSymbol$2=wellKnownSymbol$b,TO_STRING_TAG$1=wellKnownSymbol$b("toStringTag"),setToStringTag$2=function(e,t,r){(e=e&&!r?e.prototype:e)&&!hasOwn(e,TO_STRING_TAG$1)&&defineProperty$1(e,TO_STRING_TAG$1,{configurable:!0,value:t})},IteratorPrototype$1=iteratorsCore.IteratorPrototype,create=objectCreate,createPropertyDescriptor=createPropertyDescriptor$4,setToStringTag$1=setToStringTag$2,Iterators$2=iterators,returnThis$1=function(){return this},createIteratorConstructor$1=function(e,t,r,n){t+=" Iterator";return e.prototype=create(IteratorPrototype$1,{next:createPropertyDescriptor(+!n,r)}),setToStringTag$1(e,t,!1),Iterators$2[t]=returnThis$1,e},isCallable$1=isCallable$h,$String=String,$TypeError=TypeError,aPossiblePrototype$1=function(e){if("object"==typeof e||isCallable$1(e))return e;throw $TypeError("Can't set "+$String(e)+" as a prototype")},uncurryThis$2=functionUncurryThis,anObject=anObject$9,aPossiblePrototype=aPossiblePrototype$1,objectSetPrototypeOf=Object.setPrototypeOf||("__proto__"in{}?function(){var r,n=!1,e={};try{(r=uncurryThis$2(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(e,[]),n=e instanceof Array}catch(e){}return function(e,t){return anObject(e),aPossiblePrototype(t),n?r(e,t):e.__proto__=t,e}}():void 0),$$1=_export,call=functionCall,FunctionName=functionName,isCallable=isCallable$h,createIteratorConstructor=createIteratorConstructor$1,getPrototypeOf=objectGetPrototypeOf,setPrototypeOf=objectSetPrototypeOf,setToStringTag=setToStringTag$2,createNonEnumerableProperty$1=createNonEnumerableProperty$5,defineBuiltIn=defineBuiltIn$4,wellKnownSymbol$1=wellKnownSymbol$b,Iterators$1=iterators,IteratorsCore=iteratorsCore,PROPER_FUNCTION_NAME=FunctionName.PROPER,CONFIGURABLE_FUNCTION_NAME=FunctionName.CONFIGURABLE,IteratorPrototype=IteratorsCore.IteratorPrototype,BUGGY_SAFARI_ITERATORS=IteratorsCore.BUGGY_SAFARI_ITERATORS,ITERATOR$2=wellKnownSymbol$1("iterator"),KEYS="keys",VALUES="values",ENTRIES="entries",returnThis=function(){return this},defineIterator$1=function(e,t,r,n,s,o,i){createIteratorConstructor(r,t,n);function a(e){if(e===s&&$)return $;if(!BUGGY_SAFARI_ITERATORS&&e in p)return p[e];switch(e){case KEYS:case VALUES:case ENTRIES:return function(){return new r(this,e)}}return function(){return new r(this)}}var l,c,n=t+" Iterator",u=!1,p=e.prototype,d=p[ITERATOR$2]||p["@@iterator"]||s&&p[s],$=!BUGGY_SAFARI_ITERATORS&&d||a(s),g="Array"==t&&p.entries||d;if(g&&(g=getPrototypeOf(g.call(new e)))!==Object.prototype&&g.next&&(getPrototypeOf(g)!==IteratorPrototype&&(setPrototypeOf?setPrototypeOf(g,IteratorPrototype):isCallable(g[ITERATOR$2])||defineBuiltIn(g,ITERATOR$2,returnThis)),setToStringTag(g,n,!0)),PROPER_FUNCTION_NAME&&s==VALUES&&d&&d.name!==VALUES&&(CONFIGURABLE_FUNCTION_NAME?createNonEnumerableProperty$1(p,"name",VALUES):(u=!0,$=function(){return call(d,this)})),s)if(l={values:a(VALUES),keys:o?$:a(KEYS),entries:a(ENTRIES)},i)for(c in l)!BUGGY_SAFARI_ITERATORS&&!u&&c in p||defineBuiltIn(p,c,l[c]);else $$1({target:t,proto:!0,forced:BUGGY_SAFARI_ITERATORS||u},l);return p[ITERATOR$2]!==$&&defineBuiltIn(p,ITERATOR$2,$,{name:s}),Iterators$1[t]=$,l},toIndexedObject=toIndexedObject$5,addToUnscopables=addToUnscopables$1,Iterators=iterators,InternalStateModule=internalState,defineProperty=objectDefineProperty.f,defineIterator=defineIterator$1,DESCRIPTORS=descriptors,ARRAY_ITERATOR="Array Iterator",setInternalState=InternalStateModule.set,getInternalState=InternalStateModule.getterFor(ARRAY_ITERATOR),es_array_iterator=defineIterator(Array,"Array",function(e,t){setInternalState(this,{type:ARRAY_ITERATOR,target:toIndexedObject(e),index:0,kind:t})},function(){var e=getInternalState(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?{value:e.target=void 0,done:!0}:"keys"==r?{value:n,done:!1}:"values"==r?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}},"values"),values=Iterators.Arguments=Iterators.Array;if(addToUnscopables("keys"),addToUnscopables("values"),addToUnscopables("entries"),DESCRIPTORS&&"values"!==values.name)try{defineProperty(values,"name",{value:"values"})}catch(e){}var COLLECTION_NAME,domIterables={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},documentCreateElement=documentCreateElement$2,classList=documentCreateElement$2("span").classList,DOMTokenListPrototype$1=classList&&classList.constructor&&classList.constructor.prototype,domTokenListPrototype=DOMTokenListPrototype$1===Object.prototype?void 0:DOMTokenListPrototype$1,global$2=global$f,DOMIterables=domIterables,DOMTokenListPrototype=domTokenListPrototype,ArrayIteratorMethods=es_array_iterator,createNonEnumerableProperty=createNonEnumerableProperty$5,wellKnownSymbol=wellKnownSymbol$b,ITERATOR$1=wellKnownSymbol("iterator"),TO_STRING_TAG=wellKnownSymbol("toStringTag"),ArrayValues=ArrayIteratorMethods.values,handlePrototype=function(t,e){if(t){if(t[ITERATOR$1]!==ArrayValues)try{createNonEnumerableProperty(t,ITERATOR$1,ArrayValues)}catch(e){t[ITERATOR$1]=ArrayValues}if(t[TO_STRING_TAG]||createNonEnumerableProperty(t,TO_STRING_TAG,e),DOMIterables[e])for(var r in ArrayIteratorMethods)if(t[r]!==ArrayIteratorMethods[r])try{createNonEnumerableProperty(t,r,ArrayIteratorMethods[r])}catch(e){t[r]=ArrayIteratorMethods[r]}}};for(COLLECTION_NAME in DOMIterables)handlePrototype(global$2[COLLECTION_NAME]&&global$2[COLLECTION_NAME].prototype,COLLECTION_NAME);handlePrototype(DOMTokenListPrototype,"DOMTokenList");const useStyles$4=makeStyles()(()=>({active:{background:"rgba(27, 94, 32, 0.2)",color:"rgba(56, 142, 60, 1)",fontSize:"9px",borderRadius:"30px",height:"20px",width:"fit-content",padding:"0px 10px",fontWeight:800},suspended:{background:"rgba(249, 168, 37, 0.2)",color:"rgba(245, 124, 0, 1)",fontSize:"9px",borderRadius:"30px",height:"20px",width:"fit-content",padding:"0px 10px",fontWeight:800},deactivated:{background:"rgba(183, 28, 28, 0.2)",color:"rgba(183, 28, 28, 1)",fontSize:"9px",borderRadius:"30px",height:"20px",width:"fit-content",padding:"0px 10px",fontWeight:800},deleted:{background:"rgba(33, 33, 33, 0.1)",color:"rgba(33, 33, 33, 1)",fontSize:"9px",borderRadius:"30px",height:"20px",width:"fit-content",padding:"0px 10px",fontWeight:800}})),UserStatusBadge=({status:e})=>{var t=useStyles$4()["classes"];return jsxRuntime.exports.jsx(Box$1,Object.assign({className:t[e],"data-testid":"admin-center.users.user-status-badge"},{children:e.toUpperCase()}))},SLICE_NAME$1="adminCenterUsers",PAGE_LIMIT=30;var whitespaces$2="\t\n\v\f\r \u2028\u2029\ufeff",uncurryThis$1=functionUncurryThis,requireObjectCoercible=requireObjectCoercible$5,toString$1=toString$5,whitespaces$1=whitespaces$2,replace=functionUncurryThis("".replace),whitespace="["+whitespaces$1+"]",ltrim=RegExp("^"+whitespace+whitespace+"*"),rtrim=RegExp(whitespace+whitespace+"*$"),createMethod=function(t){return function(e){e=toString$1(requireObjectCoercible(e));return 1&t&&(e=replace(e,ltrim,"")),e=2&t?replace(e,rtrim,""):e}},stringTrim={start:createMethod(1),end:createMethod(2),trim:createMethod(3)},global$1=global$f,fails=fails$i,uncurryThis=functionUncurryThis,toString=toString$5,trim=stringTrim.trim,whitespaces=whitespaces$2,$parseInt$1=global$1.parseInt,Symbol$1=global$1.Symbol,ITERATOR=Symbol$1&&Symbol$1.iterator,hex=/^[+-]?0x/i,exec=uncurryThis(hex.exec),FORCED=8!==$parseInt$1(whitespaces+"08")||22!==$parseInt$1(whitespaces+"0x16")||ITERATOR&&!fails(function(){$parseInt$1(Object(ITERATOR))}),numberParseInt=FORCED?function(e,t){e=trim(toString(e));return $parseInt$1(e,t>>>0||(exec(hex,e)?16:10))}:$parseInt$1,$=_export,$parseInt=numberParseInt;_export({global:!0,forced:parseInt!=numberParseInt},{parseInt:numberParseInt});const namespace$1="adminCenterUsers",avatarColors=["#f94144ff","#f3722cff","#f8961eff","#f9844aff","#f9c74fff","#90be6dff","#43aa8bff","#4d908eff","#577590ff","#277da1ff"];let prevIndex=0;const initialState$1={status:"idle",users:[],offset:0,hasMore:!0},adminCenterSlice=createSlice({name:SLICE_NAME$1+"/"+namespace$1,initialState:initialState$1,reducers:{fetchOrgUsersStart(e){e.status="loading"},fetchOrgUsersSuccess(e,t){e.status="success";const r=[];for(const i of t.payload.records){var n=md5((i.id||"")+(i.email||"")+i.lastLoginDateTime+(i.firstName||""));let e=parseInt(n,16)%avatarColors.length;e===prevIndex&&(e+1>avatarColors.length-1?--e:e+=1),prevIndex=e,r.push(Object.assign(Object.assign({},i),{avatarColor:avatarColors[e]}))}const s=[...e.users,...r];var o=[...new Map(s.map(e=>[e.id,e])).values()];e.users=o,e.hasMore=t.payload.hasMore,e.offset=t.payload.nextOffset},fetchOrgUsersFailure(e){e.status="failure"},removeUserFromOrgStart(e,t){e.status="loading"},removeUserFromOrgSuccess(e,t){e.status="success",e.users=[...e.users].filter(e=>e.id!==t.payload),e.offset=e.offset-1},removeUserFromOrgFailure(e){e.status="failure"},updateUserStatusStart(e,t){e.status="loading"},updateUserStatusSuccess(e,t){e.status="success";var r=e.users.findIndex(e=>e.id===t.payload.id);if(-1!==r){const n=[...e.users];n[r]=Object.assign(Object.assign({},n[r]),{status:t.payload.status}),e.users=n}},updateUserStatusFailure(e){e.status="failure"}}}),actions$1=adminCenterSlice.actions;var AdminCenterView,adminCenterUsers_state=adminCenterSlice.reducer;const actions$2={[namespace$1]:actions$1},rootReducer$1=combineReducers({[namespace$1]:adminCenterUsers_state});function __awaiter$1(e,i,a,l){return new(a=a||Promise)(function(r,t){function n(e){try{o(l.next(e))}catch(e){t(e)}}function s(e){try{o(l.throw(e))}catch(e){t(e)}}function o(e){var t;e.done?r(e.value):((t=e.value)instanceof a?t:new a(function(e){e(t)})).then(n,s)}o((l=l.apply(e,i||[])).next())})}function fetchOrgUsers(t,r,n){return __awaiter$1(this,void 0,void 0,function*(){var e="fetchOrgUsers";return(yield baseGraphQLApiWithError(Object.assign({query:`
|
|
2
|
+
query ${e} {
|
|
3
|
+
users (offset: ${r}, limit: ${n}) {
|
|
4
|
+
records {
|
|
5
|
+
id
|
|
6
|
+
imageUrl
|
|
7
|
+
firstName
|
|
8
|
+
lastName
|
|
9
|
+
email
|
|
10
|
+
lastLoginDateTime
|
|
11
|
+
status
|
|
12
|
+
organizationGuids
|
|
13
|
+
organization {
|
|
14
|
+
guid
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
12
18
|
}
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
configType
|
|
27
|
-
description
|
|
28
|
-
value
|
|
29
|
-
valueJSON
|
|
30
|
-
configLevel
|
|
31
|
-
required
|
|
32
|
-
secured
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
entityTags {
|
|
36
|
-
tagKey
|
|
37
|
-
tagValue
|
|
38
|
-
}
|
|
39
|
-
ownerOrganizationId
|
|
40
|
-
}`;function getApplicationById(i,o){return __awaiter(this,void 0,void 0,function*(){var e="getApplicationById",t="applications",n={id:o},r=`
|
|
41
|
-
query ${e} ($id: ID!){
|
|
42
|
-
${t} (owned: false, id: $id) {
|
|
43
|
-
${appDetailsResponseFields}
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
`;try{return(yield baseGraphQLApiWithError(Object.assign({query:r,operationName:e,variables:n},i)))[t]}catch(e){throw console.log(e),new Error("Something went wrong while loading app details")}})}function getOrganizationName(n,r){return __awaiter(this,void 0,void 0,function*(){var e="getOrganizationName",t={id:r};try{return yield baseGraphQLApiWithError(Object.assign({query:"\n query getOrganizationName ($id: ID!){\n organization (id: $id) {\n id\n name\n }\n }\n ",operationName:e,variables:t},n))}catch(e){console.log(e)}})}function installApp(n,r){return __awaiter(this,void 0,void 0,function*(){var e="installApp",t=`
|
|
47
|
-
query ${e} ($orgId: ID! $appId: ID! $configs: [ApplicationConfigInput!]) {
|
|
48
|
-
applicationAddToOrg (orgId: $orgId appId: $appId configs: $configs) {
|
|
49
|
-
${appDetailsResponseFields}
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
`;try{return yield baseGraphQLApiWithError(Object.assign({query:t,operationName:e,variables:r},n))}catch(e){console.log(e)}})}function fetchOrgAppUsers(t,n){return __awaiter(this,void 0,void 0,function*(){var e="fetchOrgAppUsers";return(yield baseGraphQLApiWithError(Object.assign({query:"\n query fetchOrgAppUsers($ids: [ID]) {\n users(\n organizationIds: $ids\n status: active\n limit: 5000\n ) {\n records {\n id\n firstName\n lastName\n email\n imageUrl\n roles {\n appName\n id\n name\n }\n createdDateTime\n }\n }\n }\n ",operationName:e,variables:{ids:[n]}},t))).users})}function fetchOrgAppsAndRoles(n,r){return __awaiter(this,void 0,void 0,function*(){var e="fetchOrgAppsAndRoles",t="organization";return(yield baseGraphQLApiWithError(Object.assign({query:"\n query fetchOrgAppsAndRoles($id: ID!){\n organization(id: $id){\n roles(isAppEventRole: false) {\n id\n name\n appName\n description\n }\n }\n }\n ",operationName:e,variables:{id:r}},n)))[t].roles})}function searchOrgUserName(t,n){return __awaiter(this,void 0,void 0,function*(){var e="orgUser";return(yield baseGraphQLApiWithError(Object.assign({query:"\n query orgUser ($name: String){\n users (name: $name status: active) {\n records{\n id\n firstName\n lastName\n email\n imageUrl\n roles {\n appName\n id\n name\n }\n }\n }\n }\n ",operationName:e,variables:{name:n}},t))).users})}function updateApplicationUsers(t,n){return __awaiter(this,void 0,void 0,function*(){var e="updateApplicationUsers";return yield baseGraphQLApiWithError(Object.assign({query:"\n mutation updateApplicationUsers ($input: UpdateUser ){\n updateUser (input: $input){\n id\n }\n }\n ",operationName:e,variables:{input:n}},t))})}function*fetchOwnerOrganization(e,t){let n={};try{var r=(yield call$g(getOrganizationName,e,t))["organization"];n=r}catch(e){n={id:t,name:" "},console.log(e)}return n}function*fetchApplicationDetailsSaga(e){try{var t=yield select(selectApiConfigs),[n]=(yield call$g(getApplicationById,t,e.payload.applicationId)).records,r=yield call$g(fetchOwnerOrganization,t,n.ownerOrganizationId);yield put(actions$1.fetchApplicationSuccess({application:n,organization:r}))}catch(e){yield put(actions$1.fetchApplicationError()),console.log(e)}}function*installAppSaga(e){try{var t=yield select(selectApiConfigs),[n]=(yield call$g(installApp,t,e.payload)).records;yield put(actions$1.installAppSuccess(n))}catch(e){yield put(actions$1.installAppFailure()),console.log(e)}}function*initApplicationUsersSaga(){yield put(actions$1.fetchApplicationRolesStart()),yield put(actions$1.fetchApplicationUsersStart())}function*fetchApplicationUsersSaga(){var e,t;try{var n=yield select(selectApiConfigs),r=yield select(userSelector),i=yield call$g(fetchOrgAppUsers,n,(null==(t=null==(e=null==r?void 0:r.organization)?void 0:e.organizationId)?void 0:t.toString())||"");yield put(actions$1.fetchApplicationUsersSuccess(i.records))}catch(e){yield put(actions$1.fetchApplicationUsersFailure()),console.log(e)}}function*fetchApplicationRolesSaga(){var e,t;try{var n=yield select(selectApiConfigs),r=yield select(userSelector),i=yield call$g(fetchOrgAppsAndRoles,n,(null==(t=null==(e=null==r?void 0:r.organization)?void 0:e.organizationId)?void 0:t.toString())||"");yield put(actions$1.fetchApplicationRolesSuccess(i))}catch(e){yield put(actions$1.fetchApplicationRolesFailure()),console.log(e)}}function*searchUsersSaga(e){try{var t=yield select(selectApiConfigs),n=yield call$g(searchOrgUserName,t,e.payload);yield put(actions$1.searchApplicationUsersSuccess(n.records))}catch(e){yield put(actions$1.searchApplicationUsersFailure()),console.log(e)}}function*saveApplicationUsersSaga(){try{const t=yield select(selectApiConfigs),e=yield select(selectModifiedUsers);yield all(e.map(e=>call$g(updateApplicationUsers,t,e))),yield put(actions$1.saveApplicationUsersSuccess())}catch(e){yield put(actions$1.saveApplicationUsersFailure()),console.log(e)}}function*getApplicationDetailsWatcher(){yield takeEvery$1(actions$1.fetchApplicationStart.type,fetchApplicationDetailsSaga)}function*installAppWatcher(){yield takeEvery$1(actions$1.installAppStart.type,installAppSaga)}function*initApplicationUsersWatcher(){yield takeEvery$1(actions$1.initApplicationUsers.type,initApplicationUsersSaga)}function*fetchApplicationUsersWatcher(){yield takeEvery$1(actions$1.fetchApplicationUsersStart.type,fetchApplicationUsersSaga)}function*fetchApplicationRolesWatcher(){yield takeEvery$1(actions$1.fetchApplicationRolesStart.type,fetchApplicationRolesSaga)}function*searchUsersWatcher(){yield takeEvery$1(actions$1.searchApplicationUsersStart.type,searchUsersSaga)}function*saveApplicationUsersWatcher(){yield takeEvery$1(actions$1.saveApplicationUsersStart.type,saveApplicationUsersSaga)}function*applicationDetailsPanelRootSaga(){yield all([getApplicationDetailsWatcher(),installAppWatcher(),initApplicationUsersWatcher(),fetchApplicationUsersWatcher(),fetchApplicationRolesWatcher(),searchUsersWatcher(),saveApplicationUsersWatcher()])}function getAdminCenterApplicationsModule(){return{id:SLICE_NAME$1,reducerMap:{[SLICE_NAME$1]:rootReducer},sagas:[rootSaga],initialActions:[]}}function getApplicationDetailsPanelModule(){return{id:SLICE_NAME,reducerMap:{[SLICE_NAME]:applicationDetailsPanelReducer},sagas:[applicationDetailsPanelRootSaga],initialActions:[]}}const tabsList$1=[{label:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-applications.lpZXMd",defaultMessage:"All Applications",description:"Admin center all applications label"}),disabled:!1,id:"All Applications"},{label:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-applications.lpZXMy",defaultMessage:"Installed Applications",description:"Admin center installed applications label"}),disabled:!1,id:"Installed Applications"}],ApplicationsTable=()=>{const[r,t]=react.exports.useState(0),[i,o]=react.exports.useState(["",""]),[e,a]=react.exports.useState([]),[n,s]=react.exports.useState([]),l=useSelector(selectIsUserAdmin),c=useSelector(selectInstalledApps),p=useSelector(selectAllApps);var u=useSelector(selectInstalledAppsUiStatus),d=useSelector(selectAllAppsUiStatus);const $=useDispatch(),g=useIntl();var m=g.formatMessage({id:"os-admin-center-panel.applications.search.label",defaultMessage:[{type:0,value:"Search App Name"}]});react.exports.useEffect(()=>{a(p)},[p]),react.exports.useEffect(()=>{s(c)},[c]),react.exports.useEffect(()=>{$(actions.adminCenterApplications.fetchInstalledApplicationsStart()),l&&$(actions.adminCenterApplications.fetchAllApplicationsStart())},[$]);return jsxRuntime.exports.jsxs(React.Fragment,{children:[jsxRuntime.exports.jsxs(Box$1,Object.assign({sx:{borderBottom:"1px solid #e8e8e8",display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center"}},{children:[jsxRuntime.exports.jsx(Box$1,Object.assign({sx:{"& .Sdk-MuiTab-root.Mui-selected":{color:"text.primary",fontWeight:600},width:l?"350px":"180px"}},{children:jsxRuntime.exports.jsx(CustomTabs,{selectedId:r,onChangeTab:e=>{t(e)},tabsList:l?tabsList$1:[tabsList$1[1]]})})),jsxRuntime.exports.jsx(Box$1,Object.assign({sx:{width:"190px",mr:6}},{children:jsxRuntime.exports.jsx(TextField,{sx:{"& fieldset":{borderRadius:"20px"},"& .Sdk-MuiInputBase-root":{height:"30px"}},size:"small",fullWidth:!0,id:"outlined-basic","data-testid":"admin-center-applications-search-app-name-input",variant:"outlined",value:i[r],onChange:e=>{const t=e.target.value,n=i;if(n[r]=t,o(n),!l)return e=c.filter(e=>e.name.toLowerCase().includes(t.toLowerCase())),void s(e);0===r?(e=p.filter(e=>e.name.toLowerCase().includes(i[0].toLowerCase())),a(e)):(e=c.filter(e=>e.name.toLowerCase().includes(i[1].toLowerCase())),s(e))},placeholder:m,InputProps:{startAdornment:jsxRuntime.exports.jsx(InputAdornment,Object.assign({position:"start"},{children:jsxRuntime.exports.jsx(default_1,{})}))}})}))]})),jsxRuntime.exports.jsx(TabPanel,Object.assign({value:r,index:0},{children:l?jsxRuntime.exports.jsx(ApplicationList,{apps:e,uiStatus:d,onRetry:()=>$(actions.adminCenterApplications.fetchAllApplicationsStart()),showInstalledChip:!0,isAppInstalled:t=>-1!==n.findIndex(e=>e.id===t)}):jsxRuntime.exports.jsx(ApplicationList,{apps:n,uiStatus:u,onRetry:()=>$(actions.adminCenterApplications.fetchInstalledApplicationsStart())})})),jsxRuntime.exports.jsx(TabPanel,Object.assign({value:r,index:1},{children:jsxRuntime.exports.jsx(ApplicationList,{apps:n,uiStatus:u,onRetry:()=>$(actions.adminCenterApplications.fetchInstalledApplicationsStart())})}))]})},useStyles$2=makeStyles()(e=>({root:{display:"flex",flexDirection:"column",height:"100%"},header:{display:"flex",justifyContent:"space-between",padding:e.spacing(4),borderBottom:"0.5px solid "+e.palette.divider},tableWrapper:{overflow:"hidden"},toolbar:{alignItems:"baseline","& button svg":{marginRight:"5px"},display:"flex",justifyContent:"center"}}));function ApplicationsTab({}){var e=useStyles$2()["classes"];return jsxRuntime.exports.jsxs("section",Object.assign({className:e.root},{children:[jsxRuntime.exports.jsx("header",Object.assign({className:e.header},{children:jsxRuntime.exports.jsxs(Box$1,Object.assign({sx:{mr:15}},{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"h5","data-testid":"org-applications.header"},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-panel.applications.table.header",defaultMessage:"Applications",description:"Application Header"})})),jsxRuntime.exports.jsx(Typography$1,Object.assign({sx:{mt:1},variant:"subtitle1","data-testid":"org-applications.description"},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-panel.applications.table.description",defaultMessage:"Browse and manage the applications that are enabled for this Organization and its users.",description:"Applications Tab Description"})}))]}))})),jsxRuntime.exports.jsx("div",Object.assign({className:e.tableWrapper},{children:jsxRuntime.exports.jsx(ApplicationsTable,{})}))]}))}var aCallable=aCallable$9,toObject=toObject$5,IndexedObject=indexedObject,lengthOfArrayLike=lengthOfArrayLike$5,$TypeError=TypeError,createMethod$1=function(c){return function(e,t,n,r){aCallable(t);var i=toObject(e),o=IndexedObject(i),a=lengthOfArrayLike(i),s=c?a-1:0,l=c?-1:1;if(n<2)for(;;){if(s in o){r=o[s],s+=l;break}if(s+=l,c?s<0:a<=s)throw $TypeError("Reduce of empty array with no initial value")}for(;c?0<=s:s<a;s+=l)s in o&&(r=t(r,o[s],s,i));return r}},arrayReduce={left:createMethod$1(!1),right:createMethod$1(!0)},$$1=_export,$reduce=arrayReduce.left,arrayMethodIsStrict=arrayMethodIsStrict$2,CHROME_VERSION=engineV8Version,IS_NODE=engineIsNode,STRICT_METHOD=arrayMethodIsStrict$2("reduce"),CHROME_BUG=!IS_NODE&&79<CHROME_VERSION&&CHROME_VERSION<83;$$1({target:"Array",proto:!0,forced:!STRICT_METHOD||CHROME_BUG},{reduce:function(e){var t=arguments.length;return $reduce(this,e,t,1<t?arguments[1]:void 0)}});const useStyles$1=makeStyles()((e,{isEmpty:t})=>({panelRoot:{width:"100%"},panelLoading:{height:300},panelContainer:{display:"flex",flexDirection:"column",width:"100%",padding:e.spacing(2)},panelHeader:{display:"flex",justifyContent:"space-between",alignItems:"center",paddingLeft:e.spacing(1),marginBottom:e.spacing(1),"&.with-secondary-title":{alignItems:"flex-start"}},panelHeaderLine:{minHeight:"16px"},panelContent:{width:"100%"},panelBody:{display:"flex",flexGrow:1},divider:{marginBottom:e.spacing(2)},engineHeader:{minHeight:"120px"},headerInfo:{paddingLeft:e.spacing(4),flexGrow:1},headerOwner:{color:"#0c53b0",minHeight:"16px"},detailInfo:{paddingTop:e.spacing(3)},detailInfoBody:{paddingLeft:e.spacing(4),paddingTop:e.spacing(3)},detailOverview:{paddingTop:e.spacing(6),paddingBottom:e.spacing(6),minHeight:"120px"},sectionTitle:{paddingBottom:e.spacing(3)},textContent:{fontStyle:"normal",fontWeight:400,fontSize:14,lineHeight:20},titleInline:{fontWeight:600,marginRight:e.spacing(1)},contentRow:{paddingBottom:e.spacing(3)},engineDescription:{paddingTop:e.spacing(2),paddingBottom:e.spacing(2)},engineVersion:{paddingLeft:e.spacing(3)},mainLayout:{paddingTop:e.spacing(2)},tabPanels:{width:"100%"},detailHeaderContainer:{paddingLeft:e.spacing(3),paddingTop:e.spacing(2),alignItems:"center"},taskTabPanels:{marginTop:e.spacing(2),paddingLeft:e.spacing(2),paddingRight:e.spacing(2),width:"100%",maxHeight:"160px",maxWidth:"660px",overflow:"auto",background:"#F4F4F4",border:"1px solid #D5DFE9","box-sizing":"border-box","border-radius":"4px"},metricsList:{paddingTop:e.spacing(6)},taskFitlerContainer:{marginTop:e.spacing(4),marginBottom:e.spacing(2),height:"40px",lineHeight:"40px",display:"flex","flex-wrap":"wrap","flex-direction":"row","justify-content":"flex-end"},taskFitlerItem:{marginRight:e.spacing(2)},tabsContainer:{"& .Sdk-Mui-selected":{color:"black"},"& .Sdk-MuiTabs-indicator":{backgroundColor:"#000"}},tabsParent:{padding:e.spacing(0,3,0,3),"& div":{borderBottom:"none"},"& div button":{fontFamily:"Nunito",fontWeight:400,flex:"0 1 auto !important",minWidth:"unset"}},configName:{marginBottom:"4px"},configDescription:{marginBottom:"9px"},configContainer:{paddingLeft:"21px",marginBottom:"21px"},configDivider:{marginTop:"21px"},configInput:{"& input":{borderColor:"#E1E6ED",paddingTop:"18px",paddingBottom:"18px",minWidth:"320px"}},requiredLabel:{color:"#9CA8B4",marginLeft:"6px"},helperText:{paddingLeft:"15px",fontSize:"12px",fontWeight:"bold"},noConfigs:{textAlign:"center",marginTop:"30px","& svg":{width:"160px",height:"160px",marginBottom:"20px"}},uninstallBtn:{marginTop:t?"40px":"0",padding:"8px 15px"},actionButtons:{"& button":{padding:"8px 15px",lineHeight:"20px"},display:"flex",justifyContent:"right"},appSettingsContainer:{display:"flex",justifyContent:"space-between",flexDirection:"column",height:"calc(100vh - 55px - 250px)"}})),useStyles=makeStyles()(e=>({root:{borderRadius:"50%",border:"2px solid #D5DFE9",display:"flex",justifyContent:"center",alignItems:"center",overflow:"hidden"},small:{width:e.spacing(6),height:e.spacing(6)},medium:{width:e.spacing(9),height:e.spacing(9)},large:{width:e.spacing(12),height:e.spacing(12)},xlarge:{width:e.spacing(16),height:e.spacing(16)},logo:{maxWidth:"100%",maxHeight:"100%"},veritoneLogo:{maxWidth:"75%",maxHeight:"75%"}})),Logo=({size:e="xlarge",path:t="",altText:n})=>{var r=useStyles()["classes"],[t,i]=useBackupImg(t,img$1u);return jsxRuntime.exports.jsx("div",Object.assign({className:r.root+" "+r[e]},{children:jsxRuntime.exports.jsx("img",{className:r.logo+" "+(t===img$1u&&r.veritoneLogo),src:t,alt:n,onError:i})}))},getSignedUriPath=n=>{const e=["iconUrl"].map(e=>e);return e.reduce((e,t)=>n[t]||e,void 0)},DetailHeader=({installationConfig:t})=>{const n=useSelector(selectApplication),e=useSelector(selectInstalledApps);var r=e.some(e=>e.id===(null===n||void 0===n?void 0:n.id)),i=useSelector(selectOwnerOrganization);const o=(useSelector(userSelector)||{})["organization"];var a=useStyles$1({})["classes"],s=null==(s=n.entityTags)?void 0:s.map(e=>e.tagKey).join(", "),l=getSignedUriPath(n);const c=useDispatch();return jsxRuntime.exports.jsxs(Box$1,Object.assign({display:"flex",flexDirection:"row",className:a.detailHeaderContainer,"data-testid":"application-details-header"},{children:[jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsx(Logo,{path:l,altText:n.name+" Logo"})}),jsxRuntime.exports.jsxs("div",Object.assign({className:a.headerInfo},{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"h1","data-testid":"application-details-header-name"},{children:n.name})),jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"caption",className:a.headerOwner,"data-testid":"application-details-header-owner"},{children:null==i?void 0:i.name})),jsxRuntime.exports.jsx(Box$1,Object.assign({display:"flex",flexDirection:"row",className:a.panelHeaderLine},{children:jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"caption"},{children:s}))}))]})),jsxRuntime.exports.jsx("div",{children:!r&&jsxRuntime.exports.jsx(Button$1,Object.assign({color:"primary",variant:"contained",onClick:()=>{var e;c(actions$1.installAppStart({appId:n.id,orgId:(null==(e=null===o||void 0===o?void 0:o.organizationId)?void 0:e.toString())||"",configs:t||[]}))}},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"admin-center.applications.install-btn",defaultMessage:"Install App",description:"Install App button label"})}))})]}))},InfoItem=({dataTest:e,title:t,value:n})=>jsxRuntime.exports.jsxs(Grid,Object.assign({item:!0,xs:6},{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"caption","data-testid":`application-details-panel-detail-info-${e}-caption`},{children:t})),jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"h5","data-testid":"application-details-panel-detail-info-"+e},{children:n}))]})),BasicInfo=()=>{var e=useSelector(selectApplication),t=useStyles$1({})["classes"];return jsxRuntime.exports.jsxs(Box$1,Object.assign({"data-test":"application-details-panel-basic-info-content"},{children:[jsxRuntime.exports.jsxs(Box$1,Object.assign({className:t.detailOverview,"data-testid":"application-details-panel-overview"},{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"h3",className:t.sectionTitle},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-applications.application-detail-panel-overview-title",defaultMessage:"Overview",description:"title of the Overview section on the application details panel"})})),jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"h5"},{children:e.description}))]})),jsxRuntime.exports.jsx(Divider,{}),jsxRuntime.exports.jsxs(Box$1,Object.assign({className:t.detailInfo,"data-testid":"application-details-panel-basic-info-details"},{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"h3",className:t.sectionTitle},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-applications.application-detail-panel-basic-info-details-title",defaultMessage:"Information",description:"The title of the Information section in the application details panel basic info"})})),jsxRuntime.exports.jsxs(Grid,Object.assign({container:!0,spacing:4,className:t.detailInfoBody},{children:[jsxRuntime.exports.jsx(InfoItem,{dataTest:"name",title:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-applications.application-detail-panel-info-name-title",defaultMessage:"Name",description:"The title of the name field in the application details panel basic info"}),value:e.name}),jsxRuntime.exports.jsx(InfoItem,{dataTest:"app-id",title:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-applications.application-detail-panel-info-app-id-title",defaultMessage:"App ID",description:"The title of the app id field in the application details panel basic info"}),value:e.id}),jsxRuntime.exports.jsx(InfoItem,{dataTest:"tags",title:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-applications.application-detail-panel-info-tags-title",defaultMessage:"Tags",description:"The title of the tags field in the application details panel basic info"}),value:null==(t=e.entityTags)?void 0:t.map(e=>e.tagKey).join(", ")})]}))]}))]}))},formattedMessages=e=>({fieldIsRequired:e.formatMessage({id:"admin-center-applcations.application-details-panel.settings-tab.required-field-error",defaultMessage:[{type:0,value:"This field is required"}]})}),SettingsTab=({intl:e,setInstallationConfig:t})=>{const n=formattedMessages(e)["fieldIsRequired"],r=useSelector(selectApplication),[i,o]=react.exports.useState([]),[a,s]=react.exports.useState([]),[l,c]=react.exports.useState(!1),p=useStyles$1({isEmpty:0===i.length})["classes"];e=useSelector(betaFeaturesSelector);react.exports.useEffect(()=>{var e;r&&null!=(e=null===r||void 0===r?void 0:r.applicationConfig)&&e.records&&(o(null==(e=null===r||void 0===r?void 0:r.applicationConfig)?void 0:e.records),l||(c(!0),s(null==(e=null===r||void 0===r?void 0:r.applicationConfig)?void 0:e.records)))},[r]);const u=t=>{var e;return null==(e=i.find(e=>e.configKey===t))?void 0:e.value},d=(n,t)=>{const r=i.findIndex(e=>e.configKey===t);-1!==r&&o(e=>{const t=[...e];e=Object.assign(Object.assign({},t[r]),{value:n});return t[r]=e,t})};const $=e=>e.required&&!u(e.configKey);return jsxRuntime.exports.jsxs(Box$1,Object.assign({"data-testid":"application-details-panel.app-settings.container",className:p.appSettingsContainer},{children:[jsxRuntime.exports.jsxs("div",{children:[jsxRuntime.exports.jsxs(Box$1,Object.assign({className:p.detailOverview,"data-test":"application-details-panel-overview"},{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"h3",className:p.sectionTitle},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-applications.application-detail-panel-app-settings-title",defaultMessage:"App Settings",description:"title of the App Settings section on the application details panel"})})),jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"h5"},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-applications.application-detail-panel-basic-info-details-title",defaultMessage:"Set your Organization settings that will be applied to all users of this application.",description:"App settings description text"})}))]})),jsxRuntime.exports.jsxs(Box$1,Object.assign({"data-test":"application-details-panel-app-settings-details"},{children:[i.length?i.map(e=>jsxRuntime.exports.jsxs("div",Object.assign({className:p.configContainer,"data-testid":"application-config-container"},{children:[jsxRuntime.exports.jsxs(Grid,Object.assign({container:!0},{children:[jsxRuntime.exports.jsx(Grid,Object.assign({item:!0},{children:jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"h3",className:p.configName},{children:e.configKey}))})),jsxRuntime.exports.jsx(Grid,Object.assign({item:!0},{children:jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"h3",className:p.requiredLabel},{children:e.required?jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:["(",jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-applications.application-detail-panel-app-settings.required-label",defaultMessage:"Required",description:"Required label for the app config"}),")"]}):null}))}))]})),jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",className:p.configDescription},{children:e.description})),(t=>{switch(t.configType){case EConfigTypes.string:return jsxRuntime.exports.jsx(TextField,{value:u(t.configKey),onChange:e=>d(e.target.value,t.configKey),disabled:t.secured,className:p.configInput,error:$(t),label:$(t)?n:void 0});case EConfigTypes.json:return;case EConfigTypes.boolean:return jsxRuntime.exports.jsx(Switch,{checked:u(t.configKey),disabled:t.secured,onChange:e=>d(e.target.checked,t.configKey)});default:return null}})(e),jsxRuntime.exports.jsx(Divider,{className:p.configDivider})]}),e.configKey)):jsxRuntime.exports.jsxs("div",Object.assign({className:p.noConfigs},{children:[jsxRuntime.exports.jsx(NoApps,{fontSize:"large"}),jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",className:p.helperText},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"admin-center-applications.application-details.no-configs",defaultMessage:"This app does not have any configs.",description:"No Applciation configs"})}))]})),jsxRuntime.exports.jsx("div",{children:e&&jsxRuntime.exports.jsx(Button$1,Object.assign({variant:"outlined",className:p.uninstallBtn,"data-testid":"admin-center-applications-details-uninstall-btn"},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"admin-center-applications.application-details.uninstall-btn",defaultMessage:"Uninstall Application",description:"Uninstall Application button label"})}))})]}))]}),jsxRuntime.exports.jsxs("div",Object.assign({className:p.actionButtons},{children:[jsxRuntime.exports.jsx(Button$1,Object.assign({variant:"text",sx:{color:"black",marginRight:"15px",fontWeight:400},onClick:()=>o(a),"data-testid":"admin-center-applications-details-cancel-button"},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"admin-center-applications.application-details.cancel-btn",defaultMessage:"Cancel",description:"Cancel button label"})})),jsxRuntime.exports.jsx(Button$1,Object.assign({variant:"contained",disabled:lodash.exports.isEqual(a,i)||!!i.find(e=>e.required&&!e.value&&"boolean"!=typeof e.value),onClick:()=>{t(i),s(i)},"data-testid":"admin-center-applications-details-save-button"},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"admin-center-applications.application-details.save-btn",defaultMessage:"Save",description:"Save button label"})}))]}))]}))};var AppSettings=injectIntl(SettingsTab);const AppUsers=()=>jsxRuntime.exports.jsxs(Box$1,Object.assign({display:"flex",alignItems:"center",flexDirection:"column"},{children:[jsxRuntime.exports.jsx(NullState,{header:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-app-users.null-state-header",defaultMessage:"No Application Users",description:"admin center no app users header"}),description:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-app-users.null-state-description",defaultMessage:"This application has no current users, get started by clicking Add Users below.",description:"admin center group no groups description"})}),jsxRuntime.exports.jsxs(Button$1,Object.assign({variant:"outlined",sx:{m:"20px auto",p:"5px 10px"}},{children:[jsxRuntime.exports.jsx(Add,{fontSize:"small",sx:{mr:1}}),jsxRuntime.exports.jsx(Box$1,Object.assign({sx:{pt:"2px"}},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-app-users.add-user-button",defaultMessage:"Add Users",description:"Text of the label add users button"})}))]}))]})),tabsList=[{label:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-applications.application-detail-basic-info",defaultMessage:"Basic Info",description:"the title of the Basic Info tab on the application details panel"}),disabled:!1,id:"application-details-tab-label-basic-info"}],settingsTab={label:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-applications.application-detail.app-settings",defaultMessage:"App Settings",description:"the title of the App Settings tab on the application details panel"}),disabled:!1,id:"application-details-tab-label-app-settings"},appUsersTab={label:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-applications.application-detail.app-users",defaultMessage:"App Users",description:"the title of the App Users tab on the application details panel"}),disabled:!1,id:"application-details-tab-label-app-users"},MainLayout=({setInstallationConfig:e})=>{const t=useSelector(selectApplication),n=useSelector(betaFeaturesSelector),[r,i]=react.exports.useState(0);var o=useStyles$1({})["classes"];const[a,s]=react.exports.useState(tabsList),[l,c]=react.exports.useState(!1);const p=()=>(null===t||void 0===t?void 0:t.status)!==EApplicationStatus.active;return react.exports.useEffect(()=>{p()||l||(c(!0),n?s([...a,appUsersTab,settingsTab]):s([...a,settingsTab]))},[t]),jsxRuntime.exports.jsxs(Box$1,Object.assign({className:o.mainLayout},{children:[jsxRuntime.exports.jsx("div",Object.assign({className:o.tabsContainer,"data-testid":"application-details-panel-tabs-list"},{children:jsxRuntime.exports.jsx("div",Object.assign({className:o.tabsParent},{children:jsxRuntime.exports.jsx(CustomTabs,{selectedId:r,onChangeTab:e=>{i(e)},tabsList:a})}))})),jsxRuntime.exports.jsx(Divider,{className:o.divider}),jsxRuntime.exports.jsxs(Box$1,Object.assign({className:o.tabPanels},{children:[jsxRuntime.exports.jsx(TabPanel,Object.assign({value:r,index:0},{children:jsxRuntime.exports.jsx(BasicInfo,{})})),n&&jsxRuntime.exports.jsx(TabPanel,Object.assign({value:r,index:1},{children:jsxRuntime.exports.jsx(AppUsers,{})})),!p()&&jsxRuntime.exports.jsx(TabPanel,Object.assign({value:r,index:n?2:1},{children:jsxRuntime.exports.jsx(AppSettings,{setInstallationConfig:e})}))]}))]}))},Content=({applicationId:e,initValue:t})=>{var n=useSelector(selectStatus);const r=useDispatch();var i=useStyles$1({})["classes"],[o,a]=(react.exports.useEffect(()=>{e?r(actions$1.fetchApplicationStart({applicationId:e,initValue:t})):t&&r(actions$1.setInitialApplicationValue(t))},[r,e,t]),react.exports.useState([]));return n===Status.loading&&jsxRuntime.exports.jsxs(Container,Object.assign({className:i.panelLoading},{children:[jsxRuntime.exports.jsx(Skeleton,{variant:"rectangular",animation:"wave",width:400,height:200}),jsxRuntime.exports.jsx(Divider,{sx:{my:2}}),jsxRuntime.exports.jsx(Skeleton,{variant:"rectangular",animation:"wave",width:960,height:300})]}))||n===Status.success&&jsxRuntime.exports.jsxs(Container,Object.assign({className:i.panelContent},{children:[jsxRuntime.exports.jsx(DetailHeader,{installationConfig:o}),jsxRuntime.exports.jsx(MainLayout,{setInstallationConfig:a})]}))||n===Status.failure&&jsxRuntime.exports.jsx(Container,{children:jsxRuntime.exports.jsx(ErrorState,{onRetry:()=>{r(actions$1.fetchApplicationStart({applicationId:e,initValue:t}))},errorMessage:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-applications.application-details-panel-error-message",defaultMessage:"Something went wrong while loading your application details.",description:"error message shown when the application details panel encounters a load error"})})})||jsxRuntime.exports.jsx(Container,{children:"Please wait..."})},PanelContainer$1=({children:e})=>{const t=useDispatch();var n=useStyles$1({})["classes"];return jsxRuntime.exports.jsx("div",Object.assign({className:n.panelRoot,"data-testid":"application-details-panel"},{children:jsxRuntime.exports.jsxs("div",Object.assign({className:n.panelContainer},{children:[jsxRuntime.exports.jsxs("div",Object.assign({className:n.panelHeader},{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({"data-testid":"application-details-panel-title",variant:"h1"},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-applications.detail-panel-title",defaultMessage:"Application Details",description:"The title of the Application Details panel"})})),jsxRuntime.exports.jsx(Tooltip,Object.assign({title:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-applications.detail-panel-close",defaultMessage:"Close Panel",description:"The title of the Application Details panel close button"})},{children:jsxRuntime.exports.jsx(IconButton,Object.assign({onClick:()=>{t(hidePanel("APPLICATION_DETAILS_PANEL"))},"aria-labelledby":"group-details-close-panel","data-testid":"group-details-close-panel",size:"large"},{children:jsxRuntime.exports.jsx(Hide,{})}))}))]})),jsxRuntime.exports.jsx("div",Object.assign({className:n.panelBody},{children:e}))]}))}))},ApplicationDetailsPanel=({applicationId:e,initValue:t})=>jsxRuntime.exports.jsx(AIWareThemeProvider,{children:jsxRuntime.exports.jsx(lib.DynamicModuleLoader,Object.assign({modules:[getApplicationDetailsPanelModule()]},{children:jsxRuntime.exports.jsx(AIWareIntlProvider,{children:jsxRuntime.exports.jsx(CacheProvider,Object.assign({value:muiCache},{children:jsxRuntime.exports.jsx(PanelContainer$1,{children:jsxRuntime.exports.jsx(Content,{applicationId:e,initValue:t})})}))})}))}),styles$1=makeStyles()(e=>({root:{display:"flex",flexDirection:"column",height:"calc(100vh - 55px - 10px)",alignItems:"stretch"},addUsers:{padding:e.spacing(0,6)},titleDescription:{color:"#5C6269",fontWeight:400,maxWidth:"463px",marginTop:e.spacing(1)},usersTitle:{fontWeight:400,color:"#2A323C",padding:e.spacing(4,0,1)},addUsersSubTitle:{color:"#5C6269",fontWeight:400},panelContent:{display:"flex",flexDirection:"column",flexGrow:1,padding:e.spacing(0,6,0,6),overflowY:"auto"},btnContainer:{alignItems:"end",display:"flex",justifyContent:"flex-end",marginTop:"12px",marginBottom:"30px",marginRight:"20px"},buttons:{marginRight:"10px"},headerActionContainer:{alignItems:"center",display:"flex",flexGrow:1,height:"100%",justifyContent:"flex-end"},header:{alignItems:"center",display:"flex",justifyContent:"space-between",padding:e.spacing(0,0,0,6)},headerTitle:{color:"#2A323C"},autocomplete:{"& .Sdk-MuiAutocomplete-tag":{fontWeight:500,background:"#FFFFFF",boxShadow:"0px 1px 1px rgba(0, 0, 0, 0.06), 0px 2px 6px rgba(0, 0, 0, 0.15)",height:"30px",border:"none"},"& .Sdk-MuiChip-deleteIcon":{fill:"#555F7C",width:"15px",height:"15px"}},renderMember:{display:"flex",justifyContent:"space-between",alignItems:"center",fontSize:"12px"},renderAvatar:{height:"20px",width:"20px",marginRight:"5px",fontSize:"10px"},memberInfoContainer:{display:"flex",justifyContent:"space-between",padding:"10px",marginBottom:"13px",height:"30px !important"},member:{display:"flex"},memberAvatar:{border:"2px solid #FFFFFF",height:"35px",width:"35px",marginRight:"14px"},groupMembersName:{width:"100%",height:"52px",margin:"20px auto"},currentMember:{display:"flex",alignItems:"center",color:e.palette.text.disabled,paddingRight:e.spacing(2),lineHeight:"20px"},listContainer:{display:"flex",flexDirection:"column"}}));var whitespaces$2="\t\n\v\f\r \u2028\u2029\ufeff",uncurryThis=functionUncurryThis,requireObjectCoercible=requireObjectCoercible$4,toString=toString$4,whitespaces$1=whitespaces$2,replace=functionUncurryThis("".replace),whitespace="["+whitespaces$1+"]",ltrim=RegExp("^"+whitespace+whitespace+"*"),rtrim=RegExp(whitespace+whitespace+"*$"),createMethod=function(t){return function(e){e=toString(requireObjectCoercible(e));return 1&t&&(e=replace(e,ltrim,"")),e=2&t?replace(e,rtrim,""):e}},stringTrim={start:createMethod(1),end:createMethod(2),trim:createMethod(3)},PROPER_FUNCTION_NAME=functionName.PROPER,fails=fails$h,whitespaces=whitespaces$2,non="
",stringTrimForced=function(e){return fails(function(){return!!whitespaces[e]()||non[e]()!==non||PROPER_FUNCTION_NAME&&whitespaces[e].name!==e})},$=_export,$trim=stringTrim.trim,forcedStringTrimMethod=stringTrimForced;$({target:"String",proto:!0,forced:stringTrimForced("trim")},{trim:function(){return $trim(this)}});const isSelectReason=(e,t)=>"selectOption"===e,formattedName$1=e=>{var t;return""+(null==(t=null==(t=e.firstName)?void 0:t.charAt(0))?void 0:t.toUpperCase())+(null==(e=null==(t=e.lastName)?void 0:t.charAt(0))?void 0:e.toUpperCase())},UserSearch=()=>{var[e]=react.exports.useState(null);const[t,n]=react.exports.useState(!1),r=styles$1()["classes"],i=useIntl(),o=useDispatch(),a=useSelector(selectAllUsers);var s=useSelector(selectUserSearchResults),l=useSelector(selectUsersStatus);const c=t=>!!a.find(e=>e.id===t),p=i.formatMessage({id:"os-admin-center-applications.add-users.add-users-placeholder",defaultMessage:[{type:0,value:"Search for people in this Organization"}]});const u=lodash.exports.debounce(e=>{e=e.target.value.trim();3<=e.length&&o(actions$1.searchApplicationUsersStart(e))},300);return jsxRuntime.exports.jsx(Autocomplete,{value:e,freeSolo:!0,clearOnBlur:!0,open:t,onOpen:()=>{n(!0)},onClose:()=>{n(!1)},openOnFocus:!0,loading:"loading"===l,loadingText:"success"===l?jsxRuntime.exports.jsx(Skeleton,{variant:"rectangular",height:35,"data-testid":"applications-add-user-autocomplete-skeleton-loading"}):jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2","data-testid":"applications-add-user-autocomplete-no-records-were-found"},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-applications.add-user.autocomplete-no-records-were-found-message",defaultMessage:"No records were found",description:"No records were found message"})})),id:"tags-outlined",options:s,getOptionLabel:e=>e.firstName+" "+e.lastName,onChange:(e,t,n)=>{isSelectReason(n)&&o(actions$1.selectUser(t))},limitTags:0,renderTags:(e,t)=>e.map(()=>null),renderOption:(e,t)=>null!=t&&t.email?react.exports.createElement("li",Object.assign({},e,{onClick:c(t.id)?()=>{}:e.onClick,key:t.email,className:r.memberInfoContainer,style:{cursor:c(t.id)?"default":"pointer"},"data-testid":"applications-add-user-lookup-option"}),jsxRuntime.exports.jsxs(Box$1,Object.assign({className:r.member},{children:[t.imageUrl?jsxRuntime.exports.jsx(Avatar,{alt:t.firstName,src:t.imageUrl,className:r.memberAvatar,sx:{cursor:"pointer"}}):jsxRuntime.exports.jsx(Avatar,Object.assign({className:r.memberAvatar},{children:formattedName$1(t)})),jsxRuntime.exports.jsxs(Box$1,{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({sx:{cursor:c(t.id)?"default":"pointer"},variant:"h3","data-testid":"applications-add-user-suggestion-name"},{children:t.firstName+" "+t.lastName})),jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2","data-testid":"applications-add-user-suggestion-email"},{children:t.email}))]})]})),c(null==t?void 0:t.id)&&jsxRuntime.exports.jsx(Typography$1,Object.assign({className:r.currentMember,variant:"subtitle2","data-testid":"applications-add-user-lookup-current-user"},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-applications.add-user.current-user-label",defaultMessage:"Current User",description:"current user label for application"})}))):jsxRuntime.exports.jsx("li",{children:"No users found"}),renderInput:e=>jsxRuntime.exports.jsx(TextField,Object.assign({},e,{id:"application-users-description","data-testid":"admin-center-applications-add-user-description",InputLabelProps:{shrink:!0},inputProps:Object.assign(Object.assign({},e.inputProps),{value:t?e.inputProps.value:"",onKeyDown:e=>{"Enter"===e.key&&e.stopPropagation()}}),placeholder:p,className:r.groupMembersName,onChange:u})),className:r.autocomplete})},styles=makeStyles()(e=>({container:{},listContainer:{display:"flex",flexDirection:"column"},divider:{width:"100%"},userContainer:{display:"flex",cursor:"pointer"},clickDisabled:{cursor:"not-allowed"},defaultOrgBadge:{borderRadius:"2px",height:"16px",backgroundColor:"#F4F4F4",border:"0.5px solid #9CA8B4",color:"#5C6269",marginLeft:e.spacing(2.8),padding:e.spacing(.2,2),"& >span":{padding:0}},userName:{display:"inline-block",fontSize:"13px!important",fontWeight:"600!important",lineHeight:"12px"},userSubtitle:{fontSize:"11px!important",fontWeight:400,lineHeight:"16px",opacity:.7},textContainer:{display:"flex","& > .Sdk-MuiListItemText-root":{display:"flex",flexDirection:"column",justifyContent:"center"}},actionContainer:{display:"flex",flexDirection:"column"},userAvatar:{border:"2px solid #FFFFFF",height:"35px",width:"35px",marginRight:"14px"},roleSelect:{color:"black",fontWeight:400,fontSize:"12px",width:"140px",maxHeight:"36px",paddingTop:"1px",transform:"translateY(1px)",marginRight:"14px","& fieldset":{border:"1px solid #D5DFE9"}}})),NO_ROLE="NO_ROLE",formattedName=e=>{var t;return""+(null==(t=null==(t=e.firstName)?void 0:t.charAt(0))?void 0:t.toUpperCase())+(null==(e=null==(t=e.lastName)?void 0:t.charAt(0))?void 0:e.toUpperCase())},getApplicationRole=(t="",e)=>{e=e.find(e=>e.appName===t);return(null==e?void 0:e.id)||NO_ROLE},UserListItem=({id:t,lastItem:e})=>{var n=useSelector(selectUser(t));const r=useSelector(selectApplicationRoles);var i=useSelector(selectApplicationKey),o=react.exports.useRef(getApplicationRole(i,n.roles));const[a,s]=react.exports.useState(getApplicationRole(i,n.roles)),l=useDispatch();i=styles().classes;return jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsxs(ListItem,Object.assign({className:i.container,disableGutters:!0},{children:[jsxRuntime.exports.jsxs("div",Object.assign({className:i.userContainer},{children:[jsxRuntime.exports.jsx(ListItemAvatar,{children:n.imageUrl?jsxRuntime.exports.jsx(Avatar,{alt:n.firstName,src:n.imageUrl,className:i.userAvatar,sx:{cursor:"pointer"}}):jsxRuntime.exports.jsx(Avatar,Object.assign({className:i.userAvatar},{children:formattedName(n)}))}),jsxRuntime.exports.jsx("span",Object.assign({className:i.textContainer},{children:jsxRuntime.exports.jsx(ListItemText,{primary:jsxRuntime.exports.jsxs(Typography$1,Object.assign({variant:"body1",className:i.userName},{children:[n.firstName," ",n.lastName]})),secondary:jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"subtitle2",className:i.userSubtitle},{children:n.email}))})}))]})),jsxRuntime.exports.jsx(ListItemSecondaryAction,{children:jsxRuntime.exports.jsx("div",Object.assign({className:i.actionContainer},{children:jsxRuntime.exports.jsxs(Select,Object.assign({value:a,onChange:e=>{e=e.target.value;s(e),l(actions$1.updateApplicationUserRole({userId:t,roleId:e}))},className:i.roleSelect},{children:[o.current===NO_ROLE&&jsxRuntime.exports.jsx(MenuItem,Object.assign({value:NO_ROLE},{children:"No Role"}),NO_ROLE),r.map(e=>jsxRuntime.exports.jsx(MenuItem,Object.assign({value:e.id},{children:e.name}),e.id))]}))}))})]})),!e&&jsxRuntime.exports.jsx(Divider,{className:i.divider})]})},UserList=()=>{const n=useSelector(selectUserIds);var e=styles$1()["classes"];return jsxRuntime.exports.jsx("div",Object.assign({className:e.listContainer},{children:jsxRuntime.exports.jsx(List,{children:n.map((e,t)=>jsxRuntime.exports.jsx(UserListItem,{id:e,lastItem:t===n.length-1},e))})}))},PANEL_ID="ADD_APPLICATION_USERS_PANEL",PanelContent=({applicationId:e,applicationKey:t})=>{const n=useDispatch();return react.exports.useEffect(()=>{n(actions$1.initApplicationUsers({applicationId:e,applicationKey:t}))},[n,e,t]),jsxRuntime.exports.jsxs(Container,{children:[jsxRuntime.exports.jsx(UserSearch,{}),jsxRuntime.exports.jsx(UserList,{})]})},PanelContainer=({children:e})=>{var t=styles$1()["classes"],n=useSelector(selectModifiedUsers);const r=useDispatch();var i=()=>{r(hidePanel(PANEL_ID))};return jsxRuntime.exports.jsxs(Container,Object.assign({className:t.root},{children:[jsxRuntime.exports.jsxs("header",Object.assign({className:t.header},{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"h1",className:t.headerTitle},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"admin-center-applications.add-user-panel.title",defaultMessage:"Add Users",description:"title of the Add Users panel"})})),jsxRuntime.exports.jsx("div",Object.assign({className:t.headerActionContainer},{children:jsxRuntime.exports.jsx(Tooltip,Object.assign({title:jsxRuntime.exports.jsx(FormattedMessage,{id:"admin-center-applications.add-user-panel.close",defaultMessage:"Close Panel",description:"tooltip message on the add user panel for the close panel button"})},{children:jsxRuntime.exports.jsx(IconButton,Object.assign({size:"large",onClick:i},{children:jsxRuntime.exports.jsx(default_1$1,{})}))}))}))]})),jsxRuntime.exports.jsx("div",Object.assign({className:t.addUsers},{children:jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",className:t.titleDescription},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"admin-center-applications.add-user-panel.subtitle",defaultMessage:"Add Users to this Application by giving them an application role.",description:"the subtitle of the add users panel"})}))})),jsxRuntime.exports.jsx("div",Object.assign({className:t.panelContent},{children:e})),jsxRuntime.exports.jsxs("div",Object.assign({className:t.btnContainer},{children:[jsxRuntime.exports.jsx(Button$1,Object.assign({color:"inherit",onClick:i,className:t.buttons},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"admin-center-applications.add-user.cancel-button",defaultMessage:"Cancel",description:"the cancel button on the admin center applications add users panel"})})),jsxRuntime.exports.jsx(Button$1,Object.assign({color:"primary",variant:"contained",disabled:0===n.length,onClick:()=>{r(actions$1.saveApplicationUsersStart())}},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"admin-center-applications.add-user.save-button",defaultMessage:"Save",description:"the save button on the admin center applications add users panel"})}))]}))]}))},AddUsersPanel=({applicationId:e,applicationKey:t})=>jsxRuntime.exports.jsx(AIWareThemeProvider,{children:jsxRuntime.exports.jsx(AIWareIntlProvider,{children:jsxRuntime.exports.jsx(lib.DynamicModuleLoader,Object.assign({modules:[getApplicationDetailsPanelModule()]},{children:jsxRuntime.exports.jsx(PanelContainer,{children:jsxRuntime.exports.jsx(PanelContent,{applicationId:e,applicationKey:t})})}))})});export{AddUsersPanel,ApplicationDetailsPanel,ApplicationsTab,Content,PanelContainer$1 as PanelContainer,actions,getAdminCenterApplicationsModule,getApplicationDetailsPanelModule,initialState,namespace,rootReducer};
|
|
19
|
+
`,operationName:e},t))).users})}function removeUserFromOrg(r,n,s){return __awaiter$1(this,void 0,void 0,function*(){var e="removeUserFromOrg",t="removeUserFromOrg";return(yield baseGraphQLApiWithError(Object.assign({query:`
|
|
20
|
+
mutation ${e} {
|
|
21
|
+
${t} (userId: "${n}", organizationGuid: "${s}") {
|
|
22
|
+
id
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
`,operationName:e},r)))[t]})}function updateUserStatus(r,n,s){return __awaiter$1(this,void 0,void 0,function*(){var e="updateUserStatus",t="updateUserStatus";return(yield baseGraphQLApiWithError(Object.assign({query:`
|
|
26
|
+
mutation ${e} {
|
|
27
|
+
${t} (input: {id: "${n}" status: ${s}}) {
|
|
28
|
+
id
|
|
29
|
+
status
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
`,operationName:e},r)))[t]})}const selectOrgUsers=e=>{var{users:e,hasMore:t,offset:r}=null==(e=null==e?void 0:e[SLICE_NAME$1])?void 0:e[namespace$1];return{users:e,hasMore:t,offset:r}},selectStatus=e=>{return null==(e=null==e?void 0:e[SLICE_NAME$1])?void 0:e[namespace$1].status};function*fetchUsersSaga(e){try{var t,r=yield select(selectApiConfigs),{offset:n,hasMore:s}=yield select(selectOrgUsers);s&&(t=(yield fetchOrgUsers(r,n,PAGE_LIMIT))["records"],yield put(actions$2.adminCenterUsers.fetchOrgUsersSuccess({records:t,hasMore:PAGE_LIMIT===t.length,nextOffset:n+PAGE_LIMIT})))}catch(e){console.log(e),yield put(actions$2.adminCenterUsers.fetchOrgUsersFailure())}}function*removeUserFromOrgSaga(e){var{userId:e,orgGuid:t}=e.payload;try{var r=(yield removeUserFromOrg(yield select(selectApiConfigs),e,t))["id"];yield put(actions$2.adminCenterUsers.removeUserFromOrgSuccess(r||""))}catch(e){console.log(e),yield put(actions$2.adminCenterUsers.removeUserFromOrgFailure())}}function*updateUserStatusSaga(e){var{userId:e,status:t}=e.payload;try{var{id:r,status:n}=yield updateUserStatus(yield select(selectApiConfigs),e,t);r&&n&&(yield put(actions$2.adminCenterUsers.updateUserStatusSuccess({id:r,status:n})))}catch(e){console.log(e),yield put(actions$2.adminCenterUsers.updateUserStatusFailure())}}function*fetchUsersWatcher(){yield takeEvery$1(actions$2.adminCenterUsers.fetchOrgUsersStart.type,fetchUsersSaga)}function*removeUserFromOrgWatcher(){yield takeEvery$1(actions$2.adminCenterUsers.removeUserFromOrgStart.type,removeUserFromOrgSaga)}function*updateUserStatusWatcher(){yield takeEvery$1(actions$2.adminCenterUsers.updateUserStatusStart.type,updateUserStatusSaga)}function*rootSaga$1(){yield all([fetchUsersWatcher(),removeUserFromOrgWatcher(),updateUserStatusWatcher()])}function getAdminCenterUsersModule(){return{id:SLICE_NAME$1,reducerMap:{[SLICE_NAME$1]:rootReducer$1},sagas:[rootSaga$1],initialActions:[]}}const useStyles$3=makeStyles()(e=>({menuList:{width:e.spacing(34),padding:e.spacing(1.5)},menuItem:{borderRadius:4,padding:e.spacing(1),"& > svg":{marginRight:e.spacing(2)},textTransform:"none"}})),UserRowContextMenu=({anchorEl:e,id:t,open:r,onClose:n,userId:s,disableRemoval:o,orgGuid:i,status:a})=>{var l=useStyles$3()["classes"];const c=useDispatch();return jsxRuntime.exports.jsx(Popover,Object.assign({anchorEl:e,id:t,open:r,onClose:n,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"right"}},{children:jsxRuntime.exports.jsxs(MenuList,Object.assign({role:"menu",className:l.menuList,"data-testid":"admin-center-user.menu"},{children:[jsxRuntime.exports.jsx(MenuItem,Object.assign({"data-testid":"admin-center-user.menu-item.status-update",onClick:()=>{c(actions$2.adminCenterUsers.updateUserStatusStart({userId:s,status:"deactivated"===a?"active":"deactivated"}))},className:l.menuItem,"data-test":"context-menu-item",sx:{cursor:"pointer"}},{children:"deactivated"===a?jsxRuntime.exports.jsx(FormattedMessage,{id:"ac-users.user-row.activate-btn",defaultMessage:"Activate",description:"Activate button in the user row context menu"}):jsxRuntime.exports.jsx(FormattedMessage,{id:"ac-users.user-row.deactivate-btn",defaultMessage:"Deactivate",description:"Deactivate button in the user row context menu"})})),jsxRuntime.exports.jsx(MenuItem,Object.assign({onClick:()=>{c(actions$2.adminCenterUsers.removeUserFromOrgStart({userId:s,orgGuid:i}))},className:l.menuItem,"data-test":"context-menu-item",disabled:o,sx:{cursor:o?"not-allowed":"pointer"},"data-testid":"admin-center-user.menu-item.remove-from-org"},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"ac-users.user-row.remove-from-org-btn",defaultMessage:"Remove from Org",description:"Remove from Org button in the user row context menu"})}))]}))}))},useStyles$2$1=makeStyles()((e,{})=>({userAvatar:{border:"2px solid #FFFFFF",height:"40px",width:"40px",marginRight:"14px",fontSize:"14px",color:"white"},row:{padding:"13px"},userName:{alignSelf:"center"},truncate:{paddingRight:"20px","& p":{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}}})),UserRow=({user:{id:e,imageUrl:t,firstName:r,lastName:n,email:s,lastLoginDateTime:o,status:i,organizationGuids:a=[],organization:l,avatarColor:c}})=>{var u=useStyles$2$1({status:i})["classes"];const[p,d]=react.exports.useState(null);var $=p?"contextMenuId-"+e:void 0;return jsxRuntime.exports.jsxs("div",Object.assign({"data-testid":"ac-user-row-"+e},{children:[jsxRuntime.exports.jsxs(Grid,Object.assign({direction:"row",justifyContent:"space-between",alignItems:"center",item:!0,container:!0,xs:12,"data-testid":"admin-center-org-user-row",className:u.row},{children:[jsxRuntime.exports.jsxs(Grid,Object.assign({sx:{display:"flex"},xs:4,item:!0,className:u.truncate,"data-testid":"admin-center-org-user.avatar-name-col"},{children:[t?jsxRuntime.exports.jsx(Avatar,{alt:r+" "+n,src:t,className:u.userAvatar}):jsxRuntime.exports.jsx(Avatar,Object.assign({className:u.userAvatar,sx:{background:c}},{children:(t=n||"",""+(null==(c=null==(c=r||"")?void 0:c.charAt(0))?void 0:c.toUpperCase())+(null==(c=null==t?void 0:t.charAt(0))?void 0:c.toUpperCase()))})),jsxRuntime.exports.jsx(Tooltip,Object.assign({title:r+" "+n,arrow:!0},{children:jsxRuntime.exports.jsx(Typography,Object.assign({className:u.userName,variant:"body2",sx:{fontWeight:400},"data-testid":"admin-center-org-user.user-name"},{children:r+" "+n}))}))]})),jsxRuntime.exports.jsx(Grid,Object.assign({xs:3,item:!0,className:u.truncate,"data-testid":"admin-center-org-user.email-col"},{children:jsxRuntime.exports.jsx(Tooltip,Object.assign({title:s||"",arrow:!0},{children:jsxRuntime.exports.jsx(Typography,Object.assign({variant:"body2",sx:{fontWeight:400}},{children:s}))}))})),jsxRuntime.exports.jsx(Grid,Object.assign({xs:3,item:!0,"data-testid":"admin-center-org-user.last-login-col"},{children:o&&jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx(Typography,Object.assign({variant:"body2",sx:{mb:"-6px",fontWeight:400}},{children:new Date(o).toLocaleDateString()})),jsxRuntime.exports.jsx(Typography,Object.assign({variant:"caption"},{children:(e=>{const t=e.toLocaleTimeString().split(" ");return t[0]=t[0].split(":"),t[0].pop(),t[0]=t[0].join(":"),t[0]+" "+t[1]})(new Date(o))}))]})})),jsxRuntime.exports.jsx(Grid,Object.assign({xs:1,item:!0,"data-testid":"admin-center-org-user.status-col"},{children:jsxRuntime.exports.jsx(UserStatusBadge,{status:i})})),jsxRuntime.exports.jsxs(Grid,Object.assign({xs:1,sx:{textAlign:"end"},item:!0,"data-testid":"admin-center-org-user.menu-col"},{children:[jsxRuntime.exports.jsx(IconButton,Object.assign({"data-testid":"user-row-menu-button-"+e,onClick:e=>d(e.currentTarget),size:"small"},{children:jsxRuntime.exports.jsx(MoreVert,{fontSize:"small"})})),jsxRuntime.exports.jsx(UserRowContextMenu,{anchorEl:p,id:$,open:!!p,onClose:()=>d(null),disableRemoval:a.length<2,userId:e||"",orgGuid:(null==l?void 0:l.guid)||"",status:i,"data-testid":"admin-center-org-user.menu-icon"})]}))]})),jsxRuntime.exports.jsx(Divider,{})]}))},useStyles$1$1=makeStyles()(e=>({root:{height:"100%"},loader:{display:"flex",marginTop:e.spacing(1),justifyContent:"center"}})),UserTable=()=>{const{users:r=[],hasMore:t}=useSelector(selectOrgUsers),e=useSelector(selectStatus),s=useDispatch(),n=useStyles$1$1()["classes"],o=(react.exports.useEffect(()=>{s(actions$1.fetchOrgUsersStart())},[s]),e=>!t||e<r.length),i=t?r.length+1:r.length,a=({index:e,style:t})=>o(e)?jsxRuntime.exports.jsx("div",Object.assign({style:Object.assign({},t)},{children:jsxRuntime.exports.jsx(UserRow,{user:r[e]})}),e):jsxRuntime.exports.jsx("div",Object.assign({"data-test":"users-table-row-loader",style:Object.assign(Object.assign({},t),{top:0}),className:n.loader},{children:jsxRuntime.exports.jsx(CircularProgress,{size:36})}));return jsxRuntime.exports.jsxs("div",Object.assign({className:n.root},{children:[jsxRuntime.exports.jsxs(Grid,Object.assign({direction:"row",justifyContent:"space-between",alignItems:"center",item:!0,container:!0,xs:12,"data-testid":"admin-center-org-user-table-header",sx:{pl:"13px",pr:"13px"}},{children:[jsxRuntime.exports.jsx(Grid,Object.assign({xs:4,item:!0},{children:jsxRuntime.exports.jsx(Typography,Object.assign({variant:"caption"},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"ac-user-table.header.name-col",defaultMessage:"Name",description:"Name column header"})}))})),jsxRuntime.exports.jsx(Grid,Object.assign({xs:3,item:!0},{children:jsxRuntime.exports.jsx(Typography,Object.assign({variant:"caption"},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"ac-user-table.header.email-col",defaultMessage:"Email",description:"Email column header"})}))})),jsxRuntime.exports.jsx(Grid,Object.assign({xs:3,item:!0},{children:jsxRuntime.exports.jsx(Typography,Object.assign({variant:"caption"},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"ac-user-table.header.last-login-col",defaultMessage:"Last Login",description:"Last Login column header"})}))})),jsxRuntime.exports.jsx(Grid,Object.assign({xs:1,item:!0},{children:jsxRuntime.exports.jsx(Typography,Object.assign({variant:"caption"},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"ac-user-table.header.status-col",defaultMessage:"Status",description:"Status column header"})}))})),jsxRuntime.exports.jsx(Grid,{xs:1,item:!0})]})),jsxRuntime.exports.jsx(Divider,{}),"failure"===e?jsxRuntime.exports.jsx(ErrorState,{onRetry:()=>s(actions$1.fetchOrgUsersStart()),errorMessage:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center.users.error-message",defaultMessage:"Something went wrong while loading user list.",description:"Admin Center Users table loading error"})}):jsxRuntime.exports.jsx(AutoSizer,{children:({height:r,width:n})=>jsxRuntime.exports.jsx(InfiniteLoader,Object.assign({isItemLoaded:o,itemCount:i,loadMoreItems:()=>{"success"===e&&s(actions$1.fetchOrgUsersStart())}},{children:({onItemsRendered:e,ref:t})=>jsxRuntime.exports.jsx("div",Object.assign({"data-testid":"list-wrapper"},{children:jsxRuntime.exports.jsx(VariableSizeList,Object.assign({height:r-40,itemCount:i,itemSize:()=>60,initialScrollOffset:0,onItemsRendered:e,ref:t,width:n},{children:a}))}))}))})]}))},inviteUsersPanel="INVITE_USERS_PANEL",inviteRequestsPanel="INVITE_REQUESTS_PANEL",handleClickInviteUsers=(e,t)=>{var r={name:inviteUsersPanel,config:{name:"Invite Users"}},t={type:"APP_BAR_PANEL_TEMPLATE",marginTop:t?0:55,marginStart:t?0:80,size:"medium",zIndex:t?1010:1001,parentPanelId:"ADMIN_CENTER_BROWSE",dimmed:0,dimmedStatus:"dimParent"};e(mountPanel({panelId:inviteUsersPanel,microFrontend:r,panelConfig:t}))},handleViewRequests=(e,t)=>{var r={name:inviteRequestsPanel,config:{name:"Invite Requests"}},t={type:"APP_BAR_PANEL_TEMPLATE",marginTop:t?0:55,marginStart:t?0:80,size:"medium",zIndex:t?1010:1001,parentPanelId:"ADMIN_CENTER_BROWSE",dimmed:0,dimmedStatus:"dimParent",header:{title:jsxRuntime.exports.jsx(FormattedMessage,{id:"admin-center.users.button.invite-requests",defaultMessage:"Invite Requests",description:"Invite Requests header title"})}};e(mountPanel({panelId:inviteRequestsPanel,microFrontend:r,panelConfig:t}))},useStyles$5=makeStyles()(e=>({root:{display:"flex",flexDirection:"column"},header:{display:"flex",justifyContent:"space-between",padding:e.spacing(4),borderBottom:"0.5px solid "+e.palette.divider,"& button":{height:"28px"}},tableWrapper:{height:"calc(100vh - 55px - 64px - 69px - 22px)",overflow:"hidden"},toolbar:{alignItems:"baseline","& button svg":{marginRight:"5px"},display:"flex",justifyContent:"center"},addUserBtn:{"& svg":{marginRight:"10px",height:"14px",width:"14px"}}})),UsersPanel=({isPanelFullScreen:e})=>{var t=useStyles$5()["classes"];const r=useDispatch();var n=useSelector(organizations_selector.selectPendingOrgInvites);const s=useSelector(userSelector);react.exports.useEffect(()=>{r(actions$3.organizationInvitesState.fetchPendingInvitesStart(s.organization.organizationId))},[]);n=jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx("section",Object.assign({className:t.root},{children:jsxRuntime.exports.jsxs("header",Object.assign({className:t.header},{children:[jsxRuntime.exports.jsx(Box$1,Object.assign({sx:{mr:15,display:"flex",verticalAlign:"center","& h5":{lineHeight:"28px"}}},{children:jsxRuntime.exports.jsx(Typography,Object.assign({variant:"h5","data-testid":"org-applications.header"},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-panel.users.table.header",defaultMessage:"Users",description:"Users Header"})}))})),jsxRuntime.exports.jsxs(Box$1,{children:[jsxRuntime.exports.jsxs(Button,Object.assign({variant:"outlined",onClick:()=>handleViewRequests(r,e)},{children:[jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-panel.users.user-requests.btn",defaultMessage:"User Requests",description:"User Requests tab button"})," ","(",n.length,")"]})),jsxRuntime.exports.jsxs(Button,Object.assign({variant:"contained",sx:{ml:"13px"},className:t.addUserBtn,onClick:()=>handleClickInviteUsers(r,e)},{children:[jsxRuntime.exports.jsx(AddUser,{}),jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-panel.users.invite-user.btn",defaultMessage:"Invite User",description:"Invite User tab button"})]}))]})]}))})),jsxRuntime.exports.jsx("div",Object.assign({className:t.tableWrapper},{children:jsxRuntime.exports.jsx(UserTable,{})}))]});return e?jsxRuntime.exports.jsx(AIWareThemeProvider,{children:n}):n},useStyles$2=(!function(){var e={};try{if(process)return process.env=Object.assign({},process.env),Object.assign(process.env,e)}catch(e){}globalThis.process={env:e}}(),makeStyles()((e,{height:t})=>({header:{alignItems:"center",borderBottom:"0.5px solid "+e.palette.divider,display:"flex",height:t,padding:e.spacing(2),position:"relative"},title:{minWidth:"126px"},marginRight:{marginRight:e.spacing(2)},navigationToggle:{marginRight:e.spacing(1)},headerActionContainer:{alignItems:"center",display:"flex",flexGrow:1,height:"100%",justifyContent:"flex-end"},verticalDivider:{borderRight:".5px solid "+e.palette.divider,height:"70%",margin:"0 "+e.spacing(1)}}))),Header=({hidePanel:e,isNavExpanded:t,onLeftNavigationToggle:r,onFullScreenToggle:n,isFullScreen:s,height:o})=>{o=useStyles$2({height:o}).classes;return jsxRuntime.exports.jsxs("header",Object.assign({className:o.header,"data-test":"ac-header"},{children:[jsxRuntime.exports.jsx(Tooltip,Object.assign({title:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-browse.navigation.menu",defaultMessage:"Toggle Navigation Menu",description:"Toggle Navigation Menu"})},{children:jsxRuntime.exports.jsx(IconButton,Object.assign({sx:{mr:1},onClick:r,"aria-expanded":t,"aria-labelledby":"ac-header-toggle-nav","data-test":"ac-header-toggle-nav",size:"large"},{children:jsxRuntime.exports.jsx(Hamburger,{})}))})),jsxRuntime.exports.jsx(Typography,Object.assign({variant:"h1",className:o.title,"data-test":"ac-title"},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-browse.header.title",defaultMessage:"Admin Center",description:"Panel header of the admin center"})})),jsxRuntime.exports.jsxs("div",Object.assign({className:o.headerActionContainer},{children:[jsxRuntime.exports.jsx("div",{className:o.verticalDivider}),jsxRuntime.exports.jsx(Tooltip,Object.assign({title:s?jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-browse.close.full.screen",defaultMessage:"Exit Fullscreen",description:"Exit Fullscreen"}):jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-browse.open.full.screen",defaultMessage:"Enter Fullscreen",description:"Enter Fullscreen"})},{children:jsxRuntime.exports.jsx(IconButton,Object.assign({onClick:n,"aria-labelledby":"ac-toggle-fullscreen","data-test":"ac-fullscreen-toggle",size:"large"},{children:s?jsxRuntime.exports.jsx(FullscreenExit,{}):jsxRuntime.exports.jsx(Fullscreen,{})}))})),jsxRuntime.exports.jsx(Tooltip,Object.assign({title:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-browse.close.panel",defaultMessage:"Close Panel",description:"Close Panel"})},{children:jsxRuntime.exports.jsx(IconButton,Object.assign({onClick:e,"aria-labelledby":"ac-close-panel","data-test-id":"ac-close-panel",size:"large"},{children:jsxRuntime.exports.jsx(Hide,{})}))}))]}))]}))};function __rest(e,t){var r={};for(s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(r[s]=e[s]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,s=Object.getOwnPropertySymbols(e);n<s.length;n++)t.indexOf(s[n])<0&&Object.prototype.propertyIsEnumerable.call(e,s[n])&&(r[s[n]]=e[s[n]]);return r}function __awaiter(e,i,a,l){return new(a=a||Promise)(function(r,t){function n(e){try{o(l.next(e))}catch(e){t(e)}}function s(e){try{o(l.throw(e))}catch(e){t(e)}}function o(e){var t;e.done?r(e.value):((t=e.value)instanceof a?t:new a(function(e){e(t)})).then(n,s)}o((l=l.apply(e,i||[])).next())})}!function(e){e[e.users=0]="users",e[e.applications=1]="applications",e[e.permissionSets=2]="permissionSets",e[e.accessControl=3]="accessControl",e[e.groups=4]="groups"}(AdminCenterView=AdminCenterView||{});const SLICE_NAME="browse",namespace="browseDetail",initialState={status:"idle",olpFeature:"disabled"},browseSlice=createSlice({name:SLICE_NAME+"/"+namespace,initialState:initialState,reducers:{fetchOlpAvailabilityStart(e){e.status="loading"},fetchOlpAvailabilitySuccess(e,t){e.status="success",e.olpFeature=t.payload},fetchOlpAvailabilityFailure(e){e.status="failure"}}}),actions=browseSlice.actions;var browse_state=browseSlice.reducer;const rootReducer=combineReducers({[namespace]:browse_state});function checkOlpAvailability(t){return __awaiter(this,void 0,void 0,function*(){var e="checkOlpAvailability";return(yield baseGraphQLApiWithError(Object.assign({query:"\n query checkOlpAvailability {\n me {\n organization { \n jsondata \n } \n }\n }\n ",operationName:e},t))).me.organization.jsondata.features.enableRBACFeature})}function*fetchOlpAvailabilitySaga(e){try{var t=yield select(selectApiConfigs),r=yield call$b(checkOlpAvailability,t);yield put(actions.fetchOlpAvailabilitySuccess(r))}catch(e){yield put(actions.fetchOlpAvailabilityFailure()),console.log(e)}}function*fetchOlpAvailabilityWatcher(){yield takeEvery$1(actions.fetchOlpAvailabilityStart.type,fetchOlpAvailabilitySaga)}function*rootSaga(){yield all([fetchOlpAvailabilityWatcher()])}const selectOlpAvailability=e=>{return null==(e=null==(e=null==e?void 0:e[SLICE_NAME])?void 0:e[namespace])?void 0:e.olpFeature};function getAdminCenterBrowseModule(){return{id:SLICE_NAME,reducerMap:{[SLICE_NAME]:rootReducer},sagas:[rootSaga],initialActions:[]}}const tabWidth=197,useStyles$1=makeStyles()((e,{height:t},r)=>({root:{display:"flex",flexGrow:1,height:t,position:"relative"},tabs:{borderRight:".5px solid "+e.palette.divider,transition:".2s ease",width:e.spacing(14),minWidth:e.spacing(14),padding:e.spacing(1.6)+" "+e.spacing(2.5),boxSizing:"border-box"},tabsContainer:{alignItems:"center"},tabIndicator:{background:"transparent"},tabRoot:{opacity:1,borderRadius:4,fontSize:"14px",marginBottom:e.spacing(1),minHeight:e.spacing(9),minWidth:e.spacing(9),paddingTop:e.spacing(1),paddingBottom:e.spacing(1),width:"100%","&:hover":{background:"#F2F5F9"}},tabsExpanded:{width:tabWidth,minWidth:tabWidth,paddingRight:e.spacing(2),paddingLeft:e.spacing(2),["& "+r.tabRoot]:{width:`calc(${tabWidth}px - ${e.spacing(3)})`,flexDirection:"row",textTransform:"capitalize","& svg":{marginRight:e.spacing(2),marginBottom:"0"}}},tabExpandedWrapper:{flexDirection:"row",display:"flex",justifyContent:"flex-start","& svg":{marginBottom:"0 !important",marginRight:e.spacing(2)}},tabSelected:{background:"#F2F5F9",color:e.palette.primary.main,"& svg":{marginBottom:"0 !important",marginRight:"0",color:e.palette.primary.main}},contentPanel:{flexGrow:1},tabExpandedSelected:{background:"#F2F5F9",color:e.palette.primary.main,"& svg":{marginBottom:"0 !important",marginRight:e.spacing(2),color:e.palette.primary.main}},tabWrapper:{flexDirection:"row",display:"flex",justifyContent:"center","& svg":{marginBottom:"0 !important",marginRight:"0"}}})),navList=[{id:AdminCenterView.users,label:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-browse.users.view",defaultMessage:"Users",description:"The label of users tab button."}),testLabel:"ac-users-view",icon:jsxRuntime.exports.jsx(Users,{}),content:e=>jsxRuntime.exports.jsx(UsersPanel,{isPanelFullScreen:e})},{id:AdminCenterView.applications,label:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-browse.applications.view",defaultMessage:"Applications",description:"The label for Application view"}),testLabel:"ac-applications-view",icon:jsxRuntime.exports.jsx(ApplicationTabIcon,{style:{margin:"9px 5px 0 5px"}}),content:e=>jsxRuntime.exports.jsx(ApplicationsTab,{isPanelFullScreen:e})}],olpNavList=[{id:AdminCenterView.permissionSets,label:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-browse.permission-sets.view",defaultMessage:"Permission Sets",description:"The label for Permission Sets view"}),testLabel:"ac-permission-sets-view",icon:jsxRuntime.exports.jsx(Lock,{}),content:e=>jsxRuntime.exports.jsx(PermissionSets,{isPanelFullScreen:e})},{id:AdminCenterView.accessControl,label:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-browse.system-access.view",defaultMessage:"System Access",description:"The label of access control tab button."}),testLabel:"ac-access-control-view",icon:jsxRuntime.exports.jsx(SecurityGroup,{}),content:e=>jsxRuntime.exports.jsx(AccessControl,{isPanelFullScreen:e})},{id:AdminCenterView.groups,label:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-browse.groups.view",defaultMessage:"Groups",description:"The label of groups tab button."}),testLabel:"ac-groups-view",icon:jsxRuntime.exports.jsx(Group,{}),content:e=>jsxRuntime.exports.jsx(GroupsPanel,{isPanelFullScreen:e})}],MainTabPanel=({isNavExpanded:t,isFullScreen:r,height:e})=>{const n=useStyles$1({height:e})["classes"],[s,o]=react.exports.useState(AdminCenterView.users),[i,a]=react.exports.useState(navList),l=useSelector(selectOlpAvailability);e=useSelector(betaFeaturesSelector);return react.exports.useEffect(()=>{"enabled"===l&&a(e=>[...e,...olpNavList])},[l,e]),jsxRuntime.exports.jsxs("div",Object.assign({className:n.root},{children:[jsxRuntime.exports.jsx(Tabs,Object.assign({id:"adminCenterViewTabs",orientation:"vertical",value:s,onChange:(e,t)=>{o(t)},className:classNames(n.tabs,{[n.tabsExpanded]:t}),classes:{flexContainer:n.tabsContainer,indicator:n.tabIndicator},"aria-label":"admin center tabs","data-test":"ac-nav-tabs-container"},{children:i.map(e=>jsxRuntime.exports.jsx(Tooltip,Object.assign({placement:"right",title:t?"":e.label,"data-test":"ac-nav-tab-"+e.testLabel},{children:jsxRuntime.exports.jsx(Tab,Object.assign({wrapped:!0},a11yProps(e.id),{label:t?e.label:"",icon:e.icon,classes:{root:n.tabRoot,wrapped:t?n.tabExpandedWrapper:n.tabWrapper,selected:t?n.tabExpandedSelected:n.tabSelected}}))}),e.id))})),i.map(e=>jsxRuntime.exports.jsx(TabPanel,Object.assign({value:s,index:e.id,className:n.contentPanel},{children:e.content(r)}),e.id))]}))};function TabPanel(e){var{children:t,value:r,index:n}=e,e=__rest(e,["children","value","index"]);return jsxRuntime.exports.jsx("div",Object.assign({role:"tabpanel",hidden:r!==n,id:"admin-center-tabpanel-"+n,"aria-labelledby":"admin-center-tab-"+n},e,{children:r===n&&t}))}function a11yProps(e){return{id:"admin-center-tab-"+e,"aria-controls":"admin-center-tabpanel-"+e}}const Container=({fullScreen:e,classes:t,dimmed:r,children:n})=>e?jsxRuntime.exports.jsx(Portal,{children:jsxRuntime.exports.jsxs("div",Object.assign({role:"presentation","data-test":"ac-widget",className:classNames(t.root,t.panel,t.fullScreen)},{children:[r&&jsxRuntime.exports.jsx("div",{className:t.overlay}),n]}))}):jsxRuntime.exports.jsx("div",Object.assign({role:"presentation","data-test":"ac-widget",className:classNames(t.root,t.panel)},{children:n})),appBarHeight=55,headerHeight=64,borderBottom=5,useStyles=makeStyles()(e=>({root:{width:1020,position:"relative"},panel:{backgroundColor:e.palette.background.paper,boxShadow:"0px 0px 12px rgba(0, 0, 0, 0.25)",height:"100%"},fullScreen:{position:"fixed",width:"100%",height:"100vh",top:0,left:0,right:0,bottom:0,zIndex:1004},overlay:{backgroundColor:e.palette.grey[50],opacity:"0.5 !important",height:"100%",position:"absolute",top:0,width:"100%",zIndex:1001}})),MainLayout=({hidePanel:e})=>{const[t,r]=react.exports.useState(!0),[n,s]=react.exports.useState(!1);var o=useStyles()["classes"];const i=useSelector(panelsSelector)||[];var a=i.find(e=>"ADMIN_CENTER_BROWSE"===e.panelId)||{panelConfig:{dimmed:0}},a=0<(null==(a=null===a?void 0:a.panelConfig)?void 0:a.dimmed),l=`calc(100vh - ${n?25:appBarHeight+borderBottom}px - ${headerHeight}px)`;return jsxRuntime.exports.jsxs(Container,Object.assign({dimmed:a,fullScreen:n,classes:o},{children:[jsxRuntime.exports.jsx(Header,{height:headerHeight,hidePanel:e,isNavExpanded:t,onLeftNavigationToggle:()=>{r(!t)},isFullScreen:n,onFullScreenToggle:()=>{s(!n)}}),jsxRuntime.exports.jsx(MainTabPanel,{height:l,isNavExpanded:t,isFullScreen:n})]}))},Content=e=>{var{apiRoot:t,graphQLEndpoint:r,token:n}=useSelector(selectApiConfigs);const s=useDispatch();return react.exports.useEffect(()=>{s(actions.fetchOlpAvailabilityStart())},[]),t&&r&&n?jsxRuntime.exports.jsx(MainLayout,Object.assign({},e)):null},AdminCenterBrowse=e=>jsxRuntime.exports.jsx(AIWareThemeProvider,{children:jsxRuntime.exports.jsx(lib.DynamicModuleLoader,Object.assign({modules:[getAdminCenterUsersModule(),getAdminCenterGroupsModule(),getAdminCenterPermissionsModule(),getAdminCenterApplicationsModule(),getAdminCenterBrowseModule(),getOrganizationPanelModule()]},{children:jsxRuntime.exports.jsx(AIWareIntlProvider,{children:jsxRuntime.exports.jsx(Content,Object.assign({},e))})}))});export{AdminCenterBrowse};
|