@uxland/primary-shell 7.3.0 → 7.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/component-s17Jsk26.js +47 -0
- package/dist/component-s17Jsk26.js.map +1 -0
- package/dist/index-C3997nyY.js +45157 -0
- package/dist/index-C3997nyY.js.map +1 -0
- package/dist/index.js +18 -45079
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +111 -94
- package/dist/index.umd.cjs.map +1 -1
- package/dist/primary/shell/src/UI/bootstrapper.d.ts +1 -1
- package/dist/primary/shell/src/UI/internal-views/handle-views.d.ts +1 -1
- package/dist/primary/shell/src/api/api.d.ts +4 -0
- package/dist/primary/shell/src/api/import-data-manager/component/component.d.ts +15 -0
- package/dist/primary/shell/src/api/import-data-manager/component/template.d.ts +2 -0
- package/dist/primary/shell/src/api/import-data-manager/import-data-manager-impl.d.ts +27 -0
- package/dist/primary/shell/src/api/import-data-manager/import-data-manager-impl.test.d.ts +1 -0
- package/dist/primary/shell/src/api/import-data-manager/import-data-manager.d.ts +19 -0
- package/dist/primary/shell/src/api/import-data-manager/index.d.ts +2 -0
- package/dist/primary/shell/src/api/region-manager/regions.d.ts +1 -0
- package/dist/primary/shell/src/api/user-manager/user-manager.d.ts +12 -0
- package/dist/primary/shell/src/bootstrapper.d.ts +1 -1
- package/dist/primary/shell/src/handle-plugins.d.ts +1 -1
- package/dist/primary/shell/src/locales.d.ts +8 -0
- package/package.json +1 -1
- package/src/UI/bootstrapper.ts +2 -2
- package/src/UI/internal-views/handle-views.ts +4 -3
- package/src/api/api.ts +8 -0
- package/src/api/import-data-manager/component/component.ts +34 -0
- package/src/api/import-data-manager/component/styles.css +58 -0
- package/src/api/import-data-manager/component/template.ts +24 -0
- package/src/api/import-data-manager/import-data-manager-impl.test.ts +282 -0
- package/src/api/import-data-manager/import-data-manager-impl.ts +80 -0
- package/src/api/import-data-manager/import-data-manager.ts +15 -0
- package/src/api/import-data-manager/index.ts +2 -0
- package/src/api/region-manager/regions.ts +1 -0
- package/src/api/user-manager/user-manager.ts +45 -0
- package/src/bootstrapper.ts +2 -2
- package/src/handle-plugins.ts +6 -6
- package/src/locales.ts +9 -0
- package/dist/primary/shell/src/domain/is-user-role-administrative.d.ts +0 -1
- package/src/domain/is-user-role-administrative.ts +0 -1
package/dist/index.umd.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(xs,ks){typeof exports=="object"&&typeof module<"u"?ks(exports,require("react"),require("react
|
|
1
|
+
(function(xs,ks){typeof exports=="object"&&typeof module<"u"?ks(exports,require("react-dom/client"),require("react")):typeof define=="function"&&define.amd?define(["exports","react-dom/client","react"],ks):(xs=typeof globalThis<"u"?globalThis:xs||self,ks(xs["@uxland/primary-shell"]={},xs.r$M,xs.c$p))})(this,(function(exports,r$M,c$p){"use strict";var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(te){return te&&te.__esModule&&Object.prototype.hasOwnProperty.call(te,"default")?te.default:te}var _Reflect={};/*! *****************************************************************************
|
|
2
2
|
Copyright (C) Microsoft. All rights reserved.
|
|
3
3
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
4
4
|
this file except in compliance with the License. You may obtain a copy of the
|
|
@@ -207,7 +207,7 @@ Registered bindings:`,ne.forEach(function(oe){var de="Object";oe.implementationT
|
|
|
207
207
|
`+de,oe.constraint.metaData&&(re=re+" - "+oe.constraint.metaData)})),re}function alreadyDependencyChain(te,J){return te.parentRequest===null?!1:te.parentRequest.serviceIdentifier===J?!0:alreadyDependencyChain(te.parentRequest,J)}function dependencyChainToString(te){function J(re,ne){ne===void 0&&(ne=[]);var oe=getServiceIdentifierAsString(re.serviceIdentifier);return ne.push(oe),re.parentRequest!==null?J(re.parentRequest,ne):ne}var X=J(te);return X.reverse().join(" --> ")}function circularDependencyToException(te){te.childRequests.forEach(function(J){if(alreadyDependencyChain(J,J.serviceIdentifier)){var X=dependencyChainToString(J);throw new Error(CIRCULAR_DEPENDENCY+" "+X)}else circularDependencyToException(J)})}function listMetadataForTarget(te,J){if(J.isTagged()||J.isNamed()){var X="",re=J.getNamedTag(),ne=J.getCustomTags();return re!==null&&(X+=re.toString()+`
|
|
208
208
|
`),ne!==null&&ne.forEach(function(oe){X+=oe.toString()+`
|
|
209
209
|
`})," "+te+`
|
|
210
|
-
`+te+" - "+X}else return" "+te}function getFunctionName(te){if(te.name)return te.name;var J=te.toString(),X=J.match(/^function\s*([^\s(]+)/);return X?X[1]:"Anonymous function: "+J}function getSymbolDescription(te){return te.toString().slice(7,-1)}var Context=(function(){function te(J){this.id=id(),this.container=J}return te.prototype.addPlan=function(J){this.plan=J},te.prototype.setCurrentRequest=function(J){this.currentRequest=J},te})(),Metadata=(function(){function te(J,X){this.key=J,this.value=X}return te.prototype.toString=function(){return this.key===NAMED_TAG?"named: "+String(this.value).toString()+" ":"tagged: { key:"+this.key.toString()+", value: "+String(this.value)+" }"},te})(),Plan=(function(){function te(J,X){this.parentContext=J,this.rootRequest=X}return te})(),LazyServiceIdentifier=(function(){function te(J){this._cb=J}return te.prototype.unwrap=function(){return this._cb()},te})(),QueryableString=(function(){function te(J){this.str=J}return te.prototype.startsWith=function(J){return this.str.indexOf(J)===0},te.prototype.endsWith=function(J){var X="",re=J.split("").reverse().join("");return X=this.str.split("").reverse().join(""),this.startsWith.call({str:X},re)},te.prototype.contains=function(J){return this.str.indexOf(J)!==-1},te.prototype.equals=function(J){return this.str===J},te.prototype.value=function(){return this.str},te})(),Target=(function(){function te(J,X,re,ne){this.id=id(),this.type=J,this.serviceIdentifier=re;var oe=typeof X=="symbol"?getSymbolDescription(X):X;this.name=new QueryableString(oe||""),this.identifier=X,this.metadata=new Array;var de=null;typeof ne=="string"?de=new Metadata(NAMED_TAG,ne):ne instanceof Metadata&&(de=ne),de!==null&&this.metadata.push(de)}return te.prototype.hasTag=function(J){for(var X=0,re=this.metadata;X<re.length;X++){var ne=re[X];if(ne.key===J)return!0}return!1},te.prototype.isArray=function(){return this.hasTag(MULTI_INJECT_TAG)},te.prototype.matchesArray=function(J){return this.matchesTag(MULTI_INJECT_TAG)(J)},te.prototype.isNamed=function(){return this.hasTag(NAMED_TAG)},te.prototype.isTagged=function(){return this.metadata.some(function(J){return NON_CUSTOM_TAG_KEYS.every(function(X){return J.key!==X})})},te.prototype.isOptional=function(){return this.matchesTag(OPTIONAL_TAG)(!0)},te.prototype.getNamedTag=function(){return this.isNamed()?this.metadata.filter(function(J){return J.key===NAMED_TAG})[0]:null},te.prototype.getCustomTags=function(){return this.isTagged()?this.metadata.filter(function(J){return NON_CUSTOM_TAG_KEYS.every(function(X){return J.key!==X})}):null},te.prototype.matchesNamedTag=function(J){return this.matchesTag(NAMED_TAG)(J)},te.prototype.matchesTag=function(J){var X=this;return function(re){for(var ne=0,oe=X.metadata;ne<oe.length;ne++){var de=oe[ne];if(de.key===J&&de.value===re)return!0}return!1}},te})(),__spreadArray$2=function(te,J,X){if(X||arguments.length===2)for(var re=0,ne=J.length,oe;re<ne;re++)(oe||!(re in J))&&(oe||(oe=Array.prototype.slice.call(J,0,re)),oe[re]=J[re]);return te.concat(oe||Array.prototype.slice.call(J))};function getDependencies$1(te,J){var X=getFunctionName(J);return getTargets(te,X,J,!1)}function getTargets(te,J,X,re){var ne=te.getConstructorMetadata(X),oe=ne.compilerGeneratedMetadata;if(oe===void 0){var de=MISSING_INJECTABLE_ANNOTATION+" "+J+".";throw new Error(de)}var ce=ne.userGeneratedMetadata,he=Object.keys(ce),ue=X.length===0&&he.length>0,pe=he.length>X.length,fe=ue||pe?he.length:X.length,be=getConstructorArgsAsTargets(re,J,oe,ce,fe),ge=getClassPropsAsTargets(te,X,J),ve=__spreadArray$2(__spreadArray$2([],be,!0),ge,!0);return ve}function getConstructorArgsAsTarget(te,J,X,re,ne){var oe=ne[te.toString()]||[],de=formatTargetMetadata(oe),ce=de.unmanaged!==!0,he=re[te],ue=de.inject||de.multiInject;if(he=ue||he,he instanceof LazyServiceIdentifier&&(he=he.unwrap()),ce){var pe=he===Object,fe=he===Function,be=he===void 0,ge=pe||fe||be;if(!J&&ge){var ve=MISSING_INJECT_ANNOTATION+" argument "+te+" in class "+X+".";throw new Error(ve)}var me=new Target(TargetTypeEnum.ConstructorArgument,de.targetName,he);return me.metadata=oe,me}return null}function getConstructorArgsAsTargets(te,J,X,re,ne){for(var oe=[],de=0;de<ne;de++){var ce=de,he=getConstructorArgsAsTarget(ce,te,J,X,re);he!==null&&oe.push(he)}return oe}function _getServiceIdentifierForProperty(te,J,X,re){var ne=te||J;if(ne===void 0){var oe=MISSING_INJECTABLE_ANNOTATION+" for property "+String(X)+" in class "+re+".";throw new Error(oe)}return ne}function getClassPropsAsTargets(te,J,X){for(var re=te.getPropertiesMetadata(J),ne=[],oe=Object.getOwnPropertySymbols(re),de=Object.keys(re),ce=de.concat(oe),he=0,ue=ce;he<ue.length;he++){var pe=ue[he],fe=re[pe],be=formatTargetMetadata(fe),ge=be.targetName||pe,ve=_getServiceIdentifierForProperty(be.inject,be.multiInject,pe,X),me=new Target(TargetTypeEnum.ClassProperty,ge,ve);me.metadata=fe,ne.push(me)}var _e=Object.getPrototypeOf(J.prototype).constructor;if(_e!==Object){var ye=getClassPropsAsTargets(te,_e,X);ne=__spreadArray$2(__spreadArray$2([],ne,!0),ye,!0)}return ne}function getBaseClassDependencyCount(te,J){var X=Object.getPrototypeOf(J.prototype).constructor;if(X!==Object){var re=getFunctionName(X),ne=getTargets(te,re,X,!0),oe=ne.map(function(he){return he.metadata.filter(function(ue){return ue.key===UNMANAGED_TAG})}),de=[].concat.apply([],oe).length,ce=ne.length-de;return ce>0?ce:getBaseClassDependencyCount(te,X)}else return 0}function formatTargetMetadata(te){var J={};return te.forEach(function(X){J[X.key.toString()]=X.value}),{inject:J[INJECT_TAG],multiInject:J[MULTI_INJECT_TAG],targetName:J[NAME_TAG],unmanaged:J[UNMANAGED_TAG]}}var Request$1=(function(){function te(J,X,re,ne,oe){this.id=id(),this.serviceIdentifier=J,this.parentContext=X,this.parentRequest=re,this.target=oe,this.childRequests=[],this.bindings=Array.isArray(ne)?ne:[ne],this.requestScope=re===null?new Map:null}return te.prototype.addChildRequest=function(J,X,re){var ne=new te(J,this.parentContext,this,X,re);return this.childRequests.push(ne),ne},te})();function getBindingDictionary(te){return te._bindingDictionary}function _createTarget(te,J,X,re,ne,oe){var de=te?MULTI_INJECT_TAG:INJECT_TAG,ce=new Metadata(de,X),he=new Target(J,re,X,ce);if(ne!==void 0){var ue=new Metadata(ne,oe);he.metadata.push(ue)}return he}function _getActiveBindings(te,J,X,re,ne){var oe=getBindings(X.container,ne.serviceIdentifier),de=[];return oe.length===BindingCount.NoBindingsAvailable&&X.container.options.autoBindInjectable&&typeof ne.serviceIdentifier=="function"&&te.getConstructorMetadata(ne.serviceIdentifier).compilerGeneratedMetadata&&(X.container.bind(ne.serviceIdentifier).toSelf(),oe=getBindings(X.container,ne.serviceIdentifier)),J?de=oe:de=oe.filter(function(ce){var he=new Request$1(ce.serviceIdentifier,X,re,ce,ne);return ce.constraint(he)}),_validateActiveBindingCount(ne.serviceIdentifier,de,ne,X.container),de}function _validateActiveBindingCount(te,J,X,re){switch(J.length){case BindingCount.NoBindingsAvailable:if(X.isOptional())return J;var ne=getServiceIdentifierAsString(te),oe=NOT_REGISTERED;throw oe+=listMetadataForTarget(ne,X),oe+=listRegisteredBindingsForServiceIdentifier(re,ne,getBindings),new Error(oe);case BindingCount.OnlyOneBindingAvailable:return J;case BindingCount.MultipleBindingsAvailable:default:if(X.isArray())return J;var ne=getServiceIdentifierAsString(te),oe=AMBIGUOUS_MATCH+" "+ne;throw oe+=listRegisteredBindingsForServiceIdentifier(re,ne,getBindings),new Error(oe)}}function _createSubRequests(te,J,X,re,ne,oe){var de,ce;if(ne===null){de=_getActiveBindings(te,J,re,null,oe),ce=new Request$1(X,re,null,de,oe);var he=new Plan(re,ce);re.addPlan(he)}else de=_getActiveBindings(te,J,re,ne,oe),ce=ne.addChildRequest(oe.serviceIdentifier,de,oe);de.forEach(function(ue){var pe=null;if(oe.isArray())pe=ce.addChildRequest(ue.serviceIdentifier,ue,oe);else{if(ue.cache)return;pe=ce}if(ue.type===BindingTypeEnum.Instance&&ue.implementationType!==null){var fe=getDependencies$1(te,ue.implementationType);if(!re.container.options.skipBaseClassChecks){var be=getBaseClassDependencyCount(te,ue.implementationType);if(fe.length<be){var ge=ARGUMENTS_LENGTH_MISMATCH(getFunctionName(ue.implementationType));throw new Error(ge)}}fe.forEach(function(ve){_createSubRequests(te,!1,ve.serviceIdentifier,re,pe,ve)})}})}function getBindings(te,J){var X=[],re=getBindingDictionary(te);return re.hasKey(J)?X=re.get(J):te.parent!==null&&(X=getBindings(te.parent,J)),X}function plan(te,J,X,re,ne,oe,de,ce){ce===void 0&&(ce=!1);var he=new Context(J),ue=_createTarget(X,re,ne,"",oe,de);try{return _createSubRequests(te,ce,ne,he,null,ue),he}catch(pe){throw isStackOverflowExeption(pe)&&circularDependencyToException(he.plan.rootRequest),pe}}function createMockRequest(te,J,X,re){var ne=new Target(TargetTypeEnum.Variable,"",J,new Metadata(X,re)),oe=new Context(te),de=new Request$1(J,oe,null,[],ne);return de}function isPromise(te){var J=typeof te=="object"&&te!==null||typeof te=="function";return J&&typeof te.then=="function"}function isPromiseOrContainsPromise(te){return isPromise(te)?!0:Array.isArray(te)&&te.some(isPromise)}var __awaiter$3=function(te,J,X,re){function ne(oe){return oe instanceof X?oe:new X(function(de){de(oe)})}return new(X||(X=Promise))(function(oe,de){function ce(pe){try{ue(re.next(pe))}catch(fe){de(fe)}}function he(pe){try{ue(re.throw(pe))}catch(fe){de(fe)}}function ue(pe){pe.done?oe(pe.value):ne(pe.value).then(ce,he)}ue((re=re.apply(te,J||[])).next())})},__generator$3=function(te,J){var X={label:0,sent:function(){if(oe[0]&1)throw oe[1];return oe[1]},trys:[],ops:[]},re,ne,oe,de;return de={next:ce(0),throw:ce(1),return:ce(2)},typeof Symbol=="function"&&(de[Symbol.iterator]=function(){return this}),de;function ce(ue){return function(pe){return he([ue,pe])}}function he(ue){if(re)throw new TypeError("Generator is already executing.");for(;X;)try{if(re=1,ne&&(oe=ue[0]&2?ne.return:ue[0]?ne.throw||((oe=ne.return)&&oe.call(ne),0):ne.next)&&!(oe=oe.call(ne,ue[1])).done)return oe;switch(ne=0,oe&&(ue=[ue[0]&2,oe.value]),ue[0]){case 0:case 1:oe=ue;break;case 4:return X.label++,{value:ue[1],done:!1};case 5:X.label++,ne=ue[1],ue=[0];continue;case 7:ue=X.ops.pop(),X.trys.pop();continue;default:if(oe=X.trys,!(oe=oe.length>0&&oe[oe.length-1])&&(ue[0]===6||ue[0]===2)){X=0;continue}if(ue[0]===3&&(!oe||ue[1]>oe[0]&&ue[1]<oe[3])){X.label=ue[1];break}if(ue[0]===6&&X.label<oe[1]){X.label=oe[1],oe=ue;break}if(oe&&X.label<oe[2]){X.label=oe[2],X.ops.push(ue);break}oe[2]&&X.ops.pop(),X.trys.pop();continue}ue=J.call(te,X)}catch(pe){ue=[6,pe],ne=0}finally{re=oe=0}if(ue[0]&5)throw ue[1];return{value:ue[0]?ue[1]:void 0,done:!0}}},tryGetFromScope=function(te,J){return J.scope===BindingScopeEnum.Singleton&&J.activated?J.cache:J.scope===BindingScopeEnum.Request&&te.has(J.id)?te.get(J.id):null},saveToScope=function(te,J,X){J.scope===BindingScopeEnum.Singleton&&_saveToSingletonScope(J,X),J.scope===BindingScopeEnum.Request&&_saveToRequestScope(te,J,X)},_saveToRequestScope=function(te,J,X){te.has(J.id)||te.set(J.id,X)},_saveToSingletonScope=function(te,J){te.cache=J,te.activated=!0,isPromise(J)&&_saveAsyncResultToSingletonScope(te,J)},_saveAsyncResultToSingletonScope=function(te,J){return __awaiter$3(void 0,void 0,void 0,function(){var X,re;return __generator$3(this,function(ne){switch(ne.label){case 0:return ne.trys.push([0,2,,3]),[4,J];case 1:return X=ne.sent(),te.cache=X,[3,3];case 2:throw re=ne.sent(),te.cache=null,te.activated=!1,re;case 3:return[2]}})})},FactoryType;(function(te){te.DynamicValue="toDynamicValue",te.Factory="toFactory",te.Provider="toProvider"})(FactoryType||(FactoryType={}));var ensureFullyBound=function(te){var J=null;switch(te.type){case BindingTypeEnum.ConstantValue:case BindingTypeEnum.Function:J=te.cache;break;case BindingTypeEnum.Constructor:case BindingTypeEnum.Instance:J=te.implementationType;break;case BindingTypeEnum.DynamicValue:J=te.dynamicValue;break;case BindingTypeEnum.Provider:J=te.provider;break;case BindingTypeEnum.Factory:J=te.factory;break}if(J===null){var X=getServiceIdentifierAsString(te.serviceIdentifier);throw new Error(INVALID_BINDING_TYPE+" "+X)}},getFactoryDetails=function(te){switch(te.type){case BindingTypeEnum.Factory:return{factory:te.factory,factoryType:FactoryType.Factory};case BindingTypeEnum.Provider:return{factory:te.provider,factoryType:FactoryType.Provider};case BindingTypeEnum.DynamicValue:return{factory:te.dynamicValue,factoryType:FactoryType.DynamicValue};default:throw new Error("Unexpected factory type "+te.type)}},__assign$1=function(){return __assign$1=Object.assign||function(te){for(var J,X=1,re=arguments.length;X<re;X++){J=arguments[X];for(var ne in J)Object.prototype.hasOwnProperty.call(J,ne)&&(te[ne]=J[ne])}return te},__assign$1.apply(this,arguments)},__awaiter$2=function(te,J,X,re){function ne(oe){return oe instanceof X?oe:new X(function(de){de(oe)})}return new(X||(X=Promise))(function(oe,de){function ce(pe){try{ue(re.next(pe))}catch(fe){de(fe)}}function he(pe){try{ue(re.throw(pe))}catch(fe){de(fe)}}function ue(pe){pe.done?oe(pe.value):ne(pe.value).then(ce,he)}ue((re=re.apply(te,J||[])).next())})},__generator$2=function(te,J){var X={label:0,sent:function(){if(oe[0]&1)throw oe[1];return oe[1]},trys:[],ops:[]},re,ne,oe,de;return de={next:ce(0),throw:ce(1),return:ce(2)},typeof Symbol=="function"&&(de[Symbol.iterator]=function(){return this}),de;function ce(ue){return function(pe){return he([ue,pe])}}function he(ue){if(re)throw new TypeError("Generator is already executing.");for(;X;)try{if(re=1,ne&&(oe=ue[0]&2?ne.return:ue[0]?ne.throw||((oe=ne.return)&&oe.call(ne),0):ne.next)&&!(oe=oe.call(ne,ue[1])).done)return oe;switch(ne=0,oe&&(ue=[ue[0]&2,oe.value]),ue[0]){case 0:case 1:oe=ue;break;case 4:return X.label++,{value:ue[1],done:!1};case 5:X.label++,ne=ue[1],ue=[0];continue;case 7:ue=X.ops.pop(),X.trys.pop();continue;default:if(oe=X.trys,!(oe=oe.length>0&&oe[oe.length-1])&&(ue[0]===6||ue[0]===2)){X=0;continue}if(ue[0]===3&&(!oe||ue[1]>oe[0]&&ue[1]<oe[3])){X.label=ue[1];break}if(ue[0]===6&&X.label<oe[1]){X.label=oe[1],oe=ue;break}if(oe&&X.label<oe[2]){X.label=oe[2],X.ops.push(ue);break}oe[2]&&X.ops.pop(),X.trys.pop();continue}ue=J.call(te,X)}catch(pe){ue=[6,pe],ne=0}finally{re=oe=0}if(ue[0]&5)throw ue[1];return{value:ue[0]?ue[1]:void 0,done:!0}}},__spreadArray$1=function(te,J,X){if(X||arguments.length===2)for(var re=0,ne=J.length,oe;re<ne;re++)(oe||!(re in J))&&(oe||(oe=Array.prototype.slice.call(J,0,re)),oe[re]=J[re]);return te.concat(oe||Array.prototype.slice.call(J))};function _resolveRequests(te,J){return te.reduce(function(X,re){var ne=J(re),oe=re.target.type;return oe===TargetTypeEnum.ConstructorArgument?X.constructorInjections.push(ne):(X.propertyRequests.push(re),X.propertyInjections.push(ne)),X.isAsync||(X.isAsync=isPromiseOrContainsPromise(ne)),X},{constructorInjections:[],propertyInjections:[],propertyRequests:[],isAsync:!1})}function _createInstance(te,J,X){var re;if(J.length>0){var ne=_resolveRequests(J,X),oe=__assign$1(__assign$1({},ne),{constr:te});ne.isAsync?re=createInstanceWithInjectionsAsync(oe):re=createInstanceWithInjections(oe)}else re=new te;return re}function createInstanceWithInjections(te){var J,X=new((J=te.constr).bind.apply(J,__spreadArray$1([void 0],te.constructorInjections,!1)));return te.propertyRequests.forEach(function(re,ne){var oe=re.target.identifier,de=te.propertyInjections[ne];(!re.target.isOptional()||de!==void 0)&&(X[oe]=de)}),X}function createInstanceWithInjectionsAsync(te){return __awaiter$2(this,void 0,void 0,function(){var J,X;return __generator$2(this,function(re){switch(re.label){case 0:return[4,possiblyWaitInjections(te.constructorInjections)];case 1:return J=re.sent(),[4,possiblyWaitInjections(te.propertyInjections)];case 2:return X=re.sent(),[2,createInstanceWithInjections(__assign$1(__assign$1({},te),{constructorInjections:J,propertyInjections:X}))]}})})}function possiblyWaitInjections(te){return __awaiter$2(this,void 0,void 0,function(){var J,X,re,ne;return __generator$2(this,function(oe){for(J=[],X=0,re=te;X<re.length;X++)ne=re[X],Array.isArray(ne)?J.push(Promise.all(ne)):J.push(ne);return[2,Promise.all(J)]})})}function _getInstanceAfterPostConstruct(te,J){var X=_postConstruct(te,J);return isPromise(X)?X.then(function(){return J}):J}function _postConstruct(te,J){var X,re;if(Reflect.hasMetadata(POST_CONSTRUCT,te)){var ne=Reflect.getMetadata(POST_CONSTRUCT,te);try{return(re=(X=J)[ne.value])===null||re===void 0?void 0:re.call(X)}catch(oe){if(oe instanceof Error)throw new Error(POST_CONSTRUCT_ERROR(te.name,oe.message))}}}function _validateInstanceResolution(te,J){te.scope!==BindingScopeEnum.Singleton&&_throwIfHandlingDeactivation(te,J)}function _throwIfHandlingDeactivation(te,J){var X="Class cannot be instantiated in "+(te.scope===BindingScopeEnum.Request?"request":"transient")+" scope.";if(typeof te.onDeactivation=="function")throw new Error(ON_DEACTIVATION_ERROR(J.name,X));if(Reflect.hasMetadata(PRE_DESTROY,J))throw new Error(PRE_DESTROY_ERROR(J.name,X))}function resolveInstance(te,J,X,re){_validateInstanceResolution(te,J);var ne=_createInstance(J,X,re);return isPromise(ne)?ne.then(function(oe){return _getInstanceAfterPostConstruct(J,oe)}):_getInstanceAfterPostConstruct(J,ne)}var __awaiter$1=function(te,J,X,re){function ne(oe){return oe instanceof X?oe:new X(function(de){de(oe)})}return new(X||(X=Promise))(function(oe,de){function ce(pe){try{ue(re.next(pe))}catch(fe){de(fe)}}function he(pe){try{ue(re.throw(pe))}catch(fe){de(fe)}}function ue(pe){pe.done?oe(pe.value):ne(pe.value).then(ce,he)}ue((re=re.apply(te,J||[])).next())})},__generator$1=function(te,J){var X={label:0,sent:function(){if(oe[0]&1)throw oe[1];return oe[1]},trys:[],ops:[]},re,ne,oe,de;return de={next:ce(0),throw:ce(1),return:ce(2)},typeof Symbol=="function"&&(de[Symbol.iterator]=function(){return this}),de;function ce(ue){return function(pe){return he([ue,pe])}}function he(ue){if(re)throw new TypeError("Generator is already executing.");for(;X;)try{if(re=1,ne&&(oe=ue[0]&2?ne.return:ue[0]?ne.throw||((oe=ne.return)&&oe.call(ne),0):ne.next)&&!(oe=oe.call(ne,ue[1])).done)return oe;switch(ne=0,oe&&(ue=[ue[0]&2,oe.value]),ue[0]){case 0:case 1:oe=ue;break;case 4:return X.label++,{value:ue[1],done:!1};case 5:X.label++,ne=ue[1],ue=[0];continue;case 7:ue=X.ops.pop(),X.trys.pop();continue;default:if(oe=X.trys,!(oe=oe.length>0&&oe[oe.length-1])&&(ue[0]===6||ue[0]===2)){X=0;continue}if(ue[0]===3&&(!oe||ue[1]>oe[0]&&ue[1]<oe[3])){X.label=ue[1];break}if(ue[0]===6&&X.label<oe[1]){X.label=oe[1],oe=ue;break}if(oe&&X.label<oe[2]){X.label=oe[2],X.ops.push(ue);break}oe[2]&&X.ops.pop(),X.trys.pop();continue}ue=J.call(te,X)}catch(pe){ue=[6,pe],ne=0}finally{re=oe=0}if(ue[0]&5)throw ue[1];return{value:ue[0]?ue[1]:void 0,done:!0}}},_resolveRequest=function(te){return function(J){J.parentContext.setCurrentRequest(J);var X=J.bindings,re=J.childRequests,ne=J.target&&J.target.isArray(),oe=!J.parentRequest||!J.parentRequest.target||!J.target||!J.parentRequest.target.matchesArray(J.target.serviceIdentifier);if(ne&&oe)return re.map(function(ce){var he=_resolveRequest(te);return he(ce)});if(J.target.isOptional()&&X.length===0)return;var de=X[0];return _resolveBinding(te,J,de)}},_resolveFactoryFromBinding=function(te,J){var X=getFactoryDetails(te);return tryAndThrowErrorIfStackOverflow(function(){return X.factory.bind(te)(J)},function(){return new Error(CIRCULAR_DEPENDENCY_IN_FACTORY(X.factoryType,J.currentRequest.serviceIdentifier.toString()))})},_getResolvedFromBinding=function(te,J,X){var re,ne=J.childRequests;switch(ensureFullyBound(X),X.type){case BindingTypeEnum.ConstantValue:case BindingTypeEnum.Function:re=X.cache;break;case BindingTypeEnum.Constructor:re=X.implementationType;break;case BindingTypeEnum.Instance:re=resolveInstance(X,X.implementationType,ne,_resolveRequest(te));break;default:re=_resolveFactoryFromBinding(X,J.parentContext)}return re},_resolveInScope=function(te,J,X){var re=tryGetFromScope(te,J);return re!==null||(re=X(),saveToScope(te,J,re)),re},_resolveBinding=function(te,J,X){return _resolveInScope(te,X,function(){var re=_getResolvedFromBinding(te,J,X);return isPromise(re)?re=re.then(function(ne){return _onActivation(J,X,ne)}):re=_onActivation(J,X,re),re})};function _onActivation(te,J,X){var re=_bindingActivation(te.parentContext,J,X),ne=_getContainersIterator(te.parentContext.container),oe,de=ne.next();do{oe=de.value;var ce=te.parentContext,he=te.serviceIdentifier,ue=_getContainerActivationsForService(oe,he);isPromise(re)?re=_activateContainerAsync(ue,ce,re):re=_activateContainer(ue,ce,re),de=ne.next()}while(de.done!==!0&&!getBindingDictionary(oe).hasKey(te.serviceIdentifier));return re}var _bindingActivation=function(te,J,X){var re;return typeof J.onActivation=="function"?re=J.onActivation(te,X):re=X,re},_activateContainer=function(te,J,X){for(var re=te.next();!re.done;){if(X=re.value(J,X),isPromise(X))return _activateContainerAsync(te,J,X);re=te.next()}return X},_activateContainerAsync=function(te,J,X){return __awaiter$1(void 0,void 0,void 0,function(){var re,ne;return __generator$1(this,function(oe){switch(oe.label){case 0:return[4,X];case 1:re=oe.sent(),ne=te.next(),oe.label=2;case 2:return ne.done?[3,4]:[4,ne.value(J,re)];case 3:return re=oe.sent(),ne=te.next(),[3,2];case 4:return[2,re]}})})},_getContainerActivationsForService=function(te,J){var X=te._activations;return X.hasKey(J)?X.get(J).values():[].values()},_getContainersIterator=function(te){for(var J=[te],X=te.parent;X!==null;)J.push(X),X=X.parent;var re=function(){var oe=J.pop();return oe!==void 0?{done:!1,value:oe}:{done:!0,value:void 0}},ne={next:re};return ne};function resolve(te){var J=_resolveRequest(te.plan.rootRequest.requestScope);return J(te.plan.rootRequest)}var traverseAncerstors=function(te,J){var X=te.parentRequest;return X!==null?J(X)?!0:traverseAncerstors(X,J):!1},taggedConstraint=function(te){return function(J){var X=function(re){return re!==null&&re.target!==null&&re.target.matchesTag(te)(J)};return X.metaData=new Metadata(te,J),X}},namedConstraint=taggedConstraint(NAMED_TAG),typeConstraint=function(te){return function(J){var X=null;if(J!==null)if(X=J.bindings[0],typeof te=="string"){var re=X.serviceIdentifier;return re===te}else{var ne=J.bindings[0].implementationType;return te===ne}return!1}},BindingWhenSyntax=(function(){function te(J){this._binding=J}return te.prototype.when=function(J){return this._binding.constraint=J,new BindingOnSyntax(this._binding)},te.prototype.whenTargetNamed=function(J){return this._binding.constraint=namedConstraint(J),new BindingOnSyntax(this._binding)},te.prototype.whenTargetIsDefault=function(){return this._binding.constraint=function(J){if(J===null)return!1;var X=J.target!==null&&!J.target.isNamed()&&!J.target.isTagged();return X},new BindingOnSyntax(this._binding)},te.prototype.whenTargetTagged=function(J,X){return this._binding.constraint=taggedConstraint(J)(X),new BindingOnSyntax(this._binding)},te.prototype.whenInjectedInto=function(J){return this._binding.constraint=function(X){return X!==null&&typeConstraint(J)(X.parentRequest)},new BindingOnSyntax(this._binding)},te.prototype.whenParentNamed=function(J){return this._binding.constraint=function(X){return X!==null&&namedConstraint(J)(X.parentRequest)},new BindingOnSyntax(this._binding)},te.prototype.whenParentTagged=function(J,X){return this._binding.constraint=function(re){return re!==null&&taggedConstraint(J)(X)(re.parentRequest)},new BindingOnSyntax(this._binding)},te.prototype.whenAnyAncestorIs=function(J){return this._binding.constraint=function(X){return X!==null&&traverseAncerstors(X,typeConstraint(J))},new BindingOnSyntax(this._binding)},te.prototype.whenNoAncestorIs=function(J){return this._binding.constraint=function(X){return X!==null&&!traverseAncerstors(X,typeConstraint(J))},new BindingOnSyntax(this._binding)},te.prototype.whenAnyAncestorNamed=function(J){return this._binding.constraint=function(X){return X!==null&&traverseAncerstors(X,namedConstraint(J))},new BindingOnSyntax(this._binding)},te.prototype.whenNoAncestorNamed=function(J){return this._binding.constraint=function(X){return X!==null&&!traverseAncerstors(X,namedConstraint(J))},new BindingOnSyntax(this._binding)},te.prototype.whenAnyAncestorTagged=function(J,X){return this._binding.constraint=function(re){return re!==null&&traverseAncerstors(re,taggedConstraint(J)(X))},new BindingOnSyntax(this._binding)},te.prototype.whenNoAncestorTagged=function(J,X){return this._binding.constraint=function(re){return re!==null&&!traverseAncerstors(re,taggedConstraint(J)(X))},new BindingOnSyntax(this._binding)},te.prototype.whenAnyAncestorMatches=function(J){return this._binding.constraint=function(X){return X!==null&&traverseAncerstors(X,J)},new BindingOnSyntax(this._binding)},te.prototype.whenNoAncestorMatches=function(J){return this._binding.constraint=function(X){return X!==null&&!traverseAncerstors(X,J)},new BindingOnSyntax(this._binding)},te})(),BindingOnSyntax=(function(){function te(J){this._binding=J}return te.prototype.onActivation=function(J){return this._binding.onActivation=J,new BindingWhenSyntax(this._binding)},te.prototype.onDeactivation=function(J){return this._binding.onDeactivation=J,new BindingWhenSyntax(this._binding)},te})(),BindingWhenOnSyntax=(function(){function te(J){this._binding=J,this._bindingWhenSyntax=new BindingWhenSyntax(this._binding),this._bindingOnSyntax=new BindingOnSyntax(this._binding)}return te.prototype.when=function(J){return this._bindingWhenSyntax.when(J)},te.prototype.whenTargetNamed=function(J){return this._bindingWhenSyntax.whenTargetNamed(J)},te.prototype.whenTargetIsDefault=function(){return this._bindingWhenSyntax.whenTargetIsDefault()},te.prototype.whenTargetTagged=function(J,X){return this._bindingWhenSyntax.whenTargetTagged(J,X)},te.prototype.whenInjectedInto=function(J){return this._bindingWhenSyntax.whenInjectedInto(J)},te.prototype.whenParentNamed=function(J){return this._bindingWhenSyntax.whenParentNamed(J)},te.prototype.whenParentTagged=function(J,X){return this._bindingWhenSyntax.whenParentTagged(J,X)},te.prototype.whenAnyAncestorIs=function(J){return this._bindingWhenSyntax.whenAnyAncestorIs(J)},te.prototype.whenNoAncestorIs=function(J){return this._bindingWhenSyntax.whenNoAncestorIs(J)},te.prototype.whenAnyAncestorNamed=function(J){return this._bindingWhenSyntax.whenAnyAncestorNamed(J)},te.prototype.whenAnyAncestorTagged=function(J,X){return this._bindingWhenSyntax.whenAnyAncestorTagged(J,X)},te.prototype.whenNoAncestorNamed=function(J){return this._bindingWhenSyntax.whenNoAncestorNamed(J)},te.prototype.whenNoAncestorTagged=function(J,X){return this._bindingWhenSyntax.whenNoAncestorTagged(J,X)},te.prototype.whenAnyAncestorMatches=function(J){return this._bindingWhenSyntax.whenAnyAncestorMatches(J)},te.prototype.whenNoAncestorMatches=function(J){return this._bindingWhenSyntax.whenNoAncestorMatches(J)},te.prototype.onActivation=function(J){return this._bindingOnSyntax.onActivation(J)},te.prototype.onDeactivation=function(J){return this._bindingOnSyntax.onDeactivation(J)},te})(),BindingInSyntax=(function(){function te(J){this._binding=J}return te.prototype.inRequestScope=function(){return this._binding.scope=BindingScopeEnum.Request,new BindingWhenOnSyntax(this._binding)},te.prototype.inSingletonScope=function(){return this._binding.scope=BindingScopeEnum.Singleton,new BindingWhenOnSyntax(this._binding)},te.prototype.inTransientScope=function(){return this._binding.scope=BindingScopeEnum.Transient,new BindingWhenOnSyntax(this._binding)},te})(),BindingInWhenOnSyntax=(function(){function te(J){this._binding=J,this._bindingWhenSyntax=new BindingWhenSyntax(this._binding),this._bindingOnSyntax=new BindingOnSyntax(this._binding),this._bindingInSyntax=new BindingInSyntax(J)}return te.prototype.inRequestScope=function(){return this._bindingInSyntax.inRequestScope()},te.prototype.inSingletonScope=function(){return this._bindingInSyntax.inSingletonScope()},te.prototype.inTransientScope=function(){return this._bindingInSyntax.inTransientScope()},te.prototype.when=function(J){return this._bindingWhenSyntax.when(J)},te.prototype.whenTargetNamed=function(J){return this._bindingWhenSyntax.whenTargetNamed(J)},te.prototype.whenTargetIsDefault=function(){return this._bindingWhenSyntax.whenTargetIsDefault()},te.prototype.whenTargetTagged=function(J,X){return this._bindingWhenSyntax.whenTargetTagged(J,X)},te.prototype.whenInjectedInto=function(J){return this._bindingWhenSyntax.whenInjectedInto(J)},te.prototype.whenParentNamed=function(J){return this._bindingWhenSyntax.whenParentNamed(J)},te.prototype.whenParentTagged=function(J,X){return this._bindingWhenSyntax.whenParentTagged(J,X)},te.prototype.whenAnyAncestorIs=function(J){return this._bindingWhenSyntax.whenAnyAncestorIs(J)},te.prototype.whenNoAncestorIs=function(J){return this._bindingWhenSyntax.whenNoAncestorIs(J)},te.prototype.whenAnyAncestorNamed=function(J){return this._bindingWhenSyntax.whenAnyAncestorNamed(J)},te.prototype.whenAnyAncestorTagged=function(J,X){return this._bindingWhenSyntax.whenAnyAncestorTagged(J,X)},te.prototype.whenNoAncestorNamed=function(J){return this._bindingWhenSyntax.whenNoAncestorNamed(J)},te.prototype.whenNoAncestorTagged=function(J,X){return this._bindingWhenSyntax.whenNoAncestorTagged(J,X)},te.prototype.whenAnyAncestorMatches=function(J){return this._bindingWhenSyntax.whenAnyAncestorMatches(J)},te.prototype.whenNoAncestorMatches=function(J){return this._bindingWhenSyntax.whenNoAncestorMatches(J)},te.prototype.onActivation=function(J){return this._bindingOnSyntax.onActivation(J)},te.prototype.onDeactivation=function(J){return this._bindingOnSyntax.onDeactivation(J)},te})(),BindingToSyntax=(function(){function te(J){this._binding=J}return te.prototype.to=function(J){return this._binding.type=BindingTypeEnum.Instance,this._binding.implementationType=J,new BindingInWhenOnSyntax(this._binding)},te.prototype.toSelf=function(){if(typeof this._binding.serviceIdentifier!="function")throw new Error(""+INVALID_TO_SELF_VALUE);var J=this._binding.serviceIdentifier;return this.to(J)},te.prototype.toConstantValue=function(J){return this._binding.type=BindingTypeEnum.ConstantValue,this._binding.cache=J,this._binding.dynamicValue=null,this._binding.implementationType=null,this._binding.scope=BindingScopeEnum.Singleton,new BindingWhenOnSyntax(this._binding)},te.prototype.toDynamicValue=function(J){return this._binding.type=BindingTypeEnum.DynamicValue,this._binding.cache=null,this._binding.dynamicValue=J,this._binding.implementationType=null,new BindingInWhenOnSyntax(this._binding)},te.prototype.toConstructor=function(J){return this._binding.type=BindingTypeEnum.Constructor,this._binding.implementationType=J,this._binding.scope=BindingScopeEnum.Singleton,new BindingWhenOnSyntax(this._binding)},te.prototype.toFactory=function(J){return this._binding.type=BindingTypeEnum.Factory,this._binding.factory=J,this._binding.scope=BindingScopeEnum.Singleton,new BindingWhenOnSyntax(this._binding)},te.prototype.toFunction=function(J){if(typeof J!="function")throw new Error(INVALID_FUNCTION_BINDING);var X=this.toConstantValue(J);return this._binding.type=BindingTypeEnum.Function,this._binding.scope=BindingScopeEnum.Singleton,X},te.prototype.toAutoFactory=function(J){return this._binding.type=BindingTypeEnum.Factory,this._binding.factory=function(X){var re=function(){return X.container.get(J)};return re},this._binding.scope=BindingScopeEnum.Singleton,new BindingWhenOnSyntax(this._binding)},te.prototype.toAutoNamedFactory=function(J){return this._binding.type=BindingTypeEnum.Factory,this._binding.factory=function(X){return function(re){return X.container.getNamed(J,re)}},new BindingWhenOnSyntax(this._binding)},te.prototype.toProvider=function(J){return this._binding.type=BindingTypeEnum.Provider,this._binding.provider=J,this._binding.scope=BindingScopeEnum.Singleton,new BindingWhenOnSyntax(this._binding)},te.prototype.toService=function(J){this.toDynamicValue(function(X){return X.container.get(J)})},te})(),ContainerSnapshot=(function(){function te(){}return te.of=function(J,X,re,ne,oe){var de=new te;return de.bindings=J,de.middleware=X,de.deactivations=ne,de.activations=re,de.moduleActivationStore=oe,de},te})();function isClonable(te){return typeof te=="object"&&te!==null&&"clone"in te&&typeof te.clone=="function"}var Lookup=(function(){function te(){this._map=new Map}return te.prototype.getMap=function(){return this._map},te.prototype.add=function(J,X){if(J==null)throw new Error(NULL_ARGUMENT);if(X==null)throw new Error(NULL_ARGUMENT);var re=this._map.get(J);re!==void 0?re.push(X):this._map.set(J,[X])},te.prototype.get=function(J){if(J==null)throw new Error(NULL_ARGUMENT);var X=this._map.get(J);if(X!==void 0)return X;throw new Error(KEY_NOT_FOUND)},te.prototype.remove=function(J){if(J==null)throw new Error(NULL_ARGUMENT);if(!this._map.delete(J))throw new Error(KEY_NOT_FOUND)},te.prototype.removeIntersection=function(J){var X=this;this.traverse(function(re,ne){var oe=J.hasKey(re)?J.get(re):void 0;if(oe!==void 0){var de=ne.filter(function(ce){return!oe.some(function(he){return ce===he})});X._setValue(re,de)}})},te.prototype.removeByCondition=function(J){var X=this,re=[];return this._map.forEach(function(ne,oe){for(var de=[],ce=0,he=ne;ce<he.length;ce++){var ue=he[ce],pe=J(ue);pe?re.push(ue):de.push(ue)}X._setValue(oe,de)}),re},te.prototype.hasKey=function(J){if(J==null)throw new Error(NULL_ARGUMENT);return this._map.has(J)},te.prototype.clone=function(){var J=new te;return this._map.forEach(function(X,re){X.forEach(function(ne){return J.add(re,isClonable(ne)?ne.clone():ne)})}),J},te.prototype.traverse=function(J){this._map.forEach(function(X,re){J(re,X)})},te.prototype._setValue=function(J,X){X.length>0?this._map.set(J,X):this._map.delete(J)},te})(),ModuleActivationStore=(function(){function te(){this._map=new Map}return te.prototype.remove=function(J){if(this._map.has(J)){var X=this._map.get(J);return this._map.delete(J),X}return this._getEmptyHandlersStore()},te.prototype.addDeactivation=function(J,X,re){this._getModuleActivationHandlers(J).onDeactivations.add(X,re)},te.prototype.addActivation=function(J,X,re){this._getModuleActivationHandlers(J).onActivations.add(X,re)},te.prototype.clone=function(){var J=new te;return this._map.forEach(function(X,re){J._map.set(re,{onActivations:X.onActivations.clone(),onDeactivations:X.onDeactivations.clone()})}),J},te.prototype._getModuleActivationHandlers=function(J){var X=this._map.get(J);return X===void 0&&(X=this._getEmptyHandlersStore(),this._map.set(J,X)),X},te.prototype._getEmptyHandlersStore=function(){var J={onActivations:new Lookup,onDeactivations:new Lookup};return J},te})(),__assign=function(){return __assign=Object.assign||function(te){for(var J,X=1,re=arguments.length;X<re;X++){J=arguments[X];for(var ne in J)Object.prototype.hasOwnProperty.call(J,ne)&&(te[ne]=J[ne])}return te},__assign.apply(this,arguments)},__awaiter=function(te,J,X,re){function ne(oe){return oe instanceof X?oe:new X(function(de){de(oe)})}return new(X||(X=Promise))(function(oe,de){function ce(pe){try{ue(re.next(pe))}catch(fe){de(fe)}}function he(pe){try{ue(re.throw(pe))}catch(fe){de(fe)}}function ue(pe){pe.done?oe(pe.value):ne(pe.value).then(ce,he)}ue((re=re.apply(te,J||[])).next())})},__generator=function(te,J){var X={label:0,sent:function(){if(oe[0]&1)throw oe[1];return oe[1]},trys:[],ops:[]},re,ne,oe,de;return de={next:ce(0),throw:ce(1),return:ce(2)},typeof Symbol=="function"&&(de[Symbol.iterator]=function(){return this}),de;function ce(ue){return function(pe){return he([ue,pe])}}function he(ue){if(re)throw new TypeError("Generator is already executing.");for(;X;)try{if(re=1,ne&&(oe=ue[0]&2?ne.return:ue[0]?ne.throw||((oe=ne.return)&&oe.call(ne),0):ne.next)&&!(oe=oe.call(ne,ue[1])).done)return oe;switch(ne=0,oe&&(ue=[ue[0]&2,oe.value]),ue[0]){case 0:case 1:oe=ue;break;case 4:return X.label++,{value:ue[1],done:!1};case 5:X.label++,ne=ue[1],ue=[0];continue;case 7:ue=X.ops.pop(),X.trys.pop();continue;default:if(oe=X.trys,!(oe=oe.length>0&&oe[oe.length-1])&&(ue[0]===6||ue[0]===2)){X=0;continue}if(ue[0]===3&&(!oe||ue[1]>oe[0]&&ue[1]<oe[3])){X.label=ue[1];break}if(ue[0]===6&&X.label<oe[1]){X.label=oe[1],oe=ue;break}if(oe&&X.label<oe[2]){X.label=oe[2],X.ops.push(ue);break}oe[2]&&X.ops.pop(),X.trys.pop();continue}ue=J.call(te,X)}catch(pe){ue=[6,pe],ne=0}finally{re=oe=0}if(ue[0]&5)throw ue[1];return{value:ue[0]?ue[1]:void 0,done:!0}}},__spreadArray=function(te,J,X){if(X||arguments.length===2)for(var re=0,ne=J.length,oe;re<ne;re++)(oe||!(re in J))&&(oe||(oe=Array.prototype.slice.call(J,0,re)),oe[re]=J[re]);return te.concat(oe||Array.prototype.slice.call(J))},Container=(function(){function te(J){var X=J||{};if(typeof X!="object")throw new Error(""+CONTAINER_OPTIONS_MUST_BE_AN_OBJECT);if(X.defaultScope===void 0)X.defaultScope=BindingScopeEnum.Transient;else if(X.defaultScope!==BindingScopeEnum.Singleton&&X.defaultScope!==BindingScopeEnum.Transient&&X.defaultScope!==BindingScopeEnum.Request)throw new Error(""+CONTAINER_OPTIONS_INVALID_DEFAULT_SCOPE);if(X.autoBindInjectable===void 0)X.autoBindInjectable=!1;else if(typeof X.autoBindInjectable!="boolean")throw new Error(""+CONTAINER_OPTIONS_INVALID_AUTO_BIND_INJECTABLE);if(X.skipBaseClassChecks===void 0)X.skipBaseClassChecks=!1;else if(typeof X.skipBaseClassChecks!="boolean")throw new Error(""+CONTAINER_OPTIONS_INVALID_SKIP_BASE_CHECK);this.options={autoBindInjectable:X.autoBindInjectable,defaultScope:X.defaultScope,skipBaseClassChecks:X.skipBaseClassChecks},this.id=id(),this._bindingDictionary=new Lookup,this._snapshots=[],this._middleware=null,this._activations=new Lookup,this._deactivations=new Lookup,this.parent=null,this._metadataReader=new MetadataReader,this._moduleActivationStore=new ModuleActivationStore}return te.merge=function(J,X){for(var re=[],ne=2;ne<arguments.length;ne++)re[ne-2]=arguments[ne];var oe=new te,de=__spreadArray([J,X],re,!0).map(function(ue){return getBindingDictionary(ue)}),ce=getBindingDictionary(oe);function he(ue,pe){ue.traverse(function(fe,be){be.forEach(function(ge){pe.add(ge.serviceIdentifier,ge.clone())})})}return de.forEach(function(ue){he(ue,ce)}),oe},te.prototype.load=function(){for(var J=[],X=0;X<arguments.length;X++)J[X]=arguments[X];for(var re=this._getContainerModuleHelpersFactory(),ne=0,oe=J;ne<oe.length;ne++){var de=oe[ne],ce=re(de.id);de.registry(ce.bindFunction,ce.unbindFunction,ce.isboundFunction,ce.rebindFunction,ce.unbindAsyncFunction,ce.onActivationFunction,ce.onDeactivationFunction)}},te.prototype.loadAsync=function(){for(var J=[],X=0;X<arguments.length;X++)J[X]=arguments[X];return __awaiter(this,void 0,void 0,function(){var re,ne,oe,de,ce;return __generator(this,function(he){switch(he.label){case 0:re=this._getContainerModuleHelpersFactory(),ne=0,oe=J,he.label=1;case 1:return ne<oe.length?(de=oe[ne],ce=re(de.id),[4,de.registry(ce.bindFunction,ce.unbindFunction,ce.isboundFunction,ce.rebindFunction,ce.unbindAsyncFunction,ce.onActivationFunction,ce.onDeactivationFunction)]):[3,4];case 2:he.sent(),he.label=3;case 3:return ne++,[3,1];case 4:return[2]}})})},te.prototype.unload=function(){for(var J=this,X=[],re=0;re<arguments.length;re++)X[re]=arguments[re];X.forEach(function(ne){var oe=J._removeModuleBindings(ne.id);J._deactivateSingletons(oe),J._removeModuleHandlers(ne.id)})},te.prototype.unloadAsync=function(){for(var J=[],X=0;X<arguments.length;X++)J[X]=arguments[X];return __awaiter(this,void 0,void 0,function(){var re,ne,oe,de;return __generator(this,function(ce){switch(ce.label){case 0:re=0,ne=J,ce.label=1;case 1:return re<ne.length?(oe=ne[re],de=this._removeModuleBindings(oe.id),[4,this._deactivateSingletonsAsync(de)]):[3,4];case 2:ce.sent(),this._removeModuleHandlers(oe.id),ce.label=3;case 3:return re++,[3,1];case 4:return[2]}})})},te.prototype.bind=function(J){var X=this.options.defaultScope||BindingScopeEnum.Transient,re=new Binding(J,X);return this._bindingDictionary.add(J,re),new BindingToSyntax(re)},te.prototype.rebind=function(J){return this.unbind(J),this.bind(J)},te.prototype.rebindAsync=function(J){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(X){switch(X.label){case 0:return[4,this.unbindAsync(J)];case 1:return X.sent(),[2,this.bind(J)]}})})},te.prototype.unbind=function(J){if(this._bindingDictionary.hasKey(J)){var X=this._bindingDictionary.get(J);this._deactivateSingletons(X)}this._removeServiceFromDictionary(J)},te.prototype.unbindAsync=function(J){return __awaiter(this,void 0,void 0,function(){var X;return __generator(this,function(re){switch(re.label){case 0:return this._bindingDictionary.hasKey(J)?(X=this._bindingDictionary.get(J),[4,this._deactivateSingletonsAsync(X)]):[3,2];case 1:re.sent(),re.label=2;case 2:return this._removeServiceFromDictionary(J),[2]}})})},te.prototype.unbindAll=function(){var J=this;this._bindingDictionary.traverse(function(X,re){J._deactivateSingletons(re)}),this._bindingDictionary=new Lookup},te.prototype.unbindAllAsync=function(){return __awaiter(this,void 0,void 0,function(){var J,X=this;return __generator(this,function(re){switch(re.label){case 0:return J=[],this._bindingDictionary.traverse(function(ne,oe){J.push(X._deactivateSingletonsAsync(oe))}),[4,Promise.all(J)];case 1:return re.sent(),this._bindingDictionary=new Lookup,[2]}})})},te.prototype.onActivation=function(J,X){this._activations.add(J,X)},te.prototype.onDeactivation=function(J,X){this._deactivations.add(J,X)},te.prototype.isBound=function(J){var X=this._bindingDictionary.hasKey(J);return!X&&this.parent&&(X=this.parent.isBound(J)),X},te.prototype.isCurrentBound=function(J){return this._bindingDictionary.hasKey(J)},te.prototype.isBoundNamed=function(J,X){return this.isBoundTagged(J,NAMED_TAG,X)},te.prototype.isBoundTagged=function(J,X,re){var ne=!1;if(this._bindingDictionary.hasKey(J)){var oe=this._bindingDictionary.get(J),de=createMockRequest(this,J,X,re);ne=oe.some(function(ce){return ce.constraint(de)})}return!ne&&this.parent&&(ne=this.parent.isBoundTagged(J,X,re)),ne},te.prototype.snapshot=function(){this._snapshots.push(ContainerSnapshot.of(this._bindingDictionary.clone(),this._middleware,this._activations.clone(),this._deactivations.clone(),this._moduleActivationStore.clone()))},te.prototype.restore=function(){var J=this._snapshots.pop();if(J===void 0)throw new Error(NO_MORE_SNAPSHOTS_AVAILABLE);this._bindingDictionary=J.bindings,this._activations=J.activations,this._deactivations=J.deactivations,this._middleware=J.middleware,this._moduleActivationStore=J.moduleActivationStore},te.prototype.createChild=function(J){var X=new te(J||this.options);return X.parent=this,X},te.prototype.applyMiddleware=function(){for(var J=[],X=0;X<arguments.length;X++)J[X]=arguments[X];var re=this._middleware?this._middleware:this._planAndResolve();this._middleware=J.reduce(function(ne,oe){return oe(ne)},re)},te.prototype.applyCustomMetadataReader=function(J){this._metadataReader=J},te.prototype.get=function(J){var X=this._getNotAllArgs(J,!1);return this._getButThrowIfAsync(X)},te.prototype.getAsync=function(J){return __awaiter(this,void 0,void 0,function(){var X;return __generator(this,function(re){return X=this._getNotAllArgs(J,!1),[2,this._get(X)]})})},te.prototype.getTagged=function(J,X,re){var ne=this._getNotAllArgs(J,!1,X,re);return this._getButThrowIfAsync(ne)},te.prototype.getTaggedAsync=function(J,X,re){return __awaiter(this,void 0,void 0,function(){var ne;return __generator(this,function(oe){return ne=this._getNotAllArgs(J,!1,X,re),[2,this._get(ne)]})})},te.prototype.getNamed=function(J,X){return this.getTagged(J,NAMED_TAG,X)},te.prototype.getNamedAsync=function(J,X){return this.getTaggedAsync(J,NAMED_TAG,X)},te.prototype.getAll=function(J){var X=this._getAllArgs(J);return this._getButThrowIfAsync(X)},te.prototype.getAllAsync=function(J){var X=this._getAllArgs(J);return this._getAll(X)},te.prototype.getAllTagged=function(J,X,re){var ne=this._getNotAllArgs(J,!0,X,re);return this._getButThrowIfAsync(ne)},te.prototype.getAllTaggedAsync=function(J,X,re){var ne=this._getNotAllArgs(J,!0,X,re);return this._getAll(ne)},te.prototype.getAllNamed=function(J,X){return this.getAllTagged(J,NAMED_TAG,X)},te.prototype.getAllNamedAsync=function(J,X){return this.getAllTaggedAsync(J,NAMED_TAG,X)},te.prototype.resolve=function(J){var X=this.isBound(J);X||this.bind(J).toSelf();var re=this.get(J);return X||this.unbind(J),re},te.prototype._preDestroy=function(J,X){var re,ne;if(Reflect.hasMetadata(PRE_DESTROY,J)){var oe=Reflect.getMetadata(PRE_DESTROY,J);return(ne=(re=X)[oe.value])===null||ne===void 0?void 0:ne.call(re)}},te.prototype._removeModuleHandlers=function(J){var X=this._moduleActivationStore.remove(J);this._activations.removeIntersection(X.onActivations),this._deactivations.removeIntersection(X.onDeactivations)},te.prototype._removeModuleBindings=function(J){return this._bindingDictionary.removeByCondition(function(X){return X.moduleId===J})},te.prototype._deactivate=function(J,X){var re=this,ne=Object.getPrototypeOf(X).constructor;try{if(this._deactivations.hasKey(J.serviceIdentifier)){var oe=this._deactivateContainer(X,this._deactivations.get(J.serviceIdentifier).values());if(isPromise(oe))return this._handleDeactivationError(oe.then(function(){return re._propagateContainerDeactivationThenBindingAndPreDestroyAsync(J,X,ne)}),ne)}var de=this._propagateContainerDeactivationThenBindingAndPreDestroy(J,X,ne);if(isPromise(de))return this._handleDeactivationError(de,ne)}catch(ce){if(ce instanceof Error)throw new Error(ON_DEACTIVATION_ERROR(ne.name,ce.message))}},te.prototype._handleDeactivationError=function(J,X){return __awaiter(this,void 0,void 0,function(){var re;return __generator(this,function(ne){switch(ne.label){case 0:return ne.trys.push([0,2,,3]),[4,J];case 1:return ne.sent(),[3,3];case 2:if(re=ne.sent(),re instanceof Error)throw new Error(ON_DEACTIVATION_ERROR(X.name,re.message));return[3,3];case 3:return[2]}})})},te.prototype._deactivateContainer=function(J,X){for(var re=this,ne=X.next();ne.value;){var oe=ne.value(J);if(isPromise(oe))return oe.then(function(){return re._deactivateContainerAsync(J,X)});ne=X.next()}},te.prototype._deactivateContainerAsync=function(J,X){return __awaiter(this,void 0,void 0,function(){var re;return __generator(this,function(ne){switch(ne.label){case 0:re=X.next(),ne.label=1;case 1:return re.value?[4,re.value(J)]:[3,3];case 2:return ne.sent(),re=X.next(),[3,1];case 3:return[2]}})})},te.prototype._getContainerModuleHelpersFactory=function(){var J=this,X=function(pe,fe){pe._binding.moduleId=fe},re=function(pe){return function(fe){var be=J.bind(fe);return X(be,pe),be}},ne=function(){return function(pe){return J.unbind(pe)}},oe=function(){return function(pe){return J.unbindAsync(pe)}},de=function(){return function(pe){return J.isBound(pe)}},ce=function(pe){return function(fe){var be=J.rebind(fe);return X(be,pe),be}},he=function(pe){return function(fe,be){J._moduleActivationStore.addActivation(pe,fe,be),J.onActivation(fe,be)}},ue=function(pe){return function(fe,be){J._moduleActivationStore.addDeactivation(pe,fe,be),J.onDeactivation(fe,be)}};return function(pe){return{bindFunction:re(pe),isboundFunction:de(),onActivationFunction:he(pe),onDeactivationFunction:ue(pe),rebindFunction:ce(pe),unbindFunction:ne(),unbindAsyncFunction:oe()}}},te.prototype._getAll=function(J){return Promise.all(this._get(J))},te.prototype._get=function(J){var X=__assign(__assign({},J),{contextInterceptor:function(ne){return ne},targetType:TargetTypeEnum.Variable});if(this._middleware){var re=this._middleware(X);if(re==null)throw new Error(INVALID_MIDDLEWARE_RETURN);return re}return this._planAndResolve()(X)},te.prototype._getButThrowIfAsync=function(J){var X=this._get(J);if(isPromiseOrContainsPromise(X))throw new Error(LAZY_IN_SYNC(J.serviceIdentifier));return X},te.prototype._getAllArgs=function(J){var X={avoidConstraints:!0,isMultiInject:!0,serviceIdentifier:J};return X},te.prototype._getNotAllArgs=function(J,X,re,ne){var oe={avoidConstraints:!1,isMultiInject:X,serviceIdentifier:J,key:re,value:ne};return oe},te.prototype._planAndResolve=function(){var J=this;return function(X){var re=plan(J._metadataReader,J,X.isMultiInject,X.targetType,X.serviceIdentifier,X.key,X.value,X.avoidConstraints);re=X.contextInterceptor(re);var ne=resolve(re);return ne}},te.prototype._deactivateIfSingleton=function(J){var X=this;if(J.activated)return isPromise(J.cache)?J.cache.then(function(re){return X._deactivate(J,re)}):this._deactivate(J,J.cache)},te.prototype._deactivateSingletons=function(J){for(var X=0,re=J;X<re.length;X++){var ne=re[X],oe=this._deactivateIfSingleton(ne);if(isPromise(oe))throw new Error(ASYNC_UNBIND_REQUIRED)}},te.prototype._deactivateSingletonsAsync=function(J){return __awaiter(this,void 0,void 0,function(){var X=this;return __generator(this,function(re){switch(re.label){case 0:return[4,Promise.all(J.map(function(ne){return X._deactivateIfSingleton(ne)}))];case 1:return re.sent(),[2]}})})},te.prototype._propagateContainerDeactivationThenBindingAndPreDestroy=function(J,X,re){return this.parent?this._deactivate.bind(this.parent)(J,X):this._bindingDeactivationAndPreDestroy(J,X,re)},te.prototype._propagateContainerDeactivationThenBindingAndPreDestroyAsync=function(J,X,re){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(ne){switch(ne.label){case 0:return this.parent?[4,this._deactivate.bind(this.parent)(J,X)]:[3,2];case 1:return ne.sent(),[3,4];case 2:return[4,this._bindingDeactivationAndPreDestroyAsync(J,X,re)];case 3:ne.sent(),ne.label=4;case 4:return[2]}})})},te.prototype._removeServiceFromDictionary=function(J){try{this._bindingDictionary.remove(J)}catch{throw new Error(CANNOT_UNBIND+" "+getServiceIdentifierAsString(J))}},te.prototype._bindingDeactivationAndPreDestroy=function(J,X,re){var ne=this;if(typeof J.onDeactivation=="function"){var oe=J.onDeactivation(X);if(isPromise(oe))return oe.then(function(){return ne._preDestroy(re,X)})}return this._preDestroy(re,X)},te.prototype._bindingDeactivationAndPreDestroyAsync=function(J,X,re){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(ne){switch(ne.label){case 0:return typeof J.onDeactivation!="function"?[3,2]:[4,J.onDeactivation(X)];case 1:ne.sent(),ne.label=2;case 2:return[4,this._preDestroy(re,X)];case 3:return ne.sent(),[2]}})})},te})();function getFirstArrayDuplicate(te){for(var J=new Set,X=0,re=te;X<re.length;X++){var ne=re[X];if(J.has(ne))return ne;J.add(ne)}}function targetIsConstructorFunction(te){return te.prototype!==void 0}function _throwIfMethodParameter(te){if(te!==void 0)throw new Error(INVALID_DECORATOR_OPERATION)}function tagParameter(te,J,X,re){_throwIfMethodParameter(J),_tagParameterOrProperty(TAGGED,te,X.toString(),re)}function tagProperty(te,J,X){if(targetIsConstructorFunction(te))throw new Error(INVALID_DECORATOR_OPERATION);_tagParameterOrProperty(TAGGED_PROP,te.constructor,J,X)}function _ensureNoMetadataKeyDuplicates(te){var J=[];if(Array.isArray(te)){J=te;var X=getFirstArrayDuplicate(J.map(function(re){return re.key}));if(X!==void 0)throw new Error(DUPLICATED_METADATA+" "+X.toString())}else J=[te];return J}function _tagParameterOrProperty(te,J,X,re){var ne=_ensureNoMetadataKeyDuplicates(re),oe={};Reflect.hasOwnMetadata(te,J)&&(oe=Reflect.getMetadata(te,J));var de=oe[X];if(de===void 0)de=[];else for(var ce=function(fe){if(ne.some(function(be){return be.key===fe.key}))throw new Error(DUPLICATED_METADATA+" "+fe.key.toString())},he=0,ue=de;he<ue.length;he++){var pe=ue[he];ce(pe)}de.push.apply(de,ne),oe[X]=de,Reflect.defineMetadata(te,oe,J)}function createTaggedDecorator(te){return function(J,X,re){typeof re=="number"?tagParameter(J,X,re,te):tagProperty(J,X,te)}}function injectable(){return function(te){if(Reflect.hasOwnMetadata(PARAM_TYPES,te))throw new Error(DUPLICATED_INJECTABLE_DECORATOR);var J=Reflect.getMetadata(DESIGN_PARAM_TYPES,te)||[];return Reflect.defineMetadata(PARAM_TYPES,J,te),te}}function injectBase(te){return function(J){return function(X,re,ne){if(J===void 0){var oe=typeof X=="function"?X.name:X.constructor.name;throw new Error(UNDEFINED_INJECT_ANNOTATION(oe))}return createTaggedDecorator(new Metadata(te,J))(X,re,ne)}}}var inject=injectBase(INJECT_TAG);const registerRequest$1=(te,J)=>(X,re)=>{J.bind(re).to(re).inTransientScope(),injectable()(re);const ne=te.broker.registerRequest(X,oe=>J.get(re).handle(oe));return{dispose:()=>{J.isBound(re)&&J.unbind(re),ne.dispose()}}},brokerExtensions=(te,J)=>({registerRequest:registerRequest$1(te,J)});function rand(te){const J=Math.random()*16|0;return(te==="x"?J:J&3|8).toString(16)}function generateId(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,rand)}const mapArrayToLabelValue=(te,J,X)=>te.map(re=>{const ne=re[J],oe=re[X];return(ne===""||ne==null)&&typeof oe=="string"&&oe.trim()!==""?{label:oe,value:oe}:(ne===""||ne==null)&&(oe===""||oe==null)?null:{label:ne,value:oe}}).filter(re=>re!==null);function createConnectToStoreDecorator(te){return function(X){return(re,ne)=>{Object.defineProperty(re,ne,{get(){return this[`__${ne}`]},set(ce){this[`__${ne}`]!==ce&&(this[`__${ne}`]=Array.isArray(ce)?[...ce]:typeof ce=="object"&&ce!==null?{...ce}:ce,this.requestUpdate(ne))},configurable:!0,enumerable:!0});const oe=re.connectedCallback,de=re.disconnectedCallback;re.connectedCallback=function(){oe&&oe.call(this),this[ne]=X(te.getState()),this[`__unsubscribe__${ne}`]=te.subscribe(()=>{const ce=X(te.getState());this[ne]=Array.isArray(ce)?[...ce]:typeof ce=="object"&&ce!==null?{...ce}:ce})},re.disconnectedCallback=function(){de&&de.call(this),this[`__unsubscribe__${ne}`]&&this[`__unsubscribe__${ne}`]()}}}}function createConnectedProperty(te){return(J,X={})=>{const re=createConnectToStoreDecorator(te);return(ne,oe)=>{n$z(X)(ne,oe),re(J)(ne,oe)}}}const pdfViewerId="pdf-viewer";let shellLocaleManager;const useLocalization=async te=>{L$5("ca"),shellLocaleManager=await te.createLocaleManager(locales$1)},translate$1=te=>shellLocaleManager?shellLocaleManager.translate(te):te,locales$1={ca:{[primariaShellId]:{title:"Estació de Treball Clínica",actions:{create:"Crear",toggleMenuClose:"Tancar menú",toggleMenuOpen:"Expandir menú",askExit:"Atenció, vols sortir igualment?",finalizeVisit:"Finalitzar visita"},clinicalMonitoring:{title:"Seguiment clínic"},errors:{session:"Hi ha hagut un error amb la sessió. Siusplau, tanca i torna a obrir l'aplicació.",invalidPatient:"El pacient actual no és vàlid. Siusplau, tanca i torna a obrir l'aplicació."},header:{workCenter:"Centre treball",role:"Tipus de profesional",speciality:"Àmbit treball"},busyManager:{title:"Tasques pendents:"},pdfManager:{uploaded:"Document disponible al visor de resultats",alreadyUploaded:"Ja s'ha carregat un document amb aquest nom",navButtonLabel:"Visor PDF",missingData:"Es necesita un document o URL per enviar al visor de resultats",duplicatedSource:"Només pots envar un document o URL a la vegada"},pdfVisor:{noPdfSelected:"No hi ha cap PDF seleccionat"}}}},styles$p=".item{display:flex;cursor:pointer;border-radius:8px;padding:8px;justify-content:center;transition:background-color .3s ease}.item[expanded]{justify-content:space-between}.item:hover{background-color:var(--color-primary-900);color:#fff}.item .icon-label{display:flex;gap:8px;transition:background-color .3s}.item.active{outline:2px solid white;outline-offset:-2px}";/**
|
|
210
|
+
`+te+" - "+X}else return" "+te}function getFunctionName(te){if(te.name)return te.name;var J=te.toString(),X=J.match(/^function\s*([^\s(]+)/);return X?X[1]:"Anonymous function: "+J}function getSymbolDescription(te){return te.toString().slice(7,-1)}var Context=(function(){function te(J){this.id=id(),this.container=J}return te.prototype.addPlan=function(J){this.plan=J},te.prototype.setCurrentRequest=function(J){this.currentRequest=J},te})(),Metadata=(function(){function te(J,X){this.key=J,this.value=X}return te.prototype.toString=function(){return this.key===NAMED_TAG?"named: "+String(this.value).toString()+" ":"tagged: { key:"+this.key.toString()+", value: "+String(this.value)+" }"},te})(),Plan=(function(){function te(J,X){this.parentContext=J,this.rootRequest=X}return te})(),LazyServiceIdentifier=(function(){function te(J){this._cb=J}return te.prototype.unwrap=function(){return this._cb()},te})(),QueryableString=(function(){function te(J){this.str=J}return te.prototype.startsWith=function(J){return this.str.indexOf(J)===0},te.prototype.endsWith=function(J){var X="",re=J.split("").reverse().join("");return X=this.str.split("").reverse().join(""),this.startsWith.call({str:X},re)},te.prototype.contains=function(J){return this.str.indexOf(J)!==-1},te.prototype.equals=function(J){return this.str===J},te.prototype.value=function(){return this.str},te})(),Target=(function(){function te(J,X,re,ne){this.id=id(),this.type=J,this.serviceIdentifier=re;var oe=typeof X=="symbol"?getSymbolDescription(X):X;this.name=new QueryableString(oe||""),this.identifier=X,this.metadata=new Array;var de=null;typeof ne=="string"?de=new Metadata(NAMED_TAG,ne):ne instanceof Metadata&&(de=ne),de!==null&&this.metadata.push(de)}return te.prototype.hasTag=function(J){for(var X=0,re=this.metadata;X<re.length;X++){var ne=re[X];if(ne.key===J)return!0}return!1},te.prototype.isArray=function(){return this.hasTag(MULTI_INJECT_TAG)},te.prototype.matchesArray=function(J){return this.matchesTag(MULTI_INJECT_TAG)(J)},te.prototype.isNamed=function(){return this.hasTag(NAMED_TAG)},te.prototype.isTagged=function(){return this.metadata.some(function(J){return NON_CUSTOM_TAG_KEYS.every(function(X){return J.key!==X})})},te.prototype.isOptional=function(){return this.matchesTag(OPTIONAL_TAG)(!0)},te.prototype.getNamedTag=function(){return this.isNamed()?this.metadata.filter(function(J){return J.key===NAMED_TAG})[0]:null},te.prototype.getCustomTags=function(){return this.isTagged()?this.metadata.filter(function(J){return NON_CUSTOM_TAG_KEYS.every(function(X){return J.key!==X})}):null},te.prototype.matchesNamedTag=function(J){return this.matchesTag(NAMED_TAG)(J)},te.prototype.matchesTag=function(J){var X=this;return function(re){for(var ne=0,oe=X.metadata;ne<oe.length;ne++){var de=oe[ne];if(de.key===J&&de.value===re)return!0}return!1}},te})(),__spreadArray$2=function(te,J,X){if(X||arguments.length===2)for(var re=0,ne=J.length,oe;re<ne;re++)(oe||!(re in J))&&(oe||(oe=Array.prototype.slice.call(J,0,re)),oe[re]=J[re]);return te.concat(oe||Array.prototype.slice.call(J))};function getDependencies$1(te,J){var X=getFunctionName(J);return getTargets(te,X,J,!1)}function getTargets(te,J,X,re){var ne=te.getConstructorMetadata(X),oe=ne.compilerGeneratedMetadata;if(oe===void 0){var de=MISSING_INJECTABLE_ANNOTATION+" "+J+".";throw new Error(de)}var ce=ne.userGeneratedMetadata,he=Object.keys(ce),ue=X.length===0&&he.length>0,pe=he.length>X.length,fe=ue||pe?he.length:X.length,be=getConstructorArgsAsTargets(re,J,oe,ce,fe),ge=getClassPropsAsTargets(te,X,J),ve=__spreadArray$2(__spreadArray$2([],be,!0),ge,!0);return ve}function getConstructorArgsAsTarget(te,J,X,re,ne){var oe=ne[te.toString()]||[],de=formatTargetMetadata(oe),ce=de.unmanaged!==!0,he=re[te],ue=de.inject||de.multiInject;if(he=ue||he,he instanceof LazyServiceIdentifier&&(he=he.unwrap()),ce){var pe=he===Object,fe=he===Function,be=he===void 0,ge=pe||fe||be;if(!J&&ge){var ve=MISSING_INJECT_ANNOTATION+" argument "+te+" in class "+X+".";throw new Error(ve)}var me=new Target(TargetTypeEnum.ConstructorArgument,de.targetName,he);return me.metadata=oe,me}return null}function getConstructorArgsAsTargets(te,J,X,re,ne){for(var oe=[],de=0;de<ne;de++){var ce=de,he=getConstructorArgsAsTarget(ce,te,J,X,re);he!==null&&oe.push(he)}return oe}function _getServiceIdentifierForProperty(te,J,X,re){var ne=te||J;if(ne===void 0){var oe=MISSING_INJECTABLE_ANNOTATION+" for property "+String(X)+" in class "+re+".";throw new Error(oe)}return ne}function getClassPropsAsTargets(te,J,X){for(var re=te.getPropertiesMetadata(J),ne=[],oe=Object.getOwnPropertySymbols(re),de=Object.keys(re),ce=de.concat(oe),he=0,ue=ce;he<ue.length;he++){var pe=ue[he],fe=re[pe],be=formatTargetMetadata(fe),ge=be.targetName||pe,ve=_getServiceIdentifierForProperty(be.inject,be.multiInject,pe,X),me=new Target(TargetTypeEnum.ClassProperty,ge,ve);me.metadata=fe,ne.push(me)}var _e=Object.getPrototypeOf(J.prototype).constructor;if(_e!==Object){var ye=getClassPropsAsTargets(te,_e,X);ne=__spreadArray$2(__spreadArray$2([],ne,!0),ye,!0)}return ne}function getBaseClassDependencyCount(te,J){var X=Object.getPrototypeOf(J.prototype).constructor;if(X!==Object){var re=getFunctionName(X),ne=getTargets(te,re,X,!0),oe=ne.map(function(he){return he.metadata.filter(function(ue){return ue.key===UNMANAGED_TAG})}),de=[].concat.apply([],oe).length,ce=ne.length-de;return ce>0?ce:getBaseClassDependencyCount(te,X)}else return 0}function formatTargetMetadata(te){var J={};return te.forEach(function(X){J[X.key.toString()]=X.value}),{inject:J[INJECT_TAG],multiInject:J[MULTI_INJECT_TAG],targetName:J[NAME_TAG],unmanaged:J[UNMANAGED_TAG]}}var Request$1=(function(){function te(J,X,re,ne,oe){this.id=id(),this.serviceIdentifier=J,this.parentContext=X,this.parentRequest=re,this.target=oe,this.childRequests=[],this.bindings=Array.isArray(ne)?ne:[ne],this.requestScope=re===null?new Map:null}return te.prototype.addChildRequest=function(J,X,re){var ne=new te(J,this.parentContext,this,X,re);return this.childRequests.push(ne),ne},te})();function getBindingDictionary(te){return te._bindingDictionary}function _createTarget(te,J,X,re,ne,oe){var de=te?MULTI_INJECT_TAG:INJECT_TAG,ce=new Metadata(de,X),he=new Target(J,re,X,ce);if(ne!==void 0){var ue=new Metadata(ne,oe);he.metadata.push(ue)}return he}function _getActiveBindings(te,J,X,re,ne){var oe=getBindings(X.container,ne.serviceIdentifier),de=[];return oe.length===BindingCount.NoBindingsAvailable&&X.container.options.autoBindInjectable&&typeof ne.serviceIdentifier=="function"&&te.getConstructorMetadata(ne.serviceIdentifier).compilerGeneratedMetadata&&(X.container.bind(ne.serviceIdentifier).toSelf(),oe=getBindings(X.container,ne.serviceIdentifier)),J?de=oe:de=oe.filter(function(ce){var he=new Request$1(ce.serviceIdentifier,X,re,ce,ne);return ce.constraint(he)}),_validateActiveBindingCount(ne.serviceIdentifier,de,ne,X.container),de}function _validateActiveBindingCount(te,J,X,re){switch(J.length){case BindingCount.NoBindingsAvailable:if(X.isOptional())return J;var ne=getServiceIdentifierAsString(te),oe=NOT_REGISTERED;throw oe+=listMetadataForTarget(ne,X),oe+=listRegisteredBindingsForServiceIdentifier(re,ne,getBindings),new Error(oe);case BindingCount.OnlyOneBindingAvailable:return J;case BindingCount.MultipleBindingsAvailable:default:if(X.isArray())return J;var ne=getServiceIdentifierAsString(te),oe=AMBIGUOUS_MATCH+" "+ne;throw oe+=listRegisteredBindingsForServiceIdentifier(re,ne,getBindings),new Error(oe)}}function _createSubRequests(te,J,X,re,ne,oe){var de,ce;if(ne===null){de=_getActiveBindings(te,J,re,null,oe),ce=new Request$1(X,re,null,de,oe);var he=new Plan(re,ce);re.addPlan(he)}else de=_getActiveBindings(te,J,re,ne,oe),ce=ne.addChildRequest(oe.serviceIdentifier,de,oe);de.forEach(function(ue){var pe=null;if(oe.isArray())pe=ce.addChildRequest(ue.serviceIdentifier,ue,oe);else{if(ue.cache)return;pe=ce}if(ue.type===BindingTypeEnum.Instance&&ue.implementationType!==null){var fe=getDependencies$1(te,ue.implementationType);if(!re.container.options.skipBaseClassChecks){var be=getBaseClassDependencyCount(te,ue.implementationType);if(fe.length<be){var ge=ARGUMENTS_LENGTH_MISMATCH(getFunctionName(ue.implementationType));throw new Error(ge)}}fe.forEach(function(ve){_createSubRequests(te,!1,ve.serviceIdentifier,re,pe,ve)})}})}function getBindings(te,J){var X=[],re=getBindingDictionary(te);return re.hasKey(J)?X=re.get(J):te.parent!==null&&(X=getBindings(te.parent,J)),X}function plan(te,J,X,re,ne,oe,de,ce){ce===void 0&&(ce=!1);var he=new Context(J),ue=_createTarget(X,re,ne,"",oe,de);try{return _createSubRequests(te,ce,ne,he,null,ue),he}catch(pe){throw isStackOverflowExeption(pe)&&circularDependencyToException(he.plan.rootRequest),pe}}function createMockRequest(te,J,X,re){var ne=new Target(TargetTypeEnum.Variable,"",J,new Metadata(X,re)),oe=new Context(te),de=new Request$1(J,oe,null,[],ne);return de}function isPromise(te){var J=typeof te=="object"&&te!==null||typeof te=="function";return J&&typeof te.then=="function"}function isPromiseOrContainsPromise(te){return isPromise(te)?!0:Array.isArray(te)&&te.some(isPromise)}var __awaiter$3=function(te,J,X,re){function ne(oe){return oe instanceof X?oe:new X(function(de){de(oe)})}return new(X||(X=Promise))(function(oe,de){function ce(pe){try{ue(re.next(pe))}catch(fe){de(fe)}}function he(pe){try{ue(re.throw(pe))}catch(fe){de(fe)}}function ue(pe){pe.done?oe(pe.value):ne(pe.value).then(ce,he)}ue((re=re.apply(te,J||[])).next())})},__generator$3=function(te,J){var X={label:0,sent:function(){if(oe[0]&1)throw oe[1];return oe[1]},trys:[],ops:[]},re,ne,oe,de;return de={next:ce(0),throw:ce(1),return:ce(2)},typeof Symbol=="function"&&(de[Symbol.iterator]=function(){return this}),de;function ce(ue){return function(pe){return he([ue,pe])}}function he(ue){if(re)throw new TypeError("Generator is already executing.");for(;X;)try{if(re=1,ne&&(oe=ue[0]&2?ne.return:ue[0]?ne.throw||((oe=ne.return)&&oe.call(ne),0):ne.next)&&!(oe=oe.call(ne,ue[1])).done)return oe;switch(ne=0,oe&&(ue=[ue[0]&2,oe.value]),ue[0]){case 0:case 1:oe=ue;break;case 4:return X.label++,{value:ue[1],done:!1};case 5:X.label++,ne=ue[1],ue=[0];continue;case 7:ue=X.ops.pop(),X.trys.pop();continue;default:if(oe=X.trys,!(oe=oe.length>0&&oe[oe.length-1])&&(ue[0]===6||ue[0]===2)){X=0;continue}if(ue[0]===3&&(!oe||ue[1]>oe[0]&&ue[1]<oe[3])){X.label=ue[1];break}if(ue[0]===6&&X.label<oe[1]){X.label=oe[1],oe=ue;break}if(oe&&X.label<oe[2]){X.label=oe[2],X.ops.push(ue);break}oe[2]&&X.ops.pop(),X.trys.pop();continue}ue=J.call(te,X)}catch(pe){ue=[6,pe],ne=0}finally{re=oe=0}if(ue[0]&5)throw ue[1];return{value:ue[0]?ue[1]:void 0,done:!0}}},tryGetFromScope=function(te,J){return J.scope===BindingScopeEnum.Singleton&&J.activated?J.cache:J.scope===BindingScopeEnum.Request&&te.has(J.id)?te.get(J.id):null},saveToScope=function(te,J,X){J.scope===BindingScopeEnum.Singleton&&_saveToSingletonScope(J,X),J.scope===BindingScopeEnum.Request&&_saveToRequestScope(te,J,X)},_saveToRequestScope=function(te,J,X){te.has(J.id)||te.set(J.id,X)},_saveToSingletonScope=function(te,J){te.cache=J,te.activated=!0,isPromise(J)&&_saveAsyncResultToSingletonScope(te,J)},_saveAsyncResultToSingletonScope=function(te,J){return __awaiter$3(void 0,void 0,void 0,function(){var X,re;return __generator$3(this,function(ne){switch(ne.label){case 0:return ne.trys.push([0,2,,3]),[4,J];case 1:return X=ne.sent(),te.cache=X,[3,3];case 2:throw re=ne.sent(),te.cache=null,te.activated=!1,re;case 3:return[2]}})})},FactoryType;(function(te){te.DynamicValue="toDynamicValue",te.Factory="toFactory",te.Provider="toProvider"})(FactoryType||(FactoryType={}));var ensureFullyBound=function(te){var J=null;switch(te.type){case BindingTypeEnum.ConstantValue:case BindingTypeEnum.Function:J=te.cache;break;case BindingTypeEnum.Constructor:case BindingTypeEnum.Instance:J=te.implementationType;break;case BindingTypeEnum.DynamicValue:J=te.dynamicValue;break;case BindingTypeEnum.Provider:J=te.provider;break;case BindingTypeEnum.Factory:J=te.factory;break}if(J===null){var X=getServiceIdentifierAsString(te.serviceIdentifier);throw new Error(INVALID_BINDING_TYPE+" "+X)}},getFactoryDetails=function(te){switch(te.type){case BindingTypeEnum.Factory:return{factory:te.factory,factoryType:FactoryType.Factory};case BindingTypeEnum.Provider:return{factory:te.provider,factoryType:FactoryType.Provider};case BindingTypeEnum.DynamicValue:return{factory:te.dynamicValue,factoryType:FactoryType.DynamicValue};default:throw new Error("Unexpected factory type "+te.type)}},__assign$1=function(){return __assign$1=Object.assign||function(te){for(var J,X=1,re=arguments.length;X<re;X++){J=arguments[X];for(var ne in J)Object.prototype.hasOwnProperty.call(J,ne)&&(te[ne]=J[ne])}return te},__assign$1.apply(this,arguments)},__awaiter$2=function(te,J,X,re){function ne(oe){return oe instanceof X?oe:new X(function(de){de(oe)})}return new(X||(X=Promise))(function(oe,de){function ce(pe){try{ue(re.next(pe))}catch(fe){de(fe)}}function he(pe){try{ue(re.throw(pe))}catch(fe){de(fe)}}function ue(pe){pe.done?oe(pe.value):ne(pe.value).then(ce,he)}ue((re=re.apply(te,J||[])).next())})},__generator$2=function(te,J){var X={label:0,sent:function(){if(oe[0]&1)throw oe[1];return oe[1]},trys:[],ops:[]},re,ne,oe,de;return de={next:ce(0),throw:ce(1),return:ce(2)},typeof Symbol=="function"&&(de[Symbol.iterator]=function(){return this}),de;function ce(ue){return function(pe){return he([ue,pe])}}function he(ue){if(re)throw new TypeError("Generator is already executing.");for(;X;)try{if(re=1,ne&&(oe=ue[0]&2?ne.return:ue[0]?ne.throw||((oe=ne.return)&&oe.call(ne),0):ne.next)&&!(oe=oe.call(ne,ue[1])).done)return oe;switch(ne=0,oe&&(ue=[ue[0]&2,oe.value]),ue[0]){case 0:case 1:oe=ue;break;case 4:return X.label++,{value:ue[1],done:!1};case 5:X.label++,ne=ue[1],ue=[0];continue;case 7:ue=X.ops.pop(),X.trys.pop();continue;default:if(oe=X.trys,!(oe=oe.length>0&&oe[oe.length-1])&&(ue[0]===6||ue[0]===2)){X=0;continue}if(ue[0]===3&&(!oe||ue[1]>oe[0]&&ue[1]<oe[3])){X.label=ue[1];break}if(ue[0]===6&&X.label<oe[1]){X.label=oe[1],oe=ue;break}if(oe&&X.label<oe[2]){X.label=oe[2],X.ops.push(ue);break}oe[2]&&X.ops.pop(),X.trys.pop();continue}ue=J.call(te,X)}catch(pe){ue=[6,pe],ne=0}finally{re=oe=0}if(ue[0]&5)throw ue[1];return{value:ue[0]?ue[1]:void 0,done:!0}}},__spreadArray$1=function(te,J,X){if(X||arguments.length===2)for(var re=0,ne=J.length,oe;re<ne;re++)(oe||!(re in J))&&(oe||(oe=Array.prototype.slice.call(J,0,re)),oe[re]=J[re]);return te.concat(oe||Array.prototype.slice.call(J))};function _resolveRequests(te,J){return te.reduce(function(X,re){var ne=J(re),oe=re.target.type;return oe===TargetTypeEnum.ConstructorArgument?X.constructorInjections.push(ne):(X.propertyRequests.push(re),X.propertyInjections.push(ne)),X.isAsync||(X.isAsync=isPromiseOrContainsPromise(ne)),X},{constructorInjections:[],propertyInjections:[],propertyRequests:[],isAsync:!1})}function _createInstance(te,J,X){var re;if(J.length>0){var ne=_resolveRequests(J,X),oe=__assign$1(__assign$1({},ne),{constr:te});ne.isAsync?re=createInstanceWithInjectionsAsync(oe):re=createInstanceWithInjections(oe)}else re=new te;return re}function createInstanceWithInjections(te){var J,X=new((J=te.constr).bind.apply(J,__spreadArray$1([void 0],te.constructorInjections,!1)));return te.propertyRequests.forEach(function(re,ne){var oe=re.target.identifier,de=te.propertyInjections[ne];(!re.target.isOptional()||de!==void 0)&&(X[oe]=de)}),X}function createInstanceWithInjectionsAsync(te){return __awaiter$2(this,void 0,void 0,function(){var J,X;return __generator$2(this,function(re){switch(re.label){case 0:return[4,possiblyWaitInjections(te.constructorInjections)];case 1:return J=re.sent(),[4,possiblyWaitInjections(te.propertyInjections)];case 2:return X=re.sent(),[2,createInstanceWithInjections(__assign$1(__assign$1({},te),{constructorInjections:J,propertyInjections:X}))]}})})}function possiblyWaitInjections(te){return __awaiter$2(this,void 0,void 0,function(){var J,X,re,ne;return __generator$2(this,function(oe){for(J=[],X=0,re=te;X<re.length;X++)ne=re[X],Array.isArray(ne)?J.push(Promise.all(ne)):J.push(ne);return[2,Promise.all(J)]})})}function _getInstanceAfterPostConstruct(te,J){var X=_postConstruct(te,J);return isPromise(X)?X.then(function(){return J}):J}function _postConstruct(te,J){var X,re;if(Reflect.hasMetadata(POST_CONSTRUCT,te)){var ne=Reflect.getMetadata(POST_CONSTRUCT,te);try{return(re=(X=J)[ne.value])===null||re===void 0?void 0:re.call(X)}catch(oe){if(oe instanceof Error)throw new Error(POST_CONSTRUCT_ERROR(te.name,oe.message))}}}function _validateInstanceResolution(te,J){te.scope!==BindingScopeEnum.Singleton&&_throwIfHandlingDeactivation(te,J)}function _throwIfHandlingDeactivation(te,J){var X="Class cannot be instantiated in "+(te.scope===BindingScopeEnum.Request?"request":"transient")+" scope.";if(typeof te.onDeactivation=="function")throw new Error(ON_DEACTIVATION_ERROR(J.name,X));if(Reflect.hasMetadata(PRE_DESTROY,J))throw new Error(PRE_DESTROY_ERROR(J.name,X))}function resolveInstance(te,J,X,re){_validateInstanceResolution(te,J);var ne=_createInstance(J,X,re);return isPromise(ne)?ne.then(function(oe){return _getInstanceAfterPostConstruct(J,oe)}):_getInstanceAfterPostConstruct(J,ne)}var __awaiter$1=function(te,J,X,re){function ne(oe){return oe instanceof X?oe:new X(function(de){de(oe)})}return new(X||(X=Promise))(function(oe,de){function ce(pe){try{ue(re.next(pe))}catch(fe){de(fe)}}function he(pe){try{ue(re.throw(pe))}catch(fe){de(fe)}}function ue(pe){pe.done?oe(pe.value):ne(pe.value).then(ce,he)}ue((re=re.apply(te,J||[])).next())})},__generator$1=function(te,J){var X={label:0,sent:function(){if(oe[0]&1)throw oe[1];return oe[1]},trys:[],ops:[]},re,ne,oe,de;return de={next:ce(0),throw:ce(1),return:ce(2)},typeof Symbol=="function"&&(de[Symbol.iterator]=function(){return this}),de;function ce(ue){return function(pe){return he([ue,pe])}}function he(ue){if(re)throw new TypeError("Generator is already executing.");for(;X;)try{if(re=1,ne&&(oe=ue[0]&2?ne.return:ue[0]?ne.throw||((oe=ne.return)&&oe.call(ne),0):ne.next)&&!(oe=oe.call(ne,ue[1])).done)return oe;switch(ne=0,oe&&(ue=[ue[0]&2,oe.value]),ue[0]){case 0:case 1:oe=ue;break;case 4:return X.label++,{value:ue[1],done:!1};case 5:X.label++,ne=ue[1],ue=[0];continue;case 7:ue=X.ops.pop(),X.trys.pop();continue;default:if(oe=X.trys,!(oe=oe.length>0&&oe[oe.length-1])&&(ue[0]===6||ue[0]===2)){X=0;continue}if(ue[0]===3&&(!oe||ue[1]>oe[0]&&ue[1]<oe[3])){X.label=ue[1];break}if(ue[0]===6&&X.label<oe[1]){X.label=oe[1],oe=ue;break}if(oe&&X.label<oe[2]){X.label=oe[2],X.ops.push(ue);break}oe[2]&&X.ops.pop(),X.trys.pop();continue}ue=J.call(te,X)}catch(pe){ue=[6,pe],ne=0}finally{re=oe=0}if(ue[0]&5)throw ue[1];return{value:ue[0]?ue[1]:void 0,done:!0}}},_resolveRequest=function(te){return function(J){J.parentContext.setCurrentRequest(J);var X=J.bindings,re=J.childRequests,ne=J.target&&J.target.isArray(),oe=!J.parentRequest||!J.parentRequest.target||!J.target||!J.parentRequest.target.matchesArray(J.target.serviceIdentifier);if(ne&&oe)return re.map(function(ce){var he=_resolveRequest(te);return he(ce)});if(J.target.isOptional()&&X.length===0)return;var de=X[0];return _resolveBinding(te,J,de)}},_resolveFactoryFromBinding=function(te,J){var X=getFactoryDetails(te);return tryAndThrowErrorIfStackOverflow(function(){return X.factory.bind(te)(J)},function(){return new Error(CIRCULAR_DEPENDENCY_IN_FACTORY(X.factoryType,J.currentRequest.serviceIdentifier.toString()))})},_getResolvedFromBinding=function(te,J,X){var re,ne=J.childRequests;switch(ensureFullyBound(X),X.type){case BindingTypeEnum.ConstantValue:case BindingTypeEnum.Function:re=X.cache;break;case BindingTypeEnum.Constructor:re=X.implementationType;break;case BindingTypeEnum.Instance:re=resolveInstance(X,X.implementationType,ne,_resolveRequest(te));break;default:re=_resolveFactoryFromBinding(X,J.parentContext)}return re},_resolveInScope=function(te,J,X){var re=tryGetFromScope(te,J);return re!==null||(re=X(),saveToScope(te,J,re)),re},_resolveBinding=function(te,J,X){return _resolveInScope(te,X,function(){var re=_getResolvedFromBinding(te,J,X);return isPromise(re)?re=re.then(function(ne){return _onActivation(J,X,ne)}):re=_onActivation(J,X,re),re})};function _onActivation(te,J,X){var re=_bindingActivation(te.parentContext,J,X),ne=_getContainersIterator(te.parentContext.container),oe,de=ne.next();do{oe=de.value;var ce=te.parentContext,he=te.serviceIdentifier,ue=_getContainerActivationsForService(oe,he);isPromise(re)?re=_activateContainerAsync(ue,ce,re):re=_activateContainer(ue,ce,re),de=ne.next()}while(de.done!==!0&&!getBindingDictionary(oe).hasKey(te.serviceIdentifier));return re}var _bindingActivation=function(te,J,X){var re;return typeof J.onActivation=="function"?re=J.onActivation(te,X):re=X,re},_activateContainer=function(te,J,X){for(var re=te.next();!re.done;){if(X=re.value(J,X),isPromise(X))return _activateContainerAsync(te,J,X);re=te.next()}return X},_activateContainerAsync=function(te,J,X){return __awaiter$1(void 0,void 0,void 0,function(){var re,ne;return __generator$1(this,function(oe){switch(oe.label){case 0:return[4,X];case 1:re=oe.sent(),ne=te.next(),oe.label=2;case 2:return ne.done?[3,4]:[4,ne.value(J,re)];case 3:return re=oe.sent(),ne=te.next(),[3,2];case 4:return[2,re]}})})},_getContainerActivationsForService=function(te,J){var X=te._activations;return X.hasKey(J)?X.get(J).values():[].values()},_getContainersIterator=function(te){for(var J=[te],X=te.parent;X!==null;)J.push(X),X=X.parent;var re=function(){var oe=J.pop();return oe!==void 0?{done:!1,value:oe}:{done:!0,value:void 0}},ne={next:re};return ne};function resolve(te){var J=_resolveRequest(te.plan.rootRequest.requestScope);return J(te.plan.rootRequest)}var traverseAncerstors=function(te,J){var X=te.parentRequest;return X!==null?J(X)?!0:traverseAncerstors(X,J):!1},taggedConstraint=function(te){return function(J){var X=function(re){return re!==null&&re.target!==null&&re.target.matchesTag(te)(J)};return X.metaData=new Metadata(te,J),X}},namedConstraint=taggedConstraint(NAMED_TAG),typeConstraint=function(te){return function(J){var X=null;if(J!==null)if(X=J.bindings[0],typeof te=="string"){var re=X.serviceIdentifier;return re===te}else{var ne=J.bindings[0].implementationType;return te===ne}return!1}},BindingWhenSyntax=(function(){function te(J){this._binding=J}return te.prototype.when=function(J){return this._binding.constraint=J,new BindingOnSyntax(this._binding)},te.prototype.whenTargetNamed=function(J){return this._binding.constraint=namedConstraint(J),new BindingOnSyntax(this._binding)},te.prototype.whenTargetIsDefault=function(){return this._binding.constraint=function(J){if(J===null)return!1;var X=J.target!==null&&!J.target.isNamed()&&!J.target.isTagged();return X},new BindingOnSyntax(this._binding)},te.prototype.whenTargetTagged=function(J,X){return this._binding.constraint=taggedConstraint(J)(X),new BindingOnSyntax(this._binding)},te.prototype.whenInjectedInto=function(J){return this._binding.constraint=function(X){return X!==null&&typeConstraint(J)(X.parentRequest)},new BindingOnSyntax(this._binding)},te.prototype.whenParentNamed=function(J){return this._binding.constraint=function(X){return X!==null&&namedConstraint(J)(X.parentRequest)},new BindingOnSyntax(this._binding)},te.prototype.whenParentTagged=function(J,X){return this._binding.constraint=function(re){return re!==null&&taggedConstraint(J)(X)(re.parentRequest)},new BindingOnSyntax(this._binding)},te.prototype.whenAnyAncestorIs=function(J){return this._binding.constraint=function(X){return X!==null&&traverseAncerstors(X,typeConstraint(J))},new BindingOnSyntax(this._binding)},te.prototype.whenNoAncestorIs=function(J){return this._binding.constraint=function(X){return X!==null&&!traverseAncerstors(X,typeConstraint(J))},new BindingOnSyntax(this._binding)},te.prototype.whenAnyAncestorNamed=function(J){return this._binding.constraint=function(X){return X!==null&&traverseAncerstors(X,namedConstraint(J))},new BindingOnSyntax(this._binding)},te.prototype.whenNoAncestorNamed=function(J){return this._binding.constraint=function(X){return X!==null&&!traverseAncerstors(X,namedConstraint(J))},new BindingOnSyntax(this._binding)},te.prototype.whenAnyAncestorTagged=function(J,X){return this._binding.constraint=function(re){return re!==null&&traverseAncerstors(re,taggedConstraint(J)(X))},new BindingOnSyntax(this._binding)},te.prototype.whenNoAncestorTagged=function(J,X){return this._binding.constraint=function(re){return re!==null&&!traverseAncerstors(re,taggedConstraint(J)(X))},new BindingOnSyntax(this._binding)},te.prototype.whenAnyAncestorMatches=function(J){return this._binding.constraint=function(X){return X!==null&&traverseAncerstors(X,J)},new BindingOnSyntax(this._binding)},te.prototype.whenNoAncestorMatches=function(J){return this._binding.constraint=function(X){return X!==null&&!traverseAncerstors(X,J)},new BindingOnSyntax(this._binding)},te})(),BindingOnSyntax=(function(){function te(J){this._binding=J}return te.prototype.onActivation=function(J){return this._binding.onActivation=J,new BindingWhenSyntax(this._binding)},te.prototype.onDeactivation=function(J){return this._binding.onDeactivation=J,new BindingWhenSyntax(this._binding)},te})(),BindingWhenOnSyntax=(function(){function te(J){this._binding=J,this._bindingWhenSyntax=new BindingWhenSyntax(this._binding),this._bindingOnSyntax=new BindingOnSyntax(this._binding)}return te.prototype.when=function(J){return this._bindingWhenSyntax.when(J)},te.prototype.whenTargetNamed=function(J){return this._bindingWhenSyntax.whenTargetNamed(J)},te.prototype.whenTargetIsDefault=function(){return this._bindingWhenSyntax.whenTargetIsDefault()},te.prototype.whenTargetTagged=function(J,X){return this._bindingWhenSyntax.whenTargetTagged(J,X)},te.prototype.whenInjectedInto=function(J){return this._bindingWhenSyntax.whenInjectedInto(J)},te.prototype.whenParentNamed=function(J){return this._bindingWhenSyntax.whenParentNamed(J)},te.prototype.whenParentTagged=function(J,X){return this._bindingWhenSyntax.whenParentTagged(J,X)},te.prototype.whenAnyAncestorIs=function(J){return this._bindingWhenSyntax.whenAnyAncestorIs(J)},te.prototype.whenNoAncestorIs=function(J){return this._bindingWhenSyntax.whenNoAncestorIs(J)},te.prototype.whenAnyAncestorNamed=function(J){return this._bindingWhenSyntax.whenAnyAncestorNamed(J)},te.prototype.whenAnyAncestorTagged=function(J,X){return this._bindingWhenSyntax.whenAnyAncestorTagged(J,X)},te.prototype.whenNoAncestorNamed=function(J){return this._bindingWhenSyntax.whenNoAncestorNamed(J)},te.prototype.whenNoAncestorTagged=function(J,X){return this._bindingWhenSyntax.whenNoAncestorTagged(J,X)},te.prototype.whenAnyAncestorMatches=function(J){return this._bindingWhenSyntax.whenAnyAncestorMatches(J)},te.prototype.whenNoAncestorMatches=function(J){return this._bindingWhenSyntax.whenNoAncestorMatches(J)},te.prototype.onActivation=function(J){return this._bindingOnSyntax.onActivation(J)},te.prototype.onDeactivation=function(J){return this._bindingOnSyntax.onDeactivation(J)},te})(),BindingInSyntax=(function(){function te(J){this._binding=J}return te.prototype.inRequestScope=function(){return this._binding.scope=BindingScopeEnum.Request,new BindingWhenOnSyntax(this._binding)},te.prototype.inSingletonScope=function(){return this._binding.scope=BindingScopeEnum.Singleton,new BindingWhenOnSyntax(this._binding)},te.prototype.inTransientScope=function(){return this._binding.scope=BindingScopeEnum.Transient,new BindingWhenOnSyntax(this._binding)},te})(),BindingInWhenOnSyntax=(function(){function te(J){this._binding=J,this._bindingWhenSyntax=new BindingWhenSyntax(this._binding),this._bindingOnSyntax=new BindingOnSyntax(this._binding),this._bindingInSyntax=new BindingInSyntax(J)}return te.prototype.inRequestScope=function(){return this._bindingInSyntax.inRequestScope()},te.prototype.inSingletonScope=function(){return this._bindingInSyntax.inSingletonScope()},te.prototype.inTransientScope=function(){return this._bindingInSyntax.inTransientScope()},te.prototype.when=function(J){return this._bindingWhenSyntax.when(J)},te.prototype.whenTargetNamed=function(J){return this._bindingWhenSyntax.whenTargetNamed(J)},te.prototype.whenTargetIsDefault=function(){return this._bindingWhenSyntax.whenTargetIsDefault()},te.prototype.whenTargetTagged=function(J,X){return this._bindingWhenSyntax.whenTargetTagged(J,X)},te.prototype.whenInjectedInto=function(J){return this._bindingWhenSyntax.whenInjectedInto(J)},te.prototype.whenParentNamed=function(J){return this._bindingWhenSyntax.whenParentNamed(J)},te.prototype.whenParentTagged=function(J,X){return this._bindingWhenSyntax.whenParentTagged(J,X)},te.prototype.whenAnyAncestorIs=function(J){return this._bindingWhenSyntax.whenAnyAncestorIs(J)},te.prototype.whenNoAncestorIs=function(J){return this._bindingWhenSyntax.whenNoAncestorIs(J)},te.prototype.whenAnyAncestorNamed=function(J){return this._bindingWhenSyntax.whenAnyAncestorNamed(J)},te.prototype.whenAnyAncestorTagged=function(J,X){return this._bindingWhenSyntax.whenAnyAncestorTagged(J,X)},te.prototype.whenNoAncestorNamed=function(J){return this._bindingWhenSyntax.whenNoAncestorNamed(J)},te.prototype.whenNoAncestorTagged=function(J,X){return this._bindingWhenSyntax.whenNoAncestorTagged(J,X)},te.prototype.whenAnyAncestorMatches=function(J){return this._bindingWhenSyntax.whenAnyAncestorMatches(J)},te.prototype.whenNoAncestorMatches=function(J){return this._bindingWhenSyntax.whenNoAncestorMatches(J)},te.prototype.onActivation=function(J){return this._bindingOnSyntax.onActivation(J)},te.prototype.onDeactivation=function(J){return this._bindingOnSyntax.onDeactivation(J)},te})(),BindingToSyntax=(function(){function te(J){this._binding=J}return te.prototype.to=function(J){return this._binding.type=BindingTypeEnum.Instance,this._binding.implementationType=J,new BindingInWhenOnSyntax(this._binding)},te.prototype.toSelf=function(){if(typeof this._binding.serviceIdentifier!="function")throw new Error(""+INVALID_TO_SELF_VALUE);var J=this._binding.serviceIdentifier;return this.to(J)},te.prototype.toConstantValue=function(J){return this._binding.type=BindingTypeEnum.ConstantValue,this._binding.cache=J,this._binding.dynamicValue=null,this._binding.implementationType=null,this._binding.scope=BindingScopeEnum.Singleton,new BindingWhenOnSyntax(this._binding)},te.prototype.toDynamicValue=function(J){return this._binding.type=BindingTypeEnum.DynamicValue,this._binding.cache=null,this._binding.dynamicValue=J,this._binding.implementationType=null,new BindingInWhenOnSyntax(this._binding)},te.prototype.toConstructor=function(J){return this._binding.type=BindingTypeEnum.Constructor,this._binding.implementationType=J,this._binding.scope=BindingScopeEnum.Singleton,new BindingWhenOnSyntax(this._binding)},te.prototype.toFactory=function(J){return this._binding.type=BindingTypeEnum.Factory,this._binding.factory=J,this._binding.scope=BindingScopeEnum.Singleton,new BindingWhenOnSyntax(this._binding)},te.prototype.toFunction=function(J){if(typeof J!="function")throw new Error(INVALID_FUNCTION_BINDING);var X=this.toConstantValue(J);return this._binding.type=BindingTypeEnum.Function,this._binding.scope=BindingScopeEnum.Singleton,X},te.prototype.toAutoFactory=function(J){return this._binding.type=BindingTypeEnum.Factory,this._binding.factory=function(X){var re=function(){return X.container.get(J)};return re},this._binding.scope=BindingScopeEnum.Singleton,new BindingWhenOnSyntax(this._binding)},te.prototype.toAutoNamedFactory=function(J){return this._binding.type=BindingTypeEnum.Factory,this._binding.factory=function(X){return function(re){return X.container.getNamed(J,re)}},new BindingWhenOnSyntax(this._binding)},te.prototype.toProvider=function(J){return this._binding.type=BindingTypeEnum.Provider,this._binding.provider=J,this._binding.scope=BindingScopeEnum.Singleton,new BindingWhenOnSyntax(this._binding)},te.prototype.toService=function(J){this.toDynamicValue(function(X){return X.container.get(J)})},te})(),ContainerSnapshot=(function(){function te(){}return te.of=function(J,X,re,ne,oe){var de=new te;return de.bindings=J,de.middleware=X,de.deactivations=ne,de.activations=re,de.moduleActivationStore=oe,de},te})();function isClonable(te){return typeof te=="object"&&te!==null&&"clone"in te&&typeof te.clone=="function"}var Lookup=(function(){function te(){this._map=new Map}return te.prototype.getMap=function(){return this._map},te.prototype.add=function(J,X){if(J==null)throw new Error(NULL_ARGUMENT);if(X==null)throw new Error(NULL_ARGUMENT);var re=this._map.get(J);re!==void 0?re.push(X):this._map.set(J,[X])},te.prototype.get=function(J){if(J==null)throw new Error(NULL_ARGUMENT);var X=this._map.get(J);if(X!==void 0)return X;throw new Error(KEY_NOT_FOUND)},te.prototype.remove=function(J){if(J==null)throw new Error(NULL_ARGUMENT);if(!this._map.delete(J))throw new Error(KEY_NOT_FOUND)},te.prototype.removeIntersection=function(J){var X=this;this.traverse(function(re,ne){var oe=J.hasKey(re)?J.get(re):void 0;if(oe!==void 0){var de=ne.filter(function(ce){return!oe.some(function(he){return ce===he})});X._setValue(re,de)}})},te.prototype.removeByCondition=function(J){var X=this,re=[];return this._map.forEach(function(ne,oe){for(var de=[],ce=0,he=ne;ce<he.length;ce++){var ue=he[ce],pe=J(ue);pe?re.push(ue):de.push(ue)}X._setValue(oe,de)}),re},te.prototype.hasKey=function(J){if(J==null)throw new Error(NULL_ARGUMENT);return this._map.has(J)},te.prototype.clone=function(){var J=new te;return this._map.forEach(function(X,re){X.forEach(function(ne){return J.add(re,isClonable(ne)?ne.clone():ne)})}),J},te.prototype.traverse=function(J){this._map.forEach(function(X,re){J(re,X)})},te.prototype._setValue=function(J,X){X.length>0?this._map.set(J,X):this._map.delete(J)},te})(),ModuleActivationStore=(function(){function te(){this._map=new Map}return te.prototype.remove=function(J){if(this._map.has(J)){var X=this._map.get(J);return this._map.delete(J),X}return this._getEmptyHandlersStore()},te.prototype.addDeactivation=function(J,X,re){this._getModuleActivationHandlers(J).onDeactivations.add(X,re)},te.prototype.addActivation=function(J,X,re){this._getModuleActivationHandlers(J).onActivations.add(X,re)},te.prototype.clone=function(){var J=new te;return this._map.forEach(function(X,re){J._map.set(re,{onActivations:X.onActivations.clone(),onDeactivations:X.onDeactivations.clone()})}),J},te.prototype._getModuleActivationHandlers=function(J){var X=this._map.get(J);return X===void 0&&(X=this._getEmptyHandlersStore(),this._map.set(J,X)),X},te.prototype._getEmptyHandlersStore=function(){var J={onActivations:new Lookup,onDeactivations:new Lookup};return J},te})(),__assign=function(){return __assign=Object.assign||function(te){for(var J,X=1,re=arguments.length;X<re;X++){J=arguments[X];for(var ne in J)Object.prototype.hasOwnProperty.call(J,ne)&&(te[ne]=J[ne])}return te},__assign.apply(this,arguments)},__awaiter=function(te,J,X,re){function ne(oe){return oe instanceof X?oe:new X(function(de){de(oe)})}return new(X||(X=Promise))(function(oe,de){function ce(pe){try{ue(re.next(pe))}catch(fe){de(fe)}}function he(pe){try{ue(re.throw(pe))}catch(fe){de(fe)}}function ue(pe){pe.done?oe(pe.value):ne(pe.value).then(ce,he)}ue((re=re.apply(te,J||[])).next())})},__generator=function(te,J){var X={label:0,sent:function(){if(oe[0]&1)throw oe[1];return oe[1]},trys:[],ops:[]},re,ne,oe,de;return de={next:ce(0),throw:ce(1),return:ce(2)},typeof Symbol=="function"&&(de[Symbol.iterator]=function(){return this}),de;function ce(ue){return function(pe){return he([ue,pe])}}function he(ue){if(re)throw new TypeError("Generator is already executing.");for(;X;)try{if(re=1,ne&&(oe=ue[0]&2?ne.return:ue[0]?ne.throw||((oe=ne.return)&&oe.call(ne),0):ne.next)&&!(oe=oe.call(ne,ue[1])).done)return oe;switch(ne=0,oe&&(ue=[ue[0]&2,oe.value]),ue[0]){case 0:case 1:oe=ue;break;case 4:return X.label++,{value:ue[1],done:!1};case 5:X.label++,ne=ue[1],ue=[0];continue;case 7:ue=X.ops.pop(),X.trys.pop();continue;default:if(oe=X.trys,!(oe=oe.length>0&&oe[oe.length-1])&&(ue[0]===6||ue[0]===2)){X=0;continue}if(ue[0]===3&&(!oe||ue[1]>oe[0]&&ue[1]<oe[3])){X.label=ue[1];break}if(ue[0]===6&&X.label<oe[1]){X.label=oe[1],oe=ue;break}if(oe&&X.label<oe[2]){X.label=oe[2],X.ops.push(ue);break}oe[2]&&X.ops.pop(),X.trys.pop();continue}ue=J.call(te,X)}catch(pe){ue=[6,pe],ne=0}finally{re=oe=0}if(ue[0]&5)throw ue[1];return{value:ue[0]?ue[1]:void 0,done:!0}}},__spreadArray=function(te,J,X){if(X||arguments.length===2)for(var re=0,ne=J.length,oe;re<ne;re++)(oe||!(re in J))&&(oe||(oe=Array.prototype.slice.call(J,0,re)),oe[re]=J[re]);return te.concat(oe||Array.prototype.slice.call(J))},Container=(function(){function te(J){var X=J||{};if(typeof X!="object")throw new Error(""+CONTAINER_OPTIONS_MUST_BE_AN_OBJECT);if(X.defaultScope===void 0)X.defaultScope=BindingScopeEnum.Transient;else if(X.defaultScope!==BindingScopeEnum.Singleton&&X.defaultScope!==BindingScopeEnum.Transient&&X.defaultScope!==BindingScopeEnum.Request)throw new Error(""+CONTAINER_OPTIONS_INVALID_DEFAULT_SCOPE);if(X.autoBindInjectable===void 0)X.autoBindInjectable=!1;else if(typeof X.autoBindInjectable!="boolean")throw new Error(""+CONTAINER_OPTIONS_INVALID_AUTO_BIND_INJECTABLE);if(X.skipBaseClassChecks===void 0)X.skipBaseClassChecks=!1;else if(typeof X.skipBaseClassChecks!="boolean")throw new Error(""+CONTAINER_OPTIONS_INVALID_SKIP_BASE_CHECK);this.options={autoBindInjectable:X.autoBindInjectable,defaultScope:X.defaultScope,skipBaseClassChecks:X.skipBaseClassChecks},this.id=id(),this._bindingDictionary=new Lookup,this._snapshots=[],this._middleware=null,this._activations=new Lookup,this._deactivations=new Lookup,this.parent=null,this._metadataReader=new MetadataReader,this._moduleActivationStore=new ModuleActivationStore}return te.merge=function(J,X){for(var re=[],ne=2;ne<arguments.length;ne++)re[ne-2]=arguments[ne];var oe=new te,de=__spreadArray([J,X],re,!0).map(function(ue){return getBindingDictionary(ue)}),ce=getBindingDictionary(oe);function he(ue,pe){ue.traverse(function(fe,be){be.forEach(function(ge){pe.add(ge.serviceIdentifier,ge.clone())})})}return de.forEach(function(ue){he(ue,ce)}),oe},te.prototype.load=function(){for(var J=[],X=0;X<arguments.length;X++)J[X]=arguments[X];for(var re=this._getContainerModuleHelpersFactory(),ne=0,oe=J;ne<oe.length;ne++){var de=oe[ne],ce=re(de.id);de.registry(ce.bindFunction,ce.unbindFunction,ce.isboundFunction,ce.rebindFunction,ce.unbindAsyncFunction,ce.onActivationFunction,ce.onDeactivationFunction)}},te.prototype.loadAsync=function(){for(var J=[],X=0;X<arguments.length;X++)J[X]=arguments[X];return __awaiter(this,void 0,void 0,function(){var re,ne,oe,de,ce;return __generator(this,function(he){switch(he.label){case 0:re=this._getContainerModuleHelpersFactory(),ne=0,oe=J,he.label=1;case 1:return ne<oe.length?(de=oe[ne],ce=re(de.id),[4,de.registry(ce.bindFunction,ce.unbindFunction,ce.isboundFunction,ce.rebindFunction,ce.unbindAsyncFunction,ce.onActivationFunction,ce.onDeactivationFunction)]):[3,4];case 2:he.sent(),he.label=3;case 3:return ne++,[3,1];case 4:return[2]}})})},te.prototype.unload=function(){for(var J=this,X=[],re=0;re<arguments.length;re++)X[re]=arguments[re];X.forEach(function(ne){var oe=J._removeModuleBindings(ne.id);J._deactivateSingletons(oe),J._removeModuleHandlers(ne.id)})},te.prototype.unloadAsync=function(){for(var J=[],X=0;X<arguments.length;X++)J[X]=arguments[X];return __awaiter(this,void 0,void 0,function(){var re,ne,oe,de;return __generator(this,function(ce){switch(ce.label){case 0:re=0,ne=J,ce.label=1;case 1:return re<ne.length?(oe=ne[re],de=this._removeModuleBindings(oe.id),[4,this._deactivateSingletonsAsync(de)]):[3,4];case 2:ce.sent(),this._removeModuleHandlers(oe.id),ce.label=3;case 3:return re++,[3,1];case 4:return[2]}})})},te.prototype.bind=function(J){var X=this.options.defaultScope||BindingScopeEnum.Transient,re=new Binding(J,X);return this._bindingDictionary.add(J,re),new BindingToSyntax(re)},te.prototype.rebind=function(J){return this.unbind(J),this.bind(J)},te.prototype.rebindAsync=function(J){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(X){switch(X.label){case 0:return[4,this.unbindAsync(J)];case 1:return X.sent(),[2,this.bind(J)]}})})},te.prototype.unbind=function(J){if(this._bindingDictionary.hasKey(J)){var X=this._bindingDictionary.get(J);this._deactivateSingletons(X)}this._removeServiceFromDictionary(J)},te.prototype.unbindAsync=function(J){return __awaiter(this,void 0,void 0,function(){var X;return __generator(this,function(re){switch(re.label){case 0:return this._bindingDictionary.hasKey(J)?(X=this._bindingDictionary.get(J),[4,this._deactivateSingletonsAsync(X)]):[3,2];case 1:re.sent(),re.label=2;case 2:return this._removeServiceFromDictionary(J),[2]}})})},te.prototype.unbindAll=function(){var J=this;this._bindingDictionary.traverse(function(X,re){J._deactivateSingletons(re)}),this._bindingDictionary=new Lookup},te.prototype.unbindAllAsync=function(){return __awaiter(this,void 0,void 0,function(){var J,X=this;return __generator(this,function(re){switch(re.label){case 0:return J=[],this._bindingDictionary.traverse(function(ne,oe){J.push(X._deactivateSingletonsAsync(oe))}),[4,Promise.all(J)];case 1:return re.sent(),this._bindingDictionary=new Lookup,[2]}})})},te.prototype.onActivation=function(J,X){this._activations.add(J,X)},te.prototype.onDeactivation=function(J,X){this._deactivations.add(J,X)},te.prototype.isBound=function(J){var X=this._bindingDictionary.hasKey(J);return!X&&this.parent&&(X=this.parent.isBound(J)),X},te.prototype.isCurrentBound=function(J){return this._bindingDictionary.hasKey(J)},te.prototype.isBoundNamed=function(J,X){return this.isBoundTagged(J,NAMED_TAG,X)},te.prototype.isBoundTagged=function(J,X,re){var ne=!1;if(this._bindingDictionary.hasKey(J)){var oe=this._bindingDictionary.get(J),de=createMockRequest(this,J,X,re);ne=oe.some(function(ce){return ce.constraint(de)})}return!ne&&this.parent&&(ne=this.parent.isBoundTagged(J,X,re)),ne},te.prototype.snapshot=function(){this._snapshots.push(ContainerSnapshot.of(this._bindingDictionary.clone(),this._middleware,this._activations.clone(),this._deactivations.clone(),this._moduleActivationStore.clone()))},te.prototype.restore=function(){var J=this._snapshots.pop();if(J===void 0)throw new Error(NO_MORE_SNAPSHOTS_AVAILABLE);this._bindingDictionary=J.bindings,this._activations=J.activations,this._deactivations=J.deactivations,this._middleware=J.middleware,this._moduleActivationStore=J.moduleActivationStore},te.prototype.createChild=function(J){var X=new te(J||this.options);return X.parent=this,X},te.prototype.applyMiddleware=function(){for(var J=[],X=0;X<arguments.length;X++)J[X]=arguments[X];var re=this._middleware?this._middleware:this._planAndResolve();this._middleware=J.reduce(function(ne,oe){return oe(ne)},re)},te.prototype.applyCustomMetadataReader=function(J){this._metadataReader=J},te.prototype.get=function(J){var X=this._getNotAllArgs(J,!1);return this._getButThrowIfAsync(X)},te.prototype.getAsync=function(J){return __awaiter(this,void 0,void 0,function(){var X;return __generator(this,function(re){return X=this._getNotAllArgs(J,!1),[2,this._get(X)]})})},te.prototype.getTagged=function(J,X,re){var ne=this._getNotAllArgs(J,!1,X,re);return this._getButThrowIfAsync(ne)},te.prototype.getTaggedAsync=function(J,X,re){return __awaiter(this,void 0,void 0,function(){var ne;return __generator(this,function(oe){return ne=this._getNotAllArgs(J,!1,X,re),[2,this._get(ne)]})})},te.prototype.getNamed=function(J,X){return this.getTagged(J,NAMED_TAG,X)},te.prototype.getNamedAsync=function(J,X){return this.getTaggedAsync(J,NAMED_TAG,X)},te.prototype.getAll=function(J){var X=this._getAllArgs(J);return this._getButThrowIfAsync(X)},te.prototype.getAllAsync=function(J){var X=this._getAllArgs(J);return this._getAll(X)},te.prototype.getAllTagged=function(J,X,re){var ne=this._getNotAllArgs(J,!0,X,re);return this._getButThrowIfAsync(ne)},te.prototype.getAllTaggedAsync=function(J,X,re){var ne=this._getNotAllArgs(J,!0,X,re);return this._getAll(ne)},te.prototype.getAllNamed=function(J,X){return this.getAllTagged(J,NAMED_TAG,X)},te.prototype.getAllNamedAsync=function(J,X){return this.getAllTaggedAsync(J,NAMED_TAG,X)},te.prototype.resolve=function(J){var X=this.isBound(J);X||this.bind(J).toSelf();var re=this.get(J);return X||this.unbind(J),re},te.prototype._preDestroy=function(J,X){var re,ne;if(Reflect.hasMetadata(PRE_DESTROY,J)){var oe=Reflect.getMetadata(PRE_DESTROY,J);return(ne=(re=X)[oe.value])===null||ne===void 0?void 0:ne.call(re)}},te.prototype._removeModuleHandlers=function(J){var X=this._moduleActivationStore.remove(J);this._activations.removeIntersection(X.onActivations),this._deactivations.removeIntersection(X.onDeactivations)},te.prototype._removeModuleBindings=function(J){return this._bindingDictionary.removeByCondition(function(X){return X.moduleId===J})},te.prototype._deactivate=function(J,X){var re=this,ne=Object.getPrototypeOf(X).constructor;try{if(this._deactivations.hasKey(J.serviceIdentifier)){var oe=this._deactivateContainer(X,this._deactivations.get(J.serviceIdentifier).values());if(isPromise(oe))return this._handleDeactivationError(oe.then(function(){return re._propagateContainerDeactivationThenBindingAndPreDestroyAsync(J,X,ne)}),ne)}var de=this._propagateContainerDeactivationThenBindingAndPreDestroy(J,X,ne);if(isPromise(de))return this._handleDeactivationError(de,ne)}catch(ce){if(ce instanceof Error)throw new Error(ON_DEACTIVATION_ERROR(ne.name,ce.message))}},te.prototype._handleDeactivationError=function(J,X){return __awaiter(this,void 0,void 0,function(){var re;return __generator(this,function(ne){switch(ne.label){case 0:return ne.trys.push([0,2,,3]),[4,J];case 1:return ne.sent(),[3,3];case 2:if(re=ne.sent(),re instanceof Error)throw new Error(ON_DEACTIVATION_ERROR(X.name,re.message));return[3,3];case 3:return[2]}})})},te.prototype._deactivateContainer=function(J,X){for(var re=this,ne=X.next();ne.value;){var oe=ne.value(J);if(isPromise(oe))return oe.then(function(){return re._deactivateContainerAsync(J,X)});ne=X.next()}},te.prototype._deactivateContainerAsync=function(J,X){return __awaiter(this,void 0,void 0,function(){var re;return __generator(this,function(ne){switch(ne.label){case 0:re=X.next(),ne.label=1;case 1:return re.value?[4,re.value(J)]:[3,3];case 2:return ne.sent(),re=X.next(),[3,1];case 3:return[2]}})})},te.prototype._getContainerModuleHelpersFactory=function(){var J=this,X=function(pe,fe){pe._binding.moduleId=fe},re=function(pe){return function(fe){var be=J.bind(fe);return X(be,pe),be}},ne=function(){return function(pe){return J.unbind(pe)}},oe=function(){return function(pe){return J.unbindAsync(pe)}},de=function(){return function(pe){return J.isBound(pe)}},ce=function(pe){return function(fe){var be=J.rebind(fe);return X(be,pe),be}},he=function(pe){return function(fe,be){J._moduleActivationStore.addActivation(pe,fe,be),J.onActivation(fe,be)}},ue=function(pe){return function(fe,be){J._moduleActivationStore.addDeactivation(pe,fe,be),J.onDeactivation(fe,be)}};return function(pe){return{bindFunction:re(pe),isboundFunction:de(),onActivationFunction:he(pe),onDeactivationFunction:ue(pe),rebindFunction:ce(pe),unbindFunction:ne(),unbindAsyncFunction:oe()}}},te.prototype._getAll=function(J){return Promise.all(this._get(J))},te.prototype._get=function(J){var X=__assign(__assign({},J),{contextInterceptor:function(ne){return ne},targetType:TargetTypeEnum.Variable});if(this._middleware){var re=this._middleware(X);if(re==null)throw new Error(INVALID_MIDDLEWARE_RETURN);return re}return this._planAndResolve()(X)},te.prototype._getButThrowIfAsync=function(J){var X=this._get(J);if(isPromiseOrContainsPromise(X))throw new Error(LAZY_IN_SYNC(J.serviceIdentifier));return X},te.prototype._getAllArgs=function(J){var X={avoidConstraints:!0,isMultiInject:!0,serviceIdentifier:J};return X},te.prototype._getNotAllArgs=function(J,X,re,ne){var oe={avoidConstraints:!1,isMultiInject:X,serviceIdentifier:J,key:re,value:ne};return oe},te.prototype._planAndResolve=function(){var J=this;return function(X){var re=plan(J._metadataReader,J,X.isMultiInject,X.targetType,X.serviceIdentifier,X.key,X.value,X.avoidConstraints);re=X.contextInterceptor(re);var ne=resolve(re);return ne}},te.prototype._deactivateIfSingleton=function(J){var X=this;if(J.activated)return isPromise(J.cache)?J.cache.then(function(re){return X._deactivate(J,re)}):this._deactivate(J,J.cache)},te.prototype._deactivateSingletons=function(J){for(var X=0,re=J;X<re.length;X++){var ne=re[X],oe=this._deactivateIfSingleton(ne);if(isPromise(oe))throw new Error(ASYNC_UNBIND_REQUIRED)}},te.prototype._deactivateSingletonsAsync=function(J){return __awaiter(this,void 0,void 0,function(){var X=this;return __generator(this,function(re){switch(re.label){case 0:return[4,Promise.all(J.map(function(ne){return X._deactivateIfSingleton(ne)}))];case 1:return re.sent(),[2]}})})},te.prototype._propagateContainerDeactivationThenBindingAndPreDestroy=function(J,X,re){return this.parent?this._deactivate.bind(this.parent)(J,X):this._bindingDeactivationAndPreDestroy(J,X,re)},te.prototype._propagateContainerDeactivationThenBindingAndPreDestroyAsync=function(J,X,re){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(ne){switch(ne.label){case 0:return this.parent?[4,this._deactivate.bind(this.parent)(J,X)]:[3,2];case 1:return ne.sent(),[3,4];case 2:return[4,this._bindingDeactivationAndPreDestroyAsync(J,X,re)];case 3:ne.sent(),ne.label=4;case 4:return[2]}})})},te.prototype._removeServiceFromDictionary=function(J){try{this._bindingDictionary.remove(J)}catch{throw new Error(CANNOT_UNBIND+" "+getServiceIdentifierAsString(J))}},te.prototype._bindingDeactivationAndPreDestroy=function(J,X,re){var ne=this;if(typeof J.onDeactivation=="function"){var oe=J.onDeactivation(X);if(isPromise(oe))return oe.then(function(){return ne._preDestroy(re,X)})}return this._preDestroy(re,X)},te.prototype._bindingDeactivationAndPreDestroyAsync=function(J,X,re){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(ne){switch(ne.label){case 0:return typeof J.onDeactivation!="function"?[3,2]:[4,J.onDeactivation(X)];case 1:ne.sent(),ne.label=2;case 2:return[4,this._preDestroy(re,X)];case 3:return ne.sent(),[2]}})})},te})();function getFirstArrayDuplicate(te){for(var J=new Set,X=0,re=te;X<re.length;X++){var ne=re[X];if(J.has(ne))return ne;J.add(ne)}}function targetIsConstructorFunction(te){return te.prototype!==void 0}function _throwIfMethodParameter(te){if(te!==void 0)throw new Error(INVALID_DECORATOR_OPERATION)}function tagParameter(te,J,X,re){_throwIfMethodParameter(J),_tagParameterOrProperty(TAGGED,te,X.toString(),re)}function tagProperty(te,J,X){if(targetIsConstructorFunction(te))throw new Error(INVALID_DECORATOR_OPERATION);_tagParameterOrProperty(TAGGED_PROP,te.constructor,J,X)}function _ensureNoMetadataKeyDuplicates(te){var J=[];if(Array.isArray(te)){J=te;var X=getFirstArrayDuplicate(J.map(function(re){return re.key}));if(X!==void 0)throw new Error(DUPLICATED_METADATA+" "+X.toString())}else J=[te];return J}function _tagParameterOrProperty(te,J,X,re){var ne=_ensureNoMetadataKeyDuplicates(re),oe={};Reflect.hasOwnMetadata(te,J)&&(oe=Reflect.getMetadata(te,J));var de=oe[X];if(de===void 0)de=[];else for(var ce=function(fe){if(ne.some(function(be){return be.key===fe.key}))throw new Error(DUPLICATED_METADATA+" "+fe.key.toString())},he=0,ue=de;he<ue.length;he++){var pe=ue[he];ce(pe)}de.push.apply(de,ne),oe[X]=de,Reflect.defineMetadata(te,oe,J)}function createTaggedDecorator(te){return function(J,X,re){typeof re=="number"?tagParameter(J,X,re,te):tagProperty(J,X,te)}}function injectable(){return function(te){if(Reflect.hasOwnMetadata(PARAM_TYPES,te))throw new Error(DUPLICATED_INJECTABLE_DECORATOR);var J=Reflect.getMetadata(DESIGN_PARAM_TYPES,te)||[];return Reflect.defineMetadata(PARAM_TYPES,J,te),te}}function injectBase(te){return function(J){return function(X,re,ne){if(J===void 0){var oe=typeof X=="function"?X.name:X.constructor.name;throw new Error(UNDEFINED_INJECT_ANNOTATION(oe))}return createTaggedDecorator(new Metadata(te,J))(X,re,ne)}}}var inject=injectBase(INJECT_TAG);const registerRequest$1=(te,J)=>(X,re)=>{J.bind(re).to(re).inTransientScope(),injectable()(re);const ne=te.broker.registerRequest(X,oe=>J.get(re).handle(oe));return{dispose:()=>{J.isBound(re)&&J.unbind(re),ne.dispose()}}},brokerExtensions=(te,J)=>({registerRequest:registerRequest$1(te,J)});function rand(te){const J=Math.random()*16|0;return(te==="x"?J:J&3|8).toString(16)}function generateId(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,rand)}const mapArrayToLabelValue=(te,J,X)=>te.map(re=>{const ne=re[J],oe=re[X];return(ne===""||ne==null)&&typeof oe=="string"&&oe.trim()!==""?{label:oe,value:oe}:(ne===""||ne==null)&&(oe===""||oe==null)?null:{label:ne,value:oe}}).filter(re=>re!==null);function createConnectToStoreDecorator(te){return function(X){return(re,ne)=>{Object.defineProperty(re,ne,{get(){return this[`__${ne}`]},set(ce){this[`__${ne}`]!==ce&&(this[`__${ne}`]=Array.isArray(ce)?[...ce]:typeof ce=="object"&&ce!==null?{...ce}:ce,this.requestUpdate(ne))},configurable:!0,enumerable:!0});const oe=re.connectedCallback,de=re.disconnectedCallback;re.connectedCallback=function(){oe&&oe.call(this),this[ne]=X(te.getState()),this[`__unsubscribe__${ne}`]=te.subscribe(()=>{const ce=X(te.getState());this[ne]=Array.isArray(ce)?[...ce]:typeof ce=="object"&&ce!==null?{...ce}:ce})},re.disconnectedCallback=function(){de&&de.call(this),this[`__unsubscribe__${ne}`]&&this[`__unsubscribe__${ne}`]()}}}}function createConnectedProperty(te){return(J,X={})=>{const re=createConnectToStoreDecorator(te);return(ne,oe)=>{n$z(X)(ne,oe),re(J)(ne,oe)}}}const pdfViewerId="pdf-viewer";let shellLocaleManager;const useLocalization=async te=>{L$5("ca"),shellLocaleManager=await te.createLocaleManager(locales$1)},translate$1=te=>shellLocaleManager?shellLocaleManager.translate(te):te,locales$1={ca:{[primariaShellId]:{title:"Estació de Treball Clínica",actions:{create:"Crear",toggleMenuClose:"Tancar menú",toggleMenuOpen:"Expandir menú",askExit:"Atenció, vols sortir igualment?",finalizeVisit:"Finalitzar visita"},clinicalMonitoring:{title:"Seguiment clínic"},errors:{session:"Hi ha hagut un error amb la sessió. Siusplau, tanca i torna a obrir l'aplicació.",invalidPatient:"El pacient actual no és vàlid. Siusplau, tanca i torna a obrir l'aplicació."},header:{workCenter:"Centre treball",role:"Tipus de profesional",speciality:"Àmbit treball"},busyManager:{title:"Tasques pendents:"},pdfManager:{uploaded:"Document disponible al visor de resultats",alreadyUploaded:"Ja s'ha carregat un document amb aquest nom",navButtonLabel:"Visor PDF",missingData:"Es necesita un document o URL per enviar al visor de resultats",duplicatedSource:"Només pots envar un document o URL a la vegada"},pdfVisor:{noPdfSelected:"No hi ha cap PDF seleccionat"},importDataManager:{title:"Importar dades",actions:{cancel:"Cancel·lar",import:"Importar dades"}}}}},styles$q=".item{display:flex;cursor:pointer;border-radius:8px;padding:8px;justify-content:center;transition:background-color .3s ease}.item[expanded]{justify-content:space-between}.item:hover{background-color:var(--color-primary-900);color:#fff}.item .icon-label{display:flex;gap:8px;transition:background-color .3s}.item.active{outline:2px solid white;outline-offset:-2px}";/**
|
|
211
211
|
* @license
|
|
212
212
|
* Copyright 2017 Google LLC
|
|
213
213
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -215,7 +215,7 @@ Registered bindings:`,ne.forEach(function(oe){var de="Object";oe.implementationT
|
|
|
215
215
|
* @license
|
|
216
216
|
* Copyright 2018 Google LLC
|
|
217
217
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
218
|
-
*/const Rt=e$L(class extends i$t{constructor(te){if(super(te),te.type!==t$i.ATTRIBUTE||te.name!=="class"||te.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(te){return" "+Object.keys(te).filter((J=>te[J])).join(" ")+" "}update(te,[J]){if(this.st===void 0){this.st=new Set,te.strings!==void 0&&(this.nt=new Set(te.strings.join(" ").split(/\s/).filter((re=>re!==""))));for(const re in J)J[re]&&!this.nt?.has(re)&&this.st.add(re);return this.render(J)}const X=te.element.classList;for(const re of this.st)re in J||(X.remove(re),this.st.delete(re));for(const re in J){const ne=!!J[re];ne===this.st.has(re)||this.nt?.has(re)||(ne?(X.add(re),this.st.add(re)):(X.remove(re),this.st.delete(re)))}return R$4}}),template$
|
|
218
|
+
*/const Rt=e$L(class extends i$t{constructor(te){if(super(te),te.type!==t$i.ATTRIBUTE||te.name!=="class"||te.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(te){return" "+Object.keys(te).filter((J=>te[J])).join(" ")+" "}update(te,[J]){if(this.st===void 0){this.st=new Set,te.strings!==void 0&&(this.nt=new Set(te.strings.join(" ").split(/\s/).filter((re=>re!==""))));for(const re in J)J[re]&&!this.nt?.has(re)&&this.st.add(re);return this.render(J)}const X=te.element.classList;for(const re of this.st)re in J||(X.remove(re),this.st.delete(re));for(const re in J){const ne=!!J[re];ne===this.st.has(re)||this.nt?.has(re)||(ne?(X.add(re),this.st.add(re)):(X.remove(re),this.st.delete(re)))}return R$4}}),template$r=te=>ke$1`
|
|
219
219
|
<div
|
|
220
220
|
class=${Rt({item:!0,active:te.isActive})}
|
|
221
221
|
@click=${te.config.callbackFn}
|
|
@@ -231,9 +231,9 @@ Registered bindings:`,ne.forEach(function(oe){var de="Object";oe.implementationT
|
|
|
231
231
|
${te.config.label}
|
|
232
232
|
</dss-tooltip>`}
|
|
233
233
|
</div>
|
|
234
|
-
`;var __defProp$
|
|
235
|
-
${r$G(styles$
|
|
236
|
-
`;let PrimariaNavItem=xs;__decorateClass$
|
|
234
|
+
`;var __defProp$s=Object.defineProperty,__decorateClass$z=(te,J,X,re)=>{for(var ne=void 0,oe=te.length-1,de;oe>=0;oe--)(de=te[oe])&&(ne=de(J,X,ne)||ne);return ne&&__defProp$s(J,X,ne),ne};const xs=class xs extends k$7(h$n){constructor(J){super(),this.subscriptions=[],this.containerWidth=0,this.showText=!1,this.isActive=!1,this.config=J}connectedCallback(){super.connectedCallback(),this._subscribeEvents()}disconnectedCallback(){this._unsubscribeEvents()}firstUpdated(J){super.firstUpdated(J),this.observeHostResize()}observeHostResize(){const J=this.parentElement;new ResizeObserver(re=>{for(const ne of re){const oe=ne.target.clientWidth;this.showText=oe>100}}).observe(J)}_subscribeEvents(){const J=shellApi.broker.subscribe(shellEvents.mainViewChanged,X=>{this.isActive=X.viewId===this.view?.id});this.subscriptions.push(J)}_unsubscribeEvents(){this.subscriptions.forEach(J=>J.dispose())}render(){return ke$1`${template$r(this)}`}};xs.styles=i$w`
|
|
235
|
+
${r$G(styles$q)}
|
|
236
|
+
`;let PrimariaNavItem=xs;__decorateClass$z([n$z({type:Number})],PrimariaNavItem.prototype,"containerWidth"),__decorateClass$z([r$D()],PrimariaNavItem.prototype,"showText"),__decorateClass$z([r$D()],PrimariaNavItem.prototype,"isActive"),__decorateClass$z([n$z({type:Object})],PrimariaNavItem.prototype,"config");const pdfViwerEvents={added:"added_pdf",deleted:"deleted_pdf"};var INJECTION=Symbol.for("INJECTION");function _proxyGetter(te,J,X,re){function ne(){return Reflect.hasMetadata(INJECTION,this,J)?Reflect.getMetadata(INJECTION,this,J):X()}function oe(de){Reflect.defineMetadata(INJECTION,de,this,J)}Object.defineProperty(te,J,{configurable:!0,enumerable:!0,get:ne,set:oe})}function makePropertyInjectDecorator(te,J){return function(X){return function(re,ne){var oe=function(){return te.get(X)};_proxyGetter(re,ne,oe)}}}function makePropertyInjectNamedDecorator(te,J){return function(X,re){return function(ne,oe){var de=function(){return te.getNamed(X,re)};_proxyGetter(ne,oe,de)}}}function makePropertyInjectTaggedDecorator(te,J){return function(X,re,ne){return function(oe,de){var ce=function(){return te.getTagged(X,re,ne)};_proxyGetter(oe,de,ce)}}}function makePropertyMultiInjectDecorator(te,J){return function(X){return function(re,ne){var oe=function(){return te.getAll(X)};_proxyGetter(re,ne,oe)}}}function getDecorators(te,J){var X=makePropertyInjectDecorator(te),re=makePropertyInjectNamedDecorator(te),ne=makePropertyInjectTaggedDecorator(te),oe=makePropertyMultiInjectDecorator(te);return{lazyInject:X,lazyInjectNamed:re,lazyInjectTagged:ne,lazyMultiInject:oe}}const container$3=new Container,{lazyInject:lazyInject$3}=getDecorators(container$3),registerDep=te=>{container$3.bind(te).toSelf()},unregisterDep=te=>{container$3.isBound(te)&&container$3.unbind(te)},TYPES$3={primaryApi:Symbol.for("primaryApi")},styles$p=":host{min-height:1px;height:100%;width:100%;display:flex}iframe{border:none;flex:1;height:100%}.pdf-container{display:flex;justify-content:center;align-items:center;height:100%;flex:1;border:1px solid #ccc}.no-pdf{text-align:center;color:#666;font-size:1.2rem;font-weight:700}";function base64ToBlob(te,J="application/octet-stream"){const X=window.atob(te),re=X.length,ne=new Uint8Array(re);for(let oe=0;oe<re;oe++)ne[oe]=X.charCodeAt(oe);return new Blob([ne],{type:J})}const createUrlFromBase64=(te,J)=>{if(te){const X=base64ToBlob(te,"application/pdf");return URL.createObjectURL(X)}};var __defProp$r=Object.defineProperty,__decorateClass$y=(te,J,X,re)=>{for(var ne=void 0,oe=te.length-1,de;oe>=0;oe--)(de=te[oe])&&(ne=de(J,X,ne)||ne);return ne&&__defProp$r(J,X,ne),ne};const ks=class ks extends h$n{constructor(){super(...arguments),this.pdfList=[],this.activePdfs=[],this.subscriptions=[]}async connectedCallback(){super.connectedCallback(),this._initializePdfState(),this._subscribeEvents()}disconnectedCallback(){super.disconnectedCallback(),this._unsubscribeEvents()}_initializePdfState(){const J=this.api.pdfViewerManager.getPdfs?.()||[];this.pdfList=[...J],J.length===1?this.activePdfs=[J[0]]:J.length>=2&&(this.activePdfs=J.slice(-2))}_getPdfSrc(J){return J.data.url?J.data.url:J.data.b64?createUrlFromBase64(J.data.b64):""}_subscribeEvents(){[this.api.broker.subscribe(pdfViwerEvents.added,X=>this._onPdfAdded(X)),this.api.broker.subscribe(pdfViwerEvents.deleted,({id:X})=>this._onPdfDeleted({id:X}))].forEach(X=>this.subscriptions.push(X))}_unsubscribeEvents(){this.subscriptions.forEach(J=>J.dispose())}_onPdfAdded(J){this.pdfList=[...this.pdfList,J],this._updateActivePdfs(J.id)}_onPdfDeleted({id:J}){this.pdfList=this.pdfList.filter(X=>X.id!==J),this.activePdfs=this.activePdfs.filter(X=>X.id!==J),this.requestUpdate()}_removePdf(J){this.api.pdfViewerManager.delete(J),this.activePdfs=this.activePdfs.filter(X=>X.id!==J)}_updateActivePdfs(J){if(this.activePdfs.some(re=>re.id===J))this.activePdfs=this.activePdfs.filter(re=>re.id!==J);else{const re=this.pdfList.find(ne=>ne.id===J);if(!re)return;this.activePdfs.length===2?this.activePdfs=[this.activePdfs[1],re]:this.activePdfs=[...this.activePdfs,re]}this.requestUpdate()}render(){return ke$1`
|
|
237
237
|
<div class="pdf-container">
|
|
238
238
|
${this.activePdfs.length>0?this.activePdfs.map(J=>ke$1`<iframe height="100%" src=${this._getPdfSrc(J)} frameborder="0"></iframe>`):ke$1`
|
|
239
239
|
<div class="no-pdf">
|
|
@@ -247,7 +247,7 @@ Registered bindings:`,ne.forEach(function(oe){var de="Object";oe.implementationT
|
|
|
247
247
|
@pdf-removed=${J=>this._removePdf(J.detail)}
|
|
248
248
|
@active-pdf-changed=${J=>this._updateActivePdfs(J.detail)}
|
|
249
249
|
></pdf-selector>
|
|
250
|
-
`}};ks.styles=i$w`${r$G(styles$
|
|
250
|
+
`}};ks.styles=i$w`${r$G(styles$p)}`;let PdfVisor=ks;__decorateClass$y([lazyInject$3(TYPES$3.primaryApi)],PdfVisor.prototype,"api"),__decorateClass$y([n$z({type:Array})],PdfVisor.prototype,"pdfList"),__decorateClass$y([n$z({type:Array})],PdfVisor.prototype,"activePdfs");const registerPdfViewerNavItem=()=>{shellApi.regionManager.registerView(shellApi.regionManager.regions.shell.navigationMenu,{id:pdfViewerId,factory:()=>{const te=new PrimariaNavItem({icon:"picture_as_pdf",label:translate$1("pdfManager.navButtonLabel"),callbackFn:()=>{shellApi.regionManager.activateMainView(pdfViewerId)}});return Promise.resolve(te)}})},registerPDFVisorMainView=()=>{shellApi.regionManager.registerMainView({id:pdfViewerId,factory:()=>{const te=new PdfVisor;return Promise.resolve(te)}})},styles$o=":host{width:250px;gap:8px}.pdf-item{display:flex;align-items:flex-start;padding:8px;gap:8px;color:#000;border-bottom:1px solid var(--color-neutral-100)}.header-icons{display:flex;gap:8px}.container{gap:8px;display:flex;flex-direction:column}";/**
|
|
251
251
|
* @license
|
|
252
252
|
* Copyright 2020 Google LLC
|
|
253
253
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -255,7 +255,7 @@ Registered bindings:`,ne.forEach(function(oe){var de="Object";oe.implementationT
|
|
|
255
255
|
* @license
|
|
256
256
|
* Copyright 2017 Google LLC
|
|
257
257
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
258
|
-
*/const Jt=(te,J,X)=>{const re=new Map;for(let ne=J;ne<=X;ne++)re.set(te[ne],ne);return re},Qt=e$L(class extends i$t{constructor(te){if(super(te),te.type!==t$i.CHILD)throw Error("repeat() can only be used in text expressions")}dt(te,J,X){let re;X===void 0?X=J:J!==void 0&&(re=J);const ne=[],oe=[];let de=0;for(const ce of te)ne[de]=re?re(ce,de):de,oe[de]=X(ce,de),de++;return{values:oe,keys:ne}}render(te,J,X){return this.dt(te,J,X).values}update(te,[J,X,re]){const ne=ut(te),{values:oe,keys:de}=this.dt(J,X,re);if(!Array.isArray(ne))return this.ut=de,oe;const ce=this.ut??=[],he=[];let ue,pe,fe=0,be=ne.length-1,ge=0,ve=oe.length-1;for(;fe<=be&&ge<=ve;)if(ne[fe]===null)fe++;else if(ne[be]===null)be--;else if(ce[fe]===de[ge])he[ge]=ct(ne[fe],oe[ge]),fe++,ge++;else if(ce[be]===de[ve])he[ve]=ct(ne[be],oe[ve]),be--,ve--;else if(ce[fe]===de[ve])he[ve]=ct(ne[fe],oe[ve]),at(te,he[ve+1],ne[fe]),fe++,ve--;else if(ce[be]===de[ge])he[ge]=ct(ne[be],oe[ge]),at(te,ne[fe],ne[be]),be--,ge++;else if(ue===void 0&&(ue=Jt(de,ge,ve),pe=Jt(ce,fe,be)),ue.has(ce[fe]))if(ue.has(ce[be])){const me=pe.get(de[ge]),_e=me!==void 0?ne[me]:null;if(_e===null){const ye=at(te,ne[fe]);ct(ye,oe[ge]),he[ge]=ye}else he[ge]=ct(_e,oe[ge]),at(te,ne[fe],_e),ne[me]=null;ge++}else pt(ne[be]),be--;else pt(ne[fe]),fe++;for(;ge<=ve;){const me=at(te,he[ve+1]);ct(me,oe[ge]),he[ge++]=me}for(;fe<=be;){const me=ne[fe++];me!==null&&pt(me)}return this.ut=de,dt(te,he),R$4}}),template$
|
|
258
|
+
*/const Jt=(te,J,X)=>{const re=new Map;for(let ne=J;ne<=X;ne++)re.set(te[ne],ne);return re},Qt=e$L(class extends i$t{constructor(te){if(super(te),te.type!==t$i.CHILD)throw Error("repeat() can only be used in text expressions")}dt(te,J,X){let re;X===void 0?X=J:J!==void 0&&(re=J);const ne=[],oe=[];let de=0;for(const ce of te)ne[de]=re?re(ce,de):de,oe[de]=X(ce,de),de++;return{values:oe,keys:ne}}render(te,J,X){return this.dt(te,J,X).values}update(te,[J,X,re]){const ne=ut(te),{values:oe,keys:de}=this.dt(J,X,re);if(!Array.isArray(ne))return this.ut=de,oe;const ce=this.ut??=[],he=[];let ue,pe,fe=0,be=ne.length-1,ge=0,ve=oe.length-1;for(;fe<=be&&ge<=ve;)if(ne[fe]===null)fe++;else if(ne[be]===null)be--;else if(ce[fe]===de[ge])he[ge]=ct(ne[fe],oe[ge]),fe++,ge++;else if(ce[be]===de[ve])he[ve]=ct(ne[be],oe[ve]),be--,ve--;else if(ce[fe]===de[ve])he[ve]=ct(ne[fe],oe[ve]),at(te,he[ve+1],ne[fe]),fe++,ve--;else if(ce[be]===de[ge])he[ge]=ct(ne[be],oe[ge]),at(te,ne[fe],ne[be]),be--,ge++;else if(ue===void 0&&(ue=Jt(de,ge,ve),pe=Jt(ce,fe,be)),ue.has(ce[fe]))if(ue.has(ce[be])){const me=pe.get(de[ge]),_e=me!==void 0?ne[me]:null;if(_e===null){const ye=at(te,ne[fe]);ct(ye,oe[ge]),he[ge]=ye}else he[ge]=ct(_e,oe[ge]),at(te,ne[fe],_e),ne[me]=null;ge++}else pt(ne[be]),be--;else pt(ne[fe]),fe++;for(;ge<=ve;){const me=at(te,he[ve+1]);ct(me,oe[ge]),he[ge++]=me}for(;fe<=be;){const me=ne[fe++];me!==null&&pt(me)}return this.ut=de,dt(te,he),R$4}}),template$q=te=>{const J=X=>ke$1`
|
|
259
259
|
<div class="pdf-item">
|
|
260
260
|
<dss-checkbox @onChange=${()=>te.setActivePdf(X.id)}>
|
|
261
261
|
<input
|
|
@@ -280,9 +280,9 @@ Registered bindings:`,ne.forEach(function(oe){var de="Object";oe.implementationT
|
|
|
280
280
|
<div>
|
|
281
281
|
${Qt(te.pdfList,X=>J(X))}
|
|
282
282
|
</div>
|
|
283
|
-
`};var __defProp$
|
|
284
|
-
${r$G(styles$
|
|
285
|
-
`;let PdfSelector=Rs;__decorateClass$
|
|
283
|
+
`};var __defProp$q=Object.defineProperty,__decorateClass$x=(te,J,X,re)=>{for(var ne=void 0,oe=te.length-1,de;oe>=0;oe--)(de=te[oe])&&(ne=de(J,X,ne)||ne);return ne&&__defProp$q(J,X,ne),ne};const Rs=class Rs extends h$n{constructor(){super(...arguments),this.activePdfs=[]}render(){return template$q(this)}removePdf(J){this.dispatchEvent(new CustomEvent("pdf-removed",{detail:J,bubbles:!0,composed:!0}))}setActivePdf(J){this.dispatchEvent(new CustomEvent("active-pdf-changed",{detail:J,bubbles:!0,composed:!0}))}openInNewWindow(J){const X=J.data.url?J.data.url:createUrlFromBase64(J.data.b64);X&&window.open(X)}};Rs.styles=i$w`
|
|
284
|
+
${r$G(styles$o)}
|
|
285
|
+
`;let PdfSelector=Rs;__decorateClass$x([n$z({type:Array})],PdfSelector.prototype,"pdfList"),__decorateClass$x([n$z({type:Array})],PdfSelector.prototype,"activePdfs");class PdfViewerManager{constructor(J,X){this.broker=J,this.notificationService=X,this.pdfs=[],this.activePdf=null,this.hasBeenActivated=!1,customElements.get("pdf-visor")||t$l("pdf-visor")(PdfVisor),customElements.get("pdf-selector")||t$l("pdf-selector")(PdfSelector)}add(J,X){const ne={id:generateId(),pdfName:J,data:X};if(!X.url&&!X.b64){this.notificationService.error(translate$1("pdfManager.missingData"));return}if(X.url&&X.b64){this.notificationService.error(translate$1("pdfManager.duplicatedSource"));return}this.hasBeenActivated||(this.registerNavButton(),this.hasBeenActivated=!0),this.pdfs.some(oe=>oe.pdfName===ne.pdfName)?this.notificationService.warning(translate$1("pdfManager.alreadyUploaded")):(this.pdfs.push(ne),this.broker.publish(pdfViwerEvents.added,ne),this.notificationService.success(translate$1("pdfManager.uploaded")))}delete(J){this.pdfs=this.pdfs.filter(X=>X.id!==J),this.activePdf?.id===J&&(this.activePdf=null),this.broker.publish(pdfViwerEvents.deleted,{id:J})}getPdfs(){return this.pdfs}registerNavButton(){registerPdfViewerNavItem()}}const createPdfViewerManager=(te,J)=>new PdfViewerManager(te,J),styles$n=".container{display:flex;flex-direction:column;gap:4px;align-items:center}.title{font-size:15px;line-height:24px;font-weight:600;color:var(--color-red-600)}.list{display:flex;flex-direction:column;gap:8px}.plugin-busy-item{text-align:center;border:var(--dss-border-width-sm) solid var(--color-neutral-100);border-radius:var(--dss-radius-lg);padding:var(--dss-spacing-md)}",template$p=te=>ke$1`
|
|
286
286
|
<div class="container">
|
|
287
287
|
<div class="title">${translate$1("busyManager.title")}</div>
|
|
288
288
|
<div class="list">
|
|
@@ -294,9 +294,11 @@ Registered bindings:`,ne.forEach(function(oe){var de="Object";oe.implementationT
|
|
|
294
294
|
</div>`)}
|
|
295
295
|
</div>
|
|
296
296
|
</div>
|
|
297
|
-
`,Ps=class Ps extends h$n{render(){return ke$1`${template$
|
|
298
|
-
${r$G(styles$
|
|
299
|
-
`;let PluginBusyList=Ps;class PluginBusyManagerImpl{constructor(J){this.broker=J,this.busyPluginTasks=[],this.busyQuickActionTasks=[],customElements.get("plugin-busy-list")||t$l("plugin-busy-list")(PluginBusyList)}addBusyPluginTask(J){this.busyPluginTasks.some(re=>re.taskId===J.taskId)||this.busyPluginTasks.push(J)}addBusyQuickActionTask(J){this.busyQuickActionTasks.findIndex(re=>re.taskId===J.taskId)>-1||(this.busyQuickActionTasks.push(J),this.emitQuickActionBusyChanged())}removeBusyPluginTask(J){const X=this.busyPluginTasks.findIndex(re=>re.taskId===J);X>-1&&this.busyPluginTasks.splice(X,1)}removeBusyQuickActionTask(J){const X=this.busyQuickActionTasks.findIndex(re=>re.taskId===J);X>-1&&(this.busyQuickActionTasks.splice(X,1),this.emitQuickActionBusyChanged())}isAnyPluginBusy(){return this.busyPluginTasks.length>0}isAnyQuickActionBusy(){return this.busyQuickActionTasks.length>0}clearAllBusyPlugins(){this.busyPluginTasks=[]}clearAllBusyQuickActions(){this.busyQuickActionTasks=[]}getBusyPluginTasks(){return this.busyPluginTasks}emitQuickActionBusyChanged(){const J=this.isAnyQuickActionBusy();this.broker.publish(shellEvents.quickActionBusyChanged,{busy:J})}}const shellRegions={header:"header-region",headerRightActions:"header-actions-region",main:"main-region",navigationMenu:"menu-region",navigationLowerLeftMenu:"navigation-lower-left-menu",quickActions:"quick-actions-region",floating:"floating-region",communicationSidenav:"communication-sidenav-region"},clinicalMonitoringRegions={sidebar:"clinical-monitoring-widgets-sidebar-region",header:"clinical-monitoring-header-widgets-region",content:"clinical-monitoring-content-widgets-region"};class RegionManagerProxy{constructor(J,X,re){this.pluginInfo=J,this.regionManager=X,this.broker=re,this.regions={shell:shellRegions,clinicalMonitoring:clinicalMonitoringRegions}}registerView(J,X){return this.regionManager.registerViewWithRegion(J,`${this.pluginInfo.pluginId}::${X.id}`,X),Promise.resolve()}removeView(J,X){return this.regionManager.getRegion(J).removeView(`${this.pluginInfo.pluginId}::${X}`),Promise.resolve()}activateView(J,X){return this.regionManager.getRegion(J).activate(`${this.pluginInfo.pluginId}::${X}`),J===this.regions.shell.main&&this._notifyMainViewChanged(X),Promise.resolve()}deactivateView(J,X){return this.regionManager.getRegion(J).deactivate(`${this.pluginInfo.pluginId}::${X}`),Promise.resolve()}getRegion(J){return Promise.resolve(this.regionManager.getRegion(J))}containsView(J,X){const re=this.regionManager.getRegion(J);return Promise.resolve(re?.containsView(`${this.pluginInfo.pluginId}::${X}`))}isViewActive(J,X){const re=this.regionManager.getRegion(J);return Promise.resolve(re?.isViewActive(`${this.pluginInfo.pluginId}::${X}`))}registerQuickAction(J){return this.regionManager.registerViewWithRegion(this.regions.shell.quickActions,`${this.pluginInfo.pluginId}::${J.id}`,J),Promise.resolve()}registerNavigationMenu(J){return this.regionManager.registerViewWithRegion(this.regions.shell.navigationMenu,`${this.pluginInfo.pluginId}::${J.id}`,J),Promise.resolve()}registerMainView(J){return this.regionManager.registerViewWithRegion(this.regions.shell.main,`${this.pluginInfo.pluginId}::${J.id}`,J),Promise.resolve()}activateMainView(J){return this.regionManager.getRegion(this.regions.shell.main).activate(`${this.pluginInfo.pluginId}::${J}`),this._notifyMainViewChanged(J),Promise.resolve()}getCurrentMainViewActive(){return this.regionManager.getRegion(this.regions.shell.main).currentActiveViews[0]?.id}_notifyMainViewChanged(J){console.log(J),this.broker.publish(shellEvents.mainViewChanged,{viewId:J})}_destroy(){this.regionManager.destroy()}}const createRegionManagerProxy=(te,J,X)=>new RegionManagerProxy(te,J,X);let token,refreshToken;class TokenManagerImpl{constructor(){this.getUrlParams=()=>new URLSearchParams(window.location.search),this.initToken=()=>{const J=this.getUrlParams();return token=J.get("access_token")||"",refreshToken=J.get("refresh_token")||"",token},this.getToken=()=>token,this.refreshToken=async()=>{const J=await axios.post("/api/token/refresh",{token:refreshToken}),{access_token:X,refresh_token:re}=J.data;if(!X)throw new Error("Invalid refresh token response");return token=X,refreshToken=re,token}}}let tokenManager$1;const createTokenManager=()=>tokenManager$1||(tokenManager$1=new TokenManagerImpl,tokenManager$1.initToken(),tokenManager$1),broker$1=createBroker(),regionManager=x$a("primaria"),PrimariaRegionHost=d$o(regionManager),tokenManager=createTokenManager(),globalStateManager=createGlobalStateManager(broker$1),pluginBusyManager=new PluginBusyManagerImpl(broker$1),interactionService=new ParimariaInteractionServiceImpl,notificationService=new PrimariaNotificationServiceImpl,ecapEventManager=createEcapEventManager(),pdfViewerManager=createPdfViewerManager(broker$1,notificationService),primariaApiFactory=te=>{const J=createRegionManagerProxy(te,regionManager,broker$1);return{pluginInfo:te,regionManager:J,httpClient:createHttpClient(tokenManager,broker$1),broker:broker$1,createLocaleManager:createLocaleManager(te.pluginId),globalStateManager,tokenManager,ecapEventManager,pluginBusyManager,interactionService,notificationService,pdfViewerManager}},shellApi=primariaApiFactory({pluginId:primariaShellId}),registerRequest=(te,J)=>(X,re)=>{J.bind(re).to(re).inTransientScope(),injectable()(re);const ne=te.broker.registerRequest(X,oe=>J.get(re).handle(oe));return{dispose:()=>{J.isBound(re)&&J.unbind(re),ne.dispose()}}},TYPES$2={primaryApi:Symbol.for("primaryApi"),store:Symbol.for("store")};function formatProdErrorMessage$1(te){return`Minified Redux error #${te}; visit https://redux.js.org/Errors?code=${te} for the full message or use the non-minified dev environment for full errors. `}var $$observable=typeof Symbol=="function"&&Symbol.observable||"@@observable",symbol_observable_default=$$observable,randomString=()=>Math.random().toString(36).substring(7).split("").join("."),ActionTypes={INIT:`@@redux/INIT${randomString()}`,REPLACE:`@@redux/REPLACE${randomString()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${randomString()}`},actionTypes_default=ActionTypes;function isPlainObject$1(te){if(typeof te!="object"||te===null)return!1;let J=te;for(;Object.getPrototypeOf(J)!==null;)J=Object.getPrototypeOf(J);return Object.getPrototypeOf(te)===J||Object.getPrototypeOf(te)===null}function createStore(te,J,X){if(typeof te!="function")throw new Error(formatProdErrorMessage$1(2));if(typeof J=="function"&&typeof X=="function"||typeof X=="function"&&typeof arguments[3]=="function")throw new Error(formatProdErrorMessage$1(0));if(typeof J=="function"&&typeof X>"u"&&(X=J,J=void 0),typeof X<"u"){if(typeof X!="function")throw new Error(formatProdErrorMessage$1(1));return X(createStore)(te,J)}let re=te,ne=J,oe=new Map,de=oe,ce=0,he=!1;function ue(){de===oe&&(de=new Map,oe.forEach((_e,ye)=>{de.set(ye,_e)}))}function pe(){if(he)throw new Error(formatProdErrorMessage$1(3));return ne}function fe(_e){if(typeof _e!="function")throw new Error(formatProdErrorMessage$1(4));if(he)throw new Error(formatProdErrorMessage$1(5));let ye=!0;ue();const Ce=ce++;return de.set(Ce,_e),function(){if(ye){if(he)throw new Error(formatProdErrorMessage$1(6));ye=!1,ue(),de.delete(Ce),oe=null}}}function be(_e){if(!isPlainObject$1(_e))throw new Error(formatProdErrorMessage$1(7));if(typeof _e.type>"u")throw new Error(formatProdErrorMessage$1(8));if(typeof _e.type!="string")throw new Error(formatProdErrorMessage$1(17));if(he)throw new Error(formatProdErrorMessage$1(9));try{he=!0,ne=re(ne,_e)}finally{he=!1}return(oe=de).forEach(Ce=>{Ce()}),_e}function ge(_e){if(typeof _e!="function")throw new Error(formatProdErrorMessage$1(10));re=_e,be({type:actionTypes_default.REPLACE})}function ve(){const _e=fe;return{subscribe(ye){if(typeof ye!="object"||ye===null)throw new Error(formatProdErrorMessage$1(11));function Ce(){const we=ye;we.next&&we.next(pe())}return Ce(),{unsubscribe:_e(Ce)}},[symbol_observable_default](){return this}}}return be({type:actionTypes_default.INIT}),{dispatch:be,subscribe:fe,getState:pe,replaceReducer:ge,[symbol_observable_default]:ve}}function assertReducerShape(te){Object.keys(te).forEach(J=>{const X=te[J];if(typeof X(void 0,{type:actionTypes_default.INIT})>"u")throw new Error(formatProdErrorMessage$1(12));if(typeof X(void 0,{type:actionTypes_default.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(formatProdErrorMessage$1(13))})}function combineReducers(te){const J=Object.keys(te),X={};for(let oe=0;oe<J.length;oe++){const de=J[oe];typeof te[de]=="function"&&(X[de]=te[de])}const re=Object.keys(X);let ne;try{assertReducerShape(X)}catch(oe){ne=oe}return function(de={},ce){if(ne)throw ne;let he=!1;const ue={};for(let pe=0;pe<re.length;pe++){const fe=re[pe],be=X[fe],ge=de[fe],ve=be(ge,ce);if(typeof ve>"u")throw ce&&ce.type,new Error(formatProdErrorMessage$1(14));ue[fe]=ve,he=he||ve!==ge}return he=he||re.length!==Object.keys(de).length,he?ue:de}}function compose(...te){return te.length===0?J=>J:te.length===1?te[0]:te.reduce((J,X)=>(...re)=>J(X(...re)))}function applyMiddleware(...te){return J=>(X,re)=>{const ne=J(X,re);let oe=()=>{throw new Error(formatProdErrorMessage$1(15))};const de={getState:ne.getState,dispatch:(he,...ue)=>oe(he,...ue)},ce=te.map(he=>he(de));return oe=compose(...ce)(ne.dispatch),{...ne,dispatch:oe}}}function isAction(te){return isPlainObject$1(te)&&"type"in te&&typeof te.type=="string"}var NOTHING=Symbol.for("immer-nothing"),DRAFTABLE=Symbol.for("immer-draftable"),DRAFT_STATE=Symbol.for("immer-state");function die(te,...J){throw new Error(`[Immer] minified error nr: ${te}. Full error at: https://bit.ly/3cXEKWf`)}var getPrototypeOf=Object.getPrototypeOf;function isDraft(te){return!!te&&!!te[DRAFT_STATE]}function isDraftable(te){return te?isPlainObject(te)||Array.isArray(te)||!!te[DRAFTABLE]||!!te.constructor?.[DRAFTABLE]||isMap(te)||isSet(te):!1}var objectCtorString=Object.prototype.constructor.toString();function isPlainObject(te){if(!te||typeof te!="object")return!1;const J=getPrototypeOf(te);if(J===null)return!0;const X=Object.hasOwnProperty.call(J,"constructor")&&J.constructor;return X===Object?!0:typeof X=="function"&&Function.toString.call(X)===objectCtorString}function each(te,J){getArchtype(te)===0?Reflect.ownKeys(te).forEach(X=>{J(X,te[X],te)}):te.forEach((X,re)=>J(re,X,te))}function getArchtype(te){const J=te[DRAFT_STATE];return J?J.type_:Array.isArray(te)?1:isMap(te)?2:isSet(te)?3:0}function has(te,J){return getArchtype(te)===2?te.has(J):Object.prototype.hasOwnProperty.call(te,J)}function set(te,J,X){const re=getArchtype(te);re===2?te.set(J,X):re===3?te.add(X):te[J]=X}function is(te,J){return te===J?te!==0||1/te===1/J:te!==te&&J!==J}function isMap(te){return te instanceof Map}function isSet(te){return te instanceof Set}function latest(te){return te.copy_||te.base_}function shallowCopy(te,J){if(isMap(te))return new Map(te);if(isSet(te))return new Set(te);if(Array.isArray(te))return Array.prototype.slice.call(te);const X=isPlainObject(te);if(J===!0||J==="class_only"&&!X){const re=Object.getOwnPropertyDescriptors(te);delete re[DRAFT_STATE];let ne=Reflect.ownKeys(re);for(let oe=0;oe<ne.length;oe++){const de=ne[oe],ce=re[de];ce.writable===!1&&(ce.writable=!0,ce.configurable=!0),(ce.get||ce.set)&&(re[de]={configurable:!0,writable:!0,enumerable:ce.enumerable,value:te[de]})}return Object.create(getPrototypeOf(te),re)}else{const re=getPrototypeOf(te);if(re!==null&&X)return{...te};const ne=Object.create(re);return Object.assign(ne,te)}}function freeze(te,J=!1){return isFrozen(te)||isDraft(te)||!isDraftable(te)||(getArchtype(te)>1&&(te.set=te.add=te.clear=te.delete=dontMutateFrozenCollections),Object.freeze(te),J&&Object.entries(te).forEach(([X,re])=>freeze(re,!0))),te}function dontMutateFrozenCollections(){die(2)}function isFrozen(te){return Object.isFrozen(te)}var plugins={};function getPlugin(te){const J=plugins[te];return J||die(0,te),J}var currentScope;function getCurrentScope(){return currentScope}function createScope(te,J){return{drafts_:[],parent_:te,immer_:J,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function usePatchesInScope(te,J){J&&(getPlugin("Patches"),te.patches_=[],te.inversePatches_=[],te.patchListener_=J)}function revokeScope(te){leaveScope(te),te.drafts_.forEach(revokeDraft),te.drafts_=null}function leaveScope(te){te===currentScope&&(currentScope=te.parent_)}function enterScope(te){return currentScope=createScope(currentScope,te)}function revokeDraft(te){const J=te[DRAFT_STATE];J.type_===0||J.type_===1?J.revoke_():J.revoked_=!0}function processResult(te,J){J.unfinalizedDrafts_=J.drafts_.length;const X=J.drafts_[0];return te!==void 0&&te!==X?(X[DRAFT_STATE].modified_&&(revokeScope(J),die(4)),isDraftable(te)&&(te=finalize(J,te),J.parent_||maybeFreeze(J,te)),J.patches_&&getPlugin("Patches").generateReplacementPatches_(X[DRAFT_STATE].base_,te,J.patches_,J.inversePatches_)):te=finalize(J,X,[]),revokeScope(J),J.patches_&&J.patchListener_(J.patches_,J.inversePatches_),te!==NOTHING?te:void 0}function finalize(te,J,X){if(isFrozen(J))return J;const re=J[DRAFT_STATE];if(!re)return each(J,(ne,oe)=>finalizeProperty(te,re,J,ne,oe,X)),J;if(re.scope_!==te)return J;if(!re.modified_)return maybeFreeze(te,re.base_,!0),re.base_;if(!re.finalized_){re.finalized_=!0,re.scope_.unfinalizedDrafts_--;const ne=re.copy_;let oe=ne,de=!1;re.type_===3&&(oe=new Set(ne),ne.clear(),de=!0),each(oe,(ce,he)=>finalizeProperty(te,re,ne,ce,he,X,de)),maybeFreeze(te,ne,!1),X&&te.patches_&&getPlugin("Patches").generatePatches_(re,X,te.patches_,te.inversePatches_)}return re.copy_}function finalizeProperty(te,J,X,re,ne,oe,de){if(isDraft(ne)){const ce=oe&&J&&J.type_!==3&&!has(J.assigned_,re)?oe.concat(re):void 0,he=finalize(te,ne,ce);if(set(X,re,he),isDraft(he))te.canAutoFreeze_=!1;else return}else de&&X.add(ne);if(isDraftable(ne)&&!isFrozen(ne)){if(!te.immer_.autoFreeze_&&te.unfinalizedDrafts_<1)return;finalize(te,ne),(!J||!J.scope_.parent_)&&typeof re!="symbol"&&Object.prototype.propertyIsEnumerable.call(X,re)&&maybeFreeze(te,ne)}}function maybeFreeze(te,J,X=!1){!te.parent_&&te.immer_.autoFreeze_&&te.canAutoFreeze_&&freeze(J,X)}function createProxyProxy(te,J){const X=Array.isArray(te),re={type_:X?1:0,scope_:J?J.scope_:getCurrentScope(),modified_:!1,finalized_:!1,assigned_:{},parent_:J,base_:te,draft_:null,copy_:null,revoke_:null,isManual_:!1};let ne=re,oe=objectTraps;X&&(ne=[re],oe=arrayTraps);const{revoke:de,proxy:ce}=Proxy.revocable(ne,oe);return re.draft_=ce,re.revoke_=de,ce}var objectTraps={get(te,J){if(J===DRAFT_STATE)return te;const X=latest(te);if(!has(X,J))return readPropFromProto(te,X,J);const re=X[J];return te.finalized_||!isDraftable(re)?re:re===peek(te.base_,J)?(prepareCopy(te),te.copy_[J]=createProxy(re,te)):re},has(te,J){return J in latest(te)},ownKeys(te){return Reflect.ownKeys(latest(te))},set(te,J,X){const re=getDescriptorFromProto(latest(te),J);if(re?.set)return re.set.call(te.draft_,X),!0;if(!te.modified_){const ne=peek(latest(te),J),oe=ne?.[DRAFT_STATE];if(oe&&oe.base_===X)return te.copy_[J]=X,te.assigned_[J]=!1,!0;if(is(X,ne)&&(X!==void 0||has(te.base_,J)))return!0;prepareCopy(te),markChanged(te)}return te.copy_[J]===X&&(X!==void 0||J in te.copy_)||Number.isNaN(X)&&Number.isNaN(te.copy_[J])||(te.copy_[J]=X,te.assigned_[J]=!0),!0},deleteProperty(te,J){return peek(te.base_,J)!==void 0||J in te.base_?(te.assigned_[J]=!1,prepareCopy(te),markChanged(te)):delete te.assigned_[J],te.copy_&&delete te.copy_[J],!0},getOwnPropertyDescriptor(te,J){const X=latest(te),re=Reflect.getOwnPropertyDescriptor(X,J);return re&&{writable:!0,configurable:te.type_!==1||J!=="length",enumerable:re.enumerable,value:X[J]}},defineProperty(){die(11)},getPrototypeOf(te){return getPrototypeOf(te.base_)},setPrototypeOf(){die(12)}},arrayTraps={};each(objectTraps,(te,J)=>{arrayTraps[te]=function(){return arguments[0]=arguments[0][0],J.apply(this,arguments)}}),arrayTraps.deleteProperty=function(te,J){return arrayTraps.set.call(this,te,J,void 0)},arrayTraps.set=function(te,J,X){return objectTraps.set.call(this,te[0],J,X,te[0])};function peek(te,J){const X=te[DRAFT_STATE];return(X?latest(X):te)[J]}function readPropFromProto(te,J,X){const re=getDescriptorFromProto(J,X);return re?"value"in re?re.value:re.get?.call(te.draft_):void 0}function getDescriptorFromProto(te,J){if(!(J in te))return;let X=getPrototypeOf(te);for(;X;){const re=Object.getOwnPropertyDescriptor(X,J);if(re)return re;X=getPrototypeOf(X)}}function markChanged(te){te.modified_||(te.modified_=!0,te.parent_&&markChanged(te.parent_))}function prepareCopy(te){te.copy_||(te.copy_=shallowCopy(te.base_,te.scope_.immer_.useStrictShallowCopy_))}var Immer2=class{constructor(te){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(J,X,re)=>{if(typeof J=="function"&&typeof X!="function"){const oe=X;X=J;const de=this;return function(he=oe,...ue){return de.produce(he,pe=>X.call(this,pe,...ue))}}typeof X!="function"&&die(6),re!==void 0&&typeof re!="function"&&die(7);let ne;if(isDraftable(J)){const oe=enterScope(this),de=createProxy(J,void 0);let ce=!0;try{ne=X(de),ce=!1}finally{ce?revokeScope(oe):leaveScope(oe)}return usePatchesInScope(oe,re),processResult(ne,oe)}else if(!J||typeof J!="object"){if(ne=X(J),ne===void 0&&(ne=J),ne===NOTHING&&(ne=void 0),this.autoFreeze_&&freeze(ne,!0),re){const oe=[],de=[];getPlugin("Patches").generateReplacementPatches_(J,ne,oe,de),re(oe,de)}return ne}else die(1,J)},this.produceWithPatches=(J,X)=>{if(typeof J=="function")return(de,...ce)=>this.produceWithPatches(de,he=>J(he,...ce));let re,ne;return[this.produce(J,X,(de,ce)=>{re=de,ne=ce}),re,ne]},typeof te?.autoFreeze=="boolean"&&this.setAutoFreeze(te.autoFreeze),typeof te?.useStrictShallowCopy=="boolean"&&this.setUseStrictShallowCopy(te.useStrictShallowCopy)}createDraft(te){isDraftable(te)||die(8),isDraft(te)&&(te=current(te));const J=enterScope(this),X=createProxy(te,void 0);return X[DRAFT_STATE].isManual_=!0,leaveScope(J),X}finishDraft(te,J){const X=te&&te[DRAFT_STATE];(!X||!X.isManual_)&&die(9);const{scope_:re}=X;return usePatchesInScope(re,J),processResult(void 0,re)}setAutoFreeze(te){this.autoFreeze_=te}setUseStrictShallowCopy(te){this.useStrictShallowCopy_=te}applyPatches(te,J){let X;for(X=J.length-1;X>=0;X--){const ne=J[X];if(ne.path.length===0&&ne.op==="replace"){te=ne.value;break}}X>-1&&(J=J.slice(X+1));const re=getPlugin("Patches").applyPatches_;return isDraft(te)?re(te,J):this.produce(te,ne=>re(ne,J))}};function createProxy(te,J){const X=isMap(te)?getPlugin("MapSet").proxyMap_(te,J):isSet(te)?getPlugin("MapSet").proxySet_(te,J):createProxyProxy(te,J);return(J?J.scope_:getCurrentScope()).drafts_.push(X),X}function current(te){return isDraft(te)||die(10,te),currentImpl(te)}function currentImpl(te){if(!isDraftable(te)||isFrozen(te))return te;const J=te[DRAFT_STATE];let X;if(J){if(!J.modified_)return J.base_;J.finalized_=!0,X=shallowCopy(te,J.scope_.immer_.useStrictShallowCopy_)}else X=shallowCopy(te,!0);return each(X,(re,ne)=>{set(X,re,currentImpl(ne))}),J&&(J.finalized_=!1),X}var immer=new Immer2,produce=immer.produce;immer.produceWithPatches.bind(immer),immer.setAutoFreeze.bind(immer),immer.setUseStrictShallowCopy.bind(immer),immer.applyPatches.bind(immer),immer.createDraft.bind(immer),immer.finishDraft.bind(immer);function assertIsFunction(te,J=`expected a function, instead received ${typeof te}`){if(typeof te!="function")throw new TypeError(J)}function assertIsObject(te,J=`expected an object, instead received ${typeof te}`){if(typeof te!="object")throw new TypeError(J)}function assertIsArrayOfFunctions(te,J="expected all items to be functions, instead received the following types: "){if(!te.every(X=>typeof X=="function")){const X=te.map(re=>typeof re=="function"?`function ${re.name||"unnamed"}()`:typeof re).join(", ");throw new TypeError(`${J}[${X}]`)}}var ensureIsArray=te=>Array.isArray(te)?te:[te];function getDependencies(te){const J=Array.isArray(te[0])?te[0]:te;return assertIsArrayOfFunctions(J,"createSelector expects all input-selectors to be functions, but received the following types: "),J}function collectInputSelectorResults(te,J){const X=[],{length:re}=te;for(let ne=0;ne<re;ne++)X.push(te[ne].apply(null,J));return X}var StrongRef=class{constructor(te){this.value=te}deref(){return this.value}},Ref=typeof WeakRef<"u"?WeakRef:StrongRef,UNTERMINATED=0,TERMINATED=1;function createCacheNode(){return{s:UNTERMINATED,v:void 0,o:null,p:null}}function weakMapMemoize(te,J={}){let X=createCacheNode();const{resultEqualityCheck:re}=J;let ne,oe=0;function de(){let ce=X;const{length:he}=arguments;for(let fe=0,be=he;fe<be;fe++){const ge=arguments[fe];if(typeof ge=="function"||typeof ge=="object"&&ge!==null){let ve=ce.o;ve===null&&(ce.o=ve=new WeakMap);const me=ve.get(ge);me===void 0?(ce=createCacheNode(),ve.set(ge,ce)):ce=me}else{let ve=ce.p;ve===null&&(ce.p=ve=new Map);const me=ve.get(ge);me===void 0?(ce=createCacheNode(),ve.set(ge,ce)):ce=me}}const ue=ce;let pe;if(ce.s===TERMINATED)pe=ce.v;else if(pe=te.apply(null,arguments),oe++,re){const fe=ne?.deref?.()??ne;fe!=null&&re(fe,pe)&&(pe=fe,oe!==0&&oe--),ne=typeof pe=="object"&&pe!==null||typeof pe=="function"?new Ref(pe):pe}return ue.s=TERMINATED,ue.v=pe,pe}return de.clearCache=()=>{X=createCacheNode(),de.resetResultsCount()},de.resultsCount=()=>oe,de.resetResultsCount=()=>{oe=0},de}function createSelectorCreator(te,...J){const X=typeof te=="function"?{memoize:te,memoizeOptions:J}:te,re=(...ne)=>{let oe=0,de=0,ce,he={},ue=ne.pop();typeof ue=="object"&&(he=ue,ue=ne.pop()),assertIsFunction(ue,`createSelector expects an output function after the inputs, but received: [${typeof ue}]`);const pe={...X,...he},{memoize:fe,memoizeOptions:be=[],argsMemoize:ge=weakMapMemoize,argsMemoizeOptions:ve=[]}=pe,me=ensureIsArray(be),_e=ensureIsArray(ve),ye=getDependencies(ne),Ce=fe(function(){return oe++,ue.apply(null,arguments)},...me),Se=ge(function(){de++;const Ae=collectInputSelectorResults(ye,arguments);return ce=Ce.apply(null,Ae),ce},..._e);return Object.assign(Se,{resultFunc:ue,memoizedResultFunc:Ce,dependencies:ye,dependencyRecomputations:()=>de,resetDependencyRecomputations:()=>{de=0},lastResult:()=>ce,recomputations:()=>oe,resetRecomputations:()=>{oe=0},memoize:fe,argsMemoize:ge})};return Object.assign(re,{withTypes:()=>re}),re}var createSelector=createSelectorCreator(weakMapMemoize),createStructuredSelector=Object.assign((te,J=createSelector)=>{assertIsObject(te,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof te}`);const X=Object.keys(te),re=X.map(oe=>te[oe]);return J(re,(...oe)=>oe.reduce((de,ce,he)=>(de[X[he]]=ce,de),{}))},{withTypes:()=>createStructuredSelector});function createThunkMiddleware(te){return({dispatch:X,getState:re})=>ne=>oe=>typeof oe=="function"?oe(X,re,te):ne(oe)}var thunk=createThunkMiddleware(),withExtraArgument=createThunkMiddleware,composeWithDevTools=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?compose:compose.apply(null,arguments)};function createAction(te,J){function X(...re){if(J){let ne=J(...re);if(!ne)throw new Error(formatProdErrorMessage(0));return{type:te,payload:ne.payload,..."meta"in ne&&{meta:ne.meta},..."error"in ne&&{error:ne.error}}}return{type:te,payload:re[0]}}return X.toString=()=>`${te}`,X.type=te,X.match=re=>isAction(re)&&re.type===te,X}var Tuple=class Ts extends Array{constructor(...J){super(...J),Object.setPrototypeOf(this,Ts.prototype)}static get[Symbol.species](){return Ts}concat(...J){return super.concat.apply(this,J)}prepend(...J){return J.length===1&&Array.isArray(J[0])?new Ts(...J[0].concat(this)):new Ts(...J.concat(this))}};function freezeDraftable(te){return isDraftable(te)?produce(te,()=>{}):te}function getOrInsertComputed(te,J,X){return te.has(J)?te.get(J):te.set(J,X(J)).get(J)}function isBoolean(te){return typeof te=="boolean"}var buildGetDefaultMiddleware=()=>function(J){const{thunk:X=!0,immutableCheck:re=!0,serializableCheck:ne=!0,actionCreatorCheck:oe=!0}=J??{};let de=new Tuple;return X&&(isBoolean(X)?de.push(thunk):de.push(withExtraArgument(X.extraArgument))),de},SHOULD_AUTOBATCH="RTK_autoBatch",createQueueWithTimer=te=>J=>{setTimeout(J,te)},autoBatchEnhancer=(te={type:"raf"})=>J=>(...X)=>{const re=J(...X);let ne=!0,oe=!1,de=!1;const ce=new Set,he=te.type==="tick"?queueMicrotask:te.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:createQueueWithTimer(10):te.type==="callback"?te.queueNotification:createQueueWithTimer(te.timeout),ue=()=>{de=!1,oe&&(oe=!1,ce.forEach(pe=>pe()))};return Object.assign({},re,{subscribe(pe){const fe=()=>ne&&pe(),be=re.subscribe(fe);return ce.add(pe),()=>{be(),ce.delete(pe)}},dispatch(pe){try{return ne=!pe?.meta?.[SHOULD_AUTOBATCH],oe=!ne,oe&&(de||(de=!0,he(ue))),re.dispatch(pe)}finally{ne=!0}}})},buildGetDefaultEnhancers=te=>function(X){const{autoBatch:re=!0}=X??{};let ne=new Tuple(te);return re&&ne.push(autoBatchEnhancer(typeof re=="object"?re:void 0)),ne};function configureStore(te){const J=buildGetDefaultMiddleware(),{reducer:X=void 0,middleware:re,devTools:ne=!0,preloadedState:oe=void 0,enhancers:de=void 0}=te||{};let ce;if(typeof X=="function")ce=X;else if(isPlainObject$1(X))ce=combineReducers(X);else throw new Error(formatProdErrorMessage(1));let he;typeof re=="function"?he=re(J):he=J();let ue=compose;ne&&(ue=composeWithDevTools({trace:!1,...typeof ne=="object"&&ne}));const pe=applyMiddleware(...he),fe=buildGetDefaultEnhancers(pe);let be=typeof de=="function"?de(fe):fe();const ge=ue(...be);return createStore(ce,oe,ge)}function executeReducerBuilderCallback(te){const J={},X=[];let re;const ne={addCase(oe,de){const ce=typeof oe=="string"?oe:oe.type;if(!ce)throw new Error(formatProdErrorMessage(28));if(ce in J)throw new Error(formatProdErrorMessage(29));return J[ce]=de,ne},addMatcher(oe,de){return X.push({matcher:oe,reducer:de}),ne},addDefaultCase(oe){return re=oe,ne}};return te(ne),[J,X,re]}function isStateFunction(te){return typeof te=="function"}function createReducer(te,J){let[X,re,ne]=executeReducerBuilderCallback(J),oe;if(isStateFunction(te))oe=()=>freezeDraftable(te());else{const ce=freezeDraftable(te);oe=()=>ce}function de(ce=oe(),he){let ue=[X[he.type],...re.filter(({matcher:pe})=>pe(he)).map(({reducer:pe})=>pe)];return ue.filter(pe=>!!pe).length===0&&(ue=[ne]),ue.reduce((pe,fe)=>{if(fe)if(isDraft(pe)){const ge=fe(pe,he);return ge===void 0?pe:ge}else{if(isDraftable(pe))return produce(pe,be=>fe(be,he));{const be=fe(pe,he);if(be===void 0){if(pe===null)return pe;throw Error("A case reducer on a non-draftable value must not return undefined")}return be}}return pe},ce)}return de.getInitialState=oe,de}var asyncThunkSymbol=Symbol.for("rtk-slice-createasyncthunk");function getType(te,J){return`${te}/${J}`}function buildCreateSlice({creators:te}={}){const J=te?.asyncThunk?.[asyncThunkSymbol];return function(re){const{name:ne,reducerPath:oe=ne}=re;if(!ne)throw new Error(formatProdErrorMessage(11));const de=(typeof re.reducers=="function"?re.reducers(buildReducerCreators()):re.reducers)||{},ce=Object.keys(de),he={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},ue={addCase(Ce,Se){const we=typeof Ce=="string"?Ce:Ce.type;if(!we)throw new Error(formatProdErrorMessage(12));if(we in he.sliceCaseReducersByType)throw new Error(formatProdErrorMessage(13));return he.sliceCaseReducersByType[we]=Se,ue},addMatcher(Ce,Se){return he.sliceMatchers.push({matcher:Ce,reducer:Se}),ue},exposeAction(Ce,Se){return he.actionCreators[Ce]=Se,ue},exposeCaseReducer(Ce,Se){return he.sliceCaseReducersByName[Ce]=Se,ue}};ce.forEach(Ce=>{const Se=de[Ce],we={reducerName:Ce,type:getType(ne,Ce),createNotation:typeof re.reducers=="function"};isAsyncThunkSliceReducerDefinition(Se)?handleThunkCaseReducerDefinition(we,Se,ue,J):handleNormalReducerDefinition(we,Se,ue)});function pe(){const[Ce={},Se=[],we=void 0]=typeof re.extraReducers=="function"?executeReducerBuilderCallback(re.extraReducers):[re.extraReducers],Ae={...Ce,...he.sliceCaseReducersByType};return createReducer(re.initialState,Le=>{for(let qe in Ae)Le.addCase(qe,Ae[qe]);for(let qe of he.sliceMatchers)Le.addMatcher(qe.matcher,qe.reducer);for(let qe of Se)Le.addMatcher(qe.matcher,qe.reducer);we&&Le.addDefaultCase(we)})}const fe=Ce=>Ce,be=new Map;let ge;function ve(Ce,Se){return ge||(ge=pe()),ge(Ce,Se)}function me(){return ge||(ge=pe()),ge.getInitialState()}function _e(Ce,Se=!1){function we(Le){let qe=Le[Ce];return typeof qe>"u"&&Se&&(qe=me()),qe}function Ae(Le=fe){const qe=getOrInsertComputed(be,Se,()=>new WeakMap);return getOrInsertComputed(qe,Le,()=>{const Me={};for(const[Ne,ze]of Object.entries(re.selectors??{}))Me[Ne]=wrapSelector(ze,Le,me,Se);return Me})}return{reducerPath:Ce,getSelectors:Ae,get selectors(){return Ae(we)},selectSlice:we}}const ye={name:ne,reducer:ve,actions:he.actionCreators,caseReducers:he.sliceCaseReducersByName,getInitialState:me,..._e(oe),injectInto(Ce,{reducerPath:Se,...we}={}){const Ae=Se??oe;return Ce.inject({reducerPath:Ae,reducer:ve},we),{...ye,..._e(Ae,!0)}}};return ye}}function wrapSelector(te,J,X,re){function ne(oe,...de){let ce=J(oe);return typeof ce>"u"&&re&&(ce=X()),te(ce,...de)}return ne.unwrapped=te,ne}var createSlice=buildCreateSlice();function buildReducerCreators(){function te(J,X){return{_reducerDefinitionType:"asyncThunk",payloadCreator:J,...X}}return te.withTypes=()=>te,{reducer(J){return Object.assign({[J.name](...X){return J(...X)}}[J.name],{_reducerDefinitionType:"reducer"})},preparedReducer(J,X){return{_reducerDefinitionType:"reducerWithPrepare",prepare:J,reducer:X}},asyncThunk:te}}function handleNormalReducerDefinition({type:te,reducerName:J,createNotation:X},re,ne){let oe,de;if("reducer"in re){if(X&&!isCaseReducerWithPrepareDefinition(re))throw new Error(formatProdErrorMessage(17));oe=re.reducer,de=re.prepare}else oe=re;ne.addCase(te,oe).exposeCaseReducer(J,oe).exposeAction(J,de?createAction(te,de):createAction(te))}function isAsyncThunkSliceReducerDefinition(te){return te._reducerDefinitionType==="asyncThunk"}function isCaseReducerWithPrepareDefinition(te){return te._reducerDefinitionType==="reducerWithPrepare"}function handleThunkCaseReducerDefinition({type:te,reducerName:J},X,re,ne){if(!ne)throw new Error(formatProdErrorMessage(18));const{payloadCreator:oe,fulfilled:de,pending:ce,rejected:he,settled:ue,options:pe}=X,fe=ne(te,oe,pe);re.exposeAction(J,fe),de&&re.addCase(fe.fulfilled,de),ce&&re.addCase(fe.pending,ce),he&&re.addCase(fe.rejected,he),ue&&re.addMatcher(fe.settled,ue),re.exposeCaseReducer(J,{fulfilled:de||noop,pending:ce||noop,rejected:he||noop,settled:ue||noop})}function noop(){}function formatProdErrorMessage(te){return`Minified Redux Toolkit error #${te}; visit https://redux-toolkit.js.org/Errors?code=${te} for the full message or use the non-minified dev environment for full errors. `}const addItemsToCollection=(te,J,X,re,ne)=>te[J]?{...te,[J]:{...te[J],items:[...te[J]?.items||[],...X]}}:{...te,[J]:{id:J,items:X,componentFactory:re,searchPredicate:ne}},addItemToCollection=(te,J,X,re)=>addItemsToCollection(te,J,[X],re);function addActivityHistoryItemReducer(te,J){const{id:X,item:re,componentFactory:ne}=J.payload;te.collections=addItemToCollection(te.collections,X,re,ne)}function addActivityHistoryItemsReducer(te,J){const{id:X,items:re,componentFactory:ne,searchPredicate:oe}=J.payload;return{...te,collections:addItemsToCollection(te.collections,X,re,ne,oe)}}const removeItemFromCollection=(te,J,X)=>{if(!te[J]?.items)return te;const re=te[J]?.items??[];return{...te,[J]:{...te[J],items:re.filter(ne=>ne.id!==X)}}};function removeActivityHistoryItemReducer(te,J){const{id:X,itemId:re}=J.payload;te.collections=removeItemFromCollection(te.collections,X,re)}const updateItemInCollection=(te,J,X)=>{if(!te[J]?.items)return te;const re=te[J]?.items??[];return{...te,[J]:{...te[J],items:re.map(ne=>ne.id===X.id?X:ne)}}};function updateActivityHistoryItemReducer(te,J){const{id:X,item:re}=J.payload;te.collections=updateItemInCollection(te.collections,X,re)}function addBusyHistoryItemReducer(te,J){te.busy.push(J.payload)}function removeBusyHistoryItemReducer(te,J){te.busy=te.busy.filter(X=>X!==J.payload)}function addErrorHistoryItemReducer(te,J){te.error.push(J.payload)}function removeErrorHistoryItemReducer(te,J){te.error=te.error.filter(X=>X.entityId!==J.payload)}const activityHistoryCollectionsSlice=createSlice({name:"activity-history-collections",initialState:{busy:[],error:[],collections:{}},reducers:{addBusyHistoryItem:addBusyHistoryItemReducer,removeBusyHistoryItem:removeBusyHistoryItemReducer,addActivityHistoryItem:addActivityHistoryItemReducer,updateActivityHistoryItem:updateActivityHistoryItemReducer,addActivityHistoryItems:addActivityHistoryItemsReducer,addErrorHistoryItem:addErrorHistoryItemReducer,removeErrorHistoryItem:removeErrorHistoryItemReducer,removeActivityHistoryItem:removeActivityHistoryItemReducer}});function setSearchStringReducer(te,J){te.searchString=J.payload}class Spec{and(J){return new AndSpec(this,J)}or(J){return new OrSpec(this,J)}not(){return new NotSpec(this)}}class AndSpec extends Spec{constructor(J,X){super(),this.left=J,this.right=X}isSatisfiedBy(J){return this.left.isSatisfiedBy(J)&&this.right.isSatisfiedBy(J)}}class OrSpec extends Spec{constructor(J,X){super(),this.left=J,this.right=X}isSatisfiedBy(J){return this.left.isSatisfiedBy(J)||this.right.isSatisfiedBy(J)}}class NotSpec extends Spec{constructor(J){super(),this.spec=J}isSatisfiedBy(J){return!this.spec.isSatisfiedBy(J)}}let shellApiRef=null;const setShellApiForOwnSpec=te=>{shellApiRef=te};class OwnSpec extends Spec{constructor(J){super(),this.context=J}isSatisfiedBy(J){if(!shellApiRef)return!1;try{const X=shellApiRef.globalStateManager.getData("userInfo");return J?.professional?.id===X?.userId}catch{return!1}}}class RelevantSpec extends Spec{constructor(J){super(),this.context=J}isSatisfiedBy(J){return J?.relevant??!1}}var ActivityHistoryFilterType=(te=>(te.Switch="switch",te.Checkbox="checkbox",te.Dropdown="dropdown",te))(ActivityHistoryFilterType||{});const isCommonFilterGroup=te=>te.id==="common",isDiagnosticFilter=te=>te.id===diagnosticsfilterId,isCustomFilter=te=>!isCommonFilterGroup(te)&&!isDiagnosticFilter(te)&&!isUpFilter(te),isUpFilter=te=>te.id===upFilterId,diagnosticsfilterId="history-diagnostics",relevantFilterId="history-relevant",ownFilterId="history-own",upFilterId="history-up",commonFilters=[{id:"common",title:"Comuns",filters:[{id:relevantFilterId,title:"Veure rellevants",spec:RelevantSpec,enabled:!1,type:ActivityHistoryFilterType.Switch},{id:ownFilterId,title:"Veure meus",spec:OwnSpec,enabled:!1,type:ActivityHistoryFilterType.Switch}]}];function setCommonFilterValueReducer(te,J){te.filters=te.filters.map(X=>X.id==="common"?{...X,filters:X.filters.map(re=>re.id===J.payload.id?{...re,enabled:J.payload.enabled}:re)}:X)}function addCustomFiltersReducer(te,J){te.filters.some(re=>re.id===J.payload.id)||(te.filters=[...te.filters,J.payload])}function setCustomFilterGroupValueReducer(te,J){te.filters=te.filters.map(X=>X.id===J.payload.id?{...X,enabled:J.payload.enabled}:X)}function setCustomFilterValueReducer(te,J){te.filters=te.filters.map(X=>X.id===J.payload.filterGroupId?{...X,filters:X.filters.map(re=>re.id===J.payload.filterId?re.singleOption?setSingleOptionFilterValue(re,J.payload.enabled):setMultipleOptionsFilterValue(re,J.payload):re)}:X)}const setMultipleOptionsFilterValue=(te,J)=>{const{optionId:X,enabled:re}=J;return te.enabledValues?.some(ne=>ne===X)&&re?te:X==null?{...te,enabledValues:[]}:{...te,enabledValues:re?[...te.enabledValues||[],X]:te.enabledValues.filter(ne=>ne!==X)}},setSingleOptionFilterValue=(te,J)=>({...te,enabled:J,enabledValues:J?[!0]:[]});function addDiagnosticFiltersReducer(te,J){const X=te.filters.findIndex(isDiagnosticFilter);if(X===-1)te.filters.push(J.payload);else{const re=te.filters[X],ne=[...re.values,...J.payload.values.filter(oe=>!re.values.some(de=>de.value===oe.value))];te.filters[X]={...re,values:ne}}}function setDiagnosticFilterValuesReducer(te,J){te.filters=[...te.filters].map(X=>isDiagnosticFilter(X)?{...X,enabledValues:J.payload}:X)}function addUpFiltersReducer(te,J){const X=te.filters.findIndex(isUpFilter);if(X===-1)te.filters.push(J.payload);else{const re=te.filters[X],ne=[...re.values,...J.payload.values.filter(oe=>!re.values.some(de=>de.value===oe.value))];te.filters[X]={...re,values:ne}}}function setUpFilterValuesReducer(te,J){te.filters=[...te.filters].map(X=>isUpFilter(X)?{...X,enabledValues:J.payload}:X)}function resetFiltersReducer(te,J){te.filters=te.filters.map(X=>X.id!=="common"&&X.id!=="history-diagnostics"&&X.id!=="history-up"?{...X,filters:X.filters.map(re=>re.singleOption?{...re,enabled:!1}:{...re,enabled:!0,enabledValues:[]})}:X.id==="history-diagnostics"||X.id==="history-up"?{...X,enabledValues:[]}:X.id==="common"?commonFilters[0]:X)}function setCustomFilterAllValuesReducer(te,J){te.filters=te.filters.map(X=>X.id===J.payload.filterGroupId?{...X,filters:X.filters.map(re=>re.id===J.payload.filterId?{...re,enabledValues:J.payload.values}:re)}:X)}const activityHistoryFiltersSlice=createSlice({name:"activity-history-filters",initialState:{searchString:"",filters:[...commonFilters]},reducers:{setSearchString:setSearchStringReducer,setCommonFilterValue:setCommonFilterValueReducer,addCustomFilters:addCustomFiltersReducer,setCustomFilterGroupValue:setCustomFilterGroupValueReducer,setCustomFilterValue:setCustomFilterValueReducer,setCustomFilterAllValues:setCustomFilterAllValuesReducer,addDiagnosticFilters:addDiagnosticFiltersReducer,setDiagnosticFilterValues:setDiagnosticFilterValuesReducer,addUpFilters:addUpFiltersReducer,setUpFilterValues:setUpFilterValuesReducer,resetFilters:resetFiltersReducer}}),store=configureStore({reducer:{activityHistoryCollections:activityHistoryCollectionsSlice.reducer,activityHistoryFilters:activityHistoryFiltersSlice.reducer},devTools:{name:"activity-history"},middleware:te=>te({serializableCheck:!1})});store.dispatch,store.getState;const container$2=new Container,{lazyInject:lazyInject$2}=getDecorators(container$2),bindDeps=te=>{container$2.bind(TYPES$2.primaryApi).toConstantValue(te),container$2.bind(TYPES$2.store).toConstantValue(store)},unbindDeps=()=>{container$2.unbind(TYPES$2.primaryApi),container$2.unbind(TYPES$2.store)};var __getOwnPropDesc$j=Object.getOwnPropertyDescriptor,__decorateClass$v=(te,J,X,re)=>{for(var ne=re>1?void 0:re?__getOwnPropDesc$j(J,X):J,oe=te.length-1,de;oe>=0;oe--)(de=te[oe])&&(ne=de(ne)||ne);return ne},__decorateParam$5=(te,J)=>(X,re)=>J(X,re,te);let StoreBaseHandler=class{constructor(te){this.store=te}};StoreBaseHandler=__decorateClass$v([injectable(),__decorateParam$5(0,inject(TYPES$2.store))],StoreBaseHandler);let ApiBaseHandler=class{constructor(te){this.api=te}};ApiBaseHandler=__decorateClass$v([injectable(),__decorateParam$5(0,inject(TYPES$2.primaryApi))],ApiBaseHandler);let BaseHandler=class{constructor(te,J){this.store=te,this.api=J}};BaseHandler=__decorateClass$v([injectable(),__decorateParam$5(0,inject(TYPES$2.store)),__decorateParam$5(1,inject(TYPES$2.primaryApi))],BaseHandler);class AddCustomFiltersCommand{constructor(J){this.payload=J}}const{addBusyHistoryItem,removeBusyHistoryItem}=activityHistoryCollectionsSlice.actions,{addErrorHistoryItem,removeErrorHistoryItem}=activityHistoryCollectionsSlice.actions,validateAddAsyncCommand=(te,J)=>{if(te.entityId!==te.filters.id)throw new Error("entityId and filters.id must be the same");if(!te.filters.title)throw new Error("filters.title is required");if(!te.asyncDataProvider)throw new Error("asyncDataProvider is required");if(!te.componentFactory)throw new Error("componentFactory is required");if(!te.errorMessage)throw new Error("errorMessage is required for failure asyncDataProviders")};class InjectAsyncHistoryItemsHandler extends BaseHandler{async handle(J){this.store.dispatch(addBusyHistoryItem(J.entityId));try{const X=await J.asyncDataProvider();validateAddAsyncCommand(J,X),this.api.broker.send("add_history_items_request",{entityId:J.entityId,entityDescription:J.entityDescription,items:X,componentFactory:J.componentFactory,searchPredicate:J.searchPredicate}),J.filters&&this.api.broker.send(new AddCustomFiltersCommand(J.filters))}catch(X){this.store.dispatch(addErrorHistoryItem({entityId:J.entityId,message:J.errorMessage||X.message,entityDescription:J.entityDescription}))}finally{this.store.dispatch(removeBusyHistoryItem(J.entityId))}}}let request$l;const bootstrapInjectAsyncHistoryItems=te=>{request$l=te.registerRequest("inject_async_history_items_request",InjectAsyncHistoryItemsHandler)},teardownInjectAsyncHistoryItems=()=>{request$l?.dispose()},isString=te=>typeof te=="string"&&te.trim()!=="",isValidDateString=te=>{if(typeof te!="string"||te.trim()==="")return!1;const J=new Date(te);return J instanceof Date&&!Number.isNaN(J.getTime())},isValidBasicActivityHistoryItem=te=>te&&isString(te.id)&&isValidDateString(te.date),ensureAreValidBasicActivityHistoryItems=te=>{if(!te.every(isValidBasicActivityHistoryItem))throw console.error("Invalid activity history items",te),new Error("Invalid activity history items");return te},notifyInvalidItem=te=>{console.error("Invalid history item",te)},validateAndFilterBasicItems=te=>{const J=[];for(const X of te)isValidBasicActivityHistoryItem(X)?J.push(X):notifyInvalidItem(X);return J},handleAddDiagnosticsFilter=(te,J)=>{const X=te.flatMap(re=>re.diagnostics??[]).filter(re=>typeof re.codi=="string"&&re.codi.trim()!=="").filter((re,ne,oe)=>ne===oe.findIndex(de=>de.codi===re.codi));if(X.length>0){const re={id:diagnosticsfilterId,title:"Diagnòstics",values:mapArrayToLabelValue(X,"descripcio","codi"),enabledValues:[]};J.dispatch(activityHistoryFiltersSlice.actions.addDiagnosticFilters(re))}},getUpFilter=te=>{const J=te.flatMap(X=>X.up??[]).filter(X=>X?.id?.trim()).filter((X,re,ne)=>re===ne.findIndex(oe=>oe.id===X.id));if(J.length>0)return{id:upFilterId,title:"UP",values:mapArrayToLabelValue(J,"description","id"),enabledValues:[]}},handleAddUpFilter=(te,J)=>{const X=getUpFilter(te);X&&J.dispatch(activityHistoryFiltersSlice.actions.addUpFilters(X))},{addActivityHistoryItem}=activityHistoryCollectionsSlice.actions;class AddHistoryItemHandler extends StoreBaseHandler{async handle(J){try{ensureAreValidBasicActivityHistoryItems([J.item]),handleAddDiagnosticsFilter([J.item],this.store),handleAddUpFilter([J.item],this.store),this.store.dispatch(addActivityHistoryItem({id:J.entityId,item:J.item}))}catch(X){console.log(X.message)}}}let request$k;const bootstrapAddHistoryItem=te=>{request$k=te.registerRequest("add_history_item_request",AddHistoryItemHandler)},teardownAddHistoryItem=()=>{request$k?.dispose()};let pluginLocaleManager;const initializeLocalization=async te=>{pluginLocaleManager=await te.createLocaleManager(locales)},translate=te=>pluginLocaleManager?pluginLocaleManager.translate(te):te,locales={ca:{"activity-history":{activityHistory:"Històric d’activitat",search:"Cercar",groupedView:"Visió agrupada",maximize:"Ampliar",deleted:"Eliminat",goToDate:"Anar a data",busyEntriesLoading:"Carregant totes les entrades",noResults:"Sense resultats. Modifica la cerca",noData:{title:"Sense dades",description:"No existeix informació per a mostrar"},isGrouping:"Creant agrupacions i preparant les dades...",searchBarResults:"Resultats per",actions:{cronogram:"Cronograma",exportPdf:"Exportar PDF",moreOptions:"Més opcions",entryLegend:"Llegenda entrades",maximizeButton:"Botó maximitzar",menuButton:"Botó menu"},modal:{selectExportOption:"Tria una opció d'exportació",allActivityHistory:"Tot l’històric d’activitat",onlyAppliedFilters:"Només amb filtres aplicats",selectDateRange:"En el cas que sigui necessari, selecciona un rang de dates",helpText:"Sense seleccionar data, s'aplicarà la de la primera entrada. Sense seleccionar data de fi, s'aplicarà la de l'última entrada.",startDate:"Data Inici",endDate:"Data Fi",cancel:"Cancel·lar",export:"Exportar"},filters:{filters:"Filtres",searchFilter:"Cercar filtre",ownFilters:"Els meus",rellevantFilters:"Rellevants",episode:"Episodi",dates:"Dates",diagnoses:"Diagnòstics",clinicalCourseType:"Tipus Curs Clínic",selected:"seleccionats",applyFilters:"Aplicar filtres",deleted:"Eliminats"},tooltips:{subjective:"Subjectiu",UPconfidenciality:"Confidencialitat: per a la meva UP"},grouped:{clinicalCourses:"Cursos clínics",activities:"Activitats",variablees:"Variables",prescriptions:"Prescripcions"},chipHeader:{selection:"Selecció:",without:"Sense",cleanFilters:"Netejar filtres"},error:{general:{title:"Hi ha hagut un problema durant la càrrega de contingut. Actualitza la pàgina o torna-ho a provar més tard.",refresh:"Actualitzar pàgina",noInfo:"No hi ha informació disponible."},partial:{title:"Hi ha hagut un problema i no s'ha pogut carregar les notes de tipus",refresh:"Actualitzar",limit:"Límit de clicks superat"},title:"Error en la càrrega",viewDetails:"Veure detalls",imageAlt:"Imatge d'error",errorToRefresh:"Error en l'acció d'actualitzar la pàgina"}}}},styles$l=".wrapper{display:flex;flex-direction:column;align-items:center;gap:24px;width:484px;height:auto}.wrapper .content-options{display:flex;flex-direction:column;align-items:center;gap:16px}.wrapper .selector-options{display:flex;flex-direction:row;gap:16px}.wrapper .content-date{display:flex;flex-direction:column;align-items:center;gap:16px;height:124px}.wrapper .datepicker-canvas{display:flex;flex-direction:row;justify-content:center;align-content:center;gap:16px}.wrapper .actions{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:16px}dss-datepicker{width:234px;height:48px;border-radius:var(--dss-radius-sm);border:var(--dss-border-width-sm);padding:var(--dss-spacing-sm);gap:var(--dss-spacing-xs);color:var(--color-neutral-100)}",template$n=te=>{const{arrayElements:J,text:X}=te;return ke$1`
|
|
297
|
+
`,Ps=class Ps extends h$n{render(){return ke$1`${template$p(this)}`}};Ps.styles=i$w`
|
|
298
|
+
${r$G(styles$n)}
|
|
299
|
+
`;let PluginBusyList=Ps;class PluginBusyManagerImpl{constructor(J){this.broker=J,this.busyPluginTasks=[],this.busyQuickActionTasks=[],customElements.get("plugin-busy-list")||t$l("plugin-busy-list")(PluginBusyList)}addBusyPluginTask(J){this.busyPluginTasks.some(re=>re.taskId===J.taskId)||this.busyPluginTasks.push(J)}addBusyQuickActionTask(J){this.busyQuickActionTasks.findIndex(re=>re.taskId===J.taskId)>-1||(this.busyQuickActionTasks.push(J),this.emitQuickActionBusyChanged())}removeBusyPluginTask(J){const X=this.busyPluginTasks.findIndex(re=>re.taskId===J);X>-1&&this.busyPluginTasks.splice(X,1)}removeBusyQuickActionTask(J){const X=this.busyQuickActionTasks.findIndex(re=>re.taskId===J);X>-1&&(this.busyQuickActionTasks.splice(X,1),this.emitQuickActionBusyChanged())}isAnyPluginBusy(){return this.busyPluginTasks.length>0}isAnyQuickActionBusy(){return this.busyQuickActionTasks.length>0}clearAllBusyPlugins(){this.busyPluginTasks=[]}clearAllBusyQuickActions(){this.busyQuickActionTasks=[]}getBusyPluginTasks(){return this.busyPluginTasks}emitQuickActionBusyChanged(){const J=this.isAnyQuickActionBusy();this.broker.publish(shellEvents.quickActionBusyChanged,{busy:J})}}const shellRegions={header:"header-region",headerRightActions:"header-actions-region",main:"main-region",navigationMenu:"menu-region",navigationLowerLeftMenu:"navigation-lower-left-menu",quickActions:"quick-actions-region",floating:"floating-region",communicationSidenav:"communication-sidenav-region",importData:"import-data-region"},clinicalMonitoringRegions={sidebar:"clinical-monitoring-widgets-sidebar-region",header:"clinical-monitoring-header-widgets-region",content:"clinical-monitoring-content-widgets-region"};class RegionManagerProxy{constructor(J,X,re){this.pluginInfo=J,this.regionManager=X,this.broker=re,this.regions={shell:shellRegions,clinicalMonitoring:clinicalMonitoringRegions}}registerView(J,X){return this.regionManager.registerViewWithRegion(J,`${this.pluginInfo.pluginId}::${X.id}`,X),Promise.resolve()}removeView(J,X){return this.regionManager.getRegion(J).removeView(`${this.pluginInfo.pluginId}::${X}`),Promise.resolve()}activateView(J,X){return this.regionManager.getRegion(J).activate(`${this.pluginInfo.pluginId}::${X}`),J===this.regions.shell.main&&this._notifyMainViewChanged(X),Promise.resolve()}deactivateView(J,X){return this.regionManager.getRegion(J).deactivate(`${this.pluginInfo.pluginId}::${X}`),Promise.resolve()}getRegion(J){return Promise.resolve(this.regionManager.getRegion(J))}containsView(J,X){const re=this.regionManager.getRegion(J);return Promise.resolve(re?.containsView(`${this.pluginInfo.pluginId}::${X}`))}isViewActive(J,X){const re=this.regionManager.getRegion(J);return Promise.resolve(re?.isViewActive(`${this.pluginInfo.pluginId}::${X}`))}registerQuickAction(J){return this.regionManager.registerViewWithRegion(this.regions.shell.quickActions,`${this.pluginInfo.pluginId}::${J.id}`,J),Promise.resolve()}registerNavigationMenu(J){return this.regionManager.registerViewWithRegion(this.regions.shell.navigationMenu,`${this.pluginInfo.pluginId}::${J.id}`,J),Promise.resolve()}registerMainView(J){return this.regionManager.registerViewWithRegion(this.regions.shell.main,`${this.pluginInfo.pluginId}::${J.id}`,J),Promise.resolve()}activateMainView(J){return this.regionManager.getRegion(this.regions.shell.main).activate(`${this.pluginInfo.pluginId}::${J}`),this._notifyMainViewChanged(J),Promise.resolve()}getCurrentMainViewActive(){return this.regionManager.getRegion(this.regions.shell.main).currentActiveViews[0]?.id}_notifyMainViewChanged(J){console.log(J),this.broker.publish(shellEvents.mainViewChanged,{viewId:J})}_destroy(){this.regionManager.destroy()}}const createRegionManagerProxy=(te,J,X)=>new RegionManagerProxy(te,J,X);let token,refreshToken;class TokenManagerImpl{constructor(){this.getUrlParams=()=>new URLSearchParams(window.location.search),this.initToken=()=>{const J=this.getUrlParams();return token=J.get("access_token")||"",refreshToken=J.get("refresh_token")||"",token},this.getToken=()=>token,this.refreshToken=async()=>{const J=await axios.post("/api/token/refresh",{token:refreshToken}),{access_token:X,refresh_token:re}=J.data;if(!X)throw new Error("Invalid refresh token response");return token=X,refreshToken=re,token}}}let tokenManager$1;const createTokenManager=()=>tokenManager$1||(tokenManager$1=new TokenManagerImpl,tokenManager$1.initToken(),tokenManager$1);class UserManagerImpl{constructor(J){this.tokenManager=J,this.getRole=()=>{const X=this.tokenManager.getToken();if(X)try{return jwtDecode(X).access_info?.role_type}catch(re){console.error("Error decoding JWT token:",re);return}},this.isUserRoleAdministrative=()=>this.getRole()==="ADM"}}let userManager$1;const createUserManager=te=>userManager$1||(userManager$1=new UserManagerImpl(te),userManager$1);class ImportDataManagerImpl{constructor(J){this.interactionService=J,this.selectedItems={},this.currentImporterId="",this.pluginTexts={}}async import(J){this.currentImporterId=J,this.selectedItems={},this.pluginTexts={};try{const{ImportDataManagerModal:X}=await Promise.resolve().then(()=>component),{confirmed:re}=await this.interactionService.confirm(void 0,{component:X},{fullCustomization:!0}),ne=this.getConcatenatedText(),oe={accepted:re,data:re?this.selectedItems:{},text:re?ne:{raw:"",html:""}};return this.selectedItems={},this.currentImporterId="",this.pluginTexts={},oe}catch(X){throw this.selectedItems={},this.currentImporterId="",this.pluginTexts={},X}}selectItems(J){this.selectedItems[J.pluginId]=J.data,this.pluginTexts[J.pluginId]=J.text}getCurrentImporterId(){return this.currentImporterId}getConcatenatedText(){const J=[],X=[];for(const re of Object.values(this.pluginTexts))re.raw&&J.push(re.raw),re.html&&X.push(re.html);return{raw:J.join(`
|
|
300
|
+
|
|
301
|
+
`),html:X.join("<br><br>")}}}const broker$1=createBroker(),regionManager=x$a("primaria"),PrimariaRegionHost=d$o(regionManager),tokenManager=createTokenManager(),userManager=createUserManager(tokenManager),globalStateManager=createGlobalStateManager(broker$1),pluginBusyManager=new PluginBusyManagerImpl(broker$1),interactionService=new ParimariaInteractionServiceImpl,notificationService=new PrimariaNotificationServiceImpl,ecapEventManager=createEcapEventManager(),pdfViewerManager=createPdfViewerManager(broker$1,notificationService),importDataManager=new ImportDataManagerImpl(interactionService),primariaApiFactory=te=>{const J=createRegionManagerProxy(te,regionManager,broker$1);return{pluginInfo:te,regionManager:J,httpClient:createHttpClient(tokenManager,broker$1),broker:broker$1,createLocaleManager:createLocaleManager(te.pluginId),globalStateManager,tokenManager,userManager,ecapEventManager,pluginBusyManager,interactionService,notificationService,pdfViewerManager,importDataManager}},shellApi=primariaApiFactory({pluginId:primariaShellId}),registerRequest=(te,J)=>(X,re)=>{J.bind(re).to(re).inTransientScope(),injectable()(re);const ne=te.broker.registerRequest(X,oe=>J.get(re).handle(oe));return{dispose:()=>{J.isBound(re)&&J.unbind(re),ne.dispose()}}},TYPES$2={primaryApi:Symbol.for("primaryApi"),store:Symbol.for("store")};function formatProdErrorMessage$1(te){return`Minified Redux error #${te}; visit https://redux.js.org/Errors?code=${te} for the full message or use the non-minified dev environment for full errors. `}var $$observable=typeof Symbol=="function"&&Symbol.observable||"@@observable",symbol_observable_default=$$observable,randomString=()=>Math.random().toString(36).substring(7).split("").join("."),ActionTypes={INIT:`@@redux/INIT${randomString()}`,REPLACE:`@@redux/REPLACE${randomString()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${randomString()}`},actionTypes_default=ActionTypes;function isPlainObject$1(te){if(typeof te!="object"||te===null)return!1;let J=te;for(;Object.getPrototypeOf(J)!==null;)J=Object.getPrototypeOf(J);return Object.getPrototypeOf(te)===J||Object.getPrototypeOf(te)===null}function createStore(te,J,X){if(typeof te!="function")throw new Error(formatProdErrorMessage$1(2));if(typeof J=="function"&&typeof X=="function"||typeof X=="function"&&typeof arguments[3]=="function")throw new Error(formatProdErrorMessage$1(0));if(typeof J=="function"&&typeof X>"u"&&(X=J,J=void 0),typeof X<"u"){if(typeof X!="function")throw new Error(formatProdErrorMessage$1(1));return X(createStore)(te,J)}let re=te,ne=J,oe=new Map,de=oe,ce=0,he=!1;function ue(){de===oe&&(de=new Map,oe.forEach((_e,ye)=>{de.set(ye,_e)}))}function pe(){if(he)throw new Error(formatProdErrorMessage$1(3));return ne}function fe(_e){if(typeof _e!="function")throw new Error(formatProdErrorMessage$1(4));if(he)throw new Error(formatProdErrorMessage$1(5));let ye=!0;ue();const Ce=ce++;return de.set(Ce,_e),function(){if(ye){if(he)throw new Error(formatProdErrorMessage$1(6));ye=!1,ue(),de.delete(Ce),oe=null}}}function be(_e){if(!isPlainObject$1(_e))throw new Error(formatProdErrorMessage$1(7));if(typeof _e.type>"u")throw new Error(formatProdErrorMessage$1(8));if(typeof _e.type!="string")throw new Error(formatProdErrorMessage$1(17));if(he)throw new Error(formatProdErrorMessage$1(9));try{he=!0,ne=re(ne,_e)}finally{he=!1}return(oe=de).forEach(Ce=>{Ce()}),_e}function ge(_e){if(typeof _e!="function")throw new Error(formatProdErrorMessage$1(10));re=_e,be({type:actionTypes_default.REPLACE})}function ve(){const _e=fe;return{subscribe(ye){if(typeof ye!="object"||ye===null)throw new Error(formatProdErrorMessage$1(11));function Ce(){const we=ye;we.next&&we.next(pe())}return Ce(),{unsubscribe:_e(Ce)}},[symbol_observable_default](){return this}}}return be({type:actionTypes_default.INIT}),{dispatch:be,subscribe:fe,getState:pe,replaceReducer:ge,[symbol_observable_default]:ve}}function assertReducerShape(te){Object.keys(te).forEach(J=>{const X=te[J];if(typeof X(void 0,{type:actionTypes_default.INIT})>"u")throw new Error(formatProdErrorMessage$1(12));if(typeof X(void 0,{type:actionTypes_default.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(formatProdErrorMessage$1(13))})}function combineReducers(te){const J=Object.keys(te),X={};for(let oe=0;oe<J.length;oe++){const de=J[oe];typeof te[de]=="function"&&(X[de]=te[de])}const re=Object.keys(X);let ne;try{assertReducerShape(X)}catch(oe){ne=oe}return function(de={},ce){if(ne)throw ne;let he=!1;const ue={};for(let pe=0;pe<re.length;pe++){const fe=re[pe],be=X[fe],ge=de[fe],ve=be(ge,ce);if(typeof ve>"u")throw ce&&ce.type,new Error(formatProdErrorMessage$1(14));ue[fe]=ve,he=he||ve!==ge}return he=he||re.length!==Object.keys(de).length,he?ue:de}}function compose(...te){return te.length===0?J=>J:te.length===1?te[0]:te.reduce((J,X)=>(...re)=>J(X(...re)))}function applyMiddleware(...te){return J=>(X,re)=>{const ne=J(X,re);let oe=()=>{throw new Error(formatProdErrorMessage$1(15))};const de={getState:ne.getState,dispatch:(he,...ue)=>oe(he,...ue)},ce=te.map(he=>he(de));return oe=compose(...ce)(ne.dispatch),{...ne,dispatch:oe}}}function isAction(te){return isPlainObject$1(te)&&"type"in te&&typeof te.type=="string"}var NOTHING=Symbol.for("immer-nothing"),DRAFTABLE=Symbol.for("immer-draftable"),DRAFT_STATE=Symbol.for("immer-state");function die(te,...J){throw new Error(`[Immer] minified error nr: ${te}. Full error at: https://bit.ly/3cXEKWf`)}var getPrototypeOf=Object.getPrototypeOf;function isDraft(te){return!!te&&!!te[DRAFT_STATE]}function isDraftable(te){return te?isPlainObject(te)||Array.isArray(te)||!!te[DRAFTABLE]||!!te.constructor?.[DRAFTABLE]||isMap(te)||isSet(te):!1}var objectCtorString=Object.prototype.constructor.toString();function isPlainObject(te){if(!te||typeof te!="object")return!1;const J=getPrototypeOf(te);if(J===null)return!0;const X=Object.hasOwnProperty.call(J,"constructor")&&J.constructor;return X===Object?!0:typeof X=="function"&&Function.toString.call(X)===objectCtorString}function each(te,J){getArchtype(te)===0?Reflect.ownKeys(te).forEach(X=>{J(X,te[X],te)}):te.forEach((X,re)=>J(re,X,te))}function getArchtype(te){const J=te[DRAFT_STATE];return J?J.type_:Array.isArray(te)?1:isMap(te)?2:isSet(te)?3:0}function has(te,J){return getArchtype(te)===2?te.has(J):Object.prototype.hasOwnProperty.call(te,J)}function set(te,J,X){const re=getArchtype(te);re===2?te.set(J,X):re===3?te.add(X):te[J]=X}function is(te,J){return te===J?te!==0||1/te===1/J:te!==te&&J!==J}function isMap(te){return te instanceof Map}function isSet(te){return te instanceof Set}function latest(te){return te.copy_||te.base_}function shallowCopy(te,J){if(isMap(te))return new Map(te);if(isSet(te))return new Set(te);if(Array.isArray(te))return Array.prototype.slice.call(te);const X=isPlainObject(te);if(J===!0||J==="class_only"&&!X){const re=Object.getOwnPropertyDescriptors(te);delete re[DRAFT_STATE];let ne=Reflect.ownKeys(re);for(let oe=0;oe<ne.length;oe++){const de=ne[oe],ce=re[de];ce.writable===!1&&(ce.writable=!0,ce.configurable=!0),(ce.get||ce.set)&&(re[de]={configurable:!0,writable:!0,enumerable:ce.enumerable,value:te[de]})}return Object.create(getPrototypeOf(te),re)}else{const re=getPrototypeOf(te);if(re!==null&&X)return{...te};const ne=Object.create(re);return Object.assign(ne,te)}}function freeze(te,J=!1){return isFrozen(te)||isDraft(te)||!isDraftable(te)||(getArchtype(te)>1&&(te.set=te.add=te.clear=te.delete=dontMutateFrozenCollections),Object.freeze(te),J&&Object.entries(te).forEach(([X,re])=>freeze(re,!0))),te}function dontMutateFrozenCollections(){die(2)}function isFrozen(te){return Object.isFrozen(te)}var plugins={};function getPlugin(te){const J=plugins[te];return J||die(0,te),J}var currentScope;function getCurrentScope(){return currentScope}function createScope(te,J){return{drafts_:[],parent_:te,immer_:J,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function usePatchesInScope(te,J){J&&(getPlugin("Patches"),te.patches_=[],te.inversePatches_=[],te.patchListener_=J)}function revokeScope(te){leaveScope(te),te.drafts_.forEach(revokeDraft),te.drafts_=null}function leaveScope(te){te===currentScope&&(currentScope=te.parent_)}function enterScope(te){return currentScope=createScope(currentScope,te)}function revokeDraft(te){const J=te[DRAFT_STATE];J.type_===0||J.type_===1?J.revoke_():J.revoked_=!0}function processResult(te,J){J.unfinalizedDrafts_=J.drafts_.length;const X=J.drafts_[0];return te!==void 0&&te!==X?(X[DRAFT_STATE].modified_&&(revokeScope(J),die(4)),isDraftable(te)&&(te=finalize(J,te),J.parent_||maybeFreeze(J,te)),J.patches_&&getPlugin("Patches").generateReplacementPatches_(X[DRAFT_STATE].base_,te,J.patches_,J.inversePatches_)):te=finalize(J,X,[]),revokeScope(J),J.patches_&&J.patchListener_(J.patches_,J.inversePatches_),te!==NOTHING?te:void 0}function finalize(te,J,X){if(isFrozen(J))return J;const re=J[DRAFT_STATE];if(!re)return each(J,(ne,oe)=>finalizeProperty(te,re,J,ne,oe,X)),J;if(re.scope_!==te)return J;if(!re.modified_)return maybeFreeze(te,re.base_,!0),re.base_;if(!re.finalized_){re.finalized_=!0,re.scope_.unfinalizedDrafts_--;const ne=re.copy_;let oe=ne,de=!1;re.type_===3&&(oe=new Set(ne),ne.clear(),de=!0),each(oe,(ce,he)=>finalizeProperty(te,re,ne,ce,he,X,de)),maybeFreeze(te,ne,!1),X&&te.patches_&&getPlugin("Patches").generatePatches_(re,X,te.patches_,te.inversePatches_)}return re.copy_}function finalizeProperty(te,J,X,re,ne,oe,de){if(isDraft(ne)){const ce=oe&&J&&J.type_!==3&&!has(J.assigned_,re)?oe.concat(re):void 0,he=finalize(te,ne,ce);if(set(X,re,he),isDraft(he))te.canAutoFreeze_=!1;else return}else de&&X.add(ne);if(isDraftable(ne)&&!isFrozen(ne)){if(!te.immer_.autoFreeze_&&te.unfinalizedDrafts_<1)return;finalize(te,ne),(!J||!J.scope_.parent_)&&typeof re!="symbol"&&Object.prototype.propertyIsEnumerable.call(X,re)&&maybeFreeze(te,ne)}}function maybeFreeze(te,J,X=!1){!te.parent_&&te.immer_.autoFreeze_&&te.canAutoFreeze_&&freeze(J,X)}function createProxyProxy(te,J){const X=Array.isArray(te),re={type_:X?1:0,scope_:J?J.scope_:getCurrentScope(),modified_:!1,finalized_:!1,assigned_:{},parent_:J,base_:te,draft_:null,copy_:null,revoke_:null,isManual_:!1};let ne=re,oe=objectTraps;X&&(ne=[re],oe=arrayTraps);const{revoke:de,proxy:ce}=Proxy.revocable(ne,oe);return re.draft_=ce,re.revoke_=de,ce}var objectTraps={get(te,J){if(J===DRAFT_STATE)return te;const X=latest(te);if(!has(X,J))return readPropFromProto(te,X,J);const re=X[J];return te.finalized_||!isDraftable(re)?re:re===peek(te.base_,J)?(prepareCopy(te),te.copy_[J]=createProxy(re,te)):re},has(te,J){return J in latest(te)},ownKeys(te){return Reflect.ownKeys(latest(te))},set(te,J,X){const re=getDescriptorFromProto(latest(te),J);if(re?.set)return re.set.call(te.draft_,X),!0;if(!te.modified_){const ne=peek(latest(te),J),oe=ne?.[DRAFT_STATE];if(oe&&oe.base_===X)return te.copy_[J]=X,te.assigned_[J]=!1,!0;if(is(X,ne)&&(X!==void 0||has(te.base_,J)))return!0;prepareCopy(te),markChanged(te)}return te.copy_[J]===X&&(X!==void 0||J in te.copy_)||Number.isNaN(X)&&Number.isNaN(te.copy_[J])||(te.copy_[J]=X,te.assigned_[J]=!0),!0},deleteProperty(te,J){return peek(te.base_,J)!==void 0||J in te.base_?(te.assigned_[J]=!1,prepareCopy(te),markChanged(te)):delete te.assigned_[J],te.copy_&&delete te.copy_[J],!0},getOwnPropertyDescriptor(te,J){const X=latest(te),re=Reflect.getOwnPropertyDescriptor(X,J);return re&&{writable:!0,configurable:te.type_!==1||J!=="length",enumerable:re.enumerable,value:X[J]}},defineProperty(){die(11)},getPrototypeOf(te){return getPrototypeOf(te.base_)},setPrototypeOf(){die(12)}},arrayTraps={};each(objectTraps,(te,J)=>{arrayTraps[te]=function(){return arguments[0]=arguments[0][0],J.apply(this,arguments)}}),arrayTraps.deleteProperty=function(te,J){return arrayTraps.set.call(this,te,J,void 0)},arrayTraps.set=function(te,J,X){return objectTraps.set.call(this,te[0],J,X,te[0])};function peek(te,J){const X=te[DRAFT_STATE];return(X?latest(X):te)[J]}function readPropFromProto(te,J,X){const re=getDescriptorFromProto(J,X);return re?"value"in re?re.value:re.get?.call(te.draft_):void 0}function getDescriptorFromProto(te,J){if(!(J in te))return;let X=getPrototypeOf(te);for(;X;){const re=Object.getOwnPropertyDescriptor(X,J);if(re)return re;X=getPrototypeOf(X)}}function markChanged(te){te.modified_||(te.modified_=!0,te.parent_&&markChanged(te.parent_))}function prepareCopy(te){te.copy_||(te.copy_=shallowCopy(te.base_,te.scope_.immer_.useStrictShallowCopy_))}var Immer2=class{constructor(te){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(J,X,re)=>{if(typeof J=="function"&&typeof X!="function"){const oe=X;X=J;const de=this;return function(he=oe,...ue){return de.produce(he,pe=>X.call(this,pe,...ue))}}typeof X!="function"&&die(6),re!==void 0&&typeof re!="function"&&die(7);let ne;if(isDraftable(J)){const oe=enterScope(this),de=createProxy(J,void 0);let ce=!0;try{ne=X(de),ce=!1}finally{ce?revokeScope(oe):leaveScope(oe)}return usePatchesInScope(oe,re),processResult(ne,oe)}else if(!J||typeof J!="object"){if(ne=X(J),ne===void 0&&(ne=J),ne===NOTHING&&(ne=void 0),this.autoFreeze_&&freeze(ne,!0),re){const oe=[],de=[];getPlugin("Patches").generateReplacementPatches_(J,ne,oe,de),re(oe,de)}return ne}else die(1,J)},this.produceWithPatches=(J,X)=>{if(typeof J=="function")return(de,...ce)=>this.produceWithPatches(de,he=>J(he,...ce));let re,ne;return[this.produce(J,X,(de,ce)=>{re=de,ne=ce}),re,ne]},typeof te?.autoFreeze=="boolean"&&this.setAutoFreeze(te.autoFreeze),typeof te?.useStrictShallowCopy=="boolean"&&this.setUseStrictShallowCopy(te.useStrictShallowCopy)}createDraft(te){isDraftable(te)||die(8),isDraft(te)&&(te=current(te));const J=enterScope(this),X=createProxy(te,void 0);return X[DRAFT_STATE].isManual_=!0,leaveScope(J),X}finishDraft(te,J){const X=te&&te[DRAFT_STATE];(!X||!X.isManual_)&&die(9);const{scope_:re}=X;return usePatchesInScope(re,J),processResult(void 0,re)}setAutoFreeze(te){this.autoFreeze_=te}setUseStrictShallowCopy(te){this.useStrictShallowCopy_=te}applyPatches(te,J){let X;for(X=J.length-1;X>=0;X--){const ne=J[X];if(ne.path.length===0&&ne.op==="replace"){te=ne.value;break}}X>-1&&(J=J.slice(X+1));const re=getPlugin("Patches").applyPatches_;return isDraft(te)?re(te,J):this.produce(te,ne=>re(ne,J))}};function createProxy(te,J){const X=isMap(te)?getPlugin("MapSet").proxyMap_(te,J):isSet(te)?getPlugin("MapSet").proxySet_(te,J):createProxyProxy(te,J);return(J?J.scope_:getCurrentScope()).drafts_.push(X),X}function current(te){return isDraft(te)||die(10,te),currentImpl(te)}function currentImpl(te){if(!isDraftable(te)||isFrozen(te))return te;const J=te[DRAFT_STATE];let X;if(J){if(!J.modified_)return J.base_;J.finalized_=!0,X=shallowCopy(te,J.scope_.immer_.useStrictShallowCopy_)}else X=shallowCopy(te,!0);return each(X,(re,ne)=>{set(X,re,currentImpl(ne))}),J&&(J.finalized_=!1),X}var immer=new Immer2,produce=immer.produce;immer.produceWithPatches.bind(immer),immer.setAutoFreeze.bind(immer),immer.setUseStrictShallowCopy.bind(immer),immer.applyPatches.bind(immer),immer.createDraft.bind(immer),immer.finishDraft.bind(immer);function assertIsFunction(te,J=`expected a function, instead received ${typeof te}`){if(typeof te!="function")throw new TypeError(J)}function assertIsObject(te,J=`expected an object, instead received ${typeof te}`){if(typeof te!="object")throw new TypeError(J)}function assertIsArrayOfFunctions(te,J="expected all items to be functions, instead received the following types: "){if(!te.every(X=>typeof X=="function")){const X=te.map(re=>typeof re=="function"?`function ${re.name||"unnamed"}()`:typeof re).join(", ");throw new TypeError(`${J}[${X}]`)}}var ensureIsArray=te=>Array.isArray(te)?te:[te];function getDependencies(te){const J=Array.isArray(te[0])?te[0]:te;return assertIsArrayOfFunctions(J,"createSelector expects all input-selectors to be functions, but received the following types: "),J}function collectInputSelectorResults(te,J){const X=[],{length:re}=te;for(let ne=0;ne<re;ne++)X.push(te[ne].apply(null,J));return X}var StrongRef=class{constructor(te){this.value=te}deref(){return this.value}},Ref=typeof WeakRef<"u"?WeakRef:StrongRef,UNTERMINATED=0,TERMINATED=1;function createCacheNode(){return{s:UNTERMINATED,v:void 0,o:null,p:null}}function weakMapMemoize(te,J={}){let X=createCacheNode();const{resultEqualityCheck:re}=J;let ne,oe=0;function de(){let ce=X;const{length:he}=arguments;for(let fe=0,be=he;fe<be;fe++){const ge=arguments[fe];if(typeof ge=="function"||typeof ge=="object"&&ge!==null){let ve=ce.o;ve===null&&(ce.o=ve=new WeakMap);const me=ve.get(ge);me===void 0?(ce=createCacheNode(),ve.set(ge,ce)):ce=me}else{let ve=ce.p;ve===null&&(ce.p=ve=new Map);const me=ve.get(ge);me===void 0?(ce=createCacheNode(),ve.set(ge,ce)):ce=me}}const ue=ce;let pe;if(ce.s===TERMINATED)pe=ce.v;else if(pe=te.apply(null,arguments),oe++,re){const fe=ne?.deref?.()??ne;fe!=null&&re(fe,pe)&&(pe=fe,oe!==0&&oe--),ne=typeof pe=="object"&&pe!==null||typeof pe=="function"?new Ref(pe):pe}return ue.s=TERMINATED,ue.v=pe,pe}return de.clearCache=()=>{X=createCacheNode(),de.resetResultsCount()},de.resultsCount=()=>oe,de.resetResultsCount=()=>{oe=0},de}function createSelectorCreator(te,...J){const X=typeof te=="function"?{memoize:te,memoizeOptions:J}:te,re=(...ne)=>{let oe=0,de=0,ce,he={},ue=ne.pop();typeof ue=="object"&&(he=ue,ue=ne.pop()),assertIsFunction(ue,`createSelector expects an output function after the inputs, but received: [${typeof ue}]`);const pe={...X,...he},{memoize:fe,memoizeOptions:be=[],argsMemoize:ge=weakMapMemoize,argsMemoizeOptions:ve=[]}=pe,me=ensureIsArray(be),_e=ensureIsArray(ve),ye=getDependencies(ne),Ce=fe(function(){return oe++,ue.apply(null,arguments)},...me),Se=ge(function(){de++;const Ae=collectInputSelectorResults(ye,arguments);return ce=Ce.apply(null,Ae),ce},..._e);return Object.assign(Se,{resultFunc:ue,memoizedResultFunc:Ce,dependencies:ye,dependencyRecomputations:()=>de,resetDependencyRecomputations:()=>{de=0},lastResult:()=>ce,recomputations:()=>oe,resetRecomputations:()=>{oe=0},memoize:fe,argsMemoize:ge})};return Object.assign(re,{withTypes:()=>re}),re}var createSelector=createSelectorCreator(weakMapMemoize),createStructuredSelector=Object.assign((te,J=createSelector)=>{assertIsObject(te,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof te}`);const X=Object.keys(te),re=X.map(oe=>te[oe]);return J(re,(...oe)=>oe.reduce((de,ce,he)=>(de[X[he]]=ce,de),{}))},{withTypes:()=>createStructuredSelector});function createThunkMiddleware(te){return({dispatch:X,getState:re})=>ne=>oe=>typeof oe=="function"?oe(X,re,te):ne(oe)}var thunk=createThunkMiddleware(),withExtraArgument=createThunkMiddleware,composeWithDevTools=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?compose:compose.apply(null,arguments)};function createAction(te,J){function X(...re){if(J){let ne=J(...re);if(!ne)throw new Error(formatProdErrorMessage(0));return{type:te,payload:ne.payload,..."meta"in ne&&{meta:ne.meta},..."error"in ne&&{error:ne.error}}}return{type:te,payload:re[0]}}return X.toString=()=>`${te}`,X.type=te,X.match=re=>isAction(re)&&re.type===te,X}var Tuple=class Ts extends Array{constructor(...J){super(...J),Object.setPrototypeOf(this,Ts.prototype)}static get[Symbol.species](){return Ts}concat(...J){return super.concat.apply(this,J)}prepend(...J){return J.length===1&&Array.isArray(J[0])?new Ts(...J[0].concat(this)):new Ts(...J.concat(this))}};function freezeDraftable(te){return isDraftable(te)?produce(te,()=>{}):te}function getOrInsertComputed(te,J,X){return te.has(J)?te.get(J):te.set(J,X(J)).get(J)}function isBoolean(te){return typeof te=="boolean"}var buildGetDefaultMiddleware=()=>function(J){const{thunk:X=!0,immutableCheck:re=!0,serializableCheck:ne=!0,actionCreatorCheck:oe=!0}=J??{};let de=new Tuple;return X&&(isBoolean(X)?de.push(thunk):de.push(withExtraArgument(X.extraArgument))),de},SHOULD_AUTOBATCH="RTK_autoBatch",createQueueWithTimer=te=>J=>{setTimeout(J,te)},autoBatchEnhancer=(te={type:"raf"})=>J=>(...X)=>{const re=J(...X);let ne=!0,oe=!1,de=!1;const ce=new Set,he=te.type==="tick"?queueMicrotask:te.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:createQueueWithTimer(10):te.type==="callback"?te.queueNotification:createQueueWithTimer(te.timeout),ue=()=>{de=!1,oe&&(oe=!1,ce.forEach(pe=>pe()))};return Object.assign({},re,{subscribe(pe){const fe=()=>ne&&pe(),be=re.subscribe(fe);return ce.add(pe),()=>{be(),ce.delete(pe)}},dispatch(pe){try{return ne=!pe?.meta?.[SHOULD_AUTOBATCH],oe=!ne,oe&&(de||(de=!0,he(ue))),re.dispatch(pe)}finally{ne=!0}}})},buildGetDefaultEnhancers=te=>function(X){const{autoBatch:re=!0}=X??{};let ne=new Tuple(te);return re&&ne.push(autoBatchEnhancer(typeof re=="object"?re:void 0)),ne};function configureStore(te){const J=buildGetDefaultMiddleware(),{reducer:X=void 0,middleware:re,devTools:ne=!0,preloadedState:oe=void 0,enhancers:de=void 0}=te||{};let ce;if(typeof X=="function")ce=X;else if(isPlainObject$1(X))ce=combineReducers(X);else throw new Error(formatProdErrorMessage(1));let he;typeof re=="function"?he=re(J):he=J();let ue=compose;ne&&(ue=composeWithDevTools({trace:!1,...typeof ne=="object"&&ne}));const pe=applyMiddleware(...he),fe=buildGetDefaultEnhancers(pe);let be=typeof de=="function"?de(fe):fe();const ge=ue(...be);return createStore(ce,oe,ge)}function executeReducerBuilderCallback(te){const J={},X=[];let re;const ne={addCase(oe,de){const ce=typeof oe=="string"?oe:oe.type;if(!ce)throw new Error(formatProdErrorMessage(28));if(ce in J)throw new Error(formatProdErrorMessage(29));return J[ce]=de,ne},addMatcher(oe,de){return X.push({matcher:oe,reducer:de}),ne},addDefaultCase(oe){return re=oe,ne}};return te(ne),[J,X,re]}function isStateFunction(te){return typeof te=="function"}function createReducer(te,J){let[X,re,ne]=executeReducerBuilderCallback(J),oe;if(isStateFunction(te))oe=()=>freezeDraftable(te());else{const ce=freezeDraftable(te);oe=()=>ce}function de(ce=oe(),he){let ue=[X[he.type],...re.filter(({matcher:pe})=>pe(he)).map(({reducer:pe})=>pe)];return ue.filter(pe=>!!pe).length===0&&(ue=[ne]),ue.reduce((pe,fe)=>{if(fe)if(isDraft(pe)){const ge=fe(pe,he);return ge===void 0?pe:ge}else{if(isDraftable(pe))return produce(pe,be=>fe(be,he));{const be=fe(pe,he);if(be===void 0){if(pe===null)return pe;throw Error("A case reducer on a non-draftable value must not return undefined")}return be}}return pe},ce)}return de.getInitialState=oe,de}var asyncThunkSymbol=Symbol.for("rtk-slice-createasyncthunk");function getType(te,J){return`${te}/${J}`}function buildCreateSlice({creators:te}={}){const J=te?.asyncThunk?.[asyncThunkSymbol];return function(re){const{name:ne,reducerPath:oe=ne}=re;if(!ne)throw new Error(formatProdErrorMessage(11));const de=(typeof re.reducers=="function"?re.reducers(buildReducerCreators()):re.reducers)||{},ce=Object.keys(de),he={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},ue={addCase(Ce,Se){const we=typeof Ce=="string"?Ce:Ce.type;if(!we)throw new Error(formatProdErrorMessage(12));if(we in he.sliceCaseReducersByType)throw new Error(formatProdErrorMessage(13));return he.sliceCaseReducersByType[we]=Se,ue},addMatcher(Ce,Se){return he.sliceMatchers.push({matcher:Ce,reducer:Se}),ue},exposeAction(Ce,Se){return he.actionCreators[Ce]=Se,ue},exposeCaseReducer(Ce,Se){return he.sliceCaseReducersByName[Ce]=Se,ue}};ce.forEach(Ce=>{const Se=de[Ce],we={reducerName:Ce,type:getType(ne,Ce),createNotation:typeof re.reducers=="function"};isAsyncThunkSliceReducerDefinition(Se)?handleThunkCaseReducerDefinition(we,Se,ue,J):handleNormalReducerDefinition(we,Se,ue)});function pe(){const[Ce={},Se=[],we=void 0]=typeof re.extraReducers=="function"?executeReducerBuilderCallback(re.extraReducers):[re.extraReducers],Ae={...Ce,...he.sliceCaseReducersByType};return createReducer(re.initialState,Le=>{for(let qe in Ae)Le.addCase(qe,Ae[qe]);for(let qe of he.sliceMatchers)Le.addMatcher(qe.matcher,qe.reducer);for(let qe of Se)Le.addMatcher(qe.matcher,qe.reducer);we&&Le.addDefaultCase(we)})}const fe=Ce=>Ce,be=new Map;let ge;function ve(Ce,Se){return ge||(ge=pe()),ge(Ce,Se)}function me(){return ge||(ge=pe()),ge.getInitialState()}function _e(Ce,Se=!1){function we(Le){let qe=Le[Ce];return typeof qe>"u"&&Se&&(qe=me()),qe}function Ae(Le=fe){const qe=getOrInsertComputed(be,Se,()=>new WeakMap);return getOrInsertComputed(qe,Le,()=>{const Me={};for(const[Ne,ze]of Object.entries(re.selectors??{}))Me[Ne]=wrapSelector(ze,Le,me,Se);return Me})}return{reducerPath:Ce,getSelectors:Ae,get selectors(){return Ae(we)},selectSlice:we}}const ye={name:ne,reducer:ve,actions:he.actionCreators,caseReducers:he.sliceCaseReducersByName,getInitialState:me,..._e(oe),injectInto(Ce,{reducerPath:Se,...we}={}){const Ae=Se??oe;return Ce.inject({reducerPath:Ae,reducer:ve},we),{...ye,..._e(Ae,!0)}}};return ye}}function wrapSelector(te,J,X,re){function ne(oe,...de){let ce=J(oe);return typeof ce>"u"&&re&&(ce=X()),te(ce,...de)}return ne.unwrapped=te,ne}var createSlice=buildCreateSlice();function buildReducerCreators(){function te(J,X){return{_reducerDefinitionType:"asyncThunk",payloadCreator:J,...X}}return te.withTypes=()=>te,{reducer(J){return Object.assign({[J.name](...X){return J(...X)}}[J.name],{_reducerDefinitionType:"reducer"})},preparedReducer(J,X){return{_reducerDefinitionType:"reducerWithPrepare",prepare:J,reducer:X}},asyncThunk:te}}function handleNormalReducerDefinition({type:te,reducerName:J,createNotation:X},re,ne){let oe,de;if("reducer"in re){if(X&&!isCaseReducerWithPrepareDefinition(re))throw new Error(formatProdErrorMessage(17));oe=re.reducer,de=re.prepare}else oe=re;ne.addCase(te,oe).exposeCaseReducer(J,oe).exposeAction(J,de?createAction(te,de):createAction(te))}function isAsyncThunkSliceReducerDefinition(te){return te._reducerDefinitionType==="asyncThunk"}function isCaseReducerWithPrepareDefinition(te){return te._reducerDefinitionType==="reducerWithPrepare"}function handleThunkCaseReducerDefinition({type:te,reducerName:J},X,re,ne){if(!ne)throw new Error(formatProdErrorMessage(18));const{payloadCreator:oe,fulfilled:de,pending:ce,rejected:he,settled:ue,options:pe}=X,fe=ne(te,oe,pe);re.exposeAction(J,fe),de&&re.addCase(fe.fulfilled,de),ce&&re.addCase(fe.pending,ce),he&&re.addCase(fe.rejected,he),ue&&re.addMatcher(fe.settled,ue),re.exposeCaseReducer(J,{fulfilled:de||noop,pending:ce||noop,rejected:he||noop,settled:ue||noop})}function noop(){}function formatProdErrorMessage(te){return`Minified Redux Toolkit error #${te}; visit https://redux-toolkit.js.org/Errors?code=${te} for the full message or use the non-minified dev environment for full errors. `}const addItemsToCollection=(te,J,X,re,ne)=>te[J]?{...te,[J]:{...te[J],items:[...te[J]?.items||[],...X]}}:{...te,[J]:{id:J,items:X,componentFactory:re,searchPredicate:ne}},addItemToCollection=(te,J,X,re)=>addItemsToCollection(te,J,[X],re);function addActivityHistoryItemReducer(te,J){const{id:X,item:re,componentFactory:ne}=J.payload;te.collections=addItemToCollection(te.collections,X,re,ne)}function addActivityHistoryItemsReducer(te,J){const{id:X,items:re,componentFactory:ne,searchPredicate:oe}=J.payload;return{...te,collections:addItemsToCollection(te.collections,X,re,ne,oe)}}const removeItemFromCollection=(te,J,X)=>{if(!te[J]?.items)return te;const re=te[J]?.items??[];return{...te,[J]:{...te[J],items:re.filter(ne=>ne.id!==X)}}};function removeActivityHistoryItemReducer(te,J){const{id:X,itemId:re}=J.payload;te.collections=removeItemFromCollection(te.collections,X,re)}const updateItemInCollection=(te,J,X)=>{if(!te[J]?.items)return te;const re=te[J]?.items??[];return{...te,[J]:{...te[J],items:re.map(ne=>ne.id===X.id?X:ne)}}};function updateActivityHistoryItemReducer(te,J){const{id:X,item:re}=J.payload;te.collections=updateItemInCollection(te.collections,X,re)}function addBusyHistoryItemReducer(te,J){te.busy.push(J.payload)}function removeBusyHistoryItemReducer(te,J){te.busy=te.busy.filter(X=>X!==J.payload)}function addErrorHistoryItemReducer(te,J){te.error.push(J.payload)}function removeErrorHistoryItemReducer(te,J){te.error=te.error.filter(X=>X.entityId!==J.payload)}const activityHistoryCollectionsSlice=createSlice({name:"activity-history-collections",initialState:{busy:[],error:[],collections:{}},reducers:{addBusyHistoryItem:addBusyHistoryItemReducer,removeBusyHistoryItem:removeBusyHistoryItemReducer,addActivityHistoryItem:addActivityHistoryItemReducer,updateActivityHistoryItem:updateActivityHistoryItemReducer,addActivityHistoryItems:addActivityHistoryItemsReducer,addErrorHistoryItem:addErrorHistoryItemReducer,removeErrorHistoryItem:removeErrorHistoryItemReducer,removeActivityHistoryItem:removeActivityHistoryItemReducer}});function setSearchStringReducer(te,J){te.searchString=J.payload}class Spec{and(J){return new AndSpec(this,J)}or(J){return new OrSpec(this,J)}not(){return new NotSpec(this)}}class AndSpec extends Spec{constructor(J,X){super(),this.left=J,this.right=X}isSatisfiedBy(J){return this.left.isSatisfiedBy(J)&&this.right.isSatisfiedBy(J)}}class OrSpec extends Spec{constructor(J,X){super(),this.left=J,this.right=X}isSatisfiedBy(J){return this.left.isSatisfiedBy(J)||this.right.isSatisfiedBy(J)}}class NotSpec extends Spec{constructor(J){super(),this.spec=J}isSatisfiedBy(J){return!this.spec.isSatisfiedBy(J)}}let shellApiRef=null;const setShellApiForOwnSpec=te=>{shellApiRef=te};class OwnSpec extends Spec{constructor(J){super(),this.context=J}isSatisfiedBy(J){if(!shellApiRef)return!1;try{const X=shellApiRef.globalStateManager.getData("userInfo");return J?.professional?.id===X?.userId}catch{return!1}}}class RelevantSpec extends Spec{constructor(J){super(),this.context=J}isSatisfiedBy(J){return J?.relevant??!1}}var ActivityHistoryFilterType=(te=>(te.Switch="switch",te.Checkbox="checkbox",te.Dropdown="dropdown",te))(ActivityHistoryFilterType||{});const isCommonFilterGroup=te=>te.id==="common",isDiagnosticFilter=te=>te.id===diagnosticsfilterId,isCustomFilter=te=>!isCommonFilterGroup(te)&&!isDiagnosticFilter(te)&&!isUpFilter(te),isUpFilter=te=>te.id===upFilterId,diagnosticsfilterId="history-diagnostics",relevantFilterId="history-relevant",ownFilterId="history-own",upFilterId="history-up",commonFilters=[{id:"common",title:"Comuns",filters:[{id:relevantFilterId,title:"Veure rellevants",spec:RelevantSpec,enabled:!1,type:ActivityHistoryFilterType.Switch},{id:ownFilterId,title:"Veure meus",spec:OwnSpec,enabled:!1,type:ActivityHistoryFilterType.Switch}]}];function setCommonFilterValueReducer(te,J){te.filters=te.filters.map(X=>X.id==="common"?{...X,filters:X.filters.map(re=>re.id===J.payload.id?{...re,enabled:J.payload.enabled}:re)}:X)}function addCustomFiltersReducer(te,J){te.filters.some(re=>re.id===J.payload.id)||(te.filters=[...te.filters,J.payload])}function setCustomFilterGroupValueReducer(te,J){te.filters=te.filters.map(X=>X.id===J.payload.id?{...X,enabled:J.payload.enabled}:X)}function setCustomFilterValueReducer(te,J){te.filters=te.filters.map(X=>X.id===J.payload.filterGroupId?{...X,filters:X.filters.map(re=>re.id===J.payload.filterId?re.singleOption?setSingleOptionFilterValue(re,J.payload.enabled):setMultipleOptionsFilterValue(re,J.payload):re)}:X)}const setMultipleOptionsFilterValue=(te,J)=>{const{optionId:X,enabled:re}=J;return te.enabledValues?.some(ne=>ne===X)&&re?te:X==null?{...te,enabledValues:[]}:{...te,enabledValues:re?[...te.enabledValues||[],X]:te.enabledValues.filter(ne=>ne!==X)}},setSingleOptionFilterValue=(te,J)=>({...te,enabled:J,enabledValues:J?[!0]:[]});function addDiagnosticFiltersReducer(te,J){const X=te.filters.findIndex(isDiagnosticFilter);if(X===-1)te.filters.push(J.payload);else{const re=te.filters[X],ne=[...re.values,...J.payload.values.filter(oe=>!re.values.some(de=>de.value===oe.value))];te.filters[X]={...re,values:ne}}}function setDiagnosticFilterValuesReducer(te,J){te.filters=[...te.filters].map(X=>isDiagnosticFilter(X)?{...X,enabledValues:J.payload}:X)}function addUpFiltersReducer(te,J){const X=te.filters.findIndex(isUpFilter);if(X===-1)te.filters.push(J.payload);else{const re=te.filters[X],ne=[...re.values,...J.payload.values.filter(oe=>!re.values.some(de=>de.value===oe.value))];te.filters[X]={...re,values:ne}}}function setUpFilterValuesReducer(te,J){te.filters=[...te.filters].map(X=>isUpFilter(X)?{...X,enabledValues:J.payload}:X)}function resetFiltersReducer(te,J){te.filters=te.filters.map(X=>X.id!=="common"&&X.id!=="history-diagnostics"&&X.id!=="history-up"?{...X,filters:X.filters.map(re=>re.singleOption?{...re,enabled:!1}:{...re,enabled:!0,enabledValues:[]})}:X.id==="history-diagnostics"||X.id==="history-up"?{...X,enabledValues:[]}:X.id==="common"?commonFilters[0]:X)}function setCustomFilterAllValuesReducer(te,J){te.filters=te.filters.map(X=>X.id===J.payload.filterGroupId?{...X,filters:X.filters.map(re=>re.id===J.payload.filterId?{...re,enabledValues:J.payload.values}:re)}:X)}const activityHistoryFiltersSlice=createSlice({name:"activity-history-filters",initialState:{searchString:"",filters:[...commonFilters]},reducers:{setSearchString:setSearchStringReducer,setCommonFilterValue:setCommonFilterValueReducer,addCustomFilters:addCustomFiltersReducer,setCustomFilterGroupValue:setCustomFilterGroupValueReducer,setCustomFilterValue:setCustomFilterValueReducer,setCustomFilterAllValues:setCustomFilterAllValuesReducer,addDiagnosticFilters:addDiagnosticFiltersReducer,setDiagnosticFilterValues:setDiagnosticFilterValuesReducer,addUpFilters:addUpFiltersReducer,setUpFilterValues:setUpFilterValuesReducer,resetFilters:resetFiltersReducer}}),store=configureStore({reducer:{activityHistoryCollections:activityHistoryCollectionsSlice.reducer,activityHistoryFilters:activityHistoryFiltersSlice.reducer},devTools:{name:"activity-history"},middleware:te=>te({serializableCheck:!1})});store.dispatch,store.getState;const container$2=new Container,{lazyInject:lazyInject$2}=getDecorators(container$2),bindDeps=te=>{container$2.bind(TYPES$2.primaryApi).toConstantValue(te),container$2.bind(TYPES$2.store).toConstantValue(store)},unbindDeps=()=>{container$2.unbind(TYPES$2.primaryApi),container$2.unbind(TYPES$2.store)};var __getOwnPropDesc$k=Object.getOwnPropertyDescriptor,__decorateClass$w=(te,J,X,re)=>{for(var ne=re>1?void 0:re?__getOwnPropDesc$k(J,X):J,oe=te.length-1,de;oe>=0;oe--)(de=te[oe])&&(ne=de(ne)||ne);return ne},__decorateParam$5=(te,J)=>(X,re)=>J(X,re,te);let StoreBaseHandler=class{constructor(te){this.store=te}};StoreBaseHandler=__decorateClass$w([injectable(),__decorateParam$5(0,inject(TYPES$2.store))],StoreBaseHandler);let ApiBaseHandler=class{constructor(te){this.api=te}};ApiBaseHandler=__decorateClass$w([injectable(),__decorateParam$5(0,inject(TYPES$2.primaryApi))],ApiBaseHandler);let BaseHandler=class{constructor(te,J){this.store=te,this.api=J}};BaseHandler=__decorateClass$w([injectable(),__decorateParam$5(0,inject(TYPES$2.store)),__decorateParam$5(1,inject(TYPES$2.primaryApi))],BaseHandler);class AddCustomFiltersCommand{constructor(J){this.payload=J}}const{addBusyHistoryItem,removeBusyHistoryItem}=activityHistoryCollectionsSlice.actions,{addErrorHistoryItem,removeErrorHistoryItem}=activityHistoryCollectionsSlice.actions,validateAddAsyncCommand=(te,J)=>{if(te.entityId!==te.filters.id)throw new Error("entityId and filters.id must be the same");if(!te.filters.title)throw new Error("filters.title is required");if(!te.asyncDataProvider)throw new Error("asyncDataProvider is required");if(!te.componentFactory)throw new Error("componentFactory is required");if(!te.errorMessage)throw new Error("errorMessage is required for failure asyncDataProviders")};class InjectAsyncHistoryItemsHandler extends BaseHandler{async handle(J){this.store.dispatch(addBusyHistoryItem(J.entityId));try{const X=await J.asyncDataProvider();validateAddAsyncCommand(J,X),this.api.broker.send("add_history_items_request",{entityId:J.entityId,entityDescription:J.entityDescription,items:X,componentFactory:J.componentFactory,searchPredicate:J.searchPredicate}),J.filters&&this.api.broker.send(new AddCustomFiltersCommand(J.filters))}catch(X){this.store.dispatch(addErrorHistoryItem({entityId:J.entityId,message:J.errorMessage||X.message,entityDescription:J.entityDescription}))}finally{this.store.dispatch(removeBusyHistoryItem(J.entityId))}}}let request$l;const bootstrapInjectAsyncHistoryItems=te=>{request$l=te.registerRequest("inject_async_history_items_request",InjectAsyncHistoryItemsHandler)},teardownInjectAsyncHistoryItems=()=>{request$l?.dispose()},isString=te=>typeof te=="string"&&te.trim()!=="",isValidDateString=te=>{if(typeof te!="string"||te.trim()==="")return!1;const J=new Date(te);return J instanceof Date&&!Number.isNaN(J.getTime())},isValidBasicActivityHistoryItem=te=>te&&isString(te.id)&&isValidDateString(te.date),ensureAreValidBasicActivityHistoryItems=te=>{if(!te.every(isValidBasicActivityHistoryItem))throw console.error("Invalid activity history items",te),new Error("Invalid activity history items");return te},notifyInvalidItem=te=>{console.error("Invalid history item",te)},validateAndFilterBasicItems=te=>{const J=[];for(const X of te)isValidBasicActivityHistoryItem(X)?J.push(X):notifyInvalidItem(X);return J},handleAddDiagnosticsFilter=(te,J)=>{const X=te.flatMap(re=>re.diagnostics??[]).filter(re=>typeof re.codi=="string"&&re.codi.trim()!=="").filter((re,ne,oe)=>ne===oe.findIndex(de=>de.codi===re.codi));if(X.length>0){const re={id:diagnosticsfilterId,title:"Diagnòstics",values:mapArrayToLabelValue(X,"descripcio","codi"),enabledValues:[]};J.dispatch(activityHistoryFiltersSlice.actions.addDiagnosticFilters(re))}},getUpFilter=te=>{const J=te.flatMap(X=>X.up??[]).filter(X=>X?.id?.trim()).filter((X,re,ne)=>re===ne.findIndex(oe=>oe.id===X.id));if(J.length>0)return{id:upFilterId,title:"UP",values:mapArrayToLabelValue(J,"description","id"),enabledValues:[]}},handleAddUpFilter=(te,J)=>{const X=getUpFilter(te);X&&J.dispatch(activityHistoryFiltersSlice.actions.addUpFilters(X))},{addActivityHistoryItem}=activityHistoryCollectionsSlice.actions;class AddHistoryItemHandler extends StoreBaseHandler{async handle(J){try{ensureAreValidBasicActivityHistoryItems([J.item]),handleAddDiagnosticsFilter([J.item],this.store),handleAddUpFilter([J.item],this.store),this.store.dispatch(addActivityHistoryItem({id:J.entityId,item:J.item}))}catch(X){console.log(X.message)}}}let request$k;const bootstrapAddHistoryItem=te=>{request$k=te.registerRequest("add_history_item_request",AddHistoryItemHandler)},teardownAddHistoryItem=()=>{request$k?.dispose()};let pluginLocaleManager;const initializeLocalization=async te=>{pluginLocaleManager=await te.createLocaleManager(locales)},translate=te=>pluginLocaleManager?pluginLocaleManager.translate(te):te,locales={ca:{"activity-history":{activityHistory:"Històric d’activitat",search:"Cercar",groupedView:"Visió agrupada",maximize:"Ampliar",deleted:"Eliminat",goToDate:"Anar a data",busyEntriesLoading:"Carregant totes les entrades",noResults:"Sense resultats. Modifica la cerca",noData:{title:"Sense dades",description:"No existeix informació per a mostrar"},isGrouping:"Creant agrupacions i preparant les dades...",searchBarResults:"Resultats per",actions:{cronogram:"Cronograma",exportPdf:"Exportar PDF",moreOptions:"Més opcions",entryLegend:"Llegenda entrades",maximizeButton:"Botó maximitzar",menuButton:"Botó menu"},modal:{selectExportOption:"Tria una opció d'exportació",allActivityHistory:"Tot l’històric d’activitat",onlyAppliedFilters:"Només amb filtres aplicats",selectDateRange:"En el cas que sigui necessari, selecciona un rang de dates",helpText:"Sense seleccionar data, s'aplicarà la de la primera entrada. Sense seleccionar data de fi, s'aplicarà la de l'última entrada.",startDate:"Data Inici",endDate:"Data Fi",cancel:"Cancel·lar",export:"Exportar"},filters:{filters:"Filtres",searchFilter:"Cercar filtre",ownFilters:"Els meus",rellevantFilters:"Rellevants",episode:"Episodi",dates:"Dates",diagnoses:"Diagnòstics",clinicalCourseType:"Tipus Curs Clínic",selected:"seleccionats",applyFilters:"Aplicar filtres",deleted:"Eliminats"},tooltips:{subjective:"Subjectiu",UPconfidenciality:"Confidencialitat: per a la meva UP"},grouped:{clinicalCourses:"Cursos clínics",activities:"Activitats",variablees:"Variables",prescriptions:"Prescripcions"},chipHeader:{selection:"Selecció:",without:"Sense",cleanFilters:"Netejar filtres"},error:{general:{title:"Hi ha hagut un problema durant la càrrega de contingut. Actualitza la pàgina o torna-ho a provar més tard.",refresh:"Actualitzar pàgina",noInfo:"No hi ha informació disponible."},partial:{title:"Hi ha hagut un problema i no s'ha pogut carregar les notes de tipus",refresh:"Actualitzar",limit:"Límit de clicks superat"},title:"Error en la càrrega",viewDetails:"Veure detalls",imageAlt:"Imatge d'error",errorToRefresh:"Error en l'acció d'actualitzar la pàgina"}}}},styles$m=".wrapper{display:flex;flex-direction:column;align-items:center;gap:24px;width:484px;height:auto}.wrapper .content-options{display:flex;flex-direction:column;align-items:center;gap:16px}.wrapper .selector-options{display:flex;flex-direction:row;gap:16px}.wrapper .content-date{display:flex;flex-direction:column;align-items:center;gap:16px;height:124px}.wrapper .datepicker-canvas{display:flex;flex-direction:row;justify-content:center;align-content:center;gap:16px}.wrapper .actions{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:16px}dss-datepicker{width:234px;height:48px;border-radius:var(--dss-radius-sm);border:var(--dss-border-width-sm);padding:var(--dss-spacing-sm);gap:var(--dss-spacing-xs);color:var(--color-neutral-100)}",template$o=te=>{const{arrayElements:J,text:X}=te;return ke$1`
|
|
300
302
|
<div class="wrapper">
|
|
301
303
|
<!-- <dss-input-dropdown type="default" .elements=${J} selectall="" dropdownplaceholder="Seleccionar"
|
|
302
304
|
@onInputDropdownChange=${re=>{te.selectedVisibilityLevelElement=re.detail}}>
|
|
@@ -326,22 +328,22 @@ Registered bindings:`,ne.forEach(function(oe){var de="Object";oe.implementationT
|
|
|
326
328
|
</dss-datepicker-range>
|
|
327
329
|
</div>
|
|
328
330
|
</div>`:D$2}
|
|
329
|
-
</div>`};var __defProp$
|
|
330
|
-
${template$
|
|
331
|
+
</div>`};var __defProp$p=Object.defineProperty,__getOwnPropDesc$j=Object.getOwnPropertyDescriptor,__decorateClass$v=(te,J,X,re)=>{for(var ne=re>1?void 0:re?__getOwnPropDesc$j(J,X):J,oe=te.length-1,de;oe>=0;oe--)(de=te[oe])&&(ne=(re?de(J,X,ne):de(ne))||ne);return re&&ne&&__defProp$p(J,X,ne),ne};let ExportPdfModal=class extends h$n{constructor(){super(...arguments),this.arrayElements=[{label:"Element 1",value:"1"},{label:"Element 2",value:"2"},{label:"Element 3",value:"3"},{label:"Element 4",value:"4"}]}render(){return ke$1`
|
|
332
|
+
${template$o(this)}
|
|
331
333
|
`}static get styles(){return i$w`
|
|
332
|
-
${r$G(styles$
|
|
333
|
-
`}handleTest(){console.log(this.selectedPeriodDate)}};__decorateClass$u([n$z()],ExportPdfModal.prototype,"selectedRadioOption",2),__decorateClass$u([n$z()],ExportPdfModal.prototype,"text",2),__decorateClass$u([n$z()],ExportPdfModal.prototype,"selectedVisibilityLevelElement",2),__decorateClass$u([n$z()],ExportPdfModal.prototype,"selectedPeriodDate",2),__decorateClass$u([n$z({type:Array})],ExportPdfModal.prototype,"arrayElements",2),ExportPdfModal=__decorateClass$u([t$l("export-pdf-modal")],ExportPdfModal);class ExportToPdfHandler extends ApiBaseHandler{async handle(){try{this.api.interactionService.confirm(void 0,{component:ExportPdfModal},{title:translate("modal.selectExportOption"),confirmButtonText:"Exportar",cancelButtonText:"Cancelar"})}catch(J){this._notifyError(J.message)}}_notifyError(J){this.api.notificationService.error(J||"actions.delete.error")}}class ExportPdf{}let request$j;const bootstrapExportPdf=te=>{request$j=te.registerRequest(ExportPdf,ExportToPdfHandler)},teardownExportPdf=()=>{request$j?.dispose()},{addActivityHistoryItems}=activityHistoryCollectionsSlice.actions;class AddHistoryItemsHandler extends StoreBaseHandler{async handle(J){try{const X=validateAndFilterBasicItems(J.items);handleAddDiagnosticsFilter(X,this.store),handleAddUpFilter(X,this.store),this.store.dispatch(addActivityHistoryItems({id:J.entityId,items:X,componentFactory:J.componentFactory,searchPredicate:J.searchPredicate}))}catch(X){console.log(X.message)}}}let request$i;const bootstrapAddHistoryItems=te=>{request$i=te.registerRequest("add_history_items_request",AddHistoryItemsHandler)},teardownAddHistoryItems=()=>{request$i?.dispose()},{updateActivityHistoryItem}=activityHistoryCollectionsSlice.actions;class UpdateHistoryItemHandler extends StoreBaseHandler{async handle(J){try{ensureAreValidBasicActivityHistoryItems([J.item]),this.store.dispatch(updateActivityHistoryItem({id:J.entityId,item:J.item}))}catch(X){console.log(X.message)}}}let request$h;const bootstrapUpdateHistoryItem=te=>{request$h=te.registerRequest("update_history_item_request",UpdateHistoryItemHandler)},teardownUpdateHistoryItem=()=>{request$h?.dispose()};function connectedProperty(te,J={}){return createConnectedProperty(store)(te,J)}const activityHistorySearchStringSelector=te=>te.activityHistoryFilters.searchString;function getUniqueObjects(te,J,X,re){const ne=`Sense ${re.toLocaleLowerCase()}`,oe=new Map;let de=!1;for(const he of te){const ue=J.reduce((ge,ve)=>ge?.[ve],he),pe=X.reduce((ge,ve)=>ge?.[ve],he);typeof ue=="string"&&ue.trim()!==""&&typeof pe=="string"?oe.has(ue)||oe.set(ue,{id:ue,title:pe}):de=!0}const ce=Array.from(oe.values()).sort((he,ue)=>he.title.localeCompare(ue.title,"ca",{sensitivity:"base"}));return de&&ce.push({id:"",title:ne}),ce}class TrueSpec extends Spec{isSatisfiedBy(){return!0}}class CommonFilterSpec extends Spec{constructor(J){super(),this.commonFilters=J}isSatisfiedBy(J){return this.commonFilters.filter(ne=>ne.enabled).reduce((ne,oe)=>ne.and(new oe.spec),new TrueSpec).isSatisfiedBy(J)}}class FalseSpec extends Spec{isSatisfiedBy(){return!1}}class PropPathSpec extends Spec{constructor(J,X){super(),this.propPath=J,this.value=X}isSatisfiedBy(J){return this.propPath.reduce((re,ne)=>re?.[ne],J)===this.value}}class CustomFilterSpec extends Spec{constructor(J){super(),this.filters=J}isSatisfiedBy(J){const X=this.filters.filter(re=>re.enabled);return X.length===0?!0:X.every(re=>{if(!this.belongsToGroup(J,re))return!0;const ne=re.filters.filter(oe=>oe.enabled||oe.singleOption);return ne.length===0?!0:ne.every(oe=>oe.singleOption?oe.enabled?!0:new PropPathSpec(oe.propPathValue,!1).isSatisfiedBy(J):!oe.enabledValues||oe.enabledValues.length===0?!0:oe.enabledValues.reduce((ce,he)=>ce.or(new PropPathSpec(oe.propPathValue,he)),new FalseSpec).isSatisfiedBy(J))})}belongsToGroup(J,X){return J.type===X.id}}const normalizeStringToNFD=te=>te==null?"":String(te).normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLocaleLowerCase(),propContainsString=(te,J)=>{const X=normalizeStringToNFD(te),re=normalizeStringToNFD(J);return X.toString().toLowerCase().indexOf(re)!==-1||X.toString().indexOf(re)!==-1},commonFieldsSearchPredicate=(te,J)=>{const X=te.professional?.name&&propContainsString(te.professional?.name,J),re=te.center?.description&&propContainsString(te.center.description,J),ne=te.professional?.speciality?.description&&propContainsString(te.professional?.speciality.description,J),oe=te.professional?.role?.description&&propContainsString(te.professional?.role.description,J),de=te.service?.description&&propContainsString(te.service.description,J),ce=te.diagnostics?.some(he=>propContainsString(he.descripcio,J));return X||re||ne||oe||de||ce};class SearchStringSpec extends Spec{constructor(J,X){super(),this.searchString=J,this.searchPredicate=X}isSatisfiedBy(J){if(!this.searchString?.trim())return!0;const X=commonFieldsSearchPredicate(J,this.searchString),re=this.searchPredicate?this.searchPredicate(this.searchString.toLowerCase(),J):!1;return!!(X||re)}}class TypeSpec extends Spec{constructor(J){super(),this.itemType=J}isSatisfiedBy(J){return J?.type===this.itemType}}class ComposedTypeSpec extends Spec{constructor(J){super(),this.filters=J}isSatisfiedBy(J){return this.filters.filter(ne=>ne.enabled).map(ne=>ne.id).reduce((ne,oe)=>ne.or(new TypeSpec(oe)),new FalseSpec).isSatisfiedBy(J)}}const activityHistoryFiltersSelector=te=>te.activityHistoryFilters.filters,activityHistoryCommonFiltersSelector=createSelector(activityHistoryFiltersSelector,te=>te.find(isCommonFilterGroup)?.filters||[]),activityHistoryEnabledCommonFiltersSelector=createSelector(activityHistoryCommonFiltersSelector,te=>te.filter(J=>J.enabled)),areCommonFiltersActive=createSelector(activityHistoryEnabledCommonFiltersSelector,te=>!!te.length),activityHistoryCustomFilterGroupsSelector=createSelector(activityHistoryFiltersSelector,te=>te.filter(isCustomFilter).sort(sortBySortProperty)),sortBySortProperty=(te,J)=>Number(te.sort)-Number(J.sort),areCustomFiltersActive=createSelector(activityHistoryCustomFilterGroupsSelector,te=>te.some(J=>J.filters.some(X=>X.enabledValues?.length)));createSelector(activityHistoryCustomFilterGroupsSelector,te=>te.filter(J=>J.enabled).map(({id:J,title:X,enabled:re,sort:ne,filters:oe})=>({id:J,title:X,enabled:re,sort:ne,filters:oe.filter(de=>de.enabledValues?.length)})).filter(J=>J.filters.length>0));const areSameDiagnostics=(te,J)=>{if(te.length!==J.length)return!1;const X=te.map(ne=>ne.codi).sort(),re=J.map(ne=>ne.codi).sort();return X.every((ne,oe)=>ne===re[oe])},hasValidDiagnostic=te=>te!=null&&typeof te.codi=="string"&&typeof te.cataleg=="string"&&typeof te.descripcio=="string",hasValidDiagnostics=te=>te==null?!0:Array.isArray(te)&&te.every(hasValidDiagnostic),dateStringCache=new Map,dateObjectCache=new Map,getDateString=te=>(dateStringCache.has(te)||dateStringCache.set(te,new Date(te).toDateString()),dateStringCache.get(te)),getDateObject=te=>(dateObjectCache.has(te)||dateObjectCache.set(te,new Date(te)),dateObjectCache.get(te)),createVisitKey=te=>{const J=`${te.professional?.id||"null"}-${te.professional?.role?.id||"null"}-${te.professional?.speciality?.id||"null"}`,X=`${te.ep?.id||"null"}-${te.up?.id||"null"}-${te.center?.id||"null"}-${te.service?.id||"null"}`,re=getDateString(te.date);return`${J}|${X}|${re}`},withinEightHours=(te,J)=>{const X=getDateObject(te).getTime(),re=getDateObject(J).getTime();return Math.abs(X-re)<=480*60*1e3};function groupByValidDiagnostics(te){te.forEach(J=>{const X=[],re=[];J.items.forEach(ne=>{const oe=ne.diagnostics;if(oe?.length>0&&hasValidDiagnostics(oe)){let ce=!1;for(const he of X){const ue=he.items[0];if(areSameDiagnostics(ue.diagnostics,oe)){he.items.push(ne),ce=!0;break}}ce||X.push({idSubGroup:crypto.randomUUID(),items:[ne]})}else re.push(ne)}),J.items=re,J.subGroups=X})}const groupActivityHistoryItems=te=>{if(!te?.length)return[];dateStringCache.clear(),dateObjectCache.clear();const J=[...te].sort((re,ne)=>getDateObject(ne.date).getTime()-getDateObject(re.date).getTime()),X=[];for(const re of J){const ne=createVisitKey(re);let oe=!1;for(const de of X){if(de.items.length===0)continue;const ce=createVisitKey(de.items[0]);if(ce===ne){const he=de.items[0],ue=de.items[de.items.length-1];if(he&&ue&&withinEightHours(he.date,re.date)&&withinEightHours(ue.date,re.date)&&!X.some(fe=>fe.items.length===0||createVisitKey(fe.items[0])===ce?!1:fe.items.some(ge=>{const ve=getDateObject(re.date).getTime(),me=getDateObject(ge.date).getTime(),_e=getDateObject(ue.date).getTime(),ye=getDateObject(he.date).getTime(),Ce=Math.min(_e,ve),Se=Math.max(ye,ve);return me>Ce&&me<Se}))){de.items.push(re),de.items.sort((fe,be)=>getDateObject(be.date).getTime()-getDateObject(fe.date).getTime()),oe=!0;break}}}oe||X.push({idGroup:Math.random().toString(36).substring(2,11),items:[re],subGroups:[]})}return X.sort((re,ne)=>{const oe=re.items[0],de=ne.items[0];return!oe||!de?0:getDateObject(de.date).getTime()-getDateObject(oe.date).getTime()}),groupByValidDiagnostics(X),X},sortGroupsByMostRecentDate=te=>{const J=oe=>oe.reduce((de,ce)=>{const he=new Date(ce.date);return he>de?he:de},new Date(0)),X=oe=>oe.sort((de,ce)=>new Date(ce.date).getTime()-new Date(de.date).getTime()),re=oe=>J(oe.items),ne=oe=>{const de=oe.items.length>0?[J(oe.items)]:[],ce=oe.subGroups.map(re),he=[...de,...ce];return he.length>0?new Date(Math.max(...he.map(ue=>ue.getTime()))):new Date(0)};return te.forEach(oe=>{oe.items=X(oe.items),oe.subGroups.forEach(de=>{de.items=X(de.items)}),oe.subGroups.sort((de,ce)=>re(ce).getTime()-re(de).getTime())}),te.sort((oe,de)=>ne(de).getTime()-ne(oe).getTime())},diagnosticFilterSelector=createSelector(activityHistoryFiltersSelector,te=>te.find(isDiagnosticFilter)),diagnosticFilterEnabledValuesSelector=createSelector(diagnosticFilterSelector,te=>te?.enabledValues||[]),areDiagnosticFiltersActive=createSelector(diagnosticFilterEnabledValuesSelector,te=>!!te.length);class DiagnosticCodeSpec extends Spec{constructor(J){super(),this.diagnosticCodes=J}isSatisfiedBy(J){return this.diagnosticCodes?.length?(J.diagnostics??[]).some(re=>this.diagnosticCodes.includes(re.codi)):!0}}const upFilterSelector=createSelector(activityHistoryFiltersSelector,te=>te.find(isUpFilter)),upFilterEnabledValuesSelector=createSelector(upFilterSelector,te=>te?.enabledValues||[]),areUpFiltersActive=createSelector(upFilterEnabledValuesSelector,te=>!!te.length);class UpFilterSpec extends Spec{constructor(J){super(),this.upIds=J}isSatisfiedBy(J){if(!this.upIds?.length)return!0;const X=J.up??null;return this.upIds.some(re=>X.id===re)}}const activityHistoryCollectionsSelector=te=>te.activityHistoryCollections.collections,mapItemsWithMetadata=(te,J,X,re)=>te.map(ne=>({...ne,searchPredicate:re,componentFactory:J,type:X})),activityHistoryMappedItems=createSelector(activityHistoryCollectionsSelector,te=>Object.values(te).flatMap(J=>mapItemsWithMetadata(J.items,J.componentFactory,J.id,J.searchPredicate))),customFilterGroupsWithOptionsSelector=createSelector(activityHistoryCustomFilterGroupsSelector,activityHistoryCollectionsSelector,(te,J)=>te.map(re=>{const ne=J[re.id];return{...re,filters:re.filters.map(oe=>({...oe,options:(oe.singleOption?[]:getUniqueObjects(ne.items,oe.propPathValue,oe.propsPathDescription,oe.title))||[]}))}})),activityHistoryGroupedItems=createSelector(activityHistoryMappedItems,activityHistorySearchStringSelector,activityHistoryCommonFiltersSelector,activityHistoryCustomFilterGroupsSelector,diagnosticFilterEnabledValuesSelector,upFilterEnabledValuesSelector,(te,J,X,re,ne,oe)=>{const de=te.filter(ue=>new SearchStringSpec(J,ue.searchPredicate).and(new CommonFilterSpec(X)).and(new ComposedTypeSpec(re)).and(new CustomFilterSpec(re)).and(new DiagnosticCodeSpec(ne)).and(new UpFilterSpec(oe)).isSatisfiedBy(ue)),ce=groupActivityHistoryItems(de);return sortGroupsByMostRecentDate(ce)}),styles$k=":host{min-height:1px;display:flex;flex-direction:column;flex:1 1 0%}.virtual-container{height:100%;position:relative}.virtual-viewport{height:100%;overflow:auto;padding-inline:16px}.virtual-content{position:relative;width:100%}.virtual-items{position:relative}.container{min-height:1px;height:100%}.visit:first-child{margin-top:var(--dss-spacing-md)}.visit{width:calc(100% - var(--dss-spacing-md) - var(--dss-spacing-md));display:flex;flex-direction:column;gap:var(--dss-spacing-sm);background-color:#fff;border-radius:var(--dss-radius-sm);padding:var(--dss-spacing-sm);margin-bottom:var(--dss-spacing-md)}.visit .visit__header{display:flex;flex-direction:row;align-items:center;gap:16px}.visit .visit__header .title{flex:1;font-size:14px;line-height:24px;display:flex;flex-direction:row;gap:12px;color:var(--color-neutral-800)}.visit .visit__header .title-date{font-weight:700}.visit .visit__header .title-description{font-weight:600;display:flex;flex-direction:row;gap:4px}.visit .visit__header .highlight{background-color:#ff0;font-weight:700}.visit .visit__items{display:flex;flex-direction:column;gap:var(--dss-spacing-sm)}.visit .visit__items .item[has-divider]{border-bottom:var(--dss-border-width-sm) solid var(--color-neutral-200)}.visit .visit__items .item[has-divider]:last-of-type{border:none}.visit .diagnostics{display:flex;flex-direction:column;gap:var(--dss-spacing-sm);border-bottom:var(--dss-border-width-sm) solid var(--color-neutral-200)}.visit .diagnostics:last-of-type{border:none}.visit .diagnostics .diagnostics__header{display:flex;flex-direction:row;align-items:center;gap:16px;flex-wrap:wrap}.visit .diagnostics .diagnostics__items{display:flex;flex-direction:column}.visit .diagnostics .diagnostics__items .item[has-divider]{border-bottom:var(--dss-border-width-sm) solid var(--color-neutral-200)}.visit .diagnostics .diagnostics__items .item[has-divider]:last-of-type{border:none}.feedback{width:100%;height:100%;display:flex;align-items:center;justify-content:center}";function toDate(te){const J=Object.prototype.toString.call(te);return te instanceof Date||typeof te=="object"&&J==="[object Date]"?new te.constructor(+te):typeof te=="number"||J==="[object Number]"||typeof te=="string"||J==="[object String]"?new Date(te):new Date(NaN)}function constructFrom(te,J){return te instanceof Date?new te.constructor(J):new Date(J)}function addDays(te,J){const X=toDate(te);return isNaN(J)?constructFrom(te,NaN):(J&&X.setDate(X.getDate()+J),X)}const millisecondsInWeek=6048e5,millisecondsInDay=864e5,millisecondsInMinute=6e4,millisecondsInHour=36e5,millisecondsInSecond=1e3;let defaultOptions={};function getDefaultOptions$1(){return defaultOptions}function startOfWeek(te,J){const X=getDefaultOptions$1(),re=J?.weekStartsOn??J?.locale?.options?.weekStartsOn??X.weekStartsOn??X.locale?.options?.weekStartsOn??0,ne=toDate(te),oe=ne.getDay(),de=(oe<re?7:0)+oe-re;return ne.setDate(ne.getDate()-de),ne.setHours(0,0,0,0),ne}function startOfISOWeek(te){return startOfWeek(te,{weekStartsOn:1})}function getISOWeekYear(te){const J=toDate(te),X=J.getFullYear(),re=constructFrom(te,0);re.setFullYear(X+1,0,4),re.setHours(0,0,0,0);const ne=startOfISOWeek(re),oe=constructFrom(te,0);oe.setFullYear(X,0,4),oe.setHours(0,0,0,0);const de=startOfISOWeek(oe);return J.getTime()>=ne.getTime()?X+1:J.getTime()>=de.getTime()?X:X-1}function startOfDay(te){const J=toDate(te);return J.setHours(0,0,0,0),J}function getTimezoneOffsetInMilliseconds(te){const J=toDate(te),X=new Date(Date.UTC(J.getFullYear(),J.getMonth(),J.getDate(),J.getHours(),J.getMinutes(),J.getSeconds(),J.getMilliseconds()));return X.setUTCFullYear(J.getFullYear()),+te-+X}function differenceInCalendarDays(te,J){const X=startOfDay(te),re=startOfDay(J),ne=+X-getTimezoneOffsetInMilliseconds(X),oe=+re-getTimezoneOffsetInMilliseconds(re);return Math.round((ne-oe)/millisecondsInDay)}function startOfISOWeekYear(te){const J=getISOWeekYear(te),X=constructFrom(te,0);return X.setFullYear(J,0,4),X.setHours(0,0,0,0),startOfISOWeek(X)}function isDate(te){return te instanceof Date||typeof te=="object"&&Object.prototype.toString.call(te)==="[object Date]"}function isValid(te){if(!isDate(te)&&typeof te!="number")return!1;const J=toDate(te);return!isNaN(Number(J))}function endOfMonth(te){const J=toDate(te),X=J.getMonth();return J.setFullYear(J.getFullYear(),X+1,0),J.setHours(23,59,59,999),J}function eachDayOfInterval(te,J){const X=toDate(te.start),re=toDate(te.end);let ne=+X>+re;const oe=ne?+X:+re,de=ne?re:X;de.setHours(0,0,0,0);let ce=1;const he=[];for(;+de<=oe;)he.push(toDate(de)),de.setDate(de.getDate()+ce),de.setHours(0,0,0,0);return ne?he.reverse():he}function startOfMonth(te){const J=toDate(te);return J.setDate(1),J.setHours(0,0,0,0),J}function startOfYear(te){const J=toDate(te),X=constructFrom(te,0);return X.setFullYear(J.getFullYear(),0,1),X.setHours(0,0,0,0),X}const formatDistanceLocale={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},formatDistance=(te,J,X)=>{let re;const ne=formatDistanceLocale[te];return typeof ne=="string"?re=ne:J===1?re=ne.one:re=ne.other.replace("{{count}}",J.toString()),X?.addSuffix?X.comparison&&X.comparison>0?"in "+re:re+" ago":re};function buildFormatLongFn(te){return(J={})=>{const X=J.width?String(J.width):te.defaultWidth;return te.formats[X]||te.formats[te.defaultWidth]}}const dateFormats={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},timeFormats={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},dateTimeFormats={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},formatLong={date:buildFormatLongFn({formats:dateFormats,defaultWidth:"full"}),time:buildFormatLongFn({formats:timeFormats,defaultWidth:"full"}),dateTime:buildFormatLongFn({formats:dateTimeFormats,defaultWidth:"full"})},formatRelativeLocale={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},formatRelative=(te,J,X,re)=>formatRelativeLocale[te];function buildLocalizeFn(te){return(J,X)=>{const re=X?.context?String(X.context):"standalone";let ne;if(re==="formatting"&&te.formattingValues){const de=te.defaultFormattingWidth||te.defaultWidth,ce=X?.width?String(X.width):de;ne=te.formattingValues[ce]||te.formattingValues[de]}else{const de=te.defaultWidth,ce=X?.width?String(X.width):te.defaultWidth;ne=te.values[ce]||te.values[de]}const oe=te.argumentCallback?te.argumentCallback(J):J;return ne[oe]}}const eraValues={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},quarterValues={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},monthValues={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},dayValues={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},dayPeriodValues={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},formattingDayPeriodValues={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},ordinalNumber=(te,J)=>{const X=Number(te),re=X%100;if(re>20||re<10)switch(re%10){case 1:return X+"st";case 2:return X+"nd";case 3:return X+"rd"}return X+"th"},localize={ordinalNumber,era:buildLocalizeFn({values:eraValues,defaultWidth:"wide"}),quarter:buildLocalizeFn({values:quarterValues,defaultWidth:"wide",argumentCallback:te=>te-1}),month:buildLocalizeFn({values:monthValues,defaultWidth:"wide"}),day:buildLocalizeFn({values:dayValues,defaultWidth:"wide"}),dayPeriod:buildLocalizeFn({values:dayPeriodValues,defaultWidth:"wide",formattingValues:formattingDayPeriodValues,defaultFormattingWidth:"wide"})};function buildMatchFn(te){return(J,X={})=>{const re=X.width,ne=re&&te.matchPatterns[re]||te.matchPatterns[te.defaultMatchWidth],oe=J.match(ne);if(!oe)return null;const de=oe[0],ce=re&&te.parsePatterns[re]||te.parsePatterns[te.defaultParseWidth],he=Array.isArray(ce)?findIndex(ce,fe=>fe.test(de)):findKey(ce,fe=>fe.test(de));let ue;ue=te.valueCallback?te.valueCallback(he):he,ue=X.valueCallback?X.valueCallback(ue):ue;const pe=J.slice(de.length);return{value:ue,rest:pe}}}function findKey(te,J){for(const X in te)if(Object.prototype.hasOwnProperty.call(te,X)&&J(te[X]))return X}function findIndex(te,J){for(let X=0;X<te.length;X++)if(J(te[X]))return X}function buildMatchPatternFn(te){return(J,X={})=>{const re=J.match(te.matchPattern);if(!re)return null;const ne=re[0],oe=J.match(te.parsePattern);if(!oe)return null;let de=te.valueCallback?te.valueCallback(oe[0]):oe[0];de=X.valueCallback?X.valueCallback(de):de;const ce=J.slice(ne.length);return{value:de,rest:ce}}}const matchOrdinalNumberPattern=/^(\d+)(th|st|nd|rd)?/i,parseOrdinalNumberPattern=/\d+/i,matchEraPatterns={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},parseEraPatterns={any:[/^b/i,/^(a|c)/i]},matchQuarterPatterns={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},parseQuarterPatterns={any:[/1/i,/2/i,/3/i,/4/i]},matchMonthPatterns={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},parseMonthPatterns={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},matchDayPatterns={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},parseDayPatterns={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},matchDayPeriodPatterns={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},parseDayPeriodPatterns={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},match={ordinalNumber:buildMatchPatternFn({matchPattern:matchOrdinalNumberPattern,parsePattern:parseOrdinalNumberPattern,valueCallback:te=>parseInt(te,10)}),era:buildMatchFn({matchPatterns:matchEraPatterns,defaultMatchWidth:"wide",parsePatterns:parseEraPatterns,defaultParseWidth:"any"}),quarter:buildMatchFn({matchPatterns:matchQuarterPatterns,defaultMatchWidth:"wide",parsePatterns:parseQuarterPatterns,defaultParseWidth:"any",valueCallback:te=>te+1}),month:buildMatchFn({matchPatterns:matchMonthPatterns,defaultMatchWidth:"wide",parsePatterns:parseMonthPatterns,defaultParseWidth:"any"}),day:buildMatchFn({matchPatterns:matchDayPatterns,defaultMatchWidth:"wide",parsePatterns:parseDayPatterns,defaultParseWidth:"any"}),dayPeriod:buildMatchFn({matchPatterns:matchDayPeriodPatterns,defaultMatchWidth:"any",parsePatterns:parseDayPeriodPatterns,defaultParseWidth:"any"})},enUS={code:"en-US",formatDistance,formatLong,formatRelative,localize,match,options:{weekStartsOn:0,firstWeekContainsDate:1}};function getDayOfYear(te){const J=toDate(te);return differenceInCalendarDays(J,startOfYear(J))+1}function getISOWeek(te){const J=toDate(te),X=+startOfISOWeek(J)-+startOfISOWeekYear(J);return Math.round(X/millisecondsInWeek)+1}function getWeekYear(te,J){const X=toDate(te),re=X.getFullYear(),ne=getDefaultOptions$1(),oe=J?.firstWeekContainsDate??J?.locale?.options?.firstWeekContainsDate??ne.firstWeekContainsDate??ne.locale?.options?.firstWeekContainsDate??1,de=constructFrom(te,0);de.setFullYear(re+1,0,oe),de.setHours(0,0,0,0);const ce=startOfWeek(de,J),he=constructFrom(te,0);he.setFullYear(re,0,oe),he.setHours(0,0,0,0);const ue=startOfWeek(he,J);return X.getTime()>=ce.getTime()?re+1:X.getTime()>=ue.getTime()?re:re-1}function startOfWeekYear(te,J){const X=getDefaultOptions$1(),re=J?.firstWeekContainsDate??J?.locale?.options?.firstWeekContainsDate??X.firstWeekContainsDate??X.locale?.options?.firstWeekContainsDate??1,ne=getWeekYear(te,J),oe=constructFrom(te,0);return oe.setFullYear(ne,0,re),oe.setHours(0,0,0,0),startOfWeek(oe,J)}function getWeek(te,J){const X=toDate(te),re=+startOfWeek(X,J)-+startOfWeekYear(X,J);return Math.round(re/millisecondsInWeek)+1}function addLeadingZeros(te,J){const X=te<0?"-":"",re=Math.abs(te).toString().padStart(J,"0");return X+re}const lightFormatters={y(te,J){const X=te.getFullYear(),re=X>0?X:1-X;return addLeadingZeros(J==="yy"?re%100:re,J.length)},M(te,J){const X=te.getMonth();return J==="M"?String(X+1):addLeadingZeros(X+1,2)},d(te,J){return addLeadingZeros(te.getDate(),J.length)},a(te,J){const X=te.getHours()/12>=1?"pm":"am";switch(J){case"a":case"aa":return X.toUpperCase();case"aaa":return X;case"aaaaa":return X[0];case"aaaa":default:return X==="am"?"a.m.":"p.m."}},h(te,J){return addLeadingZeros(te.getHours()%12||12,J.length)},H(te,J){return addLeadingZeros(te.getHours(),J.length)},m(te,J){return addLeadingZeros(te.getMinutes(),J.length)},s(te,J){return addLeadingZeros(te.getSeconds(),J.length)},S(te,J){const X=J.length,re=te.getMilliseconds(),ne=Math.trunc(re*Math.pow(10,X-3));return addLeadingZeros(ne,J.length)}},dayPeriodEnum={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},formatters={G:function(te,J,X){const re=te.getFullYear()>0?1:0;switch(J){case"G":case"GG":case"GGG":return X.era(re,{width:"abbreviated"});case"GGGGG":return X.era(re,{width:"narrow"});case"GGGG":default:return X.era(re,{width:"wide"})}},y:function(te,J,X){if(J==="yo"){const re=te.getFullYear(),ne=re>0?re:1-re;return X.ordinalNumber(ne,{unit:"year"})}return lightFormatters.y(te,J)},Y:function(te,J,X,re){const ne=getWeekYear(te,re),oe=ne>0?ne:1-ne;if(J==="YY"){const de=oe%100;return addLeadingZeros(de,2)}return J==="Yo"?X.ordinalNumber(oe,{unit:"year"}):addLeadingZeros(oe,J.length)},R:function(te,J){const X=getISOWeekYear(te);return addLeadingZeros(X,J.length)},u:function(te,J){const X=te.getFullYear();return addLeadingZeros(X,J.length)},Q:function(te,J,X){const re=Math.ceil((te.getMonth()+1)/3);switch(J){case"Q":return String(re);case"QQ":return addLeadingZeros(re,2);case"Qo":return X.ordinalNumber(re,{unit:"quarter"});case"QQQ":return X.quarter(re,{width:"abbreviated",context:"formatting"});case"QQQQQ":return X.quarter(re,{width:"narrow",context:"formatting"});case"QQQQ":default:return X.quarter(re,{width:"wide",context:"formatting"})}},q:function(te,J,X){const re=Math.ceil((te.getMonth()+1)/3);switch(J){case"q":return String(re);case"qq":return addLeadingZeros(re,2);case"qo":return X.ordinalNumber(re,{unit:"quarter"});case"qqq":return X.quarter(re,{width:"abbreviated",context:"standalone"});case"qqqqq":return X.quarter(re,{width:"narrow",context:"standalone"});case"qqqq":default:return X.quarter(re,{width:"wide",context:"standalone"})}},M:function(te,J,X){const re=te.getMonth();switch(J){case"M":case"MM":return lightFormatters.M(te,J);case"Mo":return X.ordinalNumber(re+1,{unit:"month"});case"MMM":return X.month(re,{width:"abbreviated",context:"formatting"});case"MMMMM":return X.month(re,{width:"narrow",context:"formatting"});case"MMMM":default:return X.month(re,{width:"wide",context:"formatting"})}},L:function(te,J,X){const re=te.getMonth();switch(J){case"L":return String(re+1);case"LL":return addLeadingZeros(re+1,2);case"Lo":return X.ordinalNumber(re+1,{unit:"month"});case"LLL":return X.month(re,{width:"abbreviated",context:"standalone"});case"LLLLL":return X.month(re,{width:"narrow",context:"standalone"});case"LLLL":default:return X.month(re,{width:"wide",context:"standalone"})}},w:function(te,J,X,re){const ne=getWeek(te,re);return J==="wo"?X.ordinalNumber(ne,{unit:"week"}):addLeadingZeros(ne,J.length)},I:function(te,J,X){const re=getISOWeek(te);return J==="Io"?X.ordinalNumber(re,{unit:"week"}):addLeadingZeros(re,J.length)},d:function(te,J,X){return J==="do"?X.ordinalNumber(te.getDate(),{unit:"date"}):lightFormatters.d(te,J)},D:function(te,J,X){const re=getDayOfYear(te);return J==="Do"?X.ordinalNumber(re,{unit:"dayOfYear"}):addLeadingZeros(re,J.length)},E:function(te,J,X){const re=te.getDay();switch(J){case"E":case"EE":case"EEE":return X.day(re,{width:"abbreviated",context:"formatting"});case"EEEEE":return X.day(re,{width:"narrow",context:"formatting"});case"EEEEEE":return X.day(re,{width:"short",context:"formatting"});case"EEEE":default:return X.day(re,{width:"wide",context:"formatting"})}},e:function(te,J,X,re){const ne=te.getDay(),oe=(ne-re.weekStartsOn+8)%7||7;switch(J){case"e":return String(oe);case"ee":return addLeadingZeros(oe,2);case"eo":return X.ordinalNumber(oe,{unit:"day"});case"eee":return X.day(ne,{width:"abbreviated",context:"formatting"});case"eeeee":return X.day(ne,{width:"narrow",context:"formatting"});case"eeeeee":return X.day(ne,{width:"short",context:"formatting"});case"eeee":default:return X.day(ne,{width:"wide",context:"formatting"})}},c:function(te,J,X,re){const ne=te.getDay(),oe=(ne-re.weekStartsOn+8)%7||7;switch(J){case"c":return String(oe);case"cc":return addLeadingZeros(oe,J.length);case"co":return X.ordinalNumber(oe,{unit:"day"});case"ccc":return X.day(ne,{width:"abbreviated",context:"standalone"});case"ccccc":return X.day(ne,{width:"narrow",context:"standalone"});case"cccccc":return X.day(ne,{width:"short",context:"standalone"});case"cccc":default:return X.day(ne,{width:"wide",context:"standalone"})}},i:function(te,J,X){const re=te.getDay(),ne=re===0?7:re;switch(J){case"i":return String(ne);case"ii":return addLeadingZeros(ne,J.length);case"io":return X.ordinalNumber(ne,{unit:"day"});case"iii":return X.day(re,{width:"abbreviated",context:"formatting"});case"iiiii":return X.day(re,{width:"narrow",context:"formatting"});case"iiiiii":return X.day(re,{width:"short",context:"formatting"});case"iiii":default:return X.day(re,{width:"wide",context:"formatting"})}},a:function(te,J,X){const ne=te.getHours()/12>=1?"pm":"am";switch(J){case"a":case"aa":return X.dayPeriod(ne,{width:"abbreviated",context:"formatting"});case"aaa":return X.dayPeriod(ne,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return X.dayPeriod(ne,{width:"narrow",context:"formatting"});case"aaaa":default:return X.dayPeriod(ne,{width:"wide",context:"formatting"})}},b:function(te,J,X){const re=te.getHours();let ne;switch(re===12?ne=dayPeriodEnum.noon:re===0?ne=dayPeriodEnum.midnight:ne=re/12>=1?"pm":"am",J){case"b":case"bb":return X.dayPeriod(ne,{width:"abbreviated",context:"formatting"});case"bbb":return X.dayPeriod(ne,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return X.dayPeriod(ne,{width:"narrow",context:"formatting"});case"bbbb":default:return X.dayPeriod(ne,{width:"wide",context:"formatting"})}},B:function(te,J,X){const re=te.getHours();let ne;switch(re>=17?ne=dayPeriodEnum.evening:re>=12?ne=dayPeriodEnum.afternoon:re>=4?ne=dayPeriodEnum.morning:ne=dayPeriodEnum.night,J){case"B":case"BB":case"BBB":return X.dayPeriod(ne,{width:"abbreviated",context:"formatting"});case"BBBBB":return X.dayPeriod(ne,{width:"narrow",context:"formatting"});case"BBBB":default:return X.dayPeriod(ne,{width:"wide",context:"formatting"})}},h:function(te,J,X){if(J==="ho"){let re=te.getHours()%12;return re===0&&(re=12),X.ordinalNumber(re,{unit:"hour"})}return lightFormatters.h(te,J)},H:function(te,J,X){return J==="Ho"?X.ordinalNumber(te.getHours(),{unit:"hour"}):lightFormatters.H(te,J)},K:function(te,J,X){const re=te.getHours()%12;return J==="Ko"?X.ordinalNumber(re,{unit:"hour"}):addLeadingZeros(re,J.length)},k:function(te,J,X){let re=te.getHours();return re===0&&(re=24),J==="ko"?X.ordinalNumber(re,{unit:"hour"}):addLeadingZeros(re,J.length)},m:function(te,J,X){return J==="mo"?X.ordinalNumber(te.getMinutes(),{unit:"minute"}):lightFormatters.m(te,J)},s:function(te,J,X){return J==="so"?X.ordinalNumber(te.getSeconds(),{unit:"second"}):lightFormatters.s(te,J)},S:function(te,J){return lightFormatters.S(te,J)},X:function(te,J,X){const re=te.getTimezoneOffset();if(re===0)return"Z";switch(J){case"X":return formatTimezoneWithOptionalMinutes(re);case"XXXX":case"XX":return formatTimezone(re);case"XXXXX":case"XXX":default:return formatTimezone(re,":")}},x:function(te,J,X){const re=te.getTimezoneOffset();switch(J){case"x":return formatTimezoneWithOptionalMinutes(re);case"xxxx":case"xx":return formatTimezone(re);case"xxxxx":case"xxx":default:return formatTimezone(re,":")}},O:function(te,J,X){const re=te.getTimezoneOffset();switch(J){case"O":case"OO":case"OOO":return"GMT"+formatTimezoneShort(re,":");case"OOOO":default:return"GMT"+formatTimezone(re,":")}},z:function(te,J,X){const re=te.getTimezoneOffset();switch(J){case"z":case"zz":case"zzz":return"GMT"+formatTimezoneShort(re,":");case"zzzz":default:return"GMT"+formatTimezone(re,":")}},t:function(te,J,X){const re=Math.trunc(te.getTime()/1e3);return addLeadingZeros(re,J.length)},T:function(te,J,X){const re=te.getTime();return addLeadingZeros(re,J.length)}};function formatTimezoneShort(te,J=""){const X=te>0?"-":"+",re=Math.abs(te),ne=Math.trunc(re/60),oe=re%60;return oe===0?X+String(ne):X+String(ne)+J+addLeadingZeros(oe,2)}function formatTimezoneWithOptionalMinutes(te,J){return te%60===0?(te>0?"-":"+")+addLeadingZeros(Math.abs(te)/60,2):formatTimezone(te,J)}function formatTimezone(te,J=""){const X=te>0?"-":"+",re=Math.abs(te),ne=addLeadingZeros(Math.trunc(re/60),2),oe=addLeadingZeros(re%60,2);return X+ne+J+oe}const dateLongFormatter=(te,J)=>{switch(te){case"P":return J.date({width:"short"});case"PP":return J.date({width:"medium"});case"PPP":return J.date({width:"long"});case"PPPP":default:return J.date({width:"full"})}},timeLongFormatter=(te,J)=>{switch(te){case"p":return J.time({width:"short"});case"pp":return J.time({width:"medium"});case"ppp":return J.time({width:"long"});case"pppp":default:return J.time({width:"full"})}},dateTimeLongFormatter=(te,J)=>{const X=te.match(/(P+)(p+)?/)||[],re=X[1],ne=X[2];if(!ne)return dateLongFormatter(te,J);let oe;switch(re){case"P":oe=J.dateTime({width:"short"});break;case"PP":oe=J.dateTime({width:"medium"});break;case"PPP":oe=J.dateTime({width:"long"});break;case"PPPP":default:oe=J.dateTime({width:"full"});break}return oe.replace("{{date}}",dateLongFormatter(re,J)).replace("{{time}}",timeLongFormatter(ne,J))},longFormatters={p:timeLongFormatter,P:dateTimeLongFormatter},dayOfYearTokenRE=/^D+$/,weekYearTokenRE=/^Y+$/,throwTokens=["D","DD","YY","YYYY"];function isProtectedDayOfYearToken(te){return dayOfYearTokenRE.test(te)}function isProtectedWeekYearToken(te){return weekYearTokenRE.test(te)}function warnOrThrowProtectedError(te,J,X){const re=message(te,J,X);if(console.warn(re),throwTokens.includes(te))throw new RangeError(re)}function message(te,J,X){const re=te[0]==="Y"?"years":"days of the month";return`Use \`${te.toLowerCase()}\` instead of \`${te}\` (in \`${J}\`) for formatting ${re} to the input \`${X}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const formattingTokensRegExp$1=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,longFormattingTokensRegExp$1=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,escapedStringRegExp$1=/^'([^]*?)'?$/,doubleQuoteRegExp$1=/''/g,unescapedLatinCharacterRegExp$1=/[a-zA-Z]/;function format(te,J,X){const re=getDefaultOptions$1(),ne=re.locale??enUS,oe=re.firstWeekContainsDate??re.locale?.options?.firstWeekContainsDate??1,de=re.weekStartsOn??re.locale?.options?.weekStartsOn??0,ce=toDate(te);if(!isValid(ce))throw new RangeError("Invalid time value");let he=J.match(longFormattingTokensRegExp$1).map(pe=>{const fe=pe[0];if(fe==="p"||fe==="P"){const be=longFormatters[fe];return be(pe,ne.formatLong)}return pe}).join("").match(formattingTokensRegExp$1).map(pe=>{if(pe==="''")return{isToken:!1,value:"'"};const fe=pe[0];if(fe==="'")return{isToken:!1,value:cleanEscapedString$1(pe)};if(formatters[fe])return{isToken:!0,value:pe};if(fe.match(unescapedLatinCharacterRegExp$1))throw new RangeError("Format string contains an unescaped latin alphabet character `"+fe+"`");return{isToken:!1,value:pe}});ne.localize.preprocessor&&(he=ne.localize.preprocessor(ce,he));const ue={firstWeekContainsDate:oe,weekStartsOn:de,locale:ne};return he.map(pe=>{if(!pe.isToken)return pe.value;const fe=pe.value;(isProtectedWeekYearToken(fe)||isProtectedDayOfYearToken(fe))&&warnOrThrowProtectedError(fe,J,String(te));const be=formatters[fe[0]];return be(ce,fe,ne.localize,ue)}).join("")}function cleanEscapedString$1(te){const J=te.match(escapedStringRegExp$1);return J?J[1].replace(doubleQuoteRegExp$1,"'"):te}function getDay(te){return toDate(te).getDay()}function getDefaultOptions(){return Object.assign({},getDefaultOptions$1())}function getISODay(te){let X=toDate(te).getDay();return X===0&&(X=7),X}function transpose(te,J){const X=J instanceof Date?constructFrom(J,0):new J(0);return X.setFullYear(te.getFullYear(),te.getMonth(),te.getDate()),X.setHours(te.getHours(),te.getMinutes(),te.getSeconds(),te.getMilliseconds()),X}const TIMEZONE_UNIT_PRIORITY=10;class Setter{subPriority=0;validate(J,X){return!0}}class ValueSetter extends Setter{constructor(J,X,re,ne,oe){super(),this.value=J,this.validateValue=X,this.setValue=re,this.priority=ne,oe&&(this.subPriority=oe)}validate(J,X){return this.validateValue(J,this.value,X)}set(J,X,re){return this.setValue(J,X,this.value,re)}}class DateToSystemTimezoneSetter extends Setter{priority=TIMEZONE_UNIT_PRIORITY;subPriority=-1;set(J,X){return X.timestampIsSet?J:constructFrom(J,transpose(J,Date))}}class Parser{run(J,X,re,ne){const oe=this.parse(J,X,re,ne);return oe?{setter:new ValueSetter(oe.value,this.validate,this.set,this.priority,this.subPriority),rest:oe.rest}:null}validate(J,X,re){return!0}}class EraParser extends Parser{priority=140;parse(J,X,re){switch(X){case"G":case"GG":case"GGG":return re.era(J,{width:"abbreviated"})||re.era(J,{width:"narrow"});case"GGGGG":return re.era(J,{width:"narrow"});case"GGGG":default:return re.era(J,{width:"wide"})||re.era(J,{width:"abbreviated"})||re.era(J,{width:"narrow"})}}set(J,X,re){return X.era=re,J.setFullYear(re,0,1),J.setHours(0,0,0,0),J}incompatibleTokens=["R","u","t","T"]}const numericPatterns={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},timezonePatterns={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function mapValue(te,J){return te&&{value:J(te.value),rest:te.rest}}function parseNumericPattern(te,J){const X=J.match(te);return X?{value:parseInt(X[0],10),rest:J.slice(X[0].length)}:null}function parseTimezonePattern(te,J){const X=J.match(te);if(!X)return null;if(X[0]==="Z")return{value:0,rest:J.slice(1)};const re=X[1]==="+"?1:-1,ne=X[2]?parseInt(X[2],10):0,oe=X[3]?parseInt(X[3],10):0,de=X[5]?parseInt(X[5],10):0;return{value:re*(ne*millisecondsInHour+oe*millisecondsInMinute+de*millisecondsInSecond),rest:J.slice(X[0].length)}}function parseAnyDigitsSigned(te){return parseNumericPattern(numericPatterns.anyDigitsSigned,te)}function parseNDigits(te,J){switch(te){case 1:return parseNumericPattern(numericPatterns.singleDigit,J);case 2:return parseNumericPattern(numericPatterns.twoDigits,J);case 3:return parseNumericPattern(numericPatterns.threeDigits,J);case 4:return parseNumericPattern(numericPatterns.fourDigits,J);default:return parseNumericPattern(new RegExp("^\\d{1,"+te+"}"),J)}}function parseNDigitsSigned(te,J){switch(te){case 1:return parseNumericPattern(numericPatterns.singleDigitSigned,J);case 2:return parseNumericPattern(numericPatterns.twoDigitsSigned,J);case 3:return parseNumericPattern(numericPatterns.threeDigitsSigned,J);case 4:return parseNumericPattern(numericPatterns.fourDigitsSigned,J);default:return parseNumericPattern(new RegExp("^-?\\d{1,"+te+"}"),J)}}function dayPeriodEnumToHours(te){switch(te){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function normalizeTwoDigitYear(te,J){const X=J>0,re=X?J:1-J;let ne;if(re<=50)ne=te||100;else{const oe=re+50,de=Math.trunc(oe/100)*100,ce=te>=oe%100;ne=te+de-(ce?100:0)}return X?ne:1-ne}function isLeapYearIndex(te){return te%400===0||te%4===0&&te%100!==0}class YearParser extends Parser{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(J,X,re){const ne=oe=>({year:oe,isTwoDigitYear:X==="yy"});switch(X){case"y":return mapValue(parseNDigits(4,J),ne);case"yo":return mapValue(re.ordinalNumber(J,{unit:"year"}),ne);default:return mapValue(parseNDigits(X.length,J),ne)}}validate(J,X){return X.isTwoDigitYear||X.year>0}set(J,X,re){const ne=J.getFullYear();if(re.isTwoDigitYear){const de=normalizeTwoDigitYear(re.year,ne);return J.setFullYear(de,0,1),J.setHours(0,0,0,0),J}const oe=!("era"in X)||X.era===1?re.year:1-re.year;return J.setFullYear(oe,0,1),J.setHours(0,0,0,0),J}}class LocalWeekYearParser extends Parser{priority=130;parse(J,X,re){const ne=oe=>({year:oe,isTwoDigitYear:X==="YY"});switch(X){case"Y":return mapValue(parseNDigits(4,J),ne);case"Yo":return mapValue(re.ordinalNumber(J,{unit:"year"}),ne);default:return mapValue(parseNDigits(X.length,J),ne)}}validate(J,X){return X.isTwoDigitYear||X.year>0}set(J,X,re,ne){const oe=getWeekYear(J,ne);if(re.isTwoDigitYear){const ce=normalizeTwoDigitYear(re.year,oe);return J.setFullYear(ce,0,ne.firstWeekContainsDate),J.setHours(0,0,0,0),startOfWeek(J,ne)}const de=!("era"in X)||X.era===1?re.year:1-re.year;return J.setFullYear(de,0,ne.firstWeekContainsDate),J.setHours(0,0,0,0),startOfWeek(J,ne)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]}class ISOWeekYearParser extends Parser{priority=130;parse(J,X){return parseNDigitsSigned(X==="R"?4:X.length,J)}set(J,X,re){const ne=constructFrom(J,0);return ne.setFullYear(re,0,4),ne.setHours(0,0,0,0),startOfISOWeek(ne)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]}class ExtendedYearParser extends Parser{priority=130;parse(J,X){return parseNDigitsSigned(X==="u"?4:X.length,J)}set(J,X,re){return J.setFullYear(re,0,1),J.setHours(0,0,0,0),J}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]}class QuarterParser extends Parser{priority=120;parse(J,X,re){switch(X){case"Q":case"QQ":return parseNDigits(X.length,J);case"Qo":return re.ordinalNumber(J,{unit:"quarter"});case"QQQ":return re.quarter(J,{width:"abbreviated",context:"formatting"})||re.quarter(J,{width:"narrow",context:"formatting"});case"QQQQQ":return re.quarter(J,{width:"narrow",context:"formatting"});case"QQQQ":default:return re.quarter(J,{width:"wide",context:"formatting"})||re.quarter(J,{width:"abbreviated",context:"formatting"})||re.quarter(J,{width:"narrow",context:"formatting"})}}validate(J,X){return X>=1&&X<=4}set(J,X,re){return J.setMonth((re-1)*3,1),J.setHours(0,0,0,0),J}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]}class StandAloneQuarterParser extends Parser{priority=120;parse(J,X,re){switch(X){case"q":case"qq":return parseNDigits(X.length,J);case"qo":return re.ordinalNumber(J,{unit:"quarter"});case"qqq":return re.quarter(J,{width:"abbreviated",context:"standalone"})||re.quarter(J,{width:"narrow",context:"standalone"});case"qqqqq":return re.quarter(J,{width:"narrow",context:"standalone"});case"qqqq":default:return re.quarter(J,{width:"wide",context:"standalone"})||re.quarter(J,{width:"abbreviated",context:"standalone"})||re.quarter(J,{width:"narrow",context:"standalone"})}}validate(J,X){return X>=1&&X<=4}set(J,X,re){return J.setMonth((re-1)*3,1),J.setHours(0,0,0,0),J}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]}class MonthParser extends Parser{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(J,X,re){const ne=oe=>oe-1;switch(X){case"M":return mapValue(parseNumericPattern(numericPatterns.month,J),ne);case"MM":return mapValue(parseNDigits(2,J),ne);case"Mo":return mapValue(re.ordinalNumber(J,{unit:"month"}),ne);case"MMM":return re.month(J,{width:"abbreviated",context:"formatting"})||re.month(J,{width:"narrow",context:"formatting"});case"MMMMM":return re.month(J,{width:"narrow",context:"formatting"});case"MMMM":default:return re.month(J,{width:"wide",context:"formatting"})||re.month(J,{width:"abbreviated",context:"formatting"})||re.month(J,{width:"narrow",context:"formatting"})}}validate(J,X){return X>=0&&X<=11}set(J,X,re){return J.setMonth(re,1),J.setHours(0,0,0,0),J}}class StandAloneMonthParser extends Parser{priority=110;parse(J,X,re){const ne=oe=>oe-1;switch(X){case"L":return mapValue(parseNumericPattern(numericPatterns.month,J),ne);case"LL":return mapValue(parseNDigits(2,J),ne);case"Lo":return mapValue(re.ordinalNumber(J,{unit:"month"}),ne);case"LLL":return re.month(J,{width:"abbreviated",context:"standalone"})||re.month(J,{width:"narrow",context:"standalone"});case"LLLLL":return re.month(J,{width:"narrow",context:"standalone"});case"LLLL":default:return re.month(J,{width:"wide",context:"standalone"})||re.month(J,{width:"abbreviated",context:"standalone"})||re.month(J,{width:"narrow",context:"standalone"})}}validate(J,X){return X>=0&&X<=11}set(J,X,re){return J.setMonth(re,1),J.setHours(0,0,0,0),J}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]}function setWeek(te,J,X){const re=toDate(te),ne=getWeek(re,X)-J;return re.setDate(re.getDate()-ne*7),re}class LocalWeekParser extends Parser{priority=100;parse(J,X,re){switch(X){case"w":return parseNumericPattern(numericPatterns.week,J);case"wo":return re.ordinalNumber(J,{unit:"week"});default:return parseNDigits(X.length,J)}}validate(J,X){return X>=1&&X<=53}set(J,X,re,ne){return startOfWeek(setWeek(J,re,ne),ne)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]}function setISOWeek(te,J){const X=toDate(te),re=getISOWeek(X)-J;return X.setDate(X.getDate()-re*7),X}class ISOWeekParser extends Parser{priority=100;parse(J,X,re){switch(X){case"I":return parseNumericPattern(numericPatterns.week,J);case"Io":return re.ordinalNumber(J,{unit:"week"});default:return parseNDigits(X.length,J)}}validate(J,X){return X>=1&&X<=53}set(J,X,re){return startOfISOWeek(setISOWeek(J,re))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]}const DAYS_IN_MONTH=[31,28,31,30,31,30,31,31,30,31,30,31],DAYS_IN_MONTH_LEAP_YEAR=[31,29,31,30,31,30,31,31,30,31,30,31];class DateParser extends Parser{priority=90;subPriority=1;parse(J,X,re){switch(X){case"d":return parseNumericPattern(numericPatterns.date,J);case"do":return re.ordinalNumber(J,{unit:"date"});default:return parseNDigits(X.length,J)}}validate(J,X){const re=J.getFullYear(),ne=isLeapYearIndex(re),oe=J.getMonth();return ne?X>=1&&X<=DAYS_IN_MONTH_LEAP_YEAR[oe]:X>=1&&X<=DAYS_IN_MONTH[oe]}set(J,X,re){return J.setDate(re),J.setHours(0,0,0,0),J}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]}class DayOfYearParser extends Parser{priority=90;subpriority=1;parse(J,X,re){switch(X){case"D":case"DD":return parseNumericPattern(numericPatterns.dayOfYear,J);case"Do":return re.ordinalNumber(J,{unit:"date"});default:return parseNDigits(X.length,J)}}validate(J,X){const re=J.getFullYear();return isLeapYearIndex(re)?X>=1&&X<=366:X>=1&&X<=365}set(J,X,re){return J.setMonth(0,re),J.setHours(0,0,0,0),J}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]}function setDay(te,J,X){const re=getDefaultOptions$1(),ne=X?.weekStartsOn??X?.locale?.options?.weekStartsOn??re.weekStartsOn??re.locale?.options?.weekStartsOn??0,oe=toDate(te),de=oe.getDay(),he=(J%7+7)%7,ue=7-ne,pe=J<0||J>6?J-(de+ue)%7:(he+ue)%7-(de+ue)%7;return addDays(oe,pe)}class DayParser extends Parser{priority=90;parse(J,X,re){switch(X){case"E":case"EE":case"EEE":return re.day(J,{width:"abbreviated",context:"formatting"})||re.day(J,{width:"short",context:"formatting"})||re.day(J,{width:"narrow",context:"formatting"});case"EEEEE":return re.day(J,{width:"narrow",context:"formatting"});case"EEEEEE":return re.day(J,{width:"short",context:"formatting"})||re.day(J,{width:"narrow",context:"formatting"});case"EEEE":default:return re.day(J,{width:"wide",context:"formatting"})||re.day(J,{width:"abbreviated",context:"formatting"})||re.day(J,{width:"short",context:"formatting"})||re.day(J,{width:"narrow",context:"formatting"})}}validate(J,X){return X>=0&&X<=6}set(J,X,re,ne){return J=setDay(J,re,ne),J.setHours(0,0,0,0),J}incompatibleTokens=["D","i","e","c","t","T"]}class LocalDayParser extends Parser{priority=90;parse(J,X,re,ne){const oe=de=>{const ce=Math.floor((de-1)/7)*7;return(de+ne.weekStartsOn+6)%7+ce};switch(X){case"e":case"ee":return mapValue(parseNDigits(X.length,J),oe);case"eo":return mapValue(re.ordinalNumber(J,{unit:"day"}),oe);case"eee":return re.day(J,{width:"abbreviated",context:"formatting"})||re.day(J,{width:"short",context:"formatting"})||re.day(J,{width:"narrow",context:"formatting"});case"eeeee":return re.day(J,{width:"narrow",context:"formatting"});case"eeeeee":return re.day(J,{width:"short",context:"formatting"})||re.day(J,{width:"narrow",context:"formatting"});case"eeee":default:return re.day(J,{width:"wide",context:"formatting"})||re.day(J,{width:"abbreviated",context:"formatting"})||re.day(J,{width:"short",context:"formatting"})||re.day(J,{width:"narrow",context:"formatting"})}}validate(J,X){return X>=0&&X<=6}set(J,X,re,ne){return J=setDay(J,re,ne),J.setHours(0,0,0,0),J}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]}class StandAloneLocalDayParser extends Parser{priority=90;parse(J,X,re,ne){const oe=de=>{const ce=Math.floor((de-1)/7)*7;return(de+ne.weekStartsOn+6)%7+ce};switch(X){case"c":case"cc":return mapValue(parseNDigits(X.length,J),oe);case"co":return mapValue(re.ordinalNumber(J,{unit:"day"}),oe);case"ccc":return re.day(J,{width:"abbreviated",context:"standalone"})||re.day(J,{width:"short",context:"standalone"})||re.day(J,{width:"narrow",context:"standalone"});case"ccccc":return re.day(J,{width:"narrow",context:"standalone"});case"cccccc":return re.day(J,{width:"short",context:"standalone"})||re.day(J,{width:"narrow",context:"standalone"});case"cccc":default:return re.day(J,{width:"wide",context:"standalone"})||re.day(J,{width:"abbreviated",context:"standalone"})||re.day(J,{width:"short",context:"standalone"})||re.day(J,{width:"narrow",context:"standalone"})}}validate(J,X){return X>=0&&X<=6}set(J,X,re,ne){return J=setDay(J,re,ne),J.setHours(0,0,0,0),J}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]}function setISODay(te,J){const X=toDate(te),re=getISODay(X),ne=J-re;return addDays(X,ne)}class ISODayParser extends Parser{priority=90;parse(J,X,re){const ne=oe=>oe===0?7:oe;switch(X){case"i":case"ii":return parseNDigits(X.length,J);case"io":return re.ordinalNumber(J,{unit:"day"});case"iii":return mapValue(re.day(J,{width:"abbreviated",context:"formatting"})||re.day(J,{width:"short",context:"formatting"})||re.day(J,{width:"narrow",context:"formatting"}),ne);case"iiiii":return mapValue(re.day(J,{width:"narrow",context:"formatting"}),ne);case"iiiiii":return mapValue(re.day(J,{width:"short",context:"formatting"})||re.day(J,{width:"narrow",context:"formatting"}),ne);case"iiii":default:return mapValue(re.day(J,{width:"wide",context:"formatting"})||re.day(J,{width:"abbreviated",context:"formatting"})||re.day(J,{width:"short",context:"formatting"})||re.day(J,{width:"narrow",context:"formatting"}),ne)}}validate(J,X){return X>=1&&X<=7}set(J,X,re){return J=setISODay(J,re),J.setHours(0,0,0,0),J}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]}class AMPMParser extends Parser{priority=80;parse(J,X,re){switch(X){case"a":case"aa":case"aaa":return re.dayPeriod(J,{width:"abbreviated",context:"formatting"})||re.dayPeriod(J,{width:"narrow",context:"formatting"});case"aaaaa":return re.dayPeriod(J,{width:"narrow",context:"formatting"});case"aaaa":default:return re.dayPeriod(J,{width:"wide",context:"formatting"})||re.dayPeriod(J,{width:"abbreviated",context:"formatting"})||re.dayPeriod(J,{width:"narrow",context:"formatting"})}}set(J,X,re){return J.setHours(dayPeriodEnumToHours(re),0,0,0),J}incompatibleTokens=["b","B","H","k","t","T"]}class AMPMMidnightParser extends Parser{priority=80;parse(J,X,re){switch(X){case"b":case"bb":case"bbb":return re.dayPeriod(J,{width:"abbreviated",context:"formatting"})||re.dayPeriod(J,{width:"narrow",context:"formatting"});case"bbbbb":return re.dayPeriod(J,{width:"narrow",context:"formatting"});case"bbbb":default:return re.dayPeriod(J,{width:"wide",context:"formatting"})||re.dayPeriod(J,{width:"abbreviated",context:"formatting"})||re.dayPeriod(J,{width:"narrow",context:"formatting"})}}set(J,X,re){return J.setHours(dayPeriodEnumToHours(re),0,0,0),J}incompatibleTokens=["a","B","H","k","t","T"]}class DayPeriodParser extends Parser{priority=80;parse(J,X,re){switch(X){case"B":case"BB":case"BBB":return re.dayPeriod(J,{width:"abbreviated",context:"formatting"})||re.dayPeriod(J,{width:"narrow",context:"formatting"});case"BBBBB":return re.dayPeriod(J,{width:"narrow",context:"formatting"});case"BBBB":default:return re.dayPeriod(J,{width:"wide",context:"formatting"})||re.dayPeriod(J,{width:"abbreviated",context:"formatting"})||re.dayPeriod(J,{width:"narrow",context:"formatting"})}}set(J,X,re){return J.setHours(dayPeriodEnumToHours(re),0,0,0),J}incompatibleTokens=["a","b","t","T"]}class Hour1to12Parser extends Parser{priority=70;parse(J,X,re){switch(X){case"h":return parseNumericPattern(numericPatterns.hour12h,J);case"ho":return re.ordinalNumber(J,{unit:"hour"});default:return parseNDigits(X.length,J)}}validate(J,X){return X>=1&&X<=12}set(J,X,re){const ne=J.getHours()>=12;return ne&&re<12?J.setHours(re+12,0,0,0):!ne&&re===12?J.setHours(0,0,0,0):J.setHours(re,0,0,0),J}incompatibleTokens=["H","K","k","t","T"]}class Hour0to23Parser extends Parser{priority=70;parse(J,X,re){switch(X){case"H":return parseNumericPattern(numericPatterns.hour23h,J);case"Ho":return re.ordinalNumber(J,{unit:"hour"});default:return parseNDigits(X.length,J)}}validate(J,X){return X>=0&&X<=23}set(J,X,re){return J.setHours(re,0,0,0),J}incompatibleTokens=["a","b","h","K","k","t","T"]}class Hour0To11Parser extends Parser{priority=70;parse(J,X,re){switch(X){case"K":return parseNumericPattern(numericPatterns.hour11h,J);case"Ko":return re.ordinalNumber(J,{unit:"hour"});default:return parseNDigits(X.length,J)}}validate(J,X){return X>=0&&X<=11}set(J,X,re){return J.getHours()>=12&&re<12?J.setHours(re+12,0,0,0):J.setHours(re,0,0,0),J}incompatibleTokens=["h","H","k","t","T"]}class Hour1To24Parser extends Parser{priority=70;parse(J,X,re){switch(X){case"k":return parseNumericPattern(numericPatterns.hour24h,J);case"ko":return re.ordinalNumber(J,{unit:"hour"});default:return parseNDigits(X.length,J)}}validate(J,X){return X>=1&&X<=24}set(J,X,re){const ne=re<=24?re%24:re;return J.setHours(ne,0,0,0),J}incompatibleTokens=["a","b","h","H","K","t","T"]}class MinuteParser extends Parser{priority=60;parse(J,X,re){switch(X){case"m":return parseNumericPattern(numericPatterns.minute,J);case"mo":return re.ordinalNumber(J,{unit:"minute"});default:return parseNDigits(X.length,J)}}validate(J,X){return X>=0&&X<=59}set(J,X,re){return J.setMinutes(re,0,0),J}incompatibleTokens=["t","T"]}class SecondParser extends Parser{priority=50;parse(J,X,re){switch(X){case"s":return parseNumericPattern(numericPatterns.second,J);case"so":return re.ordinalNumber(J,{unit:"second"});default:return parseNDigits(X.length,J)}}validate(J,X){return X>=0&&X<=59}set(J,X,re){return J.setSeconds(re,0),J}incompatibleTokens=["t","T"]}class FractionOfSecondParser extends Parser{priority=30;parse(J,X){const re=ne=>Math.trunc(ne*Math.pow(10,-X.length+3));return mapValue(parseNDigits(X.length,J),re)}set(J,X,re){return J.setMilliseconds(re),J}incompatibleTokens=["t","T"]}class ISOTimezoneWithZParser extends Parser{priority=10;parse(J,X){switch(X){case"X":return parseTimezonePattern(timezonePatterns.basicOptionalMinutes,J);case"XX":return parseTimezonePattern(timezonePatterns.basic,J);case"XXXX":return parseTimezonePattern(timezonePatterns.basicOptionalSeconds,J);case"XXXXX":return parseTimezonePattern(timezonePatterns.extendedOptionalSeconds,J);case"XXX":default:return parseTimezonePattern(timezonePatterns.extended,J)}}set(J,X,re){return X.timestampIsSet?J:constructFrom(J,J.getTime()-getTimezoneOffsetInMilliseconds(J)-re)}incompatibleTokens=["t","T","x"]}class ISOTimezoneParser extends Parser{priority=10;parse(J,X){switch(X){case"x":return parseTimezonePattern(timezonePatterns.basicOptionalMinutes,J);case"xx":return parseTimezonePattern(timezonePatterns.basic,J);case"xxxx":return parseTimezonePattern(timezonePatterns.basicOptionalSeconds,J);case"xxxxx":return parseTimezonePattern(timezonePatterns.extendedOptionalSeconds,J);case"xxx":default:return parseTimezonePattern(timezonePatterns.extended,J)}}set(J,X,re){return X.timestampIsSet?J:constructFrom(J,J.getTime()-getTimezoneOffsetInMilliseconds(J)-re)}incompatibleTokens=["t","T","X"]}class TimestampSecondsParser extends Parser{priority=40;parse(J){return parseAnyDigitsSigned(J)}set(J,X,re){return[constructFrom(J,re*1e3),{timestampIsSet:!0}]}incompatibleTokens="*"}class TimestampMillisecondsParser extends Parser{priority=20;parse(J){return parseAnyDigitsSigned(J)}set(J,X,re){return[constructFrom(J,re),{timestampIsSet:!0}]}incompatibleTokens="*"}const parsers={G:new EraParser,y:new YearParser,Y:new LocalWeekYearParser,R:new ISOWeekYearParser,u:new ExtendedYearParser,Q:new QuarterParser,q:new StandAloneQuarterParser,M:new MonthParser,L:new StandAloneMonthParser,w:new LocalWeekParser,I:new ISOWeekParser,d:new DateParser,D:new DayOfYearParser,E:new DayParser,e:new LocalDayParser,c:new StandAloneLocalDayParser,i:new ISODayParser,a:new AMPMParser,b:new AMPMMidnightParser,B:new DayPeriodParser,h:new Hour1to12Parser,H:new Hour0to23Parser,K:new Hour0To11Parser,k:new Hour1To24Parser,m:new MinuteParser,s:new SecondParser,S:new FractionOfSecondParser,X:new ISOTimezoneWithZParser,x:new ISOTimezoneParser,t:new TimestampSecondsParser,T:new TimestampMillisecondsParser},formattingTokensRegExp=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,longFormattingTokensRegExp=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,escapedStringRegExp=/^'([^]*?)'?$/,doubleQuoteRegExp=/''/g,notWhitespaceRegExp=/\S/,unescapedLatinCharacterRegExp=/[a-zA-Z]/;function parse(te,J,X,re){const ne=getDefaultOptions(),oe=ne.locale??enUS,de=ne.firstWeekContainsDate??ne.locale?.options?.firstWeekContainsDate??1,ce=ne.weekStartsOn??ne.locale?.options?.weekStartsOn??0,he={firstWeekContainsDate:de,weekStartsOn:ce,locale:oe},ue=[new DateToSystemTimezoneSetter],pe=J.match(longFormattingTokensRegExp).map(me=>{const _e=me[0];if(_e in longFormatters){const ye=longFormatters[_e];return ye(me,oe.formatLong)}return me}).join("").match(formattingTokensRegExp),fe=[];for(let me of pe){isProtectedWeekYearToken(me)&&warnOrThrowProtectedError(me,J,te),isProtectedDayOfYearToken(me)&&warnOrThrowProtectedError(me,J,te);const _e=me[0],ye=parsers[_e];if(ye){const{incompatibleTokens:Ce}=ye;if(Array.isArray(Ce)){const we=fe.find(Ae=>Ce.includes(Ae.token)||Ae.token===_e);if(we)throw new RangeError(`The format string mustn't contain \`${we.fullToken}\` and \`${me}\` at the same time`)}else if(ye.incompatibleTokens==="*"&&fe.length>0)throw new RangeError(`The format string mustn't contain \`${me}\` and any other token at the same time`);fe.push({token:_e,fullToken:me});const Se=ye.run(te,me,oe.match,he);if(!Se)return constructFrom(X,NaN);ue.push(Se.setter),te=Se.rest}else{if(_e.match(unescapedLatinCharacterRegExp))throw new RangeError("Format string contains an unescaped latin alphabet character `"+_e+"`");if(me==="''"?me="'":_e==="'"&&(me=cleanEscapedString(me)),te.indexOf(me)===0)te=te.slice(me.length);else return constructFrom(X,NaN)}}if(te.length>0&¬WhitespaceRegExp.test(te))return constructFrom(X,NaN);const be=ue.map(me=>me.priority).sort((me,_e)=>_e-me).filter((me,_e,ye)=>ye.indexOf(me)===_e).map(me=>ue.filter(_e=>_e.priority===me).sort((_e,ye)=>ye.subPriority-_e.subPriority)).map(me=>me[0]);let ge=toDate(X);if(isNaN(ge.getTime()))return constructFrom(X,NaN);const ve={};for(const me of be){if(!me.validate(ge,he))return constructFrom(X,NaN);const _e=me.set(ge,ve,he);Array.isArray(_e)?(ge=_e[0],Object.assign(ve,_e[1])):ge=_e}return constructFrom(X,ge)}function cleanEscapedString(te){return te.match(escapedStringRegExp)[1].replace(doubleQuoteRegExp,"'")}const notFound="data:image/svg+xml,%3csvg%20width='215'%20height='150'%20viewBox='0%200%20215%20150'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20opacity='0.9'%20d='M135.132%2057.43C96.9221%2047.658%2083.3815%20-29.7048%2026.9734%2012.5083C-13.0511%2042.4595%2011.4691%20115.499%2061.6878%20107.019C92.0822%20101.867%2087.3917%20101.341%20113.129%20115.244C139.231%20129.308%20167.972%20136.397%20195.855%20111.436C210.28%2098.5179%20215.939%2067.0352%20201.939%2050.7417C184.388%2030.3592%20158.485%2063.4098%20135.132%2057.43Z'%20fill='%23EFF7FF'/%3e%3cellipse%20cx='120.5'%20cy='143.5'%20rx='52.5'%20ry='3.5'%20fill='%23F5F5F5'/%3e%3cpath%20d='M121.387%2080.2184C121.995%2079.5948%20122.563%2078.953%20123.09%2078.2959L134.396%2089.3383C135.09%2090.0177%20134.851%2091.389%20133.861%2092.4024C132.872%2093.4159%20131.505%2093.6888%20130.811%2093.0094L119.505%2081.967C120.148%2081.424%20120.777%2080.8407%20121.385%2080.2171L121.387%2080.2184Z'%20fill='%231D1D1D'/%3e%3cpath%20opacity='0.6'%20d='M121.127%2079.9896C132.157%2068.6986%20131.888%2050.5485%20120.527%2039.4502C109.166%2028.3519%2091.0149%2028.5081%2079.9849%2039.799C68.955%2051.09%2069.2233%2069.2401%2080.5843%2080.3385C91.9453%2091.4368%20110.097%2091.2806%20121.127%2079.9896Z'%20fill='%238FC2F5'/%3e%3cpath%20d='M78.0382%2083.0622C90.8729%2095.6382%20111.378%2095.4578%20123.835%2082.6609C136.293%2069.8625%20135.986%2049.2932%20123.15%2036.7173C110.316%2024.1413%2089.8107%2024.3217%2077.3538%2037.1186C64.8956%2049.9169%2065.2022%2070.4862%2078.0382%2083.0622ZM80.642%2080.387C69.289%2069.264%2069.0172%2051.0692%2080.037%2039.749C91.0569%2028.4288%20109.194%2028.2694%20120.547%2039.3938C131.9%2050.5182%20132.171%2068.713%20121.152%2080.0332C110.132%2091.3534%2091.9949%2091.5128%2080.642%2080.3884V80.387Z'%20fill='%237BACFC'/%3e%3cpath%20d='M169.953%20128.522L171.714%20126.696C173.474%20124.871%20173.421%20121.964%20171.595%20120.205L135.013%2084.9265C133.187%2083.1661%20130.281%2083.2205%20128.522%2085.0451L126.761%2086.8711C125.001%2088.6957%20125.055%2091.6028%20126.88%2093.3619L163.462%20128.64C165.287%20130.401%20168.194%20130.346%20169.953%20128.522Z'%20fill='%23656565'/%3e%3cpath%20opacity='0.35'%20d='M88.8399%2071.2315C96.506%2079.2245%20101.258%2078.1642%20100.757%2082.4547C100.256%2086.7452%2091.398%2085.7448%2082.7698%2076.0396C74.1415%2066.3344%2075.0893%2054.9166%2079.8491%2055.2485C84.6089%2055.5803%2080.129%2062.1492%2088.8399%2071.2315Z'%20fill='white'/%3e%3c/svg%3e";/**
|
|
334
|
+
${r$G(styles$m)}
|
|
335
|
+
`}handleTest(){console.log(this.selectedPeriodDate)}};__decorateClass$v([n$z()],ExportPdfModal.prototype,"selectedRadioOption",2),__decorateClass$v([n$z()],ExportPdfModal.prototype,"text",2),__decorateClass$v([n$z()],ExportPdfModal.prototype,"selectedVisibilityLevelElement",2),__decorateClass$v([n$z()],ExportPdfModal.prototype,"selectedPeriodDate",2),__decorateClass$v([n$z({type:Array})],ExportPdfModal.prototype,"arrayElements",2),ExportPdfModal=__decorateClass$v([t$l("export-pdf-modal")],ExportPdfModal);class ExportToPdfHandler extends ApiBaseHandler{async handle(){try{this.api.interactionService.confirm(void 0,{component:ExportPdfModal},{title:translate("modal.selectExportOption"),confirmButtonText:"Exportar",cancelButtonText:"Cancelar"})}catch(J){this._notifyError(J.message)}}_notifyError(J){this.api.notificationService.error(J||"actions.delete.error")}}class ExportPdf{}let request$j;const bootstrapExportPdf=te=>{request$j=te.registerRequest(ExportPdf,ExportToPdfHandler)},teardownExportPdf=()=>{request$j?.dispose()},{addActivityHistoryItems}=activityHistoryCollectionsSlice.actions;class AddHistoryItemsHandler extends StoreBaseHandler{async handle(J){try{const X=validateAndFilterBasicItems(J.items);handleAddDiagnosticsFilter(X,this.store),handleAddUpFilter(X,this.store),this.store.dispatch(addActivityHistoryItems({id:J.entityId,items:X,componentFactory:J.componentFactory,searchPredicate:J.searchPredicate}))}catch(X){console.log(X.message)}}}let request$i;const bootstrapAddHistoryItems=te=>{request$i=te.registerRequest("add_history_items_request",AddHistoryItemsHandler)},teardownAddHistoryItems=()=>{request$i?.dispose()},{updateActivityHistoryItem}=activityHistoryCollectionsSlice.actions;class UpdateHistoryItemHandler extends StoreBaseHandler{async handle(J){try{ensureAreValidBasicActivityHistoryItems([J.item]),this.store.dispatch(updateActivityHistoryItem({id:J.entityId,item:J.item}))}catch(X){console.log(X.message)}}}let request$h;const bootstrapUpdateHistoryItem=te=>{request$h=te.registerRequest("update_history_item_request",UpdateHistoryItemHandler)},teardownUpdateHistoryItem=()=>{request$h?.dispose()};function connectedProperty(te,J={}){return createConnectedProperty(store)(te,J)}const activityHistorySearchStringSelector=te=>te.activityHistoryFilters.searchString;function getUniqueObjects(te,J,X,re){const ne=`Sense ${re.toLocaleLowerCase()}`,oe=new Map;let de=!1;for(const he of te){const ue=J.reduce((ge,ve)=>ge?.[ve],he),pe=X.reduce((ge,ve)=>ge?.[ve],he);typeof ue=="string"&&ue.trim()!==""&&typeof pe=="string"?oe.has(ue)||oe.set(ue,{id:ue,title:pe}):de=!0}const ce=Array.from(oe.values()).sort((he,ue)=>he.title.localeCompare(ue.title,"ca",{sensitivity:"base"}));return de&&ce.push({id:"",title:ne}),ce}class TrueSpec extends Spec{isSatisfiedBy(){return!0}}class CommonFilterSpec extends Spec{constructor(J){super(),this.commonFilters=J}isSatisfiedBy(J){return this.commonFilters.filter(ne=>ne.enabled).reduce((ne,oe)=>ne.and(new oe.spec),new TrueSpec).isSatisfiedBy(J)}}class FalseSpec extends Spec{isSatisfiedBy(){return!1}}class PropPathSpec extends Spec{constructor(J,X){super(),this.propPath=J,this.value=X}isSatisfiedBy(J){return this.propPath.reduce((re,ne)=>re?.[ne],J)===this.value}}class CustomFilterSpec extends Spec{constructor(J){super(),this.filters=J}isSatisfiedBy(J){const X=this.filters.filter(re=>re.enabled);return X.length===0?!0:X.every(re=>{if(!this.belongsToGroup(J,re))return!0;const ne=re.filters.filter(oe=>oe.enabled||oe.singleOption);return ne.length===0?!0:ne.every(oe=>oe.singleOption?oe.enabled?!0:new PropPathSpec(oe.propPathValue,!1).isSatisfiedBy(J):!oe.enabledValues||oe.enabledValues.length===0?!0:oe.enabledValues.reduce((ce,he)=>ce.or(new PropPathSpec(oe.propPathValue,he)),new FalseSpec).isSatisfiedBy(J))})}belongsToGroup(J,X){return J.type===X.id}}const normalizeStringToNFD=te=>te==null?"":String(te).normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLocaleLowerCase(),propContainsString=(te,J)=>{const X=normalizeStringToNFD(te),re=normalizeStringToNFD(J);return X.toString().toLowerCase().indexOf(re)!==-1||X.toString().indexOf(re)!==-1},commonFieldsSearchPredicate=(te,J)=>{const X=te.professional?.name&&propContainsString(te.professional?.name,J),re=te.center?.description&&propContainsString(te.center.description,J),ne=te.professional?.speciality?.description&&propContainsString(te.professional?.speciality.description,J),oe=te.professional?.role?.description&&propContainsString(te.professional?.role.description,J),de=te.service?.description&&propContainsString(te.service.description,J),ce=te.diagnostics?.some(he=>propContainsString(he.descripcio,J));return X||re||ne||oe||de||ce};class SearchStringSpec extends Spec{constructor(J,X){super(),this.searchString=J,this.searchPredicate=X}isSatisfiedBy(J){if(!this.searchString?.trim())return!0;const X=commonFieldsSearchPredicate(J,this.searchString),re=this.searchPredicate?this.searchPredicate(this.searchString.toLowerCase(),J):!1;return!!(X||re)}}class TypeSpec extends Spec{constructor(J){super(),this.itemType=J}isSatisfiedBy(J){return J?.type===this.itemType}}class ComposedTypeSpec extends Spec{constructor(J){super(),this.filters=J}isSatisfiedBy(J){return this.filters.filter(ne=>ne.enabled).map(ne=>ne.id).reduce((ne,oe)=>ne.or(new TypeSpec(oe)),new FalseSpec).isSatisfiedBy(J)}}const activityHistoryFiltersSelector=te=>te.activityHistoryFilters.filters,activityHistoryCommonFiltersSelector=createSelector(activityHistoryFiltersSelector,te=>te.find(isCommonFilterGroup)?.filters||[]),activityHistoryEnabledCommonFiltersSelector=createSelector(activityHistoryCommonFiltersSelector,te=>te.filter(J=>J.enabled)),areCommonFiltersActive=createSelector(activityHistoryEnabledCommonFiltersSelector,te=>!!te.length),activityHistoryCustomFilterGroupsSelector=createSelector(activityHistoryFiltersSelector,te=>te.filter(isCustomFilter).sort(sortBySortProperty)),sortBySortProperty=(te,J)=>Number(te.sort)-Number(J.sort),areCustomFiltersActive=createSelector(activityHistoryCustomFilterGroupsSelector,te=>te.some(J=>J.filters.some(X=>X.enabledValues?.length)));createSelector(activityHistoryCustomFilterGroupsSelector,te=>te.filter(J=>J.enabled).map(({id:J,title:X,enabled:re,sort:ne,filters:oe})=>({id:J,title:X,enabled:re,sort:ne,filters:oe.filter(de=>de.enabledValues?.length)})).filter(J=>J.filters.length>0));const areSameDiagnostics=(te,J)=>{if(te.length!==J.length)return!1;const X=te.map(ne=>ne.codi).sort(),re=J.map(ne=>ne.codi).sort();return X.every((ne,oe)=>ne===re[oe])},hasValidDiagnostic=te=>te!=null&&typeof te.codi=="string"&&typeof te.cataleg=="string"&&typeof te.descripcio=="string",hasValidDiagnostics=te=>te==null?!0:Array.isArray(te)&&te.every(hasValidDiagnostic),dateStringCache=new Map,dateObjectCache=new Map,getDateString=te=>(dateStringCache.has(te)||dateStringCache.set(te,new Date(te).toDateString()),dateStringCache.get(te)),getDateObject=te=>(dateObjectCache.has(te)||dateObjectCache.set(te,new Date(te)),dateObjectCache.get(te)),createVisitKey=te=>{const J=`${te.professional?.id||"null"}-${te.professional?.role?.id||"null"}-${te.professional?.speciality?.id||"null"}`,X=`${te.ep?.id||"null"}-${te.up?.id||"null"}-${te.center?.id||"null"}-${te.service?.id||"null"}`,re=getDateString(te.date);return`${J}|${X}|${re}`},withinEightHours=(te,J)=>{const X=getDateObject(te).getTime(),re=getDateObject(J).getTime();return Math.abs(X-re)<=480*60*1e3};function groupByValidDiagnostics(te){te.forEach(J=>{const X=[],re=[];J.items.forEach(ne=>{const oe=ne.diagnostics;if(oe?.length>0&&hasValidDiagnostics(oe)){let ce=!1;for(const he of X){const ue=he.items[0];if(areSameDiagnostics(ue.diagnostics,oe)){he.items.push(ne),ce=!0;break}}ce||X.push({idSubGroup:crypto.randomUUID(),items:[ne]})}else re.push(ne)}),J.items=re,J.subGroups=X})}const groupActivityHistoryItems=te=>{if(!te?.length)return[];dateStringCache.clear(),dateObjectCache.clear();const J=[...te].sort((re,ne)=>getDateObject(ne.date).getTime()-getDateObject(re.date).getTime()),X=[];for(const re of J){const ne=createVisitKey(re);let oe=!1;for(const de of X){if(de.items.length===0)continue;const ce=createVisitKey(de.items[0]);if(ce===ne){const he=de.items[0],ue=de.items[de.items.length-1];if(he&&ue&&withinEightHours(he.date,re.date)&&withinEightHours(ue.date,re.date)&&!X.some(fe=>fe.items.length===0||createVisitKey(fe.items[0])===ce?!1:fe.items.some(ge=>{const ve=getDateObject(re.date).getTime(),me=getDateObject(ge.date).getTime(),_e=getDateObject(ue.date).getTime(),ye=getDateObject(he.date).getTime(),Ce=Math.min(_e,ve),Se=Math.max(ye,ve);return me>Ce&&me<Se}))){de.items.push(re),de.items.sort((fe,be)=>getDateObject(be.date).getTime()-getDateObject(fe.date).getTime()),oe=!0;break}}}oe||X.push({idGroup:Math.random().toString(36).substring(2,11),items:[re],subGroups:[]})}return X.sort((re,ne)=>{const oe=re.items[0],de=ne.items[0];return!oe||!de?0:getDateObject(de.date).getTime()-getDateObject(oe.date).getTime()}),groupByValidDiagnostics(X),X},sortGroupsByMostRecentDate=te=>{const J=oe=>oe.reduce((de,ce)=>{const he=new Date(ce.date);return he>de?he:de},new Date(0)),X=oe=>oe.sort((de,ce)=>new Date(ce.date).getTime()-new Date(de.date).getTime()),re=oe=>J(oe.items),ne=oe=>{const de=oe.items.length>0?[J(oe.items)]:[],ce=oe.subGroups.map(re),he=[...de,...ce];return he.length>0?new Date(Math.max(...he.map(ue=>ue.getTime()))):new Date(0)};return te.forEach(oe=>{oe.items=X(oe.items),oe.subGroups.forEach(de=>{de.items=X(de.items)}),oe.subGroups.sort((de,ce)=>re(ce).getTime()-re(de).getTime())}),te.sort((oe,de)=>ne(de).getTime()-ne(oe).getTime())},diagnosticFilterSelector=createSelector(activityHistoryFiltersSelector,te=>te.find(isDiagnosticFilter)),diagnosticFilterEnabledValuesSelector=createSelector(diagnosticFilterSelector,te=>te?.enabledValues||[]),areDiagnosticFiltersActive=createSelector(diagnosticFilterEnabledValuesSelector,te=>!!te.length);class DiagnosticCodeSpec extends Spec{constructor(J){super(),this.diagnosticCodes=J}isSatisfiedBy(J){return this.diagnosticCodes?.length?(J.diagnostics??[]).some(re=>this.diagnosticCodes.includes(re.codi)):!0}}const upFilterSelector=createSelector(activityHistoryFiltersSelector,te=>te.find(isUpFilter)),upFilterEnabledValuesSelector=createSelector(upFilterSelector,te=>te?.enabledValues||[]),areUpFiltersActive=createSelector(upFilterEnabledValuesSelector,te=>!!te.length);class UpFilterSpec extends Spec{constructor(J){super(),this.upIds=J}isSatisfiedBy(J){if(!this.upIds?.length)return!0;const X=J.up??null;return this.upIds.some(re=>X.id===re)}}const activityHistoryCollectionsSelector=te=>te.activityHistoryCollections.collections,mapItemsWithMetadata=(te,J,X,re)=>te.map(ne=>({...ne,searchPredicate:re,componentFactory:J,type:X})),activityHistoryMappedItems=createSelector(activityHistoryCollectionsSelector,te=>Object.values(te).flatMap(J=>mapItemsWithMetadata(J.items,J.componentFactory,J.id,J.searchPredicate))),customFilterGroupsWithOptionsSelector=createSelector(activityHistoryCustomFilterGroupsSelector,activityHistoryCollectionsSelector,(te,J)=>te.map(re=>{const ne=J[re.id];return{...re,filters:re.filters.map(oe=>({...oe,options:(oe.singleOption?[]:getUniqueObjects(ne.items,oe.propPathValue,oe.propsPathDescription,oe.title))||[]}))}})),activityHistoryGroupedItems=createSelector(activityHistoryMappedItems,activityHistorySearchStringSelector,activityHistoryCommonFiltersSelector,activityHistoryCustomFilterGroupsSelector,diagnosticFilterEnabledValuesSelector,upFilterEnabledValuesSelector,(te,J,X,re,ne,oe)=>{const de=te.filter(ue=>new SearchStringSpec(J,ue.searchPredicate).and(new CommonFilterSpec(X)).and(new ComposedTypeSpec(re)).and(new CustomFilterSpec(re)).and(new DiagnosticCodeSpec(ne)).and(new UpFilterSpec(oe)).isSatisfiedBy(ue)),ce=groupActivityHistoryItems(de);return sortGroupsByMostRecentDate(ce)}),styles$l=":host{min-height:1px;display:flex;flex-direction:column;flex:1 1 0%}.virtual-container{height:100%;position:relative}.virtual-viewport{height:100%;overflow:auto;padding-inline:16px}.virtual-content{position:relative;width:100%}.virtual-items{position:relative}.container{min-height:1px;height:100%}.visit:first-child{margin-top:var(--dss-spacing-md)}.visit{width:calc(100% - var(--dss-spacing-md) - var(--dss-spacing-md));display:flex;flex-direction:column;gap:var(--dss-spacing-sm);background-color:#fff;border-radius:var(--dss-radius-sm);padding:var(--dss-spacing-sm);margin-bottom:var(--dss-spacing-md)}.visit .visit__header{display:flex;flex-direction:row;align-items:center;gap:16px}.visit .visit__header .title{flex:1;font-size:14px;line-height:24px;display:flex;flex-direction:row;gap:12px;color:var(--color-neutral-800)}.visit .visit__header .title-date{font-weight:700}.visit .visit__header .title-description{font-weight:600;display:flex;flex-direction:row;gap:4px}.visit .visit__header .highlight{background-color:#ff0;font-weight:700}.visit .visit__items{display:flex;flex-direction:column;gap:var(--dss-spacing-sm)}.visit .visit__items .item[has-divider]{border-bottom:var(--dss-border-width-sm) solid var(--color-neutral-200)}.visit .visit__items .item[has-divider]:last-of-type{border:none}.visit .diagnostics{display:flex;flex-direction:column;gap:var(--dss-spacing-sm);border-bottom:var(--dss-border-width-sm) solid var(--color-neutral-200)}.visit .diagnostics:last-of-type{border:none}.visit .diagnostics .diagnostics__header{display:flex;flex-direction:row;align-items:center;gap:16px;flex-wrap:wrap}.visit .diagnostics .diagnostics__items{display:flex;flex-direction:column}.visit .diagnostics .diagnostics__items .item[has-divider]{border-bottom:var(--dss-border-width-sm) solid var(--color-neutral-200)}.visit .diagnostics .diagnostics__items .item[has-divider]:last-of-type{border:none}.feedback{width:100%;height:100%;display:flex;align-items:center;justify-content:center}";function toDate(te){const J=Object.prototype.toString.call(te);return te instanceof Date||typeof te=="object"&&J==="[object Date]"?new te.constructor(+te):typeof te=="number"||J==="[object Number]"||typeof te=="string"||J==="[object String]"?new Date(te):new Date(NaN)}function constructFrom(te,J){return te instanceof Date?new te.constructor(J):new Date(J)}function addDays(te,J){const X=toDate(te);return isNaN(J)?constructFrom(te,NaN):(J&&X.setDate(X.getDate()+J),X)}const millisecondsInWeek=6048e5,millisecondsInDay=864e5,millisecondsInMinute=6e4,millisecondsInHour=36e5,millisecondsInSecond=1e3;let defaultOptions={};function getDefaultOptions$1(){return defaultOptions}function startOfWeek(te,J){const X=getDefaultOptions$1(),re=J?.weekStartsOn??J?.locale?.options?.weekStartsOn??X.weekStartsOn??X.locale?.options?.weekStartsOn??0,ne=toDate(te),oe=ne.getDay(),de=(oe<re?7:0)+oe-re;return ne.setDate(ne.getDate()-de),ne.setHours(0,0,0,0),ne}function startOfISOWeek(te){return startOfWeek(te,{weekStartsOn:1})}function getISOWeekYear(te){const J=toDate(te),X=J.getFullYear(),re=constructFrom(te,0);re.setFullYear(X+1,0,4),re.setHours(0,0,0,0);const ne=startOfISOWeek(re),oe=constructFrom(te,0);oe.setFullYear(X,0,4),oe.setHours(0,0,0,0);const de=startOfISOWeek(oe);return J.getTime()>=ne.getTime()?X+1:J.getTime()>=de.getTime()?X:X-1}function startOfDay(te){const J=toDate(te);return J.setHours(0,0,0,0),J}function getTimezoneOffsetInMilliseconds(te){const J=toDate(te),X=new Date(Date.UTC(J.getFullYear(),J.getMonth(),J.getDate(),J.getHours(),J.getMinutes(),J.getSeconds(),J.getMilliseconds()));return X.setUTCFullYear(J.getFullYear()),+te-+X}function differenceInCalendarDays(te,J){const X=startOfDay(te),re=startOfDay(J),ne=+X-getTimezoneOffsetInMilliseconds(X),oe=+re-getTimezoneOffsetInMilliseconds(re);return Math.round((ne-oe)/millisecondsInDay)}function startOfISOWeekYear(te){const J=getISOWeekYear(te),X=constructFrom(te,0);return X.setFullYear(J,0,4),X.setHours(0,0,0,0),startOfISOWeek(X)}function isDate(te){return te instanceof Date||typeof te=="object"&&Object.prototype.toString.call(te)==="[object Date]"}function isValid(te){if(!isDate(te)&&typeof te!="number")return!1;const J=toDate(te);return!isNaN(Number(J))}function endOfMonth(te){const J=toDate(te),X=J.getMonth();return J.setFullYear(J.getFullYear(),X+1,0),J.setHours(23,59,59,999),J}function eachDayOfInterval(te,J){const X=toDate(te.start),re=toDate(te.end);let ne=+X>+re;const oe=ne?+X:+re,de=ne?re:X;de.setHours(0,0,0,0);let ce=1;const he=[];for(;+de<=oe;)he.push(toDate(de)),de.setDate(de.getDate()+ce),de.setHours(0,0,0,0);return ne?he.reverse():he}function startOfMonth(te){const J=toDate(te);return J.setDate(1),J.setHours(0,0,0,0),J}function startOfYear(te){const J=toDate(te),X=constructFrom(te,0);return X.setFullYear(J.getFullYear(),0,1),X.setHours(0,0,0,0),X}const formatDistanceLocale={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},formatDistance=(te,J,X)=>{let re;const ne=formatDistanceLocale[te];return typeof ne=="string"?re=ne:J===1?re=ne.one:re=ne.other.replace("{{count}}",J.toString()),X?.addSuffix?X.comparison&&X.comparison>0?"in "+re:re+" ago":re};function buildFormatLongFn(te){return(J={})=>{const X=J.width?String(J.width):te.defaultWidth;return te.formats[X]||te.formats[te.defaultWidth]}}const dateFormats={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},timeFormats={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},dateTimeFormats={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},formatLong={date:buildFormatLongFn({formats:dateFormats,defaultWidth:"full"}),time:buildFormatLongFn({formats:timeFormats,defaultWidth:"full"}),dateTime:buildFormatLongFn({formats:dateTimeFormats,defaultWidth:"full"})},formatRelativeLocale={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},formatRelative=(te,J,X,re)=>formatRelativeLocale[te];function buildLocalizeFn(te){return(J,X)=>{const re=X?.context?String(X.context):"standalone";let ne;if(re==="formatting"&&te.formattingValues){const de=te.defaultFormattingWidth||te.defaultWidth,ce=X?.width?String(X.width):de;ne=te.formattingValues[ce]||te.formattingValues[de]}else{const de=te.defaultWidth,ce=X?.width?String(X.width):te.defaultWidth;ne=te.values[ce]||te.values[de]}const oe=te.argumentCallback?te.argumentCallback(J):J;return ne[oe]}}const eraValues={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},quarterValues={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},monthValues={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},dayValues={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},dayPeriodValues={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},formattingDayPeriodValues={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},ordinalNumber=(te,J)=>{const X=Number(te),re=X%100;if(re>20||re<10)switch(re%10){case 1:return X+"st";case 2:return X+"nd";case 3:return X+"rd"}return X+"th"},localize={ordinalNumber,era:buildLocalizeFn({values:eraValues,defaultWidth:"wide"}),quarter:buildLocalizeFn({values:quarterValues,defaultWidth:"wide",argumentCallback:te=>te-1}),month:buildLocalizeFn({values:monthValues,defaultWidth:"wide"}),day:buildLocalizeFn({values:dayValues,defaultWidth:"wide"}),dayPeriod:buildLocalizeFn({values:dayPeriodValues,defaultWidth:"wide",formattingValues:formattingDayPeriodValues,defaultFormattingWidth:"wide"})};function buildMatchFn(te){return(J,X={})=>{const re=X.width,ne=re&&te.matchPatterns[re]||te.matchPatterns[te.defaultMatchWidth],oe=J.match(ne);if(!oe)return null;const de=oe[0],ce=re&&te.parsePatterns[re]||te.parsePatterns[te.defaultParseWidth],he=Array.isArray(ce)?findIndex(ce,fe=>fe.test(de)):findKey(ce,fe=>fe.test(de));let ue;ue=te.valueCallback?te.valueCallback(he):he,ue=X.valueCallback?X.valueCallback(ue):ue;const pe=J.slice(de.length);return{value:ue,rest:pe}}}function findKey(te,J){for(const X in te)if(Object.prototype.hasOwnProperty.call(te,X)&&J(te[X]))return X}function findIndex(te,J){for(let X=0;X<te.length;X++)if(J(te[X]))return X}function buildMatchPatternFn(te){return(J,X={})=>{const re=J.match(te.matchPattern);if(!re)return null;const ne=re[0],oe=J.match(te.parsePattern);if(!oe)return null;let de=te.valueCallback?te.valueCallback(oe[0]):oe[0];de=X.valueCallback?X.valueCallback(de):de;const ce=J.slice(ne.length);return{value:de,rest:ce}}}const matchOrdinalNumberPattern=/^(\d+)(th|st|nd|rd)?/i,parseOrdinalNumberPattern=/\d+/i,matchEraPatterns={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},parseEraPatterns={any:[/^b/i,/^(a|c)/i]},matchQuarterPatterns={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},parseQuarterPatterns={any:[/1/i,/2/i,/3/i,/4/i]},matchMonthPatterns={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},parseMonthPatterns={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},matchDayPatterns={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},parseDayPatterns={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},matchDayPeriodPatterns={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},parseDayPeriodPatterns={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},match={ordinalNumber:buildMatchPatternFn({matchPattern:matchOrdinalNumberPattern,parsePattern:parseOrdinalNumberPattern,valueCallback:te=>parseInt(te,10)}),era:buildMatchFn({matchPatterns:matchEraPatterns,defaultMatchWidth:"wide",parsePatterns:parseEraPatterns,defaultParseWidth:"any"}),quarter:buildMatchFn({matchPatterns:matchQuarterPatterns,defaultMatchWidth:"wide",parsePatterns:parseQuarterPatterns,defaultParseWidth:"any",valueCallback:te=>te+1}),month:buildMatchFn({matchPatterns:matchMonthPatterns,defaultMatchWidth:"wide",parsePatterns:parseMonthPatterns,defaultParseWidth:"any"}),day:buildMatchFn({matchPatterns:matchDayPatterns,defaultMatchWidth:"wide",parsePatterns:parseDayPatterns,defaultParseWidth:"any"}),dayPeriod:buildMatchFn({matchPatterns:matchDayPeriodPatterns,defaultMatchWidth:"any",parsePatterns:parseDayPeriodPatterns,defaultParseWidth:"any"})},enUS={code:"en-US",formatDistance,formatLong,formatRelative,localize,match,options:{weekStartsOn:0,firstWeekContainsDate:1}};function getDayOfYear(te){const J=toDate(te);return differenceInCalendarDays(J,startOfYear(J))+1}function getISOWeek(te){const J=toDate(te),X=+startOfISOWeek(J)-+startOfISOWeekYear(J);return Math.round(X/millisecondsInWeek)+1}function getWeekYear(te,J){const X=toDate(te),re=X.getFullYear(),ne=getDefaultOptions$1(),oe=J?.firstWeekContainsDate??J?.locale?.options?.firstWeekContainsDate??ne.firstWeekContainsDate??ne.locale?.options?.firstWeekContainsDate??1,de=constructFrom(te,0);de.setFullYear(re+1,0,oe),de.setHours(0,0,0,0);const ce=startOfWeek(de,J),he=constructFrom(te,0);he.setFullYear(re,0,oe),he.setHours(0,0,0,0);const ue=startOfWeek(he,J);return X.getTime()>=ce.getTime()?re+1:X.getTime()>=ue.getTime()?re:re-1}function startOfWeekYear(te,J){const X=getDefaultOptions$1(),re=J?.firstWeekContainsDate??J?.locale?.options?.firstWeekContainsDate??X.firstWeekContainsDate??X.locale?.options?.firstWeekContainsDate??1,ne=getWeekYear(te,J),oe=constructFrom(te,0);return oe.setFullYear(ne,0,re),oe.setHours(0,0,0,0),startOfWeek(oe,J)}function getWeek(te,J){const X=toDate(te),re=+startOfWeek(X,J)-+startOfWeekYear(X,J);return Math.round(re/millisecondsInWeek)+1}function addLeadingZeros(te,J){const X=te<0?"-":"",re=Math.abs(te).toString().padStart(J,"0");return X+re}const lightFormatters={y(te,J){const X=te.getFullYear(),re=X>0?X:1-X;return addLeadingZeros(J==="yy"?re%100:re,J.length)},M(te,J){const X=te.getMonth();return J==="M"?String(X+1):addLeadingZeros(X+1,2)},d(te,J){return addLeadingZeros(te.getDate(),J.length)},a(te,J){const X=te.getHours()/12>=1?"pm":"am";switch(J){case"a":case"aa":return X.toUpperCase();case"aaa":return X;case"aaaaa":return X[0];case"aaaa":default:return X==="am"?"a.m.":"p.m."}},h(te,J){return addLeadingZeros(te.getHours()%12||12,J.length)},H(te,J){return addLeadingZeros(te.getHours(),J.length)},m(te,J){return addLeadingZeros(te.getMinutes(),J.length)},s(te,J){return addLeadingZeros(te.getSeconds(),J.length)},S(te,J){const X=J.length,re=te.getMilliseconds(),ne=Math.trunc(re*Math.pow(10,X-3));return addLeadingZeros(ne,J.length)}},dayPeriodEnum={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},formatters={G:function(te,J,X){const re=te.getFullYear()>0?1:0;switch(J){case"G":case"GG":case"GGG":return X.era(re,{width:"abbreviated"});case"GGGGG":return X.era(re,{width:"narrow"});case"GGGG":default:return X.era(re,{width:"wide"})}},y:function(te,J,X){if(J==="yo"){const re=te.getFullYear(),ne=re>0?re:1-re;return X.ordinalNumber(ne,{unit:"year"})}return lightFormatters.y(te,J)},Y:function(te,J,X,re){const ne=getWeekYear(te,re),oe=ne>0?ne:1-ne;if(J==="YY"){const de=oe%100;return addLeadingZeros(de,2)}return J==="Yo"?X.ordinalNumber(oe,{unit:"year"}):addLeadingZeros(oe,J.length)},R:function(te,J){const X=getISOWeekYear(te);return addLeadingZeros(X,J.length)},u:function(te,J){const X=te.getFullYear();return addLeadingZeros(X,J.length)},Q:function(te,J,X){const re=Math.ceil((te.getMonth()+1)/3);switch(J){case"Q":return String(re);case"QQ":return addLeadingZeros(re,2);case"Qo":return X.ordinalNumber(re,{unit:"quarter"});case"QQQ":return X.quarter(re,{width:"abbreviated",context:"formatting"});case"QQQQQ":return X.quarter(re,{width:"narrow",context:"formatting"});case"QQQQ":default:return X.quarter(re,{width:"wide",context:"formatting"})}},q:function(te,J,X){const re=Math.ceil((te.getMonth()+1)/3);switch(J){case"q":return String(re);case"qq":return addLeadingZeros(re,2);case"qo":return X.ordinalNumber(re,{unit:"quarter"});case"qqq":return X.quarter(re,{width:"abbreviated",context:"standalone"});case"qqqqq":return X.quarter(re,{width:"narrow",context:"standalone"});case"qqqq":default:return X.quarter(re,{width:"wide",context:"standalone"})}},M:function(te,J,X){const re=te.getMonth();switch(J){case"M":case"MM":return lightFormatters.M(te,J);case"Mo":return X.ordinalNumber(re+1,{unit:"month"});case"MMM":return X.month(re,{width:"abbreviated",context:"formatting"});case"MMMMM":return X.month(re,{width:"narrow",context:"formatting"});case"MMMM":default:return X.month(re,{width:"wide",context:"formatting"})}},L:function(te,J,X){const re=te.getMonth();switch(J){case"L":return String(re+1);case"LL":return addLeadingZeros(re+1,2);case"Lo":return X.ordinalNumber(re+1,{unit:"month"});case"LLL":return X.month(re,{width:"abbreviated",context:"standalone"});case"LLLLL":return X.month(re,{width:"narrow",context:"standalone"});case"LLLL":default:return X.month(re,{width:"wide",context:"standalone"})}},w:function(te,J,X,re){const ne=getWeek(te,re);return J==="wo"?X.ordinalNumber(ne,{unit:"week"}):addLeadingZeros(ne,J.length)},I:function(te,J,X){const re=getISOWeek(te);return J==="Io"?X.ordinalNumber(re,{unit:"week"}):addLeadingZeros(re,J.length)},d:function(te,J,X){return J==="do"?X.ordinalNumber(te.getDate(),{unit:"date"}):lightFormatters.d(te,J)},D:function(te,J,X){const re=getDayOfYear(te);return J==="Do"?X.ordinalNumber(re,{unit:"dayOfYear"}):addLeadingZeros(re,J.length)},E:function(te,J,X){const re=te.getDay();switch(J){case"E":case"EE":case"EEE":return X.day(re,{width:"abbreviated",context:"formatting"});case"EEEEE":return X.day(re,{width:"narrow",context:"formatting"});case"EEEEEE":return X.day(re,{width:"short",context:"formatting"});case"EEEE":default:return X.day(re,{width:"wide",context:"formatting"})}},e:function(te,J,X,re){const ne=te.getDay(),oe=(ne-re.weekStartsOn+8)%7||7;switch(J){case"e":return String(oe);case"ee":return addLeadingZeros(oe,2);case"eo":return X.ordinalNumber(oe,{unit:"day"});case"eee":return X.day(ne,{width:"abbreviated",context:"formatting"});case"eeeee":return X.day(ne,{width:"narrow",context:"formatting"});case"eeeeee":return X.day(ne,{width:"short",context:"formatting"});case"eeee":default:return X.day(ne,{width:"wide",context:"formatting"})}},c:function(te,J,X,re){const ne=te.getDay(),oe=(ne-re.weekStartsOn+8)%7||7;switch(J){case"c":return String(oe);case"cc":return addLeadingZeros(oe,J.length);case"co":return X.ordinalNumber(oe,{unit:"day"});case"ccc":return X.day(ne,{width:"abbreviated",context:"standalone"});case"ccccc":return X.day(ne,{width:"narrow",context:"standalone"});case"cccccc":return X.day(ne,{width:"short",context:"standalone"});case"cccc":default:return X.day(ne,{width:"wide",context:"standalone"})}},i:function(te,J,X){const re=te.getDay(),ne=re===0?7:re;switch(J){case"i":return String(ne);case"ii":return addLeadingZeros(ne,J.length);case"io":return X.ordinalNumber(ne,{unit:"day"});case"iii":return X.day(re,{width:"abbreviated",context:"formatting"});case"iiiii":return X.day(re,{width:"narrow",context:"formatting"});case"iiiiii":return X.day(re,{width:"short",context:"formatting"});case"iiii":default:return X.day(re,{width:"wide",context:"formatting"})}},a:function(te,J,X){const ne=te.getHours()/12>=1?"pm":"am";switch(J){case"a":case"aa":return X.dayPeriod(ne,{width:"abbreviated",context:"formatting"});case"aaa":return X.dayPeriod(ne,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return X.dayPeriod(ne,{width:"narrow",context:"formatting"});case"aaaa":default:return X.dayPeriod(ne,{width:"wide",context:"formatting"})}},b:function(te,J,X){const re=te.getHours();let ne;switch(re===12?ne=dayPeriodEnum.noon:re===0?ne=dayPeriodEnum.midnight:ne=re/12>=1?"pm":"am",J){case"b":case"bb":return X.dayPeriod(ne,{width:"abbreviated",context:"formatting"});case"bbb":return X.dayPeriod(ne,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return X.dayPeriod(ne,{width:"narrow",context:"formatting"});case"bbbb":default:return X.dayPeriod(ne,{width:"wide",context:"formatting"})}},B:function(te,J,X){const re=te.getHours();let ne;switch(re>=17?ne=dayPeriodEnum.evening:re>=12?ne=dayPeriodEnum.afternoon:re>=4?ne=dayPeriodEnum.morning:ne=dayPeriodEnum.night,J){case"B":case"BB":case"BBB":return X.dayPeriod(ne,{width:"abbreviated",context:"formatting"});case"BBBBB":return X.dayPeriod(ne,{width:"narrow",context:"formatting"});case"BBBB":default:return X.dayPeriod(ne,{width:"wide",context:"formatting"})}},h:function(te,J,X){if(J==="ho"){let re=te.getHours()%12;return re===0&&(re=12),X.ordinalNumber(re,{unit:"hour"})}return lightFormatters.h(te,J)},H:function(te,J,X){return J==="Ho"?X.ordinalNumber(te.getHours(),{unit:"hour"}):lightFormatters.H(te,J)},K:function(te,J,X){const re=te.getHours()%12;return J==="Ko"?X.ordinalNumber(re,{unit:"hour"}):addLeadingZeros(re,J.length)},k:function(te,J,X){let re=te.getHours();return re===0&&(re=24),J==="ko"?X.ordinalNumber(re,{unit:"hour"}):addLeadingZeros(re,J.length)},m:function(te,J,X){return J==="mo"?X.ordinalNumber(te.getMinutes(),{unit:"minute"}):lightFormatters.m(te,J)},s:function(te,J,X){return J==="so"?X.ordinalNumber(te.getSeconds(),{unit:"second"}):lightFormatters.s(te,J)},S:function(te,J){return lightFormatters.S(te,J)},X:function(te,J,X){const re=te.getTimezoneOffset();if(re===0)return"Z";switch(J){case"X":return formatTimezoneWithOptionalMinutes(re);case"XXXX":case"XX":return formatTimezone(re);case"XXXXX":case"XXX":default:return formatTimezone(re,":")}},x:function(te,J,X){const re=te.getTimezoneOffset();switch(J){case"x":return formatTimezoneWithOptionalMinutes(re);case"xxxx":case"xx":return formatTimezone(re);case"xxxxx":case"xxx":default:return formatTimezone(re,":")}},O:function(te,J,X){const re=te.getTimezoneOffset();switch(J){case"O":case"OO":case"OOO":return"GMT"+formatTimezoneShort(re,":");case"OOOO":default:return"GMT"+formatTimezone(re,":")}},z:function(te,J,X){const re=te.getTimezoneOffset();switch(J){case"z":case"zz":case"zzz":return"GMT"+formatTimezoneShort(re,":");case"zzzz":default:return"GMT"+formatTimezone(re,":")}},t:function(te,J,X){const re=Math.trunc(te.getTime()/1e3);return addLeadingZeros(re,J.length)},T:function(te,J,X){const re=te.getTime();return addLeadingZeros(re,J.length)}};function formatTimezoneShort(te,J=""){const X=te>0?"-":"+",re=Math.abs(te),ne=Math.trunc(re/60),oe=re%60;return oe===0?X+String(ne):X+String(ne)+J+addLeadingZeros(oe,2)}function formatTimezoneWithOptionalMinutes(te,J){return te%60===0?(te>0?"-":"+")+addLeadingZeros(Math.abs(te)/60,2):formatTimezone(te,J)}function formatTimezone(te,J=""){const X=te>0?"-":"+",re=Math.abs(te),ne=addLeadingZeros(Math.trunc(re/60),2),oe=addLeadingZeros(re%60,2);return X+ne+J+oe}const dateLongFormatter=(te,J)=>{switch(te){case"P":return J.date({width:"short"});case"PP":return J.date({width:"medium"});case"PPP":return J.date({width:"long"});case"PPPP":default:return J.date({width:"full"})}},timeLongFormatter=(te,J)=>{switch(te){case"p":return J.time({width:"short"});case"pp":return J.time({width:"medium"});case"ppp":return J.time({width:"long"});case"pppp":default:return J.time({width:"full"})}},dateTimeLongFormatter=(te,J)=>{const X=te.match(/(P+)(p+)?/)||[],re=X[1],ne=X[2];if(!ne)return dateLongFormatter(te,J);let oe;switch(re){case"P":oe=J.dateTime({width:"short"});break;case"PP":oe=J.dateTime({width:"medium"});break;case"PPP":oe=J.dateTime({width:"long"});break;case"PPPP":default:oe=J.dateTime({width:"full"});break}return oe.replace("{{date}}",dateLongFormatter(re,J)).replace("{{time}}",timeLongFormatter(ne,J))},longFormatters={p:timeLongFormatter,P:dateTimeLongFormatter},dayOfYearTokenRE=/^D+$/,weekYearTokenRE=/^Y+$/,throwTokens=["D","DD","YY","YYYY"];function isProtectedDayOfYearToken(te){return dayOfYearTokenRE.test(te)}function isProtectedWeekYearToken(te){return weekYearTokenRE.test(te)}function warnOrThrowProtectedError(te,J,X){const re=message(te,J,X);if(console.warn(re),throwTokens.includes(te))throw new RangeError(re)}function message(te,J,X){const re=te[0]==="Y"?"years":"days of the month";return`Use \`${te.toLowerCase()}\` instead of \`${te}\` (in \`${J}\`) for formatting ${re} to the input \`${X}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const formattingTokensRegExp$1=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,longFormattingTokensRegExp$1=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,escapedStringRegExp$1=/^'([^]*?)'?$/,doubleQuoteRegExp$1=/''/g,unescapedLatinCharacterRegExp$1=/[a-zA-Z]/;function format(te,J,X){const re=getDefaultOptions$1(),ne=re.locale??enUS,oe=re.firstWeekContainsDate??re.locale?.options?.firstWeekContainsDate??1,de=re.weekStartsOn??re.locale?.options?.weekStartsOn??0,ce=toDate(te);if(!isValid(ce))throw new RangeError("Invalid time value");let he=J.match(longFormattingTokensRegExp$1).map(pe=>{const fe=pe[0];if(fe==="p"||fe==="P"){const be=longFormatters[fe];return be(pe,ne.formatLong)}return pe}).join("").match(formattingTokensRegExp$1).map(pe=>{if(pe==="''")return{isToken:!1,value:"'"};const fe=pe[0];if(fe==="'")return{isToken:!1,value:cleanEscapedString$1(pe)};if(formatters[fe])return{isToken:!0,value:pe};if(fe.match(unescapedLatinCharacterRegExp$1))throw new RangeError("Format string contains an unescaped latin alphabet character `"+fe+"`");return{isToken:!1,value:pe}});ne.localize.preprocessor&&(he=ne.localize.preprocessor(ce,he));const ue={firstWeekContainsDate:oe,weekStartsOn:de,locale:ne};return he.map(pe=>{if(!pe.isToken)return pe.value;const fe=pe.value;(isProtectedWeekYearToken(fe)||isProtectedDayOfYearToken(fe))&&warnOrThrowProtectedError(fe,J,String(te));const be=formatters[fe[0]];return be(ce,fe,ne.localize,ue)}).join("")}function cleanEscapedString$1(te){const J=te.match(escapedStringRegExp$1);return J?J[1].replace(doubleQuoteRegExp$1,"'"):te}function getDay(te){return toDate(te).getDay()}function getDefaultOptions(){return Object.assign({},getDefaultOptions$1())}function getISODay(te){let X=toDate(te).getDay();return X===0&&(X=7),X}function transpose(te,J){const X=J instanceof Date?constructFrom(J,0):new J(0);return X.setFullYear(te.getFullYear(),te.getMonth(),te.getDate()),X.setHours(te.getHours(),te.getMinutes(),te.getSeconds(),te.getMilliseconds()),X}const TIMEZONE_UNIT_PRIORITY=10;class Setter{subPriority=0;validate(J,X){return!0}}class ValueSetter extends Setter{constructor(J,X,re,ne,oe){super(),this.value=J,this.validateValue=X,this.setValue=re,this.priority=ne,oe&&(this.subPriority=oe)}validate(J,X){return this.validateValue(J,this.value,X)}set(J,X,re){return this.setValue(J,X,this.value,re)}}class DateToSystemTimezoneSetter extends Setter{priority=TIMEZONE_UNIT_PRIORITY;subPriority=-1;set(J,X){return X.timestampIsSet?J:constructFrom(J,transpose(J,Date))}}class Parser{run(J,X,re,ne){const oe=this.parse(J,X,re,ne);return oe?{setter:new ValueSetter(oe.value,this.validate,this.set,this.priority,this.subPriority),rest:oe.rest}:null}validate(J,X,re){return!0}}class EraParser extends Parser{priority=140;parse(J,X,re){switch(X){case"G":case"GG":case"GGG":return re.era(J,{width:"abbreviated"})||re.era(J,{width:"narrow"});case"GGGGG":return re.era(J,{width:"narrow"});case"GGGG":default:return re.era(J,{width:"wide"})||re.era(J,{width:"abbreviated"})||re.era(J,{width:"narrow"})}}set(J,X,re){return X.era=re,J.setFullYear(re,0,1),J.setHours(0,0,0,0),J}incompatibleTokens=["R","u","t","T"]}const numericPatterns={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},timezonePatterns={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function mapValue(te,J){return te&&{value:J(te.value),rest:te.rest}}function parseNumericPattern(te,J){const X=J.match(te);return X?{value:parseInt(X[0],10),rest:J.slice(X[0].length)}:null}function parseTimezonePattern(te,J){const X=J.match(te);if(!X)return null;if(X[0]==="Z")return{value:0,rest:J.slice(1)};const re=X[1]==="+"?1:-1,ne=X[2]?parseInt(X[2],10):0,oe=X[3]?parseInt(X[3],10):0,de=X[5]?parseInt(X[5],10):0;return{value:re*(ne*millisecondsInHour+oe*millisecondsInMinute+de*millisecondsInSecond),rest:J.slice(X[0].length)}}function parseAnyDigitsSigned(te){return parseNumericPattern(numericPatterns.anyDigitsSigned,te)}function parseNDigits(te,J){switch(te){case 1:return parseNumericPattern(numericPatterns.singleDigit,J);case 2:return parseNumericPattern(numericPatterns.twoDigits,J);case 3:return parseNumericPattern(numericPatterns.threeDigits,J);case 4:return parseNumericPattern(numericPatterns.fourDigits,J);default:return parseNumericPattern(new RegExp("^\\d{1,"+te+"}"),J)}}function parseNDigitsSigned(te,J){switch(te){case 1:return parseNumericPattern(numericPatterns.singleDigitSigned,J);case 2:return parseNumericPattern(numericPatterns.twoDigitsSigned,J);case 3:return parseNumericPattern(numericPatterns.threeDigitsSigned,J);case 4:return parseNumericPattern(numericPatterns.fourDigitsSigned,J);default:return parseNumericPattern(new RegExp("^-?\\d{1,"+te+"}"),J)}}function dayPeriodEnumToHours(te){switch(te){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function normalizeTwoDigitYear(te,J){const X=J>0,re=X?J:1-J;let ne;if(re<=50)ne=te||100;else{const oe=re+50,de=Math.trunc(oe/100)*100,ce=te>=oe%100;ne=te+de-(ce?100:0)}return X?ne:1-ne}function isLeapYearIndex(te){return te%400===0||te%4===0&&te%100!==0}class YearParser extends Parser{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(J,X,re){const ne=oe=>({year:oe,isTwoDigitYear:X==="yy"});switch(X){case"y":return mapValue(parseNDigits(4,J),ne);case"yo":return mapValue(re.ordinalNumber(J,{unit:"year"}),ne);default:return mapValue(parseNDigits(X.length,J),ne)}}validate(J,X){return X.isTwoDigitYear||X.year>0}set(J,X,re){const ne=J.getFullYear();if(re.isTwoDigitYear){const de=normalizeTwoDigitYear(re.year,ne);return J.setFullYear(de,0,1),J.setHours(0,0,0,0),J}const oe=!("era"in X)||X.era===1?re.year:1-re.year;return J.setFullYear(oe,0,1),J.setHours(0,0,0,0),J}}class LocalWeekYearParser extends Parser{priority=130;parse(J,X,re){const ne=oe=>({year:oe,isTwoDigitYear:X==="YY"});switch(X){case"Y":return mapValue(parseNDigits(4,J),ne);case"Yo":return mapValue(re.ordinalNumber(J,{unit:"year"}),ne);default:return mapValue(parseNDigits(X.length,J),ne)}}validate(J,X){return X.isTwoDigitYear||X.year>0}set(J,X,re,ne){const oe=getWeekYear(J,ne);if(re.isTwoDigitYear){const ce=normalizeTwoDigitYear(re.year,oe);return J.setFullYear(ce,0,ne.firstWeekContainsDate),J.setHours(0,0,0,0),startOfWeek(J,ne)}const de=!("era"in X)||X.era===1?re.year:1-re.year;return J.setFullYear(de,0,ne.firstWeekContainsDate),J.setHours(0,0,0,0),startOfWeek(J,ne)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]}class ISOWeekYearParser extends Parser{priority=130;parse(J,X){return parseNDigitsSigned(X==="R"?4:X.length,J)}set(J,X,re){const ne=constructFrom(J,0);return ne.setFullYear(re,0,4),ne.setHours(0,0,0,0),startOfISOWeek(ne)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]}class ExtendedYearParser extends Parser{priority=130;parse(J,X){return parseNDigitsSigned(X==="u"?4:X.length,J)}set(J,X,re){return J.setFullYear(re,0,1),J.setHours(0,0,0,0),J}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]}class QuarterParser extends Parser{priority=120;parse(J,X,re){switch(X){case"Q":case"QQ":return parseNDigits(X.length,J);case"Qo":return re.ordinalNumber(J,{unit:"quarter"});case"QQQ":return re.quarter(J,{width:"abbreviated",context:"formatting"})||re.quarter(J,{width:"narrow",context:"formatting"});case"QQQQQ":return re.quarter(J,{width:"narrow",context:"formatting"});case"QQQQ":default:return re.quarter(J,{width:"wide",context:"formatting"})||re.quarter(J,{width:"abbreviated",context:"formatting"})||re.quarter(J,{width:"narrow",context:"formatting"})}}validate(J,X){return X>=1&&X<=4}set(J,X,re){return J.setMonth((re-1)*3,1),J.setHours(0,0,0,0),J}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]}class StandAloneQuarterParser extends Parser{priority=120;parse(J,X,re){switch(X){case"q":case"qq":return parseNDigits(X.length,J);case"qo":return re.ordinalNumber(J,{unit:"quarter"});case"qqq":return re.quarter(J,{width:"abbreviated",context:"standalone"})||re.quarter(J,{width:"narrow",context:"standalone"});case"qqqqq":return re.quarter(J,{width:"narrow",context:"standalone"});case"qqqq":default:return re.quarter(J,{width:"wide",context:"standalone"})||re.quarter(J,{width:"abbreviated",context:"standalone"})||re.quarter(J,{width:"narrow",context:"standalone"})}}validate(J,X){return X>=1&&X<=4}set(J,X,re){return J.setMonth((re-1)*3,1),J.setHours(0,0,0,0),J}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]}class MonthParser extends Parser{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(J,X,re){const ne=oe=>oe-1;switch(X){case"M":return mapValue(parseNumericPattern(numericPatterns.month,J),ne);case"MM":return mapValue(parseNDigits(2,J),ne);case"Mo":return mapValue(re.ordinalNumber(J,{unit:"month"}),ne);case"MMM":return re.month(J,{width:"abbreviated",context:"formatting"})||re.month(J,{width:"narrow",context:"formatting"});case"MMMMM":return re.month(J,{width:"narrow",context:"formatting"});case"MMMM":default:return re.month(J,{width:"wide",context:"formatting"})||re.month(J,{width:"abbreviated",context:"formatting"})||re.month(J,{width:"narrow",context:"formatting"})}}validate(J,X){return X>=0&&X<=11}set(J,X,re){return J.setMonth(re,1),J.setHours(0,0,0,0),J}}class StandAloneMonthParser extends Parser{priority=110;parse(J,X,re){const ne=oe=>oe-1;switch(X){case"L":return mapValue(parseNumericPattern(numericPatterns.month,J),ne);case"LL":return mapValue(parseNDigits(2,J),ne);case"Lo":return mapValue(re.ordinalNumber(J,{unit:"month"}),ne);case"LLL":return re.month(J,{width:"abbreviated",context:"standalone"})||re.month(J,{width:"narrow",context:"standalone"});case"LLLLL":return re.month(J,{width:"narrow",context:"standalone"});case"LLLL":default:return re.month(J,{width:"wide",context:"standalone"})||re.month(J,{width:"abbreviated",context:"standalone"})||re.month(J,{width:"narrow",context:"standalone"})}}validate(J,X){return X>=0&&X<=11}set(J,X,re){return J.setMonth(re,1),J.setHours(0,0,0,0),J}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]}function setWeek(te,J,X){const re=toDate(te),ne=getWeek(re,X)-J;return re.setDate(re.getDate()-ne*7),re}class LocalWeekParser extends Parser{priority=100;parse(J,X,re){switch(X){case"w":return parseNumericPattern(numericPatterns.week,J);case"wo":return re.ordinalNumber(J,{unit:"week"});default:return parseNDigits(X.length,J)}}validate(J,X){return X>=1&&X<=53}set(J,X,re,ne){return startOfWeek(setWeek(J,re,ne),ne)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]}function setISOWeek(te,J){const X=toDate(te),re=getISOWeek(X)-J;return X.setDate(X.getDate()-re*7),X}class ISOWeekParser extends Parser{priority=100;parse(J,X,re){switch(X){case"I":return parseNumericPattern(numericPatterns.week,J);case"Io":return re.ordinalNumber(J,{unit:"week"});default:return parseNDigits(X.length,J)}}validate(J,X){return X>=1&&X<=53}set(J,X,re){return startOfISOWeek(setISOWeek(J,re))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]}const DAYS_IN_MONTH=[31,28,31,30,31,30,31,31,30,31,30,31],DAYS_IN_MONTH_LEAP_YEAR=[31,29,31,30,31,30,31,31,30,31,30,31];class DateParser extends Parser{priority=90;subPriority=1;parse(J,X,re){switch(X){case"d":return parseNumericPattern(numericPatterns.date,J);case"do":return re.ordinalNumber(J,{unit:"date"});default:return parseNDigits(X.length,J)}}validate(J,X){const re=J.getFullYear(),ne=isLeapYearIndex(re),oe=J.getMonth();return ne?X>=1&&X<=DAYS_IN_MONTH_LEAP_YEAR[oe]:X>=1&&X<=DAYS_IN_MONTH[oe]}set(J,X,re){return J.setDate(re),J.setHours(0,0,0,0),J}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]}class DayOfYearParser extends Parser{priority=90;subpriority=1;parse(J,X,re){switch(X){case"D":case"DD":return parseNumericPattern(numericPatterns.dayOfYear,J);case"Do":return re.ordinalNumber(J,{unit:"date"});default:return parseNDigits(X.length,J)}}validate(J,X){const re=J.getFullYear();return isLeapYearIndex(re)?X>=1&&X<=366:X>=1&&X<=365}set(J,X,re){return J.setMonth(0,re),J.setHours(0,0,0,0),J}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]}function setDay(te,J,X){const re=getDefaultOptions$1(),ne=X?.weekStartsOn??X?.locale?.options?.weekStartsOn??re.weekStartsOn??re.locale?.options?.weekStartsOn??0,oe=toDate(te),de=oe.getDay(),he=(J%7+7)%7,ue=7-ne,pe=J<0||J>6?J-(de+ue)%7:(he+ue)%7-(de+ue)%7;return addDays(oe,pe)}class DayParser extends Parser{priority=90;parse(J,X,re){switch(X){case"E":case"EE":case"EEE":return re.day(J,{width:"abbreviated",context:"formatting"})||re.day(J,{width:"short",context:"formatting"})||re.day(J,{width:"narrow",context:"formatting"});case"EEEEE":return re.day(J,{width:"narrow",context:"formatting"});case"EEEEEE":return re.day(J,{width:"short",context:"formatting"})||re.day(J,{width:"narrow",context:"formatting"});case"EEEE":default:return re.day(J,{width:"wide",context:"formatting"})||re.day(J,{width:"abbreviated",context:"formatting"})||re.day(J,{width:"short",context:"formatting"})||re.day(J,{width:"narrow",context:"formatting"})}}validate(J,X){return X>=0&&X<=6}set(J,X,re,ne){return J=setDay(J,re,ne),J.setHours(0,0,0,0),J}incompatibleTokens=["D","i","e","c","t","T"]}class LocalDayParser extends Parser{priority=90;parse(J,X,re,ne){const oe=de=>{const ce=Math.floor((de-1)/7)*7;return(de+ne.weekStartsOn+6)%7+ce};switch(X){case"e":case"ee":return mapValue(parseNDigits(X.length,J),oe);case"eo":return mapValue(re.ordinalNumber(J,{unit:"day"}),oe);case"eee":return re.day(J,{width:"abbreviated",context:"formatting"})||re.day(J,{width:"short",context:"formatting"})||re.day(J,{width:"narrow",context:"formatting"});case"eeeee":return re.day(J,{width:"narrow",context:"formatting"});case"eeeeee":return re.day(J,{width:"short",context:"formatting"})||re.day(J,{width:"narrow",context:"formatting"});case"eeee":default:return re.day(J,{width:"wide",context:"formatting"})||re.day(J,{width:"abbreviated",context:"formatting"})||re.day(J,{width:"short",context:"formatting"})||re.day(J,{width:"narrow",context:"formatting"})}}validate(J,X){return X>=0&&X<=6}set(J,X,re,ne){return J=setDay(J,re,ne),J.setHours(0,0,0,0),J}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]}class StandAloneLocalDayParser extends Parser{priority=90;parse(J,X,re,ne){const oe=de=>{const ce=Math.floor((de-1)/7)*7;return(de+ne.weekStartsOn+6)%7+ce};switch(X){case"c":case"cc":return mapValue(parseNDigits(X.length,J),oe);case"co":return mapValue(re.ordinalNumber(J,{unit:"day"}),oe);case"ccc":return re.day(J,{width:"abbreviated",context:"standalone"})||re.day(J,{width:"short",context:"standalone"})||re.day(J,{width:"narrow",context:"standalone"});case"ccccc":return re.day(J,{width:"narrow",context:"standalone"});case"cccccc":return re.day(J,{width:"short",context:"standalone"})||re.day(J,{width:"narrow",context:"standalone"});case"cccc":default:return re.day(J,{width:"wide",context:"standalone"})||re.day(J,{width:"abbreviated",context:"standalone"})||re.day(J,{width:"short",context:"standalone"})||re.day(J,{width:"narrow",context:"standalone"})}}validate(J,X){return X>=0&&X<=6}set(J,X,re,ne){return J=setDay(J,re,ne),J.setHours(0,0,0,0),J}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]}function setISODay(te,J){const X=toDate(te),re=getISODay(X),ne=J-re;return addDays(X,ne)}class ISODayParser extends Parser{priority=90;parse(J,X,re){const ne=oe=>oe===0?7:oe;switch(X){case"i":case"ii":return parseNDigits(X.length,J);case"io":return re.ordinalNumber(J,{unit:"day"});case"iii":return mapValue(re.day(J,{width:"abbreviated",context:"formatting"})||re.day(J,{width:"short",context:"formatting"})||re.day(J,{width:"narrow",context:"formatting"}),ne);case"iiiii":return mapValue(re.day(J,{width:"narrow",context:"formatting"}),ne);case"iiiiii":return mapValue(re.day(J,{width:"short",context:"formatting"})||re.day(J,{width:"narrow",context:"formatting"}),ne);case"iiii":default:return mapValue(re.day(J,{width:"wide",context:"formatting"})||re.day(J,{width:"abbreviated",context:"formatting"})||re.day(J,{width:"short",context:"formatting"})||re.day(J,{width:"narrow",context:"formatting"}),ne)}}validate(J,X){return X>=1&&X<=7}set(J,X,re){return J=setISODay(J,re),J.setHours(0,0,0,0),J}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]}class AMPMParser extends Parser{priority=80;parse(J,X,re){switch(X){case"a":case"aa":case"aaa":return re.dayPeriod(J,{width:"abbreviated",context:"formatting"})||re.dayPeriod(J,{width:"narrow",context:"formatting"});case"aaaaa":return re.dayPeriod(J,{width:"narrow",context:"formatting"});case"aaaa":default:return re.dayPeriod(J,{width:"wide",context:"formatting"})||re.dayPeriod(J,{width:"abbreviated",context:"formatting"})||re.dayPeriod(J,{width:"narrow",context:"formatting"})}}set(J,X,re){return J.setHours(dayPeriodEnumToHours(re),0,0,0),J}incompatibleTokens=["b","B","H","k","t","T"]}class AMPMMidnightParser extends Parser{priority=80;parse(J,X,re){switch(X){case"b":case"bb":case"bbb":return re.dayPeriod(J,{width:"abbreviated",context:"formatting"})||re.dayPeriod(J,{width:"narrow",context:"formatting"});case"bbbbb":return re.dayPeriod(J,{width:"narrow",context:"formatting"});case"bbbb":default:return re.dayPeriod(J,{width:"wide",context:"formatting"})||re.dayPeriod(J,{width:"abbreviated",context:"formatting"})||re.dayPeriod(J,{width:"narrow",context:"formatting"})}}set(J,X,re){return J.setHours(dayPeriodEnumToHours(re),0,0,0),J}incompatibleTokens=["a","B","H","k","t","T"]}class DayPeriodParser extends Parser{priority=80;parse(J,X,re){switch(X){case"B":case"BB":case"BBB":return re.dayPeriod(J,{width:"abbreviated",context:"formatting"})||re.dayPeriod(J,{width:"narrow",context:"formatting"});case"BBBBB":return re.dayPeriod(J,{width:"narrow",context:"formatting"});case"BBBB":default:return re.dayPeriod(J,{width:"wide",context:"formatting"})||re.dayPeriod(J,{width:"abbreviated",context:"formatting"})||re.dayPeriod(J,{width:"narrow",context:"formatting"})}}set(J,X,re){return J.setHours(dayPeriodEnumToHours(re),0,0,0),J}incompatibleTokens=["a","b","t","T"]}class Hour1to12Parser extends Parser{priority=70;parse(J,X,re){switch(X){case"h":return parseNumericPattern(numericPatterns.hour12h,J);case"ho":return re.ordinalNumber(J,{unit:"hour"});default:return parseNDigits(X.length,J)}}validate(J,X){return X>=1&&X<=12}set(J,X,re){const ne=J.getHours()>=12;return ne&&re<12?J.setHours(re+12,0,0,0):!ne&&re===12?J.setHours(0,0,0,0):J.setHours(re,0,0,0),J}incompatibleTokens=["H","K","k","t","T"]}class Hour0to23Parser extends Parser{priority=70;parse(J,X,re){switch(X){case"H":return parseNumericPattern(numericPatterns.hour23h,J);case"Ho":return re.ordinalNumber(J,{unit:"hour"});default:return parseNDigits(X.length,J)}}validate(J,X){return X>=0&&X<=23}set(J,X,re){return J.setHours(re,0,0,0),J}incompatibleTokens=["a","b","h","K","k","t","T"]}class Hour0To11Parser extends Parser{priority=70;parse(J,X,re){switch(X){case"K":return parseNumericPattern(numericPatterns.hour11h,J);case"Ko":return re.ordinalNumber(J,{unit:"hour"});default:return parseNDigits(X.length,J)}}validate(J,X){return X>=0&&X<=11}set(J,X,re){return J.getHours()>=12&&re<12?J.setHours(re+12,0,0,0):J.setHours(re,0,0,0),J}incompatibleTokens=["h","H","k","t","T"]}class Hour1To24Parser extends Parser{priority=70;parse(J,X,re){switch(X){case"k":return parseNumericPattern(numericPatterns.hour24h,J);case"ko":return re.ordinalNumber(J,{unit:"hour"});default:return parseNDigits(X.length,J)}}validate(J,X){return X>=1&&X<=24}set(J,X,re){const ne=re<=24?re%24:re;return J.setHours(ne,0,0,0),J}incompatibleTokens=["a","b","h","H","K","t","T"]}class MinuteParser extends Parser{priority=60;parse(J,X,re){switch(X){case"m":return parseNumericPattern(numericPatterns.minute,J);case"mo":return re.ordinalNumber(J,{unit:"minute"});default:return parseNDigits(X.length,J)}}validate(J,X){return X>=0&&X<=59}set(J,X,re){return J.setMinutes(re,0,0),J}incompatibleTokens=["t","T"]}class SecondParser extends Parser{priority=50;parse(J,X,re){switch(X){case"s":return parseNumericPattern(numericPatterns.second,J);case"so":return re.ordinalNumber(J,{unit:"second"});default:return parseNDigits(X.length,J)}}validate(J,X){return X>=0&&X<=59}set(J,X,re){return J.setSeconds(re,0),J}incompatibleTokens=["t","T"]}class FractionOfSecondParser extends Parser{priority=30;parse(J,X){const re=ne=>Math.trunc(ne*Math.pow(10,-X.length+3));return mapValue(parseNDigits(X.length,J),re)}set(J,X,re){return J.setMilliseconds(re),J}incompatibleTokens=["t","T"]}class ISOTimezoneWithZParser extends Parser{priority=10;parse(J,X){switch(X){case"X":return parseTimezonePattern(timezonePatterns.basicOptionalMinutes,J);case"XX":return parseTimezonePattern(timezonePatterns.basic,J);case"XXXX":return parseTimezonePattern(timezonePatterns.basicOptionalSeconds,J);case"XXXXX":return parseTimezonePattern(timezonePatterns.extendedOptionalSeconds,J);case"XXX":default:return parseTimezonePattern(timezonePatterns.extended,J)}}set(J,X,re){return X.timestampIsSet?J:constructFrom(J,J.getTime()-getTimezoneOffsetInMilliseconds(J)-re)}incompatibleTokens=["t","T","x"]}class ISOTimezoneParser extends Parser{priority=10;parse(J,X){switch(X){case"x":return parseTimezonePattern(timezonePatterns.basicOptionalMinutes,J);case"xx":return parseTimezonePattern(timezonePatterns.basic,J);case"xxxx":return parseTimezonePattern(timezonePatterns.basicOptionalSeconds,J);case"xxxxx":return parseTimezonePattern(timezonePatterns.extendedOptionalSeconds,J);case"xxx":default:return parseTimezonePattern(timezonePatterns.extended,J)}}set(J,X,re){return X.timestampIsSet?J:constructFrom(J,J.getTime()-getTimezoneOffsetInMilliseconds(J)-re)}incompatibleTokens=["t","T","X"]}class TimestampSecondsParser extends Parser{priority=40;parse(J){return parseAnyDigitsSigned(J)}set(J,X,re){return[constructFrom(J,re*1e3),{timestampIsSet:!0}]}incompatibleTokens="*"}class TimestampMillisecondsParser extends Parser{priority=20;parse(J){return parseAnyDigitsSigned(J)}set(J,X,re){return[constructFrom(J,re),{timestampIsSet:!0}]}incompatibleTokens="*"}const parsers={G:new EraParser,y:new YearParser,Y:new LocalWeekYearParser,R:new ISOWeekYearParser,u:new ExtendedYearParser,Q:new QuarterParser,q:new StandAloneQuarterParser,M:new MonthParser,L:new StandAloneMonthParser,w:new LocalWeekParser,I:new ISOWeekParser,d:new DateParser,D:new DayOfYearParser,E:new DayParser,e:new LocalDayParser,c:new StandAloneLocalDayParser,i:new ISODayParser,a:new AMPMParser,b:new AMPMMidnightParser,B:new DayPeriodParser,h:new Hour1to12Parser,H:new Hour0to23Parser,K:new Hour0To11Parser,k:new Hour1To24Parser,m:new MinuteParser,s:new SecondParser,S:new FractionOfSecondParser,X:new ISOTimezoneWithZParser,x:new ISOTimezoneParser,t:new TimestampSecondsParser,T:new TimestampMillisecondsParser},formattingTokensRegExp=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,longFormattingTokensRegExp=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,escapedStringRegExp=/^'([^]*?)'?$/,doubleQuoteRegExp=/''/g,notWhitespaceRegExp=/\S/,unescapedLatinCharacterRegExp=/[a-zA-Z]/;function parse(te,J,X,re){const ne=getDefaultOptions(),oe=ne.locale??enUS,de=ne.firstWeekContainsDate??ne.locale?.options?.firstWeekContainsDate??1,ce=ne.weekStartsOn??ne.locale?.options?.weekStartsOn??0,he={firstWeekContainsDate:de,weekStartsOn:ce,locale:oe},ue=[new DateToSystemTimezoneSetter],pe=J.match(longFormattingTokensRegExp).map(me=>{const _e=me[0];if(_e in longFormatters){const ye=longFormatters[_e];return ye(me,oe.formatLong)}return me}).join("").match(formattingTokensRegExp),fe=[];for(let me of pe){isProtectedWeekYearToken(me)&&warnOrThrowProtectedError(me,J,te),isProtectedDayOfYearToken(me)&&warnOrThrowProtectedError(me,J,te);const _e=me[0],ye=parsers[_e];if(ye){const{incompatibleTokens:Ce}=ye;if(Array.isArray(Ce)){const we=fe.find(Ae=>Ce.includes(Ae.token)||Ae.token===_e);if(we)throw new RangeError(`The format string mustn't contain \`${we.fullToken}\` and \`${me}\` at the same time`)}else if(ye.incompatibleTokens==="*"&&fe.length>0)throw new RangeError(`The format string mustn't contain \`${me}\` and any other token at the same time`);fe.push({token:_e,fullToken:me});const Se=ye.run(te,me,oe.match,he);if(!Se)return constructFrom(X,NaN);ue.push(Se.setter),te=Se.rest}else{if(_e.match(unescapedLatinCharacterRegExp))throw new RangeError("Format string contains an unescaped latin alphabet character `"+_e+"`");if(me==="''"?me="'":_e==="'"&&(me=cleanEscapedString(me)),te.indexOf(me)===0)te=te.slice(me.length);else return constructFrom(X,NaN)}}if(te.length>0&¬WhitespaceRegExp.test(te))return constructFrom(X,NaN);const be=ue.map(me=>me.priority).sort((me,_e)=>_e-me).filter((me,_e,ye)=>ye.indexOf(me)===_e).map(me=>ue.filter(_e=>_e.priority===me).sort((_e,ye)=>ye.subPriority-_e.subPriority)).map(me=>me[0]);let ge=toDate(X);if(isNaN(ge.getTime()))return constructFrom(X,NaN);const ve={};for(const me of be){if(!me.validate(ge,he))return constructFrom(X,NaN);const _e=me.set(ge,ve,he);Array.isArray(_e)?(ge=_e[0],Object.assign(ve,_e[1])):ge=_e}return constructFrom(X,ge)}function cleanEscapedString(te){return te.match(escapedStringRegExp)[1].replace(doubleQuoteRegExp,"'")}const notFound="data:image/svg+xml,%3csvg%20width='215'%20height='150'%20viewBox='0%200%20215%20150'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20opacity='0.9'%20d='M135.132%2057.43C96.9221%2047.658%2083.3815%20-29.7048%2026.9734%2012.5083C-13.0511%2042.4595%2011.4691%20115.499%2061.6878%20107.019C92.0822%20101.867%2087.3917%20101.341%20113.129%20115.244C139.231%20129.308%20167.972%20136.397%20195.855%20111.436C210.28%2098.5179%20215.939%2067.0352%20201.939%2050.7417C184.388%2030.3592%20158.485%2063.4098%20135.132%2057.43Z'%20fill='%23EFF7FF'/%3e%3cellipse%20cx='120.5'%20cy='143.5'%20rx='52.5'%20ry='3.5'%20fill='%23F5F5F5'/%3e%3cpath%20d='M121.387%2080.2184C121.995%2079.5948%20122.563%2078.953%20123.09%2078.2959L134.396%2089.3383C135.09%2090.0177%20134.851%2091.389%20133.861%2092.4024C132.872%2093.4159%20131.505%2093.6888%20130.811%2093.0094L119.505%2081.967C120.148%2081.424%20120.777%2080.8407%20121.385%2080.2171L121.387%2080.2184Z'%20fill='%231D1D1D'/%3e%3cpath%20opacity='0.6'%20d='M121.127%2079.9896C132.157%2068.6986%20131.888%2050.5485%20120.527%2039.4502C109.166%2028.3519%2091.0149%2028.5081%2079.9849%2039.799C68.955%2051.09%2069.2233%2069.2401%2080.5843%2080.3385C91.9453%2091.4368%20110.097%2091.2806%20121.127%2079.9896Z'%20fill='%238FC2F5'/%3e%3cpath%20d='M78.0382%2083.0622C90.8729%2095.6382%20111.378%2095.4578%20123.835%2082.6609C136.293%2069.8625%20135.986%2049.2932%20123.15%2036.7173C110.316%2024.1413%2089.8107%2024.3217%2077.3538%2037.1186C64.8956%2049.9169%2065.2022%2070.4862%2078.0382%2083.0622ZM80.642%2080.387C69.289%2069.264%2069.0172%2051.0692%2080.037%2039.749C91.0569%2028.4288%20109.194%2028.2694%20120.547%2039.3938C131.9%2050.5182%20132.171%2068.713%20121.152%2080.0332C110.132%2091.3534%2091.9949%2091.5128%2080.642%2080.3884V80.387Z'%20fill='%237BACFC'/%3e%3cpath%20d='M169.953%20128.522L171.714%20126.696C173.474%20124.871%20173.421%20121.964%20171.595%20120.205L135.013%2084.9265C133.187%2083.1661%20130.281%2083.2205%20128.522%2085.0451L126.761%2086.8711C125.001%2088.6957%20125.055%2091.6028%20126.88%2093.3619L163.462%20128.64C165.287%20130.401%20168.194%20130.346%20169.953%20128.522Z'%20fill='%23656565'/%3e%3cpath%20opacity='0.35'%20d='M88.8399%2071.2315C96.506%2079.2245%20101.258%2078.1642%20100.757%2082.4547C100.256%2086.7452%2091.398%2085.7448%2082.7698%2076.0396C74.1415%2066.3344%2075.0893%2054.9166%2079.8491%2055.2485C84.6089%2055.5803%2080.129%2062.1492%2088.8399%2071.2315Z'%20fill='white'/%3e%3c/svg%3e";/**
|
|
334
336
|
* @license
|
|
335
337
|
* Copyright 2018 Google LLC
|
|
336
338
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
337
|
-
*/const to=te=>te??D$2;function shouldShowRole(te){return!te.professional?.speciality?.description}const hasItemDivider=(te,J)=>{const X=J.findIndex(re=>re.id===te.id);return X===-1?!1:X===J.length-1?!0:!te.diagnostics?.length},mergeHistoryItemsAndSubgroups=te=>{const J=te?.items.map(re=>({type:"item",date:new Date(re.date),item:re})),X=te?.subGroups.map(re=>({type:"subGroup",date:re?.items.length?new Date(re.items[0].date):new Date(0),subGroup:re}));return[...J,...X].sort((re,ne)=>ne.date.getTime()-re.date.getTime())},styles$
|
|
339
|
+
*/const to=te=>te??D$2;function shouldShowRole(te){return!te.professional?.speciality?.description}const hasItemDivider=(te,J)=>{const X=J.findIndex(re=>re.id===te.id);return X===-1?!1:X===J.length-1?!0:!te.diagnostics?.length},mergeHistoryItemsAndSubgroups=te=>{const J=te?.items.map(re=>({type:"item",date:new Date(re.date),item:re})),X=te?.subGroups.map(re=>({type:"subGroup",date:re?.items.length?new Date(re.items[0].date):new Date(0),subGroup:re}));return[...J,...X].sort((re,ne)=>ne.date.getTime()-re.date.getTime())},styles$k=".grouping-busy-container{display:flex;flex-direction:row;align-items:center;gap:24px;justify-content:center;padding-top:16px}",template$n=te=>ke$1`
|
|
338
340
|
<div class="grouping-busy-container">
|
|
339
341
|
<dss-spinner size="sm"></dss-spinner>
|
|
340
342
|
<div>${translate("isGrouping")}</div>
|
|
341
343
|
</div>
|
|
342
|
-
`;var __getOwnPropDesc$
|
|
343
|
-
${r$G(styles$
|
|
344
|
-
`,ActivityHistoryIsGroupingBusy=__decorateClass$
|
|
344
|
+
`;var __getOwnPropDesc$i=Object.getOwnPropertyDescriptor,__decorateClass$u=(te,J,X,re)=>{for(var ne=re>1?void 0:re?__getOwnPropDesc$i(J,X):J,oe=te.length-1,de;oe>=0;oe--)(de=te[oe])&&(ne=de(ne)||ne);return ne};let ActivityHistoryIsGroupingBusy=class extends h$n{render(){return template$n()}};ActivityHistoryIsGroupingBusy.styles=i$w`
|
|
345
|
+
${r$G(styles$k)}
|
|
346
|
+
`,ActivityHistoryIsGroupingBusy=__decorateClass$u([t$l("activity-history-is-grouping-busy")],ActivityHistoryIsGroupingBusy);const template$m=te=>ke$1`
|
|
345
347
|
<div class="container">
|
|
346
348
|
<activity-history-full-data-error></activity-history-full-data-error>
|
|
347
349
|
<activity-history-partial-data-error></activity-history-partial-data-error>
|
|
@@ -418,26 +420,26 @@ ${te.searchString?.length>1?ke$1`
|
|
|
418
420
|
* @license
|
|
419
421
|
* Copyright 2017 Google LLC
|
|
420
422
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
421
|
-
*/class le extends i$t{constructor(J){if(super(J),this.it=D$2,J.type!==t$i.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(J){if(J===D$2||J==null)return this._t=void 0,this.it=J;if(J===R$4)return J;if(typeof J!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(J===this.it)return this._t;this.it=J;const X=[J];return X.raw=X,this._t={_$litType$:this.constructor.resultType,strings:X,values:[]}}}le.directiveName="unsafeHTML",le.resultType=1;const ae=e$L(le),isAnyCollectionBusySelector=te=>te.activityHistoryCollections.busy.length>0,isSomeCollectionLoadedAndOtherLoading=te=>Object.values(te.activityHistoryCollections.collections)&&isAnyCollectionBusySelector(te),isCollectionInitialState=te=>!Object.values(te.activityHistoryCollections.collections)?.length&&!isAnyCollectionBusySelector(te);class VirtualScroller{constructor(J){this._itemHeights=new Map,this._itemOffsets=new Map,this._totalHeight=0,this._viewportHeight=0,this._scrollTop=0,this._visibleRange={start:0,end:0},this._isScrolling=!1,this._options=J,this._initializeHeights()}_initializeHeights(){const{items:J,estimatedItemHeight:X}=this._options;let re=0;this._itemHeights.clear(),this._itemOffsets.clear();for(let ne=0;ne<J.length;ne++)this._itemOffsets.set(ne,re),this._itemHeights.set(ne,X),re+=X;this._totalHeight=re}setup(J,X,re){this._viewport=J,this._content=X,this._viewportHeight=J.clientHeight,X.style.height=this._totalHeight+"px",this._updateVisibleRange();const ne=()=>{if(!this._viewport)return;this._scrollTop=this._viewport.scrollTop,this._isScrolling=!0,this._scrollTimeout&&clearTimeout(this._scrollTimeout),this._scrollTimeout=window.setTimeout(()=>{this._isScrolling=!1,setTimeout(()=>{this._measureActualHeights(),re(this.getState())},50)},150);const oe={...this._visibleRange};this._updateVisibleRange(),(Math.abs(oe.start-this._visibleRange.start)>0||Math.abs(oe.end-this._visibleRange.end)>0)&&re(this.getState())};return J.addEventListener("scroll",ne),this._resizeObserver=new ResizeObserver(()=>{this._viewportHeight=J.clientHeight,this._updateVisibleRange(),re(this.getState())}),this._resizeObserver.observe(J),()=>{J.removeEventListener("scroll",ne),this._resizeObserver?.disconnect(),this._scrollTimeout&&clearTimeout(this._scrollTimeout)}}updateItems(J){this._options.items=J,this._initializeHeights(),this._content&&(this._content.style.height=this._totalHeight+"px"),this._updateVisibleRange()}_measureActualHeights(){if(!this._content||this._isScrolling)return;const J=this._content.querySelectorAll(".visit");if(J.length===0)return;let X=!1;if(J.forEach((re,ne)=>{const oe=re.getBoundingClientRect().height,de=this._visibleRange.start+ne,ce=this._itemHeights.get(de)||0;Math.abs(oe-ce)>5&&(X=!0,this._itemHeights.set(de,oe))}),X){let re=0;for(let ne=0;ne<this._options.items.length;ne++){this._itemOffsets.set(ne,re);const oe=this._itemHeights.get(ne)||this._options.estimatedItemHeight;re+=oe}this._totalHeight=re,this._content&&(this._content.style.height=this._totalHeight+"px")}}_updateVisibleRange(){if(!this._options.items.length||this._viewportHeight===0)return;const J=Math.floor(this._viewportHeight*(this._options.bufferSize/100)),X=Math.max(0,this._scrollTop-J),re=this._scrollTop+this._viewportHeight+J;let ne=0,oe=this._options.items.length-1;for(let de=0;de<this._options.items.length;de++)if((this._itemOffsets.get(de)||0)>=X){ne=Math.max(0,de-1);break}for(let de=ne;de<this._options.items.length;de++)if((this._itemOffsets.get(de)||0)>re){oe=de;break}this._visibleRange={start:ne,end:oe}}scrollToIndex(J,X="smooth"){if(!this._viewport)return;const re=this._itemOffsets.get(J)||0;this._viewport.scrollTo({top:re,behavior:X})}getState(){return{viewportHeight:this._viewportHeight,scrollTop:this._scrollTop,totalHeight:this._totalHeight,visibleRange:this._visibleRange,containerOffset:this._itemOffsets.get(this._visibleRange.start)||0,visibleItems:this._options.items.slice(this._visibleRange.start,this._visibleRange.end+1)}}findClosestIndex(J,X,re){let ne=-1,oe=Number.POSITIVE_INFINITY;return this._options.items.forEach((de,ce)=>{const he=J(de),ue=Math.abs(re(he,X));ue<oe&&(oe=ue,ne=ce)}),ne}}var __defProp$
|
|
423
|
+
*/class le extends i$t{constructor(J){if(super(J),this.it=D$2,J.type!==t$i.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(J){if(J===D$2||J==null)return this._t=void 0,this.it=J;if(J===R$4)return J;if(typeof J!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(J===this.it)return this._t;this.it=J;const X=[J];return X.raw=X,this._t={_$litType$:this.constructor.resultType,strings:X,values:[]}}}le.directiveName="unsafeHTML",le.resultType=1;const ae=e$L(le),isAnyCollectionBusySelector=te=>te.activityHistoryCollections.busy.length>0,isSomeCollectionLoadedAndOtherLoading=te=>Object.values(te.activityHistoryCollections.collections)&&isAnyCollectionBusySelector(te),isCollectionInitialState=te=>!Object.values(te.activityHistoryCollections.collections)?.length&&!isAnyCollectionBusySelector(te);class VirtualScroller{constructor(J){this._itemHeights=new Map,this._itemOffsets=new Map,this._totalHeight=0,this._viewportHeight=0,this._scrollTop=0,this._visibleRange={start:0,end:0},this._isScrolling=!1,this._options=J,this._initializeHeights()}_initializeHeights(){const{items:J,estimatedItemHeight:X}=this._options;let re=0;this._itemHeights.clear(),this._itemOffsets.clear();for(let ne=0;ne<J.length;ne++)this._itemOffsets.set(ne,re),this._itemHeights.set(ne,X),re+=X;this._totalHeight=re}setup(J,X,re){this._viewport=J,this._content=X,this._viewportHeight=J.clientHeight,X.style.height=this._totalHeight+"px",this._updateVisibleRange();const ne=()=>{if(!this._viewport)return;this._scrollTop=this._viewport.scrollTop,this._isScrolling=!0,this._scrollTimeout&&clearTimeout(this._scrollTimeout),this._scrollTimeout=window.setTimeout(()=>{this._isScrolling=!1,setTimeout(()=>{this._measureActualHeights(),re(this.getState())},50)},150);const oe={...this._visibleRange};this._updateVisibleRange(),(Math.abs(oe.start-this._visibleRange.start)>0||Math.abs(oe.end-this._visibleRange.end)>0)&&re(this.getState())};return J.addEventListener("scroll",ne),this._resizeObserver=new ResizeObserver(()=>{this._viewportHeight=J.clientHeight,this._updateVisibleRange(),re(this.getState())}),this._resizeObserver.observe(J),()=>{J.removeEventListener("scroll",ne),this._resizeObserver?.disconnect(),this._scrollTimeout&&clearTimeout(this._scrollTimeout)}}updateItems(J){this._options.items=J,this._initializeHeights(),this._content&&(this._content.style.height=this._totalHeight+"px"),this._updateVisibleRange()}_measureActualHeights(){if(!this._content||this._isScrolling)return;const J=this._content.querySelectorAll(".visit");if(J.length===0)return;let X=!1;if(J.forEach((re,ne)=>{const oe=re.getBoundingClientRect().height,de=this._visibleRange.start+ne,ce=this._itemHeights.get(de)||0;Math.abs(oe-ce)>5&&(X=!0,this._itemHeights.set(de,oe))}),X){let re=0;for(let ne=0;ne<this._options.items.length;ne++){this._itemOffsets.set(ne,re);const oe=this._itemHeights.get(ne)||this._options.estimatedItemHeight;re+=oe}this._totalHeight=re,this._content&&(this._content.style.height=this._totalHeight+"px")}}_updateVisibleRange(){if(!this._options.items.length||this._viewportHeight===0)return;const J=Math.floor(this._viewportHeight*(this._options.bufferSize/100)),X=Math.max(0,this._scrollTop-J),re=this._scrollTop+this._viewportHeight+J;let ne=0,oe=this._options.items.length-1;for(let de=0;de<this._options.items.length;de++)if((this._itemOffsets.get(de)||0)>=X){ne=Math.max(0,de-1);break}for(let de=ne;de<this._options.items.length;de++)if((this._itemOffsets.get(de)||0)>re){oe=de;break}this._visibleRange={start:ne,end:oe}}scrollToIndex(J,X="smooth"){if(!this._viewport)return;const re=this._itemOffsets.get(J)||0;this._viewport.scrollTo({top:re,behavior:X})}getState(){return{viewportHeight:this._viewportHeight,scrollTop:this._scrollTop,totalHeight:this._totalHeight,visibleRange:this._visibleRange,containerOffset:this._itemOffsets.get(this._visibleRange.start)||0,visibleItems:this._options.items.slice(this._visibleRange.start,this._visibleRange.end+1)}}findClosestIndex(J,X,re){let ne=-1,oe=Number.POSITIVE_INFINITY;return this._options.items.forEach((de,ce)=>{const he=J(de),ue=Math.abs(re(he,X));ue<oe&&(oe=ue,ne=ce)}),ne}}var __defProp$o=Object.defineProperty,__getOwnPropDesc$h=Object.getOwnPropertyDescriptor,__decorateClass$t=(te,J,X,re)=>{for(var ne=re>1?void 0:re?__getOwnPropDesc$h(J,X):J,oe=te.length-1,de;oe>=0;oe--)(de=te[oe])&&(ne=(re?de(J,X,ne):de(ne))||ne);return re&&ne&&__defProp$o(J,X,ne),ne};const createZIndexStyles=te=>{let J="";for(let X=0;X<=te;X++)J+=`.zIndex${X} { z-index: ${X} !important; }
|
|
422
424
|
`;return J};let ActivityHistoryTimeline=class extends h$n{constructor(){super(...arguments),this.renderGroupsControlTimeExpired=!1,this._virtualScrollerState={viewportHeight:0,scrollTop:0,totalHeight:0,visibleRange:{start:0,end:0},containerOffset:0,visibleItems:[]},this._onScroll=()=>{}}render(){const te=this.historyGroups?.length??0,J=createZIndexStyles(te);return ke$1`
|
|
423
425
|
<style>
|
|
424
426
|
${r$G(J)}
|
|
425
427
|
</style>
|
|
426
|
-
${template$
|
|
428
|
+
${template$m(this)}
|
|
427
429
|
`}connectedCallback(){super.connectedCallback(),setTimeout(()=>{this.renderGroupsControlTimeExpired=!0},8e3)}disconnectedCallback(){super.disconnectedCallback(),this._cleanupVirtualScroller?.()}async updated(te){te.has("historyGroups")&&this.historyGroups?.length&&(await this.prepareComponents(this.historyGroups),this._updateVirtualScroller()),this._viewport&&this._content&&!this._virtualScroller&&setTimeout(()=>this._setupVirtualScroller(),0)}async prepareComponents(te){for(const J of te){J.items=await Promise.all(J.items.map(async X=>({...X,component:await X.componentFactory({item:X})})));for(const X of J.subGroups)X.items=await Promise.all(X.items.map(async re=>({...re,component:await re.componentFactory({item:re})})))}}highlightMatch(te,J){if(!this.searchString||this.searchString.length<2)return te;const X=new RegExp(`(${J})`,"gi");return te.replace(X,'<span class="highlight">$1</span>')}highlighted(te){return te?ae(this.highlightMatch(te,this.searchString)):null}_scrollIntoDate(te){if(!this._virtualScroller)return;const J=this._virtualScroller.findClosestIndex(X=>{const re=X.items?.[0]?.date||X.subGroups?.[0]?.items?.[0]?.date;return re?new Date(re).getTime():0},te,(X,re)=>X-re);J!==-1&&this._virtualScroller.scrollToIndex(J)}_setupVirtualScroller(){!this._viewport||!this._content||this._virtualScroller||(this._virtualScroller=new VirtualScroller({items:this.historyGroups||[],estimatedItemHeight:200,bufferSize:50}),this._cleanupVirtualScroller=this._virtualScroller.setup(this._viewport,this._content,te=>{this._virtualScrollerState=te,this.requestUpdate()}),this._virtualScrollerState=this._virtualScroller.getState())}_updateVirtualScroller(){!this._virtualScroller||!this.historyGroups?.length||(this._virtualScroller.updateItems(this.historyGroups),this._virtualScrollerState=this._virtualScroller.getState())}get _visibleItems(){return this._virtualScrollerState.visibleItems}get _containerOffset(){return this._virtualScrollerState.containerOffset}get _visibleRange(){return this._virtualScrollerState.visibleRange}};ActivityHistoryTimeline.styles=i$w`
|
|
428
|
-
${r$G(styles$
|
|
429
|
-
`,__decorateClass$
|
|
430
|
+
${r$G(styles$l)}
|
|
431
|
+
`,__decorateClass$t([connectedProperty(activityHistoryGroupedItems)],ActivityHistoryTimeline.prototype,"historyGroups",2),__decorateClass$t([connectedProperty(isCollectionInitialState)],ActivityHistoryTimeline.prototype,"isCollectionInitialState",2),__decorateClass$t([connectedProperty(isSomeCollectionLoadedAndOtherLoading)],ActivityHistoryTimeline.prototype,"isSomeCollectionLoadedAndOtherLoading",2),__decorateClass$t([connectedProperty(activityHistorySearchStringSelector)],ActivityHistoryTimeline.prototype,"searchString",2),__decorateClass$t([e$O(".virtual-container")],ActivityHistoryTimeline.prototype,"_virtualContainer",2),__decorateClass$t([e$O(".virtual-viewport")],ActivityHistoryTimeline.prototype,"_viewport",2),__decorateClass$t([e$O(".virtual-content")],ActivityHistoryTimeline.prototype,"_content",2),__decorateClass$t([r$D()],ActivityHistoryTimeline.prototype,"renderGroupsControlTimeExpired",2),__decorateClass$t([r$D()],ActivityHistoryTimeline.prototype,"_virtualScrollerState",2),ActivityHistoryTimeline=__decorateClass$t([t$l("activity-history-timeline")],ActivityHistoryTimeline);/**
|
|
430
432
|
* @license
|
|
431
433
|
* Copyright 2021 Google LLC
|
|
432
434
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
433
|
-
*/function nn(te,J,X){return te?J(te):X?.(te)}const template$
|
|
435
|
+
*/function nn(te,J,X){return te?J(te):X?.(te)}const template$l=te=>{const J=te.areCustomFiltersActive||te.areCommonFiltersActive||te.areDiagnosticFiltersActive||te.areUpFiltersActive;return!J&&te.searchString.length<1?D$2:ke$1`
|
|
434
436
|
<div class="active-filters-header">
|
|
435
437
|
${nn(J,()=>ke$1`<active-filters-badges></active-filters-badges>`)}
|
|
436
438
|
${nn(te.searchString.length>1,()=>ke$1`<activity-history-search-results searchQuery=${te.searchString}></activity-history-search-results>`)}
|
|
437
439
|
</div>
|
|
438
|
-
`},styles$
|
|
439
|
-
${r$G(styles$
|
|
440
|
-
`,__decorateClass$
|
|
440
|
+
`},styles$j=".active-filters-header{display:flex;flex-direction:column;border-width:0px 0px 1px 0px;border-style:solid;border-color:#d8d8d8;background-color:#fff;padding:var(--dss-spacing-sm) var(--dss-spacing-md);gap:var(--dss-spacing-xs);font-size:14px;line-height:24px}";var __defProp$n=Object.defineProperty,__getOwnPropDesc$g=Object.getOwnPropertyDescriptor,__decorateClass$s=(te,J,X,re)=>{for(var ne=re>1?void 0:re?__getOwnPropDesc$g(J,X):J,oe=te.length-1,de;oe>=0;oe--)(de=te[oe])&&(ne=(re?de(J,X,ne):de(ne))||ne);return re&&ne&&__defProp$n(J,X,ne),ne};let ActiveFiltersHeader=class extends h$n{render(){return ke$1`${template$l(this)}`}};ActiveFiltersHeader.styles=i$w`
|
|
441
|
+
${r$G(styles$j)}
|
|
442
|
+
`,__decorateClass$s([connectedProperty(activityHistorySearchStringSelector)],ActiveFiltersHeader.prototype,"searchString",2),__decorateClass$s([connectedProperty(areCustomFiltersActive)],ActiveFiltersHeader.prototype,"areCustomFiltersActive",2),__decorateClass$s([connectedProperty(areCommonFiltersActive)],ActiveFiltersHeader.prototype,"areCommonFiltersActive",2),__decorateClass$s([connectedProperty(areDiagnosticFiltersActive)],ActiveFiltersHeader.prototype,"areDiagnosticFiltersActive",2),__decorateClass$s([connectedProperty(areUpFiltersActive)],ActiveFiltersHeader.prototype,"areUpFiltersActive",2),ActiveFiltersHeader=__decorateClass$s([t$l("active-filters-header")],ActiveFiltersHeader);const styles$i=":host{width:100%}.container{display:flex;align-items:center;flex-direction:column;height:100%;justify-content:center}",showError="data:image/svg+xml,%3csvg%20width='215'%20height='150'%20viewBox='0%200%20215%20150'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M132.567%20147.925C107.663%20137.604%2098.7018%20141.859%2073.5817%20144.094C53.0605%20145.899%2028.8192%20138.451%2013.3757%20118.871C-27.3088%2067.293%2034.5441%2014.0839%2069.5091%202.68275C94.145%20-5.32822%20109.688%205.00477%20126.605%2028.3004C133.183%2037.3621%20138.613%2048.3337%20146.353%2055.9441C154.667%2064.106%20164.606%2063.9667%20172.441%2070.7586C210.442%20103.691%20165.801%20161.689%20132.567%20147.925Z'%20fill='%23EFF7FF'/%3e%3cpath%20d='M100.714%20124.222C100.714%20124.335%20100.714%20124.448%20100.714%20124.561C100.703%20125.212%20100.443%20125.832%2099.9909%20126.288C99.5388%20126.745%2098.9306%20127%2098.297%20127L37.3382%20126.232C36.7472%20126.217%2036.1824%20125.979%2035.7523%20125.562C35.3223%20125.145%2035.0575%20124.579%2035.0089%20123.974C34.997%20123.869%2034.997%20123.763%2035.0089%20123.658C35.0218%20123.158%2035.1821%20122.675%2035.4687%20122.272C35.7552%20121.868%2036.1543%20121.564%2036.6131%20121.399C36.8615%20121.318%2037.1214%20121.28%2037.3822%20121.286L98.341%20122.032C98.7724%20122.017%2099.1984%20122.134%2099.5657%20122.367C99.9331%20122.6%20100.226%20122.939%20100.407%20123.341C100.568%20123.61%20100.673%20123.91%20100.714%20124.222Z'%20fill='%23656565'/%3e%3cpath%20opacity='0.5'%20d='M95.9608%20127L204.061%20126.226C204.373%20126.226%20204.683%20126.162%20204.972%20126.037C205.261%20125.912%20205.523%20125.728%20205.743%20125.498C205.963%20125.267%20206.137%20124.993%20206.254%20124.692C206.372%20124.391%20206.431%20124.069%20206.428%20123.744C206.417%20123.092%20206.161%20122.47%20205.715%20122.011C205.268%20121.552%20204.667%20121.291%20204.039%20121.286L95.9389%20122.06C95.3108%20122.072%2094.7119%20122.338%2094.2697%20122.801C93.8275%20123.264%2093.5769%20123.889%2093.5713%20124.541C93.5827%20125.194%2093.8388%20125.815%2094.2851%20126.275C94.7314%20126.734%2095.3326%20126.994%2095.9608%20127Z'%20fill='%2300356A'/%3e%3cpath%20d='M212.109%2054.5398L207.23%20114.387C207.064%20116.104%20206.378%20117.729%20205.262%20119.044C204.147%20120.36%20202.656%20121.303%20200.989%20121.747C200.446%20121.91%20199.885%20122.006%20199.318%20122.033H199.033L99.2345%20122.714H99.0147C98.0548%20122.719%2097.1045%20122.522%2096.2259%20122.136C95.3472%20121.749%2094.5598%20121.182%2093.915%20120.471C93.2702%20119.76%2092.7825%20118.921%2092.4835%20118.009C92.1845%20117.098%2092.0811%20116.133%2092.1798%20115.178L97.0588%2055.3307C97.2569%2053.278%2098.2004%2051.3689%2099.7108%2049.9642C101.221%2048.5595%20103.194%2047.7565%20105.256%2047.707H106.773L205.055%2047.0039C206.032%2046.9708%20207.005%2047.1471%20207.908%2047.5208C208.812%2047.8946%20209.625%2048.4572%20210.293%2049.1709C210.961%2049.8846%20211.469%2050.7329%20211.782%2051.6589C212.095%2052.5849%20212.207%2053.5672%20212.109%2054.5398Z'%20fill='%237BACFC'/%3e%3cpath%20opacity='0.2'%20d='M208.156%2047.0002L109.387%2047.6899C108.732%2047.6984%20108.081%2047.7926%20107.451%2047.97C105.803%2048.4018%20104.328%2049.3229%20103.224%2050.6096C102.12%2051.8962%20101.439%2053.4868%20101.274%2055.1677L96.4673%20113.891C96.3645%20114.839%2096.4677%20115.798%2096.7699%20116.703C97.0721%20117.609%2097.5665%20118.439%2098.2196%20119.139C98.8728%20119.84%2099.6696%20120.393%20100.557%20120.763C101.444%20121.133%20102.4%20121.31%20103.362%20121.283L200.609%20120.593H202.11C204.152%20120.549%20206.107%20119.763%20207.603%20118.385C209.099%20117.006%20210.031%20115.131%20210.223%20113.116L214.964%2054.4134C215.062%2053.4725%20214.959%2052.5216%20214.66%2051.6231C214.362%2050.7245%20213.876%2049.8983%20213.233%2049.1986C212.591%2048.499%20211.806%2047.9415%20210.932%2047.5627C210.057%2047.1839%20209.111%2046.9922%20208.156%2047.0002Z'%20fill='white'/%3e%3ccircle%20cx='33'%20cy='31'%20r='20'%20fill='%23B60000'/%3e%3cpath%20d='M41.4%2022.6133C40.88%2022.0933%2040.04%2022.0933%2039.52%2022.6133L33%2029.12L26.48%2022.6C25.96%2022.08%2025.12%2022.08%2024.6%2022.6C24.08%2023.12%2024.08%2023.96%2024.6%2024.48L31.12%2031L24.6%2037.52C24.08%2038.04%2024.08%2038.88%2024.6%2039.4C25.12%2039.92%2025.96%2039.92%2026.48%2039.4L33%2032.88L39.52%2039.4C40.04%2039.92%2040.88%2039.92%2041.4%2039.4C41.92%2038.88%2041.92%2038.04%2041.4%2037.52L34.88%2031L41.4%2024.48C41.9066%2023.9733%2041.9066%2023.12%2041.4%2022.6133Z'%20fill='white'/%3e%3c/svg%3e",template$k=te=>ke$1`
|
|
441
443
|
${te.isAllDataFailedToLoad?renderErrorFeedback(te):D$2}
|
|
442
444
|
`,renderErrorFeedback=te=>ke$1`
|
|
443
445
|
<div class="container">
|
|
@@ -448,17 +450,17 @@ ${te.searchString?.length>1?ke$1`
|
|
|
448
450
|
<dss-button @onClick=${te.handleClickFeedback} label=${translate("error.general.refresh")} size="lg"></dss-button>
|
|
449
451
|
</dss-user-feedback>
|
|
450
452
|
</div>
|
|
451
|
-
`,isErrorOccurred=te=>te.activityHistoryCollections.error.length>0,areCollectionsEmpty=te=>{const J=te.activityHistoryCollections.collections;return Object.values(J).every(X=>!X.items||X.items.length===0)},isAllDataFailedToLoad=te=>!isSomeCollectionLoadedAndOtherLoading(te)&&isErrorOccurred(te)&&areCollectionsEmpty(te),selectErrorMessages=te=>te.activityHistoryCollections.error;class HandleHistoryItemsAddError{constructor(J){this.entities=J}}var __defProp$
|
|
452
|
-
${r$G(styles$
|
|
453
|
-
`,__decorateClass$
|
|
453
|
+
`,isErrorOccurred=te=>te.activityHistoryCollections.error.length>0,areCollectionsEmpty=te=>{const J=te.activityHistoryCollections.collections;return Object.values(J).every(X=>!X.items||X.items.length===0)},isAllDataFailedToLoad=te=>!isSomeCollectionLoadedAndOtherLoading(te)&&isErrorOccurred(te)&&areCollectionsEmpty(te),selectErrorMessages=te=>te.activityHistoryCollections.error;class HandleHistoryItemsAddError{constructor(J){this.entities=J}}var __defProp$m=Object.defineProperty,__getOwnPropDesc$f=Object.getOwnPropertyDescriptor,__decorateClass$r=(te,J,X,re)=>{for(var ne=re>1?void 0:re?__getOwnPropDesc$f(J,X):J,oe=te.length-1,de;oe>=0;oe--)(de=te[oe])&&(ne=(re?de(J,X,ne):de(ne))||ne);return re&&ne&&__defProp$m(J,X,ne),ne};let ActivityHistoryFullDataError=class extends h$n{constructor(){super(...arguments),this.errorMessages=[]}render(){return ke$1`${template$k(this)}`}handleClickFeedback(){this.api.broker.send(new HandleHistoryItemsAddError(this.errorMessages))}};ActivityHistoryFullDataError.styles=i$w`
|
|
454
|
+
${r$G(styles$i)}
|
|
455
|
+
`,__decorateClass$r([connectedProperty(isAllDataFailedToLoad)],ActivityHistoryFullDataError.prototype,"isAllDataFailedToLoad",2),__decorateClass$r([connectedProperty(selectErrorMessages)],ActivityHistoryFullDataError.prototype,"errorMessages",2),__decorateClass$r([lazyInject$2(TYPES$2.primaryApi)],ActivityHistoryFullDataError.prototype,"api",2),ActivityHistoryFullDataError=__decorateClass$r([t$l("activity-history-full-data-error")],ActivityHistoryFullDataError);const styles$h=":host{width:100%}.container{display:flex;align-items:center;flex-direction:column;padding-top:16px;padding-inline:16px}",template$j=te=>{const J=te.getCombinedMessage();return ke$1`
|
|
454
456
|
${te.isErrorOccurred?renderPartialErrorAlert(te,J):D$2}
|
|
455
457
|
`},renderPartialErrorAlert=(te,J)=>ke$1`
|
|
456
458
|
<div class="container">
|
|
457
459
|
<dss-alert @onButtonClick=${te.handleClickAlert} state="warning" size="lg" message="${J}" buttonLabel=${translate("error.partial.refresh")} hasbutton></dss-alert>
|
|
458
460
|
</div>
|
|
459
|
-
`;var __defProp$
|
|
460
|
-
${r$G(styles$
|
|
461
|
-
`,__decorateClass$
|
|
461
|
+
`;var __defProp$l=Object.defineProperty,__getOwnPropDesc$e=Object.getOwnPropertyDescriptor,__decorateClass$q=(te,J,X,re)=>{for(var ne=re>1?void 0:re?__getOwnPropDesc$e(J,X):J,oe=te.length-1,de;oe>=0;oe--)(de=te[oe])&&(ne=(re?de(J,X,ne):de(ne))||ne);return re&&ne&&__defProp$l(J,X,ne),ne};let ActivityHistoryPartialDataError=class extends h$n{constructor(){super(...arguments),this.errorMessages=[]}render(){return ke$1`${template$j(this)}`}handleClickAlert(){this.api.broker.send(new HandleHistoryItemsAddError(this.errorMessages))}getCombinedMessage(){const te=translate("error.partial.title"),J=this.errorMessages.length>0?this.errorMessages.map(X=>X.entityDescription):[];return J.length>0?`${te} ${J[0]}${J.length>1?` i ${J.slice(1).join(" i ")}`:""}`:te}};ActivityHistoryPartialDataError.styles=i$w`
|
|
462
|
+
${r$G(styles$h)}
|
|
463
|
+
`,__decorateClass$q([connectedProperty(isErrorOccurred)],ActivityHistoryPartialDataError.prototype,"isErrorOccurred",2),__decorateClass$q([connectedProperty(selectErrorMessages)],ActivityHistoryPartialDataError.prototype,"errorMessages",2),__decorateClass$q([lazyInject$2(TYPES$2.primaryApi)],ActivityHistoryPartialDataError.prototype,"api",2),ActivityHistoryPartialDataError=__decorateClass$q([t$l("activity-history-partial-data-error")],ActivityHistoryPartialDataError);const styles$g=".filters-sidebar{padding:8px 4px;border-right:1px solid rgb(189,189,189);width:56px;height:100%;box-sizing:border-box;display:flex;flex-direction:column}.filters-sidebar dss-icon-button{align-self:center}.filters-sidebar[expanded]{width:296px}.filters-sidebar[expanded] .filters-sidebar-opened{display:flex;align-items:center;justify-content:space-between;padding-inline:8px;color:var(--color-neutral-900);font-weight:700;font-size:16px;line-height:24px}.filter-container{display:flex;flex-direction:column;padding:16px 8px 8px;overflow:auto}.filter-container .filter{padding:8px 0;border-bottom:1px solid var(--color-neutral-200)}.filter-group{display:flex;flex-direction:column;padding-top:12px;gap:var(--dss-spacing-xs)}.filter-group .custom-filter{display:flex;flex-direction:column;padding:6px 8px 6px var(--dss-spacing-xl)}.filter-group .custom-filter .custom-filter-content{display:flex;flex-direction:column;gap:8px}",filterTemplates={[ActivityHistoryFilterType.Switch]:(te,J,X,re,ne)=>ke$1`
|
|
462
464
|
<dss-input-switch size="sm" @onChangeValue=${X} .checked=${re}>
|
|
463
465
|
<input slot="input" id="switch-${te}" aria-label=${J} type="checkbox" ?disabled=${!ne}>
|
|
464
466
|
<label slot="label" for="switch-${te}">${J||te}</label>
|
|
@@ -466,7 +468,7 @@ ${te.searchString?.length>1?ke$1`
|
|
|
466
468
|
<dss-checkbox variant="default" @onChange=${oe=>X(oe)}>
|
|
467
469
|
<input slot="input" id="checkboxStory-${te}" type="checkbox" .checked=${re} ?disabled=${!ne}>
|
|
468
470
|
<label slot="label" for="checkboxStory-${te}">${J||te}</label>
|
|
469
|
-
</dss-checkbox>`},getFilterTemplate=(te,J,X,re)=>{const ne=!!X?.id&&!!re,oe=crypto.randomUUID(),de=ne?re.title||re.id:te.title,ce=pe=>{te.singleOption?J(X?.id,te.id,null,pe.detail):ne&&re?J(X?.id,te.id,re.id,pe.detail):J(te.id,pe.detail)},he=ne&&re?te.enabledValues?.includes(re.id):te.enabled,ue=ne&&re||te.singleOption?X.enabled:!0;return filterTemplates[te.type]?.(oe,de,ce,he,ue)||ke$1``},template$
|
|
471
|
+
</dss-checkbox>`},getFilterTemplate=(te,J,X,re)=>{const ne=!!X?.id&&!!re,oe=crypto.randomUUID(),de=ne?re.title||re.id:te.title,ce=pe=>{te.singleOption?J(X?.id,te.id,null,pe.detail):ne&&re?J(X?.id,te.id,re.id,pe.detail):J(te.id,pe.detail)},he=ne&&re?te.enabledValues?.includes(re.id):te.enabled,ue=ne&&re||te.singleOption?X.enabled:!0;return filterTemplates[te.type]?.(oe,de,ce,he,ue)||ke$1``},template$i=te=>ke$1`
|
|
470
472
|
<div class="filters-sidebar" ?expanded=${te.filtersExpanded} >
|
|
471
473
|
${te.filtersExpanded?ke$1`<div class="filters-sidebar-opened">${translate("filters.filters")}<dss-icon-button ?hidden=${te.wrapperMaximized} @click=${()=>te._toggleFilters()} size="md" variant="primary" icon="keyboard_double_arrow_left"></dss-icon-button></div>
|
|
472
474
|
<div class="filter-container">
|
|
@@ -515,18 +517,18 @@ ${te.searchString?.length>1?ke$1`
|
|
|
515
517
|
${te.options.map(re=>getFilterTemplate(te,J._onChangeCustomFilterValue.bind(J),X,re))}
|
|
516
518
|
</div>
|
|
517
519
|
</primaria-accordion>
|
|
518
|
-
`)};class SetCustomFilterGroup{constructor(J){this.payload=J}}class SetCommonFilter{constructor(J){this.payload=J}}class SetCustomFilterValue{constructor(J){this.payload=J}}class SetDiagnosticFiltersCommand{constructor(J){this.payload=J}}class SetUpFiltersCommand{constructor(J){this.payload=J}}class SetCustomFilterAllValues{constructor(J){this.payload=J}}var __defProp$
|
|
519
|
-
${r$G(styles$
|
|
520
|
-
`,__decorateClass$
|
|
520
|
+
`)};class SetCustomFilterGroup{constructor(J){this.payload=J}}class SetCommonFilter{constructor(J){this.payload=J}}class SetCustomFilterValue{constructor(J){this.payload=J}}class SetDiagnosticFiltersCommand{constructor(J){this.payload=J}}class SetUpFiltersCommand{constructor(J){this.payload=J}}class SetCustomFilterAllValues{constructor(J){this.payload=J}}var __defProp$k=Object.defineProperty,__getOwnPropDesc$d=Object.getOwnPropertyDescriptor,__decorateClass$p=(te,J,X,re)=>{for(var ne=re>1?void 0:re?__getOwnPropDesc$d(J,X):J,oe=te.length-1,de;oe>=0;oe--)(de=te[oe])&&(ne=(re?de(J,X,ne):de(ne))||ne);return re&&ne&&__defProp$k(J,X,ne),ne};let ActivityHistoryFilters=class extends h$n{constructor(){super(...arguments),this.filtersExpanded=!1}render(){return ke$1`${template$i(this)}`}updated(te){te.has("wrapperMaximized")&&(this.filtersExpanded=this.wrapperMaximized)}_toggleFilters(){this.filtersExpanded=!this.filtersExpanded}_onChangeCommonFilterValue(te,J){this.api.broker.send(new SetCommonFilter({id:te,enabled:J}))}_onChangeCustomFilterGroupValue(te,J){this.api.broker.send(new SetCustomFilterGroup({id:te,enabled:J}))}_onChangeCustomFilterValue(te,J,X,re){this.api.broker.send(new SetCustomFilterValue({filterGroupId:te,filterId:J,optionId:X,enabled:re}))}_onChangeCustomFilterAllValues(te,J,X){this.api.broker.send(new SetCustomFilterAllValues({filterGroupId:te,filterId:J,values:X}))}_handleDiagnosticFilterChange(te){const J=te.detail.selectedValue;this.api.broker.send(new SetDiagnosticFiltersCommand(J))}_handleUpFilterChange(te){const J=te.detail.selectedValue;this.api.broker.send(new SetUpFiltersCommand(J))}};ActivityHistoryFilters.styles=i$w`
|
|
521
|
+
${r$G(styles$g)}
|
|
522
|
+
`,__decorateClass$p([connectedProperty(activityHistoryCommonFiltersSelector)],ActivityHistoryFilters.prototype,"commonFilters",2),__decorateClass$p([connectedProperty(customFilterGroupsWithOptionsSelector)],ActivityHistoryFilters.prototype,"customFilterGroups",2),__decorateClass$p([connectedProperty(diagnosticFilterSelector)],ActivityHistoryFilters.prototype,"diagnosticFilter",2),__decorateClass$p([connectedProperty(diagnosticFilterEnabledValuesSelector)],ActivityHistoryFilters.prototype,"diagnosticFilterEnabledValues",2),__decorateClass$p([connectedProperty(upFilterSelector)],ActivityHistoryFilters.prototype,"upFilter",2),__decorateClass$p([connectedProperty(upFilterEnabledValuesSelector)],ActivityHistoryFilters.prototype,"upFilterEnabledValues",2),__decorateClass$p([lazyInject$2(TYPES$2.primaryApi)],ActivityHistoryFilters.prototype,"api",2),__decorateClass$p([r$D()],ActivityHistoryFilters.prototype,"filtersExpanded",2),__decorateClass$p([n$z({type:Boolean})],ActivityHistoryFilters.prototype,"wrapperMaximized",2),ActivityHistoryFilters=__decorateClass$p([t$l("activity-history-filters")],ActivityHistoryFilters);const{setCommonFilterValue}=activityHistoryFiltersSlice.actions;class SetCommonFilterHandler extends StoreBaseHandler{async handle(J){try{this.store.dispatch(setCommonFilterValue(J.payload))}catch(X){console.log(X.message)}}}let request$g;const bootstrapSetCommonFilter=te=>{request$g=te.registerRequest(SetCommonFilter,SetCommonFilterHandler)},teardownSetCommonFilter=()=>{request$g?.dispose()},{addCustomFilters}=activityHistoryFiltersSlice.actions;class AddCustomFiltersHandler extends StoreBaseHandler{async handle(J){try{this.store.dispatch(addCustomFilters(J.payload))}catch(X){console.log(X.message)}}}let request$f;const bootstrapAddCustomFilter=te=>{request$f=te.registerRequest(AddCustomFiltersCommand,AddCustomFiltersHandler)},teardownAddCustomFilter=()=>{request$f?.dispose()},{setCustomFilterGroupValue}=activityHistoryFiltersSlice.actions;class SetCustomFilterGroupHandler extends StoreBaseHandler{async handle(J){try{this.store.dispatch(setCustomFilterGroupValue(J.payload))}catch(X){console.log(X.message)}}}let request$e;const bootstrapSetCustomFilterGroup=te=>{request$e=te.registerRequest(SetCustomFilterGroup,SetCustomFilterGroupHandler)},teardownSetCustomFilterGroup=()=>{request$e?.dispose()},{setCustomFilterValue}=activityHistoryFiltersSlice.actions;class SetCustomFilterValueHandler extends StoreBaseHandler{async handle(J){try{this.store.dispatch(setCustomFilterValue(J.payload))}catch(X){console.log(X.message)}}}let request$d;const bootstrapSetCustomFilterValue=te=>{request$d=te.registerRequest(SetCustomFilterValue,SetCustomFilterValueHandler)},teardownSetCustomFilterValue=()=>{request$d?.dispose()},{addDiagnosticFilters}=activityHistoryFiltersSlice.actions;class AddDiagnosticFiltersHandler extends StoreBaseHandler{async handle(J){try{this.store.dispatch(addDiagnosticFilters(J.payload))}catch(X){console.log(X.message)}}}class AddDiagnosticFiltersCommand{constructor(J){this.payload=J}}let request$c;const bootstrapAddDiagnosticFilter=te=>{request$c=te.registerRequest(AddDiagnosticFiltersCommand,AddDiagnosticFiltersHandler)},teardownAddDiagnosticFilter=()=>{request$c?.dispose()},{setDiagnosticFilterValues}=activityHistoryFiltersSlice.actions;class SetDiagnosticFiltersHandler extends StoreBaseHandler{async handle(J){try{this.store.dispatch(setDiagnosticFilterValues(J.payload))}catch(X){console.log(X.message)}}}let request$b;const bootstrapSetDiagnosticFilter=te=>{request$b=te.registerRequest(SetDiagnosticFiltersCommand,SetDiagnosticFiltersHandler)},teardownSetDiagnosticFilter=()=>{request$b?.dispose()},{addUpFilters}=activityHistoryFiltersSlice.actions;class AddUpFiltersHandler extends StoreBaseHandler{async handle(J){try{this.store.dispatch(addUpFilters(J.payload))}catch(X){console.log(X.message)}}}class AddUpFiltersCommand{constructor(J){this.payload=J}}let request$a;const bootstrapAddUpFilter=te=>{request$a=te.registerRequest(AddUpFiltersCommand,AddUpFiltersHandler)},teardownAddUpFilter=()=>{request$a?.dispose()},{setUpFilterValues}=activityHistoryFiltersSlice.actions;class SetUpFiltersHandler extends StoreBaseHandler{async handle(J){try{this.store.dispatch(setUpFilterValues(J.payload))}catch(X){console.log(X.message)}}}let request$9;const bootstrapSetUpFilter=te=>{request$9=te.registerRequest(SetUpFiltersCommand,SetUpFiltersHandler)},teardownSetUpFilter=()=>{request$9?.dispose()};class ResetFiltersCommand{}const{resetFilters}=activityHistoryFiltersSlice.actions;class ResetFiltersHandler extends StoreBaseHandler{async handle(J){try{this.store.dispatch(resetFilters())}catch(X){console.log(X.message)}}}let request$8;const bootstrapResetFilters=te=>{request$8=te.registerRequest(ResetFiltersCommand,ResetFiltersHandler)},teardownResetFilters=()=>{request$8?.dispose()},{setCustomFilterAllValues}=activityHistoryFiltersSlice.actions;class SetCustomFilterAllValuesHandler extends StoreBaseHandler{async handle(J){try{this.store.dispatch(setCustomFilterAllValues(J.payload))}catch(X){console.log(X.message)}}}let request$7;const bootstrapSetCustomFilterAllValues=te=>{request$7=te.registerRequest(SetCustomFilterAllValues,SetCustomFilterAllValuesHandler)},teardownSetCustomFilterAllValues=()=>{request$7?.dispose()},bootstrapFilters=te=>{bootstrapSetCommonFilter(te),bootstrapAddCustomFilter(te),bootstrapSetCustomFilterGroup(te),bootstrapSetCustomFilterValue(te),bootstrapSetCustomFilterAllValues(te),bootstrapAddDiagnosticFilter(te),bootstrapSetDiagnosticFilter(te),bootstrapAddUpFilter(te),bootstrapSetUpFilter(te),bootstrapResetFilters(te)},teardownFilters=()=>{teardownSetCommonFilter(),teardownAddCustomFilter(),teardownSetCustomFilterGroup(),teardownSetCustomFilterValue(),teardownSetCustomFilterAllValues(),teardownAddDiagnosticFilter(),teardownSetDiagnosticFilter(),teardownAddUpFilter(),teardownSetUpFilter(),teardownResetFilters()},events={activityHistorySearched:"activity_history_searched"},{setSearchString}=activityHistoryFiltersSlice.actions;class SearchItemsHandler extends BaseHandler{async handle(J){try{this.store.dispatch(setSearchString(J.searchString)),setTimeout(()=>{this.api.broker.publish(events.activityHistorySearched,{searchQuery:J.searchString})},300)}catch(X){console.log(X.message)}}}class SearchActivityHistoryItems{constructor(J){this.searchString=J,this.searchString=J}}const styles$f=".search-header{color:var(--color-neutral-900);font-weight:600}",template$h=te=>ke$1`<div class="search-header">
|
|
521
523
|
${translate("searchBarResults")} “${te.searchQuery}”
|
|
522
|
-
</div>`;var __defProp$
|
|
523
|
-
${r$G(styles$
|
|
524
|
-
`,__decorateClass$
|
|
524
|
+
</div>`;var __defProp$j=Object.defineProperty,__getOwnPropDesc$c=Object.getOwnPropertyDescriptor,__decorateClass$o=(te,J,X,re)=>{for(var ne=re>1?void 0:re?__getOwnPropDesc$c(J,X):J,oe=te.length-1,de;oe>=0;oe--)(de=te[oe])&&(ne=(re?de(J,X,ne):de(ne))||ne);return re&&ne&&__defProp$j(J,X,ne),ne};let ActivityHistorySearchResults=class extends h$n{constructor(){super(...arguments),this.searchQuery=""}render(){return ke$1`${template$h(this)}`}};ActivityHistorySearchResults.styles=i$w`
|
|
525
|
+
${r$G(styles$f)}
|
|
526
|
+
`,__decorateClass$o([n$z()],ActivityHistorySearchResults.prototype,"searchQuery",2),ActivityHistorySearchResults=__decorateClass$o([t$l("activity-history-search-results")],ActivityHistorySearchResults);const styles$e=".search-header{padding-inline:16px;padding-top:12px;padding-bottom:12px;gap:var(--dss-spacing-xs);border-width:0px 0px 1px 0px;border-style:solid;border-color:#d8d8d8;background-color:#fff;color:var(--color-neutral-900);font-weight:600;font-size:14px;line-height:24px}",template$g=te=>ke$1`<dss-search-bar dropdownStyle=${"display: none"} @onSearchChange=${te._handleSearchChange} icon="search" inputsize="md" threshold="2" recentsearchestext="" emptydropdowntext="">
|
|
525
527
|
<label slot="label" for="searchbar1" aria-hidden="false"></label>
|
|
526
528
|
<input slot="input" id="searchbar1" type="text" value=${te.searchQuery} @input=${J=>te._handleSearchChange({detail:[J.target.value]})}>
|
|
527
|
-
</dss-search-bar>`;var __defProp$
|
|
528
|
-
${r$G(styles$
|
|
529
|
-
`,__decorateClass$
|
|
529
|
+
</dss-search-bar>`;var __defProp$i=Object.defineProperty,__getOwnPropDesc$b=Object.getOwnPropertyDescriptor,__decorateClass$n=(te,J,X,re)=>{for(var ne=re>1?void 0:re?__getOwnPropDesc$b(J,X):J,oe=te.length-1,de;oe>=0;oe--)(de=te[oe])&&(ne=(re?de(J,X,ne):de(ne))||ne);return re&&ne&&__defProp$i(J,X,ne),ne};let ActivityHistorySearchBar=class extends h$n{constructor(){super(...arguments),this.searchQuery=""}render(){return ke$1`${template$g(this)}`}_handleSearchChange(te){const J=te.detail||[],X=J.length>0?J.join(" "):"",re=X.length>1?X:"";this.dispatchEvent(new CustomEvent("onSearchChange",{detail:re}))}};ActivityHistorySearchBar.styles=i$w`
|
|
530
|
+
${r$G(styles$e)}
|
|
531
|
+
`,__decorateClass$n([n$z()],ActivityHistorySearchBar.prototype,"searchQuery",2),ActivityHistorySearchBar=__decorateClass$n([t$l("activity-history-search-bar")],ActivityHistorySearchBar);const styles$d=":host{display:flex;justify-content:space-between}.filters-container{display:flex;gap:var(--dss-spacing-md)}.filters-header{font-weight:700}.filter-groups{display:flex;flex-wrap:wrap;gap:var(--dss-spacing-xs)}.filter-group{display:flex;gap:var(--dss-spacing-xs);color:var(--color-neutral-600);font-weight:600}.clean-filters{display:flex}.clean-filters .separator{padding:0 8px}.popover-content{box-sizing:border-box;display:flex;flex-wrap:wrap;gap:var(--dss-spacing-xs);padding:10px;max-width:368px;max-height:336px;overflow:auto}",formatShowFilterTitle=te=>{const J=te.replace(/veure/gi,"")?.trim();return J.charAt(0).toUpperCase()+J.slice(1)},normalizeDeletedFilterBooleanValue=te=>te===!0?translate("filters.deleted"):te,normalizeEmptyFilterValue=(te,J)=>te===""?formatEmptyFilterValue(J):te,formatEmptyFilterValue=te=>`${translate("chipHeader.without")} ${te.toLowerCase()}`,MAX_VISIBLE_CHIPS=5,renderChip=(te,J,X,re)=>ke$1`
|
|
530
532
|
<dss-chip
|
|
531
533
|
label=${normalizeEmptyFilterValue(X.title,J.title)}
|
|
532
534
|
size="sm"
|
|
@@ -562,7 +564,7 @@ ${te.searchString?.length>1?ke$1`
|
|
|
562
564
|
@click=${()=>X._onDeleteUpFilterValue(te)}
|
|
563
565
|
@onDelete=${()=>X._onDeleteUpFilterValue(te)}
|
|
564
566
|
></dss-chip>
|
|
565
|
-
`,renderFilterTitle=te=>ke$1`<div class="filter-title">${`${te}:`}</div>`,template$
|
|
567
|
+
`,renderFilterTitle=te=>ke$1`<div class="filter-title">${`${te}:`}</div>`,template$f=te=>{if(te.enabledFilters.length===0&&te.enabledCommonFilters.length===0&&te.diagnosticFilterEnabled.enabledValues.length===0&&te.upFilterEnabled.enabledValues.length===0)return D$2;let J=0;const X=[],re=[],ne=[],oe=te.diagnosticFilterEnabled;if(oe){const{title:ce,values:he,enabledValues:ue}=oe,pe=he.filter(fe=>ue.includes(fe.value));if(pe.length>0){let fe=!1,be=!1;for(const ge of pe){const ve=renderDiagnosticChip(ge.value,ge.label,te);J<MAX_VISIBLE_CHIPS?(fe||(X.push(renderFilterTitle(ce)),fe=!0),X.push(ve),J++):(be||(re.push(renderFilterTitle(ce)),be=!0),re.push(ve),ne.push(ve))}}}const de=te.upFilterEnabled;if(de){const{title:ce,values:he,enabledValues:ue}=de,pe=he.filter(fe=>ue.includes(fe.value));if(pe.length>0){let fe=!1,be=!1;for(const ge of pe){const ve=renderUpChip(ge.value,ge.label,te);J<MAX_VISIBLE_CHIPS?(fe||(X.push(renderFilterTitle(ce)),fe=!0),X.push(ve),J++):(be||(re.push(renderFilterTitle(ce)),be=!0),re.push(ve),ne.push(ve))}}}for(const ce of te.enabledCommonFilters){const he=renderCommonChip(ce,te);J<MAX_VISIBLE_CHIPS?(X.push(he),J++):(re.push(he),ne.push(he))}for(const{title:ce,id:he,filters:ue}of te.enabledFilters){let pe=!1,fe=!1;for(const be of ue)for(const ge of[...new Set(be.enabledValues)]){let ve=be?.options?.find(_e=>_e.id===ge);if(ve)ve.title=ve.title!==""?ve.title:ge;else{const _e=normalizeDeletedFilterBooleanValue(ge);ve={title:_e,id:_e}}const me=renderChip(he,be,ve,te);J<MAX_VISIBLE_CHIPS?(pe||(X.push(renderFilterTitle(ce)),pe=!0),X.push(me),J++):(fe||(re.push(renderFilterTitle(ce)),fe=!0),re.push(me),ne.push(me))}}return ke$1`
|
|
566
568
|
<div class="filters-container">
|
|
567
569
|
<div class="filters-header">${translate("chipHeader.selection")}</div>
|
|
568
570
|
<div class="filter-groups">
|
|
@@ -585,11 +587,11 @@ ${te.searchString?.length>1?ke$1`
|
|
|
585
587
|
<div class="separator">|</div>
|
|
586
588
|
<dss-button variant="secondary" size="sm" label=${translate("chipHeader.cleanFilters")} icon="cleaning_services" @click=${te.resetFilters}></dss-button>
|
|
587
589
|
</div>
|
|
588
|
-
`};var __defProp$
|
|
590
|
+
`};var __defProp$h=Object.defineProperty,__getOwnPropDesc$a=Object.getOwnPropertyDescriptor,__decorateClass$m=(te,J,X,re)=>{for(var ne=re>1?void 0:re?__getOwnPropDesc$a(J,X):J,oe=te.length-1,de;oe>=0;oe--)(de=te[oe])&&(ne=(re?de(J,X,ne):de(ne))||ne);return re&&ne&&__defProp$h(J,X,ne),ne};let ActiveFiltersBadges=class extends h$n{render(){return ke$1`${template$f(this)}`}_onDeleteFilterValue(te,J,X,re){this.api.broker.send(new SetCustomFilterValue({filterGroupId:te,filterId:J,optionId:X,enabled:re}))}_onDeleteCommonFilterValue(te){this.api.broker.send(new SetCommonFilter({id:te,enabled:!1}))}_onDeleteDiagnosticFilterValue(te){this.api.broker.send(new SetDiagnosticFiltersCommand([...this.diagnosticFilterEnabled.enabledValues.filter(J=>J!==te)]))}_onDeleteUpFilterValue(te){this.api.broker.send(new SetUpFiltersCommand([...this.upFilterEnabled.enabledValues.filter(J=>J!==te)]))}resetFilters(){this.api.broker.send(new ResetFiltersCommand)}};ActiveFiltersBadges.styles=i$w`
|
|
591
|
+
${r$G(styles$d)}
|
|
592
|
+
`,__decorateClass$m([lazyInject$2(TYPES$2.primaryApi)],ActiveFiltersBadges.prototype,"api",2),__decorateClass$m([connectedProperty(activityHistoryEnabledCommonFiltersSelector)],ActiveFiltersBadges.prototype,"enabledCommonFilters",2),__decorateClass$m([connectedProperty(customFilterGroupsWithOptionsSelector)],ActiveFiltersBadges.prototype,"enabledFilters",2),__decorateClass$m([connectedProperty(diagnosticFilterSelector)],ActiveFiltersBadges.prototype,"diagnosticFilterEnabled",2),__decorateClass$m([connectedProperty(upFilterSelector)],ActiveFiltersBadges.prototype,"upFilterEnabled",2),ActiveFiltersBadges=__decorateClass$m([t$l("active-filters-badges")],ActiveFiltersBadges);let request$6;const bootstrapSearchItems=te=>{request$6=te.registerRequest(SearchActivityHistoryItems,SearchItemsHandler)},teardownSearchItems=()=>{request$6?.dispose()};class HandleHistoryItemsAddErrorHandler extends BaseHandler{async handle(J){try{const X=J.entities.map(re=>re.entityId);await this.dispatchRemoveErrorItems(X),this.api.broker.publish("refresh_history_data_requested",X)}catch{this.api.notificationService.error(translate("error.errorToRefresh"))}}async dispatchRemoveErrorItems(J){for(const X of J)this.store.dispatch(removeErrorHistoryItem(X))}}let request$5;const bootstrapHandleHistoryItemsAddError=te=>{teardownHandleHistoryItemsAddError(),request$5=te.registerRequest(HandleHistoryItemsAddError,HandleHistoryItemsAddErrorHandler)},teardownHandleHistoryItemsAddError=()=>{request$5?.dispose()},styles$c=".spinner-container{display:flex;flex-direction:row;align-items:center;gap:24px;justify-content:center;padding-top:16px}.skeleton-container{padding:20px;height:100%}",template$e=te=>te.isCollectionInitialState?ke$1`<div class="skeleton-container">${te.skeletons}</div>`:te.isSomeCollectionLoadedAndOtherLoading?ke$1`<div class="spinner-container"><dss-spinner size="sm"></dss-spinner><div class="busy-description">${translate("busyEntriesLoading")}</div></div>`:D$2;var __defProp$g=Object.defineProperty,__getOwnPropDesc$9=Object.getOwnPropertyDescriptor,__decorateClass$l=(te,J,X,re)=>{for(var ne=re>1?void 0:re?__getOwnPropDesc$9(J,X):J,oe=te.length-1,de;oe>=0;oe--)(de=te[oe])&&(ne=(re?de(J,X,ne):de(ne))||ne);return re&&ne&&__defProp$g(J,X,ne),ne};let ActivityHistoryBusy=class extends h$n{render(){return ke$1`${template$e(this)}`}get skeletons(){return Array.from({length:12},()=>ke$1`<dss-skeleton width="100" height="10"></dss-skeleton>`)}};ActivityHistoryBusy.styles=i$w`
|
|
589
593
|
${r$G(styles$c)}
|
|
590
|
-
`,__decorateClass$l([
|
|
591
|
-
${r$G(styles$b)}
|
|
592
|
-
`,__decorateClass$k([connectedProperty(isCollectionInitialState)],ActivityHistoryBusy.prototype,"isCollectionInitialState",2),__decorateClass$k([connectedProperty(isSomeCollectionLoadedAndOtherLoading)],ActivityHistoryBusy.prototype,"isSomeCollectionLoadedAndOtherLoading",2),ActivityHistoryBusy=__decorateClass$k([t$l("activity-history-busy")],ActivityHistoryBusy);const{removeActivityHistoryItem}=activityHistoryCollectionsSlice.actions;class RemoveHistoryItemHandler extends StoreBaseHandler{async handle(J){try{this.store.dispatch(removeActivityHistoryItem({id:J.entityId,itemId:J.itemId}))}catch(X){console.log(X.message)}}}let request$4;const bootstrapRemoveHistoryItem=te=>{request$4=te.registerRequest("remove_history_item_request",RemoveHistoryItemHandler)},teardownRemoveHistoryItem=()=>{request$4?.dispose()};let broker;const bootstrapActivityHistoryItem=te=>{broker=brokerExtensions(te,container$2),bootstrapInjectAsyncHistoryItems(broker),bootstrapAddHistoryItem(broker),bootstrapAddHistoryItems(broker),bootstrapHandleHistoryItemsAddError(broker),bootstrapUpdateHistoryItem(broker),bootstrapExportPdf(broker),bootstrapFilters(broker),bootstrapSearchItems(broker),bootstrapRemoveHistoryItem(broker)},teardownActivityHistoryItem=()=>{teardownInjectAsyncHistoryItems(),teardownAddHistoryItem(),teardownAddHistoryItems(),teardownHandleHistoryItemsAddError(),teardownUpdateHistoryItem(),teardownExportPdf(),teardownFilters(),teardownSearchItems(),teardownRemoveHistoryItem()},styles$a=":host{display:flex;min-height:1px;height:100%;width:100%}.container{display:flex;flex-direction:column;width:100%;border:1px solid rgb(189,189,189);border-radius:var(--dss-radius-sm)}.container[maximized]{position:absolute;background:#fff;top:0;left:0;bottom:0;border:none}.container[maximized] .header-maximized-container{display:flex;flex-direction:column}.container[maximized] .header-maximized-container .header__maximized{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:24px;padding-top:24px;padding-bottom:24px;padding-inline:40px}.container[maximized] .header-maximized-container .header__maximized .header__maximized__search{flex:1;border-radius:8px;border:1px solid rgb(189,189,189);padding:8px;width:300px}.container[maximized] .header-maximized-container .header__maximized .title{color:var(--color-neutral-900);font-weight:700;font-size:20px;line-height:30px;white-space:nowrap}.container[maximized] .header-maximized-container .header__maximized .options{display:flex;align-items:center;color:var(--color-primary-400);font-weight:600;font-size:14px;line-height:24px;cursor:pointer}.container[maximized] .header-maximized-container .header__maximized .header__maximized__left{display:flex;flex-direction:row;gap:24px;align-items:center;width:100%}.container[maximized] .header-maximized-container .header__maximized .header__maximized__right{display:flex;flex-direction:row;gap:16px;align-items:center}.container[maximized] .wrapper{height:calc(100vh - 175px);border:1px solid rgb(189,189,189);border-radius:var(--dss-radius-sm);margin-bottom:24px;margin-inline:40px;width:calc(100% - 80px)}.container .header{display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:8px 12px;border-bottom:1px solid rgb(189,189,189);gap:16px}.container .header .header__left{display:flex;flex-direction:row;align-items:center;flex:1;gap:16px}.container .header .header__left .title{color:var(--color-neutral-800);font-weight:700;font-size:16px;line-height:24px;white-space:nowrap}.container .header .header__right{display:flex;flex-direction:row;align-items:center;gap:8px}.container .header .header__right .action-icons{display:flex;align-items:center}.container .wrapper{display:flex;flex-direction:row;min-height:1px;width:100%;height:100%}.container .wrapper[maximized] .content{width:100%;background:var(--color-neutral-50);border-top-right-radius:var(--dss-radius-sm);display:flex;flex-direction:column}.container .wrapper .content{width:100%;background:var(--color-neutral-50);border-bottom-right-radius:var(--dss-radius-sm);overflow:hidden;display:flex;flex-direction:column}",template$c=te=>ke$1`<div class="container" ?maximized=${te.maximized}>
|
|
594
|
+
`,__decorateClass$l([connectedProperty(isCollectionInitialState)],ActivityHistoryBusy.prototype,"isCollectionInitialState",2),__decorateClass$l([connectedProperty(isSomeCollectionLoadedAndOtherLoading)],ActivityHistoryBusy.prototype,"isSomeCollectionLoadedAndOtherLoading",2),ActivityHistoryBusy=__decorateClass$l([t$l("activity-history-busy")],ActivityHistoryBusy);const{removeActivityHistoryItem}=activityHistoryCollectionsSlice.actions;class RemoveHistoryItemHandler extends StoreBaseHandler{async handle(J){try{this.store.dispatch(removeActivityHistoryItem({id:J.entityId,itemId:J.itemId}))}catch(X){console.log(X.message)}}}let request$4;const bootstrapRemoveHistoryItem=te=>{request$4=te.registerRequest("remove_history_item_request",RemoveHistoryItemHandler)},teardownRemoveHistoryItem=()=>{request$4?.dispose()};let broker;const bootstrapActivityHistoryItem=te=>{broker=brokerExtensions(te,container$2),bootstrapInjectAsyncHistoryItems(broker),bootstrapAddHistoryItem(broker),bootstrapAddHistoryItems(broker),bootstrapHandleHistoryItemsAddError(broker),bootstrapUpdateHistoryItem(broker),bootstrapExportPdf(broker),bootstrapFilters(broker),bootstrapSearchItems(broker),bootstrapRemoveHistoryItem(broker)},teardownActivityHistoryItem=()=>{teardownInjectAsyncHistoryItems(),teardownAddHistoryItem(),teardownAddHistoryItems(),teardownHandleHistoryItemsAddError(),teardownUpdateHistoryItem(),teardownExportPdf(),teardownFilters(),teardownSearchItems(),teardownRemoveHistoryItem()},styles$b=":host{display:flex;min-height:1px;height:100%;width:100%}.container{display:flex;flex-direction:column;width:100%;border:1px solid rgb(189,189,189);border-radius:var(--dss-radius-sm)}.container[maximized]{position:absolute;background:#fff;top:0;left:0;bottom:0;border:none}.container[maximized] .header-maximized-container{display:flex;flex-direction:column}.container[maximized] .header-maximized-container .header__maximized{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:24px;padding-top:24px;padding-bottom:24px;padding-inline:40px}.container[maximized] .header-maximized-container .header__maximized .header__maximized__search{flex:1;border-radius:8px;border:1px solid rgb(189,189,189);padding:8px;width:300px}.container[maximized] .header-maximized-container .header__maximized .title{color:var(--color-neutral-900);font-weight:700;font-size:20px;line-height:30px;white-space:nowrap}.container[maximized] .header-maximized-container .header__maximized .options{display:flex;align-items:center;color:var(--color-primary-400);font-weight:600;font-size:14px;line-height:24px;cursor:pointer}.container[maximized] .header-maximized-container .header__maximized .header__maximized__left{display:flex;flex-direction:row;gap:24px;align-items:center;width:100%}.container[maximized] .header-maximized-container .header__maximized .header__maximized__right{display:flex;flex-direction:row;gap:16px;align-items:center}.container[maximized] .wrapper{height:calc(100vh - 175px);border:1px solid rgb(189,189,189);border-radius:var(--dss-radius-sm);margin-bottom:24px;margin-inline:40px;width:calc(100% - 80px)}.container .header{display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:8px 12px;border-bottom:1px solid rgb(189,189,189);gap:16px}.container .header .header__left{display:flex;flex-direction:row;align-items:center;flex:1;gap:16px}.container .header .header__left .title{color:var(--color-neutral-800);font-weight:700;font-size:16px;line-height:24px;white-space:nowrap}.container .header .header__right{display:flex;flex-direction:row;align-items:center;gap:8px}.container .header .header__right .action-icons{display:flex;align-items:center}.container .wrapper{display:flex;flex-direction:row;min-height:1px;width:100%;height:100%}.container .wrapper[maximized] .content{width:100%;background:var(--color-neutral-50);border-top-right-radius:var(--dss-radius-sm);display:flex;flex-direction:column}.container .wrapper .content{width:100%;background:var(--color-neutral-50);border-bottom-right-radius:var(--dss-radius-sm);overflow:hidden;display:flex;flex-direction:column}",template$d=te=>ke$1`<div class="container" ?maximized=${te.maximized}>
|
|
593
595
|
${te.maximized?ke$1`${headerMaximizedTemplate(te)}`:ke$1`<div class="header">
|
|
594
596
|
<div class="header__left">
|
|
595
597
|
<div class="title">${translate("activityHistory")}</div>
|
|
@@ -642,9 +644,9 @@ ${te.searchString?.length>1?ke$1`
|
|
|
642
644
|
</div>
|
|
643
645
|
</div>
|
|
644
646
|
</div>
|
|
645
|
-
`;var __defProp$
|
|
646
|
-
${r$G(styles$
|
|
647
|
-
`,__decorateClass$
|
|
647
|
+
`;var __defProp$f=Object.defineProperty,__getOwnPropDesc$8=Object.getOwnPropertyDescriptor,__decorateClass$k=(te,J,X,re)=>{for(var ne=re>1?void 0:re?__getOwnPropDesc$8(J,X):J,oe=te.length-1,de;oe>=0;oe--)(de=te[oe])&&(ne=(re?de(J,X,ne):de(ne))||ne);return re&&ne&&__defProp$f(J,X,ne),ne};let ActivityHistoryMain=class extends PrimariaRegionHost(h$n){constructor(){super(...arguments),this.subscriptions=[],this._searchTimeout=null,this.maximized=!1,this.searchQuery=""}render(){return ke$1`${template$d(this)}`}connectedCallback(){super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),this._unsubscribeEvents()}firstUpdated(){super.firstUpdated(),this._subscribeEvents()}_maximize(){this.maximized=!0}_minimize(){this.maximized=!1}_subscribeEvents(){const te=this.api.broker.subscribe("mainViewChanged",({viewId:J})=>{(J==="clinical-monitoring"||J==="admin-clinical-monitoring")&&(this.maximized=!1)});this.subscriptions.push(te)}_unsubscribeEvents(){this.subscriptions.forEach(te=>te.dispose())}_handleSelectDate(te){const J=parse(te,"dd/MM/yyyy",new Date);this.scrollToClosestDate(J)}_handleSearchChange(te){typeof te.detail=="string"&&(this.searchQuery=te.detail,this._searchTimeout&&clearTimeout(this._searchTimeout),this._searchTimeout=setTimeout(()=>{this.api.broker.send(new SearchActivityHistoryItems(this.searchQuery))},300))}async _raiseEcapCronogramEvent(){const te=await this.api.broker.send("get_patient_cip");this.api.ecapEventManager.publish("CRONOGRAMA","NO_TANCAR",{CIP:te})}scrollToClosestDate(te){const J=te.getTime();this.shadowRoot.querySelector("activity-history-timeline")._scrollIntoDate(J)}};ActivityHistoryMain.styles=i$w`
|
|
648
|
+
${r$G(styles$b)}
|
|
649
|
+
`,__decorateClass$k([n$z({type:Boolean,reflect:!0})],ActivityHistoryMain.prototype,"maximized",2),__decorateClass$k([lazyInject$2(TYPES$2.primaryApi)],ActivityHistoryMain.prototype,"api",2),__decorateClass$k([connectedProperty(activityHistoryCollectionsSelector)],ActivityHistoryMain.prototype,"historyItems",2),__decorateClass$k([connectedProperty(isCollectionInitialState)],ActivityHistoryMain.prototype,"isCollectionInitialState",2),__decorateClass$k([connectedProperty(isSomeCollectionLoadedAndOtherLoading)],ActivityHistoryMain.prototype,"isSomeCollectionLoadedAndOtherLoading",2),__decorateClass$k([n$z()],ActivityHistoryMain.prototype,"searchQuery",2),ActivityHistoryMain=__decorateClass$k([t$l("activity-history-main")],ActivityHistoryMain);const registerViews$2=te=>{te.regionManager.registerView(te.regionManager.regions.clinicalMonitoring.content,{id:te.pluginInfo.pluginId,factory:()=>Promise.resolve(new ActivityHistoryMain)})},unregisterViews$2=()=>{const te=container$2.get(TYPES$2.primaryApi);te.regionManager.removeView(te.regionManager.regions.clinicalMonitoring.content,te.pluginInfo.pluginId)},bootstrapFeatures=te=>{bootstrapActivityHistoryItem(te)},teardownFeatures=()=>{teardownActivityHistoryItem()},initialize$2=async te=>(setShellApiForOwnSpec(te),registerViews$2(te),await initializeLocalization(te),bindDeps(te),bootstrapFeatures(te),Promise.resolve()),dispose$2=()=>(setShellApiForOwnSpec(null),teardownFeatures(),unregisterViews$2(),unbindDeps(),Promise.resolve()),styles$a=":host{min-height:1px;height:100%;width:100%}.wrapper{position:relative;min-height:1px;height:100%;display:flex;flex-direction:row}.wrapper #widgets-sidebar-region{width:25%;border-left:1px solid rgb(189,189,189);overflow:auto}.wrapper .content{flex:1;display:flex;flex-direction:column}.wrapper .content #header-widgets-region{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;padding:24px 24px 0}.wrapper .content #content-widgets-region{flex:1;min-height:1px;height:100%;padding:24px}@media (max-width: 1024px){:host{min-height:100vh}.wrapper{flex-direction:column}.wrapper #widgets-sidebar-region{max-width:100%;width:auto;border-left:none;padding-inline:40px;padding-bottom:24px;overflow:auto}.wrapper .content #header-widgets-region{grid-template-columns:1fr;gap:16px}.wrapper .content #content-widgets-region{height:70vh;flex:none}}",template$c=te=>ke$1`
|
|
648
650
|
<div class="wrapper">
|
|
649
651
|
<div class="content">
|
|
650
652
|
<div id="header-widgets-region"></div>
|
|
@@ -652,9 +654,9 @@ ${te.searchString?.length>1?ke$1`
|
|
|
652
654
|
</div>
|
|
653
655
|
<div id="widgets-sidebar-region"></div>
|
|
654
656
|
</div>
|
|
655
|
-
`,TYPES$1={primaryApi:Symbol.for("primaryApi")},container$1=new Container,{lazyInject:lazyInject$1}=getDecorators(container$1);var __defProp$
|
|
656
|
-
${r$G(styles$
|
|
657
|
-
`;let ClinicalMonitoring=Is;__decorateClass$
|
|
657
|
+
`,TYPES$1={primaryApi:Symbol.for("primaryApi")},container$1=new Container,{lazyInject:lazyInject$1}=getDecorators(container$1);var __defProp$e=Object.defineProperty,__decorateClass$j=(te,J,X,re)=>{for(var ne=void 0,oe=te.length-1,de;oe>=0;oe--)(de=te[oe])&&(ne=de(J,X,ne)||ne);return ne&&__defProp$e(J,X,ne),ne};const Is=class Is extends PrimariaRegionHost(h$n){render(){return ke$1`${template$c()}`}firstUpdated(){this._observeMaximizedState()}_observeMaximizedState(){const J=this.renderRoot.querySelector("#content-widgets-region");if(!J)return;new MutationObserver(()=>{const re=J.querySelector("activity-history-main");if(!re)return;const ne=re.hasAttribute("maximized")||re.maximized;this._toggleWidgetsVisibility(!ne)}).observe(J,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["maximized"]})}_toggleWidgetsVisibility(J){const X=this.renderRoot.querySelector("#widgets-sidebar-region"),re=this.renderRoot.querySelector("#header-widgets-region");X&&(X.style.display=J?"":"none"),re&&(re.style.display=J?"":"none")}};Is.styles=i$w`
|
|
658
|
+
${r$G(styles$a)}
|
|
659
|
+
`;let ClinicalMonitoring=Is;__decorateClass$j([lazyInject$1(TYPES$1.primaryApi)],ClinicalMonitoring.prototype,"api"),__decorateClass$j([s$z({targetId:"widgets-sidebar-region",name:"clinical-monitoring-widgets-sidebar-region"})],ClinicalMonitoring.prototype,"sidebarRegion"),__decorateClass$j([s$z({targetId:"header-widgets-region",name:"clinical-monitoring-header-widgets-region"})],ClinicalMonitoring.prototype,"headerRegion"),__decorateClass$j([s$z({targetId:"content-widgets-region",name:"clinical-monitoring-content-widgets-region"})],ClinicalMonitoring.prototype,"contentRegion");const registerViews$1=async te=>{t$l("clinical-monitoring")(ClinicalMonitoring),te.regionManager.registerMainView({id:te.pluginInfo.pluginId,factory:()=>{const J=new ClinicalMonitoring;return Promise.resolve(J)},isDefault:!0}),te.regionManager.registerView(te.regionManager.regions.shell.navigationMenu,{id:te.pluginInfo.pluginId,factory:()=>{const J=new PrimariaNavItem({icon:"account_box",label:"Seguiment clínic",callbackFn:()=>{te.regionManager.activateMainView(te.pluginInfo.pluginId)}});return Promise.resolve(J)},sortHint:"0020"}),setTimeout(()=>{activateClinicalMonitoringView$1(te)},300)},unregisterViews$1=te=>{te.regionManager.removeView(te.regionManager.regions.shell.main,te.pluginInfo.pluginId),te.regionManager.removeView(te.regionManager.regions.shell.navigationMenu,te.pluginInfo.pluginId)},activateClinicalMonitoringView$1=te=>{te.regionManager.activateMainView(te.pluginInfo.pluginId)},initialize$1=async te=>(registerViews$1(te),Promise.resolve()),dispose$1=te=>(unregisterViews$1(te),Promise.resolve()),styles$9=":host{min-height:1px;height:100%;width:100%}.wrapper{position:relative;min-height:1px;height:100%;display:flex;flex-direction:row}.wrapper #widgets-sidebar-region{width:50%;border-left:1px solid rgb(189,189,189);overflow:auto}.wrapper .content{flex:1;display:flex;flex-direction:column}.wrapper .content #header-widgets-region{display:grid;grid-template-columns:repeat(2,1fr);gap:24px;padding:24px 24px 0}.wrapper .content #content-widgets-region{flex:1;min-height:1px;height:100%;padding:24px}@media (max-width: 1024px){:host{min-height:100vh}.wrapper{flex-direction:column-reverse}.wrapper #widgets-sidebar-region{max-width:100%;width:auto;border-left:none;padding-inline:40px;padding-bottom:24px;overflow:auto}.wrapper .content #header-widgets-region{grid-template-columns:1fr;gap:16px}.wrapper .content #content-widgets-region{height:70vh;flex:none}}",template$b=te=>ke$1`
|
|
658
660
|
<div class="wrapper">
|
|
659
661
|
<div class="content">
|
|
660
662
|
<div id="header-widgets-region"></div>
|
|
@@ -662,9 +664,9 @@ ${te.searchString?.length>1?ke$1`
|
|
|
662
664
|
</div>
|
|
663
665
|
<div id="widgets-sidebar-region"></div>
|
|
664
666
|
</div>
|
|
665
|
-
`,TYPES={primaryApi:Symbol.for("primaryApi")},container=new Container,{lazyInject}=getDecorators(container);var __defProp$
|
|
666
|
-
${r$G(styles$
|
|
667
|
-
`;let AdminClinicalMonitoring=Ls;__decorateClass$h([lazyInject(TYPES.primaryApi)],AdminClinicalMonitoring.prototype,"api"),__decorateClass$h([s$z({targetId:"widgets-sidebar-region",name:"clinical-monitoring-widgets-sidebar-region"})],AdminClinicalMonitoring.prototype,"sidebarRegion"),__decorateClass$h([s$z({targetId:"header-widgets-region",name:"clinical-monitoring-header-widgets-region"})],AdminClinicalMonitoring.prototype,"headerRegion"),__decorateClass$h([s$z({targetId:"content-widgets-region",name:"clinical-monitoring-content-widgets-region"})],AdminClinicalMonitoring.prototype,"contentRegion");const registerViews=async te=>{t$l("clinical-monitoring")(AdminClinicalMonitoring),te.regionManager.registerMainView({id:te.pluginInfo.pluginId,factory:()=>{const J=new AdminClinicalMonitoring;return Promise.resolve(J)},isDefault:!0}),te.regionManager.registerView(te.regionManager.regions.shell.navigationMenu,{id:te.pluginInfo.pluginId,factory:()=>{const J=new PrimariaNavItem({icon:"account_box",label:"Seguiment clínic",callbackFn:()=>{te.regionManager.activateMainView(te.pluginInfo.pluginId)}});return Promise.resolve(J)},sortHint:"0020"}),setTimeout(()=>{activateClinicalMonitoringView(te)},300)},unregisterViews=te=>{te.regionManager.removeView(te.regionManager.regions.shell.main,te.pluginInfo.pluginId),te.regionManager.removeView(te.regionManager.regions.shell.navigationMenu,te.pluginInfo.pluginId)},activateClinicalMonitoringView=te=>{te.regionManager.activateMainView(te.pluginInfo.pluginId)},initialize=async te=>(registerViews(te),Promise.resolve()),dispose=te=>(unregisterViews(te),Promise.resolve()),isUserRoleAdministrative=te=>te==="ADM";let bootstrappedPlugins=[];const commonPlugins=[{pluginId:"activity-history",importer:()=>Promise.resolve({initialize:initialize$2,dispose:dispose$2})}],doctorInternalPlugins=[{pluginId:"clinical-monitoring",importer:()=>Promise.resolve({initialize:initialize$1,dispose:dispose$1})}],administrativeInternalPlugins=[{pluginId:"admin-clinical-monitoring",importer:()=>Promise.resolve({initialize,dispose})}],getPluginsByUserRole=te=>isUserRoleAdministrative(te)?commonPlugins.concat(administrativeInternalPlugins):commonPlugins.concat(doctorInternalPlugins),bootstrapPlugins=async(te,J)=>{const re=getPluginsByUserRole(J).concat(te||[]);bootstrappedPlugins=await v$i(re,primariaApiFactory)},disposePlugins=async()=>Promise.all(bootstrappedPlugins.map(te=>te?.dispose()));var __getOwnPropDesc$6=Object.getOwnPropertyDescriptor,__decorateClass$g=(te,J,X,re)=>{for(var ne=re>1?void 0:re?__getOwnPropDesc$6(J,X):J,oe=te.length-1,de;oe>=0;oe--)(de=te[oe])&&(ne=de(ne)||ne);return ne},__decorateParam$4=(te,J)=>(X,re)=>J(X,re,te);let ExitShellHandler=class{constructor(te){this.api=te}async handle(te){const J=te&&te.ecapEvent!==void 0?te:void 0;try{const X=this.api.pluginBusyManager.getBusyPluginTasks();if(X.length>0){const{confirmed:re}=await this.askForClose(X);if(!re)return}await Promise.race([disposePlugins(),this.timeout(1e4)]),disposeShell(),this.emitClose(J)}catch(X){this.api.notificationService.error(X.message),this.emitClose(J)}}askForClose(te){return this.api.interactionService.confirm({busyTasks:te},{component:PluginBusyList},{title:translate$1("actions.askExit"),state:"error",confirmButtonText:"Sí",cancelButtonText:"No"})}timeout(te){return new Promise(J=>setTimeout(J,te))}emitClose(te){te?raiseCustomCloseEvent(te):raiseCloseEvent()}};ExitShellHandler=__decorateClass$g([__decorateParam$4(0,inject(TYPES$3.primaryApi))],ExitShellHandler);class ExitShell{constructor(J,X){this.ecapEvent=J,this.payload=X}}let request$3;const useExitShell=te=>{disposeExitShell(),request$3=registerRequest(te,container$3)(ExitShell,ExitShellHandler)},disposeExitShell=()=>{request$3?.dispose()};var __getOwnPropDesc$5=Object.getOwnPropertyDescriptor,__decorateClass$f=(te,J,X,re)=>{for(var ne=re>1?void 0:re?__getOwnPropDesc$5(J,X):J,oe=te.length-1,de;oe>=0;oe--)(de=te[oe])&&(ne=de(ne)||ne);return ne},__decorateParam$3=(te,J)=>(X,re)=>J(X,re,te);let GetUserInfoBackendAdapter=class{constructor(te){this.api=te}getUserInfo(){const te=jwtDecode(this.api.tokenManager.getToken()),J={userId:this.getUserId(te.access_info),firstName:te.access_info.trace_user_given_name,familyName:te.access_info.trace_user_family_name,lastName:te.access_info.trace_user_last_name,registrationNumber:te.access_info.identifier.find(X=>X.type==="NUMCOL")?.value,workCenter:te.access_info.center_code,role:te.access_info.role_type,speciality:te.access_info.professional_category};return Promise.resolve(J)}getUserId(te){return te.identifier?.find(J=>J.type==="DNI")?.value||te.identifier?.find(J=>J.type==="NIE")?.value}};GetUserInfoBackendAdapter=__decorateClass$f([injectable(),__decorateParam$3(0,inject(TYPES$3.primaryApi))],GetUserInfoBackendAdapter);var __getOwnPropDesc$4=Object.getOwnPropertyDescriptor,__decorateClass$e=(te,J,X,re)=>{for(var ne=re>1?void 0:re?__getOwnPropDesc$4(J,X):J,oe=te.length-1,de;oe>=0;oe--)(de=te[oe])&&(ne=de(ne)||ne);return ne},__decorateParam$2=(te,J)=>(X,re)=>J(X,re,te);let GetUserInfoHandler=class{constructor(te,J){this.api=te,this.backendAdapter=J}async handle(te){try{const J=await this.backendAdapter.getUserInfo();return this.api.globalStateManager.setData("userInfo",J),J}catch(J){this.api.notificationService.error(J.message)}}};GetUserInfoHandler=__decorateClass$e([__decorateParam$2(0,inject(TYPES$3.primaryApi)),__decorateParam$2(1,inject(GetUserInfoBackendAdapter))],GetUserInfoHandler);class GetUserInfo{}let request$2;const useGetUserInfo=te=>{disposeGetUserInfo(),request$2=registerRequest(te,container$3)(GetUserInfo,GetUserInfoHandler),registerDep(GetUserInfoBackendAdapter)},disposeGetUserInfo=()=>{request$2?.dispose(),unregisterDep(GetUserInfoBackendAdapter)};var __getOwnPropDesc$3=Object.getOwnPropertyDescriptor,__decorateClass$d=(te,J,X,re)=>{for(var ne=re>1?void 0:re?__getOwnPropDesc$3(J,X):J,oe=te.length-1,de;oe>=0;oe--)(de=te[oe])&&(ne=de(ne)||ne);return ne},__decorateParam$1=(te,J)=>(X,re)=>J(X,re,te);let GetVisitIdHandler=class{constructor(te){this.api=te}async handle(te){try{return await this.getVisitId()}catch(J){this.api.notificationService.error(J.message);return}}getVisitId(){const J=new URLSearchParams(window.location.search).get("visit_id");return Promise.resolve(J||void 0)}};GetVisitIdHandler=__decorateClass$d([__decorateParam$1(0,inject(TYPES$3.primaryApi))],GetVisitIdHandler);class GetVisitId{}let request$1;const useGetVisitId=te=>{disposeGetVisitId(),request$1=registerRequest(te,container$3)(GetVisitId,GetVisitIdHandler)},disposeGetVisitId=()=>{request$1?.dispose()};var __getOwnPropDesc$2=Object.getOwnPropertyDescriptor,__decorateClass$c=(te,J,X,re)=>{for(var ne=re>1?void 0:re?__getOwnPropDesc$2(J,X):J,oe=te.length-1,de;oe>=0;oe--)(de=te[oe])&&(ne=de(ne)||ne);return ne},__decorateParam=(te,J)=>(X,re)=>J(X,re,te);let FinalizeVisitHandler=class{constructor(te){this.api=te}async handle(te){try{const J=te.visitId;this.api.broker.send(new ExitShell("RESOL_VISITA",{VisiID:J}))}catch(J){this.api.notificationService.error(J.message)}}};FinalizeVisitHandler=__decorateClass$c([__decorateParam(0,inject(TYPES$3.primaryApi))],FinalizeVisitHandler);class FinalizeVisit{constructor(J){this.visitId=J}}let request;const useFinalizeVisit=te=>{disposeFinalizeVisit(),request=registerRequest(te,container$3)(FinalizeVisit,FinalizeVisitHandler)},disposeFinalizeVisit=()=>{request?.dispose()},useFeatures=te=>{container$3.bind(TYPES$3.primaryApi).toConstantValue(te),useGetUserInfo(te),useExitShell(te),useGetVisitId(te),useFinalizeVisit(te),te.broker.send(new GetUserInfo)},disposeFeatures=te=>{disposeGetUserInfo(),disposeExitShell(),disposeGetVisitId(),disposeFinalizeVisit(),container$3.unbindAll(),te.regionManager._destroy(),mediatorSettings.resolver.clear()},disposeShell=()=>{disposeFeatures(shellApi)},raiseCloseEvent=()=>{shellApi.ecapEventManager.publish("CLOSE_FORM","",{})},raiseCustomCloseEvent=te=>{shellApi.ecapEventManager.publish(te.ecapEvent,"",te.payload)};var shellViews=(te=>(te.shell="primaria-shell",te.error="primaria-error-view",te))(shellViews||{});const styles$7=":host{width:100%;overflow:hidden}#main-switcher{display:inherit}.container{width:100%;height:100%;display:flex;flex-direction:column;background:#fff}.main-container{min-height:1px;height:100%;display:flex}.main-container .sidebar{padding-inline:16px;display:flex;flex-direction:column;justify-content:space-between;align-items:center;background:var(--color-primary-700);width:40px;height:100%;color:#fff}.main-container .sidebar .quick-actions-content{padding-top:24px;padding-bottom:22px;border-radius:8px}.main-container .sidebar .quick-actions-content .create-button-icon-badge{position:relative}.main-container .sidebar .quick-actions-content .create-button-icon-badge dss-notification-badge{position:absolute;top:-7px;right:-6px;z-index:1}.main-container .sidebar .quick-actions-content .create-button-icon-badge dss-icon{position:relative}.main-container .sidebar .icon{margin-left:8px}.main-container .sidebar #menu-region-container{padding-top:24px;min-height:1px;height:100%;width:100%;display:flex;flex-direction:column;gap:4px;overflow-y:auto;margin-right:-14px;padding-right:14px;scrollbar-color:var(--color-primary-200) var(--color-primary-700);scrollbar-width:thin}.main-container .sidebar #menu-region-container::-webkit-scrollbar{width:6px}.main-container .sidebar #menu-region-container::-webkit-scrollbar-track{background:var(--color-primary-700)}.main-container .sidebar #menu-region-container::-webkit-scrollbar-thumb{background-color:var(--color-primary-400);border-radius:4px}.main-container .sidebar .bottom-content{display:flex;flex-direction:column;gap:24px;width:100%}.main-container .sidebar .bottom-content .bottom-content-first{display:flex;flex-direction:column;gap:22px}.main-container .sidebar[expanded]{width:252px;align-items:flex-start}.main-container .sidebar .create-button-closed{cursor:pointer;background-color:#f0f0f0;color:var(--color-primary-700);border-radius:8px;width:40px;height:40px;display:flex;flex-direction:row;align-items:center;justify-content:center;transition:background-color .3s ease}.main-container .sidebar .create-button-closed:hover{background-color:var(--color-primary-900);color:#fff}.main-container .sidebar .create-button-opened{cursor:pointer;background-color:#f0f0f0;color:var(--color-primary-700);border-radius:8px;gap:8px;font-weight:600;width:220px;height:40px;display:flex;flex-direction:row;align-items:center;transition:background-color .3s ease}.main-container .sidebar .create-button-opened:hover{background-color:var(--color-primary-900);color:#fff}.main-container .content{display:flex;height:100%;width:100%}.main-container #main-region-container{min-height:1px;height:100%;flex:1}.main-container #navigation-menu-lower-region-container{display:flex;flex-direction:column;gap:4px}.main-container #floating-region-container{position:fixed;z-index:300}.footer{display:flex;height:48px;padding:12px 24px}.footer .footer-logo{align-self:center;display:flex;gap:16px}.divider-opened{width:220px}.divider-closed{width:40px}.toggle-button{margin-bottom:24px}@media (max-width: 1024px){.bottom-content-first{margin-bottom:24px}.toggle-button{display:none}.content{overflow-y:auto}}";let t$h="";function f$p(){return t$h}function s$s(te,J){const X=f$p(),re=`${te}${X}`;customElements.define(re,J)}const e$K="*,*:before,*:after{box-sizing:border-box}*{margin:0;padding:0;font-family:var(--font-family)}ul,ol{list-style:none}",o$H={type:Boolean,converter:{fromAttribute:te=>te!==null&&te!=="false",toAttribute:te=>te?"true":null}},n$w={type:Array,converter:{fromAttribute:te=>{if(!te)return[];const J=JSON.parse(te);return Array.isArray(J)?J.map(X=>X.toString()):[J.toString()]},toAttribute:te=>JSON.stringify(te)}},i$s=':host{display:flex;align-items:center}.dss-icon,.material-symbols-rounded{font-family:var(--icon-font);font-size:var(--icon-size-md);font-weight:400;font-style:normal;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;-webkit-font-feature-settings:"liga";-webkit-font-smoothing:antialiased;font-variation-settings:"FILL" 0,"wght" 400,"GRAD" 0,"opsz" 24}.dss-icon--fill,.material-symbols-rounded--fill{font-variation-settings:"FILL" 1}.dss-icon--sm{font-size:var(--icon-size-sm)}.dss-icon--md{font-size:var(--icon-size-md)}.dss-icon--lg{font-size:var(--icon-size-lg)}.dss-icon--xl{font-size:var(--icon-size-xl)}.dss-icon-ghost{display:inline-block;height:var(--icon-size-md);width:var(--icon-size-md);overflow:hidden;background-color:transparent}.dss-icon-ghost--sm{height:var(--icon-size-sm);width:var(--icon-size-sm);border-radius:var(--dss-radius-xs)}.dss-icon-ghost--lg{height:var(--icon-size-lg);width:var(--icon-size-lg)}.dss-icon-ghost--xl{height:var(--icon-size-xl);width:var(--icon-size-xl)}',d$n=te=>ke$1`
|
|
667
|
+
`,TYPES={primaryApi:Symbol.for("primaryApi")},container=new Container,{lazyInject}=getDecorators(container);var __defProp$d=Object.defineProperty,__decorateClass$i=(te,J,X,re)=>{for(var ne=void 0,oe=te.length-1,de;oe>=0;oe--)(de=te[oe])&&(ne=de(J,X,ne)||ne);return ne&&__defProp$d(J,X,ne),ne};const Ls=class Ls extends PrimariaRegionHost(h$n){render(){return ke$1`${template$b()}`}firstUpdated(){this._observeMaximizedState()}_observeMaximizedState(){const J=this.renderRoot.querySelector("#content-widgets-region");if(!J)return;new MutationObserver(()=>{const re=J.querySelector("activity-history-main");if(!re)return;const ne=re.hasAttribute("maximized")||re.maximized;this._toggleWidgetsVisibility(!ne)}).observe(J,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["maximized"]})}_toggleWidgetsVisibility(J){const X=this.renderRoot.querySelector("#widgets-sidebar-region"),re=this.renderRoot.querySelector("#header-widgets-region");X&&(X.style.display=J?"":"none"),re&&(re.style.display=J?"":"none")}};Ls.styles=i$w`
|
|
668
|
+
${r$G(styles$9)}
|
|
669
|
+
`;let AdminClinicalMonitoring=Ls;__decorateClass$i([lazyInject(TYPES.primaryApi)],AdminClinicalMonitoring.prototype,"api"),__decorateClass$i([s$z({targetId:"widgets-sidebar-region",name:"clinical-monitoring-widgets-sidebar-region"})],AdminClinicalMonitoring.prototype,"sidebarRegion"),__decorateClass$i([s$z({targetId:"header-widgets-region",name:"clinical-monitoring-header-widgets-region"})],AdminClinicalMonitoring.prototype,"headerRegion"),__decorateClass$i([s$z({targetId:"content-widgets-region",name:"clinical-monitoring-content-widgets-region"})],AdminClinicalMonitoring.prototype,"contentRegion");const registerViews=async te=>{t$l("clinical-monitoring")(AdminClinicalMonitoring),te.regionManager.registerMainView({id:te.pluginInfo.pluginId,factory:()=>{const J=new AdminClinicalMonitoring;return Promise.resolve(J)},isDefault:!0}),te.regionManager.registerView(te.regionManager.regions.shell.navigationMenu,{id:te.pluginInfo.pluginId,factory:()=>{const J=new PrimariaNavItem({icon:"account_box",label:"Seguiment clínic",callbackFn:()=>{te.regionManager.activateMainView(te.pluginInfo.pluginId)}});return Promise.resolve(J)},sortHint:"0020"}),setTimeout(()=>{activateClinicalMonitoringView(te)},300)},unregisterViews=te=>{te.regionManager.removeView(te.regionManager.regions.shell.main,te.pluginInfo.pluginId),te.regionManager.removeView(te.regionManager.regions.shell.navigationMenu,te.pluginInfo.pluginId)},activateClinicalMonitoringView=te=>{te.regionManager.activateMainView(te.pluginInfo.pluginId)},initialize=async te=>(registerViews(te),Promise.resolve()),dispose=te=>(unregisterViews(te),Promise.resolve());let bootstrappedPlugins=[];const commonPlugins=[{pluginId:"activity-history",importer:()=>Promise.resolve({initialize:initialize$2,dispose:dispose$2})}],doctorInternalPlugins=[{pluginId:"clinical-monitoring",importer:()=>Promise.resolve({initialize:initialize$1,dispose:dispose$1})}],administrativeInternalPlugins=[{pluginId:"admin-clinical-monitoring",importer:()=>Promise.resolve({initialize,dispose})}],getPluginsByUserRole=te=>te?commonPlugins.concat(administrativeInternalPlugins):commonPlugins.concat(doctorInternalPlugins),bootstrapPlugins=async te=>{const J=shellApi.userManager.isUserRoleAdministrative(),re=getPluginsByUserRole(J).concat(te||[]);bootstrappedPlugins=await v$i(re,primariaApiFactory)},disposePlugins=async()=>Promise.all(bootstrappedPlugins.map(te=>te?.dispose()));var __getOwnPropDesc$7=Object.getOwnPropertyDescriptor,__decorateClass$h=(te,J,X,re)=>{for(var ne=re>1?void 0:re?__getOwnPropDesc$7(J,X):J,oe=te.length-1,de;oe>=0;oe--)(de=te[oe])&&(ne=de(ne)||ne);return ne},__decorateParam$4=(te,J)=>(X,re)=>J(X,re,te);let ExitShellHandler=class{constructor(te){this.api=te}async handle(te){const J=te&&te.ecapEvent!==void 0?te:void 0;try{const X=this.api.pluginBusyManager.getBusyPluginTasks();if(X.length>0){const{confirmed:re}=await this.askForClose(X);if(!re)return}await Promise.race([disposePlugins(),this.timeout(1e4)]),disposeShell(),this.emitClose(J)}catch(X){this.api.notificationService.error(X.message),this.emitClose(J)}}askForClose(te){return this.api.interactionService.confirm({busyTasks:te},{component:PluginBusyList},{title:translate$1("actions.askExit"),state:"error",confirmButtonText:"Sí",cancelButtonText:"No"})}timeout(te){return new Promise(J=>setTimeout(J,te))}emitClose(te){te?raiseCustomCloseEvent(te):raiseCloseEvent()}};ExitShellHandler=__decorateClass$h([__decorateParam$4(0,inject(TYPES$3.primaryApi))],ExitShellHandler);class ExitShell{constructor(J,X){this.ecapEvent=J,this.payload=X}}let request$3;const useExitShell=te=>{disposeExitShell(),request$3=registerRequest(te,container$3)(ExitShell,ExitShellHandler)},disposeExitShell=()=>{request$3?.dispose()};var __getOwnPropDesc$6=Object.getOwnPropertyDescriptor,__decorateClass$g=(te,J,X,re)=>{for(var ne=re>1?void 0:re?__getOwnPropDesc$6(J,X):J,oe=te.length-1,de;oe>=0;oe--)(de=te[oe])&&(ne=de(ne)||ne);return ne},__decorateParam$3=(te,J)=>(X,re)=>J(X,re,te);let GetUserInfoBackendAdapter=class{constructor(te){this.api=te}getUserInfo(){const te=jwtDecode(this.api.tokenManager.getToken()),J={userId:this.getUserId(te.access_info),firstName:te.access_info.trace_user_given_name,familyName:te.access_info.trace_user_family_name,lastName:te.access_info.trace_user_last_name,registrationNumber:te.access_info.identifier.find(X=>X.type==="NUMCOL")?.value,workCenter:te.access_info.center_code,role:te.access_info.role_type,speciality:te.access_info.professional_category};return Promise.resolve(J)}getUserId(te){return te.identifier?.find(J=>J.type==="DNI")?.value||te.identifier?.find(J=>J.type==="NIE")?.value}};GetUserInfoBackendAdapter=__decorateClass$g([injectable(),__decorateParam$3(0,inject(TYPES$3.primaryApi))],GetUserInfoBackendAdapter);var __getOwnPropDesc$5=Object.getOwnPropertyDescriptor,__decorateClass$f=(te,J,X,re)=>{for(var ne=re>1?void 0:re?__getOwnPropDesc$5(J,X):J,oe=te.length-1,de;oe>=0;oe--)(de=te[oe])&&(ne=de(ne)||ne);return ne},__decorateParam$2=(te,J)=>(X,re)=>J(X,re,te);let GetUserInfoHandler=class{constructor(te,J){this.api=te,this.backendAdapter=J}async handle(te){try{const J=await this.backendAdapter.getUserInfo();return this.api.globalStateManager.setData("userInfo",J),J}catch(J){this.api.notificationService.error(J.message)}}};GetUserInfoHandler=__decorateClass$f([__decorateParam$2(0,inject(TYPES$3.primaryApi)),__decorateParam$2(1,inject(GetUserInfoBackendAdapter))],GetUserInfoHandler);class GetUserInfo{}let request$2;const useGetUserInfo=te=>{disposeGetUserInfo(),request$2=registerRequest(te,container$3)(GetUserInfo,GetUserInfoHandler),registerDep(GetUserInfoBackendAdapter)},disposeGetUserInfo=()=>{request$2?.dispose(),unregisterDep(GetUserInfoBackendAdapter)};var __getOwnPropDesc$4=Object.getOwnPropertyDescriptor,__decorateClass$e=(te,J,X,re)=>{for(var ne=re>1?void 0:re?__getOwnPropDesc$4(J,X):J,oe=te.length-1,de;oe>=0;oe--)(de=te[oe])&&(ne=de(ne)||ne);return ne},__decorateParam$1=(te,J)=>(X,re)=>J(X,re,te);let GetVisitIdHandler=class{constructor(te){this.api=te}async handle(te){try{return await this.getVisitId()}catch(J){this.api.notificationService.error(J.message);return}}getVisitId(){const J=new URLSearchParams(window.location.search).get("visit_id");return Promise.resolve(J||void 0)}};GetVisitIdHandler=__decorateClass$e([__decorateParam$1(0,inject(TYPES$3.primaryApi))],GetVisitIdHandler);class GetVisitId{}let request$1;const useGetVisitId=te=>{disposeGetVisitId(),request$1=registerRequest(te,container$3)(GetVisitId,GetVisitIdHandler)},disposeGetVisitId=()=>{request$1?.dispose()};var __getOwnPropDesc$3=Object.getOwnPropertyDescriptor,__decorateClass$d=(te,J,X,re)=>{for(var ne=re>1?void 0:re?__getOwnPropDesc$3(J,X):J,oe=te.length-1,de;oe>=0;oe--)(de=te[oe])&&(ne=de(ne)||ne);return ne},__decorateParam=(te,J)=>(X,re)=>J(X,re,te);let FinalizeVisitHandler=class{constructor(te){this.api=te}async handle(te){try{const J=te.visitId;this.api.broker.send(new ExitShell("RESOL_VISITA",{VisiID:J}))}catch(J){this.api.notificationService.error(J.message)}}};FinalizeVisitHandler=__decorateClass$d([__decorateParam(0,inject(TYPES$3.primaryApi))],FinalizeVisitHandler);class FinalizeVisit{constructor(J){this.visitId=J}}let request;const useFinalizeVisit=te=>{disposeFinalizeVisit(),request=registerRequest(te,container$3)(FinalizeVisit,FinalizeVisitHandler)},disposeFinalizeVisit=()=>{request?.dispose()},useFeatures=te=>{container$3.bind(TYPES$3.primaryApi).toConstantValue(te),useGetUserInfo(te),useExitShell(te),useGetVisitId(te),useFinalizeVisit(te),te.broker.send(new GetUserInfo)},disposeFeatures=te=>{disposeGetUserInfo(),disposeExitShell(),disposeGetVisitId(),disposeFinalizeVisit(),container$3.unbindAll(),te.regionManager._destroy(),mediatorSettings.resolver.clear()},disposeShell=()=>{disposeFeatures(shellApi)},raiseCloseEvent=()=>{shellApi.ecapEventManager.publish("CLOSE_FORM","",{})},raiseCustomCloseEvent=te=>{shellApi.ecapEventManager.publish(te.ecapEvent,"",te.payload)};var shellViews=(te=>(te.shell="primaria-shell",te.error="primaria-error-view",te))(shellViews||{});const styles$8=":host{width:100%;overflow:hidden}#main-switcher{display:inherit}.container{width:100%;height:100%;display:flex;flex-direction:column;background:#fff}.main-container{min-height:1px;height:100%;display:flex}.main-container .sidebar{padding-inline:16px;display:flex;flex-direction:column;justify-content:space-between;align-items:center;background:var(--color-primary-700);width:40px;height:100%;color:#fff}.main-container .sidebar .quick-actions-content{padding-top:24px;padding-bottom:22px;border-radius:8px}.main-container .sidebar .quick-actions-content .create-button-icon-badge{position:relative}.main-container .sidebar .quick-actions-content .create-button-icon-badge dss-notification-badge{position:absolute;top:-7px;right:-6px;z-index:1}.main-container .sidebar .quick-actions-content .create-button-icon-badge dss-icon{position:relative}.main-container .sidebar .icon{margin-left:8px}.main-container .sidebar #menu-region-container{padding-top:24px;min-height:1px;height:100%;width:100%;display:flex;flex-direction:column;gap:4px;overflow-y:auto;margin-right:-14px;padding-right:14px;scrollbar-color:var(--color-primary-200) var(--color-primary-700);scrollbar-width:thin}.main-container .sidebar #menu-region-container::-webkit-scrollbar{width:6px}.main-container .sidebar #menu-region-container::-webkit-scrollbar-track{background:var(--color-primary-700)}.main-container .sidebar #menu-region-container::-webkit-scrollbar-thumb{background-color:var(--color-primary-400);border-radius:4px}.main-container .sidebar .bottom-content{display:flex;flex-direction:column;gap:24px;width:100%}.main-container .sidebar .bottom-content .bottom-content-first{display:flex;flex-direction:column;gap:22px}.main-container .sidebar[expanded]{width:252px;align-items:flex-start}.main-container .sidebar .create-button-closed{cursor:pointer;background-color:#f0f0f0;color:var(--color-primary-700);border-radius:8px;width:40px;height:40px;display:flex;flex-direction:row;align-items:center;justify-content:center;transition:background-color .3s ease}.main-container .sidebar .create-button-closed:hover{background-color:var(--color-primary-900);color:#fff}.main-container .sidebar .create-button-opened{cursor:pointer;background-color:#f0f0f0;color:var(--color-primary-700);border-radius:8px;gap:8px;font-weight:600;width:220px;height:40px;display:flex;flex-direction:row;align-items:center;transition:background-color .3s ease}.main-container .sidebar .create-button-opened:hover{background-color:var(--color-primary-900);color:#fff}.main-container .content{display:flex;height:100%;width:100%}.main-container #main-region-container{min-height:1px;height:100%;flex:1}.main-container #navigation-menu-lower-region-container{display:flex;flex-direction:column;gap:4px}.main-container #floating-region-container{position:fixed;z-index:300}.footer{display:flex;height:48px;padding:12px 24px}.footer .footer-logo{align-self:center;display:flex;gap:16px}.divider-opened{width:220px}.divider-closed{width:40px}.toggle-button{margin-bottom:24px}@media (max-width: 1024px){.bottom-content-first{margin-bottom:24px}.toggle-button{display:none}.content{overflow-y:auto}}";let t$h="";function f$p(){return t$h}function s$s(te,J){const X=f$p(),re=`${te}${X}`;customElements.define(re,J)}const e$K="*,*:before,*:after{box-sizing:border-box}*{margin:0;padding:0;font-family:var(--font-family)}ul,ol{list-style:none}",o$H={type:Boolean,converter:{fromAttribute:te=>te!==null&&te!=="false",toAttribute:te=>te?"true":null}},n$w={type:Array,converter:{fromAttribute:te=>{if(!te)return[];const J=JSON.parse(te);return Array.isArray(J)?J.map(X=>X.toString()):[J.toString()]},toAttribute:te=>JSON.stringify(te)}},i$s=':host{display:flex;align-items:center}.dss-icon,.material-symbols-rounded{font-family:var(--icon-font);font-size:var(--icon-size-md);font-weight:400;font-style:normal;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;-webkit-font-feature-settings:"liga";-webkit-font-smoothing:antialiased;font-variation-settings:"FILL" 0,"wght" 400,"GRAD" 0,"opsz" 24}.dss-icon--fill,.material-symbols-rounded--fill{font-variation-settings:"FILL" 1}.dss-icon--sm{font-size:var(--icon-size-sm)}.dss-icon--md{font-size:var(--icon-size-md)}.dss-icon--lg{font-size:var(--icon-size-lg)}.dss-icon--xl{font-size:var(--icon-size-xl)}.dss-icon-ghost{display:inline-block;height:var(--icon-size-md);width:var(--icon-size-md);overflow:hidden;background-color:transparent}.dss-icon-ghost--sm{height:var(--icon-size-sm);width:var(--icon-size-sm);border-radius:var(--dss-radius-xs)}.dss-icon-ghost--lg{height:var(--icon-size-lg);width:var(--icon-size-lg)}.dss-icon-ghost--xl{height:var(--icon-size-xl);width:var(--icon-size-xl)}',d$n=te=>ke$1`
|
|
668
670
|
|
|
669
671
|
${te.fontLoaded?ke$1`
|
|
670
672
|
<i
|
|
@@ -3013,7 +3015,7 @@ ${te.searchString?.length>1?ke$1`
|
|
|
3013
3015
|
<slot name="menu"></slot>
|
|
3014
3016
|
</div>
|
|
3015
3017
|
</div>
|
|
3016
|
-
`};var C$8=Object.defineProperty,b$8=Object.getOwnPropertyDescriptor,i$9=(te,J,X,re)=>{for(var ne=re>1?void 0:re?b$8(J,X):J,oe=te.length-1,de;oe>=0;oe--)(de=te[oe])&&(ne=(re?de(J,X,ne):de(ne))||ne);return re&&ne&&C$8(J,X,ne),ne};let n$c=class extends h$n{constructor(){super(),this.secondaryLabelOpen="Obrir",this.secondaryLabelClose="Tamcar",this._size="lg",this._iconClose="expand_more",this._iconOpen="expand_less",this._variant="primary",this._text="",this._disabled=!1,this._isOpen=!1,this._dropdownPosition="bottom-right",this._hasMenu=!1,this._handleDocumentClickBound=this._handleDocumentClick.bind(this)}static get styles(){return[r$G(i$s),r$G(o$v),r$G(s$5)]}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this._handleDocumentClickBound)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this._handleDocumentClickBound)}get _actionMenu(){var J;const X=((J=this.shadowRoot)==null?void 0:J.querySelector('slot[name="menu"]'))||void 0;return this.requestUpdate(),X?.assignedElements()[0]}set iconClose(J){const X=this._iconClose;this._iconClose=J,this.requestUpdate("iconClose",X)}get iconClose(){return this._iconClose}set iconOpen(J){const X=this._iconOpen;this._iconOpen=J,this.requestUpdate("iconOpen",X)}get iconOpen(){return this._iconOpen}set variant(J){const X=this._variant;this._variant=J,this.requestUpdate("variant",X)}get variant(){return this._variant}set text(J){const X=this._text;this._text=J,this.requestUpdate("text",X)}get text(){return this._text}set disabled(J){const X=this._disabled;this._disabled=J,this.requestUpdate("disabled",X)}get disabled(){return this._disabled}set isOpen(J){const X=this._isOpen;this._isOpen=J,this.requestUpdate("disabled",X)}get isOpen(){return this._isOpen}set size(J){const X=this._size;J==="md"||J==="sm"?this._size=J:this._size="lg",this.requestUpdate("size",X)}get size(){return this._size}set dropdownPosition(J){const X=this._dropdownPosition;this._dropdownPosition=J,this.requestUpdate("dropdownPosition",X)}get dropdownPosition(){return this._dropdownPosition}set hasMenu(J){const X=this._hasMenu;this._hasMenu=J,this.requestUpdate("hasMenu",X)}get hasMenu(){return this._hasMenu}_dispatchMainClick(){const J={bubbles:!1,composed:!1};this.dispatchEvent(new CustomEvent("onClick",J))}_dispatchIconClick(){this._hasMenu&&this._toggleMenu();const J={bubbles:!1,composed:!1};this.dispatchEvent(new CustomEvent("onSecondaryClick",J))}_toggleMenu(){this._isOpen=!this._isOpen,this.requestUpdate()}_handleActionMenuClosed(){this._isOpen=!1,this._actionMenu&&!this._isOpen&&this._actionMenu._closeMenu()}_handleDocumentClick(J){this._clickedOutsideItem(this,J)}_clickedOutsideItem(J,X){X.composedPath().includes(J)||this._isOpen&&(this._isOpen=!1,this.requestUpdate())}async firstUpdated(){await this.updateComplete,this._actionMenu&&this._actionMenu.addEventListener("onCloseActionMenu",()=>{this._handleActionMenuClosed()})}render(){return _$7(this)}};i$9([n$z({type:String})],n$c.prototype,"iconClose",1),i$9([n$z({type:String})],n$c.prototype,"iconOpen",1),i$9([n$z({type:String})],n$c.prototype,"variant",1),i$9([n$z({type:String})],n$c.prototype,"text",1),i$9([n$z(o$H)],n$c.prototype,"disabled",1),i$9([n$z(o$H)],n$c.prototype,"isOpen",1),i$9([n$z({type:String})],n$c.prototype,"size",1),i$9([n$z({type:String})],n$c.prototype,"dropdownPosition",1),i$9([n$z(o$H)],n$c.prototype,"hasMenu",1),i$9([n$z(o$H)],n$c.prototype,"secondaryLabelOpen",2),i$9([n$z(o$H)],n$c.prototype,"secondaryLabelClose",2);const r$c=':host{display:inline-block;height:100%;width:100%;--circle: 32px;--circle-md: 24px;--circle-sm: 16px;--default-background: var(--color-white);--default-border-color: var(--color-neutral-500);--default-font-color: var(--color-neutral-900);--default-background-hover: var(--color-neutral-50);--default-font-color-active: var(--color-neutral-500);--active-background: var(--color-primary-500);--active-border-color: var(--color-primary-500);--active-font-color: var(--color-white);--completed-background: var(--color-primary-50);--disabled-background: var(--color-neutral-100);--disabled-border-color: var(--color-neutral-100);--disabled-font-color: var(--color-neutral-600);--line-width: 2px;--font-size: 18px;--font-size-md: 16px;--font-size-sm: 16px}.dss-circular-stepper{display:flex;gap:16px;align-items:center}.dss-circular-stepper__item{width:3rem;height:3rem;position:relative}.dss-circular-stepper__item svg{width:3rem;height:3rem;transform:rotate(-90deg)}.dss-circular-stepper__counter{position:absolute;font-size:.9rem;line-height:24px;left:0;top:0;width:3rem;height:3rem;display:flex;justify-content:center;align-items:center}.dss-circular-stepper__label,.dss-circular-stepper__counter b{font-weight:600;color:var(--color-neutral-700);font-size:.9rem;transition:.3s all ease-in;line-height:24px}.dss-circular-stepper circle{stroke:var(--color-neutral-200);stroke-dashoffset:0;fill:none;stroke-linecap:round;stroke-width:6px;stroke-dasharray:100,100;transition:.3s all ease-in}.dss-circular-stepper circle:last-of-type{stroke:var(--color-primary-500);stroke-dasharray:var(--percent),100;stroke-dashoffset:0}.dss-stepper{display:flex;list-style:none;justify-content:space-between;background:linear-gradient(var(--default-border-color) 0 0) no-repeat 50% calc((var(--circle) - var(--line-width)) / 2) / 100% var(--line-width);margin:var(--dss-spacing-xxs) 0 var(--dss-spacing-xl);padding:0;counter-reset:step}.dss-stepper--md{background:linear-gradient(var(--default-border-color) 0 0) no-repeat 50% calc((var(--circle-md) - var(--line-width)) / 2) / 100% var(--line-width)}.dss-stepper--sm{background:linear-gradient(var(--default-border-color) 0 0) no-repeat 50% calc((var(--circle-sm) - var(--line-width)) / 2) / 100% var(--line-width)}.dss-bubble{display:grid;place-items:center;gap:0;position:relative;border-radius:50%;transition:.3s outline ease-in}.dss-bubble:focus-visible{outline:var(--dss-border-width-lg) solid var(--color-blue-200)}.dss-bubble:before{cursor:pointer;content:counter(step) " ";counter-increment:step;display:grid;place-content:center;aspect-ratio:1;height:var(--circle);box-sizing:border-box;border-radius:50%;font-size:var(--font-size);font-weight:var(--font-semibold);font-family:var(--font-family);z-index:100;background-color:var(--default-background);border:var(--line-width) solid var(--active-border-color);color:var(--default-font-color);transition:.3s all ease-in}.dss-bubble:not(.dss-bubble--active):not(:active):hover:before{background-color:var(--completed-background)}.dss-stepper--md .dss-bubble:before{height:var(--circle-md);font-size:var(--font-size-md)}.dss-stepper--sm .dss-bubble:before{content:"";height:var(--circle-sm);font-size:var(--font-size-sm);height:16px;width:16px}.dss-bubble--active:before{background-color:var(--active-background);border-color:var(--active-border-color);color:var(--active-font-color)}.dss-bubble--active~.dss-bubble:before{background-color:var(--default-background);border-color:var(--default-border-color);color:var(--default-font-color)}.dss-bubble--active~.dss-bubble:not(.dss-bubble--active):hover:before{background-color:var(--default-background-hover)}.dss-bubble--active~.dss-bubble:active:before{background-color:var(--default-background);color:var(--default-font-color-active)}.dss-bubble--icon:before{content:attr(icon);font-family:var(--icon-font);font-weight:400}.dss-bubble--checked:before{content:"done";font-family:var(--icon-font);font-weight:400;font-size:24px;color:var(--color-primary-500)!important}.dss-stepper--sm .dss-bubble--checked:before{content:"check_circle";background-color:var(--color-primary-500);color:var(--color-white)!important;border-width:1px!important}.dss-stepper--sm .dss-bubble--checked:hover:before{border-color:var(--color-white);color:var(--color-primary-500)!important}.dss-bubble--checked:active:before{background-color:var(--color-white);color:var(--color-primary-300)!important;border-color:var(--color-primary-500)!important}.dss-stepper--sm .dss-bubble--checked:active:before{border-color:var(--color-white)!important;color:var(--color-primary-300)!important}.dss-bubble--info:before,.dss-bubble--active~.dss-bubble.dss-bubble--info:before{content:"info_i";font-family:var(--icon-font);font-weight:400;background-color:var(--color-white);color:var(--color-blue-500);border-color:var(--color-blue-500)}.dss-bubble--info:hover:before,.dss-bubble--active~.dss-bubble.dss-bubble--info:hover:before{background-color:var(--color-blue-50)!important}.dss-bubble--info:active:before,.dss-bubble--active~.dss-bubble.dss-bubble--info:not(.dss-bubble--active):active:before{color:var(--color-blue-300)!important;background-color:var(--color-white)!important}.dss-stepper--sm .dss-bubble--info:before,.dss-stepper--sm .dss-bubble--active~.dss-bubble.dss-bubble--info:before{content:"info";background-color:var(--color-blue-500);border-color:var(--color-blue-500);color:var(--color-white)!important;border-width:1px!important}.dss-stepper--sm .dss-bubble--info:hover:before,.dss-stepper--sm .dss-bubble--active~.dss-bubble.dss-bubble--info:hover:before{background-color:var(--color-blue-50)!important;border-color:var(--color-white);color:var(--color-blue-500)!important}.dss-stepper--sm .dss-bubble--info:active:before,.dss-stepper--sm .dss-bubble--active~.dss-bubble.dss-bubble--info:active:before{background-color:var(--color-white)!important;border-color:var(--color-white)!important;color:var(--color-blue-300)!important}.dss-bubble--alert:before,.dss-bubble--active~.dss-bubble.dss-bubble--alert:before{content:"priority_high";font-family:var(--icon-font);font-weight:400;background-color:var(--color-white);color:var(--color-yellow-800);border-color:var(--color-yellow-800)}.dss-bubble--alert:not(:active):hover:before{background-color:var(--color-yellow-50)!important}.dss-bubble--alert:active:before,.dss-bubble--active~.dss-bubble.dss-bubble--alert:active:before{color:var(--color-yellow-700)!important;background-color:var(--color-white)}.dss-stepper--sm .dss-bubble--alert:before,.dss-stepper--sm .dss-bubble--active~.dss-bubble.dss-bubble--alert:before{content:"error";background-color:var(--color-yellow-800);border-color:var(--color-yellow-800);color:var(--color-white)!important;border-width:1px!important}.dss-stepper--sm .dss-bubble--alert:hover:before,.dss-stepper--sm .dss-bubble--active~.dss-bubble.dss-bubble--alert:hover:before{background-color:var(--color-yellow-50)!important;border-color:var(--color-white);color:var(--color-yellow-800)!important}.dss-stepper--sm .dss-bubble--alert:active:before,.dss-stepper--sm .dss-bubble--active~.dss-bubble.dss-bubble--alert:active:before{background-color:var(--color-white)!important;border-color:var(--color-white)!important;color:var(--color-yellow-700)!important}.dss-bubble--error:before,.dss-bubble--active~.dss-bubble.dss-bubble--error:before{content:"close";font-family:var(--icon-font);font-weight:400;background-color:var(--color-white);color:var(--color-red-500);border-color:var(--color-red-500)}.dss-bubble--error:active:before,.dss-bubble--active~.dss-bubble.dss-bubble--error:active:before{color:var(--color-red-300)!important;background-color:var(--color-white)}.dss-stepper--sm .dss-bubble--error:before,.dss-stepper--sm .dss-bubble--active~.dss-bubble.dss-bubble--error:before{content:"cancel";background-color:var(--color-red-500);border-color:var(--color-red-500);color:var(--color-white)!important;border-width:1px!important}.dss-stepper--sm .dss-bubble--error:hover:before,.dss-stepper--sm .dss-bubble--active~.dss-bubble.dss-bubble--error:hover:before{background-color:var(--color-red-50)!important;border-color:var(--color-white);color:var(--color-red-500)!important}.dss-stepper--sm .dss-bubble--error:active:before,.dss-stepper--sm .dss-bubble--active~.dss-bubble.dss-bubble--error:active:before{background-color:var(--color-white)!important;border-color:var(--color-white)!important;color:var(--color-red-300)!important}.dss-bubble--disabled:before{cursor:not-allowed;background-color:var(--disabled-background)!important;border-color:var(--disabled-border-color)!important;color:var(--disabled-font-color)!important}.dss-stepper--vertical .dss-bubble:not(:first-child){margin-top:var(--dss-spacing-lg)}.dss-bubble--error:not(:active):hover:before{background-color:var(--color-red-50)!important}.dss-bubble--error:active:before{color:var(--color-red-300)!important}.dss-stepper--sm .dss-bubble--error:before{content:"cancel";background-color:var(--color-red-500);border-color:var(--color-red-500);color:var(--color-white)!important;border-width:1px!important}.dss-stepper--sm .dss-bubble--error:hover:before{background-color:var(--color-red-50)!important;border-color:var(--color-white);color:var(--color-red-500)!important}.dss-stepper--sm .dss-bubble--error:active:before{background-color:var(--color-white)!important;border-color:var(--color-white)!important;color:var(--color-red-300)!important}.dss-bubble--disabled:before{cursor:not-allowed;background:var(--disabled-background)!important;border-color:var(--disabled-border-color)!important;color:var(--disabled-font-color)!important}.dss-bubble--completed:not(:first-child):after{content:"";position:absolute;height:var(--line-width);right:0;top:calc((var(--circle) - var(--line-width)) / 2);width:var(--active-bar-width);background:var(--active-background)}.dss-bubble--active:not(:first-child):after{content:"";position:absolute;height:var(--line-width);right:0;top:calc((var(--circle) - var(--line-width)) / 2);width:var(--active-bar-width);background:var(--active-background);animation:animate .3s}.dss-stepper--md .dss-bubble--completed:not(:first-child):after{top:calc((var(--circle-md) - var(--line-width)) / 2)}.dss-stepper--md .dss-bubble--active:not(:first-child):after{top:calc((var(--circle-md) - var(--line-width)) / 2)}.dss-stepper--sm .dss-bubble--completed:not(:first-child):after{top:calc((var(--circle-sm) - var(--line-width)) / 2)}.dss-stepper--sm .dss-bubble--active:not(:first-child):after{top:calc((var(--circle-sm) - var(--line-width)) / 2)}.dss-stepper--vertical{height:100%;flex-direction:column;gap:0;background:linear-gradient(var(--default-border-color) 0 0) no-repeat calc((var(--circle) - var(--line-width)) / 2) 50% / var(--line-width) 100%}.dss-stepper--vertical .dss-bubble{display:flex;width:-moz-fit-content;width:fit-content}.dss-stepper--vertical .dss-bubble--completed:not(:first-child):after{content:"";position:absolute;width:var(--line-width);bottom:0;left:calc((var(--circle) - var(--line-width)) / 2);top:auto;right:auto;height:var(--active-bar-width);background:var(--active-background)}.dss-stepper--vertical .dss-bubble--active:not(:first-child):after{content:"";position:absolute;width:var(--line-width);bottom:0;left:calc((var(--circle) - var(--line-width)) / 2);top:auto;right:auto;height:var(--active-bar-width);background:var(--active-background);animation:column-animate .5s}.dss-stepper--md.dss-stepper--vertical{background:linear-gradient(var(--default-border-color) 0 0) no-repeat calc((var(--circle-md) - var(--line-width)) / 2) 50% / var(--line-width) 100%}.dss-stepper--sm.dss-stepper--vertical{background:linear-gradient(var(--default-border-color) 0 0) no-repeat calc((var(--circle-sm) - var(--line-width)) / 2) 50% / var(--line-width) 100%}.dss-stepper--md.dss-stepper--vertical .dss-bubble--completed:not(:first-child):after{left:calc((var(--circle-md) - var(--line-width)) / 2)}.dss-stepper--sm.dss-stepper--vertical .dss-bubble--completed:not(:first-child):after{left:calc((var(--circle-sm) - var(--line-width)) / 2)}.dss-stepper--md.dss-stepper--vertical .dss-bubble--active:not(:first-child):after{left:calc((var(--circle-md) - var(--line-width)) / 2)}.dss-stepper--sm.dss-stepper--vertical .dss-bubble--active:not(:first-child):after{left:calc((var(--circle-sm) - var(--line-width)) / 2)}.dss-stepper:not(.dss-stepper--vertical) .dss-bubble-label{position:absolute;top:calc(100% + var(--dss-spacing-xxs));left:50%;transform:translate(-50%)}.dss-bubble-label{width:-moz-max-content;width:max-content;font-weight:var(--font-regular);font-size:14px;color:var(--color-neutral-700)}.dss-bubble-label--disabled{color:var(--color-neutral-500)}.dss-bubble--active .dss-bubble-label{color:var(--color-neutral-700);font-weight:var(--font-semibold)}.dss-stepper--vertical .dss-bubble-label{position:absolute;left:calc(100% + var(--dss-spacing-xs));top:50%;transform:translateY(-50%)}.dss-bubble-label.hide-label{display:none}@keyframes animate{0%{width:0}to{width:100%}}@keyframes column-animate{0%{height:0}to{height:100%}}';var __defProp$b=Object.defineProperty,__getOwnPropDesc$1=Object.getOwnPropertyDescriptor,__decorateClass$b=(te,J,X,re)=>{for(var ne=__getOwnPropDesc$1(J,X),oe=te.length-1,de;oe>=0;oe--)(de=te[oe])&&(ne=de(J,X,ne)||ne);return ne&&__defProp$b(J,X,ne),ne};class Stepper extends h$n{constructor(){super(...arguments),this._steps=[],this._currentStep=1,this._column=!1,this._circular=!1,this._hideLabel=!1,this._size="md",this._activeBarWidth="0",this._isFirstUpdate=!0}static get styles(){return r$G(r$c)}set steps(steps){const oldValue=this._steps;this._steps=steps,typeof steps=="string"&&(this._steps=eval(`(${steps})`)),this.requestUpdate("steps",oldValue)}get steps(){return this._steps}set currentStep(te){const J=this._currentStep;this._currentStep=te,this.requestUpdate("currentStep",J)}get currentStep(){return this._currentStep}set column(te){const J=this._column;this._column=te,this.requestUpdate("column",J)}get column(){return this._column}set circular(te){const J=this._circular;this._circular=te,this.requestUpdate("circular",J)}get circular(){return this._circular}set hideLabel(te){const J=this._hideLabel;this._hideLabel=te,this.requestUpdate("hideLabel",J)}get hideLabel(){return this._hideLabel}set size(te){const J=this._size;this._size=te,this.requestUpdate("size",J)}get size(){return this._size}async firstUpdated(){await this.updateComplete,this._setActiveBarWidth(),this._isFirstUpdate=!1,this.requestUpdate()}willUpdate(te){this._isFirstUpdate||(te.has("currentStep")||te.has("steps")||te.has("column"))&&(this._setActiveBarWidth(),this.requestUpdate())}_setActiveBarWidth(){var te;const J=this._steps.length,X=(te=this.shadowRoot)==null?void 0:te.querySelector(".dss-stepper"),re=X?.getBoundingClientRect(),ne=this._column?re?.height:re?.width;if(ne){const oe=Math.floor(ne/(J-1));this._activeBarWidth=`${oe}px`}}_onStepClick(te,J){if(te.state!=="disabled"){const X={detail:{step:te,stepNumber:J},bubbles:!0,composed:!0};this.dispatchEvent(new CustomEvent("onStepClick",X))}}render(){var te,J;const X=(te=this._steps)==null?void 0:te.length,re=Math.round(this._currentStep/X*100),ne={"dss-stepper--vertical":this._column,"dss-stepper--sm":this._size==="sm","dss-stepper--md":this._size==="md"};return ke$1`
|
|
3018
|
+
`};var C$8=Object.defineProperty,b$8=Object.getOwnPropertyDescriptor,i$9=(te,J,X,re)=>{for(var ne=re>1?void 0:re?b$8(J,X):J,oe=te.length-1,de;oe>=0;oe--)(de=te[oe])&&(ne=(re?de(J,X,ne):de(ne))||ne);return re&&ne&&C$8(J,X,ne),ne};let n$c=class extends h$n{constructor(){super(),this.secondaryLabelOpen="Obrir",this.secondaryLabelClose="Tamcar",this._size="lg",this._iconClose="expand_more",this._iconOpen="expand_less",this._variant="primary",this._text="",this._disabled=!1,this._isOpen=!1,this._dropdownPosition="bottom-right",this._hasMenu=!1,this._handleDocumentClickBound=this._handleDocumentClick.bind(this)}static get styles(){return[r$G(i$s),r$G(o$v),r$G(s$5)]}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this._handleDocumentClickBound)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this._handleDocumentClickBound)}get _actionMenu(){var J;const X=((J=this.shadowRoot)==null?void 0:J.querySelector('slot[name="menu"]'))||void 0;return this.requestUpdate(),X?.assignedElements()[0]}set iconClose(J){const X=this._iconClose;this._iconClose=J,this.requestUpdate("iconClose",X)}get iconClose(){return this._iconClose}set iconOpen(J){const X=this._iconOpen;this._iconOpen=J,this.requestUpdate("iconOpen",X)}get iconOpen(){return this._iconOpen}set variant(J){const X=this._variant;this._variant=J,this.requestUpdate("variant",X)}get variant(){return this._variant}set text(J){const X=this._text;this._text=J,this.requestUpdate("text",X)}get text(){return this._text}set disabled(J){const X=this._disabled;this._disabled=J,this.requestUpdate("disabled",X)}get disabled(){return this._disabled}set isOpen(J){const X=this._isOpen;this._isOpen=J,this.requestUpdate("disabled",X)}get isOpen(){return this._isOpen}set size(J){const X=this._size;J==="md"||J==="sm"?this._size=J:this._size="lg",this.requestUpdate("size",X)}get size(){return this._size}set dropdownPosition(J){const X=this._dropdownPosition;this._dropdownPosition=J,this.requestUpdate("dropdownPosition",X)}get dropdownPosition(){return this._dropdownPosition}set hasMenu(J){const X=this._hasMenu;this._hasMenu=J,this.requestUpdate("hasMenu",X)}get hasMenu(){return this._hasMenu}_dispatchMainClick(){const J={bubbles:!1,composed:!1};this.dispatchEvent(new CustomEvent("onClick",J))}_dispatchIconClick(){this._hasMenu&&this._toggleMenu();const J={bubbles:!1,composed:!1};this.dispatchEvent(new CustomEvent("onSecondaryClick",J))}_toggleMenu(){this._isOpen=!this._isOpen,this.requestUpdate()}_handleActionMenuClosed(){this._isOpen=!1,this._actionMenu&&!this._isOpen&&this._actionMenu._closeMenu()}_handleDocumentClick(J){this._clickedOutsideItem(this,J)}_clickedOutsideItem(J,X){X.composedPath().includes(J)||this._isOpen&&(this._isOpen=!1,this.requestUpdate())}async firstUpdated(){await this.updateComplete,this._actionMenu&&this._actionMenu.addEventListener("onCloseActionMenu",()=>{this._handleActionMenuClosed()})}render(){return _$7(this)}};i$9([n$z({type:String})],n$c.prototype,"iconClose",1),i$9([n$z({type:String})],n$c.prototype,"iconOpen",1),i$9([n$z({type:String})],n$c.prototype,"variant",1),i$9([n$z({type:String})],n$c.prototype,"text",1),i$9([n$z(o$H)],n$c.prototype,"disabled",1),i$9([n$z(o$H)],n$c.prototype,"isOpen",1),i$9([n$z({type:String})],n$c.prototype,"size",1),i$9([n$z({type:String})],n$c.prototype,"dropdownPosition",1),i$9([n$z(o$H)],n$c.prototype,"hasMenu",1),i$9([n$z(o$H)],n$c.prototype,"secondaryLabelOpen",2),i$9([n$z(o$H)],n$c.prototype,"secondaryLabelClose",2);const r$c=':host{display:inline-block;height:100%;width:100%;--circle: 32px;--circle-md: 24px;--circle-sm: 16px;--default-background: var(--color-white);--default-border-color: var(--color-neutral-500);--default-font-color: var(--color-neutral-900);--default-background-hover: var(--color-neutral-50);--default-font-color-active: var(--color-neutral-500);--active-background: var(--color-primary-500);--active-border-color: var(--color-primary-500);--active-font-color: var(--color-white);--completed-background: var(--color-primary-50);--disabled-background: var(--color-neutral-100);--disabled-border-color: var(--color-neutral-100);--disabled-font-color: var(--color-neutral-600);--line-width: 2px;--font-size: 18px;--font-size-md: 16px;--font-size-sm: 16px}.dss-circular-stepper{display:flex;gap:16px;align-items:center}.dss-circular-stepper__item{width:3rem;height:3rem;position:relative}.dss-circular-stepper__item svg{width:3rem;height:3rem;transform:rotate(-90deg)}.dss-circular-stepper__counter{position:absolute;font-size:.9rem;line-height:24px;left:0;top:0;width:3rem;height:3rem;display:flex;justify-content:center;align-items:center}.dss-circular-stepper__label,.dss-circular-stepper__counter b{font-weight:600;color:var(--color-neutral-700);font-size:.9rem;transition:.3s all ease-in;line-height:24px}.dss-circular-stepper circle{stroke:var(--color-neutral-200);stroke-dashoffset:0;fill:none;stroke-linecap:round;stroke-width:6px;stroke-dasharray:100,100;transition:.3s all ease-in}.dss-circular-stepper circle:last-of-type{stroke:var(--color-primary-500);stroke-dasharray:var(--percent),100;stroke-dashoffset:0}.dss-stepper{display:flex;list-style:none;justify-content:space-between;background:linear-gradient(var(--default-border-color) 0 0) no-repeat 50% calc((var(--circle) - var(--line-width)) / 2) / 100% var(--line-width);margin:var(--dss-spacing-xxs) 0 var(--dss-spacing-xl);padding:0;counter-reset:step}.dss-stepper--md{background:linear-gradient(var(--default-border-color) 0 0) no-repeat 50% calc((var(--circle-md) - var(--line-width)) / 2) / 100% var(--line-width)}.dss-stepper--sm{background:linear-gradient(var(--default-border-color) 0 0) no-repeat 50% calc((var(--circle-sm) - var(--line-width)) / 2) / 100% var(--line-width)}.dss-bubble{display:grid;place-items:center;gap:0;position:relative;border-radius:50%;transition:.3s outline ease-in}.dss-bubble:focus-visible{outline:var(--dss-border-width-lg) solid var(--color-blue-200)}.dss-bubble:before{cursor:pointer;content:counter(step) " ";counter-increment:step;display:grid;place-content:center;aspect-ratio:1;height:var(--circle);box-sizing:border-box;border-radius:50%;font-size:var(--font-size);font-weight:var(--font-semibold);font-family:var(--font-family);z-index:100;background-color:var(--default-background);border:var(--line-width) solid var(--active-border-color);color:var(--default-font-color);transition:.3s all ease-in}.dss-bubble:not(.dss-bubble--active):not(:active):hover:before{background-color:var(--completed-background)}.dss-stepper--md .dss-bubble:before{height:var(--circle-md);font-size:var(--font-size-md)}.dss-stepper--sm .dss-bubble:before{content:"";height:var(--circle-sm);font-size:var(--font-size-sm);height:16px;width:16px}.dss-bubble--active:before{background-color:var(--active-background);border-color:var(--active-border-color);color:var(--active-font-color)}.dss-bubble--active~.dss-bubble:before{background-color:var(--default-background);border-color:var(--default-border-color);color:var(--default-font-color)}.dss-bubble--active~.dss-bubble:not(.dss-bubble--active):hover:before{background-color:var(--default-background-hover)}.dss-bubble--active~.dss-bubble:active:before{background-color:var(--default-background);color:var(--default-font-color-active)}.dss-bubble--icon:before{content:attr(icon);font-family:var(--icon-font);font-weight:400}.dss-bubble--checked:before{content:"done";font-family:var(--icon-font);font-weight:400;font-size:24px;color:var(--color-primary-500)!important}.dss-stepper--sm .dss-bubble--checked:before{content:"check_circle";background-color:var(--color-primary-500);color:var(--color-white)!important;border-width:1px!important}.dss-stepper--sm .dss-bubble--checked:hover:before{border-color:var(--color-white);color:var(--color-primary-500)!important}.dss-bubble--checked:active:before{background-color:var(--color-white);color:var(--color-primary-300)!important;border-color:var(--color-primary-500)!important}.dss-stepper--sm .dss-bubble--checked:active:before{border-color:var(--color-white)!important;color:var(--color-primary-300)!important}.dss-bubble--info:before,.dss-bubble--active~.dss-bubble.dss-bubble--info:before{content:"info_i";font-family:var(--icon-font);font-weight:400;background-color:var(--color-white);color:var(--color-blue-500);border-color:var(--color-blue-500)}.dss-bubble--info:hover:before,.dss-bubble--active~.dss-bubble.dss-bubble--info:hover:before{background-color:var(--color-blue-50)!important}.dss-bubble--info:active:before,.dss-bubble--active~.dss-bubble.dss-bubble--info:not(.dss-bubble--active):active:before{color:var(--color-blue-300)!important;background-color:var(--color-white)!important}.dss-stepper--sm .dss-bubble--info:before,.dss-stepper--sm .dss-bubble--active~.dss-bubble.dss-bubble--info:before{content:"info";background-color:var(--color-blue-500);border-color:var(--color-blue-500);color:var(--color-white)!important;border-width:1px!important}.dss-stepper--sm .dss-bubble--info:hover:before,.dss-stepper--sm .dss-bubble--active~.dss-bubble.dss-bubble--info:hover:before{background-color:var(--color-blue-50)!important;border-color:var(--color-white);color:var(--color-blue-500)!important}.dss-stepper--sm .dss-bubble--info:active:before,.dss-stepper--sm .dss-bubble--active~.dss-bubble.dss-bubble--info:active:before{background-color:var(--color-white)!important;border-color:var(--color-white)!important;color:var(--color-blue-300)!important}.dss-bubble--alert:before,.dss-bubble--active~.dss-bubble.dss-bubble--alert:before{content:"priority_high";font-family:var(--icon-font);font-weight:400;background-color:var(--color-white);color:var(--color-yellow-800);border-color:var(--color-yellow-800)}.dss-bubble--alert:not(:active):hover:before{background-color:var(--color-yellow-50)!important}.dss-bubble--alert:active:before,.dss-bubble--active~.dss-bubble.dss-bubble--alert:active:before{color:var(--color-yellow-700)!important;background-color:var(--color-white)}.dss-stepper--sm .dss-bubble--alert:before,.dss-stepper--sm .dss-bubble--active~.dss-bubble.dss-bubble--alert:before{content:"error";background-color:var(--color-yellow-800);border-color:var(--color-yellow-800);color:var(--color-white)!important;border-width:1px!important}.dss-stepper--sm .dss-bubble--alert:hover:before,.dss-stepper--sm .dss-bubble--active~.dss-bubble.dss-bubble--alert:hover:before{background-color:var(--color-yellow-50)!important;border-color:var(--color-white);color:var(--color-yellow-800)!important}.dss-stepper--sm .dss-bubble--alert:active:before,.dss-stepper--sm .dss-bubble--active~.dss-bubble.dss-bubble--alert:active:before{background-color:var(--color-white)!important;border-color:var(--color-white)!important;color:var(--color-yellow-700)!important}.dss-bubble--error:before,.dss-bubble--active~.dss-bubble.dss-bubble--error:before{content:"close";font-family:var(--icon-font);font-weight:400;background-color:var(--color-white);color:var(--color-red-500);border-color:var(--color-red-500)}.dss-bubble--error:active:before,.dss-bubble--active~.dss-bubble.dss-bubble--error:active:before{color:var(--color-red-300)!important;background-color:var(--color-white)}.dss-stepper--sm .dss-bubble--error:before,.dss-stepper--sm .dss-bubble--active~.dss-bubble.dss-bubble--error:before{content:"cancel";background-color:var(--color-red-500);border-color:var(--color-red-500);color:var(--color-white)!important;border-width:1px!important}.dss-stepper--sm .dss-bubble--error:hover:before,.dss-stepper--sm .dss-bubble--active~.dss-bubble.dss-bubble--error:hover:before{background-color:var(--color-red-50)!important;border-color:var(--color-white);color:var(--color-red-500)!important}.dss-stepper--sm .dss-bubble--error:active:before,.dss-stepper--sm .dss-bubble--active~.dss-bubble.dss-bubble--error:active:before{background-color:var(--color-white)!important;border-color:var(--color-white)!important;color:var(--color-red-300)!important}.dss-bubble--disabled:before{cursor:not-allowed;background-color:var(--disabled-background)!important;border-color:var(--disabled-border-color)!important;color:var(--disabled-font-color)!important}.dss-stepper--vertical .dss-bubble:not(:first-child){margin-top:var(--dss-spacing-lg)}.dss-bubble--error:not(:active):hover:before{background-color:var(--color-red-50)!important}.dss-bubble--error:active:before{color:var(--color-red-300)!important}.dss-stepper--sm .dss-bubble--error:before{content:"cancel";background-color:var(--color-red-500);border-color:var(--color-red-500);color:var(--color-white)!important;border-width:1px!important}.dss-stepper--sm .dss-bubble--error:hover:before{background-color:var(--color-red-50)!important;border-color:var(--color-white);color:var(--color-red-500)!important}.dss-stepper--sm .dss-bubble--error:active:before{background-color:var(--color-white)!important;border-color:var(--color-white)!important;color:var(--color-red-300)!important}.dss-bubble--disabled:before{cursor:not-allowed;background:var(--disabled-background)!important;border-color:var(--disabled-border-color)!important;color:var(--disabled-font-color)!important}.dss-bubble--completed:not(:first-child):after{content:"";position:absolute;height:var(--line-width);right:0;top:calc((var(--circle) - var(--line-width)) / 2);width:var(--active-bar-width);background:var(--active-background)}.dss-bubble--active:not(:first-child):after{content:"";position:absolute;height:var(--line-width);right:0;top:calc((var(--circle) - var(--line-width)) / 2);width:var(--active-bar-width);background:var(--active-background);animation:animate .3s}.dss-stepper--md .dss-bubble--completed:not(:first-child):after{top:calc((var(--circle-md) - var(--line-width)) / 2)}.dss-stepper--md .dss-bubble--active:not(:first-child):after{top:calc((var(--circle-md) - var(--line-width)) / 2)}.dss-stepper--sm .dss-bubble--completed:not(:first-child):after{top:calc((var(--circle-sm) - var(--line-width)) / 2)}.dss-stepper--sm .dss-bubble--active:not(:first-child):after{top:calc((var(--circle-sm) - var(--line-width)) / 2)}.dss-stepper--vertical{height:100%;flex-direction:column;gap:0;background:linear-gradient(var(--default-border-color) 0 0) no-repeat calc((var(--circle) - var(--line-width)) / 2) 50% / var(--line-width) 100%}.dss-stepper--vertical .dss-bubble{display:flex;width:-moz-fit-content;width:fit-content}.dss-stepper--vertical .dss-bubble--completed:not(:first-child):after{content:"";position:absolute;width:var(--line-width);bottom:0;left:calc((var(--circle) - var(--line-width)) / 2);top:auto;right:auto;height:var(--active-bar-width);background:var(--active-background)}.dss-stepper--vertical .dss-bubble--active:not(:first-child):after{content:"";position:absolute;width:var(--line-width);bottom:0;left:calc((var(--circle) - var(--line-width)) / 2);top:auto;right:auto;height:var(--active-bar-width);background:var(--active-background);animation:column-animate .5s}.dss-stepper--md.dss-stepper--vertical{background:linear-gradient(var(--default-border-color) 0 0) no-repeat calc((var(--circle-md) - var(--line-width)) / 2) 50% / var(--line-width) 100%}.dss-stepper--sm.dss-stepper--vertical{background:linear-gradient(var(--default-border-color) 0 0) no-repeat calc((var(--circle-sm) - var(--line-width)) / 2) 50% / var(--line-width) 100%}.dss-stepper--md.dss-stepper--vertical .dss-bubble--completed:not(:first-child):after{left:calc((var(--circle-md) - var(--line-width)) / 2)}.dss-stepper--sm.dss-stepper--vertical .dss-bubble--completed:not(:first-child):after{left:calc((var(--circle-sm) - var(--line-width)) / 2)}.dss-stepper--md.dss-stepper--vertical .dss-bubble--active:not(:first-child):after{left:calc((var(--circle-md) - var(--line-width)) / 2)}.dss-stepper--sm.dss-stepper--vertical .dss-bubble--active:not(:first-child):after{left:calc((var(--circle-sm) - var(--line-width)) / 2)}.dss-stepper:not(.dss-stepper--vertical) .dss-bubble-label{position:absolute;top:calc(100% + var(--dss-spacing-xxs));left:50%;transform:translate(-50%)}.dss-bubble-label{width:-moz-max-content;width:max-content;font-weight:var(--font-regular);font-size:14px;color:var(--color-neutral-700)}.dss-bubble-label--disabled{color:var(--color-neutral-500)}.dss-bubble--active .dss-bubble-label{color:var(--color-neutral-700);font-weight:var(--font-semibold)}.dss-stepper--vertical .dss-bubble-label{position:absolute;left:calc(100% + var(--dss-spacing-xs));top:50%;transform:translateY(-50%)}.dss-bubble-label.hide-label{display:none}@keyframes animate{0%{width:0}to{width:100%}}@keyframes column-animate{0%{height:0}to{height:100%}}';var __defProp$c=Object.defineProperty,__getOwnPropDesc$2=Object.getOwnPropertyDescriptor,__decorateClass$c=(te,J,X,re)=>{for(var ne=__getOwnPropDesc$2(J,X),oe=te.length-1,de;oe>=0;oe--)(de=te[oe])&&(ne=de(J,X,ne)||ne);return ne&&__defProp$c(J,X,ne),ne};class Stepper extends h$n{constructor(){super(...arguments),this._steps=[],this._currentStep=1,this._column=!1,this._circular=!1,this._hideLabel=!1,this._size="md",this._activeBarWidth="0",this._isFirstUpdate=!0}static get styles(){return r$G(r$c)}set steps(steps){const oldValue=this._steps;this._steps=steps,typeof steps=="string"&&(this._steps=eval(`(${steps})`)),this.requestUpdate("steps",oldValue)}get steps(){return this._steps}set currentStep(te){const J=this._currentStep;this._currentStep=te,this.requestUpdate("currentStep",J)}get currentStep(){return this._currentStep}set column(te){const J=this._column;this._column=te,this.requestUpdate("column",J)}get column(){return this._column}set circular(te){const J=this._circular;this._circular=te,this.requestUpdate("circular",J)}get circular(){return this._circular}set hideLabel(te){const J=this._hideLabel;this._hideLabel=te,this.requestUpdate("hideLabel",J)}get hideLabel(){return this._hideLabel}set size(te){const J=this._size;this._size=te,this.requestUpdate("size",J)}get size(){return this._size}async firstUpdated(){await this.updateComplete,this._setActiveBarWidth(),this._isFirstUpdate=!1,this.requestUpdate()}willUpdate(te){this._isFirstUpdate||(te.has("currentStep")||te.has("steps")||te.has("column"))&&(this._setActiveBarWidth(),this.requestUpdate())}_setActiveBarWidth(){var te;const J=this._steps.length,X=(te=this.shadowRoot)==null?void 0:te.querySelector(".dss-stepper"),re=X?.getBoundingClientRect(),ne=this._column?re?.height:re?.width;if(ne){const oe=Math.floor(ne/(J-1));this._activeBarWidth=`${oe}px`}}_onStepClick(te,J){if(te.state!=="disabled"){const X={detail:{step:te,stepNumber:J},bubbles:!0,composed:!0};this.dispatchEvent(new CustomEvent("onStepClick",X))}}render(){var te,J;const X=(te=this._steps)==null?void 0:te.length,re=Math.round(this._currentStep/X*100),ne={"dss-stepper--vertical":this._column,"dss-stepper--sm":this._size==="sm","dss-stepper--md":this._size==="md"};return ke$1`
|
|
3017
3019
|
${this._circular?ke$1`
|
|
3018
3020
|
<div class="dss-circular-stepper">
|
|
3019
3021
|
<div class="dss-circular-stepper__item">
|
|
@@ -3058,7 +3060,7 @@ ${te.searchString?.length>1?ke$1`
|
|
|
3058
3060
|
`})}
|
|
3059
3061
|
</ol>
|
|
3060
3062
|
`}
|
|
3061
|
-
`}}__decorateClass$
|
|
3063
|
+
`}}__decorateClass$c([n$z({type:[]})],Stepper.prototype,"steps"),__decorateClass$c([n$z({type:Number})],Stepper.prototype,"currentStep"),__decorateClass$c([n$z(o$H)],Stepper.prototype,"column"),__decorateClass$c([n$z(o$H)],Stepper.prototype,"circular"),__decorateClass$c([n$z(o$H)],Stepper.prototype,"hideLabel"),__decorateClass$c([n$z({type:String})],Stepper.prototype,"size");const n$b=":host{width:100%;display:flex;justify-content:flex-end;height:-moz-fit-content;height:fit-content;font-family:var(--font-family);font-style:normal;border-top:2px solid var(--color-neutral-700)}.pagination__container{display:flex;align-items:center;padding:.5rem .75rem;gap:1rem}.pagination__results{font-weight:600;font-size:.875rem;line-height:1.5rem;color:#0073e6}.pagination__divider{height:1rem;border-left:1px solid rgb(216,216,216)}.pagination__text{font-weight:400;font-size:12px;line-height:1rem;color:#656565}.pagination__button{color:#0073e6;font-size:1.5rem;padding:0;align-items:center;background-color:transparent;border:none;border-radius:100%;cursor:pointer;display:flex;height:-moz-fit-content;height:fit-content;justify-content:center;transition:all .3s ease-in;width:-moz-fit-content;width:fit-content;font-family:var(--icon-font);width:2rem;height:2rem}.pagination__button:hover:enabled{background-color:#bfddfa}.pagination__button:focus-visible:enabled{outline:.25rem solid #8fc2f5;transition:none}.pagination__button:active:enabled{background-color:#eff7ff;transition:none}.pagination__button:disabled{transition:none;opacity:.4;cursor:not-allowed}.pagination__row-page{display:flex;align-items:center;gap:1rem}.pagination__buttons{display:flex;align-items:center}.pagination__select{background:#eff7ff;border-radius:4px;position:relative}.pagination__select select{border:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;padding:7px 32px 7px 12px;color:#00356a;font-weight:400;font-size:12px;line-height:1rem;position:inherit;z-index:1;font-family:var(--font-family)}.pagination__select select:active,.pagination__select select:focus-visible{outline:none}.pagination__arrow-down{position:absolute;height:100%;display:flex;align-items:center;top:0;right:12px;color:#00356a}.pagination-select-options:disabled{background-color:var(--color-neutral-50);color:var(--color-neutral-500);cursor:not-allowed}";var x$3=Object.defineProperty,S$5=Object.getOwnPropertyDescriptor,n$a=(te,J,X,re)=>{for(var ne=S$5(J,X),oe=te.length-1,de;oe>=0;oe--)(de=te[oe])&&(ne=de(J,X,ne)||ne);return ne&&x$3(J,X,ne),ne};let a$a=class extends h$n{constructor(){super(...arguments),this._length=0,this._pageSizeOptions=[],this._pageSize=10,this._totalPages=0,this._currentIndex=1,this._startIndex=1,this._endIndex=this._pageSize,this._rowsPerPageText="Files per pàgina",this._resultsText="Resultats",this._pageSizeOptionsDisabled=!1,this._hidePaginationResults=!1}static get styles(){return[r$G(i$s),r$G(n$b)]}set length(J){const X=this._length;this._length=J,this.requestUpdate("length",X)}get length(){return this._length}set pageSize(J){const X=this._pageSize;this._pageSize=J,this.requestUpdate("pageSize",X)}get pageSize(){return this._pageSize}set pageSizeOptions(J){const X=this._pageSizeOptions;this._pageSizeOptions=J,this.requestUpdate("pageSizeOptions",X)}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptionsDisabled(J){const X=this._pageSizeOptionsDisabled;this._pageSizeOptionsDisabled=J,this.requestUpdate("pageSizeOptionsDisabled",X)}get pageSizeOptionsDisabled(){return this._pageSizeOptionsDisabled}set currentIndex(J){const X=this._currentIndex;this._currentIndex=J,this.requestUpdate("currentIndex",X)}get currentIndex(){return this._currentIndex}set rowsPerPageText(J){const X=this._rowsPerPageText;this._rowsPerPageText=J,this.requestUpdate("rowsPerPageText",X)}get rowsPerPageText(){return this._rowsPerPageText}set resultsText(J){const X=this._resultsText;this._resultsText=J,this.requestUpdate("resultsText",X)}get resultsText(){return this._resultsText}set hidePaginationResults(J){const X=this._hidePaginationResults;this._hidePaginationResults=J,this.requestUpdate("hidePaginationResults",X)}get hidePaginationResults(){return this._hidePaginationResults}_next(){this._currentIndex++,this._startIndex+=this._pageSize,this._endIndex+=this._pageSize,this._currentIndex===this._totalPages&&(this._endIndex=this._length),this._emitCurrentPage(),this.requestUpdate()}_prev(){const J=Math.abs(this._startIndex-this._endIndex)+1;this._startIndex-=this._pageSize,this._endIndex-=this._currentIndex===this._totalPages?J:this._pageSize,this._currentIndex--,this._emitCurrentPage(),this.requestUpdate()}_handleChange(){var J;const X=(J=this.shadowRoot)==null?void 0:J.querySelector("#pagination-select");this._pageSize=Number(X.value),this._reload(this._startIndex),this._emitCurrentPage(),this.requestUpdate()}_emitCurrentPage(){this.dispatchEvent(new CustomEvent("onChangePage",{detail:{currentIndex:this._currentIndex,startIndex:this._startIndex,endIndex:this._endIndex,pageSize:this._pageSize},bubbles:!0,composed:!0}))}_reload(J){this._currentIndex=Math.ceil(J/this._pageSize),this._reset(!0)}_reset(J){this._totalPages=Math.ceil(this._length/this._pageSize),J||(this._currentIndex<1?this._currentIndex=1:this._currentIndex>this._totalPages&&(this._currentIndex=this._totalPages)),this._startIndex=(this._currentIndex-1)*this._pageSize+1,this._endIndex=this._startIndex-1+this._pageSize,this._endIndex>this._length&&(this._endIndex=this._length)}_getDefaultPageSize(){var J;const X=this._pageSizeOptions.includes(this._pageSize);return(J=this._pageSizeOptions)!=null&&J.length?X?this._pageSize:this._pageSizeOptions[0]:this._pageSize}_printStartIndex(){return this._startIndex<=0||this._length<=0?"0":this._startIndex.toString()}async firstUpdated(){try{await this.updateComplete,this._pageSize=this._getDefaultPageSize(),this._reset(),this._emitCurrentPage(),this.requestUpdate()}catch{console.error("ERROR OCURRED")}}willUpdate(J){const X=J.has("length"),re=J.has("pageSize"),ne=J.has("pageSizeOptions"),oe=J.has("currentIndex");(X||re||ne||oe)&&(this._pageSize=this._getDefaultPageSize(),this._reset(),oe&&this._emitCurrentPage(),this.requestUpdate())}render(){var J;return ke$1`
|
|
3062
3064
|
<div class="pagination__container">
|
|
3063
3065
|
${this._hidePaginationResults?null:ke$1`
|
|
3064
3066
|
<span class="pagination__results"
|
|
@@ -6658,7 +6660,7 @@ ${te.searchString?.length>1?ke$1`
|
|
|
6658
6660
|
</div>
|
|
6659
6661
|
`:null}
|
|
6660
6662
|
</div>
|
|
6661
|
-
`}}d([n$z(o$H)],r.prototype,"hasPaginator"),d([n$z({type:Array})],r.prototype,"data"),d([n$z({type:Array})],r.prototype,"customData"),d([n$z({type:Array})],r.prototype,"customTableHeader"),d([n$z({type:Array})],r.prototype,"filters"),d([n$z({type:Number})],r.prototype,"currentIndex"),d([n$z({type:Number})],r.prototype,"pageSize"),d([n$z({type:String})],r.prototype,"pageSizeOptions"),d([n$z({type:String})],r.prototype,"resultstext"),d([n$z({type:String})],r.prototype,"rowsperpagetext"),d([n$z({type:String})],r.prototype,"textAlign"),d([n$z({type:String})],r.prototype,"headerTitle"),d([n$z(o$H)],r.prototype,"hideHeader"),d([n$z(o$H)],r.prototype,"hideColumnHeader"),d([n$z(o$H)],r.prototype,"innerFilters"),d([n$z(o$H)],r.prototype,"expandTable"),d([n$z({type:String})],r.prototype,"expandLabel"),d([n$z({type:String})],r.prototype,"collapseLabel"),d([n$z({type:Number})],r.prototype,"rowsOnCollapsed"),d([n$z({type:String})],r.prototype,"filtersLabel"),d([n$z({type:String})],r.prototype,"cleanFiltersLabel"),d([n$z({type:String})],r.prototype,"selectedRowsLabel"),d([n$z({type:Number})],r.prototype,"footerButtons"),d([n$z(o$H)],r.prototype,"maxContentWidth"),d([n$z(o$H)],r.prototype,"stickyColumns"),d([n$z(o$H)],r.prototype,"multiselect"),d([n$z(o$H)],r.prototype,"radioselect"),d([n$z(o$H)],r.prototype,"hasRowButton"),d([n$z({type:String})],r.prototype,"rowButtonLabel"),d([n$z(o$H)],r.prototype,"hasRowActions"),d([n$z({type:Array})],r.prototype,"rowActionsIcons"),d([n$z({type:String})],r.prototype,"footerButtonPrimaryLabel"),d([n$z({type:String})],r.prototype,"footerButtonSecondaryLabel"),d([n$z({type:String})],r.prototype,"footerButtonAlternativeLabel"),d([n$z(o$H)],r.prototype,"enableRowActionsOnDisabled"),d([n$z(o$H)],r.prototype,"enableRowActionsOnDeleted"),d([n$z({type:Number})],r.prototype,"valueMaxLength"),s$s("dss-accordion",o$E),s$s("dss-action-menu",r$z),s$s("dss-action-menu-item",o$C),s$s("dss-alert",a$p),s$s("dss-avatar",m$c),s$s("dss-badge",o$w),s$s("dss-badge-button",o$y),s$s("dss-button",i$n),s$s("dss-breadcrumb-bar",v$g),s$s("dss-calendar",u$m),s$s("dss-chat-message",r$x),s$s("dss-checkbox",d$f),s$s("dss-chip",i$m),s$s("dss-content-switcher",l$r),s$s("dss-custom-table",o$t),s$s("dss-custom-table-header",r$u),s$s("dss-datepicker",o$s),s$s("dss-datepicker-range",r$r),s$s("dss-decorative-icon",o$q),s$s("dss-divider",c$a),s$s("dss-drawer",h$h),s$s("dss-footer",f$i),s$s("dss-header-links",r$o),s$s("dss-header-menu-patient",o$p),s$s("dss-header-menu-professional",o$o),s$s("dss-icon",r$C),s$s("dss-icon-badge",n$p),s$s("dss-icon-button",r$n),s$s("dss-input",n$m),s$s("dss-input-action",n$o),s$s("dss-input-dropdown",n$n),s$s("dss-input-switch",a$f),s$s("dss-item-list",n$k),s$s("dss-list-menu",o$j),s$s("dss-link",o$k),s$s("dss-legend",o$l),s$s("dss-modal",d$9),s$s("dss-module-header",m$5),s$s("dss-notification-badge",r$i),s$s("dss-pagination",g$c),s$s("dss-progress-indicator",i$e),s$s("dss-radio-button",a$c),s$s("dss-search-bar",l$b),s$s("dss-selector",d$8),s$s("dss-slider",n$d),s$s("dss-spinner",d$6),s$s("dss-stepper",Stepper),s$s("dss-skeleton",h$9),s$s("dss-tabs-list",l$9),s$s("dss-tabs-panel",o$f),s$s("dss-table-pagination",a$a),s$s("dss-textarea",a$8),s$s("dss-tile",o$c),s$s("dss-timepicker",_$4),s$s("dss-toast",o$a),s$s("dss-tooltip",p$6),s$s("dss-typography",o$F),s$s("dss-popover",n$f),s$s("dss-popover-body",l$e),s$s("dss-popover-footer",l$d),s$s("dss-sidemenu-list",c$5),s$s("dss-sidemenu-list-item",o$g),s$s("dss-split-button",n$c),s$s("dss-user-feedback",r$8),s$s("dss-upload-box",o$8),s$s("dss-card",l$6),s$s("dss-card-body",n$8),s$s("dss-card-description",p$4),s$s("dss-card-footer",l$5),s$s("dss-card-form",b$3),s$s("dss-card-header",o$6),s$s("dss-card-highlights-item",e$7),s$s("dss-card-highlights",n$6),s$s("dss-card-image",d$4),s$s("dss-card-info-item",n$4),s$s("dss-card-info",i$5),s$s("dss-card-menu",p$2),s$s("dss-card-subtitle",r$7),s$s("dss-card-tags",i$4),s$s("dss-card-title",p$1),s$s("dss-header",l$2),s$s("dss-preset-texts",l$1),s$s("dss-side-menu",d$3),s$s("dss-widget",o$3),s$s("dss-button-link",o$1),s$s("dss-breadcrumb",v$1),s$s("dss-date-picker",n$2),s$s("dss-dropdownlist",l),s$s("dss-input-field",n$1),s$s("dss-table",r),s$s("dss-sidemenu",o),s$s("dss-switch",d$1);const gencatLogo="data:image/svg+xml,%3csvg%20width='94'%20height='24'%20viewBox='0%200%2094%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M9.36109%200.0906219C4.28803%200.0906219%200.175049%204.88609%200.175049%2010.8006C0.175049%2016.7148%204.28803%2021.5103%209.36109%2021.5103C14.4341%2021.5103%2018.5471%2016.7148%2018.5471%2010.8006C18.5471%204.88609%2014.4341%200.0906219%209.36109%200.0906219Z'%20fill='%23ED192D'/%3e%3cpath%20d='M2.94731%2016.1348C2.06504%2014.6225%201.54761%2012.784%201.54761%2010.8007C1.54761%208.81751%202.06504%206.97893%202.94731%205.46631V16.1348Z'%20fill='white'/%3e%3cpath%20d='M4.92041%203.11644C5.42915%202.69532%205.98132%202.34559%206.56749%202.07705V19.5234C5.98132%2019.2553%205.42915%2018.9048%204.92041%2018.4844V3.11644Z'%20fill='white'/%3e%3cpath%20d='M8.54004%201.5129C8.81008%201.47928%209.08354%201.46191%209.36076%201.46191C9.63986%201.46191%209.91557%201.47966%2010.1871%201.51365V20.087C9.91557%2020.121%209.63986%2020.1392%209.36076%2020.1392C9.08354%2020.1392%208.81008%2020.1214%208.54004%2020.0882V1.5129Z'%20fill='white'/%3e%3cpath%20d='M12.1604%202.07993C12.7469%202.34884%2013.2991%202.70008%2013.8075%203.12119V18.4797C13.2991%2018.9012%2012.7469%2019.2521%2012.1604%2019.521V2.07993Z'%20fill='white'/%3e%3cpath%20d='M15.7808%205.47645C16.6596%206.98681%2017.1752%208.82161%2017.1752%2010.8007C17.1752%2012.7797%2016.6596%2014.6142%2015.7808%2016.1245V5.47645Z'%20fill='white'/%3e%3cpath%20d='M0.944824%2010.8007C0.944824%208.34538%201.69906%206.09853%202.94769%204.36383V4.94963C1.89848%206.56989%201.27454%208.59843%201.27454%2010.8007C1.27454%2013.0026%201.89848%2015.0311%202.94769%2016.6514V17.2368C1.69906%2015.5025%200.944824%2013.2557%200.944824%2010.8007Z'%20fill='white'/%3e%3cpath%20d='M15.7808%2016.6428C16.8266%2015.0241%2017.4486%2012.9989%2017.4486%2010.8008C17.4486%208.6027%2016.8266%206.57755%2015.7808%204.9588V4.37226C17.0264%206.10545%2017.7776%208.34928%2017.7776%2010.8008C17.7776%2013.252%2017.0264%2015.4958%2015.7808%2017.229V16.6428Z'%20fill='white'/%3e%3cpath%20d='M18.3143%2020.3882C18.377%2020.1193%2018.5042%2019.844%2018.6523%2019.6241C18.4623%2019.5309%2018.3022%2019.4606%2018.1371%2019.3175C18.5012%2018.7675%2018.5919%2018.391%2018.6515%2017.7289L18.6259%2013.9857C18.3856%2015.0742%2017.8044%2016.5018%2017.3025%2017.2481C17.1559%2017.4664%2017.0913%2017.6047%2017.0007%2017.7501C16.9486%2017.8343%2016.6536%2018.3204%2016.6611%2018.9156C16.4553%2018.9571%2016.2665%2018.9496%2016.0274%2018.9318C16.0569%2019.1909%2016.0727%2019.2276%2016.0047%2019.6521C15.0972%2019.7223%2014.8328%2020.2666%2013.7571%2020.8482C13.2314%2021.1326%2012.8903%2021.2621%2012.104%2021.5492C13.9324%2021.5273%2015.275%2021.7871%2016.4243%2021.0144C16.555%2021.1874%2016.6521%2021.3554%2016.7382%2021.559C16.8964%2021.4348%2017.2069%2021.2814%2017.4649%2021.2149C17.7606%2021.5061%2018.1568%2021.6209%2018.6644%2021.5752C18.7361%2021.1666%2018.6345%2020.6643%2018.3143%2020.3882Z'%20fill='%23ED192D'/%3e%3cpath%20d='M18.4518%2019.6968C18.3101%2019.7546%2017.6431%2020.0008%2017.6431%2020.0008L17.6341%2020.0103C17.6307%2019.9517%2017.6167%2019.8939%2017.5922%2019.8395L17.5884%2019.8271C17.8456%2019.6734%2018.0072%2019.4558%2018.011%2019.4222C18.0091%2019.4195%2018.008%2019.4177%2018.0095%2019.418C18.0106%2019.4184%2018.011%2019.4199%2018.011%2019.4222C18.0329%2019.452%2018.2524%2019.6556%2018.4518%2019.6968Z'%20fill='white'/%3e%3cpath%20d='M17.9002%2016.5344C18.5691%2015.055%2018.4116%2015.1192%2018.5596%2014.5051C18.54%2014.8008%2018.5211%2015.174%2018.4792%2015.4444C18.1876%2017.0563%2017.7687%2018.2506%2017.2653%2019.5683C17.2653%2019.5683%2017.1271%2019.5566%2017.0576%2019.5698C16.9356%2019.4293%2016.8974%2019.2348%2016.8974%2019.2348C16.6633%2018.2634%2017.3918%2017.6584%2017.9002%2016.5344Z'%20fill='white'/%3e%3cpath%20d='M16.2266%2019.1308L16.8509%2019.652L16.8528%2019.6569C16.8339%2019.6709%2016.8154%2019.6868%2016.798%2019.7038C16.7667%2019.7355%2016.7402%2019.7699%2016.7195%2019.8069L16.7157%2019.8159C16.3977%2019.6614%2016.1851%2019.655%2016.1851%2019.655C16.2651%2019.3106%2016.2266%2019.1308%2016.2266%2019.1308Z'%20fill='white'/%3e%3cpath%20d='M13.3914%2021.3775C13.0776%2021.4493%2012.8241%2021.4459%2012.6262%2021.4546L13.2909%2021.2487C14.7314%2020.7087%2015.0982%2019.8725%2016.0711%2019.8532C16.2988%2019.8551%2016.4854%2019.9148%2016.6542%2020.0096L16.6561%2020.0356C16.6493%2020.0979%2016.655%2020.1614%2016.6731%2020.2222L16.6735%2020.2313C16.0016%2020.5648%2014.4655%2021.1313%2013.3914%2021.3775Z'%20fill='white'/%3e%3cpath%20d='M16.8149%2021.334C16.7764%2021.2309%2016.7228%2021.0643%2016.574%2020.8996C16.7745%2020.7297%2016.8157%2020.6383%2016.8829%2020.4721L16.8878%2020.4744C16.9509%2020.5118%2017.0208%2020.5333%2017.0914%2020.539L17.0997%2020.5378L16.8149%2021.334Z'%20fill='white'/%3e%3cpath%20d='M16.9431%2020.2505C16.8324%2020.1391%2016.8328%2019.9589%2016.9442%2019.8479C17.0556%2019.7372%2017.2354%2019.7376%2017.3464%2019.8494C17.4571%2019.9604%2017.4567%2020.1406%2017.3453%2020.2512C17.2339%2020.3619%2017.0537%2020.3615%2016.9431%2020.2505Z'%20fill='white'/%3e%3cpath%20d='M17.5617%2021.0476C17.4147%2020.8765%2017.3517%2020.7443%2017.2961%2020.5128C17.369%2020.4916%2017.4548%2020.4474%2017.5061%2020.3757L18.5032%2021.3883C18.1248%2021.4234%2017.7973%2021.3342%2017.5617%2021.0476Z'%20fill='white'/%3e%3cpath%20d='M18.6644%200.00993252C18.1568%20-0.0361447%2017.7606%200.0786629%2017.4649%200.369858C17.2069%200.303385%2016.8964%200.150051%2016.7382%200.0257921C16.6521%200.229364%2016.555%200.397053%2016.4243%200.57041C15.275%20-0.202332%2013.9324%200.057518%2012.104%200.0352345C12.8903%200.322652%2013.2314%200.452191%2013.7571%200.736588C14.8328%201.31822%2015.0972%201.86208%2016.0047%201.93271C16.0727%202.35723%2016.0569%202.39349%2016.0274%202.65334C16.2665%202.63521%2016.4553%202.62765%2016.6611%202.6692C16.6536%203.26405%2016.9486%203.75051%2017.0007%203.83436C17.0913%203.98014%2017.1559%204.11839%2017.3025%204.33669C17.8044%205.08299%2018.3856%206.51026%2018.6259%207.59912L18.6515%203.8559C18.5919%203.19382%2018.5012%202.81726%2018.1371%202.26735C18.3022%202.12421%2018.4623%202.05396%2018.6523%201.96067C18.5042%201.74086%2018.377%201.46515%2018.3143%201.19661C18.6345%200.920149%2018.7361%200.41821%2018.6644%200.00993252Z'%20fill='%23ED192D'/%3e%3cpath%20d='M18.4518%201.88761C18.3101%201.82982%2017.6431%201.58358%2017.6431%201.58358L17.6341%201.57414C17.6307%201.6323%2017.6167%201.69047%2017.5922%201.74485L17.5884%201.75732C17.8456%201.91104%2018.0072%202.12857%2018.011%202.16219C18.0091%202.16521%2018.008%202.16709%2018.0095%202.16634C18.0106%202.16558%2018.011%202.16445%2018.011%202.16219C18.0329%202.13273%2018.2524%201.92878%2018.4518%201.88761Z'%20fill='white'/%3e%3cpath%20d='M17.9002%205.05029C18.5691%206.52968%2018.4116%206.46547%2018.5596%207.07959C18.54%206.78386%2018.5211%206.41034%2018.4792%206.14067C18.1876%204.52834%2017.7687%203.33408%2017.2653%202.01596C17.2653%202.01596%2017.1271%202.02806%2017.0576%202.01484C16.9356%202.15534%2016.8974%202.34985%2016.8974%202.34985C16.6633%203.32125%2017.3918%203.9263%2017.9002%205.05029Z'%20fill='white'/%3e%3cpath%20d='M16.2266%202.45361L16.8509%201.9324L16.8528%201.92749C16.8339%201.91352%2016.8154%201.89766%2016.798%201.88067C16.7667%201.84932%2016.7402%201.81419%2016.7195%201.77793L16.7157%201.76812C16.3977%201.92297%2016.1851%201.929%2016.1851%201.929C16.2651%202.27345%2016.2266%202.45361%2016.2266%202.45361Z'%20fill='white'/%3e%3cpath%20d='M13.3914%200.207236C13.0776%200.135476%2012.8241%200.138873%2012.6262%200.130187L13.2909%200.336013C14.7314%200.876102%2015.0982%201.71229%2016.0711%201.73193C16.2988%201.72967%2016.4854%201.67%2016.6542%201.5752L16.6561%201.54914C16.6493%201.48682%2016.655%201.42337%2016.6731%201.36257L16.6735%201.35351C16.0016%201.01964%2014.4655%200.453108%2013.3914%200.207236Z'%20fill='white'/%3e%3cpath%20d='M16.8149%200.250924C16.7764%200.354032%2016.7228%200.52059%2016.574%200.685261C16.7745%200.855219%2016.8157%200.946612%2016.8829%201.11279L16.8878%201.11091C16.9509%201.07314%2017.0208%201.05162%2017.0914%201.04557L17.0997%201.04709L16.8149%200.250924Z'%20fill='white'/%3e%3cpath%20d='M16.9431%201.3342C16.8324%201.446%2016.8328%201.62577%2016.9442%201.73643C17.0556%201.84747%2017.2354%201.84672%2017.3464%201.73568C17.4571%201.62388%2017.4567%201.44411%2017.3453%201.33345C17.2339%201.22279%2017.0537%201.22316%2016.9431%201.3342Z'%20fill='white'/%3e%3cpath%20d='M17.5617%200.537082C17.4147%200.708173%2017.3517%200.84035%2017.2961%201.07187C17.369%201.09302%2017.4548%201.13722%2017.5061%201.20898L18.5032%200.19641C18.1248%200.161286%2017.7973%200.25042%2017.5617%200.537082Z'%20fill='white'/%3e%3cpath%20d='M0.0217433%2021.5752C0.529351%2021.6209%200.925543%2021.5061%201.22127%2021.2149C1.47923%2021.2814%201.78968%2021.4348%201.94831%2021.559C2.03405%2021.3554%202.13149%2021.1874%202.26217%2021.0144C3.41146%2021.7871%204.75375%2021.5273%206.58213%2021.5492C5.79579%2021.2621%205.45474%2021.1326%204.929%2020.8482C3.85335%2020.2666%203.58935%2019.7223%202.6814%2019.6521C2.61379%2019.2276%202.62927%2019.1909%202.65873%2018.9318C2.42004%2018.9496%202.2312%2018.9571%202.02536%2018.9156C2.03291%2018.3204%201.73794%2017.8343%201.68545%2017.7501C1.5948%2017.6047%201.5306%2017.4664%201.38368%2017.2481C0.882111%2016.5018%200.300853%2015.0742%200.0602679%2013.9857L0.0345879%2017.7289C0.0942621%2018.391%200.185284%2018.7675%200.549372%2019.3175C0.383946%2019.4606%200.224185%2019.5309%200.0342099%2019.6241C0.181884%2019.844%200.30954%2020.1193%200.372236%2020.3882C0.0515815%2020.6643%20-0.049639%2021.1666%200.0217433%2021.5752Z'%20fill='%23ED192D'/%3e%3cpath%20d='M0.234375%2019.6968C0.376007%2019.7546%201.04338%2020.0008%201.04338%2020.0008L1.05244%2020.0103C1.05546%2019.9517%201.06981%2019.8939%201.09436%2019.8395L1.09777%2019.8271C0.84094%2019.6734%200.678912%2019.4558%200.675512%2019.4222C0.677401%2019.4195%200.678535%2019.4177%200.676647%2019.418C0.675514%2019.4184%200.675135%2019.4199%200.675512%2019.4222C0.653229%2019.452%200.43417%2019.6556%200.234375%2019.6968Z'%20fill='white'/%3e%3cpath%20d='M0.785417%2016.5344C0.116538%2015.055%200.274029%2015.1192%200.125977%2014.5051C0.145238%2014.8008%200.164123%2015.174%200.206424%2015.4444C0.497996%2017.0563%200.916471%2018.2506%201.4203%2019.5683C1.4203%2019.5683%201.55816%2019.5566%201.62765%2019.5698C1.74964%2019.4293%201.78779%2019.2348%201.78779%2019.2348C2.02195%2018.2634%201.29378%2017.6584%200.785417%2016.5344Z'%20fill='white'/%3e%3cpath%20d='M2.45945%2019.1308L1.83552%2019.652L1.83325%2019.6569C1.85251%2019.6709%201.87064%2019.6868%201.88801%2019.7038C1.91936%2019.7355%201.9458%2019.7699%201.96657%2019.8069L1.97035%2019.8159C2.28836%2019.6614%202.50137%2019.655%202.50137%2019.655C2.42093%2019.3106%202.45945%2019.1308%202.45945%2019.1308Z'%20fill='white'/%3e%3cpath%20d='M5.29439%2021.3775C5.60825%2021.4493%205.86167%2021.4459%206.05958%2021.4546L5.39524%2021.2487C3.95437%2020.7087%203.58764%2019.8725%202.61472%2019.8532C2.38736%2019.8551%202.2004%2019.9148%202.03158%2020.0096L2.03007%2020.0356C2.03649%2020.0979%202.03082%2020.1614%202.01307%2020.2222L2.0127%2020.2313C2.68422%2020.5648%204.22063%2021.1313%205.29439%2021.3775Z'%20fill='white'/%3e%3cpath%20d='M1.8712%2021.334C1.90973%2021.2309%201.96336%2021.0643%202.11254%2020.8996C1.91199%2020.7297%201.87044%2020.6383%201.80359%2020.4721L1.79831%2020.4744C1.73561%2020.5118%201.66574%2020.5333%201.59473%2020.539L1.58643%2020.5378L1.8712%2021.334Z'%20fill='white'/%3e%3cpath%20d='M1.74254%2020.2505C1.85358%2020.1391%201.85282%2019.9589%201.74178%2019.8479C1.63037%2019.7372%201.45021%2019.7376%201.33955%2019.8494C1.22889%2019.9604%201.22927%2020.1406%201.34068%2020.2512C1.4521%2020.3619%201.63188%2020.3615%201.74254%2020.2505Z'%20fill='white'/%3e%3cpath%20d='M1.1243%2021.0476C1.27122%2020.8765%201.33429%2020.7443%201.39019%2020.5128C1.31729%2020.4916%201.23156%2020.4474%201.17982%2020.3757L0.183105%2021.3883C0.561545%2021.4234%200.888999%2021.3342%201.1243%2021.0476Z'%20fill='white'/%3e%3cpath%20d='M0.372236%201.19661C0.30954%201.46515%200.181884%201.74086%200.0342099%201.96067C0.224185%202.05396%200.383946%202.12421%200.549372%202.26735C0.185284%202.81726%200.0942621%203.19382%200.0345879%203.8559L0.0602679%207.59912C0.300853%206.51026%200.882111%205.08299%201.38368%204.33669C1.5306%204.11839%201.5948%203.98014%201.68545%203.83436C1.73794%203.75051%202.03291%203.26405%202.02536%202.6692C2.2312%202.62765%202.42004%202.63521%202.65873%202.65334C2.62927%202.39349%202.61379%202.35723%202.6814%201.93271C3.58935%201.86208%203.85335%201.31822%204.929%200.736588C5.45474%200.452191%205.79579%200.322652%206.58213%200.0352345C4.75375%200.057518%203.41146%20-0.202332%202.26217%200.57041C2.13149%200.397053%202.03405%200.229364%201.94831%200.0257921C1.78968%200.150051%201.47923%200.303385%201.22127%200.369858C0.925543%200.0786629%200.529351%20-0.0361447%200.0217433%200.00993252C-0.049639%200.41821%200.0515815%200.920149%200.372236%201.19661Z'%20fill='%23ED192D'/%3e%3cpath%20d='M0.234375%201.88761C0.376007%201.82982%201.04338%201.58358%201.04338%201.58358L1.05244%201.57414C1.05546%201.6323%201.06981%201.69047%201.09436%201.74485L1.09777%201.75732C0.84094%201.91104%200.678912%202.12857%200.675512%202.16219C0.677401%202.16521%200.678535%202.16709%200.676647%202.16634C0.675514%202.16558%200.675135%202.16445%200.675512%202.16219C0.653229%202.13273%200.43417%201.92878%200.234375%201.88761Z'%20fill='white'/%3e%3cpath%20d='M0.785417%205.05029C0.116538%206.52968%200.274029%206.46547%200.125977%207.07959C0.145238%206.78386%200.164123%206.41034%200.206424%206.14067C0.497996%204.52834%200.916471%203.33408%201.4203%202.01596C1.4203%202.01596%201.55816%202.02806%201.62765%202.01484C1.74964%202.15534%201.78779%202.34985%201.78779%202.34985C2.02195%203.32125%201.29378%203.9263%200.785417%205.05029Z'%20fill='white'/%3e%3cpath%20d='M2.45945%202.45361L1.83552%201.9324L1.83325%201.92749C1.85251%201.91352%201.87064%201.89766%201.88801%201.88067C1.91936%201.84932%201.9458%201.81419%201.96657%201.77793L1.97035%201.76812C2.28836%201.92297%202.50137%201.929%202.50137%201.929C2.42093%202.27345%202.45945%202.45361%202.45945%202.45361Z'%20fill='white'/%3e%3cpath%20d='M5.29439%200.207236C5.60825%200.135476%205.86167%200.138873%206.05958%200.130187L5.39524%200.336013C3.95437%200.876102%203.58764%201.71229%202.61472%201.73193C2.38736%201.72967%202.2004%201.67%202.03158%201.5752L2.03007%201.54914C2.03649%201.48682%202.03082%201.42337%202.01307%201.36257L2.0127%201.35351C2.68422%201.01964%204.22063%200.453108%205.29439%200.207236Z'%20fill='white'/%3e%3cpath%20d='M1.8712%200.250924C1.90973%200.354032%201.96336%200.52059%202.11254%200.685261C1.91199%200.855219%201.87044%200.946612%201.80359%201.11279L1.79831%201.11091C1.73561%201.07314%201.66574%201.05162%201.59473%201.04557L1.58643%201.04709L1.8712%200.250924Z'%20fill='white'/%3e%3cpath%20d='M1.74254%201.3342C1.85358%201.446%201.85282%201.62577%201.74178%201.73643C1.63037%201.84747%201.45021%201.84672%201.33955%201.73568C1.22889%201.62388%201.22927%201.44411%201.34068%201.33345C1.4521%201.22279%201.63188%201.22316%201.74254%201.3342Z'%20fill='white'/%3e%3cpath%20d='M1.1243%200.537082C1.27122%200.708173%201.33429%200.84035%201.39019%201.07187C1.31729%201.09302%201.23156%201.13722%201.17982%201.20898L0.183105%200.19641C0.561545%200.161286%200.888999%200.25042%201.1243%200.537082Z'%20fill='white'/%3e%3cpath%20d='M13.8075%202.35891V2.77588C13.2961%202.37516%2012.7443%202.04129%2012.1604%201.7856V1.42263C12.7417%201.66473%2013.2931%201.98047%2013.8075%202.35891Z'%20fill='white'/%3e%3cpath%20d='M9.36076%200.858693C9.63949%200.858693%209.91519%200.875302%2010.1871%200.906272V1.24316C9.91557%201.21068%209.63986%201.19369%209.36076%201.19369C9.08391%201.19369%208.81008%201.21031%208.54004%201.2428V0.905904C8.81046%200.874933%209.08391%200.858693%209.36076%200.858693Z'%20fill='white'/%3e%3cpath%20d='M6.56749%201.42051V1.78309C5.98396%202.03802%205.43217%202.37152%204.92041%202.77148V2.35454C5.43519%201.97648%205.98699%201.66185%206.56749%201.42051Z'%20fill='white'/%3e%3cpath%20d='M4.92041%2019.2462V18.8296C5.43217%2019.2295%205.98396%2019.5626%206.56749%2019.818V20.1802C5.98699%2019.9388%205.43519%2019.6246%204.92041%2019.2462Z'%20fill='white'/%3e%3cpath%20d='M9.36076%2020.7427C9.08391%2020.7427%208.81046%2020.7264%208.54004%2020.6955V20.3582C8.81008%2020.3907%209.08391%2020.4073%209.36076%2020.4073C9.63986%2020.4073%209.91557%2020.3903%2010.1871%2020.3574V20.6947C9.91519%2020.7261%209.63949%2020.7427%209.36076%2020.7427Z'%20fill='white'/%3e%3cpath%20d='M12.1604%2020.1777V19.8152C12.7443%2019.5598%2013.2961%2019.226%2013.8075%2018.8252V19.2415C13.2931%2019.6206%2012.7417%2019.936%2012.1604%2020.1777Z'%20fill='white'/%3e%3cpath%20d='M28.4893%205.86063H31.8881V10.2455H30.7554L30.5855%209.22543C30.1545%209.72398%2029.5317%2010.4604%2028.0474%2010.4604C26.0876%2010.4604%2024.3083%209.05546%2024.3083%206.20054C24.3083%203.98014%2025.5434%201.884%2028.2854%201.89533C30.7781%201.89533%2031.7635%203.51559%2031.8541%204.63693H30.1545C30.1545%204.31968%2029.577%203.29994%2028.376%203.29994C27.1636%203.29994%2026.0423%204.13839%2026.0423%206.22321C26.0423%208.44399%2027.2547%209.02185%2028.41%209.02185C28.7839%209.02185%2030.0303%208.87418%2030.3815%207.23163H28.4893V5.86063Z'%20fill='%23231F20'/%3e%3cpath%20d='M36.9077%208.47762C36.7831%208.90856%2036.3298%209.13517%2035.888%209.13517C34.6076%209.13517%2034.517%208.11505%2034.4716%207.6622H38.6069V7.37894C38.6069%204.62562%2036.9644%204.05946%2035.7746%204.05946C33.135%204.05946%2032.8857%206.38184%2032.8857%207.107C32.8857%209.58839%2034.1884%2010.4038%2035.888%2010.4038C36.9187%2010.4038%2038.1201%209.9283%2038.5389%208.47762H36.9077ZM34.517%206.63113C34.6076%205.83799%2035.0042%205.36211%2035.752%205.36211C36.2619%205.36211%2036.885%205.65671%2036.9757%206.63113H34.517Z'%20fill='%23231F20'/%3e%3cpath%20d='M45.1106%2010.2456H43.5243V6.58585C43.5243%206.14396%2043.5017%205.39614%2042.4933%205.39614C41.7908%205.39614%2041.2469%205.87202%2041.2469%206.78979V10.2456H39.6606V4.21776H41.1793V5.10155H41.2016C41.4172%204.73898%2041.8701%204.05951%2043.0145%204.05951C44.1928%204.05951%2045.1106%204.7503%2045.1106%206.07597V10.2456Z'%20fill='%23231F20'/%3e%3cpath%20d='M50.1294%208.47762C50.0047%208.90856%2049.5515%209.13517%2049.1096%209.13517C47.8293%209.13517%2047.7386%208.11505%2047.6933%207.6622H51.829V7.37894C51.829%204.62562%2050.186%204.05946%2048.9963%204.05946C46.3567%204.05946%2046.1074%206.38184%2046.1074%207.107C46.1074%209.58839%2047.4104%2010.4038%2049.1096%2010.4038C50.1407%2010.4038%2051.3417%209.9283%2051.7606%208.47762H50.1294ZM47.7386%206.63113C47.8293%205.83799%2048.2258%205.36211%2048.9737%205.36211C49.4835%205.36211%2050.1063%205.65671%2050.1974%206.63113H47.7386Z'%20fill='%23231F20'/%3e%3cpath%20d='M52.8713%204.21776H54.3893V5.26017H54.4123C54.7405%204.64832%2055.1031%204.05951%2056.0662%204.05951C56.1681%204.05951%2056.2701%204.07047%2056.3721%204.08217V5.69073C56.2361%205.66807%2056.0662%205.66808%2055.9189%205.66808C54.6842%205.66808%2054.4572%206.43854%2054.4572%207.10704V10.2456H52.8713V4.21776Z'%20fill='%23231F20'/%3e%3cpath%20d='M62.1731%205.80399C62.1731%204.31969%2060.6208%204.05946%2059.771%204.05946C58.5363%204.05946%2057.256%204.31969%2057.0747%206.16657H58.6039C58.6496%205.81532%2058.7856%205.32849%2059.5787%205.32849C59.9866%205.32849%2060.6208%205.3621%2060.6208%206.0306C60.6208%206.37051%2060.3152%206.47249%2060.066%206.50648L58.6379%206.72177C57.6295%206.86907%2056.8821%207.46959%2056.8821%208.64796C56.8821%209.89394%2057.8112%2010.4038%2058.7172%2010.4038C59.794%2010.4038%2060.3035%209.90526%2060.6661%209.53135C60.7001%209.87165%2060.7227%209.9623%2060.8134%2010.2456H62.5243V10.0072C62.3317%209.93926%2062.1731%209.78101%2062.1731%209.06681V5.80399ZM60.6208%208.08144C60.6208%208.81792%2059.9073%209.27076%2059.2045%209.27076C58.8989%209.27076%2058.4684%209.10118%2058.4684%208.54598C58.4684%207.88881%2058.9552%207.74151%2059.5448%207.63954C60.2015%207.53756%2060.4622%207.4356%2060.6208%207.31096V8.08144Z'%20fill='%23231F20'/%3e%3cpath%20d='M65.2206%2010.2456H63.6343V2.11066H65.2206V10.2456Z'%20fill='%23231F20'/%3e%3cpath%20d='M68.371%203.50394H66.7852V2.03136H68.371V3.50394ZM68.371%204.21776V10.2456H66.7852V4.21776H68.371Z'%20fill='%23231F20'/%3e%3cpath%20d='M71.6672%204.21763H72.653V5.35069H71.6672V8.62522C71.6672%208.97609%2071.6785%209.11243%2072.3244%209.11243C72.426%209.11243%2072.5397%209.1011%2072.653%209.0894V10.2904C72.4037%2010.3018%2072.154%2010.3135%2071.9052%2010.3135H71.7012C70.3302%2010.3135%2070.0809%209.79189%2070.0809%209.01047V5.35069H69.2651V4.21763H70.0809V2.58642H71.6672V4.21763Z'%20fill='%23231F20'/%3e%3cpath%20d='M78.5445%205.80399C78.5445%204.31969%2076.9926%204.05946%2076.1428%204.05946C74.9078%204.05946%2073.6278%204.31969%2073.4461%206.16657H74.9758C75.0211%205.81532%2075.1574%205.32849%2075.9502%205.32849C76.3581%205.32849%2076.9926%205.3621%2076.9926%206.0306C76.9926%206.37051%2076.6867%206.47249%2076.4374%206.50648L75.0098%206.72177C74.0013%206.86907%2073.2539%207.46959%2073.2539%208.64796C73.2539%209.89394%2074.1826%2010.4038%2075.0891%2010.4038C76.1655%2010.4038%2076.6753%209.90526%2077.0379%209.53135C77.0719%209.87165%2077.0942%209.9623%2077.1852%2010.2456H78.8961V10.0072C78.7031%209.93926%2078.5445%209.78101%2078.5445%209.06681V5.80399ZM76.9926%208.08144C76.9926%208.81792%2076.2788%209.27076%2075.5763%209.27076C75.2704%209.27076%2074.8398%209.10118%2074.8398%208.54598C74.8398%207.88881%2075.327%207.74151%2075.9162%207.63954C76.5734%207.53756%2076.834%207.4356%2076.9926%207.31096V8.08144Z'%20fill='%23231F20'/%3e%3cpath%20d='M81.7398%204.21763H82.7256V5.35069H81.7398V8.62522C81.7398%208.97609%2081.7515%209.11243%2082.3974%209.11243C82.499%209.11243%2082.6123%209.1011%2082.7256%209.0894V10.2904C82.4759%2010.3018%2082.227%2010.3135%2081.9778%2010.3135H81.7738C80.4028%2010.3135%2080.1536%209.79189%2080.1536%209.01047V5.35069H79.3381V4.21763H80.1536V2.58642H81.7398V4.21763Z'%20fill='%23231F20'/%3e%3cpath%20d='M30.0527%2013.4412H28.4664V16.3301H28.4438C28.1945%2015.9449%2027.7186%2015.39%2026.6989%2015.39C25.3732%2015.39%2024.1948%2016.4094%2024.1948%2018.4938C24.1948%2020.1485%2024.943%2021.7344%2026.7329%2021.7344C27.39%2021.7344%2028.0925%2021.4968%2028.4778%2020.817H28.5004V21.5761H30.0527V13.4412ZM25.8264%2018.6075C25.8264%2017.6558%2026.1663%2016.7607%2027.1751%2016.7607C28.2625%2016.7607%2028.5344%2017.7351%2028.5344%2018.6978C28.5344%2019.5933%2028.1378%2020.4318%2027.1294%2020.4318C26.1097%2020.4318%2025.8264%2019.3213%2025.8264%2018.6075Z'%20fill='%23231F20'/%3e%3cpath%20d='M35.0151%2019.8082C34.8905%2020.2387%2034.4373%2020.4657%2033.9954%2020.4657C32.7154%2020.4657%2032.6244%2019.4456%2032.5791%2018.9928H36.7143V18.7095C36.7143%2015.9562%2035.0718%2015.39%2033.8821%2015.39C31.2421%2015.39%2030.9932%2017.7124%2030.9932%2018.4376C30.9932%2020.919%2032.2958%2021.7344%2033.9954%2021.7344C35.0265%2021.7344%2036.2271%2021.2589%2036.6467%2019.8082H35.0151ZM32.6244%2017.9617C32.7154%2017.1686%2033.1116%2016.6927%2033.8594%2016.6927C34.3693%2016.6927%2034.9925%2016.9873%2035.0831%2017.9617H32.6244Z'%20fill='%23231F20'/%3e%3cpath%20d='M46.2321%2016.1035C46.0958%2015.6163%2045.8356%2014.6985%2044.4306%2014.6985C43.6148%2014.6985%2042.4137%2015.2427%2042.4137%2017.5425C42.4137%2019.0041%2042.9916%2020.3184%2044.4306%2020.3184C45.3706%2020.3184%2046.0282%2019.7859%2046.2321%2018.7888H47.9313C47.5914%2020.556%2046.4361%2021.791%2044.3962%2021.791C42.2325%2021.791%2040.6802%2020.3298%2040.6802%2017.5198C40.6802%2014.6762%2042.3231%2013.2259%2044.4193%2013.2259C46.8549%2013.2259%2047.8407%2014.9024%2047.9313%2016.1035H46.2321Z'%20fill='%23231F20'/%3e%3cpath%20d='M53.9813%2017.1346C53.9813%2015.6503%2052.429%2015.39%2051.5792%2015.39C50.3442%2015.39%2049.0642%2015.6503%2048.8826%2017.4971H50.4122C50.4575%2017.1459%2050.5935%2016.6591%2051.3866%2016.6591C51.7945%2016.6591%2052.429%2016.6927%2052.429%2017.3612C52.429%2017.7011%2052.1231%2017.8031%2051.8738%2017.8371L50.4466%2018.0523C49.4381%2018.1996%2048.6899%2018.8002%2048.6899%2019.9785C48.6899%2021.2245%2049.619%2021.7344%2050.5259%2021.7344C51.6019%2021.7344%2052.1118%2021.2358%2052.4743%2020.8619C52.5083%2021.2022%2052.531%2021.2929%2052.6216%2021.5761H54.3326V21.3378C54.1399%2021.2698%2053.9813%2021.1116%2053.9813%2020.3974V17.1346ZM52.429%2019.412C52.429%2020.1485%2051.7152%2020.6013%2051.0131%2020.6013C50.7068%2020.6013%2050.2766%2020.4317%2050.2766%2019.8765C50.2766%2019.2194%2050.7638%2019.0721%2051.3526%2018.9701C52.0098%2018.8681%2052.2704%2018.7662%2052.429%2018.6415V19.412Z'%20fill='%23231F20'/%3e%3cpath%20d='M57.1766%2015.5482H58.1627V16.6813H57.1766V19.9558C57.1766%2020.3067%2057.1879%2020.443%2057.8338%2020.443C57.9357%2020.443%2058.0494%2020.4317%2058.1627%2020.42V21.621C57.9131%2021.6323%2057.6638%2021.644%2057.4145%2021.644H57.211C55.84%2021.644%2055.5907%2021.1225%2055.5907%2020.341V16.6813H54.7749V15.5482H55.5907V13.917H57.1766V15.5482Z'%20fill='%23231F20'/%3e%3cpath%20d='M64.0532%2017.1346C64.0532%2015.6503%2062.5013%2015.39%2061.6515%2015.39C60.4165%2015.39%2059.1361%2015.6503%2058.9548%2017.4971H60.4844C60.5298%2017.1459%2060.6654%2016.6591%2061.4589%2016.6591C61.8668%2016.6591%2062.5013%2016.6927%2062.5013%2017.3612C62.5013%2017.7011%2062.195%2017.8031%2061.9461%2017.8371L60.5184%2018.0523C59.51%2018.1996%2058.7622%2018.8002%2058.7622%2019.9785C58.7622%2021.2245%2059.6913%2021.7344%2060.5977%2021.7344C61.6738%2021.7344%2062.184%2021.2358%2062.5466%2020.8619C62.5806%2021.2022%2062.6029%2021.2929%2062.6939%2021.5761H64.4044V21.3378C64.2118%2021.2698%2064.0532%2021.1116%2064.0532%2020.3974V17.1346ZM62.5013%2019.412C62.5013%2020.1485%2061.7875%2020.6013%2061.085%2020.6013C60.779%2020.6013%2060.3485%2020.4317%2060.3485%2019.8765C60.3485%2019.2194%2060.8357%2019.0721%2061.4249%2018.9701C62.0817%2018.8681%2062.3427%2018.7662%2062.5013%2018.6415V19.412Z'%20fill='%23231F20'/%3e%3cpath%20d='M67.1014%2021.5762H65.5151V13.4412H67.1014V21.5762Z'%20fill='%23231F20'/%3e%3cpath%20d='M74.0578%2021.5761H72.5395V20.7263H72.5169C72.1543%2021.3718%2071.5201%2021.7344%2070.6817%2021.7344C69.492%2021.7344%2068.6309%2021.0545%2068.6309%2019.514V15.5483H70.2168V19.2874C70.2168%2020.2165%2070.761%2020.3974%2071.2478%2020.3974C71.769%2020.3974%2072.4715%2020.1028%2072.4715%2019.0268V15.5483H74.0578V21.5761Z'%20fill='%23231F20'/%3e%3cpath%20d='M80.9916%2021.5762H79.4053V17.9164C79.4053%2017.4745%2079.3827%2016.7267%2078.3742%2016.7267C77.6721%2016.7267%2077.1279%2017.2026%2077.1279%2018.1204V21.5762H75.542V15.5483H77.0603V16.4321H77.0826C77.2982%2016.0695%2077.7514%2015.3901%2078.8955%2015.3901C80.0738%2015.3901%2080.9916%2016.0809%2080.9916%2017.4065V21.5762Z'%20fill='%23231F20'/%3e%3cpath%20d='M85.5378%2021.4741C84.7896%2023.7058%2084.586%2024%2083.2037%2024C82.9884%2024%2082.7165%2023.989%2082.4903%2023.9777V22.7091C82.5579%2022.72%2082.6598%2022.7317%2082.7958%2022.7317C83.3737%2022.7317%2083.6909%2022.652%2083.8382%2021.8253L81.6174%2015.5482H83.385L84.6767%2019.9894H84.6993L85.9344%2015.5482H87.6109L85.5378%2021.4741Z'%20fill='%23231F20'/%3e%3cpath%20d='M93.0864%2017.1346C93.0864%2015.6503%2091.5345%2015.39%2090.6847%2015.39C89.4493%2015.39%2088.1693%2015.6503%2087.988%2017.4971H89.5173C89.563%2017.1459%2089.6989%2016.6591%2090.4917%2016.6591C90.8996%2016.6591%2091.5345%2016.6927%2091.5345%2017.3612C91.5345%2017.7011%2091.2282%2017.8031%2090.9789%2017.8371L89.5516%2018.0523C88.5432%2018.1996%2087.7954%2018.8002%2087.7954%2019.9785C87.7954%2021.2245%2088.7241%2021.7344%2089.631%2021.7344C90.707%2021.7344%2091.2168%2021.2358%2091.5794%2020.8619C91.6138%2021.2022%2091.6361%2021.2929%2091.7271%2021.5761H93.4376V21.3378C93.245%2021.2698%2093.0864%2021.1116%2093.0864%2020.3974V17.1346ZM91.5345%2019.412C91.5345%2020.1485%2090.8203%2020.6013%2090.1182%2020.6013C89.8119%2020.6013%2089.3817%2020.4317%2089.3817%2019.8765C89.3817%2019.2194%2089.8689%2019.0721%2090.4577%2018.9701C91.1152%2018.8681%2091.3755%2018.7662%2091.5345%2018.6415V19.412Z'%20fill='%23231F20'/%3e%3c/svg%3e",template$9=te=>ke$1`
|
|
6663
|
+
`}}d([n$z(o$H)],r.prototype,"hasPaginator"),d([n$z({type:Array})],r.prototype,"data"),d([n$z({type:Array})],r.prototype,"customData"),d([n$z({type:Array})],r.prototype,"customTableHeader"),d([n$z({type:Array})],r.prototype,"filters"),d([n$z({type:Number})],r.prototype,"currentIndex"),d([n$z({type:Number})],r.prototype,"pageSize"),d([n$z({type:String})],r.prototype,"pageSizeOptions"),d([n$z({type:String})],r.prototype,"resultstext"),d([n$z({type:String})],r.prototype,"rowsperpagetext"),d([n$z({type:String})],r.prototype,"textAlign"),d([n$z({type:String})],r.prototype,"headerTitle"),d([n$z(o$H)],r.prototype,"hideHeader"),d([n$z(o$H)],r.prototype,"hideColumnHeader"),d([n$z(o$H)],r.prototype,"innerFilters"),d([n$z(o$H)],r.prototype,"expandTable"),d([n$z({type:String})],r.prototype,"expandLabel"),d([n$z({type:String})],r.prototype,"collapseLabel"),d([n$z({type:Number})],r.prototype,"rowsOnCollapsed"),d([n$z({type:String})],r.prototype,"filtersLabel"),d([n$z({type:String})],r.prototype,"cleanFiltersLabel"),d([n$z({type:String})],r.prototype,"selectedRowsLabel"),d([n$z({type:Number})],r.prototype,"footerButtons"),d([n$z(o$H)],r.prototype,"maxContentWidth"),d([n$z(o$H)],r.prototype,"stickyColumns"),d([n$z(o$H)],r.prototype,"multiselect"),d([n$z(o$H)],r.prototype,"radioselect"),d([n$z(o$H)],r.prototype,"hasRowButton"),d([n$z({type:String})],r.prototype,"rowButtonLabel"),d([n$z(o$H)],r.prototype,"hasRowActions"),d([n$z({type:Array})],r.prototype,"rowActionsIcons"),d([n$z({type:String})],r.prototype,"footerButtonPrimaryLabel"),d([n$z({type:String})],r.prototype,"footerButtonSecondaryLabel"),d([n$z({type:String})],r.prototype,"footerButtonAlternativeLabel"),d([n$z(o$H)],r.prototype,"enableRowActionsOnDisabled"),d([n$z(o$H)],r.prototype,"enableRowActionsOnDeleted"),d([n$z({type:Number})],r.prototype,"valueMaxLength"),s$s("dss-accordion",o$E),s$s("dss-action-menu",r$z),s$s("dss-action-menu-item",o$C),s$s("dss-alert",a$p),s$s("dss-avatar",m$c),s$s("dss-badge",o$w),s$s("dss-badge-button",o$y),s$s("dss-button",i$n),s$s("dss-breadcrumb-bar",v$g),s$s("dss-calendar",u$m),s$s("dss-chat-message",r$x),s$s("dss-checkbox",d$f),s$s("dss-chip",i$m),s$s("dss-content-switcher",l$r),s$s("dss-custom-table",o$t),s$s("dss-custom-table-header",r$u),s$s("dss-datepicker",o$s),s$s("dss-datepicker-range",r$r),s$s("dss-decorative-icon",o$q),s$s("dss-divider",c$a),s$s("dss-drawer",h$h),s$s("dss-footer",f$i),s$s("dss-header-links",r$o),s$s("dss-header-menu-patient",o$p),s$s("dss-header-menu-professional",o$o),s$s("dss-icon",r$C),s$s("dss-icon-badge",n$p),s$s("dss-icon-button",r$n),s$s("dss-input",n$m),s$s("dss-input-action",n$o),s$s("dss-input-dropdown",n$n),s$s("dss-input-switch",a$f),s$s("dss-item-list",n$k),s$s("dss-list-menu",o$j),s$s("dss-link",o$k),s$s("dss-legend",o$l),s$s("dss-modal",d$9),s$s("dss-module-header",m$5),s$s("dss-notification-badge",r$i),s$s("dss-pagination",g$c),s$s("dss-progress-indicator",i$e),s$s("dss-radio-button",a$c),s$s("dss-search-bar",l$b),s$s("dss-selector",d$8),s$s("dss-slider",n$d),s$s("dss-spinner",d$6),s$s("dss-stepper",Stepper),s$s("dss-skeleton",h$9),s$s("dss-tabs-list",l$9),s$s("dss-tabs-panel",o$f),s$s("dss-table-pagination",a$a),s$s("dss-textarea",a$8),s$s("dss-tile",o$c),s$s("dss-timepicker",_$4),s$s("dss-toast",o$a),s$s("dss-tooltip",p$6),s$s("dss-typography",o$F),s$s("dss-popover",n$f),s$s("dss-popover-body",l$e),s$s("dss-popover-footer",l$d),s$s("dss-sidemenu-list",c$5),s$s("dss-sidemenu-list-item",o$g),s$s("dss-split-button",n$c),s$s("dss-user-feedback",r$8),s$s("dss-upload-box",o$8),s$s("dss-card",l$6),s$s("dss-card-body",n$8),s$s("dss-card-description",p$4),s$s("dss-card-footer",l$5),s$s("dss-card-form",b$3),s$s("dss-card-header",o$6),s$s("dss-card-highlights-item",e$7),s$s("dss-card-highlights",n$6),s$s("dss-card-image",d$4),s$s("dss-card-info-item",n$4),s$s("dss-card-info",i$5),s$s("dss-card-menu",p$2),s$s("dss-card-subtitle",r$7),s$s("dss-card-tags",i$4),s$s("dss-card-title",p$1),s$s("dss-header",l$2),s$s("dss-preset-texts",l$1),s$s("dss-side-menu",d$3),s$s("dss-widget",o$3),s$s("dss-button-link",o$1),s$s("dss-breadcrumb",v$1),s$s("dss-date-picker",n$2),s$s("dss-dropdownlist",l),s$s("dss-input-field",n$1),s$s("dss-table",r),s$s("dss-sidemenu",o),s$s("dss-switch",d$1);const gencatLogo="data:image/svg+xml,%3csvg%20width='94'%20height='24'%20viewBox='0%200%2094%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M9.36109%200.0906219C4.28803%200.0906219%200.175049%204.88609%200.175049%2010.8006C0.175049%2016.7148%204.28803%2021.5103%209.36109%2021.5103C14.4341%2021.5103%2018.5471%2016.7148%2018.5471%2010.8006C18.5471%204.88609%2014.4341%200.0906219%209.36109%200.0906219Z'%20fill='%23ED192D'/%3e%3cpath%20d='M2.94731%2016.1348C2.06504%2014.6225%201.54761%2012.784%201.54761%2010.8007C1.54761%208.81751%202.06504%206.97893%202.94731%205.46631V16.1348Z'%20fill='white'/%3e%3cpath%20d='M4.92041%203.11644C5.42915%202.69532%205.98132%202.34559%206.56749%202.07705V19.5234C5.98132%2019.2553%205.42915%2018.9048%204.92041%2018.4844V3.11644Z'%20fill='white'/%3e%3cpath%20d='M8.54004%201.5129C8.81008%201.47928%209.08354%201.46191%209.36076%201.46191C9.63986%201.46191%209.91557%201.47966%2010.1871%201.51365V20.087C9.91557%2020.121%209.63986%2020.1392%209.36076%2020.1392C9.08354%2020.1392%208.81008%2020.1214%208.54004%2020.0882V1.5129Z'%20fill='white'/%3e%3cpath%20d='M12.1604%202.07993C12.7469%202.34884%2013.2991%202.70008%2013.8075%203.12119V18.4797C13.2991%2018.9012%2012.7469%2019.2521%2012.1604%2019.521V2.07993Z'%20fill='white'/%3e%3cpath%20d='M15.7808%205.47645C16.6596%206.98681%2017.1752%208.82161%2017.1752%2010.8007C17.1752%2012.7797%2016.6596%2014.6142%2015.7808%2016.1245V5.47645Z'%20fill='white'/%3e%3cpath%20d='M0.944824%2010.8007C0.944824%208.34538%201.69906%206.09853%202.94769%204.36383V4.94963C1.89848%206.56989%201.27454%208.59843%201.27454%2010.8007C1.27454%2013.0026%201.89848%2015.0311%202.94769%2016.6514V17.2368C1.69906%2015.5025%200.944824%2013.2557%200.944824%2010.8007Z'%20fill='white'/%3e%3cpath%20d='M15.7808%2016.6428C16.8266%2015.0241%2017.4486%2012.9989%2017.4486%2010.8008C17.4486%208.6027%2016.8266%206.57755%2015.7808%204.9588V4.37226C17.0264%206.10545%2017.7776%208.34928%2017.7776%2010.8008C17.7776%2013.252%2017.0264%2015.4958%2015.7808%2017.229V16.6428Z'%20fill='white'/%3e%3cpath%20d='M18.3143%2020.3882C18.377%2020.1193%2018.5042%2019.844%2018.6523%2019.6241C18.4623%2019.5309%2018.3022%2019.4606%2018.1371%2019.3175C18.5012%2018.7675%2018.5919%2018.391%2018.6515%2017.7289L18.6259%2013.9857C18.3856%2015.0742%2017.8044%2016.5018%2017.3025%2017.2481C17.1559%2017.4664%2017.0913%2017.6047%2017.0007%2017.7501C16.9486%2017.8343%2016.6536%2018.3204%2016.6611%2018.9156C16.4553%2018.9571%2016.2665%2018.9496%2016.0274%2018.9318C16.0569%2019.1909%2016.0727%2019.2276%2016.0047%2019.6521C15.0972%2019.7223%2014.8328%2020.2666%2013.7571%2020.8482C13.2314%2021.1326%2012.8903%2021.2621%2012.104%2021.5492C13.9324%2021.5273%2015.275%2021.7871%2016.4243%2021.0144C16.555%2021.1874%2016.6521%2021.3554%2016.7382%2021.559C16.8964%2021.4348%2017.2069%2021.2814%2017.4649%2021.2149C17.7606%2021.5061%2018.1568%2021.6209%2018.6644%2021.5752C18.7361%2021.1666%2018.6345%2020.6643%2018.3143%2020.3882Z'%20fill='%23ED192D'/%3e%3cpath%20d='M18.4518%2019.6968C18.3101%2019.7546%2017.6431%2020.0008%2017.6431%2020.0008L17.6341%2020.0103C17.6307%2019.9517%2017.6167%2019.8939%2017.5922%2019.8395L17.5884%2019.8271C17.8456%2019.6734%2018.0072%2019.4558%2018.011%2019.4222C18.0091%2019.4195%2018.008%2019.4177%2018.0095%2019.418C18.0106%2019.4184%2018.011%2019.4199%2018.011%2019.4222C18.0329%2019.452%2018.2524%2019.6556%2018.4518%2019.6968Z'%20fill='white'/%3e%3cpath%20d='M17.9002%2016.5344C18.5691%2015.055%2018.4116%2015.1192%2018.5596%2014.5051C18.54%2014.8008%2018.5211%2015.174%2018.4792%2015.4444C18.1876%2017.0563%2017.7687%2018.2506%2017.2653%2019.5683C17.2653%2019.5683%2017.1271%2019.5566%2017.0576%2019.5698C16.9356%2019.4293%2016.8974%2019.2348%2016.8974%2019.2348C16.6633%2018.2634%2017.3918%2017.6584%2017.9002%2016.5344Z'%20fill='white'/%3e%3cpath%20d='M16.2266%2019.1308L16.8509%2019.652L16.8528%2019.6569C16.8339%2019.6709%2016.8154%2019.6868%2016.798%2019.7038C16.7667%2019.7355%2016.7402%2019.7699%2016.7195%2019.8069L16.7157%2019.8159C16.3977%2019.6614%2016.1851%2019.655%2016.1851%2019.655C16.2651%2019.3106%2016.2266%2019.1308%2016.2266%2019.1308Z'%20fill='white'/%3e%3cpath%20d='M13.3914%2021.3775C13.0776%2021.4493%2012.8241%2021.4459%2012.6262%2021.4546L13.2909%2021.2487C14.7314%2020.7087%2015.0982%2019.8725%2016.0711%2019.8532C16.2988%2019.8551%2016.4854%2019.9148%2016.6542%2020.0096L16.6561%2020.0356C16.6493%2020.0979%2016.655%2020.1614%2016.6731%2020.2222L16.6735%2020.2313C16.0016%2020.5648%2014.4655%2021.1313%2013.3914%2021.3775Z'%20fill='white'/%3e%3cpath%20d='M16.8149%2021.334C16.7764%2021.2309%2016.7228%2021.0643%2016.574%2020.8996C16.7745%2020.7297%2016.8157%2020.6383%2016.8829%2020.4721L16.8878%2020.4744C16.9509%2020.5118%2017.0208%2020.5333%2017.0914%2020.539L17.0997%2020.5378L16.8149%2021.334Z'%20fill='white'/%3e%3cpath%20d='M16.9431%2020.2505C16.8324%2020.1391%2016.8328%2019.9589%2016.9442%2019.8479C17.0556%2019.7372%2017.2354%2019.7376%2017.3464%2019.8494C17.4571%2019.9604%2017.4567%2020.1406%2017.3453%2020.2512C17.2339%2020.3619%2017.0537%2020.3615%2016.9431%2020.2505Z'%20fill='white'/%3e%3cpath%20d='M17.5617%2021.0476C17.4147%2020.8765%2017.3517%2020.7443%2017.2961%2020.5128C17.369%2020.4916%2017.4548%2020.4474%2017.5061%2020.3757L18.5032%2021.3883C18.1248%2021.4234%2017.7973%2021.3342%2017.5617%2021.0476Z'%20fill='white'/%3e%3cpath%20d='M18.6644%200.00993252C18.1568%20-0.0361447%2017.7606%200.0786629%2017.4649%200.369858C17.2069%200.303385%2016.8964%200.150051%2016.7382%200.0257921C16.6521%200.229364%2016.555%200.397053%2016.4243%200.57041C15.275%20-0.202332%2013.9324%200.057518%2012.104%200.0352345C12.8903%200.322652%2013.2314%200.452191%2013.7571%200.736588C14.8328%201.31822%2015.0972%201.86208%2016.0047%201.93271C16.0727%202.35723%2016.0569%202.39349%2016.0274%202.65334C16.2665%202.63521%2016.4553%202.62765%2016.6611%202.6692C16.6536%203.26405%2016.9486%203.75051%2017.0007%203.83436C17.0913%203.98014%2017.1559%204.11839%2017.3025%204.33669C17.8044%205.08299%2018.3856%206.51026%2018.6259%207.59912L18.6515%203.8559C18.5919%203.19382%2018.5012%202.81726%2018.1371%202.26735C18.3022%202.12421%2018.4623%202.05396%2018.6523%201.96067C18.5042%201.74086%2018.377%201.46515%2018.3143%201.19661C18.6345%200.920149%2018.7361%200.41821%2018.6644%200.00993252Z'%20fill='%23ED192D'/%3e%3cpath%20d='M18.4518%201.88761C18.3101%201.82982%2017.6431%201.58358%2017.6431%201.58358L17.6341%201.57414C17.6307%201.6323%2017.6167%201.69047%2017.5922%201.74485L17.5884%201.75732C17.8456%201.91104%2018.0072%202.12857%2018.011%202.16219C18.0091%202.16521%2018.008%202.16709%2018.0095%202.16634C18.0106%202.16558%2018.011%202.16445%2018.011%202.16219C18.0329%202.13273%2018.2524%201.92878%2018.4518%201.88761Z'%20fill='white'/%3e%3cpath%20d='M17.9002%205.05029C18.5691%206.52968%2018.4116%206.46547%2018.5596%207.07959C18.54%206.78386%2018.5211%206.41034%2018.4792%206.14067C18.1876%204.52834%2017.7687%203.33408%2017.2653%202.01596C17.2653%202.01596%2017.1271%202.02806%2017.0576%202.01484C16.9356%202.15534%2016.8974%202.34985%2016.8974%202.34985C16.6633%203.32125%2017.3918%203.9263%2017.9002%205.05029Z'%20fill='white'/%3e%3cpath%20d='M16.2266%202.45361L16.8509%201.9324L16.8528%201.92749C16.8339%201.91352%2016.8154%201.89766%2016.798%201.88067C16.7667%201.84932%2016.7402%201.81419%2016.7195%201.77793L16.7157%201.76812C16.3977%201.92297%2016.1851%201.929%2016.1851%201.929C16.2651%202.27345%2016.2266%202.45361%2016.2266%202.45361Z'%20fill='white'/%3e%3cpath%20d='M13.3914%200.207236C13.0776%200.135476%2012.8241%200.138873%2012.6262%200.130187L13.2909%200.336013C14.7314%200.876102%2015.0982%201.71229%2016.0711%201.73193C16.2988%201.72967%2016.4854%201.67%2016.6542%201.5752L16.6561%201.54914C16.6493%201.48682%2016.655%201.42337%2016.6731%201.36257L16.6735%201.35351C16.0016%201.01964%2014.4655%200.453108%2013.3914%200.207236Z'%20fill='white'/%3e%3cpath%20d='M16.8149%200.250924C16.7764%200.354032%2016.7228%200.52059%2016.574%200.685261C16.7745%200.855219%2016.8157%200.946612%2016.8829%201.11279L16.8878%201.11091C16.9509%201.07314%2017.0208%201.05162%2017.0914%201.04557L17.0997%201.04709L16.8149%200.250924Z'%20fill='white'/%3e%3cpath%20d='M16.9431%201.3342C16.8324%201.446%2016.8328%201.62577%2016.9442%201.73643C17.0556%201.84747%2017.2354%201.84672%2017.3464%201.73568C17.4571%201.62388%2017.4567%201.44411%2017.3453%201.33345C17.2339%201.22279%2017.0537%201.22316%2016.9431%201.3342Z'%20fill='white'/%3e%3cpath%20d='M17.5617%200.537082C17.4147%200.708173%2017.3517%200.84035%2017.2961%201.07187C17.369%201.09302%2017.4548%201.13722%2017.5061%201.20898L18.5032%200.19641C18.1248%200.161286%2017.7973%200.25042%2017.5617%200.537082Z'%20fill='white'/%3e%3cpath%20d='M0.0217433%2021.5752C0.529351%2021.6209%200.925543%2021.5061%201.22127%2021.2149C1.47923%2021.2814%201.78968%2021.4348%201.94831%2021.559C2.03405%2021.3554%202.13149%2021.1874%202.26217%2021.0144C3.41146%2021.7871%204.75375%2021.5273%206.58213%2021.5492C5.79579%2021.2621%205.45474%2021.1326%204.929%2020.8482C3.85335%2020.2666%203.58935%2019.7223%202.6814%2019.6521C2.61379%2019.2276%202.62927%2019.1909%202.65873%2018.9318C2.42004%2018.9496%202.2312%2018.9571%202.02536%2018.9156C2.03291%2018.3204%201.73794%2017.8343%201.68545%2017.7501C1.5948%2017.6047%201.5306%2017.4664%201.38368%2017.2481C0.882111%2016.5018%200.300853%2015.0742%200.0602679%2013.9857L0.0345879%2017.7289C0.0942621%2018.391%200.185284%2018.7675%200.549372%2019.3175C0.383946%2019.4606%200.224185%2019.5309%200.0342099%2019.6241C0.181884%2019.844%200.30954%2020.1193%200.372236%2020.3882C0.0515815%2020.6643%20-0.049639%2021.1666%200.0217433%2021.5752Z'%20fill='%23ED192D'/%3e%3cpath%20d='M0.234375%2019.6968C0.376007%2019.7546%201.04338%2020.0008%201.04338%2020.0008L1.05244%2020.0103C1.05546%2019.9517%201.06981%2019.8939%201.09436%2019.8395L1.09777%2019.8271C0.84094%2019.6734%200.678912%2019.4558%200.675512%2019.4222C0.677401%2019.4195%200.678535%2019.4177%200.676647%2019.418C0.675514%2019.4184%200.675135%2019.4199%200.675512%2019.4222C0.653229%2019.452%200.43417%2019.6556%200.234375%2019.6968Z'%20fill='white'/%3e%3cpath%20d='M0.785417%2016.5344C0.116538%2015.055%200.274029%2015.1192%200.125977%2014.5051C0.145238%2014.8008%200.164123%2015.174%200.206424%2015.4444C0.497996%2017.0563%200.916471%2018.2506%201.4203%2019.5683C1.4203%2019.5683%201.55816%2019.5566%201.62765%2019.5698C1.74964%2019.4293%201.78779%2019.2348%201.78779%2019.2348C2.02195%2018.2634%201.29378%2017.6584%200.785417%2016.5344Z'%20fill='white'/%3e%3cpath%20d='M2.45945%2019.1308L1.83552%2019.652L1.83325%2019.6569C1.85251%2019.6709%201.87064%2019.6868%201.88801%2019.7038C1.91936%2019.7355%201.9458%2019.7699%201.96657%2019.8069L1.97035%2019.8159C2.28836%2019.6614%202.50137%2019.655%202.50137%2019.655C2.42093%2019.3106%202.45945%2019.1308%202.45945%2019.1308Z'%20fill='white'/%3e%3cpath%20d='M5.29439%2021.3775C5.60825%2021.4493%205.86167%2021.4459%206.05958%2021.4546L5.39524%2021.2487C3.95437%2020.7087%203.58764%2019.8725%202.61472%2019.8532C2.38736%2019.8551%202.2004%2019.9148%202.03158%2020.0096L2.03007%2020.0356C2.03649%2020.0979%202.03082%2020.1614%202.01307%2020.2222L2.0127%2020.2313C2.68422%2020.5648%204.22063%2021.1313%205.29439%2021.3775Z'%20fill='white'/%3e%3cpath%20d='M1.8712%2021.334C1.90973%2021.2309%201.96336%2021.0643%202.11254%2020.8996C1.91199%2020.7297%201.87044%2020.6383%201.80359%2020.4721L1.79831%2020.4744C1.73561%2020.5118%201.66574%2020.5333%201.59473%2020.539L1.58643%2020.5378L1.8712%2021.334Z'%20fill='white'/%3e%3cpath%20d='M1.74254%2020.2505C1.85358%2020.1391%201.85282%2019.9589%201.74178%2019.8479C1.63037%2019.7372%201.45021%2019.7376%201.33955%2019.8494C1.22889%2019.9604%201.22927%2020.1406%201.34068%2020.2512C1.4521%2020.3619%201.63188%2020.3615%201.74254%2020.2505Z'%20fill='white'/%3e%3cpath%20d='M1.1243%2021.0476C1.27122%2020.8765%201.33429%2020.7443%201.39019%2020.5128C1.31729%2020.4916%201.23156%2020.4474%201.17982%2020.3757L0.183105%2021.3883C0.561545%2021.4234%200.888999%2021.3342%201.1243%2021.0476Z'%20fill='white'/%3e%3cpath%20d='M0.372236%201.19661C0.30954%201.46515%200.181884%201.74086%200.0342099%201.96067C0.224185%202.05396%200.383946%202.12421%200.549372%202.26735C0.185284%202.81726%200.0942621%203.19382%200.0345879%203.8559L0.0602679%207.59912C0.300853%206.51026%200.882111%205.08299%201.38368%204.33669C1.5306%204.11839%201.5948%203.98014%201.68545%203.83436C1.73794%203.75051%202.03291%203.26405%202.02536%202.6692C2.2312%202.62765%202.42004%202.63521%202.65873%202.65334C2.62927%202.39349%202.61379%202.35723%202.6814%201.93271C3.58935%201.86208%203.85335%201.31822%204.929%200.736588C5.45474%200.452191%205.79579%200.322652%206.58213%200.0352345C4.75375%200.057518%203.41146%20-0.202332%202.26217%200.57041C2.13149%200.397053%202.03405%200.229364%201.94831%200.0257921C1.78968%200.150051%201.47923%200.303385%201.22127%200.369858C0.925543%200.0786629%200.529351%20-0.0361447%200.0217433%200.00993252C-0.049639%200.41821%200.0515815%200.920149%200.372236%201.19661Z'%20fill='%23ED192D'/%3e%3cpath%20d='M0.234375%201.88761C0.376007%201.82982%201.04338%201.58358%201.04338%201.58358L1.05244%201.57414C1.05546%201.6323%201.06981%201.69047%201.09436%201.74485L1.09777%201.75732C0.84094%201.91104%200.678912%202.12857%200.675512%202.16219C0.677401%202.16521%200.678535%202.16709%200.676647%202.16634C0.675514%202.16558%200.675135%202.16445%200.675512%202.16219C0.653229%202.13273%200.43417%201.92878%200.234375%201.88761Z'%20fill='white'/%3e%3cpath%20d='M0.785417%205.05029C0.116538%206.52968%200.274029%206.46547%200.125977%207.07959C0.145238%206.78386%200.164123%206.41034%200.206424%206.14067C0.497996%204.52834%200.916471%203.33408%201.4203%202.01596C1.4203%202.01596%201.55816%202.02806%201.62765%202.01484C1.74964%202.15534%201.78779%202.34985%201.78779%202.34985C2.02195%203.32125%201.29378%203.9263%200.785417%205.05029Z'%20fill='white'/%3e%3cpath%20d='M2.45945%202.45361L1.83552%201.9324L1.83325%201.92749C1.85251%201.91352%201.87064%201.89766%201.88801%201.88067C1.91936%201.84932%201.9458%201.81419%201.96657%201.77793L1.97035%201.76812C2.28836%201.92297%202.50137%201.929%202.50137%201.929C2.42093%202.27345%202.45945%202.45361%202.45945%202.45361Z'%20fill='white'/%3e%3cpath%20d='M5.29439%200.207236C5.60825%200.135476%205.86167%200.138873%206.05958%200.130187L5.39524%200.336013C3.95437%200.876102%203.58764%201.71229%202.61472%201.73193C2.38736%201.72967%202.2004%201.67%202.03158%201.5752L2.03007%201.54914C2.03649%201.48682%202.03082%201.42337%202.01307%201.36257L2.0127%201.35351C2.68422%201.01964%204.22063%200.453108%205.29439%200.207236Z'%20fill='white'/%3e%3cpath%20d='M1.8712%200.250924C1.90973%200.354032%201.96336%200.52059%202.11254%200.685261C1.91199%200.855219%201.87044%200.946612%201.80359%201.11279L1.79831%201.11091C1.73561%201.07314%201.66574%201.05162%201.59473%201.04557L1.58643%201.04709L1.8712%200.250924Z'%20fill='white'/%3e%3cpath%20d='M1.74254%201.3342C1.85358%201.446%201.85282%201.62577%201.74178%201.73643C1.63037%201.84747%201.45021%201.84672%201.33955%201.73568C1.22889%201.62388%201.22927%201.44411%201.34068%201.33345C1.4521%201.22279%201.63188%201.22316%201.74254%201.3342Z'%20fill='white'/%3e%3cpath%20d='M1.1243%200.537082C1.27122%200.708173%201.33429%200.84035%201.39019%201.07187C1.31729%201.09302%201.23156%201.13722%201.17982%201.20898L0.183105%200.19641C0.561545%200.161286%200.888999%200.25042%201.1243%200.537082Z'%20fill='white'/%3e%3cpath%20d='M13.8075%202.35891V2.77588C13.2961%202.37516%2012.7443%202.04129%2012.1604%201.7856V1.42263C12.7417%201.66473%2013.2931%201.98047%2013.8075%202.35891Z'%20fill='white'/%3e%3cpath%20d='M9.36076%200.858693C9.63949%200.858693%209.91519%200.875302%2010.1871%200.906272V1.24316C9.91557%201.21068%209.63986%201.19369%209.36076%201.19369C9.08391%201.19369%208.81008%201.21031%208.54004%201.2428V0.905904C8.81046%200.874933%209.08391%200.858693%209.36076%200.858693Z'%20fill='white'/%3e%3cpath%20d='M6.56749%201.42051V1.78309C5.98396%202.03802%205.43217%202.37152%204.92041%202.77148V2.35454C5.43519%201.97648%205.98699%201.66185%206.56749%201.42051Z'%20fill='white'/%3e%3cpath%20d='M4.92041%2019.2462V18.8296C5.43217%2019.2295%205.98396%2019.5626%206.56749%2019.818V20.1802C5.98699%2019.9388%205.43519%2019.6246%204.92041%2019.2462Z'%20fill='white'/%3e%3cpath%20d='M9.36076%2020.7427C9.08391%2020.7427%208.81046%2020.7264%208.54004%2020.6955V20.3582C8.81008%2020.3907%209.08391%2020.4073%209.36076%2020.4073C9.63986%2020.4073%209.91557%2020.3903%2010.1871%2020.3574V20.6947C9.91519%2020.7261%209.63949%2020.7427%209.36076%2020.7427Z'%20fill='white'/%3e%3cpath%20d='M12.1604%2020.1777V19.8152C12.7443%2019.5598%2013.2961%2019.226%2013.8075%2018.8252V19.2415C13.2931%2019.6206%2012.7417%2019.936%2012.1604%2020.1777Z'%20fill='white'/%3e%3cpath%20d='M28.4893%205.86063H31.8881V10.2455H30.7554L30.5855%209.22543C30.1545%209.72398%2029.5317%2010.4604%2028.0474%2010.4604C26.0876%2010.4604%2024.3083%209.05546%2024.3083%206.20054C24.3083%203.98014%2025.5434%201.884%2028.2854%201.89533C30.7781%201.89533%2031.7635%203.51559%2031.8541%204.63693H30.1545C30.1545%204.31968%2029.577%203.29994%2028.376%203.29994C27.1636%203.29994%2026.0423%204.13839%2026.0423%206.22321C26.0423%208.44399%2027.2547%209.02185%2028.41%209.02185C28.7839%209.02185%2030.0303%208.87418%2030.3815%207.23163H28.4893V5.86063Z'%20fill='%23231F20'/%3e%3cpath%20d='M36.9077%208.47762C36.7831%208.90856%2036.3298%209.13517%2035.888%209.13517C34.6076%209.13517%2034.517%208.11505%2034.4716%207.6622H38.6069V7.37894C38.6069%204.62562%2036.9644%204.05946%2035.7746%204.05946C33.135%204.05946%2032.8857%206.38184%2032.8857%207.107C32.8857%209.58839%2034.1884%2010.4038%2035.888%2010.4038C36.9187%2010.4038%2038.1201%209.9283%2038.5389%208.47762H36.9077ZM34.517%206.63113C34.6076%205.83799%2035.0042%205.36211%2035.752%205.36211C36.2619%205.36211%2036.885%205.65671%2036.9757%206.63113H34.517Z'%20fill='%23231F20'/%3e%3cpath%20d='M45.1106%2010.2456H43.5243V6.58585C43.5243%206.14396%2043.5017%205.39614%2042.4933%205.39614C41.7908%205.39614%2041.2469%205.87202%2041.2469%206.78979V10.2456H39.6606V4.21776H41.1793V5.10155H41.2016C41.4172%204.73898%2041.8701%204.05951%2043.0145%204.05951C44.1928%204.05951%2045.1106%204.7503%2045.1106%206.07597V10.2456Z'%20fill='%23231F20'/%3e%3cpath%20d='M50.1294%208.47762C50.0047%208.90856%2049.5515%209.13517%2049.1096%209.13517C47.8293%209.13517%2047.7386%208.11505%2047.6933%207.6622H51.829V7.37894C51.829%204.62562%2050.186%204.05946%2048.9963%204.05946C46.3567%204.05946%2046.1074%206.38184%2046.1074%207.107C46.1074%209.58839%2047.4104%2010.4038%2049.1096%2010.4038C50.1407%2010.4038%2051.3417%209.9283%2051.7606%208.47762H50.1294ZM47.7386%206.63113C47.8293%205.83799%2048.2258%205.36211%2048.9737%205.36211C49.4835%205.36211%2050.1063%205.65671%2050.1974%206.63113H47.7386Z'%20fill='%23231F20'/%3e%3cpath%20d='M52.8713%204.21776H54.3893V5.26017H54.4123C54.7405%204.64832%2055.1031%204.05951%2056.0662%204.05951C56.1681%204.05951%2056.2701%204.07047%2056.3721%204.08217V5.69073C56.2361%205.66807%2056.0662%205.66808%2055.9189%205.66808C54.6842%205.66808%2054.4572%206.43854%2054.4572%207.10704V10.2456H52.8713V4.21776Z'%20fill='%23231F20'/%3e%3cpath%20d='M62.1731%205.80399C62.1731%204.31969%2060.6208%204.05946%2059.771%204.05946C58.5363%204.05946%2057.256%204.31969%2057.0747%206.16657H58.6039C58.6496%205.81532%2058.7856%205.32849%2059.5787%205.32849C59.9866%205.32849%2060.6208%205.3621%2060.6208%206.0306C60.6208%206.37051%2060.3152%206.47249%2060.066%206.50648L58.6379%206.72177C57.6295%206.86907%2056.8821%207.46959%2056.8821%208.64796C56.8821%209.89394%2057.8112%2010.4038%2058.7172%2010.4038C59.794%2010.4038%2060.3035%209.90526%2060.6661%209.53135C60.7001%209.87165%2060.7227%209.9623%2060.8134%2010.2456H62.5243V10.0072C62.3317%209.93926%2062.1731%209.78101%2062.1731%209.06681V5.80399ZM60.6208%208.08144C60.6208%208.81792%2059.9073%209.27076%2059.2045%209.27076C58.8989%209.27076%2058.4684%209.10118%2058.4684%208.54598C58.4684%207.88881%2058.9552%207.74151%2059.5448%207.63954C60.2015%207.53756%2060.4622%207.4356%2060.6208%207.31096V8.08144Z'%20fill='%23231F20'/%3e%3cpath%20d='M65.2206%2010.2456H63.6343V2.11066H65.2206V10.2456Z'%20fill='%23231F20'/%3e%3cpath%20d='M68.371%203.50394H66.7852V2.03136H68.371V3.50394ZM68.371%204.21776V10.2456H66.7852V4.21776H68.371Z'%20fill='%23231F20'/%3e%3cpath%20d='M71.6672%204.21763H72.653V5.35069H71.6672V8.62522C71.6672%208.97609%2071.6785%209.11243%2072.3244%209.11243C72.426%209.11243%2072.5397%209.1011%2072.653%209.0894V10.2904C72.4037%2010.3018%2072.154%2010.3135%2071.9052%2010.3135H71.7012C70.3302%2010.3135%2070.0809%209.79189%2070.0809%209.01047V5.35069H69.2651V4.21763H70.0809V2.58642H71.6672V4.21763Z'%20fill='%23231F20'/%3e%3cpath%20d='M78.5445%205.80399C78.5445%204.31969%2076.9926%204.05946%2076.1428%204.05946C74.9078%204.05946%2073.6278%204.31969%2073.4461%206.16657H74.9758C75.0211%205.81532%2075.1574%205.32849%2075.9502%205.32849C76.3581%205.32849%2076.9926%205.3621%2076.9926%206.0306C76.9926%206.37051%2076.6867%206.47249%2076.4374%206.50648L75.0098%206.72177C74.0013%206.86907%2073.2539%207.46959%2073.2539%208.64796C73.2539%209.89394%2074.1826%2010.4038%2075.0891%2010.4038C76.1655%2010.4038%2076.6753%209.90526%2077.0379%209.53135C77.0719%209.87165%2077.0942%209.9623%2077.1852%2010.2456H78.8961V10.0072C78.7031%209.93926%2078.5445%209.78101%2078.5445%209.06681V5.80399ZM76.9926%208.08144C76.9926%208.81792%2076.2788%209.27076%2075.5763%209.27076C75.2704%209.27076%2074.8398%209.10118%2074.8398%208.54598C74.8398%207.88881%2075.327%207.74151%2075.9162%207.63954C76.5734%207.53756%2076.834%207.4356%2076.9926%207.31096V8.08144Z'%20fill='%23231F20'/%3e%3cpath%20d='M81.7398%204.21763H82.7256V5.35069H81.7398V8.62522C81.7398%208.97609%2081.7515%209.11243%2082.3974%209.11243C82.499%209.11243%2082.6123%209.1011%2082.7256%209.0894V10.2904C82.4759%2010.3018%2082.227%2010.3135%2081.9778%2010.3135H81.7738C80.4028%2010.3135%2080.1536%209.79189%2080.1536%209.01047V5.35069H79.3381V4.21763H80.1536V2.58642H81.7398V4.21763Z'%20fill='%23231F20'/%3e%3cpath%20d='M30.0527%2013.4412H28.4664V16.3301H28.4438C28.1945%2015.9449%2027.7186%2015.39%2026.6989%2015.39C25.3732%2015.39%2024.1948%2016.4094%2024.1948%2018.4938C24.1948%2020.1485%2024.943%2021.7344%2026.7329%2021.7344C27.39%2021.7344%2028.0925%2021.4968%2028.4778%2020.817H28.5004V21.5761H30.0527V13.4412ZM25.8264%2018.6075C25.8264%2017.6558%2026.1663%2016.7607%2027.1751%2016.7607C28.2625%2016.7607%2028.5344%2017.7351%2028.5344%2018.6978C28.5344%2019.5933%2028.1378%2020.4318%2027.1294%2020.4318C26.1097%2020.4318%2025.8264%2019.3213%2025.8264%2018.6075Z'%20fill='%23231F20'/%3e%3cpath%20d='M35.0151%2019.8082C34.8905%2020.2387%2034.4373%2020.4657%2033.9954%2020.4657C32.7154%2020.4657%2032.6244%2019.4456%2032.5791%2018.9928H36.7143V18.7095C36.7143%2015.9562%2035.0718%2015.39%2033.8821%2015.39C31.2421%2015.39%2030.9932%2017.7124%2030.9932%2018.4376C30.9932%2020.919%2032.2958%2021.7344%2033.9954%2021.7344C35.0265%2021.7344%2036.2271%2021.2589%2036.6467%2019.8082H35.0151ZM32.6244%2017.9617C32.7154%2017.1686%2033.1116%2016.6927%2033.8594%2016.6927C34.3693%2016.6927%2034.9925%2016.9873%2035.0831%2017.9617H32.6244Z'%20fill='%23231F20'/%3e%3cpath%20d='M46.2321%2016.1035C46.0958%2015.6163%2045.8356%2014.6985%2044.4306%2014.6985C43.6148%2014.6985%2042.4137%2015.2427%2042.4137%2017.5425C42.4137%2019.0041%2042.9916%2020.3184%2044.4306%2020.3184C45.3706%2020.3184%2046.0282%2019.7859%2046.2321%2018.7888H47.9313C47.5914%2020.556%2046.4361%2021.791%2044.3962%2021.791C42.2325%2021.791%2040.6802%2020.3298%2040.6802%2017.5198C40.6802%2014.6762%2042.3231%2013.2259%2044.4193%2013.2259C46.8549%2013.2259%2047.8407%2014.9024%2047.9313%2016.1035H46.2321Z'%20fill='%23231F20'/%3e%3cpath%20d='M53.9813%2017.1346C53.9813%2015.6503%2052.429%2015.39%2051.5792%2015.39C50.3442%2015.39%2049.0642%2015.6503%2048.8826%2017.4971H50.4122C50.4575%2017.1459%2050.5935%2016.6591%2051.3866%2016.6591C51.7945%2016.6591%2052.429%2016.6927%2052.429%2017.3612C52.429%2017.7011%2052.1231%2017.8031%2051.8738%2017.8371L50.4466%2018.0523C49.4381%2018.1996%2048.6899%2018.8002%2048.6899%2019.9785C48.6899%2021.2245%2049.619%2021.7344%2050.5259%2021.7344C51.6019%2021.7344%2052.1118%2021.2358%2052.4743%2020.8619C52.5083%2021.2022%2052.531%2021.2929%2052.6216%2021.5761H54.3326V21.3378C54.1399%2021.2698%2053.9813%2021.1116%2053.9813%2020.3974V17.1346ZM52.429%2019.412C52.429%2020.1485%2051.7152%2020.6013%2051.0131%2020.6013C50.7068%2020.6013%2050.2766%2020.4317%2050.2766%2019.8765C50.2766%2019.2194%2050.7638%2019.0721%2051.3526%2018.9701C52.0098%2018.8681%2052.2704%2018.7662%2052.429%2018.6415V19.412Z'%20fill='%23231F20'/%3e%3cpath%20d='M57.1766%2015.5482H58.1627V16.6813H57.1766V19.9558C57.1766%2020.3067%2057.1879%2020.443%2057.8338%2020.443C57.9357%2020.443%2058.0494%2020.4317%2058.1627%2020.42V21.621C57.9131%2021.6323%2057.6638%2021.644%2057.4145%2021.644H57.211C55.84%2021.644%2055.5907%2021.1225%2055.5907%2020.341V16.6813H54.7749V15.5482H55.5907V13.917H57.1766V15.5482Z'%20fill='%23231F20'/%3e%3cpath%20d='M64.0532%2017.1346C64.0532%2015.6503%2062.5013%2015.39%2061.6515%2015.39C60.4165%2015.39%2059.1361%2015.6503%2058.9548%2017.4971H60.4844C60.5298%2017.1459%2060.6654%2016.6591%2061.4589%2016.6591C61.8668%2016.6591%2062.5013%2016.6927%2062.5013%2017.3612C62.5013%2017.7011%2062.195%2017.8031%2061.9461%2017.8371L60.5184%2018.0523C59.51%2018.1996%2058.7622%2018.8002%2058.7622%2019.9785C58.7622%2021.2245%2059.6913%2021.7344%2060.5977%2021.7344C61.6738%2021.7344%2062.184%2021.2358%2062.5466%2020.8619C62.5806%2021.2022%2062.6029%2021.2929%2062.6939%2021.5761H64.4044V21.3378C64.2118%2021.2698%2064.0532%2021.1116%2064.0532%2020.3974V17.1346ZM62.5013%2019.412C62.5013%2020.1485%2061.7875%2020.6013%2061.085%2020.6013C60.779%2020.6013%2060.3485%2020.4317%2060.3485%2019.8765C60.3485%2019.2194%2060.8357%2019.0721%2061.4249%2018.9701C62.0817%2018.8681%2062.3427%2018.7662%2062.5013%2018.6415V19.412Z'%20fill='%23231F20'/%3e%3cpath%20d='M67.1014%2021.5762H65.5151V13.4412H67.1014V21.5762Z'%20fill='%23231F20'/%3e%3cpath%20d='M74.0578%2021.5761H72.5395V20.7263H72.5169C72.1543%2021.3718%2071.5201%2021.7344%2070.6817%2021.7344C69.492%2021.7344%2068.6309%2021.0545%2068.6309%2019.514V15.5483H70.2168V19.2874C70.2168%2020.2165%2070.761%2020.3974%2071.2478%2020.3974C71.769%2020.3974%2072.4715%2020.1028%2072.4715%2019.0268V15.5483H74.0578V21.5761Z'%20fill='%23231F20'/%3e%3cpath%20d='M80.9916%2021.5762H79.4053V17.9164C79.4053%2017.4745%2079.3827%2016.7267%2078.3742%2016.7267C77.6721%2016.7267%2077.1279%2017.2026%2077.1279%2018.1204V21.5762H75.542V15.5483H77.0603V16.4321H77.0826C77.2982%2016.0695%2077.7514%2015.3901%2078.8955%2015.3901C80.0738%2015.3901%2080.9916%2016.0809%2080.9916%2017.4065V21.5762Z'%20fill='%23231F20'/%3e%3cpath%20d='M85.5378%2021.4741C84.7896%2023.7058%2084.586%2024%2083.2037%2024C82.9884%2024%2082.7165%2023.989%2082.4903%2023.9777V22.7091C82.5579%2022.72%2082.6598%2022.7317%2082.7958%2022.7317C83.3737%2022.7317%2083.6909%2022.652%2083.8382%2021.8253L81.6174%2015.5482H83.385L84.6767%2019.9894H84.6993L85.9344%2015.5482H87.6109L85.5378%2021.4741Z'%20fill='%23231F20'/%3e%3cpath%20d='M93.0864%2017.1346C93.0864%2015.6503%2091.5345%2015.39%2090.6847%2015.39C89.4493%2015.39%2088.1693%2015.6503%2087.988%2017.4971H89.5173C89.563%2017.1459%2089.6989%2016.6591%2090.4917%2016.6591C90.8996%2016.6591%2091.5345%2016.6927%2091.5345%2017.3612C91.5345%2017.7011%2091.2282%2017.8031%2090.9789%2017.8371L89.5516%2018.0523C88.5432%2018.1996%2087.7954%2018.8002%2087.7954%2019.9785C87.7954%2021.2245%2088.7241%2021.7344%2089.631%2021.7344C90.707%2021.7344%2091.2168%2021.2358%2091.5794%2020.8619C91.6138%2021.2022%2091.6361%2021.2929%2091.7271%2021.5761H93.4376V21.3378C93.245%2021.2698%2093.0864%2021.1116%2093.0864%2020.3974V17.1346ZM91.5345%2019.412C91.5345%2020.1485%2090.8203%2020.6013%2090.1182%2020.6013C89.8119%2020.6013%2089.3817%2020.4317%2089.3817%2019.8765C89.3817%2019.2194%2089.8689%2019.0721%2090.4577%2018.9701C91.1152%2018.8681%2091.3755%2018.7662%2091.5345%2018.6415V19.412Z'%20fill='%23231F20'/%3e%3c/svg%3e",template$a=te=>ke$1`
|
|
6662
6664
|
<primaria-content-switcher id="main-switcher" attrForSelected="view" .selected=${te.viewSelected}>
|
|
6663
6665
|
<div class="container" view=${shellViews.shell}>
|
|
6664
6666
|
<primaria-shell-header></primaria-shell-header>
|
|
@@ -6706,21 +6708,21 @@ ${te.searchString?.length>1?ke$1`
|
|
|
6706
6708
|
</div>
|
|
6707
6709
|
<primaria-error-view .error=${te.error} view=${shellViews.error}></primaria-error-view>
|
|
6708
6710
|
</primaria-content-switcher>
|
|
6709
|
-
`;var __defProp$
|
|
6710
|
-
${r$G(styles$
|
|
6711
|
-
`;let PrimariaShell=Ms;__decorateClass$
|
|
6711
|
+
`;var __defProp$b=Object.defineProperty,__decorateClass$b=(te,J,X,re)=>{for(var ne=void 0,oe=te.length-1,de;oe>=0;oe--)(de=te[oe])&&(ne=de(J,X,ne)||ne);return ne&&__defProp$b(J,X,ne),ne};const Ms=class Ms extends PrimariaRegionHost(h$n){constructor(){super(...arguments),this.sidebarExpanded=!1,this.viewSelected=shellViews.shell,this.quickActionBusy=!1,this.subscriptions=[]}render(){return ke$1`${template$a(this)}`}connectedCallback(){super.connectedCallback(),this._subscribeEvents()}disconnectedCallback(){super.disconnectedCallback(),this._unsubscribeEvents()}_toggleSidebar(){this.sidebarExpanded=!this.sidebarExpanded}_subscribeEvents(){this.subscriptions.push(shellApi.broker.subscribe(shellEvents.appCrashed,J=>{this._handleError(J)})),this.subscriptions.push(shellApi.broker.subscribe(shellEvents.refreshTokenFailed,J=>{this._handleError({message:translate$1("errors.session")})})),this.subscriptions.push(shellApi.broker.subscribe(shellEvents.mpidHeaderInvalid,J=>{this._handleError({message:translate$1("errors.invalidPatient")})})),this.subscriptions.push(shellApi.broker.subscribe(shellEvents.quickActionBusyChanged,J=>{this.quickActionBusy=J.busy}))}_handleError(J){this.viewSelected=shellViews.error,this.error=J,disposeShell()}_unsubscribeEvents(){this.subscriptions.forEach(J=>J.dispose())}};Ms.styles=i$w`
|
|
6712
|
+
${r$G(styles$8)}
|
|
6713
|
+
`;let PrimariaShell=Ms;__decorateClass$b([s$z({targetId:"menu-region-container",name:shellApi.regionManager.regions.shell.navigationMenu})],PrimariaShell.prototype,"navigationMenuRegion"),__decorateClass$b([s$z({targetId:"main-region-container",name:shellApi.regionManager.regions.shell.main})],PrimariaShell.prototype,"mainRegion"),__decorateClass$b([s$z({targetId:"quick-actions-region-container",name:shellApi.regionManager.regions.shell.quickActions})],PrimariaShell.prototype,"quickActionsRegion"),__decorateClass$b([s$z({targetId:"floating-region-container",name:shellApi.regionManager.regions.shell.floating})],PrimariaShell.prototype,"floatingRegion"),__decorateClass$b([s$z({targetId:"navigation-menu-lower-region-container",name:shellApi.regionManager.regions.shell.navigationLowerLeftMenu})],PrimariaShell.prototype,"navLowerLeftMenu"),__decorateClass$b([r$D()],PrimariaShell.prototype,"sidebarExpanded"),__decorateClass$b([r$D()],PrimariaShell.prototype,"viewSelected"),__decorateClass$b([r$D()],PrimariaShell.prototype,"error"),__decorateClass$b([r$D()],PrimariaShell.prototype,"quickActionBusy");const styles$7=":host{width:100%;height:100%;min-height:1px;display:flex}.container{width:100%;min-height:1px;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#60a8f0}svg{width:45px;height:45px;fill:#d36262}h1{color:#fff}",template$9=te=>ke$1`
|
|
6712
6714
|
<div class="container">
|
|
6713
6715
|
<svg height="24px" viewBox="0 -960 960 960" width="24px" fill="#e8eaed"><path d="M480-280q17 0 28.5-11.5T520-320q0-17-11.5-28.5T480-360q-17 0-28.5 11.5T440-320q0 17 11.5 28.5T480-280Zm-40-160h80v-240h-80v240Zm40 360q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z"/></svg>
|
|
6714
6716
|
<h1>${te.error?.message}</h1>
|
|
6715
6717
|
</div>
|
|
6716
|
-
`;var __defProp$
|
|
6717
|
-
${r$G(styles$
|
|
6718
|
-
`;let PrimariaErrorView=Fs;__decorateClass$
|
|
6718
|
+
`;var __defProp$a=Object.defineProperty,__decorateClass$a=(te,J,X,re)=>{for(var ne=void 0,oe=te.length-1,de;oe>=0;oe--)(de=te[oe])&&(ne=de(J,X,ne)||ne);return ne&&__defProp$a(J,X,ne),ne};const Fs=class Fs extends h$n{render(){return ke$1`${template$9(this)}`}};Fs.styles=i$w`
|
|
6719
|
+
${r$G(styles$7)}
|
|
6720
|
+
`;let PrimariaErrorView=Fs;__decorateClass$a([n$z()],PrimariaErrorView.prototype,"error");const template$8=te=>ke$1`
|
|
6719
6721
|
<span >
|
|
6720
6722
|
<slot name="anchor"></slot>
|
|
6721
6723
|
<slot name="content"></slot>
|
|
6722
6724
|
</span>
|
|
6723
|
-
`;class QuickActionsMenu extends h$n{render(){return ke$1`${template$
|
|
6725
|
+
`;class QuickActionsMenu extends h$n{render(){return ke$1`${template$8()}`}firstUpdated(J){super.firstUpdated(J),this.shadowRoot?.querySelector('slot[name="anchor"]')?.addEventListener("slotchange",this.handleSlotChange.bind(this))}handleSlotChange(J){const re=J.target.assignedElements();if(re.length>0){const ne=re[0];ne.id==="usage-anchor"&&ne.addEventListener("click",this._handleOpenMenu.bind(this))}}_handleOpenMenu(J){const X=this.shadowRoot?.querySelector('slot[name="content"]'),re=this.querySelector("dss-action-menu"),ne=X?.assignedElements();ne[0]&&this._addMenuCustomStyle(X,re);const oe=ne.find(de=>de.id==="content");oe&&oe.show()}_addMenuCustomStyle(J,X){J.style.borderRadius="var(--dss-radius-sm)";const re=X.shadowRoot?.querySelector("ul");re&&(re.style.overflow="hidden")}}const styles$6=":host{z-index:205}.header{display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:0 16px;height:60px;background-color:#fff;color:#000;z-index:1;box-shadow:#0000001f 4px -1px 3px,#0000003d 0 1px 2px}.header .header__left{display:flex;flex-direction:row;align-items:center;gap:16px}.header .header__left .header-logo{align-self:center}.header .header__left #header-region-container,.header .header__right{display:flex;flex-direction:row;align-items:center;gap:16px}.header .header__right #header-actions-region-container{display:flex;flex-direction:row;align-items:center}",salutLogo="data:image/svg+xml,%3csvg%20width='80'%20height='24'%20viewBox='0%200%2080%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2.51539%2023.4832H0L8.22624%200.518679H10.7412L2.51539%2023.4832Z'%20fill='%236AAAE4'/%3e%3cpath%20d='M20.1573%2024C17.1695%2024%2014.8372%2023.3218%2013.1604%2021.9659C11.4836%2020.6095%2010.633%2018.5906%2010.6094%2015.9092H13.4169C13.4812%2019.6737%2015.7275%2021.5563%2020.1573%2021.5563C22.0287%2021.5563%2023.4647%2021.1901%2024.4642%2020.4587C25.4641%2019.7269%2025.9643%2018.6581%2025.9643%2017.2522C26.0073%2016.2425%2025.5399%2015.2791%2024.7212%2014.6874C23.8941%2014.0743%2022.449%2013.5427%2020.3853%2013.091L18.3511%2012.6389C16.028%2012.0994%2014.2875%2011.3204%2013.128%2010.3019C11.969%209.28302%2011.393%207.84942%2011.4004%206.00159C11.35%204.28135%2012.1493%202.64663%2013.5381%201.63049C14.9439%200.544998%2016.844%200.00226593%2019.2383%200.00226593C20.6576%20-0.0236225%2022.0722%200.172396%2023.4314%200.582922C24.4817%200.885733%2025.4406%201.44557%2026.2209%202.21115C26.858%202.86207%2027.3573%203.63505%2027.6883%204.48384C28.0096%205.35251%2028.1797%206.26925%2028.1908%207.19525H25.4156C25.2875%205.55869%2024.7554%204.35948%2023.8197%203.59668C22.8835%202.83434%2021.3566%202.4534%2019.2383%202.4534C17.623%202.4534%2016.3808%202.76592%2015.5116%203.39049C14.6573%203.97947%2014.1645%204.96464%2014.2038%206.00159C14.1492%206.99831%2014.5612%207.96359%2015.3193%208.61313C16.0484%209.2377%2017.4732%209.78646%2019.5943%2010.2589L21.6289%2010.7115C24.1651%2011.2718%2025.9925%2012.0721%2027.1113%2013.1127C28.2301%2014.1529%2028.7881%2015.5352%2028.7858%2017.2596C28.7858%2019.3446%2028.0235%2020.9895%2026.4988%2022.1938C24.9736%2023.3976%2022.86%2024%2020.1573%2024Z'%20fill='%236AAAE4'/%3e%3cpath%20d='M36.6945%2021.677C38.0098%2021.6978%2039.2894%2021.2521%2040.3074%2020.4195C41.3356%2019.6026%2041.8515%2018.4302%2041.8538%2016.9033V14.9366C41.1997%2015.3647%2040.4434%2015.6107%2039.6625%2015.6495L37.2437%2015.938C35.8434%2016.1123%2034.8495%2016.4331%2034.2582%2016.907C33.6558%2017.4039%2033.3262%2018.1579%2033.371%2018.9374C33.3313%2019.7025%2033.6401%2020.444%2034.212%2020.954C34.7783%2021.4348%2035.6261%2021.677%2036.6945%2021.677ZM45.2841%2021.3779H46.2175V23.4763C45.746%2023.5438%2045.2693%2023.5757%2044.7927%2023.5725C43.0498%2023.5725%2042.1146%2022.7768%2041.9893%2021.1856C40.8345%2022.9766%2039.0305%2023.8716%2036.5776%2023.8716C34.7464%2023.8716%2033.3142%2023.4444%2032.2703%2022.5965C31.2264%2021.7487%2030.7063%2020.5476%2030.7063%2019.0017C30.7063%2015.9879%2032.7594%2014.2668%2036.866%2013.8396L39.2529%2013.583C40.9935%2013.3884%2041.864%2012.6246%2041.864%2011.2923C41.864%2010.3658%2041.5792%209.69872%2041.0092%209.29005C40.4392%208.88368%2039.4771%208.67749%2038.1235%208.67749C36.6982%208.67749%2035.6298%208.91975%2035.0099%209.38991C34.3899%209.86007%2034.0159%2010.7292%2033.941%2011.9548H31.3512C31.5648%208.27807%2033.8213%206.43995%2038.1198%206.43995C42.2907%206.43995%2044.3762%208.05292%2044.3762%2011.278V20.58C44.3794%2021.1176%2044.6822%2021.3779%2045.2841%2021.3779Z'%20fill='%236AAAE4'/%3e%3cpath%20d='M50.8951%2023.4832H48.3159V0.518679H50.8951V23.4832Z'%20fill='%236AAAE4'/%3e%3cpath%20d='M65.7337%2016.2584V6.83891H68.3129V23.4832H65.8618V20.9896C64.5937%2022.9109%2062.8517%2023.8716%2060.6359%2023.8716C58.7876%2023.8716%2057.3471%2023.3658%2056.3143%2022.3543C55.281%2021.3423%2054.7642%2019.9175%2054.7642%2018.0789V6.83891H57.3581V17.8403C57.3581%2020.3127%2058.6262%2021.549%2061.1629%2021.549C62.3718%2021.5531%2063.5304%2021.0631%2064.3694%2020.1916C65.2788%2019.2915%2065.7337%2017.9804%2065.7337%2016.2584Z'%20fill='%236AAAE4'/%3e%3cpath%20d='M79.4708%206.83878V9.09759H76.0544V19.903C76.0544%2020.8507%2076.6882%2021.3279%2077.9568%2021.3279H79.4708V23.4905C78.7584%2023.5548%2078.1459%2023.5867%2077.6323%2023.5867C74.8607%2023.5867%2073.4748%2022.436%2073.4748%2020.1346V9.09066H70.7314V6.83878H73.4748V2.13992H76.0544V6.83878H79.4708Z'%20fill='%236AAAE4'/%3e%3c/svg%3e",template$7=te=>{const J=[{label:te.professional?.workCenter,value:"1"}],X=[{label:te.professional?.role,value:"1"}],re=[{label:te.professional?.speciality,value:"1"}];return ke$1`
|
|
6724
6726
|
<div class="header">
|
|
6725
6727
|
<div class="header__left">
|
|
6726
6728
|
<div class="header-logo">
|
|
@@ -6750,9 +6752,9 @@ ${te.searchString?.length>1?ke$1`
|
|
|
6750
6752
|
</dss-header-menu-professional>`)}
|
|
6751
6753
|
</div>
|
|
6752
6754
|
</div>
|
|
6753
|
-
`};var __defProp$
|
|
6754
|
-
${r$G(styles$
|
|
6755
|
-
`;let PrimariaShellHeader=Hs;__decorateClass$
|
|
6755
|
+
`};var __defProp$9=Object.defineProperty,__decorateClass$9=(te,J,X,re)=>{for(var ne=void 0,oe=te.length-1,de;oe>=0;oe--)(de=te[oe])&&(ne=de(J,X,ne)||ne);return ne&&__defProp$9(J,X,ne),ne};const Hs=class Hs extends PrimariaRegionHost(h$n){constructor(){super(...arguments),this.menuOpened=!1}render(){return ke$1`${template$7(this)}`}toggleMenu(){this.menuOpened=!this.menuOpened}logout(){shellApi.broker.send(new ExitShell)}connectedCallback(){super.connectedCallback(),shellApi.broker.send(new GetUserInfo).then(J=>{this.professional=J})}firstUpdated(){const J=this.renderRoot?.querySelector("#header-region-container");if(!J)return;let X;const re=()=>{X.disconnect(),Array.from(J.querySelectorAll("header-divider")).forEach(oe=>oe.remove());const ne=Array.from(J.children).filter(oe=>oe.tagName!=="HEADER-DIVIDER");for(let oe=1;oe<ne.length;oe++){const de=document.createElement("header-divider");J.insertBefore(de,ne[oe])}X.observe(J,{childList:!0})};X=new MutationObserver(re),X.observe(J,{childList:!0})}};Hs.styles=i$w`
|
|
6756
|
+
${r$G(styles$6)}
|
|
6757
|
+
`;let PrimariaShellHeader=Hs;__decorateClass$9([s$z({targetId:"header-region-container",name:shellApi.regionManager.regions.shell.header})],PrimariaShellHeader.prototype,"headerRegion"),__decorateClass$9([s$z({targetId:"header-actions-region-container",name:shellApi.regionManager.regions.shell.headerRightActions})],PrimariaShellHeader.prototype,"headerRightActionsRegion"),__decorateClass$9([n$z({type:Object})],PrimariaShellHeader.prototype,"professional"),__decorateClass$9([r$D()],PrimariaShellHeader.prototype,"menuOpened");const Ns=class Ns extends h$n{render(){return ke$1`<div>
|
|
6756
6758
|
<h1>POC ECAP Test </h1>
|
|
6757
6759
|
<hr>
|
|
6758
6760
|
<p>Emplenar valors de url i accio per navegar a ECAP</p>
|
|
@@ -6783,9 +6785,9 @@ ${te.searchString?.length>1?ke$1`
|
|
|
6783
6785
|
|
|
6784
6786
|
<button @click=${J=>this.getPDFS()}>GET PDFs</button>
|
|
6785
6787
|
`}sendPdfToViewer(){const J=this.shadowRoot?.getElementById("pdfName")?.value,re={url:this.shadowRoot?.getElementById("url")?.value};shellApi.pdfViewerManager.add(J,re)}getPDFS(){const J=shellApi.pdfViewerManager.getPdfs();return console.log(J),J}goToLinkOnEcap(){const J=this.shadowRoot?.getElementById("eventType")?.value,X=this.shadowRoot?.getElementById("accio")?.value,re=this.shadowRoot?.getElementById("parameterName")?.value,ne=this.shadowRoot?.getElementById("parameterValue")?.value;shellApi.ecapEventManager.publish(J,X,{[re]:ne})}};Ns.styles=i$w`
|
|
6786
|
-
`;let PocEventsEcap=Ns;const template$
|
|
6788
|
+
`;let PocEventsEcap=Ns;const template$6=te=>ke$1`
|
|
6787
6789
|
${te.visitId?ke$1`<dss-button @click=${te.finalizeVisitHandler} variant="subtle" size="md" icon="door_front" label=${translate$1("actions.finalizeVisit")}></dss-button>`:D$2}
|
|
6788
|
-
`;var __defProp$
|
|
6790
|
+
`;var __defProp$8=Object.defineProperty,__decorateClass$8=(te,J,X,re)=>{for(var ne=void 0,oe=te.length-1,de;oe>=0;oe--)(de=te[oe])&&(ne=de(J,X,ne)||ne);return ne&&__defProp$8(J,X,ne),ne};class FinalizeVisitButton extends h$n{render(){return ke$1`${template$6(this)}`}connectedCallback(){super.connectedCallback(),this.getVisitId()}async getVisitId(){try{await shellApi.broker.send(new GetVisitId).then(J=>{this.visitId=J})}catch(J){console.error(J.message)}}finalizeVisitHandler(){this.visitId&&shellApi.broker.send(new FinalizeVisit(this.visitId))}}__decorateClass$8([n$z({type:String})],FinalizeVisitButton.prototype,"visitId");var __defProp$7=Object.defineProperty,__decorateClass$7=(te,J,X,re)=>{for(var ne=void 0,oe=te.length-1,de;oe>=0;oe--)(de=te[oe])&&(ne=de(J,X,ne)||ne);return ne&&__defProp$7(J,X,ne),ne};const Bs=class Bs extends h$n{toggle(){this.isOpen=!this.isOpen}render(){return ke$1`
|
|
6789
6791
|
<div class="title" @click=${this.toggle}>
|
|
6790
6792
|
<slot name="title"></slot>
|
|
6791
6793
|
<dss-icon-button size="md" variant="primary" icon=${this.isOpen?"keyboard_arrow_up":"keyboard_arrow_down"}></dss-icon-button>
|
|
@@ -6814,7 +6816,7 @@ ${te.searchString?.length>1?ke$1`
|
|
|
6814
6816
|
justify-content: space-between;
|
|
6815
6817
|
align-items: center;
|
|
6816
6818
|
}
|
|
6817
|
-
`;let PrimariaAccordion=Bs;__decorateClass$
|
|
6819
|
+
`;let PrimariaAccordion=Bs;__decorateClass$7([n$z({type:Boolean})],PrimariaAccordion.prototype,"isOpen");const template$5=te=>ke$1`
|
|
6818
6820
|
<div class="item" ?expanded=${te.showText}>
|
|
6819
6821
|
<div class="icon-label">
|
|
6820
6822
|
<dss-icon icon=${te.icon} size="md"></dss-icon>
|
|
@@ -6828,13 +6830,13 @@ ${te.searchString?.length>1?ke$1`
|
|
|
6828
6830
|
</dss-action-menu>
|
|
6829
6831
|
${te.showText?ke$1`<dss-icon icon="chevron_right" size="md"></dss-icon>`:D$2}
|
|
6830
6832
|
</div>
|
|
6831
|
-
`,styles$
|
|
6832
|
-
${r$G(styles$
|
|
6833
|
-
`;let CommunicationActionMenu=js;__decorateClass$
|
|
6833
|
+
`,styles$5=".item{display:flex;cursor:pointer;border-radius:8px;padding:8px;justify-content:center;transition:background-color .3s ease}.item[expanded]{justify-content:space-between}.item:hover{background-color:var(--color-primary-900);color:#fff}.item .icon-label{display:flex;gap:8px;transition:background-color .3s}.item.active{outline:2px solid white;outline-offset:-2px}";var __defProp$6=Object.defineProperty,__decorateClass$6=(te,J,X,re)=>{for(var ne=void 0,oe=te.length-1,de;oe>=0;oe--)(de=te[oe])&&(ne=de(J,X,ne)||ne);return ne&&__defProp$6(J,X,ne),ne};const js=class js extends PrimariaRegionHost(h$n){constructor(J,X){super(),this.showText=!1,this.icon="",this.label="",this.icon=J,this.label=X}firstUpdated(J){super.firstUpdated(J),this.observeHostResize()}observeHostResize(){const J=this.parentElement;new ResizeObserver(re=>{for(const ne of re){const oe=ne.target.clientWidth;this.showText=oe>100}}).observe(J)}render(){return ke$1`${template$5(this)}`}};js.styles=i$w`
|
|
6834
|
+
${r$G(styles$5)}
|
|
6835
|
+
`;let CommunicationActionMenu=js;__decorateClass$6([r$D()],CommunicationActionMenu.prototype,"showText"),__decorateClass$6([s$z({targetId:"communication-sidenav-region-container",name:shellApi.regionManager.regions.shell.communicationSidenav})],CommunicationActionMenu.prototype,"comminucationSidenavRegion"),__decorateClass$6([n$z({type:String})],CommunicationActionMenu.prototype,"icon"),__decorateClass$6([n$z({type:String})],CommunicationActionMenu.prototype,"label");const styles$4=".header-container{width:1px;height:40px;background-color:var(--color-neutral-100)}",template$4=te=>ke$1`
|
|
6834
6836
|
<div class="header-container"></div>
|
|
6835
|
-
`,Us=class Us extends h$n{render(){return ke$1`${template$
|
|
6836
|
-
${r$G(styles$
|
|
6837
|
-
`;let HeaderDivider=Us;const useComponents=()=>{t$l("primaria-shell")(PrimariaShell),t$l("primaria-shell-header")(PrimariaShellHeader),t$l("primaria-error-view")(PrimariaErrorView),t$l("quick-actions-menu")(QuickActionsMenu),t$l("finalize-visit-button")(FinalizeVisitButton),t$l("header-divider")(HeaderDivider),t$l("communication-action-menu")(CommunicationActionMenu),t$l("poc-events-ecap")(PocEventsEcap),t$l("primaria-accordion")(PrimariaAccordion)};var __defProp$
|
|
6837
|
+
`,Us=class Us extends h$n{render(){return ke$1`${template$4()}`}};Us.styles=i$w`
|
|
6838
|
+
${r$G(styles$4)}
|
|
6839
|
+
`;let HeaderDivider=Us;const useComponents=()=>{t$l("primaria-shell")(PrimariaShell),t$l("primaria-shell-header")(PrimariaShellHeader),t$l("primaria-error-view")(PrimariaErrorView),t$l("quick-actions-menu")(QuickActionsMenu),t$l("finalize-visit-button")(FinalizeVisitButton),t$l("header-divider")(HeaderDivider),t$l("communication-action-menu")(CommunicationActionMenu),t$l("poc-events-ecap")(PocEventsEcap),t$l("primaria-accordion")(PrimariaAccordion)};var __defProp$5=Object.defineProperty,__decorateClass$5=(te,J,X,re)=>{for(var ne=void 0,oe=te.length-1,de;oe>=0;oe--)(de=te[oe])&&(ne=de(J,X,ne)||ne);return ne&&__defProp$5(J,X,ne),ne};const isSelected=(te,J,X)=>te[J]===X||Array.from(te.attributes).some(re=>re.name===J&&re.value===X),Vs=class Vs extends h$n{constructor(){super(...arguments),this.animation="fade"}render(){return ke$1` <slot></slot> `}updated(J){this.select()}get items(){return this.children}selectIndex(){return this.selected||this.selected===0?this.attrForSelected?Array.from(this.items).findIndex(J=>isSelected(J,this.attrForSelected,this.selected)):Number.parseInt(this.selected):-1}select(){if(this.items.length){const J=this.selectIndex();if(J!==-1){const X=Array.from(this.items);X.forEach(re=>re.classList.remove("selected")),X[J]?.classList.add("selected")}}}doAnimation(J){switch(this.animation){case"fade":return J?.classList.add("fade-in");case"slideDown":return J?.classList.add("slide-down");case"slideLeft":return J?.classList.add("slide-left");case"slideRight":return J?.classList.add("slide-right");case"disabled":return;default:return J?.classList.add("fade-in")}}};Vs.styles=i$w`
|
|
6838
6840
|
:host {
|
|
6839
6841
|
display: flex;
|
|
6840
6842
|
flex: 1;
|
|
@@ -6842,7 +6844,7 @@ ${te.searchString?.length>1?ke$1`
|
|
|
6842
6844
|
:host > ::slotted(:not(slot):not(.selected)) {
|
|
6843
6845
|
display: none !important;
|
|
6844
6846
|
}
|
|
6845
|
-
`;let PrimariaContentSwitcher=Vs;__decorateClass$
|
|
6847
|
+
`;let PrimariaContentSwitcher=Vs;__decorateClass$5([n$z()],PrimariaContentSwitcher.prototype,"selected"),__decorateClass$5([n$z()],PrimariaContentSwitcher.prototype,"attrForSelected"),__decorateClass$5([n$z()],PrimariaContentSwitcher.prototype,"animation");const styles$3=".wrapper{display:flex;flex-direction:column;gap:8px}.menu-active{background-color:var(--color-primary-900);color:#fff;border-radius:8px}",template$3=te=>ke$1`
|
|
6846
6848
|
<div class="wrapper">
|
|
6847
6849
|
<primaria-nav-item
|
|
6848
6850
|
.config=${te.primariaNavItemConfig}
|
|
@@ -6861,9 +6863,9 @@ ${te.searchString?.length>1?ke$1`
|
|
|
6861
6863
|
</dss-action-menu>
|
|
6862
6864
|
`:D$2}
|
|
6863
6865
|
</div>
|
|
6864
|
-
`;var __defProp$
|
|
6865
|
-
${r$G(styles$
|
|
6866
|
-
`;let PrimariaNavTreeMenu=Gs;__decorateClass$
|
|
6866
|
+
`;var __defProp$4=Object.defineProperty,__decorateClass$4=(te,J,X,re)=>{for(var ne=void 0,oe=te.length-1,de;oe>=0;oe--)(de=te[oe])&&(ne=de(J,X,ne)||ne);return ne&&__defProp$4(J,X,ne),ne};const Gs=class Gs extends h$n{constructor(J){super(),this.showActionMenu=!1,this.handleItemClick=()=>{this.showActionMenu=!0,this.requestUpdate()},this.handleCloseMenu=()=>{this.showActionMenu=!1},this.config=J,this.primariaNavItemConfig={icon:J.icon,label:J.label,showArrow:!0,callbackFn:this.handleItemClick}}render(){return ke$1`${template$3(this)}`}};Gs.styles=i$w`
|
|
6867
|
+
${r$G(styles$3)}
|
|
6868
|
+
`;let PrimariaNavTreeMenu=Gs;__decorateClass$4([n$z({type:Object})],PrimariaNavTreeMenu.prototype,"config"),__decorateClass$4([r$D()],PrimariaNavTreeMenu.prototype,"primariaNavItemConfig"),__decorateClass$4([r$D()],PrimariaNavTreeMenu.prototype,"showActionMenu");var quill$1={exports:{}};/*!
|
|
6867
6869
|
* Quill Editor v1.3.6
|
|
6868
6870
|
* https://quilljs.com/
|
|
6869
6871
|
* Copyright (c) 2014, Jason Chen
|
|
@@ -6903,14 +6905,14 @@ ${te.searchString?.length>1?ke$1`
|
|
|
6903
6905
|
`),vt}function Ut(gt,vt){if(je(gt)&>.nextElementSibling!=null&&!tt(vt,`
|
|
6904
6906
|
|
|
6905
6907
|
`)){var kt=gt.offsetHeight+parseFloat(Xe(gt).marginTop)+parseFloat(Xe(gt).marginBottom);gt.nextElementSibling.offsetTop>gt.offsetTop+kt*1.5&&vt.insert(`
|
|
6906
|
-
`)}return vt}function ns(gt,vt){var kt={},At=gt.style||{};return At.fontStyle&&Xe(gt).fontStyle==="italic"&&(kt.italic=!0),At.fontWeight&&(Xe(gt).fontWeight.startsWith("bold")||parseInt(Xe(gt).fontWeight)>=700)&&(kt.bold=!0),Object.keys(kt).length>0&&(vt=Ue(vt,kt)),parseFloat(At.textIndent||0)>0&&(vt=new fe.default().insert(" ").concat(vt)),vt}function Xt(gt,vt){var kt=gt.data;if(gt.parentNode.tagName==="O:P")return vt.insert(kt.trim());if(kt.trim().length===0&>.parentNode.classList.contains("ql-clipboard"))return vt;if(!Xe(gt.parentNode).whiteSpace.startsWith("pre")){var At=function(Ft,Mt){return Mt=Mt.replace(/[^\u00a0]/g,""),Mt.length<1&&Ft?" ":Mt};kt=kt.replace(/\r\n/g," ").replace(/\n/g," "),kt=kt.replace(/\s\s+/g,At.bind(At,!0)),(gt.previousSibling==null&&je(gt.parentNode)||gt.previousSibling!=null&&je(gt.previousSibling))&&(kt=kt.replace(/^\s+/,At.bind(At,!1))),(gt.nextSibling==null&&je(gt.parentNode)||gt.nextSibling!=null&&je(gt.nextSibling))&&(kt=kt.replace(/\s+$/,At.bind(At,!1)))}return vt.insert(kt)}re.default=Ge,re.matchAttributor=ot,re.matchBlot=yt,re.matchNewline=Nt,re.matchSpacing=Ut,re.matchText=Xt}),(function(X,re,ne){Object.defineProperty(re,"__esModule",{value:!0});var oe=(function(){function ve(me,_e){for(var ye=0;ye<_e.length;ye++){var Ce=_e[ye];Ce.enumerable=Ce.enumerable||!1,Ce.configurable=!0,"value"in Ce&&(Ce.writable=!0),Object.defineProperty(me,Ce.key,Ce)}}return function(me,_e,ye){return _e&&ve(me.prototype,_e),ye&&ve(me,ye),me}})(),de=function ve(me,_e,ye){me===null&&(me=Function.prototype);var Ce=Object.getOwnPropertyDescriptor(me,_e);if(Ce===void 0){var Se=Object.getPrototypeOf(me);return Se===null?void 0:ve(Se,_e,ye)}else{if("value"in Ce)return Ce.value;var we=Ce.get;return we===void 0?void 0:we.call(ye)}},ce=ne(6),he=ue(ce);function ue(ve){return ve&&ve.__esModule?ve:{default:ve}}function pe(ve,me){if(!(ve instanceof me))throw new TypeError("Cannot call a class as a function")}function fe(ve,me){if(!ve)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return me&&(typeof me=="object"||typeof me=="function")?me:ve}function be(ve,me){if(typeof me!="function"&&me!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof me);ve.prototype=Object.create(me&&me.prototype,{constructor:{value:ve,enumerable:!1,writable:!0,configurable:!0}}),me&&(Object.setPrototypeOf?Object.setPrototypeOf(ve,me):ve.__proto__=me)}var ge=(function(ve){be(me,ve);function me(){return pe(this,me),fe(this,(me.__proto__||Object.getPrototypeOf(me)).apply(this,arguments))}return oe(me,[{key:"optimize",value:function(ye){de(me.prototype.__proto__||Object.getPrototypeOf(me.prototype),"optimize",this).call(this,ye),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return de(me.__proto__||Object.getPrototypeOf(me),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),me})(he.default);ge.blotName="bold",ge.tagName=["STRONG","B"],re.default=ge}),(function(X,re,ne){Object.defineProperty(re,"__esModule",{value:!0}),re.addControls=re.default=void 0;var oe=(function(){function Pe(Ie,Be){var We=[],Ye=!0,Ke=!1,mt=void 0;try{for(var Je=Ie[Symbol.iterator](),Ze;!(Ye=(Ze=Je.next()).done)&&(We.push(Ze.value),!(Be&&We.length===Be));Ye=!0);}catch(Fe){Ke=!0,mt=Fe}finally{try{!Ye&&Je.return&&Je.return()}finally{if(Ke)throw mt}}return We}return function(Ie,Be){if(Array.isArray(Ie))return Ie;if(Symbol.iterator in Object(Ie))return Pe(Ie,Be);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),de=(function(){function Pe(Ie,Be){for(var We=0;We<Be.length;We++){var Ye=Be[We];Ye.enumerable=Ye.enumerable||!1,Ye.configurable=!0,"value"in Ye&&(Ye.writable=!0),Object.defineProperty(Ie,Ye.key,Ye)}}return function(Ie,Be,We){return Be&&Pe(Ie.prototype,Be),We&&Pe(Ie,We),Ie}})(),ce=ne(2),he=ye(ce),ue=ne(0),pe=ye(ue),fe=ne(5),be=ye(fe),ge=ne(10),ve=ye(ge),me=ne(9),_e=ye(me);function ye(Pe){return Pe&&Pe.__esModule?Pe:{default:Pe}}function Ce(Pe,Ie,Be){return Ie in Pe?Object.defineProperty(Pe,Ie,{value:Be,enumerable:!0,configurable:!0,writable:!0}):Pe[Ie]=Be,Pe}function Se(Pe,Ie){if(!(Pe instanceof Ie))throw new TypeError("Cannot call a class as a function")}function we(Pe,Ie){if(!Pe)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Ie&&(typeof Ie=="object"||typeof Ie=="function")?Ie:Pe}function Ae(Pe,Ie){if(typeof Ie!="function"&&Ie!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Ie);Pe.prototype=Object.create(Ie&&Ie.prototype,{constructor:{value:Pe,enumerable:!1,writable:!0,configurable:!0}}),Ie&&(Object.setPrototypeOf?Object.setPrototypeOf(Pe,Ie):Pe.__proto__=Ie)}var Le="getRootNode"in document,qe=(0,ve.default)("quill:toolbar"),Me=(function(Pe){Ae(Ie,Pe);function Ie(Be,We){Se(this,Ie);var Ye=we(this,(Ie.__proto__||Object.getPrototypeOf(Ie)).call(this,Be,We));if(Array.isArray(Ye.options.container)){var Ke=document.createElement("div");ze(Ke,Ye.options.container),Be.container.parentNode.insertBefore(Ke,Be.container),Ye.container=Ke}else if(typeof Ye.options.container=="string"){var mt=Le?Be.container.getRootNode():document;Ye.container=mt.querySelector(Ye.options.container)}else Ye.container=Ye.options.container;if(!(Ye.container instanceof HTMLElement)){var Je;return Je=qe.error("Container required for toolbar",Ye.options),we(Ye,Je)}return Ye.container.classList.add("ql-toolbar"),Ye.controls=[],Ye.handlers={},Object.keys(Ye.options.handlers).forEach(function(Ze){Ye.addHandler(Ze,Ye.options.handlers[Ze])}),[].forEach.call(Ye.container.querySelectorAll("button, select"),function(Ze){Ye.attach(Ze)}),Ye.quill.on(be.default.events.EDITOR_CHANGE,function(Ze,Fe){Ze===be.default.events.SELECTION_CHANGE&&Ye.update(Fe)}),Ye.quill.on(be.default.events.SCROLL_OPTIMIZE,function(){var Ze=Ye.quill.selection.getRange(),Fe=oe(Ze,1),Ge=Fe[0];Ye.update(Ge)}),Ye}return de(Ie,[{key:"addHandler",value:function(We,Ye){this.handlers[We]=Ye}},{key:"attach",value:function(We){var Ye=this,Ke=[].find.call(We.classList,function(Je){return Je.indexOf("ql-")===0});if(Ke){if(Ke=Ke.slice(3),We.tagName==="BUTTON"&&We.setAttribute("type","button"),this.handlers[Ke]==null){if(this.quill.scroll.whitelist!=null&&this.quill.scroll.whitelist[Ke]==null){qe.warn("ignoring attaching to disabled format",Ke,We);return}if(pe.default.query(Ke)==null){qe.warn("ignoring attaching to nonexistent format",Ke,We);return}}var mt=We.tagName==="SELECT"?"change":"click";We.addEventListener(mt,function(Je){var Ze=void 0;if(We.tagName==="SELECT"){if(We.selectedIndex<0)return;var Fe=We.options[We.selectedIndex];Fe.hasAttribute("selected")?Ze=!1:Ze=Fe.value||!1}else We.classList.contains("ql-active")?Ze=!1:Ze=We.value||!We.hasAttribute("value"),Je.preventDefault();Ye.quill.focus();var Ge=Ye.quill.selection.getRange(),Ue=oe(Ge,1),Xe=Ue[0];if(Ye.handlers[Ke]!=null)Ye.handlers[Ke].call(Ye,Ze);else if(pe.default.query(Ke).prototype instanceof pe.default.Embed){if(Ze=prompt("Enter "+Ke),!Ze)return;Ye.quill.updateContents(new he.default().retain(Xe.index).delete(Xe.length).insert(Ce({},Ke,Ze)),be.default.sources.USER)}else Ye.quill.format(Ke,Ze,be.default.sources.USER);Ye.update(Xe)}),this.controls.push([Ke,We])}}},{key:"update",value:function(We){var Ye=We==null?{}:this.quill.getFormat(We);this.controls.forEach(function(Ke){var mt=oe(Ke,2),Je=mt[0],Ze=mt[1];if(Ze.tagName==="SELECT"){var Fe=void 0;if(We==null)Fe=null;else if(Ye[Je]==null)Fe=Ze.querySelector("option[selected]");else if(!Array.isArray(Ye[Je])){var Ge=Ye[Je];typeof Ge=="string"&&(Ge=Ge.replace(/\"/g,'\\"')),Fe=Ze.querySelector('option[value="'+Ge+'"]')}Fe==null?(Ze.value="",Ze.selectedIndex=-1):Fe.selected=!0}else if(We==null)Ze.classList.remove("ql-active");else if(Ze.hasAttribute("value")){var Ue=Ye[Je]===Ze.getAttribute("value")||Ye[Je]!=null&&Ye[Je].toString()===Ze.getAttribute("value")||Ye[Je]==null&&!Ze.getAttribute("value");Ze.classList.toggle("ql-active",Ue)}else Ze.classList.toggle("ql-active",Ye[Je]!=null)})}}]),Ie})(_e.default);Me.DEFAULTS={};function Ne(Pe,Ie,Be){var We=document.createElement("button");We.setAttribute("type","button"),We.classList.add("ql-"+Ie),Be!=null&&(We.value=Be),Pe.appendChild(We)}function ze(Pe,Ie){Array.isArray(Ie[0])||(Ie=[Ie]),Ie.forEach(function(Be){var We=document.createElement("span");We.classList.add("ql-formats"),Be.forEach(function(Ye){if(typeof Ye=="string")Ne(We,Ye);else{var Ke=Object.keys(Ye)[0],mt=Ye[Ke];Array.isArray(mt)?Oe(We,Ke,mt):Ne(We,Ke,mt)}}),Pe.appendChild(We)})}function Oe(Pe,Ie,Be){var We=document.createElement("select");We.classList.add("ql-"+Ie),Be.forEach(function(Ye){var Ke=document.createElement("option");Ye!==!1?Ke.setAttribute("value",Ye):Ke.setAttribute("selected","selected"),We.appendChild(Ke)}),Pe.appendChild(We)}Me.DEFAULTS={container:null,handlers:{clean:function(){var Ie=this,Be=this.quill.getSelection();if(Be!=null)if(Be.length==0){var We=this.quill.getFormat();Object.keys(We).forEach(function(Ye){pe.default.query(Ye,pe.default.Scope.INLINE)!=null&&Ie.quill.format(Ye,!1)})}else this.quill.removeFormat(Be,be.default.sources.USER)},direction:function(Ie){var Be=this.quill.getFormat().align;Ie==="rtl"&&Be==null?this.quill.format("align","right",be.default.sources.USER):!Ie&&Be==="right"&&this.quill.format("align",!1,be.default.sources.USER),this.quill.format("direction",Ie,be.default.sources.USER)},indent:function(Ie){var Be=this.quill.getSelection(),We=this.quill.getFormat(Be),Ye=parseInt(We.indent||0);if(Ie==="+1"||Ie==="-1"){var Ke=Ie==="+1"?1:-1;We.direction==="rtl"&&(Ke*=-1),this.quill.format("indent",Ye+Ke,be.default.sources.USER)}},link:function(Ie){Ie===!0&&(Ie=prompt("Enter link URL:")),this.quill.format("link",Ie,be.default.sources.USER)},list:function(Ie){var Be=this.quill.getSelection(),We=this.quill.getFormat(Be);Ie==="check"?We.list==="checked"||We.list==="unchecked"?this.quill.format("list",!1,be.default.sources.USER):this.quill.format("list","unchecked",be.default.sources.USER):this.quill.format("list",Ie,be.default.sources.USER)}}},re.default=Me,re.addControls=ze}),(function(X,re){X.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'}),(function(X,re,ne){Object.defineProperty(re,"__esModule",{value:!0});var oe=(function(){function ve(me,_e){for(var ye=0;ye<_e.length;ye++){var Ce=_e[ye];Ce.enumerable=Ce.enumerable||!1,Ce.configurable=!0,"value"in Ce&&(Ce.writable=!0),Object.defineProperty(me,Ce.key,Ce)}}return function(me,_e,ye){return _e&&ve(me.prototype,_e),ye&&ve(me,ye),me}})(),de=function ve(me,_e,ye){me===null&&(me=Function.prototype);var Ce=Object.getOwnPropertyDescriptor(me,_e);if(Ce===void 0){var Se=Object.getPrototypeOf(me);return Se===null?void 0:ve(Se,_e,ye)}else{if("value"in Ce)return Ce.value;var we=Ce.get;return we===void 0?void 0:we.call(ye)}},ce=ne(28),he=ue(ce);function ue(ve){return ve&&ve.__esModule?ve:{default:ve}}function pe(ve,me){if(!(ve instanceof me))throw new TypeError("Cannot call a class as a function")}function fe(ve,me){if(!ve)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return me&&(typeof me=="object"||typeof me=="function")?me:ve}function be(ve,me){if(typeof me!="function"&&me!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof me);ve.prototype=Object.create(me&&me.prototype,{constructor:{value:ve,enumerable:!1,writable:!0,configurable:!0}}),me&&(Object.setPrototypeOf?Object.setPrototypeOf(ve,me):ve.__proto__=me)}var ge=(function(ve){be(me,ve);function me(_e,ye){pe(this,me);var Ce=fe(this,(me.__proto__||Object.getPrototypeOf(me)).call(this,_e));return Ce.label.innerHTML=ye,Ce.container.classList.add("ql-color-picker"),[].slice.call(Ce.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(Se){Se.classList.add("ql-primary")}),Ce}return oe(me,[{key:"buildItem",value:function(ye){var Ce=de(me.prototype.__proto__||Object.getPrototypeOf(me.prototype),"buildItem",this).call(this,ye);return Ce.style.backgroundColor=ye.getAttribute("value")||"",Ce}},{key:"selectItem",value:function(ye,Ce){de(me.prototype.__proto__||Object.getPrototypeOf(me.prototype),"selectItem",this).call(this,ye,Ce);var Se=this.label.querySelector(".ql-color-label"),we=ye&&ye.getAttribute("data-value")||"";Se&&(Se.tagName==="line"?Se.style.stroke=we:Se.style.fill=we)}}]),me})(he.default);re.default=ge}),(function(X,re,ne){Object.defineProperty(re,"__esModule",{value:!0});var oe=(function(){function ve(me,_e){for(var ye=0;ye<_e.length;ye++){var Ce=_e[ye];Ce.enumerable=Ce.enumerable||!1,Ce.configurable=!0,"value"in Ce&&(Ce.writable=!0),Object.defineProperty(me,Ce.key,Ce)}}return function(me,_e,ye){return _e&&ve(me.prototype,_e),ye&&ve(me,ye),me}})(),de=function ve(me,_e,ye){me===null&&(me=Function.prototype);var Ce=Object.getOwnPropertyDescriptor(me,_e);if(Ce===void 0){var Se=Object.getPrototypeOf(me);return Se===null?void 0:ve(Se,_e,ye)}else{if("value"in Ce)return Ce.value;var we=Ce.get;return we===void 0?void 0:we.call(ye)}},ce=ne(28),he=ue(ce);function ue(ve){return ve&&ve.__esModule?ve:{default:ve}}function pe(ve,me){if(!(ve instanceof me))throw new TypeError("Cannot call a class as a function")}function fe(ve,me){if(!ve)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return me&&(typeof me=="object"||typeof me=="function")?me:ve}function be(ve,me){if(typeof me!="function"&&me!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof me);ve.prototype=Object.create(me&&me.prototype,{constructor:{value:ve,enumerable:!1,writable:!0,configurable:!0}}),me&&(Object.setPrototypeOf?Object.setPrototypeOf(ve,me):ve.__proto__=me)}var ge=(function(ve){be(me,ve);function me(_e,ye){pe(this,me);var Ce=fe(this,(me.__proto__||Object.getPrototypeOf(me)).call(this,_e));return Ce.container.classList.add("ql-icon-picker"),[].forEach.call(Ce.container.querySelectorAll(".ql-picker-item"),function(Se){Se.innerHTML=ye[Se.getAttribute("data-value")||""]}),Ce.defaultItem=Ce.container.querySelector(".ql-selected"),Ce.selectItem(Ce.defaultItem),Ce}return oe(me,[{key:"selectItem",value:function(ye,Ce){de(me.prototype.__proto__||Object.getPrototypeOf(me.prototype),"selectItem",this).call(this,ye,Ce),ye=ye||this.defaultItem,this.label.innerHTML=ye.innerHTML}}]),me})(he.default);re.default=ge}),(function(X,re,ne){Object.defineProperty(re,"__esModule",{value:!0});var oe=(function(){function he(ue,pe){for(var fe=0;fe<pe.length;fe++){var be=pe[fe];be.enumerable=be.enumerable||!1,be.configurable=!0,"value"in be&&(be.writable=!0),Object.defineProperty(ue,be.key,be)}}return function(ue,pe,fe){return pe&&he(ue.prototype,pe),fe&&he(ue,fe),ue}})();function de(he,ue){if(!(he instanceof ue))throw new TypeError("Cannot call a class as a function")}var ce=(function(){function he(ue,pe){var fe=this;de(this,he),this.quill=ue,this.boundsContainer=pe||document.body,this.root=ue.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){fe.root.style.marginTop=-1*fe.quill.root.scrollTop+"px"}),this.hide()}return oe(he,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(pe){var fe=pe.left+pe.width/2-this.root.offsetWidth/2,be=pe.bottom+this.quill.root.scrollTop;this.root.style.left=fe+"px",this.root.style.top=be+"px",this.root.classList.remove("ql-flip");var ge=this.boundsContainer.getBoundingClientRect(),ve=this.root.getBoundingClientRect(),me=0;if(ve.right>ge.right&&(me=ge.right-ve.right,this.root.style.left=fe+me+"px"),ve.left<ge.left&&(me=ge.left-ve.left,this.root.style.left=fe+me+"px"),ve.bottom>ge.bottom){var _e=ve.bottom-ve.top,ye=pe.bottom-pe.top+_e;this.root.style.top=be-ye+"px",this.root.classList.add("ql-flip")}return me}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),he})();re.default=ce}),(function(X,re,ne){Object.defineProperty(re,"__esModule",{value:!0});var oe=(function(){function ze(Oe,Pe){var Ie=[],Be=!0,We=!1,Ye=void 0;try{for(var Ke=Oe[Symbol.iterator](),mt;!(Be=(mt=Ke.next()).done)&&(Ie.push(mt.value),!(Pe&&Ie.length===Pe));Be=!0);}catch(Je){We=!0,Ye=Je}finally{try{!Be&&Ke.return&&Ke.return()}finally{if(We)throw Ye}}return Ie}return function(Oe,Pe){if(Array.isArray(Oe))return Oe;if(Symbol.iterator in Object(Oe))return ze(Oe,Pe);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),de=function ze(Oe,Pe,Ie){Oe===null&&(Oe=Function.prototype);var Be=Object.getOwnPropertyDescriptor(Oe,Pe);if(Be===void 0){var We=Object.getPrototypeOf(Oe);return We===null?void 0:ze(We,Pe,Ie)}else{if("value"in Be)return Be.value;var Ye=Be.get;return Ye===void 0?void 0:Ye.call(Ie)}},ce=(function(){function ze(Oe,Pe){for(var Ie=0;Ie<Pe.length;Ie++){var Be=Pe[Ie];Be.enumerable=Be.enumerable||!1,Be.configurable=!0,"value"in Be&&(Be.writable=!0),Object.defineProperty(Oe,Be.key,Be)}}return function(Oe,Pe,Ie){return Pe&&ze(Oe.prototype,Pe),Ie&&ze(Oe,Ie),Oe}})(),he=ne(3),ue=Se(he),pe=ne(8),fe=Se(pe),be=ne(44),ge=Se(be),ve=ne(27),me=Se(ve),_e=ne(15),ye=ne(42),Ce=Se(ye);function Se(ze){return ze&&ze.__esModule?ze:{default:ze}}function we(ze,Oe){if(!(ze instanceof Oe))throw new TypeError("Cannot call a class as a function")}function Ae(ze,Oe){if(!ze)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Oe&&(typeof Oe=="object"||typeof Oe=="function")?Oe:ze}function Le(ze,Oe){if(typeof Oe!="function"&&Oe!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Oe);ze.prototype=Object.create(Oe&&Oe.prototype,{constructor:{value:ze,enumerable:!1,writable:!0,configurable:!0}}),Oe&&(Object.setPrototypeOf?Object.setPrototypeOf(ze,Oe):ze.__proto__=Oe)}var qe=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],Me=(function(ze){Le(Oe,ze);function Oe(Pe,Ie){we(this,Oe),Ie.modules.toolbar!=null&&Ie.modules.toolbar.container==null&&(Ie.modules.toolbar.container=qe);var Be=Ae(this,(Oe.__proto__||Object.getPrototypeOf(Oe)).call(this,Pe,Ie));return Be.quill.container.classList.add("ql-snow"),Be}return ce(Oe,[{key:"extendToolbar",value:function(Ie){Ie.container.classList.add("ql-snow"),this.buildButtons([].slice.call(Ie.container.querySelectorAll("button")),Ce.default),this.buildPickers([].slice.call(Ie.container.querySelectorAll("select")),Ce.default),this.tooltip=new Ne(this.quill,this.options.bounds),Ie.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(Be,We){Ie.handlers.link.call(Ie,!We.format.link)})}}]),Oe})(ge.default);Me.DEFAULTS=(0,ue.default)(!0,{},ge.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(Oe){if(Oe){var Pe=this.quill.getSelection();if(Pe==null||Pe.length==0)return;var Ie=this.quill.getText(Pe);/^\S+@\S+\.\S+$/.test(Ie)&&Ie.indexOf("mailto:")!==0&&(Ie="mailto:"+Ie);var Be=this.quill.theme.tooltip;Be.edit("link",Ie)}else this.quill.format("link",!1)}}}}});var Ne=(function(ze){Le(Oe,ze);function Oe(Pe,Ie){we(this,Oe);var Be=Ae(this,(Oe.__proto__||Object.getPrototypeOf(Oe)).call(this,Pe,Ie));return Be.preview=Be.root.querySelector("a.ql-preview"),Be}return ce(Oe,[{key:"listen",value:function(){var Ie=this;de(Oe.prototype.__proto__||Object.getPrototypeOf(Oe.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(Be){Ie.root.classList.contains("ql-editing")?Ie.save():Ie.edit("link",Ie.preview.textContent),Be.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(Be){if(Ie.linkRange!=null){var We=Ie.linkRange;Ie.restoreFocus(),Ie.quill.formatText(We,"link",!1,fe.default.sources.USER),delete Ie.linkRange}Be.preventDefault(),Ie.hide()}),this.quill.on(fe.default.events.SELECTION_CHANGE,function(Be,We,Ye){if(Be!=null){if(Be.length===0&&Ye===fe.default.sources.USER){var Ke=Ie.quill.scroll.descendant(me.default,Be.index),mt=oe(Ke,2),Je=mt[0],Ze=mt[1];if(Je!=null){Ie.linkRange=new _e.Range(Be.index-Ze,Je.length());var Fe=me.default.formats(Je.domNode);Ie.preview.textContent=Fe,Ie.preview.setAttribute("href",Fe),Ie.show(),Ie.position(Ie.quill.getBounds(Ie.linkRange));return}}else delete Ie.linkRange;Ie.hide()}})}},{key:"show",value:function(){de(Oe.prototype.__proto__||Object.getPrototypeOf(Oe.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),Oe})(be.BaseTooltip);Ne.TEMPLATE=['<a class="ql-preview" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),re.default=Me}),(function(X,re,ne){Object.defineProperty(re,"__esModule",{value:!0});var oe=ne(29),de=xt(oe),ce=ne(37),he=ne(39),ue=ne(65),pe=ne(66),fe=xt(pe),be=ne(67),ge=xt(be),ve=ne(68),me=xt(ve),_e=ne(38),ye=ne(26),Ce=ne(40),Se=ne(41),we=ne(57),Ae=xt(we),Le=ne(69),qe=xt(Le),Me=ne(27),Ne=xt(Me),ze=ne(70),Oe=xt(ze),Pe=ne(71),Ie=xt(Pe),Be=ne(72),We=xt(Be),Ye=ne(73),Ke=xt(Ye),mt=ne(74),Je=xt(mt),Ze=ne(13),Fe=xt(Ze),Ge=ne(75),Ue=xt(Ge),Xe=ne(76),tt=xt(Xe),je=ne(58),Qe=xt(je),nt=ne(42),ot=xt(nt),yt=ne(28),Ct=xt(yt),Pt=ne(60),zt=xt(Pt),Nt=ne(61),Ut=xt(Nt),ns=ne(62),Xt=xt(ns),gt=ne(109),vt=xt(gt),kt=ne(63),At=xt(kt);function xt(Ft){return Ft&&Ft.__esModule?Ft:{default:Ft}}de.default.register({"attributors/attribute/direction":he.DirectionAttribute,"attributors/class/align":ce.AlignClass,"attributors/class/background":_e.BackgroundClass,"attributors/class/color":ye.ColorClass,"attributors/class/direction":he.DirectionClass,"attributors/class/font":Ce.FontClass,"attributors/class/size":Se.SizeClass,"attributors/style/align":ce.AlignStyle,"attributors/style/background":_e.BackgroundStyle,"attributors/style/color":ye.ColorStyle,"attributors/style/direction":he.DirectionStyle,"attributors/style/font":Ce.FontStyle,"attributors/style/size":Se.SizeStyle},!0),de.default.register({"formats/align":ce.AlignClass,"formats/direction":he.DirectionClass,"formats/indent":ue.IndentClass,"formats/background":_e.BackgroundStyle,"formats/color":ye.ColorStyle,"formats/font":Ce.FontClass,"formats/size":Se.SizeClass,"formats/blockquote":fe.default,"formats/code-block":Fe.default,"formats/header":ge.default,"formats/list":me.default,"formats/bold":Ae.default,"formats/code":Ze.Code,"formats/italic":qe.default,"formats/link":Ne.default,"formats/script":Oe.default,"formats/strike":Ie.default,"formats/underline":We.default,"formats/image":Ke.default,"formats/video":Je.default,"formats/list/item":ve.ListItem,"modules/formula":Ue.default,"modules/syntax":tt.default,"modules/toolbar":Qe.default,"themes/bubble":vt.default,"themes/snow":At.default,"ui/icons":ot.default,"ui/picker":Ct.default,"ui/icon-picker":Ut.default,"ui/color-picker":zt.default,"ui/tooltip":Xt.default},!0),re.default=de.default}),(function(X,re,ne){Object.defineProperty(re,"__esModule",{value:!0}),re.IndentClass=void 0;var oe=(function(){function me(_e,ye){for(var Ce=0;Ce<ye.length;Ce++){var Se=ye[Ce];Se.enumerable=Se.enumerable||!1,Se.configurable=!0,"value"in Se&&(Se.writable=!0),Object.defineProperty(_e,Se.key,Se)}}return function(_e,ye,Ce){return ye&&me(_e.prototype,ye),Ce&&me(_e,Ce),_e}})(),de=function me(_e,ye,Ce){_e===null&&(_e=Function.prototype);var Se=Object.getOwnPropertyDescriptor(_e,ye);if(Se===void 0){var we=Object.getPrototypeOf(_e);return we===null?void 0:me(we,ye,Ce)}else{if("value"in Se)return Se.value;var Ae=Se.get;return Ae===void 0?void 0:Ae.call(Ce)}},ce=ne(0),he=ue(ce);function ue(me){return me&&me.__esModule?me:{default:me}}function pe(me,_e){if(!(me instanceof _e))throw new TypeError("Cannot call a class as a function")}function fe(me,_e){if(!me)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _e&&(typeof _e=="object"||typeof _e=="function")?_e:me}function be(me,_e){if(typeof _e!="function"&&_e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _e);me.prototype=Object.create(_e&&_e.prototype,{constructor:{value:me,enumerable:!1,writable:!0,configurable:!0}}),_e&&(Object.setPrototypeOf?Object.setPrototypeOf(me,_e):me.__proto__=_e)}var ge=(function(me){be(_e,me);function _e(){return pe(this,_e),fe(this,(_e.__proto__||Object.getPrototypeOf(_e)).apply(this,arguments))}return oe(_e,[{key:"add",value:function(Ce,Se){if(Se==="+1"||Se==="-1"){var we=this.value(Ce)||0;Se=Se==="+1"?we+1:we-1}return Se===0?(this.remove(Ce),!0):de(_e.prototype.__proto__||Object.getPrototypeOf(_e.prototype),"add",this).call(this,Ce,Se)}},{key:"canAdd",value:function(Ce,Se){return de(_e.prototype.__proto__||Object.getPrototypeOf(_e.prototype),"canAdd",this).call(this,Ce,Se)||de(_e.prototype.__proto__||Object.getPrototypeOf(_e.prototype),"canAdd",this).call(this,Ce,parseInt(Se))}},{key:"value",value:function(Ce){return parseInt(de(_e.prototype.__proto__||Object.getPrototypeOf(_e.prototype),"value",this).call(this,Ce))||void 0}}]),_e})(he.default.Attributor.Class),ve=new ge("indent","ql-indent",{scope:he.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});re.IndentClass=ve}),(function(X,re,ne){Object.defineProperty(re,"__esModule",{value:!0});var oe=ne(4),de=ce(oe);function ce(be){return be&&be.__esModule?be:{default:be}}function he(be,ge){if(!(be instanceof ge))throw new TypeError("Cannot call a class as a function")}function ue(be,ge){if(!be)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ge&&(typeof ge=="object"||typeof ge=="function")?ge:be}function pe(be,ge){if(typeof ge!="function"&&ge!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ge);be.prototype=Object.create(ge&&ge.prototype,{constructor:{value:be,enumerable:!1,writable:!0,configurable:!0}}),ge&&(Object.setPrototypeOf?Object.setPrototypeOf(be,ge):be.__proto__=ge)}var fe=(function(be){pe(ge,be);function ge(){return he(this,ge),ue(this,(ge.__proto__||Object.getPrototypeOf(ge)).apply(this,arguments))}return ge})(de.default);fe.blotName="blockquote",fe.tagName="blockquote",re.default=fe}),(function(X,re,ne){Object.defineProperty(re,"__esModule",{value:!0});var oe=(function(){function ge(ve,me){for(var _e=0;_e<me.length;_e++){var ye=me[_e];ye.enumerable=ye.enumerable||!1,ye.configurable=!0,"value"in ye&&(ye.writable=!0),Object.defineProperty(ve,ye.key,ye)}}return function(ve,me,_e){return me&&ge(ve.prototype,me),_e&&ge(ve,_e),ve}})(),de=ne(4),ce=he(de);function he(ge){return ge&&ge.__esModule?ge:{default:ge}}function ue(ge,ve){if(!(ge instanceof ve))throw new TypeError("Cannot call a class as a function")}function pe(ge,ve){if(!ge)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ve&&(typeof ve=="object"||typeof ve=="function")?ve:ge}function fe(ge,ve){if(typeof ve!="function"&&ve!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ve);ge.prototype=Object.create(ve&&ve.prototype,{constructor:{value:ge,enumerable:!1,writable:!0,configurable:!0}}),ve&&(Object.setPrototypeOf?Object.setPrototypeOf(ge,ve):ge.__proto__=ve)}var be=(function(ge){fe(ve,ge);function ve(){return ue(this,ve),pe(this,(ve.__proto__||Object.getPrototypeOf(ve)).apply(this,arguments))}return oe(ve,null,[{key:"formats",value:function(_e){return this.tagName.indexOf(_e.tagName)+1}}]),ve})(ce.default);be.blotName="header",be.tagName=["H1","H2","H3","H4","H5","H6"],re.default=be}),(function(X,re,ne){Object.defineProperty(re,"__esModule",{value:!0}),re.default=re.ListItem=void 0;var oe=(function(){function we(Ae,Le){for(var qe=0;qe<Le.length;qe++){var Me=Le[qe];Me.enumerable=Me.enumerable||!1,Me.configurable=!0,"value"in Me&&(Me.writable=!0),Object.defineProperty(Ae,Me.key,Me)}}return function(Ae,Le,qe){return Le&&we(Ae.prototype,Le),qe&&we(Ae,qe),Ae}})(),de=function we(Ae,Le,qe){Ae===null&&(Ae=Function.prototype);var Me=Object.getOwnPropertyDescriptor(Ae,Le);if(Me===void 0){var Ne=Object.getPrototypeOf(Ae);return Ne===null?void 0:we(Ne,Le,qe)}else{if("value"in Me)return Me.value;var ze=Me.get;return ze===void 0?void 0:ze.call(qe)}},ce=ne(0),he=ge(ce),ue=ne(4),pe=ge(ue),fe=ne(25),be=ge(fe);function ge(we){return we&&we.__esModule?we:{default:we}}function ve(we,Ae,Le){return Ae in we?Object.defineProperty(we,Ae,{value:Le,enumerable:!0,configurable:!0,writable:!0}):we[Ae]=Le,we}function me(we,Ae){if(!(we instanceof Ae))throw new TypeError("Cannot call a class as a function")}function _e(we,Ae){if(!we)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Ae&&(typeof Ae=="object"||typeof Ae=="function")?Ae:we}function ye(we,Ae){if(typeof Ae!="function"&&Ae!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Ae);we.prototype=Object.create(Ae&&Ae.prototype,{constructor:{value:we,enumerable:!1,writable:!0,configurable:!0}}),Ae&&(Object.setPrototypeOf?Object.setPrototypeOf(we,Ae):we.__proto__=Ae)}var Ce=(function(we){ye(Ae,we);function Ae(){return me(this,Ae),_e(this,(Ae.__proto__||Object.getPrototypeOf(Ae)).apply(this,arguments))}return oe(Ae,[{key:"format",value:function(qe,Me){qe===Se.blotName&&!Me?this.replaceWith(he.default.create(this.statics.scope)):de(Ae.prototype.__proto__||Object.getPrototypeOf(Ae.prototype),"format",this).call(this,qe,Me)}},{key:"remove",value:function(){this.prev==null&&this.next==null?this.parent.remove():de(Ae.prototype.__proto__||Object.getPrototypeOf(Ae.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(qe,Me){return this.parent.isolate(this.offset(this.parent),this.length()),qe===this.parent.statics.blotName?(this.parent.replaceWith(qe,Me),this):(this.parent.unwrap(),de(Ae.prototype.__proto__||Object.getPrototypeOf(Ae.prototype),"replaceWith",this).call(this,qe,Me))}}],[{key:"formats",value:function(qe){return qe.tagName===this.tagName?void 0:de(Ae.__proto__||Object.getPrototypeOf(Ae),"formats",this).call(this,qe)}}]),Ae})(pe.default);Ce.blotName="list-item",Ce.tagName="LI";var Se=(function(we){ye(Ae,we),oe(Ae,null,[{key:"create",value:function(qe){var Me=qe==="ordered"?"OL":"UL",Ne=de(Ae.__proto__||Object.getPrototypeOf(Ae),"create",this).call(this,Me);return(qe==="checked"||qe==="unchecked")&&Ne.setAttribute("data-checked",qe==="checked"),Ne}},{key:"formats",value:function(qe){if(qe.tagName==="OL")return"ordered";if(qe.tagName==="UL")return qe.hasAttribute("data-checked")?qe.getAttribute("data-checked")==="true"?"checked":"unchecked":"bullet"}}]);function Ae(Le){me(this,Ae);var qe=_e(this,(Ae.__proto__||Object.getPrototypeOf(Ae)).call(this,Le)),Me=function(ze){if(ze.target.parentNode===Le){var Oe=qe.statics.formats(Le),Pe=he.default.find(ze.target);Oe==="checked"?Pe.format("list","unchecked"):Oe==="unchecked"&&Pe.format("list","checked")}};return Le.addEventListener("touchstart",Me),Le.addEventListener("mousedown",Me),qe}return oe(Ae,[{key:"format",value:function(qe,Me){this.children.length>0&&this.children.tail.format(qe,Me)}},{key:"formats",value:function(){return ve({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(qe,Me){if(qe instanceof Ce)de(Ae.prototype.__proto__||Object.getPrototypeOf(Ae.prototype),"insertBefore",this).call(this,qe,Me);else{var Ne=Me==null?this.length():Me.offset(this),ze=this.split(Ne);ze.parent.insertBefore(qe,ze)}}},{key:"optimize",value:function(qe){de(Ae.prototype.__proto__||Object.getPrototypeOf(Ae.prototype),"optimize",this).call(this,qe);var Me=this.next;Me!=null&&Me.prev===this&&Me.statics.blotName===this.statics.blotName&&Me.domNode.tagName===this.domNode.tagName&&Me.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(Me.moveChildren(this),Me.remove())}},{key:"replace",value:function(qe){if(qe.statics.blotName!==this.statics.blotName){var Me=he.default.create(this.statics.defaultChild);qe.moveChildren(Me),this.appendChild(Me)}de(Ae.prototype.__proto__||Object.getPrototypeOf(Ae.prototype),"replace",this).call(this,qe)}}]),Ae})(be.default);Se.blotName="list",Se.scope=he.default.Scope.BLOCK_BLOT,Se.tagName=["OL","UL"],Se.defaultChild="list-item",Se.allowedChildren=[Ce],re.ListItem=Ce,re.default=Se}),(function(X,re,ne){Object.defineProperty(re,"__esModule",{value:!0});var oe=ne(57),de=ce(oe);function ce(be){return be&&be.__esModule?be:{default:be}}function he(be,ge){if(!(be instanceof ge))throw new TypeError("Cannot call a class as a function")}function ue(be,ge){if(!be)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ge&&(typeof ge=="object"||typeof ge=="function")?ge:be}function pe(be,ge){if(typeof ge!="function"&&ge!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ge);be.prototype=Object.create(ge&&ge.prototype,{constructor:{value:be,enumerable:!1,writable:!0,configurable:!0}}),ge&&(Object.setPrototypeOf?Object.setPrototypeOf(be,ge):be.__proto__=ge)}var fe=(function(be){pe(ge,be);function ge(){return he(this,ge),ue(this,(ge.__proto__||Object.getPrototypeOf(ge)).apply(this,arguments))}return ge})(de.default);fe.blotName="italic",fe.tagName=["EM","I"],re.default=fe}),(function(X,re,ne){Object.defineProperty(re,"__esModule",{value:!0});var oe=(function(){function ve(me,_e){for(var ye=0;ye<_e.length;ye++){var Ce=_e[ye];Ce.enumerable=Ce.enumerable||!1,Ce.configurable=!0,"value"in Ce&&(Ce.writable=!0),Object.defineProperty(me,Ce.key,Ce)}}return function(me,_e,ye){return _e&&ve(me.prototype,_e),ye&&ve(me,ye),me}})(),de=function ve(me,_e,ye){me===null&&(me=Function.prototype);var Ce=Object.getOwnPropertyDescriptor(me,_e);if(Ce===void 0){var Se=Object.getPrototypeOf(me);return Se===null?void 0:ve(Se,_e,ye)}else{if("value"in Ce)return Ce.value;var we=Ce.get;return we===void 0?void 0:we.call(ye)}},ce=ne(6),he=ue(ce);function ue(ve){return ve&&ve.__esModule?ve:{default:ve}}function pe(ve,me){if(!(ve instanceof me))throw new TypeError("Cannot call a class as a function")}function fe(ve,me){if(!ve)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return me&&(typeof me=="object"||typeof me=="function")?me:ve}function be(ve,me){if(typeof me!="function"&&me!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof me);ve.prototype=Object.create(me&&me.prototype,{constructor:{value:ve,enumerable:!1,writable:!0,configurable:!0}}),me&&(Object.setPrototypeOf?Object.setPrototypeOf(ve,me):ve.__proto__=me)}var ge=(function(ve){be(me,ve);function me(){return pe(this,me),fe(this,(me.__proto__||Object.getPrototypeOf(me)).apply(this,arguments))}return oe(me,null,[{key:"create",value:function(ye){return ye==="super"?document.createElement("sup"):ye==="sub"?document.createElement("sub"):de(me.__proto__||Object.getPrototypeOf(me),"create",this).call(this,ye)}},{key:"formats",value:function(ye){if(ye.tagName==="SUB")return"sub";if(ye.tagName==="SUP")return"super"}}]),me})(he.default);ge.blotName="script",ge.tagName=["SUB","SUP"],re.default=ge}),(function(X,re,ne){Object.defineProperty(re,"__esModule",{value:!0});var oe=ne(6),de=ce(oe);function ce(be){return be&&be.__esModule?be:{default:be}}function he(be,ge){if(!(be instanceof ge))throw new TypeError("Cannot call a class as a function")}function ue(be,ge){if(!be)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ge&&(typeof ge=="object"||typeof ge=="function")?ge:be}function pe(be,ge){if(typeof ge!="function"&&ge!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ge);be.prototype=Object.create(ge&&ge.prototype,{constructor:{value:be,enumerable:!1,writable:!0,configurable:!0}}),ge&&(Object.setPrototypeOf?Object.setPrototypeOf(be,ge):be.__proto__=ge)}var fe=(function(be){pe(ge,be);function ge(){return he(this,ge),ue(this,(ge.__proto__||Object.getPrototypeOf(ge)).apply(this,arguments))}return ge})(de.default);fe.blotName="strike",fe.tagName="S",re.default=fe}),(function(X,re,ne){Object.defineProperty(re,"__esModule",{value:!0});var oe=ne(6),de=ce(oe);function ce(be){return be&&be.__esModule?be:{default:be}}function he(be,ge){if(!(be instanceof ge))throw new TypeError("Cannot call a class as a function")}function ue(be,ge){if(!be)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ge&&(typeof ge=="object"||typeof ge=="function")?ge:be}function pe(be,ge){if(typeof ge!="function"&&ge!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ge);be.prototype=Object.create(ge&&ge.prototype,{constructor:{value:be,enumerable:!1,writable:!0,configurable:!0}}),ge&&(Object.setPrototypeOf?Object.setPrototypeOf(be,ge):be.__proto__=ge)}var fe=(function(be){pe(ge,be);function ge(){return he(this,ge),ue(this,(ge.__proto__||Object.getPrototypeOf(ge)).apply(this,arguments))}return ge})(de.default);fe.blotName="underline",fe.tagName="U",re.default=fe}),(function(X,re,ne){Object.defineProperty(re,"__esModule",{value:!0});var oe=(function(){function _e(ye,Ce){for(var Se=0;Se<Ce.length;Se++){var we=Ce[Se];we.enumerable=we.enumerable||!1,we.configurable=!0,"value"in we&&(we.writable=!0),Object.defineProperty(ye,we.key,we)}}return function(ye,Ce,Se){return Ce&&_e(ye.prototype,Ce),Se&&_e(ye,Se),ye}})(),de=function _e(ye,Ce,Se){ye===null&&(ye=Function.prototype);var we=Object.getOwnPropertyDescriptor(ye,Ce);if(we===void 0){var Ae=Object.getPrototypeOf(ye);return Ae===null?void 0:_e(Ae,Ce,Se)}else{if("value"in we)return we.value;var Le=we.get;return Le===void 0?void 0:Le.call(Se)}},ce=ne(0),he=pe(ce),ue=ne(27);function pe(_e){return _e&&_e.__esModule?_e:{default:_e}}function fe(_e,ye){if(!(_e instanceof ye))throw new TypeError("Cannot call a class as a function")}function be(_e,ye){if(!_e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ye&&(typeof ye=="object"||typeof ye=="function")?ye:_e}function ge(_e,ye){if(typeof ye!="function"&&ye!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ye);_e.prototype=Object.create(ye&&ye.prototype,{constructor:{value:_e,enumerable:!1,writable:!0,configurable:!0}}),ye&&(Object.setPrototypeOf?Object.setPrototypeOf(_e,ye):_e.__proto__=ye)}var ve=["alt","height","width"],me=(function(_e){ge(ye,_e);function ye(){return fe(this,ye),be(this,(ye.__proto__||Object.getPrototypeOf(ye)).apply(this,arguments))}return oe(ye,[{key:"format",value:function(Se,we){ve.indexOf(Se)>-1?we?this.domNode.setAttribute(Se,we):this.domNode.removeAttribute(Se):de(ye.prototype.__proto__||Object.getPrototypeOf(ye.prototype),"format",this).call(this,Se,we)}}],[{key:"create",value:function(Se){var we=de(ye.__proto__||Object.getPrototypeOf(ye),"create",this).call(this,Se);return typeof Se=="string"&&we.setAttribute("src",this.sanitize(Se)),we}},{key:"formats",value:function(Se){return ve.reduce(function(we,Ae){return Se.hasAttribute(Ae)&&(we[Ae]=Se.getAttribute(Ae)),we},{})}},{key:"match",value:function(Se){return/\.(jpe?g|gif|png)$/.test(Se)||/^data:image\/.+;base64/.test(Se)}},{key:"sanitize",value:function(Se){return(0,ue.sanitize)(Se,["http","https","data"])?Se:"//:0"}},{key:"value",value:function(Se){return Se.getAttribute("src")}}]),ye})(he.default.Embed);me.blotName="image",me.tagName="IMG",re.default=me}),(function(X,re,ne){Object.defineProperty(re,"__esModule",{value:!0});var oe=(function(){function _e(ye,Ce){for(var Se=0;Se<Ce.length;Se++){var we=Ce[Se];we.enumerable=we.enumerable||!1,we.configurable=!0,"value"in we&&(we.writable=!0),Object.defineProperty(ye,we.key,we)}}return function(ye,Ce,Se){return Ce&&_e(ye.prototype,Ce),Se&&_e(ye,Se),ye}})(),de=function _e(ye,Ce,Se){ye===null&&(ye=Function.prototype);var we=Object.getOwnPropertyDescriptor(ye,Ce);if(we===void 0){var Ae=Object.getPrototypeOf(ye);return Ae===null?void 0:_e(Ae,Ce,Se)}else{if("value"in we)return we.value;var Le=we.get;return Le===void 0?void 0:Le.call(Se)}},ce=ne(4),he=ne(27),ue=pe(he);function pe(_e){return _e&&_e.__esModule?_e:{default:_e}}function fe(_e,ye){if(!(_e instanceof ye))throw new TypeError("Cannot call a class as a function")}function be(_e,ye){if(!_e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ye&&(typeof ye=="object"||typeof ye=="function")?ye:_e}function ge(_e,ye){if(typeof ye!="function"&&ye!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ye);_e.prototype=Object.create(ye&&ye.prototype,{constructor:{value:_e,enumerable:!1,writable:!0,configurable:!0}}),ye&&(Object.setPrototypeOf?Object.setPrototypeOf(_e,ye):_e.__proto__=ye)}var ve=["height","width"],me=(function(_e){ge(ye,_e);function ye(){return fe(this,ye),be(this,(ye.__proto__||Object.getPrototypeOf(ye)).apply(this,arguments))}return oe(ye,[{key:"format",value:function(Se,we){ve.indexOf(Se)>-1?we?this.domNode.setAttribute(Se,we):this.domNode.removeAttribute(Se):de(ye.prototype.__proto__||Object.getPrototypeOf(ye.prototype),"format",this).call(this,Se,we)}}],[{key:"create",value:function(Se){var we=de(ye.__proto__||Object.getPrototypeOf(ye),"create",this).call(this,Se);return we.setAttribute("frameborder","0"),we.setAttribute("allowfullscreen",!0),we.setAttribute("src",this.sanitize(Se)),we}},{key:"formats",value:function(Se){return ve.reduce(function(we,Ae){return Se.hasAttribute(Ae)&&(we[Ae]=Se.getAttribute(Ae)),we},{})}},{key:"sanitize",value:function(Se){return ue.default.sanitize(Se)}},{key:"value",value:function(Se){return Se.getAttribute("src")}}]),ye})(ce.BlockEmbed);me.blotName="video",me.className="ql-video",me.tagName="IFRAME",re.default=me}),(function(X,re,ne){Object.defineProperty(re,"__esModule",{value:!0}),re.default=re.FormulaBlot=void 0;var oe=(function(){function Se(we,Ae){for(var Le=0;Le<Ae.length;Le++){var qe=Ae[Le];qe.enumerable=qe.enumerable||!1,qe.configurable=!0,"value"in qe&&(qe.writable=!0),Object.defineProperty(we,qe.key,qe)}}return function(we,Ae,Le){return Ae&&Se(we.prototype,Ae),Le&&Se(we,Le),we}})(),de=function Se(we,Ae,Le){we===null&&(we=Function.prototype);var qe=Object.getOwnPropertyDescriptor(we,Ae);if(qe===void 0){var Me=Object.getPrototypeOf(we);return Me===null?void 0:Se(Me,Ae,Le)}else{if("value"in qe)return qe.value;var Ne=qe.get;return Ne===void 0?void 0:Ne.call(Le)}},ce=ne(36),he=ge(ce),ue=ne(5),pe=ge(ue),fe=ne(9),be=ge(fe);function ge(Se){return Se&&Se.__esModule?Se:{default:Se}}function ve(Se,we){if(!(Se instanceof we))throw new TypeError("Cannot call a class as a function")}function me(Se,we){if(!Se)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return we&&(typeof we=="object"||typeof we=="function")?we:Se}function _e(Se,we){if(typeof we!="function"&&we!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof we);Se.prototype=Object.create(we&&we.prototype,{constructor:{value:Se,enumerable:!1,writable:!0,configurable:!0}}),we&&(Object.setPrototypeOf?Object.setPrototypeOf(Se,we):Se.__proto__=we)}var ye=(function(Se){_e(we,Se);function we(){return ve(this,we),me(this,(we.__proto__||Object.getPrototypeOf(we)).apply(this,arguments))}return oe(we,null,[{key:"create",value:function(Le){var qe=de(we.__proto__||Object.getPrototypeOf(we),"create",this).call(this,Le);return typeof Le=="string"&&(window.katex.render(Le,qe,{throwOnError:!1,errorColor:"#f00"}),qe.setAttribute("data-value",Le)),qe}},{key:"value",value:function(Le){return Le.getAttribute("data-value")}}]),we})(he.default);ye.blotName="formula",ye.className="ql-formula",ye.tagName="SPAN";var Ce=(function(Se){_e(we,Se),oe(we,null,[{key:"register",value:function(){pe.default.register(ye,!0)}}]);function we(){ve(this,we);var Ae=me(this,(we.__proto__||Object.getPrototypeOf(we)).call(this));if(window.katex==null)throw new Error("Formula module requires KaTeX.");return Ae}return we})(be.default);re.FormulaBlot=ye,re.default=Ce}),(function(X,re,ne){Object.defineProperty(re,"__esModule",{value:!0}),re.default=re.CodeToken=re.CodeBlock=void 0;var oe=(function(){function Le(qe,Me){for(var Ne=0;Ne<Me.length;Ne++){var ze=Me[Ne];ze.enumerable=ze.enumerable||!1,ze.configurable=!0,"value"in ze&&(ze.writable=!0),Object.defineProperty(qe,ze.key,ze)}}return function(qe,Me,Ne){return Me&&Le(qe.prototype,Me),Ne&&Le(qe,Ne),qe}})(),de=function Le(qe,Me,Ne){qe===null&&(qe=Function.prototype);var ze=Object.getOwnPropertyDescriptor(qe,Me);if(ze===void 0){var Oe=Object.getPrototypeOf(qe);return Oe===null?void 0:Le(Oe,Me,Ne)}else{if("value"in ze)return ze.value;var Pe=ze.get;return Pe===void 0?void 0:Pe.call(Ne)}},ce=ne(0),he=me(ce),ue=ne(5),pe=me(ue),fe=ne(9),be=me(fe),ge=ne(13),ve=me(ge);function me(Le){return Le&&Le.__esModule?Le:{default:Le}}function _e(Le,qe){if(!(Le instanceof qe))throw new TypeError("Cannot call a class as a function")}function ye(Le,qe){if(!Le)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return qe&&(typeof qe=="object"||typeof qe=="function")?qe:Le}function Ce(Le,qe){if(typeof qe!="function"&&qe!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof qe);Le.prototype=Object.create(qe&&qe.prototype,{constructor:{value:Le,enumerable:!1,writable:!0,configurable:!0}}),qe&&(Object.setPrototypeOf?Object.setPrototypeOf(Le,qe):Le.__proto__=qe)}var Se=(function(Le){Ce(qe,Le);function qe(){return _e(this,qe),ye(this,(qe.__proto__||Object.getPrototypeOf(qe)).apply(this,arguments))}return oe(qe,[{key:"replaceWith",value:function(Ne){this.domNode.textContent=this.domNode.textContent,this.attach(),de(qe.prototype.__proto__||Object.getPrototypeOf(qe.prototype),"replaceWith",this).call(this,Ne)}},{key:"highlight",value:function(Ne){var ze=this.domNode.textContent;this.cachedText!==ze&&((ze.trim().length>0||this.cachedText==null)&&(this.domNode.innerHTML=Ne(ze),this.domNode.normalize(),this.attach()),this.cachedText=ze)}}]),qe})(ve.default);Se.className="ql-syntax";var we=new he.default.Attributor.Class("token","hljs",{scope:he.default.Scope.INLINE}),Ae=(function(Le){Ce(qe,Le),oe(qe,null,[{key:"register",value:function(){pe.default.register(we,!0),pe.default.register(Se,!0)}}]);function qe(Me,Ne){_e(this,qe);var ze=ye(this,(qe.__proto__||Object.getPrototypeOf(qe)).call(this,Me,Ne));if(typeof ze.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var Oe=null;return ze.quill.on(pe.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(Oe),Oe=setTimeout(function(){ze.highlight(),Oe=null},ze.options.interval)}),ze.highlight(),ze}return oe(qe,[{key:"highlight",value:function(){var Ne=this;if(!this.quill.selection.composing){this.quill.update(pe.default.sources.USER);var ze=this.quill.getSelection();this.quill.scroll.descendants(Se).forEach(function(Oe){Oe.highlight(Ne.options.highlight)}),this.quill.update(pe.default.sources.SILENT),ze!=null&&this.quill.setSelection(ze,pe.default.sources.SILENT)}}}]),qe})(be.default);Ae.DEFAULTS={highlight:(function(){return window.hljs==null?null:function(Le){var qe=window.hljs.highlightAuto(Le);return qe.value}})(),interval:1e3},re.CodeBlock=Se,re.CodeToken=we,re.default=Ae}),(function(X,re){X.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'}),(function(X,re){X.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'}),(function(X,re){X.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'}),(function(X,re){X.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'}),(function(X,re){X.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'}),(function(X,re){X.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'}),(function(X,re){X.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'}),(function(X,re){X.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'}),(function(X,re){X.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'}),(function(X,re){X.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'}),(function(X,re){X.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'}),(function(X,re){X.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'}),(function(X,re){X.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'}),(function(X,re){X.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'}),(function(X,re){X.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'}),(function(X,re){X.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'}),(function(X,re){X.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'}),(function(X,re){X.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'}),(function(X,re){X.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'}),(function(X,re){X.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'}),(function(X,re){X.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'}),(function(X,re){X.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'}),(function(X,re){X.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'}),(function(X,re){X.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'}),(function(X,re){X.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'}),(function(X,re){X.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'}),(function(X,re){X.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'}),(function(X,re){X.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'}),(function(X,re){X.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'}),(function(X,re){X.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'}),(function(X,re){X.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'}),(function(X,re){X.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'}),(function(X,re,ne){Object.defineProperty(re,"__esModule",{value:!0}),re.default=re.BubbleTooltip=void 0;var oe=function qe(Me,Ne,ze){Me===null&&(Me=Function.prototype);var Oe=Object.getOwnPropertyDescriptor(Me,Ne);if(Oe===void 0){var Pe=Object.getPrototypeOf(Me);return Pe===null?void 0:qe(Pe,Ne,ze)}else{if("value"in Oe)return Oe.value;var Ie=Oe.get;return Ie===void 0?void 0:Ie.call(ze)}},de=(function(){function qe(Me,Ne){for(var ze=0;ze<Ne.length;ze++){var Oe=Ne[ze];Oe.enumerable=Oe.enumerable||!1,Oe.configurable=!0,"value"in Oe&&(Oe.writable=!0),Object.defineProperty(Me,Oe.key,Oe)}}return function(Me,Ne,ze){return Ne&&qe(Me.prototype,Ne),ze&&qe(Me,ze),Me}})(),ce=ne(3),he=_e(ce),ue=ne(8),pe=_e(ue),fe=ne(44),be=_e(fe),ge=ne(15),ve=ne(42),me=_e(ve);function _e(qe){return qe&&qe.__esModule?qe:{default:qe}}function ye(qe,Me){if(!(qe instanceof Me))throw new TypeError("Cannot call a class as a function")}function Ce(qe,Me){if(!qe)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Me&&(typeof Me=="object"||typeof Me=="function")?Me:qe}function Se(qe,Me){if(typeof Me!="function"&&Me!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Me);qe.prototype=Object.create(Me&&Me.prototype,{constructor:{value:qe,enumerable:!1,writable:!0,configurable:!0}}),Me&&(Object.setPrototypeOf?Object.setPrototypeOf(qe,Me):qe.__proto__=Me)}var we=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],Ae=(function(qe){Se(Me,qe);function Me(Ne,ze){ye(this,Me),ze.modules.toolbar!=null&&ze.modules.toolbar.container==null&&(ze.modules.toolbar.container=we);var Oe=Ce(this,(Me.__proto__||Object.getPrototypeOf(Me)).call(this,Ne,ze));return Oe.quill.container.classList.add("ql-bubble"),Oe}return de(Me,[{key:"extendToolbar",value:function(ze){this.tooltip=new Le(this.quill,this.options.bounds),this.tooltip.root.appendChild(ze.container),this.buildButtons([].slice.call(ze.container.querySelectorAll("button")),me.default),this.buildPickers([].slice.call(ze.container.querySelectorAll("select")),me.default)}}]),Me})(be.default);Ae.DEFAULTS=(0,he.default)(!0,{},be.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(Me){Me?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var Le=(function(qe){Se(Me,qe);function Me(Ne,ze){ye(this,Me);var Oe=Ce(this,(Me.__proto__||Object.getPrototypeOf(Me)).call(this,Ne,ze));return Oe.quill.on(pe.default.events.EDITOR_CHANGE,function(Pe,Ie,Be,We){if(Pe===pe.default.events.SELECTION_CHANGE)if(Ie!=null&&Ie.length>0&&We===pe.default.sources.USER){Oe.show(),Oe.root.style.left="0px",Oe.root.style.width="",Oe.root.style.width=Oe.root.offsetWidth+"px";var Ye=Oe.quill.getLines(Ie.index,Ie.length);if(Ye.length===1)Oe.position(Oe.quill.getBounds(Ie));else{var Ke=Ye[Ye.length-1],mt=Oe.quill.getIndex(Ke),Je=Math.min(Ke.length()-1,Ie.index+Ie.length-mt),Ze=Oe.quill.getBounds(new ge.Range(mt,Je));Oe.position(Ze)}}else document.activeElement!==Oe.textbox&&Oe.quill.hasFocus()&&Oe.hide()}),Oe}return de(Me,[{key:"listen",value:function(){var ze=this;oe(Me.prototype.__proto__||Object.getPrototypeOf(Me.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){ze.root.classList.remove("ql-editing")}),this.quill.on(pe.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!ze.root.classList.contains("ql-hidden")){var Oe=ze.quill.getSelection();Oe!=null&&ze.position(ze.quill.getBounds(Oe))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(ze){var Oe=oe(Me.prototype.__proto__||Object.getPrototypeOf(Me.prototype),"position",this).call(this,ze),Pe=this.root.querySelector(".ql-tooltip-arrow");if(Pe.style.marginLeft="",Oe===0)return Oe;Pe.style.marginLeft=-1*Oe-Pe.offsetWidth/2+"px"}}]),Me})(fe.BaseTooltip);Le.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),re.BubbleTooltip=Le,re.default=Ae}),(function(X,re,ne){X.exports=ne(64)})]).default})})(quill$1)),quill$1.exports}var quillExports=requireQuill();const Quill=getDefaultExportFromCjs(quillExports),styles$1=':host{height:100%}.container{width:100%;height:100%;display:flex;flex-direction:column;flex:1}.ql-container{box-sizing:border-box;font-family:Helvetica,Arial,sans-serif;font-size:13px;height:100%;margin:0;position:relative;color:#000;overflow-y:auto}.ql-container.ql-disabled .ql-tooltip{visibility:hidden}.ql-container.ql-disabled .ql-editor ul[data-checked]>li:before{pointer-events:none}.ql-clipboard{left:-100000px;height:1px;overflow-y:hidden;position:absolute;top:50%}.ql-clipboard p{margin:0;padding:0}.ql-editor{box-sizing:border-box;line-height:1.42;height:100%;outline:none;overflow-y:auto;padding:12px 15px;tab-size:4;-moz-tab-size:4;text-align:left;white-space:pre-wrap;word-wrap:break-word;font-size:1rem}.ql-editor>*{cursor:text}.ql-editor p,.ql-editor ol,.ql-editor ul,.ql-editor pre,.ql-editor blockquote,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6{margin:0;padding:0}.ql-editor ol,.ql-editor ul{padding-left:1.5em}.ql-editor ol>li{list-style-type:none}.ql-editor ul>li{list-style-type:disc}.ql-editor ul[data-checked=true],.ql-editor ul[data-checked=false]{pointer-events:none}.ql-editor ul[data-checked=true]>li *,.ql-editor ul[data-checked=false]>li *{pointer-events:all}.ql-editor ul[data-checked=true]>li:before,.ql-editor ul[data-checked=false]>li:before{color:#777;cursor:pointer;pointer-events:all}.ql-editor li:before{display:inline-block;white-space:nowrap;width:1.2em}.ql-editor li:not(.ql-direction-rtl):before{margin-left:-1.5em;margin-right:.3em;text-align:right}.ql-editor li.ql-direction-rtl:before{margin-left:.3em;margin-right:-1.5em}.ql-editor ol li:not(.ql-direction-rtl),.ql-editor ul li:not(.ql-direction-rtl){padding-left:1.5em}.ql-editor ol li.ql-direction-rtl,.ql-editor ul li.ql-direction-rtl{padding-right:1.5em}.ql-editor ol li{counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;counter-increment:list-0}.ql-editor ol li:before{content:counter(list-0,decimal) ". "}.ql-editor ol li.ql-indent-1{counter-increment:list-1;counter-reset:list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-1:before{content:counter(list-1,lower-alpha) ". "}.ql-editor ol li.ql-indent-2{counter-increment:list-2;counter-reset:list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-2:before{content:counter(list-2,lower-roman) ". "}.ql-editor ol li.ql-indent-3{counter-increment:list-3;counter-reset:list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-3:before{content:counter(list-3,decimal) ". "}.ql-editor ol li.ql-indent-4{counter-increment:list-4;counter-reset:list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-4:before{content:counter(list-4,lower-alpha) ". "}.ql-editor ol li.ql-indent-5{counter-increment:list-5;counter-reset:list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-5:before{content:counter(list-5,lower-roman) ". "}.ql-editor ol li.ql-indent-6{counter-increment:list-6;counter-reset:list-7 list-8 list-9}.ql-editor ol li.ql-indent-6:before{content:counter(list-6,decimal) ". "}.ql-editor ol li.ql-indent-7{counter-increment:list-7;counter-reset:list-8 list-9}.ql-editor ol li.ql-indent-7:before{content:counter(list-7,lower-alpha) ". "}.ql-editor ol li.ql-indent-8{counter-increment:list-8;counter-reset:list-9}.ql-editor ol li.ql-indent-8:before{content:counter(list-8,lower-roman) ". "}.ql-editor ol li.ql-indent-9{counter-increment:list-9}.ql-editor ol li.ql-indent-9:before{content:counter(list-9,decimal) ". "}.ql-editor .ql-indent-1:not(.ql-direction-rtl){padding-left:3em}.ql-editor li.ql-indent-1:not(.ql-direction-rtl){padding-left:4.5em}.ql-editor .ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:3em}.ql-editor li.ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:4.5em}.ql-editor .ql-indent-2:not(.ql-direction-rtl){padding-left:6em}.ql-editor li.ql-indent-2:not(.ql-direction-rtl){padding-left:7.5em}.ql-editor .ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:6em}.ql-editor li.ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:7.5em}.ql-editor .ql-indent-3:not(.ql-direction-rtl){padding-left:9em}.ql-editor li.ql-indent-3:not(.ql-direction-rtl){padding-left:10.5em}.ql-editor .ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:9em}.ql-editor li.ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:10.5em}.ql-editor .ql-indent-4:not(.ql-direction-rtl){padding-left:12em}.ql-editor li.ql-indent-4:not(.ql-direction-rtl){padding-left:13.5em}.ql-editor .ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:12em}.ql-editor li.ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:13.5em}.ql-editor .ql-indent-5:not(.ql-direction-rtl){padding-left:15em}.ql-editor li.ql-indent-5:not(.ql-direction-rtl){padding-left:16.5em}.ql-editor .ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:15em}.ql-editor li.ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:16.5em}.ql-editor .ql-indent-6:not(.ql-direction-rtl){padding-left:18em}.ql-editor li.ql-indent-6:not(.ql-direction-rtl){padding-left:19.5em}.ql-editor .ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:18em}.ql-editor li.ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:19.5em}.ql-editor .ql-indent-7:not(.ql-direction-rtl){padding-left:21em}.ql-editor li.ql-indent-7:not(.ql-direction-rtl){padding-left:22.5em}.ql-editor .ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:21em}.ql-editor li.ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:22.5em}.ql-editor .ql-indent-8:not(.ql-direction-rtl){padding-left:24em}.ql-editor li.ql-indent-8:not(.ql-direction-rtl){padding-left:25.5em}.ql-editor .ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:24em}.ql-editor li.ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:25.5em}.ql-editor .ql-indent-9:not(.ql-direction-rtl){padding-left:27em}.ql-editor li.ql-indent-9:not(.ql-direction-rtl){padding-left:28.5em}.ql-editor .ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:27em}.ql-editor li.ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:28.5em}.ql-editor .ql-video{display:block;max-width:100%}.ql-editor .ql-video.ql-align-center{margin:0 auto}.ql-editor .ql-video.ql-align-right{margin:0 0 0 auto}.ql-editor .ql-bg-black{background-color:#000}.ql-editor .ql-bg-red{background-color:#e60000}.ql-editor .ql-bg-orange{background-color:#f90}.ql-editor .ql-bg-yellow{background-color:#ff0}.ql-editor .ql-bg-green{background-color:#008a00}.ql-editor .ql-bg-blue{background-color:#06c}.ql-editor .ql-bg-purple{background-color:#93f}.ql-editor .ql-color-white{color:#fff}.ql-editor .ql-color-red{color:#e60000}.ql-editor .ql-color-orange{color:#f90}.ql-editor .ql-color-yellow{color:#ff0}.ql-editor .ql-color-green{color:#008a00}.ql-editor .ql-color-blue{color:#06c}.ql-editor .ql-color-purple{color:#93f}.ql-editor .ql-font-serif{font-family:Georgia,Times New Roman,serif}.ql-editor .ql-font-monospace{font-family:Monaco,Courier New,monospace}.ql-editor .ql-size-small{font-size:.75em}.ql-editor .ql-size-large{font-size:1.5em}.ql-editor .ql-size-huge{font-size:2.5em}.ql-editor .ql-direction-rtl{direction:rtl;text-align:inherit}.ql-editor .ql-align-center{text-align:center}.ql-editor .ql-align-justify{text-align:justify}.ql-editor .ql-align-right{text-align:right}.ql-editor.ql-blank:before{color:#0009;content:attr(data-placeholder);font-style:italic;left:15px;pointer-events:none;position:absolute;right:15px}.ql-snow.ql-toolbar:after,.ql-snow .ql-toolbar:after{clear:both;content:"";display:table}.ql-snow.ql-toolbar button,.ql-snow .ql-toolbar button{background:none;border:none;cursor:pointer;display:inline-block;float:left;height:24px;padding:3px 5px;width:28px}.ql-snow.ql-toolbar button svg,.ql-snow .ql-toolbar button svg{float:left;height:100%}.ql-snow.ql-toolbar button:active:hover,.ql-snow .ql-toolbar button:active:hover{outline:none}.ql-snow.ql-toolbar input.ql-image[type=file],.ql-snow .ql-toolbar input.ql-image[type=file]{display:none}.ql-snow.ql-toolbar button:hover,.ql-snow .ql-toolbar button:hover,.ql-snow.ql-toolbar button:focus,.ql-snow .ql-toolbar button:focus,.ql-snow.ql-toolbar button.ql-active,.ql-snow .ql-toolbar button.ql-active,.ql-snow.ql-toolbar .ql-picker-label:hover,.ql-snow .ql-toolbar .ql-picker-label:hover,.ql-snow.ql-toolbar .ql-picker-label.ql-active,.ql-snow .ql-toolbar .ql-picker-label.ql-active,.ql-snow.ql-toolbar .ql-picker-item:hover,.ql-snow .ql-toolbar .ql-picker-item:hover,.ql-snow.ql-toolbar .ql-picker-item.ql-selected,.ql-snow .ql-toolbar .ql-picker-item.ql-selected{color:#06c}.ql-snow.ql-toolbar button:hover .ql-fill,.ql-snow .ql-toolbar button:hover .ql-fill,.ql-snow.ql-toolbar button:focus .ql-fill,.ql-snow .ql-toolbar button:focus .ql-fill,.ql-snow.ql-toolbar button.ql-active .ql-fill,.ql-snow .ql-toolbar button.ql-active .ql-fill,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-fill,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-fill,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-fill,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-snow.ql-toolbar button:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar button:focus .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:focus .ql-stroke.ql-fill,.ql-snow.ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-snow .ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill{fill:#06c}.ql-snow.ql-toolbar button:hover .ql-stroke,.ql-snow .ql-toolbar button:hover .ql-stroke,.ql-snow.ql-toolbar button:focus .ql-stroke,.ql-snow .ql-toolbar button:focus .ql-stroke,.ql-snow.ql-toolbar button.ql-active .ql-stroke,.ql-snow .ql-toolbar button.ql-active .ql-stroke,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-snow.ql-toolbar button:hover .ql-stroke-miter,.ql-snow .ql-toolbar button:hover .ql-stroke-miter,.ql-snow.ql-toolbar button:focus .ql-stroke-miter,.ql-snow .ql-toolbar button:focus .ql-stroke-miter,.ql-snow.ql-toolbar button.ql-active .ql-stroke-miter,.ql-snow .ql-toolbar button.ql-active .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter{stroke:#06c}@media (pointer: coarse){.ql-snow.ql-toolbar button:hover:not(.ql-active),.ql-snow .ql-toolbar button:hover:not(.ql-active){color:#444}.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill{fill:#444}.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter{stroke:#444}}.ql-snow,.ql-snow *{box-sizing:border-box}.ql-snow .ql-hidden{display:none}.ql-snow .ql-out-bottom,.ql-snow .ql-out-top{visibility:hidden}.ql-snow .ql-tooltip{position:absolute;transform:translateY(10px);background-color:#fff;border:1px solid #ccc;box-shadow:0 0 5px #ddd;color:#444;padding:5px 12px;white-space:nowrap}.ql-snow .ql-tooltip a{cursor:pointer;text-decoration:none;line-height:26px}.ql-snow .ql-tooltip.ql-flip{transform:translateY(-10px)}.ql-snow .ql-formats{display:inline-block;vertical-align:middle}.ql-snow .ql-formats:after{clear:both;content:"";display:table}.ql-snow .ql-stroke{fill:none;stroke:#444;stroke-linecap:round;stroke-linejoin:round;stroke-width:2}.ql-snow .ql-stroke-miter{fill:none;stroke:#444;stroke-miterlimit:10;stroke-width:2}.ql-snow .ql-fill,.ql-snow .ql-stroke.ql-fill{fill:#444}.ql-snow .ql-empty{fill:none}.ql-snow .ql-even{fill-rule:evenodd}.ql-snow .ql-thin,.ql-snow .ql-stroke.ql-thin{stroke-width:1}.ql-snow .ql-transparent{opacity:.4}.ql-snow .ql-direction svg:last-child{display:none}.ql-snow .ql-direction.ql-active svg:last-child{display:inline}.ql-snow .ql-direction.ql-active svg:first-child{display:none}.ql-snow .ql-editor h1{font-size:2em}.ql-snow .ql-editor h2{font-size:1.5em}.ql-snow .ql-editor h3{font-size:1.17em}.ql-snow .ql-editor h4{font-size:1em}.ql-snow .ql-editor h5{font-size:.83em}.ql-snow .ql-editor h6{font-size:.67em}.ql-snow .ql-editor a{text-decoration:underline}.ql-snow .ql-editor blockquote{border-left:4px solid #ccc;margin-bottom:5px;margin-top:5px;padding-left:16px}.ql-snow .ql-editor code,.ql-snow .ql-editor pre{background-color:#f0f0f0;border-radius:3px}.ql-snow .ql-editor pre{white-space:pre-wrap;margin-bottom:5px;margin-top:5px;padding:5px 10px}.ql-snow .ql-editor code{font-size:85%;padding:2px 4px}.ql-snow .ql-editor pre.ql-syntax{background-color:#23241f;color:#f8f8f2;overflow:visible}.ql-snow .ql-editor img{max-width:100%}.ql-snow .ql-picker{color:#444;display:inline-block;float:left;font-size:14px;font-weight:500;height:24px;position:relative;vertical-align:middle}.ql-snow .ql-picker-label{cursor:pointer;display:inline-block;height:100%;padding-left:8px;padding-right:2px;position:relative;width:100%}.ql-snow .ql-picker-label:before{display:inline-block;line-height:22px}.ql-snow .ql-picker-options{background-color:#fff;display:none;min-width:100%;padding:4px 8px;position:absolute;white-space:nowrap}.ql-snow .ql-picker-options .ql-picker-item{cursor:pointer;display:block;padding-bottom:5px;padding-top:5px}.ql-snow .ql-picker.ql-expanded .ql-picker-label{color:#ccc;z-index:2}.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-fill{fill:#ccc}.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-stroke{stroke:#ccc}.ql-snow .ql-picker.ql-expanded .ql-picker-options{display:block;margin-top:-1px;top:100%;z-index:1}.ql-snow .ql-color-picker,.ql-snow .ql-icon-picker{width:28px}.ql-snow .ql-color-picker .ql-picker-label,.ql-snow .ql-icon-picker .ql-picker-label{padding:2px 4px}.ql-snow .ql-color-picker .ql-picker-label svg,.ql-snow .ql-icon-picker .ql-picker-label svg{right:4px}.ql-snow .ql-icon-picker .ql-picker-options{padding:4px 0}.ql-snow .ql-icon-picker .ql-picker-item{height:24px;width:24px;padding:2px 4px}.ql-snow .ql-color-picker .ql-picker-options{padding:3px 5px;width:152px}.ql-snow .ql-color-picker .ql-picker-item{border:1px solid transparent;float:left;height:16px;margin:2px;padding:0;width:16px}.ql-snow .ql-picker:not(.ql-color-picker):not(.ql-icon-picker) svg{position:absolute;margin-top:-9px;right:0;top:50%;width:18px}.ql-snow .ql-picker.ql-header .ql-picker-label[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-font .ql-picker-label[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-font .ql-picker-item[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-label]:not([data-label=""]):before{content:attr(data-label)}.ql-snow .ql-picker.ql-header{width:98px}.ql-snow .ql-picker.ql-header .ql-picker-label:before,.ql-snow .ql-picker.ql-header .ql-picker-item:before{content:"Normal"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="1"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]:before{content:"Heading 1"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="2"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]:before{content:"Heading 2"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="3"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]:before{content:"Heading 3"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="4"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]:before{content:"Heading 4"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="5"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]:before{content:"Heading 5"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="6"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="6"]:before{content:"Heading 6"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]:before{font-size:2em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]:before{font-size:1.5em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]:before{font-size:1.17em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]:before{font-size:1em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]:before{font-size:.83em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="6"]:before{font-size:.67em}.ql-snow .ql-picker.ql-font{width:108px}.ql-snow .ql-picker.ql-font .ql-picker-label:before,.ql-snow .ql-picker.ql-font .ql-picker-item:before{content:"Sans Serif"}.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=serif]:before,.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]:before{content:"Serif"}.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=monospace]:before,.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]:before{content:"Monospace"}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]:before{font-family:Georgia,Times New Roman,serif}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]:before{font-family:Monaco,Courier New,monospace}.ql-snow .ql-picker.ql-size{width:98px}.ql-snow .ql-picker.ql-size .ql-picker-label:before,.ql-snow .ql-picker.ql-size .ql-picker-item:before{content:"Normal"}.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=small]:before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]:before{content:"Petita"}.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=large]:before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]:before{content:"Gran"}.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=huge]:before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]:before{content:"Enorme"}button.ql-indent{display:none!important}.ql-undo{font-size:14pt;font-weight:900;display:flex!important;align-items:center}.ql-undo:after{content:"↺";transform:rotate(-135deg)}.ql-redo{font-size:14pt;font-weight:900;display:flex!important;align-items:center}.ql-redo:after{content:"↻";transform:rotate(135deg)}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]:before{font-size:10px}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]:before{font-size:18px}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]:before{font-size:32px}.ql-snow .ql-color-picker.ql-background .ql-picker-item{background-color:#fff}.ql-snow .ql-color-picker.ql-color .ql-picker-item{background-color:#000}.ql-toolbar.ql-snow{border-bottom:1px solid #ccc;box-sizing:border-box;font-family:Helvetica Neue,Helvetica,Arial,sans-serif;padding:8px}.ql-toolbar.ql-snow .ql-formats{margin-right:15px}.ql-toolbar.ql-snow .ql-picker-label{border:1px solid transparent}.ql-toolbar.ql-snow .ql-picker-options{border:1px solid transparent;box-shadow:#0003 0 2px 8px}.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label,.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options{border-color:#ccc}.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item.ql-selected,.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item:hover{border-color:#000}.ql-toolbar.ql-snow+.ql-container.ql-snow{border-top:0px}.ql-snow .ql-tooltip:before{content:"Visit URL:";line-height:26px;margin-right:8px}.ql-snow .ql-tooltip input[type=text]{display:none;border:1px solid #ccc;font-size:13px;height:26px;margin:0;padding:3px 5px;width:170px}.ql-snow .ql-tooltip a.ql-preview{display:inline-block;max-width:200px;overflow-x:hidden;text-overflow:ellipsis;vertical-align:top}.ql-snow .ql-tooltip a.ql-action:after{border-right:1px solid #ccc;content:"Edit";margin-left:16px;padding-right:8px}.ql-snow .ql-tooltip a.ql-remove:before{content:"Remove";margin-left:8px}.ql-snow .ql-tooltip.ql-editing a.ql-preview,.ql-snow .ql-tooltip.ql-editing a.ql-remove{display:none}.ql-snow .ql-tooltip.ql-editing input[type=text]{display:inline-block}.ql-snow .ql-tooltip.ql-editing a.ql-action:after{border-right:0px;content:"Save";padding-right:0}.ql-snow .ql-tooltip[data-mode=link]:before{content:"Enter link:"}.ql-snow .ql-tooltip[data-mode=formula]:before{content:"Enter formula:"}.ql-snow .ql-tooltip[data-mode=video]:before{content:"Enter video:"}.ql-snow a{color:#06c}',template$1=te=>ke$1`
|
|
6908
|
+
`)}return vt}function ns(gt,vt){var kt={},At=gt.style||{};return At.fontStyle&&Xe(gt).fontStyle==="italic"&&(kt.italic=!0),At.fontWeight&&(Xe(gt).fontWeight.startsWith("bold")||parseInt(Xe(gt).fontWeight)>=700)&&(kt.bold=!0),Object.keys(kt).length>0&&(vt=Ue(vt,kt)),parseFloat(At.textIndent||0)>0&&(vt=new fe.default().insert(" ").concat(vt)),vt}function Xt(gt,vt){var kt=gt.data;if(gt.parentNode.tagName==="O:P")return vt.insert(kt.trim());if(kt.trim().length===0&>.parentNode.classList.contains("ql-clipboard"))return vt;if(!Xe(gt.parentNode).whiteSpace.startsWith("pre")){var At=function(Ft,Mt){return Mt=Mt.replace(/[^\u00a0]/g,""),Mt.length<1&&Ft?" ":Mt};kt=kt.replace(/\r\n/g," ").replace(/\n/g," "),kt=kt.replace(/\s\s+/g,At.bind(At,!0)),(gt.previousSibling==null&&je(gt.parentNode)||gt.previousSibling!=null&&je(gt.previousSibling))&&(kt=kt.replace(/^\s+/,At.bind(At,!1))),(gt.nextSibling==null&&je(gt.parentNode)||gt.nextSibling!=null&&je(gt.nextSibling))&&(kt=kt.replace(/\s+$/,At.bind(At,!1)))}return vt.insert(kt)}re.default=Ge,re.matchAttributor=ot,re.matchBlot=yt,re.matchNewline=Nt,re.matchSpacing=Ut,re.matchText=Xt}),(function(X,re,ne){Object.defineProperty(re,"__esModule",{value:!0});var oe=(function(){function ve(me,_e){for(var ye=0;ye<_e.length;ye++){var Ce=_e[ye];Ce.enumerable=Ce.enumerable||!1,Ce.configurable=!0,"value"in Ce&&(Ce.writable=!0),Object.defineProperty(me,Ce.key,Ce)}}return function(me,_e,ye){return _e&&ve(me.prototype,_e),ye&&ve(me,ye),me}})(),de=function ve(me,_e,ye){me===null&&(me=Function.prototype);var Ce=Object.getOwnPropertyDescriptor(me,_e);if(Ce===void 0){var Se=Object.getPrototypeOf(me);return Se===null?void 0:ve(Se,_e,ye)}else{if("value"in Ce)return Ce.value;var we=Ce.get;return we===void 0?void 0:we.call(ye)}},ce=ne(6),he=ue(ce);function ue(ve){return ve&&ve.__esModule?ve:{default:ve}}function pe(ve,me){if(!(ve instanceof me))throw new TypeError("Cannot call a class as a function")}function fe(ve,me){if(!ve)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return me&&(typeof me=="object"||typeof me=="function")?me:ve}function be(ve,me){if(typeof me!="function"&&me!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof me);ve.prototype=Object.create(me&&me.prototype,{constructor:{value:ve,enumerable:!1,writable:!0,configurable:!0}}),me&&(Object.setPrototypeOf?Object.setPrototypeOf(ve,me):ve.__proto__=me)}var ge=(function(ve){be(me,ve);function me(){return pe(this,me),fe(this,(me.__proto__||Object.getPrototypeOf(me)).apply(this,arguments))}return oe(me,[{key:"optimize",value:function(ye){de(me.prototype.__proto__||Object.getPrototypeOf(me.prototype),"optimize",this).call(this,ye),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return de(me.__proto__||Object.getPrototypeOf(me),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),me})(he.default);ge.blotName="bold",ge.tagName=["STRONG","B"],re.default=ge}),(function(X,re,ne){Object.defineProperty(re,"__esModule",{value:!0}),re.addControls=re.default=void 0;var oe=(function(){function Pe(Ie,Be){var We=[],Ye=!0,Ke=!1,mt=void 0;try{for(var Je=Ie[Symbol.iterator](),Ze;!(Ye=(Ze=Je.next()).done)&&(We.push(Ze.value),!(Be&&We.length===Be));Ye=!0);}catch(Fe){Ke=!0,mt=Fe}finally{try{!Ye&&Je.return&&Je.return()}finally{if(Ke)throw mt}}return We}return function(Ie,Be){if(Array.isArray(Ie))return Ie;if(Symbol.iterator in Object(Ie))return Pe(Ie,Be);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),de=(function(){function Pe(Ie,Be){for(var We=0;We<Be.length;We++){var Ye=Be[We];Ye.enumerable=Ye.enumerable||!1,Ye.configurable=!0,"value"in Ye&&(Ye.writable=!0),Object.defineProperty(Ie,Ye.key,Ye)}}return function(Ie,Be,We){return Be&&Pe(Ie.prototype,Be),We&&Pe(Ie,We),Ie}})(),ce=ne(2),he=ye(ce),ue=ne(0),pe=ye(ue),fe=ne(5),be=ye(fe),ge=ne(10),ve=ye(ge),me=ne(9),_e=ye(me);function ye(Pe){return Pe&&Pe.__esModule?Pe:{default:Pe}}function Ce(Pe,Ie,Be){return Ie in Pe?Object.defineProperty(Pe,Ie,{value:Be,enumerable:!0,configurable:!0,writable:!0}):Pe[Ie]=Be,Pe}function Se(Pe,Ie){if(!(Pe instanceof Ie))throw new TypeError("Cannot call a class as a function")}function we(Pe,Ie){if(!Pe)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Ie&&(typeof Ie=="object"||typeof Ie=="function")?Ie:Pe}function Ae(Pe,Ie){if(typeof Ie!="function"&&Ie!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Ie);Pe.prototype=Object.create(Ie&&Ie.prototype,{constructor:{value:Pe,enumerable:!1,writable:!0,configurable:!0}}),Ie&&(Object.setPrototypeOf?Object.setPrototypeOf(Pe,Ie):Pe.__proto__=Ie)}var Le="getRootNode"in document,qe=(0,ve.default)("quill:toolbar"),Me=(function(Pe){Ae(Ie,Pe);function Ie(Be,We){Se(this,Ie);var Ye=we(this,(Ie.__proto__||Object.getPrototypeOf(Ie)).call(this,Be,We));if(Array.isArray(Ye.options.container)){var Ke=document.createElement("div");ze(Ke,Ye.options.container),Be.container.parentNode.insertBefore(Ke,Be.container),Ye.container=Ke}else if(typeof Ye.options.container=="string"){var mt=Le?Be.container.getRootNode():document;Ye.container=mt.querySelector(Ye.options.container)}else Ye.container=Ye.options.container;if(!(Ye.container instanceof HTMLElement)){var Je;return Je=qe.error("Container required for toolbar",Ye.options),we(Ye,Je)}return Ye.container.classList.add("ql-toolbar"),Ye.controls=[],Ye.handlers={},Object.keys(Ye.options.handlers).forEach(function(Ze){Ye.addHandler(Ze,Ye.options.handlers[Ze])}),[].forEach.call(Ye.container.querySelectorAll("button, select"),function(Ze){Ye.attach(Ze)}),Ye.quill.on(be.default.events.EDITOR_CHANGE,function(Ze,Fe){Ze===be.default.events.SELECTION_CHANGE&&Ye.update(Fe)}),Ye.quill.on(be.default.events.SCROLL_OPTIMIZE,function(){var Ze=Ye.quill.selection.getRange(),Fe=oe(Ze,1),Ge=Fe[0];Ye.update(Ge)}),Ye}return de(Ie,[{key:"addHandler",value:function(We,Ye){this.handlers[We]=Ye}},{key:"attach",value:function(We){var Ye=this,Ke=[].find.call(We.classList,function(Je){return Je.indexOf("ql-")===0});if(Ke){if(Ke=Ke.slice(3),We.tagName==="BUTTON"&&We.setAttribute("type","button"),this.handlers[Ke]==null){if(this.quill.scroll.whitelist!=null&&this.quill.scroll.whitelist[Ke]==null){qe.warn("ignoring attaching to disabled format",Ke,We);return}if(pe.default.query(Ke)==null){qe.warn("ignoring attaching to nonexistent format",Ke,We);return}}var mt=We.tagName==="SELECT"?"change":"click";We.addEventListener(mt,function(Je){var Ze=void 0;if(We.tagName==="SELECT"){if(We.selectedIndex<0)return;var Fe=We.options[We.selectedIndex];Fe.hasAttribute("selected")?Ze=!1:Ze=Fe.value||!1}else We.classList.contains("ql-active")?Ze=!1:Ze=We.value||!We.hasAttribute("value"),Je.preventDefault();Ye.quill.focus();var Ge=Ye.quill.selection.getRange(),Ue=oe(Ge,1),Xe=Ue[0];if(Ye.handlers[Ke]!=null)Ye.handlers[Ke].call(Ye,Ze);else if(pe.default.query(Ke).prototype instanceof pe.default.Embed){if(Ze=prompt("Enter "+Ke),!Ze)return;Ye.quill.updateContents(new he.default().retain(Xe.index).delete(Xe.length).insert(Ce({},Ke,Ze)),be.default.sources.USER)}else Ye.quill.format(Ke,Ze,be.default.sources.USER);Ye.update(Xe)}),this.controls.push([Ke,We])}}},{key:"update",value:function(We){var Ye=We==null?{}:this.quill.getFormat(We);this.controls.forEach(function(Ke){var mt=oe(Ke,2),Je=mt[0],Ze=mt[1];if(Ze.tagName==="SELECT"){var Fe=void 0;if(We==null)Fe=null;else if(Ye[Je]==null)Fe=Ze.querySelector("option[selected]");else if(!Array.isArray(Ye[Je])){var Ge=Ye[Je];typeof Ge=="string"&&(Ge=Ge.replace(/\"/g,'\\"')),Fe=Ze.querySelector('option[value="'+Ge+'"]')}Fe==null?(Ze.value="",Ze.selectedIndex=-1):Fe.selected=!0}else if(We==null)Ze.classList.remove("ql-active");else if(Ze.hasAttribute("value")){var Ue=Ye[Je]===Ze.getAttribute("value")||Ye[Je]!=null&&Ye[Je].toString()===Ze.getAttribute("value")||Ye[Je]==null&&!Ze.getAttribute("value");Ze.classList.toggle("ql-active",Ue)}else Ze.classList.toggle("ql-active",Ye[Je]!=null)})}}]),Ie})(_e.default);Me.DEFAULTS={};function Ne(Pe,Ie,Be){var We=document.createElement("button");We.setAttribute("type","button"),We.classList.add("ql-"+Ie),Be!=null&&(We.value=Be),Pe.appendChild(We)}function ze(Pe,Ie){Array.isArray(Ie[0])||(Ie=[Ie]),Ie.forEach(function(Be){var We=document.createElement("span");We.classList.add("ql-formats"),Be.forEach(function(Ye){if(typeof Ye=="string")Ne(We,Ye);else{var Ke=Object.keys(Ye)[0],mt=Ye[Ke];Array.isArray(mt)?Oe(We,Ke,mt):Ne(We,Ke,mt)}}),Pe.appendChild(We)})}function Oe(Pe,Ie,Be){var We=document.createElement("select");We.classList.add("ql-"+Ie),Be.forEach(function(Ye){var Ke=document.createElement("option");Ye!==!1?Ke.setAttribute("value",Ye):Ke.setAttribute("selected","selected"),We.appendChild(Ke)}),Pe.appendChild(We)}Me.DEFAULTS={container:null,handlers:{clean:function(){var Ie=this,Be=this.quill.getSelection();if(Be!=null)if(Be.length==0){var We=this.quill.getFormat();Object.keys(We).forEach(function(Ye){pe.default.query(Ye,pe.default.Scope.INLINE)!=null&&Ie.quill.format(Ye,!1)})}else this.quill.removeFormat(Be,be.default.sources.USER)},direction:function(Ie){var Be=this.quill.getFormat().align;Ie==="rtl"&&Be==null?this.quill.format("align","right",be.default.sources.USER):!Ie&&Be==="right"&&this.quill.format("align",!1,be.default.sources.USER),this.quill.format("direction",Ie,be.default.sources.USER)},indent:function(Ie){var Be=this.quill.getSelection(),We=this.quill.getFormat(Be),Ye=parseInt(We.indent||0);if(Ie==="+1"||Ie==="-1"){var Ke=Ie==="+1"?1:-1;We.direction==="rtl"&&(Ke*=-1),this.quill.format("indent",Ye+Ke,be.default.sources.USER)}},link:function(Ie){Ie===!0&&(Ie=prompt("Enter link URL:")),this.quill.format("link",Ie,be.default.sources.USER)},list:function(Ie){var Be=this.quill.getSelection(),We=this.quill.getFormat(Be);Ie==="check"?We.list==="checked"||We.list==="unchecked"?this.quill.format("list",!1,be.default.sources.USER):this.quill.format("list","unchecked",be.default.sources.USER):this.quill.format("list",Ie,be.default.sources.USER)}}},re.default=Me,re.addControls=ze}),(function(X,re){X.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'}),(function(X,re,ne){Object.defineProperty(re,"__esModule",{value:!0});var oe=(function(){function ve(me,_e){for(var ye=0;ye<_e.length;ye++){var Ce=_e[ye];Ce.enumerable=Ce.enumerable||!1,Ce.configurable=!0,"value"in Ce&&(Ce.writable=!0),Object.defineProperty(me,Ce.key,Ce)}}return function(me,_e,ye){return _e&&ve(me.prototype,_e),ye&&ve(me,ye),me}})(),de=function ve(me,_e,ye){me===null&&(me=Function.prototype);var Ce=Object.getOwnPropertyDescriptor(me,_e);if(Ce===void 0){var Se=Object.getPrototypeOf(me);return Se===null?void 0:ve(Se,_e,ye)}else{if("value"in Ce)return Ce.value;var we=Ce.get;return we===void 0?void 0:we.call(ye)}},ce=ne(28),he=ue(ce);function ue(ve){return ve&&ve.__esModule?ve:{default:ve}}function pe(ve,me){if(!(ve instanceof me))throw new TypeError("Cannot call a class as a function")}function fe(ve,me){if(!ve)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return me&&(typeof me=="object"||typeof me=="function")?me:ve}function be(ve,me){if(typeof me!="function"&&me!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof me);ve.prototype=Object.create(me&&me.prototype,{constructor:{value:ve,enumerable:!1,writable:!0,configurable:!0}}),me&&(Object.setPrototypeOf?Object.setPrototypeOf(ve,me):ve.__proto__=me)}var ge=(function(ve){be(me,ve);function me(_e,ye){pe(this,me);var Ce=fe(this,(me.__proto__||Object.getPrototypeOf(me)).call(this,_e));return Ce.label.innerHTML=ye,Ce.container.classList.add("ql-color-picker"),[].slice.call(Ce.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(Se){Se.classList.add("ql-primary")}),Ce}return oe(me,[{key:"buildItem",value:function(ye){var Ce=de(me.prototype.__proto__||Object.getPrototypeOf(me.prototype),"buildItem",this).call(this,ye);return Ce.style.backgroundColor=ye.getAttribute("value")||"",Ce}},{key:"selectItem",value:function(ye,Ce){de(me.prototype.__proto__||Object.getPrototypeOf(me.prototype),"selectItem",this).call(this,ye,Ce);var Se=this.label.querySelector(".ql-color-label"),we=ye&&ye.getAttribute("data-value")||"";Se&&(Se.tagName==="line"?Se.style.stroke=we:Se.style.fill=we)}}]),me})(he.default);re.default=ge}),(function(X,re,ne){Object.defineProperty(re,"__esModule",{value:!0});var oe=(function(){function ve(me,_e){for(var ye=0;ye<_e.length;ye++){var Ce=_e[ye];Ce.enumerable=Ce.enumerable||!1,Ce.configurable=!0,"value"in Ce&&(Ce.writable=!0),Object.defineProperty(me,Ce.key,Ce)}}return function(me,_e,ye){return _e&&ve(me.prototype,_e),ye&&ve(me,ye),me}})(),de=function ve(me,_e,ye){me===null&&(me=Function.prototype);var Ce=Object.getOwnPropertyDescriptor(me,_e);if(Ce===void 0){var Se=Object.getPrototypeOf(me);return Se===null?void 0:ve(Se,_e,ye)}else{if("value"in Ce)return Ce.value;var we=Ce.get;return we===void 0?void 0:we.call(ye)}},ce=ne(28),he=ue(ce);function ue(ve){return ve&&ve.__esModule?ve:{default:ve}}function pe(ve,me){if(!(ve instanceof me))throw new TypeError("Cannot call a class as a function")}function fe(ve,me){if(!ve)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return me&&(typeof me=="object"||typeof me=="function")?me:ve}function be(ve,me){if(typeof me!="function"&&me!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof me);ve.prototype=Object.create(me&&me.prototype,{constructor:{value:ve,enumerable:!1,writable:!0,configurable:!0}}),me&&(Object.setPrototypeOf?Object.setPrototypeOf(ve,me):ve.__proto__=me)}var ge=(function(ve){be(me,ve);function me(_e,ye){pe(this,me);var Ce=fe(this,(me.__proto__||Object.getPrototypeOf(me)).call(this,_e));return Ce.container.classList.add("ql-icon-picker"),[].forEach.call(Ce.container.querySelectorAll(".ql-picker-item"),function(Se){Se.innerHTML=ye[Se.getAttribute("data-value")||""]}),Ce.defaultItem=Ce.container.querySelector(".ql-selected"),Ce.selectItem(Ce.defaultItem),Ce}return oe(me,[{key:"selectItem",value:function(ye,Ce){de(me.prototype.__proto__||Object.getPrototypeOf(me.prototype),"selectItem",this).call(this,ye,Ce),ye=ye||this.defaultItem,this.label.innerHTML=ye.innerHTML}}]),me})(he.default);re.default=ge}),(function(X,re,ne){Object.defineProperty(re,"__esModule",{value:!0});var oe=(function(){function he(ue,pe){for(var fe=0;fe<pe.length;fe++){var be=pe[fe];be.enumerable=be.enumerable||!1,be.configurable=!0,"value"in be&&(be.writable=!0),Object.defineProperty(ue,be.key,be)}}return function(ue,pe,fe){return pe&&he(ue.prototype,pe),fe&&he(ue,fe),ue}})();function de(he,ue){if(!(he instanceof ue))throw new TypeError("Cannot call a class as a function")}var ce=(function(){function he(ue,pe){var fe=this;de(this,he),this.quill=ue,this.boundsContainer=pe||document.body,this.root=ue.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){fe.root.style.marginTop=-1*fe.quill.root.scrollTop+"px"}),this.hide()}return oe(he,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(pe){var fe=pe.left+pe.width/2-this.root.offsetWidth/2,be=pe.bottom+this.quill.root.scrollTop;this.root.style.left=fe+"px",this.root.style.top=be+"px",this.root.classList.remove("ql-flip");var ge=this.boundsContainer.getBoundingClientRect(),ve=this.root.getBoundingClientRect(),me=0;if(ve.right>ge.right&&(me=ge.right-ve.right,this.root.style.left=fe+me+"px"),ve.left<ge.left&&(me=ge.left-ve.left,this.root.style.left=fe+me+"px"),ve.bottom>ge.bottom){var _e=ve.bottom-ve.top,ye=pe.bottom-pe.top+_e;this.root.style.top=be-ye+"px",this.root.classList.add("ql-flip")}return me}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),he})();re.default=ce}),(function(X,re,ne){Object.defineProperty(re,"__esModule",{value:!0});var oe=(function(){function ze(Oe,Pe){var Ie=[],Be=!0,We=!1,Ye=void 0;try{for(var Ke=Oe[Symbol.iterator](),mt;!(Be=(mt=Ke.next()).done)&&(Ie.push(mt.value),!(Pe&&Ie.length===Pe));Be=!0);}catch(Je){We=!0,Ye=Je}finally{try{!Be&&Ke.return&&Ke.return()}finally{if(We)throw Ye}}return Ie}return function(Oe,Pe){if(Array.isArray(Oe))return Oe;if(Symbol.iterator in Object(Oe))return ze(Oe,Pe);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),de=function ze(Oe,Pe,Ie){Oe===null&&(Oe=Function.prototype);var Be=Object.getOwnPropertyDescriptor(Oe,Pe);if(Be===void 0){var We=Object.getPrototypeOf(Oe);return We===null?void 0:ze(We,Pe,Ie)}else{if("value"in Be)return Be.value;var Ye=Be.get;return Ye===void 0?void 0:Ye.call(Ie)}},ce=(function(){function ze(Oe,Pe){for(var Ie=0;Ie<Pe.length;Ie++){var Be=Pe[Ie];Be.enumerable=Be.enumerable||!1,Be.configurable=!0,"value"in Be&&(Be.writable=!0),Object.defineProperty(Oe,Be.key,Be)}}return function(Oe,Pe,Ie){return Pe&&ze(Oe.prototype,Pe),Ie&&ze(Oe,Ie),Oe}})(),he=ne(3),ue=Se(he),pe=ne(8),fe=Se(pe),be=ne(44),ge=Se(be),ve=ne(27),me=Se(ve),_e=ne(15),ye=ne(42),Ce=Se(ye);function Se(ze){return ze&&ze.__esModule?ze:{default:ze}}function we(ze,Oe){if(!(ze instanceof Oe))throw new TypeError("Cannot call a class as a function")}function Ae(ze,Oe){if(!ze)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Oe&&(typeof Oe=="object"||typeof Oe=="function")?Oe:ze}function Le(ze,Oe){if(typeof Oe!="function"&&Oe!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Oe);ze.prototype=Object.create(Oe&&Oe.prototype,{constructor:{value:ze,enumerable:!1,writable:!0,configurable:!0}}),Oe&&(Object.setPrototypeOf?Object.setPrototypeOf(ze,Oe):ze.__proto__=Oe)}var qe=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],Me=(function(ze){Le(Oe,ze);function Oe(Pe,Ie){we(this,Oe),Ie.modules.toolbar!=null&&Ie.modules.toolbar.container==null&&(Ie.modules.toolbar.container=qe);var Be=Ae(this,(Oe.__proto__||Object.getPrototypeOf(Oe)).call(this,Pe,Ie));return Be.quill.container.classList.add("ql-snow"),Be}return ce(Oe,[{key:"extendToolbar",value:function(Ie){Ie.container.classList.add("ql-snow"),this.buildButtons([].slice.call(Ie.container.querySelectorAll("button")),Ce.default),this.buildPickers([].slice.call(Ie.container.querySelectorAll("select")),Ce.default),this.tooltip=new Ne(this.quill,this.options.bounds),Ie.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(Be,We){Ie.handlers.link.call(Ie,!We.format.link)})}}]),Oe})(ge.default);Me.DEFAULTS=(0,ue.default)(!0,{},ge.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(Oe){if(Oe){var Pe=this.quill.getSelection();if(Pe==null||Pe.length==0)return;var Ie=this.quill.getText(Pe);/^\S+@\S+\.\S+$/.test(Ie)&&Ie.indexOf("mailto:")!==0&&(Ie="mailto:"+Ie);var Be=this.quill.theme.tooltip;Be.edit("link",Ie)}else this.quill.format("link",!1)}}}}});var Ne=(function(ze){Le(Oe,ze);function Oe(Pe,Ie){we(this,Oe);var Be=Ae(this,(Oe.__proto__||Object.getPrototypeOf(Oe)).call(this,Pe,Ie));return Be.preview=Be.root.querySelector("a.ql-preview"),Be}return ce(Oe,[{key:"listen",value:function(){var Ie=this;de(Oe.prototype.__proto__||Object.getPrototypeOf(Oe.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(Be){Ie.root.classList.contains("ql-editing")?Ie.save():Ie.edit("link",Ie.preview.textContent),Be.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(Be){if(Ie.linkRange!=null){var We=Ie.linkRange;Ie.restoreFocus(),Ie.quill.formatText(We,"link",!1,fe.default.sources.USER),delete Ie.linkRange}Be.preventDefault(),Ie.hide()}),this.quill.on(fe.default.events.SELECTION_CHANGE,function(Be,We,Ye){if(Be!=null){if(Be.length===0&&Ye===fe.default.sources.USER){var Ke=Ie.quill.scroll.descendant(me.default,Be.index),mt=oe(Ke,2),Je=mt[0],Ze=mt[1];if(Je!=null){Ie.linkRange=new _e.Range(Be.index-Ze,Je.length());var Fe=me.default.formats(Je.domNode);Ie.preview.textContent=Fe,Ie.preview.setAttribute("href",Fe),Ie.show(),Ie.position(Ie.quill.getBounds(Ie.linkRange));return}}else delete Ie.linkRange;Ie.hide()}})}},{key:"show",value:function(){de(Oe.prototype.__proto__||Object.getPrototypeOf(Oe.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),Oe})(be.BaseTooltip);Ne.TEMPLATE=['<a class="ql-preview" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),re.default=Me}),(function(X,re,ne){Object.defineProperty(re,"__esModule",{value:!0});var oe=ne(29),de=xt(oe),ce=ne(37),he=ne(39),ue=ne(65),pe=ne(66),fe=xt(pe),be=ne(67),ge=xt(be),ve=ne(68),me=xt(ve),_e=ne(38),ye=ne(26),Ce=ne(40),Se=ne(41),we=ne(57),Ae=xt(we),Le=ne(69),qe=xt(Le),Me=ne(27),Ne=xt(Me),ze=ne(70),Oe=xt(ze),Pe=ne(71),Ie=xt(Pe),Be=ne(72),We=xt(Be),Ye=ne(73),Ke=xt(Ye),mt=ne(74),Je=xt(mt),Ze=ne(13),Fe=xt(Ze),Ge=ne(75),Ue=xt(Ge),Xe=ne(76),tt=xt(Xe),je=ne(58),Qe=xt(je),nt=ne(42),ot=xt(nt),yt=ne(28),Ct=xt(yt),Pt=ne(60),zt=xt(Pt),Nt=ne(61),Ut=xt(Nt),ns=ne(62),Xt=xt(ns),gt=ne(109),vt=xt(gt),kt=ne(63),At=xt(kt);function xt(Ft){return Ft&&Ft.__esModule?Ft:{default:Ft}}de.default.register({"attributors/attribute/direction":he.DirectionAttribute,"attributors/class/align":ce.AlignClass,"attributors/class/background":_e.BackgroundClass,"attributors/class/color":ye.ColorClass,"attributors/class/direction":he.DirectionClass,"attributors/class/font":Ce.FontClass,"attributors/class/size":Se.SizeClass,"attributors/style/align":ce.AlignStyle,"attributors/style/background":_e.BackgroundStyle,"attributors/style/color":ye.ColorStyle,"attributors/style/direction":he.DirectionStyle,"attributors/style/font":Ce.FontStyle,"attributors/style/size":Se.SizeStyle},!0),de.default.register({"formats/align":ce.AlignClass,"formats/direction":he.DirectionClass,"formats/indent":ue.IndentClass,"formats/background":_e.BackgroundStyle,"formats/color":ye.ColorStyle,"formats/font":Ce.FontClass,"formats/size":Se.SizeClass,"formats/blockquote":fe.default,"formats/code-block":Fe.default,"formats/header":ge.default,"formats/list":me.default,"formats/bold":Ae.default,"formats/code":Ze.Code,"formats/italic":qe.default,"formats/link":Ne.default,"formats/script":Oe.default,"formats/strike":Ie.default,"formats/underline":We.default,"formats/image":Ke.default,"formats/video":Je.default,"formats/list/item":ve.ListItem,"modules/formula":Ue.default,"modules/syntax":tt.default,"modules/toolbar":Qe.default,"themes/bubble":vt.default,"themes/snow":At.default,"ui/icons":ot.default,"ui/picker":Ct.default,"ui/icon-picker":Ut.default,"ui/color-picker":zt.default,"ui/tooltip":Xt.default},!0),re.default=de.default}),(function(X,re,ne){Object.defineProperty(re,"__esModule",{value:!0}),re.IndentClass=void 0;var oe=(function(){function me(_e,ye){for(var Ce=0;Ce<ye.length;Ce++){var Se=ye[Ce];Se.enumerable=Se.enumerable||!1,Se.configurable=!0,"value"in Se&&(Se.writable=!0),Object.defineProperty(_e,Se.key,Se)}}return function(_e,ye,Ce){return ye&&me(_e.prototype,ye),Ce&&me(_e,Ce),_e}})(),de=function me(_e,ye,Ce){_e===null&&(_e=Function.prototype);var Se=Object.getOwnPropertyDescriptor(_e,ye);if(Se===void 0){var we=Object.getPrototypeOf(_e);return we===null?void 0:me(we,ye,Ce)}else{if("value"in Se)return Se.value;var Ae=Se.get;return Ae===void 0?void 0:Ae.call(Ce)}},ce=ne(0),he=ue(ce);function ue(me){return me&&me.__esModule?me:{default:me}}function pe(me,_e){if(!(me instanceof _e))throw new TypeError("Cannot call a class as a function")}function fe(me,_e){if(!me)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _e&&(typeof _e=="object"||typeof _e=="function")?_e:me}function be(me,_e){if(typeof _e!="function"&&_e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _e);me.prototype=Object.create(_e&&_e.prototype,{constructor:{value:me,enumerable:!1,writable:!0,configurable:!0}}),_e&&(Object.setPrototypeOf?Object.setPrototypeOf(me,_e):me.__proto__=_e)}var ge=(function(me){be(_e,me);function _e(){return pe(this,_e),fe(this,(_e.__proto__||Object.getPrototypeOf(_e)).apply(this,arguments))}return oe(_e,[{key:"add",value:function(Ce,Se){if(Se==="+1"||Se==="-1"){var we=this.value(Ce)||0;Se=Se==="+1"?we+1:we-1}return Se===0?(this.remove(Ce),!0):de(_e.prototype.__proto__||Object.getPrototypeOf(_e.prototype),"add",this).call(this,Ce,Se)}},{key:"canAdd",value:function(Ce,Se){return de(_e.prototype.__proto__||Object.getPrototypeOf(_e.prototype),"canAdd",this).call(this,Ce,Se)||de(_e.prototype.__proto__||Object.getPrototypeOf(_e.prototype),"canAdd",this).call(this,Ce,parseInt(Se))}},{key:"value",value:function(Ce){return parseInt(de(_e.prototype.__proto__||Object.getPrototypeOf(_e.prototype),"value",this).call(this,Ce))||void 0}}]),_e})(he.default.Attributor.Class),ve=new ge("indent","ql-indent",{scope:he.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});re.IndentClass=ve}),(function(X,re,ne){Object.defineProperty(re,"__esModule",{value:!0});var oe=ne(4),de=ce(oe);function ce(be){return be&&be.__esModule?be:{default:be}}function he(be,ge){if(!(be instanceof ge))throw new TypeError("Cannot call a class as a function")}function ue(be,ge){if(!be)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ge&&(typeof ge=="object"||typeof ge=="function")?ge:be}function pe(be,ge){if(typeof ge!="function"&&ge!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ge);be.prototype=Object.create(ge&&ge.prototype,{constructor:{value:be,enumerable:!1,writable:!0,configurable:!0}}),ge&&(Object.setPrototypeOf?Object.setPrototypeOf(be,ge):be.__proto__=ge)}var fe=(function(be){pe(ge,be);function ge(){return he(this,ge),ue(this,(ge.__proto__||Object.getPrototypeOf(ge)).apply(this,arguments))}return ge})(de.default);fe.blotName="blockquote",fe.tagName="blockquote",re.default=fe}),(function(X,re,ne){Object.defineProperty(re,"__esModule",{value:!0});var oe=(function(){function ge(ve,me){for(var _e=0;_e<me.length;_e++){var ye=me[_e];ye.enumerable=ye.enumerable||!1,ye.configurable=!0,"value"in ye&&(ye.writable=!0),Object.defineProperty(ve,ye.key,ye)}}return function(ve,me,_e){return me&&ge(ve.prototype,me),_e&&ge(ve,_e),ve}})(),de=ne(4),ce=he(de);function he(ge){return ge&&ge.__esModule?ge:{default:ge}}function ue(ge,ve){if(!(ge instanceof ve))throw new TypeError("Cannot call a class as a function")}function pe(ge,ve){if(!ge)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ve&&(typeof ve=="object"||typeof ve=="function")?ve:ge}function fe(ge,ve){if(typeof ve!="function"&&ve!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ve);ge.prototype=Object.create(ve&&ve.prototype,{constructor:{value:ge,enumerable:!1,writable:!0,configurable:!0}}),ve&&(Object.setPrototypeOf?Object.setPrototypeOf(ge,ve):ge.__proto__=ve)}var be=(function(ge){fe(ve,ge);function ve(){return ue(this,ve),pe(this,(ve.__proto__||Object.getPrototypeOf(ve)).apply(this,arguments))}return oe(ve,null,[{key:"formats",value:function(_e){return this.tagName.indexOf(_e.tagName)+1}}]),ve})(ce.default);be.blotName="header",be.tagName=["H1","H2","H3","H4","H5","H6"],re.default=be}),(function(X,re,ne){Object.defineProperty(re,"__esModule",{value:!0}),re.default=re.ListItem=void 0;var oe=(function(){function we(Ae,Le){for(var qe=0;qe<Le.length;qe++){var Me=Le[qe];Me.enumerable=Me.enumerable||!1,Me.configurable=!0,"value"in Me&&(Me.writable=!0),Object.defineProperty(Ae,Me.key,Me)}}return function(Ae,Le,qe){return Le&&we(Ae.prototype,Le),qe&&we(Ae,qe),Ae}})(),de=function we(Ae,Le,qe){Ae===null&&(Ae=Function.prototype);var Me=Object.getOwnPropertyDescriptor(Ae,Le);if(Me===void 0){var Ne=Object.getPrototypeOf(Ae);return Ne===null?void 0:we(Ne,Le,qe)}else{if("value"in Me)return Me.value;var ze=Me.get;return ze===void 0?void 0:ze.call(qe)}},ce=ne(0),he=ge(ce),ue=ne(4),pe=ge(ue),fe=ne(25),be=ge(fe);function ge(we){return we&&we.__esModule?we:{default:we}}function ve(we,Ae,Le){return Ae in we?Object.defineProperty(we,Ae,{value:Le,enumerable:!0,configurable:!0,writable:!0}):we[Ae]=Le,we}function me(we,Ae){if(!(we instanceof Ae))throw new TypeError("Cannot call a class as a function")}function _e(we,Ae){if(!we)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Ae&&(typeof Ae=="object"||typeof Ae=="function")?Ae:we}function ye(we,Ae){if(typeof Ae!="function"&&Ae!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Ae);we.prototype=Object.create(Ae&&Ae.prototype,{constructor:{value:we,enumerable:!1,writable:!0,configurable:!0}}),Ae&&(Object.setPrototypeOf?Object.setPrototypeOf(we,Ae):we.__proto__=Ae)}var Ce=(function(we){ye(Ae,we);function Ae(){return me(this,Ae),_e(this,(Ae.__proto__||Object.getPrototypeOf(Ae)).apply(this,arguments))}return oe(Ae,[{key:"format",value:function(qe,Me){qe===Se.blotName&&!Me?this.replaceWith(he.default.create(this.statics.scope)):de(Ae.prototype.__proto__||Object.getPrototypeOf(Ae.prototype),"format",this).call(this,qe,Me)}},{key:"remove",value:function(){this.prev==null&&this.next==null?this.parent.remove():de(Ae.prototype.__proto__||Object.getPrototypeOf(Ae.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(qe,Me){return this.parent.isolate(this.offset(this.parent),this.length()),qe===this.parent.statics.blotName?(this.parent.replaceWith(qe,Me),this):(this.parent.unwrap(),de(Ae.prototype.__proto__||Object.getPrototypeOf(Ae.prototype),"replaceWith",this).call(this,qe,Me))}}],[{key:"formats",value:function(qe){return qe.tagName===this.tagName?void 0:de(Ae.__proto__||Object.getPrototypeOf(Ae),"formats",this).call(this,qe)}}]),Ae})(pe.default);Ce.blotName="list-item",Ce.tagName="LI";var Se=(function(we){ye(Ae,we),oe(Ae,null,[{key:"create",value:function(qe){var Me=qe==="ordered"?"OL":"UL",Ne=de(Ae.__proto__||Object.getPrototypeOf(Ae),"create",this).call(this,Me);return(qe==="checked"||qe==="unchecked")&&Ne.setAttribute("data-checked",qe==="checked"),Ne}},{key:"formats",value:function(qe){if(qe.tagName==="OL")return"ordered";if(qe.tagName==="UL")return qe.hasAttribute("data-checked")?qe.getAttribute("data-checked")==="true"?"checked":"unchecked":"bullet"}}]);function Ae(Le){me(this,Ae);var qe=_e(this,(Ae.__proto__||Object.getPrototypeOf(Ae)).call(this,Le)),Me=function(ze){if(ze.target.parentNode===Le){var Oe=qe.statics.formats(Le),Pe=he.default.find(ze.target);Oe==="checked"?Pe.format("list","unchecked"):Oe==="unchecked"&&Pe.format("list","checked")}};return Le.addEventListener("touchstart",Me),Le.addEventListener("mousedown",Me),qe}return oe(Ae,[{key:"format",value:function(qe,Me){this.children.length>0&&this.children.tail.format(qe,Me)}},{key:"formats",value:function(){return ve({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(qe,Me){if(qe instanceof Ce)de(Ae.prototype.__proto__||Object.getPrototypeOf(Ae.prototype),"insertBefore",this).call(this,qe,Me);else{var Ne=Me==null?this.length():Me.offset(this),ze=this.split(Ne);ze.parent.insertBefore(qe,ze)}}},{key:"optimize",value:function(qe){de(Ae.prototype.__proto__||Object.getPrototypeOf(Ae.prototype),"optimize",this).call(this,qe);var Me=this.next;Me!=null&&Me.prev===this&&Me.statics.blotName===this.statics.blotName&&Me.domNode.tagName===this.domNode.tagName&&Me.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(Me.moveChildren(this),Me.remove())}},{key:"replace",value:function(qe){if(qe.statics.blotName!==this.statics.blotName){var Me=he.default.create(this.statics.defaultChild);qe.moveChildren(Me),this.appendChild(Me)}de(Ae.prototype.__proto__||Object.getPrototypeOf(Ae.prototype),"replace",this).call(this,qe)}}]),Ae})(be.default);Se.blotName="list",Se.scope=he.default.Scope.BLOCK_BLOT,Se.tagName=["OL","UL"],Se.defaultChild="list-item",Se.allowedChildren=[Ce],re.ListItem=Ce,re.default=Se}),(function(X,re,ne){Object.defineProperty(re,"__esModule",{value:!0});var oe=ne(57),de=ce(oe);function ce(be){return be&&be.__esModule?be:{default:be}}function he(be,ge){if(!(be instanceof ge))throw new TypeError("Cannot call a class as a function")}function ue(be,ge){if(!be)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ge&&(typeof ge=="object"||typeof ge=="function")?ge:be}function pe(be,ge){if(typeof ge!="function"&&ge!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ge);be.prototype=Object.create(ge&&ge.prototype,{constructor:{value:be,enumerable:!1,writable:!0,configurable:!0}}),ge&&(Object.setPrototypeOf?Object.setPrototypeOf(be,ge):be.__proto__=ge)}var fe=(function(be){pe(ge,be);function ge(){return he(this,ge),ue(this,(ge.__proto__||Object.getPrototypeOf(ge)).apply(this,arguments))}return ge})(de.default);fe.blotName="italic",fe.tagName=["EM","I"],re.default=fe}),(function(X,re,ne){Object.defineProperty(re,"__esModule",{value:!0});var oe=(function(){function ve(me,_e){for(var ye=0;ye<_e.length;ye++){var Ce=_e[ye];Ce.enumerable=Ce.enumerable||!1,Ce.configurable=!0,"value"in Ce&&(Ce.writable=!0),Object.defineProperty(me,Ce.key,Ce)}}return function(me,_e,ye){return _e&&ve(me.prototype,_e),ye&&ve(me,ye),me}})(),de=function ve(me,_e,ye){me===null&&(me=Function.prototype);var Ce=Object.getOwnPropertyDescriptor(me,_e);if(Ce===void 0){var Se=Object.getPrototypeOf(me);return Se===null?void 0:ve(Se,_e,ye)}else{if("value"in Ce)return Ce.value;var we=Ce.get;return we===void 0?void 0:we.call(ye)}},ce=ne(6),he=ue(ce);function ue(ve){return ve&&ve.__esModule?ve:{default:ve}}function pe(ve,me){if(!(ve instanceof me))throw new TypeError("Cannot call a class as a function")}function fe(ve,me){if(!ve)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return me&&(typeof me=="object"||typeof me=="function")?me:ve}function be(ve,me){if(typeof me!="function"&&me!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof me);ve.prototype=Object.create(me&&me.prototype,{constructor:{value:ve,enumerable:!1,writable:!0,configurable:!0}}),me&&(Object.setPrototypeOf?Object.setPrototypeOf(ve,me):ve.__proto__=me)}var ge=(function(ve){be(me,ve);function me(){return pe(this,me),fe(this,(me.__proto__||Object.getPrototypeOf(me)).apply(this,arguments))}return oe(me,null,[{key:"create",value:function(ye){return ye==="super"?document.createElement("sup"):ye==="sub"?document.createElement("sub"):de(me.__proto__||Object.getPrototypeOf(me),"create",this).call(this,ye)}},{key:"formats",value:function(ye){if(ye.tagName==="SUB")return"sub";if(ye.tagName==="SUP")return"super"}}]),me})(he.default);ge.blotName="script",ge.tagName=["SUB","SUP"],re.default=ge}),(function(X,re,ne){Object.defineProperty(re,"__esModule",{value:!0});var oe=ne(6),de=ce(oe);function ce(be){return be&&be.__esModule?be:{default:be}}function he(be,ge){if(!(be instanceof ge))throw new TypeError("Cannot call a class as a function")}function ue(be,ge){if(!be)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ge&&(typeof ge=="object"||typeof ge=="function")?ge:be}function pe(be,ge){if(typeof ge!="function"&&ge!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ge);be.prototype=Object.create(ge&&ge.prototype,{constructor:{value:be,enumerable:!1,writable:!0,configurable:!0}}),ge&&(Object.setPrototypeOf?Object.setPrototypeOf(be,ge):be.__proto__=ge)}var fe=(function(be){pe(ge,be);function ge(){return he(this,ge),ue(this,(ge.__proto__||Object.getPrototypeOf(ge)).apply(this,arguments))}return ge})(de.default);fe.blotName="strike",fe.tagName="S",re.default=fe}),(function(X,re,ne){Object.defineProperty(re,"__esModule",{value:!0});var oe=ne(6),de=ce(oe);function ce(be){return be&&be.__esModule?be:{default:be}}function he(be,ge){if(!(be instanceof ge))throw new TypeError("Cannot call a class as a function")}function ue(be,ge){if(!be)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ge&&(typeof ge=="object"||typeof ge=="function")?ge:be}function pe(be,ge){if(typeof ge!="function"&&ge!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ge);be.prototype=Object.create(ge&&ge.prototype,{constructor:{value:be,enumerable:!1,writable:!0,configurable:!0}}),ge&&(Object.setPrototypeOf?Object.setPrototypeOf(be,ge):be.__proto__=ge)}var fe=(function(be){pe(ge,be);function ge(){return he(this,ge),ue(this,(ge.__proto__||Object.getPrototypeOf(ge)).apply(this,arguments))}return ge})(de.default);fe.blotName="underline",fe.tagName="U",re.default=fe}),(function(X,re,ne){Object.defineProperty(re,"__esModule",{value:!0});var oe=(function(){function _e(ye,Ce){for(var Se=0;Se<Ce.length;Se++){var we=Ce[Se];we.enumerable=we.enumerable||!1,we.configurable=!0,"value"in we&&(we.writable=!0),Object.defineProperty(ye,we.key,we)}}return function(ye,Ce,Se){return Ce&&_e(ye.prototype,Ce),Se&&_e(ye,Se),ye}})(),de=function _e(ye,Ce,Se){ye===null&&(ye=Function.prototype);var we=Object.getOwnPropertyDescriptor(ye,Ce);if(we===void 0){var Ae=Object.getPrototypeOf(ye);return Ae===null?void 0:_e(Ae,Ce,Se)}else{if("value"in we)return we.value;var Le=we.get;return Le===void 0?void 0:Le.call(Se)}},ce=ne(0),he=pe(ce),ue=ne(27);function pe(_e){return _e&&_e.__esModule?_e:{default:_e}}function fe(_e,ye){if(!(_e instanceof ye))throw new TypeError("Cannot call a class as a function")}function be(_e,ye){if(!_e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ye&&(typeof ye=="object"||typeof ye=="function")?ye:_e}function ge(_e,ye){if(typeof ye!="function"&&ye!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ye);_e.prototype=Object.create(ye&&ye.prototype,{constructor:{value:_e,enumerable:!1,writable:!0,configurable:!0}}),ye&&(Object.setPrototypeOf?Object.setPrototypeOf(_e,ye):_e.__proto__=ye)}var ve=["alt","height","width"],me=(function(_e){ge(ye,_e);function ye(){return fe(this,ye),be(this,(ye.__proto__||Object.getPrototypeOf(ye)).apply(this,arguments))}return oe(ye,[{key:"format",value:function(Se,we){ve.indexOf(Se)>-1?we?this.domNode.setAttribute(Se,we):this.domNode.removeAttribute(Se):de(ye.prototype.__proto__||Object.getPrototypeOf(ye.prototype),"format",this).call(this,Se,we)}}],[{key:"create",value:function(Se){var we=de(ye.__proto__||Object.getPrototypeOf(ye),"create",this).call(this,Se);return typeof Se=="string"&&we.setAttribute("src",this.sanitize(Se)),we}},{key:"formats",value:function(Se){return ve.reduce(function(we,Ae){return Se.hasAttribute(Ae)&&(we[Ae]=Se.getAttribute(Ae)),we},{})}},{key:"match",value:function(Se){return/\.(jpe?g|gif|png)$/.test(Se)||/^data:image\/.+;base64/.test(Se)}},{key:"sanitize",value:function(Se){return(0,ue.sanitize)(Se,["http","https","data"])?Se:"//:0"}},{key:"value",value:function(Se){return Se.getAttribute("src")}}]),ye})(he.default.Embed);me.blotName="image",me.tagName="IMG",re.default=me}),(function(X,re,ne){Object.defineProperty(re,"__esModule",{value:!0});var oe=(function(){function _e(ye,Ce){for(var Se=0;Se<Ce.length;Se++){var we=Ce[Se];we.enumerable=we.enumerable||!1,we.configurable=!0,"value"in we&&(we.writable=!0),Object.defineProperty(ye,we.key,we)}}return function(ye,Ce,Se){return Ce&&_e(ye.prototype,Ce),Se&&_e(ye,Se),ye}})(),de=function _e(ye,Ce,Se){ye===null&&(ye=Function.prototype);var we=Object.getOwnPropertyDescriptor(ye,Ce);if(we===void 0){var Ae=Object.getPrototypeOf(ye);return Ae===null?void 0:_e(Ae,Ce,Se)}else{if("value"in we)return we.value;var Le=we.get;return Le===void 0?void 0:Le.call(Se)}},ce=ne(4),he=ne(27),ue=pe(he);function pe(_e){return _e&&_e.__esModule?_e:{default:_e}}function fe(_e,ye){if(!(_e instanceof ye))throw new TypeError("Cannot call a class as a function")}function be(_e,ye){if(!_e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ye&&(typeof ye=="object"||typeof ye=="function")?ye:_e}function ge(_e,ye){if(typeof ye!="function"&&ye!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ye);_e.prototype=Object.create(ye&&ye.prototype,{constructor:{value:_e,enumerable:!1,writable:!0,configurable:!0}}),ye&&(Object.setPrototypeOf?Object.setPrototypeOf(_e,ye):_e.__proto__=ye)}var ve=["height","width"],me=(function(_e){ge(ye,_e);function ye(){return fe(this,ye),be(this,(ye.__proto__||Object.getPrototypeOf(ye)).apply(this,arguments))}return oe(ye,[{key:"format",value:function(Se,we){ve.indexOf(Se)>-1?we?this.domNode.setAttribute(Se,we):this.domNode.removeAttribute(Se):de(ye.prototype.__proto__||Object.getPrototypeOf(ye.prototype),"format",this).call(this,Se,we)}}],[{key:"create",value:function(Se){var we=de(ye.__proto__||Object.getPrototypeOf(ye),"create",this).call(this,Se);return we.setAttribute("frameborder","0"),we.setAttribute("allowfullscreen",!0),we.setAttribute("src",this.sanitize(Se)),we}},{key:"formats",value:function(Se){return ve.reduce(function(we,Ae){return Se.hasAttribute(Ae)&&(we[Ae]=Se.getAttribute(Ae)),we},{})}},{key:"sanitize",value:function(Se){return ue.default.sanitize(Se)}},{key:"value",value:function(Se){return Se.getAttribute("src")}}]),ye})(ce.BlockEmbed);me.blotName="video",me.className="ql-video",me.tagName="IFRAME",re.default=me}),(function(X,re,ne){Object.defineProperty(re,"__esModule",{value:!0}),re.default=re.FormulaBlot=void 0;var oe=(function(){function Se(we,Ae){for(var Le=0;Le<Ae.length;Le++){var qe=Ae[Le];qe.enumerable=qe.enumerable||!1,qe.configurable=!0,"value"in qe&&(qe.writable=!0),Object.defineProperty(we,qe.key,qe)}}return function(we,Ae,Le){return Ae&&Se(we.prototype,Ae),Le&&Se(we,Le),we}})(),de=function Se(we,Ae,Le){we===null&&(we=Function.prototype);var qe=Object.getOwnPropertyDescriptor(we,Ae);if(qe===void 0){var Me=Object.getPrototypeOf(we);return Me===null?void 0:Se(Me,Ae,Le)}else{if("value"in qe)return qe.value;var Ne=qe.get;return Ne===void 0?void 0:Ne.call(Le)}},ce=ne(36),he=ge(ce),ue=ne(5),pe=ge(ue),fe=ne(9),be=ge(fe);function ge(Se){return Se&&Se.__esModule?Se:{default:Se}}function ve(Se,we){if(!(Se instanceof we))throw new TypeError("Cannot call a class as a function")}function me(Se,we){if(!Se)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return we&&(typeof we=="object"||typeof we=="function")?we:Se}function _e(Se,we){if(typeof we!="function"&&we!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof we);Se.prototype=Object.create(we&&we.prototype,{constructor:{value:Se,enumerable:!1,writable:!0,configurable:!0}}),we&&(Object.setPrototypeOf?Object.setPrototypeOf(Se,we):Se.__proto__=we)}var ye=(function(Se){_e(we,Se);function we(){return ve(this,we),me(this,(we.__proto__||Object.getPrototypeOf(we)).apply(this,arguments))}return oe(we,null,[{key:"create",value:function(Le){var qe=de(we.__proto__||Object.getPrototypeOf(we),"create",this).call(this,Le);return typeof Le=="string"&&(window.katex.render(Le,qe,{throwOnError:!1,errorColor:"#f00"}),qe.setAttribute("data-value",Le)),qe}},{key:"value",value:function(Le){return Le.getAttribute("data-value")}}]),we})(he.default);ye.blotName="formula",ye.className="ql-formula",ye.tagName="SPAN";var Ce=(function(Se){_e(we,Se),oe(we,null,[{key:"register",value:function(){pe.default.register(ye,!0)}}]);function we(){ve(this,we);var Ae=me(this,(we.__proto__||Object.getPrototypeOf(we)).call(this));if(window.katex==null)throw new Error("Formula module requires KaTeX.");return Ae}return we})(be.default);re.FormulaBlot=ye,re.default=Ce}),(function(X,re,ne){Object.defineProperty(re,"__esModule",{value:!0}),re.default=re.CodeToken=re.CodeBlock=void 0;var oe=(function(){function Le(qe,Me){for(var Ne=0;Ne<Me.length;Ne++){var ze=Me[Ne];ze.enumerable=ze.enumerable||!1,ze.configurable=!0,"value"in ze&&(ze.writable=!0),Object.defineProperty(qe,ze.key,ze)}}return function(qe,Me,Ne){return Me&&Le(qe.prototype,Me),Ne&&Le(qe,Ne),qe}})(),de=function Le(qe,Me,Ne){qe===null&&(qe=Function.prototype);var ze=Object.getOwnPropertyDescriptor(qe,Me);if(ze===void 0){var Oe=Object.getPrototypeOf(qe);return Oe===null?void 0:Le(Oe,Me,Ne)}else{if("value"in ze)return ze.value;var Pe=ze.get;return Pe===void 0?void 0:Pe.call(Ne)}},ce=ne(0),he=me(ce),ue=ne(5),pe=me(ue),fe=ne(9),be=me(fe),ge=ne(13),ve=me(ge);function me(Le){return Le&&Le.__esModule?Le:{default:Le}}function _e(Le,qe){if(!(Le instanceof qe))throw new TypeError("Cannot call a class as a function")}function ye(Le,qe){if(!Le)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return qe&&(typeof qe=="object"||typeof qe=="function")?qe:Le}function Ce(Le,qe){if(typeof qe!="function"&&qe!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof qe);Le.prototype=Object.create(qe&&qe.prototype,{constructor:{value:Le,enumerable:!1,writable:!0,configurable:!0}}),qe&&(Object.setPrototypeOf?Object.setPrototypeOf(Le,qe):Le.__proto__=qe)}var Se=(function(Le){Ce(qe,Le);function qe(){return _e(this,qe),ye(this,(qe.__proto__||Object.getPrototypeOf(qe)).apply(this,arguments))}return oe(qe,[{key:"replaceWith",value:function(Ne){this.domNode.textContent=this.domNode.textContent,this.attach(),de(qe.prototype.__proto__||Object.getPrototypeOf(qe.prototype),"replaceWith",this).call(this,Ne)}},{key:"highlight",value:function(Ne){var ze=this.domNode.textContent;this.cachedText!==ze&&((ze.trim().length>0||this.cachedText==null)&&(this.domNode.innerHTML=Ne(ze),this.domNode.normalize(),this.attach()),this.cachedText=ze)}}]),qe})(ve.default);Se.className="ql-syntax";var we=new he.default.Attributor.Class("token","hljs",{scope:he.default.Scope.INLINE}),Ae=(function(Le){Ce(qe,Le),oe(qe,null,[{key:"register",value:function(){pe.default.register(we,!0),pe.default.register(Se,!0)}}]);function qe(Me,Ne){_e(this,qe);var ze=ye(this,(qe.__proto__||Object.getPrototypeOf(qe)).call(this,Me,Ne));if(typeof ze.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var Oe=null;return ze.quill.on(pe.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(Oe),Oe=setTimeout(function(){ze.highlight(),Oe=null},ze.options.interval)}),ze.highlight(),ze}return oe(qe,[{key:"highlight",value:function(){var Ne=this;if(!this.quill.selection.composing){this.quill.update(pe.default.sources.USER);var ze=this.quill.getSelection();this.quill.scroll.descendants(Se).forEach(function(Oe){Oe.highlight(Ne.options.highlight)}),this.quill.update(pe.default.sources.SILENT),ze!=null&&this.quill.setSelection(ze,pe.default.sources.SILENT)}}}]),qe})(be.default);Ae.DEFAULTS={highlight:(function(){return window.hljs==null?null:function(Le){var qe=window.hljs.highlightAuto(Le);return qe.value}})(),interval:1e3},re.CodeBlock=Se,re.CodeToken=we,re.default=Ae}),(function(X,re){X.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'}),(function(X,re){X.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'}),(function(X,re){X.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'}),(function(X,re){X.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'}),(function(X,re){X.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'}),(function(X,re){X.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'}),(function(X,re){X.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'}),(function(X,re){X.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'}),(function(X,re){X.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'}),(function(X,re){X.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'}),(function(X,re){X.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'}),(function(X,re){X.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'}),(function(X,re){X.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'}),(function(X,re){X.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'}),(function(X,re){X.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'}),(function(X,re){X.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'}),(function(X,re){X.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'}),(function(X,re){X.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'}),(function(X,re){X.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'}),(function(X,re){X.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'}),(function(X,re){X.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'}),(function(X,re){X.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'}),(function(X,re){X.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'}),(function(X,re){X.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'}),(function(X,re){X.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'}),(function(X,re){X.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'}),(function(X,re){X.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'}),(function(X,re){X.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'}),(function(X,re){X.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'}),(function(X,re){X.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'}),(function(X,re){X.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'}),(function(X,re){X.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'}),(function(X,re,ne){Object.defineProperty(re,"__esModule",{value:!0}),re.default=re.BubbleTooltip=void 0;var oe=function qe(Me,Ne,ze){Me===null&&(Me=Function.prototype);var Oe=Object.getOwnPropertyDescriptor(Me,Ne);if(Oe===void 0){var Pe=Object.getPrototypeOf(Me);return Pe===null?void 0:qe(Pe,Ne,ze)}else{if("value"in Oe)return Oe.value;var Ie=Oe.get;return Ie===void 0?void 0:Ie.call(ze)}},de=(function(){function qe(Me,Ne){for(var ze=0;ze<Ne.length;ze++){var Oe=Ne[ze];Oe.enumerable=Oe.enumerable||!1,Oe.configurable=!0,"value"in Oe&&(Oe.writable=!0),Object.defineProperty(Me,Oe.key,Oe)}}return function(Me,Ne,ze){return Ne&&qe(Me.prototype,Ne),ze&&qe(Me,ze),Me}})(),ce=ne(3),he=_e(ce),ue=ne(8),pe=_e(ue),fe=ne(44),be=_e(fe),ge=ne(15),ve=ne(42),me=_e(ve);function _e(qe){return qe&&qe.__esModule?qe:{default:qe}}function ye(qe,Me){if(!(qe instanceof Me))throw new TypeError("Cannot call a class as a function")}function Ce(qe,Me){if(!qe)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Me&&(typeof Me=="object"||typeof Me=="function")?Me:qe}function Se(qe,Me){if(typeof Me!="function"&&Me!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Me);qe.prototype=Object.create(Me&&Me.prototype,{constructor:{value:qe,enumerable:!1,writable:!0,configurable:!0}}),Me&&(Object.setPrototypeOf?Object.setPrototypeOf(qe,Me):qe.__proto__=Me)}var we=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],Ae=(function(qe){Se(Me,qe);function Me(Ne,ze){ye(this,Me),ze.modules.toolbar!=null&&ze.modules.toolbar.container==null&&(ze.modules.toolbar.container=we);var Oe=Ce(this,(Me.__proto__||Object.getPrototypeOf(Me)).call(this,Ne,ze));return Oe.quill.container.classList.add("ql-bubble"),Oe}return de(Me,[{key:"extendToolbar",value:function(ze){this.tooltip=new Le(this.quill,this.options.bounds),this.tooltip.root.appendChild(ze.container),this.buildButtons([].slice.call(ze.container.querySelectorAll("button")),me.default),this.buildPickers([].slice.call(ze.container.querySelectorAll("select")),me.default)}}]),Me})(be.default);Ae.DEFAULTS=(0,he.default)(!0,{},be.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(Me){Me?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var Le=(function(qe){Se(Me,qe);function Me(Ne,ze){ye(this,Me);var Oe=Ce(this,(Me.__proto__||Object.getPrototypeOf(Me)).call(this,Ne,ze));return Oe.quill.on(pe.default.events.EDITOR_CHANGE,function(Pe,Ie,Be,We){if(Pe===pe.default.events.SELECTION_CHANGE)if(Ie!=null&&Ie.length>0&&We===pe.default.sources.USER){Oe.show(),Oe.root.style.left="0px",Oe.root.style.width="",Oe.root.style.width=Oe.root.offsetWidth+"px";var Ye=Oe.quill.getLines(Ie.index,Ie.length);if(Ye.length===1)Oe.position(Oe.quill.getBounds(Ie));else{var Ke=Ye[Ye.length-1],mt=Oe.quill.getIndex(Ke),Je=Math.min(Ke.length()-1,Ie.index+Ie.length-mt),Ze=Oe.quill.getBounds(new ge.Range(mt,Je));Oe.position(Ze)}}else document.activeElement!==Oe.textbox&&Oe.quill.hasFocus()&&Oe.hide()}),Oe}return de(Me,[{key:"listen",value:function(){var ze=this;oe(Me.prototype.__proto__||Object.getPrototypeOf(Me.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){ze.root.classList.remove("ql-editing")}),this.quill.on(pe.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!ze.root.classList.contains("ql-hidden")){var Oe=ze.quill.getSelection();Oe!=null&&ze.position(ze.quill.getBounds(Oe))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(ze){var Oe=oe(Me.prototype.__proto__||Object.getPrototypeOf(Me.prototype),"position",this).call(this,ze),Pe=this.root.querySelector(".ql-tooltip-arrow");if(Pe.style.marginLeft="",Oe===0)return Oe;Pe.style.marginLeft=-1*Oe-Pe.offsetWidth/2+"px"}}]),Me})(fe.BaseTooltip);Le.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),re.BubbleTooltip=Le,re.default=Ae}),(function(X,re,ne){X.exports=ne(64)})]).default})})(quill$1)),quill$1.exports}var quillExports=requireQuill();const Quill=getDefaultExportFromCjs(quillExports),styles$2=':host{height:100%}.container{width:100%;height:100%;display:flex;flex-direction:column;flex:1}.ql-container{box-sizing:border-box;font-family:Helvetica,Arial,sans-serif;font-size:13px;height:100%;margin:0;position:relative;color:#000;overflow-y:auto}.ql-container.ql-disabled .ql-tooltip{visibility:hidden}.ql-container.ql-disabled .ql-editor ul[data-checked]>li:before{pointer-events:none}.ql-clipboard{left:-100000px;height:1px;overflow-y:hidden;position:absolute;top:50%}.ql-clipboard p{margin:0;padding:0}.ql-editor{box-sizing:border-box;line-height:1.42;height:100%;outline:none;overflow-y:auto;padding:12px 15px;tab-size:4;-moz-tab-size:4;text-align:left;white-space:pre-wrap;word-wrap:break-word;font-size:1rem}.ql-editor>*{cursor:text}.ql-editor p,.ql-editor ol,.ql-editor ul,.ql-editor pre,.ql-editor blockquote,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6{margin:0;padding:0}.ql-editor ol,.ql-editor ul{padding-left:1.5em}.ql-editor ol>li{list-style-type:none}.ql-editor ul>li{list-style-type:disc}.ql-editor ul[data-checked=true],.ql-editor ul[data-checked=false]{pointer-events:none}.ql-editor ul[data-checked=true]>li *,.ql-editor ul[data-checked=false]>li *{pointer-events:all}.ql-editor ul[data-checked=true]>li:before,.ql-editor ul[data-checked=false]>li:before{color:#777;cursor:pointer;pointer-events:all}.ql-editor li:before{display:inline-block;white-space:nowrap;width:1.2em}.ql-editor li:not(.ql-direction-rtl):before{margin-left:-1.5em;margin-right:.3em;text-align:right}.ql-editor li.ql-direction-rtl:before{margin-left:.3em;margin-right:-1.5em}.ql-editor ol li:not(.ql-direction-rtl),.ql-editor ul li:not(.ql-direction-rtl){padding-left:1.5em}.ql-editor ol li.ql-direction-rtl,.ql-editor ul li.ql-direction-rtl{padding-right:1.5em}.ql-editor ol li{counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;counter-increment:list-0}.ql-editor ol li:before{content:counter(list-0,decimal) ". "}.ql-editor ol li.ql-indent-1{counter-increment:list-1;counter-reset:list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-1:before{content:counter(list-1,lower-alpha) ". "}.ql-editor ol li.ql-indent-2{counter-increment:list-2;counter-reset:list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-2:before{content:counter(list-2,lower-roman) ". "}.ql-editor ol li.ql-indent-3{counter-increment:list-3;counter-reset:list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-3:before{content:counter(list-3,decimal) ". "}.ql-editor ol li.ql-indent-4{counter-increment:list-4;counter-reset:list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-4:before{content:counter(list-4,lower-alpha) ". "}.ql-editor ol li.ql-indent-5{counter-increment:list-5;counter-reset:list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-5:before{content:counter(list-5,lower-roman) ". "}.ql-editor ol li.ql-indent-6{counter-increment:list-6;counter-reset:list-7 list-8 list-9}.ql-editor ol li.ql-indent-6:before{content:counter(list-6,decimal) ". "}.ql-editor ol li.ql-indent-7{counter-increment:list-7;counter-reset:list-8 list-9}.ql-editor ol li.ql-indent-7:before{content:counter(list-7,lower-alpha) ". "}.ql-editor ol li.ql-indent-8{counter-increment:list-8;counter-reset:list-9}.ql-editor ol li.ql-indent-8:before{content:counter(list-8,lower-roman) ". "}.ql-editor ol li.ql-indent-9{counter-increment:list-9}.ql-editor ol li.ql-indent-9:before{content:counter(list-9,decimal) ". "}.ql-editor .ql-indent-1:not(.ql-direction-rtl){padding-left:3em}.ql-editor li.ql-indent-1:not(.ql-direction-rtl){padding-left:4.5em}.ql-editor .ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:3em}.ql-editor li.ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:4.5em}.ql-editor .ql-indent-2:not(.ql-direction-rtl){padding-left:6em}.ql-editor li.ql-indent-2:not(.ql-direction-rtl){padding-left:7.5em}.ql-editor .ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:6em}.ql-editor li.ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:7.5em}.ql-editor .ql-indent-3:not(.ql-direction-rtl){padding-left:9em}.ql-editor li.ql-indent-3:not(.ql-direction-rtl){padding-left:10.5em}.ql-editor .ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:9em}.ql-editor li.ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:10.5em}.ql-editor .ql-indent-4:not(.ql-direction-rtl){padding-left:12em}.ql-editor li.ql-indent-4:not(.ql-direction-rtl){padding-left:13.5em}.ql-editor .ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:12em}.ql-editor li.ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:13.5em}.ql-editor .ql-indent-5:not(.ql-direction-rtl){padding-left:15em}.ql-editor li.ql-indent-5:not(.ql-direction-rtl){padding-left:16.5em}.ql-editor .ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:15em}.ql-editor li.ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:16.5em}.ql-editor .ql-indent-6:not(.ql-direction-rtl){padding-left:18em}.ql-editor li.ql-indent-6:not(.ql-direction-rtl){padding-left:19.5em}.ql-editor .ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:18em}.ql-editor li.ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:19.5em}.ql-editor .ql-indent-7:not(.ql-direction-rtl){padding-left:21em}.ql-editor li.ql-indent-7:not(.ql-direction-rtl){padding-left:22.5em}.ql-editor .ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:21em}.ql-editor li.ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:22.5em}.ql-editor .ql-indent-8:not(.ql-direction-rtl){padding-left:24em}.ql-editor li.ql-indent-8:not(.ql-direction-rtl){padding-left:25.5em}.ql-editor .ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:24em}.ql-editor li.ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:25.5em}.ql-editor .ql-indent-9:not(.ql-direction-rtl){padding-left:27em}.ql-editor li.ql-indent-9:not(.ql-direction-rtl){padding-left:28.5em}.ql-editor .ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:27em}.ql-editor li.ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:28.5em}.ql-editor .ql-video{display:block;max-width:100%}.ql-editor .ql-video.ql-align-center{margin:0 auto}.ql-editor .ql-video.ql-align-right{margin:0 0 0 auto}.ql-editor .ql-bg-black{background-color:#000}.ql-editor .ql-bg-red{background-color:#e60000}.ql-editor .ql-bg-orange{background-color:#f90}.ql-editor .ql-bg-yellow{background-color:#ff0}.ql-editor .ql-bg-green{background-color:#008a00}.ql-editor .ql-bg-blue{background-color:#06c}.ql-editor .ql-bg-purple{background-color:#93f}.ql-editor .ql-color-white{color:#fff}.ql-editor .ql-color-red{color:#e60000}.ql-editor .ql-color-orange{color:#f90}.ql-editor .ql-color-yellow{color:#ff0}.ql-editor .ql-color-green{color:#008a00}.ql-editor .ql-color-blue{color:#06c}.ql-editor .ql-color-purple{color:#93f}.ql-editor .ql-font-serif{font-family:Georgia,Times New Roman,serif}.ql-editor .ql-font-monospace{font-family:Monaco,Courier New,monospace}.ql-editor .ql-size-small{font-size:.75em}.ql-editor .ql-size-large{font-size:1.5em}.ql-editor .ql-size-huge{font-size:2.5em}.ql-editor .ql-direction-rtl{direction:rtl;text-align:inherit}.ql-editor .ql-align-center{text-align:center}.ql-editor .ql-align-justify{text-align:justify}.ql-editor .ql-align-right{text-align:right}.ql-editor.ql-blank:before{color:#0009;content:attr(data-placeholder);font-style:italic;left:15px;pointer-events:none;position:absolute;right:15px}.ql-snow.ql-toolbar:after,.ql-snow .ql-toolbar:after{clear:both;content:"";display:table}.ql-snow.ql-toolbar button,.ql-snow .ql-toolbar button{background:none;border:none;cursor:pointer;display:inline-block;float:left;height:24px;padding:3px 5px;width:28px}.ql-snow.ql-toolbar button svg,.ql-snow .ql-toolbar button svg{float:left;height:100%}.ql-snow.ql-toolbar button:active:hover,.ql-snow .ql-toolbar button:active:hover{outline:none}.ql-snow.ql-toolbar input.ql-image[type=file],.ql-snow .ql-toolbar input.ql-image[type=file]{display:none}.ql-snow.ql-toolbar button:hover,.ql-snow .ql-toolbar button:hover,.ql-snow.ql-toolbar button:focus,.ql-snow .ql-toolbar button:focus,.ql-snow.ql-toolbar button.ql-active,.ql-snow .ql-toolbar button.ql-active,.ql-snow.ql-toolbar .ql-picker-label:hover,.ql-snow .ql-toolbar .ql-picker-label:hover,.ql-snow.ql-toolbar .ql-picker-label.ql-active,.ql-snow .ql-toolbar .ql-picker-label.ql-active,.ql-snow.ql-toolbar .ql-picker-item:hover,.ql-snow .ql-toolbar .ql-picker-item:hover,.ql-snow.ql-toolbar .ql-picker-item.ql-selected,.ql-snow .ql-toolbar .ql-picker-item.ql-selected{color:#06c}.ql-snow.ql-toolbar button:hover .ql-fill,.ql-snow .ql-toolbar button:hover .ql-fill,.ql-snow.ql-toolbar button:focus .ql-fill,.ql-snow .ql-toolbar button:focus .ql-fill,.ql-snow.ql-toolbar button.ql-active .ql-fill,.ql-snow .ql-toolbar button.ql-active .ql-fill,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-fill,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-fill,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-fill,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-snow.ql-toolbar button:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar button:focus .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:focus .ql-stroke.ql-fill,.ql-snow.ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-snow .ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill{fill:#06c}.ql-snow.ql-toolbar button:hover .ql-stroke,.ql-snow .ql-toolbar button:hover .ql-stroke,.ql-snow.ql-toolbar button:focus .ql-stroke,.ql-snow .ql-toolbar button:focus .ql-stroke,.ql-snow.ql-toolbar button.ql-active .ql-stroke,.ql-snow .ql-toolbar button.ql-active .ql-stroke,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-snow.ql-toolbar button:hover .ql-stroke-miter,.ql-snow .ql-toolbar button:hover .ql-stroke-miter,.ql-snow.ql-toolbar button:focus .ql-stroke-miter,.ql-snow .ql-toolbar button:focus .ql-stroke-miter,.ql-snow.ql-toolbar button.ql-active .ql-stroke-miter,.ql-snow .ql-toolbar button.ql-active .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter{stroke:#06c}@media (pointer: coarse){.ql-snow.ql-toolbar button:hover:not(.ql-active),.ql-snow .ql-toolbar button:hover:not(.ql-active){color:#444}.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill{fill:#444}.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter{stroke:#444}}.ql-snow,.ql-snow *{box-sizing:border-box}.ql-snow .ql-hidden{display:none}.ql-snow .ql-out-bottom,.ql-snow .ql-out-top{visibility:hidden}.ql-snow .ql-tooltip{position:absolute;transform:translateY(10px);background-color:#fff;border:1px solid #ccc;box-shadow:0 0 5px #ddd;color:#444;padding:5px 12px;white-space:nowrap}.ql-snow .ql-tooltip a{cursor:pointer;text-decoration:none;line-height:26px}.ql-snow .ql-tooltip.ql-flip{transform:translateY(-10px)}.ql-snow .ql-formats{display:inline-block;vertical-align:middle}.ql-snow .ql-formats:after{clear:both;content:"";display:table}.ql-snow .ql-stroke{fill:none;stroke:#444;stroke-linecap:round;stroke-linejoin:round;stroke-width:2}.ql-snow .ql-stroke-miter{fill:none;stroke:#444;stroke-miterlimit:10;stroke-width:2}.ql-snow .ql-fill,.ql-snow .ql-stroke.ql-fill{fill:#444}.ql-snow .ql-empty{fill:none}.ql-snow .ql-even{fill-rule:evenodd}.ql-snow .ql-thin,.ql-snow .ql-stroke.ql-thin{stroke-width:1}.ql-snow .ql-transparent{opacity:.4}.ql-snow .ql-direction svg:last-child{display:none}.ql-snow .ql-direction.ql-active svg:last-child{display:inline}.ql-snow .ql-direction.ql-active svg:first-child{display:none}.ql-snow .ql-editor h1{font-size:2em}.ql-snow .ql-editor h2{font-size:1.5em}.ql-snow .ql-editor h3{font-size:1.17em}.ql-snow .ql-editor h4{font-size:1em}.ql-snow .ql-editor h5{font-size:.83em}.ql-snow .ql-editor h6{font-size:.67em}.ql-snow .ql-editor a{text-decoration:underline}.ql-snow .ql-editor blockquote{border-left:4px solid #ccc;margin-bottom:5px;margin-top:5px;padding-left:16px}.ql-snow .ql-editor code,.ql-snow .ql-editor pre{background-color:#f0f0f0;border-radius:3px}.ql-snow .ql-editor pre{white-space:pre-wrap;margin-bottom:5px;margin-top:5px;padding:5px 10px}.ql-snow .ql-editor code{font-size:85%;padding:2px 4px}.ql-snow .ql-editor pre.ql-syntax{background-color:#23241f;color:#f8f8f2;overflow:visible}.ql-snow .ql-editor img{max-width:100%}.ql-snow .ql-picker{color:#444;display:inline-block;float:left;font-size:14px;font-weight:500;height:24px;position:relative;vertical-align:middle}.ql-snow .ql-picker-label{cursor:pointer;display:inline-block;height:100%;padding-left:8px;padding-right:2px;position:relative;width:100%}.ql-snow .ql-picker-label:before{display:inline-block;line-height:22px}.ql-snow .ql-picker-options{background-color:#fff;display:none;min-width:100%;padding:4px 8px;position:absolute;white-space:nowrap}.ql-snow .ql-picker-options .ql-picker-item{cursor:pointer;display:block;padding-bottom:5px;padding-top:5px}.ql-snow .ql-picker.ql-expanded .ql-picker-label{color:#ccc;z-index:2}.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-fill{fill:#ccc}.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-stroke{stroke:#ccc}.ql-snow .ql-picker.ql-expanded .ql-picker-options{display:block;margin-top:-1px;top:100%;z-index:1}.ql-snow .ql-color-picker,.ql-snow .ql-icon-picker{width:28px}.ql-snow .ql-color-picker .ql-picker-label,.ql-snow .ql-icon-picker .ql-picker-label{padding:2px 4px}.ql-snow .ql-color-picker .ql-picker-label svg,.ql-snow .ql-icon-picker .ql-picker-label svg{right:4px}.ql-snow .ql-icon-picker .ql-picker-options{padding:4px 0}.ql-snow .ql-icon-picker .ql-picker-item{height:24px;width:24px;padding:2px 4px}.ql-snow .ql-color-picker .ql-picker-options{padding:3px 5px;width:152px}.ql-snow .ql-color-picker .ql-picker-item{border:1px solid transparent;float:left;height:16px;margin:2px;padding:0;width:16px}.ql-snow .ql-picker:not(.ql-color-picker):not(.ql-icon-picker) svg{position:absolute;margin-top:-9px;right:0;top:50%;width:18px}.ql-snow .ql-picker.ql-header .ql-picker-label[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-font .ql-picker-label[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-font .ql-picker-item[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-label]:not([data-label=""]):before{content:attr(data-label)}.ql-snow .ql-picker.ql-header{width:98px}.ql-snow .ql-picker.ql-header .ql-picker-label:before,.ql-snow .ql-picker.ql-header .ql-picker-item:before{content:"Normal"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="1"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]:before{content:"Heading 1"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="2"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]:before{content:"Heading 2"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="3"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]:before{content:"Heading 3"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="4"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]:before{content:"Heading 4"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="5"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]:before{content:"Heading 5"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="6"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="6"]:before{content:"Heading 6"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]:before{font-size:2em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]:before{font-size:1.5em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]:before{font-size:1.17em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]:before{font-size:1em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]:before{font-size:.83em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="6"]:before{font-size:.67em}.ql-snow .ql-picker.ql-font{width:108px}.ql-snow .ql-picker.ql-font .ql-picker-label:before,.ql-snow .ql-picker.ql-font .ql-picker-item:before{content:"Sans Serif"}.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=serif]:before,.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]:before{content:"Serif"}.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=monospace]:before,.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]:before{content:"Monospace"}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]:before{font-family:Georgia,Times New Roman,serif}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]:before{font-family:Monaco,Courier New,monospace}.ql-snow .ql-picker.ql-size{width:98px}.ql-snow .ql-picker.ql-size .ql-picker-label:before,.ql-snow .ql-picker.ql-size .ql-picker-item:before{content:"Normal"}.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=small]:before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]:before{content:"Petita"}.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=large]:before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]:before{content:"Gran"}.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=huge]:before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]:before{content:"Enorme"}button.ql-indent{display:none!important}.ql-undo{font-size:14pt;font-weight:900;display:flex!important;align-items:center}.ql-undo:after{content:"↺";transform:rotate(-135deg)}.ql-redo{font-size:14pt;font-weight:900;display:flex!important;align-items:center}.ql-redo:after{content:"↻";transform:rotate(135deg)}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]:before{font-size:10px}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]:before{font-size:18px}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]:before{font-size:32px}.ql-snow .ql-color-picker.ql-background .ql-picker-item{background-color:#fff}.ql-snow .ql-color-picker.ql-color .ql-picker-item{background-color:#000}.ql-toolbar.ql-snow{border-bottom:1px solid #ccc;box-sizing:border-box;font-family:Helvetica Neue,Helvetica,Arial,sans-serif;padding:8px}.ql-toolbar.ql-snow .ql-formats{margin-right:15px}.ql-toolbar.ql-snow .ql-picker-label{border:1px solid transparent}.ql-toolbar.ql-snow .ql-picker-options{border:1px solid transparent;box-shadow:#0003 0 2px 8px}.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label,.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options{border-color:#ccc}.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item.ql-selected,.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item:hover{border-color:#000}.ql-toolbar.ql-snow+.ql-container.ql-snow{border-top:0px}.ql-snow .ql-tooltip:before{content:"Visit URL:";line-height:26px;margin-right:8px}.ql-snow .ql-tooltip input[type=text]{display:none;border:1px solid #ccc;font-size:13px;height:26px;margin:0;padding:3px 5px;width:170px}.ql-snow .ql-tooltip a.ql-preview{display:inline-block;max-width:200px;overflow-x:hidden;text-overflow:ellipsis;vertical-align:top}.ql-snow .ql-tooltip a.ql-action:after{border-right:1px solid #ccc;content:"Edit";margin-left:16px;padding-right:8px}.ql-snow .ql-tooltip a.ql-remove:before{content:"Remove";margin-left:8px}.ql-snow .ql-tooltip.ql-editing a.ql-preview,.ql-snow .ql-tooltip.ql-editing a.ql-remove{display:none}.ql-snow .ql-tooltip.ql-editing input[type=text]{display:inline-block}.ql-snow .ql-tooltip.ql-editing a.ql-action:after{border-right:0px;content:"Save";padding-right:0}.ql-snow .ql-tooltip[data-mode=link]:before{content:"Enter link:"}.ql-snow .ql-tooltip[data-mode=formula]:before{content:"Enter formula:"}.ql-snow .ql-tooltip[data-mode=video]:before{content:"Enter video:"}.ql-snow a{color:#06c}',template$2=te=>ke$1`
|
|
6907
6909
|
<div class="container">
|
|
6908
6910
|
<div id="rte">
|
|
6909
6911
|
</div>
|
|
6910
6912
|
</div>
|
|
6911
|
-
`,fixSpellCheckerIssue=te=>{const J=te.import("blots/inline");class X extends J{constructor(ne,oe){super(ne,oe);const de=this.replaceWith(new J(J.create()));return de.children.forEach(ce=>{ce.attributes&&ce.attributes.copy(de),ce.unwrap&&ce.unwrap()}),Object.keys(ne.attributes).forEach(function(ce){if(ne.attributes[ce].name!="style"){const he=ne.attributes[ce].value;let ue=ne.attributes[ce].name;ue=="face"&&(ue="font-family"),de.format(ue,he)}}),this.remove(),de}}X.blotName="customAttributes",X.tagName="FONT",te.register(X,!0)};var __defProp$
|
|
6912
|
-
${r$G(styles$
|
|
6913
|
-
`;let PrimariaRichTextEditor=Ws;__decorateClass$
|
|
6913
|
+
`,fixSpellCheckerIssue=te=>{const J=te.import("blots/inline");class X extends J{constructor(ne,oe){super(ne,oe);const de=this.replaceWith(new J(J.create()));return de.children.forEach(ce=>{ce.attributes&&ce.attributes.copy(de),ce.unwrap&&ce.unwrap()}),Object.keys(ne.attributes).forEach(function(ce){if(ne.attributes[ce].name!="style"){const he=ne.attributes[ce].value;let ue=ne.attributes[ce].name;ue=="face"&&(ue="font-family"),de.format(ue,he)}}),this.remove(),de}}X.blotName="customAttributes",X.tagName="FONT",te.register(X,!0)};var __defProp$3=Object.defineProperty,__decorateClass$3=(te,J,X,re)=>{for(var ne=void 0,oe=te.length-1,de;oe>=0;oe--)(de=te[oe])&&(ne=de(J,X,ne)||ne);return ne&&__defProp$3(J,X,ne),ne};fixSpellCheckerIssue(Quill);const Ws=class Ws extends h$n{constructor(){super(...arguments),this.textChangeTimeout=null,this.availableOptions=["bold","italic","underline","strike","blockquote","code-block","image","video","link","color","background","ol","ul","subindex","superindex","size","header","font","align","undo","redo"],this.availableFormats=["background","bold","color","font","code","italic","link","size","strike","script","underline","blockquote","header","list","align","direction","code-block","formula","image","video"]}render(){return ke$1` ${template$2()} `}firstUpdated(){this.quill=new Quill(this.shadowRoot?.querySelector("#rte"),this._getOptions()),this.quill.on("text-change",()=>this._debouncedEmitTextChangeEvent()),this.quill.root.addEventListener("paste",()=>{this._debouncedEmitTextChangeEvent()}),this.quill.on("selection-change",(J,X,re)=>{J&&(this.range=J)})}_debouncedEmitTextChangeEvent(){this.textChangeTimeout&&clearTimeout(this.textChangeTimeout),this.textChangeTimeout=window.setTimeout(()=>{this._emitTextChangeEvent()},200)}_emitTextChangeEvent(){const J=this.quill.getText(),X={html:this.shadowRoot?.querySelector(".ql-editor")?.innerHTML,plain:J},re=new CustomEvent("text-changed",{composed:!0,detail:X});this.dispatchEvent(re),this.range=this.getCursorPosition()}_getOptions(){let J=[];const X=this.availableOptions;this.options===void 0||this.options.length===0?J=[["bold","italic","underline","strike"],["blockquote","code-block"],[{header:1},{header:2}],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{direction:"rtl"}],[{size:["small",!1,"large","huge","20px"]}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{font:[]}],[{align:[]}],["image"],["video"]]:(J=this.options.split(","),J.forEach(ne=>{X.indexOf(ne)<=-1&&J.splice(J.indexOf(ne),1)}),J=J.map(function(ne){return ne=="color"?{color:[]}:ne=="ol"?{list:"ordered"}:ne=="ul"?{list:"bullet"}:ne=="subindex"?{script:"sub"}:ne=="superindex"?{script:"super"}:ne=="size"?{size:["small",!1,"large","huge"]}:ne=="header"?{header:[1,2,3,4,5,6,!1]}:ne=="background"?{background:[]}:ne=="font"?{font:[]}:ne=="align"?{align:[]}:ne}));let re=this.availableFormats;return this.formats&&(re=this.formats.split(",")),{modules:{toolbar:{container:J,handlers:{redo(){this.quill.history.redo()},undo(){this.quill.history.undo()}}},history:{delay:1e3,maxStack:50,userOnly:!1},keyboard:{bindings:{indent:{key:"Tab",format:["blockquote","indent","list"],handler(ne,oe){return oe.collapsed&&oe.offset!==0||oe.format?.list==="ordered"?!0:(this.quill.format("indent","+1",Quill.sources.USER),!1)}},"list autofill":{key:" ",shiftKey:null,collapsed:!0,format:{"code-block":!1,blockquote:!1,table:!1},prefix:/^\s*?(\d+\.|-|\*)$/,handler(ne,oe){if(this.quill.scroll.query("list")==null)return!0;const{length:de}=oe.prefix;return this.quill.getLine(ne.index)[1]>de?!0:(this.quill.insertText(ne.index," ",Quill.sources.USER),this.quill.setSelection(ne.index-de,Quill.sources.SILENT),!1)}}}}},theme:"snow",formats:re}}getCursorPosition(){return this.quill.getSelection()}};Ws.styles=i$w`
|
|
6914
|
+
${r$G(styles$2)}
|
|
6915
|
+
`;let PrimariaRichTextEditor=Ws;__decorateClass$3([n$z()],PrimariaRichTextEditor.prototype,"quill"),__decorateClass$3([n$z()],PrimariaRichTextEditor.prototype,"options"),__decorateClass$3([n$z({type:Object})],PrimariaRichTextEditor.prototype,"range"),__decorateClass$3([n$z({type:Array})],PrimariaRichTextEditor.prototype,"availableOptions"),__decorateClass$3([n$z({type:Array})],PrimariaRichTextEditor.prototype,"availableFormats"),__decorateClass$3([n$z()],PrimariaRichTextEditor.prototype,"formats");const styles$1=":host{margin:0 auto}.limit-alert{padding-top:8px;padding-bottom:8px}";var __defProp$2=Object.defineProperty,__decorateClass$2=(te,J,X,re)=>{for(var ne=void 0,oe=te.length-1,de;oe>=0;oe--)(de=te[oe])&&(ne=de(J,X,ne)||ne);return ne&&__defProp$2(J,X,ne),ne};const Zs=class Zs extends h$n{constructor(){super(...arguments),this.characterCount=0,this.characterLimit=0,this.label=""}render(){return this.characterCount>this.characterLimit?ke$1`
|
|
6914
6916
|
<dss-alert
|
|
6915
6917
|
class="limit-alert"
|
|
6916
6918
|
state="warning"
|
|
@@ -6918,9 +6920,24 @@ ${te.searchString?.length>1?ke$1`
|
|
|
6918
6920
|
message="${this.label} ${this.characterCount}/${this.characterLimit}"
|
|
6919
6921
|
></dss-alert>
|
|
6920
6922
|
`:D$2}};Zs.styles=i$w`
|
|
6921
|
-
${r$G(styles)}
|
|
6922
|
-
`;let PrimariaCharacterLimitBadge=Zs;__decorateClass$
|
|
6923
|
+
${r$G(styles$1)}
|
|
6924
|
+
`;let PrimariaCharacterLimitBadge=Zs;__decorateClass$2([n$z({type:Number})],PrimariaCharacterLimitBadge.prototype,"characterCount"),__decorateClass$2([n$z({type:Number})],PrimariaCharacterLimitBadge.prototype,"characterLimit"),__decorateClass$2([n$z({type:String})],PrimariaCharacterLimitBadge.prototype,"label");const useSharedUI=()=>{t$l("primaria-content-switcher")(PrimariaContentSwitcher),t$l("primaria-nav-item")(PrimariaNavItem),t$l("primaria-rich-text-editor")(PrimariaRichTextEditor),t$l("primaria-nav-tree-menu")(PrimariaNavTreeMenu),t$l("primaria-character-limit-badge")(PrimariaCharacterLimitBadge)},getPatientCip=async te=>await te.broker.send("get_patient_cip"),navigateToEcapWithoutClosingWithCip=async te=>{const J=await getPatientCip(shellApi);shellApi.ecapEventManager.publish(te,"NO_TANCAR",{CIP:J})},template$1=te=>ke$1`
|
|
6923
6925
|
<dss-action-menu-item @click=${te.callbackFn} notificationsstate="error" rightIcon=${te.icon} label=${te.label}></dss-action-menu-item>
|
|
6924
|
-
`;var __defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__decorateClass=(te,J,X,re)=>{for(var ne=re>1?void 0:re?__getOwnPropDesc(J,X):J,oe=te.length-1,de;oe>=0;oe--)(de=te[oe])&&(ne=(re?de(J,X,ne):de(ne))||ne);return re&&ne&&__defProp(J,X,ne),ne};let QuickActionItem=class extends h$n{constructor(te,J,X){super(),this.icon="",this.label="",this.callbackFn=()=>{},this.icon=te,this.label=J,this.callbackFn=X}render(){return ke$1`${template(this)}`}};__decorateClass([n$z({type:String})],QuickActionItem.prototype,"icon",2),__decorateClass([n$z({type:String})],QuickActionItem.prototype,"label",2),__decorateClass([n$z({attribute:!1})],QuickActionItem.prototype,"callbackFn",2),QuickActionItem=__decorateClass([t$l("quick-action-item")],QuickActionItem);const commonNavMenuItems=[{id:"landing",icon:"home",label:"Pàgina inici",type:"item",sortHint:"0010",callbackFn:()=>shellApi.broker.send(new ExitShell("OBRIR_PI"))}],doctorNavMenuItems=[{id:"landing",icon:"home",label:"Pàgina inici",type:"item",sortHint:"0010",callbackFn:()=>shellApi.broker.send(new ExitShell("OBRIR_PI"))},{id:"dinamic-monitoring",icon:"poll",label:"Monitoratge dinàmic",type:"item",sortHint:"0030",callbackFn:()=>navigateToEcapWithoutClosingWithCip("IA_DEV")},{id:"processes",icon:"account_tree",label:"Vies clíniques",type:"tree",sortHint:"0040",actionMenuItems:[{icon:"open_in_new",label:"Proces d'atenció - ARES",callbackFn:()=>navigateToEcapWithoutClosingWithCip("PROCES_ATENCIO")},{icon:"open_in_new",label:"Nen sa",callbackFn:()=>navigateToEcapWithoutClosingWithCip("NEN_SA")},{icon:"open_in_new",label:"ASSIR",callbackFn:()=>navigateToEcapWithoutClosingWithCip("NAVEGACIO_ASSIR")},{icon:"open_in_new",label:"Odontologia",callbackFn:()=>navigateToEcapWithoutClosingWithCip("ODONTOLOGO")},{icon:"open_in_new",label:"Situació d'especial cura",callbackFn:()=>navigateToEcapWithoutClosingWithCip("SIT_ESPEC_CURA_DEV")},{icon:"open_in_new",label:"Valoració social",callbackFn:()=>navigateToEcapWithoutClosingWithCip("VALORACIO_SOCIAL")}]},{id:"unique-petition",icon:"playlist_add",label:"Peticionari",type:"tree",sortHint:"0050",actionMenuItems:[{icon:"open_in_new",label:"Analítiques",callbackFn:()=>navigateToEcapWithoutClosingWithCip("LABORATORI")},{icon:"open_in_new",label:"Ordres Clíniques",callbackFn:()=>navigateToEcapWithoutClosingWithCip("RESULT_OC")},{icon:"open_in_new",label:"OC Exprés",callbackFn:()=>navigateToEcapWithoutClosingWithCip("OC_EXPRES")},{icon:"open_in_new",label:"Sol·licitud de trasllat",callbackFn:()=>navigateToEcapWithoutClosingWithCip("TRANSPORT")}]},{id:"analytics-monitoring",icon:"science",label:"Seguiment analític",type:"item",sortHint:"0060",callbackFn:()=>navigateToEcapWithoutClosingWithCip("SEGUIMENT_ANALITIC")},{id:"results-reports",icon:"folder_shared",label:"Documents",type:"tree",sortHint:"0070",actionMenuItems:[{icon:"open_in_new",label:"Resultats i informes",callbackFn:()=>navigateToEcapWithoutClosingWithCip("RESULTAT_INFORMES")},{icon:"open_in_new",label:"Documents usuari",callbackFn:()=>setTimeout(()=>{navigateToEcapWithoutClosingWithCip("CRIDA_DOCS_USU")},0)},{icon:"open_in_new",label:"Informes clínics",callbackFn:()=>navigateToEcapWithoutClosingWithCip("INFORME_CLINIC_NET")}]},{id:"test-cabinets",icon:"list_alt",label:"Gabinets de proves",type:"item",sortHint:"0080",callbackFn:()=>navigateToEcapWithoutClosingWithCip("GABINETS_PROVES")},{id:"prescriptions",icon:"pill",label:"Prescripció",type:"tree",sortHint:"0090",actionMenuItems:[{icon:"open_in_new",label:"Prescripció",callbackFn:()=>navigateToEcapWithoutClosingWithCip("PRESCRIPCIO_ACTIVA")},{icon:"open_in_new",label:"Ordres de tractament",callbackFn:()=>navigateToEcapWithoutClosingWithCip("ORDRE_TRACTAMENT")},{icon:"open_in_new",label:"Dispensació material sanitari",callbackFn:()=>navigateToEcapWithoutClosingWithCip("DISPENSACIO_MATERIAL_PACIENT")},{icon:"open_in_new",label:"Prescripció social",callbackFn:()=>navigateToEcapWithoutClosingWithCip("PRESCRIPCIO_SOCIAL")}]},{id:"vaccines",icon:"vaccines",label:"Immunitzacions",type:"item",sortHint:"0100",callbackFn:()=>navigateToEcapWithoutClosingWithCip("IMMUNITZACIONS")},{id:"it",icon:"history_toggle_off",label:"Incapacitat temporal",type:"item",sortHint:"0100",callbackFn:()=>navigateToEcapWithoutClosingWithCip("REV_IT")},{id:"visits",icon:"event",label:"Visites",type:"item",sortHint:"0130",callbackFn:()=>navigateToEcapWithoutClosingWithCip("CONSULTA_VISITES")}],administrativeNavMenuItems=[],registerDoctorNavMenuViews=()=>{registerCommunicationNavMenu(),registerNavMenuViews(doctorNavMenuItems)},registerAdministrativeNavMenuViews=()=>{registerNavMenuViews(administrativeNavMenuItems)},registerNavMenuViews=te=>{const J=[...commonNavMenuItems,...te];for(const X of J)shellApi.regionManager.registerView(shellApi.regionManager.regions.shell.navigationMenu,{id:X.id,sortHint:X.sortHint,factory:()=>{const re=X.type==="item"?new PrimariaNavItem({icon:X.icon,label:X.label,callbackFn:X.callbackFn}):new PrimariaNavTreeMenu({icon:X.icon,label:X.label,actionMenuItems:X.actionMenuItems});return Promise.resolve(re)}})},registerCommunicationNavMenu=()=>{shellApi.regionManager.registerView(shellApi.regionManager.regions.shell.navigationMenu,{id:"communication",sortHint:"0120",factory:()=>{const te=new CommunicationActionMenu("3p","Comunicació");return Promise.resolve(te)}}),registerCommunicationMenuActions()},registerCommunicationMenuActions=()=>{const te=[{id:"1",sortHint:"0010",icon:"open_in_new",label:"SMS",callbackFn:async()=>{const J=await getPatientCip(shellApi);shellApi.ecapEventManager.publish("MISSATGES_DEV","NO_TANCAR",{CIP:J||"",TipusMissatge:"SMS"})}},{id:"2",sortHint:"0020",icon:"open_in_new",label:"eConsulta",callbackFn:async()=>{const J=await getPatientCip(shellApi),X=await shellApi.broker.send(new GetVisitId);shellApi.ecapEventManager.publish("NAVEGACIO_ECAP_ECONSULTA","NO_TANCAR",{CIP:J||"",VisiID:X||""})}},{id:"3",icon:"open_in_new",label:"Mail",callbackFn:async()=>{const J=await getPatientCip(shellApi);shellApi.ecapEventManager.publish("COMUNICACIO_MISSATGES_CREAR","NO_TANCAR",{CIP:J||"",TipusMissatge:"SMS"})}},{id:"4",sortHint:"0030",icon:"open_in_new",label:"Veu IP",callbackFn:()=>navigateToEcapWithoutClosingWithCip("VOIP")}];for(const J of te)shellApi.regionManager.registerView(shellApi.regionManager.regions.shell.communicationSidenav,{id:J.id,sortHint:J.sortHint,factory:()=>{new PrimariaNavItem({icon:J.icon,label:J.label,callbackFn:J.callbackFn});const X=new QuickActionItem(J.icon,J.label,J.callbackFn);return Promise.resolve(X)}})},registerMainViews=()=>{registerPDFVisorMainView()},useInternalViews=
|
|
6925
|
-
`+dssCSS,document.head.appendChild(te)}
|
|
6926
|
+
`;var __defProp$1=Object.defineProperty,__getOwnPropDesc$1=Object.getOwnPropertyDescriptor,__decorateClass$1=(te,J,X,re)=>{for(var ne=re>1?void 0:re?__getOwnPropDesc$1(J,X):J,oe=te.length-1,de;oe>=0;oe--)(de=te[oe])&&(ne=(re?de(J,X,ne):de(ne))||ne);return re&&ne&&__defProp$1(J,X,ne),ne};let QuickActionItem=class extends h$n{constructor(te,J,X){super(),this.icon="",this.label="",this.callbackFn=()=>{},this.icon=te,this.label=J,this.callbackFn=X}render(){return ke$1`${template$1(this)}`}};__decorateClass$1([n$z({type:String})],QuickActionItem.prototype,"icon",2),__decorateClass$1([n$z({type:String})],QuickActionItem.prototype,"label",2),__decorateClass$1([n$z({attribute:!1})],QuickActionItem.prototype,"callbackFn",2),QuickActionItem=__decorateClass$1([t$l("quick-action-item")],QuickActionItem);const commonNavMenuItems=[{id:"landing",icon:"home",label:"Pàgina inici",type:"item",sortHint:"0010",callbackFn:()=>shellApi.broker.send(new ExitShell("OBRIR_PI"))}],doctorNavMenuItems=[{id:"landing",icon:"home",label:"Pàgina inici",type:"item",sortHint:"0010",callbackFn:()=>shellApi.broker.send(new ExitShell("OBRIR_PI"))},{id:"dinamic-monitoring",icon:"poll",label:"Monitoratge dinàmic",type:"item",sortHint:"0030",callbackFn:()=>navigateToEcapWithoutClosingWithCip("IA_DEV")},{id:"processes",icon:"account_tree",label:"Vies clíniques",type:"tree",sortHint:"0040",actionMenuItems:[{icon:"open_in_new",label:"Proces d'atenció - ARES",callbackFn:()=>navigateToEcapWithoutClosingWithCip("PROCES_ATENCIO")},{icon:"open_in_new",label:"Nen sa",callbackFn:()=>navigateToEcapWithoutClosingWithCip("NEN_SA")},{icon:"open_in_new",label:"ASSIR",callbackFn:()=>navigateToEcapWithoutClosingWithCip("NAVEGACIO_ASSIR")},{icon:"open_in_new",label:"Odontologia",callbackFn:()=>navigateToEcapWithoutClosingWithCip("ODONTOLOGO")},{icon:"open_in_new",label:"Situació d'especial cura",callbackFn:()=>navigateToEcapWithoutClosingWithCip("SIT_ESPEC_CURA_DEV")},{icon:"open_in_new",label:"Valoració social",callbackFn:()=>navigateToEcapWithoutClosingWithCip("VALORACIO_SOCIAL")}]},{id:"unique-petition",icon:"playlist_add",label:"Peticionari",type:"tree",sortHint:"0050",actionMenuItems:[{icon:"open_in_new",label:"Analítiques",callbackFn:()=>navigateToEcapWithoutClosingWithCip("LABORATORI")},{icon:"open_in_new",label:"Ordres Clíniques",callbackFn:()=>navigateToEcapWithoutClosingWithCip("RESULT_OC")},{icon:"open_in_new",label:"OC Exprés",callbackFn:()=>navigateToEcapWithoutClosingWithCip("OC_EXPRES")},{icon:"open_in_new",label:"Sol·licitud de trasllat",callbackFn:()=>navigateToEcapWithoutClosingWithCip("TRANSPORT")}]},{id:"analytics-monitoring",icon:"science",label:"Seguiment analític",type:"item",sortHint:"0060",callbackFn:()=>navigateToEcapWithoutClosingWithCip("SEGUIMENT_ANALITIC")},{id:"results-reports",icon:"folder_shared",label:"Documents",type:"tree",sortHint:"0070",actionMenuItems:[{icon:"open_in_new",label:"Resultats i informes",callbackFn:()=>navigateToEcapWithoutClosingWithCip("RESULTAT_INFORMES")},{icon:"open_in_new",label:"Documents usuari",callbackFn:()=>setTimeout(()=>{navigateToEcapWithoutClosingWithCip("CRIDA_DOCS_USU")},0)},{icon:"open_in_new",label:"Informes clínics",callbackFn:()=>navigateToEcapWithoutClosingWithCip("INFORME_CLINIC_NET")}]},{id:"test-cabinets",icon:"list_alt",label:"Gabinets de proves",type:"item",sortHint:"0080",callbackFn:()=>navigateToEcapWithoutClosingWithCip("GABINETS_PROVES")},{id:"prescriptions",icon:"pill",label:"Prescripció",type:"tree",sortHint:"0090",actionMenuItems:[{icon:"open_in_new",label:"Prescripció",callbackFn:()=>navigateToEcapWithoutClosingWithCip("PRESCRIPCIO_ACTIVA")},{icon:"open_in_new",label:"Ordres de tractament",callbackFn:()=>navigateToEcapWithoutClosingWithCip("ORDRE_TRACTAMENT")},{icon:"open_in_new",label:"Dispensació material sanitari",callbackFn:()=>navigateToEcapWithoutClosingWithCip("DISPENSACIO_MATERIAL_PACIENT")},{icon:"open_in_new",label:"Prescripció social",callbackFn:()=>navigateToEcapWithoutClosingWithCip("PRESCRIPCIO_SOCIAL")}]},{id:"vaccines",icon:"vaccines",label:"Immunitzacions",type:"item",sortHint:"0100",callbackFn:()=>navigateToEcapWithoutClosingWithCip("IMMUNITZACIONS")},{id:"it",icon:"history_toggle_off",label:"Incapacitat temporal",type:"item",sortHint:"0100",callbackFn:()=>navigateToEcapWithoutClosingWithCip("REV_IT")},{id:"visits",icon:"event",label:"Visites",type:"item",sortHint:"0130",callbackFn:()=>navigateToEcapWithoutClosingWithCip("CONSULTA_VISITES")}],administrativeNavMenuItems=[],registerDoctorNavMenuViews=()=>{registerCommunicationNavMenu(),registerNavMenuViews(doctorNavMenuItems)},registerAdministrativeNavMenuViews=()=>{registerNavMenuViews(administrativeNavMenuItems)},registerNavMenuViews=te=>{const J=[...commonNavMenuItems,...te];for(const X of J)shellApi.regionManager.registerView(shellApi.regionManager.regions.shell.navigationMenu,{id:X.id,sortHint:X.sortHint,factory:()=>{const re=X.type==="item"?new PrimariaNavItem({icon:X.icon,label:X.label,callbackFn:X.callbackFn}):new PrimariaNavTreeMenu({icon:X.icon,label:X.label,actionMenuItems:X.actionMenuItems});return Promise.resolve(re)}})},registerCommunicationNavMenu=()=>{shellApi.regionManager.registerView(shellApi.regionManager.regions.shell.navigationMenu,{id:"communication",sortHint:"0120",factory:()=>{const te=new CommunicationActionMenu("3p","Comunicació");return Promise.resolve(te)}}),registerCommunicationMenuActions()},registerCommunicationMenuActions=()=>{const te=[{id:"1",sortHint:"0010",icon:"open_in_new",label:"SMS",callbackFn:async()=>{const J=await getPatientCip(shellApi);shellApi.ecapEventManager.publish("MISSATGES_DEV","NO_TANCAR",{CIP:J||"",TipusMissatge:"SMS"})}},{id:"2",sortHint:"0020",icon:"open_in_new",label:"eConsulta",callbackFn:async()=>{const J=await getPatientCip(shellApi),X=await shellApi.broker.send(new GetVisitId);shellApi.ecapEventManager.publish("NAVEGACIO_ECAP_ECONSULTA","NO_TANCAR",{CIP:J||"",VisiID:X||""})}},{id:"3",icon:"open_in_new",label:"Mail",callbackFn:async()=>{const J=await getPatientCip(shellApi);shellApi.ecapEventManager.publish("COMUNICACIO_MISSATGES_CREAR","NO_TANCAR",{CIP:J||"",TipusMissatge:"SMS"})}},{id:"4",sortHint:"0030",icon:"open_in_new",label:"Veu IP",callbackFn:()=>navigateToEcapWithoutClosingWithCip("VOIP")}];for(const J of te)shellApi.regionManager.registerView(shellApi.regionManager.regions.shell.communicationSidenav,{id:J.id,sortHint:J.sortHint,factory:()=>{new PrimariaNavItem({icon:J.icon,label:J.label,callbackFn:J.callbackFn});const X=new QuickActionItem(J.icon,J.label,J.callbackFn);return Promise.resolve(X)}})},registerMainViews=()=>{registerPDFVisorMainView()},useInternalViews=()=>{registerMainViews(),shellApi.userManager.isUserRoleAdministrative()?registerAdministrativeNavMenuViews():registerDoctorNavMenuViews()},useUI=()=>{p$f.registerAdapterFactory("primaria-content-switcher",d$u),useSharedUI(),useComponents(),useInternalViews()},initializeShell=te=>{useLocalization(shellApi),useUI(),useFeatures(shellApi);const J=new PrimariaShell;te.appendChild(J)};class n extends HTMLElement{constructor(J,X,re={}){super(),this.jsx=J,this.styles=X,this.root=this.attachShadow({mode:"open"}),this.reactRoot=null,re&&(this.props=re)}connectedCallback(){const J=document.createElement("div");J.style.minHeight="100%",J.style.width="100%",J.style.height="100%";const X=document.createElement("style");X.innerText=this.styles,this.root.appendChild(J),this.root.appendChild(X),this.reactRoot=r$M.createRoot(J),this.renderReact()}disconnectedCallback(){this.reactRoot&&this.reactRoot.unmount()}renderReact(){this.reactRoot&&this.reactRoot.render(c$p.createElement(this.jsx,{...this.props}))}}customElements.define("ux-react-web-component",n);const h=(te,J)=>(X={})=>Promise.resolve(new n(te,J,X));if(typeof document<"u"){const te=document.createElement("style");te.textContent=fontsCSS+`
|
|
6927
|
+
`+dssCSS,document.head.appendChild(te)}const styles=".container{background-color:#fff;display:flex;flex-direction:column;min-width:500px;width:90vw;height:90vh;border-radius:var(--dss-radius-sm);overflow:hidden}.content{display:grid;height:100%;min-height:1px;grid-template-columns:1fr 1fr;grid-auto-rows:1fr;gap:16px;padding:16px;overflow-y:auto;max-height:calc(90vh - 120px)}.content>*{border:1px solid var(--color-neutral-200);border-radius:8px;padding:16px;background-color:var(--color-neutral-50);min-height:200px}.footer{display:flex;flex-direction:row;align-items:center;background:#fff;justify-content:end;gap:12px;height:56px;border-top:1px solid var(--color-neutral-100);padding:var(--dss-spacing-sm)}",template=te=>ke$1`
|
|
6928
|
+
<div class="container">
|
|
6929
|
+
<!-- <div class="header">
|
|
6930
|
+
<div class="title">
|
|
6931
|
+
<div>${translate$1("importDataManager.title")}</div>
|
|
6932
|
+
</div>
|
|
6933
|
+
</div> -->
|
|
6934
|
+
<div class="content" id="import-data-region"></div>
|
|
6935
|
+
<div class="footer">
|
|
6936
|
+
<dss-button label="${translate$1("importDataManager.actions.cancel")}" @click="${()=>{te.cancel()}}" size="md" variant="secondary"></dss-button>
|
|
6937
|
+
<dss-button label="${translate$1("importDataManager.actions.import")}" @click="${()=>{te._accept()}}" size="md" variant="primary"></dss-button>
|
|
6938
|
+
</div>
|
|
6939
|
+
</div>
|
|
6940
|
+
`;var __defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__decorateClass=(te,J,X,re)=>{for(var ne=re>1?void 0:re?__getOwnPropDesc(J,X):J,oe=te.length-1,de;oe>=0;oe--)(de=te[oe])&&(ne=(re?de(J,X,ne):de(ne))||ne);return re&&ne&&__defProp(J,X,ne),ne};let ImportDataManagerModal=class extends PrimariaRegionHost(h$n){constructor(){super(...arguments),this._accept=()=>{this.confirm()}}render(){return ke$1`${template(this)}`}};ImportDataManagerModal.styles=i$w`
|
|
6941
|
+
${r$G(styles)}
|
|
6942
|
+
`,__decorateClass([s$z({targetId:"import-data-region",name:"import-data-region"})],ImportDataManagerModal.prototype,"importDataRegion",2),ImportDataManagerModal=__decorateClass([t$l("import-data-manager-modal")],ImportDataManagerModal);const component=Object.freeze(Object.defineProperty({__proto__:null,get ImportDataManagerModal(){return ImportDataManagerModal}},Symbol.toStringTag,{value:"Module"}));exports.EcapEventManager=EcapEventManager,exports.PrimariaContentSwitcher=PrimariaContentSwitcher,exports.PrimariaInteractionService=PrimariaInteractionService,exports.PrimariaNavItem=PrimariaNavItem,exports.PrimariaRegionHost=PrimariaRegionHost,exports.bootstrapPlugins=bootstrapPlugins,exports.clinicalMonitoringRegions=clinicalMonitoringRegions,exports.createEcapEventManager=createEcapEventManager,exports.disposePlugins=disposePlugins,exports.disposeShell=disposeShell,exports.initializeShell=initializeShell,exports.primariaApiFactory=primariaApiFactory,exports.raiseCloseEvent=raiseCloseEvent,exports.raiseCustomCloseEvent=raiseCustomCloseEvent,exports.shellApi=shellApi,exports.shellRegions=shellRegions,exports.wrapReactViewFactory=h,Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"})}));
|
|
6926
6943
|
//# sourceMappingURL=index.umd.cjs.map
|